@namzu/cli 57.1.0 → 58.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 +120 -0
- package/README.md +5 -5
- package/dist/bin.js +1 -1
- package/dist/boot-narrative.d.ts.map +1 -1
- package/dist/browser/control.d.ts +19 -2
- package/dist/browser/control.d.ts.map +1 -1
- package/dist/chunks/{acp-DEH76VXL.js → acp-OZG7H75P.js} +437 -204
- package/dist/chunks/acp-OZG7H75P.js.map +6 -0
- package/dist/chunks/{activity-command-GETWRD67.js → activity-command-ZROH53CS.js} +14 -15
- package/dist/chunks/activity-command-ZROH53CS.js.map +6 -0
- package/dist/chunks/{add-XFYJ6UZE.js → add-DKSV5Y3C.js} +36 -34
- package/dist/chunks/add-DKSV5Y3C.js.map +6 -0
- package/dist/chunks/{agent-FW4VC2AF.js → agent-MSSMOEBP.js} +58 -48
- package/dist/chunks/agent-session-VCB6HX3E.js +89 -0
- package/dist/chunks/{apply-at-exit-OU2UXZCF.js → apply-at-exit-Z34ZOT4A.js} +9 -9
- package/dist/chunks/{apply-at-exit-OU2UXZCF.js.map → apply-at-exit-Z34ZOT4A.js.map} +1 -1
- package/dist/chunks/{archive-PA5MDKXC.js → archive-UMNSALTJ.js} +16 -13
- package/dist/chunks/archive-UMNSALTJ.js.map +6 -0
- package/dist/chunks/auth-2NEDWCS7.js +242 -0
- package/dist/chunks/auth-2NEDWCS7.js.map +6 -0
- package/dist/chunks/{bin-main-RH4NLAPK.js → bin-main-2E6XD7MQ.js} +8 -8
- package/dist/chunks/{binding-ON644UJ3.js → binding-NAPEU62B.js} +3 -3
- package/dist/chunks/browser-M7U6GZOY.js +76 -0
- package/dist/chunks/browser-M7U6GZOY.js.map +6 -0
- package/dist/chunks/{chat-UNZSJZ6U.js → chat-34SAREPI.js} +17 -18
- package/dist/chunks/chat-34SAREPI.js.map +6 -0
- package/dist/chunks/{chunk-S7YXINNY.js → chunk-27ICMJVV.js} +3 -3
- package/dist/chunks/{chunk-NP4BQ7SB.js → chunk-2D5WW5KP.js} +2 -2
- package/dist/chunks/{chunk-ZR3VZG37.js → chunk-2GKFWJ3O.js} +7 -186
- package/dist/chunks/chunk-2GKFWJ3O.js.map +6 -0
- package/dist/chunks/{chunk-D5N3SDNF.js → chunk-2J2Z6S3V.js} +21 -21
- package/dist/chunks/{chunk-Z6LUWKV4.js → chunk-2PRVGX6U.js} +8 -8
- package/dist/chunks/chunk-2QJNPJOC.js +39 -0
- package/dist/chunks/chunk-2QJNPJOC.js.map +6 -0
- package/dist/chunks/{chunk-2ZPB4ZBP.js → chunk-32CPPPKX.js} +3 -3
- package/dist/chunks/{chunk-6MGRBXCW.js → chunk-3SBROSVS.js} +2 -2
- package/dist/chunks/{chunk-LGVEASS7.js → chunk-3ZL6YBMT.js} +6 -6
- package/dist/chunks/chunk-4AWE33MD.js +186 -0
- package/dist/chunks/chunk-4AWE33MD.js.map +6 -0
- package/dist/chunks/{chunk-RYLQH5BB.js → chunk-4RCXY7WO.js} +2 -2
- package/dist/chunks/{chunk-2AEWJA4Y.js → chunk-4WLMPRGO.js} +4 -4
- package/dist/chunks/{chunk-2AEWJA4Y.js.map → chunk-4WLMPRGO.js.map} +1 -1
- package/dist/chunks/{chunk-ICIVSMA3.js → chunk-4YQJ262B.js} +2 -2
- package/dist/chunks/{chunk-DOLGKZC5.js → chunk-52DZTN4C.js} +5 -3
- package/dist/chunks/{chunk-2JFRYOBC.js → chunk-5564PCLT.js} +11 -9
- package/dist/chunks/chunk-5564PCLT.js.map +6 -0
- package/dist/chunks/{chunk-LXK7S2I2.js → chunk-5COLG33E.js} +6 -6
- package/dist/chunks/{chunk-N4YYJGMW.js → chunk-5GI7W4SM.js} +9 -9
- package/dist/chunks/{chunk-M4XYHIA3.js → chunk-5NIQMCRF.js} +2 -2
- package/dist/chunks/{chunk-QTQIHFYH.js → chunk-5WS5Q2KW.js} +3 -3
- package/dist/chunks/{chunk-ORSFP3ZC.js → chunk-655EBPZH.js} +36 -12
- package/dist/chunks/{chunk-ORSFP3ZC.js.map → chunk-655EBPZH.js.map} +1 -1
- package/dist/chunks/{chunk-SKFBM6OJ.js → chunk-66DFXMZG.js} +5 -5
- package/dist/chunks/{chunk-DRKCWJPR.js → chunk-6MMKNZYL.js} +3 -3
- package/dist/chunks/{chunk-SHFB4DZP.js → chunk-6QQVZXUE.js} +2 -2
- package/dist/chunks/{chunk-GVWDNFIP.js → chunk-6RBEIDSC.js} +3 -3
- package/dist/chunks/{chunk-W6UOMYDX.js → chunk-6V4VYVRZ.js} +2 -2
- package/dist/chunks/{chunk-5YTGRS7U.js → chunk-6ZWEKSAV.js} +7 -7
- package/dist/chunks/{chunk-JCH7IWMU.js → chunk-774DAIPO.js} +887 -530
- package/dist/chunks/chunk-774DAIPO.js.map +6 -0
- package/dist/chunks/{chunk-HIHHTWEU.js → chunk-7BSLOLTU.js} +2 -2
- package/dist/chunks/{chunk-3HT7FQNG.js → chunk-7BXJPOEG.js} +4 -4
- package/dist/chunks/{chunk-WCAKWRZU.js → chunk-7DERK6IR.js} +3 -3
- package/dist/chunks/{chunk-4PFTZNS5.js → chunk-7EASTT3H.js} +2 -2
- package/dist/chunks/{chunk-REYJHS2X.js → chunk-7LCU5IKH.js} +20 -20
- package/dist/chunks/{chunk-REYJHS2X.js.map → chunk-7LCU5IKH.js.map} +1 -1
- package/dist/chunks/{chunk-IZYYWNP2.js → chunk-7MYLYFIV.js} +2 -2
- package/dist/chunks/{chunk-WDROVY6V.js → chunk-7NAHUZAR.js} +2 -2
- package/dist/chunks/{chunk-LGPOJEZK.js → chunk-7NQLCFYX.js} +5 -5
- package/dist/chunks/{chunk-BJQ7WFWL.js → chunk-7ROZ2N57.js} +35 -3
- package/dist/chunks/chunk-7ROZ2N57.js.map +6 -0
- package/dist/chunks/{chunk-SIG7WHBU.js → chunk-7YC42EXB.js} +5 -1
- package/dist/chunks/{chunk-SIG7WHBU.js.map → chunk-7YC42EXB.js.map} +1 -1
- package/dist/chunks/{chunk-6TCZN54R.js → chunk-A5O5VTQM.js} +3 -3
- package/dist/chunks/{chunk-2P2PDEZJ.js → chunk-ADLNBLRA.js} +24 -16
- package/dist/chunks/chunk-ADLNBLRA.js.map +6 -0
- package/dist/chunks/{chunk-ABELB4VO.js → chunk-BATWKQWV.js} +2 -2
- package/dist/chunks/{chunk-NOHH27YE.js → chunk-CK47DTW6.js} +5 -5
- package/dist/chunks/{chunk-LWAGZIEA.js → chunk-CSO7BHDJ.js} +2 -2
- package/dist/chunks/{chunk-GPP4OXHP.js → chunk-D42SQGEO.js} +2 -2
- package/dist/chunks/{chunk-J6QCR3SC.js → chunk-DIBXZBOP.js} +7 -7
- package/dist/chunks/{chunk-3ZHOM2L7.js → chunk-DZA7UXA2.js} +15 -63
- package/dist/chunks/chunk-DZA7UXA2.js.map +6 -0
- package/dist/chunks/{chunk-PI5ZZQVH.js → chunk-EFWF72V4.js} +3 -3
- package/dist/chunks/{chunk-TBKSDYS4.js → chunk-ENNAZGUX.js} +3 -3
- package/dist/chunks/{chunk-6E4TDPXP.js → chunk-EOLXS2ZV.js} +5 -5
- package/dist/chunks/{chunk-C7ZKC7HY.js → chunk-ESHAWCBR.js} +34 -8
- package/dist/chunks/chunk-ESHAWCBR.js.map +6 -0
- package/dist/chunks/{chunk-AF2QPFEQ.js → chunk-F6NUMURW.js} +3 -3
- package/dist/chunks/{chunk-R37C3PDS.js → chunk-FJG7JN4W.js} +5 -5
- package/dist/chunks/{chunk-R37C3PDS.js.map → chunk-FJG7JN4W.js.map} +1 -1
- package/dist/chunks/{chunk-OZ55WTNZ.js → chunk-FZPIEOFR.js} +3 -3
- package/dist/chunks/{chunk-LDU7AFNZ.js → chunk-G7UGGWOR.js} +2 -2
- package/dist/chunks/{chunk-5ZPCQ2HL.js → chunk-GLZJBFDO.js} +4 -4
- package/dist/chunks/{chunk-WYBLTKBR.js → chunk-GVLU2YM7.js} +17 -20
- package/dist/chunks/{chunk-WYBLTKBR.js.map → chunk-GVLU2YM7.js.map} +1 -1
- package/dist/chunks/{chunk-PK7M7VIU.js → chunk-HBGRWJU5.js} +13 -13
- package/dist/chunks/{chunk-7T56MZIJ.js → chunk-HGOU2QRN.js} +19 -19
- package/dist/chunks/{chunk-7T56MZIJ.js.map → chunk-HGOU2QRN.js.map} +1 -1
- package/dist/chunks/{chunk-ZDGKFGVE.js → chunk-HICZARAY.js} +2 -2
- package/dist/chunks/{chunk-FSAI4GDZ.js → chunk-HONSYTUC.js} +4 -4
- package/dist/chunks/{chunk-PPCKNQOQ.js → chunk-HRKY4ARS.js} +13 -11
- package/dist/chunks/chunk-HRKY4ARS.js.map +6 -0
- package/dist/chunks/{chunk-GWLUXO4O.js → chunk-I5BNXO63.js} +2 -2
- package/dist/chunks/{chunk-6MQHDX7R.js → chunk-IBENEKM4.js} +21 -5
- package/dist/chunks/chunk-IBENEKM4.js.map +6 -0
- package/dist/chunks/{chunk-BXAUUC2B.js → chunk-IH2JBJ6I.js} +4 -4
- package/dist/chunks/{chunk-Y62WSR5N.js → chunk-J4GPHTRN.js} +8 -8
- package/dist/chunks/{chunk-VV6DYTFU.js → chunk-JFA2XPTW.js} +5 -5
- package/dist/chunks/{chunk-HEFLKPCT.js → chunk-JSY23B3Q.js} +3 -3
- package/dist/chunks/{chunk-MMJ6UURB.js → chunk-JX6O7Y55.js} +3 -3
- package/dist/chunks/{chunk-KUIATFLN.js → chunk-K5VLCRHY.js} +2 -2
- package/dist/chunks/chunk-K7ZQYJJE.js +197 -0
- package/dist/chunks/chunk-K7ZQYJJE.js.map +6 -0
- package/dist/chunks/{chunk-RSO4LBHJ.js → chunk-KCBOIL5Q.js} +7 -7
- package/dist/chunks/{chunk-MY6JV4BT.js → chunk-KIWLK2WZ.js} +7 -9
- package/dist/chunks/chunk-KIWLK2WZ.js.map +6 -0
- package/dist/chunks/chunk-L4LGUBYZ.js +167 -0
- package/dist/chunks/chunk-L4LGUBYZ.js.map +6 -0
- package/dist/chunks/{chunk-6CI5CHBT.js → chunk-L5FCGDB7.js} +1673 -687
- package/dist/chunks/chunk-L5FCGDB7.js.map +6 -0
- package/dist/chunks/{chunk-ETBXU3OK.js → chunk-LM2OGSW5.js} +6 -6
- package/dist/chunks/{chunk-ETBXU3OK.js.map → chunk-LM2OGSW5.js.map} +1 -1
- package/dist/chunks/{chunk-GJ6NI7JL.js → chunk-LRUY5C6H.js} +17 -13
- package/dist/chunks/{chunk-GJ6NI7JL.js.map → chunk-LRUY5C6H.js.map} +1 -1
- package/dist/chunks/{chunk-7BF4FLOP.js → chunk-MJ32RCFZ.js} +4 -4
- package/dist/chunks/{chunk-4LSSJKYK.js → chunk-MJJA277Z.js} +19 -4
- package/dist/chunks/{chunk-4LSSJKYK.js.map → chunk-MJJA277Z.js.map} +1 -1
- package/dist/chunks/{chunk-6IWJ6JC6.js → chunk-MOY2OERC.js} +459 -135
- package/dist/chunks/chunk-MOY2OERC.js.map +6 -0
- package/dist/chunks/{chunk-XF243FQN.js → chunk-MX3U5TBQ.js} +17 -6
- package/dist/chunks/chunk-MX3U5TBQ.js.map +6 -0
- package/dist/chunks/{chunk-ZWP5L7BV.js → chunk-NBJ4OTXL.js} +8 -8
- package/dist/chunks/{chunk-BFYETM56.js → chunk-NFTQDITK.js} +91 -6
- package/dist/chunks/chunk-NFTQDITK.js.map +6 -0
- package/dist/chunks/{chunk-WSQAVWIV.js → chunk-NO3F3QQ3.js} +13 -13
- package/dist/chunks/{chunk-MOMSIAV4.js → chunk-NQYOMRPT.js} +2 -2
- package/dist/chunks/{chunk-IMXTM75Q.js → chunk-O6C4RETO.js} +3 -3
- package/dist/chunks/{chunk-PYYDU2BC.js → chunk-O6EDUJ77.js} +6 -6
- package/dist/chunks/{chunk-UILPXAKQ.js → chunk-OD2PMTXS.js} +3 -3
- package/dist/chunks/{chunk-DROVNI2Y.js → chunk-OGEOUETU.js} +3 -3
- package/dist/chunks/{chunk-3EH4PF5T.js → chunk-OY3UN3KD.js} +145 -3
- package/dist/chunks/{chunk-3EH4PF5T.js.map → chunk-OY3UN3KD.js.map} +2 -2
- package/dist/chunks/chunk-P6RYPNSD.js +435 -0
- package/dist/chunks/chunk-P6RYPNSD.js.map +6 -0
- package/dist/chunks/{chunk-77AYLILT.js → chunk-PYTTGYZS.js} +3 -3
- package/dist/chunks/chunk-RHJOIAFS.js +201 -0
- package/dist/chunks/chunk-RHJOIAFS.js.map +6 -0
- package/dist/chunks/{chunk-PJF46DI6.js → chunk-RR7FS6SQ.js} +3 -3
- package/dist/chunks/{chunk-233CEYFX.js → chunk-RTMX7IDM.js} +2 -2
- package/dist/chunks/{chunk-4E2REC5O.js → chunk-S4OEUN6F.js} +2 -2
- package/dist/chunks/{chunk-763RT6Z5.js → chunk-SEVORRUA.js} +2 -2
- package/dist/chunks/{chunk-JDWCVWIQ.js → chunk-TAIC3PC2.js} +3 -3
- package/dist/chunks/{chunk-SM6UI33D.js → chunk-TGLXWW5B.js} +3 -3
- package/dist/chunks/{chunk-CKYGPQVJ.js → chunk-TJAUF5NX.js} +3 -3
- package/dist/chunks/{chunk-AZXIYYVX.js → chunk-TL535OCL.js} +29 -13
- package/dist/chunks/chunk-TL535OCL.js.map +6 -0
- package/dist/chunks/{chunk-DT6PTS6H.js → chunk-TSU4F6DF.js} +2 -2
- package/dist/chunks/{chunk-6BTNPDXR.js → chunk-TXMWKHYW.js} +2 -2
- package/dist/chunks/{chunk-4DNEDLBT.js → chunk-U4DBETHR.js} +501 -766
- package/dist/chunks/chunk-U4DBETHR.js.map +6 -0
- package/dist/chunks/{chunk-HENM67TJ.js → chunk-UBGDYBSQ.js} +2 -2
- package/dist/chunks/{chunk-FEP2R3XI.js → chunk-ULFR2FWA.js} +2 -2
- package/dist/chunks/{chunk-DGV6YSAW.js → chunk-UMPJ4VXN.js} +4 -4
- package/dist/chunks/{chunk-M5LA652U.js → chunk-URZPVSHV.js} +4 -4
- package/dist/chunks/{chunk-5C6XCI24.js → chunk-UXLQNJDR.js} +4 -4
- package/dist/chunks/{chunk-3Z5OXTDI.js → chunk-WEPINZBQ.js} +3 -3
- package/dist/chunks/{chunk-DMHE6X3Y.js → chunk-XQZMTH3S.js} +12 -40
- package/dist/chunks/chunk-XQZMTH3S.js.map +6 -0
- package/dist/chunks/{chunk-NV7RJBWA.js → chunk-XWP64X6U.js} +6 -6
- package/dist/chunks/{chunk-RP5HOVOW.js → chunk-Y3NC6RIL.js} +4 -4
- package/dist/chunks/{chunk-6TF24TFD.js → chunk-YEWJVAM4.js} +57 -9
- package/dist/chunks/chunk-YEWJVAM4.js.map +6 -0
- package/dist/chunks/{chunk-FNEQ77RJ.js → chunk-ZDMI3JSL.js} +26 -4
- package/dist/chunks/{chunk-FNEQ77RJ.js.map → chunk-ZDMI3JSL.js.map} +1 -1
- package/dist/chunks/{cli-runtime-66YC7XKZ.js → cli-runtime-BLOWAO6Q.js} +34 -19
- package/dist/chunks/cli-runtime-BLOWAO6Q.js.map +6 -0
- package/dist/chunks/{commands-R6WIMNZG.js → commands-VWBRELWZ.js} +6 -6
- package/dist/chunks/{computer-FQRWTC6M.js → computer-6P3GAOV2.js} +15 -7
- package/dist/chunks/computer-6P3GAOV2.js.map +6 -0
- package/dist/chunks/{config-BWAJ7XDA.js → config-77NN5LSS.js} +20 -17
- package/dist/chunks/config-77NN5LSS.js.map +6 -0
- package/dist/chunks/{cost-MVUQ3UWP.js → cost-IVLAFD5T.js} +5 -5
- package/dist/chunks/{crash-report-ASOVDFQT.js → crash-report-CA3Y7LA6.js} +6 -6
- package/dist/chunks/{dist-UTQTSM32.js → dist-3SGAVJFN.js} +2 -2
- package/dist/chunks/{dist-NUCTP67R.js → dist-5G52QS75.js} +193 -33
- package/dist/chunks/dist-5G52QS75.js.map +6 -0
- package/dist/chunks/{dist-6BE2BTVP.js → dist-7BSYEFE5.js} +2 -2
- package/dist/chunks/{dist-ZPPSUKEG.js → dist-AM6FWCIJ.js} +10 -2
- package/dist/chunks/{dist-IYSARJ7B.js → dist-ISRJEZRF.js} +2 -2
- package/dist/chunks/{dist-ERFNYYTR.js → dist-PBFZXU4L.js} +2 -2
- package/dist/chunks/{dist-DOHBDUFC.js → dist-RDXEBTCL.js} +2 -2
- package/dist/chunks/{dist-SQYPEQ4A.js → dist-V43PPTPF.js} +2 -2
- package/dist/chunks/{doctor-J2BRJDVI.js → doctor-FGOCO7UR.js} +39 -39
- package/dist/chunks/{drain-TGBUG6MO.js → drain-A3DLR5A4.js} +18 -18
- package/dist/chunks/{entry-7QM6GODJ.js → entry-4LHTI3VQ.js} +6 -6
- package/dist/chunks/{eval-274GGZ3M.js → eval-IYWGGPWF.js} +12 -12
- package/dist/chunks/{eval-274GGZ3M.js.map → eval-IYWGGPWF.js.map} +1 -1
- package/dist/chunks/{exec-QOH5FQCM.js → exec-HWK44ZYI.js} +104 -60
- package/dist/chunks/exec-HWK44ZYI.js.map +6 -0
- package/dist/chunks/{extension-Y52E4FZR.js → extension-BP7Q3PFK.js} +5 -5
- package/dist/chunks/{github-X352BD5R.js → github-IF3JVVJF.js} +5 -1
- package/dist/chunks/github-IF3JVVJF.js.map +6 -0
- package/dist/chunks/{home-OGOBLYWY.js → home-GR6YDAAE.js} +3 -3
- package/dist/chunks/{hooks-C6WM34FA.js → hooks-KSSNBDF2.js} +22 -22
- package/dist/chunks/{hooks-report-FCLN3ERK.js → hooks-report-H4JAHJXE.js} +18 -18
- package/dist/chunks/{host-FUPSAICG.js → host-ISKJDJ7B.js} +10 -10
- package/dist/chunks/host-queries-CUG75GYD.js +37 -0
- package/dist/chunks/{installed-list-3Z2UYHZL.js → installed-list-GPVOP4E3.js} +4 -4
- package/dist/chunks/{learn-EXNQYLI3.js → learn-AFNJQGOU.js} +18 -18
- package/dist/chunks/{learn-builtin-C4ZAVNHA.js → learn-builtin-LUD6XO6W.js} +21 -21
- package/dist/chunks/{lifecycle-4ZRBSEP2.js → lifecycle-TCRMEVJP.js} +31 -32
- package/dist/chunks/{list-2QV773EI.js → list-4OJNF5N2.js} +16 -16
- package/dist/chunks/{live-33QEKVAM.js → live-LJ76XHPK.js} +38 -38
- package/dist/chunks/{load-SYMNQIDR.js → load-2ERMTCD4.js} +12 -10
- package/dist/chunks/{logs-IW7PYTI2.js → logs-DV6GC7PT.js} +4 -4
- package/dist/chunks/{mcp-HP3YRE3U.js → mcp-5VV24FGZ.js} +449 -61
- package/dist/chunks/mcp-5VV24FGZ.js.map +6 -0
- package/dist/chunks/mcp-serve-TT4Q7V55.js +311 -0
- package/dist/chunks/mcp-serve-TT4Q7V55.js.map +6 -0
- package/dist/chunks/{message-command-IFQSBBI5.js → message-command-6RHBI3R4.js} +56 -54
- package/dist/chunks/message-command-6RHBI3R4.js.map +6 -0
- package/dist/chunks/{open-3GVSPGUF.js → open-3VUS3XWX.js} +7 -7
- package/dist/chunks/{operator-tools-HT7UNWNK.js → operator-tools-BZ5X5ZDE.js} +15 -16
- package/dist/chunks/operator-tools-BZ5X5ZDE.js.map +6 -0
- package/dist/chunks/{output-schema-MKFI5PWR.js → output-schema-2GHHC5ZZ.js} +3 -3
- package/dist/chunks/{pal-6KB3D324.js → pal-TT7X5JF3.js} +150 -15
- package/dist/chunks/pal-TT7X5JF3.js.map +6 -0
- package/dist/chunks/{peers-4M45XTZO.js → peers-SJFCJTA6.js} +149 -19
- package/dist/chunks/peers-SJFCJTA6.js.map +6 -0
- package/dist/chunks/{peers-CGTVWK6B.js → peers-SLFOET3O.js} +7 -7
- package/dist/chunks/{plugin-FIVP6MGJ.js → plugin-I35EQ4CC.js} +22 -18
- package/dist/chunks/plugin-I35EQ4CC.js.map +6 -0
- package/dist/chunks/{providers-6634CTX7.js → providers-MX47EUPL.js} +22 -19
- package/dist/chunks/providers-MX47EUPL.js.map +6 -0
- package/dist/chunks/{providers-Z3KLRJDW.js → providers-SOFGNZ4F.js} +10 -10
- package/dist/chunks/{pty-GMA24QAT.js → pty-3T7AE7ZA.js} +3 -3
- package/dist/chunks/resume-5JACRBQO.js +25 -0
- package/dist/chunks/{resume-command-MXUIVG6T.js → resume-command-H4FOREZO.js} +4 -4
- package/dist/chunks/{running-HYMQGZMF.js → running-NONPWC5C.js} +4 -4
- package/dist/chunks/{schedule-54POTO5A.js → schedule-BWR4NKGX.js} +245 -10
- package/dist/chunks/schedule-BWR4NKGX.js.map +6 -0
- package/dist/chunks/{send-IFZ7XPTF.js → send-H27WTBLZ.js} +18 -18
- package/dist/chunks/send-person-NNGL2U4H.js +31 -0
- package/dist/chunks/{serve-CZDHGDZL.js → serve-4VIDXLEB.js} +2 -2
- package/dist/chunks/{service-Y5N7WIHV.js → service-NVOIN2MV.js} +32 -33
- package/dist/chunks/service-NVOIN2MV.js.map +6 -0
- package/dist/chunks/{setting-cli-CJMZHIMQ.js → setting-cli-ETVPDSRA.js} +13 -13
- package/dist/chunks/{skills-VSVXQTY3.js → skills-XAONTP56.js} +28 -25
- package/dist/chunks/skills-XAONTP56.js.map +6 -0
- package/dist/chunks/{start-check-MZGEYSQD.js → start-check-A5FG7224.js} +2 -2
- package/dist/chunks/{startup-failure-QS7O3M62.js → startup-failure-6MZNIJXI.js} +2 -2
- package/dist/chunks/{state-IRA33PLY.js → state-MVYWWBAA.js} +556 -26
- package/dist/chunks/state-MVYWWBAA.js.map +6 -0
- package/dist/chunks/{store-N4CURUP2.js → store-4PPSKMYT.js} +3 -3
- package/dist/chunks/{store-5QOUJL3S.js → store-5K5HIPUT.js} +12 -13
- package/dist/chunks/{store-LIG46NWV.js → store-6WG6CRWK.js} +4 -4
- package/dist/chunks/{store-VRWL26C2.js → store-UPAOLS5B.js} +8 -8
- package/dist/chunks/{tui-KFWUIY7N.js → tui-MRMMX2TV.js} +99 -87
- package/dist/chunks/tui-MRMMX2TV.js.map +6 -0
- package/dist/chunks/{upgrade-BIHZ3JJV.js → update-RMHLR4LI.js} +35 -35
- package/dist/chunks/{upgrade-BIHZ3JJV.js.map → update-RMHLR4LI.js.map} +2 -2
- package/dist/chunks/{watch-OUI2U5YK.js → watch-3QQJ4XHX.js} +93 -89
- package/dist/chunks/watch-3QQJ4XHX.js.map +6 -0
- package/dist/chunks/{workspaces-CB5DV4KR.js → workspaces-HEA2VNIH.js} +15 -20
- package/dist/chunks/workspaces-HEA2VNIH.js.map +6 -0
- package/dist/chunks/{worktree-PNG7MZV3.js → worktree-NAVT42R4.js} +26 -23
- package/dist/chunks/worktree-NAVT42R4.js.map +6 -0
- package/dist/cli-runtime.d.ts +3 -1
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli.d.ts +15 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp-browser-pane.d.ts +81 -0
- package/dist/commands/acp-browser-pane.d.ts.map +1 -0
- package/dist/commands/acp-provider-retry.d.ts +2 -1
- package/dist/commands/acp-provider-retry.d.ts.map +1 -1
- package/dist/commands/acp.d.ts +18 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/action-help.d.ts +37 -0
- package/dist/commands/action-help.d.ts.map +1 -0
- package/dist/commands/actions/auth.d.ts +3 -0
- package/dist/commands/actions/auth.d.ts.map +1 -0
- package/dist/commands/actions/browser.d.ts +3 -0
- package/dist/commands/actions/browser.d.ts.map +1 -0
- package/dist/commands/actions/extension.d.ts +3 -0
- package/dist/commands/actions/extension.d.ts.map +1 -0
- package/dist/commands/actions/mcp.d.ts +3 -0
- package/dist/commands/actions/mcp.d.ts.map +1 -0
- package/dist/commands/actions/pal.d.ts +3 -0
- package/dist/commands/actions/pal.d.ts.map +1 -0
- package/dist/commands/actions/peers.d.ts +3 -0
- package/dist/commands/actions/peers.d.ts.map +1 -0
- package/dist/commands/actions/schedule.d.ts +3 -0
- package/dist/commands/actions/schedule.d.ts.map +1 -0
- package/dist/commands/actions/small.d.ts +11 -0
- package/dist/commands/actions/small.d.ts.map +1 -0
- package/dist/commands/archive.d.ts.map +1 -1
- package/dist/commands/auth-status.d.ts +24 -0
- package/dist/commands/auth-status.d.ts.map +1 -0
- package/dist/commands/auth.d.ts +9 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/browser.d.ts.map +1 -1
- package/dist/commands/computer.d.ts.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +3 -3
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/exec-flags.d.ts +17 -3
- package/dist/commands/exec-flags.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/extension.d.ts.map +1 -1
- package/dist/commands/github.d.ts.map +1 -1
- package/dist/commands/launch-extras.d.ts +48 -0
- package/dist/commands/launch-extras.d.ts.map +1 -0
- package/dist/commands/lazy.d.ts +3 -3
- package/dist/commands/lazy.d.ts.map +1 -1
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/manifest.d.ts +3 -4
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/mcp-serve.d.ts +16 -0
- package/dist/commands/mcp-serve.d.ts.map +1 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/pal.d.ts.map +1 -1
- package/dist/commands/peers.d.ts.map +1 -1
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/providers.d.ts.map +1 -1
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/run-flags.d.ts +10 -2
- package/dist/commands/run-flags.d.ts.map +1 -1
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/state.d.ts +11 -0
- package/dist/commands/state.d.ts.map +1 -1
- package/dist/commands/types.d.ts +9 -2
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/commands/{upgrade-progress.d.ts → update-progress.d.ts} +3 -3
- package/dist/commands/update-progress.d.ts.map +1 -0
- package/dist/commands/{upgrade.d.ts → update.d.ts} +9 -9
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/workspaces.d.ts +1 -1
- package/dist/commands/workspaces.d.ts.map +1 -1
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/computer/run.d.ts.map +1 -1
- package/dist/config/debug.d.ts.map +1 -1
- package/dist/config/hooks-report.d.ts +3 -1
- package/dist/config/hooks-report.d.ts.map +1 -1
- package/dist/config/load.d.ts +37 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +2 -2
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/context/environment.d.ts +6 -0
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/context/file-placement.d.ts.map +1 -1
- package/dist/context/project-tracker.d.ts +3 -0
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/system-prompt.d.ts +6 -0
- package/dist/context/system-prompt.d.ts.map +1 -1
- package/dist/index.js +39 -39
- package/dist/integrations/auto-update/apply.d.ts +1 -1
- package/dist/integrations/auto-update/apply.d.ts.map +1 -1
- package/dist/integrations/auto-update/policy.d.ts +1 -1
- package/dist/integrations/auto-update/policy.d.ts.map +1 -1
- package/dist/integrations/auto-update/state.d.ts +1 -1
- package/dist/integrations/auto-update/state.d.ts.map +1 -1
- package/dist/integrations/mcp/project-file.d.ts +16 -0
- package/dist/integrations/mcp/project-file.d.ts.map +1 -0
- package/dist/integrations/mcp/serve.d.ts +55 -0
- package/dist/integrations/mcp/serve.d.ts.map +1 -0
- package/dist/integrations/mcp/servers.d.ts +6 -0
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/mcp/shared-file.d.ts +2 -1
- package/dist/integrations/mcp/shared-file.d.ts.map +1 -1
- package/dist/integrations/network/controller.d.ts.map +1 -1
- package/dist/integrations/network/format.d.ts.map +1 -1
- package/dist/integrations/network/runtime.d.ts +7 -0
- package/dist/integrations/network/runtime.d.ts.map +1 -1
- package/dist/integrations/network/types.d.ts +2 -0
- package/dist/integrations/network/types.d.ts.map +1 -1
- package/dist/integrations/npm-global.d.ts +2 -2
- package/dist/integrations/npm-global.d.ts.map +1 -1
- package/dist/integrations/outstanding/status.d.ts +4 -0
- package/dist/integrations/outstanding/status.d.ts.map +1 -1
- package/dist/integrations/providers/connections.d.ts +1 -1
- package/dist/integrations/providers/connections.d.ts.map +1 -1
- package/dist/integrations/providers/pending-login.d.ts +1 -1
- package/dist/integrations/providers/subscription-login.d.ts +1 -1
- package/dist/integrations/sessions/session-watch.d.ts +8 -1
- package/dist/integrations/sessions/session-watch.d.ts.map +1 -1
- package/dist/integrations/state/purge.d.ts +66 -0
- package/dist/integrations/state/purge.d.ts.map +1 -0
- package/dist/integrations/subagents/activity.d.ts +1 -1
- package/dist/integrations/subagents/agent-names.d.ts +1 -1
- package/dist/integrations/subagents/row-labels.d.ts +18 -0
- package/dist/integrations/subagents/row-labels.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +8 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/stop-guidance.d.ts +14 -0
- package/dist/integrations/subagents/stop-guidance.d.ts.map +1 -0
- package/dist/integrations/web/open-url.d.ts +1 -1
- package/dist/integrations/web/search.d.ts +1 -1
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts +9 -0
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +3 -2
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/orphans.d.ts +17 -0
- package/dist/integrations/workflows/orphans.d.ts.map +1 -1
- package/dist/integrations/workflows/owners.d.ts +17 -0
- package/dist/integrations/workflows/owners.d.ts.map +1 -0
- package/dist/integrations/workflows/registry.d.ts +17 -2
- package/dist/integrations/workflows/registry.d.ts.map +1 -1
- package/dist/logging.d.ts +10 -1
- package/dist/logging.d.ts.map +1 -1
- package/dist/memory/screen-archive.d.ts +2 -0
- package/dist/memory/screen-archive.d.ts.map +1 -1
- package/dist/permissions/auto-classifier.d.ts.map +1 -1
- package/dist/permissions/launch.d.ts +1 -1
- package/dist/permissions/mode.d.ts +2 -2
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/permissions/rules.d.ts +2 -0
- package/dist/permissions/rules.d.ts.map +1 -1
- package/dist/permissions/tool-flags.d.ts +5 -1
- package/dist/permissions/tool-flags.d.ts.map +1 -1
- package/dist/reminders/changed-files.d.ts.map +1 -1
- package/dist/reminders/frame.d.ts +1 -1
- package/dist/reminders/frame.d.ts.map +1 -1
- package/dist/reminders/hypermode.d.ts.map +1 -1
- package/dist/reminders/index.d.ts +3 -0
- package/dist/reminders/index.d.ts.map +1 -1
- package/dist/reminders/memory-nudge.d.ts +20 -0
- package/dist/reminders/memory-nudge.d.ts.map +1 -0
- package/dist/schedule/commands/add.d.ts.map +1 -1
- package/dist/schedule/fire/fire.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +9 -21
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +1 -7
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts +2 -0
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +8 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/agent-calls.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +54 -6
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/context-grid.d.ts +5 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts +3 -2
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
- package/dist/tui/keypad-keys.d.ts +1 -1
- package/dist/tui/keypad-keys.d.ts.map +1 -1
- package/dist/tui/launch-settings.d.ts +2 -0
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/login-prompt.d.ts +1 -1
- package/dist/tui/notice-display.d.ts +8 -0
- package/dist/tui/notice-display.d.ts.map +1 -0
- package/dist/tui/outcome-line.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/stopped-turn-line.d.ts +22 -0
- package/dist/tui/stopped-turn-line.d.ts.map +1 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-presentation.d.ts +2 -0
- package/dist/tui/tool-presentation.d.ts.map +1 -1
- package/dist/tui/types.d.ts +7 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/untrusted-display.d.ts +12 -0
- package/dist/tui/untrusted-display.d.ts.map +1 -0
- package/dist/tui/web-activity.d.ts +4 -2
- package/dist/tui/web-activity.d.ts.map +1 -1
- package/dist/usage-error.d.ts.map +1 -1
- package/package.json +7 -7
- package/skills/document/SKILL.md +22 -11
- package/skills/verify-change/SKILL.md +2 -1
- package/dist/chunks/acp-DEH76VXL.js.map +0 -6
- package/dist/chunks/activity-command-GETWRD67.js.map +0 -6
- package/dist/chunks/add-XFYJ6UZE.js.map +0 -6
- package/dist/chunks/agent-session-2YJCVWPX.js +0 -87
- package/dist/chunks/archive-PA5MDKXC.js.map +0 -6
- package/dist/chunks/browser-ZMNLA73K.js +0 -31
- package/dist/chunks/browser-ZMNLA73K.js.map +0 -6
- package/dist/chunks/chat-UNZSJZ6U.js.map +0 -6
- package/dist/chunks/chunk-2JFRYOBC.js.map +0 -6
- package/dist/chunks/chunk-2P2PDEZJ.js.map +0 -6
- package/dist/chunks/chunk-3ZHOM2L7.js.map +0 -6
- package/dist/chunks/chunk-4DNEDLBT.js.map +0 -6
- package/dist/chunks/chunk-6CI5CHBT.js.map +0 -6
- package/dist/chunks/chunk-6IWJ6JC6.js.map +0 -6
- package/dist/chunks/chunk-6MQHDX7R.js.map +0 -6
- package/dist/chunks/chunk-6TF24TFD.js.map +0 -6
- package/dist/chunks/chunk-AZXIYYVX.js.map +0 -6
- package/dist/chunks/chunk-BFYETM56.js.map +0 -6
- package/dist/chunks/chunk-BJQ7WFWL.js.map +0 -6
- package/dist/chunks/chunk-C7ZKC7HY.js.map +0 -6
- package/dist/chunks/chunk-CPDGXVVE.js +0 -94
- package/dist/chunks/chunk-CPDGXVVE.js.map +0 -6
- package/dist/chunks/chunk-DMHE6X3Y.js.map +0 -6
- package/dist/chunks/chunk-JCH7IWMU.js.map +0 -6
- package/dist/chunks/chunk-MY6JV4BT.js.map +0 -6
- package/dist/chunks/chunk-PPCKNQOQ.js.map +0 -6
- package/dist/chunks/chunk-XF243FQN.js.map +0 -6
- package/dist/chunks/chunk-ZR3VZG37.js.map +0 -6
- package/dist/chunks/cli-runtime-66YC7XKZ.js.map +0 -6
- package/dist/chunks/computer-FQRWTC6M.js.map +0 -6
- package/dist/chunks/config-BWAJ7XDA.js.map +0 -6
- package/dist/chunks/dist-NUCTP67R.js.map +0 -6
- package/dist/chunks/exec-QOH5FQCM.js.map +0 -6
- package/dist/chunks/github-X352BD5R.js.map +0 -6
- package/dist/chunks/host-queries-YTND6J2W.js +0 -38
- package/dist/chunks/login-KN5KQXOD.js +0 -38
- package/dist/chunks/mcp-HP3YRE3U.js.map +0 -6
- package/dist/chunks/message-command-IFQSBBI5.js.map +0 -6
- package/dist/chunks/operator-tools-HT7UNWNK.js.map +0 -6
- package/dist/chunks/pal-6KB3D324.js.map +0 -6
- package/dist/chunks/peers-4M45XTZO.js.map +0 -6
- package/dist/chunks/plugin-FIVP6MGJ.js.map +0 -6
- package/dist/chunks/providers-6634CTX7.js.map +0 -6
- package/dist/chunks/resume-OEUL3DML.js +0 -26
- package/dist/chunks/schedule-54POTO5A.js.map +0 -6
- package/dist/chunks/send-person-YV7Y3N7V.js +0 -31
- package/dist/chunks/service-Y5N7WIHV.js.map +0 -6
- package/dist/chunks/skills-VSVXQTY3.js.map +0 -6
- package/dist/chunks/state-IRA33PLY.js.map +0 -6
- package/dist/chunks/store-VRWL26C2.js.map +0 -6
- package/dist/chunks/tui-KFWUIY7N.js.map +0 -6
- package/dist/chunks/watch-OUI2U5YK.js.map +0 -6
- package/dist/chunks/workspaces-CB5DV4KR.js.map +0 -6
- package/dist/chunks/worktree-PNG7MZV3.js.map +0 -6
- package/dist/commands/upgrade-progress.d.ts.map +0 -1
- package/dist/commands/upgrade.d.ts.map +0 -1
- /package/dist/chunks/{agent-FW4VC2AF.js.map → agent-MSSMOEBP.js.map} +0 -0
- /package/dist/chunks/{agent-session-2YJCVWPX.js.map → agent-session-VCB6HX3E.js.map} +0 -0
- /package/dist/chunks/{bin-main-RH4NLAPK.js.map → bin-main-2E6XD7MQ.js.map} +0 -0
- /package/dist/chunks/{binding-ON644UJ3.js.map → binding-NAPEU62B.js.map} +0 -0
- /package/dist/chunks/{chunk-S7YXINNY.js.map → chunk-27ICMJVV.js.map} +0 -0
- /package/dist/chunks/{chunk-NP4BQ7SB.js.map → chunk-2D5WW5KP.js.map} +0 -0
- /package/dist/chunks/{chunk-D5N3SDNF.js.map → chunk-2J2Z6S3V.js.map} +0 -0
- /package/dist/chunks/{chunk-Z6LUWKV4.js.map → chunk-2PRVGX6U.js.map} +0 -0
- /package/dist/chunks/{chunk-2ZPB4ZBP.js.map → chunk-32CPPPKX.js.map} +0 -0
- /package/dist/chunks/{chunk-6MGRBXCW.js.map → chunk-3SBROSVS.js.map} +0 -0
- /package/dist/chunks/{chunk-LGVEASS7.js.map → chunk-3ZL6YBMT.js.map} +0 -0
- /package/dist/chunks/{chunk-RYLQH5BB.js.map → chunk-4RCXY7WO.js.map} +0 -0
- /package/dist/chunks/{chunk-ICIVSMA3.js.map → chunk-4YQJ262B.js.map} +0 -0
- /package/dist/chunks/{chunk-DOLGKZC5.js.map → chunk-52DZTN4C.js.map} +0 -0
- /package/dist/chunks/{chunk-LXK7S2I2.js.map → chunk-5COLG33E.js.map} +0 -0
- /package/dist/chunks/{chunk-N4YYJGMW.js.map → chunk-5GI7W4SM.js.map} +0 -0
- /package/dist/chunks/{chunk-M4XYHIA3.js.map → chunk-5NIQMCRF.js.map} +0 -0
- /package/dist/chunks/{chunk-QTQIHFYH.js.map → chunk-5WS5Q2KW.js.map} +0 -0
- /package/dist/chunks/{chunk-SKFBM6OJ.js.map → chunk-66DFXMZG.js.map} +0 -0
- /package/dist/chunks/{chunk-DRKCWJPR.js.map → chunk-6MMKNZYL.js.map} +0 -0
- /package/dist/chunks/{chunk-SHFB4DZP.js.map → chunk-6QQVZXUE.js.map} +0 -0
- /package/dist/chunks/{chunk-GVWDNFIP.js.map → chunk-6RBEIDSC.js.map} +0 -0
- /package/dist/chunks/{chunk-W6UOMYDX.js.map → chunk-6V4VYVRZ.js.map} +0 -0
- /package/dist/chunks/{chunk-5YTGRS7U.js.map → chunk-6ZWEKSAV.js.map} +0 -0
- /package/dist/chunks/{chunk-HIHHTWEU.js.map → chunk-7BSLOLTU.js.map} +0 -0
- /package/dist/chunks/{chunk-3HT7FQNG.js.map → chunk-7BXJPOEG.js.map} +0 -0
- /package/dist/chunks/{chunk-WCAKWRZU.js.map → chunk-7DERK6IR.js.map} +0 -0
- /package/dist/chunks/{chunk-4PFTZNS5.js.map → chunk-7EASTT3H.js.map} +0 -0
- /package/dist/chunks/{chunk-IZYYWNP2.js.map → chunk-7MYLYFIV.js.map} +0 -0
- /package/dist/chunks/{chunk-WDROVY6V.js.map → chunk-7NAHUZAR.js.map} +0 -0
- /package/dist/chunks/{chunk-LGPOJEZK.js.map → chunk-7NQLCFYX.js.map} +0 -0
- /package/dist/chunks/{chunk-6TCZN54R.js.map → chunk-A5O5VTQM.js.map} +0 -0
- /package/dist/chunks/{chunk-ABELB4VO.js.map → chunk-BATWKQWV.js.map} +0 -0
- /package/dist/chunks/{chunk-NOHH27YE.js.map → chunk-CK47DTW6.js.map} +0 -0
- /package/dist/chunks/{chunk-LWAGZIEA.js.map → chunk-CSO7BHDJ.js.map} +0 -0
- /package/dist/chunks/{chunk-GPP4OXHP.js.map → chunk-D42SQGEO.js.map} +0 -0
- /package/dist/chunks/{chunk-J6QCR3SC.js.map → chunk-DIBXZBOP.js.map} +0 -0
- /package/dist/chunks/{chunk-PI5ZZQVH.js.map → chunk-EFWF72V4.js.map} +0 -0
- /package/dist/chunks/{chunk-TBKSDYS4.js.map → chunk-ENNAZGUX.js.map} +0 -0
- /package/dist/chunks/{chunk-6E4TDPXP.js.map → chunk-EOLXS2ZV.js.map} +0 -0
- /package/dist/chunks/{chunk-AF2QPFEQ.js.map → chunk-F6NUMURW.js.map} +0 -0
- /package/dist/chunks/{chunk-OZ55WTNZ.js.map → chunk-FZPIEOFR.js.map} +0 -0
- /package/dist/chunks/{chunk-LDU7AFNZ.js.map → chunk-G7UGGWOR.js.map} +0 -0
- /package/dist/chunks/{chunk-5ZPCQ2HL.js.map → chunk-GLZJBFDO.js.map} +0 -0
- /package/dist/chunks/{chunk-PK7M7VIU.js.map → chunk-HBGRWJU5.js.map} +0 -0
- /package/dist/chunks/{chunk-ZDGKFGVE.js.map → chunk-HICZARAY.js.map} +0 -0
- /package/dist/chunks/{chunk-FSAI4GDZ.js.map → chunk-HONSYTUC.js.map} +0 -0
- /package/dist/chunks/{chunk-GWLUXO4O.js.map → chunk-I5BNXO63.js.map} +0 -0
- /package/dist/chunks/{chunk-BXAUUC2B.js.map → chunk-IH2JBJ6I.js.map} +0 -0
- /package/dist/chunks/{chunk-Y62WSR5N.js.map → chunk-J4GPHTRN.js.map} +0 -0
- /package/dist/chunks/{chunk-VV6DYTFU.js.map → chunk-JFA2XPTW.js.map} +0 -0
- /package/dist/chunks/{chunk-HEFLKPCT.js.map → chunk-JSY23B3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-MMJ6UURB.js.map → chunk-JX6O7Y55.js.map} +0 -0
- /package/dist/chunks/{chunk-KUIATFLN.js.map → chunk-K5VLCRHY.js.map} +0 -0
- /package/dist/chunks/{chunk-RSO4LBHJ.js.map → chunk-KCBOIL5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-7BF4FLOP.js.map → chunk-MJ32RCFZ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZWP5L7BV.js.map → chunk-NBJ4OTXL.js.map} +0 -0
- /package/dist/chunks/{chunk-WSQAVWIV.js.map → chunk-NO3F3QQ3.js.map} +0 -0
- /package/dist/chunks/{chunk-MOMSIAV4.js.map → chunk-NQYOMRPT.js.map} +0 -0
- /package/dist/chunks/{chunk-IMXTM75Q.js.map → chunk-O6C4RETO.js.map} +0 -0
- /package/dist/chunks/{chunk-PYYDU2BC.js.map → chunk-O6EDUJ77.js.map} +0 -0
- /package/dist/chunks/{chunk-UILPXAKQ.js.map → chunk-OD2PMTXS.js.map} +0 -0
- /package/dist/chunks/{chunk-DROVNI2Y.js.map → chunk-OGEOUETU.js.map} +0 -0
- /package/dist/chunks/{chunk-77AYLILT.js.map → chunk-PYTTGYZS.js.map} +0 -0
- /package/dist/chunks/{chunk-PJF46DI6.js.map → chunk-RR7FS6SQ.js.map} +0 -0
- /package/dist/chunks/{chunk-233CEYFX.js.map → chunk-RTMX7IDM.js.map} +0 -0
- /package/dist/chunks/{chunk-4E2REC5O.js.map → chunk-S4OEUN6F.js.map} +0 -0
- /package/dist/chunks/{chunk-763RT6Z5.js.map → chunk-SEVORRUA.js.map} +0 -0
- /package/dist/chunks/{chunk-JDWCVWIQ.js.map → chunk-TAIC3PC2.js.map} +0 -0
- /package/dist/chunks/{chunk-SM6UI33D.js.map → chunk-TGLXWW5B.js.map} +0 -0
- /package/dist/chunks/{chunk-CKYGPQVJ.js.map → chunk-TJAUF5NX.js.map} +0 -0
- /package/dist/chunks/{chunk-DT6PTS6H.js.map → chunk-TSU4F6DF.js.map} +0 -0
- /package/dist/chunks/{chunk-6BTNPDXR.js.map → chunk-TXMWKHYW.js.map} +0 -0
- /package/dist/chunks/{chunk-HENM67TJ.js.map → chunk-UBGDYBSQ.js.map} +0 -0
- /package/dist/chunks/{chunk-FEP2R3XI.js.map → chunk-ULFR2FWA.js.map} +0 -0
- /package/dist/chunks/{chunk-DGV6YSAW.js.map → chunk-UMPJ4VXN.js.map} +0 -0
- /package/dist/chunks/{chunk-M5LA652U.js.map → chunk-URZPVSHV.js.map} +0 -0
- /package/dist/chunks/{chunk-5C6XCI24.js.map → chunk-UXLQNJDR.js.map} +0 -0
- /package/dist/chunks/{chunk-3Z5OXTDI.js.map → chunk-WEPINZBQ.js.map} +0 -0
- /package/dist/chunks/{chunk-NV7RJBWA.js.map → chunk-XWP64X6U.js.map} +0 -0
- /package/dist/chunks/{chunk-RP5HOVOW.js.map → chunk-Y3NC6RIL.js.map} +0 -0
- /package/dist/chunks/{commands-R6WIMNZG.js.map → commands-VWBRELWZ.js.map} +0 -0
- /package/dist/chunks/{cost-MVUQ3UWP.js.map → cost-IVLAFD5T.js.map} +0 -0
- /package/dist/chunks/{crash-report-ASOVDFQT.js.map → crash-report-CA3Y7LA6.js.map} +0 -0
- /package/dist/chunks/{dist-UTQTSM32.js.map → dist-3SGAVJFN.js.map} +0 -0
- /package/dist/chunks/{dist-6BE2BTVP.js.map → dist-7BSYEFE5.js.map} +0 -0
- /package/dist/chunks/{dist-ZPPSUKEG.js.map → dist-AM6FWCIJ.js.map} +0 -0
- /package/dist/chunks/{dist-IYSARJ7B.js.map → dist-ISRJEZRF.js.map} +0 -0
- /package/dist/chunks/{dist-ERFNYYTR.js.map → dist-PBFZXU4L.js.map} +0 -0
- /package/dist/chunks/{dist-DOHBDUFC.js.map → dist-RDXEBTCL.js.map} +0 -0
- /package/dist/chunks/{dist-SQYPEQ4A.js.map → dist-V43PPTPF.js.map} +0 -0
- /package/dist/chunks/{doctor-J2BRJDVI.js.map → doctor-FGOCO7UR.js.map} +0 -0
- /package/dist/chunks/{drain-TGBUG6MO.js.map → drain-A3DLR5A4.js.map} +0 -0
- /package/dist/chunks/{entry-7QM6GODJ.js.map → entry-4LHTI3VQ.js.map} +0 -0
- /package/dist/chunks/{extension-Y52E4FZR.js.map → extension-BP7Q3PFK.js.map} +0 -0
- /package/dist/chunks/{home-OGOBLYWY.js.map → home-GR6YDAAE.js.map} +0 -0
- /package/dist/chunks/{hooks-C6WM34FA.js.map → hooks-KSSNBDF2.js.map} +0 -0
- /package/dist/chunks/{hooks-report-FCLN3ERK.js.map → hooks-report-H4JAHJXE.js.map} +0 -0
- /package/dist/chunks/{host-FUPSAICG.js.map → host-ISKJDJ7B.js.map} +0 -0
- /package/dist/chunks/{host-queries-YTND6J2W.js.map → host-queries-CUG75GYD.js.map} +0 -0
- /package/dist/chunks/{installed-list-3Z2UYHZL.js.map → installed-list-GPVOP4E3.js.map} +0 -0
- /package/dist/chunks/{learn-EXNQYLI3.js.map → learn-AFNJQGOU.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-C4ZAVNHA.js.map → learn-builtin-LUD6XO6W.js.map} +0 -0
- /package/dist/chunks/{lifecycle-4ZRBSEP2.js.map → lifecycle-TCRMEVJP.js.map} +0 -0
- /package/dist/chunks/{list-2QV773EI.js.map → list-4OJNF5N2.js.map} +0 -0
- /package/dist/chunks/{live-33QEKVAM.js.map → live-LJ76XHPK.js.map} +0 -0
- /package/dist/chunks/{load-SYMNQIDR.js.map → load-2ERMTCD4.js.map} +0 -0
- /package/dist/chunks/{logs-IW7PYTI2.js.map → logs-DV6GC7PT.js.map} +0 -0
- /package/dist/chunks/{login-KN5KQXOD.js.map → open-3VUS3XWX.js.map} +0 -0
- /package/dist/chunks/{open-3GVSPGUF.js.map → output-schema-2GHHC5ZZ.js.map} +0 -0
- /package/dist/chunks/{output-schema-MKFI5PWR.js.map → peers-SLFOET3O.js.map} +0 -0
- /package/dist/chunks/{peers-CGTVWK6B.js.map → providers-SOFGNZ4F.js.map} +0 -0
- /package/dist/chunks/{providers-Z3KLRJDW.js.map → pty-3T7AE7ZA.js.map} +0 -0
- /package/dist/chunks/{pty-GMA24QAT.js.map → resume-5JACRBQO.js.map} +0 -0
- /package/dist/chunks/{resume-OEUL3DML.js.map → resume-command-H4FOREZO.js.map} +0 -0
- /package/dist/chunks/{resume-command-MXUIVG6T.js.map → running-NONPWC5C.js.map} +0 -0
- /package/dist/chunks/{running-HYMQGZMF.js.map → send-H27WTBLZ.js.map} +0 -0
- /package/dist/chunks/{send-IFZ7XPTF.js.map → send-person-NNGL2U4H.js.map} +0 -0
- /package/dist/chunks/{serve-CZDHGDZL.js.map → serve-4VIDXLEB.js.map} +0 -0
- /package/dist/chunks/{send-person-YV7Y3N7V.js.map → setting-cli-ETVPDSRA.js.map} +0 -0
- /package/dist/chunks/{setting-cli-CJMZHIMQ.js.map → start-check-A5FG7224.js.map} +0 -0
- /package/dist/chunks/{startup-failure-QS7O3M62.js.map → startup-failure-6MZNIJXI.js.map} +0 -0
- /package/dist/chunks/{start-check-MZGEYSQD.js.map → store-4PPSKMYT.js.map} +0 -0
- /package/dist/chunks/{store-5QOUJL3S.js.map → store-5K5HIPUT.js.map} +0 -0
- /package/dist/chunks/{store-LIG46NWV.js.map → store-6WG6CRWK.js.map} +0 -0
- /package/dist/chunks/{store-N4CURUP2.js.map → store-UPAOLS5B.js.map} +0 -0
|
@@ -2,39 +2,49 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openWorktreeHookRuntime
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PYTTGYZS.js";
|
|
6
6
|
import {
|
|
7
7
|
NAMZU_COMPACT_WORDMARK,
|
|
8
8
|
NAMZU_WORDMARK,
|
|
9
9
|
NAMZU_WORDMARK_MIN_WIDTH
|
|
10
10
|
} from "./chunk-27R3OTVS.js";
|
|
11
|
+
import {
|
|
12
|
+
appendPromptHistory,
|
|
13
|
+
loggedPromptsOf,
|
|
14
|
+
pastedTextsOf,
|
|
15
|
+
promptHistoryEnabled,
|
|
16
|
+
promptHistoryEntryFor,
|
|
17
|
+
promptHistorySkipped,
|
|
18
|
+
readPromptHistory,
|
|
19
|
+
recallPromptHistory,
|
|
20
|
+
rewritePromptHistory,
|
|
21
|
+
seedPromptHistory,
|
|
22
|
+
trimPromptHistory
|
|
23
|
+
} from "./chunk-P6RYPNSD.js";
|
|
11
24
|
import {
|
|
12
25
|
changesBlock,
|
|
13
26
|
changesSinceConfirmed,
|
|
14
27
|
confirmationView,
|
|
15
28
|
describeChanges,
|
|
16
29
|
permissionsChanged
|
|
17
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4RCXY7WO.js";
|
|
18
31
|
import {
|
|
19
32
|
visibleScheduleMessage
|
|
20
33
|
} from "./chunk-NADQQMMG.js";
|
|
21
34
|
import {
|
|
22
35
|
selectDesktopBackend
|
|
23
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CSO7BHDJ.js";
|
|
24
37
|
import {
|
|
25
38
|
hooksOf
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
applyProviderFlags
|
|
29
|
-
} from "./chunk-6TF24TFD.js";
|
|
39
|
+
} from "./chunk-NQYOMRPT.js";
|
|
30
40
|
import {
|
|
31
41
|
settleAnsweredPark
|
|
32
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-DIBXZBOP.js";
|
|
33
43
|
import {
|
|
34
44
|
DELIVERY_READ_LIMIT,
|
|
35
45
|
readSourceDeliveryPage,
|
|
36
46
|
takeSuppressedCount
|
|
37
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HGOU2QRN.js";
|
|
38
48
|
import {
|
|
39
49
|
DEFAULT_MAX_ITERATIONS,
|
|
40
50
|
DEFAULT_TIMEOUT_MS,
|
|
@@ -45,7 +55,7 @@ import {
|
|
|
45
55
|
editedJob,
|
|
46
56
|
previewLines,
|
|
47
57
|
runsPerDay
|
|
48
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EOLXS2ZV.js";
|
|
49
59
|
import {
|
|
50
60
|
callsCount
|
|
51
61
|
} from "./chunk-OG2MLME3.js";
|
|
@@ -54,13 +64,13 @@ import {
|
|
|
54
64
|
gateRefusal,
|
|
55
65
|
scriptShellUnavailableReason,
|
|
56
66
|
verifyScheduledScript
|
|
57
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-EFWF72V4.js";
|
|
58
68
|
import {
|
|
59
69
|
allowsCommands,
|
|
60
70
|
compileJobPolicy,
|
|
61
71
|
compileScriptCheckPolicy,
|
|
62
72
|
isPresetName
|
|
63
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-3ZL6YBMT.js";
|
|
64
74
|
import {
|
|
65
75
|
callEndpoint,
|
|
66
76
|
readEndpoint
|
|
@@ -74,20 +84,23 @@ import {
|
|
|
74
84
|
hasAcknowledgedBypass,
|
|
75
85
|
hasSeenAutoModeDefaultNotice,
|
|
76
86
|
markAutoModeDefaultNoticeSeen
|
|
77
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-6QQVZXUE.js";
|
|
78
88
|
import {
|
|
79
89
|
applyFallbackFlag
|
|
80
90
|
} from "./chunk-RL2CTUF2.js";
|
|
91
|
+
import {
|
|
92
|
+
applyProviderFlags
|
|
93
|
+
} from "./chunk-YEWJVAM4.js";
|
|
81
94
|
import {
|
|
82
95
|
parkedRunWords,
|
|
83
96
|
resumeCommand
|
|
84
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-TSU4F6DF.js";
|
|
85
98
|
import {
|
|
86
99
|
appendHistory,
|
|
87
100
|
nextFireOf,
|
|
88
101
|
readHistory,
|
|
89
102
|
readState
|
|
90
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-7EASTT3H.js";
|
|
91
104
|
import {
|
|
92
105
|
PERSON_ONLY_OPS,
|
|
93
106
|
controlDispatch,
|
|
@@ -105,7 +118,7 @@ import {
|
|
|
105
118
|
renderPeersScreen,
|
|
106
119
|
startControlServer,
|
|
107
120
|
writeControlInfo
|
|
108
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-7LCU5IKH.js";
|
|
109
122
|
import {
|
|
110
123
|
CLIPBOARD_KILL_SWITCH,
|
|
111
124
|
ClickCounter,
|
|
@@ -118,7 +131,7 @@ import {
|
|
|
118
131
|
orderRange,
|
|
119
132
|
snapRange,
|
|
120
133
|
wordAt
|
|
121
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-RTMX7IDM.js";
|
|
122
135
|
import {
|
|
123
136
|
buildPeerTools,
|
|
124
137
|
openLivePeers,
|
|
@@ -126,7 +139,7 @@ import {
|
|
|
126
139
|
peerMailMessage,
|
|
127
140
|
resolvePeerRuntime,
|
|
128
141
|
runsUnderAny
|
|
129
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-OD2PMTXS.js";
|
|
130
143
|
import {
|
|
131
144
|
AUTO_CHOICE_ID,
|
|
132
145
|
PR_NONE,
|
|
@@ -147,13 +160,13 @@ import {
|
|
|
147
160
|
sharedExtensionHost,
|
|
148
161
|
withAutoChoice,
|
|
149
162
|
writeConversationExport
|
|
150
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-2PRVGX6U.js";
|
|
151
164
|
import {
|
|
152
165
|
tuiPalDefinition,
|
|
153
166
|
tuiPalEnvironment,
|
|
154
167
|
tuiPalOwner,
|
|
155
168
|
tuiPalPreferences
|
|
156
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-CK47DTW6.js";
|
|
157
170
|
import {
|
|
158
171
|
isModelOnlyContext,
|
|
159
172
|
runtimeContextRowLabel
|
|
@@ -165,10 +178,10 @@ import {
|
|
|
165
178
|
handedBackLines,
|
|
166
179
|
hypermodeRefusal,
|
|
167
180
|
outcomeNotice
|
|
168
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-MX3U5TBQ.js";
|
|
169
182
|
import {
|
|
170
183
|
defaultStartMode
|
|
171
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-ULFR2FWA.js";
|
|
172
185
|
import {
|
|
173
186
|
COMMAND_ROW_INDENT,
|
|
174
187
|
COMPACTED_HINT,
|
|
@@ -259,17 +272,18 @@ import {
|
|
|
259
272
|
webCallTitle,
|
|
260
273
|
webLiveStatus,
|
|
261
274
|
webSettledLine,
|
|
262
|
-
withDebugDetail
|
|
263
|
-
|
|
275
|
+
withDebugDetail,
|
|
276
|
+
withoutUntrustedFrames
|
|
277
|
+
} from "./chunk-774DAIPO.js";
|
|
264
278
|
import {
|
|
265
279
|
openManagedWorktrees,
|
|
266
280
|
worktreeOpenHint
|
|
267
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-J4GPHTRN.js";
|
|
268
282
|
import {
|
|
269
283
|
MCP_OUTPUT_CHARS,
|
|
270
284
|
boundedMcpText,
|
|
271
285
|
validatePromptArguments
|
|
272
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-ZDMI3JSL.js";
|
|
273
287
|
import {
|
|
274
288
|
completionNotice,
|
|
275
289
|
countAgents,
|
|
@@ -279,13 +293,13 @@ import {
|
|
|
279
293
|
resumeCallText,
|
|
280
294
|
resumeReviewLines,
|
|
281
295
|
runTokens
|
|
282
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-MJJA277Z.js";
|
|
283
297
|
import {
|
|
284
298
|
openInBrowser
|
|
285
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-I5BNXO63.js";
|
|
286
300
|
import {
|
|
287
301
|
describeBrowserStatus
|
|
288
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-ADLNBLRA.js";
|
|
289
303
|
import {
|
|
290
304
|
MAY_BE_LIMITED_WINDOW_MS,
|
|
291
305
|
accountProductName,
|
|
@@ -297,19 +311,19 @@ import {
|
|
|
297
311
|
import {
|
|
298
312
|
beginSubscriptionLogin,
|
|
299
313
|
parsePastedInput
|
|
300
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-KCBOIL5Q.js";
|
|
301
315
|
import {
|
|
302
316
|
API_KEY_ACCOUNT_PROVIDERS,
|
|
303
317
|
openCliAccounts,
|
|
304
318
|
storedAccountSignedIn
|
|
305
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-JFA2XPTW.js";
|
|
306
320
|
import {
|
|
307
321
|
beginCodexDeviceLogin
|
|
308
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-32CPPPKX.js";
|
|
309
323
|
import {
|
|
310
324
|
claimPalConversation,
|
|
311
325
|
listPalConversations
|
|
312
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-UXLQNJDR.js";
|
|
313
327
|
import {
|
|
314
328
|
ConversationIndexRefreshError,
|
|
315
329
|
activeConversationTurn,
|
|
@@ -340,7 +354,6 @@ import {
|
|
|
340
354
|
matchesPullRequestFilter,
|
|
341
355
|
noteAttachmentNumber,
|
|
342
356
|
numberAttachments,
|
|
343
|
-
openConversationLog,
|
|
344
357
|
openSessions,
|
|
345
358
|
pasteChip,
|
|
346
359
|
pullRequestLabel,
|
|
@@ -361,15 +374,15 @@ import {
|
|
|
361
374
|
unarchiveConversation,
|
|
362
375
|
unchipPastedRanges,
|
|
363
376
|
widenOverChips
|
|
364
|
-
} from "./chunk-
|
|
377
|
+
} from "./chunk-KIWLK2WZ.js";
|
|
365
378
|
import {
|
|
366
379
|
bindAccount,
|
|
367
380
|
findAccountByName,
|
|
368
381
|
isDefaultAccountId
|
|
369
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-6V4VYVRZ.js";
|
|
370
383
|
import {
|
|
371
384
|
startAutoUpdate
|
|
372
|
-
} from "./chunk-
|
|
385
|
+
} from "./chunk-LM2OGSW5.js";
|
|
373
386
|
import {
|
|
374
387
|
readManifest
|
|
375
388
|
} from "./chunk-AK2U3N2A.js";
|
|
@@ -489,15 +502,16 @@ import {
|
|
|
489
502
|
use_window_size_default,
|
|
490
503
|
waitedOnBlock,
|
|
491
504
|
workflowAgentProgress,
|
|
505
|
+
workflowAgentTotal,
|
|
492
506
|
workflowNotice,
|
|
493
507
|
wroteBy,
|
|
494
508
|
wroteLineText,
|
|
495
509
|
wroteOf,
|
|
496
510
|
wroteRailText
|
|
497
|
-
} from "./chunk-
|
|
511
|
+
} from "./chunk-LRUY5C6H.js";
|
|
498
512
|
import {
|
|
499
513
|
discoverUserCommands
|
|
500
|
-
} from "./chunk-
|
|
514
|
+
} from "./chunk-MJ32RCFZ.js";
|
|
501
515
|
import {
|
|
502
516
|
describeAllCredentialsLogout,
|
|
503
517
|
describeApiKeyLogout,
|
|
@@ -508,7 +522,7 @@ import {
|
|
|
508
522
|
} from "./chunk-MDK4RMBQ.js";
|
|
509
523
|
import {
|
|
510
524
|
resolveNpmInvocation
|
|
511
|
-
} from "./chunk-
|
|
525
|
+
} from "./chunk-FJG7JN4W.js";
|
|
512
526
|
import {
|
|
513
527
|
capChoiceLines,
|
|
514
528
|
choiceDisplayText,
|
|
@@ -548,7 +562,7 @@ import {
|
|
|
548
562
|
describeCacheLifetime,
|
|
549
563
|
promptCacheTtl,
|
|
550
564
|
providerOffersCacheLifetime
|
|
551
|
-
} from "./chunk-
|
|
565
|
+
} from "./chunk-OGEOUETU.js";
|
|
552
566
|
import {
|
|
553
567
|
CLICK_EXPAND_HINT,
|
|
554
568
|
CLICK_FOLD_HINT,
|
|
@@ -584,13 +598,13 @@ import {
|
|
|
584
598
|
sandboxRunsShellUnasked,
|
|
585
599
|
settledElapsed,
|
|
586
600
|
withoutCdToCwd
|
|
587
|
-
} from "./chunk-
|
|
601
|
+
} from "./chunk-TL535OCL.js";
|
|
588
602
|
import {
|
|
589
603
|
describePlainInterruption,
|
|
590
604
|
describeProviderWait,
|
|
591
605
|
isSelfMending,
|
|
592
606
|
isSpentAllowance
|
|
593
|
-
} from "./chunk-
|
|
607
|
+
} from "./chunk-JX6O7Y55.js";
|
|
594
608
|
import {
|
|
595
609
|
debugRequested
|
|
596
610
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -602,14 +616,14 @@ import {
|
|
|
602
616
|
handoffContinuationNote,
|
|
603
617
|
refusalDetail,
|
|
604
618
|
retryAfterMs
|
|
605
|
-
} from "./chunk-
|
|
619
|
+
} from "./chunk-WEPINZBQ.js";
|
|
606
620
|
import {
|
|
607
621
|
autoAvailable,
|
|
608
622
|
nextCycleMode,
|
|
609
623
|
permissionModeDescription,
|
|
610
624
|
permissionModeLabel,
|
|
611
625
|
permissionModeName
|
|
612
|
-
} from "./chunk-
|
|
626
|
+
} from "./chunk-4YQJ262B.js";
|
|
613
627
|
import {
|
|
614
628
|
paint,
|
|
615
629
|
rowTints,
|
|
@@ -618,18 +632,18 @@ import {
|
|
|
618
632
|
} from "./chunk-P65AXQPL.js";
|
|
619
633
|
import {
|
|
620
634
|
discoverAgentDefinitions
|
|
621
|
-
} from "./chunk-
|
|
635
|
+
} from "./chunk-7NQLCFYX.js";
|
|
622
636
|
import {
|
|
623
637
|
readAgentHooks
|
|
624
|
-
} from "./chunk-
|
|
638
|
+
} from "./chunk-HONSYTUC.js";
|
|
625
639
|
import {
|
|
626
640
|
readSkillHooks,
|
|
627
641
|
withoutSessionStart
|
|
628
|
-
} from "./chunk-
|
|
642
|
+
} from "./chunk-TGLXWW5B.js";
|
|
629
643
|
import {
|
|
630
644
|
primaryProvider,
|
|
631
645
|
writePreferences
|
|
632
|
-
} from "./chunk-
|
|
646
|
+
} from "./chunk-NO3F3QQ3.js";
|
|
633
647
|
import {
|
|
634
648
|
apiKeyLogoutWord,
|
|
635
649
|
automaticChoice,
|
|
@@ -640,7 +654,7 @@ import {
|
|
|
640
654
|
hasApiCredential,
|
|
641
655
|
isApiKeyLogoutTarget,
|
|
642
656
|
signedInSubscriptionProviders
|
|
643
|
-
} from "./chunk-
|
|
657
|
+
} from "./chunk-TJAUF5NX.js";
|
|
644
658
|
import {
|
|
645
659
|
isAnthropicOAuthToken
|
|
646
660
|
} from "./chunk-LPPFJYL6.js";
|
|
@@ -651,14 +665,14 @@ import {
|
|
|
651
665
|
loadSkillBody,
|
|
652
666
|
renderSkillRoster,
|
|
653
667
|
skillTierLabel
|
|
654
|
-
} from "./chunk-
|
|
668
|
+
} from "./chunk-RR7FS6SQ.js";
|
|
655
669
|
import {
|
|
656
670
|
isTrusted,
|
|
657
671
|
isTrustedAtStateRoot,
|
|
658
672
|
startNewTrustList,
|
|
659
673
|
trustDir,
|
|
660
674
|
trustListProblem
|
|
661
|
-
} from "./chunk-
|
|
675
|
+
} from "./chunk-27ICMJVV.js";
|
|
662
676
|
import {
|
|
663
677
|
expandTabs,
|
|
664
678
|
scriptText,
|
|
@@ -667,11 +681,11 @@ import {
|
|
|
667
681
|
import {
|
|
668
682
|
DEFAULT_SHOW_TURN_DURATION,
|
|
669
683
|
getScreenModeNow
|
|
670
|
-
} from "./chunk-
|
|
684
|
+
} from "./chunk-5COLG33E.js";
|
|
671
685
|
import {
|
|
672
686
|
deleteUserConfigValue,
|
|
673
687
|
setUserConfigValue
|
|
674
|
-
} from "./chunk-
|
|
688
|
+
} from "./chunk-7BXJPOEG.js";
|
|
675
689
|
import {
|
|
676
690
|
COMPOSER_TRIGGER_DEFAULTS,
|
|
677
691
|
COMPOSER_TRIGGER_IDS,
|
|
@@ -707,11 +721,11 @@ import {
|
|
|
707
721
|
verdictOf,
|
|
708
722
|
withWorkflowKeywordSwitch,
|
|
709
723
|
writeConnection
|
|
710
|
-
} from "./chunk-
|
|
724
|
+
} from "./chunk-ESHAWCBR.js";
|
|
711
725
|
import {
|
|
712
726
|
PROJECT_MCP_FILE,
|
|
713
727
|
parseMcpServerFile
|
|
714
|
-
} from "./chunk-
|
|
728
|
+
} from "./chunk-7YC42EXB.js";
|
|
715
729
|
import {
|
|
716
730
|
displayPath,
|
|
717
731
|
formatSize,
|
|
@@ -749,15 +763,17 @@ import {
|
|
|
749
763
|
restrictToOwner,
|
|
750
764
|
writeStoredApiKey,
|
|
751
765
|
writeStoredGeminiApiKey
|
|
752
|
-
} from "./chunk-
|
|
766
|
+
} from "./chunk-GLZJBFDO.js";
|
|
753
767
|
import {
|
|
754
768
|
namzuHomePath
|
|
755
|
-
} from "./chunk-
|
|
769
|
+
} from "./chunk-K5VLCRHY.js";
|
|
756
770
|
import {
|
|
757
771
|
stringWidth
|
|
758
772
|
} from "./chunk-U5UV2YRE.js";
|
|
759
773
|
import {
|
|
760
774
|
ACCEPT_EDITS_TOOLS,
|
|
775
|
+
AUTO_REVIEW_BLOCKED_PREFIX,
|
|
776
|
+
AUTO_REVIEW_UNAVAILABLE_PREFIX,
|
|
761
777
|
AccountRegistryError,
|
|
762
778
|
AuthorizationGate,
|
|
763
779
|
CompactionRefusedError,
|
|
@@ -772,7 +788,6 @@ import {
|
|
|
772
788
|
HAND_BACK_RECEIPT,
|
|
773
789
|
HAND_BACK_TOOL_NAME,
|
|
774
790
|
HostCommandRegistry,
|
|
775
|
-
LOG_SECRET_PATTERNS,
|
|
776
791
|
MONITOR_TOOL_NAME,
|
|
777
792
|
NOOP_LOGGER,
|
|
778
793
|
PEER_PROTOCOL_VERSION,
|
|
@@ -817,6 +832,7 @@ import {
|
|
|
817
832
|
isEntityId,
|
|
818
833
|
isLeaseLive,
|
|
819
834
|
isPeerRecordLive,
|
|
835
|
+
isReviewRefusalResult,
|
|
820
836
|
kernelHostCommands,
|
|
821
837
|
mustAskPerson,
|
|
822
838
|
newPasteNonce,
|
|
@@ -842,7 +858,6 @@ import {
|
|
|
842
858
|
sanitizeName,
|
|
843
859
|
sanitizeRole,
|
|
844
860
|
sessionDisplayName,
|
|
845
|
-
startedBySession,
|
|
846
861
|
sweepPrivateTempRoot,
|
|
847
862
|
systemClock,
|
|
848
863
|
turnContextEntries,
|
|
@@ -853,7 +868,7 @@ import {
|
|
|
853
868
|
withAccountLock,
|
|
854
869
|
wrapUntrusted,
|
|
855
870
|
writePeerRecord
|
|
856
|
-
} from "./chunk-
|
|
871
|
+
} from "./chunk-L5FCGDB7.js";
|
|
857
872
|
import {
|
|
858
873
|
__name,
|
|
859
874
|
__toESM
|
|
@@ -1421,8 +1436,8 @@ __name(entryFor, "entryFor");
|
|
|
1421
1436
|
function continuation(source, read) {
|
|
1422
1437
|
if (read.stopped) return STOPPED;
|
|
1423
1438
|
if (read.atRest) return "";
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1439
|
+
const open = source.slice(read.start).join("\n");
|
|
1440
|
+
return open.length > OPEN_LIMIT ? STOPPED : open;
|
|
1426
1441
|
}
|
|
1427
1442
|
__name(continuation, "continuation");
|
|
1428
1443
|
function colourLines(word, lines3, flow = NO_FLOW) {
|
|
@@ -2350,7 +2365,7 @@ __name(useTerminalFocused, "useTerminalFocused");
|
|
|
2350
2365
|
// src/tui/App.tsx
|
|
2351
2366
|
import { existsSync as existsSync4, rmSync as rmSync2 } from "node:fs";
|
|
2352
2367
|
import { homedir } from "node:os";
|
|
2353
|
-
import { join as
|
|
2368
|
+
import { join as join18, relative as relative5, resolve as resolve9 } from "node:path";
|
|
2354
2369
|
var import_react30 = __toESM(require_react(), 1);
|
|
2355
2370
|
|
|
2356
2371
|
// src/integrations/network/runtime.ts
|
|
@@ -2431,12 +2446,13 @@ function createNetworkController(options) {
|
|
|
2431
2446
|
}
|
|
2432
2447
|
}
|
|
2433
2448
|
});
|
|
2434
|
-
const joinView = /* @__PURE__ */ __name((
|
|
2435
|
-
requestId:
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2449
|
+
const joinView = /* @__PURE__ */ __name((join19, trustOffer) => ({
|
|
2450
|
+
requestId: join19.requestId,
|
|
2451
|
+
...join19.joinerMachineId ? { machineId: join19.joinerMachineId } : {},
|
|
2452
|
+
name: join19.name,
|
|
2453
|
+
code: formatJoinCode(join19.code),
|
|
2454
|
+
sourceAddr: join19.sourceAddr,
|
|
2455
|
+
expiresAt: join19.expiresAt,
|
|
2440
2456
|
...trustOffer ? { trustOffer } : {}
|
|
2441
2457
|
}), "joinView");
|
|
2442
2458
|
const networkView = /* @__PURE__ */ __name((n) => ({
|
|
@@ -2444,8 +2460,8 @@ function createNetworkController(options) {
|
|
|
2444
2460
|
name: n.name,
|
|
2445
2461
|
trustedAt: n.trustedAt
|
|
2446
2462
|
}), "networkView");
|
|
2447
|
-
const offerFor = /* @__PURE__ */ __name(async (
|
|
2448
|
-
const ref = await service.networkOf(
|
|
2463
|
+
const offerFor = /* @__PURE__ */ __name(async (join19) => {
|
|
2464
|
+
const ref = await service.networkOf(join19.sourceAddr).catch(() => void 0);
|
|
2449
2465
|
return ref && !ref.trusted ? { suggestedName: ref.suggestedName } : void 0;
|
|
2450
2466
|
}, "offerFor");
|
|
2451
2467
|
const findMachine = /* @__PURE__ */ __name((query) => {
|
|
@@ -2509,7 +2525,7 @@ function createNetworkController(options) {
|
|
|
2509
2525
|
nearbyNetworks: status.nearbyNetworks,
|
|
2510
2526
|
nearby: service.nearbyNetworks().map((n) => ({ ...n })),
|
|
2511
2527
|
joinRequests: await Promise.all(
|
|
2512
|
-
service.pendingJoins().map(async (
|
|
2528
|
+
service.pendingJoins().map(async (join19) => joinView(join19, await offerFor(join19)))
|
|
2513
2529
|
),
|
|
2514
2530
|
autoJoined: [...autoJoined],
|
|
2515
2531
|
trustedNetworks: (await service.trustedNetworks()).map(networkView),
|
|
@@ -2929,6 +2945,8 @@ function createNetworkRuntime(options) {
|
|
|
2929
2945
|
let previous;
|
|
2930
2946
|
let previousMachines;
|
|
2931
2947
|
const seenOutcomes = /* @__PURE__ */ new Set();
|
|
2948
|
+
const announcedJoiners = /* @__PURE__ */ new Set();
|
|
2949
|
+
let reportedJoinCount;
|
|
2932
2950
|
const pid = options.pid ?? process.pid;
|
|
2933
2951
|
const current = /* @__PURE__ */ __name(() => controller ?? client, "current");
|
|
2934
2952
|
async function stopLeading() {
|
|
@@ -3039,12 +3057,20 @@ function createNetworkRuntime(options) {
|
|
|
3039
3057
|
}
|
|
3040
3058
|
const before = previous;
|
|
3041
3059
|
previous = now;
|
|
3042
|
-
const
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3060
|
+
const waiting = now.joinRequests.length;
|
|
3061
|
+
if (waiting !== reportedJoinCount) {
|
|
3062
|
+
reportedJoinCount = waiting;
|
|
3063
|
+
options.onJoinRequests?.(waiting);
|
|
3064
|
+
}
|
|
3065
|
+
for (const join19 of now.joinRequests) {
|
|
3066
|
+
const who = join19.machineId ?? `${join19.name}@${join19.sourceAddr}`;
|
|
3067
|
+
if (announcedJoiners.has(who)) continue;
|
|
3068
|
+
announcedJoiners.add(who);
|
|
3069
|
+
const text = `${join19.name} wants to join your Namzu network. /peers to allow or deny.`;
|
|
3070
|
+
if (options.notice) options.notice(`network-join:${who}`, text);
|
|
3071
|
+
else options.notify(text);
|
|
3072
|
+
}
|
|
3073
|
+
if (announcedJoiners.size > 256) announcedJoiners.clear();
|
|
3048
3074
|
const ref = options.ownRef?.();
|
|
3049
3075
|
const autoBefore = new Set(before?.autoJoined.map((j) => `${j.machineId}:${j.at}`));
|
|
3050
3076
|
for (const joined of now.autoJoined)
|
|
@@ -4710,7 +4736,7 @@ async function probeHarnesses(detected, cwd, signal) {
|
|
|
4710
4736
|
version: result.code === 0 ? versionFromProbe(result.output) ?? "" : "",
|
|
4711
4737
|
checked: result.code === 0 || result.missing,
|
|
4712
4738
|
raw: result.output,
|
|
4713
|
-
access: harness.provider === "zen" && provider !== void 0 && !hasApiCredential(provider.entry, provider.apiKey) ? "Zen free models \xB7 experimental, and Zen may refuse them" : source ? describeAccess(source) : harness.id === "claude" ? "Not signed in for Namzu \xB7 run namzu login claude" : "Not connected \xB7 sign in or add an API key"
|
|
4739
|
+
access: harness.provider === "zen" && provider !== void 0 && !hasApiCredential(provider.entry, provider.apiKey) ? "Zen free models \xB7 experimental, and Zen may refuse them" : source ? describeAccess(source) : harness.id === "claude" ? "Not signed in for Namzu \xB7 run namzu auth login claude" : "Not connected \xB7 sign in or add an API key"
|
|
4714
4740
|
};
|
|
4715
4741
|
})
|
|
4716
4742
|
);
|
|
@@ -5594,25 +5620,25 @@ __name(gridLayout, "gridLayout");
|
|
|
5594
5620
|
function columnWidths(want, least, room) {
|
|
5595
5621
|
if (want.reduce((a, b) => a + b, 0) <= room) return [...want];
|
|
5596
5622
|
const widths = want.map(() => 0);
|
|
5597
|
-
let
|
|
5623
|
+
let open = want.map((_, c) => c);
|
|
5598
5624
|
let remaining = room;
|
|
5599
5625
|
for (; ; ) {
|
|
5600
|
-
const share2 = Math.floor(remaining / Math.max(1,
|
|
5601
|
-
const settled2 =
|
|
5602
|
-
if (settled2.length === 0 || settled2.length ===
|
|
5626
|
+
const share2 = Math.floor(remaining / Math.max(1, open.length));
|
|
5627
|
+
const settled2 = open.filter((c) => (want[c] ?? 0) <= share2);
|
|
5628
|
+
if (settled2.length === 0 || settled2.length === open.length) break;
|
|
5603
5629
|
for (const c of settled2) {
|
|
5604
5630
|
widths[c] = want[c] ?? 0;
|
|
5605
5631
|
remaining -= want[c] ?? 0;
|
|
5606
5632
|
}
|
|
5607
|
-
|
|
5633
|
+
open = open.filter((c) => !settled2.includes(c));
|
|
5608
5634
|
}
|
|
5609
|
-
const floor =
|
|
5635
|
+
const floor = open.map((c) => Math.min(least[c] ?? 1, want[c] ?? 1));
|
|
5610
5636
|
const floorTotal = floor.reduce((a, b) => a + b, 0);
|
|
5611
5637
|
if (floorTotal > remaining) return void 0;
|
|
5612
5638
|
const spare = remaining - floorTotal;
|
|
5613
|
-
const extra =
|
|
5639
|
+
const extra = open.map((c, i) => (want[c] ?? 0) - (floor[i] ?? 0));
|
|
5614
5640
|
const extraTotal = extra.reduce((a, b) => a + b, 0);
|
|
5615
|
-
|
|
5641
|
+
open.forEach((c, i) => {
|
|
5616
5642
|
widths[c] = (floor[i] ?? 0) + (extraTotal === 0 ? 0 : Math.floor(spare * (extra[i] ?? 0) / extraTotal));
|
|
5617
5643
|
});
|
|
5618
5644
|
let left = room - widths.reduce((a, b) => a + b, 0);
|
|
@@ -5691,7 +5717,7 @@ function Markdown({
|
|
|
5691
5717
|
text,
|
|
5692
5718
|
color = theme.text.primary,
|
|
5693
5719
|
hyperlinks = false,
|
|
5694
|
-
join:
|
|
5720
|
+
join: join19 = "block",
|
|
5695
5721
|
lang,
|
|
5696
5722
|
fence,
|
|
5697
5723
|
lead = null,
|
|
@@ -5700,9 +5726,9 @@ function Markdown({
|
|
|
5700
5726
|
const cache = (0, import_react3.useRef)(void 0);
|
|
5701
5727
|
cache.current ??= createBlockCache();
|
|
5702
5728
|
const shown = terminalDisplayText(text);
|
|
5703
|
-
const source =
|
|
5729
|
+
const source = join19 === "code" ? `${fence ?? `\`\`\`${lang ?? ""}`}
|
|
5704
5730
|
${shown}` : shown;
|
|
5705
|
-
const blocks = cache.current.parse(source,
|
|
5731
|
+
const blocks = cache.current.parse(source, join19 === "text" ? "text" : void 0);
|
|
5706
5732
|
const width = useContentWidth();
|
|
5707
5733
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5708
5734
|
BlockList,
|
|
@@ -5711,7 +5737,7 @@ ${shown}` : shown;
|
|
|
5711
5737
|
color,
|
|
5712
5738
|
hyperlinks,
|
|
5713
5739
|
width,
|
|
5714
|
-
lead:
|
|
5740
|
+
lead: join19 === "block" ? lead : "join",
|
|
5715
5741
|
flow
|
|
5716
5742
|
}
|
|
5717
5743
|
);
|
|
@@ -6277,6 +6303,10 @@ var KNOWN_TOOL_ADVICE = {
|
|
|
6277
6303
|
saves: 0.4
|
|
6278
6304
|
}
|
|
6279
6305
|
};
|
|
6306
|
+
function windowGuessLine(windowTokens) {
|
|
6307
|
+
return `The window for this model is a guess (${formatTokens(windowTokens)} tokens). Set the real one with compaction.contextWindowTokens in your settings.`;
|
|
6308
|
+
}
|
|
6309
|
+
__name(windowGuessLine, "windowGuessLine");
|
|
6280
6310
|
function buildContextView(input) {
|
|
6281
6311
|
const { breakdown } = input;
|
|
6282
6312
|
const window = breakdown.windowTokens;
|
|
@@ -6293,7 +6323,7 @@ function buildContextView(input) {
|
|
|
6293
6323
|
value: `${formatTokens(window)} tokens (you set ${formatTokens(input.windowRequested)}; the model's own window is the cap)`
|
|
6294
6324
|
} : input.autoCompact && input.windowSource !== "auto" ? {
|
|
6295
6325
|
label: "Auto-compact window: ",
|
|
6296
|
-
value: input.windowSource === "default" ? `${formatTokens(window)} tokens (
|
|
6326
|
+
value: input.windowSource === "default" ? `${formatTokens(window)} tokens (a guess: this model's window is not known; set compaction.contextWindowTokens)` : `${formatTokens(window)} tokens`
|
|
6297
6327
|
} : void 0;
|
|
6298
6328
|
const cells = buildGridCells(breakdown.categories, window, input.terminalColumns);
|
|
6299
6329
|
const legend = buildLegend(breakdown);
|
|
@@ -6838,7 +6868,7 @@ function freezeMore(content, printed, ctx) {
|
|
|
6838
6868
|
if (!codeReady(tail2, ranges, final, state, ctx.code)) break;
|
|
6839
6869
|
const r = ranges[final];
|
|
6840
6870
|
const cut3 = r.end + 1;
|
|
6841
|
-
const
|
|
6871
|
+
const open = "none";
|
|
6842
6872
|
const lang = state.join === "code" ? state.lang : void 0;
|
|
6843
6873
|
const fence = state.join === "code" ? state.fence : void 0;
|
|
6844
6874
|
chunks = [
|
|
@@ -6850,7 +6880,7 @@ function freezeMore(content, printed, ctx) {
|
|
|
6850
6880
|
...lang !== void 0 ? { lang } : {},
|
|
6851
6881
|
...fence !== void 0 ? { fence } : {},
|
|
6852
6882
|
last: TYPE_OF[r.kind],
|
|
6853
|
-
open
|
|
6883
|
+
open
|
|
6854
6884
|
},
|
|
6855
6885
|
state,
|
|
6856
6886
|
ctx.code
|
|
@@ -8085,9 +8115,9 @@ function trimUrl(raw) {
|
|
|
8085
8115
|
continue;
|
|
8086
8116
|
}
|
|
8087
8117
|
const pairs = { ")": "(", "]": "[", "}": "{", ">": "<" };
|
|
8088
|
-
const
|
|
8089
|
-
if (
|
|
8090
|
-
const opens = url.split(
|
|
8118
|
+
const open = pairs[last];
|
|
8119
|
+
if (open !== void 0) {
|
|
8120
|
+
const opens = url.split(open).length - 1;
|
|
8091
8121
|
const closes = url.split(last).length - 1;
|
|
8092
8122
|
if (closes > opens) {
|
|
8093
8123
|
url = url.slice(0, -1);
|
|
@@ -9531,14 +9561,14 @@ function hungRows(rows, body, markColor) {
|
|
|
9531
9561
|
});
|
|
9532
9562
|
}
|
|
9533
9563
|
__name(hungRows, "hungRows");
|
|
9534
|
-
function clickableRows(message, hasPrev, width,
|
|
9564
|
+
function clickableRows(message, hasPrev, width, open) {
|
|
9535
9565
|
if (message.role !== "tool" && message.role !== "system") return null;
|
|
9536
9566
|
const fit2 = hangsResult(message) ? Math.max(4, width - RESULT_HANG) : width;
|
|
9537
9567
|
const closed = messageScrollRows(message, hasPrev, fit2, { hint: CLICK_EXPAND_HINT });
|
|
9538
9568
|
if (!closed.hinted) return null;
|
|
9539
|
-
const shown =
|
|
9540
|
-
const hint =
|
|
9541
|
-
const plain2 =
|
|
9569
|
+
const shown = open ? openedMessage(message) : message;
|
|
9570
|
+
const hint = open ? void 0 : CLICK_EXPAND_HINT;
|
|
9571
|
+
const plain2 = open ? messageScrollRows(shown, hasPrev, fit2) : closed;
|
|
9542
9572
|
const text = scrollBodyText(shown, hint, fit2);
|
|
9543
9573
|
const body = wrapChoiceText(text, fit2).length;
|
|
9544
9574
|
const joins = wrapJoiners(
|
|
@@ -9550,7 +9580,7 @@ function clickableRows(message, hasPrev, width, open2) {
|
|
|
9550
9580
|
return {
|
|
9551
9581
|
gap: plain2.gap ? plainRow(plain2.gap) : null,
|
|
9552
9582
|
rows: laid.map((own2, i) => {
|
|
9553
|
-
const answers = i < body || !
|
|
9583
|
+
const answers = i < body || !open && (plain2.rows[i]?.command === true || plain2.rows[i]?.hint === true);
|
|
9554
9584
|
return answers ? { ...own2, opens: true } : own2;
|
|
9555
9585
|
})
|
|
9556
9586
|
};
|
|
@@ -10034,8 +10064,8 @@ function FullscreenTranscript({
|
|
|
10034
10064
|
const cache = (0, import_react6.useRef)(createLayoutCache()).current;
|
|
10035
10065
|
const epoch = useThemeEpoch();
|
|
10036
10066
|
const click = subscribePointer !== void 0;
|
|
10037
|
-
const [
|
|
10038
|
-
const openRef = (0, import_react6.useRef)(
|
|
10067
|
+
const [open, setOpen] = (0, import_react6.useState)(() => /* @__PURE__ */ new Set());
|
|
10068
|
+
const openRef = (0, import_react6.useRef)(open);
|
|
10039
10069
|
const [view, setView] = (0, import_react6.useState)(FOLLOWING);
|
|
10040
10070
|
const away = (0, import_react6.useRef)(null);
|
|
10041
10071
|
const markRef = (0, import_react6.useRef)(null);
|
|
@@ -10058,20 +10088,20 @@ function FullscreenTranscript({
|
|
|
10058
10088
|
pendingAt,
|
|
10059
10089
|
columns,
|
|
10060
10090
|
cache,
|
|
10061
|
-
{ click, open
|
|
10091
|
+
{ click, open, detailed },
|
|
10062
10092
|
mark
|
|
10063
10093
|
),
|
|
10064
|
-
[messages, pending, pendingAt, columns, cache, epoch, click,
|
|
10094
|
+
[messages, pending, pendingAt, columns, cache, epoch, click, open, detailed, mark]
|
|
10065
10095
|
);
|
|
10066
10096
|
(0, import_react6.useEffect)(() => {
|
|
10067
|
-
if (
|
|
10097
|
+
if (open.size === 0) return;
|
|
10068
10098
|
const present = new Set(index.ids);
|
|
10069
|
-
const kept = [...
|
|
10070
|
-
if (kept.length ===
|
|
10099
|
+
const kept = [...open].filter((id) => present.has(id));
|
|
10100
|
+
if (kept.length === open.size) return;
|
|
10071
10101
|
const next = new Set(kept);
|
|
10072
10102
|
openRef.current = next;
|
|
10073
10103
|
setOpen(next);
|
|
10074
|
-
}, [
|
|
10104
|
+
}, [open, index]);
|
|
10075
10105
|
const boxRef = (0, import_react6.useRef)(null);
|
|
10076
10106
|
const headerBox = (0, import_react6.useRef)(null);
|
|
10077
10107
|
const boxHeight = (0, import_react6.useRef)(maxRows);
|
|
@@ -10218,11 +10248,12 @@ function FullscreenTranscript({
|
|
|
10218
10248
|
(dragging) => {
|
|
10219
10249
|
const { rows: now } = latest.current;
|
|
10220
10250
|
const text = selectedText(now, textWidth, dragging.selection);
|
|
10221
|
-
if (text.trim() === "" || !copy) return;
|
|
10251
|
+
if (text.trim() === "" || !copy) return false;
|
|
10222
10252
|
updateSelection({ ...dragging, copied: true });
|
|
10223
10253
|
void copy(text).then((report) => {
|
|
10224
10254
|
if (report) showNote(report);
|
|
10225
10255
|
});
|
|
10256
|
+
return true;
|
|
10226
10257
|
},
|
|
10227
10258
|
[copy, showNote, textWidth, updateSelection]
|
|
10228
10259
|
);
|
|
@@ -10447,23 +10478,27 @@ function FullscreenTranscript({
|
|
|
10447
10478
|
}, "takeEscape"),
|
|
10448
10479
|
takeCopy: /* @__PURE__ */ __name(() => {
|
|
10449
10480
|
const current = selectionRef.current;
|
|
10450
|
-
if (
|
|
10451
|
-
if (current.copied)
|
|
10452
|
-
|
|
10453
|
-
|
|
10481
|
+
if (!current?.moved || current.pressing) return false;
|
|
10482
|
+
if (current.copied) {
|
|
10483
|
+
updateSelection(null);
|
|
10484
|
+
return true;
|
|
10485
|
+
}
|
|
10486
|
+
if (copySelection(current)) return true;
|
|
10487
|
+
updateSelection(null);
|
|
10488
|
+
return false;
|
|
10454
10489
|
}, "takeCopy")
|
|
10455
10490
|
};
|
|
10456
10491
|
return () => {
|
|
10457
10492
|
control.current = null;
|
|
10458
10493
|
};
|
|
10459
|
-
}, [control, scroll, closeSearch, updateSelection,
|
|
10494
|
+
}, [control, scroll, closeSearch, updateSelection, copySelection]);
|
|
10460
10495
|
(0, import_react6.useEffect)(() => {
|
|
10461
10496
|
if (!keysActive && searchRef.current) closeSearch();
|
|
10462
10497
|
}, [keysActive, closeSearch]);
|
|
10463
10498
|
use_input_default(
|
|
10464
10499
|
(input, key) => {
|
|
10465
|
-
const
|
|
10466
|
-
if (
|
|
10500
|
+
const open2 = searchRef.current;
|
|
10501
|
+
if (open2) {
|
|
10467
10502
|
if (key.pageUp) {
|
|
10468
10503
|
scroll("page-up");
|
|
10469
10504
|
return;
|
|
@@ -10472,22 +10507,22 @@ function FullscreenTranscript({
|
|
|
10472
10507
|
scroll("page-down");
|
|
10473
10508
|
return;
|
|
10474
10509
|
}
|
|
10475
|
-
if (
|
|
10476
|
-
if (input === "/") updateSearch({ ...
|
|
10510
|
+
if (open2.browsing) {
|
|
10511
|
+
if (input === "/") updateSearch({ ...open2, browsing: false });
|
|
10477
10512
|
else if (input === "n" || input === "N") {
|
|
10478
|
-
const found = findMatches(latest.current.rows,
|
|
10513
|
+
const found = findMatches(latest.current.rows, open2.query);
|
|
10479
10514
|
const was = found.findIndex(
|
|
10480
|
-
(m) => m.row ===
|
|
10515
|
+
(m) => m.row === open2.cursor?.row && m.from === open2.cursor?.from
|
|
10481
10516
|
);
|
|
10482
10517
|
const to2 = found[stepMatch(found.length, was, input === "n" ? 1 : -1)];
|
|
10483
10518
|
if (to2) {
|
|
10484
|
-
updateSearch({ ...
|
|
10519
|
+
updateSearch({ ...open2, cursor: { row: to2.row, from: to2.from } });
|
|
10485
10520
|
goTo(to2);
|
|
10486
10521
|
}
|
|
10487
10522
|
}
|
|
10488
10523
|
return;
|
|
10489
10524
|
}
|
|
10490
|
-
const edit = editSearch(
|
|
10525
|
+
const edit = editSearch(open2.query, input, key);
|
|
10491
10526
|
const { rows: now, synced: state, index: at } = latest.current;
|
|
10492
10527
|
if (edit.kind === "query") {
|
|
10493
10528
|
const found = findMatches(now, edit.query);
|
|
@@ -10497,26 +10532,26 @@ function FullscreenTranscript({
|
|
|
10497
10532
|
cursor: first ? { row: first.row, from: first.from } : null
|
|
10498
10533
|
});
|
|
10499
10534
|
goTo(first);
|
|
10500
|
-
} else if (detailed && edit.kind === "next" &&
|
|
10501
|
-
const found = findMatches(now,
|
|
10535
|
+
} else if (detailed && edit.kind === "next" && open2.query.length > 0) {
|
|
10536
|
+
const found = findMatches(now, open2.query);
|
|
10502
10537
|
const current = found.findIndex(
|
|
10503
|
-
(m) => m.row ===
|
|
10538
|
+
(m) => m.row === open2.cursor?.row && m.from === open2.cursor?.from
|
|
10504
10539
|
);
|
|
10505
10540
|
const to2 = found[current >= 0 ? current : startMatch(found, bottomRow(state, at))];
|
|
10506
10541
|
updateSearch({
|
|
10507
|
-
...
|
|
10542
|
+
...open2,
|
|
10508
10543
|
browsing: true,
|
|
10509
|
-
cursor: to2 ? { row: to2.row, from: to2.from } :
|
|
10544
|
+
cursor: to2 ? { row: to2.row, from: to2.from } : open2.cursor
|
|
10510
10545
|
});
|
|
10511
10546
|
goTo(to2);
|
|
10512
10547
|
} else if (edit.kind === "next" || edit.kind === "previous") {
|
|
10513
|
-
const found = findMatches(now,
|
|
10548
|
+
const found = findMatches(now, open2.query);
|
|
10514
10549
|
const was = found.findIndex(
|
|
10515
|
-
(m) => m.row ===
|
|
10550
|
+
(m) => m.row === open2.cursor?.row && m.from === open2.cursor?.from
|
|
10516
10551
|
);
|
|
10517
10552
|
const to2 = found[stepMatch(found.length, was, edit.kind === "next" ? 1 : -1)];
|
|
10518
10553
|
if (to2) {
|
|
10519
|
-
updateSearch({ ...
|
|
10554
|
+
updateSearch({ ...open2, cursor: { row: to2.row, from: to2.from } });
|
|
10520
10555
|
goTo(to2);
|
|
10521
10556
|
}
|
|
10522
10557
|
}
|
|
@@ -10728,7 +10763,7 @@ function DetailedScreen({
|
|
|
10728
10763
|
detailed: true,
|
|
10729
10764
|
top: 2,
|
|
10730
10765
|
control,
|
|
10731
|
-
onSearchChange: (
|
|
10766
|
+
onSearchChange: (open, typingNow) => setTyping(open && typingNow !== false)
|
|
10732
10767
|
}
|
|
10733
10768
|
)
|
|
10734
10769
|
] });
|
|
@@ -12397,13 +12432,13 @@ var WakeLedger = class {
|
|
|
12397
12432
|
this.#workflows.clear();
|
|
12398
12433
|
this.#childMessages.clear();
|
|
12399
12434
|
const jobs = this.#jobs;
|
|
12400
|
-
const
|
|
12401
|
-
for (const [id] of
|
|
12435
|
+
const jobLines2 = jobs.ownerSession === owner ? [...jobs.pending].filter(([id]) => this.#wakeJobIds.has(id)) : [];
|
|
12436
|
+
for (const [id] of jobLines2) {
|
|
12402
12437
|
jobs.delivered.add(id);
|
|
12403
12438
|
jobs.pending.delete(id);
|
|
12404
12439
|
this.#wakeJobIds.delete(id);
|
|
12405
12440
|
}
|
|
12406
|
-
return { workflowIds, ended, jobLines };
|
|
12441
|
+
return { workflowIds, ended, jobLines: jobLines2 };
|
|
12407
12442
|
}
|
|
12408
12443
|
/**
|
|
12409
12444
|
* What a turn is about to carry. Everything stays pending until
|
|
@@ -12633,16 +12668,24 @@ function detailChromeRows(sideBySide) {
|
|
|
12633
12668
|
__name(detailChromeRows, "detailChromeRows");
|
|
12634
12669
|
var DETAIL_MIN_LIST_ROWS = 2;
|
|
12635
12670
|
var DETAIL_MIN_ROWS = 4;
|
|
12636
|
-
var
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
const
|
|
12641
|
-
const
|
|
12642
|
-
|
|
12671
|
+
var DETAIL_CONVERSATION_ROWS = 10;
|
|
12672
|
+
var DETAIL_TIGHT_ROWS = 24;
|
|
12673
|
+
var DETAIL_AROUND_BOX_ROWS = 6;
|
|
12674
|
+
function workflowDetailBoxRows(rows) {
|
|
12675
|
+
const tight = rows <= DETAIL_TIGHT_ROWS;
|
|
12676
|
+
const avail = Math.max(1, rows - DETAIL_CONVERSATION_ROWS);
|
|
12677
|
+
const least = Math.max(tight ? 8 : 12, Math.min(avail - 1, rows - 6));
|
|
12678
|
+
const most = Math.max(tight ? 8 : 11, avail - 1);
|
|
12679
|
+
return Math.min(least, most);
|
|
12680
|
+
}
|
|
12681
|
+
__name(workflowDetailBoxRows, "workflowDetailBoxRows");
|
|
12682
|
+
function workflowDetailHeight(rows) {
|
|
12683
|
+
return Math.max(
|
|
12684
|
+
DETAIL_MIN_ROWS,
|
|
12685
|
+
Math.min(workflowDetailBoxRows(rows) + DETAIL_AROUND_BOX_ROWS, rows - 1)
|
|
12686
|
+
);
|
|
12643
12687
|
}
|
|
12644
12688
|
__name(workflowDetailHeight, "workflowDetailHeight");
|
|
12645
|
-
var DETAIL_FLOOR_ROWS = 8;
|
|
12646
12689
|
function detailGeometry(workflow, phases, columns) {
|
|
12647
12690
|
const boxWidth = columns - 2;
|
|
12648
12691
|
const leftTitleCells = Math.min(
|
|
@@ -12660,54 +12703,6 @@ function detailGeometry(workflow, phases, columns) {
|
|
|
12660
12703
|
return { leftInner, rightInner, sideBySide: columns >= DETAIL_WIDE_COLUMNS && rightInner >= 24 };
|
|
12661
12704
|
}
|
|
12662
12705
|
__name(detailGeometry, "detailGeometry");
|
|
12663
|
-
function workflowDetailContentRows(workflow, phases, selectedPhaseIndex, level, terminalRows, terminalColumns) {
|
|
12664
|
-
const columns = Math.max(20, terminalColumns);
|
|
12665
|
-
const logLines = Math.min(detailLogLineCount(terminalRows), workflow.logs?.length ?? 0);
|
|
12666
|
-
const phase = phases[selectedPhaseIndex];
|
|
12667
|
-
const agentCount = phase?.agents.length ?? 0;
|
|
12668
|
-
const { rightInner, sideBySide } = detailGeometry(workflow, phases, columns);
|
|
12669
|
-
let list;
|
|
12670
|
-
if (sideBySide) {
|
|
12671
|
-
const detailLines = level === 1 && phase?.detail ? wrapPhaseDetailLines(phase.detail, rightInner - 2).slice(0, PHASE_DETAIL_LINE_BUDGET) : [];
|
|
12672
|
-
list = Math.max(
|
|
12673
|
-
phases.length,
|
|
12674
|
-
agentCount + (detailLines.length > 0 ? detailLines.length + 1 : 0)
|
|
12675
|
-
);
|
|
12676
|
-
} else {
|
|
12677
|
-
const detailLines = level === 1 && terminalRows >= 20 && phase?.detail ? wrapPhaseDetailLines(phase.detail, columns - 4).slice(0, PHASE_DETAIL_LINE_BUDGET) : [];
|
|
12678
|
-
list = Math.max(phases.length + detailLines.length, agentCount);
|
|
12679
|
-
}
|
|
12680
|
-
return detailChromeRows(sideBySide) + logLines + Math.max(DETAIL_MIN_LIST_ROWS, list);
|
|
12681
|
-
}
|
|
12682
|
-
__name(workflowDetailContentRows, "workflowDetailContentRows");
|
|
12683
|
-
function sizeWorkflowDetail(cap3, contentRows) {
|
|
12684
|
-
return Math.min(cap3, Math.max(DETAIL_FLOOR_ROWS, contentRows));
|
|
12685
|
-
}
|
|
12686
|
-
__name(sizeWorkflowDetail, "sizeWorkflowDetail");
|
|
12687
|
-
function cockpitDetailHeight(agents, runs, selectedPhaseId, focus, terminalRows, terminalColumns, cap3) {
|
|
12688
|
-
if (focus === "workflows") return cap3;
|
|
12689
|
-
const workflows = agentWorkflows(agents, runs);
|
|
12690
|
-
const workflow = workflows.find(
|
|
12691
|
-
(item) => item.phases.some((phase) => phase.id === selectedPhaseId)
|
|
12692
|
-
);
|
|
12693
|
-
if (!workflow) return cap3;
|
|
12694
|
-
const index = Math.max(
|
|
12695
|
-
0,
|
|
12696
|
-
workflow.phases.findIndex((phase) => phase.id === selectedPhaseId)
|
|
12697
|
-
);
|
|
12698
|
-
return sizeWorkflowDetail(
|
|
12699
|
-
cap3,
|
|
12700
|
-
workflowDetailContentRows(
|
|
12701
|
-
workflow,
|
|
12702
|
-
workflow.phases,
|
|
12703
|
-
index,
|
|
12704
|
-
focus === "agents" ? 2 : 1,
|
|
12705
|
-
terminalRows,
|
|
12706
|
-
terminalColumns
|
|
12707
|
-
)
|
|
12708
|
-
);
|
|
12709
|
-
}
|
|
12710
|
-
__name(cockpitDetailHeight, "cockpitDetailHeight");
|
|
12711
12706
|
var graphemes2 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
12712
12707
|
function AgentNarrationBand({ lines: lines3 }) {
|
|
12713
12708
|
if (lines3.length === 0) return null;
|
|
@@ -13521,21 +13516,18 @@ function WorkflowDetail({
|
|
|
13521
13516
|
const hint = fitHints(
|
|
13522
13517
|
level === 1 ? [
|
|
13523
13518
|
{ text: "\u2191\u2193 select", rank: 4 },
|
|
13524
|
-
{ text: "enter open", rank: 3 },
|
|
13525
13519
|
...canStop ? [{ text: "x stop workflow", rank: 2 }] : [],
|
|
13526
|
-
{ text: "esc back", rank: 5 }
|
|
13527
|
-
{ text: "space close", rank: 1 }
|
|
13520
|
+
{ text: "esc back", rank: 5 }
|
|
13528
13521
|
] : [
|
|
13529
|
-
{ text: "\u2191\u2193
|
|
13522
|
+
{ text: "\u2191\u2193 agent", rank: 4 },
|
|
13530
13523
|
{ text: "enter view", rank: 3 },
|
|
13531
13524
|
...canStop ? [{ text: `x ${isRun ? "skip" : "stop"}`, rank: 2 }] : [],
|
|
13532
|
-
{ text: "esc back", rank: 5 }
|
|
13533
|
-
{ text: "space close", rank: 1 }
|
|
13525
|
+
{ text: "esc back", rank: 5 }
|
|
13534
13526
|
],
|
|
13535
13527
|
Math.max(1, columns - 2)
|
|
13536
13528
|
);
|
|
13537
13529
|
const agents = phase?.agents ?? [];
|
|
13538
|
-
const agentsTitle = phase ? `${oneLine3(phaseTitle(phase))} \xB7 ${agents.length} ${agents.length === 1 ? "agent" : "agents"}
|
|
13530
|
+
const agentsTitle = phase ? `${oneLine3(phaseTitle(phase))} \xB7 ${agents.length} ${agents.length === 1 ? "agent" : "agents"}` : "";
|
|
13539
13531
|
const agentsFailed = agents.filter((agent) => agent.status === "failed").length;
|
|
13540
13532
|
const failedTail = agentsFailed > 0 ? ` \xB7 ${agentsFailed} failed` : "";
|
|
13541
13533
|
const titleWithFailed = /* @__PURE__ */ __name((text) => {
|
|
@@ -13573,7 +13565,7 @@ function WorkflowDetail({
|
|
|
13573
13565
|
);
|
|
13574
13566
|
const header = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
13575
13567
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.border.default, wrap: "truncate-end", children: "\u2500".repeat(columns) }),
|
|
13576
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.
|
|
13568
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.accent.assistant, bold: true, wrap: "truncate-end", children: title }) }),
|
|
13577
13569
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { paddingX: 1, children: [
|
|
13578
13570
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexGrow: 1, minWidth: 0, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: workflow.description ? terminalDisplayText(oneLine3(workflow.description)) : "" }) }),
|
|
13579
13571
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexShrink: 0, marginLeft: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.text.muted, children: stats }) })
|
|
@@ -13592,7 +13584,7 @@ function WorkflowDetail({
|
|
|
13592
13584
|
)),
|
|
13593
13585
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { children: " " })
|
|
13594
13586
|
] });
|
|
13595
|
-
const footer = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: hint }) });
|
|
13587
|
+
const footer = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.text.muted, dimColor: true, italic: true, wrap: "truncate-end", children: hint }) });
|
|
13596
13588
|
const stackedDetail = level === 1 && terminalRows >= 20 && phase?.detail && phaseWindow.items.length + 1 + 1 <= pageSize2 ? wrapPhaseDetailLines(phase.detail, columns - 4).slice(
|
|
13597
13589
|
0,
|
|
13598
13590
|
Math.min(PHASE_DETAIL_LINE_BUDGET, pageSize2 - phaseWindow.items.length - 1)
|
|
@@ -13663,9 +13655,7 @@ function WorkflowDetail({
|
|
|
13663
13655
|
footer
|
|
13664
13656
|
] });
|
|
13665
13657
|
}
|
|
13666
|
-
const
|
|
13667
|
-
const showDetail = detailLines.length > 0 && detailLines.length + 1 + agentWindow.items.length <= pageSize2;
|
|
13668
|
-
const detailRows = showDetail ? detailLines.length + 1 : 0;
|
|
13658
|
+
const detailRows = 0;
|
|
13669
13659
|
const border = theme.border.default;
|
|
13670
13660
|
const leftTitle = " Phases ";
|
|
13671
13661
|
const rightTitle = ` ${truncateChoiceText(`${agentsTitle}${failedTail}`, Math.max(1, rightInner - 4))} `;
|
|
@@ -13703,7 +13693,6 @@ function WorkflowDetail({
|
|
|
13703
13693
|
Math.max(0, ...agentWindow.items.map((value) => stringWidth(agentDetailLabel(value)))),
|
|
13704
13694
|
Math.floor(rightInner * 0.45)
|
|
13705
13695
|
);
|
|
13706
|
-
const detailRow = showDetail && row2 < detailLines.length ? row2 : -1;
|
|
13707
13696
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { paddingX: 1, children: [
|
|
13708
13697
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: border, children: "\u2502" }),
|
|
13709
13698
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { width: leftInner, flexShrink: 0, children: item && glyph ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { wrap: "truncate-end", children: [
|
|
@@ -13760,9 +13749,6 @@ function WorkflowDetail({
|
|
|
13760
13749
|
),
|
|
13761
13750
|
" "
|
|
13762
13751
|
] }) })
|
|
13763
|
-
] }) : detailRow >= 0 && detailLines[detailRow] !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { color: theme.text.muted, wrap: "truncate-end", children: [
|
|
13764
|
-
" ",
|
|
13765
|
-
detailLines[detailRow]
|
|
13766
13752
|
] }) : row2 === detailRows && emptyNote ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { color: theme.text.muted, dimColor: true, wrap: "truncate-end", children: [
|
|
13767
13753
|
" ",
|
|
13768
13754
|
emptyNote
|
|
@@ -15511,7 +15497,7 @@ function matchMentionableFiles(query, files, limit = 100) {
|
|
|
15511
15497
|
).slice(0, Math.max(0, limit)).map(({ path }) => path);
|
|
15512
15498
|
}
|
|
15513
15499
|
__name(matchMentionableFiles, "matchMentionableFiles");
|
|
15514
|
-
function expandFileMentions(text, cwd,
|
|
15500
|
+
function expandFileMentions(text, cwd, readFile4, known = {}) {
|
|
15515
15501
|
const attached = [];
|
|
15516
15502
|
const blocks = [];
|
|
15517
15503
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -15542,9 +15528,9 @@ function expandFileMentions(text, cwd, readFile5, known = {}) {
|
|
|
15542
15528
|
attemptedFiles++;
|
|
15543
15529
|
const maxChars = Math.min(MAX_FILE_CHARS, remainingChars);
|
|
15544
15530
|
let content;
|
|
15545
|
-
if (
|
|
15531
|
+
if (readFile4) {
|
|
15546
15532
|
try {
|
|
15547
|
-
const whole =
|
|
15533
|
+
const whole = readFile4(parsed.path);
|
|
15548
15534
|
content = whole === null ? null : parsed.range ? lineRange(whole, parsed.range) : whole;
|
|
15549
15535
|
} catch {
|
|
15550
15536
|
content = null;
|
|
@@ -15618,13 +15604,13 @@ async function attachMentionedResources(expanded, original, read, maxChars = MAX
|
|
|
15618
15604
|
omitted = true;
|
|
15619
15605
|
continue;
|
|
15620
15606
|
}
|
|
15621
|
-
const
|
|
15607
|
+
const open = `<resource-${marker} server="${escapeAttribute(server)}" uri="${escapeAttribute(uri)}">
|
|
15622
15608
|
`;
|
|
15623
15609
|
const close = `
|
|
15624
15610
|
</resource-${marker}>`;
|
|
15625
15611
|
const available = Math.max(
|
|
15626
15612
|
0,
|
|
15627
|
-
Math.min(perResource, remaining -
|
|
15613
|
+
Math.min(perResource, remaining - open.length - close.length - 32)
|
|
15628
15614
|
);
|
|
15629
15615
|
if (available <= 0) {
|
|
15630
15616
|
omitted = true;
|
|
@@ -15635,7 +15621,7 @@ async function attachMentionedResources(expanded, original, read, maxChars = MAX
|
|
|
15635
15621
|
if (content === null) continue;
|
|
15636
15622
|
const body = content.length > available ? `${content.slice(0, available)}
|
|
15637
15623
|
\u2026 (truncated)` : content;
|
|
15638
|
-
const block =
|
|
15624
|
+
const block = open + body + close;
|
|
15639
15625
|
remaining -= block.length + 2;
|
|
15640
15626
|
blocks.push(block);
|
|
15641
15627
|
attached.push(`${server}:${uri}`);
|
|
@@ -16139,7 +16125,7 @@ function scanDelimited(draft, zones) {
|
|
|
16139
16125
|
index = end;
|
|
16140
16126
|
continue;
|
|
16141
16127
|
}
|
|
16142
|
-
const pair = PAIRS.find(([
|
|
16128
|
+
const pair = PAIRS.find(([open]) => open === char);
|
|
16143
16129
|
if (pair) {
|
|
16144
16130
|
const close = draft.indexOf(pair[1], index + 1);
|
|
16145
16131
|
const end = close < 0 ? draft.length : close + 1;
|
|
@@ -16982,9 +16968,9 @@ function matchBracket(doc, from) {
|
|
|
16982
16968
|
while (at < end && !(OPENING + CLOSING).includes(doc.chars[at])) at += 1;
|
|
16983
16969
|
if (at >= end) return null;
|
|
16984
16970
|
const ch = doc.chars[at];
|
|
16985
|
-
const
|
|
16986
|
-
if (
|
|
16987
|
-
const close = CLOSING[
|
|
16971
|
+
const open = OPENING.indexOf(ch);
|
|
16972
|
+
if (open >= 0) {
|
|
16973
|
+
const close = CLOSING[open];
|
|
16988
16974
|
let depth2 = 0;
|
|
16989
16975
|
for (let i = at + 1; i < doc.n; i += 1) {
|
|
16990
16976
|
const here = doc.chars[i];
|
|
@@ -17071,10 +17057,10 @@ function quoteObject(doc, at, quote, inner) {
|
|
|
17071
17057
|
}
|
|
17072
17058
|
let pair = null;
|
|
17073
17059
|
for (let k = 0; k + 1 < marks.length; k += 2) {
|
|
17074
|
-
const
|
|
17060
|
+
const open = marks[k];
|
|
17075
17061
|
const close = marks[k + 1];
|
|
17076
17062
|
if (at <= close) {
|
|
17077
|
-
pair = [
|
|
17063
|
+
pair = [open, close];
|
|
17078
17064
|
break;
|
|
17079
17065
|
}
|
|
17080
17066
|
}
|
|
@@ -17090,13 +17076,13 @@ function quoteObject(doc, at, quote, inner) {
|
|
|
17090
17076
|
return [begin, stop];
|
|
17091
17077
|
}
|
|
17092
17078
|
__name(quoteObject, "quoteObject");
|
|
17093
|
-
function bracketObject(doc, at,
|
|
17079
|
+
function bracketObject(doc, at, open, close, inner, count2) {
|
|
17094
17080
|
const enclosing = /* @__PURE__ */ __name((from, skipSelf) => {
|
|
17095
17081
|
let depth2 = 0;
|
|
17096
17082
|
for (let j = from; j >= 0; j -= 1) {
|
|
17097
17083
|
const ch = doc.chars[j];
|
|
17098
17084
|
if (ch === close && !(skipSelf && j === from)) depth2 += 1;
|
|
17099
|
-
else if (ch ===
|
|
17085
|
+
else if (ch === open) {
|
|
17100
17086
|
if (depth2 === 0) return j;
|
|
17101
17087
|
depth2 -= 1;
|
|
17102
17088
|
}
|
|
@@ -17114,7 +17100,7 @@ function bracketObject(doc, at, open2, close, inner, count2) {
|
|
|
17114
17100
|
let e = -1;
|
|
17115
17101
|
for (let j = s + 1; j < doc.n; j += 1) {
|
|
17116
17102
|
const ch = doc.chars[j];
|
|
17117
|
-
if (ch ===
|
|
17103
|
+
if (ch === open) depth += 1;
|
|
17118
17104
|
else if (ch === close) {
|
|
17119
17105
|
if (depth === 0) {
|
|
17120
17106
|
e = j;
|
|
@@ -18559,7 +18545,6 @@ function Composer({
|
|
|
18559
18545
|
onBackgroundCommand,
|
|
18560
18546
|
onStopAllAgents,
|
|
18561
18547
|
railFocused = false,
|
|
18562
|
-
parked = false,
|
|
18563
18548
|
onCycleMode,
|
|
18564
18549
|
triggers,
|
|
18565
18550
|
turnActive = false,
|
|
@@ -19950,7 +19935,7 @@ ${valueRef.current.slice(position2)}`, position2);
|
|
|
19950
19935
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react10.Fragment, { children: renderSegments(displaySegments(value, trail, to, styledSpans)) }, "vim-after")
|
|
19951
19936
|
];
|
|
19952
19937
|
}, "blockLine");
|
|
19953
|
-
const shown = railFocused
|
|
19938
|
+
const shown = railFocused;
|
|
19954
19939
|
const shellGlyph = shellMode && !(disabled && !shown);
|
|
19955
19940
|
const promptGlyph = disabled && !shown ? "\u2026" : shellGlyph ? "!" : "\u276F";
|
|
19956
19941
|
const showPlaceholder = (!disabled || shown) && value.length === 0 && !shellMode;
|
|
@@ -20386,6 +20371,8 @@ var PENDING_POINTER = "\u276F";
|
|
|
20386
20371
|
var SEND_NOW_HINT = "ctrl+x ctrl+s to send now";
|
|
20387
20372
|
var MAX_PREVIEW_CODEPOINTS = 400;
|
|
20388
20373
|
var QUEUED_SUFFIX = " \xB7 after this reply";
|
|
20374
|
+
var QUEUED_COMMAND_SUFFIX = " \xB7 Queued, runs after this reply";
|
|
20375
|
+
var QUEUED_COMMAND_SHORT_SUFFIX = " \xB7 Queued";
|
|
20389
20376
|
function previewText(source) {
|
|
20390
20377
|
let head2 = "";
|
|
20391
20378
|
let count2 = 0;
|
|
@@ -20487,7 +20474,8 @@ function PendingInputPanel({
|
|
|
20487
20474
|
const text = previewText(row2.item.text) || (row2.item.attachmentCount ? "(attachment only)" : "(empty message)");
|
|
20488
20475
|
const room = Math.max(0, width - choiceDisplayWidth(lead));
|
|
20489
20476
|
const keep = Math.min(choiceDisplayWidth(text), 12) + choiceDisplayWidth(files);
|
|
20490
|
-
const
|
|
20477
|
+
const suffixes = row2.item.command ? [QUEUED_COMMAND_SUFFIX, QUEUED_COMMAND_SHORT_SUFFIX] : [QUEUED_SUFFIX];
|
|
20478
|
+
const tail2 = row2.queued ? suffixes.find((suffix) => room - keep >= choiceDisplayWidth(suffix)) ?? "" : "";
|
|
20491
20479
|
const shownFiles = truncateChoiceText(files, Math.max(0, room - choiceDisplayWidth(tail2)));
|
|
20492
20480
|
const shownText = truncateChoiceText(
|
|
20493
20481
|
text,
|
|
@@ -24077,6 +24065,10 @@ function monitorPill(count2) {
|
|
|
24077
24065
|
return count2 > 0 ? `${count2} ${count2 === 1 ? "monitor" : "monitors"}` : null;
|
|
24078
24066
|
}
|
|
24079
24067
|
__name(monitorPill, "monitorPill");
|
|
24068
|
+
function joinRequestPill(count2) {
|
|
24069
|
+
return count2 > 0 ? `${count2 > 99 ? "99+" : count2} join ${count2 === 1 ? "request" : "requests"} \xB7 /peers` : null;
|
|
24070
|
+
}
|
|
24071
|
+
__name(joinRequestPill, "joinRequestPill");
|
|
24080
24072
|
function StatusBar({
|
|
24081
24073
|
provider,
|
|
24082
24074
|
model,
|
|
@@ -24095,6 +24087,7 @@ function StatusBar({
|
|
|
24095
24087
|
restingHint = true,
|
|
24096
24088
|
shellCount = 0,
|
|
24097
24089
|
monitorCount = 0,
|
|
24090
|
+
joinRequests = 0,
|
|
24098
24091
|
pr,
|
|
24099
24092
|
hyperlinks = false,
|
|
24100
24093
|
agentCount = 0,
|
|
@@ -24134,7 +24127,7 @@ function StatusBar({
|
|
|
24134
24127
|
const activeMode = permissionMode !== void 0 && permissionMode !== "prompt" ? modeGlyph(permissionMode) : null;
|
|
24135
24128
|
const working = state !== "idle";
|
|
24136
24129
|
const hasPr = pr !== void 0 && pr.kind !== "none";
|
|
24137
|
-
const nothingElse = !activeMode && shellCount + monitorCount === 0 && !hasPr && agentCount === 0 && workflowCount === 0 && !canManage && !shellsSelected;
|
|
24130
|
+
const nothingElse = !activeMode && shellCount + monitorCount === 0 && joinRequests === 0 && !hasPr && agentCount === 0 && workflowCount === 0 && !canManage && !shellsSelected;
|
|
24138
24131
|
const layout = fitStatusLine({
|
|
24139
24132
|
// The line starts in the first column and App keeps one cell empty at the
|
|
24140
24133
|
// right edge. Ink's stdout width is the whole terminal, so reserve that cell
|
|
@@ -24154,6 +24147,7 @@ function StatusBar({
|
|
|
24154
24147
|
// the row: the pill is what the row is about then.
|
|
24155
24148
|
cycleSuffix: activeMode && canCycleMode && composerMounted && !dialogOpen && shellCount + monitorCount === 0 ? CYCLE_SUFFIX : null,
|
|
24156
24149
|
interrupt: working && !hint && !dialogOpen ? INTERRUPT_HINT : null,
|
|
24150
|
+
joins: joinRequestPill(joinRequests),
|
|
24157
24151
|
shells: shellPill(shellCount),
|
|
24158
24152
|
monitors: monitorPill(monitorCount),
|
|
24159
24153
|
agents: runningText(agentCount, workflowCount),
|
|
@@ -24177,6 +24171,11 @@ function StatusBar({
|
|
|
24177
24171
|
] }, "mode")
|
|
24178
24172
|
);
|
|
24179
24173
|
}
|
|
24174
|
+
if (layout.joins) {
|
|
24175
|
+
parts.push(
|
|
24176
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.status.warn, children: layout.joins }, "joins")
|
|
24177
|
+
);
|
|
24178
|
+
}
|
|
24180
24179
|
if (layout.pr) {
|
|
24181
24180
|
parts.push(
|
|
24182
24181
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { children: pr?.kind === "pr" && layout.pr.prefix ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
@@ -24234,6 +24233,7 @@ function StatusBar({
|
|
|
24234
24233
|
const leftTexts = [
|
|
24235
24234
|
["vim", layout.vim ?? null],
|
|
24236
24235
|
["mode", layout.mode ? `${layout.mode}${layout.cycleSuffix ?? ""}` : null],
|
|
24236
|
+
["joins", layout.joins],
|
|
24237
24237
|
[
|
|
24238
24238
|
"pr",
|
|
24239
24239
|
layout.pr ? `${layout.pr.prefix ? `${layout.pr.prefix} ` : ""}${layout.pr.label}` : null
|
|
@@ -24318,6 +24318,7 @@ function fitStatusLine(input) {
|
|
|
24318
24318
|
let mode = input.modeLabel.length > 0 ? input.modeLabel : null;
|
|
24319
24319
|
let cycleSuffix = input.cycleSuffix ?? null;
|
|
24320
24320
|
let interrupt = input.interrupt ?? null;
|
|
24321
|
+
let joins = input.joins ?? null;
|
|
24321
24322
|
let shells = input.shells ?? null;
|
|
24322
24323
|
let monitors = input.monitors ?? null;
|
|
24323
24324
|
let agents = input.agents ?? null;
|
|
@@ -24329,6 +24330,7 @@ function fitStatusLine(input) {
|
|
|
24329
24330
|
const parts = /* @__PURE__ */ __name(() => [
|
|
24330
24331
|
vim,
|
|
24331
24332
|
mode ? `${mode}${cycleSuffix ?? ""}` : null,
|
|
24333
|
+
joins,
|
|
24332
24334
|
pr ? `${pr.prefix ? `${pr.prefix} ` : ""}${pr.label}` : null,
|
|
24333
24335
|
shells,
|
|
24334
24336
|
monitors,
|
|
@@ -24360,6 +24362,7 @@ function fitStatusLine(input) {
|
|
|
24360
24362
|
}
|
|
24361
24363
|
if (over()) pr = null;
|
|
24362
24364
|
if (over() && (mode === QUIET_MODE_HINT || mode === QUIET_SANDBOX_HINT)) mode = null;
|
|
24365
|
+
if (over()) joins = null;
|
|
24363
24366
|
if (over() && mode) {
|
|
24364
24367
|
const whole = mode;
|
|
24365
24368
|
mode = null;
|
|
@@ -24377,6 +24380,7 @@ function fitStatusLine(input) {
|
|
|
24377
24380
|
mode,
|
|
24378
24381
|
cycleSuffix: mode ? cycleSuffix : null,
|
|
24379
24382
|
interrupt,
|
|
24383
|
+
joins,
|
|
24380
24384
|
shells,
|
|
24381
24385
|
monitors,
|
|
24382
24386
|
pr,
|
|
@@ -25574,414 +25578,12 @@ __name(runnableCommands, "runnableCommands");
|
|
|
25574
25578
|
|
|
25575
25579
|
// src/tui/cross-session-history.ts
|
|
25576
25580
|
import { utimes } from "node:fs/promises";
|
|
25577
|
-
import { join as
|
|
25581
|
+
import { join as join13 } from "node:path";
|
|
25578
25582
|
|
|
25579
25583
|
// src/integrations/sessions/cleanup.ts
|
|
25580
25584
|
import { readFileSync as readFileSync5, readdirSync as readdirSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
25581
|
-
import { lstat as
|
|
25582
|
-
import { join as join13 } from "node:path";
|
|
25583
|
-
|
|
25584
|
-
// src/integrations/sessions/prompt-history.ts
|
|
25585
|
-
import { createHash as createHash5, randomBytes as randomBytes3 } from "node:crypto";
|
|
25586
|
-
import { constants as constants3 } from "node:fs";
|
|
25587
|
-
import { lstat as lstat2, mkdir, open, readFile as readFile4, rename, stat as stat2, unlink, writeFile as writeFile2 } from "node:fs/promises";
|
|
25585
|
+
import { lstat as lstat2, readdir, rm as rm3, stat as stat2 } from "node:fs/promises";
|
|
25588
25586
|
import { join as join12 } from "node:path";
|
|
25589
|
-
var PROMPT_HISTORY_FILE = "history.jsonl";
|
|
25590
|
-
var PROMPT_HISTORY_KEEP = 2e3;
|
|
25591
|
-
var TRIM_SLACK = 500;
|
|
25592
|
-
var PROMPT_HISTORY_RECALL = 500;
|
|
25593
|
-
var PROMPT_HISTORY_MAX_CHARS = 64 * 1024;
|
|
25594
|
-
var PROMPT_HISTORY_SEED_SESSIONS = 20;
|
|
25595
|
-
var PROMPT_HISTORY_SEEDED_MARKER = ".history-seeded";
|
|
25596
|
-
var MAX_READ_BYTES = 16 * 1024 * 1024;
|
|
25597
|
-
var MAX_PASTE_SESSIONS = 20;
|
|
25598
|
-
function promptHistoryPath(home) {
|
|
25599
|
-
return join12(home, PROMPT_HISTORY_FILE);
|
|
25600
|
-
}
|
|
25601
|
-
__name(promptHistoryPath, "promptHistoryPath");
|
|
25602
|
-
function sha256Hex(text) {
|
|
25603
|
-
return createHash5("sha256").update(text, "utf8").digest("hex");
|
|
25604
|
-
}
|
|
25605
|
-
__name(sha256Hex, "sha256Hex");
|
|
25606
|
-
var CREDENTIAL_SHAPES = LOG_SECRET_PATTERNS.map(
|
|
25607
|
-
([, pattern]) => new RegExp(pattern.source, pattern.flags.replace("g", ""))
|
|
25608
|
-
);
|
|
25609
|
-
function promptLooksSensitive(text) {
|
|
25610
|
-
if (/^\s*\/login\s+\S/.test(text)) return true;
|
|
25611
|
-
try {
|
|
25612
|
-
return CREDENTIAL_SHAPES.some((shape) => shape.test(text));
|
|
25613
|
-
} catch {
|
|
25614
|
-
return true;
|
|
25615
|
-
}
|
|
25616
|
-
}
|
|
25617
|
-
__name(promptLooksSensitive, "promptLooksSensitive");
|
|
25618
|
-
function promptHistorySkipped(env = process.env) {
|
|
25619
|
-
return startedBySession(env);
|
|
25620
|
-
}
|
|
25621
|
-
__name(promptHistorySkipped, "promptHistorySkipped");
|
|
25622
|
-
function promptHistoryEnabled(options = {}) {
|
|
25623
|
-
try {
|
|
25624
|
-
return loadBootstrapConfigWithProvenance(options).config.promptHistory !== false;
|
|
25625
|
-
} catch {
|
|
25626
|
-
return false;
|
|
25627
|
-
}
|
|
25628
|
-
}
|
|
25629
|
-
__name(promptHistoryEnabled, "promptHistoryEnabled");
|
|
25630
|
-
function promptHistoryEntryFor(input) {
|
|
25631
|
-
const { text } = input;
|
|
25632
|
-
if (text.trim().length === 0) return void 0;
|
|
25633
|
-
const ranges = [...input.pasted ?? []].sort((a, b) => a.start - b.start);
|
|
25634
|
-
let display = "";
|
|
25635
|
-
let at = 0;
|
|
25636
|
-
const pasted = [];
|
|
25637
|
-
for (const range of ranges) {
|
|
25638
|
-
if (!Number.isSafeInteger(range.start) || !Number.isSafeInteger(range.end) || range.start < at || range.end <= range.start || range.end > text.length)
|
|
25639
|
-
return void 0;
|
|
25640
|
-
display += text.slice(at, range.start);
|
|
25641
|
-
const piece = text.slice(range.start, range.end);
|
|
25642
|
-
pasted.push({ offset: display.length, length: piece.length, sha256: sha256Hex(piece) });
|
|
25643
|
-
at = range.end;
|
|
25644
|
-
}
|
|
25645
|
-
display += text.slice(at);
|
|
25646
|
-
if (display.length > PROMPT_HISTORY_MAX_CHARS) return void 0;
|
|
25647
|
-
if (promptLooksSensitive(display)) return void 0;
|
|
25648
|
-
return {
|
|
25649
|
-
display,
|
|
25650
|
-
...pasted.length > 0 ? { pasted } : {},
|
|
25651
|
-
project: input.project,
|
|
25652
|
-
sessionId: input.sessionId,
|
|
25653
|
-
timestamp: input.timestamp
|
|
25654
|
-
};
|
|
25655
|
-
}
|
|
25656
|
-
__name(promptHistoryEntryFor, "promptHistoryEntryFor");
|
|
25657
|
-
function isPaste(value) {
|
|
25658
|
-
if (typeof value !== "object" || value === null) return false;
|
|
25659
|
-
const v = value;
|
|
25660
|
-
return Number.isSafeInteger(v.offset) && v.offset >= 0 && Number.isSafeInteger(v.length) && v.length > 0 && typeof v.sha256 === "string" && /^[0-9a-f]{64}$/.test(v.sha256);
|
|
25661
|
-
}
|
|
25662
|
-
__name(isPaste, "isPaste");
|
|
25663
|
-
function parsePromptHistoryLine(line) {
|
|
25664
|
-
let value;
|
|
25665
|
-
try {
|
|
25666
|
-
value = JSON.parse(line);
|
|
25667
|
-
} catch {
|
|
25668
|
-
return void 0;
|
|
25669
|
-
}
|
|
25670
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
|
|
25671
|
-
const v = value;
|
|
25672
|
-
if (typeof v.display !== "string" || typeof v.project !== "string" || typeof v.sessionId !== "string" || typeof v.timestamp !== "number" || !Number.isFinite(v.timestamp))
|
|
25673
|
-
return void 0;
|
|
25674
|
-
let pasted;
|
|
25675
|
-
if (v.pasted !== void 0) {
|
|
25676
|
-
if (!Array.isArray(v.pasted) || !v.pasted.every(isPaste)) return void 0;
|
|
25677
|
-
pasted = [...v.pasted].sort((a, b) => a.offset - b.offset);
|
|
25678
|
-
if (pasted.some((paste) => paste.offset > v.display.length)) return void 0;
|
|
25679
|
-
}
|
|
25680
|
-
return {
|
|
25681
|
-
display: v.display,
|
|
25682
|
-
...pasted && pasted.length > 0 ? { pasted } : {},
|
|
25683
|
-
project: v.project,
|
|
25684
|
-
sessionId: v.sessionId,
|
|
25685
|
-
timestamp: v.timestamp
|
|
25686
|
-
};
|
|
25687
|
-
}
|
|
25688
|
-
__name(parsePromptHistoryLine, "parsePromptHistoryLine");
|
|
25689
|
-
var realWait = /* @__PURE__ */ __name(() => new Promise((resolveWait) => setTimeout(resolveWait, 20)), "realWait");
|
|
25690
|
-
function withHistoryLock(home, operation, options = {}) {
|
|
25691
|
-
return withAccountLock(`${promptHistoryPath(home)}.lock`, operation, {
|
|
25692
|
-
attempts: options.attempts ?? 50,
|
|
25693
|
-
wait: options.wait ?? realWait
|
|
25694
|
-
});
|
|
25695
|
-
}
|
|
25696
|
-
__name(withHistoryLock, "withHistoryLock");
|
|
25697
|
-
async function notARegularFile(path) {
|
|
25698
|
-
try {
|
|
25699
|
-
const entry = await lstat2(path);
|
|
25700
|
-
if (entry.isSymbolicLink()) return "it is a link";
|
|
25701
|
-
if (!entry.isFile()) return "it is not a regular file";
|
|
25702
|
-
return void 0;
|
|
25703
|
-
} catch (error) {
|
|
25704
|
-
if (error.code === "ENOENT") return void 0;
|
|
25705
|
-
throw error;
|
|
25706
|
-
}
|
|
25707
|
-
}
|
|
25708
|
-
__name(notARegularFile, "notARegularFile");
|
|
25709
|
-
var NOFOLLOW = constants3.O_NOFOLLOW ?? 0;
|
|
25710
|
-
async function appendLines(home, lines3) {
|
|
25711
|
-
if (lines3.length === 0) return;
|
|
25712
|
-
const path = promptHistoryPath(home);
|
|
25713
|
-
const refused = await notARegularFile(path);
|
|
25714
|
-
if (refused) throw new Error(`${path} is not used: ${refused}.`);
|
|
25715
|
-
const handle = await open(
|
|
25716
|
-
path,
|
|
25717
|
-
constants3.O_WRONLY | constants3.O_APPEND | constants3.O_CREAT | NOFOLLOW,
|
|
25718
|
-
384
|
|
25719
|
-
);
|
|
25720
|
-
try {
|
|
25721
|
-
const entry = await handle.stat();
|
|
25722
|
-
if (!entry.isFile()) throw new Error(`${path} is not used: it is not a regular file.`);
|
|
25723
|
-
if (process.platform !== "win32" && (entry.mode & 63) !== 0) await handle.chmod(384);
|
|
25724
|
-
await handle.write(lines3.map((line) => `${line}
|
|
25725
|
-
`).join(""));
|
|
25726
|
-
} finally {
|
|
25727
|
-
await handle.close();
|
|
25728
|
-
}
|
|
25729
|
-
}
|
|
25730
|
-
__name(appendLines, "appendLines");
|
|
25731
|
-
async function appendPromptHistory(home, entry, options = {}) {
|
|
25732
|
-
try {
|
|
25733
|
-
await mkdir(home, { recursive: true, mode: 448 });
|
|
25734
|
-
await withHistoryLock(home, () => appendLines(home, [JSON.stringify(entry)]), options);
|
|
25735
|
-
return true;
|
|
25736
|
-
} catch {
|
|
25737
|
-
return false;
|
|
25738
|
-
}
|
|
25739
|
-
}
|
|
25740
|
-
__name(appendPromptHistory, "appendPromptHistory");
|
|
25741
|
-
async function readPromptHistory(home) {
|
|
25742
|
-
const path = promptHistoryPath(home);
|
|
25743
|
-
let text;
|
|
25744
|
-
try {
|
|
25745
|
-
if (await notARegularFile(path)) return { entries: [], lines: 0 };
|
|
25746
|
-
const handle = await open(path, constants3.O_RDONLY | NOFOLLOW);
|
|
25747
|
-
try {
|
|
25748
|
-
const size = (await handle.stat()).size;
|
|
25749
|
-
const start2 = Math.max(0, size - MAX_READ_BYTES);
|
|
25750
|
-
const buffer = Buffer.alloc(size - start2);
|
|
25751
|
-
await handle.read(buffer, 0, buffer.length, start2);
|
|
25752
|
-
text = buffer.toString("utf8");
|
|
25753
|
-
if (start2 > 0) text = text.slice(text.indexOf("\n") + 1);
|
|
25754
|
-
} finally {
|
|
25755
|
-
await handle.close();
|
|
25756
|
-
}
|
|
25757
|
-
} catch {
|
|
25758
|
-
return { entries: [], lines: 0 };
|
|
25759
|
-
}
|
|
25760
|
-
const entries = [];
|
|
25761
|
-
let lines3 = 0;
|
|
25762
|
-
for (const line of text.split("\n")) {
|
|
25763
|
-
if (line.trim().length === 0) continue;
|
|
25764
|
-
lines3 += 1;
|
|
25765
|
-
const entry = parsePromptHistoryLine(line);
|
|
25766
|
-
if (entry) entries.push(entry);
|
|
25767
|
-
}
|
|
25768
|
-
return { entries, lines: lines3 };
|
|
25769
|
-
}
|
|
25770
|
-
__name(readPromptHistory, "readPromptHistory");
|
|
25771
|
-
async function loggedPromptsOf(s, sessionId) {
|
|
25772
|
-
let records;
|
|
25773
|
-
try {
|
|
25774
|
-
records = await readConversationRecords(s, sessionId, "tolerant");
|
|
25775
|
-
} catch {
|
|
25776
|
-
return [];
|
|
25777
|
-
}
|
|
25778
|
-
if (!records) return [];
|
|
25779
|
-
const log = openConversationLog(s, sessionId);
|
|
25780
|
-
const out = [];
|
|
25781
|
-
for (const record3 of records.records) {
|
|
25782
|
-
if (record3.type !== "message" || record3.role !== "user") continue;
|
|
25783
|
-
let message = record3.content;
|
|
25784
|
-
if (record3.spill) {
|
|
25785
|
-
try {
|
|
25786
|
-
message = JSON.parse(await log.readSpill(record3.spill));
|
|
25787
|
-
} catch {
|
|
25788
|
-
continue;
|
|
25789
|
-
}
|
|
25790
|
-
}
|
|
25791
|
-
if (message.role !== "user" || message.source || typeof message.content !== "string") continue;
|
|
25792
|
-
if (message.content.trim().length === 0) continue;
|
|
25793
|
-
const at = Date.parse(record3.ts);
|
|
25794
|
-
if (!Number.isFinite(at)) continue;
|
|
25795
|
-
out.push({
|
|
25796
|
-
content: message.content,
|
|
25797
|
-
...message.pasted?.length ? { pasted: message.pasted.map(({ start: start2, end }) => ({ start: start2, end })) } : {},
|
|
25798
|
-
timestamp: at
|
|
25799
|
-
});
|
|
25800
|
-
}
|
|
25801
|
-
return out;
|
|
25802
|
-
}
|
|
25803
|
-
__name(loggedPromptsOf, "loggedPromptsOf");
|
|
25804
|
-
async function pastedTextsOf(s, sessionId) {
|
|
25805
|
-
const out = /* @__PURE__ */ new Map();
|
|
25806
|
-
for (const prompt of await loggedPromptsOf(s, sessionId)) {
|
|
25807
|
-
for (const range of prompt.pasted ?? []) {
|
|
25808
|
-
const piece = prompt.content.slice(range.start, range.end);
|
|
25809
|
-
if (piece.length > 0) out.set(sha256Hex(piece), piece);
|
|
25810
|
-
}
|
|
25811
|
-
}
|
|
25812
|
-
return out;
|
|
25813
|
-
}
|
|
25814
|
-
__name(pastedTextsOf, "pastedTextsOf");
|
|
25815
|
-
function rebuild(entry, pastes) {
|
|
25816
|
-
if (!entry.pasted?.length) return entry.display;
|
|
25817
|
-
let out = "";
|
|
25818
|
-
let at = 0;
|
|
25819
|
-
for (const paste of entry.pasted) {
|
|
25820
|
-
const piece = pastes.get(paste.sha256);
|
|
25821
|
-
if (piece === void 0 || piece.length !== paste.length || paste.offset < at) return void 0;
|
|
25822
|
-
out += entry.display.slice(at, paste.offset) + piece;
|
|
25823
|
-
at = paste.offset;
|
|
25824
|
-
}
|
|
25825
|
-
return out + entry.display.slice(at);
|
|
25826
|
-
}
|
|
25827
|
-
__name(rebuild, "rebuild");
|
|
25828
|
-
async function recallPromptHistory(options) {
|
|
25829
|
-
const { entries } = await readPromptHistory(options.home);
|
|
25830
|
-
const limit = options.limit ?? PROMPT_HISTORY_RECALL;
|
|
25831
|
-
const mine = entries.filter(
|
|
25832
|
-
(entry) => entry.project === options.project && entry.sessionId !== options.excludeSession && (options.before === void 0 || entry.timestamp < options.before)
|
|
25833
|
-
).sort((a, b) => a.timestamp - b.timestamp).slice(-limit);
|
|
25834
|
-
const needed = [...new Set(mine.filter((e) => e.pasted?.length).map((e) => e.sessionId))].slice(-MAX_PASTE_SESSIONS).filter((id) => isEntityId(id, "session"));
|
|
25835
|
-
const pastes = /* @__PURE__ */ new Map();
|
|
25836
|
-
for (const id of needed) {
|
|
25837
|
-
try {
|
|
25838
|
-
pastes.set(id, await options.pastesOf(asSessionId(id)));
|
|
25839
|
-
} catch {
|
|
25840
|
-
pastes.set(id, /* @__PURE__ */ new Map());
|
|
25841
|
-
}
|
|
25842
|
-
}
|
|
25843
|
-
const out = [];
|
|
25844
|
-
for (const entry of mine) {
|
|
25845
|
-
const text = rebuild(entry, pastes.get(entry.sessionId) ?? /* @__PURE__ */ new Map());
|
|
25846
|
-
if (text === void 0 || text === out.at(-1)) continue;
|
|
25847
|
-
out.push(text);
|
|
25848
|
-
}
|
|
25849
|
-
return out;
|
|
25850
|
-
}
|
|
25851
|
-
__name(recallPromptHistory, "recallPromptHistory");
|
|
25852
|
-
async function rewritePromptHistory(home, keep, options = {}) {
|
|
25853
|
-
const path = promptHistoryPath(home);
|
|
25854
|
-
return await withHistoryLock(
|
|
25855
|
-
home,
|
|
25856
|
-
async () => {
|
|
25857
|
-
if (await notARegularFile(path)) return 0;
|
|
25858
|
-
let text;
|
|
25859
|
-
try {
|
|
25860
|
-
text = await readFile4(path, "utf8");
|
|
25861
|
-
} catch (error) {
|
|
25862
|
-
if (error.code === "ENOENT") return 0;
|
|
25863
|
-
throw error;
|
|
25864
|
-
}
|
|
25865
|
-
const raw = text.split("\n").filter((line) => line.trim().length > 0);
|
|
25866
|
-
const parsed = raw.map((line) => parsePromptHistoryLine(line));
|
|
25867
|
-
const entries = parsed.filter((entry) => entry !== void 0);
|
|
25868
|
-
const kept = [];
|
|
25869
|
-
let index = 0;
|
|
25870
|
-
let dropped = 0;
|
|
25871
|
-
for (let i = 0; i < raw.length; i++) {
|
|
25872
|
-
const entry = parsed[i];
|
|
25873
|
-
if (entry === void 0) {
|
|
25874
|
-
kept.push(raw[i]);
|
|
25875
|
-
continue;
|
|
25876
|
-
}
|
|
25877
|
-
if (keep(entry, index++, entries)) kept.push(raw[i]);
|
|
25878
|
-
else dropped += 1;
|
|
25879
|
-
}
|
|
25880
|
-
if (dropped === 0) return 0;
|
|
25881
|
-
const body = kept.map((line) => `${line}
|
|
25882
|
-
`).join("");
|
|
25883
|
-
const temporary = `${path}.${process.pid}.${randomBytes3(4).toString("hex")}.tmp`;
|
|
25884
|
-
const handle = await open(temporary, "wx", 384);
|
|
25885
|
-
try {
|
|
25886
|
-
await handle.writeFile(body, "utf8");
|
|
25887
|
-
await handle.sync();
|
|
25888
|
-
} finally {
|
|
25889
|
-
await handle.close();
|
|
25890
|
-
}
|
|
25891
|
-
try {
|
|
25892
|
-
if (await readFile4(temporary, "utf8") !== body)
|
|
25893
|
-
throw new Error("the new copy did not read back as written");
|
|
25894
|
-
await rename(temporary, path);
|
|
25895
|
-
} catch (error) {
|
|
25896
|
-
await unlink(temporary).catch(() => void 0);
|
|
25897
|
-
throw error;
|
|
25898
|
-
}
|
|
25899
|
-
return dropped;
|
|
25900
|
-
},
|
|
25901
|
-
options
|
|
25902
|
-
);
|
|
25903
|
-
}
|
|
25904
|
-
__name(rewritePromptHistory, "rewritePromptHistory");
|
|
25905
|
-
function newestKept() {
|
|
25906
|
-
let chosen;
|
|
25907
|
-
return (_entry, index, entries) => {
|
|
25908
|
-
chosen ??= new Set(
|
|
25909
|
-
entries.map((e, i) => ({ t: e.timestamp, i })).sort((a, b) => b.t - a.t || b.i - a.i).slice(0, PROMPT_HISTORY_KEEP).map((e) => e.i)
|
|
25910
|
-
);
|
|
25911
|
-
return chosen.has(index);
|
|
25912
|
-
};
|
|
25913
|
-
}
|
|
25914
|
-
__name(newestKept, "newestKept");
|
|
25915
|
-
async function trimPromptHistory(home, lines3, options = {}) {
|
|
25916
|
-
if (lines3 <= PROMPT_HISTORY_KEEP + TRIM_SLACK) return 0;
|
|
25917
|
-
try {
|
|
25918
|
-
return await rewritePromptHistory(home, newestKept(), options);
|
|
25919
|
-
} catch {
|
|
25920
|
-
return 0;
|
|
25921
|
-
}
|
|
25922
|
-
}
|
|
25923
|
-
__name(trimPromptHistory, "trimPromptHistory");
|
|
25924
|
-
async function seedPromptHistory(options) {
|
|
25925
|
-
const marker = join12(options.projectDir, PROMPT_HISTORY_SEEDED_MARKER);
|
|
25926
|
-
const seeded = /* @__PURE__ */ __name(async () => {
|
|
25927
|
-
try {
|
|
25928
|
-
await stat2(marker);
|
|
25929
|
-
return true;
|
|
25930
|
-
} catch {
|
|
25931
|
-
return false;
|
|
25932
|
-
}
|
|
25933
|
-
}, "seeded");
|
|
25934
|
-
if (await seeded()) return 0;
|
|
25935
|
-
const ids = (await options.conversations()).slice(0, PROMPT_HISTORY_SEED_SESSIONS);
|
|
25936
|
-
const candidates = [];
|
|
25937
|
-
for (const id of ids) {
|
|
25938
|
-
for (const prompt of await options.promptsOf(id)) {
|
|
25939
|
-
const entry = promptHistoryEntryFor({
|
|
25940
|
-
text: prompt.content,
|
|
25941
|
-
...prompt.pasted ? { pasted: prompt.pasted } : {},
|
|
25942
|
-
project: options.project,
|
|
25943
|
-
sessionId: id,
|
|
25944
|
-
timestamp: prompt.timestamp
|
|
25945
|
-
});
|
|
25946
|
-
if (entry) candidates.push(entry);
|
|
25947
|
-
}
|
|
25948
|
-
}
|
|
25949
|
-
const key = /* @__PURE__ */ __name((entry) => JSON.stringify([
|
|
25950
|
-
entry.sessionId,
|
|
25951
|
-
entry.display,
|
|
25952
|
-
(entry.pasted ?? []).map((paste) => paste.sha256)
|
|
25953
|
-
]), "key");
|
|
25954
|
-
await mkdir(options.home, { recursive: true, mode: 448 });
|
|
25955
|
-
return await withHistoryLock(
|
|
25956
|
-
options.home,
|
|
25957
|
-
async () => {
|
|
25958
|
-
if (await seeded()) return 0;
|
|
25959
|
-
const present = /* @__PURE__ */ new Map();
|
|
25960
|
-
for (const entry of (await readPromptHistory(options.home)).entries) {
|
|
25961
|
-
const k = key(entry);
|
|
25962
|
-
present.set(k, (present.get(k) ?? 0) + 1);
|
|
25963
|
-
}
|
|
25964
|
-
const fresh = candidates.sort((a, b) => a.timestamp - b.timestamp).filter((entry) => {
|
|
25965
|
-
const k = key(entry);
|
|
25966
|
-
const left = present.get(k) ?? 0;
|
|
25967
|
-
if (left === 0) return true;
|
|
25968
|
-
present.set(k, left - 1);
|
|
25969
|
-
return false;
|
|
25970
|
-
}).slice(-PROMPT_HISTORY_KEEP);
|
|
25971
|
-
await appendLines(
|
|
25972
|
-
options.home,
|
|
25973
|
-
fresh.map((entry) => JSON.stringify(entry))
|
|
25974
|
-
);
|
|
25975
|
-
await writeFile2(marker, `${(/* @__PURE__ */ new Date()).toISOString()}
|
|
25976
|
-
`, { mode: 384, flag: "w" });
|
|
25977
|
-
return fresh.length;
|
|
25978
|
-
},
|
|
25979
|
-
options
|
|
25980
|
-
);
|
|
25981
|
-
}
|
|
25982
|
-
__name(seedPromptHistory, "seedPromptHistory");
|
|
25983
|
-
|
|
25984
|
-
// src/integrations/sessions/cleanup.ts
|
|
25985
25587
|
var DEFAULT_CLEANUP_PERIOD_DAYS = 30;
|
|
25986
25588
|
var CLEANUP_EVERY_MS = 24 * 60 * 60 * 1e3;
|
|
25987
25589
|
var CLEANUP_NOTICE_GRACE_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
@@ -26044,7 +25646,7 @@ function scheduleBoundSessions(home) {
|
|
|
26044
25646
|
if (name.startsWith(".")) continue;
|
|
26045
25647
|
let text;
|
|
26046
25648
|
try {
|
|
26047
|
-
text = readFileSync5(
|
|
25649
|
+
text = readFileSync5(join12(paths.jobs, name), "utf8");
|
|
26048
25650
|
} catch (error) {
|
|
26049
25651
|
if (error.code === "ENOENT") continue;
|
|
26050
25652
|
throw error;
|
|
@@ -26056,7 +25658,7 @@ function scheduleBoundSessions(home) {
|
|
|
26056
25658
|
for (const match of text.matchAll(SESSION_ID_IN_TEXT)) bound.add(match[0]);
|
|
26057
25659
|
}
|
|
26058
25660
|
}
|
|
26059
|
-
for (const name of list(
|
|
25661
|
+
for (const name of list(join12(paths.root, "deliveries"))) bound.add(name);
|
|
26060
25662
|
return bound;
|
|
26061
25663
|
}
|
|
26062
25664
|
__name(scheduleBoundSessions, "scheduleBoundSessions");
|
|
@@ -26088,7 +25690,7 @@ async function newestChange(path) {
|
|
|
26088
25690
|
const current = pending.pop();
|
|
26089
25691
|
let entry;
|
|
26090
25692
|
try {
|
|
26091
|
-
entry = await
|
|
25693
|
+
entry = await lstat2(current);
|
|
26092
25694
|
} catch (error) {
|
|
26093
25695
|
if (error.code === "ENOENT") continue;
|
|
26094
25696
|
throw error;
|
|
@@ -26098,7 +25700,7 @@ async function newestChange(path) {
|
|
|
26098
25700
|
const names = await readdir(current);
|
|
26099
25701
|
seen += names.length;
|
|
26100
25702
|
if (seen > MAX_FOLDER_ENTRIES) return void 0;
|
|
26101
|
-
for (const name of names) pending.push(
|
|
25703
|
+
for (const name of names) pending.push(join12(current, name));
|
|
26102
25704
|
}
|
|
26103
25705
|
return newest;
|
|
26104
25706
|
}
|
|
@@ -26132,7 +25734,7 @@ async function sweepProject(home, slug, cutoff, remove, gates, tally) {
|
|
|
26132
25734
|
if (!await isOld(logPath, dir, cutoff)) continue;
|
|
26133
25735
|
const hasLog = logs.has(raw);
|
|
26134
25736
|
if (hasLog) {
|
|
26135
|
-
const entry = await
|
|
25737
|
+
const entry = await lstat2(logPath);
|
|
26136
25738
|
if (!entry.isFile()) {
|
|
26137
25739
|
tally.kept += 1;
|
|
26138
25740
|
continue;
|
|
@@ -26143,7 +25745,7 @@ async function sweepProject(home, slug, cutoff, remove, gates, tally) {
|
|
|
26143
25745
|
continue;
|
|
26144
25746
|
}
|
|
26145
25747
|
} else {
|
|
26146
|
-
const entry = await
|
|
25748
|
+
const entry = await lstat2(dir);
|
|
26147
25749
|
if (!entry.isDirectory()) continue;
|
|
26148
25750
|
if (isLeaseLive(await readSessionLease(dir).catch(() => null), Date.now())) {
|
|
26149
25751
|
tally.kept += 1;
|
|
@@ -26182,7 +25784,7 @@ async function removeConversation(paths, id, hasLog, cutoff, tempRoot, slug) {
|
|
|
26182
25784
|
});
|
|
26183
25785
|
if (!lease) return false;
|
|
26184
25786
|
const facts = await readConversationFacts({ paths }, id, "tolerant").catch(() => null);
|
|
26185
|
-
const log = await
|
|
25787
|
+
const log = await stat2(logPath).catch(() => void 0);
|
|
26186
25788
|
if (!facts || facts.activeTurn || !log || log.mtimeMs >= cutoff) {
|
|
26187
25789
|
await new DiskSessionLeaseStore(dir).release(lease).catch(() => void 0);
|
|
26188
25790
|
return false;
|
|
@@ -26191,12 +25793,12 @@ async function removeConversation(paths, id, hasLog, cutoff, tempRoot, slug) {
|
|
|
26191
25793
|
}
|
|
26192
25794
|
await rm3(dir, { recursive: true, force: true });
|
|
26193
25795
|
if (tempRoot)
|
|
26194
|
-
await rm3(
|
|
25796
|
+
await rm3(join12(tempRoot, slug, id), { recursive: true, force: true }).catch(() => void 0);
|
|
26195
25797
|
return true;
|
|
26196
25798
|
}
|
|
26197
25799
|
__name(removeConversation, "removeConversation");
|
|
26198
25800
|
async function markCleanupNoticeShown(home, now = Date.now()) {
|
|
26199
|
-
const statePath =
|
|
25801
|
+
const statePath = join12(home, CLEANUP_STATE_FILE);
|
|
26200
25802
|
try {
|
|
26201
25803
|
await withAccountLock(`${statePath}.lock`, async () => {
|
|
26202
25804
|
const state = readState2(statePath);
|
|
@@ -26220,7 +25822,7 @@ async function runCleanup(options) {
|
|
|
26220
25822
|
if (periodDays === void 0 || !Number.isSafeInteger(periodDays) || periodDays < 1)
|
|
26221
25823
|
return NOT_RUN;
|
|
26222
25824
|
const now = options.now ?? Date.now();
|
|
26223
|
-
const statePath =
|
|
25825
|
+
const statePath = join12(home, CLEANUP_STATE_FILE);
|
|
26224
25826
|
return await withAccountLock(`${statePath}.lock`, async () => {
|
|
26225
25827
|
const state = readState2(statePath);
|
|
26226
25828
|
const everyMs = options.everyMs ?? CLEANUP_EVERY_MS;
|
|
@@ -26243,15 +25845,15 @@ async function runCleanup(options) {
|
|
|
26243
25845
|
const tally = { conversations: 0, folders: 0, kept: 0 };
|
|
26244
25846
|
let slugs = [];
|
|
26245
25847
|
try {
|
|
26246
|
-
const projects =
|
|
26247
|
-
const top = await
|
|
25848
|
+
const projects = join12(home, "projects");
|
|
25849
|
+
const top = await lstat2(projects);
|
|
26248
25850
|
if (top.isDirectory() && !top.isSymbolicLink()) slugs = await readdir(projects);
|
|
26249
25851
|
} catch {
|
|
26250
25852
|
slugs = [];
|
|
26251
25853
|
}
|
|
26252
25854
|
for (const slug of slugs) {
|
|
26253
25855
|
try {
|
|
26254
|
-
const entry = await
|
|
25856
|
+
const entry = await lstat2(join12(home, "projects", slug));
|
|
26255
25857
|
if (!entry.isDirectory() || entry.isSymbolicLink()) continue;
|
|
26256
25858
|
} catch {
|
|
26257
25859
|
continue;
|
|
@@ -26274,7 +25876,7 @@ async function runCleanup(options) {
|
|
|
26274
25876
|
now,
|
|
26275
25877
|
keep: gates.keep,
|
|
26276
25878
|
isSessionLive: /* @__PURE__ */ __name(async (slug, sessionId) => gates.onScreen.has(sessionId) || isLeaseLive(
|
|
26277
|
-
await readSessionLease(
|
|
25879
|
+
await readSessionLease(join12(home, "projects", slug, sessionId)),
|
|
26278
25880
|
Date.now()
|
|
26279
25881
|
), "isSessionLive")
|
|
26280
25882
|
}).catch(() => void 0);
|
|
@@ -26282,7 +25884,7 @@ async function runCleanup(options) {
|
|
|
26282
25884
|
if (!options.explicit && !told && tally.conversations > 0) {
|
|
26283
25885
|
const from = new Date(now + CLEANUP_NOTICE_GRACE_MS).toISOString().slice(0, 10);
|
|
26284
25886
|
const count2 = tally.conversations === 1 ? "1 conversation" : `${tally.conversations} conversations`;
|
|
26285
|
-
notice = `Namzu keeps conversations on this computer for ${periodDays} days. From ${from} it removes older ones: ${count2} now. To keep them longer, set cleanupPeriodDays in ${options.settingsFile ??
|
|
25887
|
+
notice = `Namzu keeps conversations on this computer for ${periodDays} days. From ${from} it removes older ones: ${count2} now. To keep them longer, set cleanupPeriodDays in ${options.settingsFile ?? join12(home, "config.yaml")}, for example to 3650.`;
|
|
26286
25888
|
}
|
|
26287
25889
|
return {
|
|
26288
25890
|
ran: true,
|
|
@@ -26377,7 +25979,7 @@ async function cleanupOnStart(start2, show2) {
|
|
|
26377
25979
|
}
|
|
26378
25980
|
return answer;
|
|
26379
25981
|
}, "isTrusted"),
|
|
26380
|
-
settingsFile: homePath(
|
|
25982
|
+
settingsFile: homePath(join13(root, "config.yaml"))
|
|
26381
25983
|
});
|
|
26382
25984
|
if (report.notice && show2(report.notice)) await markCleanupNoticeShown(root);
|
|
26383
25985
|
}
|
|
@@ -26753,13 +26355,13 @@ async function fastModeVerdict(providerId, model, options = {}) {
|
|
|
26753
26355
|
if (tier === "ultrafast") {
|
|
26754
26356
|
return refuse("Ultrafast is not offered on Anthropic models. /fast turns on fast mode.");
|
|
26755
26357
|
}
|
|
26756
|
-
const { resolveFastModeVerdict: resolveFastModeVerdict2 } = await import("./dist-
|
|
26358
|
+
const { resolveFastModeVerdict: resolveFastModeVerdict2 } = await import("./dist-V43PPTPF.js");
|
|
26757
26359
|
const verdict2 = resolveFastModeVerdict2(model, now);
|
|
26758
26360
|
return verdict2.ok ? { ok: true, provider: "anthropic", tier: "fast", rate: { kind: "billing", multiplier: 2 } } : refuse(verdict2.reason);
|
|
26759
26361
|
}
|
|
26760
26362
|
if (!model) return refuse("Fast mode needs a model; pick one with /model.");
|
|
26761
26363
|
const otherHost = providerId === "openai" ? options.otherHost === void 0 ? openAIThirdPartyHost() ?? null : options.otherHost : null;
|
|
26762
|
-
const { resolveFastModeVerdict } = await import("./dist-
|
|
26364
|
+
const { resolveFastModeVerdict } = await import("./dist-5G52QS75.js");
|
|
26763
26365
|
const verdict = resolveFastModeVerdict({
|
|
26764
26366
|
route: providerId === "openai" ? "api" : "subscription",
|
|
26765
26367
|
model,
|
|
@@ -26899,15 +26501,15 @@ function messageLines(message, hasPrev, raw, columns) {
|
|
|
26899
26501
|
${hiddenTextRule(hiddenTextNote(cut3), 20)}
|
|
26900
26502
|
${cut3.tail}`;
|
|
26901
26503
|
const group = message.group !== void 0 && !isOneCommand(message.group) ? message.group : void 0;
|
|
26902
|
-
const
|
|
26504
|
+
const open = group !== void 0 && message.pending === true;
|
|
26903
26505
|
return [
|
|
26904
26506
|
...hasPrev && message.glyph !== "\u23BF" ? [""] : [],
|
|
26905
|
-
` ${shown}${meta ? ` \xB7 ${meta}` : ""}${
|
|
26507
|
+
` ${shown}${meta ? ` \xB7 ${meta}` : ""}${open ? ` ${EXPAND_HINT}` : ""}`,
|
|
26906
26508
|
...(message.attachments ?? []).map((row2) => ` ${terminalDisplayText(attachmentLine(row2))}`),
|
|
26907
26509
|
...group ? commandRows(group, (columns ?? 80) - COMMAND_ROW_INDENT - 1).map(
|
|
26908
26510
|
(line) => ` ${terminalDisplayText(line)}`
|
|
26909
26511
|
) : [],
|
|
26910
|
-
...
|
|
26512
|
+
...open && group ? hintRows(group).map((line) => ` ${terminalDisplayText(line)}`) : [],
|
|
26911
26513
|
...renderedDetailLines(message, columns)
|
|
26912
26514
|
];
|
|
26913
26515
|
}
|
|
@@ -27060,8 +26662,8 @@ __name(memoryUsedRow, "memoryUsedRow");
|
|
|
27060
26662
|
function nextTask(tasks) {
|
|
27061
26663
|
const pending = tasks.filter((task) => task.status === "pending");
|
|
27062
26664
|
if (pending.length === 0) return void 0;
|
|
27063
|
-
const
|
|
27064
|
-
return pending.find((task) => !(task.blockedBy ?? []).some((id) =>
|
|
26665
|
+
const open = new Set(tasks.filter((task) => task.status !== "completed").map((task) => task.id));
|
|
26666
|
+
return pending.find((task) => !(task.blockedBy ?? []).some((id) => open.has(id))) ?? pending[0];
|
|
27065
26667
|
}
|
|
27066
26668
|
__name(nextTask, "nextTask");
|
|
27067
26669
|
function nextTaskLine(task) {
|
|
@@ -27069,6 +26671,69 @@ function nextTaskLine(task) {
|
|
|
27069
26671
|
}
|
|
27070
26672
|
__name(nextTaskLine, "nextTaskLine");
|
|
27071
26673
|
|
|
26674
|
+
// src/tui/notice-display.ts
|
|
26675
|
+
var NOTICE_FRAME = /^<namzu-notice-([0-9a-f]+) kind="[a-z-]+">\n[^\n]*\n(?:Namzu sent this automatically[^\n]*\n)?[^\n]*\n([\s\S]*)\n<\/namzu-notice-\1>$/;
|
|
26676
|
+
function withoutNoticeFrame(text) {
|
|
26677
|
+
const trimmed = text.trim();
|
|
26678
|
+
const inside = NOTICE_FRAME.exec(trimmed)?.[2];
|
|
26679
|
+
return inside === void 0 ? text : inside;
|
|
26680
|
+
}
|
|
26681
|
+
__name(withoutNoticeFrame, "withoutNoticeFrame");
|
|
26682
|
+
var WORKFLOW_HEAD = /^Workflow "(.+)" \([0-9a-z]+\) (completed|failed|was stopped)/;
|
|
26683
|
+
var USAGE = /^<usage>(.*)<\/usage>$/m;
|
|
26684
|
+
var JOB_HEAD = /^Background job \S+ \((.*)\) (exited with code (\d+)|was stopped)/;
|
|
26685
|
+
function usageNumber(usage, key) {
|
|
26686
|
+
const found = new RegExp(`(?:^|, )${key}: (\\d+)`).exec(usage)?.[1];
|
|
26687
|
+
return found === void 0 ? void 0 : Number(found);
|
|
26688
|
+
}
|
|
26689
|
+
__name(usageNumber, "usageNumber");
|
|
26690
|
+
function workflowLine(text) {
|
|
26691
|
+
const head2 = WORKFLOW_HEAD.exec(text);
|
|
26692
|
+
if (!head2) return void 0;
|
|
26693
|
+
const word = head2[2] === "completed" ? "finished" : head2[2] === "failed" ? "failed" : "stopped";
|
|
26694
|
+
const usage = USAGE.exec(text)?.[1] ?? "";
|
|
26695
|
+
const duration = /duration: ([^,<]+)/.exec(usage)?.[1]?.trim();
|
|
26696
|
+
const agents = usageNumber(usage, "agents");
|
|
26697
|
+
const tokens = usageNumber(usage, "tokens");
|
|
26698
|
+
return [
|
|
26699
|
+
`Workflow ${head2[1].replace(/\s+/g, " ")} ${word}`,
|
|
26700
|
+
...duration ? [duration] : [],
|
|
26701
|
+
...agents !== void 0 && agents > 0 ? [workflowAgentTotal(agents)] : [],
|
|
26702
|
+
...tokens !== void 0 && tokens > 0 ? [`${formatCompactCount(tokens)} tokens`] : []
|
|
26703
|
+
].join(" \xB7 ");
|
|
26704
|
+
}
|
|
26705
|
+
__name(workflowLine, "workflowLine");
|
|
26706
|
+
function jobLines(text) {
|
|
26707
|
+
const out = [];
|
|
26708
|
+
for (const line of text.split("\n")) {
|
|
26709
|
+
const job = JOB_HEAD.exec(line.replace(/^- /, ""));
|
|
26710
|
+
if (!job) continue;
|
|
26711
|
+
out.push(
|
|
26712
|
+
jobExitRow({
|
|
26713
|
+
command: job[1],
|
|
26714
|
+
status: job[2] === "was stopped" ? "killed" : "exited",
|
|
26715
|
+
...job[3] !== void 0 ? { exitCode: Number(job[3]) } : {}
|
|
26716
|
+
}).text
|
|
26717
|
+
);
|
|
26718
|
+
}
|
|
26719
|
+
return out;
|
|
26720
|
+
}
|
|
26721
|
+
__name(jobLines, "jobLines");
|
|
26722
|
+
function noticeDisplay(content) {
|
|
26723
|
+
const body = withoutUntrustedFrames(withoutNoticeFrame(content)).trim();
|
|
26724
|
+
const workflow = workflowLine(body);
|
|
26725
|
+
if (workflow !== void 0) return { label: workflow, detail: [] };
|
|
26726
|
+
const jobs = jobLines(body);
|
|
26727
|
+
if (jobs.length > 0) {
|
|
26728
|
+
return {
|
|
26729
|
+
label: jobs.length === 1 ? jobs[0] : `${jobs[0]} and ${jobs.length - 1} more`,
|
|
26730
|
+
detail: []
|
|
26731
|
+
};
|
|
26732
|
+
}
|
|
26733
|
+
return { detail: [body.replace(/<\/?namzu-(?:notice|untrusted)-[^>]*>/g, "")] };
|
|
26734
|
+
}
|
|
26735
|
+
__name(noticeDisplay, "noticeDisplay");
|
|
26736
|
+
|
|
27072
26737
|
// src/tui/notices.ts
|
|
27073
26738
|
function isRepeatedNotice(last, candidate) {
|
|
27074
26739
|
if (!last || candidate.role !== "system" || last.role !== "system") return false;
|
|
@@ -27365,7 +27030,7 @@ var AskQueue = class {
|
|
|
27365
27030
|
};
|
|
27366
27031
|
|
|
27367
27032
|
// src/tui/plugin-view.ts
|
|
27368
|
-
import { join as
|
|
27033
|
+
import { join as join14 } from "node:path";
|
|
27369
27034
|
function pluginOption(plugin) {
|
|
27370
27035
|
return {
|
|
27371
27036
|
label: plugin.name,
|
|
@@ -27409,9 +27074,9 @@ function emptyPluginReport(config, cwd) {
|
|
|
27409
27074
|
const reason = config?.enabled !== true ? "Plugins are off. Set plugins.enabled: true in your Namzu configuration to load trusted plugins at startup." : config.autoDiscovery === false ? "Plugin discovery is off (plugins.autoDiscovery: false)." : scopes.length === 0 ? "No plugin scopes are allowed (plugins.allowedScopes: [])." : "No plugins are loaded in this conversation.";
|
|
27410
27075
|
return [
|
|
27411
27076
|
reason,
|
|
27412
|
-
`Configuration: ${
|
|
27413
|
-
...scopes.includes("project") ? [`Project plugins: ${
|
|
27414
|
-
...scopes.includes("user") ? [`User plugins: ${
|
|
27077
|
+
`Configuration: ${join14(home, "config.yaml")}`,
|
|
27078
|
+
...scopes.includes("project") ? [`Project plugins: ${join14(cwd, ".namzu", "plugins")}`] : [],
|
|
27079
|
+
...scopes.includes("user") ? [`User plugins: ${join14(home, "plugins")}`] : [],
|
|
27415
27080
|
"Each plugin directory contains plugin.json. Only Namzu plugin manifests are supported.",
|
|
27416
27081
|
"Tools, hooks and MCP servers can execute code. Enable only plugins you trust, then restart Namzu."
|
|
27417
27082
|
].map(choiceDisplayText).join("\n");
|
|
@@ -28026,7 +27691,7 @@ __name(noResumeText, "noResumeText");
|
|
|
28026
27691
|
import { isAbsolute as isAbsolute4, relative as relative3, resolve as resolve4 } from "node:path";
|
|
28027
27692
|
|
|
28028
27693
|
// src/tui/schedule/loop-host.ts
|
|
28029
|
-
import { randomBytes as
|
|
27694
|
+
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
28030
27695
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
28031
27696
|
var MAX_LOOPS = 20;
|
|
28032
27697
|
var LOOP_LIFETIME_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
@@ -28094,7 +27759,7 @@ var SessionLoopScheduler = class {
|
|
|
28094
27759
|
const now = new Date(this.#now());
|
|
28095
27760
|
const spec = request.interval === void 0 ? void 0 : loopSpec(request.interval, now);
|
|
28096
27761
|
const loop = {
|
|
28097
|
-
id:
|
|
27762
|
+
id: randomBytes3(3).toString("hex"),
|
|
28098
27763
|
schedule: spec ? describeSchedule(spec, { tz: hostTimeZone() }) : "self-paced",
|
|
28099
27764
|
prompt: request.prompt,
|
|
28100
27765
|
createdAt: now.toISOString(),
|
|
@@ -28254,7 +27919,7 @@ function describeLoopSchedule(l) {
|
|
|
28254
27919
|
__name(describeLoopSchedule, "describeLoopSchedule");
|
|
28255
27920
|
|
|
28256
27921
|
// src/tui/schedule/host-commands.ts
|
|
28257
|
-
var
|
|
27922
|
+
var USAGE2 = [
|
|
28258
27923
|
"/schedule jobs, and what needs you",
|
|
28259
27924
|
"/schedule confirm <job> confirm a job created without a terminal, or held after an edit",
|
|
28260
27925
|
"/schedule pause|resume <job>",
|
|
@@ -28481,7 +28146,7 @@ async function runScheduleCommand(args, ctx) {
|
|
|
28481
28146
|
ctx.say(await listScheduleJobs(ctx));
|
|
28482
28147
|
return;
|
|
28483
28148
|
case "help":
|
|
28484
|
-
say(
|
|
28149
|
+
say(USAGE2);
|
|
28485
28150
|
return;
|
|
28486
28151
|
case "confirm": {
|
|
28487
28152
|
const job = findJob(paths, rest[0] ?? "");
|
|
@@ -28623,7 +28288,7 @@ For anything else: namzu schedule add --help`
|
|
|
28623
28288
|
return;
|
|
28624
28289
|
}
|
|
28625
28290
|
default:
|
|
28626
|
-
say(
|
|
28291
|
+
say(USAGE2);
|
|
28627
28292
|
}
|
|
28628
28293
|
} catch (error) {
|
|
28629
28294
|
say(
|
|
@@ -28794,7 +28459,7 @@ function scheduledResumeMismatch(job, environment) {
|
|
|
28794
28459
|
reasons.push("the job has no model; edit and confirm it again");
|
|
28795
28460
|
} else if (job.model && environment.providers && !environment.providers.includes(job.model.provider)) {
|
|
28796
28461
|
reasons.push(
|
|
28797
|
-
`the job runs on ${job.model.provider}${job.model.model ? `/${job.model.model}` : ""} and this conversation has no credential for ${job.model.provider} (sign in with \`namzu login\`, or set its API key)`
|
|
28462
|
+
`the job runs on ${job.model.provider}${job.model.model ? `/${job.model.model}` : ""} and this conversation has no credential for ${job.model.provider} (sign in with \`namzu auth login\`, or set its API key)`
|
|
28798
28463
|
);
|
|
28799
28464
|
}
|
|
28800
28465
|
return reasons;
|
|
@@ -28938,7 +28603,7 @@ __name(prepareScheduledResume, "prepareScheduledResume");
|
|
|
28938
28603
|
|
|
28939
28604
|
// src/tui/schedule/startup.ts
|
|
28940
28605
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
28941
|
-
import { join as
|
|
28606
|
+
import { join as join15 } from "node:path";
|
|
28942
28607
|
function ago(ms) {
|
|
28943
28608
|
if (ms < 36e5) return `${Math.max(1, Math.round(ms / 6e4))} min`;
|
|
28944
28609
|
if (ms < 1728e5) return `${Math.round(ms / 36e5)} h`;
|
|
@@ -29022,7 +28687,7 @@ function scheduleStartupLine(home, cwd, now = Date.now()) {
|
|
|
29022
28687
|
parts.push("The scheduler is installed but has not started \u2014 namzu schedule service status");
|
|
29023
28688
|
}
|
|
29024
28689
|
}
|
|
29025
|
-
const suppressed = takeSuppressedCount(
|
|
28690
|
+
const suppressed = takeSuppressedCount(join15(paths.daemon, "notify.json"));
|
|
29026
28691
|
if (suppressed > 0)
|
|
29027
28692
|
parts.push(
|
|
29028
28693
|
`${plural(suppressed, "scheduled notification")} ${suppressed === 1 ? "was" : "were"} held back`
|
|
@@ -29040,7 +28705,7 @@ function scheduleStartupLine(home, cwd, now = Date.now()) {
|
|
|
29040
28705
|
__name(scheduleStartupLine, "scheduleStartupLine");
|
|
29041
28706
|
|
|
29042
28707
|
// src/tui/schedule/timer-host.ts
|
|
29043
|
-
import { randomBytes as
|
|
28708
|
+
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
29044
28709
|
var MAX_TIMERS = 50;
|
|
29045
28710
|
var TIMER_LIFETIME_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
29046
28711
|
var RECURRING_JITTER_FRACTION = 0.5;
|
|
@@ -29112,7 +28777,7 @@ var SessionTimerScheduler = class {
|
|
|
29112
28777
|
const now = this.#now();
|
|
29113
28778
|
const spec = timerSpec(request.when, request.recurring, new Date(now));
|
|
29114
28779
|
const recurring = request.recurring && spec.kind !== "at";
|
|
29115
|
-
const id =
|
|
28780
|
+
const id = randomBytes4(3).toString("hex");
|
|
29116
28781
|
const jitter = Number.parseInt(id, 16) / 16777216;
|
|
29117
28782
|
const nextAt = this.#plan(spec, recurring, jitter, now, now);
|
|
29118
28783
|
if (nextAt === null) throw new Error(`"${request.when}" does not fire again.`);
|
|
@@ -29222,7 +28887,7 @@ async function credentialText(provider) {
|
|
|
29222
28887
|
(d) => d.entry.id === provider
|
|
29223
28888
|
);
|
|
29224
28889
|
if (!found)
|
|
29225
|
-
return `no ${provider} credential found here; the scheduler must find one (namzu login or daemon.env)`;
|
|
28890
|
+
return `no ${provider} credential found here; the scheduler must find one (namzu auth login or daemon.env)`;
|
|
29226
28891
|
const source = found.source;
|
|
29227
28892
|
return source.kind === "env" ? `environment variable ${source.envName ?? ""} (a service does not see your shell\u2019s variables)` : `${source.kind}${source.path ? ` (${source.path})` : ""}`;
|
|
29228
28893
|
} catch {
|
|
@@ -30268,11 +29933,11 @@ __name(setSkillSuggestions, "setSkillSuggestions");
|
|
|
30268
29933
|
|
|
30269
29934
|
// src/tui/skills/suggestion-ledger.ts
|
|
30270
29935
|
import { mkdirSync as mkdirSync5, readFileSync as readFileSync8, renameSync as renameSync4, writeFileSync as writeFileSync5 } from "node:fs";
|
|
30271
|
-
import { dirname as dirname2, join as
|
|
29936
|
+
import { dirname as dirname2, join as join16 } from "node:path";
|
|
30272
29937
|
var SUGGESTION_IGNORE_LIMIT = 3;
|
|
30273
29938
|
var FRESH_LEDGER = { v: 1, unanswered: 0, stopped: false };
|
|
30274
29939
|
function suggestionLedgerPath(namzuHome) {
|
|
30275
|
-
return
|
|
29940
|
+
return join16(namzuHome, "skills", ".suggestions.json");
|
|
30276
29941
|
}
|
|
30277
29942
|
__name(suggestionLedgerPath, "suggestionLedgerPath");
|
|
30278
29943
|
function readSuggestionLedger(namzuHome) {
|
|
@@ -31333,7 +30998,7 @@ var EXIT_HINT_MS = 800;
|
|
|
31333
30998
|
// src/tui/extension-indicators.ts
|
|
31334
30999
|
var import_react23 = __toESM(require_react(), 1);
|
|
31335
31000
|
import { existsSync as existsSync3 } from "node:fs";
|
|
31336
|
-
import { join as
|
|
31001
|
+
import { join as join17 } from "node:path";
|
|
31337
31002
|
function useExtensionIndicators() {
|
|
31338
31003
|
const [marks, setMarks] = (0, import_react23.useState)([]);
|
|
31339
31004
|
(0, import_react23.useEffect)(() => {
|
|
@@ -31341,7 +31006,7 @@ function useExtensionIndicators() {
|
|
|
31341
31006
|
let off;
|
|
31342
31007
|
let shared;
|
|
31343
31008
|
try {
|
|
31344
|
-
if (!existsSync3(
|
|
31009
|
+
if (!existsSync3(join17(namzuHomePath(), "extensions"))) return;
|
|
31345
31010
|
const host = sharedExtensionHost("cli");
|
|
31346
31011
|
shared = host;
|
|
31347
31012
|
const read = /* @__PURE__ */ __name(() => {
|
|
@@ -32656,6 +32321,25 @@ function useStatusLine(options) {
|
|
|
32656
32321
|
}
|
|
32657
32322
|
__name(useStatusLine, "useStatusLine");
|
|
32658
32323
|
|
|
32324
|
+
// src/tui/stopped-turn-line.ts
|
|
32325
|
+
function isCallNotRun(output) {
|
|
32326
|
+
if (output === void 0) return false;
|
|
32327
|
+
if (isReviewRefusalResult(output)) return true;
|
|
32328
|
+
const match = /^Error: Tool "[^"]*" was not executed\. /.exec(output);
|
|
32329
|
+
if (match === null) return false;
|
|
32330
|
+
const reason = output.slice(match[0].length);
|
|
32331
|
+
return reason.startsWith(AUTO_REVIEW_UNAVAILABLE_PREFIX) || reason.startsWith(AUTO_REVIEW_BLOCKED_PREFIX);
|
|
32332
|
+
}
|
|
32333
|
+
__name(isCallNotRun, "isCallNotRun");
|
|
32334
|
+
function stoppedTurnLine(input) {
|
|
32335
|
+
const changed2 = input.outcome?.changes.total ?? 0;
|
|
32336
|
+
const maybe = input.outcome !== void 0 && (input.outcome.verdict === "unknown" || input.outcome.changes.outsideKnownTools === true);
|
|
32337
|
+
const done = changed2 > 0 ? `changed ${changed2} ${changed2 === 1 ? "file" : "files"} so far${maybe ? " and a command may have changed more" : ""}` : maybe ? "some files may have changed" : "nothing was changed";
|
|
32338
|
+
const left = input.notRun > 0 ? `${input.notRun} ${input.notRun === 1 ? "call" : "calls"} not run` : "the rest of the task is not done";
|
|
32339
|
+
return `Stopped before the task was finished \xB7 ${done} \xB7 ${left} \xB7 send a message to carry on`;
|
|
32340
|
+
}
|
|
32341
|
+
__name(stoppedTurnLine, "stoppedTurnLine");
|
|
32342
|
+
|
|
32659
32343
|
// src/tui/terminal-title.ts
|
|
32660
32344
|
var DEFAULT_TERMINAL_TITLE = "Namzu";
|
|
32661
32345
|
var IDLE_TITLE_GLYPH = "\u2733";
|
|
@@ -32975,13 +32659,13 @@ function useReadSearchGroup(setMessages, nextId, takeThinking) {
|
|
|
32975
32659
|
const openRef = (0, import_react29.useRef)(null);
|
|
32976
32660
|
const start2 = (0, import_react29.useCallback)(
|
|
32977
32661
|
(memberKey, op, section) => {
|
|
32978
|
-
const
|
|
32979
|
-
if (
|
|
32980
|
-
|
|
32981
|
-
|
|
32982
|
-
|
|
32983
|
-
if (section)
|
|
32984
|
-
const { id: id2, state: state2, detail: detail2 } =
|
|
32662
|
+
const open = openRef.current;
|
|
32663
|
+
if (open) {
|
|
32664
|
+
open.state = foldOp(open.state, op);
|
|
32665
|
+
open.ops.push({ key: memberKey, op });
|
|
32666
|
+
open.members.add(memberKey);
|
|
32667
|
+
if (section) open.detail = joinSections(open.detail, section);
|
|
32668
|
+
const { id: id2, state: state2, detail: detail2 } = open;
|
|
32985
32669
|
const more = takeThinking?.();
|
|
32986
32670
|
setMessages(
|
|
32987
32671
|
(prev) => prev.map(
|
|
@@ -33026,10 +32710,10 @@ function useReadSearchGroup(setMessages, nextId, takeThinking) {
|
|
|
33026
32710
|
);
|
|
33027
32711
|
const finish = (0, import_react29.useCallback)(
|
|
33028
32712
|
(memberKey, section) => {
|
|
33029
|
-
const
|
|
33030
|
-
if (!
|
|
33031
|
-
|
|
33032
|
-
const { id, detail } =
|
|
32713
|
+
const open = openRef.current;
|
|
32714
|
+
if (!open?.members.has(memberKey)) return false;
|
|
32715
|
+
open.detail = joinSections(open.detail, section);
|
|
32716
|
+
const { id, detail } = open;
|
|
33033
32717
|
setMessages((prev) => prev.map((m) => m.id === id ? { ...m, detail } : m));
|
|
33034
32718
|
return true;
|
|
33035
32719
|
},
|
|
@@ -33037,28 +32721,28 @@ function useReadSearchGroup(setMessages, nextId, takeThinking) {
|
|
|
33037
32721
|
);
|
|
33038
32722
|
const retract = (0, import_react29.useCallback)(
|
|
33039
32723
|
(memberKey) => {
|
|
33040
|
-
const
|
|
33041
|
-
if (!
|
|
33042
|
-
|
|
33043
|
-
|
|
33044
|
-
const { id } =
|
|
33045
|
-
if (
|
|
32724
|
+
const open = openRef.current;
|
|
32725
|
+
if (!open?.members.has(memberKey)) return;
|
|
32726
|
+
open.members.delete(memberKey);
|
|
32727
|
+
open.ops = open.ops.filter((entry) => entry.key !== memberKey);
|
|
32728
|
+
const { id } = open;
|
|
32729
|
+
if (open.ops.length === 0) {
|
|
33046
32730
|
openRef.current = null;
|
|
33047
32731
|
setMessages((prev) => prev.filter((m) => m.id !== id));
|
|
33048
32732
|
return;
|
|
33049
32733
|
}
|
|
33050
|
-
|
|
33051
|
-
const { state } =
|
|
32734
|
+
open.state = rebuilt(open.ops, open.state);
|
|
32735
|
+
const { state } = open;
|
|
33052
32736
|
setMessages((prev) => prev.map((m) => m.id === id ? shaped(m, state, true, prev) : m));
|
|
33053
32737
|
},
|
|
33054
32738
|
[setMessages]
|
|
33055
32739
|
);
|
|
33056
32740
|
const close = (0, import_react29.useCallback)(() => {
|
|
33057
|
-
const
|
|
33058
|
-
if (!
|
|
32741
|
+
const open = openRef.current;
|
|
32742
|
+
if (!open) return;
|
|
33059
32743
|
openRef.current = null;
|
|
33060
|
-
const { id, detail } =
|
|
33061
|
-
const state = settled(
|
|
32744
|
+
const { id, detail } = open;
|
|
32745
|
+
const state = settled(open.state);
|
|
33062
32746
|
setMessages(
|
|
33063
32747
|
(prev) => prev.map((m) => {
|
|
33064
32748
|
if (m.id !== id) return m;
|
|
@@ -33106,14 +32790,14 @@ async function workspaceDiff(cwd) {
|
|
|
33106
32790
|
return null;
|
|
33107
32791
|
}
|
|
33108
32792
|
}, "git");
|
|
33109
|
-
const
|
|
33110
|
-
if (
|
|
32793
|
+
const stat3 = await git2(["diff", "--stat", "HEAD", "--"]);
|
|
32794
|
+
if (stat3 === null) return null;
|
|
33111
32795
|
const patchRaw = await git2(["diff", "HEAD", "--"]) ?? "";
|
|
33112
32796
|
const truncated = Buffer.byteLength(patchRaw, "utf8") > DIFF_MAX_BYTES;
|
|
33113
32797
|
const patch = truncated ? patchRaw.slice(0, DIFF_MAX_BYTES) : patchRaw;
|
|
33114
32798
|
const untrackedRaw = await git2(["ls-files", "--others", "--exclude-standard"]) ?? "";
|
|
33115
32799
|
const untracked = untrackedRaw.split("\n").filter((line) => line.length > 0);
|
|
33116
|
-
return { stat:
|
|
32800
|
+
return { stat: stat3.trimEnd(), patch, truncated, untracked };
|
|
33117
32801
|
}
|
|
33118
32802
|
__name(workspaceDiff, "workspaceDiff");
|
|
33119
32803
|
function parsePatch(patch) {
|
|
@@ -33391,14 +33075,15 @@ function projectConversation(messages, nextId, readableUserTexts = [], restore)
|
|
|
33391
33075
|
return [];
|
|
33392
33076
|
}
|
|
33393
33077
|
if (message.source?.type === "runtime-context") {
|
|
33078
|
+
const shown = typeof message.content === "string" && (message.source.kind === "task-completion" || message.source.kind === "job-exit") ? noticeDisplay(message.content) : void 0;
|
|
33394
33079
|
return [
|
|
33395
33080
|
{
|
|
33396
33081
|
id: nextId(),
|
|
33397
33082
|
role: "system",
|
|
33398
|
-
content: runtimeContextRowLabel(message),
|
|
33083
|
+
content: shown?.label ?? runtimeContextRowLabel(message),
|
|
33399
33084
|
glyph: SYSTEM_ROW_GLYPH,
|
|
33400
33085
|
glyphColor: systemRowStyle("notice").color,
|
|
33401
|
-
detail: [message.content]
|
|
33086
|
+
...shown ? shown.detail.length > 0 ? { detail: [...shown.detail] } : {} : { detail: [message.content] }
|
|
33402
33087
|
}
|
|
33403
33088
|
];
|
|
33404
33089
|
}
|
|
@@ -33877,19 +33562,23 @@ ${blocks.join("\n\n")}`;
|
|
|
33877
33562
|
clearInterval(timer);
|
|
33878
33563
|
};
|
|
33879
33564
|
}, [session]);
|
|
33880
|
-
(0, import_react30.
|
|
33565
|
+
const announceUnfinishedRuns = (0, import_react30.useCallback)(() => {
|
|
33881
33566
|
const source = session?.workflows;
|
|
33882
33567
|
if (!source) return;
|
|
33883
33568
|
void source.recoverUnfinished().then((notices2) => {
|
|
33884
33569
|
if (previousSessionRef.current !== session || appLifetime.signal.aborted) return;
|
|
33885
33570
|
for (const notice of notices2) {
|
|
33886
|
-
|
|
33887
|
-
|
|
33888
|
-
|
|
33889
|
-
);
|
|
33571
|
+
const key = `${ORPHAN_NOTICE_PREFIX}${notice.runIds.join(",")}`;
|
|
33572
|
+
if (wakeLedgerRef.current.workflowIds().includes(key)) continue;
|
|
33573
|
+
wakeLedgerRef.current.noteWorkflowEnd(key, notice.text);
|
|
33890
33574
|
pushMessage("system", notice.line);
|
|
33891
33575
|
}
|
|
33892
33576
|
}).catch(() => void 0);
|
|
33577
|
+
}, [session]);
|
|
33578
|
+
(0, import_react30.useEffect)(() => {
|
|
33579
|
+
const source = session?.workflows;
|
|
33580
|
+
if (!source) return;
|
|
33581
|
+
announceUnfinishedRuns();
|
|
33893
33582
|
return source.subscribe(() => {
|
|
33894
33583
|
const live = new Set(source.runs().map((view) => view.runId));
|
|
33895
33584
|
for (const id of wakeLedgerRef.current.workflowIds()) {
|
|
@@ -33901,7 +33590,7 @@ ${blocks.join("\n\n")}`;
|
|
|
33901
33590
|
}
|
|
33902
33591
|
}
|
|
33903
33592
|
});
|
|
33904
|
-
}, [session]);
|
|
33593
|
+
}, [announceUnfinishedRuns, session]);
|
|
33905
33594
|
const [usage, setUsage] = (0, import_react30.useState)(null);
|
|
33906
33595
|
const [thinking, setThinking] = (0, import_react30.useState)(null);
|
|
33907
33596
|
const [providerWaitNotice, setProviderWaitNotice] = (0, import_react30.useState)(null);
|
|
@@ -34522,6 +34211,8 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
34522
34211
|
}
|
|
34523
34212
|
const stoppedAtPromptRef = (0, import_react30.useRef)(/* @__PURE__ */ new Set());
|
|
34524
34213
|
const refusalEndedTurnRef = (0, import_react30.useRef)(false);
|
|
34214
|
+
const checkStoppedTurnRef = (0, import_react30.useRef)(false);
|
|
34215
|
+
const callsNotRunRef = (0, import_react30.useRef)(0);
|
|
34525
34216
|
const learningQuestionsRef = (0, import_react30.useRef)(null);
|
|
34526
34217
|
if (learningQuestionsRef.current === null) learningQuestionsRef.current = createQuestionGate();
|
|
34527
34218
|
const learningQuestions = learningQuestionsRef.current;
|
|
@@ -34596,6 +34287,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
34596
34287
|
}, [promptHiddenNow]);
|
|
34597
34288
|
const trustGrants = (0, import_react30.useMemo)(() => readFolderGrants(trustedCwdRef.current), []);
|
|
34598
34289
|
const sessionsRef = (0, import_react30.useRef)(null);
|
|
34290
|
+
const [joinRequestCount, setJoinRequestCount] = (0, import_react30.useState)(0);
|
|
34599
34291
|
const scopeRef = (0, import_react30.useRef)(null);
|
|
34600
34292
|
const attachmentFloor = (0, import_react30.useMemo)(() => {
|
|
34601
34293
|
let highest = 0;
|
|
@@ -34653,7 +34345,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
34653
34345
|
const scope = scopeRef.current;
|
|
34654
34346
|
if (!sessions || !scope || !conversationMaterializedRef.current) return void 0;
|
|
34655
34347
|
try {
|
|
34656
|
-
return
|
|
34348
|
+
return join18(sessions.paths.sessionDir({ sessionId: scope.sessionId }), "loops.json");
|
|
34657
34349
|
} catch {
|
|
34658
34350
|
return void 0;
|
|
34659
34351
|
}
|
|
@@ -34915,9 +34607,9 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
34915
34607
|
const scrollWasOpenRef = (0, import_react30.useRef)(false);
|
|
34916
34608
|
(0, import_react30.useEffect)(() => {
|
|
34917
34609
|
const wasOpen = scrollWasOpenRef.current;
|
|
34918
|
-
const
|
|
34919
|
-
scrollWasOpenRef.current =
|
|
34920
|
-
if (wasOpen !==
|
|
34610
|
+
const open = scrollOpen || transcriptScreen;
|
|
34611
|
+
scrollWasOpenRef.current = open;
|
|
34612
|
+
if (wasOpen !== open) resetTranscript({ preserveTranscriptScreen: true });
|
|
34921
34613
|
}, [scrollOpen, transcriptScreen, resetTranscript]);
|
|
34922
34614
|
const previousTerminalRef = (0, import_react30.useRef)(terminal);
|
|
34923
34615
|
(0, import_react30.useEffect)(() => {
|
|
@@ -35702,13 +35394,21 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
35702
35394
|
);
|
|
35703
35395
|
const handleAutoModeLimit = (0, import_react30.useCallback)(
|
|
35704
35396
|
(event) => {
|
|
35397
|
+
if (event.limit === "asked") {
|
|
35398
|
+
pushMessage(
|
|
35399
|
+
"system",
|
|
35400
|
+
`Auto mode asks you instead: ${event.reason.replace(/, so the action was not run$/, "")}.`
|
|
35401
|
+
);
|
|
35402
|
+
return;
|
|
35403
|
+
}
|
|
35705
35404
|
if (event.limit === "unavailable") {
|
|
35405
|
+
checkStoppedTurnRef.current = true;
|
|
35706
35406
|
if (permissionModeSourceRef.current === "auto-default" && permissionModeRef.current === "classify") {
|
|
35707
35407
|
commitPermissionMode("prompt", false);
|
|
35708
|
-
pushMessage("system", AUTO_MODE_DEFAULT_STOPPED_NOTICE);
|
|
35408
|
+
pushMessage("system", `${AUTO_MODE_DEFAULT_STOPPED_NOTICE} ${event.reason}`);
|
|
35709
35409
|
return;
|
|
35710
35410
|
}
|
|
35711
|
-
pushMessage("system", AUTO_MODE_STOPPED_NOTICE);
|
|
35411
|
+
pushMessage("system", `${AUTO_MODE_STOPPED_NOTICE} ${event.reason}`);
|
|
35712
35412
|
return;
|
|
35713
35413
|
}
|
|
35714
35414
|
if (permissionModeRef.current !== "classify") return;
|
|
@@ -36579,7 +36279,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
36579
36279
|
pushMessage("system", "Not changed.");
|
|
36580
36280
|
return;
|
|
36581
36281
|
}
|
|
36582
|
-
void import("./setting-cli-
|
|
36282
|
+
void import("./setting-cli-ETVPDSRA.js").then(({ planSettingChange }) => {
|
|
36583
36283
|
const plan = planSettingChange(picker.change.key, picker.change.text);
|
|
36584
36284
|
if (!plan.ok) {
|
|
36585
36285
|
pushMessage("system", plan.error);
|
|
@@ -37108,6 +36808,9 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
37108
36808
|
...activeCtx.codeAnalysis?.enabled === false ? {} : { codeAnalysis: activeCtx.codeAnalysis ?? {} },
|
|
37109
36809
|
rules: activeCtx.rules,
|
|
37110
36810
|
...activeCtx.appendSystem ? { appendSystem: activeCtx.appendSystem } : {},
|
|
36811
|
+
...activeCtx.replaceSystem ? { replaceSystem: activeCtx.replaceSystem } : {},
|
|
36812
|
+
...activeCtx.onlyTools ? { onlyTools: activeCtx.onlyTools } : {},
|
|
36813
|
+
...activeCtx.bare ? { bare: true } : {},
|
|
37111
36814
|
...sessionsRef.current ? {
|
|
37112
36815
|
sessionGoals: sessionsRef.current.goals,
|
|
37113
36816
|
...activeCtx.goal?.confirmedBy ? { goalConfirmedBy: activeCtx.goal.confirmedBy } : {},
|
|
@@ -37837,7 +37540,8 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
37837
37540
|
}));
|
|
37838
37541
|
const queuedInputItems = queued.map((prompt) => ({
|
|
37839
37542
|
text: prompt.kind === "goal" ? "Automatic goal continuation" : prompt.kind === "notice" ? "Something finished in the background" : prompt.kind === "peer" ? peerMailLabel(prompt.mail) : prompt.recallText ?? prompt.text,
|
|
37840
|
-
attachmentCount: prompt.kind === "human" ? prompt.attachments?.length : void 0
|
|
37543
|
+
attachmentCount: prompt.kind === "human" ? prompt.attachments?.length : void 0,
|
|
37544
|
+
...prompt.kind === "human" && prompt.command ? { command: true } : {}
|
|
37841
37545
|
}));
|
|
37842
37546
|
const pendingInputVisible = phase === "ready" && agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null && textPrompt === null && choicePicker === null && copyPicker === null;
|
|
37843
37547
|
const pendingInputFurniture = pendingInputVisible ? pendingInputPanelRows({
|
|
@@ -38239,6 +37943,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
38239
37943
|
resumeActiveTurnRef.current = resumeActiveTurn;
|
|
38240
37944
|
const pushMessageRef = (0, import_react30.useRef)(pushMessage);
|
|
38241
37945
|
pushMessageRef.current = pushMessage;
|
|
37946
|
+
const windowGuessNotedRef = (0, import_react30.useRef)(/* @__PURE__ */ new Set());
|
|
38242
37947
|
(0, import_react30.useEffect)(() => {
|
|
38243
37948
|
if (signInWatchTurn === void 0) signInWatchStartRef.current = null;
|
|
38244
37949
|
if (signInWatchTurn === void 0 || !signInWatchOn) return;
|
|
@@ -38345,10 +38050,10 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
38345
38050
|
const progressId = pushMessage("system", "Reading spend\u2026");
|
|
38346
38051
|
try {
|
|
38347
38052
|
const [{ buildCostReport }, { renderSpend }, { systemClock: systemClock2 }, { resolveNamzuHome: resolveNamzuHome2 }] = await Promise.all([
|
|
38348
|
-
import("./cost-
|
|
38053
|
+
import("./cost-IVLAFD5T.js"),
|
|
38349
38054
|
import("./render-QFCCPEEL.js"),
|
|
38350
38055
|
import("./day-CU5J7UAK.js"),
|
|
38351
|
-
import("./home-
|
|
38056
|
+
import("./home-GR6YDAAE.js")
|
|
38352
38057
|
]);
|
|
38353
38058
|
const report = await buildCostReport(days, {
|
|
38354
38059
|
home: resolveNamzuHome2(),
|
|
@@ -38374,7 +38079,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
38374
38079
|
doctorRunningRef.current = true;
|
|
38375
38080
|
const progressId = pushMessage("system", "Checking\u2026");
|
|
38376
38081
|
try {
|
|
38377
|
-
const { runLiveDoctor } = await import("./live-
|
|
38082
|
+
const { runLiveDoctor } = await import("./live-LJ76XHPK.js");
|
|
38378
38083
|
const { describePlainDoctor } = await import("./plain-report-U37TZYMU.js");
|
|
38379
38084
|
const report = await runLiveDoctor({
|
|
38380
38085
|
...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
|
|
@@ -38723,6 +38428,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
38723
38428
|
}
|
|
38724
38429
|
}
|
|
38725
38430
|
void hydrateSavedChildren();
|
|
38431
|
+
announceUnfinishedRuns();
|
|
38726
38432
|
conversationMaterializedRef.current = true;
|
|
38727
38433
|
sourceDeliveryPollRef.current();
|
|
38728
38434
|
pushMessage(
|
|
@@ -38751,6 +38457,7 @@ ${AUTO_MODE_DEFAULT_NOTICE_BODY}`,
|
|
|
38751
38457
|
pushMessage,
|
|
38752
38458
|
cancelPendingModelSwitch,
|
|
38753
38459
|
hydrateSavedChildren,
|
|
38460
|
+
announceUnfinishedRuns,
|
|
38754
38461
|
hasUnsettledTurn,
|
|
38755
38462
|
hydrateSession,
|
|
38756
38463
|
detected,
|
|
@@ -39958,6 +39665,7 @@ ${plain2(err)}`
|
|
|
39958
39665
|
signal?.addEventListener("abort", onAbort, { once: true });
|
|
39959
39666
|
setSelectedChoice(0);
|
|
39960
39667
|
setJobSurface(null);
|
|
39668
|
+
if (agentSurfaceRef.current?.kind === "cockpit") setAgentSurface(null);
|
|
39961
39669
|
setChoicePicker(picker);
|
|
39962
39670
|
announceApproval();
|
|
39963
39671
|
}),
|
|
@@ -39968,6 +39676,7 @@ ${plain2(err)}`
|
|
|
39968
39676
|
setQuestionDialog,
|
|
39969
39677
|
setSelectedChoice,
|
|
39970
39678
|
setJobSurface,
|
|
39679
|
+
setAgentSurface,
|
|
39971
39680
|
resolveQuestion
|
|
39972
39681
|
]
|
|
39973
39682
|
);
|
|
@@ -40268,9 +39977,7 @@ ${plain2(err)}`
|
|
|
40268
39977
|
readSearchGroup.close();
|
|
40269
39978
|
setThinking(null);
|
|
40270
39979
|
setState("tool");
|
|
40271
|
-
const waitingAgent = event.toolName === "wait_for_task" && event.taskId ? subagentsRef.current.find(
|
|
40272
|
-
(agent) => agent.taskId === event.taskId && (event.turnId === void 0 || agent.workflowId === event.turnId)
|
|
40273
|
-
) : void 0;
|
|
39980
|
+
const waitingAgent = event.toolName === "wait_for_task" && event.taskId ? subagentsRef.current.find((agent) => agent.taskId === event.taskId) : void 0;
|
|
40274
39981
|
const tool = {
|
|
40275
39982
|
...waitingAgent ? {
|
|
40276
39983
|
taskId: waitingAgent.taskId,
|
|
@@ -40319,6 +40026,7 @@ ${plain2(err)}`
|
|
|
40319
40026
|
break;
|
|
40320
40027
|
}
|
|
40321
40028
|
case "tool-end": {
|
|
40029
|
+
if (isCallNotRun(event.output)) callsNotRunRef.current += 1;
|
|
40322
40030
|
if (event.toolName === "bash" || event.toolName === "job" || event.toolName === MONITOR_TOOL_NAME)
|
|
40323
40031
|
setJobSnapshot({
|
|
40324
40032
|
ownerSession: previousSessionRef.current,
|
|
@@ -40350,7 +40058,7 @@ ${plain2(err)}`
|
|
|
40350
40058
|
setActiveTools(activeToolsRef.current);
|
|
40351
40059
|
}
|
|
40352
40060
|
const inspectableWait = done?.taskId && subagentsRef.current.some(
|
|
40353
|
-
(agent) => agent.taskId === done.taskId &&
|
|
40061
|
+
(agent) => agent.taskId === done.taskId && agent.transcript.some(
|
|
40354
40062
|
(row2) => row2.kind === "assistant" && row2.text.trim().length > 0
|
|
40355
40063
|
)
|
|
40356
40064
|
);
|
|
@@ -40402,6 +40110,10 @@ ${plain2(err)}`
|
|
|
40402
40110
|
case "usage":
|
|
40403
40111
|
closeAssistant();
|
|
40404
40112
|
st.lastUsage = event;
|
|
40113
|
+
if (event.windowSource === "default" && event.contextWindowTokens !== void 0 && !windowGuessNotedRef.current.has(replyModelRef.current ?? "")) {
|
|
40114
|
+
windowGuessNotedRef.current.add(replyModelRef.current ?? "");
|
|
40115
|
+
pushMessage("system", windowGuessLine(event.contextWindowTokens));
|
|
40116
|
+
}
|
|
40405
40117
|
idleCompaction.compactor.recordCall(event.cache);
|
|
40406
40118
|
idleCompaction.contextTokens.current = event.contextTokens;
|
|
40407
40119
|
setUsage({
|
|
@@ -40618,6 +40330,7 @@ ${plain2(err)}`
|
|
|
40618
40330
|
st.answeredFallbackModel = pending.model;
|
|
40619
40331
|
}
|
|
40620
40332
|
}
|
|
40333
|
+
const stoppedByReview = refusalEndedTurnRef.current || checkStoppedTurnRef.current;
|
|
40621
40334
|
if (refusalEndedTurnRef.current) {
|
|
40622
40335
|
refusalEndedTurnRef.current = false;
|
|
40623
40336
|
if (event.stopReason === "cancelled") {
|
|
@@ -40625,6 +40338,13 @@ ${plain2(err)}`
|
|
|
40625
40338
|
pushMessage("system", row2.content, false, row2.glyph, void 0, row2.color);
|
|
40626
40339
|
}
|
|
40627
40340
|
}
|
|
40341
|
+
checkStoppedTurnRef.current = false;
|
|
40342
|
+
if (stoppedByReview && event.stopReason === "cancelled") {
|
|
40343
|
+
pushSystem(
|
|
40344
|
+
"notice",
|
|
40345
|
+
stoppedTurnLine({ outcome: event.outcome, notRun: callsNotRunRef.current })
|
|
40346
|
+
);
|
|
40347
|
+
}
|
|
40628
40348
|
const stopNotice = event.stopReason === "refused" && st.refusalRowShown ? void 0 : describeTurnStop(event.stopReason, event.budget);
|
|
40629
40349
|
if (stopNotice) pushSystem("warning", stopNotice);
|
|
40630
40350
|
const conversationId = scopeRef.current?.sessionId;
|
|
@@ -40835,11 +40555,11 @@ ${plain2(err)}`
|
|
|
40835
40555
|
}
|
|
40836
40556
|
let noticeKind = "task-completion";
|
|
40837
40557
|
if (prompt.kind === "notice") {
|
|
40838
|
-
const { ended, jobLines, workflowIds } = wakeLedgerRef.current.takeForWake(session);
|
|
40558
|
+
const { ended, jobLines: jobLines2, workflowIds } = wakeLedgerRef.current.takeForWake(session);
|
|
40839
40559
|
markOrphanNoticesDelivered(workflowIds);
|
|
40840
|
-
if (
|
|
40560
|
+
if (jobLines2.length > 0) wakeBudgetRef.current.recordWake();
|
|
40841
40561
|
const monitorNotice = session?.monitors?.take();
|
|
40842
|
-
if (ended.length === 0 &&
|
|
40562
|
+
if (ended.length === 0 && jobLines2.length === 0 && !monitorNotice?.text) {
|
|
40843
40563
|
setState("idle");
|
|
40844
40564
|
return;
|
|
40845
40565
|
}
|
|
@@ -40847,8 +40567,8 @@ ${plain2(err)}`
|
|
|
40847
40567
|
text = [
|
|
40848
40568
|
...ended,
|
|
40849
40569
|
...monitorNotice?.text ? [monitorNotice.text] : [],
|
|
40850
|
-
...
|
|
40851
|
-
${
|
|
40570
|
+
...jobLines2.length > 0 ? [`Background jobs that ended:
|
|
40571
|
+
${jobLines2.map(([, line]) => `- ${line}`).join("\n")}`] : []
|
|
40852
40572
|
].join("\n\n");
|
|
40853
40573
|
}
|
|
40854
40574
|
const named = prompt.kind === "human" ? mentionSourcesRef.current : NO_MENTION_SOURCES;
|
|
@@ -41012,6 +40732,8 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
|
|
|
41012
40732
|
abortRef.current = ac;
|
|
41013
40733
|
replyCutOffRef.current = false;
|
|
41014
40734
|
refusalEndedTurnRef.current = false;
|
|
40735
|
+
checkStoppedTurnRef.current = false;
|
|
40736
|
+
callsNotRunRef.current = 0;
|
|
41015
40737
|
activeTurnTokenRef.current = turnToken;
|
|
41016
40738
|
takeBackRef.current = userEchoId !== void 0 && prompt.kind === "human" && isRecallableHumanPrompt(prompt) ? {
|
|
41017
40739
|
token: turnToken,
|
|
@@ -42147,7 +41869,7 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
|
|
|
42147
41869
|
}
|
|
42148
41870
|
try {
|
|
42149
41871
|
const sameSignIn = accounts.registry.list("codex").find(
|
|
42150
|
-
(other) => other.source.kind === "codex-home" && readCodexCredentialFile(
|
|
41872
|
+
(other) => other.source.kind === "codex-home" && readCodexCredentialFile(join18(other.source.dir, "auth.json"))?.accountId === result.accountId
|
|
42151
41873
|
);
|
|
42152
41874
|
if (sameSignIn) {
|
|
42153
41875
|
rmSync2(dir, { recursive: true, force: true });
|
|
@@ -43957,6 +43679,15 @@ ${answered.context}` : slash.text;
|
|
|
43957
43679
|
}
|
|
43958
43680
|
case "context": {
|
|
43959
43681
|
pushMessage("system", dispatch.trim(), false, "\u203A", void 0, tokenColor("accent.user"));
|
|
43682
|
+
if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn()) {
|
|
43683
|
+
pushMessage(
|
|
43684
|
+
"system",
|
|
43685
|
+
"Numbers are as of the last finished reply; the running reply is not counted yet.",
|
|
43686
|
+
false,
|
|
43687
|
+
"\u23BF"
|
|
43688
|
+
);
|
|
43689
|
+
}
|
|
43690
|
+
const anchorId = idRef.current;
|
|
43960
43691
|
void (async () => {
|
|
43961
43692
|
const view = await buildContextRow({
|
|
43962
43693
|
usage,
|
|
@@ -43977,15 +43708,19 @@ ${answered.context}` : slash.text;
|
|
|
43977
43708
|
pushMessage("system", view, false, "\u23BF");
|
|
43978
43709
|
return;
|
|
43979
43710
|
}
|
|
43980
|
-
|
|
43981
|
-
|
|
43982
|
-
|
|
43983
|
-
|
|
43984
|
-
|
|
43985
|
-
|
|
43986
|
-
|
|
43987
|
-
|
|
43988
|
-
|
|
43711
|
+
const row2 = {
|
|
43712
|
+
id: nextId(),
|
|
43713
|
+
role: "system",
|
|
43714
|
+
content: view.text,
|
|
43715
|
+
contextView: view
|
|
43716
|
+
};
|
|
43717
|
+
setMessages((previous) => {
|
|
43718
|
+
const later = previous.findIndex((message) => {
|
|
43719
|
+
const n = /^m(\d+)$/.exec(message.id);
|
|
43720
|
+
return n !== null && Number(n[1]) > anchorId;
|
|
43721
|
+
});
|
|
43722
|
+
return later < 0 ? [...previous, row2] : [...previous.slice(0, later), row2, ...previous.slice(later)];
|
|
43723
|
+
});
|
|
43989
43724
|
})();
|
|
43990
43725
|
return;
|
|
43991
43726
|
}
|
|
@@ -44244,7 +43979,7 @@ ${answered.context}` : slash.text;
|
|
|
44244
43979
|
return;
|
|
44245
43980
|
}
|
|
44246
43981
|
case "config-setting": {
|
|
44247
|
-
void import("./setting-cli-
|
|
43982
|
+
void import("./setting-cli-ETVPDSRA.js").then((cli) => {
|
|
44248
43983
|
if (slash.text === void 0 && slash.clear !== true) {
|
|
44249
43984
|
try {
|
|
44250
43985
|
pushMessage("system", cli.describeSetting(slash.key));
|
|
@@ -44712,6 +44447,13 @@ ${answered.context}` : slash.text;
|
|
|
44712
44447
|
source: "launch-message"
|
|
44713
44448
|
});
|
|
44714
44449
|
}, [phase, state, session, permission, textPrompt, choicePicker, handleSubmit]);
|
|
44450
|
+
const launchNameRef = (0, import_react30.useRef)(initialCtx.launchSettings?.name);
|
|
44451
|
+
(0, import_react30.useEffect)(() => {
|
|
44452
|
+
const name = launchNameRef.current;
|
|
44453
|
+
if (name === void 0 || phase !== "ready" || !session?.hasProvider) return;
|
|
44454
|
+
launchNameRef.current = void 0;
|
|
44455
|
+
void doTitle(name, false);
|
|
44456
|
+
}, [phase, session, doTitle]);
|
|
44715
44457
|
commandPickerSubmitRef.current = (command) => handleSubmit(command, void 0, "submit", { source: "command-picker" });
|
|
44716
44458
|
triggerFollowUpsRef.current = (st, ending) => {
|
|
44717
44459
|
const followUps = st.followUps ?? [];
|
|
@@ -45026,6 +44768,9 @@ ${answered.context}` : slash.text;
|
|
|
45026
44768
|
settings: networkSettings(ctxRef.current.network),
|
|
45027
44769
|
interactive: ctxRef.current.runNetwork === true && stdout.isTTY === true,
|
|
45028
44770
|
notify: /* @__PURE__ */ __name((text) => pushSystem("notice", text), "notify"),
|
|
44771
|
+
// A machine asking to join is a footer mark and one passing line, never a transcript row.
|
|
44772
|
+
notice: /* @__PURE__ */ __name((key, text) => addNotice({ key, text, tone: "warn", priority: "high", timeoutMs: 8e3 }), "notice"),
|
|
44773
|
+
onJoinRequests: /* @__PURE__ */ __name((count2) => setJoinRequestCount(count2), "onJoinRequests"),
|
|
45029
44774
|
ownRef: /* @__PURE__ */ __name(() => peersRef.current?.ref, "ownRef")
|
|
45030
44775
|
});
|
|
45031
44776
|
networkRef.current = network;
|
|
@@ -45080,7 +44825,7 @@ ${answered.context}` : slash.text;
|
|
|
45080
44825
|
appLifetime.signal.removeEventListener("abort", onClose);
|
|
45081
44826
|
if (!disposed) pushSystem("error", explainFailure(error, "Peer messaging unavailable."));
|
|
45082
44827
|
});
|
|
45083
|
-
}, [phase, appLifetime.signal, pushMessage, pushSystem, stdout.isTTY]);
|
|
44828
|
+
}, [phase, appLifetime.signal, pushMessage, pushSystem, addNotice, stdout.isTTY]);
|
|
45084
44829
|
const peerName = conversationNames.named ?? conversationNames.generated;
|
|
45085
44830
|
(0, import_react30.useEffect)(() => {
|
|
45086
44831
|
peersRef.current?.publish();
|
|
@@ -45807,7 +45552,7 @@ ${answered.context}` : slash.text;
|
|
|
45807
45552
|
return;
|
|
45808
45553
|
}
|
|
45809
45554
|
setAgentSurface(null);
|
|
45810
|
-
setRailFocus(
|
|
45555
|
+
setRailFocus(null);
|
|
45811
45556
|
return;
|
|
45812
45557
|
}
|
|
45813
45558
|
if (agentView.focus === "agents" && hasPhaseLevel) {
|
|
@@ -45825,7 +45570,7 @@ ${answered.context}` : slash.text;
|
|
|
45825
45570
|
} else if (agentView.focus !== "workflows") {
|
|
45826
45571
|
if (agentView.railReturn !== void 0) {
|
|
45827
45572
|
setAgentSurface(null);
|
|
45828
|
-
setRailFocus(
|
|
45573
|
+
setRailFocus(null);
|
|
45829
45574
|
} else if (workflows.length > 1) {
|
|
45830
45575
|
setAgentSurface({ ...agentView, focus: "workflows" });
|
|
45831
45576
|
} else {
|
|
@@ -46167,6 +45912,10 @@ ${answered.context}` : slash.text;
|
|
|
46167
45912
|
});
|
|
46168
45913
|
return;
|
|
46169
45914
|
}
|
|
45915
|
+
if (key.ctrl && key.shift && input === "c") {
|
|
45916
|
+
fullscreenControl.current?.takeCopy();
|
|
45917
|
+
return;
|
|
45918
|
+
}
|
|
46170
45919
|
if (fullscreenControl.current) {
|
|
46171
45920
|
if (key.escape && fullscreenControl.current.takeEscape()) return;
|
|
46172
45921
|
if (isAction("app:interrupt", input, key) && fullscreenControl.current.takeCopy()) return;
|
|
@@ -46321,21 +46070,8 @@ ${answered.context}` : slash.text;
|
|
|
46321
46070
|
const showComposerSurface = !providerSetup && phase !== "trust" && phase !== "unhealthy" && phase !== "resume" && phase !== "edit" && phase !== "picker";
|
|
46322
46071
|
const childSurfaceOpen = agentSurface !== null && viewingAgent === void 0 || transcriptScreen || jobSurface !== null;
|
|
46323
46072
|
const replyRunningNow = !compacting && (state === "thinking" || state === "tool" || pendingModelSwitchRef.current !== null) || handoffPark !== null && state === "idle";
|
|
46324
|
-
const workflowDetailOpen = showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "cockpit" && !transcriptScreen && jobSurface === null;
|
|
46325
|
-
const
|
|
46326
|
-
terminal.rows,
|
|
46327
|
-
fullscreen !== void 0,
|
|
46328
|
-
composerBoxRows + 1 + (extensionMarks.length > 0 ? 1 : 0) + 4
|
|
46329
|
-
);
|
|
46330
|
-
const detailRows = workflowDetailOpen && agentSurface?.kind === "cockpit" ? cockpitDetailHeight(
|
|
46331
|
-
subagents,
|
|
46332
|
-
workflowRuns,
|
|
46333
|
-
agentSurface.selectedPhaseId,
|
|
46334
|
-
agentSurface.focus,
|
|
46335
|
-
terminal.rows,
|
|
46336
|
-
terminal.columns,
|
|
46337
|
-
detailCap
|
|
46338
|
-
) : detailCap;
|
|
46073
|
+
const workflowDetailOpen = showComposerSurface && permission === null && scheduleReviewPrompt === null && questionDialog === null && planPrompt === null && saveSkillPrompt === null && textPrompt === null && choicePicker === null && copyPicker === null && agentSurface?.kind === "cockpit" && !transcriptScreen && jobSurface === null;
|
|
46074
|
+
const detailRows = workflowDetailHeight(terminal.rows - (extensionMarks.length > 0 ? 1 : 0));
|
|
46339
46075
|
const viewRailRows = liveSubagents.length > 0 || liveWorkflows.length > 0 ? 1 + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0) + Math.min(liveSubagents.length, AGENT_RAIL_WINDOW) + (liveSubagents.length > AGENT_RAIL_WINDOW ? 1 : 0) + liveWorkflows.length : 0;
|
|
46340
46076
|
viewRailRowsRef.current = viewRailRows;
|
|
46341
46077
|
const viewPageRows = agentViewPageRows(terminal.rows, viewRailRows);
|
|
@@ -46698,8 +46434,7 @@ ${answered.context}` : slash.text;
|
|
|
46698
46434
|
}
|
|
46699
46435
|
) : null,
|
|
46700
46436
|
workflowDetailOpen && agentSurface?.kind === "cockpit" ? (
|
|
46701
|
-
//
|
|
46702
|
-
// above, and the box and the status line stay under it.
|
|
46437
|
+
// In place of the message box and the status line, under the conversation.
|
|
46703
46438
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box_default, { height: detailRows, flexShrink: 0, flexDirection: "column", overflowY: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
46704
46439
|
AgentCockpit,
|
|
46705
46440
|
{
|
|
@@ -46733,7 +46468,7 @@ ${answered.context}` : slash.text;
|
|
|
46733
46468
|
activation: hypermodeActivation,
|
|
46734
46469
|
animate: externalEditorRequest === null,
|
|
46735
46470
|
focus: phase === "ready" && state !== "awaiting-permission" && !compacting && externalEditorRequest === null && conversationMutation === null && textPrompt === null && choicePicker === null && copyPicker === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null && !scrollOpen && !childSurfaceOpen,
|
|
46736
|
-
hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen
|
|
46471
|
+
hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
|
|
46737
46472
|
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
46738
46473
|
Composer,
|
|
46739
46474
|
{
|
|
@@ -46743,12 +46478,11 @@ ${answered.context}` : slash.text;
|
|
|
46743
46478
|
} : examplePrompts && history.length === 0 && !messages.some((message) => message.role === "user") ? {
|
|
46744
46479
|
placeholder: examplePlaceholder(exampleFile, exampleSeedRef.current)
|
|
46745
46480
|
} : promptSuggestion !== void 0 ? { promptSuggestion } : {},
|
|
46746
|
-
parked: workflowDetailOpen,
|
|
46747
46481
|
mayReadImage: imageReadPolicy,
|
|
46748
46482
|
reasoningEffortLevels: session?.reasoningEffortLevels,
|
|
46749
46483
|
onCycleMode: cyclePermissionMode,
|
|
46750
46484
|
disabled: transcriptScreen || fullscreenSearching || scrollOpen || jobSurface !== null || phase !== "ready" || state === "awaiting-permission" || compacting || conversationMutation !== null || externalEditorRequest !== null || railFocus !== null || childSurfaceOpen,
|
|
46751
|
-
hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen
|
|
46485
|
+
hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
|
|
46752
46486
|
escapeInterrupts: !compacting && (state === "thinking" || state === "tool" || pendingModelSwitchRef.current !== null) || handoffPark !== null && state === "idle",
|
|
46753
46487
|
onSubmit: handleSubmit,
|
|
46754
46488
|
onNotice: (text) => pushMessage("system", text),
|
|
@@ -46818,9 +46552,9 @@ ${answered.context}` : slash.text;
|
|
|
46818
46552
|
}
|
|
46819
46553
|
) })
|
|
46820
46554
|
] }),
|
|
46821
|
-
phase === "trust" || transcriptScreen || !showComposerSurface || statusLineText === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StatusLineRows, { text: statusLineText, padding: ctx.statusLine?.padding ?? 0 }),
|
|
46555
|
+
phase === "trust" || transcriptScreen || workflowDetailOpen || !showComposerSurface || statusLineText === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StatusLineRows, { text: statusLineText, padding: ctx.statusLine?.padding ?? 0 }),
|
|
46822
46556
|
phase === "trust" ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ExtensionIndicatorRow, { marks: extensionMarks }),
|
|
46823
|
-
phase === "trust" || transcriptScreen || dialogShowing && !exitHint && !noticeIsImmediate ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
46557
|
+
phase === "trust" || transcriptScreen || workflowDetailOpen || dialogShowing && !exitHint && !noticeIsImmediate ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
46824
46558
|
StatusBar,
|
|
46825
46559
|
{
|
|
46826
46560
|
provider: session?.providerSummary ?? null,
|
|
@@ -46849,6 +46583,7 @@ ${answered.context}` : slash.text;
|
|
|
46849
46583
|
restingHint: ctx.statusLine === void 0,
|
|
46850
46584
|
shellCount: showComposerSurface && !childSurfaceOpen ? runningShellCount : 0,
|
|
46851
46585
|
monitorCount: showComposerSurface && !childSurfaceOpen ? runningMonitorCount : 0,
|
|
46586
|
+
joinRequests: joinRequestCount,
|
|
46852
46587
|
pr: prStatus,
|
|
46853
46588
|
hyperlinks,
|
|
46854
46589
|
agentCount: leftOffersAgents ? runningAgentCount : 0,
|
|
@@ -47243,7 +46978,7 @@ function pluginActionPicker(owner, name) {
|
|
|
47243
46978
|
};
|
|
47244
46979
|
}
|
|
47245
46980
|
__name(pluginActionPicker, "pluginActionPicker");
|
|
47246
|
-
var BYPASS_UNAVAILABLE_NOTICE = "Bypass mode is not available in this session. Start Namzu with --allow-dangerously-skip-permissions
|
|
46981
|
+
var BYPASS_UNAVAILABLE_NOTICE = "Bypass mode is not available in this session. Start Namzu with --allow-dangerously-skip-permissions, or set permissions.allowBypassMode to true in your own config file, to use it, unless permissions.disableBypassMode is set.";
|
|
47247
46982
|
var AUTO_UNAVAILABLE_NOTICE = "Auto mode is not available in this session.";
|
|
47248
46983
|
var AUTO_MODE_STOPPED_NOTICE = "Auto mode could not get a safety decision, so nothing was run and Namzu stopped. Send a message to try again, or press Shift+Tab to change the mode.";
|
|
47249
46984
|
var AUTO_MODE_DEFAULT_STOPPED_NOTICE = "Auto mode could not get a safety decision, so nothing was run and Namzu stopped. This terminal now asks before changes: send a message to carry on, or use /permissions auto to go back to auto mode.";
|
|
@@ -47389,4 +47124,4 @@ export {
|
|
|
47389
47124
|
projectConversation,
|
|
47390
47125
|
App
|
|
47391
47126
|
};
|
|
47392
|
-
//# sourceMappingURL=chunk-
|
|
47127
|
+
//# sourceMappingURL=chunk-U4DBETHR.js.map
|