@namzu/cli 42.0.0 → 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 +28 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-ADQ2PRAY.js → acp-GKYFK7VQ.js} +38 -38
- package/dist/chunks/{activity-command-JROQLBPA.js → activity-command-TOTM3MOY.js} +12 -12
- package/dist/chunks/{add-ILLLF6YP.js → add-4GRA6X5I.js} +14 -14
- package/dist/chunks/{agent-YQI5KOPV.js → agent-KEI53I7S.js} +29 -29
- package/dist/chunks/agent-session-4IF5H4YO.js +58 -0
- package/dist/chunks/{archive-55KJKGJB.js → archive-OOQMVBUH.js} +10 -10
- package/dist/chunks/{bin-main-332F5KRZ.js → bin-main-L67SJQV2.js} +4 -4
- package/dist/chunks/{browser-C6AOJ3CH.js → browser-GDIYUWKT.js} +6 -6
- package/dist/chunks/{chat-45H5F3KI.js → chat-FUQOCA7Q.js} +15 -15
- package/dist/chunks/{chunk-SRYIMLOK.js → chunk-2C5QF5ZM.js} +2 -2
- package/dist/chunks/{chunk-BRKD6FMO.js → chunk-2R44UHEU.js} +2 -2
- package/dist/chunks/{chunk-URJ7TITR.js → chunk-2S4VEEVB.js} +8 -8
- package/dist/chunks/{chunk-F6WVRMVY.js → chunk-3SQVE73V.js} +261 -91
- package/dist/chunks/chunk-3SQVE73V.js.map +6 -0
- package/dist/chunks/{chunk-6GBZAUYW.js → chunk-4V2V2FMP.js} +2 -2
- package/dist/chunks/{chunk-ESZ7X37S.js → chunk-54TFQUPM.js} +4 -4
- package/dist/chunks/{chunk-R2LYGFCI.js → chunk-5QCBUBKO.js} +4 -4
- package/dist/chunks/{chunk-FMEGRBJP.js → chunk-6G3XZZRF.js} +2 -2
- package/dist/chunks/{chunk-XMOKHCPV.js → chunk-6WK7YVAX.js} +30 -30
- package/dist/chunks/{chunk-5XWMKWQQ.js → chunk-752S5IP3.js} +3 -3
- package/dist/chunks/{chunk-J4IES4SO.js → chunk-7WQS7BP2.js} +2 -2
- package/dist/chunks/{chunk-IQQ6TY4W.js → chunk-AEZ7YTIJ.js} +3 -3
- package/dist/chunks/{chunk-HOIDWHGC.js → chunk-B4I264HC.js} +6 -6
- package/dist/chunks/{chunk-Y2DZ27P6.js → chunk-BBERAGUX.js} +4 -4
- package/dist/chunks/{chunk-4IIEEOCA.js → chunk-BHW43OKH.js} +3 -3
- package/dist/chunks/{chunk-JXT47VT6.js → chunk-BNYTG2ZC.js} +501 -23
- package/dist/chunks/chunk-BNYTG2ZC.js.map +6 -0
- package/dist/chunks/{chunk-M46GKTOI.js → chunk-CD5X75DB.js} +2 -2
- package/dist/chunks/{chunk-L3QW53QL.js → chunk-DABNNT6R.js} +6 -6
- package/dist/chunks/{chunk-K6LLMOB2.js → chunk-DXTK4EMM.js} +2 -2
- package/dist/chunks/{chunk-BDLDDNNO.js → chunk-EADX2OKC.js} +2 -2
- package/dist/chunks/{chunk-3LNTQLQ4.js → chunk-EDP5FDN4.js} +7 -7
- package/dist/chunks/{chunk-6PNBIMWH.js → chunk-EM5AM5BR.js} +3 -3
- package/dist/chunks/{chunk-WHOSI6UQ.js → chunk-FFXSL2SL.js} +2 -2
- package/dist/chunks/{chunk-7E3V7NNN.js → chunk-GNG6HJIV.js} +609 -225
- package/dist/chunks/chunk-GNG6HJIV.js.map +6 -0
- package/dist/chunks/{chunk-W2PJ6ZHY.js → chunk-GURZ2GEB.js} +3 -3
- package/dist/chunks/{chunk-RVSVVL6O.js → chunk-HAAL3DME.js} +3 -3
- package/dist/chunks/{chunk-S4KDR6G5.js → chunk-I7FY5SK5.js} +4 -4
- package/dist/chunks/{chunk-YVIM3MXU.js → chunk-IJUCXVG5.js} +2 -2
- package/dist/chunks/{chunk-QWBR6FBY.js → chunk-IY7XWRXE.js} +5 -5
- package/dist/chunks/{chunk-6LVWHXT6.js → chunk-LAQTQNQE.js} +8 -8
- package/dist/chunks/{chunk-YPHXWFKQ.js → chunk-LCVRXUEV.js} +2 -2
- package/dist/chunks/{chunk-QUELENQP.js → chunk-LWPTVYRU.js} +4 -4
- package/dist/chunks/{chunk-TW5BCDA5.js → chunk-M3RKXXZE.js} +3 -3
- package/dist/chunks/{chunk-N56FVHCU.js → chunk-MJRLJDNK.js} +2 -2
- package/dist/chunks/{chunk-SNC5D5UG.js → chunk-N4DS6G4I.js} +13 -13
- package/dist/chunks/{chunk-35VTE7V5.js → chunk-NJ6P3WPZ.js} +2 -2
- package/dist/chunks/{chunk-EWSIGY2A.js → chunk-NOG4Z42R.js} +3 -3
- package/dist/chunks/{chunk-DLL2FPUY.js → chunk-NWW46AII.js} +2 -2
- package/dist/chunks/{chunk-YM4DUQ3P.js → chunk-NXM3BLL4.js} +3 -3
- package/dist/chunks/{chunk-GOGBOZKO.js → chunk-ODOM3I7B.js} +9 -5
- package/dist/chunks/{chunk-GOGBOZKO.js.map → chunk-ODOM3I7B.js.map} +1 -1
- package/dist/chunks/{chunk-23NRJ2RC.js → chunk-OIOA7BRC.js} +5 -5
- package/dist/chunks/{chunk-FSKJ3EZC.js → chunk-OK4UNUNI.js} +2 -2
- package/dist/chunks/{chunk-AZPS37AQ.js → chunk-OUGL6FI2.js} +2 -2
- package/dist/chunks/{chunk-SIWZZF4M.js → chunk-P73IFAYM.js} +12 -12
- package/dist/chunks/{chunk-Y74CPWYC.js → chunk-PXSTTFI7.js} +13 -13
- package/dist/chunks/{chunk-HO2ZUI5Y.js → chunk-RHT52Z5X.js} +2 -2
- package/dist/chunks/{chunk-4NO5XFK2.js → chunk-SM377CLQ.js} +2 -2
- package/dist/chunks/{chunk-XXUL6HHM.js → chunk-TAAAO6PM.js} +2 -2
- package/dist/chunks/{chunk-RGVJHSMU.js → chunk-TIBFEO2R.js} +2 -2
- package/dist/chunks/{chunk-XGVCAMNT.js → chunk-TYMIKXOD.js} +2 -2
- package/dist/chunks/{chunk-CW2N2QS2.js → chunk-TZQT5JL3.js} +4 -4
- package/dist/chunks/{chunk-Y3I7AAD6.js → chunk-UB5YVQJM.js} +4 -4
- package/dist/chunks/{chunk-6S4R2USK.js → chunk-UPXD4LJ5.js} +3 -3
- package/dist/chunks/{chunk-N3C5X6BW.js → chunk-V5YIGRUD.js} +5 -5
- package/dist/chunks/{chunk-QT6KYBCC.js → chunk-VNFXDLKD.js} +3 -3
- package/dist/chunks/{chunk-HXAWIWOZ.js → chunk-VNK6EA2D.js} +2 -2
- package/dist/chunks/{chunk-JD2HLKFO.js → chunk-VRUEY647.js} +2 -2
- package/dist/chunks/{chunk-HQZ3GBQI.js → chunk-VTU23NBS.js} +6 -6
- package/dist/chunks/{chunk-QRGO6R2O.js → chunk-VWNLO4OM.js} +3 -3
- package/dist/chunks/{chunk-YP7AINGL.js → chunk-W6Z7RNVL.js} +9 -9
- package/dist/chunks/{chunk-4TS6ZPOZ.js → chunk-W6ZZLT64.js} +3 -3
- package/dist/chunks/{chunk-XCMCPWMB.js → chunk-WQDMDSPW.js} +4 -4
- package/dist/chunks/{chunk-A3AF5WXZ.js → chunk-XGOM2KHV.js} +6 -6
- package/dist/chunks/{chunk-A4CKLHKM.js → chunk-XV3FGIHS.js} +212 -86
- package/dist/chunks/chunk-XV3FGIHS.js.map +6 -0
- package/dist/chunks/{chunk-N4OY22M2.js → chunk-XZPLOQBA.js} +2 -2
- package/dist/chunks/{chunk-HOY7BUGW.js → chunk-Z3VSDOCX.js} +3 -3
- package/dist/chunks/{cli-runtime-HW6GQKC6.js → cli-runtime-Y6RGQSMF.js} +9 -9
- package/dist/chunks/{commands-JZT6JJY5.js → commands-4ZTQFX2X.js} +5 -5
- package/dist/chunks/{crash-report-TWMWHNKY.js → crash-report-Y6U6CH73.js} +6 -6
- package/dist/chunks/{dist-POSMI3PI.js → dist-3YHUITAK.js} +2 -2
- package/dist/chunks/{dist-AZ5T257L.js → dist-GTK2JZSU.js} +2 -2
- package/dist/chunks/{dist-MVLQAON2.js → dist-J36EH26G.js} +2 -2
- package/dist/chunks/{dist-K5JIOWIQ.js → dist-OKRQSUWC.js} +2 -2
- package/dist/chunks/{dist-4EGZFRWY.js → dist-TKVIIUPJ.js} +2 -2
- package/dist/chunks/{dist-6ORFQIRV.js → dist-XP72U44M.js} +2 -2
- package/dist/chunks/{dist-CLKFY67B.js → dist-ZNMZHP7A.js} +2 -2
- package/dist/chunks/{doctor-UVZBNUNF.js → doctor-WKZ7BGFC.js} +12 -12
- package/dist/chunks/{drain-27E6XUNK.js → drain-VOM6IT3C.js} +10 -10
- package/dist/chunks/{eval-NRRIWDET.js → eval-7MDLH5UR.js} +2 -2
- package/dist/chunks/{exec-KX46LZ36.js → exec-YBTNNBSS.js} +28 -28
- package/dist/chunks/{home-RT2I6VTQ.js → home-UID64VNR.js} +3 -3
- package/dist/chunks/{host-queries-ZXGOA6ZL.js → host-queries-A3XQQHI4.js} +15 -15
- package/dist/chunks/{learn-5KKZ4ZFX.js → learn-N2FNKNCW.js} +13 -13
- package/dist/chunks/{learn-builtin-MSUF4MEJ.js → learn-builtin-3SQNWE77.js} +16 -16
- package/dist/chunks/{lifecycle-TZU6D46R.js → lifecycle-TIEMDICJ.js} +23 -23
- package/dist/chunks/{list-QCWNMQED.js → list-HGGKMHPQ.js} +10 -10
- package/dist/chunks/{live-V7HRF5KR.js → live-JHNWMJIE.js} +11 -11
- package/dist/chunks/{login-QFP3PIXG.js → login-CLFAZ2WB.js} +8 -8
- package/dist/chunks/{logs-XTXMS4JF.js → logs-A5HZQ3XA.js} +4 -4
- package/dist/chunks/{mcp-WQFJJ4NO.js → mcp-V27XPHVU.js} +15 -15
- package/dist/chunks/{message-command-QVNUJN47.js → message-command-HBTDJ6WS.js} +35 -35
- package/dist/chunks/{operator-tools-2OYRNPCH.js → operator-tools-7YJWXVYR.js} +13 -13
- package/dist/chunks/{output-schema-ETVPLUXE.js → output-schema-NEJ27MH6.js} +3 -3
- package/dist/chunks/{pal-BYFZCLE2.js → pal-LX2FA7N2.js} +11 -11
- package/dist/chunks/{plain-report-73WHPLHX.js → plain-report-IOYN4O6N.js} +10 -2
- package/dist/chunks/{plain-report-73WHPLHX.js.map → plain-report-IOYN4O6N.js.map} +2 -2
- package/dist/chunks/{providers-KP5JHTTK.js → providers-XRDUL4OO.js} +6 -6
- package/dist/chunks/{resident-BROBTK35.js → resident-T6QB5MX7.js} +23 -23
- package/dist/chunks/resume-YPKHTYLO.js +23 -0
- package/dist/chunks/{resume-command-OKJ2MJPB.js → resume-command-VSFQAVVN.js} +4 -4
- package/dist/chunks/{schedule-TVR3FE32.js → schedule-GCBVV54F.js} +8 -8
- package/dist/chunks/{service-6A3TOQKV.js → service-UQPEAJKT.js} +22 -22
- package/dist/chunks/{session-step-N4GHA2YE.js → session-step-OKCO6S7R.js} +15 -15
- package/dist/chunks/{skills-WXYSPDKL.js → skills-LCTXKJCR.js} +8 -8
- package/dist/chunks/{start-check-BUCN5MCU.js → start-check-NAACA6IE.js} +2 -2
- package/dist/chunks/{state-PVAVIXHK.js → state-GNWJY3F2.js} +2 -2
- package/dist/chunks/{store-D3XUEEAF.js → store-44ZZJVF3.js} +6 -6
- package/dist/chunks/{store-NB3KR4XA.js → store-7ZXMZ6ES.js} +10 -10
- package/dist/chunks/{store-O3KC2PPZ.js → store-KGH5U7KF.js} +4 -4
- package/dist/chunks/{tui-2XOSCALL.js → tui-TNCMJCJJ.js} +387 -161
- package/dist/chunks/tui-TNCMJCJJ.js.map +6 -0
- package/dist/chunks/{upgrade-FY5ULZQF.js → upgrade-DU4I5ACF.js} +6 -6
- package/dist/chunks/{worktree-MVW62U5G.js → worktree-XGJCKZQJ.js} +12 -12
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +7 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.js +15 -15
- package/dist/integrations/mcp/servers.d.ts +37 -2
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +20 -20
- 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.map +1 -1
- package/dist/tui/App.d.ts +2 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +14 -4
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +15 -0
- package/dist/tui/agent.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/external-editor.d.ts +5 -1
- package/dist/tui/external-editor.d.ts.map +1 -1
- package/dist/tui/keymap.d.ts +152 -0
- package/dist/tui/keymap.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 +2 -0
- package/dist/tui/slashCommands.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/user-commands/store.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunks/agent-session-3MUZCWQ4.js +0 -58
- package/dist/chunks/chunk-7E3V7NNN.js.map +0 -6
- package/dist/chunks/chunk-A4CKLHKM.js.map +0 -6
- package/dist/chunks/chunk-F6WVRMVY.js.map +0 -6
- package/dist/chunks/chunk-JXT47VT6.js.map +0 -6
- package/dist/chunks/resume-7V44GSEU.js +0 -23
- package/dist/chunks/tui-2XOSCALL.js.map +0 -6
- /package/dist/chunks/{acp-ADQ2PRAY.js.map → acp-GKYFK7VQ.js.map} +0 -0
- /package/dist/chunks/{activity-command-JROQLBPA.js.map → activity-command-TOTM3MOY.js.map} +0 -0
- /package/dist/chunks/{add-ILLLF6YP.js.map → add-4GRA6X5I.js.map} +0 -0
- /package/dist/chunks/{agent-YQI5KOPV.js.map → agent-KEI53I7S.js.map} +0 -0
- /package/dist/chunks/{agent-session-3MUZCWQ4.js.map → agent-session-4IF5H4YO.js.map} +0 -0
- /package/dist/chunks/{archive-55KJKGJB.js.map → archive-OOQMVBUH.js.map} +0 -0
- /package/dist/chunks/{bin-main-332F5KRZ.js.map → bin-main-L67SJQV2.js.map} +0 -0
- /package/dist/chunks/{browser-C6AOJ3CH.js.map → browser-GDIYUWKT.js.map} +0 -0
- /package/dist/chunks/{chat-45H5F3KI.js.map → chat-FUQOCA7Q.js.map} +0 -0
- /package/dist/chunks/{chunk-SRYIMLOK.js.map → chunk-2C5QF5ZM.js.map} +0 -0
- /package/dist/chunks/{chunk-BRKD6FMO.js.map → chunk-2R44UHEU.js.map} +0 -0
- /package/dist/chunks/{chunk-URJ7TITR.js.map → chunk-2S4VEEVB.js.map} +0 -0
- /package/dist/chunks/{chunk-6GBZAUYW.js.map → chunk-4V2V2FMP.js.map} +0 -0
- /package/dist/chunks/{chunk-ESZ7X37S.js.map → chunk-54TFQUPM.js.map} +0 -0
- /package/dist/chunks/{chunk-R2LYGFCI.js.map → chunk-5QCBUBKO.js.map} +0 -0
- /package/dist/chunks/{chunk-FMEGRBJP.js.map → chunk-6G3XZZRF.js.map} +0 -0
- /package/dist/chunks/{chunk-XMOKHCPV.js.map → chunk-6WK7YVAX.js.map} +0 -0
- /package/dist/chunks/{chunk-5XWMKWQQ.js.map → chunk-752S5IP3.js.map} +0 -0
- /package/dist/chunks/{chunk-J4IES4SO.js.map → chunk-7WQS7BP2.js.map} +0 -0
- /package/dist/chunks/{chunk-IQQ6TY4W.js.map → chunk-AEZ7YTIJ.js.map} +0 -0
- /package/dist/chunks/{chunk-HOIDWHGC.js.map → chunk-B4I264HC.js.map} +0 -0
- /package/dist/chunks/{chunk-Y2DZ27P6.js.map → chunk-BBERAGUX.js.map} +0 -0
- /package/dist/chunks/{chunk-4IIEEOCA.js.map → chunk-BHW43OKH.js.map} +0 -0
- /package/dist/chunks/{chunk-M46GKTOI.js.map → chunk-CD5X75DB.js.map} +0 -0
- /package/dist/chunks/{chunk-L3QW53QL.js.map → chunk-DABNNT6R.js.map} +0 -0
- /package/dist/chunks/{chunk-K6LLMOB2.js.map → chunk-DXTK4EMM.js.map} +0 -0
- /package/dist/chunks/{chunk-BDLDDNNO.js.map → chunk-EADX2OKC.js.map} +0 -0
- /package/dist/chunks/{chunk-3LNTQLQ4.js.map → chunk-EDP5FDN4.js.map} +0 -0
- /package/dist/chunks/{chunk-6PNBIMWH.js.map → chunk-EM5AM5BR.js.map} +0 -0
- /package/dist/chunks/{chunk-WHOSI6UQ.js.map → chunk-FFXSL2SL.js.map} +0 -0
- /package/dist/chunks/{chunk-W2PJ6ZHY.js.map → chunk-GURZ2GEB.js.map} +0 -0
- /package/dist/chunks/{chunk-RVSVVL6O.js.map → chunk-HAAL3DME.js.map} +0 -0
- /package/dist/chunks/{chunk-S4KDR6G5.js.map → chunk-I7FY5SK5.js.map} +0 -0
- /package/dist/chunks/{chunk-YVIM3MXU.js.map → chunk-IJUCXVG5.js.map} +0 -0
- /package/dist/chunks/{chunk-QWBR6FBY.js.map → chunk-IY7XWRXE.js.map} +0 -0
- /package/dist/chunks/{chunk-6LVWHXT6.js.map → chunk-LAQTQNQE.js.map} +0 -0
- /package/dist/chunks/{chunk-YPHXWFKQ.js.map → chunk-LCVRXUEV.js.map} +0 -0
- /package/dist/chunks/{chunk-QUELENQP.js.map → chunk-LWPTVYRU.js.map} +0 -0
- /package/dist/chunks/{chunk-TW5BCDA5.js.map → chunk-M3RKXXZE.js.map} +0 -0
- /package/dist/chunks/{chunk-N56FVHCU.js.map → chunk-MJRLJDNK.js.map} +0 -0
- /package/dist/chunks/{chunk-SNC5D5UG.js.map → chunk-N4DS6G4I.js.map} +0 -0
- /package/dist/chunks/{chunk-35VTE7V5.js.map → chunk-NJ6P3WPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-EWSIGY2A.js.map → chunk-NOG4Z42R.js.map} +0 -0
- /package/dist/chunks/{chunk-DLL2FPUY.js.map → chunk-NWW46AII.js.map} +0 -0
- /package/dist/chunks/{chunk-YM4DUQ3P.js.map → chunk-NXM3BLL4.js.map} +0 -0
- /package/dist/chunks/{chunk-23NRJ2RC.js.map → chunk-OIOA7BRC.js.map} +0 -0
- /package/dist/chunks/{chunk-FSKJ3EZC.js.map → chunk-OK4UNUNI.js.map} +0 -0
- /package/dist/chunks/{chunk-AZPS37AQ.js.map → chunk-OUGL6FI2.js.map} +0 -0
- /package/dist/chunks/{chunk-SIWZZF4M.js.map → chunk-P73IFAYM.js.map} +0 -0
- /package/dist/chunks/{chunk-Y74CPWYC.js.map → chunk-PXSTTFI7.js.map} +0 -0
- /package/dist/chunks/{chunk-HO2ZUI5Y.js.map → chunk-RHT52Z5X.js.map} +0 -0
- /package/dist/chunks/{chunk-4NO5XFK2.js.map → chunk-SM377CLQ.js.map} +0 -0
- /package/dist/chunks/{chunk-XXUL6HHM.js.map → chunk-TAAAO6PM.js.map} +0 -0
- /package/dist/chunks/{chunk-RGVJHSMU.js.map → chunk-TIBFEO2R.js.map} +0 -0
- /package/dist/chunks/{chunk-XGVCAMNT.js.map → chunk-TYMIKXOD.js.map} +0 -0
- /package/dist/chunks/{chunk-CW2N2QS2.js.map → chunk-TZQT5JL3.js.map} +0 -0
- /package/dist/chunks/{chunk-Y3I7AAD6.js.map → chunk-UB5YVQJM.js.map} +0 -0
- /package/dist/chunks/{chunk-6S4R2USK.js.map → chunk-UPXD4LJ5.js.map} +0 -0
- /package/dist/chunks/{chunk-N3C5X6BW.js.map → chunk-V5YIGRUD.js.map} +0 -0
- /package/dist/chunks/{chunk-QT6KYBCC.js.map → chunk-VNFXDLKD.js.map} +0 -0
- /package/dist/chunks/{chunk-HXAWIWOZ.js.map → chunk-VNK6EA2D.js.map} +0 -0
- /package/dist/chunks/{chunk-JD2HLKFO.js.map → chunk-VRUEY647.js.map} +0 -0
- /package/dist/chunks/{chunk-HQZ3GBQI.js.map → chunk-VTU23NBS.js.map} +0 -0
- /package/dist/chunks/{chunk-QRGO6R2O.js.map → chunk-VWNLO4OM.js.map} +0 -0
- /package/dist/chunks/{chunk-YP7AINGL.js.map → chunk-W6Z7RNVL.js.map} +0 -0
- /package/dist/chunks/{chunk-4TS6ZPOZ.js.map → chunk-W6ZZLT64.js.map} +0 -0
- /package/dist/chunks/{chunk-XCMCPWMB.js.map → chunk-WQDMDSPW.js.map} +0 -0
- /package/dist/chunks/{chunk-A3AF5WXZ.js.map → chunk-XGOM2KHV.js.map} +0 -0
- /package/dist/chunks/{chunk-N4OY22M2.js.map → chunk-XZPLOQBA.js.map} +0 -0
- /package/dist/chunks/{chunk-HOY7BUGW.js.map → chunk-Z3VSDOCX.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-HW6GQKC6.js.map → cli-runtime-Y6RGQSMF.js.map} +0 -0
- /package/dist/chunks/{commands-JZT6JJY5.js.map → commands-4ZTQFX2X.js.map} +0 -0
- /package/dist/chunks/{crash-report-TWMWHNKY.js.map → crash-report-Y6U6CH73.js.map} +0 -0
- /package/dist/chunks/{dist-POSMI3PI.js.map → dist-3YHUITAK.js.map} +0 -0
- /package/dist/chunks/{dist-AZ5T257L.js.map → dist-GTK2JZSU.js.map} +0 -0
- /package/dist/chunks/{dist-MVLQAON2.js.map → dist-J36EH26G.js.map} +0 -0
- /package/dist/chunks/{dist-K5JIOWIQ.js.map → dist-OKRQSUWC.js.map} +0 -0
- /package/dist/chunks/{dist-4EGZFRWY.js.map → dist-TKVIIUPJ.js.map} +0 -0
- /package/dist/chunks/{dist-6ORFQIRV.js.map → dist-XP72U44M.js.map} +0 -0
- /package/dist/chunks/{dist-CLKFY67B.js.map → dist-ZNMZHP7A.js.map} +0 -0
- /package/dist/chunks/{doctor-UVZBNUNF.js.map → doctor-WKZ7BGFC.js.map} +0 -0
- /package/dist/chunks/{drain-27E6XUNK.js.map → drain-VOM6IT3C.js.map} +0 -0
- /package/dist/chunks/{eval-NRRIWDET.js.map → eval-7MDLH5UR.js.map} +0 -0
- /package/dist/chunks/{exec-KX46LZ36.js.map → exec-YBTNNBSS.js.map} +0 -0
- /package/dist/chunks/{home-RT2I6VTQ.js.map → home-UID64VNR.js.map} +0 -0
- /package/dist/chunks/{host-queries-ZXGOA6ZL.js.map → host-queries-A3XQQHI4.js.map} +0 -0
- /package/dist/chunks/{learn-5KKZ4ZFX.js.map → learn-N2FNKNCW.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-MSUF4MEJ.js.map → learn-builtin-3SQNWE77.js.map} +0 -0
- /package/dist/chunks/{lifecycle-TZU6D46R.js.map → lifecycle-TIEMDICJ.js.map} +0 -0
- /package/dist/chunks/{list-QCWNMQED.js.map → list-HGGKMHPQ.js.map} +0 -0
- /package/dist/chunks/{live-V7HRF5KR.js.map → live-JHNWMJIE.js.map} +0 -0
- /package/dist/chunks/{login-QFP3PIXG.js.map → login-CLFAZ2WB.js.map} +0 -0
- /package/dist/chunks/{logs-XTXMS4JF.js.map → logs-A5HZQ3XA.js.map} +0 -0
- /package/dist/chunks/{mcp-WQFJJ4NO.js.map → mcp-V27XPHVU.js.map} +0 -0
- /package/dist/chunks/{message-command-QVNUJN47.js.map → message-command-HBTDJ6WS.js.map} +0 -0
- /package/dist/chunks/{operator-tools-2OYRNPCH.js.map → operator-tools-7YJWXVYR.js.map} +0 -0
- /package/dist/chunks/{output-schema-ETVPLUXE.js.map → output-schema-NEJ27MH6.js.map} +0 -0
- /package/dist/chunks/{pal-BYFZCLE2.js.map → pal-LX2FA7N2.js.map} +0 -0
- /package/dist/chunks/{providers-KP5JHTTK.js.map → providers-XRDUL4OO.js.map} +0 -0
- /package/dist/chunks/{resident-BROBTK35.js.map → resident-T6QB5MX7.js.map} +0 -0
- /package/dist/chunks/{resume-7V44GSEU.js.map → resume-YPKHTYLO.js.map} +0 -0
- /package/dist/chunks/{resume-command-OKJ2MJPB.js.map → resume-command-VSFQAVVN.js.map} +0 -0
- /package/dist/chunks/{schedule-TVR3FE32.js.map → schedule-GCBVV54F.js.map} +0 -0
- /package/dist/chunks/{service-6A3TOQKV.js.map → service-UQPEAJKT.js.map} +0 -0
- /package/dist/chunks/{session-step-N4GHA2YE.js.map → session-step-OKCO6S7R.js.map} +0 -0
- /package/dist/chunks/{skills-WXYSPDKL.js.map → skills-LCTXKJCR.js.map} +0 -0
- /package/dist/chunks/{start-check-BUCN5MCU.js.map → start-check-NAACA6IE.js.map} +0 -0
- /package/dist/chunks/{state-PVAVIXHK.js.map → state-GNWJY3F2.js.map} +0 -0
- /package/dist/chunks/{store-D3XUEEAF.js.map → store-44ZZJVF3.js.map} +0 -0
- /package/dist/chunks/{store-NB3KR4XA.js.map → store-7ZXMZ6ES.js.map} +0 -0
- /package/dist/chunks/{store-O3KC2PPZ.js.map → store-KGH5U7KF.js.map} +0 -0
- /package/dist/chunks/{upgrade-FY5ULZQF.js.map → upgrade-DU4I5ACF.js.map} +0 -0
- /package/dist/chunks/{worktree-MVW62U5G.js.map → worktree-XGJCKZQJ.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
setUserConfigValue
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOG4Z42R.js";
|
|
6
6
|
import {
|
|
7
7
|
isCompletionArgument
|
|
8
8
|
} from "./chunk-JV3LONAU.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
explainFailure,
|
|
17
17
|
resolveTurnGuards,
|
|
18
18
|
sandboxRunsShellUnasked
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I7FY5SK5.js";
|
|
20
20
|
import {
|
|
21
21
|
discoverSkills,
|
|
22
22
|
loadSkillBody
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VWNLO4OM.js";
|
|
24
24
|
import {
|
|
25
25
|
CLI_VERSION
|
|
26
26
|
} from "./chunk-HE7WUOX2.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
renderConfigDebug,
|
|
31
31
|
resolveTheme,
|
|
32
32
|
themeLabel
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ODOM3I7B.js";
|
|
34
34
|
import {
|
|
35
35
|
displayPath,
|
|
36
36
|
homePath,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
permissionModeDescription,
|
|
41
41
|
permissionModeFromName,
|
|
42
42
|
permissionModeLabel
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7WQS7BP2.js";
|
|
44
44
|
import {
|
|
45
45
|
terminalDisplayText
|
|
46
46
|
} from "./chunk-IYUW2RAA.js";
|
|
@@ -52,13 +52,13 @@ import {
|
|
|
52
52
|
} from "./chunk-U5UV2YRE.js";
|
|
53
53
|
import {
|
|
54
54
|
namzuHomePath
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IJUCXVG5.js";
|
|
56
56
|
import {
|
|
57
57
|
RegistryCollisionError,
|
|
58
58
|
isMemoryType,
|
|
59
59
|
kernelHostCommands,
|
|
60
60
|
parseFrontmatter
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-GNG6HJIV.js";
|
|
62
62
|
import {
|
|
63
63
|
__commonJS,
|
|
64
64
|
__name,
|
|
@@ -459,8 +459,8 @@ var require_react_production = __commonJS({
|
|
|
459
459
|
exports.use = function(usable) {
|
|
460
460
|
return ReactSharedInternals.H.use(usable);
|
|
461
461
|
};
|
|
462
|
-
exports.useActionState = function(
|
|
463
|
-
return ReactSharedInternals.H.useActionState(
|
|
462
|
+
exports.useActionState = function(action2, initialState, permalink) {
|
|
463
|
+
return ReactSharedInternals.H.useActionState(action2, initialState, permalink);
|
|
464
464
|
};
|
|
465
465
|
exports.useCallback = function(callback, deps) {
|
|
466
466
|
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
@@ -1445,9 +1445,9 @@ var require_react_development = __commonJS({
|
|
|
1445
1445
|
exports.use = function(usable) {
|
|
1446
1446
|
return resolveDispatcher().use(usable);
|
|
1447
1447
|
};
|
|
1448
|
-
exports.useActionState = function(
|
|
1448
|
+
exports.useActionState = function(action2, initialState, permalink) {
|
|
1449
1449
|
return resolveDispatcher().useActionState(
|
|
1450
|
-
|
|
1450
|
+
action2,
|
|
1451
1451
|
initialState,
|
|
1452
1452
|
permalink
|
|
1453
1453
|
);
|
|
@@ -1541,7 +1541,7 @@ var require_react = __commonJS({
|
|
|
1541
1541
|
// src/user-commands/store.ts
|
|
1542
1542
|
import { readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
1543
1543
|
import { platform } from "node:os";
|
|
1544
|
-
import { dirname, join, resolve } from "node:path";
|
|
1544
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
1545
1545
|
function displayHint(hint) {
|
|
1546
1546
|
return /^[[<(]/.test(hint) ? hint : `[${hint}]`;
|
|
1547
1547
|
}
|
|
@@ -1702,13 +1702,13 @@ function expandCommand(command, args) {
|
|
|
1702
1702
|
return { ok: true, prompt: command.template.split(ARGUMENTS_TOKEN).join(trimmed) };
|
|
1703
1703
|
}
|
|
1704
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;
|
|
1705
1707
|
return {
|
|
1706
1708
|
ok: false,
|
|
1707
1709
|
reason: [
|
|
1708
|
-
`/${command.name}
|
|
1709
|
-
|
|
1710
|
-
`Add ${ARGUMENTS_TOKEN} where they belong in ${command.path}, and they will be`,
|
|
1711
|
-
"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.`
|
|
1712
1712
|
].join("\n")
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
@@ -1788,6 +1788,35 @@ function statusCard(rows, columns = 80) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
__name(statusCard, "statusCard");
|
|
1790
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
|
+
|
|
1791
1820
|
// src/tui/turn-limits-settings.ts
|
|
1792
1821
|
var TURN_LIMIT_FIELDS = [
|
|
1793
1822
|
{
|
|
@@ -1919,6 +1948,435 @@ ${shown.join("\n")}${cut}`;
|
|
|
1919
1948
|
}
|
|
1920
1949
|
__name(renderReleaseNotes, "renderReleaseNotes");
|
|
1921
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
|
+
|
|
1922
2380
|
// src/tui/motion.ts
|
|
1923
2381
|
var import_react = __toESM(require_react(), 1);
|
|
1924
2382
|
var reduced = false;
|
|
@@ -2222,6 +2680,9 @@ function parseSlash(line) {
|
|
|
2222
2680
|
__name(parseSlash, "parseSlash");
|
|
2223
2681
|
function commandHelp(ctx, args) {
|
|
2224
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
|
+
}
|
|
2225
2686
|
if (args.length !== 1 || !name) {
|
|
2226
2687
|
return {
|
|
2227
2688
|
kind: "message",
|
|
@@ -2448,9 +2909,9 @@ var CLI_LOCAL_COMMANDS = [
|
|
|
2448
2909
|
name: "help",
|
|
2449
2910
|
description: "Browse commands, or show usage with /help <command>.",
|
|
2450
2911
|
help: {
|
|
2451
|
-
usage: ["/help", "/help <command>"],
|
|
2912
|
+
usage: ["/help", "/help <command>", "/help keys"],
|
|
2452
2913
|
details: [
|
|
2453
|
-
"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."
|
|
2454
2915
|
]
|
|
2455
2916
|
},
|
|
2456
2917
|
action: /* @__PURE__ */ __name((ctx, args) => {
|
|
@@ -3377,14 +3838,21 @@ function reviewTargetPrompt(target) {
|
|
|
3377
3838
|
__name(reviewTargetPrompt, "reviewTargetPrompt");
|
|
3378
3839
|
function renderMcp(mcp, details = false) {
|
|
3379
3840
|
if (mcp === null) return "Not connected yet. Tool servers have not been checked.";
|
|
3380
|
-
|
|
3841
|
+
const pending = mcp.pending ?? [];
|
|
3842
|
+
if (mcp.connected.length === 0 && mcp.failed.length === 0 && pending.length === 0) {
|
|
3381
3843
|
return "No tool servers configured. Add mcpServers to namzu.config.json.";
|
|
3382
3844
|
}
|
|
3383
3845
|
const lines = [
|
|
3384
|
-
`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(", ")}.`
|
|
3385
3851
|
];
|
|
3386
3852
|
for (const server of mcp.connected) {
|
|
3387
|
-
lines.push(
|
|
3853
|
+
lines.push(
|
|
3854
|
+
`${server.name}: connected, ${server.tools.length} ${server.tools.length === 1 ? "tool" : "tools"}`
|
|
3855
|
+
);
|
|
3388
3856
|
const drift = server.drift;
|
|
3389
3857
|
if (drift) {
|
|
3390
3858
|
for (const name of drift.added) lines.push(` added: ${terminalDisplayText(name)}`);
|
|
@@ -3403,7 +3871,11 @@ function renderMcp(mcp, details = false) {
|
|
|
3403
3871
|
for (const tool of server.tools) lines.push(` ${tool}`);
|
|
3404
3872
|
}
|
|
3405
3873
|
}
|
|
3406
|
-
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`);
|
|
3407
3879
|
if (!details && mcp.connected.length > 0) lines.push("/mcp tools to list available tools.");
|
|
3408
3880
|
return lines.join("\n");
|
|
3409
3881
|
}
|
|
@@ -3636,6 +4108,12 @@ export {
|
|
|
3636
4108
|
useReducedMotion,
|
|
3637
4109
|
discoverUserCommands,
|
|
3638
4110
|
expandHeadlessCommand,
|
|
4111
|
+
isAction,
|
|
4112
|
+
isChordLead,
|
|
4113
|
+
isChordAction,
|
|
4114
|
+
pressedKeyLabel,
|
|
4115
|
+
primaryKeyLabel,
|
|
4116
|
+
toolServerRow,
|
|
3639
4117
|
saveTheme,
|
|
3640
4118
|
saveReducedMotion,
|
|
3641
4119
|
describeReducedMotion,
|
|
@@ -3679,4 +4157,4 @@ react/cjs/react.development.js:
|
|
|
3679
4157
|
* LICENSE file in the root directory of this source tree.
|
|
3680
4158
|
*)
|
|
3681
4159
|
*/
|
|
3682
|
-
//# sourceMappingURL=chunk-
|
|
4160
|
+
//# sourceMappingURL=chunk-BNYTG2ZC.js.map
|