diff --git a/app.js b/app.js index 1430a30..204c76f 100644 --- a/app.js +++ b/app.js @@ -30,36 +30,20 @@ for (const button of copyButtons) { const value = source?.textContent.trim() || button.dataset.copy; const copyLabel = button.dataset.copyLabel ?? "Command"; const status = button.closest(".terminal-shell")?.querySelector(".copy-status"); - const revealTarget = button.dataset.revealTarget - ? document.getElementById(button.dataset.revealTarget) - : null; - - if (revealTarget) { - revealTarget.hidden = false; - button.setAttribute("aria-expanded", "true"); - } try { if (!value) throw new Error("No copyable content was found."); await copyText(value); - if (status) { - status.textContent = revealTarget - ? `${copyLabel} copied. The complete prompt is shown below.` - : `${copyLabel} copied to clipboard.`; - } + if (status) status.textContent = `${copyLabel} copied to clipboard.`; const label = button.querySelector("b") ?? button; const original = label.textContent; - label.textContent = revealTarget ? "Copied + shown" : "Copied"; + label.textContent = "Copied"; window.setTimeout(() => { label.textContent = original; if (status) status.textContent = ""; }, 1800); } catch { - if (status) { - status.textContent = revealTarget - ? "The complete prompt is shown below. Select it and copy it manually." - : "Copy failed. Select the command manually."; - } + if (status) status.textContent = "Copy failed. Select the complete prompt above and copy it manually."; } }); } diff --git a/index.html b/index.html index ab03347..d0212d2 100644 --- a/index.html +++ b/index.html @@ -274,24 +274,19 @@ AGENT INSTALL DRY RUN → INSTALL → VERIFY - -
- -Help me choose and install the right OpenCode Power Pack skills safely and project-locally in the current Git repository. ++++ + Full agent installation runbook +
+ +Ask what I need. Recommend the smallest pack. Preview, install, and verify it.+ + + Show full prompt + + +Copies a needs-based selection, preflight, install, and verification runbook. Read it first.
diff --git a/styles.css b/styles.css index 489bb76..448c60e 100644 --- a/styles.css +++ b/styles.css @@ -321,13 +321,38 @@ code { width: 100%; } +.agent-prompt-summary { + list-style: none; +} + +.agent-prompt-summary::-webkit-details-marker { + display: none; +} + +.agent-prompt-summary .prompt-hide-label { + display: none; +} + +.agent-prompt-disclosure[open] .prompt-show-label { + display: none; +} + +.agent-prompt-disclosure[open] .prompt-hide-label { + display: inline; +} + +.agent-prompt-expanded { + padding: 0 var(--space-5) var(--space-5); + border-top: 1px solid var(--line); +} + .agent-prompt-full { width: 100%; max-height: 32rem; - margin: var(--space-4) 0 0; - padding: var(--space-5); + margin: 0; + padding: var(--space-5) 0; overflow: auto; - border: 1px solid var(--line-strong); + border: 0; color: #dce3e9; background: var(--ink); font-family: var(--mono); @@ -337,15 +362,31 @@ code { white-space: pre-wrap; } -.agent-prompt-full[hidden] { - display: none; -} - .agent-prompt-full:focus-visible { outline: 2px solid var(--power); outline-offset: 2px; } +.agent-prompt-actions { + display: flex; + flex-wrap: wrap; + gap: var(--space-4); + align-items: center; + padding-top: var(--space-4); + border-top: 1px solid var(--line); +} + +.agent-prompt-actions a { + color: var(--muted); + font-size: 0.75rem; +} + +.agent-prompt-expanded .copy-status { + position: static; + min-height: 1.2rem; + margin: var(--space-3) 0 0; +} + .terminal-bar { display: flex; justify-content: space-between;