| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <meta name="color-scheme" content="dark"> |
| 7 | <meta name="theme-color" content="#03070d"> |
| 8 | <title>Codewhale</title> |
| 9 | <link rel="icon" href="data:,"> |
| 10 | <link rel="stylesheet" href="/assets/codewhale-web.css"> |
| 11 | <script type="module" src="/assets/codewhale-web.js"></script> |
| 12 | </head> |
| 13 | <body> |
| 14 | <div class="shell" id="app-shell"> |
| 15 | <aside class="rail" id="thread-rail" aria-label="Threads"> |
| 16 | <div class="rail-brand"> |
| 17 | <div class="brand-mark" aria-hidden="true">CW</div> |
| 18 | <div> |
| 19 | <p class="eyebrow">Shannon Labs</p> |
| 20 | <p class="brand-name">Codewhale</p> |
| 21 | </div> |
| 22 | <button class="icon-button rail-close" id="rail-close" type="button" aria-label="Close threads">×</button> |
| 23 | </div> |
| 24 | |
| 25 | <button class="primary-button new-thread" id="new-thread" type="button"> |
| 26 | <span aria-hidden="true">+</span> |
| 27 | New thread |
| 28 | </button> |
| 29 | |
| 30 | <label class="search-field"> |
| 31 | <span class="sr-only">Search threads</span> |
| 32 | <span aria-hidden="true">⌕</span> |
| 33 | <input id="thread-search" type="search" autocomplete="off" placeholder="Search threads"> |
| 34 | </label> |
| 35 | |
| 36 | <nav class="thread-list" id="thread-list" aria-label="Recent threads"></nav> |
| 37 | |
| 38 | <!-- Read-only peek for a selected saved session. Bounded and redacted |
| 39 | server-side by GET /v1/sessions/{id}?peek=true; this pane never |
| 40 | receives a full transcript and never offers a composer. --> |
| 41 | <!-- (rendered into #session-peek in the main column) --> |
| 42 | |
| 43 | <!-- Saved sessions come from GET /v1/sessions/summary, the same |
| 44 | projection the terminal's session rail renders. Resuming one goes |
| 45 | through POST /v1/sessions/{id}/resume-thread, so the dashboard |
| 46 | never gets a second session backend. --> |
| 47 | <section class="saved-sessions" id="saved-sessions" hidden> |
| 48 | <h2 class="rail-section-title" id="saved-sessions-title">Saved sessions</h2> |
| 49 | <nav class="thread-list" id="session-list" aria-labelledby="saved-sessions-title"></nav> |
| 50 | </section> |
| 51 | |
| 52 | <div class="rail-footer"> |
| 53 | <span class="connection-dot" id="connection-dot" aria-hidden="true"></span> |
| 54 | <span id="connection-label">Connecting to local runtime…</span> |
| 55 | </div> |
| 56 | </aside> |
| 57 | |
| 58 | <button class="rail-scrim" id="rail-scrim" type="button" aria-label="Close threads"></button> |
| 59 | |
| 60 | <main class="session"> |
| 61 | <header class="session-header"> |
| 62 | <div class="session-heading"> |
| 63 | <button class="icon-button rail-open" id="rail-open" type="button" aria-label="Open threads">☰</button> |
| 64 | <div class="title-stack"> |
| 65 | <p class="eyebrow" id="session-kicker">Local runtime</p> |
| 66 | <h1 id="session-title">Choose a thread</h1> |
| 67 | </div> |
| 68 | </div> |
| 69 | <div class="header-actions"> |
| 70 | <button class="quiet-button" id="rename-thread" type="button" disabled>Rename</button> |
| 71 | <button class="quiet-button danger" id="archive-thread" type="button" disabled>Archive</button> |
| 72 | </div> |
| 73 | <div class="session-facts" id="session-facts" aria-label="Session details"></div> |
| 74 | </header> |
| 75 | |
| 76 | <div class="status-banner" id="status-banner" role="status" aria-live="polite" hidden></div> |
| 77 | |
| 78 | <section class="session-peek" id="session-peek" aria-label="Saved session preview" hidden></section> |
| 79 | |
| 80 | <section class="transcript" id="transcript" aria-label="Conversation" aria-live="polite"> |
| 81 | <div class="empty-state"> |
| 82 | <div class="empty-orbit" aria-hidden="true">◌</div> |
| 83 | <h2>Your local agent, in the browser.</h2> |
| 84 | <p>Create a thread or choose one from the rail. This client uses the same Runtime as the terminal.</p> |
| 85 | </div> |
| 86 | </section> |
| 87 | |
| 88 | <section class="attention" id="attention" aria-label="Items requiring attention" hidden></section> |
| 89 | |
| 90 | <footer class="composer-wrap"> |
| 91 | <form class="composer" id="composer"> |
| 92 | <label class="sr-only" for="composer-input">Message Codewhale</label> |
| 93 | <textarea id="composer-input" rows="1" placeholder="Ask Codewhale to work in this repository…" disabled></textarea> |
| 94 | <div class="composer-bar"> |
| 95 | <span class="composer-hint">⌘↵ send</span> |
| 96 | <div class="composer-actions"> |
| 97 | <button class="quiet-button" id="interrupt-turn" type="button" hidden>Stop</button> |
| 98 | <button class="send-button" id="send-message" type="submit" disabled>Send</button> |
| 99 | </div> |
| 100 | </div> |
| 101 | </form> |
| 102 | </footer> |
| 103 | </main> |
| 104 | </div> |
| 105 | |
| 106 | <dialog class="rename-dialog" id="rename-dialog"> |
| 107 | <form method="dialog" id="rename-form"> |
| 108 | <p class="eyebrow">Thread title</p> |
| 109 | <h2>Rename this thread</h2> |
| 110 | <label> |
| 111 | <span class="sr-only">New thread title</span> |
| 112 | <input id="rename-input" type="text" maxlength="160" required autocomplete="off"> |
| 113 | </label> |
| 114 | <div class="dialog-actions"> |
| 115 | <button class="quiet-button" value="cancel" type="submit">Cancel</button> |
| 116 | <button class="primary-button" value="save" type="submit">Save title</button> |
| 117 | </div> |
| 118 | </form> |
| 119 | </dialog> |
| 120 | |
| 121 | <noscript>Codewhale web requires JavaScript to connect to the local Runtime API.</noscript> |
| 122 | </body> |
| 123 | </html> |
| 124 |