@namzu/cli 41.2.2 → 42.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -0
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-5RFAFTQU.js → acp-ADQ2PRAY.js} +48 -48
- package/dist/chunks/{activity-command-XLF5EAM5.js → activity-command-JROQLBPA.js} +14 -15
- package/dist/chunks/activity-command-JROQLBPA.js.map +6 -0
- package/dist/chunks/{add-Z6Y5DOCM.js → add-ILLLF6YP.js} +25 -25
- package/dist/chunks/{agent-U4NFC4DT.js → agent-YQI5KOPV.js} +34 -35
- package/dist/chunks/agent-session-3MUZCWQ4.js +58 -0
- package/dist/chunks/{archive-P47MRHE2.js → archive-55KJKGJB.js} +11 -11
- package/dist/chunks/{bin-main-B3QOTIEH.js → bin-main-332F5KRZ.js} +13 -6
- package/dist/chunks/{bin-main-B3QOTIEH.js.map → bin-main-332F5KRZ.js.map} +1 -1
- package/dist/chunks/{browser-QN24UC7K.js → browser-C6AOJ3CH.js} +6 -6
- package/dist/chunks/{chat-HRORSJPH.js → chat-45H5F3KI.js} +16 -16
- package/dist/chunks/{chunk-TU46IHIV.js → chunk-23NRJ2RC.js} +5 -5
- package/dist/chunks/chunk-27R3OTVS.js +14 -0
- package/dist/chunks/chunk-27R3OTVS.js.map +6 -0
- package/dist/chunks/{chunk-LFI6O7WL.js → chunk-2OVZNENW.js} +43 -2
- package/dist/chunks/chunk-2OVZNENW.js.map +6 -0
- package/dist/chunks/{chunk-CEIYJWZ2.js → chunk-35VTE7V5.js} +2 -2
- package/dist/chunks/chunk-3F3V2PB7.js +56 -0
- package/dist/chunks/chunk-3F3V2PB7.js.map +6 -0
- package/dist/chunks/{chunk-72CFHDKQ.js → chunk-3LNTQLQ4.js} +14 -14
- package/dist/chunks/{chunk-NTPBXJMK.js → chunk-4IIEEOCA.js} +66 -6
- package/dist/chunks/chunk-4IIEEOCA.js.map +6 -0
- package/dist/chunks/{chunk-WBTXYSAB.js → chunk-4NO5XFK2.js} +2 -2
- package/dist/chunks/chunk-4TS6ZPOZ.js +363 -0
- package/dist/chunks/chunk-4TS6ZPOZ.js.map +6 -0
- package/dist/chunks/{chunk-UEXQA2UW.js → chunk-5XWMKWQQ.js} +65 -5
- package/dist/chunks/chunk-5XWMKWQQ.js.map +6 -0
- package/dist/chunks/{chunk-4SP6H34B.js → chunk-6GBZAUYW.js} +2 -2
- package/dist/chunks/{chunk-L2GZVP5H.js → chunk-6LVWHXT6.js} +10 -15
- package/dist/chunks/chunk-6LVWHXT6.js.map +6 -0
- package/dist/chunks/{chunk-2UPDDG7V.js → chunk-6PNBIMWH.js} +3 -3
- package/dist/chunks/{chunk-25XPE4N6.js → chunk-6S4R2USK.js} +3 -3
- package/dist/chunks/{chunk-4WWLRVYU.js → chunk-7E3V7NNN.js} +1282 -523
- package/dist/chunks/chunk-7E3V7NNN.js.map +6 -0
- package/dist/chunks/{chunk-VCKNYZYH.js → chunk-A3AF5WXZ.js} +6 -6
- package/dist/chunks/{chunk-G34P5PIK.js → chunk-A4CKLHKM.js} +4 -4
- package/dist/chunks/{chunk-Y5QV6NZK.js → chunk-AZPS37AQ.js} +2 -2
- package/dist/chunks/{chunk-2UYBHC3L.js → chunk-BDLDDNNO.js} +37 -6
- package/dist/chunks/chunk-BDLDDNNO.js.map +6 -0
- package/dist/chunks/{chunk-WJ7XYOSE.js → chunk-BRKD6FMO.js} +2 -2
- package/dist/chunks/{chunk-I55BEPVH.js → chunk-CW2N2QS2.js} +4 -4
- package/dist/chunks/{chunk-2VQ475KY.js → chunk-DLL2FPUY.js} +2 -2
- package/dist/chunks/{chunk-CIIMESY2.js → chunk-ESZ7X37S.js} +4 -4
- package/dist/chunks/{chunk-CAPC66Q6.js → chunk-EWSIGY2A.js} +4 -4
- package/dist/chunks/{chunk-JEULHVUH.js → chunk-F6WVRMVY.js} +864 -283
- package/dist/chunks/chunk-F6WVRMVY.js.map +6 -0
- package/dist/chunks/{chunk-CM2I2L4G.js → chunk-FMEGRBJP.js} +2 -2
- package/dist/chunks/{chunk-JKXCLMMZ.js → chunk-FSKJ3EZC.js} +2 -2
- package/dist/chunks/chunk-G5RAECIB.js +144 -0
- package/dist/chunks/chunk-G5RAECIB.js.map +6 -0
- package/dist/chunks/{chunk-C2IABASE.js → chunk-GOGBOZKO.js} +666 -27
- package/dist/chunks/chunk-GOGBOZKO.js.map +6 -0
- package/dist/chunks/chunk-HO2ZUI5Y.js +1189 -0
- package/dist/chunks/chunk-HO2ZUI5Y.js.map +6 -0
- package/dist/chunks/{chunk-2QXVOSJM.js → chunk-HOIDWHGC.js} +6 -6
- package/dist/chunks/{chunk-U2AVT6OB.js → chunk-HOY7BUGW.js} +3 -3
- package/dist/chunks/{chunk-WKGECHMV.js → chunk-HQZ3GBQI.js} +7 -7
- package/dist/chunks/{chunk-Z7DJAGBK.js → chunk-HXAWIWOZ.js} +2 -2
- package/dist/chunks/{chunk-CT23IU3D.js → chunk-IQQ6TY4W.js} +3 -3
- package/dist/chunks/{chunk-SEVUBJMR.js → chunk-J4IES4SO.js} +5 -5
- package/dist/chunks/{chunk-SEVUBJMR.js.map → chunk-J4IES4SO.js.map} +1 -1
- package/dist/chunks/{chunk-QNFMVN4D.js → chunk-JD2HLKFO.js} +2 -2
- package/dist/chunks/chunk-JHDNGNQT.js +95 -0
- package/dist/chunks/chunk-JHDNGNQT.js.map +6 -0
- package/dist/chunks/{chunk-H6B6AROX.js → chunk-JQIBPPOL.js} +69 -46
- package/dist/chunks/chunk-JQIBPPOL.js.map +6 -0
- package/dist/chunks/{chunk-ZDEFWEEI.js → chunk-JXT47VT6.js} +113 -35
- package/dist/chunks/chunk-JXT47VT6.js.map +6 -0
- package/dist/chunks/{chunk-LVDRURI4.js → chunk-K6LLMOB2.js} +2 -2
- package/dist/chunks/{chunk-EUBCYTOK.js → chunk-KONYGNG6.js} +152 -3
- package/dist/chunks/chunk-KONYGNG6.js.map +6 -0
- package/dist/chunks/{chunk-BHR2CNBZ.js → chunk-L3QW53QL.js} +223 -247
- package/dist/chunks/chunk-L3QW53QL.js.map +6 -0
- package/dist/chunks/{chunk-2HDIUUMX.js → chunk-M46GKTOI.js} +2 -2
- package/dist/chunks/{chunk-RKSYVIQX.js → chunk-N3C5X6BW.js} +6 -6
- package/dist/chunks/chunk-N4OY22M2.js +256 -0
- package/dist/chunks/chunk-N4OY22M2.js.map +6 -0
- package/dist/chunks/{chunk-E7FQPIJB.js → chunk-N56FVHCU.js} +26 -2
- package/dist/chunks/chunk-N56FVHCU.js.map +6 -0
- package/dist/chunks/chunk-PCUMISO3.js +92 -0
- package/dist/chunks/chunk-PCUMISO3.js.map +6 -0
- package/dist/chunks/{chunk-3RC4ATZI.js → chunk-QRGO6R2O.js} +12 -6
- package/dist/chunks/chunk-QRGO6R2O.js.map +6 -0
- package/dist/chunks/{chunk-37DRD4QM.js → chunk-QT6KYBCC.js} +3 -3
- package/dist/chunks/{chunk-QZYTSINZ.js → chunk-QUELENQP.js} +4 -4
- package/dist/chunks/{chunk-ZQRO6GGZ.js → chunk-QWBR6FBY.js} +89 -20
- package/dist/chunks/chunk-QWBR6FBY.js.map +6 -0
- package/dist/chunks/{chunk-7B5YTYHY.js → chunk-R2LYGFCI.js} +4 -4
- package/dist/chunks/{chunk-BNMFWLWH.js → chunk-RGVJHSMU.js} +5 -5
- package/dist/chunks/{chunk-YYX7O3T2.js → chunk-RVSVVL6O.js} +3 -3
- package/dist/chunks/{chunk-A6J2VJL5.js → chunk-S4KDR6G5.js} +53 -6
- package/dist/chunks/chunk-S4KDR6G5.js.map +6 -0
- package/dist/chunks/chunk-SIG7WHBU.js +78 -0
- package/dist/chunks/chunk-SIG7WHBU.js.map +6 -0
- package/dist/chunks/{chunk-RM4XZZL3.js → chunk-SIWZZF4M.js} +15 -15
- package/dist/chunks/{chunk-J67SASGK.js → chunk-SNC5D5UG.js} +18 -18
- package/dist/chunks/{chunk-CLADMV2E.js → chunk-SRYIMLOK.js} +2 -2
- package/dist/chunks/{chunk-3OP32UHN.js → chunk-TW5BCDA5.js} +3 -3
- package/dist/chunks/{chunk-5XJC5G7N.js → chunk-URJ7TITR.js} +8 -8
- package/dist/chunks/{chunk-4SBUXWX3.js → chunk-W2PJ6ZHY.js} +12 -47
- package/dist/chunks/chunk-W2PJ6ZHY.js.map +6 -0
- package/dist/chunks/{chunk-ZMZR4UTZ.js → chunk-WHOSI6UQ.js} +2 -2
- package/dist/chunks/{chunk-ANUGFVZI.js → chunk-XCMCPWMB.js} +4 -4
- package/dist/chunks/{chunk-VALR7WUL.js → chunk-XGVCAMNT.js} +2 -2
- package/dist/chunks/{chunk-DHV3KMEC.js → chunk-XMOKHCPV.js} +116 -40
- package/dist/chunks/chunk-XMOKHCPV.js.map +6 -0
- package/dist/chunks/{chunk-34L6FTQV.js → chunk-XXUL6HHM.js} +2 -2
- package/dist/chunks/{chunk-PKBHQFT6.js → chunk-Y2DZ27P6.js} +4 -4
- package/dist/chunks/{chunk-WN7YMX22.js → chunk-Y3I7AAD6.js} +4 -4
- package/dist/chunks/{chunk-UM4ECTUS.js → chunk-Y74CPWYC.js} +13 -13
- package/dist/chunks/chunk-YM4DUQ3P.js +59 -0
- package/dist/chunks/chunk-YM4DUQ3P.js.map +6 -0
- package/dist/chunks/{chunk-DQKQKNDY.js → chunk-YP7AINGL.js} +9 -9
- package/dist/chunks/{chunk-ZGBKTT7X.js → chunk-YPHXWFKQ.js} +2 -2
- package/dist/chunks/{chunk-OFNGIO53.js → chunk-YVIM3MXU.js} +2 -2
- package/dist/chunks/{cli-runtime-7GSPWSYW.js → cli-runtime-HW6GQKC6.js} +23 -20
- package/dist/chunks/cli-runtime-HW6GQKC6.js.map +6 -0
- package/dist/chunks/{commands-LU5AOF65.js → commands-JZT6JJY5.js} +5 -5
- package/dist/chunks/{crash-report-YDSO3QZP.js → crash-report-TWMWHNKY.js} +9 -7
- package/dist/chunks/{dist-7JBTU4ZA.js → dist-4EGZFRWY.js} +12 -2
- package/dist/chunks/dist-4EGZFRWY.js.map +6 -0
- package/dist/chunks/{dist-SLWBMTWO.js → dist-6ORFQIRV.js} +7 -2
- package/dist/chunks/{dist-SLWBMTWO.js.map → dist-6ORFQIRV.js.map} +1 -1
- package/dist/chunks/{dist-FI4O2BO3.js → dist-AZ5T257L.js} +22 -2
- package/dist/chunks/dist-AZ5T257L.js.map +6 -0
- package/dist/chunks/{dist-BJMHCL2F.js → dist-CLKFY67B.js} +8 -4
- package/dist/chunks/{dist-BJMHCL2F.js.map → dist-CLKFY67B.js.map} +1 -1
- package/dist/chunks/{dist-JWX7FPMB.js → dist-K5JIOWIQ.js} +8 -3
- package/dist/chunks/dist-K5JIOWIQ.js.map +6 -0
- package/dist/chunks/{dist-7PFXZB32.js → dist-MVLQAON2.js} +12 -2
- package/dist/chunks/{dist-7PFXZB32.js.map → dist-MVLQAON2.js.map} +1 -1
- package/dist/chunks/{dist-47WGWXP5.js → dist-POSMI3PI.js} +18 -4
- package/dist/chunks/{dist-47WGWXP5.js.map → dist-POSMI3PI.js.map} +1 -1
- package/dist/chunks/{doctor-ZK3CTBDR.js → doctor-UVZBNUNF.js} +15 -9
- package/dist/chunks/{drain-CVQW35OB.js → drain-27E6XUNK.js} +11 -10
- package/dist/chunks/drain-27E6XUNK.js.map +6 -0
- package/dist/chunks/{eval-PBRDQ7GI.js → eval-NRRIWDET.js} +2 -2
- package/dist/chunks/{exec-ZVOPAVQC.js → exec-KX46LZ36.js} +159 -62
- package/dist/chunks/exec-KX46LZ36.js.map +6 -0
- package/dist/chunks/{home-QPIQIIAR.js → home-RT2I6VTQ.js} +3 -3
- package/dist/chunks/{host-queries-UUG7LHPF.js → host-queries-ZXGOA6ZL.js} +23 -17
- package/dist/chunks/host-queries-ZXGOA6ZL.js.map +6 -0
- package/dist/chunks/install-LVQAT4QP.js +15 -0
- package/dist/chunks/{learn-AILV7XYA.js → learn-5KKZ4ZFX.js} +15 -14
- package/dist/chunks/learn-5KKZ4ZFX.js.map +6 -0
- package/dist/chunks/{learn-builtin-I2RMG7OE.js → learn-builtin-MSUF4MEJ.js} +18 -17
- package/dist/chunks/learn-builtin-MSUF4MEJ.js.map +6 -0
- package/dist/chunks/{lifecycle-ZZ5HDP6F.js → lifecycle-TZU6D46R.js} +29 -30
- package/dist/chunks/{list-TMHSX32S.js → list-QCWNMQED.js} +23 -23
- package/dist/chunks/live-V7HRF5KR.js +34 -0
- package/dist/chunks/{login-VUIOQEA2.js → login-QFP3PIXG.js} +8 -8
- package/dist/chunks/{logs-QQTFNNSW.js → logs-XTXMS4JF.js} +4 -4
- package/dist/chunks/{mcp-6H3YELN6.js → mcp-WQFJJ4NO.js} +81 -23
- package/dist/chunks/mcp-WQFJJ4NO.js.map +6 -0
- package/dist/chunks/{message-command-IQTT76ZY.js → message-command-QVNUJN47.js} +40 -41
- package/dist/chunks/message-command-QVNUJN47.js.map +6 -0
- package/dist/chunks/{operator-tools-ISZGHK3F.js → operator-tools-2OYRNPCH.js} +14 -14
- package/dist/chunks/{output-schema-63NLKBRY.js → output-schema-ETVPLUXE.js} +3 -3
- package/dist/chunks/{pal-RAIDDDNH.js → pal-BYFZCLE2.js} +12 -13
- package/dist/chunks/pal-BYFZCLE2.js.map +6 -0
- package/dist/chunks/plain-report-73WHPLHX.js +146 -0
- package/dist/chunks/plain-report-73WHPLHX.js.map +6 -0
- package/dist/chunks/{providers-N2UXL3XT.js → providers-KP5JHTTK.js} +6 -6
- package/dist/chunks/{resident-CWT62J2M.js → resident-BROBTK35.js} +35 -32
- package/dist/chunks/resident-BROBTK35.js.map +6 -0
- package/dist/chunks/resume-7V44GSEU.js +23 -0
- package/dist/chunks/{resume-command-DNNLB5SK.js → resume-command-OKJ2MJPB.js} +4 -4
- package/dist/chunks/{schedule-6N33GN2Z.js → schedule-TVR3FE32.js} +8 -8
- package/dist/chunks/{service-77ZFLYDC.js → service-6A3TOQKV.js} +35 -36
- package/dist/chunks/service-6A3TOQKV.js.map +6 -0
- package/dist/chunks/session-step-N4GHA2YE.js +33 -0
- package/dist/chunks/{skills-SAIXOU7Z.js → skills-WXYSPDKL.js} +9 -8
- package/dist/chunks/skills-WXYSPDKL.js.map +6 -0
- package/dist/chunks/start-check-BUCN5MCU.js +12 -0
- package/dist/chunks/{state-J4NZZP7B.js → state-PVAVIXHK.js} +3 -3
- package/dist/chunks/{store-QLG76DQG.js → store-D3XUEEAF.js} +6 -6
- package/dist/chunks/store-D3XUEEAF.js.map +6 -0
- package/dist/chunks/{store-YRVVPTUX.js → store-NB3KR4XA.js} +15 -11
- package/dist/chunks/store-NB3KR4XA.js.map +6 -0
- package/dist/chunks/{store-2JQLHCG4.js → store-O3KC2PPZ.js} +4 -4
- package/dist/chunks/store-O3KC2PPZ.js.map +6 -0
- package/dist/chunks/{tui-77L5I5EV.js → tui-2XOSCALL.js} +788 -217
- package/dist/chunks/tui-2XOSCALL.js.map +6 -0
- package/dist/chunks/undici-LWANNIOV.js +26906 -0
- package/dist/chunks/undici-LWANNIOV.js.map +6 -0
- package/dist/chunks/upgrade-FY5ULZQF.js +456 -0
- package/dist/chunks/upgrade-FY5ULZQF.js.map +6 -0
- package/dist/chunks/{worktree-5ETUFJAC.js → worktree-MVW62U5G.js} +13 -13
- package/dist/cli-runtime.d.ts +1 -0
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/append-system.d.ts +19 -0
- package/dist/commands/append-system.d.ts.map +1 -0
- package/dist/commands/desktop-host.d.ts +6 -0
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/exec-flags.d.ts +33 -0
- package/dist/commands/exec-flags.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts +6 -0
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts +4 -2
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/host-queries.d.ts.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/resident-flags.d.ts.map +1 -1
- package/dist/commands/run-flags.d.ts +32 -0
- package/dist/commands/run-flags.d.ts.map +1 -0
- package/dist/commands/upgrade.d.ts +23 -25
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/config/load.d.ts +20 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +36 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/turn-guards.d.ts +3 -0
- package/dist/config/turn-guards.d.ts.map +1 -1
- package/dist/context/instruction-glob.d.ts +5 -0
- package/dist/context/instruction-glob.d.ts.map +1 -0
- package/dist/context/instruction-scope.d.ts +78 -0
- package/dist/context/instruction-scope.d.ts.map +1 -0
- package/dist/context/project-tracker.d.ts +10 -1
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/project.d.ts +46 -2
- package/dist/context/project.d.ts.map +1 -1
- package/dist/context/runtime-message.d.ts +8 -1
- package/dist/context/runtime-message.d.ts.map +1 -1
- package/dist/doctor/checks/cache-lifetime.d.ts +19 -0
- package/dist/doctor/checks/cache-lifetime.d.ts.map +1 -0
- package/dist/doctor/checks/index.d.ts +3 -1
- package/dist/doctor/checks/index.d.ts.map +1 -1
- package/dist/doctor/checks/network.d.ts +15 -0
- package/dist/doctor/checks/network.d.ts.map +1 -0
- package/dist/doctor/checks/updates.d.ts +6 -0
- package/dist/doctor/checks/updates.d.ts.map +1 -0
- package/dist/doctor/live.d.ts +15 -0
- package/dist/doctor/live.d.ts.map +1 -0
- package/dist/doctor/plain-report.d.ts +19 -0
- package/dist/doctor/plain-report.d.ts.map +1 -0
- package/dist/index.js +38 -32
- package/dist/integrations/auto-update/apply.d.ts +193 -0
- package/dist/integrations/auto-update/apply.d.ts.map +1 -0
- package/dist/integrations/auto-update/download.d.ts +35 -0
- package/dist/integrations/auto-update/download.d.ts.map +1 -0
- package/dist/integrations/auto-update/install-kind.d.ts +55 -0
- package/dist/integrations/auto-update/install-kind.d.ts.map +1 -0
- package/dist/integrations/auto-update/installed-version.d.ts +3 -0
- package/dist/integrations/auto-update/installed-version.d.ts.map +1 -0
- package/dist/integrations/auto-update/policy.d.ts +28 -0
- package/dist/integrations/auto-update/policy.d.ts.map +1 -0
- package/dist/integrations/auto-update/start-check.d.ts +21 -0
- package/dist/integrations/auto-update/start-check.d.ts.map +1 -0
- package/dist/integrations/auto-update/start.d.ts +25 -0
- package/dist/integrations/auto-update/start.d.ts.map +1 -0
- package/dist/integrations/auto-update/state.d.ts +109 -0
- package/dist/integrations/auto-update/state.d.ts.map +1 -0
- package/dist/integrations/auto-update/status.d.ts +37 -0
- package/dist/integrations/auto-update/status.d.ts.map +1 -0
- package/dist/integrations/auto-update/updater.d.ts +79 -0
- package/dist/integrations/auto-update/updater.d.ts.map +1 -0
- package/dist/integrations/mcp/project-approval.d.ts +41 -0
- package/dist/integrations/mcp/project-approval.d.ts.map +1 -0
- package/dist/integrations/mcp/shared-file.d.ts +36 -0
- package/dist/integrations/mcp/shared-file.d.ts.map +1 -0
- package/dist/integrations/npm-global.d.ts +40 -0
- package/dist/integrations/npm-global.d.ts.map +1 -0
- package/dist/integrations/plugins/hook-host.d.ts +18 -0
- package/dist/integrations/plugins/hook-host.d.ts.map +1 -0
- package/dist/integrations/plugins/runtime.d.ts +4 -2
- package/dist/integrations/plugins/runtime.d.ts.map +1 -1
- package/dist/integrations/providers/fallback-flag.d.ts +29 -0
- package/dist/integrations/providers/fallback-flag.d.ts.map +1 -0
- package/dist/integrations/providers/prompt-cache-ttl.d.ts +3 -0
- package/dist/integrations/providers/prompt-cache-ttl.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +32 -25
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/sessions/conversation-search.d.ts +1 -1
- package/dist/integrations/sessions/conversation-search.d.ts.map +1 -1
- package/dist/integrations/sessions/store.d.ts +23 -0
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +8 -2
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/trust/folder-grants.d.ts +12 -1
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
- package/dist/integrations/updates.d.ts +15 -1
- package/dist/integrations/updates.d.ts.map +1 -1
- package/dist/network/install.d.ts +38 -0
- package/dist/network/install.d.ts.map +1 -0
- package/dist/network/settings.d.ts +50 -0
- package/dist/network/settings.d.ts.map +1 -0
- package/dist/pals/agent-session.d.ts.map +1 -1
- package/dist/permissions/mode.d.ts +3 -1
- package/dist/permissions/mode.d.ts.map +1 -1
- package/dist/permissions/read-only-gate.d.ts +28 -0
- package/dist/permissions/read-only-gate.d.ts.map +1 -0
- package/dist/permissions/sandbox-shell.d.ts +37 -0
- package/dist/permissions/sandbox-shell.d.ts.map +1 -0
- package/dist/permissions/tool-flags.d.ts +36 -0
- package/dist/permissions/tool-flags.d.ts.map +1 -0
- package/dist/plan/approval.d.ts +1 -0
- package/dist/plan/approval.d.ts.map +1 -1
- package/dist/plan/enter-plan-mode-tool.d.ts +28 -0
- package/dist/plan/enter-plan-mode-tool.d.ts.map +1 -0
- package/dist/plan/plan-file.d.ts +8 -0
- package/dist/plan/plan-file.d.ts.map +1 -1
- package/dist/reminders/task-nudge.d.ts +9 -1
- package/dist/reminders/task-nudge.d.ts.map +1 -1
- package/dist/skills/store.d.ts +6 -0
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/tui/App.d.ts +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Checklist.d.ts +2 -0
- package/dist/tui/Checklist.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +7 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ContextGridRow.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts +2 -0
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts +10 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +7 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/TrustPrompt.d.ts +2 -0
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +31 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/capability-notice.d.ts +11 -1
- package/dist/tui/capability-notice.d.ts.map +1 -1
- package/dist/tui/context-grid.d.ts +7 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +4 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/conversation-in-use.d.ts +18 -0
- package/dist/tui/conversation-in-use.d.ts.map +1 -0
- package/dist/tui/foreground-handoff.d.ts +15 -0
- package/dist/tui/foreground-handoff.d.ts.map +1 -0
- package/dist/tui/launch-settings.d.ts +6 -3
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/pause-auto-resume.d.ts +33 -0
- package/dist/tui/pause-auto-resume.d.ts.map +1 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/plain-interruption.d.ts +8 -0
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/restored-rows.d.ts +4 -0
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/resume-picker-state.d.ts +40 -0
- package/dist/tui/resume-picker-state.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +12 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/system-rows.d.ts +3 -0
- package/dist/tui/system-rows.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +2 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/turn-interruption.d.ts +2 -0
- package/dist/tui/turn-interruption.d.ts.map +1 -1
- package/dist/tui/types.d.ts +10 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/update-notice.d.ts +13 -0
- package/dist/tui/update-notice.d.ts.map +1 -1
- package/dist/tui/working-label.d.ts +9 -0
- package/dist/tui/working-label.d.ts.map +1 -0
- package/dist/tui/zen-free-refusal.d.ts +12 -0
- package/dist/tui/zen-free-refusal.d.ts.map +1 -1
- package/dist/user-commands/store.d.ts +30 -1
- package/dist/user-commands/store.d.ts.map +1 -1
- package/package.json +11 -10
- package/dist/chunks/activity-command-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-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-ADQ2PRAY.js.map} +0 -0
- /package/dist/chunks/{add-Z6Y5DOCM.js.map → add-ILLLF6YP.js.map} +0 -0
- /package/dist/chunks/{agent-U4NFC4DT.js.map → agent-YQI5KOPV.js.map} +0 -0
- /package/dist/chunks/{agent-session-LHOJDS75.js.map → agent-session-3MUZCWQ4.js.map} +0 -0
- /package/dist/chunks/{archive-P47MRHE2.js.map → archive-55KJKGJB.js.map} +0 -0
- /package/dist/chunks/{browser-QN24UC7K.js.map → browser-C6AOJ3CH.js.map} +0 -0
- /package/dist/chunks/{chat-HRORSJPH.js.map → chat-45H5F3KI.js.map} +0 -0
- /package/dist/chunks/{chunk-TU46IHIV.js.map → chunk-23NRJ2RC.js.map} +0 -0
- /package/dist/chunks/{chunk-CEIYJWZ2.js.map → chunk-35VTE7V5.js.map} +0 -0
- /package/dist/chunks/{chunk-72CFHDKQ.js.map → chunk-3LNTQLQ4.js.map} +0 -0
- /package/dist/chunks/{chunk-WBTXYSAB.js.map → chunk-4NO5XFK2.js.map} +0 -0
- /package/dist/chunks/{chunk-4SP6H34B.js.map → chunk-6GBZAUYW.js.map} +0 -0
- /package/dist/chunks/{chunk-2UPDDG7V.js.map → chunk-6PNBIMWH.js.map} +0 -0
- /package/dist/chunks/{chunk-25XPE4N6.js.map → chunk-6S4R2USK.js.map} +0 -0
- /package/dist/chunks/{chunk-VCKNYZYH.js.map → chunk-A3AF5WXZ.js.map} +0 -0
- /package/dist/chunks/{chunk-G34P5PIK.js.map → chunk-A4CKLHKM.js.map} +0 -0
- /package/dist/chunks/{chunk-Y5QV6NZK.js.map → chunk-AZPS37AQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WJ7XYOSE.js.map → chunk-BRKD6FMO.js.map} +0 -0
- /package/dist/chunks/{chunk-I55BEPVH.js.map → chunk-CW2N2QS2.js.map} +0 -0
- /package/dist/chunks/{chunk-2VQ475KY.js.map → chunk-DLL2FPUY.js.map} +0 -0
- /package/dist/chunks/{chunk-CIIMESY2.js.map → chunk-ESZ7X37S.js.map} +0 -0
- /package/dist/chunks/{chunk-CAPC66Q6.js.map → chunk-EWSIGY2A.js.map} +0 -0
- /package/dist/chunks/{chunk-CM2I2L4G.js.map → chunk-FMEGRBJP.js.map} +0 -0
- /package/dist/chunks/{chunk-JKXCLMMZ.js.map → chunk-FSKJ3EZC.js.map} +0 -0
- /package/dist/chunks/{chunk-2QXVOSJM.js.map → chunk-HOIDWHGC.js.map} +0 -0
- /package/dist/chunks/{chunk-U2AVT6OB.js.map → chunk-HOY7BUGW.js.map} +0 -0
- /package/dist/chunks/{chunk-WKGECHMV.js.map → chunk-HQZ3GBQI.js.map} +0 -0
- /package/dist/chunks/{chunk-Z7DJAGBK.js.map → chunk-HXAWIWOZ.js.map} +0 -0
- /package/dist/chunks/{chunk-CT23IU3D.js.map → chunk-IQQ6TY4W.js.map} +0 -0
- /package/dist/chunks/{chunk-QNFMVN4D.js.map → chunk-JD2HLKFO.js.map} +0 -0
- /package/dist/chunks/{chunk-LVDRURI4.js.map → chunk-K6LLMOB2.js.map} +0 -0
- /package/dist/chunks/{chunk-2HDIUUMX.js.map → chunk-M46GKTOI.js.map} +0 -0
- /package/dist/chunks/{chunk-RKSYVIQX.js.map → chunk-N3C5X6BW.js.map} +0 -0
- /package/dist/chunks/{chunk-37DRD4QM.js.map → chunk-QT6KYBCC.js.map} +0 -0
- /package/dist/chunks/{chunk-QZYTSINZ.js.map → chunk-QUELENQP.js.map} +0 -0
- /package/dist/chunks/{chunk-7B5YTYHY.js.map → chunk-R2LYGFCI.js.map} +0 -0
- /package/dist/chunks/{chunk-BNMFWLWH.js.map → chunk-RGVJHSMU.js.map} +0 -0
- /package/dist/chunks/{chunk-YYX7O3T2.js.map → chunk-RVSVVL6O.js.map} +0 -0
- /package/dist/chunks/{chunk-RM4XZZL3.js.map → chunk-SIWZZF4M.js.map} +0 -0
- /package/dist/chunks/{chunk-J67SASGK.js.map → chunk-SNC5D5UG.js.map} +0 -0
- /package/dist/chunks/{chunk-CLADMV2E.js.map → chunk-SRYIMLOK.js.map} +0 -0
- /package/dist/chunks/{chunk-3OP32UHN.js.map → chunk-TW5BCDA5.js.map} +0 -0
- /package/dist/chunks/{chunk-5XJC5G7N.js.map → chunk-URJ7TITR.js.map} +0 -0
- /package/dist/chunks/{chunk-ZMZR4UTZ.js.map → chunk-WHOSI6UQ.js.map} +0 -0
- /package/dist/chunks/{chunk-ANUGFVZI.js.map → chunk-XCMCPWMB.js.map} +0 -0
- /package/dist/chunks/{chunk-VALR7WUL.js.map → chunk-XGVCAMNT.js.map} +0 -0
- /package/dist/chunks/{chunk-34L6FTQV.js.map → chunk-XXUL6HHM.js.map} +0 -0
- /package/dist/chunks/{chunk-PKBHQFT6.js.map → chunk-Y2DZ27P6.js.map} +0 -0
- /package/dist/chunks/{chunk-WN7YMX22.js.map → chunk-Y3I7AAD6.js.map} +0 -0
- /package/dist/chunks/{chunk-UM4ECTUS.js.map → chunk-Y74CPWYC.js.map} +0 -0
- /package/dist/chunks/{chunk-DQKQKNDY.js.map → chunk-YP7AINGL.js.map} +0 -0
- /package/dist/chunks/{chunk-ZGBKTT7X.js.map → chunk-YPHXWFKQ.js.map} +0 -0
- /package/dist/chunks/{chunk-OFNGIO53.js.map → chunk-YVIM3MXU.js.map} +0 -0
- /package/dist/chunks/{commands-LU5AOF65.js.map → commands-JZT6JJY5.js.map} +0 -0
- /package/dist/chunks/{crash-report-YDSO3QZP.js.map → crash-report-TWMWHNKY.js.map} +0 -0
- /package/dist/chunks/{doctor-ZK3CTBDR.js.map → doctor-UVZBNUNF.js.map} +0 -0
- /package/dist/chunks/{eval-PBRDQ7GI.js.map → eval-NRRIWDET.js.map} +0 -0
- /package/dist/chunks/{home-QPIQIIAR.js.map → home-RT2I6VTQ.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-TZU6D46R.js.map} +0 -0
- /package/dist/chunks/{list-TMHSX32S.js.map → list-QCWNMQED.js.map} +0 -0
- /package/dist/chunks/{output-schema-63NLKBRY.js.map → live-V7HRF5KR.js.map} +0 -0
- /package/dist/chunks/{providers-N2UXL3XT.js.map → login-QFP3PIXG.js.map} +0 -0
- /package/dist/chunks/{logs-QQTFNNSW.js.map → logs-XTXMS4JF.js.map} +0 -0
- /package/dist/chunks/{operator-tools-ISZGHK3F.js.map → operator-tools-2OYRNPCH.js.map} +0 -0
- /package/dist/chunks/{resume-PKATLA4S.js.map → output-schema-ETVPLUXE.js.map} +0 -0
- /package/dist/chunks/{resume-command-DNNLB5SK.js.map → providers-KP5JHTTK.js.map} +0 -0
- /package/dist/chunks/{session-step-I5DFTYDV.js.map → resume-7V44GSEU.js.map} +0 -0
- /package/dist/chunks/{store-2JQLHCG4.js.map → resume-command-OKJ2MJPB.js.map} +0 -0
- /package/dist/chunks/{schedule-6N33GN2Z.js.map → schedule-TVR3FE32.js.map} +0 -0
- /package/dist/chunks/{store-QLG76DQG.js.map → session-step-N4GHA2YE.js.map} +0 -0
- /package/dist/chunks/{store-YRVVPTUX.js.map → start-check-BUCN5MCU.js.map} +0 -0
- /package/dist/chunks/{state-J4NZZP7B.js.map → state-PVAVIXHK.js.map} +0 -0
- /package/dist/chunks/{worktree-5ETUFJAC.js.map → worktree-MVW62U5G.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-kind.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/install-kind.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,MAAM,MAAM,WAAW;AACtB,+EAA+E;AAC7E;IACA,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CACzB,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,yEAAyE;IACzE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CACzB;AACH,wCAAwC;GACtC;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACzD,+EAA+E;GAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACvD,sEAAsE;GACpE;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtD,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAA;IAClC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAC7C;AA8BD,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEnE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,WAAW,CAsCxE;AAED,6EAA6E;AAC7E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installed-version.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/installed-version.ts"],"names":[],"mappings":"AAGA,2GAA2G;AAC3G,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAQhE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether this process may look for a newer Namzu, whether it may install one
|
|
3
|
+
* without being asked, and which channel it follows.
|
|
4
|
+
*
|
|
5
|
+
* Order, strongest first: the environment, then your own config files, then the
|
|
6
|
+
* default. The default installs for a person at a terminal and not in CI.
|
|
7
|
+
*/
|
|
8
|
+
import type { UpdateChannel, UpdatesConfig } from '../../config/schema.js';
|
|
9
|
+
export interface UpdatePolicy {
|
|
10
|
+
/** Look for a newer version in the background (and show the footer line). */
|
|
11
|
+
readonly check: boolean;
|
|
12
|
+
/** Install it without being asked. Implies `check`. */
|
|
13
|
+
readonly install: boolean;
|
|
14
|
+
readonly channel: UpdateChannel;
|
|
15
|
+
/** What decided `install`, for `namzu upgrade --check` and the docs. */
|
|
16
|
+
readonly decidedBy: 'environment' | 'config' | 'ci' | 'default';
|
|
17
|
+
}
|
|
18
|
+
export interface UpdatePolicyInput {
|
|
19
|
+
readonly config?: UpdatesConfig | undefined;
|
|
20
|
+
readonly env: NodeJS.ProcessEnv;
|
|
21
|
+
/** A person at a terminal. The updater loop only runs in the terminal UI, which is. */
|
|
22
|
+
readonly interactive: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** True when the process looks like it runs inside a CI job. */
|
|
25
|
+
export declare function runsInCi(env: NodeJS.ProcessEnv): boolean;
|
|
26
|
+
export declare function parseUpdateChannel(value: string | undefined): UpdateChannel | undefined;
|
|
27
|
+
export declare function resolveUpdatePolicy(input: UpdatePolicyInput): UpdatePolicy;
|
|
28
|
+
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/policy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE1E,MAAM,WAAW,YAAY;IAC5B,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAA;CAC/D;AAED,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAA;IAC/B,uFAAuF;IACvF,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC7B;AAaD,gEAAgE;AAChE,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAaxD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAGvF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY,CAe1E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a new copy must be able to load before it replaces the old one: the parts a
|
|
3
|
+
* terminal session needs when it starts (the terminal interface, the runtime under
|
|
4
|
+
* it, and the terminal-session module where one is installed). Nothing is started
|
|
5
|
+
* and nothing is read or written: a missing or unloadable file shows up here, and
|
|
6
|
+
* the update is rolled back, instead of surprising the next person who opens
|
|
7
|
+
* Namzu. `namzu --start-check` runs it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const START_CHECK_FLAG = "--start-check";
|
|
10
|
+
export interface StartCheckDeps {
|
|
11
|
+
/** Load the terminal interface and the runtime it runs on. */
|
|
12
|
+
readonly loadSession: () => Promise<void>;
|
|
13
|
+
/** Whether the optional terminal-session module is installed next to this copy. */
|
|
14
|
+
readonly ptyInstalled: () => boolean;
|
|
15
|
+
/** Load the terminal-session module; rejects when its native part cannot be loaded. */
|
|
16
|
+
readonly loadPty: () => Promise<void>;
|
|
17
|
+
readonly write: (text: string) => void;
|
|
18
|
+
}
|
|
19
|
+
/** Exit code: 0 when everything a session needs loads (and `ok` is printed), 1 otherwise. */
|
|
20
|
+
export declare function runStartCheck(deps?: StartCheckDeps): Promise<number>;
|
|
21
|
+
//# sourceMappingURL=start-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-check.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/start-check.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAE/C,MAAM,WAAW,cAAc;IAC9B,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,mFAAmF;IACnF,QAAQ,CAAC,YAAY,EAAE,MAAM,OAAO,CAAA;IACpC,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAwBD,6FAA6F;AAC7F,wBAAsB,aAAa,CAAC,IAAI,GAAE,cAA+B,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB1F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wires the updater to this process: where this copy lives, the Namzu home,
|
|
3
|
+
* the registry and the real installers.
|
|
4
|
+
*/
|
|
5
|
+
import type { UpdatesConfig } from '../../config/schema.js';
|
|
6
|
+
import { type InstallKind } from './install-kind.js';
|
|
7
|
+
import { type UpdatePolicy } from './policy.js';
|
|
8
|
+
import { type UpdaterEvent } from './updater.js';
|
|
9
|
+
export interface StartAutoUpdateOptions {
|
|
10
|
+
readonly currentVersion: string;
|
|
11
|
+
readonly config?: UpdatesConfig | undefined;
|
|
12
|
+
readonly onEvent: (event: UpdaterEvent) => void;
|
|
13
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
14
|
+
}
|
|
15
|
+
/** Where this copy lives and which Namzu home its update files are in; null without a home. */
|
|
16
|
+
export declare function currentInstall(env?: NodeJS.ProcessEnv): {
|
|
17
|
+
readonly install: InstallKind;
|
|
18
|
+
readonly home: string;
|
|
19
|
+
} | null;
|
|
20
|
+
/** Start the loop; returns its stop function. The terminal UI is the one caller. */
|
|
21
|
+
export declare function startAutoUpdate(options: StartAutoUpdateOptions): {
|
|
22
|
+
stop(): void;
|
|
23
|
+
policy: UpdatePolicy;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=start.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/start.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAK3D,OAAO,EAAE,KAAK,WAAW,EAA6B,MAAM,mBAAmB,CAAA;AAE/E,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,aAAa,CAAA;AACpE,OAAO,EAAgB,KAAK,YAAY,EAAiB,MAAM,cAAc,CAAA;AAE7E,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAC3C,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CAChC;AAID,+FAA+F;AAC/F,wBAAgB,cAAc,CAC7B,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAejE;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG;IACjE,IAAI,IAAI,IAAI,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;CACpB,CAkCA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the updater keeps on disk, under `<Namzu home>/updates/`:
|
|
3
|
+
*
|
|
4
|
+
* - `locks/<install>/` one process updating each install at a time
|
|
5
|
+
* - `check.json` when any Namzu process last looked, so two terminals do not both ask
|
|
6
|
+
* - `last-result-<install>.json` the outcome of the last automatic attempt on one install
|
|
7
|
+
* - `attempt-<install>.json` the version the last failed attempt on one install was for, so it is not tried again
|
|
8
|
+
* - `previous/<install>/<version>/` the copy of the package an update replaced
|
|
9
|
+
* - `in-progress-<install>.json` an update that has touched the package and is not yet verified
|
|
10
|
+
*
|
|
11
|
+
* Every write goes through a temporary file and a rename. A damaged file reads
|
|
12
|
+
* as absent: the worst outcome is one extra look at the registry.
|
|
13
|
+
*/
|
|
14
|
+
export declare function updatesDir(home: string): string;
|
|
15
|
+
export interface CheckRecord {
|
|
16
|
+
readonly at: number;
|
|
17
|
+
readonly channel: string;
|
|
18
|
+
readonly version: string;
|
|
19
|
+
readonly integrity?: string;
|
|
20
|
+
readonly tarball?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function readCheck(home: string): CheckRecord | undefined;
|
|
23
|
+
export declare function writeCheck(home: string, record: CheckRecord, pid?: number): void;
|
|
24
|
+
export type UpdateOutcome = 'installed' | 'failed' | 'skipped';
|
|
25
|
+
export interface UpdateResult {
|
|
26
|
+
readonly at: string;
|
|
27
|
+
readonly outcome: UpdateOutcome;
|
|
28
|
+
/** A short code: `no_permission`, `in_use`, `verify_failed`, `network`, `install_failed`, `restored`, … */
|
|
29
|
+
readonly status: string;
|
|
30
|
+
readonly method: string;
|
|
31
|
+
readonly from: string;
|
|
32
|
+
readonly to: string;
|
|
33
|
+
/** Plain-words reason, kept for `namzu upgrade --check`. */
|
|
34
|
+
readonly detail?: string;
|
|
35
|
+
/** The installer's output for that attempt, for the person who wants the details. */
|
|
36
|
+
readonly log?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function readLastResult(home: string, scope: string): UpdateResult | undefined;
|
|
39
|
+
export declare function writeLastResult(home: string, scope: string, result: UpdateResult, pid?: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* The version an automatic install gave up on, so the next start does not swap
|
|
42
|
+
* the package folder for it all over again under windows that are still open.
|
|
43
|
+
*/
|
|
44
|
+
export interface AttemptRecord {
|
|
45
|
+
readonly version: string;
|
|
46
|
+
/** Why it failed (a `FailureStatus`). */
|
|
47
|
+
readonly code: string;
|
|
48
|
+
readonly at: number;
|
|
49
|
+
/** The person has been told about this version. */
|
|
50
|
+
readonly shown: boolean;
|
|
51
|
+
}
|
|
52
|
+
export declare function readAttempt(home: string, scope: string): AttemptRecord | undefined;
|
|
53
|
+
export declare function writeAttempt(home: string, scope: string, record: AttemptRecord, pid?: number): void;
|
|
54
|
+
/**
|
|
55
|
+
* The folder a lock, an in-progress marker and the kept copies belong to. Two
|
|
56
|
+
* installs (two prefixes, a global npm and a global pnpm folder) never wait on
|
|
57
|
+
* one another, and one install is only ever changed by one process.
|
|
58
|
+
*/
|
|
59
|
+
export declare function installScope(location: string, platform?: NodeJS.Platform): string;
|
|
60
|
+
export interface UpdateLock {
|
|
61
|
+
release(): void;
|
|
62
|
+
}
|
|
63
|
+
export interface AcquireLockOptions {
|
|
64
|
+
readonly home: string;
|
|
65
|
+
/** The install the lock is for ({@link installScope}). */
|
|
66
|
+
readonly scope?: string;
|
|
67
|
+
readonly pid?: number;
|
|
68
|
+
readonly now?: () => number;
|
|
69
|
+
/** Whether a process id still names a running process. */
|
|
70
|
+
readonly isAlive?: (pid: number) => boolean;
|
|
71
|
+
/** A lock older than this is taken over even when its pid is alive. Default fifteen minutes, longer than the slowest single update (install, start check and restore). */
|
|
72
|
+
readonly staleMs?: number;
|
|
73
|
+
}
|
|
74
|
+
export declare const LOCK_STALE_MS: number;
|
|
75
|
+
/**
|
|
76
|
+
* The update lock for one install, or `null` when another live process holds it.
|
|
77
|
+
* Throws when the state folder cannot be made.
|
|
78
|
+
*
|
|
79
|
+
* The lock is a numbered file: whoever creates the next number holds the lock,
|
|
80
|
+
* and the highest number is always the current holder. Creating a number that
|
|
81
|
+
* exists fails, so when two processes both find the same stale holder and both
|
|
82
|
+
* try to take over, exactly one of them creates the next number and the other
|
|
83
|
+
* sees a live lock. Numbers only grow (a released lock stays as the highest one,
|
|
84
|
+
* marked released), so a late process can never create a number that was
|
|
85
|
+
* already used.
|
|
86
|
+
*/
|
|
87
|
+
export declare function acquireUpdateLock(options: AcquireLockOptions): UpdateLock | null;
|
|
88
|
+
/** Written before an update touches the package folder, removed once it is verified or put back. */
|
|
89
|
+
export interface InProgressMarker {
|
|
90
|
+
readonly pid: number;
|
|
91
|
+
/** The version being installed. */
|
|
92
|
+
readonly to: string;
|
|
93
|
+
/** The version being replaced. */
|
|
94
|
+
readonly from: string;
|
|
95
|
+
/** The kept copy of the replaced package (npm installs); absent for pnpm. */
|
|
96
|
+
readonly backup?: string;
|
|
97
|
+
/** The package manager's process, once started; it can outlive `pid`. */
|
|
98
|
+
readonly installerPid?: number;
|
|
99
|
+
readonly at: number;
|
|
100
|
+
}
|
|
101
|
+
export declare function writeInProgress(home: string, marker: InProgressMarker, scope?: string): void;
|
|
102
|
+
export declare function readInProgress(home: string, scope?: string): InProgressMarker | undefined;
|
|
103
|
+
export declare function clearInProgress(home: string, scope?: string): void;
|
|
104
|
+
export declare function processIsRunning(pid: number): boolean;
|
|
105
|
+
/** Where the copy of a replaced package is kept. */
|
|
106
|
+
export declare function previousDir(home: string, version: string, scope?: string): string;
|
|
107
|
+
/** Keep the newest `keep` previous copies and delete the rest. */
|
|
108
|
+
export declare function pruneOlderPrevious(home: string, keep?: number, scope?: string): void;
|
|
109
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/state.ts"],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ChF;AAID,oGAAoG;AACpG,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,yEAAyE;IACzE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACnB;AAMD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAE5F;AAID,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAczF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAElE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAErD;AAID,oDAAoD;AACpD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAIjF;AAED,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAc/E"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `namzu doctor` says about updates: whether a newer version is known, and
|
|
3
|
+
* when Namzu cannot install it, the reason and the full command. Reads only the
|
|
4
|
+
* files the updater keeps; it never asks the registry.
|
|
5
|
+
*/
|
|
6
|
+
import type { InstallKind } from './install-kind.js';
|
|
7
|
+
export type UpdateStatus = {
|
|
8
|
+
readonly state: 'not-applicable';
|
|
9
|
+
} | {
|
|
10
|
+
readonly state: 'current';
|
|
11
|
+
readonly version: string;
|
|
12
|
+
} | {
|
|
13
|
+
readonly state: 'available';
|
|
14
|
+
readonly latest: string;
|
|
15
|
+
/** What the person can run; null when nothing can be. */
|
|
16
|
+
readonly command: string | null;
|
|
17
|
+
} | {
|
|
18
|
+
readonly state: 'cannot-install';
|
|
19
|
+
readonly latest: string;
|
|
20
|
+
readonly folder: string;
|
|
21
|
+
readonly reason: string;
|
|
22
|
+
readonly command: string | null;
|
|
23
|
+
readonly log?: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly state: 'failed-version';
|
|
26
|
+
readonly latest: string;
|
|
27
|
+
readonly reason: string;
|
|
28
|
+
readonly log?: string;
|
|
29
|
+
};
|
|
30
|
+
export interface UpdateStatusInput {
|
|
31
|
+
readonly currentVersion: string;
|
|
32
|
+
readonly install: InstallKind;
|
|
33
|
+
readonly home: string;
|
|
34
|
+
readonly platform: NodeJS.Platform;
|
|
35
|
+
}
|
|
36
|
+
export declare function readUpdateStatus(input: UpdateStatusInput): UpdateStatus;
|
|
37
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/status.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,MAAM,YAAY,GACrB;IAAE,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;CAAE,GACpC;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvD;IACA,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,GACD;IACA,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACpB,GACD;IACA,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAEJ,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAA;CAClC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY,CA0CvE"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The background update loop of the terminal UI.
|
|
3
|
+
*
|
|
4
|
+
* Ten seconds after the process started it looks for a newer version, then
|
|
5
|
+
* every thirty minutes while the terminal stays open. Two Namzu processes never
|
|
6
|
+
* look more often than every five minutes between them (the last look and its
|
|
7
|
+
* answer are kept on disk). It never blocks anything and reports at most one
|
|
8
|
+
* event per outcome: an update was installed, or one is available and here is
|
|
9
|
+
* the exact command.
|
|
10
|
+
*/
|
|
11
|
+
import { type ApplyDeps, type FailureStatus, type Release } from './apply.js';
|
|
12
|
+
import type { InstallKind } from './install-kind.js';
|
|
13
|
+
import type { UpdatePolicy } from './policy.js';
|
|
14
|
+
export declare const FIRST_CHECK_AFTER_MS = 10000;
|
|
15
|
+
export declare const CHECK_EVERY_MS: number;
|
|
16
|
+
export declare const SHARED_THROTTLE_MS: number;
|
|
17
|
+
/**
|
|
18
|
+
* Failures that say nothing about the version itself: a download that broke off, a
|
|
19
|
+
* file another program held, a full disk. They are tried again after this long.
|
|
20
|
+
* Every other failure (no permission, a copy that did not start, a checksum that did
|
|
21
|
+
* not match) is final for that version until a newer one is published.
|
|
22
|
+
*/
|
|
23
|
+
export declare const RETRY_AFTER_MS: number;
|
|
24
|
+
/** After this many failed installs in a row the loop stops trying until the next start. */
|
|
25
|
+
export declare const MAX_CONSECUTIVE_FAILURES = 3;
|
|
26
|
+
export type UpdaterEvent =
|
|
27
|
+
/** Installed; the next start uses it. */
|
|
28
|
+
{
|
|
29
|
+
readonly type: 'installed';
|
|
30
|
+
readonly from: string;
|
|
31
|
+
readonly to: string;
|
|
32
|
+
}
|
|
33
|
+
/** A newer version exists and Namzu will not (or could not) install it. */
|
|
34
|
+
| {
|
|
35
|
+
readonly type: 'available';
|
|
36
|
+
readonly latest: string;
|
|
37
|
+
/** What to run; null when there is nothing the person can run (unknown layout). */
|
|
38
|
+
readonly command: string | null;
|
|
39
|
+
/** Set when an automatic install was attempted and failed. */
|
|
40
|
+
readonly failure?: FailureStatus;
|
|
41
|
+
/**
|
|
42
|
+
* Namzu cannot write to the folder it is installed in, so the command needs
|
|
43
|
+
* administrator rights; `namzu doctor` shows it in full.
|
|
44
|
+
*/
|
|
45
|
+
readonly blocked?: true;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A version that already failed on this install. Namzu stays on the current
|
|
49
|
+
* version and offers nothing for it; said once, until a newer one is published.
|
|
50
|
+
*/
|
|
51
|
+
| {
|
|
52
|
+
readonly type: 'failed';
|
|
53
|
+
readonly latest: string;
|
|
54
|
+
readonly current: string;
|
|
55
|
+
readonly code: FailureStatus;
|
|
56
|
+
};
|
|
57
|
+
export interface UpdaterDeps {
|
|
58
|
+
readonly currentVersion: string;
|
|
59
|
+
readonly install: InstallKind;
|
|
60
|
+
readonly policy: UpdatePolicy;
|
|
61
|
+
readonly home: string;
|
|
62
|
+
readonly platform: NodeJS.Platform;
|
|
63
|
+
readonly fetchRelease: (channel: 'latest' | 'stable') => Promise<Release>;
|
|
64
|
+
readonly applyDeps: Omit<ApplyDeps, 'install' | 'home' | 'currentVersion' | 'platform'>;
|
|
65
|
+
readonly onEvent: (event: UpdaterEvent) => void;
|
|
66
|
+
readonly now?: () => number;
|
|
67
|
+
/** Milliseconds this process has been running. */
|
|
68
|
+
readonly uptimeMs?: () => number;
|
|
69
|
+
}
|
|
70
|
+
export interface Updater {
|
|
71
|
+
start(): void;
|
|
72
|
+
stop(): void;
|
|
73
|
+
/** Check for and repair an update a previous process left unfinished (used by `start` and by tests). */
|
|
74
|
+
repair(): Promise<void>;
|
|
75
|
+
/** Run one cycle now (used by `start` and by tests). */
|
|
76
|
+
runCycle(): Promise<void>;
|
|
77
|
+
}
|
|
78
|
+
export declare function createUpdater(deps: UpdaterDeps): Updater;
|
|
79
|
+
//# sourceMappingURL=updater.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../../../src/integrations/auto-update/updater.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACN,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,OAAO,EAMZ,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAW/C,eAAO,MAAM,oBAAoB,QAAS,CAAA;AAC1C,eAAO,MAAM,cAAc,QAAc,CAAA;AACzC,eAAO,MAAM,kBAAkB,QAAa,CAAA;AAC5C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GAAG,MAAM,GAAG,gBAAgB,GAAG,UAAU,CAAC,CAAA;IACvF,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,OAAO;IACvB,KAAK,IAAI,IAAI,CAAA;IACb,IAAI,IAAI,IAAI,CAAA;IACZ,wGAAwG;IACxG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACvB,wDAAwD;IACxD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACzB;AAOD,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAkQxD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The person's answer for each tool server a project's `.mcp.json` declares.
|
|
3
|
+
*
|
|
4
|
+
* A trusted folder is not a reviewed server list: `.mcp.json` is a file other
|
|
5
|
+
* tools write into repositories, and a pull can change it. So a server from it
|
|
6
|
+
* starts only after the person approved that server in that folder, and the
|
|
7
|
+
* approval is for what the entry said at the time. The entry's command or url,
|
|
8
|
+
* its arguments, environment and headers are fingerprinted together; an entry
|
|
9
|
+
* that changes is pending again.
|
|
10
|
+
*
|
|
11
|
+
* Kept in `<namzu home>/mcp-approvals.json`, beside the folder-trust list:
|
|
12
|
+
* `{ "version": 1, "folders": { "<folder>": { "<server>": "<fingerprint>" } } }`.
|
|
13
|
+
*/
|
|
14
|
+
import type { McpServersConfig } from './servers.js';
|
|
15
|
+
export declare function mcpApprovalsPath(namzuHome: string): string;
|
|
16
|
+
/** What an approval is bound to: the whole entry, so any change asks again. */
|
|
17
|
+
export declare function fingerprintMcpServer(entry: unknown): string;
|
|
18
|
+
export interface ProjectServerSplit {
|
|
19
|
+
readonly approved: McpServersConfig;
|
|
20
|
+
/** Names awaiting an answer: new in the file, or changed since the last one. */
|
|
21
|
+
readonly pending: readonly string[];
|
|
22
|
+
}
|
|
23
|
+
/** Sort `servers` into those the person approved for `cwd` and those still waiting. */
|
|
24
|
+
export declare function splitProjectMcpServers(namzuHome: string, cwd: string, servers: McpServersConfig | undefined): ProjectServerSplit;
|
|
25
|
+
/** The one line that says project servers are waiting, for a place with no prompt to put them in. */
|
|
26
|
+
export declare function pendingServersMessage(pending: readonly string[]): string;
|
|
27
|
+
/**
|
|
28
|
+
* Record the person's approval of `names` (all of `servers` when omitted), as
|
|
29
|
+
* the entries read now. Returns the names that were approved.
|
|
30
|
+
*/
|
|
31
|
+
export declare function approveProjectMcpServers(namzuHome: string, cwd: string, servers: McpServersConfig, names?: readonly string[]): readonly string[];
|
|
32
|
+
/**
|
|
33
|
+
* Record the person's approval of the entries they were shown, each as the
|
|
34
|
+
* fingerprint taken when the screen was built. An entry that changed after
|
|
35
|
+
* that is not covered: it differs from what was approved and asks again.
|
|
36
|
+
*/
|
|
37
|
+
export declare function approveShownMcpServers(namzuHome: string, cwd: string, shown: readonly {
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly fingerprint: string;
|
|
40
|
+
}[]): readonly string[];
|
|
41
|
+
//# sourceMappingURL=project-approval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-approval.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/project-approval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AASpD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D;AAuBD,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAI3D;AAwBD,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAA;IACnC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACnC;AAED,uFAAuF;AACvF,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,gBAAgB,GAAG,SAAS,GACnC,kBAAkB,CASpB;AAED,qGAAqG;AACrG,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAGxE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACvC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,gBAAgB,EACzB,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,GACvB,SAAS,MAAM,EAAE,CAOnB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAAE,GACvE,SAAS,MAAM,EAAE,CAInB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool servers written in a JSON file other than the Namzu config.
|
|
3
|
+
*
|
|
4
|
+
* Two places read the same shape, `{ "mcpServers": { "<name>": { ... } } }`:
|
|
5
|
+
*
|
|
6
|
+
* - `.mcp.json` at the root of a project, so a team shares its servers by
|
|
7
|
+
* committing one file. It is read exactly when `namzu.config.json` is, which
|
|
8
|
+
* is after the person has trusted the folder: until then no server in it is
|
|
9
|
+
* read, let alone started, and trust is the person's approval.
|
|
10
|
+
* - a file named on the command line (`namzu exec --mcp-config <file>`), which
|
|
11
|
+
* the person chose for this one run.
|
|
12
|
+
*
|
|
13
|
+
* Entries are the ones `mcpServers` takes. A `type` key that other tools write
|
|
14
|
+
* (`stdio`, `http`) is accepted and ignored, because the entry's `command` or
|
|
15
|
+
* `url` already says which it is. Nothing else is rewritten: a `${VAR}` form
|
|
16
|
+
* this reader does not expand stays literal, as it does in the config.
|
|
17
|
+
*/
|
|
18
|
+
import type { McpServersConfig } from './servers.js';
|
|
19
|
+
/** The file at a project's root. */
|
|
20
|
+
export declare const PROJECT_MCP_FILE = ".mcp.json";
|
|
21
|
+
/** Why a server file could not be read, in words for the person who named it. */
|
|
22
|
+
export declare class McpServerFileError extends Error {
|
|
23
|
+
constructor(message: string);
|
|
24
|
+
}
|
|
25
|
+
/** Read `raw` (the contents of `label`) as a table of tool servers. */
|
|
26
|
+
export declare function parseMcpServerFile(raw: string, label: string): McpServersConfig;
|
|
27
|
+
/** Read a server file from disk. `undefined` when it does not exist. */
|
|
28
|
+
export declare function readMcpServerFile(path: string, label: string): McpServersConfig | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The servers a launch adds: each `--mcp-config` file in order, a later file
|
|
31
|
+
* replacing an earlier server of the same name, all of it replacing a server
|
|
32
|
+
* of the same name from the config. A file that is missing is an error here,
|
|
33
|
+
* unlike the project file, because the person named it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function mergeLaunchMcpServers(configured: McpServersConfig | undefined, files: readonly string[], resolvePath: (path: string) => string): McpServersConfig | undefined;
|
|
36
|
+
//# sourceMappingURL=shared-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-file.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/shared-file.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,oCAAoC;AACpC,eAAO,MAAM,gBAAgB,cAAc,CAAA;AAE3C,iFAAiF;AACjF,qBAAa,kBAAmB,SAAQ,KAAK;gBAChC,OAAO,EAAE,MAAM;CAI3B;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAwB/E;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAS3F;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,UAAU,EAAE,gBAAgB,GAAG,SAAS,EACxC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GACnC,gBAAgB,GAAG,SAAS,CAY9B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface NpmUpgradeRequest {
|
|
2
|
+
readonly executable: string;
|
|
3
|
+
readonly args: readonly string[];
|
|
4
|
+
readonly prefix: string;
|
|
5
|
+
readonly onOutput?: (text: string) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Where a background run writes what the package manager prints (both streams,
|
|
8
|
+
* replaced each run). A file, not a pipe: the package manager outlives this
|
|
9
|
+
* process, and a pipe whose reader is gone would end its install half way.
|
|
10
|
+
* `onOutput` then gets the last part of the file once the run ends.
|
|
11
|
+
*/
|
|
12
|
+
readonly logFile?: string;
|
|
13
|
+
/** Run without a terminal: nothing is read from the person's stdin and nothing is written to it. */
|
|
14
|
+
readonly background?: boolean;
|
|
15
|
+
/** Kill the package manager after this many milliseconds. */
|
|
16
|
+
readonly timeoutMs?: number;
|
|
17
|
+
/** Called with the package manager's process id once it has started. */
|
|
18
|
+
readonly onSpawn?: (pid: number) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Remove npm's `namzu.ps1` shim from a global prefix so a bare `namzu` in
|
|
22
|
+
* PowerShell resolves to `namzu.cmd`. PowerShell prefers the `.ps1`, and under
|
|
23
|
+
* the default execution policy it refuses to run ("running scripts is
|
|
24
|
+
* disabled"); npm writes it again on every install. Only that one file, and
|
|
25
|
+
* only when it sits beside `namzu.cmd` and names `@namzu/cli`. Returns whether
|
|
26
|
+
* a file was removed; never throws.
|
|
27
|
+
*/
|
|
28
|
+
export declare function removeOwnPowerShellShim(prefix: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Derive the prefix owning an npm-global @namzu/cli package.
|
|
31
|
+
*
|
|
32
|
+
* The executing package root is authority. Ambient `npm prefix -g` may point
|
|
33
|
+
* at a different Node installation, especially under version managers, so it
|
|
34
|
+
* is deliberately not consulted.
|
|
35
|
+
*/
|
|
36
|
+
export declare function npmGlobalPrefixFor(packageRoot: string, platform: NodeJS.Platform): string | null;
|
|
37
|
+
/** End a detached package manager and everything it started: its whole process group. */
|
|
38
|
+
export declare function killTree(pid: number): void;
|
|
39
|
+
export declare function runNpmUpgrade(request: NpmUpgradeRequest): Promise<number>;
|
|
40
|
+
//# sourceMappingURL=npm-global.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-global.d.ts","sourceRoot":"","sources":["../../src/integrations/npm-global.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,oGAAoG;IACpG,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAU/D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,CAahG;AAqBD,yFAAyF;AACzF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAa1C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiEzE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a hook script is told about the session around it.
|
|
3
|
+
*
|
|
4
|
+
* A hook's stdin carries the transcript file and the permission mode so a
|
|
5
|
+
* script can read the conversation or behave differently under a stricter
|
|
6
|
+
* mode. The mode goes out in the words hook scripts commonly test for, not the
|
|
7
|
+
* kernel's review-mode names, so one script runs under more than one host.
|
|
8
|
+
*/
|
|
9
|
+
import type { ReviewMode } from '@namzu/sdk';
|
|
10
|
+
/** The permission-mode word a hook script reads for a kernel review mode. */
|
|
11
|
+
export declare function hookPermissionMode(mode: ReviewMode): string;
|
|
12
|
+
/**
|
|
13
|
+
* The word a hook is told before any turn has attached the live mode control:
|
|
14
|
+
* the mode the session was configured with, else the one an interactive
|
|
15
|
+
* session starts in (it asks), never a mode that stops asking.
|
|
16
|
+
*/
|
|
17
|
+
export declare function hookSessionMode(live: ReviewMode | undefined, configured: ReviewMode | undefined): string;
|
|
18
|
+
//# sourceMappingURL=hook-host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-host.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/hook-host.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAiB3D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,UAAU,GAAG,SAAS,EAC5B,UAAU,EAAE,UAAU,GAAG,SAAS,GAChC,MAAM,CAER"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginLifecycleManager, SkillRegistry } from '@namzu/sdk';
|
|
1
|
+
import { PluginLifecycleManager, type ShellHookOptions, SkillRegistry } from '@namzu/sdk';
|
|
2
2
|
import type { HooksConfig, PluginConfig, PluginScope } from '../../config/schema.js';
|
|
3
3
|
export interface CliPluginRuntime {
|
|
4
4
|
readonly manager: PluginLifecycleManager;
|
|
@@ -45,5 +45,7 @@ export declare function createCliPluginRuntime(config: PluginConfig | undefined,
|
|
|
45
45
|
* so a session with hooks and no plugins still builds one — with nothing
|
|
46
46
|
* installed, and `pluginCount` honestly 0.
|
|
47
47
|
*/
|
|
48
|
-
hooks?: HooksConfig
|
|
48
|
+
hooks?: HooksConfig,
|
|
49
|
+
/** What a hook's stdin says about the session; each is read at every hook run. */
|
|
50
|
+
hookHost?: Pick<ShellHookOptions, 'transcriptPath' | 'permissionMode'>): Promise<CliPluginRuntime | undefined>;
|
|
49
51
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,sBAAsB,EAEtB,aAAa,EAGb,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAKpF,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAA;IACxC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,IAAI,IAAI,SAAS,aAAa,EAAE,CAAA;IAChC,UAAU,CAAC,IAAI,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ClF,QAAQ,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,GACpE,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAuJvC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `--fallback-model <provider/model[,…]>`: a provider chain for one run.
|
|
3
|
+
*
|
|
4
|
+
* Each entry names a model to fall over to when the one before it cannot
|
|
5
|
+
* answer, tried in order. The chain is built the way `providers.chain` is (the
|
|
6
|
+
* same members, the same fall-over, the same notice when one takes over), but
|
|
7
|
+
* only for this run: nothing is written to the saved preferences.
|
|
8
|
+
*
|
|
9
|
+
* An entry is read as follows:
|
|
10
|
+
* - `provider/model` that model on that provider, when `provider` is one Namzu knows
|
|
11
|
+
* - `provider` that provider's default model
|
|
12
|
+
* - anything else that model on the primary's provider
|
|
13
|
+
*
|
|
14
|
+
* Like `--provider`, naming fallbacks REPLACES the saved ones: an operator who
|
|
15
|
+
* spells out where a run may fall over to has said all of it, and a saved
|
|
16
|
+
* provider they did not name must not answer in its place.
|
|
17
|
+
*/
|
|
18
|
+
import type { Preferences, ProviderChoice } from './preferences.js';
|
|
19
|
+
import { type ProviderId } from './registry.js';
|
|
20
|
+
/** The entries one or more flag values name, in order. */
|
|
21
|
+
export declare function splitFallbackModels(values: readonly string[]): string[];
|
|
22
|
+
/** One entry as a chain member, given the provider that serves first. */
|
|
23
|
+
export declare function parseFallbackEntry(entry: string, primary: ProviderId): ProviderChoice;
|
|
24
|
+
/**
|
|
25
|
+
* The chain with the flag's fallbacks after the primary. A member that repeats
|
|
26
|
+
* one already in the chain is dropped, since a duplicate could never serve.
|
|
27
|
+
*/
|
|
28
|
+
export declare function applyFallbackFlag(prefs: Preferences, values: readonly string[]): Preferences;
|
|
29
|
+
//# sourceMappingURL=fallback-flag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallback-flag.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/fallback-flag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAA;AAMlE,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAOvE;AAED,yEAAyE;AACzE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,cAAc,CASrF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,WAAW,CAY5F"}
|
|
@@ -11,4 +11,7 @@
|
|
|
11
11
|
export type PromptCacheTtl = '5m' | '1h';
|
|
12
12
|
export declare function setPromptCacheTtl(ttl: PromptCacheTtl | undefined): void;
|
|
13
13
|
export declare function promptCacheTtl(): PromptCacheTtl | undefined;
|
|
14
|
+
export declare function providerOffersCacheLifetime(providerId: string | null | undefined): boolean;
|
|
15
|
+
/** The lifetime in use, as a person reads it. An unset value is the provider's own five minutes. */
|
|
16
|
+
export declare function describeCacheLifetime(ttl: PromptCacheTtl | undefined): string;
|
|
14
17
|
//# sourceMappingURL=prompt-cache-ttl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-cache-ttl.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/prompt-cache-ttl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAA;AAIxC,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAEvE;AAED,wBAAgB,cAAc,IAAI,cAAc,GAAG,SAAS,CAE3D"}
|
|
1
|
+
{"version":3,"file":"prompt-cache-ttl.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/prompt-cache-ttl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAA;AAIxC,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAEvE;AAED,wBAAgB,cAAc,IAAI,cAAc,GAAG,SAAS,CAE3D;AAWD,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAI1F;AAED,oGAAoG;AACpG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAE7E"}
|