@namzu/cli 34.1.1 → 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 +800 -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/mcp.d.ts +3 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- 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/mcp/servers.d.ts.map +1 -1
- 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/resident/session-step.d.ts.map +1 -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 +26 -0
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -0
- 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 +25 -4
- 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 +34 -0
- package/dist/tui/PendingInputPanel.d.ts.map +1 -0
- 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 +135 -6
- 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 +9 -2
- 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 +22 -11
- 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 -288
- 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 -519
- 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 -471
- 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 -8209
- package/dist/tui/App.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 -908
- 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/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 -4235
- 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 -1587
- 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
package/dist/tui/Composer.js
DELETED
|
@@ -1,908 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text, useInput, usePaste, useWindowSize } from 'ink';
|
|
3
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
-
import { readClipboardImage } from '../integrations/clipboard/image.js';
|
|
5
|
-
import { activeFileMention, matchMentionableFiles } from './mentions.js';
|
|
6
|
-
import { parseModelSelectionIntent } from './model-selection-intent.js';
|
|
7
|
-
import { matchSlashCommands } from './slashCommands.js';
|
|
8
|
-
import { terminalDisplayText } from './terminal-display.js';
|
|
9
|
-
import { theme } from './theme.js';
|
|
10
|
-
import { tagRow } from './triggers/copy.js';
|
|
11
|
-
import { EMPTY_DETECTION, detectTriggers, } from './triggers/detect.js';
|
|
12
|
-
import { applyEdit, diffEdit, overrideMap, replaceAll, shiftOverrides, } from './triggers/provenance.js';
|
|
13
|
-
const MIN_SUGGESTIONS = 6;
|
|
14
|
-
const MAX_SUGGESTIONS = 12;
|
|
15
|
-
const SUGGESTION_FURNITURE_ROWS = 12;
|
|
16
|
-
// A bracketed paste longer than this (with no newline) is held as a chip rather than typed in.
|
|
17
|
-
const PASTE_THRESHOLD = 80;
|
|
18
|
-
// A recalled or branch-restored prompt can be much larger than anything the
|
|
19
|
-
// operator typed one key at a time. Keep the exact source in state, but never
|
|
20
|
-
// hand an unbounded string to Ink's wrapping engine. The bounded view follows
|
|
21
|
-
// the real cursor rather than assuming every edit happens at the end.
|
|
22
|
-
const COMPOSER_DISPLAY_CODE_UNITS = 2048;
|
|
23
|
-
const COMPOSER_DISPLAY_LINES = 8;
|
|
24
|
-
const graphemeSegmenter = new Intl.Segmenter(undefined, {
|
|
25
|
-
granularity: 'grapheme',
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* `source[from, to)` cut at trigger words, each piece made terminal-safe on
|
|
29
|
-
* its own. Escaping after cutting, never before, is what keeps the highlight
|
|
30
|
-
* on the right cells: `terminalDisplayText` turns one unsafe code point into
|
|
31
|
-
* several characters, and offsets into the source would miss them.
|
|
32
|
-
*/
|
|
33
|
-
function displaySegments(source, from, to, styled) {
|
|
34
|
-
const segments = [];
|
|
35
|
-
let at = from;
|
|
36
|
-
for (const span of styled) {
|
|
37
|
-
const start = Math.max(from, span.start);
|
|
38
|
-
const end = Math.min(to, span.end);
|
|
39
|
-
if (end <= start || start < at)
|
|
40
|
-
continue;
|
|
41
|
-
if (start > at)
|
|
42
|
-
segments.push({ text: terminalDisplayText(source.slice(at, start)) });
|
|
43
|
-
segments.push({ text: terminalDisplayText(source.slice(start, end)), style: span.style });
|
|
44
|
-
at = end;
|
|
45
|
-
}
|
|
46
|
-
if (to > at)
|
|
47
|
-
segments.push({ text: terminalDisplayText(source.slice(at, to)) });
|
|
48
|
-
return segments;
|
|
49
|
-
}
|
|
50
|
-
function renderSegments(segments) {
|
|
51
|
-
return segments.map((segment, index) => segment.style ? (_jsx(Text
|
|
52
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: segments of one draft, in order.
|
|
53
|
-
, { color: segment.style === 'armed' ? theme.accent.trigger : theme.status.warn, bold: segment.style === 'armed', underline: segment.style === 'armed', children: segment.text }, index)) : (segment.text));
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Visible rows in a completion menu for this terminal height.
|
|
57
|
-
*
|
|
58
|
-
* Each option is budgeted as two rows because a description may wrap. The
|
|
59
|
-
* composer, borders, footer and status area retain twelve rows before the
|
|
60
|
-
* menu grows. A short/unknown terminal keeps the established six-row window;
|
|
61
|
-
* a tall terminal uses the space it actually has, capped so the menu never
|
|
62
|
-
* takes over the whole conversation view.
|
|
63
|
-
*/
|
|
64
|
-
export function suggestionWindowSize(rows) {
|
|
65
|
-
if (rows === undefined || !Number.isFinite(rows))
|
|
66
|
-
return MIN_SUGGESTIONS;
|
|
67
|
-
return Math.min(MAX_SUGGESTIONS, Math.max(MIN_SUGGESTIONS, Math.floor((rows - SUGGESTION_FURNITURE_ROWS) / 2)));
|
|
68
|
-
}
|
|
69
|
-
function graphemeBoundaries(source) {
|
|
70
|
-
const boundaries = [0];
|
|
71
|
-
for (const segment of graphemeSegmenter.segment(source)) {
|
|
72
|
-
const end = segment.index + segment.segment.length;
|
|
73
|
-
if (end > (boundaries[boundaries.length - 1] ?? -1))
|
|
74
|
-
boundaries.push(end);
|
|
75
|
-
}
|
|
76
|
-
return boundaries;
|
|
77
|
-
}
|
|
78
|
-
function previousGraphemeBoundary(source, cursor) {
|
|
79
|
-
let previous = 0;
|
|
80
|
-
for (const boundary of graphemeBoundaries(source)) {
|
|
81
|
-
if (boundary >= cursor)
|
|
82
|
-
break;
|
|
83
|
-
previous = boundary;
|
|
84
|
-
}
|
|
85
|
-
return previous;
|
|
86
|
-
}
|
|
87
|
-
function nextGraphemeBoundary(source, cursor) {
|
|
88
|
-
for (const boundary of graphemeBoundaries(source)) {
|
|
89
|
-
if (boundary > cursor)
|
|
90
|
-
return boundary;
|
|
91
|
-
}
|
|
92
|
-
return source.length;
|
|
93
|
-
}
|
|
94
|
-
function lineStart(source, cursor) {
|
|
95
|
-
return cursor <= 0 ? 0 : source.lastIndexOf('\n', cursor - 1) + 1;
|
|
96
|
-
}
|
|
97
|
-
function lineEnd(source, cursor) {
|
|
98
|
-
const newline = source.indexOf('\n', cursor);
|
|
99
|
-
return newline < 0 ? source.length : newline;
|
|
100
|
-
}
|
|
101
|
-
function graphemeColumn(source, start, cursor) {
|
|
102
|
-
let column = 0;
|
|
103
|
-
for (const _segment of graphemeSegmenter.segment(source.slice(start, cursor)))
|
|
104
|
-
column += 1;
|
|
105
|
-
return column;
|
|
106
|
-
}
|
|
107
|
-
function cursorAtGraphemeColumn(source, start, end, column) {
|
|
108
|
-
let current = 0;
|
|
109
|
-
for (const segment of graphemeSegmenter.segment(source.slice(start, end))) {
|
|
110
|
-
if (current === column)
|
|
111
|
-
return start + segment.index;
|
|
112
|
-
current += 1;
|
|
113
|
-
}
|
|
114
|
-
return end;
|
|
115
|
-
}
|
|
116
|
-
function verticalCursor(source, cursor, direction, preferredColumn) {
|
|
117
|
-
const currentStart = lineStart(source, cursor);
|
|
118
|
-
const currentEnd = lineEnd(source, cursor);
|
|
119
|
-
const column = preferredColumn ?? graphemeColumn(source, currentStart, cursor);
|
|
120
|
-
if (direction === -1) {
|
|
121
|
-
if (currentStart === 0)
|
|
122
|
-
return null;
|
|
123
|
-
const previousEnd = currentStart - 1;
|
|
124
|
-
const previousStart = lineStart(source, previousEnd);
|
|
125
|
-
return {
|
|
126
|
-
cursor: cursorAtGraphemeColumn(source, previousStart, previousEnd, column),
|
|
127
|
-
column,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
if (currentEnd === source.length)
|
|
131
|
-
return null;
|
|
132
|
-
const nextStart = currentEnd + 1;
|
|
133
|
-
return {
|
|
134
|
-
cursor: cursorAtGraphemeColumn(source, nextStart, lineEnd(source, nextStart), column),
|
|
135
|
-
column,
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function composerDisplayValue(source, cursor) {
|
|
139
|
-
let start = Math.max(0, cursor - Math.floor(COMPOSER_DISPLAY_CODE_UNITS / 2));
|
|
140
|
-
let end = Math.min(source.length, start + COMPOSER_DISPLAY_CODE_UNITS);
|
|
141
|
-
if (end === source.length)
|
|
142
|
-
start = Math.max(0, end - COMPOSER_DISPLAY_CODE_UNITS);
|
|
143
|
-
if (cursor > end) {
|
|
144
|
-
end = cursor;
|
|
145
|
-
start = Math.max(0, end - COMPOSER_DISPLAY_CODE_UNITS);
|
|
146
|
-
}
|
|
147
|
-
let afterBreaks = 0;
|
|
148
|
-
for (let index = cursor; index < end; index += 1) {
|
|
149
|
-
if (source.charCodeAt(index) !== 0x0a)
|
|
150
|
-
continue;
|
|
151
|
-
afterBreaks += 1;
|
|
152
|
-
if (afterBreaks === Math.min(3, COMPOSER_DISPLAY_LINES - 1)) {
|
|
153
|
-
end = index;
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
let beforeBreaks = 0;
|
|
158
|
-
const beforeBudget = COMPOSER_DISPLAY_LINES - afterBreaks;
|
|
159
|
-
for (let index = cursor - 1; index >= start; index -= 1) {
|
|
160
|
-
if (source.charCodeAt(index) !== 0x0a)
|
|
161
|
-
continue;
|
|
162
|
-
beforeBreaks += 1;
|
|
163
|
-
if (beforeBreaks === beforeBudget) {
|
|
164
|
-
start = index + 1;
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
// Only the view is rounded to complete grapheme boundaries. The exact source
|
|
169
|
-
// remains untouched even when the cap lands inside a combining sequence.
|
|
170
|
-
const boundaries = graphemeBoundaries(source);
|
|
171
|
-
start = boundaries.find((boundary) => boundary >= start) ?? source.length;
|
|
172
|
-
end = [...boundaries].reverse().find((boundary) => boundary <= end) ?? 0;
|
|
173
|
-
return {
|
|
174
|
-
before: terminalDisplayText(source.slice(start, cursor)),
|
|
175
|
-
after: terminalDisplayText(source.slice(cursor, end)),
|
|
176
|
-
leadingEllipsis: start > 0,
|
|
177
|
-
trailingEllipsis: end < source.length,
|
|
178
|
-
start,
|
|
179
|
-
end,
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Terminal Ctrl+W / Unix word-rubout semantics.
|
|
184
|
-
*
|
|
185
|
-
* Punctuation is part of the word: `hello-world` disappears as one unit. The
|
|
186
|
-
* boundary is whitespace, matching the reference composer and the shell habit
|
|
187
|
-
* operators already bring to this key.
|
|
188
|
-
*/
|
|
189
|
-
export function deletePreviousWord(source) {
|
|
190
|
-
return deletePreviousWordAt(source, source.length).value;
|
|
191
|
-
}
|
|
192
|
-
function previousWordBoundary(source, cursor) {
|
|
193
|
-
let start = cursor;
|
|
194
|
-
while (start > 0) {
|
|
195
|
-
const previous = previousGraphemeBoundary(source, start);
|
|
196
|
-
if (!/\s/u.test(source.slice(previous, start)))
|
|
197
|
-
break;
|
|
198
|
-
start = previous;
|
|
199
|
-
}
|
|
200
|
-
while (start > 0) {
|
|
201
|
-
const previous = previousGraphemeBoundary(source, start);
|
|
202
|
-
if (/\s/u.test(source.slice(previous, start)))
|
|
203
|
-
break;
|
|
204
|
-
start = previous;
|
|
205
|
-
}
|
|
206
|
-
return start;
|
|
207
|
-
}
|
|
208
|
-
function nextWordBoundary(source, cursor) {
|
|
209
|
-
let end = cursor;
|
|
210
|
-
while (end < source.length) {
|
|
211
|
-
const next = nextGraphemeBoundary(source, end);
|
|
212
|
-
if (!/\s/u.test(source.slice(end, next)))
|
|
213
|
-
break;
|
|
214
|
-
end = next;
|
|
215
|
-
}
|
|
216
|
-
while (end < source.length) {
|
|
217
|
-
const next = nextGraphemeBoundary(source, end);
|
|
218
|
-
if (/\s/u.test(source.slice(end, next)))
|
|
219
|
-
break;
|
|
220
|
-
end = next;
|
|
221
|
-
}
|
|
222
|
-
return end;
|
|
223
|
-
}
|
|
224
|
-
function deletePreviousWordAt(source, cursor) {
|
|
225
|
-
const start = previousWordBoundary(source, cursor);
|
|
226
|
-
return {
|
|
227
|
-
value: source.slice(0, start) + source.slice(cursor),
|
|
228
|
-
cursor: start,
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function deleteNextWordAt(source, cursor) {
|
|
232
|
-
const end = nextWordBoundary(source, cursor);
|
|
233
|
-
return { value: source.slice(0, cursor) + source.slice(end), cursor };
|
|
234
|
-
}
|
|
235
|
-
export function Composer({ disabled = false, reasoningEffortLevels, onSubmit, history, userCommands = [], builtins, mentionCandidates = [], hidden = false, escapeInterrupts = false, onNotice, onStepReasoningEffort, onExternalEdit, onEditPrevious, draftToRestore = null, onDraftRestored, onDraftPresenceChange, onOpenAgentPanel, onCycleMode, triggers, turnActive = false, }) {
|
|
236
|
-
const terminal = useWindowSize();
|
|
237
|
-
const [value, setValueState] = useState('');
|
|
238
|
-
const valueRef = useRef('');
|
|
239
|
-
const [cursor, setCursorState] = useState(0);
|
|
240
|
-
const cursorRef = useRef(0);
|
|
241
|
-
const [, setHistoryIndexState] = useState(-1);
|
|
242
|
-
const historyIndexRef = useRef(-1);
|
|
243
|
-
const historyDraftRef = useRef(null);
|
|
244
|
-
// Characters of the draft not typed here, and Alt+W decisions. Refs, so
|
|
245
|
-
// submit reads what the last key left; `triggerVersion` re-renders when
|
|
246
|
-
// only an Alt+W decision changed.
|
|
247
|
-
const spansRef = useRef([]);
|
|
248
|
-
const overridesRef = useRef([]);
|
|
249
|
-
const [triggerVersion, setTriggerVersion] = useState(0);
|
|
250
|
-
const [historySearch, setHistorySearchState] = useState(null);
|
|
251
|
-
const historySearchRef = useRef(null);
|
|
252
|
-
const verticalColumnRef = useRef(null);
|
|
253
|
-
const killBufferRef = useRef('');
|
|
254
|
-
const [selected, setSelected] = useState(0);
|
|
255
|
-
const selectedRef = useRef(0);
|
|
256
|
-
// Large pastes are held as attachments (shown as chips) instead of being
|
|
257
|
-
// dumped into the input, then folded into the message on submit.
|
|
258
|
-
const [pastes, setPastes] = useState([]);
|
|
259
|
-
// Pasted images and restored durable attachments, shown as chips and sent
|
|
260
|
-
// back in the exact SDK union on submit.
|
|
261
|
-
const [attachments, setAttachments] = useState([]);
|
|
262
|
-
const [editPreviousArmed, setEditPreviousArmed] = useState(false);
|
|
263
|
-
const restoredTokenRef = useRef(null);
|
|
264
|
-
const draftPresenceRef = useRef(false);
|
|
265
|
-
useEffect(() => {
|
|
266
|
-
const hasDraft = value.trim().length > 0 ||
|
|
267
|
-
pastes.some((paste) => paste.trim().length > 0) ||
|
|
268
|
-
attachments.length > 0;
|
|
269
|
-
if (hasDraft === draftPresenceRef.current)
|
|
270
|
-
return;
|
|
271
|
-
draftPresenceRef.current = hasDraft;
|
|
272
|
-
onDraftPresenceChange?.(hasDraft);
|
|
273
|
-
}, [attachments.length, onDraftPresenceChange, pastes, value]);
|
|
274
|
-
// Keep the complete match set. The six-row limit belongs to the rendered
|
|
275
|
-
// window, not to navigation: slicing here made every later command
|
|
276
|
-
// unreachable no matter how many times the operator pressed Down.
|
|
277
|
-
const commandSuggestions = matchSlashCommands(value, userCommands, builtins);
|
|
278
|
-
const activeMention = activeFileMention(value, cursor);
|
|
279
|
-
const fileSuggestions = activeMention
|
|
280
|
-
? matchMentionableFiles(activeMention.query, mentionCandidates)
|
|
281
|
-
: [];
|
|
282
|
-
const suggestionKind = commandSuggestions.length > 0 ? 'command' : fileSuggestions.length > 0 ? 'file' : null;
|
|
283
|
-
const suggestionCount = suggestionKind === 'command' ? commandSuggestions.length : fileSuggestions.length;
|
|
284
|
-
const suggestionWindow = suggestionWindowSize(terminal.rows);
|
|
285
|
-
const selIdx = Math.min(selected, Math.max(0, suggestionCount - 1));
|
|
286
|
-
const suggestionStart = Math.min(Math.max(0, selIdx - suggestionWindow + 1), Math.max(0, suggestionCount - suggestionWindow));
|
|
287
|
-
const visibleCommandSuggestions = commandSuggestions.slice(suggestionStart, suggestionStart + suggestionWindow);
|
|
288
|
-
const visibleFileSuggestions = fileSuggestions.slice(suggestionStart, suggestionStart + suggestionWindow);
|
|
289
|
-
const displayValue = composerDisplayValue(value, cursor);
|
|
290
|
-
const commandColumnWidth = Math.min(24, Math.max(10, ...visibleCommandSuggestions.map((command) => command.name.length + 4)));
|
|
291
|
-
/**
|
|
292
|
-
* Replace the whole draft. `spans` says which characters were not typed
|
|
293
|
-
* here; absent, the whole text counts as `origin`. Alt+W decisions belong
|
|
294
|
-
* to the text they were made on and go with it.
|
|
295
|
-
*/
|
|
296
|
-
const setBuffer = useCallback((nextValue, nextCursor = nextValue.length, origin = 'recalled', spans) => {
|
|
297
|
-
valueRef.current = nextValue;
|
|
298
|
-
cursorRef.current = nextCursor;
|
|
299
|
-
spansRef.current = spans ?? replaceAll(nextValue.length, origin);
|
|
300
|
-
overridesRef.current = [];
|
|
301
|
-
setValueState(nextValue);
|
|
302
|
-
setCursorState(nextCursor);
|
|
303
|
-
}, []);
|
|
304
|
-
const setHistoryIndex = useCallback((next) => {
|
|
305
|
-
historyIndexRef.current = next;
|
|
306
|
-
setHistoryIndexState(next);
|
|
307
|
-
}, []);
|
|
308
|
-
const setHistorySearch = useCallback((next) => {
|
|
309
|
-
historySearchRef.current = next;
|
|
310
|
-
setHistorySearchState(next);
|
|
311
|
-
}, []);
|
|
312
|
-
const setSelectedIndex = useCallback((next) => {
|
|
313
|
-
const resolved = typeof next === 'function' ? next(selectedRef.current) : next;
|
|
314
|
-
selectedRef.current = resolved;
|
|
315
|
-
setSelected(resolved);
|
|
316
|
-
}, []);
|
|
317
|
-
/** The triggers `draft` names, read with this draft's provenance and Alt+W decisions. */
|
|
318
|
-
const detect = (draft) => triggers
|
|
319
|
-
? detectTriggers(draft, triggers.registry, triggers.context, {
|
|
320
|
-
nonTyped: spansRef.current,
|
|
321
|
-
overrides: overrideMap(overridesRef.current),
|
|
322
|
-
suggest: triggers.suggest,
|
|
323
|
-
})
|
|
324
|
-
: EMPTY_DETECTION;
|
|
325
|
-
const setOverride = (hit, state) => {
|
|
326
|
-
const others = overridesRef.current.filter((override) => !(override.id === hit.id && override.start === hit.start));
|
|
327
|
-
overridesRef.current =
|
|
328
|
-
state === null ? others : [...others, { id: hit.id, start: hit.start, end: hit.end, state }];
|
|
329
|
-
setTriggerVersion((version) => version + 1);
|
|
330
|
-
};
|
|
331
|
-
/** Alt+W: the trigger nearest the cursor changes state. */
|
|
332
|
-
const toggleNearestTrigger = () => {
|
|
333
|
-
const cursor = cursorRef.current;
|
|
334
|
-
const distance = (hit) => cursor < hit.start ? hit.start - cursor : cursor > hit.end ? cursor - hit.end : 0;
|
|
335
|
-
const nearest = [...detect(valueRef.current).hits].sort((a, b) => distance(a) - distance(b))[0];
|
|
336
|
-
if (!nearest)
|
|
337
|
-
return;
|
|
338
|
-
const decided = overridesRef.current.some((override) => override.id === nearest.id && override.start === nearest.start);
|
|
339
|
-
if (decided)
|
|
340
|
-
setOverride(nearest, null);
|
|
341
|
-
else if (nearest.state === 'suggested')
|
|
342
|
-
setOverride(nearest, 'armed');
|
|
343
|
-
else
|
|
344
|
-
setOverride(nearest, 'dropped');
|
|
345
|
-
};
|
|
346
|
-
/**
|
|
347
|
-
* One edit of the draft, by the operator (`typed`) or not. The characters
|
|
348
|
-
* it inserts are remembered as typed or not, and the draft's other spans
|
|
349
|
-
* and Alt+W decisions move with it.
|
|
350
|
-
*/
|
|
351
|
-
const editBuffer = useCallback((nextValue, nextCursor = nextValue.length, origin = 'typed') => {
|
|
352
|
-
verticalColumnRef.current = null;
|
|
353
|
-
historyDraftRef.current = null;
|
|
354
|
-
setHistorySearch(null);
|
|
355
|
-
setHistoryIndex(-1);
|
|
356
|
-
const edit = diffEdit(valueRef.current, nextValue, cursorRef.current);
|
|
357
|
-
const spans = applyEdit(spansRef.current, edit, origin);
|
|
358
|
-
const overrides = shiftOverrides(overridesRef.current, edit);
|
|
359
|
-
setBuffer(nextValue, nextCursor, origin, spans);
|
|
360
|
-
overridesRef.current = overrides;
|
|
361
|
-
}, [setBuffer, setHistoryIndex, setHistorySearch]);
|
|
362
|
-
const reset = useCallback(() => {
|
|
363
|
-
verticalColumnRef.current = null;
|
|
364
|
-
historyDraftRef.current = null;
|
|
365
|
-
setHistorySearch(null);
|
|
366
|
-
setBuffer('', 0, 'typed');
|
|
367
|
-
setHistoryIndex(-1);
|
|
368
|
-
setSelectedIndex(0);
|
|
369
|
-
setPastes([]);
|
|
370
|
-
setAttachments([]);
|
|
371
|
-
setEditPreviousArmed(false);
|
|
372
|
-
}, [setBuffer, setHistoryIndex, setHistorySearch, setSelectedIndex]);
|
|
373
|
-
useEffect(() => {
|
|
374
|
-
if (!draftToRestore || restoredTokenRef.current === draftToRestore.token)
|
|
375
|
-
return;
|
|
376
|
-
restoredTokenRef.current = draftToRestore.token;
|
|
377
|
-
setBuffer(draftToRestore.text, draftToRestore.text.length, 'restored');
|
|
378
|
-
setHistoryIndex(-1);
|
|
379
|
-
setSelectedIndex(0);
|
|
380
|
-
verticalColumnRef.current = null;
|
|
381
|
-
historyDraftRef.current = null;
|
|
382
|
-
setHistorySearch(null);
|
|
383
|
-
setPastes([]);
|
|
384
|
-
setAttachments(draftToRestore.attachments ? [...draftToRestore.attachments] : []);
|
|
385
|
-
setEditPreviousArmed(false);
|
|
386
|
-
onDraftRestored?.(draftToRestore.token);
|
|
387
|
-
}, [
|
|
388
|
-
draftToRestore,
|
|
389
|
-
onDraftRestored,
|
|
390
|
-
setBuffer,
|
|
391
|
-
setHistoryIndex,
|
|
392
|
-
setHistorySearch,
|
|
393
|
-
setSelectedIndex,
|
|
394
|
-
]);
|
|
395
|
-
// Bracketed paste is one event even when the terminal splits its bytes.
|
|
396
|
-
// Its newlines are content, never Enter/shortcut events.
|
|
397
|
-
usePaste((text) => {
|
|
398
|
-
if (disabled || hidden)
|
|
399
|
-
return;
|
|
400
|
-
const normalized = text.replace(/\r\n?/g, '\n');
|
|
401
|
-
if (normalized.length === 0)
|
|
402
|
-
return;
|
|
403
|
-
if (normalized.includes('\n') || normalized.length > PASTE_THRESHOLD) {
|
|
404
|
-
setPastes((previous) => [...previous, normalized]);
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
const position = cursorRef.current;
|
|
408
|
-
setSelectedIndex(0);
|
|
409
|
-
editBuffer(valueRef.current.slice(0, position) + normalized + valueRef.current.slice(position), position + normalized.length, 'pasted');
|
|
410
|
-
}, { isActive: !disabled && !hidden });
|
|
411
|
-
useInput((input, key) => {
|
|
412
|
-
// Hidden means the screen belongs to something else, so a keypress
|
|
413
|
-
// aimed at that must not also land here.
|
|
414
|
-
if (disabled || hidden)
|
|
415
|
-
return;
|
|
416
|
-
const liveCommandSuggestions = matchSlashCommands(valueRef.current, userCommands, builtins);
|
|
417
|
-
const liveMention = activeFileMention(valueRef.current, cursorRef.current);
|
|
418
|
-
const liveFileSuggestions = liveMention
|
|
419
|
-
? matchMentionableFiles(liveMention.query, mentionCandidates)
|
|
420
|
-
: [];
|
|
421
|
-
const liveSuggestionKind = liveCommandSuggestions.length > 0
|
|
422
|
-
? 'command'
|
|
423
|
-
: liveFileSuggestions.length > 0
|
|
424
|
-
? 'file'
|
|
425
|
-
: null;
|
|
426
|
-
const liveSuggestionCount = liveSuggestionKind === 'command'
|
|
427
|
-
? liveCommandSuggestions.length
|
|
428
|
-
: liveFileSuggestions.length;
|
|
429
|
-
const hasLiveSuggestions = liveSuggestionKind !== null;
|
|
430
|
-
const liveSelection = Math.min(selectedRef.current, Math.max(0, liveSuggestionCount - 1));
|
|
431
|
-
const acceptSuggestion = () => {
|
|
432
|
-
if (liveSuggestionKind === 'command') {
|
|
433
|
-
const completed = `/${liveCommandSuggestions[liveSelection]?.name ?? ''} `;
|
|
434
|
-
editBuffer(completed, completed.length, 'completion');
|
|
435
|
-
setSelectedIndex(0);
|
|
436
|
-
return true;
|
|
437
|
-
}
|
|
438
|
-
if (liveSuggestionKind === 'file' && liveMention) {
|
|
439
|
-
const path = liveFileSuggestions[liveSelection];
|
|
440
|
-
if (!path)
|
|
441
|
-
return false;
|
|
442
|
-
const replacement = `@${path} `;
|
|
443
|
-
editBuffer(valueRef.current.slice(0, liveMention.start) +
|
|
444
|
-
replacement +
|
|
445
|
-
valueRef.current.slice(liveMention.end), liveMention.start + replacement.length, 'completion');
|
|
446
|
-
setSelectedIndex(0);
|
|
447
|
-
return true;
|
|
448
|
-
}
|
|
449
|
-
return false;
|
|
450
|
-
};
|
|
451
|
-
if (!hasLiveSuggestions &&
|
|
452
|
-
onStepReasoningEffort &&
|
|
453
|
-
((key.shift && key.downArrow) || (key.meta && input === ','))) {
|
|
454
|
-
onStepReasoningEffort('lower');
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
if (!hasLiveSuggestions &&
|
|
458
|
-
onStepReasoningEffort &&
|
|
459
|
-
((key.shift && key.upArrow) || (key.meta && input === '.'))) {
|
|
460
|
-
onStepReasoningEffort('raise');
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
if (!key.escape && editPreviousArmed)
|
|
464
|
-
setEditPreviousArmed(false);
|
|
465
|
-
const submit = (mode) => {
|
|
466
|
-
const message = [valueRef.current, ...pastes]
|
|
467
|
-
.map((s) => s.trim())
|
|
468
|
-
.filter(Boolean)
|
|
469
|
-
.join('\n\n');
|
|
470
|
-
if (message.length === 0 && attachments.length === 0)
|
|
471
|
-
return false;
|
|
472
|
-
const submittedAttachments = attachments.length > 0 ? attachments : undefined;
|
|
473
|
-
// Read again from what the last key left, not from the last render.
|
|
474
|
-
const detection = detect(valueRef.current);
|
|
475
|
-
// The message is the draft trimmed: offsets move by what the trim took.
|
|
476
|
-
const lead = valueRef.current.length - valueRef.current.trimStart().length;
|
|
477
|
-
const armed = detection.hits
|
|
478
|
-
.filter((hit) => hit.state === 'armed')
|
|
479
|
-
.map((hit) => ({ id: hit.id, start: hit.start - lead, end: hit.end - lead }));
|
|
480
|
-
onSubmit(message, submittedAttachments, mode, {
|
|
481
|
-
source: 'composer',
|
|
482
|
-
triggers: armed,
|
|
483
|
-
onlyTriggers: armed.length > 0 && detection.onlyTriggers && pastes.length === 0 && attachments.length === 0,
|
|
484
|
-
});
|
|
485
|
-
reset();
|
|
486
|
-
return true;
|
|
487
|
-
};
|
|
488
|
-
if ((key.return && (key.shift || key.meta)) || input === '\n') {
|
|
489
|
-
const position = cursorRef.current;
|
|
490
|
-
editBuffer(valueRef.current.slice(0, position) + '\n' + valueRef.current.slice(position), position + 1);
|
|
491
|
-
return;
|
|
492
|
-
}
|
|
493
|
-
if (key.ctrl && (input === 'r' || input === 's')) {
|
|
494
|
-
verticalColumnRef.current = null;
|
|
495
|
-
const browsedHistoryDraft = historyDraftRef.current;
|
|
496
|
-
historyDraftRef.current = null;
|
|
497
|
-
setHistoryIndex(-1);
|
|
498
|
-
let search = historySearchRef.current;
|
|
499
|
-
if (!search) {
|
|
500
|
-
const query = valueRef.current;
|
|
501
|
-
const normalizedQuery = query.toLowerCase();
|
|
502
|
-
search = {
|
|
503
|
-
draft: browsedHistoryDraft ?? {
|
|
504
|
-
value: query,
|
|
505
|
-
cursor: cursorRef.current,
|
|
506
|
-
spans: spansRef.current,
|
|
507
|
-
},
|
|
508
|
-
query,
|
|
509
|
-
matches: [...history]
|
|
510
|
-
.reverse()
|
|
511
|
-
.filter((entry) => entry.toLowerCase().includes(normalizedQuery)),
|
|
512
|
-
position: -1,
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
const position = input === 'r'
|
|
516
|
-
? Math.min(search.position + 1, search.matches.length - 1)
|
|
517
|
-
: Math.max(search.position - 1, -1);
|
|
518
|
-
const next = { ...search, position };
|
|
519
|
-
setHistorySearch(next);
|
|
520
|
-
if (position < 0)
|
|
521
|
-
setBuffer(next.draft.value, next.draft.cursor, 'typed', next.draft.spans);
|
|
522
|
-
else
|
|
523
|
-
setBuffer(next.matches[position] ?? next.draft.value, undefined, 'recalled');
|
|
524
|
-
return;
|
|
525
|
-
}
|
|
526
|
-
if (key.return) {
|
|
527
|
-
if (liveSuggestionKind === 'command') {
|
|
528
|
-
// Run the highlighted command.
|
|
529
|
-
onSubmit(`/${liveCommandSuggestions[liveSelection]?.name ?? ''}`, undefined, 'submit', {
|
|
530
|
-
source: 'composer-dropdown',
|
|
531
|
-
});
|
|
532
|
-
reset();
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
if (acceptSuggestion())
|
|
536
|
-
return;
|
|
537
|
-
submit('submit');
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
if (key.tab && key.shift) {
|
|
541
|
-
// Shift+Tab cycles the permission mode. Before the plain-Tab
|
|
542
|
-
// branch below, which would otherwise queue the draft.
|
|
543
|
-
onCycleMode?.();
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
if (key.tab) {
|
|
547
|
-
if (acceptSuggestion())
|
|
548
|
-
return;
|
|
549
|
-
submit('queue');
|
|
550
|
-
return;
|
|
551
|
-
}
|
|
552
|
-
if (key.escape) {
|
|
553
|
-
// A running turn owns Esc. App aborts it on this same keypress,
|
|
554
|
-
// and clearing the draft too would punish the operator for
|
|
555
|
-
// following the hint the status bar is showing them.
|
|
556
|
-
if (escapeInterrupts)
|
|
557
|
-
return;
|
|
558
|
-
const activeSearch = historySearchRef.current;
|
|
559
|
-
if (activeSearch) {
|
|
560
|
-
setBuffer(activeSearch.draft.value, activeSearch.draft.cursor, 'typed', activeSearch.draft.spans);
|
|
561
|
-
setHistorySearch(null);
|
|
562
|
-
return;
|
|
563
|
-
}
|
|
564
|
-
const empty = valueRef.current.length === 0 && pastes.length === 0 && attachments.length === 0;
|
|
565
|
-
if (empty && onEditPrevious) {
|
|
566
|
-
if (editPreviousArmed) {
|
|
567
|
-
setEditPreviousArmed(false);
|
|
568
|
-
onEditPrevious();
|
|
569
|
-
}
|
|
570
|
-
else
|
|
571
|
-
setEditPreviousArmed(true);
|
|
572
|
-
return;
|
|
573
|
-
}
|
|
574
|
-
reset();
|
|
575
|
-
return;
|
|
576
|
-
}
|
|
577
|
-
if (key.backspace && (key.meta || key.ctrl)) {
|
|
578
|
-
const source = valueRef.current;
|
|
579
|
-
const position = cursorRef.current;
|
|
580
|
-
const start = previousWordBoundary(source, position);
|
|
581
|
-
if (start < position)
|
|
582
|
-
killBufferRef.current = source.slice(start, position);
|
|
583
|
-
const result = deletePreviousWordAt(valueRef.current, cursorRef.current);
|
|
584
|
-
editBuffer(result.value, result.cursor);
|
|
585
|
-
return;
|
|
586
|
-
}
|
|
587
|
-
if (key.backspace) {
|
|
588
|
-
// Backspace on an empty line removes the last durable attachment first,
|
|
589
|
-
// then pasted text.
|
|
590
|
-
if (valueRef.current.length === 0 && attachments.length > 0) {
|
|
591
|
-
setAttachments((p) => p.slice(0, -1));
|
|
592
|
-
return;
|
|
593
|
-
}
|
|
594
|
-
if (valueRef.current.length === 0 && pastes.length > 0) {
|
|
595
|
-
setPastes((p) => p.slice(0, -1));
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
const position = cursorRef.current;
|
|
599
|
-
// Right after an armed keyword, Backspace drops the trigger first
|
|
600
|
-
// and deletes nothing; the next Backspace deletes as usual.
|
|
601
|
-
const keyword = detect(valueRef.current).hits.find((hit) => hit.state === 'armed' && hit.id === 'hypermode' && hit.end === position);
|
|
602
|
-
if (keyword && keyword.end - keyword.start === 'hypermode'.length) {
|
|
603
|
-
setOverride(keyword, 'dropped');
|
|
604
|
-
return;
|
|
605
|
-
}
|
|
606
|
-
const previous = previousGraphemeBoundary(valueRef.current, position);
|
|
607
|
-
editBuffer(valueRef.current.slice(0, previous) + valueRef.current.slice(position), previous);
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
if (key.delete || (key.ctrl && input === 'd')) {
|
|
611
|
-
const position = cursorRef.current;
|
|
612
|
-
const next = nextGraphemeBoundary(valueRef.current, position);
|
|
613
|
-
editBuffer(valueRef.current.slice(0, position) + valueRef.current.slice(next), position);
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
if ((key.leftArrow && (key.meta || key.ctrl)) || (key.meta && input === 'b')) {
|
|
617
|
-
verticalColumnRef.current = null;
|
|
618
|
-
const previous = previousWordBoundary(valueRef.current, cursorRef.current);
|
|
619
|
-
cursorRef.current = previous;
|
|
620
|
-
setCursorState(previous);
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
if ((key.rightArrow && (key.meta || key.ctrl)) || (key.meta && input === 'f')) {
|
|
624
|
-
verticalColumnRef.current = null;
|
|
625
|
-
const next = nextWordBoundary(valueRef.current, cursorRef.current);
|
|
626
|
-
cursorRef.current = next;
|
|
627
|
-
setCursorState(next);
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
if (key.leftArrow || (key.ctrl && input === 'b')) {
|
|
631
|
-
verticalColumnRef.current = null;
|
|
632
|
-
const previous = previousGraphemeBoundary(valueRef.current, cursorRef.current);
|
|
633
|
-
cursorRef.current = previous;
|
|
634
|
-
setCursorState(previous);
|
|
635
|
-
return;
|
|
636
|
-
}
|
|
637
|
-
if (key.rightArrow || (key.ctrl && input === 'f')) {
|
|
638
|
-
verticalColumnRef.current = null;
|
|
639
|
-
const next = nextGraphemeBoundary(valueRef.current, cursorRef.current);
|
|
640
|
-
cursorRef.current = next;
|
|
641
|
-
setCursorState(next);
|
|
642
|
-
return;
|
|
643
|
-
}
|
|
644
|
-
if (hasLiveSuggestions && (key.home || key.end || key.pageUp || key.pageDown)) {
|
|
645
|
-
if (key.home)
|
|
646
|
-
setSelectedIndex(0);
|
|
647
|
-
else if (key.end)
|
|
648
|
-
setSelectedIndex(liveSuggestionCount - 1);
|
|
649
|
-
else if (key.pageUp)
|
|
650
|
-
setSelectedIndex((index) => Math.max(0, index - suggestionWindow));
|
|
651
|
-
else
|
|
652
|
-
setSelectedIndex((index) => Math.min(liveSuggestionCount - 1, index + suggestionWindow));
|
|
653
|
-
return;
|
|
654
|
-
}
|
|
655
|
-
if (key.home || (key.ctrl && input === 'a')) {
|
|
656
|
-
verticalColumnRef.current = null;
|
|
657
|
-
const start = lineStart(valueRef.current, cursorRef.current);
|
|
658
|
-
cursorRef.current = start;
|
|
659
|
-
setCursorState(start);
|
|
660
|
-
return;
|
|
661
|
-
}
|
|
662
|
-
if (key.end || (key.ctrl && input === 'e')) {
|
|
663
|
-
verticalColumnRef.current = null;
|
|
664
|
-
const end = lineEnd(valueRef.current, cursorRef.current);
|
|
665
|
-
cursorRef.current = end;
|
|
666
|
-
setCursorState(end);
|
|
667
|
-
return;
|
|
668
|
-
}
|
|
669
|
-
if (key.upArrow || (key.ctrl && input === 'p')) {
|
|
670
|
-
if (hasLiveSuggestions) {
|
|
671
|
-
setSelectedIndex((i) => Math.max(0, i - 1));
|
|
672
|
-
return;
|
|
673
|
-
}
|
|
674
|
-
const vertical = verticalCursor(valueRef.current, cursorRef.current, -1, verticalColumnRef.current ?? undefined);
|
|
675
|
-
if (vertical) {
|
|
676
|
-
verticalColumnRef.current = vertical.column;
|
|
677
|
-
cursorRef.current = vertical.cursor;
|
|
678
|
-
setCursorState(vertical.cursor);
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
verticalColumnRef.current = null;
|
|
682
|
-
if (history.length === 0)
|
|
683
|
-
return;
|
|
684
|
-
if (historyIndexRef.current < 0) {
|
|
685
|
-
historyDraftRef.current = {
|
|
686
|
-
value: valueRef.current,
|
|
687
|
-
cursor: cursorRef.current,
|
|
688
|
-
spans: spansRef.current,
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
const next = Math.min(historyIndexRef.current + 1, history.length - 1);
|
|
692
|
-
setHistoryIndex(next);
|
|
693
|
-
setBuffer(history[history.length - 1 - next] ?? '', undefined, 'recalled');
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
if (key.downArrow || (key.ctrl && input === 'n')) {
|
|
697
|
-
if (hasLiveSuggestions) {
|
|
698
|
-
setSelectedIndex((i) => Math.min(liveSuggestionCount - 1, i + 1));
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
|
-
const vertical = verticalCursor(valueRef.current, cursorRef.current, 1, verticalColumnRef.current ?? undefined);
|
|
702
|
-
if (vertical) {
|
|
703
|
-
verticalColumnRef.current = vertical.column;
|
|
704
|
-
cursorRef.current = vertical.cursor;
|
|
705
|
-
setCursorState(vertical.cursor);
|
|
706
|
-
return;
|
|
707
|
-
}
|
|
708
|
-
verticalColumnRef.current = null;
|
|
709
|
-
if (historyIndexRef.current < 0) {
|
|
710
|
-
if (valueRef.current.length === 0 && pastes.length === 0 && attachments.length === 0) {
|
|
711
|
-
onOpenAgentPanel?.();
|
|
712
|
-
}
|
|
713
|
-
return;
|
|
714
|
-
}
|
|
715
|
-
if (historyIndexRef.current === 0) {
|
|
716
|
-
const draft = historyDraftRef.current;
|
|
717
|
-
historyDraftRef.current = null;
|
|
718
|
-
setHistoryIndex(-1);
|
|
719
|
-
setBuffer(draft?.value ?? '', draft?.cursor ?? 0, 'typed', draft?.spans ?? []);
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
const next = historyIndexRef.current - 1;
|
|
723
|
-
setHistoryIndex(next);
|
|
724
|
-
setBuffer(history[history.length - 1 - next] ?? '', undefined, 'recalled');
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
if (key.ctrl && input === 'g') {
|
|
728
|
-
if (!onExternalEdit) {
|
|
729
|
-
onNotice?.('External editor support is unavailable in this terminal.');
|
|
730
|
-
return;
|
|
731
|
-
}
|
|
732
|
-
const seed = [valueRef.current, ...pastes]
|
|
733
|
-
.map((part) => part.trim())
|
|
734
|
-
.filter(Boolean)
|
|
735
|
-
.join('\n\n');
|
|
736
|
-
void onExternalEdit(seed)
|
|
737
|
-
.then((edited) => {
|
|
738
|
-
const cleaned = edited.trimEnd();
|
|
739
|
-
setPastes([]);
|
|
740
|
-
setHistoryIndex(-1);
|
|
741
|
-
setHistorySearch(null);
|
|
742
|
-
setSelectedIndex(0);
|
|
743
|
-
historyDraftRef.current = null;
|
|
744
|
-
verticalColumnRef.current = null;
|
|
745
|
-
setBuffer(cleaned, cleaned.length, 'editor');
|
|
746
|
-
})
|
|
747
|
-
.catch((error) => {
|
|
748
|
-
onNotice?.(`Cannot open external editor: ${error instanceof Error ? error.message : String(error)}`);
|
|
749
|
-
});
|
|
750
|
-
return;
|
|
751
|
-
}
|
|
752
|
-
// Ctrl+V / Alt+V: pull an image off the clipboard and hold it as an attachment.
|
|
753
|
-
//
|
|
754
|
-
// Every outcome says something. The status bar advertises this key, so
|
|
755
|
-
// a press that produces no chip and no words is indistinguishable from
|
|
756
|
-
// a key that was never wired up — and the operator's next move differs
|
|
757
|
-
// per reason: copy an image, install a tool, or stop pressing it.
|
|
758
|
-
if ((key.ctrl || key.meta) && input === 'v') {
|
|
759
|
-
const read = readClipboardImage();
|
|
760
|
-
if (read.kind === 'image') {
|
|
761
|
-
setAttachments((p) => [...p, read.image]);
|
|
762
|
-
}
|
|
763
|
-
else if (read.kind === 'empty') {
|
|
764
|
-
onNotice?.('No image on the clipboard. Copy one, then press Ctrl+V.');
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
onNotice?.(`Cannot read images from the clipboard here — ${read.detail}.`);
|
|
768
|
-
}
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
if (key.ctrl && input === 'w') {
|
|
772
|
-
const source = valueRef.current;
|
|
773
|
-
const position = cursorRef.current;
|
|
774
|
-
const start = previousWordBoundary(source, position);
|
|
775
|
-
if (start < position)
|
|
776
|
-
killBufferRef.current = source.slice(start, position);
|
|
777
|
-
const result = deletePreviousWordAt(valueRef.current, cursorRef.current);
|
|
778
|
-
editBuffer(result.value, result.cursor);
|
|
779
|
-
return;
|
|
780
|
-
}
|
|
781
|
-
if (key.ctrl && input === 'u') {
|
|
782
|
-
const position = cursorRef.current;
|
|
783
|
-
const start = lineStart(valueRef.current, position);
|
|
784
|
-
if (start < position)
|
|
785
|
-
killBufferRef.current = valueRef.current.slice(start, position);
|
|
786
|
-
editBuffer(valueRef.current.slice(0, start) + valueRef.current.slice(position), start);
|
|
787
|
-
return;
|
|
788
|
-
}
|
|
789
|
-
if (key.ctrl && input === 'k') {
|
|
790
|
-
const position = cursorRef.current;
|
|
791
|
-
const end = lineEnd(valueRef.current, position);
|
|
792
|
-
if (position < end)
|
|
793
|
-
killBufferRef.current = valueRef.current.slice(position, end);
|
|
794
|
-
editBuffer(valueRef.current.slice(0, position) + valueRef.current.slice(end), position);
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
if (key.meta && input === 'd') {
|
|
798
|
-
const source = valueRef.current;
|
|
799
|
-
const position = cursorRef.current;
|
|
800
|
-
const end = nextWordBoundary(source, position);
|
|
801
|
-
if (position < end)
|
|
802
|
-
killBufferRef.current = source.slice(position, end);
|
|
803
|
-
const result = deleteNextWordAt(valueRef.current, cursorRef.current);
|
|
804
|
-
editBuffer(result.value, result.cursor);
|
|
805
|
-
return;
|
|
806
|
-
}
|
|
807
|
-
if (key.ctrl && input === 'y') {
|
|
808
|
-
const killed = killBufferRef.current;
|
|
809
|
-
if (killed.length === 0)
|
|
810
|
-
return;
|
|
811
|
-
const position = cursorRef.current;
|
|
812
|
-
editBuffer(valueRef.current.slice(0, position) + killed + valueRef.current.slice(position), position + killed.length, 'yank');
|
|
813
|
-
return;
|
|
814
|
-
}
|
|
815
|
-
// Alt+W: drop the trigger nearest the cursor, or bring one back, or
|
|
816
|
-
// arm one the row only suggested.
|
|
817
|
-
if (key.meta && input === 'w') {
|
|
818
|
-
toggleNearestTrigger();
|
|
819
|
-
return;
|
|
820
|
-
}
|
|
821
|
-
if (key.ctrl || key.meta)
|
|
822
|
-
return;
|
|
823
|
-
if (input.length === 0)
|
|
824
|
-
return;
|
|
825
|
-
// A multi-line chunk arriving in one keypress is a paste — hold it as
|
|
826
|
-
// an attachment chip instead of flooding the input. A long chunk on
|
|
827
|
-
// ONE line is not: it is what typing looks like when keystrokes queue
|
|
828
|
-
// up behind a busy render and arrive in a single read. Held as a chip
|
|
829
|
-
// it was joined back to the typed text with a paragraph break, which
|
|
830
|
-
// split the word it landed in two ("subag" / "ents") in the message
|
|
831
|
-
// the model received. A real paste reaches `usePaste` above, where a
|
|
832
|
-
// long one is still a chip.
|
|
833
|
-
if (input.includes('\n')) {
|
|
834
|
-
setPastes((p) => [...p, input]);
|
|
835
|
-
return;
|
|
836
|
-
}
|
|
837
|
-
setSelectedIndex(0);
|
|
838
|
-
const position = cursorRef.current;
|
|
839
|
-
// One grapheme is a key. More in one chunk is queued keys or a paste
|
|
840
|
-
// without bracketed-paste markers; nothing here can tell which, so it
|
|
841
|
-
// does not count as typed.
|
|
842
|
-
let graphemes = 0;
|
|
843
|
-
for (const _ of graphemeSegmenter.segment(input))
|
|
844
|
-
if (++graphemes > 1)
|
|
845
|
-
break;
|
|
846
|
-
editBuffer(valueRef.current.slice(0, position) + input + valueRef.current.slice(position), position + input.length, graphemes > 1 ? 'burst' : 'typed');
|
|
847
|
-
},
|
|
848
|
-
// A text prompt hides the composer without disabling it. Keep this
|
|
849
|
-
// listener attached across that transition: Ink installs it in an
|
|
850
|
-
// effect after painting, so reattaching on unhide can lose the first key.
|
|
851
|
-
// The guard above ignores keys while another prompt owns the screen.
|
|
852
|
-
{ isActive: !disabled });
|
|
853
|
-
// After every hook, so the component keeps its state while it is off screen.
|
|
854
|
-
// This is the whole fix: React preserves a mounted component's state, and
|
|
855
|
-
// preserving it is what an unmounting ternary could not do.
|
|
856
|
-
if (hidden)
|
|
857
|
-
return null;
|
|
858
|
-
const modelIntent = !attachments.length && !pastes.length ? parseModelSelectionIntent(value) : undefined;
|
|
859
|
-
const effortIntent = !attachments.length && !pastes.length
|
|
860
|
-
? /^\/effort\s+([a-z]+)$/.exec(value.trim())?.[1]
|
|
861
|
-
: undefined;
|
|
862
|
-
const effortAvailable = effortIntent === 'default' ||
|
|
863
|
-
(effortIntent !== undefined && reasoningEffortLevels?.includes(effortIntent));
|
|
864
|
-
void triggerVersion;
|
|
865
|
-
const detection = !modelIntent && !effortIntent && !disabled ? detect(value) : EMPTY_DETECTION;
|
|
866
|
-
const triggerRow = triggers
|
|
867
|
-
? tagRow(detection, {
|
|
868
|
-
columns: Math.max(1, (terminal.columns ?? 80) - 4),
|
|
869
|
-
turnActive,
|
|
870
|
-
highestEffort: triggers.highestEffort,
|
|
871
|
-
hypermodeEffort: triggers.hypermodeEffort,
|
|
872
|
-
standaloneAllowed: pastes.length === 0 && attachments.length === 0,
|
|
873
|
-
})
|
|
874
|
-
: null;
|
|
875
|
-
const styledSpans = detection.hits.flatMap((hit) => hit.state === 'armed' || hit.state === 'unavailable'
|
|
876
|
-
? [{ start: hit.start, end: hit.end, style: hit.state }]
|
|
877
|
-
: []);
|
|
878
|
-
const beforeSegments = displaySegments(value, displayValue.start, cursor, styledSpans);
|
|
879
|
-
const afterSegments = displaySegments(value, cursor, displayValue.end, styledSpans);
|
|
880
|
-
const promptGlyph = disabled ? '…' : '›';
|
|
881
|
-
const showPlaceholder = !disabled && value.length === 0 && !editPreviousArmed;
|
|
882
|
-
const historySearchQuery = historySearch
|
|
883
|
-
? composerDisplayValue(historySearch.query, historySearch.query.length)
|
|
884
|
-
: null;
|
|
885
|
-
return (_jsxs(Box, { flexDirection: "column", children: [effortIntent ? (_jsx(Box, { paddingX: 1, children: _jsxs(Text, { color: effortAvailable ? theme.accent.tool : theme.status.warn, children: ["Effort: ", effortIntent, " \u00B7 ", effortAvailable ? 'requested' : 'unavailable for this model'] }) })) : null, modelIntent ? (_jsx(Box, { paddingX: 1, children: _jsxs(Text, { color: theme.accent.tool, children: ["Model: ", modelIntent.query, " \u00B7 requested"] }) })) : null, triggerRow ? (_jsx(Box, { paddingX: 1, children: _jsx(Text, { color: detection.hits.some((hit) => hit.state === 'armed')
|
|
886
|
-
? theme.accent.trigger
|
|
887
|
-
: theme.text.muted, wrap: "truncate-end", children: triggerRow }) })) : null, pastes.length > 0 || attachments.length > 0 ? (_jsxs(Box, { flexDirection: "column", paddingX: 1, paddingBottom: 1, children: [attachments.map((attachment, i) => (_jsxs(Text, { color: theme.accent.tool, children: ["\u2398 ", attachmentLabel(attachment, i)] }, `attachment-${i}`))), pastes.map((p, i) => (_jsxs(Text, { color: theme.text.secondary, children: ["\u2398 Pasted text #", i + 1, " \u00B7 ", Array.from(p).length, " chars"] }, `paste-${i}`)))] })) : null, _jsxs(Box, { paddingX: 1, children: [_jsx(Box, { width: 2, flexShrink: 0, children: _jsx(Text, { color: disabled ? theme.text.muted : theme.accent.user, bold: true, children: promptGlyph }) }), _jsx(Box, { flexGrow: 1, children: showPlaceholder ? (_jsx(Text, { color: theme.text.muted, children: "Type a message\u2026 (/help for commands)" })) : editPreviousArmed ? (_jsx(Text, { color: theme.text.muted, children: "Press Esc again to edit a previous prompt" })) : (_jsxs(Text, { color: disabled ? theme.text.muted : theme.text.primary, wrap: "wrap", children: [displayValue.leadingEllipsis ? '… ' : '', renderSegments(beforeSegments), disabled ? null : _jsx(Text, { color: theme.border.focus, children: "\u258F" }), renderSegments(afterSegments), displayValue.trailingEllipsis ? ' …' : ''] })) })] }), historySearch && historySearchQuery ? (_jsx(Box, { paddingX: 1, paddingTop: 1, children: _jsxs(Text, { color: theme.text.muted, children: ["history \u201C", historySearchQuery.leadingEllipsis ? '… ' : '', historySearchQuery.before, "\u201D \u00B7", ' ', historySearch.position < 0
|
|
888
|
-
? `draft · ${historySearch.matches.length} match${historySearch.matches.length === 1 ? '' : 'es'}`
|
|
889
|
-
: `${historySearch.position + 1}/${historySearch.matches.length}`, ' ', "\u00B7 Ctrl+R older \u00B7 Ctrl+S newer \u00B7 Esc restore"] }) })) : null, suggestionKind === 'command' ? (_jsxs(Box, { flexDirection: "column", paddingX: 1, paddingTop: 1, width: "100%", children: [visibleCommandSuggestions.map((cmd, i) => {
|
|
890
|
-
const absoluteIndex = suggestionStart + i;
|
|
891
|
-
return (_jsxs(Box, { width: "100%", flexDirection: "row", children: [_jsx(Box, { width: commandColumnWidth, flexShrink: 0, children: _jsxs(Text, { color: absoluteIndex === selIdx ? theme.accent.user : theme.text.secondary, bold: absoluteIndex === selIdx, children: [absoluteIndex === selIdx ? '› ' : ' ', "/", cmd.name] }) }), _jsx(Box, { flexGrow: 1, minWidth: 0, children: _jsx(Text, { color: theme.text.muted, wrap: "wrap", children: cmd.description }) })] }, cmd.name));
|
|
892
|
-
}), _jsxs(Text, { color: theme.text.muted, children: [selIdx + 1, "/", commandSuggestions.length, " \u00B7 \u2191\u2193 navigate \u00B7 PgUp/PgDn jump \u00B7 Enter run \u00B7 Tab complete"] })] })) : suggestionKind === 'file' ? (_jsxs(Box, { flexDirection: "column", paddingX: 1, paddingTop: 1, width: "100%", children: [visibleFileSuggestions.map((path, i) => {
|
|
893
|
-
const absoluteIndex = suggestionStart + i;
|
|
894
|
-
return (_jsxs(Text, { color: absoluteIndex === selIdx ? theme.accent.user : theme.text.secondary, bold: absoluteIndex === selIdx, children: [absoluteIndex === selIdx ? '› ' : ' ', "@", path] }, path));
|
|
895
|
-
}), _jsxs(Text, { color: theme.text.muted, children: [selIdx + 1, "/", fileSuggestions.length, " \u00B7 \u2191\u2193 navigate \u00B7 PgUp/PgDn jump \u00B7 Enter/Tab insert"] })] })) : null] }));
|
|
896
|
-
}
|
|
897
|
-
function attachmentLabel(attachment, index) {
|
|
898
|
-
if (attachment.type === 'stored') {
|
|
899
|
-
const kind = attachment.kind === 'image' ? 'Image' : 'Document';
|
|
900
|
-
return `${kind} #${index + 1}${attachment.name ? ` — ${attachment.name}` : ''} (stored)`;
|
|
901
|
-
}
|
|
902
|
-
const size = `${Math.round((attachment.data.length * 3) / 4 / 1024)} KB`;
|
|
903
|
-
if (attachment.type === 'document') {
|
|
904
|
-
return `Document #${index + 1}${attachment.name ? ` — ${attachment.name}` : ''} (${size})`;
|
|
905
|
-
}
|
|
906
|
-
return `Image #${index + 1} (${size})`;
|
|
907
|
-
}
|
|
908
|
-
//# sourceMappingURL=Composer.js.map
|