@namzu/cli 49.1.1 → 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 +51 -0
- package/dist/bin.js +4 -46
- package/dist/bin.js.map +2 -2
- package/dist/chunks/{acp-MBBNHTFF.js → acp-GX5C46FS.js} +214 -50
- package/dist/chunks/acp-GX5C46FS.js.map +6 -0
- package/dist/chunks/{activity-command-W7V33K4I.js → activity-command-ALROOYA2.js} +12 -12
- package/dist/chunks/{add-FQUU7CPV.js → add-Y24XHCJZ.js} +21 -21
- package/dist/chunks/{agent-MJG43QEN.js → agent-2UGJH5L2.js} +37 -37
- package/dist/chunks/agent-session-UQXPM43X.js +69 -0
- package/dist/chunks/{archive-VOUK2Z7P.js → archive-BQVBBILN.js} +10 -10
- package/dist/chunks/{bin-main-FMGPWUMO.js → bin-main-LFD4MFRZ.js} +7 -7
- package/dist/chunks/{binding-CRYJQ7PU.js → binding-7QVD3QFS.js} +3 -3
- package/dist/chunks/{browser-MSESQ5SY.js → browser-L7XFOCFR.js} +6 -6
- package/dist/chunks/{chat-JK7GKOOT.js → chat-J4HA4DHS.js} +15 -15
- package/dist/chunks/{chunk-26CZDEKO.js → chunk-24ZRB5EE.js} +2 -2
- package/dist/chunks/{chunk-NPRTOWXF.js → chunk-2QCCSP7N.js} +3 -3
- package/dist/chunks/{chunk-BIV4ZVMQ.js → chunk-36G4OU2T.js} +2 -2
- package/dist/chunks/{chunk-QCL4LFUZ.js → chunk-3JUVHVOX.js} +19 -12
- package/dist/chunks/{chunk-QCL4LFUZ.js.map → chunk-3JUVHVOX.js.map} +1 -1
- package/dist/chunks/{chunk-IOCOFAL2.js → chunk-3L3NHBFB.js} +2 -2
- package/dist/chunks/{chunk-2JZ6O4JX.js → chunk-4DPAL2SS.js} +3 -3
- package/dist/chunks/{chunk-MUT6I5NR.js → chunk-4E2XEBCA.js} +63 -11
- package/dist/chunks/chunk-4E2XEBCA.js.map +6 -0
- package/dist/chunks/{chunk-JEIT4APA.js → chunk-4OGB5U5E.js} +2 -2
- package/dist/chunks/{chunk-XCECERRM.js → chunk-4QIWRKJO.js} +34 -5
- package/dist/chunks/chunk-4QIWRKJO.js.map +6 -0
- package/dist/chunks/{chunk-JW67WBS2.js → chunk-4YFO2Q4F.js} +9 -9
- package/dist/chunks/{chunk-76DVKFKX.js → chunk-4ZJEPJXK.js} +766 -256
- package/dist/chunks/chunk-4ZJEPJXK.js.map +6 -0
- package/dist/chunks/{chunk-3KLNVOTV.js → chunk-52KOLFPS.js} +4 -4
- package/dist/chunks/{chunk-FDV7XIWK.js → chunk-5XCRTM5D.js} +3 -3
- package/dist/chunks/{chunk-NIBYXC3H.js → chunk-62ZRTAHT.js} +3 -3
- package/dist/chunks/{chunk-MVMP5SIL.js → chunk-64LJS5ED.js} +4 -4
- package/dist/chunks/{chunk-24VVQCMV.js → chunk-7DITWYWT.js} +3 -3
- package/dist/chunks/{chunk-6BRAEYBL.js → chunk-7F67RLOJ.js} +10 -10
- package/dist/chunks/{chunk-2HNRN4BZ.js → chunk-7L4LWYJL.js} +9 -3
- package/dist/chunks/chunk-7L4LWYJL.js.map +6 -0
- package/dist/chunks/{chunk-EPMW4N5H.js → chunk-AVNUJT7M.js} +3 -3
- package/dist/chunks/{chunk-FAL6MHR7.js → chunk-AZLMME5T.js} +2 -2
- package/dist/chunks/{chunk-4DMJITJF.js → chunk-BHYTFZYY.js} +5 -5
- package/dist/chunks/{chunk-JFAQGZU4.js → chunk-BPKOUPPI.js} +2 -2
- package/dist/chunks/{chunk-KOTJVZ33.js → chunk-DPFRJK3R.js} +11 -10
- package/dist/chunks/chunk-DPFRJK3R.js.map +6 -0
- package/dist/chunks/{chunk-BTTD4VKX.js → chunk-DPS5H6YZ.js} +4 -4
- package/dist/chunks/{chunk-DZBKO5XZ.js → chunk-DRNABAHW.js} +2 -2
- package/dist/chunks/{chunk-2BSKESPI.js → chunk-EK4LUV4L.js} +3 -3
- package/dist/chunks/{chunk-WG7E73KJ.js → chunk-EKLFUD76.js} +3 -3
- package/dist/chunks/{chunk-WEQDKDC3.js → chunk-EMXHURNA.js} +3 -3
- package/dist/chunks/{chunk-EWMX4NYZ.js → chunk-EQ6W5RYI.js} +22 -3
- package/dist/chunks/chunk-EQ6W5RYI.js.map +6 -0
- package/dist/chunks/{chunk-KL3CLIA2.js → chunk-F4HPFCP7.js} +12 -12
- package/dist/chunks/{chunk-GJABD7QF.js → chunk-FELRB5DJ.js} +6 -6
- package/dist/chunks/{chunk-Q6JWNB54.js → chunk-FKNLXK7P.js} +33 -33
- package/dist/chunks/{chunk-XWMIL5WP.js → chunk-FLCSG33P.js} +2 -2
- package/dist/chunks/{chunk-5EOQWRBM.js → chunk-FMXRUVQ3.js} +4 -4
- package/dist/chunks/{chunk-UNYSNMAQ.js → chunk-FWHZB37G.js} +2 -2
- package/dist/chunks/{chunk-6GOXVYVF.js → chunk-GL3SCBU5.js} +3 -3
- package/dist/chunks/{chunk-HVNC42NZ.js → chunk-GXYFKGXC.js} +3 -3
- package/dist/chunks/{chunk-QDWRNNKU.js → chunk-H2WOQGLW.js} +4 -4
- package/dist/chunks/{chunk-2SBMVMTO.js → chunk-HAV2WF6U.js} +6 -6
- package/dist/chunks/{chunk-37JCXHFG.js → chunk-I3CWCFIT.js} +4 -4
- package/dist/chunks/{chunk-37JCXHFG.js.map → chunk-I3CWCFIT.js.map} +1 -1
- package/dist/chunks/{chunk-BBESTSGG.js → chunk-INFXJ66V.js} +2 -2
- package/dist/chunks/{chunk-54NEBNV3.js → chunk-IVBQSIVS.js} +2 -2
- package/dist/chunks/{chunk-SVRLQQMB.js → chunk-K2JXGE24.js} +3 -3
- package/dist/chunks/{chunk-B73OIFL6.js → chunk-KTPFUCRU.js} +3 -3
- package/dist/chunks/{chunk-5PAU4A3K.js → chunk-KWLUYAKG.js} +2 -2
- package/dist/chunks/{chunk-EQTOFC36.js → chunk-LMSDBH3N.js} +2 -2
- package/dist/chunks/{chunk-QHGD7RLH.js → chunk-M3FCCQWN.js} +3 -3
- package/dist/chunks/{chunk-PF32FZUI.js → chunk-M4CILTGF.js} +2 -2
- package/dist/chunks/{chunk-R4SQ7YG2.js → chunk-MBFYU4BQ.js} +2 -2
- package/dist/chunks/{chunk-VJXFLYGQ.js → chunk-N5H6BXSH.js} +2 -2
- package/dist/chunks/{chunk-JPQSIROH.js → chunk-NBGCCPO2.js} +4 -4
- package/dist/chunks/{chunk-2RWJX3XO.js → chunk-NCI44BJE.js} +4 -4
- package/dist/chunks/{chunk-NZAFY2F4.js → chunk-NIT2OAFM.js} +2 -2
- package/dist/chunks/{chunk-Z2PZBUDP.js → chunk-O4RW4C5Q.js} +2 -2
- package/dist/chunks/{chunk-LID7O2YP.js → chunk-P2NS5JPG.js} +5 -5
- package/dist/chunks/{chunk-CCYLACZC.js → chunk-P32KIQBD.js} +2 -2
- package/dist/chunks/{chunk-GVT765NL.js → chunk-P5BRE34M.js} +2 -2
- package/dist/chunks/{chunk-TUHTURON.js → chunk-PH7RYICR.js} +2 -2
- package/dist/chunks/{chunk-PBGIIPSL.js → chunk-PT7CAL4N.js} +4 -4
- package/dist/chunks/{chunk-QZAYT5UR.js → chunk-QQZXB3E7.js} +2 -2
- package/dist/chunks/{chunk-UEETLO7H.js → chunk-RKYDGWUF.js} +2 -2
- package/dist/chunks/{chunk-U73P6IJU.js → chunk-S4YTXJTD.js} +4620 -2562
- 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-6JGKF5CJ.js → chunk-T5GYOXPH.js} +11 -11
- package/dist/chunks/{chunk-3VMSB36D.js → chunk-TBQ7SPXV.js} +6 -6
- package/dist/chunks/{chunk-XCGIZUMG.js → chunk-TCC7QRSV.js} +3 -3
- package/dist/chunks/{chunk-UVGXDFY5.js → chunk-UI7WXHQL.js} +2 -2
- package/dist/chunks/{chunk-JCP7GH4E.js → chunk-VGUQOYPZ.js} +9 -9
- package/dist/chunks/{chunk-TGUXLYS2.js → chunk-VKYRVAQ4.js} +13 -13
- package/dist/chunks/{chunk-GO3IILJG.js → chunk-VL6NOKJF.js} +3 -3
- package/dist/chunks/{chunk-XKRGL5Z5.js → chunk-VTBS7NVT.js} +16 -4
- package/dist/chunks/chunk-VTBS7NVT.js.map +6 -0
- package/dist/chunks/{chunk-OS4QHE3D.js → chunk-WPEFWFO6.js} +4 -4
- package/dist/chunks/{chunk-NSPM2ALB.js → chunk-WSRGGVIM.js} +5 -5
- package/dist/chunks/{chunk-M2VJZ5G5.js → chunk-YCJW5A7U.js} +2 -2
- package/dist/chunks/{chunk-B47YGS45.js → chunk-YXOWGENA.js} +9 -9
- package/dist/chunks/{chunk-MJOO5EA4.js → chunk-YXWJD4GH.js} +4 -4
- package/dist/chunks/{chunk-YZFC3GTH.js → chunk-ZK6GFS2K.js} +3 -3
- package/dist/chunks/{chunk-WH6LELNJ.js → chunk-ZXW2TTMW.js} +7 -7
- package/dist/chunks/{cli-runtime-YAF6N4B4.js → cli-runtime-JHNUAZGX.js} +13 -13
- package/dist/chunks/{commands-UJGFQSQ4.js → commands-QIB5PR4U.js} +5 -5
- package/dist/chunks/{crash-report-YQOJKQCG.js → crash-report-YKBMAI2C.js} +8 -8
- package/dist/chunks/{dist-GL2VWTJS.js → dist-BO4BUR4Z.js} +7 -2
- package/dist/chunks/{dist-GL2VWTJS.js.map → dist-BO4BUR4Z.js.map} +1 -1
- package/dist/chunks/{dist-AFI563E4.js → dist-EGQG2CWK.js} +2 -2
- package/dist/chunks/{dist-HYGOYQLL.js → dist-HX4CMQP7.js} +2 -2
- package/dist/chunks/{dist-2L7NSJJE.js → dist-JU77OEQV.js} +2 -2
- package/dist/chunks/{dist-B445LLNF.js → dist-ONV5YXBC.js} +3 -3
- package/dist/chunks/{dist-GETHBP7P.js → dist-OS52BKDN.js} +2 -2
- package/dist/chunks/{dist-H6SCKMJX.js → dist-TFGK7OXW.js} +30 -2
- package/dist/chunks/{dist-MF62HCKV.js → dist-YKDCCBQG.js} +2 -2
- package/dist/chunks/{doctor-H27EQ5RE.js → doctor-GILJT2C6.js} +18 -18
- package/dist/chunks/{drain-WO6UFXH4.js → drain-A65DSXV5.js} +9 -9
- package/dist/chunks/{entry-QFLKR4O3.js → entry-S4CXG3N4.js} +6 -6
- package/dist/chunks/{eval-SKVWJKSU.js → eval-7JFPRH2Z.js} +2 -2
- package/dist/chunks/{exec-ZAXVBVTH.js → exec-JKYNWA4S.js} +44 -38
- package/dist/chunks/exec-JKYNWA4S.js.map +6 -0
- package/dist/chunks/{home-5EUINGKN.js → home-TD3AGJSX.js} +3 -3
- package/dist/chunks/{host-5EP6E23T.js → host-MRXWMOJP.js} +10 -10
- package/dist/chunks/{host-queries-6NEPSEAS.js → host-queries-77N4N7XL.js} +15 -15
- package/dist/chunks/{learn-HJMN624W.js → learn-EEKKNN7B.js} +11 -11
- package/dist/chunks/{learn-builtin-VRTLHEQW.js → learn-builtin-DGQW6ZJ3.js} +14 -14
- package/dist/chunks/{lifecycle-MJTRWTCM.js → lifecycle-5QSLVTIZ.js} +30 -30
- package/dist/chunks/{list-LFBLFIKV.js → list-G525YHRP.js} +11 -11
- package/dist/chunks/{live-MOEHIAAF.js → live-Z4LVRXQJ.js} +17 -17
- package/dist/chunks/login-V6COXMPE.js +34 -0
- package/dist/chunks/{logs-EUKQL5B7.js → logs-NM5XSBZ2.js} +4 -4
- package/dist/chunks/{mcp-CVG7FG6J.js → mcp-NTFOOPLS.js} +22 -22
- package/dist/chunks/{message-command-WCIE3455.js → message-command-BBICY3ZH.js} +43 -43
- package/dist/chunks/{open-ZY2THIE3.js → open-EO6BERGC.js} +8 -8
- package/dist/chunks/{operator-tools-D6L7ASDD.js → operator-tools-EKYFPXNP.js} +13 -13
- package/dist/chunks/{output-schema-GR4GYBPU.js → output-schema-4QBMG2V3.js} +3 -3
- package/dist/chunks/{pal-O2V75KQK.js → pal-GGEP7A3C.js} +18 -18
- package/dist/chunks/{peers-QB4HQ5PZ.js → peers-NEFTEGGH.js} +6 -6
- package/dist/chunks/{peers-TNGB6WQH.js → peers-XABPXXYU.js} +7 -7
- package/dist/chunks/{providers-5VUFH7IJ.js → providers-UR7PTSAU.js} +13 -13
- package/dist/chunks/{pty-ORVEC6FI.js → pty-E6LOL7FL.js} +3 -3
- package/dist/chunks/resume-YVCJLRJM.js +23 -0
- package/dist/chunks/{resume-command-26JB6FZZ.js → resume-command-SK376EH7.js} +4 -4
- package/dist/chunks/{schedule-LSM2OF24.js → schedule-LMZSBVLA.js} +8 -8
- package/dist/chunks/{service-V2BNTEB4.js → service-LXGEJ7SQ.js} +30 -30
- package/dist/chunks/{skills-T2ZYRYZF.js → skills-LKMGHUON.js} +8 -8
- package/dist/chunks/{start-check-A4B3AXO2.js → start-check-VOPUK6AT.js} +2 -2
- package/dist/chunks/{startup-failure-YHDJI7YI.js → startup-failure-EICFG4GV.js} +2 -2
- package/dist/chunks/{state-OY6VG73L.js → state-JOIMBJVN.js} +2 -2
- package/dist/chunks/{store-LEOLKXRN.js → store-22R5VPTI.js} +4 -4
- package/dist/chunks/{store-IVQVINSF.js → store-CJQTON4J.js} +10 -10
- package/dist/chunks/{store-DBWWXNYV.js → store-JPIWK3PM.js} +6 -6
- package/dist/chunks/{store-QPO2TZ42.js → store-ZZNUM66U.js} +3 -3
- package/dist/chunks/{tui-VCNESTDO.js → tui-7GUHLL4B.js} +202 -136
- package/dist/chunks/{tui-VCNESTDO.js.map → tui-7GUHLL4B.js.map} +3 -3
- package/dist/chunks/{upgrade-QQ665A7W.js → upgrade-WX6LVKEZ.js} +7 -7
- package/dist/chunks/{workspaces-5JL7LPKW.js → workspaces-LSNFONMM.js} +16 -16
- package/dist/chunks/{worktree-U2RO5D47.js → worktree-FPCQFFLT.js} +12 -12
- package/dist/commands/acp.d.ts +7 -1
- package/dist/commands/acp.d.ts.map +1 -1
- 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/load.d.ts +24 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +17 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts +5 -0
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- 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 +7 -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/outcome-line.d.ts +12 -0
- package/dist/tui/outcome-line.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/chunks/acp-MBBNHTFF.js.map +0 -6
- package/dist/chunks/agent-session-K5GXC7TI.js +0 -69
- package/dist/chunks/chunk-2HNRN4BZ.js.map +0 -6
- package/dist/chunks/chunk-76DVKFKX.js.map +0 -6
- package/dist/chunks/chunk-EWMX4NYZ.js.map +0 -6
- package/dist/chunks/chunk-KOTJVZ33.js.map +0 -6
- package/dist/chunks/chunk-MUT6I5NR.js.map +0 -6
- package/dist/chunks/chunk-U73P6IJU.js.map +0 -6
- package/dist/chunks/chunk-XCECERRM.js.map +0 -6
- package/dist/chunks/chunk-XKRGL5Z5.js.map +0 -6
- package/dist/chunks/exec-ZAXVBVTH.js.map +0 -6
- package/dist/chunks/login-4NTLCW7N.js +0 -34
- package/dist/chunks/resume-YK5YX2GP.js +0 -23
- /package/dist/chunks/{activity-command-W7V33K4I.js.map → activity-command-ALROOYA2.js.map} +0 -0
- /package/dist/chunks/{add-FQUU7CPV.js.map → add-Y24XHCJZ.js.map} +0 -0
- /package/dist/chunks/{agent-MJG43QEN.js.map → agent-2UGJH5L2.js.map} +0 -0
- /package/dist/chunks/{agent-session-K5GXC7TI.js.map → agent-session-UQXPM43X.js.map} +0 -0
- /package/dist/chunks/{archive-VOUK2Z7P.js.map → archive-BQVBBILN.js.map} +0 -0
- /package/dist/chunks/{bin-main-FMGPWUMO.js.map → bin-main-LFD4MFRZ.js.map} +0 -0
- /package/dist/chunks/{binding-CRYJQ7PU.js.map → binding-7QVD3QFS.js.map} +0 -0
- /package/dist/chunks/{browser-MSESQ5SY.js.map → browser-L7XFOCFR.js.map} +0 -0
- /package/dist/chunks/{chat-JK7GKOOT.js.map → chat-J4HA4DHS.js.map} +0 -0
- /package/dist/chunks/{chunk-26CZDEKO.js.map → chunk-24ZRB5EE.js.map} +0 -0
- /package/dist/chunks/{chunk-NPRTOWXF.js.map → chunk-2QCCSP7N.js.map} +0 -0
- /package/dist/chunks/{chunk-BIV4ZVMQ.js.map → chunk-36G4OU2T.js.map} +0 -0
- /package/dist/chunks/{chunk-IOCOFAL2.js.map → chunk-3L3NHBFB.js.map} +0 -0
- /package/dist/chunks/{chunk-2JZ6O4JX.js.map → chunk-4DPAL2SS.js.map} +0 -0
- /package/dist/chunks/{chunk-JEIT4APA.js.map → chunk-4OGB5U5E.js.map} +0 -0
- /package/dist/chunks/{chunk-JW67WBS2.js.map → chunk-4YFO2Q4F.js.map} +0 -0
- /package/dist/chunks/{chunk-3KLNVOTV.js.map → chunk-52KOLFPS.js.map} +0 -0
- /package/dist/chunks/{chunk-FDV7XIWK.js.map → chunk-5XCRTM5D.js.map} +0 -0
- /package/dist/chunks/{chunk-NIBYXC3H.js.map → chunk-62ZRTAHT.js.map} +0 -0
- /package/dist/chunks/{chunk-MVMP5SIL.js.map → chunk-64LJS5ED.js.map} +0 -0
- /package/dist/chunks/{chunk-24VVQCMV.js.map → chunk-7DITWYWT.js.map} +0 -0
- /package/dist/chunks/{chunk-6BRAEYBL.js.map → chunk-7F67RLOJ.js.map} +0 -0
- /package/dist/chunks/{chunk-EPMW4N5H.js.map → chunk-AVNUJT7M.js.map} +0 -0
- /package/dist/chunks/{chunk-FAL6MHR7.js.map → chunk-AZLMME5T.js.map} +0 -0
- /package/dist/chunks/{chunk-4DMJITJF.js.map → chunk-BHYTFZYY.js.map} +0 -0
- /package/dist/chunks/{chunk-JFAQGZU4.js.map → chunk-BPKOUPPI.js.map} +0 -0
- /package/dist/chunks/{chunk-BTTD4VKX.js.map → chunk-DPS5H6YZ.js.map} +0 -0
- /package/dist/chunks/{chunk-DZBKO5XZ.js.map → chunk-DRNABAHW.js.map} +0 -0
- /package/dist/chunks/{chunk-2BSKESPI.js.map → chunk-EK4LUV4L.js.map} +0 -0
- /package/dist/chunks/{chunk-WG7E73KJ.js.map → chunk-EKLFUD76.js.map} +0 -0
- /package/dist/chunks/{chunk-WEQDKDC3.js.map → chunk-EMXHURNA.js.map} +0 -0
- /package/dist/chunks/{chunk-KL3CLIA2.js.map → chunk-F4HPFCP7.js.map} +0 -0
- /package/dist/chunks/{chunk-GJABD7QF.js.map → chunk-FELRB5DJ.js.map} +0 -0
- /package/dist/chunks/{chunk-Q6JWNB54.js.map → chunk-FKNLXK7P.js.map} +0 -0
- /package/dist/chunks/{chunk-XWMIL5WP.js.map → chunk-FLCSG33P.js.map} +0 -0
- /package/dist/chunks/{chunk-5EOQWRBM.js.map → chunk-FMXRUVQ3.js.map} +0 -0
- /package/dist/chunks/{chunk-UNYSNMAQ.js.map → chunk-FWHZB37G.js.map} +0 -0
- /package/dist/chunks/{chunk-6GOXVYVF.js.map → chunk-GL3SCBU5.js.map} +0 -0
- /package/dist/chunks/{chunk-HVNC42NZ.js.map → chunk-GXYFKGXC.js.map} +0 -0
- /package/dist/chunks/{chunk-QDWRNNKU.js.map → chunk-H2WOQGLW.js.map} +0 -0
- /package/dist/chunks/{chunk-2SBMVMTO.js.map → chunk-HAV2WF6U.js.map} +0 -0
- /package/dist/chunks/{chunk-BBESTSGG.js.map → chunk-INFXJ66V.js.map} +0 -0
- /package/dist/chunks/{chunk-54NEBNV3.js.map → chunk-IVBQSIVS.js.map} +0 -0
- /package/dist/chunks/{chunk-SVRLQQMB.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-5PAU4A3K.js.map → chunk-KWLUYAKG.js.map} +0 -0
- /package/dist/chunks/{chunk-EQTOFC36.js.map → chunk-LMSDBH3N.js.map} +0 -0
- /package/dist/chunks/{chunk-QHGD7RLH.js.map → chunk-M3FCCQWN.js.map} +0 -0
- /package/dist/chunks/{chunk-PF32FZUI.js.map → chunk-M4CILTGF.js.map} +0 -0
- /package/dist/chunks/{chunk-R4SQ7YG2.js.map → chunk-MBFYU4BQ.js.map} +0 -0
- /package/dist/chunks/{chunk-VJXFLYGQ.js.map → chunk-N5H6BXSH.js.map} +0 -0
- /package/dist/chunks/{chunk-JPQSIROH.js.map → chunk-NBGCCPO2.js.map} +0 -0
- /package/dist/chunks/{chunk-2RWJX3XO.js.map → chunk-NCI44BJE.js.map} +0 -0
- /package/dist/chunks/{chunk-NZAFY2F4.js.map → chunk-NIT2OAFM.js.map} +0 -0
- /package/dist/chunks/{chunk-Z2PZBUDP.js.map → chunk-O4RW4C5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-LID7O2YP.js.map → chunk-P2NS5JPG.js.map} +0 -0
- /package/dist/chunks/{chunk-CCYLACZC.js.map → chunk-P32KIQBD.js.map} +0 -0
- /package/dist/chunks/{chunk-GVT765NL.js.map → chunk-P5BRE34M.js.map} +0 -0
- /package/dist/chunks/{chunk-TUHTURON.js.map → chunk-PH7RYICR.js.map} +0 -0
- /package/dist/chunks/{chunk-PBGIIPSL.js.map → chunk-PT7CAL4N.js.map} +0 -0
- /package/dist/chunks/{chunk-QZAYT5UR.js.map → chunk-QQZXB3E7.js.map} +0 -0
- /package/dist/chunks/{chunk-UEETLO7H.js.map → chunk-RKYDGWUF.js.map} +0 -0
- /package/dist/chunks/{chunk-6JGKF5CJ.js.map → chunk-T5GYOXPH.js.map} +0 -0
- /package/dist/chunks/{chunk-3VMSB36D.js.map → chunk-TBQ7SPXV.js.map} +0 -0
- /package/dist/chunks/{chunk-XCGIZUMG.js.map → chunk-TCC7QRSV.js.map} +0 -0
- /package/dist/chunks/{chunk-UVGXDFY5.js.map → chunk-UI7WXHQL.js.map} +0 -0
- /package/dist/chunks/{chunk-JCP7GH4E.js.map → chunk-VGUQOYPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-TGUXLYS2.js.map → chunk-VKYRVAQ4.js.map} +0 -0
- /package/dist/chunks/{chunk-GO3IILJG.js.map → chunk-VL6NOKJF.js.map} +0 -0
- /package/dist/chunks/{chunk-OS4QHE3D.js.map → chunk-WPEFWFO6.js.map} +0 -0
- /package/dist/chunks/{chunk-NSPM2ALB.js.map → chunk-WSRGGVIM.js.map} +0 -0
- /package/dist/chunks/{chunk-M2VJZ5G5.js.map → chunk-YCJW5A7U.js.map} +0 -0
- /package/dist/chunks/{chunk-B47YGS45.js.map → chunk-YXOWGENA.js.map} +0 -0
- /package/dist/chunks/{chunk-MJOO5EA4.js.map → chunk-YXWJD4GH.js.map} +0 -0
- /package/dist/chunks/{chunk-YZFC3GTH.js.map → chunk-ZK6GFS2K.js.map} +0 -0
- /package/dist/chunks/{chunk-WH6LELNJ.js.map → chunk-ZXW2TTMW.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-YAF6N4B4.js.map → cli-runtime-JHNUAZGX.js.map} +0 -0
- /package/dist/chunks/{commands-UJGFQSQ4.js.map → commands-QIB5PR4U.js.map} +0 -0
- /package/dist/chunks/{crash-report-YQOJKQCG.js.map → crash-report-YKBMAI2C.js.map} +0 -0
- /package/dist/chunks/{dist-AFI563E4.js.map → dist-EGQG2CWK.js.map} +0 -0
- /package/dist/chunks/{dist-HYGOYQLL.js.map → dist-HX4CMQP7.js.map} +0 -0
- /package/dist/chunks/{dist-2L7NSJJE.js.map → dist-JU77OEQV.js.map} +0 -0
- /package/dist/chunks/{dist-B445LLNF.js.map → dist-ONV5YXBC.js.map} +0 -0
- /package/dist/chunks/{dist-GETHBP7P.js.map → dist-OS52BKDN.js.map} +0 -0
- /package/dist/chunks/{dist-H6SCKMJX.js.map → dist-TFGK7OXW.js.map} +0 -0
- /package/dist/chunks/{dist-MF62HCKV.js.map → dist-YKDCCBQG.js.map} +0 -0
- /package/dist/chunks/{doctor-H27EQ5RE.js.map → doctor-GILJT2C6.js.map} +0 -0
- /package/dist/chunks/{drain-WO6UFXH4.js.map → drain-A65DSXV5.js.map} +0 -0
- /package/dist/chunks/{entry-QFLKR4O3.js.map → entry-S4CXG3N4.js.map} +0 -0
- /package/dist/chunks/{eval-SKVWJKSU.js.map → eval-7JFPRH2Z.js.map} +0 -0
- /package/dist/chunks/{home-5EUINGKN.js.map → home-TD3AGJSX.js.map} +0 -0
- /package/dist/chunks/{host-5EP6E23T.js.map → host-MRXWMOJP.js.map} +0 -0
- /package/dist/chunks/{host-queries-6NEPSEAS.js.map → host-queries-77N4N7XL.js.map} +0 -0
- /package/dist/chunks/{learn-HJMN624W.js.map → learn-EEKKNN7B.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-VRTLHEQW.js.map → learn-builtin-DGQW6ZJ3.js.map} +0 -0
- /package/dist/chunks/{lifecycle-MJTRWTCM.js.map → lifecycle-5QSLVTIZ.js.map} +0 -0
- /package/dist/chunks/{list-LFBLFIKV.js.map → list-G525YHRP.js.map} +0 -0
- /package/dist/chunks/{live-MOEHIAAF.js.map → live-Z4LVRXQJ.js.map} +0 -0
- /package/dist/chunks/{login-4NTLCW7N.js.map → login-V6COXMPE.js.map} +0 -0
- /package/dist/chunks/{logs-EUKQL5B7.js.map → logs-NM5XSBZ2.js.map} +0 -0
- /package/dist/chunks/{mcp-CVG7FG6J.js.map → mcp-NTFOOPLS.js.map} +0 -0
- /package/dist/chunks/{message-command-WCIE3455.js.map → message-command-BBICY3ZH.js.map} +0 -0
- /package/dist/chunks/{open-ZY2THIE3.js.map → open-EO6BERGC.js.map} +0 -0
- /package/dist/chunks/{operator-tools-D6L7ASDD.js.map → operator-tools-EKYFPXNP.js.map} +0 -0
- /package/dist/chunks/{output-schema-GR4GYBPU.js.map → output-schema-4QBMG2V3.js.map} +0 -0
- /package/dist/chunks/{pal-O2V75KQK.js.map → pal-GGEP7A3C.js.map} +0 -0
- /package/dist/chunks/{peers-QB4HQ5PZ.js.map → peers-NEFTEGGH.js.map} +0 -0
- /package/dist/chunks/{peers-TNGB6WQH.js.map → peers-XABPXXYU.js.map} +0 -0
- /package/dist/chunks/{providers-5VUFH7IJ.js.map → providers-UR7PTSAU.js.map} +0 -0
- /package/dist/chunks/{pty-ORVEC6FI.js.map → pty-E6LOL7FL.js.map} +0 -0
- /package/dist/chunks/{resume-YK5YX2GP.js.map → resume-YVCJLRJM.js.map} +0 -0
- /package/dist/chunks/{resume-command-26JB6FZZ.js.map → resume-command-SK376EH7.js.map} +0 -0
- /package/dist/chunks/{schedule-LSM2OF24.js.map → schedule-LMZSBVLA.js.map} +0 -0
- /package/dist/chunks/{service-V2BNTEB4.js.map → service-LXGEJ7SQ.js.map} +0 -0
- /package/dist/chunks/{skills-T2ZYRYZF.js.map → skills-LKMGHUON.js.map} +0 -0
- /package/dist/chunks/{start-check-A4B3AXO2.js.map → start-check-VOPUK6AT.js.map} +0 -0
- /package/dist/chunks/{startup-failure-YHDJI7YI.js.map → startup-failure-EICFG4GV.js.map} +0 -0
- /package/dist/chunks/{state-OY6VG73L.js.map → state-JOIMBJVN.js.map} +0 -0
- /package/dist/chunks/{store-DBWWXNYV.js.map → store-22R5VPTI.js.map} +0 -0
- /package/dist/chunks/{store-IVQVINSF.js.map → store-CJQTON4J.js.map} +0 -0
- /package/dist/chunks/{store-LEOLKXRN.js.map → store-JPIWK3PM.js.map} +0 -0
- /package/dist/chunks/{store-QPO2TZ42.js.map → store-ZZNUM66U.js.map} +0 -0
- /package/dist/chunks/{upgrade-QQ665A7W.js.map → upgrade-WX6LVKEZ.js.map} +0 -0
- /package/dist/chunks/{workspaces-5JL7LPKW.js.map → workspaces-LSNFONMM.js.map} +0 -0
- /package/dist/chunks/{worktree-U2RO5D47.js.map → worktree-FPCQFFLT.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# @namzu/cli
|
|
2
2
|
|
|
3
|
+
## 50.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a53df15: New option `ProviderRetryConfig.overloadedFallOverAfter` (pass it in `query({ retry })`): with a provider chain declared, a member that answers "overloaded" that many times in a row is left and the next member is asked, instead of spending the member's whole retry budget first. An answer counts when its classified code is `overloaded` (a 529, a 503, or a message that says so); rate limits are not counted. The option is off by default, so nothing changes for an existing `fallbackProviders` caller. The last member of a chain and a lone provider always keep the whole budget. The `fallback` notice names the model left and the count. The terminal now sets it to `3` (it used to retry eleven times on a saturated member before moving on), and the terminal has no setting for the count yet, so a declared provider chain moves on sooner than before; a finite `limits.tokenBudget` still stops the turn at the first 5xx without usage, so early fail-over only applies to turns without a token limit, which is the terminal's default.
|
|
8
|
+
- c6d156d: A repository can no longer loosen your sandbox. `namzu.config.json`, `namzu.config.local.json` and a profile declared in either may now only tighten the `sandbox` block: they can turn `enabled` on, set `allowEscape` and `allowUnattendedEscape` to `false`, add to `requireIsolation` and ask for an `ephemeral` workspace. A repository value that would loosen it (`enabled: false`, `allowEscape: true`, `allowUnattendedEscape: true`, `workspace: working-directory` over your `ephemeral`) is ignored, and `teardownTimeoutMs` in a repository file is ignored; each one that would have changed something is named once at launch with its file. Before, such a file replaced your whole `sandbox` block, so a cloned repository could let a headless run leave the sandbox. If a team relied on that, move the setting to your own `~/.namzu/config.yaml` or to the managed file; both keep full control. Your own file now merges per key with the layers below it instead of the later one replacing the whole block; the managed file still replaces the whole block, so a key it leaves out is not carried over from your file. A headless `namzu exec` prints each ignored repository value on stderr, as the terminal app does at launch.
|
|
9
|
+
- 3014fe1: When you come back to a conversation that stayed open in the same terminal after the provider's prompt cache has expired (a conversation resumed in a new process is not covered, because nothing is saved to disk), Namzu now replaces old, large tool results with a short note before the first request, if that saves at least 20,000 tokens; the newest six results, errors and pinned messages are never touched, and each note says how to read the result again. The full text stays in the conversation log (and nothing is shed when `recordShedHistory` is off). Nothing to change on your side; set `compaction.clearStaleResultsAfterIdle: false` to keep sending old results unchanged. SDK: `CompactionConfig` gains an optional `clearStaleToolResultsAtStart` that a host can set per turn for the same effect; absent, nothing changes.
|
|
10
|
+
- b09da0c: The SDK gains an optional `TurnConfig.maxHookRefusals`: how many times in a row a `turn_end` or `subagent_stop` hook may refuse to let a turn end before the turn ends anyway. Nothing changes for a host that does not set it. The CLI now ends a turn after 8 end-of-turn hook refusals in a row with no tool call between them (a tool call starts the count over, so a hook that sends the agent back to work is unaffected) and names the hook once in the transcript. Set `limits.maxHookRefusals: 0` in the CLI config to restore the old behaviour, where only `maxIterations` ends such a loop.
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 52b4b7e: The `usage` event of `namzu exec --json` gains `inputTokens`, `cacheReadTokens` and `cacheWriteTokens`, cumulative for the turn beside `totalTokens` and `outputTokens`. On a warm Anthropic cache `inputTokens` is only the uncached remainder, so a reader that wants what the model was sent adds the three. `contextTokens` now counts the whole prompt, cache included. Existing fields are unchanged.
|
|
15
|
+
- 03b2214: A remembered fact about files now says when it may be out of date. When Namzu stores a memory that names files in your project, it records each file's path, size, time and a hash (never the content). When that memory is about to go with a message and one of those files is gone or has changed, the memory is still shown but carries a note that it may be out of date, and the idle sweep retires an automatically recorded memory whose file stayed gone for 14 days (`/memory` restores it). A file that only changed adds the note and never retires the memory, and `/memory` says whether a memory you saved is possibly stale because a file is gone or because it was not recalled. Files that commonly hold a secret (`.env`, keys, credentials) are never recorded. Nothing to change on your side. For SDK hosts: `createMemoryRecallStep` takes an optional `caution(record)` callback and `RecalledMemory` gains an optional `caution` string; existing callers are unaffected.
|
|
16
|
+
- 525e50a: New setting `permissions.outsideRoot: ask | refuse` for the file tools (`read`, `write`, `edit`, `glob`, `grep`, `ls`, and any tool that declares a path argument, such as `view_image`, `lsp`, `code_analysis` and `browser`). The default, `ask`, is unchanged: a path outside the working directory and the added directories is put to you. With `refuse` it is refused without asking, in every mode including bypass and auto, and the message names the setting and `--add-dir`. Any config file may set it, and a `refuse` in one file is not undone by another, so a project file can only make it stricter. It is also a choice in Desktop Settings, which asks only when you choose `ask`. Sub-agents get the same refusal and the same sentence. Shell command operands and redirections are still asked about; that is a later change. SDK: `QueryParams.outsideRootRefusal` lets a host choose the sentence the model reads when `outsideRootAccess` is `'refuse'`; without it nothing changes.
|
|
17
|
+
- ef42817: A turn that changed files, or ran a check that failed, now ends with one plain line saying what a recognised check established, for example `Changed 4 files · checked: pnpm test passed, nothing changed since` or `Changed 4 files · not checked`; a turn that changed nothing prints nothing. `namzu exec --output-format json` has the record as `outcome` on its result and `namzu exec --json` puts it on the `done` line. A delegated agent's result names the record in one line after the agent's own words. Shell commands are seen when the tools run in a git working folder; in a folder git cannot read, with a sandbox that works in a copy of its own, or in an isolated child worktree, only the edit tools are.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 1ec2a28: A yes/no decision question can now carry a `criteria` sentence (what makes the answer yes), through the new optional `criteria` field of the options argument of `DecisionModel.yesno`. The HTTP driver sends it; the Azure driver does not send it until that is verified against the service, so its request is unchanged. The model-facing `decide` tool takes an optional `criteria` for a yes/no call. Namzu's own yes/no questions (notify, memory, skill, model routing, the connection test) now send one, so hosted decision models that refuse a yes/no question without criteria can be used. Nothing to change on your side; a custom service that rejects unknown fields on a yes/no question would now need to accept `criteria`.
|
|
22
|
+
- c89c170: The coding-agent delegation guidance, the `Agent` tool description and the explore prompt are rewritten: do small or known-target work inline, delegate independent, large or context-flooding work, never redo delegated work, pass paths and what is ruled out rather than a conclusion, treat a child's report as a claim and check one claim, keep parallel writers apart, and use explore to locate small answers. The rules appear only when delegation is mounted; hypermode is unchanged. A host that pins the old doctrine text in a test will see the new wording. Nothing to change otherwise.
|
|
23
|
+
- f06792b: `namzu acp --desktop` now tells the Desktop how full each conversation is and when it is being compacted, through a new `namzu/session/usage` notification (context size, window, cost when priced, compaction start and finish). Other clients and the shared protocol mapping are unchanged, and a client that does not know the notification ignores it. Nothing to change on your side.
|
|
24
|
+
- 8fbeb1f: After a compaction the model is told the session goal again (its state, how many automatic replies are used, and the objective cut at 600 characters, marked as of the compaction), and an ordinary turn now carries the plan file across a compaction as well; before, only a resumed turn and `/compact` did, because the turn runner dropped the note. Nothing to change on your side.
|
|
25
|
+
- fee7b88: A large result from an MCP server is no longer cut with the rest lost. Over 30,000 characters, the model is shown the start and end of the text plus the path of a file holding all of it in the session's tool-results folder, and reads any part with `read` using `offset` and `limit`. The file is owner-only, written after the result screens, and goes when the session does. Results under the limit are unchanged.
|
|
26
|
+
- fee7b88: An MCP result whose text is 30,000 characters or fewer is no longer rewrapped and stripped of its structured and rich fields just because its text is over about 5,000 characters; only a result over 30,000 characters, or whose structured fields are too large, is bounded. An oversized result's text is no longer framed as untrusted a second time, and a line before it says when structured data and rich content were omitted.
|
|
27
|
+
- 03b2214: Memory curation no longer starts while a turn is streaming or a tool is running, so it cannot compete with the reply (a model call already out when the turn starts is not stopped; it finishes by itself, and nothing new starts). A turn that ends by a cancel or an error now releases what waited, like one that completes. What waited drains after the turn settles and a short pause; closing the session still drains once. Nothing to change on your side.
|
|
28
|
+
- 5088eb3: With `model: auto`, a turn that ends on a provider or model error now makes the next turn in that conversation run one tier up (`fast` to `default`, `default` to `big`), as the routing rules always said; before, nothing told the router the previous turn had failed, so the rule never fired. Your interrupt, a refused permission, a budget or iteration stop, a guardrail and a model declining to answer do not count as a failure, and the escalation applies to one turn only. Nothing to change on your side; a conversation that hits provider errors on `fast` may now spend on `default` for one turn.
|
|
29
|
+
- 2438b7f: Starts and turns spend less time before the model is asked. On WSL, launching no longer starts `cmd.exe` four times to find the Windows home (it asks once, and asks again if the answer failed), and `namzu acp` writes Node's compile cache itself two seconds after it starts, so an engine that is killed instead of closed after that still starts warm the next time. Nothing to change on your side.
|
|
30
|
+
- 52b4b7e: The Zen and Zen Go catalogue refresh read its two documentation pages from a path that no longer exists upstream (`services/www`, now `services/site`), so every launch logged a 404 warning and kept the bundled catalogue; it reads the new path. A refresh that fails for a reason worth a warning now warns once every six hours and logs at `debug` in between; `NAMZU_HOME/cli/zen-catalogue-failed.json` holds the time of the last warning.
|
|
31
|
+
- Updated dependencies [243eb8d]
|
|
32
|
+
- Updated dependencies [c89c170]
|
|
33
|
+
- Updated dependencies [ad65c0c]
|
|
34
|
+
- Updated dependencies [63fbbb9]
|
|
35
|
+
- Updated dependencies [fee7b88]
|
|
36
|
+
- Updated dependencies [03b2214]
|
|
37
|
+
- Updated dependencies [49ee426]
|
|
38
|
+
- Updated dependencies [525e50a]
|
|
39
|
+
- Updated dependencies [a53df15]
|
|
40
|
+
- Updated dependencies [3563f41]
|
|
41
|
+
- Updated dependencies [3014fe1]
|
|
42
|
+
- Updated dependencies [b09da0c]
|
|
43
|
+
- Updated dependencies [4e4a1aa]
|
|
44
|
+
- Updated dependencies [3fbde2e]
|
|
45
|
+
- Updated dependencies [fee7b88]
|
|
46
|
+
- Updated dependencies [2438b7f]
|
|
47
|
+
- Updated dependencies [ef42817]
|
|
48
|
+
- Updated dependencies [52b4b7e]
|
|
49
|
+
- Updated dependencies [52b4b7e]
|
|
50
|
+
- @namzu/sdk@62.7.0
|
|
51
|
+
- @namzu/anthropic@7.1.1
|
|
52
|
+
- @namzu/zen@5.1.3
|
|
53
|
+
|
|
3
54
|
## 49.1.1
|
|
4
55
|
|
|
5
56
|
### Patch Changes
|
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
3
3
|
const require = __namzuCreateRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
enableStartupCompileCache
|
|
6
|
+
} from "./chunks/chunk-SOIP273Z.js";
|
|
4
7
|
import {
|
|
5
8
|
__name
|
|
6
9
|
} from "./chunks/chunk-76FLAFCG.js";
|
|
@@ -8,51 +11,6 @@ import {
|
|
|
8
11
|
// src/bin.ts
|
|
9
12
|
import { fileURLToPath } from "node:url";
|
|
10
13
|
|
|
11
|
-
// src/compile-cache.ts
|
|
12
|
-
import { statSync } from "node:fs";
|
|
13
|
-
import nodeModule from "node:module";
|
|
14
|
-
import { homedir } from "node:os";
|
|
15
|
-
import { join, resolve } from "node:path";
|
|
16
|
-
function isRealDirectory(path) {
|
|
17
|
-
try {
|
|
18
|
-
return statSync(path).isDirectory();
|
|
19
|
-
} catch {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
__name(isRealDirectory, "isRealDirectory");
|
|
24
|
-
function enableStartupCompileCache(options = {}) {
|
|
25
|
-
const env = options.env ?? process.env;
|
|
26
|
-
const mod = options.module ?? nodeModule;
|
|
27
|
-
if (typeof mod.enableCompileCache !== "function") {
|
|
28
|
-
return { state: "skipped", reason: "this Node has no module.enableCompileCache" };
|
|
29
|
-
}
|
|
30
|
-
if (env.NODE_DISABLE_COMPILE_CACHE) {
|
|
31
|
-
return { state: "skipped", reason: "NODE_DISABLE_COMPILE_CACHE is set" };
|
|
32
|
-
}
|
|
33
|
-
if (env.NODE_COMPILE_CACHE) {
|
|
34
|
-
return { state: "skipped", reason: "NODE_COMPILE_CACHE chose the directory" };
|
|
35
|
-
}
|
|
36
|
-
try {
|
|
37
|
-
const configured = env.NAMZU_HOME;
|
|
38
|
-
const namzuHome = configured === void 0 || configured.length === 0 ? resolve(options.home ?? homedir(), ".namzu") : configured;
|
|
39
|
-
if (namzuHome.includes("\0") || !isRealDirectory(namzuHome)) {
|
|
40
|
-
return { state: "skipped", reason: "the Namzu home does not exist yet" };
|
|
41
|
-
}
|
|
42
|
-
const result = mod.enableCompileCache(join(namzuHome, "cache", "compile"));
|
|
43
|
-
if (result.status === nodeModule.constants.compileCacheStatus.ENABLED) {
|
|
44
|
-
return { state: "enabled", directory: result.directory ?? "" };
|
|
45
|
-
}
|
|
46
|
-
if (result.status === nodeModule.constants.compileCacheStatus.ALREADY_ENABLED) {
|
|
47
|
-
return { state: "skipped", reason: "already enabled" };
|
|
48
|
-
}
|
|
49
|
-
return { state: "failed", reason: result.message ?? "Node did not enable the cache" };
|
|
50
|
-
} catch (error) {
|
|
51
|
-
return { state: "failed", reason: error instanceof Error ? error.message : String(error) };
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
__name(enableStartupCompileCache, "enableStartupCompileCache");
|
|
55
|
-
|
|
56
14
|
// src/compile-cache-enable.ts
|
|
57
15
|
enableStartupCompileCache();
|
|
58
16
|
|
|
@@ -81,6 +39,6 @@ __name(suppressSqliteExperimentalWarning, "suppressSqliteExperimentalWarning");
|
|
|
81
39
|
suppressSqliteExperimentalWarning();
|
|
82
40
|
|
|
83
41
|
// src/bin.ts
|
|
84
|
-
var { main } = await import("./chunks/bin-main-
|
|
42
|
+
var { main } = await import("./chunks/bin-main-LFD4MFRZ.js");
|
|
85
43
|
await main(fileURLToPath(new URL("./", import.meta.url).href + "bin.js"));
|
|
86
44
|
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/bin.ts", "../src/compile-cache
|
|
4
|
-
"mappings": "
|
|
3
|
+
"sources": ["../src/bin.ts", "../src/compile-cache-enable.ts", "../src/warning-filter.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;AAEA,SAAS,qBAAqB;;;ACE9B,0BAA0B;;;ACc1B,IAAM,sBAAsB;AASrB,SAAS,4BAA4B,SAAkB,MAAmC;AAChG,QAAM,UACL,OAAO,YAAY,WAAW,UAAU,mBAAmB,QAAQ,QAAQ,UAAU;AACtF,MAAI,YAAY,UAAa,CAAC,oBAAoB,KAAK,OAAO,EAAG,QAAO;AACxE,QAAM,QAAQ,KAAK,CAAC;AACpB,QAAM,OACL,OAAO,UAAU,WACd,QACA,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU,QACvD,MAA6B,OAC9B,mBAAmB,QAClB,QAAQ,OACR;AACN,SAAO,SAAS;AACjB;AAdgB;AAoBT,SAAS,kCACf,SAAwB,SACX;AACb,QAAM,WAAW,OAAO;AACxB,QAAM,WAAW,gCAAyB,YAAqB,MAAuB;AACrF,QAAI,4BAA4B,SAAS,IAAI,EAAG;AAC/C,IAAC,SAA0C,KAAK,QAAQ,SAAS,GAAG,IAAI;AAAA,EAC1E,GAHiB;AAIjB,SAAO,cAAc;AACrB,SAAO,MAAM;AACZ,QAAI,OAAO,gBAAgB,SAAU,QAAO,cAAc;AAAA,EAC3D;AACD;AAZgB;AAchB,kCAAkC;;;AFhDlC,IAAM,EAAE,KAAK,IAAI,MAAM,OAAO,+BAAe;AAG7C,MAAM,KAAK,cAAe,sBAAsB,QAAS,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -2,30 +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
17
|
import {
|
|
18
18
|
deleteUserConfigValue,
|
|
19
19
|
setUserConfigValue,
|
|
20
20
|
userConfigPath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-62ZRTAHT.js";
|
|
22
22
|
import {
|
|
23
23
|
HeadlessScreen
|
|
24
24
|
} from "./chunk-GWGIAZLZ.js";
|
|
25
25
|
import "./chunk-6HTC5TQ3.js";
|
|
26
26
|
import {
|
|
27
27
|
launchRefusal
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4OGB5U5E.js";
|
|
29
29
|
import {
|
|
30
30
|
cliPalComputerStatus,
|
|
31
31
|
cliPalScreen,
|
|
@@ -38,21 +38,21 @@ import {
|
|
|
38
38
|
startCliPalComputer,
|
|
39
39
|
stopCliPalComputer,
|
|
40
40
|
takeOverCliPalComputer
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-EMXHURNA.js";
|
|
42
42
|
import {
|
|
43
43
|
palSessionEnvironment
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7F67RLOJ.js";
|
|
45
45
|
import {
|
|
46
46
|
cliPalActivitySubscriptionPolicy,
|
|
47
47
|
cliPalActivitySubscriptionStore,
|
|
48
48
|
cliPalCommunicationPolicy,
|
|
49
49
|
cliPalCommunicationStore
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FELRB5DJ.js";
|
|
51
51
|
import {
|
|
52
52
|
claimPalConversation,
|
|
53
53
|
listPalConversations,
|
|
54
54
|
palConversationBinding
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NCI44BJE.js";
|
|
56
56
|
import {
|
|
57
57
|
FileCheckpointStore,
|
|
58
58
|
PluginSettingsStore,
|
|
@@ -64,34 +64,34 @@ import {
|
|
|
64
64
|
sessionLogCheckpointView,
|
|
65
65
|
validateComposerSendSettings,
|
|
66
66
|
verifyCredential
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
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";
|
|
77
77
|
import "./chunk-WHODOMXA.js";
|
|
78
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-YXWJD4GH.js";
|
|
79
79
|
import "./chunk-YOWYTBJS.js";
|
|
80
80
|
import "./chunk-2IPDTDB3.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-LMSDBH3N.js";
|
|
82
82
|
import "./chunk-IYUW2RAA.js";
|
|
83
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-5XCRTM5D.js";
|
|
84
84
|
import "./chunk-ZWA2JRJV.js";
|
|
85
85
|
import "./chunk-NUGPLXVK.js";
|
|
86
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-P2NS5JPG.js";
|
|
87
87
|
import {
|
|
88
88
|
listProviderConnections,
|
|
89
89
|
removeProviderKey,
|
|
90
90
|
saveProviderKey,
|
|
91
91
|
typedKeyProvider
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
92
|
+
} from "./chunk-4DPAL2SS.js";
|
|
93
|
+
import "./chunk-BHYTFZYY.js";
|
|
94
|
+
import "./chunk-PT7CAL4N.js";
|
|
95
95
|
import {
|
|
96
96
|
archiveConversation,
|
|
97
97
|
closeSessions,
|
|
@@ -109,8 +109,8 @@ import {
|
|
|
109
109
|
refreshIndex,
|
|
110
110
|
setTitle,
|
|
111
111
|
unarchiveConversation
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-HAV2WF6U.js";
|
|
113
|
+
import "./chunk-AVNUJT7M.js";
|
|
114
114
|
import {
|
|
115
115
|
cliProjectRoot
|
|
116
116
|
} from "./chunk-JQIBPPOL.js";
|
|
@@ -123,14 +123,17 @@ import {
|
|
|
123
123
|
listPals,
|
|
124
124
|
palAtWorkspace,
|
|
125
125
|
updatePal
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-52KOLFPS.js";
|
|
127
127
|
import {
|
|
128
128
|
isTrusted,
|
|
129
129
|
isTrustedAtStateRoot,
|
|
130
130
|
trustDir,
|
|
131
131
|
untrustDir
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
132
|
+
} from "./chunk-P32KIQBD.js";
|
|
133
|
+
import "./chunk-INFXJ66V.js";
|
|
134
|
+
import {
|
|
135
|
+
flushCompileCacheWhenIdle
|
|
136
|
+
} from "./chunk-SOIP273Z.js";
|
|
134
137
|
import {
|
|
135
138
|
resolveTrustedProjectContext
|
|
136
139
|
} from "./chunk-CHIEVVQ2.js";
|
|
@@ -138,12 +141,12 @@ import {
|
|
|
138
141
|
CLI_VERSION
|
|
139
142
|
} from "./chunk-HE7WUOX2.js";
|
|
140
143
|
import "./chunk-GNBMKISG.js";
|
|
141
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-VL6NOKJF.js";
|
|
142
145
|
import "./chunk-OH6TB27S.js";
|
|
143
146
|
import {
|
|
144
147
|
ConfigValueError,
|
|
145
148
|
readConfigKey
|
|
146
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-4E2XEBCA.js";
|
|
147
150
|
import {
|
|
148
151
|
require_dist
|
|
149
152
|
} from "./chunk-KONYGNG6.js";
|
|
@@ -152,10 +155,10 @@ import {
|
|
|
152
155
|
compilePermissionLayers,
|
|
153
156
|
permissionLayersOf,
|
|
154
157
|
warnLegacyMcpPermissionNames
|
|
155
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-7L4LWYJL.js";
|
|
156
159
|
import {
|
|
157
160
|
cliLogger
|
|
158
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-FLCSG33P.js";
|
|
159
162
|
import "./chunk-SIG7WHBU.js";
|
|
160
163
|
import "./chunk-LVVD32KJ.js";
|
|
161
164
|
import "./chunk-6PWRKA5T.js";
|
|
@@ -172,28 +175,28 @@ import {
|
|
|
172
175
|
loadHostPty,
|
|
173
176
|
processesCarrying,
|
|
174
177
|
quietConptyHelper
|
|
175
|
-
} from "./chunk-
|
|
176
|
-
import "./chunk-
|
|
178
|
+
} from "./chunk-PH7RYICR.js";
|
|
179
|
+
import "./chunk-F4HPFCP7.js";
|
|
177
180
|
import {
|
|
178
181
|
automaticKind,
|
|
179
182
|
canSelectModel,
|
|
180
183
|
discoverProviders,
|
|
181
184
|
isAnonymousZen
|
|
182
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-DPFRJK3R.js";
|
|
183
186
|
import {
|
|
184
187
|
isOfferableModel
|
|
185
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-4QIWRKJO.js";
|
|
186
189
|
import "./chunk-G6YSAHKC.js";
|
|
187
|
-
import "./chunk-
|
|
190
|
+
import "./chunk-KTPFUCRU.js";
|
|
188
191
|
import "./chunk-RI2KAZJO.js";
|
|
189
|
-
import "./chunk-
|
|
190
|
-
import "./chunk-
|
|
191
|
-
import "./chunk-
|
|
192
|
+
import "./chunk-EQ6W5RYI.js";
|
|
193
|
+
import "./chunk-I3CWCFIT.js";
|
|
194
|
+
import "./chunk-FWHZB37G.js";
|
|
192
195
|
import {
|
|
193
196
|
canonicalProjectPath
|
|
194
197
|
} from "./chunk-JORONMD3.js";
|
|
195
|
-
import "./chunk-
|
|
196
|
-
import "./chunk-
|
|
198
|
+
import "./chunk-DRNABAHW.js";
|
|
199
|
+
import "./chunk-UI7WXHQL.js";
|
|
197
200
|
import {
|
|
198
201
|
ACPServer,
|
|
199
202
|
DiskLogMedium,
|
|
@@ -227,7 +230,7 @@ import {
|
|
|
227
230
|
resolveWithinAnyReal,
|
|
228
231
|
resolveWithinReal,
|
|
229
232
|
selectAssistantText
|
|
230
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-S4YTXJTD.js";
|
|
231
234
|
import {
|
|
232
235
|
__name,
|
|
233
236
|
__toESM
|
|
@@ -4445,6 +4448,19 @@ var SETTING_DESCRIPTORS = [
|
|
|
4445
4448
|
confirmWhen: "off"
|
|
4446
4449
|
}
|
|
4447
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
|
+
),
|
|
4448
4464
|
d(
|
|
4449
4465
|
"permissions",
|
|
4450
4466
|
"projects",
|
|
@@ -4589,6 +4605,14 @@ var SETTING_DESCRIPTORS = [
|
|
|
4589
4605
|
confirmWhen: "off"
|
|
4590
4606
|
}
|
|
4591
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
|
+
),
|
|
4592
4616
|
d("limits.maxIterations", "agent", "Most steps per task", "0 means no limit.", num(0), {
|
|
4593
4617
|
defaultText: "no limit",
|
|
4594
4618
|
confirm: "With no limit, a task can keep taking steps until it ends on its own.",
|
|
@@ -4745,6 +4769,14 @@ var SETTING_DESCRIPTORS = [
|
|
|
4745
4769
|
on,
|
|
4746
4770
|
{ defaultText: "off" }
|
|
4747
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
|
+
),
|
|
4748
4780
|
d(
|
|
4749
4781
|
"compaction.idleCompactionMinTokens",
|
|
4750
4782
|
"agent",
|
|
@@ -7315,6 +7347,116 @@ function desktopModelCatalogue(listing, defaultModel, currentModel, allowModel,
|
|
|
7315
7347
|
}
|
|
7316
7348
|
__name(desktopModelCatalogue, "desktopModelCatalogue");
|
|
7317
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
|
+
|
|
7318
7460
|
// src/commands/permission-preview.ts
|
|
7319
7461
|
import { readFile as readFile2, stat as stat5 } from "node:fs/promises";
|
|
7320
7462
|
var PREVIEW_MAX_BYTES = 1024 * 1024;
|
|
@@ -7876,6 +8018,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
7876
8018
|
} finally {
|
|
7877
8019
|
activeRecord = outer;
|
|
7878
8020
|
}
|
|
8021
|
+
try {
|
|
8022
|
+
runtimeOptions.observeEvent?.(sessionId, event);
|
|
8023
|
+
} catch {
|
|
8024
|
+
}
|
|
7879
8025
|
}, "routedEvent");
|
|
7880
8026
|
record2.route = routedEvent;
|
|
7881
8027
|
try {
|
|
@@ -8645,11 +8791,26 @@ async function closeAcpResources(runtime, closePals = closeCliPalRuntime) {
|
|
|
8645
8791
|
}
|
|
8646
8792
|
__name(closeAcpResources, "closeAcpResources");
|
|
8647
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;
|
|
8648
8807
|
const runtime = withCliHarnesses(
|
|
8649
|
-
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
|
+
}),
|
|
8650
8812
|
process.cwd()
|
|
8651
8813
|
);
|
|
8652
|
-
const transport = new ServerStdioTransport();
|
|
8653
8814
|
let announcing = true;
|
|
8654
8815
|
const terminals = desktop ? createTerminalHost({
|
|
8655
8816
|
cwd: process.cwd(),
|
|
@@ -8686,6 +8847,7 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
8686
8847
|
});
|
|
8687
8848
|
await server.start();
|
|
8688
8849
|
cliLogger().info("ACP protocol server started");
|
|
8850
|
+
flushCompileCacheWhenIdle();
|
|
8689
8851
|
try {
|
|
8690
8852
|
await new Promise((resolve4) => {
|
|
8691
8853
|
const finish = /* @__PURE__ */ __name(() => {
|
|
@@ -8698,6 +8860,8 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
8698
8860
|
});
|
|
8699
8861
|
} finally {
|
|
8700
8862
|
announcing = false;
|
|
8863
|
+
announcingUsage = false;
|
|
8864
|
+
usageFeed?.close();
|
|
8701
8865
|
try {
|
|
8702
8866
|
await terminals?.close();
|
|
8703
8867
|
await palInboxStart?.close();
|
|
@@ -8730,4 +8894,4 @@ export {
|
|
|
8730
8894
|
resolveAcpSession,
|
|
8731
8895
|
runAcpCommand
|
|
8732
8896
|
};
|
|
8733
|
-
//# sourceMappingURL=acp-
|
|
8897
|
+
//# sourceMappingURL=acp-GX5C46FS.js.map
|