waterplane 0.1.25 → 0.1.26
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 +29 -0
- package/SECURITY.md +24 -4
- package/node_modules/@waterplane/shared/dist/agentseries/compare.d.ts +8 -0
- package/node_modules/@waterplane/shared/dist/agentseries/compare.js +103 -0
- package/node_modules/@waterplane/shared/dist/agentseries/compare.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/agentseries/markers.d.ts +17 -0
- package/node_modules/@waterplane/shared/dist/agentseries/markers.js +125 -0
- package/node_modules/@waterplane/shared/dist/agentseries/markers.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/agentseries/series.d.ts +16 -0
- package/node_modules/@waterplane/shared/dist/agentseries/series.js +93 -0
- package/node_modules/@waterplane/shared/dist/agentseries/series.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/agentseries/stats.d.ts +8 -0
- package/node_modules/@waterplane/shared/dist/agentseries/stats.js +33 -0
- package/node_modules/@waterplane/shared/dist/agentseries/stats.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/agentseries/types.d.ts +103 -0
- package/node_modules/@waterplane/shared/dist/agentseries/types.js +11 -0
- package/node_modules/@waterplane/shared/dist/agentseries/types.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/agentseries.d.ts +10 -0
- package/node_modules/@waterplane/shared/dist/agentseries.js +11 -0
- package/node_modules/@waterplane/shared/dist/agentseries.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/calday.d.ts +5 -0
- package/node_modules/@waterplane/shared/dist/calday.js +10 -0
- package/node_modules/@waterplane/shared/dist/calday.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/clihealth/healthfixture.d.ts +13 -1
- package/node_modules/@waterplane/shared/dist/clihealth/healthfixture.js +22 -4
- package/node_modules/@waterplane/shared/dist/clihealth/healthfixture.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/clihealth.d.ts +1 -1
- package/node_modules/@waterplane/shared/dist/clihealth.js +1 -1
- package/node_modules/@waterplane/shared/dist/clihealth.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/dictate.d.ts +6 -0
- package/node_modules/@waterplane/shared/dist/dictate.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/dictatemodels.d.ts +23 -0
- package/node_modules/@waterplane/shared/dist/dictatemodels.js +31 -0
- package/node_modules/@waterplane/shared/dist/dictatemodels.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/healthspend.d.ts +23 -0
- package/node_modules/@waterplane/shared/dist/healthspend.js +31 -0
- package/node_modules/@waterplane/shared/dist/healthspend.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/index.d.ts +7 -0
- package/node_modules/@waterplane/shared/dist/index.js +7 -0
- package/node_modules/@waterplane/shared/dist/index.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/installrow.js +10 -0
- package/node_modules/@waterplane/shared/dist/installrow.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/itempaths.d.ts +23 -0
- package/node_modules/@waterplane/shared/dist/itempaths.js +38 -0
- package/node_modules/@waterplane/shared/dist/itempaths.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/pluginlaunch.d.ts +3 -2
- package/node_modules/@waterplane/shared/dist/pluginlaunch.js +1 -1
- package/node_modules/@waterplane/shared/dist/pluginlaunch.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/pricelist.d.ts +57 -0
- package/node_modules/@waterplane/shared/dist/pricelist.js +128 -0
- package/node_modules/@waterplane/shared/dist/pricelist.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/pricing.d.ts +86 -9
- package/node_modules/@waterplane/shared/dist/pricing.js +140 -20
- package/node_modules/@waterplane/shared/dist/pricing.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/queue/queuelanestate.d.ts +14 -0
- package/node_modules/@waterplane/shared/dist/queue/queuelanestate.js +25 -0
- package/node_modules/@waterplane/shared/dist/queue/queuelanestate.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/queue/queueplan.d.ts +4 -0
- package/node_modules/@waterplane/shared/dist/queue/queueplan.js +21 -0
- package/node_modules/@waterplane/shared/dist/queue/queueplan.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/queue/queuewords.js +2 -1
- package/node_modules/@waterplane/shared/dist/queue/queuewords.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/queue.d.ts +2 -0
- package/node_modules/@waterplane/shared/dist/queue.js +1 -0
- package/node_modules/@waterplane/shared/dist/queue.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/skillstate.d.ts +51 -0
- package/node_modules/@waterplane/shared/dist/skillstate.js +176 -0
- package/node_modules/@waterplane/shared/dist/skillstate.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/skillwords.d.ts +10 -0
- package/node_modules/@waterplane/shared/dist/skillwords.js +18 -0
- package/node_modules/@waterplane/shared/dist/skillwords.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/wire/agentreadings.d.ts +147 -3
- package/node_modules/@waterplane/shared/dist/wire/agentreadings.js +29 -0
- package/node_modules/@waterplane/shared/dist/wire/agentreadings.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/wire/backend.d.ts +2 -0
- package/node_modules/@waterplane/shared/dist/wire/costwindow.d.ts +4 -0
- package/node_modules/@waterplane/shared/dist/wire/dictatesetup.d.ts +42 -0
- package/node_modules/@waterplane/shared/dist/wire/dictatesetup.js +9 -0
- package/node_modules/@waterplane/shared/dist/wire/dictatesetup.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/wire/messages/hostcore.d.ts +22 -1
- package/node_modules/@waterplane/shared/dist/wire/skills.d.ts +142 -0
- package/node_modules/@waterplane/shared/dist/wire/skills.js +6 -0
- package/node_modules/@waterplane/shared/dist/wire/skills.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/wire/sysstat.d.ts +17 -0
- package/node_modules/@waterplane/shared/dist/wire/telemetry.d.ts +4 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/packages/extensions/diskspace/waterplane-plugin.json +16 -0
- package/packages/extensions/links/waterplane-plugin.json +18 -0
- package/packages/host/dist/agentclass.d.ts +42 -31
- package/packages/host/dist/agentclass.js +155 -5
- package/packages/host/dist/agentclass.js.map +1 -1
- package/packages/host/dist/agentmarkers.d.ts +49 -0
- package/packages/host/dist/agentmarkers.js +255 -0
- package/packages/host/dist/agentmarkers.js.map +1 -0
- package/packages/host/dist/agentreadings.d.ts +30 -2
- package/packages/host/dist/agentreadings.js +89 -7
- package/packages/host/dist/agentreadings.js.map +1 -1
- package/packages/host/dist/agentscan.d.ts +1 -1
- package/packages/host/dist/agentscan.js +107 -9
- package/packages/host/dist/agentscan.js.map +1 -1
- package/packages/host/dist/archive.js +9 -3
- package/packages/host/dist/archive.js.map +1 -1
- package/packages/host/dist/artifacts.js +4 -7
- package/packages/host/dist/artifacts.js.map +1 -1
- package/packages/host/dist/askrules.js +12 -4
- package/packages/host/dist/askrules.js.map +1 -1
- package/packages/host/dist/auth.d.ts +1 -0
- package/packages/host/dist/auth.js +5 -3
- package/packages/host/dist/auth.js.map +1 -1
- package/packages/host/dist/autopull.js +4 -8
- package/packages/host/dist/autopull.js.map +1 -1
- package/packages/host/dist/backends/claude.js +1 -0
- package/packages/host/dist/backends/claude.js.map +1 -1
- package/packages/host/dist/backends/derive.js +3 -1
- package/packages/host/dist/backends/derive.js.map +1 -1
- package/packages/host/dist/binguard.js +19 -2
- package/packages/host/dist/binguard.js.map +1 -1
- package/packages/host/dist/capture.js +7 -10
- package/packages/host/dist/capture.js.map +1 -1
- package/packages/host/dist/clifixtures.d.ts +24 -4
- package/packages/host/dist/clifixtures.js +50 -10
- package/packages/host/dist/clifixtures.js.map +1 -1
- package/packages/host/dist/clihealth.d.ts +8 -2
- package/packages/host/dist/clihealth.js +11 -3
- package/packages/host/dist/clihealth.js.map +1 -1
- package/packages/host/dist/costwindow.js +4 -2
- package/packages/host/dist/costwindow.js.map +1 -1
- package/packages/host/dist/ctxlog/ctxagents.d.ts +2 -0
- package/packages/host/dist/ctxlog/ctxagents.js +5 -5
- package/packages/host/dist/ctxlog/ctxagents.js.map +1 -1
- package/packages/host/dist/ctxlog/ctxcursor.d.ts +2 -0
- package/packages/host/dist/ctxlog/ctxcursor.js +2 -2
- package/packages/host/dist/ctxlog/ctxcursor.js.map +1 -1
- package/packages/host/dist/ctxlog/ctxupdate.js +11 -6
- package/packages/host/dist/ctxlog/ctxupdate.js.map +1 -1
- package/packages/host/dist/deliver/deliverknobs.d.ts +0 -2
- package/packages/host/dist/deliver/deliverknobs.js +0 -2
- package/packages/host/dist/deliver/deliverknobs.js.map +1 -1
- package/packages/host/dist/deliver/deliverproof.d.ts +3 -2
- package/packages/host/dist/deliver/deliverproof.js +9 -8
- package/packages/host/dist/deliver/deliverproof.js.map +1 -1
- package/packages/host/dist/deliver/deliverreturn.d.ts +3 -2
- package/packages/host/dist/deliver/deliverreturn.js +13 -12
- package/packages/host/dist/deliver/deliverreturn.js.map +1 -1
- package/packages/host/dist/deliver/deliverrun.js +20 -18
- package/packages/host/dist/deliver/deliverrun.js.map +1 -1
- package/packages/host/dist/deliver/deliverscreen.d.ts +2 -1
- package/packages/host/dist/deliver/deliverscreen.js +9 -8
- package/packages/host/dist/deliver/deliverscreen.js.map +1 -1
- package/packages/host/dist/deliver/delivertypes.d.ts +4 -0
- package/packages/host/dist/deliver.js +2 -1
- package/packages/host/dist/deliver.js.map +1 -1
- package/packages/host/dist/dictate.d.ts +11 -0
- package/packages/host/dist/dictate.js +20 -10
- package/packages/host/dist/dictate.js.map +1 -1
- package/packages/host/dist/dictatesetup.d.ts +54 -0
- package/packages/host/dist/dictatesetup.js +261 -0
- package/packages/host/dist/dictatesetup.js.map +1 -0
- package/packages/host/dist/doctor.js +1 -1
- package/packages/host/dist/doctor.js.map +1 -1
- package/packages/host/dist/exposurepush.js +2 -2
- package/packages/host/dist/exposurepush.js.map +1 -1
- package/packages/host/dist/extensions/diskspace/host/candidates.d.mts +180 -0
- package/packages/host/dist/extensions/diskspace/host/candidates.mjs +716 -0
- package/packages/host/dist/extensions/diskspace/host/candidates.mjs.map +1 -0
- package/packages/host/dist/extensions/diskspace/host/engine.d.mts +21 -0
- package/packages/host/dist/extensions/diskspace/host/engine.mjs +498 -0
- package/packages/host/dist/extensions/diskspace/host/engine.mjs.map +1 -0
- package/packages/host/dist/extensions/diskspace/host/index.d.mts +25 -0
- package/packages/host/dist/extensions/diskspace/host/index.mjs +135 -0
- package/packages/host/dist/extensions/diskspace/host/index.mjs.map +1 -0
- package/packages/host/dist/extensions/diskspace/host/large.d.mts +11 -0
- package/packages/host/dist/extensions/diskspace/host/large.mjs +56 -0
- package/packages/host/dist/extensions/diskspace/host/large.mjs.map +1 -0
- package/packages/host/dist/extensions/diskspace/host/run.d.mts +94 -0
- package/packages/host/dist/extensions/diskspace/host/run.mjs +200 -0
- package/packages/host/dist/extensions/diskspace/host/run.mjs.map +1 -0
- package/packages/host/dist/extensions/diskspace/shared/wire.d.mts +197 -0
- package/packages/host/dist/extensions/diskspace/shared/wire.mjs +23 -0
- package/packages/host/dist/extensions/diskspace/shared/wire.mjs.map +1 -0
- package/packages/host/dist/extensions/links/host/engine.d.mts +39 -0
- package/packages/host/dist/extensions/links/host/engine.mjs +285 -0
- package/packages/host/dist/extensions/links/host/engine.mjs.map +1 -0
- package/packages/host/dist/extensions/links/host/index.d.mts +10 -0
- package/packages/host/dist/extensions/links/host/index.mjs +72 -0
- package/packages/host/dist/extensions/links/host/index.mjs.map +1 -0
- package/packages/host/dist/extensions/links/host/parse.d.mts +61 -0
- package/packages/host/dist/extensions/links/host/parse.mjs +225 -0
- package/packages/host/dist/extensions/links/host/parse.mjs.map +1 -0
- package/packages/host/dist/extensions/links/host/run.d.mts +15 -0
- package/packages/host/dist/extensions/links/host/run.mjs +32 -0
- package/packages/host/dist/extensions/links/host/run.mjs.map +1 -0
- package/packages/host/dist/extensions/links/host/store.d.mts +11 -0
- package/packages/host/dist/extensions/links/host/store.mjs +76 -0
- package/packages/host/dist/extensions/links/host/store.mjs.map +1 -0
- package/packages/host/dist/extensions/links/shared/wire.d.mts +141 -0
- package/packages/host/dist/extensions/links/shared/wire.mjs +20 -0
- package/packages/host/dist/extensions/links/shared/wire.mjs.map +1 -0
- package/packages/host/dist/git.d.ts +5 -3
- package/packages/host/dist/git.js +16 -28
- package/packages/host/dist/git.js.map +1 -1
- package/packages/host/dist/halt.js +16 -3
- package/packages/host/dist/halt.js.map +1 -1
- package/packages/host/dist/jsonstore.d.ts +16 -4
- package/packages/host/dist/jsonstore.js +32 -8
- package/packages/host/dist/jsonstore.js.map +1 -1
- package/packages/host/dist/landedbase.d.ts +41 -0
- package/packages/host/dist/landedbase.js +59 -0
- package/packages/host/dist/landedbase.js.map +1 -0
- package/packages/host/dist/lantls.js +2 -2
- package/packages/host/dist/lantls.js.map +1 -1
- package/packages/host/dist/limitretry.js +2 -3
- package/packages/host/dist/limitretry.js.map +1 -1
- package/packages/host/dist/localledger.js +9 -12
- package/packages/host/dist/localledger.js.map +1 -1
- package/packages/host/dist/main.js +2 -0
- package/packages/host/dist/main.js.map +1 -1
- package/packages/host/dist/opendeliveries.d.ts +4 -0
- package/packages/host/dist/opendeliveries.js +27 -1
- package/packages/host/dist/opendeliveries.js.map +1 -1
- package/packages/host/dist/plugins/setupcontrib.js +3 -2
- package/packages/host/dist/plugins/setupcontrib.js.map +1 -1
- package/packages/host/dist/pricefetch.d.ts +80 -0
- package/packages/host/dist/pricefetch.js +289 -0
- package/packages/host/dist/pricefetch.js.map +1 -0
- package/packages/host/dist/pricegap.d.ts +11 -0
- package/packages/host/dist/pricegap.js +30 -0
- package/packages/host/dist/pricegap.js.map +1 -0
- package/packages/host/dist/repohealthscopes.js +16 -24
- package/packages/host/dist/repohealthscopes.js.map +1 -1
- package/packages/host/dist/repos.d.ts +4 -0
- package/packages/host/dist/repos.js +1 -1
- package/packages/host/dist/repos.js.map +1 -1
- package/packages/host/dist/routes/apiagentpoints.d.ts +5 -0
- package/packages/host/dist/routes/apiagentpoints.js +48 -0
- package/packages/host/dist/routes/apiagentpoints.js.map +1 -0
- package/packages/host/dist/routes/apidictate.d.ts +2 -0
- package/packages/host/dist/routes/apidictate.js +27 -0
- package/packages/host/dist/routes/apidictate.js.map +1 -0
- package/packages/host/dist/routes/apihost.js +3 -2
- package/packages/host/dist/routes/apihost.js.map +1 -1
- package/packages/host/dist/routes/apirepofiles.js +3 -1
- package/packages/host/dist/routes/apirepofiles.js.map +1 -1
- package/packages/host/dist/routes/apirepowork.js +3 -2
- package/packages/host/dist/routes/apirepowork.js.map +1 -1
- package/packages/host/dist/routes/apiroutes.js +4 -1
- package/packages/host/dist/routes/apiroutes.js.map +1 -1
- package/packages/host/dist/routes/apiskills.d.ts +3 -0
- package/packages/host/dist/routes/apiskills.js +81 -0
- package/packages/host/dist/routes/apiskills.js.map +1 -0
- package/packages/host/dist/routes/apistats.js +2 -2
- package/packages/host/dist/routes/apistats.js.map +1 -1
- package/packages/host/dist/server/billingwire.js +5 -0
- package/packages/host/dist/server/billingwire.js.map +1 -1
- package/packages/host/dist/server/deliveries.d.ts +4 -1
- package/packages/host/dist/server/deliveries.js +38 -6
- package/packages/host/dist/server/deliveries.js.map +1 -1
- package/packages/host/dist/server/intentDeps.js +7 -6
- package/packages/host/dist/server/intentDeps.js.map +1 -1
- package/packages/host/dist/server/wsops.js +2 -1
- package/packages/host/dist/server/wsops.js.map +1 -1
- package/packages/host/dist/sessions/core.d.ts +1 -0
- package/packages/host/dist/sessions/ctxseries.js +7 -5
- package/packages/host/dist/sessions/ctxseries.js.map +1 -1
- package/packages/host/dist/sessions/drive.d.ts +6 -1
- package/packages/host/dist/sessions/drive.js +13 -10
- package/packages/host/dist/sessions/drive.js.map +1 -1
- package/packages/host/dist/sessions/record.js +16 -17
- package/packages/host/dist/sessions/record.js.map +1 -1
- package/packages/host/dist/sessions/sidechannel.js +1 -1
- package/packages/host/dist/sessions/sidechannel.js.map +1 -1
- package/packages/host/dist/sessions/turn.js +5 -0
- package/packages/host/dist/sessions/turn.js.map +1 -1
- package/packages/host/dist/sessions.d.ts +2 -1
- package/packages/host/dist/sessions.js +1 -1
- package/packages/host/dist/sessions.js.map +1 -1
- package/packages/host/dist/settle.d.ts +3 -2
- package/packages/host/dist/settle.js +13 -13
- package/packages/host/dist/settle.js.map +1 -1
- package/packages/host/dist/sidecar/sidecarname.d.ts +2 -0
- package/packages/host/dist/sidecar/sidecarname.js +5 -1
- package/packages/host/dist/sidecar/sidecarname.js.map +1 -1
- package/packages/host/dist/sidecar/sidecarroute.d.ts +1 -1
- package/packages/host/dist/sidecar/sidecarroute.js +5 -0
- package/packages/host/dist/sidecar/sidecarroute.js.map +1 -1
- package/packages/host/dist/sidecar.d.ts +1 -1
- package/packages/host/dist/sidecar.js +1 -1
- package/packages/host/dist/sidecar.js.map +1 -1
- package/packages/host/dist/skills/skillinventory.d.ts +23 -0
- package/packages/host/dist/skills/skillinventory.js +275 -0
- package/packages/host/dist/skills/skillinventory.js.map +1 -0
- package/packages/host/dist/skills/skilllayers.d.ts +28 -0
- package/packages/host/dist/skills/skilllayers.js +73 -0
- package/packages/host/dist/skills/skilllayers.js.map +1 -0
- package/packages/host/dist/skills/skillrecommend.d.ts +42 -0
- package/packages/host/dist/skills/skillrecommend.js +171 -0
- package/packages/host/dist/skills/skillrecommend.js.map +1 -0
- package/packages/host/dist/skills/skillrefs.d.ts +2 -0
- package/packages/host/dist/skills/skillrefs.js +50 -0
- package/packages/host/dist/skills/skillrefs.js.map +1 -0
- package/packages/host/dist/skills/skilluse.d.ts +57 -0
- package/packages/host/dist/skills/skilluse.js +242 -0
- package/packages/host/dist/skills/skilluse.js.map +1 -0
- package/packages/host/dist/skills/skillweight.d.ts +18 -0
- package/packages/host/dist/skills/skillweight.js +69 -0
- package/packages/host/dist/skills/skillweight.js.map +1 -0
- package/packages/host/dist/skills/skillwrite.d.ts +56 -0
- package/packages/host/dist/skills/skillwrite.js +183 -0
- package/packages/host/dist/skills/skillwrite.js.map +1 -0
- package/packages/host/dist/sysstat.d.ts +34 -1
- package/packages/host/dist/sysstat.js +82 -14
- package/packages/host/dist/sysstat.js.map +1 -1
- package/packages/host/dist/tokenscan.js +5 -2
- package/packages/host/dist/tokenscan.js.map +1 -1
- package/packages/host/dist/tokenstats.js +7 -4
- package/packages/host/dist/tokenstats.js.map +1 -1
- package/packages/host/dist/transcript/transcriptparse.js +2 -2
- package/packages/host/dist/transcript/transcriptparse.js.map +1 -1
- package/packages/host/dist/waitclock.d.ts +12 -0
- package/packages/host/dist/waitclock.js +23 -0
- package/packages/host/dist/waitclock.js.map +1 -0
- package/packages/host/dist/worktreeleftover.js +13 -15
- package/packages/host/dist/worktreeleftover.js.map +1 -1
- package/packages/web/dist/assets/demo-DHkwSmU5.js +26 -0
- package/packages/web/dist/assets/{icons-D8RlmSLR.js → icons-5lVTFNUU.js} +1 -1
- package/packages/web/dist/assets/index-Bh4cH6X8.js +170 -0
- package/packages/web/dist/assets/index-F7VHtsLI.css +1 -0
- package/packages/web/dist/assets/shared-BvQMg9ra.js +51 -0
- package/packages/web/dist/assets/sheets-Cwi72V02.js +257 -0
- package/packages/web/dist/assets/sheets-DjU2XiUd.css +1 -0
- package/packages/web/dist/build-id.txt +1 -1
- package/packages/web/dist/buildstamp.json +1 -1
- package/packages/web/dist/index.html +7 -7
- package/packages/web/dist/sw.js +2 -2
- package/release.json +11 -3
- package/packages/web/dist/assets/demo-mKJo0QVO.js +0 -26
- package/packages/web/dist/assets/index-B6f7Lcp1.js +0 -170
- package/packages/web/dist/assets/index-DQIK94fc.css +0 -1
- package/packages/web/dist/assets/shared-Cd69oxHd.js +0 -51
- package/packages/web/dist/assets/sheets-BImsk1_Y.js +0 -256
- package/packages/web/dist/assets/sheets-DoUhPGK0.css +0 -1
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { DiskKind, DiskProfile, DiskSide } from "../shared/wire.mjs";
|
|
2
|
+
import { type Runner } from "./run.mjs";
|
|
3
|
+
export interface Roots {
|
|
4
|
+
/** Which desktop this is (`index.mts` decides once). Absent = `mac`. */
|
|
5
|
+
profile?: DiskProfile;
|
|
6
|
+
/** wsl: the Windows user folder as a /mnt path (`/mnt/c/Users/me`); null when it could not be found. */
|
|
7
|
+
winHome?: string | null;
|
|
8
|
+
/** wsl: the distro's name (WSL_DISTRO_NAME), for the compact instruction. */
|
|
9
|
+
wslDistro?: string | null;
|
|
10
|
+
/** A sentence every scan repeats: why this desktop is listed more narrowly than its profile would be. */
|
|
11
|
+
profileNote?: string | null;
|
|
12
|
+
/** wsl: `powershell.exe` — the reader of Windows-side folder sizes and the fallback reader of the Windows drive's free space; null = none. */
|
|
13
|
+
psBin?: string | null;
|
|
14
|
+
/** wsl: the time bound on the one PowerShell call that sizes the Windows-side folders of a scan phase. */
|
|
15
|
+
psTimeoutMs?: number;
|
|
16
|
+
/** Tests: stands in for `run` when PowerShell is called (never a real powershell.exe in a test). */
|
|
17
|
+
psRun?: Runner;
|
|
18
|
+
/** Tests: a path's Windows form (default `winPathOf`: `/mnt/c/x` → `C:\x`). */
|
|
19
|
+
winPath?: (p: string) => string | null;
|
|
20
|
+
/** wsl: how long a %TEMP% entry must be untouched before it is offered (a week). */
|
|
21
|
+
winTempMinAgeMs: number;
|
|
22
|
+
home: string;
|
|
23
|
+
/** The code root (WATERPLANE_ROOT, else ~/dev). */
|
|
24
|
+
root: string;
|
|
25
|
+
/** `/private/tmp/claude-<uid>` on a Mac, `/tmp/claude-<uid>` on Linux. */
|
|
26
|
+
tmpRoot: string;
|
|
27
|
+
androidSdk: string;
|
|
28
|
+
duBin: string;
|
|
29
|
+
gitBin: string;
|
|
30
|
+
findBin: string;
|
|
31
|
+
/** null: no ollama on this desktop. */
|
|
32
|
+
ollamaBin: string | null;
|
|
33
|
+
duTimeoutMs: number;
|
|
34
|
+
concurrency: number;
|
|
35
|
+
walkDepth: number;
|
|
36
|
+
/** Folders the code-root walk may open before it stops (and says so). */
|
|
37
|
+
walkBudget: number;
|
|
38
|
+
tmpMinAgeMs: number;
|
|
39
|
+
largeLimitMs: number;
|
|
40
|
+
/** `find -size` argument. */
|
|
41
|
+
largeMinSize: string;
|
|
42
|
+
now: () => number;
|
|
43
|
+
}
|
|
44
|
+
export type Category = "cache" | "build" | "tmp" | "hf" | "ollama" | "wcache" | "wtemp" | "show" | "nm";
|
|
45
|
+
export interface Candidate {
|
|
46
|
+
id: string;
|
|
47
|
+
category: Category;
|
|
48
|
+
kind: DiskKind;
|
|
49
|
+
group: string;
|
|
50
|
+
label: string;
|
|
51
|
+
/** Absent for ollama (deleted by name) and the aggregated scratchpad row. */
|
|
52
|
+
path?: string;
|
|
53
|
+
/** The aggregated scratchpad row: the folders it stands for. */
|
|
54
|
+
members?: string[];
|
|
55
|
+
ollamaName?: string;
|
|
56
|
+
ollamaId?: string;
|
|
57
|
+
/** ollama's own size text, kept for the row. */
|
|
58
|
+
sizeText?: string;
|
|
59
|
+
regen?: string;
|
|
60
|
+
mtime?: number | null;
|
|
61
|
+
note?: string;
|
|
62
|
+
/** wsl only: which disk it is on. */
|
|
63
|
+
side?: DiskSide;
|
|
64
|
+
}
|
|
65
|
+
export declare function idOf(category: Category, key: string): string;
|
|
66
|
+
export declare function tilde(p: string, home: string): string;
|
|
67
|
+
export declare const profileOf: (r: Roots) => DiskProfile;
|
|
68
|
+
/** The Windows home, only on wsl. */
|
|
69
|
+
export declare const winHomeOf: (r: Roots) => string | null;
|
|
70
|
+
/** `/mnt/c/Users/me/x` as Windows writes it (`C:/Users/me/x`); any other path as it is. */
|
|
71
|
+
export declare function driveForm(p: string): string;
|
|
72
|
+
/** On wsl a group says which disk it is on; elsewhere there is one disk and it says nothing. */
|
|
73
|
+
/** The disk a PATH is on under wsl: a path under /mnt/<letter>/ is that Windows drive, anything else is inside WSL. */
|
|
74
|
+
export declare const sideOfPath: (p: string) => DiskSide;
|
|
75
|
+
export declare function sided(r: Roots, group: string, side: DiskSide): {
|
|
76
|
+
group: string;
|
|
77
|
+
side?: DiskSide;
|
|
78
|
+
};
|
|
79
|
+
export interface FixedCache {
|
|
80
|
+
rel: string;
|
|
81
|
+
group: string;
|
|
82
|
+
regen: string;
|
|
83
|
+
}
|
|
84
|
+
/** The Mac's list (`profile: "mac"`). */
|
|
85
|
+
export declare const FIXED_CACHES: readonly FixedCache[];
|
|
86
|
+
/** Linux's list, and the Linux side of wsl (XDG cache folders under ~/.cache). */
|
|
87
|
+
export declare const LINUX_CACHES: readonly FixedCache[];
|
|
88
|
+
/** wsl's Windows side, relative to the Windows home. A `*` segment is one real folder per row. */
|
|
89
|
+
export declare const WIN_CACHES: readonly FixedCache[];
|
|
90
|
+
/** The home-side list for this desktop's profile. */
|
|
91
|
+
export declare const cachesFor: (r: Roots) => readonly FixedCache[];
|
|
92
|
+
/** Whether `rel` (already split, no empty/`.`/`..` segment) is `pattern`, a `*` matching any one segment. */
|
|
93
|
+
export declare function relMatches(pattern: string, rel: readonly string[]): boolean;
|
|
94
|
+
/** Every fixed cache that exists (a symlink too — `safeToRemove` is what refuses it, with words). */
|
|
95
|
+
export declare function resolveCaches(r: Roots): Promise<Candidate[]>;
|
|
96
|
+
/** wsl: every Windows-side fixed cache that exists; none without a Windows home. */
|
|
97
|
+
export declare function resolveWinCaches(r: Roots): Promise<Candidate[]>;
|
|
98
|
+
export declare const BUILD_NAMES: ReadonlySet<string>;
|
|
99
|
+
export interface Walk {
|
|
100
|
+
build: string[];
|
|
101
|
+
nodeModules: string[];
|
|
102
|
+
stopped: boolean;
|
|
103
|
+
outsideGit: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Walk the code root: build output folders (not descended into) and node_modules folders (never
|
|
107
|
+
* descended into). Bounded by depth and by a folder budget, yielding as it goes — this runs in the
|
|
108
|
+
* process pumping every PTY. Symlinks are never followed.
|
|
109
|
+
*/
|
|
110
|
+
export declare function walkRoot(r: Roots): Promise<Walk>;
|
|
111
|
+
/**
|
|
112
|
+
* ONE path checked the way `walkRoot` would have found it, without walking the code root — the
|
|
113
|
+
* fresh recompute a build-output delete runs (on a Windows-drive code root a walk takes many
|
|
114
|
+
* minutes). The path must be under the code root within the walk's depth, reached only through
|
|
115
|
+
* folders the walk descends into (no `node_modules`, `.git`, `.gradle`, `.Trash`, and no build
|
|
116
|
+
* output folder above it), named like build output, a real folder (not a link) next to a manifest,
|
|
117
|
+
* and ignored by git. Null candidate with the sentence why otherwise.
|
|
118
|
+
*/
|
|
119
|
+
export declare function recheckBuild(r: Roots, path: string): Promise<{
|
|
120
|
+
c: Candidate | null;
|
|
121
|
+
why?: string;
|
|
122
|
+
}>;
|
|
123
|
+
/** wsl: a path whose bytes are on the Windows drive — under a /mnt drive, or under the Windows home. */
|
|
124
|
+
export declare function onWindowsDrive(r: Roots, p: string): boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The code-root walk runs only on a tap: on wsl with the code root on the Windows drive, where
|
|
127
|
+
* reading folders through WSL's drvfs is slow enough that one walk of a real code root took 29 min.
|
|
128
|
+
*/
|
|
129
|
+
export declare const codeOnTap: (r: Roots) => boolean;
|
|
130
|
+
export declare const BUILD_REGEN = "The next build writes it again.";
|
|
131
|
+
export declare function buildCandidates(r: Roots, w: Walk): Candidate[];
|
|
132
|
+
export declare function nodeModulesEntries(r: Roots, w: Walk): Candidate[];
|
|
133
|
+
/** The newest mtime anywhere under `dir`, or null when the folder has more than `budget` entries (then it is not "old"). */
|
|
134
|
+
export declare function newestMtime(dir: string, budget?: number): Promise<number | null>;
|
|
135
|
+
/** The session folders (`<tmpRoot>/<project>/<session>`) where nothing changed for `tmpMinAgeMs`. */
|
|
136
|
+
export declare function oldScratchpads(r: Roots): Promise<string[]>;
|
|
137
|
+
export declare const TMP_KEY = "claude-scratchpads";
|
|
138
|
+
export declare function resolveTmp(r: Roots): Promise<Candidate[]>;
|
|
139
|
+
export declare const winTempDir: (win: string) => string;
|
|
140
|
+
/** How many %TEMP% entries one scan looks at; past it the row says so. */
|
|
141
|
+
export declare const WIN_TEMP_MAX = 3000;
|
|
142
|
+
export declare const WIN_TEMP_KEY = "windows-temp";
|
|
143
|
+
/** Entries directly under %TEMP% (files and folders, never a symlink) where nothing changed for a week. */
|
|
144
|
+
export declare function oldWinTemp(r: Roots): Promise<{
|
|
145
|
+
members: string[];
|
|
146
|
+
capped: boolean;
|
|
147
|
+
}>;
|
|
148
|
+
export declare function resolveWinTemp(r: Roots): Promise<Candidate[]>;
|
|
149
|
+
export declare const hfHub: (r: Roots) => string;
|
|
150
|
+
export declare function resolveHf(r: Roots): Promise<Candidate[]>;
|
|
151
|
+
/** "18 GB" → KiB, ollama's decimal units; null when it does not parse. */
|
|
152
|
+
export declare function ollamaSizeKb(text: string): number | null;
|
|
153
|
+
export interface OllamaRow {
|
|
154
|
+
name: string;
|
|
155
|
+
id: string;
|
|
156
|
+
size: string;
|
|
157
|
+
modified: string;
|
|
158
|
+
}
|
|
159
|
+
/** `ollama list`'s table, columns split on runs of 2+ spaces. A row that does not have them is dropped. */
|
|
160
|
+
export declare function parseOllamaList(out: string): OllamaRow[];
|
|
161
|
+
/** An ollama tag safe to hand to `ollama rm` as one argv element. */
|
|
162
|
+
export declare const OLLAMA_NAME_RE: RegExp;
|
|
163
|
+
export declare function resolveOllama(r: Roots): Promise<{
|
|
164
|
+
list: Candidate[];
|
|
165
|
+
note: string | null;
|
|
166
|
+
}>;
|
|
167
|
+
/** wsl: the distros' virtual disks (`ext4.vhdx`), found in the two places WSL keeps them, bounded. */
|
|
168
|
+
export declare function wslDisks(win: string): Promise<string[]>;
|
|
169
|
+
/** The compact instruction for a WSL virtual disk, naming this distro when it is known. */
|
|
170
|
+
export declare function compactHow(distro: string | null | undefined): string;
|
|
171
|
+
export declare function showOnly(r: Roots): Promise<Candidate[]>;
|
|
172
|
+
/** The folders the large-file find skips because a list above already covers them. */
|
|
173
|
+
export declare function coveredPaths(r: Roots): string[];
|
|
174
|
+
/**
|
|
175
|
+
* Null when `path` may be removed as a `c.category` candidate, else the sentence why not. The path
|
|
176
|
+
* must be absolute and lexically inside its anchor with the category's shape, must not be a symlink,
|
|
177
|
+
* and its REALPATH must be exactly the anchor's realpath joined with the same relative path — so a
|
|
178
|
+
* symlink anywhere between the anchor and the leaf (or a swapped-in one since the scan) refuses.
|
|
179
|
+
*/
|
|
180
|
+
export declare function safeToRemove(c: Candidate, r: Roots, path: string): Promise<string | null>;
|