@namzu/cli 52.1.0 → 53.0.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 +69 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-C2H6FGPR.js → acp-IOWTKF2X.js} +87 -60
- package/dist/chunks/{acp-C2H6FGPR.js.map → acp-IOWTKF2X.js.map} +1 -1
- package/dist/chunks/{activity-command-EXDEKDLZ.js → activity-command-U2AOTIVF.js} +12 -12
- package/dist/chunks/{add-VOR5M5BV.js → add-YYQLPCP2.js} +21 -21
- package/dist/chunks/{agent-EWZGPBGI.js → agent-WL6NX4W6.js} +40 -40
- package/dist/chunks/agent-session-L6J5GZVX.js +73 -0
- package/dist/chunks/{apply-at-exit-FVOHKVHQ.js → apply-at-exit-WWVK3RWD.js} +8 -8
- package/dist/chunks/{archive-Z34VDKBO.js → archive-UE756BME.js} +10 -10
- package/dist/chunks/bash-5556UNOY.js +404 -0
- package/dist/chunks/bash-5556UNOY.js.map +6 -0
- package/dist/chunks/{bin-main-C5UNGSAQ.js → bin-main-QWMIKRQP.js} +9 -9
- package/dist/chunks/{binding-P5DCYNQG.js → binding-HCIPLFUO.js} +3 -3
- package/dist/chunks/{browser-MEVCXUOS.js → browser-7SFVCKSO.js} +6 -6
- package/dist/chunks/c-SMQ2QLVV.js +304 -0
- package/dist/chunks/c-SMQ2QLVV.js.map +6 -0
- package/dist/chunks/{chat-YQCC2O5F.js → chat-SE2QOB2X.js} +15 -15
- package/dist/chunks/{chunk-CKL6DYHR.js → chunk-24N42TGE.js} +6 -6
- package/dist/chunks/{chunk-WK6RNDIK.js → chunk-2U357RJS.js} +10 -10
- package/dist/chunks/{chunk-ZQIWZDPM.js → chunk-2VSICYQP.js} +2 -2
- package/dist/chunks/{chunk-4SEHD4ZI.js → chunk-2WDF5N2A.js} +9 -9
- package/dist/chunks/{chunk-F7XHPIXJ.js → chunk-3NAVAACC.js} +2 -2
- package/dist/chunks/{chunk-VYUMMKAA.js → chunk-46VSU4QF.js} +2 -2
- package/dist/chunks/{chunk-OIYJMKAT.js → chunk-4FV2VZS6.js} +3 -3
- package/dist/chunks/{chunk-DE5AFFGK.js → chunk-4RTQTX5R.js} +2 -2
- package/dist/chunks/{chunk-TEBW5NV3.js → chunk-4SJZ5D6H.js} +4 -4
- package/dist/chunks/{chunk-SFAK4Z6T.js → chunk-54KHPVNE.js} +3391 -1260
- package/dist/chunks/chunk-54KHPVNE.js.map +6 -0
- package/dist/chunks/{chunk-TUFFLY74.js → chunk-5NDRDTNX.js} +3 -3
- package/dist/chunks/{chunk-FWAUXNV2.js → chunk-5QACH2Q2.js} +3 -3
- package/dist/chunks/{chunk-YFMR2PV7.js → chunk-6CFPN6I4.js} +2 -2
- package/dist/chunks/{chunk-QALDU3HZ.js → chunk-7AWFHVMT.js} +3 -3
- package/dist/chunks/{chunk-LANIV6OQ.js → chunk-7JT7DNR7.js} +3 -3
- package/dist/chunks/{chunk-DC76BQGF.js → chunk-A47ZNTW7.js} +3 -3
- package/dist/chunks/{chunk-OBA275BH.js → chunk-AGFGC7SI.js} +3 -3
- package/dist/chunks/{chunk-SZXJSTKM.js → chunk-AME342DQ.js} +4 -4
- package/dist/chunks/{chunk-7ZC4ZAW4.js → chunk-BHOZPFJM.js} +2 -2
- package/dist/chunks/{chunk-7UTSUGXV.js → chunk-C5XQHEYB.js} +2 -2
- package/dist/chunks/{chunk-FOP7MQEU.js → chunk-CCYAWSZL.js} +5 -5
- package/dist/chunks/{chunk-MVJXTG2V.js → chunk-CQKYKQEF.js} +4 -4
- package/dist/chunks/{chunk-IBTPIZKL.js → chunk-CT47C23E.js} +36 -17
- package/dist/chunks/chunk-CT47C23E.js.map +6 -0
- package/dist/chunks/{chunk-U5LAYHN6.js → chunk-DHS5CQNC.js} +6 -6
- package/dist/chunks/{chunk-FZVZJQHL.js → chunk-DI4L3GH5.js} +2 -2
- package/dist/chunks/{chunk-JBC4TK56.js → chunk-DIWEKTYK.js} +5 -5
- package/dist/chunks/{chunk-YIBJO76L.js → chunk-DMUQFCYZ.js} +2 -2
- package/dist/chunks/{chunk-KLUCQZAS.js → chunk-DOFQWVBL.js} +3 -3
- package/dist/chunks/{chunk-ET6Y6QTB.js → chunk-DSKNFDTL.js} +2 -2
- package/dist/chunks/{chunk-ZI7BWTPK.js → chunk-EA73SWCT.js} +4 -4
- package/dist/chunks/{chunk-G7KLFAVX.js → chunk-EKMHZKVP.js} +2 -2
- package/dist/chunks/{chunk-WG6CPS5G.js → chunk-EKQ6J5KA.js} +2 -2
- package/dist/chunks/{chunk-BWHOX7GQ.js → chunk-F3SQRGKZ.js} +2 -2
- package/dist/chunks/{chunk-F7MCS63F.js → chunk-FIYZCKQ7.js} +3 -3
- package/dist/chunks/{chunk-5GP2SAXN.js → chunk-FX7BSCB4.js} +4 -4
- package/dist/chunks/{chunk-USAVWSGJ.js → chunk-HGZYNEQE.js} +3 -3
- package/dist/chunks/{chunk-4I4BFAV4.js → chunk-HJILJSZO.js} +2 -2
- package/dist/chunks/{chunk-AVPOO4NC.js → chunk-HOB6FTE2.js} +3 -3
- package/dist/chunks/{chunk-T2Q6B7IG.js → chunk-HOKSVFIC.js} +6 -6
- package/dist/chunks/{chunk-W7JMWUGD.js → chunk-HSLOM2WI.js} +54 -22
- package/dist/chunks/chunk-HSLOM2WI.js.map +6 -0
- package/dist/chunks/{chunk-GFEHVD2U.js → chunk-HTHNDZ3L.js} +2 -2
- package/dist/chunks/{chunk-CA7QW5JY.js → chunk-HUONDMU4.js} +2 -2
- package/dist/chunks/{chunk-H6KPEFAR.js → chunk-J3PHMXN4.js} +4 -4
- package/dist/chunks/{chunk-ZNYLVJIS.js → chunk-JQZDXUYK.js} +6 -6
- package/dist/chunks/{chunk-YLEBTBWP.js → chunk-KAPCNFMC.js} +3 -3
- package/dist/chunks/{chunk-6O5Q6YBP.js → chunk-KNQ7R54U.js} +568 -90
- package/dist/chunks/{chunk-6O5Q6YBP.js.map → chunk-KNQ7R54U.js.map} +2 -2
- package/dist/chunks/{chunk-WNVU6MMP.js → chunk-KO2N6EIF.js} +7 -7
- package/dist/chunks/{chunk-7OHK3TZD.js → chunk-LMLJ7NS5.js} +5 -5
- package/dist/chunks/{chunk-46EO7Z5W.js → chunk-LOWGGJOB.js} +4 -4
- package/dist/chunks/{chunk-JWS3NQAH.js → chunk-LSRVPPLR.js} +5 -5
- package/dist/chunks/{chunk-MVMWAXEY.js → chunk-M2J3O3JT.js} +2 -2
- package/dist/chunks/{chunk-T6ZUFXGP.js → chunk-M3AUPUII.js} +3 -3
- package/dist/chunks/{chunk-TXLQW4AJ.js → chunk-MYVF3JRV.js} +6 -6
- package/dist/chunks/{chunk-QZODMCBW.js → chunk-N56NUKMT.js} +2 -2
- package/dist/chunks/{chunk-F7JDATG3.js → chunk-NICPMJJQ.js} +4 -4
- package/dist/chunks/{chunk-SWUGIHFO.js → chunk-NTV2XD2J.js} +2 -2
- package/dist/chunks/{chunk-QWDCN75Y.js → chunk-NZMKMXGG.js} +2 -2
- package/dist/chunks/{chunk-ZB5RBBVO.js → chunk-O326HKCW.js} +3 -3
- package/dist/chunks/{chunk-F2BM7LHM.js → chunk-OAHCS42A.js} +2 -2
- package/dist/chunks/{chunk-SONYUWOD.js → chunk-OBMHA7OP.js} +3 -3
- package/dist/chunks/{chunk-Y2DDE2WB.js → chunk-P5E6ITP5.js} +5 -5
- package/dist/chunks/{chunk-SGFN62CP.js → chunk-P7FHJL3V.js} +2 -2
- package/dist/chunks/{chunk-AXQRLXWR.js → chunk-POOJ2MUS.js} +3 -3
- package/dist/chunks/{chunk-VAXTDL7E.js → chunk-PSLNHLZI.js} +3 -3
- package/dist/chunks/{chunk-G6MRTDJQ.js → chunk-PV65WQHD.js} +12 -12
- package/dist/chunks/{chunk-467N452A.js → chunk-PYSZ7JTU.js} +2 -2
- package/dist/chunks/{chunk-CR4ERJTP.js → chunk-QPR3UA4L.js} +2 -2
- package/dist/chunks/{chunk-CKYZQOOB.js → chunk-RAPO3KLG.js} +4 -4
- package/dist/chunks/{chunk-FMBLLPNE.js → chunk-S2JWPUUH.js} +67 -1
- package/dist/chunks/{chunk-FMBLLPNE.js.map → chunk-S2JWPUUH.js.map} +1 -1
- package/dist/chunks/{chunk-MVVZHKSQ.js → chunk-SB3A7KUJ.js} +4 -4
- package/dist/chunks/{chunk-2ZYV3IZA.js → chunk-SFDB5RIL.js} +40 -40
- package/dist/chunks/{chunk-474J6ZI2.js → chunk-SHUA4YUK.js} +2 -2
- package/dist/chunks/{chunk-DVYMOESJ.js → chunk-SPSWX3QZ.js} +2 -2
- package/dist/chunks/{chunk-VMKK6SOW.js → chunk-TI6FFONP.js} +2 -2
- package/dist/chunks/{chunk-F6S3IBNL.js → chunk-TUXH7IXQ.js} +2 -2
- package/dist/chunks/{chunk-D6M3CBER.js → chunk-TYTE2GIF.js} +5 -5
- package/dist/chunks/{chunk-HIPITBXZ.js → chunk-UMHKTV2L.js} +3 -3
- package/dist/chunks/{chunk-2RYGHXYK.js → chunk-UWN4WNQZ.js} +2 -2
- package/dist/chunks/{chunk-N3LPO5PK.js → chunk-V7VNFYA4.js} +18 -18
- package/dist/chunks/{chunk-F7LMCISP.js → chunk-VYLCV6W3.js} +9 -9
- package/dist/chunks/{chunk-EJCQKJZ2.js → chunk-WD2F6EO3.js} +35 -3
- package/dist/chunks/chunk-WD2F6EO3.js.map +6 -0
- package/dist/chunks/{chunk-6KB5XGKP.js → chunk-WOSL3OZD.js} +4 -4
- package/dist/chunks/{chunk-J2JLP6NV.js → chunk-WSMX3IQE.js} +334 -36
- package/dist/chunks/chunk-WSMX3IQE.js.map +6 -0
- package/dist/chunks/{chunk-OWTWCES3.js → chunk-X6SREM2V.js} +4 -4
- package/dist/chunks/{chunk-IN5SOIH6.js → chunk-XHLFI6F6.js} +2 -2
- package/dist/chunks/{chunk-4SC6RBFK.js → chunk-YELRULQ7.js} +715 -113
- package/dist/chunks/chunk-YELRULQ7.js.map +6 -0
- package/dist/chunks/{chunk-7OKLSYRU.js → chunk-Z5FDI74K.js} +3 -3
- package/dist/chunks/{chunk-4TS3KCPO.js → chunk-Z5NMQ2YN.js} +2 -2
- package/dist/chunks/{chunk-M7LQ3C6L.js → chunk-Z6J7SVOB.js} +2 -2
- package/dist/chunks/{chunk-N4JROMUU.js → chunk-ZDZ35MMZ.js} +2 -2
- package/dist/chunks/{chunk-47R3EA5L.js → chunk-ZMKEYARZ.js} +3 -3
- package/dist/chunks/{chunk-EY32VJBC.js → chunk-ZZNHDQAD.js} +2 -2
- package/dist/chunks/{cli-runtime-SWBSTK5Y.js → cli-runtime-SVXU6U4V.js} +15 -15
- package/dist/chunks/{commands-VTKTL26Z.js → commands-A2E3OV7F.js} +5 -5
- package/dist/chunks/core-6GH4J4QJ.js +1647 -0
- package/dist/chunks/core-6GH4J4QJ.js.map +6 -0
- package/dist/chunks/{cost-IRSQA4W3.js → cost-NA7APCZD.js} +3 -3
- package/dist/chunks/cpp-VMCZSFFM.js +553 -0
- package/dist/chunks/cpp-VMCZSFFM.js.map +6 -0
- package/dist/chunks/{crash-report-4RK3TDIG.js → crash-report-C6QXQJAK.js} +6 -6
- package/dist/chunks/csharp-OVPHVEVY.js +410 -0
- package/dist/chunks/csharp-OVPHVEVY.js.map +6 -0
- package/dist/chunks/css-RIXPOU7U.js +947 -0
- package/dist/chunks/css-RIXPOU7U.js.map +6 -0
- package/dist/chunks/diff-IP3Y64PF.js +63 -0
- package/dist/chunks/diff-IP3Y64PF.js.map +6 -0
- package/dist/chunks/{dist-ZWWZFMZ7.js → dist-3PE5MOU6.js} +2 -2
- package/dist/chunks/{dist-DZ7AVBME.js → dist-5SZ7VOLE.js} +2 -2
- package/dist/chunks/{dist-SRSREGI2.js → dist-6CHQ5OPZ.js} +2 -2
- package/dist/chunks/{dist-XGVPG3SE.js → dist-G4BSVJKY.js} +2 -2
- package/dist/chunks/{dist-3OXE5SY4.js → dist-GVGW7AZ2.js} +2 -2
- package/dist/chunks/{dist-MFNIF6PB.js → dist-HASAHQL3.js} +2 -2
- package/dist/chunks/{dist-FFDAK4ES.js → dist-HYKH6P7F.js} +2 -2
- package/dist/chunks/{dist-IX7VHPCS.js → dist-LBTLFSNF.js} +24 -2
- package/dist/chunks/dockerfile-DVPABFVZ.js +44 -0
- package/dist/chunks/dockerfile-DVPABFVZ.js.map +6 -0
- package/dist/chunks/{doctor-BO6742WI.js → doctor-7MQUQYQV.js} +37 -37
- package/dist/chunks/{drain-R55GDZ6K.js → drain-RG275P5J.js} +9 -9
- package/dist/chunks/{entry-OIRUHLN6.js → entry-Z2ZZSYJA.js} +7 -7
- package/dist/chunks/{eval-LC2YEQE4.js → eval-GG2BH7CQ.js} +9 -9
- package/dist/chunks/{exec-MVNCTFY2.js → exec-57YQHQDC.js} +57 -57
- package/dist/chunks/go-RKN2IZ6A.js +164 -0
- package/dist/chunks/go-RKN2IZ6A.js.map +6 -0
- package/dist/chunks/graphql-2VQIML4V.js +80 -0
- package/dist/chunks/graphql-2VQIML4V.js.map +6 -0
- package/dist/chunks/{home-LOZLKE2R.js → home-KMZDOTX5.js} +3 -3
- package/dist/chunks/{host-OJRB5UR4.js → host-XSB7Z6CT.js} +13 -13
- package/dist/chunks/{host-queries-BTUGRPDQ.js → host-queries-2GQM7BTI.js} +15 -15
- package/dist/chunks/ini-W63MIP5J.js +126 -0
- package/dist/chunks/ini-W63MIP5J.js.map +6 -0
- package/dist/chunks/java-R4N7OXMG.js +265 -0
- package/dist/chunks/java-R4N7OXMG.js.map +6 -0
- package/dist/chunks/javascript-26OKUOUQ.js +712 -0
- package/dist/chunks/javascript-26OKUOUQ.js.map +6 -0
- package/dist/chunks/json-4GADDWNK.js +50 -0
- package/dist/chunks/json-4GADDWNK.js.map +6 -0
- package/dist/chunks/kotlin-MB7RKXOG.js +265 -0
- package/dist/chunks/kotlin-MB7RKXOG.js.map +6 -0
- package/dist/chunks/{learn-L7W4AY6F.js → learn-LUEHNOMA.js} +11 -11
- package/dist/chunks/{learn-builtin-F6D7VG2T.js → learn-builtin-R2Z27LDI.js} +14 -14
- package/dist/chunks/less-GNSNU2PC.js +1028 -0
- package/dist/chunks/less-GNSNU2PC.js.map +6 -0
- package/dist/chunks/{lifecycle-VH5JVETC.js → lifecycle-DCLLAROM.js} +30 -30
- package/dist/chunks/{list-O6NVVBVF.js → list-5UW5SFIX.js} +14 -14
- package/dist/chunks/{live-VMIC5YSV.js → live-YRL6H74Z.js} +36 -36
- package/dist/chunks/{login-KTFS33SV.js → login-ELIGI6HT.js} +12 -12
- package/dist/chunks/{logs-2RSTZ4Y5.js → logs-PXASK6XI.js} +4 -4
- package/dist/chunks/lua-RNOSKZ3S.js +71 -0
- package/dist/chunks/lua-RNOSKZ3S.js.map +6 -0
- package/dist/chunks/makefile-ZK3QWG3U.js +81 -0
- package/dist/chunks/makefile-ZK3QWG3U.js.map +6 -0
- package/dist/chunks/markdown-JVOBZC3L.js +242 -0
- package/dist/chunks/markdown-JVOBZC3L.js.map +6 -0
- package/dist/chunks/{mcp-SUQ5VHS3.js → mcp-YVV35X7H.js} +22 -22
- package/dist/chunks/{message-command-D72XMTER.js → message-command-QVGOKB4W.js} +46 -46
- package/dist/chunks/objectivec-SSOLSTDI.js +253 -0
- package/dist/chunks/objectivec-SSOLSTDI.js.map +6 -0
- package/dist/chunks/{open-PJI6LGEB.js → open-MDT2NTF4.js} +8 -8
- package/dist/chunks/{operator-tools-7WLNIRD3.js → operator-tools-LYY2FXSO.js} +13 -13
- package/dist/chunks/{output-schema-PDWST74V.js → output-schema-VR43KZNJ.js} +3 -3
- package/dist/chunks/{pal-IMTWZXWM.js → pal-ZTG4AHCK.js} +15 -15
- package/dist/chunks/{palette-V2OJ6BIE.js → palette-GXE6GZA5.js} +4 -4
- package/dist/chunks/{peers-XXL4YN6O.js → peers-6M4UPHDF.js} +6 -6
- package/dist/chunks/{peers-MCOSOVCD.js → peers-CJOTRI4W.js} +9 -9
- package/dist/chunks/perl-G647IKFY.js +495 -0
- package/dist/chunks/perl-G647IKFY.js.map +6 -0
- package/dist/chunks/php-KMB36QTV.js +611 -0
- package/dist/chunks/php-KMB36QTV.js.map +6 -0
- package/dist/chunks/php-template-56RLSWZJ.js +56 -0
- package/dist/chunks/php-template-56RLSWZJ.js.map +6 -0
- package/dist/chunks/{plugin-JKJNFSF3.js → plugin-IVIHCAEO.js} +9 -9
- package/dist/chunks/powershell-CPSUXW3K.js +266 -0
- package/dist/chunks/powershell-CPSUXW3K.js.map +6 -0
- package/dist/chunks/{providers-2NZ5YDHJ.js → providers-7WDY37V3.js} +10 -10
- package/dist/chunks/{pty-QYTCSD7G.js → pty-CLDDZT5T.js} +3 -3
- package/dist/chunks/python-OSTRJJHH.js +425 -0
- package/dist/chunks/python-OSTRJJHH.js.map +6 -0
- package/dist/chunks/python-repl-LLFK2MIA.js +35 -0
- package/dist/chunks/python-repl-LLFK2MIA.js.map +6 -0
- package/dist/chunks/r-CJCHZ5CO.js +220 -0
- package/dist/chunks/r-CJCHZ5CO.js.map +6 -0
- package/dist/chunks/resume-ZRVTAGB6.js +23 -0
- package/dist/chunks/{resume-command-KXICGDCC.js → resume-command-TXPTYQFF.js} +4 -4
- package/dist/chunks/ruby-CFOXHYOD.js +423 -0
- package/dist/chunks/ruby-CFOXHYOD.js.map +6 -0
- package/dist/chunks/{running-5FNI2UAN.js → running-KBISZDIQ.js} +5 -5
- package/dist/chunks/rust-2CAQW5OE.js +323 -0
- package/dist/chunks/rust-2CAQW5OE.js.map +6 -0
- package/dist/chunks/{schedule-CKRLCLZE.js → schedule-ECZVNZLH.js} +8 -8
- package/dist/chunks/scss-BWFJU4ST.js +932 -0
- package/dist/chunks/scss-BWFJU4ST.js.map +6 -0
- package/dist/chunks/{send-5B4ROQRC.js → send-VUJ33MJM.js} +15 -15
- package/dist/chunks/{send-person-5CPYLU6J.js → send-person-WXM7Y5PZ.js} +13 -13
- package/dist/chunks/{service-X3J6SDE6.js → service-DORQ3PNE.js} +30 -30
- package/dist/chunks/shell-DRNHCIHJ.js +34 -0
- package/dist/chunks/shell-DRNHCIHJ.js.map +6 -0
- package/dist/chunks/{skills-MJVSGTLM.js → skills-W7KY3WX4.js} +8 -8
- package/dist/chunks/sql-QPNQXTYW.js +655 -0
- package/dist/chunks/sql-QPNQXTYW.js.map +6 -0
- package/dist/chunks/{start-check-U4TZS2VO.js → start-check-AOQC6GI3.js} +2 -2
- package/dist/chunks/{startup-failure-UCPXEDWH.js → startup-failure-MS7TPUMI.js} +2 -2
- package/dist/chunks/{state-FHGFEIF6.js → state-YK5JWP5I.js} +2 -2
- package/dist/chunks/{store-TXC7F7KD.js → store-7SFKBFX6.js} +10 -10
- package/dist/chunks/{store-PL3BXOPA.js → store-H4IVAEZK.js} +3 -3
- package/dist/chunks/{store-TVP3LZNP.js → store-TM7VDQ5G.js} +4 -4
- package/dist/chunks/{store-XJXBG4MP.js → store-XIPDR26B.js} +6 -6
- package/dist/chunks/swift-VA7FJ27U.js +890 -0
- package/dist/chunks/swift-VA7FJ27U.js.map +6 -0
- package/dist/chunks/{tui-C2YPD5ZD.js → tui-6OL6WX6S.js} +96 -720
- package/dist/chunks/tui-6OL6WX6S.js.map +6 -0
- package/dist/chunks/typescript-AD6TOU6X.js +826 -0
- package/dist/chunks/typescript-AD6TOU6X.js.map +6 -0
- package/dist/chunks/{upgrade-7AKSY32I.js → upgrade-IQA7V2NK.js} +9 -9
- package/dist/chunks/vbnet-RRNEF3GL.js +143 -0
- package/dist/chunks/vbnet-RRNEF3GL.js.map +6 -0
- package/dist/chunks/wasm-4AFLPXP5.js +131 -0
- package/dist/chunks/wasm-4AFLPXP5.js.map +6 -0
- package/dist/chunks/{watch-X7HL77BT.js → watch-TPJ6F4OJ.js} +119 -83
- package/dist/chunks/watch-TPJ6F4OJ.js.map +6 -0
- package/dist/chunks/{workspaces-4BNGHUKR.js → workspaces-B7URZQRL.js} +19 -19
- package/dist/chunks/{worktree-2JUYAPLO.js → worktree-Z456JZKA.js} +12 -12
- package/dist/chunks/xml-FZC4FVGO.js +236 -0
- package/dist/chunks/xml-FZC4FVGO.js.map +6 -0
- package/dist/chunks/yaml-KHJI72O5.js +211 -0
- package/dist/chunks/yaml-KHJI72O5.js.map +6 -0
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/config/hook-common-shape.d.ts +50 -0
- package/dist/config/hook-common-shape.d.ts.map +1 -0
- package/dist/config/load.d.ts +19 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +27 -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 +2 -2
- package/dist/doctor/checks/hooks.d.ts.map +1 -1
- package/dist/index.js +38 -38
- package/dist/integrations/sessions/watch-view.d.ts +10 -1
- package/dist/integrations/sessions/watch-view.d.ts.map +1 -1
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
- package/dist/tui/App.d.ts +4 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundAgentRows.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts +13 -3
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +10 -0
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TranscriptScrollView.d.ts.map +1 -1
- package/dist/tui/agent-calls.d.ts +49 -0
- package/dist/tui/agent-calls.d.ts.map +1 -0
- package/dist/tui/agent-transcript-rows.d.ts +17 -0
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +20 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/background-agents.d.ts +22 -2
- package/dist/tui/background-agents.d.ts.map +1 -1
- package/dist/tui/code-highlight.d.ts +222 -0
- package/dist/tui/code-highlight.d.ts.map +1 -0
- package/dist/tui/copy-targets.d.ts.map +1 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts +13 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
- package/dist/tui/fullscreen/glide.d.ts +87 -0
- package/dist/tui/fullscreen/glide.d.ts.map +1 -0
- package/dist/tui/fullscreen/layout.d.ts +10 -1
- package/dist/tui/fullscreen/layout.d.ts.map +1 -1
- package/dist/tui/fullscreen/markdown-rows.d.ts.map +1 -1
- package/dist/tui/fullscreen/rows.d.ts +6 -0
- package/dist/tui/fullscreen/rows.d.ts.map +1 -1
- package/dist/tui/fullscreen/selection.d.ts.map +1 -1
- package/dist/tui/fullscreen/viewport.d.ts +4 -1
- package/dist/tui/fullscreen/viewport.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/markdown-fence.d.ts +47 -0
- package/dist/tui/markdown-fence.d.ts.map +1 -0
- package/dist/tui/markdown-structure.d.ts +22 -0
- package/dist/tui/markdown-structure.d.ts.map +1 -1
- package/dist/tui/markdownParser.d.ts +8 -1
- package/dist/tui/markdownParser.d.ts.map +1 -1
- package/dist/tui/new-output.d.ts +60 -0
- package/dist/tui/new-output.d.ts.map +1 -0
- package/dist/tui/paint/live-paint.d.ts +39 -0
- package/dist/tui/paint/live-paint.d.ts.map +1 -1
- package/dist/tui/read-search-group.d.ts +24 -0
- package/dist/tui/read-search-group.d.ts.map +1 -1
- package/dist/tui/restored-rows.d.ts +26 -2
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +15 -0
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/stream-flow.d.ts +24 -0
- package/dist/tui/stream-flow.d.ts.map +1 -1
- package/dist/tui/theme-launch.d.ts +2 -2
- package/dist/tui/theme-launch.d.ts.map +1 -1
- package/dist/tui/theme-palettes.d.ts +20 -0
- package/dist/tui/theme-palettes.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +5 -0
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/transcript-scroll.d.ts +7 -2
- package/dist/tui/transcript-scroll.d.ts.map +1 -1
- package/dist/tui/types.d.ts +9 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/chunks/agent-session-EKTTB7TN.js +0 -73
- package/dist/chunks/chunk-4SC6RBFK.js.map +0 -6
- package/dist/chunks/chunk-EJCQKJZ2.js.map +0 -6
- package/dist/chunks/chunk-IBTPIZKL.js.map +0 -6
- package/dist/chunks/chunk-J2JLP6NV.js.map +0 -6
- package/dist/chunks/chunk-SFAK4Z6T.js.map +0 -6
- package/dist/chunks/chunk-W7JMWUGD.js.map +0 -6
- package/dist/chunks/resume-5MSYHNA7.js +0 -23
- package/dist/chunks/tui-C2YPD5ZD.js.map +0 -6
- package/dist/chunks/watch-X7HL77BT.js.map +0 -6
- /package/dist/chunks/{activity-command-EXDEKDLZ.js.map → activity-command-U2AOTIVF.js.map} +0 -0
- /package/dist/chunks/{add-VOR5M5BV.js.map → add-YYQLPCP2.js.map} +0 -0
- /package/dist/chunks/{agent-EWZGPBGI.js.map → agent-WL6NX4W6.js.map} +0 -0
- /package/dist/chunks/{agent-session-EKTTB7TN.js.map → agent-session-L6J5GZVX.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-FVOHKVHQ.js.map → apply-at-exit-WWVK3RWD.js.map} +0 -0
- /package/dist/chunks/{archive-Z34VDKBO.js.map → archive-UE756BME.js.map} +0 -0
- /package/dist/chunks/{bin-main-C5UNGSAQ.js.map → bin-main-QWMIKRQP.js.map} +0 -0
- /package/dist/chunks/{binding-P5DCYNQG.js.map → binding-HCIPLFUO.js.map} +0 -0
- /package/dist/chunks/{browser-MEVCXUOS.js.map → browser-7SFVCKSO.js.map} +0 -0
- /package/dist/chunks/{chat-YQCC2O5F.js.map → chat-SE2QOB2X.js.map} +0 -0
- /package/dist/chunks/{chunk-CKL6DYHR.js.map → chunk-24N42TGE.js.map} +0 -0
- /package/dist/chunks/{chunk-WK6RNDIK.js.map → chunk-2U357RJS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZQIWZDPM.js.map → chunk-2VSICYQP.js.map} +0 -0
- /package/dist/chunks/{chunk-4SEHD4ZI.js.map → chunk-2WDF5N2A.js.map} +0 -0
- /package/dist/chunks/{chunk-F7XHPIXJ.js.map → chunk-3NAVAACC.js.map} +0 -0
- /package/dist/chunks/{chunk-VYUMMKAA.js.map → chunk-46VSU4QF.js.map} +0 -0
- /package/dist/chunks/{chunk-OIYJMKAT.js.map → chunk-4FV2VZS6.js.map} +0 -0
- /package/dist/chunks/{chunk-DE5AFFGK.js.map → chunk-4RTQTX5R.js.map} +0 -0
- /package/dist/chunks/{chunk-TEBW5NV3.js.map → chunk-4SJZ5D6H.js.map} +0 -0
- /package/dist/chunks/{chunk-TUFFLY74.js.map → chunk-5NDRDTNX.js.map} +0 -0
- /package/dist/chunks/{chunk-FWAUXNV2.js.map → chunk-5QACH2Q2.js.map} +0 -0
- /package/dist/chunks/{chunk-YFMR2PV7.js.map → chunk-6CFPN6I4.js.map} +0 -0
- /package/dist/chunks/{chunk-QALDU3HZ.js.map → chunk-7AWFHVMT.js.map} +0 -0
- /package/dist/chunks/{chunk-LANIV6OQ.js.map → chunk-7JT7DNR7.js.map} +0 -0
- /package/dist/chunks/{chunk-DC76BQGF.js.map → chunk-A47ZNTW7.js.map} +0 -0
- /package/dist/chunks/{chunk-OBA275BH.js.map → chunk-AGFGC7SI.js.map} +0 -0
- /package/dist/chunks/{chunk-SZXJSTKM.js.map → chunk-AME342DQ.js.map} +0 -0
- /package/dist/chunks/{chunk-7ZC4ZAW4.js.map → chunk-BHOZPFJM.js.map} +0 -0
- /package/dist/chunks/{chunk-7UTSUGXV.js.map → chunk-C5XQHEYB.js.map} +0 -0
- /package/dist/chunks/{chunk-FOP7MQEU.js.map → chunk-CCYAWSZL.js.map} +0 -0
- /package/dist/chunks/{chunk-MVJXTG2V.js.map → chunk-CQKYKQEF.js.map} +0 -0
- /package/dist/chunks/{chunk-U5LAYHN6.js.map → chunk-DHS5CQNC.js.map} +0 -0
- /package/dist/chunks/{chunk-FZVZJQHL.js.map → chunk-DI4L3GH5.js.map} +0 -0
- /package/dist/chunks/{chunk-JBC4TK56.js.map → chunk-DIWEKTYK.js.map} +0 -0
- /package/dist/chunks/{chunk-YIBJO76L.js.map → chunk-DMUQFCYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-KLUCQZAS.js.map → chunk-DOFQWVBL.js.map} +0 -0
- /package/dist/chunks/{chunk-ET6Y6QTB.js.map → chunk-DSKNFDTL.js.map} +0 -0
- /package/dist/chunks/{chunk-ZI7BWTPK.js.map → chunk-EA73SWCT.js.map} +0 -0
- /package/dist/chunks/{chunk-G7KLFAVX.js.map → chunk-EKMHZKVP.js.map} +0 -0
- /package/dist/chunks/{chunk-WG6CPS5G.js.map → chunk-EKQ6J5KA.js.map} +0 -0
- /package/dist/chunks/{chunk-BWHOX7GQ.js.map → chunk-F3SQRGKZ.js.map} +0 -0
- /package/dist/chunks/{chunk-F7MCS63F.js.map → chunk-FIYZCKQ7.js.map} +0 -0
- /package/dist/chunks/{chunk-5GP2SAXN.js.map → chunk-FX7BSCB4.js.map} +0 -0
- /package/dist/chunks/{chunk-USAVWSGJ.js.map → chunk-HGZYNEQE.js.map} +0 -0
- /package/dist/chunks/{chunk-4I4BFAV4.js.map → chunk-HJILJSZO.js.map} +0 -0
- /package/dist/chunks/{chunk-AVPOO4NC.js.map → chunk-HOB6FTE2.js.map} +0 -0
- /package/dist/chunks/{chunk-T2Q6B7IG.js.map → chunk-HOKSVFIC.js.map} +0 -0
- /package/dist/chunks/{chunk-GFEHVD2U.js.map → chunk-HTHNDZ3L.js.map} +0 -0
- /package/dist/chunks/{chunk-CA7QW5JY.js.map → chunk-HUONDMU4.js.map} +0 -0
- /package/dist/chunks/{chunk-H6KPEFAR.js.map → chunk-J3PHMXN4.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNYLVJIS.js.map → chunk-JQZDXUYK.js.map} +0 -0
- /package/dist/chunks/{chunk-YLEBTBWP.js.map → chunk-KAPCNFMC.js.map} +0 -0
- /package/dist/chunks/{chunk-WNVU6MMP.js.map → chunk-KO2N6EIF.js.map} +0 -0
- /package/dist/chunks/{chunk-7OHK3TZD.js.map → chunk-LMLJ7NS5.js.map} +0 -0
- /package/dist/chunks/{chunk-46EO7Z5W.js.map → chunk-LOWGGJOB.js.map} +0 -0
- /package/dist/chunks/{chunk-JWS3NQAH.js.map → chunk-LSRVPPLR.js.map} +0 -0
- /package/dist/chunks/{chunk-MVMWAXEY.js.map → chunk-M2J3O3JT.js.map} +0 -0
- /package/dist/chunks/{chunk-T6ZUFXGP.js.map → chunk-M3AUPUII.js.map} +0 -0
- /package/dist/chunks/{chunk-TXLQW4AJ.js.map → chunk-MYVF3JRV.js.map} +0 -0
- /package/dist/chunks/{chunk-QZODMCBW.js.map → chunk-N56NUKMT.js.map} +0 -0
- /package/dist/chunks/{chunk-F7JDATG3.js.map → chunk-NICPMJJQ.js.map} +0 -0
- /package/dist/chunks/{chunk-SWUGIHFO.js.map → chunk-NTV2XD2J.js.map} +0 -0
- /package/dist/chunks/{chunk-QWDCN75Y.js.map → chunk-NZMKMXGG.js.map} +0 -0
- /package/dist/chunks/{chunk-ZB5RBBVO.js.map → chunk-O326HKCW.js.map} +0 -0
- /package/dist/chunks/{chunk-F2BM7LHM.js.map → chunk-OAHCS42A.js.map} +0 -0
- /package/dist/chunks/{chunk-SONYUWOD.js.map → chunk-OBMHA7OP.js.map} +0 -0
- /package/dist/chunks/{chunk-Y2DDE2WB.js.map → chunk-P5E6ITP5.js.map} +0 -0
- /package/dist/chunks/{chunk-SGFN62CP.js.map → chunk-P7FHJL3V.js.map} +0 -0
- /package/dist/chunks/{chunk-AXQRLXWR.js.map → chunk-POOJ2MUS.js.map} +0 -0
- /package/dist/chunks/{chunk-VAXTDL7E.js.map → chunk-PSLNHLZI.js.map} +0 -0
- /package/dist/chunks/{chunk-G6MRTDJQ.js.map → chunk-PV65WQHD.js.map} +0 -0
- /package/dist/chunks/{chunk-467N452A.js.map → chunk-PYSZ7JTU.js.map} +0 -0
- /package/dist/chunks/{chunk-CR4ERJTP.js.map → chunk-QPR3UA4L.js.map} +0 -0
- /package/dist/chunks/{chunk-CKYZQOOB.js.map → chunk-RAPO3KLG.js.map} +0 -0
- /package/dist/chunks/{chunk-MVVZHKSQ.js.map → chunk-SB3A7KUJ.js.map} +0 -0
- /package/dist/chunks/{chunk-2ZYV3IZA.js.map → chunk-SFDB5RIL.js.map} +0 -0
- /package/dist/chunks/{chunk-474J6ZI2.js.map → chunk-SHUA4YUK.js.map} +0 -0
- /package/dist/chunks/{chunk-DVYMOESJ.js.map → chunk-SPSWX3QZ.js.map} +0 -0
- /package/dist/chunks/{chunk-VMKK6SOW.js.map → chunk-TI6FFONP.js.map} +0 -0
- /package/dist/chunks/{chunk-F6S3IBNL.js.map → chunk-TUXH7IXQ.js.map} +0 -0
- /package/dist/chunks/{chunk-D6M3CBER.js.map → chunk-TYTE2GIF.js.map} +0 -0
- /package/dist/chunks/{chunk-HIPITBXZ.js.map → chunk-UMHKTV2L.js.map} +0 -0
- /package/dist/chunks/{chunk-2RYGHXYK.js.map → chunk-UWN4WNQZ.js.map} +0 -0
- /package/dist/chunks/{chunk-N3LPO5PK.js.map → chunk-V7VNFYA4.js.map} +0 -0
- /package/dist/chunks/{chunk-F7LMCISP.js.map → chunk-VYLCV6W3.js.map} +0 -0
- /package/dist/chunks/{chunk-6KB5XGKP.js.map → chunk-WOSL3OZD.js.map} +0 -0
- /package/dist/chunks/{chunk-OWTWCES3.js.map → chunk-X6SREM2V.js.map} +0 -0
- /package/dist/chunks/{chunk-IN5SOIH6.js.map → chunk-XHLFI6F6.js.map} +0 -0
- /package/dist/chunks/{chunk-7OKLSYRU.js.map → chunk-Z5FDI74K.js.map} +0 -0
- /package/dist/chunks/{chunk-4TS3KCPO.js.map → chunk-Z5NMQ2YN.js.map} +0 -0
- /package/dist/chunks/{chunk-M7LQ3C6L.js.map → chunk-Z6J7SVOB.js.map} +0 -0
- /package/dist/chunks/{chunk-N4JROMUU.js.map → chunk-ZDZ35MMZ.js.map} +0 -0
- /package/dist/chunks/{chunk-47R3EA5L.js.map → chunk-ZMKEYARZ.js.map} +0 -0
- /package/dist/chunks/{chunk-EY32VJBC.js.map → chunk-ZZNHDQAD.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-SWBSTK5Y.js.map → cli-runtime-SVXU6U4V.js.map} +0 -0
- /package/dist/chunks/{commands-VTKTL26Z.js.map → commands-A2E3OV7F.js.map} +0 -0
- /package/dist/chunks/{cost-IRSQA4W3.js.map → cost-NA7APCZD.js.map} +0 -0
- /package/dist/chunks/{crash-report-4RK3TDIG.js.map → crash-report-C6QXQJAK.js.map} +0 -0
- /package/dist/chunks/{dist-ZWWZFMZ7.js.map → dist-3PE5MOU6.js.map} +0 -0
- /package/dist/chunks/{dist-DZ7AVBME.js.map → dist-5SZ7VOLE.js.map} +0 -0
- /package/dist/chunks/{dist-SRSREGI2.js.map → dist-6CHQ5OPZ.js.map} +0 -0
- /package/dist/chunks/{dist-XGVPG3SE.js.map → dist-G4BSVJKY.js.map} +0 -0
- /package/dist/chunks/{dist-3OXE5SY4.js.map → dist-GVGW7AZ2.js.map} +0 -0
- /package/dist/chunks/{dist-MFNIF6PB.js.map → dist-HASAHQL3.js.map} +0 -0
- /package/dist/chunks/{dist-FFDAK4ES.js.map → dist-HYKH6P7F.js.map} +0 -0
- /package/dist/chunks/{dist-IX7VHPCS.js.map → dist-LBTLFSNF.js.map} +0 -0
- /package/dist/chunks/{doctor-BO6742WI.js.map → doctor-7MQUQYQV.js.map} +0 -0
- /package/dist/chunks/{drain-R55GDZ6K.js.map → drain-RG275P5J.js.map} +0 -0
- /package/dist/chunks/{entry-OIRUHLN6.js.map → entry-Z2ZZSYJA.js.map} +0 -0
- /package/dist/chunks/{eval-LC2YEQE4.js.map → eval-GG2BH7CQ.js.map} +0 -0
- /package/dist/chunks/{exec-MVNCTFY2.js.map → exec-57YQHQDC.js.map} +0 -0
- /package/dist/chunks/{home-LOZLKE2R.js.map → home-KMZDOTX5.js.map} +0 -0
- /package/dist/chunks/{host-OJRB5UR4.js.map → host-XSB7Z6CT.js.map} +0 -0
- /package/dist/chunks/{host-queries-BTUGRPDQ.js.map → host-queries-2GQM7BTI.js.map} +0 -0
- /package/dist/chunks/{learn-L7W4AY6F.js.map → learn-LUEHNOMA.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-F6D7VG2T.js.map → learn-builtin-R2Z27LDI.js.map} +0 -0
- /package/dist/chunks/{lifecycle-VH5JVETC.js.map → lifecycle-DCLLAROM.js.map} +0 -0
- /package/dist/chunks/{list-O6NVVBVF.js.map → list-5UW5SFIX.js.map} +0 -0
- /package/dist/chunks/{live-VMIC5YSV.js.map → live-YRL6H74Z.js.map} +0 -0
- /package/dist/chunks/{login-KTFS33SV.js.map → login-ELIGI6HT.js.map} +0 -0
- /package/dist/chunks/{logs-2RSTZ4Y5.js.map → logs-PXASK6XI.js.map} +0 -0
- /package/dist/chunks/{mcp-SUQ5VHS3.js.map → mcp-YVV35X7H.js.map} +0 -0
- /package/dist/chunks/{message-command-D72XMTER.js.map → message-command-QVGOKB4W.js.map} +0 -0
- /package/dist/chunks/{open-PJI6LGEB.js.map → open-MDT2NTF4.js.map} +0 -0
- /package/dist/chunks/{operator-tools-7WLNIRD3.js.map → operator-tools-LYY2FXSO.js.map} +0 -0
- /package/dist/chunks/{output-schema-PDWST74V.js.map → output-schema-VR43KZNJ.js.map} +0 -0
- /package/dist/chunks/{pal-IMTWZXWM.js.map → pal-ZTG4AHCK.js.map} +0 -0
- /package/dist/chunks/{palette-V2OJ6BIE.js.map → palette-GXE6GZA5.js.map} +0 -0
- /package/dist/chunks/{peers-XXL4YN6O.js.map → peers-6M4UPHDF.js.map} +0 -0
- /package/dist/chunks/{peers-MCOSOVCD.js.map → peers-CJOTRI4W.js.map} +0 -0
- /package/dist/chunks/{plugin-JKJNFSF3.js.map → plugin-IVIHCAEO.js.map} +0 -0
- /package/dist/chunks/{providers-2NZ5YDHJ.js.map → providers-7WDY37V3.js.map} +0 -0
- /package/dist/chunks/{pty-QYTCSD7G.js.map → pty-CLDDZT5T.js.map} +0 -0
- /package/dist/chunks/{resume-5MSYHNA7.js.map → resume-ZRVTAGB6.js.map} +0 -0
- /package/dist/chunks/{resume-command-KXICGDCC.js.map → resume-command-TXPTYQFF.js.map} +0 -0
- /package/dist/chunks/{running-5FNI2UAN.js.map → running-KBISZDIQ.js.map} +0 -0
- /package/dist/chunks/{schedule-CKRLCLZE.js.map → schedule-ECZVNZLH.js.map} +0 -0
- /package/dist/chunks/{send-5B4ROQRC.js.map → send-VUJ33MJM.js.map} +0 -0
- /package/dist/chunks/{send-person-5CPYLU6J.js.map → send-person-WXM7Y5PZ.js.map} +0 -0
- /package/dist/chunks/{service-X3J6SDE6.js.map → service-DORQ3PNE.js.map} +0 -0
- /package/dist/chunks/{skills-MJVSGTLM.js.map → skills-W7KY3WX4.js.map} +0 -0
- /package/dist/chunks/{start-check-U4TZS2VO.js.map → start-check-AOQC6GI3.js.map} +0 -0
- /package/dist/chunks/{startup-failure-UCPXEDWH.js.map → startup-failure-MS7TPUMI.js.map} +0 -0
- /package/dist/chunks/{state-FHGFEIF6.js.map → state-YK5JWP5I.js.map} +0 -0
- /package/dist/chunks/{store-PL3BXOPA.js.map → store-7SFKBFX6.js.map} +0 -0
- /package/dist/chunks/{store-TVP3LZNP.js.map → store-H4IVAEZK.js.map} +0 -0
- /package/dist/chunks/{store-TXC7F7KD.js.map → store-TM7VDQ5G.js.map} +0 -0
- /package/dist/chunks/{store-XJXBG4MP.js.map → store-XIPDR26B.js.map} +0 -0
- /package/dist/chunks/{upgrade-7AKSY32I.js.map → upgrade-IQA7V2NK.js.map} +0 -0
- /package/dist/chunks/{workspaces-4BNGHUKR.js.map → workspaces-B7URZQRL.js.map} +0 -0
- /package/dist/chunks/{worktree-2JUYAPLO.js.map → worktree-Z456JZKA.js.map} +0 -0
|
@@ -2,16 +2,23 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openManagedWorktrees
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AME342DQ.js";
|
|
6
|
+
import {
|
|
7
|
+
connectMcpServers,
|
|
8
|
+
startMcpServers
|
|
9
|
+
} from "./chunk-EA73SWCT.js";
|
|
10
|
+
import {
|
|
11
|
+
openInBrowser
|
|
12
|
+
} from "./chunk-C5XQHEYB.js";
|
|
6
13
|
import {
|
|
7
14
|
PluginSettingsStore,
|
|
8
15
|
listMarkdownNames,
|
|
9
16
|
readPluginFileSources,
|
|
10
17
|
resolvePluginFileDirs
|
|
11
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LOWGGJOB.js";
|
|
12
19
|
import {
|
|
13
20
|
createSessionSkillCatalog
|
|
14
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HOB6FTE2.js";
|
|
15
22
|
import {
|
|
16
23
|
KEY_MISMATCH_MESSAGE,
|
|
17
24
|
MAX_SCRIPT_BYTES,
|
|
@@ -35,23 +42,16 @@ import {
|
|
|
35
42
|
viewFromJournal,
|
|
36
43
|
workflowJournalKey,
|
|
37
44
|
writeEditableCopy
|
|
38
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NTV2XD2J.js";
|
|
39
46
|
import {
|
|
40
47
|
runGeneratorCycle
|
|
41
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KAPCNFMC.js";
|
|
42
49
|
import {
|
|
43
50
|
createSessionLearningFeed,
|
|
44
51
|
openLearningTarget,
|
|
45
52
|
readProjectGuidance,
|
|
46
53
|
withSessionLearningFeed
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import {
|
|
49
|
-
connectMcpServers,
|
|
50
|
-
startMcpServers
|
|
51
|
-
} from "./chunk-ZI7BWTPK.js";
|
|
52
|
-
import {
|
|
53
|
-
openInBrowser
|
|
54
|
-
} from "./chunk-7UTSUGXV.js";
|
|
54
|
+
} from "./chunk-SB3A7KUJ.js";
|
|
55
55
|
import {
|
|
56
56
|
createBrowserControl
|
|
57
57
|
} from "./chunk-WHODOMXA.js";
|
|
@@ -60,10 +60,10 @@ import {
|
|
|
60
60
|
} from "./chunk-YOWYTBJS.js";
|
|
61
61
|
import {
|
|
62
62
|
migrateAccountKeys
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-LMLJ7NS5.js";
|
|
64
64
|
import {
|
|
65
65
|
openCliAccounts
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-CCYAWSZL.js";
|
|
67
67
|
import {
|
|
68
68
|
CredentialRefreshRejectedError,
|
|
69
69
|
CredentialWithdrawnError as CredentialWithdrawnError2,
|
|
@@ -71,16 +71,16 @@ import {
|
|
|
71
71
|
ensureFreshStoredCodexCredential,
|
|
72
72
|
readSubscriptionCredential,
|
|
73
73
|
sameOAuthCredential
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-CQKYKQEF.js";
|
|
75
75
|
import {
|
|
76
76
|
conversationLogPath,
|
|
77
77
|
ensureSessionStarted,
|
|
78
78
|
openConversationLog,
|
|
79
79
|
recordAccountBound
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-HOKSVFIC.js";
|
|
81
81
|
import {
|
|
82
82
|
readIdentity
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-7AWFHVMT.js";
|
|
84
84
|
import {
|
|
85
85
|
INSTRUCTIONS_FILENAME,
|
|
86
86
|
MAX_CHARS_PER_FILE,
|
|
@@ -91,12 +91,12 @@ import {
|
|
|
91
91
|
} from "./chunk-JQIBPPOL.js";
|
|
92
92
|
import {
|
|
93
93
|
isDefaultAccountId
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-OAHCS42A.js";
|
|
95
95
|
import {
|
|
96
96
|
createLazyCodeAnalysis,
|
|
97
97
|
promptCacheTtl,
|
|
98
98
|
setPromptCacheTtl
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-UMHKTV2L.js";
|
|
100
100
|
import {
|
|
101
101
|
DEFAULT_MAX_HOOK_REFUSALS,
|
|
102
102
|
SAVE_SKILL_TOOL_NAME,
|
|
@@ -106,16 +106,23 @@ import {
|
|
|
106
106
|
turnConfigFields,
|
|
107
107
|
withSandboxShell,
|
|
108
108
|
workingDirectoryProblem
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-Z5FDI74K.js";
|
|
110
110
|
import {
|
|
111
111
|
CHECK_HINT
|
|
112
112
|
} from "./chunk-BBTPD3DU.js";
|
|
113
|
+
import {
|
|
114
|
+
conversationInUseSentence,
|
|
115
|
+
minutesUntilFree
|
|
116
|
+
} from "./chunk-M3AUPUII.js";
|
|
117
|
+
import {
|
|
118
|
+
debugRequested
|
|
119
|
+
} from "./chunk-GNBMKISG.js";
|
|
113
120
|
import {
|
|
114
121
|
ensureLocalConfigIgnored,
|
|
115
122
|
logIgnoreOutcome,
|
|
116
123
|
probeCapabilities,
|
|
117
124
|
writeLocalAllows
|
|
118
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-WOSL3OZD.js";
|
|
119
126
|
import {
|
|
120
127
|
LOCAL_CONFIG_FILE,
|
|
121
128
|
configuredPassthroughTools,
|
|
@@ -126,56 +133,49 @@ import {
|
|
|
126
133
|
takeConfigWarnings,
|
|
127
134
|
unmatchedPassthroughTools,
|
|
128
135
|
workflowTokenCeiling
|
|
129
|
-
} from "./chunk-
|
|
130
|
-
import {
|
|
131
|
-
resolveGeneratorSettings
|
|
132
|
-
} from "./chunk-LCGXWCVU.js";
|
|
136
|
+
} from "./chunk-WSMX3IQE.js";
|
|
133
137
|
import {
|
|
134
138
|
compilePermissions,
|
|
135
139
|
isPathRuleTool,
|
|
136
140
|
pathRule,
|
|
137
141
|
pathRuleTools
|
|
138
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-5NDRDTNX.js";
|
|
143
|
+
import {
|
|
144
|
+
resolveGeneratorSettings
|
|
145
|
+
} from "./chunk-LCGXWCVU.js";
|
|
139
146
|
import {
|
|
140
147
|
cliLogger
|
|
141
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-HUONDMU4.js";
|
|
142
149
|
import {
|
|
143
150
|
readModelLaunchEnvironment
|
|
144
151
|
} from "./chunk-LVVD32KJ.js";
|
|
152
|
+
import {
|
|
153
|
+
formatSize,
|
|
154
|
+
homePath,
|
|
155
|
+
plural,
|
|
156
|
+
productName
|
|
157
|
+
} from "./chunk-6PWRKA5T.js";
|
|
145
158
|
import {
|
|
146
159
|
require_dist
|
|
147
160
|
} from "./chunk-KONYGNG6.js";
|
|
148
161
|
import {
|
|
149
162
|
isPermissionMode,
|
|
150
163
|
permissionModeLabel
|
|
151
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-QPR3UA4L.js";
|
|
152
165
|
import {
|
|
153
166
|
PERMISSION_MODE_NAMES
|
|
154
167
|
} from "./chunk-WMEZTDLT.js";
|
|
155
|
-
import {
|
|
156
|
-
conversationInUseSentence,
|
|
157
|
-
minutesUntilFree
|
|
158
|
-
} from "./chunk-T6ZUFXGP.js";
|
|
159
|
-
import {
|
|
160
|
-
debugRequested
|
|
161
|
-
} from "./chunk-GNBMKISG.js";
|
|
162
|
-
import {
|
|
163
|
-
formatSize,
|
|
164
|
-
homePath,
|
|
165
|
-
plural,
|
|
166
|
-
productName
|
|
167
|
-
} from "./chunk-6PWRKA5T.js";
|
|
168
168
|
import {
|
|
169
169
|
diffColors,
|
|
170
170
|
theme
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-WD2F6EO3.js";
|
|
172
172
|
import {
|
|
173
173
|
stringWidth
|
|
174
174
|
} from "./chunk-U5UV2YRE.js";
|
|
175
175
|
import {
|
|
176
176
|
discoverSkills,
|
|
177
177
|
loadSkillBody
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-HGZYNEQE.js";
|
|
179
179
|
import {
|
|
180
180
|
chainCapabilityDisagreements,
|
|
181
181
|
chainPositionName,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
readPreferences,
|
|
188
188
|
resolveChainCapabilities,
|
|
189
189
|
unresolvedMembers
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-PV65WQHD.js";
|
|
191
191
|
import {
|
|
192
192
|
canSelectModel,
|
|
193
193
|
createGeminiAccessTokenResolver,
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
findDetected,
|
|
196
196
|
hasApiCredential,
|
|
197
197
|
requiresCredentialForModel
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-X6SREM2V.js";
|
|
199
199
|
import {
|
|
200
200
|
activeZenCatalogue,
|
|
201
201
|
isOfferableModel
|
|
@@ -208,20 +208,20 @@ import {
|
|
|
208
208
|
import {
|
|
209
209
|
isAnthropicOAuthToken,
|
|
210
210
|
readCodexCredentialFile
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-UWN4WNQZ.js";
|
|
212
212
|
import {
|
|
213
213
|
composeEnvironmentPrompt,
|
|
214
214
|
detectWsl,
|
|
215
215
|
environmentFactLines,
|
|
216
216
|
permissionSentence,
|
|
217
217
|
readEnvironmentFacts
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-EKMHZKVP.js";
|
|
219
219
|
import {
|
|
220
220
|
ensurePrivateStateDirectory
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-EKQ6J5KA.js";
|
|
222
222
|
import {
|
|
223
223
|
namzuHomePath
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-3NAVAACC.js";
|
|
225
225
|
import {
|
|
226
226
|
AgentManager,
|
|
227
227
|
AgentRegistry,
|
|
@@ -415,7 +415,7 @@ import {
|
|
|
415
415
|
withModelWindowSuffixStripped,
|
|
416
416
|
withProviderFallback,
|
|
417
417
|
wrapUntrusted
|
|
418
|
-
} from "./chunk-
|
|
418
|
+
} from "./chunk-YELRULQ7.js";
|
|
419
419
|
import {
|
|
420
420
|
__name,
|
|
421
421
|
__toESM
|
|
@@ -1321,9 +1321,9 @@ function entryRows(entry, m, width, dim, colors, text2) {
|
|
|
1321
1321
|
const bg = backgroundOf(entry.kind, dim, colors);
|
|
1322
1322
|
const fg = bg === void 0 ? void 0 : text2;
|
|
1323
1323
|
const marker = MARKER[entry.kind];
|
|
1324
|
-
const
|
|
1325
|
-
const room = Math.max(1, width - m - 1 - (
|
|
1326
|
-
const pieces = wrapRuns(
|
|
1324
|
+
const words3 = wordRuns(entry, dim);
|
|
1325
|
+
const room = Math.max(1, width - m - 1 - (words3 ? marker.length : 2));
|
|
1326
|
+
const pieces = wrapRuns(words3 ?? [{ text: entry.code, mark: false }], room);
|
|
1327
1327
|
const note = entry.cut > 0 ? truncationNote(entry.cut) : "";
|
|
1328
1328
|
let noteRow = -1;
|
|
1329
1329
|
if (note) {
|
|
@@ -12984,6 +12984,9 @@ ${SUBAGENT_PROMPT}`;
|
|
|
12984
12984
|
const pluginManager = opts.resolvePluginManager?.();
|
|
12985
12985
|
const resolvedToolsets = webSearch ? toolsets.map((ts) => filtered(ts, (tool) => tool.name !== "web_search")) : toolsets;
|
|
12986
12986
|
return {
|
|
12987
|
+
// Lifecycle hooks name this agent by what it is called, not by the
|
|
12988
|
+
// host class that runs it.
|
|
12989
|
+
agentType: id,
|
|
12987
12990
|
model: options.model ?? model,
|
|
12988
12991
|
tokenBudget: options.tokenBudget ?? opts.tokenBudget ?? 0,
|
|
12989
12992
|
timeoutMs: options.timeoutMs ?? opts.timeoutMs ?? CLI_INTERACTIVE_TURN_TIMEOUT_MS,
|
|
@@ -16655,15 +16658,15 @@ function namesCli(value) {
|
|
|
16655
16658
|
}
|
|
16656
16659
|
__name(namesCli, "namesCli");
|
|
16657
16660
|
function runsSend(command) {
|
|
16658
|
-
const
|
|
16659
|
-
if (
|
|
16660
|
-
const head =
|
|
16661
|
+
const words3 = command.words.slice(command.assignments);
|
|
16662
|
+
if (words3.length === 0) return null;
|
|
16663
|
+
const head = words3[0];
|
|
16661
16664
|
const headName = head !== void 0 && !head.expands ? commandName(head.value) : "";
|
|
16662
16665
|
if (TEXT_ONLY_HEADS.has(headName)) return null;
|
|
16663
|
-
const cli =
|
|
16666
|
+
const cli = words3.findIndex((word2) => !word2.expands && namesCli(word2.value));
|
|
16664
16667
|
if (cli >= 0) {
|
|
16665
|
-
for (let i = cli + 1; i <
|
|
16666
|
-
const word2 =
|
|
16668
|
+
for (let i = cli + 1; i < words3.length; i++) {
|
|
16669
|
+
const word2 = words3[i];
|
|
16667
16670
|
if (word2 === void 0) continue;
|
|
16668
16671
|
if (word2.expands)
|
|
16669
16672
|
return "it passes the CLI a word that expands at runtime, which could be `send`";
|
|
@@ -16674,7 +16677,7 @@ function runsSend(command) {
|
|
|
16674
16677
|
return null;
|
|
16675
16678
|
}
|
|
16676
16679
|
if (head?.expands) {
|
|
16677
|
-
const rest =
|
|
16680
|
+
const rest = words3.slice(1);
|
|
16678
16681
|
if (rest.some((word2) => !word2.expands && lower(word2.value) === "send"))
|
|
16679
16682
|
return "its program name expands at runtime and it is followed by `send`";
|
|
16680
16683
|
if (rest.some((word2) => word2.expands))
|
|
@@ -16684,10 +16687,10 @@ function runsSend(command) {
|
|
|
16684
16687
|
}
|
|
16685
16688
|
__name(runsSend, "runsSend");
|
|
16686
16689
|
function runsUnreadText(command) {
|
|
16687
|
-
const
|
|
16688
|
-
const nested = nestedShellCommand(
|
|
16690
|
+
const words3 = command.words.slice(command.assignments);
|
|
16691
|
+
const nested = nestedShellCommand(words3);
|
|
16689
16692
|
if (nested !== null && "payload" in nested) return false;
|
|
16690
|
-
return
|
|
16693
|
+
return words3.some((word2) => !word2.expands && UNREAD_RUNNERS.test(commandName(word2.value)));
|
|
16691
16694
|
}
|
|
16692
16695
|
__name(runsUnreadText, "runsUnreadText");
|
|
16693
16696
|
function textVariants(line) {
|
|
@@ -16826,9 +16829,9 @@ function programName(word2) {
|
|
|
16826
16829
|
}
|
|
16827
16830
|
__name(programName, "programName");
|
|
16828
16831
|
function twoWordPrefix(command) {
|
|
16829
|
-
const
|
|
16830
|
-
const [program, subcommand] =
|
|
16831
|
-
if (
|
|
16832
|
+
const words3 = command.trim().split(/\s+/).filter(Boolean);
|
|
16833
|
+
const [program, subcommand] = words3;
|
|
16834
|
+
if (words3.length < 2 || program === void 0 || subcommand === void 0) return void 0;
|
|
16832
16835
|
if (ASSIGNMENT.test(program)) return void 0;
|
|
16833
16836
|
if (!PLAIN_PROGRAM.test(program) || NO_PREFIX_PROGRAMS.has(programName(program))) return void 0;
|
|
16834
16837
|
if (!SUBCOMMAND.test(subcommand)) return void 0;
|
|
@@ -18208,6 +18211,43 @@ var WORDS = {
|
|
|
18208
18211
|
run: { live: "running", done: "ran", one: "command", many: "commands" },
|
|
18209
18212
|
mcp: { live: "calling", done: "called" }
|
|
18210
18213
|
};
|
|
18214
|
+
var VCS_WORDS = {
|
|
18215
|
+
commit: { live: "making", done: "made", one: "commit", many: "commits" },
|
|
18216
|
+
amend: { live: "amending", done: "amended", one: "commit", many: "commits" },
|
|
18217
|
+
// The line cannot see a command's result, and a push or a merge that found nothing to do ends well
|
|
18218
|
+
// too: once over these say what was run, not what changed.
|
|
18219
|
+
push: {
|
|
18220
|
+
live: "pushing",
|
|
18221
|
+
done: "ran",
|
|
18222
|
+
one: "time",
|
|
18223
|
+
many: "times",
|
|
18224
|
+
doneNouns: ["push", "pushes"]
|
|
18225
|
+
},
|
|
18226
|
+
"create-branch": { live: "creating", done: "created", one: "branch", many: "branches" },
|
|
18227
|
+
"switch-branch": {
|
|
18228
|
+
live: "switching",
|
|
18229
|
+
done: "switched",
|
|
18230
|
+
one: "time",
|
|
18231
|
+
many: "times",
|
|
18232
|
+
names: "branches"
|
|
18233
|
+
},
|
|
18234
|
+
merge: {
|
|
18235
|
+
live: "merging",
|
|
18236
|
+
done: "ran",
|
|
18237
|
+
one: "branch",
|
|
18238
|
+
many: "branches",
|
|
18239
|
+
doneNouns: ["merge", "merges"]
|
|
18240
|
+
},
|
|
18241
|
+
rebase: {
|
|
18242
|
+
live: "rebasing",
|
|
18243
|
+
done: "ran",
|
|
18244
|
+
one: "time",
|
|
18245
|
+
many: "times",
|
|
18246
|
+
doneNouns: ["rebase", "rebases"]
|
|
18247
|
+
},
|
|
18248
|
+
"pr-open": { live: "opening", done: "opened", one: "pull request", many: "pull requests" },
|
|
18249
|
+
"pr-merge": { live: "merging", done: "merged", one: "pull request", many: "pull requests" }
|
|
18250
|
+
};
|
|
18211
18251
|
function groupParts(state, live) {
|
|
18212
18252
|
const parts = [];
|
|
18213
18253
|
if (state.searches > 0) {
|
|
@@ -18232,12 +18272,27 @@ function groupParts(state, live) {
|
|
|
18232
18272
|
});
|
|
18233
18273
|
}
|
|
18234
18274
|
if (state.commands.length > 0) {
|
|
18235
|
-
const
|
|
18236
|
-
|
|
18237
|
-
|
|
18238
|
-
|
|
18239
|
-
|
|
18240
|
-
|
|
18275
|
+
const { counts, absorbed } = vcsTally(state.commands);
|
|
18276
|
+
for (const action of VCS_ACTIONS) {
|
|
18277
|
+
const n = counts[action];
|
|
18278
|
+
if (n === 0) continue;
|
|
18279
|
+
const w = VCS_WORDS[action];
|
|
18280
|
+
parts.push({
|
|
18281
|
+
verb: live ? w.live : w.done,
|
|
18282
|
+
...w.names ? { names: w.names } : {},
|
|
18283
|
+
count: n,
|
|
18284
|
+
noun: live || !w.doneNouns ? n === 1 ? w.one : w.many : n === 1 ? w.doneNouns[0] : w.doneNouns[1]
|
|
18285
|
+
});
|
|
18286
|
+
}
|
|
18287
|
+
const plain2 = state.commands.length - absorbed;
|
|
18288
|
+
if (plain2 > 0) {
|
|
18289
|
+
const w = WORDS.run;
|
|
18290
|
+
parts.push({
|
|
18291
|
+
verb: live ? w.live : w.done,
|
|
18292
|
+
count: plain2,
|
|
18293
|
+
noun: plain2 === 1 ? w.one : w.many
|
|
18294
|
+
});
|
|
18295
|
+
}
|
|
18241
18296
|
}
|
|
18242
18297
|
if (state.mcpCalls > 0) {
|
|
18243
18298
|
const w = WORDS.mcp;
|
|
@@ -18330,8 +18385,13 @@ var LIST_COMMANDS = /* @__PURE__ */ new Set(["ls", "tree", "du"]);
|
|
|
18330
18385
|
var NEUTRAL_COMMANDS = /* @__PURE__ */ new Set(["echo", "printf", "true", "false", ":"]);
|
|
18331
18386
|
var SAFE_REDIRECT = /^(?:>&\d|&?>>?\s*\/dev\/null)(?=\s|$|[;|&])/;
|
|
18332
18387
|
function shellSegments(command) {
|
|
18333
|
-
|
|
18388
|
+
return splitShell(command)?.segments;
|
|
18389
|
+
}
|
|
18390
|
+
__name(shellSegments, "shellSegments");
|
|
18391
|
+
function splitShell(command) {
|
|
18392
|
+
const pieces = [];
|
|
18334
18393
|
let current = "";
|
|
18394
|
+
let op = "";
|
|
18335
18395
|
let quote = null;
|
|
18336
18396
|
for (let i = 0; i < command.length; i++) {
|
|
18337
18397
|
const ch = command.charAt(i);
|
|
@@ -18369,18 +18429,34 @@ function shellSegments(command) {
|
|
|
18369
18429
|
return void 0;
|
|
18370
18430
|
if (ch === "&" && next !== "&") return void 0;
|
|
18371
18431
|
if (ch === "|" || ch === ";" || ch === "&" || ch === "\n") {
|
|
18372
|
-
|
|
18373
|
-
|
|
18432
|
+
let found = ch;
|
|
18433
|
+
if ((ch === "|" || ch === "&") && next === ch) {
|
|
18434
|
+
found = ch + ch;
|
|
18435
|
+
i += 1;
|
|
18436
|
+
}
|
|
18437
|
+
pieces.push({ text: current, op });
|
|
18374
18438
|
current = "";
|
|
18439
|
+
op = found;
|
|
18375
18440
|
continue;
|
|
18376
18441
|
}
|
|
18377
18442
|
current += ch;
|
|
18378
18443
|
}
|
|
18379
18444
|
if (quote !== null) return void 0;
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18445
|
+
pieces.push({ text: current, op });
|
|
18446
|
+
const segments = [];
|
|
18447
|
+
const joins = [];
|
|
18448
|
+
let pending = "";
|
|
18449
|
+
for (const piece of pieces) {
|
|
18450
|
+
if (piece.op !== "" && piece.op !== "&&" && pending === "") pending = piece.op;
|
|
18451
|
+
const text2 = piece.text.trim();
|
|
18452
|
+
if (text2.length === 0) continue;
|
|
18453
|
+
segments.push(text2);
|
|
18454
|
+
joins.push(segments.length === 1 ? "" : pending === "" ? piece.op : pending);
|
|
18455
|
+
pending = "";
|
|
18456
|
+
}
|
|
18457
|
+
return { segments, joins };
|
|
18458
|
+
}
|
|
18459
|
+
__name(splitShell, "splitShell");
|
|
18384
18460
|
function writesOrRuns(word2, segment) {
|
|
18385
18461
|
if (word2 === "find")
|
|
18386
18462
|
return /(^|\s)-(delete|exec|execdir|ok|okdir|fprint\w*|fls)(\s|$)/.test(segment);
|
|
@@ -18474,6 +18550,365 @@ function classifyCall(call) {
|
|
|
18474
18550
|
}
|
|
18475
18551
|
}
|
|
18476
18552
|
__name(classifyCall, "classifyCall");
|
|
18553
|
+
var VCS_ACTIONS = [
|
|
18554
|
+
"commit",
|
|
18555
|
+
"amend",
|
|
18556
|
+
"push",
|
|
18557
|
+
"create-branch",
|
|
18558
|
+
"switch-branch",
|
|
18559
|
+
"merge",
|
|
18560
|
+
"rebase",
|
|
18561
|
+
"pr-open",
|
|
18562
|
+
"pr-merge"
|
|
18563
|
+
];
|
|
18564
|
+
function words2(segment) {
|
|
18565
|
+
const out = [];
|
|
18566
|
+
let text2 = "";
|
|
18567
|
+
let quoted = false;
|
|
18568
|
+
let plainUntil = -1;
|
|
18569
|
+
let open5 = false;
|
|
18570
|
+
let quote = null;
|
|
18571
|
+
const mark = /* @__PURE__ */ __name(() => {
|
|
18572
|
+
quoted = true;
|
|
18573
|
+
if (plainUntil < 0) plainUntil = text2.length;
|
|
18574
|
+
}, "mark");
|
|
18575
|
+
for (let i = 0; i < segment.length; i++) {
|
|
18576
|
+
const ch = segment.charAt(i);
|
|
18577
|
+
if (quote !== null) {
|
|
18578
|
+
if (ch === quote) quote = null;
|
|
18579
|
+
else if (ch === "\\" && quote === '"' && i + 1 < segment.length) {
|
|
18580
|
+
text2 += segment.charAt(i + 1);
|
|
18581
|
+
i += 1;
|
|
18582
|
+
} else text2 += ch;
|
|
18583
|
+
continue;
|
|
18584
|
+
}
|
|
18585
|
+
if (ch === '"' || ch === "'") {
|
|
18586
|
+
mark();
|
|
18587
|
+
open5 = true;
|
|
18588
|
+
quote = ch;
|
|
18589
|
+
continue;
|
|
18590
|
+
}
|
|
18591
|
+
if (ch === "\\" && i + 1 < segment.length) {
|
|
18592
|
+
mark();
|
|
18593
|
+
open5 = true;
|
|
18594
|
+
text2 += segment.charAt(i + 1);
|
|
18595
|
+
i += 1;
|
|
18596
|
+
continue;
|
|
18597
|
+
}
|
|
18598
|
+
if (/\s/.test(ch)) {
|
|
18599
|
+
if (open5) out.push({ text: text2, quoted, plainUntil: plainUntil < 0 ? text2.length : plainUntil });
|
|
18600
|
+
text2 = "";
|
|
18601
|
+
quoted = false;
|
|
18602
|
+
plainUntil = -1;
|
|
18603
|
+
open5 = false;
|
|
18604
|
+
continue;
|
|
18605
|
+
}
|
|
18606
|
+
open5 = true;
|
|
18607
|
+
text2 += ch;
|
|
18608
|
+
}
|
|
18609
|
+
if (open5) out.push({ text: text2, quoted, plainUntil: plainUntil < 0 ? text2.length : plainUntil });
|
|
18610
|
+
return out;
|
|
18611
|
+
}
|
|
18612
|
+
__name(words2, "words");
|
|
18613
|
+
var ASSIGNMENT2 = /^[A-Za-z_][A-Za-z0-9_]*=/;
|
|
18614
|
+
function isFlag(word2) {
|
|
18615
|
+
return !word2.quoted && word2.text.length > 1 && word2.text.startsWith("-");
|
|
18616
|
+
}
|
|
18617
|
+
__name(isFlag, "isFlag");
|
|
18618
|
+
function longMatches(flag, full, minLength) {
|
|
18619
|
+
const name = flag.split("=")[0] ?? flag;
|
|
18620
|
+
return name.startsWith("--") && name.length >= minLength && full.startsWith(name);
|
|
18621
|
+
}
|
|
18622
|
+
__name(longMatches, "longMatches");
|
|
18623
|
+
var VALUE_OPTIONS = {
|
|
18624
|
+
commit: {
|
|
18625
|
+
short: "mFCct",
|
|
18626
|
+
long: [
|
|
18627
|
+
"--message",
|
|
18628
|
+
"--file",
|
|
18629
|
+
"--author",
|
|
18630
|
+
"--date",
|
|
18631
|
+
"--reuse-message",
|
|
18632
|
+
"--reedit-message",
|
|
18633
|
+
"--fixup",
|
|
18634
|
+
"--squash",
|
|
18635
|
+
"--cleanup",
|
|
18636
|
+
"--template",
|
|
18637
|
+
"--trailer"
|
|
18638
|
+
]
|
|
18639
|
+
},
|
|
18640
|
+
push: {
|
|
18641
|
+
short: "o",
|
|
18642
|
+
long: ["--push-option", "--repo", "--receive-pack", "--exec"]
|
|
18643
|
+
},
|
|
18644
|
+
merge: { short: "mFsX", long: ["--message", "--file", "--strategy", "--strategy-option"] },
|
|
18645
|
+
rebase: {
|
|
18646
|
+
short: "sXxC",
|
|
18647
|
+
long: ["--onto", "--strategy", "--strategy-option", "--exec"]
|
|
18648
|
+
},
|
|
18649
|
+
switch: { short: "cC", long: ["--conflict", "--create", "--force-create", "--orphan"] },
|
|
18650
|
+
checkout: { short: "bB", long: ["--conflict", "--orphan"] },
|
|
18651
|
+
branch: { short: "", long: [] },
|
|
18652
|
+
"gh-pr-create": {
|
|
18653
|
+
short: "tbBHlaromTpRF",
|
|
18654
|
+
long: [
|
|
18655
|
+
"--title",
|
|
18656
|
+
"--body",
|
|
18657
|
+
"--base",
|
|
18658
|
+
"--head",
|
|
18659
|
+
"--label",
|
|
18660
|
+
"--assignee",
|
|
18661
|
+
"--reviewer",
|
|
18662
|
+
"--milestone",
|
|
18663
|
+
"--project",
|
|
18664
|
+
"--template",
|
|
18665
|
+
"--repo",
|
|
18666
|
+
"--body-file",
|
|
18667
|
+
"--recover"
|
|
18668
|
+
]
|
|
18669
|
+
},
|
|
18670
|
+
"gh-pr-merge": {
|
|
18671
|
+
short: "tbFR",
|
|
18672
|
+
long: ["--subject", "--body", "--body-file", "--match-head-commit", "--author-email", "--repo"]
|
|
18673
|
+
}
|
|
18674
|
+
};
|
|
18675
|
+
function parseArgs(rest, table) {
|
|
18676
|
+
const spec = VALUE_OPTIONS[table] ?? { short: "", long: [] };
|
|
18677
|
+
const flags = [];
|
|
18678
|
+
const positional = [];
|
|
18679
|
+
const values = /* @__PURE__ */ new Map();
|
|
18680
|
+
let unsure = false;
|
|
18681
|
+
let onlyPaths = false;
|
|
18682
|
+
for (let i = 0; i < rest.length; i++) {
|
|
18683
|
+
const word2 = rest[i];
|
|
18684
|
+
if (!onlyPaths && !word2.quoted && word2.text === "--") {
|
|
18685
|
+
onlyPaths = true;
|
|
18686
|
+
continue;
|
|
18687
|
+
}
|
|
18688
|
+
if (!onlyPaths && isFlag(word2) && word2.text !== "-") {
|
|
18689
|
+
flags.push(word2.text);
|
|
18690
|
+
const long = word2.text.startsWith("--");
|
|
18691
|
+
const takes = long ? !word2.text.includes("=") && spec.long.some((name) => longMatches(word2.text, name, word2.text.length)) : /^-[A-Za-z]*$/.test(word2.text) && spec.short.includes(word2.text.charAt(word2.text.length - 1));
|
|
18692
|
+
if (takes && i + 1 < rest.length) {
|
|
18693
|
+
values.set(word2.text, rest[i + 1].text);
|
|
18694
|
+
i += 1;
|
|
18695
|
+
}
|
|
18696
|
+
continue;
|
|
18697
|
+
}
|
|
18698
|
+
if (/[$*?[]/.test(word2.text) || word2.text.startsWith("~")) unsure = true;
|
|
18699
|
+
positional.push(word2.text);
|
|
18700
|
+
}
|
|
18701
|
+
return { flags, positional, unsure, values };
|
|
18702
|
+
}
|
|
18703
|
+
__name(parseArgs, "parseArgs");
|
|
18704
|
+
function hasFlag(parsed, ...names) {
|
|
18705
|
+
return parsed.flags.some(
|
|
18706
|
+
(flag) => names.some(
|
|
18707
|
+
(name) => name.startsWith("--") ? longMatches(flag, name, 3) : flag === name || shortCluster(flag, name)
|
|
18708
|
+
)
|
|
18709
|
+
);
|
|
18710
|
+
}
|
|
18711
|
+
__name(hasFlag, "hasFlag");
|
|
18712
|
+
function shortCluster(flag, name) {
|
|
18713
|
+
return name.length === 2 && /^-[A-Za-z]+$/.test(flag) && !flag.startsWith("--") && flag.slice(1).includes(name.charAt(1));
|
|
18714
|
+
}
|
|
18715
|
+
__name(shortCluster, "shortCluster");
|
|
18716
|
+
var GIT_FLAGS = /* @__PURE__ */ new Set([
|
|
18717
|
+
"--no-pager",
|
|
18718
|
+
"-P",
|
|
18719
|
+
"--paginate",
|
|
18720
|
+
"-p",
|
|
18721
|
+
"--no-optional-locks",
|
|
18722
|
+
"--no-replace-objects",
|
|
18723
|
+
"--bare",
|
|
18724
|
+
"--literal-pathspecs",
|
|
18725
|
+
"--no-literal-pathspecs",
|
|
18726
|
+
"--glob-pathspecs",
|
|
18727
|
+
"--noglob-pathspecs",
|
|
18728
|
+
"--icase-pathspecs",
|
|
18729
|
+
"--no-advice"
|
|
18730
|
+
]);
|
|
18731
|
+
function readSegment(segment) {
|
|
18732
|
+
const all = words2(segment);
|
|
18733
|
+
let i = 0;
|
|
18734
|
+
while (i < all.length) {
|
|
18735
|
+
const word2 = all[i];
|
|
18736
|
+
const eq = word2.text.indexOf("=");
|
|
18737
|
+
if (ASSIGNMENT2.test(word2.text) && eq <= word2.plainUntil) i += 1;
|
|
18738
|
+
else break;
|
|
18739
|
+
}
|
|
18740
|
+
const head = all[i];
|
|
18741
|
+
if (head === void 0 || head.quoted) return { explained: false };
|
|
18742
|
+
if (head.text === "cd" || NEUTRAL_COMMANDS.has(head.text)) return { explained: true };
|
|
18743
|
+
if (head.text === "git") return readGit(all.slice(i + 1));
|
|
18744
|
+
if (head.text === "gh") return readGh(all.slice(i + 1));
|
|
18745
|
+
return { explained: false };
|
|
18746
|
+
}
|
|
18747
|
+
__name(readSegment, "readSegment");
|
|
18748
|
+
function readGit(rest) {
|
|
18749
|
+
let i = 0;
|
|
18750
|
+
for (; i < rest.length; i++) {
|
|
18751
|
+
const word2 = rest[i];
|
|
18752
|
+
if (word2.quoted) return { explained: false };
|
|
18753
|
+
if (word2.text === "-C") {
|
|
18754
|
+
i += 1;
|
|
18755
|
+
continue;
|
|
18756
|
+
}
|
|
18757
|
+
if (word2.text === "-c") {
|
|
18758
|
+
const value = rest[i + 1]?.text.toLowerCase() ?? "";
|
|
18759
|
+
if (value.startsWith("alias.")) return { explained: false };
|
|
18760
|
+
i += 1;
|
|
18761
|
+
continue;
|
|
18762
|
+
}
|
|
18763
|
+
if (word2.text === "--git-dir" || word2.text === "--work-tree" || word2.text === "--namespace") {
|
|
18764
|
+
i += 1;
|
|
18765
|
+
continue;
|
|
18766
|
+
}
|
|
18767
|
+
if (/^--(?:git-dir|work-tree|namespace)=/.test(word2.text) || GIT_FLAGS.has(word2.text)) continue;
|
|
18768
|
+
if (word2.text.startsWith("-")) return { explained: false };
|
|
18769
|
+
break;
|
|
18770
|
+
}
|
|
18771
|
+
const sub = rest[i];
|
|
18772
|
+
if (sub === void 0 || sub.quoted || /[$*?[~]/.test(sub.text)) return { explained: false };
|
|
18773
|
+
const parsed = parseArgs(rest.slice(i + 1), sub.text);
|
|
18774
|
+
const unknown = { explained: false };
|
|
18775
|
+
const harmless = { explained: true };
|
|
18776
|
+
if (HARMLESS_GIT.has(sub.text)) return harmless;
|
|
18777
|
+
if (parsed.unsure) return unknown;
|
|
18778
|
+
if (hasFlag(parsed, "--help", "-h")) return harmless;
|
|
18779
|
+
switch (sub.text) {
|
|
18780
|
+
case "commit":
|
|
18781
|
+
if (hasFlag(parsed, "--dry-run")) return harmless;
|
|
18782
|
+
return { action: amendLong(parsed) ? "amend" : "commit", explained: true };
|
|
18783
|
+
case "push":
|
|
18784
|
+
if (hasFlag(parsed, "--dry-run", "-n")) return harmless;
|
|
18785
|
+
if (hasFlag(parsed, "--delete", "-d", "--mirror")) return unknown;
|
|
18786
|
+
return { action: "push", explained: true };
|
|
18787
|
+
case "merge":
|
|
18788
|
+
if (hasFlag(parsed, "--abort", "--quit", "--continue")) return unknown;
|
|
18789
|
+
return { action: "merge", explained: true };
|
|
18790
|
+
case "rebase":
|
|
18791
|
+
if (hasFlag(
|
|
18792
|
+
parsed,
|
|
18793
|
+
"--abort",
|
|
18794
|
+
"--quit",
|
|
18795
|
+
"--continue",
|
|
18796
|
+
"--skip",
|
|
18797
|
+
"--edit-todo",
|
|
18798
|
+
"--show-current-patch"
|
|
18799
|
+
))
|
|
18800
|
+
return unknown;
|
|
18801
|
+
return { action: "rebase", explained: true };
|
|
18802
|
+
case "switch": {
|
|
18803
|
+
const make = ["-c", "-C", "--create", "--force-create"].find((f) => parsed.values.has(f));
|
|
18804
|
+
if (make !== void 0) return { action: "create-branch", explained: true };
|
|
18805
|
+
if (hasFlag(parsed, "--detach", "-d", "--orphan", "--create", "--force-create"))
|
|
18806
|
+
return unknown;
|
|
18807
|
+
return parsed.positional.length === 1 ? { action: "switch-branch", explained: true } : unknown;
|
|
18808
|
+
}
|
|
18809
|
+
case "checkout":
|
|
18810
|
+
return ["-b", "-B"].some((f) => parsed.values.has(f)) && !hasFlag(parsed, "--orphan") ? { action: "create-branch", explained: true } : unknown;
|
|
18811
|
+
case "branch":
|
|
18812
|
+
if (parsed.flags.length === 0 && parsed.positional.length >= 1 && parsed.positional.length <= 2)
|
|
18813
|
+
return { action: "create-branch", explained: true };
|
|
18814
|
+
return parsed.positional.length === 0 && parsed.flags.every((flag) => BRANCH_LIST_FLAGS.has(flag)) ? harmless : unknown;
|
|
18815
|
+
default:
|
|
18816
|
+
return unknown;
|
|
18817
|
+
}
|
|
18818
|
+
}
|
|
18819
|
+
__name(readGit, "readGit");
|
|
18820
|
+
var HARMLESS_GIT = /* @__PURE__ */ new Set([
|
|
18821
|
+
"add",
|
|
18822
|
+
"status",
|
|
18823
|
+
"diff",
|
|
18824
|
+
"log",
|
|
18825
|
+
"show",
|
|
18826
|
+
"fetch",
|
|
18827
|
+
"rev-parse",
|
|
18828
|
+
"rev-list",
|
|
18829
|
+
"ls-files",
|
|
18830
|
+
"ls-tree",
|
|
18831
|
+
"describe",
|
|
18832
|
+
"blame",
|
|
18833
|
+
"shortlog",
|
|
18834
|
+
"grep",
|
|
18835
|
+
"cat-file",
|
|
18836
|
+
"reflog"
|
|
18837
|
+
]);
|
|
18838
|
+
var BRANCH_LIST_FLAGS = /* @__PURE__ */ new Set([
|
|
18839
|
+
"-a",
|
|
18840
|
+
"--all",
|
|
18841
|
+
"-r",
|
|
18842
|
+
"--remotes",
|
|
18843
|
+
"-v",
|
|
18844
|
+
"-vv",
|
|
18845
|
+
"--verbose",
|
|
18846
|
+
"--list",
|
|
18847
|
+
"-l",
|
|
18848
|
+
"--show-current"
|
|
18849
|
+
]);
|
|
18850
|
+
function amendLong(parsed) {
|
|
18851
|
+
return parsed.flags.some((flag) => longMatches(flag, "--amend", 4));
|
|
18852
|
+
}
|
|
18853
|
+
__name(amendLong, "amendLong");
|
|
18854
|
+
function readGh(rest) {
|
|
18855
|
+
const first = rest[0];
|
|
18856
|
+
const second = rest[1];
|
|
18857
|
+
if (first === void 0 || first.quoted || first.text !== "pr") return { explained: false };
|
|
18858
|
+
if (second === void 0 || second.quoted) return { explained: false };
|
|
18859
|
+
const harmless = { explained: true };
|
|
18860
|
+
const unknown = { explained: false };
|
|
18861
|
+
if (GH_PR_HARMLESS.has(second.text)) return harmless;
|
|
18862
|
+
if (second.text !== "create" && second.text !== "merge") return unknown;
|
|
18863
|
+
const parsed = parseArgs(rest.slice(2), second.text === "create" ? "gh-pr-create" : "gh-pr-merge");
|
|
18864
|
+
if (parsed.unsure) return unknown;
|
|
18865
|
+
if (parsed.flags.some((flag) => flag === "--help" || flag === "-h")) return harmless;
|
|
18866
|
+
if (second.text === "create") {
|
|
18867
|
+
if (parsed.flags.includes("--dry-run")) return harmless;
|
|
18868
|
+
if (parsed.flags.some((flag) => flag === "--web" || flag === "-w")) return unknown;
|
|
18869
|
+
return { action: "pr-open", explained: true };
|
|
18870
|
+
}
|
|
18871
|
+
if (parsed.flags.some((flag) => flag === "--auto" || flag === "--disable-auto")) return unknown;
|
|
18872
|
+
return { action: "pr-merge", explained: true };
|
|
18873
|
+
}
|
|
18874
|
+
__name(readGh, "readGh");
|
|
18875
|
+
var GH_PR_HARMLESS = /* @__PURE__ */ new Set(["view", "list", "status", "checks", "diff"]);
|
|
18876
|
+
function vcsActions(command) {
|
|
18877
|
+
const split = splitShell(command);
|
|
18878
|
+
if (!split || split.segments.length === 0) return { actions: [], absorbed: false };
|
|
18879
|
+
if (split.joins.some((join20, index) => index > 0 && join20 !== "&&"))
|
|
18880
|
+
return { actions: [], absorbed: false };
|
|
18881
|
+
const actions = [];
|
|
18882
|
+
let explained = true;
|
|
18883
|
+
for (const segment of split.segments) {
|
|
18884
|
+
const read2 = readSegment(segment);
|
|
18885
|
+
if (read2.action !== void 0) actions.push(read2.action);
|
|
18886
|
+
if (!read2.explained) explained = false;
|
|
18887
|
+
}
|
|
18888
|
+
return { actions, absorbed: actions.length > 0 && explained };
|
|
18889
|
+
}
|
|
18890
|
+
__name(vcsActions, "vcsActions");
|
|
18891
|
+
function vcsTally(commands) {
|
|
18892
|
+
const counts = {
|
|
18893
|
+
commit: 0,
|
|
18894
|
+
amend: 0,
|
|
18895
|
+
push: 0,
|
|
18896
|
+
"create-branch": 0,
|
|
18897
|
+
"switch-branch": 0,
|
|
18898
|
+
merge: 0,
|
|
18899
|
+
rebase: 0,
|
|
18900
|
+
"pr-open": 0,
|
|
18901
|
+
"pr-merge": 0
|
|
18902
|
+
};
|
|
18903
|
+
let absorbed = 0;
|
|
18904
|
+
for (const command of commands) {
|
|
18905
|
+
const read2 = vcsActions(command);
|
|
18906
|
+
for (const action of read2.actions) counts[action] += 1;
|
|
18907
|
+
if (read2.absorbed) absorbed += 1;
|
|
18908
|
+
}
|
|
18909
|
+
return { counts, absorbed };
|
|
18910
|
+
}
|
|
18911
|
+
__name(vcsTally, "vcsTally");
|
|
18477
18912
|
|
|
18478
18913
|
// src/tui/tool-presentation.ts
|
|
18479
18914
|
var optionalText = /* @__PURE__ */ __name((value) => value === void 0 || typeof value === "string", "optionalText");
|
|
@@ -18868,11 +19303,11 @@ __name(clipRequestContext, "clipRequestContext");
|
|
|
18868
19303
|
async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
18869
19304
|
const modelEnvironment = readModelLaunchEnvironment();
|
|
18870
19305
|
if (options.palEnvironment) {
|
|
18871
|
-
const { createPalAgentSession } = await import("./agent-session-
|
|
19306
|
+
const { createPalAgentSession } = await import("./agent-session-L6J5GZVX.js");
|
|
18872
19307
|
return createPalAgentSession(prefs, detectedProviders, options);
|
|
18873
19308
|
}
|
|
18874
19309
|
let detected = detectedProviders;
|
|
18875
|
-
const { palAtWorkspace } = await import("./store-
|
|
19310
|
+
const { palAtWorkspace } = await import("./store-XIPDR26B.js");
|
|
18876
19311
|
if (palAtWorkspace(options.cwd ?? process.cwd()))
|
|
18877
19312
|
throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
|
|
18878
19313
|
const commandArguments = builtinCommandArguments();
|
|
@@ -20156,7 +20591,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
20156
20591
|
);
|
|
20157
20592
|
toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
|
|
20158
20593
|
}
|
|
20159
|
-
const operatorPals = await import("./operator-tools-
|
|
20594
|
+
const operatorPals = await import("./operator-tools-LYY2FXSO.js");
|
|
20160
20595
|
toolsets.push(
|
|
20161
20596
|
readyWhen(
|
|
20162
20597
|
toolset(
|
|
@@ -20371,15 +20806,33 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
20371
20806
|
let lastSystemPromptText;
|
|
20372
20807
|
let sessionStarted = false;
|
|
20373
20808
|
let sessionHookContext;
|
|
20374
|
-
|
|
20809
|
+
let conversationGeneration = 0;
|
|
20810
|
+
let nextSessionSource;
|
|
20811
|
+
const conversationEnds = /* @__PURE__ */ new Set();
|
|
20812
|
+
const announceSessionStart = /* @__PURE__ */ __name(async (counted2) => {
|
|
20375
20813
|
if (!sessionPlugins || sessionStarted) return;
|
|
20376
20814
|
sessionStarted = true;
|
|
20815
|
+
const generation = conversationGeneration;
|
|
20816
|
+
const source = nextSessionSource ?? counted2;
|
|
20817
|
+
nextSessionSource = void 0;
|
|
20377
20818
|
const results = await sessionPlugins.manager.executeHooks("session_start", {
|
|
20378
20819
|
sessionId: scope2.sessionId,
|
|
20379
20820
|
source
|
|
20380
20821
|
});
|
|
20822
|
+
if (generation !== conversationGeneration) return;
|
|
20381
20823
|
sessionHookContext = sessionStartHookContext(results);
|
|
20382
20824
|
}, "announceSessionStart");
|
|
20825
|
+
const changeConversation = /* @__PURE__ */ __name((change) => {
|
|
20826
|
+
if (!sessionPlugins) return Promise.resolve();
|
|
20827
|
+
conversationGeneration += 1;
|
|
20828
|
+
sessionStarted = false;
|
|
20829
|
+
sessionHookContext = void 0;
|
|
20830
|
+
nextSessionSource = change.starting;
|
|
20831
|
+
const ended = sessionPlugins.manager.executeHooks("session_end", { sessionId: change.from, endReason: change.reason }).catch(() => []).then(() => void 0);
|
|
20832
|
+
conversationEnds.add(ended);
|
|
20833
|
+
void ended.then(() => conversationEnds.delete(ended));
|
|
20834
|
+
return ended;
|
|
20835
|
+
}, "changeConversation");
|
|
20383
20836
|
let sessionEndReason = "exit";
|
|
20384
20837
|
let sessionClosing = false;
|
|
20385
20838
|
if (pluginRuntime) {
|
|
@@ -20415,10 +20868,16 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
20415
20868
|
Promise.resolve().then(() => manager.dispose()),
|
|
20416
20869
|
options.conversationSessions ? releaseConversationEvidence(options.conversationSessions, scope2.sessionId) : void 0,
|
|
20417
20870
|
subagentRuntime?.close?.(),
|
|
20418
|
-
sessionPlugins ?
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20871
|
+
sessionPlugins ? (
|
|
20872
|
+
// The conversations left behind are told first and the last one after them, so a
|
|
20873
|
+
// hook sees the ends in the order they happened and two end hooks never run at once.
|
|
20874
|
+
Promise.allSettled([...conversationEnds]).then(
|
|
20875
|
+
() => sessionPlugins.manager.executeHooks("session_end", {
|
|
20876
|
+
sessionId: scope2.sessionId,
|
|
20877
|
+
endReason: sessionEndReason
|
|
20878
|
+
})
|
|
20879
|
+
).catch(() => void 0).then(() => sessionPlugins.close())
|
|
20880
|
+
) : void 0,
|
|
20422
20881
|
mcp.close(),
|
|
20423
20882
|
computerUseHost?.dispose(),
|
|
20424
20883
|
browserControl?.dispose(),
|
|
@@ -20970,6 +21429,9 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
20970
21429
|
...common,
|
|
20971
21430
|
sessionId,
|
|
20972
21431
|
...trigger === "idle" ? { trigger } : {},
|
|
21432
|
+
// `pre_compact` and `post_compact` fire for this pass as they do for an
|
|
21433
|
+
// automatic one; the kernel tells them whether a person or the host asked.
|
|
21434
|
+
...pluginRuntime ? { hooks: { manager: pluginRuntime.manager } } : {},
|
|
20973
21435
|
locator: {
|
|
20974
21436
|
log: DiskSessionLog.at(paths, { sessionId }),
|
|
20975
21437
|
index: sessions.index
|
|
@@ -20977,7 +21439,20 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
20977
21439
|
})
|
|
20978
21440
|
);
|
|
20979
21441
|
}
|
|
20980
|
-
return await counted(
|
|
21442
|
+
return await counted(
|
|
21443
|
+
sessionId,
|
|
21444
|
+
compactNow({
|
|
21445
|
+
...common,
|
|
21446
|
+
messages,
|
|
21447
|
+
...pluginRuntime ? {
|
|
21448
|
+
hooks: {
|
|
21449
|
+
manager: pluginRuntime.manager,
|
|
21450
|
+
sessionId,
|
|
21451
|
+
...trigger === "idle" ? { trigger } : {}
|
|
21452
|
+
}
|
|
21453
|
+
} : {}
|
|
21454
|
+
})
|
|
21455
|
+
);
|
|
20981
21456
|
}), "compact"),
|
|
20982
21457
|
compactRange: /* @__PURE__ */ __name(({ messages, from, until, instructions }) => operations.promise(void 0, async (signal) => {
|
|
20983
21458
|
const sessionId = scope2.sessionId;
|
|
@@ -21005,6 +21480,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
21005
21480
|
compactSessionRange({
|
|
21006
21481
|
...common,
|
|
21007
21482
|
sessionId,
|
|
21483
|
+
...pluginRuntime ? { hooks: { manager: pluginRuntime.manager } } : {},
|
|
21008
21484
|
...from?.id ? { from: from.id } : {},
|
|
21009
21485
|
...until?.id ? { until: until.id } : {},
|
|
21010
21486
|
locator: {
|
|
@@ -21028,6 +21504,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
21028
21504
|
sessionId,
|
|
21029
21505
|
compactRegion({
|
|
21030
21506
|
...common,
|
|
21507
|
+
...pluginRuntime ? { hooks: { manager: pluginRuntime.manager, sessionId } } : {},
|
|
21031
21508
|
messages,
|
|
21032
21509
|
start: at(from, 0),
|
|
21033
21510
|
end: at(until, messages.length)
|
|
@@ -21066,6 +21543,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
|
21066
21543
|
agentIds: allowedAgentIds,
|
|
21067
21544
|
currentTaskStore,
|
|
21068
21545
|
resetTaskStore,
|
|
21546
|
+
...sessionPlugins ? { changeConversation } : {},
|
|
21069
21547
|
jobs: /* @__PURE__ */ __name(() => ownedJobs?.list() ?? [], "jobs"),
|
|
21070
21548
|
...jobRegistry ? {
|
|
21071
21549
|
foreground: {
|
|
@@ -23638,4 +24116,4 @@ export {
|
|
|
23638
24116
|
RESULT_SUMMARY_WHOLE_MAX,
|
|
23639
24117
|
resultSummaryLine
|
|
23640
24118
|
};
|
|
23641
|
-
//# sourceMappingURL=chunk-
|
|
24119
|
+
//# sourceMappingURL=chunk-KNQ7R54U.js.map
|