@namzu/cli 53.2.1 → 53.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 +11 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-RVXP6JYI.js → acp-TKSVSWYT.js} +54 -54
- package/dist/chunks/{activity-command-URELNCMX.js → activity-command-4CXCVUYV.js} +12 -12
- package/dist/chunks/{add-S5EFCMBB.js → add-WKKTCDTH.js} +19 -19
- package/dist/chunks/{agent-FHKVVYCJ.js → agent-FQKVDUJJ.js} +40 -40
- package/dist/chunks/agent-session-MWEOXEBO.js +77 -0
- package/dist/chunks/{apply-at-exit-LR5XT7FM.js → apply-at-exit-LXPT3PKI.js} +8 -8
- package/dist/chunks/{archive-A37GUHNR.js → archive-VC435LJ6.js} +10 -10
- package/dist/chunks/{bin-main-WTM64ZLB.js → bin-main-TCVL5RX5.js} +8 -8
- package/dist/chunks/{binding-JIILVHUU.js → binding-VDQTJSCB.js} +3 -3
- package/dist/chunks/{browser-UYISYE63.js → browser-2YGQPISK.js} +6 -6
- package/dist/chunks/{chat-AJVT3PZ4.js → chat-A2KET642.js} +15 -15
- package/dist/chunks/{chunk-XBQFS7OK.js → chunk-22KWTDG5.js} +2 -2
- package/dist/chunks/{chunk-BY57QRDB.js → chunk-2HRPWZXH.js} +268 -96
- package/dist/chunks/chunk-2HRPWZXH.js.map +6 -0
- package/dist/chunks/{chunk-KC2CIMAX.js → chunk-2QYNA362.js} +4 -4
- package/dist/chunks/{chunk-J6YNCFQG.js → chunk-2T6RCLVR.js} +3 -3
- package/dist/chunks/{chunk-YZPZQJTG.js → chunk-2VD65GMI.js} +2 -2
- package/dist/chunks/{chunk-L4XN5ILM.js → chunk-33WXZTFM.js} +2 -2
- package/dist/chunks/{chunk-XNBNN3OW.js → chunk-3DGEG3E7.js} +3 -3
- package/dist/chunks/{chunk-PIV6IFK2.js → chunk-3KXR3Y2J.js} +4 -4
- package/dist/chunks/{chunk-UZNITHS6.js → chunk-3LBLZFVU.js} +2 -2
- package/dist/chunks/{chunk-GXOQRU72.js → chunk-3OYLROCT.js} +7 -7
- package/dist/chunks/{chunk-AV7SMPXT.js → chunk-3U7XN7PQ.js} +6 -6
- package/dist/chunks/{chunk-M5NXCEVY.js → chunk-474TFQNJ.js} +3 -3
- package/dist/chunks/{chunk-WM6TW355.js → chunk-4MD3CTYK.js} +46 -42
- package/dist/chunks/chunk-4MD3CTYK.js.map +6 -0
- package/dist/chunks/{chunk-2UKMUTVB.js → chunk-4PQRXS6H.js} +6 -6
- package/dist/chunks/{chunk-BBOGGNTL.js → chunk-4RIW2UHY.js} +7 -7
- package/dist/chunks/{chunk-YXX7ARE5.js → chunk-55PUSLIX.js} +2 -2
- package/dist/chunks/{chunk-IFUOFLH7.js → chunk-56OWNTQG.js} +5 -5
- package/dist/chunks/{chunk-WL3HPARH.js → chunk-5WM45GQZ.js} +2 -2
- package/dist/chunks/{chunk-H6UQL66Z.js → chunk-6TA477A2.js} +3 -3
- package/dist/chunks/{chunk-YVLXLUGP.js → chunk-7C43LYSZ.js} +56 -56
- package/dist/chunks/{chunk-XO6WQQ67.js → chunk-7CDM74EE.js} +3 -3
- package/dist/chunks/{chunk-526VZQN4.js → chunk-A7GITM6V.js} +3 -3
- package/dist/chunks/{chunk-AR7JOE6W.js → chunk-APSWZFQE.js} +6 -6
- package/dist/chunks/{chunk-UTT4MLLS.js → chunk-AQ45WE5B.js} +2 -2
- package/dist/chunks/{chunk-PZCNHP7O.js → chunk-AUNFCWUI.js} +2 -2
- package/dist/chunks/{chunk-4DER34EW.js → chunk-B73SNFPZ.js} +2 -2
- package/dist/chunks/{chunk-BT76TYMR.js → chunk-BEK5BN4C.js} +2 -2
- package/dist/chunks/{chunk-2JDHGE5X.js → chunk-CDDPBHJF.js} +2 -2
- package/dist/chunks/{chunk-5LSXNZBY.js → chunk-CO6TO4W2.js} +2 -2
- package/dist/chunks/{chunk-ZIEVVDOR.js → chunk-CX3FCE3I.js} +9 -9
- package/dist/chunks/{chunk-4Q7Y6SKU.js → chunk-CZOQR2XO.js} +5 -5
- package/dist/chunks/{chunk-M56YCKGZ.js → chunk-D724YXPA.js} +4 -4
- package/dist/chunks/{chunk-MOMUAPLM.js → chunk-DBMCK637.js} +9 -9
- package/dist/chunks/{chunk-YZAM5OII.js → chunk-EFMDKOKN.js} +4 -4
- package/dist/chunks/{chunk-FVSMLXXD.js → chunk-EKDZYOAP.js} +5 -5
- package/dist/chunks/{chunk-DADJ4GQ2.js → chunk-F6YHQXPD.js} +2 -2
- package/dist/chunks/{chunk-IRCIEEOM.js → chunk-FDQGRVLS.js} +2 -2
- package/dist/chunks/{chunk-G6FYM5SR.js → chunk-FGUJWE3G.js} +5 -5
- package/dist/chunks/{chunk-XNQMO4UQ.js → chunk-FQIENFVR.js} +4 -4
- package/dist/chunks/{chunk-2CNFTOKO.js → chunk-FX4E76MN.js} +3 -3
- package/dist/chunks/{chunk-NYSXRWIC.js → chunk-G4R3TD3X.js} +2 -2
- package/dist/chunks/{chunk-NTN4HVCG.js → chunk-G5MDOSWI.js} +14 -14
- package/dist/chunks/{chunk-QOGLGPLA.js → chunk-GASNVGYM.js} +2 -2
- package/dist/chunks/{chunk-NMYUBZZU.js → chunk-GG4IQFRX.js} +2 -2
- package/dist/chunks/{chunk-LFJYO4YC.js → chunk-GGL6DUNR.js} +2 -2
- package/dist/chunks/{chunk-AUNCOQGN.js → chunk-GKPS2EFI.js} +2 -2
- package/dist/chunks/{chunk-6E4XSINO.js → chunk-GMDCSWLE.js} +2 -2
- package/dist/chunks/{chunk-DTI6LBPL.js → chunk-HJSN3J2L.js} +2 -2
- package/dist/chunks/{chunk-KGGI2PH4.js → chunk-HU33D7IT.js} +3 -3
- package/dist/chunks/{chunk-XHLQEV4L.js → chunk-HVZIQA7Y.js} +9 -9
- package/dist/chunks/{chunk-YWJ4WKSM.js → chunk-IJHU74VL.js} +38 -38
- package/dist/chunks/{chunk-UHFJTEZV.js → chunk-ISBHRP4B.js} +3 -3
- package/dist/chunks/{chunk-5HZGL2CJ.js → chunk-JI5CATNL.js} +2 -2
- package/dist/chunks/{chunk-ZAJRK64O.js → chunk-JVAZBDDY.js} +2 -2
- package/dist/chunks/{chunk-XH3JG354.js → chunk-KCHQLZEA.js} +3 -3
- package/dist/chunks/{chunk-GELAA6HR.js → chunk-KR6WVSTY.js} +2 -2
- package/dist/chunks/{chunk-IFNX2DCK.js → chunk-LXHNHGVP.js} +3 -3
- package/dist/chunks/{chunk-JLGLQMAN.js → chunk-MEUO6ZCV.js} +4 -4
- package/dist/chunks/{chunk-JIWW55EF.js → chunk-MMBW56O6.js} +3 -3
- package/dist/chunks/{chunk-CVUHHALT.js → chunk-MQHTLBBQ.js} +6 -6
- package/dist/chunks/{chunk-OARZW3MB.js → chunk-NCDJECMF.js} +3 -3
- package/dist/chunks/{chunk-Y6WCUDCQ.js → chunk-NXWTLMCO.js} +3 -3
- package/dist/chunks/{chunk-I2WWQWOI.js → chunk-O24GQWOS.js} +2 -2
- package/dist/chunks/{chunk-ODQ6JG66.js → chunk-OHHBLPVC.js} +3 -3
- package/dist/chunks/{chunk-EVGU3BR6.js → chunk-OPD3PNNM.js} +3 -3
- package/dist/chunks/{chunk-G44HNSPD.js → chunk-ORNBQX7S.js} +2 -2
- package/dist/chunks/{chunk-2IMSB7XK.js → chunk-OVQSSXU5.js} +2 -2
- package/dist/chunks/{chunk-XTS4BWEA.js → chunk-OWR4OIXA.js} +2 -2
- package/dist/chunks/{chunk-LL6ZXDH3.js → chunk-PMPKCDHC.js} +3 -3
- package/dist/chunks/{chunk-EIK35VTY.js → chunk-POV6IQJT.js} +4 -4
- package/dist/chunks/{chunk-KNIPTSFW.js → chunk-QLDPZEX5.js} +3 -3
- package/dist/chunks/{chunk-LEFLHBYY.js → chunk-QMH5BX3D.js} +2 -2
- package/dist/chunks/{chunk-FUPKNX52.js → chunk-QNNZ4GND.js} +3 -3
- package/dist/chunks/{chunk-ZGXGRKTT.js → chunk-SCEU2YVG.js} +4 -4
- package/dist/chunks/{chunk-GXFCNVRN.js → chunk-THG76C3T.js} +5 -5
- package/dist/chunks/{chunk-QIBMSMZA.js → chunk-TXUKNDZD.js} +2 -2
- package/dist/chunks/{chunk-UNSMBZM3.js → chunk-U6ON2ZNN.js} +19 -19
- package/dist/chunks/{chunk-3HLKXSR4.js → chunk-UZF4QI4V.js} +5 -5
- package/dist/chunks/{chunk-3WYIYJID.js → chunk-VEC2DNN6.js} +4 -4
- package/dist/chunks/{chunk-VXRC5XNZ.js → chunk-VH7JHYZJ.js} +5 -5
- package/dist/chunks/{chunk-N7Y7J6RY.js → chunk-VJ34BHLH.js} +10 -10
- package/dist/chunks/{chunk-EMLOKSP6.js → chunk-VJVY6JZL.js} +12 -12
- package/dist/chunks/{chunk-QVVJ5GAJ.js → chunk-VKUDU6IH.js} +2 -2
- package/dist/chunks/{chunk-Q3HGNRKL.js → chunk-VQ6IQ7EA.js} +3 -3
- package/dist/chunks/{chunk-ZJ56MAER.js → chunk-VQ6UEBFB.js} +2 -2
- package/dist/chunks/{chunk-H4SIPZ3Q.js → chunk-VS72UXVO.js} +4 -4
- package/dist/chunks/{chunk-RYVWRI2O.js → chunk-WHSBPWGO.js} +2 -2
- package/dist/chunks/{chunk-EP6JEZ6Y.js → chunk-WOIZGI7M.js} +4 -4
- package/dist/chunks/{chunk-TFXV3553.js → chunk-XAYZT3ZU.js} +3 -3
- package/dist/chunks/{chunk-K7MLADWM.js → chunk-XGH4FG36.js} +3 -3
- package/dist/chunks/{chunk-AZIXXTEN.js → chunk-XTDLTMRY.js} +4 -4
- package/dist/chunks/{chunk-IFCUIKLP.js → chunk-XWPFWPJ2.js} +10 -10
- package/dist/chunks/{chunk-SVEAODES.js → chunk-YJRLBZ6I.js} +4 -4
- package/dist/chunks/{chunk-RZILFYMH.js → chunk-YPVP5NTQ.js} +3 -3
- package/dist/chunks/{chunk-WWFYM2UR.js → chunk-ZRJ42CZZ.js} +2 -2
- package/dist/chunks/{chunk-2FZ5I36Y.js → chunk-ZZHAXZS7.js} +3 -3
- package/dist/chunks/{cli-runtime-ULOMVN5Y.js → cli-runtime-YJ4JREPJ.js} +12 -12
- package/dist/chunks/{commands-MENGP42Y.js → commands-YPPEQTQB.js} +5 -5
- package/dist/chunks/{cost-2D4AKLSB.js → cost-5VARNZUM.js} +3 -3
- package/dist/chunks/{crash-report-NNFSJ43Y.js → crash-report-EGE7NGTH.js} +6 -6
- package/dist/chunks/{dist-GWSFISZW.js → dist-6YHBRQ2D.js} +2 -2
- package/dist/chunks/{dist-EQE2TVFV.js → dist-FOG4COQN.js} +2 -2
- package/dist/chunks/{dist-INIQ54DO.js → dist-JJD2TQED.js} +2 -2
- package/dist/chunks/{dist-6BYDAAGG.js → dist-L5BAAO6B.js} +2 -2
- package/dist/chunks/{dist-AXIGKZIL.js → dist-RW6SV64M.js} +181 -11
- package/dist/chunks/dist-RW6SV64M.js.map +6 -0
- package/dist/chunks/{dist-PNWD3XCT.js → dist-TAZGUABO.js} +10 -2
- package/dist/chunks/{dist-7JVVF6E3.js → dist-XBLTAEAJ.js} +2 -2
- package/dist/chunks/{dist-QXUTKQ55.js → dist-XM4UQIQQ.js} +2 -2
- package/dist/chunks/{doctor-GIFSKHDE.js → doctor-YVEQH55W.js} +36 -36
- package/dist/chunks/{drain-WNGSFYGG.js → drain-5XTQDVV6.js} +9 -9
- package/dist/chunks/{entry-3ZDHM5YQ.js → entry-XTTLD6DE.js} +6 -6
- package/dist/chunks/{eval-4IIX7NIV.js → eval-VC445DR6.js} +7 -7
- package/dist/chunks/{exec-NNLZUIZJ.js → exec-FPKXV4HA.js} +38 -38
- package/dist/chunks/{home-S3SNMFFG.js → home-52JRM65A.js} +3 -3
- package/dist/chunks/{hooks-3T5XVQSK.js → hooks-6KHV6QJN.js} +16 -16
- package/dist/chunks/{hooks-report-3GDKOXB3.js → hooks-report-3LZ7BKBR.js} +15 -15
- package/dist/chunks/{host-BTE2HSHJ.js → host-2K6MPYAT.js} +10 -10
- package/dist/chunks/{host-queries-MWZKZJOA.js → host-queries-XOOUNCMJ.js} +15 -15
- package/dist/chunks/{learn-DA2U4OPO.js → learn-JRLMSGQU.js} +11 -11
- package/dist/chunks/{learn-builtin-R5A4MYGZ.js → learn-builtin-GH4BXJTR.js} +14 -14
- package/dist/chunks/{lifecycle-P3BZYTFI.js → lifecycle-2J2KZE24.js} +28 -28
- package/dist/chunks/{list-SIJK3GE5.js → list-GBRI4NQS.js} +12 -12
- package/dist/chunks/{live-KY5OOYNO.js → live-L74ORWB5.js} +35 -35
- package/dist/chunks/{load-SI2C6QKJ.js → load-FVBVG5CY.js} +7 -7
- package/dist/chunks/{login-WOAZ5OLO.js → login-HTTBNWTE.js} +12 -12
- package/dist/chunks/{logs-ZXSLLFAK.js → logs-V7BWNF35.js} +4 -4
- package/dist/chunks/{mcp-TRDRYPNW.js → mcp-WAVN5NVW.js} +20 -20
- package/dist/chunks/{message-command-LR5MNLOD.js → message-command-TV6UMZZA.js} +46 -46
- package/dist/chunks/{open-KTUOVJCU.js → open-EKL2SYD6.js} +8 -8
- package/dist/chunks/{operator-tools-HN6MNPZW.js → operator-tools-HKPDJMDN.js} +13 -13
- package/dist/chunks/{output-schema-4LL23SA5.js → output-schema-3SV7FA3E.js} +3 -3
- package/dist/chunks/{pal-C7A3S6MR.js → pal-IBKB3TXW.js} +15 -15
- package/dist/chunks/{peers-IYCZ3OWB.js → peers-46C23FIF.js} +6 -6
- package/dist/chunks/{peers-HINKWP3P.js → peers-RV5PLRXJ.js} +9 -9
- package/dist/chunks/{plugin-YBGRF5FP.js → plugin-WMY4UJRI.js} +15 -15
- package/dist/chunks/{providers-AI27XYWT.js → providers-V3SBLB5L.js} +10 -10
- package/dist/chunks/{pty-7OTKGV53.js → pty-T4FX7YOE.js} +3 -3
- package/dist/chunks/resume-VT5LMJPR.js +23 -0
- package/dist/chunks/{resume-command-PG63DMVD.js → resume-command-6CHNMALJ.js} +4 -4
- package/dist/chunks/{running-CNUUXGYY.js → running-I42NAMXS.js} +5 -5
- package/dist/chunks/{schedule-37J3S7UQ.js → schedule-D7VCG6NS.js} +8 -8
- package/dist/chunks/{send-7JV6J5T5.js → send-QQ7OTQ2C.js} +15 -15
- package/dist/chunks/{send-person-J5BSYFXQ.js → send-person-5XI6MKZO.js} +13 -13
- package/dist/chunks/{service-NSMWSI2E.js → service-UOLU7XBM.js} +28 -28
- package/dist/chunks/{skills-AXZ5ETFS.js → skills-RHUMEGQP.js} +13 -13
- package/dist/chunks/{start-check-V2U4533P.js → start-check-2PBRVXD3.js} +2 -2
- package/dist/chunks/{startup-failure-4HKS72EM.js → startup-failure-P34LGDGH.js} +2 -2
- package/dist/chunks/{state-NVCB2RFV.js → state-UHPX7NKN.js} +2 -2
- package/dist/chunks/{store-IACUKT6H.js → store-2743JWSK.js} +10 -10
- package/dist/chunks/{store-2BFQ2UUT.js → store-33CI3HZM.js} +4 -4
- package/dist/chunks/{store-FUNVZ2G4.js → store-4SB5GOD3.js} +6 -6
- package/dist/chunks/{store-XBERR7IC.js → store-5ZPIJRWU.js} +3 -3
- package/dist/chunks/{tui-UOTMH2CQ.js → tui-F3C3HZND.js} +75 -75
- package/dist/chunks/{upgrade-FBBMIEF6.js → upgrade-RXJ5JVE5.js} +9 -9
- package/dist/chunks/{watch-KKCKSEUU.js → watch-BM7XNQGC.js} +78 -78
- package/dist/chunks/{workspaces-WDQH4NP3.js → workspaces-WQLLUBQV.js} +16 -16
- package/dist/chunks/{worktree-SRCZK4CS.js → worktree-4N5Y2P5N.js} +19 -19
- package/dist/index.js +36 -36
- package/dist/integrations/small-model/side-model.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunks/agent-session-NJ6H25QY.js +0 -77
- package/dist/chunks/chunk-BY57QRDB.js.map +0 -6
- package/dist/chunks/chunk-WM6TW355.js.map +0 -6
- package/dist/chunks/dist-AXIGKZIL.js.map +0 -6
- package/dist/chunks/resume-2P6LYLYX.js +0 -23
- /package/dist/chunks/{acp-RVXP6JYI.js.map → acp-TKSVSWYT.js.map} +0 -0
- /package/dist/chunks/{activity-command-URELNCMX.js.map → activity-command-4CXCVUYV.js.map} +0 -0
- /package/dist/chunks/{add-S5EFCMBB.js.map → add-WKKTCDTH.js.map} +0 -0
- /package/dist/chunks/{agent-FHKVVYCJ.js.map → agent-FQKVDUJJ.js.map} +0 -0
- /package/dist/chunks/{agent-session-NJ6H25QY.js.map → agent-session-MWEOXEBO.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-LR5XT7FM.js.map → apply-at-exit-LXPT3PKI.js.map} +0 -0
- /package/dist/chunks/{archive-A37GUHNR.js.map → archive-VC435LJ6.js.map} +0 -0
- /package/dist/chunks/{bin-main-WTM64ZLB.js.map → bin-main-TCVL5RX5.js.map} +0 -0
- /package/dist/chunks/{binding-JIILVHUU.js.map → binding-VDQTJSCB.js.map} +0 -0
- /package/dist/chunks/{browser-UYISYE63.js.map → browser-2YGQPISK.js.map} +0 -0
- /package/dist/chunks/{chat-AJVT3PZ4.js.map → chat-A2KET642.js.map} +0 -0
- /package/dist/chunks/{chunk-XBQFS7OK.js.map → chunk-22KWTDG5.js.map} +0 -0
- /package/dist/chunks/{chunk-KC2CIMAX.js.map → chunk-2QYNA362.js.map} +0 -0
- /package/dist/chunks/{chunk-J6YNCFQG.js.map → chunk-2T6RCLVR.js.map} +0 -0
- /package/dist/chunks/{chunk-YZPZQJTG.js.map → chunk-2VD65GMI.js.map} +0 -0
- /package/dist/chunks/{chunk-L4XN5ILM.js.map → chunk-33WXZTFM.js.map} +0 -0
- /package/dist/chunks/{chunk-XNBNN3OW.js.map → chunk-3DGEG3E7.js.map} +0 -0
- /package/dist/chunks/{chunk-PIV6IFK2.js.map → chunk-3KXR3Y2J.js.map} +0 -0
- /package/dist/chunks/{chunk-UZNITHS6.js.map → chunk-3LBLZFVU.js.map} +0 -0
- /package/dist/chunks/{chunk-GXOQRU72.js.map → chunk-3OYLROCT.js.map} +0 -0
- /package/dist/chunks/{chunk-AV7SMPXT.js.map → chunk-3U7XN7PQ.js.map} +0 -0
- /package/dist/chunks/{chunk-M5NXCEVY.js.map → chunk-474TFQNJ.js.map} +0 -0
- /package/dist/chunks/{chunk-2UKMUTVB.js.map → chunk-4PQRXS6H.js.map} +0 -0
- /package/dist/chunks/{chunk-BBOGGNTL.js.map → chunk-4RIW2UHY.js.map} +0 -0
- /package/dist/chunks/{chunk-YXX7ARE5.js.map → chunk-55PUSLIX.js.map} +0 -0
- /package/dist/chunks/{chunk-IFUOFLH7.js.map → chunk-56OWNTQG.js.map} +0 -0
- /package/dist/chunks/{chunk-WL3HPARH.js.map → chunk-5WM45GQZ.js.map} +0 -0
- /package/dist/chunks/{chunk-H6UQL66Z.js.map → chunk-6TA477A2.js.map} +0 -0
- /package/dist/chunks/{chunk-YVLXLUGP.js.map → chunk-7C43LYSZ.js.map} +0 -0
- /package/dist/chunks/{chunk-XO6WQQ67.js.map → chunk-7CDM74EE.js.map} +0 -0
- /package/dist/chunks/{chunk-526VZQN4.js.map → chunk-A7GITM6V.js.map} +0 -0
- /package/dist/chunks/{chunk-AR7JOE6W.js.map → chunk-APSWZFQE.js.map} +0 -0
- /package/dist/chunks/{chunk-UTT4MLLS.js.map → chunk-AQ45WE5B.js.map} +0 -0
- /package/dist/chunks/{chunk-PZCNHP7O.js.map → chunk-AUNFCWUI.js.map} +0 -0
- /package/dist/chunks/{chunk-4DER34EW.js.map → chunk-B73SNFPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-BT76TYMR.js.map → chunk-BEK5BN4C.js.map} +0 -0
- /package/dist/chunks/{chunk-2JDHGE5X.js.map → chunk-CDDPBHJF.js.map} +0 -0
- /package/dist/chunks/{chunk-5LSXNZBY.js.map → chunk-CO6TO4W2.js.map} +0 -0
- /package/dist/chunks/{chunk-ZIEVVDOR.js.map → chunk-CX3FCE3I.js.map} +0 -0
- /package/dist/chunks/{chunk-4Q7Y6SKU.js.map → chunk-CZOQR2XO.js.map} +0 -0
- /package/dist/chunks/{chunk-M56YCKGZ.js.map → chunk-D724YXPA.js.map} +0 -0
- /package/dist/chunks/{chunk-MOMUAPLM.js.map → chunk-DBMCK637.js.map} +0 -0
- /package/dist/chunks/{chunk-YZAM5OII.js.map → chunk-EFMDKOKN.js.map} +0 -0
- /package/dist/chunks/{chunk-FVSMLXXD.js.map → chunk-EKDZYOAP.js.map} +0 -0
- /package/dist/chunks/{chunk-DADJ4GQ2.js.map → chunk-F6YHQXPD.js.map} +0 -0
- /package/dist/chunks/{chunk-IRCIEEOM.js.map → chunk-FDQGRVLS.js.map} +0 -0
- /package/dist/chunks/{chunk-G6FYM5SR.js.map → chunk-FGUJWE3G.js.map} +0 -0
- /package/dist/chunks/{chunk-XNQMO4UQ.js.map → chunk-FQIENFVR.js.map} +0 -0
- /package/dist/chunks/{chunk-2CNFTOKO.js.map → chunk-FX4E76MN.js.map} +0 -0
- /package/dist/chunks/{chunk-NYSXRWIC.js.map → chunk-G4R3TD3X.js.map} +0 -0
- /package/dist/chunks/{chunk-NTN4HVCG.js.map → chunk-G5MDOSWI.js.map} +0 -0
- /package/dist/chunks/{chunk-QOGLGPLA.js.map → chunk-GASNVGYM.js.map} +0 -0
- /package/dist/chunks/{chunk-NMYUBZZU.js.map → chunk-GG4IQFRX.js.map} +0 -0
- /package/dist/chunks/{chunk-LFJYO4YC.js.map → chunk-GGL6DUNR.js.map} +0 -0
- /package/dist/chunks/{chunk-AUNCOQGN.js.map → chunk-GKPS2EFI.js.map} +0 -0
- /package/dist/chunks/{chunk-6E4XSINO.js.map → chunk-GMDCSWLE.js.map} +0 -0
- /package/dist/chunks/{chunk-DTI6LBPL.js.map → chunk-HJSN3J2L.js.map} +0 -0
- /package/dist/chunks/{chunk-KGGI2PH4.js.map → chunk-HU33D7IT.js.map} +0 -0
- /package/dist/chunks/{chunk-XHLQEV4L.js.map → chunk-HVZIQA7Y.js.map} +0 -0
- /package/dist/chunks/{chunk-YWJ4WKSM.js.map → chunk-IJHU74VL.js.map} +0 -0
- /package/dist/chunks/{chunk-UHFJTEZV.js.map → chunk-ISBHRP4B.js.map} +0 -0
- /package/dist/chunks/{chunk-5HZGL2CJ.js.map → chunk-JI5CATNL.js.map} +0 -0
- /package/dist/chunks/{chunk-ZAJRK64O.js.map → chunk-JVAZBDDY.js.map} +0 -0
- /package/dist/chunks/{chunk-XH3JG354.js.map → chunk-KCHQLZEA.js.map} +0 -0
- /package/dist/chunks/{chunk-GELAA6HR.js.map → chunk-KR6WVSTY.js.map} +0 -0
- /package/dist/chunks/{chunk-IFNX2DCK.js.map → chunk-LXHNHGVP.js.map} +0 -0
- /package/dist/chunks/{chunk-JLGLQMAN.js.map → chunk-MEUO6ZCV.js.map} +0 -0
- /package/dist/chunks/{chunk-JIWW55EF.js.map → chunk-MMBW56O6.js.map} +0 -0
- /package/dist/chunks/{chunk-CVUHHALT.js.map → chunk-MQHTLBBQ.js.map} +0 -0
- /package/dist/chunks/{chunk-OARZW3MB.js.map → chunk-NCDJECMF.js.map} +0 -0
- /package/dist/chunks/{chunk-Y6WCUDCQ.js.map → chunk-NXWTLMCO.js.map} +0 -0
- /package/dist/chunks/{chunk-I2WWQWOI.js.map → chunk-O24GQWOS.js.map} +0 -0
- /package/dist/chunks/{chunk-ODQ6JG66.js.map → chunk-OHHBLPVC.js.map} +0 -0
- /package/dist/chunks/{chunk-EVGU3BR6.js.map → chunk-OPD3PNNM.js.map} +0 -0
- /package/dist/chunks/{chunk-G44HNSPD.js.map → chunk-ORNBQX7S.js.map} +0 -0
- /package/dist/chunks/{chunk-2IMSB7XK.js.map → chunk-OVQSSXU5.js.map} +0 -0
- /package/dist/chunks/{chunk-XTS4BWEA.js.map → chunk-OWR4OIXA.js.map} +0 -0
- /package/dist/chunks/{chunk-LL6ZXDH3.js.map → chunk-PMPKCDHC.js.map} +0 -0
- /package/dist/chunks/{chunk-EIK35VTY.js.map → chunk-POV6IQJT.js.map} +0 -0
- /package/dist/chunks/{chunk-KNIPTSFW.js.map → chunk-QLDPZEX5.js.map} +0 -0
- /package/dist/chunks/{chunk-LEFLHBYY.js.map → chunk-QMH5BX3D.js.map} +0 -0
- /package/dist/chunks/{chunk-FUPKNX52.js.map → chunk-QNNZ4GND.js.map} +0 -0
- /package/dist/chunks/{chunk-ZGXGRKTT.js.map → chunk-SCEU2YVG.js.map} +0 -0
- /package/dist/chunks/{chunk-GXFCNVRN.js.map → chunk-THG76C3T.js.map} +0 -0
- /package/dist/chunks/{chunk-QIBMSMZA.js.map → chunk-TXUKNDZD.js.map} +0 -0
- /package/dist/chunks/{chunk-UNSMBZM3.js.map → chunk-U6ON2ZNN.js.map} +0 -0
- /package/dist/chunks/{chunk-3HLKXSR4.js.map → chunk-UZF4QI4V.js.map} +0 -0
- /package/dist/chunks/{chunk-3WYIYJID.js.map → chunk-VEC2DNN6.js.map} +0 -0
- /package/dist/chunks/{chunk-VXRC5XNZ.js.map → chunk-VH7JHYZJ.js.map} +0 -0
- /package/dist/chunks/{chunk-N7Y7J6RY.js.map → chunk-VJ34BHLH.js.map} +0 -0
- /package/dist/chunks/{chunk-EMLOKSP6.js.map → chunk-VJVY6JZL.js.map} +0 -0
- /package/dist/chunks/{chunk-QVVJ5GAJ.js.map → chunk-VKUDU6IH.js.map} +0 -0
- /package/dist/chunks/{chunk-Q3HGNRKL.js.map → chunk-VQ6IQ7EA.js.map} +0 -0
- /package/dist/chunks/{chunk-ZJ56MAER.js.map → chunk-VQ6UEBFB.js.map} +0 -0
- /package/dist/chunks/{chunk-H4SIPZ3Q.js.map → chunk-VS72UXVO.js.map} +0 -0
- /package/dist/chunks/{chunk-RYVWRI2O.js.map → chunk-WHSBPWGO.js.map} +0 -0
- /package/dist/chunks/{chunk-EP6JEZ6Y.js.map → chunk-WOIZGI7M.js.map} +0 -0
- /package/dist/chunks/{chunk-TFXV3553.js.map → chunk-XAYZT3ZU.js.map} +0 -0
- /package/dist/chunks/{chunk-K7MLADWM.js.map → chunk-XGH4FG36.js.map} +0 -0
- /package/dist/chunks/{chunk-AZIXXTEN.js.map → chunk-XTDLTMRY.js.map} +0 -0
- /package/dist/chunks/{chunk-IFCUIKLP.js.map → chunk-XWPFWPJ2.js.map} +0 -0
- /package/dist/chunks/{chunk-SVEAODES.js.map → chunk-YJRLBZ6I.js.map} +0 -0
- /package/dist/chunks/{chunk-RZILFYMH.js.map → chunk-YPVP5NTQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WWFYM2UR.js.map → chunk-ZRJ42CZZ.js.map} +0 -0
- /package/dist/chunks/{chunk-2FZ5I36Y.js.map → chunk-ZZHAXZS7.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-ULOMVN5Y.js.map → cli-runtime-YJ4JREPJ.js.map} +0 -0
- /package/dist/chunks/{commands-MENGP42Y.js.map → commands-YPPEQTQB.js.map} +0 -0
- /package/dist/chunks/{cost-2D4AKLSB.js.map → cost-5VARNZUM.js.map} +0 -0
- /package/dist/chunks/{crash-report-NNFSJ43Y.js.map → crash-report-EGE7NGTH.js.map} +0 -0
- /package/dist/chunks/{dist-GWSFISZW.js.map → dist-6YHBRQ2D.js.map} +0 -0
- /package/dist/chunks/{dist-EQE2TVFV.js.map → dist-FOG4COQN.js.map} +0 -0
- /package/dist/chunks/{dist-INIQ54DO.js.map → dist-JJD2TQED.js.map} +0 -0
- /package/dist/chunks/{dist-6BYDAAGG.js.map → dist-L5BAAO6B.js.map} +0 -0
- /package/dist/chunks/{dist-PNWD3XCT.js.map → dist-TAZGUABO.js.map} +0 -0
- /package/dist/chunks/{dist-7JVVF6E3.js.map → dist-XBLTAEAJ.js.map} +0 -0
- /package/dist/chunks/{dist-QXUTKQ55.js.map → dist-XM4UQIQQ.js.map} +0 -0
- /package/dist/chunks/{doctor-GIFSKHDE.js.map → doctor-YVEQH55W.js.map} +0 -0
- /package/dist/chunks/{drain-WNGSFYGG.js.map → drain-5XTQDVV6.js.map} +0 -0
- /package/dist/chunks/{entry-3ZDHM5YQ.js.map → entry-XTTLD6DE.js.map} +0 -0
- /package/dist/chunks/{eval-4IIX7NIV.js.map → eval-VC445DR6.js.map} +0 -0
- /package/dist/chunks/{exec-NNLZUIZJ.js.map → exec-FPKXV4HA.js.map} +0 -0
- /package/dist/chunks/{home-S3SNMFFG.js.map → home-52JRM65A.js.map} +0 -0
- /package/dist/chunks/{hooks-3T5XVQSK.js.map → hooks-6KHV6QJN.js.map} +0 -0
- /package/dist/chunks/{hooks-report-3GDKOXB3.js.map → hooks-report-3LZ7BKBR.js.map} +0 -0
- /package/dist/chunks/{host-BTE2HSHJ.js.map → host-2K6MPYAT.js.map} +0 -0
- /package/dist/chunks/{host-queries-MWZKZJOA.js.map → host-queries-XOOUNCMJ.js.map} +0 -0
- /package/dist/chunks/{learn-DA2U4OPO.js.map → learn-JRLMSGQU.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-R5A4MYGZ.js.map → learn-builtin-GH4BXJTR.js.map} +0 -0
- /package/dist/chunks/{lifecycle-P3BZYTFI.js.map → lifecycle-2J2KZE24.js.map} +0 -0
- /package/dist/chunks/{list-SIJK3GE5.js.map → list-GBRI4NQS.js.map} +0 -0
- /package/dist/chunks/{live-KY5OOYNO.js.map → live-L74ORWB5.js.map} +0 -0
- /package/dist/chunks/{load-SI2C6QKJ.js.map → load-FVBVG5CY.js.map} +0 -0
- /package/dist/chunks/{login-WOAZ5OLO.js.map → login-HTTBNWTE.js.map} +0 -0
- /package/dist/chunks/{logs-ZXSLLFAK.js.map → logs-V7BWNF35.js.map} +0 -0
- /package/dist/chunks/{mcp-TRDRYPNW.js.map → mcp-WAVN5NVW.js.map} +0 -0
- /package/dist/chunks/{message-command-LR5MNLOD.js.map → message-command-TV6UMZZA.js.map} +0 -0
- /package/dist/chunks/{open-KTUOVJCU.js.map → open-EKL2SYD6.js.map} +0 -0
- /package/dist/chunks/{operator-tools-HN6MNPZW.js.map → operator-tools-HKPDJMDN.js.map} +0 -0
- /package/dist/chunks/{output-schema-4LL23SA5.js.map → output-schema-3SV7FA3E.js.map} +0 -0
- /package/dist/chunks/{pal-C7A3S6MR.js.map → pal-IBKB3TXW.js.map} +0 -0
- /package/dist/chunks/{peers-IYCZ3OWB.js.map → peers-46C23FIF.js.map} +0 -0
- /package/dist/chunks/{peers-HINKWP3P.js.map → peers-RV5PLRXJ.js.map} +0 -0
- /package/dist/chunks/{plugin-YBGRF5FP.js.map → plugin-WMY4UJRI.js.map} +0 -0
- /package/dist/chunks/{providers-AI27XYWT.js.map → providers-V3SBLB5L.js.map} +0 -0
- /package/dist/chunks/{pty-7OTKGV53.js.map → pty-T4FX7YOE.js.map} +0 -0
- /package/dist/chunks/{resume-2P6LYLYX.js.map → resume-VT5LMJPR.js.map} +0 -0
- /package/dist/chunks/{resume-command-PG63DMVD.js.map → resume-command-6CHNMALJ.js.map} +0 -0
- /package/dist/chunks/{running-CNUUXGYY.js.map → running-I42NAMXS.js.map} +0 -0
- /package/dist/chunks/{schedule-37J3S7UQ.js.map → schedule-D7VCG6NS.js.map} +0 -0
- /package/dist/chunks/{send-7JV6J5T5.js.map → send-QQ7OTQ2C.js.map} +0 -0
- /package/dist/chunks/{send-person-J5BSYFXQ.js.map → send-person-5XI6MKZO.js.map} +0 -0
- /package/dist/chunks/{service-NSMWSI2E.js.map → service-UOLU7XBM.js.map} +0 -0
- /package/dist/chunks/{skills-AXZ5ETFS.js.map → skills-RHUMEGQP.js.map} +0 -0
- /package/dist/chunks/{start-check-V2U4533P.js.map → start-check-2PBRVXD3.js.map} +0 -0
- /package/dist/chunks/{startup-failure-4HKS72EM.js.map → startup-failure-P34LGDGH.js.map} +0 -0
- /package/dist/chunks/{state-NVCB2RFV.js.map → state-UHPX7NKN.js.map} +0 -0
- /package/dist/chunks/{store-2BFQ2UUT.js.map → store-2743JWSK.js.map} +0 -0
- /package/dist/chunks/{store-FUNVZ2G4.js.map → store-33CI3HZM.js.map} +0 -0
- /package/dist/chunks/{store-IACUKT6H.js.map → store-4SB5GOD3.js.map} +0 -0
- /package/dist/chunks/{store-XBERR7IC.js.map → store-5ZPIJRWU.js.map} +0 -0
- /package/dist/chunks/{tui-UOTMH2CQ.js.map → tui-F3C3HZND.js.map} +0 -0
- /package/dist/chunks/{upgrade-FBBMIEF6.js.map → upgrade-RXJ5JVE5.js.map} +0 -0
- /package/dist/chunks/{watch-KKCKSEUU.js.map → watch-BM7XNQGC.js.map} +0 -0
- /package/dist/chunks/{workspaces-WDQH4NP3.js.map → workspaces-WQLLUBQV.js.map} +0 -0
- /package/dist/chunks/{worktree-SRCZK4CS.js.map → worktree-4N5Y2P5N.js.map} +0 -0
|
@@ -325,7 +325,7 @@ var require_brace_expansion = __commonJS({
|
|
|
325
325
|
});
|
|
326
326
|
|
|
327
327
|
// ../sdk/dist/version.js
|
|
328
|
-
var VERSION = "64.
|
|
328
|
+
var VERSION = "64.4.0";
|
|
329
329
|
|
|
330
330
|
// ../sdk/dist/runtime/harness-session/index.js
|
|
331
331
|
import { posix, win32 } from "node:path";
|
|
@@ -31873,6 +31873,18 @@ function accumulateUnpricedCost(current, additionalUsage) {
|
|
|
31873
31873
|
};
|
|
31874
31874
|
}
|
|
31875
31875
|
__name(accumulateUnpricedCost, "accumulateUnpricedCost");
|
|
31876
|
+
function accumulateReportedCost(current, reportedCostUsd) {
|
|
31877
|
+
return {
|
|
31878
|
+
totalCost: current.totalCost + reportedCostUsd,
|
|
31879
|
+
cacheDiscount: current.cacheDiscount,
|
|
31880
|
+
unpricedTokens: current.unpricedTokens
|
|
31881
|
+
};
|
|
31882
|
+
}
|
|
31883
|
+
__name(accumulateReportedCost, "accumulateReportedCost");
|
|
31884
|
+
function hasReportedCost(usage) {
|
|
31885
|
+
return Number.isFinite(usage.reportedCostUsd) && usage.reportedCostUsd >= 0;
|
|
31886
|
+
}
|
|
31887
|
+
__name(hasReportedCost, "hasReportedCost");
|
|
31876
31888
|
function formatCost(usd) {
|
|
31877
31889
|
if (usd === 0)
|
|
31878
31890
|
return "$0.00";
|
|
@@ -32006,15 +32018,22 @@ var WINDOWS = [
|
|
|
32006
32018
|
// (a fine-tune, a distill), and nothing says it keeps the parent's window.
|
|
32007
32019
|
// Over-estimating ends a turn on a provider rejection; under-estimating
|
|
32008
32020
|
// costs a summary. So an id not named here falls to the bare `deepseek`
|
|
32009
|
-
// row below, the 64k the older ids (chat, reasoner, R1 distills) had.
|
|
32010
|
-
//
|
|
32021
|
+
// row below, the 64k the older ids (chat, reasoner, R1 distills) had. Listed
|
|
32022
|
+
// ids are matched whole (see `DEEPSEEK_ONE_MILLION_IDS`), never by
|
|
32011
32023
|
// substring.
|
|
32012
32024
|
["deepseek", 64e3]
|
|
32013
32025
|
];
|
|
32014
32026
|
var DEEPSEEK_ONE_MILLION_IDS = /* @__PURE__ */ new Set([
|
|
32015
32027
|
"deepseek-v4-flash",
|
|
32016
32028
|
"deepseek-v4-pro",
|
|
32017
|
-
"deepseek-flash"
|
|
32029
|
+
"deepseek-flash",
|
|
32030
|
+
// The revisions and dated snapshots a gateway's model list names for the
|
|
32031
|
+
// same generation. Each is listed whole: a new revision is a new row here
|
|
32032
|
+
// (or is reported by the provider), never a prefix match.
|
|
32033
|
+
"deepseek-v4.1-flash",
|
|
32034
|
+
"deepseek-v4.1-flash-1017",
|
|
32035
|
+
"deepseek-v4-flash-0731",
|
|
32036
|
+
"deepseek-v4-pro-0813"
|
|
32018
32037
|
]);
|
|
32019
32038
|
function bareModelName(id3) {
|
|
32020
32039
|
const afterSlash = id3.slice(id3.lastIndexOf("/") + 1);
|
|
@@ -36477,7 +36496,8 @@ function accumulateTokenUsage(current, addition) {
|
|
|
36477
36496
|
// and a turn mixing a reporting driver with a silent one would read as
|
|
36478
36497
|
// though the silent turns did no thinking.
|
|
36479
36498
|
...current.reasoningTokens !== void 0 || addition.reasoningTokens !== void 0 ? { reasoningTokens: (current.reasoningTokens ?? 0) + (addition.reasoningTokens ?? 0) } : {},
|
|
36480
|
-
...current.webSearchRequests !== void 0 || addition.webSearchRequests !== void 0 ? { webSearchRequests: (current.webSearchRequests ?? 0) + (addition.webSearchRequests ?? 0) } : {}
|
|
36499
|
+
...current.webSearchRequests !== void 0 || addition.webSearchRequests !== void 0 ? { webSearchRequests: (current.webSearchRequests ?? 0) + (addition.webSearchRequests ?? 0) } : {},
|
|
36500
|
+
...current.reportedCostUsd !== void 0 || addition.reportedCostUsd !== void 0 ? { reportedCostUsd: (current.reportedCostUsd ?? 0) + (addition.reportedCostUsd ?? 0) } : {}
|
|
36481
36501
|
// `fullPromptTokens`, `cacheTtlMs`, `cacheWriteTtlTokens`, `speed`, `serviceTier`,
|
|
36482
36502
|
// `inferenceGeo` and `cacheMiss` are per-call facts and are deliberately
|
|
36483
36503
|
// not carried into a sum.
|
|
@@ -36509,6 +36529,8 @@ function mergeTokenUsage(current, next2) {
|
|
|
36509
36529
|
...next2.cacheWriteTtlTokens !== void 0 || current.cacheWriteTtlTokens !== void 0 ? { cacheWriteTtlTokens: next2.cacheWriteTtlTokens ?? current.cacheWriteTtlTokens } : {},
|
|
36510
36530
|
...next2.speed !== void 0 || current.speed !== void 0 ? { speed: next2.speed ?? current.speed } : {},
|
|
36511
36531
|
...next2.webSearchRequests !== void 0 || current.webSearchRequests !== void 0 ? { webSearchRequests: Math.max(current.webSearchRequests ?? 0, next2.webSearchRequests ?? 0) } : {},
|
|
36532
|
+
// Cumulative within one call, like the token counts.
|
|
36533
|
+
...next2.reportedCostUsd !== void 0 || current.reportedCostUsd !== void 0 ? { reportedCostUsd: Math.max(current.reportedCostUsd ?? 0, next2.reportedCostUsd ?? 0) } : {},
|
|
36512
36534
|
...next2.serviceTier !== void 0 || current.serviceTier !== void 0 ? { serviceTier: next2.serviceTier ?? current.serviceTier } : {},
|
|
36513
36535
|
...next2.inferenceGeo !== void 0 || current.inferenceGeo !== void 0 ? { inferenceGeo: next2.inferenceGeo ?? current.inferenceGeo } : {},
|
|
36514
36536
|
...next2.cacheMiss !== void 0 || current.cacheMiss !== void 0 ? { cacheMiss: next2.cacheMiss ?? current.cacheMiss } : {}
|
|
@@ -37335,7 +37357,8 @@ ${callCtx.workingStateSummary}`);
|
|
|
37335
37357
|
return [createUserMessage(contextParts.join("\n\n"))];
|
|
37336
37358
|
}
|
|
37337
37359
|
/**
|
|
37338
|
-
* Cost for one call
|
|
37360
|
+
* Cost for one call: the provider's reported charge, else the advisor's own
|
|
37361
|
+
* pricing, else the catalogue.
|
|
37339
37362
|
*
|
|
37340
37363
|
* When neither has a rate this reports the tokens as UNPRICED rather than
|
|
37341
37364
|
* as a cost of zero. The previous version returned a zero rate card and a
|
|
@@ -37347,6 +37370,9 @@ ${callCtx.workingStateSummary}`);
|
|
|
37347
37370
|
* because the number happens to be unenforced.
|
|
37348
37371
|
*/
|
|
37349
37372
|
computeCost(advisor, usage) {
|
|
37373
|
+
if (hasReportedCost(usage)) {
|
|
37374
|
+
return accumulateReportedCost(ZERO_COST, usage.reportedCostUsd);
|
|
37375
|
+
}
|
|
37350
37376
|
const pricing = advisor.pricing ?? resolveModelPricing(advisor.provider.id, advisor.model);
|
|
37351
37377
|
if (!pricing) {
|
|
37352
37378
|
return accumulateUnpricedCost(ZERO_COST, usage);
|
|
@@ -46395,7 +46421,12 @@ var TurnRecorder = class {
|
|
|
46395
46421
|
return resolveModelPricing(servedBy.providerId, servedBy.model);
|
|
46396
46422
|
}
|
|
46397
46423
|
accumulateUsage(usage, servedBy) {
|
|
46398
|
-
|
|
46424
|
+
const { reportedCostUsd: _charged, ...counted } = usage;
|
|
46425
|
+
this.#turn.tokenUsage = accumulateTokenUsage(this.#turn.tokenUsage, counted);
|
|
46426
|
+
if (hasReportedCost(usage)) {
|
|
46427
|
+
this.#turn.costInfo = accumulateReportedCost(this.#turn.costInfo, usage.reportedCostUsd);
|
|
46428
|
+
return;
|
|
46429
|
+
}
|
|
46399
46430
|
const pricing = this.#resolvePricing(servedBy);
|
|
46400
46431
|
this.#turn.costInfo = pricing === void 0 ? accumulateUnpricedCost(this.#turn.costInfo, usage) : accumulateCost(this.#turn.costInfo, usage, pricing);
|
|
46401
46432
|
}
|
|
@@ -52207,6 +52238,9 @@ var GuardCoordinator = class {
|
|
|
52207
52238
|
}
|
|
52208
52239
|
};
|
|
52209
52240
|
|
|
52241
|
+
// ../sdk/dist/runtime/query/iteration/index.js
|
|
52242
|
+
import { createHash as createHash22 } from "node:crypto";
|
|
52243
|
+
|
|
52210
52244
|
// ../sdk/dist/types/agent/task.js
|
|
52211
52245
|
function isTerminalAgentTaskState(state) {
|
|
52212
52246
|
return state === "completed" || state === "failed" || state === "canceled" || state === "rejected";
|
|
@@ -53674,6 +53708,67 @@ function createMemoryRecallStep(options) {
|
|
|
53674
53708
|
}
|
|
53675
53709
|
__name(createMemoryRecallStep, "createMemoryRecallStep");
|
|
53676
53710
|
|
|
53711
|
+
// ../sdk/dist/provider/side-request-reasoning.js
|
|
53712
|
+
var SIDE_REQUEST_REASONING_HEADROOM = 2048;
|
|
53713
|
+
var DISABLED = { type: "disabled" };
|
|
53714
|
+
var LOWEST_FIRST = ["none", "minimal", "low", "medium"];
|
|
53715
|
+
function sideRequestReasoning(provider, model, maxTokens) {
|
|
53716
|
+
let levels;
|
|
53717
|
+
try {
|
|
53718
|
+
levels = provider.reasoningEffortLevelsFor?.(model, DISABLED);
|
|
53719
|
+
} catch {
|
|
53720
|
+
levels = void 0;
|
|
53721
|
+
}
|
|
53722
|
+
if (levels?.includes("none")) {
|
|
53723
|
+
return { thinking: DISABLED, effort: "none", maxTokens };
|
|
53724
|
+
}
|
|
53725
|
+
const roomy = maxTokens + SIDE_REQUEST_REASONING_HEADROOM;
|
|
53726
|
+
if (levels !== void 0 && levels.length > 0) {
|
|
53727
|
+
const lowest = LOWEST_FIRST.find((level) => levels.includes(level)) ?? levels[0];
|
|
53728
|
+
return { thinking: DISABLED, ...lowest ? { effort: lowest } : {}, maxTokens: roomy };
|
|
53729
|
+
}
|
|
53730
|
+
return { thinking: DISABLED, maxTokens: roomy };
|
|
53731
|
+
}
|
|
53732
|
+
__name(sideRequestReasoning, "sideRequestReasoning");
|
|
53733
|
+
function refusesReasoningControls(error62) {
|
|
53734
|
+
const text11 = error62 instanceof Error ? error62.message : String(error62);
|
|
53735
|
+
if (/rate.?limit|too many requests|overloaded|timed? ?out|\b(429|5\d\d)\b/i.test(text11))
|
|
53736
|
+
return false;
|
|
53737
|
+
const names = /\b(thinking|reasoning|effort)\b/i.test(text11);
|
|
53738
|
+
const rejects = /unsupported|not supported|unsupport|invalid|unknown|unrecogni[sz]ed|unexpected|not allowed|not permitted|does not (?:accept|support|allow)|not accept|extra inputs|bad request|\b400\b|\b422\b/i.test(text11);
|
|
53739
|
+
return names && rejects;
|
|
53740
|
+
}
|
|
53741
|
+
__name(refusesReasoningControls, "refusesReasoningControls");
|
|
53742
|
+
var noControls = /* @__PURE__ */ new WeakMap();
|
|
53743
|
+
async function* chatStreamForSideRequest(provider, params, send = (request) => provider.chatStream(request)) {
|
|
53744
|
+
const base3 = params.maxTokens ?? 256;
|
|
53745
|
+
const skip = noControls.get(provider)?.has(params.model) === true;
|
|
53746
|
+
const fields2 = sideRequestReasoning(provider, params.model, base3);
|
|
53747
|
+
const plain = {
|
|
53748
|
+
...params,
|
|
53749
|
+
maxTokens: base3 + SIDE_REQUEST_REASONING_HEADROOM
|
|
53750
|
+
};
|
|
53751
|
+
if (skip) {
|
|
53752
|
+
yield* send(plain);
|
|
53753
|
+
return;
|
|
53754
|
+
}
|
|
53755
|
+
let yielded = false;
|
|
53756
|
+
try {
|
|
53757
|
+
for await (const chunk of send({ ...params, ...fields2 })) {
|
|
53758
|
+
yielded = true;
|
|
53759
|
+
yield chunk;
|
|
53760
|
+
}
|
|
53761
|
+
} catch (error62) {
|
|
53762
|
+
if (yielded || params.signal?.aborted || !refusesReasoningControls(error62))
|
|
53763
|
+
throw error62;
|
|
53764
|
+
const seen = noControls.get(provider) ?? /* @__PURE__ */ new Set();
|
|
53765
|
+
seen.add(params.model);
|
|
53766
|
+
noControls.set(provider, seen);
|
|
53767
|
+
yield* send(plain);
|
|
53768
|
+
}
|
|
53769
|
+
}
|
|
53770
|
+
__name(chatStreamForSideRequest, "chatStreamForSideRequest");
|
|
53771
|
+
|
|
53677
53772
|
// ../sdk/dist/runtime/query/callback-inference.js
|
|
53678
53773
|
var requestSchema = external_exports.object({
|
|
53679
53774
|
system: external_exports.string().min(1).max(12e3),
|
|
@@ -53716,15 +53811,17 @@ function createCallbackInference(ctx, model, phase) {
|
|
|
53716
53811
|
const text11 = new StreamTextAccumulator();
|
|
53717
53812
|
let invalidOutput;
|
|
53718
53813
|
let usage;
|
|
53814
|
+
let finishReason;
|
|
53719
53815
|
try {
|
|
53720
|
-
for await (const chunk of ctx.provider
|
|
53816
|
+
for await (const chunk of chatStreamForSideRequest(ctx.provider, {
|
|
53721
53817
|
model,
|
|
53722
53818
|
providerRoute: route(),
|
|
53723
53819
|
messages: [createSystemMessage(input2.system), createUserMessage(input2.prompt)],
|
|
53724
53820
|
maxTokens: input2.maxTokens,
|
|
53725
|
-
...ctx.turnConfig.effort ? { effort: ctx.turnConfig.effort } : {},
|
|
53726
53821
|
signal
|
|
53727
53822
|
})) {
|
|
53823
|
+
if (chunk.finishReason)
|
|
53824
|
+
finishReason = chunk.finishReason;
|
|
53728
53825
|
if (chunk.usage)
|
|
53729
53826
|
usage = usage ? mergeTokenUsage(usage, chunk.usage) : { ...chunk.usage };
|
|
53730
53827
|
if (chunk.error)
|
|
@@ -53743,7 +53840,12 @@ function createCallbackInference(ctx, model, phase) {
|
|
|
53743
53840
|
throw new Error(`${label5} inference ended without usage.`);
|
|
53744
53841
|
if (invalidOutput)
|
|
53745
53842
|
throw new Error(invalidOutput);
|
|
53746
|
-
return {
|
|
53843
|
+
return {
|
|
53844
|
+
text: text11.text,
|
|
53845
|
+
usage,
|
|
53846
|
+
servedBy: route(),
|
|
53847
|
+
...finishReason ? { finishReason } : {}
|
|
53848
|
+
};
|
|
53747
53849
|
} finally {
|
|
53748
53850
|
if (usage)
|
|
53749
53851
|
ctx.recorder.accumulateUsage(usage, route());
|
|
@@ -55944,9 +56046,10 @@ function parseSnapshot(value) {
|
|
|
55944
56046
|
__name(parseSnapshot, "parseSnapshot");
|
|
55945
56047
|
|
|
55946
56048
|
// ../sdk/dist/runtime/query/turn/stall-monitor.js
|
|
55947
|
-
var REASONING_CAPPED_MESSAGE = "Your thinking for that step reached its limit before you acted, so it was cut short. Act now on what you already know: make the first change, or
|
|
56049
|
+
var REASONING_CAPPED_MESSAGE = "Your thinking for that step reached its limit before you acted, so it was cut short. Act now on what you already know: make the first change, or, if you were asked a question, answer with what you have and say what is missing. Refine as you go; do not plan the whole task again.";
|
|
55948
56050
|
var REASONING_ONLY_MESSAGE = "Your last reply held thinking only: no answer and no action. Continue now: give your answer, or make the call that moves the task forward.";
|
|
55949
|
-
var STALL_NUDGE_MESSAGE = "Several steps have passed and nothing has changed yet. Begin changing things now: make the first edit you are sure of
|
|
56051
|
+
var STALL_NUDGE_MESSAGE = "Several steps have passed and nothing has changed yet. Begin changing things now: make the first edit you are sure of. If you were asked a question, answer it now with what you have and say what is missing. Reading more or planning again will not move the task.";
|
|
56052
|
+
var ANSWER_NOW_MESSAGE = "You were asked a question and the last steps only looked around. Answer it now, in the language the person used and within what they asked for, using what you have already seen. If something is still missing, say what it is instead of running another command. Do not open with an apology.";
|
|
55950
56053
|
var FORCED_STEP_MESSAGE = "This reply must be a tool call, not more planning. Make the call that moves the task forward now.";
|
|
55951
56054
|
var DEFAULT_MAX_REASONING_TOKENS = 24e3;
|
|
55952
56055
|
var CHARS_PER_TOKEN2 = 4;
|
|
@@ -55978,6 +56081,16 @@ function callChangedState(toolName, readOnly, isError) {
|
|
|
55978
56081
|
return readOnly !== true;
|
|
55979
56082
|
}
|
|
55980
56083
|
__name(callChangedState, "callChangedState");
|
|
56084
|
+
var QUESTION_MAX_CHARS = 400;
|
|
56085
|
+
function asksQuestion(text11) {
|
|
56086
|
+
if (text11 === void 0)
|
|
56087
|
+
return false;
|
|
56088
|
+
const trimmed = text11.trim();
|
|
56089
|
+
if (trimmed.length === 0 || trimmed.length > QUESTION_MAX_CHARS)
|
|
56090
|
+
return false;
|
|
56091
|
+
return /[?\uFF1F\u061F](?=$|[\s"'\u201D\u2019)\]])/.test(trimmed);
|
|
56092
|
+
}
|
|
56093
|
+
__name(asksQuestion, "asksQuestion");
|
|
55981
56094
|
var StallMonitor = class {
|
|
55982
56095
|
static {
|
|
55983
56096
|
__name(this, "StallMonitor");
|
|
@@ -55985,6 +56098,7 @@ var StallMonitor = class {
|
|
|
55985
56098
|
nudgeAfterSteps;
|
|
55986
56099
|
nudgeAfterChars;
|
|
55987
56100
|
forceAfterSteps;
|
|
56101
|
+
answerAfterSteps;
|
|
55988
56102
|
idleSteps = 0;
|
|
55989
56103
|
idleChars = 0;
|
|
55990
56104
|
nudged = false;
|
|
@@ -55993,6 +56107,7 @@ var StallMonitor = class {
|
|
|
55993
56107
|
this.nudgeAfterSteps = config2?.nudgeAfterSteps ?? 12;
|
|
55994
56108
|
this.nudgeAfterChars = config2?.nudgeAfterReasoningChars ?? 8e4;
|
|
55995
56109
|
this.forceAfterSteps = config2?.forceAfterSteps ?? 5;
|
|
56110
|
+
this.answerAfterSteps = config2?.answerAfterSteps ?? 6;
|
|
55996
56111
|
}
|
|
55997
56112
|
observe(step) {
|
|
55998
56113
|
if (step.changedState) {
|
|
@@ -56001,18 +56116,24 @@ var StallMonitor = class {
|
|
|
56001
56116
|
}
|
|
56002
56117
|
this.idleSteps += 1;
|
|
56003
56118
|
this.idleChars += step.reasoningChars;
|
|
56119
|
+
const question = step.question === true;
|
|
56004
56120
|
if (!this.nudged) {
|
|
56121
|
+
if (question && this.idleSteps >= this.answerAfterSteps) {
|
|
56122
|
+
this.nudged = true;
|
|
56123
|
+
this.stepsSinceNudge = 0;
|
|
56124
|
+
return { kind: "nudge", text: ANSWER_NOW_MESSAGE };
|
|
56125
|
+
}
|
|
56005
56126
|
if (this.idleSteps >= this.nudgeAfterSteps || this.idleChars >= this.nudgeAfterChars) {
|
|
56006
56127
|
this.nudged = true;
|
|
56007
56128
|
this.stepsSinceNudge = 0;
|
|
56008
|
-
return { kind: "nudge", text: STALL_NUDGE_MESSAGE };
|
|
56129
|
+
return { kind: "nudge", text: question ? ANSWER_NOW_MESSAGE : STALL_NUDGE_MESSAGE };
|
|
56009
56130
|
}
|
|
56010
56131
|
return { kind: "none" };
|
|
56011
56132
|
}
|
|
56012
56133
|
this.stepsSinceNudge += 1;
|
|
56013
56134
|
if (this.stepsSinceNudge >= this.forceAfterSteps) {
|
|
56014
56135
|
this.reset();
|
|
56015
|
-
return { kind: "force" };
|
|
56136
|
+
return question ? { kind: "nudge", text: ANSWER_NOW_MESSAGE } : { kind: "force" };
|
|
56016
56137
|
}
|
|
56017
56138
|
return { kind: "none" };
|
|
56018
56139
|
}
|
|
@@ -61695,7 +61816,7 @@ var RepeatCallTracker = class {
|
|
|
61695
61816
|
toolName,
|
|
61696
61817
|
count: count7,
|
|
61697
61818
|
level: "escalated",
|
|
61698
|
-
text: `You have now called \`${toolName}\` with identical arguments ${count7} times in this turn. Check whether the results or the state have changed. If there is no progress, change the approach or tell the user what is
|
|
61819
|
+
text: `You have now called \`${toolName}\` with identical arguments ${count7} times in this turn. Check whether the results or the state have changed. If there is no progress, change the approach, or answer with what you have and tell the user what is missing.`
|
|
61699
61820
|
};
|
|
61700
61821
|
}
|
|
61701
61822
|
if (count7 >= this.thresholds.notifyAfter && already === void 0) {
|
|
@@ -61704,7 +61825,7 @@ var RepeatCallTracker = class {
|
|
|
61704
61825
|
toolName,
|
|
61705
61826
|
count: count7,
|
|
61706
61827
|
level: "notice",
|
|
61707
|
-
text: `Note: this is call ${count7} of \`${toolName}\` with identical arguments in this turn. If the previous results were not what you needed,
|
|
61828
|
+
text: `Note: this is call ${count7} of \`${toolName}\` with identical arguments in this turn. If the previous results were not what you needed, change the arguments, or answer with what you already have and say what is missing.`
|
|
61708
61829
|
};
|
|
61709
61830
|
}
|
|
61710
61831
|
return void 0;
|
|
@@ -65336,7 +65457,7 @@ function createAutoReviewClassifier(options) {
|
|
|
65336
65457
|
controller.abort(new DeadlineError());
|
|
65337
65458
|
}, deadlineMs);
|
|
65338
65459
|
try {
|
|
65339
|
-
const
|
|
65460
|
+
const request = {
|
|
65340
65461
|
model: options.model,
|
|
65341
65462
|
messages,
|
|
65342
65463
|
maxTokens: stage === 1 ? 64 : 8192,
|
|
@@ -65344,7 +65465,8 @@ function createAutoReviewClassifier(options) {
|
|
|
65344
65465
|
...stage === 1 ? { stop: [VERDICT_STOP] } : {},
|
|
65345
65466
|
cacheControl: { type: "auto" },
|
|
65346
65467
|
signal: controller.signal
|
|
65347
|
-
}
|
|
65468
|
+
};
|
|
65469
|
+
const collected = collectChatCompletion(stage === 1 ? chatStreamForSideRequest(options.provider, request, (sent) => chatStreamWithSamplingRepair(options.provider, sent)) : chatStreamWithSamplingRepair(options.provider, request));
|
|
65348
65470
|
collected.catch(() => {
|
|
65349
65471
|
});
|
|
65350
65472
|
const cutOff = new Promise((_resolve, reject2) => {
|
|
@@ -80463,6 +80585,7 @@ ${feedback}`, "hook-feedback"));
|
|
|
80463
80585
|
return;
|
|
80464
80586
|
const calls = new Map((response.message.toolCalls ?? []).map((c) => [c.id, c]));
|
|
80465
80587
|
let changedState = false;
|
|
80588
|
+
const question = asksQuestion(this.latestUserMessage?.content);
|
|
80466
80589
|
for (const result of results) {
|
|
80467
80590
|
const call2 = calls.get(result.toolCallId);
|
|
80468
80591
|
let readOnly;
|
|
@@ -80472,11 +80595,18 @@ ${feedback}`, "hook-feedback"));
|
|
|
80472
80595
|
} catch {
|
|
80473
80596
|
readOnly = void 0;
|
|
80474
80597
|
}
|
|
80475
|
-
if (callChangedState(result.toolName, readOnly, result.isError))
|
|
80476
|
-
|
|
80598
|
+
if (callChangedState(result.toolName, readOnly, result.isError)) {
|
|
80599
|
+
if (EDIT_TOOLS.has(result.toolName) || !this.seenAgain(result.toolName, call2, result.output)) {
|
|
80600
|
+
changedState = true;
|
|
80601
|
+
}
|
|
80602
|
+
}
|
|
80477
80603
|
}
|
|
80478
80604
|
const reasoningChars = (response.message.reasoning ?? []).reduce((n, block) => n + (block.text?.length ?? 0), 0);
|
|
80479
|
-
const directive = monitor.observe({
|
|
80605
|
+
const directive = monitor.observe({
|
|
80606
|
+
reasoningChars,
|
|
80607
|
+
changedState,
|
|
80608
|
+
question
|
|
80609
|
+
});
|
|
80480
80610
|
if (directive.kind === "nudge") {
|
|
80481
80611
|
this.ctx.log.info("Many steps without a change \u2014 nudging the model to act", {
|
|
80482
80612
|
[NAMZU.TURN_ID]: this.ctx.recorder.turnId
|
|
@@ -80489,6 +80619,20 @@ ${feedback}`, "hook-feedback"));
|
|
|
80489
80619
|
this.forceActionNextStep = true;
|
|
80490
80620
|
}
|
|
80491
80621
|
}
|
|
80622
|
+
/** Fingerprints of the calls this turn has finished, for {@link seenAgain}. */
|
|
80623
|
+
finishedCalls = /* @__PURE__ */ new Set();
|
|
80624
|
+
/**
|
|
80625
|
+
* Whether this call, with this input and this output, was already finished
|
|
80626
|
+
* earlier in the turn; records it either way. A call that gave the same
|
|
80627
|
+
* answer twice did not move anything the second time.
|
|
80628
|
+
*/
|
|
80629
|
+
seenAgain(toolName, call2, output2) {
|
|
80630
|
+
const key6 = createHash22("sha256").update(`${toolName}\0${call2?.function.arguments ?? ""}\0${output2}`).digest("hex");
|
|
80631
|
+
if (this.finishedCalls.has(key6))
|
|
80632
|
+
return true;
|
|
80633
|
+
this.finishedCalls.add(key6);
|
|
80634
|
+
return false;
|
|
80635
|
+
}
|
|
80492
80636
|
async requestFinalResponse(model, reason) {
|
|
80493
80637
|
if (this.ctx.structuredOutput?.mode === "native")
|
|
80494
80638
|
return "structured_output_failed";
|
|
@@ -81846,7 +81990,7 @@ import { lstat as lstat4 } from "node:fs/promises";
|
|
|
81846
81990
|
import { resolve as resolve13 } from "node:path";
|
|
81847
81991
|
|
|
81848
81992
|
// ../sdk/dist/store/evidence/index-page.js
|
|
81849
|
-
import { createHash as
|
|
81993
|
+
import { createHash as createHash23, createHmac as createHmac2, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
81850
81994
|
|
|
81851
81995
|
// ../sdk/dist/store/evidence/compaction-provenance.js
|
|
81852
81996
|
function record2(value) {
|
|
@@ -81961,7 +82105,7 @@ var positionSchema = external_exports.object({
|
|
|
81961
82105
|
textIndex: integer3.default(0)
|
|
81962
82106
|
});
|
|
81963
82107
|
function evidenceSeal(sessionStart, sourceKey) {
|
|
81964
|
-
const key6 =
|
|
82108
|
+
const key6 = createHash23("sha256").update("namzu-session-evidence-v1\n").update(sessionStart).digest();
|
|
81965
82109
|
const mac3 = /* @__PURE__ */ __name((value) => createHmac2("sha256", key6).update(`${sourceKey}
|
|
81966
82110
|
${value}`).digest(), "mac");
|
|
81967
82111
|
return {
|
|
@@ -84146,7 +84290,7 @@ var InMemorySessionTokenBudgetStore = class {
|
|
|
84146
84290
|
};
|
|
84147
84291
|
|
|
84148
84292
|
// ../sdk/dist/store/checkpoint/contract.js
|
|
84149
|
-
import { createHash as
|
|
84293
|
+
import { createHash as createHash24 } from "node:crypto";
|
|
84150
84294
|
var CheckpointIntegrityError = class extends Error {
|
|
84151
84295
|
static {
|
|
84152
84296
|
__name(this, "CheckpointIntegrityError");
|
|
@@ -84181,7 +84325,7 @@ function serializeCheckpoint(checkpoint) {
|
|
|
84181
84325
|
}
|
|
84182
84326
|
__name(serializeCheckpoint, "serializeCheckpoint");
|
|
84183
84327
|
function sha256Hex5(text11) {
|
|
84184
|
-
return
|
|
84328
|
+
return createHash24("sha256").update(text11, "utf8").digest("hex");
|
|
84185
84329
|
}
|
|
84186
84330
|
__name(sha256Hex5, "sha256Hex");
|
|
84187
84331
|
function checkpointRecordPath(checkpointId4) {
|
|
@@ -84771,6 +84915,8 @@ function assertBudgetIsMeasurable(params) {
|
|
|
84771
84915
|
return;
|
|
84772
84916
|
if (params.pricing !== void 0)
|
|
84773
84917
|
return;
|
|
84918
|
+
if (params.provider.capabilities?.reportsRequestCost === true)
|
|
84919
|
+
return;
|
|
84774
84920
|
const model = params.turnConfig.model;
|
|
84775
84921
|
if (resolveModelPricing(params.provider.id, model) !== void 0)
|
|
84776
84922
|
return;
|
|
@@ -87328,7 +87474,7 @@ async function startBidiTurn(params) {
|
|
|
87328
87474
|
__name(startBidiTurn, "startBidiTurn");
|
|
87329
87475
|
|
|
87330
87476
|
// ../sdk/dist/runtime/query/prompt-cache.js
|
|
87331
|
-
import { createHash as
|
|
87477
|
+
import { createHash as createHash25 } from "node:crypto";
|
|
87332
87478
|
var PromptCache = class {
|
|
87333
87479
|
static {
|
|
87334
87480
|
__name(this, "PromptCache");
|
|
@@ -87403,7 +87549,7 @@ var PromptCache = class {
|
|
|
87403
87549
|
this.cachedStaticHash = void 0;
|
|
87404
87550
|
}
|
|
87405
87551
|
computeStaticHash(staticSegment) {
|
|
87406
|
-
return
|
|
87552
|
+
return createHash25("sha256").update(staticSegment).digest("hex").slice(0, 16);
|
|
87407
87553
|
}
|
|
87408
87554
|
computeConfigHash(input2, prompt) {
|
|
87409
87555
|
const parts = [
|
|
@@ -87413,7 +87559,7 @@ var PromptCache = class {
|
|
|
87413
87559
|
// unsegmented text happens to be identical.
|
|
87414
87560
|
input2.contributions?.list().map((c) => [c.id, c.placement]) ?? []
|
|
87415
87561
|
];
|
|
87416
|
-
return
|
|
87562
|
+
return createHash25("sha256").update(JSON.stringify(parts)).digest("hex").slice(0, 16);
|
|
87417
87563
|
}
|
|
87418
87564
|
};
|
|
87419
87565
|
|
|
@@ -91064,7 +91210,7 @@ var LocalExecutionContext = class extends BaseExecutionContext {
|
|
|
91064
91210
|
};
|
|
91065
91211
|
|
|
91066
91212
|
// ../sdk/dist/turn/workspace-fingerprint.js
|
|
91067
|
-
import { createHash as
|
|
91213
|
+
import { createHash as createHash26 } from "node:crypto";
|
|
91068
91214
|
import { lstat as lstat5, readFile as readFile13, readlink } from "node:fs/promises";
|
|
91069
91215
|
import { join as join27 } from "node:path";
|
|
91070
91216
|
var NODE_FS = { lstat: lstat5, readlink, readFile: readFile13 };
|
|
@@ -91080,7 +91226,7 @@ async function untrackedEntry(cwd, rel, fs) {
|
|
|
91080
91226
|
if (!stats.isFile())
|
|
91081
91227
|
return `? ${rel}`;
|
|
91082
91228
|
const body = await fs.readFile(abs);
|
|
91083
|
-
return `F ${rel}\0${
|
|
91229
|
+
return `F ${rel}\0${createHash26("sha256").update(body).digest("hex")}`;
|
|
91084
91230
|
} catch {
|
|
91085
91231
|
return null;
|
|
91086
91232
|
}
|
|
@@ -91125,7 +91271,7 @@ async function fingerprintWorkspace(options) {
|
|
|
91125
91271
|
return null;
|
|
91126
91272
|
parts.push(entry);
|
|
91127
91273
|
}
|
|
91128
|
-
const hash4 =
|
|
91274
|
+
const hash4 = createHash26("sha256");
|
|
91129
91275
|
for (const part2 of parts)
|
|
91130
91276
|
hash4.update(`${Buffer.byteLength(part2, "utf8")}:${part2}`);
|
|
91131
91277
|
return hash4.digest("hex");
|
|
@@ -91355,7 +91501,7 @@ function createMemoryPromoter(options) {
|
|
|
91355
91501
|
__name(createMemoryPromoter, "createMemoryPromoter");
|
|
91356
91502
|
|
|
91357
91503
|
// ../sdk/dist/turn/json-claim-verifier.js
|
|
91358
|
-
import { createHash as
|
|
91504
|
+
import { createHash as createHash27, randomUUID as randomUUID5 } from "node:crypto";
|
|
91359
91505
|
import { performance as performance2 } from "node:perf_hooks";
|
|
91360
91506
|
function scalar(value) {
|
|
91361
91507
|
return value === null || typeof value === "boolean" || typeof value === "string" && value.length <= 2e3 || typeof value === "number" && Number.isSafeInteger(value);
|
|
@@ -91488,7 +91634,7 @@ function createJsonClaimVerifier(options) {
|
|
|
91488
91634
|
requestId: request.requestId,
|
|
91489
91635
|
observedAt: observation.observedAt,
|
|
91490
91636
|
bytes: bytes.byteLength,
|
|
91491
|
-
sha256:
|
|
91637
|
+
sha256: createHash27("sha256").update(bytes).digest("hex")
|
|
91492
91638
|
});
|
|
91493
91639
|
}
|
|
91494
91640
|
ensureActive();
|
|
@@ -91756,7 +91902,12 @@ function createEvidenceQueryResolver() {
|
|
|
91756
91902
|
prompt: input2.prompt,
|
|
91757
91903
|
maxTokens: 512,
|
|
91758
91904
|
signal: context2.signal
|
|
91759
|
-
}).then(({ text: text11 }) =>
|
|
91905
|
+
}).then(({ text: text11, finishReason }) => (
|
|
91906
|
+
// A planner that came back empty, or ran out of tokens before it
|
|
91907
|
+
// finished, said nothing about the question. That is not a failed
|
|
91908
|
+
// plan to report to the model: the lookup adds nothing this turn.
|
|
91909
|
+
!text11.trim() || finishReason === "length" ? null : validateEvidenceQueryResolution(text11, current, history)
|
|
91910
|
+
));
|
|
91760
91911
|
cached4 = { turnId: context2.turnId, query: query2, operator: identity, plan };
|
|
91761
91912
|
return plan;
|
|
91762
91913
|
};
|
|
@@ -98586,7 +98737,7 @@ var DiskTaskStore = class {
|
|
|
98586
98737
|
};
|
|
98587
98738
|
|
|
98588
98739
|
// ../sdk/dist/store/memory/revision.js
|
|
98589
|
-
import { createHash as
|
|
98740
|
+
import { createHash as createHash28 } from "node:crypto";
|
|
98590
98741
|
var MemoryRevisionUnavailableError = class extends Error {
|
|
98591
98742
|
static {
|
|
98592
98743
|
__name(this, "MemoryRevisionUnavailableError");
|
|
@@ -98692,7 +98843,7 @@ function canonicalRecord(record4) {
|
|
|
98692
98843
|
}
|
|
98693
98844
|
__name(canonicalRecord, "canonicalRecord");
|
|
98694
98845
|
function memoryRevision(record4) {
|
|
98695
|
-
return `m2:${
|
|
98846
|
+
return `m2:${createHash28("sha256").update(canonicalRecord(record4)).digest("hex")}`;
|
|
98696
98847
|
}
|
|
98697
98848
|
__name(memoryRevision, "memoryRevision");
|
|
98698
98849
|
var MemoryRevisionConflictError = class extends NamzuError {
|
|
@@ -99452,7 +99603,7 @@ var DiskMemoryStore = class {
|
|
|
99452
99603
|
};
|
|
99453
99604
|
|
|
99454
99605
|
// ../sdk/dist/store/memory/markdown.js
|
|
99455
|
-
import { createHash as
|
|
99606
|
+
import { createHash as createHash29 } from "node:crypto";
|
|
99456
99607
|
import { lstat as lstat8, mkdir as mkdir15, readFile as readFile18, readdir as readdir11, realpath as realpath9, rename as rename6, unlink as unlink12 } from "node:fs/promises";
|
|
99457
99608
|
import { dirname as dirname19, join as join34, resolve as resolve18 } from "node:path";
|
|
99458
99609
|
|
|
@@ -99692,7 +99843,7 @@ function invalidFile(file2, reason, cause) {
|
|
|
99692
99843
|
}
|
|
99693
99844
|
__name(invalidFile, "invalidFile");
|
|
99694
99845
|
function derivedMemoryId(name2) {
|
|
99695
|
-
const hex4 =
|
|
99846
|
+
const hex4 = createHash29("sha256").update(`namzu-memory-name:${name2}`).digest("hex");
|
|
99696
99847
|
const variant = (Number.parseInt(hex4[16] ?? "0", 16) & 3 | 8).toString(16);
|
|
99697
99848
|
return `${hex4.slice(0, 8)}-${hex4.slice(8, 12)}-8${hex4.slice(13, 16)}-${variant}${hex4.slice(17, 20)}-${hex4.slice(20, 32)}`;
|
|
99698
99849
|
}
|
|
@@ -105607,7 +105758,7 @@ function toolResultToMCPToolResult(result) {
|
|
|
105607
105758
|
__name(toolResultToMCPToolResult, "toolResultToMCPToolResult");
|
|
105608
105759
|
|
|
105609
105760
|
// ../sdk/dist/connector/mcp/policy.js
|
|
105610
|
-
import { createHash as
|
|
105761
|
+
import { createHash as createHash30 } from "node:crypto";
|
|
105611
105762
|
function applyToolPolicy(tools, policy) {
|
|
105612
105763
|
return applyNamePolicy(tools, policy);
|
|
105613
105764
|
}
|
|
@@ -105647,7 +105798,7 @@ function toolsHash(tools) {
|
|
|
105647
105798
|
// fingerprint built to catch exactly that rug-pull saw nothing.
|
|
105648
105799
|
annotations: stableStringify2(tool.annotations)
|
|
105649
105800
|
}));
|
|
105650
|
-
return
|
|
105801
|
+
return createHash30("sha256").update(JSON.stringify(canonical4)).digest("hex");
|
|
105651
105802
|
}
|
|
105652
105803
|
__name(toolsHash, "toolsHash");
|
|
105653
105804
|
function diffTools(before, after) {
|
|
@@ -105870,7 +106021,7 @@ var MCPToolDiscovery = class {
|
|
|
105870
106021
|
};
|
|
105871
106022
|
|
|
105872
106023
|
// ../sdk/dist/connector/mcp/mcp-toolset.js
|
|
105873
|
-
import { createHash as
|
|
106024
|
+
import { createHash as createHash31 } from "node:crypto";
|
|
105874
106025
|
|
|
105875
106026
|
// ../sdk/dist/connector/mcp/prompt-adapter.js
|
|
105876
106027
|
function renderPromptMessages(serverName, promptName, messages, description) {
|
|
@@ -105941,7 +106092,7 @@ function mcpToolsetName(serverName, ...segments) {
|
|
|
105941
106092
|
const full = ["mcp", serverName, ...segments].join("__");
|
|
105942
106093
|
if (full.length <= MCP_TOOLSET_NAME_MAX_LENGTH)
|
|
105943
106094
|
return full;
|
|
105944
|
-
const hash4 =
|
|
106095
|
+
const hash4 = createHash31("sha256").update(full).digest("hex").slice(0, 8);
|
|
105945
106096
|
const suffix = `_${hash4}`;
|
|
105946
106097
|
return `${full.slice(0, MCP_TOOLSET_NAME_MAX_LENGTH - suffix.length)}${suffix}`;
|
|
105947
106098
|
}
|
|
@@ -109678,7 +109829,7 @@ var AgentManager = class {
|
|
|
109678
109829
|
deps;
|
|
109679
109830
|
topicManager;
|
|
109680
109831
|
pendingSpawns = /* @__PURE__ */ new Map();
|
|
109681
|
-
drainingParents = /* @__PURE__ */ new
|
|
109832
|
+
drainingParents = /* @__PURE__ */ new Map();
|
|
109682
109833
|
executingTasks = /* @__PURE__ */ new Set();
|
|
109683
109834
|
cancelingTasks = /* @__PURE__ */ new Set();
|
|
109684
109835
|
admissionTimer;
|
|
@@ -109775,14 +109926,19 @@ var AgentManager = class {
|
|
|
109775
109926
|
} catch (error62) {
|
|
109776
109927
|
this.failAdmission(entry, error62);
|
|
109777
109928
|
}
|
|
109778
|
-
this.pumpAdmissions(options.parentSessionId);
|
|
109929
|
+
await this.pumpAdmissions(options.parentSessionId);
|
|
109930
|
+
if (entry.ready && task.state === "pending" && !this.disposed)
|
|
109931
|
+
await this.pumpAdmissions(options.parentSessionId);
|
|
109779
109932
|
return task;
|
|
109780
109933
|
}
|
|
109934
|
+
/** Run one admission pass; resolves when it has started what it can, never rejects. */
|
|
109781
109935
|
pumpAdmissions(parentSessionId) {
|
|
109782
|
-
if (this.disposed
|
|
109783
|
-
return;
|
|
109784
|
-
this.drainingParents.
|
|
109785
|
-
|
|
109936
|
+
if (this.disposed)
|
|
109937
|
+
return Promise.resolve();
|
|
109938
|
+
const running = this.drainingParents.get(parentSessionId);
|
|
109939
|
+
if (running)
|
|
109940
|
+
return running;
|
|
109941
|
+
const pass = this.drainAdmissions(parentSessionId).finally(() => {
|
|
109786
109942
|
this.drainingParents.delete(parentSessionId);
|
|
109787
109943
|
if (!this.disposed && this.pendingSpawns.size > 0 && !this.admissionTimer) {
|
|
109788
109944
|
this.admissionTimer = setTimeout(() => {
|
|
@@ -109795,6 +109951,8 @@ var AgentManager = class {
|
|
|
109795
109951
|
}).catch((error62) => this.log.error("Delegation admission failed", {
|
|
109796
109952
|
"exception.message": toErrorMessage(error62)
|
|
109797
109953
|
}));
|
|
109954
|
+
this.drainingParents.set(parentSessionId, pass);
|
|
109955
|
+
return pass;
|
|
109798
109956
|
}
|
|
109799
109957
|
async drainAdmissions(parentSessionId) {
|
|
109800
109958
|
const queue = this.pendingSpawns.get(parentSessionId);
|
|
@@ -119727,7 +119885,7 @@ function extractStreamUsage(usage) {
|
|
|
119727
119885
|
inputTokens: u.inputTokens ?? u.promptTokens,
|
|
119728
119886
|
outputTokens: u.outputTokens ?? u.completionTokens,
|
|
119729
119887
|
totalTokens: u.totalTokens,
|
|
119730
|
-
costUsd: u.costUsd
|
|
119888
|
+
costUsd: u.costUsd ?? u.reportedCostUsd
|
|
119731
119889
|
};
|
|
119732
119890
|
}
|
|
119733
119891
|
__name(extractStreamUsage, "extractStreamUsage");
|
|
@@ -120474,7 +120632,7 @@ function upsertBy(items, key6, next2) {
|
|
|
120474
120632
|
__name(upsertBy, "upsertBy");
|
|
120475
120633
|
|
|
120476
120634
|
// ../sdk/dist/session/workspace/hooked-driver.js
|
|
120477
|
-
import { createHash as
|
|
120635
|
+
import { createHash as createHash32 } from "node:crypto";
|
|
120478
120636
|
import { lstat as lstat10, readdir as readdir14, stat as stat16 } from "node:fs/promises";
|
|
120479
120637
|
import { isAbsolute as isAbsolute18, join as join42, resolve as resolve24 } from "node:path";
|
|
120480
120638
|
function worktreeHookHost(manager, sessionId5) {
|
|
@@ -120532,7 +120690,7 @@ async function fingerprint(root) {
|
|
|
120532
120690
|
} catch {
|
|
120533
120691
|
return void 0;
|
|
120534
120692
|
}
|
|
120535
|
-
return
|
|
120693
|
+
return createHash32("sha1").update(lines.join("\n")).digest("hex");
|
|
120536
120694
|
}
|
|
120537
120695
|
__name(fingerprint, "fingerprint");
|
|
120538
120696
|
var HookedWorkspaceDriver = class {
|
|
@@ -122100,7 +122258,7 @@ var InMemorySessionStore = class {
|
|
|
122100
122258
|
};
|
|
122101
122259
|
|
|
122102
122260
|
// ../sdk/dist/store/session/disk.js
|
|
122103
|
-
import { createHash as
|
|
122261
|
+
import { createHash as createHash33 } from "node:crypto";
|
|
122104
122262
|
import { mkdir as mkdir19, rm as rm7 } from "node:fs/promises";
|
|
122105
122263
|
import { join as join44, resolve as resolve27 } from "node:path";
|
|
122106
122264
|
var SCHEMA9 = defineSchema({
|
|
@@ -122269,7 +122427,7 @@ var DiskSessionStore = class {
|
|
|
122269
122427
|
}
|
|
122270
122428
|
rootPathBindingLocation(rootPath, tenantId2) {
|
|
122271
122429
|
const key6 = rootPathIndexKey(rootPath, tenantId2);
|
|
122272
|
-
const digest8 =
|
|
122430
|
+
const digest8 = createHash33("sha256").update(key6).digest("hex");
|
|
122273
122431
|
const root = join44(this.rootDir, "projects", ".root-path-index", digest8.slice(0, 2));
|
|
122274
122432
|
return {
|
|
122275
122433
|
legacyPath: join44(root, `${digest8.slice(2)}.json`),
|
|
@@ -123865,7 +124023,7 @@ function evalSetting(path2) {
|
|
|
123865
124023
|
__name(evalSetting, "evalSetting");
|
|
123866
124024
|
|
|
123867
124025
|
// ../sdk/dist/eval/settings.js
|
|
123868
|
-
import { createHash as
|
|
124026
|
+
import { createHash as createHash34 } from "node:crypto";
|
|
123869
124027
|
var SETTINGS_DIGEST_ALGORITHM = "sha256-canonical-json-1";
|
|
123870
124028
|
var DEFAULT_SETTINGS_NAME = "default";
|
|
123871
124029
|
function isRecord7(value) {
|
|
@@ -123961,7 +124119,7 @@ function buildSettingsSnapshot(name2, values = {}) {
|
|
|
123961
124119
|
}
|
|
123962
124120
|
return {
|
|
123963
124121
|
name: name2,
|
|
123964
|
-
digest:
|
|
124122
|
+
digest: createHash34("sha256").update(canonical4).digest("hex"),
|
|
123965
124123
|
algorithm: SETTINGS_DIGEST_ALGORITHM,
|
|
123966
124124
|
// A copy through the canonical form, so what is stored is what was hashed.
|
|
123967
124125
|
values: JSON.parse(canonical4)
|
|
@@ -124006,7 +124164,7 @@ function diffSettings(a, b) {
|
|
|
124006
124164
|
__name(diffSettings, "diffSettings");
|
|
124007
124165
|
|
|
124008
124166
|
// ../sdk/dist/eval/split.js
|
|
124009
|
-
import { createHash as
|
|
124167
|
+
import { createHash as createHash35 } from "node:crypto";
|
|
124010
124168
|
var SPLIT_FILTERS = ["tune", "held-out", "all"];
|
|
124011
124169
|
var TASK_SPLIT_SEED = "namzu-eval-split-1";
|
|
124012
124170
|
var HELD_OUT_FRACTION = 0.5;
|
|
@@ -124015,7 +124173,7 @@ function taskId(suite, name2) {
|
|
|
124015
124173
|
}
|
|
124016
124174
|
__name(taskId, "taskId");
|
|
124017
124175
|
function hashedSplit(suite, name2) {
|
|
124018
|
-
const digest8 =
|
|
124176
|
+
const digest8 = createHash35("sha256").update(`${TASK_SPLIT_SEED}\0${suite}\0${name2}`).digest();
|
|
124019
124177
|
const fraction = digest8.readUIntBE(0, 6) / 2 ** 48;
|
|
124020
124178
|
return fraction < HELD_OUT_FRACTION ? "held-out" : "tune";
|
|
124021
124179
|
}
|
|
@@ -124539,15 +124697,19 @@ function judgeScorer(config2) {
|
|
|
124539
124697
|
return {
|
|
124540
124698
|
name: config2.name ?? "judge",
|
|
124541
124699
|
async score(turn, evalCase, signal) {
|
|
124542
|
-
const response = await collectChatCompletion(
|
|
124543
|
-
|
|
124544
|
-
|
|
124545
|
-
|
|
124546
|
-
|
|
124547
|
-
|
|
124548
|
-
|
|
124549
|
-
|
|
124550
|
-
|
|
124700
|
+
const response = await collectChatCompletion(
|
|
124701
|
+
// A grade is a side request: a thinking model must not spend the
|
|
124702
|
+
// whole allowance on reasoning and hand back nothing to grade.
|
|
124703
|
+
chatStreamForSideRequest(provider, {
|
|
124704
|
+
model: config2.model,
|
|
124705
|
+
messages: [{ role: "user", content: buildPrompt(config2, turn, evalCase, scale) }],
|
|
124706
|
+
// The same turn must grade the same way twice, or a
|
|
124707
|
+
// regression cannot be told from sampling noise.
|
|
124708
|
+
temperature: 0,
|
|
124709
|
+
maxTokens: 512,
|
|
124710
|
+
...signal ? { signal } : {}
|
|
124711
|
+
}, (request) => chatStreamWithSamplingRepair(provider, request))
|
|
124712
|
+
);
|
|
124551
124713
|
const verdict2 = parseVerdict2(response.message.content ?? "", scale);
|
|
124552
124714
|
return {
|
|
124553
124715
|
score: verdict2.grade / scale,
|
|
@@ -125341,8 +125503,14 @@ var CODING_AGENT_WORKING_DOCTRINE = `## How you work
|
|
|
125341
125503
|
- After a broad \`git add\`, review what was staged before committing; a file whose name looks harmless can still carry a secret.
|
|
125342
125504
|
- Never change git configuration or other persistent settings without asking: not \`user.name\` or \`user.email\`, hooks, remotes, credential helpers, or any \`git config\` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.
|
|
125343
125505
|
|
|
125506
|
+
### Answering a question
|
|
125507
|
+
- When the user asks a question or describes a problem, your reply answers or assesses it first. Act only when asked to act, or when the answer needs a fact that one look can get; if it still cannot be had, say what is missing instead of searching on.
|
|
125508
|
+
- Never open a reply with an apology or with agreement for its own sake. Begin with the answer.
|
|
125509
|
+
- A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.
|
|
125510
|
+
- Reply in the language the user wrote in and keep to the form they asked for, for example money and not tokens.
|
|
125511
|
+
|
|
125344
125512
|
### Keeping the user informed
|
|
125345
|
-
- Before your first tool call, say in one short line what you are about to do and why. While you work, add a one-line update when you find something, change direction or hit a blocker, and after a long stretch without one, say in a few words where you are, then continue. Brief is good and silence is not; the tool rows on screen already show the details.
|
|
125513
|
+
- Before your first tool call, say in one short line what you are about to do and why. While you work, add a one-line update when you find something, change direction or hit a blocker, and after a long stretch without one, say in a few words where you are, then continue. Brief is good and silence is not; the tool rows on screen already show the details. A reply that is itself the answer needs no such line.
|
|
125346
125514
|
- Keep the final reply short and specific: what changed, what was verified, what is left.`;
|
|
125347
125515
|
var CODING_AGENT_DELEGATION_DOCTRINE = `### Planning and delegating
|
|
125348
125516
|
- A task list is optional. For work of three or more distinct steps \u2014 several files, several separate stages \u2014 you may keep one: exactly one step marked in progress at a time, each marked done when it is done rather than at the end, and the list cleared away once everything is done. Do not make one for a single inspect-edit-test cycle or a two-step job; a list of one or two items tells the user nothing. Keeping a list is not progress on the task itself.
|
|
@@ -125829,7 +125997,7 @@ function analyzeContextUsage(input2) {
|
|
|
125829
125997
|
__name(analyzeContextUsage, "analyzeContextUsage");
|
|
125830
125998
|
|
|
125831
125999
|
// ../sdk/dist/learning/skill.js
|
|
125832
|
-
import { createHash as
|
|
126000
|
+
import { createHash as createHash36 } from "node:crypto";
|
|
125833
126001
|
var label = external_exports.string().trim().min(1).max(256);
|
|
125834
126002
|
var name = external_exports.string().regex(/^[a-z0-9][a-z0-9_-]{0,63}$/);
|
|
125835
126003
|
var digest3 = external_exports.string().regex(/^[a-f0-9]{64}$/);
|
|
@@ -125982,7 +126150,7 @@ function reviseLearningProfile(current, input2) {
|
|
|
125982
126150
|
__name(reviseLearningProfile, "reviseLearningProfile");
|
|
125983
126151
|
function hashLearningSkill(input2) {
|
|
125984
126152
|
const candidate = candidateSchema.parse(input2);
|
|
125985
|
-
return
|
|
126153
|
+
return createHash36("sha256").update(JSON.stringify([
|
|
125986
126154
|
candidate.name,
|
|
125987
126155
|
candidate.description,
|
|
125988
126156
|
candidate.body,
|
|
@@ -126022,13 +126190,13 @@ function promoteLearningSkill(current, input2, evaluation, inputEvidence) {
|
|
|
126022
126190
|
verification: {
|
|
126023
126191
|
baselineHash,
|
|
126024
126192
|
candidateHash: hash4,
|
|
126025
|
-
evidenceDigest:
|
|
126193
|
+
evidenceDigest: createHash36("sha256").update(JSON.stringify({ ...evaluation, protection })).digest("hex"),
|
|
126026
126194
|
verificationTasks: review.verification.tasks.length,
|
|
126027
126195
|
confirmationTasks: review.confirmation?.tasks.length ?? 0,
|
|
126028
126196
|
protection: {
|
|
126029
126197
|
verificationTasks: protection.verification.length,
|
|
126030
126198
|
confirmationTasks: protection.confirmation.length,
|
|
126031
|
-
planDigest:
|
|
126199
|
+
planDigest: createHash36("sha256").update(JSON.stringify(protection)).digest("hex")
|
|
126032
126200
|
}
|
|
126033
126201
|
}
|
|
126034
126202
|
};
|
|
@@ -126137,10 +126305,10 @@ function projectLearning(current, options) {
|
|
|
126137
126305
|
__name(projectLearning, "projectLearning");
|
|
126138
126306
|
|
|
126139
126307
|
// ../sdk/dist/learning/cycle.js
|
|
126140
|
-
import { createHash as
|
|
126308
|
+
import { createHash as createHash38, randomUUID as randomUUID9 } from "node:crypto";
|
|
126141
126309
|
|
|
126142
126310
|
// ../sdk/dist/learning/guidance.js
|
|
126143
|
-
import { createHash as
|
|
126311
|
+
import { createHash as createHash37 } from "node:crypto";
|
|
126144
126312
|
import { readdir as readdir16 } from "node:fs/promises";
|
|
126145
126313
|
import { join as join45 } from "node:path";
|
|
126146
126314
|
import { isDeepStrictEqual as isDeepStrictEqual7 } from "node:util";
|
|
@@ -126185,7 +126353,7 @@ var ADOPTED_MARKER = "adopted.json";
|
|
|
126185
126353
|
var REVISION_FILE = /^([1-9][0-9]{0,15})\.json$/;
|
|
126186
126354
|
function keySegment(key6) {
|
|
126187
126355
|
const encoded = revisionFileSegment(key6);
|
|
126188
|
-
return encoded.length <= 255 ? encoded : `~sha256-${
|
|
126356
|
+
return encoded.length <= 255 ? encoded : `~sha256-${createHash37("sha256").update(encoded).digest("hex")}`;
|
|
126189
126357
|
}
|
|
126190
126358
|
__name(keySegment, "keySegment");
|
|
126191
126359
|
function earlierGuidanceDirectory(root, scope) {
|
|
@@ -126755,7 +126923,7 @@ ${exploration.evidence.reason}`
|
|
|
126755
126923
|
}, { subject: "exploration.trace", text: exploration.trace });
|
|
126756
126924
|
await append("exploration", {
|
|
126757
126925
|
observations: exploration,
|
|
126758
|
-
digest:
|
|
126926
|
+
digest: createHash38("sha256").update(JSON.stringify(exploration)).digest("hex")
|
|
126759
126927
|
}, "explore");
|
|
126760
126928
|
const problem2 = resourceProblem(true);
|
|
126761
126929
|
if (problem2)
|
|
@@ -126804,7 +126972,7 @@ ${s.revision}`).join("\n"),
|
|
|
126804
126972
|
await append("evaluation", {
|
|
126805
126973
|
baselineRevision,
|
|
126806
126974
|
candidateRevision,
|
|
126807
|
-
digest:
|
|
126975
|
+
digest: createHash38("sha256").update(JSON.stringify(batch)).digest("hex"),
|
|
126808
126976
|
baselineTrajectories: batch.baseline.map((t) => t.trajectoryId),
|
|
126809
126977
|
candidateTrajectories: batch.candidate.map((t) => t.trajectoryId)
|
|
126810
126978
|
}, name2);
|
|
@@ -127335,7 +127503,7 @@ var SqliteLearningExperienceStore = class {
|
|
|
127335
127503
|
};
|
|
127336
127504
|
|
|
127337
127505
|
// ../sdk/dist/learning/store.js
|
|
127338
|
-
import { createHash as
|
|
127506
|
+
import { createHash as createHash39, randomUUID as randomUUID11 } from "node:crypto";
|
|
127339
127507
|
import { closeSync as closeSync3, existsSync as existsSync6, fsyncSync, linkSync, lstatSync as lstatSync4, mkdirSync as mkdirSync7, openSync as openSync3, readFileSync as readFileSync6, unlinkSync, writeFileSync as writeFileSync4 } from "node:fs";
|
|
127340
127508
|
import { createRequire as createRequire4 } from "node:module";
|
|
127341
127509
|
import { dirname as dirname25, join as join46, resolve as resolve29 } from "node:path";
|
|
@@ -127364,7 +127532,7 @@ var learningObservationSchema = learningTargetSchema.extend({
|
|
|
127364
127532
|
|
|
127365
127533
|
// ../sdk/dist/learning/store.js
|
|
127366
127534
|
var uuid5 = external_exports.string().uuid().transform((id3) => id3.toLowerCase());
|
|
127367
|
-
var digest4 = /* @__PURE__ */ __name((text11) =>
|
|
127535
|
+
var digest4 = /* @__PURE__ */ __name((text11) => createHash39("sha256").update(text11).digest("hex"), "digest");
|
|
127368
127536
|
var MAX_EVENT_BYTES = 256 * 1024;
|
|
127369
127537
|
var MAX_ARTIFACT_BYTES = 8 * 1024 * 1024;
|
|
127370
127538
|
var MAX_EVENTS = 4096;
|
|
@@ -128083,7 +128251,7 @@ function parsePeerAddress(address2) {
|
|
|
128083
128251
|
__name(parsePeerAddress, "parsePeerAddress");
|
|
128084
128252
|
|
|
128085
128253
|
// ../sdk/dist/peers/record.js
|
|
128086
|
-
import { createHash as
|
|
128254
|
+
import { createHash as createHash40 } from "node:crypto";
|
|
128087
128255
|
|
|
128088
128256
|
// ../sdk/dist/peers/protocol.js
|
|
128089
128257
|
var PEER_PROTOCOL_VERSION = "namzu-peer/1";
|
|
@@ -128234,7 +128402,7 @@ var PeerRecordSchema = external_exports.object({
|
|
|
128234
128402
|
var PeerRecordReaderSchema = PeerRecordSchema.strip();
|
|
128235
128403
|
var PEER_REF_HEX_LENGTH = 6;
|
|
128236
128404
|
function derivePeerRef(sessionId5) {
|
|
128237
|
-
return
|
|
128405
|
+
return createHash40("sha256").update(sessionId5, "utf8").digest("hex").slice(0, PEER_REF_HEX_LENGTH);
|
|
128238
128406
|
}
|
|
128239
128407
|
__name(derivePeerRef, "derivePeerRef");
|
|
128240
128408
|
|
|
@@ -130410,7 +130578,7 @@ var PAL_WORK_GUIDANCE = [
|
|
|
130410
130578
|
].join("\n\n");
|
|
130411
130579
|
|
|
130412
130580
|
// ../sdk/dist/pals/reference-images.js
|
|
130413
|
-
import { createHash as
|
|
130581
|
+
import { createHash as createHash41, randomUUID as randomUUID13 } from "node:crypto";
|
|
130414
130582
|
import { posix as posix4 } from "node:path";
|
|
130415
130583
|
var MAX_IMAGES = 8;
|
|
130416
130584
|
var MAX_IMAGE_BYTES = 3 * 1024 * 1024;
|
|
@@ -130454,7 +130622,7 @@ function preparePalReferenceImages(attachments) {
|
|
|
130454
130622
|
attachmentIndex: index + 1,
|
|
130455
130623
|
mediaType: attachment.mediaType,
|
|
130456
130624
|
data: attachment.data,
|
|
130457
|
-
sha256:
|
|
130625
|
+
sha256: createHash41("sha256").update(bytes).digest("hex"),
|
|
130458
130626
|
bytes: bytes.length
|
|
130459
130627
|
}));
|
|
130460
130628
|
}
|
|
@@ -130641,7 +130809,7 @@ import { isDeepStrictEqual as isDeepStrictEqual10 } from "node:util";
|
|
|
130641
130809
|
import { isDeepStrictEqual as isDeepStrictEqual8 } from "node:util";
|
|
130642
130810
|
|
|
130643
130811
|
// ../sdk/dist/pals/communication/schema.js
|
|
130644
|
-
import { createHash as
|
|
130812
|
+
import { createHash as createHash42 } from "node:crypto";
|
|
130645
130813
|
var id2 = external_exports.string().uuid();
|
|
130646
130814
|
var sessionId3 = external_exports.custom((s) => isEntityId(s, "session"));
|
|
130647
130815
|
var turnId4 = external_exports.custom((s) => isEntityId(s, "turn"));
|
|
@@ -130736,7 +130904,7 @@ function freezeCommunicationValue(value) {
|
|
|
130736
130904
|
}
|
|
130737
130905
|
__name(freezeCommunicationValue, "freezeCommunicationValue");
|
|
130738
130906
|
function hash3(value) {
|
|
130739
|
-
return
|
|
130907
|
+
return createHash42("sha256").update(JSON.stringify(value)).digest("hex");
|
|
130740
130908
|
}
|
|
130741
130909
|
__name(hash3, "hash");
|
|
130742
130910
|
function addressTuple(value) {
|
|
@@ -132444,10 +132612,10 @@ var DiskPalMessagePolicy = class {
|
|
|
132444
132612
|
};
|
|
132445
132613
|
|
|
132446
132614
|
// ../sdk/dist/pals/activity/source.js
|
|
132447
|
-
import { createHash as
|
|
132615
|
+
import { createHash as createHash44 } from "node:crypto";
|
|
132448
132616
|
|
|
132449
132617
|
// ../sdk/dist/pals/activity/projection.js
|
|
132450
|
-
import { createHash as
|
|
132618
|
+
import { createHash as createHash43 } from "node:crypto";
|
|
132451
132619
|
var activityId2 = external_exports.custom((value) => isEntityId(value, "activity"));
|
|
132452
132620
|
var checkpointId3 = external_exports.custom((value) => isEntityId(value, "checkpoint"));
|
|
132453
132621
|
var toolUseId2 = external_exports.string().min(1).max(512).regex(/^[A-Za-z0-9_.:-]+$/);
|
|
@@ -132506,7 +132674,7 @@ function projectPalActivity(entry, scopeHash) {
|
|
|
132506
132674
|
return null;
|
|
132507
132675
|
}
|
|
132508
132676
|
return Object.freeze({
|
|
132509
|
-
id:
|
|
132677
|
+
id: createHash43("sha256").update(JSON.stringify(["pal-activity/1", scopeHash, pointer2])).digest("hex"),
|
|
132510
132678
|
type: record4.type,
|
|
132511
132679
|
sessionId: record4.sessionId,
|
|
132512
132680
|
..."turnId" in record4 ? { turnId: record4.turnId } : {},
|
|
@@ -132600,7 +132768,7 @@ function createPalActivitySource(options) {
|
|
|
132600
132768
|
if (definition.id !== scope.palId || definition.revision !== scope.profileRevision)
|
|
132601
132769
|
throw new PalActivityIntegrityError();
|
|
132602
132770
|
const workspace = definition.workspace;
|
|
132603
|
-
const scopeHash =
|
|
132771
|
+
const scopeHash = createHash44("sha256").update(JSON.stringify([
|
|
132604
132772
|
"pal-activity/1",
|
|
132605
132773
|
scope.tenantId,
|
|
132606
132774
|
scope.projectId,
|
|
@@ -132993,7 +133161,7 @@ import { join as join55, resolve as resolve34 } from "node:path";
|
|
|
132993
133161
|
import { isDeepStrictEqual as isDeepStrictEqual11 } from "node:util";
|
|
132994
133162
|
|
|
132995
133163
|
// ../sdk/dist/pals/channels/schema.js
|
|
132996
|
-
import { createHash as
|
|
133164
|
+
import { createHash as createHash45 } from "node:crypto";
|
|
132997
133165
|
var connectionSchema = external_exports.object({
|
|
132998
133166
|
tenantId: addressSchema2.shape.tenantId,
|
|
132999
133167
|
provider: label4,
|
|
@@ -133024,7 +133192,7 @@ var verifiedActionSchema = external_exports.object({
|
|
|
133024
133192
|
actionId: label4,
|
|
133025
133193
|
payloadDigest: external_exports.string().regex(/^[a-f0-9]{64}$/),
|
|
133026
133194
|
payload: external_exports.string().min(1).max(32e3).refine((value) => !value.includes("\0"))
|
|
133027
|
-
}).strict().refine((value) =>
|
|
133195
|
+
}).strict().refine((value) => createHash45("sha256").update(value.payload).digest("hex") === value.payloadDigest, "Channel action payload does not match its authenticated digest.");
|
|
133028
133196
|
var routeDecisionSchema = external_exports.object({
|
|
133029
133197
|
v: external_exports.literal(1),
|
|
133030
133198
|
revision: external_exports.literal(1),
|
|
@@ -133877,7 +134045,7 @@ async function publishPalActivityOnce(options, id3, input2) {
|
|
|
133877
134045
|
__name(publishPalActivityOnce, "publishPalActivityOnce");
|
|
133878
134046
|
|
|
133879
134047
|
// ../sdk/dist/pals/activity/causality.js
|
|
133880
|
-
import { createHash as
|
|
134048
|
+
import { createHash as createHash46 } from "node:crypto";
|
|
133881
134049
|
import { isDeepStrictEqual as isDeepStrictEqual17 } from "node:util";
|
|
133882
134050
|
var requestMarkerSchema = external_exports.object({
|
|
133883
134051
|
type: external_exports.literal("request_envelope"),
|
|
@@ -133956,7 +134124,7 @@ function createPalActivityCausalityResolver(options) {
|
|
|
133956
134124
|
const root = entries2[0]?.record;
|
|
133957
134125
|
if (root?.type !== "session_started" || root.parent || root.forkedFrom || root.tenantId !== scope.tenantId || root.projectId !== scope.projectId || root.cwd !== workspace || root.origin?.protocol !== "desktop" || root.origin.externalSessionId !== JSON.stringify(["namzu-pal", scope.palId, scope.profileRevision, scope.sessionId]))
|
|
133958
134126
|
unavailable3();
|
|
133959
|
-
const scopeHash =
|
|
134127
|
+
const scopeHash = createHash46("sha256").update(JSON.stringify([
|
|
133960
134128
|
"pal-activity/1",
|
|
133961
134129
|
scope.tenantId,
|
|
133962
134130
|
scope.projectId,
|
|
@@ -136287,7 +136455,7 @@ ${observed}
|
|
|
136287
136455
|
});
|
|
136288
136456
|
|
|
136289
136457
|
// ../sdk/dist/tools/builtins/skill.js
|
|
136290
|
-
import { createHash as
|
|
136458
|
+
import { createHash as createHash47 } from "node:crypto";
|
|
136291
136459
|
var inputSchema16 = external_exports.object({
|
|
136292
136460
|
name: external_exports.string().min(1).optional().describe("The skill to load, exactly as listed in the available-skills manifest. Omit it to list model-invocable skills."),
|
|
136293
136461
|
args: external_exports.string().max(8e3).optional().describe("What to apply the skill to, in your own words. A skill that runs as a delegated agent sees only this and its own instructions, so say what it needs. Omit it on a continuation."),
|
|
@@ -136298,7 +136466,7 @@ var LIST_CURSOR_PATTERN = /^v1\.list\.(0|[1-9][0-9]*)\.([01])\.([A-Za-z0-9_-]{43
|
|
|
136298
136466
|
var MAX_SKILLS_PER_PAGE = 20;
|
|
136299
136467
|
var OVERSIZED_CATALOG_WARNING = "Some skills were omitted because their metadata is too large for this response budget.";
|
|
136300
136468
|
function snapshotDigest(snapshot) {
|
|
136301
|
-
return
|
|
136469
|
+
return createHash47("sha256").update(JSON.stringify({
|
|
136302
136470
|
version: 1,
|
|
136303
136471
|
name: snapshot.name,
|
|
136304
136472
|
body: snapshot.body,
|
|
@@ -136342,7 +136510,7 @@ function activeOutputCap(maxChars2) {
|
|
|
136342
136510
|
}
|
|
136343
136511
|
__name(activeOutputCap, "activeOutputCap");
|
|
136344
136512
|
function listDigest(skills, maxChars2) {
|
|
136345
|
-
return
|
|
136513
|
+
return createHash47("sha256").update(JSON.stringify({ version: 1, kind: "list", maxChars: maxChars2 ?? null, skills })).digest("base64url");
|
|
136346
136514
|
}
|
|
136347
136515
|
__name(listDigest, "listDigest");
|
|
136348
136516
|
function serializeListPage(page) {
|
|
@@ -142355,6 +142523,7 @@ export {
|
|
|
142355
142523
|
calculateCost,
|
|
142356
142524
|
accumulateCost,
|
|
142357
142525
|
accumulateUnpricedCost,
|
|
142526
|
+
accumulateReportedCost,
|
|
142358
142527
|
formatCost,
|
|
142359
142528
|
describeCost,
|
|
142360
142529
|
ONE_MILLION_WINDOW_TOKENS,
|
|
@@ -142741,6 +142910,9 @@ export {
|
|
|
142741
142910
|
MEMORY_VERIFY_NOTICE,
|
|
142742
142911
|
recalledMemoryIds,
|
|
142743
142912
|
createMemoryRecallStep,
|
|
142913
|
+
SIDE_REQUEST_REASONING_HEADROOM,
|
|
142914
|
+
sideRequestReasoning,
|
|
142915
|
+
chatStreamForSideRequest,
|
|
142744
142916
|
findRetainedIndices,
|
|
142745
142917
|
snapshotRequestContext,
|
|
142746
142918
|
diffRequestContext,
|
|
@@ -143560,4 +143732,4 @@ export {
|
|
|
143560
143732
|
WakeBudget,
|
|
143561
143733
|
wakeBudgetFromEnv
|
|
143562
143734
|
};
|
|
143563
|
-
//# sourceMappingURL=chunk-
|
|
143735
|
+
//# sourceMappingURL=chunk-2HRPWZXH.js.map
|