@namzu/cli 49.1.0 → 50.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/dist/bin.js +4 -46
- package/dist/bin.js.map +2 -2
- package/dist/chunks/{acp-YPJ27JQK.js → acp-GX5C46FS.js} +1293 -59
- package/dist/chunks/acp-GX5C46FS.js.map +6 -0
- package/dist/chunks/{activity-command-5XZJLJH5.js → activity-command-ALROOYA2.js} +12 -12
- package/dist/chunks/{add-37AHNBYS.js → add-Y24XHCJZ.js} +21 -21
- package/dist/chunks/{agent-PNIZE5HR.js → agent-2UGJH5L2.js} +37 -37
- package/dist/chunks/agent-session-UQXPM43X.js +69 -0
- package/dist/chunks/{archive-A7SSRR76.js → archive-BQVBBILN.js} +10 -10
- package/dist/chunks/{bin-main-G4E4SR4J.js → bin-main-LFD4MFRZ.js} +7 -7
- package/dist/chunks/{binding-AIMTFLZW.js → binding-7QVD3QFS.js} +3 -3
- package/dist/chunks/{browser-F5Y3IT6U.js → browser-L7XFOCFR.js} +6 -6
- package/dist/chunks/{chat-DIF26XMR.js → chat-J4HA4DHS.js} +15 -15
- package/dist/chunks/{chunk-C5YVEX36.js → chunk-24ZRB5EE.js} +2 -2
- package/dist/chunks/{chunk-XPW3PSVI.js → chunk-2QCCSP7N.js} +3 -3
- package/dist/chunks/{chunk-4Z5ONGFB.js → chunk-36G4OU2T.js} +2 -2
- package/dist/chunks/{chunk-2PMNQ6HR.js → chunk-3JUVHVOX.js} +19 -12
- package/dist/chunks/{chunk-2PMNQ6HR.js.map → chunk-3JUVHVOX.js.map} +1 -1
- package/dist/chunks/{chunk-NQSEDCTH.js → chunk-3L3NHBFB.js} +2 -2
- package/dist/chunks/{chunk-ESHBGSXA.js → chunk-4DPAL2SS.js} +3 -3
- package/dist/chunks/{chunk-Y2RIV5UX.js → chunk-4E2XEBCA.js} +74 -12
- package/dist/chunks/chunk-4E2XEBCA.js.map +6 -0
- package/dist/chunks/{chunk-SIYXJ6PT.js → chunk-4OGB5U5E.js} +2 -2
- package/dist/chunks/{chunk-IE5XIE4W.js → chunk-4QIWRKJO.js} +64 -11
- package/dist/chunks/chunk-4QIWRKJO.js.map +6 -0
- package/dist/chunks/{chunk-KEMOXQGR.js → chunk-4YFO2Q4F.js} +9 -9
- package/dist/chunks/{chunk-6MEYPHDQ.js → chunk-4ZJEPJXK.js} +784 -261
- package/dist/chunks/chunk-4ZJEPJXK.js.map +6 -0
- package/dist/chunks/{chunk-USTCATWP.js → chunk-52KOLFPS.js} +4 -4
- package/dist/chunks/{chunk-EGPWQL55.js → chunk-5XCRTM5D.js} +3 -3
- package/dist/chunks/{chunk-Z43EXCUP.js → chunk-62ZRTAHT.js} +3 -3
- package/dist/chunks/{chunk-QIVWFRYO.js → chunk-64LJS5ED.js} +4 -4
- package/dist/chunks/{chunk-ZWJPQH5F.js → chunk-7DITWYWT.js} +3 -3
- package/dist/chunks/{chunk-QSGYZU46.js → chunk-7F67RLOJ.js} +10 -10
- package/dist/chunks/{chunk-JBBB5EG2.js → chunk-7L4LWYJL.js} +9 -3
- package/dist/chunks/chunk-7L4LWYJL.js.map +6 -0
- package/dist/chunks/{chunk-BWOSM4EO.js → chunk-AVNUJT7M.js} +3 -3
- package/dist/chunks/{chunk-A425M7RP.js → chunk-AZLMME5T.js} +2 -2
- package/dist/chunks/{chunk-4IOUN4SV.js → chunk-BHYTFZYY.js} +5 -5
- package/dist/chunks/{chunk-WCJBKSGT.js → chunk-BPKOUPPI.js} +2 -2
- package/dist/chunks/{chunk-KMTM4NNH.js → chunk-DPFRJK3R.js} +11 -10
- package/dist/chunks/chunk-DPFRJK3R.js.map +6 -0
- package/dist/chunks/{chunk-4AZTZXPQ.js → chunk-DPS5H6YZ.js} +4 -4
- package/dist/chunks/{chunk-BERMCELL.js → chunk-DRNABAHW.js} +2 -2
- package/dist/chunks/{chunk-7VF7HGMF.js → chunk-EK4LUV4L.js} +3 -3
- package/dist/chunks/{chunk-WVLBFEBP.js → chunk-EKLFUD76.js} +3 -3
- package/dist/chunks/{chunk-O6DNY5EM.js → chunk-EMXHURNA.js} +3 -3
- package/dist/chunks/{chunk-2LZA3UMD.js → chunk-EQ6W5RYI.js} +22 -3
- package/dist/chunks/chunk-EQ6W5RYI.js.map +6 -0
- package/dist/chunks/{chunk-2WJQTSRQ.js → chunk-F4HPFCP7.js} +12 -12
- package/dist/chunks/{chunk-RAPB7HY3.js → chunk-FELRB5DJ.js} +6 -6
- package/dist/chunks/{chunk-ZYIPLUWS.js → chunk-FKNLXK7P.js} +33 -33
- package/dist/chunks/{chunk-JDUZFFX3.js → chunk-FLCSG33P.js} +2 -2
- package/dist/chunks/{chunk-HREKLDJP.js → chunk-FMXRUVQ3.js} +4 -4
- package/dist/chunks/{chunk-UANL44QG.js → chunk-FWHZB37G.js} +2 -2
- package/dist/chunks/{chunk-7HU7BYTT.js → chunk-GL3SCBU5.js} +3 -3
- package/dist/chunks/{chunk-6COUMXPW.js → chunk-GXYFKGXC.js} +3 -3
- package/dist/chunks/{chunk-IDJTFYNK.js → chunk-H2WOQGLW.js} +4 -4
- package/dist/chunks/{chunk-W27IOJQ5.js → chunk-HAV2WF6U.js} +6 -6
- package/dist/chunks/{chunk-6QOP2PHC.js → chunk-I3CWCFIT.js} +4 -4
- package/dist/chunks/{chunk-6QOP2PHC.js.map → chunk-I3CWCFIT.js.map} +1 -1
- package/dist/chunks/{chunk-DJZ5W4ML.js → chunk-INFXJ66V.js} +2 -2
- package/dist/chunks/{chunk-PPVNYNKK.js → chunk-IVBQSIVS.js} +2 -2
- package/dist/chunks/{chunk-ZKLDG2CM.js → chunk-K2JXGE24.js} +3 -3
- package/dist/chunks/{chunk-B73OIFL6.js → chunk-KTPFUCRU.js} +3 -3
- package/dist/chunks/{chunk-37AR6YJQ.js → chunk-KWLUYAKG.js} +2 -2
- package/dist/chunks/{chunk-VIBYGZFX.js → chunk-LMSDBH3N.js} +2 -2
- package/dist/chunks/{chunk-6PURQMHH.js → chunk-M3FCCQWN.js} +3 -3
- package/dist/chunks/{chunk-NPH7ZTH4.js → chunk-M4CILTGF.js} +2 -2
- package/dist/chunks/{chunk-UH7EP7TA.js → chunk-MBFYU4BQ.js} +2 -2
- package/dist/chunks/{chunk-RNMU75CI.js → chunk-N5H6BXSH.js} +2 -2
- package/dist/chunks/{chunk-D4DY4FZX.js → chunk-NBGCCPO2.js} +4 -4
- package/dist/chunks/{chunk-HYF3OKB7.js → chunk-NCI44BJE.js} +4 -4
- package/dist/chunks/{chunk-HD74DQ3Z.js → chunk-NIT2OAFM.js} +2 -2
- package/dist/chunks/{chunk-YWZ3IMAS.js → chunk-O4RW4C5Q.js} +2 -2
- package/dist/chunks/{chunk-JRX5IIMR.js → chunk-P2NS5JPG.js} +5 -5
- package/dist/chunks/{chunk-4L3LPJ4M.js → chunk-P32KIQBD.js} +2 -2
- package/dist/chunks/{chunk-4PF6DIYU.js → chunk-P5BRE34M.js} +2 -2
- package/dist/chunks/{chunk-C4C4Y2VT.js → chunk-PH7RYICR.js} +2 -2
- package/dist/chunks/{chunk-GKPKHFMK.js → chunk-PT7CAL4N.js} +4 -4
- package/dist/chunks/{chunk-UXFW6KD7.js → chunk-QQZXB3E7.js} +2 -2
- package/dist/chunks/{chunk-SY2AJ6LM.js → chunk-RKYDGWUF.js} +2 -2
- package/dist/chunks/{chunk-7TWA4BQX.js → chunk-S4YTXJTD.js} +5836 -5065
- package/dist/chunks/chunk-S4YTXJTD.js.map +6 -0
- package/dist/chunks/chunk-SOIP273Z.js +75 -0
- package/dist/chunks/chunk-SOIP273Z.js.map +6 -0
- package/dist/chunks/{chunk-STEWNJWS.js → chunk-T5GYOXPH.js} +13 -13
- package/dist/chunks/{chunk-6KBZJBBN.js → chunk-TBQ7SPXV.js} +6 -6
- package/dist/chunks/{chunk-AHM54PGY.js → chunk-TCC7QRSV.js} +3 -3
- package/dist/chunks/{chunk-TWEFDQ7C.js → chunk-UI7WXHQL.js} +2 -2
- package/dist/chunks/{chunk-5I4QGJER.js → chunk-VGUQOYPZ.js} +9 -9
- package/dist/chunks/{chunk-SVH5P7TU.js → chunk-VKYRVAQ4.js} +13 -13
- package/dist/chunks/{chunk-TVBD2LZV.js → chunk-VL6NOKJF.js} +3 -3
- package/dist/chunks/{chunk-J65SOO5P.js → chunk-VTBS7NVT.js} +16 -4
- package/dist/chunks/chunk-VTBS7NVT.js.map +6 -0
- package/dist/chunks/{chunk-CBIXPHOV.js → chunk-WPEFWFO6.js} +4 -4
- package/dist/chunks/{chunk-TWZ5PJH2.js → chunk-WSRGGVIM.js} +5 -5
- package/dist/chunks/{chunk-Y67ML2IN.js → chunk-YCJW5A7U.js} +2 -2
- package/dist/chunks/{chunk-DLPWM4YC.js → chunk-YXOWGENA.js} +9 -9
- package/dist/chunks/{chunk-DXEAJL7W.js → chunk-YXWJD4GH.js} +4 -4
- package/dist/chunks/{chunk-7X2NHTHU.js → chunk-ZK6GFS2K.js} +3 -3
- package/dist/chunks/{chunk-OBDGNMPB.js → chunk-ZXW2TTMW.js} +7 -7
- package/dist/chunks/{cli-runtime-KHIX5OG4.js → cli-runtime-JHNUAZGX.js} +13 -13
- package/dist/chunks/{commands-OGOMUDPT.js → commands-QIB5PR4U.js} +5 -5
- package/dist/chunks/{crash-report-VXC7CJDY.js → crash-report-YKBMAI2C.js} +8 -8
- package/dist/chunks/{dist-Q7Z5SE4S.js → dist-BO4BUR4Z.js} +7 -2
- package/dist/chunks/{dist-Q7Z5SE4S.js.map → dist-BO4BUR4Z.js.map} +1 -1
- package/dist/chunks/{dist-POXH7TX7.js → dist-EGQG2CWK.js} +2 -2
- package/dist/chunks/{dist-AA4JNWT2.js → dist-HX4CMQP7.js} +2 -2
- package/dist/chunks/{dist-LUUDW6KE.js → dist-JU77OEQV.js} +2 -2
- package/dist/chunks/{dist-Q5YPDPOH.js → dist-ONV5YXBC.js} +3 -3
- package/dist/chunks/{dist-O4Y5VCRK.js → dist-OS52BKDN.js} +2 -2
- package/dist/chunks/{dist-EL2RMYNK.js → dist-TFGK7OXW.js} +30 -2
- package/dist/chunks/{dist-Z62XBGQ7.js → dist-YKDCCBQG.js} +2 -2
- package/dist/chunks/{doctor-5IRXJ7DK.js → doctor-GILJT2C6.js} +18 -18
- package/dist/chunks/{drain-A44YWORN.js → drain-A65DSXV5.js} +9 -9
- package/dist/chunks/{entry-ODCHCJ3O.js → entry-S4CXG3N4.js} +6 -6
- package/dist/chunks/{eval-35ZBHZLK.js → eval-7JFPRH2Z.js} +2 -2
- package/dist/chunks/{exec-TPOW33QE.js → exec-JKYNWA4S.js} +44 -38
- package/dist/chunks/exec-JKYNWA4S.js.map +6 -0
- package/dist/chunks/{home-F4YAXKWJ.js → home-TD3AGJSX.js} +3 -3
- package/dist/chunks/{host-V7LVA7QU.js → host-MRXWMOJP.js} +10 -10
- package/dist/chunks/{host-queries-2HRJZ2TH.js → host-queries-77N4N7XL.js} +15 -15
- package/dist/chunks/{learn-NLECFL5B.js → learn-EEKKNN7B.js} +11 -11
- package/dist/chunks/{learn-builtin-XLID77I3.js → learn-builtin-DGQW6ZJ3.js} +14 -14
- package/dist/chunks/{lifecycle-UQL62JPO.js → lifecycle-5QSLVTIZ.js} +30 -30
- package/dist/chunks/{list-4PS7WAPI.js → list-G525YHRP.js} +11 -11
- package/dist/chunks/{live-GBK7RIX2.js → live-Z4LVRXQJ.js} +17 -17
- package/dist/chunks/login-V6COXMPE.js +34 -0
- package/dist/chunks/{logs-VYY2CWAN.js → logs-NM5XSBZ2.js} +4 -4
- package/dist/chunks/{mcp-QL4TOTV5.js → mcp-NTFOOPLS.js} +25 -25
- package/dist/chunks/{message-command-SCSTDFSA.js → message-command-BBICY3ZH.js} +43 -43
- package/dist/chunks/{open-QSZFHDIW.js → open-EO6BERGC.js} +8 -8
- package/dist/chunks/{operator-tools-WF2UGZ5G.js → operator-tools-EKYFPXNP.js} +13 -13
- package/dist/chunks/{output-schema-P3WXODDE.js → output-schema-4QBMG2V3.js} +3 -3
- package/dist/chunks/{pal-JLSBOTEO.js → pal-GGEP7A3C.js} +18 -18
- package/dist/chunks/{peers-IMCPUY6R.js → peers-NEFTEGGH.js} +6 -6
- package/dist/chunks/{peers-HDPCIVBY.js → peers-XABPXXYU.js} +7 -7
- package/dist/chunks/{providers-YXH2C5HE.js → providers-UR7PTSAU.js} +13 -13
- package/dist/chunks/{pty-74F5BMD3.js → pty-E6LOL7FL.js} +3 -3
- package/dist/chunks/resume-YVCJLRJM.js +23 -0
- package/dist/chunks/{resume-command-LFK2PQYH.js → resume-command-SK376EH7.js} +4 -4
- package/dist/chunks/{schedule-5ZYAZJIM.js → schedule-LMZSBVLA.js} +8 -8
- package/dist/chunks/{service-LTYPMKWG.js → service-LXGEJ7SQ.js} +30 -30
- package/dist/chunks/{skills-KUT4QD3K.js → skills-LKMGHUON.js} +8 -8
- package/dist/chunks/{start-check-SYGALC5U.js → start-check-VOPUK6AT.js} +2 -2
- package/dist/chunks/{startup-failure-YKREQTPO.js → startup-failure-EICFG4GV.js} +2 -2
- package/dist/chunks/{state-MQXTG6O3.js → state-JOIMBJVN.js} +2 -2
- package/dist/chunks/{store-KW3NJHWV.js → store-22R5VPTI.js} +4 -4
- package/dist/chunks/{store-J4UP5MJ3.js → store-CJQTON4J.js} +10 -10
- package/dist/chunks/{store-KC43NWR4.js → store-JPIWK3PM.js} +6 -6
- package/dist/chunks/{store-EO3HNNFC.js → store-ZZNUM66U.js} +3 -3
- package/dist/chunks/{tui-DPTVVKBE.js → tui-7GUHLL4B.js} +205 -139
- package/dist/chunks/{tui-DPTVVKBE.js.map → tui-7GUHLL4B.js.map} +3 -3
- package/dist/chunks/{upgrade-WI5CFBGG.js → upgrade-WX6LVKEZ.js} +7 -7
- package/dist/chunks/{workspaces-VQ7VHN7N.js → workspaces-LSNFONMM.js} +16 -16
- package/dist/chunks/{worktree-KSDU4MTM.js → worktree-FPCQFFLT.js} +12 -12
- package/dist/commands/acp-screen-question.d.ts +32 -0
- package/dist/commands/acp-screen-question.d.ts.map +1 -0
- package/dist/commands/acp.d.ts +7 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +2 -0
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/desktop-usage-feed.d.ts +41 -0
- package/dist/commands/desktop-usage-feed.d.ts.map +1 -0
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/compile-cache.d.ts +27 -0
- package/dist/compile-cache.d.ts.map +1 -1
- package/dist/config/desktop-settings.d.ts +39 -0
- package/dist/config/desktop-settings.d.ts.map +1 -0
- package/dist/config/load.d.ts +32 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +19 -3
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts +77 -0
- package/dist/config/settings-descriptors.d.ts.map +1 -0
- package/dist/config/turn-guards.d.ts +16 -0
- package/dist/config/turn-guards.d.ts.map +1 -1
- package/dist/context/environment.d.ts +5 -0
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/index.js +21 -21
- package/dist/integrations/compaction/carried.d.ts +26 -0
- package/dist/integrations/compaction/carried.d.ts.map +1 -0
- package/dist/integrations/compaction/idle-compaction.d.ts +21 -0
- package/dist/integrations/compaction/idle-compaction.d.ts.map +1 -1
- package/dist/integrations/decision/memory.d.ts +2 -0
- package/dist/integrations/decision/memory.d.ts.map +1 -1
- package/dist/integrations/decision/notify.d.ts +2 -0
- package/dist/integrations/decision/notify.d.ts.map +1 -1
- package/dist/integrations/decision/points.d.ts +2 -0
- package/dist/integrations/decision/points.d.ts.map +1 -1
- package/dist/integrations/decision/route-history.d.ts +46 -0
- package/dist/integrations/decision/route-history.d.ts.map +1 -0
- package/dist/integrations/decision/routing.d.ts +3 -0
- package/dist/integrations/decision/routing.d.ts.map +1 -1
- package/dist/integrations/decision/setup.d.ts.map +1 -1
- package/dist/integrations/decision/skill.d.ts +2 -0
- package/dist/integrations/decision/skill.d.ts.map +1 -1
- package/dist/integrations/mcp/output.d.ts +9 -0
- package/dist/integrations/mcp/output.d.ts.map +1 -1
- package/dist/integrations/outcome/change-detector.d.ts +21 -0
- package/dist/integrations/outcome/change-detector.d.ts.map +1 -0
- package/dist/integrations/providers/discover.d.ts.map +1 -1
- package/dist/integrations/providers/harness-credentials.d.ts.map +1 -1
- package/dist/integrations/providers/zen-catalogue.d.ts +21 -0
- package/dist/integrations/providers/zen-catalogue.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +5 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/memory/anchors.d.ts +110 -0
- package/dist/memory/anchors.d.ts.map +1 -0
- package/dist/memory/curation-runtime.d.ts +17 -7
- package/dist/memory/curation-runtime.d.ts.map +1 -1
- package/dist/memory/curator.d.ts +7 -0
- package/dist/memory/curator.d.ts.map +1 -1
- package/dist/memory/lifecycle.d.ts +8 -0
- package/dist/memory/lifecycle.d.ts.map +1 -1
- package/dist/memory/manage.d.ts +3 -0
- package/dist/memory/manage.d.ts.map +1 -1
- package/dist/memory/sweep.d.ts +15 -1
- package/dist/memory/sweep.d.ts.map +1 -1
- package/dist/memory/usage.d.ts +9 -0
- package/dist/memory/usage.d.ts.map +1 -1
- package/dist/permissions/settings.d.ts +9 -0
- package/dist/permissions/settings.d.ts.map +1 -1
- package/dist/provider-retry.d.ts +4 -0
- package/dist/provider-retry.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +26 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/computer-use-screen-approval.d.ts +10 -0
- package/dist/tui/computer-use-screen-approval.d.ts.map +1 -1
- package/dist/tui/outcome-line.d.ts +12 -0
- package/dist/tui/outcome-line.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/chunks/acp-YPJ27JQK.js.map +0 -6
- package/dist/chunks/agent-session-ONKOQQ5Y.js +0 -69
- package/dist/chunks/chunk-2LZA3UMD.js.map +0 -6
- package/dist/chunks/chunk-6MEYPHDQ.js.map +0 -6
- package/dist/chunks/chunk-7TWA4BQX.js.map +0 -6
- package/dist/chunks/chunk-IE5XIE4W.js.map +0 -6
- package/dist/chunks/chunk-J65SOO5P.js.map +0 -6
- package/dist/chunks/chunk-JBBB5EG2.js.map +0 -6
- package/dist/chunks/chunk-KMTM4NNH.js.map +0 -6
- package/dist/chunks/chunk-Y2RIV5UX.js.map +0 -6
- package/dist/chunks/exec-TPOW33QE.js.map +0 -6
- package/dist/chunks/login-7LGGUBI5.js +0 -34
- package/dist/chunks/resume-M63SJGJ4.js +0 -23
- /package/dist/chunks/{activity-command-5XZJLJH5.js.map → activity-command-ALROOYA2.js.map} +0 -0
- /package/dist/chunks/{add-37AHNBYS.js.map → add-Y24XHCJZ.js.map} +0 -0
- /package/dist/chunks/{agent-PNIZE5HR.js.map → agent-2UGJH5L2.js.map} +0 -0
- /package/dist/chunks/{agent-session-ONKOQQ5Y.js.map → agent-session-UQXPM43X.js.map} +0 -0
- /package/dist/chunks/{archive-A7SSRR76.js.map → archive-BQVBBILN.js.map} +0 -0
- /package/dist/chunks/{bin-main-G4E4SR4J.js.map → bin-main-LFD4MFRZ.js.map} +0 -0
- /package/dist/chunks/{binding-AIMTFLZW.js.map → binding-7QVD3QFS.js.map} +0 -0
- /package/dist/chunks/{browser-F5Y3IT6U.js.map → browser-L7XFOCFR.js.map} +0 -0
- /package/dist/chunks/{chat-DIF26XMR.js.map → chat-J4HA4DHS.js.map} +0 -0
- /package/dist/chunks/{chunk-C5YVEX36.js.map → chunk-24ZRB5EE.js.map} +0 -0
- /package/dist/chunks/{chunk-XPW3PSVI.js.map → chunk-2QCCSP7N.js.map} +0 -0
- /package/dist/chunks/{chunk-4Z5ONGFB.js.map → chunk-36G4OU2T.js.map} +0 -0
- /package/dist/chunks/{chunk-NQSEDCTH.js.map → chunk-3L3NHBFB.js.map} +0 -0
- /package/dist/chunks/{chunk-ESHBGSXA.js.map → chunk-4DPAL2SS.js.map} +0 -0
- /package/dist/chunks/{chunk-SIYXJ6PT.js.map → chunk-4OGB5U5E.js.map} +0 -0
- /package/dist/chunks/{chunk-KEMOXQGR.js.map → chunk-4YFO2Q4F.js.map} +0 -0
- /package/dist/chunks/{chunk-USTCATWP.js.map → chunk-52KOLFPS.js.map} +0 -0
- /package/dist/chunks/{chunk-EGPWQL55.js.map → chunk-5XCRTM5D.js.map} +0 -0
- /package/dist/chunks/{chunk-Z43EXCUP.js.map → chunk-62ZRTAHT.js.map} +0 -0
- /package/dist/chunks/{chunk-QIVWFRYO.js.map → chunk-64LJS5ED.js.map} +0 -0
- /package/dist/chunks/{chunk-ZWJPQH5F.js.map → chunk-7DITWYWT.js.map} +0 -0
- /package/dist/chunks/{chunk-QSGYZU46.js.map → chunk-7F67RLOJ.js.map} +0 -0
- /package/dist/chunks/{chunk-BWOSM4EO.js.map → chunk-AVNUJT7M.js.map} +0 -0
- /package/dist/chunks/{chunk-A425M7RP.js.map → chunk-AZLMME5T.js.map} +0 -0
- /package/dist/chunks/{chunk-4IOUN4SV.js.map → chunk-BHYTFZYY.js.map} +0 -0
- /package/dist/chunks/{chunk-WCJBKSGT.js.map → chunk-BPKOUPPI.js.map} +0 -0
- /package/dist/chunks/{chunk-4AZTZXPQ.js.map → chunk-DPS5H6YZ.js.map} +0 -0
- /package/dist/chunks/{chunk-BERMCELL.js.map → chunk-DRNABAHW.js.map} +0 -0
- /package/dist/chunks/{chunk-7VF7HGMF.js.map → chunk-EK4LUV4L.js.map} +0 -0
- /package/dist/chunks/{chunk-WVLBFEBP.js.map → chunk-EKLFUD76.js.map} +0 -0
- /package/dist/chunks/{chunk-O6DNY5EM.js.map → chunk-EMXHURNA.js.map} +0 -0
- /package/dist/chunks/{chunk-2WJQTSRQ.js.map → chunk-F4HPFCP7.js.map} +0 -0
- /package/dist/chunks/{chunk-RAPB7HY3.js.map → chunk-FELRB5DJ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZYIPLUWS.js.map → chunk-FKNLXK7P.js.map} +0 -0
- /package/dist/chunks/{chunk-JDUZFFX3.js.map → chunk-FLCSG33P.js.map} +0 -0
- /package/dist/chunks/{chunk-HREKLDJP.js.map → chunk-FMXRUVQ3.js.map} +0 -0
- /package/dist/chunks/{chunk-UANL44QG.js.map → chunk-FWHZB37G.js.map} +0 -0
- /package/dist/chunks/{chunk-7HU7BYTT.js.map → chunk-GL3SCBU5.js.map} +0 -0
- /package/dist/chunks/{chunk-6COUMXPW.js.map → chunk-GXYFKGXC.js.map} +0 -0
- /package/dist/chunks/{chunk-IDJTFYNK.js.map → chunk-H2WOQGLW.js.map} +0 -0
- /package/dist/chunks/{chunk-W27IOJQ5.js.map → chunk-HAV2WF6U.js.map} +0 -0
- /package/dist/chunks/{chunk-DJZ5W4ML.js.map → chunk-INFXJ66V.js.map} +0 -0
- /package/dist/chunks/{chunk-PPVNYNKK.js.map → chunk-IVBQSIVS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZKLDG2CM.js.map → chunk-K2JXGE24.js.map} +0 -0
- /package/dist/chunks/{chunk-B73OIFL6.js.map → chunk-KTPFUCRU.js.map} +0 -0
- /package/dist/chunks/{chunk-37AR6YJQ.js.map → chunk-KWLUYAKG.js.map} +0 -0
- /package/dist/chunks/{chunk-VIBYGZFX.js.map → chunk-LMSDBH3N.js.map} +0 -0
- /package/dist/chunks/{chunk-6PURQMHH.js.map → chunk-M3FCCQWN.js.map} +0 -0
- /package/dist/chunks/{chunk-NPH7ZTH4.js.map → chunk-M4CILTGF.js.map} +0 -0
- /package/dist/chunks/{chunk-UH7EP7TA.js.map → chunk-MBFYU4BQ.js.map} +0 -0
- /package/dist/chunks/{chunk-RNMU75CI.js.map → chunk-N5H6BXSH.js.map} +0 -0
- /package/dist/chunks/{chunk-D4DY4FZX.js.map → chunk-NBGCCPO2.js.map} +0 -0
- /package/dist/chunks/{chunk-HYF3OKB7.js.map → chunk-NCI44BJE.js.map} +0 -0
- /package/dist/chunks/{chunk-HD74DQ3Z.js.map → chunk-NIT2OAFM.js.map} +0 -0
- /package/dist/chunks/{chunk-YWZ3IMAS.js.map → chunk-O4RW4C5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-JRX5IIMR.js.map → chunk-P2NS5JPG.js.map} +0 -0
- /package/dist/chunks/{chunk-4L3LPJ4M.js.map → chunk-P32KIQBD.js.map} +0 -0
- /package/dist/chunks/{chunk-4PF6DIYU.js.map → chunk-P5BRE34M.js.map} +0 -0
- /package/dist/chunks/{chunk-C4C4Y2VT.js.map → chunk-PH7RYICR.js.map} +0 -0
- /package/dist/chunks/{chunk-GKPKHFMK.js.map → chunk-PT7CAL4N.js.map} +0 -0
- /package/dist/chunks/{chunk-UXFW6KD7.js.map → chunk-QQZXB3E7.js.map} +0 -0
- /package/dist/chunks/{chunk-SY2AJ6LM.js.map → chunk-RKYDGWUF.js.map} +0 -0
- /package/dist/chunks/{chunk-STEWNJWS.js.map → chunk-T5GYOXPH.js.map} +0 -0
- /package/dist/chunks/{chunk-6KBZJBBN.js.map → chunk-TBQ7SPXV.js.map} +0 -0
- /package/dist/chunks/{chunk-AHM54PGY.js.map → chunk-TCC7QRSV.js.map} +0 -0
- /package/dist/chunks/{chunk-TWEFDQ7C.js.map → chunk-UI7WXHQL.js.map} +0 -0
- /package/dist/chunks/{chunk-5I4QGJER.js.map → chunk-VGUQOYPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-SVH5P7TU.js.map → chunk-VKYRVAQ4.js.map} +0 -0
- /package/dist/chunks/{chunk-TVBD2LZV.js.map → chunk-VL6NOKJF.js.map} +0 -0
- /package/dist/chunks/{chunk-CBIXPHOV.js.map → chunk-WPEFWFO6.js.map} +0 -0
- /package/dist/chunks/{chunk-TWZ5PJH2.js.map → chunk-WSRGGVIM.js.map} +0 -0
- /package/dist/chunks/{chunk-Y67ML2IN.js.map → chunk-YCJW5A7U.js.map} +0 -0
- /package/dist/chunks/{chunk-DLPWM4YC.js.map → chunk-YXOWGENA.js.map} +0 -0
- /package/dist/chunks/{chunk-DXEAJL7W.js.map → chunk-YXWJD4GH.js.map} +0 -0
- /package/dist/chunks/{chunk-7X2NHTHU.js.map → chunk-ZK6GFS2K.js.map} +0 -0
- /package/dist/chunks/{chunk-OBDGNMPB.js.map → chunk-ZXW2TTMW.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-KHIX5OG4.js.map → cli-runtime-JHNUAZGX.js.map} +0 -0
- /package/dist/chunks/{commands-OGOMUDPT.js.map → commands-QIB5PR4U.js.map} +0 -0
- /package/dist/chunks/{crash-report-VXC7CJDY.js.map → crash-report-YKBMAI2C.js.map} +0 -0
- /package/dist/chunks/{dist-POXH7TX7.js.map → dist-EGQG2CWK.js.map} +0 -0
- /package/dist/chunks/{dist-AA4JNWT2.js.map → dist-HX4CMQP7.js.map} +0 -0
- /package/dist/chunks/{dist-LUUDW6KE.js.map → dist-JU77OEQV.js.map} +0 -0
- /package/dist/chunks/{dist-Q5YPDPOH.js.map → dist-ONV5YXBC.js.map} +0 -0
- /package/dist/chunks/{dist-O4Y5VCRK.js.map → dist-OS52BKDN.js.map} +0 -0
- /package/dist/chunks/{dist-EL2RMYNK.js.map → dist-TFGK7OXW.js.map} +0 -0
- /package/dist/chunks/{dist-Z62XBGQ7.js.map → dist-YKDCCBQG.js.map} +0 -0
- /package/dist/chunks/{doctor-5IRXJ7DK.js.map → doctor-GILJT2C6.js.map} +0 -0
- /package/dist/chunks/{drain-A44YWORN.js.map → drain-A65DSXV5.js.map} +0 -0
- /package/dist/chunks/{entry-ODCHCJ3O.js.map → entry-S4CXG3N4.js.map} +0 -0
- /package/dist/chunks/{eval-35ZBHZLK.js.map → eval-7JFPRH2Z.js.map} +0 -0
- /package/dist/chunks/{home-F4YAXKWJ.js.map → home-TD3AGJSX.js.map} +0 -0
- /package/dist/chunks/{host-V7LVA7QU.js.map → host-MRXWMOJP.js.map} +0 -0
- /package/dist/chunks/{host-queries-2HRJZ2TH.js.map → host-queries-77N4N7XL.js.map} +0 -0
- /package/dist/chunks/{learn-NLECFL5B.js.map → learn-EEKKNN7B.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-XLID77I3.js.map → learn-builtin-DGQW6ZJ3.js.map} +0 -0
- /package/dist/chunks/{lifecycle-UQL62JPO.js.map → lifecycle-5QSLVTIZ.js.map} +0 -0
- /package/dist/chunks/{list-4PS7WAPI.js.map → list-G525YHRP.js.map} +0 -0
- /package/dist/chunks/{live-GBK7RIX2.js.map → live-Z4LVRXQJ.js.map} +0 -0
- /package/dist/chunks/{login-7LGGUBI5.js.map → login-V6COXMPE.js.map} +0 -0
- /package/dist/chunks/{logs-VYY2CWAN.js.map → logs-NM5XSBZ2.js.map} +0 -0
- /package/dist/chunks/{mcp-QL4TOTV5.js.map → mcp-NTFOOPLS.js.map} +0 -0
- /package/dist/chunks/{message-command-SCSTDFSA.js.map → message-command-BBICY3ZH.js.map} +0 -0
- /package/dist/chunks/{open-QSZFHDIW.js.map → open-EO6BERGC.js.map} +0 -0
- /package/dist/chunks/{operator-tools-WF2UGZ5G.js.map → operator-tools-EKYFPXNP.js.map} +0 -0
- /package/dist/chunks/{output-schema-P3WXODDE.js.map → output-schema-4QBMG2V3.js.map} +0 -0
- /package/dist/chunks/{pal-JLSBOTEO.js.map → pal-GGEP7A3C.js.map} +0 -0
- /package/dist/chunks/{peers-IMCPUY6R.js.map → peers-NEFTEGGH.js.map} +0 -0
- /package/dist/chunks/{peers-HDPCIVBY.js.map → peers-XABPXXYU.js.map} +0 -0
- /package/dist/chunks/{providers-YXH2C5HE.js.map → providers-UR7PTSAU.js.map} +0 -0
- /package/dist/chunks/{pty-74F5BMD3.js.map → pty-E6LOL7FL.js.map} +0 -0
- /package/dist/chunks/{resume-M63SJGJ4.js.map → resume-YVCJLRJM.js.map} +0 -0
- /package/dist/chunks/{resume-command-LFK2PQYH.js.map → resume-command-SK376EH7.js.map} +0 -0
- /package/dist/chunks/{schedule-5ZYAZJIM.js.map → schedule-LMZSBVLA.js.map} +0 -0
- /package/dist/chunks/{service-LTYPMKWG.js.map → service-LXGEJ7SQ.js.map} +0 -0
- /package/dist/chunks/{skills-KUT4QD3K.js.map → skills-LKMGHUON.js.map} +0 -0
- /package/dist/chunks/{start-check-SYGALC5U.js.map → start-check-VOPUK6AT.js.map} +0 -0
- /package/dist/chunks/{startup-failure-YKREQTPO.js.map → startup-failure-EICFG4GV.js.map} +0 -0
- /package/dist/chunks/{state-MQXTG6O3.js.map → state-JOIMBJVN.js.map} +0 -0
- /package/dist/chunks/{store-EO3HNNFC.js.map → store-22R5VPTI.js.map} +0 -0
- /package/dist/chunks/{store-J4UP5MJ3.js.map → store-CJQTON4J.js.map} +0 -0
- /package/dist/chunks/{store-KC43NWR4.js.map → store-JPIWK3PM.js.map} +0 -0
- /package/dist/chunks/{store-KW3NJHWV.js.map → store-ZZNUM66U.js.map} +0 -0
- /package/dist/chunks/{upgrade-WI5CFBGG.js.map → upgrade-WX6LVKEZ.js.map} +0 -0
- /package/dist/chunks/{workspaces-VQ7VHN7N.js.map → workspaces-LSNFONMM.js.map} +0 -0
- /package/dist/chunks/{worktree-KSDU4MTM.js.map → worktree-FPCQFFLT.js.map} +0 -0
|
@@ -2,25 +2,30 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
dispatchCliPalMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YXOWGENA.js";
|
|
6
6
|
import {
|
|
7
7
|
decideHeadlessTrust
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P5BRE34M.js";
|
|
9
9
|
import {
|
|
10
10
|
conversationMarkdown,
|
|
11
11
|
lookupPr,
|
|
12
12
|
runCommand,
|
|
13
13
|
withKeyNote
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-M3FCCQWN.js";
|
|
15
|
+
import "./chunk-WSRGGVIM.js";
|
|
16
16
|
import "./chunk-JETLWXUE.js";
|
|
17
|
+
import {
|
|
18
|
+
deleteUserConfigValue,
|
|
19
|
+
setUserConfigValue,
|
|
20
|
+
userConfigPath
|
|
21
|
+
} from "./chunk-62ZRTAHT.js";
|
|
17
22
|
import {
|
|
18
23
|
HeadlessScreen
|
|
19
24
|
} from "./chunk-GWGIAZLZ.js";
|
|
20
25
|
import "./chunk-6HTC5TQ3.js";
|
|
21
26
|
import {
|
|
22
27
|
launchRefusal
|
|
23
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4OGB5U5E.js";
|
|
24
29
|
import {
|
|
25
30
|
cliPalComputerStatus,
|
|
26
31
|
cliPalScreen,
|
|
@@ -33,21 +38,21 @@ import {
|
|
|
33
38
|
startCliPalComputer,
|
|
34
39
|
stopCliPalComputer,
|
|
35
40
|
takeOverCliPalComputer
|
|
36
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-EMXHURNA.js";
|
|
37
42
|
import {
|
|
38
43
|
palSessionEnvironment
|
|
39
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7F67RLOJ.js";
|
|
40
45
|
import {
|
|
41
46
|
cliPalActivitySubscriptionPolicy,
|
|
42
47
|
cliPalActivitySubscriptionStore,
|
|
43
48
|
cliPalCommunicationPolicy,
|
|
44
49
|
cliPalCommunicationStore
|
|
45
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FELRB5DJ.js";
|
|
46
51
|
import {
|
|
47
52
|
claimPalConversation,
|
|
48
53
|
listPalConversations,
|
|
49
54
|
palConversationBinding
|
|
50
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NCI44BJE.js";
|
|
51
56
|
import {
|
|
52
57
|
FileCheckpointStore,
|
|
53
58
|
PluginSettingsStore,
|
|
@@ -55,37 +60,38 @@ import {
|
|
|
55
60
|
describeProviderModels,
|
|
56
61
|
describeProviderReasoning,
|
|
57
62
|
probeAgentSession,
|
|
63
|
+
screenQuestionApp,
|
|
58
64
|
sessionLogCheckpointView,
|
|
59
65
|
validateComposerSendSettings,
|
|
60
66
|
verifyCredential
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-4ZJEPJXK.js";
|
|
68
|
+
import "./chunk-FMXRUVQ3.js";
|
|
69
|
+
import "./chunk-ZK6GFS2K.js";
|
|
70
|
+
import "./chunk-VTBS7NVT.js";
|
|
71
|
+
import "./chunk-GL3SCBU5.js";
|
|
72
|
+
import "./chunk-DPS5H6YZ.js";
|
|
73
|
+
import "./chunk-3JUVHVOX.js";
|
|
74
|
+
import "./chunk-MBFYU4BQ.js";
|
|
75
|
+
import "./chunk-7DITWYWT.js";
|
|
76
|
+
import "./chunk-64LJS5ED.js";
|
|
71
77
|
import "./chunk-WHODOMXA.js";
|
|
72
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-YXWJD4GH.js";
|
|
73
79
|
import "./chunk-YOWYTBJS.js";
|
|
74
80
|
import "./chunk-2IPDTDB3.js";
|
|
75
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-LMSDBH3N.js";
|
|
76
82
|
import "./chunk-IYUW2RAA.js";
|
|
77
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-5XCRTM5D.js";
|
|
78
84
|
import "./chunk-ZWA2JRJV.js";
|
|
79
85
|
import "./chunk-NUGPLXVK.js";
|
|
80
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-P2NS5JPG.js";
|
|
81
87
|
import {
|
|
82
88
|
listProviderConnections,
|
|
83
89
|
removeProviderKey,
|
|
84
90
|
saveProviderKey,
|
|
85
91
|
typedKeyProvider
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
92
|
+
} from "./chunk-4DPAL2SS.js";
|
|
93
|
+
import "./chunk-BHYTFZYY.js";
|
|
94
|
+
import "./chunk-PT7CAL4N.js";
|
|
89
95
|
import {
|
|
90
96
|
archiveConversation,
|
|
91
97
|
closeSessions,
|
|
@@ -103,8 +109,8 @@ import {
|
|
|
103
109
|
refreshIndex,
|
|
104
110
|
setTitle,
|
|
105
111
|
unarchiveConversation
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-HAV2WF6U.js";
|
|
113
|
+
import "./chunk-AVNUJT7M.js";
|
|
108
114
|
import {
|
|
109
115
|
cliProjectRoot
|
|
110
116
|
} from "./chunk-JQIBPPOL.js";
|
|
@@ -117,14 +123,17 @@ import {
|
|
|
117
123
|
listPals,
|
|
118
124
|
palAtWorkspace,
|
|
119
125
|
updatePal
|
|
120
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-52KOLFPS.js";
|
|
121
127
|
import {
|
|
122
128
|
isTrusted,
|
|
123
129
|
isTrustedAtStateRoot,
|
|
124
130
|
trustDir,
|
|
125
131
|
untrustDir
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
132
|
+
} from "./chunk-P32KIQBD.js";
|
|
133
|
+
import "./chunk-INFXJ66V.js";
|
|
134
|
+
import {
|
|
135
|
+
flushCompileCacheWhenIdle
|
|
136
|
+
} from "./chunk-SOIP273Z.js";
|
|
128
137
|
import {
|
|
129
138
|
resolveTrustedProjectContext
|
|
130
139
|
} from "./chunk-CHIEVVQ2.js";
|
|
@@ -132,19 +141,24 @@ import {
|
|
|
132
141
|
CLI_VERSION
|
|
133
142
|
} from "./chunk-HE7WUOX2.js";
|
|
134
143
|
import "./chunk-GNBMKISG.js";
|
|
135
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-VL6NOKJF.js";
|
|
136
145
|
import "./chunk-OH6TB27S.js";
|
|
137
|
-
import
|
|
138
|
-
|
|
146
|
+
import {
|
|
147
|
+
ConfigValueError,
|
|
148
|
+
readConfigKey
|
|
149
|
+
} from "./chunk-4E2XEBCA.js";
|
|
150
|
+
import {
|
|
151
|
+
require_dist
|
|
152
|
+
} from "./chunk-KONYGNG6.js";
|
|
139
153
|
import "./chunk-LCGXWCVU.js";
|
|
140
154
|
import {
|
|
141
155
|
compilePermissionLayers,
|
|
142
156
|
permissionLayersOf,
|
|
143
157
|
warnLegacyMcpPermissionNames
|
|
144
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-7L4LWYJL.js";
|
|
145
159
|
import {
|
|
146
160
|
cliLogger
|
|
147
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-FLCSG33P.js";
|
|
148
162
|
import "./chunk-SIG7WHBU.js";
|
|
149
163
|
import "./chunk-LVVD32KJ.js";
|
|
150
164
|
import "./chunk-6PWRKA5T.js";
|
|
@@ -161,28 +175,28 @@ import {
|
|
|
161
175
|
loadHostPty,
|
|
162
176
|
processesCarrying,
|
|
163
177
|
quietConptyHelper
|
|
164
|
-
} from "./chunk-
|
|
165
|
-
import "./chunk-
|
|
178
|
+
} from "./chunk-PH7RYICR.js";
|
|
179
|
+
import "./chunk-F4HPFCP7.js";
|
|
166
180
|
import {
|
|
167
181
|
automaticKind,
|
|
168
182
|
canSelectModel,
|
|
169
183
|
discoverProviders,
|
|
170
184
|
isAnonymousZen
|
|
171
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-DPFRJK3R.js";
|
|
172
186
|
import {
|
|
173
187
|
isOfferableModel
|
|
174
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-4QIWRKJO.js";
|
|
175
189
|
import "./chunk-G6YSAHKC.js";
|
|
176
|
-
import "./chunk-
|
|
190
|
+
import "./chunk-KTPFUCRU.js";
|
|
177
191
|
import "./chunk-RI2KAZJO.js";
|
|
178
|
-
import "./chunk-
|
|
179
|
-
import "./chunk-
|
|
180
|
-
import "./chunk-
|
|
192
|
+
import "./chunk-EQ6W5RYI.js";
|
|
193
|
+
import "./chunk-I3CWCFIT.js";
|
|
194
|
+
import "./chunk-FWHZB37G.js";
|
|
181
195
|
import {
|
|
182
196
|
canonicalProjectPath
|
|
183
197
|
} from "./chunk-JORONMD3.js";
|
|
184
|
-
import "./chunk-
|
|
185
|
-
import "./chunk-
|
|
198
|
+
import "./chunk-DRNABAHW.js";
|
|
199
|
+
import "./chunk-UI7WXHQL.js";
|
|
186
200
|
import {
|
|
187
201
|
ACPServer,
|
|
188
202
|
DiskLogMedium,
|
|
@@ -216,14 +230,15 @@ import {
|
|
|
216
230
|
resolveWithinAnyReal,
|
|
217
231
|
resolveWithinReal,
|
|
218
232
|
selectAssistantText
|
|
219
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-S4YTXJTD.js";
|
|
220
234
|
import {
|
|
221
|
-
__name
|
|
235
|
+
__name,
|
|
236
|
+
__toESM
|
|
222
237
|
} from "./chunk-76FLAFCG.js";
|
|
223
238
|
|
|
224
239
|
// src/commands/acp.ts
|
|
225
240
|
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
226
|
-
import { readFileSync } from "node:fs";
|
|
241
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
227
242
|
import { dirname as dirname3, join as join6, relative } from "node:path";
|
|
228
243
|
import { fileURLToPath } from "node:url";
|
|
229
244
|
|
|
@@ -3721,7 +3736,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
|
|
|
3721
3736
|
return selections.get(id2);
|
|
3722
3737
|
}, "selectionFor");
|
|
3723
3738
|
const fresh = /* @__PURE__ */ __name((entry) => entry?.settled === true && entry.stored !== true && entry.at !== void 0 && clock2() - entry.at < MODEL_LIST_FRESH_MS, "fresh");
|
|
3724
|
-
const
|
|
3739
|
+
const lookup2 = /* @__PURE__ */ __name(async (engine, cwd) => {
|
|
3725
3740
|
const identity = await deps.identity?.(engine) ?? "";
|
|
3726
3741
|
const key = JSON.stringify([engine, cwd, identity]);
|
|
3727
3742
|
for (const other of [...catalogues.keys()]) {
|
|
@@ -3766,7 +3781,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
|
|
|
3766
3781
|
return entry;
|
|
3767
3782
|
}, "discover");
|
|
3768
3783
|
const modelsFor = /* @__PURE__ */ __name(async (engine, cwd, mode = "cached") => {
|
|
3769
|
-
const { key, identity, entry } = await
|
|
3784
|
+
const { key, identity, entry } = await lookup2(engine, cwd);
|
|
3770
3785
|
const again = entry?.settled === true && (mode === "force" || mode === "revalidate" && !fresh(entry));
|
|
3771
3786
|
const found = entry && !again ? entry : discover(key, identity, engine, cwd, entry);
|
|
3772
3787
|
const models = await found.promise;
|
|
@@ -3777,12 +3792,12 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
|
|
|
3777
3792
|
);
|
|
3778
3793
|
return models;
|
|
3779
3794
|
}, "modelsFor");
|
|
3780
|
-
const knownModels = /* @__PURE__ */ __name(async (engine, cwd) => (await
|
|
3795
|
+
const knownModels = /* @__PURE__ */ __name(async (engine, cwd) => (await lookup2(engine, cwd)).entry?.models, "knownModels");
|
|
3781
3796
|
const findModel = /* @__PURE__ */ __name(async (engine, cwd, wanted) => {
|
|
3782
3797
|
let models = await modelsFor(engine, cwd);
|
|
3783
3798
|
const target = /* @__PURE__ */ __name((list) => wanted === void 0 ? list.find((row3) => row3.default) ?? list[0] : list.find((row3) => row3.id === wanted), "target");
|
|
3784
3799
|
let row2 = target(models);
|
|
3785
|
-
if (!row2 && !fresh((await
|
|
3800
|
+
if (!row2 && !fresh((await lookup2(engine, cwd)).entry)) {
|
|
3786
3801
|
models = await modelsFor(engine, cwd, "force");
|
|
3787
3802
|
row2 = target(models);
|
|
3788
3803
|
}
|
|
@@ -4235,9 +4250,1076 @@ async function readProviderRetryStatus(state, sessionId) {
|
|
|
4235
4250
|
}
|
|
4236
4251
|
__name(readProviderRetryStatus, "readProviderRetryStatus");
|
|
4237
4252
|
|
|
4253
|
+
// src/commands/acp-screen-question.ts
|
|
4254
|
+
var SCREEN_MOMENT_TOOL = "screen_moment";
|
|
4255
|
+
function questionsOverPermission(sessionId, ask, turnSignal) {
|
|
4256
|
+
let counter = 0;
|
|
4257
|
+
return async (question, signal) => {
|
|
4258
|
+
const app = screenQuestionApp(question);
|
|
4259
|
+
if (app === void 0) return { kind: "skip" };
|
|
4260
|
+
if (turnSignal.aborted) return { kind: "abort" };
|
|
4261
|
+
counter += 1;
|
|
4262
|
+
const asked = ask({
|
|
4263
|
+
sessionId,
|
|
4264
|
+
toolCalls: [
|
|
4265
|
+
{
|
|
4266
|
+
id: `screen-moment-${counter}`,
|
|
4267
|
+
name: SCREEN_MOMENT_TOOL,
|
|
4268
|
+
input: { app },
|
|
4269
|
+
isDestructive: false,
|
|
4270
|
+
alwaysAsk: true
|
|
4271
|
+
}
|
|
4272
|
+
]
|
|
4273
|
+
}).then(
|
|
4274
|
+
(outcome) => outcome.kind === "reject" ? { kind: "answer", selectedOptionIds: ["deny"] } : { kind: "answer", selectedOptionIds: ["allow"] },
|
|
4275
|
+
() => turnSignal.aborted ? { kind: "abort" } : { kind: "skip" }
|
|
4276
|
+
);
|
|
4277
|
+
if (!signal) return asked;
|
|
4278
|
+
const stopped = new Promise((resolve4) => {
|
|
4279
|
+
const done = /* @__PURE__ */ __name(() => resolve4({ kind: "skip" }), "done");
|
|
4280
|
+
if (signal.aborted) done();
|
|
4281
|
+
else signal.addEventListener("abort", done, { once: true });
|
|
4282
|
+
});
|
|
4283
|
+
return Promise.race([asked, stopped]);
|
|
4284
|
+
};
|
|
4285
|
+
}
|
|
4286
|
+
__name(questionsOverPermission, "questionsOverPermission");
|
|
4287
|
+
|
|
4238
4288
|
// src/commands/desktop-host.ts
|
|
4239
4289
|
import { lstat as lstat2 } from "node:fs/promises";
|
|
4240
4290
|
|
|
4291
|
+
// src/config/desktop-settings.ts
|
|
4292
|
+
var import_yaml = __toESM(require_dist(), 1);
|
|
4293
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
4294
|
+
|
|
4295
|
+
// src/config/settings-descriptors.ts
|
|
4296
|
+
var on = { kind: "toggle" };
|
|
4297
|
+
var num = /* @__PURE__ */ __name((min, max, unit) => ({
|
|
4298
|
+
kind: "number",
|
|
4299
|
+
...min !== void 0 ? { min } : {},
|
|
4300
|
+
...max !== void 0 ? { max } : {},
|
|
4301
|
+
...unit ? { unit } : {}
|
|
4302
|
+
}), "num");
|
|
4303
|
+
var pick = /* @__PURE__ */ __name((...values) => ({
|
|
4304
|
+
kind: "select",
|
|
4305
|
+
options: values.map((value) => ({ value, label: value }))
|
|
4306
|
+
}), "pick");
|
|
4307
|
+
var checks = /* @__PURE__ */ __name((...values) => ({
|
|
4308
|
+
kind: "checks",
|
|
4309
|
+
options: values.map((value) => ({ value, label: value }))
|
|
4310
|
+
}), "checks");
|
|
4311
|
+
var json = /* @__PURE__ */ __name((example) => ({ kind: "json", example }), "json");
|
|
4312
|
+
var fileOnly = { kind: "file-only" };
|
|
4313
|
+
function d(path, section, label, description, control, more = {}) {
|
|
4314
|
+
return { path, section, label, description, control, ...more };
|
|
4315
|
+
}
|
|
4316
|
+
__name(d, "d");
|
|
4317
|
+
var SETTING_DESCRIPTORS = [
|
|
4318
|
+
// General
|
|
4319
|
+
d(
|
|
4320
|
+
"format",
|
|
4321
|
+
"terminal",
|
|
4322
|
+
"Output format",
|
|
4323
|
+
"How the command line prints its results.",
|
|
4324
|
+
pick("text", "json", "yaml"),
|
|
4325
|
+
{ defaultText: "text" }
|
|
4326
|
+
),
|
|
4327
|
+
d("quiet", "terminal", "Quiet output", "Print only what was asked for.", on, {
|
|
4328
|
+
defaultText: "off"
|
|
4329
|
+
}),
|
|
4330
|
+
d(
|
|
4331
|
+
"hypermode",
|
|
4332
|
+
"general",
|
|
4333
|
+
"Hypermode",
|
|
4334
|
+
"Let Namzu run longer, larger jobs without stopping to check in.",
|
|
4335
|
+
on,
|
|
4336
|
+
{
|
|
4337
|
+
defaultText: "off",
|
|
4338
|
+
confirm: "Namzu will run longer jobs without stopping to check in with you.",
|
|
4339
|
+
confirmWhen: "on"
|
|
4340
|
+
}
|
|
4341
|
+
),
|
|
4342
|
+
d(
|
|
4343
|
+
"profiles",
|
|
4344
|
+
"general",
|
|
4345
|
+
"Profiles",
|
|
4346
|
+
"Named bundles of settings you switch between. Edit them in the config file.",
|
|
4347
|
+
fileOnly
|
|
4348
|
+
),
|
|
4349
|
+
// Models
|
|
4350
|
+
d(
|
|
4351
|
+
"model",
|
|
4352
|
+
"models",
|
|
4353
|
+
"Choose the model automatically",
|
|
4354
|
+
"Pick a model for each task. Needs routing below.",
|
|
4355
|
+
pick("auto"),
|
|
4356
|
+
{
|
|
4357
|
+
confirm: "Namzu will send the start of each task to a model that chooses which model answers."
|
|
4358
|
+
}
|
|
4359
|
+
),
|
|
4360
|
+
d(
|
|
4361
|
+
"routing",
|
|
4362
|
+
"models",
|
|
4363
|
+
"Automatic routing",
|
|
4364
|
+
"Which model is the default, which are fast and large, and how a choice is made.",
|
|
4365
|
+
json('{ "default": { "provider": "anthropic", "model": "..." }, "strategy": "yesno" }'),
|
|
4366
|
+
{
|
|
4367
|
+
confirm: "Routing sends task text to a model that decides which model answers."
|
|
4368
|
+
}
|
|
4369
|
+
),
|
|
4370
|
+
d(
|
|
4371
|
+
"smallModel",
|
|
4372
|
+
"models",
|
|
4373
|
+
"Small model",
|
|
4374
|
+
"The model for quick side jobs such as titles. Provider/model, or just the model.",
|
|
4375
|
+
{ kind: "text", placeholder: "provider/model" },
|
|
4376
|
+
{
|
|
4377
|
+
defaultText: "the cheapest model with a known price",
|
|
4378
|
+
confirm: "Text from your conversations is sent to this model for side jobs."
|
|
4379
|
+
}
|
|
4380
|
+
),
|
|
4381
|
+
d(
|
|
4382
|
+
"refusalFallback",
|
|
4383
|
+
"models",
|
|
4384
|
+
"When a model refuses",
|
|
4385
|
+
"Try another model when the first one declines to answer.",
|
|
4386
|
+
pick("auto", "off"),
|
|
4387
|
+
{
|
|
4388
|
+
defaultText: "auto",
|
|
4389
|
+
confirm: "The request will be sent to a different model after a refusal."
|
|
4390
|
+
}
|
|
4391
|
+
),
|
|
4392
|
+
d(
|
|
4393
|
+
"modelCatalogueRefresh",
|
|
4394
|
+
"models",
|
|
4395
|
+
"Refresh the model list",
|
|
4396
|
+
"Look for new models and prices when Namzu starts.",
|
|
4397
|
+
on,
|
|
4398
|
+
{ defaultText: "on" }
|
|
4399
|
+
),
|
|
4400
|
+
d(
|
|
4401
|
+
"decision",
|
|
4402
|
+
"models",
|
|
4403
|
+
"Decision model",
|
|
4404
|
+
"A second model that helps with notifications, memory, skills and picks. Set it up from the terminal; it keeps no secret in this file.",
|
|
4405
|
+
fileOnly
|
|
4406
|
+
),
|
|
4407
|
+
d(
|
|
4408
|
+
"permissions.autoMode",
|
|
4409
|
+
"models",
|
|
4410
|
+
"Auto mode reviewer",
|
|
4411
|
+
"The model and rules that approve actions in auto mode.",
|
|
4412
|
+
json('{ "model": "provider/model" }'),
|
|
4413
|
+
{
|
|
4414
|
+
confirm: "This decides which actions are approved without asking you."
|
|
4415
|
+
}
|
|
4416
|
+
),
|
|
4417
|
+
// Projects: what may run
|
|
4418
|
+
d(
|
|
4419
|
+
"permissions.defaultMode",
|
|
4420
|
+
"projects",
|
|
4421
|
+
"Default permission mode",
|
|
4422
|
+
"How Namzu asks before it acts, until you choose otherwise for a conversation.",
|
|
4423
|
+
pick("prompt", "accept-edits", "plan", "bypass", "auto", "strict"),
|
|
4424
|
+
{
|
|
4425
|
+
defaultText: "prompt",
|
|
4426
|
+
confirm: "Some modes let Namzu act without asking. Only choose one you are comfortable with."
|
|
4427
|
+
}
|
|
4428
|
+
),
|
|
4429
|
+
d(
|
|
4430
|
+
"permissions.disableBypassMode",
|
|
4431
|
+
"projects",
|
|
4432
|
+
"Forbid bypass mode",
|
|
4433
|
+
"Remove the mode that skips every question.",
|
|
4434
|
+
on,
|
|
4435
|
+
{
|
|
4436
|
+
confirm: "Bypass mode, which skips every question, will be available again.",
|
|
4437
|
+
confirmWhen: "off"
|
|
4438
|
+
}
|
|
4439
|
+
),
|
|
4440
|
+
d(
|
|
4441
|
+
"permissions.disableAutoMode",
|
|
4442
|
+
"projects",
|
|
4443
|
+
"Forbid auto mode",
|
|
4444
|
+
"Remove the mode that lets a model approve actions.",
|
|
4445
|
+
on,
|
|
4446
|
+
{
|
|
4447
|
+
confirm: "Auto mode, where a model approves actions, will be available again.",
|
|
4448
|
+
confirmWhen: "off"
|
|
4449
|
+
}
|
|
4450
|
+
),
|
|
4451
|
+
d(
|
|
4452
|
+
"permissions.outsideRoot",
|
|
4453
|
+
"projects",
|
|
4454
|
+
"Paths outside the working folder",
|
|
4455
|
+
"Ask before reading or changing a file outside the working folder and the extra folders, or refuse without asking.",
|
|
4456
|
+
pick("ask", "refuse"),
|
|
4457
|
+
{
|
|
4458
|
+
defaultText: "ask",
|
|
4459
|
+
confirm: "Namzu will be able to ask about files outside the working folder again.",
|
|
4460
|
+
confirmValue: "ask",
|
|
4461
|
+
keywords: ["outside", "folder", "directory", "boundary", "refuse"]
|
|
4462
|
+
}
|
|
4463
|
+
),
|
|
4464
|
+
d(
|
|
4465
|
+
"permissions",
|
|
4466
|
+
"projects",
|
|
4467
|
+
"Permission rules",
|
|
4468
|
+
"Allow, ask or deny a tool, or a pattern of its input.",
|
|
4469
|
+
json('{ "bash": "ask", "read": "allow" }'),
|
|
4470
|
+
{
|
|
4471
|
+
confirm: "Rules can let tools run without asking you."
|
|
4472
|
+
}
|
|
4473
|
+
),
|
|
4474
|
+
d(
|
|
4475
|
+
"permissionChecks",
|
|
4476
|
+
"projects",
|
|
4477
|
+
"Permission self-checks",
|
|
4478
|
+
"Cases that must come out as allow, ask or deny, checked when Namzu starts.",
|
|
4479
|
+
json('[ { "tool": "bash", "input": "rm -rf /", "expect": "deny" } ]'),
|
|
4480
|
+
{
|
|
4481
|
+
confirm: "Removing a check means a rule that lets the wrong thing through goes unnoticed."
|
|
4482
|
+
}
|
|
4483
|
+
),
|
|
4484
|
+
d(
|
|
4485
|
+
"additionalDirectories",
|
|
4486
|
+
"projects",
|
|
4487
|
+
"Extra folders",
|
|
4488
|
+
"Folders besides the project that Namzu may read and change.",
|
|
4489
|
+
json('[ "/path/to/folder" ]'),
|
|
4490
|
+
{
|
|
4491
|
+
confirm: "Namzu will be able to reach these folders in every project."
|
|
4492
|
+
}
|
|
4493
|
+
),
|
|
4494
|
+
d(
|
|
4495
|
+
"sandbox.enabled",
|
|
4496
|
+
"projects",
|
|
4497
|
+
"Run in a sandbox",
|
|
4498
|
+
"Keep what Namzu runs inside an isolated space.",
|
|
4499
|
+
on,
|
|
4500
|
+
{
|
|
4501
|
+
confirm: "Without a sandbox, commands run directly on this computer.",
|
|
4502
|
+
confirmWhen: "off"
|
|
4503
|
+
}
|
|
4504
|
+
),
|
|
4505
|
+
d(
|
|
4506
|
+
"sandbox.allowEscape",
|
|
4507
|
+
"projects",
|
|
4508
|
+
"Allow leaving the sandbox",
|
|
4509
|
+
"Let Namzu ask to run one command outside it.",
|
|
4510
|
+
on,
|
|
4511
|
+
{
|
|
4512
|
+
defaultText: "on",
|
|
4513
|
+
confirm: "Namzu will be able to ask to run commands outside the sandbox.",
|
|
4514
|
+
confirmWhen: "on"
|
|
4515
|
+
}
|
|
4516
|
+
),
|
|
4517
|
+
d(
|
|
4518
|
+
"sandbox.allowUnattendedEscape",
|
|
4519
|
+
"projects",
|
|
4520
|
+
"Allow leaving it without asking",
|
|
4521
|
+
"Let work nobody is watching run outside the sandbox.",
|
|
4522
|
+
on,
|
|
4523
|
+
{
|
|
4524
|
+
defaultText: "off",
|
|
4525
|
+
confirm: "Unattended work could run commands outside the sandbox with nobody to stop it.",
|
|
4526
|
+
confirmWhen: "on"
|
|
4527
|
+
}
|
|
4528
|
+
),
|
|
4529
|
+
d(
|
|
4530
|
+
"sandbox.requireIsolation",
|
|
4531
|
+
"projects",
|
|
4532
|
+
"Required isolation",
|
|
4533
|
+
"Namzu refuses to start when the sandbox cannot isolate all of these.",
|
|
4534
|
+
checks("filesystem", "network", "process")
|
|
4535
|
+
),
|
|
4536
|
+
d(
|
|
4537
|
+
"sandbox.workspace",
|
|
4538
|
+
"projects",
|
|
4539
|
+
"Sandbox workspace",
|
|
4540
|
+
"Work in the project folder, or in a throwaway copy.",
|
|
4541
|
+
pick("working-directory", "ephemeral"),
|
|
4542
|
+
{ defaultText: "working-directory" }
|
|
4543
|
+
),
|
|
4544
|
+
d(
|
|
4545
|
+
"sandbox.teardownTimeoutMs",
|
|
4546
|
+
"projects",
|
|
4547
|
+
"Sandbox cleanup time limit",
|
|
4548
|
+
"How long to wait while a sandbox shuts down. 0 waits as long as it takes.",
|
|
4549
|
+
num(0, void 0, "ms"),
|
|
4550
|
+
{ defaultText: "30000" }
|
|
4551
|
+
),
|
|
4552
|
+
// Updates
|
|
4553
|
+
d(
|
|
4554
|
+
"updates.auto",
|
|
4555
|
+
"terminal",
|
|
4556
|
+
"Install command line updates automatically",
|
|
4557
|
+
"Namzu updates itself in the background.",
|
|
4558
|
+
on,
|
|
4559
|
+
{
|
|
4560
|
+
confirm: "Namzu will install new versions of its command line on its own.",
|
|
4561
|
+
confirmWhen: "on"
|
|
4562
|
+
}
|
|
4563
|
+
),
|
|
4564
|
+
d(
|
|
4565
|
+
"updates.channel",
|
|
4566
|
+
"updates",
|
|
4567
|
+
"Update channel",
|
|
4568
|
+
"latest gets new versions first, stable waits longer.",
|
|
4569
|
+
pick("latest", "stable"),
|
|
4570
|
+
{ defaultText: "latest" }
|
|
4571
|
+
),
|
|
4572
|
+
d(
|
|
4573
|
+
"updates.check",
|
|
4574
|
+
"terminal",
|
|
4575
|
+
"Check for command line updates",
|
|
4576
|
+
"Look for a new version when Namzu starts.",
|
|
4577
|
+
on
|
|
4578
|
+
),
|
|
4579
|
+
// Agent
|
|
4580
|
+
d(
|
|
4581
|
+
"limits.maxResponseTokens",
|
|
4582
|
+
"agent",
|
|
4583
|
+
"Longest answer",
|
|
4584
|
+
"The most a model may write in one answer.",
|
|
4585
|
+
num(1, void 0, "tokens"),
|
|
4586
|
+
{ defaultText: "8192" }
|
|
4587
|
+
),
|
|
4588
|
+
d(
|
|
4589
|
+
"limits.maxReasoningTokens",
|
|
4590
|
+
"agent",
|
|
4591
|
+
"Thinking budget",
|
|
4592
|
+
"The most a model may think before answering. 0 removes the cap.",
|
|
4593
|
+
num(0, void 0, "tokens"),
|
|
4594
|
+
{ defaultText: "24000 at medium effort and above" }
|
|
4595
|
+
),
|
|
4596
|
+
d(
|
|
4597
|
+
"limits.doneGate",
|
|
4598
|
+
"agent",
|
|
4599
|
+
"Check before finishing",
|
|
4600
|
+
"Namzu checks its own work once before it ends a turn.",
|
|
4601
|
+
on,
|
|
4602
|
+
{
|
|
4603
|
+
defaultText: "on",
|
|
4604
|
+
confirm: "Namzu will end a turn without checking its own work first.",
|
|
4605
|
+
confirmWhen: "off"
|
|
4606
|
+
}
|
|
4607
|
+
),
|
|
4608
|
+
d(
|
|
4609
|
+
"limits.maxHookRefusals",
|
|
4610
|
+
"agent",
|
|
4611
|
+
"Hook refusals before a turn ends",
|
|
4612
|
+
"How many times in a row a hook may refuse to let a turn end before Namzu ends it anyway. 0 means no limit.",
|
|
4613
|
+
num(0),
|
|
4614
|
+
{ defaultText: "8 (0 for no limit)" }
|
|
4615
|
+
),
|
|
4616
|
+
d("limits.maxIterations", "agent", "Most steps per task", "0 means no limit.", num(0), {
|
|
4617
|
+
defaultText: "no limit",
|
|
4618
|
+
confirm: "With no limit, a task can keep taking steps until it ends on its own.",
|
|
4619
|
+
confirmWhen: "zero"
|
|
4620
|
+
}),
|
|
4621
|
+
d(
|
|
4622
|
+
"limits.tokenBudget",
|
|
4623
|
+
"agent",
|
|
4624
|
+
"Most tokens per task",
|
|
4625
|
+
"0 means no limit.",
|
|
4626
|
+
num(0, void 0, "tokens"),
|
|
4627
|
+
{
|
|
4628
|
+
defaultText: "no limit",
|
|
4629
|
+
confirm: "With no limit, a task can use as many tokens as it needs.",
|
|
4630
|
+
confirmWhen: "zero"
|
|
4631
|
+
}
|
|
4632
|
+
),
|
|
4633
|
+
d(
|
|
4634
|
+
"limits.timeoutMs",
|
|
4635
|
+
"agent",
|
|
4636
|
+
"Longest task time",
|
|
4637
|
+
"0 means no limit.",
|
|
4638
|
+
num(0, void 0, "ms"),
|
|
4639
|
+
{ defaultText: "no limit" }
|
|
4640
|
+
),
|
|
4641
|
+
d(
|
|
4642
|
+
"limits.costLimitUsd",
|
|
4643
|
+
"agent",
|
|
4644
|
+
"Most spend per task",
|
|
4645
|
+
"In US dollars. 0 means no limit.",
|
|
4646
|
+
num(0, void 0, "USD"),
|
|
4647
|
+
{
|
|
4648
|
+
defaultText: "no limit",
|
|
4649
|
+
confirm: "With no limit, a task can spend as much as it takes.",
|
|
4650
|
+
confirmWhen: "zero"
|
|
4651
|
+
}
|
|
4652
|
+
),
|
|
4653
|
+
d(
|
|
4654
|
+
"limits.waitForProviderMs",
|
|
4655
|
+
"terminal",
|
|
4656
|
+
"Wait for a busy provider",
|
|
4657
|
+
"How long a one-shot run waits when a provider is busy.",
|
|
4658
|
+
num(0, void 0, "ms"),
|
|
4659
|
+
{ defaultText: "0" }
|
|
4660
|
+
),
|
|
4661
|
+
d(
|
|
4662
|
+
"workflow.maxConcurrency",
|
|
4663
|
+
"agent",
|
|
4664
|
+
"Helpers working at once",
|
|
4665
|
+
"How many helper agents may run side by side.",
|
|
4666
|
+
num(2, 16),
|
|
4667
|
+
{ defaultText: "your processor count minus 2, at most 16" }
|
|
4668
|
+
),
|
|
4669
|
+
d(
|
|
4670
|
+
"workflow.maxAgents",
|
|
4671
|
+
"agent",
|
|
4672
|
+
"Most helpers per workflow",
|
|
4673
|
+
"A cap on how many helper agents one workflow may start.",
|
|
4674
|
+
num(1, 1e3),
|
|
4675
|
+
{ defaultText: "1000" }
|
|
4676
|
+
),
|
|
4677
|
+
d(
|
|
4678
|
+
"workflow.sizeGuideline",
|
|
4679
|
+
"agent",
|
|
4680
|
+
"Workflow size",
|
|
4681
|
+
"How large a workflow Namzu aims for.",
|
|
4682
|
+
pick("unrestricted", "small", "medium", "large"),
|
|
4683
|
+
{ defaultText: "medium" }
|
|
4684
|
+
),
|
|
4685
|
+
d(
|
|
4686
|
+
"toolResultScreens",
|
|
4687
|
+
"agent",
|
|
4688
|
+
"Screens on tool results",
|
|
4689
|
+
"Checks applied to what a tool returns before a model reads it.",
|
|
4690
|
+
json('[ "correspondence", "injection" ]'),
|
|
4691
|
+
{
|
|
4692
|
+
confirm: "Removing a screen lets tool output reach the model unchecked."
|
|
4693
|
+
}
|
|
4694
|
+
),
|
|
4695
|
+
d(
|
|
4696
|
+
"compaction.strategy",
|
|
4697
|
+
"agent",
|
|
4698
|
+
"How long chats are shortened",
|
|
4699
|
+
"The method used to fit a long conversation in the model window.",
|
|
4700
|
+
pick("structured", "salience"),
|
|
4701
|
+
{ defaultText: "salience" }
|
|
4702
|
+
),
|
|
4703
|
+
d(
|
|
4704
|
+
"compaction.autoCompactWindowTokens",
|
|
4705
|
+
"agent",
|
|
4706
|
+
"Shorten at this size",
|
|
4707
|
+
"Shorten the conversation when it reaches this many tokens.",
|
|
4708
|
+
num(1, void 0, "tokens")
|
|
4709
|
+
),
|
|
4710
|
+
d(
|
|
4711
|
+
"compaction.contextWindowTokens",
|
|
4712
|
+
"agent",
|
|
4713
|
+
"Assumed model window",
|
|
4714
|
+
"Override the model window size Namzu assumes. Advanced.",
|
|
4715
|
+
num(1, void 0, "tokens")
|
|
4716
|
+
),
|
|
4717
|
+
d(
|
|
4718
|
+
"compaction.modelSummary",
|
|
4719
|
+
"agent",
|
|
4720
|
+
"Summarise with a model",
|
|
4721
|
+
"Use a model to write the summary when shortening.",
|
|
4722
|
+
on,
|
|
4723
|
+
{ defaultText: "on" }
|
|
4724
|
+
),
|
|
4725
|
+
d(
|
|
4726
|
+
"compaction.recallEvidence",
|
|
4727
|
+
"agent",
|
|
4728
|
+
"Recall dropped details",
|
|
4729
|
+
"Bring back details that shortening removed when they matter.",
|
|
4730
|
+
on,
|
|
4731
|
+
{ defaultText: "on" }
|
|
4732
|
+
),
|
|
4733
|
+
d(
|
|
4734
|
+
"compaction.resolveEvidenceQueries",
|
|
4735
|
+
"agent",
|
|
4736
|
+
"Ask a model what to recall",
|
|
4737
|
+
"A paid call that finds the details worth recalling.",
|
|
4738
|
+
on,
|
|
4739
|
+
{ defaultText: "on" }
|
|
4740
|
+
),
|
|
4741
|
+
d(
|
|
4742
|
+
"compaction.retainedToolPreviewChars",
|
|
4743
|
+
"agent",
|
|
4744
|
+
"Kept tool output",
|
|
4745
|
+
"Characters of each tool result kept after shortening. 0 keeps up to 40000.",
|
|
4746
|
+
num(0, void 0, "characters"),
|
|
4747
|
+
{ defaultText: "4000" }
|
|
4748
|
+
),
|
|
4749
|
+
d(
|
|
4750
|
+
"compaction.deduplicateObservations",
|
|
4751
|
+
"agent",
|
|
4752
|
+
"Drop repeated results",
|
|
4753
|
+
"Keep one copy of the same tool result.",
|
|
4754
|
+
on,
|
|
4755
|
+
{ defaultText: "on" }
|
|
4756
|
+
),
|
|
4757
|
+
d(
|
|
4758
|
+
"compaction.consolidate",
|
|
4759
|
+
"agent",
|
|
4760
|
+
"Merge notes when shortening",
|
|
4761
|
+
"Merge related notes into one.",
|
|
4762
|
+
on
|
|
4763
|
+
),
|
|
4764
|
+
d(
|
|
4765
|
+
"compaction.idleCompaction",
|
|
4766
|
+
"agent",
|
|
4767
|
+
"Shorten while idle",
|
|
4768
|
+
"Shorten a large conversation while you are away.",
|
|
4769
|
+
on,
|
|
4770
|
+
{ defaultText: "off" }
|
|
4771
|
+
),
|
|
4772
|
+
d(
|
|
4773
|
+
"compaction.clearStaleResultsAfterIdle",
|
|
4774
|
+
"agent",
|
|
4775
|
+
"Shed old results after a long break",
|
|
4776
|
+
"When you return after the provider cache has expired, replace old, large tool results with a short note before the first request. They stay readable through the note.",
|
|
4777
|
+
on,
|
|
4778
|
+
{ defaultText: "on" }
|
|
4779
|
+
),
|
|
4780
|
+
d(
|
|
4781
|
+
"compaction.idleCompactionMinTokens",
|
|
4782
|
+
"agent",
|
|
4783
|
+
"Idle shortening starts at",
|
|
4784
|
+
"The smallest conversation worth shortening while idle. At least 100000.",
|
|
4785
|
+
num(1e5, void 0, "tokens"),
|
|
4786
|
+
{ defaultText: "200000" }
|
|
4787
|
+
),
|
|
4788
|
+
d(
|
|
4789
|
+
"compaction.promptCacheTtl",
|
|
4790
|
+
"agent",
|
|
4791
|
+
"Cache lifetime",
|
|
4792
|
+
"1h keeps a conversation cheap to resume but costs more to write.",
|
|
4793
|
+
pick("5m", "1h"),
|
|
4794
|
+
{ defaultText: "5m" }
|
|
4795
|
+
),
|
|
4796
|
+
d("memory.recall", "agent", "Recall memory", "Bring saved memory into a conversation.", on, {
|
|
4797
|
+
defaultText: "on"
|
|
4798
|
+
}),
|
|
4799
|
+
d(
|
|
4800
|
+
"memory.identifierGrounding",
|
|
4801
|
+
"agent",
|
|
4802
|
+
"Check names against memory",
|
|
4803
|
+
"Verify file and function names before using them.",
|
|
4804
|
+
on,
|
|
4805
|
+
{ defaultText: "off" }
|
|
4806
|
+
),
|
|
4807
|
+
d(
|
|
4808
|
+
"memory.select",
|
|
4809
|
+
"agent",
|
|
4810
|
+
"Choose memory with a model",
|
|
4811
|
+
"A model picks which memories to bring in.",
|
|
4812
|
+
pick("on", "off"),
|
|
4813
|
+
{
|
|
4814
|
+
defaultText: "on",
|
|
4815
|
+
confirm: "Memory titles are sent to a model to choose from."
|
|
4816
|
+
}
|
|
4817
|
+
),
|
|
4818
|
+
d(
|
|
4819
|
+
"memory.curation",
|
|
4820
|
+
"agent",
|
|
4821
|
+
"Tidy memory with a model",
|
|
4822
|
+
"A model merges and retires memories.",
|
|
4823
|
+
pick("on", "off"),
|
|
4824
|
+
{
|
|
4825
|
+
defaultText: "on",
|
|
4826
|
+
confirm: "Memory content is sent to a model to tidy it."
|
|
4827
|
+
}
|
|
4828
|
+
),
|
|
4829
|
+
d(
|
|
4830
|
+
"memory.retireAfterDays",
|
|
4831
|
+
"agent",
|
|
4832
|
+
"Retire unused memory after",
|
|
4833
|
+
"Days before an unused memory retires. 0 keeps it forever.",
|
|
4834
|
+
num(0, void 0, "days"),
|
|
4835
|
+
{ defaultText: "21" }
|
|
4836
|
+
),
|
|
4837
|
+
d(
|
|
4838
|
+
"learningObservations",
|
|
4839
|
+
"agent",
|
|
4840
|
+
"Learn from your work",
|
|
4841
|
+
"Note what you do so Namzu can suggest habits and skills.",
|
|
4842
|
+
on,
|
|
4843
|
+
{ defaultText: "on" }
|
|
4844
|
+
),
|
|
4845
|
+
d(
|
|
4846
|
+
"learningGenerator.enabled",
|
|
4847
|
+
"agent",
|
|
4848
|
+
"Write suggestions from what it learned",
|
|
4849
|
+
"Let a model turn observations into suggestions.",
|
|
4850
|
+
on
|
|
4851
|
+
),
|
|
4852
|
+
d(
|
|
4853
|
+
"learningGenerator.cycleTokens",
|
|
4854
|
+
"agent",
|
|
4855
|
+
"Tokens per learning cycle",
|
|
4856
|
+
"The most one learning pass may use.",
|
|
4857
|
+
num(1e3, void 0, "tokens"),
|
|
4858
|
+
{ defaultText: "120000" }
|
|
4859
|
+
),
|
|
4860
|
+
d(
|
|
4861
|
+
"learningGenerator.dailyTokens",
|
|
4862
|
+
"agent",
|
|
4863
|
+
"Tokens per day for learning",
|
|
4864
|
+
"The most learning may use in a day.",
|
|
4865
|
+
num(1e3, void 0, "tokens"),
|
|
4866
|
+
{ defaultText: "300000" }
|
|
4867
|
+
),
|
|
4868
|
+
d("skills.builtin", "agent", "Built-in skills", "Offer the skills that ship with Namzu.", on, {
|
|
4869
|
+
defaultText: "on"
|
|
4870
|
+
}),
|
|
4871
|
+
d(
|
|
4872
|
+
"skills.disabled",
|
|
4873
|
+
"agent",
|
|
4874
|
+
"Turned-off skills",
|
|
4875
|
+
"Skills Namzu will not use, by name.",
|
|
4876
|
+
json('[ "skill-name" ]')
|
|
4877
|
+
),
|
|
4878
|
+
d(
|
|
4879
|
+
"skills.suggest",
|
|
4880
|
+
"agent",
|
|
4881
|
+
"Suggest saving a skill",
|
|
4882
|
+
"After a long task, offer to keep it as a skill.",
|
|
4883
|
+
on,
|
|
4884
|
+
{ defaultText: "on" }
|
|
4885
|
+
),
|
|
4886
|
+
d(
|
|
4887
|
+
"skills.suggestMinToolCalls",
|
|
4888
|
+
"agent",
|
|
4889
|
+
"Suggest after this many steps",
|
|
4890
|
+
"How long a task must be before a skill is suggested.",
|
|
4891
|
+
num(1),
|
|
4892
|
+
{ defaultText: "6" }
|
|
4893
|
+
),
|
|
4894
|
+
d(
|
|
4895
|
+
"schedule.maxConcurrentRuns",
|
|
4896
|
+
"agent",
|
|
4897
|
+
"Scheduled runs at once",
|
|
4898
|
+
"How many scheduled tasks may run side by side.",
|
|
4899
|
+
num(1),
|
|
4900
|
+
{ defaultText: "2" }
|
|
4901
|
+
),
|
|
4902
|
+
d(
|
|
4903
|
+
"schedule.notifications",
|
|
4904
|
+
"agent",
|
|
4905
|
+
"Notify when a scheduled run ends",
|
|
4906
|
+
"Tell you when a scheduled task finishes.",
|
|
4907
|
+
on,
|
|
4908
|
+
{ defaultText: "on" }
|
|
4909
|
+
),
|
|
4910
|
+
// Tools
|
|
4911
|
+
d(
|
|
4912
|
+
"web.search",
|
|
4913
|
+
"tools",
|
|
4914
|
+
"Web search",
|
|
4915
|
+
"off, cached results only, or live.",
|
|
4916
|
+
pick("off", "cached", "live"),
|
|
4917
|
+
{
|
|
4918
|
+
defaultText: "live",
|
|
4919
|
+
confirm: "Namzu will search the web and send queries out."
|
|
4920
|
+
}
|
|
4921
|
+
),
|
|
4922
|
+
d(
|
|
4923
|
+
"web.backend",
|
|
4924
|
+
"tools",
|
|
4925
|
+
"Web search service",
|
|
4926
|
+
"Which service answers web searches.",
|
|
4927
|
+
pick("auto", "exa", "native"),
|
|
4928
|
+
{
|
|
4929
|
+
defaultText: "auto",
|
|
4930
|
+
confirm: "The native option has no local review of what is searched."
|
|
4931
|
+
}
|
|
4932
|
+
),
|
|
4933
|
+
d("web.fetch", "tools", "Fetch web pages", "Let Namzu read the web pages it is pointed to.", on, {
|
|
4934
|
+
defaultText: "on",
|
|
4935
|
+
confirm: "Namzu will download pages from the internet.",
|
|
4936
|
+
confirmWhen: "on"
|
|
4937
|
+
}),
|
|
4938
|
+
d("browser.enabled", "terminal", "Browser", "Let the terminal app use a browser.", on, {
|
|
4939
|
+
defaultText: "on"
|
|
4940
|
+
}),
|
|
4941
|
+
d(
|
|
4942
|
+
"browser.defaultProfile",
|
|
4943
|
+
"tools",
|
|
4944
|
+
"Browser profile",
|
|
4945
|
+
"The browser profile Namzu uses. Sign-ins live in it.",
|
|
4946
|
+
{ kind: "text", placeholder: "default" },
|
|
4947
|
+
{
|
|
4948
|
+
defaultText: "default",
|
|
4949
|
+
confirm: "That profile holds the sign-ins Namzu would use."
|
|
4950
|
+
}
|
|
4951
|
+
),
|
|
4952
|
+
d(
|
|
4953
|
+
"browser.engine",
|
|
4954
|
+
"tools",
|
|
4955
|
+
"Browser engine",
|
|
4956
|
+
"Which browser Namzu drives.",
|
|
4957
|
+
pick("auto", "windows", "local"),
|
|
4958
|
+
{ defaultText: "auto" }
|
|
4959
|
+
),
|
|
4960
|
+
d(
|
|
4961
|
+
"browser.headless",
|
|
4962
|
+
"tools",
|
|
4963
|
+
"Show the browser window",
|
|
4964
|
+
"auto decides, always hides it, never shows it.",
|
|
4965
|
+
pick("auto", "always", "never"),
|
|
4966
|
+
{ defaultText: "auto" }
|
|
4967
|
+
),
|
|
4968
|
+
d(
|
|
4969
|
+
"browser.sites",
|
|
4970
|
+
"tools",
|
|
4971
|
+
"Browser sites",
|
|
4972
|
+
"Per site: deny, read, ask or act. * is every other site.",
|
|
4973
|
+
json('{ "example.com": "read", "*": "ask" }'),
|
|
4974
|
+
{
|
|
4975
|
+
confirm: "Allowing act lets Namzu click and type on that site."
|
|
4976
|
+
}
|
|
4977
|
+
),
|
|
4978
|
+
d(
|
|
4979
|
+
"browser.keepOpen",
|
|
4980
|
+
"tools",
|
|
4981
|
+
"Keep the browser open",
|
|
4982
|
+
"Leave the browser running between tasks.",
|
|
4983
|
+
on,
|
|
4984
|
+
{ defaultText: "off" }
|
|
4985
|
+
),
|
|
4986
|
+
d(
|
|
4987
|
+
"codeAnalysis.enabled",
|
|
4988
|
+
"terminal",
|
|
4989
|
+
"Code analysis",
|
|
4990
|
+
"Understand code structure in the terminal app.",
|
|
4991
|
+
on,
|
|
4992
|
+
{ defaultText: "on" }
|
|
4993
|
+
),
|
|
4994
|
+
d(
|
|
4995
|
+
"mcpServers",
|
|
4996
|
+
"tools",
|
|
4997
|
+
"Connected servers",
|
|
4998
|
+
"Tool servers Namzu starts or reaches. They hold commands and secrets, so edit them in the config file or the terminal.",
|
|
4999
|
+
fileOnly
|
|
5000
|
+
),
|
|
5001
|
+
d(
|
|
5002
|
+
"hooks",
|
|
5003
|
+
"tools",
|
|
5004
|
+
"Hooks",
|
|
5005
|
+
"Commands that run on events such as before a tool runs. Edit them in the config file.",
|
|
5006
|
+
fileOnly
|
|
5007
|
+
),
|
|
5008
|
+
d("plugins.enabled", "tools", "Plugins", "Allow plugins to run code.", on, {
|
|
5009
|
+
defaultText: "off",
|
|
5010
|
+
confirm: "Plugins run code on this computer.",
|
|
5011
|
+
confirmWhen: "on"
|
|
5012
|
+
}),
|
|
5013
|
+
d(
|
|
5014
|
+
"plugins.autoDiscovery",
|
|
5015
|
+
"tools",
|
|
5016
|
+
"Find plugins automatically",
|
|
5017
|
+
"Look for plugins in the usual folders.",
|
|
5018
|
+
on
|
|
5019
|
+
),
|
|
5020
|
+
d(
|
|
5021
|
+
"plugins.hookTimeoutMs",
|
|
5022
|
+
"tools",
|
|
5023
|
+
"Plugin hook time limit",
|
|
5024
|
+
"How long a plugin hook may run.",
|
|
5025
|
+
num(1, void 0, "ms")
|
|
5026
|
+
),
|
|
5027
|
+
d(
|
|
5028
|
+
"plugins.allowedScopes",
|
|
5029
|
+
"tools",
|
|
5030
|
+
"Where plugins may come from",
|
|
5031
|
+
"project, user, or both.",
|
|
5032
|
+
checks("project", "user"),
|
|
5033
|
+
{
|
|
5034
|
+
confirm: "Plugins from a project run code that came with that project."
|
|
5035
|
+
}
|
|
5036
|
+
),
|
|
5037
|
+
d(
|
|
5038
|
+
"plugins.launchDirs",
|
|
5039
|
+
"tools",
|
|
5040
|
+
"Plugin folders",
|
|
5041
|
+
"Extra folders to load plugins from.",
|
|
5042
|
+
json('[ "/path/to/plugins" ]'),
|
|
5043
|
+
{
|
|
5044
|
+
confirm: "Plugins in these folders run code on this computer."
|
|
5045
|
+
}
|
|
5046
|
+
),
|
|
5047
|
+
// Telemetry
|
|
5048
|
+
d(
|
|
5049
|
+
"telemetry.sessionExport.destination",
|
|
5050
|
+
"telemetry",
|
|
5051
|
+
"Save conversations to a file",
|
|
5052
|
+
"Write each conversation to this file.",
|
|
5053
|
+
{ kind: "text", placeholder: "/path/to/file" },
|
|
5054
|
+
{
|
|
5055
|
+
confirm: "Your conversations will be copied to this file."
|
|
5056
|
+
}
|
|
5057
|
+
),
|
|
5058
|
+
d(
|
|
5059
|
+
"telemetry.sessionExport.eventTypes",
|
|
5060
|
+
"telemetry",
|
|
5061
|
+
"What to save",
|
|
5062
|
+
"Only these kinds of events. Empty means all.",
|
|
5063
|
+
json('[ "message" ]')
|
|
5064
|
+
),
|
|
5065
|
+
d(
|
|
5066
|
+
"telemetry.sessionExport.redactors",
|
|
5067
|
+
"telemetry",
|
|
5068
|
+
"Hide secrets when saving",
|
|
5069
|
+
"secrets removes keys and tokens. An empty list saves everything as is.",
|
|
5070
|
+
json('[ "secrets" ]'),
|
|
5071
|
+
{
|
|
5072
|
+
confirm: "With nothing hidden, secrets in a conversation are saved as they are."
|
|
5073
|
+
}
|
|
5074
|
+
),
|
|
5075
|
+
d(
|
|
5076
|
+
"telemetry.otlp.endpoint",
|
|
5077
|
+
"telemetry",
|
|
5078
|
+
"Send traces to",
|
|
5079
|
+
"An OpenTelemetry address. Do not put a password in it; the address is shown here as written.",
|
|
5080
|
+
{ kind: "text", placeholder: "https://" },
|
|
5081
|
+
{
|
|
5082
|
+
confirm: "Traces of your work will be sent to this address."
|
|
5083
|
+
}
|
|
5084
|
+
),
|
|
5085
|
+
d(
|
|
5086
|
+
"telemetry.otlp.headers",
|
|
5087
|
+
"telemetry",
|
|
5088
|
+
"Trace sign-in headers",
|
|
5089
|
+
"Headers sent with traces. They hold a token, so edit them in the config file.",
|
|
5090
|
+
fileOnly
|
|
5091
|
+
),
|
|
5092
|
+
// Terminal app
|
|
5093
|
+
d(
|
|
5094
|
+
"tui.theme",
|
|
5095
|
+
"terminal",
|
|
5096
|
+
"Terminal theme",
|
|
5097
|
+
"Colours in the terminal app.",
|
|
5098
|
+
pick("auto", "dark", "light", "dark-daltonized", "light-daltonized", "dark-ansi", "light-ansi"),
|
|
5099
|
+
{ defaultText: "dark" }
|
|
5100
|
+
),
|
|
5101
|
+
d("tui.reducedMotion", "terminal", "Reduce motion", "Less movement in the terminal app.", on),
|
|
5102
|
+
d(
|
|
5103
|
+
"tui.showExpandedTodos",
|
|
5104
|
+
"terminal",
|
|
5105
|
+
"Expand task lists",
|
|
5106
|
+
"Show every task, not a summary.",
|
|
5107
|
+
on
|
|
5108
|
+
),
|
|
5109
|
+
d("tui.fullscreen", "terminal", "Full screen", "Use the whole terminal window.", on),
|
|
5110
|
+
d("tui.mouse", "terminal", "Mouse", "full, scroll only, or off.", pick("full", "scroll", "off"), {
|
|
5111
|
+
defaultText: "full"
|
|
5112
|
+
}),
|
|
5113
|
+
d("tui.copyOnSelect", "terminal", "Copy on select", "Copy text when you select it.", on, {
|
|
5114
|
+
defaultText: "on"
|
|
5115
|
+
}),
|
|
5116
|
+
d(
|
|
5117
|
+
"tui.recap",
|
|
5118
|
+
"terminal",
|
|
5119
|
+
"Recap on return",
|
|
5120
|
+
"A short recap when you come back to a conversation.",
|
|
5121
|
+
on,
|
|
5122
|
+
{ defaultText: "on" }
|
|
5123
|
+
),
|
|
5124
|
+
d("tui.spinnerTips", "terminal", "Tips while working", "Show a tip next to the spinner.", on, {
|
|
5125
|
+
defaultText: "on"
|
|
5126
|
+
}),
|
|
5127
|
+
d("tui.notifications", "terminal", "Notifications", "Which events notify you.", json("true"), {
|
|
5128
|
+
defaultText: "off"
|
|
5129
|
+
}),
|
|
5130
|
+
d(
|
|
5131
|
+
"tui.notificationMethod",
|
|
5132
|
+
"terminal",
|
|
5133
|
+
"Notification method",
|
|
5134
|
+
"How the terminal tells you.",
|
|
5135
|
+
pick("osc9", "bel", "kitty", "ghostty"),
|
|
5136
|
+
{ defaultText: "osc9" }
|
|
5137
|
+
),
|
|
5138
|
+
d("tui.sound", "terminal", "Sound", "Play a sound with notifications.", on, {
|
|
5139
|
+
defaultText: "on"
|
|
5140
|
+
}),
|
|
5141
|
+
d(
|
|
5142
|
+
"tui.workspacesPrefix",
|
|
5143
|
+
"terminal",
|
|
5144
|
+
"Workspaces key",
|
|
5145
|
+
"The key that starts a workspace shortcut, like ctrl+b.",
|
|
5146
|
+
{ kind: "text", placeholder: "ctrl+b" },
|
|
5147
|
+
{ defaultText: "ctrl+b" }
|
|
5148
|
+
),
|
|
5149
|
+
d(
|
|
5150
|
+
"composerTriggers.enabled",
|
|
5151
|
+
"terminal",
|
|
5152
|
+
"Composer triggers",
|
|
5153
|
+
"Words in the message box that start things.",
|
|
5154
|
+
on,
|
|
5155
|
+
{ defaultText: "on" }
|
|
5156
|
+
),
|
|
5157
|
+
d(
|
|
5158
|
+
"composerTriggers.suggest",
|
|
5159
|
+
"terminal",
|
|
5160
|
+
"Suggest triggers",
|
|
5161
|
+
"Offer a trigger when one fits.",
|
|
5162
|
+
on,
|
|
5163
|
+
{ defaultText: "on" }
|
|
5164
|
+
),
|
|
5165
|
+
d(
|
|
5166
|
+
"composerTriggers.languages",
|
|
5167
|
+
"terminal",
|
|
5168
|
+
"Trigger languages",
|
|
5169
|
+
"Languages the triggers listen for.",
|
|
5170
|
+
checks("en", "tr")
|
|
5171
|
+
),
|
|
5172
|
+
d(
|
|
5173
|
+
"composerTriggers.builtin",
|
|
5174
|
+
"terminal",
|
|
5175
|
+
"Each trigger",
|
|
5176
|
+
"Per trigger: arm, suggest or off.",
|
|
5177
|
+
json('{ "hypermode": "suggest" }')
|
|
5178
|
+
),
|
|
5179
|
+
d(
|
|
5180
|
+
"statusLine",
|
|
5181
|
+
"terminal",
|
|
5182
|
+
"Status line",
|
|
5183
|
+
"A command whose output fills the terminal status line. It runs a command, so edit it in the config file.",
|
|
5184
|
+
fileOnly
|
|
5185
|
+
)
|
|
5186
|
+
];
|
|
5187
|
+
|
|
5188
|
+
// src/config/desktop-settings.ts
|
|
5189
|
+
function descriptorFor(path) {
|
|
5190
|
+
const found = SETTING_DESCRIPTORS.find((entry) => entry.path === path);
|
|
5191
|
+
if (!found) throw new Error("That is not a setting Namzu can change here.");
|
|
5192
|
+
return found;
|
|
5193
|
+
}
|
|
5194
|
+
__name(descriptorFor, "descriptorFor");
|
|
5195
|
+
function readUserDocument(opts) {
|
|
5196
|
+
const file = userConfigPath(opts);
|
|
5197
|
+
if (!existsSync(file)) return {};
|
|
5198
|
+
const parsed = (0, import_yaml.parse)(readFileSync(file, "utf8"));
|
|
5199
|
+
if (parsed === null || parsed === void 0) return {};
|
|
5200
|
+
if (typeof parsed !== "object" || Array.isArray(parsed))
|
|
5201
|
+
throw new Error(`${file} is not a mapping of settings; fix it first`);
|
|
5202
|
+
return parsed;
|
|
5203
|
+
}
|
|
5204
|
+
__name(readUserDocument, "readUserDocument");
|
|
5205
|
+
function lookup(doc, path) {
|
|
5206
|
+
let at = doc;
|
|
5207
|
+
for (const segment of path) {
|
|
5208
|
+
if (at === null || typeof at !== "object" || Array.isArray(at)) return void 0;
|
|
5209
|
+
at = at[segment];
|
|
5210
|
+
}
|
|
5211
|
+
return at;
|
|
5212
|
+
}
|
|
5213
|
+
__name(lookup, "lookup");
|
|
5214
|
+
function readSettings(opts = {}) {
|
|
5215
|
+
const doc = readUserDocument(opts);
|
|
5216
|
+
const settings = SETTING_DESCRIPTORS.map((entry) => {
|
|
5217
|
+
const value = lookup(doc, entry.path.split("."));
|
|
5218
|
+
if (value === void 0) return { path: entry.path, set: false };
|
|
5219
|
+
if (entry.control.kind === "file-only") return { path: entry.path, set: true };
|
|
5220
|
+
return { path: entry.path, set: true, value };
|
|
5221
|
+
});
|
|
5222
|
+
return { file: userConfigPath(opts), settings, descriptors: SETTING_DESCRIPTORS };
|
|
5223
|
+
}
|
|
5224
|
+
__name(readSettings, "readSettings");
|
|
5225
|
+
function coerce(entry, raw) {
|
|
5226
|
+
const control = entry.control;
|
|
5227
|
+
switch (control.kind) {
|
|
5228
|
+
case "toggle":
|
|
5229
|
+
if (typeof raw !== "boolean") throw new Error("Choose on or off.");
|
|
5230
|
+
return raw;
|
|
5231
|
+
case "select":
|
|
5232
|
+
if (typeof raw !== "string" || !control.options.some((o) => o.value === raw))
|
|
5233
|
+
throw new Error(`Choose one of: ${control.options.map((o) => o.value).join(", ")}.`);
|
|
5234
|
+
return raw;
|
|
5235
|
+
case "checks": {
|
|
5236
|
+
if (!Array.isArray(raw) || raw.some((v) => typeof v !== "string"))
|
|
5237
|
+
throw new Error("Choose from the list.");
|
|
5238
|
+
const allowed = control.options.map((o) => o.value);
|
|
5239
|
+
if (raw.some((v) => !allowed.includes(v)))
|
|
5240
|
+
throw new Error(`Choose from: ${allowed.join(", ")}.`);
|
|
5241
|
+
return raw;
|
|
5242
|
+
}
|
|
5243
|
+
case "number":
|
|
5244
|
+
if (typeof raw !== "number" || !Number.isFinite(raw)) throw new Error("Enter a number.");
|
|
5245
|
+
if (control.min !== void 0 && raw < control.min)
|
|
5246
|
+
throw new Error(`Enter ${control.min} or more.`);
|
|
5247
|
+
if (control.max !== void 0 && raw > control.max)
|
|
5248
|
+
throw new Error(`Enter ${control.max} or less.`);
|
|
5249
|
+
return raw;
|
|
5250
|
+
case "text": {
|
|
5251
|
+
if (typeof raw !== "string") throw new Error("Enter some text.");
|
|
5252
|
+
const text4 = raw.trim();
|
|
5253
|
+
if (text4.length === 0 || text4.length > 2e3)
|
|
5254
|
+
throw new Error("Enter between 1 and 2000 characters.");
|
|
5255
|
+
return text4;
|
|
5256
|
+
}
|
|
5257
|
+
case "json": {
|
|
5258
|
+
if (typeof raw !== "string") throw new Error("Enter JSON.");
|
|
5259
|
+
if (raw.length > 1e5) throw new Error("That is too long.");
|
|
5260
|
+
try {
|
|
5261
|
+
return JSON.parse(raw);
|
|
5262
|
+
} catch (error) {
|
|
5263
|
+
throw new Error(`That is not valid JSON: ${error.message}`);
|
|
5264
|
+
}
|
|
5265
|
+
}
|
|
5266
|
+
case "file-only":
|
|
5267
|
+
throw new Error("Edit this one in the config file; Desktop does not show or change it.");
|
|
5268
|
+
}
|
|
5269
|
+
}
|
|
5270
|
+
__name(coerce, "coerce");
|
|
5271
|
+
function checkWhole(doc, path, value, file) {
|
|
5272
|
+
const [root, ...rest] = path;
|
|
5273
|
+
let block;
|
|
5274
|
+
if (rest.length === 0) block = value;
|
|
5275
|
+
else {
|
|
5276
|
+
const current = doc[root];
|
|
5277
|
+
const base = current && typeof current === "object" && !Array.isArray(current) ? structuredClone(current) : {};
|
|
5278
|
+
let at = base;
|
|
5279
|
+
for (const segment of rest.slice(0, -1)) {
|
|
5280
|
+
const next = at[segment];
|
|
5281
|
+
if (!next || typeof next !== "object" || Array.isArray(next)) at[segment] = {};
|
|
5282
|
+
at = at[segment];
|
|
5283
|
+
}
|
|
5284
|
+
const last = rest[rest.length - 1];
|
|
5285
|
+
if (value === void 0) delete at[last];
|
|
5286
|
+
else at[last] = value;
|
|
5287
|
+
block = base;
|
|
5288
|
+
}
|
|
5289
|
+
if (block === void 0) return;
|
|
5290
|
+
try {
|
|
5291
|
+
readConfigKey(root, block, file);
|
|
5292
|
+
} catch (error) {
|
|
5293
|
+
if (error instanceof ConfigValueError) throw new Error(error.message);
|
|
5294
|
+
throw error;
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
__name(checkWhole, "checkWhole");
|
|
5298
|
+
function checkSetting(change, opts = {}) {
|
|
5299
|
+
prepare(change, opts);
|
|
5300
|
+
}
|
|
5301
|
+
__name(checkSetting, "checkSetting");
|
|
5302
|
+
function prepare(change, opts) {
|
|
5303
|
+
const entry = descriptorFor(change.path);
|
|
5304
|
+
const path = entry.path.split(".");
|
|
5305
|
+
const file = userConfigPath(opts);
|
|
5306
|
+
if (change.value === void 0 || change.value === null) {
|
|
5307
|
+
if (entry.control.kind === "file-only") throw new Error("Edit this one in the config file.");
|
|
5308
|
+
checkWhole(readUserDocument(opts), path, void 0, file);
|
|
5309
|
+
return { path, value: void 0 };
|
|
5310
|
+
}
|
|
5311
|
+
const value = coerce(entry, change.value);
|
|
5312
|
+
checkWhole(readUserDocument(opts), path, value, file);
|
|
5313
|
+
return { path, value };
|
|
5314
|
+
}
|
|
5315
|
+
__name(prepare, "prepare");
|
|
5316
|
+
function writeSetting(change, opts = {}) {
|
|
5317
|
+
const { path, value } = prepare(change, opts);
|
|
5318
|
+
if (value === void 0) deleteUserConfigValue(path, opts);
|
|
5319
|
+
else setUserConfigValue(path, value, opts);
|
|
5320
|
+
}
|
|
5321
|
+
__name(writeSetting, "writeSetting");
|
|
5322
|
+
|
|
4241
5323
|
// src/pals/desktop-communication.ts
|
|
4242
5324
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
4243
5325
|
import { lstatSync, realpathSync as realpathSync2 } from "node:fs";
|
|
@@ -6189,6 +7271,23 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
6189
7271
|
throw new Error("Saving a key accepts only the provider and the key.");
|
|
6190
7272
|
return runtime.saveProviderKey(text3(params, "provider"), text3(params, "apiKey", 4096));
|
|
6191
7273
|
}, "namzu/providers/save_key"),
|
|
7274
|
+
"namzu/config/get": /* @__PURE__ */ __name(() => {
|
|
7275
|
+
if (pal()) throw new Error("Pals do not read the host settings.");
|
|
7276
|
+
return readSettings();
|
|
7277
|
+
}, "namzu/config/get"),
|
|
7278
|
+
"namzu/config/set": /* @__PURE__ */ __name((params) => {
|
|
7279
|
+
if (pal()) throw new Error("Pals do not change the host settings.");
|
|
7280
|
+
if (Object.keys(params).some((key) => !["path", "value", "dryRun"].includes(key)))
|
|
7281
|
+
throw new Error("A setting change names only the setting and its value.");
|
|
7282
|
+
if (params.dryRun !== void 0 && typeof params.dryRun !== "boolean")
|
|
7283
|
+
throw new Error("dryRun is true or false.");
|
|
7284
|
+
if (params.dryRun === true) {
|
|
7285
|
+
checkSetting({ path: text3(params, "path"), value: params.value });
|
|
7286
|
+
return readSettings();
|
|
7287
|
+
}
|
|
7288
|
+
writeSetting({ path: text3(params, "path"), value: params.value });
|
|
7289
|
+
return readSettings();
|
|
7290
|
+
}, "namzu/config/set"),
|
|
6192
7291
|
"namzu/providers/refresh": /* @__PURE__ */ __name(() => runtime.refreshProviders(), "namzu/providers/refresh"),
|
|
6193
7292
|
"namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(text3(params, "provider")), "namzu/providers/remove_key"),
|
|
6194
7293
|
"namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(text3(params, "provider")), "namzu/providers/test"),
|
|
@@ -6248,6 +7347,116 @@ function desktopModelCatalogue(listing, defaultModel, currentModel, allowModel,
|
|
|
6248
7347
|
}
|
|
6249
7348
|
__name(desktopModelCatalogue, "desktopModelCatalogue");
|
|
6250
7349
|
|
|
7350
|
+
// src/commands/desktop-usage-feed.ts
|
|
7351
|
+
var USAGE_NOTIFICATION = "namzu/session/usage";
|
|
7352
|
+
var USAGE_COALESCE_MS = 400;
|
|
7353
|
+
var finite = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "finite");
|
|
7354
|
+
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0)), "defined");
|
|
7355
|
+
function createUsageFeed(options) {
|
|
7356
|
+
const interval = options.intervalMs ?? USAGE_COALESCE_MS;
|
|
7357
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
7358
|
+
let closed = false;
|
|
7359
|
+
const entry = /* @__PURE__ */ __name((sessionId) => {
|
|
7360
|
+
let found = sessions.get(sessionId);
|
|
7361
|
+
if (!found) {
|
|
7362
|
+
found = {
|
|
7363
|
+
snapshot: {},
|
|
7364
|
+
lastSentAt: void 0,
|
|
7365
|
+
cancel: void 0,
|
|
7366
|
+
dirty: false,
|
|
7367
|
+
ended: false
|
|
7368
|
+
};
|
|
7369
|
+
sessions.set(sessionId, found);
|
|
7370
|
+
}
|
|
7371
|
+
return found;
|
|
7372
|
+
}, "entry");
|
|
7373
|
+
const send = /* @__PURE__ */ __name((sessionId, pending, extra = {}) => {
|
|
7374
|
+
pending.cancel?.();
|
|
7375
|
+
pending.cancel = void 0;
|
|
7376
|
+
pending.dirty = false;
|
|
7377
|
+
pending.lastSentAt = options.now();
|
|
7378
|
+
const body = {
|
|
7379
|
+
sessionId,
|
|
7380
|
+
...defined(pending.snapshot),
|
|
7381
|
+
...extra
|
|
7382
|
+
};
|
|
7383
|
+
try {
|
|
7384
|
+
options.notify(USAGE_NOTIFICATION, { ...body });
|
|
7385
|
+
} catch {
|
|
7386
|
+
}
|
|
7387
|
+
}, "send");
|
|
7388
|
+
const usage = /* @__PURE__ */ __name((sessionId, pending) => {
|
|
7389
|
+
pending.dirty = true;
|
|
7390
|
+
const since = pending.lastSentAt === void 0 ? Number.POSITIVE_INFINITY : options.now() - pending.lastSentAt;
|
|
7391
|
+
if (since >= interval) {
|
|
7392
|
+
send(sessionId, pending);
|
|
7393
|
+
return;
|
|
7394
|
+
}
|
|
7395
|
+
if (pending.cancel) return;
|
|
7396
|
+
pending.cancel = options.schedule(() => {
|
|
7397
|
+
pending.cancel = void 0;
|
|
7398
|
+
if (!closed && pending.dirty) send(sessionId, pending);
|
|
7399
|
+
if (pending.ended && !pending.cancel && !pending.dirty) sessions.delete(sessionId);
|
|
7400
|
+
}, interval - since);
|
|
7401
|
+
}, "usage");
|
|
7402
|
+
return {
|
|
7403
|
+
observe(sessionId, event) {
|
|
7404
|
+
if (closed) return;
|
|
7405
|
+
if (event.type === "turn_completed" || event.type === "turn_failed" || event.type === "turn_paused") {
|
|
7406
|
+
const pending = sessions.get(sessionId);
|
|
7407
|
+
if (pending) {
|
|
7408
|
+
pending.ended = true;
|
|
7409
|
+
if (!pending.cancel && !pending.dirty) sessions.delete(sessionId);
|
|
7410
|
+
}
|
|
7411
|
+
return;
|
|
7412
|
+
}
|
|
7413
|
+
if (event.type === "token_usage_updated") {
|
|
7414
|
+
const pending = entry(sessionId);
|
|
7415
|
+
pending.ended = false;
|
|
7416
|
+
const snapshot = { ...pending.snapshot };
|
|
7417
|
+
if (finite(event.contextTokens)) snapshot.contextTokens = event.contextTokens;
|
|
7418
|
+
if (finite(event.contextWindowTokens) && event.contextWindowTokens > 0)
|
|
7419
|
+
snapshot.contextWindowTokens = event.contextWindowTokens;
|
|
7420
|
+
if (event.contextMeasuredBy) snapshot.contextMeasuredBy = event.contextMeasuredBy;
|
|
7421
|
+
if (finite(event.cost?.totalCost) && event.cost.totalCost > 0 && (event.cost.unpricedTokens ?? 0) === 0)
|
|
7422
|
+
snapshot.cost = event.cost.totalCost;
|
|
7423
|
+
else snapshot.cost = void 0;
|
|
7424
|
+
pending.snapshot = snapshot;
|
|
7425
|
+
usage(sessionId, pending);
|
|
7426
|
+
} else if (event.type === "compaction_started") {
|
|
7427
|
+
const pending = entry(sessionId);
|
|
7428
|
+
send(sessionId, pending, {
|
|
7429
|
+
compaction: "started",
|
|
7430
|
+
tokensBefore: event.tokensBefore,
|
|
7431
|
+
...finite(event.contextWindowTokens) && event.contextWindowTokens > 0 ? { contextWindowTokens: event.contextWindowTokens } : {}
|
|
7432
|
+
});
|
|
7433
|
+
} else if (event.type === "compaction_completed") {
|
|
7434
|
+
const pending = entry(sessionId);
|
|
7435
|
+
if (finite(event.tokensAfter))
|
|
7436
|
+
pending.snapshot = {
|
|
7437
|
+
...pending.snapshot,
|
|
7438
|
+
contextTokens: event.tokensAfter
|
|
7439
|
+
};
|
|
7440
|
+
send(sessionId, pending, {
|
|
7441
|
+
compaction: "finished",
|
|
7442
|
+
tokensBefore: event.tokensBefore,
|
|
7443
|
+
tokensAfter: event.tokensAfter
|
|
7444
|
+
});
|
|
7445
|
+
} else if (event.type === "compaction_tool_results_cleared" && event.reliefWasEnough) {
|
|
7446
|
+
send(sessionId, entry(sessionId), { compaction: "finished" });
|
|
7447
|
+
} else if (event.type === "compaction_failed") {
|
|
7448
|
+
send(sessionId, entry(sessionId), { compaction: "failed" });
|
|
7449
|
+
}
|
|
7450
|
+
},
|
|
7451
|
+
close() {
|
|
7452
|
+
closed = true;
|
|
7453
|
+
for (const pending of sessions.values()) pending.cancel?.();
|
|
7454
|
+
sessions.clear();
|
|
7455
|
+
}
|
|
7456
|
+
};
|
|
7457
|
+
}
|
|
7458
|
+
__name(createUsageFeed, "createUsageFeed");
|
|
7459
|
+
|
|
6251
7460
|
// src/commands/permission-preview.ts
|
|
6252
7461
|
import { readFile as readFile2, stat as stat5 } from "node:fs/promises";
|
|
6253
7462
|
var PREVIEW_MAX_BYTES = 1024 * 1024;
|
|
@@ -6316,7 +7525,7 @@ __name(withPreviews, "withPreviews");
|
|
|
6316
7525
|
function readPackageVersion() {
|
|
6317
7526
|
try {
|
|
6318
7527
|
const here = dirname3(fileURLToPath(new URL("../", import.meta.url).href + "commands/acp.js"));
|
|
6319
|
-
const pkg = JSON.parse(
|
|
7528
|
+
const pkg = JSON.parse(readFileSync2(join6(here, "..", "..", "package.json"), "utf8"));
|
|
6320
7529
|
return typeof pkg.version === "string" ? pkg.version : "0.0.0";
|
|
6321
7530
|
} catch {
|
|
6322
7531
|
return "0.0.0";
|
|
@@ -6357,9 +7566,9 @@ function waitForOperation(operation, signal) {
|
|
|
6357
7566
|
});
|
|
6358
7567
|
}
|
|
6359
7568
|
__name(waitForOperation, "waitForOperation");
|
|
6360
|
-
async function resolveAcpSession(wireSessionId,
|
|
7569
|
+
async function resolveAcpSession(wireSessionId, lookup2) {
|
|
6361
7570
|
if (isEntityId(wireSessionId, "session")) return { sessionId: wireSessionId };
|
|
6362
|
-
const found = await
|
|
7571
|
+
const found = await lookup2("acp", "session", wireSessionId);
|
|
6363
7572
|
if (found) return { sessionId: found.sessionId };
|
|
6364
7573
|
return {
|
|
6365
7574
|
sessionId: generateSessionId(),
|
|
@@ -6809,6 +8018,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
6809
8018
|
} finally {
|
|
6810
8019
|
activeRecord = outer;
|
|
6811
8020
|
}
|
|
8021
|
+
try {
|
|
8022
|
+
runtimeOptions.observeEvent?.(sessionId, event);
|
|
8023
|
+
} catch {
|
|
8024
|
+
}
|
|
6812
8025
|
}, "routedEvent");
|
|
6813
8026
|
record2.route = routedEvent;
|
|
6814
8027
|
try {
|
|
@@ -6874,6 +8087,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
6874
8087
|
...computer ? { assertExecutionAllowed: /* @__PURE__ */ __name(() => assertRetryComputer(record2, original), "assertExecutionAllowed") } : {},
|
|
6875
8088
|
signal,
|
|
6876
8089
|
onPermission,
|
|
8090
|
+
// The one question a Desktop conversation can raise itself: the screen is
|
|
8091
|
+
// needed for a moment. It reaches the person as a card, never as a standing yes.
|
|
8092
|
+
...runtimeOptions.computerUse === true ? { onQuestion: questionsOverPermission(sessionId, ask, signal) } : {},
|
|
6877
8093
|
...monitorSnapshot.text ? { hostContext: /* @__PURE__ */ __name(() => [monitorSnapshot.text], "hostContext") } : {},
|
|
6878
8094
|
...inputInbox ? {
|
|
6879
8095
|
inboundMessages: /* @__PURE__ */ __name(() => {
|
|
@@ -7575,11 +8791,26 @@ async function closeAcpResources(runtime, closePals = closeCliPalRuntime) {
|
|
|
7575
8791
|
}
|
|
7576
8792
|
__name(closeAcpResources, "closeAcpResources");
|
|
7577
8793
|
async function runAcpCommand(ctx, desktop = false) {
|
|
8794
|
+
const transport = new ServerStdioTransport();
|
|
8795
|
+
let announcingUsage = true;
|
|
8796
|
+
const usageFeed = desktop ? createUsageFeed({
|
|
8797
|
+
notify: /* @__PURE__ */ __name((method, params) => {
|
|
8798
|
+
if (announcingUsage) void transport.send({ jsonrpc: "2.0", method, params });
|
|
8799
|
+
}, "notify"),
|
|
8800
|
+
now: /* @__PURE__ */ __name(() => Date.now(), "now"),
|
|
8801
|
+
schedule: /* @__PURE__ */ __name((run, ms) => {
|
|
8802
|
+
const timer = setTimeout(run, ms);
|
|
8803
|
+
timer.unref?.();
|
|
8804
|
+
return () => clearTimeout(timer);
|
|
8805
|
+
}, "schedule")
|
|
8806
|
+
}) : void 0;
|
|
7578
8807
|
const runtime = withCliHarnesses(
|
|
7579
|
-
createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
|
|
8808
|
+
createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
|
|
8809
|
+
computerUse: desktop,
|
|
8810
|
+
...usageFeed ? { observeEvent: /* @__PURE__ */ __name((id2, event) => usageFeed.observe(id2, event), "observeEvent") } : {}
|
|
8811
|
+
}),
|
|
7580
8812
|
process.cwd()
|
|
7581
8813
|
);
|
|
7582
|
-
const transport = new ServerStdioTransport();
|
|
7583
8814
|
let announcing = true;
|
|
7584
8815
|
const terminals = desktop ? createTerminalHost({
|
|
7585
8816
|
cwd: process.cwd(),
|
|
@@ -7616,6 +8847,7 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
7616
8847
|
});
|
|
7617
8848
|
await server.start();
|
|
7618
8849
|
cliLogger().info("ACP protocol server started");
|
|
8850
|
+
flushCompileCacheWhenIdle();
|
|
7619
8851
|
try {
|
|
7620
8852
|
await new Promise((resolve4) => {
|
|
7621
8853
|
const finish = /* @__PURE__ */ __name(() => {
|
|
@@ -7628,6 +8860,8 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
7628
8860
|
});
|
|
7629
8861
|
} finally {
|
|
7630
8862
|
announcing = false;
|
|
8863
|
+
announcingUsage = false;
|
|
8864
|
+
usageFeed?.close();
|
|
7631
8865
|
try {
|
|
7632
8866
|
await terminals?.close();
|
|
7633
8867
|
await palInboxStart?.close();
|
|
@@ -7660,4 +8894,4 @@ export {
|
|
|
7660
8894
|
resolveAcpSession,
|
|
7661
8895
|
runAcpCommand
|
|
7662
8896
|
};
|
|
7663
|
-
//# sourceMappingURL=acp-
|
|
8897
|
+
//# sourceMappingURL=acp-GX5C46FS.js.map
|