|
| 1 | +<!doctype html> |
| 2 | +<meta charset="utf-8"> |
| 3 | +<style> |
| 4 | + * { margin: 0; padding: 0; box-sizing: border-box; } |
| 5 | + html, body { width: 1000px; height: 600px; } |
| 6 | + body { |
| 7 | + background: radial-gradient(1000px 500px at 30% 15%, #16233f 0%, #0b1220 55%, #070b14 100%); |
| 8 | + font-family: -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif; |
| 9 | + color: #e8eef8; position: relative; overflow: hidden; |
| 10 | + } |
| 11 | + /* terminal window */ |
| 12 | + .term { |
| 13 | + position: absolute; left: 70px; top: 96px; width: 860px; height: 300px; |
| 14 | + background: #0d1526; border: 1px solid #22304d; border-radius: 12px; |
| 15 | + box-shadow: 0 24px 60px rgba(0,0,0,.5); padding: 0 0 18px; |
| 16 | + } |
| 17 | + .bar { height: 34px; display: flex; align-items: center; padding: 0 14px; gap: 8px; border-bottom: 1px solid #1b2740; } |
| 18 | + .dot { width: 12px; height: 12px; border-radius: 50%; } |
| 19 | + .r{background:#ff5f57}.y{background:#febc2e}.g{background:#28c840} |
| 20 | + .bar span { margin-left: 10px; color: #6b7a99; font-size: 13px; } |
| 21 | + .body { padding: 16px 20px; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 18px; line-height: 1.7; } |
| 22 | + .prompt { color: #5ed6a0; } |
| 23 | + .cmd { color: #e8eef8; } |
| 24 | + .out { color: #8aa0c6; } |
| 25 | + .out b { color: #d7e3f7; font-weight: 600; } |
| 26 | + .hidden { display: none; } |
| 27 | + /* dialog */ |
| 28 | + .dlg { |
| 29 | + position: absolute; left: 50%; top: 210px; transform: translateX(-50%); |
| 30 | + width: 460px; background: #ecedef; color: #1d1d1f; border-radius: 14px; |
| 31 | + box-shadow: 0 30px 80px rgba(0,0,0,.6); padding: 22px 24px 18px; opacity: 1; |
| 32 | + } |
| 33 | + :root[data-dlg="off"] .dlg { display: none; } |
| 34 | + .dlg .icon { font-size: 34px; margin-bottom: 8px; } |
| 35 | + .dlg h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; } |
| 36 | + .dlg p { font-size: 13.5px; color: #55555b; margin-bottom: 14px; } |
| 37 | + .field { |
| 38 | + background: #fff; border: 1px solid #c9c9ce; border-radius: 7px; height: 40px; |
| 39 | + display: flex; align-items: center; padding: 0 12px; font-size: 17px; letter-spacing: 1px; |
| 40 | + font-family: "SF Mono", ui-monospace, Menlo, monospace; color: #1d1d1f; |
| 41 | + } |
| 42 | + .caret { display: inline-block; width: 1.5px; height: 20px; background: #1a73e8; margin-left: 1px; } |
| 43 | + .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; } |
| 44 | + .btn { font-size: 13.5px; padding: 6px 16px; border-radius: 7px; border: 1px solid #c4c4c9; background: #fbfbfd; color: #1d1d1f; } |
| 45 | + .btn.primary { background: #1a73e8; border-color: #1a73e8; color: #fff; } |
| 46 | + .btn.hot { box-shadow: 0 0 0 3px rgba(26,115,232,.35); } |
| 47 | + /* caption */ |
| 48 | + .cap { |
| 49 | + position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; |
| 50 | + font-size: 20px; font-weight: 600; color: #cdd8ea; |
| 51 | + } |
| 52 | + .cap b { color: #6ea8ff; } |
| 53 | +</style> |
| 54 | +<body> |
| 55 | + <div class="term"> |
| 56 | + <div class="bar"><i class="dot r"></i><i class="dot y"></i><i class="dot g"></i><span>agent — keypop</span></div> |
| 57 | + <div class="body"> |
| 58 | + <div><span class="prompt">$</span> <span class="cmd" id="cmd"></span></div> |
| 59 | + <div class="out hidden" id="out">saved: <b>OPENAI_API_KEY (164 chars)</b></div> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + |
| 63 | + <div class="dlg"> |
| 64 | + <div class="icon">🔑</div> |
| 65 | + <h2>Needed: OPENAI_API_KEY</h2> |
| 66 | + <p id="note">for embeddings</p> |
| 67 | + <div class="field"><span id="fieldval"></span><span class="caret" id="caret"></span></div> |
| 68 | + <div class="btns"> |
| 69 | + <div class="btn">Cancel all</div> |
| 70 | + <div class="btn" id="toggle">Reveal</div> |
| 71 | + <div class="btn primary" id="save">Save</div> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + |
| 75 | + <div class="cap" id="cap"></div> |
| 76 | + |
| 77 | + <script> |
| 78 | + const F = parseInt(new URLSearchParams(location.search).get('frame') || '0', 10); |
| 79 | + const dots = n => '•'.repeat(n); |
| 80 | + const set = (id, v) => { document.getElementById(id).textContent = v; }; |
| 81 | + const show = (id, on) => { document.getElementById(id).classList.toggle('hidden', !on); }; |
| 82 | + // per-frame state: dialog on/off, command text, field content, toggle label, save-hot, output, caption |
| 83 | + const S = { |
| 84 | + 0: {dlg:'off', cmd:'keypop OPENAI_API_KEY:"for embeddings"', cap:'Your agent needs a key. It runs <b>keypop</b>.'}, |
| 85 | + 1: {dlg:'on', field:'', toggle:'Reveal', cap:'A native dialog pops on <b>your</b> screen.'}, |
| 86 | + 2: {dlg:'on', field:dots(9), toggle:'Reveal', cap:'You paste the value. Masked by default.'}, |
| 87 | + 3: {dlg:'on', field:dots(24), toggle:'Reveal', cap:'You paste the value. Masked by default.'}, |
| 88 | + 4: {dlg:'on', field:'sk-proj-9f2a…e71', toggle:'Hide', reveal:true, cap:'<b>Reveal</b> to check the paste landed right.'}, |
| 89 | + 5: {dlg:'on', field:'sk-proj-9f2a…e71', toggle:'Hide', reveal:true, save:true, cap:'Save.'}, |
| 90 | + 6: {dlg:'off', out:true, cap:'The agent sees only <b>“164 chars”</b> — never the value.'}, |
| 91 | + 7: {dlg:'off', out:true, cap:'Secrets never touch the chat, transcript, or logs.'}, |
| 92 | + }; |
| 93 | + const s = S[F] || S[0]; |
| 94 | + document.documentElement.setAttribute('data-dlg', s.dlg); |
| 95 | + set('cmd', s.cmd !== undefined ? s.cmd : 'keypop OPENAI_API_KEY:"for embeddings"'); |
| 96 | + if (s.field !== undefined) set('fieldval', s.field); |
| 97 | + if (s.toggle) set('toggle', s.toggle); |
| 98 | + if (s.save) document.getElementById('save').classList.add('hot'); |
| 99 | + // caret only visible while typing (frames 1-3), monospace field |
| 100 | + document.getElementById('caret').style.display = (F>=1 && F<=3) ? 'inline-block' : 'none'; |
| 101 | + // plaintext (revealed) uses normal spacing |
| 102 | + if (s.reveal) document.getElementById('fieldval').style.letterSpacing = '0'; |
| 103 | + show('out', !!s.out); |
| 104 | + document.getElementById('cap').innerHTML = s.cap || ''; |
| 105 | + </script> |
| 106 | +</body> |
0 commit comments