@ucsandman/legcli 0.12.0 → 0.13.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.
- package/CHANGELOG.md +71 -0
- package/README.md +1 -1
- package/docs/DECISIONS.md +8 -0
- package/docs/ERRORS.md +27 -0
- package/docs/board-guide.md +129 -31
- package/docs/cli-contracts.md +42 -0
- package/docs/configuration.md +8 -2
- package/docs/screenshots/board-details-open.png +0 -0
- package/docs/screenshots/floor.png +0 -0
- package/docs/screenshots/new-card-dialog.png +0 -0
- package/fixtures/verified.json +1 -1
- package/package.json +1 -1
- package/scripts/board-jump-probe.mjs +335 -0
- package/src/attach.mjs +59 -56
- package/src/board/board.css +84 -2
- package/src/board/board.js +349 -261
- package/src/board/entry.js +343 -0
- package/src/board/floor.html +51 -39
- package/src/board/floor.js +585 -73
- package/src/board/index.html +55 -38
- package/src/board/sessions.js +342 -144
- package/src/board/strip.js +163 -0
- package/src/models.mjs +265 -0
- package/src/preferences.mjs +69 -5
- package/src/server.mjs +81 -33
- package/src/taps/claude-usage.mjs +16 -1
- package/src/usage-poll.mjs +260 -0
- package/src/usage.mjs +33 -1
package/src/board/index.html
CHANGED
|
@@ -253,29 +253,58 @@
|
|
|
253
253
|
<form id="new-card-form">
|
|
254
254
|
<div class="form-error" id="new-card-error" hidden></div>
|
|
255
255
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
<!-- Two questions, side by side on a wide screen and stacked on a phone:
|
|
257
|
+
WHAT is being asked for (left) and WHO runs it (right). The right
|
|
258
|
+
column opens showing the saved handoff ladder, so the dialog and the
|
|
259
|
+
one-line entry row above it say the same thing until the reader
|
|
260
|
+
changes one of them. -->
|
|
261
|
+
<div class="dialog-cols">
|
|
262
|
+
<div class="dialog-col">
|
|
263
|
+
|
|
264
|
+
<div class="form-row">
|
|
265
|
+
<label for="nc-task">Task</label>
|
|
266
|
+
<span class="field-help">Describe one concrete outcome the agent can finish.</span>
|
|
267
|
+
<textarea id="nc-task" rows="5" required autofocus></textarea>
|
|
268
|
+
</div>
|
|
260
269
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
270
|
+
<div class="form-row">
|
|
271
|
+
<label for="nc-repo-known">Repository</label>
|
|
272
|
+
<select id="nc-repo-known"></select>
|
|
273
|
+
<label for="nc-repo" class="sub-label">Path</label>
|
|
274
|
+
<input type="text" id="nc-repo" required autocomplete="off" spellcheck="false">
|
|
275
|
+
</div>
|
|
266
276
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
277
|
+
<div class="form-row">
|
|
278
|
+
<label for="nc-trunk">Branch to cut from</label>
|
|
279
|
+
<input type="text" id="nc-trunk" value="main" autocomplete="off" spellcheck="false">
|
|
280
|
+
<span class="field-help" id="nc-trunk-help">The card works in its own checkout cut from this branch.</span>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div class="form-row">
|
|
284
|
+
<label for="nc-queue">
|
|
285
|
+
<input type="checkbox" id="nc-queue" checked>
|
|
286
|
+
Run now
|
|
287
|
+
</label>
|
|
288
|
+
<span class="field-help">Turn this off to save a draft in Backlog.</span>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
</div>
|
|
292
|
+
<div class="dialog-col">
|
|
293
|
+
|
|
294
|
+
<div class="form-row">
|
|
295
|
+
<span class="form-label" id="nc-chain-label">Who runs it</span>
|
|
296
|
+
<span class="field-help">Leg starts at the top and takes the next row only when the row above it cannot continue. Each row is a provider and one of its models.</span>
|
|
297
|
+
<div id="nc-chain-rows" role="group" aria-labelledby="nc-chain-label"></div>
|
|
298
|
+
<button type="button" class="btn btn-secondary" id="nc-add-row">Add a fallback</button>
|
|
299
|
+
<span class="field-help" id="nc-fallback-summary"></span>
|
|
300
|
+
<label for="nc-save-ladder" class="notify-toggle">
|
|
301
|
+
<input type="checkbox" id="nc-save-ladder">
|
|
302
|
+
Save as my default ladder
|
|
303
|
+
</label>
|
|
304
|
+
<span class="field-help">Writes these rows to Settings, so the one-line entry row and every new terminal use them too.</span>
|
|
305
|
+
</div>
|
|
272
306
|
|
|
273
|
-
|
|
274
|
-
<label for="nc-queue">
|
|
275
|
-
<input type="checkbox" id="nc-queue" checked>
|
|
276
|
-
Run now
|
|
277
|
-
</label>
|
|
278
|
-
<span class="field-help">Turn this off to save a draft in Backlog.</span>
|
|
307
|
+
</div>
|
|
279
308
|
</div>
|
|
280
309
|
|
|
281
310
|
<details class="advanced-options">
|
|
@@ -292,21 +321,9 @@
|
|
|
292
321
|
<textarea id="nc-custom-pipeline" rows="4" hidden aria-label="Custom workflow JSON" placeholder='[{"name":"build","kind":"agent"}]'></textarea>
|
|
293
322
|
</div>
|
|
294
323
|
|
|
295
|
-
<div class="form-row">
|
|
296
|
-
<label>First-agent permissions and limits</label>
|
|
297
|
-
<div id="nc-first-controls"></div>
|
|
298
|
-
</div>
|
|
299
|
-
|
|
300
|
-
<div class="form-row">
|
|
301
|
-
<label>Fallback agents</label>
|
|
302
|
-
<span class="field-help">Leg tries each row in order only when the agent before it cannot continue.</span>
|
|
303
|
-
<div id="nc-chain-rows"></div>
|
|
304
|
-
<button type="button" class="btn btn-secondary" id="nc-add-row">Add fallback agent</button>
|
|
305
|
-
</div>
|
|
306
|
-
|
|
307
324
|
<div class="form-row">
|
|
308
325
|
<label for="nc-test-adapter">Scripted first agent (test/demo only)</label>
|
|
309
|
-
<select id="nc-test-adapter"><option value="">Use the real first
|
|
326
|
+
<select id="nc-test-adapter"><option value="">Use the real first row above</option></select>
|
|
310
327
|
</div>
|
|
311
328
|
|
|
312
329
|
<div class="form-row">
|
|
@@ -315,11 +332,6 @@
|
|
|
315
332
|
<input type="text" id="nc-leases">
|
|
316
333
|
</div>
|
|
317
334
|
|
|
318
|
-
<div class="form-row">
|
|
319
|
-
<label for="nc-trunk">Trunk branch</label>
|
|
320
|
-
<input type="text" id="nc-trunk" value="main">
|
|
321
|
-
</div>
|
|
322
|
-
|
|
323
335
|
<div class="form-row">
|
|
324
336
|
<label for="nc-land-mode">Merge method</label>
|
|
325
337
|
<select id="nc-land-mode">
|
|
@@ -358,6 +370,11 @@
|
|
|
358
370
|
|
|
359
371
|
<div class="sysmsg" id="toast" aria-live="polite"></div>
|
|
360
372
|
|
|
373
|
+
<!-- strip.js and entry.js are shared with /floor and are read at load by the
|
|
374
|
+
two files under them (the capacity tokens, the one-line entry), so they
|
|
375
|
+
are first: deferred scripts run in document order. -->
|
|
376
|
+
<script src="strip.js" defer></script>
|
|
377
|
+
<script src="entry.js" defer></script>
|
|
361
378
|
<script src="board.js" defer></script>
|
|
362
379
|
<script src="sessions.js" defer></script>
|
|
363
380
|
<script src="history.js" defer></script>
|