@codyswann/lisa 5.14.2 → 5.14.3
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/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +5 -2
- package/all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs +14 -18
- package/all/copy-overwrite/scripts/lib/invoked-as-script.d.mts +5 -0
- package/all/copy-overwrite/scripts/lisa-commit-msg-gates.mjs +1 -1
- package/all/copy-overwrite/scripts/lisa-destructive-guard.mjs +4 -4
- package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +2 -2
- package/all/copy-overwrite/scripts/lisa-gates.mjs +61 -30
- package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +5 -3
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +2 -2
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +3 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +6 -6
- package/all/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/dist/cli/lisa-test-run.js +0 -1
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +30 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts +5 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +8 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +45 -40
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-agy/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-agy/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-agy/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-agy/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-agy/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-copilot/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-copilot/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-copilot/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-copilot/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-copilot/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-copilot/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-cursor/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-cursor/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-cursor/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-cursor/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-cursor/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-cursor/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-devin/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-devin/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-devin/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-devin/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-devin/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-devin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/scripts/wiki-status.mjs +18 -0
- package/plugins/src/base/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/src/base/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/src/base/scripts/design-intake-gate.mjs +23 -5
- package/plugins/src/base/scripts/design-source-gate.mjs +5 -5
- package/plugins/src/base/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/src/base/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/src/base/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/src/base/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/src/wiki/scripts/wiki-status.mjs +18 -0
- package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/scripts/check-typecheck-tests.mjs +37 -115
- package/scripts/check-whole-output-guards.mjs +12 -2
- package/scripts/generate-nightly-e2e-guard-certificate.mjs +6 -0
- package/scripts/lib/dependency-tree.mjs +7 -11
- package/scripts/lib/invoked-as-script.d.mts +5 -0
- package/scripts/lisa-ruleset-payload.mjs +1 -1
- package/scripts/measure-tmpdir-growth.mjs +21 -2
- package/scripts/reconcile-release-tags.mjs +3 -3
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +1 -1
- package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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:
|
|
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
|
|
351
|
+
* @param {{ bound: readonly BoundObservation[], literal: readonly LiteralObservation[] }} observed - Observations.
|
|
334
352
|
* @param {string} component - Human name of the subtree being implemented.
|
|
335
|
-
* @returns {
|
|
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
|
|
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 {
|
|
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);
|