@ucsandman/legcli 0.12.0 → 0.13.1

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.
@@ -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
- <div class="form-row">
257
- <label for="nc-repo">Repo path</label>
258
- <input type="text" id="nc-repo" required autocomplete="off">
259
- </div>
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
- <div class="form-row">
262
- <label for="nc-task">Task</label>
263
- <span class="field-help">Describe one concrete outcome the agent can finish.</span>
264
- <textarea id="nc-task" rows="3" required></textarea>
265
- </div>
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
- <div class="form-row">
268
- <label for="nc-first-agent">First agent</label>
269
- <select id="nc-first-agent" required></select>
270
- <span class="field-help" id="nc-fallback-summary">If it cannot continue, Leg tries the fallback agents shown under Advanced options.</span>
271
- </div>
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
- <div class="form-row">
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 agent above</option></select>
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>