@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
|
@@ -18,12 +18,8 @@
|
|
|
18
18
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new
|
|
19
19
|
* @module eslint.expo
|
|
20
20
|
*/
|
|
21
|
-
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
22
21
|
import react from "eslint-plugin-react";
|
|
23
22
|
import reactCompiler from "eslint-plugin-react-compiler";
|
|
24
|
-
// @ts-expect-error -- eslint-plugin-react-perf lacks type declarations
|
|
25
|
-
import reactPerf from "eslint-plugin-react-perf";
|
|
26
|
-
import tailwind from "eslint-plugin-tailwindcss";
|
|
27
23
|
import { readFileSync } from "fs";
|
|
28
24
|
import { createRequire } from "module";
|
|
29
25
|
import path from "path";
|
|
@@ -53,11 +49,22 @@ export {
|
|
|
53
49
|
getSharedRules,
|
|
54
50
|
};
|
|
55
51
|
|
|
52
|
+
/** View component files, which the View rules below all target. */
|
|
53
|
+
const VIEW_FILES = ["**/*View.tsx", "**/*View.jsx"];
|
|
54
|
+
|
|
55
|
+
/** Generated UI primitives (gluestack), exempt from the component rules. */
|
|
56
|
+
const UI_COMPONENTS = "components/ui/**";
|
|
57
|
+
|
|
56
58
|
// Custom plugins (CommonJS - use createRequire)
|
|
57
59
|
const require = createRequire(import.meta.url);
|
|
58
60
|
const componentStructure = require("@codyswann/eslint-plugin-component-structure");
|
|
59
61
|
const uiStandards = require("@codyswann/eslint-plugin-ui-standards");
|
|
60
62
|
const expoConfig = require("eslint-config-expo/flat");
|
|
63
|
+
// No type declarations ship for these three, so they load through require, as
|
|
64
|
+
// in the published factory, rather than through an import TypeScript rejects.
|
|
65
|
+
const reactPerf = require("eslint-plugin-react-perf");
|
|
66
|
+
const jsxA11y = require("eslint-plugin-jsx-a11y");
|
|
67
|
+
const tailwind = require("eslint-plugin-tailwindcss");
|
|
61
68
|
|
|
62
69
|
/**
|
|
63
70
|
* React's hook named exports, banned from a View's import list.
|
|
@@ -393,11 +400,7 @@ export function getExpoConfig({
|
|
|
393
400
|
"components/**/*.tsx",
|
|
394
401
|
"components/**/*.jsx",
|
|
395
402
|
],
|
|
396
|
-
ignores: [
|
|
397
|
-
"components/ui/**",
|
|
398
|
-
"components/shared/**",
|
|
399
|
-
"components/icons/**",
|
|
400
|
-
],
|
|
403
|
+
ignores: [UI_COMPONENTS, "components/shared/**", "components/icons/**"],
|
|
401
404
|
rules: {
|
|
402
405
|
"component-structure/enforce-component-structure": "error",
|
|
403
406
|
"component-structure/single-component-per-file": "error",
|
|
@@ -412,7 +415,7 @@ export function getExpoConfig({
|
|
|
412
415
|
// skill claiming an enforcement it did not have is what let a hook live in
|
|
413
416
|
// a View for so long; the fix must not repeat the shape of the defect.
|
|
414
417
|
{
|
|
415
|
-
files:
|
|
418
|
+
files: VIEW_FILES,
|
|
416
419
|
rules: {
|
|
417
420
|
"component-structure/no-return-in-view": "error",
|
|
418
421
|
},
|
|
@@ -433,12 +436,8 @@ export function getExpoConfig({
|
|
|
433
436
|
// `@/features/*/*` restriction is carried forward because a flat-config
|
|
434
437
|
// override replaces a rule's options wholesale.
|
|
435
438
|
{
|
|
436
|
-
files:
|
|
437
|
-
ignores: [
|
|
438
|
-
"components/ui/**",
|
|
439
|
-
"components/shared/**",
|
|
440
|
-
"components/icons/**",
|
|
441
|
-
],
|
|
439
|
+
files: VIEW_FILES,
|
|
440
|
+
ignores: [UI_COMPONENTS, "components/shared/**", "components/icons/**"],
|
|
442
441
|
rules: {
|
|
443
442
|
"component-structure/no-hooks-in-view": "error",
|
|
444
443
|
"no-restricted-imports": [
|
|
@@ -468,8 +467,8 @@ export function getExpoConfig({
|
|
|
468
467
|
|
|
469
468
|
// View memo requirement (excluding UI components)
|
|
470
469
|
{
|
|
471
|
-
files:
|
|
472
|
-
ignores: [
|
|
470
|
+
files: VIEW_FILES,
|
|
471
|
+
ignores: [UI_COMPONENTS],
|
|
473
472
|
rules: {
|
|
474
473
|
"component-structure/require-memo-in-view": "error",
|
|
475
474
|
},
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Jest, so `files` adds Jest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/@types/jest/index.d.ts"],
|
|
10
14
|
"include": ["**/*.ts", "**/*.tsx"],
|
|
11
15
|
"exclude": ["node_modules", "dist", "build", ".expo", "ios", "android", "worktrees"]
|
|
12
16
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": [
|
|
11
15
|
"src/**/*.ts",
|
|
12
16
|
"tests/**/*.ts",
|
|
@@ -3,176 +3,22 @@
|
|
|
3
3
|
* Do not edit directly — durable changes belong upstream in Lisa.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* eslint-disable max-lines-per-function -- config file requires many lines */
|
|
7
6
|
/**
|
|
8
7
|
* ESLint 9 Flat Config - NestJS Stack
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* eslint.nestjs.ts (this file)
|
|
16
|
-
* └── eslint.typescript.ts
|
|
17
|
-
* └── eslint.base.ts
|
|
18
|
-
*
|
|
9
|
+
* Re-exports the NestJS ESLint configuration from @codyswann/lisa. This file
|
|
10
|
+
* exists as a local sibling for projects that import stack config from a
|
|
11
|
+
* relative path. It used to carry its own copy of the configuration built on
|
|
12
|
+
* a local ./eslint.typescript, which Lisa deletes from every project, so it
|
|
13
|
+
* could not compile; the published factory is the one eslint.config.ts uses.
|
|
19
14
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new
|
|
20
15
|
* @module eslint.nestjs
|
|
21
16
|
*/
|
|
22
|
-
|
|
23
|
-
// Import TypeScript config and utilities
|
|
24
|
-
import {
|
|
25
|
-
codeOrganization,
|
|
26
|
-
defaultIgnores,
|
|
27
|
-
defaultThresholds,
|
|
28
|
-
getBaseConfigs,
|
|
29
|
-
getBaseLanguageOptions,
|
|
30
|
-
getJsFilesOverride,
|
|
31
|
-
getSharedFilesOverride,
|
|
32
|
-
getSharedRules,
|
|
33
|
-
getTestFilesOverride,
|
|
34
|
-
getTsFilesOverride,
|
|
35
|
-
getTsTestFilesOverride,
|
|
36
|
-
} from "./eslint.typescript";
|
|
37
|
-
|
|
38
|
-
// Re-export for downstream configs
|
|
39
17
|
export {
|
|
40
18
|
defaultIgnores,
|
|
41
19
|
defaultThresholds,
|
|
42
20
|
getBaseConfigs,
|
|
43
21
|
getBaseLanguageOptions,
|
|
22
|
+
getNestjsConfig,
|
|
44
23
|
getSharedRules,
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Creates the NestJS ESLint configuration.
|
|
49
|
-
*
|
|
50
|
-
* @param {object} options - Configuration options
|
|
51
|
-
* @param {string} options.tsconfigRootDir - Root directory for tsconfig.json
|
|
52
|
-
* @param {string[]} [options.ignorePatterns] - Patterns to ignore
|
|
53
|
-
* @param {object} [options.thresholds] - Threshold overrides
|
|
54
|
-
* @returns {Array} ESLint flat config array
|
|
55
|
-
*/
|
|
56
|
-
export function getNestjsConfig({
|
|
57
|
-
tsconfigRootDir,
|
|
58
|
-
ignorePatterns = defaultIgnores,
|
|
59
|
-
thresholds = defaultThresholds,
|
|
60
|
-
}: {
|
|
61
|
-
tsconfigRootDir: string;
|
|
62
|
-
ignorePatterns?: string[];
|
|
63
|
-
thresholds?: typeof defaultThresholds;
|
|
64
|
-
}) {
|
|
65
|
-
return [
|
|
66
|
-
// Global ignores
|
|
67
|
-
{
|
|
68
|
-
ignores: ignorePatterns,
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
// Base configurations from shared module
|
|
72
|
-
...getBaseConfigs(),
|
|
73
|
-
|
|
74
|
-
// Base configuration for all files
|
|
75
|
-
{
|
|
76
|
-
languageOptions: getBaseLanguageOptions(),
|
|
77
|
-
plugins: {
|
|
78
|
-
"code-organization": codeOrganization,
|
|
79
|
-
},
|
|
80
|
-
rules: {
|
|
81
|
-
// Shared rules from base
|
|
82
|
-
...getSharedRules(thresholds),
|
|
83
|
-
|
|
84
|
-
// Code organization
|
|
85
|
-
"code-organization/enforce-statement-order": "error",
|
|
86
|
-
|
|
87
|
-
// Configuration enforcement - prevent direct process.env access
|
|
88
|
-
// All configuration should go through ConfigService
|
|
89
|
-
// @see .claude/rules/PROJECT_RULES.md
|
|
90
|
-
"no-restricted-syntax": [
|
|
91
|
-
"error",
|
|
92
|
-
{
|
|
93
|
-
selector:
|
|
94
|
-
"MemberExpression[object.name='process'][property.name='env']",
|
|
95
|
-
message:
|
|
96
|
-
"Direct process.env access is forbidden. Use ConfigService for type-safe configuration. See .claude/rules/PROJECT_RULES.md.",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
|
|
100
|
-
// NestJS uses classes extensively for modules, controllers, services, etc.
|
|
101
|
-
"functional/no-classes": "off",
|
|
102
|
-
|
|
103
|
-
// NestJS decorators require class methods
|
|
104
|
-
"jsdoc/require-jsdoc": [
|
|
105
|
-
"error",
|
|
106
|
-
{
|
|
107
|
-
require: {
|
|
108
|
-
FunctionDeclaration: true,
|
|
109
|
-
MethodDefinition: true,
|
|
110
|
-
ClassDeclaration: true,
|
|
111
|
-
ArrowFunctionExpression: false,
|
|
112
|
-
FunctionExpression: false,
|
|
113
|
-
},
|
|
114
|
-
contexts: [
|
|
115
|
-
"TSInterfaceDeclaration",
|
|
116
|
-
"TSTypeAliasDeclaration",
|
|
117
|
-
"VariableDeclaration[declarations.0.init.type='ArrowFunctionExpression']:has([id.name=/^[A-Z]/])",
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
// JavaScript files override
|
|
125
|
-
getJsFilesOverride(),
|
|
126
|
-
|
|
127
|
-
// Shared hooks and components
|
|
128
|
-
getSharedFilesOverride(),
|
|
129
|
-
|
|
130
|
-
// Test files
|
|
131
|
-
getTestFilesOverride(),
|
|
132
|
-
|
|
133
|
-
// TypeScript files - enable type-checked linting
|
|
134
|
-
getTsFilesOverride(["**/*.ts"], tsconfigRootDir),
|
|
135
|
-
|
|
136
|
-
// TypeScript test files - disable immutable-data
|
|
137
|
-
getTsTestFilesOverride([
|
|
138
|
-
"**/*.test.ts",
|
|
139
|
-
"**/*.spec.ts",
|
|
140
|
-
"**/*.e2e-spec.ts",
|
|
141
|
-
]),
|
|
142
|
-
|
|
143
|
-
// NestJS module files - relax some rules
|
|
144
|
-
{
|
|
145
|
-
files: ["**/*.module.ts"],
|
|
146
|
-
rules: {
|
|
147
|
-
// Modules often import many things
|
|
148
|
-
"max-lines": "off",
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
// NestJS controller/service files
|
|
153
|
-
{
|
|
154
|
-
files: ["**/*.controller.ts", "**/*.service.ts", "**/*.resolver.ts"],
|
|
155
|
-
rules: {
|
|
156
|
-
// These files often have many methods
|
|
157
|
-
"max-lines-per-function": ["error", { max: 100 }],
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
// Configuration files - allowed to use process.env directly
|
|
162
|
-
{
|
|
163
|
-
files: ["**/*config.*", "**/configuration.ts", "**/config/*.ts"],
|
|
164
|
-
rules: {
|
|
165
|
-
"no-restricted-syntax": "off",
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
// Lambda handlers - allowed to use getStandaloneConfig()
|
|
170
|
-
{
|
|
171
|
-
files: ["**/handlers/**/*.ts", "**/lambda/**/*.ts"],
|
|
172
|
-
rules: {
|
|
173
|
-
"no-restricted-syntax": "off",
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
];
|
|
177
|
-
}
|
|
178
|
-
/* eslint-enable max-lines-per-function -- config file requires many lines */
|
|
24
|
+
} from "@codyswann/lisa/eslint/nestjs";
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": ["**/*.ts"],
|
|
11
15
|
"exclude": ["node_modules", ".build", "dist", "worktrees"]
|
|
12
16
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "Type-checks NestJS spec files. NestJS projects run Vitest with `globals: true` (vitest.config.ts; Lisa deletes the old jest.config.ts), so `files` adds Vitest's global declarations. It sets no `types` list, so it inherits the host's own instead of overriding it (CodySwannGT/lisa#4927).",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
|
-
"
|
|
4
|
-
"types": ["jest", "node"]
|
|
5
|
-
},
|
|
4
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
6
5
|
"include": ["**/*.spec.ts", "**/*.d.ts"],
|
|
7
6
|
"exclude": ["node_modules", ".build", "dist"]
|
|
8
7
|
}
|
package/package.json
CHANGED
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
"lint": "node scripts/lib/worktree-dependencies.mjs && oxlint --disable-nested-config && eslint . --quiet",
|
|
21
21
|
"lint:fix": "node scripts/lib/worktree-dependencies.mjs && oxlint --fix --disable-nested-config && eslint . --fix",
|
|
22
22
|
"lint:slow": "node scripts/lib/worktree-dependencies.mjs && eslint . --config eslint.slow.config.ts --quiet",
|
|
23
|
-
"typecheck": "node scripts/lib/worktree-dependencies.mjs && tsgo --noEmit && bun run typecheck:tests && bun run typecheck:engine-floor",
|
|
23
|
+
"typecheck": "node scripts/lib/worktree-dependencies.mjs && tsgo --noEmit && bun run typecheck:tests && bun run typecheck:eslint && bun run typecheck:engine-floor",
|
|
24
24
|
"typecheck:tests": "node scripts/check-typecheck-tests.mjs",
|
|
25
|
+
"typecheck:eslint": "node scripts/check-typecheck-tests.mjs --project tsconfig.eslint.json",
|
|
25
26
|
"typecheck:engine-floor": "node scripts/check-engine-floor.mjs",
|
|
26
27
|
"measure:scripts-profile-gap": "bun scripts/measure-scripts-profile-gap.mts",
|
|
27
28
|
"format:check": "node scripts/lib/worktree-dependencies.mjs && prettier --check .",
|
|
@@ -188,7 +189,7 @@
|
|
|
188
189
|
"qs": "^6.16.0"
|
|
189
190
|
},
|
|
190
191
|
"name": "@codyswann/lisa",
|
|
191
|
-
"version": "
|
|
192
|
+
"version": "6.0.0",
|
|
192
193
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
193
194
|
"main": "dist/index.js",
|
|
194
195
|
"exports": {
|
|
@@ -207,10 +208,7 @@
|
|
|
207
208
|
"./eslint/slow-expo": "./dist/configs/eslint/slow-expo.js",
|
|
208
209
|
"./jest": "./dist/configs/jest/index.js",
|
|
209
210
|
"./jest/base": "./dist/configs/jest/base.js",
|
|
210
|
-
"./jest/typescript": "./dist/configs/jest/typescript.js",
|
|
211
|
-
"./jest/nestjs": "./dist/configs/jest/nestjs.js",
|
|
212
211
|
"./jest/expo": "./dist/configs/jest/expo.js",
|
|
213
|
-
"./jest/cdk": "./dist/configs/jest/cdk.js",
|
|
214
212
|
"./vitest": "./dist/configs/vitest/index.js",
|
|
215
213
|
"./vitest/base": "./dist/configs/vitest/base.js",
|
|
216
214
|
"./vitest/typescript": "./dist/configs/vitest/typescript.js",
|
|
@@ -351,7 +349,7 @@
|
|
|
351
349
|
"test": "tests"
|
|
352
350
|
},
|
|
353
351
|
"types": "./dist/index.d.ts",
|
|
354
|
-
"lisaReleaseCommit": "
|
|
355
|
-
"gitHead": "
|
|
356
|
-
"lisaReleaseTag": "
|
|
352
|
+
"lisaReleaseCommit": "392e159fa0d48980e26c91ac926af5b126b58e34",
|
|
353
|
+
"gitHead": "392e159fa0d48980e26c91ac926af5b126b58e34",
|
|
354
|
+
"lisaReleaseTag": "v6.0.0"
|
|
357
355
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": [
|
|
11
15
|
"src/**/*.ts",
|
|
12
16
|
"tests/**/*.ts",
|
|
@@ -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 {
|
|
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 = [];
|
package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs
CHANGED
|
@@ -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) {
|