@repo-os/repoos 0.5.92 → 0.5.94
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/dist/.build-info.json +2 -2
- package/dist/.build-stamp.json +1 -1
- package/dist/cli/help.js +7 -7
- package/dist/commands/gc.js +12 -2
- package/dist/commands/help-usage.test.d.ts +1 -0
- package/dist/commands/help-usage.test.js +36 -0
- package/dist/commands/shot.d.ts +7 -0
- package/dist/commands/shot.js +6 -1
- package/dist/commands/ui-contrast-audit.js +5 -5
- package/dist/core/check-failure-summary.js +9 -1
- package/dist/core/config.d.ts +1 -1
- package/dist/core/config.js +69 -1
- package/dist/core/git.js +6 -0
- package/dist/core/model-routing/policy.js +9 -2
- package/dist/core/needs-input.js +4 -0
- package/dist/core/providers/spend.js +12 -5
- package/dist/core/review-verdict.d.ts +2 -1
- package/dist/core/review-verdict.js +2 -1
- package/dist/core/shot-fixtures.d.ts +3 -1
- package/dist/core/shot-fixtures.js +10 -0
- package/dist/core/shot-plan.d.ts +60 -1
- package/dist/core/shot-plan.js +100 -30
- package/dist/core/shot-targets.d.ts +1 -1
- package/dist/core/shot-targets.js +1 -0
- package/dist/core/story-definition-files.js +2 -2
- package/dist/core/task-underspecified.d.ts +10 -0
- package/dist/core/task-underspecified.js +65 -10
- package/dist/core/types.d.ts +11 -0
- package/dist/core/worktree-gc.d.ts +6 -0
- package/dist/core/worktree-gc.js +38 -2
- package/dist/server/__tests__/close-out-parallel.test.d.ts +1 -0
- package/dist/server/__tests__/close-out-parallel.test.js +403 -0
- package/dist/server/__tests__/close-out-scheduler.test.d.ts +1 -0
- package/dist/server/__tests__/close-out-scheduler.test.js +232 -0
- package/dist/server/__tests__/integration-job.test.js +33 -2
- package/dist/server/attention-notify.js +6 -2
- package/dist/server/close-out-progress.d.ts +173 -0
- package/dist/server/close-out-progress.js +306 -0
- package/dist/server/close-out-repair.js +47 -18
- package/dist/server/close-out-scheduler.d.ts +57 -0
- package/dist/server/close-out-scheduler.js +130 -0
- package/dist/server/git-worker.d.ts +21 -0
- package/dist/server/git-worker.js +81 -1
- package/dist/server/human-step-decision.js +6 -2
- package/dist/server/integration-job.d.ts +78 -0
- package/dist/server/integration-job.js +166 -15
- package/dist/server/integration-orchestrator.d.ts +82 -1
- package/dist/server/integration-orchestrator.js +335 -29
- package/dist/server/integration-status.d.ts +39 -2
- package/dist/server/integration-status.js +98 -27
- package/dist/server/pre-review-remote-gate.d.ts +5 -1
- package/dist/server/pre-review-remote-gate.js +2 -0
- package/dist/server/release-email.d.ts +13 -0
- package/dist/server/release-email.js +130 -39
- package/dist/server/release-history.d.ts +2 -0
- package/dist/server/release-history.js +9 -0
- package/dist/server/release.js +5 -4
- package/dist/server/remote-validation.d.ts +42 -0
- package/dist/server/remote-validation.js +150 -0
- package/dist/server/review-guard.js +49 -1
- package/dist/server/routes/config.js +24 -1
- package/dist/server/routes/inputs.js +18 -1
- package/dist/server/routes/model-providers.js +14 -4
- package/dist/server/routes/tasks.d.ts +5 -0
- package/dist/server/routes/tasks.js +51 -9
- package/dist/server/routes/telegram.js +2 -2
- package/dist/server/server.js +249 -182
- package/dist/server/shot-capture.js +3 -4
- package/dist/server/task-underspecified-flag.js +18 -5
- package/dist/ui/assets/{ActivityIndicator-BAcodpB3.js → ActivityIndicator-BeAbS87n.js} +1 -1
- package/dist/ui/assets/{AgentModelControl-CognFDUk.js → AgentModelControl-2Sbq7lGX.js} +1 -1
- package/dist/ui/assets/{AgentModelModal-BlXrbZAA.js → AgentModelModal-5rdh-PXq.js} +1 -1
- package/dist/ui/assets/AgentsView-3AhGfMtU.js +4 -0
- package/dist/ui/assets/AgentsView-C9r65Ww1.css +1 -0
- package/dist/ui/assets/{ChatAgentModelChip-BCufGZWt.js → ChatAgentModelChip-Cv96nrE3.js} +1 -1
- package/dist/ui/assets/{ChecksView-vv2VpmBZ.css → ChecksView-BreiwKu4.css} +1 -1
- package/dist/ui/assets/ChecksView-CRKxZdK-.js +0 -0
- package/dist/ui/assets/{ClientBoardView-D54CD3J9.js → ClientBoardView-xEBt3geI.js} +1 -1
- package/dist/ui/assets/ContextView-9lb3fi1E.js +5 -0
- package/dist/ui/assets/{ContextView-B5Rdzl6v.css → ContextView-B5i7uNk_.css} +1 -1
- package/dist/ui/assets/{DashboardView-DKroQ0_G.css → DashboardView-BNw6Idf7.css} +1 -1
- package/dist/ui/assets/DashboardView-DML-SwJm.js +1 -0
- package/dist/ui/assets/DependencyChip-aVw_afXH.js +1 -0
- package/dist/ui/assets/DeploymentsView-BAhhx45O.css +1 -0
- package/dist/ui/assets/DeploymentsView-D0vBCh-_.js +1 -0
- package/dist/ui/assets/{DevView-OFRBmXcb.js → DevView-Bi3kmS0A.js} +2 -2
- package/dist/ui/assets/{DiffView-BpbK7E7E.js → DiffView-C0a9if1_.js} +2 -2
- package/dist/ui/assets/DiffView-DWZAMfqy.css +1 -0
- package/dist/ui/assets/{FailedTestsList-BsgIcmYa.js → FailedTestsList-CvpNPP1B.js} +1 -1
- package/dist/ui/assets/{InputsView-D5f4iP7B.js → InputsView-dWeoR3QA.js} +1 -1
- package/dist/ui/assets/LoginView-D6WWb4ML.css +1 -0
- package/dist/ui/assets/LoginView-Dasdh16U.js +1 -0
- package/dist/ui/assets/NotFoundView-CLziAtRZ.js +1 -0
- package/dist/ui/assets/PageSkeleton-D_YN16NR.js +1 -0
- package/dist/ui/assets/{ReleasesView-J8eHMasy.js → ReleasesView-B_bRXl-7.js} +3 -3
- package/dist/ui/assets/RouteNotice-DbZHDLw3.js +1 -0
- package/dist/ui/assets/SecretsView-B-YybI69.js +1 -0
- package/dist/ui/assets/SettingsView-BXRHFm7O.js +4 -0
- package/dist/ui/assets/SettingsView-C6-VF0Qt.css +1 -0
- package/dist/ui/assets/StoriesView-DtBQtl2s.js +1 -0
- package/dist/ui/assets/VoiceDictate-CUu1gx3E.js +17 -0
- package/dist/ui/assets/WorkView-BDbHEfHG.js +2 -0
- package/dist/ui/assets/WorkView-BLjtDVdQ.css +1 -0
- package/dist/ui/assets/_plugin-vue_export-helper-GoZ6r0T0.js +39 -0
- package/dist/ui/assets/{abnfDiagram-VCTEODGH-D-bHWvQx.js → abnfDiagram-VCTEODGH-CQOB6sI_.js} +1 -1
- package/dist/ui/assets/{agent-failure-l30iR_QH.js → agent-failure-DxB0Ba74.js} +1 -1
- package/dist/ui/assets/{architectureDiagram-5GKGNRK7-BnfM38Ea.js → architectureDiagram-5GKGNRK7-C738jf7d.js} +1 -1
- package/dist/ui/assets/{blockDiagram-I7D4REHJ-CBBg7-_L.js → blockDiagram-I7D4REHJ-CtE_8Gcx.js} +1 -1
- package/dist/ui/assets/{c4Diagram-7LVT6UL2-Cc6b1vTh.js → c4Diagram-7LVT6UL2-2rNQq-eo.js} +1 -1
- package/dist/ui/assets/channel-D-e4o1fy.js +1 -0
- package/dist/ui/assets/{check-setup-xqpRoigF.js → check-setup-n5dbhIZo.js} +1 -1
- package/dist/ui/assets/{chunk-2E4U76K2-BFbCIRhe.js → chunk-2E4U76K2-CdEYtHGS.js} +1 -1
- package/dist/ui/assets/{chunk-4HAMMTFA-DYNnUlVz.js → chunk-4HAMMTFA-Dgwtte2C.js} +1 -1
- package/dist/ui/assets/{chunk-75Z2AOVW-CnZbf3kI.js → chunk-75Z2AOVW-Dkj5mpou.js} +1 -1
- package/dist/ui/assets/{chunk-CLGD4ZFX-CA9Q1E94.js → chunk-CLGD4ZFX-D9cBAa6L.js} +1 -1
- package/dist/ui/assets/{chunk-DU6HZSFF-DwYzl-gQ.js → chunk-DU6HZSFF-CykeLTG_.js} +1 -1
- package/dist/ui/assets/{chunk-F27PBJKO-D00oD-xv.js → chunk-F27PBJKO-KI6LDcIq.js} +1 -1
- package/dist/ui/assets/{chunk-GMAD6QVW-soTPNJXR.js → chunk-GMAD6QVW-Zqagj6Sz.js} +1 -1
- package/dist/ui/assets/{chunk-GVQU2GXP-DYy84SXq.js → chunk-GVQU2GXP-A7tAMXsf.js} +1 -1
- package/dist/ui/assets/{chunk-IMKFNOWR-DvSCdPPU.js → chunk-IMKFNOWR-B4pfU8MS.js} +1 -1
- package/dist/ui/assets/{chunk-L3NEJ4N5-B4s-ZnhH.js → chunk-L3NEJ4N5-D8X0gAhO.js} +1 -1
- package/dist/ui/assets/{chunk-OSK3NFVY-noUbjjt7.js → chunk-OSK3NFVY-Dpv1DxEV.js} +1 -1
- package/dist/ui/assets/{chunk-P2QGCYS3-CUzBN63t.js → chunk-P2QGCYS3-CHH6ioNE.js} +1 -1
- package/dist/ui/assets/{chunk-POPQ4Y6H-BPLsk7Ce.js → chunk-POPQ4Y6H-CDNwt9kk.js} +1 -1
- package/dist/ui/assets/{chunk-PWAF6VOD-10VLiUcg.js → chunk-PWAF6VOD-Dn8oH62R.js} +1 -1
- package/dist/ui/assets/{chunk-SHT3W25Y-C9ZCyTpu.js → chunk-SHT3W25Y-uEAVqkcf.js} +1 -1
- package/dist/ui/assets/{chunk-SVP7TREG-CTtqSSVE.js → chunk-SVP7TREG-DyxtOVJR.js} +1 -1
- package/dist/ui/assets/{chunk-TICWLB2K-yrt48cWI.js → chunk-TICWLB2K-CZif683b.js} +1 -1
- package/dist/ui/assets/{chunk-TLUHSLCS-vTh-Ks6x.js → chunk-TLUHSLCS-CbuLTxNb.js} +2 -2
- package/dist/ui/assets/classDiagram-ZZMXUADV-yMKlPYKF.js +1 -0
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-yMKlPYKF.js +1 -0
- package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-DbTuWYsn.js → cynefinDiagram-5FMLGOSQ-C6Udddit.js} +1 -1
- package/dist/ui/assets/{dagre-GXQ25YYZ-JZ8rKSGL.js → dagre-GXQ25YYZ-DGrhJ1kt.js} +1 -1
- package/dist/ui/assets/{diagram-S7CK7UJ4-DozuYZ5v.js → diagram-S7CK7UJ4-B-f1lv24.js} +1 -1
- package/dist/ui/assets/{diagram-UQ7AKVKN-EjReFZD_.js → diagram-UQ7AKVKN-Bd4CucmI.js} +1 -1
- package/dist/ui/assets/{diagram-VSXAHHWV-CoI6xXJR.js → diagram-VSXAHHWV-DZJJWr7v.js} +1 -1
- package/dist/ui/assets/{diagram-VX7I27RA-BAQLLea1.js → diagram-VX7I27RA-DUIcR9D2.js} +1 -1
- package/dist/ui/assets/{diagram-Z3DM3KII-sImX--30.js → diagram-Z3DM3KII-BzCb6yyG.js} +1 -1
- package/dist/ui/assets/docs-Dgsl2Lus.js +1 -0
- package/dist/ui/assets/{ebnfDiagram-PWID7BFC-4-EZK45g.js → ebnfDiagram-PWID7BFC-Cp89Sb2K.js} +1 -1
- package/dist/ui/assets/{erDiagram-RLTQ6QDP-D_XlxqhG.js → erDiagram-RLTQ6QDP-DP7Zytfe.js} +1 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-B6Hl2Zu6.js +1 -0
- package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-DsH9xlB9.js → ganttDiagram-EL5Y4UJY-VbX7dw12.js} +1 -1
- package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-4VcQIUQs.js → gitGraphDiagram-WWUBYQGX-TE4It0GX.js} +1 -1
- package/dist/ui/assets/index-BCAYWGK7.js +112 -0
- package/dist/ui/assets/index-BWc2yVOL.css +1 -0
- package/dist/ui/assets/{infoDiagram-27XIBGKW-CLp07U4U.js → infoDiagram-27XIBGKW-Yy7ko1Z6.js} +1 -1
- package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-DHyybN4S.js → ishikawaDiagram-5VMMS53U-D3Ep8x_w.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-3NMN7TZE-DEeuFca9.js → journeyDiagram-3NMN7TZE-CQCChwqq.js} +1 -1
- package/dist/ui/assets/{kanban-definition-UXKFOSKX-CHN8drwJ.js → kanban-definition-UXKFOSKX-3M6qLTzN.js} +1 -1
- package/dist/ui/assets/{line-Gl6rXSAb.js → line-D4-qJcIJ.js} +1 -1
- package/dist/ui/assets/{mermaid-parser.core-D_Tb6YLS.js → mermaid-parser.core-CHGDgAsW.js} +1 -1
- package/dist/ui/assets/{mermaid.core-DT6J3m0d.js → mermaid.core-D_NxnoSe.js} +3 -3
- package/dist/ui/assets/{mindmap-definition-YA3MSWOX-B3ObuJ3D.js → mindmap-definition-YA3MSWOX-CzaaiuQO.js} +1 -1
- package/dist/ui/assets/{pegDiagram-XKGWAZYB-DKKqNhAl.js → pegDiagram-XKGWAZYB-Bewp8CnK.js} +1 -1
- package/dist/ui/assets/{pieDiagram-E7YTZNPT-BFuF3WtM.js → pieDiagram-E7YTZNPT-M9IYv9CW.js} +1 -1
- package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-SxPbTouY.js → quadrantDiagram-AXDQQJYC-DjK4H9J5.js} +1 -1
- package/dist/ui/assets/{railroadDiagram-O6MQD6OU-CDbTh97N.js → railroadDiagram-O6MQD6OU-iN_NP2IN.js} +1 -1
- package/dist/ui/assets/repo-9gQ3oGZ8.js +44 -0
- package/dist/ui/assets/{requirementDiagram-BXWQKSXE-Bs-GFKEa.js → requirementDiagram-BXWQKSXE-Cu1IbVKn.js} +1 -1
- package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-D7T8G0Ax.js → sankeyDiagram-P5KCCOFB-Cb7rg9s3.js} +1 -1
- package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-BN37N1BT.js → sequenceDiagram-WJ2MYXX4-B1gYuq1k.js} +1 -1
- package/dist/ui/assets/{stateDiagram-D77RDMKH-DPK9RHNv.js → stateDiagram-D77RDMKH-LYtzKCJs.js} +1 -1
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-BFwRUbyz.js +1 -0
- package/dist/ui/assets/{swimlanes-42K2YHIH-B8HRPbJd.js → swimlanes-42K2YHIH-wURfWaBm.js} +1 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-DpBidr-b.js +8 -0
- package/dist/ui/assets/{timeline-definition-24CTP7MA-Bn1BpGMq.js → timeline-definition-24CTP7MA-B_z7jfBq.js} +1 -1
- package/dist/ui/assets/{vennDiagram-4TSXK5OY-B5dw0TnP.js → vennDiagram-4TSXK5OY-CicQANat.js} +1 -1
- package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-hNcz_h6K.js → wardleyDiagram-VM6X3IG4-CzjJV58Y.js} +1 -1
- package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-DD8p4wxv.js → xychartDiagram-S5SC5T6Z-DBcIjaEX.js} +1 -1
- package/dist/ui/index.html +13 -13
- package/dist/ui/sw.js +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/AgentsView-BwT7Hdqh.js +0 -2
- package/dist/ui/assets/AgentsView-CYcW2W1V.css +0 -1
- package/dist/ui/assets/ChecksView-DIwpiyDp.js +0 -0
- package/dist/ui/assets/ConfirmDialog-DJczbtU0.js +0 -1
- package/dist/ui/assets/ContextView-DvgVUnCg.js +0 -4
- package/dist/ui/assets/DashboardView-uoMgJiI1.js +0 -1
- package/dist/ui/assets/DeploymentsView-Cp012Ol5.css +0 -1
- package/dist/ui/assets/DeploymentsView-DH33u2bU.js +0 -1
- package/dist/ui/assets/DiffView-nIrAbr64.css +0 -1
- package/dist/ui/assets/LoginView-DLs9wmx3.css +0 -1
- package/dist/ui/assets/LoginView-JNHBZ7sq.js +0 -1
- package/dist/ui/assets/PageSkeleton-a7KWsqZj.js +0 -1
- package/dist/ui/assets/SecretsView-CGKf6YA2.js +0 -1
- package/dist/ui/assets/SettingsView-B83mU1Ai.css +0 -1
- package/dist/ui/assets/SettingsView-BBwhYFoe.js +0 -4
- package/dist/ui/assets/StoriesView-BgXfFRty.js +0 -1
- package/dist/ui/assets/VoiceDictate-BOTIaIEm.js +0 -16
- package/dist/ui/assets/WorkView-Dbu4Su4I.js +0 -2
- package/dist/ui/assets/WorkView-LH9v_m1-.css +0 -1
- package/dist/ui/assets/_plugin-vue_export-helper-B-7jKWYS.js +0 -37
- package/dist/ui/assets/channel-D1uPGa4V.js +0 -1
- package/dist/ui/assets/classDiagram-ZZMXUADV-Cfa_N-25.js +0 -1
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-Cfa_N-25.js +0 -1
- package/dist/ui/assets/docs-HP47hTTR.js +0 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-C1zPkt8s.js +0 -1
- package/dist/ui/assets/index-CO7taHt2.css +0 -1
- package/dist/ui/assets/index-WTREy1tJ.js +0 -109
- package/dist/ui/assets/repo-BlQoHXqa.js +0 -44
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-iJyBxeuE.js +0 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-76Ue_ERp.js +0 -8
package/dist/.build-info.json
CHANGED
package/dist/.build-stamp.json
CHANGED
package/dist/cli/help.js
CHANGED
|
@@ -329,9 +329,9 @@ export const GROUPS = [
|
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
name: "check",
|
|
332
|
-
usage: "check [--profile <name>] [--changed <ref>] [--print-plan] [--fix] [--step <name>] [--local-tests]",
|
|
332
|
+
usage: "check [--profile <name>|-p <name>] [--changed <ref>] [--print-plan] [--fix] [--step <name>] [--steps <name>] [--local-tests]",
|
|
333
333
|
desc: "Definition-of-done gate: runs the plan declared in repoos.toml",
|
|
334
|
-
flags: "--profile <name> · --changed <ref> · --print-plan · --fix · --step <name> · --local-tests",
|
|
334
|
+
flags: "--profile <name> · -p <name> · --changed <ref> · --print-plan · --fix · --step <name> · --steps <name> · --local-tests",
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
name: "checks timings",
|
|
@@ -347,9 +347,9 @@ export const GROUPS = [
|
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
name: "doctor",
|
|
350
|
-
usage: "doctor [--json] [--verbose] [--probe <cli> [--model <id>]] [--binary <path>]",
|
|
350
|
+
usage: "doctor [--json] [--verbose] [--probe <cli> [--model <id>]] [--yes] [--binary <path>]",
|
|
351
351
|
desc: "Readiness preflight: config, layout, tools, server and secrets",
|
|
352
|
-
flags: "--json · --verbose · --probe <cli> · --model <id> · --binary <path>",
|
|
352
|
+
flags: "--json · --verbose · --probe <cli> · --model <id> · --yes · --binary <path>",
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
name: "secrets",
|
|
@@ -375,7 +375,7 @@ export const GROUPS = [
|
|
|
375
375
|
commands: [
|
|
376
376
|
{
|
|
377
377
|
name: "serve",
|
|
378
|
-
usage: "serve [--port N] [--host <h>] [--no-tailscale-https] [--quiet]",
|
|
378
|
+
usage: "serve [--port N] [--host <h>] [--no-tailscale-https] [--preview-overrides|--no-preview-overrides] [--quiet]",
|
|
379
379
|
desc: "Start the local server (live API + SSE stream)",
|
|
380
380
|
flags: "--port N · --host <h> · --no-tailscale-https · --preview-overrides · --no-preview-overrides · --quiet",
|
|
381
381
|
},
|
|
@@ -411,9 +411,9 @@ export const GROUPS = [
|
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
name: "shot",
|
|
414
|
-
usage: "shot [<route|url>] [--target <t>] [--selector <css>] [--task <id>]",
|
|
414
|
+
usage: "shot [<route|url>] [--target <t>] [--selector <css>] [--env KEY=VALUE] [--glob <glob>] [--task <id>] [--base <ref>] [--wait <ms>] [--viewport WxH] [--full-page]",
|
|
415
415
|
desc: "Capture preview screenshots into the task's shots folder",
|
|
416
|
-
flags: "--target --selector --task --base --wait --viewport --full-page",
|
|
416
|
+
flags: "--target · --selector · --env · --glob · --task · --base · --wait · --viewport · --full-page",
|
|
417
417
|
},
|
|
418
418
|
],
|
|
419
419
|
},
|
package/dist/commands/gc.js
CHANGED
|
@@ -31,6 +31,7 @@ function printReport(report, title) {
|
|
|
31
31
|
const detail = formatGcEntryDetails(k);
|
|
32
32
|
if (detail)
|
|
33
33
|
console.log(c.dim(` ${detail}`));
|
|
34
|
+
console.log(c.dim(` class: ${k.protectedClass} · age: ${k.ageDays === undefined ? "unknown" : `${k.ageDays}d`} · last commit: ${k.lastCommitDate ?? "unknown"} · merged: ${k.branchMerged ? "yes" : "no"} · action: ${k.recommendedAction}`));
|
|
34
35
|
}
|
|
35
36
|
for (const e of report.external) {
|
|
36
37
|
console.log(` ${c.dim("external")} ${e.branch || c.dim("(detached)")} ${c.dim(e.path)}`);
|
|
@@ -43,13 +44,22 @@ function printReport(report, title) {
|
|
|
43
44
|
}
|
|
44
45
|
export function cmdGc(argv) {
|
|
45
46
|
const dryRun = argv.includes("--dry-run") || argv.includes("-n");
|
|
47
|
+
const json = argv.includes("--json");
|
|
46
48
|
// `--yes` is accepted as a no-op compatibility alias: the default sweep is
|
|
47
49
|
// already the same safe policy, with the same fail-closed guards.
|
|
48
50
|
const { root } = boardRoot();
|
|
49
51
|
const { config } = createRepoOS(root);
|
|
50
52
|
if (dryRun) {
|
|
51
|
-
|
|
53
|
+
const report = sweepStaleWorktrees(config, { mode: "full", dryRun: true });
|
|
54
|
+
if (json)
|
|
55
|
+
console.log(JSON.stringify(report, null, 2));
|
|
56
|
+
else
|
|
57
|
+
printReport(report, "gc — dry run");
|
|
52
58
|
return;
|
|
53
59
|
}
|
|
54
|
-
|
|
60
|
+
const report = sweepStaleWorktrees(config, { mode: "full" });
|
|
61
|
+
if (json)
|
|
62
|
+
console.log(JSON.stringify(report, null, 2));
|
|
63
|
+
else
|
|
64
|
+
printReport(report, "gc");
|
|
55
65
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { commandUsage, renderHelp } from "../cli/help.js";
|
|
3
|
+
import { parseCheckArgs } from "./check.js";
|
|
4
|
+
import { parseDoctorArgs } from "./doctor.js";
|
|
5
|
+
import { parseShotArgs } from "./shot.js";
|
|
6
|
+
describe("CLI help usage stays aligned with implemented flags", () => {
|
|
7
|
+
it.each([
|
|
8
|
+
["check", "--profile", () => parseCheckArgs(["--profile", "fast"]).profile],
|
|
9
|
+
["check", "-p", () => parseCheckArgs(["-p", "fast"]).profile],
|
|
10
|
+
["check", "--changed", () => parseCheckArgs(["--changed", "main"]).changed],
|
|
11
|
+
["check", "--print-plan", () => parseCheckArgs(["--print-plan"]).printPlan],
|
|
12
|
+
["check", "--fix", () => parseCheckArgs(["--fix"]).fix],
|
|
13
|
+
["check", "--step", () => parseCheckArgs(["--step", "build"]).steps],
|
|
14
|
+
["check", "--steps", () => parseCheckArgs(["--steps", "build"]).steps],
|
|
15
|
+
["check", "--local-tests", () => parseCheckArgs(["--local-tests"]).localTestsOnly],
|
|
16
|
+
["doctor", "--json", () => parseDoctorArgs(["--json"]).json],
|
|
17
|
+
["doctor", "--verbose", () => parseDoctorArgs(["--verbose"]).verbose],
|
|
18
|
+
["doctor", "--probe", () => parseDoctorArgs(["--probe", "cursor"]).probe],
|
|
19
|
+
["doctor", "--model", () => parseDoctorArgs(["--model", "model-id"]).model],
|
|
20
|
+
["doctor", "--yes", () => parseDoctorArgs(["--yes"]).yes],
|
|
21
|
+
["doctor", "--binary", () => parseDoctorArgs(["--binary", "/bin/tool"]).binary],
|
|
22
|
+
["shot", "--target", () => parseShotArgs(["--target", "default"]).target],
|
|
23
|
+
["shot", "--selector", () => parseShotArgs(["--selector", "body"]).selector],
|
|
24
|
+
["shot", "--env", () => parseShotArgs(["--env", "MODE=test"]).env],
|
|
25
|
+
["shot", "--glob", () => parseShotArgs(["--glob", "src/**/*.ts"]).glob],
|
|
26
|
+
["shot", "--task", () => parseShotArgs(["--task", "1"]).taskId],
|
|
27
|
+
["shot", "--base", () => parseShotArgs(["--base", "main"]).base],
|
|
28
|
+
["shot", "--wait", () => parseShotArgs(["--wait", "10"]).waitMsExplicit],
|
|
29
|
+
["shot", "--viewport", () => parseShotArgs(["--viewport", "800x600"]).viewportExplicit],
|
|
30
|
+
["shot", "--full-page", () => parseShotArgs(["--full-page"]).fullPage],
|
|
31
|
+
])("%s documents parser flag %s in banner and command usage", (command, flag, parse) => {
|
|
32
|
+
expect(parse()).toBeTruthy();
|
|
33
|
+
expect(renderHelp()).toContain(flag);
|
|
34
|
+
expect(commandUsage(command) ?? "").toContain(flag);
|
|
35
|
+
});
|
|
36
|
+
});
|
package/dist/commands/shot.d.ts
CHANGED
|
@@ -56,6 +56,13 @@ export interface CliShotPlanInput {
|
|
|
56
56
|
fixtureValidator?: (id: string) => boolean;
|
|
57
57
|
/** The target that serves the main app, for state/app-route defaults (#0866). */
|
|
58
58
|
appTarget?: string;
|
|
59
|
+
/** The `--viewport` size (default 1280x800), the size an undeclared web shot gets (#1267). */
|
|
60
|
+
viewport?: {
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
|
+
};
|
|
64
|
+
/** True when `--viewport` was typed: the fallback captures that one size only (#1267). */
|
|
65
|
+
viewportExplicit?: boolean;
|
|
59
66
|
}
|
|
60
67
|
/** The plan plus the visible notes `cmdShot` prints alongside it. */
|
|
61
68
|
export interface CliShotPlan {
|
package/dist/commands/shot.js
CHANGED
|
@@ -191,6 +191,8 @@ export function buildCliShotPlan(input) {
|
|
|
191
191
|
selector: input.selector,
|
|
192
192
|
...(input.env ? { env: input.env } : {}),
|
|
193
193
|
...(input.glob ? { glob: input.glob } : {}),
|
|
194
|
+
...(input.viewport ? { defaultViewport: input.viewport } : {}),
|
|
195
|
+
...(input.viewportExplicit && input.viewport ? { viewports: [input.viewport] } : {}),
|
|
194
196
|
});
|
|
195
197
|
return {
|
|
196
198
|
entries: built.entries,
|
|
@@ -429,7 +431,8 @@ export async function cmdShot(args) {
|
|
|
429
431
|
--base <ref> Base branch for changed-path resolution (default "main")
|
|
430
432
|
--wait <ms> Settle time after load before capturing (default 900)
|
|
431
433
|
--full-page Capture the full scrollable page
|
|
432
|
-
--viewport <WxH> Viewport size (default
|
|
434
|
+
--viewport <WxH> Viewport size for every capture (default: an undeclared
|
|
435
|
+
capture shoots phone 390x844 and desktop 1280x800)`);
|
|
433
436
|
return 0;
|
|
434
437
|
}
|
|
435
438
|
if (opts.error) {
|
|
@@ -540,6 +543,8 @@ export async function cmdShot(args) {
|
|
|
540
543
|
...(opts.env ? { env: opts.env } : {}),
|
|
541
544
|
...(opts.glob ? { glob: opts.glob } : {}),
|
|
542
545
|
...(fixtureValidator ? { fixtureValidator } : {}),
|
|
546
|
+
viewport: opts.viewport,
|
|
547
|
+
viewportExplicit: opts.viewportExplicit,
|
|
543
548
|
});
|
|
544
549
|
for (const error of built.declaredErrors) {
|
|
545
550
|
console.error(c.yellow(" · ") + `declared shot list: ${error}`);
|
|
@@ -671,7 +671,7 @@ export function makeAuditFixture() {
|
|
|
671
671
|
for (const taskId of ["0001", "0002"]) {
|
|
672
672
|
localShotStore(config, taskId).save({
|
|
673
673
|
target: "default",
|
|
674
|
-
route: "/",
|
|
674
|
+
route: "/control",
|
|
675
675
|
label: "Dashboard",
|
|
676
676
|
provenance: "declared: Dashboard",
|
|
677
677
|
data: PNG_1PX,
|
|
@@ -713,10 +713,10 @@ export function makeAuditFixture() {
|
|
|
713
713
|
captureDetails: [
|
|
714
714
|
{
|
|
715
715
|
target: "default",
|
|
716
|
-
route: "/",
|
|
716
|
+
route: "/control",
|
|
717
717
|
label: "Dashboard",
|
|
718
|
-
url: "http://127.0.0.1:0/",
|
|
719
|
-
finalRoute: "/",
|
|
718
|
+
url: "http://127.0.0.1:0/control",
|
|
719
|
+
finalRoute: "/control",
|
|
720
720
|
routeMatched: true,
|
|
721
721
|
assertions: [],
|
|
722
722
|
assertionsPassed: 0,
|
|
@@ -824,7 +824,7 @@ function makeScreens(url) {
|
|
|
824
824
|
await waitFor(page, () => document.querySelectorAll('[role="dialog"] .drawer-tabs').length > 0, 5000);
|
|
825
825
|
};
|
|
826
826
|
return [
|
|
827
|
-
{ name: "dashboard", prepare: (p) => gotoApp(p, url, "/") },
|
|
827
|
+
{ name: "dashboard", prepare: (p) => gotoApp(p, url, "/control") },
|
|
828
828
|
{
|
|
829
829
|
name: "board",
|
|
830
830
|
prepare: async (p) => {
|
|
@@ -9,6 +9,10 @@ export function isStackFrameLine(line) {
|
|
|
9
9
|
}
|
|
10
10
|
/** Result-block detail lines that carry no diagnosis on their own. */
|
|
11
11
|
const TRIVIAL_STEP_DETAIL = /^(?:exited \d+|tsc failed|command failed(?:\s+with exit \d+)?[.:]?)$/i;
|
|
12
|
+
/** The `◆ <label>` heading `repoos check` prints before each section (#1288). */
|
|
13
|
+
const SECTION_HEADING = /^◆\s/;
|
|
14
|
+
/** The `✗` marker on a failed check or plan line, printed without a `Results` block. */
|
|
15
|
+
const FAILURE_MARKER = /^✗\s*/;
|
|
12
16
|
function outputBeforeResultsBlock(output) {
|
|
13
17
|
const lines = stripAnsi(output).split("\n");
|
|
14
18
|
const idx = lines.findIndex((line) => /──\s*Results\s*──/.test(line));
|
|
@@ -29,12 +33,16 @@ export function pickErrorLineFromStepOutput(output) {
|
|
|
29
33
|
if (lines.length === 0)
|
|
30
34
|
return null;
|
|
31
35
|
const nonStack = lines.filter((line) => !isStackFrameLine(line));
|
|
32
|
-
|
|
36
|
+
// `◆ Section` headings name the step; they are never the diagnosis (#1288).
|
|
37
|
+
const significant = nonStack.filter((line) => !TRIVIAL_STEP_DETAIL.test(line) && !SECTION_HEADING.test(line));
|
|
33
38
|
const errorish = significant.find((line) => /error TS\d+:/i.test(line) ||
|
|
34
39
|
/^(?:[A-Za-z]*Error|Error):/.test(line) ||
|
|
35
40
|
/^Error \[[A-Z0-9_]+\]:/.test(line));
|
|
36
41
|
if (errorish)
|
|
37
42
|
return errorish;
|
|
43
|
+
const marked = significant.find((line) => FAILURE_MARKER.test(line));
|
|
44
|
+
if (marked)
|
|
45
|
+
return marked.replace(FAILURE_MARKER, "");
|
|
38
46
|
if (significant.length > 0)
|
|
39
47
|
return significant[0];
|
|
40
48
|
if (nonStack.length > 0 && lines.some(isStackFrameLine))
|
package/dist/core/config.d.ts
CHANGED
|
@@ -320,7 +320,7 @@ export interface ConfigFieldMeta {
|
|
|
320
320
|
step?: number;
|
|
321
321
|
}
|
|
322
322
|
/** Select fields whose dropdown/API representations persist as numeric config values. */
|
|
323
|
-
export declare const NUMERIC_SELECT_CONFIG_KEYS: readonly ["maxActiveTasks", "maxConcurrentAgents", "remoteValidation.maxConcurrent", "worktreeWarnThreshold", "heavySlots", "vitest.maxWorkers", "localChecks.maxConcurrent", "playwright.workers", "playwright.maxConcurrent"];
|
|
323
|
+
export declare const NUMERIC_SELECT_CONFIG_KEYS: readonly ["maxActiveTasks", "maxParallelValidations", "maxConcurrentAgents", "remoteValidation.maxConcurrent", "worktreeWarnThreshold", "heavySlots", "vitest.maxWorkers", "localChecks.maxConcurrent", "playwright.workers", "playwright.maxConcurrent"];
|
|
324
324
|
export declare function getConfigSchema(): ConfigFieldMeta[];
|
|
325
325
|
/**
|
|
326
326
|
* Every `repoos.toml` key the parser supports, as dotted paths — the contract
|
package/dist/core/config.js
CHANGED
|
@@ -88,7 +88,11 @@ export const DEFAULT_AGENTS = [
|
|
|
88
88
|
"needs a Settings control, a `getConfigSchema()` entry, an entry in the supported-keys list and docs. Run " +
|
|
89
89
|
"the scoped check once and hand off only when it passes; end the final message with the handoff signal " +
|
|
90
90
|
"alone on its own line. After a merge conflict with the base branch, merge it and take the base branch's " +
|
|
91
|
-
"copy of the task file, rebuild, then hand off. Never move your own task out of `active`.
|
|
91
|
+
"copy of the task file, rebuild, then hand off. Never move your own task out of `active`. " +
|
|
92
|
+
"Do not build user-visible UI the task body does not name (a new picker, search box, control, screen, or a " +
|
|
93
|
+
"materially changed visible behaviour): before building it, flag the task with `repoos update <id> --needs-input true " +
|
|
94
|
+
'--questions "<the proposal>"`, do not hand off, and end your turn. A QA pass fixes defects only and files ' +
|
|
95
|
+
"new-UI ideas as proposals, never builds them. If an acceptance " +
|
|
92
96
|
"criterion needs a human (a real device, account or runner), ask for it to be split into a held human task with a complete `## Step-by-step guide`: numbered instructions, exact commands or click paths, safe secret storage, likely failures, success checks, and what to report back " +
|
|
93
97
|
"instead of claiming it works. " +
|
|
94
98
|
"Never invent evidence: do not fabricate device sessions, live API measurements, external account IDs, " +
|
|
@@ -111,6 +115,7 @@ export const DEFAULT_AGENTS = [
|
|
|
111
115
|
"Evidence alone never blocks: when the ONLY findings are stale, missing or wrong captures, the verdict is `good to go`, and you name the affected captures under Suggestions so the human can look. A capture that shows a real visual defect is a bug, not an evidence gap. " +
|
|
112
116
|
"Before `good to go`, confirm the branch merges cleanly with its base (`git merge-tree --write-tree <base> HEAD`); a conflict is `needs some work`, and name the conflicting files. " +
|
|
113
117
|
"After about five `needs some work` passes on one task, open the next report with a short summary of the repeated classes and flag the task for a human. " +
|
|
118
|
+
"Check the diff for user-visible UI the task body does not name (a new picker, search, control, screen, or changed visible behaviour). List each one under Bugs as blocking, for a human to confirm; do not approve it. " +
|
|
114
119
|
"Treat as blocking any invented or impossible evidence (physical-device sessions, measurements, external accounts or registrations marked confirmed, live API outcomes without a stated safe call) and any write the spec forbids — compare read-only specs to write calls in the diff and transcript. " +
|
|
115
120
|
"Never changes a task's status. Never use `pkill`, `killall`, or other pattern kills.",
|
|
116
121
|
},
|
|
@@ -242,6 +247,7 @@ export const DEFAULT_CONFIG = {
|
|
|
242
247
|
},
|
|
243
248
|
skillSuggestions: false,
|
|
244
249
|
maxActiveTasks: 3,
|
|
250
|
+
maxParallelValidations: 2,
|
|
245
251
|
worktreeWarnThreshold: 20,
|
|
246
252
|
board: {
|
|
247
253
|
agentPopoverCloseSeconds: 15,
|
|
@@ -1654,6 +1660,12 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
1654
1660
|
const maxActiveTasks = get("maxActiveTasks");
|
|
1655
1661
|
if (typeof maxActiveTasks === "number" && maxActiveTasks >= 1 && maxActiveTasks <= 20)
|
|
1656
1662
|
cfg.maxActiveTasks = maxActiveTasks;
|
|
1663
|
+
const maxParallelValidations = get("maxParallelValidations");
|
|
1664
|
+
if (typeof maxParallelValidations === "number" &&
|
|
1665
|
+
Number.isInteger(maxParallelValidations) &&
|
|
1666
|
+
maxParallelValidations >= 1 &&
|
|
1667
|
+
maxParallelValidations <= 8)
|
|
1668
|
+
cfg.maxParallelValidations = maxParallelValidations;
|
|
1657
1669
|
const worktreeWarnThreshold = get("worktreeWarnThreshold");
|
|
1658
1670
|
if (typeof worktreeWarnThreshold === "number" && worktreeWarnThreshold >= 0)
|
|
1659
1671
|
cfg.worktreeWarnThreshold = Math.floor(worktreeWarnThreshold);
|
|
@@ -1708,6 +1720,8 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
1708
1720
|
// recover, while the API now writes new values as numbers.
|
|
1709
1721
|
if (typeof maxActiveTasks === "string" && /^(?:[1-9]|1\d|20)$/.test(maxActiveTasks))
|
|
1710
1722
|
cfg.maxActiveTasks = Number(maxActiveTasks);
|
|
1723
|
+
if (typeof maxParallelValidations === "string" && /^[1-8]$/.test(maxParallelValidations))
|
|
1724
|
+
cfg.maxParallelValidations = Number(maxParallelValidations);
|
|
1711
1725
|
const maxConcurrentAgents = get("maxConcurrentAgents");
|
|
1712
1726
|
if (typeof maxConcurrentAgents === "number" &&
|
|
1713
1727
|
maxConcurrentAgents >= 1 &&
|
|
@@ -2436,6 +2450,18 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
2436
2450
|
if (Object.keys(routing.config).length)
|
|
2437
2451
|
cfg.modelRouting = routing.config;
|
|
2438
2452
|
}
|
|
2453
|
+
const humanTaskMode = parsed["humanTaskCheck.mode"];
|
|
2454
|
+
const humanTaskKeywords = parsed["humanTaskCheck.keywords"];
|
|
2455
|
+
if (humanTaskMode !== undefined || humanTaskKeywords !== undefined) {
|
|
2456
|
+
cfg.humanTaskCheck = {
|
|
2457
|
+
mode: humanTaskMode === "keywords" || humanTaskMode === "model" || humanTaskMode === "both"
|
|
2458
|
+
? humanTaskMode
|
|
2459
|
+
: "both",
|
|
2460
|
+
...(Array.isArray(humanTaskKeywords)
|
|
2461
|
+
? { keywords: humanTaskKeywords.filter((v) => typeof v === "string") }
|
|
2462
|
+
: {}),
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2439
2465
|
const closeOutInstallCommand = parsed["closeOut.installCommand"];
|
|
2440
2466
|
if (typeof closeOutInstallCommand === "string" && closeOutInstallCommand.trim()) {
|
|
2441
2467
|
cfg.closeOut = {
|
|
@@ -2630,6 +2656,7 @@ export function applyReloadedConfig(holder, fresh) {
|
|
|
2630
2656
|
/** Select fields whose dropdown/API representations persist as numeric config values. */
|
|
2631
2657
|
export const NUMERIC_SELECT_CONFIG_KEYS = [
|
|
2632
2658
|
"maxActiveTasks",
|
|
2659
|
+
"maxParallelValidations",
|
|
2633
2660
|
"maxConcurrentAgents",
|
|
2634
2661
|
"remoteValidation.maxConcurrent",
|
|
2635
2662
|
"worktreeWarnThreshold",
|
|
@@ -3177,6 +3204,19 @@ export function getConfigSchema() {
|
|
|
3177
3204
|
}),
|
|
3178
3205
|
description: "Maximum number of simultaneously active tasks when auto-engineering mode is enabled (1-20)",
|
|
3179
3206
|
},
|
|
3207
|
+
{
|
|
3208
|
+
key: "maxParallelValidations",
|
|
3209
|
+
label: "Parallel close-out validations",
|
|
3210
|
+
type: "select",
|
|
3211
|
+
tier: "live",
|
|
3212
|
+
restartRequired: false,
|
|
3213
|
+
default: String(DEFAULT_CONFIG.maxParallelValidations),
|
|
3214
|
+
options: Array.from({ length: 8 }, (_, i) => ({
|
|
3215
|
+
value: String(i + 1),
|
|
3216
|
+
label: String(i + 1),
|
|
3217
|
+
})),
|
|
3218
|
+
description: "How many queued close-outs may validate (build and check) at once, across runner hosts. Publishing to main stays serial in queue order, and a job whose base moved is re-validated before it publishes. Default 2; 1 restores one-at-a-time close-outs. Extra runs wait while the memory pressure guard is holding new work.",
|
|
3219
|
+
},
|
|
3180
3220
|
{
|
|
3181
3221
|
key: "worktreeWarnThreshold",
|
|
3182
3222
|
label: "Worktree warning threshold",
|
|
@@ -4404,6 +4444,29 @@ export function getConfigSchema() {
|
|
|
4404
4444
|
default: 8000,
|
|
4405
4445
|
description: "How long one routing decision may take before the configured fallback is used. Between 0.5 and 60 seconds.",
|
|
4406
4446
|
},
|
|
4447
|
+
{
|
|
4448
|
+
key: "humanTaskCheck.mode",
|
|
4449
|
+
label: "Human-step check mode",
|
|
4450
|
+
type: "select",
|
|
4451
|
+
tier: "live",
|
|
4452
|
+
restartRequired: false,
|
|
4453
|
+
default: "both",
|
|
4454
|
+
options: [
|
|
4455
|
+
{ value: "keywords", label: "Keywords" },
|
|
4456
|
+
{ value: "model", label: "Decision model" },
|
|
4457
|
+
{ value: "both", label: "Keywords, then model" },
|
|
4458
|
+
],
|
|
4459
|
+
description: "Use phrase rules, the configured decision model, or consult the model only after a phrase match. Model errors fall back to phrase rules.",
|
|
4460
|
+
},
|
|
4461
|
+
{
|
|
4462
|
+
key: "humanTaskCheck.keywords",
|
|
4463
|
+
label: "Human-step keyword phrases",
|
|
4464
|
+
type: "array",
|
|
4465
|
+
tier: "live",
|
|
4466
|
+
restartRequired: false,
|
|
4467
|
+
default: [],
|
|
4468
|
+
description: "Additional phrases that signal a real human-only step. Negated mentions and code identifiers are ignored.",
|
|
4469
|
+
},
|
|
4407
4470
|
{
|
|
4408
4471
|
key: "model_routing.humanStepCheck",
|
|
4409
4472
|
label: "Check for mixed AI and human steps, and suggest splitting the task",
|
|
@@ -4451,6 +4514,8 @@ export function getConfigSchema() {
|
|
|
4451
4514
|
* it here and document it** — otherwise the docs-drift test cannot see it.
|
|
4452
4515
|
*/
|
|
4453
4516
|
export const SUPPORTED_TOML_KEYS = [
|
|
4517
|
+
"humanTaskCheck.mode",
|
|
4518
|
+
"humanTaskCheck.keywords",
|
|
4454
4519
|
// Layout and repository paths
|
|
4455
4520
|
"workDir",
|
|
4456
4521
|
"docsDir",
|
|
@@ -4472,6 +4537,7 @@ export const SUPPORTED_TOML_KEYS = [
|
|
|
4472
4537
|
"activityAnimationSize",
|
|
4473
4538
|
"activityAnimationConcurrency",
|
|
4474
4539
|
"maxActiveTasks",
|
|
4540
|
+
"maxParallelValidations",
|
|
4475
4541
|
"autoEngineeringMode",
|
|
4476
4542
|
"autoEngineering.pmVeto",
|
|
4477
4543
|
"ctoSkipHealthy",
|
|
@@ -4730,6 +4796,8 @@ export const SUPPORTED_TOML_KEYS = [
|
|
|
4730
4796
|
"closeOut.candidate",
|
|
4731
4797
|
"closeOut.installCommand",
|
|
4732
4798
|
"closeOut.postPublishCommand",
|
|
4799
|
+
// How many close-outs validate at once; publishing stays serial (#1275)
|
|
4800
|
+
"maxParallelValidations",
|
|
4733
4801
|
"worktrees.candidate",
|
|
4734
4802
|
"worktrees.installCommand",
|
|
4735
4803
|
"attention.spendAlertUsd",
|
package/dist/core/git.js
CHANGED
|
@@ -2164,6 +2164,12 @@ export async function dirtyFiles(root, opts = {}) {
|
|
|
2164
2164
|
* empty array when the tree was clean or the commit failed.
|
|
2165
2165
|
*/
|
|
2166
2166
|
export async function commitDirtyFiles(root, message) {
|
|
2167
|
+
// A pathspec commit cannot finish a merge, and staging here would mutate its
|
|
2168
|
+
// conflict state. Refuse explicitly so callers cannot mistake this for a
|
|
2169
|
+
// successful clean checkpoint.
|
|
2170
|
+
if (hasInProgressGitOperation(root)) {
|
|
2171
|
+
throw new GitDirtyCheckError("git-error", "a merge, rebase, cherry-pick, or revert is in progress; resolve and commit it before checkpointing");
|
|
2172
|
+
}
|
|
2167
2173
|
const files = await dirtyFiles(root);
|
|
2168
2174
|
if (files.length === 0)
|
|
2169
2175
|
return [];
|
|
@@ -31,6 +31,12 @@ function failureReason(err) {
|
|
|
31
31
|
? "malformed-response"
|
|
32
32
|
: "provider-failure";
|
|
33
33
|
}
|
|
34
|
+
/** Plain words for why the decision model did not answer, for a blocked decision. */
|
|
35
|
+
const FALLBACK_CAUSE = {
|
|
36
|
+
"provider-failure": "the decision model could not be reached",
|
|
37
|
+
"malformed-response": "the decision model's answer could not be used",
|
|
38
|
+
"insufficient-evidence": "the model was not confident enough",
|
|
39
|
+
};
|
|
34
40
|
/** Use the fallback when it is eligible; otherwise block with a clear reason. */
|
|
35
41
|
function fallbackOrBlock(input, reason) {
|
|
36
42
|
const fb = input.fallback;
|
|
@@ -40,8 +46,9 @@ function fallbackOrBlock(input, reason) {
|
|
|
40
46
|
return {
|
|
41
47
|
kind: "blocked",
|
|
42
48
|
reason: "no-eligible-fallback",
|
|
43
|
-
message: `Model routing could not
|
|
44
|
-
`
|
|
49
|
+
message: `Model routing could not pick a model because ${FALLBACK_CAUSE[reason]}, ` +
|
|
50
|
+
`and the configured fallback is not eligible. ` +
|
|
51
|
+
`Pick a model on the Agents page or widen the budget allowlist.`,
|
|
45
52
|
};
|
|
46
53
|
}
|
|
47
54
|
function noulProbability(answers, id) {
|
package/dist/core/needs-input.js
CHANGED
|
@@ -47,5 +47,9 @@ export function needsInputClearsOnSuccessfulReview(task) {
|
|
|
47
47
|
return true;
|
|
48
48
|
if (task.needsInputReason === "evidence-gap-exhausted")
|
|
49
49
|
return true;
|
|
50
|
+
// A review run that completes proves the provider is reachable again, so a
|
|
51
|
+
// provider error raised earlier on this task is stale (#1288).
|
|
52
|
+
if (task.needsInputReason === "provider-failure")
|
|
53
|
+
return true;
|
|
50
54
|
return task.needsInputReason === "watchdog-stuck" && task.status === "review";
|
|
51
55
|
}
|
|
@@ -170,6 +170,10 @@ function str(v) {
|
|
|
170
170
|
* `{ error: { message } }` and `{ error: "..." }` forms, plus top-level
|
|
171
171
|
* `{ message: "..." }` and `{ message: "...", errors: [...] }`.
|
|
172
172
|
*/
|
|
173
|
+
/** Next step appended to every "key rejected" message (plain English, no upstream text). */
|
|
174
|
+
const REJECTED_KEY_NEXT_STEP = "Check the key was copied in full, then use Replace key to paste it again.";
|
|
175
|
+
/** Network-level failure text: the request never got an HTTP status back. */
|
|
176
|
+
const unreachableMessage = (label) => `${label} could not be reached. Check your internet connection, then press Retry.`;
|
|
173
177
|
function upstreamError(body, fallback) {
|
|
174
178
|
if (typeof body === "object" && body !== null) {
|
|
175
179
|
const obj = body;
|
|
@@ -238,6 +242,9 @@ export async function fetchOpenRouterSpend(apiKey) {
|
|
|
238
242
|
const settle = (part) => {
|
|
239
243
|
if (part.status === "fulfilled") {
|
|
240
244
|
const { body, status } = part.value;
|
|
245
|
+
if (status === 401) {
|
|
246
|
+
return { data: null, error: `OpenRouter rejected the API key. ${REJECTED_KEY_NEXT_STEP}` };
|
|
247
|
+
}
|
|
241
248
|
if (status >= 400) {
|
|
242
249
|
return { data: null, error: upstreamError(body, `OpenRouter API returned ${status}`) };
|
|
243
250
|
}
|
|
@@ -245,7 +252,7 @@ export async function fetchOpenRouterSpend(apiKey) {
|
|
|
245
252
|
}
|
|
246
253
|
return {
|
|
247
254
|
data: null,
|
|
248
|
-
error:
|
|
255
|
+
error: unreachableMessage("OpenRouter"),
|
|
249
256
|
};
|
|
250
257
|
};
|
|
251
258
|
const creditsPart = settle(credits);
|
|
@@ -386,11 +393,11 @@ export async function fetchOpenCodeGoUsage(apiKey) {
|
|
|
386
393
|
});
|
|
387
394
|
}
|
|
388
395
|
catch {
|
|
389
|
-
throw new Error("
|
|
396
|
+
throw new Error(unreachableMessage("The opencode Go usage API"));
|
|
390
397
|
}
|
|
391
398
|
const body = await parseJsonResponse(res, "opencode Go");
|
|
392
399
|
if (res.status === 401)
|
|
393
|
-
throw new Error(
|
|
400
|
+
throw new Error(`opencode rejected the API key. ${REJECTED_KEY_NEXT_STEP}`);
|
|
394
401
|
if (res.status >= 400)
|
|
395
402
|
throw new Error(upstreamError(body, `opencode Go API returned ${res.status}`));
|
|
396
403
|
return parseOpenCodeGoUsage(body);
|
|
@@ -505,7 +512,7 @@ export async function fetchDeepInfraSpend(apiKey) {
|
|
|
505
512
|
if (part.status === "fulfilled") {
|
|
506
513
|
const { body, status } = part.value;
|
|
507
514
|
if (status === 401)
|
|
508
|
-
return { data: null, error:
|
|
515
|
+
return { data: null, error: `${label} rejected the API key. ${REJECTED_KEY_NEXT_STEP}` };
|
|
509
516
|
if (status >= 400) {
|
|
510
517
|
return { data: null, error: upstreamError(body, `${label} API returned ${status}`) };
|
|
511
518
|
}
|
|
@@ -513,7 +520,7 @@ export async function fetchDeepInfraSpend(apiKey) {
|
|
|
513
520
|
}
|
|
514
521
|
return {
|
|
515
522
|
data: null,
|
|
516
|
-
error:
|
|
523
|
+
error: unreachableMessage(label),
|
|
517
524
|
};
|
|
518
525
|
};
|
|
519
526
|
const checklistPart = settle(checklist, "DeepInfra");
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* a declared "good to go" into a false rejection. Reports without that heading
|
|
21
21
|
* (legacy) still use a whole-document scan so older stored reports keep working.
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export declare const REVIEW_VERDICTS: readonly ["back to the drawing board", "needs some work", "good to go"];
|
|
24
|
+
export type ReviewVerdict = (typeof REVIEW_VERDICTS)[number];
|
|
24
25
|
export type ReviewRelevance = "still relevant" | "no longer needed" | "needs rescoping";
|
|
25
26
|
/** Body of the report's `## Verdict` section, or null when that heading is absent. */
|
|
26
27
|
export declare function reviewVerdictSection(markdown: string): string | null;
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
* a declared "good to go" into a false rejection. Reports without that heading
|
|
21
21
|
* (legacy) still use a whole-document scan so older stored reports keep working.
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
export const REVIEW_VERDICTS = [
|
|
24
24
|
"back to the drawing board",
|
|
25
25
|
"needs some work",
|
|
26
26
|
"good to go",
|
|
27
27
|
];
|
|
28
|
+
const VERDICT_ORDER = [...REVIEW_VERDICTS];
|
|
28
29
|
const RELEVANCE_ORDER = [
|
|
29
30
|
"no longer needed",
|
|
30
31
|
"needs rescoping",
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
* path appends `?shotState=<id>` to the route; the UI applies the fixture only
|
|
4
4
|
* on preview builds (`isPreviewBuild`).
|
|
5
5
|
*/
|
|
6
|
-
export declare const SHOT_PREVIEW_FIXTURE_IDS: readonly ["auth:login", "auth:otp", "system:worktreeGc", "system:processTable", "system:orphanedRuns", "system:pressureNormal", "system:pressureWarning", "system:pressureCritical", "closeOut:active", "closeOut:checkProgress", "closeOut:checkProgressUnknown", "checks:progress", "checks:timings", "checks:reuse", "checks:longData", "pages:scroll", "repo:dirtyMain", "closeOut:stalled", "closeOut:uploading", "closeOut:remoteTests", "drawer:closeOutBuilding", "drawer:closeOutBuildingNarrow", "drawer:closeOutRemoteTests", "drawer:closeOutRemoteTestsNarrow", "runners:queued", "integration:median15", "card:doneError", "board:withReviewTask", "work:empty", "work:failedLoad", "agents:loadFailed", "settings:loadFailed", "agents:empty", "checks:emptyPlan", "toast:taskNeedsInput", "toast:stack", "card:reviewChecksRunning", "card:reviewLandableReady", "card:handoffStaleActive", "board:pipeline", "drawer:reviewWithBranch", "drawer:reviewPasses", "drawer:engineeringReports", "drawer:postMergeSummary", "drawer:landable", "drawer:statusReviewFailed", "drawer:statusReviewFailedNarrow", "drawer:statusHandoffFailed", "drawer:statusChecksRunning", "drawer:statusChecksRunningNarrow", "drawer:statusConfirmingHandoff", "drawer:handoffWaiting", "drawer:statusConfirmingHandoffNarrow", "drawer:statusChecksFailed", "drawer:statusChecksFailedNarrow", "drawer:statusDetails", "drawer:landableNarrow", "drawer:tabExpandWarnings", "drawer:activeRequirements", "drawer:nativePreviewBuilding", "drawer:nativePreviewRunning", "drawer:nativePreviewFailed", "drawer:shotEvidence", "drawer:debugLogs", "card:agentFailed", "card:humanStep", "card:held", "drawer:held", "drawer:humanGuideWarning", "card:reviewRoundsExhausted", "card:checkWaitDetail", "drawer:checkWaitDetail", "card:handoffConflict", "card:checkpointRecovery", "card:checksProgress", "card:checksReuse", "drawer:checksProgress", "drawer:checksReuse", "pipeline:checksProgress", "board:cardChips", "card:noChanges", "board:activeCoding", "checks:waiting", "board:severalWorkingCards", "board:startWorkPending", "drawer:startWorkPending", "settings:birdQuickTrail", "settings:rgbKeystorm", "settings:wheelieCourier", "settings:booSwoop", "settings:pumpkinSpell", "settings:motionOff", "drawer:queuedMessage", "dev:failed", "dev:loading", "dev:running", "secrets:populated", "secrets:removeDialog", "secrets:unauthorized", "deployments:environmentBinding", "deployments:deployFailure", "deployments:loading", "editor:unconfigured", "panel:newInputOutstandingUpload", "panel:freeformFailedScreenshot", "panel:defaultScreenshotPicker", "budget:paused", "schedule:newPanel", "agents:scheduledSeeded", "agents:lastRuns", "reminders:due", "release:emailSent", "release:emailFailed", "release:updateAvailable", "release:restartPendingLight", "release:restartPendingDark", "release:restartProgress", "release:restartError", "release:cutRunning", "release:cutReady", "release:autoPublishWaiting", "release:longDistribution"];
|
|
6
|
+
export declare const SHOT_PREVIEW_FIXTURE_IDS: readonly ["auth:login", "auth:otp", "system:worktreeGc", "system:processTable", "system:orphanedRuns", "system:pressureNormal", "system:pressureWarning", "system:pressureCritical", "closeOut:active", "closeOut:checkProgress", "closeOut:checkProgressUnknown", "checks:progress", "checks:timings", "checks:reuse", "checks:longData", "pages:scroll", "repo:dirtyMain", "closeOut:stalled", "closeOut:uploading", "closeOut:remoteTests", "drawer:closeOutBuilding", "drawer:closeOutBuildingNarrow", "drawer:closeOutRemoteTests", "drawer:closeOutRemoteTestsNarrow", "runners:queued", "integration:median15", "pipeline:parallelValidations", "card:doneError", "board:withReviewTask", "work:empty", "work:failedLoad", "agents:loadFailed", "settings:loadFailed", "agents:empty", "checks:emptyPlan", "toast:taskNeedsInput", "toast:stack", "card:reviewChecksRunning", "card:reviewLandableReady", "card:handoffStaleActive", "board:pipeline", "drawer:reviewWithBranch", "drawer:reviewPasses", "drawer:engineeringReports", "drawer:postMergeSummary", "drawer:landable", "drawer:statusReviewFailed", "drawer:statusReviewFailedNarrow", "drawer:statusHandoffFailed", "drawer:statusChecksRunning", "drawer:statusChecksRunningNarrow", "drawer:statusConfirmingHandoff", "drawer:handoffWaiting", "drawer:statusConfirmingHandoffNarrow", "drawer:statusChecksFailed", "drawer:statusChecksFailedNarrow", "drawer:statusDetails", "drawer:landableNarrow", "drawer:tabExpandWarnings", "drawer:activeRequirements", "drawer:taskDetailsSummary", "drawer:nativePreviewBuilding", "drawer:nativePreviewRunning", "drawer:nativePreviewFailed", "drawer:shotEvidence", "drawer:debugLogs", "card:agentFailed", "card:humanStep", "card:held", "drawer:held", "drawer:humanGuideWarning", "card:reviewRoundsExhausted", "card:staleEvidenceQueued", "card:checkWaitDetail", "drawer:checkWaitDetail", "card:handoffConflict", "card:checkpointRecovery", "card:checksProgress", "card:checksReuse", "drawer:checksProgress", "drawer:checksReuse", "pipeline:checksProgress", "board:cardChips", "card:noChanges", "board:activeCoding", "checks:waiting", "board:severalWorkingCards", "board:startWorkPending", "drawer:startWorkPending", "settings:birdQuickTrail", "settings:rgbKeystorm", "settings:wheelieCourier", "settings:booSwoop", "settings:pumpkinSpell", "settings:motionOff", "drawer:queuedMessage", "dev:failed", "dev:loading", "dev:running", "secrets:populated", "secrets:removeDialog", "secrets:unauthorized", "deployments:environmentBinding", "deployments:deployFailure", "deployments:loading", "editor:unconfigured", "panel:newInputOutstandingUpload", "panel:freeformFailedScreenshot", "panel:defaultScreenshotPicker", "budget:paused", "schedule:newPanel", "agents:scheduledSeeded", "agents:lastRuns", "reminders:due", "release:emailSent", "release:emailFailed", "release:updateAvailable", "release:restartPendingLight", "release:restartPendingDark", "release:restartProgress", "release:restartError", "release:cutRunning", "release:cutReady", "release:autoPublishWaiting", "release:longDistribution"];
|
|
7
7
|
export type ShotPreviewFixtureId = (typeof SHOT_PREVIEW_FIXTURE_IDS)[number];
|
|
8
8
|
export declare const SHOT_PREVIEW_FIXTURE_QUERY = "shotState";
|
|
9
9
|
/** Task id used by card/board fixtures so selectors can target one stable card. */
|
|
10
10
|
export declare const SHOT_PREVIEW_FIXTURE_TASK_ID = "9999";
|
|
11
|
+
/** The other task whose close-out runs ahead of the fixture card (#1277). */
|
|
12
|
+
export declare const SHOT_PREVIEW_BLOCKER_TASK_ID = "9998";
|
|
11
13
|
export declare function isShotPreviewFixtureId(value: string): value is ShotPreviewFixtureId;
|
|
12
14
|
/**
|
|
13
15
|
* The page container a fixture needs after it is applied (#0866), so a capture
|
|
@@ -53,6 +53,9 @@ export const SHOT_PREVIEW_FIXTURE_IDS = [
|
|
|
53
53
|
// #0819 — active close-out plus 15 succeeded duration samples so the
|
|
54
54
|
// integration timer tooltip shows "Median … · 15 runs" on a fresh preview.
|
|
55
55
|
"integration:median15",
|
|
56
|
+
// #1275 — an active close-out, one job validating alongside it, and one queued
|
|
57
|
+
// behind both, so the pipeline shows "Also running" and a publish-order position.
|
|
58
|
+
"pipeline:parallelValidations",
|
|
56
59
|
"card:doneError",
|
|
57
60
|
"board:withReviewTask",
|
|
58
61
|
// #1183 — first-run Work queue with no task cards.
|
|
@@ -112,6 +115,9 @@ export const SHOT_PREVIEW_FIXTURE_IDS = [
|
|
|
112
115
|
// #0817 — active task with requirement sections so the drawer shows Update
|
|
113
116
|
// requirements on the spec header (the action is active-only).
|
|
114
117
|
"drawer:activeRequirements",
|
|
118
|
+
// #1282 — the Details tab with the collapsed Task details summary. Seeds the
|
|
119
|
+
// drawer's task when it is off the preview board, so ?task= never 404s.
|
|
120
|
+
"drawer:taskDetailsSummary",
|
|
115
121
|
// #0943 — native preview controls in building, running and failed states.
|
|
116
122
|
"drawer:nativePreviewBuilding",
|
|
117
123
|
"drawer:nativePreviewRunning",
|
|
@@ -135,6 +141,8 @@ export const SHOT_PREVIEW_FIXTURE_IDS = [
|
|
|
135
141
|
"drawer:humanGuideWarning",
|
|
136
142
|
// #0832 — review task with review-rounds-exhausted and a long verdict summary.
|
|
137
143
|
"card:reviewRoundsExhausted",
|
|
144
|
+
// #1277 — review card whose close-out is validating: no stale-evidence notice or Refresh evidence.
|
|
145
|
+
"card:staleEvidenceQueued",
|
|
138
146
|
// #1034 — check-wait escalation with a long queue diagnostic on card and drawer.
|
|
139
147
|
"card:checkWaitDetail",
|
|
140
148
|
"drawer:checkWaitDetail",
|
|
@@ -269,6 +277,8 @@ export const SHOT_PREVIEW_FIXTURE_IDS = [
|
|
|
269
277
|
export const SHOT_PREVIEW_FIXTURE_QUERY = "shotState";
|
|
270
278
|
/** Task id used by card/board fixtures so selectors can target one stable card. */
|
|
271
279
|
export const SHOT_PREVIEW_FIXTURE_TASK_ID = "9999";
|
|
280
|
+
/** The other task whose close-out runs ahead of the fixture card (#1277). */
|
|
281
|
+
export const SHOT_PREVIEW_BLOCKER_TASK_ID = "9998";
|
|
272
282
|
export function isShotPreviewFixtureId(value) {
|
|
273
283
|
return SHOT_PREVIEW_FIXTURE_IDS.includes(value);
|
|
274
284
|
}
|