@namzu/cli 35.0.0 → 36.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +756 -0
- package/README.md +160 -394
- package/assets/pal-blender-mcp.py +123 -0
- package/assets/pal-godot-mcp-pin.json +135 -0
- package/assets/pal-godot-mcp.cjs +418 -0
- package/dist/bin-main.d.ts +3 -0
- package/dist/bin-main.d.ts.map +1 -0
- package/dist/bin.d.ts +2 -1
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +85 -23
- package/dist/bin.js.map +6 -1
- package/dist/boot-narrative.d.ts +16 -0
- package/dist/boot-narrative.d.ts.map +1 -0
- package/dist/checkpoints/manifest.d.ts +107 -0
- package/dist/checkpoints/manifest.d.ts.map +1 -0
- package/dist/checkpoints/store.d.ts +280 -40
- package/dist/checkpoints/store.d.ts.map +1 -1
- package/dist/checkpoints/undo-plan.d.ts +83 -0
- package/dist/checkpoints/undo-plan.d.ts.map +1 -0
- package/dist/checkpoints/wrap.d.ts +4 -0
- package/dist/checkpoints/wrap.d.ts.map +1 -1
- package/dist/chunks/acp-BOSEA4R3.js +13448 -0
- package/dist/chunks/acp-BOSEA4R3.js.map +6 -0
- package/dist/chunks/activity-command-ACS7KL3C.js +262 -0
- package/dist/chunks/activity-command-ACS7KL3C.js.map +6 -0
- package/dist/chunks/add-DLS54YKS.js +712 -0
- package/dist/chunks/add-DLS54YKS.js.map +6 -0
- package/dist/chunks/agent-GV3DWYQC.js +87 -0
- package/dist/chunks/agent-GV3DWYQC.js.map +6 -0
- package/dist/chunks/agent-session-7VE6GJJH.js +46 -0
- package/dist/chunks/agent-session-7VE6GJJH.js.map +6 -0
- package/dist/chunks/archive-6ZENIEBP.js +84 -0
- package/dist/chunks/archive-6ZENIEBP.js.map +6 -0
- package/dist/chunks/bin-main-NFFT5ZIU.js +126 -0
- package/dist/chunks/bin-main-NFFT5ZIU.js.map +6 -0
- package/dist/chunks/browser-VT2U6NG2.js +31 -0
- package/dist/chunks/browser-VT2U6NG2.js.map +6 -0
- package/dist/chunks/chat-UNYVLDFL.js +101 -0
- package/dist/chunks/chat-UNYVLDFL.js.map +6 -0
- package/dist/chunks/chunk-2IL6OG3X.js +311 -0
- package/dist/chunks/chunk-2IL6OG3X.js.map +6 -0
- package/dist/chunks/chunk-2RBYHHLM.js +319 -0
- package/dist/chunks/chunk-2RBYHHLM.js.map +6 -0
- package/dist/chunks/chunk-42ZK2AH4.js +71 -0
- package/dist/chunks/chunk-42ZK2AH4.js.map +6 -0
- package/dist/chunks/chunk-5PQVJBIO.js +168 -0
- package/dist/chunks/chunk-5PQVJBIO.js.map +6 -0
- package/dist/chunks/chunk-6CPT2ZBS.js +75 -0
- package/dist/chunks/chunk-6CPT2ZBS.js.map +6 -0
- package/dist/chunks/chunk-6LLJQ3KY.js +225 -0
- package/dist/chunks/chunk-6LLJQ3KY.js.map +6 -0
- package/dist/chunks/chunk-6YFJDVGA.js +161 -0
- package/dist/chunks/chunk-6YFJDVGA.js.map +6 -0
- package/dist/chunks/chunk-6YG7D7U4.js +159 -0
- package/dist/chunks/chunk-6YG7D7U4.js.map +6 -0
- package/dist/chunks/chunk-6ZPODOJN.js +828 -0
- package/dist/chunks/chunk-6ZPODOJN.js.map +6 -0
- package/dist/chunks/chunk-76FLAFCG.js +51 -0
- package/dist/chunks/chunk-76FLAFCG.js.map +6 -0
- package/dist/chunks/chunk-7HCPD673.js +25326 -0
- package/dist/chunks/chunk-7HCPD673.js.map +6 -0
- package/dist/chunks/chunk-7KWGR2YA.js +257 -0
- package/dist/chunks/chunk-7KWGR2YA.js.map +6 -0
- package/dist/chunks/chunk-A22MBIYU.js +42 -0
- package/dist/chunks/chunk-A22MBIYU.js.map +6 -0
- package/dist/chunks/chunk-AHIDYIRB.js +329 -0
- package/dist/chunks/chunk-AHIDYIRB.js.map +6 -0
- package/dist/chunks/chunk-AK2U3N2A.js +31 -0
- package/dist/chunks/chunk-AK2U3N2A.js.map +6 -0
- package/dist/chunks/chunk-AKKRZTPB.js +283 -0
- package/dist/chunks/chunk-AKKRZTPB.js.map +6 -0
- package/dist/chunks/chunk-BCZR2B3Y.js +97 -0
- package/dist/chunks/chunk-BCZR2B3Y.js.map +6 -0
- package/dist/chunks/chunk-CHIEVVQ2.js +32 -0
- package/dist/chunks/chunk-CHIEVVQ2.js.map +6 -0
- package/dist/chunks/chunk-D67YBUO3.js +110 -0
- package/dist/chunks/chunk-D67YBUO3.js.map +6 -0
- package/dist/chunks/chunk-DIHEHK7K.js +765 -0
- package/dist/chunks/chunk-DIHEHK7K.js.map +6 -0
- package/dist/chunks/chunk-E5VLANCO.js +101 -0
- package/dist/chunks/chunk-E5VLANCO.js.map +6 -0
- package/dist/chunks/chunk-EEDZOGV4.js +47 -0
- package/dist/chunks/chunk-EEDZOGV4.js.map +6 -0
- package/dist/chunks/chunk-ENGNEELC.js +271 -0
- package/dist/chunks/chunk-ENGNEELC.js.map +6 -0
- package/dist/chunks/chunk-EVY4MVRE.js +74 -0
- package/dist/chunks/chunk-EVY4MVRE.js.map +6 -0
- package/dist/chunks/chunk-FJNDNNNQ.js +115 -0
- package/dist/chunks/chunk-FJNDNNNQ.js.map +6 -0
- package/dist/chunks/chunk-FOFGMP7O.js +20 -0
- package/dist/chunks/chunk-FOFGMP7O.js.map +6 -0
- package/dist/chunks/chunk-FTMTO72X.js +95 -0
- package/dist/chunks/chunk-FTMTO72X.js.map +6 -0
- package/dist/chunks/chunk-GIXSS6KW.js +2228 -0
- package/dist/chunks/chunk-GIXSS6KW.js.map +6 -0
- package/dist/chunks/chunk-GNBMKISG.js +19 -0
- package/dist/chunks/chunk-GNBMKISG.js.map +6 -0
- package/dist/chunks/chunk-GWQEMJFS.js +28 -0
- package/dist/chunks/chunk-GWQEMJFS.js.map +6 -0
- package/dist/chunks/chunk-H6B6AROX.js +151 -0
- package/dist/chunks/chunk-H6B6AROX.js.map +6 -0
- package/dist/chunks/chunk-HE7WUOX2.js +26 -0
- package/dist/chunks/chunk-HE7WUOX2.js.map +6 -0
- package/dist/chunks/chunk-HZBKWL42.js +303 -0
- package/dist/chunks/chunk-HZBKWL42.js.map +6 -0
- package/dist/chunks/chunk-I7HQR6ET.js +75 -0
- package/dist/chunks/chunk-I7HQR6ET.js.map +6 -0
- package/dist/chunks/chunk-IJEB77SH.js +648 -0
- package/dist/chunks/chunk-IJEB77SH.js.map +6 -0
- package/dist/chunks/chunk-JNPDWME5.js +675 -0
- package/dist/chunks/chunk-JNPDWME5.js.map +6 -0
- package/dist/chunks/chunk-JORONMD3.js +18 -0
- package/dist/chunks/chunk-JORONMD3.js.map +6 -0
- package/dist/chunks/chunk-JV3LONAU.js +76 -0
- package/dist/chunks/chunk-JV3LONAU.js.map +6 -0
- package/dist/chunks/chunk-K5HARZ7G.js +82516 -0
- package/dist/chunks/chunk-K5HARZ7G.js.map +6 -0
- package/dist/chunks/chunk-KONYGNG6.js +7661 -0
- package/dist/chunks/chunk-KONYGNG6.js.map +6 -0
- package/dist/chunks/chunk-LXB3S4IC.js +19 -0
- package/dist/chunks/chunk-LXB3S4IC.js.map +6 -0
- package/dist/chunks/chunk-M3IAMIBJ.js +661 -0
- package/dist/chunks/chunk-M3IAMIBJ.js.map +6 -0
- package/dist/chunks/chunk-MH6KUKVV.js +1142 -0
- package/dist/chunks/chunk-MH6KUKVV.js.map +6 -0
- package/dist/chunks/chunk-MS3IYQ72.js +1479 -0
- package/dist/chunks/chunk-MS3IYQ72.js.map +6 -0
- package/dist/chunks/chunk-MZP6SH3M.js +3497 -0
- package/dist/chunks/chunk-MZP6SH3M.js.map +6 -0
- package/dist/chunks/chunk-N3ZEXVSS.js +76 -0
- package/dist/chunks/chunk-N3ZEXVSS.js.map +6 -0
- package/dist/chunks/chunk-N6SR54VC.js +207 -0
- package/dist/chunks/chunk-N6SR54VC.js.map +6 -0
- package/dist/chunks/chunk-NADQQMMG.js +46 -0
- package/dist/chunks/chunk-NADQQMMG.js.map +6 -0
- package/dist/chunks/chunk-NBH52WHS.js +247 -0
- package/dist/chunks/chunk-NBH52WHS.js.map +6 -0
- package/dist/chunks/chunk-NICLKFBG.js +109 -0
- package/dist/chunks/chunk-NICLKFBG.js.map +6 -0
- package/dist/chunks/chunk-NIPHHZ5G.js +283 -0
- package/dist/chunks/chunk-NIPHHZ5G.js.map +6 -0
- package/dist/chunks/chunk-NQT244I2.js +517 -0
- package/dist/chunks/chunk-NQT244I2.js.map +6 -0
- package/dist/chunks/chunk-NUGPLXVK.js +228 -0
- package/dist/chunks/chunk-NUGPLXVK.js.map +6 -0
- package/dist/chunks/chunk-OEW7CJKK.js +140 -0
- package/dist/chunks/chunk-OEW7CJKK.js.map +6 -0
- package/dist/chunks/chunk-OH6TB27S.js +111 -0
- package/dist/chunks/chunk-OH6TB27S.js.map +6 -0
- package/dist/chunks/chunk-OWH6QQY2.js +1858 -0
- package/dist/chunks/chunk-OWH6QQY2.js.map +6 -0
- package/dist/chunks/chunk-OWXJOD4H.js +773 -0
- package/dist/chunks/chunk-OWXJOD4H.js.map +6 -0
- package/dist/chunks/chunk-PT537V7B.js +787 -0
- package/dist/chunks/chunk-PT537V7B.js.map +6 -0
- package/dist/chunks/chunk-QEQZFG2X.js +106 -0
- package/dist/chunks/chunk-QEQZFG2X.js.map +6 -0
- package/dist/chunks/chunk-QL4O4UGZ.js +245 -0
- package/dist/chunks/chunk-QL4O4UGZ.js.map +6 -0
- package/dist/chunks/chunk-QL54XCF4.js +73 -0
- package/dist/chunks/chunk-QL54XCF4.js.map +6 -0
- package/dist/chunks/chunk-SB6UD3ED.js +1355 -0
- package/dist/chunks/chunk-SB6UD3ED.js.map +6 -0
- package/dist/chunks/chunk-SGGRGKGV.js +34 -0
- package/dist/chunks/chunk-SGGRGKGV.js.map +6 -0
- package/dist/chunks/chunk-SKKWMMFP.js +474 -0
- package/dist/chunks/chunk-SKKWMMFP.js.map +6 -0
- package/dist/chunks/chunk-SMIDV4KH.js +171 -0
- package/dist/chunks/chunk-SMIDV4KH.js.map +6 -0
- package/dist/chunks/chunk-T2VUTAHB.js +46 -0
- package/dist/chunks/chunk-T2VUTAHB.js.map +6 -0
- package/dist/chunks/chunk-T4SB6AAF.js +134 -0
- package/dist/chunks/chunk-T4SB6AAF.js.map +6 -0
- package/dist/chunks/chunk-TBIX6JRE.js +24 -0
- package/dist/chunks/chunk-TBIX6JRE.js.map +6 -0
- package/dist/chunks/chunk-THNCQJ33.js +11265 -0
- package/dist/chunks/chunk-THNCQJ33.js.map +6 -0
- package/dist/chunks/chunk-U56QFYGA.js +818 -0
- package/dist/chunks/chunk-U56QFYGA.js.map +6 -0
- package/dist/chunks/chunk-U6GZ7EW4.js +106 -0
- package/dist/chunks/chunk-U6GZ7EW4.js.map +6 -0
- package/dist/chunks/chunk-UDDSFIMB.js +1373 -0
- package/dist/chunks/chunk-UDDSFIMB.js.map +6 -0
- package/dist/chunks/chunk-UFHNXZL2.js +399 -0
- package/dist/chunks/chunk-UFHNXZL2.js.map +6 -0
- package/dist/chunks/chunk-US5ZFPAU.js +400 -0
- package/dist/chunks/chunk-US5ZFPAU.js.map +6 -0
- package/dist/chunks/chunk-VRL2WNQN.js +7534 -0
- package/dist/chunks/chunk-VRL2WNQN.js.map +6 -0
- package/dist/chunks/chunk-W3UQMRYA.js +380 -0
- package/dist/chunks/chunk-W3UQMRYA.js.map +6 -0
- package/dist/chunks/chunk-W5KGCUP3.js +11111 -0
- package/dist/chunks/chunk-W5KGCUP3.js.map +6 -0
- package/dist/chunks/chunk-WHODOMXA.js +132 -0
- package/dist/chunks/chunk-WHODOMXA.js.map +6 -0
- package/dist/chunks/chunk-WT6TFCPV.js +154 -0
- package/dist/chunks/chunk-WT6TFCPV.js.map +6 -0
- package/dist/chunks/chunk-WY2WUTFR.js +164 -0
- package/dist/chunks/chunk-WY2WUTFR.js.map +6 -0
- package/dist/chunks/chunk-XEUQN4JC.js +54 -0
- package/dist/chunks/chunk-XEUQN4JC.js.map +6 -0
- package/dist/chunks/chunk-Y7B67G22.js +26 -0
- package/dist/chunks/chunk-Y7B67G22.js.map +6 -0
- package/dist/chunks/chunk-YEMJX2DS.js +69 -0
- package/dist/chunks/chunk-YEMJX2DS.js.map +6 -0
- package/dist/chunks/chunk-YKLKHDZU.js +2953 -0
- package/dist/chunks/chunk-YKLKHDZU.js.map +6 -0
- package/dist/chunks/chunk-YQEWD2EN.js +127 -0
- package/dist/chunks/chunk-YQEWD2EN.js.map +6 -0
- package/dist/chunks/chunk-YYQJIECC.js +1439 -0
- package/dist/chunks/chunk-YYQJIECC.js.map +6 -0
- package/dist/chunks/chunk-ZKVZNOUS.js +106 -0
- package/dist/chunks/chunk-ZKVZNOUS.js.map +6 -0
- package/dist/chunks/chunk-ZPR4IMRT.js +36 -0
- package/dist/chunks/chunk-ZPR4IMRT.js.map +6 -0
- package/dist/chunks/chunk-ZWA2JRJV.js +45 -0
- package/dist/chunks/chunk-ZWA2JRJV.js.map +6 -0
- package/dist/chunks/cli-runtime-F4MBZ2UQ.js +129 -0
- package/dist/chunks/cli-runtime-F4MBZ2UQ.js.map +6 -0
- package/dist/chunks/commands-GMQGFTIY.js +21 -0
- package/dist/chunks/commands-GMQGFTIY.js.map +6 -0
- package/dist/chunks/computer-GXDY4H35.js +493 -0
- package/dist/chunks/computer-GXDY4H35.js.map +6 -0
- package/dist/chunks/crash-report-STOHSORG.js +21 -0
- package/dist/chunks/crash-report-STOHSORG.js.map +6 -0
- package/dist/chunks/devtools-LBE4PAQN.js +3851 -0
- package/dist/chunks/devtools-LBE4PAQN.js.map +6 -0
- package/dist/chunks/dist-3AF2X4S5.js +1339 -0
- package/dist/chunks/dist-3AF2X4S5.js.map +6 -0
- package/dist/chunks/dist-AZIMHV2B.js +514 -0
- package/dist/chunks/dist-AZIMHV2B.js.map +6 -0
- package/dist/chunks/dist-BGYRQ5BC.js +555 -0
- package/dist/chunks/dist-BGYRQ5BC.js.map +6 -0
- package/dist/chunks/dist-OTTZ7WVD.js +1415 -0
- package/dist/chunks/dist-OTTZ7WVD.js.map +6 -0
- package/dist/chunks/dist-R3I3ATSG.js +1018 -0
- package/dist/chunks/dist-R3I3ATSG.js.map +6 -0
- package/dist/chunks/dist-TXEKDBQO.js +40642 -0
- package/dist/chunks/dist-TXEKDBQO.js.map +6 -0
- package/dist/chunks/dist-XTWYQHHN.js +520 -0
- package/dist/chunks/dist-XTWYQHHN.js.map +6 -0
- package/dist/chunks/doctor-VXSB4Y4P.js +28 -0
- package/dist/chunks/doctor-VXSB4Y4P.js.map +6 -0
- package/dist/chunks/drain-DXVICQBR.js +471 -0
- package/dist/chunks/drain-DXVICQBR.js.map +6 -0
- package/dist/chunks/endpoint-M2DDENPP.js +15 -0
- package/dist/chunks/endpoint-M2DDENPP.js.map +6 -0
- package/dist/chunks/eval-BMJQXDKA.js +187 -0
- package/dist/chunks/eval-BMJQXDKA.js.map +6 -0
- package/dist/chunks/exec-3T5ESZPH.js +1284 -0
- package/dist/chunks/exec-3T5ESZPH.js.map +6 -0
- package/dist/chunks/home-ILHA7B6Z.js +16 -0
- package/dist/chunks/home-ILHA7B6Z.js.map +6 -0
- package/dist/chunks/host-queries-QCMWDZGS.js +152 -0
- package/dist/chunks/host-queries-QCMWDZGS.js.map +6 -0
- package/dist/chunks/lib-KXZZJJG2.js +2657 -0
- package/dist/chunks/lib-KXZZJJG2.js.map +6 -0
- package/dist/chunks/lifecycle-CB23VJI7.js +63 -0
- package/dist/chunks/lifecycle-CB23VJI7.js.map +6 -0
- package/dist/chunks/list-N6WXZBMD.js +293 -0
- package/dist/chunks/list-N6WXZBMD.js.map +6 -0
- package/dist/chunks/login-26NCG6EQ.js +29 -0
- package/dist/chunks/login-26NCG6EQ.js.map +6 -0
- package/dist/chunks/logs-V7SNM7LA.js +116 -0
- package/dist/chunks/logs-V7SNM7LA.js.map +6 -0
- package/dist/chunks/mcp-BTHCU5ZC.js +763 -0
- package/dist/chunks/mcp-BTHCU5ZC.js.map +6 -0
- package/dist/chunks/message-command-HMIOR52C.js +170 -0
- package/dist/chunks/message-command-HMIOR52C.js.map +6 -0
- package/dist/chunks/node-QB2FA2ZB.js +916 -0
- package/dist/chunks/node-QB2FA2ZB.js.map +6 -0
- package/dist/chunks/operator-tools-7LMWOHSN.js +115 -0
- package/dist/chunks/operator-tools-7LMWOHSN.js.map +6 -0
- package/dist/chunks/output-schema-XCONYVZ7.js +11 -0
- package/dist/chunks/output-schema-XCONYVZ7.js.map +6 -0
- package/dist/chunks/pal-YEUKHA6F.js +200 -0
- package/dist/chunks/pal-YEUKHA6F.js.map +6 -0
- package/dist/chunks/paths-DXYFKIJU.js +10 -0
- package/dist/chunks/paths-DXYFKIJU.js.map +6 -0
- package/dist/chunks/pica-WNHDDIFX.js +1736 -0
- package/dist/chunks/pica-WNHDDIFX.js.map +6 -0
- package/dist/chunks/providers-EI3FAKYB.js +160 -0
- package/dist/chunks/providers-EI3FAKYB.js.map +6 -0
- package/dist/chunks/resident-5ZY6OG6B.js +1314 -0
- package/dist/chunks/resident-5ZY6OG6B.js.map +6 -0
- package/dist/chunks/resume-command-ONYRZIIA.js +22 -0
- package/dist/chunks/resume-command-ONYRZIIA.js.map +6 -0
- package/dist/chunks/schedule-6JPEO4NR.js +143 -0
- package/dist/chunks/schedule-6JPEO4NR.js.map +6 -0
- package/dist/chunks/serve-S7UWNIR3.js +21 -0
- package/dist/chunks/serve-S7UWNIR3.js.map +6 -0
- package/dist/chunks/service-WSW3M6K5.js +1633 -0
- package/dist/chunks/service-WSW3M6K5.js.map +6 -0
- package/dist/chunks/session-step-2VZM3CCA.js +26 -0
- package/dist/chunks/session-step-2VZM3CCA.js.map +6 -0
- package/dist/chunks/skills-KAZJYGX5.js +282 -0
- package/dist/chunks/skills-KAZJYGX5.js.map +6 -0
- package/dist/chunks/state-263OUKQA.js +717 -0
- package/dist/chunks/state-263OUKQA.js.map +6 -0
- package/dist/chunks/store-3XLCJ7EL.js +42 -0
- package/dist/chunks/store-3XLCJ7EL.js.map +6 -0
- package/dist/chunks/store-KN65QI2M.js +82 -0
- package/dist/chunks/store-KN65QI2M.js.map +6 -0
- package/dist/chunks/store-X3TESBIN.js +34 -0
- package/dist/chunks/store-X3TESBIN.js.map +6 -0
- package/dist/chunks/tui-5MU7JBXX.js +56703 -0
- package/dist/chunks/tui-5MU7JBXX.js.map +6 -0
- package/dist/chunks/upgrade-BYM4MWBC.js +315 -0
- package/dist/chunks/upgrade-BYM4MWBC.js.map +6 -0
- package/dist/chunks/webapi-6HUHZUAH.js +2715 -0
- package/dist/chunks/webapi-6HUHZUAH.js.map +6 -0
- package/dist/chunks/worktree-K3ZIPXRM.js +116 -0
- package/dist/chunks/worktree-K3ZIPXRM.js.map +6 -0
- package/dist/cli-runtime.d.ts +19 -0
- package/dist/cli-runtime.d.ts.map +1 -0
- package/dist/cli.d.ts +0 -15
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp-harness.d.ts +64 -0
- package/dist/commands/acp-harness.d.ts.map +1 -0
- package/dist/commands/acp-provider-retry.d.ts +27 -0
- package/dist/commands/acp-provider-retry.d.ts.map +1 -0
- package/dist/commands/acp.d.ts +134 -3
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/computer.d.ts +3 -0
- package/dist/commands/computer.d.ts.map +1 -0
- package/dist/commands/desktop-host-changes.d.ts +65 -0
- package/dist/commands/desktop-host-changes.d.ts.map +1 -0
- package/dist/commands/desktop-host-header.d.ts +30 -0
- package/dist/commands/desktop-host-header.d.ts.map +1 -0
- package/dist/commands/desktop-host.d.ts +354 -0
- package/dist/commands/desktop-host.d.ts.map +1 -0
- package/dist/commands/desktop-model-catalogue.d.ts +25 -0
- package/dist/commands/desktop-model-catalogue.d.ts.map +1 -0
- package/dist/commands/effort-levels.d.ts +3 -0
- package/dist/commands/effort-levels.d.ts.map +1 -0
- package/dist/commands/exec-flags.d.ts +4 -0
- package/dist/commands/exec-flags.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/lazy.d.ts +20 -0
- package/dist/commands/lazy.d.ts.map +1 -0
- package/dist/commands/manifest.d.ts +33 -0
- package/dist/commands/manifest.d.ts.map +1 -0
- package/dist/commands/pal.d.ts +5 -0
- package/dist/commands/pal.d.ts.map +1 -0
- package/dist/commands/permission-preview.d.ts +38 -0
- package/dist/commands/permission-preview.d.ts.map +1 -0
- package/dist/commands/registry.d.ts +10 -0
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/serve.d.ts +1 -12
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/stdin.d.ts.map +1 -1
- package/dist/commands/upgrade.d.ts +14 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/compile-cache-enable.d.ts +2 -0
- package/dist/compile-cache-enable.d.ts.map +1 -0
- package/dist/compile-cache.d.ts +53 -0
- package/dist/compile-cache.d.ts.map +1 -0
- package/dist/computer/bundle.d.ts +18 -0
- package/dist/computer/bundle.d.ts.map +1 -0
- package/dist/computer/run.d.ts +26 -0
- package/dist/computer/run.d.ts.map +1 -0
- package/dist/computer/sentences.d.ts +30 -0
- package/dist/computer/sentences.d.ts.map +1 -0
- package/dist/config/load.d.ts +10 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/context/capabilities.d.ts +25 -2
- package/dist/context/capabilities.d.ts.map +1 -1
- package/dist/context/runtime-message.d.ts.map +1 -1
- package/dist/crash-report.d.ts +22 -0
- package/dist/crash-report.d.ts.map +1 -0
- package/dist/debug-requested.d.ts +7 -0
- package/dist/debug-requested.d.ts.map +1 -0
- package/dist/doctor/checks/credentials.d.ts.map +1 -1
- package/dist/exit-codes.d.ts +9 -1
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/index.js +105 -17
- package/dist/index.js.map +6 -1
- package/dist/integrations/harness/claude-adapter.d.ts +20 -0
- package/dist/integrations/harness/claude-adapter.d.ts.map +1 -0
- package/dist/integrations/harness/claude-protocol.d.ts +67 -0
- package/dist/integrations/harness/claude-protocol.d.ts.map +1 -0
- package/dist/integrations/harness/codex-adapter.d.ts +80 -0
- package/dist/integrations/harness/codex-adapter.d.ts.map +1 -0
- package/dist/integrations/harness/codex-protocol.d.ts +22 -0
- package/dist/integrations/harness/codex-protocol.d.ts.map +1 -0
- package/dist/integrations/harness/model-cache.d.ts +16 -0
- package/dist/integrations/harness/model-cache.d.ts.map +1 -0
- package/dist/integrations/harness/native-executable.d.ts +8 -0
- package/dist/integrations/harness/native-executable.d.ts.map +1 -0
- package/dist/integrations/harness/process.d.ts +25 -0
- package/dist/integrations/harness/process.d.ts.map +1 -0
- package/dist/integrations/peers/runtime.d.ts +64 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -0
- package/dist/integrations/plugins/inventory.d.ts +27 -0
- package/dist/integrations/plugins/inventory.d.ts.map +1 -0
- package/dist/integrations/providers/composer-settings.d.ts +33 -0
- package/dist/integrations/providers/composer-settings.d.ts.map +1 -0
- package/dist/integrations/providers/connections.d.ts +37 -0
- package/dist/integrations/providers/connections.d.ts.map +1 -0
- package/dist/integrations/providers/credential-store.d.ts +35 -0
- package/dist/integrations/providers/credential-store.d.ts.map +1 -1
- package/dist/integrations/providers/discover.d.ts +27 -1
- package/dist/integrations/providers/discover.d.ts.map +1 -1
- package/dist/integrations/providers/index.d.ts +2 -2
- package/dist/integrations/providers/index.d.ts.map +1 -1
- package/dist/integrations/providers/picker-operation.d.ts +6 -0
- package/dist/integrations/providers/picker-operation.d.ts.map +1 -0
- package/dist/integrations/providers/setup.d.ts +16 -1
- package/dist/integrations/providers/setup.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +190 -161
- package/dist/integrations/resident/runner-worker.js.map +6 -1
- package/dist/integrations/sessions/display-title.d.ts +8 -0
- package/dist/integrations/sessions/display-title.d.ts.map +1 -1
- package/dist/integrations/sessions/store.d.ts +23 -9
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/sessions/task-context.d.ts +1 -1
- package/dist/integrations/sessions/task-context.d.ts.map +1 -1
- package/dist/integrations/sessions/transcript-export.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts +9 -6
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/operator-journal.d.ts +20 -0
- package/dist/integrations/subagents/operator-journal.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +11 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/trust/store.d.ts +14 -0
- package/dist/integrations/trust/store.d.ts.map +1 -1
- package/dist/integrations/web/search.d.ts +1 -1
- package/dist/pals/actions.d.ts +57 -0
- package/dist/pals/actions.d.ts.map +1 -0
- package/dist/pals/activity-command.d.ts +3 -0
- package/dist/pals/activity-command.d.ts.map +1 -0
- package/dist/pals/activity.d.ts +18 -0
- package/dist/pals/activity.d.ts.map +1 -0
- package/dist/pals/agent-session.d.ts +19 -0
- package/dist/pals/agent-session.d.ts.map +1 -0
- package/dist/pals/channel-actions.d.ts +5 -0
- package/dist/pals/channel-actions.d.ts.map +1 -0
- package/dist/pals/channel-local.d.ts +7 -0
- package/dist/pals/channel-local.d.ts.map +1 -0
- package/dist/pals/channel.d.ts +20 -0
- package/dist/pals/channel.d.ts.map +1 -0
- package/dist/pals/chat.d.ts +6 -0
- package/dist/pals/chat.d.ts.map +1 -0
- package/dist/pals/communication.d.ts +47 -0
- package/dist/pals/communication.d.ts.map +1 -0
- package/dist/pals/conversations.d.ts +26 -0
- package/dist/pals/conversations.d.ts.map +1 -0
- package/dist/pals/desktop-communication.d.ts +111 -0
- package/dist/pals/desktop-communication.d.ts.map +1 -0
- package/dist/pals/dispatch.d.ts +13 -0
- package/dist/pals/dispatch.d.ts.map +1 -0
- package/dist/pals/environment.d.ts +103 -0
- package/dist/pals/environment.d.ts.map +1 -0
- package/dist/pals/guest-mcp-transport.d.ts +28 -0
- package/dist/pals/guest-mcp-transport.d.ts.map +1 -0
- package/dist/pals/guest-mcp.d.ts +22 -0
- package/dist/pals/guest-mcp.d.ts.map +1 -0
- package/dist/pals/inbox-start.d.ts +35 -0
- package/dist/pals/inbox-start.d.ts.map +1 -0
- package/dist/pals/message-command.d.ts +3 -0
- package/dist/pals/message-command.d.ts.map +1 -0
- package/dist/pals/operator-tools.d.ts +23 -0
- package/dist/pals/operator-tools.d.ts.map +1 -0
- package/dist/pals/public-transcript.d.ts +4 -0
- package/dist/pals/public-transcript.d.ts.map +1 -0
- package/dist/pals/review.d.ts +16 -0
- package/dist/pals/review.d.ts.map +1 -0
- package/dist/pals/store.d.ts +16 -0
- package/dist/pals/store.d.ts.map +1 -0
- package/dist/pals/tui-session.d.ts +11 -0
- package/dist/pals/tui-session.d.ts.map +1 -0
- package/dist/permissions/mode-names.d.ts +2 -0
- package/dist/permissions/mode-names.d.ts.map +1 -0
- package/dist/resume-invocation.d.ts +1 -1
- package/dist/resume-invocation.d.ts.map +1 -1
- package/dist/resume-shell.d.ts +8 -0
- package/dist/resume-shell.d.ts.map +1 -0
- package/dist/schedule/build.d.ts +12 -3
- package/dist/schedule/build.d.ts.map +1 -1
- package/dist/schedule/commands/add.d.ts +1 -1
- package/dist/schedule/commands/add.d.ts.map +1 -1
- package/dist/schedule/commands/lifecycle.d.ts.map +1 -1
- package/dist/schedule/commands/list.d.ts +3 -1
- package/dist/schedule/commands/list.d.ts.map +1 -1
- package/dist/schedule/daemon/daemon.d.ts +2 -0
- package/dist/schedule/daemon/daemon.d.ts.map +1 -1
- package/dist/schedule/delivery.d.ts +66 -0
- package/dist/schedule/delivery.d.ts.map +1 -0
- package/dist/schedule/fire/fire.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/schedule/fire/run-script.d.ts +2 -2
- package/dist/schedule/fire/run-script.d.ts.map +1 -1
- package/dist/schedule/fire/script-report.d.ts +31 -0
- package/dist/schedule/fire/script-report.d.ts.map +1 -0
- package/dist/schedule/floor.d.ts +1 -1
- package/dist/schedule/floor.d.ts.map +1 -1
- package/dist/schedule/folder.d.ts +6 -0
- package/dist/schedule/folder.d.ts.map +1 -1
- package/dist/schedule/resume-command.d.ts +3 -3
- package/dist/schedule/resume-command.d.ts.map +1 -1
- package/dist/schedule/store/history.d.ts.map +1 -1
- package/dist/schedule/store/jobs.d.ts +6 -6
- package/dist/schedule/store/jobs.d.ts.map +1 -1
- package/dist/schedule/store/script-state.d.ts +31 -0
- package/dist/schedule/store/script-state.d.ts.map +1 -0
- package/dist/schedule/store/state.d.ts +4 -2
- package/dist/schedule/store/state.d.ts.map +1 -1
- package/dist/schedule/types.d.ts +61 -16
- package/dist/schedule/types.d.ts.map +1 -1
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/terminal/host.d.ts +22 -0
- package/dist/terminal/host.d.ts.map +1 -0
- package/dist/terminal/manager.d.ts +124 -0
- package/dist/terminal/manager.d.ts.map +1 -0
- package/dist/terminal/protocol.d.ts +162 -0
- package/dist/terminal/protocol.d.ts.map +1 -0
- package/dist/terminal/pty.d.ts +85 -0
- package/dist/terminal/pty.d.ts.map +1 -0
- package/dist/terminal/ring.d.ts +23 -0
- package/dist/terminal/ring.d.ts.map +1 -0
- package/dist/terminal/screen.d.ts +31 -0
- package/dist/terminal/screen.d.ts.map +1 -0
- package/dist/termination-state.d.ts +19 -0
- package/dist/termination-state.d.ts.map +1 -0
- package/dist/termination.d.ts +2 -9
- package/dist/termination.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +4 -1
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/BrandHeader.d.ts.map +1 -1
- package/dist/tui/ChildComposer.d.ts +22 -0
- package/dist/tui/ChildComposer.d.ts.map +1 -0
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +19 -3
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ComposerFrame.d.ts.map +1 -1
- package/dist/tui/CopyPicker.d.ts.map +1 -1
- package/dist/tui/EditPromptPicker.d.ts.map +1 -1
- package/dist/tui/EffortSlider.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts +7 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/ProviderSetup.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/SaveSkillOverlay.d.ts.map +1 -1
- package/dist/tui/ScheduleReviewOverlay.d.ts +1 -1
- package/dist/tui/ScheduleReviewOverlay.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +7 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/StatusPanel.d.ts.map +1 -1
- package/dist/tui/TextPrompt.d.ts.map +1 -1
- package/dist/tui/ToolOutputViewer.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TrustPrompt.d.ts +8 -0
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +125 -3
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/browser-notices.d.ts.map +1 -1
- package/dist/tui/capability-notice.d.ts +38 -0
- package/dist/tui/capability-notice.d.ts.map +1 -0
- package/dist/tui/console-input.d.ts +31 -0
- package/dist/tui/console-input.d.ts.map +1 -0
- package/dist/tui/conversation-evidence-view.d.ts.map +1 -1
- package/dist/tui/credential-entry.d.ts.map +1 -1
- package/dist/tui/exit-summary.d.ts +9 -1
- package/dist/tui/exit-summary.d.ts.map +1 -1
- package/dist/tui/external-editor.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/key-hints.d.ts +51 -0
- package/dist/tui/key-hints.d.ts.map +1 -0
- package/dist/tui/launch-settings.d.ts +34 -0
- package/dist/tui/launch-settings.d.ts.map +1 -0
- package/dist/tui/log-pane.d.ts.map +1 -1
- package/dist/tui/model-choices.d.ts +39 -1
- package/dist/tui/model-choices.d.ts.map +1 -1
- package/dist/tui/model-search.d.ts +4 -1
- package/dist/tui/model-search.d.ts.map +1 -1
- package/dist/tui/output-size-watch.d.ts +32 -0
- package/dist/tui/output-size-watch.d.ts.map +1 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/person-terms.d.ts +58 -0
- package/dist/tui/person-terms.d.ts.map +1 -0
- package/dist/tui/plain-failure.d.ts +27 -0
- package/dist/tui/plain-failure.d.ts.map +1 -0
- package/dist/tui/plain-interruption.d.ts +46 -0
- package/dist/tui/plain-interruption.d.ts.map +1 -0
- package/dist/tui/provider-list.d.ts.map +1 -1
- package/dist/tui/render-mode.d.ts +19 -0
- package/dist/tui/render-mode.d.ts.map +1 -0
- package/dist/tui/schedule/host-commands.d.ts +2 -9
- package/dist/tui/schedule/host-commands.d.ts.map +1 -1
- package/dist/tui/schedule/integration.d.ts +8 -0
- package/dist/tui/schedule/integration.d.ts.map +1 -1
- package/dist/tui/schedule/source-deliveries.d.ts +37 -0
- package/dist/tui/schedule/source-deliveries.d.ts.map +1 -0
- package/dist/tui/schedule/startup.d.ts.map +1 -1
- package/dist/tui/schedule/tool-host.d.ts +3 -1
- package/dist/tui/schedule/tool-host.d.ts.map +1 -1
- package/dist/tui/setup-text.d.ts +14 -0
- package/dist/tui/setup-text.d.ts.map +1 -0
- package/dist/tui/shell-escape.d.ts.map +1 -1
- package/dist/tui/skills/suggest-setting.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +4 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/terminal-choice-text.d.ts +7 -0
- package/dist/tui/terminal-choice-text.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +83 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -0
- package/dist/tui/tool-presentation.d.ts +6 -0
- package/dist/tui/tool-presentation.d.ts.map +1 -0
- package/dist/tui/triggers/copy.d.ts.map +1 -1
- package/dist/tui/triggers/setting.d.ts.map +1 -1
- package/dist/tui/turn-interruption.d.ts +1 -1
- package/dist/tui/turn-interruption.d.ts.map +1 -1
- package/dist/tui/turn-limits-settings.d.ts +4 -4
- package/dist/tui/turn-limits-settings.d.ts.map +1 -1
- package/dist/tui/types.d.ts +10 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/web-activity.d.ts +3 -2
- package/dist/tui/web-activity.d.ts.map +1 -1
- package/dist/tui/zen-free-refusal.d.ts +17 -0
- package/dist/tui/zen-free-refusal.d.ts.map +1 -0
- package/dist/usage-error.d.ts +15 -0
- package/dist/usage-error.d.ts.map +1 -0
- package/dist/warning-filter.d.ts +30 -0
- package/dist/warning-filter.d.ts.map +1 -0
- package/package.json +21 -10
- package/skills/schedule-task/SKILL.md +74 -20
- package/dist/browser/commands.js +0 -365
- package/dist/browser/commands.js.map +0 -1
- package/dist/browser/control.js +0 -140
- package/dist/browser/control.js.map +0 -1
- package/dist/browser/describe.js +0 -27
- package/dist/browser/describe.js.map +0 -1
- package/dist/checkpoints/store.js +0 -192
- package/dist/checkpoints/store.js.map +0 -1
- package/dist/checkpoints/wrap.js +0 -37
- package/dist/checkpoints/wrap.js.map +0 -1
- package/dist/cli.js +0 -602
- package/dist/cli.js.map +0 -1
- package/dist/commands/acp.js +0 -388
- package/dist/commands/acp.js.map +0 -1
- package/dist/commands/archive.js +0 -65
- package/dist/commands/archive.js.map +0 -1
- package/dist/commands/browser.js +0 -16
- package/dist/commands/browser.js.map +0 -1
- package/dist/commands/doctor.js +0 -267
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/drain.js +0 -498
- package/dist/commands/drain.js.map +0 -1
- package/dist/commands/eval.js +0 -237
- package/dist/commands/eval.js.map +0 -1
- package/dist/commands/exec-flags.js +0 -334
- package/dist/commands/exec-flags.js.map +0 -1
- package/dist/commands/exec-json.js +0 -497
- package/dist/commands/exec-json.js.map +0 -1
- package/dist/commands/exec.js +0 -688
- package/dist/commands/exec.js.map +0 -1
- package/dist/commands/host-queries.js +0 -156
- package/dist/commands/host-queries.js.map +0 -1
- package/dist/commands/login.js +0 -315
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/mcp-oauth-login.js +0 -213
- package/dist/commands/mcp-oauth-login.js.map +0 -1
- package/dist/commands/mcp.js +0 -461
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/prior-messages.js +0 -329
- package/dist/commands/prior-messages.js.map +0 -1
- package/dist/commands/provider-wait.js +0 -65
- package/dist/commands/provider-wait.js.map +0 -1
- package/dist/commands/registry.js +0 -40
- package/dist/commands/registry.js.map +0 -1
- package/dist/commands/resident-flags.js +0 -193
- package/dist/commands/resident-flags.js.map +0 -1
- package/dist/commands/resident-learning.js +0 -293
- package/dist/commands/resident-learning.js.map +0 -1
- package/dist/commands/resident.js +0 -419
- package/dist/commands/resident.js.map +0 -1
- package/dist/commands/resume.js +0 -109
- package/dist/commands/resume.js.map +0 -1
- package/dist/commands/schedule.js +0 -131
- package/dist/commands/schedule.js.map +0 -1
- package/dist/commands/serve.js +0 -21
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/skills.js +0 -178
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/state.js +0 -110
- package/dist/commands/state.js.map +0 -1
- package/dist/commands/stdin.js +0 -69
- package/dist/commands/stdin.js.map +0 -1
- package/dist/commands/types.js +0 -2
- package/dist/commands/types.js.map +0 -1
- package/dist/commands/upgrade-progress.js +0 -54
- package/dist/commands/upgrade-progress.js.map +0 -1
- package/dist/commands/upgrade.js +0 -232
- package/dist/commands/upgrade.js.map +0 -1
- package/dist/commands/worktree.js +0 -86
- package/dist/commands/worktree.js.map +0 -1
- package/dist/config/composer-triggers.js +0 -80
- package/dist/config/composer-triggers.js.map +0 -1
- package/dist/config/debug.js +0 -126
- package/dist/config/debug.js.map +0 -1
- package/dist/config/load.js +0 -1208
- package/dist/config/load.js.map +0 -1
- package/dist/config/schema.js +0 -13
- package/dist/config/schema.js.map +0 -1
- package/dist/config/tool-result-screens.js +0 -104
- package/dist/config/tool-result-screens.js.map +0 -1
- package/dist/config/trusted-project-context.js +0 -28
- package/dist/config/trusted-project-context.js.map +0 -1
- package/dist/config/turn-guards.js +0 -46
- package/dist/config/turn-guards.js.map +0 -1
- package/dist/config/user-config.js +0 -118
- package/dist/config/user-config.js.map +0 -1
- package/dist/context/capabilities.js +0 -164
- package/dist/context/capabilities.js.map +0 -1
- package/dist/context/directories.js +0 -69
- package/dist/context/directories.js.map +0 -1
- package/dist/context/doctrine.js +0 -24
- package/dist/context/doctrine.js.map +0 -1
- package/dist/context/environment.js +0 -255
- package/dist/context/environment.js.map +0 -1
- package/dist/context/project-path.js +0 -16
- package/dist/context/project-path.js.map +0 -1
- package/dist/context/project-tracker.js +0 -217
- package/dist/context/project-tracker.js.map +0 -1
- package/dist/context/project.js +0 -256
- package/dist/context/project.js.map +0 -1
- package/dist/context/runtime-message.js +0 -30
- package/dist/context/runtime-message.js.map +0 -1
- package/dist/context/sandbox.js +0 -114
- package/dist/context/sandbox.js.map +0 -1
- package/dist/context/turn-snapshot.js +0 -122
- package/dist/context/turn-snapshot.js.map +0 -1
- package/dist/doctor/checks/browser.js +0 -63
- package/dist/doctor/checks/browser.js.map +0 -1
- package/dist/doctor/checks/chain.js +0 -211
- package/dist/doctor/checks/chain.js.map +0 -1
- package/dist/doctor/checks/credentials.js +0 -98
- package/dist/doctor/checks/credentials.js.map +0 -1
- package/dist/doctor/checks/index.js +0 -72
- package/dist/doctor/checks/index.js.map +0 -1
- package/dist/doctor/checks/invariants.js +0 -79
- package/dist/doctor/checks/invariants.js.map +0 -1
- package/dist/doctor/checks/logging.js +0 -69
- package/dist/doctor/checks/logging.js.map +0 -1
- package/dist/doctor/checks/providers.js +0 -30
- package/dist/doctor/checks/providers.js.map +0 -1
- package/dist/doctor/checks/runtime.js +0 -40
- package/dist/doctor/checks/runtime.js.map +0 -1
- package/dist/doctor/checks/sandbox.js +0 -76
- package/dist/doctor/checks/sandbox.js.map +0 -1
- package/dist/doctor/checks/scheduler.js +0 -74
- package/dist/doctor/checks/scheduler.js.map +0 -1
- package/dist/doctor/checks/session-export.js +0 -62
- package/dist/doctor/checks/session-export.js.map +0 -1
- package/dist/doctor/checks/telemetry.js +0 -58
- package/dist/doctor/checks/telemetry.js.map +0 -1
- package/dist/doctor/checks/vault.js +0 -67
- package/dist/doctor/checks/vault.js.map +0 -1
- package/dist/doctor/index.js +0 -3
- package/dist/doctor/index.js.map +0 -1
- package/dist/doctor/registry.js +0 -230
- package/dist/doctor/registry.js.map +0 -1
- package/dist/exit-codes.js +0 -62
- package/dist/exit-codes.js.map +0 -1
- package/dist/installation.js +0 -48
- package/dist/installation.js.map +0 -1
- package/dist/integrations/clipboard/image.js +0 -119
- package/dist/integrations/clipboard/image.js.map +0 -1
- package/dist/integrations/clipboard/text.js +0 -43
- package/dist/integrations/clipboard/text.js.map +0 -1
- package/dist/integrations/files/attachment-store.js +0 -86
- package/dist/integrations/files/attachment-store.js.map +0 -1
- package/dist/integrations/mcp/oauth-store.js +0 -549
- package/dist/integrations/mcp/oauth-store.js.map +0 -1
- package/dist/integrations/mcp/servers.js +0 -611
- package/dist/integrations/mcp/servers.js.map +0 -1
- package/dist/integrations/mcp/user-config.js +0 -92
- package/dist/integrations/mcp/user-config.js.map +0 -1
- package/dist/integrations/notifications/desktop/freedesktop.js +0 -33
- package/dist/integrations/notifications/desktop/freedesktop.js.map +0 -1
- package/dist/integrations/notifications/desktop/macos.js +0 -17
- package/dist/integrations/notifications/desktop/macos.js.map +0 -1
- package/dist/integrations/notifications/desktop/sanitize.js +0 -49
- package/dist/integrations/notifications/desktop/sanitize.js.map +0 -1
- package/dist/integrations/notifications/desktop/throttle.js +0 -39
- package/dist/integrations/notifications/desktop/throttle.js.map +0 -1
- package/dist/integrations/notifications/desktop/windows-toast.js +0 -56
- package/dist/integrations/notifications/desktop/windows-toast.js.map +0 -1
- package/dist/integrations/notifications/desktop.js +0 -199
- package/dist/integrations/notifications/desktop.js.map +0 -1
- package/dist/integrations/notifications/terminal.js +0 -46
- package/dist/integrations/notifications/terminal.js.map +0 -1
- package/dist/integrations/npm-invocation.js +0 -23
- package/dist/integrations/npm-invocation.js.map +0 -1
- package/dist/integrations/plugins/runtime.js +0 -189
- package/dist/integrations/plugins/runtime.js.map +0 -1
- package/dist/integrations/plugins/settings.js +0 -106
- package/dist/integrations/plugins/settings.js.map +0 -1
- package/dist/integrations/providers/access.js +0 -23
- package/dist/integrations/providers/access.js.map +0 -1
- package/dist/integrations/providers/chain-capabilities.js +0 -211
- package/dist/integrations/providers/chain-capabilities.js.map +0 -1
- package/dist/integrations/providers/codex-device-login.js +0 -195
- package/dist/integrations/providers/codex-device-login.js.map +0 -1
- package/dist/integrations/providers/codex-oauth.js +0 -95
- package/dist/integrations/providers/codex-oauth.js.map +0 -1
- package/dist/integrations/providers/credential-provider.js +0 -74
- package/dist/integrations/providers/credential-provider.js.map +0 -1
- package/dist/integrations/providers/credential-store.js +0 -657
- package/dist/integrations/providers/credential-store.js.map +0 -1
- package/dist/integrations/providers/current-credential.js +0 -45
- package/dist/integrations/providers/current-credential.js.map +0 -1
- package/dist/integrations/providers/discover.js +0 -313
- package/dist/integrations/providers/discover.js.map +0 -1
- package/dist/integrations/providers/gemini-credentials.js +0 -148
- package/dist/integrations/providers/gemini-credentials.js.map +0 -1
- package/dist/integrations/providers/harness-credentials.js +0 -344
- package/dist/integrations/providers/harness-credentials.js.map +0 -1
- package/dist/integrations/providers/identity.js +0 -64
- package/dist/integrations/providers/identity.js.map +0 -1
- package/dist/integrations/providers/index.js +0 -14
- package/dist/integrations/providers/index.js.map +0 -1
- package/dist/integrations/providers/keychain.js +0 -78
- package/dist/integrations/providers/keychain.js.map +0 -1
- package/dist/integrations/providers/model-reasoning.js +0 -51
- package/dist/integrations/providers/model-reasoning.js.map +0 -1
- package/dist/integrations/providers/oauth.js +0 -302
- package/dist/integrations/providers/oauth.js.map +0 -1
- package/dist/integrations/providers/preferences.js +0 -287
- package/dist/integrations/providers/preferences.js.map +0 -1
- package/dist/integrations/providers/register.js +0 -154
- package/dist/integrations/providers/register.js.map +0 -1
- package/dist/integrations/providers/registry.js +0 -289
- package/dist/integrations/providers/registry.js.map +0 -1
- package/dist/integrations/providers/setup.js +0 -158
- package/dist/integrations/providers/setup.js.map +0 -1
- package/dist/integrations/providers/subscription-login.js +0 -328
- package/dist/integrations/providers/subscription-login.js.map +0 -1
- package/dist/integrations/providers/zen-catalogue.js +0 -196
- package/dist/integrations/providers/zen-catalogue.js.map +0 -1
- package/dist/integrations/resident/foreground.js +0 -95
- package/dist/integrations/resident/foreground.js.map +0 -1
- package/dist/integrations/resident/inspection.js +0 -282
- package/dist/integrations/resident/inspection.js.map +0 -1
- package/dist/integrations/resident/learning-sources.js +0 -79
- package/dist/integrations/resident/learning-sources.js.map +0 -1
- package/dist/integrations/resident/learning-storage.js +0 -55
- package/dist/integrations/resident/learning-storage.js.map +0 -1
- package/dist/integrations/resident/lifecycle-errors.js +0 -15
- package/dist/integrations/resident/lifecycle-errors.js.map +0 -1
- package/dist/integrations/resident/owned-runner.js +0 -91
- package/dist/integrations/resident/owned-runner.js.map +0 -1
- package/dist/integrations/resident/runner-control.js +0 -238
- package/dist/integrations/resident/runner-control.js.map +0 -1
- package/dist/integrations/resident/runner-launch.js +0 -142
- package/dist/integrations/resident/runner-launch.js.map +0 -1
- package/dist/integrations/resident/runner-store.js +0 -284
- package/dist/integrations/resident/runner-store.js.map +0 -1
- package/dist/integrations/resident/session-log-reads.js +0 -125
- package/dist/integrations/resident/session-log-reads.js.map +0 -1
- package/dist/integrations/resident/session-step.js +0 -476
- package/dist/integrations/resident/session-step.js.map +0 -1
- package/dist/integrations/resident/storage.js +0 -183
- package/dist/integrations/resident/storage.js.map +0 -1
- package/dist/integrations/resident/tool-evidence.js +0 -123
- package/dist/integrations/resident/tool-evidence.js.map +0 -1
- package/dist/integrations/resident/verification.js +0 -109
- package/dist/integrations/resident/verification.js.map +0 -1
- package/dist/integrations/sessions/checkpoint-view.js +0 -48
- package/dist/integrations/sessions/checkpoint-view.js.map +0 -1
- package/dist/integrations/sessions/context-inventory.js +0 -44
- package/dist/integrations/sessions/context-inventory.js.map +0 -1
- package/dist/integrations/sessions/conversation-search.js +0 -572
- package/dist/integrations/sessions/conversation-search.js.map +0 -1
- package/dist/integrations/sessions/display-title.js +0 -5
- package/dist/integrations/sessions/display-title.js.map +0 -1
- package/dist/integrations/sessions/evidence-page-validation.js +0 -74
- package/dist/integrations/sessions/evidence-page-validation.js.map +0 -1
- package/dist/integrations/sessions/evidence-recall.js +0 -117
- package/dist/integrations/sessions/evidence-recall.js.map +0 -1
- package/dist/integrations/sessions/store.js +0 -780
- package/dist/integrations/sessions/store.js.map +0 -1
- package/dist/integrations/sessions/task-context.js +0 -96
- package/dist/integrations/sessions/task-context.js.map +0 -1
- package/dist/integrations/sessions/transcript-export.js +0 -342
- package/dist/integrations/sessions/transcript-export.js.map +0 -1
- package/dist/integrations/state/home.js +0 -17
- package/dist/integrations/state/home.js.map +0 -1
- package/dist/integrations/state/identity.js +0 -49
- package/dist/integrations/state/identity.js.map +0 -1
- package/dist/integrations/state/immutable-json.js +0 -38
- package/dist/integrations/state/immutable-json.js.map +0 -1
- package/dist/integrations/state/private-directory.js +0 -43
- package/dist/integrations/state/private-directory.js.map +0 -1
- package/dist/integrations/state/project.js +0 -13
- package/dist/integrations/state/project.js.map +0 -1
- package/dist/integrations/state/report.js +0 -626
- package/dist/integrations/state/report.js.map +0 -1
- package/dist/integrations/state/retention.js +0 -18
- package/dist/integrations/state/retention.js.map +0 -1
- package/dist/integrations/subagents/NamzuCliAgent.js +0 -9
- package/dist/integrations/subagents/NamzuCliAgent.js.map +0 -1
- package/dist/integrations/subagents/activity.js +0 -759
- package/dist/integrations/subagents/activity.js.map +0 -1
- package/dist/integrations/subagents/batches.js +0 -172
- package/dist/integrations/subagents/batches.js.map +0 -1
- package/dist/integrations/subagents/definitions.js +0 -26
- package/dist/integrations/subagents/definitions.js.map +0 -1
- package/dist/integrations/subagents/model-effort.js +0 -12
- package/dist/integrations/subagents/model-effort.js.map +0 -1
- package/dist/integrations/subagents/parent.js +0 -47
- package/dist/integrations/subagents/parent.js.map +0 -1
- package/dist/integrations/subagents/policy.js +0 -3
- package/dist/integrations/subagents/policy.js.map +0 -1
- package/dist/integrations/subagents/replay.js +0 -295
- package/dist/integrations/subagents/replay.js.map +0 -1
- package/dist/integrations/subagents/runtime.js +0 -1317
- package/dist/integrations/subagents/runtime.js.map +0 -1
- package/dist/integrations/subagents/saved-agents.js +0 -102
- package/dist/integrations/subagents/saved-agents.js.map +0 -1
- package/dist/integrations/subagents/slash.js +0 -45
- package/dist/integrations/subagents/slash.js.map +0 -1
- package/dist/integrations/subagents/worktree-driver.js +0 -72
- package/dist/integrations/subagents/worktree-driver.js.map +0 -1
- package/dist/integrations/telemetry/session-export.js +0 -119
- package/dist/integrations/telemetry/session-export.js.map +0 -1
- package/dist/integrations/trust/store.js +0 -73
- package/dist/integrations/trust/store.js.map +0 -1
- package/dist/integrations/updates.js +0 -115
- package/dist/integrations/updates.js.map +0 -1
- package/dist/integrations/web/exa-search.js +0 -154
- package/dist/integrations/web/exa-search.js.map +0 -1
- package/dist/integrations/web/open-url.js +0 -73
- package/dist/integrations/web/open-url.js.map +0 -1
- package/dist/integrations/web/search.js +0 -68
- package/dist/integrations/web/search.js.map +0 -1
- package/dist/integrations/worktrees/managed.js +0 -231
- package/dist/integrations/worktrees/managed.js.map +0 -1
- package/dist/logging.js +0 -115
- package/dist/logging.js.map +0 -1
- package/dist/memory/io.js +0 -177
- package/dist/memory/io.js.map +0 -1
- package/dist/memory/presentation.js +0 -76
- package/dist/memory/presentation.js.map +0 -1
- package/dist/memory/store.js +0 -180
- package/dist/memory/store.js.map +0 -1
- package/dist/memory/typed.js +0 -336
- package/dist/memory/typed.js.map +0 -1
- package/dist/output/formatter.js +0 -16
- package/dist/output/formatter.js.map +0 -1
- package/dist/output/index.js +0 -22
- package/dist/output/index.js.map +0 -1
- package/dist/output/json.js +0 -51
- package/dist/output/json.js.map +0 -1
- package/dist/output/text.js +0 -50
- package/dist/output/text.js.map +0 -1
- package/dist/output/yaml.js +0 -26
- package/dist/output/yaml.js.map +0 -1
- package/dist/output-schema.js +0 -18
- package/dist/output-schema.js.map +0 -1
- package/dist/permissions/browser-sites.js +0 -270
- package/dist/permissions/browser-sites.js.map +0 -1
- package/dist/permissions/canonical-project.js +0 -13
- package/dist/permissions/canonical-project.js.map +0 -1
- package/dist/permissions/checks.js +0 -128
- package/dist/permissions/checks.js.map +0 -1
- package/dist/permissions/headless-trust.js +0 -86
- package/dist/permissions/headless-trust.js.map +0 -1
- package/dist/permissions/live-mode.js +0 -62
- package/dist/permissions/live-mode.js.map +0 -1
- package/dist/permissions/mode.js +0 -65
- package/dist/permissions/mode.js.map +0 -1
- package/dist/permissions/rules.js +0 -358
- package/dist/permissions/rules.js.map +0 -1
- package/dist/release-notes.js +0 -64
- package/dist/release-notes.js.map +0 -1
- package/dist/resume-invocation.js +0 -24
- package/dist/resume-invocation.js.map +0 -1
- package/dist/schedule/build.js +0 -374
- package/dist/schedule/build.js.map +0 -1
- package/dist/schedule/changes.js +0 -78
- package/dist/schedule/changes.js.map +0 -1
- package/dist/schedule/commands/add.js +0 -603
- package/dist/schedule/commands/add.js.map +0 -1
- package/dist/schedule/commands/args.js +0 -80
- package/dist/schedule/commands/args.js.map +0 -1
- package/dist/schedule/commands/confirm-prompt.js +0 -21
- package/dist/schedule/commands/confirm-prompt.js.map +0 -1
- package/dist/schedule/commands/lifecycle.js +0 -586
- package/dist/schedule/commands/lifecycle.js.map +0 -1
- package/dist/schedule/commands/list.js +0 -260
- package/dist/schedule/commands/list.js.map +0 -1
- package/dist/schedule/commands/logs.js +0 -106
- package/dist/schedule/commands/logs.js.map +0 -1
- package/dist/schedule/commands/service.js +0 -458
- package/dist/schedule/commands/service.js.map +0 -1
- package/dist/schedule/daemon/daemon.js +0 -1265
- package/dist/schedule/daemon/daemon.js.map +0 -1
- package/dist/schedule/daemon/endpoint.js +0 -158
- package/dist/schedule/daemon/endpoint.js.map +0 -1
- package/dist/schedule/daemon/exit.js +0 -8
- package/dist/schedule/daemon/exit.js.map +0 -1
- package/dist/schedule/daemon/log.js +0 -53
- package/dist/schedule/daemon/log.js.map +0 -1
- package/dist/schedule/daemon/notify.js +0 -158
- package/dist/schedule/daemon/notify.js.map +0 -1
- package/dist/schedule/daemon/retention.js +0 -46
- package/dist/schedule/daemon/retention.js.map +0 -1
- package/dist/schedule/daemon/sessions.js +0 -52
- package/dist/schedule/daemon/sessions.js.map +0 -1
- package/dist/schedule/env.js +0 -106
- package/dist/schedule/env.js.map +0 -1
- package/dist/schedule/fire/browser-preflight.js +0 -73
- package/dist/schedule/fire/browser-preflight.js.map +0 -1
- package/dist/schedule/fire/calls.js +0 -114
- package/dist/schedule/fire/calls.js.map +0 -1
- package/dist/schedule/fire/fire.js +0 -681
- package/dist/schedule/fire/fire.js.map +0 -1
- package/dist/schedule/fire/result.js +0 -19
- package/dist/schedule/fire/result.js.map +0 -1
- package/dist/schedule/fire/run-script.js +0 -81
- package/dist/schedule/fire/run-script.js.map +0 -1
- package/dist/schedule/fire/unattended-note.js +0 -51
- package/dist/schedule/fire/unattended-note.js.map +0 -1
- package/dist/schedule/fire/wake-gate.js +0 -90
- package/dist/schedule/fire/wake-gate.js.map +0 -1
- package/dist/schedule/floor.js +0 -1561
- package/dist/schedule/floor.js.map +0 -1
- package/dist/schedule/folder.js +0 -84
- package/dist/schedule/folder.js.map +0 -1
- package/dist/schedule/paths.js +0 -53
- package/dist/schedule/paths.js.map +0 -1
- package/dist/schedule/policy.js +0 -414
- package/dist/schedule/policy.js.map +0 -1
- package/dist/schedule/resume-command.js +0 -72
- package/dist/schedule/resume-command.js.map +0 -1
- package/dist/schedule/script-check.js +0 -146
- package/dist/schedule/script-check.js.map +0 -1
- package/dist/schedule/script-shell.js +0 -5
- package/dist/schedule/script-shell.js.map +0 -1
- package/dist/schedule/service/detect.js +0 -29
- package/dist/schedule/service/detect.js.map +0 -1
- package/dist/schedule/service/index.js +0 -361
- package/dist/schedule/service/index.js.map +0 -1
- package/dist/schedule/service/launchd.js +0 -84
- package/dist/schedule/service/launchd.js.map +0 -1
- package/dist/schedule/service/manifest.js +0 -16
- package/dist/schedule/service/manifest.js.map +0 -1
- package/dist/schedule/service/names.js +0 -22
- package/dist/schedule/service/names.js.map +0 -1
- package/dist/schedule/service/quote.js +0 -64
- package/dist/schedule/service/quote.js.map +0 -1
- package/dist/schedule/service/runner.js +0 -31
- package/dist/schedule/service/runner.js.map +0 -1
- package/dist/schedule/service/systemd.js +0 -96
- package/dist/schedule/service/systemd.js.map +0 -1
- package/dist/schedule/service/windows-task.js +0 -199
- package/dist/schedule/service/windows-task.js.map +0 -1
- package/dist/schedule/service/wsl.js +0 -121
- package/dist/schedule/service/wsl.js.map +0 -1
- package/dist/schedule/store/atomic.js +0 -138
- package/dist/schedule/store/atomic.js.map +0 -1
- package/dist/schedule/store/claims.js +0 -57
- package/dist/schedule/store/claims.js.map +0 -1
- package/dist/schedule/store/digest.js +0 -139
- package/dist/schedule/store/digest.js.map +0 -1
- package/dist/schedule/store/history.js +0 -117
- package/dist/schedule/store/history.js.map +0 -1
- package/dist/schedule/store/jobs.js +0 -277
- package/dist/schedule/store/jobs.js.map +0 -1
- package/dist/schedule/store/state.js +0 -38
- package/dist/schedule/store/state.js.map +0 -1
- package/dist/schedule/types.js +0 -33
- package/dist/schedule/types.js.map +0 -1
- package/dist/schedule/visible-source.js +0 -59
- package/dist/schedule/visible-source.js.map +0 -1
- package/dist/skills/audit.js +0 -75
- package/dist/skills/audit.js.map +0 -1
- package/dist/skills/catalog.js +0 -226
- package/dist/skills/catalog.js.map +0 -1
- package/dist/skills/directory.js +0 -51
- package/dist/skills/directory.js.map +0 -1
- package/dist/skills/save.js +0 -344
- package/dist/skills/save.js.map +0 -1
- package/dist/skills/store.js +0 -351
- package/dist/skills/store.js.map +0 -1
- package/dist/termination.js +0 -143
- package/dist/termination.js.map +0 -1
- package/dist/test-support/toolset.js +0 -27
- package/dist/test-support/toolset.js.map +0 -1
- package/dist/tui/AgentExplorer.js +0 -789
- package/dist/tui/AgentExplorer.js.map +0 -1
- package/dist/tui/App.js +0 -8499
- package/dist/tui/App.js.map +0 -1
- package/dist/tui/BackgroundJobsPanel.js +0 -129
- package/dist/tui/BackgroundJobsPanel.js.map +0 -1
- package/dist/tui/BrandHeader.js +0 -14
- package/dist/tui/BrandHeader.js.map +0 -1
- package/dist/tui/Checklist.js +0 -90
- package/dist/tui/Checklist.js.map +0 -1
- package/dist/tui/ChoicePicker.js +0 -64
- package/dist/tui/ChoicePicker.js.map +0 -1
- package/dist/tui/Composer.js +0 -939
- package/dist/tui/Composer.js.map +0 -1
- package/dist/tui/ComposerFrame.js +0 -79
- package/dist/tui/ComposerFrame.js.map +0 -1
- package/dist/tui/CopyPicker.js +0 -19
- package/dist/tui/CopyPicker.js.map +0 -1
- package/dist/tui/EditPromptPicker.js +0 -17
- package/dist/tui/EditPromptPicker.js.map +0 -1
- package/dist/tui/EffortSlider.js +0 -134
- package/dist/tui/EffortSlider.js.map +0 -1
- package/dist/tui/LiveActivity.js +0 -89
- package/dist/tui/LiveActivity.js.map +0 -1
- package/dist/tui/Markdown.js +0 -137
- package/dist/tui/Markdown.js.map +0 -1
- package/dist/tui/PendingInputPanel.js +0 -108
- package/dist/tui/PendingInputPanel.js.map +0 -1
- package/dist/tui/PermissionOverlay.js +0 -278
- package/dist/tui/PermissionOverlay.js.map +0 -1
- package/dist/tui/Picker.js +0 -1310
- package/dist/tui/Picker.js.map +0 -1
- package/dist/tui/ProviderSetup.js +0 -125
- package/dist/tui/ProviderSetup.js.map +0 -1
- package/dist/tui/ResumePicker.js +0 -34
- package/dist/tui/ResumePicker.js.map +0 -1
- package/dist/tui/SaveSkillOverlay.js +0 -118
- package/dist/tui/SaveSkillOverlay.js.map +0 -1
- package/dist/tui/ScheduleReviewOverlay.js +0 -166
- package/dist/tui/ScheduleReviewOverlay.js.map +0 -1
- package/dist/tui/StatusBar.js +0 -182
- package/dist/tui/StatusBar.js.map +0 -1
- package/dist/tui/StatusPanel.js +0 -11
- package/dist/tui/StatusPanel.js.map +0 -1
- package/dist/tui/TaskList.js +0 -43
- package/dist/tui/TaskList.js.map +0 -1
- package/dist/tui/TextPrompt.js +0 -185
- package/dist/tui/TextPrompt.js.map +0 -1
- package/dist/tui/ToolOutputViewer.js +0 -39
- package/dist/tui/ToolOutputViewer.js.map +0 -1
- package/dist/tui/Transcript.js +0 -235
- package/dist/tui/Transcript.js.map +0 -1
- package/dist/tui/TrustPrompt.js +0 -13
- package/dist/tui/TrustPrompt.js.map +0 -1
- package/dist/tui/ViewportBound.js +0 -55
- package/dist/tui/ViewportBound.js.map +0 -1
- package/dist/tui/agent-transcript-rows.js +0 -115
- package/dist/tui/agent-transcript-rows.js.map +0 -1
- package/dist/tui/agent.js +0 -4301
- package/dist/tui/agent.js.map +0 -1
- package/dist/tui/browser-notices.js +0 -107
- package/dist/tui/browser-notices.js.map +0 -1
- package/dist/tui/choice-selection.js +0 -38
- package/dist/tui/choice-selection.js.map +0 -1
- package/dist/tui/compact-transcript.js +0 -46
- package/dist/tui/compact-transcript.js.map +0 -1
- package/dist/tui/consent-timing.js +0 -48
- package/dist/tui/consent-timing.js.map +0 -1
- package/dist/tui/conversation-evidence-view.js +0 -96
- package/dist/tui/conversation-evidence-view.js.map +0 -1
- package/dist/tui/conversation-history.js +0 -33
- package/dist/tui/conversation-history.js.map +0 -1
- package/dist/tui/copy-targets.js +0 -189
- package/dist/tui/copy-targets.js.map +0 -1
- package/dist/tui/credential-entry.js +0 -134
- package/dist/tui/credential-entry.js.map +0 -1
- package/dist/tui/edit-prompts.js +0 -35
- package/dist/tui/edit-prompts.js.map +0 -1
- package/dist/tui/exit-summary.js +0 -30
- package/dist/tui/exit-summary.js.map +0 -1
- package/dist/tui/external-editor.js +0 -169
- package/dist/tui/external-editor.js.map +0 -1
- package/dist/tui/hypermode.js +0 -58
- package/dist/tui/hypermode.js.map +0 -1
- package/dist/tui/index.js +0 -81
- package/dist/tui/index.js.map +0 -1
- package/dist/tui/live-window.js +0 -281
- package/dist/tui/live-window.js.map +0 -1
- package/dist/tui/log-pane.js +0 -100
- package/dist/tui/log-pane.js.map +0 -1
- package/dist/tui/login-prompt.js +0 -105
- package/dist/tui/login-prompt.js.map +0 -1
- package/dist/tui/logo.js +0 -9
- package/dist/tui/logo.js.map +0 -1
- package/dist/tui/markdown-block-cache.js +0 -76
- package/dist/tui/markdown-block-cache.js.map +0 -1
- package/dist/tui/markdown-table.js +0 -175
- package/dist/tui/markdown-table.js.map +0 -1
- package/dist/tui/markdown-wrap.js +0 -189
- package/dist/tui/markdown-wrap.js.map +0 -1
- package/dist/tui/markdownParser.js +0 -237
- package/dist/tui/markdownParser.js.map +0 -1
- package/dist/tui/mentions.js +0 -150
- package/dist/tui/mentions.js.map +0 -1
- package/dist/tui/model-catalogue-view.js +0 -75
- package/dist/tui/model-catalogue-view.js.map +0 -1
- package/dist/tui/model-choices.js +0 -157
- package/dist/tui/model-choices.js.map +0 -1
- package/dist/tui/model-search.js +0 -28
- package/dist/tui/model-search.js.map +0 -1
- package/dist/tui/model-selection-intent.js +0 -96
- package/dist/tui/model-selection-intent.js.map +0 -1
- package/dist/tui/model-switch-tool.js +0 -74
- package/dist/tui/model-switch-tool.js.map +0 -1
- package/dist/tui/model-switch.js +0 -106
- package/dist/tui/model-switch.js.map +0 -1
- package/dist/tui/notices.js +0 -27
- package/dist/tui/notices.js.map +0 -1
- package/dist/tui/open-browser.js +0 -147
- package/dist/tui/open-browser.js.map +0 -1
- package/dist/tui/permission-review.js +0 -858
- package/dist/tui/permission-review.js.map +0 -1
- package/dist/tui/plugin-view.js +0 -59
- package/dist/tui/plugin-view.js.map +0 -1
- package/dist/tui/provider-list.js +0 -327
- package/dist/tui/provider-list.js.map +0 -1
- package/dist/tui/provider-selection.js +0 -16
- package/dist/tui/provider-selection.js.map +0 -1
- package/dist/tui/schedule/host-commands.js +0 -428
- package/dist/tui/schedule/host-commands.js.map +0 -1
- package/dist/tui/schedule/integration.js +0 -150
- package/dist/tui/schedule/integration.js.map +0 -1
- package/dist/tui/schedule/loop-host.js +0 -153
- package/dist/tui/schedule/loop-host.js.map +0 -1
- package/dist/tui/schedule/resume.js +0 -333
- package/dist/tui/schedule/resume.js.map +0 -1
- package/dist/tui/schedule/startup.js +0 -121
- package/dist/tui/schedule/startup.js.map +0 -1
- package/dist/tui/schedule/tool-host.js +0 -619
- package/dist/tui/schedule/tool-host.js.map +0 -1
- package/dist/tui/selection-window.js +0 -37
- package/dist/tui/selection-window.js.map +0 -1
- package/dist/tui/shell-escape.js +0 -110
- package/dist/tui/shell-escape.js.map +0 -1
- package/dist/tui/skills/learning.js +0 -131
- package/dist/tui/skills/learning.js.map +0 -1
- package/dist/tui/skills/suggest-setting.js +0 -55
- package/dist/tui/skills/suggest-setting.js.map +0 -1
- package/dist/tui/skills/suggestion-ledger.js +0 -52
- package/dist/tui/skills/suggestion-ledger.js.map +0 -1
- package/dist/tui/slashCommands.js +0 -1588
- package/dist/tui/slashCommands.js.map +0 -1
- package/dist/tui/status-card.js +0 -30
- package/dist/tui/status-card.js.map +0 -1
- package/dist/tui/status-panel-layout.js +0 -42
- package/dist/tui/status-panel-layout.js.map +0 -1
- package/dist/tui/stream-blocks.js +0 -187
- package/dist/tui/stream-blocks.js.map +0 -1
- package/dist/tui/task-activity.js +0 -157
- package/dist/tui/task-activity.js.map +0 -1
- package/dist/tui/terminal-choice-text.js +0 -118
- package/dist/tui/terminal-choice-text.js.map +0 -1
- package/dist/tui/terminal-display.js +0 -65
- package/dist/tui/terminal-display.js.map +0 -1
- package/dist/tui/terminal-hyperlinks.js +0 -70
- package/dist/tui/terminal-hyperlinks.js.map +0 -1
- package/dist/tui/theme.js +0 -34
- package/dist/tui/theme.js.map +0 -1
- package/dist/tui/triggers/analyze.js +0 -221
- package/dist/tui/triggers/analyze.js.map +0 -1
- package/dist/tui/triggers/context-text.js +0 -44
- package/dist/tui/triggers/context-text.js.map +0 -1
- package/dist/tui/triggers/copy.js +0 -163
- package/dist/tui/triggers/copy.js.map +0 -1
- package/dist/tui/triggers/detect.js +0 -295
- package/dist/tui/triggers/detect.js.map +0 -1
- package/dist/tui/triggers/fold.js +0 -44
- package/dist/tui/triggers/fold.js.map +0 -1
- package/dist/tui/triggers/pattern.js +0 -243
- package/dist/tui/triggers/pattern.js.map +0 -1
- package/dist/tui/triggers/provenance.js +0 -98
- package/dist/tui/triggers/provenance.js.map +0 -1
- package/dist/tui/triggers/registry.js +0 -164
- package/dist/tui/triggers/registry.js.map +0 -1
- package/dist/tui/triggers/setting.js +0 -61
- package/dist/tui/triggers/setting.js.map +0 -1
- package/dist/tui/triggers/verbs.js +0 -140
- package/dist/tui/triggers/verbs.js.map +0 -1
- package/dist/tui/turn-interruption.js +0 -160
- package/dist/tui/turn-interruption.js.map +0 -1
- package/dist/tui/turn-limits-settings.js +0 -88
- package/dist/tui/turn-limits-settings.js.map +0 -1
- package/dist/tui/types.js +0 -7
- package/dist/tui/types.js.map +0 -1
- package/dist/tui/units.js +0 -20
- package/dist/tui/units.js.map +0 -1
- package/dist/tui/use-selection-index.js +0 -13
- package/dist/tui/use-selection-index.js.map +0 -1
- package/dist/tui/web-activity.js +0 -105
- package/dist/tui/web-activity.js.map +0 -1
- package/dist/tui/workspace-diff.js +0 -101
- package/dist/tui/workspace-diff.js.map +0 -1
- package/dist/tui/workspace-review.js +0 -67
- package/dist/tui/workspace-review.js.map +0 -1
- package/dist/user-commands/store.js +0 -235
- package/dist/user-commands/store.js.map +0 -1
- package/dist/version.js +0 -23
- package/dist/version.js.map +0 -1
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
|
+
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createFormatter,
|
|
5
|
+
isFormatName
|
|
6
|
+
} from "./chunk-KONYGNG6.js";
|
|
7
|
+
import {
|
|
8
|
+
Command,
|
|
9
|
+
CommanderError,
|
|
10
|
+
Option
|
|
11
|
+
} from "./chunk-MZP6SH3M.js";
|
|
12
|
+
import {
|
|
13
|
+
CLI_VERSION
|
|
14
|
+
} from "./chunk-HE7WUOX2.js";
|
|
15
|
+
import {
|
|
16
|
+
bindTrustedProjectContext,
|
|
17
|
+
resolveTrustedProjectContext
|
|
18
|
+
} from "./chunk-CHIEVVQ2.js";
|
|
19
|
+
import {
|
|
20
|
+
debugRequested
|
|
21
|
+
} from "./chunk-GNBMKISG.js";
|
|
22
|
+
import {
|
|
23
|
+
EXIT_BAD_CONFIG,
|
|
24
|
+
EXIT_INTERNAL_ERROR
|
|
25
|
+
} from "./chunk-Y7B67G22.js";
|
|
26
|
+
import {
|
|
27
|
+
REASONING_EFFORT_LEVELS
|
|
28
|
+
} from "./chunk-LXB3S4IC.js";
|
|
29
|
+
import {
|
|
30
|
+
__name
|
|
31
|
+
} from "./chunk-76FLAFCG.js";
|
|
32
|
+
|
|
33
|
+
// src/commands/lazy.ts
|
|
34
|
+
function lazyCommand(meta, load) {
|
|
35
|
+
let loaded;
|
|
36
|
+
return {
|
|
37
|
+
...meta,
|
|
38
|
+
// One import however many times it is asked, and a failed one is asked
|
|
39
|
+
// again rather than remembered.
|
|
40
|
+
load: /* @__PURE__ */ __name(() => {
|
|
41
|
+
if (!loaded) {
|
|
42
|
+
loaded = load().catch((error) => {
|
|
43
|
+
loaded = void 0;
|
|
44
|
+
throw error;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return loaded;
|
|
48
|
+
}, "load")
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
__name(lazyCommand, "lazyCommand");
|
|
52
|
+
function isLazyCommand(def) {
|
|
53
|
+
return "load" in def;
|
|
54
|
+
}
|
|
55
|
+
__name(isLazyCommand, "isLazyCommand");
|
|
56
|
+
|
|
57
|
+
// src/commands/registry.ts
|
|
58
|
+
function registerCommand(program, def, opts) {
|
|
59
|
+
registerCommandOrLazy(program, def, opts);
|
|
60
|
+
}
|
|
61
|
+
__name(registerCommand, "registerCommand");
|
|
62
|
+
function registerCommandOrLazy(program, def, opts) {
|
|
63
|
+
const resolve2 = /* @__PURE__ */ __name(async () => isLazyCommand(def) ? def.load() : def, "resolve");
|
|
64
|
+
const cmd = program.command(def.name).description(def.description);
|
|
65
|
+
if (def.aliases) cmd.aliases([...def.aliases]);
|
|
66
|
+
if (def.passThrough) {
|
|
67
|
+
cmd.helpOption(false).allowUnknownOption(true).passThroughOptions(true).argument("[args...]").action(async (args) => {
|
|
68
|
+
const rawArgs = args ?? [];
|
|
69
|
+
const real = await resolve2();
|
|
70
|
+
if (real.help !== void 0 && rawArgs.some((a) => a === "--help" || a === "-h")) {
|
|
71
|
+
opts.getContext().formatter.print({ text: real.help });
|
|
72
|
+
opts.setExitCode(0);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const code = await real.handler({ ctx: opts.getContext(), rawArgs });
|
|
76
|
+
opts.setExitCode(code);
|
|
77
|
+
});
|
|
78
|
+
} else {
|
|
79
|
+
cmd.action(async () => {
|
|
80
|
+
const real = await resolve2();
|
|
81
|
+
const code = await real.handler({ ctx: opts.getContext(), rawArgs: [] });
|
|
82
|
+
opts.setExitCode(code);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
__name(registerCommandOrLazy, "registerCommandOrLazy");
|
|
87
|
+
function registerAll(program, defs, opts) {
|
|
88
|
+
for (const def of defs) registerCommand(program, def, opts);
|
|
89
|
+
}
|
|
90
|
+
__name(registerAll, "registerAll");
|
|
91
|
+
|
|
92
|
+
// src/cli.ts
|
|
93
|
+
import { resolve } from "node:path";
|
|
94
|
+
|
|
95
|
+
// src/usage-error.ts
|
|
96
|
+
var HELP_POINTER = "Run namzu --help to see what is available.";
|
|
97
|
+
function wrapAtWords(line, width) {
|
|
98
|
+
if (width < 20 || line.length <= width) return [line];
|
|
99
|
+
const rows = [];
|
|
100
|
+
const indent = /^\s*/.exec(line)?.[0] ?? "";
|
|
101
|
+
let current = "";
|
|
102
|
+
for (const word of line.trim().split(/\s+/)) {
|
|
103
|
+
if (current.length === 0) current = `${indent}${word}`;
|
|
104
|
+
else if (current.length + 1 + word.length <= width) current += ` ${word}`;
|
|
105
|
+
else {
|
|
106
|
+
rows.push(current);
|
|
107
|
+
current = `${indent}${word}`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (current.length > 0) rows.push(current);
|
|
111
|
+
return rows;
|
|
112
|
+
}
|
|
113
|
+
__name(wrapAtWords, "wrapAtWords");
|
|
114
|
+
function flagName(spelled) {
|
|
115
|
+
return /--[\w-]+/.exec(spelled)?.[0] ?? spelled.split(/[ ,]/)[0] ?? spelled;
|
|
116
|
+
}
|
|
117
|
+
__name(flagName, "flagName");
|
|
118
|
+
function plainer(first) {
|
|
119
|
+
const invalid = /^option '([^']+)' argument '(.*)' is invalid\.(?: Allowed choices are (.+)\.)?$/.exec(first);
|
|
120
|
+
if (invalid) {
|
|
121
|
+
const choices = invalid[3] ? ` Choose one of ${invalid[3]}.` : "";
|
|
122
|
+
return `\u201C${invalid[2]}\u201D is not a valid value for ${flagName(invalid[1] ?? "")}.${choices}`;
|
|
123
|
+
}
|
|
124
|
+
const missing = /^option '([^']+)' argument missing$/.exec(first);
|
|
125
|
+
if (missing) return `${flagName(missing[1] ?? "")} needs a value.`;
|
|
126
|
+
return first;
|
|
127
|
+
}
|
|
128
|
+
__name(plainer, "plainer");
|
|
129
|
+
function formatUsageError(text, columns) {
|
|
130
|
+
const width = Math.min(Math.max(columns ?? 80, 20), 100);
|
|
131
|
+
const lines = text.trim().split("\n").map((line, index) => {
|
|
132
|
+
let sentence = index === 0 ? plainer(line.replace(/^error:\s*/i, "")) : line;
|
|
133
|
+
if (index === 0 && /^[a-z]/.test(sentence)) {
|
|
134
|
+
sentence = `${sentence.charAt(0).toUpperCase()}${sentence.slice(1)}`;
|
|
135
|
+
}
|
|
136
|
+
if (index === 0 && !/[.!?:]$/.test(sentence)) sentence = `${sentence}.`;
|
|
137
|
+
return sentence;
|
|
138
|
+
});
|
|
139
|
+
const points = lines.length > 1 || /\bhelp\b/i.test(text);
|
|
140
|
+
const body = (points ? lines : [...lines, HELP_POINTER]).flatMap(
|
|
141
|
+
(line) => wrapAtWords(line, width)
|
|
142
|
+
);
|
|
143
|
+
return `${body.join("\n")}
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
__name(formatUsageError, "formatUsageError");
|
|
147
|
+
|
|
148
|
+
// src/commands/manifest.ts
|
|
149
|
+
var acpCommand = lazyCommand(
|
|
150
|
+
{
|
|
151
|
+
name: "acp",
|
|
152
|
+
description: "Speak the agent-client protocol over this process\u2019s stdio",
|
|
153
|
+
passThrough: true
|
|
154
|
+
},
|
|
155
|
+
async () => (await import("./acp-BOSEA4R3.js")).acpCommand
|
|
156
|
+
);
|
|
157
|
+
var computerCommand = lazyCommand(
|
|
158
|
+
{
|
|
159
|
+
name: "computer",
|
|
160
|
+
description: "Check and set up the computer Pals run on (Windows)",
|
|
161
|
+
passThrough: true
|
|
162
|
+
},
|
|
163
|
+
async () => (await import("./computer-GXDY4H35.js")).computerCommand
|
|
164
|
+
);
|
|
165
|
+
var archiveCommand = lazyCommand(
|
|
166
|
+
{
|
|
167
|
+
name: "archive",
|
|
168
|
+
description: "List or restore archived conversations in this project",
|
|
169
|
+
passThrough: true
|
|
170
|
+
},
|
|
171
|
+
async () => (await import("./archive-6ZENIEBP.js")).archiveCommand
|
|
172
|
+
);
|
|
173
|
+
var doctorCommand = lazyCommand(
|
|
174
|
+
{
|
|
175
|
+
name: "doctor",
|
|
176
|
+
description: "Run health checks against the local Namzu environment",
|
|
177
|
+
passThrough: true
|
|
178
|
+
},
|
|
179
|
+
async () => (await import("./doctor-VXSB4Y4P.js")).doctorCommand
|
|
180
|
+
);
|
|
181
|
+
var execCommand = lazyCommand(
|
|
182
|
+
{
|
|
183
|
+
name: "exec",
|
|
184
|
+
aliases: ["e"],
|
|
185
|
+
description: "Run a single prompt headlessly: print the reply, or stream events with --json",
|
|
186
|
+
passThrough: true
|
|
187
|
+
},
|
|
188
|
+
async () => (await import("./exec-3T5ESZPH.js")).execCommand
|
|
189
|
+
);
|
|
190
|
+
var residentCommand = lazyCommand(
|
|
191
|
+
{
|
|
192
|
+
name: "resident",
|
|
193
|
+
description: "Manage persistent work and explicitly authorized resident runners (experimental)",
|
|
194
|
+
passThrough: true
|
|
195
|
+
},
|
|
196
|
+
async () => (await import("./resident-5ZY6OG6B.js")).residentCommand
|
|
197
|
+
);
|
|
198
|
+
var loginCommand = lazyCommand(
|
|
199
|
+
{
|
|
200
|
+
name: "login",
|
|
201
|
+
description: "Sign in with a provider subscription and store the credential.",
|
|
202
|
+
passThrough: true
|
|
203
|
+
},
|
|
204
|
+
async () => (await import("./login-26NCG6EQ.js")).loginCommand
|
|
205
|
+
);
|
|
206
|
+
var logoutCommand = lazyCommand(
|
|
207
|
+
{
|
|
208
|
+
name: "logout",
|
|
209
|
+
description: "Remove a credential namzu stored on this machine.",
|
|
210
|
+
passThrough: true
|
|
211
|
+
},
|
|
212
|
+
async () => (await import("./login-26NCG6EQ.js")).logoutCommand
|
|
213
|
+
);
|
|
214
|
+
var mcpCommand = lazyCommand(
|
|
215
|
+
{ name: "mcp", description: "Manage user tool servers", passThrough: true },
|
|
216
|
+
async () => (await import("./mcp-BTHCU5ZC.js")).mcpCommand
|
|
217
|
+
);
|
|
218
|
+
var drainCommand = lazyCommand(
|
|
219
|
+
{
|
|
220
|
+
name: "drain",
|
|
221
|
+
description: "Continue a turn another process left behind (one pass, then exit)",
|
|
222
|
+
passThrough: true
|
|
223
|
+
},
|
|
224
|
+
async () => (await import("./drain-DXVICQBR.js")).drainCommand
|
|
225
|
+
);
|
|
226
|
+
var evalCommand = lazyCommand(
|
|
227
|
+
{ name: "eval", description: "Run eval suites and set an exit code", passThrough: true },
|
|
228
|
+
async () => (await import("./eval-BMJQXDKA.js")).evalCommand
|
|
229
|
+
);
|
|
230
|
+
var historyCommand = lazyCommand(
|
|
231
|
+
{
|
|
232
|
+
name: "history",
|
|
233
|
+
description: "Print a session's persisted messages as JSON (for host UIs)",
|
|
234
|
+
passThrough: true
|
|
235
|
+
},
|
|
236
|
+
async () => (await import("./host-queries-QCMWDZGS.js")).historyCommand
|
|
237
|
+
);
|
|
238
|
+
var skillsCommand = lazyCommand(
|
|
239
|
+
{
|
|
240
|
+
name: "skills",
|
|
241
|
+
description: "List skills available to a working directory",
|
|
242
|
+
passThrough: true
|
|
243
|
+
},
|
|
244
|
+
async () => (await import("./skills-KAZJYGX5.js")).skillsCommand
|
|
245
|
+
);
|
|
246
|
+
var skillsJSONCommand = lazyCommand(
|
|
247
|
+
{
|
|
248
|
+
name: "skills-json",
|
|
249
|
+
description: "Print discovered skills as JSON (for host UIs)",
|
|
250
|
+
passThrough: true
|
|
251
|
+
},
|
|
252
|
+
async () => (await import("./host-queries-QCMWDZGS.js")).skillsJSONCommand
|
|
253
|
+
);
|
|
254
|
+
var providersJSONCommand = lazyCommand(
|
|
255
|
+
{
|
|
256
|
+
name: "providers-json",
|
|
257
|
+
description: "Print providers + per-provider models as JSON (for host UIs)",
|
|
258
|
+
passThrough: true
|
|
259
|
+
},
|
|
260
|
+
async () => (await import("./host-queries-QCMWDZGS.js")).providersJSONCommand
|
|
261
|
+
);
|
|
262
|
+
var upgradeCommand = lazyCommand(
|
|
263
|
+
{
|
|
264
|
+
name: "upgrade",
|
|
265
|
+
description: "Update the active global Namzu installation",
|
|
266
|
+
passThrough: true
|
|
267
|
+
},
|
|
268
|
+
async () => (await import("./upgrade-BYM4MWBC.js")).upgradeCommand
|
|
269
|
+
);
|
|
270
|
+
var serveCommand = lazyCommand(
|
|
271
|
+
{
|
|
272
|
+
name: "serve",
|
|
273
|
+
description: "namzu needs no central server; each session is a process"
|
|
274
|
+
},
|
|
275
|
+
async () => (await import("./serve-S7UWNIR3.js")).serveCommand
|
|
276
|
+
);
|
|
277
|
+
var stateCommand = lazyCommand(
|
|
278
|
+
{
|
|
279
|
+
name: "state",
|
|
280
|
+
description: "Inspect local Namzu state without changing it",
|
|
281
|
+
passThrough: true
|
|
282
|
+
},
|
|
283
|
+
async () => (await import("./state-263OUKQA.js")).stateCommand
|
|
284
|
+
);
|
|
285
|
+
var scheduleCommand = lazyCommand(
|
|
286
|
+
{
|
|
287
|
+
name: "schedule",
|
|
288
|
+
description: "Scheduled jobs that run while namzu is closed, and the service that runs them",
|
|
289
|
+
passThrough: true
|
|
290
|
+
},
|
|
291
|
+
async () => (await import("./schedule-6JPEO4NR.js")).scheduleCommand
|
|
292
|
+
);
|
|
293
|
+
var browserCommand = lazyCommand(
|
|
294
|
+
{
|
|
295
|
+
name: "browser",
|
|
296
|
+
description: "Browser profiles for the browser tools: sign in, list, status, install, remove",
|
|
297
|
+
passThrough: true
|
|
298
|
+
},
|
|
299
|
+
async () => (await import("./browser-VT2U6NG2.js")).browserCommand
|
|
300
|
+
);
|
|
301
|
+
function createLazyPalCommand(resumeCommand) {
|
|
302
|
+
return lazyCommand(
|
|
303
|
+
{
|
|
304
|
+
name: "pal",
|
|
305
|
+
description: "Create and operate persistent Pals with their own local virtual computers",
|
|
306
|
+
passThrough: true
|
|
307
|
+
},
|
|
308
|
+
async () => (await import("./pal-YEUKHA6F.js")).createPalCommand(resumeCommand)
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
__name(createLazyPalCommand, "createLazyPalCommand");
|
|
312
|
+
function createLazyWorktreeCommand(open) {
|
|
313
|
+
return lazyCommand(
|
|
314
|
+
{
|
|
315
|
+
name: "worktree",
|
|
316
|
+
description: "Create, fork, list and resume managed Git worktrees",
|
|
317
|
+
passThrough: true
|
|
318
|
+
},
|
|
319
|
+
async () => (await import("./worktree-K3ZIPXRM.js")).createWorktreeCommand(open)
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
__name(createLazyWorktreeCommand, "createLazyWorktreeCommand");
|
|
323
|
+
|
|
324
|
+
// src/permissions/mode-names.ts
|
|
325
|
+
var PERMISSION_MODE_NAMES = [
|
|
326
|
+
"prompt",
|
|
327
|
+
"accept-edits",
|
|
328
|
+
"auto",
|
|
329
|
+
"strict",
|
|
330
|
+
"plan"
|
|
331
|
+
];
|
|
332
|
+
|
|
333
|
+
// src/cli.ts
|
|
334
|
+
var EX_USAGE = 64;
|
|
335
|
+
var REMOVED_COMMANDS = {
|
|
336
|
+
run: '`namzu run` was replaced by `namzu exec "<prompt>"`, which takes the same options.',
|
|
337
|
+
"run-stream": '`namzu run-stream` was replaced by `namzu exec --json "<prompt>"`, which emits the same events.'
|
|
338
|
+
};
|
|
339
|
+
var CATALOGUE_REFRESH_COMMANDS = /* @__PURE__ */ new Set(["exec", "acp", "drain"]);
|
|
340
|
+
function opensSessions(name, args) {
|
|
341
|
+
if (CATALOGUE_REFRESH_COMMANDS.has(name)) return true;
|
|
342
|
+
return name === "resident" && args[0] === "run";
|
|
343
|
+
}
|
|
344
|
+
__name(opensSessions, "opensSessions");
|
|
345
|
+
async function runCli(opts) {
|
|
346
|
+
let exitCode = 0;
|
|
347
|
+
const setExitCode = /* @__PURE__ */ __name((code) => {
|
|
348
|
+
exitCode = code;
|
|
349
|
+
}, "setExitCode");
|
|
350
|
+
let catalogueRefresh;
|
|
351
|
+
const beginCatalogueRefresh = /* @__PURE__ */ __name((config) => {
|
|
352
|
+
if (catalogueRefresh !== void 0 || config.modelCatalogueRefresh === false) return;
|
|
353
|
+
try {
|
|
354
|
+
catalogueRefresh = runtime().startZenCatalogueRefresh({
|
|
355
|
+
home: runtime().resolveNamzuHome(),
|
|
356
|
+
// The function, not its current value: see the option's comment.
|
|
357
|
+
log: runtime().cliLogger
|
|
358
|
+
});
|
|
359
|
+
} catch (error) {
|
|
360
|
+
runtime().cliLogger().warn("Zen model catalogue refresh not started", {
|
|
361
|
+
"namzu.zen_catalogue.reason": error instanceof Error ? error.message : String(error)
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}, "beginCatalogueRefresh");
|
|
365
|
+
let rt;
|
|
366
|
+
const runtime = /* @__PURE__ */ __name(() => {
|
|
367
|
+
if (rt === void 0) throw new Error("the CLI runtime is used before a command started");
|
|
368
|
+
return rt;
|
|
369
|
+
}, "runtime");
|
|
370
|
+
const program = new Command().name("namzu").description("Operator CLI for the Namzu agent platform").version(CLI_VERSION, "-V, --version", "Print version and exit").addOption(
|
|
371
|
+
new Option("-f, --format <type>", "Output format: text, json, yaml").choices([
|
|
372
|
+
"text",
|
|
373
|
+
"json",
|
|
374
|
+
"yaml"
|
|
375
|
+
])
|
|
376
|
+
).option(
|
|
377
|
+
"--output-schema <path>",
|
|
378
|
+
"Constrain TUI answers to a JSON Schema file using native structured output (for exec, pass it after the command)"
|
|
379
|
+
).option("-q, --quiet", "Suppress non-essential output; also raises the log floor to warn").addOption(
|
|
380
|
+
new Option("-v, --verbose", "Emit debug-level log records to stderr").conflicts("quiet")
|
|
381
|
+
).option("--debug", "Show technical details when something goes wrong (same as NAMZU_DEBUG=1)").addOption(
|
|
382
|
+
new Option(
|
|
383
|
+
"--log-format <format>",
|
|
384
|
+
"Log record format for exec/drain/TUI-flush output: pretty (default) or json. namzu exec --json always writes json, regardless of this flag."
|
|
385
|
+
).choices(["pretty", "json"])
|
|
386
|
+
).option(
|
|
387
|
+
"--dangerously-skip-permissions",
|
|
388
|
+
"Run tools without asking for approval (no permission prompts). Only use in a sandbox or a folder you fully trust."
|
|
389
|
+
).option("--yolo", "Alias of --dangerously-skip-permissions.").option(
|
|
390
|
+
"--provider <id>",
|
|
391
|
+
"Start the interactive session on this provider for this launch only; the saved choice is untouched."
|
|
392
|
+
).option(
|
|
393
|
+
"--model <id>",
|
|
394
|
+
"Start the interactive session on this model for this launch only. With --provider it models that provider; alone it re-models the saved primary."
|
|
395
|
+
).addOption(
|
|
396
|
+
new Option(
|
|
397
|
+
"--effort <level>",
|
|
398
|
+
"Reasoning effort for this launch only. A level the model does not offer is reported and the default stays."
|
|
399
|
+
).choices(REASONING_EFFORT_LEVELS)
|
|
400
|
+
).addOption(
|
|
401
|
+
new Option(
|
|
402
|
+
"--permission-mode <mode>",
|
|
403
|
+
"Permission mode for this launch only; wins over --yolo. /permissions changes it from inside."
|
|
404
|
+
).choices(PERMISSION_MODE_NAMES)
|
|
405
|
+
).option(
|
|
406
|
+
"--message <text>",
|
|
407
|
+
"Send this text as the first message once the interactive session is ready, for this launch only. It runs as a plain prompt, never a slash command, and is not sent again on resume."
|
|
408
|
+
).option(
|
|
409
|
+
"--add-dir <path>",
|
|
410
|
+
"Let the file tools reach another directory this session; repeatable. /add-dir does the same from inside.",
|
|
411
|
+
(value, previous) => [...previous, value],
|
|
412
|
+
[]
|
|
413
|
+
).option(
|
|
414
|
+
"--profile <name>",
|
|
415
|
+
"Apply a named profile from the config files. A name no file declares is refused, not ignored."
|
|
416
|
+
).hook("preAction", async (command, action) => {
|
|
417
|
+
rt ??= await import("./cli-runtime-F4MBZ2UQ.js");
|
|
418
|
+
const launchOnly = ["provider", "model", "effort", "permissionMode", "message"].filter((key) => command.opts()[key] !== void 0);
|
|
419
|
+
if (launchOnly.length > 0 && !["namzu", "resume"].includes(action.name())) {
|
|
420
|
+
const flags = launchOnly.map(
|
|
421
|
+
(key) => `--${key === "permissionMode" ? "permission-mode" : key}`
|
|
422
|
+
);
|
|
423
|
+
command.error(
|
|
424
|
+
action.name() === "exec" || action.name() === "drain" ? `${flags.join(", ")} before the command apply to the interactive TUI; for ${action.name()}, pass them after it: namzu ${action.name()} ${flags[0]} <value> "<prompt>".` : `${flags.join(", ")} apply to the interactive TUI, not this subcommand.`,
|
|
425
|
+
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
if (action.name() === "resume" && command.opts().message !== void 0)
|
|
429
|
+
command.error(
|
|
430
|
+
"--message is the first message of a new conversation; it is not sent when resuming one.",
|
|
431
|
+
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
432
|
+
);
|
|
433
|
+
if (command.opts().outputSchema && !["namzu", "resume"].includes(action.name())) {
|
|
434
|
+
command.error(
|
|
435
|
+
action.name() === "exec" ? '--output-schema before the command applies to the interactive TUI; for exec, pass it after: namzu exec --output-schema <file> "<prompt>".' : "--output-schema applies to the interactive TUI and to exec, not this subcommand.",
|
|
436
|
+
{
|
|
437
|
+
exitCode: EX_USAGE,
|
|
438
|
+
code: "commander.invalidArgument"
|
|
439
|
+
}
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
if (opensSessions(action.name(), action.args)) {
|
|
443
|
+
beginCatalogueRefresh(getBootstrapContext().config);
|
|
444
|
+
}
|
|
445
|
+
}).enablePositionalOptions(true).exitOverride().showHelpAfterError(false).configureOutput({
|
|
446
|
+
// Commander's one-line complaint becomes sentences, wrapped, with a way forward.
|
|
447
|
+
outputError: /* @__PURE__ */ __name((text, write) => write(formatUsageError(text, process.stderr.columns)), "outputError")
|
|
448
|
+
});
|
|
449
|
+
const buildContext = /* @__PURE__ */ __name((load) => {
|
|
450
|
+
const globalOpts = program.opts();
|
|
451
|
+
const { config: fileConfig, provenance } = load();
|
|
452
|
+
const cliFormat = (() => {
|
|
453
|
+
if (globalOpts.format === void 0) return void 0;
|
|
454
|
+
if (isFormatName(globalOpts.format)) return globalOpts.format;
|
|
455
|
+
throw new Error(`Commander admitted an invalid --format value: ${globalOpts.format}`);
|
|
456
|
+
})();
|
|
457
|
+
const formatFromCli = cliFormat !== void 0;
|
|
458
|
+
const format = cliFormat ?? fileConfig.format ?? "text";
|
|
459
|
+
const quiet = globalOpts.quiet ?? fileConfig.quiet ?? false;
|
|
460
|
+
const envProfile = process.env.NAMZU_PROFILE;
|
|
461
|
+
const selectedProfile = globalOpts.profile !== void 0 && globalOpts.profile !== "" ? { name: globalOpts.profile, selectedBy: "--profile" } : globalOpts.profile === void 0 && envProfile !== void 0 && envProfile !== "" ? { name: envProfile, selectedBy: "NAMZU_PROFILE" } : void 0;
|
|
462
|
+
const configDebug = runtime().createConfigDebugSnapshot(provenance, {
|
|
463
|
+
formatFromCli,
|
|
464
|
+
quietFromCli: globalOpts.quiet !== void 0,
|
|
465
|
+
...selectedProfile ? { selectedProfile } : {}
|
|
466
|
+
});
|
|
467
|
+
const logging = {
|
|
468
|
+
level: runtime().resolveLogLevel({
|
|
469
|
+
verbose: globalOpts.verbose,
|
|
470
|
+
quiet: globalOpts.quiet
|
|
471
|
+
}),
|
|
472
|
+
format: runtime().resolveLogFormat({ logFormat: globalOpts.logFormat })
|
|
473
|
+
};
|
|
474
|
+
return {
|
|
475
|
+
formatter: createFormatter(format, { quiet }),
|
|
476
|
+
config: { ...fileConfig, format, quiet },
|
|
477
|
+
configDebug,
|
|
478
|
+
logging
|
|
479
|
+
};
|
|
480
|
+
}, "buildContext");
|
|
481
|
+
const selectedConfigOpts = /* @__PURE__ */ __name((cwd) => {
|
|
482
|
+
const profile = program.opts().profile;
|
|
483
|
+
return {
|
|
484
|
+
...profile !== void 0 ? { profile } : {},
|
|
485
|
+
...cwd !== void 0 ? { cwd } : {}
|
|
486
|
+
};
|
|
487
|
+
}, "selectedConfigOpts");
|
|
488
|
+
let bootstrapCtx = null;
|
|
489
|
+
const trustedContexts = /* @__PURE__ */ new Map();
|
|
490
|
+
const getTrustedContext = /* @__PURE__ */ __name((cwd) => {
|
|
491
|
+
const target = resolve(cwd);
|
|
492
|
+
const cached = trustedContexts.get(target);
|
|
493
|
+
if (cached) return cached;
|
|
494
|
+
const loaded = runtime().loadConfigWithProvenance(selectedConfigOpts(target));
|
|
495
|
+
const trusted = buildContext(() => loaded);
|
|
496
|
+
runtime().emitBootNarrative(loaded.provenance, loaded.config);
|
|
497
|
+
trustedContexts.set(target, trusted);
|
|
498
|
+
return trusted;
|
|
499
|
+
}, "getTrustedContext");
|
|
500
|
+
const getBootstrapContext = /* @__PURE__ */ __name(() => {
|
|
501
|
+
if (bootstrapCtx) return bootstrapCtx;
|
|
502
|
+
const loaded = runtime().loadBootstrapConfigWithProvenance(selectedConfigOpts());
|
|
503
|
+
const bootstrap = buildContext(() => loaded);
|
|
504
|
+
runtime().installCliLogging(
|
|
505
|
+
runtime().createStderrSink(bootstrap.logging.format),
|
|
506
|
+
bootstrap.logging.level
|
|
507
|
+
);
|
|
508
|
+
bootstrapCtx = bindTrustedProjectContext(bootstrap, getTrustedContext);
|
|
509
|
+
return bootstrapCtx;
|
|
510
|
+
}, "getBootstrapContext");
|
|
511
|
+
const getContext = /* @__PURE__ */ __name(() => {
|
|
512
|
+
getBootstrapContext();
|
|
513
|
+
return getTrustedContext(process.cwd());
|
|
514
|
+
}, "getContext");
|
|
515
|
+
let recoveryCtx = null;
|
|
516
|
+
const getRecoveryContext = /* @__PURE__ */ __name(() => {
|
|
517
|
+
if (recoveryCtx) return recoveryCtx;
|
|
518
|
+
const globalOpts = program.opts();
|
|
519
|
+
const format = (() => {
|
|
520
|
+
if (globalOpts.format === void 0) return "text";
|
|
521
|
+
if (isFormatName(globalOpts.format)) return globalOpts.format;
|
|
522
|
+
throw new Error(`Commander admitted an invalid --format value: ${globalOpts.format}`);
|
|
523
|
+
})();
|
|
524
|
+
const quiet = globalOpts.quiet ?? false;
|
|
525
|
+
const logging = {
|
|
526
|
+
level: runtime().resolveLogLevel({
|
|
527
|
+
verbose: globalOpts.verbose,
|
|
528
|
+
quiet: globalOpts.quiet
|
|
529
|
+
}),
|
|
530
|
+
format: runtime().resolveLogFormat({ logFormat: globalOpts.logFormat })
|
|
531
|
+
};
|
|
532
|
+
runtime().installCliLogging(runtime().createStderrSink(logging.format), logging.level);
|
|
533
|
+
recoveryCtx = {
|
|
534
|
+
formatter: createFormatter(format, { quiet }),
|
|
535
|
+
config: { format, quiet },
|
|
536
|
+
logging,
|
|
537
|
+
...globalOpts.profile ? { selectedProfile: globalOpts.profile } : {}
|
|
538
|
+
};
|
|
539
|
+
return recoveryCtx;
|
|
540
|
+
}, "getRecoveryContext");
|
|
541
|
+
const getResidentContext = /* @__PURE__ */ __name(() => bindTrustedProjectContext(getRecoveryContext(), getTrustedContext), "getResidentContext");
|
|
542
|
+
const worktreeCommand = createLazyWorktreeCommand(async (target) => {
|
|
543
|
+
const previous = process.cwd();
|
|
544
|
+
try {
|
|
545
|
+
process.chdir(target.worktree.path);
|
|
546
|
+
await launchInteractiveTui(target.conversationId);
|
|
547
|
+
} finally {
|
|
548
|
+
process.chdir(previous);
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
const palCommand = createLazyPalCommand(opts.resumeCommand);
|
|
552
|
+
for (const def of [
|
|
553
|
+
acpCommand,
|
|
554
|
+
palCommand,
|
|
555
|
+
computerCommand,
|
|
556
|
+
archiveCommand,
|
|
557
|
+
doctorCommand,
|
|
558
|
+
execCommand,
|
|
559
|
+
residentCommand,
|
|
560
|
+
loginCommand,
|
|
561
|
+
logoutCommand,
|
|
562
|
+
mcpCommand,
|
|
563
|
+
drainCommand,
|
|
564
|
+
evalCommand,
|
|
565
|
+
historyCommand,
|
|
566
|
+
skillsCommand,
|
|
567
|
+
skillsJSONCommand,
|
|
568
|
+
providersJSONCommand,
|
|
569
|
+
upgradeCommand,
|
|
570
|
+
serveCommand,
|
|
571
|
+
stateCommand,
|
|
572
|
+
scheduleCommand,
|
|
573
|
+
browserCommand,
|
|
574
|
+
worktreeCommand
|
|
575
|
+
]) {
|
|
576
|
+
registerCommandOrLazy(program, def, {
|
|
577
|
+
getContext: def === residentCommand ? getResidentContext : def === stateCommand || def === worktreeCommand || def === mcpCommand || def === archiveCommand ? getRecoveryContext : def === palCommand || def === computerCommand || def === acpCommand || def === execCommand || def === drainCommand || def === skillsCommand || def === upgradeCommand || def === scheduleCommand || def === browserCommand ? getBootstrapContext : getContext,
|
|
578
|
+
setExitCode
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
const launchInteractiveTui = /* @__PURE__ */ __name(async (initialConversationId) => {
|
|
582
|
+
if (process.stdout.isTTY) {
|
|
583
|
+
const launchOpts = program.opts();
|
|
584
|
+
const structuredOutput = launchOpts.outputSchema ? (await import("./output-schema-XCONYVZ7.js")).loadOutputSchema(
|
|
585
|
+
resolve(process.cwd(), launchOpts.outputSchema)
|
|
586
|
+
) : void 0;
|
|
587
|
+
const skipPermissions = Boolean(launchOpts.dangerouslySkipPermissions || launchOpts.yolo);
|
|
588
|
+
const provider = launchOpts.provider?.trim();
|
|
589
|
+
const model = launchOpts.model?.trim();
|
|
590
|
+
const launchSettings = {
|
|
591
|
+
...provider ? { provider } : {},
|
|
592
|
+
...model ? { model } : {},
|
|
593
|
+
...launchOpts.effort ? { effort: launchOpts.effort } : {},
|
|
594
|
+
...launchOpts.permissionMode ? { permissionMode: launchOpts.permissionMode } : {},
|
|
595
|
+
...launchOpts.message?.trim() ? { message: launchOpts.message } : {}
|
|
596
|
+
};
|
|
597
|
+
const commandCtx = getBootstrapContext();
|
|
598
|
+
beginCatalogueRefresh(commandCtx.config);
|
|
599
|
+
const buildTuiContext = /* @__PURE__ */ __name((resolvedCtx, cwd) => {
|
|
600
|
+
runtime().warnLegacyMcpPermissionNames(resolvedCtx.config.permissions);
|
|
601
|
+
const permissions = runtime().compilePermissions(
|
|
602
|
+
resolvedCtx.config.permissions,
|
|
603
|
+
resolvedCtx.config.permissionChecks
|
|
604
|
+
);
|
|
605
|
+
for (const d of permissions.diagnostics) {
|
|
606
|
+
const where = d.pattern ? `permissions.${d.tool}."${d.pattern}"` : `permissions.${d.tool}`;
|
|
607
|
+
resolvedCtx.formatter.error({ message: `${where}: ${d.message}` });
|
|
608
|
+
}
|
|
609
|
+
const browserConfig = resolvedCtx.config.browser;
|
|
610
|
+
const browserSites = browserConfig?.enabled === false ? void 0 : runtime().compileBrowserSites(browserConfig?.sites);
|
|
611
|
+
for (const message of browserSites?.diagnostics ?? []) {
|
|
612
|
+
resolvedCtx.formatter.error({ message });
|
|
613
|
+
}
|
|
614
|
+
const additionalDirectories = [
|
|
615
|
+
...resolvedCtx.config.additionalDirectories ?? [],
|
|
616
|
+
...launchOpts.addDir ?? []
|
|
617
|
+
].map((dir) => resolve(cwd, dir));
|
|
618
|
+
return {
|
|
619
|
+
cwd,
|
|
620
|
+
...structuredOutput ? { structuredOutput } : {},
|
|
621
|
+
version: CLI_VERSION,
|
|
622
|
+
configDebug: resolvedCtx.configDebug,
|
|
623
|
+
skipPermissions,
|
|
624
|
+
...Object.keys(launchSettings).length > 0 ? { launchSettings } : {},
|
|
625
|
+
...additionalDirectories.length > 0 ? { additionalDirectories } : {},
|
|
626
|
+
rules: browserSites ? runtime().withBrowserSiteRules(permissions.rules, browserSites.rules) : permissions.rules,
|
|
627
|
+
...browserSites ? { browser: { ...browserConfig, sites: browserSites.sites } } : {},
|
|
628
|
+
logging: resolvedCtx.logging,
|
|
629
|
+
...initialConversationId ? { initialConversationId } : {},
|
|
630
|
+
...resolvedCtx.config.mcpServers ? { mcpServers: resolvedCtx.config.mcpServers } : {},
|
|
631
|
+
...resolvedCtx.config.plugins ? { plugins: resolvedCtx.config.plugins } : {},
|
|
632
|
+
...resolvedCtx.config.skills ? { skills: resolvedCtx.config.skills } : {},
|
|
633
|
+
...resolvedCtx.config.composerTriggers ? { composerTriggers: resolvedCtx.config.composerTriggers } : {},
|
|
634
|
+
...resolvedCtx.config.web ? { web: resolvedCtx.config.web } : {},
|
|
635
|
+
...resolvedCtx.config.hooks ? { hooks: resolvedCtx.config.hooks } : {},
|
|
636
|
+
...resolvedCtx.config.compaction ? { compaction: resolvedCtx.config.compaction } : {},
|
|
637
|
+
...resolvedCtx.config.memory ? { memory: resolvedCtx.config.memory } : {},
|
|
638
|
+
...resolvedCtx.config.limits ? { limits: resolvedCtx.config.limits } : {},
|
|
639
|
+
...resolvedCtx.config.sandbox ? { sandbox: resolvedCtx.config.sandbox } : {},
|
|
640
|
+
// `!== undefined`, never `??`: an empty list is the operator
|
|
641
|
+
// switching the screens off, and it is the answer this key
|
|
642
|
+
// exists for. A truthiness test would drop it and the turn
|
|
643
|
+
// would install the kernel default instead — the opposite
|
|
644
|
+
// of what was asked for, in the one case the operator was
|
|
645
|
+
// explicit about.
|
|
646
|
+
...resolvedCtx.config.toolResultScreens !== void 0 ? { toolResultScreens: resolvedCtx.config.toolResultScreens } : {},
|
|
647
|
+
...resolvedCtx.config.tui ? { tui: resolvedCtx.config.tui } : {}
|
|
648
|
+
};
|
|
649
|
+
}, "buildTuiContext");
|
|
650
|
+
const tuiCtx = buildTuiContext(commandCtx, process.cwd());
|
|
651
|
+
bindTrustedProjectContext(
|
|
652
|
+
tuiCtx,
|
|
653
|
+
(cwd) => buildTuiContext(resolveTrustedProjectContext(commandCtx, cwd), cwd)
|
|
654
|
+
);
|
|
655
|
+
const { launchTui } = await import("./tui-5MU7JBXX.js");
|
|
656
|
+
const resumeCommand = launchOpts.outputSchema ? [
|
|
657
|
+
...opts.resumeCommand ?? ["namzu"],
|
|
658
|
+
"--output-schema",
|
|
659
|
+
resolve(process.cwd(), launchOpts.outputSchema)
|
|
660
|
+
] : opts.resumeCommand;
|
|
661
|
+
if (resumeCommand) await launchTui(tuiCtx, { resumeCommand });
|
|
662
|
+
else await launchTui(tuiCtx);
|
|
663
|
+
const code = await Promise.resolve(0);
|
|
664
|
+
setExitCode(code);
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
process.stdout.write(
|
|
668
|
+
"namzu \u2014 interactive TUI requires a terminal. For utility subcommands run `namzu --help`.\n"
|
|
669
|
+
);
|
|
670
|
+
}, "launchInteractiveTui");
|
|
671
|
+
program.command("resume").description("Resume an interactive conversation by its durable id").argument("<conversation-id>", "Conversation id printed when the TUI exited").action(async (conversationId) => {
|
|
672
|
+
const { scheduledSessionElsewhere } = await import("./resume-command-ONYRZIIA.js");
|
|
673
|
+
const elsewhere = scheduledSessionElsewhere(
|
|
674
|
+
runtime().resolveNamzuHome(),
|
|
675
|
+
conversationId,
|
|
676
|
+
process.cwd()
|
|
677
|
+
);
|
|
678
|
+
if (elsewhere) {
|
|
679
|
+
process.stderr.write(
|
|
680
|
+
`namzu: ${conversationId} is a run of the scheduled job ${elsewhere.job.name}, and its conversation is stored with the job\u2019s folder, ${elsewhere.job.folder.canonical}. Open it there:
|
|
681
|
+
${elsewhere.command}
|
|
682
|
+
`
|
|
683
|
+
);
|
|
684
|
+
setExitCode(EX_USAGE);
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
await launchInteractiveTui(conversationId);
|
|
688
|
+
});
|
|
689
|
+
program.action(async () => {
|
|
690
|
+
await launchInteractiveTui();
|
|
691
|
+
});
|
|
692
|
+
try {
|
|
693
|
+
const removed = firstRootOperand(program, opts.argv.slice(2));
|
|
694
|
+
const hint = removed !== void 0 ? REMOVED_COMMANDS[removed] : void 0;
|
|
695
|
+
if (removed !== void 0 && hint !== void 0) {
|
|
696
|
+
program.error(`error: unknown command '${removed}'
|
|
697
|
+
${hint}`, {
|
|
698
|
+
exitCode: EX_USAGE,
|
|
699
|
+
code: "commander.unknownCommand"
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
await program.parseAsync(opts.argv, { from: "node" });
|
|
703
|
+
return exitCode;
|
|
704
|
+
} catch (err) {
|
|
705
|
+
if (err instanceof CommanderError) {
|
|
706
|
+
return mapCommanderError(err);
|
|
707
|
+
}
|
|
708
|
+
if (rt !== void 0 && err instanceof rt.ConfigLoadError) {
|
|
709
|
+
const next = err.complete ? "" : "namzu will not start with a config it cannot read. Fix the file or remove it.\n";
|
|
710
|
+
const detail = err.complete && err.cause instanceof Error && debugRequested(process.env, opts.argv) ? `${err.cause.message}
|
|
711
|
+
` : "";
|
|
712
|
+
process.stderr.write(`${err.message}
|
|
713
|
+
${next}${detail}`);
|
|
714
|
+
return EXIT_BAD_CONFIG;
|
|
715
|
+
}
|
|
716
|
+
if (rt !== void 0 && err instanceof rt.ConfigValueError) {
|
|
717
|
+
const remediation = err.source.kind === "file" ? "Fix the named setting or remove it from that file." : `Fix or unset ${err.source.variable}.`;
|
|
718
|
+
process.stderr.write(
|
|
719
|
+
`${err.message}
|
|
720
|
+
namzu will not start with an explicit config value it cannot honour. ${remediation}
|
|
721
|
+
`
|
|
722
|
+
);
|
|
723
|
+
return EXIT_BAD_CONFIG;
|
|
724
|
+
}
|
|
725
|
+
const { reportCrash } = await import("./crash-report-STOHSORG.js");
|
|
726
|
+
process.stderr.write(reportCrash(err));
|
|
727
|
+
return EXIT_INTERNAL_ERROR;
|
|
728
|
+
} finally {
|
|
729
|
+
catalogueRefresh?.cancel();
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
__name(runCli, "runCli");
|
|
733
|
+
function firstRootOperand(program, args) {
|
|
734
|
+
const takesValue = /* @__PURE__ */ __name((flag) => {
|
|
735
|
+
if (flag === "-h" || flag === "--help") return false;
|
|
736
|
+
const option = program.options.find((o) => o.long === flag || o.short === flag);
|
|
737
|
+
if (option === void 0) return void 0;
|
|
738
|
+
return option.required || option.optional;
|
|
739
|
+
}, "takesValue");
|
|
740
|
+
for (let i = 0; i < args.length; i++) {
|
|
741
|
+
const arg = args[i];
|
|
742
|
+
if (arg === "--") return void 0;
|
|
743
|
+
if (arg.startsWith("--")) {
|
|
744
|
+
const eq = arg.indexOf("=");
|
|
745
|
+
const value = takesValue(eq === -1 ? arg : arg.slice(0, eq));
|
|
746
|
+
if (value === void 0) return void 0;
|
|
747
|
+
if (value && eq === -1) i++;
|
|
748
|
+
continue;
|
|
749
|
+
}
|
|
750
|
+
if (arg.length > 1 && arg.startsWith("-")) {
|
|
751
|
+
const value = takesValue(arg.slice(0, 2));
|
|
752
|
+
if (value === void 0) return void 0;
|
|
753
|
+
if (value && arg.length === 2) i++;
|
|
754
|
+
continue;
|
|
755
|
+
}
|
|
756
|
+
return arg;
|
|
757
|
+
}
|
|
758
|
+
return void 0;
|
|
759
|
+
}
|
|
760
|
+
__name(firstRootOperand, "firstRootOperand");
|
|
761
|
+
function mapCommanderError(err) {
|
|
762
|
+
switch (err.code) {
|
|
763
|
+
case "commander.helpDisplayed":
|
|
764
|
+
case "commander.help":
|
|
765
|
+
case "commander.version":
|
|
766
|
+
return 0;
|
|
767
|
+
case "commander.unknownCommand":
|
|
768
|
+
case "commander.unknownOption":
|
|
769
|
+
case "commander.missingArgument":
|
|
770
|
+
case "commander.missingMandatoryOptionValue":
|
|
771
|
+
case "commander.invalidArgument":
|
|
772
|
+
case "commander.invalidOptionArgument":
|
|
773
|
+
case "commander.excessArguments":
|
|
774
|
+
case "commander.conflictingOption":
|
|
775
|
+
return EX_USAGE;
|
|
776
|
+
default:
|
|
777
|
+
return EXIT_INTERNAL_ERROR;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
__name(mapCommanderError, "mapCommanderError");
|
|
781
|
+
|
|
782
|
+
export {
|
|
783
|
+
registerCommand,
|
|
784
|
+
registerAll,
|
|
785
|
+
runCli
|
|
786
|
+
};
|
|
787
|
+
//# sourceMappingURL=chunk-PT537V7B.js.map
|