@namzu/cli 41.2.2 → 43.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 +107 -0
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-5RFAFTQU.js → acp-GKYFK7VQ.js} +48 -48
- package/dist/chunks/{activity-command-XLF5EAM5.js → activity-command-TOTM3MOY.js} +14 -15
- package/dist/chunks/activity-command-TOTM3MOY.js.map +6 -0
- package/dist/chunks/{add-Z6Y5DOCM.js → add-4GRA6X5I.js} +25 -25
- package/dist/chunks/{agent-U4NFC4DT.js → agent-KEI53I7S.js} +34 -35
- package/dist/chunks/agent-session-4IF5H4YO.js +58 -0
- package/dist/chunks/{archive-P47MRHE2.js → archive-OOQMVBUH.js} +11 -11
- package/dist/chunks/{bin-main-B3QOTIEH.js → bin-main-L67SJQV2.js} +13 -6
- package/dist/chunks/{bin-main-B3QOTIEH.js.map → bin-main-L67SJQV2.js.map} +1 -1
- package/dist/chunks/{browser-QN24UC7K.js → browser-GDIYUWKT.js} +6 -6
- package/dist/chunks/{chat-HRORSJPH.js → chat-FUQOCA7Q.js} +16 -16
- package/dist/chunks/chunk-27R3OTVS.js +14 -0
- package/dist/chunks/chunk-27R3OTVS.js.map +6 -0
- package/dist/chunks/{chunk-CLADMV2E.js → chunk-2C5QF5ZM.js} +2 -2
- package/dist/chunks/{chunk-LFI6O7WL.js → chunk-2OVZNENW.js} +43 -2
- package/dist/chunks/chunk-2OVZNENW.js.map +6 -0
- package/dist/chunks/{chunk-WJ7XYOSE.js → chunk-2R44UHEU.js} +2 -2
- package/dist/chunks/{chunk-5XJC5G7N.js → chunk-2S4VEEVB.js} +8 -8
- package/dist/chunks/chunk-3F3V2PB7.js +56 -0
- package/dist/chunks/chunk-3F3V2PB7.js.map +6 -0
- package/dist/chunks/{chunk-JEULHVUH.js → chunk-3SQVE73V.js} +1097 -346
- package/dist/chunks/chunk-3SQVE73V.js.map +6 -0
- package/dist/chunks/{chunk-4SP6H34B.js → chunk-4V2V2FMP.js} +2 -2
- package/dist/chunks/{chunk-CIIMESY2.js → chunk-54TFQUPM.js} +4 -4
- package/dist/chunks/{chunk-7B5YTYHY.js → chunk-5QCBUBKO.js} +4 -4
- package/dist/chunks/{chunk-CM2I2L4G.js → chunk-6G3XZZRF.js} +2 -2
- package/dist/chunks/{chunk-DHV3KMEC.js → chunk-6WK7YVAX.js} +116 -40
- package/dist/chunks/chunk-6WK7YVAX.js.map +6 -0
- package/dist/chunks/{chunk-UEXQA2UW.js → chunk-752S5IP3.js} +65 -5
- package/dist/chunks/chunk-752S5IP3.js.map +6 -0
- package/dist/chunks/{chunk-SEVUBJMR.js → chunk-7WQS7BP2.js} +5 -5
- package/dist/chunks/{chunk-SEVUBJMR.js.map → chunk-7WQS7BP2.js.map} +1 -1
- package/dist/chunks/{chunk-CT23IU3D.js → chunk-AEZ7YTIJ.js} +3 -3
- package/dist/chunks/{chunk-2QXVOSJM.js → chunk-B4I264HC.js} +6 -6
- package/dist/chunks/{chunk-PKBHQFT6.js → chunk-BBERAGUX.js} +4 -4
- package/dist/chunks/{chunk-NTPBXJMK.js → chunk-BHW43OKH.js} +66 -6
- package/dist/chunks/chunk-BHW43OKH.js.map +6 -0
- package/dist/chunks/{chunk-ZDEFWEEI.js → chunk-BNYTG2ZC.js} +605 -49
- package/dist/chunks/chunk-BNYTG2ZC.js.map +6 -0
- package/dist/chunks/{chunk-2HDIUUMX.js → chunk-CD5X75DB.js} +2 -2
- package/dist/chunks/{chunk-BHR2CNBZ.js → chunk-DABNNT6R.js} +223 -247
- package/dist/chunks/chunk-DABNNT6R.js.map +6 -0
- package/dist/chunks/{chunk-LVDRURI4.js → chunk-DXTK4EMM.js} +2 -2
- package/dist/chunks/{chunk-2UYBHC3L.js → chunk-EADX2OKC.js} +37 -6
- package/dist/chunks/chunk-EADX2OKC.js.map +6 -0
- package/dist/chunks/{chunk-72CFHDKQ.js → chunk-EDP5FDN4.js} +14 -14
- package/dist/chunks/{chunk-2UPDDG7V.js → chunk-EM5AM5BR.js} +3 -3
- package/dist/chunks/{chunk-ZMZR4UTZ.js → chunk-FFXSL2SL.js} +2 -2
- package/dist/chunks/chunk-G5RAECIB.js +144 -0
- package/dist/chunks/chunk-G5RAECIB.js.map +6 -0
- package/dist/chunks/{chunk-4WWLRVYU.js → chunk-GNG6HJIV.js} +1879 -736
- package/dist/chunks/chunk-GNG6HJIV.js.map +6 -0
- package/dist/chunks/{chunk-4SBUXWX3.js → chunk-GURZ2GEB.js} +12 -47
- package/dist/chunks/chunk-GURZ2GEB.js.map +6 -0
- package/dist/chunks/{chunk-YYX7O3T2.js → chunk-HAAL3DME.js} +3 -3
- package/dist/chunks/{chunk-A6J2VJL5.js → chunk-I7FY5SK5.js} +53 -6
- package/dist/chunks/chunk-I7FY5SK5.js.map +6 -0
- package/dist/chunks/{chunk-OFNGIO53.js → chunk-IJUCXVG5.js} +2 -2
- package/dist/chunks/{chunk-ZQRO6GGZ.js → chunk-IY7XWRXE.js} +89 -20
- package/dist/chunks/chunk-IY7XWRXE.js.map +6 -0
- 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-EUBCYTOK.js → chunk-KONYGNG6.js} +152 -3
- package/dist/chunks/chunk-KONYGNG6.js.map +6 -0
- package/dist/chunks/{chunk-L2GZVP5H.js → chunk-LAQTQNQE.js} +10 -15
- package/dist/chunks/chunk-LAQTQNQE.js.map +6 -0
- package/dist/chunks/{chunk-ZGBKTT7X.js → chunk-LCVRXUEV.js} +2 -2
- package/dist/chunks/{chunk-QZYTSINZ.js → chunk-LWPTVYRU.js} +4 -4
- package/dist/chunks/{chunk-3OP32UHN.js → chunk-M3RKXXZE.js} +3 -3
- package/dist/chunks/{chunk-E7FQPIJB.js → chunk-MJRLJDNK.js} +26 -2
- package/dist/chunks/chunk-MJRLJDNK.js.map +6 -0
- package/dist/chunks/{chunk-J67SASGK.js → chunk-N4DS6G4I.js} +18 -18
- package/dist/chunks/{chunk-CEIYJWZ2.js → chunk-NJ6P3WPZ.js} +2 -2
- package/dist/chunks/{chunk-CAPC66Q6.js → chunk-NOG4Z42R.js} +4 -4
- package/dist/chunks/{chunk-2VQ475KY.js → chunk-NWW46AII.js} +2 -2
- package/dist/chunks/chunk-NXM3BLL4.js +59 -0
- package/dist/chunks/chunk-NXM3BLL4.js.map +6 -0
- package/dist/chunks/{chunk-C2IABASE.js → chunk-ODOM3I7B.js} +672 -29
- package/dist/chunks/chunk-ODOM3I7B.js.map +6 -0
- package/dist/chunks/{chunk-TU46IHIV.js → chunk-OIOA7BRC.js} +5 -5
- package/dist/chunks/{chunk-JKXCLMMZ.js → chunk-OK4UNUNI.js} +2 -2
- package/dist/chunks/{chunk-Y5QV6NZK.js → chunk-OUGL6FI2.js} +2 -2
- package/dist/chunks/{chunk-RM4XZZL3.js → chunk-P73IFAYM.js} +15 -15
- package/dist/chunks/chunk-PCUMISO3.js +92 -0
- package/dist/chunks/chunk-PCUMISO3.js.map +6 -0
- package/dist/chunks/{chunk-UM4ECTUS.js → chunk-PXSTTFI7.js} +13 -13
- package/dist/chunks/chunk-RHT52Z5X.js +1189 -0
- package/dist/chunks/chunk-RHT52Z5X.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-WBTXYSAB.js → chunk-SM377CLQ.js} +2 -2
- package/dist/chunks/{chunk-34L6FTQV.js → chunk-TAAAO6PM.js} +2 -2
- package/dist/chunks/{chunk-BNMFWLWH.js → chunk-TIBFEO2R.js} +5 -5
- package/dist/chunks/{chunk-VALR7WUL.js → chunk-TYMIKXOD.js} +2 -2
- package/dist/chunks/{chunk-I55BEPVH.js → chunk-TZQT5JL3.js} +4 -4
- package/dist/chunks/{chunk-WN7YMX22.js → chunk-UB5YVQJM.js} +4 -4
- package/dist/chunks/{chunk-25XPE4N6.js → chunk-UPXD4LJ5.js} +3 -3
- package/dist/chunks/{chunk-RKSYVIQX.js → chunk-V5YIGRUD.js} +6 -6
- package/dist/chunks/{chunk-37DRD4QM.js → chunk-VNFXDLKD.js} +3 -3
- package/dist/chunks/{chunk-Z7DJAGBK.js → chunk-VNK6EA2D.js} +2 -2
- package/dist/chunks/{chunk-QNFMVN4D.js → chunk-VRUEY647.js} +2 -2
- package/dist/chunks/{chunk-WKGECHMV.js → chunk-VTU23NBS.js} +7 -7
- package/dist/chunks/{chunk-3RC4ATZI.js → chunk-VWNLO4OM.js} +12 -6
- package/dist/chunks/chunk-VWNLO4OM.js.map +6 -0
- package/dist/chunks/{chunk-DQKQKNDY.js → chunk-W6Z7RNVL.js} +9 -9
- package/dist/chunks/chunk-W6ZZLT64.js +363 -0
- package/dist/chunks/chunk-W6ZZLT64.js.map +6 -0
- package/dist/chunks/{chunk-ANUGFVZI.js → chunk-WQDMDSPW.js} +4 -4
- package/dist/chunks/{chunk-VCKNYZYH.js → chunk-XGOM2KHV.js} +6 -6
- package/dist/chunks/{chunk-G34P5PIK.js → chunk-XV3FGIHS.js} +212 -86
- package/dist/chunks/chunk-XV3FGIHS.js.map +6 -0
- package/dist/chunks/chunk-XZPLOQBA.js +256 -0
- package/dist/chunks/chunk-XZPLOQBA.js.map +6 -0
- package/dist/chunks/{chunk-U2AVT6OB.js → chunk-Z3VSDOCX.js} +3 -3
- package/dist/chunks/{cli-runtime-7GSPWSYW.js → cli-runtime-Y6RGQSMF.js} +23 -20
- package/dist/chunks/cli-runtime-Y6RGQSMF.js.map +6 -0
- package/dist/chunks/{commands-LU5AOF65.js → commands-4ZTQFX2X.js} +5 -5
- package/dist/chunks/{crash-report-YDSO3QZP.js → crash-report-Y6U6CH73.js} +9 -7
- package/dist/chunks/{dist-47WGWXP5.js → dist-3YHUITAK.js} +18 -4
- package/dist/chunks/{dist-47WGWXP5.js.map → dist-3YHUITAK.js.map} +1 -1
- package/dist/chunks/{dist-FI4O2BO3.js → dist-GTK2JZSU.js} +22 -2
- package/dist/chunks/dist-GTK2JZSU.js.map +6 -0
- package/dist/chunks/{dist-7PFXZB32.js → dist-J36EH26G.js} +12 -2
- package/dist/chunks/{dist-7PFXZB32.js.map → dist-J36EH26G.js.map} +1 -1
- package/dist/chunks/{dist-JWX7FPMB.js → dist-OKRQSUWC.js} +8 -3
- package/dist/chunks/dist-OKRQSUWC.js.map +6 -0
- package/dist/chunks/{dist-7JBTU4ZA.js → dist-TKVIIUPJ.js} +12 -2
- package/dist/chunks/dist-TKVIIUPJ.js.map +6 -0
- package/dist/chunks/{dist-SLWBMTWO.js → dist-XP72U44M.js} +7 -2
- package/dist/chunks/{dist-SLWBMTWO.js.map → dist-XP72U44M.js.map} +1 -1
- package/dist/chunks/{dist-BJMHCL2F.js → dist-ZNMZHP7A.js} +8 -4
- package/dist/chunks/{dist-BJMHCL2F.js.map → dist-ZNMZHP7A.js.map} +1 -1
- package/dist/chunks/{doctor-ZK3CTBDR.js → doctor-WKZ7BGFC.js} +15 -9
- package/dist/chunks/{drain-CVQW35OB.js → drain-VOM6IT3C.js} +11 -10
- package/dist/chunks/drain-VOM6IT3C.js.map +6 -0
- package/dist/chunks/{eval-PBRDQ7GI.js → eval-7MDLH5UR.js} +2 -2
- package/dist/chunks/{exec-ZVOPAVQC.js → exec-YBTNNBSS.js} +159 -62
- package/dist/chunks/exec-YBTNNBSS.js.map +6 -0
- package/dist/chunks/{home-QPIQIIAR.js → home-UID64VNR.js} +3 -3
- package/dist/chunks/{host-queries-UUG7LHPF.js → host-queries-A3XQQHI4.js} +23 -17
- package/dist/chunks/host-queries-A3XQQHI4.js.map +6 -0
- package/dist/chunks/install-LVQAT4QP.js +15 -0
- package/dist/chunks/{learn-AILV7XYA.js → learn-N2FNKNCW.js} +15 -14
- package/dist/chunks/learn-N2FNKNCW.js.map +6 -0
- package/dist/chunks/{learn-builtin-I2RMG7OE.js → learn-builtin-3SQNWE77.js} +18 -17
- package/dist/chunks/learn-builtin-3SQNWE77.js.map +6 -0
- package/dist/chunks/{lifecycle-ZZ5HDP6F.js → lifecycle-TIEMDICJ.js} +29 -30
- package/dist/chunks/{list-TMHSX32S.js → list-HGGKMHPQ.js} +23 -23
- package/dist/chunks/live-JHNWMJIE.js +34 -0
- package/dist/chunks/{login-VUIOQEA2.js → login-CLFAZ2WB.js} +8 -8
- package/dist/chunks/{logs-QQTFNNSW.js → logs-A5HZQ3XA.js} +4 -4
- package/dist/chunks/{mcp-6H3YELN6.js → mcp-V27XPHVU.js} +81 -23
- package/dist/chunks/mcp-V27XPHVU.js.map +6 -0
- package/dist/chunks/{message-command-IQTT76ZY.js → message-command-HBTDJ6WS.js} +40 -41
- package/dist/chunks/message-command-HBTDJ6WS.js.map +6 -0
- package/dist/chunks/{operator-tools-ISZGHK3F.js → operator-tools-7YJWXVYR.js} +14 -14
- package/dist/chunks/{output-schema-63NLKBRY.js → output-schema-NEJ27MH6.js} +3 -3
- package/dist/chunks/{pal-RAIDDDNH.js → pal-LX2FA7N2.js} +12 -13
- package/dist/chunks/pal-LX2FA7N2.js.map +6 -0
- package/dist/chunks/plain-report-IOYN4O6N.js +154 -0
- package/dist/chunks/plain-report-IOYN4O6N.js.map +6 -0
- package/dist/chunks/{providers-N2UXL3XT.js → providers-XRDUL4OO.js} +6 -6
- package/dist/chunks/{resident-CWT62J2M.js → resident-T6QB5MX7.js} +35 -32
- package/dist/chunks/resident-T6QB5MX7.js.map +6 -0
- package/dist/chunks/resume-YPKHTYLO.js +23 -0
- package/dist/chunks/{resume-command-DNNLB5SK.js → resume-command-VSFQAVVN.js} +4 -4
- package/dist/chunks/{schedule-6N33GN2Z.js → schedule-GCBVV54F.js} +8 -8
- package/dist/chunks/{service-77ZFLYDC.js → service-UQPEAJKT.js} +35 -36
- package/dist/chunks/service-UQPEAJKT.js.map +6 -0
- package/dist/chunks/session-step-OKCO6S7R.js +33 -0
- package/dist/chunks/{skills-SAIXOU7Z.js → skills-LCTXKJCR.js} +9 -8
- package/dist/chunks/skills-LCTXKJCR.js.map +6 -0
- package/dist/chunks/start-check-NAACA6IE.js +12 -0
- package/dist/chunks/{state-J4NZZP7B.js → state-GNWJY3F2.js} +3 -3
- package/dist/chunks/{store-QLG76DQG.js → store-44ZZJVF3.js} +6 -6
- package/dist/chunks/store-44ZZJVF3.js.map +6 -0
- package/dist/chunks/{store-YRVVPTUX.js → store-7ZXMZ6ES.js} +15 -11
- package/dist/chunks/store-7ZXMZ6ES.js.map +6 -0
- package/dist/chunks/{store-2JQLHCG4.js → store-KGH5U7KF.js} +4 -4
- package/dist/chunks/store-KGH5U7KF.js.map +6 -0
- package/dist/chunks/{tui-77L5I5EV.js → tui-TNCMJCJJ.js} +1107 -310
- package/dist/chunks/tui-TNCMJCJJ.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-DU4I5ACF.js +456 -0
- package/dist/chunks/upgrade-DU4I5ACF.js.map +6 -0
- package/dist/chunks/{worktree-5ETUFJAC.js → worktree-XGJCKZQJ.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 +43 -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/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/servers.d.ts +37 -2
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- 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/store.d.ts +23 -0
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/small-model/side-model.d.ts +13 -0
- package/dist/integrations/small-model/side-model.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/failure-words.d.ts +2 -0
- package/dist/integrations/subagents/failure-words.d.ts.map +1 -0
- package/dist/integrations/subagents/fork.d.ts +29 -0
- package/dist/integrations/subagents/fork.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +8 -2
- package/dist/integrations/subagents/runtime.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 +3 -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 +20 -4
- 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 +46 -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/composer-undo.d.ts +31 -0
- package/dist/tui/composer-undo.d.ts.map +1 -0
- 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/external-editor.d.ts +5 -1
- package/dist/tui/external-editor.d.ts.map +1 -1
- package/dist/tui/foreground-handoff.d.ts +15 -0
- package/dist/tui/foreground-handoff.d.ts.map +1 -0
- package/dist/tui/keymap.d.ts +152 -0
- package/dist/tui/keymap.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/self-mending-pause-row.d.ts +17 -0
- package/dist/tui/self-mending-pause-row.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +14 -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/tool-server-rows.d.ts +23 -0
- package/dist/tui/tool-server-rows.d.ts.map +1 -0
- 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-XLF5EAM5.js.map +0 -6
- package/dist/chunks/agent-session-LHOJDS75.js +0 -59
- package/dist/chunks/chunk-2UYBHC3L.js.map +0 -6
- package/dist/chunks/chunk-3RC4ATZI.js.map +0 -6
- package/dist/chunks/chunk-4SBUXWX3.js.map +0 -6
- package/dist/chunks/chunk-4WWLRVYU.js.map +0 -6
- package/dist/chunks/chunk-A6J2VJL5.js.map +0 -6
- package/dist/chunks/chunk-BHR2CNBZ.js.map +0 -6
- package/dist/chunks/chunk-C2IABASE.js.map +0 -6
- package/dist/chunks/chunk-D2M5K6UY.js +0 -440
- package/dist/chunks/chunk-D2M5K6UY.js.map +0 -6
- package/dist/chunks/chunk-DHV3KMEC.js.map +0 -6
- package/dist/chunks/chunk-E7FQPIJB.js.map +0 -6
- package/dist/chunks/chunk-EUBCYTOK.js.map +0 -6
- package/dist/chunks/chunk-G34P5PIK.js.map +0 -6
- package/dist/chunks/chunk-H6B6AROX.js.map +0 -6
- package/dist/chunks/chunk-JEULHVUH.js.map +0 -6
- package/dist/chunks/chunk-L2GZVP5H.js.map +0 -6
- package/dist/chunks/chunk-LFI6O7WL.js.map +0 -6
- package/dist/chunks/chunk-NTPBXJMK.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-UEXQA2UW.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-ZDEFWEEI.js.map +0 -6
- package/dist/chunks/chunk-ZQRO6GGZ.js.map +0 -6
- package/dist/chunks/cli-runtime-7GSPWSYW.js.map +0 -6
- package/dist/chunks/dist-7JBTU4ZA.js.map +0 -6
- package/dist/chunks/dist-FI4O2BO3.js.map +0 -6
- package/dist/chunks/dist-JWX7FPMB.js.map +0 -6
- package/dist/chunks/drain-CVQW35OB.js.map +0 -6
- package/dist/chunks/exec-ZVOPAVQC.js.map +0 -6
- package/dist/chunks/host-queries-UUG7LHPF.js.map +0 -6
- package/dist/chunks/learn-AILV7XYA.js.map +0 -6
- package/dist/chunks/learn-builtin-I2RMG7OE.js.map +0 -6
- package/dist/chunks/mcp-6H3YELN6.js.map +0 -6
- package/dist/chunks/message-command-IQTT76ZY.js.map +0 -6
- package/dist/chunks/pal-RAIDDDNH.js.map +0 -6
- package/dist/chunks/resident-CWT62J2M.js.map +0 -6
- package/dist/chunks/resume-PKATLA4S.js +0 -23
- package/dist/chunks/service-77ZFLYDC.js.map +0 -6
- package/dist/chunks/session-step-I5DFTYDV.js +0 -30
- package/dist/chunks/skills-SAIXOU7Z.js.map +0 -6
- package/dist/chunks/tui-77L5I5EV.js.map +0 -6
- package/dist/chunks/upgrade-ZTG65H5Q.js +0 -315
- package/dist/chunks/upgrade-ZTG65H5Q.js.map +0 -6
- /package/dist/chunks/{acp-5RFAFTQU.js.map → acp-GKYFK7VQ.js.map} +0 -0
- /package/dist/chunks/{add-Z6Y5DOCM.js.map → add-4GRA6X5I.js.map} +0 -0
- /package/dist/chunks/{agent-U4NFC4DT.js.map → agent-KEI53I7S.js.map} +0 -0
- /package/dist/chunks/{agent-session-LHOJDS75.js.map → agent-session-4IF5H4YO.js.map} +0 -0
- /package/dist/chunks/{archive-P47MRHE2.js.map → archive-OOQMVBUH.js.map} +0 -0
- /package/dist/chunks/{browser-QN24UC7K.js.map → browser-GDIYUWKT.js.map} +0 -0
- /package/dist/chunks/{chat-HRORSJPH.js.map → chat-FUQOCA7Q.js.map} +0 -0
- /package/dist/chunks/{chunk-CLADMV2E.js.map → chunk-2C5QF5ZM.js.map} +0 -0
- /package/dist/chunks/{chunk-WJ7XYOSE.js.map → chunk-2R44UHEU.js.map} +0 -0
- /package/dist/chunks/{chunk-5XJC5G7N.js.map → chunk-2S4VEEVB.js.map} +0 -0
- /package/dist/chunks/{chunk-4SP6H34B.js.map → chunk-4V2V2FMP.js.map} +0 -0
- /package/dist/chunks/{chunk-CIIMESY2.js.map → chunk-54TFQUPM.js.map} +0 -0
- /package/dist/chunks/{chunk-7B5YTYHY.js.map → chunk-5QCBUBKO.js.map} +0 -0
- /package/dist/chunks/{chunk-CM2I2L4G.js.map → chunk-6G3XZZRF.js.map} +0 -0
- /package/dist/chunks/{chunk-CT23IU3D.js.map → chunk-AEZ7YTIJ.js.map} +0 -0
- /package/dist/chunks/{chunk-2QXVOSJM.js.map → chunk-B4I264HC.js.map} +0 -0
- /package/dist/chunks/{chunk-PKBHQFT6.js.map → chunk-BBERAGUX.js.map} +0 -0
- /package/dist/chunks/{chunk-2HDIUUMX.js.map → chunk-CD5X75DB.js.map} +0 -0
- /package/dist/chunks/{chunk-LVDRURI4.js.map → chunk-DXTK4EMM.js.map} +0 -0
- /package/dist/chunks/{chunk-72CFHDKQ.js.map → chunk-EDP5FDN4.js.map} +0 -0
- /package/dist/chunks/{chunk-2UPDDG7V.js.map → chunk-EM5AM5BR.js.map} +0 -0
- /package/dist/chunks/{chunk-ZMZR4UTZ.js.map → chunk-FFXSL2SL.js.map} +0 -0
- /package/dist/chunks/{chunk-YYX7O3T2.js.map → chunk-HAAL3DME.js.map} +0 -0
- /package/dist/chunks/{chunk-OFNGIO53.js.map → chunk-IJUCXVG5.js.map} +0 -0
- /package/dist/chunks/{chunk-ZGBKTT7X.js.map → chunk-LCVRXUEV.js.map} +0 -0
- /package/dist/chunks/{chunk-QZYTSINZ.js.map → chunk-LWPTVYRU.js.map} +0 -0
- /package/dist/chunks/{chunk-3OP32UHN.js.map → chunk-M3RKXXZE.js.map} +0 -0
- /package/dist/chunks/{chunk-J67SASGK.js.map → chunk-N4DS6G4I.js.map} +0 -0
- /package/dist/chunks/{chunk-CEIYJWZ2.js.map → chunk-NJ6P3WPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-CAPC66Q6.js.map → chunk-NOG4Z42R.js.map} +0 -0
- /package/dist/chunks/{chunk-2VQ475KY.js.map → chunk-NWW46AII.js.map} +0 -0
- /package/dist/chunks/{chunk-TU46IHIV.js.map → chunk-OIOA7BRC.js.map} +0 -0
- /package/dist/chunks/{chunk-JKXCLMMZ.js.map → chunk-OK4UNUNI.js.map} +0 -0
- /package/dist/chunks/{chunk-Y5QV6NZK.js.map → chunk-OUGL6FI2.js.map} +0 -0
- /package/dist/chunks/{chunk-RM4XZZL3.js.map → chunk-P73IFAYM.js.map} +0 -0
- /package/dist/chunks/{chunk-UM4ECTUS.js.map → chunk-PXSTTFI7.js.map} +0 -0
- /package/dist/chunks/{chunk-WBTXYSAB.js.map → chunk-SM377CLQ.js.map} +0 -0
- /package/dist/chunks/{chunk-34L6FTQV.js.map → chunk-TAAAO6PM.js.map} +0 -0
- /package/dist/chunks/{chunk-BNMFWLWH.js.map → chunk-TIBFEO2R.js.map} +0 -0
- /package/dist/chunks/{chunk-VALR7WUL.js.map → chunk-TYMIKXOD.js.map} +0 -0
- /package/dist/chunks/{chunk-I55BEPVH.js.map → chunk-TZQT5JL3.js.map} +0 -0
- /package/dist/chunks/{chunk-WN7YMX22.js.map → chunk-UB5YVQJM.js.map} +0 -0
- /package/dist/chunks/{chunk-25XPE4N6.js.map → chunk-UPXD4LJ5.js.map} +0 -0
- /package/dist/chunks/{chunk-RKSYVIQX.js.map → chunk-V5YIGRUD.js.map} +0 -0
- /package/dist/chunks/{chunk-37DRD4QM.js.map → chunk-VNFXDLKD.js.map} +0 -0
- /package/dist/chunks/{chunk-Z7DJAGBK.js.map → chunk-VNK6EA2D.js.map} +0 -0
- /package/dist/chunks/{chunk-QNFMVN4D.js.map → chunk-VRUEY647.js.map} +0 -0
- /package/dist/chunks/{chunk-WKGECHMV.js.map → chunk-VTU23NBS.js.map} +0 -0
- /package/dist/chunks/{chunk-DQKQKNDY.js.map → chunk-W6Z7RNVL.js.map} +0 -0
- /package/dist/chunks/{chunk-ANUGFVZI.js.map → chunk-WQDMDSPW.js.map} +0 -0
- /package/dist/chunks/{chunk-VCKNYZYH.js.map → chunk-XGOM2KHV.js.map} +0 -0
- /package/dist/chunks/{chunk-U2AVT6OB.js.map → chunk-Z3VSDOCX.js.map} +0 -0
- /package/dist/chunks/{commands-LU5AOF65.js.map → commands-4ZTQFX2X.js.map} +0 -0
- /package/dist/chunks/{crash-report-YDSO3QZP.js.map → crash-report-Y6U6CH73.js.map} +0 -0
- /package/dist/chunks/{doctor-ZK3CTBDR.js.map → doctor-WKZ7BGFC.js.map} +0 -0
- /package/dist/chunks/{eval-PBRDQ7GI.js.map → eval-7MDLH5UR.js.map} +0 -0
- /package/dist/chunks/{home-QPIQIIAR.js.map → home-UID64VNR.js.map} +0 -0
- /package/dist/chunks/{lifecycle-ZZ5HDP6F.js.map → install-LVQAT4QP.js.map} +0 -0
- /package/dist/chunks/{login-VUIOQEA2.js.map → lifecycle-TIEMDICJ.js.map} +0 -0
- /package/dist/chunks/{list-TMHSX32S.js.map → list-HGGKMHPQ.js.map} +0 -0
- /package/dist/chunks/{output-schema-63NLKBRY.js.map → live-JHNWMJIE.js.map} +0 -0
- /package/dist/chunks/{providers-N2UXL3XT.js.map → login-CLFAZ2WB.js.map} +0 -0
- /package/dist/chunks/{logs-QQTFNNSW.js.map → logs-A5HZQ3XA.js.map} +0 -0
- /package/dist/chunks/{operator-tools-ISZGHK3F.js.map → operator-tools-7YJWXVYR.js.map} +0 -0
- /package/dist/chunks/{resume-PKATLA4S.js.map → output-schema-NEJ27MH6.js.map} +0 -0
- /package/dist/chunks/{resume-command-DNNLB5SK.js.map → providers-XRDUL4OO.js.map} +0 -0
- /package/dist/chunks/{session-step-I5DFTYDV.js.map → resume-YPKHTYLO.js.map} +0 -0
- /package/dist/chunks/{store-2JQLHCG4.js.map → resume-command-VSFQAVVN.js.map} +0 -0
- /package/dist/chunks/{schedule-6N33GN2Z.js.map → schedule-GCBVV54F.js.map} +0 -0
- /package/dist/chunks/{store-QLG76DQG.js.map → session-step-OKCO6S7R.js.map} +0 -0
- /package/dist/chunks/{store-YRVVPTUX.js.map → start-check-NAACA6IE.js.map} +0 -0
- /package/dist/chunks/{state-J4NZZP7B.js.map → state-GNWJY3F2.js.map} +0 -0
- /package/dist/chunks/{worktree-5ETUFJAC.js.map → worktree-XGJCKZQJ.js.map} +0 -0
|
@@ -1,33 +1,87 @@
|
|
|
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-CEIYJWZ2.js";
|
|
9
|
-
import {
|
|
10
|
-
reportCrash
|
|
11
|
-
} from "./chunk-BNMFWLWH.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-DXTK4EMM.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
|
+
isAction,
|
|
31
|
+
isChordAction,
|
|
32
|
+
isChordLead,
|
|
33
|
+
kernelCommandDescriptors,
|
|
34
|
+
matchSlashCommands,
|
|
35
|
+
mergeHostCommands,
|
|
36
|
+
motionAllowed,
|
|
37
|
+
parseSlash,
|
|
38
|
+
pressedKeyLabel,
|
|
39
|
+
primaryKeyLabel,
|
|
40
|
+
queryTerminalBackground,
|
|
41
|
+
reducedMotion,
|
|
42
|
+
renderAgents,
|
|
43
|
+
renderContext,
|
|
44
|
+
renderOutcome,
|
|
45
|
+
require_react,
|
|
46
|
+
reviewPrompt,
|
|
47
|
+
runSlash,
|
|
48
|
+
saveReducedMotion,
|
|
49
|
+
saveTheme,
|
|
50
|
+
savedThemeSetting,
|
|
51
|
+
setReducedMotion,
|
|
52
|
+
setThemePreview,
|
|
53
|
+
setThemeSetting,
|
|
54
|
+
shownTheme,
|
|
55
|
+
toolServerRow,
|
|
56
|
+
turnLimitCommands,
|
|
57
|
+
useReducedMotion,
|
|
58
|
+
useThemeEpoch,
|
|
59
|
+
useThemeSubscription
|
|
60
|
+
} from "./chunk-BNYTG2ZC.js";
|
|
61
|
+
import {
|
|
62
|
+
handleTerminationSignals
|
|
63
|
+
} from "./chunk-LCVRXUEV.js";
|
|
64
|
+
import "./chunk-TBIX6JRE.js";
|
|
65
|
+
import {
|
|
66
|
+
deleteUserConfigValue,
|
|
67
|
+
setUserConfigValue
|
|
68
|
+
} from "./chunk-NOG4Z42R.js";
|
|
69
|
+
import {
|
|
70
|
+
describeAllCredentialsLogout,
|
|
71
|
+
describeCodexDeviceLoginStart,
|
|
72
|
+
describeLoginOutcome,
|
|
73
|
+
describeLoginStart,
|
|
74
|
+
describeProviderLogout
|
|
75
|
+
} from "./chunk-JV3LONAU.js";
|
|
22
76
|
import {
|
|
23
77
|
settleAnsweredPark
|
|
24
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-EDP5FDN4.js";
|
|
25
79
|
import "./chunk-GWQEMJFS.js";
|
|
26
80
|
import {
|
|
27
81
|
DELIVERY_READ_LIMIT,
|
|
28
82
|
readSourceDeliveryPage,
|
|
29
83
|
takeSuppressedCount
|
|
30
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-N4DS6G4I.js";
|
|
31
85
|
import {
|
|
32
86
|
DEFAULT_MAX_ITERATIONS,
|
|
33
87
|
DEFAULT_TIMEOUT_MS,
|
|
@@ -40,7 +94,7 @@ import {
|
|
|
40
94
|
runsPerDay,
|
|
41
95
|
scriptShellUnavailableReason,
|
|
42
96
|
verifyScheduledScript
|
|
43
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-WQDMDSPW.js";
|
|
44
98
|
import {
|
|
45
99
|
callsCount
|
|
46
100
|
} from "./chunk-E5VLANCO.js";
|
|
@@ -49,67 +103,34 @@ import {
|
|
|
49
103
|
compileJobPolicy,
|
|
50
104
|
compileScriptCheckPolicy,
|
|
51
105
|
isPresetName
|
|
52
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-5QCBUBKO.js";
|
|
107
|
+
import "./chunk-OUGL6FI2.js";
|
|
53
108
|
import {
|
|
54
109
|
formatResumeShellCommand,
|
|
55
110
|
parkedRunWords,
|
|
56
111
|
resumeCommand
|
|
57
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-OK4UNUNI.js";
|
|
58
113
|
import {
|
|
59
114
|
appendHistory,
|
|
60
115
|
nextFireOf,
|
|
61
116
|
readHistory,
|
|
62
117
|
readState
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-Y5QV6NZK.js";
|
|
118
|
+
} from "./chunk-4V2V2FMP.js";
|
|
65
119
|
import {
|
|
66
120
|
callEndpoint,
|
|
67
121
|
readEndpoint
|
|
68
122
|
} from "./chunk-6YG7D7U4.js";
|
|
69
123
|
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
NAMZU_WORDMARK_MIN_WIDTH,
|
|
73
|
-
checkUpdates,
|
|
74
|
-
resolveNpmInvocation
|
|
75
|
-
} from "./chunk-O2B3B2TM.js";
|
|
124
|
+
reportCrash
|
|
125
|
+
} from "./chunk-TIBFEO2R.js";
|
|
76
126
|
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-ZDEFWEEI.js";
|
|
127
|
+
BYPASS_CONSENT_BODY,
|
|
128
|
+
BYPASS_CONSENT_TITLE,
|
|
129
|
+
acknowledgeBypass,
|
|
130
|
+
hasAcknowledgedBypass
|
|
131
|
+
} from "./chunk-NJ6P3WPZ.js";
|
|
112
132
|
import {
|
|
133
|
+
applyFallbackFlag,
|
|
113
134
|
capChoiceLines,
|
|
114
135
|
choiceDisplayText,
|
|
115
136
|
choiceDisplayWidth,
|
|
@@ -118,22 +139,7 @@ import {
|
|
|
118
139
|
truncateChoiceText,
|
|
119
140
|
wrapBalancedText,
|
|
120
141
|
wrapChoiceText
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
handleTerminationSignals
|
|
124
|
-
} from "./chunk-ZGBKTT7X.js";
|
|
125
|
-
import "./chunk-TBIX6JRE.js";
|
|
126
|
-
import {
|
|
127
|
-
deleteUserConfigValue,
|
|
128
|
-
setUserConfigValue
|
|
129
|
-
} from "./chunk-CAPC66Q6.js";
|
|
130
|
-
import {
|
|
131
|
-
describeAllCredentialsLogout,
|
|
132
|
-
describeCodexDeviceLoginStart,
|
|
133
|
-
describeLoginOutcome,
|
|
134
|
-
describeLoginStart,
|
|
135
|
-
describeProviderLogout
|
|
136
|
-
} from "./chunk-JV3LONAU.js";
|
|
142
|
+
} from "./chunk-2OVZNENW.js";
|
|
137
143
|
import {
|
|
138
144
|
AUTO_CHOICE_ID,
|
|
139
145
|
PR_NONE,
|
|
@@ -144,18 +150,21 @@ import {
|
|
|
144
150
|
modelStep,
|
|
145
151
|
rawDetail,
|
|
146
152
|
rowSection,
|
|
147
|
-
runtimeContextLabel,
|
|
148
153
|
sectionHeading,
|
|
149
154
|
withAutoChoice,
|
|
150
155
|
writeConversationExport
|
|
151
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-GURZ2GEB.js";
|
|
152
157
|
import {
|
|
153
158
|
tuiPalDefinition,
|
|
154
159
|
tuiPalEnvironment,
|
|
155
160
|
tuiPalOwner,
|
|
156
161
|
tuiPalPreferences
|
|
157
|
-
} from "./chunk-
|
|
158
|
-
import
|
|
162
|
+
} from "./chunk-OIOA7BRC.js";
|
|
163
|
+
import {
|
|
164
|
+
isModelOnlyContext,
|
|
165
|
+
runtimeContextLabel
|
|
166
|
+
} from "./chunk-3F3V2PB7.js";
|
|
167
|
+
import "./chunk-LAQTQNQE.js";
|
|
159
168
|
import {
|
|
160
169
|
COMPACTED_HINT,
|
|
161
170
|
COMPACTING_LABEL,
|
|
@@ -235,15 +244,16 @@ import {
|
|
|
235
244
|
webLiveStatus,
|
|
236
245
|
webSettledLine,
|
|
237
246
|
withDebugDetail
|
|
238
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-3SQVE73V.js";
|
|
239
248
|
import {
|
|
240
249
|
openManagedWorktrees,
|
|
241
250
|
worktreeOpenHint
|
|
242
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-UB5YVQJM.js";
|
|
252
|
+
import "./chunk-XV3FGIHS.js";
|
|
243
253
|
import {
|
|
244
|
-
|
|
245
|
-
} from "./chunk-
|
|
246
|
-
import "./chunk-
|
|
254
|
+
openInBrowser
|
|
255
|
+
} from "./chunk-SM377CLQ.js";
|
|
256
|
+
import "./chunk-UPXD4LJ5.js";
|
|
247
257
|
import {
|
|
248
258
|
SAVE_SKILL_TOOL_NAME,
|
|
249
259
|
SKILL_CREATOR_SKILL,
|
|
@@ -264,27 +274,28 @@ import {
|
|
|
264
274
|
paint,
|
|
265
275
|
resolveTurnGuards,
|
|
266
276
|
runTokens,
|
|
277
|
+
sandboxRunsShellUnasked,
|
|
267
278
|
settledElapsed,
|
|
268
279
|
theme,
|
|
269
280
|
tokenColor
|
|
270
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-I7FY5SK5.js";
|
|
282
|
+
import "./chunk-VNFXDLKD.js";
|
|
283
|
+
import "./chunk-V5YIGRUD.js";
|
|
284
|
+
import {
|
|
285
|
+
describeBrowserStatus
|
|
286
|
+
} from "./chunk-WHODOMXA.js";
|
|
271
287
|
import {
|
|
272
288
|
describePlainInterruption,
|
|
273
289
|
describeProviderWait,
|
|
274
|
-
describeProviderWaitClock
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
import "./chunk-RKSYVIQX.js";
|
|
278
|
-
import "./chunk-G34P5PIK.js";
|
|
279
|
-
import {
|
|
280
|
-
openInBrowser
|
|
281
|
-
} from "./chunk-WBTXYSAB.js";
|
|
290
|
+
describeProviderWaitClock,
|
|
291
|
+
isSelfMending
|
|
292
|
+
} from "./chunk-BHW43OKH.js";
|
|
282
293
|
import "./chunk-NUGPLXVK.js";
|
|
283
294
|
import {
|
|
284
295
|
beginCodexDeviceLogin,
|
|
285
296
|
beginSubscriptionLogin,
|
|
286
297
|
parsePastedInput
|
|
287
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-TZQT5JL3.js";
|
|
288
299
|
import {
|
|
289
300
|
NO_SKILLS_FOUND,
|
|
290
301
|
composeSkillsPrompt,
|
|
@@ -292,18 +303,46 @@ import {
|
|
|
292
303
|
loadSkillBody,
|
|
293
304
|
renderSkillRoster,
|
|
294
305
|
skillTierLabel
|
|
295
|
-
} from "./chunk-
|
|
296
|
-
import "./chunk-
|
|
297
|
-
import "./chunk-
|
|
306
|
+
} from "./chunk-VWNLO4OM.js";
|
|
307
|
+
import "./chunk-HAAL3DME.js";
|
|
308
|
+
import "./chunk-B4I264HC.js";
|
|
298
309
|
import {
|
|
299
310
|
claimPalConversation,
|
|
300
311
|
listPalConversations
|
|
301
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-LWPTVYRU.js";
|
|
302
313
|
import "./chunk-ZWA2JRJV.js";
|
|
314
|
+
import {
|
|
315
|
+
startAutoUpdate
|
|
316
|
+
} from "./chunk-W6ZZLT64.js";
|
|
317
|
+
import {
|
|
318
|
+
resolveNpmInvocation
|
|
319
|
+
} from "./chunk-RHT52Z5X.js";
|
|
320
|
+
import {
|
|
321
|
+
readManifest
|
|
322
|
+
} from "./chunk-AK2U3N2A.js";
|
|
323
|
+
import "./chunk-NXM3BLL4.js";
|
|
324
|
+
import {
|
|
325
|
+
ScheduleConflictError,
|
|
326
|
+
confirmationHolds,
|
|
327
|
+
createJob,
|
|
328
|
+
deleteJob,
|
|
329
|
+
findJob,
|
|
330
|
+
listJobs,
|
|
331
|
+
updateJob
|
|
332
|
+
} from "./chunk-SKKWMMFP.js";
|
|
333
|
+
import {
|
|
334
|
+
writeJsonAtomic
|
|
335
|
+
} from "./chunk-OEW7CJKK.js";
|
|
303
336
|
import {
|
|
304
337
|
pinTrustedProjectPath,
|
|
305
338
|
resolveTrustedProjectContext
|
|
306
339
|
} from "./chunk-CHIEVVQ2.js";
|
|
340
|
+
import "./chunk-HE7WUOX2.js";
|
|
341
|
+
import {
|
|
342
|
+
describeCacheLifetime,
|
|
343
|
+
promptCacheTtl,
|
|
344
|
+
providerOffersCacheLifetime
|
|
345
|
+
} from "./chunk-MJRLJDNK.js";
|
|
307
346
|
import {
|
|
308
347
|
debugRequested
|
|
309
348
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -313,18 +352,21 @@ import {
|
|
|
313
352
|
ConfigLoadError,
|
|
314
353
|
LARGE_WORKFLOW_WARNING,
|
|
315
354
|
LARGE_WORKFLOW_WARNING_SHORT,
|
|
355
|
+
THEME_CHOICES,
|
|
356
|
+
approveShownMcpServers,
|
|
316
357
|
browserCallOrigin,
|
|
317
358
|
browserSiteRuleFor,
|
|
359
|
+
fingerprintMcpServer,
|
|
360
|
+
formatConfigSource,
|
|
318
361
|
isLargeRun,
|
|
319
362
|
loadConfigWithProvenance,
|
|
363
|
+
pendingProjectMcpServers,
|
|
364
|
+
pendingServersMessage,
|
|
320
365
|
readPermissionLayers,
|
|
321
366
|
resolveComposerTriggers
|
|
322
|
-
} from "./chunk-
|
|
323
|
-
import "./chunk-
|
|
324
|
-
import
|
|
325
|
-
THEME_CHOICES,
|
|
326
|
-
formatConfigSource
|
|
327
|
-
} from "./chunk-D2M5K6UY.js";
|
|
367
|
+
} from "./chunk-ODOM3I7B.js";
|
|
368
|
+
import "./chunk-KONYGNG6.js";
|
|
369
|
+
import "./chunk-LCGXWCVU.js";
|
|
328
370
|
import {
|
|
329
371
|
displayPath,
|
|
330
372
|
formatSize,
|
|
@@ -333,25 +375,6 @@ import {
|
|
|
333
375
|
plural,
|
|
334
376
|
productName
|
|
335
377
|
} 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-E7FQPIJB.js";
|
|
355
378
|
import {
|
|
356
379
|
EXIT_INTERNAL_ERROR
|
|
357
380
|
} from "./chunk-Y7B67G22.js";
|
|
@@ -369,7 +392,7 @@ import {
|
|
|
369
392
|
primaryProvider,
|
|
370
393
|
signedInSubscriptionProviders,
|
|
371
394
|
writePreferences
|
|
372
|
-
} from "./chunk-
|
|
395
|
+
} from "./chunk-PXSTTFI7.js";
|
|
373
396
|
import {
|
|
374
397
|
ALL_PROVIDER_IDS,
|
|
375
398
|
PROVIDER_REGISTRY,
|
|
@@ -379,22 +402,22 @@ import {
|
|
|
379
402
|
} from "./chunk-6LLJQ3KY.js";
|
|
380
403
|
import {
|
|
381
404
|
applyProviderFlags
|
|
382
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-752S5IP3.js";
|
|
383
406
|
import "./chunk-XEUQN4JC.js";
|
|
407
|
+
import "./chunk-VTU23NBS.js";
|
|
384
408
|
import {
|
|
385
409
|
PAUSED_TURN_LINES,
|
|
386
410
|
currentTimeLine,
|
|
387
411
|
describeTurnStop,
|
|
388
412
|
handoffContinuationNote
|
|
389
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-EADX2OKC.js";
|
|
390
414
|
import {
|
|
391
415
|
autoAvailable,
|
|
392
416
|
nextCycleMode,
|
|
393
417
|
permissionModeDescription,
|
|
394
418
|
permissionModeLabel,
|
|
395
419
|
permissionModeName
|
|
396
|
-
} from "./chunk-
|
|
397
|
-
import "./chunk-WKGECHMV.js";
|
|
420
|
+
} from "./chunk-7WQS7BP2.js";
|
|
398
421
|
import {
|
|
399
422
|
expandTabs,
|
|
400
423
|
terminalDisplayText
|
|
@@ -409,6 +432,7 @@ import {
|
|
|
409
432
|
forkConversationBeforeUser,
|
|
410
433
|
journalOf,
|
|
411
434
|
listArchived,
|
|
435
|
+
listOtherFolders,
|
|
412
436
|
listRecent,
|
|
413
437
|
loadConversation,
|
|
414
438
|
loadResumableConversation,
|
|
@@ -420,33 +444,38 @@ import {
|
|
|
420
444
|
titleOf,
|
|
421
445
|
titlesOf,
|
|
422
446
|
typedTextOf,
|
|
447
|
+
unansweredReviewPark,
|
|
423
448
|
unarchiveConversation
|
|
424
|
-
} from "./chunk-
|
|
425
|
-
import "./chunk-
|
|
426
|
-
import "./chunk-
|
|
427
|
-
import "./chunk-
|
|
428
|
-
import "./chunk-
|
|
449
|
+
} from "./chunk-IY7XWRXE.js";
|
|
450
|
+
import "./chunk-AEZ7YTIJ.js";
|
|
451
|
+
import "./chunk-JQIBPPOL.js";
|
|
452
|
+
import "./chunk-6G3XZZRF.js";
|
|
453
|
+
import "./chunk-54TFQUPM.js";
|
|
429
454
|
import {
|
|
430
455
|
isTrusted,
|
|
431
456
|
trustDir
|
|
432
|
-
} from "./chunk-
|
|
457
|
+
} from "./chunk-CD5X75DB.js";
|
|
433
458
|
import "./chunk-LXB3S4IC.js";
|
|
434
|
-
import "./chunk-
|
|
459
|
+
import "./chunk-OH6TB27S.js";
|
|
460
|
+
import "./chunk-Z3VSDOCX.js";
|
|
435
461
|
import "./chunk-WMEZTDLT.js";
|
|
436
462
|
import {
|
|
437
463
|
contextLogging,
|
|
438
464
|
installCliLogging
|
|
439
|
-
} from "./chunk-
|
|
465
|
+
} from "./chunk-VRUEY647.js";
|
|
466
|
+
import {
|
|
467
|
+
PROJECT_MCP_FILE,
|
|
468
|
+
parseMcpServerFile
|
|
469
|
+
} from "./chunk-SIG7WHBU.js";
|
|
440
470
|
import {
|
|
441
471
|
isFullWidth,
|
|
442
472
|
isWide,
|
|
443
473
|
stringWidth,
|
|
444
474
|
stripAnsi
|
|
445
475
|
} from "./chunk-U5UV2YRE.js";
|
|
446
|
-
import "./chunk-OH6TB27S.js";
|
|
447
476
|
import "./chunk-IE5XIE4W.js";
|
|
448
477
|
import "./chunk-B73OIFL6.js";
|
|
449
|
-
import "./chunk-
|
|
478
|
+
import "./chunk-NWW46AII.js";
|
|
450
479
|
import "./chunk-JORONMD3.js";
|
|
451
480
|
import {
|
|
452
481
|
clearAllStoredCredentials,
|
|
@@ -460,10 +489,10 @@ import {
|
|
|
460
489
|
readStoredSubscriptionCredential,
|
|
461
490
|
restrictToOwner,
|
|
462
491
|
writeStoredGeminiApiKey
|
|
463
|
-
} from "./chunk-
|
|
492
|
+
} from "./chunk-2R44UHEU.js";
|
|
464
493
|
import {
|
|
465
494
|
namzuHomePath
|
|
466
|
-
} from "./chunk-
|
|
495
|
+
} from "./chunk-IJUCXVG5.js";
|
|
467
496
|
import {
|
|
468
497
|
ACCEPT_EDITS_TOOLS,
|
|
469
498
|
DECLINED_TOOL_CALL_FEEDBACK,
|
|
@@ -524,7 +553,7 @@ import {
|
|
|
524
553
|
validateTimeZone,
|
|
525
554
|
wrapUntrusted,
|
|
526
555
|
writePeerRecord
|
|
527
|
-
} from "./chunk-
|
|
556
|
+
} from "./chunk-GNG6HJIV.js";
|
|
528
557
|
import {
|
|
529
558
|
__commonJS,
|
|
530
559
|
__export,
|
|
@@ -34705,7 +34734,7 @@ function summarizeKnownCall(name, input, context = {}) {
|
|
|
34705
34734
|
...known.provider !== void 0 ? readableField("Provider", known.provider) : [],
|
|
34706
34735
|
...known.effort !== void 0 ? readableField("Effort", known.effort) : [],
|
|
34707
34736
|
...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"] : [],
|
|
34737
|
+
...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
34738
|
...known.role !== void 0 ? readableField("Role", known.role) : [],
|
|
34710
34739
|
...known.workflow !== void 0 ? readableField("Workflow label", known.workflow) : [],
|
|
34711
34740
|
...known.phase !== void 0 ? readableField("Phase label", known.phase) : [],
|
|
@@ -34984,7 +35013,7 @@ function compactAgentPlan(calls) {
|
|
|
34984
35013
|
previousGroup = group;
|
|
34985
35014
|
}
|
|
34986
35015
|
const type = input.subagent_type;
|
|
34987
|
-
const access = type === "explore" ? "read-only" : type === void 0 || type === "general-purpose" ? "files + commands" : String(type);
|
|
35016
|
+
const access = type === "explore" || type === "plan" ? "read-only" : type === void 0 || type === "general-purpose" ? "files + commands" : String(type);
|
|
34988
35017
|
const background = input.run_in_background === true ? " \xB7 background" : "";
|
|
34989
35018
|
const selection = [input.provider, input.model, input.effort].filter((value) => typeof value === "string").map((value) => oneLine(String(value))).join(" / ");
|
|
34990
35019
|
const modelLabel = selection ? ` \xB7 ${selection}` : "";
|
|
@@ -34998,6 +35027,7 @@ __name(compactAgentPlan, "compactAgentPlan");
|
|
|
34998
35027
|
function agentTypeLabel(type) {
|
|
34999
35028
|
if (type === void 0) return "general-purpose (default)";
|
|
35000
35029
|
if (type === "explore") return "explore (read-only tools)";
|
|
35030
|
+
if (type === "plan") return "plan (read-only tools)";
|
|
35001
35031
|
return type;
|
|
35002
35032
|
}
|
|
35003
35033
|
__name(agentTypeLabel, "agentTypeLabel");
|
|
@@ -35226,8 +35256,9 @@ function systemRowStyle(level) {
|
|
|
35226
35256
|
__name(systemRowStyle, "systemRowStyle");
|
|
35227
35257
|
var INTERRUPTED_TEXT = "Interrupted \xB7 What should Namzu do instead?";
|
|
35228
35258
|
var INTERRUPTED_BY_STEER_TEXT = "Interrupted";
|
|
35259
|
+
var INTERRUPTED_COMMAND_CONTINUES_TEXT = "Interrupted \xB7 The command continues in the background";
|
|
35229
35260
|
function interruptionRow(options) {
|
|
35230
|
-
const content = options.steered === true ? INTERRUPTED_BY_STEER_TEXT : INTERRUPTED_TEXT;
|
|
35261
|
+
const content = options.movedToBackground === true ? INTERRUPTED_COMMAND_CONTINUES_TEXT : options.steered === true ? INTERRUPTED_BY_STEER_TEXT : INTERRUPTED_TEXT;
|
|
35231
35262
|
return options.callRunning ? { content, glyph: CONTINUATION_GLYPH, color: tokenColor("text.muted") } : { content, ...systemRowStyle("notice") };
|
|
35232
35263
|
}
|
|
35233
35264
|
__name(interruptionRow, "interruptionRow");
|
|
@@ -36970,6 +37001,8 @@ function buildContextView(input) {
|
|
|
36970
37001
|
lines.push(usage2, "", "Estimated usage by category");
|
|
36971
37002
|
for (const line of legend) lines.push(`${line.glyph} ${line.name}: ${line.value}`);
|
|
36972
37003
|
if (windowNote) lines.push("", `${windowNote.label}${windowNote.value}`);
|
|
37004
|
+
const cacheNote = input.cacheLifetime ? { label: "Prompt cache lifetime: ", value: input.cacheLifetime } : void 0;
|
|
37005
|
+
if (cacheNote) lines.push(...windowNote ? [] : [""], `${cacheNote.label}${cacheNote.value}`);
|
|
36973
37006
|
for (const section of input.sections) {
|
|
36974
37007
|
lines.push("", `${section.title} \xB7 ${section.hint}`);
|
|
36975
37008
|
for (const group of section.groups) {
|
|
@@ -36993,6 +37026,7 @@ function buildContextView(input) {
|
|
|
36993
37026
|
usage: usage2,
|
|
36994
37027
|
legend,
|
|
36995
37028
|
...windowNote ? { windowNote } : {},
|
|
37029
|
+
...cacheNote ? { cacheNote } : {},
|
|
36996
37030
|
sections: input.sections,
|
|
36997
37031
|
suggestions,
|
|
36998
37032
|
text: lines.join("\n")
|
|
@@ -37048,6 +37082,10 @@ function ContextGridRow({ view }) {
|
|
|
37048
37082
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: view.windowNote.label }),
|
|
37049
37083
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { dimColor: true, children: view.windowNote.value })
|
|
37050
37084
|
] }) }) : null,
|
|
37085
|
+
view.cacheNote ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { marginTop: view.windowNote ? 0 : 1, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Text, { children: [
|
|
37086
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: view.cacheNote.label }),
|
|
37087
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { dimColor: true, children: view.cacheNote.value })
|
|
37088
|
+
] }) }) : null,
|
|
37051
37089
|
view.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, children: [
|
|
37052
37090
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Text, { children: [
|
|
37053
37091
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: section.title }),
|
|
@@ -38196,6 +38234,26 @@ import { readFileSync as readFileSync3 } from "node:fs";
|
|
|
38196
38234
|
import { resolve } from "node:path";
|
|
38197
38235
|
var FILES = ["namzu.config.json", "namzu.config.local.json"];
|
|
38198
38236
|
var MAX_SHOWN_GRANT_RULES = 8;
|
|
38237
|
+
function plainAddress(url) {
|
|
38238
|
+
try {
|
|
38239
|
+
const parsed = new URL(url);
|
|
38240
|
+
return `${parsed.protocol}//${parsed.host}${parsed.pathname === "/" ? "" : parsed.pathname}`;
|
|
38241
|
+
} catch {
|
|
38242
|
+
return url.split(/[?#]/)[0] ?? url;
|
|
38243
|
+
}
|
|
38244
|
+
}
|
|
38245
|
+
__name(plainAddress, "plainAddress");
|
|
38246
|
+
function describeRuns(entry) {
|
|
38247
|
+
if (entry === null || typeof entry !== "object") return "unknown";
|
|
38248
|
+
const spec = entry;
|
|
38249
|
+
if (typeof spec.command === "string" && spec.command.length > 0) {
|
|
38250
|
+
const args = Array.isArray(spec.args) ? spec.args.filter((arg) => typeof arg === "string") : [];
|
|
38251
|
+
return [spec.command, ...args].join(" ").replace(/\s+/g, " ");
|
|
38252
|
+
}
|
|
38253
|
+
if (typeof spec.url === "string" && spec.url.length > 0) return plainAddress(spec.url);
|
|
38254
|
+
return "unknown";
|
|
38255
|
+
}
|
|
38256
|
+
__name(describeRuns, "describeRuns");
|
|
38199
38257
|
function readObject(path) {
|
|
38200
38258
|
try {
|
|
38201
38259
|
const parsed = JSON.parse(readFileSync3(path, "utf8"));
|
|
@@ -38228,9 +38286,23 @@ function readFolderGrants(cwd2) {
|
|
|
38228
38286
|
}
|
|
38229
38287
|
}
|
|
38230
38288
|
}
|
|
38289
|
+
let toolServers = [];
|
|
38290
|
+
try {
|
|
38291
|
+
const declared = parseMcpServerFile(
|
|
38292
|
+
readFileSync3(resolve(cwd2, PROJECT_MCP_FILE), "utf8"),
|
|
38293
|
+
PROJECT_MCP_FILE
|
|
38294
|
+
);
|
|
38295
|
+
toolServers = Object.entries(declared).map(([name, entry]) => ({
|
|
38296
|
+
name,
|
|
38297
|
+
runs: describeRuns(entry),
|
|
38298
|
+
fingerprint: fingerprintMcpServer(entry)
|
|
38299
|
+
}));
|
|
38300
|
+
} catch {
|
|
38301
|
+
}
|
|
38231
38302
|
return {
|
|
38232
38303
|
allowRules: [...new Set(allowRules)],
|
|
38233
|
-
directories: [...new Set(directories)]
|
|
38304
|
+
directories: [...new Set(directories)],
|
|
38305
|
+
toolServers
|
|
38234
38306
|
};
|
|
38235
38307
|
}
|
|
38236
38308
|
__name(readFolderGrants, "readFolderGrants");
|
|
@@ -40135,6 +40207,35 @@ function nextQueuedHintEpisode(previous, wanted) {
|
|
|
40135
40207
|
}
|
|
40136
40208
|
__name(nextQueuedHintEpisode, "nextQueuedHintEpisode");
|
|
40137
40209
|
|
|
40210
|
+
// src/tui/composer-undo.ts
|
|
40211
|
+
var UNDO_LIMIT = 50;
|
|
40212
|
+
function createUndoStack(limit = UNDO_LIMIT) {
|
|
40213
|
+
const items = [];
|
|
40214
|
+
let runEnd = null;
|
|
40215
|
+
return {
|
|
40216
|
+
record(before, after, typed) {
|
|
40217
|
+
const continuesRun = typed !== null && runEnd === before.value && !/\s/u.test(typed);
|
|
40218
|
+
if (!continuesRun) {
|
|
40219
|
+
items.push(before);
|
|
40220
|
+
if (items.length > limit) items.shift();
|
|
40221
|
+
}
|
|
40222
|
+
runEnd = typed !== null && !/\s/u.test(typed) ? after : null;
|
|
40223
|
+
},
|
|
40224
|
+
undo() {
|
|
40225
|
+
runEnd = null;
|
|
40226
|
+
return items.pop();
|
|
40227
|
+
},
|
|
40228
|
+
clear() {
|
|
40229
|
+
items.length = 0;
|
|
40230
|
+
runEnd = null;
|
|
40231
|
+
},
|
|
40232
|
+
get size() {
|
|
40233
|
+
return items.length;
|
|
40234
|
+
}
|
|
40235
|
+
};
|
|
40236
|
+
}
|
|
40237
|
+
__name(createUndoStack, "createUndoStack");
|
|
40238
|
+
|
|
40138
40239
|
// src/tui/mentions.ts
|
|
40139
40240
|
import { execFile as execFile2 } from "node:child_process";
|
|
40140
40241
|
import { readFileSync as readFileSync5, realpathSync as realpathSync2, statSync as statSync2 } from "node:fs";
|
|
@@ -41447,6 +41548,9 @@ __name(overrideMap, "overrideMap");
|
|
|
41447
41548
|
// src/tui/Composer.tsx
|
|
41448
41549
|
var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
|
|
41449
41550
|
var ESC_CLEAR_KEY = "escape-again-to-clear";
|
|
41551
|
+
var STASH_KEY = "draft-stash";
|
|
41552
|
+
var STASH_NOTICE_MS = 3e3;
|
|
41553
|
+
var STASH_RESTORED_NOTICE_MS = 5e3;
|
|
41450
41554
|
var ESC_CLEAR_WINDOW_MS = 800;
|
|
41451
41555
|
var ESC_CLEAR_NOTICE_MS = 1e3;
|
|
41452
41556
|
var REWIND_DOUBLE_ESC_MS = 800;
|
|
@@ -41677,6 +41781,7 @@ function Composer({
|
|
|
41677
41781
|
onClearedDraft,
|
|
41678
41782
|
onStepReasoningEffort,
|
|
41679
41783
|
onExternalEdit,
|
|
41784
|
+
onToggleThinking,
|
|
41680
41785
|
onEditPrevious,
|
|
41681
41786
|
draftToRestore = null,
|
|
41682
41787
|
onDraftRestored,
|
|
@@ -41688,6 +41793,7 @@ function Composer({
|
|
|
41688
41793
|
queuedEdit,
|
|
41689
41794
|
queuedHintCount,
|
|
41690
41795
|
onSendNow,
|
|
41796
|
+
onBackgroundCommand,
|
|
41691
41797
|
onStopAllAgents,
|
|
41692
41798
|
railFocused = false,
|
|
41693
41799
|
onCycleMode,
|
|
@@ -41787,6 +41893,7 @@ function Composer({
|
|
|
41787
41893
|
onDraftPresenceChange?.(hasDraft);
|
|
41788
41894
|
}, [attachments.length, onDraftPresenceChange, value]);
|
|
41789
41895
|
const commandSuggestions = plainText ? [] : matchSlashCommands(value, userCommands, builtins);
|
|
41896
|
+
const argumentHint = plainText ? void 0 : argumentHintFor(value, userCommands);
|
|
41790
41897
|
const activeMention = activeFileMention(value, cursor);
|
|
41791
41898
|
const fileSuggestions = activeMention ? matchMentionableFiles(activeMention.query, mentionCandidates) : [];
|
|
41792
41899
|
const suggestionKind = commandSuggestions.length > 0 ? "command" : fileSuggestions.length > 0 ? "file" : null;
|
|
@@ -41865,6 +41972,15 @@ function Composer({
|
|
|
41865
41972
|
else if (nearest.state === "suggested") setOverride(nearest, "armed");
|
|
41866
41973
|
else setOverride(nearest, "dropped");
|
|
41867
41974
|
}, "toggleNearestTrigger");
|
|
41975
|
+
const undoRef = (0, import_react40.useRef)(createUndoStack());
|
|
41976
|
+
const stashRef = (0, import_react40.useRef)(null);
|
|
41977
|
+
const recordUndo = (0, import_react40.useCallback)((after, typed) => {
|
|
41978
|
+
undoRef.current.record(
|
|
41979
|
+
{ value: valueRef.current, cursor: cursorRef.current, spans: spansRef.current },
|
|
41980
|
+
after,
|
|
41981
|
+
typed
|
|
41982
|
+
);
|
|
41983
|
+
}, []);
|
|
41868
41984
|
const editBuffer = (0, import_react40.useCallback)(
|
|
41869
41985
|
(nextValue, nextCursor = nextValue.length, origin = "typed") => {
|
|
41870
41986
|
verticalColumnRef.current = null;
|
|
@@ -41872,14 +41988,20 @@ function Composer({
|
|
|
41872
41988
|
setHistorySearch(null);
|
|
41873
41989
|
setHistoryIndex(-1);
|
|
41874
41990
|
const edit = diffEdit(valueRef.current, nextValue, cursorRef.current);
|
|
41991
|
+
const inserted = nextValue.slice(edit.start, edit.start + edit.insertLength);
|
|
41992
|
+
recordUndo(
|
|
41993
|
+
nextValue,
|
|
41994
|
+
origin === "typed" && edit.deleteEnd === edit.start && inserted.length > 0 ? inserted : null
|
|
41995
|
+
);
|
|
41875
41996
|
const spans = applyEdit(spansRef.current, edit, origin);
|
|
41876
41997
|
const overrides = shiftOverrides(overridesRef.current, edit);
|
|
41877
41998
|
setBuffer(nextValue, nextCursor, origin, spans);
|
|
41878
41999
|
overridesRef.current = overrides;
|
|
41879
42000
|
},
|
|
41880
|
-
[setBuffer, setHistoryIndex, setHistorySearch]
|
|
42001
|
+
[recordUndo, setBuffer, setHistoryIndex, setHistorySearch]
|
|
41881
42002
|
);
|
|
41882
42003
|
const reset = (0, import_react40.useCallback)(() => {
|
|
42004
|
+
undoRef.current.clear();
|
|
41883
42005
|
verticalColumnRef.current = null;
|
|
41884
42006
|
historyDraftRef.current = null;
|
|
41885
42007
|
setHistorySearch(null);
|
|
@@ -41974,20 +42096,52 @@ function Composer({
|
|
|
41974
42096
|
use_input_default(
|
|
41975
42097
|
(input, key) => {
|
|
41976
42098
|
if (disabled || hidden) return;
|
|
42099
|
+
const openExternalEditor = /* @__PURE__ */ __name((pressed) => {
|
|
42100
|
+
if (!onExternalEdit) {
|
|
42101
|
+
onNotice?.("External editor support is unavailable in this terminal.");
|
|
42102
|
+
return;
|
|
42103
|
+
}
|
|
42104
|
+
const seed = expandChips(valueRef.current, pasteStoreRef.current).trim();
|
|
42105
|
+
void onExternalEdit(seed, pressed).then((edited) => {
|
|
42106
|
+
let cleaned = edited.trimEnd();
|
|
42107
|
+
for (const attachment of attachmentsRef.current) {
|
|
42108
|
+
const chip = chipFor(attachment, idFor(attachment));
|
|
42109
|
+
if (!cleaned.includes(chip)) cleaned += `${cleaned ? " " : ""}${chip}`;
|
|
42110
|
+
}
|
|
42111
|
+
clearPastes();
|
|
42112
|
+
setHistoryIndex(-1);
|
|
42113
|
+
setHistorySearch(null);
|
|
42114
|
+
setSelectedIndex(0);
|
|
42115
|
+
historyDraftRef.current = null;
|
|
42116
|
+
verticalColumnRef.current = null;
|
|
42117
|
+
recordUndo(cleaned, null);
|
|
42118
|
+
setBuffer(cleaned, cleaned.length, "editor");
|
|
42119
|
+
}).catch((error) => {
|
|
42120
|
+
onNotice?.(
|
|
42121
|
+
// The editor module words its own refusals for a person ("set VISUAL or EDITOR…").
|
|
42122
|
+
error instanceof Error && error.name === "ExternalEditorError" ? `Cannot open your editor: ${error.message}.` : explainFailure(error, "Cannot open your editor.")
|
|
42123
|
+
);
|
|
42124
|
+
});
|
|
42125
|
+
}, "openExternalEditor");
|
|
41977
42126
|
const chordArmed = sendNowChordRef.current;
|
|
41978
42127
|
sendNowChordRef.current = false;
|
|
41979
|
-
if (
|
|
42128
|
+
if (isChordLead(input, key)) {
|
|
41980
42129
|
sendNowChordRef.current = true;
|
|
41981
42130
|
return;
|
|
41982
42131
|
}
|
|
41983
|
-
if (
|
|
42132
|
+
if (isAction("task:background", input, key) && onBackgroundCommand?.()) return;
|
|
42133
|
+
if (chordArmed && isChordAction("chat:sendNow", input, key) && onSendNow) {
|
|
41984
42134
|
onSendNow();
|
|
41985
42135
|
return;
|
|
41986
42136
|
}
|
|
41987
|
-
if (chordArmed &&
|
|
42137
|
+
if (chordArmed && isChordAction("chat:killAgents", input, key) && onStopAllAgents) {
|
|
41988
42138
|
onStopAllAgents();
|
|
41989
42139
|
return;
|
|
41990
42140
|
}
|
|
42141
|
+
if (chordArmed && isChordAction("chat:externalEditor", input, key)) {
|
|
42142
|
+
openExternalEditor(pressedKeyLabel("chat:externalEditor", input, key, true));
|
|
42143
|
+
return;
|
|
42144
|
+
}
|
|
41991
42145
|
if (queuedEdit) {
|
|
41992
42146
|
const empty = valueRef.current.length === 0 && attachmentsRef.current.length === 0;
|
|
41993
42147
|
if (empty && key.return && !key.shift && !key.meta) {
|
|
@@ -42042,7 +42196,7 @@ function Composer({
|
|
|
42042
42196
|
}
|
|
42043
42197
|
return false;
|
|
42044
42198
|
}, "acceptSuggestion");
|
|
42045
|
-
if (
|
|
42199
|
+
if (isAction("chat:recallQueued", input, key) && onRecallQueued) {
|
|
42046
42200
|
if (valueRef.current.length > 0 || attachmentsRef.current.length > 0) {
|
|
42047
42201
|
onNotice?.("Send or clear the current draft before recalling a queued message.");
|
|
42048
42202
|
return;
|
|
@@ -42051,11 +42205,11 @@ function Composer({
|
|
|
42051
42205
|
if (recalled) restoreDraft(recalled);
|
|
42052
42206
|
return;
|
|
42053
42207
|
}
|
|
42054
|
-
if (!hasLiveSuggestions && onStepReasoningEffort && (
|
|
42208
|
+
if (!hasLiveSuggestions && onStepReasoningEffort && isAction("chat:effortLower", input, key)) {
|
|
42055
42209
|
onStepReasoningEffort("lower");
|
|
42056
42210
|
return;
|
|
42057
42211
|
}
|
|
42058
|
-
if (!hasLiveSuggestions && onStepReasoningEffort && (
|
|
42212
|
+
if (!hasLiveSuggestions && onStepReasoningEffort && isAction("chat:effortRaise", input, key)) {
|
|
42059
42213
|
onStepReasoningEffort("raise");
|
|
42060
42214
|
return;
|
|
42061
42215
|
}
|
|
@@ -42086,9 +42240,20 @@ function Composer({
|
|
|
42086
42240
|
onlyTriggers: armed2.length > 0 && detection2.onlyTriggers && currentAttachments.length === 0
|
|
42087
42241
|
});
|
|
42088
42242
|
reset();
|
|
42243
|
+
const stashed = stashRef.current;
|
|
42244
|
+
if (stashed && !message.startsWith("/")) {
|
|
42245
|
+
stashRef.current = null;
|
|
42246
|
+
restoreDraft(stashed);
|
|
42247
|
+
onFooterNotice?.({
|
|
42248
|
+
key: STASH_KEY,
|
|
42249
|
+
text: "Draft restored",
|
|
42250
|
+
priority: "immediate",
|
|
42251
|
+
timeoutMs: STASH_RESTORED_NOTICE_MS
|
|
42252
|
+
});
|
|
42253
|
+
}
|
|
42089
42254
|
return true;
|
|
42090
42255
|
}, "submit");
|
|
42091
|
-
if (
|
|
42256
|
+
if (isAction("chat:newline", input, key) || input === "\n") {
|
|
42092
42257
|
const position2 = cursorRef.current;
|
|
42093
42258
|
editBuffer(
|
|
42094
42259
|
valueRef.current.slice(0, position2) + "\n" + valueRef.current.slice(position2),
|
|
@@ -42096,7 +42261,64 @@ function Composer({
|
|
|
42096
42261
|
);
|
|
42097
42262
|
return;
|
|
42098
42263
|
}
|
|
42099
|
-
if (
|
|
42264
|
+
if (isAction("chat:undo", input, key)) {
|
|
42265
|
+
const previous = undoRef.current.undo();
|
|
42266
|
+
if (!previous) return;
|
|
42267
|
+
verticalColumnRef.current = null;
|
|
42268
|
+
historyDraftRef.current = null;
|
|
42269
|
+
setHistorySearch(null);
|
|
42270
|
+
setHistoryIndex(-1);
|
|
42271
|
+
setSelectedIndex(0);
|
|
42272
|
+
setBuffer(previous.value, previous.cursor, "typed", previous.spans);
|
|
42273
|
+
return;
|
|
42274
|
+
}
|
|
42275
|
+
const typedDraft = /* @__PURE__ */ __name(() => {
|
|
42276
|
+
const text = expandChips(stripAttachmentChips(valueRef.current), pasteStoreRef.current);
|
|
42277
|
+
if (text.trim().length === 0 && attachmentsRef.current.length === 0) return void 0;
|
|
42278
|
+
return {
|
|
42279
|
+
text,
|
|
42280
|
+
...attachmentsRef.current.length ? { attachments: attachmentsRef.current } : {}
|
|
42281
|
+
};
|
|
42282
|
+
}, "typedDraft");
|
|
42283
|
+
if (isAction("chat:modelPicker", input, key) && !plainText) {
|
|
42284
|
+
const draft = typedDraft();
|
|
42285
|
+
onSubmit("/model", void 0, "submit", {
|
|
42286
|
+
source: "keybinding",
|
|
42287
|
+
...draft ? { draft } : {}
|
|
42288
|
+
});
|
|
42289
|
+
return;
|
|
42290
|
+
}
|
|
42291
|
+
if (isAction("chat:thinkingToggle", input, key) && !plainText) {
|
|
42292
|
+
onToggleThinking?.();
|
|
42293
|
+
return;
|
|
42294
|
+
}
|
|
42295
|
+
if (isAction("chat:stash", input, key) && historySearchRef.current === null && !plainText) {
|
|
42296
|
+
const empty = valueRef.current.trim().length === 0 && attachmentsRef.current.length === 0;
|
|
42297
|
+
if (empty) {
|
|
42298
|
+
const stashed = stashRef.current;
|
|
42299
|
+
if (!stashed) return;
|
|
42300
|
+
stashRef.current = null;
|
|
42301
|
+
onFooterNoticeRemove?.(STASH_KEY);
|
|
42302
|
+
restoreDraft(stashed);
|
|
42303
|
+
return;
|
|
42304
|
+
}
|
|
42305
|
+
const draft = expandChips(stripAttachmentChips(valueRef.current), pasteStoreRef.current);
|
|
42306
|
+
const earlier = stashRef.current;
|
|
42307
|
+
stashRef.current = {
|
|
42308
|
+
text: draft,
|
|
42309
|
+
...attachmentsRef.current.length ? { attachments: attachmentsRef.current } : {}
|
|
42310
|
+
};
|
|
42311
|
+
reset();
|
|
42312
|
+
if (earlier) restoreDraft(earlier);
|
|
42313
|
+
onFooterNotice?.({
|
|
42314
|
+
key: STASH_KEY,
|
|
42315
|
+
text: earlier ? `Swapped with the draft set aside \xB7 ${primaryKeyLabel("chat:stash")} to swap back` : `Draft set aside \xB7 ${primaryKeyLabel("chat:stash")} to bring it back`,
|
|
42316
|
+
priority: "immediate",
|
|
42317
|
+
timeoutMs: STASH_NOTICE_MS
|
|
42318
|
+
});
|
|
42319
|
+
return;
|
|
42320
|
+
}
|
|
42321
|
+
if (isAction("history:search", input, key) || historySearchRef.current !== null && isAction("historySearch:newer", input, key)) {
|
|
42100
42322
|
verticalColumnRef.current = null;
|
|
42101
42323
|
const browsedHistoryDraft = historyDraftRef.current;
|
|
42102
42324
|
historyDraftRef.current = null;
|
|
@@ -42116,7 +42338,7 @@ function Composer({
|
|
|
42116
42338
|
position: -1
|
|
42117
42339
|
};
|
|
42118
42340
|
}
|
|
42119
|
-
const position2 = input
|
|
42341
|
+
const position2 = isAction("history:search", input, key) ? Math.min(search.position + 1, search.matches.length - 1) : Math.max(search.position - 1, -1);
|
|
42120
42342
|
const next = { ...search, position: position2 };
|
|
42121
42343
|
setHistorySearch(next);
|
|
42122
42344
|
if (position2 < 0) setBuffer(next.draft.value, next.draft.cursor, "typed", next.draft.spans);
|
|
@@ -42135,17 +42357,17 @@ function Composer({
|
|
|
42135
42357
|
submit("submit");
|
|
42136
42358
|
return;
|
|
42137
42359
|
}
|
|
42138
|
-
if (
|
|
42360
|
+
if (isAction("chat:cycleMode", input, key)) {
|
|
42139
42361
|
onCycleMode?.();
|
|
42140
42362
|
return;
|
|
42141
42363
|
}
|
|
42142
|
-
if (key
|
|
42364
|
+
if (isAction("chat:queue", input, key)) {
|
|
42143
42365
|
if (plainText) return;
|
|
42144
42366
|
if (acceptSuggestion()) return;
|
|
42145
42367
|
submit("queue");
|
|
42146
42368
|
return;
|
|
42147
42369
|
}
|
|
42148
|
-
if (key
|
|
42370
|
+
if (isAction("chat:cancel", input, key)) {
|
|
42149
42371
|
if (escapeInterrupts) return;
|
|
42150
42372
|
const activeSearch = historySearchRef.current;
|
|
42151
42373
|
if (activeSearch) {
|
|
@@ -42189,7 +42411,7 @@ function Composer({
|
|
|
42189
42411
|
});
|
|
42190
42412
|
return;
|
|
42191
42413
|
}
|
|
42192
|
-
if (
|
|
42414
|
+
if (isAction("edit:deleteWordBack", input, key) && key.backspace) {
|
|
42193
42415
|
const source = valueRef.current;
|
|
42194
42416
|
const position2 = cursorRef.current;
|
|
42195
42417
|
const start = previousWordBoundary(source, position2);
|
|
@@ -42223,20 +42445,20 @@ function Composer({
|
|
|
42223
42445
|
editBuffer(valueRef.current.slice(0, previous) + valueRef.current.slice(position2), previous);
|
|
42224
42446
|
return;
|
|
42225
42447
|
}
|
|
42226
|
-
if (
|
|
42448
|
+
if (isAction("edit:deleteForward", input, key)) {
|
|
42227
42449
|
const position2 = cursorRef.current;
|
|
42228
42450
|
const next = nextGraphemeBoundary(valueRef.current, position2);
|
|
42229
42451
|
editBuffer(valueRef.current.slice(0, position2) + valueRef.current.slice(next), position2);
|
|
42230
42452
|
return;
|
|
42231
42453
|
}
|
|
42232
|
-
if (
|
|
42454
|
+
if (isAction("edit:wordLeft", input, key)) {
|
|
42233
42455
|
verticalColumnRef.current = null;
|
|
42234
42456
|
const previous = previousWordBoundary(valueRef.current, cursorRef.current);
|
|
42235
42457
|
cursorRef.current = previous;
|
|
42236
42458
|
setCursorState(previous);
|
|
42237
42459
|
return;
|
|
42238
42460
|
}
|
|
42239
|
-
if (
|
|
42461
|
+
if (isAction("edit:wordRight", input, key)) {
|
|
42240
42462
|
verticalColumnRef.current = null;
|
|
42241
42463
|
const next = nextWordBoundary(valueRef.current, cursorRef.current);
|
|
42242
42464
|
cursorRef.current = next;
|
|
@@ -42247,14 +42469,14 @@ function Composer({
|
|
|
42247
42469
|
onOpenAgents();
|
|
42248
42470
|
return;
|
|
42249
42471
|
}
|
|
42250
|
-
if (
|
|
42472
|
+
if (isAction("edit:charLeft", input, key)) {
|
|
42251
42473
|
verticalColumnRef.current = null;
|
|
42252
42474
|
const previous = previousGraphemeBoundary(valueRef.current, cursorRef.current);
|
|
42253
42475
|
cursorRef.current = previous;
|
|
42254
42476
|
setCursorState(previous);
|
|
42255
42477
|
return;
|
|
42256
42478
|
}
|
|
42257
|
-
if (
|
|
42479
|
+
if (isAction("edit:charRight", input, key)) {
|
|
42258
42480
|
verticalColumnRef.current = null;
|
|
42259
42481
|
const next = nextGraphemeBoundary(valueRef.current, cursorRef.current);
|
|
42260
42482
|
cursorRef.current = next;
|
|
@@ -42273,21 +42495,21 @@ function Composer({
|
|
|
42273
42495
|
setSelectedIndex((index) => Math.min(liveSuggestionCount - 1, index + suggestionWindow));
|
|
42274
42496
|
return;
|
|
42275
42497
|
}
|
|
42276
|
-
if (
|
|
42498
|
+
if (isAction("edit:lineStart", input, key)) {
|
|
42277
42499
|
verticalColumnRef.current = null;
|
|
42278
42500
|
const start = lineStart(valueRef.current, cursorRef.current);
|
|
42279
42501
|
cursorRef.current = start;
|
|
42280
42502
|
setCursorState(start);
|
|
42281
42503
|
return;
|
|
42282
42504
|
}
|
|
42283
|
-
if (
|
|
42505
|
+
if (isAction("edit:lineEnd", input, key)) {
|
|
42284
42506
|
verticalColumnRef.current = null;
|
|
42285
42507
|
const end = lineEnd(valueRef.current, cursorRef.current);
|
|
42286
42508
|
cursorRef.current = end;
|
|
42287
42509
|
setCursorState(end);
|
|
42288
42510
|
return;
|
|
42289
42511
|
}
|
|
42290
|
-
if (
|
|
42512
|
+
if (isAction("edit:linePrevious", input, key)) {
|
|
42291
42513
|
if (hasLiveSuggestions) {
|
|
42292
42514
|
setSelectedIndex((i) => Math.max(0, i - 1));
|
|
42293
42515
|
return;
|
|
@@ -42318,7 +42540,7 @@ function Composer({
|
|
|
42318
42540
|
setBuffer(history[history.length - 1 - next] ?? "", void 0, "recalled");
|
|
42319
42541
|
return;
|
|
42320
42542
|
}
|
|
42321
|
-
if (
|
|
42543
|
+
if (isAction("edit:lineNext", input, key)) {
|
|
42322
42544
|
if (hasLiveSuggestions) {
|
|
42323
42545
|
setSelectedIndex((i) => Math.min(liveSuggestionCount - 1, i + 1));
|
|
42324
42546
|
return;
|
|
@@ -42354,34 +42576,11 @@ function Composer({
|
|
|
42354
42576
|
setBuffer(history[history.length - 1 - next] ?? "", void 0, "recalled");
|
|
42355
42577
|
return;
|
|
42356
42578
|
}
|
|
42357
|
-
if (
|
|
42358
|
-
|
|
42359
|
-
onNotice?.("External editor support is unavailable in this terminal.");
|
|
42360
|
-
return;
|
|
42361
|
-
}
|
|
42362
|
-
const seed = expandChips(valueRef.current, pasteStoreRef.current).trim();
|
|
42363
|
-
void onExternalEdit(seed).then((edited) => {
|
|
42364
|
-
let cleaned = edited.trimEnd();
|
|
42365
|
-
for (const attachment of attachmentsRef.current) {
|
|
42366
|
-
const chip = chipFor(attachment, idFor(attachment));
|
|
42367
|
-
if (!cleaned.includes(chip)) cleaned += `${cleaned ? " " : ""}${chip}`;
|
|
42368
|
-
}
|
|
42369
|
-
clearPastes();
|
|
42370
|
-
setHistoryIndex(-1);
|
|
42371
|
-
setHistorySearch(null);
|
|
42372
|
-
setSelectedIndex(0);
|
|
42373
|
-
historyDraftRef.current = null;
|
|
42374
|
-
verticalColumnRef.current = null;
|
|
42375
|
-
setBuffer(cleaned, cleaned.length, "editor");
|
|
42376
|
-
}).catch((error) => {
|
|
42377
|
-
onNotice?.(
|
|
42378
|
-
// The editor module words its own refusals for a person ("set VISUAL or EDITOR…").
|
|
42379
|
-
error instanceof Error && error.name === "ExternalEditorError" ? `Cannot open your editor: ${error.message}.` : explainFailure(error, "Cannot open your editor.")
|
|
42380
|
-
);
|
|
42381
|
-
});
|
|
42579
|
+
if (isAction("chat:externalEditor", input, key)) {
|
|
42580
|
+
openExternalEditor(pressedKeyLabel("chat:externalEditor", input, key));
|
|
42382
42581
|
return;
|
|
42383
42582
|
}
|
|
42384
|
-
if ((
|
|
42583
|
+
if (isAction("chat:imagePaste", input, key)) {
|
|
42385
42584
|
if (plainText) {
|
|
42386
42585
|
onNotice?.(
|
|
42387
42586
|
"Messages to a child accept text. Paste text using the terminal paste command."
|
|
@@ -42405,7 +42604,7 @@ function Composer({
|
|
|
42405
42604
|
}
|
|
42406
42605
|
return;
|
|
42407
42606
|
}
|
|
42408
|
-
if (
|
|
42607
|
+
if (isAction("edit:deleteWordBack", input, key)) {
|
|
42409
42608
|
const source = valueRef.current;
|
|
42410
42609
|
const position2 = cursorRef.current;
|
|
42411
42610
|
const start = previousWordBoundary(source, position2);
|
|
@@ -42414,21 +42613,21 @@ function Composer({
|
|
|
42414
42613
|
editBuffer(result.value, result.cursor);
|
|
42415
42614
|
return;
|
|
42416
42615
|
}
|
|
42417
|
-
if (
|
|
42616
|
+
if (isAction("edit:deleteToLineStart", input, key)) {
|
|
42418
42617
|
const position2 = cursorRef.current;
|
|
42419
42618
|
const start = lineStart(valueRef.current, position2);
|
|
42420
42619
|
if (start < position2) killBufferRef.current = valueRef.current.slice(start, position2);
|
|
42421
42620
|
editBuffer(valueRef.current.slice(0, start) + valueRef.current.slice(position2), start);
|
|
42422
42621
|
return;
|
|
42423
42622
|
}
|
|
42424
|
-
if (
|
|
42623
|
+
if (isAction("edit:deleteToLineEnd", input, key)) {
|
|
42425
42624
|
const position2 = cursorRef.current;
|
|
42426
42625
|
const end = lineEnd(valueRef.current, position2);
|
|
42427
42626
|
if (position2 < end) killBufferRef.current = valueRef.current.slice(position2, end);
|
|
42428
42627
|
editBuffer(valueRef.current.slice(0, position2) + valueRef.current.slice(end), position2);
|
|
42429
42628
|
return;
|
|
42430
42629
|
}
|
|
42431
|
-
if (
|
|
42630
|
+
if (isAction("edit:deleteWordForward", input, key)) {
|
|
42432
42631
|
const source = valueRef.current;
|
|
42433
42632
|
const position2 = cursorRef.current;
|
|
42434
42633
|
const end = nextWordBoundary(source, position2);
|
|
@@ -42437,7 +42636,7 @@ function Composer({
|
|
|
42437
42636
|
editBuffer(result.value, result.cursor);
|
|
42438
42637
|
return;
|
|
42439
42638
|
}
|
|
42440
|
-
if (
|
|
42639
|
+
if (isAction("edit:yank", input, key)) {
|
|
42441
42640
|
const killed = killBufferRef.current;
|
|
42442
42641
|
if (killed.length === 0) return;
|
|
42443
42642
|
const position2 = cursorRef.current;
|
|
@@ -42448,7 +42647,7 @@ function Composer({
|
|
|
42448
42647
|
);
|
|
42449
42648
|
return;
|
|
42450
42649
|
}
|
|
42451
|
-
if (
|
|
42650
|
+
if (isAction("chat:triggerToggle", input, key)) {
|
|
42452
42651
|
toggleNearestTrigger();
|
|
42453
42652
|
return;
|
|
42454
42653
|
}
|
|
@@ -42535,6 +42734,7 @@ function Composer({
|
|
|
42535
42734
|
renderSegments(beforeSegments),
|
|
42536
42735
|
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { color: theme.border.focus, children: "\u258F" }),
|
|
42537
42736
|
renderSegments(afterSegments),
|
|
42737
|
+
argumentHint ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { color: theme.text.muted, children: argumentHint }) : null,
|
|
42538
42738
|
displayValue.trailingEllipsis ? " \u2026" : ""
|
|
42539
42739
|
] }) })
|
|
42540
42740
|
] }),
|
|
@@ -42898,6 +43098,13 @@ __name(wrapWords2, "wrapWords");
|
|
|
42898
43098
|
// src/tui/LiveActivity.tsx
|
|
42899
43099
|
var import_react42 = __toESM(require_react(), 1);
|
|
42900
43100
|
|
|
43101
|
+
// src/tui/foreground-handoff.ts
|
|
43102
|
+
function backgroundHint(env3 = process.env) {
|
|
43103
|
+
const inTmux = env3.TMUX !== void 0 && env3.TMUX !== "";
|
|
43104
|
+
return inTmux ? "(ctrl+b ctrl+b (twice) to run in background)" : "(ctrl+b to run in background)";
|
|
43105
|
+
}
|
|
43106
|
+
__name(backgroundHint, "backgroundHint");
|
|
43107
|
+
|
|
42901
43108
|
// src/tui/stall-colour.ts
|
|
42902
43109
|
var STALL_START_MS = 1e4;
|
|
42903
43110
|
var STALL_FULL_MS = 2e4;
|
|
@@ -43092,13 +43299,16 @@ function LiveActivity({
|
|
|
43092
43299
|
/* @__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
43300
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: terminalDisplayText(t.label) })
|
|
43094
43301
|
] }),
|
|
43095
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.
|
|
43096
|
-
|
|
43097
|
-
|
|
43098
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.
|
|
43099
|
-
|
|
43100
|
-
|
|
43101
|
-
|
|
43302
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Box_default, { flexDirection: "column", paddingLeft: RESULT_GUTTER_INDENT, children: [
|
|
43303
|
+
rows.map((row, i) => (
|
|
43304
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: these rows hold no state of their own.
|
|
43305
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
43306
|
+
/* @__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" : " " }) }),
|
|
43307
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { color: shellToneColor(row.tone), wrap: "truncate-end", children: terminalDisplayText(row.text) })
|
|
43308
|
+
] }, `r-${i}`)
|
|
43309
|
+
)),
|
|
43310
|
+
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
|
|
43311
|
+
] })
|
|
43102
43312
|
] }, t.id);
|
|
43103
43313
|
}
|
|
43104
43314
|
if (t.queued) return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QueuedToolRow, { tool: t }, t.id);
|
|
@@ -43210,7 +43420,7 @@ function holdText(held) {
|
|
|
43210
43420
|
if (held.source === "operator-interrupt") {
|
|
43211
43421
|
return "Held after you stopped the reply \xB7 your next message runs first, then these";
|
|
43212
43422
|
}
|
|
43213
|
-
if (held.outcome === "paused") return "
|
|
43423
|
+
if (held.outcome === "paused") return "Waiting for the paused reply to continue, then these run";
|
|
43214
43424
|
return `Paused after the ${held.outcome === "failed" ? "failed" : "stopped"} reply \xB7 send a message to run them`;
|
|
43215
43425
|
}
|
|
43216
43426
|
__name(holdText, "holdText");
|
|
@@ -45729,9 +45939,47 @@ function QuestionDialog({ question, columns, onAnswer }) {
|
|
|
45729
45939
|
}
|
|
45730
45940
|
__name(QuestionDialog, "QuestionDialog");
|
|
45731
45941
|
|
|
45942
|
+
// src/tui/resume-picker-state.ts
|
|
45943
|
+
function filterConversations(conversations, query) {
|
|
45944
|
+
const words = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
45945
|
+
if (words.length === 0) return conversations;
|
|
45946
|
+
return conversations.filter((conversation) => {
|
|
45947
|
+
const haystack = [conversation.title, conversation.firstPrompt, conversation.preview].filter((part) => typeof part === "string").join("\n").toLowerCase();
|
|
45948
|
+
return words.every((word) => haystack.includes(word));
|
|
45949
|
+
});
|
|
45950
|
+
}
|
|
45951
|
+
__name(filterConversations, "filterConversations");
|
|
45952
|
+
function openingLines(firstPrompt, lines = 3, width = 200) {
|
|
45953
|
+
if (!firstPrompt) return [];
|
|
45954
|
+
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);
|
|
45955
|
+
}
|
|
45956
|
+
__name(openingLines, "openingLines");
|
|
45957
|
+
function editLine(text, key) {
|
|
45958
|
+
if (key.backspace || key.delete) return Array.from(text).slice(0, -1).join("");
|
|
45959
|
+
if (key.ctrl || key.meta || key.tab || key.return || key.escape) return null;
|
|
45960
|
+
if (key.upArrow || key.downArrow || key.leftArrow || key.rightArrow || key.pageUp || key.pageDown || key.home || key.end)
|
|
45961
|
+
return null;
|
|
45962
|
+
const printable2 = key.input.replace(/[\u0000-\u001f\u007f]/g, "");
|
|
45963
|
+
if (printable2.length === 0) return null;
|
|
45964
|
+
return text + printable2;
|
|
45965
|
+
}
|
|
45966
|
+
__name(editLine, "editLine");
|
|
45967
|
+
function resumeScopeLabel(scope) {
|
|
45968
|
+
return scope === "all" ? "All folders" : "This folder";
|
|
45969
|
+
}
|
|
45970
|
+
__name(resumeScopeLabel, "resumeScopeLabel");
|
|
45971
|
+
|
|
45732
45972
|
// src/tui/ResumePicker.tsx
|
|
45733
45973
|
var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
|
|
45734
|
-
function ResumePicker({
|
|
45974
|
+
function ResumePicker({
|
|
45975
|
+
conversations,
|
|
45976
|
+
selected,
|
|
45977
|
+
mode = "resume",
|
|
45978
|
+
query = "",
|
|
45979
|
+
scope = "folder",
|
|
45980
|
+
renaming = null,
|
|
45981
|
+
notice
|
|
45982
|
+
}) {
|
|
45735
45983
|
const { stdout } = use_stdout_default();
|
|
45736
45984
|
const showPreview = (stdout.rows ?? 24) >= 20;
|
|
45737
45985
|
const { start, items: visible } = selectionWindow(conversations, selected);
|
|
@@ -45744,6 +45992,19 @@ function ResumePicker({ conversations, selected, mode = "resume" }) {
|
|
|
45744
45992
|
conversations.length
|
|
45745
45993
|
] })
|
|
45746
45994
|
] }),
|
|
45995
|
+
renaming !== null ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.primary, wrap: "truncate-end", children: [
|
|
45996
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.accent.user, children: "Name: " }),
|
|
45997
|
+
renaming,
|
|
45998
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: "\u258F" })
|
|
45999
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.primary, wrap: "truncate-end", children: [
|
|
46000
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.accent.user, children: "Search: " }),
|
|
46001
|
+
query.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
46002
|
+
query,
|
|
46003
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: "\u258F" })
|
|
46004
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: "type to search" })
|
|
46005
|
+
] }),
|
|
46006
|
+
mode === "resume" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, children: resumeScopeLabel(scope) }),
|
|
46007
|
+
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
46008
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box_default, { flexDirection: "column", paddingTop: 1, children: visible.map((c, visibleIndex) => {
|
|
45748
46009
|
const index = start + visibleIndex;
|
|
45749
46010
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Box_default, { children: [
|
|
@@ -45757,6 +46018,10 @@ function ResumePicker({ conversations, selected, mode = "resume" }) {
|
|
|
45757
46018
|
children: c.named ? `"${displayConversationTitle(c.title)}"` : displayConversationTitle(c.title)
|
|
45758
46019
|
}
|
|
45759
46020
|
) }),
|
|
46021
|
+
c.folder !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.muted, children: [
|
|
46022
|
+
" ",
|
|
46023
|
+
c.folder
|
|
46024
|
+
] }),
|
|
45760
46025
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { color: theme.text.muted, children: [
|
|
45761
46026
|
" ",
|
|
45762
46027
|
relativeTime(c.updatedAt)
|
|
@@ -45764,15 +46029,38 @@ function ResumePicker({ conversations, selected, mode = "resume" }) {
|
|
|
45764
46029
|
] }, c.id);
|
|
45765
46030
|
}) }),
|
|
45766
46031
|
showPreview && conversations[selected] && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Box_default, { flexDirection: "column", paddingTop: 1, children: [
|
|
46032
|
+
openingLines(conversations[selected]?.firstPrompt).map((line, lineIndex) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
46033
|
+
Text,
|
|
46034
|
+
{
|
|
46035
|
+
color: theme.text.secondary,
|
|
46036
|
+
wrap: "truncate-end",
|
|
46037
|
+
children: lineIndex === 0 ? `Started with: ${line}` : ` ${line}`
|
|
46038
|
+
},
|
|
46039
|
+
lineIndex
|
|
46040
|
+
)),
|
|
45767
46041
|
/* @__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
46042
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: plural(conversations[selected]?.count ?? 0, "message") })
|
|
45769
46043
|
] }),
|
|
46044
|
+
notice !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { color: theme.status.warn, wrap: "wrap", children: notice }),
|
|
45770
46045
|
/* @__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
|
-
[
|
|
46046
|
+
renaming !== null ? [
|
|
46047
|
+
{ text: "enter save", rank: 5 },
|
|
46048
|
+
{ text: "esc cancel", short: "esc", rank: 5 }
|
|
46049
|
+
] : [
|
|
45772
46050
|
{ text: "\u2191\u2193 select", rank: 5 },
|
|
46051
|
+
{ text: `enter ${mode}`, rank: 5 },
|
|
46052
|
+
...mode === "resume" ? [
|
|
46053
|
+
{
|
|
46054
|
+
text: scope === "all" ? "ctrl+a this folder" : "ctrl+a all folders",
|
|
46055
|
+
short: "ctrl+a",
|
|
46056
|
+
rank: 3
|
|
46057
|
+
},
|
|
46058
|
+
// Outlasts the folder switch in a narrow terminal, and is never
|
|
46059
|
+
// cut down to a bare key: "ctrl+r" alone does not say what it does.
|
|
46060
|
+
{ text: "ctrl+r rename", short: "ctrl+r name", rank: 4 }
|
|
46061
|
+
] : [],
|
|
45773
46062
|
{ text: "PgUp/PgDn jump", rank: 1 },
|
|
45774
46063
|
{ text: "Home/End", rank: 1 },
|
|
45775
|
-
{ text: `enter ${mode}`, rank: 5 },
|
|
45776
46064
|
{ text: "esc cancel", short: "esc", rank: 5 }
|
|
45777
46065
|
],
|
|
45778
46066
|
boxedHintWidth(stdout.columns)
|
|
@@ -46585,6 +46873,7 @@ function modeGlyph(mode) {
|
|
|
46585
46873
|
}
|
|
46586
46874
|
__name(modeGlyph, "modeGlyph");
|
|
46587
46875
|
var QUIET_MODE_HINT = "shift+tab to cycle";
|
|
46876
|
+
var QUIET_SANDBOX_HINT = "sandbox commands run unasked \xB7 shift+tab to cycle";
|
|
46588
46877
|
var CYCLE_SUFFIX = " (shift+tab to cycle)";
|
|
46589
46878
|
var INTERRUPT_HINT = "esc to interrupt";
|
|
46590
46879
|
var MANAGE_HINT = "\u2193 to manage";
|
|
@@ -46625,6 +46914,7 @@ function StatusBar({
|
|
|
46625
46914
|
dialogOpen = false,
|
|
46626
46915
|
permissionMode,
|
|
46627
46916
|
canCycleMode,
|
|
46917
|
+
sandboxShell = false,
|
|
46628
46918
|
composerMounted = true,
|
|
46629
46919
|
restingHint = true,
|
|
46630
46920
|
shellCount = 0,
|
|
@@ -46659,7 +46949,7 @@ function StatusBar({
|
|
|
46659
46949
|
notice: notice?.text ?? null,
|
|
46660
46950
|
ambient: ambient?.text ?? null,
|
|
46661
46951
|
goal,
|
|
46662
|
-
modeLabel: activeMode ? `${activeMode.icon} ${activeMode.label} on` : composerMounted && !dialogOpen && restingHint && !working && nothingElse ? QUIET_MODE_HINT : "",
|
|
46952
|
+
modeLabel: activeMode ? `${activeMode.icon} ${activeMode.label} on` : composerMounted && !dialogOpen && restingHint && !working && nothingElse ? sandboxShell ? QUIET_SANDBOX_HINT : QUIET_MODE_HINT : "",
|
|
46663
46953
|
// The cycle key is dropped as soon as a background task is on
|
|
46664
46954
|
// the row: the pill is what the row is about then.
|
|
46665
46955
|
cycleSuffix: activeMode && canCycleMode && composerMounted && !dialogOpen && shellCount + monitorCount === 0 ? CYCLE_SUFFIX : null,
|
|
@@ -46812,7 +47102,7 @@ function fitStatusLine(input) {
|
|
|
46812
47102
|
if (over()) effort = null;
|
|
46813
47103
|
if (over()) shells = null;
|
|
46814
47104
|
if (over()) pr = null;
|
|
46815
|
-
if (over() && mode === QUIET_MODE_HINT) mode = null;
|
|
47105
|
+
if (over() && (mode === QUIET_MODE_HINT || mode === QUIET_SANDBOX_HINT)) mode = null;
|
|
46816
47106
|
if (over() && mode) {
|
|
46817
47107
|
const whole = mode;
|
|
46818
47108
|
mode = null;
|
|
@@ -47327,8 +47617,27 @@ function countOf(count2, one, many) {
|
|
|
47327
47617
|
return `${count2} ${count2 === 1 ? one : many}`;
|
|
47328
47618
|
}
|
|
47329
47619
|
__name(countOf, "countOf");
|
|
47620
|
+
function shownToolServers(grants) {
|
|
47621
|
+
return (grants?.toolServers ?? []).slice(0, MAX_SHOWN_GRANT_RULES);
|
|
47622
|
+
}
|
|
47623
|
+
__name(shownToolServers, "shownToolServers");
|
|
47624
|
+
function wrapHard(text, width) {
|
|
47625
|
+
const rows = [];
|
|
47626
|
+
let row = "";
|
|
47627
|
+
for (const char of text) {
|
|
47628
|
+
if (row !== "" && stringWidth(row + char) > width) {
|
|
47629
|
+
rows.push(row);
|
|
47630
|
+
row = "";
|
|
47631
|
+
}
|
|
47632
|
+
row += char;
|
|
47633
|
+
}
|
|
47634
|
+
rows.push(row);
|
|
47635
|
+
return rows;
|
|
47636
|
+
}
|
|
47637
|
+
__name(wrapHard, "wrapHard");
|
|
47330
47638
|
function trustGrantLines(grants, columns) {
|
|
47331
|
-
if (!grants || grants.allowRules.length === 0 && grants.directories.length === 0
|
|
47639
|
+
if (!grants || grants.allowRules.length === 0 && grants.directories.length === 0 && grants.toolServers.length === 0)
|
|
47640
|
+
return [];
|
|
47332
47641
|
const room = trustPathWidth(columns);
|
|
47333
47642
|
const lines = [];
|
|
47334
47643
|
if (grants.allowRules.length > 0) {
|
|
@@ -47351,6 +47660,18 @@ function trustGrantLines(grants, columns) {
|
|
|
47351
47660
|
const more = grants.directories.length - MAX_SHOWN_GRANT_RULES;
|
|
47352
47661
|
if (more > 0) lines.push(` and ${more} more`);
|
|
47353
47662
|
}
|
|
47663
|
+
if (grants.toolServers.length > 0) {
|
|
47664
|
+
lines.push(
|
|
47665
|
+
`This folder starts ${countOf(grants.toolServers.length, "tool server", "tool servers")}:`
|
|
47666
|
+
);
|
|
47667
|
+
for (const server of shownToolServers(grants)) {
|
|
47668
|
+
lines.push(
|
|
47669
|
+
...wrapHard(`${server.name}: ${server.runs}`, Math.max(1, room - 2)).map((l) => ` ${l}`)
|
|
47670
|
+
);
|
|
47671
|
+
}
|
|
47672
|
+
const more = grants.toolServers.length - MAX_SHOWN_GRANT_RULES;
|
|
47673
|
+
if (more > 0) lines.push(` and ${more} more, which stay waiting for your approval`);
|
|
47674
|
+
}
|
|
47354
47675
|
lines.push(...wrapBalancedText(GRANTS_NOTICE, room));
|
|
47355
47676
|
return lines;
|
|
47356
47677
|
}
|
|
@@ -47892,6 +48213,7 @@ async function collectContextView(sources) {
|
|
|
47892
48213
|
breakdown,
|
|
47893
48214
|
windowSource: source,
|
|
47894
48215
|
autoCompact: sources.autoCompact,
|
|
48216
|
+
...sources.cacheLifetime ? { cacheLifetime: sources.cacheLifetime } : {},
|
|
47895
48217
|
approximate: sources.sizeOutOfDate === true || !sources.context.measured,
|
|
47896
48218
|
...sources.model ? { model: sources.model } : {},
|
|
47897
48219
|
terminalColumns: sources.terminalColumns,
|
|
@@ -47923,6 +48245,7 @@ async function buildContextRow(input) {
|
|
|
47923
48245
|
terminalColumns: input.columns,
|
|
47924
48246
|
...input.model ? { model: input.model } : {},
|
|
47925
48247
|
autoCompact: true,
|
|
48248
|
+
...providerOffersCacheLifetime(input.providerId) ? { cacheLifetime: describeCacheLifetime(promptCacheTtl()) } : {},
|
|
47926
48249
|
...inventory?.systemPrompt ? { systemPrompt: inventory.systemPrompt } : {},
|
|
47927
48250
|
tools: inventory?.tools ?? [],
|
|
47928
48251
|
messages: input.messages,
|
|
@@ -48216,17 +48539,17 @@ function parseExternalEditorCommand(raw) {
|
|
|
48216
48539
|
return result;
|
|
48217
48540
|
}
|
|
48218
48541
|
__name(parseExternalEditorCommand, "parseExternalEditorCommand");
|
|
48219
|
-
function resolveExternalEditorCommand(env3 = process.env) {
|
|
48542
|
+
function resolveExternalEditorCommand(env3 = process.env, pressed = "the editor key") {
|
|
48220
48543
|
const visual = env3.VISUAL?.trim();
|
|
48221
48544
|
const editor = env3.EDITOR?.trim();
|
|
48222
48545
|
const raw = visual || editor;
|
|
48223
|
-
if (!raw) throw new ExternalEditorError(
|
|
48546
|
+
if (!raw) throw new ExternalEditorError(`set VISUAL or EDITOR before pressing ${pressed}`);
|
|
48224
48547
|
return parseExternalEditorCommand(raw);
|
|
48225
48548
|
}
|
|
48226
48549
|
__name(resolveExternalEditorCommand, "resolveExternalEditorCommand");
|
|
48227
48550
|
async function editDraftInExternalEditor(seed, options) {
|
|
48228
48551
|
options.signal?.throwIfAborted();
|
|
48229
|
-
const command = resolveExternalEditorCommand(options.env);
|
|
48552
|
+
const command = resolveExternalEditorCommand(options.env, options.pressed);
|
|
48230
48553
|
const directory = await mkdtemp(join3(options.temporaryRoot ?? tmpdir2(), "namzu-editor-"));
|
|
48231
48554
|
const draftPath = join3(directory, "draft.md");
|
|
48232
48555
|
let edited;
|
|
@@ -48364,7 +48687,7 @@ __name(monitorEndRow, "monitorEndRow");
|
|
|
48364
48687
|
|
|
48365
48688
|
// src/tui/launch-settings.ts
|
|
48366
48689
|
function choosesModel(settings) {
|
|
48367
|
-
return Boolean(settings?.provider || settings?.model);
|
|
48690
|
+
return Boolean(settings?.provider || settings?.model || settings?.fallbackModels?.length);
|
|
48368
48691
|
}
|
|
48369
48692
|
__name(choosesModel, "choosesModel");
|
|
48370
48693
|
function launchPreferences(saved, settings) {
|
|
@@ -48373,7 +48696,8 @@ function launchPreferences(saved, settings) {
|
|
|
48373
48696
|
provider: settings.provider ?? null,
|
|
48374
48697
|
model: settings.model ?? null
|
|
48375
48698
|
});
|
|
48376
|
-
|
|
48699
|
+
const chained = applyFallbackFlag(applied, settings.fallbackModels ?? []);
|
|
48700
|
+
return chained.providers.length > 0 ? chained : null;
|
|
48377
48701
|
}
|
|
48378
48702
|
__name(launchPreferences, "launchPreferences");
|
|
48379
48703
|
|
|
@@ -48518,6 +48842,39 @@ function isRepeatedNotice(last, candidate) {
|
|
|
48518
48842
|
}
|
|
48519
48843
|
__name(isRepeatedNotice, "isRepeatedNotice");
|
|
48520
48844
|
|
|
48845
|
+
// src/tui/pause-auto-resume.ts
|
|
48846
|
+
var AUTO_RESUME_DELAYS_MS = [15e3, 3e4, 6e4, 12e4, 3e5];
|
|
48847
|
+
function autoResumeDelayMs(attempt) {
|
|
48848
|
+
const last = AUTO_RESUME_DELAYS_MS.length - 1;
|
|
48849
|
+
const index = Math.min(Math.max(Math.trunc(attempt), 1) - 1, last);
|
|
48850
|
+
return AUTO_RESUME_DELAYS_MS[index] ?? 3e5;
|
|
48851
|
+
}
|
|
48852
|
+
__name(autoResumeDelayMs, "autoResumeDelayMs");
|
|
48853
|
+
var REAL_TIMERS = {
|
|
48854
|
+
setTimer: /* @__PURE__ */ __name((run4, ms) => setTimeout(run4, ms), "setTimer"),
|
|
48855
|
+
clearTimer: /* @__PURE__ */ __name((handle) => clearTimeout(handle), "clearTimer")
|
|
48856
|
+
};
|
|
48857
|
+
function startAutoResume(options) {
|
|
48858
|
+
const timers = options.timers ?? REAL_TIMERS;
|
|
48859
|
+
const recheckMs = options.recheckMs ?? 1e3;
|
|
48860
|
+
let cancelled = false;
|
|
48861
|
+
let handle;
|
|
48862
|
+
const attempt = /* @__PURE__ */ __name(() => {
|
|
48863
|
+
if (cancelled) return;
|
|
48864
|
+
if (!options.ready()) {
|
|
48865
|
+
handle = timers.setTimer(attempt, recheckMs);
|
|
48866
|
+
return;
|
|
48867
|
+
}
|
|
48868
|
+
options.resume();
|
|
48869
|
+
}, "attempt");
|
|
48870
|
+
handle = timers.setTimer(attempt, Math.max(0, options.delayMs));
|
|
48871
|
+
return () => {
|
|
48872
|
+
cancelled = true;
|
|
48873
|
+
timers.clearTimer(handle);
|
|
48874
|
+
};
|
|
48875
|
+
}
|
|
48876
|
+
__name(startAutoResume, "startAutoResume");
|
|
48877
|
+
|
|
48521
48878
|
// src/tui/per-call-review.ts
|
|
48522
48879
|
var REASON_MAX_CHARS = 500;
|
|
48523
48880
|
function cleanReason(text) {
|
|
@@ -51255,6 +51612,26 @@ var SourceDeliveryView = class {
|
|
|
51255
51612
|
}
|
|
51256
51613
|
};
|
|
51257
51614
|
|
|
51615
|
+
// src/tui/self-mending-pause-row.ts
|
|
51616
|
+
var SelfMendingPauseRow = class {
|
|
51617
|
+
static {
|
|
51618
|
+
__name(this, "SelfMendingPauseRow");
|
|
51619
|
+
}
|
|
51620
|
+
#id = null;
|
|
51621
|
+
/** The row to rewrite, or null when this try must push a new one. */
|
|
51622
|
+
reusable(attempt, rowIds) {
|
|
51623
|
+
if (this.#id === null || attempt <= 0) return null;
|
|
51624
|
+
return rowIds.has(this.#id) ? this.#id : null;
|
|
51625
|
+
}
|
|
51626
|
+
remember(id) {
|
|
51627
|
+
this.#id = id;
|
|
51628
|
+
}
|
|
51629
|
+
/** The run ended: the counter reset, or another kind of pause took over. */
|
|
51630
|
+
forget() {
|
|
51631
|
+
this.#id = null;
|
|
51632
|
+
}
|
|
51633
|
+
};
|
|
51634
|
+
|
|
51258
51635
|
// src/tui/skills/learning.ts
|
|
51259
51636
|
var DEFAULT_SUGGEST_MIN_TOOL_CALLS = 6;
|
|
51260
51637
|
var SUGGEST_MIN_DISTINCT_TOOLS = 2;
|
|
@@ -51909,6 +52286,19 @@ function useSpinnerTip(input) {
|
|
|
51909
52286
|
}
|
|
51910
52287
|
__name(useSpinnerTip, "useSpinnerTip");
|
|
51911
52288
|
|
|
52289
|
+
// src/tui/working-label.ts
|
|
52290
|
+
var RESERVED_COLUMNS = 40;
|
|
52291
|
+
var MIN_WIDTH = 12;
|
|
52292
|
+
var MAX_WIDTH = 60;
|
|
52293
|
+
function workingLabel(tasks, columns) {
|
|
52294
|
+
const step = tasks.find((task) => task.status === "in_progress");
|
|
52295
|
+
if (!step) return void 0;
|
|
52296
|
+
const text = [step.activeForm, step.subject].map((candidate) => candidate?.replace(/\s+/gu, " ").trim()).find((candidate) => candidate);
|
|
52297
|
+
if (!text) return void 0;
|
|
52298
|
+
return clipText(text, Math.max(MIN_WIDTH, Math.min(MAX_WIDTH, columns - RESERVED_COLUMNS)));
|
|
52299
|
+
}
|
|
52300
|
+
__name(workingLabel, "workingLabel");
|
|
52301
|
+
|
|
51912
52302
|
// src/integrations/notifications/approval.ts
|
|
51913
52303
|
var APPROVAL_NOTIFICATION_MS = 6e3;
|
|
51914
52304
|
var ApprovalNotifier = class {
|
|
@@ -52532,6 +52922,7 @@ function trailFromRecords(records) {
|
|
|
52532
52922
|
if (typeof record3.toolUseId !== "string" || record3.via) break;
|
|
52533
52923
|
const key = callKey(turnId, record3.toolUseId);
|
|
52534
52924
|
calls.set(key, { ...calls.get(key), start: record3 });
|
|
52925
|
+
if (turnId) turn(turnId).journaled = true;
|
|
52535
52926
|
if (turnId && String(record3.toolName).toLowerCase() === "agent")
|
|
52536
52927
|
turn(turnId).agents.push(false);
|
|
52537
52928
|
break;
|
|
@@ -52542,6 +52933,17 @@ function trailFromRecords(records) {
|
|
|
52542
52933
|
calls.set(key, { ...calls.get(key), end: record3 });
|
|
52543
52934
|
break;
|
|
52544
52935
|
}
|
|
52936
|
+
case "tool_review_requested": {
|
|
52937
|
+
if (turnId) turn(turnId).journaled = true;
|
|
52938
|
+
const asked = Array.isArray(record3.toolCalls) ? record3.toolCalls : [];
|
|
52939
|
+
for (const entry of asked) {
|
|
52940
|
+
const id = entry?.id;
|
|
52941
|
+
if (typeof id !== "string") continue;
|
|
52942
|
+
const key = callKey(turnId, id);
|
|
52943
|
+
calls.set(key, { ...calls.get(key), asked: true });
|
|
52944
|
+
}
|
|
52945
|
+
break;
|
|
52946
|
+
}
|
|
52545
52947
|
default:
|
|
52546
52948
|
break;
|
|
52547
52949
|
}
|
|
@@ -52627,6 +53029,22 @@ function interruptedRows(label) {
|
|
|
52627
53029
|
];
|
|
52628
53030
|
}
|
|
52629
53031
|
__name(interruptedRows, "interruptedRows");
|
|
53032
|
+
function notRunRows(label, asked) {
|
|
53033
|
+
return [
|
|
53034
|
+
{
|
|
53035
|
+
role: "tool",
|
|
53036
|
+
content: label,
|
|
53037
|
+
glyph: "\u25CB",
|
|
53038
|
+
glyphColor: tokenColor("text.muted")
|
|
53039
|
+
},
|
|
53040
|
+
{
|
|
53041
|
+
role: "tool",
|
|
53042
|
+
content: asked ? "Not run \xB7 it was waiting for approval when the session ended" : "Not run \xB7 the session ended before it started",
|
|
53043
|
+
glyph: "\u23BF"
|
|
53044
|
+
}
|
|
53045
|
+
];
|
|
53046
|
+
}
|
|
53047
|
+
__name(notRunRows, "notRunRows");
|
|
52630
53048
|
function restoredToolRows(turnId, call, results, trail, presenter, cwd2) {
|
|
52631
53049
|
const toolName = call.function.name;
|
|
52632
53050
|
const saved = trail.calls.get(callKey(turnId, call.id));
|
|
@@ -52645,7 +53063,10 @@ function restoredToolRows(turnId, call, results, trail, presenter, cwd2) {
|
|
|
52645
53063
|
const text = resultText(message);
|
|
52646
53064
|
const interrupted = saved?.end === void 0 && (!message || text.startsWith(INTERRUPTED_RESULT));
|
|
52647
53065
|
const start = startOf(started);
|
|
52648
|
-
if (interrupted)
|
|
53066
|
+
if (interrupted) {
|
|
53067
|
+
const journaled = turnId !== void 0 && trail.turns.get(turnId)?.journaled === true;
|
|
53068
|
+
return saved?.start === void 0 && (saved?.asked === true || journaled) ? notRunRows(start.label, saved?.asked === true) : interruptedRows(start.label);
|
|
53069
|
+
}
|
|
52649
53070
|
const isError = message?.role === "tool" && message.isError === true;
|
|
52650
53071
|
const facts = saved?.end ? void 0 : factsFromReceipt(presenter, call, text, isError);
|
|
52651
53072
|
const endRecord = saved?.end ?? {
|
|
@@ -53475,10 +53896,36 @@ function useTitleFrame(active) {
|
|
|
53475
53896
|
__name(useTitleFrame, "useTitleFrame");
|
|
53476
53897
|
|
|
53477
53898
|
// src/tui/update-notice.ts
|
|
53478
|
-
function
|
|
53479
|
-
|
|
53899
|
+
function updaterEventAmbient(event) {
|
|
53900
|
+
if (event.type === "installed") {
|
|
53901
|
+
return { text: `Updated to ${event.to}, restart to use it`, tone: "dim", strong: event.to };
|
|
53902
|
+
}
|
|
53903
|
+
if (event.type === "failed") {
|
|
53904
|
+
const what = event.code === "verify_failed" ? "could not start here" : "could not be installed";
|
|
53905
|
+
return {
|
|
53906
|
+
text: `Namzu ${event.latest} ${what}; staying on ${event.current}`,
|
|
53907
|
+
tone: "dim",
|
|
53908
|
+
strong: event.latest
|
|
53909
|
+
};
|
|
53910
|
+
}
|
|
53911
|
+
if (event.blocked) {
|
|
53912
|
+
return {
|
|
53913
|
+
text: "Update available, can't install here. See namzu doctor",
|
|
53914
|
+
tone: "warn",
|
|
53915
|
+
strong: "namzu doctor"
|
|
53916
|
+
};
|
|
53917
|
+
}
|
|
53918
|
+
if (event.command === null) {
|
|
53919
|
+
return {
|
|
53920
|
+
text: `Namzu ${event.latest} is available. Reinstall Namzu to get it`,
|
|
53921
|
+
tone: "warn",
|
|
53922
|
+
strong: event.latest
|
|
53923
|
+
};
|
|
53924
|
+
}
|
|
53925
|
+
const lead = event.failure ? "Couldn't update Namzu on its own. Run:" : "Update available! Run:";
|
|
53926
|
+
return { text: `${lead} ${event.command}`, tone: "warn", strong: event.command };
|
|
53480
53927
|
}
|
|
53481
|
-
__name(
|
|
53928
|
+
__name(updaterEventAmbient, "updaterEventAmbient");
|
|
53482
53929
|
|
|
53483
53930
|
// src/tui/use-idle-compaction.ts
|
|
53484
53931
|
var import_react55 = __toESM(require_react(), 1);
|
|
@@ -54042,7 +54489,7 @@ function projectConversation(messages, nextId, readableUserTexts = [], restore)
|
|
|
54042
54489
|
}
|
|
54043
54490
|
];
|
|
54044
54491
|
}
|
|
54045
|
-
if (
|
|
54492
|
+
if (isModelOnlyContext(message)) {
|
|
54046
54493
|
return [];
|
|
54047
54494
|
}
|
|
54048
54495
|
if (message.source?.type === "runtime-context") {
|
|
@@ -54140,7 +54587,7 @@ function goalRoundPrompt(authority) {
|
|
|
54140
54587
|
__name(goalRoundPrompt, "goalRoundPrompt");
|
|
54141
54588
|
var SCROLL_VIEW_RESERVED_ROWS = 9;
|
|
54142
54589
|
var LIVE_FURNITURE_ROWS = 10;
|
|
54143
|
-
var defaultExternalEditor = /* @__PURE__ */ __name(({ seed, cwd: cwd2, signal }) => editDraftInExternalEditor(seed, { cwd: cwd2, signal }), "defaultExternalEditor");
|
|
54590
|
+
var defaultExternalEditor = /* @__PURE__ */ __name(({ seed, cwd: cwd2, signal, pressed }) => editDraftInExternalEditor(seed, { cwd: cwd2, signal, ...pressed !== void 0 ? { pressed } : {} }), "defaultExternalEditor");
|
|
54144
54591
|
function App2(props) {
|
|
54145
54592
|
const epoch = useThemeSubscription();
|
|
54146
54593
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ThemeEpochContext.Provider, { value: epoch, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AppBody, { ...props }) });
|
|
@@ -54265,6 +54712,9 @@ function AppBody({
|
|
|
54265
54712
|
const [reasoningEffort, setReasoningEffortState] = (0, import_react59.useState)();
|
|
54266
54713
|
const reasoningEffortRef = (0, import_react59.useRef)(void 0);
|
|
54267
54714
|
const turnLimitsOverrideRef = (0, import_react59.useRef)({});
|
|
54715
|
+
const thinkingOffFromRef = (0, import_react59.useRef)(void 0);
|
|
54716
|
+
const keybindingDraftRef = (0, import_react59.useRef)(null);
|
|
54717
|
+
const chooserDraftRef = (0, import_react59.useRef)(null);
|
|
54268
54718
|
const setReasoningEffort = (0, import_react59.useCallback)((next) => {
|
|
54269
54719
|
reasoningEffortRef.current = next;
|
|
54270
54720
|
setReasoningEffortState(next);
|
|
@@ -54299,6 +54749,20 @@ function AppBody({
|
|
|
54299
54749
|
});
|
|
54300
54750
|
const [jobSnapshot, setJobSnapshot] = (0, import_react59.useState)({ ownerSession: null, jobs: [] });
|
|
54301
54751
|
const backgroundJobs = jobSnapshot.ownerSession === session ? jobSnapshot.jobs : [];
|
|
54752
|
+
const sandboxShell = sandboxRunsShellUnasked(session?.sandbox);
|
|
54753
|
+
const sandboxShellRef = (0, import_react59.useRef)(sandboxShell);
|
|
54754
|
+
sandboxShellRef.current = sandboxShell;
|
|
54755
|
+
const [offeredCommands, setOfferedCommands] = (0, import_react59.useState)(/* @__PURE__ */ new Set());
|
|
54756
|
+
(0, import_react59.useEffect)(() => {
|
|
54757
|
+
const foreground = session?.foreground;
|
|
54758
|
+
if (!foreground) {
|
|
54759
|
+
setOfferedCommands(/* @__PURE__ */ new Set());
|
|
54760
|
+
return;
|
|
54761
|
+
}
|
|
54762
|
+
const read = /* @__PURE__ */ __name(() => setOfferedCommands(new Set(foreground.commands().map((item) => item.command))), "read");
|
|
54763
|
+
read();
|
|
54764
|
+
return foreground.onChange(read);
|
|
54765
|
+
}, [session]);
|
|
54302
54766
|
const snapshotIdleJobNotices = /* @__PURE__ */ __name(() => {
|
|
54303
54767
|
if (idleJobNoticesRef.current.ownerSession !== session) return { ids: [] };
|
|
54304
54768
|
const pending = idleJobNoticesRef.current.pending;
|
|
@@ -54453,7 +54917,19 @@ ${blocks.join("\n\n")}`;
|
|
|
54453
54917
|
const [compacting, setCompacting] = (0, import_react59.useState)(false);
|
|
54454
54918
|
const [summarising, setSummarising] = (0, import_react59.useState)(false);
|
|
54455
54919
|
const reasoningListedRef = (0, import_react59.useRef)(null);
|
|
54456
|
-
const [
|
|
54920
|
+
const [resumeHere, setResumeList] = (0, import_react59.useState)([]);
|
|
54921
|
+
const [resumeOthers, setResumeOthers] = (0, import_react59.useState)(null);
|
|
54922
|
+
const [resumeQuery, setResumeQuery] = (0, import_react59.useState)("");
|
|
54923
|
+
const [resumeScope, setResumeScope] = (0, import_react59.useState)("folder");
|
|
54924
|
+
const [resumeRenaming, setResumeRenaming] = (0, import_react59.useState)(null);
|
|
54925
|
+
const [resumeNotice, setResumeNotice] = (0, import_react59.useState)(void 0);
|
|
54926
|
+
const resumeList = (0, import_react59.useMemo)(
|
|
54927
|
+
() => filterConversations(
|
|
54928
|
+
resumeScope === "all" && resumeOthers ? [...resumeHere, ...resumeOthers].sort((a, b) => b.updatedAt.localeCompare(a.updatedAt)) : resumeHere,
|
|
54929
|
+
resumeQuery
|
|
54930
|
+
),
|
|
54931
|
+
[resumeHere, resumeOthers, resumeScope, resumeQuery]
|
|
54932
|
+
);
|
|
54457
54933
|
const {
|
|
54458
54934
|
selection: selectedResume,
|
|
54459
54935
|
selectionRef: selectedResumeRef,
|
|
@@ -54520,14 +54996,21 @@ ${blocks.join("\n\n")}`;
|
|
|
54520
54996
|
const liveStreamRef = (0, import_react59.useRef)(null);
|
|
54521
54997
|
const [handoffPark, setHandoffParkState] = (0, import_react59.useState)(null);
|
|
54522
54998
|
const handoffParkRef = (0, import_react59.useRef)(null);
|
|
54523
|
-
const setHandoffPark = (0, import_react59.useCallback)(
|
|
54524
|
-
|
|
54525
|
-
|
|
54526
|
-
|
|
54527
|
-
|
|
54528
|
-
|
|
54529
|
-
);
|
|
54999
|
+
const setHandoffPark = (0, import_react59.useCallback)((value) => {
|
|
55000
|
+
handoffParkRef.current = value;
|
|
55001
|
+
setHandoffParkState(value);
|
|
55002
|
+
}, []);
|
|
55003
|
+
const autoResumeAttemptRef = (0, import_react59.useRef)(0);
|
|
55004
|
+
const selfMendingPauseRowRef = (0, import_react59.useRef)(new SelfMendingPauseRow());
|
|
55005
|
+
const [, setAutoResumeTick] = (0, import_react59.useState)(0);
|
|
54530
55006
|
const composerDraftTokenRef = (0, import_react59.useRef)(0);
|
|
55007
|
+
(0, import_react59.useEffect)(() => {
|
|
55008
|
+
const kept = chooserDraftRef.current;
|
|
55009
|
+
if (!kept || phase !== "ready" || choicePicker !== null) return;
|
|
55010
|
+
chooserDraftRef.current = null;
|
|
55011
|
+
composerDraftTokenRef.current += 1;
|
|
55012
|
+
setComposerDraft({ token: composerDraftTokenRef.current, ...kept });
|
|
55013
|
+
}, [phase, choicePicker]);
|
|
54531
55014
|
const [subagents, setSubagentsState] = (0, import_react59.useState)([]);
|
|
54532
55015
|
const subagentsRef = (0, import_react59.useRef)([]);
|
|
54533
55016
|
const [workflowRuns, setWorkflowRuns] = (0, import_react59.useState)([]);
|
|
@@ -55206,7 +55689,7 @@ ${blocks.join("\n\n")}`;
|
|
|
55206
55689
|
}
|
|
55207
55690
|
}, [terminal, resetTranscript, scrollOpen, transcriptScreen]);
|
|
55208
55691
|
const requestExternalEditor = (0, import_react59.useCallback)(
|
|
55209
|
-
(seed) => {
|
|
55692
|
+
(seed, pressed) => {
|
|
55210
55693
|
if (phase !== "ready" || state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || queuedRef.current.length > 0 || compactingRef.current || conversationMutationRef.current !== null) {
|
|
55211
55694
|
return Promise.reject(
|
|
55212
55695
|
new ExternalEditorError("wait for the current reply and queued messages to finish")
|
|
@@ -55219,6 +55702,7 @@ ${blocks.join("\n\n")}`;
|
|
|
55219
55702
|
const request = {
|
|
55220
55703
|
token: {},
|
|
55221
55704
|
seed,
|
|
55705
|
+
...pressed !== void 0 ? { pressed } : {},
|
|
55222
55706
|
controller: new AbortController(),
|
|
55223
55707
|
resolve: resolve9,
|
|
55224
55708
|
reject
|
|
@@ -55242,6 +55726,7 @@ ${blocks.join("\n\n")}`;
|
|
|
55242
55726
|
try {
|
|
55243
55727
|
edited = await externalEditor({
|
|
55244
55728
|
seed: request.seed,
|
|
55729
|
+
...request.pressed !== void 0 ? { pressed: request.pressed } : {},
|
|
55245
55730
|
cwd: trustedCwdRef.current,
|
|
55246
55731
|
signal: request.controller.signal
|
|
55247
55732
|
});
|
|
@@ -55910,7 +56395,7 @@ ${blocks.join("\n\n")}`;
|
|
|
55910
56395
|
if (announce) {
|
|
55911
56396
|
pushMessage(
|
|
55912
56397
|
"system",
|
|
55913
|
-
`Permissions: ${permissionModeLabel(mode)} for this conversation. ${permissionModeDescription(mode)}`
|
|
56398
|
+
`Permissions: ${permissionModeLabel(mode)} for this conversation. ${permissionModeDescription(mode, { sandboxedShell: sandboxShellRef.current })}`
|
|
55914
56399
|
);
|
|
55915
56400
|
} else if (mode === "classify" && !autoModeNoticeShownRef.current) {
|
|
55916
56401
|
autoModeNoticeShownRef.current = true;
|
|
@@ -56042,6 +56527,31 @@ ${blocks.join("\n\n")}`;
|
|
|
56042
56527
|
},
|
|
56043
56528
|
[hasUnsettledTurn, pushMessage, session, setHypermode, state]
|
|
56044
56529
|
);
|
|
56530
|
+
const toggleThinking = (0, import_react59.useCallback)(() => {
|
|
56531
|
+
const note = /* @__PURE__ */ __name((text) => addNotice({ key: "thinking-toggle", text, priority: "immediate", timeoutMs: 4e3 }), "note");
|
|
56532
|
+
const levels = session?.reasoningEffortLevels;
|
|
56533
|
+
if (!session?.hasProvider || !levels?.length) {
|
|
56534
|
+
note("This model has no thinking setting");
|
|
56535
|
+
return;
|
|
56536
|
+
}
|
|
56537
|
+
if (!levels.includes("none")) {
|
|
56538
|
+
note("Thinking cannot be switched off for this model \xB7 /effort sets how much it thinks");
|
|
56539
|
+
return;
|
|
56540
|
+
}
|
|
56541
|
+
if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || permissionResolveRef.current !== null || compactingRef.current) {
|
|
56542
|
+
note("Wait for the reply to finish before changing thinking");
|
|
56543
|
+
return;
|
|
56544
|
+
}
|
|
56545
|
+
if (reasoningEffortRef.current === "none") {
|
|
56546
|
+
setReasoningEffort(thinkingOffFromRef.current);
|
|
56547
|
+
thinkingOffFromRef.current = void 0;
|
|
56548
|
+
note("Thinking on");
|
|
56549
|
+
return;
|
|
56550
|
+
}
|
|
56551
|
+
thinkingOffFromRef.current = reasoningEffortRef.current;
|
|
56552
|
+
setReasoningEffort("none");
|
|
56553
|
+
note("Thinking off");
|
|
56554
|
+
}, [addNotice, hasUnsettledTurn, session, setReasoningEffort, state]);
|
|
56045
56555
|
const stepReasoningEffort = (0, import_react59.useCallback)(
|
|
56046
56556
|
(direction) => {
|
|
56047
56557
|
const levels = session?.reasoningEffortLevels;
|
|
@@ -56623,7 +57133,12 @@ ${blocks.join("\n\n")}`;
|
|
|
56623
57133
|
}
|
|
56624
57134
|
if (picker.kind === "permission-mode") {
|
|
56625
57135
|
if (value === "more") {
|
|
56626
|
-
const child = permissionPicker(
|
|
57136
|
+
const child = permissionPicker(
|
|
57137
|
+
permissionModeRef.current,
|
|
57138
|
+
true,
|
|
57139
|
+
permissionAvailability(),
|
|
57140
|
+
sandboxShellRef.current
|
|
57141
|
+
);
|
|
56627
57142
|
setSelectedChoice(
|
|
56628
57143
|
Math.max(
|
|
56629
57144
|
0,
|
|
@@ -56996,11 +57511,14 @@ ${blocks.join("\n\n")}`;
|
|
|
56996
57511
|
// The code index tool: on unless the config switched it off.
|
|
56997
57512
|
...activeCtx.codeAnalysis?.enabled === false ? {} : { codeAnalysis: activeCtx.codeAnalysis ?? {} },
|
|
56998
57513
|
rules: activeCtx.rules,
|
|
57514
|
+
...activeCtx.appendSystem ? { appendSystem: activeCtx.appendSystem } : {},
|
|
56999
57515
|
...sessionsRef.current ? {
|
|
57000
57516
|
sessionGoals: sessionsRef.current.goals,
|
|
57001
57517
|
conversationSessions: sessionsRef.current
|
|
57002
57518
|
} : {},
|
|
57003
57519
|
...activeCtx.mcpServers ? { mcpServers: activeCtx.mcpServers } : {},
|
|
57520
|
+
// The composer is ready at once; each server's tools join as it connects.
|
|
57521
|
+
toolServers: "background",
|
|
57004
57522
|
...activeCtx.plugins ? { plugins: activeCtx.plugins } : {},
|
|
57005
57523
|
...activeCtx.skills ? { skills: activeCtx.skills } : {},
|
|
57006
57524
|
...activeCtx.web ? { web: activeCtx.web } : {},
|
|
@@ -57048,6 +57566,8 @@ ${blocks.join("\n\n")}`;
|
|
|
57048
57566
|
options.beforePublish?.();
|
|
57049
57567
|
commands = definition ? [] : discoverUserCommands({
|
|
57050
57568
|
cwd: activeCtx.cwd,
|
|
57569
|
+
...activeCtx.skills ? { skills: activeCtx.skills } : {},
|
|
57570
|
+
skillCommands: "all",
|
|
57051
57571
|
reserved: hostCommandNames()
|
|
57052
57572
|
});
|
|
57053
57573
|
if (persistSelection && !definition) writePreferences(prefs);
|
|
@@ -57146,12 +57666,22 @@ ${blocks.join("\n\n")}`;
|
|
|
57146
57666
|
`Skipped ${relative3(activeCtx.cwd, skip.path) || skip.path}: ${skip.reason}`
|
|
57147
57667
|
);
|
|
57148
57668
|
}
|
|
57149
|
-
|
|
57150
|
-
|
|
57151
|
-
|
|
57152
|
-
|
|
57153
|
-
|
|
57154
|
-
|
|
57669
|
+
const reportedToolServers = /* @__PURE__ */ new Set();
|
|
57670
|
+
const reportToolServer = /* @__PURE__ */ __name((name) => {
|
|
57671
|
+
if (reportedToolServers.has(name)) return;
|
|
57672
|
+
if (appLifetime.signal.aborted || previousSessionRef.current !== s) return;
|
|
57673
|
+
const row = toolServerRow(
|
|
57674
|
+
name,
|
|
57675
|
+
s.mcpStatus?.() ?? { connected: s.mcpConnected, failed: s.mcpFailed }
|
|
57676
|
+
);
|
|
57677
|
+
if (!row) return;
|
|
57678
|
+
reportedToolServers.add(name);
|
|
57679
|
+
if (row.level === "warning") pushSystem("warning", row.text);
|
|
57680
|
+
else pushMessage("system", row.text);
|
|
57681
|
+
}, "reportToolServer");
|
|
57682
|
+
s.onMcpSettled?.(reportToolServer);
|
|
57683
|
+
for (const server of s.mcpConnected) reportToolServer(server.name);
|
|
57684
|
+
for (const server of s.mcpFailed) reportToolServer(server.name);
|
|
57155
57685
|
} else {
|
|
57156
57686
|
setPhase("unhealthy");
|
|
57157
57687
|
if (s.errorHint) pushMessage("system", s.errorHint, false, STARTUP_STOP_GLYPH);
|
|
@@ -57351,7 +57881,9 @@ ${blocks.join("\n\n")}`;
|
|
|
57351
57881
|
setPhase("picker");
|
|
57352
57882
|
}, "toPicker");
|
|
57353
57883
|
if (!requested) {
|
|
57354
|
-
toPicker(
|
|
57884
|
+
toPicker(
|
|
57885
|
+
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."
|
|
57886
|
+
);
|
|
57355
57887
|
return;
|
|
57356
57888
|
}
|
|
57357
57889
|
const askedFor = requested.providers[0]?.id;
|
|
@@ -57515,6 +58047,13 @@ ${blocks.join("\n\n")}`;
|
|
|
57515
58047
|
try {
|
|
57516
58048
|
activateTrustedProject();
|
|
57517
58049
|
void runProbe();
|
|
58050
|
+
try {
|
|
58051
|
+
const { pending } = pendingProjectMcpServers({ cwd: trustedCwdRef.current });
|
|
58052
|
+
if (pending.length > 0) {
|
|
58053
|
+
pushMessage("system", pendingServersMessage(pending));
|
|
58054
|
+
}
|
|
58055
|
+
} catch {
|
|
58056
|
+
}
|
|
57518
58057
|
} catch (err) {
|
|
57519
58058
|
setPhase("unhealthy");
|
|
57520
58059
|
setStartupExplained(err instanceof ConfigLoadError && err.complete);
|
|
@@ -57532,6 +58071,14 @@ ${blocks.join("\n\n")}`;
|
|
|
57532
58071
|
trustDir(trustedCwdRef.current);
|
|
57533
58072
|
} catch {
|
|
57534
58073
|
}
|
|
58074
|
+
try {
|
|
58075
|
+
approveShownMcpServers(
|
|
58076
|
+
resolveNamzuHome(),
|
|
58077
|
+
trustedCwdRef.current,
|
|
58078
|
+
shownToolServers(trustGrants)
|
|
58079
|
+
);
|
|
58080
|
+
} catch {
|
|
58081
|
+
}
|
|
57535
58082
|
setPhase("probing");
|
|
57536
58083
|
try {
|
|
57537
58084
|
activateTrustedProject();
|
|
@@ -57541,7 +58088,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57541
58088
|
setStartupExplained(err instanceof ConfigLoadError && err.complete);
|
|
57542
58089
|
pushMessage("system", projectSettingsFailure(err), false, STARTUP_STOP_GLYPH);
|
|
57543
58090
|
}
|
|
57544
|
-
}, [activateTrustedProject, pushMessage, runProbe]);
|
|
58091
|
+
}, [activateTrustedProject, pushMessage, runProbe, trustGrants]);
|
|
57545
58092
|
const finalized = messages.filter((m) => !m.pending);
|
|
57546
58093
|
const runningShellCount = backgroundJobs.filter(
|
|
57547
58094
|
(job) => job.status === "running" && job.kind !== "monitor"
|
|
@@ -57596,7 +58143,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57596
58143
|
attachmentCount: (input.prompt.attachments?.length ?? 0) + input.attachedFiles
|
|
57597
58144
|
}));
|
|
57598
58145
|
const queuedInputItems = queued.map((prompt) => ({
|
|
57599
|
-
text: prompt.kind === "goal" ? "Automatic goal continuation" : prompt.kind === "notice" ? "
|
|
58146
|
+
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
58147
|
attachmentCount: prompt.kind === "human" ? prompt.attachments?.length : void 0
|
|
57601
58148
|
}));
|
|
57602
58149
|
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 +58167,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57620
58167
|
const liveTasks = checklistShown ? [] : tasks;
|
|
57621
58168
|
const fullTaskFurniture = taskListRows(liveTasks);
|
|
57622
58169
|
const nextPlanned = nextTask(tasks);
|
|
58170
|
+
const workingStepLabel = workingLabel(tasks, terminal.columns ?? 80);
|
|
57623
58171
|
const compactWork = LIVE_FURNITURE_ROWS + fullTaskFurniture + fullToolFurniture + pendingInputFurniture >= terminal.rows;
|
|
57624
58172
|
const taskFurniture = fullTaskFurniture;
|
|
57625
58173
|
const toolFurniture = compactWork && fullToolFurniture > 0 ? 2 : fullToolFurniture;
|
|
@@ -57751,6 +58299,18 @@ ${blocks.join("\n\n")}`;
|
|
|
57751
58299
|
);
|
|
57752
58300
|
return true;
|
|
57753
58301
|
}
|
|
58302
|
+
if (session.abandonTurn && !await scheduleRef.current?.isParked() && await unansweredReviewPark(sessions, resumedSessionId).catch(() => void 0)) {
|
|
58303
|
+
try {
|
|
58304
|
+
await session.abandonTurn(
|
|
58305
|
+
active.turnId,
|
|
58306
|
+
"The session ended while the questions about its tool calls were open."
|
|
58307
|
+
);
|
|
58308
|
+
pushMessage("system", PAUSED_TURN_LINES.unansweredReview);
|
|
58309
|
+
} catch (err) {
|
|
58310
|
+
pushSystem("error", explainFailure(err, "Couldn\u2019t close the unanswered questions."));
|
|
58311
|
+
}
|
|
58312
|
+
return true;
|
|
58313
|
+
}
|
|
57754
58314
|
setHandoffPark(null);
|
|
57755
58315
|
const ac = new AbortController();
|
|
57756
58316
|
abortRef.current = ac;
|
|
@@ -57799,7 +58359,7 @@ ${blocks.join("\n\n")}`;
|
|
|
57799
58359
|
`The browser uses the job\u2019s profile ${jobBrowser.profile} for this run, on its sites only.`
|
|
57800
58360
|
);
|
|
57801
58361
|
}
|
|
57802
|
-
pushMessage("system", PAUSED_TURN_LINES.resuming);
|
|
58362
|
+
if (!resume?.automatic) pushMessage("system", PAUSED_TURN_LINES.resuming);
|
|
57803
58363
|
for await (const event of session.resumePaused({
|
|
57804
58364
|
turnId: active.turnId,
|
|
57805
58365
|
signal: ac.signal,
|
|
@@ -57863,6 +58423,36 @@ ${blocks.join("\n\n")}`;
|
|
|
57863
58423
|
await resumeActiveTurn();
|
|
57864
58424
|
})();
|
|
57865
58425
|
}, [phase, resumeActiveTurn, session, state]);
|
|
58426
|
+
const autoResumeAt = handoffPark?.autoResume?.at;
|
|
58427
|
+
const autoResumeTurn = handoffPark?.turnId;
|
|
58428
|
+
(0, import_react59.useEffect)(() => {
|
|
58429
|
+
if (autoResumeAt === void 0 || autoResumeTurn === void 0) return;
|
|
58430
|
+
return startAutoResume({
|
|
58431
|
+
delayMs: autoResumeAt - Date.now(),
|
|
58432
|
+
ready: /* @__PURE__ */ __name(() => handoffParkRef.current?.turnId === autoResumeTurn && phase === "ready" && state === "idle" && !abortRef.current, "ready"),
|
|
58433
|
+
resume: /* @__PURE__ */ __name(() => {
|
|
58434
|
+
const parked = handoffParkRef.current;
|
|
58435
|
+
void (async () => {
|
|
58436
|
+
try {
|
|
58437
|
+
await resumeActiveTurn({ automatic: true });
|
|
58438
|
+
} catch {
|
|
58439
|
+
}
|
|
58440
|
+
if (!parked || handoffParkRef.current !== parked) return;
|
|
58441
|
+
const attempt = autoResumeAttemptRef.current + 1;
|
|
58442
|
+
autoResumeAttemptRef.current = attempt;
|
|
58443
|
+
setHandoffPark({
|
|
58444
|
+
...parked,
|
|
58445
|
+
autoResume: { attempt, at: Date.now() + autoResumeDelayMs(attempt) }
|
|
58446
|
+
});
|
|
58447
|
+
})();
|
|
58448
|
+
}, "resume")
|
|
58449
|
+
});
|
|
58450
|
+
}, [autoResumeAt, autoResumeTurn, phase, state, resumeActiveTurn, setHandoffPark]);
|
|
58451
|
+
(0, import_react59.useEffect)(() => {
|
|
58452
|
+
if (autoResumeAt === void 0) return;
|
|
58453
|
+
const timer = setInterval(() => setAutoResumeTick((n) => n + 1), 1e3);
|
|
58454
|
+
return () => clearInterval(timer);
|
|
58455
|
+
}, [autoResumeAt]);
|
|
57866
58456
|
const doResume = (0, import_react59.useCallback)(
|
|
57867
58457
|
async (query) => {
|
|
57868
58458
|
const sessions = sessionsRef.current ?? await ensureSessions().then(() => sessionsRef.current);
|
|
@@ -57876,11 +58466,10 @@ ${blocks.join("\n\n")}`;
|
|
|
57876
58466
|
const recent = owner ? (await listPalConversations(owner.workspace, owner.id)).map((row) => ({
|
|
57877
58467
|
...row,
|
|
57878
58468
|
id: asSessionId(row.id)
|
|
57879
|
-
})) : await listRecent(sessions);
|
|
57880
|
-
const needle = query?.trim()
|
|
57881
|
-
const
|
|
57882
|
-
|
|
57883
|
-
);
|
|
58469
|
+
})) : await listRecent(sessions, 50);
|
|
58470
|
+
const needle = query?.trim() ?? "";
|
|
58471
|
+
const everyone = recent.filter((c) => c.id !== scopeRef.current?.sessionId);
|
|
58472
|
+
const others = filterConversations(everyone, needle);
|
|
57884
58473
|
if (others.length === 0) {
|
|
57885
58474
|
pushMessage(
|
|
57886
58475
|
"system",
|
|
@@ -57888,7 +58477,12 @@ ${blocks.join("\n\n")}`;
|
|
|
57888
58477
|
);
|
|
57889
58478
|
return;
|
|
57890
58479
|
}
|
|
57891
|
-
setResumeList(
|
|
58480
|
+
setResumeList(everyone);
|
|
58481
|
+
setResumeOthers(null);
|
|
58482
|
+
setResumeQuery(needle);
|
|
58483
|
+
setResumeScope("folder");
|
|
58484
|
+
setResumeRenaming(null);
|
|
58485
|
+
setResumeNotice(void 0);
|
|
57892
58486
|
setSelectedResume(0);
|
|
57893
58487
|
setPhase("resume");
|
|
57894
58488
|
} catch (err) {
|
|
@@ -57897,6 +58491,68 @@ ${blocks.join("\n\n")}`;
|
|
|
57897
58491
|
},
|
|
57898
58492
|
[ensureSessions, pushMessage, resumeActiveTurn]
|
|
57899
58493
|
);
|
|
58494
|
+
const doctorRunningRef = (0, import_react59.useRef)(false);
|
|
58495
|
+
const runDoctorInSession = (0, import_react59.useCallback)(async () => {
|
|
58496
|
+
if (doctorRunningRef.current) {
|
|
58497
|
+
pushMessage("system", "The health check is already running.");
|
|
58498
|
+
return;
|
|
58499
|
+
}
|
|
58500
|
+
doctorRunningRef.current = true;
|
|
58501
|
+
const progressId = pushMessage("system", "Checking\u2026");
|
|
58502
|
+
try {
|
|
58503
|
+
const { runLiveDoctor } = await import("./live-JHNWMJIE.js");
|
|
58504
|
+
const { describePlainDoctor } = await import("./plain-report-IOYN4O6N.js");
|
|
58505
|
+
const report = await runLiveDoctor({
|
|
58506
|
+
...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
|
|
58507
|
+
});
|
|
58508
|
+
const plain = describePlainDoctor(report);
|
|
58509
|
+
setMessages((rows) => rows.filter((row) => row.id !== progressId));
|
|
58510
|
+
pushSystem(plain.level, plain.content, { detail: plain.detail });
|
|
58511
|
+
} catch (err) {
|
|
58512
|
+
setMessages((rows) => rows.filter((row) => row.id !== progressId));
|
|
58513
|
+
pushSystem("error", explainFailure(err, "Could not run the health check."));
|
|
58514
|
+
} finally {
|
|
58515
|
+
doctorRunningRef.current = false;
|
|
58516
|
+
}
|
|
58517
|
+
}, [pushMessage, pushSystem]);
|
|
58518
|
+
const toggleResumeScope = (0, import_react59.useCallback)(async () => {
|
|
58519
|
+
if (resumeScope === "all") {
|
|
58520
|
+
setResumeScope("folder");
|
|
58521
|
+
setSelectedResume(0);
|
|
58522
|
+
return;
|
|
58523
|
+
}
|
|
58524
|
+
if (palDefinitionRef.current) {
|
|
58525
|
+
setResumeNotice("Other folders are not available inside a Pal.");
|
|
58526
|
+
return;
|
|
58527
|
+
}
|
|
58528
|
+
const sessions = sessionsRef.current;
|
|
58529
|
+
if (!sessions) return;
|
|
58530
|
+
try {
|
|
58531
|
+
const others = resumeOthers ?? await listOtherFolders(sessions);
|
|
58532
|
+
setResumeOthers(others);
|
|
58533
|
+
setResumeNotice(others.length === 0 ? "No conversations in other folders yet." : void 0);
|
|
58534
|
+
setResumeScope("all");
|
|
58535
|
+
setSelectedResume(0);
|
|
58536
|
+
} catch (err) {
|
|
58537
|
+
setResumeNotice(explainFailure(err, "Could not list conversations in other folders."));
|
|
58538
|
+
}
|
|
58539
|
+
}, [resumeScope, resumeOthers, setSelectedResume]);
|
|
58540
|
+
const renameResumeRow = (0, import_react59.useCallback)(async (target, value) => {
|
|
58541
|
+
const sessions = sessionsRef.current;
|
|
58542
|
+
if (!sessions) return;
|
|
58543
|
+
const name = value.trim();
|
|
58544
|
+
if (name === "" && !target.named) return;
|
|
58545
|
+
try {
|
|
58546
|
+
await setTitle(sessions, target.id, name);
|
|
58547
|
+
const refreshed = (await listRecent(sessions, 50)).filter(
|
|
58548
|
+
(c) => c.id !== scopeRef.current?.sessionId
|
|
58549
|
+
);
|
|
58550
|
+
setResumeList(refreshed);
|
|
58551
|
+
setResumeNotice(void 0);
|
|
58552
|
+
} catch (err) {
|
|
58553
|
+
setResumeNotice(explainFailure(err, "Could not save the name."));
|
|
58554
|
+
}
|
|
58555
|
+
}, []);
|
|
57900
58556
|
const doUnarchive = (0, import_react59.useCallback)(async () => {
|
|
57901
58557
|
if (palDefinitionRef.current) {
|
|
57902
58558
|
pushMessage(
|
|
@@ -57924,6 +58580,11 @@ ${blocks.join("\n\n")}`;
|
|
|
57924
58580
|
return;
|
|
57925
58581
|
}
|
|
57926
58582
|
setResumeList(archived);
|
|
58583
|
+
setResumeOthers(null);
|
|
58584
|
+
setResumeQuery("");
|
|
58585
|
+
setResumeScope("folder");
|
|
58586
|
+
setResumeRenaming(null);
|
|
58587
|
+
setResumeNotice(void 0);
|
|
57927
58588
|
setSelectedResume(0);
|
|
57928
58589
|
setPhase("unarchive");
|
|
57929
58590
|
} catch (err) {
|
|
@@ -58014,23 +58675,35 @@ ${blocks.join("\n\n")}`;
|
|
|
58014
58675
|
const interruptWithRow = (0, import_react59.useCallback)(
|
|
58015
58676
|
(recoverInput, options) => {
|
|
58016
58677
|
const callRunning = activeToolsRef.current.length > 0;
|
|
58678
|
+
const jobsBefore = new Set((session?.jobs?.() ?? []).map((job) => job.id));
|
|
58017
58679
|
const interrupted = interruptTurn(recoverInput);
|
|
58680
|
+
const movedToBackground = (session?.jobs?.() ?? []).some(
|
|
58681
|
+
(job) => job.status === "running" && !jobsBefore.has(job.id)
|
|
58682
|
+
);
|
|
58683
|
+
if (movedToBackground)
|
|
58684
|
+
setJobSnapshot({ ownerSession: session, jobs: session?.jobs?.() ?? [] });
|
|
58018
58685
|
if (interrupted || options?.always === true) {
|
|
58019
58686
|
const row = interruptionRow({
|
|
58020
58687
|
callRunning,
|
|
58021
|
-
...options?.steered ? { steered: true } : {}
|
|
58688
|
+
...options?.steered ? { steered: true } : {},
|
|
58689
|
+
...movedToBackground ? { movedToBackground: true } : {}
|
|
58022
58690
|
});
|
|
58023
58691
|
pushMessage("system", row.content, false, row.glyph, void 0, row.color);
|
|
58024
58692
|
}
|
|
58025
58693
|
return interrupted;
|
|
58026
58694
|
},
|
|
58027
|
-
[interruptTurn, pushMessage]
|
|
58695
|
+
[interruptTurn, pushMessage, session]
|
|
58028
58696
|
);
|
|
58029
58697
|
const sendPendingNow = (0, import_react59.useCallback)(() => {
|
|
58030
58698
|
if (!abortRef.current) return;
|
|
58031
58699
|
interruptWithRow(true, { steered: true, always: true });
|
|
58032
58700
|
if (queuePauseRef.current?.source === "operator-interrupt") setQueuePause(null);
|
|
58033
58701
|
}, [interruptWithRow, setQueuePause]);
|
|
58702
|
+
const backgroundRunningCommand = (0, import_react59.useCallback)(() => {
|
|
58703
|
+
const foreground = session?.foreground;
|
|
58704
|
+
if (!foreground || foreground.commands().length === 0) return false;
|
|
58705
|
+
return foreground.background("user") > 0;
|
|
58706
|
+
}, [session]);
|
|
58034
58707
|
(0, import_react59.useEffect)(() => {
|
|
58035
58708
|
if (!terminationExit) return;
|
|
58036
58709
|
terminationExit.current = () => {
|
|
@@ -58082,6 +58755,9 @@ ${blocks.join("\n\n")}`;
|
|
|
58082
58755
|
wakeGoalDriver();
|
|
58083
58756
|
cancelPendingModelSwitch();
|
|
58084
58757
|
conversationGenRef.current += 1;
|
|
58758
|
+
setHandoffPark(null);
|
|
58759
|
+
autoResumeAttemptRef.current = 0;
|
|
58760
|
+
selfMendingPauseRowRef.current.forget();
|
|
58085
58761
|
resetSubagentActivity();
|
|
58086
58762
|
session?.resetTaskStore?.();
|
|
58087
58763
|
activeTurnTokenRef.current = null;
|
|
@@ -58129,6 +58805,7 @@ ${blocks.join("\n\n")}`;
|
|
|
58129
58805
|
}
|
|
58130
58806
|
},
|
|
58131
58807
|
[
|
|
58808
|
+
setHandoffPark,
|
|
58132
58809
|
discardQueued,
|
|
58133
58810
|
goalActivation,
|
|
58134
58811
|
interruptTurn,
|
|
@@ -58216,6 +58893,9 @@ ${blocks.join("\n\n")}`;
|
|
|
58216
58893
|
wakeGoalDriver();
|
|
58217
58894
|
cancelPendingModelSwitch();
|
|
58218
58895
|
conversationGenRef.current += 1;
|
|
58896
|
+
setHandoffPark(null);
|
|
58897
|
+
autoResumeAttemptRef.current = 0;
|
|
58898
|
+
selfMendingPauseRowRef.current.forget();
|
|
58219
58899
|
resetSubagentActivity();
|
|
58220
58900
|
session?.resetTaskStore?.();
|
|
58221
58901
|
activeTurnTokenRef.current = null;
|
|
@@ -58280,6 +58960,7 @@ ${blocks.join("\n\n")}`;
|
|
|
58280
58960
|
}
|
|
58281
58961
|
},
|
|
58282
58962
|
[
|
|
58963
|
+
setHandoffPark,
|
|
58283
58964
|
discardQueued,
|
|
58284
58965
|
goalActivation,
|
|
58285
58966
|
interruptTurn,
|
|
@@ -58687,6 +59368,9 @@ ${blocks.join("\n\n")}`;
|
|
|
58687
59368
|
const readablePrefix = editList.slice(0, target.userOrdinal).map((prompt) => prompt.displayText);
|
|
58688
59369
|
cancelPendingModelSwitch();
|
|
58689
59370
|
conversationGenRef.current += 1;
|
|
59371
|
+
setHandoffPark(null);
|
|
59372
|
+
autoResumeAttemptRef.current = 0;
|
|
59373
|
+
selfMendingPauseRowRef.current.forget();
|
|
58690
59374
|
resetSubagentActivity();
|
|
58691
59375
|
session?.resetTaskStore?.();
|
|
58692
59376
|
activeTurnTokenRef.current = null;
|
|
@@ -58724,6 +59408,7 @@ ${blocks.join("\n\n")}`;
|
|
|
58724
59408
|
}
|
|
58725
59409
|
},
|
|
58726
59410
|
[
|
|
59411
|
+
setHandoffPark,
|
|
58727
59412
|
editList,
|
|
58728
59413
|
ensureSessions,
|
|
58729
59414
|
goalActivation,
|
|
@@ -59054,6 +59739,9 @@ ${plain(err)}`
|
|
|
59054
59739
|
}),
|
|
59055
59740
|
[applyPermissionMode, closeLiveReply, pushMessage, announceApproval, setPlanPrompt]
|
|
59056
59741
|
);
|
|
59742
|
+
const enterPlanFromTool = (0, import_react59.useCallback)(() => {
|
|
59743
|
+
commitPermissionMode("plan", true);
|
|
59744
|
+
}, [commitPermissionMode]);
|
|
59057
59745
|
const finishQuestionDialog = (0, import_react59.useCallback)(
|
|
59058
59746
|
(answer, summary2) => {
|
|
59059
59747
|
const entry = questionDialogRef.current;
|
|
@@ -59161,21 +59849,23 @@ ${plain(err)}`
|
|
|
59161
59849
|
const applyEvent = (0, import_react59.useCallback)(
|
|
59162
59850
|
(event, st) => {
|
|
59163
59851
|
if (st.learning) observeTurnEvent(st.learning, event);
|
|
59852
|
+
const voidStreamedReply = /* @__PURE__ */ __name(() => {
|
|
59853
|
+
if (st.releaseTimer) clearTimeout(st.releaseTimer);
|
|
59854
|
+
st.releaseTimer = void 0;
|
|
59855
|
+
st.pending = "";
|
|
59856
|
+
st.text = st.text.slice(0, st.messageTextStart ?? st.text.length);
|
|
59857
|
+
st.streamedChars = 0;
|
|
59858
|
+
setTurnTokens(st.reportedOutputTokens ?? 0);
|
|
59859
|
+
const abandoned = st.assistantId;
|
|
59860
|
+
st.assistantId = null;
|
|
59861
|
+
if (abandoned) setMessages((prev) => prev.filter((m) => m.id !== abandoned));
|
|
59862
|
+
}, "voidStreamedReply");
|
|
59863
|
+
if (event.kind === "provider-fallback" && event.restart) voidStreamedReply();
|
|
59164
59864
|
if (event.kind === "provider-wait") {
|
|
59165
59865
|
const notice = describeProviderWait(event, scheduleLiveRef.current?.model?.provider);
|
|
59166
59866
|
providerWaitNoticeRef.current = notice;
|
|
59167
59867
|
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
|
-
}
|
|
59868
|
+
if (event.restart) voidStreamedReply();
|
|
59179
59869
|
} else if (event.kind === "hook-status") {
|
|
59180
59870
|
const hookNotice = { what: event.text };
|
|
59181
59871
|
providerWaitNoticeRef.current = hookNotice;
|
|
@@ -59426,6 +60116,12 @@ ${plain(err)}`
|
|
|
59426
60116
|
...event.blockedBy ? { blockedBy: event.blockedBy } : (() => {
|
|
59427
60117
|
const known = tasksRef.current.find((task) => task.id === event.taskId)?.blockedBy;
|
|
59428
60118
|
return known ? { blockedBy: known } : {};
|
|
60119
|
+
})(),
|
|
60120
|
+
...event.activeForm ? { activeForm: event.activeForm } : (() => {
|
|
60121
|
+
const known = tasksRef.current.find(
|
|
60122
|
+
(task) => task.id === event.taskId
|
|
60123
|
+
)?.activeForm;
|
|
60124
|
+
return known ? { activeForm: known } : {};
|
|
59429
60125
|
})()
|
|
59430
60126
|
};
|
|
59431
60127
|
closeAssistant();
|
|
@@ -59507,6 +60203,7 @@ ${plain(err)}`
|
|
|
59507
60203
|
duplicateResults: event.duplicateResults,
|
|
59508
60204
|
orphanedResults: event.orphanedResults,
|
|
59509
60205
|
interruptedCalls: event.interruptedCalls,
|
|
60206
|
+
...event.neverRanCalls !== void 0 ? { neverRanCalls: event.neverRanCalls } : {},
|
|
59510
60207
|
...event.rejectedImages !== void 0 ? { rejectedImages: event.rejectedImages } : {},
|
|
59511
60208
|
...scheduleLiveRef.current?.model?.provider ? { providerId: scheduleLiveRef.current.model.provider } : {}
|
|
59512
60209
|
}),
|
|
@@ -59516,6 +60213,8 @@ ${plain(err)}`
|
|
|
59516
60213
|
);
|
|
59517
60214
|
break;
|
|
59518
60215
|
case "done": {
|
|
60216
|
+
autoResumeAttemptRef.current = 0;
|
|
60217
|
+
selfMendingPauseRowRef.current.forget();
|
|
59519
60218
|
setSummarising(false);
|
|
59520
60219
|
if (event.text !== void 0) st.text = event.text;
|
|
59521
60220
|
st.completed = event.stopReason === void 0 || event.stopReason === "end_turn";
|
|
@@ -59584,8 +60283,30 @@ ${plain(err)}`
|
|
|
59584
60283
|
reason: event.handoff.reason
|
|
59585
60284
|
});
|
|
59586
60285
|
} else {
|
|
59587
|
-
|
|
59588
|
-
|
|
60286
|
+
const pauseText = describePlainInterruption(event, plainOptions());
|
|
60287
|
+
if (isSelfMending(event)) {
|
|
60288
|
+
const rowId = selfMendingPauseRowRef.current.reusable(
|
|
60289
|
+
autoResumeAttemptRef.current,
|
|
60290
|
+
new Set(messagesLiveRef.current.map((row) => row.id))
|
|
60291
|
+
);
|
|
60292
|
+
if (rowId !== null) {
|
|
60293
|
+
setMessages(
|
|
60294
|
+
(rows) => rows.map((row) => row.id === rowId ? { ...row, content: pauseText } : row)
|
|
60295
|
+
);
|
|
60296
|
+
} else {
|
|
60297
|
+
selfMendingPauseRowRef.current.remember(pushSystem("warning", pauseText));
|
|
60298
|
+
}
|
|
60299
|
+
const attempt = autoResumeAttemptRef.current + 1;
|
|
60300
|
+
autoResumeAttemptRef.current = attempt;
|
|
60301
|
+
setHandoffPark({
|
|
60302
|
+
turnId: event.turnId,
|
|
60303
|
+
autoResume: { attempt, at: Date.now() + autoResumeDelayMs(attempt) }
|
|
60304
|
+
});
|
|
60305
|
+
} else {
|
|
60306
|
+
selfMendingPauseRowRef.current.forget();
|
|
60307
|
+
pushSystem("warning", pauseText);
|
|
60308
|
+
setHandoffPark({ turnId: event.turnId });
|
|
60309
|
+
}
|
|
59589
60310
|
}
|
|
59590
60311
|
break;
|
|
59591
60312
|
case "error":
|
|
@@ -59728,11 +60449,13 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
|
|
|
59728
60449
|
const scope = scopeRef.current;
|
|
59729
60450
|
if (!sessions || !scope || !conversationMaterializedRef.current || !session?.abandonTurn)
|
|
59730
60451
|
return;
|
|
59731
|
-
const
|
|
60452
|
+
const providerPause = await closableProviderPause(sessions, scope.sessionId);
|
|
60453
|
+
const unanswered = providerPause ? void 0 : await scheduleRef.current?.isParked() ? void 0 : await unansweredReviewPark(sessions, scope.sessionId);
|
|
60454
|
+
const stopped = providerPause ?? unanswered;
|
|
59732
60455
|
if (!stopped) return;
|
|
59733
60456
|
await session.abandonTurn(
|
|
59734
60457
|
stopped.turnId,
|
|
59735
|
-
"The operator went on with a new message instead of retrying."
|
|
60458
|
+
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
60459
|
);
|
|
59737
60460
|
setHandoffPark(null);
|
|
59738
60461
|
}, "closeStoppedReply");
|
|
@@ -60052,6 +60775,7 @@ ${[...workflowNoticeSnapshot.values()].join("\n\n")}` : void 0,
|
|
|
60052
60775
|
},
|
|
60053
60776
|
onQuestion: askQuestion,
|
|
60054
60777
|
onPlanExit: askPlanApproval,
|
|
60778
|
+
onPlanEnter: enterPlanFromTool,
|
|
60055
60779
|
bypassAvailable: /* @__PURE__ */ __name(() => bypassAvailableRef.current, "bypassAvailable"),
|
|
60056
60780
|
onModelSwitch: requestModelSwitch,
|
|
60057
60781
|
inboundMessages: /* @__PURE__ */ __name(() => {
|
|
@@ -60497,10 +61221,11 @@ ${[...workflowNoticeSnapshot.values()].join("\n\n")}` : void 0,
|
|
|
60497
61221
|
const restore = /* @__PURE__ */ __name((notice) => {
|
|
60498
61222
|
setViewNotice(notice);
|
|
60499
61223
|
composerDraftTokenRef.current += 1;
|
|
61224
|
+
const kept = meta.source === "keybinding" ? meta.draft ?? { text: "" } : void 0;
|
|
60500
61225
|
setComposerDraft({
|
|
60501
61226
|
token: composerDraftTokenRef.current,
|
|
60502
|
-
text: value,
|
|
60503
|
-
...attachments && attachments.length > 0 ? { attachments: [...attachments] } : {}
|
|
61227
|
+
text: kept ? kept.text : value,
|
|
61228
|
+
...kept ? kept.attachments?.length ? { attachments: [...kept.attachments] } : {} : attachments && attachments.length > 0 ? { attachments: [...attachments] } : {}
|
|
60504
61229
|
});
|
|
60505
61230
|
}, "restore");
|
|
60506
61231
|
const text = value.trim();
|
|
@@ -60547,8 +61272,11 @@ ${[...workflowNoticeSnapshot.values()].join("\n\n")}` : void 0,
|
|
|
60547
61272
|
setViewNotice(void 0);
|
|
60548
61273
|
}
|
|
60549
61274
|
setHandoffPark(null);
|
|
61275
|
+
autoResumeAttemptRef.current = 0;
|
|
61276
|
+
selfMendingPauseRowRef.current.forget();
|
|
60550
61277
|
const fromLoop = meta.source === "operator-loop" || meta.source === "model-loop";
|
|
60551
|
-
|
|
61278
|
+
keybindingDraftRef.current = meta.source === "keybinding" ? meta.draft ?? null : null;
|
|
61279
|
+
if (!fromLoop && meta.source !== "keybinding") setHistory((prev) => [...prev, value]);
|
|
60552
61280
|
const operatorText = meta.source !== "model-loop" && meta.source !== "launch-message";
|
|
60553
61281
|
const selectionIntent = operatorText && !attachments?.length ? parseModelSelectionIntent(value) : void 0;
|
|
60554
61282
|
if (selectionIntent) {
|
|
@@ -60755,6 +61483,10 @@ Available: ${agentIds.join(", ")}` : "\nNo agents are configured."}`
|
|
|
60755
61483
|
);
|
|
60756
61484
|
return;
|
|
60757
61485
|
}
|
|
61486
|
+
case "doctor": {
|
|
61487
|
+
void runDoctorInSession();
|
|
61488
|
+
return;
|
|
61489
|
+
}
|
|
60758
61490
|
case "jobs": {
|
|
60759
61491
|
if (!session) {
|
|
60760
61492
|
pushMessage("system", "Shell jobs are available once the conversation starts.");
|
|
@@ -61070,6 +61802,7 @@ Available: ${agentIds.join(", ")}` : "\nNo agents are configured."}`
|
|
|
61070
61802
|
setPickerDetected(null);
|
|
61071
61803
|
setPickerSelectionKind("provider-and-model");
|
|
61072
61804
|
setPickerInitialView("models");
|
|
61805
|
+
chooserDraftRef.current = keybindingDraftRef.current;
|
|
61073
61806
|
setPhase("picker");
|
|
61074
61807
|
return;
|
|
61075
61808
|
case "permission-mode": {
|
|
@@ -61088,7 +61821,8 @@ Available: ${agentIds.join(", ")}` : "\nNo agents are configured."}`
|
|
|
61088
61821
|
const picker = permissionPicker(
|
|
61089
61822
|
permissionModeRef.current,
|
|
61090
61823
|
false,
|
|
61091
|
-
permissionAvailability()
|
|
61824
|
+
permissionAvailability(),
|
|
61825
|
+
sandboxShellRef.current
|
|
61092
61826
|
);
|
|
61093
61827
|
setSelectedChoice(
|
|
61094
61828
|
Math.max(
|
|
@@ -61127,9 +61861,14 @@ Available: ${agentIds.join(", ")}` : "\nNo agents are configured."}`
|
|
|
61127
61861
|
values.findIndex((value2) => value2 === current)
|
|
61128
61862
|
)
|
|
61129
61863
|
);
|
|
61130
|
-
|
|
61131
|
-
|
|
61864
|
+
const effortChooser = reasoningEffortPicker(
|
|
61865
|
+
session,
|
|
61866
|
+
current,
|
|
61867
|
+
false,
|
|
61868
|
+
hypermodeRef.current
|
|
61132
61869
|
);
|
|
61870
|
+
if (effortChooser) chooserDraftRef.current = keybindingDraftRef.current;
|
|
61871
|
+
setChoicePicker(effortChooser ?? null);
|
|
61133
61872
|
return;
|
|
61134
61873
|
}
|
|
61135
61874
|
case "login":
|
|
@@ -61609,6 +62348,7 @@ ${plugins.map((plugin) => {
|
|
|
61609
62348
|
cwd: ctx.cwd,
|
|
61610
62349
|
columns: terminal.columns,
|
|
61611
62350
|
model: slashCtx.modelSummary ?? void 0,
|
|
62351
|
+
providerId: currentProvider,
|
|
61612
62352
|
mcp: slashCtx.mcp(),
|
|
61613
62353
|
skillsConfig: ctx.skills
|
|
61614
62354
|
});
|
|
@@ -61919,6 +62659,7 @@ ${plugins.map((plugin) => {
|
|
|
61919
62659
|
queuedBefore: [...queuedRef.current]
|
|
61920
62660
|
})) {
|
|
61921
62661
|
bindSteeredTriggers(armedTriggers);
|
|
62662
|
+
session?.foreground?.background("message");
|
|
61922
62663
|
return;
|
|
61923
62664
|
}
|
|
61924
62665
|
}
|
|
@@ -62467,17 +63208,19 @@ ${plugins.map((plugin) => {
|
|
|
62467
63208
|
hasUnsettledTurn,
|
|
62468
63209
|
session
|
|
62469
63210
|
]);
|
|
62470
|
-
const
|
|
62471
|
-
|
|
63211
|
+
const [updateNotice, setUpdateNotice] = (0, import_react59.useState)(
|
|
63212
|
+
null
|
|
63213
|
+
);
|
|
63214
|
+
const updaterRef = (0, import_react59.useRef)(null);
|
|
62472
63215
|
(0, import_react59.useEffect)(() => {
|
|
62473
|
-
if (phase !== "ready" ||
|
|
62474
|
-
|
|
62475
|
-
|
|
62476
|
-
|
|
62477
|
-
|
|
62478
|
-
if (first) setUpdateNotice(updateAmbient(first));
|
|
63216
|
+
if (phase !== "ready" || updaterRef.current) return;
|
|
63217
|
+
updaterRef.current = startAutoUpdate({
|
|
63218
|
+
currentVersion: ctx.version,
|
|
63219
|
+
config: ctx.updates,
|
|
63220
|
+
onEvent: /* @__PURE__ */ __name((event) => setUpdateNotice(updaterEventAmbient(event)), "onEvent")
|
|
62479
63221
|
});
|
|
62480
|
-
}, [phase, ctx.version]);
|
|
63222
|
+
}, [phase, ctx.version, ctx.updates]);
|
|
63223
|
+
(0, import_react59.useEffect)(() => () => updaterRef.current?.stop(), []);
|
|
62481
63224
|
const hydrateFromPicker = (0, import_react59.useCallback)(
|
|
62482
63225
|
async (prefs, detectedNow, signal, options = {}) => {
|
|
62483
63226
|
try {
|
|
@@ -62593,11 +63336,11 @@ ${plugins.map((plugin) => {
|
|
|
62593
63336
|
if ((saveSkillPromptRef.current || planPromptRef.current || questionDialogRef.current || scheduleReviewPromptRef.current) && permission === null)
|
|
62594
63337
|
return;
|
|
62595
63338
|
if (phase === "unhealthy") {
|
|
62596
|
-
if (key.escape ||
|
|
63339
|
+
if (key.escape || isAction("app:interrupt", input, key)) exitWithSummary();
|
|
62597
63340
|
return;
|
|
62598
63341
|
}
|
|
62599
63342
|
if (phase === "picker") {
|
|
62600
|
-
if (
|
|
63343
|
+
if (isAction("app:interrupt", input, key)) exitWithSummary();
|
|
62601
63344
|
return;
|
|
62602
63345
|
}
|
|
62603
63346
|
if (phase === "edit") {
|
|
@@ -62613,7 +63356,7 @@ ${plugins.map((plugin) => {
|
|
|
62613
63356
|
closeRewind();
|
|
62614
63357
|
return;
|
|
62615
63358
|
}
|
|
62616
|
-
if (
|
|
63359
|
+
if (isAction("app:interrupt", input, key) && !view.state.busy) {
|
|
62617
63360
|
closeRewind();
|
|
62618
63361
|
return;
|
|
62619
63362
|
}
|
|
@@ -62633,6 +63376,34 @@ ${plugins.map((plugin) => {
|
|
|
62633
63376
|
}
|
|
62634
63377
|
if (phase === "resume" || phase === "unarchive") {
|
|
62635
63378
|
if (resumeCommittedRef.current) return;
|
|
63379
|
+
if (resumeRenaming !== null) {
|
|
63380
|
+
if (key.escape || isAction("app:interrupt", input, key)) setResumeRenaming(null);
|
|
63381
|
+
else if (key.return) {
|
|
63382
|
+
const target = resumeList[selectedResumeRef.current];
|
|
63383
|
+
const value = resumeRenaming;
|
|
63384
|
+
setResumeRenaming(null);
|
|
63385
|
+
if (target) void renameResumeRow(target, value);
|
|
63386
|
+
} else {
|
|
63387
|
+
const next = editLine(resumeRenaming, { ...key, input });
|
|
63388
|
+
if (next !== null) setResumeRenaming(next);
|
|
63389
|
+
}
|
|
63390
|
+
return;
|
|
63391
|
+
}
|
|
63392
|
+
if (phase === "resume" && key.ctrl && input === "a") {
|
|
63393
|
+
void toggleResumeScope();
|
|
63394
|
+
return;
|
|
63395
|
+
}
|
|
63396
|
+
if (phase === "resume" && key.ctrl && input === "r") {
|
|
63397
|
+
const target = resumeList[selectedResumeRef.current];
|
|
63398
|
+
if (!target) return;
|
|
63399
|
+
if (target.folder !== void 0) {
|
|
63400
|
+
setResumeNotice("Open that conversation from its own folder to rename it.");
|
|
63401
|
+
return;
|
|
63402
|
+
}
|
|
63403
|
+
setResumeNotice(void 0);
|
|
63404
|
+
setResumeRenaming(target.named ? target.title : "");
|
|
63405
|
+
return;
|
|
63406
|
+
}
|
|
62636
63407
|
if (key.home || key.end || key.pageUp || key.pageDown) {
|
|
62637
63408
|
setSelectedResume(
|
|
62638
63409
|
(index) => moveSelection(
|
|
@@ -62647,14 +63418,28 @@ ${plugins.map((plugin) => {
|
|
|
62647
63418
|
setSelectedResume((index) => moveSelection(index, resumeList.length, "next"));
|
|
62648
63419
|
else if (key.return) {
|
|
62649
63420
|
const conv = resumeList[selectedResumeRef.current];
|
|
63421
|
+
if (conv?.folder !== void 0) {
|
|
63422
|
+
setResumeNotice(
|
|
63423
|
+
`That conversation belongs to ${conv.folder}. Open Namzu in that folder to continue it.`
|
|
63424
|
+
);
|
|
63425
|
+
return;
|
|
63426
|
+
}
|
|
62650
63427
|
if (conv)
|
|
62651
63428
|
void (phase === "unarchive" ? restoreArchivedConversation(conv) : resumeConversation(conv));
|
|
62652
|
-
} else if (key.escape ||
|
|
63429
|
+
} else if (key.escape || isAction("app:interrupt", input, key)) setPhase("ready");
|
|
63430
|
+
else {
|
|
63431
|
+
const next = editLine(resumeQuery, { ...key, input });
|
|
63432
|
+
if (next !== null) {
|
|
63433
|
+
setResumeQuery(next);
|
|
63434
|
+
setResumeNotice(void 0);
|
|
63435
|
+
setSelectedResume(0);
|
|
63436
|
+
}
|
|
63437
|
+
}
|
|
62653
63438
|
return;
|
|
62654
63439
|
}
|
|
62655
63440
|
if (phase === "trust") {
|
|
62656
63441
|
const ch = input.toLowerCase();
|
|
62657
|
-
if (ch === "n" || key.escape ||
|
|
63442
|
+
if (ch === "n" || key.escape || isAction("app:interrupt", input, key)) {
|
|
62658
63443
|
exitWithSummary();
|
|
62659
63444
|
return;
|
|
62660
63445
|
}
|
|
@@ -62667,7 +63452,7 @@ ${plugins.map((plugin) => {
|
|
|
62667
63452
|
const ch = input.toLowerCase();
|
|
62668
63453
|
const typing = permissionReasonRef.current;
|
|
62669
63454
|
if (typing !== null) {
|
|
62670
|
-
if (
|
|
63455
|
+
if (isAction("app:interrupt", input, key)) {
|
|
62671
63456
|
interruptTurn();
|
|
62672
63457
|
return;
|
|
62673
63458
|
}
|
|
@@ -62711,7 +63496,7 @@ ${plugins.map((plugin) => {
|
|
|
62711
63496
|
setPermissionReviewOffset(next);
|
|
62712
63497
|
return;
|
|
62713
63498
|
}
|
|
62714
|
-
if (
|
|
63499
|
+
if (isAction("app:interrupt", input, key)) {
|
|
62715
63500
|
if (permission && endsTurnOnNo(permission)) {
|
|
62716
63501
|
resolvePermission(plainNo(true));
|
|
62717
63502
|
return;
|
|
@@ -62754,7 +63539,7 @@ ${plugins.map((plugin) => {
|
|
|
62754
63539
|
return;
|
|
62755
63540
|
}
|
|
62756
63541
|
if (jobSurfaceCommittedRef.current !== shellView) return;
|
|
62757
|
-
if (
|
|
63542
|
+
if (isAction("app:interrupt", input, key) || input.toLowerCase() === "q") {
|
|
62758
63543
|
setJobSurface(null);
|
|
62759
63544
|
return;
|
|
62760
63545
|
}
|
|
@@ -62874,10 +63659,10 @@ ${plugins.map((plugin) => {
|
|
|
62874
63659
|
} else if (key.escape) {
|
|
62875
63660
|
setRailFocus(null);
|
|
62876
63661
|
return;
|
|
62877
|
-
} else if (
|
|
63662
|
+
} else if (isChordLead(input, key)) {
|
|
62878
63663
|
railChordRef.current = true;
|
|
62879
63664
|
return;
|
|
62880
|
-
} else if (
|
|
63665
|
+
} else if (chordPending && isChordAction("chat:killAgents", input, key)) {
|
|
62881
63666
|
requestStopAllAgents();
|
|
62882
63667
|
return;
|
|
62883
63668
|
} else if (key.upArrow || key.downArrow) {
|
|
@@ -62933,7 +63718,7 @@ ${plugins.map((plugin) => {
|
|
|
62933
63718
|
setRailFocus(null);
|
|
62934
63719
|
}
|
|
62935
63720
|
}
|
|
62936
|
-
if (
|
|
63721
|
+
if (isAction("app:openAgents", input, key)) {
|
|
62937
63722
|
if (agentSurfaceRef.current) {
|
|
62938
63723
|
setAgentSurface(null);
|
|
62939
63724
|
return;
|
|
@@ -62974,7 +63759,7 @@ ${plugins.map((plugin) => {
|
|
|
62974
63759
|
return;
|
|
62975
63760
|
}
|
|
62976
63761
|
const hasPhaseLevel = workflow ? cockpitEntryFocus(workflow) === "phases" : false;
|
|
62977
|
-
if (
|
|
63762
|
+
if (isAction("app:interrupt", input, key) || input.toLowerCase() === "q") {
|
|
62978
63763
|
setAgentSurface(null);
|
|
62979
63764
|
return;
|
|
62980
63765
|
}
|
|
@@ -63111,7 +63896,7 @@ ${plugins.map((plugin) => {
|
|
|
63111
63896
|
setViewNotice(void 0);
|
|
63112
63897
|
return;
|
|
63113
63898
|
}
|
|
63114
|
-
if (
|
|
63899
|
+
if (isAction("app:interrupt", input, key)) {
|
|
63115
63900
|
if (railActionFor(selected) === "stop") session?.stopSubagent?.(selected.viewId);
|
|
63116
63901
|
setAgentSurface(null);
|
|
63117
63902
|
setViewNotice(void 0);
|
|
@@ -63127,7 +63912,7 @@ ${plugins.map((plugin) => {
|
|
|
63127
63912
|
return;
|
|
63128
63913
|
}
|
|
63129
63914
|
} else {
|
|
63130
|
-
if (!agentView.composing && input.toLowerCase() === "q" ||
|
|
63915
|
+
if (!agentView.composing && input.toLowerCase() === "q" || isAction("app:interrupt", input, key)) {
|
|
63131
63916
|
setAgentSurface(null);
|
|
63132
63917
|
return;
|
|
63133
63918
|
}
|
|
@@ -63172,7 +63957,7 @@ ${plugins.map((plugin) => {
|
|
|
63172
63957
|
const option = options[index];
|
|
63173
63958
|
if (option) applyChoiceSelection(picker.options.indexOf(option));
|
|
63174
63959
|
}, "applyVisibleChoice");
|
|
63175
|
-
if (key.escape ||
|
|
63960
|
+
if (key.escape || isAction("app:interrupt", input, key)) {
|
|
63176
63961
|
reviewChoiceInFlightRef.current = null;
|
|
63177
63962
|
setSelectedChoice(0);
|
|
63178
63963
|
setChoicePicker(key.escape ? picker.back ?? null : null);
|
|
@@ -63251,7 +64036,7 @@ ${plugins.map((plugin) => {
|
|
|
63251
64036
|
if (copyPickerRef.current) {
|
|
63252
64037
|
if (copyPickerCommittedRef.current !== copyPickerRef.current) return;
|
|
63253
64038
|
const targets = copyPickerRef.current.targets;
|
|
63254
|
-
if (key.escape ||
|
|
64039
|
+
if (key.escape || isAction("app:interrupt", input, key)) {
|
|
63255
64040
|
setCopyPicker(null);
|
|
63256
64041
|
return;
|
|
63257
64042
|
}
|
|
@@ -63283,7 +64068,7 @@ ${plugins.map((plugin) => {
|
|
|
63283
64068
|
}
|
|
63284
64069
|
return;
|
|
63285
64070
|
}
|
|
63286
|
-
if (
|
|
64071
|
+
if (isAction("chat:clearScreen", input, key)) {
|
|
63287
64072
|
if (state !== "idle" || abortRef.current || hasUnsettledTurn()) {
|
|
63288
64073
|
pushMessage("system", "Ctrl+L is unavailable while a reply is in progress.");
|
|
63289
64074
|
return;
|
|
@@ -63295,8 +64080,11 @@ ${plugins.map((plugin) => {
|
|
|
63295
64080
|
if (handoffParkRef.current && phase === "ready" && state === "idle" && !abortRef.current && (key.return && !composerHasDraft || key.escape)) {
|
|
63296
64081
|
const parked = handoffParkRef.current;
|
|
63297
64082
|
setHandoffPark(null);
|
|
63298
|
-
if (key.return)
|
|
63299
|
-
|
|
64083
|
+
if (key.return) {
|
|
64084
|
+
autoResumeAttemptRef.current = 0;
|
|
64085
|
+
selfMendingPauseRowRef.current.forget();
|
|
64086
|
+
void resumeActiveTurn({ handoffReason: parked.reason });
|
|
64087
|
+
} else void abandonActiveTurn("The operator stopped the turn a tool paused for them.");
|
|
63300
64088
|
return;
|
|
63301
64089
|
}
|
|
63302
64090
|
if (key.escape && queueSelectionRef.current !== null) {
|
|
@@ -63307,15 +64095,15 @@ ${plugins.map((plugin) => {
|
|
|
63307
64095
|
interruptWithRow(true, { always: true });
|
|
63308
64096
|
return;
|
|
63309
64097
|
}
|
|
63310
|
-
if (
|
|
64098
|
+
if (isAction("app:toggleTranscript", input, key)) {
|
|
63311
64099
|
setTranscriptScreen(true);
|
|
63312
64100
|
return;
|
|
63313
64101
|
}
|
|
63314
|
-
if (
|
|
64102
|
+
if (isAction("app:exit", input, key) && phase === "ready" && !composerHasDraft && permission === null && textPrompt === null && choicePickerRef.current === null && copyPicker === null) {
|
|
63315
64103
|
armExit("Ctrl-D");
|
|
63316
64104
|
return;
|
|
63317
64105
|
}
|
|
63318
|
-
if (
|
|
64106
|
+
if (isAction("app:interrupt", input, key)) {
|
|
63319
64107
|
if (interruptWithRow(false)) return;
|
|
63320
64108
|
const stoppable = stoppableBackgroundAgents(railRowsRef.current);
|
|
63321
64109
|
if (stoppable.length > 0) {
|
|
@@ -63355,6 +64143,8 @@ ${plugins.map((plugin) => {
|
|
|
63355
64143
|
);
|
|
63356
64144
|
const visibleActiveTools = activeTools.filter(
|
|
63357
64145
|
(tool) => tool.fold === void 0 && (tool.toolName.toLowerCase() !== "agent" || !(tool.turnId ? representedSubagentTools.has(JSON.stringify([tool.turnId, tool.id])) : representedUnscopedSubagentToolUseIds.has(tool.id)))
|
|
64146
|
+
).map(
|
|
64147
|
+
(tool) => tool.command !== void 0 && offeredCommands.has(tool.command) ? { ...tool, canBackground: true } : tool
|
|
63358
64148
|
);
|
|
63359
64149
|
const selectedSubagent = agentSurface ? subagents.find((agent) => agent.viewId === agentSurface.selectedId) : void 0;
|
|
63360
64150
|
const childComposerAvailable = Boolean(
|
|
@@ -63375,7 +64165,7 @@ ${plugins.map((plugin) => {
|
|
|
63375
64165
|
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
64166
|
const currentNotice = notices.current;
|
|
63377
64167
|
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);
|
|
64168
|
+
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
64169
|
const permissionSource = reviewSource(permission, scopeRef.current?.sessionId);
|
|
63380
64170
|
const permissionOwner = permissionSource ? subagents.find((agent) => agent.sessionId === permissionSource) : void 0;
|
|
63381
64171
|
const permissionSourceLabel = permissionSource ? permissionOwner ? `from the ${permissionOwner.description} agent` : "from another agent" : void 0;
|
|
@@ -63470,7 +64260,11 @@ ${plugins.map((plugin) => {
|
|
|
63470
64260
|
{
|
|
63471
64261
|
conversations: resumeList,
|
|
63472
64262
|
selected: selectedResume,
|
|
63473
|
-
mode: phase === "unarchive" ? "restore" : "resume"
|
|
64263
|
+
mode: phase === "unarchive" ? "restore" : "resume",
|
|
64264
|
+
query: resumeQuery,
|
|
64265
|
+
scope: resumeScope,
|
|
64266
|
+
renaming: resumeRenaming,
|
|
64267
|
+
...resumeNotice !== void 0 ? { notice: resumeNotice } : {}
|
|
63474
64268
|
}
|
|
63475
64269
|
) : phase === "edit" ? rewind ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
63476
64270
|
RewindPicker,
|
|
@@ -63521,7 +64315,7 @@ ${plugins.map((plugin) => {
|
|
|
63521
64315
|
LiveActivity,
|
|
63522
64316
|
{
|
|
63523
64317
|
compact: compactWork,
|
|
63524
|
-
...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : {},
|
|
64318
|
+
...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : workingStepLabel ? { activityLabel: workingStepLabel } : {},
|
|
63525
64319
|
activeTools: visibleActiveTools,
|
|
63526
64320
|
working: state === "thinking" || state === "tool",
|
|
63527
64321
|
compacting,
|
|
@@ -63706,6 +64500,7 @@ ${plugins.map((plugin) => {
|
|
|
63706
64500
|
onClearedDraft: (text) => setHistory((prev) => [...prev, text]),
|
|
63707
64501
|
onStepReasoningEffort: stepReasoningEffort,
|
|
63708
64502
|
onExternalEdit: requestExternalEditor,
|
|
64503
|
+
onToggleThinking: toggleThinking,
|
|
63709
64504
|
onEditPrevious: openPromptEditor,
|
|
63710
64505
|
draftToRestore: composerDraft,
|
|
63711
64506
|
onDraftRestored: (token) => setComposerDraft((draft) => draft?.token === token ? null : draft),
|
|
@@ -63723,6 +64518,7 @@ ${plugins.map((plugin) => {
|
|
|
63723
64518
|
onLeave: /* @__PURE__ */ __name(() => setQueueSelection(null), "onLeave")
|
|
63724
64519
|
},
|
|
63725
64520
|
onSendNow: sendPendingNow,
|
|
64521
|
+
onBackgroundCommand: backgroundRunningCommand,
|
|
63726
64522
|
onStopAllAgents: requestStopAllAgents,
|
|
63727
64523
|
railFocused: railFocus !== null,
|
|
63728
64524
|
userCommands,
|
|
@@ -63759,6 +64555,7 @@ ${plugins.map((plugin) => {
|
|
|
63759
64555
|
dialogOpen: boxOwnsKeys,
|
|
63760
64556
|
permissionMode: displayedPermissionMode,
|
|
63761
64557
|
canCycleMode: true,
|
|
64558
|
+
sandboxShell,
|
|
63762
64559
|
composerMounted: showComposerSurface,
|
|
63763
64560
|
restingHint: ctx.statusLine === void 0,
|
|
63764
64561
|
shellCount: showComposerSurface && !childSurfaceOpen ? runningShellCount : 0,
|
|
@@ -63998,7 +64795,7 @@ function pluginActionPicker(owner, name) {
|
|
|
63998
64795
|
__name(pluginActionPicker, "pluginActionPicker");
|
|
63999
64796
|
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
64797
|
var AUTO_UNAVAILABLE_NOTICE = "Auto mode is not available in this session.";
|
|
64001
|
-
function permissionPicker(mode, more = false, availability = { bypass: true, auto: true }) {
|
|
64798
|
+
function permissionPicker(mode, more = false, availability = { bypass: true, auto: true }, sandboxedShell = false) {
|
|
64002
64799
|
const current = mode;
|
|
64003
64800
|
const values = more ? ["strict", "rules"] : ["prompt", "accept-edits", "plan", "bypass", "classify", "more"];
|
|
64004
64801
|
const unavailable2 = /* @__PURE__ */ __name((value) => {
|
|
@@ -64026,7 +64823,7 @@ function permissionPicker(mode, more = false, availability = { bypass: true, aut
|
|
|
64026
64823
|
const disabledReason = unavailable2(value);
|
|
64027
64824
|
return {
|
|
64028
64825
|
label: permissionModeLabel(value),
|
|
64029
|
-
description: permissionModeDescription(value),
|
|
64826
|
+
description: permissionModeDescription(value, { sandboxedShell }),
|
|
64030
64827
|
current: value === current,
|
|
64031
64828
|
...disabledReason ? { disabledReason } : {}
|
|
64032
64829
|
};
|
|
@@ -64656,4 +65453,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
64656
65453
|
* LICENSE file in the root directory of this source tree.
|
|
64657
65454
|
*)
|
|
64658
65455
|
*/
|
|
64659
|
-
//# sourceMappingURL=tui-
|
|
65456
|
+
//# sourceMappingURL=tui-TNCMJCJJ.js.map
|