tabherd 0.0.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/LICENSE +674 -0
  3. package/README.md +538 -2
  4. package/launcher/npm.js +9 -0
  5. package/lib/agents.js +324 -0
  6. package/lib/codex-client.js +306 -0
  7. package/lib/codex-rollout.js +251 -0
  8. package/lib/codex.js +424 -0
  9. package/lib/comfy.js +479 -0
  10. package/lib/completed.js +55 -0
  11. package/lib/copilot.js +359 -0
  12. package/lib/cursor.js +516 -0
  13. package/lib/dismissed.js +30 -0
  14. package/lib/filters.js +120 -0
  15. package/lib/groups.js +144 -0
  16. package/lib/history.js +253 -0
  17. package/lib/llamacpp.js +159 -0
  18. package/lib/lmstudio.js +134 -0
  19. package/lib/localai.js +291 -0
  20. package/lib/memory.js +55 -0
  21. package/lib/ollama.js +124 -0
  22. package/lib/open-dashboard.js +39 -0
  23. package/lib/opencode.js +371 -0
  24. package/lib/repos.js +81 -0
  25. package/lib/saved.js +33 -0
  26. package/lib/secrets.js +196 -0
  27. package/lib/session-id.js +9 -0
  28. package/lib/settings.js +231 -0
  29. package/lib/store.js +44 -0
  30. package/lib/terminals/index.js +62 -0
  31. package/lib/terminals/kitty.js +126 -0
  32. package/lib/terminals/linux.js +310 -0
  33. package/lib/terminals/macos.js +468 -0
  34. package/lib/terminals/tmux.js +89 -0
  35. package/lib/terminals/unix-driver.js +172 -0
  36. package/lib/terminals/unix.js +204 -0
  37. package/lib/terminals/unsupported.js +22 -0
  38. package/lib/terminals/wezterm.js +103 -0
  39. package/lib/terminals/windows-close.ps1 +125 -0
  40. package/lib/terminals/windows-focus.ps1 +235 -0
  41. package/lib/terminals/windows-pick-folder.ps1 +57 -0
  42. package/lib/terminals/windows-titles.js +124 -0
  43. package/lib/terminals/windows-titles.ps1 +95 -0
  44. package/lib/terminals/windows.js +166 -0
  45. package/lib/ticket-refs.js +184 -0
  46. package/lib/tickets.js +437 -0
  47. package/lib/todos.js +166 -0
  48. package/lib/trackers.js +541 -0
  49. package/lib/transcript.js +314 -0
  50. package/lib/updates.js +186 -0
  51. package/package.json +35 -7
  52. package/public/app.js +4077 -0
  53. package/public/favicon.svg +1 -0
  54. package/public/icons/tabherd-128.png +0 -0
  55. package/public/icons/tabherd-16.png +0 -0
  56. package/public/icons/tabherd-20.png +0 -0
  57. package/public/icons/tabherd-24.png +0 -0
  58. package/public/icons/tabherd-256.png +0 -0
  59. package/public/icons/tabherd-32.png +0 -0
  60. package/public/icons/tabherd-40.png +0 -0
  61. package/public/icons/tabherd-48.png +0 -0
  62. package/public/icons/tabherd-512.png +0 -0
  63. package/public/icons/tabherd-64.png +0 -0
  64. package/public/index.html +655 -0
  65. package/public/lang/es.js +742 -0
  66. package/public/style.css +1443 -0
  67. package/server.js +814 -0
  68. package/placeholder.js +0 -3
@@ -0,0 +1,655 @@
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="agents-token" content="%%TOKEN%%">
7
+ <!-- Tells the desktop app this page's header stands in for the window's
8
+ title bar. Without it, the app gives the window the system's. -->
9
+ <meta name="tabherd-title-bar" content="header">
10
+ <title>Tabherd</title>
11
+ <!-- Not /favicon.svg: browsers keep a page's icon by its address, so a
12
+ window opened before the logo changed would show the old one. -->
13
+ <link rel="icon" href="/icons/tabherd-32.png" type="image/png" sizes="32x32">
14
+ <link rel="icon" href="/icons/tabherd-64.png" type="image/png" sizes="64x64">
15
+ <link rel="stylesheet" href="/style.css">
16
+ </head>
17
+ <body>
18
+ <!-- In the desktop app, dragging the header, but not its buttons, moves the
19
+ window, and double-clicking it maximizes the window. -->
20
+ <header class="top" data-tauri-drag-region="deep">
21
+ <button type="button" id="menu-button" class="icon-btn menu-button" aria-label="Open the repository menu" aria-haspopup="dialog" aria-controls="repos">
22
+ <span class="burger" aria-hidden="true"></span>
23
+ </button>
24
+ <div class="brand">
25
+ <img src="/icons/tabherd-64.png" alt="" width="24" height="24">
26
+ <h1>Tabherd</h1>
27
+ <span class="brand-host">
28
+ <span id="host" class="host"></span>
29
+ <span id="version" class="version" title="The version of Tabherd running"></span>
30
+ </span>
31
+ </div>
32
+ <!-- Its scroll bar scrolls the filters, rather than moving the window. -->
33
+ <nav id="filters" class="filters" aria-label="Filters" data-tauri-drag-region="false">
34
+ <button type="button" data-filter="all" aria-pressed="true">All <b>0</b></button>
35
+ </nav>
36
+ <div class="view-filters">
37
+ <select id="app-filter" class="view-select" aria-label="Show sessions from" hidden></select>
38
+ <select id="group-filter" class="view-select" aria-label="Show a group" hidden></select>
39
+ </div>
40
+ <button type="button" id="todo-new" class="todo-new" title="New to-do: a task to start a Claude session for later" aria-haspopup="dialog" aria-controls="todo-dialog">
41
+ <svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M10 4.25v11.5M4.25 10h11.5"/></svg>
42
+ To-do
43
+ </button>
44
+ <button type="button" id="sessions-button" class="icon-btn header-icon" title="Save and close all sessions, or resume the last saved ones" aria-label="Save and close, or resume" aria-haspopup="menu">
45
+ <svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true">
46
+ <path d="M3.5 5.5h13v2h-13z"/>
47
+ <path d="M4.5 7.5v7.25a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V7.5"/>
48
+ <path d="M8.25 10.5h3.5"/>
49
+ </svg>
50
+ </button>
51
+ <button type="button" id="update-button" class="update-button" title="A new version of Tabherd is out" aria-haspopup="dialog" aria-controls="update-dialog" hidden>
52
+ <svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M10 15.5v-11M5.5 9 10 4.5 14.5 9"/></svg>
53
+ <span id="update-label"></span>
54
+ </button>
55
+ <button type="button" id="history-button" class="icon-btn header-icon history-button" title="History of closed sessions" aria-label="History" aria-haspopup="dialog" aria-controls="history">
56
+ <svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true">
57
+ <path d="M3.6 10a6.4 6.4 0 1 0 1.9-4.55"/>
58
+ <path d="M3.4 3.4v2.85h2.85"/>
59
+ <path d="M10 6.4V10l2.4 1.5"/>
60
+ </svg>
61
+ </button>
62
+ <button type="button" id="notes-button" class="notes-button" popovertarget="notes" title="Notifications" aria-label="Notifications">
63
+ <svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true">
64
+ <path d="M2.75 11.25h4l1.25 2h4l1.25-2h4"/>
65
+ <path d="M5.1 4.25h9.8l2.35 7v4.25a1 1 0 0 1-1 1H3.75a1 1 0 0 1-1-1v-4.25z"/>
66
+ </svg>
67
+ <b id="n-notes"></b>
68
+ </button>
69
+ <button type="button" id="sound" class="sound" aria-pressed="true" aria-label="Sound">
70
+ <svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true">
71
+ <path d="M10 2.75a4.25 4.25 0 0 0-4.25 4.25v3.1L4.2 13.25h11.6L14.25 10.1V7A4.25 4.25 0 0 0 10 2.75Z"/>
72
+ <path d="M8.25 15.5a1.75 1.75 0 0 0 3.5 0"/>
73
+ <path class="slash" d="M3.5 3.5l13 13"/>
74
+ </svg>
75
+ <span id="sound-label"></span>
76
+ </button>
77
+ <button type="button" id="pin-button" class="icon-btn header-icon pin-button" title="Keep this window on top of other windows" aria-label="Keep on top" aria-pressed="false" hidden>
78
+ <svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true">
79
+ <path d="M12 17v5"/>
80
+ <path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>
81
+ </svg>
82
+ </button>
83
+ <button type="button" id="settings-button" class="icon-btn header-icon" title="Settings" aria-label="Settings" aria-haspopup="dialog" aria-controls="settings">
84
+ <svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true">
85
+ <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/>
86
+ <circle cx="12" cy="12" r="3"/>
87
+ </svg>
88
+ </button>
89
+ <div id="conn" class="conn" role="status">
90
+ <span class="conn-dot"></span><span id="updated">Connecting…</span>
91
+ </div>
92
+ <!-- The desktop app's window buttons, on Windows and Linux. Not in a
93
+ browser, nor on macOS, which keeps its own. -->
94
+ <div id="window-buttons" class="window-buttons" hidden>
95
+ <button type="button" id="window-minimize" title="Minimize" aria-label="Minimize">
96
+ <svg viewBox="0 0 10 10" width="10" height="10" aria-hidden="true"><path d="M0 5.5h10"/></svg>
97
+ </button>
98
+ <button type="button" id="window-maximize" title="Maximize" aria-label="Maximize">
99
+ <svg viewBox="0 0 10 10" width="10" height="10" aria-hidden="true">
100
+ <rect class="maximize" x="0.5" y="0.5" width="9" height="9"/>
101
+ <path class="restore" d="M0.5 2.5h7v7h-7zM2.5 2.5v-2h7v7h-2"/>
102
+ </svg>
103
+ </button>
104
+ <button type="button" id="window-close" class="window-close" title="Close" aria-label="Close">
105
+ <svg viewBox="0 0 10 10" width="10" height="10" aria-hidden="true"><path d="M0.5 0.5l9 9M9.5 0.5l-9 9"/></svg>
106
+ </button>
107
+ </div>
108
+ </header>
109
+
110
+ <main>
111
+ <div id="update-ask" class="update-ask" hidden>
112
+ <p data-i18n><b>Tell you when a new version of Tabherd is out?</b> Once a day, the server would ask GitHub for the latest release. Nothing about you or your sessions is sent, and Settings → Help can change your answer.</p>
113
+ <div class="update-ask-actions">
114
+ <button type="button" id="update-ask-no" class="btn">No thanks</button>
115
+ <button type="button" id="update-ask-yes" class="btn btn-primary">Yes, tell me</button>
116
+ </div>
117
+ </div>
118
+ <div id="list" class="list"></div>
119
+ <div id="empty" class="empty" hidden>
120
+ <p class="empty-title">No Claude Code or Codex sessions are running.</p>
121
+ <p data-i18n>Start one with <code>claude</code> or <code>codex</code> in any terminal and it will appear here within a few seconds.</p>
122
+ </div>
123
+ </main>
124
+
125
+ <dialog id="repos" class="drawer" aria-labelledby="repos-title">
126
+ <div class="drawer-head">
127
+ <div class="drawer-titles">
128
+ <h2 id="repos-title">Repositories</h2>
129
+ <p id="repos-root" class="drawer-sub">Loading…</p>
130
+ </div>
131
+ <button type="button" id="repos-refresh" class="icon-btn" title="Rescan for repos" aria-label="Rescan for repos">↻</button>
132
+ <button type="button" id="repos-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
133
+ </div>
134
+ <div class="drawer-search">
135
+ <input id="repos-filter" type="search" placeholder="Filter repos" aria-label="Filter repos" autocomplete="off" spellcheck="false">
136
+ <div id="repos-app" class="segmented repos-app" role="radiogroup" aria-label="Open in" hidden>
137
+ <label><input type="radio" name="repos-app" value="claude">Claude</label>
138
+ <label><input type="radio" name="repos-app" value="codex">Codex</label>
139
+ <label><input type="radio" name="repos-app" value="copilot">Copilot</label>
140
+ </div>
141
+ </div>
142
+ <nav id="repos-tree" class="tree" aria-label="Repositories"></nav>
143
+ <p id="repos-foot" class="drawer-foot" data-i18n>Click a repo to open a terminal tab there running <code id="repos-command">claude</code>.</p>
144
+ <p id="repos-pick-foot" class="drawer-foot" hidden></p>
145
+ </dialog>
146
+
147
+ <dialog id="history" class="drawer drawer-right" aria-labelledby="history-title">
148
+ <div class="drawer-head">
149
+ <div class="drawer-titles">
150
+ <h2 id="history-title">History</h2>
151
+ <p id="history-sub" class="drawer-sub">Loading…</p>
152
+ </div>
153
+ <button type="button" id="history-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
154
+ </div>
155
+ <div class="drawer-search">
156
+ <input id="history-filter" type="search" placeholder="Filter closed sessions" aria-label="Filter closed sessions" autocomplete="off" spellcheck="false">
157
+ <label id="history-background-label" class="history-background" hidden><input type="checkbox" id="history-background" checked> Background runs</label>
158
+ <label id="history-complete-label" class="history-background" hidden><input type="checkbox" id="history-complete" checked> Complete sessions</label>
159
+ </div>
160
+ <div id="history-list" class="history-list"></div>
161
+ <p class="drawer-foot">Sessions closed in the last 30 days. Resume opens a terminal tab in the session's folder and continues the conversation.</p>
162
+ </dialog>
163
+
164
+ <dialog id="settings" class="settings" aria-labelledby="settings-title">
165
+ <form method="dialog">
166
+ <div class="settings-head">
167
+ <h2 id="settings-title">Settings</h2>
168
+ <button value="close" class="icon-btn" title="Close" aria-label="Close">✕</button>
169
+ </div>
170
+ <div class="settings-body">
171
+ <nav id="settings-nav" class="settings-nav" role="tablist" aria-label="Settings sections"></nav>
172
+ <div class="settings-panels">
173
+ <section class="settings-section" id="settings-appearance" data-title="Appearance">
174
+ <fieldset>
175
+ <legend>Language</legend>
176
+ <label class="field language-field">
177
+ <select id="language" aria-label="Language"></select>
178
+ </label>
179
+ <p class="settings-help">Changing it reloads the page.</p>
180
+ </fieldset>
181
+ <fieldset>
182
+ <legend>Theme</legend>
183
+ <div class="segmented">
184
+ <label><input type="radio" name="theme" value="system">System</label>
185
+ <label><input type="radio" name="theme" value="light">Light</label>
186
+ <label><input type="radio" name="theme" value="dark">Dark</label>
187
+ </div>
188
+ </fieldset>
189
+ <fieldset>
190
+ <legend>Card size</legend>
191
+ <label class="choice">
192
+ <input type="radio" name="card-size" value="fit">
193
+ <span class="size-shape fit" aria-hidden="true"><i></i><i></i><i></i></span>
194
+ <span class="choice-text"><b>Fit content <em>Default</em></b><span>Each card is as tall as its content, so heights vary.</span></span>
195
+ </label>
196
+ <label class="choice">
197
+ <input type="radio" name="card-size" value="small">
198
+ <span class="size-shape small" aria-hidden="true"><i></i><i></i><i></i><i></i></span>
199
+ <span class="choice-text"><b>Small</b><span>All cards one size, compact. Fits the most on screen.</span></span>
200
+ </label>
201
+ <label class="choice">
202
+ <input type="radio" name="card-size" value="medium">
203
+ <span class="size-shape medium" aria-hidden="true"><i></i><i></i><i></i></span>
204
+ <span class="choice-text"><b>Medium</b><span>All cards one size, with room for a typical session.</span></span>
205
+ </label>
206
+ <label class="choice">
207
+ <input type="radio" name="card-size" value="large">
208
+ <span class="size-shape large" aria-hidden="true"><i></i><i></i></span>
209
+ <span class="choice-text"><b>Large</b><span>All cards one size, with room for subagents and PRs.</span></span>
210
+ </label>
211
+ <p class="settings-foot">At Small, Medium or Large, whatever doesn't fit scrolls inside its card.</p>
212
+ </fieldset>
213
+ <fieldset>
214
+ <legend>Top card</legend>
215
+ <label class="choice">
216
+ <input type="checkbox" id="memory-card">
217
+ <span class="choice-text"><b>Memory and models</b><span>Memory in use and the loaded models, across the top. Turned off, each loaded model gets a card of its own instead.</span></span>
218
+ </label>
219
+ <label class="choice">
220
+ <input type="checkbox" id="memory-float">
221
+ <span class="choice-text"><b>Keep it in view</b><span>The card stays at the top of the window while the cards below it scroll.</span></span>
222
+ </label>
223
+ </fieldset>
224
+ <fieldset id="window-setting" hidden>
225
+ <legend>Window</legend>
226
+ <label class="choice">
227
+ <input type="checkbox" id="on-top">
228
+ <span class="choice-text"><b>Keep on top</b><span>Above other windows, even while you work in one. The pin in the header does the same.</span></span>
229
+ </label>
230
+ <div id="see-through-setting" hidden>
231
+ <label class="field see-through">
232
+ <span>Transparency</span>
233
+ <span class="see-through-row">
234
+ <input type="range" id="see-through" min="0" max="80" step="5">
235
+ <output id="see-through-value" for="see-through">Off</output>
236
+ </span>
237
+ </label>
238
+ <p class="settings-help">How much of what's behind the window shows through its background and cards. Text, buttons and dialogs stay solid.</p>
239
+ </div>
240
+ </fieldset>
241
+ </section>
242
+ <section class="settings-section" id="settings-notifications" data-title="Notifications">
243
+ <fieldset>
244
+ <legend>Notifications</legend>
245
+ <label class="choice">
246
+ <input type="checkbox" id="keep-notes">
247
+ <span class="choice-text"><b>Keep the list after a reload</b><span>Reloading or reopening the dashboard keeps the notifications you haven't cleared.</span></span>
248
+ </label>
249
+ </fieldset>
250
+ </section>
251
+ <section class="settings-section" id="settings-filters" data-title="Filters">
252
+ <fieldset id="filters-setting">
253
+ <legend>Filters</legend>
254
+ <p class="settings-help">The tabs across the top, after All. Each shows the cards that match everything it names. The ⋯ after the tabs makes one, or changes the one shown.</p>
255
+ <ul id="filter-list" class="filter-list"></ul>
256
+ <div class="filter-list-actions">
257
+ <button type="button" id="filter-add" class="btn">Add filter</button>
258
+ <button type="button" id="filter-reset" class="btn">Restore the usual filters</button>
259
+ </div>
260
+ </fieldset>
261
+ </section>
262
+ <section class="settings-section" id="settings-groups" data-title="Groups">
263
+ <fieldset id="groups-setting">
264
+ <legend>Groups</legend>
265
+ <p class="settings-help">A session is in the group with a folder that holds it, the nearest one if several do. The group button on a card moves it by hand.</p>
266
+ <div id="group-editor" class="group-editor"></div>
267
+ <button type="button" id="group-add" class="btn">Add group</button>
268
+ <datalist id="group-folders"></datalist>
269
+ <label class="choice">
270
+ <input type="checkbox" id="group-sections">
271
+ <span class="choice-text"><b>Sections by group</b><span>Each group's cards together under its name, and the rest after them.</span></span>
272
+ </label>
273
+ </fieldset>
274
+ </section>
275
+ <section class="settings-section" id="settings-new-sessions" data-title="New sessions">
276
+ <fieldset>
277
+ <legend>New sessions</legend>
278
+ <div id="app-setting" hidden>
279
+ <div class="segmented">
280
+ <label><input type="radio" name="new-app" value="claude">Claude</label>
281
+ <label><input type="radio" name="new-app" value="codex">Codex</label>
282
+ <label><input type="radio" name="new-app" value="copilot">Copilot</label>
283
+ </div>
284
+ <p class="settings-help">The app the repo menu opens, and to-dos start in unless they name one.</p>
285
+ </div>
286
+ <label class="choice">
287
+ <input type="checkbox" id="skip-permissions">
288
+ <span class="choice-text"><b>Skip permission prompts</b><span data-i18n>Sessions the dashboard opens run <code>claude --dangerously-skip-permissions</code>, or <code>codex --dangerously-bypass-approvals-and-sandbox</code>, so they edit files and run commands without asking. Only for folders you trust.</span></span>
289
+ </label>
290
+ <div id="terminal-setting" hidden>
291
+ <label class="field">
292
+ <span>Terminal</span>
293
+ <select id="terminal-choice"></select>
294
+ </label>
295
+ <p class="settings-help">Where the repo menu, Resume and to-dos open Claude. Automatic uses one this computer has.</p>
296
+ </div>
297
+ </fieldset>
298
+ </section>
299
+ <section class="settings-section" id="settings-other-apps" data-title="Other apps">
300
+ <fieldset>
301
+ <legend>Other apps</legend>
302
+ <p class="settings-help">ComfyUI's jobs and models, LocalAI's models, downloads and agent chats, and the models loaded in Ollama, LM Studio and llama.cpp show while they run.</p>
303
+ <label class="field">
304
+ <span>ComfyUI address</span>
305
+ <input id="comfy-url" type="text" placeholder="http://127.0.0.1:8188" autocomplete="off" spellcheck="false">
306
+ </label>
307
+ <p class="settings-help">For a ComfyUI that Comfy Desktop didn't start. Comfy Desktop's are found by themselves, whatever their port.</p>
308
+ <label class="field">
309
+ <span>LocalAI address</span>
310
+ <input id="localai-url" type="text" placeholder="http://127.0.0.1:8080" autocomplete="off" spellcheck="false">
311
+ </label>
312
+ <label class="field">
313
+ <span>LocalAI API key</span>
314
+ <input id="localai-key" type="password" autocomplete="off" spellcheck="false">
315
+ </label>
316
+ <p class="settings-help">Only if LocalAI has one set. It's kept encrypted on this computer and never shown again.</p>
317
+ <label class="field">
318
+ <span>Ollama address</span>
319
+ <input id="ollama-url" type="text" placeholder="http://127.0.0.1:11434" autocomplete="off" spellcheck="false">
320
+ </label>
321
+ <label class="field">
322
+ <span>LM Studio address</span>
323
+ <input id="lmstudio-url" type="text" placeholder="http://127.0.0.1:1234" autocomplete="off" spellcheck="false">
324
+ </label>
325
+ <label class="field">
326
+ <span>LM Studio API token</span>
327
+ <input id="lmstudio-key" type="password" autocomplete="off" spellcheck="false">
328
+ </label>
329
+ <label class="field">
330
+ <span>llama.cpp address</span>
331
+ <input id="llamacpp-url" type="text" placeholder="http://127.0.0.1:8080" autocomplete="off" spellcheck="false">
332
+ </label>
333
+ <p class="settings-help">Ollama's address defaults to OLLAMA_HOST; LM Studio's to the port its server last used; llama.cpp's to LLAMA_ARG_HOST and LLAMA_ARG_PORT. A token is only needed if LM Studio requires one.</p>
334
+ </fieldset>
335
+ </section>
336
+ <section class="settings-section" id="settings-tickets" data-title="Tickets">
337
+ <fieldset>
338
+ <legend>Tickets</legend>
339
+ <p class="settings-help">The ticket systems sessions can be linked to: Jira, Linear, GitHub Issues and Zendesk. Several can be connected at once. Each signs in with its own token.</p>
340
+ <ul id="tracker-list" class="filter-list"></ul>
341
+ <div class="filter-list-actions">
342
+ <button type="button" id="tracker-add" class="btn">Add a tracker</button>
343
+ </div>
344
+ <p id="tracker-protection" class="settings-help tracker-protection"></p>
345
+ </fieldset>
346
+ </section>
347
+ <section class="settings-section" id="settings-to-dos" data-title="To-dos">
348
+ <fieldset>
349
+ <legend>To-dos</legend>
350
+ <p class="settings-help" data-i18n>A to-do starts Claude in its folder. Without one, it starts in the folder below, where Claude can make a new project. <b>Choose folder</b> on a to-do picks one from:</p>
351
+ <div class="segmented">
352
+ <label><input type="radio" name="todo-source" value="repos">Repo menu</label>
353
+ <label><input type="radio" name="todo-source" value="picker">Any folder</label>
354
+ </div>
355
+ <label class="field">
356
+ <span>Start in</span>
357
+ <input id="todo-start" type="text" autocomplete="off" spellcheck="false">
358
+ </label>
359
+ <p class="settings-help">Where to-dos without a folder start, and where the repo menu and folder picker open. Leave it empty for the repos folder.</p>
360
+ </fieldset>
361
+ </section>
362
+ <section class="settings-section" id="settings-repo-menu" data-title="Repo menu">
363
+ <fieldset>
364
+ <legend>Repo menu</legend>
365
+ <p class="settings-help">Untick a folder or repo to hide it, and everything inside it, from the ☰ menu.</p>
366
+ <div class="excluded-search">
367
+ <input id="excluded-filter" type="search" placeholder="Filter folders and repos" aria-label="Filter folders and repos" autocomplete="off" spellcheck="false">
368
+ </div>
369
+ <nav id="excluded-tree" class="tree excluded-tree" aria-label="Folders and repos in the repo menu"></nav>
370
+ <div id="excluded-missing" hidden>
371
+ <p class="settings-help">Also hidden, but no longer in the repos folder:</p>
372
+ <ul id="excluded-list" class="excluded"></ul>
373
+ </div>
374
+ </fieldset>
375
+ </section>
376
+ <section class="settings-section" id="settings-help" data-title="Help">
377
+ <fieldset>
378
+ <legend>Tour</legend>
379
+ <p class="settings-help">A quick look around the dashboard, as on the first visit. The page holds still while it runs, and your sessions carry on as usual.</p>
380
+ <button type="button" id="tour-again" class="btn">Show the tour</button>
381
+ </fieldset>
382
+ <fieldset>
383
+ <legend>Updates</legend>
384
+ <label class="choice">
385
+ <input type="checkbox" id="update-check">
386
+ <span class="choice-text"><b>Tell me when a new version is out</b><span>Once a day, the server asks GitHub for Tabherd's latest release. Nothing about you or your sessions is sent.</span></span>
387
+ </label>
388
+ <label class="choice">
389
+ <input type="checkbox" id="update-prereleases">
390
+ <span class="choice-text"><b>Tell me about betas and other prereleases too</b><span>Prereleases have new features before a release does, and may have more bugs.</span></span>
391
+ </label>
392
+ <p id="update-prereleases-note" class="settings-help" hidden>This copy is a prerelease, so newer prereleases are always included.</p>
393
+ <p id="update-status" class="settings-help"></p>
394
+ <button type="button" id="update-now" class="btn">Check now</button>
395
+ </fieldset>
396
+ </section>
397
+ <p class="settings-foot">Appearance, Notifications and Sections by group are saved in this browser. The rest are saved on this computer, for every browser.</p>
398
+ </div>
399
+ </div>
400
+ </form>
401
+ </dialog>
402
+
403
+ <dialog id="todo-dialog" class="settings" aria-labelledby="todo-dialog-title">
404
+ <form id="todo-form">
405
+ <div class="settings-head">
406
+ <h2 id="todo-dialog-title">New to-do</h2>
407
+ <button type="button" id="todo-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
408
+ </div>
409
+ <label class="field">
410
+ <span>Title</span>
411
+ <input id="todo-title" type="text" required maxlength="200" autocomplete="off">
412
+ </label>
413
+ <p id="todo-from-ticket" class="settings-help" aria-live="polite" hidden></p>
414
+ <label class="field">
415
+ <span>Notes</span>
416
+ <textarea id="todo-notes" rows="7" maxlength="20000"></textarea>
417
+ </label>
418
+ <label id="todo-app-field" class="field" hidden>
419
+ <span>Start with</span>
420
+ <select id="todo-app">
421
+ <option value="" id="todo-app-default">As in Settings</option>
422
+ <option value="claude">Claude</option>
423
+ <option value="codex">Codex</option>
424
+ <option value="copilot">Copilot</option>
425
+ </select>
426
+ </label>
427
+ <label id="todo-tickets-field" class="field" hidden>
428
+ <span>Tickets</span>
429
+ <input id="todo-tickets" type="text" maxlength="2000" autocomplete="off" placeholder="ABC-123, or a link to the ticket">
430
+ </label>
431
+ <p class="settings-help">Nothing here is sent to the session. To use it as a prompt, copy it in once it's started.</p>
432
+ <div class="confirm-actions">
433
+ <button type="button" id="todo-cancel" class="btn">Cancel</button>
434
+ <button type="submit" id="todo-save" class="btn btn-primary">Add to-do</button>
435
+ </div>
436
+ </form>
437
+ </dialog>
438
+
439
+ <dialog id="ticket-dialog" class="settings" aria-labelledby="ticket-dialog-title">
440
+ <form id="ticket-form">
441
+ <div class="settings-head">
442
+ <h2 id="ticket-dialog-title">Link a ticket</h2>
443
+ <button type="button" id="ticket-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
444
+ </div>
445
+ <p class="settings-help ticket-for" id="ticket-name"></p>
446
+ <label class="field">
447
+ <span>Ticket</span>
448
+ <input id="ticket-text" type="text" required maxlength="2000" autocomplete="off" placeholder="ABC-123, or a link to the ticket">
449
+ </label>
450
+ <p class="settings-help">Paste its link or key. Name the tracker first if the key could be in more than one, as in Linear ENG-42. It's linked if the tracker has it. A session can link one itself with a line in a prompt or reply starting with Claim:, as in Claim: ABC-123.</p>
451
+ <div class="confirm-actions">
452
+ <button type="button" id="ticket-cancel" class="btn">Cancel</button>
453
+ <button type="submit" id="ticket-save" class="btn btn-primary">Link</button>
454
+ </div>
455
+ </form>
456
+ </dialog>
457
+
458
+ <dialog id="complete-dialog" class="settings" aria-labelledby="complete-dialog-title">
459
+ <form id="complete-form">
460
+ <div class="settings-head">
461
+ <h2 id="complete-dialog-title">Complete</h2>
462
+ <button type="button" id="complete-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
463
+ </div>
464
+ <p class="settings-help ticket-for" id="complete-name"></p>
465
+ <p class="settings-help">It closes, once its turn ends if it's working, and History marks it complete. Its tickets can be updated first: nothing is posted to them unless it's ticked.</p>
466
+ <div id="complete-tickets"></div>
467
+ <div class="confirm-actions">
468
+ <button type="button" id="complete-cancel" class="btn">Cancel</button>
469
+ <button type="button" id="complete-anyway" class="btn" hidden>Complete anyway</button>
470
+ <button type="submit" id="complete-save" class="btn btn-primary">Complete</button>
471
+ </div>
472
+ </form>
473
+ </dialog>
474
+
475
+ <dialog id="tracker-dialog" class="settings" aria-labelledby="tracker-dialog-title">
476
+ <form id="tracker-form">
477
+ <div class="settings-head">
478
+ <h2 id="tracker-dialog-title">New tracker</h2>
479
+ <button type="button" id="tracker-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
480
+ </div>
481
+ <label class="field">
482
+ <span>Type</span>
483
+ <select id="tracker-type">
484
+ <option value="jira">Jira</option>
485
+ <option value="linear">Linear</option>
486
+ <option value="github">GitHub Issues</option>
487
+ <option value="zendesk">Zendesk</option>
488
+ </select>
489
+ </label>
490
+ <label class="field">
491
+ <span>Name</span>
492
+ <input id="tracker-name" type="text" required maxlength="60" autocomplete="off" placeholder="Work Jira">
493
+ </label>
494
+ <label class="field" id="tracker-url-field">
495
+ <span>Address</span>
496
+ <input id="tracker-url" type="text" autocomplete="off" spellcheck="false">
497
+ </label>
498
+ <label class="field" id="tracker-auth-field">
499
+ <span>Sign in with</span>
500
+ <select id="tracker-auth">
501
+ <option value="token">Email and API token</option>
502
+ <option value="oauth">OAuth access token</option>
503
+ </select>
504
+ </label>
505
+ <label class="field" id="tracker-email-field">
506
+ <span>Email</span>
507
+ <input id="tracker-email" type="email" autocomplete="off" spellcheck="false">
508
+ </label>
509
+ <label class="field" id="tracker-token-field">
510
+ <span>Token</span>
511
+ <input id="tracker-token" type="password" autocomplete="off" spellcheck="false">
512
+ </label>
513
+ <label class="field" id="tracker-prefixes-field">
514
+ <span>Key prefixes</span>
515
+ <input id="tracker-prefixes" type="text" autocomplete="off" spellcheck="false" placeholder="ABC, OPS">
516
+ </label>
517
+ <p id="tracker-help" class="settings-help tracker-help"></p>
518
+ <div class="confirm-actions">
519
+ <button type="button" id="tracker-cancel" class="btn">Cancel</button>
520
+ <button type="submit" id="tracker-save" class="btn btn-primary">Add tracker</button>
521
+ </div>
522
+ </form>
523
+ </dialog>
524
+
525
+ <dialog id="filter-dialog" class="settings" aria-labelledby="filter-dialog-title">
526
+ <form id="filter-form">
527
+ <div class="settings-head">
528
+ <h2 id="filter-dialog-title">New filter</h2>
529
+ <button type="button" id="filter-close" class="icon-btn" title="Close" aria-label="Close">✕</button>
530
+ </div>
531
+ <label class="field">
532
+ <span>Name</span>
533
+ <input id="filter-name" type="text" required maxlength="24" autocomplete="off">
534
+ </label>
535
+ <fieldset class="filter-pick">
536
+ <legend>Status</legend>
537
+ <div id="filter-statuses" class="checks"></div>
538
+ </fieldset>
539
+ <fieldset class="filter-pick">
540
+ <legend>App</legend>
541
+ <div id="filter-apps" class="checks"></div>
542
+ </fieldset>
543
+ <fieldset id="filter-groups-field" class="filter-pick">
544
+ <legend>Group</legend>
545
+ <div id="filter-groups" class="checks"></div>
546
+ </fieldset>
547
+ <fieldset id="filter-tickets-field" class="filter-pick">
548
+ <legend>Ticket</legend>
549
+ <div id="filter-tickets" class="checks"></div>
550
+ </fieldset>
551
+ <p class="settings-help">Tick none in a row to match any.</p>
552
+ <label class="field">
553
+ <span>Name or folder has</span>
554
+ <input id="filter-text" type="text" maxlength="100" placeholder="Any words" autocomplete="off" spellcheck="false">
555
+ </label>
556
+ <label class="choice filter-todos">
557
+ <input type="checkbox" id="filter-todos">
558
+ <span class="choice-text"><b>Show to-dos</b><span>To-dos have no status, so they show if their app, group, tickets and words match.</span></span>
559
+ </label>
560
+ <p id="filter-count" class="settings-help filter-count"></p>
561
+ <div class="confirm-actions">
562
+ <button type="button" id="filter-delete" class="btn btn-stop">Delete</button>
563
+ <button type="button" id="filter-cancel" class="btn">Cancel</button>
564
+ <button type="submit" id="filter-save" class="btn btn-primary">Add filter</button>
565
+ </div>
566
+ </form>
567
+ </dialog>
568
+
569
+ <dialog id="save-close" class="confirm">
570
+ <form method="dialog">
571
+ <h2 id="save-close-title"></h2>
572
+ <p data-i18n>Each one's tab closes too. <b>Resume last session</b>, in the same menu, opens them again, carrying on each conversation.</p>
573
+ <ul id="save-close-list" class="save-close-list"></ul>
574
+ <fieldset id="save-close-busy" class="save-close-busy">
575
+ <legend id="save-close-busy-text"></legend>
576
+ <label><input type="radio" name="save-close-busy" value="wait" checked> Wait for them to finish, then close them</label>
577
+ <label><input type="radio" name="save-close-busy" value="now"> Close them now: their current turn is lost</label>
578
+ </fieldset>
579
+ <p id="save-close-left" class="save-close-left"></p>
580
+ <div class="confirm-actions">
581
+ <button value="cancel" class="btn" autofocus>Cancel</button>
582
+ <button value="save" class="btn btn-danger">Save and close</button>
583
+ </div>
584
+ </form>
585
+ </dialog>
586
+
587
+ <dialog id="update-dialog" class="settings" aria-labelledby="update-title">
588
+ <form method="dialog">
589
+ <div class="settings-head">
590
+ <h2 id="update-title"></h2>
591
+ <button value="close" class="icon-btn" title="Close" aria-label="Close">✕</button>
592
+ </div>
593
+ <p id="update-current" class="settings-help"></p>
594
+ <div id="update-notes" class="update-notes"></div>
595
+ <h3 class="update-how-title">How to update</h3>
596
+ <p id="update-how" class="update-how"></p>
597
+ <div id="update-command" class="update-command" hidden>
598
+ <code id="update-command-text"></code>
599
+ <button type="button" id="update-copy" class="btn">Copy</button>
600
+ </div>
601
+ <div class="confirm-actions">
602
+ <button value="later" class="btn">Not now</button>
603
+ <a id="update-release" class="btn btn-primary" target="_blank" rel="noopener">See the release</a>
604
+ </div>
605
+ </form>
606
+ </dialog>
607
+
608
+ <dialog id="confirm" class="confirm">
609
+ <form method="dialog">
610
+ <h2 data-i18n>Stop <span id="confirm-name"></span>?</h2>
611
+ <p id="confirm-what"></p>
612
+ <p>You can reopen the conversation later with:</p>
613
+ <pre id="confirm-resume"></pre>
614
+ <div class="confirm-actions">
615
+ <button value="cancel" class="btn" autofocus>Cancel</button>
616
+ <button value="stop" class="btn btn-danger">Stop agent</button>
617
+ </div>
618
+ </form>
619
+ </dialog>
620
+
621
+ <div id="notes" class="notes" popover role="dialog" aria-labelledby="notes-title">
622
+ <div class="notes-head">
623
+ <h2 id="notes-title">Notifications</h2>
624
+ <button type="button" id="notes-clear" class="btn">Clear all</button>
625
+ </div>
626
+ <ul id="notes-list" class="notes-list"></ul>
627
+ <p id="notes-empty" class="notes-empty">Nothing waiting. When an agent needs you or finishes, it's listed here until you clear it or the agent gets back to work.</p>
628
+ </div>
629
+
630
+ <div id="group-menu" class="menu" popover role="menu" aria-label="Group"></div>
631
+ <div id="sessions-menu" class="menu" popover role="menu" aria-label="Save and close, or resume"></div>
632
+ <div id="filter-menu" class="menu" popover role="menu" aria-label="Filter options"></div>
633
+
634
+ <dialog id="tour" class="tour" aria-labelledby="tour-title" aria-describedby="tour-text">
635
+ <div id="tour-spot" class="tour-spot" aria-hidden="true"></div>
636
+ <div id="tour-panel" class="tour-panel">
637
+ <div class="tour-head">
638
+ <span id="tour-step" class="tour-step"></span>
639
+ <button type="button" id="tour-skip" class="btn tour-skip">Skip tour <span aria-hidden="true">✕</span></button>
640
+ </div>
641
+ <h2 id="tour-title"></h2>
642
+ <p id="tour-text"></p>
643
+ <div class="tour-actions">
644
+ <button type="button" id="tour-back" class="btn">Back</button>
645
+ <button type="button" id="tour-next" class="btn btn-primary">Next</button>
646
+ </div>
647
+ </div>
648
+ </dialog>
649
+
650
+ <div id="toast" class="toast" role="status" aria-live="polite" popover="manual"></div>
651
+ <!-- Each language's words, in LANGUAGES in app.js and STATIC in server.js. -->
652
+ <script src="/lang/es.js"></script>
653
+ <script src="/app.js"></script>
654
+ </body>
655
+ </html>