@namzu/cli 45.9.3 → 45.10.1
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 +12 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-XQR3O5Z5.js → acp-U52IAAGB.js} +47 -47
- package/dist/chunks/{activity-command-6F2EDDEI.js → activity-command-5EICQZFB.js} +13 -13
- package/dist/chunks/{add-G57WA2GJ.js → add-CSEYDJGW.js} +19 -19
- package/dist/chunks/{agent-K547PXS7.js → agent-ML5J2NE4.js} +37 -37
- package/dist/chunks/agent-session-L4GUN5VK.js +71 -0
- package/dist/chunks/{archive-6TGLEA3K.js → archive-K5VNH6TQ.js} +11 -11
- package/dist/chunks/{bin-main-COD43DP4.js → bin-main-JERUQRU4.js} +7 -7
- package/dist/chunks/{binding-4UDJGDCD.js → binding-JU7NNTWZ.js} +3 -3
- package/dist/chunks/{browser-6QYX256W.js → browser-4R7K2DVH.js} +6 -6
- package/dist/chunks/{chat-BBW3FSWW.js → chat-W4S2TB4H.js} +16 -16
- package/dist/chunks/{chunk-WNC7MDAC.js → chunk-23KRERE2.js} +3 -3
- package/dist/chunks/{chunk-H5HR43HQ.js → chunk-2C5S3PQM.js} +259 -97
- package/dist/chunks/chunk-2C5S3PQM.js.map +6 -0
- package/dist/chunks/{chunk-6TWMZ3UL.js → chunk-32Y4CGYX.js} +2 -2
- package/dist/chunks/{chunk-76ZHDUSD.js → chunk-35YOM4J4.js} +2 -2
- package/dist/chunks/{chunk-WCBWL7MZ.js → chunk-3WPD47ZA.js} +4 -4
- package/dist/chunks/{chunk-X6VCXJOI.js → chunk-47DZAJ2F.js} +3 -3
- package/dist/chunks/{chunk-ZRAPH6L2.js → chunk-4C3URCM4.js} +2 -2
- package/dist/chunks/{chunk-SQJVX2ST.js → chunk-4RY2AH2P.js} +3 -3
- package/dist/chunks/{chunk-RP6O2GVC.js → chunk-4SZBSV3G.js} +9 -9
- package/dist/chunks/{chunk-LP76OJSX.js → chunk-5TTO77PB.js} +4 -4
- package/dist/chunks/{chunk-UP7OLJBD.js → chunk-6I6GRVMU.js} +2 -2
- package/dist/chunks/{chunk-XJDGOIAW.js → chunk-6TNSA3D4.js} +2 -2
- package/dist/chunks/{chunk-O3SU7EXF.js → chunk-7RS34KAF.js} +6 -6
- package/dist/chunks/{chunk-2SS23KJ3.js → chunk-A3UXLNSL.js} +3 -3
- package/dist/chunks/{chunk-CCCLN34K.js → chunk-AHLGS7MD.js} +2 -2
- package/dist/chunks/{chunk-SPGUDEHE.js → chunk-ATTMC6ON.js} +5 -5
- package/dist/chunks/{chunk-RYIYSO4F.js → chunk-BGC2NV6A.js} +2 -2
- package/dist/chunks/{chunk-LW4TDNUA.js → chunk-BNOU4UNL.js} +3 -3
- package/dist/chunks/{chunk-V6WJ34RS.js → chunk-BOYXBDWE.js} +3 -3
- package/dist/chunks/{chunk-27QHD7HA.js → chunk-C7ZIHMTL.js} +2 -2
- package/dist/chunks/{chunk-RSRXD36F.js → chunk-CLI7WBGT.js} +5 -3
- package/dist/chunks/{chunk-RSRXD36F.js.map → chunk-CLI7WBGT.js.map} +1 -1
- package/dist/chunks/{chunk-B4GOUPME.js → chunk-DHHXKL5Y.js} +3 -3
- package/dist/chunks/{chunk-N7Z3RK5F.js → chunk-DLCT4LI5.js} +3 -3
- package/dist/chunks/{chunk-XCLILGUP.js → chunk-DP2DK6CU.js} +2 -2
- package/dist/chunks/{chunk-767UE4DC.js → chunk-DYELMFWH.js} +2 -2
- package/dist/chunks/{chunk-PYKCLWJ5.js → chunk-EIGRZXVK.js} +3 -3
- package/dist/chunks/{chunk-6CL5274N.js → chunk-EPBPHSST.js} +2 -2
- package/dist/chunks/{chunk-PUPGZ4NV.js → chunk-F5AXFMVQ.js} +3 -3
- package/dist/chunks/{chunk-PB4CMDDB.js → chunk-FMFYX3YR.js} +3 -3
- package/dist/chunks/{chunk-JC5O7PPL.js → chunk-FQF2L65V.js} +2 -2
- package/dist/chunks/{chunk-5FXZQ42Q.js → chunk-FSMDRLM4.js} +4 -4
- package/dist/chunks/{chunk-WBDSJSAB.js → chunk-GLS4HKJE.js} +2 -2
- package/dist/chunks/{chunk-YBXLTTRO.js → chunk-GRP5ZJD5.js} +5 -5
- package/dist/chunks/{chunk-374YQW3Q.js → chunk-HYB2HYSZ.js} +6 -6
- package/dist/chunks/{chunk-GP3ZE47C.js → chunk-I6JSLSKK.js} +9 -9
- package/dist/chunks/{chunk-SGWVJCYH.js → chunk-IDKZJFHX.js} +2 -2
- package/dist/chunks/{chunk-TAPS6JOC.js → chunk-KFJE7C3V.js} +3 -3
- package/dist/chunks/{chunk-MFQ6SUCW.js → chunk-KT2SIQYS.js} +6 -6
- package/dist/chunks/{chunk-JG2ZBJOQ.js → chunk-KWIWY326.js} +33 -33
- package/dist/chunks/{chunk-UZ75A4DA.js → chunk-LJSAWJLM.js} +6 -5
- package/dist/chunks/chunk-LJSAWJLM.js.map +6 -0
- package/dist/chunks/{chunk-CNKZ5OEN.js → chunk-LRRFHJVL.js} +4 -4
- package/dist/chunks/{chunk-JVGYTV6X.js → chunk-MRRHBKKG.js} +2 -2
- package/dist/chunks/{chunk-KJ4FFKOU.js → chunk-MS5HVHSR.js} +2 -2
- package/dist/chunks/{chunk-HAPWK3YL.js → chunk-MTGEEAGR.js} +2 -2
- package/dist/chunks/{chunk-WDXR3AJY.js → chunk-N5OBNGSI.js} +3 -3
- package/dist/chunks/{chunk-2L5LPN34.js → chunk-NL4JVQ2Z.js} +2 -2
- package/dist/chunks/{chunk-BMIQVFLW.js → chunk-NY4QVL2R.js} +4 -4
- package/dist/chunks/{chunk-FTYBID6N.js → chunk-OFIKC775.js} +3 -3
- package/dist/chunks/{chunk-G6C7TB2T.js → chunk-OFPR7A47.js} +4 -4
- package/dist/chunks/{chunk-SS75325H.js → chunk-P2FKCVQK.js} +3 -3
- package/dist/chunks/{chunk-VTYV7ZXP.js → chunk-PCGHGZMW.js} +10 -10
- package/dist/chunks/{chunk-YOGW2L4X.js → chunk-PENJL2GR.js} +3 -3
- package/dist/chunks/{chunk-PPKHDX7F.js → chunk-POLZGNBU.js} +2 -2
- package/dist/chunks/{chunk-4IUTV7UN.js → chunk-QHSSZOOE.js} +11 -11
- package/dist/chunks/{chunk-P57NXYWG.js → chunk-QTN5FKY7.js} +2 -2
- package/dist/chunks/{chunk-G57SY7WF.js → chunk-QTXCGPJU.js} +4 -4
- package/dist/chunks/{chunk-SIY3OOJJ.js → chunk-RBFL7HHZ.js} +6 -6
- package/dist/chunks/{chunk-4E7CFJKP.js → chunk-S72YGA7F.js} +8 -8
- package/dist/chunks/{chunk-6SPZPZRJ.js → chunk-SLFZZH2X.js} +2 -2
- package/dist/chunks/{chunk-46NABSFP.js → chunk-SMLCIOVJ.js} +2 -2
- package/dist/chunks/{chunk-3XPCMW6Y.js → chunk-SQE72BCO.js} +2 -2
- package/dist/chunks/{chunk-KD6UPZT7.js → chunk-SW532ASH.js} +3 -3
- package/dist/chunks/{chunk-KQ2WRKBJ.js → chunk-TFXFS4V3.js} +5 -5
- package/dist/chunks/{chunk-HRT5ARAC.js → chunk-TUTHGYTK.js} +4 -4
- package/dist/chunks/{chunk-XWB5SLLY.js → chunk-U4YLZCYM.js} +6 -6
- package/dist/chunks/{chunk-UB3AKXQA.js → chunk-UIRABG5P.js} +2 -2
- package/dist/chunks/{chunk-Q275XU7A.js → chunk-UM44TBQV.js} +12 -12
- package/dist/chunks/{chunk-A3HZYPFW.js → chunk-UODFT22Y.js} +2 -2
- package/dist/chunks/{chunk-LIBKQZOE.js → chunk-UQ2WTDB6.js} +2 -2
- package/dist/chunks/{chunk-QIYQ22CP.js → chunk-V67R3N3C.js} +3 -3
- package/dist/chunks/{chunk-PTBVQOSI.js → chunk-VQDGWMU2.js} +5 -5
- package/dist/chunks/{chunk-QTBT522X.js → chunk-WDG3LAEX.js} +12 -12
- package/dist/chunks/{chunk-VHDPSOSS.js → chunk-WPBNHLR4.js} +3 -3
- package/dist/chunks/{chunk-HYHGZN6A.js → chunk-WSIUIQXG.js} +4 -4
- package/dist/chunks/{chunk-7JX7V5P4.js → chunk-X3TNS3F7.js} +4 -4
- package/dist/chunks/{chunk-XCAEOUKE.js → chunk-XMN4RAZK.js} +2 -2
- package/dist/chunks/{chunk-3XZBPIJY.js → chunk-XZOU7DGT.js} +2 -2
- package/dist/chunks/{chunk-C2SLVYIT.js → chunk-YGVMUSN3.js} +7 -7
- package/dist/chunks/{chunk-Z6ZH4EMQ.js → chunk-YPLHQ35W.js} +2 -2
- package/dist/chunks/{chunk-4MZSEJ5J.js → chunk-ZSBHWN2C.js} +13 -13
- package/dist/chunks/{chunk-UJORZ537.js → chunk-ZWVECC4R.js} +2 -2
- package/dist/chunks/{cli-runtime-FI5IMJQW.js → cli-runtime-BXDOPAB4.js} +10 -10
- package/dist/chunks/{commands-CDCCNGIC.js → commands-SN3LO2IT.js} +5 -5
- package/dist/chunks/{crash-report-OYTQJIDP.js → crash-report-CRGXB27Z.js} +6 -6
- package/dist/chunks/{dist-GZX4YZLS.js → dist-2JDB2H6X.js} +2 -2
- package/dist/chunks/{dist-OQGAM6YX.js → dist-4AICWBBD.js} +2 -2
- package/dist/chunks/{dist-7XE2RJIY.js → dist-AYQPVKXE.js} +2 -2
- package/dist/chunks/{dist-FCDD55BL.js → dist-EXV5PZO6.js} +2 -2
- package/dist/chunks/{dist-B5X3AXDE.js → dist-OQGTVPEP.js} +2 -2
- package/dist/chunks/{dist-JBJAWVKZ.js → dist-QWGV62M5.js} +2 -2
- package/dist/chunks/{dist-QNCGEADL.js → dist-RJLE4QIQ.js} +2 -2
- package/dist/chunks/{dist-34YSH62O.js → dist-VETLDXRE.js} +2 -2
- package/dist/chunks/{doctor-NPOW6W7J.js → doctor-QR36CEVQ.js} +16 -16
- package/dist/chunks/{drain-BH55K7YU.js → drain-7PZD6SA2.js} +10 -10
- package/dist/chunks/{entry-77VS5PR3.js → entry-EQRRHP6G.js} +6 -6
- package/dist/chunks/{eval-WVTIMNLP.js → eval-P5HZXGRU.js} +2 -2
- package/dist/chunks/{exec-MX3B2UN3.js → exec-TTO4F3AQ.js} +35 -35
- package/dist/chunks/{home-JDHIBPYD.js → home-JBR7W4X6.js} +3 -3
- package/dist/chunks/{host-IDSHCCZG.js → host-R4JT3M3Z.js} +10 -10
- package/dist/chunks/{host-queries-HZWZJC3A.js → host-queries-XFAZ56QW.js} +16 -16
- package/dist/chunks/{learn-USAWIP7K.js → learn-U5ZHDNQ6.js} +13 -13
- package/dist/chunks/{learn-builtin-E2VD4DHQ.js → learn-builtin-E6FSX3XP.js} +16 -16
- package/dist/chunks/{lifecycle-7VSEDBPU.js → lifecycle-HKN6DV3R.js} +29 -29
- package/dist/chunks/{list-ZM3IAEUT.js → list-SJYXZLAX.js} +10 -10
- package/dist/chunks/{live-7SJSBRSQ.js → live-FVP3O4B4.js} +15 -15
- package/dist/chunks/{login-RKXC24ZU.js → login-SC7FSE4K.js} +13 -13
- package/dist/chunks/{logs-FXHR5AL3.js → logs-3MXOGP2P.js} +4 -4
- package/dist/chunks/{mcp-L4CZFIYN.js → mcp-3NJ6DLZZ.js} +20 -20
- package/dist/chunks/{message-command-V2J24YP5.js → message-command-F2RDEUBB.js} +43 -43
- package/dist/chunks/{open-ATGQC7HJ.js → open-7VNZFXHC.js} +8 -8
- package/dist/chunks/{operator-tools-O66BJ5IZ.js → operator-tools-NFFCSAO4.js} +14 -14
- package/dist/chunks/{output-schema-SK4YHMPH.js → output-schema-MYB2JL7T.js} +3 -3
- package/dist/chunks/{pal-7IB7RW64.js → pal-RIQLBAZO.js} +16 -16
- package/dist/chunks/{peers-GN6IES2A.js → peers-MUD7G2WG.js} +6 -6
- package/dist/chunks/{providers-THNUARWA.js → providers-JMFNOVC7.js} +11 -11
- package/dist/chunks/{pty-RTUHR6BI.js → pty-UZMSP5AI.js} +3 -3
- package/dist/chunks/{resident-3RTS73JY.js → resident-BKZKN55B.js} +24 -24
- package/dist/chunks/resume-RSH3YSGY.js +24 -0
- package/dist/chunks/{resume-command-KCLAZIUK.js → resume-command-ACZLNUNU.js} +4 -4
- package/dist/chunks/{schedule-2K3YV2MJ.js → schedule-3ESVSIJN.js} +8 -8
- package/dist/chunks/{service-YYTU36DB.js → service-65YUGWY7.js} +29 -29
- package/dist/chunks/{session-step-AUWOQOPI.js → session-step-WMDANDG2.js} +15 -15
- package/dist/chunks/{skills-7KDYKVPE.js → skills-TKTY7O5E.js} +8 -8
- package/dist/chunks/{start-check-YXOI4UKE.js → start-check-WPLXWTVX.js} +2 -2
- package/dist/chunks/{startup-failure-ZE5JEAGJ.js → startup-failure-WNWSC4JM.js} +2 -2
- package/dist/chunks/{state-QAYJMS5K.js → state-YPB7IYTC.js} +2 -2
- package/dist/chunks/{store-PWKA5NUG.js → store-C2LWUH52.js} +11 -11
- package/dist/chunks/{store-COB4QHLF.js → store-JEFDHKTU.js} +3 -3
- package/dist/chunks/{store-GOCPI7ZM.js → store-MEP4PXT3.js} +4 -4
- package/dist/chunks/{store-WUQVOV4Y.js → store-SFY37GBX.js} +6 -6
- package/dist/chunks/{tui-VJUFUWQH.js → tui-BB6YPGG5.js} +115 -202
- package/dist/chunks/tui-BB6YPGG5.js.map +6 -0
- package/dist/chunks/{upgrade-PBDROOBR.js → upgrade-7LYVLWXR.js} +7 -7
- package/dist/chunks/{workspaces-GEQ3N73X.js → workspaces-Q2FM6CFN.js} +16 -16
- package/dist/chunks/{worktree-ANXLURVF.js → worktree-77TTIQCT.js} +13 -13
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +3 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.js +19 -19
- package/dist/integrations/decision/memory-admit.d.ts +27 -0
- package/dist/integrations/decision/memory-admit.d.ts.map +1 -0
- package/dist/integrations/decision/model.d.ts +2 -0
- package/dist/integrations/decision/model.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +21 -21
- package/dist/tui/agent.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunks/agent-session-JFGRPZHQ.js +0 -71
- package/dist/chunks/chunk-H5HR43HQ.js.map +0 -6
- package/dist/chunks/chunk-UZ75A4DA.js.map +0 -6
- package/dist/chunks/resume-WE2MHR62.js +0 -24
- package/dist/chunks/tui-VJUFUWQH.js.map +0 -6
- /package/dist/chunks/{acp-XQR3O5Z5.js.map → acp-U52IAAGB.js.map} +0 -0
- /package/dist/chunks/{activity-command-6F2EDDEI.js.map → activity-command-5EICQZFB.js.map} +0 -0
- /package/dist/chunks/{add-G57WA2GJ.js.map → add-CSEYDJGW.js.map} +0 -0
- /package/dist/chunks/{agent-K547PXS7.js.map → agent-ML5J2NE4.js.map} +0 -0
- /package/dist/chunks/{agent-session-JFGRPZHQ.js.map → agent-session-L4GUN5VK.js.map} +0 -0
- /package/dist/chunks/{archive-6TGLEA3K.js.map → archive-K5VNH6TQ.js.map} +0 -0
- /package/dist/chunks/{bin-main-COD43DP4.js.map → bin-main-JERUQRU4.js.map} +0 -0
- /package/dist/chunks/{binding-4UDJGDCD.js.map → binding-JU7NNTWZ.js.map} +0 -0
- /package/dist/chunks/{browser-6QYX256W.js.map → browser-4R7K2DVH.js.map} +0 -0
- /package/dist/chunks/{chat-BBW3FSWW.js.map → chat-W4S2TB4H.js.map} +0 -0
- /package/dist/chunks/{chunk-WNC7MDAC.js.map → chunk-23KRERE2.js.map} +0 -0
- /package/dist/chunks/{chunk-6TWMZ3UL.js.map → chunk-32Y4CGYX.js.map} +0 -0
- /package/dist/chunks/{chunk-76ZHDUSD.js.map → chunk-35YOM4J4.js.map} +0 -0
- /package/dist/chunks/{chunk-WCBWL7MZ.js.map → chunk-3WPD47ZA.js.map} +0 -0
- /package/dist/chunks/{chunk-X6VCXJOI.js.map → chunk-47DZAJ2F.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRAPH6L2.js.map → chunk-4C3URCM4.js.map} +0 -0
- /package/dist/chunks/{chunk-SQJVX2ST.js.map → chunk-4RY2AH2P.js.map} +0 -0
- /package/dist/chunks/{chunk-RP6O2GVC.js.map → chunk-4SZBSV3G.js.map} +0 -0
- /package/dist/chunks/{chunk-LP76OJSX.js.map → chunk-5TTO77PB.js.map} +0 -0
- /package/dist/chunks/{chunk-UP7OLJBD.js.map → chunk-6I6GRVMU.js.map} +0 -0
- /package/dist/chunks/{chunk-XJDGOIAW.js.map → chunk-6TNSA3D4.js.map} +0 -0
- /package/dist/chunks/{chunk-O3SU7EXF.js.map → chunk-7RS34KAF.js.map} +0 -0
- /package/dist/chunks/{chunk-2SS23KJ3.js.map → chunk-A3UXLNSL.js.map} +0 -0
- /package/dist/chunks/{chunk-CCCLN34K.js.map → chunk-AHLGS7MD.js.map} +0 -0
- /package/dist/chunks/{chunk-SPGUDEHE.js.map → chunk-ATTMC6ON.js.map} +0 -0
- /package/dist/chunks/{chunk-RYIYSO4F.js.map → chunk-BGC2NV6A.js.map} +0 -0
- /package/dist/chunks/{chunk-LW4TDNUA.js.map → chunk-BNOU4UNL.js.map} +0 -0
- /package/dist/chunks/{chunk-V6WJ34RS.js.map → chunk-BOYXBDWE.js.map} +0 -0
- /package/dist/chunks/{chunk-27QHD7HA.js.map → chunk-C7ZIHMTL.js.map} +0 -0
- /package/dist/chunks/{chunk-B4GOUPME.js.map → chunk-DHHXKL5Y.js.map} +0 -0
- /package/dist/chunks/{chunk-N7Z3RK5F.js.map → chunk-DLCT4LI5.js.map} +0 -0
- /package/dist/chunks/{chunk-XCLILGUP.js.map → chunk-DP2DK6CU.js.map} +0 -0
- /package/dist/chunks/{chunk-767UE4DC.js.map → chunk-DYELMFWH.js.map} +0 -0
- /package/dist/chunks/{chunk-PYKCLWJ5.js.map → chunk-EIGRZXVK.js.map} +0 -0
- /package/dist/chunks/{chunk-6CL5274N.js.map → chunk-EPBPHSST.js.map} +0 -0
- /package/dist/chunks/{chunk-PUPGZ4NV.js.map → chunk-F5AXFMVQ.js.map} +0 -0
- /package/dist/chunks/{chunk-PB4CMDDB.js.map → chunk-FMFYX3YR.js.map} +0 -0
- /package/dist/chunks/{chunk-JC5O7PPL.js.map → chunk-FQF2L65V.js.map} +0 -0
- /package/dist/chunks/{chunk-5FXZQ42Q.js.map → chunk-FSMDRLM4.js.map} +0 -0
- /package/dist/chunks/{chunk-WBDSJSAB.js.map → chunk-GLS4HKJE.js.map} +0 -0
- /package/dist/chunks/{chunk-YBXLTTRO.js.map → chunk-GRP5ZJD5.js.map} +0 -0
- /package/dist/chunks/{chunk-374YQW3Q.js.map → chunk-HYB2HYSZ.js.map} +0 -0
- /package/dist/chunks/{chunk-GP3ZE47C.js.map → chunk-I6JSLSKK.js.map} +0 -0
- /package/dist/chunks/{chunk-SGWVJCYH.js.map → chunk-IDKZJFHX.js.map} +0 -0
- /package/dist/chunks/{chunk-TAPS6JOC.js.map → chunk-KFJE7C3V.js.map} +0 -0
- /package/dist/chunks/{chunk-MFQ6SUCW.js.map → chunk-KT2SIQYS.js.map} +0 -0
- /package/dist/chunks/{chunk-JG2ZBJOQ.js.map → chunk-KWIWY326.js.map} +0 -0
- /package/dist/chunks/{chunk-CNKZ5OEN.js.map → chunk-LRRFHJVL.js.map} +0 -0
- /package/dist/chunks/{chunk-JVGYTV6X.js.map → chunk-MRRHBKKG.js.map} +0 -0
- /package/dist/chunks/{chunk-KJ4FFKOU.js.map → chunk-MS5HVHSR.js.map} +0 -0
- /package/dist/chunks/{chunk-HAPWK3YL.js.map → chunk-MTGEEAGR.js.map} +0 -0
- /package/dist/chunks/{chunk-WDXR3AJY.js.map → chunk-N5OBNGSI.js.map} +0 -0
- /package/dist/chunks/{chunk-2L5LPN34.js.map → chunk-NL4JVQ2Z.js.map} +0 -0
- /package/dist/chunks/{chunk-BMIQVFLW.js.map → chunk-NY4QVL2R.js.map} +0 -0
- /package/dist/chunks/{chunk-FTYBID6N.js.map → chunk-OFIKC775.js.map} +0 -0
- /package/dist/chunks/{chunk-G6C7TB2T.js.map → chunk-OFPR7A47.js.map} +0 -0
- /package/dist/chunks/{chunk-SS75325H.js.map → chunk-P2FKCVQK.js.map} +0 -0
- /package/dist/chunks/{chunk-VTYV7ZXP.js.map → chunk-PCGHGZMW.js.map} +0 -0
- /package/dist/chunks/{chunk-YOGW2L4X.js.map → chunk-PENJL2GR.js.map} +0 -0
- /package/dist/chunks/{chunk-PPKHDX7F.js.map → chunk-POLZGNBU.js.map} +0 -0
- /package/dist/chunks/{chunk-4IUTV7UN.js.map → chunk-QHSSZOOE.js.map} +0 -0
- /package/dist/chunks/{chunk-P57NXYWG.js.map → chunk-QTN5FKY7.js.map} +0 -0
- /package/dist/chunks/{chunk-G57SY7WF.js.map → chunk-QTXCGPJU.js.map} +0 -0
- /package/dist/chunks/{chunk-SIY3OOJJ.js.map → chunk-RBFL7HHZ.js.map} +0 -0
- /package/dist/chunks/{chunk-4E7CFJKP.js.map → chunk-S72YGA7F.js.map} +0 -0
- /package/dist/chunks/{chunk-6SPZPZRJ.js.map → chunk-SLFZZH2X.js.map} +0 -0
- /package/dist/chunks/{chunk-46NABSFP.js.map → chunk-SMLCIOVJ.js.map} +0 -0
- /package/dist/chunks/{chunk-3XPCMW6Y.js.map → chunk-SQE72BCO.js.map} +0 -0
- /package/dist/chunks/{chunk-KD6UPZT7.js.map → chunk-SW532ASH.js.map} +0 -0
- /package/dist/chunks/{chunk-KQ2WRKBJ.js.map → chunk-TFXFS4V3.js.map} +0 -0
- /package/dist/chunks/{chunk-HRT5ARAC.js.map → chunk-TUTHGYTK.js.map} +0 -0
- /package/dist/chunks/{chunk-XWB5SLLY.js.map → chunk-U4YLZCYM.js.map} +0 -0
- /package/dist/chunks/{chunk-UB3AKXQA.js.map → chunk-UIRABG5P.js.map} +0 -0
- /package/dist/chunks/{chunk-Q275XU7A.js.map → chunk-UM44TBQV.js.map} +0 -0
- /package/dist/chunks/{chunk-A3HZYPFW.js.map → chunk-UODFT22Y.js.map} +0 -0
- /package/dist/chunks/{chunk-LIBKQZOE.js.map → chunk-UQ2WTDB6.js.map} +0 -0
- /package/dist/chunks/{chunk-QIYQ22CP.js.map → chunk-V67R3N3C.js.map} +0 -0
- /package/dist/chunks/{chunk-PTBVQOSI.js.map → chunk-VQDGWMU2.js.map} +0 -0
- /package/dist/chunks/{chunk-QTBT522X.js.map → chunk-WDG3LAEX.js.map} +0 -0
- /package/dist/chunks/{chunk-VHDPSOSS.js.map → chunk-WPBNHLR4.js.map} +0 -0
- /package/dist/chunks/{chunk-HYHGZN6A.js.map → chunk-WSIUIQXG.js.map} +0 -0
- /package/dist/chunks/{chunk-7JX7V5P4.js.map → chunk-X3TNS3F7.js.map} +0 -0
- /package/dist/chunks/{chunk-XCAEOUKE.js.map → chunk-XMN4RAZK.js.map} +0 -0
- /package/dist/chunks/{chunk-3XZBPIJY.js.map → chunk-XZOU7DGT.js.map} +0 -0
- /package/dist/chunks/{chunk-C2SLVYIT.js.map → chunk-YGVMUSN3.js.map} +0 -0
- /package/dist/chunks/{chunk-Z6ZH4EMQ.js.map → chunk-YPLHQ35W.js.map} +0 -0
- /package/dist/chunks/{chunk-4MZSEJ5J.js.map → chunk-ZSBHWN2C.js.map} +0 -0
- /package/dist/chunks/{chunk-UJORZ537.js.map → chunk-ZWVECC4R.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-FI5IMJQW.js.map → cli-runtime-BXDOPAB4.js.map} +0 -0
- /package/dist/chunks/{commands-CDCCNGIC.js.map → commands-SN3LO2IT.js.map} +0 -0
- /package/dist/chunks/{crash-report-OYTQJIDP.js.map → crash-report-CRGXB27Z.js.map} +0 -0
- /package/dist/chunks/{dist-GZX4YZLS.js.map → dist-2JDB2H6X.js.map} +0 -0
- /package/dist/chunks/{dist-OQGAM6YX.js.map → dist-4AICWBBD.js.map} +0 -0
- /package/dist/chunks/{dist-7XE2RJIY.js.map → dist-AYQPVKXE.js.map} +0 -0
- /package/dist/chunks/{dist-FCDD55BL.js.map → dist-EXV5PZO6.js.map} +0 -0
- /package/dist/chunks/{dist-B5X3AXDE.js.map → dist-OQGTVPEP.js.map} +0 -0
- /package/dist/chunks/{dist-JBJAWVKZ.js.map → dist-QWGV62M5.js.map} +0 -0
- /package/dist/chunks/{dist-QNCGEADL.js.map → dist-RJLE4QIQ.js.map} +0 -0
- /package/dist/chunks/{dist-34YSH62O.js.map → dist-VETLDXRE.js.map} +0 -0
- /package/dist/chunks/{doctor-NPOW6W7J.js.map → doctor-QR36CEVQ.js.map} +0 -0
- /package/dist/chunks/{drain-BH55K7YU.js.map → drain-7PZD6SA2.js.map} +0 -0
- /package/dist/chunks/{entry-77VS5PR3.js.map → entry-EQRRHP6G.js.map} +0 -0
- /package/dist/chunks/{eval-WVTIMNLP.js.map → eval-P5HZXGRU.js.map} +0 -0
- /package/dist/chunks/{exec-MX3B2UN3.js.map → exec-TTO4F3AQ.js.map} +0 -0
- /package/dist/chunks/{home-JDHIBPYD.js.map → home-JBR7W4X6.js.map} +0 -0
- /package/dist/chunks/{host-IDSHCCZG.js.map → host-R4JT3M3Z.js.map} +0 -0
- /package/dist/chunks/{host-queries-HZWZJC3A.js.map → host-queries-XFAZ56QW.js.map} +0 -0
- /package/dist/chunks/{learn-USAWIP7K.js.map → learn-U5ZHDNQ6.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-E2VD4DHQ.js.map → learn-builtin-E6FSX3XP.js.map} +0 -0
- /package/dist/chunks/{lifecycle-7VSEDBPU.js.map → lifecycle-HKN6DV3R.js.map} +0 -0
- /package/dist/chunks/{list-ZM3IAEUT.js.map → list-SJYXZLAX.js.map} +0 -0
- /package/dist/chunks/{live-7SJSBRSQ.js.map → live-FVP3O4B4.js.map} +0 -0
- /package/dist/chunks/{login-RKXC24ZU.js.map → login-SC7FSE4K.js.map} +0 -0
- /package/dist/chunks/{logs-FXHR5AL3.js.map → logs-3MXOGP2P.js.map} +0 -0
- /package/dist/chunks/{mcp-L4CZFIYN.js.map → mcp-3NJ6DLZZ.js.map} +0 -0
- /package/dist/chunks/{message-command-V2J24YP5.js.map → message-command-F2RDEUBB.js.map} +0 -0
- /package/dist/chunks/{open-ATGQC7HJ.js.map → open-7VNZFXHC.js.map} +0 -0
- /package/dist/chunks/{operator-tools-O66BJ5IZ.js.map → operator-tools-NFFCSAO4.js.map} +0 -0
- /package/dist/chunks/{output-schema-SK4YHMPH.js.map → output-schema-MYB2JL7T.js.map} +0 -0
- /package/dist/chunks/{pal-7IB7RW64.js.map → pal-RIQLBAZO.js.map} +0 -0
- /package/dist/chunks/{peers-GN6IES2A.js.map → peers-MUD7G2WG.js.map} +0 -0
- /package/dist/chunks/{providers-THNUARWA.js.map → providers-JMFNOVC7.js.map} +0 -0
- /package/dist/chunks/{pty-RTUHR6BI.js.map → pty-UZMSP5AI.js.map} +0 -0
- /package/dist/chunks/{resident-3RTS73JY.js.map → resident-BKZKN55B.js.map} +0 -0
- /package/dist/chunks/{resume-WE2MHR62.js.map → resume-RSH3YSGY.js.map} +0 -0
- /package/dist/chunks/{resume-command-KCLAZIUK.js.map → resume-command-ACZLNUNU.js.map} +0 -0
- /package/dist/chunks/{schedule-2K3YV2MJ.js.map → schedule-3ESVSIJN.js.map} +0 -0
- /package/dist/chunks/{service-YYTU36DB.js.map → service-65YUGWY7.js.map} +0 -0
- /package/dist/chunks/{session-step-AUWOQOPI.js.map → session-step-WMDANDG2.js.map} +0 -0
- /package/dist/chunks/{skills-7KDYKVPE.js.map → skills-TKTY7O5E.js.map} +0 -0
- /package/dist/chunks/{start-check-YXOI4UKE.js.map → start-check-WPLXWTVX.js.map} +0 -0
- /package/dist/chunks/{startup-failure-ZE5JEAGJ.js.map → startup-failure-WNWSC4JM.js.map} +0 -0
- /package/dist/chunks/{state-QAYJMS5K.js.map → state-YPB7IYTC.js.map} +0 -0
- /package/dist/chunks/{store-COB4QHLF.js.map → store-C2LWUH52.js.map} +0 -0
- /package/dist/chunks/{store-GOCPI7ZM.js.map → store-JEFDHKTU.js.map} +0 -0
- /package/dist/chunks/{store-PWKA5NUG.js.map → store-MEP4PXT3.js.map} +0 -0
- /package/dist/chunks/{store-WUQVOV4Y.js.map → store-SFY37GBX.js.map} +0 -0
- /package/dist/chunks/{upgrade-PBDROOBR.js.map → upgrade-7LYVLWXR.js.map} +0 -0
- /package/dist/chunks/{workspaces-GEQ3N73X.js.map → workspaces-Q2FM6CFN.js.map} +0 -0
- /package/dist/chunks/{worktree-ANXLURVF.js.map → worktree-77TTIQCT.js.map} +0 -0
|
@@ -2,10 +2,10 @@ 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-TUTHGYTK.js";
|
|
6
6
|
import {
|
|
7
7
|
createSessionSkillCatalog
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EIGRZXVK.js";
|
|
9
9
|
import {
|
|
10
10
|
KEY_MISMATCH_MESSAGE,
|
|
11
11
|
MAX_SCRIPT_BYTES,
|
|
@@ -35,32 +35,32 @@ import {
|
|
|
35
35
|
workflowJournalKey,
|
|
36
36
|
workingDirectoryProblem,
|
|
37
37
|
writeEditableCopy
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-A3UXLNSL.js";
|
|
39
39
|
import {
|
|
40
40
|
runGeneratorCycle
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DHHXKL5Y.js";
|
|
42
42
|
import {
|
|
43
43
|
createSessionLearningFeed,
|
|
44
44
|
openLearningTarget,
|
|
45
45
|
readProjectGuidance,
|
|
46
46
|
withSessionLearningFeed
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TFXFS4V3.js";
|
|
48
48
|
import {
|
|
49
49
|
connectMcpServers,
|
|
50
50
|
startMcpServers
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5TTO77PB.js";
|
|
52
52
|
import {
|
|
53
53
|
openInBrowser
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-POLZGNBU.js";
|
|
55
55
|
import {
|
|
56
56
|
conversationInUseSentence,
|
|
57
57
|
minutesUntilFree
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4RY2AH2P.js";
|
|
59
59
|
import {
|
|
60
60
|
ensureLocalConfigIgnored,
|
|
61
61
|
logIgnoreOutcome,
|
|
62
62
|
writeLocalAllows
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-LRRFHJVL.js";
|
|
64
64
|
import {
|
|
65
65
|
createBrowserControl
|
|
66
66
|
} from "./chunk-WHODOMXA.js";
|
|
@@ -74,13 +74,13 @@ import {
|
|
|
74
74
|
import {
|
|
75
75
|
discoverSkills,
|
|
76
76
|
loadSkillBody
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-OFIKC775.js";
|
|
78
78
|
import {
|
|
79
79
|
migrateAccountKeys
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-ATTMC6ON.js";
|
|
81
81
|
import {
|
|
82
82
|
openCliAccounts
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-GRP5ZJD5.js";
|
|
84
84
|
import {
|
|
85
85
|
CredentialRefreshRejectedError,
|
|
86
86
|
CredentialWithdrawnError as CredentialWithdrawnError2,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
ensureFreshStoredCodexCredential,
|
|
89
89
|
readSubscriptionCredential,
|
|
90
90
|
sameOAuthCredential
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-NY4QVL2R.js";
|
|
92
92
|
import {
|
|
93
93
|
debugRequested
|
|
94
94
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
createLazyCodeAnalysis,
|
|
97
97
|
promptCacheTtl,
|
|
98
98
|
setPromptCacheTtl
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-BOYXBDWE.js";
|
|
100
100
|
import {
|
|
101
101
|
LOCAL_CONFIG_FILE,
|
|
102
102
|
configuredPassthroughTools,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
takeConfigWarnings,
|
|
107
107
|
unmatchedPassthroughTools,
|
|
108
108
|
workflowTokenCeiling
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-LJSAWJLM.js";
|
|
110
110
|
import {
|
|
111
111
|
require_dist
|
|
112
112
|
} from "./chunk-KONYGNG6.js";
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
readPreferences,
|
|
131
131
|
resolveChainCapabilities,
|
|
132
132
|
unresolvedMembers
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-WDG3LAEX.js";
|
|
134
134
|
import {
|
|
135
135
|
canSelectModel,
|
|
136
136
|
createGeminiAccessTokenResolver,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
findDetected,
|
|
139
139
|
hasApiCredential,
|
|
140
140
|
requiresCredentialForModel
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-QTXCGPJU.js";
|
|
142
142
|
import {
|
|
143
143
|
PROVIDER_REGISTRY,
|
|
144
144
|
missingCredentialMessage,
|
|
@@ -147,27 +147,27 @@ import {
|
|
|
147
147
|
import {
|
|
148
148
|
isAnthropicOAuthToken,
|
|
149
149
|
readCodexCredentialFile
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-MTGEEAGR.js";
|
|
151
151
|
import {
|
|
152
152
|
composeEnvironmentPrompt,
|
|
153
153
|
detectWsl,
|
|
154
154
|
environmentFactLines,
|
|
155
155
|
permissionSentence,
|
|
156
156
|
readEnvironmentFacts
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-UODFT22Y.js";
|
|
158
158
|
import {
|
|
159
159
|
isPermissionMode,
|
|
160
160
|
permissionModeLabel
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-BGC2NV6A.js";
|
|
162
162
|
import {
|
|
163
163
|
conversationLogPath,
|
|
164
164
|
ensureSessionStarted,
|
|
165
165
|
openConversationLog,
|
|
166
166
|
recordAccountBound
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-U4YLZCYM.js";
|
|
168
168
|
import {
|
|
169
169
|
readIdentity
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-FMFYX3YR.js";
|
|
171
171
|
import {
|
|
172
172
|
INSTRUCTIONS_FILENAME,
|
|
173
173
|
MAX_CHARS_PER_FILE,
|
|
@@ -178,19 +178,19 @@ import {
|
|
|
178
178
|
} from "./chunk-JQIBPPOL.js";
|
|
179
179
|
import {
|
|
180
180
|
isDefaultAccountId
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-XZOU7DGT.js";
|
|
182
182
|
import {
|
|
183
183
|
probeCapabilities
|
|
184
184
|
} from "./chunk-OH6TB27S.js";
|
|
185
185
|
import {
|
|
186
186
|
compilePermissions
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-47DZAJ2F.js";
|
|
188
188
|
import {
|
|
189
189
|
PERMISSION_MODE_NAMES
|
|
190
190
|
} from "./chunk-WMEZTDLT.js";
|
|
191
191
|
import {
|
|
192
192
|
cliLogger
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-AHLGS7MD.js";
|
|
194
194
|
import {
|
|
195
195
|
readModelLaunchEnvironment
|
|
196
196
|
} from "./chunk-LVVD32KJ.js";
|
|
@@ -203,13 +203,13 @@ import {
|
|
|
203
203
|
} from "./chunk-IE5XIE4W.js";
|
|
204
204
|
import {
|
|
205
205
|
ensurePrivateStateDirectory
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-ZWVECC4R.js";
|
|
207
207
|
import {
|
|
208
208
|
restrictToOwner
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-UQ2WTDB6.js";
|
|
210
210
|
import {
|
|
211
211
|
namzuHomePath
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-DYELMFWH.js";
|
|
213
213
|
import {
|
|
214
214
|
AgentManager,
|
|
215
215
|
AgentRegistry,
|
|
@@ -393,7 +393,7 @@ import {
|
|
|
393
393
|
withModelWindowSuffixStripped,
|
|
394
394
|
withProviderFallback,
|
|
395
395
|
wrapUntrusted
|
|
396
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-CLI7WBGT.js";
|
|
397
397
|
import {
|
|
398
398
|
__name,
|
|
399
399
|
__toESM
|
|
@@ -1963,7 +1963,7 @@ __name(screenApprover, "screenApprover");
|
|
|
1963
1963
|
|
|
1964
1964
|
// src/tui/agent.ts
|
|
1965
1965
|
import { realpath as realpath4, stat as stat5 } from "node:fs/promises";
|
|
1966
|
-
import { join as
|
|
1966
|
+
import { join as join17, parse, resolve as resolve13 } from "node:path";
|
|
1967
1967
|
|
|
1968
1968
|
// src/checkpoints/store.ts
|
|
1969
1969
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
@@ -4990,8 +4990,8 @@ async function git(cwd, args) {
|
|
|
4990
4990
|
}
|
|
4991
4991
|
__name(git, "git");
|
|
4992
4992
|
function boundLine(line) {
|
|
4993
|
-
const
|
|
4994
|
-
return
|
|
4993
|
+
const printable2 = line.replace(new RegExp("\\p{Cc}", "gu"), "");
|
|
4994
|
+
return printable2.length > MAX_LINE_CHARS2 ? `${printable2.slice(0, MAX_LINE_CHARS2)}\u2026` : printable2;
|
|
4995
4995
|
}
|
|
4996
4996
|
__name(boundLine, "boundLine");
|
|
4997
4997
|
async function readTurnSnapshot(cwd) {
|
|
@@ -5147,6 +5147,155 @@ function createRepositorySnapshotStep(snapshot) {
|
|
|
5147
5147
|
}
|
|
5148
5148
|
__name(createRepositorySnapshotStep, "createRepositorySnapshotStep");
|
|
5149
5149
|
|
|
5150
|
+
// src/integrations/decision/points.ts
|
|
5151
|
+
import { appendFileSync, mkdirSync, renameSync, statSync as statSync2 } from "node:fs";
|
|
5152
|
+
import { join as join5 } from "node:path";
|
|
5153
|
+
var DEFAULT_TIMEOUT_MS = 1500;
|
|
5154
|
+
var LOG_ROTATE_BYTES = 1e6;
|
|
5155
|
+
function createDecisionPoints(options) {
|
|
5156
|
+
const { model } = options;
|
|
5157
|
+
const now = options.now ?? Date.now;
|
|
5158
|
+
const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
5159
|
+
const log = options.log ?? appendDecisionLog;
|
|
5160
|
+
const mode = /* @__PURE__ */ __name((point) => model === void 0 ? "off" : options.modes?.[point] ?? "off", "mode");
|
|
5161
|
+
return {
|
|
5162
|
+
mode,
|
|
5163
|
+
async ask(question, signal) {
|
|
5164
|
+
const current = mode(question.point);
|
|
5165
|
+
if (current === "off" || model === void 0) return void 0;
|
|
5166
|
+
const startedAt = now();
|
|
5167
|
+
const controller = new AbortController();
|
|
5168
|
+
let timer;
|
|
5169
|
+
const onOuterAbort = /* @__PURE__ */ __name(() => controller.abort(), "onOuterAbort");
|
|
5170
|
+
signal?.addEventListener("abort", onOuterAbort, { once: true });
|
|
5171
|
+
if (signal?.aborted) controller.abort();
|
|
5172
|
+
let p;
|
|
5173
|
+
let outcome = "answered";
|
|
5174
|
+
try {
|
|
5175
|
+
const timedOut = new Promise((_, reject) => {
|
|
5176
|
+
timer = setTimeout(() => {
|
|
5177
|
+
controller.abort();
|
|
5178
|
+
reject(new Error("timeout"));
|
|
5179
|
+
}, timeoutMs);
|
|
5180
|
+
});
|
|
5181
|
+
const answer = await Promise.race([
|
|
5182
|
+
model.yesno(question.state, question.instructions, { signal: controller.signal }),
|
|
5183
|
+
timedOut
|
|
5184
|
+
]);
|
|
5185
|
+
p = answer.p;
|
|
5186
|
+
if (typeof p !== "number" || !Number.isFinite(p) || p < 0 || p > 1) {
|
|
5187
|
+
p = void 0;
|
|
5188
|
+
outcome = "error";
|
|
5189
|
+
}
|
|
5190
|
+
} catch (error) {
|
|
5191
|
+
outcome = error instanceof Error && error.message === "timeout" ? "timeout" : "error";
|
|
5192
|
+
} finally {
|
|
5193
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
5194
|
+
signal?.removeEventListener("abort", onOuterAbort);
|
|
5195
|
+
}
|
|
5196
|
+
try {
|
|
5197
|
+
log({
|
|
5198
|
+
at: startedAt,
|
|
5199
|
+
point: question.point,
|
|
5200
|
+
mode: current,
|
|
5201
|
+
...p !== void 0 ? { p } : {},
|
|
5202
|
+
rule: question.rule,
|
|
5203
|
+
latencyMs: Math.max(0, now() - startedAt),
|
|
5204
|
+
outcome,
|
|
5205
|
+
chars: question.state.length
|
|
5206
|
+
});
|
|
5207
|
+
} catch {
|
|
5208
|
+
}
|
|
5209
|
+
return current === "on" ? p : void 0;
|
|
5210
|
+
}
|
|
5211
|
+
};
|
|
5212
|
+
}
|
|
5213
|
+
__name(createDecisionPoints, "createDecisionPoints");
|
|
5214
|
+
function appendDecisionLog(entry, home = namzuHomePath()) {
|
|
5215
|
+
try {
|
|
5216
|
+
const directory = join5(home, "decision");
|
|
5217
|
+
const file = join5(directory, "points.jsonl");
|
|
5218
|
+
mkdirSync(directory, { recursive: true, mode: 448 });
|
|
5219
|
+
try {
|
|
5220
|
+
if (statSync2(file).size >= LOG_ROTATE_BYTES) renameSync(file, `${file}.1`);
|
|
5221
|
+
} catch {
|
|
5222
|
+
}
|
|
5223
|
+
appendFileSync(file, `${JSON.stringify(entry)}
|
|
5224
|
+
`, { mode: 384 });
|
|
5225
|
+
} catch {
|
|
5226
|
+
}
|
|
5227
|
+
}
|
|
5228
|
+
__name(appendDecisionLog, "appendDecisionLog");
|
|
5229
|
+
var CONFIDENT_YES = 0.7;
|
|
5230
|
+
var CONFIDENT_NO = 0.3;
|
|
5231
|
+
function verdictOf(p) {
|
|
5232
|
+
if (p === void 0) return "unsure";
|
|
5233
|
+
if (p >= CONFIDENT_YES) return "yes";
|
|
5234
|
+
if (p <= CONFIDENT_NO) return "no";
|
|
5235
|
+
return "unsure";
|
|
5236
|
+
}
|
|
5237
|
+
__name(verdictOf, "verdictOf");
|
|
5238
|
+
|
|
5239
|
+
// src/integrations/decision/memory-admit.ts
|
|
5240
|
+
var MEMORY_ADMIT_INSTRUCTIONS = "Would a later working session in the same project be helped by remembering this? Answer yes for requirements the person stated, decisions with their reasons, non-obvious discoveries about how the project works, and mistakes worth not repeating. Answer no for routine progress, facts that are easy to read again from the code, and details of this one turn that will not matter later.";
|
|
5241
|
+
var MEMORY_ADMIT_STATE_CHARS = 1600;
|
|
5242
|
+
var SECTIONS = [
|
|
5243
|
+
["userRequirements", "The person requires"],
|
|
5244
|
+
["decisions", "Decisions"],
|
|
5245
|
+
["discoveries", "Discoveries"],
|
|
5246
|
+
["failures", "What did not work"],
|
|
5247
|
+
["environment", "Environment"]
|
|
5248
|
+
];
|
|
5249
|
+
function claims(candidate) {
|
|
5250
|
+
const out = [];
|
|
5251
|
+
for (const [key, heading] of SECTIONS) {
|
|
5252
|
+
const items = candidate[key].map((item) => item.trim()).filter(Boolean);
|
|
5253
|
+
if (items.length > 0) out.push([heading, items]);
|
|
5254
|
+
}
|
|
5255
|
+
return out;
|
|
5256
|
+
}
|
|
5257
|
+
__name(claims, "claims");
|
|
5258
|
+
function holdsClaims(candidate) {
|
|
5259
|
+
return claims(candidate).length > 0;
|
|
5260
|
+
}
|
|
5261
|
+
__name(holdsClaims, "holdsClaims");
|
|
5262
|
+
function printable(text2) {
|
|
5263
|
+
let out = "";
|
|
5264
|
+
for (const ch of text2) {
|
|
5265
|
+
const code = ch.codePointAt(0) ?? 0;
|
|
5266
|
+
if (code < 32 && code !== 10 && code !== 9 || code === 127) continue;
|
|
5267
|
+
out += ch;
|
|
5268
|
+
}
|
|
5269
|
+
return out;
|
|
5270
|
+
}
|
|
5271
|
+
__name(printable, "printable");
|
|
5272
|
+
function memoryAdmitQuestion(candidate) {
|
|
5273
|
+
const text2 = [
|
|
5274
|
+
`Task: ${candidate.task.trim()}`,
|
|
5275
|
+
...claims(candidate).map(
|
|
5276
|
+
([heading, items]) => `${heading}:
|
|
5277
|
+
${items.map((i) => `- ${i}`).join("\n")}`
|
|
5278
|
+
)
|
|
5279
|
+
].join("\n\n");
|
|
5280
|
+
return {
|
|
5281
|
+
point: "memory-admit",
|
|
5282
|
+
state: [...printable(text2)].slice(0, MEMORY_ADMIT_STATE_CHARS).join(""),
|
|
5283
|
+
instructions: MEMORY_ADMIT_INSTRUCTIONS,
|
|
5284
|
+
// The rule writes whenever there is a claim.
|
|
5285
|
+
rule: true
|
|
5286
|
+
};
|
|
5287
|
+
}
|
|
5288
|
+
__name(memoryAdmitQuestion, "memoryAdmitQuestion");
|
|
5289
|
+
function gateMemoryPromotion(promote, points) {
|
|
5290
|
+
return async (candidate) => {
|
|
5291
|
+
if (points.mode("memory-admit") === "off" || !holdsClaims(candidate)) return promote(candidate);
|
|
5292
|
+
const p = await points.ask(memoryAdmitQuestion(candidate));
|
|
5293
|
+
if (verdictOf(p) === "no") return;
|
|
5294
|
+
return promote(candidate);
|
|
5295
|
+
};
|
|
5296
|
+
}
|
|
5297
|
+
__name(gateMemoryPromotion, "gateMemoryPromotion");
|
|
5298
|
+
|
|
5150
5299
|
// ../decision/dist/contract.js
|
|
5151
5300
|
var DecisionError = class extends Error {
|
|
5152
5301
|
static {
|
|
@@ -5442,13 +5591,18 @@ function buildDecisionProviderConfig(cfg, env) {
|
|
|
5442
5591
|
};
|
|
5443
5592
|
}
|
|
5444
5593
|
__name(buildDecisionProviderConfig, "buildDecisionProviderConfig");
|
|
5594
|
+
var DECISION_KILL_SWITCH = "NAMZU_NO_DECISION";
|
|
5595
|
+
function decisionSwitchedOff(env) {
|
|
5596
|
+
return env[DECISION_KILL_SWITCH] === "1";
|
|
5597
|
+
}
|
|
5598
|
+
__name(decisionSwitchedOff, "decisionSwitchedOff");
|
|
5445
5599
|
function maybeCreateDecisionTool(cfg, env) {
|
|
5446
|
-
if (!cfg) return void 0;
|
|
5600
|
+
if (!cfg || decisionSwitchedOff(env)) return void 0;
|
|
5447
5601
|
return createDecisionTool(createDecisionModel(buildDecisionProviderConfig(cfg, env)));
|
|
5448
5602
|
}
|
|
5449
5603
|
__name(maybeCreateDecisionTool, "maybeCreateDecisionTool");
|
|
5450
5604
|
function maybeCreateDecisionModel(cfg, env) {
|
|
5451
|
-
if (!cfg) return void 0;
|
|
5605
|
+
if (!cfg || decisionSwitchedOff(env)) return void 0;
|
|
5452
5606
|
return createDecisionModel(buildDecisionProviderConfig(cfg, env));
|
|
5453
5607
|
}
|
|
5454
5608
|
__name(maybeCreateDecisionModel, "maybeCreateDecisionModel");
|
|
@@ -6671,7 +6825,7 @@ __name(readWorkStatus, "readWorkStatus");
|
|
|
6671
6825
|
|
|
6672
6826
|
// src/integrations/plugins/files.ts
|
|
6673
6827
|
import { readdirSync as readdirSync2, realpathSync as realpathSync3 } from "node:fs";
|
|
6674
|
-
import { isAbsolute as isAbsolute6, join as
|
|
6828
|
+
import { isAbsolute as isAbsolute6, join as join7, relative as relative6, sep as sep4 } from "node:path";
|
|
6675
6829
|
|
|
6676
6830
|
// src/integrations/plugins/settings.ts
|
|
6677
6831
|
import { createHash as createHash3, randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -6683,16 +6837,16 @@ import {
|
|
|
6683
6837
|
lstatSync as lstatSync2,
|
|
6684
6838
|
openSync,
|
|
6685
6839
|
readSync,
|
|
6686
|
-
renameSync,
|
|
6840
|
+
renameSync as renameSync2,
|
|
6687
6841
|
unlinkSync,
|
|
6688
6842
|
writeFileSync
|
|
6689
6843
|
} from "node:fs";
|
|
6690
|
-
import { join as
|
|
6844
|
+
import { join as join6 } from "node:path";
|
|
6691
6845
|
var MAX_RECORD_BYTES = 64 * 1024;
|
|
6692
6846
|
var PluginSettingsStore = class {
|
|
6693
6847
|
constructor(home) {
|
|
6694
6848
|
this.home = home;
|
|
6695
|
-
this.directory =
|
|
6849
|
+
this.directory = join6(home, "plugin-settings");
|
|
6696
6850
|
}
|
|
6697
6851
|
home;
|
|
6698
6852
|
static {
|
|
@@ -6701,7 +6855,7 @@ var PluginSettingsStore = class {
|
|
|
6701
6855
|
directory;
|
|
6702
6856
|
path(plugin) {
|
|
6703
6857
|
const key = createHash3("sha256").update(JSON.stringify([plugin.rootDir, plugin.name])).digest("hex");
|
|
6704
|
-
return
|
|
6858
|
+
return join6(this.directory, `${key}.json`);
|
|
6705
6859
|
}
|
|
6706
6860
|
read(plugin) {
|
|
6707
6861
|
const path = this.path(plugin);
|
|
@@ -6762,7 +6916,7 @@ var PluginSettingsStore = class {
|
|
|
6762
6916
|
closeSync(fd);
|
|
6763
6917
|
}
|
|
6764
6918
|
restrictToOwner(temporary);
|
|
6765
|
-
|
|
6919
|
+
renameSync2(temporary, path);
|
|
6766
6920
|
} finally {
|
|
6767
6921
|
try {
|
|
6768
6922
|
unlinkSync(temporary);
|
|
@@ -6783,7 +6937,7 @@ function resolvePluginFileDirs(plugin, rootDir, declared) {
|
|
|
6783
6937
|
const problems = [];
|
|
6784
6938
|
for (const rel of declared ?? []) {
|
|
6785
6939
|
try {
|
|
6786
|
-
const real = realpathSync3(
|
|
6940
|
+
const real = realpathSync3(join7(rootDir, rel));
|
|
6787
6941
|
const within2 = relative6(realpathSync3(rootDir), real);
|
|
6788
6942
|
if (within2 === ".." || within2.startsWith(`..${sep4}`) || isAbsolute6(within2)) {
|
|
6789
6943
|
problems.push(
|
|
@@ -7675,13 +7829,13 @@ __name(createSideModel, "createSideModel");
|
|
|
7675
7829
|
var CLI_CHECKPOINT_RETENTION = 10;
|
|
7676
7830
|
|
|
7677
7831
|
// src/integrations/subagents/definitions.ts
|
|
7678
|
-
import { join as
|
|
7832
|
+
import { join as join8 } from "node:path";
|
|
7679
7833
|
function userAgentsDir(home) {
|
|
7680
|
-
return
|
|
7834
|
+
return join8(namzuHomePath(home), "agents");
|
|
7681
7835
|
}
|
|
7682
7836
|
__name(userAgentsDir, "userAgentsDir");
|
|
7683
7837
|
function projectAgentsDir(cwd) {
|
|
7684
|
-
return
|
|
7838
|
+
return join8(cwd, ".namzu", "agents");
|
|
7685
7839
|
}
|
|
7686
7840
|
__name(projectAgentsDir, "projectAgentsDir");
|
|
7687
7841
|
var AGENT_FILE_PERMISSION_MODES = /* @__PURE__ */ new Set([
|
|
@@ -7780,7 +7934,7 @@ __name(prepareDelegatedEffort, "prepareDelegatedEffort");
|
|
|
7780
7934
|
|
|
7781
7935
|
// src/integrations/subagents/operator-journal.ts
|
|
7782
7936
|
import { appendFile, open as open2 } from "node:fs/promises";
|
|
7783
|
-
import { join as
|
|
7937
|
+
import { join as join9 } from "node:path";
|
|
7784
7938
|
var MAX_READ_BYTES = 256 * 1024;
|
|
7785
7939
|
var MAX_CONTEXT_CHARACTERS = 32e3;
|
|
7786
7940
|
function formatChildOperatorAdmission(input) {
|
|
@@ -7790,7 +7944,7 @@ function formatChildOperatorAdmission(input) {
|
|
|
7790
7944
|
}
|
|
7791
7945
|
__name(formatChildOperatorAdmission, "formatChildOperatorAdmission");
|
|
7792
7946
|
async function readChildOperatorNotices(paths, sessionId) {
|
|
7793
|
-
const path =
|
|
7947
|
+
const path = join9(paths.sessionDir({ sessionId }), "child-operator-messages.jsonl");
|
|
7794
7948
|
let file;
|
|
7795
7949
|
try {
|
|
7796
7950
|
file = await open2(path, "r");
|
|
@@ -7861,7 +8015,7 @@ async function acknowledgeChildOperatorNotices(paths, sessionId, notices) {
|
|
|
7861
8015
|
})
|
|
7862
8016
|
).join("\n");
|
|
7863
8017
|
await appendFile(
|
|
7864
|
-
|
|
8018
|
+
join9(paths.sessionDir({ sessionId }), "child-operator-messages.jsonl"),
|
|
7865
8019
|
`${lines}
|
|
7866
8020
|
`,
|
|
7867
8021
|
{ mode: 384 }
|
|
@@ -7870,7 +8024,7 @@ async function acknowledgeChildOperatorNotices(paths, sessionId, notices) {
|
|
|
7870
8024
|
__name(acknowledgeChildOperatorNotices, "acknowledgeChildOperatorNotices");
|
|
7871
8025
|
async function recordChildOperatorReport(paths, sessionId, notice2) {
|
|
7872
8026
|
await appendFile(
|
|
7873
|
-
|
|
8027
|
+
join9(paths.sessionDir({ sessionId }), "child-operator-messages.jsonl"),
|
|
7874
8028
|
`${JSON.stringify({ ...notice2, status: "child-report", source: "host", at: (/* @__PURE__ */ new Date()).toISOString() })}
|
|
7875
8029
|
`,
|
|
7876
8030
|
{ mode: 384 }
|
|
@@ -8897,7 +9051,7 @@ __name(errorMessage2, "errorMessage");
|
|
|
8897
9051
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
8898
9052
|
import { existsSync } from "node:fs";
|
|
8899
9053
|
import { appendFile as appendFile2, mkdir as mkdir4 } from "node:fs/promises";
|
|
8900
|
-
import { join as
|
|
9054
|
+
import { join as join13 } from "node:path";
|
|
8901
9055
|
|
|
8902
9056
|
// src/integrations/subagents/fork.ts
|
|
8903
9057
|
var FORK_SUBAGENT = "fork";
|
|
@@ -9011,7 +9165,7 @@ __name(describeQuietTask, "describeQuietTask");
|
|
|
9011
9165
|
// src/memory/typed.ts
|
|
9012
9166
|
import { createHash as createHash4 } from "node:crypto";
|
|
9013
9167
|
import { access, readFile as readFile3, rename as rename3, writeFile as writeFile2 } from "node:fs/promises";
|
|
9014
|
-
import { join as
|
|
9168
|
+
import { join as join12 } from "node:path";
|
|
9015
9169
|
|
|
9016
9170
|
// src/memory/io.ts
|
|
9017
9171
|
import {
|
|
@@ -9019,13 +9173,13 @@ import {
|
|
|
9019
9173
|
closeSync as closeSync2,
|
|
9020
9174
|
fstatSync as fstatSync2,
|
|
9021
9175
|
lstatSync as lstatSync3,
|
|
9022
|
-
mkdirSync,
|
|
9176
|
+
mkdirSync as mkdirSync2,
|
|
9023
9177
|
openSync as openSync2,
|
|
9024
9178
|
readSync as readSync2,
|
|
9025
9179
|
realpathSync as realpathSync4,
|
|
9026
9180
|
writeSync
|
|
9027
9181
|
} from "node:fs";
|
|
9028
|
-
import { isAbsolute as isAbsolute7, join as
|
|
9182
|
+
import { isAbsolute as isAbsolute7, join as join10, relative as relative7, resolve as resolve8, sep as sep5 } from "node:path";
|
|
9029
9183
|
var MEMORY_FILE_MAX_BYTES = 1024 * 1024;
|
|
9030
9184
|
function missing(error) {
|
|
9031
9185
|
return error.code === "ENOENT";
|
|
@@ -9046,7 +9200,7 @@ function resolveMemoryPath(location, createParents = false) {
|
|
|
9046
9200
|
} catch (error) {
|
|
9047
9201
|
if (!missing(error)) throw error;
|
|
9048
9202
|
if (!createParents) return null;
|
|
9049
|
-
|
|
9203
|
+
mkdirSync2(root, { recursive: true, mode: 448 });
|
|
9050
9204
|
rootStat = lstatSync3(root);
|
|
9051
9205
|
}
|
|
9052
9206
|
if (rootStat.isSymbolicLink())
|
|
@@ -9058,7 +9212,7 @@ function resolveMemoryPath(location, createParents = false) {
|
|
|
9058
9212
|
for (let i = 0; i < parts.length; i += 1) {
|
|
9059
9213
|
const part = parts[i];
|
|
9060
9214
|
if (part === void 0) throw new Error("Memory path has an invalid segment.");
|
|
9061
|
-
candidate =
|
|
9215
|
+
candidate = join10(candidate, part);
|
|
9062
9216
|
const leaf = i === parts.length - 1;
|
|
9063
9217
|
let stat6;
|
|
9064
9218
|
try {
|
|
@@ -9067,7 +9221,7 @@ function resolveMemoryPath(location, createParents = false) {
|
|
|
9067
9221
|
if (!missing(error)) throw error;
|
|
9068
9222
|
if (!createParents) return null;
|
|
9069
9223
|
if (leaf) return candidate;
|
|
9070
|
-
|
|
9224
|
+
mkdirSync2(candidate, { mode: 448 });
|
|
9071
9225
|
stat6 = lstatSync3(candidate);
|
|
9072
9226
|
}
|
|
9073
9227
|
if (stat6.isSymbolicLink()) {
|
|
@@ -9183,18 +9337,18 @@ __name(appendMemoryFile, "appendMemoryFile");
|
|
|
9183
9337
|
|
|
9184
9338
|
// src/memory/store.ts
|
|
9185
9339
|
import { realpathSync as realpathSync5 } from "node:fs";
|
|
9186
|
-
import { join as
|
|
9340
|
+
import { join as join11, resolve as resolve9 } from "node:path";
|
|
9187
9341
|
var MEMORY_SECTION_MAX_CHARS = 8e3;
|
|
9188
9342
|
function memoryDir(home) {
|
|
9189
9343
|
return namzuHomePath(home);
|
|
9190
9344
|
}
|
|
9191
9345
|
__name(memoryDir, "memoryDir");
|
|
9192
9346
|
function userFilePath(home) {
|
|
9193
|
-
return
|
|
9347
|
+
return join11(memoryDir(home), "USER.md");
|
|
9194
9348
|
}
|
|
9195
9349
|
__name(userFilePath, "userFilePath");
|
|
9196
9350
|
function memoryFilePath(home) {
|
|
9197
|
-
return
|
|
9351
|
+
return join11(memoryDir(home), "MEMORY.md");
|
|
9198
9352
|
}
|
|
9199
9353
|
__name(memoryFilePath, "memoryFilePath");
|
|
9200
9354
|
function projectMemoryFilePath(cwd) {
|
|
@@ -9205,9 +9359,9 @@ function projectMemoryFilePath(cwd) {
|
|
|
9205
9359
|
if (error.code !== "ENOENT") throw error;
|
|
9206
9360
|
}
|
|
9207
9361
|
const root = cliProjectRoot(directory);
|
|
9208
|
-
const local =
|
|
9362
|
+
const local = join11(directory, ".namzu", "MEMORY.md");
|
|
9209
9363
|
if (resolveMemoryPath({ path: local, root }) !== null) return local;
|
|
9210
|
-
return
|
|
9364
|
+
return join11(root, ".namzu", "MEMORY.md");
|
|
9211
9365
|
}
|
|
9212
9366
|
__name(projectMemoryFilePath, "projectMemoryFilePath");
|
|
9213
9367
|
function projectMemoryLocation(cwd) {
|
|
@@ -9237,15 +9391,15 @@ function readMemory(home, cwd) {
|
|
|
9237
9391
|
}
|
|
9238
9392
|
}, "read");
|
|
9239
9393
|
const userRoot = memoryDir(home);
|
|
9240
|
-
const user = read2(
|
|
9394
|
+
const user = read2(join11(userRoot, "USER.md"), () => ({
|
|
9241
9395
|
root: userRoot,
|
|
9242
|
-
path:
|
|
9396
|
+
path: join11(userRoot, "USER.md")
|
|
9243
9397
|
}));
|
|
9244
|
-
const memory = read2(
|
|
9398
|
+
const memory = read2(join11(userRoot, "MEMORY.md"), () => ({
|
|
9245
9399
|
root: userRoot,
|
|
9246
|
-
path:
|
|
9400
|
+
path: join11(userRoot, "MEMORY.md")
|
|
9247
9401
|
}));
|
|
9248
|
-
const project = cwd && !isUserMemoryFile(
|
|
9402
|
+
const project = cwd && !isUserMemoryFile(join11(resolve9(cwd), ".namzu", "MEMORY.md"), userRoot) ? read2(join11(resolve9(cwd), ".namzu", "MEMORY.md"), () => projectLocation(cwd)) : null;
|
|
9249
9403
|
return { user, memory, project, ...diagnostics.length > 0 ? { diagnostics } : {} };
|
|
9250
9404
|
}
|
|
9251
9405
|
__name(readMemory, "readMemory");
|
|
@@ -9257,7 +9411,7 @@ function isUserMemoryFile(projectPath, userRoot) {
|
|
|
9257
9411
|
return resolve9(path);
|
|
9258
9412
|
}
|
|
9259
9413
|
}, "canonical");
|
|
9260
|
-
return canonical(projectPath) === canonical(
|
|
9414
|
+
return canonical(projectPath) === canonical(join11(userRoot, "MEMORY.md"));
|
|
9261
9415
|
}
|
|
9262
9416
|
__name(isUserMemoryFile, "isUserMemoryFile");
|
|
9263
9417
|
function capped(text2, file) {
|
|
@@ -9349,7 +9503,7 @@ async function saveTypedNote(store, text2, type = "project") {
|
|
|
9349
9503
|
saved: false,
|
|
9350
9504
|
duplicate: true,
|
|
9351
9505
|
type: record.entry.type ?? type,
|
|
9352
|
-
...record.entry.name ? { name: record.entry.name, path:
|
|
9506
|
+
...record.entry.name ? { name: record.entry.name, path: join12(store.path, `${record.entry.name}.md`) } : {}
|
|
9353
9507
|
};
|
|
9354
9508
|
}
|
|
9355
9509
|
}
|
|
@@ -9364,7 +9518,7 @@ async function saveTypedNote(store, text2, type = "project") {
|
|
|
9364
9518
|
return {
|
|
9365
9519
|
saved: true,
|
|
9366
9520
|
type,
|
|
9367
|
-
...entry.name ? { name: entry.name, path:
|
|
9521
|
+
...entry.name ? { name: entry.name, path: join12(store.path, `${entry.name}.md`) } : {}
|
|
9368
9522
|
};
|
|
9369
9523
|
}
|
|
9370
9524
|
__name(saveTypedNote, "saveTypedNote");
|
|
@@ -9407,7 +9561,7 @@ __name(composeMemoryGuidance, "composeMemoryGuidance");
|
|
|
9407
9561
|
var MARKER2 = "migration.json";
|
|
9408
9562
|
async function readMarker(directory) {
|
|
9409
9563
|
try {
|
|
9410
|
-
const parsed = JSON.parse(await readFile3(
|
|
9564
|
+
const parsed = JSON.parse(await readFile3(join12(directory, MARKER2), "utf8"));
|
|
9411
9565
|
return parsed !== null && typeof parsed === "object" ? parsed : {};
|
|
9412
9566
|
} catch (error) {
|
|
9413
9567
|
if (error.code === "ENOENT") return {};
|
|
@@ -9420,7 +9574,7 @@ async function markCuratedFile(directory, path, state) {
|
|
|
9420
9574
|
const files = { ...marker.curatedFiles ?? {} };
|
|
9421
9575
|
files[path] = { ...files[path] ?? {}, ...state };
|
|
9422
9576
|
await writeFile2(
|
|
9423
|
-
|
|
9577
|
+
join12(directory, MARKER2),
|
|
9424
9578
|
`${JSON.stringify({ ...marker, curatedFiles: files }, null, 2)}
|
|
9425
9579
|
`,
|
|
9426
9580
|
{ mode: 384 }
|
|
@@ -9487,7 +9641,7 @@ async function migrateMemoryOnce(options) {
|
|
|
9487
9641
|
const skippedRecords = [];
|
|
9488
9642
|
let importedRecords = 0;
|
|
9489
9643
|
let notesOffer;
|
|
9490
|
-
const indexPath =
|
|
9644
|
+
const indexPath = join12(directory, "index.json");
|
|
9491
9645
|
if (await exists(indexPath)) {
|
|
9492
9646
|
try {
|
|
9493
9647
|
const disk = new DiskMemoryStore({ baseDir: directory, directory });
|
|
@@ -9510,11 +9664,11 @@ async function migrateMemoryOnce(options) {
|
|
|
9510
9664
|
}
|
|
9511
9665
|
}
|
|
9512
9666
|
await retire(indexPath);
|
|
9513
|
-
const content =
|
|
9667
|
+
const content = join12(directory, "content");
|
|
9514
9668
|
const retiredContent = await exists(content) ? await retire(content) : content;
|
|
9515
9669
|
for (const record of refused) {
|
|
9516
9670
|
skippedRecords.push(
|
|
9517
|
-
`"${record.title}" (${record.id}) was not moved: ${record.reason} It is kept in ${
|
|
9671
|
+
`"${record.title}" (${record.id}) was not moved: ${record.reason} It is kept in ${join12(retiredContent, `${record.id}.json`)}.`
|
|
9518
9672
|
);
|
|
9519
9673
|
}
|
|
9520
9674
|
} catch (error) {
|
|
@@ -11925,7 +12079,7 @@ ${step}`;
|
|
|
11925
12079
|
sessionId: parent.sessionId
|
|
11926
12080
|
});
|
|
11927
12081
|
await mkdir4(directory, { recursive: true, mode: 448 });
|
|
11928
|
-
journal =
|
|
12082
|
+
journal = join13(directory, "child-operator-messages.jsonl");
|
|
11929
12083
|
}
|
|
11930
12084
|
await audit("submitted");
|
|
11931
12085
|
signal.throwIfAborted();
|
|
@@ -12383,7 +12537,7 @@ __name(buildDefinition, "buildDefinition");
|
|
|
12383
12537
|
|
|
12384
12538
|
// src/integrations/workflows/history.ts
|
|
12385
12539
|
import { readFile as readFile4, readdir as readdir2 } from "node:fs/promises";
|
|
12386
|
-
import { join as
|
|
12540
|
+
import { join as join14 } from "node:path";
|
|
12387
12541
|
var RUN_ID = /^w[0-9a-z]{8}$/;
|
|
12388
12542
|
async function readWorkflowJournal(file) {
|
|
12389
12543
|
let text2;
|
|
@@ -12409,7 +12563,7 @@ async function readWorkflowJournal(file) {
|
|
|
12409
12563
|
__name(readWorkflowJournal, "readWorkflowJournal");
|
|
12410
12564
|
async function readWorkflowRun(runsDirectory, runId) {
|
|
12411
12565
|
if (!RUN_ID.test(runId)) return void 0;
|
|
12412
|
-
const records = await readWorkflowJournal(
|
|
12566
|
+
const records = await readWorkflowJournal(join14(runsDirectory, runId, "workflow", "journal.jsonl"));
|
|
12413
12567
|
return viewFromJournal(records);
|
|
12414
12568
|
}
|
|
12415
12569
|
__name(readWorkflowRun, "readWorkflowRun");
|
|
@@ -12432,7 +12586,7 @@ __name(listWorkflowRuns, "listWorkflowRuns");
|
|
|
12432
12586
|
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
12433
12587
|
import { existsSync as existsSync2 } from "node:fs";
|
|
12434
12588
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
12435
|
-
import { join as
|
|
12589
|
+
import { join as join15 } from "node:path";
|
|
12436
12590
|
|
|
12437
12591
|
// src/integrations/workflows/offering.ts
|
|
12438
12592
|
var WORKFLOW_TOOL_NAME = "workflow";
|
|
@@ -12882,7 +13036,7 @@ function createWorkflowHost(options) {
|
|
|
12882
13036
|
}
|
|
12883
13037
|
let checked;
|
|
12884
13038
|
try {
|
|
12885
|
-
checked = await new FileWorkflowJournal(
|
|
13039
|
+
checked = await new FileWorkflowJournal(join15(runs, runId, "workflow"), {
|
|
12886
13040
|
runId,
|
|
12887
13041
|
...key !== void 0 ? { key } : {}
|
|
12888
13042
|
}).read();
|
|
@@ -12902,7 +13056,7 @@ function createWorkflowHost(options) {
|
|
|
12902
13056
|
}
|
|
12903
13057
|
resumeState = loadWorkflowResume(checked);
|
|
12904
13058
|
if (!resumeState.resumable) {
|
|
12905
|
-
const mismatch = key !== void 0 && await readFile5(
|
|
13059
|
+
const mismatch = key !== void 0 && await readFile5(join15(runs, runId, "workflow", "journal.jsonl"), "utf8").then(
|
|
12906
13060
|
(text2) => journalKeyMismatch(text2, runId, key),
|
|
12907
13061
|
() => false
|
|
12908
13062
|
);
|
|
@@ -12922,12 +13076,12 @@ function createWorkflowHost(options) {
|
|
|
12922
13076
|
if (state === "ended") registry.discard(runId);
|
|
12923
13077
|
} else {
|
|
12924
13078
|
runId = createWorkflowRunId(
|
|
12925
|
-
(id) => registry.get(id) !== void 0 || runs !== void 0 && existsSync2(
|
|
13079
|
+
(id) => registry.get(id) !== void 0 || runs !== void 0 && existsSync2(join15(runs, id))
|
|
12926
13080
|
);
|
|
12927
13081
|
}
|
|
12928
13082
|
const turn = options.openRunTurn(context.turnId, runId);
|
|
12929
13083
|
const limits = options.limitsFor?.(context.turnId);
|
|
12930
|
-
const journalDirectory = runs === void 0 ? void 0 :
|
|
13084
|
+
const journalDirectory = runs === void 0 ? void 0 : join15(runs, runId, "workflow");
|
|
12931
13085
|
const journal = journalDirectory === void 0 ? void 0 : new FileWorkflowJournal(journalDirectory, {
|
|
12932
13086
|
runId,
|
|
12933
13087
|
...key !== void 0 ? { key } : {}
|
|
@@ -12961,7 +13115,7 @@ function createWorkflowHost(options) {
|
|
|
12961
13115
|
...journal ? { journal } : {},
|
|
12962
13116
|
...resumeState ? { resume: resumeState } : {},
|
|
12963
13117
|
...editable !== void 0 ? { scriptPath: editable } : {},
|
|
12964
|
-
...journalDirectory !== void 0 ? { journalPath:
|
|
13118
|
+
...journalDirectory !== void 0 ? { journalPath: join15(journalDirectory, "journal.jsonl") } : {},
|
|
12965
13119
|
spawn: /* @__PURE__ */ __name(async (request, signal, viewed) => {
|
|
12966
13120
|
const detail = phaseDetail(request.phaseTitle);
|
|
12967
13121
|
const outcome2 = await options.subagents.launchWorkflowAgent({
|
|
@@ -13046,7 +13200,7 @@ __name(createWorkflowHost, "createWorkflowHost");
|
|
|
13046
13200
|
// src/integrations/workflows/orphans.ts
|
|
13047
13201
|
import { existsSync as existsSync3 } from "node:fs";
|
|
13048
13202
|
import { readFile as readFile6, readdir as readdir3, writeFile as writeFile3 } from "node:fs/promises";
|
|
13049
|
-
import { join as
|
|
13203
|
+
import { join as join16 } from "node:path";
|
|
13050
13204
|
var NOTICE_FILE = "orphan-notice.json";
|
|
13051
13205
|
var MAX_ORPHAN_NOTICES = 20;
|
|
13052
13206
|
var NO_USAGE = {
|
|
@@ -13065,7 +13219,7 @@ function quotedName(name) {
|
|
|
13065
13219
|
}
|
|
13066
13220
|
__name(quotedName, "quotedName");
|
|
13067
13221
|
function noticePath(runsDirectory, runId) {
|
|
13068
|
-
return
|
|
13222
|
+
return join16(runsDirectory, runId, "workflow", NOTICE_FILE);
|
|
13069
13223
|
}
|
|
13070
13224
|
__name(noticePath, "noticePath");
|
|
13071
13225
|
async function readStored(runsDirectory, runId) {
|
|
@@ -13097,7 +13251,7 @@ async function recoverUnfinishedWorkflows(options) {
|
|
|
13097
13251
|
for (const runId of entries.filter((name) => RUN_ID_PATTERN.test(name)).sort()) {
|
|
13098
13252
|
if (options.liveRunIds.has(runId)) continue;
|
|
13099
13253
|
const stored = await readStored(options.runsDirectory, runId);
|
|
13100
|
-
const dir =
|
|
13254
|
+
const dir = join16(options.runsDirectory, runId, "workflow");
|
|
13101
13255
|
const journal = new FileWorkflowJournal(dir, {
|
|
13102
13256
|
runId,
|
|
13103
13257
|
...options.key !== void 0 ? { key: options.key } : {}
|
|
@@ -13206,7 +13360,7 @@ __name(recoverUnfinishedWorkflows, "recoverUnfinishedWorkflows");
|
|
|
13206
13360
|
async function keyMismatchOf(dir, runId, key) {
|
|
13207
13361
|
if (key === void 0) return false;
|
|
13208
13362
|
try {
|
|
13209
|
-
return journalKeyMismatch(await readFile6(
|
|
13363
|
+
return journalKeyMismatch(await readFile6(join16(dir, "journal.jsonl"), "utf8"), runId, key);
|
|
13210
13364
|
} catch {
|
|
13211
13365
|
return false;
|
|
13212
13366
|
}
|
|
@@ -15621,11 +15775,11 @@ __name(clipRequestContext, "clipRequestContext");
|
|
|
15621
15775
|
async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
15622
15776
|
const modelEnvironment = readModelLaunchEnvironment();
|
|
15623
15777
|
if (options.palEnvironment) {
|
|
15624
|
-
const { createPalAgentSession } = await import("./agent-session-
|
|
15778
|
+
const { createPalAgentSession } = await import("./agent-session-L4GUN5VK.js");
|
|
15625
15779
|
return createPalAgentSession(prefs, detectedProviders, options);
|
|
15626
15780
|
}
|
|
15627
15781
|
let detected = detectedProviders;
|
|
15628
|
-
const { palAtWorkspace } = await import("./store-
|
|
15782
|
+
const { palAtWorkspace } = await import("./store-SFY37GBX.js");
|
|
15629
15783
|
if (palAtWorkspace(options.cwd ?? process.cwd()))
|
|
15630
15784
|
throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
|
|
15631
15785
|
const commandArguments = builtinCommandArguments();
|
|
@@ -16666,7 +16820,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
16666
16820
|
runsDirectory: /* @__PURE__ */ __name((turnId) => {
|
|
16667
16821
|
if (options.ephemeral) return void 0;
|
|
16668
16822
|
const owner = delegationScopes.get(turnId) ?? scope2;
|
|
16669
|
-
return
|
|
16823
|
+
return join17(paths.sessionDir({ sessionId: owner.sessionId }), "runs");
|
|
16670
16824
|
}, "runsDirectory"),
|
|
16671
16825
|
refusal: /* @__PURE__ */ __name((turnId) => {
|
|
16672
16826
|
const auth = delegatedWorkflowAuth.get(turnId);
|
|
@@ -16902,7 +17056,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
16902
17056
|
);
|
|
16903
17057
|
toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
|
|
16904
17058
|
}
|
|
16905
|
-
const operatorPals = await import("./operator-tools-
|
|
17059
|
+
const operatorPals = await import("./operator-tools-NFFCSAO4.js");
|
|
16906
17060
|
toolsets.push(
|
|
16907
17061
|
readyWhen(
|
|
16908
17062
|
toolset(
|
|
@@ -16951,7 +17105,13 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
16951
17105
|
}), "screenPolicyFor");
|
|
16952
17106
|
const liveModeControls = /* @__PURE__ */ new Set();
|
|
16953
17107
|
const recordedModes = /* @__PURE__ */ new Map();
|
|
16954
|
-
const promoteMemory =
|
|
17108
|
+
const promoteMemory = gateMemoryPromotion(
|
|
17109
|
+
createMemoryPromoter({ store: memoryStore }),
|
|
17110
|
+
createDecisionPoints({
|
|
17111
|
+
model: maybeCreateDecisionModel(options.decision, process.env),
|
|
17112
|
+
modes: options.decision?.points
|
|
17113
|
+
})
|
|
17114
|
+
);
|
|
16955
17115
|
const skillCatalog = await createSessionSkillCatalog({
|
|
16956
17116
|
cwd,
|
|
16957
17117
|
...options.skills ? { config: options.skills } : {},
|
|
@@ -17750,7 +17910,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
17750
17910
|
const live = host.registry.list();
|
|
17751
17911
|
const known = new Set(live.map((view) => view.runId));
|
|
17752
17912
|
const saved = options.ephemeral ? [] : await listWorkflowRuns(
|
|
17753
|
-
|
|
17913
|
+
join17(paths.sessionDir({ sessionId: scope2.sessionId }), "runs")
|
|
17754
17914
|
).catch(() => []);
|
|
17755
17915
|
return [
|
|
17756
17916
|
...[...live].sort((a, b) => b.startedAt - a.startedAt),
|
|
@@ -17760,14 +17920,14 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
17760
17920
|
readScript: /* @__PURE__ */ __name((path) => {
|
|
17761
17921
|
const saved = readSavedScript(
|
|
17762
17922
|
path,
|
|
17763
|
-
scriptsDirectory(
|
|
17923
|
+
scriptsDirectory(join17(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"))
|
|
17764
17924
|
);
|
|
17765
17925
|
if (!saved.ok) return void 0;
|
|
17766
17926
|
reviewedScripts.record(saved.path, saved.text);
|
|
17767
17927
|
return saved.text;
|
|
17768
17928
|
}, "readScript"),
|
|
17769
17929
|
describeResume: /* @__PURE__ */ __name((runId, script) => describeResume(
|
|
17770
|
-
|
|
17930
|
+
join17(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
|
|
17771
17931
|
runId,
|
|
17772
17932
|
script,
|
|
17773
17933
|
options.ephemeral ? void 0 : workflowJournalKey(paths.home)
|
|
@@ -17775,13 +17935,13 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
17775
17935
|
recoverUnfinished: /* @__PURE__ */ __name(async () => {
|
|
17776
17936
|
if (options.ephemeral) return [];
|
|
17777
17937
|
return recoverUnfinishedWorkflows({
|
|
17778
|
-
runsDirectory:
|
|
17938
|
+
runsDirectory: join17(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
|
|
17779
17939
|
liveRunIds: new Set(host.registry.list().map((view) => view.runId)),
|
|
17780
17940
|
...workflowJournalKey(paths.home) !== void 0 ? { key: workflowJournalKey(paths.home) } : {}
|
|
17781
17941
|
});
|
|
17782
17942
|
}, "recoverUnfinished"),
|
|
17783
17943
|
noticesDelivered: /* @__PURE__ */ __name((runIds) => markOrphanNoticesDelivered(
|
|
17784
|
-
|
|
17944
|
+
join17(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
|
|
17785
17945
|
runIds
|
|
17786
17946
|
), "noticesDelivered"),
|
|
17787
17947
|
onEnd: /* @__PURE__ */ __name((listener) => {
|
|
@@ -20074,6 +20234,8 @@ export {
|
|
|
20074
20234
|
AGENT_LAUNCH_TOOL,
|
|
20075
20235
|
visibleProjectInstructionPath,
|
|
20076
20236
|
DEFERRED_TOOL_GUIDANCE,
|
|
20237
|
+
createDecisionPoints,
|
|
20238
|
+
verdictOf,
|
|
20077
20239
|
createQuestionGate,
|
|
20078
20240
|
PROGRESS_LOOK_MS,
|
|
20079
20241
|
PROGRESS_LOOK_MIN_GAP_MS,
|
|
@@ -20136,4 +20298,4 @@ export {
|
|
|
20136
20298
|
RESULT_SUMMARY_WHOLE_MAX,
|
|
20137
20299
|
resultSummaryLine
|
|
20138
20300
|
};
|
|
20139
|
-
//# sourceMappingURL=chunk-
|
|
20301
|
+
//# sourceMappingURL=chunk-2C5S3PQM.js.map
|