@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,41 +1,46 @@
|
|
|
1
1
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
choiceDisplayText
|
|
5
|
-
} from "./chunk-LFI6O7WL.js";
|
|
6
3
|
import {
|
|
7
4
|
setUserConfigValue
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOG4Z42R.js";
|
|
9
6
|
import {
|
|
10
7
|
isCompletionArgument
|
|
11
8
|
} from "./chunk-JV3LONAU.js";
|
|
9
|
+
import {
|
|
10
|
+
choiceDisplayText
|
|
11
|
+
} from "./chunk-2OVZNENW.js";
|
|
12
12
|
import {
|
|
13
13
|
SKILL_NAME_MAX_CHARS,
|
|
14
14
|
SKILL_NAME_PATTERN,
|
|
15
15
|
applyPalette,
|
|
16
16
|
explainFailure,
|
|
17
|
-
resolveTurnGuards
|
|
18
|
-
|
|
17
|
+
resolveTurnGuards,
|
|
18
|
+
sandboxRunsShellUnasked
|
|
19
|
+
} from "./chunk-I7FY5SK5.js";
|
|
20
|
+
import {
|
|
21
|
+
discoverSkills,
|
|
22
|
+
loadSkillBody
|
|
23
|
+
} from "./chunk-VWNLO4OM.js";
|
|
24
|
+
import {
|
|
25
|
+
CLI_VERSION
|
|
26
|
+
} from "./chunk-HE7WUOX2.js";
|
|
19
27
|
import {
|
|
20
28
|
THEME_NAMES,
|
|
21
29
|
parseThemeSetting,
|
|
22
30
|
renderConfigDebug,
|
|
23
31
|
resolveTheme,
|
|
24
32
|
themeLabel
|
|
25
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ODOM3I7B.js";
|
|
26
34
|
import {
|
|
27
35
|
displayPath,
|
|
28
36
|
homePath,
|
|
29
37
|
plural
|
|
30
38
|
} from "./chunk-XPS3W7FC.js";
|
|
31
|
-
import {
|
|
32
|
-
CLI_VERSION
|
|
33
|
-
} from "./chunk-HE7WUOX2.js";
|
|
34
39
|
import {
|
|
35
40
|
permissionModeDescription,
|
|
36
41
|
permissionModeFromName,
|
|
37
42
|
permissionModeLabel
|
|
38
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7WQS7BP2.js";
|
|
39
44
|
import {
|
|
40
45
|
terminalDisplayText
|
|
41
46
|
} from "./chunk-IYUW2RAA.js";
|
|
@@ -47,13 +52,13 @@ import {
|
|
|
47
52
|
} from "./chunk-U5UV2YRE.js";
|
|
48
53
|
import {
|
|
49
54
|
namzuHomePath
|
|
50
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IJUCXVG5.js";
|
|
51
56
|
import {
|
|
52
57
|
RegistryCollisionError,
|
|
53
58
|
isMemoryType,
|
|
54
59
|
kernelHostCommands,
|
|
55
60
|
parseFrontmatter
|
|
56
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-GNG6HJIV.js";
|
|
57
62
|
import {
|
|
58
63
|
__commonJS,
|
|
59
64
|
__name,
|
|
@@ -454,8 +459,8 @@ var require_react_production = __commonJS({
|
|
|
454
459
|
exports.use = function(usable) {
|
|
455
460
|
return ReactSharedInternals.H.use(usable);
|
|
456
461
|
};
|
|
457
|
-
exports.useActionState = function(
|
|
458
|
-
return ReactSharedInternals.H.useActionState(
|
|
462
|
+
exports.useActionState = function(action2, initialState, permalink) {
|
|
463
|
+
return ReactSharedInternals.H.useActionState(action2, initialState, permalink);
|
|
459
464
|
};
|
|
460
465
|
exports.useCallback = function(callback, deps) {
|
|
461
466
|
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
@@ -1440,9 +1445,9 @@ var require_react_development = __commonJS({
|
|
|
1440
1445
|
exports.use = function(usable) {
|
|
1441
1446
|
return resolveDispatcher().use(usable);
|
|
1442
1447
|
};
|
|
1443
|
-
exports.useActionState = function(
|
|
1448
|
+
exports.useActionState = function(action2, initialState, permalink) {
|
|
1444
1449
|
return resolveDispatcher().useActionState(
|
|
1445
|
-
|
|
1450
|
+
action2,
|
|
1446
1451
|
initialState,
|
|
1447
1452
|
permalink
|
|
1448
1453
|
);
|
|
@@ -1536,7 +1541,11 @@ var require_react = __commonJS({
|
|
|
1536
1541
|
// src/user-commands/store.ts
|
|
1537
1542
|
import { readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
1538
1543
|
import { platform } from "node:os";
|
|
1539
|
-
import { join, resolve } from "node:path";
|
|
1544
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
1545
|
+
function displayHint(hint) {
|
|
1546
|
+
return /^[[<(]/.test(hint) ? hint : `[${hint}]`;
|
|
1547
|
+
}
|
|
1548
|
+
__name(displayHint, "displayHint");
|
|
1540
1549
|
var ARGUMENTS_TOKEN = "$ARGUMENTS";
|
|
1541
1550
|
function userCommandsDir(home) {
|
|
1542
1551
|
return join(namzuHomePath(home), "commands");
|
|
@@ -1568,9 +1577,17 @@ function readCommandsFrom(dir, source) {
|
|
|
1568
1577
|
out.push({ name, description: "(no description)", template: raw.trim(), path, source });
|
|
1569
1578
|
continue;
|
|
1570
1579
|
}
|
|
1571
|
-
const { values, body } = parseFrontmatter(raw, path);
|
|
1580
|
+
const { values, body } = parseFrontmatter(raw, path, { lists: ["argument-hint"] });
|
|
1572
1581
|
const description = values.description?.kind === "scalar" ? values.description.value : "(no description)";
|
|
1573
|
-
|
|
1582
|
+
const hint = values["argument-hint"]?.kind === "scalar" ? values["argument-hint"].value.trim() : "";
|
|
1583
|
+
out.push({
|
|
1584
|
+
name,
|
|
1585
|
+
description,
|
|
1586
|
+
template: body,
|
|
1587
|
+
path,
|
|
1588
|
+
source,
|
|
1589
|
+
...hint ? { argumentHint: displayHint(hint) } : {}
|
|
1590
|
+
});
|
|
1574
1591
|
} catch (err) {
|
|
1575
1592
|
out.push({
|
|
1576
1593
|
name,
|
|
@@ -1592,6 +1609,7 @@ function discoverUserCommands(opts = {}) {
|
|
|
1592
1609
|
const user = readCommandsFrom(userDir, "user");
|
|
1593
1610
|
const project = samePhysicalDirectory(userDir, projectDir) ? [] : readCommandsFrom(projectDir, "project");
|
|
1594
1611
|
const byName = /* @__PURE__ */ new Map();
|
|
1612
|
+
for (const c of skillCommands(opts)) byName.set(c.name, c);
|
|
1595
1613
|
for (const c of user) byName.set(c.name, c);
|
|
1596
1614
|
for (const c of project) byName.set(c.name, c);
|
|
1597
1615
|
return [...byName.values()].map(
|
|
@@ -1599,6 +1617,37 @@ function discoverUserCommands(opts = {}) {
|
|
|
1599
1617
|
).sort((a, b) => a.name.localeCompare(b.name));
|
|
1600
1618
|
}
|
|
1601
1619
|
__name(discoverUserCommands, "discoverUserCommands");
|
|
1620
|
+
function skillAsCommand(skill) {
|
|
1621
|
+
const base = {
|
|
1622
|
+
name: skill.name,
|
|
1623
|
+
description: skill.description,
|
|
1624
|
+
path: skill.path,
|
|
1625
|
+
source: "skill",
|
|
1626
|
+
...skill.argumentHint ? { argumentHint: displayHint(skill.argumentHint) } : {}
|
|
1627
|
+
};
|
|
1628
|
+
if (skill.problem) return { ...base, template: "", problem: skill.problem };
|
|
1629
|
+
try {
|
|
1630
|
+
const body = loadSkillBody(skill);
|
|
1631
|
+
return { ...base, template: `Base directory for this skill: ${dirname(skill.path)}
|
|
1632
|
+
|
|
1633
|
+
${body}` };
|
|
1634
|
+
} catch (err) {
|
|
1635
|
+
return { ...base, template: "", problem: err instanceof Error ? err.message : String(err) };
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
__name(skillAsCommand, "skillAsCommand");
|
|
1639
|
+
function skillCommands(opts) {
|
|
1640
|
+
const mode = opts.skillCommands ?? "none";
|
|
1641
|
+
if (mode === "none") return [];
|
|
1642
|
+
return discoverSkills({
|
|
1643
|
+
...opts.home !== void 0 ? { home: opts.home } : {},
|
|
1644
|
+
...opts.cwd !== void 0 ? { cwd: opts.cwd } : {},
|
|
1645
|
+
...opts.skills !== void 0 ? { config: opts.skills } : {}
|
|
1646
|
+
}).filter(
|
|
1647
|
+
(skill) => skill.invocation !== "model" && skill.userInvocable !== false && (mode === "all" || skill.tier !== "system")
|
|
1648
|
+
).map(skillAsCommand);
|
|
1649
|
+
}
|
|
1650
|
+
__name(skillCommands, "skillCommands");
|
|
1602
1651
|
function samePhysicalDirectory(left, right) {
|
|
1603
1652
|
const canonical = /* @__PURE__ */ __name((path) => {
|
|
1604
1653
|
let value;
|
|
@@ -1629,6 +1678,9 @@ function expandHeadlessCommand(prompt, opts = {}) {
|
|
|
1629
1678
|
const commands = discoverUserCommands({
|
|
1630
1679
|
...opts.home !== void 0 ? { home: opts.home } : {},
|
|
1631
1680
|
...opts.cwd !== void 0 ? { cwd: opts.cwd } : {},
|
|
1681
|
+
...opts.skills !== void 0 ? { skills: opts.skills } : {},
|
|
1682
|
+
// A skill that ships with Namzu is not something this project declared.
|
|
1683
|
+
skillCommands: "declared",
|
|
1632
1684
|
reserved: [...builtins]
|
|
1633
1685
|
});
|
|
1634
1686
|
const found = commands.find((c) => c.name === name);
|
|
@@ -1650,13 +1702,13 @@ function expandCommand(command, args) {
|
|
|
1650
1702
|
return { ok: true, prompt: command.template.split(ARGUMENTS_TOKEN).join(trimmed) };
|
|
1651
1703
|
}
|
|
1652
1704
|
if (trimmed.length === 0) return { ok: true, prompt: command.template };
|
|
1705
|
+
const file = basename(command.path);
|
|
1706
|
+
const fileName = file === "SKILL.md" ? `${basename(dirname(command.path))}/${file}` : file;
|
|
1653
1707
|
return {
|
|
1654
1708
|
ok: false,
|
|
1655
1709
|
reason: [
|
|
1656
|
-
`/${command.name}
|
|
1657
|
-
|
|
1658
|
-
`Add ${ARGUMENTS_TOKEN} where they belong in ${command.path}, and they will be`,
|
|
1659
|
-
"substituted there. Running it now would silently discard them."
|
|
1710
|
+
`/${command.name} does not take extra text, so \u201C${trimmed}\u201D was not used.`,
|
|
1711
|
+
`Run /${command.name} on its own, or edit ${fileName} to say where extra text goes.`
|
|
1660
1712
|
].join("\n")
|
|
1661
1713
|
};
|
|
1662
1714
|
}
|
|
@@ -1665,7 +1717,7 @@ __name(expandCommand, "expandCommand");
|
|
|
1665
1717
|
// src/installation.ts
|
|
1666
1718
|
import { createHash } from "node:crypto";
|
|
1667
1719
|
import { readFileSync as readFileSync2, readdirSync as readdirSync2 } from "node:fs";
|
|
1668
|
-
import { dirname, join as join2, relative } from "node:path";
|
|
1720
|
+
import { dirname as dirname2, join as join2, relative } from "node:path";
|
|
1669
1721
|
import { fileURLToPath } from "node:url";
|
|
1670
1722
|
function fingerprintCli(directory) {
|
|
1671
1723
|
const hash = createHash("sha256");
|
|
@@ -1691,7 +1743,7 @@ __name(fingerprintCli, "fingerprintCli");
|
|
|
1691
1743
|
var cached;
|
|
1692
1744
|
function installationRows() {
|
|
1693
1745
|
if (cached) return cached;
|
|
1694
|
-
const directory =
|
|
1746
|
+
const directory = dirname2(fileURLToPath(new URL("../", import.meta.url).href + "installation.js"));
|
|
1695
1747
|
let fingerprint = "unavailable";
|
|
1696
1748
|
try {
|
|
1697
1749
|
fingerprint = fingerprintCli(directory);
|
|
@@ -1736,6 +1788,35 @@ function statusCard(rows, columns = 80) {
|
|
|
1736
1788
|
}
|
|
1737
1789
|
__name(statusCard, "statusCard");
|
|
1738
1790
|
|
|
1791
|
+
// src/tui/tool-server-rows.ts
|
|
1792
|
+
function plainToolServerReason(reason) {
|
|
1793
|
+
const flat = terminalDisplayText(reason).replace(/\s+/g, " ").trim();
|
|
1794
|
+
if (isToolServerTimeout(flat)) return "It did not answer in time.";
|
|
1795
|
+
if (flat === "") return "No reason was given.";
|
|
1796
|
+
return /[.!?]$/.test(flat) ? flat : `${flat}.`;
|
|
1797
|
+
}
|
|
1798
|
+
__name(plainToolServerReason, "plainToolServerReason");
|
|
1799
|
+
var isToolServerTimeout = /* @__PURE__ */ __name((reason) => /did not answer within \d+\s*ms/i.test(reason), "isToolServerTimeout");
|
|
1800
|
+
function toolServerRow(name, status) {
|
|
1801
|
+
const label = terminalDisplayText(name);
|
|
1802
|
+
const connected = status.connected.find((server) => server.name === name);
|
|
1803
|
+
if (connected) {
|
|
1804
|
+
return {
|
|
1805
|
+
level: "notice",
|
|
1806
|
+
text: `Tool server ${label} \xB7 ${plural(connected.toolCount, "tool")}`
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
const failed = status.failed.find((server) => server.name === name);
|
|
1810
|
+
if (failed) {
|
|
1811
|
+
return {
|
|
1812
|
+
level: "warning",
|
|
1813
|
+
text: `Tool server ${label} is not available. ${plainToolServerReason(failed.reason)}`
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
return void 0;
|
|
1817
|
+
}
|
|
1818
|
+
__name(toolServerRow, "toolServerRow");
|
|
1819
|
+
|
|
1739
1820
|
// src/tui/turn-limits-settings.ts
|
|
1740
1821
|
var TURN_LIMIT_FIELDS = [
|
|
1741
1822
|
{
|
|
@@ -1817,7 +1898,7 @@ __name(turnLimitCommands, "turnLimitCommands");
|
|
|
1817
1898
|
|
|
1818
1899
|
// src/release-notes.ts
|
|
1819
1900
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
1820
|
-
import { dirname as
|
|
1901
|
+
import { dirname as dirname3, join as join3 } from "node:path";
|
|
1821
1902
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
1822
1903
|
function changelogSection(changelog, version) {
|
|
1823
1904
|
const lines = changelog.split("\n");
|
|
@@ -1840,7 +1921,7 @@ function changelogVersions(changelog) {
|
|
|
1840
1921
|
__name(changelogVersions, "changelogVersions");
|
|
1841
1922
|
function readChangelog() {
|
|
1842
1923
|
try {
|
|
1843
|
-
const here =
|
|
1924
|
+
const here = dirname3(fileURLToPath2(new URL("../", import.meta.url).href + "release-notes.js"));
|
|
1844
1925
|
return readFileSync3(join3(here, "..", "CHANGELOG.md"), "utf8");
|
|
1845
1926
|
} catch {
|
|
1846
1927
|
return null;
|
|
@@ -1867,6 +1948,435 @@ ${shown.join("\n")}${cut}`;
|
|
|
1867
1948
|
}
|
|
1868
1949
|
__name(renderReleaseNotes, "renderReleaseNotes");
|
|
1869
1950
|
|
|
1951
|
+
// src/tui/keymap.ts
|
|
1952
|
+
var action = /* @__PURE__ */ __name((spec) => spec, "action");
|
|
1953
|
+
var ACTIONS = [
|
|
1954
|
+
action({
|
|
1955
|
+
id: "app:interrupt",
|
|
1956
|
+
context: "Global",
|
|
1957
|
+
group: "Conversation",
|
|
1958
|
+
keys: ["ctrl+c"],
|
|
1959
|
+
help: "Stop the reply; press twice to exit"
|
|
1960
|
+
}),
|
|
1961
|
+
action({
|
|
1962
|
+
id: "app:exit",
|
|
1963
|
+
context: "Global",
|
|
1964
|
+
group: "Conversation",
|
|
1965
|
+
keys: ["ctrl+d"],
|
|
1966
|
+
help: "Exit, on an empty message (press twice)"
|
|
1967
|
+
}),
|
|
1968
|
+
action({
|
|
1969
|
+
id: "app:toggleTranscript",
|
|
1970
|
+
context: "Global",
|
|
1971
|
+
group: "Conversation",
|
|
1972
|
+
keys: ["ctrl+o"],
|
|
1973
|
+
help: "Open the detailed transcript"
|
|
1974
|
+
}),
|
|
1975
|
+
action({
|
|
1976
|
+
id: "app:openAgents",
|
|
1977
|
+
context: "Global",
|
|
1978
|
+
group: "Agents and jobs",
|
|
1979
|
+
keys: ["ctrl+t"],
|
|
1980
|
+
help: "Open or close delegated work"
|
|
1981
|
+
}),
|
|
1982
|
+
action({
|
|
1983
|
+
id: "history:search",
|
|
1984
|
+
context: "Global",
|
|
1985
|
+
group: "Conversation",
|
|
1986
|
+
keys: ["ctrl+r"],
|
|
1987
|
+
help: "Search earlier messages"
|
|
1988
|
+
}),
|
|
1989
|
+
action({
|
|
1990
|
+
id: "historySearch:newer",
|
|
1991
|
+
context: "HistorySearch",
|
|
1992
|
+
group: "Conversation",
|
|
1993
|
+
keys: ["ctrl+s"],
|
|
1994
|
+
help: "While searching, go to a newer match"
|
|
1995
|
+
}),
|
|
1996
|
+
action({
|
|
1997
|
+
id: "chat:cancel",
|
|
1998
|
+
context: "Chat",
|
|
1999
|
+
group: "Conversation",
|
|
2000
|
+
keys: ["escape"],
|
|
2001
|
+
help: "Interrupt a reply; twice clears a draft, or on an empty message opens rewind"
|
|
2002
|
+
}),
|
|
2003
|
+
action({
|
|
2004
|
+
id: "chat:clearScreen",
|
|
2005
|
+
context: "Chat",
|
|
2006
|
+
group: "Conversation",
|
|
2007
|
+
keys: ["ctrl+l"],
|
|
2008
|
+
help: "Clear the screen (the conversation is kept)"
|
|
2009
|
+
}),
|
|
2010
|
+
action({
|
|
2011
|
+
id: "chat:submit",
|
|
2012
|
+
context: "Chat",
|
|
2013
|
+
group: "Conversation",
|
|
2014
|
+
keys: ["return"],
|
|
2015
|
+
help: "Send the message, or steer the reply in progress"
|
|
2016
|
+
}),
|
|
2017
|
+
action({
|
|
2018
|
+
id: "chat:queue",
|
|
2019
|
+
context: "Chat",
|
|
2020
|
+
group: "Conversation",
|
|
2021
|
+
keys: ["tab"],
|
|
2022
|
+
help: "Queue the message for after the reply"
|
|
2023
|
+
}),
|
|
2024
|
+
action({
|
|
2025
|
+
id: "chat:newline",
|
|
2026
|
+
context: "Chat",
|
|
2027
|
+
group: "Editing",
|
|
2028
|
+
keys: ["shift+return", "meta+return", "ctrl+j"],
|
|
2029
|
+
help: "New line"
|
|
2030
|
+
}),
|
|
2031
|
+
action({
|
|
2032
|
+
id: "chat:sendNow",
|
|
2033
|
+
context: "Chat",
|
|
2034
|
+
group: "Conversation",
|
|
2035
|
+
keys: ["ctrl+x ctrl+s"],
|
|
2036
|
+
help: "Send queued messages now"
|
|
2037
|
+
}),
|
|
2038
|
+
action({
|
|
2039
|
+
id: "chat:recallQueued",
|
|
2040
|
+
context: "Chat",
|
|
2041
|
+
group: "Conversation",
|
|
2042
|
+
keys: ["meta+up"],
|
|
2043
|
+
help: "Bring the last queued message back for editing"
|
|
2044
|
+
}),
|
|
2045
|
+
action({
|
|
2046
|
+
id: "chat:stash",
|
|
2047
|
+
context: "Chat",
|
|
2048
|
+
group: "Editing",
|
|
2049
|
+
keys: ["ctrl+s"],
|
|
2050
|
+
help: "Set the draft aside; press again on an empty message to bring it back"
|
|
2051
|
+
}),
|
|
2052
|
+
action({
|
|
2053
|
+
id: "chat:undo",
|
|
2054
|
+
context: "Chat",
|
|
2055
|
+
group: "Editing",
|
|
2056
|
+
keys: ["ctrl+_", "ctrl+-"],
|
|
2057
|
+
help: "Undo the last edit to the draft"
|
|
2058
|
+
}),
|
|
2059
|
+
action({
|
|
2060
|
+
id: "chat:externalEditor",
|
|
2061
|
+
context: "Chat",
|
|
2062
|
+
group: "Editing",
|
|
2063
|
+
keys: ["ctrl+g", "ctrl+x ctrl+e"],
|
|
2064
|
+
help: "Edit the draft in your editor"
|
|
2065
|
+
}),
|
|
2066
|
+
action({
|
|
2067
|
+
id: "chat:imagePaste",
|
|
2068
|
+
context: "Chat",
|
|
2069
|
+
group: "Editing",
|
|
2070
|
+
keys: ["ctrl+v", "meta+v"],
|
|
2071
|
+
help: "Paste an image from the clipboard"
|
|
2072
|
+
}),
|
|
2073
|
+
action({
|
|
2074
|
+
id: "chat:triggerToggle",
|
|
2075
|
+
context: "Chat",
|
|
2076
|
+
group: "Editing",
|
|
2077
|
+
keys: ["meta+w"],
|
|
2078
|
+
help: "Drop or restore the keyword nearest the cursor"
|
|
2079
|
+
}),
|
|
2080
|
+
action({
|
|
2081
|
+
id: "chat:cycleMode",
|
|
2082
|
+
context: "Chat",
|
|
2083
|
+
group: "Models and modes",
|
|
2084
|
+
keys: ["shift+tab"],
|
|
2085
|
+
help: "Change the permission mode"
|
|
2086
|
+
}),
|
|
2087
|
+
action({
|
|
2088
|
+
id: "chat:modelPicker",
|
|
2089
|
+
context: "Chat",
|
|
2090
|
+
group: "Models and modes",
|
|
2091
|
+
keys: ["meta+p"],
|
|
2092
|
+
help: "Choose a model"
|
|
2093
|
+
}),
|
|
2094
|
+
action({
|
|
2095
|
+
id: "chat:thinkingToggle",
|
|
2096
|
+
context: "Chat",
|
|
2097
|
+
group: "Models and modes",
|
|
2098
|
+
keys: ["meta+t"],
|
|
2099
|
+
help: "Switch thinking on or off"
|
|
2100
|
+
}),
|
|
2101
|
+
action({
|
|
2102
|
+
id: "chat:effortLower",
|
|
2103
|
+
context: "Chat",
|
|
2104
|
+
group: "Models and modes",
|
|
2105
|
+
keys: ["shift+down", "meta+,"],
|
|
2106
|
+
help: "Think less"
|
|
2107
|
+
}),
|
|
2108
|
+
action({
|
|
2109
|
+
id: "chat:effortRaise",
|
|
2110
|
+
context: "Chat",
|
|
2111
|
+
group: "Models and modes",
|
|
2112
|
+
keys: ["shift+up", "meta+."],
|
|
2113
|
+
help: "Think more"
|
|
2114
|
+
}),
|
|
2115
|
+
action({
|
|
2116
|
+
id: "task:background",
|
|
2117
|
+
context: "Task",
|
|
2118
|
+
group: "Agents and jobs",
|
|
2119
|
+
keys: ["ctrl+b"],
|
|
2120
|
+
help: "Move a running shell command to the background"
|
|
2121
|
+
}),
|
|
2122
|
+
action({
|
|
2123
|
+
id: "chat:killAgents",
|
|
2124
|
+
context: "Chat",
|
|
2125
|
+
group: "Agents and jobs",
|
|
2126
|
+
keys: ["ctrl+x ctrl+k"],
|
|
2127
|
+
help: "Stop all background agents"
|
|
2128
|
+
}),
|
|
2129
|
+
action({
|
|
2130
|
+
id: "edit:lineStart",
|
|
2131
|
+
context: "Chat",
|
|
2132
|
+
group: "Editing",
|
|
2133
|
+
keys: ["ctrl+a", "home"],
|
|
2134
|
+
help: "Start of the line"
|
|
2135
|
+
}),
|
|
2136
|
+
action({
|
|
2137
|
+
id: "edit:lineEnd",
|
|
2138
|
+
context: "Chat",
|
|
2139
|
+
group: "Editing",
|
|
2140
|
+
keys: ["ctrl+e", "end"],
|
|
2141
|
+
help: "End of the line"
|
|
2142
|
+
}),
|
|
2143
|
+
action({
|
|
2144
|
+
id: "edit:charLeft",
|
|
2145
|
+
context: "Chat",
|
|
2146
|
+
group: "Editing",
|
|
2147
|
+
keys: ["ctrl+b", "left"],
|
|
2148
|
+
help: "Back one character"
|
|
2149
|
+
}),
|
|
2150
|
+
action({
|
|
2151
|
+
id: "edit:charRight",
|
|
2152
|
+
context: "Chat",
|
|
2153
|
+
group: "Editing",
|
|
2154
|
+
keys: ["ctrl+f", "right"],
|
|
2155
|
+
help: "Forward one character"
|
|
2156
|
+
}),
|
|
2157
|
+
action({
|
|
2158
|
+
id: "edit:wordLeft",
|
|
2159
|
+
context: "Chat",
|
|
2160
|
+
group: "Editing",
|
|
2161
|
+
keys: ["meta+b", "ctrl+left", "meta+left"],
|
|
2162
|
+
help: "Back one word"
|
|
2163
|
+
}),
|
|
2164
|
+
action({
|
|
2165
|
+
id: "edit:wordRight",
|
|
2166
|
+
context: "Chat",
|
|
2167
|
+
group: "Editing",
|
|
2168
|
+
keys: ["meta+f", "ctrl+right", "meta+right"],
|
|
2169
|
+
help: "Forward one word"
|
|
2170
|
+
}),
|
|
2171
|
+
action({
|
|
2172
|
+
id: "edit:linePrevious",
|
|
2173
|
+
context: "Chat",
|
|
2174
|
+
group: "Editing",
|
|
2175
|
+
keys: ["up", "ctrl+p"],
|
|
2176
|
+
help: "Up a line, then through earlier messages"
|
|
2177
|
+
}),
|
|
2178
|
+
action({
|
|
2179
|
+
id: "edit:lineNext",
|
|
2180
|
+
context: "Chat",
|
|
2181
|
+
group: "Editing",
|
|
2182
|
+
keys: ["down", "ctrl+n"],
|
|
2183
|
+
help: "Down a line, then back to the draft"
|
|
2184
|
+
}),
|
|
2185
|
+
action({
|
|
2186
|
+
id: "edit:deleteForward",
|
|
2187
|
+
context: "Chat",
|
|
2188
|
+
group: "Editing",
|
|
2189
|
+
keys: ["delete", "ctrl+d"],
|
|
2190
|
+
help: "Delete the character after the cursor"
|
|
2191
|
+
}),
|
|
2192
|
+
action({
|
|
2193
|
+
id: "edit:deleteWordBack",
|
|
2194
|
+
context: "Chat",
|
|
2195
|
+
group: "Editing",
|
|
2196
|
+
keys: ["ctrl+w", "meta+backspace", "ctrl+backspace"],
|
|
2197
|
+
help: "Delete the word before the cursor"
|
|
2198
|
+
}),
|
|
2199
|
+
action({
|
|
2200
|
+
id: "edit:deleteWordForward",
|
|
2201
|
+
context: "Chat",
|
|
2202
|
+
group: "Editing",
|
|
2203
|
+
keys: ["meta+d"],
|
|
2204
|
+
help: "Delete the word after the cursor"
|
|
2205
|
+
}),
|
|
2206
|
+
action({
|
|
2207
|
+
id: "edit:deleteToLineStart",
|
|
2208
|
+
context: "Chat",
|
|
2209
|
+
group: "Editing",
|
|
2210
|
+
keys: ["ctrl+u"],
|
|
2211
|
+
help: "Delete to the start of the line"
|
|
2212
|
+
}),
|
|
2213
|
+
action({
|
|
2214
|
+
id: "edit:deleteToLineEnd",
|
|
2215
|
+
context: "Chat",
|
|
2216
|
+
group: "Editing",
|
|
2217
|
+
keys: ["ctrl+k"],
|
|
2218
|
+
help: "Delete to the end of the line"
|
|
2219
|
+
}),
|
|
2220
|
+
action({
|
|
2221
|
+
id: "edit:yank",
|
|
2222
|
+
context: "Chat",
|
|
2223
|
+
group: "Editing",
|
|
2224
|
+
keys: ["ctrl+y"],
|
|
2225
|
+
help: "Paste what was last deleted"
|
|
2226
|
+
})
|
|
2227
|
+
];
|
|
2228
|
+
var BY_ID = new Map(ACTIONS.map((spec) => [spec.id, spec]));
|
|
2229
|
+
function actionSpec(id) {
|
|
2230
|
+
const spec = BY_ID.get(id);
|
|
2231
|
+
if (!spec) throw new Error(`Unknown action ${id}`);
|
|
2232
|
+
return spec;
|
|
2233
|
+
}
|
|
2234
|
+
__name(actionSpec, "actionSpec");
|
|
2235
|
+
var STROKES = /* @__PURE__ */ new Map();
|
|
2236
|
+
function parseStroke(text) {
|
|
2237
|
+
const cached2 = STROKES.get(text);
|
|
2238
|
+
if (cached2) return cached2;
|
|
2239
|
+
const parts = text.split("+");
|
|
2240
|
+
const base = text.endsWith("+") ? "+" : parts.pop() ?? "";
|
|
2241
|
+
const mods = new Set(parts);
|
|
2242
|
+
const stroke = {
|
|
2243
|
+
ctrl: mods.has("ctrl"),
|
|
2244
|
+
meta: mods.has("meta") || mods.has("alt"),
|
|
2245
|
+
shift: mods.has("shift"),
|
|
2246
|
+
base
|
|
2247
|
+
};
|
|
2248
|
+
STROKES.set(text, stroke);
|
|
2249
|
+
return stroke;
|
|
2250
|
+
}
|
|
2251
|
+
__name(parseStroke, "parseStroke");
|
|
2252
|
+
var NAMED = {
|
|
2253
|
+
escape: "escape",
|
|
2254
|
+
return: "return",
|
|
2255
|
+
tab: "tab",
|
|
2256
|
+
backspace: "backspace",
|
|
2257
|
+
delete: "delete",
|
|
2258
|
+
up: "upArrow",
|
|
2259
|
+
down: "downArrow",
|
|
2260
|
+
left: "leftArrow",
|
|
2261
|
+
right: "rightArrow",
|
|
2262
|
+
pageup: "pageUp",
|
|
2263
|
+
pagedown: "pageDown",
|
|
2264
|
+
home: "home",
|
|
2265
|
+
end: "end"
|
|
2266
|
+
};
|
|
2267
|
+
var UNIT_SEPARATOR = "";
|
|
2268
|
+
function matchStroke(text, input, key) {
|
|
2269
|
+
const stroke = parseStroke(text);
|
|
2270
|
+
if (stroke.ctrl && !key.ctrl && !(stroke.base === "_" && input === UNIT_SEPARATOR)) return false;
|
|
2271
|
+
if (stroke.meta && !key.meta) return false;
|
|
2272
|
+
if (stroke.shift && !key.shift) return false;
|
|
2273
|
+
const named = NAMED[stroke.base];
|
|
2274
|
+
if (named !== void 0) return key[named] === true;
|
|
2275
|
+
if (stroke.base === "_" && stroke.ctrl && input === UNIT_SEPARATOR) return true;
|
|
2276
|
+
if (!stroke.ctrl && !stroke.meta) return false;
|
|
2277
|
+
return input === stroke.base;
|
|
2278
|
+
}
|
|
2279
|
+
__name(matchStroke, "matchStroke");
|
|
2280
|
+
function strokesOf(chord) {
|
|
2281
|
+
return chord.split(" ");
|
|
2282
|
+
}
|
|
2283
|
+
__name(strokesOf, "strokesOf");
|
|
2284
|
+
function isAction(id, input, key) {
|
|
2285
|
+
for (const chord of actionSpec(id).keys) {
|
|
2286
|
+
const strokes = strokesOf(chord);
|
|
2287
|
+
if (strokes.length === 1 && matchStroke(chord, input, key)) return true;
|
|
2288
|
+
}
|
|
2289
|
+
return false;
|
|
2290
|
+
}
|
|
2291
|
+
__name(isAction, "isAction");
|
|
2292
|
+
function isChordLead(input, key) {
|
|
2293
|
+
for (const spec of ACTIONS) {
|
|
2294
|
+
for (const chord of spec.keys) {
|
|
2295
|
+
const strokes = strokesOf(chord);
|
|
2296
|
+
const lead = strokes[0];
|
|
2297
|
+
if (strokes.length === 2 && lead !== void 0 && matchStroke(lead, input, key)) return true;
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
return false;
|
|
2301
|
+
}
|
|
2302
|
+
__name(isChordLead, "isChordLead");
|
|
2303
|
+
function isChordAction(id, input, key) {
|
|
2304
|
+
for (const chord of actionSpec(id).keys) {
|
|
2305
|
+
const strokes = strokesOf(chord);
|
|
2306
|
+
const second = strokes[1];
|
|
2307
|
+
if (strokes.length === 2 && second !== void 0 && matchStroke(second, input, key)) return true;
|
|
2308
|
+
}
|
|
2309
|
+
return false;
|
|
2310
|
+
}
|
|
2311
|
+
__name(isChordAction, "isChordAction");
|
|
2312
|
+
function pressedKeyLabel(id, input, key, afterLead = false) {
|
|
2313
|
+
for (const chord of actionSpec(id).keys) {
|
|
2314
|
+
const strokes = strokesOf(chord);
|
|
2315
|
+
const stroke = afterLead ? strokes[1] : strokes[0];
|
|
2316
|
+
if (afterLead ? strokes.length !== 2 : strokes.length !== 1) continue;
|
|
2317
|
+
if (stroke !== void 0 && matchStroke(stroke, input, key)) return keyLabel(chord);
|
|
2318
|
+
}
|
|
2319
|
+
return "";
|
|
2320
|
+
}
|
|
2321
|
+
__name(pressedKeyLabel, "pressedKeyLabel");
|
|
2322
|
+
var NAME_LABELS = {
|
|
2323
|
+
meta: "Alt",
|
|
2324
|
+
ctrl: "Ctrl",
|
|
2325
|
+
shift: "Shift",
|
|
2326
|
+
escape: "Esc",
|
|
2327
|
+
return: "Enter",
|
|
2328
|
+
tab: "Tab",
|
|
2329
|
+
up: "Up",
|
|
2330
|
+
down: "Down",
|
|
2331
|
+
left: "Left",
|
|
2332
|
+
right: "Right",
|
|
2333
|
+
backspace: "Backspace",
|
|
2334
|
+
delete: "Delete",
|
|
2335
|
+
home: "Home",
|
|
2336
|
+
end: "End",
|
|
2337
|
+
pageup: "Page Up",
|
|
2338
|
+
pagedown: "Page Down"
|
|
2339
|
+
};
|
|
2340
|
+
function labelStroke(stroke) {
|
|
2341
|
+
if (stroke.endsWith("+")) return stroke.slice(0, -1).split("+").map(labelPart).join("+") + "++";
|
|
2342
|
+
return stroke.split("+").map(labelPart).join("+");
|
|
2343
|
+
}
|
|
2344
|
+
__name(labelStroke, "labelStroke");
|
|
2345
|
+
function labelPart(part) {
|
|
2346
|
+
return NAME_LABELS[part] ?? (part.length === 1 ? part.toUpperCase() : part);
|
|
2347
|
+
}
|
|
2348
|
+
__name(labelPart, "labelPart");
|
|
2349
|
+
function keyLabel(chord) {
|
|
2350
|
+
return strokesOf(chord).map(labelStroke).join(" ");
|
|
2351
|
+
}
|
|
2352
|
+
__name(keyLabel, "keyLabel");
|
|
2353
|
+
function primaryKeyLabel(id) {
|
|
2354
|
+
const first = actionSpec(id).keys[0];
|
|
2355
|
+
return first === void 0 ? "" : keyLabel(first);
|
|
2356
|
+
}
|
|
2357
|
+
__name(primaryKeyLabel, "primaryKeyLabel");
|
|
2358
|
+
var GROUP_ORDER = [
|
|
2359
|
+
"Conversation",
|
|
2360
|
+
"Models and modes",
|
|
2361
|
+
"Editing",
|
|
2362
|
+
"Agents and jobs"
|
|
2363
|
+
];
|
|
2364
|
+
function keysHelpText() {
|
|
2365
|
+
const lines = ["Keyboard shortcuts"];
|
|
2366
|
+
for (const group of GROUP_ORDER) {
|
|
2367
|
+
const rows = ACTIONS.filter((spec) => spec.group === group && spec.help !== "");
|
|
2368
|
+
if (rows.length === 0) continue;
|
|
2369
|
+
const labels = rows.map((spec) => spec.keys.map(keyLabel).join(" or "));
|
|
2370
|
+
const width = Math.max(...labels.map((label) => label.length));
|
|
2371
|
+
lines.push("", group);
|
|
2372
|
+
rows.forEach((spec, index) => {
|
|
2373
|
+
lines.push(` ${(labels[index] ?? "").padEnd(width)} ${spec.help}`);
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
return lines.join("\n");
|
|
2377
|
+
}
|
|
2378
|
+
__name(keysHelpText, "keysHelpText");
|
|
2379
|
+
|
|
1870
2380
|
// src/tui/motion.ts
|
|
1871
2381
|
var import_react = __toESM(require_react(), 1);
|
|
1872
2382
|
var reduced = false;
|
|
@@ -2075,7 +2585,7 @@ function matchSlashCommands(value, userCommands = [], builtins = CLI_LOCAL_COMMA
|
|
|
2075
2585
|
const prefix = (m[1] ?? "").toLowerCase();
|
|
2076
2586
|
const own = userCommands.map((c) => ({
|
|
2077
2587
|
name: c.name,
|
|
2078
|
-
description: c.problem ? `Unavailable: ${c.problem}` : c.description,
|
|
2588
|
+
description: c.problem ? `Unavailable: ${c.problem}` : c.argumentHint ? `${c.argumentHint} ${c.description}` : c.description,
|
|
2079
2589
|
action: /* @__PURE__ */ __name(() => ({ kind: "none" }), "action")
|
|
2080
2590
|
}));
|
|
2081
2591
|
const matches = [...builtins.filter((command) => command.discoverable !== false), ...own].filter(
|
|
@@ -2170,6 +2680,9 @@ function parseSlash(line) {
|
|
|
2170
2680
|
__name(parseSlash, "parseSlash");
|
|
2171
2681
|
function commandHelp(ctx, args) {
|
|
2172
2682
|
const name = args[0]?.replace(/^\//, "");
|
|
2683
|
+
if (args.length === 1 && name === "keys" && !(ctx.builtins ?? CLI_LOCAL_COMMANDS).some((c) => c.name === "keys")) {
|
|
2684
|
+
return { kind: "message", role: "system", content: keysHelpText() };
|
|
2685
|
+
}
|
|
2173
2686
|
if (args.length !== 1 || !name) {
|
|
2174
2687
|
return {
|
|
2175
2688
|
kind: "message",
|
|
@@ -2206,11 +2719,11 @@ function commandHelp(ctx, args) {
|
|
|
2206
2719
|
"",
|
|
2207
2720
|
...user.problem ? [] : [
|
|
2208
2721
|
"Usage:",
|
|
2209
|
-
` /${user.name}${acceptsArguments ? "
|
|
2722
|
+
` /${user.name}${acceptsArguments ? ` ${user.argumentHint ?? "[arguments]"}` : ""}`,
|
|
2210
2723
|
"",
|
|
2211
2724
|
"Running this command sends its saved prompt to the model."
|
|
2212
2725
|
],
|
|
2213
|
-
`${user
|
|
2726
|
+
`${userCommandOrigin(user)}: ${user.path}`,
|
|
2214
2727
|
...user.problem ? [`Unavailable: ${user.problem}`] : []
|
|
2215
2728
|
].join("\n")
|
|
2216
2729
|
};
|
|
@@ -2396,9 +2909,9 @@ var CLI_LOCAL_COMMANDS = [
|
|
|
2396
2909
|
name: "help",
|
|
2397
2910
|
description: "Browse commands, or show usage with /help <command>.",
|
|
2398
2911
|
help: {
|
|
2399
|
-
usage: ["/help", "/help <command>"],
|
|
2912
|
+
usage: ["/help", "/help <command>", "/help keys"],
|
|
2400
2913
|
details: [
|
|
2401
|
-
"Without a name, opens the command menu. With a name, shows help without running the command."
|
|
2914
|
+
"Without a name, opens the command menu. With a name, shows help without running the command. `/help keys` lists the keyboard shortcuts."
|
|
2402
2915
|
]
|
|
2403
2916
|
},
|
|
2404
2917
|
action: /* @__PURE__ */ __name((ctx, args) => {
|
|
@@ -2752,6 +3265,12 @@ ${dirs.map((d) => ` ${d}`).join("\n")}`
|
|
|
2752
3265
|
description: "Show usage and cost for the current or latest reply.",
|
|
2753
3266
|
action: /* @__PURE__ */ __name((ctx, args) => reportCommand("cost", args, (details) => renderCost(ctx.usage, ctx.compaction, details)), "action")
|
|
2754
3267
|
},
|
|
3268
|
+
{
|
|
3269
|
+
name: "doctor",
|
|
3270
|
+
help: { usage: ["/doctor"] },
|
|
3271
|
+
description: "Check that Namzu, its providers and the sandbox are working.",
|
|
3272
|
+
action: /* @__PURE__ */ __name((_ctx, args) => args.length === 0 ? { kind: "doctor" } : { kind: "message", role: "system", content: "Usage: /doctor" }, "action")
|
|
3273
|
+
},
|
|
2755
3274
|
{
|
|
2756
3275
|
name: "jobs",
|
|
2757
3276
|
description: "See background shells, read output, stop one.",
|
|
@@ -2921,7 +3440,11 @@ ${dirs.map((d) => ` ${d}`).join("\n")}`
|
|
|
2921
3440
|
return {
|
|
2922
3441
|
kind: "message",
|
|
2923
3442
|
role: "system",
|
|
2924
|
-
content: renderPermissions(
|
|
3443
|
+
content: renderPermissions(
|
|
3444
|
+
ctx.permissions,
|
|
3445
|
+
true,
|
|
3446
|
+
sandboxRunsShellUnasked(ctx.sandbox ?? void 0)
|
|
3447
|
+
)
|
|
2925
3448
|
};
|
|
2926
3449
|
}
|
|
2927
3450
|
const chosen = permissionModeFromName(mode);
|
|
@@ -3315,14 +3838,21 @@ function reviewTargetPrompt(target) {
|
|
|
3315
3838
|
__name(reviewTargetPrompt, "reviewTargetPrompt");
|
|
3316
3839
|
function renderMcp(mcp, details = false) {
|
|
3317
3840
|
if (mcp === null) return "Not connected yet. Tool servers have not been checked.";
|
|
3318
|
-
|
|
3841
|
+
const pending = mcp.pending ?? [];
|
|
3842
|
+
if (mcp.connected.length === 0 && mcp.failed.length === 0 && pending.length === 0) {
|
|
3319
3843
|
return "No tool servers configured. Add mcpServers to namzu.config.json.";
|
|
3320
3844
|
}
|
|
3321
3845
|
const lines = [
|
|
3322
|
-
`Tool servers: ${
|
|
3846
|
+
`Tool servers: ${[
|
|
3847
|
+
`${mcp.connected.length} connected`,
|
|
3848
|
+
...mcp.failed.length > 0 ? [`${mcp.failed.length} unavailable`] : [],
|
|
3849
|
+
...pending.length > 0 ? [`${pending.length} connecting`] : []
|
|
3850
|
+
].join(", ")}.`
|
|
3323
3851
|
];
|
|
3324
3852
|
for (const server of mcp.connected) {
|
|
3325
|
-
lines.push(
|
|
3853
|
+
lines.push(
|
|
3854
|
+
`${server.name}: connected, ${server.tools.length} ${server.tools.length === 1 ? "tool" : "tools"}`
|
|
3855
|
+
);
|
|
3326
3856
|
const drift = server.drift;
|
|
3327
3857
|
if (drift) {
|
|
3328
3858
|
for (const name of drift.added) lines.push(` added: ${terminalDisplayText(name)}`);
|
|
@@ -3341,7 +3871,11 @@ function renderMcp(mcp, details = false) {
|
|
|
3341
3871
|
for (const tool of server.tools) lines.push(` ${tool}`);
|
|
3342
3872
|
}
|
|
3343
3873
|
}
|
|
3344
|
-
for (const server of mcp.failed)
|
|
3874
|
+
for (const server of mcp.failed) {
|
|
3875
|
+
const reason = isToolServerTimeout(server.reason) ? "did not answer in time" : server.reason;
|
|
3876
|
+
lines.push(`${server.name}: unavailable \u2014 ${reason}`);
|
|
3877
|
+
}
|
|
3878
|
+
for (const name of pending) lines.push(`${name}: connecting\u2026`);
|
|
3345
3879
|
if (!details && mcp.connected.length > 0) lines.push("/mcp tools to list available tools.");
|
|
3346
3880
|
return lines.join("\n");
|
|
3347
3881
|
}
|
|
@@ -3397,7 +3931,11 @@ function renderStatus(ctx, details = false) {
|
|
|
3397
3931
|
([key, value]) => `${key}: ${key === "Executable" ? homePath(value) : value}`
|
|
3398
3932
|
),
|
|
3399
3933
|
...ctx.sessionId ? [`Conversation: ${ctx.sessionId}`] : [],
|
|
3400
|
-
...renderPermissions(
|
|
3934
|
+
...renderPermissions(
|
|
3935
|
+
ctx.permissions,
|
|
3936
|
+
details,
|
|
3937
|
+
sandboxRunsShellUnasked(ctx.sandbox ?? void 0)
|
|
3938
|
+
).split("\n")
|
|
3401
3939
|
];
|
|
3402
3940
|
const sandbox = ctx.sandbox;
|
|
3403
3941
|
if (!sandbox) {
|
|
@@ -3430,11 +3968,11 @@ function renderStatus(ctx, details = false) {
|
|
|
3430
3968
|
return lines.join("\n");
|
|
3431
3969
|
}
|
|
3432
3970
|
__name(renderStatus, "renderStatus");
|
|
3433
|
-
function renderPermissions(permissions, details = false) {
|
|
3971
|
+
function renderPermissions(permissions, details = false, sandboxedShell = false) {
|
|
3434
3972
|
const current2 = permissions.currentMode();
|
|
3435
3973
|
const effective = current2.mode;
|
|
3436
3974
|
const lines = [
|
|
3437
|
-
`Permissions: ${permissionModeLabel(effective)}. ${permissionModeDescription(effective)}`
|
|
3975
|
+
`Permissions: ${permissionModeLabel(effective)}. ${permissionModeDescription(effective, { sandboxedShell })}`
|
|
3438
3976
|
];
|
|
3439
3977
|
if (!details) return lines.join("\n");
|
|
3440
3978
|
if (current2.source === "launch-bypass")
|
|
@@ -3518,6 +4056,17 @@ function renderAgents(ids) {
|
|
|
3518
4056
|
].join("\n");
|
|
3519
4057
|
}
|
|
3520
4058
|
__name(renderAgents, "renderAgents");
|
|
4059
|
+
function userCommandOrigin(command) {
|
|
4060
|
+
if (command.source === "skill") return "Skill";
|
|
4061
|
+
return command.source === "project" ? "Project command" : "User command (all projects)";
|
|
4062
|
+
}
|
|
4063
|
+
__name(userCommandOrigin, "userCommandOrigin");
|
|
4064
|
+
function argumentHintFor(value, userCommands) {
|
|
4065
|
+
const m = /^\/([\w-]+) $/.exec(value);
|
|
4066
|
+
if (!m) return void 0;
|
|
4067
|
+
return userCommands.find((command) => command.name === m[1])?.argumentHint;
|
|
4068
|
+
}
|
|
4069
|
+
__name(argumentHintFor, "argumentHintFor");
|
|
3521
4070
|
function runSlash(line, ctx, builtins = CLI_LOCAL_COMMANDS) {
|
|
3522
4071
|
const parsed = parseSlash(line);
|
|
3523
4072
|
if (!parsed) return null;
|
|
@@ -3541,15 +4090,9 @@ function runSlash(line, ctx, builtins = CLI_LOCAL_COMMANDS) {
|
|
|
3541
4090
|
__name(runSlash, "runSlash");
|
|
3542
4091
|
|
|
3543
4092
|
export {
|
|
4093
|
+
require_react,
|
|
3544
4094
|
TURN_LIMIT_FIELDS,
|
|
3545
4095
|
turnLimitCommands,
|
|
3546
|
-
discoverUserCommands,
|
|
3547
|
-
expandHeadlessCommand,
|
|
3548
|
-
require_react,
|
|
3549
|
-
setReducedMotion,
|
|
3550
|
-
reducedMotion,
|
|
3551
|
-
motionAllowed,
|
|
3552
|
-
useReducedMotion,
|
|
3553
4096
|
backgroundFromColorFgBg,
|
|
3554
4097
|
queryTerminalBackground,
|
|
3555
4098
|
setThemeSetting,
|
|
@@ -3559,6 +4102,18 @@ export {
|
|
|
3559
4102
|
ThemeEpochContext,
|
|
3560
4103
|
useThemeEpoch,
|
|
3561
4104
|
useThemeSubscription,
|
|
4105
|
+
setReducedMotion,
|
|
4106
|
+
reducedMotion,
|
|
4107
|
+
motionAllowed,
|
|
4108
|
+
useReducedMotion,
|
|
4109
|
+
discoverUserCommands,
|
|
4110
|
+
expandHeadlessCommand,
|
|
4111
|
+
isAction,
|
|
4112
|
+
isChordLead,
|
|
4113
|
+
isChordAction,
|
|
4114
|
+
pressedKeyLabel,
|
|
4115
|
+
primaryKeyLabel,
|
|
4116
|
+
toolServerRow,
|
|
3562
4117
|
saveTheme,
|
|
3563
4118
|
saveReducedMotion,
|
|
3564
4119
|
describeReducedMotion,
|
|
@@ -3575,6 +4130,7 @@ export {
|
|
|
3575
4130
|
baseBranchReviewPrompt,
|
|
3576
4131
|
commitReviewPrompt,
|
|
3577
4132
|
renderAgents,
|
|
4133
|
+
argumentHintFor,
|
|
3578
4134
|
runSlash
|
|
3579
4135
|
};
|
|
3580
4136
|
/*! Bundled license information:
|
|
@@ -3601,4 +4157,4 @@ react/cjs/react.development.js:
|
|
|
3601
4157
|
* LICENSE file in the root directory of this source tree.
|
|
3602
4158
|
*)
|
|
3603
4159
|
*/
|
|
3604
|
-
//# sourceMappingURL=chunk-
|
|
4160
|
+
//# sourceMappingURL=chunk-BNYTG2ZC.js.map
|