@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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How this process reaches the network: a proxy, hosts that skip it, and an
|
|
3
|
+
* optional client certificate, all read from the environment.
|
|
4
|
+
*
|
|
5
|
+
* Pure and cheap on purpose. The command shell asks `usesCustomNetwork` on
|
|
6
|
+
* every start, before it knows which command will run, and only a yes pays for
|
|
7
|
+
* loading the HTTP client library (`./install.js`).
|
|
8
|
+
*
|
|
9
|
+
* The variables are the ones every command-line tool reads:
|
|
10
|
+
* HTTPS_PROXY / https_proxy the proxy for https:// addresses
|
|
11
|
+
* HTTP_PROXY / http_proxy the proxy for http:// addresses (and for https://
|
|
12
|
+
* ones when HTTPS_PROXY is not set)
|
|
13
|
+
* NO_PROXY / no_proxy hosts that skip the proxy: comma or space
|
|
14
|
+
* separated, a leading dot or `*.` matches
|
|
15
|
+
* subdomains, `host:port` limits it to one port,
|
|
16
|
+
* `*` skips the proxy for everything
|
|
17
|
+
* NAMZU_CLIENT_CERT PEM file with the client certificate
|
|
18
|
+
* NAMZU_CLIENT_KEY PEM file with its private key (optional when
|
|
19
|
+
* the certificate file holds the key too)
|
|
20
|
+
* NAMZU_CLIENT_KEY_PASSPHRASE the key's passphrase, if it has one
|
|
21
|
+
* Extra certificate authorities are Node's own `NODE_EXTRA_CA_CERTS`, which
|
|
22
|
+
* Node reads when the process starts; nothing here re-implements it.
|
|
23
|
+
*/
|
|
24
|
+
export interface NetworkProblem {
|
|
25
|
+
/** The variable that was wrong. */
|
|
26
|
+
readonly variable: string;
|
|
27
|
+
/** A sentence for a person; never the variable's value, which can hold a password. */
|
|
28
|
+
readonly message: string;
|
|
29
|
+
}
|
|
30
|
+
export interface NetworkSettings {
|
|
31
|
+
readonly httpProxy?: string;
|
|
32
|
+
readonly httpsProxy?: string;
|
|
33
|
+
readonly noProxy?: string;
|
|
34
|
+
/** Path of the client certificate file. */
|
|
35
|
+
readonly clientCert?: string;
|
|
36
|
+
/** Path of the client key file, when it is a file of its own. */
|
|
37
|
+
readonly clientKey?: string;
|
|
38
|
+
readonly problems: readonly NetworkProblem[];
|
|
39
|
+
}
|
|
40
|
+
type Env = Readonly<Record<string, string | undefined>>;
|
|
41
|
+
export declare function readNetworkSettings(env: Env): NetworkSettings;
|
|
42
|
+
/**
|
|
43
|
+
* Whether anything here changes how connections are made. False for the
|
|
44
|
+
* ordinary machine, which then never loads the HTTP client library.
|
|
45
|
+
*/
|
|
46
|
+
export declare function usesCustomNetwork(env: Env): boolean;
|
|
47
|
+
/** A proxy address as it may be shown: the host and port, never the credentials. */
|
|
48
|
+
export declare function proxyHost(address: string): string;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/network/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,WAAW,cAAc;IAC9B,mCAAmC;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,iEAAiE;IACjE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAA;CAC5C;AAED,KAAK,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;AAkDvD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG,GAAG,eAAe,CAsB7D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAQnD;AAED,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../src/pals/agent-session.ts"],"names":[],"mappings":"AAEA,OAAO,EAON,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,sBAAsB,EA4B3B,MAAM,YAAY,CAAA;AAMnB,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAOhB,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../src/pals/agent-session.ts"],"names":[],"mappings":"AAEA,OAAO,EAON,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,sBAAsB,EA4B3B,MAAM,YAAY,CAAA;AAMnB,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAOhB,MAAM,oCAAoC,CAAA;AAK3C,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,mBAAmB,EASxB,MAAM,iBAAiB,CAAA;AAOxB,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAA;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,mBAAmB,CAAA;IACpC,oFAAoF;IACpF,aAAa,CAAC,IAAI,mBAAmB,GAAG,SAAS,CAAA;IACjD,kFAAkF;IAClF,eAAe,CAAC,IACb,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,CAAC,GACjF,SAAS,CAAA;IACZ,iBAAiB,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAA;IAC3E,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;CAClD;AAED,oFAAoF;AACpF,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,aAAa,EACzB,cAAc,EAAE,MAAM,GACpB,qBAAqB,CA0BvB;AAyED,wBAAsB,qBAAqB,CAC1C,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EACrC,OAAO,EAAE,mBAAmB,GAC1B,OAAO,CAAC,YAAY,CAAC,CAm4BvB"}
|
|
@@ -86,7 +86,9 @@ export declare function autoAvailable(opts: {
|
|
|
86
86
|
readonly classifierUsable: boolean;
|
|
87
87
|
}): boolean;
|
|
88
88
|
/** The behavior shown by both the permission selector and the session report. */
|
|
89
|
-
export declare function permissionModeDescription(mode: PermissionMode
|
|
89
|
+
export declare function permissionModeDescription(mode: PermissionMode, options?: {
|
|
90
|
+
readonly sandboxedShell?: boolean;
|
|
91
|
+
}): string;
|
|
90
92
|
/** The reason a typed name is not a mode, naming the ones that are. */
|
|
91
93
|
export declare function unknownPermissionModeMessage(flag: string): string;
|
|
92
94
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../src/permissions/mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,YAAY,CAAA;AAE1D,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAA;AAEvC;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EAOrD,CAAA;AAWD,4EAA4E;AAC5E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAIhF;AAED,6DAA6D;AAC7D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAEhF;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAAC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AAyF;AACzF,wBAAgB,aAAa,CAAC,IAAI,EAAE;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;CAClC,GAAG,OAAO,CAEV;AAED,iFAAiF;AACjF,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,cAAc,EACpB,OAAO,GAAE;IAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GACjD,MAAM,CAqBR;AAED,uEAAuE;AACvE,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC3C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC7B,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAU/C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pre-execution gate every session of this application runs under.
|
|
3
|
+
*
|
|
4
|
+
* The kernel's read-only allowance asks whether a tool's read-only CLAIM can be
|
|
5
|
+
* believed; it never asks what the call reaches. A page fetch changes nothing
|
|
6
|
+
* here and so claims read-only, and without the exclusion below it would run
|
|
7
|
+
* unasked on every domain. Network tools therefore fall through to the
|
|
8
|
+
* operator's rules, the remembered answers and, last, the question, in every
|
|
9
|
+
* session that uses this gate: the main conversation, a sub-agent, a Pal's
|
|
10
|
+
* session and headless runs.
|
|
11
|
+
*
|
|
12
|
+
* `web_search` keeps the behaviour it has always had: it sends a query to a
|
|
13
|
+
* search service and fetches no page, and it runs without a question. Its
|
|
14
|
+
* allowance is a rule placed after the operator's own, so a `deny` or `ask` a
|
|
15
|
+
* person wrote for it still decides first.
|
|
16
|
+
*/
|
|
17
|
+
import type { AuthorizationGateConfig, AuthorizationRule } from '@namzu/sdk';
|
|
18
|
+
/** Tools that reach another host, which the read-only allowance must not approve. */
|
|
19
|
+
export declare const NETWORK_CATEGORY = "network";
|
|
20
|
+
/**
|
|
21
|
+
* The gate for a session, with the operator's rules in it.
|
|
22
|
+
*
|
|
23
|
+
* The dangerous-pattern denial is the floor and outranks everything; the
|
|
24
|
+
* read-only allowance is consulted after the operator's rules, so
|
|
25
|
+
* `read = "ask"` is reachable.
|
|
26
|
+
*/
|
|
27
|
+
export declare function cliGate(rules: readonly AuthorizationRule[] | undefined): AuthorizationGateConfig;
|
|
28
|
+
//# sourceMappingURL=read-only-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-only-gate.d.ts","sourceRoot":"","sources":["../../src/permissions/read-only-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE5E,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,YAAY,CAAA;AAIzC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,GAAG,SAAS,GAAG,uBAAuB,CAShG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shell commands that stay inside the OS sandbox run without a question.
|
|
3
|
+
*
|
|
4
|
+
* The kernel already knows the rule: the sandboxed-shell preset trusts the
|
|
5
|
+
* sandbox for shell commands, and only when the sandbox reports that it
|
|
6
|
+
* confines the file system and the process table. This module is the
|
|
7
|
+
* terminal's side of it, deciding from what the machine actually enforces
|
|
8
|
+
* whether the preset's allowance applies, and nothing more:
|
|
9
|
+
*
|
|
10
|
+
* - Only the shell. The preset also allows file changes inside the sandbox;
|
|
11
|
+
* the terminal keeps asking about those as the permission mode says, so
|
|
12
|
+
* turning the sandbox on does not change what an edit costs.
|
|
13
|
+
* - The rule goes behind the operator's own rules and the remembered answers,
|
|
14
|
+
* so a rule that says ask or deny still decides, and behind the safety floor,
|
|
15
|
+
* which the gate always checks first.
|
|
16
|
+
* - A command that asks to leave the sandbox is not covered. The kernel treats
|
|
17
|
+
* it as an escape and asks about it every time, in every mode that does not
|
|
18
|
+
* refuse it, whatever the gate says.
|
|
19
|
+
*/
|
|
20
|
+
import { type AuthorizationRule } from '@namzu/sdk';
|
|
21
|
+
import type { SandboxSummary } from '../context/sandbox.js';
|
|
22
|
+
/**
|
|
23
|
+
* The rules that let an in-sandbox shell command run unasked, or none when the
|
|
24
|
+
* sandbox is off or does not enforce what the preset requires (a tier that
|
|
25
|
+
* cannot confine the file system or the process table keeps every command
|
|
26
|
+
* going through the permission mode).
|
|
27
|
+
*/
|
|
28
|
+
export declare function sandboxShellRules(sandbox: Pick<SandboxSummary, 'environment' | 'enforced'>): readonly AuthorizationRule[];
|
|
29
|
+
/** Whether shell commands inside this session's sandbox run without asking. */
|
|
30
|
+
export declare function sandboxRunsShellUnasked(sandbox: Pick<SandboxSummary, 'environment' | 'enforced'> | undefined): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The session's rules with the in-sandbox shell allowance behind them: the
|
|
33
|
+
* operator's rules and remembered answers decide first, the allowance is what
|
|
34
|
+
* a shell command meets last, and the gate's safety floor outranks all of it.
|
|
35
|
+
*/
|
|
36
|
+
export declare function withSandboxShell(rules: readonly AuthorizationRule[], sandbox: Pick<SandboxSummary, 'environment' | 'enforced'>): readonly AuthorizationRule[];
|
|
37
|
+
//# sourceMappingURL=sandbox-shell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-shell.d.ts","sourceRoot":"","sources":["../../src/permissions/sandbox-shell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACN,KAAK,iBAAiB,EAKtB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAI3D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GACvD,SAAS,iBAAiB,EAAE,CAoB9B;AAED,+EAA+E;AAC/E,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG,SAAS,GACnE,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,SAAS,iBAAiB,EAAE,EACnC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GACvD,SAAS,iBAAiB,EAAE,CAE9B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `--allowed-tools` and `--disallowed-tools`: permission rules for one run.
|
|
3
|
+
*
|
|
4
|
+
* Each list is a set of tool entries separated by commas or spaces, where an
|
|
5
|
+
* entry is a tool name (`edit`) or a tool name with a pattern in parentheses
|
|
6
|
+
* (`bash(git status*)`), the same patterns a `[permissions]` table takes.
|
|
7
|
+
*
|
|
8
|
+
* The flags add two more layers on top of the configured ones and never
|
|
9
|
+
* replace anything: a deny in any layer still wins, an `ask` still asks, and
|
|
10
|
+
* an allowed entry only settles calls that nothing stricter decided.
|
|
11
|
+
*/
|
|
12
|
+
import type { PermissionsConfig } from './rules.js';
|
|
13
|
+
export interface ToolListProblem {
|
|
14
|
+
readonly flag: string;
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ToolListResult {
|
|
18
|
+
readonly table: PermissionsConfig | undefined;
|
|
19
|
+
readonly problems: readonly ToolListProblem[];
|
|
20
|
+
}
|
|
21
|
+
/** Split on commas and whitespace that sit outside parentheses. */
|
|
22
|
+
export declare function splitToolList(value: string): {
|
|
23
|
+
items: string[];
|
|
24
|
+
unbalanced: boolean;
|
|
25
|
+
};
|
|
26
|
+
/** One flag's lists as a permissions table that gives every entry `effect`. */
|
|
27
|
+
export declare function toolListTable(flag: string, lists: readonly string[], effect: 'allow' | 'deny'): ToolListResult;
|
|
28
|
+
/** The permission layers the two flags add, lowest precedence first, plus anything wrong with them. */
|
|
29
|
+
export declare function toolFlagLayers(flags: {
|
|
30
|
+
readonly allowedTools: readonly string[];
|
|
31
|
+
readonly disallowedTools: readonly string[];
|
|
32
|
+
}): {
|
|
33
|
+
layers: PermissionsConfig[];
|
|
34
|
+
problems: ToolListProblem[];
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=tool-flags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-flags.d.ts","sourceRoot":"","sources":["../../src/permissions/tool-flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAA;AAEnE,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;CAC7C;AAED,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAgBrF;AAOD,+EAA+E;AAC/E,wBAAgB,aAAa,CAC5B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,OAAO,GAAG,MAAM,GACtB,cAAc,CAuChB;AAED,uGAAuG;AACvG,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACrC,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3C,GAAG;IAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAAC,QAAQ,EAAE,eAAe,EAAE,CAAA;CAAE,CAS/D"}
|
package/dist/plan/approval.d.ts
CHANGED
|
@@ -39,4 +39,5 @@ export declare const KEEP_PLANNING_PLACEHOLDER = "Tell namzu what to change";
|
|
|
39
39
|
/** The rows in the order they are shown and numbered. */
|
|
40
40
|
export declare function planApprovalRows(bypassAvailable: boolean): readonly PlanApprovalRow[];
|
|
41
41
|
export declare const EXIT_PLAN_MODE_TOOL_NAME = "exit_plan_mode";
|
|
42
|
+
export declare const ENTER_PLAN_MODE_TOOL_NAME = "enter_plan_mode";
|
|
42
43
|
//# sourceMappingURL=approval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../src/plan/approval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IACnC,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,8BAA8B;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,gFAAgF;IAChF,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CACjC;AAED,MAAM,MAAM,kBAAkB;AAC7B,oFAAoF;AAClF;IACA,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CACzB;AACH,+FAA+F;GAC7F;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,CA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,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEjE,8GAA8G;AAC9G,MAAM,MAAM,cAAc,GAAG,CAC5B,OAAO,EAAE,mBAAmB,EAC5B,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAEhC,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,EAAE,EAAE,cAAc,GAAG,sBAAsB,GAAG,aAAa,GAAG,eAAe,CAAA;IACtF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,CAAA;CAC9B;AAED,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AAEpE,yDAAyD;AACzD,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,eAAe,EAAE,CAoBrF;AAED,eAAO,MAAM,wBAAwB,mBAAmB,CAAA;AACxD,eAAO,MAAM,yBAAyB,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ToolDefinition } from '@namzu/sdk';
|
|
2
|
+
import type { PermissionMode } from '../permissions/mode.js';
|
|
3
|
+
import type { QuestionFn, UserQuestion } from '../tui/agent.js';
|
|
4
|
+
export interface EnterPlanModeHost {
|
|
5
|
+
/** The mode decisions are made under right now. */
|
|
6
|
+
readonly mode: () => PermissionMode;
|
|
7
|
+
/** The plan file for this session. */
|
|
8
|
+
readonly planPath: () => string;
|
|
9
|
+
/** Who answers a question this turn; absent means nobody can be asked. */
|
|
10
|
+
readonly ask: () => QuestionFn | undefined;
|
|
11
|
+
/** Switch the session to plan mode; the host announces it. */
|
|
12
|
+
readonly enter: () => void | Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
/** The question the person answers before the session changes mode. */
|
|
15
|
+
export declare function enterPlanModeQuestion(): UserQuestion;
|
|
16
|
+
/** What the model reads once plan mode is on: what to do now, and where the plan goes. */
|
|
17
|
+
export declare function enteredPlanModeText(planPath: string): string;
|
|
18
|
+
/** What the model reads when the person chose to go ahead without planning. */
|
|
19
|
+
export declare const DECLINED_PLAN_MODE_TEXT = "The user chose not to plan first. Carry on with the change directly, and ask when something needs their decision.";
|
|
20
|
+
/**
|
|
21
|
+
* `enter_plan_mode`: the model proposes planning before a change that is not
|
|
22
|
+
* small, and the person decides. Deferred, so most turns never carry its
|
|
23
|
+
* description. Nothing changes unless the person says yes: in `auto` and
|
|
24
|
+
* `plan` the question is skipped (the person already chose how much to be
|
|
25
|
+
* asked, or the session is planning), and every other mode asks.
|
|
26
|
+
*/
|
|
27
|
+
export declare function buildEnterPlanModeTool(host: EnterPlanModeHost): ToolDefinition;
|
|
28
|
+
//# sourceMappingURL=enter-plan-mode-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enter-plan-mode-tool.d.ts","sourceRoot":"","sources":["../../src/plan/enter-plan-mode-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkC,MAAM,YAAY,CAAA;AAEhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAkB,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAG/E,MAAM,WAAW,iBAAiB;IACjC,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,cAAc,CAAA;IACnC,sCAAsC;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,MAAM,CAAA;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,GAAG,EAAE,MAAM,UAAU,GAAG,SAAS,CAAA;IAC1C,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C;AAKD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,YAAY,CAsBpD;AAED,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAW5D;AAED,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,sHACgF,CAAA;AAKpH;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc,CA2E9E"}
|
package/dist/plan/plan-file.d.ts
CHANGED
|
@@ -7,4 +7,12 @@ import type { ToolCallSummary } from '@namzu/sdk';
|
|
|
7
7
|
export declare function isPlanFileWrite(planPath: string, cwd: string): (call: Pick<ToolCallSummary, "name" | "input">) => boolean;
|
|
8
8
|
/** The plan as written, or `undefined` when the file is missing or blank. */
|
|
9
9
|
export declare function readPlan(planPath: string): Promise<string | undefined>;
|
|
10
|
+
/** The most of the plan carried across a compaction, in characters (about 5,000 tokens). */
|
|
11
|
+
export declare const MAX_CARRIED_PLAN_CHARS = 20000;
|
|
12
|
+
/**
|
|
13
|
+
* What a compaction carries of the plan: where the file is and what it says
|
|
14
|
+
* now, so the work in progress can keep following it. `undefined` when no plan
|
|
15
|
+
* has been written.
|
|
16
|
+
*/
|
|
17
|
+
export declare function planCarriedAcrossCompaction(planPath: string): Promise<string | undefined>;
|
|
10
18
|
//# sourceMappingURL=plan-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-file.d.ts","sourceRoot":"","sources":["../../src/plan/plan-file.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAejD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,IAEpD,MAAM,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,KAAG,OAAO,CAQ/D;AAED,6EAA6E;AAC7E,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAO5E"}
|
|
1
|
+
{"version":3,"file":"plan-file.d.ts","sourceRoot":"","sources":["../../src/plan/plan-file.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAejD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,IAEpD,MAAM,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,KAAG,OAAO,CAQ/D;AAED,6EAA6E;AAC7E,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAO5E;AAED,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,QAAS,CAAA;AAE5C;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAgB/F"}
|
|
@@ -2,7 +2,12 @@ import type { Message, Task } from '@namzu/sdk';
|
|
|
2
2
|
/**
|
|
3
3
|
* The task-list nudge: after 10 model
|
|
4
4
|
* turns without a task tool, and no more than once per 10 model turns, the
|
|
5
|
-
* model is reminded the list exists and shown its current contents.
|
|
5
|
+
* model is reminded the list exists and shown its current contents. It speaks
|
|
6
|
+
* only while the current request has run three or more steps (model turns
|
|
7
|
+
* that called a tool), because a list is for work of that size.
|
|
8
|
+
*
|
|
9
|
+
* The nudge is a hidden reminder: the person's transcript, exports and
|
|
10
|
+
* history views never show it.
|
|
6
11
|
*
|
|
7
12
|
* A "model turn" is one assistant message. The count runs over the
|
|
8
13
|
* conversation itself, so it survives a resume and restarts when compaction
|
|
@@ -10,9 +15,12 @@ import type { Message, Task } from '@namzu/sdk';
|
|
|
10
15
|
*/
|
|
11
16
|
export declare const TASK_NUDGE_AFTER_TURNS = 10;
|
|
12
17
|
export declare const TASK_NUDGE_EVERY_TURNS = 10;
|
|
18
|
+
export declare const TASK_NUDGE_MIN_STEPS = 3;
|
|
13
19
|
export declare function taskNudgeCounts(messages: readonly Message[]): {
|
|
14
20
|
readonly sinceTaskTool: number;
|
|
15
21
|
readonly sinceNudge: number;
|
|
16
22
|
};
|
|
23
|
+
/** Model turns that called a tool since the person's latest message. */
|
|
24
|
+
export declare function stepsThisRequest(messages: readonly Message[]): number;
|
|
17
25
|
export declare function taskNudge(messages: readonly Message[], tasks: readonly Pick<Task, 'id' | 'status' | 'subject'>[]): string[];
|
|
18
26
|
//# sourceMappingURL=task-nudge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-nudge.d.ts","sourceRoot":"","sources":["../../src/reminders/task-nudge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAI/C
|
|
1
|
+
{"version":3,"file":"task-nudge.d.ts","sourceRoot":"","sources":["../../src/reminders/task-nudge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAI/C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AACxC,eAAO,MAAM,sBAAsB,KAAK,CAAA;AACxC,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAIrC,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG;IAC9D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC3B,CAkBA;AAED,wEAAwE;AACxE,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,CAQrE;AAMD,wBAAgB,SAAS,CACxB,QAAQ,EAAE,SAAS,OAAO,EAAE,EAC5B,KAAK,EAAE,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,GAAG,SAAS,CAAC,EAAE,GACvD,MAAM,EAAE,CAaV"}
|
package/dist/skills/store.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ export interface SkillInfo {
|
|
|
53
53
|
readonly invocation?: 'model' | 'operator' | 'both';
|
|
54
54
|
/** Tools the session must have for the model to be offered it (`metadata.namzu-requires-tools`). */
|
|
55
55
|
readonly requiresTools?: readonly string[];
|
|
56
|
+
/** What the composer shows after `/<name> ` (`argument-hint`). */
|
|
57
|
+
readonly argumentHint?: string;
|
|
58
|
+
/** `user-invocable: false`: the skill is for the model only and gets no `/<name>`. */
|
|
59
|
+
readonly userInvocable?: false;
|
|
56
60
|
/** Lower-precedence `SKILL.md` files of the same name this one hides. */
|
|
57
61
|
readonly shadows?: readonly string[];
|
|
58
62
|
}
|
|
@@ -94,6 +98,8 @@ interface ParsedSkill {
|
|
|
94
98
|
readonly description?: string;
|
|
95
99
|
readonly invocation?: 'model' | 'operator' | 'both';
|
|
96
100
|
readonly requiresTools?: readonly string[];
|
|
101
|
+
readonly argumentHint?: string;
|
|
102
|
+
readonly userInvocable?: false;
|
|
97
103
|
readonly body: string;
|
|
98
104
|
}
|
|
99
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/skills/store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGvD,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;AAEvD,0EAA0E;AAC1E,MAAM,MAAM,SAAS,GAClB,QAAQ,GACR,aAAa,GACb,MAAM,GACN,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,CAAA;AAEZ,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAO3C,CAAA;AAWD,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE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AE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GACnD,MAAM,GAAG,IAAI,CASf;AAED,sDAAsD;AACtD,eAAO,MAAM,eAAe,uIACyG,CAAA;AAErI;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,MAAM,CAaR"}
|
package/dist/tui/App.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export type ExternalEditorAdapter = (request: {
|
|
|
40
40
|
readonly seed: string;
|
|
41
41
|
readonly cwd: string;
|
|
42
42
|
readonly signal: AbortSignal;
|
|
43
|
+
/** The key that opened the editor, as a person reads it. */
|
|
44
|
+
readonly pressed?: string;
|
|
43
45
|
}) => Promise<string>;
|
|
44
46
|
type ReviewPreset = 'base-branch' | 'uncommitted' | 'commit' | 'custom';
|
|
45
47
|
type PluginChoiceState = ({
|
|
@@ -216,7 +218,7 @@ export declare function projectConversation(messages: readonly Message[], nextId
|
|
|
216
218
|
* and the epoch it hands down is what makes a memoised row repaint.
|
|
217
219
|
*/
|
|
218
220
|
export declare function App(props: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
219
|
-
export declare function permissionPicker(mode: PermissionMode, more?: boolean, availability?: ModeAvailability): Extract<ChoicePickerState, {
|
|
221
|
+
export declare function permissionPicker(mode: PermissionMode, more?: boolean, availability?: ModeAvailability, sandboxedShell?: boolean): Extract<ChoicePickerState, {
|
|
220
222
|
kind: 'permission-mode';
|
|
221
223
|
}>;
|
|
222
224
|
export {};
|
package/dist/tui/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/tui/App.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAWN,KAAK,OAAO,EAGZ,KAAK,eAAe,EAKpB,KAAK,SAAS,EAcd,MAAM,YAAY,CAAA;
|
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,cAAc,UAAQ,GACpB,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC,CAoCzD"}
|
package/dist/tui/Checklist.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export interface ChecklistItem {
|
|
|
22
22
|
readonly status: ChecklistStatus;
|
|
23
23
|
/** Ids of tasks this one waits on; absent when it waits on none. */
|
|
24
24
|
readonly blockedBy?: readonly string[];
|
|
25
|
+
/** What the working row says while this step is in progress; the subject when absent. */
|
|
26
|
+
readonly activeForm?: string;
|
|
25
27
|
}
|
|
26
28
|
/** One text-presentation, single-cell mark per status. */
|
|
27
29
|
export declare const CHECKLIST_MARK: Readonly<Record<ChecklistStatus, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checklist.d.ts","sourceRoot":"","sources":["../../src/tui/Checklist.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEhF,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC,oEAAoE;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"Checklist.d.ts","sourceRoot":"","sources":["../../src/tui/Checklist.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEhF,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC,oEAAoE;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,yFAAyF;IACzF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,0DAA0D;AAC1D,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAKpE,CAAA;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAE1E;AAED,mEAAmE;AACnE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,MAAM,CAIzE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAEzD;AAmBD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC5B,IAAI,EACJ,IAAa,GACb,EAAE;IACF,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAA;CACvC,2CAyBA;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE,kDAShF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CACjC,GAAG,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE,EAChF,OAAO,EAAE,MAAM,GACb,MAAM,CAQR"}
|
package/dist/tui/Composer.d.ts
CHANGED
|
@@ -76,7 +76,9 @@ export interface ComposerProps {
|
|
|
76
76
|
/** Step through the active model's published reasoning menu. */
|
|
77
77
|
readonly onStepReasoningEffort?: (direction: 'lower' | 'raise') => void;
|
|
78
78
|
/** Open the complete text draft in an operator-owned external editor. */
|
|
79
|
-
readonly onExternalEdit?: (seed: string) => Promise<string>;
|
|
79
|
+
readonly onExternalEdit?: (seed: string, pressed?: string) => Promise<string>;
|
|
80
|
+
/** Alt+T: switch the model's thinking on or off. The host words the outcome. */
|
|
81
|
+
readonly onToggleThinking?: () => void;
|
|
80
82
|
/** Empty-composer Esc ×2 (inside REWIND_DOUBLE_ESC_MS) asks App to open the rewind picker. */
|
|
81
83
|
readonly onEditPrevious?: () => void;
|
|
82
84
|
/** One-shot prompt restored after App has created a source-preserving fork. */
|
|
@@ -128,6 +130,12 @@ export interface ComposerProps {
|
|
|
128
130
|
readonly queuedHintCount?: QueuedHintCount;
|
|
129
131
|
/** ctrl+x ctrl+s: deliver the waiting messages now instead of at the next boundary. */
|
|
130
132
|
readonly onSendNow?: () => void;
|
|
133
|
+
/**
|
|
134
|
+
* ctrl+b: move the shell command that is running in the foreground to the
|
|
135
|
+
* background. Returns whether there was one to move; when there was not, the
|
|
136
|
+
* key keeps its editing meaning (cursor left).
|
|
137
|
+
*/
|
|
138
|
+
readonly onBackgroundCommand?: () => boolean;
|
|
131
139
|
/** ctrl+x ctrl+k: stop the background agents (the host arms and confirms). */
|
|
132
140
|
readonly onStopAllAgents?: () => void;
|
|
133
141
|
/** The agents rail has the keyboard: the composer stays on screen, dim. */
|
|
@@ -168,7 +176,7 @@ export type ComposerSubmitMode = 'submit' | 'queue';
|
|
|
168
176
|
* plain prompt (a leading `/`, `!` or `#` is not a command), but it is the operator's own
|
|
169
177
|
* words, so it is kept in history.
|
|
170
178
|
*/
|
|
171
|
-
export type SubmitSource = 'composer' | 'composer-dropdown' | 'command-picker' | 'operator-loop' | 'model-loop' | 'launch-message';
|
|
179
|
+
export type SubmitSource = 'composer' | 'composer-dropdown' | 'command-picker' | 'keybinding' | 'operator-loop' | 'model-loop' | 'launch-message';
|
|
172
180
|
/**
|
|
173
181
|
* A trigger armed when the operator pressed Enter or Tab, with its words'
|
|
174
182
|
* offsets in the message as sent (the trimmed text `onSubmit` receives).
|
|
@@ -192,7 +200,15 @@ export type SubmitMeta = {
|
|
|
192
200
|
*/
|
|
193
201
|
readonly onlyTriggers: boolean;
|
|
194
202
|
} | {
|
|
195
|
-
readonly source:
|
|
203
|
+
readonly source: 'keybinding';
|
|
204
|
+
/**
|
|
205
|
+
* What was typed when the key was pressed. A chooser the key opens takes
|
|
206
|
+
* the screen, so the host keeps this and puts it back when the chooser
|
|
207
|
+
* closes. Absent when nothing was typed.
|
|
208
|
+
*/
|
|
209
|
+
readonly draft?: Omit<ComposerDraft, 'token'>;
|
|
210
|
+
} | {
|
|
211
|
+
readonly source: Exclude<SubmitSource, 'composer' | 'keybinding'>;
|
|
196
212
|
};
|
|
197
213
|
export interface ComposerDraft {
|
|
198
214
|
readonly token: number;
|
|
@@ -227,5 +243,5 @@ export declare function clampDescription(description: string, width: number): re
|
|
|
227
243
|
* operators already bring to this key.
|
|
228
244
|
*/
|
|
229
245
|
export declare function deletePreviousWord(source: string): string;
|
|
230
|
-
export declare function Composer({ disabled, plainText, placeholder, onDraftChange, reasoningEffortLevels, onSubmit, history, userCommands, builtins, mentionCandidates, hidden, escapeInterrupts, onNotice, onFooterNotice, onFooterNoticeRemove, onClearedDraft, onStepReasoningEffort, onExternalEdit, onEditPrevious, draftToRestore, onDraftRestored, onDraftPresenceChange, onOpenAgentPanel, onOpenAgents, onScrollTranscript, onRecallQueued, queuedEdit, queuedHintCount, onSendNow, onStopAllAgents, railFocused, onCycleMode, triggers, turnActive, }: ComposerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
246
|
+
export declare function Composer({ disabled, plainText, placeholder, onDraftChange, reasoningEffortLevels, onSubmit, history, userCommands, builtins, mentionCandidates, hidden, escapeInterrupts, onNotice, onFooterNotice, onFooterNoticeRemove, onClearedDraft, onStepReasoningEffort, onExternalEdit, onToggleThinking, onEditPrevious, draftToRestore, onDraftRestored, onDraftPresenceChange, onOpenAgentPanel, onOpenAgents, onScrollTranscript, onRecallQueued, queuedEdit, queuedHintCount, onSendNow, onBackgroundCommand, onStopAllAgents, railFocused, onCycleMode, triggers, turnActive, }: ComposerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
231
247
|
//# sourceMappingURL=Composer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../src/tui/Composer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAKnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAEN,KAAK,eAAe,EAGpB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../src/tui/Composer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAKnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAEN,KAAK,eAAe,EAGpB,MAAM,qBAAqB,CAAA;AAM5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAUhD,OAAO,EAAE,KAAK,YAAY,EAAuC,MAAM,oBAAoB,CAAA;AAK3F,OAAO,EAGN,KAAK,cAAc,EAGnB,MAAM,sBAAsB,CAAA;AAW7B,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAOxE,gDAAgD;AAChD,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,OAAO,CAAA;AACvC,kFAAkF;AAClF,eAAO,MAAM,oBAAoB,MAAM,CAAA;AAEvC,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,kGAAkG;IAClG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gB,EAChB,SAAiB,EACjB,WAAoD,EACpD,aAAa,EACb,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,YAAiB,EACjB,QAAQ,EACR,iBAAsB,EACtB,MAAc,EACd,gBAAwB,EACxB,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,cAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,WAAmB,EACnB,WAAW,EACX,QAAQ,EACR,UAAkB,GAClB,EAAE,aAAa,kDA4tCf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextGridRow.d.ts","sourceRoot":"","sources":["../../src/tui/ContextGridRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,WAAW,EAAgB,MAAM,mBAAmB,CAAA;AAmBzF,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"ContextGridRow.d.ts","sourceRoot":"","sources":["../../src/tui/ContextGridRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,WAAW,EAAgB,MAAM,mBAAmB,CAAA;AAmBzF,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,2CA6FtE"}
|
|
@@ -24,6 +24,8 @@ export interface ActiveTool {
|
|
|
24
24
|
readonly web?: WebActivity;
|
|
25
25
|
/** A shell call's command; set, the call is drawn as a command cell (`● Bash(…)` over `⎿ Running…`). */
|
|
26
26
|
readonly command?: string;
|
|
27
|
+
/** A shell call that has run long enough to be moved to the background: a dim hint says how. */
|
|
28
|
+
readonly canBackground?: true;
|
|
27
29
|
/** The last few output lines the shell call has reported, oldest first. */
|
|
28
30
|
readonly tail?: readonly string[];
|
|
29
31
|
/** Asked about or waiting behind another question: drawn quiet, with a static dim dot. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveActivity.d.ts","sourceRoot":"","sources":["../../src/tui/LiveActivity.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"LiveActivity.d.ts","sourceRoot":"","sources":["../../src/tui/LiveActivity.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EAAE,KAAK,kBAAkB,EAA6B,MAAM,yBAAyB,CAAA;AAO5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,oFAAoF;IACpF,QAAQ,CAAC,GAAG,CAAC,EAAE,WAAW,CAAA;IAC1B,wGAAwG;IACxG,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,gGAAgG;IAChG,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAA;IAC7B,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,0FAA0F;IAC1F,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,iBA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
@@ -4,10 +4,19 @@
|
|
|
4
4
|
* selected index.
|
|
5
5
|
*/
|
|
6
6
|
import type { RecentConversation } from '../integrations/sessions/store.js';
|
|
7
|
+
import { type ResumeScope } from './resume-picker-state.js';
|
|
7
8
|
export interface ResumePickerProps {
|
|
8
9
|
readonly conversations: readonly RecentConversation[];
|
|
9
10
|
readonly selected: number;
|
|
10
11
|
readonly mode?: 'resume' | 'restore';
|
|
12
|
+
/** What the person has typed to narrow the list. */
|
|
13
|
+
readonly query?: string;
|
|
14
|
+
/** Which conversations are listed; the folder switch is offered only in `resume`. */
|
|
15
|
+
readonly scope?: ResumeScope;
|
|
16
|
+
/** The name being typed for the selected conversation, or `null` when not renaming. */
|
|
17
|
+
readonly renaming?: string | null;
|
|
18
|
+
/** A short plain line under the list, such as why Enter did nothing. */
|
|
19
|
+
readonly notice?: string;
|
|
11
20
|
}
|
|
12
|
-
export declare function ResumePicker({ conversations, selected, mode }: ResumePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function ResumePicker({ conversations, selected, mode, query, scope, renaming, notice, }: ResumePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
22
|
//# sourceMappingURL=ResumePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResumePicker.d.ts","sourceRoot":"","sources":["../../src/tui/ResumePicker.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"ResumePicker.d.ts","sourceRoot":"","sources":["../../src/tui/ResumePicker.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAG3E,OAAO,EAAE,KAAK,WAAW,EAAkC,MAAM,0BAA0B,CAAA;AAI3F,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,aAAa,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACrD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IACpC,oDAAoD;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;IAC5B,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,wEAAwE;IACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,wBAAgB,YAAY,CAAC,EAC5B,aAAa,EACb,QAAQ,EACR,IAAe,EACf,KAAU,EACV,KAAgB,EAChB,QAAe,EACf,MAAM,GACN,EAAE,iBAAiB,2CAsInB"}
|
package/dist/tui/StatusBar.d.ts
CHANGED
|
@@ -58,6 +58,12 @@ export interface StatusBarProps {
|
|
|
58
58
|
readonly dialogOpen?: boolean;
|
|
59
59
|
/** The mode governing undecided tool calls. Omitted or 'prompt' shows the quiet cycle reminder instead of a badge. */
|
|
60
60
|
readonly permissionMode?: PermissionMode;
|
|
61
|
+
/**
|
|
62
|
+
* Shell commands inside the sandbox run without asking (a sandbox that
|
|
63
|
+
* confines the file system and the process table is on). In `prompt` mode
|
|
64
|
+
* the resting hint says so.
|
|
65
|
+
*/
|
|
66
|
+
readonly sandboxShell?: boolean;
|
|
61
67
|
/** Whether Shift+Tab actually reaches `permissionMode` here, so the footer never advertises a dead key. */
|
|
62
68
|
readonly canCycleMode?: boolean;
|
|
63
69
|
/**
|
|
@@ -117,7 +123,7 @@ export declare function modeGlyph(mode: PermissionMode): {
|
|
|
117
123
|
};
|
|
118
124
|
/** `2 shells`, `1 monitor`, or both: the two kinds counted apart in one pill. */
|
|
119
125
|
export declare function backgroundPill(shells: number, monitors: number): string | null;
|
|
120
|
-
export declare function StatusBar({ provider, model, effort, hypermode, goal, state, hint, hintDim, dialogOpen, permissionMode, canCycleMode, composerMounted, restingHint, shellCount, monitorCount, pr, hyperlinks, agentCount, workflowCount, canManage, shellsSelected, railHint, notice, ambient, }: StatusBarProps): import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
export declare function StatusBar({ provider, model, effort, hypermode, goal, state, hint, hintDim, dialogOpen, permissionMode, canCycleMode, sandboxShell, composerMounted, restingHint, shellCount, monitorCount, pr, hyperlinks, agentCount, workflowCount, canManage, shellsSelected, railHint, notice, ambient, }: StatusBarProps): import("react/jsx-runtime").JSX.Element;
|
|
121
127
|
export interface StatusLineLayout {
|
|
122
128
|
readonly mode: string | null;
|
|
123
129
|
readonly cycleSuffix: string | null;
|