@codyswann/lisa 5.14.2 → 6.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.
Files changed (240) hide show
  1. package/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +5 -2
  2. package/all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs +14 -18
  3. package/all/copy-overwrite/scripts/lib/invoked-as-script.d.mts +5 -0
  4. package/all/copy-overwrite/scripts/lisa-commit-msg-gates.mjs +1 -1
  5. package/all/copy-overwrite/scripts/lisa-destructive-guard.mjs +4 -4
  6. package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +2 -2
  7. package/all/copy-overwrite/scripts/lisa-gates.mjs +61 -30
  8. package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +5 -3
  9. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +2 -2
  10. package/all/copy-overwrite/scripts/lisa-work-item.mjs +3 -2
  11. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +6 -6
  12. package/all/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
  13. package/cdk/copy-overwrite/eslint.cdk.ts +7 -161
  14. package/cdk/copy-overwrite/tsconfig.eslint.json +5 -1
  15. package/dist/cli/lisa-test-run.js +0 -1
  16. package/dist/cli/lisa-test-run.js.map +1 -1
  17. package/dist/configs/jest/base.d.ts +2 -2
  18. package/dist/configs/jest/index.d.ts +5 -6
  19. package/dist/configs/jest/index.d.ts.map +1 -1
  20. package/dist/configs/jest/index.js +5 -6
  21. package/dist/configs/jest/index.js.map +1 -1
  22. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  23. package/dist/core/lisa-owned-hash-ledger.js +30 -0
  24. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  25. package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts +5 -0
  26. package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts.map +1 -1
  27. package/dist/core/nightly-e2e-guard-behavior-certificate.js +8 -1
  28. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  29. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  30. package/dist/core/upstream-evidence-manifest.js +61 -55
  31. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  32. package/expo/copy-overwrite/eslint.expo.ts +17 -18
  33. package/expo/copy-overwrite/tsconfig.eslint.json +5 -1
  34. package/harper-fabric/copy-overwrite/tsconfig.eslint.json +5 -1
  35. package/nestjs/copy-overwrite/eslint.nestjs.ts +7 -161
  36. package/nestjs/copy-overwrite/tsconfig.eslint.json +5 -1
  37. package/nestjs/copy-overwrite/tsconfig.spec.json +2 -3
  38. package/package.json +6 -8
  39. package/phaser/copy-overwrite/tsconfig.eslint.json +5 -1
  40. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa/.codex-plugin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  43. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  44. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  45. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  46. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  47. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  48. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  49. package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  50. package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  51. package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  52. package/plugins/lisa/hooks/threshold-ratchet-families.mjs +0 -8
  53. package/plugins/lisa/scripts/design-bindings-probe.mjs +37 -8
  54. package/plugins/lisa/scripts/design-intake-gate.mjs +23 -5
  55. package/plugins/lisa/scripts/design-source-gate.mjs +5 -5
  56. package/plugins/lisa/scripts/lifecycle-label-trust.mjs +1 -1
  57. package/plugins/lisa/scripts/rollup-blocker-classification.mjs +41 -4
  58. package/plugins/lisa/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  59. package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  60. package/plugins/lisa/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  61. package/plugins/lisa/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  62. package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  63. package/plugins/lisa/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  64. package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  65. package/plugins/lisa/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  66. package/plugins/lisa/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  67. package/plugins/lisa/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  68. package/plugins/lisa-agy/plugin.json +1 -1
  69. package/plugins/lisa-agy/scripts/design-bindings-probe.mjs +37 -8
  70. package/plugins/lisa-agy/scripts/design-intake-gate.mjs +23 -5
  71. package/plugins/lisa-agy/scripts/design-source-gate.mjs +5 -5
  72. package/plugins/lisa-agy/scripts/lifecycle-label-trust.mjs +1 -1
  73. package/plugins/lisa-agy/scripts/rollup-blocker-classification.mjs +41 -4
  74. package/plugins/lisa-agy/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  75. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  76. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  77. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  78. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  79. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  80. package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  81. package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  82. package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  83. package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  84. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  86. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  87. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  91. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +0 -8
  93. package/plugins/lisa-copilot/scripts/design-bindings-probe.mjs +37 -8
  94. package/plugins/lisa-copilot/scripts/design-intake-gate.mjs +23 -5
  95. package/plugins/lisa-copilot/scripts/design-source-gate.mjs +5 -5
  96. package/plugins/lisa-copilot/scripts/lifecycle-label-trust.mjs +1 -1
  97. package/plugins/lisa-copilot/scripts/rollup-blocker-classification.mjs +41 -4
  98. package/plugins/lisa-copilot/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  99. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  100. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  101. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  102. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  103. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  104. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  105. package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  106. package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  107. package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  108. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +0 -8
  110. package/plugins/lisa-cursor/scripts/design-bindings-probe.mjs +37 -8
  111. package/plugins/lisa-cursor/scripts/design-intake-gate.mjs +23 -5
  112. package/plugins/lisa-cursor/scripts/design-source-gate.mjs +5 -5
  113. package/plugins/lisa-cursor/scripts/lifecycle-label-trust.mjs +1 -1
  114. package/plugins/lisa-cursor/scripts/rollup-blocker-classification.mjs +41 -4
  115. package/plugins/lisa-cursor/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  116. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  117. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  118. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  119. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  120. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  121. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  122. package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  123. package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  124. package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  125. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  127. package/plugins/lisa-devin/hooks/threshold-ratchet-families.mjs +0 -8
  128. package/plugins/lisa-devin/scripts/design-bindings-probe.mjs +37 -8
  129. package/plugins/lisa-devin/scripts/design-intake-gate.mjs +23 -5
  130. package/plugins/lisa-devin/scripts/design-source-gate.mjs +5 -5
  131. package/plugins/lisa-devin/scripts/lifecycle-label-trust.mjs +1 -1
  132. package/plugins/lisa-devin/scripts/rollup-blocker-classification.mjs +41 -4
  133. package/plugins/lisa-devin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  134. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  135. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  136. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  137. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  138. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  139. package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  140. package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  141. package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  142. package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  143. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  144. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  145. package/plugins/lisa-expo-agy/plugin.json +1 -1
  146. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  148. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  149. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  150. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  151. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  152. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  153. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  155. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  157. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  159. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  160. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  164. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  165. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  166. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  167. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  168. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  169. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  171. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  172. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  173. package/plugins/lisa-rails-agy/plugin.json +1 -1
  174. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  175. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  176. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  177. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  178. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  179. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  180. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  181. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  182. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  183. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  184. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  185. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  186. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  187. package/plugins/lisa-wiki/scripts/wiki-status.mjs +18 -0
  188. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  189. package/plugins/lisa-wiki-agy/scripts/wiki-status.mjs +18 -0
  190. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  191. package/plugins/lisa-wiki-copilot/scripts/wiki-status.mjs +18 -0
  192. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  193. package/plugins/lisa-wiki-cursor/scripts/wiki-status.mjs +18 -0
  194. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  195. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  196. package/plugins/lisa-wiki-devin/scripts/wiki-status.mjs +18 -0
  197. package/plugins/src/base/hooks/threshold-ratchet-families.mjs +0 -8
  198. package/plugins/src/base/scripts/design-bindings-probe.mjs +37 -8
  199. package/plugins/src/base/scripts/design-intake-gate.mjs +23 -5
  200. package/plugins/src/base/scripts/design-source-gate.mjs +5 -5
  201. package/plugins/src/base/scripts/lifecycle-label-trust.mjs +1 -1
  202. package/plugins/src/base/scripts/rollup-blocker-classification.mjs +41 -4
  203. package/plugins/src/base/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
  204. package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
  205. package/plugins/src/base/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
  206. package/plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
  207. package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
  208. package/plugins/src/base/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
  209. package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
  210. package/plugins/src/base/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
  211. package/plugins/src/base/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
  212. package/plugins/src/base/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
  213. package/plugins/src/wiki/scripts/wiki-status.mjs +18 -0
  214. package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
  215. package/scripts/check-learnings-budget.ts +4 -4
  216. package/scripts/check-typecheck-tests.mjs +119 -129
  217. package/scripts/check-whole-output-guards.mjs +12 -2
  218. package/scripts/generate-nightly-e2e-guard-certificate.mjs +6 -0
  219. package/scripts/lib/dependency-tree.mjs +7 -11
  220. package/scripts/lib/invoked-as-script.d.mts +5 -0
  221. package/scripts/lisa-ruleset-payload.mjs +1 -1
  222. package/scripts/measure-tmpdir-growth.mjs +21 -2
  223. package/scripts/reconcile-release-tags.mjs +3 -3
  224. package/scripts/two-channel-couplings.json +1 -1
  225. package/scripts/update-node-version.ts +1 -1
  226. package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +1 -1
  227. package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
  228. package/typescript/copy-overwrite/tsconfig.eslint.json +5 -1
  229. package/dist/configs/jest/cdk.d.ts +0 -33
  230. package/dist/configs/jest/cdk.d.ts.map +0 -1
  231. package/dist/configs/jest/cdk.js +0 -29
  232. package/dist/configs/jest/cdk.js.map +0 -1
  233. package/dist/configs/jest/nestjs.d.ts +0 -36
  234. package/dist/configs/jest/nestjs.d.ts.map +0 -1
  235. package/dist/configs/jest/nestjs.js +0 -49
  236. package/dist/configs/jest/nestjs.js.map +0 -1
  237. package/dist/configs/jest/typescript.d.ts +0 -29
  238. package/dist/configs/jest/typescript.d.ts.map +0 -1
  239. package/dist/configs/jest/typescript.js +0 -37
  240. package/dist/configs/jest/typescript.js.map +0 -1
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
199
199
  return `Run /lisa-wiki:ingest --source ${connectorName}.`;
200
200
  }
201
201
 
202
+ /**
203
+ * Build the reader-facing freshness report for every enabled connector.
204
+ * @param {object} [options] Inputs.
205
+ * @param {string} [options.configPath] Path to the wiki config JSON.
206
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
207
+ * @param {Date} [options.now] The instant freshness is judged at.
208
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
209
+ * @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
210
+ */
202
211
  export function createWikiFreshnessReport({
203
212
  configPath = "wiki/lisa-wiki.config.json",
204
213
  wikiRoot,
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
228
237
  };
229
238
  }
230
239
 
240
+ /**
241
+ * Read each enabled connector's freshness facts from the wiki, without writing.
242
+ * @param {object} [options] Inputs.
243
+ * @param {string} [options.configPath] Path to the wiki config JSON.
244
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
245
+ * @param {Date} [options.now] The instant freshness is judged at.
246
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
247
+ * @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
248
+ */
231
249
  export function parseWikiSourceFreshness({
232
250
  configPath = "wiki/lisa-wiki.config.json",
233
251
  wikiRoot,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "5.14.2",
3
+ "version": "6.0.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
199
199
  return `Run /lisa-wiki:ingest --source ${connectorName}.`;
200
200
  }
201
201
 
202
+ /**
203
+ * Build the reader-facing freshness report for every enabled connector.
204
+ * @param {object} [options] Inputs.
205
+ * @param {string} [options.configPath] Path to the wiki config JSON.
206
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
207
+ * @param {Date} [options.now] The instant freshness is judged at.
208
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
209
+ * @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
210
+ */
202
211
  export function createWikiFreshnessReport({
203
212
  configPath = "wiki/lisa-wiki.config.json",
204
213
  wikiRoot,
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
228
237
  };
229
238
  }
230
239
 
240
+ /**
241
+ * Read each enabled connector's freshness facts from the wiki, without writing.
242
+ * @param {object} [options] Inputs.
243
+ * @param {string} [options.configPath] Path to the wiki config JSON.
244
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
245
+ * @param {Date} [options.now] The instant freshness is judged at.
246
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
247
+ * @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
248
+ */
231
249
  export function parseWikiSourceFreshness({
232
250
  configPath = "wiki/lisa-wiki.config.json",
233
251
  wikiRoot,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "5.14.2",
3
+ "version": "6.0.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
199
199
  return `Run /lisa-wiki:ingest --source ${connectorName}.`;
200
200
  }
201
201
 
202
+ /**
203
+ * Build the reader-facing freshness report for every enabled connector.
204
+ * @param {object} [options] Inputs.
205
+ * @param {string} [options.configPath] Path to the wiki config JSON.
206
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
207
+ * @param {Date} [options.now] The instant freshness is judged at.
208
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
209
+ * @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
210
+ */
202
211
  export function createWikiFreshnessReport({
203
212
  configPath = "wiki/lisa-wiki.config.json",
204
213
  wikiRoot,
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
228
237
  };
229
238
  }
230
239
 
240
+ /**
241
+ * Read each enabled connector's freshness facts from the wiki, without writing.
242
+ * @param {object} [options] Inputs.
243
+ * @param {string} [options.configPath] Path to the wiki config JSON.
244
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
245
+ * @param {Date} [options.now] The instant freshness is judged at.
246
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
247
+ * @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
248
+ */
231
249
  export function parseWikiSourceFreshness({
232
250
  configPath = "wiki/lisa-wiki.config.json",
233
251
  wikiRoot,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "5.14.2",
3
+ "version": "6.0.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
199
199
  return `Run /lisa-wiki:ingest --source ${connectorName}.`;
200
200
  }
201
201
 
202
+ /**
203
+ * Build the reader-facing freshness report for every enabled connector.
204
+ * @param {object} [options] Inputs.
205
+ * @param {string} [options.configPath] Path to the wiki config JSON.
206
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
207
+ * @param {Date} [options.now] The instant freshness is judged at.
208
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
209
+ * @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
210
+ */
202
211
  export function createWikiFreshnessReport({
203
212
  configPath = "wiki/lisa-wiki.config.json",
204
213
  wikiRoot,
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
228
237
  };
229
238
  }
230
239
 
240
+ /**
241
+ * Read each enabled connector's freshness facts from the wiki, without writing.
242
+ * @param {object} [options] Inputs.
243
+ * @param {string} [options.configPath] Path to the wiki config JSON.
244
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
245
+ * @param {Date} [options.now] The instant freshness is judged at.
246
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
247
+ * @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
248
+ */
231
249
  export function parseWikiSourceFreshness({
232
250
  configPath = "wiki/lisa-wiki.config.json",
233
251
  wikiRoot,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "5.14.2",
3
+ "version": "6.0.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "5.14.2",
3
+ "version": "6.0.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
199
199
  return `Run /lisa-wiki:ingest --source ${connectorName}.`;
200
200
  }
201
201
 
202
+ /**
203
+ * Build the reader-facing freshness report for every enabled connector.
204
+ * @param {object} [options] Inputs.
205
+ * @param {string} [options.configPath] Path to the wiki config JSON.
206
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
207
+ * @param {Date} [options.now] The instant freshness is judged at.
208
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
209
+ * @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
210
+ */
202
211
  export function createWikiFreshnessReport({
203
212
  configPath = "wiki/lisa-wiki.config.json",
204
213
  wikiRoot,
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
228
237
  };
229
238
  }
230
239
 
240
+ /**
241
+ * Read each enabled connector's freshness facts from the wiki, without writing.
242
+ * @param {object} [options] Inputs.
243
+ * @param {string} [options.configPath] Path to the wiki config JSON.
244
+ * @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
245
+ * @param {Date} [options.now] The instant freshness is judged at.
246
+ * @param {number} [options.staleAfterDays] Age at which an observation is stale.
247
+ * @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
248
+ */
231
249
  export function parseWikiSourceFreshness({
232
250
  configPath = "wiki/lisa-wiki.config.json",
233
251
  wikiRoot,
@@ -89,14 +89,6 @@ export const FAMILIES = [
89
89
  match: /(^|\/)\.lisa\.config\.json$/,
90
90
  kind: "allow-list",
91
91
  },
92
- {
93
- // The #3811 quarantine. `allow-list` is exactly right here: the list may
94
- // shrink freely, and ADDING a file — re-authorising type debt that the
95
- // gate would otherwise refuse — is the change that needs a human to see it.
96
- id: "typecheck-quarantine",
97
- match: /(^|\/)typecheck-quarantine\.json$/,
98
- kind: "allow-list",
99
- },
100
92
  {
101
93
  id: "lighthouse",
102
94
  match: /(^|\/)(?:lighthouserc-config|lighthouserc|\.lighthouserc)\.json$/,
@@ -142,6 +142,24 @@ function whereOf(node) {
142
142
  return `${node.type}:${node.name ?? ""}`.slice(0, 60);
143
143
  }
144
144
 
145
+ /**
146
+ * A style value bound to a design variable.
147
+ * @typedef {object} BoundObservation
148
+ * @property {string} axis The design axis the property belongs to.
149
+ * @property {string} property The node property.
150
+ * @property {string} where Human locator of the node.
151
+ * @property {string} id The variable id it is bound to.
152
+ */
153
+
154
+ /**
155
+ * A style value written as a literal rather than bound.
156
+ * @typedef {object} LiteralObservation
157
+ * @property {string} axis The design axis the property belongs to.
158
+ * @property {string} property The node property.
159
+ * @property {string} where Human locator of the node.
160
+ * @property {string} value The literal, as `#rrggbb` or `<n>px`.
161
+ */
162
+
145
163
  /**
146
164
  * Record every bound style value on one node.
147
165
  *
@@ -150,7 +168,7 @@ function whereOf(node) {
150
168
  * REST payload, so a padding bound to `space/0` vanishes entirely from the
151
169
  * resolved side. Reading it correctly moved one measured frame from 55% to 82%.
152
170
  * @param {object} node - A design node.
153
- * @param {object[]} bound - Accumulator.
171
+ * @param {BoundObservation[]} bound - Accumulator.
154
172
  * @returns {void}
155
173
  */
156
174
  function collectBound(node, bound) {
@@ -169,7 +187,7 @@ function collectBound(node, bound) {
169
187
  * @param {object} node - A design node.
170
188
  * @param {string} property - `fills` or `strokes`.
171
189
  * @param {number} boundCount - How many paints on this property are bound.
172
- * @param {object[]} literal - Accumulator.
190
+ * @param {LiteralObservation[]} literal - Accumulator.
173
191
  * @returns {void}
174
192
  */
175
193
  function collectLiteralPaints(node, property, boundCount, literal) {
@@ -191,7 +209,7 @@ function collectLiteralPaints(node, property, boundCount, literal) {
191
209
  * @param {object} node - A design node.
192
210
  * @param {string} property - The gated property name.
193
211
  * @param {number} boundCount - How many entries on this property are bound.
194
- * @param {object[]} literal - Accumulator.
212
+ * @param {LiteralObservation[]} literal - Accumulator.
195
213
  * @returns {void}
196
214
  */
197
215
  function collectLiteralNumbers(node, property, boundCount, literal) {
@@ -216,7 +234,7 @@ function collectLiteralNumbers(node, property, boundCount, literal) {
216
234
  /**
217
235
  * Walk a node subtree, recording every gated style value as bound or literal.
218
236
  * @param {object} root - The subtree root — the node being implemented.
219
- * @returns {{ bound: object[], literal: object[] }} Observations.
237
+ * @returns {{ bound: BoundObservation[], literal: LiteralObservation[] }} Observations.
220
238
  */
221
239
  export function collectValues(root) {
222
240
  const bound = [];
@@ -330,9 +348,9 @@ export function tokenNamer(nameMap = {}) {
330
348
  * Every literal becomes a `hardcoded-in-design` finding regardless of axis —
331
349
  * the probe reports what it saw, and the gate applies the regime. Keeping the
332
350
  * regime decision in one place is what stops the two halves from disagreeing.
333
- * @param {{ bound: readonly object[], literal: readonly object[] }} observed - Observations.
351
+ * @param {{ bound: readonly BoundObservation[], literal: readonly LiteralObservation[] }} observed - Observations.
334
352
  * @param {string} component - Human name of the subtree being implemented.
335
- * @returns {object[]} Findings.
353
+ * @returns {Array<{kind: string, axis: string, component: string, value?: string, where?: string}>} Findings.
336
354
  */
337
355
  export function toFindings(observed, component) {
338
356
  const findings = observed.literal.map(entry => ({
@@ -350,7 +368,7 @@ export function toFindings(observed, component) {
350
368
 
351
369
  /**
352
370
  * Summarise coverage per axis.
353
- * @param {{ bound: readonly object[], literal: readonly object[] }} observed - Observations.
371
+ * @param {{ bound: readonly BoundObservation[], literal: readonly LiteralObservation[] }} observed - Observations.
354
372
  * @returns {Record<string, { bound: number, literal: number, total: number, pct: number | null }>} Per-axis stats.
355
373
  */
356
374
  export function summarise(observed) {
@@ -556,7 +574,18 @@ export async function fetchNode(fileKey, nodeId, token) {
556
574
  * required?: readonly string[],
557
575
  * min?: number
558
576
  * }} input - Everything the evaluation needs.
559
- * @returns {object} The probe result.
577
+ * @returns {{
578
+ * verdict: "PASS" | "BLOCK",
579
+ * owner: "design" | "us" | null,
580
+ * failing: string[],
581
+ * summary: Record<string, { bound: number, literal: number, total: number, pct: number | null }>,
582
+ * unknownIds: string[],
583
+ * ambiguousIds: Record<string, string[]>,
584
+ * regime: Record<string, "typed" | "untyped">,
585
+ * findings: Array<{kind: string, axis: string, component: string, value?: string, where?: string}>,
586
+ * tokensUsed: string[],
587
+ * bindList: Array<{value: string, occurrences: number}>
588
+ * }} The probe result.
560
589
  */
561
590
  export function evaluateSubtree(input) {
562
591
  const observed = collectValues(input.document);
@@ -171,6 +171,24 @@ const REASONS = {
171
171
  `No one is set up to receive design questions for this project — 'design.escalation.assignee' in .lisa.config.json is empty — so anything I stopped on would sit where nobody sees it. I need that filled in before I can hand a design question to a person.`,
172
172
  };
173
173
 
174
+ /**
175
+ * One condition that stops a work item, as reported to the caller.
176
+ * @typedef {object} BlockEntry
177
+ * @property {string} condition A member of {@link BLOCK_CONDITIONS}.
178
+ * @property {string} owner Who must resolve it: `design` or `us`.
179
+ * @property {string | null} component The component it concerns, when known.
180
+ * @property {string | null} axis The design axis it concerns, when known.
181
+ * @property {string} reason The plain-language reason, for the escalation comment.
182
+ */
183
+
184
+ /**
185
+ * A value measured in an axis with no variable system, recorded rather than blocked.
186
+ * @typedef {object} DerivedEntry
187
+ * @property {string} axis The design axis measured.
188
+ * @property {string | null} component The component it was measured on.
189
+ * @property {unknown} value The measured value, or null.
190
+ */
191
+
174
192
  /**
175
193
  * Build one block entry.
176
194
  *
@@ -179,7 +197,7 @@ const REASONS = {
179
197
  * guessing in exactly the situation the condition exists to catch.
180
198
  * @param {string} condition - A member of {@link BLOCK_CONDITIONS}.
181
199
  * @param {object} finding - The finding that produced it.
182
- * @returns {{ condition: string, component: string, axis: string | null, reason: string }} Block entry.
200
+ * @returns {BlockEntry} Block entry.
183
201
  */
184
202
  function blockFor(condition, finding) {
185
203
  return {
@@ -199,7 +217,7 @@ function blockFor(condition, finding) {
199
217
  * silent permission to copy numbers out of a picture.
200
218
  * @param {object} finding - Finding with an `axis`.
201
219
  * @param {Record<string, string>} regime - Observed regime per axis.
202
- * @returns {{ block: object | null, derived: object | null }} The outcome.
220
+ * @returns {{ block: BlockEntry | null, derived: DerivedEntry | null }} The outcome.
203
221
  */
204
222
  function classifyRegimeSensitive(finding, regime) {
205
223
  const state = regime?.[finding.axis];
@@ -233,7 +251,7 @@ function classifyRegimeSensitive(finding, regime) {
233
251
  * Classify one finding.
234
252
  * @param {object} finding - The finding.
235
253
  * @param {Record<string, string>} regime - Observed regime per axis.
236
- * @returns {{ block: object | null, derived: object | null }} The outcome.
254
+ * @returns {{ block: BlockEntry | null, derived: DerivedEntry | null }} The outcome.
237
255
  */
238
256
  function classifyFinding(finding, regime) {
239
257
  const kind = finding?.kind;
@@ -277,8 +295,8 @@ function configuredString(value) {
277
295
  * owner: "design" | "us" | null,
278
296
  * assignee: string | null,
279
297
  * label: string | null,
280
- * blocks: object[],
281
- * derived: object[],
298
+ * blocks: BlockEntry[],
299
+ * derived: DerivedEntry[],
282
300
  * comment: string | null
283
301
  * }} The verdict.
284
302
  */
@@ -347,11 +347,11 @@ export const VIOLATION_STATUSES = new Set([
347
347
  * @returns {{
348
348
  * verdict: "PASS" | "FAIL" | "SKIPPED",
349
349
  * reasons: string[],
350
- * violations: object[],
351
- * exceptions: object[],
352
- * syncBackPreferred: object[],
353
- * sealed: object[],
354
- * notApplicable: object[],
350
+ * violations: { path: string, uiSurface: boolean, status: string, evidence: string | null, reason: string | null }[],
351
+ * exceptions: { path: string, uiSurface: boolean, status: string, evidence: string | null, reason: string | null }[],
352
+ * syncBackPreferred: { path: string, uiSurface: boolean, status: string, evidence: string | null, reason: string | null }[],
353
+ * sealed: { path: string, uiSurface: boolean, status: string, evidence: string | null, reason: string | null }[],
354
+ * notApplicable: { path: string, uiSurface: boolean, status: string, evidence: string | null, reason: string | null }[],
355
355
  * summary: { judged: number, sealed: number, exceptions: number, violations: number }
356
356
  * }} The gate result.
357
357
  */
@@ -253,7 +253,7 @@ export function claimedLifecycleLabel(config) {
253
253
  * the bot fix: a reflexive bot label leaves the issue claimable exactly as if
254
254
  * it were absent.
255
255
  * @param {object} options inputs
256
- * @param {readonly string[]} options.trusted labels the classifier believes
256
+ * @param {readonly string[] | undefined} [options.trusted] labels the classifier believes
257
257
  * @param {unknown} options.config a parsed `.lisa.config.json`-shaped object
258
258
  * @returns {{claimable: boolean, reason: string|null}} the verdict
259
259
  */
@@ -180,7 +180,8 @@ function openDependencies(blockedBy) {
180
180
  * labels?: unknown
181
181
  * markers?: unknown
182
182
  * blockedBy?: unknown
183
- * }} node
183
+ * [field: string]: unknown
184
+ * }} node A tracker node; fields other than these, such as its prose, are ignored.
184
185
  * @param {{ specDefect?: unknown, humanNeeded?: unknown }} [markerNames]
185
186
  * @returns {{ class: string, actor: string, signals: readonly string[] }}
186
187
  */
@@ -240,7 +241,7 @@ function childArray(children) {
240
241
  * @param {readonly string[]} path
241
242
  * @param {Set<string>} seen
242
243
  * @param {{ examined: number, unexaminable: string[] }} tally
243
- * @returns {object[]}
244
+ * @returns {RollupBlocker[]}
244
245
  */
245
246
  function collectHolds(children, context, path, seen, tally) {
246
247
  return childArray(children).flatMap(child => {
@@ -281,6 +282,42 @@ function collectHolds(children, context, path, seen, tally) {
281
282
  });
282
283
  }
283
284
 
285
+ /**
286
+ * One held item at the bottom of a chain of holds.
287
+ * @typedef {object} RollupBlocker
288
+ * @property {string} ref The held item.
289
+ * @property {string[]} path Refs from the container down to it.
290
+ * @property {string} class Its blocker class.
291
+ * @property {string} actor Who must act to clear it.
292
+ * @property {readonly string[]} signals The recorded signals that classified it.
293
+ */
294
+
295
+ /**
296
+ * A rollup whose children could be examined.
297
+ * @typedef {object} RollupClassification
298
+ * @property {true} ok Discriminator: something was examined.
299
+ * @property {{ref: string, type: string}} container The rollup itself.
300
+ * @property {"blocked" | "not-blocked"} verdict Whether anything is held.
301
+ * @property {number} examined Children examined.
302
+ * @property {RollupBlocker[]} blockers Every hold found.
303
+ * @property {Record<string, RollupBlocker[]>} byClass Holds grouped by class.
304
+ * @property {string[]} unexaminable Children that could not be read.
305
+ * @property {string} renderedState The rollup's own displayed state.
306
+ * @property {string} childTally Human summary of the counts.
307
+ */
308
+
309
+ /**
310
+ * A rollup that could not be classified, and why.
311
+ * @typedef {object} RollupFailure
312
+ * @property {false} ok Discriminator: nothing usable was examined.
313
+ * @property {{ref: string, type: string}} container The rollup itself.
314
+ * @property {"unclassified"} verdict Never an all-clear.
315
+ * @property {0} examined Nothing was examined.
316
+ * @property {string} reason One of `CLASSIFICATION_FAILURES`.
317
+ * @property {string} message The plain-language failure.
318
+ * @property {string} detail What the failure was about, or empty.
319
+ */
320
+
284
321
  /**
285
322
  * Classify every hold under a container and derive the rollup from it.
286
323
  *
@@ -298,7 +335,7 @@ function collectHolds(children, context, path, seen, tally) {
298
335
  * blockedStates?: unknown
299
336
  * markerNames?: { specDefect?: unknown, humanNeeded?: unknown }
300
337
  * }} input
301
- * @returns {object}
338
+ * @returns {RollupClassification | RollupFailure} The classified holds, or why nothing could be classified.
302
339
  */
303
340
  export function classifyRollupBlockers(input = {}) {
304
341
  const container = {
@@ -363,7 +400,7 @@ export function classifyRollupBlockers(input = {}) {
363
400
  * @param {{ ref: string, type: string }} container
364
401
  * @param {string} reason
365
402
  * @param {{ detail?: string }} [extra]
366
- * @returns {object}
403
+ * @returns {RollupFailure}
367
404
  */
368
405
  function failure(container, reason, extra = {}) {
369
406
  return {
@@ -452,7 +452,7 @@ export function satisfiedByNpm(pkg, tool) {
452
452
  /**
453
453
  * Collect every signal and subtract what the manifest already covers.
454
454
  * @param {string} [cwd] Project root.
455
- * @returns {Array<{name: string, why: string, evidence: string[]}>} Proposals.
455
+ * @returns {Array<{name: string, why: string, evidence: string[], source: "curated" | "discovered"}>} Proposals; `source` says which vocabulary the `why` came from.
456
456
  */
457
457
  export function detectTooling(cwd = process.cwd()) {
458
458
  const config = readJson(join(cwd, ".lisa.config.json"));
@@ -529,8 +529,8 @@ export function discoveredWhy(name, fromHook) {
529
529
  * keeping a Linux binary off a laptop meant excluding the tool from laptops
530
530
  * altogether — which is how `bws` and `gh` came to be required on a developer
531
531
  * machine and installable only in a container.
532
- * @param {{name: string}} proposal One detected tool.
533
- * @returns {{install: object[], require: object[]}} Manifest skeletons.
532
+ * @param {{name: string, why?: string, evidence?: string[], source?: string}} proposal One detected tool; only `name` is read.
533
+ * @returns {{install: object[], require: object[], question?: string}} Manifest skeletons, plus the question to ask when the tool has no pinnable CLI.
534
534
  */
535
535
  export function proposedEntries(proposal) {
536
536
  // Whether a binary can be proposed is a fact about the TOOL, not about how it
@@ -182,7 +182,7 @@ export function readProfiles(bundle) {
182
182
  * the installer can drop it as a unit after looking at the filesystem — which
183
183
  * this function deliberately cannot see. See `RESOLVE_ONLY_LEGACY_SOURCE_PROFILE` for why
184
184
  * that half exists at all and when it goes away.
185
- * @param {object} bundle Parsed bootstrap bundle.
185
+ * @param {object | null | undefined} bundle Parsed bootstrap bundle; absent renders nothing (null).
186
186
  * @param {string} owner Tenant these profiles belong to.
187
187
  * @returns {{credentials: string, config: string, profiles: string[], resolveOnly: {credentials: string, config: string, profiles: string[], sourceProfile: string}}|null}
188
188
  * Rendered file contents, the profile names, and the deprecated
@@ -320,7 +320,7 @@ function assertDeclaredAccount(stage, entry, roleArn) {
320
320
  * secret in the run is still valid and still needed, and a session with most of
321
321
  * its credentials beats a session with none.
322
322
  * @param {string} raw Bundle contents.
323
- * @returns {object|null} Parsed bundle, or null.
323
+ * @returns {Record<string, unknown>|null} Parsed bundle, or null.
324
324
  */
325
325
  export function parseBootstrap(raw) {
326
326
  if (typeof raw !== "string" || raw.trim() === "") return null;
@@ -31,7 +31,7 @@ import { readConfig } from "./surfaces.mjs";
31
31
  *
32
32
  * Module-level state would make the checks untestable in isolation and would
33
33
  * leak findings between runs in any process that calls them twice.
34
- * @returns {{findings: object[], report: Function}} A collector.
34
+ * @returns {{findings: Array<{level: string, name: string, message: string}>, report: (level: string, name: string, message: string) => void}} A collector.
35
35
  */
36
36
  export function collector() {
37
37
  const findings = [];
@@ -156,8 +156,9 @@ export function candidateAwsEnvironment(bundle) {
156
156
  * Captures all child output so account ids and credential metadata never reach
157
157
  * a shared log.
158
158
  * @param {{bundle: object, profiles: Array<object>}} candidate Validated bundle.
159
- * @param {(bin: string, args: string[], options: object) => string} [run]
160
- * Injectable child runner for tests.
159
+ * @param {(bin: string, args: string[], options: {encoding: "utf8", env: NodeJS.ProcessEnv, stdio: string[]}) => unknown} [run]
160
+ * Injectable child runner for tests. It always receives the isolated
161
+ * candidate environment as `options.env`; its output is ignored.
161
162
  */
162
163
  export function verifyAwsBootstrap(candidate, run = boundedChildOutput) {
163
164
  const env = candidateAwsEnvironment(candidate.bundle);
@@ -288,7 +289,7 @@ function publicationBudgetGuard(startedAt, monotonicNow) {
288
289
  * @param {object} cfg Resolved configuration.
289
290
  * @param {{id: string, projectId: string|null}} target Target provider entry.
290
291
  * @param {object} [operations] Injectable provider operations for tests.
291
- * @returns {object} The winning coordination row.
292
+ * @returns {{id: string, key: string}} The winning coordination row: the provider's raw row, whose `id` and lock `key` were both validated.
292
293
  */
293
294
  export function acquirePublicationLock(cfg, target, operations = {}) {
294
295
  if (!target.projectId) {
@@ -158,7 +158,7 @@ export function assertValue(name, value) {
158
158
  * the ambiguity is resolved once, here, rather than at each call site. Anything
159
159
  * else is refused outright: a target is interpolated into an API path, and a
160
160
  * silently mis-parsed one would push a credential somewhere nobody named.
161
- * @param {string} raw Target as typed.
161
+ * @param {string | undefined} raw Target as typed; absent is refused like any malformed target.
162
162
  * @returns {{kind: string, slug: string, listPath: string, scopeArgs: string[]}} Parsed target.
163
163
  */
164
164
  export function parseTarget(raw) {
@@ -37,7 +37,7 @@ import { TOOL_LINE } from "./note-format.mjs";
37
37
  * Unknown names are dropped rather than reported as an error: a note naming a
38
38
  * CLI this version of Lisa does not ship is a request from the future, not a
39
39
  * broken environment, and failing setup over it would be a poor trade.
40
- * @param {Record<string, string>} notes Note text by secret name.
40
+ * @param {Record<string, unknown> | null | undefined} notes Note text by secret name; absent notes and non-string values contribute nothing.
41
41
  * @param {string[]} known Tool names Lisa can install.
42
42
  * @returns {string[]} Known tool names, deduplicated, in catalogue order.
43
43
  */
@@ -200,9 +200,9 @@ export function currentPlatform(runtime = process) {
200
200
  *
201
201
  * A flat entry is still valid and means "identical everywhere" — true of every
202
202
  * `npm-global` install, which is genuinely platform-independent.
203
- * @param {object} tool Manifest entry.
203
+ * @param {{[field: string]: unknown, name?: unknown, platforms?: unknown}} tool Manifest entry.
204
204
  * @param {string} [platform] Platform key to resolve for.
205
- * @returns {object} The entry with its platform block merged in.
205
+ * @returns {Record<string, unknown>} The entry with its platform block merged in.
206
206
  */
207
207
  export function resolvePlatform(tool, platform = currentPlatform()) {
208
208
  const { platforms } = tool;