@namzu/cli 51.3.1 → 52.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +8 -1
- package/dist/bin.js.map +2 -2
- package/dist/chunks/{acp-5EVQDZJC.js → acp-C2H6FGPR.js} +77 -70
- package/dist/chunks/acp-C2H6FGPR.js.map +6 -0
- package/dist/chunks/{activity-command-4IUJ2CE4.js → activity-command-EXDEKDLZ.js} +12 -12
- package/dist/chunks/{add-FT7HDU36.js → add-VOR5M5BV.js} +21 -21
- package/dist/chunks/{agent-6O4DOLIL.js → agent-EWZGPBGI.js} +42 -42
- package/dist/chunks/agent-session-EKTTB7TN.js +73 -0
- package/dist/chunks/{apply-at-exit-PY2MP23E.js → apply-at-exit-FVOHKVHQ.js} +8 -8
- package/dist/chunks/{archive-5JVH6NLF.js → archive-Z34VDKBO.js} +13 -13
- package/dist/chunks/{bin-main-BEUIPMW3.js → bin-main-C5UNGSAQ.js} +13 -12
- package/dist/chunks/bin-main-C5UNGSAQ.js.map +6 -0
- package/dist/chunks/{binding-S6NFVWG5.js → binding-P5DCYNQG.js} +3 -3
- package/dist/chunks/{browser-5GSFFOI3.js → browser-MEVCXUOS.js} +6 -6
- package/dist/chunks/{chat-I62ZOZRM.js → chat-YQCC2O5F.js} +15 -15
- package/dist/chunks/{chunk-V7IK6MHO.js → chunk-2RYGHXYK.js} +2 -2
- package/dist/chunks/{chunk-KU7HGYKU.js → chunk-2ZYV3IZA.js} +42 -38
- package/dist/chunks/chunk-2ZYV3IZA.js.map +6 -0
- package/dist/chunks/{chunk-5FZDDFXS.js → chunk-3ZHOM2L7.js} +2 -2
- package/dist/chunks/{chunk-LXLM4OQO.js → chunk-467N452A.js} +2 -2
- package/dist/chunks/{chunk-4GIWPKXI.js → chunk-46EO7Z5W.js} +4 -4
- package/dist/chunks/{chunk-7QIJT537.js → chunk-474J6ZI2.js} +2 -2
- package/dist/chunks/{chunk-OU5UYDZ6.js → chunk-47R3EA5L.js} +6 -6
- package/dist/chunks/{chunk-W2IBHK6I.js → chunk-4I4BFAV4.js} +2 -2
- package/dist/chunks/{chunk-ONCQ3NZ6.js → chunk-4SC6RBFK.js} +245 -42
- package/dist/chunks/chunk-4SC6RBFK.js.map +6 -0
- package/dist/chunks/{chunk-SUFXIANI.js → chunk-4SEHD4ZI.js} +9 -9
- package/dist/chunks/{chunk-SO322MOO.js → chunk-4TS3KCPO.js} +2 -2
- package/dist/chunks/{chunk-CZHAME47.js → chunk-5GP2SAXN.js} +4 -4
- package/dist/chunks/{chunk-5CP365QA.js → chunk-6KB5XGKP.js} +115 -13
- package/dist/chunks/chunk-6KB5XGKP.js.map +6 -0
- package/dist/chunks/{chunk-RBVNETI2.js → chunk-6O5Q6YBP.js} +184 -92
- package/dist/chunks/chunk-6O5Q6YBP.js.map +6 -0
- package/dist/chunks/{chunk-2WRNHAVP.js → chunk-7OHK3TZD.js} +5 -5
- package/dist/chunks/chunk-7OKLSYRU.js +578 -0
- package/dist/chunks/chunk-7OKLSYRU.js.map +6 -0
- package/dist/chunks/{chunk-UVYM67LE.js → chunk-7UTSUGXV.js} +2 -2
- package/dist/chunks/{chunk-5ZVFXZV4.js → chunk-7ZC4ZAW4.js} +2 -2
- package/dist/chunks/{chunk-2MHTEUWP.js → chunk-AVPOO4NC.js} +3 -3
- package/dist/chunks/{chunk-PXIVFM3R.js → chunk-AXQRLXWR.js} +3 -3
- package/dist/chunks/{chunk-J7IH3JCJ.js → chunk-BWHOX7GQ.js} +2 -2
- package/dist/chunks/{chunk-H47LSNSP.js → chunk-CA7QW5JY.js} +2 -2
- package/dist/chunks/{chunk-B5AIMVRI.js → chunk-CING2BNJ.js} +2 -43
- package/dist/chunks/chunk-CING2BNJ.js.map +6 -0
- package/dist/chunks/{chunk-N4B5NJTM.js → chunk-CKL6DYHR.js} +6 -6
- package/dist/chunks/{chunk-XC2RVHA4.js → chunk-CKYZQOOB.js} +4 -4
- package/dist/chunks/{chunk-FENQC4LO.js → chunk-CR4ERJTP.js} +2 -2
- package/dist/chunks/{chunk-SZOC2LYR.js → chunk-D6M3CBER.js} +8 -8
- package/dist/chunks/{chunk-JCXJ3QSC.js → chunk-DC76BQGF.js} +3 -3
- package/dist/chunks/{chunk-QNS2KLVT.js → chunk-DE5AFFGK.js} +2 -2
- package/dist/chunks/{chunk-KCRZA2E3.js → chunk-DVYMOESJ.js} +2 -2
- package/dist/chunks/{chunk-2IPDTDB3.js → chunk-EJCQKJZ2.js} +37 -3
- package/dist/chunks/chunk-EJCQKJZ2.js.map +6 -0
- package/dist/chunks/{chunk-KROVFC6L.js → chunk-ET6Y6QTB.js} +2 -2
- package/dist/chunks/{chunk-EQILSCM7.js → chunk-EY32VJBC.js} +2 -2
- package/dist/chunks/{chunk-IJEESVK5.js → chunk-F2BM7LHM.js} +2 -2
- package/dist/chunks/{chunk-VO2M2XZD.js → chunk-F6S3IBNL.js} +2 -2
- package/dist/chunks/{chunk-KQYWFHRH.js → chunk-F7JDATG3.js} +4 -4
- package/dist/chunks/{chunk-PGV6N7MI.js → chunk-F7LMCISP.js} +9 -9
- package/dist/chunks/{chunk-4UC67RGJ.js → chunk-F7MCS63F.js} +3 -3
- package/dist/chunks/{chunk-UZ6GL6GO.js → chunk-F7XHPIXJ.js} +2 -2
- package/dist/chunks/{chunk-QLDUL46Z.js → chunk-FMBLLPNE.js} +7 -1
- package/dist/chunks/chunk-FMBLLPNE.js.map +6 -0
- package/dist/chunks/{chunk-BFAMP45Q.js → chunk-FOP7MQEU.js} +5 -5
- package/dist/chunks/{chunk-GID5WBC3.js → chunk-FWAUXNV2.js} +3 -3
- package/dist/chunks/{chunk-YEMHAEO5.js → chunk-FZVZJQHL.js} +2 -2
- package/dist/chunks/{chunk-AOMD2UUT.js → chunk-G6MRTDJQ.js} +12 -12
- package/dist/chunks/{chunk-BZVF3B6D.js → chunk-G7KLFAVX.js} +2 -2
- package/dist/chunks/{chunk-JPQNCR67.js → chunk-GFEHVD2U.js} +2 -2
- package/dist/chunks/{chunk-SSYBTI26.js → chunk-H6KPEFAR.js} +4 -4
- package/dist/chunks/{chunk-BLSCBY2C.js → chunk-HIPITBXZ.js} +3 -3
- package/dist/chunks/{chunk-LBE2FBOM.js → chunk-IBTPIZKL.js} +71 -16
- package/dist/chunks/chunk-IBTPIZKL.js.map +6 -0
- package/dist/chunks/{chunk-4ACKQXK5.js → chunk-IN5SOIH6.js} +2 -2
- package/dist/chunks/{chunk-RSJVDB4N.js → chunk-J2JLP6NV.js} +88 -7
- package/dist/chunks/chunk-J2JLP6NV.js.map +6 -0
- package/dist/chunks/{chunk-RSGMOAEC.js → chunk-JBC4TK56.js} +5 -5
- package/dist/chunks/{chunk-XUKM6GTW.js → chunk-JWS3NQAH.js} +3 -3
- package/dist/chunks/{chunk-LWNTLOML.js → chunk-KLUCQZAS.js} +3 -3
- package/dist/chunks/{chunk-BGODFPA6.js → chunk-LANIV6OQ.js} +3 -3
- package/dist/chunks/{chunk-LKHMBU72.js → chunk-M7LQ3C6L.js} +2 -2
- package/dist/chunks/{chunk-ZR3FTR77.js → chunk-MVJXTG2V.js} +4 -4
- package/dist/chunks/{chunk-SPO4YDME.js → chunk-MVMWAXEY.js} +2 -2
- package/dist/chunks/{chunk-TOGEJIC5.js → chunk-MVVZHKSQ.js} +4 -4
- package/dist/chunks/{chunk-AJ3K7Z27.js → chunk-N3LPO5PK.js} +18 -18
- package/dist/chunks/{chunk-4U245XO5.js → chunk-N4JROMUU.js} +2 -2
- package/dist/chunks/{chunk-GDHAOY4Y.js → chunk-OBA275BH.js} +3 -3
- package/dist/chunks/{chunk-H2SUL7EJ.js → chunk-OIYJMKAT.js} +3 -3
- package/dist/chunks/{chunk-IIOWVRGQ.js → chunk-OWTWCES3.js} +140 -6
- package/dist/chunks/chunk-OWTWCES3.js.map +6 -0
- package/dist/chunks/{chunk-A4KQCS3B.js → chunk-QALDU3HZ.js} +3 -3
- package/dist/chunks/{chunk-TL6X6MAW.js → chunk-QWDCN75Y.js} +2 -2
- package/dist/chunks/{chunk-HSEIISLI.js → chunk-QZODMCBW.js} +2 -2
- package/dist/chunks/chunk-RL2CTUF2.js +50 -0
- package/dist/chunks/chunk-RL2CTUF2.js.map +6 -0
- package/dist/chunks/{chunk-74CPSWI7.js → chunk-SFAK4Z6T.js} +2917 -2168
- package/dist/chunks/chunk-SFAK4Z6T.js.map +6 -0
- package/dist/chunks/{chunk-7COFRJAP.js → chunk-SGFN62CP.js} +2 -2
- package/dist/chunks/{chunk-4BEZSMMK.js → chunk-SONYUWOD.js} +3 -3
- package/dist/chunks/{chunk-JEJL64OB.js → chunk-SWUGIHFO.js} +3 -570
- package/dist/chunks/chunk-SWUGIHFO.js.map +6 -0
- package/dist/chunks/{chunk-P4SMB7ZH.js → chunk-SZXJSTKM.js} +4 -4
- package/dist/chunks/{chunk-RLGFYOUI.js → chunk-T2Q6B7IG.js} +6 -6
- package/dist/chunks/{chunk-5BPI6U3L.js → chunk-T6ZUFXGP.js} +6 -6
- package/dist/chunks/{chunk-LIO5MS6U.js → chunk-TEBW5NV3.js} +4 -4
- package/dist/chunks/{chunk-4HCSIYER.js → chunk-TUFFLY74.js} +10 -3
- package/dist/chunks/{chunk-4HCSIYER.js.map → chunk-TUFFLY74.js.map} +1 -1
- package/dist/chunks/{chunk-MNQDNDGD.js → chunk-TXLQW4AJ.js} +15 -15
- package/dist/chunks/chunk-U4XNJBDB.js +76 -0
- package/dist/chunks/chunk-U4XNJBDB.js.map +6 -0
- package/dist/chunks/{chunk-ZC7ZL42B.js → chunk-U5LAYHN6.js} +9 -9
- package/dist/chunks/{chunk-3TINX26N.js → chunk-USAVWSGJ.js} +3 -3
- package/dist/chunks/{chunk-XRPWPMV4.js → chunk-VAXTDL7E.js} +3 -3
- package/dist/chunks/{chunk-3PDX3NC2.js → chunk-VMKK6SOW.js} +5 -5
- package/dist/chunks/{chunk-YLSDJOE6.js → chunk-VYUMMKAA.js} +2 -2
- package/dist/chunks/{chunk-DUUK4VHP.js → chunk-W7JMWUGD.js} +46 -31
- package/dist/chunks/{chunk-DUUK4VHP.js.map → chunk-W7JMWUGD.js.map} +1 -1
- package/dist/chunks/{chunk-LAR6KRME.js → chunk-WG6CPS5G.js} +2 -2
- package/dist/chunks/{chunk-VM7ERL3Q.js → chunk-WK6RNDIK.js} +12 -12
- package/dist/chunks/{chunk-LFJ73AX2.js → chunk-WNVU6MMP.js} +7 -7
- package/dist/chunks/{chunk-UZLAIMHO.js → chunk-Y2DDE2WB.js} +5 -5
- package/dist/chunks/{chunk-QISKJ5SO.js → chunk-YFMR2PV7.js} +2 -2
- package/dist/chunks/{chunk-V45XJDX3.js → chunk-YIBJO76L.js} +2 -2
- package/dist/chunks/{chunk-M5NDHHMG.js → chunk-YLEBTBWP.js} +3 -3
- package/dist/chunks/{chunk-MLYGIG7M.js → chunk-ZB5RBBVO.js} +3 -3
- package/dist/chunks/{chunk-2MLY3HJM.js → chunk-ZI7BWTPK.js} +4 -4
- package/dist/chunks/{chunk-DC67SNZK.js → chunk-ZNYLVJIS.js} +9 -9
- package/dist/chunks/{chunk-ZM7SGAOM.js → chunk-ZQIWZDPM.js} +2 -2
- package/dist/chunks/{cli-runtime-NNMDASHO.js → cli-runtime-SWBSTK5Y.js} +23 -22
- package/dist/chunks/cli-runtime-SWBSTK5Y.js.map +6 -0
- package/dist/chunks/{commands-5MHVFUYY.js → commands-VTKTL26Z.js} +5 -5
- package/dist/chunks/{cost-XLXGPE4O.js → cost-IRSQA4W3.js} +4 -4
- package/dist/chunks/{crash-report-6V5QGAWA.js → crash-report-4RK3TDIG.js} +7 -7
- package/dist/chunks/{dist-ZJ6G2XMS.js → dist-3OXE5SY4.js} +2 -2
- package/dist/chunks/{dist-HOZJYOTI.js → dist-DZ7AVBME.js} +2 -2
- package/dist/chunks/{dist-O526SRCF.js → dist-FFDAK4ES.js} +2 -2
- package/dist/chunks/{dist-NESMLP2I.js → dist-IX7VHPCS.js} +14 -2
- package/dist/chunks/{dist-AYALCT3C.js → dist-MFNIF6PB.js} +2 -2
- package/dist/chunks/{dist-K5Z6YPNW.js → dist-SRSREGI2.js} +2 -2
- package/dist/chunks/{dist-WQB34UXN.js → dist-XGVPG3SE.js} +2 -2
- package/dist/chunks/{dist-NVATKUF3.js → dist-ZWWZFMZ7.js} +2 -2
- package/dist/chunks/doctor-BO6742WI.js +77 -0
- package/dist/chunks/{drain-WWQCYAWR.js → drain-R55GDZ6K.js} +9 -9
- package/dist/chunks/{entry-IJAMOWTT.js → entry-OIRUHLN6.js} +7 -7
- package/dist/chunks/{eval-45MNYTZQ.js → eval-LC2YEQE4.js} +9 -8
- package/dist/chunks/eval-LC2YEQE4.js.map +6 -0
- package/dist/chunks/{exec-27CO6TKJ.js → exec-MVNCTFY2.js} +61 -60
- package/dist/chunks/exec-MVNCTFY2.js.map +6 -0
- package/dist/chunks/{github-FQAXV2KP.js → github-MGIA7MTZ.js} +4 -4
- package/dist/chunks/{home-A2HSOG27.js → home-LOZLKE2R.js} +3 -3
- package/dist/chunks/{host-I3PPCCQ3.js → host-OJRB5UR4.js} +14 -14
- package/dist/chunks/{host-queries-KIYOEKT2.js → host-queries-BTUGRPDQ.js} +15 -15
- package/dist/chunks/{learn-EC2QFA66.js → learn-L7W4AY6F.js} +11 -11
- package/dist/chunks/{learn-builtin-5BIIU7HC.js → learn-builtin-F6D7VG2T.js} +14 -14
- package/dist/chunks/{lifecycle-6FKBXE32.js → lifecycle-VH5JVETC.js} +31 -31
- package/dist/chunks/{list-HQDI3H4N.js → list-O6NVVBVF.js} +15 -14
- package/dist/chunks/list-O6NVVBVF.js.map +6 -0
- package/dist/chunks/live-VMIC5YSV.js +75 -0
- package/dist/chunks/{login-C2QJP446.js → login-KTFS33SV.js} +12 -13
- package/dist/chunks/{logs-QDXZ6HMD.js → logs-2RSTZ4Y5.js} +4 -4
- package/dist/chunks/{mcp-CFQMYILA.js → mcp-SUQ5VHS3.js} +28 -28
- package/dist/chunks/{message-command-X5BGZN6B.js → message-command-D72XMTER.js} +48 -48
- package/dist/chunks/{open-USUNNL3C.js → open-PJI6LGEB.js} +8 -8
- package/dist/chunks/{operator-tools-B5EKAIEU.js → operator-tools-7WLNIRD3.js} +13 -13
- package/dist/chunks/{output-schema-4JBWQTYX.js → output-schema-PDWST74V.js} +3 -3
- package/dist/chunks/{pal-RFDMWYUT.js → pal-IMTWZXWM.js} +15 -16
- package/dist/chunks/pal-IMTWZXWM.js.map +6 -0
- package/dist/chunks/{palette-CL5OOYGK.js → palette-V2OJ6BIE.js} +4 -4
- package/dist/chunks/{peers-EQUVQXAR.js → peers-MCOSOVCD.js} +12 -12
- package/dist/chunks/{peers-U4NWN44W.js → peers-XXL4YN6O.js} +6 -6
- package/dist/chunks/{plugin-MGHRREZ7.js → plugin-JKJNFSF3.js} +15 -15
- package/dist/chunks/{providers-QFMAPZK7.js → providers-2NZ5YDHJ.js} +13 -15
- package/dist/chunks/{pty-YX7E7UJ6.js → pty-QYTCSD7G.js} +3 -3
- package/dist/chunks/resume-5MSYHNA7.js +23 -0
- package/dist/chunks/{resume-command-I7SNRBQE.js → resume-command-KXICGDCC.js} +5 -5
- package/dist/chunks/{running-2LN4IWKC.js → running-5FNI2UAN.js} +5 -5
- package/dist/chunks/{schedule-75QPB5GP.js → schedule-CKRLCLZE.js} +8 -8
- package/dist/chunks/{send-II2KFKIK.js → send-5B4ROQRC.js} +16 -16
- package/dist/chunks/{send-person-74VABPSV.js → send-person-5CPYLU6J.js} +14 -14
- package/dist/chunks/{service-6E7VOOO3.js → service-X3J6SDE6.js} +31 -31
- package/dist/chunks/{skills-YVKRYB7M.js → skills-MJVSGTLM.js} +14 -14
- package/dist/chunks/{start-check-24S2MXPQ.js → start-check-U4TZS2VO.js} +2 -2
- package/dist/chunks/{startup-failure-SAPN77LY.js → startup-failure-UCPXEDWH.js} +2 -2
- package/dist/chunks/{state-JUVAH65X.js → state-FHGFEIF6.js} +5 -5
- package/dist/chunks/{store-LX7F4E5A.js → store-PL3BXOPA.js} +3 -3
- package/dist/chunks/{store-RS7ZLTDT.js → store-TVP3LZNP.js} +4 -4
- package/dist/chunks/{store-CQOALIPR.js → store-TXC7F7KD.js} +10 -10
- package/dist/chunks/{store-EOOW5RU2.js → store-XJXBG4MP.js} +6 -6
- package/dist/chunks/{tui-AVATPIDP.js → tui-C2YPD5ZD.js} +741 -107
- package/dist/chunks/tui-C2YPD5ZD.js.map +6 -0
- package/dist/chunks/{upgrade-7MSTVPZZ.js → upgrade-7AKSY32I.js} +9 -9
- package/dist/chunks/{watch-PEJNCDLA.js → watch-X7HL77BT.js} +115 -92
- package/dist/chunks/watch-X7HL77BT.js.map +6 -0
- package/dist/chunks/{workspaces-3F2DSKWC.js → workspaces-4BNGHUKR.js} +25 -25
- package/dist/chunks/{worktree-HPE4E4UF.js → worktree-2JUYAPLO.js} +15 -15
- package/dist/cli.d.ts.map +1 -1
- package/dist/config/hook-layers.d.ts +54 -0
- package/dist/config/hook-layers.d.ts.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +16 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/doctor/checks/hooks.d.ts +16 -0
- package/dist/doctor/checks/hooks.d.ts.map +1 -0
- package/dist/doctor/live.d.ts.map +1 -1
- package/dist/index.js +43 -24
- package/dist/integrations/plugins/hook-path-filter.d.ts +16 -0
- package/dist/integrations/plugins/hook-path-filter.d.ts.map +1 -0
- package/dist/integrations/plugins/runtime.d.ts +28 -0
- package/dist/integrations/plugins/runtime.d.ts.map +1 -1
- package/dist/integrations/sessions/watch-view.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/trust/folder-grants.d.ts +11 -1
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
- package/dist/no-color-env.d.ts +9 -0
- package/dist/no-color-env.d.ts.map +1 -0
- package/dist/permissions/path-rules.d.ts +2 -0
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/tui/App.d.ts +6 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts +19 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts +12 -1
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/ReadSearchGroup.d.ts +1 -3
- package/dist/tui/ReadSearchGroup.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +18 -0
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +22 -2
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/compaction-rows.d.ts +2 -0
- package/dist/tui/compaction-rows.d.ts.map +1 -1
- package/dist/tui/foreground-handoff.d.ts +2 -0
- package/dist/tui/foreground-handoff.d.ts.map +1 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
- package/dist/tui/fullscreen/layout.d.ts +1 -1
- package/dist/tui/fullscreen/layout.d.ts.map +1 -1
- package/dist/tui/fullscreen/paint.d.ts.map +1 -1
- package/dist/tui/fullscreen/rows.d.ts +2 -0
- package/dist/tui/fullscreen/rows.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/live-window.d.ts +8 -1
- package/dist/tui/live-window.d.ts.map +1 -1
- package/dist/tui/markdown-block-cache.d.ts +1 -1
- package/dist/tui/markdown-block-cache.d.ts.map +1 -1
- package/dist/tui/markdownParser.d.ts +36 -2
- package/dist/tui/markdownParser.d.ts.map +1 -1
- package/dist/tui/paint/cells.d.ts +31 -0
- package/dist/tui/paint/cells.d.ts.map +1 -0
- package/dist/tui/paint/live-paint.d.ts +78 -0
- package/dist/tui/paint/live-paint.d.ts.map +1 -0
- package/dist/tui/read-search-group.d.ts +5 -13
- package/dist/tui/read-search-group.d.ts.map +1 -1
- package/dist/tui/shell-cell.d.ts +23 -0
- package/dist/tui/shell-cell.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +20 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/stream-flow.d.ts +128 -0
- package/dist/tui/stream-flow.d.ts.map +1 -0
- package/dist/tui/task-activity.d.ts +2 -0
- package/dist/tui/task-activity.d.ts.map +1 -1
- package/dist/tui/theme-palettes.d.ts +9 -0
- package/dist/tui/theme-palettes.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +13 -0
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +11 -0
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/transcript-scroll.d.ts +9 -1
- package/dist/tui/transcript-scroll.d.ts.map +1 -1
- package/dist/tui/types.d.ts +22 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/useReadSearchGroup.d.ts.map +1 -1
- package/dist/tui/working-line.d.ts +74 -0
- package/dist/tui/working-line.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/chunks/acp-5EVQDZJC.js.map +0 -6
- package/dist/chunks/agent-session-Z2BK2E7H.js +0 -73
- package/dist/chunks/bin-main-BEUIPMW3.js.map +0 -6
- package/dist/chunks/chunk-2IPDTDB3.js.map +0 -6
- package/dist/chunks/chunk-5CP365QA.js.map +0 -6
- package/dist/chunks/chunk-74CPSWI7.js.map +0 -6
- package/dist/chunks/chunk-B5AIMVRI.js.map +0 -6
- package/dist/chunks/chunk-IIOWVRGQ.js.map +0 -6
- package/dist/chunks/chunk-JEJL64OB.js.map +0 -6
- package/dist/chunks/chunk-KU7HGYKU.js.map +0 -6
- package/dist/chunks/chunk-LBE2FBOM.js.map +0 -6
- package/dist/chunks/chunk-OH6TB27S.js +0 -111
- package/dist/chunks/chunk-OH6TB27S.js.map +0 -6
- package/dist/chunks/chunk-ONCQ3NZ6.js.map +0 -6
- package/dist/chunks/chunk-QLDUL46Z.js.map +0 -6
- package/dist/chunks/chunk-RBVNETI2.js.map +0 -6
- package/dist/chunks/chunk-RSJVDB4N.js.map +0 -6
- package/dist/chunks/chunk-WFKHAW6M.js +0 -153
- package/dist/chunks/chunk-WFKHAW6M.js.map +0 -6
- package/dist/chunks/cli-runtime-NNMDASHO.js.map +0 -6
- package/dist/chunks/doctor-WBAZKRZZ.js +0 -44
- package/dist/chunks/eval-45MNYTZQ.js.map +0 -6
- package/dist/chunks/exec-27CO6TKJ.js.map +0 -6
- package/dist/chunks/list-HQDI3H4N.js.map +0 -6
- package/dist/chunks/live-CJEVZFJZ.js +0 -42
- package/dist/chunks/pal-RFDMWYUT.js.map +0 -6
- package/dist/chunks/resume-DHAMPNCN.js +0 -23
- package/dist/chunks/tui-AVATPIDP.js.map +0 -6
- package/dist/chunks/watch-PEJNCDLA.js.map +0 -6
- package/dist/tui/stream-blocks.d.ts +0 -70
- package/dist/tui/stream-blocks.d.ts.map +0 -1
- /package/dist/chunks/{activity-command-4IUJ2CE4.js.map → activity-command-EXDEKDLZ.js.map} +0 -0
- /package/dist/chunks/{add-FT7HDU36.js.map → add-VOR5M5BV.js.map} +0 -0
- /package/dist/chunks/{agent-6O4DOLIL.js.map → agent-EWZGPBGI.js.map} +0 -0
- /package/dist/chunks/{agent-session-Z2BK2E7H.js.map → agent-session-EKTTB7TN.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-PY2MP23E.js.map → apply-at-exit-FVOHKVHQ.js.map} +0 -0
- /package/dist/chunks/{archive-5JVH6NLF.js.map → archive-Z34VDKBO.js.map} +0 -0
- /package/dist/chunks/{binding-S6NFVWG5.js.map → binding-P5DCYNQG.js.map} +0 -0
- /package/dist/chunks/{browser-5GSFFOI3.js.map → browser-MEVCXUOS.js.map} +0 -0
- /package/dist/chunks/{chat-I62ZOZRM.js.map → chat-YQCC2O5F.js.map} +0 -0
- /package/dist/chunks/{chunk-V7IK6MHO.js.map → chunk-2RYGHXYK.js.map} +0 -0
- /package/dist/chunks/{chunk-5FZDDFXS.js.map → chunk-3ZHOM2L7.js.map} +0 -0
- /package/dist/chunks/{chunk-LXLM4OQO.js.map → chunk-467N452A.js.map} +0 -0
- /package/dist/chunks/{chunk-4GIWPKXI.js.map → chunk-46EO7Z5W.js.map} +0 -0
- /package/dist/chunks/{chunk-7QIJT537.js.map → chunk-474J6ZI2.js.map} +0 -0
- /package/dist/chunks/{chunk-OU5UYDZ6.js.map → chunk-47R3EA5L.js.map} +0 -0
- /package/dist/chunks/{chunk-W2IBHK6I.js.map → chunk-4I4BFAV4.js.map} +0 -0
- /package/dist/chunks/{chunk-SUFXIANI.js.map → chunk-4SEHD4ZI.js.map} +0 -0
- /package/dist/chunks/{chunk-SO322MOO.js.map → chunk-4TS3KCPO.js.map} +0 -0
- /package/dist/chunks/{chunk-CZHAME47.js.map → chunk-5GP2SAXN.js.map} +0 -0
- /package/dist/chunks/{chunk-2WRNHAVP.js.map → chunk-7OHK3TZD.js.map} +0 -0
- /package/dist/chunks/{chunk-UVYM67LE.js.map → chunk-7UTSUGXV.js.map} +0 -0
- /package/dist/chunks/{chunk-5ZVFXZV4.js.map → chunk-7ZC4ZAW4.js.map} +0 -0
- /package/dist/chunks/{chunk-2MHTEUWP.js.map → chunk-AVPOO4NC.js.map} +0 -0
- /package/dist/chunks/{chunk-PXIVFM3R.js.map → chunk-AXQRLXWR.js.map} +0 -0
- /package/dist/chunks/{chunk-J7IH3JCJ.js.map → chunk-BWHOX7GQ.js.map} +0 -0
- /package/dist/chunks/{chunk-H47LSNSP.js.map → chunk-CA7QW5JY.js.map} +0 -0
- /package/dist/chunks/{chunk-N4B5NJTM.js.map → chunk-CKL6DYHR.js.map} +0 -0
- /package/dist/chunks/{chunk-XC2RVHA4.js.map → chunk-CKYZQOOB.js.map} +0 -0
- /package/dist/chunks/{chunk-FENQC4LO.js.map → chunk-CR4ERJTP.js.map} +0 -0
- /package/dist/chunks/{chunk-SZOC2LYR.js.map → chunk-D6M3CBER.js.map} +0 -0
- /package/dist/chunks/{chunk-JCXJ3QSC.js.map → chunk-DC76BQGF.js.map} +0 -0
- /package/dist/chunks/{chunk-QNS2KLVT.js.map → chunk-DE5AFFGK.js.map} +0 -0
- /package/dist/chunks/{chunk-KCRZA2E3.js.map → chunk-DVYMOESJ.js.map} +0 -0
- /package/dist/chunks/{chunk-KROVFC6L.js.map → chunk-ET6Y6QTB.js.map} +0 -0
- /package/dist/chunks/{chunk-EQILSCM7.js.map → chunk-EY32VJBC.js.map} +0 -0
- /package/dist/chunks/{chunk-IJEESVK5.js.map → chunk-F2BM7LHM.js.map} +0 -0
- /package/dist/chunks/{chunk-VO2M2XZD.js.map → chunk-F6S3IBNL.js.map} +0 -0
- /package/dist/chunks/{chunk-KQYWFHRH.js.map → chunk-F7JDATG3.js.map} +0 -0
- /package/dist/chunks/{chunk-PGV6N7MI.js.map → chunk-F7LMCISP.js.map} +0 -0
- /package/dist/chunks/{chunk-4UC67RGJ.js.map → chunk-F7MCS63F.js.map} +0 -0
- /package/dist/chunks/{chunk-UZ6GL6GO.js.map → chunk-F7XHPIXJ.js.map} +0 -0
- /package/dist/chunks/{chunk-BFAMP45Q.js.map → chunk-FOP7MQEU.js.map} +0 -0
- /package/dist/chunks/{chunk-GID5WBC3.js.map → chunk-FWAUXNV2.js.map} +0 -0
- /package/dist/chunks/{chunk-YEMHAEO5.js.map → chunk-FZVZJQHL.js.map} +0 -0
- /package/dist/chunks/{chunk-AOMD2UUT.js.map → chunk-G6MRTDJQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BZVF3B6D.js.map → chunk-G7KLFAVX.js.map} +0 -0
- /package/dist/chunks/{chunk-JPQNCR67.js.map → chunk-GFEHVD2U.js.map} +0 -0
- /package/dist/chunks/{chunk-SSYBTI26.js.map → chunk-H6KPEFAR.js.map} +0 -0
- /package/dist/chunks/{chunk-BLSCBY2C.js.map → chunk-HIPITBXZ.js.map} +0 -0
- /package/dist/chunks/{chunk-4ACKQXK5.js.map → chunk-IN5SOIH6.js.map} +0 -0
- /package/dist/chunks/{chunk-RSGMOAEC.js.map → chunk-JBC4TK56.js.map} +0 -0
- /package/dist/chunks/{chunk-XUKM6GTW.js.map → chunk-JWS3NQAH.js.map} +0 -0
- /package/dist/chunks/{chunk-LWNTLOML.js.map → chunk-KLUCQZAS.js.map} +0 -0
- /package/dist/chunks/{chunk-BGODFPA6.js.map → chunk-LANIV6OQ.js.map} +0 -0
- /package/dist/chunks/{chunk-LKHMBU72.js.map → chunk-M7LQ3C6L.js.map} +0 -0
- /package/dist/chunks/{chunk-ZR3FTR77.js.map → chunk-MVJXTG2V.js.map} +0 -0
- /package/dist/chunks/{chunk-SPO4YDME.js.map → chunk-MVMWAXEY.js.map} +0 -0
- /package/dist/chunks/{chunk-TOGEJIC5.js.map → chunk-MVVZHKSQ.js.map} +0 -0
- /package/dist/chunks/{chunk-AJ3K7Z27.js.map → chunk-N3LPO5PK.js.map} +0 -0
- /package/dist/chunks/{chunk-4U245XO5.js.map → chunk-N4JROMUU.js.map} +0 -0
- /package/dist/chunks/{chunk-GDHAOY4Y.js.map → chunk-OBA275BH.js.map} +0 -0
- /package/dist/chunks/{chunk-H2SUL7EJ.js.map → chunk-OIYJMKAT.js.map} +0 -0
- /package/dist/chunks/{chunk-A4KQCS3B.js.map → chunk-QALDU3HZ.js.map} +0 -0
- /package/dist/chunks/{chunk-TL6X6MAW.js.map → chunk-QWDCN75Y.js.map} +0 -0
- /package/dist/chunks/{chunk-HSEIISLI.js.map → chunk-QZODMCBW.js.map} +0 -0
- /package/dist/chunks/{chunk-7COFRJAP.js.map → chunk-SGFN62CP.js.map} +0 -0
- /package/dist/chunks/{chunk-4BEZSMMK.js.map → chunk-SONYUWOD.js.map} +0 -0
- /package/dist/chunks/{chunk-P4SMB7ZH.js.map → chunk-SZXJSTKM.js.map} +0 -0
- /package/dist/chunks/{chunk-RLGFYOUI.js.map → chunk-T2Q6B7IG.js.map} +0 -0
- /package/dist/chunks/{chunk-5BPI6U3L.js.map → chunk-T6ZUFXGP.js.map} +0 -0
- /package/dist/chunks/{chunk-LIO5MS6U.js.map → chunk-TEBW5NV3.js.map} +0 -0
- /package/dist/chunks/{chunk-MNQDNDGD.js.map → chunk-TXLQW4AJ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZC7ZL42B.js.map → chunk-U5LAYHN6.js.map} +0 -0
- /package/dist/chunks/{chunk-3TINX26N.js.map → chunk-USAVWSGJ.js.map} +0 -0
- /package/dist/chunks/{chunk-XRPWPMV4.js.map → chunk-VAXTDL7E.js.map} +0 -0
- /package/dist/chunks/{chunk-3PDX3NC2.js.map → chunk-VMKK6SOW.js.map} +0 -0
- /package/dist/chunks/{chunk-YLSDJOE6.js.map → chunk-VYUMMKAA.js.map} +0 -0
- /package/dist/chunks/{chunk-LAR6KRME.js.map → chunk-WG6CPS5G.js.map} +0 -0
- /package/dist/chunks/{chunk-VM7ERL3Q.js.map → chunk-WK6RNDIK.js.map} +0 -0
- /package/dist/chunks/{chunk-LFJ73AX2.js.map → chunk-WNVU6MMP.js.map} +0 -0
- /package/dist/chunks/{chunk-UZLAIMHO.js.map → chunk-Y2DDE2WB.js.map} +0 -0
- /package/dist/chunks/{chunk-QISKJ5SO.js.map → chunk-YFMR2PV7.js.map} +0 -0
- /package/dist/chunks/{chunk-V45XJDX3.js.map → chunk-YIBJO76L.js.map} +0 -0
- /package/dist/chunks/{chunk-M5NDHHMG.js.map → chunk-YLEBTBWP.js.map} +0 -0
- /package/dist/chunks/{chunk-MLYGIG7M.js.map → chunk-ZB5RBBVO.js.map} +0 -0
- /package/dist/chunks/{chunk-2MLY3HJM.js.map → chunk-ZI7BWTPK.js.map} +0 -0
- /package/dist/chunks/{chunk-DC67SNZK.js.map → chunk-ZNYLVJIS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZM7SGAOM.js.map → chunk-ZQIWZDPM.js.map} +0 -0
- /package/dist/chunks/{commands-5MHVFUYY.js.map → commands-VTKTL26Z.js.map} +0 -0
- /package/dist/chunks/{cost-XLXGPE4O.js.map → cost-IRSQA4W3.js.map} +0 -0
- /package/dist/chunks/{crash-report-6V5QGAWA.js.map → crash-report-4RK3TDIG.js.map} +0 -0
- /package/dist/chunks/{dist-ZJ6G2XMS.js.map → dist-3OXE5SY4.js.map} +0 -0
- /package/dist/chunks/{dist-HOZJYOTI.js.map → dist-DZ7AVBME.js.map} +0 -0
- /package/dist/chunks/{dist-O526SRCF.js.map → dist-FFDAK4ES.js.map} +0 -0
- /package/dist/chunks/{dist-NESMLP2I.js.map → dist-IX7VHPCS.js.map} +0 -0
- /package/dist/chunks/{dist-AYALCT3C.js.map → dist-MFNIF6PB.js.map} +0 -0
- /package/dist/chunks/{dist-K5Z6YPNW.js.map → dist-SRSREGI2.js.map} +0 -0
- /package/dist/chunks/{dist-WQB34UXN.js.map → dist-XGVPG3SE.js.map} +0 -0
- /package/dist/chunks/{dist-NVATKUF3.js.map → dist-ZWWZFMZ7.js.map} +0 -0
- /package/dist/chunks/{doctor-WBAZKRZZ.js.map → doctor-BO6742WI.js.map} +0 -0
- /package/dist/chunks/{drain-WWQCYAWR.js.map → drain-R55GDZ6K.js.map} +0 -0
- /package/dist/chunks/{entry-IJAMOWTT.js.map → entry-OIRUHLN6.js.map} +0 -0
- /package/dist/chunks/{github-FQAXV2KP.js.map → github-MGIA7MTZ.js.map} +0 -0
- /package/dist/chunks/{home-A2HSOG27.js.map → home-LOZLKE2R.js.map} +0 -0
- /package/dist/chunks/{host-I3PPCCQ3.js.map → host-OJRB5UR4.js.map} +0 -0
- /package/dist/chunks/{host-queries-KIYOEKT2.js.map → host-queries-BTUGRPDQ.js.map} +0 -0
- /package/dist/chunks/{learn-EC2QFA66.js.map → learn-L7W4AY6F.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-5BIIU7HC.js.map → learn-builtin-F6D7VG2T.js.map} +0 -0
- /package/dist/chunks/{lifecycle-6FKBXE32.js.map → lifecycle-VH5JVETC.js.map} +0 -0
- /package/dist/chunks/{live-CJEVZFJZ.js.map → live-VMIC5YSV.js.map} +0 -0
- /package/dist/chunks/{login-C2QJP446.js.map → login-KTFS33SV.js.map} +0 -0
- /package/dist/chunks/{logs-QDXZ6HMD.js.map → logs-2RSTZ4Y5.js.map} +0 -0
- /package/dist/chunks/{mcp-CFQMYILA.js.map → mcp-SUQ5VHS3.js.map} +0 -0
- /package/dist/chunks/{message-command-X5BGZN6B.js.map → message-command-D72XMTER.js.map} +0 -0
- /package/dist/chunks/{open-USUNNL3C.js.map → open-PJI6LGEB.js.map} +0 -0
- /package/dist/chunks/{operator-tools-B5EKAIEU.js.map → operator-tools-7WLNIRD3.js.map} +0 -0
- /package/dist/chunks/{output-schema-4JBWQTYX.js.map → output-schema-PDWST74V.js.map} +0 -0
- /package/dist/chunks/{palette-CL5OOYGK.js.map → palette-V2OJ6BIE.js.map} +0 -0
- /package/dist/chunks/{peers-EQUVQXAR.js.map → peers-MCOSOVCD.js.map} +0 -0
- /package/dist/chunks/{peers-U4NWN44W.js.map → peers-XXL4YN6O.js.map} +0 -0
- /package/dist/chunks/{plugin-MGHRREZ7.js.map → plugin-JKJNFSF3.js.map} +0 -0
- /package/dist/chunks/{providers-QFMAPZK7.js.map → providers-2NZ5YDHJ.js.map} +0 -0
- /package/dist/chunks/{pty-YX7E7UJ6.js.map → pty-QYTCSD7G.js.map} +0 -0
- /package/dist/chunks/{resume-DHAMPNCN.js.map → resume-5MSYHNA7.js.map} +0 -0
- /package/dist/chunks/{resume-command-I7SNRBQE.js.map → resume-command-KXICGDCC.js.map} +0 -0
- /package/dist/chunks/{running-2LN4IWKC.js.map → running-5FNI2UAN.js.map} +0 -0
- /package/dist/chunks/{schedule-75QPB5GP.js.map → schedule-CKRLCLZE.js.map} +0 -0
- /package/dist/chunks/{send-II2KFKIK.js.map → send-5B4ROQRC.js.map} +0 -0
- /package/dist/chunks/{send-person-74VABPSV.js.map → send-person-5CPYLU6J.js.map} +0 -0
- /package/dist/chunks/{service-6E7VOOO3.js.map → service-X3J6SDE6.js.map} +0 -0
- /package/dist/chunks/{skills-YVKRYB7M.js.map → skills-MJVSGTLM.js.map} +0 -0
- /package/dist/chunks/{start-check-24S2MXPQ.js.map → start-check-U4TZS2VO.js.map} +0 -0
- /package/dist/chunks/{startup-failure-SAPN77LY.js.map → startup-failure-UCPXEDWH.js.map} +0 -0
- /package/dist/chunks/{state-JUVAH65X.js.map → state-FHGFEIF6.js.map} +0 -0
- /package/dist/chunks/{store-CQOALIPR.js.map → store-PL3BXOPA.js.map} +0 -0
- /package/dist/chunks/{store-EOOW5RU2.js.map → store-TVP3LZNP.js.map} +0 -0
- /package/dist/chunks/{store-LX7F4E5A.js.map → store-TXC7F7KD.js.map} +0 -0
- /package/dist/chunks/{store-RS7ZLTDT.js.map → store-XJXBG4MP.js.map} +0 -0
- /package/dist/chunks/{upgrade-7MSTVPZZ.js.map → upgrade-7AKSY32I.js.map} +0 -0
- /package/dist/chunks/{workspaces-3F2DSKWC.js.map → workspaces-4BNGHUKR.js.map} +0 -0
- /package/dist/chunks/{worktree-HPE4E4UF.js.map → worktree-2JUYAPLO.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 = "
|
|
328
|
+
var VERSION = "63.1.0";
|
|
329
329
|
|
|
330
330
|
// ../sdk/dist/runtime/harness-session/index.js
|
|
331
331
|
import { posix, win32 } from "node:path";
|
|
@@ -47394,6 +47394,36 @@ async function readEverRecordedMessageIndex(log) {
|
|
|
47394
47394
|
}
|
|
47395
47395
|
__name(readEverRecordedMessageIndex, "readEverRecordedMessageIndex");
|
|
47396
47396
|
|
|
47397
|
+
// ../sdk/dist/plugin/hook-context.js
|
|
47398
|
+
var MAX_HOOK_CONTEXT_CHARS = 8e3;
|
|
47399
|
+
function boundHookContext(text11) {
|
|
47400
|
+
return text11.length > MAX_HOOK_CONTEXT_CHARS ? `${text11.slice(0, MAX_HOOK_CONTEXT_CHARS)}
|
|
47401
|
+
[truncated]` : text11;
|
|
47402
|
+
}
|
|
47403
|
+
__name(boundHookContext, "boundHookContext");
|
|
47404
|
+
var MAX_HOOK_REPLACEMENT_CHARS = 32e3;
|
|
47405
|
+
function boundHookReplacement(text11) {
|
|
47406
|
+
return text11.length > MAX_HOOK_REPLACEMENT_CHARS ? `${text11.slice(0, MAX_HOOK_REPLACEMENT_CHARS)}
|
|
47407
|
+
[truncated]` : text11;
|
|
47408
|
+
}
|
|
47409
|
+
__name(boundHookReplacement, "boundHookReplacement");
|
|
47410
|
+
function frameOperatorHookContext(texts) {
|
|
47411
|
+
return `Context from the operator's hooks:
|
|
47412
|
+
|
|
47413
|
+
${texts.join("\n\n")}`;
|
|
47414
|
+
}
|
|
47415
|
+
__name(frameOperatorHookContext, "frameOperatorHookContext");
|
|
47416
|
+
function sessionStartHookContext(results) {
|
|
47417
|
+
const texts = [];
|
|
47418
|
+
for (const result of results) {
|
|
47419
|
+
const text11 = result.action === "annotate" ? result.text : result.action === "continue" ? result.context : void 0;
|
|
47420
|
+
if (text11 !== void 0 && text11.trim().length > 0)
|
|
47421
|
+
texts.push(text11.trim());
|
|
47422
|
+
}
|
|
47423
|
+
return texts.length === 0 ? void 0 : boundHookContext(texts.join("\n\n"));
|
|
47424
|
+
}
|
|
47425
|
+
__name(sessionStartHookContext, "sessionStartHookContext");
|
|
47426
|
+
|
|
47397
47427
|
// ../sdk/dist/prompt/contributions.js
|
|
47398
47428
|
var PromptContributionCollisionError = class extends RegistryCollisionError {
|
|
47399
47429
|
static {
|
|
@@ -55611,7 +55641,7 @@ var OutcomeLedger = class {
|
|
|
55611
55641
|
async observe(step, calls) {
|
|
55612
55642
|
let pending2 = [];
|
|
55613
55643
|
for (const call2 of calls) {
|
|
55614
|
-
if (call2.skipped === true)
|
|
55644
|
+
if (call2.skipped === true || call2.notRun === true || call2.launched === true)
|
|
55615
55645
|
continue;
|
|
55616
55646
|
const written = WRITING_TOOLS.has(call2.toolName);
|
|
55617
55647
|
if (written && call2.isError !== true) {
|
|
@@ -56854,7 +56884,8 @@ function buildCoordinatorTools(opts) {
|
|
|
56854
56884
|
state: handle.state,
|
|
56855
56885
|
plan_task_id: resolvedPlanTaskId,
|
|
56856
56886
|
background: true
|
|
56857
|
-
}
|
|
56887
|
+
},
|
|
56888
|
+
launched: true
|
|
56858
56889
|
};
|
|
56859
56890
|
}
|
|
56860
56891
|
const outcome = await waitForTaskWithBounds(gateway, handle.taskId, {
|
|
@@ -63703,10 +63734,14 @@ function shellProgress(report) {
|
|
|
63703
63734
|
return void 0;
|
|
63704
63735
|
const partial2 = { stdout: "", stderr: "" };
|
|
63705
63736
|
let lastMessage = "";
|
|
63737
|
+
let outputLines = 0;
|
|
63738
|
+
let lastLines = 0;
|
|
63706
63739
|
return ({ stream, data }) => {
|
|
63707
63740
|
let line = partial2[stream];
|
|
63708
63741
|
let latest = "";
|
|
63709
63742
|
let start = 0;
|
|
63743
|
+
for (let at = data.indexOf("\n"); at >= 0; at = data.indexOf("\n", at + 1))
|
|
63744
|
+
outputLines++;
|
|
63710
63745
|
for (const match of data.matchAll(/[\r\n]/g)) {
|
|
63711
63746
|
line = appendProgressTail(line, data, start, match.index);
|
|
63712
63747
|
latest = progressLine(line) || latest;
|
|
@@ -63716,11 +63751,12 @@ function shellProgress(report) {
|
|
|
63716
63751
|
line = appendProgressTail(line, data, start, data.length);
|
|
63717
63752
|
partial2[stream] = line;
|
|
63718
63753
|
const message = progressLine(line) || latest;
|
|
63719
|
-
if (!message || message === lastMessage)
|
|
63754
|
+
if (!message || message === lastMessage && outputLines === lastLines)
|
|
63720
63755
|
return;
|
|
63721
63756
|
lastMessage = message;
|
|
63757
|
+
lastLines = outputLines;
|
|
63722
63758
|
try {
|
|
63723
|
-
report(message);
|
|
63759
|
+
report(message, void 0, { outputLines });
|
|
63724
63760
|
} catch {
|
|
63725
63761
|
}
|
|
63726
63762
|
};
|
|
@@ -67510,11 +67546,9 @@ __name(interpretPreToolResults, "interpretPreToolResults");
|
|
|
67510
67546
|
function hookNote(texts) {
|
|
67511
67547
|
const joined4 = texts.join("\n");
|
|
67512
67548
|
return `[Hook note]
|
|
67513
|
-
${joined4
|
|
67514
|
-
[truncated]` : joined4}`;
|
|
67549
|
+
${boundHookContext(joined4)}`;
|
|
67515
67550
|
}
|
|
67516
67551
|
__name(hookNote, "hookNote");
|
|
67517
|
-
var MAX_HOOK_NOTE_CHARS = 8e3;
|
|
67518
67552
|
async function resolveCall(host, toolCall) {
|
|
67519
67553
|
let toolName = toolCall.function.name;
|
|
67520
67554
|
let raw = toolCall.function.arguments;
|
|
@@ -72308,12 +72342,13 @@ var ToolProgressPublisher = class {
|
|
|
72308
72342
|
this.emitEvent = emitEvent;
|
|
72309
72343
|
this.base = base3;
|
|
72310
72344
|
}
|
|
72311
|
-
report(message, fraction) {
|
|
72345
|
+
report(message, fraction, details) {
|
|
72312
72346
|
if (!this.accepting)
|
|
72313
72347
|
return;
|
|
72314
72348
|
this.pending = {
|
|
72315
72349
|
message,
|
|
72316
|
-
...fraction !== void 0 ? { fraction: Math.min(1, Math.max(0, fraction)) } : {}
|
|
72350
|
+
...fraction !== void 0 ? { fraction: Math.min(1, Math.max(0, fraction)) } : {},
|
|
72351
|
+
...details?.outputLines !== void 0 && Number.isFinite(details.outputLines) ? { outputLines: Math.max(0, Math.floor(details.outputLines)) } : {}
|
|
72317
72352
|
};
|
|
72318
72353
|
this.startDrain();
|
|
72319
72354
|
}
|
|
@@ -72342,7 +72377,8 @@ var ToolProgressPublisher = class {
|
|
|
72342
72377
|
await this.emitEvent({
|
|
72343
72378
|
...this.base,
|
|
72344
72379
|
message: boundedToolProgress(update2.message),
|
|
72345
|
-
...update2.fraction !== void 0 ? { fraction: update2.fraction } : {}
|
|
72380
|
+
...update2.fraction !== void 0 ? { fraction: update2.fraction } : {},
|
|
72381
|
+
...update2.outputLines !== void 0 ? { outputLines: update2.outputLines } : {}
|
|
72346
72382
|
}).catch(() => {
|
|
72347
72383
|
});
|
|
72348
72384
|
}
|
|
@@ -72353,6 +72389,7 @@ var DEFAULT_TOOL_RETRY_BACKOFF = {
|
|
|
72353
72389
|
initialDelayMs: 500,
|
|
72354
72390
|
maxDelayMs: 16e3
|
|
72355
72391
|
};
|
|
72392
|
+
var HOOK_REPLACED_RESULT_NOTE = "A hook replaced this tool result: the text above is the hook's, not the tool's own output.";
|
|
72356
72393
|
var DECLINED_NOTE_MAX_CHARS = 4e3;
|
|
72357
72394
|
function refusalFacts(toolName, input2, reason) {
|
|
72358
72395
|
const command = input2 && typeof input2 === "object" ? input2.command : void 0;
|
|
@@ -73243,7 +73280,7 @@ var ToolExecutor = class {
|
|
|
73243
73280
|
// Per-call for the same reason: a pause has to be routed back
|
|
73244
73281
|
// to the call that raised it, and a batch can raise several.
|
|
73245
73282
|
...this.config.toolPause ? { requestPause: this.config.toolPause(toolCall.id) } : {},
|
|
73246
|
-
report: /* @__PURE__ */ __name((message, fraction) => progress.report(message, fraction), "report")
|
|
73283
|
+
report: /* @__PURE__ */ __name((message, fraction, details) => progress.report(message, fraction, details), "report")
|
|
73247
73284
|
};
|
|
73248
73285
|
if (preparedCall) {
|
|
73249
73286
|
const cwd = this.preparedBashDirectories.get(preparedCall);
|
|
@@ -73625,7 +73662,7 @@ var ToolExecutor = class {
|
|
|
73625
73662
|
// ephemeral child id; minting a pause route for `nestedId` makes the
|
|
73626
73663
|
// answer impossible to match after process restart. `...context`
|
|
73627
73664
|
// intentionally preserves the ancestor route here.
|
|
73628
|
-
report: /* @__PURE__ */ __name((message, fraction) => progress.report(message, fraction), "report")
|
|
73665
|
+
report: /* @__PURE__ */ __name((message, fraction, details) => progress.report(message, fraction, details), "report")
|
|
73629
73666
|
};
|
|
73630
73667
|
const nestedCwd = this.preparedBashDirectories.get(preparedCall);
|
|
73631
73668
|
if (nestedCwd !== void 0)
|
|
@@ -74056,7 +74093,11 @@ var ToolExecutor = class {
|
|
|
74056
74093
|
sourceOutput,
|
|
74057
74094
|
budgeted
|
|
74058
74095
|
});
|
|
74059
|
-
const hookTexts = [
|
|
74096
|
+
const hookTexts = [
|
|
74097
|
+
postOverride?.replacedByHook === true ? HOOK_REPLACED_RESULT_NOTE : void 0,
|
|
74098
|
+
preparedHookContext,
|
|
74099
|
+
post.context
|
|
74100
|
+
].filter((text11) => text11 !== void 0 && text11.length > 0);
|
|
74060
74101
|
if (hookTexts.length > 0) {
|
|
74061
74102
|
const note = hookNote(hookTexts);
|
|
74062
74103
|
output2 = `${output2}
|
|
@@ -74172,6 +74213,7 @@ ${note}`;
|
|
|
74172
74213
|
// the tool's statement about the world, not about its output, and a
|
|
74173
74214
|
// hook that redacts a sign-in page has not signed anyone in.
|
|
74174
74215
|
...result.handoff !== void 0 && !this.config.abortSignal.aborted ? { handoff: result.handoff } : {},
|
|
74216
|
+
...result.launched === true && !effectiveIsError ? { launched: true } : {},
|
|
74175
74217
|
...revealedTools !== void 0 ? { revealedTools } : {},
|
|
74176
74218
|
...result.facts !== void 0 && !postOverride ? { facts: result.facts } : {}
|
|
74177
74219
|
};
|
|
@@ -74527,8 +74569,13 @@ ${note}`;
|
|
|
74527
74569
|
override = {
|
|
74528
74570
|
output: result.output,
|
|
74529
74571
|
isError: false,
|
|
74572
|
+
...result.disclose === true ? { replacedByHook: true } : {},
|
|
74530
74573
|
...result.content !== void 0 ? { content: result.content } : {}
|
|
74531
74574
|
};
|
|
74575
|
+
if (result.context)
|
|
74576
|
+
contexts.push(result.context);
|
|
74577
|
+
if (result.halt)
|
|
74578
|
+
this.requestHalt(result.halt.reason);
|
|
74532
74579
|
continue;
|
|
74533
74580
|
// `retry` was a declared variant with no implementation: every
|
|
74534
74581
|
// site that consumed it threw. Here it finally means something
|
|
@@ -74610,7 +74657,7 @@ ${note}`;
|
|
|
74610
74657
|
...declined2 ? {} : { facts: refusalFacts(toolName, input2, reason) },
|
|
74611
74658
|
isError: true
|
|
74612
74659
|
});
|
|
74613
|
-
return { toolCallId: toolCall.id, toolName, output: output2, isError: true };
|
|
74660
|
+
return { toolCallId: toolCall.id, toolName, output: output2, isError: true, notRun: true };
|
|
74614
74661
|
}
|
|
74615
74662
|
/**
|
|
74616
74663
|
* What a host replays for a call the person declined. The label names the
|
|
@@ -74636,6 +74683,7 @@ ${note}`;
|
|
|
74636
74683
|
const reason = abortReasonText(this.config.abortSignal.reason);
|
|
74637
74684
|
return this.recordSyntheticHookOutcome(toolCallId, toolName, input2, {
|
|
74638
74685
|
kind: "error",
|
|
74686
|
+
notRun: true,
|
|
74639
74687
|
output: `Tool "${toolName}" was not started because the turn was cancelled${reason ? `: ${reason}` : "."}`
|
|
74640
74688
|
});
|
|
74641
74689
|
}
|
|
@@ -74680,12 +74728,14 @@ ${note}`;
|
|
|
74680
74728
|
isError: outcome.kind === "error",
|
|
74681
74729
|
...outcome.facts ? { facts: outcome.facts } : {},
|
|
74682
74730
|
...outcome.inputFailure ? { inputFailure: outcome.inputFailure } : {},
|
|
74683
|
-
...outcome.skipped ? { skipped: true } : {}
|
|
74731
|
+
...outcome.skipped ? { skipped: true } : {},
|
|
74732
|
+
...outcome.notRun ? { notRun: true } : {}
|
|
74684
74733
|
};
|
|
74685
74734
|
}
|
|
74686
74735
|
recordSyntheticPreparation(call2) {
|
|
74687
74736
|
return this.recordSyntheticHookOutcome(call2.toolCall.id, call2.toolName, call2.input, {
|
|
74688
74737
|
kind: call2.isError ? "error" : "skip",
|
|
74738
|
+
...call2.isError ? { notRun: true } : {},
|
|
74689
74739
|
output: call2.message,
|
|
74690
74740
|
...call2.facts ? { facts: call2.facts } : {},
|
|
74691
74741
|
...call2.inputFailure ? { inputFailure: call2.inputFailure } : {},
|
|
@@ -80168,6 +80218,8 @@ ${feedback}`, "hook-feedback"));
|
|
|
80168
80218
|
input: input2,
|
|
80169
80219
|
isError: result.isError,
|
|
80170
80220
|
...result.skipped ? { skipped: true } : {},
|
|
80221
|
+
...result.notRun ? { notRun: true } : {},
|
|
80222
|
+
...result.launched ? { launched: true } : {},
|
|
80171
80223
|
readOnly: this.lookedOnly(result.toolName, input2),
|
|
80172
80224
|
...result.facts ? { facts: result.facts } : {}
|
|
80173
80225
|
};
|
|
@@ -86169,9 +86221,7 @@ async function* query(params) {
|
|
|
86169
86221
|
promptContributions.replace({
|
|
86170
86222
|
id: "hooks:subagent_start",
|
|
86171
86223
|
placement: "context",
|
|
86172
|
-
render: /* @__PURE__ */ __name(() =>
|
|
86173
|
-
|
|
86174
|
-
${startAnnotations.join("\n\n")}`, "render")
|
|
86224
|
+
render: /* @__PURE__ */ __name(() => frameOperatorHookContext(startAnnotations), "render")
|
|
86175
86225
|
});
|
|
86176
86226
|
}
|
|
86177
86227
|
yield* eventTranslator.drainPending();
|
|
@@ -86188,9 +86238,7 @@ ${startAnnotations.join("\n\n")}`, "render")
|
|
|
86188
86238
|
promptContributions.replace({
|
|
86189
86239
|
id: "hooks:user_prompt_submit",
|
|
86190
86240
|
placement: "context",
|
|
86191
|
-
render: /* @__PURE__ */ __name(() =>
|
|
86192
|
-
|
|
86193
|
-
${annotations.join("\n\n")}`, "render")
|
|
86241
|
+
render: /* @__PURE__ */ __name(() => frameOperatorHookContext(annotations), "render")
|
|
86194
86242
|
});
|
|
86195
86243
|
}
|
|
86196
86244
|
yield* eventTranslator.drainPending();
|
|
@@ -104182,6 +104230,19 @@ var PluginLifecycleManager = class {
|
|
|
104182
104230
|
handlers.sort((a, b) => a.priority - b.priority || a.seq - b.seq);
|
|
104183
104231
|
this.hookHandlers.set(hook.event, handlers);
|
|
104184
104232
|
}
|
|
104233
|
+
/**
|
|
104234
|
+
* Every hook attached right now, by the plugin id it was registered under
|
|
104235
|
+
* and its event, in the order answers are read. For a host that shows the
|
|
104236
|
+
* operator what is attached; it carries no handler.
|
|
104237
|
+
*/
|
|
104238
|
+
listHooks() {
|
|
104239
|
+
const out = [];
|
|
104240
|
+
for (const [event, handlers] of this.hookHandlers) {
|
|
104241
|
+
for (const handler of handlers)
|
|
104242
|
+
out.push({ pluginId: handler.pluginId, event });
|
|
104243
|
+
}
|
|
104244
|
+
return out;
|
|
104245
|
+
}
|
|
104185
104246
|
on(listener) {
|
|
104186
104247
|
this.listeners.push(listener);
|
|
104187
104248
|
}
|
|
@@ -105015,23 +105076,80 @@ var SHELL_HOOKS_PLUGIN_ID = asPluginId("6d6f6bec-9d54-485b-90ca-52edbac1009d");
|
|
|
105015
105076
|
var DEFAULT_SHELL_HOOK_TIMEOUT_MS = 6e5;
|
|
105016
105077
|
var MAX_SHELL_HOOK_TIMEOUT_MS = 10 * 6e4;
|
|
105017
105078
|
var MAX_CAPTURE_BYTES = 64 * 1024;
|
|
105018
|
-
|
|
105079
|
+
var WRITTEN_TOOL_NAMES = Object.freeze({
|
|
105080
|
+
read: "Read",
|
|
105081
|
+
write: "Write",
|
|
105082
|
+
edit: "Edit",
|
|
105083
|
+
multiedit: "MultiEdit",
|
|
105084
|
+
bash: "Bash",
|
|
105085
|
+
grep: "Grep",
|
|
105086
|
+
glob: "Glob",
|
|
105087
|
+
ls: "LS",
|
|
105088
|
+
webfetch: "WebFetch",
|
|
105089
|
+
websearch: "WebSearch",
|
|
105090
|
+
skill: "Skill",
|
|
105091
|
+
askuserquestion: "AskUserQuestion",
|
|
105092
|
+
task: "Task",
|
|
105093
|
+
agent: "Agent",
|
|
105094
|
+
lsp: "LSP",
|
|
105095
|
+
toolsearch: "ToolSearch",
|
|
105096
|
+
bashoutput: "BashOutput",
|
|
105097
|
+
taskoutput: "TaskOutput",
|
|
105098
|
+
killshell: "KillShell",
|
|
105099
|
+
killbash: "KillBash",
|
|
105100
|
+
taskstop: "TaskStop",
|
|
105101
|
+
taskcreate: "TaskCreate",
|
|
105102
|
+
taskupdate: "TaskUpdate",
|
|
105103
|
+
tasklist: "TaskList"
|
|
105104
|
+
});
|
|
105105
|
+
function writtenNamesFor(toolName) {
|
|
105106
|
+
const lower = toolName.toLowerCase();
|
|
105107
|
+
const names = [];
|
|
105108
|
+
for (const [written, tool] of Object.entries(SKILL_TOOL_NAME_ALIASES)) {
|
|
105109
|
+
if (tool !== lower)
|
|
105110
|
+
continue;
|
|
105111
|
+
names.push(written);
|
|
105112
|
+
const spelled = WRITTEN_TOOL_NAMES[written];
|
|
105113
|
+
if (spelled !== void 0)
|
|
105114
|
+
names.push(spelled);
|
|
105115
|
+
}
|
|
105116
|
+
return names;
|
|
105117
|
+
}
|
|
105118
|
+
__name(writtenNamesFor, "writtenNamesFor");
|
|
105119
|
+
function shellHookMatches(matcher, toolName, options = {}) {
|
|
105019
105120
|
if (matcher === void 0 || matcher.trim() === "" || matcher.trim() === "*")
|
|
105020
105121
|
return true;
|
|
105021
105122
|
if (toolName === void 0)
|
|
105022
105123
|
return false;
|
|
105124
|
+
const tool = options.tool === true;
|
|
105023
105125
|
const parts = matcher.split(/[|,]/).map((part2) => part2.trim());
|
|
105024
105126
|
if (parts.every((part2) => /^[A-Za-z0-9_.:-]+\*?$/.test(part2))) {
|
|
105025
|
-
|
|
105127
|
+
const subject = toolName.toLowerCase();
|
|
105128
|
+
const listed = parts.some((candidate) => {
|
|
105129
|
+
const prefix = candidate.endsWith("*");
|
|
105130
|
+
const written = (prefix ? candidate.slice(0, -1) : candidate).toLowerCase();
|
|
105131
|
+
const spellings = [written];
|
|
105132
|
+
if (tool) {
|
|
105133
|
+
const alias = SKILL_TOOL_NAME_ALIASES[written];
|
|
105134
|
+
if (alias !== void 0)
|
|
105135
|
+
spellings.push(alias);
|
|
105136
|
+
}
|
|
105137
|
+
return spellings.some((name2) => prefix ? subject.startsWith(name2) : subject === name2);
|
|
105138
|
+
});
|
|
105139
|
+
if (listed || !matcher.includes(".*"))
|
|
105140
|
+
return listed;
|
|
105026
105141
|
}
|
|
105027
105142
|
try {
|
|
105028
|
-
|
|
105143
|
+
const expression = new RegExp(matcher);
|
|
105144
|
+
if (expression.test(toolName))
|
|
105145
|
+
return true;
|
|
105146
|
+
return tool && writtenNamesFor(toolName).some((name2) => expression.test(name2));
|
|
105029
105147
|
} catch {
|
|
105030
105148
|
return false;
|
|
105031
105149
|
}
|
|
105032
105150
|
}
|
|
105033
105151
|
__name(shellHookMatches, "shellHookMatches");
|
|
105034
|
-
function shellHookIfMatches(filter, toolName, toolInput) {
|
|
105152
|
+
function shellHookIfMatches(filter, toolName, toolInput, pathFilter) {
|
|
105035
105153
|
if (filter === void 0 || filter.trim() === "")
|
|
105036
105154
|
return true;
|
|
105037
105155
|
if (toolName === void 0)
|
|
@@ -105041,10 +105159,16 @@ function shellHookIfMatches(filter, toolName, toolInput) {
|
|
|
105041
105159
|
return true;
|
|
105042
105160
|
const written = (shape[1] ?? "").toLowerCase();
|
|
105043
105161
|
const tool = SKILL_TOOL_NAME_ALIASES[written] ?? written;
|
|
105162
|
+
const specifier = shape[2]?.trim();
|
|
105163
|
+
const hasPattern = specifier !== void 0 && specifier !== "" && specifier.replaceAll("*", "") !== "";
|
|
105164
|
+
if (hasPattern && pathFilter !== void 0) {
|
|
105165
|
+
const answer = pathFilter(tool, specifier, toolName, toolInput);
|
|
105166
|
+
if (answer !== void 0)
|
|
105167
|
+
return answer;
|
|
105168
|
+
}
|
|
105044
105169
|
if (tool !== toolName.toLowerCase())
|
|
105045
105170
|
return false;
|
|
105046
|
-
|
|
105047
|
-
if (specifier === void 0 || specifier === "" || specifier.replaceAll("*", "") === "")
|
|
105171
|
+
if (!hasPattern)
|
|
105048
105172
|
return true;
|
|
105049
105173
|
if (tool !== "bash")
|
|
105050
105174
|
return true;
|
|
@@ -105073,6 +105197,7 @@ function shellHookPayload(input2) {
|
|
|
105073
105197
|
...input2.transcriptPath !== void 0 ? { transcript_path: input2.transcriptPath } : {},
|
|
105074
105198
|
...input2.permissionMode !== void 0 ? { permission_mode: input2.permissionMode } : {},
|
|
105075
105199
|
...input2.turnId !== void 0 ? { turn_id: input2.turnId } : {},
|
|
105200
|
+
...input2.sessionSource !== void 0 ? { source: input2.sessionSource } : {},
|
|
105076
105201
|
...input2.parentSessionId !== void 0 ? { parent_session_id: input2.parentSessionId } : {},
|
|
105077
105202
|
...input2.parentTurnId !== void 0 ? { parent_turn_id: input2.parentTurnId } : {},
|
|
105078
105203
|
...input2.agentType !== void 0 ? { agent_id: input2.sessionId, agent_type: input2.agentType } : {},
|
|
@@ -105091,7 +105216,7 @@ function shellHookPayload(input2) {
|
|
|
105091
105216
|
is_error: call2.isError
|
|
105092
105217
|
}))
|
|
105093
105218
|
} : {},
|
|
105094
|
-
...input2.reason !== void 0 ? { reason: input2.reason } : {},
|
|
105219
|
+
...input2.reason !== void 0 ? { reason: input2.reason } : input2.endReason !== void 0 ? { reason: input2.endReason } : {},
|
|
105095
105220
|
...input2.event === "turn_failure" && input2.error !== void 0 ? { error: input2.error } : {},
|
|
105096
105221
|
...input2.notification !== void 0 ? {
|
|
105097
105222
|
notification_type: input2.notification.type,
|
|
@@ -105113,6 +105238,7 @@ function runShellHook(entry, input2, signal) {
|
|
|
105113
105238
|
...inherited,
|
|
105114
105239
|
NAMZU_HOOK_EVENT: input2.event,
|
|
105115
105240
|
NAMZU_SESSION_ID: input2.sessionId,
|
|
105241
|
+
NAMZU_PROJECT_DIR: input2.projectDir ?? input2.cwd,
|
|
105116
105242
|
...input2.turnId !== void 0 ? { NAMZU_TURN_ID: input2.turnId } : {},
|
|
105117
105243
|
...input2.toolName !== void 0 ? { NAMZU_TOOL_NAME: input2.toolName } : {},
|
|
105118
105244
|
...toolPath !== void 0 ? { NAMZU_TOOL_PATH: toolPath } : {}
|
|
@@ -105148,14 +105274,26 @@ function runShellHook(entry, input2, signal) {
|
|
|
105148
105274
|
}
|
|
105149
105275
|
let stdout = "";
|
|
105150
105276
|
let stderr = "";
|
|
105277
|
+
let stdoutTruncated = false;
|
|
105151
105278
|
let timedOut = false;
|
|
105152
105279
|
let settled = false;
|
|
105153
|
-
const capture = /* @__PURE__ */ __name((current, chunk) =>
|
|
105280
|
+
const capture = /* @__PURE__ */ __name((current, chunk) => {
|
|
105281
|
+
if (current.length >= MAX_CAPTURE_BYTES)
|
|
105282
|
+
return { text: current, cut: chunk.length > 0 };
|
|
105283
|
+
const joined4 = current + chunk.toString("utf8");
|
|
105284
|
+
return {
|
|
105285
|
+
text: joined4.slice(0, MAX_CAPTURE_BYTES),
|
|
105286
|
+
cut: joined4.length > MAX_CAPTURE_BYTES
|
|
105287
|
+
};
|
|
105288
|
+
}, "capture");
|
|
105154
105289
|
child.stdout?.on("data", (chunk) => {
|
|
105155
|
-
|
|
105290
|
+
const next2 = capture(stdout, chunk);
|
|
105291
|
+
stdout = next2.text;
|
|
105292
|
+
if (next2.cut)
|
|
105293
|
+
stdoutTruncated = true;
|
|
105156
105294
|
});
|
|
105157
105295
|
child.stderr?.on("data", (chunk) => {
|
|
105158
|
-
stderr = capture(stderr, chunk);
|
|
105296
|
+
stderr = capture(stderr, chunk).text;
|
|
105159
105297
|
});
|
|
105160
105298
|
const finish2 = /* @__PURE__ */ __name((outcome) => {
|
|
105161
105299
|
if (settled)
|
|
@@ -105187,11 +105325,18 @@ function runShellHook(entry, input2, signal) {
|
|
|
105187
105325
|
timedOut,
|
|
105188
105326
|
stdout,
|
|
105189
105327
|
stderr,
|
|
105328
|
+
...stdoutTruncated ? { stdoutTruncated } : {},
|
|
105190
105329
|
spawnError: error62.message
|
|
105191
105330
|
});
|
|
105192
105331
|
});
|
|
105193
105332
|
child.on("close", (code) => {
|
|
105194
|
-
finish2({
|
|
105333
|
+
finish2({
|
|
105334
|
+
exitCode: code,
|
|
105335
|
+
timedOut,
|
|
105336
|
+
stdout,
|
|
105337
|
+
stderr,
|
|
105338
|
+
...stdoutTruncated ? { stdoutTruncated } : {}
|
|
105339
|
+
});
|
|
105195
105340
|
});
|
|
105196
105341
|
child.on("exit", () => {
|
|
105197
105342
|
if (timedOut || signal?.aborted) {
|
|
@@ -105336,6 +105481,12 @@ function readShellHookJson(event, stdout) {
|
|
|
105336
105481
|
reading.updatedInput = specific.updatedInput;
|
|
105337
105482
|
}
|
|
105338
105483
|
}
|
|
105484
|
+
if (event === "post_tool_use" && specific.updatedToolOutput !== void 0) {
|
|
105485
|
+
if (typeof specific.updatedToolOutput !== "string") {
|
|
105486
|
+
return { invalid: "hookSpecificOutput: `updatedToolOutput` must be a string" };
|
|
105487
|
+
}
|
|
105488
|
+
reading.replacement = boundHookReplacement(specific.updatedToolOutput);
|
|
105489
|
+
}
|
|
105339
105490
|
if (event === "permission_request") {
|
|
105340
105491
|
const decision2 = specific.decision;
|
|
105341
105492
|
if (!isRecord4(decision2)) {
|
|
@@ -105362,7 +105513,21 @@ function shellHookVerdict(event, entry, outcome, log = NOOP_LOGGER) {
|
|
|
105362
105513
|
"namzu.hook.event": event,
|
|
105363
105514
|
"namzu.hook.command": label5
|
|
105364
105515
|
};
|
|
105365
|
-
const failed = /* @__PURE__ */ __name((reason
|
|
105516
|
+
const failed = /* @__PURE__ */ __name((reason, shown = reason) => {
|
|
105517
|
+
if (entry.onFailure !== "block" || entry.type === "prompt" || isAsyncShellHook(entry)) {
|
|
105518
|
+
return { action: "continue" };
|
|
105519
|
+
}
|
|
105520
|
+
if (event === "post_tool_use" || event === "post_tool_use_failure") {
|
|
105521
|
+
const line = `A hook guarding this result failed, so the result is not shown (${shown}). The tool call itself has already run.`;
|
|
105522
|
+
return {
|
|
105523
|
+
action: "replace",
|
|
105524
|
+
output: line,
|
|
105525
|
+
content: [{ type: "text", text: line }],
|
|
105526
|
+
disclose: true
|
|
105527
|
+
};
|
|
105528
|
+
}
|
|
105529
|
+
return shellHookVerdict(event, { ...entry, onFailure: "continue" }, { exitCode: 2, timedOut: false, stdout: "", stderr: `hook failed: ${reason}` }, log);
|
|
105530
|
+
}, "failed");
|
|
105366
105531
|
if (outcome.spawnError !== void 0) {
|
|
105367
105532
|
log.warn("hook could not start", {
|
|
105368
105533
|
...attrs,
|
|
@@ -105409,9 +105574,11 @@ function shellHookVerdict(event, entry, outcome, log = NOOP_LOGGER) {
|
|
|
105409
105574
|
return failed(`exited with ${outcome.exitCode ?? "no code"}`);
|
|
105410
105575
|
}
|
|
105411
105576
|
const text11 = outcome.stdout.trim();
|
|
105412
|
-
const reading =
|
|
105577
|
+
const reading = outcome.stdoutTruncated === true && text11.startsWith("{") ? {
|
|
105578
|
+
invalid: `answer is too large: the hook printed more than the ${MAX_CAPTURE_BYTES} characters of stdout that are read`
|
|
105579
|
+
} : readShellHookJson(event, outcome.stdout);
|
|
105413
105580
|
if (reading === void 0) {
|
|
105414
|
-
if ((event === "user_prompt_submit" || event === "subagent_start") && text11.length > 0)
|
|
105581
|
+
if ((event === "user_prompt_submit" || event === "subagent_start" || event === "session_start") && text11.length > 0)
|
|
105415
105582
|
return { action: "annotate", text: text11 };
|
|
105416
105583
|
return { action: "continue" };
|
|
105417
105584
|
}
|
|
@@ -105420,7 +105587,7 @@ function shellHookVerdict(event, entry, outcome, log = NOOP_LOGGER) {
|
|
|
105420
105587
|
...attrs,
|
|
105421
105588
|
"namzu.hook.problem": reading.invalid
|
|
105422
105589
|
});
|
|
105423
|
-
return failed(reading.invalid);
|
|
105590
|
+
return failed(reading.invalid, reading.invalid.split(" (")[0]);
|
|
105424
105591
|
}
|
|
105425
105592
|
if (!reading.suppressOutput) {
|
|
105426
105593
|
log.debug("hook output", {
|
|
@@ -105465,9 +105632,26 @@ function shellHookVerdict(event, entry, outcome, log = NOOP_LOGGER) {
|
|
|
105465
105632
|
const context2 = [reading.block, reading.context].filter(Boolean).join("\n");
|
|
105466
105633
|
return context2.length > 0 ? { action: "annotate", text: context2 } : { action: "continue" };
|
|
105467
105634
|
}
|
|
105635
|
+
case "session_start": {
|
|
105636
|
+
return reading.context !== void 0 ? { action: "annotate", text: reading.context } : {
|
|
105637
|
+
action: "continue",
|
|
105638
|
+
...reading.halt ? { halt: reading.halt } : {},
|
|
105639
|
+
...reading.notice ? { notice: reading.notice } : {}
|
|
105640
|
+
};
|
|
105641
|
+
}
|
|
105468
105642
|
case "post_tool_use":
|
|
105469
105643
|
case "post_tool_use_failure": {
|
|
105470
105644
|
const context2 = [reading.block, reading.context].filter(Boolean).join("\n");
|
|
105645
|
+
if (reading.replacement !== void 0) {
|
|
105646
|
+
return {
|
|
105647
|
+
action: "replace",
|
|
105648
|
+
output: reading.replacement,
|
|
105649
|
+
disclose: true,
|
|
105650
|
+
...context2.length > 0 ? { context: context2 } : {},
|
|
105651
|
+
...reading.halt ? { halt: reading.halt } : {},
|
|
105652
|
+
...reading.notice ? { notice: reading.notice } : {}
|
|
105653
|
+
};
|
|
105654
|
+
}
|
|
105471
105655
|
return {
|
|
105472
105656
|
action: "continue",
|
|
105473
105657
|
...context2.length > 0 ? { context: context2 } : {},
|
|
@@ -105603,8 +105787,15 @@ function readJudgement(reply) {
|
|
|
105603
105787
|
}
|
|
105604
105788
|
}
|
|
105605
105789
|
__name(readJudgement, "readJudgement");
|
|
105606
|
-
function createShellHook(event,
|
|
105790
|
+
function createShellHook(event, configured, options) {
|
|
105607
105791
|
const log = options.log ?? NOOP_LOGGER;
|
|
105792
|
+
const eventDefault = options.defaultTimeoutMs?.[event];
|
|
105793
|
+
const entry = configured.timeoutMs === void 0 && eventDefault !== void 0 ? { ...configured, timeoutMs: eventDefault } : configured;
|
|
105794
|
+
const reportTimeout = /* @__PURE__ */ __name((timedOut) => {
|
|
105795
|
+
if (!timedOut)
|
|
105796
|
+
return;
|
|
105797
|
+
options.onTimeout?.({ event, hook: describeShellHook(entry), timeoutMs: hookTimeout(entry) });
|
|
105798
|
+
}, "reportTimeout");
|
|
105608
105799
|
let spent = false;
|
|
105609
105800
|
return {
|
|
105610
105801
|
event,
|
|
@@ -105612,10 +105803,11 @@ function createShellHook(event, entry, options) {
|
|
|
105612
105803
|
handler: /* @__PURE__ */ __name(async (context2) => {
|
|
105613
105804
|
if (spent)
|
|
105614
105805
|
return { action: "continue" };
|
|
105615
|
-
const
|
|
105616
|
-
|
|
105806
|
+
const namesATool = !(event === "notification" || event === "subagent_start" || event === "subagent_stop" || event === "session_start" || event === "session_end");
|
|
105807
|
+
const subject = event === "notification" ? context2.notification?.type : event === "subagent_start" || event === "subagent_stop" ? context2.agentType : event === "session_start" ? context2.source : event === "session_end" ? context2.endReason : context2.toolName;
|
|
105808
|
+
if (!shellHookMatches(entry.matcher, subject, { tool: namesATool }))
|
|
105617
105809
|
return { action: "continue" };
|
|
105618
|
-
if (!shellHookIfMatches(entry.if, context2.toolName, context2.toolInput)) {
|
|
105810
|
+
if (!shellHookIfMatches(entry.if, context2.toolName, context2.toolInput, options.pathFilter)) {
|
|
105619
105811
|
return { action: "continue" };
|
|
105620
105812
|
}
|
|
105621
105813
|
if (entry.once === true)
|
|
@@ -105625,7 +105817,10 @@ function createShellHook(event, entry, options) {
|
|
|
105625
105817
|
const hookInput = {
|
|
105626
105818
|
event,
|
|
105627
105819
|
cwd: options.cwd,
|
|
105820
|
+
...options.projectDir !== void 0 ? { projectDir: options.projectDir } : {},
|
|
105628
105821
|
sessionId: String(context2.sessionId),
|
|
105822
|
+
...context2.source !== void 0 ? { sessionSource: context2.source } : {},
|
|
105823
|
+
...context2.endReason !== void 0 ? { endReason: context2.endReason } : {},
|
|
105629
105824
|
...context2.turnId !== void 0 ? { turnId: String(context2.turnId) } : {},
|
|
105630
105825
|
...context2.parentSessionId !== void 0 ? { parentSessionId: String(context2.parentSessionId) } : {},
|
|
105631
105826
|
...context2.parentTurnId !== void 0 ? { parentTurnId: String(context2.parentTurnId) } : {},
|
|
@@ -105658,6 +105853,7 @@ function createShellHook(event, entry, options) {
|
|
|
105658
105853
|
timeoutMs: hookTimeout(entry),
|
|
105659
105854
|
...context2.signal !== void 0 ? { signal: context2.signal } : {}
|
|
105660
105855
|
});
|
|
105856
|
+
reportTimeout(response.timedOut);
|
|
105661
105857
|
const ok = response.status !== null && response.status >= 200 && response.status < 300;
|
|
105662
105858
|
return shellHookVerdict(event, entry, {
|
|
105663
105859
|
exitCode: ok ? 0 : response.status ?? null,
|
|
@@ -105677,6 +105873,7 @@ function createShellHook(event, entry, options) {
|
|
|
105677
105873
|
return { action: "continue" };
|
|
105678
105874
|
}
|
|
105679
105875
|
const outcome = await runShellHook(entry, hookInput, context2.signal);
|
|
105876
|
+
reportTimeout(outcome.timedOut);
|
|
105680
105877
|
return shellHookVerdict(event, entry, outcome, log);
|
|
105681
105878
|
}, "handler")
|
|
105682
105879
|
};
|
|
@@ -140113,6 +140310,12 @@ export {
|
|
|
140113
140310
|
InMemorySessionLog,
|
|
140114
140311
|
readStructuredOutput,
|
|
140115
140312
|
TurnRecorder,
|
|
140313
|
+
MAX_HOOK_CONTEXT_CHARS,
|
|
140314
|
+
boundHookContext,
|
|
140315
|
+
MAX_HOOK_REPLACEMENT_CHARS,
|
|
140316
|
+
boundHookReplacement,
|
|
140317
|
+
frameOperatorHookContext,
|
|
140318
|
+
sessionStartHookContext,
|
|
140116
140319
|
PromptContributionCollisionError,
|
|
140117
140320
|
PromptContributionRegistry,
|
|
140118
140321
|
SKILLS_CONTRIBUTION_ID,
|
|
@@ -140990,4 +141193,4 @@ export {
|
|
|
140990
141193
|
WakeBudget,
|
|
140991
141194
|
wakeBudgetFromEnv
|
|
140992
141195
|
};
|
|
140993
|
-
//# sourceMappingURL=chunk-
|
|
141196
|
+
//# sourceMappingURL=chunk-4SC6RBFK.js.map
|