@namzu/cli 50.0.0 → 50.2.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 +43 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-GX5C46FS.js → acp-WZJUKMLZ.js} +305 -91
- package/dist/chunks/acp-WZJUKMLZ.js.map +6 -0
- package/dist/chunks/{activity-command-ALROOYA2.js → activity-command-WLHWANOB.js} +12 -12
- package/dist/chunks/{add-Y24XHCJZ.js → add-B55RR7FD.js} +19 -19
- package/dist/chunks/{agent-2UGJH5L2.js → agent-LG5LWVHS.js} +37 -35
- package/dist/chunks/agent-session-XZAD6VLV.js +69 -0
- package/dist/chunks/{archive-BQVBBILN.js → archive-SJZ25KYL.js} +10 -10
- package/dist/chunks/{bin-main-LFD4MFRZ.js → bin-main-2PGQSBXB.js} +7 -7
- package/dist/chunks/{binding-7QVD3QFS.js → binding-L2VXM2X5.js} +3 -3
- package/dist/chunks/{browser-L7XFOCFR.js → browser-5TFSC4LO.js} +6 -6
- package/dist/chunks/{chat-J4HA4DHS.js → chat-OFLDMKBR.js} +15 -15
- package/dist/chunks/{chunk-WSRGGVIM.js → chunk-24PL6U4S.js} +5 -5
- package/dist/chunks/{chunk-7F67RLOJ.js → chunk-2CSVXV4L.js} +10 -10
- package/dist/chunks/{chunk-YCJW5A7U.js → chunk-2GYQWGJD.js} +2 -2
- package/dist/chunks/{chunk-TCC7QRSV.js → chunk-2IGQFWAB.js} +3 -3
- package/dist/chunks/{chunk-TBQ7SPXV.js → chunk-3UXNHP3C.js} +6 -6
- package/dist/chunks/{chunk-EMXHURNA.js → chunk-4H5G75XK.js} +3 -3
- package/dist/chunks/{chunk-K2JXGE24.js → chunk-4LR6IOLQ.js} +3 -3
- package/dist/chunks/{chunk-ZXW2TTMW.js → chunk-4XN7DMZ6.js} +7 -7
- package/dist/chunks/{chunk-LMSDBH3N.js → chunk-5GVVNO7E.js} +2 -2
- package/dist/chunks/{chunk-7L4LWYJL.js → chunk-663XNTZ7.js} +3 -3
- package/dist/chunks/{chunk-KWLUYAKG.js → chunk-6BIE5DYM.js} +2 -2
- package/dist/chunks/{chunk-AZLMME5T.js → chunk-6COBCXQV.js} +2 -2
- package/dist/chunks/{chunk-NBGCCPO2.js → chunk-6OVQ7YHB.js} +4 -4
- package/dist/chunks/{chunk-3JUVHVOX.js → chunk-7Q6ENTCV.js} +4 -4
- package/dist/chunks/{chunk-PT7CAL4N.js → chunk-A75MGD3U.js} +4 -4
- package/dist/chunks/{chunk-DPS5H6YZ.js → chunk-AXXQTHGT.js} +4 -4
- package/dist/chunks/{chunk-BPKOUPPI.js → chunk-BCBTE5FC.js} +2 -2
- package/dist/chunks/{chunk-NIT2OAFM.js → chunk-BGJ77YZV.js} +2 -2
- package/dist/chunks/{chunk-YXOWGENA.js → chunk-BH34ASBZ.js} +9 -9
- package/dist/chunks/{chunk-GXYFKGXC.js → chunk-CIIBX4PI.js} +3 -3
- package/dist/chunks/{chunk-P2NS5JPG.js → chunk-COF6PKWN.js} +5 -5
- package/dist/chunks/{chunk-T5GYOXPH.js → chunk-CTVEF75F.js} +11 -11
- package/dist/chunks/{chunk-FELRB5DJ.js → chunk-DRTTUNNF.js} +6 -6
- package/dist/chunks/{chunk-VL6NOKJF.js → chunk-DSLM4DF6.js} +3 -3
- package/dist/chunks/{chunk-F4HPFCP7.js → chunk-DURIB5QE.js} +12 -12
- package/dist/chunks/{chunk-IVBQSIVS.js → chunk-E3C3CMR6.js} +2 -2
- package/dist/chunks/{chunk-MBFYU4BQ.js → chunk-EM4U3UY4.js} +2 -2
- package/dist/chunks/{chunk-ZK6GFS2K.js → chunk-FP5BDOUA.js} +3 -3
- package/dist/chunks/{chunk-5XCRTM5D.js → chunk-G6HVF7BU.js} +3 -3
- package/dist/chunks/{chunk-2QCCSP7N.js → chunk-GP4XESLU.js} +3 -3
- package/dist/chunks/{chunk-3L3NHBFB.js → chunk-GPMXLPTZ.js} +2 -2
- package/dist/chunks/{chunk-AVNUJT7M.js → chunk-HRA64D54.js} +3 -3
- package/dist/chunks/{chunk-M4CILTGF.js → chunk-I5JZS2ZI.js} +2 -2
- package/dist/chunks/{chunk-4ZJEPJXK.js → chunk-IX4YFVK5.js} +54 -34
- package/dist/chunks/chunk-IX4YFVK5.js.map +6 -0
- package/dist/chunks/{chunk-VGUQOYPZ.js → chunk-IY5RBBRD.js} +9 -9
- package/dist/chunks/{chunk-VKYRVAQ4.js → chunk-J2Y2AOFX.js} +15 -14
- package/dist/chunks/{chunk-VKYRVAQ4.js.map → chunk-J2Y2AOFX.js.map} +1 -1
- package/dist/chunks/{chunk-HAV2WF6U.js → chunk-J65LJILX.js} +192 -85
- package/dist/chunks/chunk-J65LJILX.js.map +6 -0
- package/dist/chunks/{chunk-FKNLXK7P.js → chunk-JBMA7BRH.js} +33 -33
- package/dist/chunks/{chunk-36G4OU2T.js → chunk-JMURF6AE.js} +2 -2
- package/dist/chunks/{chunk-GL3SCBU5.js → chunk-JREHAUBD.js} +3 -3
- package/dist/chunks/{chunk-VTBS7NVT.js → chunk-K7B7Z4OK.js} +3 -3
- package/dist/chunks/{chunk-FLCSG33P.js → chunk-LD5TYFAP.js} +2 -2
- package/dist/chunks/{chunk-DPFRJK3R.js → chunk-LM37ASZT.js} +4 -4
- package/dist/chunks/{chunk-4YFO2Q4F.js → chunk-LP4KMVFB.js} +9 -9
- package/dist/chunks/{chunk-4E2XEBCA.js → chunk-M62PUTES.js} +13 -5
- package/dist/chunks/chunk-M62PUTES.js.map +6 -0
- package/dist/chunks/{chunk-PH7RYICR.js → chunk-MAF7TNYC.js} +2 -2
- package/dist/chunks/{chunk-S4YTXJTD.js → chunk-MJJAKWHU.js} +1640 -638
- package/dist/chunks/chunk-MJJAKWHU.js.map +6 -0
- package/dist/chunks/{chunk-FMXRUVQ3.js → chunk-NUYEA2GW.js} +4 -4
- package/dist/chunks/{chunk-UI7WXHQL.js → chunk-OGGKA2PQ.js} +2 -2
- package/dist/chunks/{chunk-N5H6BXSH.js → chunk-OPQ2MCIJ.js} +2 -2
- package/dist/chunks/{chunk-BHYTFZYY.js → chunk-OV6445PV.js} +5 -5
- package/dist/chunks/{chunk-62ZRTAHT.js → chunk-PGMKME64.js} +3 -3
- package/dist/chunks/{chunk-I3CWCFIT.js → chunk-PUYFQ7HR.js} +2 -2
- package/dist/chunks/{chunk-H2WOQGLW.js → chunk-PV6KTWLW.js} +4 -4
- package/dist/chunks/{chunk-4OGB5U5E.js → chunk-PVWX3NVL.js} +2 -2
- package/dist/chunks/{chunk-QQZXB3E7.js → chunk-PWGNLBJO.js} +2 -2
- package/dist/chunks/{chunk-M3FCCQWN.js → chunk-QPG5YTSB.js} +51 -5
- package/dist/chunks/chunk-QPG5YTSB.js.map +6 -0
- package/dist/chunks/{chunk-P32KIQBD.js → chunk-QQ7MRKPH.js} +2 -2
- package/dist/chunks/{chunk-O4RW4C5Q.js → chunk-QWVWNNP7.js} +2 -2
- package/dist/chunks/{chunk-EK4LUV4L.js → chunk-RHNZNUTG.js} +3 -3
- package/dist/chunks/{chunk-RKYDGWUF.js → chunk-RLGZA2NG.js} +2 -2
- package/dist/chunks/chunk-RSP6O5OB.js +113 -0
- package/dist/chunks/chunk-RSP6O5OB.js.map +6 -0
- package/dist/chunks/{chunk-EQ6W5RYI.js → chunk-S2U2D4UF.js} +2 -2
- package/dist/chunks/{chunk-24ZRB5EE.js → chunk-SM2DUB7U.js} +2 -2
- package/dist/chunks/{chunk-YXWJD4GH.js → chunk-TZLJJJRB.js} +2 -2
- package/dist/chunks/{chunk-7DITWYWT.js → chunk-VAOGSS7C.js} +3 -3
- package/dist/chunks/{chunk-4DPAL2SS.js → chunk-VCQOTSMI.js} +3 -3
- package/dist/chunks/{chunk-DRNABAHW.js → chunk-VD6DYY42.js} +2 -2
- package/dist/chunks/{chunk-64LJS5ED.js → chunk-WLQ4EA3C.js} +4 -4
- package/dist/chunks/{chunk-NCI44BJE.js → chunk-WWVFL5LP.js} +4 -4
- package/dist/chunks/{chunk-EKLFUD76.js → chunk-XKX67QOT.js} +3 -3
- package/dist/chunks/{chunk-INFXJ66V.js → chunk-XLYTLAMO.js} +2 -2
- package/dist/chunks/{chunk-FWHZB37G.js → chunk-YFOTGPY7.js} +2 -2
- package/dist/chunks/{chunk-WPEFWFO6.js → chunk-YMQ7RDWK.js} +4 -4
- package/dist/chunks/{chunk-P5BRE34M.js → chunk-YYVKM3Z6.js} +2 -2
- package/dist/chunks/{chunk-52KOLFPS.js → chunk-ZS64S2KR.js} +4 -4
- package/dist/chunks/{cli-runtime-JHNUAZGX.js → cli-runtime-IRYWJ4X4.js} +11 -11
- package/dist/chunks/{commands-QIB5PR4U.js → commands-FXM7W42M.js} +5 -5
- package/dist/chunks/{crash-report-YKBMAI2C.js → crash-report-ZOFOPOGE.js} +6 -6
- package/dist/chunks/{dist-YKDCCBQG.js → dist-2WXYB36H.js} +2 -2
- package/dist/chunks/{dist-BO4BUR4Z.js → dist-ABFEAN2U.js} +2 -2
- package/dist/chunks/{dist-EGQG2CWK.js → dist-QEI7QZKS.js} +2 -2
- package/dist/chunks/{dist-JU77OEQV.js → dist-RVSYRVUG.js} +2 -2
- package/dist/chunks/{dist-OS52BKDN.js → dist-S3XEFHON.js} +2 -2
- package/dist/chunks/{dist-ONV5YXBC.js → dist-U2IASQF3.js} +2 -2
- package/dist/chunks/{dist-TFGK7OXW.js → dist-VG7K7T7Q.js} +6 -2
- package/dist/chunks/{dist-HX4CMQP7.js → dist-ZMX2O2DP.js} +2 -2
- package/dist/chunks/{doctor-GILJT2C6.js → doctor-KCCXSJVZ.js} +16 -16
- package/dist/chunks/{drain-A65DSXV5.js → drain-QLA4FGSV.js} +9 -9
- package/dist/chunks/{entry-S4CXG3N4.js → entry-FHD4KBSM.js} +6 -6
- package/dist/chunks/{eval-7JFPRH2Z.js → eval-4O37Q6RK.js} +2 -2
- package/dist/chunks/{exec-JKYNWA4S.js → exec-5YDDQJBB.js} +34 -34
- package/dist/chunks/{home-TD3AGJSX.js → home-33E6UFR7.js} +3 -3
- package/dist/chunks/{host-MRXWMOJP.js → host-TBRXV7RU.js} +10 -10
- package/dist/chunks/{host-queries-77N4N7XL.js → host-queries-FKIZCZ4O.js} +15 -15
- package/dist/chunks/{learn-EEKKNN7B.js → learn-CXRBVPKA.js} +11 -11
- package/dist/chunks/{learn-builtin-DGQW6ZJ3.js → learn-builtin-OXXSTVYX.js} +14 -14
- package/dist/chunks/{lifecycle-5QSLVTIZ.js → lifecycle-PTN5UDGT.js} +28 -28
- package/dist/chunks/{list-G525YHRP.js → list-KUGDZNCZ.js} +11 -11
- package/dist/chunks/{live-Z4LVRXQJ.js → live-PJUMYJWV.js} +15 -15
- package/dist/chunks/{login-V6COXMPE.js → login-PI2CVLAL.js} +13 -13
- package/dist/chunks/{logs-NM5XSBZ2.js → logs-YPFTNWHJ.js} +4 -4
- package/dist/chunks/{mcp-NTFOOPLS.js → mcp-V7JIRXMM.js} +29 -117
- package/dist/chunks/mcp-V7JIRXMM.js.map +6 -0
- package/dist/chunks/{message-command-BBICY3ZH.js → message-command-GNTXQWWP.js} +41 -41
- package/dist/chunks/{open-EO6BERGC.js → open-LQFYXJGO.js} +8 -8
- package/dist/chunks/{operator-tools-EKYFPXNP.js → operator-tools-ODPPKZYO.js} +13 -13
- package/dist/chunks/{output-schema-4QBMG2V3.js → output-schema-S5UX6KD4.js} +3 -3
- package/dist/chunks/{pal-GGEP7A3C.js → pal-PQP724JL.js} +16 -16
- package/dist/chunks/{peers-XABPXXYU.js → peers-64WUYNO7.js} +7 -7
- package/dist/chunks/{peers-NEFTEGGH.js → peers-WF73HX4C.js} +6 -6
- package/dist/chunks/{providers-UR7PTSAU.js → providers-SSGFWJ47.js} +11 -11
- package/dist/chunks/{pty-E6LOL7FL.js → pty-CHKQPTIJ.js} +3 -3
- package/dist/chunks/resume-32TSOW5K.js +23 -0
- package/dist/chunks/{resume-command-SK376EH7.js → resume-command-PDAWC5OQ.js} +4 -4
- package/dist/chunks/{schedule-LMZSBVLA.js → schedule-DOUPTTHG.js} +8 -8
- package/dist/chunks/{service-LXGEJ7SQ.js → service-LQRXWFGJ.js} +28 -28
- package/dist/chunks/{skills-LKMGHUON.js → skills-YVKSFMOJ.js} +8 -8
- package/dist/chunks/{start-check-VOPUK6AT.js → start-check-O4VN7KQQ.js} +2 -2
- package/dist/chunks/{startup-failure-EICFG4GV.js → startup-failure-MX3RDAVD.js} +2 -2
- package/dist/chunks/{state-JOIMBJVN.js → state-SAFS7RR2.js} +2 -2
- package/dist/chunks/{store-JPIWK3PM.js → store-5N2RJTS7.js} +6 -6
- package/dist/chunks/{store-ZZNUM66U.js → store-DZQLPD24.js} +3 -3
- package/dist/chunks/{store-CJQTON4J.js → store-QT2Z3BMR.js} +14 -10
- package/dist/chunks/{store-22R5VPTI.js → store-RNO4PTEJ.js} +4 -4
- package/dist/chunks/{tui-7GUHLL4B.js → tui-SAH75DVX.js} +212 -179
- package/dist/chunks/tui-SAH75DVX.js.map +6 -0
- package/dist/chunks/{upgrade-WX6LVKEZ.js → upgrade-Z5LLWZN4.js} +7 -7
- package/dist/chunks/{workspaces-LSNFONMM.js → workspaces-2BQK5RIW.js} +16 -16
- package/dist/chunks/{worktree-FPCQFFLT.js → worktree-4LIJQ2FK.js} +12 -12
- package/dist/commands/acp-harness.d.ts.map +1 -1
- package/dist/commands/acp-provider-retry.d.ts.map +1 -1
- package/dist/commands/acp.d.ts +14 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +32 -0
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/desktop-outcome-feed.d.ts +36 -0
- package/dist/commands/desktop-outcome-feed.d.ts.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +10 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/index.js +19 -19
- package/dist/integrations/mcp/server-listing.d.ts +53 -0
- package/dist/integrations/mcp/server-listing.d.ts.map +1 -0
- package/dist/integrations/sessions/checkpoint-view.d.ts.map +1 -1
- package/dist/integrations/sessions/conversation-facts.d.ts +76 -0
- package/dist/integrations/sessions/conversation-facts.d.ts.map +1 -0
- package/dist/integrations/sessions/store.d.ts +22 -18
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/schedule/daemon/sessions.d.ts +3 -3
- package/dist/schedule/daemon/sessions.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +3 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/paste-marker-guard.d.ts +77 -0
- package/dist/tui/paste-marker-guard.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/chunks/acp-GX5C46FS.js.map +0 -6
- package/dist/chunks/agent-session-UQXPM43X.js +0 -69
- package/dist/chunks/chunk-4E2XEBCA.js.map +0 -6
- package/dist/chunks/chunk-4ZJEPJXK.js.map +0 -6
- package/dist/chunks/chunk-HAV2WF6U.js.map +0 -6
- package/dist/chunks/chunk-M3FCCQWN.js.map +0 -6
- package/dist/chunks/chunk-S4YTXJTD.js.map +0 -6
- package/dist/chunks/mcp-NTFOOPLS.js.map +0 -6
- package/dist/chunks/resume-YVCJLRJM.js +0 -23
- package/dist/chunks/tui-7GUHLL4B.js.map +0 -6
- /package/dist/chunks/{activity-command-ALROOYA2.js.map → activity-command-WLHWANOB.js.map} +0 -0
- /package/dist/chunks/{add-Y24XHCJZ.js.map → add-B55RR7FD.js.map} +0 -0
- /package/dist/chunks/{agent-2UGJH5L2.js.map → agent-LG5LWVHS.js.map} +0 -0
- /package/dist/chunks/{agent-session-UQXPM43X.js.map → agent-session-XZAD6VLV.js.map} +0 -0
- /package/dist/chunks/{archive-BQVBBILN.js.map → archive-SJZ25KYL.js.map} +0 -0
- /package/dist/chunks/{bin-main-LFD4MFRZ.js.map → bin-main-2PGQSBXB.js.map} +0 -0
- /package/dist/chunks/{binding-7QVD3QFS.js.map → binding-L2VXM2X5.js.map} +0 -0
- /package/dist/chunks/{browser-L7XFOCFR.js.map → browser-5TFSC4LO.js.map} +0 -0
- /package/dist/chunks/{chat-J4HA4DHS.js.map → chat-OFLDMKBR.js.map} +0 -0
- /package/dist/chunks/{chunk-WSRGGVIM.js.map → chunk-24PL6U4S.js.map} +0 -0
- /package/dist/chunks/{chunk-7F67RLOJ.js.map → chunk-2CSVXV4L.js.map} +0 -0
- /package/dist/chunks/{chunk-YCJW5A7U.js.map → chunk-2GYQWGJD.js.map} +0 -0
- /package/dist/chunks/{chunk-TCC7QRSV.js.map → chunk-2IGQFWAB.js.map} +0 -0
- /package/dist/chunks/{chunk-TBQ7SPXV.js.map → chunk-3UXNHP3C.js.map} +0 -0
- /package/dist/chunks/{chunk-EMXHURNA.js.map → chunk-4H5G75XK.js.map} +0 -0
- /package/dist/chunks/{chunk-K2JXGE24.js.map → chunk-4LR6IOLQ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZXW2TTMW.js.map → chunk-4XN7DMZ6.js.map} +0 -0
- /package/dist/chunks/{chunk-LMSDBH3N.js.map → chunk-5GVVNO7E.js.map} +0 -0
- /package/dist/chunks/{chunk-7L4LWYJL.js.map → chunk-663XNTZ7.js.map} +0 -0
- /package/dist/chunks/{chunk-KWLUYAKG.js.map → chunk-6BIE5DYM.js.map} +0 -0
- /package/dist/chunks/{chunk-AZLMME5T.js.map → chunk-6COBCXQV.js.map} +0 -0
- /package/dist/chunks/{chunk-NBGCCPO2.js.map → chunk-6OVQ7YHB.js.map} +0 -0
- /package/dist/chunks/{chunk-3JUVHVOX.js.map → chunk-7Q6ENTCV.js.map} +0 -0
- /package/dist/chunks/{chunk-PT7CAL4N.js.map → chunk-A75MGD3U.js.map} +0 -0
- /package/dist/chunks/{chunk-DPS5H6YZ.js.map → chunk-AXXQTHGT.js.map} +0 -0
- /package/dist/chunks/{chunk-BPKOUPPI.js.map → chunk-BCBTE5FC.js.map} +0 -0
- /package/dist/chunks/{chunk-NIT2OAFM.js.map → chunk-BGJ77YZV.js.map} +0 -0
- /package/dist/chunks/{chunk-YXOWGENA.js.map → chunk-BH34ASBZ.js.map} +0 -0
- /package/dist/chunks/{chunk-GXYFKGXC.js.map → chunk-CIIBX4PI.js.map} +0 -0
- /package/dist/chunks/{chunk-P2NS5JPG.js.map → chunk-COF6PKWN.js.map} +0 -0
- /package/dist/chunks/{chunk-T5GYOXPH.js.map → chunk-CTVEF75F.js.map} +0 -0
- /package/dist/chunks/{chunk-FELRB5DJ.js.map → chunk-DRTTUNNF.js.map} +0 -0
- /package/dist/chunks/{chunk-VL6NOKJF.js.map → chunk-DSLM4DF6.js.map} +0 -0
- /package/dist/chunks/{chunk-F4HPFCP7.js.map → chunk-DURIB5QE.js.map} +0 -0
- /package/dist/chunks/{chunk-IVBQSIVS.js.map → chunk-E3C3CMR6.js.map} +0 -0
- /package/dist/chunks/{chunk-MBFYU4BQ.js.map → chunk-EM4U3UY4.js.map} +0 -0
- /package/dist/chunks/{chunk-ZK6GFS2K.js.map → chunk-FP5BDOUA.js.map} +0 -0
- /package/dist/chunks/{chunk-5XCRTM5D.js.map → chunk-G6HVF7BU.js.map} +0 -0
- /package/dist/chunks/{chunk-2QCCSP7N.js.map → chunk-GP4XESLU.js.map} +0 -0
- /package/dist/chunks/{chunk-3L3NHBFB.js.map → chunk-GPMXLPTZ.js.map} +0 -0
- /package/dist/chunks/{chunk-AVNUJT7M.js.map → chunk-HRA64D54.js.map} +0 -0
- /package/dist/chunks/{chunk-M4CILTGF.js.map → chunk-I5JZS2ZI.js.map} +0 -0
- /package/dist/chunks/{chunk-VGUQOYPZ.js.map → chunk-IY5RBBRD.js.map} +0 -0
- /package/dist/chunks/{chunk-FKNLXK7P.js.map → chunk-JBMA7BRH.js.map} +0 -0
- /package/dist/chunks/{chunk-36G4OU2T.js.map → chunk-JMURF6AE.js.map} +0 -0
- /package/dist/chunks/{chunk-GL3SCBU5.js.map → chunk-JREHAUBD.js.map} +0 -0
- /package/dist/chunks/{chunk-VTBS7NVT.js.map → chunk-K7B7Z4OK.js.map} +0 -0
- /package/dist/chunks/{chunk-FLCSG33P.js.map → chunk-LD5TYFAP.js.map} +0 -0
- /package/dist/chunks/{chunk-DPFRJK3R.js.map → chunk-LM37ASZT.js.map} +0 -0
- /package/dist/chunks/{chunk-4YFO2Q4F.js.map → chunk-LP4KMVFB.js.map} +0 -0
- /package/dist/chunks/{chunk-PH7RYICR.js.map → chunk-MAF7TNYC.js.map} +0 -0
- /package/dist/chunks/{chunk-FMXRUVQ3.js.map → chunk-NUYEA2GW.js.map} +0 -0
- /package/dist/chunks/{chunk-UI7WXHQL.js.map → chunk-OGGKA2PQ.js.map} +0 -0
- /package/dist/chunks/{chunk-N5H6BXSH.js.map → chunk-OPQ2MCIJ.js.map} +0 -0
- /package/dist/chunks/{chunk-BHYTFZYY.js.map → chunk-OV6445PV.js.map} +0 -0
- /package/dist/chunks/{chunk-62ZRTAHT.js.map → chunk-PGMKME64.js.map} +0 -0
- /package/dist/chunks/{chunk-I3CWCFIT.js.map → chunk-PUYFQ7HR.js.map} +0 -0
- /package/dist/chunks/{chunk-H2WOQGLW.js.map → chunk-PV6KTWLW.js.map} +0 -0
- /package/dist/chunks/{chunk-4OGB5U5E.js.map → chunk-PVWX3NVL.js.map} +0 -0
- /package/dist/chunks/{chunk-QQZXB3E7.js.map → chunk-PWGNLBJO.js.map} +0 -0
- /package/dist/chunks/{chunk-P32KIQBD.js.map → chunk-QQ7MRKPH.js.map} +0 -0
- /package/dist/chunks/{chunk-O4RW4C5Q.js.map → chunk-QWVWNNP7.js.map} +0 -0
- /package/dist/chunks/{chunk-EK4LUV4L.js.map → chunk-RHNZNUTG.js.map} +0 -0
- /package/dist/chunks/{chunk-RKYDGWUF.js.map → chunk-RLGZA2NG.js.map} +0 -0
- /package/dist/chunks/{chunk-EQ6W5RYI.js.map → chunk-S2U2D4UF.js.map} +0 -0
- /package/dist/chunks/{chunk-24ZRB5EE.js.map → chunk-SM2DUB7U.js.map} +0 -0
- /package/dist/chunks/{chunk-YXWJD4GH.js.map → chunk-TZLJJJRB.js.map} +0 -0
- /package/dist/chunks/{chunk-7DITWYWT.js.map → chunk-VAOGSS7C.js.map} +0 -0
- /package/dist/chunks/{chunk-4DPAL2SS.js.map → chunk-VCQOTSMI.js.map} +0 -0
- /package/dist/chunks/{chunk-DRNABAHW.js.map → chunk-VD6DYY42.js.map} +0 -0
- /package/dist/chunks/{chunk-64LJS5ED.js.map → chunk-WLQ4EA3C.js.map} +0 -0
- /package/dist/chunks/{chunk-NCI44BJE.js.map → chunk-WWVFL5LP.js.map} +0 -0
- /package/dist/chunks/{chunk-EKLFUD76.js.map → chunk-XKX67QOT.js.map} +0 -0
- /package/dist/chunks/{chunk-INFXJ66V.js.map → chunk-XLYTLAMO.js.map} +0 -0
- /package/dist/chunks/{chunk-FWHZB37G.js.map → chunk-YFOTGPY7.js.map} +0 -0
- /package/dist/chunks/{chunk-WPEFWFO6.js.map → chunk-YMQ7RDWK.js.map} +0 -0
- /package/dist/chunks/{chunk-P5BRE34M.js.map → chunk-YYVKM3Z6.js.map} +0 -0
- /package/dist/chunks/{chunk-52KOLFPS.js.map → chunk-ZS64S2KR.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-JHNUAZGX.js.map → cli-runtime-IRYWJ4X4.js.map} +0 -0
- /package/dist/chunks/{commands-QIB5PR4U.js.map → commands-FXM7W42M.js.map} +0 -0
- /package/dist/chunks/{crash-report-YKBMAI2C.js.map → crash-report-ZOFOPOGE.js.map} +0 -0
- /package/dist/chunks/{dist-YKDCCBQG.js.map → dist-2WXYB36H.js.map} +0 -0
- /package/dist/chunks/{dist-BO4BUR4Z.js.map → dist-ABFEAN2U.js.map} +0 -0
- /package/dist/chunks/{dist-EGQG2CWK.js.map → dist-QEI7QZKS.js.map} +0 -0
- /package/dist/chunks/{dist-JU77OEQV.js.map → dist-RVSYRVUG.js.map} +0 -0
- /package/dist/chunks/{dist-OS52BKDN.js.map → dist-S3XEFHON.js.map} +0 -0
- /package/dist/chunks/{dist-ONV5YXBC.js.map → dist-U2IASQF3.js.map} +0 -0
- /package/dist/chunks/{dist-TFGK7OXW.js.map → dist-VG7K7T7Q.js.map} +0 -0
- /package/dist/chunks/{dist-HX4CMQP7.js.map → dist-ZMX2O2DP.js.map} +0 -0
- /package/dist/chunks/{doctor-GILJT2C6.js.map → doctor-KCCXSJVZ.js.map} +0 -0
- /package/dist/chunks/{drain-A65DSXV5.js.map → drain-QLA4FGSV.js.map} +0 -0
- /package/dist/chunks/{entry-S4CXG3N4.js.map → entry-FHD4KBSM.js.map} +0 -0
- /package/dist/chunks/{eval-7JFPRH2Z.js.map → eval-4O37Q6RK.js.map} +0 -0
- /package/dist/chunks/{exec-JKYNWA4S.js.map → exec-5YDDQJBB.js.map} +0 -0
- /package/dist/chunks/{home-TD3AGJSX.js.map → home-33E6UFR7.js.map} +0 -0
- /package/dist/chunks/{host-MRXWMOJP.js.map → host-TBRXV7RU.js.map} +0 -0
- /package/dist/chunks/{host-queries-77N4N7XL.js.map → host-queries-FKIZCZ4O.js.map} +0 -0
- /package/dist/chunks/{learn-EEKKNN7B.js.map → learn-CXRBVPKA.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-DGQW6ZJ3.js.map → learn-builtin-OXXSTVYX.js.map} +0 -0
- /package/dist/chunks/{lifecycle-5QSLVTIZ.js.map → lifecycle-PTN5UDGT.js.map} +0 -0
- /package/dist/chunks/{list-G525YHRP.js.map → list-KUGDZNCZ.js.map} +0 -0
- /package/dist/chunks/{live-Z4LVRXQJ.js.map → live-PJUMYJWV.js.map} +0 -0
- /package/dist/chunks/{login-V6COXMPE.js.map → login-PI2CVLAL.js.map} +0 -0
- /package/dist/chunks/{logs-NM5XSBZ2.js.map → logs-YPFTNWHJ.js.map} +0 -0
- /package/dist/chunks/{message-command-BBICY3ZH.js.map → message-command-GNTXQWWP.js.map} +0 -0
- /package/dist/chunks/{open-EO6BERGC.js.map → open-LQFYXJGO.js.map} +0 -0
- /package/dist/chunks/{operator-tools-EKYFPXNP.js.map → operator-tools-ODPPKZYO.js.map} +0 -0
- /package/dist/chunks/{output-schema-4QBMG2V3.js.map → output-schema-S5UX6KD4.js.map} +0 -0
- /package/dist/chunks/{pal-GGEP7A3C.js.map → pal-PQP724JL.js.map} +0 -0
- /package/dist/chunks/{peers-XABPXXYU.js.map → peers-64WUYNO7.js.map} +0 -0
- /package/dist/chunks/{peers-NEFTEGGH.js.map → peers-WF73HX4C.js.map} +0 -0
- /package/dist/chunks/{providers-UR7PTSAU.js.map → providers-SSGFWJ47.js.map} +0 -0
- /package/dist/chunks/{pty-E6LOL7FL.js.map → pty-CHKQPTIJ.js.map} +0 -0
- /package/dist/chunks/{resume-YVCJLRJM.js.map → resume-32TSOW5K.js.map} +0 -0
- /package/dist/chunks/{resume-command-SK376EH7.js.map → resume-command-PDAWC5OQ.js.map} +0 -0
- /package/dist/chunks/{schedule-LMZSBVLA.js.map → schedule-DOUPTTHG.js.map} +0 -0
- /package/dist/chunks/{service-LXGEJ7SQ.js.map → service-LQRXWFGJ.js.map} +0 -0
- /package/dist/chunks/{skills-LKMGHUON.js.map → skills-YVKSFMOJ.js.map} +0 -0
- /package/dist/chunks/{start-check-VOPUK6AT.js.map → start-check-O4VN7KQQ.js.map} +0 -0
- /package/dist/chunks/{startup-failure-EICFG4GV.js.map → startup-failure-MX3RDAVD.js.map} +0 -0
- /package/dist/chunks/{state-JOIMBJVN.js.map → state-SAFS7RR2.js.map} +0 -0
- /package/dist/chunks/{store-22R5VPTI.js.map → store-5N2RJTS7.js.map} +0 -0
- /package/dist/chunks/{store-CJQTON4J.js.map → store-DZQLPD24.js.map} +0 -0
- /package/dist/chunks/{store-JPIWK3PM.js.map → store-QT2Z3BMR.js.map} +0 -0
- /package/dist/chunks/{store-ZZNUM66U.js.map → store-RNO4PTEJ.js.map} +0 -0
- /package/dist/chunks/{upgrade-WX6LVKEZ.js.map → upgrade-Z5LLWZN4.js.map} +0 -0
- /package/dist/chunks/{workspaces-LSNFONMM.js.map → workspaces-2BQK5RIW.js.map} +0 -0
- /package/dist/chunks/{worktree-FPCQFFLT.js.map → worktree-4LIJQ2FK.js.map} +0 -0
|
@@ -2,30 +2,35 @@ 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-BH34ASBZ.js";
|
|
6
|
+
import {
|
|
7
|
+
readUserMcpServers,
|
|
8
|
+
summarizeUserMcpServer
|
|
9
|
+
} from "./chunk-RSP6O5OB.js";
|
|
6
10
|
import {
|
|
7
11
|
decideHeadlessTrust
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YYVKM3Z6.js";
|
|
9
13
|
import {
|
|
10
14
|
conversationMarkdown,
|
|
11
15
|
lookupPr,
|
|
16
|
+
outcomeLine,
|
|
12
17
|
runCommand,
|
|
13
18
|
withKeyNote
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-QPG5YTSB.js";
|
|
20
|
+
import "./chunk-24PL6U4S.js";
|
|
16
21
|
import "./chunk-JETLWXUE.js";
|
|
17
22
|
import {
|
|
18
23
|
deleteUserConfigValue,
|
|
19
24
|
setUserConfigValue,
|
|
20
25
|
userConfigPath
|
|
21
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PGMKME64.js";
|
|
22
27
|
import {
|
|
23
28
|
HeadlessScreen
|
|
24
29
|
} from "./chunk-GWGIAZLZ.js";
|
|
25
30
|
import "./chunk-6HTC5TQ3.js";
|
|
26
31
|
import {
|
|
27
32
|
launchRefusal
|
|
28
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PVWX3NVL.js";
|
|
29
34
|
import {
|
|
30
35
|
cliPalComputerStatus,
|
|
31
36
|
cliPalScreen,
|
|
@@ -38,21 +43,21 @@ import {
|
|
|
38
43
|
startCliPalComputer,
|
|
39
44
|
stopCliPalComputer,
|
|
40
45
|
takeOverCliPalComputer
|
|
41
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4H5G75XK.js";
|
|
42
47
|
import {
|
|
43
48
|
palSessionEnvironment
|
|
44
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-2CSVXV4L.js";
|
|
45
50
|
import {
|
|
46
51
|
cliPalActivitySubscriptionPolicy,
|
|
47
52
|
cliPalActivitySubscriptionStore,
|
|
48
53
|
cliPalCommunicationPolicy,
|
|
49
54
|
cliPalCommunicationStore
|
|
50
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-DRTTUNNF.js";
|
|
51
56
|
import {
|
|
52
57
|
claimPalConversation,
|
|
53
58
|
listPalConversations,
|
|
54
59
|
palConversationBinding
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-WWVFL5LP.js";
|
|
56
61
|
import {
|
|
57
62
|
FileCheckpointStore,
|
|
58
63
|
PluginSettingsStore,
|
|
@@ -64,34 +69,34 @@ import {
|
|
|
64
69
|
sessionLogCheckpointView,
|
|
65
70
|
validateComposerSendSettings,
|
|
66
71
|
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-
|
|
72
|
+
} from "./chunk-IX4YFVK5.js";
|
|
73
|
+
import "./chunk-NUYEA2GW.js";
|
|
74
|
+
import "./chunk-FP5BDOUA.js";
|
|
75
|
+
import "./chunk-K7B7Z4OK.js";
|
|
76
|
+
import "./chunk-JREHAUBD.js";
|
|
77
|
+
import "./chunk-AXXQTHGT.js";
|
|
78
|
+
import "./chunk-7Q6ENTCV.js";
|
|
79
|
+
import "./chunk-EM4U3UY4.js";
|
|
80
|
+
import "./chunk-VAOGSS7C.js";
|
|
81
|
+
import "./chunk-WLQ4EA3C.js";
|
|
77
82
|
import "./chunk-WHODOMXA.js";
|
|
78
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-TZLJJJRB.js";
|
|
79
84
|
import "./chunk-YOWYTBJS.js";
|
|
80
85
|
import "./chunk-2IPDTDB3.js";
|
|
81
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-5GVVNO7E.js";
|
|
82
87
|
import "./chunk-IYUW2RAA.js";
|
|
83
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-G6HVF7BU.js";
|
|
84
89
|
import "./chunk-ZWA2JRJV.js";
|
|
85
90
|
import "./chunk-NUGPLXVK.js";
|
|
86
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-COF6PKWN.js";
|
|
87
92
|
import {
|
|
88
93
|
listProviderConnections,
|
|
89
94
|
removeProviderKey,
|
|
90
95
|
saveProviderKey,
|
|
91
96
|
typedKeyProvider
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
97
|
+
} from "./chunk-VCQOTSMI.js";
|
|
98
|
+
import "./chunk-OV6445PV.js";
|
|
99
|
+
import "./chunk-A75MGD3U.js";
|
|
95
100
|
import {
|
|
96
101
|
archiveConversation,
|
|
97
102
|
closeSessions,
|
|
@@ -106,11 +111,12 @@ import {
|
|
|
106
111
|
openSessionScope,
|
|
107
112
|
openSessions,
|
|
108
113
|
readConversationFacts,
|
|
114
|
+
readConversationRecords,
|
|
109
115
|
refreshIndex,
|
|
110
116
|
setTitle,
|
|
111
117
|
unarchiveConversation
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import "./chunk-
|
|
118
|
+
} from "./chunk-J65LJILX.js";
|
|
119
|
+
import "./chunk-HRA64D54.js";
|
|
114
120
|
import {
|
|
115
121
|
cliProjectRoot
|
|
116
122
|
} from "./chunk-JQIBPPOL.js";
|
|
@@ -123,14 +129,14 @@ import {
|
|
|
123
129
|
listPals,
|
|
124
130
|
palAtWorkspace,
|
|
125
131
|
updatePal
|
|
126
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-ZS64S2KR.js";
|
|
127
133
|
import {
|
|
128
134
|
isTrusted,
|
|
129
135
|
isTrustedAtStateRoot,
|
|
130
136
|
trustDir,
|
|
131
137
|
untrustDir
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
138
|
+
} from "./chunk-QQ7MRKPH.js";
|
|
139
|
+
import "./chunk-XLYTLAMO.js";
|
|
134
140
|
import {
|
|
135
141
|
flushCompileCacheWhenIdle
|
|
136
142
|
} from "./chunk-SOIP273Z.js";
|
|
@@ -141,12 +147,16 @@ import {
|
|
|
141
147
|
CLI_VERSION
|
|
142
148
|
} from "./chunk-HE7WUOX2.js";
|
|
143
149
|
import "./chunk-GNBMKISG.js";
|
|
144
|
-
import "./chunk-
|
|
150
|
+
import "./chunk-DSLM4DF6.js";
|
|
145
151
|
import "./chunk-OH6TB27S.js";
|
|
146
152
|
import {
|
|
147
153
|
ConfigValueError,
|
|
154
|
+
approveShownMcpServers,
|
|
155
|
+
fingerprintMcpServer,
|
|
156
|
+
loadConfig,
|
|
157
|
+
pendingProjectMcpServers,
|
|
148
158
|
readConfigKey
|
|
149
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-M62PUTES.js";
|
|
150
160
|
import {
|
|
151
161
|
require_dist
|
|
152
162
|
} from "./chunk-KONYGNG6.js";
|
|
@@ -155,10 +165,10 @@ import {
|
|
|
155
165
|
compilePermissionLayers,
|
|
156
166
|
permissionLayersOf,
|
|
157
167
|
warnLegacyMcpPermissionNames
|
|
158
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-663XNTZ7.js";
|
|
159
169
|
import {
|
|
160
170
|
cliLogger
|
|
161
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-LD5TYFAP.js";
|
|
162
172
|
import "./chunk-SIG7WHBU.js";
|
|
163
173
|
import "./chunk-LVVD32KJ.js";
|
|
164
174
|
import "./chunk-6PWRKA5T.js";
|
|
@@ -175,28 +185,28 @@ import {
|
|
|
175
185
|
loadHostPty,
|
|
176
186
|
processesCarrying,
|
|
177
187
|
quietConptyHelper
|
|
178
|
-
} from "./chunk-
|
|
179
|
-
import "./chunk-
|
|
188
|
+
} from "./chunk-MAF7TNYC.js";
|
|
189
|
+
import "./chunk-DURIB5QE.js";
|
|
180
190
|
import {
|
|
181
191
|
automaticKind,
|
|
182
192
|
canSelectModel,
|
|
183
193
|
discoverProviders,
|
|
184
194
|
isAnonymousZen
|
|
185
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-LM37ASZT.js";
|
|
186
196
|
import {
|
|
187
197
|
isOfferableModel
|
|
188
198
|
} from "./chunk-4QIWRKJO.js";
|
|
189
199
|
import "./chunk-G6YSAHKC.js";
|
|
190
200
|
import "./chunk-KTPFUCRU.js";
|
|
191
201
|
import "./chunk-RI2KAZJO.js";
|
|
192
|
-
import "./chunk-
|
|
193
|
-
import "./chunk-
|
|
194
|
-
import "./chunk-
|
|
202
|
+
import "./chunk-S2U2D4UF.js";
|
|
203
|
+
import "./chunk-PUYFQ7HR.js";
|
|
204
|
+
import "./chunk-YFOTGPY7.js";
|
|
195
205
|
import {
|
|
196
206
|
canonicalProjectPath
|
|
197
207
|
} from "./chunk-JORONMD3.js";
|
|
198
|
-
import "./chunk-
|
|
199
|
-
import "./chunk-
|
|
208
|
+
import "./chunk-VD6DYY42.js";
|
|
209
|
+
import "./chunk-OGGKA2PQ.js";
|
|
200
210
|
import {
|
|
201
211
|
ACPServer,
|
|
202
212
|
DiskLogMedium,
|
|
@@ -226,11 +236,12 @@ import {
|
|
|
226
236
|
loadPluginManifest,
|
|
227
237
|
mustAskPerson,
|
|
228
238
|
openSessionIndex,
|
|
239
|
+
parseTurnOutcome,
|
|
229
240
|
resolveNamzuHome,
|
|
230
241
|
resolveWithinAnyReal,
|
|
231
242
|
resolveWithinReal,
|
|
232
243
|
selectAssistantText
|
|
233
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-MJJAKWHU.js";
|
|
234
245
|
import {
|
|
235
246
|
__name,
|
|
236
247
|
__toESM
|
|
@@ -3720,11 +3731,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
|
|
|
3720
3731
|
const pending = selections.get(id2);
|
|
3721
3732
|
if (pending && pending.engine !== engine)
|
|
3722
3733
|
throw new Error("The conversation engine cannot change.");
|
|
3723
|
-
|
|
3724
|
-
(record2) => record2.type === "session_updated" && record2.harness?.kind === "dispatch-prepared" && record2.harness.model
|
|
3725
|
-
);
|
|
3726
|
-
const model = latest?.type === "session_updated" && latest.harness?.kind === "dispatch-prepared" ? latest.harness.model : void 0;
|
|
3727
|
-
return pending ?? { engine, model: model ?? binding.initialModel };
|
|
3734
|
+
return pending ?? { engine, model: saved.latestDispatchModel ?? binding.initialModel };
|
|
3728
3735
|
}
|
|
3729
3736
|
if (saved) {
|
|
3730
3737
|
if (selections.has(id2))
|
|
@@ -4175,16 +4182,9 @@ async function readProviderRetryStatus(state, sessionId) {
|
|
|
4175
4182
|
const active = facts.activeTurn;
|
|
4176
4183
|
if (!active) return {};
|
|
4177
4184
|
if (!active.paused) return { notice: "Wait for this conversation\u2019s active turn to settle." };
|
|
4178
|
-
const pause =
|
|
4179
|
-
if (!pause
|
|
4180
|
-
|
|
4181
|
-
const pending = /* @__PURE__ */ new Set();
|
|
4182
|
-
for (const record2 of facts.records) {
|
|
4183
|
-
if (record2.type === "decision_requested" && record2.turnId === active.turnId)
|
|
4184
|
-
pending.add(record2.decisionId);
|
|
4185
|
-
if (record2.type === "decision_resolved" || record2.type === "decision_expired")
|
|
4186
|
-
pending.delete(record2.decisionId);
|
|
4187
|
-
}
|
|
4185
|
+
const pause = facts.latestPause(active.turnId);
|
|
4186
|
+
if (!pause) throw new Error("This paused turn has no durable pause record.");
|
|
4187
|
+
const pending = facts.pendingDecisions(active.turnId);
|
|
4188
4188
|
const closable = !pause.handoff && pause.providerError && pending.size === 0 ? { closable: true } : {};
|
|
4189
4189
|
const blocked = /* @__PURE__ */ __name((notice) => ({ notice, ...closable }), "blocked");
|
|
4190
4190
|
if (pause.handoff || pause.failure?.retryable !== true || !pause.providerError || !["network", "server", "throttle"].includes(pause.providerError.kind))
|
|
@@ -4231,13 +4231,9 @@ async function readProviderRetryStatus(state, sessionId) {
|
|
|
4231
4231
|
return blocked(
|
|
4232
4232
|
"This turn\u2019s original token allowance is exhausted. Retry cannot change that allowance."
|
|
4233
4233
|
);
|
|
4234
|
-
const started = facts.
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
const resumed = facts.records.some(
|
|
4238
|
-
(record2) => record2.type === "turn_resuming" && record2.turnId === active.turnId
|
|
4239
|
-
);
|
|
4240
|
-
const original = !resumed && started?.type === "turn_started" && started.config.model && pause.providerError ? { provider: pause.providerError.providerId, model: started.config.model } : void 0;
|
|
4234
|
+
const started = facts.startedTurn(active.turnId);
|
|
4235
|
+
const resumed = facts.wasResumed(active.turnId);
|
|
4236
|
+
const original = !resumed && started?.model && pause.providerError ? { provider: pause.providerError.providerId, model: started.model } : void 0;
|
|
4241
4237
|
return {
|
|
4242
4238
|
retry: {
|
|
4243
4239
|
turnId: active.turnId,
|
|
@@ -4700,6 +4696,14 @@ var SETTING_DESCRIPTORS = [
|
|
|
4700
4696
|
pick("structured", "salience"),
|
|
4701
4697
|
{ defaultText: "salience" }
|
|
4702
4698
|
),
|
|
4699
|
+
d(
|
|
4700
|
+
"compaction.softTargetHeadroom",
|
|
4701
|
+
"agent",
|
|
4702
|
+
"Room left after shortening",
|
|
4703
|
+
"How much further below half the window one round of shortening goes, as a fraction of the window. A larger value shortens less often. Advanced.",
|
|
4704
|
+
num(0, 1, "of the window"),
|
|
4705
|
+
{ defaultText: "0" }
|
|
4706
|
+
),
|
|
4703
4707
|
d(
|
|
4704
4708
|
"compaction.autoCompactWindowTokens",
|
|
4705
4709
|
"agent",
|
|
@@ -5320,6 +5324,72 @@ function writeSetting(change, opts = {}) {
|
|
|
5320
5324
|
}
|
|
5321
5325
|
__name(writeSetting, "writeSetting");
|
|
5322
5326
|
|
|
5327
|
+
// src/integrations/mcp/server-listing.ts
|
|
5328
|
+
var ONE_LINE = /[\r\n\t]+/g;
|
|
5329
|
+
var clip = /* @__PURE__ */ __name((value, max) => value.replace(ONE_LINE, " ").trim().slice(0, max), "clip");
|
|
5330
|
+
function detailOf(name, spec) {
|
|
5331
|
+
const summary = summarizeUserMcpServer({ name, spec });
|
|
5332
|
+
const text4 = summary.transport === "http" ? summary.endpoint : summary.command;
|
|
5333
|
+
return text4 ? clip(text4, 200) : void 0;
|
|
5334
|
+
}
|
|
5335
|
+
__name(detailOf, "detailOf");
|
|
5336
|
+
function listMcpServers(options) {
|
|
5337
|
+
const { cwd, live } = options;
|
|
5338
|
+
let effective;
|
|
5339
|
+
let declared;
|
|
5340
|
+
let pending;
|
|
5341
|
+
let userNames;
|
|
5342
|
+
try {
|
|
5343
|
+
effective = loadConfig({ cwd }).mcpServers ?? {};
|
|
5344
|
+
const split = pendingProjectMcpServers({ cwd });
|
|
5345
|
+
declared = split.declared;
|
|
5346
|
+
pending = split.pending;
|
|
5347
|
+
userNames = new Set(readUserMcpServers().map((entry) => entry.name));
|
|
5348
|
+
} catch (error) {
|
|
5349
|
+
return {
|
|
5350
|
+
servers: [],
|
|
5351
|
+
error: clip(error instanceof Error ? error.message : "The settings could not be read.", 300)
|
|
5352
|
+
};
|
|
5353
|
+
}
|
|
5354
|
+
const failures = /* @__PURE__ */ new Map();
|
|
5355
|
+
for (const item of live.failed) {
|
|
5356
|
+
const now = effective[item.name];
|
|
5357
|
+
if (item.config !== void 0 && item.config !== JSON.stringify(now ?? null)) continue;
|
|
5358
|
+
failures.set(item.name, item.reason);
|
|
5359
|
+
}
|
|
5360
|
+
const connected = new Set(live.connected);
|
|
5361
|
+
const rows = [];
|
|
5362
|
+
const origin = /* @__PURE__ */ __name((name) => Object.hasOwn(declared, name) && !userNames.has(name) ? "project-file" : userNames.has(name) ? "your-config" : "this-project", "origin");
|
|
5363
|
+
for (const [name, spec] of Object.entries(effective)) {
|
|
5364
|
+
const detail = detailOf(name, spec);
|
|
5365
|
+
const failure = failures.get(name);
|
|
5366
|
+
rows.push({
|
|
5367
|
+
name,
|
|
5368
|
+
origin: origin(name),
|
|
5369
|
+
state: failure !== void 0 ? "failed" : connected.has(name) ? "connected" : "idle",
|
|
5370
|
+
...failure !== void 0 ? { reason: clip(failure, 300) } : {},
|
|
5371
|
+
...detail ? { detail } : {}
|
|
5372
|
+
});
|
|
5373
|
+
}
|
|
5374
|
+
for (const name of pending) {
|
|
5375
|
+
if (rows.some((row2) => row2.name === name)) continue;
|
|
5376
|
+
const detail = detailOf(name, declared[name]);
|
|
5377
|
+
rows.push({
|
|
5378
|
+
name,
|
|
5379
|
+
origin: "project-file",
|
|
5380
|
+
state: "waiting",
|
|
5381
|
+
fingerprint: fingerprintMcpServer(declared[name]),
|
|
5382
|
+
...detail ? { detail } : {}
|
|
5383
|
+
});
|
|
5384
|
+
}
|
|
5385
|
+
return { servers: rows };
|
|
5386
|
+
}
|
|
5387
|
+
__name(listMcpServers, "listMcpServers");
|
|
5388
|
+
function approveListedMcpServers(cwd, shown) {
|
|
5389
|
+
return approveShownMcpServers(resolveNamzuHome(), cwd, shown);
|
|
5390
|
+
}
|
|
5391
|
+
__name(approveListedMcpServers, "approveListedMcpServers");
|
|
5392
|
+
|
|
5323
5393
|
// src/pals/desktop-communication.ts
|
|
5324
5394
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
5325
5395
|
import { lstatSync, realpathSync as realpathSync2 } from "node:fs";
|
|
@@ -6096,7 +6166,67 @@ async function projectPr(cwd, run = runCommand) {
|
|
|
6096
6166
|
}
|
|
6097
6167
|
__name(projectPr, "projectPr");
|
|
6098
6168
|
|
|
6169
|
+
// src/commands/desktop-outcome-feed.ts
|
|
6170
|
+
var OUTCOME_NOTIFICATION = "namzu/session/outcome";
|
|
6171
|
+
function outcomeNotification(sessionId, event) {
|
|
6172
|
+
if (event.type !== "turn_completed" && event.type !== "turn_failed") return void 0;
|
|
6173
|
+
const outcome = event.settlement.outcome;
|
|
6174
|
+
if (!outcome) return void 0;
|
|
6175
|
+
const line = outcomeLine(outcome);
|
|
6176
|
+
return {
|
|
6177
|
+
sessionId,
|
|
6178
|
+
turnId: event.turnId,
|
|
6179
|
+
verdict: outcome.verdict,
|
|
6180
|
+
...line ? { line } : {},
|
|
6181
|
+
changed: outcome.changes.total,
|
|
6182
|
+
outcome
|
|
6183
|
+
};
|
|
6184
|
+
}
|
|
6185
|
+
__name(outcomeNotification, "outcomeNotification");
|
|
6186
|
+
function announceOutcome(sessionId, event, notify) {
|
|
6187
|
+
const body = outcomeNotification(sessionId, event);
|
|
6188
|
+
if (!body) return;
|
|
6189
|
+
try {
|
|
6190
|
+
notify(OUTCOME_NOTIFICATION, { ...body });
|
|
6191
|
+
} catch {
|
|
6192
|
+
}
|
|
6193
|
+
}
|
|
6194
|
+
__name(announceOutcome, "announceOutcome");
|
|
6195
|
+
function savedTurnOutcome(body) {
|
|
6196
|
+
const outcome = parseTurnOutcome(body);
|
|
6197
|
+
if (!outcome) return void 0;
|
|
6198
|
+
const line = outcomeLine(outcome);
|
|
6199
|
+
return {
|
|
6200
|
+
verdict: outcome.verdict,
|
|
6201
|
+
...line ? { line } : {},
|
|
6202
|
+
changed: outcome.changes.total
|
|
6203
|
+
};
|
|
6204
|
+
}
|
|
6205
|
+
__name(savedTurnOutcome, "savedTurnOutcome");
|
|
6206
|
+
|
|
6099
6207
|
// src/commands/desktop-host.ts
|
|
6208
|
+
var SEARCH_QUERY_MIN = 2;
|
|
6209
|
+
var SEARCH_QUERY_MAX = 200;
|
|
6210
|
+
var SEARCH_EVIDENCE_LIMIT = 300;
|
|
6211
|
+
function searchExcerpt(excerpt, query) {
|
|
6212
|
+
const flat = excerpt.replace(/\s+/g, " ").trim();
|
|
6213
|
+
const at = flat.toLowerCase().indexOf(query.toLowerCase());
|
|
6214
|
+
if (at < 0) return flat.length > 140 ? `${flat.slice(0, 139)}\u2026` : flat;
|
|
6215
|
+
let start = Math.max(0, at - 40);
|
|
6216
|
+
if (start > 0) {
|
|
6217
|
+
const space = flat.indexOf(" ", start);
|
|
6218
|
+
if (space !== -1 && space < at) start = space + 1;
|
|
6219
|
+
}
|
|
6220
|
+
const end = Math.min(flat.length, at + query.length + 80);
|
|
6221
|
+
return `${start > 0 ? "\u2026" : ""}${flat.slice(start, end)}${end < flat.length ? "\u2026" : ""}`;
|
|
6222
|
+
}
|
|
6223
|
+
__name(searchExcerpt, "searchExcerpt");
|
|
6224
|
+
function searchHitExcerpt(hit, query) {
|
|
6225
|
+
if (hit.source === "tool_completed" || hit.source.endsWith(":tool"))
|
|
6226
|
+
return hit.toolName ? `Found in what \u201C${hit.toolName}\u201D returned` : "Found in what a tool returned";
|
|
6227
|
+
return searchExcerpt(hit.excerpt, query);
|
|
6228
|
+
}
|
|
6229
|
+
__name(searchHitExcerpt, "searchHitExcerpt");
|
|
6100
6230
|
function text3(params, key, max = 400) {
|
|
6101
6231
|
const value = params[key];
|
|
6102
6232
|
if (typeof value !== "string" || !value.trim() || value.length > max)
|
|
@@ -6430,7 +6560,9 @@ function historyWork(records, rows) {
|
|
|
6430
6560
|
} else if ("turnId" in record2 && typeof record2.turnId === "string") {
|
|
6431
6561
|
const turn = turns.get(record2.turnId);
|
|
6432
6562
|
if (!turn) continue;
|
|
6433
|
-
if (record2.type === "
|
|
6563
|
+
if (record2.type === "turn_outcome_recorded") {
|
|
6564
|
+
turn.outcome = savedTurnOutcome(record2.outcome);
|
|
6565
|
+
} else if (record2.type === "turn_paused") {
|
|
6434
6566
|
turn.status = "paused";
|
|
6435
6567
|
turn.reason = "paused";
|
|
6436
6568
|
} else if (record2.type === "turn_resuming") {
|
|
@@ -6929,6 +7061,39 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
6929
7061
|
if (currentPal) return listPalConversations(cwd, currentPal.id);
|
|
6930
7062
|
return conversationRows(state, await listRecent(state, 100));
|
|
6931
7063
|
}), "namzu/conversations/list"),
|
|
7064
|
+
/**
|
|
7065
|
+
* Full-text search over what a conversation said and did (replies and tool output), through
|
|
7066
|
+
* the session index. One hit per conversation, newest index order, a short excerpt each.
|
|
7067
|
+
* Nothing here is logged: the query and the excerpts are conversation text.
|
|
7068
|
+
*/
|
|
7069
|
+
"namzu/conversations/search": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7070
|
+
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "query" && key !== "limit"))
|
|
7071
|
+
throw new Error("Invalid conversation search request.");
|
|
7072
|
+
const query = text3(params, "query", SEARCH_QUERY_MAX).trim();
|
|
7073
|
+
const limit = params.limit === void 0 ? 20 : params.limit;
|
|
7074
|
+
if (typeof limit !== "number" || !Number.isInteger(limit) || limit < 1 || limit > 50)
|
|
7075
|
+
throw new Error("A search returns between 1 and 50 conversations.");
|
|
7076
|
+
if (query.length < SEARCH_QUERY_MIN) return { hits: [] };
|
|
7077
|
+
return withState(async (state) => {
|
|
7078
|
+
if (pal()) return { hits: [] };
|
|
7079
|
+
const known = new Set((await listRecent(state, 100)).map((row2) => String(row2.id)));
|
|
7080
|
+
const found = await state.index.searchEvidence({
|
|
7081
|
+
query,
|
|
7082
|
+
caseSensitive: false,
|
|
7083
|
+
limit: SEARCH_EVIDENCE_LIMIT
|
|
7084
|
+
});
|
|
7085
|
+
const hits = [];
|
|
7086
|
+
const seen = /* @__PURE__ */ new Set();
|
|
7087
|
+
for (const hit of found) {
|
|
7088
|
+
const id2 = String(hit.sessionId);
|
|
7089
|
+
if (seen.has(id2) || !known.has(id2)) continue;
|
|
7090
|
+
seen.add(id2);
|
|
7091
|
+
hits.push({ sessionId: id2, excerpt: searchHitExcerpt(hit, query) });
|
|
7092
|
+
if (hits.length >= limit) break;
|
|
7093
|
+
}
|
|
7094
|
+
return { hits };
|
|
7095
|
+
});
|
|
7096
|
+
}, "namzu/conversations/search"),
|
|
6932
7097
|
"namzu/conversations/archived": /* @__PURE__ */ __name(async (params = {}) => {
|
|
6933
7098
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
6934
7099
|
throw new Error("Invalid archived conversations request.");
|
|
@@ -7129,7 +7294,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7129
7294
|
return withState(async (state) => {
|
|
7130
7295
|
const id2 = asSessionId(await ownedSessionIn(params, state));
|
|
7131
7296
|
await setTitle(state, id2, title2);
|
|
7132
|
-
const facts = await
|
|
7297
|
+
const facts = await readConversationRecords(state, id2);
|
|
7133
7298
|
return { title: facts ? displayTitleOf(facts) : title2.trim() };
|
|
7134
7299
|
});
|
|
7135
7300
|
}, "namzu/conversations/rename"),
|
|
@@ -7160,6 +7325,30 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7160
7325
|
if (!isTrusted(cwd)) return null;
|
|
7161
7326
|
return projectGit(cwd);
|
|
7162
7327
|
}, "namzu/project/git"),
|
|
7328
|
+
/** The tool servers this project knows and where each stands; reads files, starts nothing. */
|
|
7329
|
+
"namzu/mcp/servers": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7330
|
+
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
7331
|
+
throw new Error("Invalid tool servers request.");
|
|
7332
|
+
if (!isTrusted(cwd) || pal()) return { servers: [] };
|
|
7333
|
+
return listMcpServers({
|
|
7334
|
+
cwd,
|
|
7335
|
+
live: runtime.mcpStatus?.(cwd) ?? { connected: [], failed: [] }
|
|
7336
|
+
});
|
|
7337
|
+
}, "namzu/mcp/servers"),
|
|
7338
|
+
/** Approves servers `.mcp.json` declared, as they were listed, the way `namzu mcp approve` does. */
|
|
7339
|
+
"namzu/mcp/approve": /* @__PURE__ */ __name(async (params) => {
|
|
7340
|
+
if (!params || typeof params !== "object" || Object.keys(params).some((key) => key !== "servers"))
|
|
7341
|
+
throw new Error("Approving tool servers names only the servers.");
|
|
7342
|
+
if (!isTrusted(cwd) || pal()) throw new Error("Trust this folder first.");
|
|
7343
|
+
const shown = params.servers;
|
|
7344
|
+
if (!Array.isArray(shown) || shown.length === 0 || shown.length > 64)
|
|
7345
|
+
throw new Error("Choose the tool servers to approve.");
|
|
7346
|
+
const checked = shown.map((item) => {
|
|
7347
|
+
const row2 = item && typeof item === "object" ? item : {};
|
|
7348
|
+
return { name: text3(row2, "name", 64), fingerprint: text3(row2, "fingerprint", 128) };
|
|
7349
|
+
});
|
|
7350
|
+
return { approved: approveListedMcpServers(cwd, checked) };
|
|
7351
|
+
}, "namzu/mcp/approve"),
|
|
7163
7352
|
"namzu/project/pr": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7164
7353
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
7165
7354
|
throw new Error("Invalid project pull request request.");
|
|
@@ -7719,6 +7908,14 @@ var DEFAULT_RUNTIME_DEPS = {
|
|
|
7719
7908
|
};
|
|
7720
7909
|
function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeOptions = {}) {
|
|
7721
7910
|
const records = /* @__PURE__ */ new Map();
|
|
7911
|
+
const mcpFailures = /* @__PURE__ */ new Map();
|
|
7912
|
+
const mcpKey = /* @__PURE__ */ __name((dir) => {
|
|
7913
|
+
try {
|
|
7914
|
+
return canonicalProjectPath(dir);
|
|
7915
|
+
} catch {
|
|
7916
|
+
return dir;
|
|
7917
|
+
}
|
|
7918
|
+
}, "mcpKey");
|
|
7722
7919
|
const liveInputs = /* @__PURE__ */ new Map();
|
|
7723
7920
|
const constructing = /* @__PURE__ */ new Map();
|
|
7724
7921
|
const selections = /* @__PURE__ */ new Map();
|
|
@@ -7923,10 +8120,19 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
7923
8120
|
throw new Error(hint);
|
|
7924
8121
|
}
|
|
7925
8122
|
if (candidate.mcpFailed.length > 0) {
|
|
8123
|
+
mcpFailures.set(
|
|
8124
|
+
mcpKey(cwd),
|
|
8125
|
+
candidate.mcpFailed.map(({ name, reason }) => ({
|
|
8126
|
+
name,
|
|
8127
|
+
reason,
|
|
8128
|
+
config: JSON.stringify(projectCtx.config.mcpServers?.[name] ?? null)
|
|
8129
|
+
}))
|
|
8130
|
+
);
|
|
7926
8131
|
const failure = candidate.mcpFailed.map((entry) => `tool server "${entry.name}" is not available: ${entry.reason}`).join("\n");
|
|
7927
8132
|
await closeCandidate();
|
|
7928
8133
|
throw new Error(failure);
|
|
7929
8134
|
}
|
|
8135
|
+
mcpFailures.delete(mcpKey(cwd));
|
|
7930
8136
|
for (const [name, enabled] of pluginOverrides.get(sessionId) ?? []) {
|
|
7931
8137
|
if (!candidate.plugins?.list().some((plugin) => plugin.name === name)) {
|
|
7932
8138
|
throw new Error(
|
|
@@ -8156,11 +8362,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8156
8362
|
);
|
|
8157
8363
|
assertModeAllowed(record2, settings.permissionMode);
|
|
8158
8364
|
const facts = await readConversationFacts(record2.conversations, target.sessionId);
|
|
8159
|
-
const started = facts?.
|
|
8160
|
-
|
|
8161
|
-
)
|
|
8162
|
-
const pause = [...facts?.records ?? []].reverse().find((row2) => row2.type === "turn_paused" && row2.turnId === turnId);
|
|
8163
|
-
if (started?.type !== "turn_started" || !started.config.model || pause?.type !== "turn_paused" || !pause.providerError)
|
|
8365
|
+
const started = facts?.startedTurn(turnId);
|
|
8366
|
+
const pause = facts?.latestPause(turnId);
|
|
8367
|
+
if (!started?.model || !pause?.providerError)
|
|
8164
8368
|
throw new Error("The original provider and model cannot be verified for this retry.");
|
|
8165
8369
|
if (!record2.model) throw new Error("The selected model cannot be verified for this retry.");
|
|
8166
8370
|
const routedEvent = /* @__PURE__ */ __name((event) => {
|
|
@@ -8432,8 +8636,8 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8432
8636
|
"The original approval settings are unavailable after reconnection. An explicit permission mode is required to retry this retained turn."
|
|
8433
8637
|
);
|
|
8434
8638
|
const facts = await readConversationFacts(state, target.sessionId);
|
|
8435
|
-
const pause =
|
|
8436
|
-
if (pause?.
|
|
8639
|
+
const pause = status.retry?.turnId ? facts?.latestPause(status.retry.turnId) : void 0;
|
|
8640
|
+
if (!pause?.providerError)
|
|
8437
8641
|
return blocked("The original provider cannot be verified for this retry.");
|
|
8438
8642
|
const lastRun = retriedOn.get(status.retry.turnId);
|
|
8439
8643
|
return lastRun && !status.retry.original ? { ...status, retry: { ...status.retry, original: lastRun } } : status;
|
|
@@ -8452,17 +8656,11 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8452
8656
|
if (!active?.paused || turnId !== void 0 && active.turnId !== turnId)
|
|
8453
8657
|
throw new Error("This conversation has no paused turn to close. Open it again.");
|
|
8454
8658
|
const pausedTurn = active.turnId;
|
|
8455
|
-
const pause =
|
|
8456
|
-
if (pause
|
|
8659
|
+
const pause = facts?.latestPause(pausedTurn);
|
|
8660
|
+
if (!pause || pause.handoff || !pause.providerError)
|
|
8457
8661
|
throw new Error("Only a turn that stopped on a provider error can be closed this way.");
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
if (row2.type === "decision_requested" && row2.turnId === pausedTurn)
|
|
8461
|
-
waiting.add(row2.decisionId);
|
|
8462
|
-
if (row2.type === "decision_resolved" || row2.type === "decision_expired")
|
|
8463
|
-
waiting.delete(row2.decisionId);
|
|
8464
|
-
}
|
|
8465
|
-
if (waiting.size) throw new Error("This turn is waiting for a decision; answer it first.");
|
|
8662
|
+
if (facts?.pendingDecisions(pausedTurn).size)
|
|
8663
|
+
throw new Error("This turn is waiting for a decision; answer it first.");
|
|
8466
8664
|
const reason = "The person continued without the reply that stopped on a provider error.";
|
|
8467
8665
|
const withdrawMessages = options?.withdrawMessages !== false;
|
|
8468
8666
|
if (record2.session.abandonTurn) {
|
|
@@ -8537,6 +8735,16 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8537
8735
|
)
|
|
8538
8736
|
});
|
|
8539
8737
|
}, "plugins"),
|
|
8738
|
+
mcpStatus: /* @__PURE__ */ __name((requestedCwd) => {
|
|
8739
|
+
const connected = /* @__PURE__ */ new Set();
|
|
8740
|
+
const key = mcpKey(requestedCwd);
|
|
8741
|
+
for (const record2 of records.values()) {
|
|
8742
|
+
if (mcpKey(record2.cwd) !== key) continue;
|
|
8743
|
+
for (const server of record2.session.mcpStatus?.().connected ?? [])
|
|
8744
|
+
connected.add(server.name);
|
|
8745
|
+
}
|
|
8746
|
+
return { connected: [...connected], failed: mcpFailures.get(key) ?? [] };
|
|
8747
|
+
}, "mcpStatus"),
|
|
8540
8748
|
setPluginEnabled: /* @__PURE__ */ __name(async (sessionId, name, enabled, cwd) => {
|
|
8541
8749
|
if (!isEntityId(sessionId, "session") || typeof name !== "string" || !name.trim() || name.length > 400 || typeof enabled !== "boolean")
|
|
8542
8750
|
throw new Error("Invalid plugin choice.");
|
|
@@ -8793,10 +9001,11 @@ __name(closeAcpResources, "closeAcpResources");
|
|
|
8793
9001
|
async function runAcpCommand(ctx, desktop = false) {
|
|
8794
9002
|
const transport = new ServerStdioTransport();
|
|
8795
9003
|
let announcingUsage = true;
|
|
9004
|
+
const announce = /* @__PURE__ */ __name((method, params) => {
|
|
9005
|
+
if (announcingUsage) void transport.send({ jsonrpc: "2.0", method, params });
|
|
9006
|
+
}, "announce");
|
|
8796
9007
|
const usageFeed = desktop ? createUsageFeed({
|
|
8797
|
-
notify:
|
|
8798
|
-
if (announcingUsage) void transport.send({ jsonrpc: "2.0", method, params });
|
|
8799
|
-
}, "notify"),
|
|
9008
|
+
notify: announce,
|
|
8800
9009
|
now: /* @__PURE__ */ __name(() => Date.now(), "now"),
|
|
8801
9010
|
schedule: /* @__PURE__ */ __name((run, ms) => {
|
|
8802
9011
|
const timer = setTimeout(run, ms);
|
|
@@ -8807,7 +9016,12 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
8807
9016
|
const runtime = withCliHarnesses(
|
|
8808
9017
|
createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
|
|
8809
9018
|
computerUse: desktop,
|
|
8810
|
-
...usageFeed ? {
|
|
9019
|
+
...usageFeed ? {
|
|
9020
|
+
observeEvent: /* @__PURE__ */ __name((id2, event) => {
|
|
9021
|
+
usageFeed.observe(id2, event);
|
|
9022
|
+
announceOutcome(id2, event, announce);
|
|
9023
|
+
}, "observeEvent")
|
|
9024
|
+
} : {}
|
|
8811
9025
|
}),
|
|
8812
9026
|
process.cwd()
|
|
8813
9027
|
);
|
|
@@ -8894,4 +9108,4 @@ export {
|
|
|
8894
9108
|
resolveAcpSession,
|
|
8895
9109
|
runAcpCommand
|
|
8896
9110
|
};
|
|
8897
|
-
//# sourceMappingURL=acp-
|
|
9111
|
+
//# sourceMappingURL=acp-WZJUKMLZ.js.map
|