@namzu/cli 41.2.1 → 41.2.2
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 +20 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-MCDCWJ45.js → acp-5RFAFTQU.js} +39 -39
- package/dist/chunks/{activity-command-AYLW5EEX.js → activity-command-XLF5EAM5.js} +12 -12
- package/dist/chunks/{add-VNM5QPTX.js → add-Z6Y5DOCM.js} +15 -15
- package/dist/chunks/{agent-4IMOBJR5.js → agent-U4NFC4DT.js} +30 -30
- package/dist/chunks/agent-session-LHOJDS75.js +59 -0
- package/dist/chunks/{archive-VXJWPZBA.js → archive-P47MRHE2.js} +10 -10
- package/dist/chunks/{bin-main-BMCDNDGC.js → bin-main-B3QOTIEH.js} +3 -3
- package/dist/chunks/{browser-7MVCQL2G.js → browser-QN24UC7K.js} +6 -6
- package/dist/chunks/{chat-M2WFCRYV.js → chat-HRORSJPH.js} +15 -15
- package/dist/chunks/{chunk-XSAS6TS2.js → chunk-25XPE4N6.js} +3 -3
- package/dist/chunks/{chunk-KEKFOEEP.js → chunk-2HDIUUMX.js} +2 -2
- package/dist/chunks/{chunk-YBOKKRHB.js → chunk-2QXVOSJM.js} +6 -6
- package/dist/chunks/{chunk-5LGZUFDJ.js → chunk-2UPDDG7V.js} +3 -3
- package/dist/chunks/{chunk-TSKCIC5T.js → chunk-2UYBHC3L.js} +2 -2
- package/dist/chunks/{chunk-2Q6PBTPY.js → chunk-2VQ475KY.js} +2 -2
- package/dist/chunks/{chunk-LETTT4ZZ.js → chunk-34L6FTQV.js} +2 -2
- package/dist/chunks/{chunk-IMFIQJM6.js → chunk-37DRD4QM.js} +3 -3
- package/dist/chunks/{chunk-IQBKDY6G.js → chunk-3OP32UHN.js} +3 -3
- package/dist/chunks/{chunk-RPKRLR3O.js → chunk-3RC4ATZI.js} +3 -3
- package/dist/chunks/{chunk-Y37JJJVY.js → chunk-4SBUXWX3.js} +6 -3
- package/dist/chunks/chunk-4SBUXWX3.js.map +6 -0
- package/dist/chunks/{chunk-DAJBZ4B7.js → chunk-4SP6H34B.js} +2 -2
- package/dist/chunks/{chunk-6FSVNUBA.js → chunk-4WWLRVYU.js} +1445 -1222
- package/dist/chunks/chunk-4WWLRVYU.js.map +6 -0
- package/dist/chunks/{chunk-DVRRRNSA.js → chunk-5XJC5G7N.js} +8 -8
- package/dist/chunks/{chunk-HV7PRPHJ.js → chunk-72CFHDKQ.js} +7 -7
- package/dist/chunks/{chunk-RI57PEYF.js → chunk-7B5YTYHY.js} +4 -4
- package/dist/chunks/{chunk-PWGJB2WA.js → chunk-A6J2VJL5.js} +4 -4
- package/dist/chunks/{chunk-AVSE45ED.js → chunk-ANUGFVZI.js} +4 -4
- package/dist/chunks/{chunk-C4CVM56Z.js → chunk-BHR2CNBZ.js} +4 -4
- package/dist/chunks/{chunk-AYCKJIVD.js → chunk-BNMFWLWH.js} +2 -2
- package/dist/chunks/{chunk-HWAPKOAW.js → chunk-C2IABASE.js} +4 -4
- package/dist/chunks/{chunk-VHXXNM6W.js → chunk-CAPC66Q6.js} +3 -3
- package/dist/chunks/{chunk-WYUJ4USW.js → chunk-CEIYJWZ2.js} +2 -2
- package/dist/chunks/{chunk-5XWYY63Z.js → chunk-CIIMESY2.js} +4 -4
- package/dist/chunks/{chunk-KDZ6GM2A.js → chunk-CLADMV2E.js} +2 -2
- package/dist/chunks/{chunk-L2MEW4AZ.js → chunk-CM2I2L4G.js} +2 -2
- package/dist/chunks/{chunk-Z2WGX7UM.js → chunk-CT23IU3D.js} +3 -3
- package/dist/chunks/{chunk-CN6EFAK5.js → chunk-D2M5K6UY.js} +2 -2
- package/dist/chunks/{chunk-YZW6H2LD.js → chunk-DHV3KMEC.js} +30 -30
- package/dist/chunks/{chunk-LRDLJTYP.js → chunk-DQKQKNDY.js} +9 -9
- package/dist/chunks/{chunk-DAUWDTZI.js → chunk-E7FQPIJB.js} +2 -2
- package/dist/chunks/{chunk-AGRFKHS2.js → chunk-G34P5PIK.js} +4 -4
- package/dist/chunks/{chunk-PXEHKMLO.js → chunk-I55BEPVH.js} +4 -4
- package/dist/chunks/{chunk-GD6LOX4A.js → chunk-J67SASGK.js} +13 -13
- package/dist/chunks/{chunk-DTNJTMWP.js → chunk-JEULHVUH.js} +193 -70
- package/dist/chunks/chunk-JEULHVUH.js.map +6 -0
- package/dist/chunks/{chunk-IBUFD2HH.js → chunk-JKXCLMMZ.js} +2 -2
- package/dist/chunks/{chunk-KTF5NW2V.js → chunk-L2GZVP5H.js} +8 -8
- package/dist/chunks/{chunk-7A5TVBGS.js → chunk-LVDRURI4.js} +2 -2
- package/dist/chunks/{chunk-VD4D37MT.js → chunk-NTPBXJMK.js} +3 -3
- package/dist/chunks/{chunk-4I5FGMVR.js → chunk-OFNGIO53.js} +2 -2
- package/dist/chunks/{chunk-7RBZS3TN.js → chunk-PKBHQFT6.js} +4 -4
- package/dist/chunks/{chunk-N457UJQL.js → chunk-QNFMVN4D.js} +2 -2
- package/dist/chunks/{chunk-QYA34YM5.js → chunk-QZYTSINZ.js} +4 -4
- package/dist/chunks/{chunk-O3CIRAYD.js → chunk-RKSYVIQX.js} +5 -5
- package/dist/chunks/{chunk-H3ALHXFV.js → chunk-RM4XZZL3.js} +12 -12
- package/dist/chunks/{chunk-UHDKUVR5.js → chunk-SEVUBJMR.js} +2 -2
- package/dist/chunks/{chunk-X4BCXODL.js → chunk-TU46IHIV.js} +5 -5
- package/dist/chunks/{chunk-IBCA2WDM.js → chunk-U2AVT6OB.js} +3 -3
- package/dist/chunks/{chunk-TZDYMWYP.js → chunk-UEXQA2UW.js} +3 -3
- package/dist/chunks/{chunk-3ZMECJLN.js → chunk-UM4ECTUS.js} +13 -13
- package/dist/chunks/{chunk-KGKRKFB7.js → chunk-VALR7WUL.js} +2 -2
- package/dist/chunks/{chunk-EYBTANG5.js → chunk-VCKNYZYH.js} +6 -6
- package/dist/chunks/{chunk-F2UUHEPY.js → chunk-WBTXYSAB.js} +2 -2
- package/dist/chunks/{chunk-2LLNCAZS.js → chunk-WJ7XYOSE.js} +2 -2
- package/dist/chunks/{chunk-5L7ZQ37R.js → chunk-WKGECHMV.js} +6 -6
- package/dist/chunks/{chunk-QWFD2LFU.js → chunk-WN7YMX22.js} +4 -4
- package/dist/chunks/{chunk-MCUV6EI7.js → chunk-Y5QV6NZK.js} +2 -2
- package/dist/chunks/{chunk-MSKJK6NZ.js → chunk-YYX7O3T2.js} +3 -3
- package/dist/chunks/{chunk-G7JH3PMC.js → chunk-Z7DJAGBK.js} +2 -2
- package/dist/chunks/{chunk-TIFSH2BH.js → chunk-ZDEFWEEI.js} +7 -7
- package/dist/chunks/{chunk-YAOKLAUU.js → chunk-ZGBKTT7X.js} +2 -2
- package/dist/chunks/{chunk-O7VKAFEU.js → chunk-ZMZR4UTZ.js} +2 -2
- package/dist/chunks/{chunk-ZPNX25RU.js → chunk-ZQRO6GGZ.js} +5 -5
- package/dist/chunks/{cli-runtime-Q6BW37I2.js → cli-runtime-7GSPWSYW.js} +10 -10
- package/dist/chunks/{commands-C5I7PC7W.js → commands-LU5AOF65.js} +5 -5
- package/dist/chunks/{crash-report-DRT5OCHO.js → crash-report-YDSO3QZP.js} +6 -6
- package/dist/chunks/{dist-2NWJAAJM.js → dist-47WGWXP5.js} +2 -2
- package/dist/chunks/{dist-PRTI23W3.js → dist-7JBTU4ZA.js} +2 -2
- package/dist/chunks/{dist-T2N57REG.js → dist-7PFXZB32.js} +2 -2
- package/dist/chunks/{dist-D7WSQBE7.js → dist-BJMHCL2F.js} +2 -2
- package/dist/chunks/{dist-5JM4UMVC.js → dist-FI4O2BO3.js} +2 -2
- package/dist/chunks/{dist-WO56PFGZ.js → dist-JWX7FPMB.js} +2 -2
- package/dist/chunks/{dist-VJC5RCYZ.js → dist-SLWBMTWO.js} +2 -2
- package/dist/chunks/{doctor-HXKU6QKJ.js → doctor-ZK3CTBDR.js} +8 -8
- package/dist/chunks/{drain-MLRRMEGK.js → drain-CVQW35OB.js} +10 -10
- package/dist/chunks/{eval-ECOECG74.js → eval-PBRDQ7GI.js} +2 -2
- package/dist/chunks/{exec-JLB6F5ZR.js → exec-ZVOPAVQC.js} +28 -28
- package/dist/chunks/{home-G65CC45B.js → home-QPIQIIAR.js} +3 -3
- package/dist/chunks/{host-queries-7LKGEBO5.js → host-queries-UUG7LHPF.js} +15 -15
- package/dist/chunks/{learn-NRY6X2K6.js → learn-AILV7XYA.js} +13 -13
- package/dist/chunks/{learn-builtin-QOM4KLT2.js → learn-builtin-I2RMG7OE.js} +16 -16
- package/dist/chunks/{lifecycle-BI2PMV4Q.js → lifecycle-ZZ5HDP6F.js} +24 -24
- package/dist/chunks/{list-QTWALT6F.js → list-TMHSX32S.js} +11 -11
- package/dist/chunks/{login-7LJG7D3F.js → login-VUIOQEA2.js} +8 -8
- package/dist/chunks/{logs-UGMCEFAZ.js → logs-QQTFNNSW.js} +4 -4
- package/dist/chunks/{mcp-KOZOXU6J.js → mcp-6H3YELN6.js} +16 -16
- package/dist/chunks/{message-command-7B5OFSGL.js → message-command-IQTT76ZY.js} +36 -36
- package/dist/chunks/{operator-tools-PWBZHKXO.js → operator-tools-ISZGHK3F.js} +13 -13
- package/dist/chunks/{output-schema-QPHXNRKI.js → output-schema-63NLKBRY.js} +3 -3
- package/dist/chunks/{pal-XSD45IR6.js → pal-RAIDDDNH.js} +11 -11
- package/dist/chunks/{providers-ULPGYRWC.js → providers-N2UXL3XT.js} +6 -6
- package/dist/chunks/{resident-NY7XSEK7.js → resident-CWT62J2M.js} +24 -24
- package/dist/chunks/resume-PKATLA4S.js +23 -0
- package/dist/chunks/{resume-command-DLOW7MYW.js → resume-command-DNNLB5SK.js} +4 -4
- package/dist/chunks/{schedule-QR7JOA4F.js → schedule-6N33GN2Z.js} +8 -8
- package/dist/chunks/{service-CLLR5VUD.js → service-77ZFLYDC.js} +23 -23
- package/dist/chunks/session-step-I5DFTYDV.js +30 -0
- package/dist/chunks/{skills-OZZLTH6P.js → skills-SAIXOU7Z.js} +8 -8
- package/dist/chunks/{state-EROTPJRH.js → state-J4NZZP7B.js} +2 -2
- package/dist/chunks/{store-ROEYUKBM.js → store-2JQLHCG4.js} +4 -4
- package/dist/chunks/{store-C24DXKO4.js → store-QLG76DQG.js} +6 -6
- package/dist/chunks/{store-VDQRT2KF.js → store-YRVVPTUX.js} +10 -10
- package/dist/chunks/{tui-XBQCRSIJ.js → tui-77L5I5EV.js} +51 -51
- package/dist/chunks/{tui-XBQCRSIJ.js.map → tui-77L5I5EV.js.map} +1 -1
- package/dist/chunks/{upgrade-ZRQZD2N2.js → upgrade-ZTG65H5Q.js} +2 -2
- package/dist/chunks/{worktree-XMJ355ND.js → worktree-5ETUFJAC.js} +12 -12
- package/dist/context/runtime-message.d.ts.map +1 -1
- package/dist/context/turn-snapshot.d.ts +26 -8
- package/dist/context/turn-snapshot.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/integrations/resident/runner-worker.js +20 -20
- package/dist/integrations/sessions/evidence-recall.d.ts +1 -1
- package/dist/integrations/sessions/evidence-recall.d.ts.map +1 -1
- package/dist/integrations/subagents/saved-agents.d.ts +12 -3
- package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/chunks/agent-session-44AYNTQJ.js +0 -59
- package/dist/chunks/chunk-6FSVNUBA.js.map +0 -6
- package/dist/chunks/chunk-DTNJTMWP.js.map +0 -6
- package/dist/chunks/chunk-Y37JJJVY.js.map +0 -6
- package/dist/chunks/resume-4FV66TEK.js +0 -23
- package/dist/chunks/session-step-IEMT6LRR.js +0 -30
- /package/dist/chunks/{acp-MCDCWJ45.js.map → acp-5RFAFTQU.js.map} +0 -0
- /package/dist/chunks/{activity-command-AYLW5EEX.js.map → activity-command-XLF5EAM5.js.map} +0 -0
- /package/dist/chunks/{add-VNM5QPTX.js.map → add-Z6Y5DOCM.js.map} +0 -0
- /package/dist/chunks/{agent-4IMOBJR5.js.map → agent-U4NFC4DT.js.map} +0 -0
- /package/dist/chunks/{agent-session-44AYNTQJ.js.map → agent-session-LHOJDS75.js.map} +0 -0
- /package/dist/chunks/{archive-VXJWPZBA.js.map → archive-P47MRHE2.js.map} +0 -0
- /package/dist/chunks/{bin-main-BMCDNDGC.js.map → bin-main-B3QOTIEH.js.map} +0 -0
- /package/dist/chunks/{browser-7MVCQL2G.js.map → browser-QN24UC7K.js.map} +0 -0
- /package/dist/chunks/{chat-M2WFCRYV.js.map → chat-HRORSJPH.js.map} +0 -0
- /package/dist/chunks/{chunk-XSAS6TS2.js.map → chunk-25XPE4N6.js.map} +0 -0
- /package/dist/chunks/{chunk-KEKFOEEP.js.map → chunk-2HDIUUMX.js.map} +0 -0
- /package/dist/chunks/{chunk-YBOKKRHB.js.map → chunk-2QXVOSJM.js.map} +0 -0
- /package/dist/chunks/{chunk-5LGZUFDJ.js.map → chunk-2UPDDG7V.js.map} +0 -0
- /package/dist/chunks/{chunk-TSKCIC5T.js.map → chunk-2UYBHC3L.js.map} +0 -0
- /package/dist/chunks/{chunk-2Q6PBTPY.js.map → chunk-2VQ475KY.js.map} +0 -0
- /package/dist/chunks/{chunk-LETTT4ZZ.js.map → chunk-34L6FTQV.js.map} +0 -0
- /package/dist/chunks/{chunk-IMFIQJM6.js.map → chunk-37DRD4QM.js.map} +0 -0
- /package/dist/chunks/{chunk-IQBKDY6G.js.map → chunk-3OP32UHN.js.map} +0 -0
- /package/dist/chunks/{chunk-RPKRLR3O.js.map → chunk-3RC4ATZI.js.map} +0 -0
- /package/dist/chunks/{chunk-DAJBZ4B7.js.map → chunk-4SP6H34B.js.map} +0 -0
- /package/dist/chunks/{chunk-DVRRRNSA.js.map → chunk-5XJC5G7N.js.map} +0 -0
- /package/dist/chunks/{chunk-HV7PRPHJ.js.map → chunk-72CFHDKQ.js.map} +0 -0
- /package/dist/chunks/{chunk-RI57PEYF.js.map → chunk-7B5YTYHY.js.map} +0 -0
- /package/dist/chunks/{chunk-PWGJB2WA.js.map → chunk-A6J2VJL5.js.map} +0 -0
- /package/dist/chunks/{chunk-AVSE45ED.js.map → chunk-ANUGFVZI.js.map} +0 -0
- /package/dist/chunks/{chunk-C4CVM56Z.js.map → chunk-BHR2CNBZ.js.map} +0 -0
- /package/dist/chunks/{chunk-AYCKJIVD.js.map → chunk-BNMFWLWH.js.map} +0 -0
- /package/dist/chunks/{chunk-HWAPKOAW.js.map → chunk-C2IABASE.js.map} +0 -0
- /package/dist/chunks/{chunk-VHXXNM6W.js.map → chunk-CAPC66Q6.js.map} +0 -0
- /package/dist/chunks/{chunk-WYUJ4USW.js.map → chunk-CEIYJWZ2.js.map} +0 -0
- /package/dist/chunks/{chunk-5XWYY63Z.js.map → chunk-CIIMESY2.js.map} +0 -0
- /package/dist/chunks/{chunk-KDZ6GM2A.js.map → chunk-CLADMV2E.js.map} +0 -0
- /package/dist/chunks/{chunk-L2MEW4AZ.js.map → chunk-CM2I2L4G.js.map} +0 -0
- /package/dist/chunks/{chunk-Z2WGX7UM.js.map → chunk-CT23IU3D.js.map} +0 -0
- /package/dist/chunks/{chunk-CN6EFAK5.js.map → chunk-D2M5K6UY.js.map} +0 -0
- /package/dist/chunks/{chunk-YZW6H2LD.js.map → chunk-DHV3KMEC.js.map} +0 -0
- /package/dist/chunks/{chunk-LRDLJTYP.js.map → chunk-DQKQKNDY.js.map} +0 -0
- /package/dist/chunks/{chunk-DAUWDTZI.js.map → chunk-E7FQPIJB.js.map} +0 -0
- /package/dist/chunks/{chunk-AGRFKHS2.js.map → chunk-G34P5PIK.js.map} +0 -0
- /package/dist/chunks/{chunk-PXEHKMLO.js.map → chunk-I55BEPVH.js.map} +0 -0
- /package/dist/chunks/{chunk-GD6LOX4A.js.map → chunk-J67SASGK.js.map} +0 -0
- /package/dist/chunks/{chunk-IBUFD2HH.js.map → chunk-JKXCLMMZ.js.map} +0 -0
- /package/dist/chunks/{chunk-KTF5NW2V.js.map → chunk-L2GZVP5H.js.map} +0 -0
- /package/dist/chunks/{chunk-7A5TVBGS.js.map → chunk-LVDRURI4.js.map} +0 -0
- /package/dist/chunks/{chunk-VD4D37MT.js.map → chunk-NTPBXJMK.js.map} +0 -0
- /package/dist/chunks/{chunk-4I5FGMVR.js.map → chunk-OFNGIO53.js.map} +0 -0
- /package/dist/chunks/{chunk-7RBZS3TN.js.map → chunk-PKBHQFT6.js.map} +0 -0
- /package/dist/chunks/{chunk-N457UJQL.js.map → chunk-QNFMVN4D.js.map} +0 -0
- /package/dist/chunks/{chunk-QYA34YM5.js.map → chunk-QZYTSINZ.js.map} +0 -0
- /package/dist/chunks/{chunk-O3CIRAYD.js.map → chunk-RKSYVIQX.js.map} +0 -0
- /package/dist/chunks/{chunk-H3ALHXFV.js.map → chunk-RM4XZZL3.js.map} +0 -0
- /package/dist/chunks/{chunk-UHDKUVR5.js.map → chunk-SEVUBJMR.js.map} +0 -0
- /package/dist/chunks/{chunk-X4BCXODL.js.map → chunk-TU46IHIV.js.map} +0 -0
- /package/dist/chunks/{chunk-IBCA2WDM.js.map → chunk-U2AVT6OB.js.map} +0 -0
- /package/dist/chunks/{chunk-TZDYMWYP.js.map → chunk-UEXQA2UW.js.map} +0 -0
- /package/dist/chunks/{chunk-3ZMECJLN.js.map → chunk-UM4ECTUS.js.map} +0 -0
- /package/dist/chunks/{chunk-KGKRKFB7.js.map → chunk-VALR7WUL.js.map} +0 -0
- /package/dist/chunks/{chunk-EYBTANG5.js.map → chunk-VCKNYZYH.js.map} +0 -0
- /package/dist/chunks/{chunk-F2UUHEPY.js.map → chunk-WBTXYSAB.js.map} +0 -0
- /package/dist/chunks/{chunk-2LLNCAZS.js.map → chunk-WJ7XYOSE.js.map} +0 -0
- /package/dist/chunks/{chunk-5L7ZQ37R.js.map → chunk-WKGECHMV.js.map} +0 -0
- /package/dist/chunks/{chunk-QWFD2LFU.js.map → chunk-WN7YMX22.js.map} +0 -0
- /package/dist/chunks/{chunk-MCUV6EI7.js.map → chunk-Y5QV6NZK.js.map} +0 -0
- /package/dist/chunks/{chunk-MSKJK6NZ.js.map → chunk-YYX7O3T2.js.map} +0 -0
- /package/dist/chunks/{chunk-G7JH3PMC.js.map → chunk-Z7DJAGBK.js.map} +0 -0
- /package/dist/chunks/{chunk-TIFSH2BH.js.map → chunk-ZDEFWEEI.js.map} +0 -0
- /package/dist/chunks/{chunk-YAOKLAUU.js.map → chunk-ZGBKTT7X.js.map} +0 -0
- /package/dist/chunks/{chunk-O7VKAFEU.js.map → chunk-ZMZR4UTZ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZPNX25RU.js.map → chunk-ZQRO6GGZ.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-Q6BW37I2.js.map → cli-runtime-7GSPWSYW.js.map} +0 -0
- /package/dist/chunks/{commands-C5I7PC7W.js.map → commands-LU5AOF65.js.map} +0 -0
- /package/dist/chunks/{crash-report-DRT5OCHO.js.map → crash-report-YDSO3QZP.js.map} +0 -0
- /package/dist/chunks/{dist-2NWJAAJM.js.map → dist-47WGWXP5.js.map} +0 -0
- /package/dist/chunks/{dist-PRTI23W3.js.map → dist-7JBTU4ZA.js.map} +0 -0
- /package/dist/chunks/{dist-T2N57REG.js.map → dist-7PFXZB32.js.map} +0 -0
- /package/dist/chunks/{dist-D7WSQBE7.js.map → dist-BJMHCL2F.js.map} +0 -0
- /package/dist/chunks/{dist-5JM4UMVC.js.map → dist-FI4O2BO3.js.map} +0 -0
- /package/dist/chunks/{dist-WO56PFGZ.js.map → dist-JWX7FPMB.js.map} +0 -0
- /package/dist/chunks/{dist-VJC5RCYZ.js.map → dist-SLWBMTWO.js.map} +0 -0
- /package/dist/chunks/{doctor-HXKU6QKJ.js.map → doctor-ZK3CTBDR.js.map} +0 -0
- /package/dist/chunks/{drain-MLRRMEGK.js.map → drain-CVQW35OB.js.map} +0 -0
- /package/dist/chunks/{eval-ECOECG74.js.map → eval-PBRDQ7GI.js.map} +0 -0
- /package/dist/chunks/{exec-JLB6F5ZR.js.map → exec-ZVOPAVQC.js.map} +0 -0
- /package/dist/chunks/{home-G65CC45B.js.map → home-QPIQIIAR.js.map} +0 -0
- /package/dist/chunks/{host-queries-7LKGEBO5.js.map → host-queries-UUG7LHPF.js.map} +0 -0
- /package/dist/chunks/{learn-NRY6X2K6.js.map → learn-AILV7XYA.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-QOM4KLT2.js.map → learn-builtin-I2RMG7OE.js.map} +0 -0
- /package/dist/chunks/{lifecycle-BI2PMV4Q.js.map → lifecycle-ZZ5HDP6F.js.map} +0 -0
- /package/dist/chunks/{list-QTWALT6F.js.map → list-TMHSX32S.js.map} +0 -0
- /package/dist/chunks/{login-7LJG7D3F.js.map → login-VUIOQEA2.js.map} +0 -0
- /package/dist/chunks/{logs-UGMCEFAZ.js.map → logs-QQTFNNSW.js.map} +0 -0
- /package/dist/chunks/{mcp-KOZOXU6J.js.map → mcp-6H3YELN6.js.map} +0 -0
- /package/dist/chunks/{message-command-7B5OFSGL.js.map → message-command-IQTT76ZY.js.map} +0 -0
- /package/dist/chunks/{operator-tools-PWBZHKXO.js.map → operator-tools-ISZGHK3F.js.map} +0 -0
- /package/dist/chunks/{output-schema-QPHXNRKI.js.map → output-schema-63NLKBRY.js.map} +0 -0
- /package/dist/chunks/{pal-XSD45IR6.js.map → pal-RAIDDDNH.js.map} +0 -0
- /package/dist/chunks/{providers-ULPGYRWC.js.map → providers-N2UXL3XT.js.map} +0 -0
- /package/dist/chunks/{resident-NY7XSEK7.js.map → resident-CWT62J2M.js.map} +0 -0
- /package/dist/chunks/{resume-4FV66TEK.js.map → resume-PKATLA4S.js.map} +0 -0
- /package/dist/chunks/{resume-command-DLOW7MYW.js.map → resume-command-DNNLB5SK.js.map} +0 -0
- /package/dist/chunks/{schedule-QR7JOA4F.js.map → schedule-6N33GN2Z.js.map} +0 -0
- /package/dist/chunks/{service-CLLR5VUD.js.map → service-77ZFLYDC.js.map} +0 -0
- /package/dist/chunks/{session-step-IEMT6LRR.js.map → session-step-I5DFTYDV.js.map} +0 -0
- /package/dist/chunks/{skills-OZZLTH6P.js.map → skills-SAIXOU7Z.js.map} +0 -0
- /package/dist/chunks/{state-EROTPJRH.js.map → state-J4NZZP7B.js.map} +0 -0
- /package/dist/chunks/{store-C24DXKO4.js.map → store-2JQLHCG4.js.map} +0 -0
- /package/dist/chunks/{store-ROEYUKBM.js.map → store-QLG76DQG.js.map} +0 -0
- /package/dist/chunks/{store-VDQRT2KF.js.map → store-YRVVPTUX.js.map} +0 -0
- /package/dist/chunks/{upgrade-ZRQZD2N2.js.map → upgrade-ZTG65H5Q.js.map} +0 -0
- /package/dist/chunks/{worktree-XMJ355ND.js.map → worktree-5ETUFJAC.js.map} +0 -0
|
@@ -2,13 +2,13 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openManagedWorktrees
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WN7YMX22.js";
|
|
6
6
|
import {
|
|
7
7
|
createBrowserControl
|
|
8
8
|
} from "./chunk-WHODOMXA.js";
|
|
9
9
|
import {
|
|
10
10
|
createSessionSkillCatalog
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-25XPE4N6.js";
|
|
12
12
|
import {
|
|
13
13
|
SAVE_SKILL_TOOL_NAME,
|
|
14
14
|
attachAgentView,
|
|
@@ -25,22 +25,22 @@ import {
|
|
|
25
25
|
theme,
|
|
26
26
|
viewFromJournal,
|
|
27
27
|
workingDirectoryProblem
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-A6J2VJL5.js";
|
|
29
29
|
import {
|
|
30
30
|
runGeneratorCycle
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-37DRD4QM.js";
|
|
32
32
|
import {
|
|
33
33
|
createSessionLearningFeed,
|
|
34
34
|
openLearningTarget,
|
|
35
35
|
readProjectGuidance,
|
|
36
36
|
withSessionLearningFeed
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RKSYVIQX.js";
|
|
38
38
|
import {
|
|
39
39
|
connectMcpServers
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-G34P5PIK.js";
|
|
41
41
|
import {
|
|
42
42
|
openInBrowser
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WBTXYSAB.js";
|
|
44
44
|
import {
|
|
45
45
|
CredentialRefreshRejectedError,
|
|
46
46
|
CredentialWithdrawnError,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
ensureFreshStoredCodexCredential,
|
|
49
49
|
readSubscriptionCredential,
|
|
50
50
|
sameOAuthCredential
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-I55BEPVH.js";
|
|
52
52
|
import {
|
|
53
53
|
debugRequested
|
|
54
54
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
sessionWorkflowSizeAdvice,
|
|
61
61
|
unmatchedPassthroughTools,
|
|
62
62
|
workflowTokenCeiling
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-C2IABASE.js";
|
|
64
64
|
import {
|
|
65
65
|
formatSize,
|
|
66
66
|
homePath,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
} from "./chunk-LCGXWCVU.js";
|
|
73
73
|
import {
|
|
74
74
|
createLazyCodeAnalysis
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-E7FQPIJB.js";
|
|
76
76
|
import {
|
|
77
77
|
canSelectModel,
|
|
78
78
|
chainCapabilityDisagreements,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
requiresCredentialForModel,
|
|
98
98
|
resolveChainCapabilities,
|
|
99
99
|
unresolvedMembers
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-UM4ECTUS.js";
|
|
101
101
|
import {
|
|
102
102
|
PROVIDER_REGISTRY,
|
|
103
103
|
missingCredentialMessage,
|
|
@@ -106,15 +106,15 @@ import {
|
|
|
106
106
|
import {
|
|
107
107
|
isPermissionMode,
|
|
108
108
|
permissionModeLabel
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-SEVUBJMR.js";
|
|
110
110
|
import {
|
|
111
111
|
conversationLogPath,
|
|
112
112
|
ensureSessionStarted,
|
|
113
113
|
openConversationLog
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-ZQRO6GGZ.js";
|
|
115
115
|
import {
|
|
116
116
|
readIdentity
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-CT23IU3D.js";
|
|
118
118
|
import {
|
|
119
119
|
INSTRUCTIONS_FILENAME,
|
|
120
120
|
MAX_CHARS_PER_FILE,
|
|
@@ -125,10 +125,10 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
compilePermissions,
|
|
127
127
|
isPermissionEffect
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-U2AVT6OB.js";
|
|
129
129
|
import {
|
|
130
130
|
cliLogger
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-QNFMVN4D.js";
|
|
132
132
|
import {
|
|
133
133
|
stringWidth
|
|
134
134
|
} from "./chunk-U5UV2YRE.js";
|
|
@@ -141,13 +141,13 @@ import {
|
|
|
141
141
|
} from "./chunk-IE5XIE4W.js";
|
|
142
142
|
import {
|
|
143
143
|
ensurePrivateStateDirectory
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-2VQ475KY.js";
|
|
145
145
|
import {
|
|
146
146
|
restrictToOwner
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-WJ7XYOSE.js";
|
|
148
148
|
import {
|
|
149
149
|
namzuHomePath
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-OFNGIO53.js";
|
|
151
151
|
import {
|
|
152
152
|
AgentManager,
|
|
153
153
|
AgentRegistry,
|
|
@@ -282,6 +282,7 @@ import {
|
|
|
282
282
|
isTrustedReadOnly,
|
|
283
283
|
isTurnInProgressError,
|
|
284
284
|
isolationOf,
|
|
285
|
+
lastPromptText,
|
|
285
286
|
lexShellCommandLine,
|
|
286
287
|
mapTools,
|
|
287
288
|
mcpJsonSchemaToZod,
|
|
@@ -308,12 +309,13 @@ import {
|
|
|
308
309
|
toToolSourceRef,
|
|
309
310
|
toolWireSchema,
|
|
310
311
|
toolset,
|
|
312
|
+
turnContextEntries,
|
|
311
313
|
untrustedEnvelopeBody,
|
|
312
314
|
webGuidanceContribution,
|
|
313
315
|
windowsShellNotice,
|
|
314
316
|
withProviderFallback,
|
|
315
317
|
wrapUntrusted
|
|
316
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-4WWLRVYU.js";
|
|
317
319
|
import {
|
|
318
320
|
__name
|
|
319
321
|
} from "./chunk-76FLAFCG.js";
|
|
@@ -4557,34 +4559,143 @@ async function readTurnSnapshot(cwd) {
|
|
|
4557
4559
|
};
|
|
4558
4560
|
}
|
|
4559
4561
|
__name(readTurnSnapshot, "readTurnSnapshot");
|
|
4562
|
+
var REPOSITORY_ENTRY_KEY = "repository";
|
|
4563
|
+
var FULL_HEADING = "## Repository";
|
|
4564
|
+
var NOTE_FULL = "This is the repository as of the time in the entry header; it does not update as you work. A later repository entry lists what changed since. Run `git status` before any action that depends on the current state.";
|
|
4565
|
+
var PROVENANCE = "File names and commit subjects read from the working directory with git. They were written by whoever committed or created them.";
|
|
4566
|
+
var PROVENANCE_DELTA = "Written by others.";
|
|
4567
|
+
var TREE_HEADING = "Working tree (git status --short):";
|
|
4568
|
+
var TREE_CLEAN = "Working tree: clean.";
|
|
4569
|
+
var COMMITS_HEADING = "Recent commits (newest first):";
|
|
4570
|
+
var MORE = /^… and (\d+) more$/;
|
|
4571
|
+
var DELTA_HEADING = "Changes since the earlier repository entries:";
|
|
4572
|
+
var DELTA_ADDED = "Now listed in the working tree:";
|
|
4573
|
+
var DELTA_REMOVED = "No longer listed in the working tree:";
|
|
4574
|
+
var DELTA_OMITTED = /^Entries not listed: (\d+)$/;
|
|
4575
|
+
var DELTA_NEW_COMMITS = "New commits (newest first):";
|
|
4576
|
+
var DELTA_COMMITS = "Recent commits now (newest first):";
|
|
4560
4577
|
function composeTurnSnapshot(snapshot) {
|
|
4561
4578
|
const body2 = [];
|
|
4562
4579
|
if (snapshot.status.length === 0) {
|
|
4563
|
-
body2.push(
|
|
4580
|
+
body2.push(TREE_CLEAN);
|
|
4564
4581
|
} else {
|
|
4565
|
-
body2.push(
|
|
4582
|
+
body2.push(TREE_HEADING, ...snapshot.status);
|
|
4566
4583
|
if (snapshot.omittedStatusLines > 0) {
|
|
4567
4584
|
body2.push(`\u2026 and ${snapshot.omittedStatusLines} more`);
|
|
4568
4585
|
}
|
|
4569
4586
|
}
|
|
4570
4587
|
if (snapshot.recentCommits.length > 0) {
|
|
4571
|
-
body2.push("",
|
|
4588
|
+
body2.push("", COMMITS_HEADING, ...snapshot.recentCommits);
|
|
4572
4589
|
}
|
|
4573
|
-
return [
|
|
4574
|
-
"## Repository at the start of this turn",
|
|
4575
|
-
"",
|
|
4576
|
-
wrapUntrusted(
|
|
4577
|
-
{
|
|
4578
|
-
kind: "repository-snapshot",
|
|
4579
|
-
provenance: "File names and commit subjects read from the working directory with git. They were written by whoever committed or created them."
|
|
4580
|
-
},
|
|
4581
|
-
body2.join("\n")
|
|
4582
|
-
),
|
|
4583
|
-
"",
|
|
4584
|
-
"This is a snapshot from when the turn started; it does not update as you work. Run `git status` before any action that depends on the current state."
|
|
4585
|
-
].join("\n");
|
|
4590
|
+
return [FULL_HEADING, "", wrap(body2), "", NOTE_FULL].join("\n");
|
|
4586
4591
|
}
|
|
4587
4592
|
__name(composeTurnSnapshot, "composeTurnSnapshot");
|
|
4593
|
+
function wrap(body2, delta = false) {
|
|
4594
|
+
return wrapUntrusted(
|
|
4595
|
+
{
|
|
4596
|
+
kind: "repository-snapshot",
|
|
4597
|
+
provenance: delta ? PROVENANCE_DELTA : PROVENANCE
|
|
4598
|
+
},
|
|
4599
|
+
body2.join("\n"),
|
|
4600
|
+
{ brief: delta }
|
|
4601
|
+
);
|
|
4602
|
+
}
|
|
4603
|
+
__name(wrap, "wrap");
|
|
4604
|
+
var neutral = /* @__PURE__ */ __name((line) => line.replace(/namzu-untrusted/gi, "namzu_untrusted"), "neutral");
|
|
4605
|
+
function envelopeLines(entry) {
|
|
4606
|
+
const lines = entry.split("\n");
|
|
4607
|
+
const open3 = lines.findIndex(
|
|
4608
|
+
(line) => /^<namzu-untrusted-[0-9a-f]+ kind="repository-snapshot"/.test(line)
|
|
4609
|
+
);
|
|
4610
|
+
if (open3 < 0) return null;
|
|
4611
|
+
const close = lines.findIndex(
|
|
4612
|
+
(line, index) => index > open3 && /^<\/namzu-untrusted-[0-9a-f]+>$/.test(line)
|
|
4613
|
+
);
|
|
4614
|
+
if (close < 0) return null;
|
|
4615
|
+
const blank = lines.findIndex((line, index) => index > open3 && line === "");
|
|
4616
|
+
if (blank < 0 || blank > close) return null;
|
|
4617
|
+
return lines.slice(blank + 1, close);
|
|
4618
|
+
}
|
|
4619
|
+
__name(envelopeLines, "envelopeLines");
|
|
4620
|
+
function apply(known, entry) {
|
|
4621
|
+
const lines = envelopeLines(entry);
|
|
4622
|
+
if (!lines) return null;
|
|
4623
|
+
const whole = !lines.includes(DELTA_HEADING);
|
|
4624
|
+
if (!whole && !known) return null;
|
|
4625
|
+
const next = whole || !known ? { status: /* @__PURE__ */ new Set(), omitted: 0, commits: [] } : { status: new Set(known.status), omitted: known.omitted, commits: [...known.commits] };
|
|
4626
|
+
let section = "none";
|
|
4627
|
+
const newCommits = [];
|
|
4628
|
+
let replaced = null;
|
|
4629
|
+
for (const line of lines) {
|
|
4630
|
+
if (line === "" || line === DELTA_HEADING || line === TREE_CLEAN) section = "none";
|
|
4631
|
+
else if (line === TREE_HEADING) section = "tree";
|
|
4632
|
+
else if (line === DELTA_ADDED) section = "added";
|
|
4633
|
+
else if (line === DELTA_REMOVED) section = "removed";
|
|
4634
|
+
else if (line === COMMITS_HEADING) section = "commits";
|
|
4635
|
+
else if (line === DELTA_COMMITS) {
|
|
4636
|
+
section = "commits";
|
|
4637
|
+
replaced = [];
|
|
4638
|
+
} else if (line === DELTA_NEW_COMMITS) section = "newCommits";
|
|
4639
|
+
else if (MORE.test(line) || DELTA_OMITTED.test(line)) {
|
|
4640
|
+
next.omitted = Number((MORE.exec(line) ?? DELTA_OMITTED.exec(line))?.[1] ?? 0);
|
|
4641
|
+
section = "none";
|
|
4642
|
+
} else if (section === "tree" || section === "added") next.status.add(line);
|
|
4643
|
+
else if (section === "removed") next.status.delete(line);
|
|
4644
|
+
else if (section === "commits") {
|
|
4645
|
+
if (replaced) replaced.push(line);
|
|
4646
|
+
else next.commits.push(line);
|
|
4647
|
+
} else if (section === "newCommits") newCommits.push(line);
|
|
4648
|
+
}
|
|
4649
|
+
if (replaced) next.commits = replaced;
|
|
4650
|
+
else if (newCommits.length > 0) next.commits = [...newCommits, ...next.commits];
|
|
4651
|
+
return next;
|
|
4652
|
+
}
|
|
4653
|
+
__name(apply, "apply");
|
|
4654
|
+
function knownFrom(entries) {
|
|
4655
|
+
let known = null;
|
|
4656
|
+
for (const entry of entries) {
|
|
4657
|
+
known = apply(known, entry);
|
|
4658
|
+
if (known === null) return null;
|
|
4659
|
+
}
|
|
4660
|
+
return known;
|
|
4661
|
+
}
|
|
4662
|
+
__name(knownFrom, "knownFrom");
|
|
4663
|
+
function composeSnapshotEntry(earlier, snapshot) {
|
|
4664
|
+
const full = composeTurnSnapshot(snapshot);
|
|
4665
|
+
const known = knownFrom(earlier);
|
|
4666
|
+
if (!known) return full;
|
|
4667
|
+
const status = snapshot.status.map(neutral);
|
|
4668
|
+
const commits = snapshot.recentCommits.map(neutral);
|
|
4669
|
+
const now = new Set(status);
|
|
4670
|
+
const added = status.filter((line) => !known.status.has(line));
|
|
4671
|
+
const removed = [...known.status].filter((line) => !now.has(line));
|
|
4672
|
+
const omittedChanged = snapshot.omittedStatusLines !== known.omitted;
|
|
4673
|
+
const sameCommits = commits.length === known.commits.length && commits.every((c, i) => c === known.commits[i]);
|
|
4674
|
+
if (added.length === 0 && removed.length === 0 && !omittedChanged && sameCommits) return null;
|
|
4675
|
+
const body2 = [DELTA_HEADING];
|
|
4676
|
+
if (added.length > 0)
|
|
4677
|
+
body2.push(DELTA_ADDED, ...snapshot.status.filter((l) => added.includes(neutral(l))));
|
|
4678
|
+
if (removed.length > 0) body2.push(DELTA_REMOVED, ...removed);
|
|
4679
|
+
if (omittedChanged) body2.push(`Entries not listed: ${snapshot.omittedStatusLines}`);
|
|
4680
|
+
if (!sameCommits) {
|
|
4681
|
+
const fresh = commits.findIndex(
|
|
4682
|
+
(_, i) => known.commits.length >= commits.length - i && known.commits.slice(0, commits.length - i).every((c, j) => c === commits[i + j])
|
|
4683
|
+
);
|
|
4684
|
+
if (fresh > 0) body2.push(DELTA_NEW_COMMITS, ...snapshot.recentCommits.slice(0, fresh));
|
|
4685
|
+
else body2.push(DELTA_COMMITS, ...snapshot.recentCommits);
|
|
4686
|
+
}
|
|
4687
|
+
const delta = wrap(body2, true);
|
|
4688
|
+
return delta.length < full.length ? delta : full;
|
|
4689
|
+
}
|
|
4690
|
+
__name(composeSnapshotEntry, "composeSnapshotEntry");
|
|
4691
|
+
function createRepositorySnapshotStep(snapshot) {
|
|
4692
|
+
return ({ messages }) => {
|
|
4693
|
+
if (!snapshot) return void 0;
|
|
4694
|
+
const text2 = composeSnapshotEntry(turnContextEntries(messages, REPOSITORY_ENTRY_KEY), snapshot);
|
|
4695
|
+
return text2 ? { recordedContext: [{ key: REPOSITORY_ENTRY_KEY, text: text2 }] } : void 0;
|
|
4696
|
+
};
|
|
4697
|
+
}
|
|
4698
|
+
__name(createRepositorySnapshotStep, "createRepositorySnapshotStep");
|
|
4588
4699
|
|
|
4589
4700
|
// ../decision/dist/contract.js
|
|
4590
4701
|
var DecisionError = class extends Error {
|
|
@@ -5875,11 +5986,12 @@ function advanceScan(scans, scan3, nextCursor, excerpts, hasDerivedSummaries, ca
|
|
|
5875
5986
|
}
|
|
5876
5987
|
__name(advanceScan, "advanceScan");
|
|
5877
5988
|
var RECALL_PAGES = 4;
|
|
5878
|
-
function createConversationEvidenceRecall(sessions, sessionId, assertOwner, resolveQuery = false) {
|
|
5989
|
+
function createConversationEvidenceRecall(sessions, sessionId, assertOwner, resolveQuery = false, record = false) {
|
|
5879
5990
|
const scope2 = { tenantId: sessions.tenantId, projectId: sessions.projectId, sessionId };
|
|
5880
5991
|
return createEvidenceRecallStep({
|
|
5881
5992
|
scope: scope2,
|
|
5882
5993
|
resolveQuery,
|
|
5994
|
+
record,
|
|
5883
5995
|
async retrieve(request) {
|
|
5884
5996
|
const { turnId, terms, signal, maxReadBytes, maxCandidates, captureSessionEvidence } = request;
|
|
5885
5997
|
assertOwner(turnId);
|
|
@@ -8246,22 +8358,43 @@ function createSavedAgentHistory(scope2) {
|
|
|
8246
8358
|
};
|
|
8247
8359
|
}
|
|
8248
8360
|
__name(createSavedAgentHistory, "createSavedAgentHistory");
|
|
8361
|
+
var SAVED_AGENTS_KEY = "saved-agents";
|
|
8362
|
+
var SAVED_AGENTS_ROWS = `Each row gives the agent's session id, what it was asked to do, and its status. Rows are listed once, when they are new or their status changed; "omitted" counts older agents that are not listed.`;
|
|
8363
|
+
function recordedRows(entries) {
|
|
8364
|
+
const known = /* @__PURE__ */ new Map();
|
|
8365
|
+
for (const entry of entries) {
|
|
8366
|
+
const json = entry.split("\n").filter((line) => line.startsWith("{")).at(-1);
|
|
8367
|
+
if (!json) continue;
|
|
8368
|
+
try {
|
|
8369
|
+
const parsed = JSON.parse(json);
|
|
8370
|
+
for (const row of parsed.savedAgents ?? []) known.set(row.sessionId, row.status);
|
|
8371
|
+
} catch {
|
|
8372
|
+
}
|
|
8373
|
+
}
|
|
8374
|
+
return known;
|
|
8375
|
+
}
|
|
8376
|
+
__name(recordedRows, "recordedRows");
|
|
8249
8377
|
function createSavedAgentsStep(history) {
|
|
8250
8378
|
let snapshot;
|
|
8251
|
-
return async ({
|
|
8379
|
+
return async ({ turnId, contextBudget, messages }) => {
|
|
8252
8380
|
if (contextBudget && contextBudget.remainingTokens < MIN_REMAINING_TOKENS) return void 0;
|
|
8253
8381
|
snapshot ??= history.list();
|
|
8254
8382
|
const { agents, omitted } = await snapshot;
|
|
8255
8383
|
const earlier = agents.filter((agent2) => agent2.parentTurnId !== turnId);
|
|
8256
8384
|
if (earlier.length === 0) return void 0;
|
|
8257
|
-
const
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8385
|
+
const held = turnContextEntries(messages, SAVED_AGENTS_KEY);
|
|
8386
|
+
const known = recordedRows(held);
|
|
8387
|
+
const listed = earlier.slice(0, MAX_PROMPTED_SAVED_AGENTS);
|
|
8388
|
+
const rows = listed.map(({ sessionId, description, status }) => ({ sessionId, description, status })).filter((row) => known.get(row.sessionId) !== row.status);
|
|
8389
|
+
if (rows.length === 0) return void 0;
|
|
8390
|
+
const text2 = [
|
|
8391
|
+
held.length === 0 ? `${SAVED_AGENTS_GUIDANCE} ${SAVED_AGENTS_ROWS}` : void 0,
|
|
8392
|
+
JSON.stringify({
|
|
8393
|
+
savedAgents: rows,
|
|
8394
|
+
omitted: omitted + earlier.length - listed.length
|
|
8395
|
+
})
|
|
8396
|
+
].filter(Boolean).join("\n");
|
|
8397
|
+
return { recordedContext: [{ key: SAVED_AGENTS_KEY, text: text2 }] };
|
|
8265
8398
|
};
|
|
8266
8399
|
}
|
|
8267
8400
|
__name(createSavedAgentsStep, "createSavedAgentsStep");
|
|
@@ -12965,10 +13098,10 @@ function clipRequestContext(prompt, limit, kind) {
|
|
|
12965
13098
|
__name(clipRequestContext, "clipRequestContext");
|
|
12966
13099
|
async function createAgentSession(prefs, detected, options = {}) {
|
|
12967
13100
|
if (options.palEnvironment) {
|
|
12968
|
-
const { createPalAgentSession } = await import("./agent-session-
|
|
13101
|
+
const { createPalAgentSession } = await import("./agent-session-LHOJDS75.js");
|
|
12969
13102
|
return createPalAgentSession(prefs, detected, options);
|
|
12970
13103
|
}
|
|
12971
|
-
const { palAtWorkspace } = await import("./store-
|
|
13104
|
+
const { palAtWorkspace } = await import("./store-QLG76DQG.js");
|
|
12972
13105
|
if (palAtWorkspace(options.cwd ?? process.cwd()))
|
|
12973
13106
|
throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
|
|
12974
13107
|
const commandArguments = builtinCommandArguments();
|
|
@@ -13627,7 +13760,8 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
13627
13760
|
if (!owner || owner.sessionId !== sessionId || owner.tenantId !== sessions.tenantId || owner.projectId !== sessions.projectId)
|
|
13628
13761
|
throw new Error("The requesting turn no longer owns this conversation.");
|
|
13629
13762
|
},
|
|
13630
|
-
options.compaction?.resolveEvidenceQueries !== false
|
|
13763
|
+
options.compaction?.resolveEvidenceQueries !== false,
|
|
13764
|
+
true
|
|
13631
13765
|
);
|
|
13632
13766
|
evidenceRecallSteps.set(sessionId, step);
|
|
13633
13767
|
}
|
|
@@ -14079,7 +14213,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14079
14213
|
);
|
|
14080
14214
|
toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
|
|
14081
14215
|
}
|
|
14082
|
-
const operatorPals = await import("./operator-tools-
|
|
14216
|
+
const operatorPals = await import("./operator-tools-ISZGHK3F.js");
|
|
14083
14217
|
toolsets.push(
|
|
14084
14218
|
readyWhen(
|
|
14085
14219
|
toolset(
|
|
@@ -14287,7 +14421,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14287
14421
|
try {
|
|
14288
14422
|
const routed = await routeModel(
|
|
14289
14423
|
{
|
|
14290
|
-
task:
|
|
14424
|
+
task: lastPromptText(messages),
|
|
14291
14425
|
config: routing,
|
|
14292
14426
|
features: {
|
|
14293
14427
|
conversationLength: messages.length,
|
|
@@ -14484,7 +14618,8 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14484
14618
|
...options.memory?.recall === false ? [] : [
|
|
14485
14619
|
createMemoryRecallStep({
|
|
14486
14620
|
store: memoryStore,
|
|
14487
|
-
identifierGrounding: options.memory?.identifierGrounding
|
|
14621
|
+
identifierGrounding: options.memory?.identifierGrounding,
|
|
14622
|
+
record: true
|
|
14488
14623
|
})
|
|
14489
14624
|
],
|
|
14490
14625
|
...options.conversationSessions ? [createContextInventoryStep()] : [],
|
|
@@ -15192,7 +15327,6 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15192
15327
|
},
|
|
15193
15328
|
{ stable: stableEnvironment }
|
|
15194
15329
|
);
|
|
15195
|
-
const turnSnapshotPrompt = turnSnapshot ? composeTurnSnapshot(turnSnapshot) : null;
|
|
15196
15330
|
const promptContributions = new PromptContributionRegistry();
|
|
15197
15331
|
for (const contribution of pluginRuntime?.manager.promptContributions ?? []) {
|
|
15198
15332
|
promptContributions.register(contribution);
|
|
@@ -15222,11 +15356,6 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15222
15356
|
placement: "context",
|
|
15223
15357
|
render: /* @__PURE__ */ __name(() => projectGuidance, "render")
|
|
15224
15358
|
});
|
|
15225
|
-
promptContributions.register({
|
|
15226
|
-
id: "namzu.turn-snapshot",
|
|
15227
|
-
placement: "context",
|
|
15228
|
-
render: /* @__PURE__ */ __name(() => turnSnapshotPrompt, "render")
|
|
15229
|
-
});
|
|
15230
15359
|
if (webCapability) promptContributions.register(webGuidanceContribution);
|
|
15231
15360
|
const childOperatorNotices = options.ephemeral ? [] : await readChildOperatorNotices(paths, turnScope.sessionId);
|
|
15232
15361
|
const hostContext = /* @__PURE__ */ __name(() => [
|
|
@@ -15329,7 +15458,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15329
15458
|
);
|
|
15330
15459
|
lastSystemPromptText = systemPrompt;
|
|
15331
15460
|
await announceSessionStart();
|
|
15332
|
-
checkpoints.beginTurn(
|
|
15461
|
+
checkpoints.beginTurn(lastPromptText(messages), turnId, {
|
|
15333
15462
|
promptOrdinal: Math.max(0, messages.filter((m) => m.role === "user").length - 1)
|
|
15334
15463
|
});
|
|
15335
15464
|
if (opts?.goalRound) {
|
|
@@ -15437,6 +15566,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15437
15566
|
promoteMemory: options.compaction?.consolidate ? void 0 : promoteMemory,
|
|
15438
15567
|
prepareStep: [
|
|
15439
15568
|
createTaskContextStep(turnTaskStore, turnScope.tenantId),
|
|
15569
|
+
createRepositorySnapshotStep(turnSnapshot),
|
|
15440
15570
|
...savedAgentsSteps(turnScope.sessionId),
|
|
15441
15571
|
// A host-supplied resident step may select the request model.
|
|
15442
15572
|
// Run it before every budgeted recall and memory admission.
|
|
@@ -15444,8 +15574,9 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15444
15574
|
...options.memory?.recall === false ? [] : [
|
|
15445
15575
|
createMemoryRecallStep({
|
|
15446
15576
|
store: memoryStore,
|
|
15447
|
-
query:
|
|
15448
|
-
identifierGrounding: options.memory?.identifierGrounding
|
|
15577
|
+
query: lastPromptText(messages),
|
|
15578
|
+
identifierGrounding: options.memory?.identifierGrounding,
|
|
15579
|
+
record: true
|
|
15449
15580
|
})
|
|
15450
15581
|
],
|
|
15451
15582
|
...options.conversationSessions ? [createContextInventoryStep()] : [],
|
|
@@ -15903,14 +16034,6 @@ function conversationDrovePc(messages) {
|
|
|
15903
16034
|
return false;
|
|
15904
16035
|
}
|
|
15905
16036
|
__name(conversationDrovePc, "conversationDrovePc");
|
|
15906
|
-
function lastUserText(messages) {
|
|
15907
|
-
for (let i = messages.length - 1; i >= 0; i--) {
|
|
15908
|
-
const m = messages[i];
|
|
15909
|
-
if (m?.role === "user" && typeof m.content === "string") return m.content;
|
|
15910
|
-
}
|
|
15911
|
-
return "";
|
|
15912
|
-
}
|
|
15913
|
-
__name(lastUserText, "lastUserText");
|
|
15914
16037
|
function mintScope(projectId, sessionId) {
|
|
15915
16038
|
return {
|
|
15916
16039
|
sessionId: sessionId ?? generateSessionId(),
|
|
@@ -16993,4 +17116,4 @@ export {
|
|
|
16993
17116
|
RESULT_SUMMARY_WHOLE_MAX,
|
|
16994
17117
|
resultSummaryLine
|
|
16995
17118
|
};
|
|
16996
|
-
//# sourceMappingURL=chunk-
|
|
17119
|
+
//# sourceMappingURL=chunk-JEULHVUH.js.map
|