waterplane 0.1.24 → 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 +49 -0
- package/SECURITY.md +25 -5
- 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/healthindex/commits.d.ts +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex/commits.js +2 -2
- package/node_modules/@waterplane/shared/dist/healthindex/commits.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex/coverage.d.ts +128 -0
- package/node_modules/@waterplane/shared/dist/healthindex/coverage.js +343 -0
- package/node_modules/@waterplane/shared/dist/healthindex/coverage.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/healthindex/readings.d.ts +9 -1
- package/node_modules/@waterplane/shared/dist/healthindex/readings.js +122 -4
- package/node_modules/@waterplane/shared/dist/healthindex/readings.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex/repoindex.d.ts +5 -0
- package/node_modules/@waterplane/shared/dist/healthindex/repoindex.js +2 -0
- package/node_modules/@waterplane/shared/dist/healthindex/repoindex.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex/score.d.ts +3 -0
- package/node_modules/@waterplane/shared/dist/healthindex/score.js +52 -16
- package/node_modules/@waterplane/shared/dist/healthindex/score.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex/types.d.ts +82 -6
- package/node_modules/@waterplane/shared/dist/healthindex/types.js +35 -2
- package/node_modules/@waterplane/shared/dist/healthindex/types.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex/words.js +65 -6
- package/node_modules/@waterplane/shared/dist/healthindex/words.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindex.d.ts +21 -7
- package/node_modules/@waterplane/shared/dist/healthindex.js +20 -7
- package/node_modules/@waterplane/shared/dist/healthindex.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthindexresponse.js +3 -2
- package/node_modules/@waterplane/shared/dist/healthindexresponse.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/healthspend.d.ts +23 -0
- package/node_modules/@waterplane/shared/dist/healthspend.js +32 -1
- package/node_modules/@waterplane/shared/dist/healthspend.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/hints.js +9 -0
- package/node_modules/@waterplane/shared/dist/hints.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/index.d.ts +9 -0
- package/node_modules/@waterplane/shared/dist/index.js +9 -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/intent/kind.d.ts +45 -1
- package/node_modules/@waterplane/shared/dist/intent/kind.js +60 -2
- package/node_modules/@waterplane/shared/dist/intent/kind.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/intent.d.ts +1 -1
- package/node_modules/@waterplane/shared/dist/intent.js +1 -1
- package/node_modules/@waterplane/shared/dist/intent.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/repohealth.d.ts +178 -0
- package/node_modules/@waterplane/shared/dist/repohealth.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/repohealthhabits.d.ts +15 -0
- package/node_modules/@waterplane/shared/dist/repohealthhabits.js +117 -0
- package/node_modules/@waterplane/shared/dist/repohealthhabits.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/repohealthnative.d.ts +10 -0
- package/node_modules/@waterplane/shared/dist/repohealthnative.js +94 -0
- package/node_modules/@waterplane/shared/dist/repohealthnative.js.map +1 -0
- package/node_modules/@waterplane/shared/dist/repohealthread.js +23 -1
- package/node_modules/@waterplane/shared/dist/repohealthread.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 +248 -0
- package/node_modules/@waterplane/shared/dist/wire/agentreadings.js +36 -0
- package/node_modules/@waterplane/shared/dist/wire/agentreadings.js.map +1 -0
- 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/notify.d.ts +6 -1
- package/node_modules/@waterplane/shared/dist/wire/notify.js +6 -1
- package/node_modules/@waterplane/shared/dist/wire/notify.js.map +1 -1
- package/node_modules/@waterplane/shared/dist/wire/repo.d.ts +1 -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 +116 -0
- package/packages/host/dist/agentclass.js +339 -0
- package/packages/host/dist/agentclass.js.map +1 -0
- package/packages/host/dist/agentintents.d.ts +18 -0
- package/packages/host/dist/agentintents.js +40 -7
- package/packages/host/dist/agentintents.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 +68 -0
- package/packages/host/dist/agentreadings.js +336 -0
- package/packages/host/dist/agentreadings.js.map +1 -0
- package/packages/host/dist/agentscan.d.ts +8 -0
- package/packages/host/dist/agentscan.js +427 -0
- package/packages/host/dist/agentscan.js.map +1 -0
- 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/exposure.d.ts +10 -0
- package/packages/host/dist/exposure.js +25 -0
- package/packages/host/dist/exposure.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/reposkilltext.d.ts +2 -0
- package/packages/host/dist/reposkilltext.js +8 -2
- package/packages/host/dist/reposkilltext.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 +14 -0
- 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/routes/apisystem.js +3 -1
- package/packages/host/dist/routes/apisystem.js.map +1 -1
- package/packages/host/dist/routes/apitable.d.ts +2 -0
- package/packages/host/dist/routes/apitable.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/http.js +1 -1
- package/packages/host/dist/server/http.js.map +1 -1
- package/packages/host/dist/server/intentDeps.js +20 -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/tmux.js +6 -1
- package/packages/host/dist/sessions/tmux.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/weekburn.js +7 -5
- package/packages/host/dist/weekburn.js.map +1 -1
- 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/tools/repohealth/constants.mjs +34 -1
- package/tools/repohealth/fixture.json +5374 -38
- package/tools/repohealth/git.mjs +77 -0
- package/tools/repohealth/lang/dart-analyze.mjs +181 -0
- package/tools/repohealth/lang/dart-lex.mjs +494 -0
- package/tools/repohealth/lang/dart-resolve.mjs +95 -0
- package/tools/repohealth/lang/python-ast.mjs +602 -0
- package/tools/repohealth/lang/python-resolve.mjs +228 -0
- package/tools/repohealth/metrics/habits.mjs +286 -0
- package/tools/repohealth/metrics/native.mjs +542 -0
- package/tools/repohealth/metrics/untested.mjs +20 -8
- package/tools/repohealth/metrics/workspace.mjs +256 -0
- package/tools/repohealth/own.mjs +67 -5
- package/tools/repohealth/packs/dart.mjs +153 -85
- package/tools/repohealth/packs/python.mjs +51 -14
- package/tools/repohealth/plot.mjs +143 -1
- package/tools/repohealth/reach.mjs +98 -0
- package/tools/repohealth/scope.mjs +14 -1
- package/tools/repohealth/series.mjs +5 -0
- package/tools/repohealth/types.mjs +4 -0
- package/tools/repohealth.mjs +39 -5
- package/packages/web/dist/assets/demo-ad3g3HDa.js +0 -26
- package/packages/web/dist/assets/index-Csb7jynu.js +0 -170
- package/packages/web/dist/assets/index-Cz9Haocy.css +0 -1
- package/packages/web/dist/assets/shared-DBaaGttP.js +0 -51
- package/packages/web/dist/assets/sheets-CqsP9w1V.js +0 -256
- package/packages/web/dist/assets/sheets-DoUhPGK0.css +0 -1
package/tools/repohealth/git.mjs
CHANGED
|
@@ -469,3 +469,80 @@ export function readHunks(root) {
|
|
|
469
469
|
}
|
|
470
470
|
return out;
|
|
471
471
|
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The path a numstat row names when git detected a rename: `a/{x => y}/b` or
|
|
475
|
+
* `x => y`. The NEW path, so the row lands on the file as it now is.
|
|
476
|
+
* @param {string} p
|
|
477
|
+
*/
|
|
478
|
+
export function renameTarget(p) {
|
|
479
|
+
if (!p.includes(" => ")) return p;
|
|
480
|
+
const open = p.indexOf("{");
|
|
481
|
+
const close = p.indexOf("}", open + 1);
|
|
482
|
+
if (open >= 0 && close > open) {
|
|
483
|
+
const inner = p.slice(open + 1, close);
|
|
484
|
+
const to = inner.slice(inner.indexOf(" => ") + 4);
|
|
485
|
+
return (p.slice(0, open) + to + p.slice(close + 1)).replace(/\/\//g, "/");
|
|
486
|
+
}
|
|
487
|
+
return p.slice(p.indexOf(" => ") + 4);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Per-commit, per-file added/deleted lines WITH rename detection (`-M`), for
|
|
492
|
+
* `metrics/habits.mjs`.
|
|
493
|
+
*
|
|
494
|
+
* `readHistory` pins `diff.renames=false` on purpose (every path it returns
|
|
495
|
+
* must match a tree entry), and that is exactly wrong for a deletion ratio: a
|
|
496
|
+
* moved file would read as all lines deleted AND all lines added, and a repo
|
|
497
|
+
* that reorganises looks like it both grooms and bloats. Here a pure move is a
|
|
498
|
+
* row of `0 0` and a move-with-edits counts only the edit. Same other flags as
|
|
499
|
+
* `readHistory` (first-parent merges, no quoting), one more log of the same
|
|
500
|
+
* size, read once per `update` that has a row to measure.
|
|
501
|
+
*
|
|
502
|
+
* A binary row has no line counts and is left out: it is not a line of code.
|
|
503
|
+
*
|
|
504
|
+
* @param {string} root
|
|
505
|
+
* @returns {Map<string, Map<string, {add: number, del: number}>>} sha -> path -> counts
|
|
506
|
+
*/
|
|
507
|
+
export function readChurn(root) {
|
|
508
|
+
const out = gitText(root, [
|
|
509
|
+
"-c", "core.quotePath=false",
|
|
510
|
+
"log", "--first-parent", "--diff-merges=first-parent",
|
|
511
|
+
"-M", "--numstat", "--no-ext-diff", "--format=%H%x00",
|
|
512
|
+
]);
|
|
513
|
+
const churn = new Map();
|
|
514
|
+
let files = null;
|
|
515
|
+
for (const line of out.split("\n")) {
|
|
516
|
+
if (!line) continue;
|
|
517
|
+
if (line.includes("\0")) {
|
|
518
|
+
files = new Map();
|
|
519
|
+
churn.set(line.slice(0, line.indexOf("\0")), files);
|
|
520
|
+
continue;
|
|
521
|
+
}
|
|
522
|
+
const m = NUMSTAT_ROW.exec(line);
|
|
523
|
+
if (!m || !files || m[1] === "-" || m[2] === "-") continue;
|
|
524
|
+
const path = renameTarget(m[3]);
|
|
525
|
+
const was = files.get(path);
|
|
526
|
+
if (was) {
|
|
527
|
+
was.add += Number(m[1]);
|
|
528
|
+
was.del += Number(m[2]);
|
|
529
|
+
} else {
|
|
530
|
+
files.set(path, { add: Number(m[1]), del: Number(m[2]) });
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
return churn;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Whether the history stops short of the repo's first commit. A shallow clone
|
|
538
|
+
* has a boundary commit that "adds" everything, and every window reaching it
|
|
539
|
+
* would read a repo-sized addition as one day's work.
|
|
540
|
+
* @param {string} root
|
|
541
|
+
*/
|
|
542
|
+
export function isShallow(root) {
|
|
543
|
+
try {
|
|
544
|
+
return gitText(root, ["rev-parse", "--is-shallow-repository"]).trim() === "true";
|
|
545
|
+
} catch {
|
|
546
|
+
return false;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dart `blocks` (clone candidates) and `idents` (names and exports), off the
|
|
3
|
+
* token stream of `dart-lex.mjs`. The contract is `lang/typescript-ast.mjs`'s:
|
|
4
|
+
* `blocks(file, params)` -> `{name, line, lines, start, end, sig}[]`,
|
|
5
|
+
* `idents(file)` -> `{identifiers: Set<string>, exports: string[]}`.
|
|
6
|
+
*
|
|
7
|
+
* ── Blocks ──────────────────────────────────────────────────────────────────
|
|
8
|
+
* A block is a top-level function, a method or constructor with a body, or a
|
|
9
|
+
* variable/field with an initializer, of at least `params.minLines` lines. A
|
|
10
|
+
* class is not a block; its members are, named `Class.member`. The signed
|
|
11
|
+
* stream is the file's tokens with identifiers and keywords by text, strings
|
|
12
|
+
* as one `S` and numbers as one `N`, so a copy with other literals is still the
|
|
13
|
+
* same clone. `params.nested` is ignored: closures inside a method are not
|
|
14
|
+
* blocks here (a Flutter `build` is one method and is what gets copied).
|
|
15
|
+
*
|
|
16
|
+
* ── Exports ─────────────────────────────────────────────────────────────────
|
|
17
|
+
* A top-level declaration whose name does not start with `_`: class, mixin,
|
|
18
|
+
* enum, function, getter/setter, variable. Left out on purpose, because naming
|
|
19
|
+
* them is not how they are used or because nobody can tell. Dart has no
|
|
20
|
+
* `export` keyword, so a name the declaring file itself uses outside the
|
|
21
|
+
* declaration (a root widget `main()` runs, a helper two functions call) is
|
|
22
|
+
* over-public, not dead, and is not listed either. Also left out:
|
|
23
|
+
* - `main` (the entry point is called by the runtime);
|
|
24
|
+
* - an `extension` (applied by type, never named at the call site);
|
|
25
|
+
* - a `typedef` (a type, like the TS pack's types);
|
|
26
|
+
* - anything annotated `@pragma(...)` (called from native code);
|
|
27
|
+
* - every declaration of a library that lists a generated part
|
|
28
|
+
* (`part 'x.g.dart'`): the generated file is not read, and it may be what
|
|
29
|
+
* names the declaration.
|
|
30
|
+
* `identifiers` is every identifier token plus every name inside a string
|
|
31
|
+
* interpolation; a word that is only in a string is not a use.
|
|
32
|
+
*/
|
|
33
|
+
import { parseDart } from "./dart-lex.mjs";
|
|
34
|
+
import { GENERATED_SUFFIXES } from "./dart-resolve.mjs";
|
|
35
|
+
import { contentKey } from "./typescript-ast.mjs";
|
|
36
|
+
|
|
37
|
+
const PARSE_CACHE = new Map();
|
|
38
|
+
const BLOCK_CACHE = new Map();
|
|
39
|
+
|
|
40
|
+
/** Drop the memos (a cold-run timing). */
|
|
41
|
+
export function clearDartCaches() {
|
|
42
|
+
PARSE_CACHE.clear();
|
|
43
|
+
BLOCK_CACHE.clear();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The parse of a file, memoised by blob oid (or a content key), shared with the resolver. */
|
|
47
|
+
export function parseOf(file) {
|
|
48
|
+
const key = file.oid ?? contentKey(file.text);
|
|
49
|
+
let p = PARSE_CACHE.get(key);
|
|
50
|
+
if (!p) {
|
|
51
|
+
p = parseDart(file.text);
|
|
52
|
+
PARSE_CACHE.set(key, p);
|
|
53
|
+
}
|
|
54
|
+
return p;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function identsOf(file) {
|
|
58
|
+
const p = parseOf(file);
|
|
59
|
+
const identifiers = new Set(p.interp);
|
|
60
|
+
for (const t of p.toks) if (t.k === "id") identifiers.add(t.s);
|
|
61
|
+
const generatedPart = p.directives.some(
|
|
62
|
+
(d) => d.kind === "part" && d.uris.some((u) => GENERATED_SUFFIXES.some((s) => u.endsWith(s))),
|
|
63
|
+
);
|
|
64
|
+
const exports = [];
|
|
65
|
+
if (p.ok && !generatedPart) {
|
|
66
|
+
// Dart has no `export` keyword: every top-level name is public, and a name
|
|
67
|
+
// the file itself uses (a root widget `main()` runs, a helper two
|
|
68
|
+
// functions call) is over-public, not dead. So a name is a candidate only
|
|
69
|
+
// when nothing OUTSIDE its own declaration mentions it either.
|
|
70
|
+
const total = new Map();
|
|
71
|
+
for (const t of p.toks) if (t.k === "id") total.set(t.s, (total.get(t.s) ?? 0) + 1);
|
|
72
|
+
const usedOutside = (d, name) => {
|
|
73
|
+
if (p.interp.has(name)) return true;
|
|
74
|
+
let inside = 0;
|
|
75
|
+
for (let i = d.hs; i <= d.end; i++) if (p.toks[i].k === "id" && p.toks[i].s === name) inside++;
|
|
76
|
+
return (total.get(name) ?? 0) > inside;
|
|
77
|
+
};
|
|
78
|
+
for (const d of p.decls) {
|
|
79
|
+
if (!d.top || d.scope !== "") continue;
|
|
80
|
+
if (d.kind === "extension" || d.kind === "typedef") continue;
|
|
81
|
+
if (d.notes.some((n) => n === "pragma")) continue;
|
|
82
|
+
for (const name of [d.name, ...(d.extra ?? [])]) {
|
|
83
|
+
if (!name || name.startsWith("_") || name === "main" || name.startsWith("$")) continue;
|
|
84
|
+
if (usedOutside(d, name)) continue;
|
|
85
|
+
if (!exports.includes(name)) exports.push(name);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return { identifiers, exports };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ── minhash (the same seeded permutations as lang/typescript-ast.mjs) ───────
|
|
93
|
+
|
|
94
|
+
const COEFF_CACHE = new Map();
|
|
95
|
+
function coefficients(n) {
|
|
96
|
+
const hit = COEFF_CACHE.get(n);
|
|
97
|
+
if (hit) return hit;
|
|
98
|
+
const a = new Int32Array(n);
|
|
99
|
+
const b = new Int32Array(n);
|
|
100
|
+
let x = 0x9e3779b9;
|
|
101
|
+
const next = () => (x = (Math.imul(x, 1664525) + 1013904223) >>> 0);
|
|
102
|
+
for (let i = 0; i < n; i++) {
|
|
103
|
+
a[i] = next() | 1;
|
|
104
|
+
b[i] = next();
|
|
105
|
+
}
|
|
106
|
+
const c = { a, b };
|
|
107
|
+
COEFF_CACHE.set(n, c);
|
|
108
|
+
return c;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function signature(tokens, from, to, shingle, hashes) {
|
|
112
|
+
if (to - from < shingle) return null;
|
|
113
|
+
const { a, b } = coefficients(hashes);
|
|
114
|
+
const sig = new Int32Array(hashes).fill(-1);
|
|
115
|
+
let any = false;
|
|
116
|
+
for (let i = from; i + shingle <= to; i++) {
|
|
117
|
+
let h = 0x811c9dc5;
|
|
118
|
+
for (let j = 0; j < shingle; j++) {
|
|
119
|
+
const t = tokens[i + j];
|
|
120
|
+
for (let k = 0; k < t.length; k++) {
|
|
121
|
+
h ^= t.charCodeAt(k);
|
|
122
|
+
h = Math.imul(h, 0x01000193);
|
|
123
|
+
}
|
|
124
|
+
h ^= 0x2f;
|
|
125
|
+
h = Math.imul(h, 0x01000193);
|
|
126
|
+
}
|
|
127
|
+
h >>>= 0;
|
|
128
|
+
any = true;
|
|
129
|
+
for (let k = 0; k < hashes; k++) {
|
|
130
|
+
const v = (Math.imul(a[k], h) + b[k]) >>> 0;
|
|
131
|
+
if (v < (sig[k] >>> 0)) sig[k] = v | 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return any ? sig : null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function blocksOf(file, params) {
|
|
138
|
+
const key = `${file.oid ?? contentKey(file.text)}|${params.minLines},${params.shingle},${params.hashes}`;
|
|
139
|
+
const hit = BLOCK_CACHE.get(key);
|
|
140
|
+
if (hit) return hit;
|
|
141
|
+
const out = [];
|
|
142
|
+
const p = parseOf(file);
|
|
143
|
+
if (p.ok) {
|
|
144
|
+
const text = file.text;
|
|
145
|
+
const stream = p.toks.map((t) => (t.k === "str" ? "S" : t.s));
|
|
146
|
+
const starts = [0];
|
|
147
|
+
for (let i = 0; i < text.length; i++) if (text.charCodeAt(i) === 10) starts.push(i + 1);
|
|
148
|
+
const lineOf = (pos) => {
|
|
149
|
+
let lo = 0;
|
|
150
|
+
let hi = starts.length - 1;
|
|
151
|
+
while (lo < hi) {
|
|
152
|
+
const mid = (lo + hi + 1) >> 1;
|
|
153
|
+
if (starts[mid] <= pos) lo = mid;
|
|
154
|
+
else hi = mid - 1;
|
|
155
|
+
}
|
|
156
|
+
return lo;
|
|
157
|
+
};
|
|
158
|
+
for (const d of p.decls) {
|
|
159
|
+
if (d.kind === "class" || d.kind === "mixin" || d.kind === "enum" || d.kind === "extension" || d.kind === "typedef") continue;
|
|
160
|
+
if (!d.hasBody) continue;
|
|
161
|
+
const first = p.toks[d.hs];
|
|
162
|
+
const last = p.toks[d.end];
|
|
163
|
+
if (!first || !last) continue;
|
|
164
|
+
const from = lineOf(first.p);
|
|
165
|
+
const to = lineOf(last.e - 1);
|
|
166
|
+
if (to - from + 1 < params.minLines) continue;
|
|
167
|
+
const sig = signature(stream, d.hs, d.end + 1, params.shingle, params.hashes);
|
|
168
|
+
if (!sig) continue;
|
|
169
|
+
out.push({
|
|
170
|
+
name: d.scope ? `${d.scope}.${d.name}` : d.name,
|
|
171
|
+
line: from + 1,
|
|
172
|
+
lines: to - from + 1,
|
|
173
|
+
start: first.p,
|
|
174
|
+
end: last.e,
|
|
175
|
+
sig,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
BLOCK_CACHE.set(key, out);
|
|
180
|
+
return out;
|
|
181
|
+
}
|