@repo-os/repoos 0.5.90 → 0.5.92
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.d.ts +17 -0
- package/dist/cli/help.js +9 -8
- package/dist/cli/index.js +1 -1
- package/dist/cli/repoos-api.d.ts +8 -0
- package/dist/cli/repoos-api.js +35 -1
- package/dist/commands/control-api.d.ts +6 -0
- package/dist/commands/control-api.js +60 -15
- package/dist/commands/init.js +3 -24
- package/dist/commands/restart.js +1 -1
- package/dist/commands/secrets.d.ts +4 -0
- package/dist/commands/secrets.js +5 -1
- package/dist/commands/secrets.test.js +14 -1
- package/dist/commands/tasks.d.ts +1 -1
- package/dist/commands/tasks.js +25 -2
- package/dist/commands/ui-contrast-audit.js +6 -0
- package/dist/commands/ui-harness.d.ts +34 -20
- package/dist/commands/ui-smoke.js +74 -0
- package/dist/commands/upgrade.d.ts +2 -0
- package/dist/commands/upgrade.js +25 -4
- package/dist/core/agent-failure.d.ts +1 -1
- package/dist/core/agent-failure.js +7 -0
- package/dist/core/agent-failure.test.js +8 -0
- package/dist/core/config.d.ts +1 -1
- package/dist/core/config.js +11 -1
- package/dist/core/git.js +14 -2
- package/dist/core/page-browser-gate.js +13 -0
- package/dist/core/server-restart-classify.test.js +31 -1
- package/dist/core/server-restart.d.ts +13 -2
- package/dist/core/server-restart.js +61 -25
- package/dist/core/server-restart.test.js +64 -15
- package/dist/core/shot-fixtures.d.ts +1 -1
- package/dist/core/shot-fixtures.js +48 -1
- package/dist/core/supervisor-detect.d.ts +2 -0
- package/dist/core/supervisor-detect.js +59 -17
- package/dist/core/supervisor-detect.test.js +107 -1
- package/dist/server/routes/config.js +31 -4
- package/dist/server/routes/project-environments.d.ts +8 -0
- package/dist/server/routes/project-environments.js +14 -4
- package/dist/server/routes/release.js +1 -1
- package/dist/ui/assets/ActivityIndicator-BAcodpB3.js +1 -0
- package/dist/ui/assets/AgentModelControl-CognFDUk.js +1 -0
- package/dist/ui/assets/AgentModelModal-BlXrbZAA.js +1 -0
- package/dist/ui/assets/AgentsView-BwT7Hdqh.js +2 -0
- package/dist/ui/assets/{AgentsView-DPOKSgl6.css → AgentsView-CYcW2W1V.css} +1 -1
- package/dist/ui/assets/{ChatAgentModelChip-CFf6DH-x.js → ChatAgentModelChip-BCufGZWt.js} +1 -1
- package/dist/ui/assets/ChecksView-DIwpiyDp.js +0 -0
- package/dist/ui/assets/ChecksView-vv2VpmBZ.css +1 -0
- package/dist/ui/assets/ClientBoardView-D54CD3J9.js +1 -0
- package/dist/ui/assets/ConfirmDialog-DJczbtU0.js +1 -0
- package/dist/ui/assets/ContextView-B5Rdzl6v.css +1 -0
- package/dist/ui/assets/ContextView-DvgVUnCg.js +4 -0
- package/dist/ui/assets/DashboardView-DKroQ0_G.css +1 -0
- package/dist/ui/assets/DashboardView-uoMgJiI1.js +1 -0
- package/dist/ui/assets/DeleteConfirmDialog-CNeMKyyz.js +1 -0
- package/dist/ui/assets/DeploymentsView-Cp012Ol5.css +1 -0
- package/dist/ui/assets/DeploymentsView-DH33u2bU.js +1 -0
- package/dist/ui/assets/DevView-JzzuZjjo.css +1 -0
- package/dist/ui/assets/{DevView-C_o_mWmQ.js → DevView-OFRBmXcb.js} +2 -2
- package/dist/ui/assets/{DiffView-DP84rySJ.js → DiffView-BpbK7E7E.js} +2 -2
- package/dist/ui/assets/FailedTestsList-BsgIcmYa.js +1 -0
- package/dist/ui/assets/InputsView-D5f4iP7B.js +1 -0
- package/dist/ui/assets/InputsView-DLoRduaf.css +1 -0
- package/dist/ui/assets/LoginView-DLs9wmx3.css +1 -0
- package/dist/ui/assets/LoginView-JNHBZ7sq.js +1 -0
- package/dist/ui/assets/PageSkeleton-a7KWsqZj.js +1 -0
- package/dist/ui/assets/ReleasesView-J8eHMasy.js +7 -0
- package/dist/ui/assets/ReleasesView-nToqxCes.css +1 -0
- package/dist/ui/assets/SecretsView-CGKf6YA2.js +1 -0
- package/dist/ui/assets/{SettingsView-BhZdEaQH.css → SettingsView-B83mU1Ai.css} +1 -1
- package/dist/ui/assets/SettingsView-BBwhYFoe.js +4 -0
- package/dist/ui/assets/StoriesView-BgXfFRty.js +1 -0
- package/dist/ui/assets/{VoiceDictate-eEL8mOQ6.js → VoiceDictate-BOTIaIEm.js} +2 -2
- package/dist/ui/assets/WorkView-Dbu4Su4I.js +2 -0
- package/dist/ui/assets/{WorkView-DA0KG2Wo.css → WorkView-LH9v_m1-.css} +1 -1
- package/dist/ui/assets/_plugin-vue_export-helper-B-7jKWYS.js +37 -0
- package/dist/ui/assets/{abnfDiagram-VCTEODGH-_eosyKqu.js → abnfDiagram-VCTEODGH-D-bHWvQx.js} +1 -1
- package/dist/ui/assets/{activity-motion-ZdL9OJaH.js → activity-motion-kvEPH_et.js} +1 -1
- package/dist/ui/assets/agent-failure-l30iR_QH.js +1 -0
- package/dist/ui/assets/{architectureDiagram-5GKGNRK7-PIOOBZj0.js → architectureDiagram-5GKGNRK7-BnfM38Ea.js} +1 -1
- package/dist/ui/assets/{blockDiagram-I7D4REHJ-C4pyoQIK.js → blockDiagram-I7D4REHJ-CBBg7-_L.js} +1 -1
- package/dist/ui/assets/{c4Diagram-7LVT6UL2-DehOc6EC.js → c4Diagram-7LVT6UL2-Cc6b1vTh.js} +1 -1
- package/dist/ui/assets/channel-D1uPGa4V.js +1 -0
- package/dist/ui/assets/check-setup-xqpRoigF.js +2 -0
- package/dist/ui/assets/{checkbox-E2VmX5cG.js → checkbox-BC4PYsB5.js} +1 -1
- package/dist/ui/assets/{chunk-2E4U76K2-CdLsViyA.js → chunk-2E4U76K2-BFbCIRhe.js} +1 -1
- package/dist/ui/assets/{chunk-4HAMMTFA-CwHfn5dc.js → chunk-4HAMMTFA-DYNnUlVz.js} +1 -1
- package/dist/ui/assets/{chunk-75Z2AOVW-DdjEDEwd.js → chunk-75Z2AOVW-CnZbf3kI.js} +1 -1
- package/dist/ui/assets/{chunk-CLGD4ZFX-tIw2jEqw.js → chunk-CLGD4ZFX-CA9Q1E94.js} +1 -1
- package/dist/ui/assets/{chunk-DU6HZSFF-DU2m-Rq_.js → chunk-DU6HZSFF-DwYzl-gQ.js} +1 -1
- package/dist/ui/assets/{chunk-F27PBJKO-XI6ntUgy.js → chunk-F27PBJKO-D00oD-xv.js} +1 -1
- package/dist/ui/assets/{chunk-GMAD6QVW-DS9hCmMU.js → chunk-GMAD6QVW-soTPNJXR.js} +1 -1
- package/dist/ui/assets/{chunk-GVQU2GXP-CkV_qixK.js → chunk-GVQU2GXP-DYy84SXq.js} +1 -1
- package/dist/ui/assets/{chunk-IMKFNOWR-SSIw4nk0.js → chunk-IMKFNOWR-DvSCdPPU.js} +1 -1
- package/dist/ui/assets/{chunk-L3NEJ4N5-Mjq_7kRG.js → chunk-L3NEJ4N5-B4s-ZnhH.js} +1 -1
- package/dist/ui/assets/{chunk-OSK3NFVY-C_-AKGNt.js → chunk-OSK3NFVY-noUbjjt7.js} +1 -1
- package/dist/ui/assets/{chunk-P2QGCYS3-Cml7U2x-.js → chunk-P2QGCYS3-CUzBN63t.js} +1 -1
- package/dist/ui/assets/{chunk-POPQ4Y6H-BmC77hAA.js → chunk-POPQ4Y6H-BPLsk7Ce.js} +1 -1
- package/dist/ui/assets/{chunk-PWAF6VOD-ZvDRCIUz.js → chunk-PWAF6VOD-10VLiUcg.js} +1 -1
- package/dist/ui/assets/{chunk-SHT3W25Y-BC_3w9An.js → chunk-SHT3W25Y-C9ZCyTpu.js} +1 -1
- package/dist/ui/assets/{chunk-SVP7TREG-ButzIF6A.js → chunk-SVP7TREG-CTtqSSVE.js} +1 -1
- package/dist/ui/assets/{chunk-TICWLB2K-CggUYtfW.js → chunk-TICWLB2K-yrt48cWI.js} +1 -1
- package/dist/ui/assets/chunk-TLUHSLCS-vTh-Ks6x.js +2 -0
- package/dist/ui/assets/classDiagram-ZZMXUADV-Cfa_N-25.js +1 -0
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-Cfa_N-25.js +1 -0
- package/dist/ui/assets/close-BDbRl7Nq.js +1 -0
- package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-DQx5-LjP.js → cynefinDiagram-5FMLGOSQ-DbTuWYsn.js} +1 -1
- package/dist/ui/assets/{dagre-GXQ25YYZ-CJEoldTu.js → dagre-GXQ25YYZ-JZ8rKSGL.js} +1 -1
- package/dist/ui/assets/{diagram-S7CK7UJ4-C8wpb0w-.js → diagram-S7CK7UJ4-DozuYZ5v.js} +1 -1
- package/dist/ui/assets/{diagram-UQ7AKVKN-Cwv7ZlPj.js → diagram-UQ7AKVKN-EjReFZD_.js} +1 -1
- package/dist/ui/assets/{diagram-VSXAHHWV-Bod-GUJ0.js → diagram-VSXAHHWV-CoI6xXJR.js} +1 -1
- package/dist/ui/assets/{diagram-VX7I27RA-B-IviZte.js → diagram-VX7I27RA-BAQLLea1.js} +1 -1
- package/dist/ui/assets/{diagram-Z3DM3KII-D7UJTgo0.js → diagram-Z3DM3KII-sImX--30.js} +1 -1
- package/dist/ui/assets/docs-HP47hTTR.js +1 -0
- package/dist/ui/assets/{ebnfDiagram-PWID7BFC-36iN6vhQ.js → ebnfDiagram-PWID7BFC-4-EZK45g.js} +1 -1
- package/dist/ui/assets/{erDiagram-RLTQ6QDP-D1VxGNkw.js → erDiagram-RLTQ6QDP-D_XlxqhG.js} +1 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-C1zPkt8s.js +1 -0
- package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-CaQRdRWo.js → ganttDiagram-EL5Y4UJY-DsH9xlB9.js} +1 -1
- package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-CPuqjqk3.js → gitGraphDiagram-WWUBYQGX-4VcQIUQs.js} +1 -1
- package/dist/ui/assets/index-CO7taHt2.css +1 -0
- package/dist/ui/assets/index-WTREy1tJ.js +109 -0
- package/dist/ui/assets/{infoDiagram-27XIBGKW-C5y8qjnc.js → infoDiagram-27XIBGKW-CLp07U4U.js} +1 -1
- package/dist/ui/assets/{input-usKnLzob.js → input-DWzP9viW.js} +1 -1
- package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-KKx_BBPX.js → ishikawaDiagram-5VMMS53U-DHyybN4S.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-3NMN7TZE-Rba7zvBB.js → journeyDiagram-3NMN7TZE-DEeuFca9.js} +1 -1
- package/dist/ui/assets/{kanban-definition-UXKFOSKX-CWUiM7nC.js → kanban-definition-UXKFOSKX-CHN8drwJ.js} +1 -1
- package/dist/ui/assets/{line-DaBQnM0e.js → line-Gl6rXSAb.js} +1 -1
- package/dist/ui/assets/{mermaid-parser.core-B8Myoyel.js → mermaid-parser.core-D_Tb6YLS.js} +1 -1
- package/dist/ui/assets/mermaid.core-DT6J3m0d.js +11 -0
- package/dist/ui/assets/{mindmap-definition-YA3MSWOX-BdYDIAqu.js → mindmap-definition-YA3MSWOX-B3ObuJ3D.js} +1 -1
- package/dist/ui/assets/{pegDiagram-XKGWAZYB-1U6yQMPJ.js → pegDiagram-XKGWAZYB-DKKqNhAl.js} +1 -1
- package/dist/ui/assets/{pieDiagram-E7YTZNPT-C4XWr3KA.js → pieDiagram-E7YTZNPT-BFuF3WtM.js} +1 -1
- package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-DokRSlpE.js → quadrantDiagram-AXDQQJYC-SxPbTouY.js} +1 -1
- package/dist/ui/assets/{railroadDiagram-O6MQD6OU-CNVlf25-.js → railroadDiagram-O6MQD6OU-CDbTh97N.js} +1 -1
- package/dist/ui/assets/repo-BlQoHXqa.js +44 -0
- package/dist/ui/assets/{requirementDiagram-BXWQKSXE-BJbgitn9.js → requirementDiagram-BXWQKSXE-Bs-GFKEa.js} +1 -1
- package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-Dmm-_ESB.js → sankeyDiagram-P5KCCOFB-D7T8G0Ax.js} +1 -1
- package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-MgUn4Xsr.js → sequenceDiagram-WJ2MYXX4-BN37N1BT.js} +1 -1
- package/dist/ui/assets/{stateDiagram-D77RDMKH-BqBSa94y.js → stateDiagram-D77RDMKH-DPK9RHNv.js} +1 -1
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-iJyBxeuE.js +1 -0
- package/dist/ui/assets/{swimlanes-42K2YHIH-DfEw2nEt.js → swimlanes-42K2YHIH-B8HRPbJd.js} +1 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-76Ue_ERp.js +8 -0
- package/dist/ui/assets/{switch-CHw_LJLk.js → switch-C9h1H2Kp.js} +1 -1
- package/dist/ui/assets/{timeline-definition-24CTP7MA-9O0QMknF.js → timeline-definition-24CTP7MA-Bn1BpGMq.js} +1 -1
- package/dist/ui/assets/title-Dchwkc3-.js +1 -0
- package/dist/ui/assets/{value-Cnv_lviy.js → value-BqMWzKIQ.js} +1 -1
- package/dist/ui/assets/{vennDiagram-4TSXK5OY-DlPz1EvZ.js → vennDiagram-4TSXK5OY-B5dw0TnP.js} +1 -1
- package/dist/ui/assets/{viewport-T9GJSA28.js → viewport-D7hXjRfS.js} +1 -1
- package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-CqAXPPey.js → wardleyDiagram-VM6X3IG4-hNcz_h6K.js} +1 -1
- package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-CGPlYDyB.js → xychartDiagram-S5SC5T6Z-DD8p4wxv.js} +1 -1
- package/dist/ui/index.html +20 -21
- package/dist/ui/sw.js +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/ActivityIndicator-D3kaLo54.js +0 -1
- package/dist/ui/assets/AgentModelControl-BXndbOjd.js +0 -1
- package/dist/ui/assets/AgentModelModal-BZon9Xw-.js +0 -1
- package/dist/ui/assets/AgentsView-B9f2VxAB.js +0 -2
- package/dist/ui/assets/ChecksView-BU7sn_8v.css +0 -1
- package/dist/ui/assets/ChecksView-CjBYmr0G.js +0 -0
- package/dist/ui/assets/ClientBoardView-DJuKrnmC.js +0 -1
- package/dist/ui/assets/ConfirmDialog-DtTUkVd2.js +0 -1
- package/dist/ui/assets/ContextView-Bpu4NK3a.css +0 -1
- package/dist/ui/assets/ContextView-f1qnwOfz.js +0 -4
- package/dist/ui/assets/DashboardView-BI6MsPGb.css +0 -1
- package/dist/ui/assets/DashboardView-Bu-GfmCF.js +0 -1
- package/dist/ui/assets/DeleteConfirmDialog-QLp5rh6F.js +0 -1
- package/dist/ui/assets/DeploymentsView-CAxXPEHO.css +0 -1
- package/dist/ui/assets/DeploymentsView-D7snexob.js +0 -1
- package/dist/ui/assets/DevView-BwdViVxh.css +0 -1
- package/dist/ui/assets/FailedTestsList-DIkE11W-.js +0 -1
- package/dist/ui/assets/InputsView-B-a_6_Rh.css +0 -1
- package/dist/ui/assets/InputsView-DIXXyLvz.js +0 -1
- package/dist/ui/assets/LoginView-4-EXDlhL.js +0 -1
- package/dist/ui/assets/LoginView-DgYid8_T.css +0 -1
- package/dist/ui/assets/PageSkeleton-BkUizmiD.js +0 -1
- package/dist/ui/assets/ReleasesView-CAIlRSH_.css +0 -1
- package/dist/ui/assets/ReleasesView-nDp30TpJ.js +0 -7
- package/dist/ui/assets/SecretsView-DEwKwfBX.js +0 -1
- package/dist/ui/assets/SettingsView-MqvullIA.js +0 -4
- package/dist/ui/assets/StoriesView-SQfHR60h.js +0 -1
- package/dist/ui/assets/WorkView-B2H9HOzx.js +0 -2
- package/dist/ui/assets/_plugin-vue_export-helper-BDNMzG2s.js +0 -1
- package/dist/ui/assets/agent-failure-Bmoh7dgZ.js +0 -1
- package/dist/ui/assets/channel-Cyj3B_Pz.js +0 -1
- package/dist/ui/assets/check-setup-CC3TsiUM.js +0 -2
- package/dist/ui/assets/chunk-TLUHSLCS-B4okP0Z9.js +0 -2
- package/dist/ui/assets/classDiagram-ZZMXUADV-CPSjxk4F.js +0 -1
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-CPSjxk4F.js +0 -1
- package/dist/ui/assets/close-DEOXwz7c.js +0 -1
- package/dist/ui/assets/docs-Bru9enkv.js +0 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-DMCQ3QQc.js +0 -1
- package/dist/ui/assets/index-DPbsvkr-.css +0 -1
- package/dist/ui/assets/index-ebHBIEpP.js +0 -109
- package/dist/ui/assets/layer-DJtr131Z.js +0 -1
- package/dist/ui/assets/mermaid.core-VWbE_LVb.js +0 -11
- package/dist/ui/assets/repo-BX_-2THs.js +0 -79
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-BpW2G0pv.js +0 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-CMQkP5RW.js +0 -8
- package/dist/ui/assets/title-BtztnD4i.js +0 -1
package/dist/.build-info.json
CHANGED
package/dist/.build-stamp.json
CHANGED
package/dist/cli/help.d.ts
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
interface CommandEntry {
|
|
2
|
+
/** Command as typed, e.g. "doctor". */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Full usage (without the leading `repoos`) — per-command help. */
|
|
5
|
+
usage: string;
|
|
6
|
+
/** One-line purpose, shown in the table. */
|
|
7
|
+
desc: string;
|
|
8
|
+
/** Flag summary for the dim line under the description, if any. */
|
|
9
|
+
flags?: string;
|
|
10
|
+
}
|
|
11
|
+
interface CommandGroup {
|
|
12
|
+
name: string;
|
|
13
|
+
commands: CommandEntry[];
|
|
14
|
+
}
|
|
1
15
|
/** Commands whose own argument parser already handles `--help`. */
|
|
2
16
|
export declare const SELF_HELP_COMMANDS: Set<string>;
|
|
17
|
+
/** The command table itself, exported for the docs-coverage QA test. */
|
|
18
|
+
export declare const GROUPS: readonly CommandGroup[];
|
|
3
19
|
/** Resolve an alias to its canonical command name (identity when not an alias). */
|
|
4
20
|
export declare function canonicalCommand(name: string): string;
|
|
5
21
|
/** Full usage for a command (or alias), without the leading `repoos`, or null. */
|
|
@@ -15,3 +31,4 @@ export declare function printHelp(width?: number): void;
|
|
|
15
31
|
* command (so the caller can fall through to its normal dispatch).
|
|
16
32
|
*/
|
|
17
33
|
export declare function printCommandHelp(name: string, width?: number): boolean;
|
|
34
|
+
export {};
|
package/dist/cli/help.js
CHANGED
|
@@ -20,7 +20,8 @@ export const SELF_HELP_COMMANDS = new Set([
|
|
|
20
20
|
"override",
|
|
21
21
|
"bundle",
|
|
22
22
|
]);
|
|
23
|
-
|
|
23
|
+
/** The command table itself, exported for the docs-coverage QA test. */
|
|
24
|
+
export const GROUPS = [
|
|
24
25
|
{
|
|
25
26
|
name: "Setup",
|
|
26
27
|
commands: [
|
|
@@ -55,8 +56,8 @@ const GROUPS = [
|
|
|
55
56
|
commands: [
|
|
56
57
|
{
|
|
57
58
|
name: "list",
|
|
58
|
-
usage: "list [
|
|
59
|
-
desc: "Show the board,
|
|
59
|
+
usage: "list [inbox|ready|active|review|done|archived]",
|
|
60
|
+
desc: "Show the board, one status column, or archived tasks",
|
|
60
61
|
},
|
|
61
62
|
{ name: "show", usage: "show <id>", desc: "Show a task's full spec" },
|
|
62
63
|
{
|
|
@@ -328,9 +329,9 @@ const GROUPS = [
|
|
|
328
329
|
},
|
|
329
330
|
{
|
|
330
331
|
name: "check",
|
|
331
|
-
usage: "check [--profile <name>] [--changed <ref>] [--print-plan] [--local-tests]",
|
|
332
|
+
usage: "check [--profile <name>] [--changed <ref>] [--print-plan] [--fix] [--step <name>] [--local-tests]",
|
|
332
333
|
desc: "Definition-of-done gate: runs the plan declared in repoos.toml",
|
|
333
|
-
flags: "--profile <name> · --changed <ref> · --print-plan · --local-tests",
|
|
334
|
+
flags: "--profile <name> · --changed <ref> · --print-plan · --fix · --step <name> · --local-tests",
|
|
334
335
|
},
|
|
335
336
|
{
|
|
336
337
|
name: "checks timings",
|
|
@@ -346,13 +347,13 @@ const GROUPS = [
|
|
|
346
347
|
},
|
|
347
348
|
{
|
|
348
349
|
name: "doctor",
|
|
349
|
-
usage: "doctor [--json] [--verbose] [--probe <cli>] [--binary <path>]",
|
|
350
|
+
usage: "doctor [--json] [--verbose] [--probe <cli> [--model <id>]] [--binary <path>]",
|
|
350
351
|
desc: "Readiness preflight: config, layout, tools, server and secrets",
|
|
351
|
-
flags: "--json · --verbose · --probe <cli> · --binary <path>",
|
|
352
|
+
flags: "--json · --verbose · --probe <cli> · --model <id> · --binary <path>",
|
|
352
353
|
},
|
|
353
354
|
{
|
|
354
355
|
name: "secrets",
|
|
355
|
-
usage: "secrets <list|add|replace|delete> <environment> [KEY] | bind <consumer> <environment> [KEY ...]",
|
|
356
|
+
usage: "secrets <list|add|replace|delete> <environment> [KEY] | bind <consumer> <environment> [KEY ...] | bindings",
|
|
356
357
|
desc: "Manage project environment values and explicit per-consumer key grants",
|
|
357
358
|
},
|
|
358
359
|
{
|
package/dist/cli/index.js
CHANGED
package/dist/cli/repoos-api.d.ts
CHANGED
|
@@ -21,6 +21,14 @@ export interface ApiJson {
|
|
|
21
21
|
error?: string;
|
|
22
22
|
[key: string]: unknown;
|
|
23
23
|
}
|
|
24
|
+
/** The JSON body used when the server answers with something that is not JSON. */
|
|
25
|
+
export declare function nonJsonResponse(path: string, text: string): ApiJson;
|
|
26
|
+
/**
|
|
27
|
+
* True when the response body came from the SPA catch-all (a 200 HTML page for
|
|
28
|
+
* an unknown /api/ route) rather than a real API answer. Every consumer that
|
|
29
|
+
* classifies success must treat this as a failure — the HTTP status alone lies.
|
|
30
|
+
*/
|
|
31
|
+
export declare function isHtmlResponse(body: unknown): boolean;
|
|
24
32
|
export declare function resolveControlPlaneBase(opts?: RepoOsApiOptions): {
|
|
25
33
|
root: string;
|
|
26
34
|
baseUrl: string;
|
package/dist/cli/repoos-api.js
CHANGED
|
@@ -28,6 +28,35 @@ function readApiError(body, status) {
|
|
|
28
28
|
}
|
|
29
29
|
return `HTTP ${status}`;
|
|
30
30
|
}
|
|
31
|
+
/** The JSON body used when the server answers with something that is not JSON. */
|
|
32
|
+
export function nonJsonResponse(path, text) {
|
|
33
|
+
// A web page (not JSON) means the request missed every /api/ route and fell
|
|
34
|
+
// through to the single-page app, which answers 200 with its own HTML — the
|
|
35
|
+
// common case is a typo'd path. Handing the page back as an "error" string
|
|
36
|
+
// would dump the whole app shell into the terminal; say what happened instead.
|
|
37
|
+
// The 512-char prefix is a heuristic: the SPA shell's doctype sits in the
|
|
38
|
+
// first bytes, so nothing beyond it can change the verdict — a non-HTML
|
|
39
|
+
// body that merely fails JSON.parse still surfaces as raw text.
|
|
40
|
+
const head = text.trimStart().slice(0, 512).toLowerCase();
|
|
41
|
+
if (head.startsWith("<!doctype html") || head.startsWith("<html")) {
|
|
42
|
+
return {
|
|
43
|
+
error: `The server returned a web page instead of JSON, so ${path} is not a RepoOS API route. ` +
|
|
44
|
+
"Check the path for typos — API routes start with /api/ (repoos api GET /api/stats/board is a good test).",
|
|
45
|
+
htmlResponse: true,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return { error: text };
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* True when the response body came from the SPA catch-all (a 200 HTML page for
|
|
52
|
+
* an unknown /api/ route) rather than a real API answer. Every consumer that
|
|
53
|
+
* classifies success must treat this as a failure — the HTTP status alone lies.
|
|
54
|
+
*/
|
|
55
|
+
export function isHtmlResponse(body) {
|
|
56
|
+
return (body !== null &&
|
|
57
|
+
typeof body === "object" &&
|
|
58
|
+
body.htmlResponse === true);
|
|
59
|
+
}
|
|
31
60
|
export function resolveControlPlaneBase(opts = {}) {
|
|
32
61
|
const { root } = opts.root ? { root: opts.root } : boardRoot();
|
|
33
62
|
const config = loadConfig(root);
|
|
@@ -152,7 +181,7 @@ export class RepoOsApi {
|
|
|
152
181
|
parsed = JSON.parse(text);
|
|
153
182
|
}
|
|
154
183
|
catch {
|
|
155
|
-
parsed =
|
|
184
|
+
parsed = nonJsonResponse(path, text);
|
|
156
185
|
}
|
|
157
186
|
}
|
|
158
187
|
return { status: res.status, body: parsed };
|
|
@@ -163,6 +192,11 @@ export class RepoOsApi {
|
|
|
163
192
|
if (!allowed.includes(status)) {
|
|
164
193
|
throw new RepoOsApiError(readApiError(data, status), status, data);
|
|
165
194
|
}
|
|
195
|
+
// A 200 that is really the SPA catch-all is not success — fail like any
|
|
196
|
+
// other non-JSON answer instead of returning a web page as the payload.
|
|
197
|
+
if (isHtmlResponse(data)) {
|
|
198
|
+
throw new RepoOsApiError(String(data.error), status, data);
|
|
199
|
+
}
|
|
166
200
|
return data;
|
|
167
201
|
}
|
|
168
202
|
}
|
|
@@ -159,6 +159,12 @@ export declare function pollSummaryState(getState: () => Promise<TaskSummaryStat
|
|
|
159
159
|
* Never touches the task status.
|
|
160
160
|
*/
|
|
161
161
|
export declare function cmdSummary(args: string[]): Promise<number>;
|
|
162
|
+
/**
|
|
163
|
+
* Plain-English rewrite of the server's generic "No valid fields to update"
|
|
164
|
+
* reply: `repoos config set <key> <value>` with a key that is not a RepoOS
|
|
165
|
+
* setting. Names the key and where valid keys are listed.
|
|
166
|
+
*/
|
|
167
|
+
export declare function unknownConfigKeyMessage(key: string): string;
|
|
162
168
|
/** Shared server-down check for tests. */
|
|
163
169
|
export declare function controlApiServerDownMessage(port: number): Promise<string>;
|
|
164
170
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { c } from "../cli/colors.js";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
|
-
import { pollUntil, RepoOsApi, RepoOsApiError, resolveControlPlaneBase, } from "../cli/repoos-api.js";
|
|
6
|
+
import { pollUntil, RepoOsApi, RepoOsApiError, isHtmlResponse, resolveControlPlaneBase, } from "../cli/repoos-api.js";
|
|
7
7
|
import { effectiveEngineerFromApi } from "../cli/effective-from-api.js";
|
|
8
8
|
import { HANDOFF_DEADLINE_MS } from "../server/handoff.js";
|
|
9
9
|
import { fmtDuration } from "./driver.js";
|
|
@@ -472,11 +472,9 @@ export async function cmdReview(args) {
|
|
|
472
472
|
try {
|
|
473
473
|
const api = new RepoOsApi({ port: opts.port });
|
|
474
474
|
await ensureServer(api);
|
|
475
|
-
const res = await api.
|
|
476
|
-
if (res.status < 200 || res.status >= 300)
|
|
477
|
-
throw new RepoOsApiError(String(res.body.error ?? "keep review verdict refused"), res.status, res.body);
|
|
475
|
+
const res = await api.requestOk("POST", `/api/tasks/${id}/review/keep`, {});
|
|
478
476
|
if (opts.json)
|
|
479
|
-
printJson(res
|
|
477
|
+
printJson(res);
|
|
480
478
|
else
|
|
481
479
|
console.log(c.green(" ✓ ") + c.dim(`kept review verdict for #${id}`));
|
|
482
480
|
return 0;
|
|
@@ -496,11 +494,9 @@ export async function cmdReview(args) {
|
|
|
496
494
|
try {
|
|
497
495
|
const api = new RepoOsApi({ port: opts.port });
|
|
498
496
|
await ensureServer(api);
|
|
499
|
-
const res = await api.
|
|
500
|
-
if (res.status < 200 || res.status >= 300)
|
|
501
|
-
throw new RepoOsApiError(String(res.body.error ?? "follow-up creation failed"), res.status, res.body);
|
|
497
|
+
const res = await api.requestOk("POST", `/api/tasks/${id}/review/followup`, {});
|
|
502
498
|
if (opts.json)
|
|
503
|
-
printJson(res
|
|
499
|
+
printJson(res);
|
|
504
500
|
else
|
|
505
501
|
console.log(c.green(" ✓ ") + c.dim(`created follow-up for #${id}`));
|
|
506
502
|
return 0;
|
|
@@ -658,6 +654,11 @@ export async function cmdIntegration(args) {
|
|
|
658
654
|
return 1;
|
|
659
655
|
}
|
|
660
656
|
const result = await api.request(action === "retry" || action === "refresh-install" ? "POST" : "GET", path, action === "retry" || action === "refresh-install" ? {} : undefined);
|
|
657
|
+
// A 200 whose body is the SPA catch-all HTML is not success — say so.
|
|
658
|
+
if (isHtmlResponse(result.body)) {
|
|
659
|
+
printErr(String(result.body.error ?? `HTTP ${result.status}`));
|
|
660
|
+
return 1;
|
|
661
|
+
}
|
|
661
662
|
if (opts.json)
|
|
662
663
|
printJson({ status: result.status, ...result.body });
|
|
663
664
|
else if (result.status >= 200 && result.status < 300)
|
|
@@ -690,6 +691,11 @@ export async function cmdAttention(args) {
|
|
|
690
691
|
printErr("Usage: repoos attention list|dismiss <task-id> [--json] [--port N]");
|
|
691
692
|
return 1;
|
|
692
693
|
}
|
|
694
|
+
// A 200 whose body is the SPA catch-all HTML is not success — say so.
|
|
695
|
+
if (isHtmlResponse(result.body)) {
|
|
696
|
+
printErr(String(result.body.error ?? `HTTP ${result.status}`));
|
|
697
|
+
return 1;
|
|
698
|
+
}
|
|
693
699
|
if (opts.json)
|
|
694
700
|
printJson({ status: result.status, ...result.body });
|
|
695
701
|
else if (result.status >= 200 && result.status < 300)
|
|
@@ -819,6 +825,10 @@ export async function cmdDone(args) {
|
|
|
819
825
|
await ensureServer(api);
|
|
820
826
|
if (cancel) {
|
|
821
827
|
const result = await api.request("POST", `/api/tasks/${id}/done/cancel`, {});
|
|
828
|
+
if (isHtmlResponse(result.body)) {
|
|
829
|
+
printErr(String(result.body.error ?? `HTTP ${result.status}`));
|
|
830
|
+
return 1;
|
|
831
|
+
}
|
|
822
832
|
const message = result.body.error ??
|
|
823
833
|
(result.status === 409
|
|
824
834
|
? "close-out is still shutting down; check again shortly"
|
|
@@ -959,6 +969,12 @@ export async function cmdApi(args) {
|
|
|
959
969
|
const api = new RepoOsApi({ port });
|
|
960
970
|
await ensureServer(api);
|
|
961
971
|
const result = await api.request(method, path, body);
|
|
972
|
+
// An HTML body is the SPA catch-all answering a wrong /api/ path with 200 —
|
|
973
|
+
// report it as the failure it is, not as a successful JSON payload.
|
|
974
|
+
if (result.body.htmlResponse) {
|
|
975
|
+
printErr(String(result.body.error ?? "Non-JSON response"));
|
|
976
|
+
return 1;
|
|
977
|
+
}
|
|
962
978
|
printJson({ status: result.status, ...result.body });
|
|
963
979
|
return result.status >= 200 && result.status < 300 ? 0 : 1;
|
|
964
980
|
}
|
|
@@ -1251,12 +1267,23 @@ export async function cmdConfig(args) {
|
|
|
1251
1267
|
return 1;
|
|
1252
1268
|
}
|
|
1253
1269
|
const patch = { [key]: parseSetValue(valueRaw) };
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1270
|
+
try {
|
|
1271
|
+
const data = await api.requestOk("PATCH", "/api/config", patch);
|
|
1272
|
+
if (opts.json)
|
|
1273
|
+
printJson(data);
|
|
1274
|
+
else
|
|
1275
|
+
console.log(c.green(" ✓ ") + c.dim(`set ${key}`));
|
|
1276
|
+
return 0;
|
|
1277
|
+
}
|
|
1278
|
+
catch (e) {
|
|
1279
|
+
// The server rejects a patch with no recognized fields — from this
|
|
1280
|
+
// command that always means the key name is not a RepoOS setting.
|
|
1281
|
+
if (e instanceof RepoOsApiError && e.message === "No valid fields to update") {
|
|
1282
|
+
printErr(unknownConfigKeyMessage(key));
|
|
1283
|
+
return 1;
|
|
1284
|
+
}
|
|
1285
|
+
throw e;
|
|
1286
|
+
}
|
|
1260
1287
|
}
|
|
1261
1288
|
catch (e) {
|
|
1262
1289
|
printErr(e.message);
|
|
@@ -1852,6 +1879,15 @@ export function printSystemSummary(system) {
|
|
|
1852
1879
|
? c.yellow("warning")
|
|
1853
1880
|
: c.green("normal");
|
|
1854
1881
|
console.log(c.dim(` pressure: ${label} swap ${fmtRatio(p.swapUsedRatio)} · compressor ${fmtRatio(p.compressorRatio)} · available ${fmtRatio(p.availableMemRatio)} · load ${p.loadPerCpu?.toFixed(1) ?? "—"}×/cpu (${p.source ?? "memory"})`));
|
|
1882
|
+
if (p.level === "warning") {
|
|
1883
|
+
console.log(c.dim(" advisory only — warning signals do not hold new work"));
|
|
1884
|
+
}
|
|
1885
|
+
else if (p.level === "critical") {
|
|
1886
|
+
console.log(c.dim(" holding new work until blocking pressure signals ease"));
|
|
1887
|
+
}
|
|
1888
|
+
else {
|
|
1889
|
+
console.log(c.dim(" no pressure signal is holding new work"));
|
|
1890
|
+
}
|
|
1855
1891
|
if (p.reason)
|
|
1856
1892
|
console.log(` ${c.yellow(p.reason)}`);
|
|
1857
1893
|
}
|
|
@@ -2085,6 +2121,15 @@ export async function cmdSummary(args) {
|
|
|
2085
2121
|
return 1;
|
|
2086
2122
|
}
|
|
2087
2123
|
}
|
|
2124
|
+
/**
|
|
2125
|
+
* Plain-English rewrite of the server's generic "No valid fields to update"
|
|
2126
|
+
* reply: `repoos config set <key> <value>` with a key that is not a RepoOS
|
|
2127
|
+
* setting. Names the key and where valid keys are listed.
|
|
2128
|
+
*/
|
|
2129
|
+
export function unknownConfigKeyMessage(key) {
|
|
2130
|
+
return (`Unknown setting "${key}" — RepoOS has no config field with that name. ` +
|
|
2131
|
+
"Open Settings in the web UI to see the valid keys, or check an existing one with `repoos config get <key>`.");
|
|
2132
|
+
}
|
|
2088
2133
|
/** Shared server-down check for tests. */
|
|
2089
2134
|
export async function controlApiServerDownMessage(port) {
|
|
2090
2135
|
const { baseUrl } = resolveControlPlaneBase({ port });
|
package/dist/commands/init.js
CHANGED
|
@@ -1353,25 +1353,6 @@ async function askLayout() {
|
|
|
1353
1353
|
console.log(c.yellow(" Too many invalid attempts — using the default (repoos/)."));
|
|
1354
1354
|
return "repoos";
|
|
1355
1355
|
}
|
|
1356
|
-
/** Open a URL in the default browser. Fail-soft (best effort, never blocks). */
|
|
1357
|
-
function openBrowser(url) {
|
|
1358
|
-
const cmd = process.platform === "darwin"
|
|
1359
|
-
? ["open", url]
|
|
1360
|
-
: process.platform === "win32"
|
|
1361
|
-
? ["cmd", "/c", "start", "", url]
|
|
1362
|
-
: ["xdg-open", url];
|
|
1363
|
-
try {
|
|
1364
|
-
const child = spawn(cmd[0], cmd.slice(1), {
|
|
1365
|
-
detached: true,
|
|
1366
|
-
stdio: "ignore",
|
|
1367
|
-
});
|
|
1368
|
-
child.on("error", () => { });
|
|
1369
|
-
child.unref();
|
|
1370
|
-
}
|
|
1371
|
-
catch {
|
|
1372
|
-
/* fail-soft */
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
1356
|
function probePort(port) {
|
|
1376
1357
|
return new Promise((resolve) => {
|
|
1377
1358
|
const srv = createServer();
|
|
@@ -1798,12 +1779,10 @@ async function guidedNewRepo(opts) {
|
|
|
1798
1779
|
"\n");
|
|
1799
1780
|
}
|
|
1800
1781
|
console.log(c.dim(" Starting the RepoOS web console…"));
|
|
1801
|
-
//
|
|
1802
|
-
//
|
|
1803
|
-
// any earlier races that startup, showing connection errors until a
|
|
1804
|
-
// manual reload.
|
|
1782
|
+
// Don't launch a browser automatically: init may run from a headless
|
|
1783
|
+
// engineer session, and opening the user's default browser steals focus.
|
|
1805
1784
|
await cmdServe(["--port", String(port)], {
|
|
1806
|
-
onReady: (url) =>
|
|
1785
|
+
onReady: (url) => console.log(c.dim(` Open the web console at ${url}`)),
|
|
1807
1786
|
onShutdown: dirHint
|
|
1808
1787
|
? () => console.log(c.dim(" Start it again with:\n\n ") +
|
|
1809
1788
|
c.cyan(dirHint) +
|
package/dist/commands/restart.js
CHANGED
|
@@ -10,7 +10,7 @@ import { locateRepoServer } from "../core/server-locate.js";
|
|
|
10
10
|
import { readLocalCliToken } from "../server/local-token.js";
|
|
11
11
|
const PATH_LABEL = {
|
|
12
12
|
"managed-service": "managed service (`repoos service`)",
|
|
13
|
-
|
|
13
|
+
supervisor: "supervised process (restarted by its supervisor)",
|
|
14
14
|
"hand-run": "hand-run `repoos serve` (stop + start)",
|
|
15
15
|
};
|
|
16
16
|
export async function cmdRestart(argv) {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/** Printed on a bad invocation and asserted (against the banner) by secrets.test.ts. */
|
|
2
|
+
export declare const SECRETS_USAGE = "Usage: repoos secrets <list|add|replace|delete> <environment> [KEY] | bind <consumer> <environment> [KEY ...] | bindings (values come from stdin or a hidden prompt)";
|
|
3
|
+
/** Every action `cmdSecrets` dispatches on — the source of truth the usage strings must cover. */
|
|
4
|
+
export declare const SECRET_ACTIONS: readonly ["list", "add", "replace", "delete", "bind", "bindings"];
|
|
1
5
|
export declare function assertSecretMutationAllowed(action: "add" | "replace" | "delete", row: {
|
|
2
6
|
status: string;
|
|
3
7
|
inherited?: boolean;
|
package/dist/commands/secrets.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { RepoOsApi } from "../cli/repoos-api.js";
|
|
2
2
|
import { normalizeProjectEnvironmentConsumer } from "../core/project-environments.js";
|
|
3
|
+
/** Printed on a bad invocation and asserted (against the banner) by secrets.test.ts. */
|
|
4
|
+
export const SECRETS_USAGE = "Usage: repoos secrets <list|add|replace|delete> <environment> [KEY] | bind <consumer> <environment> [KEY ...] | bindings (values come from stdin or a hidden prompt)";
|
|
5
|
+
/** Every action `cmdSecrets` dispatches on — the source of truth the usage strings must cover. */
|
|
6
|
+
export const SECRET_ACTIONS = ["list", "add", "replace", "delete", "bind", "bindings"];
|
|
3
7
|
export function assertSecretMutationAllowed(action, row) {
|
|
4
8
|
if ((action === "replace" || action === "delete") && row?.inherited)
|
|
5
9
|
throw new Error("Key is inherited from an earlier source and cannot be changed");
|
|
@@ -83,7 +87,7 @@ export async function cmdSecrets(args) {
|
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
if (!action || !environment || !["list", "add", "replace", "delete"].includes(action)) {
|
|
86
|
-
console.error(
|
|
90
|
+
console.error(SECRETS_USAGE);
|
|
87
91
|
return 2;
|
|
88
92
|
}
|
|
89
93
|
const api = new RepoOsApi();
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
|
-
import {
|
|
2
|
+
import { commandUsage } from "../cli/help.js";
|
|
3
|
+
import { assertSecretMutationAllowed, SECRET_ACTIONS, SECRETS_USAGE } from "./secrets.js";
|
|
3
4
|
describe("repoos secrets inherited keys", () => {
|
|
4
5
|
it.each(["replace", "delete"])("refuses %s of inherited-only keys before reading a value", (action) => {
|
|
5
6
|
expect(() => assertSecretMutationAllowed(action, { status: "set", inherited: true })).toThrow("Key is inherited from an earlier source and cannot be changed");
|
|
6
7
|
});
|
|
7
8
|
});
|
|
9
|
+
// The usage strings have drifted from the real CLI before (#1227 review pass 2:
|
|
10
|
+
// both omitted `bind`/`bindings` while the actions were implemented). Pin every
|
|
11
|
+
// usage surface to the full implemented action set so the next subcommand
|
|
12
|
+
// cannot land without appearing in them.
|
|
13
|
+
describe("repoos secrets usage strings cover every implemented action", () => {
|
|
14
|
+
it.each(SECRET_ACTIONS)("the self-help banner mentions %s", (action) => {
|
|
15
|
+
expect(commandUsage("secrets") ?? "").toContain(action);
|
|
16
|
+
});
|
|
17
|
+
it.each(SECRET_ACTIONS)("the bad-invocation usage line mentions %s", (action) => {
|
|
18
|
+
expect(SECRETS_USAGE).toContain(action);
|
|
19
|
+
});
|
|
20
|
+
});
|
package/dist/commands/tasks.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare const UPDATE_FLAGS: Record<string, keyof TaskPatch>;
|
|
|
98
98
|
* Desired UX / Acceptance criteria / Notes for AI) is refused unless `--force`
|
|
99
99
|
* is passed.
|
|
100
100
|
*/
|
|
101
|
-
export declare function cmdUpdate(args: string[]): void
|
|
101
|
+
export declare function cmdUpdate(args: string[]): Promise<void>;
|
|
102
102
|
/**
|
|
103
103
|
* Accepted flags for `repoos new`, derived from the shared help map so the
|
|
104
104
|
* parse surface and `--help` can never disagree (#0699).
|
package/dist/commands/tasks.js
CHANGED
|
@@ -155,6 +155,15 @@ function printTaskList(rootName, tasks, statusArg) {
|
|
|
155
155
|
}
|
|
156
156
|
/** `repoos list [status]` — board overview or a single column. */
|
|
157
157
|
export async function cmdList(statusArg) {
|
|
158
|
+
const listStatuses = [...STATUSES.filter((status) => status !== "draft"), "archived"];
|
|
159
|
+
if (statusArg !== undefined &&
|
|
160
|
+
!listStatuses.includes(statusArg)) {
|
|
161
|
+
console.error(c.red(` Unknown list status: ${statusArg}. `) +
|
|
162
|
+
c.dim(`Choose one of: ${listStatuses.join(" | ")}.`));
|
|
163
|
+
console.error(c.dim(" Usage: repoos list [status]"));
|
|
164
|
+
process.exitCode = 1;
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
158
167
|
const remote = await listTasksViaApi(statusArg);
|
|
159
168
|
if (remote) {
|
|
160
169
|
printTaskList(remote.rootName, remote.tasks, statusArg);
|
|
@@ -611,7 +620,7 @@ function shotsSectionContent(raw, preview, shot, task, root) {
|
|
|
611
620
|
* Desired UX / Acceptance criteria / Notes for AI) is refused unless `--force`
|
|
612
621
|
* is passed.
|
|
613
622
|
*/
|
|
614
|
-
export function cmdUpdate(args) {
|
|
623
|
+
export async function cmdUpdate(args) {
|
|
615
624
|
const [id, ...rest] = args;
|
|
616
625
|
const usage = UPDATE_USAGE;
|
|
617
626
|
if (!id) {
|
|
@@ -854,8 +863,22 @@ export function cmdUpdate(args) {
|
|
|
854
863
|
}
|
|
855
864
|
}
|
|
856
865
|
try {
|
|
857
|
-
|
|
866
|
+
let updated = patchTaskFile(repoos.config, task.absPath, patch);
|
|
867
|
+
// Keep direct CLI edits in lockstep with PATCH /api/tasks/:id: changing a
|
|
868
|
+
// task body, section, or assignee can raise or clear the spec-owned
|
|
869
|
+
// needs_input flag. Without this pass the UI and CLI leave different task
|
|
870
|
+
// states for the same edit.
|
|
871
|
+
if (patch.body !== undefined || patch.section !== undefined || patch.assignedTo !== undefined) {
|
|
872
|
+
const flagged = await flagTaskSpecFlagsIfNeededAsync(repoos.config, updated);
|
|
873
|
+
if (flagged)
|
|
874
|
+
updated = flagged;
|
|
875
|
+
}
|
|
858
876
|
console.log(" " + c.green("updated ") + c.dim("#" + updated.id) + " " + updated.title);
|
|
877
|
+
if (updated.needsInput) {
|
|
878
|
+
console.log(" " +
|
|
879
|
+
c.yellow("needs input ") +
|
|
880
|
+
c.dim(updated.needsInputDetail || updated.needsInputReason || "waiting for a person"));
|
|
881
|
+
}
|
|
859
882
|
const guideWarning = humanTaskGuideWarning(updated.assignee, updated.body);
|
|
860
883
|
if (guideWarning)
|
|
861
884
|
console.log(" " + c.yellow("warning: ") + c.dim(guideWarning));
|
|
@@ -886,6 +886,12 @@ function makeScreens(url) {
|
|
|
886
886
|
},
|
|
887
887
|
{ name: "agents", prepare: (p) => gotoApp(p, url, "/agents") },
|
|
888
888
|
{ name: "settings", prepare: (p) => gotoApp(p, url, "/settings") },
|
|
889
|
+
{ name: "checks", prepare: (p) => gotoApp(p, url, "/checks") },
|
|
890
|
+
// Keep the release and deployment surfaces in rendered contrast coverage;
|
|
891
|
+
// both pages gained substantial status and action UI beyond the original
|
|
892
|
+
// main-page set.
|
|
893
|
+
{ name: "releases", prepare: (p) => gotoApp(p, url, "/releases") },
|
|
894
|
+
{ name: "deployments", prepare: (p) => gotoApp(p, url, "/deployments") },
|
|
889
895
|
// The Dev page (#0802): the declared target's command, real URL and chosen
|
|
890
896
|
// port are text that must meet the floor in every theme scope.
|
|
891
897
|
{ name: "dev", prepare: (p) => gotoApp(p, url, "/dev") },
|
|
@@ -16,20 +16,43 @@ export interface SmokeResponse {
|
|
|
16
16
|
status(): number;
|
|
17
17
|
url(): string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* What an intercepted request can do before fulfilling (#1226): `abort`
|
|
21
|
+
* simulates a dead network, `fetch` + `fulfill({ response })` passes the real
|
|
22
|
+
* response through after a delay (slow-network). Structural only — the real
|
|
23
|
+
* Playwright `Route` satisfies both.
|
|
24
|
+
*/
|
|
25
|
+
export interface SmokeRoute {
|
|
26
|
+
/** The intercepted request (URL, method, post data) — used to branch handlers. */
|
|
27
|
+
request(): {
|
|
28
|
+
url(): string;
|
|
29
|
+
method(): string;
|
|
30
|
+
};
|
|
31
|
+
fetch(): Promise<{
|
|
32
|
+
status(): number;
|
|
33
|
+
body(): Promise<Buffer | string>;
|
|
34
|
+
json(): Promise<unknown>;
|
|
35
|
+
}>;
|
|
36
|
+
abort(): Promise<void>;
|
|
37
|
+
fulfill(options: {
|
|
38
|
+
status: number;
|
|
39
|
+
contentType: string;
|
|
40
|
+
body: string;
|
|
41
|
+
} | {
|
|
42
|
+
response: {
|
|
43
|
+
status(): number;
|
|
44
|
+
body(): Promise<Buffer | string>;
|
|
45
|
+
json(): Promise<unknown>;
|
|
46
|
+
};
|
|
47
|
+
}): Promise<void>;
|
|
48
|
+
}
|
|
19
49
|
export interface SmokePage {
|
|
20
50
|
on(event: "console", handler: (msg: SmokeConsoleMessage) => void): void;
|
|
21
51
|
on(event: "pageerror", handler: (err: Error) => void): void;
|
|
22
52
|
on(event: "response", handler: (res: SmokeResponse) => void): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}>;
|
|
27
|
-
fulfill(options: {
|
|
28
|
-
status: number;
|
|
29
|
-
contentType: string;
|
|
30
|
-
body: string;
|
|
31
|
-
}): Promise<void>;
|
|
32
|
-
}) => Promise<void>): Promise<void>;
|
|
53
|
+
/** Remove a previously-registered interception (offline → recovery). */
|
|
54
|
+
unroute(url: string, handler?: unknown): Promise<void>;
|
|
55
|
+
route(url: string, handler: (route: SmokeRoute) => Promise<void>): Promise<void>;
|
|
33
56
|
close(): Promise<void>;
|
|
34
57
|
goto(url: string, options: {
|
|
35
58
|
waitUntil: string;
|
|
@@ -67,16 +90,7 @@ export interface SmokePage {
|
|
|
67
90
|
type(text: string): Promise<void>;
|
|
68
91
|
press(key: string): Promise<void>;
|
|
69
92
|
};
|
|
70
|
-
route(url: string, handler: (route:
|
|
71
|
-
fetch(): Promise<{
|
|
72
|
-
json(): Promise<unknown>;
|
|
73
|
-
}>;
|
|
74
|
-
fulfill(options: {
|
|
75
|
-
status: number;
|
|
76
|
-
contentType: string;
|
|
77
|
-
body: string;
|
|
78
|
-
}): Promise<void>;
|
|
79
|
-
}) => Promise<void>): Promise<void>;
|
|
93
|
+
route(url: string, handler: (route: SmokeRoute) => Promise<void>): Promise<void>;
|
|
80
94
|
close(): Promise<void>;
|
|
81
95
|
}
|
|
82
96
|
export interface SmokeBrowser {
|