waterplane 0.1.22 → 0.1.25

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.
Files changed (144) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/SECURITY.md +1 -1
  3. package/node_modules/@waterplane/shared/dist/healthindex/commits.d.ts +1 -1
  4. package/node_modules/@waterplane/shared/dist/healthindex/commits.js +2 -2
  5. package/node_modules/@waterplane/shared/dist/healthindex/commits.js.map +1 -1
  6. package/node_modules/@waterplane/shared/dist/healthindex/coverage.d.ts +128 -0
  7. package/node_modules/@waterplane/shared/dist/healthindex/coverage.js +343 -0
  8. package/node_modules/@waterplane/shared/dist/healthindex/coverage.js.map +1 -0
  9. package/node_modules/@waterplane/shared/dist/healthindex/readings.d.ts +9 -1
  10. package/node_modules/@waterplane/shared/dist/healthindex/readings.js +122 -4
  11. package/node_modules/@waterplane/shared/dist/healthindex/readings.js.map +1 -1
  12. package/node_modules/@waterplane/shared/dist/healthindex/repoindex.d.ts +5 -0
  13. package/node_modules/@waterplane/shared/dist/healthindex/repoindex.js +2 -0
  14. package/node_modules/@waterplane/shared/dist/healthindex/repoindex.js.map +1 -1
  15. package/node_modules/@waterplane/shared/dist/healthindex/score.d.ts +3 -0
  16. package/node_modules/@waterplane/shared/dist/healthindex/score.js +52 -16
  17. package/node_modules/@waterplane/shared/dist/healthindex/score.js.map +1 -1
  18. package/node_modules/@waterplane/shared/dist/healthindex/types.d.ts +82 -6
  19. package/node_modules/@waterplane/shared/dist/healthindex/types.js +35 -2
  20. package/node_modules/@waterplane/shared/dist/healthindex/types.js.map +1 -1
  21. package/node_modules/@waterplane/shared/dist/healthindex/words.js +65 -6
  22. package/node_modules/@waterplane/shared/dist/healthindex/words.js.map +1 -1
  23. package/node_modules/@waterplane/shared/dist/healthindex.d.ts +21 -7
  24. package/node_modules/@waterplane/shared/dist/healthindex.js +20 -7
  25. package/node_modules/@waterplane/shared/dist/healthindex.js.map +1 -1
  26. package/node_modules/@waterplane/shared/dist/healthindexresponse.js +3 -2
  27. package/node_modules/@waterplane/shared/dist/healthindexresponse.js.map +1 -1
  28. package/node_modules/@waterplane/shared/dist/healthspend.js +1 -1
  29. package/node_modules/@waterplane/shared/dist/hints.js +9 -0
  30. package/node_modules/@waterplane/shared/dist/hints.js.map +1 -1
  31. package/node_modules/@waterplane/shared/dist/index.d.ts +2 -0
  32. package/node_modules/@waterplane/shared/dist/index.js +2 -0
  33. package/node_modules/@waterplane/shared/dist/index.js.map +1 -1
  34. package/node_modules/@waterplane/shared/dist/intent/kind.d.ts +45 -1
  35. package/node_modules/@waterplane/shared/dist/intent/kind.js +60 -2
  36. package/node_modules/@waterplane/shared/dist/intent/kind.js.map +1 -1
  37. package/node_modules/@waterplane/shared/dist/intent.d.ts +1 -1
  38. package/node_modules/@waterplane/shared/dist/intent.js +1 -1
  39. package/node_modules/@waterplane/shared/dist/intent.js.map +1 -1
  40. package/node_modules/@waterplane/shared/dist/repohealth.d.ts +178 -0
  41. package/node_modules/@waterplane/shared/dist/repohealth.js.map +1 -1
  42. package/node_modules/@waterplane/shared/dist/repohealthhabits.d.ts +15 -0
  43. package/node_modules/@waterplane/shared/dist/repohealthhabits.js +117 -0
  44. package/node_modules/@waterplane/shared/dist/repohealthhabits.js.map +1 -0
  45. package/node_modules/@waterplane/shared/dist/repohealthnative.d.ts +10 -0
  46. package/node_modules/@waterplane/shared/dist/repohealthnative.js +94 -0
  47. package/node_modules/@waterplane/shared/dist/repohealthnative.js.map +1 -0
  48. package/node_modules/@waterplane/shared/dist/repohealthread.js +23 -1
  49. package/node_modules/@waterplane/shared/dist/repohealthread.js.map +1 -1
  50. package/node_modules/@waterplane/shared/dist/wire/agentreadings.d.ts +104 -0
  51. package/node_modules/@waterplane/shared/dist/wire/agentreadings.js +7 -0
  52. package/node_modules/@waterplane/shared/dist/wire/agentreadings.js.map +1 -0
  53. package/node_modules/@waterplane/shared/dist/wire/notify.d.ts +6 -1
  54. package/node_modules/@waterplane/shared/dist/wire/notify.js +6 -1
  55. package/node_modules/@waterplane/shared/dist/wire/notify.js.map +1 -1
  56. package/node_modules/@waterplane/shared/dist/wire/repo.d.ts +1 -1
  57. package/npm-shrinkwrap.json +2 -2
  58. package/package.json +1 -1
  59. package/packages/extensions/android-apps/waterplane-plugin.json +4 -1
  60. package/packages/extensions/copilot-usage/waterplane-plugin.json +7 -2
  61. package/packages/extensions/desktop/waterplane-plugin.json +5 -0
  62. package/packages/extensions/ocr/waterplane-plugin.json +5 -1
  63. package/packages/extensions/requirements/waterplane-plugin.json +3 -3
  64. package/packages/extensions/scorecard/waterplane-plugin.json +2 -1
  65. package/packages/extensions/token-stats/waterplane-plugin.json +4 -3
  66. package/packages/host/dist/agentclass.d.ts +105 -0
  67. package/packages/host/dist/agentclass.js +189 -0
  68. package/packages/host/dist/agentclass.js.map +1 -0
  69. package/packages/host/dist/agentintents.d.ts +18 -0
  70. package/packages/host/dist/agentintents.js +40 -7
  71. package/packages/host/dist/agentintents.js.map +1 -1
  72. package/packages/host/dist/agentreadings.d.ts +40 -0
  73. package/packages/host/dist/agentreadings.js +254 -0
  74. package/packages/host/dist/agentreadings.js.map +1 -0
  75. package/packages/host/dist/agentscan.d.ts +8 -0
  76. package/packages/host/dist/agentscan.js +329 -0
  77. package/packages/host/dist/agentscan.js.map +1 -0
  78. package/packages/host/dist/backends/index.js +12 -1
  79. package/packages/host/dist/backends/index.js.map +1 -1
  80. package/packages/host/dist/binguard.d.ts +13 -1
  81. package/packages/host/dist/binguard.js +28 -2
  82. package/packages/host/dist/binguard.js.map +1 -1
  83. package/packages/host/dist/exposure.d.ts +10 -0
  84. package/packages/host/dist/exposure.js +25 -0
  85. package/packages/host/dist/exposure.js.map +1 -1
  86. package/packages/host/dist/plugins/pluginassets.d.ts +17 -0
  87. package/packages/host/dist/plugins/pluginassets.js +27 -1
  88. package/packages/host/dist/plugins/pluginassets.js.map +1 -1
  89. package/packages/host/dist/plugins/pluginregistry.d.ts +3 -1
  90. package/packages/host/dist/plugins/pluginregistry.js +8 -1
  91. package/packages/host/dist/plugins/pluginregistry.js.map +1 -1
  92. package/packages/host/dist/reposkilltext.d.ts +2 -0
  93. package/packages/host/dist/reposkilltext.js +8 -2
  94. package/packages/host/dist/reposkilltext.js.map +1 -1
  95. package/packages/host/dist/routes/apirepowork.js +13 -0
  96. package/packages/host/dist/routes/apirepowork.js.map +1 -1
  97. package/packages/host/dist/routes/apisystem.js +17 -1
  98. package/packages/host/dist/routes/apisystem.js.map +1 -1
  99. package/packages/host/dist/routes/apitable.d.ts +4 -0
  100. package/packages/host/dist/routes/apitable.js.map +1 -1
  101. package/packages/host/dist/server/http.js +2 -1
  102. package/packages/host/dist/server/http.js.map +1 -1
  103. package/packages/host/dist/server/intentDeps.js +14 -1
  104. package/packages/host/dist/server/intentDeps.js.map +1 -1
  105. package/packages/host/dist/sessions/tmux.js +6 -1
  106. package/packages/host/dist/sessions/tmux.js.map +1 -1
  107. package/packages/host/dist/weekburn.js +7 -5
  108. package/packages/host/dist/weekburn.js.map +1 -1
  109. package/packages/web/dist/assets/demo-mKJo0QVO.js +26 -0
  110. package/packages/web/dist/assets/index-B6f7Lcp1.js +170 -0
  111. package/packages/web/dist/assets/index-DQIK94fc.css +1 -0
  112. package/packages/web/dist/assets/shared-Cd69oxHd.js +51 -0
  113. package/packages/web/dist/assets/sheets-BImsk1_Y.js +256 -0
  114. package/packages/web/dist/build-id.txt +1 -1
  115. package/packages/web/dist/buildstamp.json +1 -1
  116. package/packages/web/dist/index.html +5 -5
  117. package/packages/web/dist/sw.js +2 -2
  118. package/release.json +3 -3
  119. package/tools/repohealth/constants.mjs +34 -1
  120. package/tools/repohealth/fixture.json +5374 -38
  121. package/tools/repohealth/git.mjs +77 -0
  122. package/tools/repohealth/lang/dart-analyze.mjs +181 -0
  123. package/tools/repohealth/lang/dart-lex.mjs +494 -0
  124. package/tools/repohealth/lang/dart-resolve.mjs +95 -0
  125. package/tools/repohealth/lang/python-ast.mjs +602 -0
  126. package/tools/repohealth/lang/python-resolve.mjs +228 -0
  127. package/tools/repohealth/metrics/habits.mjs +286 -0
  128. package/tools/repohealth/metrics/native.mjs +542 -0
  129. package/tools/repohealth/metrics/untested.mjs +20 -8
  130. package/tools/repohealth/metrics/workspace.mjs +256 -0
  131. package/tools/repohealth/own.mjs +67 -5
  132. package/tools/repohealth/packs/dart.mjs +153 -85
  133. package/tools/repohealth/packs/python.mjs +51 -14
  134. package/tools/repohealth/plot.mjs +143 -1
  135. package/tools/repohealth/reach.mjs +98 -0
  136. package/tools/repohealth/scope.mjs +14 -1
  137. package/tools/repohealth/series.mjs +5 -0
  138. package/tools/repohealth/types.mjs +4 -0
  139. package/tools/repohealth.mjs +39 -5
  140. package/packages/web/dist/assets/demo-ad3g3HDa.js +0 -26
  141. package/packages/web/dist/assets/index-BllRvpkw.js +0 -170
  142. package/packages/web/dist/assets/index-DUiYLEts.css +0 -1
  143. package/packages/web/dist/assets/shared-DBaaGttP.js +0 -51
  144. package/packages/web/dist/assets/sheets-CrfRr6Um.js +0 -256
@@ -1 +1 @@
1
- 7eff87255849e0e7
1
+ badec0cb56e5950b
@@ -1 +1 @@
1
- {"version":"0.1.22","sha":"8a4d441","at":1794233634715}
1
+ {"version":"0.1.25","sha":"adaa4c3","at":1794335589064}
@@ -65,18 +65,18 @@
65
65
  <link rel="icon" type="image/png" sizes="192x192" href="/assets/icon-192.png" />
66
66
  <link rel="apple-touch-icon" href="/assets/apple-touch-icon.png" />
67
67
  <title>waterplane</title>
68
- <script type="module" crossorigin src="/assets/index-BllRvpkw.js"></script>
69
- <link rel="modulepreload" crossorigin href="/assets/shared-DBaaGttP.js">
70
- <link rel="modulepreload" crossorigin href="/assets/demo-ad3g3HDa.js">
68
+ <script type="module" crossorigin src="/assets/index-B6f7Lcp1.js"></script>
69
+ <link rel="modulepreload" crossorigin href="/assets/shared-Cd69oxHd.js">
70
+ <link rel="modulepreload" crossorigin href="/assets/demo-mKJo0QVO.js">
71
71
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-4tVxZq34.js">
72
72
  <link rel="modulepreload" crossorigin href="/assets/react-CjmvHigY.js">
73
73
  <link rel="modulepreload" crossorigin href="/assets/icons-D8RlmSLR.js">
74
74
  <link rel="modulepreload" crossorigin href="/assets/vendor-BPwPmufs.js">
75
- <link rel="modulepreload" crossorigin href="/assets/sheets-CrfRr6Um.js">
75
+ <link rel="modulepreload" crossorigin href="/assets/sheets-BImsk1_Y.js">
76
76
  <link rel="modulepreload" crossorigin href="/assets/xterm-BHsKrDzh.js">
77
77
  <link rel="stylesheet" crossorigin href="/assets/sheets-DoUhPGK0.css">
78
78
  <link rel="stylesheet" crossorigin href="/assets/xterm-BrP-ENHg.css">
79
- <link rel="stylesheet" crossorigin href="/assets/index-DUiYLEts.css">
79
+ <link rel="stylesheet" crossorigin href="/assets/index-DQIK94fc.css">
80
80
  </head>
81
81
  <body>
82
82
  <div id="root"></div>
@@ -5,7 +5,7 @@
5
5
  // over Tailscale to a possibly-asleep host, could take seconds).
6
6
  //
7
7
  // Freshness comes from the build, NOT from network-first: SHELL is versioned per
8
- // build (7eff87255849e0e7 is replaced at build time, see vite.config.ts). A new build
8
+ // build (badec0cb56e5950b is replaced at build time, see vite.config.ts). A new build
9
9
  // → a new cache name → old caches purged on activate → a new SW that, on taking
10
10
  // control, reloads the page (see main.tsx). So within one build generation the
11
11
  // cached index.html and the hashed assets it references are always a consistent
@@ -21,7 +21,7 @@ const BRAND_NAME = "waterplane";
21
21
  /** Every older brand's slug, newest first — only so its pulls cache survives
22
22
  * the purge until the page has copied it (web/src/boot/brandMigrate.ts). */
23
23
  const LEGACY_SLUGS = "usmc".split(",").filter(Boolean);
24
- const SHELL = `${BRAND_SLUG}-shell-7eff87255849e0e7`;
24
+ const SHELL = `${BRAND_SLUG}-shell-badec0cb56e5950b`;
25
25
 
26
26
  // Image thumbnails, cached across builds. The name is deliberately NOT
27
27
  // build-hashed: a deploy changes the app bundle, not the pictures, and wiping
package/release.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "waterplane",
3
- "version": "0.1.22",
4
- "commit": "8a4d441e16a4cd37383b007ce1db3a122117b42c",
5
- "builtAt": "2026-11-09T14:13:55.029Z",
3
+ "version": "0.1.25",
4
+ "commit": "adaa4c374107d6f781e3daa53d4eb75080c7d063",
5
+ "builtAt": "2026-11-10T18:33:09.353Z",
6
6
  "node": "24.22.1",
7
7
  "protocolVersion": 2,
8
8
  "builtins": {
@@ -149,8 +149,22 @@
149
149
  * `graphImports`, which resolves `tsconfig` aliases and workspace packages).
150
150
  * No existing field moves, but rows written before it carry no `graph`, so a
151
151
  * series on disk is re-measured, never continued.
152
+ *
153
+ * `2026-11-09a` adds two row families, `habits` (fix-after-change, deletion
154
+ * ratio, net-negative commits, tests changed with code, commit size, hotspots;
155
+ * `metrics/habits.mjs`) and `workspace` (tracked litter and docs drift, read at
156
+ * the newest commit only; `metrics/workspace.mjs`), plus `untested` passing the
157
+ * pack's graph context to `imports()`. The pack halves move with it: `dart@2`
158
+ * (graph, test reach, clones, dead exports) and `python@4` (analyzer, graph).
159
+ * One bump for all of them, so a series on disk is re-measured once.
160
+ *
161
+ * `2026-11-09b` adds the row family `native` (`metrics/native.mjs`): what the
162
+ * repo's own installed tools say at the newest commit only — vulnerable
163
+ * dependencies, analyzer findings per 1,000 lines, type-strictness facts and
164
+ * coverage files already on disk. Older rows hold its "newest commit only"
165
+ * reason. No existing field moves.
152
166
  */
153
- export const PREREG_VERSION = "2026-10-30a";
167
+ export const PREREG_VERSION = "2026-11-09b";
154
168
 
155
169
  export const PREREG = Object.freeze({
156
170
  // ── what counts as source ────────────────────────────────────────────────
@@ -272,6 +286,25 @@ export const PREREG = Object.freeze({
272
286
  * bursts and a quarter-long window averages them away.
273
287
  */
274
288
  COCHANGE_WINDOW_DAYS: 14,
289
+
290
+ // ── universal git readings (`metrics/habits.mjs`, `metrics/workspace.mjs`) ─
291
+ /**
292
+ * The trailing window every habit reading is taken over. Four weeks, not
293
+ * the two the re-touch window uses: these are RATES OF COMMITS (a fix
294
+ * share, a test share, a net-negative share) and a fortnight in this
295
+ * repo's bursts can hold under ten commits. Pinned before any value was
296
+ * seen; a thin window is carried by its denominator, as `retouch` does,
297
+ * never cut by a threshold.
298
+ */
299
+ HABITS_WINDOW_DAYS: 28,
300
+ /** A fix counts as "after a change" when a DIFFERENT commit changed one of
301
+ * its files within this many days before it. */
302
+ FIX_AFTER_DAYS: 7,
303
+ /** Entries named in the hotspot, litter and docs-drift lists. */
304
+ HABITS_LIST_N: 10,
305
+ /** The docs-drift reading reads every markdown blob at HEAD; past this
306
+ * many it is absent with that reason rather than slow. */
307
+ DOCS_MAX_FILES: 3000,
275
308
  /**
276
309
  * Co-change is counted within one SOURCE GROUP. A commit that touches
277
310
  * shared and web together is the build order of a monorepo, not evidence