@namzu/cli 41.2.1 → 42.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 +99 -0
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-MCDCWJ45.js → acp-ADQ2PRAY.js} +48 -48
- package/dist/chunks/{activity-command-AYLW5EEX.js → activity-command-JROQLBPA.js} +14 -15
- package/dist/chunks/activity-command-JROQLBPA.js.map +6 -0
- package/dist/chunks/{add-VNM5QPTX.js → add-ILLLF6YP.js} +25 -25
- package/dist/chunks/{agent-4IMOBJR5.js → agent-YQI5KOPV.js} +34 -35
- package/dist/chunks/agent-session-3MUZCWQ4.js +58 -0
- package/dist/chunks/{archive-VXJWPZBA.js → archive-55KJKGJB.js} +11 -11
- package/dist/chunks/{bin-main-BMCDNDGC.js → bin-main-332F5KRZ.js} +13 -6
- package/dist/chunks/{bin-main-BMCDNDGC.js.map → bin-main-332F5KRZ.js.map} +1 -1
- package/dist/chunks/{browser-7MVCQL2G.js → browser-C6AOJ3CH.js} +6 -6
- package/dist/chunks/{chat-M2WFCRYV.js → chat-45H5F3KI.js} +16 -16
- package/dist/chunks/{chunk-X4BCXODL.js → chunk-23NRJ2RC.js} +5 -5
- package/dist/chunks/chunk-27R3OTVS.js +14 -0
- package/dist/chunks/chunk-27R3OTVS.js.map +6 -0
- package/dist/chunks/{chunk-LFI6O7WL.js → chunk-2OVZNENW.js} +43 -2
- package/dist/chunks/chunk-2OVZNENW.js.map +6 -0
- package/dist/chunks/{chunk-WYUJ4USW.js → chunk-35VTE7V5.js} +2 -2
- package/dist/chunks/chunk-3F3V2PB7.js +56 -0
- package/dist/chunks/chunk-3F3V2PB7.js.map +6 -0
- package/dist/chunks/{chunk-HV7PRPHJ.js → chunk-3LNTQLQ4.js} +14 -14
- package/dist/chunks/{chunk-VD4D37MT.js → chunk-4IIEEOCA.js} +66 -6
- package/dist/chunks/chunk-4IIEEOCA.js.map +6 -0
- package/dist/chunks/{chunk-F2UUHEPY.js → chunk-4NO5XFK2.js} +2 -2
- package/dist/chunks/chunk-4TS6ZPOZ.js +363 -0
- package/dist/chunks/chunk-4TS6ZPOZ.js.map +6 -0
- package/dist/chunks/{chunk-TZDYMWYP.js → chunk-5XWMKWQQ.js} +65 -5
- package/dist/chunks/chunk-5XWMKWQQ.js.map +6 -0
- package/dist/chunks/{chunk-DAJBZ4B7.js → chunk-6GBZAUYW.js} +2 -2
- package/dist/chunks/{chunk-KTF5NW2V.js → chunk-6LVWHXT6.js} +10 -15
- package/dist/chunks/chunk-6LVWHXT6.js.map +6 -0
- package/dist/chunks/{chunk-5LGZUFDJ.js → chunk-6PNBIMWH.js} +3 -3
- package/dist/chunks/{chunk-XSAS6TS2.js → chunk-6S4R2USK.js} +3 -3
- package/dist/chunks/{chunk-6FSVNUBA.js → chunk-7E3V7NNN.js} +2943 -1961
- package/dist/chunks/chunk-7E3V7NNN.js.map +6 -0
- package/dist/chunks/{chunk-EYBTANG5.js → chunk-A3AF5WXZ.js} +6 -6
- package/dist/chunks/{chunk-AGRFKHS2.js → chunk-A4CKLHKM.js} +4 -4
- package/dist/chunks/{chunk-MCUV6EI7.js → chunk-AZPS37AQ.js} +2 -2
- package/dist/chunks/{chunk-TSKCIC5T.js → chunk-BDLDDNNO.js} +37 -6
- package/dist/chunks/chunk-BDLDDNNO.js.map +6 -0
- package/dist/chunks/{chunk-2LLNCAZS.js → chunk-BRKD6FMO.js} +2 -2
- package/dist/chunks/{chunk-PXEHKMLO.js → chunk-CW2N2QS2.js} +4 -4
- package/dist/chunks/{chunk-2Q6PBTPY.js → chunk-DLL2FPUY.js} +2 -2
- package/dist/chunks/{chunk-5XWYY63Z.js → chunk-ESZ7X37S.js} +4 -4
- package/dist/chunks/{chunk-VHXXNM6W.js → chunk-EWSIGY2A.js} +4 -4
- package/dist/chunks/{chunk-DTNJTMWP.js → chunk-F6WVRMVY.js} +1032 -328
- package/dist/chunks/chunk-F6WVRMVY.js.map +6 -0
- package/dist/chunks/{chunk-L2MEW4AZ.js → chunk-FMEGRBJP.js} +2 -2
- package/dist/chunks/{chunk-IBUFD2HH.js → chunk-FSKJ3EZC.js} +2 -2
- package/dist/chunks/chunk-G5RAECIB.js +144 -0
- package/dist/chunks/chunk-G5RAECIB.js.map +6 -0
- package/dist/chunks/{chunk-HWAPKOAW.js → chunk-GOGBOZKO.js} +666 -27
- package/dist/chunks/chunk-GOGBOZKO.js.map +6 -0
- package/dist/chunks/chunk-HO2ZUI5Y.js +1189 -0
- package/dist/chunks/chunk-HO2ZUI5Y.js.map +6 -0
- package/dist/chunks/{chunk-YBOKKRHB.js → chunk-HOIDWHGC.js} +6 -6
- package/dist/chunks/{chunk-IBCA2WDM.js → chunk-HOY7BUGW.js} +3 -3
- package/dist/chunks/{chunk-5L7ZQ37R.js → chunk-HQZ3GBQI.js} +7 -7
- package/dist/chunks/{chunk-G7JH3PMC.js → chunk-HXAWIWOZ.js} +2 -2
- package/dist/chunks/{chunk-Z2WGX7UM.js → chunk-IQQ6TY4W.js} +3 -3
- package/dist/chunks/{chunk-UHDKUVR5.js → chunk-J4IES4SO.js} +5 -5
- package/dist/chunks/{chunk-UHDKUVR5.js.map → chunk-J4IES4SO.js.map} +1 -1
- package/dist/chunks/{chunk-N457UJQL.js → chunk-JD2HLKFO.js} +2 -2
- package/dist/chunks/chunk-JHDNGNQT.js +95 -0
- package/dist/chunks/chunk-JHDNGNQT.js.map +6 -0
- package/dist/chunks/{chunk-H6B6AROX.js → chunk-JQIBPPOL.js} +69 -46
- package/dist/chunks/chunk-JQIBPPOL.js.map +6 -0
- package/dist/chunks/{chunk-TIFSH2BH.js → chunk-JXT47VT6.js} +113 -35
- package/dist/chunks/chunk-JXT47VT6.js.map +6 -0
- package/dist/chunks/{chunk-7A5TVBGS.js → chunk-K6LLMOB2.js} +2 -2
- package/dist/chunks/{chunk-EUBCYTOK.js → chunk-KONYGNG6.js} +152 -3
- package/dist/chunks/chunk-KONYGNG6.js.map +6 -0
- package/dist/chunks/{chunk-C4CVM56Z.js → chunk-L3QW53QL.js} +223 -247
- package/dist/chunks/chunk-L3QW53QL.js.map +6 -0
- package/dist/chunks/{chunk-KEKFOEEP.js → chunk-M46GKTOI.js} +2 -2
- package/dist/chunks/{chunk-O3CIRAYD.js → chunk-N3C5X6BW.js} +6 -6
- package/dist/chunks/chunk-N4OY22M2.js +256 -0
- package/dist/chunks/chunk-N4OY22M2.js.map +6 -0
- package/dist/chunks/{chunk-DAUWDTZI.js → chunk-N56FVHCU.js} +26 -2
- package/dist/chunks/chunk-N56FVHCU.js.map +6 -0
- package/dist/chunks/chunk-PCUMISO3.js +92 -0
- package/dist/chunks/chunk-PCUMISO3.js.map +6 -0
- package/dist/chunks/{chunk-RPKRLR3O.js → chunk-QRGO6R2O.js} +12 -6
- package/dist/chunks/chunk-QRGO6R2O.js.map +6 -0
- package/dist/chunks/{chunk-IMFIQJM6.js → chunk-QT6KYBCC.js} +3 -3
- package/dist/chunks/{chunk-QYA34YM5.js → chunk-QUELENQP.js} +4 -4
- package/dist/chunks/{chunk-ZPNX25RU.js → chunk-QWBR6FBY.js} +89 -20
- package/dist/chunks/chunk-QWBR6FBY.js.map +6 -0
- package/dist/chunks/{chunk-RI57PEYF.js → chunk-R2LYGFCI.js} +4 -4
- package/dist/chunks/{chunk-AYCKJIVD.js → chunk-RGVJHSMU.js} +5 -5
- package/dist/chunks/{chunk-MSKJK6NZ.js → chunk-RVSVVL6O.js} +3 -3
- package/dist/chunks/{chunk-PWGJB2WA.js → chunk-S4KDR6G5.js} +53 -6
- package/dist/chunks/chunk-S4KDR6G5.js.map +6 -0
- package/dist/chunks/chunk-SIG7WHBU.js +78 -0
- package/dist/chunks/chunk-SIG7WHBU.js.map +6 -0
- package/dist/chunks/{chunk-H3ALHXFV.js → chunk-SIWZZF4M.js} +15 -15
- package/dist/chunks/{chunk-GD6LOX4A.js → chunk-SNC5D5UG.js} +18 -18
- package/dist/chunks/{chunk-KDZ6GM2A.js → chunk-SRYIMLOK.js} +2 -2
- package/dist/chunks/{chunk-IQBKDY6G.js → chunk-TW5BCDA5.js} +3 -3
- package/dist/chunks/{chunk-DVRRRNSA.js → chunk-URJ7TITR.js} +8 -8
- package/dist/chunks/{chunk-Y37JJJVY.js → chunk-W2PJ6ZHY.js} +12 -44
- package/dist/chunks/chunk-W2PJ6ZHY.js.map +6 -0
- package/dist/chunks/{chunk-O7VKAFEU.js → chunk-WHOSI6UQ.js} +2 -2
- package/dist/chunks/{chunk-AVSE45ED.js → chunk-XCMCPWMB.js} +4 -4
- package/dist/chunks/{chunk-KGKRKFB7.js → chunk-XGVCAMNT.js} +2 -2
- package/dist/chunks/{chunk-YZW6H2LD.js → chunk-XMOKHCPV.js} +116 -40
- package/dist/chunks/chunk-XMOKHCPV.js.map +6 -0
- package/dist/chunks/{chunk-LETTT4ZZ.js → chunk-XXUL6HHM.js} +2 -2
- package/dist/chunks/{chunk-7RBZS3TN.js → chunk-Y2DZ27P6.js} +4 -4
- package/dist/chunks/{chunk-QWFD2LFU.js → chunk-Y3I7AAD6.js} +4 -4
- package/dist/chunks/{chunk-3ZMECJLN.js → chunk-Y74CPWYC.js} +13 -13
- package/dist/chunks/chunk-YM4DUQ3P.js +59 -0
- package/dist/chunks/chunk-YM4DUQ3P.js.map +6 -0
- package/dist/chunks/{chunk-LRDLJTYP.js → chunk-YP7AINGL.js} +9 -9
- package/dist/chunks/{chunk-YAOKLAUU.js → chunk-YPHXWFKQ.js} +2 -2
- package/dist/chunks/{chunk-4I5FGMVR.js → chunk-YVIM3MXU.js} +2 -2
- package/dist/chunks/{cli-runtime-Q6BW37I2.js → cli-runtime-HW6GQKC6.js} +23 -20
- package/dist/chunks/cli-runtime-HW6GQKC6.js.map +6 -0
- package/dist/chunks/{commands-C5I7PC7W.js → commands-JZT6JJY5.js} +5 -5
- package/dist/chunks/{crash-report-DRT5OCHO.js → crash-report-TWMWHNKY.js} +9 -7
- package/dist/chunks/{dist-PRTI23W3.js → dist-4EGZFRWY.js} +12 -2
- package/dist/chunks/dist-4EGZFRWY.js.map +6 -0
- package/dist/chunks/{dist-VJC5RCYZ.js → dist-6ORFQIRV.js} +7 -2
- package/dist/chunks/{dist-VJC5RCYZ.js.map → dist-6ORFQIRV.js.map} +1 -1
- package/dist/chunks/{dist-5JM4UMVC.js → dist-AZ5T257L.js} +22 -2
- package/dist/chunks/dist-AZ5T257L.js.map +6 -0
- package/dist/chunks/{dist-D7WSQBE7.js → dist-CLKFY67B.js} +8 -4
- package/dist/chunks/{dist-D7WSQBE7.js.map → dist-CLKFY67B.js.map} +1 -1
- package/dist/chunks/{dist-WO56PFGZ.js → dist-K5JIOWIQ.js} +8 -3
- package/dist/chunks/dist-K5JIOWIQ.js.map +6 -0
- package/dist/chunks/{dist-T2N57REG.js → dist-MVLQAON2.js} +12 -2
- package/dist/chunks/{dist-T2N57REG.js.map → dist-MVLQAON2.js.map} +1 -1
- package/dist/chunks/{dist-2NWJAAJM.js → dist-POSMI3PI.js} +18 -4
- package/dist/chunks/{dist-2NWJAAJM.js.map → dist-POSMI3PI.js.map} +1 -1
- package/dist/chunks/{doctor-HXKU6QKJ.js → doctor-UVZBNUNF.js} +15 -9
- package/dist/chunks/{drain-MLRRMEGK.js → drain-27E6XUNK.js} +11 -10
- package/dist/chunks/drain-27E6XUNK.js.map +6 -0
- package/dist/chunks/{eval-ECOECG74.js → eval-NRRIWDET.js} +2 -2
- package/dist/chunks/{exec-JLB6F5ZR.js → exec-KX46LZ36.js} +159 -62
- package/dist/chunks/exec-KX46LZ36.js.map +6 -0
- package/dist/chunks/{home-G65CC45B.js → home-RT2I6VTQ.js} +3 -3
- package/dist/chunks/{host-queries-7LKGEBO5.js → host-queries-ZXGOA6ZL.js} +23 -17
- package/dist/chunks/host-queries-ZXGOA6ZL.js.map +6 -0
- package/dist/chunks/install-LVQAT4QP.js +15 -0
- package/dist/chunks/{learn-NRY6X2K6.js → learn-5KKZ4ZFX.js} +15 -14
- package/dist/chunks/learn-5KKZ4ZFX.js.map +6 -0
- package/dist/chunks/{learn-builtin-QOM4KLT2.js → learn-builtin-MSUF4MEJ.js} +18 -17
- package/dist/chunks/learn-builtin-MSUF4MEJ.js.map +6 -0
- package/dist/chunks/{lifecycle-BI2PMV4Q.js → lifecycle-TZU6D46R.js} +29 -30
- package/dist/chunks/{list-QTWALT6F.js → list-QCWNMQED.js} +23 -23
- package/dist/chunks/live-V7HRF5KR.js +34 -0
- package/dist/chunks/{login-7LJG7D3F.js → login-QFP3PIXG.js} +8 -8
- package/dist/chunks/{logs-UGMCEFAZ.js → logs-XTXMS4JF.js} +4 -4
- package/dist/chunks/{mcp-KOZOXU6J.js → mcp-WQFJJ4NO.js} +81 -23
- package/dist/chunks/mcp-WQFJJ4NO.js.map +6 -0
- package/dist/chunks/{message-command-7B5OFSGL.js → message-command-QVNUJN47.js} +40 -41
- package/dist/chunks/message-command-QVNUJN47.js.map +6 -0
- package/dist/chunks/{operator-tools-PWBZHKXO.js → operator-tools-2OYRNPCH.js} +14 -14
- package/dist/chunks/{output-schema-QPHXNRKI.js → output-schema-ETVPLUXE.js} +3 -3
- package/dist/chunks/{pal-XSD45IR6.js → pal-BYFZCLE2.js} +12 -13
- package/dist/chunks/pal-BYFZCLE2.js.map +6 -0
- package/dist/chunks/plain-report-73WHPLHX.js +146 -0
- package/dist/chunks/plain-report-73WHPLHX.js.map +6 -0
- package/dist/chunks/{providers-ULPGYRWC.js → providers-KP5JHTTK.js} +6 -6
- package/dist/chunks/{resident-NY7XSEK7.js → resident-BROBTK35.js} +35 -32
- package/dist/chunks/resident-BROBTK35.js.map +6 -0
- package/dist/chunks/resume-7V44GSEU.js +23 -0
- package/dist/chunks/{resume-command-DLOW7MYW.js → resume-command-OKJ2MJPB.js} +4 -4
- package/dist/chunks/{schedule-QR7JOA4F.js → schedule-TVR3FE32.js} +8 -8
- package/dist/chunks/{service-CLLR5VUD.js → service-6A3TOQKV.js} +35 -36
- package/dist/chunks/service-6A3TOQKV.js.map +6 -0
- package/dist/chunks/session-step-N4GHA2YE.js +33 -0
- package/dist/chunks/{skills-OZZLTH6P.js → skills-WXYSPDKL.js} +9 -8
- package/dist/chunks/skills-WXYSPDKL.js.map +6 -0
- package/dist/chunks/start-check-BUCN5MCU.js +12 -0
- package/dist/chunks/{state-EROTPJRH.js → state-PVAVIXHK.js} +3 -3
- package/dist/chunks/{store-C24DXKO4.js → store-D3XUEEAF.js} +6 -6
- package/dist/chunks/store-D3XUEEAF.js.map +6 -0
- package/dist/chunks/{store-VDQRT2KF.js → store-NB3KR4XA.js} +15 -11
- package/dist/chunks/store-NB3KR4XA.js.map +6 -0
- package/dist/chunks/{store-ROEYUKBM.js → store-O3KC2PPZ.js} +4 -4
- package/dist/chunks/store-O3KC2PPZ.js.map +6 -0
- package/dist/chunks/{tui-XBQCRSIJ.js → tui-2XOSCALL.js} +788 -217
- package/dist/chunks/tui-2XOSCALL.js.map +6 -0
- package/dist/chunks/undici-LWANNIOV.js +26906 -0
- package/dist/chunks/undici-LWANNIOV.js.map +6 -0
- package/dist/chunks/upgrade-FY5ULZQF.js +456 -0
- package/dist/chunks/upgrade-FY5ULZQF.js.map +6 -0
- package/dist/chunks/{worktree-XMJ355ND.js → worktree-MVW62U5G.js} +13 -13
- package/dist/cli-runtime.d.ts +1 -0
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/append-system.d.ts +19 -0
- package/dist/commands/append-system.d.ts.map +1 -0
- package/dist/commands/desktop-host.d.ts +6 -0
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/exec-flags.d.ts +33 -0
- package/dist/commands/exec-flags.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts +6 -0
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts +4 -2
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/host-queries.d.ts.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/resident-flags.d.ts.map +1 -1
- package/dist/commands/run-flags.d.ts +32 -0
- package/dist/commands/run-flags.d.ts.map +1 -0
- package/dist/commands/upgrade.d.ts +23 -25
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/config/load.d.ts +20 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +36 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/turn-guards.d.ts +3 -0
- package/dist/config/turn-guards.d.ts.map +1 -1
- package/dist/context/instruction-glob.d.ts +5 -0
- package/dist/context/instruction-glob.d.ts.map +1 -0
- package/dist/context/instruction-scope.d.ts +78 -0
- package/dist/context/instruction-scope.d.ts.map +1 -0
- package/dist/context/project-tracker.d.ts +10 -1
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/project.d.ts +46 -2
- package/dist/context/project.d.ts.map +1 -1
- package/dist/context/runtime-message.d.ts +8 -1
- package/dist/context/runtime-message.d.ts.map +1 -1
- package/dist/context/turn-snapshot.d.ts +26 -8
- package/dist/context/turn-snapshot.d.ts.map +1 -1
- package/dist/doctor/checks/cache-lifetime.d.ts +19 -0
- package/dist/doctor/checks/cache-lifetime.d.ts.map +1 -0
- package/dist/doctor/checks/index.d.ts +3 -1
- package/dist/doctor/checks/index.d.ts.map +1 -1
- package/dist/doctor/checks/network.d.ts +15 -0
- package/dist/doctor/checks/network.d.ts.map +1 -0
- package/dist/doctor/checks/updates.d.ts +6 -0
- package/dist/doctor/checks/updates.d.ts.map +1 -0
- package/dist/doctor/live.d.ts +15 -0
- package/dist/doctor/live.d.ts.map +1 -0
- package/dist/doctor/plain-report.d.ts +19 -0
- package/dist/doctor/plain-report.d.ts.map +1 -0
- package/dist/index.js +38 -32
- package/dist/integrations/auto-update/apply.d.ts +193 -0
- package/dist/integrations/auto-update/apply.d.ts.map +1 -0
- package/dist/integrations/auto-update/download.d.ts +35 -0
- package/dist/integrations/auto-update/download.d.ts.map +1 -0
- package/dist/integrations/auto-update/install-kind.d.ts +55 -0
- package/dist/integrations/auto-update/install-kind.d.ts.map +1 -0
- package/dist/integrations/auto-update/installed-version.d.ts +3 -0
- package/dist/integrations/auto-update/installed-version.d.ts.map +1 -0
- package/dist/integrations/auto-update/policy.d.ts +28 -0
- package/dist/integrations/auto-update/policy.d.ts.map +1 -0
- package/dist/integrations/auto-update/start-check.d.ts +21 -0
- package/dist/integrations/auto-update/start-check.d.ts.map +1 -0
- package/dist/integrations/auto-update/start.d.ts +25 -0
- package/dist/integrations/auto-update/start.d.ts.map +1 -0
- package/dist/integrations/auto-update/state.d.ts +109 -0
- package/dist/integrations/auto-update/state.d.ts.map +1 -0
- package/dist/integrations/auto-update/status.d.ts +37 -0
- package/dist/integrations/auto-update/status.d.ts.map +1 -0
- package/dist/integrations/auto-update/updater.d.ts +79 -0
- package/dist/integrations/auto-update/updater.d.ts.map +1 -0
- package/dist/integrations/mcp/project-approval.d.ts +41 -0
- package/dist/integrations/mcp/project-approval.d.ts.map +1 -0
- package/dist/integrations/mcp/shared-file.d.ts +36 -0
- package/dist/integrations/mcp/shared-file.d.ts.map +1 -0
- package/dist/integrations/npm-global.d.ts +40 -0
- package/dist/integrations/npm-global.d.ts.map +1 -0
- package/dist/integrations/plugins/hook-host.d.ts +18 -0
- package/dist/integrations/plugins/hook-host.d.ts.map +1 -0
- package/dist/integrations/plugins/runtime.d.ts +4 -2
- package/dist/integrations/plugins/runtime.d.ts.map +1 -1
- package/dist/integrations/providers/fallback-flag.d.ts +29 -0
- package/dist/integrations/providers/fallback-flag.d.ts.map +1 -0
- package/dist/integrations/providers/prompt-cache-ttl.d.ts +3 -0
- package/dist/integrations/providers/prompt-cache-ttl.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +32 -25
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/sessions/conversation-search.d.ts +1 -1
- package/dist/integrations/sessions/conversation-search.d.ts.map +1 -1
- package/dist/integrations/sessions/evidence-recall.d.ts +1 -1
- package/dist/integrations/sessions/evidence-recall.d.ts.map +1 -1
- package/dist/integrations/sessions/store.d.ts +23 -0
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +8 -2
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/saved-agents.d.ts +12 -3
- package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
- package/dist/integrations/trust/folder-grants.d.ts +12 -1
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
- package/dist/integrations/updates.d.ts +15 -1
- package/dist/integrations/updates.d.ts.map +1 -1
- package/dist/network/install.d.ts +38 -0
- package/dist/network/install.d.ts.map +1 -0
- package/dist/network/settings.d.ts +50 -0
- package/dist/network/settings.d.ts.map +1 -0
- package/dist/pals/agent-session.d.ts.map +1 -1
- package/dist/permissions/mode.d.ts +3 -1
- package/dist/permissions/mode.d.ts.map +1 -1
- package/dist/permissions/read-only-gate.d.ts +28 -0
- package/dist/permissions/read-only-gate.d.ts.map +1 -0
- package/dist/permissions/sandbox-shell.d.ts +37 -0
- package/dist/permissions/sandbox-shell.d.ts.map +1 -0
- package/dist/permissions/tool-flags.d.ts +36 -0
- package/dist/permissions/tool-flags.d.ts.map +1 -0
- package/dist/plan/approval.d.ts +1 -0
- package/dist/plan/approval.d.ts.map +1 -1
- package/dist/plan/enter-plan-mode-tool.d.ts +28 -0
- package/dist/plan/enter-plan-mode-tool.d.ts.map +1 -0
- package/dist/plan/plan-file.d.ts +8 -0
- package/dist/plan/plan-file.d.ts.map +1 -1
- package/dist/reminders/task-nudge.d.ts +9 -1
- package/dist/reminders/task-nudge.d.ts.map +1 -1
- package/dist/skills/store.d.ts +6 -0
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/tui/App.d.ts +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Checklist.d.ts +2 -0
- package/dist/tui/Checklist.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +7 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ContextGridRow.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts +2 -0
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts +10 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +7 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/TrustPrompt.d.ts +2 -0
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +31 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/capability-notice.d.ts +11 -1
- package/dist/tui/capability-notice.d.ts.map +1 -1
- package/dist/tui/context-grid.d.ts +7 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +4 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/conversation-in-use.d.ts +18 -0
- package/dist/tui/conversation-in-use.d.ts.map +1 -0
- package/dist/tui/foreground-handoff.d.ts +15 -0
- package/dist/tui/foreground-handoff.d.ts.map +1 -0
- package/dist/tui/launch-settings.d.ts +6 -3
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/pause-auto-resume.d.ts +33 -0
- package/dist/tui/pause-auto-resume.d.ts.map +1 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/plain-interruption.d.ts +8 -0
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/restored-rows.d.ts +4 -0
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/resume-picker-state.d.ts +40 -0
- package/dist/tui/resume-picker-state.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +12 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/system-rows.d.ts +3 -0
- package/dist/tui/system-rows.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +2 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/turn-interruption.d.ts +2 -0
- package/dist/tui/turn-interruption.d.ts.map +1 -1
- package/dist/tui/types.d.ts +10 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/update-notice.d.ts +13 -0
- package/dist/tui/update-notice.d.ts.map +1 -1
- package/dist/tui/working-label.d.ts +9 -0
- package/dist/tui/working-label.d.ts.map +1 -0
- package/dist/tui/zen-free-refusal.d.ts +12 -0
- package/dist/tui/zen-free-refusal.d.ts.map +1 -1
- package/dist/user-commands/store.d.ts +30 -1
- package/dist/user-commands/store.d.ts.map +1 -1
- package/package.json +11 -10
- package/dist/chunks/activity-command-AYLW5EEX.js.map +0 -6
- package/dist/chunks/agent-session-44AYNTQJ.js +0 -59
- package/dist/chunks/chunk-6FSVNUBA.js.map +0 -6
- package/dist/chunks/chunk-C4CVM56Z.js.map +0 -6
- package/dist/chunks/chunk-CN6EFAK5.js +0 -440
- package/dist/chunks/chunk-CN6EFAK5.js.map +0 -6
- package/dist/chunks/chunk-DAUWDTZI.js.map +0 -6
- package/dist/chunks/chunk-DTNJTMWP.js.map +0 -6
- package/dist/chunks/chunk-EUBCYTOK.js.map +0 -6
- package/dist/chunks/chunk-H6B6AROX.js.map +0 -6
- package/dist/chunks/chunk-HWAPKOAW.js.map +0 -6
- package/dist/chunks/chunk-KTF5NW2V.js.map +0 -6
- package/dist/chunks/chunk-LFI6O7WL.js.map +0 -6
- package/dist/chunks/chunk-O2B3B2TM.js +0 -138
- package/dist/chunks/chunk-O2B3B2TM.js.map +0 -6
- package/dist/chunks/chunk-PWGJB2WA.js.map +0 -6
- package/dist/chunks/chunk-RPKRLR3O.js.map +0 -6
- package/dist/chunks/chunk-TIFSH2BH.js.map +0 -6
- package/dist/chunks/chunk-TSKCIC5T.js.map +0 -6
- package/dist/chunks/chunk-TZDYMWYP.js.map +0 -6
- package/dist/chunks/chunk-VD4D37MT.js.map +0 -6
- package/dist/chunks/chunk-XSCT3DLE.js +0 -161
- package/dist/chunks/chunk-XSCT3DLE.js.map +0 -6
- package/dist/chunks/chunk-Y37JJJVY.js.map +0 -6
- package/dist/chunks/chunk-YZW6H2LD.js.map +0 -6
- package/dist/chunks/chunk-ZPNX25RU.js.map +0 -6
- package/dist/chunks/cli-runtime-Q6BW37I2.js.map +0 -6
- package/dist/chunks/dist-5JM4UMVC.js.map +0 -6
- package/dist/chunks/dist-PRTI23W3.js.map +0 -6
- package/dist/chunks/dist-WO56PFGZ.js.map +0 -6
- package/dist/chunks/drain-MLRRMEGK.js.map +0 -6
- package/dist/chunks/exec-JLB6F5ZR.js.map +0 -6
- package/dist/chunks/host-queries-7LKGEBO5.js.map +0 -6
- package/dist/chunks/learn-NRY6X2K6.js.map +0 -6
- package/dist/chunks/learn-builtin-QOM4KLT2.js.map +0 -6
- package/dist/chunks/mcp-KOZOXU6J.js.map +0 -6
- package/dist/chunks/message-command-7B5OFSGL.js.map +0 -6
- package/dist/chunks/pal-XSD45IR6.js.map +0 -6
- package/dist/chunks/resident-NY7XSEK7.js.map +0 -6
- package/dist/chunks/resume-4FV66TEK.js +0 -23
- package/dist/chunks/service-CLLR5VUD.js.map +0 -6
- package/dist/chunks/session-step-IEMT6LRR.js +0 -30
- package/dist/chunks/skills-OZZLTH6P.js.map +0 -6
- package/dist/chunks/tui-XBQCRSIJ.js.map +0 -6
- package/dist/chunks/upgrade-ZRQZD2N2.js +0 -315
- package/dist/chunks/upgrade-ZRQZD2N2.js.map +0 -6
- /package/dist/chunks/{acp-MCDCWJ45.js.map → acp-ADQ2PRAY.js.map} +0 -0
- /package/dist/chunks/{add-VNM5QPTX.js.map → add-ILLLF6YP.js.map} +0 -0
- /package/dist/chunks/{agent-4IMOBJR5.js.map → agent-YQI5KOPV.js.map} +0 -0
- /package/dist/chunks/{agent-session-44AYNTQJ.js.map → agent-session-3MUZCWQ4.js.map} +0 -0
- /package/dist/chunks/{archive-VXJWPZBA.js.map → archive-55KJKGJB.js.map} +0 -0
- /package/dist/chunks/{browser-7MVCQL2G.js.map → browser-C6AOJ3CH.js.map} +0 -0
- /package/dist/chunks/{chat-M2WFCRYV.js.map → chat-45H5F3KI.js.map} +0 -0
- /package/dist/chunks/{chunk-X4BCXODL.js.map → chunk-23NRJ2RC.js.map} +0 -0
- /package/dist/chunks/{chunk-WYUJ4USW.js.map → chunk-35VTE7V5.js.map} +0 -0
- /package/dist/chunks/{chunk-HV7PRPHJ.js.map → chunk-3LNTQLQ4.js.map} +0 -0
- /package/dist/chunks/{chunk-F2UUHEPY.js.map → chunk-4NO5XFK2.js.map} +0 -0
- /package/dist/chunks/{chunk-DAJBZ4B7.js.map → chunk-6GBZAUYW.js.map} +0 -0
- /package/dist/chunks/{chunk-5LGZUFDJ.js.map → chunk-6PNBIMWH.js.map} +0 -0
- /package/dist/chunks/{chunk-XSAS6TS2.js.map → chunk-6S4R2USK.js.map} +0 -0
- /package/dist/chunks/{chunk-EYBTANG5.js.map → chunk-A3AF5WXZ.js.map} +0 -0
- /package/dist/chunks/{chunk-AGRFKHS2.js.map → chunk-A4CKLHKM.js.map} +0 -0
- /package/dist/chunks/{chunk-MCUV6EI7.js.map → chunk-AZPS37AQ.js.map} +0 -0
- /package/dist/chunks/{chunk-2LLNCAZS.js.map → chunk-BRKD6FMO.js.map} +0 -0
- /package/dist/chunks/{chunk-PXEHKMLO.js.map → chunk-CW2N2QS2.js.map} +0 -0
- /package/dist/chunks/{chunk-2Q6PBTPY.js.map → chunk-DLL2FPUY.js.map} +0 -0
- /package/dist/chunks/{chunk-5XWYY63Z.js.map → chunk-ESZ7X37S.js.map} +0 -0
- /package/dist/chunks/{chunk-VHXXNM6W.js.map → chunk-EWSIGY2A.js.map} +0 -0
- /package/dist/chunks/{chunk-L2MEW4AZ.js.map → chunk-FMEGRBJP.js.map} +0 -0
- /package/dist/chunks/{chunk-IBUFD2HH.js.map → chunk-FSKJ3EZC.js.map} +0 -0
- /package/dist/chunks/{chunk-YBOKKRHB.js.map → chunk-HOIDWHGC.js.map} +0 -0
- /package/dist/chunks/{chunk-IBCA2WDM.js.map → chunk-HOY7BUGW.js.map} +0 -0
- /package/dist/chunks/{chunk-5L7ZQ37R.js.map → chunk-HQZ3GBQI.js.map} +0 -0
- /package/dist/chunks/{chunk-G7JH3PMC.js.map → chunk-HXAWIWOZ.js.map} +0 -0
- /package/dist/chunks/{chunk-Z2WGX7UM.js.map → chunk-IQQ6TY4W.js.map} +0 -0
- /package/dist/chunks/{chunk-N457UJQL.js.map → chunk-JD2HLKFO.js.map} +0 -0
- /package/dist/chunks/{chunk-7A5TVBGS.js.map → chunk-K6LLMOB2.js.map} +0 -0
- /package/dist/chunks/{chunk-KEKFOEEP.js.map → chunk-M46GKTOI.js.map} +0 -0
- /package/dist/chunks/{chunk-O3CIRAYD.js.map → chunk-N3C5X6BW.js.map} +0 -0
- /package/dist/chunks/{chunk-IMFIQJM6.js.map → chunk-QT6KYBCC.js.map} +0 -0
- /package/dist/chunks/{chunk-QYA34YM5.js.map → chunk-QUELENQP.js.map} +0 -0
- /package/dist/chunks/{chunk-RI57PEYF.js.map → chunk-R2LYGFCI.js.map} +0 -0
- /package/dist/chunks/{chunk-AYCKJIVD.js.map → chunk-RGVJHSMU.js.map} +0 -0
- /package/dist/chunks/{chunk-MSKJK6NZ.js.map → chunk-RVSVVL6O.js.map} +0 -0
- /package/dist/chunks/{chunk-H3ALHXFV.js.map → chunk-SIWZZF4M.js.map} +0 -0
- /package/dist/chunks/{chunk-GD6LOX4A.js.map → chunk-SNC5D5UG.js.map} +0 -0
- /package/dist/chunks/{chunk-KDZ6GM2A.js.map → chunk-SRYIMLOK.js.map} +0 -0
- /package/dist/chunks/{chunk-IQBKDY6G.js.map → chunk-TW5BCDA5.js.map} +0 -0
- /package/dist/chunks/{chunk-DVRRRNSA.js.map → chunk-URJ7TITR.js.map} +0 -0
- /package/dist/chunks/{chunk-O7VKAFEU.js.map → chunk-WHOSI6UQ.js.map} +0 -0
- /package/dist/chunks/{chunk-AVSE45ED.js.map → chunk-XCMCPWMB.js.map} +0 -0
- /package/dist/chunks/{chunk-KGKRKFB7.js.map → chunk-XGVCAMNT.js.map} +0 -0
- /package/dist/chunks/{chunk-LETTT4ZZ.js.map → chunk-XXUL6HHM.js.map} +0 -0
- /package/dist/chunks/{chunk-7RBZS3TN.js.map → chunk-Y2DZ27P6.js.map} +0 -0
- /package/dist/chunks/{chunk-QWFD2LFU.js.map → chunk-Y3I7AAD6.js.map} +0 -0
- /package/dist/chunks/{chunk-3ZMECJLN.js.map → chunk-Y74CPWYC.js.map} +0 -0
- /package/dist/chunks/{chunk-LRDLJTYP.js.map → chunk-YP7AINGL.js.map} +0 -0
- /package/dist/chunks/{chunk-YAOKLAUU.js.map → chunk-YPHXWFKQ.js.map} +0 -0
- /package/dist/chunks/{chunk-4I5FGMVR.js.map → chunk-YVIM3MXU.js.map} +0 -0
- /package/dist/chunks/{commands-C5I7PC7W.js.map → commands-JZT6JJY5.js.map} +0 -0
- /package/dist/chunks/{crash-report-DRT5OCHO.js.map → crash-report-TWMWHNKY.js.map} +0 -0
- /package/dist/chunks/{doctor-HXKU6QKJ.js.map → doctor-UVZBNUNF.js.map} +0 -0
- /package/dist/chunks/{eval-ECOECG74.js.map → eval-NRRIWDET.js.map} +0 -0
- /package/dist/chunks/{home-G65CC45B.js.map → home-RT2I6VTQ.js.map} +0 -0
- /package/dist/chunks/{lifecycle-BI2PMV4Q.js.map → install-LVQAT4QP.js.map} +0 -0
- /package/dist/chunks/{login-7LJG7D3F.js.map → lifecycle-TZU6D46R.js.map} +0 -0
- /package/dist/chunks/{list-QTWALT6F.js.map → list-QCWNMQED.js.map} +0 -0
- /package/dist/chunks/{output-schema-QPHXNRKI.js.map → live-V7HRF5KR.js.map} +0 -0
- /package/dist/chunks/{providers-ULPGYRWC.js.map → login-QFP3PIXG.js.map} +0 -0
- /package/dist/chunks/{logs-UGMCEFAZ.js.map → logs-XTXMS4JF.js.map} +0 -0
- /package/dist/chunks/{operator-tools-PWBZHKXO.js.map → operator-tools-2OYRNPCH.js.map} +0 -0
- /package/dist/chunks/{resume-4FV66TEK.js.map → output-schema-ETVPLUXE.js.map} +0 -0
- /package/dist/chunks/{resume-command-DLOW7MYW.js.map → providers-KP5JHTTK.js.map} +0 -0
- /package/dist/chunks/{session-step-IEMT6LRR.js.map → resume-7V44GSEU.js.map} +0 -0
- /package/dist/chunks/{store-C24DXKO4.js.map → resume-command-OKJ2MJPB.js.map} +0 -0
- /package/dist/chunks/{schedule-QR7JOA4F.js.map → schedule-TVR3FE32.js.map} +0 -0
- /package/dist/chunks/{store-ROEYUKBM.js.map → session-step-N4GHA2YE.js.map} +0 -0
- /package/dist/chunks/{store-VDQRT2KF.js.map → start-check-BUCN5MCU.js.map} +0 -0
- /package/dist/chunks/{state-EROTPJRH.js.map → state-PVAVIXHK.js.map} +0 -0
- /package/dist/chunks/{worktree-XMJ355ND.js.map → worktree-MVW62U5G.js.map} +0 -0
|
@@ -1,33 +1,81 @@
|
|
|
1
1
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./chunk-WYUJ4USW.js";
|
|
9
|
-
import {
|
|
10
|
-
reportCrash
|
|
11
|
-
} from "./chunk-AYCKJIVD.js";
|
|
4
|
+
NAMZU_COMPACT_WORDMARK,
|
|
5
|
+
NAMZU_WORDMARK,
|
|
6
|
+
NAMZU_WORDMARK_MIN_WIDTH
|
|
7
|
+
} from "./chunk-27R3OTVS.js";
|
|
12
8
|
import {
|
|
13
9
|
changesBlock,
|
|
14
10
|
changesSinceConfirmed,
|
|
15
11
|
confirmationView,
|
|
16
12
|
describeChanges,
|
|
17
13
|
permissionsChanged
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K6LLMOB2.js";
|
|
19
15
|
import {
|
|
20
16
|
visibleScheduleMessage
|
|
21
17
|
} from "./chunk-NADQQMMG.js";
|
|
18
|
+
import {
|
|
19
|
+
TURN_LIMIT_FIELDS,
|
|
20
|
+
ThemeEpochContext,
|
|
21
|
+
argumentHintFor,
|
|
22
|
+
backgroundFromColorFgBg,
|
|
23
|
+
baseBranchReviewPrompt,
|
|
24
|
+
commandPickerDescription,
|
|
25
|
+
commitReviewPrompt,
|
|
26
|
+
contextCleanupLines,
|
|
27
|
+
describeReducedMotion,
|
|
28
|
+
discoverUserCommands,
|
|
29
|
+
hostCommandNames,
|
|
30
|
+
kernelCommandDescriptors,
|
|
31
|
+
matchSlashCommands,
|
|
32
|
+
mergeHostCommands,
|
|
33
|
+
motionAllowed,
|
|
34
|
+
parseSlash,
|
|
35
|
+
queryTerminalBackground,
|
|
36
|
+
reducedMotion,
|
|
37
|
+
renderAgents,
|
|
38
|
+
renderContext,
|
|
39
|
+
renderOutcome,
|
|
40
|
+
require_react,
|
|
41
|
+
reviewPrompt,
|
|
42
|
+
runSlash,
|
|
43
|
+
saveReducedMotion,
|
|
44
|
+
saveTheme,
|
|
45
|
+
savedThemeSetting,
|
|
46
|
+
setReducedMotion,
|
|
47
|
+
setThemePreview,
|
|
48
|
+
setThemeSetting,
|
|
49
|
+
shownTheme,
|
|
50
|
+
turnLimitCommands,
|
|
51
|
+
useReducedMotion,
|
|
52
|
+
useThemeEpoch,
|
|
53
|
+
useThemeSubscription
|
|
54
|
+
} from "./chunk-JXT47VT6.js";
|
|
55
|
+
import {
|
|
56
|
+
handleTerminationSignals
|
|
57
|
+
} from "./chunk-YPHXWFKQ.js";
|
|
58
|
+
import "./chunk-TBIX6JRE.js";
|
|
59
|
+
import {
|
|
60
|
+
deleteUserConfigValue,
|
|
61
|
+
setUserConfigValue
|
|
62
|
+
} from "./chunk-EWSIGY2A.js";
|
|
63
|
+
import {
|
|
64
|
+
describeAllCredentialsLogout,
|
|
65
|
+
describeCodexDeviceLoginStart,
|
|
66
|
+
describeLoginOutcome,
|
|
67
|
+
describeLoginStart,
|
|
68
|
+
describeProviderLogout
|
|
69
|
+
} from "./chunk-JV3LONAU.js";
|
|
22
70
|
import {
|
|
23
71
|
settleAnsweredPark
|
|
24
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-3LNTQLQ4.js";
|
|
25
73
|
import "./chunk-GWQEMJFS.js";
|
|
26
74
|
import {
|
|
27
75
|
DELIVERY_READ_LIMIT,
|
|
28
76
|
readSourceDeliveryPage,
|
|
29
77
|
takeSuppressedCount
|
|
30
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-SNC5D5UG.js";
|
|
31
79
|
import {
|
|
32
80
|
DEFAULT_MAX_ITERATIONS,
|
|
33
81
|
DEFAULT_TIMEOUT_MS,
|
|
@@ -40,7 +88,7 @@ import {
|
|
|
40
88
|
runsPerDay,
|
|
41
89
|
scriptShellUnavailableReason,
|
|
42
90
|
verifyScheduledScript
|
|
43
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-XCMCPWMB.js";
|
|
44
92
|
import {
|
|
45
93
|
callsCount
|
|
46
94
|
} from "./chunk-E5VLANCO.js";
|
|
@@ -49,67 +97,34 @@ import {
|
|
|
49
97
|
compileJobPolicy,
|
|
50
98
|
compileScriptCheckPolicy,
|
|
51
99
|
isPresetName
|
|
52
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-R2LYGFCI.js";
|
|
101
|
+
import "./chunk-AZPS37AQ.js";
|
|
53
102
|
import {
|
|
54
103
|
formatResumeShellCommand,
|
|
55
104
|
parkedRunWords,
|
|
56
105
|
resumeCommand
|
|
57
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-FSKJ3EZC.js";
|
|
58
107
|
import {
|
|
59
108
|
appendHistory,
|
|
60
109
|
nextFireOf,
|
|
61
110
|
readHistory,
|
|
62
111
|
readState
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-MCUV6EI7.js";
|
|
112
|
+
} from "./chunk-6GBZAUYW.js";
|
|
65
113
|
import {
|
|
66
114
|
callEndpoint,
|
|
67
115
|
readEndpoint
|
|
68
116
|
} from "./chunk-6YG7D7U4.js";
|
|
69
117
|
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
NAMZU_WORDMARK_MIN_WIDTH,
|
|
73
|
-
checkUpdates,
|
|
74
|
-
resolveNpmInvocation
|
|
75
|
-
} from "./chunk-O2B3B2TM.js";
|
|
118
|
+
reportCrash
|
|
119
|
+
} from "./chunk-RGVJHSMU.js";
|
|
76
120
|
import {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
commitReviewPrompt,
|
|
83
|
-
contextCleanupLines,
|
|
84
|
-
describeReducedMotion,
|
|
85
|
-
discoverUserCommands,
|
|
86
|
-
hostCommandNames,
|
|
87
|
-
kernelCommandDescriptors,
|
|
88
|
-
matchSlashCommands,
|
|
89
|
-
mergeHostCommands,
|
|
90
|
-
motionAllowed,
|
|
91
|
-
parseSlash,
|
|
92
|
-
queryTerminalBackground,
|
|
93
|
-
reducedMotion,
|
|
94
|
-
renderAgents,
|
|
95
|
-
renderContext,
|
|
96
|
-
renderOutcome,
|
|
97
|
-
require_react,
|
|
98
|
-
reviewPrompt,
|
|
99
|
-
runSlash,
|
|
100
|
-
saveReducedMotion,
|
|
101
|
-
saveTheme,
|
|
102
|
-
savedThemeSetting,
|
|
103
|
-
setReducedMotion,
|
|
104
|
-
setThemePreview,
|
|
105
|
-
setThemeSetting,
|
|
106
|
-
shownTheme,
|
|
107
|
-
turnLimitCommands,
|
|
108
|
-
useReducedMotion,
|
|
109
|
-
useThemeEpoch,
|
|
110
|
-
useThemeSubscription
|
|
111
|
-
} from "./chunk-TIFSH2BH.js";
|
|
121
|
+
BYPASS_CONSENT_BODY,
|
|
122
|
+
BYPASS_CONSENT_TITLE,
|
|
123
|
+
acknowledgeBypass,
|
|
124
|
+
hasAcknowledgedBypass
|
|
125
|
+
} from "./chunk-35VTE7V5.js";
|
|
112
126
|
import {
|
|
127
|
+
applyFallbackFlag,
|
|
113
128
|
capChoiceLines,
|
|
114
129
|
choiceDisplayText,
|
|
115
130
|
choiceDisplayWidth,
|
|
@@ -118,22 +133,7 @@ import {
|
|
|
118
133
|
truncateChoiceText,
|
|
119
134
|
wrapBalancedText,
|
|
120
135
|
wrapChoiceText
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
handleTerminationSignals
|
|
124
|
-
} from "./chunk-YAOKLAUU.js";
|
|
125
|
-
import "./chunk-TBIX6JRE.js";
|
|
126
|
-
import {
|
|
127
|
-
deleteUserConfigValue,
|
|
128
|
-
setUserConfigValue
|
|
129
|
-
} from "./chunk-VHXXNM6W.js";
|
|
130
|
-
import {
|
|
131
|
-
describeAllCredentialsLogout,
|
|
132
|
-
describeCodexDeviceLoginStart,
|
|
133
|
-
describeLoginOutcome,
|
|
134
|
-
describeLoginStart,
|
|
135
|
-
describeProviderLogout
|
|
136
|
-
} from "./chunk-JV3LONAU.js";
|
|
136
|
+
} from "./chunk-2OVZNENW.js";
|
|
137
137
|
import {
|
|
138
138
|
AUTO_CHOICE_ID,
|
|
139
139
|
PR_NONE,
|
|
@@ -144,18 +144,21 @@ import {
|
|
|
144
144
|
modelStep,
|
|
145
145
|
rawDetail,
|
|
146
146
|
rowSection,
|
|
147
|
-
runtimeContextLabel,
|
|
148
147
|
sectionHeading,
|
|
149
148
|
withAutoChoice,
|
|
150
149
|
writeConversationExport
|
|
151
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-W2PJ6ZHY.js";
|
|
152
151
|
import {
|
|
153
152
|
tuiPalDefinition,
|
|
154
153
|
tuiPalEnvironment,
|
|
155
154
|
tuiPalOwner,
|
|
156
155
|
tuiPalPreferences
|
|
157
|
-
} from "./chunk-
|
|
158
|
-
import
|
|
156
|
+
} from "./chunk-23NRJ2RC.js";
|
|
157
|
+
import {
|
|
158
|
+
isModelOnlyContext,
|
|
159
|
+
runtimeContextLabel
|
|
160
|
+
} from "./chunk-3F3V2PB7.js";
|
|
161
|
+
import "./chunk-6LVWHXT6.js";
|
|
159
162
|
import {
|
|
160
163
|
COMPACTED_HINT,
|
|
161
164
|
COMPACTING_LABEL,
|
|
@@ -235,15 +238,16 @@ import {
|
|
|
235
238
|
webLiveStatus,
|
|
236
239
|
webSettledLine,
|
|
237
240
|
withDebugDetail
|
|
238
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-F6WVRMVY.js";
|
|
239
242
|
import {
|
|
240
243
|
openManagedWorktrees,
|
|
241
244
|
worktreeOpenHint
|
|
242
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-Y3I7AAD6.js";
|
|
246
|
+
import "./chunk-A4CKLHKM.js";
|
|
243
247
|
import {
|
|
244
|
-
|
|
245
|
-
} from "./chunk-
|
|
246
|
-
import "./chunk-
|
|
248
|
+
openInBrowser
|
|
249
|
+
} from "./chunk-4NO5XFK2.js";
|
|
250
|
+
import "./chunk-6S4R2USK.js";
|
|
247
251
|
import {
|
|
248
252
|
SAVE_SKILL_TOOL_NAME,
|
|
249
253
|
SKILL_CREATOR_SKILL,
|
|
@@ -264,27 +268,28 @@ import {
|
|
|
264
268
|
paint,
|
|
265
269
|
resolveTurnGuards,
|
|
266
270
|
runTokens,
|
|
271
|
+
sandboxRunsShellUnasked,
|
|
267
272
|
settledElapsed,
|
|
268
273
|
theme,
|
|
269
274
|
tokenColor
|
|
270
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-S4KDR6G5.js";
|
|
276
|
+
import "./chunk-QT6KYBCC.js";
|
|
277
|
+
import "./chunk-N3C5X6BW.js";
|
|
278
|
+
import {
|
|
279
|
+
describeBrowserStatus
|
|
280
|
+
} from "./chunk-WHODOMXA.js";
|
|
271
281
|
import {
|
|
272
282
|
describePlainInterruption,
|
|
273
283
|
describeProviderWait,
|
|
274
|
-
describeProviderWaitClock
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
import "./chunk-O3CIRAYD.js";
|
|
278
|
-
import "./chunk-AGRFKHS2.js";
|
|
279
|
-
import {
|
|
280
|
-
openInBrowser
|
|
281
|
-
} from "./chunk-F2UUHEPY.js";
|
|
284
|
+
describeProviderWaitClock,
|
|
285
|
+
isSelfMending
|
|
286
|
+
} from "./chunk-4IIEEOCA.js";
|
|
282
287
|
import "./chunk-NUGPLXVK.js";
|
|
283
288
|
import {
|
|
284
289
|
beginCodexDeviceLogin,
|
|
285
290
|
beginSubscriptionLogin,
|
|
286
291
|
parsePastedInput
|
|
287
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-CW2N2QS2.js";
|
|
288
293
|
import {
|
|
289
294
|
NO_SKILLS_FOUND,
|
|
290
295
|
composeSkillsPrompt,
|
|
@@ -292,18 +297,46 @@ import {
|
|
|
292
297
|
loadSkillBody,
|
|
293
298
|
renderSkillRoster,
|
|
294
299
|
skillTierLabel
|
|
295
|
-
} from "./chunk-
|
|
296
|
-
import "./chunk-
|
|
297
|
-
import "./chunk-
|
|
300
|
+
} from "./chunk-QRGO6R2O.js";
|
|
301
|
+
import "./chunk-RVSVVL6O.js";
|
|
302
|
+
import "./chunk-HOIDWHGC.js";
|
|
298
303
|
import {
|
|
299
304
|
claimPalConversation,
|
|
300
305
|
listPalConversations
|
|
301
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-QUELENQP.js";
|
|
302
307
|
import "./chunk-ZWA2JRJV.js";
|
|
308
|
+
import {
|
|
309
|
+
startAutoUpdate
|
|
310
|
+
} from "./chunk-4TS6ZPOZ.js";
|
|
311
|
+
import {
|
|
312
|
+
resolveNpmInvocation
|
|
313
|
+
} from "./chunk-HO2ZUI5Y.js";
|
|
314
|
+
import {
|
|
315
|
+
readManifest
|
|
316
|
+
} from "./chunk-AK2U3N2A.js";
|
|
317
|
+
import "./chunk-YM4DUQ3P.js";
|
|
318
|
+
import {
|
|
319
|
+
ScheduleConflictError,
|
|
320
|
+
confirmationHolds,
|
|
321
|
+
createJob,
|
|
322
|
+
deleteJob,
|
|
323
|
+
findJob,
|
|
324
|
+
listJobs,
|
|
325
|
+
updateJob
|
|
326
|
+
} from "./chunk-SKKWMMFP.js";
|
|
327
|
+
import {
|
|
328
|
+
writeJsonAtomic
|
|
329
|
+
} from "./chunk-OEW7CJKK.js";
|
|
303
330
|
import {
|
|
304
331
|
pinTrustedProjectPath,
|
|
305
332
|
resolveTrustedProjectContext
|
|
306
333
|
} from "./chunk-CHIEVVQ2.js";
|
|
334
|
+
import "./chunk-HE7WUOX2.js";
|
|
335
|
+
import {
|
|
336
|
+
describeCacheLifetime,
|
|
337
|
+
promptCacheTtl,
|
|
338
|
+
providerOffersCacheLifetime
|
|
339
|
+
} from "./chunk-N56FVHCU.js";
|
|
307
340
|
import {
|
|
308
341
|
debugRequested
|
|
309
342
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -313,18 +346,21 @@ import {
|
|
|
313
346
|
ConfigLoadError,
|
|
314
347
|
LARGE_WORKFLOW_WARNING,
|
|
315
348
|
LARGE_WORKFLOW_WARNING_SHORT,
|
|
349
|
+
THEME_CHOICES,
|
|
350
|
+
approveShownMcpServers,
|
|
316
351
|
browserCallOrigin,
|
|
317
352
|
browserSiteRuleFor,
|
|
353
|
+
fingerprintMcpServer,
|
|
354
|
+
formatConfigSource,
|
|
318
355
|
isLargeRun,
|
|
319
356
|
loadConfigWithProvenance,
|
|
357
|
+
pendingProjectMcpServers,
|
|
358
|
+
pendingServersMessage,
|
|
320
359
|
readPermissionLayers,
|
|
321
360
|
resolveComposerTriggers
|
|
322
|
-
} from "./chunk-
|
|
323
|
-
import "./chunk-
|
|
324
|
-
import
|
|
325
|
-
THEME_CHOICES,
|
|
326
|
-
formatConfigSource
|
|
327
|
-
} from "./chunk-CN6EFAK5.js";
|
|
361
|
+
} from "./chunk-GOGBOZKO.js";
|
|
362
|
+
import "./chunk-KONYGNG6.js";
|
|
363
|
+
import "./chunk-LCGXWCVU.js";
|
|
328
364
|
import {
|
|
329
365
|
displayPath,
|
|
330
366
|
formatSize,
|
|
@@ -333,25 +369,6 @@ import {
|
|
|
333
369
|
plural,
|
|
334
370
|
productName
|
|
335
371
|
} from "./chunk-XPS3W7FC.js";
|
|
336
|
-
import "./chunk-EUBCYTOK.js";
|
|
337
|
-
import "./chunk-LCGXWCVU.js";
|
|
338
|
-
import {
|
|
339
|
-
readManifest
|
|
340
|
-
} from "./chunk-AK2U3N2A.js";
|
|
341
|
-
import {
|
|
342
|
-
ScheduleConflictError,
|
|
343
|
-
confirmationHolds,
|
|
344
|
-
createJob,
|
|
345
|
-
deleteJob,
|
|
346
|
-
findJob,
|
|
347
|
-
listJobs,
|
|
348
|
-
updateJob
|
|
349
|
-
} from "./chunk-SKKWMMFP.js";
|
|
350
|
-
import {
|
|
351
|
-
writeJsonAtomic
|
|
352
|
-
} from "./chunk-OEW7CJKK.js";
|
|
353
|
-
import "./chunk-HE7WUOX2.js";
|
|
354
|
-
import "./chunk-DAUWDTZI.js";
|
|
355
372
|
import {
|
|
356
373
|
EXIT_INTERNAL_ERROR
|
|
357
374
|
} from "./chunk-Y7B67G22.js";
|
|
@@ -369,7 +386,7 @@ import {
|
|
|
369
386
|
primaryProvider,
|
|
370
387
|
signedInSubscriptionProviders,
|
|
371
388
|
writePreferences
|
|
372
|
-
} from "./chunk-
|
|
389
|
+
} from "./chunk-Y74CPWYC.js";
|
|
373
390
|
import {
|
|
374
391
|
ALL_PROVIDER_IDS,
|
|
375
392
|
PROVIDER_REGISTRY,
|
|
@@ -379,22 +396,22 @@ import {
|
|
|
379
396
|
} from "./chunk-6LLJQ3KY.js";
|
|
380
397
|
import {
|
|
381
398
|
applyProviderFlags
|
|
382
|
-
} from "./chunk-
|
|
399
|
+
} from "./chunk-5XWMKWQQ.js";
|
|
383
400
|
import "./chunk-XEUQN4JC.js";
|
|
401
|
+
import "./chunk-HQZ3GBQI.js";
|
|
384
402
|
import {
|
|
385
403
|
PAUSED_TURN_LINES,
|
|
386
404
|
currentTimeLine,
|
|
387
405
|
describeTurnStop,
|
|
388
406
|
handoffContinuationNote
|
|
389
|
-
} from "./chunk-
|
|
407
|
+
} from "./chunk-BDLDDNNO.js";
|
|
390
408
|
import {
|
|
391
409
|
autoAvailable,
|
|
392
410
|
nextCycleMode,
|
|
393
411
|
permissionModeDescription,
|
|
394
412
|
permissionModeLabel,
|
|
395
413
|
permissionModeName
|
|
396
|
-
} from "./chunk-
|
|
397
|
-
import "./chunk-5L7ZQ37R.js";
|
|
414
|
+
} from "./chunk-J4IES4SO.js";
|
|
398
415
|
import {
|
|
399
416
|
expandTabs,
|
|
400
417
|
terminalDisplayText
|
|
@@ -409,6 +426,7 @@ import {
|
|
|
409
426
|
forkConversationBeforeUser,
|
|
410
427
|
journalOf,
|
|
411
428
|
listArchived,
|
|
429
|
+
listOtherFolders,
|
|
412
430
|
listRecent,
|
|
413
431
|
loadConversation,
|
|
414
432
|
loadResumableConversation,
|
|
@@ -420,33 +438,38 @@ import {
|
|
|
420
438
|
titleOf,
|
|
421
439
|
titlesOf,
|
|
422
440
|
typedTextOf,
|
|
441
|
+
unansweredReviewPark,
|
|
423
442
|
unarchiveConversation
|
|
424
|
-
} from "./chunk-
|
|
425
|
-
import "./chunk-
|
|
426
|
-
import "./chunk-
|
|
427
|
-
import "./chunk-
|
|
428
|
-
import "./chunk-
|
|
443
|
+
} from "./chunk-QWBR6FBY.js";
|
|
444
|
+
import "./chunk-IQQ6TY4W.js";
|
|
445
|
+
import "./chunk-JQIBPPOL.js";
|
|
446
|
+
import "./chunk-FMEGRBJP.js";
|
|
447
|
+
import "./chunk-ESZ7X37S.js";
|
|
429
448
|
import {
|
|
430
449
|
isTrusted,
|
|
431
450
|
trustDir
|
|
432
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-M46GKTOI.js";
|
|
433
452
|
import "./chunk-LXB3S4IC.js";
|
|
434
|
-
import "./chunk-
|
|
453
|
+
import "./chunk-OH6TB27S.js";
|
|
454
|
+
import "./chunk-HOY7BUGW.js";
|
|
435
455
|
import "./chunk-WMEZTDLT.js";
|
|
436
456
|
import {
|
|
437
457
|
contextLogging,
|
|
438
458
|
installCliLogging
|
|
439
|
-
} from "./chunk-
|
|
459
|
+
} from "./chunk-JD2HLKFO.js";
|
|
460
|
+
import {
|
|
461
|
+
PROJECT_MCP_FILE,
|
|
462
|
+
parseMcpServerFile
|
|
463
|
+
} from "./chunk-SIG7WHBU.js";
|
|
440
464
|
import {
|
|
441
465
|
isFullWidth,
|
|
442
466
|
isWide,
|
|
443
467
|
stringWidth,
|
|
444
468
|
stripAnsi
|
|
445
469
|
} from "./chunk-U5UV2YRE.js";
|
|
446
|
-
import "./chunk-OH6TB27S.js";
|
|
447
470
|
import "./chunk-IE5XIE4W.js";
|
|
448
471
|
import "./chunk-B73OIFL6.js";
|
|
449
|
-
import "./chunk-
|
|
472
|
+
import "./chunk-DLL2FPUY.js";
|
|
450
473
|
import "./chunk-JORONMD3.js";
|
|
451
474
|
import {
|
|
452
475
|
clearAllStoredCredentials,
|
|
@@ -460,10 +483,10 @@ import {
|
|
|
460
483
|
readStoredSubscriptionCredential,
|
|
461
484
|
restrictToOwner,
|
|
462
485
|
writeStoredGeminiApiKey
|
|
463
|
-
} from "./chunk-
|
|
486
|
+
} from "./chunk-BRKD6FMO.js";
|
|
464
487
|
import {
|
|
465
488
|
namzuHomePath
|
|
466
|
-
} from "./chunk-
|
|
489
|
+
} from "./chunk-YVIM3MXU.js";
|
|
467
490
|
import {
|
|
468
491
|
ACCEPT_EDITS_TOOLS,
|
|
469
492
|
DECLINED_TOOL_CALL_FEEDBACK,
|
|
@@ -524,7 +547,7 @@ import {
|
|
|
524
547
|
validateTimeZone,
|
|
525
548
|
wrapUntrusted,
|
|
526
549
|
writePeerRecord
|
|
527
|
-
} from "./chunk-
|
|
550
|
+
} from "./chunk-7E3V7NNN.js";
|
|
528
551
|
import {
|
|
529
552
|
__commonJS,
|
|
530
553
|
__export,
|
|
@@ -34705,7 +34728,7 @@ function summarizeKnownCall(name, input, context = {}) {
|
|
|
34705
34728
|
...known.provider !== void 0 ? readableField("Provider", known.provider) : [],
|
|
34706
34729
|
...known.effort !== void 0 ? readableField("Effort", known.effort) : [],
|
|
34707
34730
|
...known.run_in_background !== void 0 ? [`Execution: ${known.run_in_background ? "background" : "wait for result"}`] : [],
|
|
34708
|
-
...known.subagent_type === "explore" ? ["Tools: reading and searching only"] : known.subagent_type === void 0 || known.subagent_type === "general-purpose" ? ["Tools: files and commands, subject to approval rules"] : [],
|
|
34731
|
+
...known.subagent_type === "explore" || known.subagent_type === "plan" ? ["Tools: reading and searching only"] : known.subagent_type === void 0 || known.subagent_type === "general-purpose" ? ["Tools: files and commands, subject to approval rules"] : [],
|
|
34709
34732
|
...known.role !== void 0 ? readableField("Role", known.role) : [],
|
|
34710
34733
|
...known.workflow !== void 0 ? readableField("Workflow label", known.workflow) : [],
|
|
34711
34734
|
...known.phase !== void 0 ? readableField("Phase label", known.phase) : [],
|
|
@@ -34984,7 +35007,7 @@ function compactAgentPlan(calls) {
|
|
|
34984
35007
|
previousGroup = group;
|
|
34985
35008
|
}
|
|
34986
35009
|
const type = input.subagent_type;
|
|
34987
|
-
const access = type === "explore" ? "read-only" : type === void 0 || type === "general-purpose" ? "files + commands" : String(type);
|
|
35010
|
+
const access = type === "explore" || type === "plan" ? "read-only" : type === void 0 || type === "general-purpose" ? "files + commands" : String(type);
|
|
34988
35011
|
const background = input.run_in_background === true ? " \xB7 background" : "";
|
|
34989
35012
|
const selection = [input.provider, input.model, input.effort].filter((value) => typeof value === "string").map((value) => oneLine(String(value))).join(" / ");
|
|
34990
35013
|
const modelLabel = selection ? ` \xB7 ${selection}` : "";
|
|
@@ -34998,6 +35021,7 @@ __name(compactAgentPlan, "compactAgentPlan");
|
|
|
34998
35021
|
function agentTypeLabel(type) {
|
|
34999
35022
|
if (type === void 0) return "general-purpose (default)";
|
|
35000
35023
|
if (type === "explore") return "explore (read-only tools)";
|
|
35024
|
+
if (type === "plan") return "plan (read-only tools)";
|
|
35001
35025
|
return type;
|
|
35002
35026
|
}
|
|
35003
35027
|
__name(agentTypeLabel, "agentTypeLabel");
|
|
@@ -35226,8 +35250,9 @@ function systemRowStyle(level) {
|
|
|
35226
35250
|
__name(systemRowStyle, "systemRowStyle");
|
|
35227
35251
|
var INTERRUPTED_TEXT = "Interrupted \xB7 What should Namzu do instead?";
|
|
35228
35252
|
var INTERRUPTED_BY_STEER_TEXT = "Interrupted";
|
|
35253
|
+
var INTERRUPTED_COMMAND_CONTINUES_TEXT = "Interrupted \xB7 The command continues in the background";
|
|
35229
35254
|
function interruptionRow(options) {
|
|
35230
|
-
const content = options.steered === true ? INTERRUPTED_BY_STEER_TEXT : INTERRUPTED_TEXT;
|
|
35255
|
+
const content = options.movedToBackground === true ? INTERRUPTED_COMMAND_CONTINUES_TEXT : options.steered === true ? INTERRUPTED_BY_STEER_TEXT : INTERRUPTED_TEXT;
|
|
35231
35256
|
return options.callRunning ? { content, glyph: CONTINUATION_GLYPH, color: tokenColor("text.muted") } : { content, ...systemRowStyle("notice") };
|
|
35232
35257
|
}
|
|
35233
35258
|
__name(interruptionRow, "interruptionRow");
|
|
@@ -36970,6 +36995,8 @@ function buildContextView(input) {
|
|
|
36970
36995
|
lines.push(usage2, "", "Estimated usage by category");
|
|
36971
36996
|
for (const line of legend) lines.push(`${line.glyph} ${line.name}: ${line.value}`);
|
|
36972
36997
|
if (windowNote) lines.push("", `${windowNote.label}${windowNote.value}`);
|
|
36998
|
+
const cacheNote = input.cacheLifetime ? { label: "Prompt cache lifetime: ", value: input.cacheLifetime } : void 0;
|
|
36999
|
+
if (cacheNote) lines.push(...windowNote ? [] : [""], `${cacheNote.label}${cacheNote.value}`);
|
|
36973
37000
|
for (const section of input.sections) {
|
|
36974
37001
|
lines.push("", `${section.title} \xB7 ${section.hint}`);
|
|
36975
37002
|
for (const group of section.groups) {
|
|
@@ -36993,6 +37020,7 @@ function buildContextView(input) {
|
|
|
36993
37020
|
usage: usage2,
|
|
36994
37021
|
legend,
|
|
36995
37022
|
...windowNote ? { windowNote } : {},
|
|
37023
|
+
...cacheNote ? { cacheNote } : {},
|
|
36996
37024
|
sections: input.sections,
|
|
36997
37025
|
suggestions,
|
|
36998
37026
|
text: lines.join("\n")
|
|
@@ -37048,6 +37076,10 @@ function ContextGridRow({ view }) {
|
|
|
37048
37076
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: view.windowNote.label }),
|
|
37049
37077
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { dimColor: true, children: view.windowNote.value })
|
|
37050
37078
|
] }) }) : null,
|
|
37079
|
+
view.cacheNote ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { marginTop: view.windowNote ? 0 : 1, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Text, { children: [
|
|
37080
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: view.cacheNote.label }),
|
|
37081
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { dimColor: true, children: view.cacheNote.value })
|
|
37082
|
+
] }) }) : null,
|
|
37051
37083
|
view.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, children: [
|
|
37052
37084
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Text, { children: [
|
|
37053
37085
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: section.title }),
|
|
@@ -38196,6 +38228,26 @@ import { readFileSync as readFileSync3 } from "node:fs";
|
|
|
38196
38228
|
import { resolve } from "node:path";
|
|
38197
38229
|
var FILES = ["namzu.config.json", "namzu.config.local.json"];
|
|
38198
38230
|
var MAX_SHOWN_GRANT_RULES = 8;
|
|
38231
|
+
function plainAddress(url) {
|
|
38232
|
+
try {
|
|
38233
|
+
const parsed = new URL(url);
|
|
38234
|
+
return `${parsed.protocol}//${parsed.host}${parsed.pathname === "/" ? "" : parsed.pathname}`;
|
|
38235
|
+
} catch {
|
|
38236
|
+
return url.split(/[?#]/)[0] ?? url;
|
|
38237
|
+
}
|
|
38238
|
+
}
|
|
38239
|
+
__name(plainAddress, "plainAddress");
|
|
38240
|
+
function describeRuns(entry) {
|
|
38241
|
+
if (entry === null || typeof entry !== "object") return "unknown";
|
|
38242
|
+
const spec = entry;
|
|
38243
|
+
if (typeof spec.command === "string" && spec.command.length > 0) {
|
|
38244
|
+
const args = Array.isArray(spec.args) ? spec.args.filter((arg) => typeof arg === "string") : [];
|
|
38245
|
+
return [spec.command, ...args].join(" ").replace(/\s+/g, " ");
|
|
38246
|
+
}
|
|
38247
|
+
if (typeof spec.url === "string" && spec.url.length > 0) return plainAddress(spec.url);
|
|
38248
|
+
return "unknown";
|
|
38249
|
+
}
|
|
38250
|
+
__name(describeRuns, "describeRuns");
|
|
38199
38251
|
function readObject(path) {
|
|
38200
38252
|
try {
|
|
38201
38253
|
const parsed = JSON.parse(readFileSync3(path, "utf8"));
|
|
@@ -38228,9 +38280,23 @@ function readFolderGrants(cwd2) {
|
|
|
38228
38280
|
}
|
|
38229
38281
|
}
|
|
38230
38282
|
}
|
|
38283
|
+
let toolServers = [];
|
|
38284
|
+
try {
|
|
38285
|
+
const declared = parseMcpServerFile(
|
|
38286
|
+
readFileSync3(resolve(cwd2, PROJECT_MCP_FILE), "utf8"),
|
|
38287
|
+
PROJECT_MCP_FILE
|
|
38288
|
+
);
|
|
38289
|
+
toolServers = Object.entries(declared).map(([name, entry]) => ({
|
|
38290
|
+
name,
|
|
38291
|
+
runs: describeRuns(entry),
|
|
38292
|
+
fingerprint: fingerprintMcpServer(entry)
|
|
38293
|
+
}));
|
|
38294
|
+
} catch {
|
|
38295
|
+
}
|
|
38231
38296
|
return {
|
|
38232
38297
|
allowRules: [...new Set(allowRules)],
|
|
38233
|
-
directories: [...new Set(directories)]
|
|
38298
|
+
directories: [...new Set(directories)],
|
|
38299
|
+
toolServers
|
|
38234
38300
|
};
|
|
38235
38301
|
}
|
|
38236
38302
|
__name(readFolderGrants, "readFolderGrants");
|
|
@@ -40135,6 +40201,17 @@ function nextQueuedHintEpisode(previous, wanted) {
|
|
|
40135
40201
|
}
|
|
40136
40202
|
__name(nextQueuedHintEpisode, "nextQueuedHintEpisode");
|
|
40137
40203
|
|
|
40204
|
+
// src/tui/foreground-handoff.ts
|
|
40205
|
+
function backgroundHint(env3 = process.env) {
|
|
40206
|
+
const inTmux = env3.TMUX !== void 0 && env3.TMUX !== "";
|
|
40207
|
+
return inTmux ? "(ctrl+b ctrl+b (twice) to run in background)" : "(ctrl+b to run in background)";
|
|
40208
|
+
}
|
|
40209
|
+
__name(backgroundHint, "backgroundHint");
|
|
40210
|
+
function isBackgroundChord(input, key) {
|
|
40211
|
+
return key.ctrl && input === "b";
|
|
40212
|
+
}
|
|
40213
|
+
__name(isBackgroundChord, "isBackgroundChord");
|
|
40214
|
+
|
|
40138
40215
|
// src/tui/mentions.ts
|
|
40139
40216
|
import { execFile as execFile2 } from "node:child_process";
|
|
40140
40217
|
import { readFileSync as readFileSync5, realpathSync as realpathSync2, statSync as statSync2 } from "node:fs";
|
|
@@ -41688,6 +41765,7 @@ function Composer({
|
|
|
41688
41765
|
queuedEdit,
|
|
41689
41766
|
queuedHintCount,
|
|
41690
41767
|
onSendNow,
|
|
41768
|
+
onBackgroundCommand,
|
|
41691
41769
|
onStopAllAgents,
|
|
41692
41770
|
railFocused = false,
|
|
41693
41771
|
onCycleMode,
|
|
@@ -41787,6 +41865,7 @@ function Composer({
|
|
|
41787
41865
|
onDraftPresenceChange?.(hasDraft);
|
|
41788
41866
|
}, [attachments.length, onDraftPresenceChange, value]);
|
|
41789
41867
|
const commandSuggestions = plainText ? [] : matchSlashCommands(value, userCommands, builtins);
|
|
41868
|
+
const argumentHint = plainText ? void 0 : argumentHintFor(value, userCommands);
|
|
41790
41869
|
const activeMention = activeFileMention(value, cursor);
|
|
41791
41870
|
const fileSuggestions = activeMention ? matchMentionableFiles(activeMention.query, mentionCandidates) : [];
|
|
41792
41871
|
const suggestionKind = commandSuggestions.length > 0 ? "command" : fileSuggestions.length > 0 ? "file" : null;
|
|
@@ -41980,6 +42059,7 @@ function Composer({
|
|
|
41980
42059
|
sendNowChordRef.current = true;
|
|
41981
42060
|
return;
|
|
41982
42061
|
}
|
|
42062
|
+
if (isBackgroundChord(input, key) && onBackgroundCommand?.()) return;
|
|
41983
42063
|
if (chordArmed && key.ctrl && input === "s" && onSendNow) {
|
|
41984
42064
|
onSendNow();
|
|
41985
42065
|
return;
|
|
@@ -42535,6 +42615,7 @@ function Composer({
|
|
|
42535
42615
|
renderSegments(beforeSegments),
|
|
42536
42616
|
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { color: theme.border.focus, children: "\u258F" }),
|
|
42537
42617
|
renderSegments(afterSegments),
|
|
42618
|
+
argumentHint ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { color: theme.text.muted, children: argumentHint }) : null,
|
|
42538
42619
|
displayValue.trailingEllipsis ? " \u2026" : ""
|
|
42539
42620
|
] }) })
|
|
42540
42621
|
] }),
|
|
@@ -43092,13 +43173,16 @@ function LiveActivity({
|
|
|
43092
43173
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: theme.text.muted, children: blink ? "\u25CF" : " " }) }),
|
|
43093
43174
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: terminalDisplayText(t.label) })
|
|
43094
43175
|
] }),
|
|
43095
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.
|
|
43096
|
-
|
|
43097
|
-
|
|
43098
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.
|
|
43099
|
-
|
|
43100
|
-
|
|
43101
|
-
|
|
43176
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Box_default, { flexDirection: "column", paddingLeft: RESULT_GUTTER_INDENT, children: [
|
|
43177
|
+
rows.map((row, i) => (
|
|
43178
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: these rows hold no state of their own.
|
|
43179
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
43180
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box_default, { width: RESULT_GUTTER_WIDTH, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: theme.text.muted, children: i === 0 ? "\u23BF" : " " }) }),
|
|
43181
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: shellToneColor(row.tone), wrap: "truncate-end", children: terminalDisplayText(row.text) })
|
|
43182
|
+
] }, `r-${i}`)
|
|
43183
|
+
)),
|
|
43184
|
+
t.canBackground ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box_default, { paddingLeft: RESULT_GUTTER_WIDTH, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: backgroundHint() }) }) : null
|
|
43185
|
+
] })
|
|
43102
43186
|
] }, t.id);
|
|
43103
43187
|
}
|
|
43104
43188
|
if (t.queued) return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QueuedToolRow, { tool: t }, t.id);
|
|
@@ -43210,7 +43294,7 @@ function holdText(held) {
|
|
|
43210
43294
|
if (held.source === "operator-interrupt") {
|
|
43211
43295
|
return "Held after you stopped the reply \xB7 your next message runs first, then these";
|
|
43212
43296
|
}
|
|
43213
|
-
if (held.outcome === "paused") return "
|
|
43297
|
+
if (held.outcome === "paused") return "Waiting for the paused reply to continue, then these run";
|
|
43214
43298
|
return `Paused after the ${held.outcome === "failed" ? "failed" : "stopped"} reply \xB7 send a message to run them`;
|
|
43215
43299
|
}
|
|
43216
43300
|
__name(holdText, "holdText");
|
|
@@ -45729,9 +45813,47 @@ function QuestionDialog({ question, columns, onAnswer }) {
|
|
|
45729
45813
|
}
|
|
45730
45814
|
__name(QuestionDialog, "QuestionDialog");
|
|
45731
45815
|
|
|
45816
|
+
// src/tui/resume-picker-state.ts
|
|
45817
|
+
function filterConversations(conversations, query) {
|
|
45818
|
+
const words = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
45819
|
+
if (words.length === 0) return conversations;
|
|
45820
|
+
return conversations.filter((conversation) => {
|
|
45821
|
+
const haystack = [conversation.title, conversation.firstPrompt, conversation.preview].filter((part) => typeof part === "string").join("\n").toLowerCase();
|
|
45822
|
+
return words.every((word) => haystack.includes(word));
|
|
45823
|
+
});
|
|
45824
|
+
}
|
|
45825
|
+
__name(filterConversations, "filterConversations");
|
|
45826
|
+
function openingLines(firstPrompt, lines = 3, width = 200) {
|
|
45827
|
+
if (!firstPrompt) return [];
|
|
45828
|
+
return firstPrompt.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0).slice(0, lines).map((line) => line.length > width ? `${line.slice(0, width - 1)}\u2026` : line);
|
|
45829
|
+
}
|
|
45830
|
+
__name(openingLines, "openingLines");
|
|
45831
|
+
function editLine(text, key) {
|
|
45832
|
+
if (key.backspace || key.delete) return Array.from(text).slice(0, -1).join("");
|
|
45833
|
+
if (key.ctrl || key.meta || key.tab || key.return || key.escape) return null;
|
|
45834
|
+
if (key.upArrow || key.downArrow || key.leftArrow || key.rightArrow || key.pageUp || key.pageDown || key.home || key.end)
|
|
45835
|
+
return null;
|
|
45836
|
+
const printable2 = key.input.replace(/[\u0000-\u001f\u007f]/g, "");
|
|
45837
|
+
if (printable2.length === 0) return null;
|
|
45838
|
+
return text + printable2;
|
|
45839
|
+
}
|
|
45840
|
+
__name(editLine, "editLine");
|
|
45841
|
+
function resumeScopeLabel(scope) {
|
|
45842
|
+
return scope === "all" ? "All folders" : "This folder";
|
|
45843
|
+
}
|
|
45844
|
+
__name(resumeScopeLabel, "resumeScopeLabel");
|
|
45845
|
+
|
|
45732
45846
|
// src/tui/ResumePicker.tsx
|
|
45733
45847
|
var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
|
|
45734
|
-
function ResumePicker({
|
|
45848
|
+
function ResumePicker({
|
|
45849
|
+
conversations,
|
|
45850
|
+
selected,
|
|
45851
|
+
mode = "resume",
|
|
45852
|
+
query = "",
|
|
45853
|
+
scope = "folder",
|
|
45854
|
+
renaming = null,
|
|
45855
|
+
notice
|
|
45856
|
+
}) {
|
|
45735
45857
|
const { stdout } = use_stdout_default();
|
|
45736
45858
|
const showPreview = (stdout.rows ?? 24) >= 20;
|
|
45737
45859
|
const { start, items: visible } = selectionWindow(conversations, selected);
|
|
@@ -45744,6 +45866,19 @@ function ResumePicker({ conversations, selected, mode = "resume" }) {
|
|
|
45744
45866
|
conversations.length
|
|
45745
45867
|
] })
|
|
45746
45868
|
] }),
|
|
45869
|
+
renaming !== null ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.primary, wrap: "truncate-end", children: [
|
|
45870
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.accent.user, children: "Name: " }),
|
|
45871
|
+
renaming,
|
|
45872
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: "\u258F" })
|
|
45873
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.primary, wrap: "truncate-end", children: [
|
|
45874
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.accent.user, children: "Search: " }),
|
|
45875
|
+
query.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
45876
|
+
query,
|
|
45877
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: "\u258F" })
|
|
45878
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: "type to search" })
|
|
45879
|
+
] }),
|
|
45880
|
+
mode === "resume" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: resumeScopeLabel(scope) }),
|
|
45881
|
+
conversations.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box_default, { paddingTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.secondary, children: query.length > 0 ? "No conversation matches." : "No conversations to show." }) }),
|
|
45747
45882
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box_default, { flexDirection: "column", paddingTop: 1, children: visible.map((c, visibleIndex) => {
|
|
45748
45883
|
const index = start + visibleIndex;
|
|
45749
45884
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Box_default, { children: [
|
|
@@ -45757,6 +45892,10 @@ function ResumePicker({ conversations, selected, mode = "resume" }) {
|
|
|
45757
45892
|
children: c.named ? `"${displayConversationTitle(c.title)}"` : displayConversationTitle(c.title)
|
|
45758
45893
|
}
|
|
45759
45894
|
) }),
|
|
45895
|
+
c.folder !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.muted, children: [
|
|
45896
|
+
" ",
|
|
45897
|
+
c.folder
|
|
45898
|
+
] }),
|
|
45760
45899
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.muted, children: [
|
|
45761
45900
|
" ",
|
|
45762
45901
|
relativeTime(c.updatedAt)
|
|
@@ -45764,15 +45903,36 @@ function ResumePicker({ conversations, selected, mode = "resume" }) {
|
|
|
45764
45903
|
] }, c.id);
|
|
45765
45904
|
}) }),
|
|
45766
45905
|
showPreview && conversations[selected] && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Box_default, { flexDirection: "column", paddingTop: 1, children: [
|
|
45906
|
+
openingLines(conversations[selected]?.firstPrompt).map((line, lineIndex) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
45907
|
+
Text,
|
|
45908
|
+
{
|
|
45909
|
+
color: theme.text.secondary,
|
|
45910
|
+
wrap: "truncate-end",
|
|
45911
|
+
children: lineIndex === 0 ? `Started with: ${line}` : ` ${line}`
|
|
45912
|
+
},
|
|
45913
|
+
lineIndex
|
|
45914
|
+
)),
|
|
45767
45915
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: conversations[selected]?.preview ? `Last prompt: ${conversations[selected]?.preview}` : "No saved prompt." }),
|
|
45768
45916
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: plural(conversations[selected]?.count ?? 0, "message") })
|
|
45769
45917
|
] }),
|
|
45918
|
+
notice !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.status.warn, wrap: "wrap", children: notice }),
|
|
45770
45919
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box_default, { paddingTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: fitHints(
|
|
45771
|
-
[
|
|
45920
|
+
renaming !== null ? [
|
|
45921
|
+
{ text: "enter save", rank: 5 },
|
|
45922
|
+
{ text: "esc cancel", short: "esc", rank: 5 }
|
|
45923
|
+
] : [
|
|
45772
45924
|
{ text: "\u2191\u2193 select", rank: 5 },
|
|
45925
|
+
{ text: `enter ${mode}`, rank: 5 },
|
|
45926
|
+
...mode === "resume" ? [
|
|
45927
|
+
{
|
|
45928
|
+
text: scope === "all" ? "ctrl+a this folder" : "ctrl+a all folders",
|
|
45929
|
+
short: "ctrl+a",
|
|
45930
|
+
rank: 4
|
|
45931
|
+
},
|
|
45932
|
+
{ text: "ctrl+r rename", short: "ctrl+r", rank: 3 }
|
|
45933
|
+
] : [],
|
|
45773
45934
|
{ text: "PgUp/PgDn jump", rank: 1 },
|
|
45774
45935
|
{ text: "Home/End", rank: 1 },
|
|
45775
|
-
{ text: `enter ${mode}`, rank: 5 },
|
|
45776
45936
|
{ text: "esc cancel", short: "esc", rank: 5 }
|
|
45777
45937
|
],
|
|
45778
45938
|
boxedHintWidth(stdout.columns)
|
|
@@ -46585,6 +46745,7 @@ function modeGlyph(mode) {
|
|
|
46585
46745
|
}
|
|
46586
46746
|
__name(modeGlyph, "modeGlyph");
|
|
46587
46747
|
var QUIET_MODE_HINT = "shift+tab to cycle";
|
|
46748
|
+
var QUIET_SANDBOX_HINT = "sandbox commands run unasked \xB7 shift+tab to cycle";
|
|
46588
46749
|
var CYCLE_SUFFIX = " (shift+tab to cycle)";
|
|
46589
46750
|
var INTERRUPT_HINT = "esc to interrupt";
|
|
46590
46751
|
var MANAGE_HINT = "\u2193 to manage";
|
|
@@ -46625,6 +46786,7 @@ function StatusBar({
|
|
|
46625
46786
|
dialogOpen = false,
|
|
46626
46787
|
permissionMode,
|
|
46627
46788
|
canCycleMode,
|
|
46789
|
+
sandboxShell = false,
|
|
46628
46790
|
composerMounted = true,
|
|
46629
46791
|
restingHint = true,
|
|
46630
46792
|
shellCount = 0,
|
|
@@ -46659,7 +46821,7 @@ function StatusBar({
|
|
|
46659
46821
|
notice: notice?.text ?? null,
|
|
46660
46822
|
ambient: ambient?.text ?? null,
|
|
46661
46823
|
goal,
|
|
46662
|
-
modeLabel: activeMode ? `${activeMode.icon} ${activeMode.label} on` : composerMounted && !dialogOpen && restingHint && !working && nothingElse ? QUIET_MODE_HINT : "",
|
|
46824
|
+
modeLabel: activeMode ? `${activeMode.icon} ${activeMode.label} on` : composerMounted && !dialogOpen && restingHint && !working && nothingElse ? sandboxShell ? QUIET_SANDBOX_HINT : QUIET_MODE_HINT : "",
|
|
46663
46825
|
// The cycle key is dropped as soon as a background task is on
|
|
46664
46826
|
// the row: the pill is what the row is about then.
|
|
46665
46827
|
cycleSuffix: activeMode && canCycleMode && composerMounted && !dialogOpen && shellCount + monitorCount === 0 ? CYCLE_SUFFIX : null,
|
|
@@ -46812,7 +46974,7 @@ function fitStatusLine(input) {
|
|
|
46812
46974
|
if (over()) effort = null;
|
|
46813
46975
|
if (over()) shells = null;
|
|
46814
46976
|
if (over()) pr = null;
|
|
46815
|
-
if (over() && mode === QUIET_MODE_HINT) mode = null;
|
|
46977
|
+
if (over() && (mode === QUIET_MODE_HINT || mode === QUIET_SANDBOX_HINT)) mode = null;
|
|
46816
46978
|
if (over() && mode) {
|
|
46817
46979
|
const whole = mode;
|
|
46818
46980
|
mode = null;
|
|
@@ -47327,8 +47489,27 @@ function countOf(count2, one, many) {
|
|
|
47327
47489
|
return `${count2} ${count2 === 1 ? one : many}`;
|
|
47328
47490
|
}
|
|
47329
47491
|
__name(countOf, "countOf");
|
|
47492
|
+
function shownToolServers(grants) {
|
|
47493
|
+
return (grants?.toolServers ?? []).slice(0, MAX_SHOWN_GRANT_RULES);
|
|
47494
|
+
}
|
|
47495
|
+
__name(shownToolServers, "shownToolServers");
|
|
47496
|
+
function wrapHard(text, width) {
|
|
47497
|
+
const rows = [];
|
|
47498
|
+
let row = "";
|
|
47499
|
+
for (const char of text) {
|
|
47500
|
+
if (row !== "" && stringWidth(row + char) > width) {
|
|
47501
|
+
rows.push(row);
|
|
47502
|
+
row = "";
|
|
47503
|
+
}
|
|
47504
|
+
row += char;
|
|
47505
|
+
}
|
|
47506
|
+
rows.push(row);
|
|
47507
|
+
return rows;
|
|
47508
|
+
}
|
|
47509
|
+
__name(wrapHard, "wrapHard");
|
|
47330
47510
|
function trustGrantLines(grants, columns) {
|
|
47331
|
-
if (!grants || grants.allowRules.length === 0 && grants.directories.length === 0
|
|
47511
|
+
if (!grants || grants.allowRules.length === 0 && grants.directories.length === 0 && grants.toolServers.length === 0)
|
|
47512
|
+
return [];
|
|
47332
47513
|
const room = trustPathWidth(columns);
|
|
47333
47514
|
const lines = [];
|
|
47334
47515
|
if (grants.allowRules.length > 0) {
|
|
@@ -47351,6 +47532,18 @@ function trustGrantLines(grants, columns) {
|
|
|
47351
47532
|
const more = grants.directories.length - MAX_SHOWN_GRANT_RULES;
|
|
47352
47533
|
if (more > 0) lines.push(` and ${more} more`);
|
|
47353
47534
|
}
|
|
47535
|
+
if (grants.toolServers.length > 0) {
|
|
47536
|
+
lines.push(
|
|
47537
|
+
`This folder starts ${countOf(grants.toolServers.length, "tool server", "tool servers")}:`
|
|
47538
|
+
);
|
|
47539
|
+
for (const server of shownToolServers(grants)) {
|
|
47540
|
+
lines.push(
|
|
47541
|
+
...wrapHard(`${server.name}: ${server.runs}`, Math.max(1, room - 2)).map((l) => ` ${l}`)
|
|
47542
|
+
);
|
|
47543
|
+
}
|
|
47544
|
+
const more = grants.toolServers.length - MAX_SHOWN_GRANT_RULES;
|
|
47545
|
+
if (more > 0) lines.push(` and ${more} more, which stay waiting for your approval`);
|
|
47546
|
+
}
|
|
47354
47547
|
lines.push(...wrapBalancedText(GRANTS_NOTICE, room));
|
|
47355
47548
|
return lines;
|
|
47356
47549
|
}
|
|
@@ -47892,6 +48085,7 @@ async function collectContextView(sources) {
|
|
|
47892
48085
|
breakdown,
|
|
47893
48086
|
windowSource: source,
|
|
47894
48087
|
autoCompact: sources.autoCompact,
|
|
48088
|
+
...sources.cacheLifetime ? { cacheLifetime: sources.cacheLifetime } : {},
|
|
47895
48089
|
approximate: sources.sizeOutOfDate === true || !sources.context.measured,
|
|
47896
48090
|
...sources.model ? { model: sources.model } : {},
|
|
47897
48091
|
terminalColumns: sources.terminalColumns,
|
|
@@ -47923,6 +48117,7 @@ async function buildContextRow(input) {
|
|
|
47923
48117
|
terminalColumns: input.columns,
|
|
47924
48118
|
...input.model ? { model: input.model } : {},
|
|
47925
48119
|
autoCompact: true,
|
|
48120
|
+
...providerOffersCacheLifetime(input.providerId) ? { cacheLifetime: describeCacheLifetime(promptCacheTtl()) } : {},
|
|
47926
48121
|
...inventory?.systemPrompt ? { systemPrompt: inventory.systemPrompt } : {},
|
|
47927
48122
|
tools: inventory?.tools ?? [],
|
|
47928
48123
|
messages: input.messages,
|
|
@@ -48364,7 +48559,7 @@ __name(monitorEndRow, "monitorEndRow");
|
|
|
48364
48559
|
|
|
48365
48560
|
// src/tui/launch-settings.ts
|
|
48366
48561
|
function choosesModel(settings) {
|
|
48367
|
-
return Boolean(settings?.provider || settings?.model);
|
|
48562
|
+
return Boolean(settings?.provider || settings?.model || settings?.fallbackModels?.length);
|
|
48368
48563
|
}
|
|
48369
48564
|
__name(choosesModel, "choosesModel");
|
|
48370
48565
|
function launchPreferences(saved, settings) {
|
|
@@ -48373,7 +48568,8 @@ function launchPreferences(saved, settings) {
|
|
|
48373
48568
|
provider: settings.provider ?? null,
|
|
48374
48569
|
model: settings.model ?? null
|
|
48375
48570
|
});
|
|
48376
|
-
|
|
48571
|
+
const chained = applyFallbackFlag(applied, settings.fallbackModels ?? []);
|
|
48572
|
+
return chained.providers.length > 0 ? chained : null;
|
|
48377
48573
|
}
|
|
48378
48574
|
__name(launchPreferences, "launchPreferences");
|
|
48379
48575
|
|
|
@@ -48518,6 +48714,39 @@ function isRepeatedNotice(last, candidate) {
|
|
|
48518
48714
|
}
|
|
48519
48715
|
__name(isRepeatedNotice, "isRepeatedNotice");
|
|
48520
48716
|
|
|
48717
|
+
// src/tui/pause-auto-resume.ts
|
|
48718
|
+
var AUTO_RESUME_DELAYS_MS = [15e3, 3e4, 6e4, 12e4, 3e5];
|
|
48719
|
+
function autoResumeDelayMs(attempt) {
|
|
48720
|
+
const last = AUTO_RESUME_DELAYS_MS.length - 1;
|
|
48721
|
+
const index = Math.min(Math.max(Math.trunc(attempt), 1) - 1, last);
|
|
48722
|
+
return AUTO_RESUME_DELAYS_MS[index] ?? 3e5;
|
|
48723
|
+
}
|
|
48724
|
+
__name(autoResumeDelayMs, "autoResumeDelayMs");
|
|
48725
|
+
var REAL_TIMERS = {
|
|
48726
|
+
setTimer: /* @__PURE__ */ __name((run4, ms) => setTimeout(run4, ms), "setTimer"),
|
|
48727
|
+
clearTimer: /* @__PURE__ */ __name((handle) => clearTimeout(handle), "clearTimer")
|
|
48728
|
+
};
|
|
48729
|
+
function startAutoResume(options) {
|
|
48730
|
+
const timers = options.timers ?? REAL_TIMERS;
|
|
48731
|
+
const recheckMs = options.recheckMs ?? 1e3;
|
|
48732
|
+
let cancelled = false;
|
|
48733
|
+
let handle;
|
|
48734
|
+
const attempt = /* @__PURE__ */ __name(() => {
|
|
48735
|
+
if (cancelled) return;
|
|
48736
|
+
if (!options.ready()) {
|
|
48737
|
+
handle = timers.setTimer(attempt, recheckMs);
|
|
48738
|
+
return;
|
|
48739
|
+
}
|
|
48740
|
+
options.resume();
|
|
48741
|
+
}, "attempt");
|
|
48742
|
+
handle = timers.setTimer(attempt, Math.max(0, options.delayMs));
|
|
48743
|
+
return () => {
|
|
48744
|
+
cancelled = true;
|
|
48745
|
+
timers.clearTimer(handle);
|
|
48746
|
+
};
|
|
48747
|
+
}
|
|
48748
|
+
__name(startAutoResume, "startAutoResume");
|
|
48749
|
+
|
|
48521
48750
|
// src/tui/per-call-review.ts
|
|
48522
48751
|
var REASON_MAX_CHARS = 500;
|
|
48523
48752
|
function cleanReason(text) {
|
|
@@ -51909,6 +52138,19 @@ function useSpinnerTip(input) {
|
|
|
51909
52138
|
}
|
|
51910
52139
|
__name(useSpinnerTip, "useSpinnerTip");
|
|
51911
52140
|
|
|
52141
|
+
// src/tui/working-label.ts
|
|
52142
|
+
var RESERVED_COLUMNS = 40;
|
|
52143
|
+
var MIN_WIDTH = 12;
|
|
52144
|
+
var MAX_WIDTH = 60;
|
|
52145
|
+
function workingLabel(tasks, columns) {
|
|
52146
|
+
const step = tasks.find((task) => task.status === "in_progress");
|
|
52147
|
+
if (!step) return void 0;
|
|
52148
|
+
const text = [step.activeForm, step.subject].map((candidate) => candidate?.replace(/\s+/gu, " ").trim()).find((candidate) => candidate);
|
|
52149
|
+
if (!text) return void 0;
|
|
52150
|
+
return clipText(text, Math.max(MIN_WIDTH, Math.min(MAX_WIDTH, columns - RESERVED_COLUMNS)));
|
|
52151
|
+
}
|
|
52152
|
+
__name(workingLabel, "workingLabel");
|
|
52153
|
+
|
|
51912
52154
|
// src/integrations/notifications/approval.ts
|
|
51913
52155
|
var APPROVAL_NOTIFICATION_MS = 6e3;
|
|
51914
52156
|
var ApprovalNotifier = class {
|
|
@@ -52532,6 +52774,7 @@ function trailFromRecords(records) {
|
|
|
52532
52774
|
if (typeof record3.toolUseId !== "string" || record3.via) break;
|
|
52533
52775
|
const key = callKey(turnId, record3.toolUseId);
|
|
52534
52776
|
calls.set(key, { ...calls.get(key), start: record3 });
|
|
52777
|
+
if (turnId) turn(turnId).journaled = true;
|
|
52535
52778
|
if (turnId && String(record3.toolName).toLowerCase() === "agent")
|
|
52536
52779
|
turn(turnId).agents.push(false);
|
|
52537
52780
|
break;
|
|
@@ -52542,6 +52785,17 @@ function trailFromRecords(records) {
|
|
|
52542
52785
|
calls.set(key, { ...calls.get(key), end: record3 });
|
|
52543
52786
|
break;
|
|
52544
52787
|
}
|
|
52788
|
+
case "tool_review_requested": {
|
|
52789
|
+
if (turnId) turn(turnId).journaled = true;
|
|
52790
|
+
const asked = Array.isArray(record3.toolCalls) ? record3.toolCalls : [];
|
|
52791
|
+
for (const entry of asked) {
|
|
52792
|
+
const id = entry?.id;
|
|
52793
|
+
if (typeof id !== "string") continue;
|
|
52794
|
+
const key = callKey(turnId, id);
|
|
52795
|
+
calls.set(key, { ...calls.get(key), asked: true });
|
|
52796
|
+
}
|
|
52797
|
+
break;
|
|
52798
|
+
}
|
|
52545
52799
|
default:
|
|
52546
52800
|
break;
|
|
52547
52801
|
}
|
|
@@ -52627,6 +52881,22 @@ function interruptedRows(label) {
|
|
|
52627
52881
|
];
|
|
52628
52882
|
}
|
|
52629
52883
|
__name(interruptedRows, "interruptedRows");
|
|
52884
|
+
function notRunRows(label, asked) {
|
|
52885
|
+
return [
|
|
52886
|
+
{
|
|
52887
|
+
role: "tool",
|
|
52888
|
+
content: label,
|
|
52889
|
+
glyph: "\u25CB",
|
|
52890
|
+
glyphColor: tokenColor("text.muted")
|
|
52891
|
+
},
|
|
52892
|
+
{
|
|
52893
|
+
role: "tool",
|
|
52894
|
+
content: asked ? "Not run \xB7 it was waiting for approval when the session ended" : "Not run \xB7 the session ended before it started",
|
|
52895
|
+
glyph: "\u23BF"
|
|
52896
|
+
}
|
|
52897
|
+
];
|
|
52898
|
+
}
|
|
52899
|
+
__name(notRunRows, "notRunRows");
|
|
52630
52900
|
function restoredToolRows(turnId, call, results, trail, presenter, cwd2) {
|
|
52631
52901
|
const toolName = call.function.name;
|
|
52632
52902
|
const saved = trail.calls.get(callKey(turnId, call.id));
|
|
@@ -52645,7 +52915,10 @@ function restoredToolRows(turnId, call, results, trail, presenter, cwd2) {
|
|
|
52645
52915
|
const text = resultText(message);
|
|
52646
52916
|
const interrupted = saved?.end === void 0 && (!message || text.startsWith(INTERRUPTED_RESULT));
|
|
52647
52917
|
const start = startOf(started);
|
|
52648
|
-
if (interrupted)
|
|
52918
|
+
if (interrupted) {
|
|
52919
|
+
const journaled = turnId !== void 0 && trail.turns.get(turnId)?.journaled === true;
|
|
52920
|
+
return saved?.start === void 0 && (saved?.asked === true || journaled) ? notRunRows(start.label, saved?.asked === true) : interruptedRows(start.label);
|
|
52921
|
+
}
|
|
52649
52922
|
const isError = message?.role === "tool" && message.isError === true;
|
|
52650
52923
|
const facts = saved?.end ? void 0 : factsFromReceipt(presenter, call, text, isError);
|
|
52651
52924
|
const endRecord = saved?.end ?? {
|
|
@@ -53475,10 +53748,36 @@ function useTitleFrame(active) {
|
|
|
53475
53748
|
__name(useTitleFrame, "useTitleFrame");
|
|
53476
53749
|
|
|
53477
53750
|
// src/tui/update-notice.ts
|
|
53478
|
-
function
|
|
53479
|
-
|
|
53751
|
+
function updaterEventAmbient(event) {
|
|
53752
|
+
if (event.type === "installed") {
|
|
53753
|
+
return { text: `Updated to ${event.to}, restart to use it`, tone: "dim", strong: event.to };
|
|
53754
|
+
}
|
|
53755
|
+
if (event.type === "failed") {
|
|
53756
|
+
const what = event.code === "verify_failed" ? "could not start here" : "could not be installed";
|
|
53757
|
+
return {
|
|
53758
|
+
text: `Namzu ${event.latest} ${what}; staying on ${event.current}`,
|
|
53759
|
+
tone: "dim",
|
|
53760
|
+
strong: event.latest
|
|
53761
|
+
};
|
|
53762
|
+
}
|
|
53763
|
+
if (event.blocked) {
|
|
53764
|
+
return {
|
|
53765
|
+
text: "Update available, can't install here. See namzu doctor",
|
|
53766
|
+
tone: "warn",
|
|
53767
|
+
strong: "namzu doctor"
|
|
53768
|
+
};
|
|
53769
|
+
}
|
|
53770
|
+
if (event.command === null) {
|
|
53771
|
+
return {
|
|
53772
|
+
text: `Namzu ${event.latest} is available. Reinstall Namzu to get it`,
|
|
53773
|
+
tone: "warn",
|
|
53774
|
+
strong: event.latest
|
|
53775
|
+
};
|
|
53776
|
+
}
|
|
53777
|
+
const lead = event.failure ? "Couldn't update Namzu on its own. Run:" : "Update available! Run:";
|
|
53778
|
+
return { text: `${lead} ${event.command}`, tone: "warn", strong: event.command };
|
|
53480
53779
|
}
|
|
53481
|
-
__name(
|
|
53780
|
+
__name(updaterEventAmbient, "updaterEventAmbient");
|
|
53482
53781
|
|
|
53483
53782
|
// src/tui/use-idle-compaction.ts
|
|
53484
53783
|
var import_react55 = __toESM(require_react(), 1);
|
|
@@ -54042,7 +54341,7 @@ function projectConversation(messages, nextId, readableUserTexts = [], restore)
|
|
|
54042
54341
|
}
|
|
54043
54342
|
];
|
|
54044
54343
|
}
|
|
54045
|
-
if (message
|
|
54344
|
+
if (isModelOnlyContext(message)) {
|
|
54046
54345
|
return [];
|
|
54047
54346
|
}
|
|
54048
54347
|
if (message.source?.type === "runtime-context") {
|
|
@@ -54299,6 +54598,20 @@ function AppBody({
|
|
|
54299
54598
|
});
|
|
54300
54599
|
const [jobSnapshot, setJobSnapshot] = (0, import_react59.useState)({ ownerSession: null, jobs: [] });
|
|
54301
54600
|
const backgroundJobs = jobSnapshot.ownerSession === session ? jobSnapshot.jobs : [];
|
|
54601
|
+
const sandboxShell = sandboxRunsShellUnasked(session?.sandbox);
|
|
54602
|
+
const sandboxShellRef = (0, import_react59.useRef)(sandboxShell);
|
|
54603
|
+
sandboxShellRef.current = sandboxShell;
|
|
54604
|
+
const [offeredCommands, setOfferedCommands] = (0, import_react59.useState)(/* @__PURE__ */ new Set());
|
|
54605
|
+
(0, import_react59.useEffect)(() => {
|
|
54606
|
+
const foreground = session?.foreground;
|
|
54607
|
+
if (!foreground) {
|
|
54608
|
+
setOfferedCommands(/* @__PURE__ */ new Set());
|
|
54609
|
+
return;
|
|
54610
|
+
}
|
|
54611
|
+
const read = /* @__PURE__ */ __name(() => setOfferedCommands(new Set(foreground.commands().map((item) => item.command))), "read");
|
|
54612
|
+
read();
|
|
54613
|
+
return foreground.onChange(read);
|
|
54614
|
+
}, [session]);
|
|
54302
54615
|
const snapshotIdleJobNotices = /* @__PURE__ */ __name(() => {
|
|
54303
54616
|
if (idleJobNoticesRef.current.ownerSession !== session) return { ids: [] };
|
|
54304
54617
|
const pending = idleJobNoticesRef.current.pending;
|
|
@@ -54453,7 +54766,19 @@ ${blocks.join("\n\n")}`;
|
|
|
54453
54766
|
const [compacting, setCompacting] = (0, import_react59.useState)(false);
|
|
54454
54767
|
const [summarising, setSummarising] = (0, import_react59.useState)(false);
|
|
54455
54768
|
const reasoningListedRef = (0, import_react59.useRef)(null);
|
|
54456
|
-
const [
|
|
54769
|
+
const [resumeHere, setResumeList] = (0, import_react59.useState)([]);
|
|
54770
|
+
const [resumeOthers, setResumeOthers] = (0, import_react59.useState)(null);
|
|
54771
|
+
const [resumeQuery, setResumeQuery] = (0, import_react59.useState)("");
|
|
54772
|
+
const [resumeScope, setResumeScope] = (0, import_react59.useState)("folder");
|
|
54773
|
+
const [resumeRenaming, setResumeRenaming] = (0, import_react59.useState)(null);
|
|
54774
|
+
const [resumeNotice, setResumeNotice] = (0, import_react59.useState)(void 0);
|
|
54775
|
+
const resumeList = (0, import_react59.useMemo)(
|
|
54776
|
+
() => filterConversations(
|
|
54777
|
+
resumeScope === "all" && resumeOthers ? [...resumeHere, ...resumeOthers].sort((a, b) => b.updatedAt.localeCompare(a.updatedAt)) : resumeHere,
|
|
54778
|
+
resumeQuery
|
|
54779
|
+
),
|
|
54780
|
+
[resumeHere, resumeOthers, resumeScope, resumeQuery]
|
|
54781
|
+
);
|
|
54457
54782
|
const {
|
|
54458
54783
|
selection: selectedResume,
|
|
54459
54784
|
selectionRef: selectedResumeRef,
|
|
@@ -54520,13 +54845,12 @@ ${blocks.join("\n\n")}`;
|
|
|
54520
54845
|
const liveStreamRef = (0, import_react59.useRef)(null);
|
|
54521
54846
|
const [handoffPark, setHandoffParkState] = (0, import_react59.useState)(null);
|
|
54522
54847
|
const handoffParkRef = (0, import_react59.useRef)(null);
|
|
54523
|
-
const setHandoffPark = (0, import_react59.useCallback)(
|
|
54524
|
-
|
|
54525
|
-
|
|
54526
|
-
|
|
54527
|
-
|
|
54528
|
-
|
|
54529
|
-
);
|
|
54848
|
+
const setHandoffPark = (0, import_react59.useCallback)((value) => {
|
|
54849
|
+
handoffParkRef.current = value;
|
|
54850
|
+
setHandoffParkState(value);
|
|
54851
|
+
}, []);
|
|
54852
|
+
const autoResumeAttemptRef = (0, import_react59.useRef)(0);
|
|
54853
|
+
const [, setAutoResumeTick] = (0, import_react59.useState)(0);
|
|
54530
54854
|
const composerDraftTokenRef = (0, import_react59.useRef)(0);
|
|
54531
54855
|
const [subagents, setSubagentsState] = (0, import_react59.useState)([]);
|
|
54532
54856
|
const subagentsRef = (0, import_react59.useRef)([]);
|
|
@@ -55910,7 +56234,7 @@ ${blocks.join("\n\n")}`;
|
|
|
55910
56234
|
if (announce) {
|
|
55911
56235
|
pushMessage(
|
|
55912
56236
|
"system",
|
|
55913
|
-
`Permissions: ${permissionModeLabel(mode)} for this conversation. ${permissionModeDescription(mode)}`
|
|
56237
|
+
`Permissions: ${permissionModeLabel(mode)} for this conversation. ${permissionModeDescription(mode, { sandboxedShell: sandboxShellRef.current })}`
|
|
55914
56238
|
);
|
|
55915
56239
|
} else if (mode === "classify" && !autoModeNoticeShownRef.current) {
|
|
55916
56240
|
autoModeNoticeShownRef.current = true;
|
|
@@ -56623,7 +56947,12 @@ ${blocks.join("\n\n")}`;
|
|
|
56623
56947
|
}
|
|
56624
56948
|
if (picker.kind === "permission-mode") {
|
|
56625
56949
|
if (value === "more") {
|
|
56626
|
-
const child = permissionPicker(
|
|
56950
|
+
const child = permissionPicker(
|
|
56951
|
+
permissionModeRef.current,
|
|
56952
|
+
true,
|
|
56953
|
+
permissionAvailability(),
|
|
56954
|
+
sandboxShellRef.current
|
|
56955
|
+
);
|
|
56627
56956
|
setSelectedChoice(
|
|
56628
56957
|
Math.max(
|
|
56629
56958
|
0,
|
|
@@ -56996,6 +57325,7 @@ ${blocks.join("\n\n")}`;
|
|
|
56996
57325
|
// The code index tool: on unless the config switched it off.
|
|
56997
57326
|
...activeCtx.codeAnalysis?.enabled === false ? {} : { codeAnalysis: activeCtx.codeAnalysis ?? {} },
|
|
56998
57327
|
rules: activeCtx.rules,
|
|
57328
|
+
...activeCtx.appendSystem ? { appendSystem: activeCtx.appendSystem } : {},
|
|
56999
57329
|
...sessionsRef.current ? {
|
|
57000
57330
|
sessionGoals: sessionsRef.current.goals,
|
|
57001
57331
|
conversationSessions: sessionsRef.current
|
|
@@ -57048,6 +57378,8 @@ ${blocks.join("\n\n")}`;
|
|
|
57048
57378
|
options.beforePublish?.();
|
|
57049
57379
|
commands = definition ? [] : discoverUserCommands({
|
|
57050
57380
|
cwd: activeCtx.cwd,
|
|
57381
|
+
...activeCtx.skills ? { skills: activeCtx.skills } : {},
|
|
57382
|
+
skillCommands: "all",
|
|
57051
57383
|
reserved: hostCommandNames()
|
|
57052
57384
|
});
|
|
57053
57385
|
if (persistSelection && !definition) writePreferences(prefs);
|
|
@@ -57351,7 +57683,9 @@ ${blocks.join("\n\n")}`;
|
|
|
57351
57683
|
setPhase("picker");
|
|
57352
57684
|
}, "toPicker");
|
|
57353
57685
|
if (!requested) {
|
|
57354
|
-
toPicker(
|
|
57686
|
+
toPicker(
|
|
57687
|
+
launch.model || !launch.fallbackModels?.length ? "--model needs --provider here: no provider is saved to apply it to." : "--fallback-model needs a provider to fall over from: none is saved, so choose one first."
|
|
57688
|
+
);
|
|
57355
57689
|
return;
|
|
57356
57690
|
}
|
|
57357
57691
|
const askedFor = requested.providers[0]?.id;
|
|
@@ -57515,6 +57849,13 @@ ${blocks.join("\n\n")}`;
|
|
|
57515
57849
|
try {
|
|
57516
57850
|
activateTrustedProject();
|
|
57517
57851
|
void runProbe();
|
|
57852
|
+
try {
|
|
57853
|
+
const { pending } = pendingProjectMcpServers({ cwd: trustedCwdRef.current });
|
|
57854
|
+
if (pending.length > 0) {
|
|
57855
|
+
pushMessage("system", pendingServersMessage(pending));
|
|
57856
|
+
}
|
|
57857
|
+
} catch {
|
|
57858
|
+
}
|
|
57518
57859
|
} catch (err) {
|
|
57519
57860
|
setPhase("unhealthy");
|
|
57520
57861
|
setStartupExplained(err instanceof ConfigLoadError && err.complete);
|
|
@@ -57532,6 +57873,14 @@ ${blocks.join("\n\n")}`;
|
|
|
57532
57873
|
trustDir(trustedCwdRef.current);
|
|
57533
57874
|
} catch {
|
|
57534
57875
|
}
|
|
57876
|
+
try {
|
|
57877
|
+
approveShownMcpServers(
|
|
57878
|
+
resolveNamzuHome(),
|
|
57879
|
+
trustedCwdRef.current,
|
|
57880
|
+
shownToolServers(trustGrants)
|
|
57881
|
+
);
|
|
57882
|
+
} catch {
|
|
57883
|
+
}
|
|
57535
57884
|
setPhase("probing");
|
|
57536
57885
|
try {
|
|
57537
57886
|
activateTrustedProject();
|
|
@@ -57541,7 +57890,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57541
57890
|
setStartupExplained(err instanceof ConfigLoadError && err.complete);
|
|
57542
57891
|
pushMessage("system", projectSettingsFailure(err), false, STARTUP_STOP_GLYPH);
|
|
57543
57892
|
}
|
|
57544
|
-
}, [activateTrustedProject, pushMessage, runProbe]);
|
|
57893
|
+
}, [activateTrustedProject, pushMessage, runProbe, trustGrants]);
|
|
57545
57894
|
const finalized = messages.filter((m) => !m.pending);
|
|
57546
57895
|
const runningShellCount = backgroundJobs.filter(
|
|
57547
57896
|
(job) => job.status === "running" && job.kind !== "monitor"
|
|
@@ -57596,7 +57945,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57596
57945
|
attachmentCount: (input.prompt.attachments?.length ?? 0) + input.attachedFiles
|
|
57597
57946
|
}));
|
|
57598
57947
|
const queuedInputItems = queued.map((prompt) => ({
|
|
57599
|
-
text: prompt.kind === "goal" ? "Automatic goal continuation" : prompt.kind === "notice" ? "
|
|
57948
|
+
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,
|
|
57600
57949
|
attachmentCount: prompt.kind === "human" ? prompt.attachments?.length : void 0
|
|
57601
57950
|
}));
|
|
57602
57951
|
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;
|
|
@@ -57620,6 +57969,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57620
57969
|
const liveTasks = checklistShown ? [] : tasks;
|
|
57621
57970
|
const fullTaskFurniture = taskListRows(liveTasks);
|
|
57622
57971
|
const nextPlanned = nextTask(tasks);
|
|
57972
|
+
const workingStepLabel = workingLabel(tasks, terminal.columns ?? 80);
|
|
57623
57973
|
const compactWork = LIVE_FURNITURE_ROWS + fullTaskFurniture + fullToolFurniture + pendingInputFurniture >= terminal.rows;
|
|
57624
57974
|
const taskFurniture = fullTaskFurniture;
|
|
57625
57975
|
const toolFurniture = compactWork && fullToolFurniture > 0 ? 2 : fullToolFurniture;
|
|
@@ -57751,6 +58101,18 @@ ${blocks.join("\n\n")}`;
|
|
|
57751
58101
|
);
|
|
57752
58102
|
return true;
|
|
57753
58103
|
}
|
|
58104
|
+
if (session.abandonTurn && !await scheduleRef.current?.isParked() && await unansweredReviewPark(sessions, resumedSessionId).catch(() => void 0)) {
|
|
58105
|
+
try {
|
|
58106
|
+
await session.abandonTurn(
|
|
58107
|
+
active.turnId,
|
|
58108
|
+
"The session ended while the questions about its tool calls were open."
|
|
58109
|
+
);
|
|
58110
|
+
pushMessage("system", PAUSED_TURN_LINES.unansweredReview);
|
|
58111
|
+
} catch (err) {
|
|
58112
|
+
pushSystem("error", explainFailure(err, "Couldn\u2019t close the unanswered questions."));
|
|
58113
|
+
}
|
|
58114
|
+
return true;
|
|
58115
|
+
}
|
|
57754
58116
|
setHandoffPark(null);
|
|
57755
58117
|
const ac = new AbortController();
|
|
57756
58118
|
abortRef.current = ac;
|
|
@@ -57863,6 +58225,36 @@ ${blocks.join("\n\n")}`;
|
|
|
57863
58225
|
await resumeActiveTurn();
|
|
57864
58226
|
})();
|
|
57865
58227
|
}, [phase, resumeActiveTurn, session, state]);
|
|
58228
|
+
const autoResumeAt = handoffPark?.autoResume?.at;
|
|
58229
|
+
const autoResumeTurn = handoffPark?.turnId;
|
|
58230
|
+
(0, import_react59.useEffect)(() => {
|
|
58231
|
+
if (autoResumeAt === void 0 || autoResumeTurn === void 0) return;
|
|
58232
|
+
return startAutoResume({
|
|
58233
|
+
delayMs: autoResumeAt - Date.now(),
|
|
58234
|
+
ready: /* @__PURE__ */ __name(() => handoffParkRef.current?.turnId === autoResumeTurn && phase === "ready" && state === "idle" && !abortRef.current, "ready"),
|
|
58235
|
+
resume: /* @__PURE__ */ __name(() => {
|
|
58236
|
+
const parked = handoffParkRef.current;
|
|
58237
|
+
void (async () => {
|
|
58238
|
+
try {
|
|
58239
|
+
await resumeActiveTurn();
|
|
58240
|
+
} catch {
|
|
58241
|
+
}
|
|
58242
|
+
if (!parked || handoffParkRef.current !== parked) return;
|
|
58243
|
+
const attempt = autoResumeAttemptRef.current + 1;
|
|
58244
|
+
autoResumeAttemptRef.current = attempt;
|
|
58245
|
+
setHandoffPark({
|
|
58246
|
+
...parked,
|
|
58247
|
+
autoResume: { attempt, at: Date.now() + autoResumeDelayMs(attempt) }
|
|
58248
|
+
});
|
|
58249
|
+
})();
|
|
58250
|
+
}, "resume")
|
|
58251
|
+
});
|
|
58252
|
+
}, [autoResumeAt, autoResumeTurn, phase, state, resumeActiveTurn, setHandoffPark]);
|
|
58253
|
+
(0, import_react59.useEffect)(() => {
|
|
58254
|
+
if (autoResumeAt === void 0) return;
|
|
58255
|
+
const timer = setInterval(() => setAutoResumeTick((n) => n + 1), 1e3);
|
|
58256
|
+
return () => clearInterval(timer);
|
|
58257
|
+
}, [autoResumeAt]);
|
|
57866
58258
|
const doResume = (0, import_react59.useCallback)(
|
|
57867
58259
|
async (query) => {
|
|
57868
58260
|
const sessions = sessionsRef.current ?? await ensureSessions().then(() => sessionsRef.current);
|
|
@@ -57876,11 +58268,10 @@ ${blocks.join("\n\n")}`;
|
|
|
57876
58268
|
const recent = owner ? (await listPalConversations(owner.workspace, owner.id)).map((row) => ({
|
|
57877
58269
|
...row,
|
|
57878
58270
|
id: asSessionId(row.id)
|
|
57879
|
-
})) : await listRecent(sessions);
|
|
57880
|
-
const needle = query?.trim()
|
|
57881
|
-
const
|
|
57882
|
-
|
|
57883
|
-
);
|
|
58271
|
+
})) : await listRecent(sessions, 50);
|
|
58272
|
+
const needle = query?.trim() ?? "";
|
|
58273
|
+
const everyone = recent.filter((c) => c.id !== scopeRef.current?.sessionId);
|
|
58274
|
+
const others = filterConversations(everyone, needle);
|
|
57884
58275
|
if (others.length === 0) {
|
|
57885
58276
|
pushMessage(
|
|
57886
58277
|
"system",
|
|
@@ -57888,7 +58279,12 @@ ${blocks.join("\n\n")}`;
|
|
|
57888
58279
|
);
|
|
57889
58280
|
return;
|
|
57890
58281
|
}
|
|
57891
|
-
setResumeList(
|
|
58282
|
+
setResumeList(everyone);
|
|
58283
|
+
setResumeOthers(null);
|
|
58284
|
+
setResumeQuery(needle);
|
|
58285
|
+
setResumeScope("folder");
|
|
58286
|
+
setResumeRenaming(null);
|
|
58287
|
+
setResumeNotice(void 0);
|
|
57892
58288
|
setSelectedResume(0);
|
|
57893
58289
|
setPhase("resume");
|
|
57894
58290
|
} catch (err) {
|
|
@@ -57897,6 +58293,68 @@ ${blocks.join("\n\n")}`;
|
|
|
57897
58293
|
},
|
|
57898
58294
|
[ensureSessions, pushMessage, resumeActiveTurn]
|
|
57899
58295
|
);
|
|
58296
|
+
const doctorRunningRef = (0, import_react59.useRef)(false);
|
|
58297
|
+
const runDoctorInSession = (0, import_react59.useCallback)(async () => {
|
|
58298
|
+
if (doctorRunningRef.current) {
|
|
58299
|
+
pushMessage("system", "The health check is already running.");
|
|
58300
|
+
return;
|
|
58301
|
+
}
|
|
58302
|
+
doctorRunningRef.current = true;
|
|
58303
|
+
const progressId = pushMessage("system", "Checking\u2026");
|
|
58304
|
+
try {
|
|
58305
|
+
const { runLiveDoctor } = await import("./live-V7HRF5KR.js");
|
|
58306
|
+
const { describePlainDoctor } = await import("./plain-report-73WHPLHX.js");
|
|
58307
|
+
const report = await runLiveDoctor({
|
|
58308
|
+
...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
|
|
58309
|
+
});
|
|
58310
|
+
const plain = describePlainDoctor(report);
|
|
58311
|
+
setMessages((rows) => rows.filter((row) => row.id !== progressId));
|
|
58312
|
+
pushSystem(plain.level, plain.content, { detail: plain.detail });
|
|
58313
|
+
} catch (err) {
|
|
58314
|
+
setMessages((rows) => rows.filter((row) => row.id !== progressId));
|
|
58315
|
+
pushSystem("error", explainFailure(err, "Could not run the health check."));
|
|
58316
|
+
} finally {
|
|
58317
|
+
doctorRunningRef.current = false;
|
|
58318
|
+
}
|
|
58319
|
+
}, [pushMessage, pushSystem]);
|
|
58320
|
+
const toggleResumeScope = (0, import_react59.useCallback)(async () => {
|
|
58321
|
+
if (resumeScope === "all") {
|
|
58322
|
+
setResumeScope("folder");
|
|
58323
|
+
setSelectedResume(0);
|
|
58324
|
+
return;
|
|
58325
|
+
}
|
|
58326
|
+
if (palDefinitionRef.current) {
|
|
58327
|
+
setResumeNotice("Other folders are not available inside a Pal.");
|
|
58328
|
+
return;
|
|
58329
|
+
}
|
|
58330
|
+
const sessions = sessionsRef.current;
|
|
58331
|
+
if (!sessions) return;
|
|
58332
|
+
try {
|
|
58333
|
+
const others = resumeOthers ?? await listOtherFolders(sessions);
|
|
58334
|
+
setResumeOthers(others);
|
|
58335
|
+
setResumeNotice(others.length === 0 ? "No conversations in other folders yet." : void 0);
|
|
58336
|
+
setResumeScope("all");
|
|
58337
|
+
setSelectedResume(0);
|
|
58338
|
+
} catch (err) {
|
|
58339
|
+
setResumeNotice(explainFailure(err, "Could not list conversations in other folders."));
|
|
58340
|
+
}
|
|
58341
|
+
}, [resumeScope, resumeOthers, setSelectedResume]);
|
|
58342
|
+
const renameResumeRow = (0, import_react59.useCallback)(async (target, value) => {
|
|
58343
|
+
const sessions = sessionsRef.current;
|
|
58344
|
+
if (!sessions) return;
|
|
58345
|
+
const name = value.trim();
|
|
58346
|
+
if (name === "" && !target.named) return;
|
|
58347
|
+
try {
|
|
58348
|
+
await setTitle(sessions, target.id, name);
|
|
58349
|
+
const refreshed = (await listRecent(sessions, 50)).filter(
|
|
58350
|
+
(c) => c.id !== scopeRef.current?.sessionId
|
|
58351
|
+
);
|
|
58352
|
+
setResumeList(refreshed);
|
|
58353
|
+
setResumeNotice(void 0);
|
|
58354
|
+
} catch (err) {
|
|
58355
|
+
setResumeNotice(explainFailure(err, "Could not save the name."));
|
|
58356
|
+
}
|
|
58357
|
+
}, []);
|
|
57900
58358
|
const doUnarchive = (0, import_react59.useCallback)(async () => {
|
|
57901
58359
|
if (palDefinitionRef.current) {
|
|
57902
58360
|
pushMessage(
|
|
@@ -57924,6 +58382,11 @@ ${blocks.join("\n\n")}`;
|
|
|
57924
58382
|
return;
|
|
57925
58383
|
}
|
|
57926
58384
|
setResumeList(archived);
|
|
58385
|
+
setResumeOthers(null);
|
|
58386
|
+
setResumeQuery("");
|
|
58387
|
+
setResumeScope("folder");
|
|
58388
|
+
setResumeRenaming(null);
|
|
58389
|
+
setResumeNotice(void 0);
|
|
57927
58390
|
setSelectedResume(0);
|
|
57928
58391
|
setPhase("unarchive");
|
|
57929
58392
|
} catch (err) {
|
|
@@ -58014,23 +58477,35 @@ ${blocks.join("\n\n")}`;
|
|
|
58014
58477
|
const interruptWithRow = (0, import_react59.useCallback)(
|
|
58015
58478
|
(recoverInput, options) => {
|
|
58016
58479
|
const callRunning = activeToolsRef.current.length > 0;
|
|
58480
|
+
const jobsBefore = new Set((session?.jobs?.() ?? []).map((job) => job.id));
|
|
58017
58481
|
const interrupted = interruptTurn(recoverInput);
|
|
58482
|
+
const movedToBackground = (session?.jobs?.() ?? []).some(
|
|
58483
|
+
(job) => job.status === "running" && !jobsBefore.has(job.id)
|
|
58484
|
+
);
|
|
58485
|
+
if (movedToBackground)
|
|
58486
|
+
setJobSnapshot({ ownerSession: session, jobs: session?.jobs?.() ?? [] });
|
|
58018
58487
|
if (interrupted || options?.always === true) {
|
|
58019
58488
|
const row = interruptionRow({
|
|
58020
58489
|
callRunning,
|
|
58021
|
-
...options?.steered ? { steered: true } : {}
|
|
58490
|
+
...options?.steered ? { steered: true } : {},
|
|
58491
|
+
...movedToBackground ? { movedToBackground: true } : {}
|
|
58022
58492
|
});
|
|
58023
58493
|
pushMessage("system", row.content, false, row.glyph, void 0, row.color);
|
|
58024
58494
|
}
|
|
58025
58495
|
return interrupted;
|
|
58026
58496
|
},
|
|
58027
|
-
[interruptTurn, pushMessage]
|
|
58497
|
+
[interruptTurn, pushMessage, session]
|
|
58028
58498
|
);
|
|
58029
58499
|
const sendPendingNow = (0, import_react59.useCallback)(() => {
|
|
58030
58500
|
if (!abortRef.current) return;
|
|
58031
58501
|
interruptWithRow(true, { steered: true, always: true });
|
|
58032
58502
|
if (queuePauseRef.current?.source === "operator-interrupt") setQueuePause(null);
|
|
58033
58503
|
}, [interruptWithRow, setQueuePause]);
|
|
58504
|
+
const backgroundRunningCommand = (0, import_react59.useCallback)(() => {
|
|
58505
|
+
const foreground = session?.foreground;
|
|
58506
|
+
if (!foreground || foreground.commands().length === 0) return false;
|
|
58507
|
+
return foreground.background("user") > 0;
|
|
58508
|
+
}, [session]);
|
|
58034
58509
|
(0, import_react59.useEffect)(() => {
|
|
58035
58510
|
if (!terminationExit) return;
|
|
58036
58511
|
terminationExit.current = () => {
|
|
@@ -58082,6 +58557,8 @@ ${blocks.join("\n\n")}`;
|
|
|
58082
58557
|
wakeGoalDriver();
|
|
58083
58558
|
cancelPendingModelSwitch();
|
|
58084
58559
|
conversationGenRef.current += 1;
|
|
58560
|
+
setHandoffPark(null);
|
|
58561
|
+
autoResumeAttemptRef.current = 0;
|
|
58085
58562
|
resetSubagentActivity();
|
|
58086
58563
|
session?.resetTaskStore?.();
|
|
58087
58564
|
activeTurnTokenRef.current = null;
|
|
@@ -58129,6 +58606,7 @@ ${blocks.join("\n\n")}`;
|
|
|
58129
58606
|
}
|
|
58130
58607
|
},
|
|
58131
58608
|
[
|
|
58609
|
+
setHandoffPark,
|
|
58132
58610
|
discardQueued,
|
|
58133
58611
|
goalActivation,
|
|
58134
58612
|
interruptTurn,
|
|
@@ -58216,6 +58694,8 @@ ${blocks.join("\n\n")}`;
|
|
|
58216
58694
|
wakeGoalDriver();
|
|
58217
58695
|
cancelPendingModelSwitch();
|
|
58218
58696
|
conversationGenRef.current += 1;
|
|
58697
|
+
setHandoffPark(null);
|
|
58698
|
+
autoResumeAttemptRef.current = 0;
|
|
58219
58699
|
resetSubagentActivity();
|
|
58220
58700
|
session?.resetTaskStore?.();
|
|
58221
58701
|
activeTurnTokenRef.current = null;
|
|
@@ -58280,6 +58760,7 @@ ${blocks.join("\n\n")}`;
|
|
|
58280
58760
|
}
|
|
58281
58761
|
},
|
|
58282
58762
|
[
|
|
58763
|
+
setHandoffPark,
|
|
58283
58764
|
discardQueued,
|
|
58284
58765
|
goalActivation,
|
|
58285
58766
|
interruptTurn,
|
|
@@ -58687,6 +59168,8 @@ ${blocks.join("\n\n")}`;
|
|
|
58687
59168
|
const readablePrefix = editList.slice(0, target.userOrdinal).map((prompt) => prompt.displayText);
|
|
58688
59169
|
cancelPendingModelSwitch();
|
|
58689
59170
|
conversationGenRef.current += 1;
|
|
59171
|
+
setHandoffPark(null);
|
|
59172
|
+
autoResumeAttemptRef.current = 0;
|
|
58690
59173
|
resetSubagentActivity();
|
|
58691
59174
|
session?.resetTaskStore?.();
|
|
58692
59175
|
activeTurnTokenRef.current = null;
|
|
@@ -58724,6 +59207,7 @@ ${blocks.join("\n\n")}`;
|
|
|
58724
59207
|
}
|
|
58725
59208
|
},
|
|
58726
59209
|
[
|
|
59210
|
+
setHandoffPark,
|
|
58727
59211
|
editList,
|
|
58728
59212
|
ensureSessions,
|
|
58729
59213
|
goalActivation,
|
|
@@ -59054,6 +59538,9 @@ ${plain(err)}`
|
|
|
59054
59538
|
}),
|
|
59055
59539
|
[applyPermissionMode, closeLiveReply, pushMessage, announceApproval, setPlanPrompt]
|
|
59056
59540
|
);
|
|
59541
|
+
const enterPlanFromTool = (0, import_react59.useCallback)(() => {
|
|
59542
|
+
commitPermissionMode("plan", true);
|
|
59543
|
+
}, [commitPermissionMode]);
|
|
59057
59544
|
const finishQuestionDialog = (0, import_react59.useCallback)(
|
|
59058
59545
|
(answer, summary2) => {
|
|
59059
59546
|
const entry = questionDialogRef.current;
|
|
@@ -59161,21 +59648,23 @@ ${plain(err)}`
|
|
|
59161
59648
|
const applyEvent = (0, import_react59.useCallback)(
|
|
59162
59649
|
(event, st) => {
|
|
59163
59650
|
if (st.learning) observeTurnEvent(st.learning, event);
|
|
59651
|
+
const voidStreamedReply = /* @__PURE__ */ __name(() => {
|
|
59652
|
+
if (st.releaseTimer) clearTimeout(st.releaseTimer);
|
|
59653
|
+
st.releaseTimer = void 0;
|
|
59654
|
+
st.pending = "";
|
|
59655
|
+
st.text = st.text.slice(0, st.messageTextStart ?? st.text.length);
|
|
59656
|
+
st.streamedChars = 0;
|
|
59657
|
+
setTurnTokens(st.reportedOutputTokens ?? 0);
|
|
59658
|
+
const abandoned = st.assistantId;
|
|
59659
|
+
st.assistantId = null;
|
|
59660
|
+
if (abandoned) setMessages((prev) => prev.filter((m) => m.id !== abandoned));
|
|
59661
|
+
}, "voidStreamedReply");
|
|
59662
|
+
if (event.kind === "provider-fallback" && event.restart) voidStreamedReply();
|
|
59164
59663
|
if (event.kind === "provider-wait") {
|
|
59165
59664
|
const notice = describeProviderWait(event, scheduleLiveRef.current?.model?.provider);
|
|
59166
59665
|
providerWaitNoticeRef.current = notice;
|
|
59167
59666
|
setProviderWaitNotice(notice);
|
|
59168
|
-
if (event.restart)
|
|
59169
|
-
if (st.releaseTimer) clearTimeout(st.releaseTimer);
|
|
59170
|
-
st.releaseTimer = void 0;
|
|
59171
|
-
st.pending = "";
|
|
59172
|
-
st.text = st.text.slice(0, st.messageTextStart ?? st.text.length);
|
|
59173
|
-
st.streamedChars = 0;
|
|
59174
|
-
setTurnTokens(st.reportedOutputTokens ?? 0);
|
|
59175
|
-
const abandoned = st.assistantId;
|
|
59176
|
-
st.assistantId = null;
|
|
59177
|
-
if (abandoned) setMessages((prev) => prev.filter((m) => m.id !== abandoned));
|
|
59178
|
-
}
|
|
59667
|
+
if (event.restart) voidStreamedReply();
|
|
59179
59668
|
} else if (event.kind === "hook-status") {
|
|
59180
59669
|
const hookNotice = { what: event.text };
|
|
59181
59670
|
providerWaitNoticeRef.current = hookNotice;
|
|
@@ -59426,6 +59915,12 @@ ${plain(err)}`
|
|
|
59426
59915
|
...event.blockedBy ? { blockedBy: event.blockedBy } : (() => {
|
|
59427
59916
|
const known = tasksRef.current.find((task) => task.id === event.taskId)?.blockedBy;
|
|
59428
59917
|
return known ? { blockedBy: known } : {};
|
|
59918
|
+
})(),
|
|
59919
|
+
...event.activeForm ? { activeForm: event.activeForm } : (() => {
|
|
59920
|
+
const known = tasksRef.current.find(
|
|
59921
|
+
(task) => task.id === event.taskId
|
|
59922
|
+
)?.activeForm;
|
|
59923
|
+
return known ? { activeForm: known } : {};
|
|
59429
59924
|
})()
|
|
59430
59925
|
};
|
|
59431
59926
|
closeAssistant();
|
|
@@ -59507,6 +60002,7 @@ ${plain(err)}`
|
|
|
59507
60002
|
duplicateResults: event.duplicateResults,
|
|
59508
60003
|
orphanedResults: event.orphanedResults,
|
|
59509
60004
|
interruptedCalls: event.interruptedCalls,
|
|
60005
|
+
...event.neverRanCalls !== void 0 ? { neverRanCalls: event.neverRanCalls } : {},
|
|
59510
60006
|
...event.rejectedImages !== void 0 ? { rejectedImages: event.rejectedImages } : {},
|
|
59511
60007
|
...scheduleLiveRef.current?.model?.provider ? { providerId: scheduleLiveRef.current.model.provider } : {}
|
|
59512
60008
|
}),
|
|
@@ -59516,6 +60012,7 @@ ${plain(err)}`
|
|
|
59516
60012
|
);
|
|
59517
60013
|
break;
|
|
59518
60014
|
case "done": {
|
|
60015
|
+
autoResumeAttemptRef.current = 0;
|
|
59519
60016
|
setSummarising(false);
|
|
59520
60017
|
if (event.text !== void 0) st.text = event.text;
|
|
59521
60018
|
st.completed = event.stopReason === void 0 || event.stopReason === "end_turn";
|
|
@@ -59585,7 +60082,16 @@ ${plain(err)}`
|
|
|
59585
60082
|
});
|
|
59586
60083
|
} else {
|
|
59587
60084
|
pushSystem("warning", describePlainInterruption(event, plainOptions()));
|
|
59588
|
-
|
|
60085
|
+
if (isSelfMending(event)) {
|
|
60086
|
+
const attempt = autoResumeAttemptRef.current + 1;
|
|
60087
|
+
autoResumeAttemptRef.current = attempt;
|
|
60088
|
+
setHandoffPark({
|
|
60089
|
+
turnId: event.turnId,
|
|
60090
|
+
autoResume: { attempt, at: Date.now() + autoResumeDelayMs(attempt) }
|
|
60091
|
+
});
|
|
60092
|
+
} else {
|
|
60093
|
+
setHandoffPark({ turnId: event.turnId });
|
|
60094
|
+
}
|
|
59589
60095
|
}
|
|
59590
60096
|
break;
|
|
59591
60097
|
case "error":
|
|
@@ -59728,11 +60234,13 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
|
|
|
59728
60234
|
const scope = scopeRef.current;
|
|
59729
60235
|
if (!sessions || !scope || !conversationMaterializedRef.current || !session?.abandonTurn)
|
|
59730
60236
|
return;
|
|
59731
|
-
const
|
|
60237
|
+
const providerPause = await closableProviderPause(sessions, scope.sessionId);
|
|
60238
|
+
const unanswered = providerPause ? void 0 : await scheduleRef.current?.isParked() ? void 0 : await unansweredReviewPark(sessions, scope.sessionId);
|
|
60239
|
+
const stopped = providerPause ?? unanswered;
|
|
59732
60240
|
if (!stopped) return;
|
|
59733
60241
|
await session.abandonTurn(
|
|
59734
60242
|
stopped.turnId,
|
|
59735
|
-
"The operator went on with a new message instead of retrying."
|
|
60243
|
+
unanswered ? "The session ended while the questions about its tool calls were open; the operator went on with a new message." : "The operator went on with a new message instead of retrying."
|
|
59736
60244
|
);
|
|
59737
60245
|
setHandoffPark(null);
|
|
59738
60246
|
}, "closeStoppedReply");
|
|
@@ -60052,6 +60560,7 @@ ${[...workflowNoticeSnapshot.values()].join("\n\n")}` : void 0,
|
|
|
60052
60560
|
},
|
|
60053
60561
|
onQuestion: askQuestion,
|
|
60054
60562
|
onPlanExit: askPlanApproval,
|
|
60563
|
+
onPlanEnter: enterPlanFromTool,
|
|
60055
60564
|
bypassAvailable: /* @__PURE__ */ __name(() => bypassAvailableRef.current, "bypassAvailable"),
|
|
60056
60565
|
onModelSwitch: requestModelSwitch,
|
|
60057
60566
|
inboundMessages: /* @__PURE__ */ __name(() => {
|
|
@@ -60547,6 +61056,7 @@ ${[...workflowNoticeSnapshot.values()].join("\n\n")}` : void 0,
|
|
|
60547
61056
|
setViewNotice(void 0);
|
|
60548
61057
|
}
|
|
60549
61058
|
setHandoffPark(null);
|
|
61059
|
+
autoResumeAttemptRef.current = 0;
|
|
60550
61060
|
const fromLoop = meta.source === "operator-loop" || meta.source === "model-loop";
|
|
60551
61061
|
if (!fromLoop) setHistory((prev) => [...prev, value]);
|
|
60552
61062
|
const operatorText = meta.source !== "model-loop" && meta.source !== "launch-message";
|
|
@@ -60755,6 +61265,10 @@ Available: ${agentIds.join(", ")}` : "\nNo agents are configured."}`
|
|
|
60755
61265
|
);
|
|
60756
61266
|
return;
|
|
60757
61267
|
}
|
|
61268
|
+
case "doctor": {
|
|
61269
|
+
void runDoctorInSession();
|
|
61270
|
+
return;
|
|
61271
|
+
}
|
|
60758
61272
|
case "jobs": {
|
|
60759
61273
|
if (!session) {
|
|
60760
61274
|
pushMessage("system", "Shell jobs are available once the conversation starts.");
|
|
@@ -61088,7 +61602,8 @@ Available: ${agentIds.join(", ")}` : "\nNo agents are configured."}`
|
|
|
61088
61602
|
const picker = permissionPicker(
|
|
61089
61603
|
permissionModeRef.current,
|
|
61090
61604
|
false,
|
|
61091
|
-
permissionAvailability()
|
|
61605
|
+
permissionAvailability(),
|
|
61606
|
+
sandboxShellRef.current
|
|
61092
61607
|
);
|
|
61093
61608
|
setSelectedChoice(
|
|
61094
61609
|
Math.max(
|
|
@@ -61609,6 +62124,7 @@ ${plugins.map((plugin) => {
|
|
|
61609
62124
|
cwd: ctx.cwd,
|
|
61610
62125
|
columns: terminal.columns,
|
|
61611
62126
|
model: slashCtx.modelSummary ?? void 0,
|
|
62127
|
+
providerId: currentProvider,
|
|
61612
62128
|
mcp: slashCtx.mcp(),
|
|
61613
62129
|
skillsConfig: ctx.skills
|
|
61614
62130
|
});
|
|
@@ -61919,6 +62435,7 @@ ${plugins.map((plugin) => {
|
|
|
61919
62435
|
queuedBefore: [...queuedRef.current]
|
|
61920
62436
|
})) {
|
|
61921
62437
|
bindSteeredTriggers(armedTriggers);
|
|
62438
|
+
session?.foreground?.background("message");
|
|
61922
62439
|
return;
|
|
61923
62440
|
}
|
|
61924
62441
|
}
|
|
@@ -62467,17 +62984,19 @@ ${plugins.map((plugin) => {
|
|
|
62467
62984
|
hasUnsettledTurn,
|
|
62468
62985
|
session
|
|
62469
62986
|
]);
|
|
62470
|
-
const
|
|
62471
|
-
|
|
62987
|
+
const [updateNotice, setUpdateNotice] = (0, import_react59.useState)(
|
|
62988
|
+
null
|
|
62989
|
+
);
|
|
62990
|
+
const updaterRef = (0, import_react59.useRef)(null);
|
|
62472
62991
|
(0, import_react59.useEffect)(() => {
|
|
62473
|
-
if (phase !== "ready" ||
|
|
62474
|
-
|
|
62475
|
-
|
|
62476
|
-
|
|
62477
|
-
|
|
62478
|
-
if (first) setUpdateNotice(updateAmbient(first));
|
|
62992
|
+
if (phase !== "ready" || updaterRef.current) return;
|
|
62993
|
+
updaterRef.current = startAutoUpdate({
|
|
62994
|
+
currentVersion: ctx.version,
|
|
62995
|
+
config: ctx.updates,
|
|
62996
|
+
onEvent: /* @__PURE__ */ __name((event) => setUpdateNotice(updaterEventAmbient(event)), "onEvent")
|
|
62479
62997
|
});
|
|
62480
|
-
}, [phase, ctx.version]);
|
|
62998
|
+
}, [phase, ctx.version, ctx.updates]);
|
|
62999
|
+
(0, import_react59.useEffect)(() => () => updaterRef.current?.stop(), []);
|
|
62481
63000
|
const hydrateFromPicker = (0, import_react59.useCallback)(
|
|
62482
63001
|
async (prefs, detectedNow, signal, options = {}) => {
|
|
62483
63002
|
try {
|
|
@@ -62633,6 +63152,34 @@ ${plugins.map((plugin) => {
|
|
|
62633
63152
|
}
|
|
62634
63153
|
if (phase === "resume" || phase === "unarchive") {
|
|
62635
63154
|
if (resumeCommittedRef.current) return;
|
|
63155
|
+
if (resumeRenaming !== null) {
|
|
63156
|
+
if (key.escape || key.ctrl && input === "c") setResumeRenaming(null);
|
|
63157
|
+
else if (key.return) {
|
|
63158
|
+
const target = resumeList[selectedResumeRef.current];
|
|
63159
|
+
const value = resumeRenaming;
|
|
63160
|
+
setResumeRenaming(null);
|
|
63161
|
+
if (target) void renameResumeRow(target, value);
|
|
63162
|
+
} else {
|
|
63163
|
+
const next = editLine(resumeRenaming, { ...key, input });
|
|
63164
|
+
if (next !== null) setResumeRenaming(next);
|
|
63165
|
+
}
|
|
63166
|
+
return;
|
|
63167
|
+
}
|
|
63168
|
+
if (phase === "resume" && key.ctrl && input === "a") {
|
|
63169
|
+
void toggleResumeScope();
|
|
63170
|
+
return;
|
|
63171
|
+
}
|
|
63172
|
+
if (phase === "resume" && key.ctrl && input === "r") {
|
|
63173
|
+
const target = resumeList[selectedResumeRef.current];
|
|
63174
|
+
if (!target) return;
|
|
63175
|
+
if (target.folder !== void 0) {
|
|
63176
|
+
setResumeNotice("Open that conversation from its own folder to rename it.");
|
|
63177
|
+
return;
|
|
63178
|
+
}
|
|
63179
|
+
setResumeNotice(void 0);
|
|
63180
|
+
setResumeRenaming(target.named ? target.title : "");
|
|
63181
|
+
return;
|
|
63182
|
+
}
|
|
62636
63183
|
if (key.home || key.end || key.pageUp || key.pageDown) {
|
|
62637
63184
|
setSelectedResume(
|
|
62638
63185
|
(index) => moveSelection(
|
|
@@ -62647,9 +63194,23 @@ ${plugins.map((plugin) => {
|
|
|
62647
63194
|
setSelectedResume((index) => moveSelection(index, resumeList.length, "next"));
|
|
62648
63195
|
else if (key.return) {
|
|
62649
63196
|
const conv = resumeList[selectedResumeRef.current];
|
|
63197
|
+
if (conv?.folder !== void 0) {
|
|
63198
|
+
setResumeNotice(
|
|
63199
|
+
`That conversation belongs to ${conv.folder}. Open Namzu in that folder to continue it.`
|
|
63200
|
+
);
|
|
63201
|
+
return;
|
|
63202
|
+
}
|
|
62650
63203
|
if (conv)
|
|
62651
63204
|
void (phase === "unarchive" ? restoreArchivedConversation(conv) : resumeConversation(conv));
|
|
62652
63205
|
} else if (key.escape || key.ctrl && input === "c") setPhase("ready");
|
|
63206
|
+
else {
|
|
63207
|
+
const next = editLine(resumeQuery, { ...key, input });
|
|
63208
|
+
if (next !== null) {
|
|
63209
|
+
setResumeQuery(next);
|
|
63210
|
+
setResumeNotice(void 0);
|
|
63211
|
+
setSelectedResume(0);
|
|
63212
|
+
}
|
|
63213
|
+
}
|
|
62653
63214
|
return;
|
|
62654
63215
|
}
|
|
62655
63216
|
if (phase === "trust") {
|
|
@@ -63295,8 +63856,10 @@ ${plugins.map((plugin) => {
|
|
|
63295
63856
|
if (handoffParkRef.current && phase === "ready" && state === "idle" && !abortRef.current && (key.return && !composerHasDraft || key.escape)) {
|
|
63296
63857
|
const parked = handoffParkRef.current;
|
|
63297
63858
|
setHandoffPark(null);
|
|
63298
|
-
if (key.return)
|
|
63299
|
-
|
|
63859
|
+
if (key.return) {
|
|
63860
|
+
autoResumeAttemptRef.current = 0;
|
|
63861
|
+
void resumeActiveTurn({ handoffReason: parked.reason });
|
|
63862
|
+
} else void abandonActiveTurn("The operator stopped the turn a tool paused for them.");
|
|
63300
63863
|
return;
|
|
63301
63864
|
}
|
|
63302
63865
|
if (key.escape && queueSelectionRef.current !== null) {
|
|
@@ -63355,6 +63918,8 @@ ${plugins.map((plugin) => {
|
|
|
63355
63918
|
);
|
|
63356
63919
|
const visibleActiveTools = activeTools.filter(
|
|
63357
63920
|
(tool) => tool.fold === void 0 && (tool.toolName.toLowerCase() !== "agent" || !(tool.turnId ? representedSubagentTools.has(JSON.stringify([tool.turnId, tool.id])) : representedUnscopedSubagentToolUseIds.has(tool.id)))
|
|
63921
|
+
).map(
|
|
63922
|
+
(tool) => tool.command !== void 0 && offeredCommands.has(tool.command) ? { ...tool, canBackground: true } : tool
|
|
63358
63923
|
);
|
|
63359
63924
|
const selectedSubagent = agentSurface ? subagents.find((agent) => agent.viewId === agentSurface.selectedId) : void 0;
|
|
63360
63925
|
const childComposerAvailable = Boolean(
|
|
@@ -63375,7 +63940,7 @@ ${plugins.map((plugin) => {
|
|
|
63375
63940
|
const dialogShowing = permission !== null || scheduleReviewPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || phase === "resume" || phase === "unarchive" || phase === "edit" || phase === "picker";
|
|
63376
63941
|
const currentNotice = notices.current;
|
|
63377
63942
|
const noticeIsImmediate = currentNotice?.priority === "immediate";
|
|
63378
|
-
const statusHint = exitHint ? `Press ${exitHint} again to exit` : noticeIsImmediate ? void 0 : conversationMutation === "fork" ? "forking conversation \u2014 input is paused" : conversationMutation === "edit" ? "branching before prompt \u2014 input is paused" : conversationMutation === "archive" ? "archiving conversation \u2014 input is paused" : conversationMutation === "new" ? "starting a fresh conversation \u2014 input is paused" : compacting ? "compacting conversation \u2014 input is paused" : boxOwnsKeys ? void 0 : handoffPark && phase === "ready" && state === "idle" && !composerHasDraft ? "enter continue \xB7 esc stop" : goalStatus && phase === "ready" && state === "idle" ? void 0 : hintForPhase(phase, state, composerHasDraft);
|
|
63943
|
+
const statusHint = exitHint ? `Press ${exitHint} again to exit` : noticeIsImmediate ? void 0 : conversationMutation === "fork" ? "forking conversation \u2014 input is paused" : conversationMutation === "edit" ? "branching before prompt \u2014 input is paused" : conversationMutation === "archive" ? "archiving conversation \u2014 input is paused" : conversationMutation === "new" ? "starting a fresh conversation \u2014 input is paused" : compacting ? "compacting conversation \u2014 input is paused" : boxOwnsKeys ? void 0 : handoffPark && phase === "ready" && state === "idle" && !composerHasDraft ? handoffPark.autoResume ? `trying again in ${formatSpan(Math.max(0, handoffPark.autoResume.at - Date.now()))} \xB7 enter try now \xB7 esc stop` : "enter continue \xB7 esc stop" : goalStatus && phase === "ready" && state === "idle" ? void 0 : hintForPhase(phase, state, composerHasDraft);
|
|
63379
63944
|
const permissionSource = reviewSource(permission, scopeRef.current?.sessionId);
|
|
63380
63945
|
const permissionOwner = permissionSource ? subagents.find((agent) => agent.sessionId === permissionSource) : void 0;
|
|
63381
63946
|
const permissionSourceLabel = permissionSource ? permissionOwner ? `from the ${permissionOwner.description} agent` : "from another agent" : void 0;
|
|
@@ -63470,7 +64035,11 @@ ${plugins.map((plugin) => {
|
|
|
63470
64035
|
{
|
|
63471
64036
|
conversations: resumeList,
|
|
63472
64037
|
selected: selectedResume,
|
|
63473
|
-
mode: phase === "unarchive" ? "restore" : "resume"
|
|
64038
|
+
mode: phase === "unarchive" ? "restore" : "resume",
|
|
64039
|
+
query: resumeQuery,
|
|
64040
|
+
scope: resumeScope,
|
|
64041
|
+
renaming: resumeRenaming,
|
|
64042
|
+
...resumeNotice !== void 0 ? { notice: resumeNotice } : {}
|
|
63474
64043
|
}
|
|
63475
64044
|
) : phase === "edit" ? rewind ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
63476
64045
|
RewindPicker,
|
|
@@ -63521,7 +64090,7 @@ ${plugins.map((plugin) => {
|
|
|
63521
64090
|
LiveActivity,
|
|
63522
64091
|
{
|
|
63523
64092
|
compact: compactWork,
|
|
63524
|
-
...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : {},
|
|
64093
|
+
...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : workingStepLabel ? { activityLabel: workingStepLabel } : {},
|
|
63525
64094
|
activeTools: visibleActiveTools,
|
|
63526
64095
|
working: state === "thinking" || state === "tool",
|
|
63527
64096
|
compacting,
|
|
@@ -63723,6 +64292,7 @@ ${plugins.map((plugin) => {
|
|
|
63723
64292
|
onLeave: /* @__PURE__ */ __name(() => setQueueSelection(null), "onLeave")
|
|
63724
64293
|
},
|
|
63725
64294
|
onSendNow: sendPendingNow,
|
|
64295
|
+
onBackgroundCommand: backgroundRunningCommand,
|
|
63726
64296
|
onStopAllAgents: requestStopAllAgents,
|
|
63727
64297
|
railFocused: railFocus !== null,
|
|
63728
64298
|
userCommands,
|
|
@@ -63759,6 +64329,7 @@ ${plugins.map((plugin) => {
|
|
|
63759
64329
|
dialogOpen: boxOwnsKeys,
|
|
63760
64330
|
permissionMode: displayedPermissionMode,
|
|
63761
64331
|
canCycleMode: true,
|
|
64332
|
+
sandboxShell,
|
|
63762
64333
|
composerMounted: showComposerSurface,
|
|
63763
64334
|
restingHint: ctx.statusLine === void 0,
|
|
63764
64335
|
shellCount: showComposerSurface && !childSurfaceOpen ? runningShellCount : 0,
|
|
@@ -63998,7 +64569,7 @@ function pluginActionPicker(owner, name) {
|
|
|
63998
64569
|
__name(pluginActionPicker, "pluginActionPicker");
|
|
63999
64570
|
var BYPASS_UNAVAILABLE_NOTICE = "Bypass mode is not available in this session. Start Namzu with --allow-dangerously-skip-permissions (or --yolo) to use it, unless permissions.disableBypassMode is set.";
|
|
64000
64571
|
var AUTO_UNAVAILABLE_NOTICE = "Auto mode is not available in this session.";
|
|
64001
|
-
function permissionPicker(mode, more = false, availability = { bypass: true, auto: true }) {
|
|
64572
|
+
function permissionPicker(mode, more = false, availability = { bypass: true, auto: true }, sandboxedShell = false) {
|
|
64002
64573
|
const current = mode;
|
|
64003
64574
|
const values = more ? ["strict", "rules"] : ["prompt", "accept-edits", "plan", "bypass", "classify", "more"];
|
|
64004
64575
|
const unavailable2 = /* @__PURE__ */ __name((value) => {
|
|
@@ -64026,7 +64597,7 @@ function permissionPicker(mode, more = false, availability = { bypass: true, aut
|
|
|
64026
64597
|
const disabledReason = unavailable2(value);
|
|
64027
64598
|
return {
|
|
64028
64599
|
label: permissionModeLabel(value),
|
|
64029
|
-
description: permissionModeDescription(value),
|
|
64600
|
+
description: permissionModeDescription(value, { sandboxedShell }),
|
|
64030
64601
|
current: value === current,
|
|
64031
64602
|
...disabledReason ? { disabledReason } : {}
|
|
64032
64603
|
};
|
|
@@ -64656,4 +65227,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
64656
65227
|
* LICENSE file in the root directory of this source tree.
|
|
64657
65228
|
*)
|
|
64658
65229
|
*/
|
|
64659
|
-
//# sourceMappingURL=tui-
|
|
65230
|
+
//# sourceMappingURL=tui-2XOSCALL.js.map
|