@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
|
@@ -17,9 +17,10 @@ export type HookInstallationInspection = {
|
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Default fixed-argv local git-config reader.
|
|
20
|
-
* @param projectRoot
|
|
21
|
-
* @param timeoutMs
|
|
22
|
-
* @param signal
|
|
20
|
+
* @param projectRoot - Canonical host project root
|
|
21
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
22
|
+
* @param signal - Cancellation shared with the health deadline
|
|
23
|
+
* @returns The configured hooks path, or undefined when none is set
|
|
23
24
|
*/
|
|
24
25
|
export declare const readCoreHooksPath: HooksPathReader;
|
|
25
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook-inspection.d.ts","sourceRoot":"","sources":["../../src/health/hook-inspection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hook-inspection.d.ts","sourceRoot":"","sources":["../../src/health/hook-inspection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAcrD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAC5B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;AAEjC,iCAAiC;AACjC,MAAM,MAAM,0BAA0B,GAClC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,eAoC5B,CAAC;AA0BL;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,0BAA0B,CAAC,CA4BrC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Installed and executable Git-hook inspection without running hooks. */
|
|
2
|
-
/* eslint-disable jsdoc/require-param-description, jsdoc/require-returns -- typed hook readers are self-describing */
|
|
3
2
|
import { execFile } from "node:child_process";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import { inspectRailsHooks } from "../../scripts/lib/rails-hooks.mjs";
|
|
5
|
+
import { spawnTarget } from "../utils/resolve-executable.js";
|
|
6
6
|
import { readProjectFile } from "./read-only-fs.js";
|
|
7
7
|
const GIT_TIMEOUT_MS = 10_000;
|
|
8
8
|
const MAX_GIT_OUTPUT_BYTES = 16 * 1024;
|
|
@@ -15,14 +15,20 @@ const HUSKY_HOOKS = [
|
|
|
15
15
|
];
|
|
16
16
|
/**
|
|
17
17
|
* Default fixed-argv local git-config reader.
|
|
18
|
-
* @param projectRoot
|
|
19
|
-
* @param timeoutMs
|
|
20
|
-
* @param signal
|
|
18
|
+
* @param projectRoot - Canonical host project root
|
|
19
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
20
|
+
* @param signal - Cancellation shared with the health deadline
|
|
21
|
+
* @returns The configured hooks path, or undefined when none is set
|
|
21
22
|
*/
|
|
22
23
|
export const readCoreHooksPath = async (projectRoot, timeoutMs, signal) => new Promise((resolve, reject) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const target = spawnTarget("git", [
|
|
25
|
+
"config",
|
|
26
|
+
"--local",
|
|
27
|
+
"--get",
|
|
28
|
+
"core.hooksPath",
|
|
29
|
+
]);
|
|
30
|
+
execFile(target.file, [...target.args], {
|
|
31
|
+
windowsVerbatimArguments: target.windowsVerbatimArguments,
|
|
26
32
|
cwd: projectRoot,
|
|
27
33
|
encoding: "utf8",
|
|
28
34
|
maxBuffer: MAX_GIT_OUTPUT_BYTES,
|
|
@@ -43,9 +49,10 @@ export const readCoreHooksPath = async (projectRoot, timeoutMs, signal) => new P
|
|
|
43
49
|
});
|
|
44
50
|
/**
|
|
45
51
|
* Check executable regular files under one project-relative prefix.
|
|
46
|
-
* @param projectRoot
|
|
47
|
-
* @param prefix
|
|
48
|
-
* @param names
|
|
52
|
+
* @param projectRoot - Canonical host project root
|
|
53
|
+
* @param prefix - Project-relative directory holding the hooks
|
|
54
|
+
* @param names - Hook file names expected under the prefix
|
|
55
|
+
* @returns Project-relative paths that are missing or not executable
|
|
49
56
|
*/
|
|
50
57
|
async function executableDrift(projectRoot, prefix, names) {
|
|
51
58
|
const checks = await Promise.all(names.map(async (name) => {
|
|
@@ -93,5 +100,4 @@ export async function inspectHookInstallation(projectRoot, types, reader, timeou
|
|
|
93
100
|
? { status: "pass", drift: [] }
|
|
94
101
|
: { status: "fail", drift };
|
|
95
102
|
}
|
|
96
|
-
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
|
|
97
103
|
//# sourceMappingURL=hook-inspection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook-inspection.js","sourceRoot":"","sources":["../../src/health/hook-inspection.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"hook-inspection.js","sourceRoot":"","sources":["../../src/health/hook-inspection.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,cAAc,GAAG,MAAM,CAAC;AAC9B,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,CAAC;AACvC,MAAM,WAAW,GAAG;IAClB,YAAY;IACZ,eAAe;IACf,YAAY;IACZ,UAAU;IACV,oBAAoB;CACZ,CAAC;AAkBX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAoB,KAAK,EACrD,WAAW,EACX,SAAS,EACT,MAAM,EACN,EAAE,CACF,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,EAAE;QAChC,QAAQ;QACR,SAAS;QACT,OAAO;QACP,gBAAgB;KACjB,CAAC,CAAC;IACH,QAAQ,CACN,MAAM,CAAC,IAAI,EACX,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,EAChB;QACE,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;QACzD,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,oBAAoB;QAC/B,MAAM;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;KAC1D,EACD,CA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AM,EAAE,KAAK,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -18,14 +18,16 @@ export type PluginInspection = {
|
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* Default fixed-argv Claude installed-plugin reader.
|
|
21
|
-
* @param projectRoot
|
|
22
|
-
* @param timeoutMs
|
|
23
|
-
* @param signal
|
|
21
|
+
* @param projectRoot - Canonical host project root
|
|
22
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
23
|
+
* @param signal - Cancellation shared with the health deadline
|
|
24
|
+
* @returns Sorted ids of the plugins installed for this project
|
|
24
25
|
*/
|
|
25
26
|
export declare const readInstalledClaudePlugins: InstalledPluginReader;
|
|
26
27
|
/**
|
|
27
28
|
* Resolve configured harness without accepting invalid strings.
|
|
28
|
-
* @param config
|
|
29
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
30
|
+
* @returns The configured harness, or undefined when the value is not one Lisa supports
|
|
29
31
|
*/
|
|
30
32
|
export declare function configuredHarness(config: Readonly<Record<string, unknown>>): Harness | undefined;
|
|
31
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-inspection.d.ts","sourceRoot":"","sources":["../../src/health/plugin-inspection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-inspection.d.ts","sourceRoot":"","sources":["../../src/health/plugin-inspection.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAiB3B;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;AAEhC,4CAA4C;AAC5C,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBA6CrC,CAAC;AAEL;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,OAAO,GAAG,SAAS,CAerB;AAED;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,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,gBAAgB,CAAC,CAmD3B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** Bounded actual plugin-installation inspection for deterministic health. */
|
|
2
|
-
/* eslint-disable jsdoc/require-param-description, jsdoc/require-returns -- typed plugin readers are self-describing */
|
|
3
2
|
import { execFile } from "node:child_process";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import { DEFAULT_HARNESS, harnessIncludesAgent, } from "../core/config.js";
|
|
6
5
|
import { selectProjectLisaPluginsFromState } from "../core/lisa-plugin-selection.js";
|
|
7
6
|
import { PLUGIN_LIST_MAX_CAPTURE_BYTES } from "../core/plugin-command.js";
|
|
8
7
|
import { getPackageVersion } from "../cli/version.js";
|
|
8
|
+
import { spawnTarget } from "../utils/resolve-executable.js";
|
|
9
9
|
import { readProjectJsonObject, readProjectText } from "./read-only-fs.js";
|
|
10
10
|
// `claude plugin list --json` lists every project-scope registration on the
|
|
11
11
|
// machine, so a long-lived workstation's list runs to thousands of entries and
|
|
@@ -18,14 +18,15 @@ const MAX_INSTALLED_PLUGINS = 200_000;
|
|
|
18
18
|
const PLUGIN_TIMEOUT_MS = 15_000;
|
|
19
19
|
/**
|
|
20
20
|
* Default fixed-argv Claude installed-plugin reader.
|
|
21
|
-
* @param projectRoot
|
|
22
|
-
* @param timeoutMs
|
|
23
|
-
* @param signal
|
|
21
|
+
* @param projectRoot - Canonical host project root
|
|
22
|
+
* @param timeoutMs - Bound for the external command, in milliseconds
|
|
23
|
+
* @param signal - Cancellation shared with the health deadline
|
|
24
|
+
* @returns Sorted ids of the plugins installed for this project
|
|
24
25
|
*/
|
|
25
26
|
export const readInstalledClaudePlugins = async (projectRoot, timeoutMs, signal) => new Promise((resolve, reject) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
const target = spawnTarget("claude", ["plugin", "list", "--json"]);
|
|
28
|
+
execFile(target.file, [...target.args], {
|
|
29
|
+
windowsVerbatimArguments: target.windowsVerbatimArguments,
|
|
29
30
|
cwd: projectRoot,
|
|
30
31
|
encoding: "utf8",
|
|
31
32
|
maxBuffer: MAX_PLUGIN_OUTPUT_BYTES,
|
|
@@ -60,7 +61,8 @@ export const readInstalledClaudePlugins = async (projectRoot, timeoutMs, signal)
|
|
|
60
61
|
});
|
|
61
62
|
/**
|
|
62
63
|
* Resolve configured harness without accepting invalid strings.
|
|
63
|
-
* @param config
|
|
64
|
+
* @param config - Parsed `.lisa.config.json` contents
|
|
65
|
+
* @returns The configured harness, or undefined when the value is not one Lisa supports
|
|
64
66
|
*/
|
|
65
67
|
export function configuredHarness(config) {
|
|
66
68
|
const harness = config.harness ?? DEFAULT_HARNESS;
|
|
@@ -129,5 +131,4 @@ export async function inspectPlugins(projectRoot, config, types, reader, timeout
|
|
|
129
131
|
? { status: "pass", drift: [] }
|
|
130
132
|
: { status: "fail", drift: missing };
|
|
131
133
|
}
|
|
132
|
-
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
|
|
133
134
|
//# sourceMappingURL=plugin-inspection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-inspection.js","sourceRoot":"","sources":["../../src/health/plugin-inspection.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"plugin-inspection.js","sourceRoot":"","sources":["../../src/health/plugin-inspection.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,eAAe,EACf,oBAAoB,GAGrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE3E,4EAA4E;AAC5E,+EAA+E;AAC/E,2EAA2E;AAC3E,4EAA4E;AAC5E,6EAA6E;AAC7E,sDAAsD;AACtD,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;AAC9D,MAAM,qBAAqB,GAAG,OAAO,CAAC;AACtC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAmBjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA0B,KAAK,EACpE,WAAW,EACX,SAAS,EACT,MAAM,EACN,EAAE,CACF,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAAM,MAAM,GAAG,WAAW,C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AAM,CAAC,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,KAAK,CAClE,GAAG,EAAE,CAAC,SAAS,CAChB,CAAC;IACF,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO;YACL,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,CAAC,wCAAwC,CAAC;SAClD,CAAC;IACJ,CAAC;IACD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACrE,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC;QACzB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;QAC/B,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACzC,CAAC"}
|
package/dist/health/prepare.js
CHANGED
|
@@ -11,21 +11,37 @@ import { createHealthEvaluationRequestEnvelope, resolveHealthProtocolProjectRoot
|
|
|
11
11
|
export async function prepareHealthEvaluation(projectPath, options = {}) {
|
|
12
12
|
const root = await resolveHealthProtocolProjectRoot(projectPath);
|
|
13
13
|
const { timeoutMs, ...deterministicOptions } = options;
|
|
14
|
-
|
|
15
|
-
let captured;
|
|
16
|
-
await runHealth(root, {
|
|
14
|
+
const request = await captureCallback(deliver => runHealth(root, {
|
|
17
15
|
...deterministicOptions,
|
|
18
16
|
agentic: {
|
|
19
17
|
enabled: true,
|
|
20
18
|
...(timeoutMs === undefined ? {} : { timeoutMs }),
|
|
21
|
-
evaluator:
|
|
22
|
-
|
|
19
|
+
evaluator: evaluated => {
|
|
20
|
+
deliver(evaluated);
|
|
23
21
|
return Promise.resolve(Object.freeze({ status: "unavailable" }));
|
|
24
22
|
},
|
|
25
23
|
},
|
|
26
|
-
});
|
|
27
|
-
return
|
|
24
|
+
}));
|
|
25
|
+
return request === undefined
|
|
28
26
|
? undefined
|
|
29
|
-
: createHealthEvaluationRequestEnvelope(root,
|
|
27
|
+
: createHealthEvaluationRequestEnvelope(root, request);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Runs `body` with a callback and reports the value the callback received, once
|
|
31
|
+
* `body` has settled. The value travels through a promise rather than a
|
|
32
|
+
* variable: after `body` settles, the promise is either already resolved or
|
|
33
|
+
* never will be, and racing it against an already-resolved `undefined` reads
|
|
34
|
+
* which.
|
|
35
|
+
* @param body - Work that may call the callback, at most meaningfully once
|
|
36
|
+
* @returns The first value the callback received, or undefined if never called
|
|
37
|
+
*/
|
|
38
|
+
function captureCallback(body) {
|
|
39
|
+
return new Promise((resolve, reject) => {
|
|
40
|
+
const delivered = new Promise(deliver => {
|
|
41
|
+
Promise.resolve()
|
|
42
|
+
.then(() => body(deliver))
|
|
43
|
+
.then(() => resolve(Promise.race([delivered, Promise.resolve(undefined)])), reject);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
30
46
|
}
|
|
31
47
|
//# sourceMappingURL=prepare.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../../src/health/prepare.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,EAA6B,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EACL,qCAAqC,EAErC,gCAAgC,GACjC,MAAM,0BAA0B,CAAC;AAOlC;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,WAAmB,EACnB,UAA0C,EAAE;IAE5C,MAAM,IAAI,GAAG,MAAM,gCAAgC,CAAC,WAAW,CAAC,CAAC;IACjE,MAAM,EAAE,SAAS,EAAE,GAAG,oBAAoB,EAAE,GAAG,OAAO,CAAC;IACvD,
|
|
1
|
+
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../../src/health/prepare.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O,CAAC,CAAC;iBACzB,IAAI,CACH,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EACpE,MAAM,CACP,CAAC;QACN,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -9,26 +9,33 @@ export interface HealthConfigState {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Project and legacy overlay check derived from doctor without mutation.
|
|
12
|
-
* @param projectRoot
|
|
13
|
-
* @param configState
|
|
14
|
-
* @param shape
|
|
12
|
+
* @param projectRoot - Canonical host project root
|
|
13
|
+
* @param configState - Whether `.lisa.config.json` is present, readable, and its contents
|
|
14
|
+
* @param shape - Detected project types and package.json
|
|
15
|
+
* @returns Pass, or warn naming legacy overlay paths still present
|
|
15
16
|
*/
|
|
16
17
|
export declare function projectStateFinding(projectRoot: string, configState: HealthConfigState, shape: HealthProjectShape | undefined): Promise<HealthFinding>;
|
|
17
18
|
/**
|
|
18
19
|
* Local wiki contract check derived from doctor without network or writes.
|
|
19
|
-
* @param projectRoot
|
|
20
|
+
* @param projectRoot - Canonical host project root
|
|
21
|
+
* @returns Pass, or fail naming the missing wiki contract files
|
|
20
22
|
*/
|
|
21
23
|
export declare function wikiFinding(projectRoot: string): Promise<HealthFinding>;
|
|
22
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Offline representation of doctor's network-only starter check.
|
|
26
|
+
* @returns A warn finding: reachability cannot be checked offline
|
|
27
|
+
*/
|
|
23
28
|
export declare function starterFinding(): HealthFinding;
|
|
24
29
|
/**
|
|
25
30
|
* Read-only canonical instruction check.
|
|
26
|
-
* @param projectRoot
|
|
31
|
+
* @param projectRoot - Canonical host project root
|
|
32
|
+
* @returns Pass, or fail naming the drifted instruction files
|
|
27
33
|
*/
|
|
28
34
|
export declare function instructionFinding(projectRoot: string): Promise<HealthFinding>;
|
|
29
35
|
/**
|
|
30
36
|
* Convert one dry-run sync report into required-key and sync findings.
|
|
31
|
-
* @param report
|
|
37
|
+
* @param report - Dry-run config sync report for the project
|
|
38
|
+
* @returns The required-keys finding followed by the config-sync finding
|
|
32
39
|
*/
|
|
33
40
|
export declare function configFindings(report: SyncReport): readonly [HealthFinding, HealthFinding];
|
|
34
41
|
//# sourceMappingURL=project-probes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-probes.d.ts","sourceRoot":"","sources":["../../src/health/project-probes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-probes.d.ts","sourceRoot":"","sources":["../../src/health/project-probes.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAKnE,gEAAgE;AAChE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,iBAAiB,EAC9B,KAAK,EAAE,kBAAkB,GAAG,SAAS,GACpC,OAAO,CAAC,aAAa,CAAC,CAqCxB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAyC7E;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,aAAa,CAM9C;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,aAAa,CAAC,CA0BxB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,GACjB,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC,CA2BzC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** Safe local project/doctor-derived deterministic health probes. */
|
|
2
|
-
/* eslint-disable jsdoc/require-param-description, jsdoc/require-returns -- typed doctor projections are self-describing */
|
|
3
2
|
import path from "node:path";
|
|
4
3
|
import { CLAUDE_MD_AGENTS_IMPORT } from "../claude/claude-md-installer.js";
|
|
5
4
|
import { LISA_HOOKS_SUBDIR, LISA_RULES_SUBDIR, } from "../codex/hooks-installer.js";
|
|
@@ -11,9 +10,10 @@ const PROJECT_STATE_CHECK = "project.state";
|
|
|
11
10
|
const PROJECT_WIKI_CHECK = "project.wiki";
|
|
12
11
|
/**
|
|
13
12
|
* Project and legacy overlay check derived from doctor without mutation.
|
|
14
|
-
* @param projectRoot
|
|
15
|
-
* @param configState
|
|
16
|
-
* @param shape
|
|
13
|
+
* @param projectRoot - Canonical host project root
|
|
14
|
+
* @param configState - Whether `.lisa.config.json` is present, readable, and its contents
|
|
15
|
+
* @param shape - Detected project types and package.json
|
|
16
|
+
* @returns Pass, or warn naming legacy overlay paths still present
|
|
17
17
|
*/
|
|
18
18
|
export async function projectStateFinding(projectRoot, configState, shape) {
|
|
19
19
|
if (!configState.present || !configState.readable || shape === undefined) {
|
|
@@ -35,7 +35,8 @@ export async function projectStateFinding(projectRoot, configState, shape) {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Local wiki contract check derived from doctor without network or writes.
|
|
38
|
-
* @param projectRoot
|
|
38
|
+
* @param projectRoot - Canonical host project root
|
|
39
|
+
* @returns Pass, or fail naming the missing wiki contract files
|
|
39
40
|
*/
|
|
40
41
|
export async function wikiFinding(projectRoot) {
|
|
41
42
|
const wiki = await projectPathKind(projectRoot, "wiki");
|
|
@@ -57,13 +58,17 @@ export async function wikiFinding(projectRoot) {
|
|
|
57
58
|
? deterministicFinding(PROJECT_WIKI_CHECK, "pass", "Local wiki contract files are present.")
|
|
58
59
|
: deterministicFinding(PROJECT_WIKI_CHECK, "fail", namedReason("Missing wiki contract files", missing));
|
|
59
60
|
}
|
|
60
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Offline representation of doctor's network-only starter check.
|
|
63
|
+
* @returns A warn finding: reachability cannot be checked offline
|
|
64
|
+
*/
|
|
61
65
|
export function starterFinding() {
|
|
62
66
|
return deterministicFinding("starters.remote", "warn", "Starter repository reachability is unavailable in the offline deterministic path.");
|
|
63
67
|
}
|
|
64
68
|
/**
|
|
65
69
|
* Read-only canonical instruction check.
|
|
66
|
-
* @param projectRoot
|
|
70
|
+
* @param projectRoot - Canonical host project root
|
|
71
|
+
* @returns Pass, or fail naming the drifted instruction files
|
|
67
72
|
*/
|
|
68
73
|
export async function instructionFinding(projectRoot) {
|
|
69
74
|
const [agents, claude] = await Promise.all([
|
|
@@ -86,7 +91,8 @@ export async function instructionFinding(projectRoot) {
|
|
|
86
91
|
}
|
|
87
92
|
/**
|
|
88
93
|
* Convert one dry-run sync report into required-key and sync findings.
|
|
89
|
-
* @param report
|
|
94
|
+
* @param report - Dry-run config sync report for the project
|
|
95
|
+
* @returns The required-keys finding followed by the config-sync finding
|
|
90
96
|
*/
|
|
91
97
|
export function configFindings(report) {
|
|
92
98
|
const keys = report.missingRequired.map(item => item.key);
|
|
@@ -100,5 +106,4 @@ export function configFindings(report) {
|
|
|
100
106
|
: deterministicFinding("config.sync", "fail", namedReason("Config sync drift", actions)),
|
|
101
107
|
];
|
|
102
108
|
}
|
|
103
|
-
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
|
|
104
109
|
//# sourceMappingURL=project-probes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-probes.js","sourceRoot":"","sources":["../../src/health/project-probes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"project-probes.js","sourceRoot":"","sources":["../../src/health/project-probes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGrE,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAC5C,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAS1C;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,WAAmB,EACnB,WAA8B,EAC9B,KAAqC;IAErC,IAAI,CAAC,WAAW,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACzE,OAAO,oBAAoB,CACzB,mBAAmB,EACnB,MAAM,EACN,mEAAmE,CACpE,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,oBAAoB,CACzB,mBAAmB,EACnB,MAAM,EACN,qDAAqD,CACtD,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAC5D,KAAK,EAAC,MAAM,EAAC,EAAE;QACb,MAAM,QAAQ,GAAG,IAAI,CAAC,IA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,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;IACF,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;QACvB,CAAC,CAAC,oBAAoB,CAClB,wBAAwB,EACxB,MAAM,EACN,kCAAkC,CACnC;QACH,CAAC,CAAC,oBAAoB,CAClB,wBAAwB,EACxB,MAAM,EACN,WAAW,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAC7C,CAAC;AACR,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAkB;IAElB,MAAM,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACzD,OAAO;QACL,IAAI,CAAC,MAAM,KAAK,CAAC;YACf,CAAC,CAAC,oBAAoB,CAClB,iBAAiB,EACjB,MAAM,EACN,qCAAqC,CACtC;YACH,CAAC,CAAC,oBAAoB,CAClB,iBAAiB,EACjB,MAAM,EACN,WAAW,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAClD;QACL,OAAO,CAAC,MAAM,KAAK,CAAC;YAClB,CAAC,CAAC,oBAAoB,CAClB,aAAa,EACb,MAAM,EACN,iDAAiD,CAClD;YACH,CAAC,CAAC,oBAAoB,CAClB,aAAa,EACb,MAAM,EACN,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAC1C;KACN,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical comparison of expected and live material ruleset documents.
|
|
3
|
+
* @module health/ruleset-compare
|
|
4
|
+
*/
|
|
5
|
+
import { type HealthRuleset } from "./ruleset-gh.js";
|
|
6
|
+
/** Ruleset comparison result containing names only. */
|
|
7
|
+
export interface RulesetDrift {
|
|
8
|
+
readonly missing: readonly string[];
|
|
9
|
+
readonly drifted: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
/** Required-check drift grouped by the ruleset that should enforce it. */
|
|
12
|
+
export interface NamedRulesetContextDrift {
|
|
13
|
+
readonly ruleset: string;
|
|
14
|
+
readonly contexts: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Name missing required-check enforcement by ruleset.
|
|
18
|
+
* @param expected - Expected rulesets
|
|
19
|
+
* @param actual - Live rulesets
|
|
20
|
+
* @returns Each ruleset with the contexts it fails to enforce
|
|
21
|
+
*/
|
|
22
|
+
export declare function requiredContextDrift(expected: readonly HealthRuleset[], actual: readonly HealthRuleset[]): readonly NamedRulesetContextDrift[];
|
|
23
|
+
/**
|
|
24
|
+
* Compare expected and observed material ruleset documents.
|
|
25
|
+
* @param expected - Expected rulesets
|
|
26
|
+
* @param actual - Live rulesets
|
|
27
|
+
* @returns Names of missing and materially drifted rulesets
|
|
28
|
+
*/
|
|
29
|
+
export declare function compareRulesets(expected: readonly HealthRuleset[], actual: readonly HealthRuleset[]): RulesetDrift;
|
|
30
|
+
//# sourceMappingURL=ruleset-compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruleset-compare.d.ts","sourceRoot":"","sources":["../../src/health/ruleset-compare.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGjE,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,0EAA0E;AAC1E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AA+GD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,MAAM,EAAE,SAAS,aAAa,EAAE,GAC/B,SAAS,wBAAwB,EAAE,CAMrC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,MAAM,EAAE,SAAS,aAAa,EAAE,GAC/B,YAAY,CAiCd"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical comparison of expected and live material ruleset documents.
|
|
3
|
+
* @module health/ruleset-compare
|
|
4
|
+
*/
|
|
5
|
+
import { sortedCopy } from "./ruleset-gh.js";
|
|
6
|
+
import { requiredStatusChecksByContext } from "./ruleset-normalize.js";
|
|
7
|
+
/**
|
|
8
|
+
* Canonicalize semantically unordered JSON objects and arrays.
|
|
9
|
+
* @param value - JSON value
|
|
10
|
+
* @returns The value with arrays and object keys in canonical order
|
|
11
|
+
*/
|
|
12
|
+
function canonical(value) {
|
|
13
|
+
if (Array.isArray(value)) {
|
|
14
|
+
return value
|
|
15
|
+
.map(canonical)
|
|
16
|
+
.sort((left, right) => JSON.stringify(left).localeCompare(JSON.stringify(right)));
|
|
17
|
+
}
|
|
18
|
+
if (value !== null && typeof value === "object") {
|
|
19
|
+
return Object.fromEntries(Object.entries(value)
|
|
20
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
21
|
+
.map(([key, item]) => [key, canonical(item)]));
|
|
22
|
+
}
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Remove read-only defaults GitHub may add to otherwise equivalent rules.
|
|
27
|
+
* This projection is applied symmetrically so authored non-default values
|
|
28
|
+
* remain material.
|
|
29
|
+
* @param value - JSON value
|
|
30
|
+
* @returns The value without GitHub's empty `required_reviewers` default
|
|
31
|
+
*/
|
|
32
|
+
function withoutGithubDefaults(value) {
|
|
33
|
+
if (Array.isArray(value))
|
|
34
|
+
return value.map(withoutGithubDefaults);
|
|
35
|
+
if (value !== null && typeof value === "object") {
|
|
36
|
+
return Object.fromEntries(Object.entries(value).flatMap(([key, item]) => key === "required_reviewers" && Array.isArray(item) && item.length === 0
|
|
37
|
+
? []
|
|
38
|
+
: [[key, withoutGithubDefaults(item)]]));
|
|
39
|
+
}
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Project actual rules onto expected required-check contexts.
|
|
44
|
+
*
|
|
45
|
+
* Host-added required contexts are enforcement, not drift. Comparing the whole
|
|
46
|
+
* live list would make doctor pressure operators to remove checks Lisa cannot
|
|
47
|
+
* preserve safely.
|
|
48
|
+
* @param actualRules - Live ruleset rules
|
|
49
|
+
* @param expectedRules - Expected ruleset rules
|
|
50
|
+
* @returns The live rules restricted to the expected required contexts
|
|
51
|
+
*/
|
|
52
|
+
function comparableActualRules(actualRules, expectedRules) {
|
|
53
|
+
const expectedContexts = new Set(requiredStatusChecksByContext(expectedRules).keys());
|
|
54
|
+
if (!Array.isArray(actualRules) || expectedContexts.size === 0) {
|
|
55
|
+
return actualRules;
|
|
56
|
+
}
|
|
57
|
+
return actualRules.map(rule => {
|
|
58
|
+
if (rule === null ||
|
|
59
|
+
typeof rule !== "object" ||
|
|
60
|
+
Reflect.get(rule, "type") !== "required_status_checks") {
|
|
61
|
+
return rule;
|
|
62
|
+
}
|
|
63
|
+
const parameters = Reflect.get(rule, "parameters");
|
|
64
|
+
if (parameters === null || typeof parameters !== "object")
|
|
65
|
+
return rule;
|
|
66
|
+
const checks = Reflect.get(parameters, "required_status_checks");
|
|
67
|
+
if (!Array.isArray(checks))
|
|
68
|
+
return rule;
|
|
69
|
+
return {
|
|
70
|
+
...rule,
|
|
71
|
+
parameters: {
|
|
72
|
+
...parameters,
|
|
73
|
+
required_status_checks: checks.filter(check => {
|
|
74
|
+
if (check === null || typeof check !== "object")
|
|
75
|
+
return true;
|
|
76
|
+
const context = Reflect.get(check, "context");
|
|
77
|
+
return typeof context !== "string" || expectedContexts.has(context);
|
|
78
|
+
}),
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* List Lisa-required checks absent from a live ruleset.
|
|
85
|
+
* @param expected - Expected ruleset
|
|
86
|
+
* @param actual - Live ruleset of the same name, if any
|
|
87
|
+
* @returns Missing contexts, sorted
|
|
88
|
+
*/
|
|
89
|
+
function missingRequiredContexts(expected, actual) {
|
|
90
|
+
const actualContexts = requiredStatusChecksByContext(actual?.rules);
|
|
91
|
+
return sortedCopy([...requiredStatusChecksByContext(expected.rules).keys()].filter(context => !actualContexts.has(context)), (left, right) => left.localeCompare(right));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Name missing required-check enforcement by ruleset.
|
|
95
|
+
* @param expected - Expected rulesets
|
|
96
|
+
* @param actual - Live rulesets
|
|
97
|
+
* @returns Each ruleset with the contexts it fails to enforce
|
|
98
|
+
*/
|
|
99
|
+
export function requiredContextDrift(expected, actual) {
|
|
100
|
+
const observed = new Map(actual.map(item => [item.name, item]));
|
|
101
|
+
return expected.flatMap(item => {
|
|
102
|
+
const contexts = missingRequiredContexts(item, observed.get(item.name));
|
|
103
|
+
return contexts.length === 0 ? [] : [{ ruleset: item.name, contexts }];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Compare expected and observed material ruleset documents.
|
|
108
|
+
* @param expected - Expected rulesets
|
|
109
|
+
* @param actual - Live rulesets
|
|
110
|
+
* @returns Names of missing and materially drifted rulesets
|
|
111
|
+
*/
|
|
112
|
+
export function compareRulesets(expected, actual) {
|
|
113
|
+
const observed = new Map(actual.map(item => [item.name, item]));
|
|
114
|
+
const missing = expected
|
|
115
|
+
.filter(item => !observed.has(item.name))
|
|
116
|
+
.map(item => item.name);
|
|
117
|
+
const drifted = expected.flatMap(item => {
|
|
118
|
+
const present = observed.get(item.name);
|
|
119
|
+
if (present === undefined)
|
|
120
|
+
return [];
|
|
121
|
+
const expectedMaterial = canonical(withoutGithubDefaults({
|
|
122
|
+
target: item.target,
|
|
123
|
+
enforcement: item.enforcement,
|
|
124
|
+
conditions: item.conditions,
|
|
125
|
+
rules: item.rules,
|
|
126
|
+
}));
|
|
127
|
+
const actualMaterial = canonical(withoutGithubDefaults({
|
|
128
|
+
target: present.target,
|
|
129
|
+
enforcement: present.enforcement,
|
|
130
|
+
conditions: present.conditions,
|
|
131
|
+
rules: comparableActualRules(present.rules, item.rules),
|
|
132
|
+
}));
|
|
133
|
+
if (JSON.stringify(expectedMaterial) !== JSON.stringify(actualMaterial)) {
|
|
134
|
+
return [item.name];
|
|
135
|
+
}
|
|
136
|
+
return [];
|
|
137
|
+
});
|
|
138
|
+
return {
|
|
139
|
+
missing: sortedCopy(missing, (left, right) => left.localeCompare(right)),
|
|
140
|
+
drifted: sortedCopy(drifted, (left, right) => left.localeCompare(right)),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=ruleset-compare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruleset-compare.js","sourceRoot":"","sources":["../../src/health/ruleset-compare.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAsB,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAcvE;;;;GAIG;AACH,SAAS,SAAS,CAAC,KAAc;IAC/B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK;aACT,GAAG,CAAC,SAAS,CAAC;aACd,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACpB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAC1D,CAAC;IACN,CAAC;IACD,IAAI,KAAK,KAAK,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