@codyswann/lisa 7.1.5 → 8.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 +0 -2
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +3 -6
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +31 -32
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +201 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -2
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +16 -10
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +2 -2
- package/dist/cli/apply.js.map +1 -1
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +8 -4
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +2 -2
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts +5 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.js +44 -10
- package/dist/cli/doctor-readiness-supply-chain-python.js.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -2
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-worker-journey.js +2 -2
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +7 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/file-upstream-cmd.d.ts.map +1 -1
- package/dist/cli/file-upstream-cmd.js +20 -25
- package/dist/cli/file-upstream-cmd.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -2
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +13 -6
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/health-cmd.d.ts.map +1 -1
- package/dist/cli/health-cmd.js +7 -19
- package/dist/cli/health-cmd.js.map +1 -1
- package/dist/cli/lisa-test-run-jest-merge.js +5 -5
- package/dist/cli/lisa-test-run-jest-merge.js.map +1 -1
- package/dist/cli/lisa-test-run.js +8 -4
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/pr-landing.js +2 -2
- package/dist/cli/pr-landing.js.map +1 -1
- package/dist/cli/update-check.d.ts.map +1 -1
- package/dist/cli/update-check.js +7 -4
- package/dist/cli/update-check.js.map +1 -1
- package/dist/cli/update-cmd.d.ts.map +1 -1
- package/dist/cli/update-cmd.js +7 -4
- package/dist/cli/update-cmd.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/cli/worktree-ownership.js +3 -3
- package/dist/cli/worktree-ownership.js.map +1 -1
- package/dist/codex/hooks-catalog.d.ts +151 -0
- package/dist/codex/hooks-catalog.d.ts.map +1 -0
- package/dist/codex/hooks-catalog.js +315 -0
- package/dist/codex/hooks-catalog.js.map +1 -0
- package/dist/codex/hooks-compatibility.d.ts +14 -0
- package/dist/codex/hooks-compatibility.d.ts.map +1 -0
- package/dist/codex/hooks-compatibility.js +196 -0
- package/dist/codex/hooks-compatibility.js.map +1 -0
- package/dist/codex/hooks-installer.d.ts +2 -49
- package/dist/codex/hooks-installer.d.ts.map +1 -1
- package/dist/codex/hooks-installer.js +5 -546
- package/dist/codex/hooks-installer.js.map +1 -1
- package/dist/codex/hooks-source-links.d.ts +11 -0
- package/dist/codex/hooks-source-links.d.ts.map +1 -0
- package/dist/codex/hooks-source-links.js +74 -0
- package/dist/codex/hooks-source-links.js.map +1 -0
- package/dist/codex/scripts/block-migration-edits.sh +2 -2
- package/dist/codex/scripts/block-suppress-directives.sh +3 -3
- package/dist/codex/scripts/format-on-edit.sh +2 -2
- package/dist/codex/scripts/lint-on-edit.sh +2 -2
- package/dist/codex/scripts/lisa-edit-gate.sh +19 -15
- package/dist/codex/scripts/rubocop-on-edit.sh +2 -2
- package/dist/codex/scripts/sg-scan-on-edit.sh +2 -2
- package/dist/configs/coverage-scope.d.ts +0 -23
- package/dist/configs/coverage-scope.d.ts.map +1 -1
- package/dist/configs/coverage-scope.js +2 -3
- package/dist/configs/coverage-scope.js.map +1 -1
- package/dist/configs/eslint/base.d.ts +2 -113
- package/dist/configs/eslint/base.d.ts.map +1 -1
- package/dist/configs/eslint/base.js +2 -165
- package/dist/configs/eslint/base.js.map +1 -1
- package/dist/configs/eslint/cdk.d.ts.map +1 -1
- package/dist/configs/eslint/cdk.js +82 -66
- package/dist/configs/eslint/cdk.js.map +1 -1
- package/dist/configs/eslint/expo-overrides.d.ts +103 -0
- package/dist/configs/eslint/expo-overrides.d.ts.map +1 -0
- package/dist/configs/eslint/expo-overrides.js +187 -0
- package/dist/configs/eslint/expo-overrides.js.map +1 -0
- package/dist/configs/eslint/expo.d.ts +2 -7
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +186 -258
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/nestjs.d.ts.map +1 -1
- package/dist/configs/eslint/nestjs.js +86 -70
- package/dist/configs/eslint/nestjs.js.map +1 -1
- package/dist/configs/eslint/process-environment-bans.d.ts +41 -0
- package/dist/configs/eslint/process-environment-bans.d.ts.map +1 -0
- package/dist/configs/eslint/process-environment-bans.js +50 -0
- package/dist/configs/eslint/process-environment-bans.js.map +1 -0
- package/dist/configs/eslint/shared-rules.d.ts +130 -0
- package/dist/configs/eslint/shared-rules.d.ts.map +1 -0
- package/dist/configs/eslint/shared-rules.js +233 -0
- package/dist/configs/eslint/shared-rules.js.map +1 -0
- package/dist/configs/eslint/typescript.d.ts.map +1 -1
- package/dist/configs/eslint/typescript.js +2 -4
- package/dist/configs/eslint/typescript.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +2 -2
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +5 -5
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +3 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.js +2 -2
- package/dist/configs/vitest/refusal-announcement.js.map +1 -1
- package/dist/core/admission-lock.js +2 -3
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +11 -5
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +2 -2
- package/dist/core/admission.js.map +1 -1
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +8 -5
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +48 -47
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +3 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +46 -27
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/kane-cli-process.d.ts.map +1 -1
- package/dist/core/kane-cli-process.js +46 -33
- package/dist/core/kane-cli-process.js.map +1 -1
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +3 -4
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/lisa-agent-emit-extra.d.ts +75 -0
- package/dist/core/lisa-agent-emit-extra.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit-extra.js +231 -0
- package/dist/core/lisa-agent-emit-extra.js.map +1 -0
- package/dist/core/lisa-agent-emit.d.ts +79 -0
- package/dist/core/lisa-agent-emit.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit.js +224 -0
- package/dist/core/lisa-agent-emit.js.map +1 -0
- package/dist/core/lisa-deletions.d.ts +116 -0
- package/dist/core/lisa-deletions.d.ts.map +1 -0
- package/dist/core/lisa-deletions.js +316 -0
- package/dist/core/lisa-deletions.js.map +1 -0
- package/dist/core/lisa-file-results.d.ts +58 -0
- package/dist/core/lisa-file-results.d.ts.map +1 -0
- package/dist/core/lisa-file-results.js +173 -0
- package/dist/core/lisa-file-results.js.map +1 -0
- package/dist/core/lisa-maintenance.d.ts +139 -0
- package/dist/core/lisa-maintenance.d.ts.map +1 -0
- package/dist/core/lisa-maintenance.js +324 -0
- package/dist/core/lisa-maintenance.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts +7 -5
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -6036
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6021 -0
- package/dist/core/lisa-plugin-sync.d.ts +96 -0
- package/dist/core/lisa-plugin-sync.d.ts.map +1 -0
- package/dist/core/lisa-plugin-sync.js +216 -0
- package/dist/core/lisa-plugin-sync.js.map +1 -0
- package/dist/core/lisa-plugins.d.ts +42 -0
- package/dist/core/lisa-plugins.d.ts.map +1 -0
- package/dist/core/lisa-plugins.js +155 -0
- package/dist/core/lisa-plugins.js.map +1 -0
- package/dist/core/lisa-state.d.ts +202 -0
- package/dist/core/lisa-state.d.ts.map +1 -0
- package/dist/core/lisa-state.js +205 -0
- package/dist/core/lisa-state.js.map +1 -0
- package/dist/core/lisa-summary-stats.d.ts +74 -0
- package/dist/core/lisa-summary-stats.d.ts.map +1 -0
- package/dist/core/lisa-summary-stats.js +189 -0
- package/dist/core/lisa-summary-stats.js.map +1 -0
- package/dist/core/lisa-summary.d.ts +34 -0
- package/dist/core/lisa-summary.d.ts.map +1 -0
- package/dist/core/lisa-summary.js +144 -0
- package/dist/core/lisa-summary.js.map +1 -0
- package/dist/core/lisa-templates.d.ts +98 -0
- package/dist/core/lisa-templates.d.ts.map +1 -0
- package/dist/core/lisa-templates.js +251 -0
- package/dist/core/lisa-templates.js.map +1 -0
- package/dist/core/lisa.d.ts +14 -903
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +30 -2275
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +117 -61
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/template-ownership.js +0 -1
- package/dist/core/template-ownership.js.map +1 -1
- package/dist/core/upstream-attribution-body.d.ts +4 -11
- package/dist/core/upstream-attribution-body.d.ts.map +1 -1
- package/dist/core/upstream-attribution-body.js +61 -373
- package/dist/core/upstream-attribution-body.js.map +1 -1
- package/dist/core/upstream-attribution-fields.d.ts +40 -0
- package/dist/core/upstream-attribution-fields.d.ts.map +1 -0
- package/dist/core/upstream-attribution-fields.js +167 -0
- package/dist/core/upstream-attribution-fields.js.map +1 -0
- package/dist/core/upstream-attribution-files.d.ts +15 -0
- package/dist/core/upstream-attribution-files.d.ts.map +1 -0
- package/dist/core/upstream-attribution-files.js +156 -0
- package/dist/core/upstream-attribution-files.js.map +1 -0
- package/dist/core/upstream-attribution-guards.d.ts +80 -0
- package/dist/core/upstream-attribution-guards.d.ts.map +1 -0
- package/dist/core/upstream-attribution-guards.js +284 -0
- package/dist/core/upstream-attribution-guards.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +67 -30435
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +30518 -0
- package/dist/health/agentic-contract.d.ts +94 -0
- package/dist/health/agentic-contract.d.ts.map +1 -0
- package/dist/health/agentic-contract.js +2 -0
- package/dist/health/agentic-contract.js.map +1 -0
- package/dist/health/agentic-evidence.d.ts +16 -0
- package/dist/health/agentic-evidence.d.ts.map +1 -0
- package/dist/health/agentic-evidence.js +213 -0
- package/dist/health/agentic-evidence.js.map +1 -0
- package/dist/health/agentic.d.ts +11 -74
- package/dist/health/agentic.d.ts.map +1 -1
- package/dist/health/agentic.js +42 -216
- package/dist/health/agentic.js.map +1 -1
- package/dist/health/deadline.d.ts +4 -1
- package/dist/health/deadline.d.ts.map +1 -1
- package/dist/health/deadline.js +4 -3
- package/dist/health/deadline.js.map +1 -1
- package/dist/health/deterministic-inputs.d.ts.map +1 -1
- package/dist/health/deterministic-inputs.js +3 -11
- package/dist/health/deterministic-inputs.js.map +1 -1
- package/dist/health/deterministic-probes.d.ts +52 -0
- package/dist/health/deterministic-probes.d.ts.map +1 -0
- package/dist/health/deterministic-probes.js +142 -0
- package/dist/health/deterministic-probes.js.map +1 -0
- package/dist/health/deterministic.d.ts +2 -25
- package/dist/health/deterministic.d.ts.map +1 -1
- package/dist/health/deterministic.js +14 -106
- package/dist/health/deterministic.js.map +1 -1
- package/dist/health/finding-utils.d.ts +4 -3
- package/dist/health/finding-utils.d.ts.map +1 -1
- package/dist/health/finding-utils.js +4 -4
- package/dist/health/finding-utils.js.map +1 -1
- package/dist/health/governance-probes.d.ts +29 -24
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +29 -25
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/hook-inspection.d.ts +4 -3
- package/dist/health/hook-inspection.d.ts.map +1 -1
- package/dist/health/hook-inspection.js +17 -11
- package/dist/health/hook-inspection.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -4
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -9
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/prepare.js +24 -8
- package/dist/health/prepare.js.map +1 -1
- package/dist/health/project-probes.d.ts +14 -7
- package/dist/health/project-probes.d.ts.map +1 -1
- package/dist/health/project-probes.js +14 -9
- package/dist/health/project-probes.js.map +1 -1
- package/dist/health/ruleset-compare.d.ts +30 -0
- package/dist/health/ruleset-compare.d.ts.map +1 -0
- package/dist/health/ruleset-compare.js +143 -0
- package/dist/health/ruleset-compare.js.map +1 -0
- package/dist/health/ruleset-config-checks.d.ts +66 -0
- package/dist/health/ruleset-config-checks.d.ts.map +1 -0
- package/dist/health/ruleset-config-checks.js +190 -0
- package/dist/health/ruleset-config-checks.js.map +1 -0
- package/dist/health/ruleset-expected.d.ts +39 -0
- package/dist/health/ruleset-expected.d.ts.map +1 -0
- package/dist/health/ruleset-expected.js +181 -0
- package/dist/health/ruleset-expected.js.map +1 -0
- package/dist/health/ruleset-gh.d.ts +85 -0
- package/dist/health/ruleset-gh.d.ts.map +1 -0
- package/dist/health/ruleset-gh.js +177 -0
- package/dist/health/ruleset-gh.js.map +1 -0
- package/dist/health/ruleset-inspection.d.ts +13 -117
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +8 -738
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/health/ruleset-normalize.d.ts +32 -0
- package/dist/health/ruleset-normalize.d.ts.map +1 -0
- package/dist/health/ruleset-normalize.js +160 -0
- package/dist/health/ruleset-normalize.js.map +1 -0
- package/dist/health/template-compose.d.ts +9 -0
- package/dist/health/template-compose.d.ts.map +1 -0
- package/dist/health/template-compose.js +105 -0
- package/dist/health/template-compose.js.map +1 -0
- package/dist/health/template-inspection.d.ts +5 -52
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +13 -435
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/health/template-plan.d.ts +33 -0
- package/dist/health/template-plan.d.ts.map +1 -0
- package/dist/health/template-plan.js +154 -0
- package/dist/health/template-plan.js.map +1 -0
- package/dist/health/template-shape.d.ts +19 -0
- package/dist/health/template-shape.d.ts.map +1 -0
- package/dist/health/template-shape.js +122 -0
- package/dist/health/template-shape.js.map +1 -0
- package/dist/health/workflow-excerpt.d.ts +15 -0
- package/dist/health/workflow-excerpt.d.ts.map +1 -0
- package/dist/health/workflow-excerpt.js +88 -0
- package/dist/health/workflow-excerpt.js.map +1 -0
- package/dist/health/workflow-inputs-inspection.d.ts +16 -0
- package/dist/health/workflow-inputs-inspection.d.ts.map +1 -0
- package/dist/health/workflow-inputs-inspection.js +116 -0
- package/dist/health/workflow-inputs-inspection.js.map +1 -0
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +201 -20
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +73 -25
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +26 -9
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/git-state.d.ts.map +1 -1
- package/dist/standards/git-state.js +2 -2
- package/dist/standards/git-state.js.map +1 -1
- package/dist/standards/registry-checks.d.ts +34 -0
- package/dist/standards/registry-checks.d.ts.map +1 -0
- package/dist/standards/registry-checks.js +137 -0
- package/dist/standards/registry-checks.js.map +1 -0
- package/dist/standards/registry.d.ts +3 -13
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +105 -194
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/storage.js +8 -10
- package/dist/standards/storage.js.map +1 -1
- package/dist/strategies/deduplicate-arrays.d.ts +18 -0
- package/dist/strategies/deduplicate-arrays.d.ts.map +1 -0
- package/dist/strategies/deduplicate-arrays.js +25 -0
- package/dist/strategies/deduplicate-arrays.js.map +1 -0
- package/dist/strategies/package-lisa-detect.d.ts +10 -0
- package/dist/strategies/package-lisa-detect.d.ts.map +1 -0
- package/dist/strategies/package-lisa-detect.js +178 -0
- package/dist/strategies/package-lisa-detect.js.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts +16 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.js +37 -0
- package/dist/strategies/package-lisa-direct-floors.js.map +1 -0
- package/dist/strategies/package-lisa-host-pins.d.ts +43 -0
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -0
- package/dist/strategies/package-lisa-host-pins.js +254 -0
- package/dist/strategies/package-lisa-host-pins.js.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts +59 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.js +234 -0
- package/dist/strategies/package-lisa-manifest-guards.js.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts +34 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.js +106 -0
- package/dist/strategies/package-lisa-pin-alignment.js.map +1 -0
- package/dist/strategies/package-lisa-script-notes.d.ts +19 -0
- package/dist/strategies/package-lisa-script-notes.d.ts.map +1 -0
- package/dist/strategies/package-lisa-script-notes.js +145 -0
- package/dist/strategies/package-lisa-script-notes.js.map +1 -0
- package/dist/strategies/package-lisa-template-apply.d.ts +53 -0
- package/dist/strategies/package-lisa-template-apply.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-apply.js +216 -0
- package/dist/strategies/package-lisa-template-apply.js.map +1 -0
- package/dist/strategies/package-lisa-template-merge.d.ts +42 -0
- package/dist/strategies/package-lisa-template-merge.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-merge.js +202 -0
- package/dist/strategies/package-lisa-template-merge.js.map +1 -0
- package/dist/strategies/package-lisa-types.d.ts +5 -0
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +1 -195
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +27 -1333
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/tagged-merge-sections.d.ts +68 -0
- package/dist/strategies/tagged-merge-sections.d.ts.map +1 -0
- package/dist/strategies/tagged-merge-sections.js +113 -0
- package/dist/strategies/tagged-merge-sections.js.map +1 -0
- package/dist/strategies/tagged-merge.d.ts +1 -90
- package/dist/strategies/tagged-merge.d.ts.map +1 -1
- package/dist/strategies/tagged-merge.js +19 -190
- package/dist/strategies/tagged-merge.js.map +1 -1
- package/dist/utils/bounded-stream.d.ts +30 -0
- package/dist/utils/bounded-stream.d.ts.map +1 -0
- package/dist/utils/bounded-stream.js +63 -0
- package/dist/utils/bounded-stream.js.map +1 -0
- package/dist/utils/fibonacci.d.ts +3 -3
- package/dist/utils/fibonacci.d.ts.map +1 -1
- package/dist/utils/fibonacci.js +48 -10
- package/dist/utils/fibonacci.js.map +1 -1
- package/dist/utils/memo.d.ts +25 -0
- package/dist/utils/memo.d.ts.map +1 -0
- package/dist/utils/memo.js +32 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +3 -20
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/process-environment.d.ts +42 -0
- package/dist/utils/process-environment.d.ts.map +1 -0
- package/dist/utils/process-environment.js +52 -0
- package/dist/utils/process-environment.js.map +1 -0
- package/dist/utils/resolve-executable.d.ts +89 -0
- package/dist/utils/resolve-executable.d.ts.map +1 -0
- package/dist/utils/resolve-executable.js +224 -0
- package/dist/utils/resolve-executable.js.map +1 -0
- package/dist/utils/shell-command-line.d.ts +9 -0
- package/dist/utils/shell-command-line.d.ts.map +1 -0
- package/dist/utils/shell-command-line.js +43 -0
- package/dist/utils/shell-command-line.js.map +1 -0
- package/dist/utils/usage-accounting-totals.d.ts +19 -0
- package/dist/utils/usage-accounting-totals.d.ts.map +1 -0
- package/dist/utils/usage-accounting-totals.js +145 -0
- package/dist/utils/usage-accounting-totals.js.map +1 -0
- package/dist/utils/usage-accounting.d.ts +2 -14
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -169
- package/dist/utils/usage-accounting.js.map +1 -1
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-react-violations.test.js +213 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-valid.test.js +251 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-violations.test.js +222 -0
- package/eslint-plugin-code-organization/__tests__/statement-order-tester.js +42 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +6 -8
- package/expo/copy-overwrite/jest.setup.ts +11 -10
- package/expo/create-only/scripts/zap-baseline.sh +6 -18
- package/harper-fabric/create-only/scripts/zap-baseline.sh +7 -9
- package/nestjs/create-only/scripts/zap-baseline.sh +6 -7
- package/package.json +4 -4
- package/phaser/copy-overwrite/.husky/pre-push.verify +2 -0
- 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-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/lisa/hooks/track-plan-sessions.sh +7 -131
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- 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/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-copilot/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-copilot/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-cursor/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-cursor/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- 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/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-devin/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-devin/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/.codex-plugin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-agy/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-copilot/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-cursor/skills/expo-tailwind-setup/SKILL.md +15 -4
- 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-expo-devin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-devin/skills/expo-tailwind-setup/SKILL.md +15 -4
- 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/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric/hooks/enforce-config-extensions.sh +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-copilot/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-copilot/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-cursor/hooks/enforce-config-extensions.sh +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-harper-fabric-devin/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-devin/hooks/enforce-config-extensions.sh +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/.codex-plugin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/.codex-plugin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-agy/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-copilot/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-copilot/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-cursor/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-cursor/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- 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-nestjs-devin/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-devin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-devin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- 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/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +3 -3
- 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-rails-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-devin/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +3 -3
- 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-typescript-devin/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/src/base/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/src/base/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/src/base/hooks/track-plan-sessions.sh +7 -131
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/src/harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/src/harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/src/nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/src/nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/src/nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/src/rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/src/rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/src/typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/src/typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/scripts/build-plugins.sh +1 -1
- package/scripts/check-derived-artifacts.mjs +2 -2
- package/scripts/check-generated-artifact-merge-coverage.mjs +45 -4
- package/scripts/check-orphan-test-processes.mjs +0 -1
- package/scripts/check-self-dependency-pin.mjs +0 -2
- package/scripts/claude-remote-setup.sh +12 -7
- package/scripts/cleanup-amplify-branches.sh +0 -1
- package/scripts/generate-export-surface.mjs +131 -61
- package/scripts/generate-lisa-owned-hash-ledger.mjs +87 -102
- package/scripts/generate-upstream-evidence-manifest.mjs +56 -49
- package/scripts/github-status-check.sh +5 -25
- package/scripts/install-claude-plugins.sh +10 -8
- package/scripts/lib/merge-generated-json.mjs +274 -0
- package/scripts/lib/upstream-manifest-staleness.mjs +38 -34
- package/scripts/lib/upstream-public-commits.mjs +35 -18
- package/scripts/lisa-commit-and-pr-local.sh +1 -1
- package/scripts/lisa-enforcement-fallback.sh +31 -32
- package/scripts/lisa-github-environments.sh +5 -1
- package/scripts/lisa-github-repo-settings.sh +5 -1
- package/scripts/lisa-github-repo-setup.sh +1 -2
- package/scripts/lisa-github-rulesets.sh +8 -8
- package/scripts/lisa-remote-env/session-start.sh +18 -5
- package/scripts/lisa-rollback-release.mjs +0 -2
- package/scripts/lisa-update-local.sh +1 -1
- package/scripts/merge-generated-artifact.mjs +18 -6
- package/scripts/raise-self-dependency-pin.mjs +0 -2
- package/scripts/run-artifact-checks.mjs +1 -1
- package/scripts/verify-packed-learnings-contract.mjs +36 -3
- package/scripts/verify-self-pin-raise.mjs +0 -2
- package/typescript/copy-contents/.husky/commit-msg +8 -2
- package/typescript/copy-contents/.husky/post-checkout +2 -0
- package/typescript/copy-contents/.husky/post-merge +2 -0
- package/typescript/copy-contents/.husky/pre-commit +10 -3
- package/typescript/copy-contents/.husky/pre-push +29 -16
- package/typescript/copy-contents/.husky/prepare-commit-msg +2 -0
- package/typescript/create-only/.husky/pre-push.local +2 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +0 -643
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fixed-order deterministic Health probe registry.
|
|
3
|
+
*
|
|
4
|
+
* Kept apart from the runner so the registry — which check runs, in what
|
|
5
|
+
* order, against which reader — stays one reviewable list while the runner
|
|
6
|
+
* owns only deadlines, setup, and result assembly.
|
|
7
|
+
* @module health/deterministic-probes
|
|
8
|
+
*/
|
|
9
|
+
import { runConfigSync } from "../sync/config-sync.js";
|
|
10
|
+
import { declaredChecksDriftFinding } from "./declared-checks-inspection.js";
|
|
11
|
+
import { safeSyncReads, shareRulesetReader } from "./deterministic-inputs.js";
|
|
12
|
+
import { splashExitFinding } from "./expo-splash-inspection.js";
|
|
13
|
+
import { hookFinding, managedTemplateFinding, packageFinding, pluginFinding, workflowFinding, } from "./governance-probes.js";
|
|
14
|
+
import { readCoreHooksPath } from "./hook-inspection.js";
|
|
15
|
+
import { readInstalledClaudePlugins, } from "./plugin-inspection.js";
|
|
16
|
+
import { configFindings, instructionFinding, projectStateFinding, starterFinding, wikiFinding, } from "./project-probes.js";
|
|
17
|
+
import { readGithubRulesets, rulesetFinding, } from "./ruleset-inspection.js";
|
|
18
|
+
import { readGithubBranches, rulesetReachFinding, } from "./ruleset-reach-inspection.js";
|
|
19
|
+
export const CHECKS = [
|
|
20
|
+
{ check: "project.state", unavailable: "fail" },
|
|
21
|
+
{ check: "project.wiki", unavailable: "fail" },
|
|
22
|
+
{ check: "starters.remote", unavailable: "warn" },
|
|
23
|
+
{ check: "config.required", unavailable: "fail" },
|
|
24
|
+
{ check: "config.sync", unavailable: "fail" },
|
|
25
|
+
{ check: "templates.managed", unavailable: "fail" },
|
|
26
|
+
{ check: "package.conformance", unavailable: "fail" },
|
|
27
|
+
{ check: "instructions.canonical", unavailable: "fail" },
|
|
28
|
+
{ check: "hooks.managed", unavailable: "fail" },
|
|
29
|
+
{ check: "plugins.current", unavailable: "warn" },
|
|
30
|
+
{ check: "ci.workflows", unavailable: "fail" },
|
|
31
|
+
{ check: "github.rulesets", unavailable: "warn" },
|
|
32
|
+
{ check: "github.declared-checks", unavailable: "warn" },
|
|
33
|
+
{ check: "github.ruleset-reach", unavailable: "warn" },
|
|
34
|
+
{ check: "expo.splash-exit", unavailable: "warn" },
|
|
35
|
+
];
|
|
36
|
+
/**
|
|
37
|
+
* Probes over local project files: state, wiki, config, templates, package, instructions.
|
|
38
|
+
* @param context - Captured setup state shared by every probe
|
|
39
|
+
* @returns Registry entries for checks 0 through 7, in order
|
|
40
|
+
*/
|
|
41
|
+
function localProbes(context) {
|
|
42
|
+
const { roots, configState, shape, safeShape, sync } = context;
|
|
43
|
+
return [
|
|
44
|
+
{
|
|
45
|
+
...CHECKS[0],
|
|
46
|
+
run: () => projectStateFinding(roots.projectRoot, configState, shape),
|
|
47
|
+
},
|
|
48
|
+
{ ...CHECKS[1], run: () => wikiFinding(roots.projectRoot) },
|
|
49
|
+
{ ...CHECKS[2], run: async () => starterFinding() },
|
|
50
|
+
{ ...CHECKS[3], run: async () => (await configFindings(await sync))[0] },
|
|
51
|
+
{ ...CHECKS[4], run: async () => (await configFindings(await sync))[1] },
|
|
52
|
+
{
|
|
53
|
+
...CHECKS[5],
|
|
54
|
+
run: () => managedTemplateFinding(roots.lisaRoot, roots.projectRoot, safeShape, configState.config),
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
...CHECKS[6],
|
|
58
|
+
run: () => packageFinding(roots.lisaRoot, roots.projectRoot, safeShape),
|
|
59
|
+
},
|
|
60
|
+
{ ...CHECKS[7], run: () => instructionFinding(roots.projectRoot) },
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Probes over installed tooling and CI: hooks, plugins, workflows.
|
|
65
|
+
* @param context - Captured setup state shared by every probe
|
|
66
|
+
* @returns Registry entries for checks 8 through 10, in order
|
|
67
|
+
*/
|
|
68
|
+
function toolingProbes(context) {
|
|
69
|
+
const { roots, configState, safeShape, deadline, options } = context;
|
|
70
|
+
return [
|
|
71
|
+
{
|
|
72
|
+
...CHECKS[8],
|
|
73
|
+
run: () => hookFinding(roots.lisaRoot, roots.projectRoot, safeShape.types, configState.config, options.readHooksPath ?? readCoreHooksPath, deadline.remainingMs(), deadline.signal),
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
...CHECKS[9],
|
|
77
|
+
run: () => pluginFinding(roots.projectRoot, configState.config, safeShape.types, options.readInstalledPlugins ?? readInstalledClaudePlugins, deadline.remainingMs(), deadline.signal),
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
...CHECKS[10],
|
|
81
|
+
run: () => workflowFinding(roots.lisaRoot, roots.projectRoot, safeShape.types, configState.config),
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Probes over GitHub repository settings and the Expo splash contract.
|
|
87
|
+
* @param context - Captured setup state shared by every probe
|
|
88
|
+
* @returns Registry entries for checks 11 through 14, in order
|
|
89
|
+
*/
|
|
90
|
+
function repositoryProbes(context) {
|
|
91
|
+
const { roots, configState, safeShape, deadline, options, rulesets } = context;
|
|
92
|
+
return [
|
|
93
|
+
{
|
|
94
|
+
...CHECKS[11],
|
|
95
|
+
run: () => rulesetFinding(roots.lisaRoot, roots.projectRoot, safeShape.types, configState.config, rulesets, deadline.remainingMs(), deadline.signal),
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
...CHECKS[12],
|
|
99
|
+
run: () => declaredChecksDriftFinding(roots.projectRoot, configState.config, rulesets, deadline.remainingMs(), deadline.signal),
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
...CHECKS[13],
|
|
103
|
+
run: () => rulesetReachFinding(roots.lisaRoot, roots.projectRoot, configState.config, rulesets, options.readBranches ?? readGithubBranches, deadline.remainingMs(), deadline.signal),
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
...CHECKS[14],
|
|
107
|
+
run: () => splashExitFinding(roots.projectRoot, safeShape.types),
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Create the fixed-order probe registry from safely captured setup state.
|
|
113
|
+
* @param roots - Canonical project and Lisa roots
|
|
114
|
+
* @param roots.projectRoot - Canonical host project root
|
|
115
|
+
* @param roots.lisaRoot - Lisa package root holding the shipped templates
|
|
116
|
+
* @param configState - Whether `.lisa.config.json` is present, readable, and its contents
|
|
117
|
+
* @param shape - Detected project types and package.json
|
|
118
|
+
* @param deadline - Shared deadline bounding every probe
|
|
119
|
+
* @param options - Injectable readers that replace the live defaults
|
|
120
|
+
* @returns Every probe in the fixed registry order of {@link CHECKS}
|
|
121
|
+
*/
|
|
122
|
+
export function probes(roots, configState, shape, deadline, options) {
|
|
123
|
+
const context = {
|
|
124
|
+
roots,
|
|
125
|
+
configState,
|
|
126
|
+
shape,
|
|
127
|
+
safeShape: shape ?? { types: [], packageJson: undefined },
|
|
128
|
+
deadline,
|
|
129
|
+
options,
|
|
130
|
+
sync: runConfigSync(roots.projectRoot, {
|
|
131
|
+
dryRun: true,
|
|
132
|
+
reads: safeSyncReads(roots.projectRoot),
|
|
133
|
+
}),
|
|
134
|
+
rulesets: shareRulesetReader(options.readRulesets ?? readGithubRulesets),
|
|
135
|
+
};
|
|
136
|
+
return [
|
|
137
|
+
...localProbes(context),
|
|
138
|
+
...toolingProbes(context),
|
|
139
|
+
...repositoryProbes(context),
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=deterministic-probes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deterministic-probes.js","sourceRoot":"","sources":["../../src/health/deterministic-probes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAwB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EACL,0BAA0B,GAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,WAAW,GAEZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,cAAc,GAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAEpB,MAAM,+BAA+B,CAAC;AAgCvC,MAAM,CAAC,MAAM,MAAM,GAAoD;IACrE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE;IAC/C,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE;IAC9C,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE;IACjD,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE;IACjD,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,EAAE;IAC7C,EAAE,KAAK,EAAE,mBAAmB,EAAE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Q,CAAC,MAAM,CAChB;SACJ;QACD;YACE,GAAG,MAAM,CAAC,EAAE,CAAE;YACd,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC;SACjE;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,MAAM,CACpB,KAAkE,EAClE,WAA8B,EAC9B,KAAqC,EACrC,QAAwB,EACxB,OAAmC;IAEnC,MAAM,OAAO,GAAiB;QAC5B,KAAK;QACL,WAAW;QACX,KAAK;QACL,SAAS,EAAE,KAAK,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE;QACzD,QAAQ;QACR,OAAO;QACP,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE;YACrC,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC;SACxC,CAAC;QACF,QAAQ,EAAE,kBAAkB,CAAC,OAAO,CAAC,YAAY,IAAI,kBAAkB,CAAC;KACzE,CAAC;IACF,OAAO;QACL,GAAG,WAAW,CAAC,OAAO,CAAC;QACvB,GAAG,aAAa,CAAC,OAAO,CAAC;QACzB,GAAG,gBAAgB,CAAC,OAAO,CAAC;KAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -1,29 +1,6 @@
|
|
|
1
1
|
import { type HealthResult } from "./contract.js";
|
|
2
|
-
import { type
|
|
3
|
-
import { type InstalledPluginReader } from "./plugin-inspection.js";
|
|
2
|
+
import { type DeterministicHealthOptions } from "./deterministic-probes.js";
|
|
4
3
|
import { readGithubRulesets, type RulesetReader } from "./ruleset-inspection.js";
|
|
5
|
-
import { type BranchReader } from "./ruleset-reach-inspection.js";
|
|
6
|
-
/**
|
|
7
|
-
* Injectable deterministic-health collaborators. Reader overrides must honor
|
|
8
|
-
* their AbortSignal and release owned handles; the runner bounds its own return
|
|
9
|
-
* but cannot reclaim arbitrary handles created by caller-supplied JavaScript.
|
|
10
|
-
*/
|
|
11
|
-
export interface DeterministicHealthOptions {
|
|
12
|
-
/** Lisa package root containing stack templates. */
|
|
13
|
-
readonly lisaRoot?: string;
|
|
14
|
-
/** Total wall-clock deadline, including root/config/type setup. */
|
|
15
|
-
readonly deadlineMs?: number;
|
|
16
|
-
/** Injectable timestamp clock for contract tests. */
|
|
17
|
-
readonly now?: () => Date;
|
|
18
|
-
/** Injectable bounded detailed ruleset reader. */
|
|
19
|
-
readonly readRulesets?: RulesetReader;
|
|
20
|
-
/** Injectable bounded actual installed-plugin reader. */
|
|
21
|
-
readonly readInstalledPlugins?: InstalledPluginReader;
|
|
22
|
-
/** Injectable bounded repository hooks-path reader. */
|
|
23
|
-
readonly readHooksPath?: HooksPathReader;
|
|
24
|
-
/** Injectable bounded repository branch reader. */
|
|
25
|
-
readonly readBranches?: BranchReader;
|
|
26
|
-
}
|
|
27
4
|
/**
|
|
28
5
|
* Collect deterministic Health v1 without persistence, repair, installation,
|
|
29
6
|
* update checks, process-exit mutation, or model calls.
|
|
@@ -33,5 +10,5 @@ export interface DeterministicHealthOptions {
|
|
|
33
10
|
*/
|
|
34
11
|
export declare function runDeterministicHealth(projectPath: string, options?: DeterministicHealthOptions): Promise<HealthResult>;
|
|
35
12
|
export { readGithubRulesets };
|
|
36
|
-
export type { RulesetReader };
|
|
13
|
+
export type { DeterministicHealthOptions, RulesetReader };
|
|
37
14
|
//# sourceMappingURL=deterministic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deterministic.d.ts","sourceRoot":"","sources":["../../src/health/deterministic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deterministic.d.ts","sourceRoot":"","sources":["../../src/health/deterministic.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,0BAA0B,EAEhC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,kBAAkB,EAClB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAkEjC;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,YAAY,CAAC,CA4CvB;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,0BAA0B,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,53 +1,30 @@
|
|
|
1
1
|
/** Side-effect-free deterministic Health v1 collection. */
|
|
2
|
-
/* eslint-disable jsdoc/require-param-description, jsdoc/require-returns -- typed probe assembly helpers are self-describing */
|
|
3
2
|
import { lstat, realpath } from "node:fs/promises";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import { fileURLToPath } from "node:url";
|
|
6
|
-
import { runConfigSync } from "../sync/config-sync.js";
|
|
7
5
|
import { summarizeHealthFindings, validateHealthResult, } from "./contract.js";
|
|
8
6
|
import { HealthDeadline } from "./deadline.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { splashExitFinding } from "./expo-splash-inspection.js";
|
|
7
|
+
import { loadConfigState } from "./deterministic-inputs.js";
|
|
8
|
+
import { CHECKS, probes, } from "./deterministic-probes.js";
|
|
12
9
|
import { deterministicFinding } from "./finding-utils.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { readInstalledClaudePlugins, } from "./plugin-inspection.js";
|
|
16
|
-
import { configFindings, instructionFinding, projectStateFinding, starterFinding, wikiFinding, } from "./project-probes.js";
|
|
17
|
-
import { readGithubRulesets, rulesetFinding, } from "./ruleset-inspection.js";
|
|
18
|
-
import { readGithubBranches, rulesetReachFinding, } from "./ruleset-reach-inspection.js";
|
|
19
|
-
import { detectHealthProjectShape, } from "./template-inspection.js";
|
|
10
|
+
import { readGithubRulesets, } from "./ruleset-inspection.js";
|
|
11
|
+
import { detectHealthProjectShape } from "./template-inspection.js";
|
|
20
12
|
const DEFAULT_DEADLINE_MS = 110_000;
|
|
21
|
-
const CHECKS = [
|
|
22
|
-
{ check: "project.state", unavailable: "fail" },
|
|
23
|
-
{ check: "project.wiki", unavailable: "fail" },
|
|
24
|
-
{ check: "starters.remote", unavailable: "warn" },
|
|
25
|
-
{ check: "config.required", unavailable: "fail" },
|
|
26
|
-
{ check: "config.sync", unavailable: "fail" },
|
|
27
|
-
{ check: "templates.managed", unavailable: "fail" },
|
|
28
|
-
{ check: "package.conformance", unavailable: "fail" },
|
|
29
|
-
{ check: "instructions.canonical", unavailable: "fail" },
|
|
30
|
-
{ check: "hooks.managed", unavailable: "fail" },
|
|
31
|
-
{ check: "plugins.current", unavailable: "warn" },
|
|
32
|
-
{ check: "ci.workflows", unavailable: "fail" },
|
|
33
|
-
{ check: "github.rulesets", unavailable: "warn" },
|
|
34
|
-
{ check: "github.declared-checks", unavailable: "warn" },
|
|
35
|
-
{ check: "github.ruleset-reach", unavailable: "warn" },
|
|
36
|
-
{ check: "expo.splash-exit", unavailable: "warn" },
|
|
37
|
-
];
|
|
38
13
|
/**
|
|
39
14
|
* Stable fallback when a check cannot complete inside the shared deadline.
|
|
40
|
-
* @param check
|
|
41
|
-
* @param status
|
|
15
|
+
* @param check - Stable check identifier
|
|
16
|
+
* @param status - Status the check reports when it cannot be observed
|
|
17
|
+
* @returns The unavailable finding for that check
|
|
42
18
|
*/
|
|
43
19
|
function unavailableFinding(check, status) {
|
|
44
20
|
return deterministicFinding(check, status, `${check} could not be safely observed within the deterministic deadline.`);
|
|
45
21
|
}
|
|
46
22
|
/**
|
|
47
23
|
* Build a validated immutable HealthResult from ordered findings.
|
|
48
|
-
* @param started
|
|
49
|
-
* @param completed
|
|
50
|
-
* @param findings
|
|
24
|
+
* @param started - When collection started
|
|
25
|
+
* @param completed - When collection finished; clamped to never precede start
|
|
26
|
+
* @param findings - Findings in fixed registry order
|
|
27
|
+
* @returns The validated deterministic result
|
|
51
28
|
*/
|
|
52
29
|
function result(started, completed, findings) {
|
|
53
30
|
const safeCompleted = completed < started ? started : completed;
|
|
@@ -63,8 +40,9 @@ function result(started, completed, findings) {
|
|
|
63
40
|
}
|
|
64
41
|
/**
|
|
65
42
|
* Resolve canonical project and Lisa roots inside the shared deadline.
|
|
66
|
-
* @param projectPath
|
|
67
|
-
* @param lisaPath
|
|
43
|
+
* @param projectPath - Host project path as supplied
|
|
44
|
+
* @param lisaPath - Lisa package root as supplied
|
|
45
|
+
* @returns Both roots with symlinks resolved
|
|
68
46
|
*/
|
|
69
47
|
async function resolveRoots(projectPath, lisaPath) {
|
|
70
48
|
const [projectRoot, lisaRoot] = await Promise.all([
|
|
@@ -76,75 +54,6 @@ async function resolveRoots(projectPath, lisaPath) {
|
|
|
76
54
|
}
|
|
77
55
|
return { projectRoot, lisaRoot };
|
|
78
56
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Create the fixed-order probe registry from safely captured setup state.
|
|
81
|
-
* @param roots
|
|
82
|
-
* @param roots.projectRoot
|
|
83
|
-
* @param roots.lisaRoot
|
|
84
|
-
* @param configState
|
|
85
|
-
* @param shape
|
|
86
|
-
* @param deadline
|
|
87
|
-
* @param options
|
|
88
|
-
*/
|
|
89
|
-
// eslint-disable-next-line max-lines-per-function -- fixed-order registry keeps the complete contract auditable
|
|
90
|
-
function probes(roots, configState, shape, deadline, options) {
|
|
91
|
-
const safeShape = shape ?? {
|
|
92
|
-
types: [],
|
|
93
|
-
packageJson: undefined,
|
|
94
|
-
};
|
|
95
|
-
const sync = runConfigSync(roots.projectRoot, {
|
|
96
|
-
dryRun: true,
|
|
97
|
-
reads: safeSyncReads(roots.projectRoot),
|
|
98
|
-
});
|
|
99
|
-
const rulesets = shareRulesetReader(options.readRulesets ?? readGithubRulesets);
|
|
100
|
-
return [
|
|
101
|
-
{
|
|
102
|
-
...CHECKS[0],
|
|
103
|
-
run: () => projectStateFinding(roots.projectRoot, configState, shape),
|
|
104
|
-
},
|
|
105
|
-
{ ...CHECKS[1], run: () => wikiFinding(roots.projectRoot) },
|
|
106
|
-
{ ...CHECKS[2], run: async () => starterFinding() },
|
|
107
|
-
{ ...CHECKS[3], run: async () => (await configFindings(await sync))[0] },
|
|
108
|
-
{ ...CHECKS[4], run: async () => (await configFindings(await sync))[1] },
|
|
109
|
-
{
|
|
110
|
-
...CHECKS[5],
|
|
111
|
-
run: () => managedTemplateFinding(roots.lisaRoot, roots.projectRoot, safeShape, configState.config),
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
...CHECKS[6],
|
|
115
|
-
run: () => packageFinding(roots.lisaRoot, roots.projectRoot, safeShape),
|
|
116
|
-
},
|
|
117
|
-
{ ...CHECKS[7], run: () => instructionFinding(roots.projectRoot) },
|
|
118
|
-
{
|
|
119
|
-
...CHECKS[8],
|
|
120
|
-
run: () => hookFinding(roots.lisaRoot, roots.projectRoot, safeShape.types, configState.config, options.readHooksPath ?? readCoreHooksPath, deadline.remainingMs(), deadline.signal),
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
...CHECKS[9],
|
|
124
|
-
run: () => pluginFinding(roots.projectRoot, configState.config, safeShape.types, options.readInstalledPlugins ?? readInstalledClaudePlugins, deadline.remainingMs(), deadline.signal),
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
...CHECKS[10],
|
|
128
|
-
run: () => workflowFinding(roots.lisaRoot, roots.projectRoot, safeShape.types, configState.config),
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
...CHECKS[11],
|
|
132
|
-
run: () => rulesetFinding(roots.lisaRoot, roots.projectRoot, safeShape.types, configState.config, rulesets, deadline.remainingMs(), deadline.signal),
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
...CHECKS[12],
|
|
136
|
-
run: () => declaredChecksDriftFinding(roots.projectRoot, configState.config, rulesets, deadline.remainingMs(), deadline.signal),
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
...CHECKS[13],
|
|
140
|
-
run: () => rulesetReachFinding(roots.lisaRoot, roots.projectRoot, configState.config, rulesets, options.readBranches ?? readGithubBranches, deadline.remainingMs(), deadline.signal),
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
...CHECKS[14],
|
|
144
|
-
run: () => splashExitFinding(roots.projectRoot, safeShape.types),
|
|
145
|
-
},
|
|
146
|
-
];
|
|
147
|
-
}
|
|
148
57
|
/**
|
|
149
58
|
* Collect deterministic Health v1 without persistence, repair, installation,
|
|
150
59
|
* update checks, process-exit mutation, or model calls.
|
|
@@ -179,5 +88,4 @@ export async function runDeterministicHealth(projectPath, options = {}) {
|
|
|
179
88
|
}
|
|
180
89
|
}
|
|
181
90
|
export { readGithubRulesets };
|
|
182
|
-
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
|
|
183
91
|
//# sourceMappingURL=deterministic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deterministic.js","sourceRoot":"","sources":["../../src/health/deterministic.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D
|
|
1
|
+
{"version":3,"file":"deterministic.js","sourceRoot":"","sources":["../../src/health/deterministic.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,uBAAuB,EAIvB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACL,MAAM,EAEN,MAAM,GACP,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,kBAAkB,GAEnB,MAAM,yBAAyB,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Q,GAAG,MAAM,OAAO,CAAC,GAAG,CAChC,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAC/D,QAAQ,CAAC,GAAG,CACV,KAAK,CAAC,GAAG,EACT,kBAAkB,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CACnD,CACF,CACF,CAAC;QACF,OAAO,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC1C,CAAC;YAAS,CAAC;QACT,QAAQ,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;AACH,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import type { HealthFinding, HealthStatus } from "./contract.js";
|
|
3
3
|
/**
|
|
4
4
|
* Create one deterministic finding.
|
|
5
|
-
* @param check
|
|
6
|
-
* @param status
|
|
7
|
-
* @param reason
|
|
5
|
+
* @param check - Stable check identifier
|
|
6
|
+
* @param status - Outcome of the check
|
|
7
|
+
* @param reason - Bounded human-readable explanation
|
|
8
|
+
* @returns The finding, tagged with the deterministic layer
|
|
8
9
|
*/
|
|
9
10
|
export declare function deterministicFinding(check: string, status: HealthStatus, reason: string): HealthFinding;
|
|
10
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding-utils.d.ts","sourceRoot":"","sources":["../../src/health/finding-utils.ts"],"names":[],"mappings":"AAAA,4DAA4D;
|
|
1
|
+
{"version":3,"file":"finding-utils.d.ts","sourceRoot":"","sources":["../../src/health/finding-utils.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,MAAM,GACb,aAAa,CAEf;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAU3E"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create one deterministic finding.
|
|
3
|
-
* @param check
|
|
4
|
-
* @param status
|
|
5
|
-
* @param reason
|
|
3
|
+
* @param check - Stable check identifier
|
|
4
|
+
* @param status - Outcome of the check
|
|
5
|
+
* @param reason - Bounded human-readable explanation
|
|
6
|
+
* @returns The finding, tagged with the deterministic layer
|
|
6
7
|
*/
|
|
7
8
|
export function deterministicFinding(check, status, reason) {
|
|
8
9
|
return { check, layer: "deterministic", status, reason };
|
|
9
10
|
}
|
|
10
|
-
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
|
|
11
11
|
/**
|
|
12
12
|
* Format a bounded sorted identifier list without exposing values.
|
|
13
13
|
* @param label - Stable human prefix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding-utils.js","sourceRoot":"","sources":["../../src/health/finding-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"finding-utils.js","sourceRoot":"","sources":["../../src/health/finding-utils.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,KAAa,EACb,MAAoB,EACpB,MAAc;IAEd,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC3D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa,EAAE,KAAwB;IACjE,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACtD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAC1B,CAAC;IACF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClC,MAAM,MAAM,GACV,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM;QAC1B,CAAC,CAAC,MAAM,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,QAAQ;QAC5C,CAAC,CAAC,EAAE,CAAC;IACT,OAAO,GAAG,KAAK,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -6,46 +6,51 @@ import { type InstalledPluginReader } from "./plugin-inspection.js";
|
|
|
6
6
|
import { type HealthProjectShape } from "./template-inspection.js";
|
|
7
7
|
/**
|
|
8
8
|
* Managed template finding.
|
|
9
|
-
* @param lisaRoot
|
|
10
|
-
* @param projectRoot
|
|
11
|
-
* @param shape
|
|
12
|
-
* @param config
|
|
9
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
10
|
+
* @param projectRoot - Canonical host project root
|
|
11
|
+
* @param shape - Detected project types and package.json
|
|
12
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
13
|
+
* @returns Pass, or fail naming every drifted managed file
|
|
13
14
|
*/
|
|
14
15
|
export declare function managedTemplateFinding(lisaRoot: string, projectRoot: string, shape: HealthProjectShape, config: Readonly<Record<string, unknown>>): Promise<HealthFinding>;
|
|
15
16
|
/**
|
|
16
17
|
* Package governance finding.
|
|
17
|
-
* @param lisaRoot
|
|
18
|
-
* @param projectRoot
|
|
19
|
-
* @param shape
|
|
18
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
19
|
+
* @param projectRoot - Canonical host project root
|
|
20
|
+
* @param shape - Detected project types and package.json
|
|
21
|
+
* @returns Pass when package.json conforms, otherwise fail
|
|
20
22
|
*/
|
|
21
23
|
export declare function packageFinding(lisaRoot: string, projectRoot: string, shape: HealthProjectShape): Promise<HealthFinding>;
|
|
22
24
|
/**
|
|
23
25
|
* Hook bytes, mode, and installed-state finding.
|
|
24
|
-
* @param lisaRoot
|
|
25
|
-
* @param projectRoot
|
|
26
|
-
* @param types
|
|
27
|
-
* @param config
|
|
28
|
-
* @param reader
|
|
29
|
-
* @param timeoutMs
|
|
30
|
-
* @param signal
|
|
26
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
27
|
+
* @param projectRoot - Canonical host project root
|
|
28
|
+
* @param types - Detected project stack types
|
|
29
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
30
|
+
* @param reader - Reads the repository's configured hooks path
|
|
31
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
32
|
+
* @param signal - Cancellation shared with the health deadline
|
|
33
|
+
* @returns Pass, warn when hook state is unreadable, or fail on drift
|
|
31
34
|
*/
|
|
32
35
|
export declare function hookFinding(lisaRoot: string, projectRoot: string, types: readonly ProjectType[], config: Readonly<Record<string, unknown>>, reader: HooksPathReader, timeoutMs: number, signal: AbortSignal): Promise<HealthFinding>;
|
|
33
36
|
/**
|
|
34
37
|
* Actual enabled and installed plugin finding.
|
|
35
|
-
* @param projectRoot
|
|
36
|
-
* @param config
|
|
37
|
-
* @param types
|
|
38
|
-
* @param reader
|
|
39
|
-
* @param timeoutMs
|
|
40
|
-
* @param signal
|
|
38
|
+
* @param projectRoot - Canonical host project root
|
|
39
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
40
|
+
* @param types - Detected project stack types
|
|
41
|
+
* @param reader - Reads the plugins Claude Code reports as installed
|
|
42
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
43
|
+
* @param signal - Cancellation shared with the health deadline
|
|
44
|
+
* @returns Pass, warn when plugin state is unreadable, or fail with the remedy
|
|
41
45
|
*/
|
|
42
46
|
export declare function pluginFinding(projectRoot: string, config: Readonly<Record<string, unknown>>, types: readonly ProjectType[], reader: InstalledPluginReader, timeoutMs: number, signal: AbortSignal): Promise<HealthFinding>;
|
|
43
47
|
/**
|
|
44
48
|
* Workflow presence, managed bytes, and reusable-input contract finding.
|
|
45
|
-
* @param lisaRoot
|
|
46
|
-
* @param projectRoot
|
|
47
|
-
* @param types
|
|
48
|
-
* @param config
|
|
49
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
50
|
+
* @param projectRoot - Canonical host project root
|
|
51
|
+
* @param types - Detected project stack types
|
|
52
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
53
|
+
* @returns Pass, warn for callers Lisa could not check, or fail on drift
|
|
49
54
|
*/
|
|
50
55
|
export declare function workflowFinding(lisaRoot: string, projectRoot: string, types: readonly ProjectType[], config: Readonly<Record<string, unknown>>): Promise<HealthFinding>;
|
|
51
56
|
//# sourceMappingURL=governance-probes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governance-probes.d.ts","sourceRoot":"","sources":["../../src/health/governance-probes.ts"],"names":[],"mappings":"AAAA,2EAA2E;
|
|
1
|
+
{"version":3,"file":"governance-probes.d.ts","sourceRoot":"","sources":["../../src/health/governance-probes.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAQlC;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,OAAO,CAAC,aAAa,CAAC,CAmBxB;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,aAAa,CAAC,CAkBxB;AACD;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,CAwBxB;AACD;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,qBAAqB,EAC7B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,CA+BxB;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,OAAO,CAAC,aAAa,CAAC,CAyBxB"}
|
|
@@ -8,10 +8,11 @@ const PLUGIN_REMEDY = "Run `lisa apply .` in this project to register Lisa's Cla
|
|
|
8
8
|
const WORKFLOW_CHECK = "ci.workflows";
|
|
9
9
|
/**
|
|
10
10
|
* Managed template finding.
|
|
11
|
-
* @param lisaRoot
|
|
12
|
-
* @param projectRoot
|
|
13
|
-
* @param shape
|
|
14
|
-
* @param config
|
|
11
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
12
|
+
* @param projectRoot - Canonical host project root
|
|
13
|
+
* @param shape - Detected project types and package.json
|
|
14
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
15
|
+
* @returns Pass, or fail naming every drifted managed file
|
|
15
16
|
*/
|
|
16
17
|
export async function managedTemplateFinding(lisaRoot, projectRoot, shape, config) {
|
|
17
18
|
const drift = await inspectManagedTemplates(lisaRoot, projectRoot, shape.types, "managed", config);
|
|
@@ -21,9 +22,10 @@ export async function managedTemplateFinding(lisaRoot, projectRoot, shape, confi
|
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Package governance finding.
|
|
24
|
-
* @param lisaRoot
|
|
25
|
-
* @param projectRoot
|
|
26
|
-
* @param shape
|
|
25
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
26
|
+
* @param projectRoot - Canonical host project root
|
|
27
|
+
* @param shape - Detected project types and package.json
|
|
28
|
+
* @returns Pass when package.json conforms, otherwise fail
|
|
27
29
|
*/
|
|
28
30
|
export async function packageFinding(lisaRoot, projectRoot, shape) {
|
|
29
31
|
const conforms = await packageJsonConforms(lisaRoot, projectRoot, shape.types, shape.packageJson);
|
|
@@ -33,13 +35,14 @@ export async function packageFinding(lisaRoot, projectRoot, shape) {
|
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* Hook bytes, mode, and installed-state finding.
|
|
36
|
-
* @param lisaRoot
|
|
37
|
-
* @param projectRoot
|
|
38
|
-
* @param types
|
|
39
|
-
* @param config
|
|
40
|
-
* @param reader
|
|
41
|
-
* @param timeoutMs
|
|
42
|
-
* @param signal
|
|
38
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
39
|
+
* @param projectRoot - Canonical host project root
|
|
40
|
+
* @param types - Detected project stack types
|
|
41
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
42
|
+
* @param reader - Reads the repository's configured hooks path
|
|
43
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
44
|
+
* @param signal - Cancellation shared with the health deadline
|
|
45
|
+
* @returns Pass, warn when hook state is unreadable, or fail on drift
|
|
43
46
|
*/
|
|
44
47
|
export async function hookFinding(lisaRoot, projectRoot, types, config, reader, timeoutMs, signal) {
|
|
45
48
|
const [templateDrift, installed] = await Promise.all([
|
|
@@ -56,12 +59,13 @@ export async function hookFinding(lisaRoot, projectRoot, types, config, reader,
|
|
|
56
59
|
}
|
|
57
60
|
/**
|
|
58
61
|
* Actual enabled and installed plugin finding.
|
|
59
|
-
* @param projectRoot
|
|
60
|
-
* @param config
|
|
61
|
-
* @param types
|
|
62
|
-
* @param reader
|
|
63
|
-
* @param timeoutMs
|
|
64
|
-
* @param signal
|
|
62
|
+
* @param projectRoot - Canonical host project root
|
|
63
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
64
|
+
* @param types - Detected project stack types
|
|
65
|
+
* @param reader - Reads the plugins Claude Code reports as installed
|
|
66
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
67
|
+
* @param signal - Cancellation shared with the health deadline
|
|
68
|
+
* @returns Pass, warn when plugin state is unreadable, or fail with the remedy
|
|
65
69
|
*/
|
|
66
70
|
export async function pluginFinding(projectRoot, config, types, reader, timeoutMs, signal) {
|
|
67
71
|
const inspected = await inspectPlugins(projectRoot, config, types, reader, timeoutMs, signal);
|
|
@@ -78,10 +82,11 @@ export async function pluginFinding(projectRoot, config, types, reader, timeoutM
|
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
84
|
* Workflow presence, managed bytes, and reusable-input contract finding.
|
|
81
|
-
* @param lisaRoot
|
|
82
|
-
* @param projectRoot
|
|
83
|
-
* @param types
|
|
84
|
-
* @param config
|
|
85
|
+
* @param lisaRoot - Lisa package root holding the shipped templates
|
|
86
|
+
* @param projectRoot - Canonical host project root
|
|
87
|
+
* @param types - Detected project stack types
|
|
88
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
89
|
+
* @returns Pass, warn for callers Lisa could not check, or fail on drift
|
|
85
90
|
*/
|
|
86
91
|
export async function workflowFinding(lisaRoot, projectRoot, types, config) {
|
|
87
92
|
const [managed, missing, inputs] = await Promise.all([
|
|
@@ -97,5 +102,4 @@ export async function workflowFinding(lisaRoot, projectRoot, types, config) {
|
|
|
97
102
|
? deterministicFinding(WORKFLOW_CHECK, "warn", namedReason("Workflow callers Lisa could not check", inputs.unknown))
|
|
98
103
|
: deterministicFinding(WORKFLOW_CHECK, "pass", "CI workflows are present and caller inputs match shipped contracts.");
|
|
99
104
|
}
|
|
100
|
-
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
|
|
101
105
|
//# sourceMappingURL=governance-probes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governance-probes.js","sourceRoot":"","sources":["../../src/health/governance-probes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"governance-probes.js","sourceRoot":"","sources":["../../src/health/governance-probes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EACL,uBAAuB,GAExB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,GAEf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,GAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,UAAU,GAAG,eAAe,CAAC;AACnC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,MAAM,aAAa,GACjB,4FAA4F,CAAC;AAC/F,MAAM,cAAc,GAAG,cAAc,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,QAAgB,EAChB,WAAmB,EACnB,KAAyB,EACzB,MAAyC;IAEzC,MAAM,KAAK,GAAG,MAAM,uBAAuB,CACzC,QAAQ,EACR,WAAW,EACX,KA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