@namzu/cli 35.0.0 → 36.1.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 +764 -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-5CWS2GLJ.js +13448 -0
- package/dist/chunks/acp-5CWS2GLJ.js.map +6 -0
- package/dist/chunks/activity-command-HK7YJTXV.js +262 -0
- package/dist/chunks/activity-command-HK7YJTXV.js.map +6 -0
- package/dist/chunks/add-ULH5DUNX.js +712 -0
- package/dist/chunks/add-ULH5DUNX.js.map +6 -0
- package/dist/chunks/agent-UEK2U3RE.js +87 -0
- package/dist/chunks/agent-UEK2U3RE.js.map +6 -0
- package/dist/chunks/agent-session-V7JRTODS.js +46 -0
- package/dist/chunks/agent-session-V7JRTODS.js.map +6 -0
- package/dist/chunks/archive-C4A3HPLF.js +84 -0
- package/dist/chunks/archive-C4A3HPLF.js.map +6 -0
- package/dist/chunks/bin-main-EEJHRDIC.js +126 -0
- package/dist/chunks/bin-main-EEJHRDIC.js.map +6 -0
- package/dist/chunks/browser-CRX4HM4C.js +31 -0
- package/dist/chunks/browser-CRX4HM4C.js.map +6 -0
- package/dist/chunks/chat-FVBATC4E.js +101 -0
- package/dist/chunks/chat-FVBATC4E.js.map +6 -0
- package/dist/chunks/chunk-2A37JQKY.js +1355 -0
- package/dist/chunks/chunk-2A37JQKY.js.map +6 -0
- package/dist/chunks/chunk-2NJ2XUXJ.js +283 -0
- package/dist/chunks/chunk-2NJ2XUXJ.js.map +6 -0
- package/dist/chunks/chunk-4HAE7PYX.js +74 -0
- package/dist/chunks/chunk-4HAE7PYX.js.map +6 -0
- package/dist/chunks/chunk-5GRV6P5C.js +69 -0
- package/dist/chunks/chunk-5GRV6P5C.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-62I7HLAP.js +1142 -0
- package/dist/chunks/chunk-62I7HLAP.js.map +6 -0
- package/dist/chunks/chunk-63CGV3XY.js +161 -0
- package/dist/chunks/chunk-63CGV3XY.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-6YG7D7U4.js +159 -0
- package/dist/chunks/chunk-6YG7D7U4.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-7WJOQ6EA.js +106 -0
- package/dist/chunks/chunk-7WJOQ6EA.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-A5DWGNGR.js +73 -0
- package/dist/chunks/chunk-A5DWGNGR.js.map +6 -0
- package/dist/chunks/chunk-A5UXODFL.js +76 -0
- package/dist/chunks/chunk-A5UXODFL.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-AIY4PCDR.js +164 -0
- package/dist/chunks/chunk-AIY4PCDR.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-AN7FO7NS.js +247 -0
- package/dist/chunks/chunk-AN7FO7NS.js.map +6 -0
- package/dist/chunks/chunk-AXIGFKJF.js +34 -0
- package/dist/chunks/chunk-AXIGFKJF.js.map +6 -0
- package/dist/chunks/chunk-C5WBEO3X.js +46 -0
- package/dist/chunks/chunk-C5WBEO3X.js.map +6 -0
- package/dist/chunks/chunk-C5XYHYMX.js +675 -0
- package/dist/chunks/chunk-C5XYHYMX.js.map +6 -0
- package/dist/chunks/chunk-CG65NUSJ.js +115 -0
- package/dist/chunks/chunk-CG65NUSJ.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-E5VLANCO.js +101 -0
- package/dist/chunks/chunk-E5VLANCO.js.map +6 -0
- package/dist/chunks/chunk-EBOHVFOB.js +648 -0
- package/dist/chunks/chunk-EBOHVFOB.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-EIYM6TY7.js +1479 -0
- package/dist/chunks/chunk-EIYM6TY7.js.map +6 -0
- package/dist/chunks/chunk-EWKJGHRO.js +82559 -0
- package/dist/chunks/chunk-EWKJGHRO.js.map +6 -0
- package/dist/chunks/chunk-EY7UNVER.js +311 -0
- package/dist/chunks/chunk-EY7UNVER.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-FXS3AG6B.js +25326 -0
- package/dist/chunks/chunk-FXS3AG6B.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-GMCOZ3CU.js +245 -0
- package/dist/chunks/chunk-GMCOZ3CU.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-HBBB2CAC.js +75 -0
- package/dist/chunks/chunk-HBBB2CAC.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-HFJHHCTY.js +303 -0
- package/dist/chunks/chunk-HFJHHCTY.js.map +6 -0
- package/dist/chunks/chunk-HPMWYIBY.js +773 -0
- package/dist/chunks/chunk-HPMWYIBY.js.map +6 -0
- package/dist/chunks/chunk-HQM2WSQT.js +106 -0
- package/dist/chunks/chunk-HQM2WSQT.js.map +6 -0
- package/dist/chunks/chunk-ITZK4B66.js +787 -0
- package/dist/chunks/chunk-ITZK4B66.js.map +6 -0
- package/dist/chunks/chunk-J72CRUNX.js +154 -0
- package/dist/chunks/chunk-J72CRUNX.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-JPPC4LJF.js +271 -0
- package/dist/chunks/chunk-JPPC4LJF.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-K76WV7TN.js +71 -0
- package/dist/chunks/chunk-K76WV7TN.js.map +6 -0
- package/dist/chunks/chunk-KCWUQRZV.js +828 -0
- package/dist/chunks/chunk-KCWUQRZV.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-KU3W6IHV.js +109 -0
- package/dist/chunks/chunk-KU3W6IHV.js.map +6 -0
- package/dist/chunks/chunk-LQMHASKR.js +171 -0
- package/dist/chunks/chunk-LQMHASKR.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-MZP6SH3M.js +3497 -0
- package/dist/chunks/chunk-MZP6SH3M.js.map +6 -0
- package/dist/chunks/chunk-N5IF64K3.js +1858 -0
- package/dist/chunks/chunk-N5IF64K3.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-NQY5P2EB.js +20 -0
- package/dist/chunks/chunk-NQY5P2EB.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-O7DBCVNY.js +110 -0
- package/dist/chunks/chunk-O7DBCVNY.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-OLPOM3DR.js +127 -0
- package/dist/chunks/chunk-OLPOM3DR.js.map +6 -0
- package/dist/chunks/chunk-PYG7DZ2D.js +380 -0
- package/dist/chunks/chunk-PYG7DZ2D.js.map +6 -0
- package/dist/chunks/chunk-Q24K7536.js +661 -0
- package/dist/chunks/chunk-Q24K7536.js.map +6 -0
- package/dist/chunks/chunk-Q5YM2GCX.js +283 -0
- package/dist/chunks/chunk-Q5YM2GCX.js.map +6 -0
- package/dist/chunks/chunk-R7DCDBRN.js +106 -0
- package/dist/chunks/chunk-R7DCDBRN.js.map +6 -0
- package/dist/chunks/chunk-RC6X3ZY6.js +1439 -0
- package/dist/chunks/chunk-RC6X3ZY6.js.map +6 -0
- package/dist/chunks/chunk-SGS435PR.js +11111 -0
- package/dist/chunks/chunk-SGS435PR.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-SRU3MDHZ.js +75 -0
- package/dist/chunks/chunk-SRU3MDHZ.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-THZXXVHM.js +2953 -0
- package/dist/chunks/chunk-THZXXVHM.js.map +6 -0
- package/dist/chunks/chunk-TIGWWAJI.js +765 -0
- package/dist/chunks/chunk-TIGWWAJI.js.map +6 -0
- package/dist/chunks/chunk-UDBEU2FR.js +97 -0
- package/dist/chunks/chunk-UDBEU2FR.js.map +6 -0
- package/dist/chunks/chunk-UOOQPODR.js +257 -0
- package/dist/chunks/chunk-UOOQPODR.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-UWWGSDZ5.js +134 -0
- package/dist/chunks/chunk-UWWGSDZ5.js.map +6 -0
- package/dist/chunks/chunk-UXVYJWN5.js +1373 -0
- package/dist/chunks/chunk-UXVYJWN5.js.map +6 -0
- package/dist/chunks/chunk-V7TQR6AR.js +818 -0
- package/dist/chunks/chunk-V7TQR6AR.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-WATMFOHB.js +319 -0
- package/dist/chunks/chunk-WATMFOHB.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-WM2JEUGV.js +207 -0
- package/dist/chunks/chunk-WM2JEUGV.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-XHOD3RDN.js +517 -0
- package/dist/chunks/chunk-XHOD3RDN.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-ZKEWE6K4.js +399 -0
- package/dist/chunks/chunk-ZKEWE6K4.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-7YAOEJGS.js +129 -0
- package/dist/chunks/cli-runtime-7YAOEJGS.js.map +6 -0
- package/dist/chunks/commands-QPVRB3RK.js +21 -0
- package/dist/chunks/commands-QPVRB3RK.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-S3BTEPYR.js +21 -0
- package/dist/chunks/crash-report-S3BTEPYR.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-3GJFRS2X.js +520 -0
- package/dist/chunks/dist-3GJFRS2X.js.map +6 -0
- package/dist/chunks/dist-BFC7XUCT.js +555 -0
- package/dist/chunks/dist-BFC7XUCT.js.map +6 -0
- package/dist/chunks/dist-ERN5DRKK.js +1415 -0
- package/dist/chunks/dist-ERN5DRKK.js.map +6 -0
- package/dist/chunks/dist-EY3OJBQH.js +1339 -0
- package/dist/chunks/dist-EY3OJBQH.js.map +6 -0
- package/dist/chunks/dist-G42HPNIE.js +514 -0
- package/dist/chunks/dist-G42HPNIE.js.map +6 -0
- package/dist/chunks/dist-SKRHHPUR.js +1018 -0
- package/dist/chunks/dist-SKRHHPUR.js.map +6 -0
- package/dist/chunks/dist-Z47L7ZAJ.js +40654 -0
- package/dist/chunks/dist-Z47L7ZAJ.js.map +6 -0
- package/dist/chunks/doctor-IE3PLXZK.js +28 -0
- package/dist/chunks/doctor-IE3PLXZK.js.map +6 -0
- package/dist/chunks/drain-ESXUKOE6.js +471 -0
- package/dist/chunks/drain-ESXUKOE6.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-53UONRWR.js +187 -0
- package/dist/chunks/eval-53UONRWR.js.map +6 -0
- package/dist/chunks/exec-COV235L5.js +1284 -0
- package/dist/chunks/exec-COV235L5.js.map +6 -0
- package/dist/chunks/home-QS7RBP34.js +16 -0
- package/dist/chunks/home-QS7RBP34.js.map +6 -0
- package/dist/chunks/host-queries-LDEBHKBX.js +152 -0
- package/dist/chunks/host-queries-LDEBHKBX.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-6NF6NJNV.js +63 -0
- package/dist/chunks/lifecycle-6NF6NJNV.js.map +6 -0
- package/dist/chunks/list-DQZU7NEF.js +293 -0
- package/dist/chunks/list-DQZU7NEF.js.map +6 -0
- package/dist/chunks/login-IQGNP5XY.js +29 -0
- package/dist/chunks/login-IQGNP5XY.js.map +6 -0
- package/dist/chunks/logs-KSG7SFAB.js +116 -0
- package/dist/chunks/logs-KSG7SFAB.js.map +6 -0
- package/dist/chunks/mcp-WFXKXGNM.js +763 -0
- package/dist/chunks/mcp-WFXKXGNM.js.map +6 -0
- package/dist/chunks/message-command-O7ZH4I4C.js +170 -0
- package/dist/chunks/message-command-O7ZH4I4C.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-LTPV3CH5.js +115 -0
- package/dist/chunks/operator-tools-LTPV3CH5.js.map +6 -0
- package/dist/chunks/output-schema-UM3P5AOR.js +11 -0
- package/dist/chunks/output-schema-UM3P5AOR.js.map +6 -0
- package/dist/chunks/pal-GBYJHBP3.js +200 -0
- package/dist/chunks/pal-GBYJHBP3.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-J42J2PDA.js +160 -0
- package/dist/chunks/providers-J42J2PDA.js.map +6 -0
- package/dist/chunks/resident-7D6IM5LP.js +1314 -0
- package/dist/chunks/resident-7D6IM5LP.js.map +6 -0
- package/dist/chunks/resume-command-XZWGUXRK.js +22 -0
- package/dist/chunks/resume-command-XZWGUXRK.js.map +6 -0
- package/dist/chunks/schedule-JLIOF3MS.js +143 -0
- package/dist/chunks/schedule-JLIOF3MS.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-YBU5VTKQ.js +1633 -0
- package/dist/chunks/service-YBU5VTKQ.js.map +6 -0
- package/dist/chunks/session-step-2HJSIJNN.js +26 -0
- package/dist/chunks/session-step-2HJSIJNN.js.map +6 -0
- package/dist/chunks/skills-HV2MOBEW.js +282 -0
- package/dist/chunks/skills-HV2MOBEW.js.map +6 -0
- package/dist/chunks/state-6HV3D3O4.js +717 -0
- package/dist/chunks/state-6HV3D3O4.js.map +6 -0
- package/dist/chunks/store-6J2MUGON.js +82 -0
- package/dist/chunks/store-6J2MUGON.js.map +6 -0
- package/dist/chunks/store-GDP2EW27.js +34 -0
- package/dist/chunks/store-GDP2EW27.js.map +6 -0
- package/dist/chunks/store-VXNKMMNW.js +42 -0
- package/dist/chunks/store-VXNKMMNW.js.map +6 -0
- package/dist/chunks/tui-DDWX2WYH.js +56903 -0
- package/dist/chunks/tui-DDWX2WYH.js.map +6 -0
- package/dist/chunks/upgrade-MC5JB7DK.js +315 -0
- package/dist/chunks/upgrade-MC5JB7DK.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-6YPRX6SU.js +116 -0
- package/dist/chunks/worktree-6YPRX6SU.js.map +6 -0
- package/dist/cli-runtime.d.ts +19 -0
- package/dist/cli-runtime.d.ts.map +1 -0
- package/dist/cli.d.ts +0 -15
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp-harness.d.ts +64 -0
- package/dist/commands/acp-harness.d.ts.map +1 -0
- package/dist/commands/acp-provider-retry.d.ts +27 -0
- package/dist/commands/acp-provider-retry.d.ts.map +1 -0
- package/dist/commands/acp.d.ts +134 -3
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/computer.d.ts +3 -0
- package/dist/commands/computer.d.ts.map +1 -0
- package/dist/commands/desktop-host-changes.d.ts +65 -0
- package/dist/commands/desktop-host-changes.d.ts.map +1 -0
- package/dist/commands/desktop-host-header.d.ts +30 -0
- package/dist/commands/desktop-host-header.d.ts.map +1 -0
- package/dist/commands/desktop-host.d.ts +354 -0
- package/dist/commands/desktop-host.d.ts.map +1 -0
- package/dist/commands/desktop-model-catalogue.d.ts +25 -0
- package/dist/commands/desktop-model-catalogue.d.ts.map +1 -0
- package/dist/commands/effort-levels.d.ts +3 -0
- package/dist/commands/effort-levels.d.ts.map +1 -0
- package/dist/commands/exec-flags.d.ts +4 -0
- package/dist/commands/exec-flags.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/lazy.d.ts +20 -0
- package/dist/commands/lazy.d.ts.map +1 -0
- package/dist/commands/manifest.d.ts +33 -0
- package/dist/commands/manifest.d.ts.map +1 -0
- package/dist/commands/pal.d.ts +5 -0
- package/dist/commands/pal.d.ts.map +1 -0
- package/dist/commands/permission-preview.d.ts +38 -0
- package/dist/commands/permission-preview.d.ts.map +1 -0
- package/dist/commands/registry.d.ts +10 -0
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/serve.d.ts +1 -12
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/stdin.d.ts.map +1 -1
- package/dist/commands/upgrade.d.ts +14 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/compile-cache-enable.d.ts +2 -0
- package/dist/compile-cache-enable.d.ts.map +1 -0
- package/dist/compile-cache.d.ts +53 -0
- package/dist/compile-cache.d.ts.map +1 -0
- package/dist/computer/bundle.d.ts +18 -0
- package/dist/computer/bundle.d.ts.map +1 -0
- package/dist/computer/run.d.ts +26 -0
- package/dist/computer/run.d.ts.map +1 -0
- package/dist/computer/sentences.d.ts +30 -0
- package/dist/computer/sentences.d.ts.map +1 -0
- package/dist/config/load.d.ts +10 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/context/capabilities.d.ts +25 -2
- package/dist/context/capabilities.d.ts.map +1 -1
- package/dist/context/runtime-message.d.ts.map +1 -1
- package/dist/crash-report.d.ts +22 -0
- package/dist/crash-report.d.ts.map +1 -0
- package/dist/debug-requested.d.ts +7 -0
- package/dist/debug-requested.d.ts.map +1 -0
- package/dist/doctor/checks/credentials.d.ts.map +1 -1
- package/dist/exit-codes.d.ts +9 -1
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/index.js +105 -17
- package/dist/index.js.map +6 -1
- package/dist/integrations/harness/claude-adapter.d.ts +20 -0
- package/dist/integrations/harness/claude-adapter.d.ts.map +1 -0
- package/dist/integrations/harness/claude-protocol.d.ts +67 -0
- package/dist/integrations/harness/claude-protocol.d.ts.map +1 -0
- package/dist/integrations/harness/codex-adapter.d.ts +80 -0
- package/dist/integrations/harness/codex-adapter.d.ts.map +1 -0
- package/dist/integrations/harness/codex-protocol.d.ts +22 -0
- package/dist/integrations/harness/codex-protocol.d.ts.map +1 -0
- package/dist/integrations/harness/model-cache.d.ts +16 -0
- package/dist/integrations/harness/model-cache.d.ts.map +1 -0
- package/dist/integrations/harness/native-executable.d.ts +8 -0
- package/dist/integrations/harness/native-executable.d.ts.map +1 -0
- package/dist/integrations/harness/process.d.ts +25 -0
- package/dist/integrations/harness/process.d.ts.map +1 -0
- package/dist/integrations/peers/runtime.d.ts +64 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -0
- package/dist/integrations/plugins/inventory.d.ts +27 -0
- package/dist/integrations/plugins/inventory.d.ts.map +1 -0
- package/dist/integrations/providers/composer-settings.d.ts +33 -0
- package/dist/integrations/providers/composer-settings.d.ts.map +1 -0
- package/dist/integrations/providers/connections.d.ts +37 -0
- package/dist/integrations/providers/connections.d.ts.map +1 -0
- package/dist/integrations/providers/credential-store.d.ts +35 -0
- package/dist/integrations/providers/credential-store.d.ts.map +1 -1
- package/dist/integrations/providers/discover.d.ts +27 -1
- package/dist/integrations/providers/discover.d.ts.map +1 -1
- package/dist/integrations/providers/index.d.ts +2 -2
- package/dist/integrations/providers/index.d.ts.map +1 -1
- package/dist/integrations/providers/picker-operation.d.ts +6 -0
- package/dist/integrations/providers/picker-operation.d.ts.map +1 -0
- package/dist/integrations/providers/setup.d.ts +16 -1
- package/dist/integrations/providers/setup.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +190 -161
- package/dist/integrations/resident/runner-worker.js.map +6 -1
- package/dist/integrations/sessions/display-title.d.ts +8 -0
- package/dist/integrations/sessions/display-title.d.ts.map +1 -1
- package/dist/integrations/sessions/store.d.ts +23 -9
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/sessions/task-context.d.ts +1 -1
- package/dist/integrations/sessions/task-context.d.ts.map +1 -1
- package/dist/integrations/sessions/transcript-export.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts +9 -6
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/operator-journal.d.ts +20 -0
- package/dist/integrations/subagents/operator-journal.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +11 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/trust/store.d.ts +14 -0
- package/dist/integrations/trust/store.d.ts.map +1 -1
- package/dist/integrations/web/search.d.ts +1 -1
- package/dist/pals/actions.d.ts +57 -0
- package/dist/pals/actions.d.ts.map +1 -0
- package/dist/pals/activity-command.d.ts +3 -0
- package/dist/pals/activity-command.d.ts.map +1 -0
- package/dist/pals/activity.d.ts +18 -0
- package/dist/pals/activity.d.ts.map +1 -0
- package/dist/pals/agent-session.d.ts +19 -0
- package/dist/pals/agent-session.d.ts.map +1 -0
- package/dist/pals/channel-actions.d.ts +5 -0
- package/dist/pals/channel-actions.d.ts.map +1 -0
- package/dist/pals/channel-local.d.ts +7 -0
- package/dist/pals/channel-local.d.ts.map +1 -0
- package/dist/pals/channel.d.ts +20 -0
- package/dist/pals/channel.d.ts.map +1 -0
- package/dist/pals/chat.d.ts +6 -0
- package/dist/pals/chat.d.ts.map +1 -0
- package/dist/pals/communication.d.ts +47 -0
- package/dist/pals/communication.d.ts.map +1 -0
- package/dist/pals/conversations.d.ts +26 -0
- package/dist/pals/conversations.d.ts.map +1 -0
- package/dist/pals/desktop-communication.d.ts +111 -0
- package/dist/pals/desktop-communication.d.ts.map +1 -0
- package/dist/pals/dispatch.d.ts +13 -0
- package/dist/pals/dispatch.d.ts.map +1 -0
- package/dist/pals/environment.d.ts +103 -0
- package/dist/pals/environment.d.ts.map +1 -0
- package/dist/pals/guest-mcp-transport.d.ts +28 -0
- package/dist/pals/guest-mcp-transport.d.ts.map +1 -0
- package/dist/pals/guest-mcp.d.ts +22 -0
- package/dist/pals/guest-mcp.d.ts.map +1 -0
- package/dist/pals/inbox-start.d.ts +35 -0
- package/dist/pals/inbox-start.d.ts.map +1 -0
- package/dist/pals/message-command.d.ts +3 -0
- package/dist/pals/message-command.d.ts.map +1 -0
- package/dist/pals/operator-tools.d.ts +23 -0
- package/dist/pals/operator-tools.d.ts.map +1 -0
- package/dist/pals/public-transcript.d.ts +4 -0
- package/dist/pals/public-transcript.d.ts.map +1 -0
- package/dist/pals/review.d.ts +16 -0
- package/dist/pals/review.d.ts.map +1 -0
- package/dist/pals/store.d.ts +16 -0
- package/dist/pals/store.d.ts.map +1 -0
- package/dist/pals/tui-session.d.ts +11 -0
- package/dist/pals/tui-session.d.ts.map +1 -0
- package/dist/permissions/mode-names.d.ts +2 -0
- package/dist/permissions/mode-names.d.ts.map +1 -0
- package/dist/resume-invocation.d.ts +1 -1
- package/dist/resume-invocation.d.ts.map +1 -1
- package/dist/resume-shell.d.ts +8 -0
- package/dist/resume-shell.d.ts.map +1 -0
- package/dist/schedule/build.d.ts +12 -3
- package/dist/schedule/build.d.ts.map +1 -1
- package/dist/schedule/commands/add.d.ts +1 -1
- package/dist/schedule/commands/add.d.ts.map +1 -1
- package/dist/schedule/commands/lifecycle.d.ts.map +1 -1
- package/dist/schedule/commands/list.d.ts +3 -1
- package/dist/schedule/commands/list.d.ts.map +1 -1
- package/dist/schedule/daemon/daemon.d.ts +2 -0
- package/dist/schedule/daemon/daemon.d.ts.map +1 -1
- package/dist/schedule/delivery.d.ts +66 -0
- package/dist/schedule/delivery.d.ts.map +1 -0
- package/dist/schedule/fire/fire.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/schedule/fire/run-script.d.ts +2 -2
- package/dist/schedule/fire/run-script.d.ts.map +1 -1
- package/dist/schedule/fire/script-report.d.ts +31 -0
- package/dist/schedule/fire/script-report.d.ts.map +1 -0
- package/dist/schedule/floor.d.ts +1 -1
- package/dist/schedule/floor.d.ts.map +1 -1
- package/dist/schedule/folder.d.ts +6 -0
- package/dist/schedule/folder.d.ts.map +1 -1
- package/dist/schedule/resume-command.d.ts +3 -3
- package/dist/schedule/resume-command.d.ts.map +1 -1
- package/dist/schedule/store/history.d.ts.map +1 -1
- package/dist/schedule/store/jobs.d.ts +6 -6
- package/dist/schedule/store/jobs.d.ts.map +1 -1
- package/dist/schedule/store/script-state.d.ts +31 -0
- package/dist/schedule/store/script-state.d.ts.map +1 -0
- package/dist/schedule/store/state.d.ts +4 -2
- package/dist/schedule/store/state.d.ts.map +1 -1
- package/dist/schedule/types.d.ts +61 -16
- package/dist/schedule/types.d.ts.map +1 -1
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/terminal/host.d.ts +22 -0
- package/dist/terminal/host.d.ts.map +1 -0
- package/dist/terminal/manager.d.ts +124 -0
- package/dist/terminal/manager.d.ts.map +1 -0
- package/dist/terminal/protocol.d.ts +162 -0
- package/dist/terminal/protocol.d.ts.map +1 -0
- package/dist/terminal/pty.d.ts +85 -0
- package/dist/terminal/pty.d.ts.map +1 -0
- package/dist/terminal/ring.d.ts +23 -0
- package/dist/terminal/ring.d.ts.map +1 -0
- package/dist/terminal/screen.d.ts +31 -0
- package/dist/terminal/screen.d.ts.map +1 -0
- package/dist/termination-state.d.ts +19 -0
- package/dist/termination-state.d.ts.map +1 -0
- package/dist/termination.d.ts +2 -9
- package/dist/termination.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +4 -1
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/BrandHeader.d.ts.map +1 -1
- package/dist/tui/ChildComposer.d.ts +22 -0
- package/dist/tui/ChildComposer.d.ts.map +1 -0
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +21 -3
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ComposerFrame.d.ts.map +1 -1
- package/dist/tui/CopyPicker.d.ts.map +1 -1
- package/dist/tui/EditPromptPicker.d.ts.map +1 -1
- package/dist/tui/EffortSlider.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts +7 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/ProviderSetup.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/SaveSkillOverlay.d.ts.map +1 -1
- package/dist/tui/ScheduleReviewOverlay.d.ts +1 -1
- package/dist/tui/ScheduleReviewOverlay.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +7 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/StatusPanel.d.ts.map +1 -1
- package/dist/tui/TextPrompt.d.ts.map +1 -1
- package/dist/tui/ToolOutputViewer.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +3 -0
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TranscriptScrollView.d.ts +23 -0
- package/dist/tui/TranscriptScrollView.d.ts.map +1 -0
- package/dist/tui/TrustPrompt.d.ts +8 -0
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +125 -3
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/browser-notices.d.ts.map +1 -1
- package/dist/tui/capability-notice.d.ts +38 -0
- package/dist/tui/capability-notice.d.ts.map +1 -0
- package/dist/tui/console-input.d.ts +31 -0
- package/dist/tui/console-input.d.ts.map +1 -0
- package/dist/tui/conversation-evidence-view.d.ts.map +1 -1
- package/dist/tui/credential-entry.d.ts.map +1 -1
- package/dist/tui/exit-summary.d.ts +9 -1
- package/dist/tui/exit-summary.d.ts.map +1 -1
- package/dist/tui/external-editor.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/key-hints.d.ts +51 -0
- package/dist/tui/key-hints.d.ts.map +1 -0
- package/dist/tui/launch-settings.d.ts +34 -0
- package/dist/tui/launch-settings.d.ts.map +1 -0
- package/dist/tui/log-pane.d.ts.map +1 -1
- package/dist/tui/model-choices.d.ts +39 -1
- package/dist/tui/model-choices.d.ts.map +1 -1
- package/dist/tui/model-search.d.ts +4 -1
- package/dist/tui/model-search.d.ts.map +1 -1
- package/dist/tui/output-size-watch.d.ts +32 -0
- package/dist/tui/output-size-watch.d.ts.map +1 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/person-terms.d.ts +58 -0
- package/dist/tui/person-terms.d.ts.map +1 -0
- package/dist/tui/plain-failure.d.ts +27 -0
- package/dist/tui/plain-failure.d.ts.map +1 -0
- package/dist/tui/plain-interruption.d.ts +46 -0
- package/dist/tui/plain-interruption.d.ts.map +1 -0
- package/dist/tui/provider-list.d.ts.map +1 -1
- package/dist/tui/render-mode.d.ts +19 -0
- package/dist/tui/render-mode.d.ts.map +1 -0
- package/dist/tui/schedule/host-commands.d.ts +2 -9
- package/dist/tui/schedule/host-commands.d.ts.map +1 -1
- package/dist/tui/schedule/integration.d.ts +8 -0
- package/dist/tui/schedule/integration.d.ts.map +1 -1
- package/dist/tui/schedule/source-deliveries.d.ts +37 -0
- package/dist/tui/schedule/source-deliveries.d.ts.map +1 -0
- package/dist/tui/schedule/startup.d.ts.map +1 -1
- package/dist/tui/schedule/tool-host.d.ts +3 -1
- package/dist/tui/schedule/tool-host.d.ts.map +1 -1
- package/dist/tui/setup-text.d.ts +14 -0
- package/dist/tui/setup-text.d.ts.map +1 -0
- package/dist/tui/shell-escape.d.ts.map +1 -1
- package/dist/tui/skills/suggest-setting.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +4 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/terminal-choice-text.d.ts +7 -0
- package/dist/tui/terminal-choice-text.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +83 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -0
- package/dist/tui/tool-presentation.d.ts +6 -0
- package/dist/tui/tool-presentation.d.ts.map +1 -0
- package/dist/tui/transcript-scroll.d.ts +73 -0
- package/dist/tui/transcript-scroll.d.ts.map +1 -0
- package/dist/tui/triggers/copy.d.ts.map +1 -1
- package/dist/tui/triggers/setting.d.ts.map +1 -1
- package/dist/tui/turn-interruption.d.ts +1 -1
- package/dist/tui/turn-interruption.d.ts.map +1 -1
- package/dist/tui/turn-limits-settings.d.ts +4 -4
- package/dist/tui/turn-limits-settings.d.ts.map +1 -1
- package/dist/tui/types.d.ts +10 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/web-activity.d.ts +3 -2
- package/dist/tui/web-activity.d.ts.map +1 -1
- package/dist/tui/zen-free-refusal.d.ts +17 -0
- package/dist/tui/zen-free-refusal.d.ts.map +1 -0
- package/dist/usage-error.d.ts +15 -0
- package/dist/usage-error.d.ts.map +1 -0
- package/dist/warning-filter.d.ts +30 -0
- package/dist/warning-filter.d.ts.map +1 -0
- package/package.json +21 -10
- package/skills/schedule-task/SKILL.md +74 -20
- package/dist/browser/commands.js +0 -365
- package/dist/browser/commands.js.map +0 -1
- package/dist/browser/control.js +0 -140
- package/dist/browser/control.js.map +0 -1
- package/dist/browser/describe.js +0 -27
- package/dist/browser/describe.js.map +0 -1
- package/dist/checkpoints/store.js +0 -192
- package/dist/checkpoints/store.js.map +0 -1
- package/dist/checkpoints/wrap.js +0 -37
- package/dist/checkpoints/wrap.js.map +0 -1
- package/dist/cli.js +0 -602
- package/dist/cli.js.map +0 -1
- package/dist/commands/acp.js +0 -388
- package/dist/commands/acp.js.map +0 -1
- package/dist/commands/archive.js +0 -65
- package/dist/commands/archive.js.map +0 -1
- package/dist/commands/browser.js +0 -16
- package/dist/commands/browser.js.map +0 -1
- package/dist/commands/doctor.js +0 -267
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/drain.js +0 -498
- package/dist/commands/drain.js.map +0 -1
- package/dist/commands/eval.js +0 -237
- package/dist/commands/eval.js.map +0 -1
- package/dist/commands/exec-flags.js +0 -334
- package/dist/commands/exec-flags.js.map +0 -1
- package/dist/commands/exec-json.js +0 -497
- package/dist/commands/exec-json.js.map +0 -1
- package/dist/commands/exec.js +0 -688
- package/dist/commands/exec.js.map +0 -1
- package/dist/commands/host-queries.js +0 -156
- package/dist/commands/host-queries.js.map +0 -1
- package/dist/commands/login.js +0 -315
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/mcp-oauth-login.js +0 -213
- package/dist/commands/mcp-oauth-login.js.map +0 -1
- package/dist/commands/mcp.js +0 -461
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/prior-messages.js +0 -329
- package/dist/commands/prior-messages.js.map +0 -1
- package/dist/commands/provider-wait.js +0 -65
- package/dist/commands/provider-wait.js.map +0 -1
- package/dist/commands/registry.js +0 -40
- package/dist/commands/registry.js.map +0 -1
- package/dist/commands/resident-flags.js +0 -193
- package/dist/commands/resident-flags.js.map +0 -1
- package/dist/commands/resident-learning.js +0 -293
- package/dist/commands/resident-learning.js.map +0 -1
- package/dist/commands/resident.js +0 -419
- package/dist/commands/resident.js.map +0 -1
- package/dist/commands/resume.js +0 -109
- package/dist/commands/resume.js.map +0 -1
- package/dist/commands/schedule.js +0 -131
- package/dist/commands/schedule.js.map +0 -1
- package/dist/commands/serve.js +0 -21
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/skills.js +0 -178
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/state.js +0 -110
- package/dist/commands/state.js.map +0 -1
- package/dist/commands/stdin.js +0 -69
- package/dist/commands/stdin.js.map +0 -1
- package/dist/commands/types.js +0 -2
- package/dist/commands/types.js.map +0 -1
- package/dist/commands/upgrade-progress.js +0 -54
- package/dist/commands/upgrade-progress.js.map +0 -1
- package/dist/commands/upgrade.js +0 -232
- package/dist/commands/upgrade.js.map +0 -1
- package/dist/commands/worktree.js +0 -86
- package/dist/commands/worktree.js.map +0 -1
- package/dist/config/composer-triggers.js +0 -80
- package/dist/config/composer-triggers.js.map +0 -1
- package/dist/config/debug.js +0 -126
- package/dist/config/debug.js.map +0 -1
- package/dist/config/load.js +0 -1208
- package/dist/config/load.js.map +0 -1
- package/dist/config/schema.js +0 -13
- package/dist/config/schema.js.map +0 -1
- package/dist/config/tool-result-screens.js +0 -104
- package/dist/config/tool-result-screens.js.map +0 -1
- package/dist/config/trusted-project-context.js +0 -28
- package/dist/config/trusted-project-context.js.map +0 -1
- package/dist/config/turn-guards.js +0 -46
- package/dist/config/turn-guards.js.map +0 -1
- package/dist/config/user-config.js +0 -118
- package/dist/config/user-config.js.map +0 -1
- package/dist/context/capabilities.js +0 -164
- package/dist/context/capabilities.js.map +0 -1
- package/dist/context/directories.js +0 -69
- package/dist/context/directories.js.map +0 -1
- package/dist/context/doctrine.js +0 -24
- package/dist/context/doctrine.js.map +0 -1
- package/dist/context/environment.js +0 -255
- package/dist/context/environment.js.map +0 -1
- package/dist/context/project-path.js +0 -16
- package/dist/context/project-path.js.map +0 -1
- package/dist/context/project-tracker.js +0 -217
- package/dist/context/project-tracker.js.map +0 -1
- package/dist/context/project.js +0 -256
- package/dist/context/project.js.map +0 -1
- package/dist/context/runtime-message.js +0 -30
- package/dist/context/runtime-message.js.map +0 -1
- package/dist/context/sandbox.js +0 -114
- package/dist/context/sandbox.js.map +0 -1
- package/dist/context/turn-snapshot.js +0 -122
- package/dist/context/turn-snapshot.js.map +0 -1
- package/dist/doctor/checks/browser.js +0 -63
- package/dist/doctor/checks/browser.js.map +0 -1
- package/dist/doctor/checks/chain.js +0 -211
- package/dist/doctor/checks/chain.js.map +0 -1
- package/dist/doctor/checks/credentials.js +0 -98
- package/dist/doctor/checks/credentials.js.map +0 -1
- package/dist/doctor/checks/index.js +0 -72
- package/dist/doctor/checks/index.js.map +0 -1
- package/dist/doctor/checks/invariants.js +0 -79
- package/dist/doctor/checks/invariants.js.map +0 -1
- package/dist/doctor/checks/logging.js +0 -69
- package/dist/doctor/checks/logging.js.map +0 -1
- package/dist/doctor/checks/providers.js +0 -30
- package/dist/doctor/checks/providers.js.map +0 -1
- package/dist/doctor/checks/runtime.js +0 -40
- package/dist/doctor/checks/runtime.js.map +0 -1
- package/dist/doctor/checks/sandbox.js +0 -76
- package/dist/doctor/checks/sandbox.js.map +0 -1
- package/dist/doctor/checks/scheduler.js +0 -74
- package/dist/doctor/checks/scheduler.js.map +0 -1
- package/dist/doctor/checks/session-export.js +0 -62
- package/dist/doctor/checks/session-export.js.map +0 -1
- package/dist/doctor/checks/telemetry.js +0 -58
- package/dist/doctor/checks/telemetry.js.map +0 -1
- package/dist/doctor/checks/vault.js +0 -67
- package/dist/doctor/checks/vault.js.map +0 -1
- package/dist/doctor/index.js +0 -3
- package/dist/doctor/index.js.map +0 -1
- package/dist/doctor/registry.js +0 -230
- package/dist/doctor/registry.js.map +0 -1
- package/dist/exit-codes.js +0 -62
- package/dist/exit-codes.js.map +0 -1
- package/dist/installation.js +0 -48
- package/dist/installation.js.map +0 -1
- package/dist/integrations/clipboard/image.js +0 -119
- package/dist/integrations/clipboard/image.js.map +0 -1
- package/dist/integrations/clipboard/text.js +0 -43
- package/dist/integrations/clipboard/text.js.map +0 -1
- package/dist/integrations/files/attachment-store.js +0 -86
- package/dist/integrations/files/attachment-store.js.map +0 -1
- package/dist/integrations/mcp/oauth-store.js +0 -549
- package/dist/integrations/mcp/oauth-store.js.map +0 -1
- package/dist/integrations/mcp/servers.js +0 -611
- package/dist/integrations/mcp/servers.js.map +0 -1
- package/dist/integrations/mcp/user-config.js +0 -92
- package/dist/integrations/mcp/user-config.js.map +0 -1
- package/dist/integrations/notifications/desktop/freedesktop.js +0 -33
- package/dist/integrations/notifications/desktop/freedesktop.js.map +0 -1
- package/dist/integrations/notifications/desktop/macos.js +0 -17
- package/dist/integrations/notifications/desktop/macos.js.map +0 -1
- package/dist/integrations/notifications/desktop/sanitize.js +0 -49
- package/dist/integrations/notifications/desktop/sanitize.js.map +0 -1
- package/dist/integrations/notifications/desktop/throttle.js +0 -39
- package/dist/integrations/notifications/desktop/throttle.js.map +0 -1
- package/dist/integrations/notifications/desktop/windows-toast.js +0 -56
- package/dist/integrations/notifications/desktop/windows-toast.js.map +0 -1
- package/dist/integrations/notifications/desktop.js +0 -199
- package/dist/integrations/notifications/desktop.js.map +0 -1
- package/dist/integrations/notifications/terminal.js +0 -46
- package/dist/integrations/notifications/terminal.js.map +0 -1
- package/dist/integrations/npm-invocation.js +0 -23
- package/dist/integrations/npm-invocation.js.map +0 -1
- package/dist/integrations/plugins/runtime.js +0 -189
- package/dist/integrations/plugins/runtime.js.map +0 -1
- package/dist/integrations/plugins/settings.js +0 -106
- package/dist/integrations/plugins/settings.js.map +0 -1
- package/dist/integrations/providers/access.js +0 -23
- package/dist/integrations/providers/access.js.map +0 -1
- package/dist/integrations/providers/chain-capabilities.js +0 -211
- package/dist/integrations/providers/chain-capabilities.js.map +0 -1
- package/dist/integrations/providers/codex-device-login.js +0 -195
- package/dist/integrations/providers/codex-device-login.js.map +0 -1
- package/dist/integrations/providers/codex-oauth.js +0 -95
- package/dist/integrations/providers/codex-oauth.js.map +0 -1
- package/dist/integrations/providers/credential-provider.js +0 -74
- package/dist/integrations/providers/credential-provider.js.map +0 -1
- package/dist/integrations/providers/credential-store.js +0 -657
- package/dist/integrations/providers/credential-store.js.map +0 -1
- package/dist/integrations/providers/current-credential.js +0 -45
- package/dist/integrations/providers/current-credential.js.map +0 -1
- package/dist/integrations/providers/discover.js +0 -313
- package/dist/integrations/providers/discover.js.map +0 -1
- package/dist/integrations/providers/gemini-credentials.js +0 -148
- package/dist/integrations/providers/gemini-credentials.js.map +0 -1
- package/dist/integrations/providers/harness-credentials.js +0 -344
- package/dist/integrations/providers/harness-credentials.js.map +0 -1
- package/dist/integrations/providers/identity.js +0 -64
- package/dist/integrations/providers/identity.js.map +0 -1
- package/dist/integrations/providers/index.js +0 -14
- package/dist/integrations/providers/index.js.map +0 -1
- package/dist/integrations/providers/keychain.js +0 -78
- package/dist/integrations/providers/keychain.js.map +0 -1
- package/dist/integrations/providers/model-reasoning.js +0 -51
- package/dist/integrations/providers/model-reasoning.js.map +0 -1
- package/dist/integrations/providers/oauth.js +0 -302
- package/dist/integrations/providers/oauth.js.map +0 -1
- package/dist/integrations/providers/preferences.js +0 -287
- package/dist/integrations/providers/preferences.js.map +0 -1
- package/dist/integrations/providers/register.js +0 -154
- package/dist/integrations/providers/register.js.map +0 -1
- package/dist/integrations/providers/registry.js +0 -289
- package/dist/integrations/providers/registry.js.map +0 -1
- package/dist/integrations/providers/setup.js +0 -158
- package/dist/integrations/providers/setup.js.map +0 -1
- package/dist/integrations/providers/subscription-login.js +0 -328
- package/dist/integrations/providers/subscription-login.js.map +0 -1
- package/dist/integrations/providers/zen-catalogue.js +0 -196
- package/dist/integrations/providers/zen-catalogue.js.map +0 -1
- package/dist/integrations/resident/foreground.js +0 -95
- package/dist/integrations/resident/foreground.js.map +0 -1
- package/dist/integrations/resident/inspection.js +0 -282
- package/dist/integrations/resident/inspection.js.map +0 -1
- package/dist/integrations/resident/learning-sources.js +0 -79
- package/dist/integrations/resident/learning-sources.js.map +0 -1
- package/dist/integrations/resident/learning-storage.js +0 -55
- package/dist/integrations/resident/learning-storage.js.map +0 -1
- package/dist/integrations/resident/lifecycle-errors.js +0 -15
- package/dist/integrations/resident/lifecycle-errors.js.map +0 -1
- package/dist/integrations/resident/owned-runner.js +0 -91
- package/dist/integrations/resident/owned-runner.js.map +0 -1
- package/dist/integrations/resident/runner-control.js +0 -238
- package/dist/integrations/resident/runner-control.js.map +0 -1
- package/dist/integrations/resident/runner-launch.js +0 -142
- package/dist/integrations/resident/runner-launch.js.map +0 -1
- package/dist/integrations/resident/runner-store.js +0 -284
- package/dist/integrations/resident/runner-store.js.map +0 -1
- package/dist/integrations/resident/session-log-reads.js +0 -125
- package/dist/integrations/resident/session-log-reads.js.map +0 -1
- package/dist/integrations/resident/session-step.js +0 -476
- package/dist/integrations/resident/session-step.js.map +0 -1
- package/dist/integrations/resident/storage.js +0 -183
- package/dist/integrations/resident/storage.js.map +0 -1
- package/dist/integrations/resident/tool-evidence.js +0 -123
- package/dist/integrations/resident/tool-evidence.js.map +0 -1
- package/dist/integrations/resident/verification.js +0 -109
- package/dist/integrations/resident/verification.js.map +0 -1
- package/dist/integrations/sessions/checkpoint-view.js +0 -48
- package/dist/integrations/sessions/checkpoint-view.js.map +0 -1
- package/dist/integrations/sessions/context-inventory.js +0 -44
- package/dist/integrations/sessions/context-inventory.js.map +0 -1
- package/dist/integrations/sessions/conversation-search.js +0 -572
- package/dist/integrations/sessions/conversation-search.js.map +0 -1
- package/dist/integrations/sessions/display-title.js +0 -5
- package/dist/integrations/sessions/display-title.js.map +0 -1
- package/dist/integrations/sessions/evidence-page-validation.js +0 -74
- package/dist/integrations/sessions/evidence-page-validation.js.map +0 -1
- package/dist/integrations/sessions/evidence-recall.js +0 -117
- package/dist/integrations/sessions/evidence-recall.js.map +0 -1
- package/dist/integrations/sessions/store.js +0 -780
- package/dist/integrations/sessions/store.js.map +0 -1
- package/dist/integrations/sessions/task-context.js +0 -96
- package/dist/integrations/sessions/task-context.js.map +0 -1
- package/dist/integrations/sessions/transcript-export.js +0 -342
- package/dist/integrations/sessions/transcript-export.js.map +0 -1
- package/dist/integrations/state/home.js +0 -17
- package/dist/integrations/state/home.js.map +0 -1
- package/dist/integrations/state/identity.js +0 -49
- package/dist/integrations/state/identity.js.map +0 -1
- package/dist/integrations/state/immutable-json.js +0 -38
- package/dist/integrations/state/immutable-json.js.map +0 -1
- package/dist/integrations/state/private-directory.js +0 -43
- package/dist/integrations/state/private-directory.js.map +0 -1
- package/dist/integrations/state/project.js +0 -13
- package/dist/integrations/state/project.js.map +0 -1
- package/dist/integrations/state/report.js +0 -626
- package/dist/integrations/state/report.js.map +0 -1
- package/dist/integrations/state/retention.js +0 -18
- package/dist/integrations/state/retention.js.map +0 -1
- package/dist/integrations/subagents/NamzuCliAgent.js +0 -9
- package/dist/integrations/subagents/NamzuCliAgent.js.map +0 -1
- package/dist/integrations/subagents/activity.js +0 -759
- package/dist/integrations/subagents/activity.js.map +0 -1
- package/dist/integrations/subagents/batches.js +0 -172
- package/dist/integrations/subagents/batches.js.map +0 -1
- package/dist/integrations/subagents/definitions.js +0 -26
- package/dist/integrations/subagents/definitions.js.map +0 -1
- package/dist/integrations/subagents/model-effort.js +0 -12
- package/dist/integrations/subagents/model-effort.js.map +0 -1
- package/dist/integrations/subagents/parent.js +0 -47
- package/dist/integrations/subagents/parent.js.map +0 -1
- package/dist/integrations/subagents/policy.js +0 -3
- package/dist/integrations/subagents/policy.js.map +0 -1
- package/dist/integrations/subagents/replay.js +0 -295
- package/dist/integrations/subagents/replay.js.map +0 -1
- package/dist/integrations/subagents/runtime.js +0 -1317
- package/dist/integrations/subagents/runtime.js.map +0 -1
- package/dist/integrations/subagents/saved-agents.js +0 -102
- package/dist/integrations/subagents/saved-agents.js.map +0 -1
- package/dist/integrations/subagents/slash.js +0 -45
- package/dist/integrations/subagents/slash.js.map +0 -1
- package/dist/integrations/subagents/worktree-driver.js +0 -72
- package/dist/integrations/subagents/worktree-driver.js.map +0 -1
- package/dist/integrations/telemetry/session-export.js +0 -119
- package/dist/integrations/telemetry/session-export.js.map +0 -1
- package/dist/integrations/trust/store.js +0 -73
- package/dist/integrations/trust/store.js.map +0 -1
- package/dist/integrations/updates.js +0 -115
- package/dist/integrations/updates.js.map +0 -1
- package/dist/integrations/web/exa-search.js +0 -154
- package/dist/integrations/web/exa-search.js.map +0 -1
- package/dist/integrations/web/open-url.js +0 -73
- package/dist/integrations/web/open-url.js.map +0 -1
- package/dist/integrations/web/search.js +0 -68
- package/dist/integrations/web/search.js.map +0 -1
- package/dist/integrations/worktrees/managed.js +0 -231
- package/dist/integrations/worktrees/managed.js.map +0 -1
- package/dist/logging.js +0 -115
- package/dist/logging.js.map +0 -1
- package/dist/memory/io.js +0 -177
- package/dist/memory/io.js.map +0 -1
- package/dist/memory/presentation.js +0 -76
- package/dist/memory/presentation.js.map +0 -1
- package/dist/memory/store.js +0 -180
- package/dist/memory/store.js.map +0 -1
- package/dist/memory/typed.js +0 -336
- package/dist/memory/typed.js.map +0 -1
- package/dist/output/formatter.js +0 -16
- package/dist/output/formatter.js.map +0 -1
- package/dist/output/index.js +0 -22
- package/dist/output/index.js.map +0 -1
- package/dist/output/json.js +0 -51
- package/dist/output/json.js.map +0 -1
- package/dist/output/text.js +0 -50
- package/dist/output/text.js.map +0 -1
- package/dist/output/yaml.js +0 -26
- package/dist/output/yaml.js.map +0 -1
- package/dist/output-schema.js +0 -18
- package/dist/output-schema.js.map +0 -1
- package/dist/permissions/browser-sites.js +0 -270
- package/dist/permissions/browser-sites.js.map +0 -1
- package/dist/permissions/canonical-project.js +0 -13
- package/dist/permissions/canonical-project.js.map +0 -1
- package/dist/permissions/checks.js +0 -128
- package/dist/permissions/checks.js.map +0 -1
- package/dist/permissions/headless-trust.js +0 -86
- package/dist/permissions/headless-trust.js.map +0 -1
- package/dist/permissions/live-mode.js +0 -62
- package/dist/permissions/live-mode.js.map +0 -1
- package/dist/permissions/mode.js +0 -65
- package/dist/permissions/mode.js.map +0 -1
- package/dist/permissions/rules.js +0 -358
- package/dist/permissions/rules.js.map +0 -1
- package/dist/release-notes.js +0 -64
- package/dist/release-notes.js.map +0 -1
- package/dist/resume-invocation.js +0 -24
- package/dist/resume-invocation.js.map +0 -1
- package/dist/schedule/build.js +0 -374
- package/dist/schedule/build.js.map +0 -1
- package/dist/schedule/changes.js +0 -78
- package/dist/schedule/changes.js.map +0 -1
- package/dist/schedule/commands/add.js +0 -603
- package/dist/schedule/commands/add.js.map +0 -1
- package/dist/schedule/commands/args.js +0 -80
- package/dist/schedule/commands/args.js.map +0 -1
- package/dist/schedule/commands/confirm-prompt.js +0 -21
- package/dist/schedule/commands/confirm-prompt.js.map +0 -1
- package/dist/schedule/commands/lifecycle.js +0 -586
- package/dist/schedule/commands/lifecycle.js.map +0 -1
- package/dist/schedule/commands/list.js +0 -260
- package/dist/schedule/commands/list.js.map +0 -1
- package/dist/schedule/commands/logs.js +0 -106
- package/dist/schedule/commands/logs.js.map +0 -1
- package/dist/schedule/commands/service.js +0 -458
- package/dist/schedule/commands/service.js.map +0 -1
- package/dist/schedule/daemon/daemon.js +0 -1265
- package/dist/schedule/daemon/daemon.js.map +0 -1
- package/dist/schedule/daemon/endpoint.js +0 -158
- package/dist/schedule/daemon/endpoint.js.map +0 -1
- package/dist/schedule/daemon/exit.js +0 -8
- package/dist/schedule/daemon/exit.js.map +0 -1
- package/dist/schedule/daemon/log.js +0 -53
- package/dist/schedule/daemon/log.js.map +0 -1
- package/dist/schedule/daemon/notify.js +0 -158
- package/dist/schedule/daemon/notify.js.map +0 -1
- package/dist/schedule/daemon/retention.js +0 -46
- package/dist/schedule/daemon/retention.js.map +0 -1
- package/dist/schedule/daemon/sessions.js +0 -52
- package/dist/schedule/daemon/sessions.js.map +0 -1
- package/dist/schedule/env.js +0 -106
- package/dist/schedule/env.js.map +0 -1
- package/dist/schedule/fire/browser-preflight.js +0 -73
- package/dist/schedule/fire/browser-preflight.js.map +0 -1
- package/dist/schedule/fire/calls.js +0 -114
- package/dist/schedule/fire/calls.js.map +0 -1
- package/dist/schedule/fire/fire.js +0 -681
- package/dist/schedule/fire/fire.js.map +0 -1
- package/dist/schedule/fire/result.js +0 -19
- package/dist/schedule/fire/result.js.map +0 -1
- package/dist/schedule/fire/run-script.js +0 -81
- package/dist/schedule/fire/run-script.js.map +0 -1
- package/dist/schedule/fire/unattended-note.js +0 -51
- package/dist/schedule/fire/unattended-note.js.map +0 -1
- package/dist/schedule/fire/wake-gate.js +0 -90
- package/dist/schedule/fire/wake-gate.js.map +0 -1
- package/dist/schedule/floor.js +0 -1561
- package/dist/schedule/floor.js.map +0 -1
- package/dist/schedule/folder.js +0 -84
- package/dist/schedule/folder.js.map +0 -1
- package/dist/schedule/paths.js +0 -53
- package/dist/schedule/paths.js.map +0 -1
- package/dist/schedule/policy.js +0 -414
- package/dist/schedule/policy.js.map +0 -1
- package/dist/schedule/resume-command.js +0 -72
- package/dist/schedule/resume-command.js.map +0 -1
- package/dist/schedule/script-check.js +0 -146
- package/dist/schedule/script-check.js.map +0 -1
- package/dist/schedule/script-shell.js +0 -5
- package/dist/schedule/script-shell.js.map +0 -1
- package/dist/schedule/service/detect.js +0 -29
- package/dist/schedule/service/detect.js.map +0 -1
- package/dist/schedule/service/index.js +0 -361
- package/dist/schedule/service/index.js.map +0 -1
- package/dist/schedule/service/launchd.js +0 -84
- package/dist/schedule/service/launchd.js.map +0 -1
- package/dist/schedule/service/manifest.js +0 -16
- package/dist/schedule/service/manifest.js.map +0 -1
- package/dist/schedule/service/names.js +0 -22
- package/dist/schedule/service/names.js.map +0 -1
- package/dist/schedule/service/quote.js +0 -64
- package/dist/schedule/service/quote.js.map +0 -1
- package/dist/schedule/service/runner.js +0 -31
- package/dist/schedule/service/runner.js.map +0 -1
- package/dist/schedule/service/systemd.js +0 -96
- package/dist/schedule/service/systemd.js.map +0 -1
- package/dist/schedule/service/windows-task.js +0 -199
- package/dist/schedule/service/windows-task.js.map +0 -1
- package/dist/schedule/service/wsl.js +0 -121
- package/dist/schedule/service/wsl.js.map +0 -1
- package/dist/schedule/store/atomic.js +0 -138
- package/dist/schedule/store/atomic.js.map +0 -1
- package/dist/schedule/store/claims.js +0 -57
- package/dist/schedule/store/claims.js.map +0 -1
- package/dist/schedule/store/digest.js +0 -139
- package/dist/schedule/store/digest.js.map +0 -1
- package/dist/schedule/store/history.js +0 -117
- package/dist/schedule/store/history.js.map +0 -1
- package/dist/schedule/store/jobs.js +0 -277
- package/dist/schedule/store/jobs.js.map +0 -1
- package/dist/schedule/store/state.js +0 -38
- package/dist/schedule/store/state.js.map +0 -1
- package/dist/schedule/types.js +0 -33
- package/dist/schedule/types.js.map +0 -1
- package/dist/schedule/visible-source.js +0 -59
- package/dist/schedule/visible-source.js.map +0 -1
- package/dist/skills/audit.js +0 -75
- package/dist/skills/audit.js.map +0 -1
- package/dist/skills/catalog.js +0 -226
- package/dist/skills/catalog.js.map +0 -1
- package/dist/skills/directory.js +0 -51
- package/dist/skills/directory.js.map +0 -1
- package/dist/skills/save.js +0 -344
- package/dist/skills/save.js.map +0 -1
- package/dist/skills/store.js +0 -351
- package/dist/skills/store.js.map +0 -1
- package/dist/termination.js +0 -143
- package/dist/termination.js.map +0 -1
- package/dist/test-support/toolset.js +0 -27
- package/dist/test-support/toolset.js.map +0 -1
- package/dist/tui/AgentExplorer.js +0 -789
- package/dist/tui/AgentExplorer.js.map +0 -1
- package/dist/tui/App.js +0 -8499
- package/dist/tui/App.js.map +0 -1
- package/dist/tui/BackgroundJobsPanel.js +0 -129
- package/dist/tui/BackgroundJobsPanel.js.map +0 -1
- package/dist/tui/BrandHeader.js +0 -14
- package/dist/tui/BrandHeader.js.map +0 -1
- package/dist/tui/Checklist.js +0 -90
- package/dist/tui/Checklist.js.map +0 -1
- package/dist/tui/ChoicePicker.js +0 -64
- package/dist/tui/ChoicePicker.js.map +0 -1
- package/dist/tui/Composer.js +0 -939
- package/dist/tui/Composer.js.map +0 -1
- package/dist/tui/ComposerFrame.js +0 -79
- package/dist/tui/ComposerFrame.js.map +0 -1
- package/dist/tui/CopyPicker.js +0 -19
- package/dist/tui/CopyPicker.js.map +0 -1
- package/dist/tui/EditPromptPicker.js +0 -17
- package/dist/tui/EditPromptPicker.js.map +0 -1
- package/dist/tui/EffortSlider.js +0 -134
- package/dist/tui/EffortSlider.js.map +0 -1
- package/dist/tui/LiveActivity.js +0 -89
- package/dist/tui/LiveActivity.js.map +0 -1
- package/dist/tui/Markdown.js +0 -137
- package/dist/tui/Markdown.js.map +0 -1
- package/dist/tui/PendingInputPanel.js +0 -108
- package/dist/tui/PendingInputPanel.js.map +0 -1
- package/dist/tui/PermissionOverlay.js +0 -278
- package/dist/tui/PermissionOverlay.js.map +0 -1
- package/dist/tui/Picker.js +0 -1310
- package/dist/tui/Picker.js.map +0 -1
- package/dist/tui/ProviderSetup.js +0 -125
- package/dist/tui/ProviderSetup.js.map +0 -1
- package/dist/tui/ResumePicker.js +0 -34
- package/dist/tui/ResumePicker.js.map +0 -1
- package/dist/tui/SaveSkillOverlay.js +0 -118
- package/dist/tui/SaveSkillOverlay.js.map +0 -1
- package/dist/tui/ScheduleReviewOverlay.js +0 -166
- package/dist/tui/ScheduleReviewOverlay.js.map +0 -1
- package/dist/tui/StatusBar.js +0 -182
- package/dist/tui/StatusBar.js.map +0 -1
- package/dist/tui/StatusPanel.js +0 -11
- package/dist/tui/StatusPanel.js.map +0 -1
- package/dist/tui/TaskList.js +0 -43
- package/dist/tui/TaskList.js.map +0 -1
- package/dist/tui/TextPrompt.js +0 -185
- package/dist/tui/TextPrompt.js.map +0 -1
- package/dist/tui/ToolOutputViewer.js +0 -39
- package/dist/tui/ToolOutputViewer.js.map +0 -1
- package/dist/tui/Transcript.js +0 -235
- package/dist/tui/Transcript.js.map +0 -1
- package/dist/tui/TrustPrompt.js +0 -13
- package/dist/tui/TrustPrompt.js.map +0 -1
- package/dist/tui/ViewportBound.js +0 -55
- package/dist/tui/ViewportBound.js.map +0 -1
- package/dist/tui/agent-transcript-rows.js +0 -115
- package/dist/tui/agent-transcript-rows.js.map +0 -1
- package/dist/tui/agent.js +0 -4301
- package/dist/tui/agent.js.map +0 -1
- package/dist/tui/browser-notices.js +0 -107
- package/dist/tui/browser-notices.js.map +0 -1
- package/dist/tui/choice-selection.js +0 -38
- package/dist/tui/choice-selection.js.map +0 -1
- package/dist/tui/compact-transcript.js +0 -46
- package/dist/tui/compact-transcript.js.map +0 -1
- package/dist/tui/consent-timing.js +0 -48
- package/dist/tui/consent-timing.js.map +0 -1
- package/dist/tui/conversation-evidence-view.js +0 -96
- package/dist/tui/conversation-evidence-view.js.map +0 -1
- package/dist/tui/conversation-history.js +0 -33
- package/dist/tui/conversation-history.js.map +0 -1
- package/dist/tui/copy-targets.js +0 -189
- package/dist/tui/copy-targets.js.map +0 -1
- package/dist/tui/credential-entry.js +0 -134
- package/dist/tui/credential-entry.js.map +0 -1
- package/dist/tui/edit-prompts.js +0 -35
- package/dist/tui/edit-prompts.js.map +0 -1
- package/dist/tui/exit-summary.js +0 -30
- package/dist/tui/exit-summary.js.map +0 -1
- package/dist/tui/external-editor.js +0 -169
- package/dist/tui/external-editor.js.map +0 -1
- package/dist/tui/hypermode.js +0 -58
- package/dist/tui/hypermode.js.map +0 -1
- package/dist/tui/index.js +0 -81
- package/dist/tui/index.js.map +0 -1
- package/dist/tui/live-window.js +0 -281
- package/dist/tui/live-window.js.map +0 -1
- package/dist/tui/log-pane.js +0 -100
- package/dist/tui/log-pane.js.map +0 -1
- package/dist/tui/login-prompt.js +0 -105
- package/dist/tui/login-prompt.js.map +0 -1
- package/dist/tui/logo.js +0 -9
- package/dist/tui/logo.js.map +0 -1
- package/dist/tui/markdown-block-cache.js +0 -76
- package/dist/tui/markdown-block-cache.js.map +0 -1
- package/dist/tui/markdown-table.js +0 -175
- package/dist/tui/markdown-table.js.map +0 -1
- package/dist/tui/markdown-wrap.js +0 -189
- package/dist/tui/markdown-wrap.js.map +0 -1
- package/dist/tui/markdownParser.js +0 -237
- package/dist/tui/markdownParser.js.map +0 -1
- package/dist/tui/mentions.js +0 -150
- package/dist/tui/mentions.js.map +0 -1
- package/dist/tui/model-catalogue-view.js +0 -75
- package/dist/tui/model-catalogue-view.js.map +0 -1
- package/dist/tui/model-choices.js +0 -157
- package/dist/tui/model-choices.js.map +0 -1
- package/dist/tui/model-search.js +0 -28
- package/dist/tui/model-search.js.map +0 -1
- package/dist/tui/model-selection-intent.js +0 -96
- package/dist/tui/model-selection-intent.js.map +0 -1
- package/dist/tui/model-switch-tool.js +0 -74
- package/dist/tui/model-switch-tool.js.map +0 -1
- package/dist/tui/model-switch.js +0 -106
- package/dist/tui/model-switch.js.map +0 -1
- package/dist/tui/notices.js +0 -27
- package/dist/tui/notices.js.map +0 -1
- package/dist/tui/open-browser.js +0 -147
- package/dist/tui/open-browser.js.map +0 -1
- package/dist/tui/permission-review.js +0 -858
- package/dist/tui/permission-review.js.map +0 -1
- package/dist/tui/plugin-view.js +0 -59
- package/dist/tui/plugin-view.js.map +0 -1
- package/dist/tui/provider-list.js +0 -327
- package/dist/tui/provider-list.js.map +0 -1
- package/dist/tui/provider-selection.js +0 -16
- package/dist/tui/provider-selection.js.map +0 -1
- package/dist/tui/schedule/host-commands.js +0 -428
- package/dist/tui/schedule/host-commands.js.map +0 -1
- package/dist/tui/schedule/integration.js +0 -150
- package/dist/tui/schedule/integration.js.map +0 -1
- package/dist/tui/schedule/loop-host.js +0 -153
- package/dist/tui/schedule/loop-host.js.map +0 -1
- package/dist/tui/schedule/resume.js +0 -333
- package/dist/tui/schedule/resume.js.map +0 -1
- package/dist/tui/schedule/startup.js +0 -121
- package/dist/tui/schedule/startup.js.map +0 -1
- package/dist/tui/schedule/tool-host.js +0 -619
- package/dist/tui/schedule/tool-host.js.map +0 -1
- package/dist/tui/selection-window.js +0 -37
- package/dist/tui/selection-window.js.map +0 -1
- package/dist/tui/shell-escape.js +0 -110
- package/dist/tui/shell-escape.js.map +0 -1
- package/dist/tui/skills/learning.js +0 -131
- package/dist/tui/skills/learning.js.map +0 -1
- package/dist/tui/skills/suggest-setting.js +0 -55
- package/dist/tui/skills/suggest-setting.js.map +0 -1
- package/dist/tui/skills/suggestion-ledger.js +0 -52
- package/dist/tui/skills/suggestion-ledger.js.map +0 -1
- package/dist/tui/slashCommands.js +0 -1588
- package/dist/tui/slashCommands.js.map +0 -1
- package/dist/tui/status-card.js +0 -30
- package/dist/tui/status-card.js.map +0 -1
- package/dist/tui/status-panel-layout.js +0 -42
- package/dist/tui/status-panel-layout.js.map +0 -1
- package/dist/tui/stream-blocks.js +0 -187
- package/dist/tui/stream-blocks.js.map +0 -1
- package/dist/tui/task-activity.js +0 -157
- package/dist/tui/task-activity.js.map +0 -1
- package/dist/tui/terminal-choice-text.js +0 -118
- package/dist/tui/terminal-choice-text.js.map +0 -1
- package/dist/tui/terminal-display.js +0 -65
- package/dist/tui/terminal-display.js.map +0 -1
- package/dist/tui/terminal-hyperlinks.js +0 -70
- package/dist/tui/terminal-hyperlinks.js.map +0 -1
- package/dist/tui/theme.js +0 -34
- package/dist/tui/theme.js.map +0 -1
- package/dist/tui/triggers/analyze.js +0 -221
- package/dist/tui/triggers/analyze.js.map +0 -1
- package/dist/tui/triggers/context-text.js +0 -44
- package/dist/tui/triggers/context-text.js.map +0 -1
- package/dist/tui/triggers/copy.js +0 -163
- package/dist/tui/triggers/copy.js.map +0 -1
- package/dist/tui/triggers/detect.js +0 -295
- package/dist/tui/triggers/detect.js.map +0 -1
- package/dist/tui/triggers/fold.js +0 -44
- package/dist/tui/triggers/fold.js.map +0 -1
- package/dist/tui/triggers/pattern.js +0 -243
- package/dist/tui/triggers/pattern.js.map +0 -1
- package/dist/tui/triggers/provenance.js +0 -98
- package/dist/tui/triggers/provenance.js.map +0 -1
- package/dist/tui/triggers/registry.js +0 -164
- package/dist/tui/triggers/registry.js.map +0 -1
- package/dist/tui/triggers/setting.js +0 -61
- package/dist/tui/triggers/setting.js.map +0 -1
- package/dist/tui/triggers/verbs.js +0 -140
- package/dist/tui/triggers/verbs.js.map +0 -1
- package/dist/tui/turn-interruption.js +0 -160
- package/dist/tui/turn-interruption.js.map +0 -1
- package/dist/tui/turn-limits-settings.js +0 -88
- package/dist/tui/turn-limits-settings.js.map +0 -1
- package/dist/tui/types.js +0 -7
- package/dist/tui/types.js.map +0 -1
- package/dist/tui/units.js +0 -20
- package/dist/tui/units.js.map +0 -1
- package/dist/tui/use-selection-index.js +0 -13
- package/dist/tui/use-selection-index.js.map +0 -1
- package/dist/tui/web-activity.js +0 -105
- package/dist/tui/web-activity.js.map +0 -1
- package/dist/tui/workspace-diff.js +0 -101
- package/dist/tui/workspace-diff.js.map +0 -1
- package/dist/tui/workspace-review.js +0 -67
- package/dist/tui/workspace-review.js.map +0 -1
- package/dist/user-commands/store.js +0 -235
- package/dist/user-commands/store.js.map +0 -1
- package/dist/version.js +0 -23
- package/dist/version.js.map +0 -1
|
@@ -1,759 +0,0 @@
|
|
|
1
|
-
import { genericLabel, isTerminalAgentTaskState, } from '@namzu/sdk';
|
|
2
|
-
const MAX_RETAINED_AGENTS = 80;
|
|
3
|
-
const MAX_TRANSCRIPT_ROWS = 120;
|
|
4
|
-
const MAX_ROW_CODE_UNITS = 2_048;
|
|
5
|
-
const MAX_PROMPT_CODE_UNITS = 4_096;
|
|
6
|
-
export const MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS = 240;
|
|
7
|
-
export const MAX_AGENT_PHASE_ORDER = 10_000;
|
|
8
|
-
const MAX_IDENTITY_LABEL_CODE_UNITS = 4_096;
|
|
9
|
-
const NOTIFY_INTERVAL_MS = 100;
|
|
10
|
-
/**
|
|
11
|
-
* Longest narration line kept. One line of commentary, not a message: a
|
|
12
|
-
* parent that writes a paragraph gets it clipped with the same marker every
|
|
13
|
-
* other retained label here carries.
|
|
14
|
-
*/
|
|
15
|
-
export const MAX_NARRATION_CODE_UNITS = 200;
|
|
16
|
-
/**
|
|
17
|
-
* Narration lines retained at once, oldest dropped first.
|
|
18
|
-
*
|
|
19
|
-
* Small deliberately. The lines render in the most valuable rows on the
|
|
20
|
-
* screen — between the composer footer and the agent rail — so a parent that
|
|
21
|
-
* keeps talking must cost the operator a FIXED number of rows rather than a
|
|
22
|
-
* growing one. Raising this trades conversation for commentary.
|
|
23
|
-
*/
|
|
24
|
-
export const MAX_RETAINED_NARRATION = 3;
|
|
25
|
-
/**
|
|
26
|
-
* Appended to a replayed transcript whose saved records could not all be
|
|
27
|
-
* read, so a short transcript is never mistaken for a short session. Said in the
|
|
28
|
-
* transcript itself rather than only in a header, because the rows are what
|
|
29
|
-
* an operator reads as the whole of what happened.
|
|
30
|
-
*/
|
|
31
|
-
export const PARTIAL_EVIDENCE_NOTICE = 'Saved transcript is damaged or truncated; this replay shows only the records that could be read.';
|
|
32
|
-
export const DEFAULT_AGENT_WORKFLOW = 'Delegated work';
|
|
33
|
-
export const DEFAULT_AGENT_PHASE = 'Work';
|
|
34
|
-
/**
|
|
35
|
-
* Projects each child stream immediately and retains only bounded display
|
|
36
|
-
* state. Raw session events never accumulate here: images, tool inputs and token
|
|
37
|
-
* deltas can be arbitrarily large and the parent TUI must not inherit them.
|
|
38
|
-
*/
|
|
39
|
-
export class SubagentActivityMonitor {
|
|
40
|
-
options;
|
|
41
|
-
records = new Map();
|
|
42
|
-
listeners = new Set();
|
|
43
|
-
/** Bounded parent commentary, oldest first. See {@link SubagentNarrationLine}. */
|
|
44
|
-
narration = [];
|
|
45
|
-
narrationCounter = 0;
|
|
46
|
-
epoch = 0;
|
|
47
|
-
counter = 0;
|
|
48
|
-
fallbackBatchCounter = 0;
|
|
49
|
-
phaseCounter = 0;
|
|
50
|
-
messageCounter = 0;
|
|
51
|
-
phases = new Map();
|
|
52
|
-
notifyTimer;
|
|
53
|
-
closed = false;
|
|
54
|
-
/**
|
|
55
|
-
* `replay: true` seeds this monitor from saved evidence instead of a live
|
|
56
|
-
* child stream. Two things change and nothing else: notifications stop
|
|
57
|
-
* coalescing on a timer (there is no stream to coalesce, and a replay
|
|
58
|
-
* monitor is read once by whoever built it), and every row it publishes is
|
|
59
|
-
* marked {@link SubagentActivity.replayed}. The projection, the grouping
|
|
60
|
-
* and every bound are the ones the live path uses.
|
|
61
|
-
*/
|
|
62
|
-
constructor(options = {}) {
|
|
63
|
-
this.options = options;
|
|
64
|
-
}
|
|
65
|
-
begin(input) {
|
|
66
|
-
return this.open(input).tracker;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* `begin()`, plus the record it opened.
|
|
70
|
-
*
|
|
71
|
-
* Split out for {@link SubagentActivityMonitor.replay}, which has to reach
|
|
72
|
-
* the record after the events are in to write the facts the parent's log
|
|
73
|
-
* holds and the child's transcript does not. Nothing else needs it, and nothing outside
|
|
74
|
-
* this class gets it: a caller holding a `MutableActivity` could edit
|
|
75
|
-
* around every bound this file enforces.
|
|
76
|
-
*/
|
|
77
|
-
open(input, suppliedViewId) {
|
|
78
|
-
const epoch = this.epoch;
|
|
79
|
-
const order = ++this.counter;
|
|
80
|
-
// A replay allocates its own monitor, so its counter starts at one
|
|
81
|
-
// beside a live monitor's. An `agent-1` from each would be two
|
|
82
|
-
// different children answering to one id, and every surface here looks
|
|
83
|
-
// a child up by this string. `replay()` supplies an id derived from the
|
|
84
|
-
// child's session instead: unique against the live path by construction,
|
|
85
|
-
// and identical across re-reads, so re-opening the cockpit does not
|
|
86
|
-
// move the operator's selection off the row they were reading.
|
|
87
|
-
const viewId = suppliedViewId ?? `agent-${order}`;
|
|
88
|
-
const workflowId = normalizedLabel(input.workflowId, 'session', MAX_IDENTITY_LABEL_CODE_UNITS);
|
|
89
|
-
const requestedBatchId = input.batchId?.trim();
|
|
90
|
-
const batchId = requestedBatchId
|
|
91
|
-
? bounded(requestedBatchId, MAX_IDENTITY_LABEL_CODE_UNITS)
|
|
92
|
-
: this.fallbackBatchId(workflowId);
|
|
93
|
-
const labels = displayLabels(input);
|
|
94
|
-
const grouping = this.group(workflowId, batchId, labels);
|
|
95
|
-
const record = {
|
|
96
|
-
epoch,
|
|
97
|
-
order,
|
|
98
|
-
viewId,
|
|
99
|
-
agentId: bounded(input.agentId, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS),
|
|
100
|
-
...(input.model?.trim()
|
|
101
|
-
? { model: bounded(input.model.trim(), MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS) }
|
|
102
|
-
: {}),
|
|
103
|
-
description: bounded(input.description, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS),
|
|
104
|
-
prompt: bounded(input.prompt, MAX_PROMPT_CODE_UNITS),
|
|
105
|
-
batchId,
|
|
106
|
-
...(input.toolUseId
|
|
107
|
-
? { toolUseId: bounded(input.toolUseId, MAX_IDENTITY_LABEL_CODE_UNITS) }
|
|
108
|
-
: {}),
|
|
109
|
-
workflowId,
|
|
110
|
-
...grouping,
|
|
111
|
-
labels,
|
|
112
|
-
status: 'starting',
|
|
113
|
-
startedAt: Date.now(),
|
|
114
|
-
rows: [],
|
|
115
|
-
closed: false,
|
|
116
|
-
};
|
|
117
|
-
this.records.set(viewId, record);
|
|
118
|
-
this.prune();
|
|
119
|
-
this.notifyNow();
|
|
120
|
-
const current = () => {
|
|
121
|
-
if (this.closed || epoch !== this.epoch || record.closed)
|
|
122
|
-
return undefined;
|
|
123
|
-
return this.records.get(viewId) === record ? record : undefined;
|
|
124
|
-
};
|
|
125
|
-
const tracker = {
|
|
126
|
-
onEvent: (event) => {
|
|
127
|
-
const owned = current();
|
|
128
|
-
if (!owned)
|
|
129
|
-
return;
|
|
130
|
-
if (event.type === 'agent_pending')
|
|
131
|
-
this.relabel(owned, event);
|
|
132
|
-
projectEvent(owned, event);
|
|
133
|
-
this.scheduleNotify();
|
|
134
|
-
},
|
|
135
|
-
settle: (handle) => {
|
|
136
|
-
const owned = current();
|
|
137
|
-
if (!owned)
|
|
138
|
-
return;
|
|
139
|
-
owned.taskId = String(handle.taskId);
|
|
140
|
-
owned.agentId = bounded(handle.agentId, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS);
|
|
141
|
-
owned.status = statusOf(handle);
|
|
142
|
-
if (!isTerminal(owned.status)) {
|
|
143
|
-
owned.latestActivity = terminalLabel(owned.status);
|
|
144
|
-
this.notifyNow();
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
owned.completedAt = handle.completedAt ?? Date.now();
|
|
148
|
-
owned.latestActivity =
|
|
149
|
-
handle.result?.stopReason && handle.result.stopReason !== 'end_turn'
|
|
150
|
-
? `Stopped · ${handle.result.stopReason}`
|
|
151
|
-
: terminalLabel(owned.status);
|
|
152
|
-
if (owned.rows.length === 0) {
|
|
153
|
-
pushRow(owned, {
|
|
154
|
-
id: `${owned.viewId}:unavailable`,
|
|
155
|
-
kind: 'system',
|
|
156
|
-
text: 'Live transcript was not exposed by this scheduler; the settled result remains on the parent Agent call.',
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
owned.closed = true;
|
|
160
|
-
this.prune();
|
|
161
|
-
this.notifyNow();
|
|
162
|
-
},
|
|
163
|
-
fail: (error) => {
|
|
164
|
-
const owned = current();
|
|
165
|
-
if (!owned)
|
|
166
|
-
return;
|
|
167
|
-
const cancelled = cancellationLike(error);
|
|
168
|
-
owned.status = cancelled ? 'cancelled' : 'failed';
|
|
169
|
-
owned.completedAt = Date.now();
|
|
170
|
-
owned.latestActivity = terminalLabel(owned.status);
|
|
171
|
-
pushRow(owned, {
|
|
172
|
-
id: `${owned.viewId}:failure`,
|
|
173
|
-
kind: 'system',
|
|
174
|
-
text: bounded(errorMessage(error), MAX_ROW_CODE_UNITS),
|
|
175
|
-
});
|
|
176
|
-
owned.closed = true;
|
|
177
|
-
this.prune();
|
|
178
|
-
this.notifyNow();
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
return { record, tracker };
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Rebuilds one finished child from the evidence it left on disk, and
|
|
185
|
-
* retains it here like any other row.
|
|
186
|
-
*
|
|
187
|
-
* The load-bearing line is the `tracker.onEvent` loop: saved events go
|
|
188
|
-
* through the SAME entry point a live child's events do, so the cockpit
|
|
189
|
-
* cannot drift from a replay. There is no second projection to keep in
|
|
190
|
-
* step, and a field added to the live path appears here for free.
|
|
191
|
-
*
|
|
192
|
-
* What the events cannot supply, the caller passes from the parent's log,
|
|
193
|
-
* and it is written AFTER the loop because that log is the authority on
|
|
194
|
-
* the two facts a child's own transcript never records: a child's
|
|
195
|
-
* delegation outcome and its final totals are recorded by the PARENT
|
|
196
|
-
* (`child_session_ended`), which does not enter the child's log. Without this the replay would end
|
|
197
|
-
* on whatever the last durable event said and show a finished child as
|
|
198
|
-
* still working.
|
|
199
|
-
*
|
|
200
|
-
* Only meaningful on a monitor constructed with `replay: true`; on a live
|
|
201
|
-
* one it would publish a saved row as though a child were attached to it.
|
|
202
|
-
*/
|
|
203
|
-
replay(input, events) {
|
|
204
|
-
const { record, tracker } = this.open({
|
|
205
|
-
agentId: input.agentId,
|
|
206
|
-
...(input.model ? { model: input.model } : {}),
|
|
207
|
-
description: input.description,
|
|
208
|
-
prompt: input.prompt ?? '',
|
|
209
|
-
...(input.batchId ? { batchId: input.batchId } : {}),
|
|
210
|
-
...(input.workflowId ? { workflowId: input.workflowId } : {}),
|
|
211
|
-
...(input.workflow ? { workflow: input.workflow } : {}),
|
|
212
|
-
...(input.phase ? { phase: input.phase } : {}),
|
|
213
|
-
}, input.sessionId
|
|
214
|
-
? bounded(`saved-${input.sessionId}`, MAX_IDENTITY_LABEL_CODE_UNITS)
|
|
215
|
-
: undefined);
|
|
216
|
-
for (const event of events)
|
|
217
|
-
tracker.onEvent(event);
|
|
218
|
-
if (!record.sessionId && input.sessionId) {
|
|
219
|
-
record.sessionId = bounded(input.sessionId, MAX_IDENTITY_LABEL_CODE_UNITS);
|
|
220
|
-
}
|
|
221
|
-
if (input.tokens !== undefined)
|
|
222
|
-
record.tokens = input.tokens;
|
|
223
|
-
if (input.status)
|
|
224
|
-
record.status = input.status;
|
|
225
|
-
if (input.startedAt !== undefined)
|
|
226
|
-
record.startedAt = input.startedAt;
|
|
227
|
-
if (input.completedAt !== undefined)
|
|
228
|
-
record.completedAt = input.completedAt;
|
|
229
|
-
// The same label `settle()` writes for a live child, for the same
|
|
230
|
-
// reason: the last streamed activity line describes a moment that is
|
|
231
|
-
// over, and leaving it up reads as a child still doing that thing.
|
|
232
|
-
if (isTerminal(record.status))
|
|
233
|
-
record.latestActivity = terminalLabel(record.status);
|
|
234
|
-
if (input.partial) {
|
|
235
|
-
pushRow(record, {
|
|
236
|
-
id: `${record.viewId}:partial`,
|
|
237
|
-
kind: 'system',
|
|
238
|
-
text: PARTIAL_EVIDENCE_NOTICE,
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
record.closed = true;
|
|
242
|
-
this.prune();
|
|
243
|
-
return this.project(record);
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Pushes a bounded system row recording a message delivered into a
|
|
247
|
-
* running child, through the same `pushRow` path every other transcript
|
|
248
|
-
* row uses. Callers own delivery: this only records that it happened, so
|
|
249
|
-
* it must run after the send it announces has actually succeeded — a
|
|
250
|
-
* refused or unowned send must never call this. A `taskId` with no
|
|
251
|
-
* matching record (already pruned, or never tracked) is a silent no-op:
|
|
252
|
-
* there is no row left to explain what was sent.
|
|
253
|
-
*/
|
|
254
|
-
recordMessage(taskId, text, direction) {
|
|
255
|
-
if (this.closed)
|
|
256
|
-
return;
|
|
257
|
-
const record = [...this.records.values()].find((entry) => entry.taskId === taskId);
|
|
258
|
-
if (!record)
|
|
259
|
-
return;
|
|
260
|
-
pushRow(record, {
|
|
261
|
-
id: `${record.viewId}:message:${++this.messageCounter}`,
|
|
262
|
-
kind: 'system',
|
|
263
|
-
text: bounded(text, MAX_ROW_CODE_UNITS),
|
|
264
|
-
direction,
|
|
265
|
-
});
|
|
266
|
-
this.notifyNow();
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Retains one line of PARENT-authored commentary for the rail to show.
|
|
270
|
-
*
|
|
271
|
-
* Callers are the parent's own tool call and nothing else — see
|
|
272
|
-
* {@link SubagentNarrationLine} for why that boundary is the design rather
|
|
273
|
-
* than a detail. Blank or control-only text is dropped instead of retained,
|
|
274
|
-
* so a row is never spent on a line with nothing in it, and the answer
|
|
275
|
-
* names which of the two things happened — see
|
|
276
|
-
* {@link SubagentNarrationOutcome}.
|
|
277
|
-
*
|
|
278
|
-
* Independent of the child records: narration is commentary, so it neither
|
|
279
|
-
* needs a child to attach to nor disappears when the last one settles —
|
|
280
|
-
* which is exactly when a line explaining what happens next is worth most.
|
|
281
|
-
*/
|
|
282
|
-
narrate(text) {
|
|
283
|
-
if (this.closed)
|
|
284
|
-
return { kind: 'closed' };
|
|
285
|
-
const line = normalizedLabel(text, '', MAX_NARRATION_CODE_UNITS);
|
|
286
|
-
if (!line)
|
|
287
|
-
return { kind: 'empty' };
|
|
288
|
-
const entry = Object.freeze({
|
|
289
|
-
id: `narration-${++this.narrationCounter}`,
|
|
290
|
-
text: line,
|
|
291
|
-
at: Date.now(),
|
|
292
|
-
});
|
|
293
|
-
this.narration.push(entry);
|
|
294
|
-
if (this.narration.length > MAX_RETAINED_NARRATION)
|
|
295
|
-
this.narration.splice(0, this.narration.length - MAX_RETAINED_NARRATION);
|
|
296
|
-
this.notifyNow();
|
|
297
|
-
return { kind: 'shown', line: entry };
|
|
298
|
-
}
|
|
299
|
-
getNarration() {
|
|
300
|
-
return [...this.narration];
|
|
301
|
-
}
|
|
302
|
-
getSnapshot() {
|
|
303
|
-
return [...this.records.values()]
|
|
304
|
-
.sort((left, right) => {
|
|
305
|
-
const live = Number(isTerminal(left.status)) - Number(isTerminal(right.status));
|
|
306
|
-
return live !== 0 ? live : left.order - right.order;
|
|
307
|
-
})
|
|
308
|
-
.map((record) => this.project(record));
|
|
309
|
-
}
|
|
310
|
-
/** One record as the frozen, bounded shape every surface reads. */
|
|
311
|
-
project(record) {
|
|
312
|
-
return Object.freeze({
|
|
313
|
-
viewId: record.viewId,
|
|
314
|
-
...(record.taskId ? { taskId: record.taskId } : {}),
|
|
315
|
-
...(record.sessionId ? { sessionId: record.sessionId } : {}),
|
|
316
|
-
agentId: record.agentId,
|
|
317
|
-
...(record.model ? { model: record.model } : {}),
|
|
318
|
-
...(record.tokens !== undefined ? { tokens: record.tokens } : {}),
|
|
319
|
-
...(record.toolCalls !== undefined ? { toolCalls: record.toolCalls } : {}),
|
|
320
|
-
description: record.description,
|
|
321
|
-
prompt: record.prompt,
|
|
322
|
-
batchId: record.batchId,
|
|
323
|
-
...(record.toolUseId ? { toolUseId: record.toolUseId } : {}),
|
|
324
|
-
workflowId: record.workflowId,
|
|
325
|
-
workflowGroupId: record.workflowGroupId,
|
|
326
|
-
phaseId: record.phaseId,
|
|
327
|
-
workflow: record.workflow,
|
|
328
|
-
phase: record.phase,
|
|
329
|
-
...(record.phaseOrder !== undefined ? { phaseOrder: record.phaseOrder } : {}),
|
|
330
|
-
...(record.phaseDetail !== undefined ? { phaseDetail: record.phaseDetail } : {}),
|
|
331
|
-
phaseSequence: record.phaseSequence,
|
|
332
|
-
status: record.status,
|
|
333
|
-
...(this.options.replay ? { replayed: true } : {}),
|
|
334
|
-
startedAt: record.startedAt,
|
|
335
|
-
...(record.completedAt !== undefined ? { completedAt: record.completedAt } : {}),
|
|
336
|
-
...(record.latestActivity ? { latestActivity: record.latestActivity } : {}),
|
|
337
|
-
transcript: Object.freeze(record.rows.map((row) => Object.freeze({ ...row }))),
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
subscribe(listener) {
|
|
341
|
-
this.listeners.add(listener);
|
|
342
|
-
return () => this.listeners.delete(listener);
|
|
343
|
-
}
|
|
344
|
-
reset() {
|
|
345
|
-
this.epoch += 1;
|
|
346
|
-
this.records.clear();
|
|
347
|
-
this.phases.clear();
|
|
348
|
-
this.phaseCounter = 0;
|
|
349
|
-
// Commentary belongs to the conversation it was written in, like every
|
|
350
|
-
// other buffer here. The counter is NOT rewound: ids stay unique across
|
|
351
|
-
// scopes, so a renderer holding a stale key never matches a new line.
|
|
352
|
-
this.narration.length = 0;
|
|
353
|
-
this.clearNotifyTimer();
|
|
354
|
-
this.notifyNow();
|
|
355
|
-
}
|
|
356
|
-
close() {
|
|
357
|
-
if (this.closed)
|
|
358
|
-
return;
|
|
359
|
-
this.closed = true;
|
|
360
|
-
this.records.clear();
|
|
361
|
-
this.phases.clear();
|
|
362
|
-
this.narration.length = 0;
|
|
363
|
-
this.clearNotifyTimer();
|
|
364
|
-
this.notifyNow();
|
|
365
|
-
this.listeners.clear();
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* Resolves display labels to this monitor's grouping identities.
|
|
369
|
-
*
|
|
370
|
-
* Phase identity is allocated here and only here, first-writer-wins per
|
|
371
|
-
* `[workflowGroupId, phase]`: the first agent to name a phase fixes its
|
|
372
|
-
* id, its display order and its detail text, and a later sibling that
|
|
373
|
-
* disagrees joins the phase rather than changing it. That is what keeps a
|
|
374
|
-
* pane from flickering between two wordings of the same stage, and it is
|
|
375
|
-
* also why calling this twice for one agent with the same labels is
|
|
376
|
-
* exactly a no-op — the second call finds the definition the first made.
|
|
377
|
-
*
|
|
378
|
-
* Definitions live for the conversation: `reset()` and `dispose()` clear
|
|
379
|
-
* them and nothing prunes them in between, so the map holds one entry per
|
|
380
|
-
* distinct `[workflowGroupId, phase]` anything has named. A host that
|
|
381
|
-
* labels one child differently at `begin()` and on its event defines two of
|
|
382
|
-
* them; the size follows how many wordings a host invents, not how long the
|
|
383
|
-
* session runs.
|
|
384
|
-
*/
|
|
385
|
-
group(workflowId, batchId, labels) {
|
|
386
|
-
const workflowIdentity = normalizedLabel(labels.workflow, DEFAULT_AGENT_WORKFLOW, MAX_IDENTITY_LABEL_CODE_UNITS);
|
|
387
|
-
const phaseIdentity = normalizedLabel(labels.phase, DEFAULT_AGENT_PHASE, MAX_IDENTITY_LABEL_CODE_UNITS);
|
|
388
|
-
// A tool batch is a concurrency boundary, not a workflow phase. Explicit
|
|
389
|
-
// workflow annotations may span several batches within their parent turn;
|
|
390
|
-
// unrelated unlabelled batches have no evidence of a shared workflow.
|
|
391
|
-
const workflowGroupId = JSON.stringify(labels.workflow?.trim()
|
|
392
|
-
? [workflowId, 'workflow', workflowIdentity]
|
|
393
|
-
: [workflowId, 'batch', batchId]);
|
|
394
|
-
const phaseKey = JSON.stringify([workflowGroupId, phaseIdentity]);
|
|
395
|
-
let phaseDefinition = this.phases.get(phaseKey);
|
|
396
|
-
if (!phaseDefinition) {
|
|
397
|
-
const sequence = ++this.phaseCounter;
|
|
398
|
-
const order = normalizedPhaseOrder(labels.phaseOrder);
|
|
399
|
-
// Reuses normalizedLabel's own trim/control-strip/bound pipeline with an
|
|
400
|
-
// empty fallback, so an absent or blank detail collapses to `undefined`
|
|
401
|
-
// rather than a visible placeholder.
|
|
402
|
-
const detail = normalizedLabel(labels.phaseDetail, '', MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS) || undefined;
|
|
403
|
-
phaseDefinition = {
|
|
404
|
-
// Namespaced for the same reason `viewId` is: phases are grouped by
|
|
405
|
-
// this id ALONE, so a replay monitor's `phase-1` and a live one's
|
|
406
|
-
// would fold two unrelated phases into one row on screen.
|
|
407
|
-
id: `${this.options.replay ? 'saved-phase' : 'phase'}-${sequence}`,
|
|
408
|
-
...(order !== undefined ? { order } : {}),
|
|
409
|
-
...(detail !== undefined ? { detail } : {}),
|
|
410
|
-
sequence,
|
|
411
|
-
};
|
|
412
|
-
this.phases.set(phaseKey, phaseDefinition);
|
|
413
|
-
}
|
|
414
|
-
return {
|
|
415
|
-
workflowGroupId,
|
|
416
|
-
phaseId: phaseDefinition.id,
|
|
417
|
-
workflow: bounded(workflowIdentity, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS),
|
|
418
|
-
phase: bounded(phaseIdentity, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS),
|
|
419
|
-
...(phaseDefinition.order !== undefined ? { phaseOrder: phaseDefinition.order } : {}),
|
|
420
|
-
...(phaseDefinition.detail !== undefined ? { phaseDetail: phaseDefinition.detail } : {}),
|
|
421
|
-
phaseSequence: phaseDefinition.sequence,
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Re-reads the grouping from the labels the child's own `agent_pending`
|
|
426
|
-
* carried.
|
|
427
|
-
*
|
|
428
|
-
* The event is the copy that leaves this process, so a host that supplies
|
|
429
|
-
* labels there and nowhere else still gets grouped. The `begin()` values
|
|
430
|
-
* stay the seed and are merged under the event's, which is what keeps an
|
|
431
|
-
* agent that fails before `agent_pending`
|
|
432
|
-
* ever arrives grouped where the operator saw it launch, and what stops a
|
|
433
|
-
* partially labelled event from erasing a label it never mentioned.
|
|
434
|
-
*
|
|
435
|
-
* An event naming none of the four changes nothing at all: the common case
|
|
436
|
-
* is the same labels arriving twice, where `group()` returns the definition
|
|
437
|
-
* `begin()` already made and every field is rewritten to the value it
|
|
438
|
-
* already held.
|
|
439
|
-
*/
|
|
440
|
-
relabel(record, labels) {
|
|
441
|
-
const supplied = displayLabels(labels);
|
|
442
|
-
if (Object.keys(supplied).length === 0)
|
|
443
|
-
return;
|
|
444
|
-
const merged = { ...record.labels, ...supplied };
|
|
445
|
-
const grouping = this.group(record.workflowId, record.batchId, merged);
|
|
446
|
-
record.workflowGroupId = grouping.workflowGroupId;
|
|
447
|
-
record.phaseId = grouping.phaseId;
|
|
448
|
-
record.workflow = grouping.workflow;
|
|
449
|
-
record.phase = grouping.phase;
|
|
450
|
-
record.phaseOrder = grouping.phaseOrder;
|
|
451
|
-
record.phaseDetail = grouping.phaseDetail;
|
|
452
|
-
record.phaseSequence = grouping.phaseSequence;
|
|
453
|
-
record.labels = merged;
|
|
454
|
-
}
|
|
455
|
-
fallbackBatchId(workflowId) {
|
|
456
|
-
for (const record of this.records.values()) {
|
|
457
|
-
if (record.workflowId === workflowId && !isTerminal(record.status))
|
|
458
|
-
return record.batchId;
|
|
459
|
-
}
|
|
460
|
-
return `batch-${++this.fallbackBatchCounter}`;
|
|
461
|
-
}
|
|
462
|
-
prune() {
|
|
463
|
-
const terminal = [...this.records.values()]
|
|
464
|
-
.filter((record) => isTerminal(record.status))
|
|
465
|
-
.sort((left, right) => left.order - right.order);
|
|
466
|
-
while (terminal.length > MAX_RETAINED_AGENTS) {
|
|
467
|
-
const oldest = terminal.shift();
|
|
468
|
-
if (oldest)
|
|
469
|
-
this.records.delete(oldest.viewId);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
scheduleNotify() {
|
|
473
|
-
if (this.options.replay)
|
|
474
|
-
return;
|
|
475
|
-
if (this.closed || this.notifyTimer)
|
|
476
|
-
return;
|
|
477
|
-
this.notifyTimer = setTimeout(() => {
|
|
478
|
-
this.notifyTimer = undefined;
|
|
479
|
-
this.notifyNow();
|
|
480
|
-
}, NOTIFY_INTERVAL_MS);
|
|
481
|
-
this.notifyTimer.unref?.();
|
|
482
|
-
}
|
|
483
|
-
clearNotifyTimer() {
|
|
484
|
-
if (!this.notifyTimer)
|
|
485
|
-
return;
|
|
486
|
-
clearTimeout(this.notifyTimer);
|
|
487
|
-
this.notifyTimer = undefined;
|
|
488
|
-
}
|
|
489
|
-
notifyNow() {
|
|
490
|
-
if (this.notifyTimer)
|
|
491
|
-
this.clearNotifyTimer();
|
|
492
|
-
for (const listener of this.listeners) {
|
|
493
|
-
try {
|
|
494
|
-
listener();
|
|
495
|
-
}
|
|
496
|
-
catch {
|
|
497
|
-
// Observers are projections, never backpressure or authority. One
|
|
498
|
-
// broken renderer must not keep other surfaces from receiving state.
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* The display labels present on an input, with absent ones left out rather
|
|
505
|
-
* than carried as `undefined` keys — the merge in `relabel` is a spread, and
|
|
506
|
-
* an explicit `undefined` there would erase a seeded label instead of leaving
|
|
507
|
-
* it alone. Present-but-empty is kept: `''` and absent are different answers,
|
|
508
|
-
* and only the caller's own `!== undefined` test can tell them apart. No event
|
|
509
|
-
* this repo emits can carry `''` — the agent manager, the scheduler and the SSE
|
|
510
|
-
* transform each drop an empty label by truthiness, the same way they treat
|
|
511
|
-
* `planId` — so that distinction answers a host that builds the event itself.
|
|
512
|
-
*
|
|
513
|
-
* Bounded because the result is RETAINED as a record's seed, and one source of
|
|
514
|
-
* these is now an event rather than this process's own tool call. The bound is
|
|
515
|
-
* the identity ceiling `group()` already truncates at, not the narrower display
|
|
516
|
-
* cap: `group()` derives phase identity from these through `normalizedLabel`,
|
|
517
|
-
* so clipping shorter here would change which phase a long label lands in on
|
|
518
|
-
* the `begin()` path too, and that grouping must not move. Nothing the `Agent`
|
|
519
|
-
* tool can produce reaches either ceiling — its schema caps the three strings
|
|
520
|
-
* at `MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS` — so this is a bound on what an
|
|
521
|
-
* arbitrary host may make this monitor hold, not a clip on a real label.
|
|
522
|
-
*/
|
|
523
|
-
function displayLabels(input) {
|
|
524
|
-
return {
|
|
525
|
-
...(input.workflow !== undefined
|
|
526
|
-
? { workflow: bounded(input.workflow, MAX_IDENTITY_LABEL_CODE_UNITS) }
|
|
527
|
-
: {}),
|
|
528
|
-
...(input.phase !== undefined
|
|
529
|
-
? { phase: bounded(input.phase, MAX_IDENTITY_LABEL_CODE_UNITS) }
|
|
530
|
-
: {}),
|
|
531
|
-
...(input.phaseOrder !== undefined ? { phaseOrder: input.phaseOrder } : {}),
|
|
532
|
-
...(input.phaseDetail !== undefined
|
|
533
|
-
? { phaseDetail: bounded(input.phaseDetail, MAX_IDENTITY_LABEL_CODE_UNITS) }
|
|
534
|
-
: {}),
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
function projectEvent(record, event) {
|
|
538
|
-
switch (event.type) {
|
|
539
|
-
case 'agent_pending':
|
|
540
|
-
record.taskId = String(event.taskId);
|
|
541
|
-
record.agentId = bounded(event.childAgentId, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS);
|
|
542
|
-
record.status = 'queued';
|
|
543
|
-
record.latestActivity = 'Queued';
|
|
544
|
-
return;
|
|
545
|
-
case 'turn_started':
|
|
546
|
-
record.sessionId = String(event.sessionId);
|
|
547
|
-
record.status = 'working';
|
|
548
|
-
record.latestActivity = 'Working';
|
|
549
|
-
return;
|
|
550
|
-
case 'token_usage_updated':
|
|
551
|
-
// `usage` is cumulative spend across the turn; `contextTokens` beside
|
|
552
|
-
// it is the current conversation size and shrinks on compaction —
|
|
553
|
-
// a different question this row never asks. See the event's own
|
|
554
|
-
// doc comment for why conflating the two was a shipped defect.
|
|
555
|
-
record.tokens = event.usage.totalTokens;
|
|
556
|
-
return;
|
|
557
|
-
case 'reasoning_started':
|
|
558
|
-
case 'reasoning_delta':
|
|
559
|
-
record.status = 'working';
|
|
560
|
-
record.latestActivity = 'Thinking';
|
|
561
|
-
return;
|
|
562
|
-
case 'reasoning_completed':
|
|
563
|
-
record.status = 'working';
|
|
564
|
-
record.latestActivity = 'Working';
|
|
565
|
-
return;
|
|
566
|
-
case 'text_delta': {
|
|
567
|
-
record.status = 'working';
|
|
568
|
-
const id = `${record.viewId}:assistant:${event.messageId}`;
|
|
569
|
-
const current = record.rows.at(-1);
|
|
570
|
-
if (current?.kind === 'assistant' && current.id === id) {
|
|
571
|
-
record.rows[record.rows.length - 1] = {
|
|
572
|
-
...current,
|
|
573
|
-
text: appendBounded(current.text, event.text),
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
else {
|
|
577
|
-
pushRow(record, {
|
|
578
|
-
id,
|
|
579
|
-
kind: 'assistant',
|
|
580
|
-
text: bounded(event.text, MAX_ROW_CODE_UNITS),
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
const assistant = record.rows.at(-1);
|
|
584
|
-
const preview = assistant?.kind === 'assistant' ? oneLine(assistant.text) : '';
|
|
585
|
-
record.latestActivity = bounded(preview ? `Answering · ${preview}` : 'Answering', MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS);
|
|
586
|
-
return;
|
|
587
|
-
}
|
|
588
|
-
case 'tool_executing': {
|
|
589
|
-
record.status = 'working';
|
|
590
|
-
record.toolCalls = (record.toolCalls ?? 0) + 1;
|
|
591
|
-
const label = `${event.toolName}(${genericLabel(event.input)})`;
|
|
592
|
-
record.latestActivity = bounded(label, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS);
|
|
593
|
-
pushRow(record, {
|
|
594
|
-
id: `${record.viewId}:tool:${event.toolUseId}`,
|
|
595
|
-
kind: 'tool',
|
|
596
|
-
text: bounded(label, MAX_ROW_CODE_UNITS),
|
|
597
|
-
status: 'working',
|
|
598
|
-
});
|
|
599
|
-
return;
|
|
600
|
-
}
|
|
601
|
-
case 'tool_progress': {
|
|
602
|
-
const id = `${record.viewId}:tool:${event.toolUseId}`;
|
|
603
|
-
const index = record.rows.findIndex((row) => row.id === id);
|
|
604
|
-
if (index < 0)
|
|
605
|
-
return;
|
|
606
|
-
const row = record.rows[index];
|
|
607
|
-
if (!row || row.kind !== 'tool')
|
|
608
|
-
return;
|
|
609
|
-
record.rows[index] = {
|
|
610
|
-
...row,
|
|
611
|
-
detail: bounded(event.message, MAX_ROW_CODE_UNITS),
|
|
612
|
-
};
|
|
613
|
-
record.latestActivity = bounded(event.message, MAX_AGENT_ACTIVITY_LABEL_CODE_UNITS);
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
case 'tool_completed': {
|
|
617
|
-
const id = `${record.viewId}:tool:${event.toolUseId}`;
|
|
618
|
-
const index = record.rows.findIndex((row) => row.id === id);
|
|
619
|
-
if (index >= 0) {
|
|
620
|
-
const row = record.rows[index];
|
|
621
|
-
if (row?.kind === 'tool') {
|
|
622
|
-
record.rows[index] = {
|
|
623
|
-
...row,
|
|
624
|
-
status: event.isError ? 'failed' : 'completed',
|
|
625
|
-
...(event.result ? { detail: bounded(event.result, MAX_ROW_CODE_UNITS) } : {}),
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
record.latestActivity = event.isError ? `${event.toolName} failed` : `${event.toolName} done`;
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
|
-
case 'provider_retry':
|
|
633
|
-
record.latestActivity = `Retrying (${event.attempt}/${event.maxRetries})`;
|
|
634
|
-
return;
|
|
635
|
-
case 'agent_completed':
|
|
636
|
-
record.status =
|
|
637
|
-
event.result.status === 'completed' &&
|
|
638
|
-
(!event.result.stopReason || event.result.stopReason === 'end_turn')
|
|
639
|
-
? 'completed'
|
|
640
|
-
: 'failed';
|
|
641
|
-
record.completedAt = Date.now();
|
|
642
|
-
record.latestActivity = terminalLabel(record.status);
|
|
643
|
-
return;
|
|
644
|
-
case 'agent_failed':
|
|
645
|
-
record.status = 'failed';
|
|
646
|
-
record.completedAt = Date.now();
|
|
647
|
-
record.latestActivity = 'Failed';
|
|
648
|
-
pushRow(record, {
|
|
649
|
-
id: `${record.viewId}:agent-failed`,
|
|
650
|
-
kind: 'system',
|
|
651
|
-
text: bounded(event.error, MAX_ROW_CODE_UNITS),
|
|
652
|
-
});
|
|
653
|
-
return;
|
|
654
|
-
case 'agent_canceled':
|
|
655
|
-
record.status = 'cancelled';
|
|
656
|
-
record.completedAt = Date.now();
|
|
657
|
-
record.latestActivity = 'Cancelled';
|
|
658
|
-
return;
|
|
659
|
-
case 'turn_failed':
|
|
660
|
-
record.latestActivity = 'Failed';
|
|
661
|
-
pushRow(record, {
|
|
662
|
-
id: `${record.viewId}:turn-failed`,
|
|
663
|
-
kind: 'system',
|
|
664
|
-
text: bounded(event.error, MAX_ROW_CODE_UNITS),
|
|
665
|
-
});
|
|
666
|
-
return;
|
|
667
|
-
default:
|
|
668
|
-
return;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
function pushRow(record, row) {
|
|
672
|
-
record.rows.push(row);
|
|
673
|
-
if (record.rows.length > MAX_TRANSCRIPT_ROWS) {
|
|
674
|
-
record.rows.splice(0, record.rows.length - MAX_TRANSCRIPT_ROWS);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
function oneLine(value) {
|
|
678
|
-
return value
|
|
679
|
-
.replace(/[\r\n]+/g, ' ')
|
|
680
|
-
.replace(/\t/g, ' ')
|
|
681
|
-
.replace(/\s+/g, ' ')
|
|
682
|
-
.trim();
|
|
683
|
-
}
|
|
684
|
-
function statusOf(handle) {
|
|
685
|
-
if (handle.state === 'pending')
|
|
686
|
-
return 'queued';
|
|
687
|
-
if (handle.state === 'canceled')
|
|
688
|
-
return 'cancelled';
|
|
689
|
-
if (handle.state === 'failed' || handle.state === 'rejected')
|
|
690
|
-
return 'failed';
|
|
691
|
-
if (handle.result &&
|
|
692
|
-
(handle.result.status !== 'completed' ||
|
|
693
|
-
(handle.result.stopReason && handle.result.stopReason !== 'end_turn'))) {
|
|
694
|
-
return handle.result.status === 'cancelled' ? 'cancelled' : 'failed';
|
|
695
|
-
}
|
|
696
|
-
if (isTerminalAgentTaskState(handle.state))
|
|
697
|
-
return 'completed';
|
|
698
|
-
return 'working';
|
|
699
|
-
}
|
|
700
|
-
function isTerminal(status) {
|
|
701
|
-
return status === 'completed' || status === 'failed' || status === 'cancelled';
|
|
702
|
-
}
|
|
703
|
-
function terminalLabel(status) {
|
|
704
|
-
switch (status) {
|
|
705
|
-
case 'starting':
|
|
706
|
-
return 'Starting';
|
|
707
|
-
case 'queued':
|
|
708
|
-
return 'Queued';
|
|
709
|
-
case 'working':
|
|
710
|
-
return 'Working';
|
|
711
|
-
case 'completed':
|
|
712
|
-
return 'Completed';
|
|
713
|
-
case 'failed':
|
|
714
|
-
return 'Failed';
|
|
715
|
-
case 'cancelled':
|
|
716
|
-
return 'Cancelled';
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
function bounded(value, max) {
|
|
720
|
-
if (value.length <= max)
|
|
721
|
-
return value;
|
|
722
|
-
const suffix = '… [clipped]';
|
|
723
|
-
return `${value.slice(0, Math.max(0, max - suffix.length))}${suffix}`;
|
|
724
|
-
}
|
|
725
|
-
function normalizedLabel(value, fallback, max) {
|
|
726
|
-
const raw = typeof value === 'string' ? value.trim() : '';
|
|
727
|
-
let label = '';
|
|
728
|
-
for (const point of raw) {
|
|
729
|
-
const codePoint = point.codePointAt(0) ?? 0;
|
|
730
|
-
if (point === '\n' || point === '\r' || point === '\t')
|
|
731
|
-
label += ' ';
|
|
732
|
-
else if (codePoint >= 0x20 && codePoint !== 0x7f)
|
|
733
|
-
label += point;
|
|
734
|
-
}
|
|
735
|
-
label = label.replace(/ +/g, ' ').trim();
|
|
736
|
-
return bounded(label || fallback, max);
|
|
737
|
-
}
|
|
738
|
-
function normalizedPhaseOrder(value) {
|
|
739
|
-
if (typeof value !== 'number' ||
|
|
740
|
-
!Number.isSafeInteger(value) ||
|
|
741
|
-
value < 0 ||
|
|
742
|
-
value > MAX_AGENT_PHASE_ORDER)
|
|
743
|
-
return undefined;
|
|
744
|
-
return value;
|
|
745
|
-
}
|
|
746
|
-
function appendBounded(current, delta) {
|
|
747
|
-
const joined = current + delta;
|
|
748
|
-
if (joined.length <= MAX_ROW_CODE_UNITS)
|
|
749
|
-
return joined;
|
|
750
|
-
const prefix = '… [earlier text clipped]\n';
|
|
751
|
-
return prefix + joined.slice(-(MAX_ROW_CODE_UNITS - prefix.length));
|
|
752
|
-
}
|
|
753
|
-
function errorMessage(error) {
|
|
754
|
-
return error instanceof Error ? error.message : String(error);
|
|
755
|
-
}
|
|
756
|
-
function cancellationLike(error) {
|
|
757
|
-
return error instanceof Error && (error.name === 'AbortError' || error.name === 'TurnCancelled');
|
|
758
|
-
}
|
|
759
|
-
//# sourceMappingURL=activity.js.map
|