@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.
- 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/cdk/copy-overwrite/eslint.cdk.ts +7 -161
- package/cdk/copy-overwrite/tsconfig.eslint.json +5 -1
- package/dist/cli/lisa-test-run.js +0 -1
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/configs/jest/base.d.ts +2 -2
- package/dist/configs/jest/index.d.ts +5 -6
- package/dist/configs/jest/index.d.ts.map +1 -1
- package/dist/configs/jest/index.js +5 -6
- package/dist/configs/jest/index.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 +61 -55
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/expo/copy-overwrite/eslint.expo.ts +17 -18
- package/expo/copy-overwrite/tsconfig.eslint.json +5 -1
- package/harper-fabric/copy-overwrite/tsconfig.eslint.json +5 -1
- package/nestjs/copy-overwrite/eslint.nestjs.ts +7 -161
- package/nestjs/copy-overwrite/tsconfig.eslint.json +5 -1
- package/nestjs/copy-overwrite/tsconfig.spec.json +2 -3
- package/package.json +6 -8
- package/phaser/copy-overwrite/tsconfig.eslint.json +5 -1
- 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-learnings-budget.ts +4 -4
- package/scripts/check-typecheck-tests.mjs +119 -129
- 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/scripts/update-node-version.ts +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
- package/typescript/copy-overwrite/tsconfig.eslint.json +5 -1
- package/dist/configs/jest/cdk.d.ts +0 -33
- package/dist/configs/jest/cdk.d.ts.map +0 -1
- package/dist/configs/jest/cdk.js +0 -29
- package/dist/configs/jest/cdk.js.map +0 -1
- package/dist/configs/jest/nestjs.d.ts +0 -36
- package/dist/configs/jest/nestjs.d.ts.map +0 -1
- package/dist/configs/jest/nestjs.js +0 -49
- package/dist/configs/jest/nestjs.js.map +0 -1
- package/dist/configs/jest/typescript.d.ts +0 -29
- package/dist/configs/jest/typescript.d.ts.map +0 -1
- package/dist/configs/jest/typescript.js +0 -37
- package/dist/configs/jest/typescript.js.map +0 -1
|
@@ -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 {
|
|
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:
|
|
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:
|
|
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 {
|
|
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,
|
|
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 {
|
|
203
|
+
* @param {{[field: string]: unknown, name?: unknown, platforms?: unknown}} tool Manifest entry.
|
|
204
204
|
* @param {string} [platform] Platform key to resolve for.
|
|
205
|
-
* @returns {
|
|
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;
|
|
@@ -26,7 +26,36 @@
|
|
|
26
26
|
* @module catalogue
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* One platform's pinned artifact for a release-archive install.
|
|
31
|
+
* @typedef {object} PlatformArtifact
|
|
32
|
+
* @property {string} url Exact-version download URL.
|
|
33
|
+
* @property {string} sha256 Checksum published with the release.
|
|
34
|
+
* @property {string} [binary] Path of the executable inside the archive.
|
|
35
|
+
* @property {string} [install] Archive kind, when it differs from the entry's.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* One installable (or asserted) thing on a workstation.
|
|
40
|
+
* @typedef {object} CatalogueEntry
|
|
41
|
+
* @property {string} name Catalogue name.
|
|
42
|
+
* @property {string} label Human name.
|
|
43
|
+
* @property {string} kind How it is installed, or `required` / `manual` / `none`.
|
|
44
|
+
* @property {string} [binary] Executable name, when it differs from `name`.
|
|
45
|
+
* @property {string} [note] Why it is installed the way it is.
|
|
46
|
+
* @property {string} [version] Pinned version.
|
|
47
|
+
* @property {string} [package] npm package, for `npm-global`.
|
|
48
|
+
* @property {string} [script] Vendor install script URL.
|
|
49
|
+
* @property {string} [binDir] Where a vendor script puts the executable.
|
|
50
|
+
* @property {string} [minVersion] Lowest acceptable version of a required tool.
|
|
51
|
+
* @property {boolean} [selfUpdates] Whether the tool updates itself.
|
|
52
|
+
* @property {Record<string, PlatformArtifact>} [platforms] Per-platform artifacts.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Lisa's supported coding agents. Kept in sync with the harness list.
|
|
57
|
+
* @type {CatalogueEntry[]}
|
|
58
|
+
*/
|
|
30
59
|
export const AGENTS = [
|
|
31
60
|
{
|
|
32
61
|
name: "claude",
|
|
@@ -99,6 +128,7 @@ export const AGENTS = [
|
|
|
99
128
|
* Only the SELECTED provider is installed. Installing all of them would put
|
|
100
129
|
* four unused credential CLIs on a machine, each an extra thing to keep patched
|
|
101
130
|
* for no benefit.
|
|
131
|
+
* @type {CatalogueEntry[]}
|
|
102
132
|
*/
|
|
103
133
|
export const PROVIDERS = [
|
|
104
134
|
{
|
|
@@ -178,6 +208,7 @@ export const PROVIDERS = [
|
|
|
178
208
|
|
|
179
209
|
/**
|
|
180
210
|
* Tools every workstation needs regardless of project or provider.
|
|
211
|
+
* @type {CatalogueEntry[]}
|
|
181
212
|
*/
|
|
182
213
|
export const TOOLS = [
|
|
183
214
|
{
|
|
@@ -69,8 +69,8 @@ export async function loadPinnedInstaller() {
|
|
|
69
69
|
* describes a project — so the seam is made explicit here rather than by giving
|
|
70
70
|
* the catalogue a shape it does not otherwise need. `kind` becomes `install`;
|
|
71
71
|
* everything else the manifest reads is already named the same.
|
|
72
|
-
* @param {
|
|
73
|
-
* @returns {
|
|
72
|
+
* @param {import("./catalogue.mjs").CatalogueEntry} entry Catalogue entry.
|
|
73
|
+
* @returns {Record<string, unknown> & {name: string, install: string}} A `remoteEnv.tools` style entry.
|
|
74
74
|
*/
|
|
75
75
|
export function toManifestEntry(entry) {
|
|
76
76
|
const { kind, label, binDir, note, selfUpdates, ...rest } = entry;
|
|
@@ -118,11 +118,26 @@ export function provenance(path) {
|
|
|
118
118
|
return "other";
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* What the workstation installer will do about one entry, and why.
|
|
123
|
+
* @typedef {object} PlanRow
|
|
124
|
+
* @property {string} name Executable name.
|
|
125
|
+
* @property {string} label Human name.
|
|
126
|
+
* @property {string} kind How it would be installed.
|
|
127
|
+
* @property {string|null} path Where it is already installed, or null.
|
|
128
|
+
* @property {string|null} version Its installed version, when present.
|
|
129
|
+
* @property {string} from Provenance of an existing install.
|
|
130
|
+
* @property {boolean} checksummed Whether an install is checksum-verified.
|
|
131
|
+
* @property {string} action `present`, `install`, `manual` or `blocked`.
|
|
132
|
+
* @property {string} reason Plain-language reason for the action.
|
|
133
|
+
* @property {string} [group] `agent`, `provider` or `tool`, once planned.
|
|
134
|
+
*/
|
|
135
|
+
|
|
121
136
|
/**
|
|
122
137
|
* Decide what to do about one catalogue entry.
|
|
123
|
-
* @param {
|
|
138
|
+
* @param {{name: string, label: string, kind: string, note?: string}} entry Catalogue entry.
|
|
124
139
|
* @param {object} [deps] Injected probes, for tests.
|
|
125
|
-
* @returns {
|
|
140
|
+
* @returns {PlanRow} A plan row.
|
|
126
141
|
*/
|
|
127
142
|
export function planEntry(entry, deps = {}) {
|
|
128
143
|
const find = deps.locate ?? locate;
|
|
@@ -169,7 +184,7 @@ export function planEntry(entry, deps = {}) {
|
|
|
169
184
|
/**
|
|
170
185
|
* Build the full plan across agents and tools.
|
|
171
186
|
* @param {object} [options] Selection and injected probes.
|
|
172
|
-
* @returns {
|
|
187
|
+
* @returns {PlanRow[]} Plan rows, each with its `group`.
|
|
173
188
|
*/
|
|
174
189
|
export function planWorkstation(options = {}) {
|
|
175
190
|
const wanted = options.agents ?? null;
|
|
@@ -210,7 +225,7 @@ export function planWorkstation(options = {}) {
|
|
|
210
225
|
* typo that quietly provisions the wrong credential manager is worse than one
|
|
211
226
|
* that stops.
|
|
212
227
|
* @param {string|null|undefined} name Requested provider.
|
|
213
|
-
* @returns {
|
|
228
|
+
* @returns {import("./catalogue.mjs").CatalogueEntry|null} Entry, or null when none was requested.
|
|
214
229
|
*/
|
|
215
230
|
export function resolveProvider(name) {
|
|
216
231
|
if (name === null || name === undefined) return null;
|
|
@@ -226,9 +241,9 @@ export function resolveProvider(name) {
|
|
|
226
241
|
|
|
227
242
|
/**
|
|
228
243
|
* Plan the selected credential manager.
|
|
229
|
-
* @param {
|
|
244
|
+
* @param {import("./catalogue.mjs").CatalogueEntry} provider Catalogue entry.
|
|
230
245
|
* @param {object} [deps] Injected probes, for tests.
|
|
231
|
-
* @returns {
|
|
246
|
+
* @returns {PlanRow} A plan row.
|
|
232
247
|
*/
|
|
233
248
|
export function planProvider(provider, deps = {}) {
|
|
234
249
|
if (provider.kind === "none") {
|
|
@@ -251,7 +266,7 @@ export function planProvider(provider, deps = {}) {
|
|
|
251
266
|
|
|
252
267
|
/**
|
|
253
268
|
* Render the plan for a human.
|
|
254
|
-
* @param {
|
|
269
|
+
* @param {readonly PlanRow[]} plan Plan rows.
|
|
255
270
|
* @returns {string} Report text.
|
|
256
271
|
*/
|
|
257
272
|
export function renderPlan(plan) {
|