@codyswann/lisa 7.1.5 → 8.0.1
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 +30520 -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 +5 -5
- 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
package/dist/health/agentic.js
CHANGED
|
@@ -1,226 +1,31 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Optional, read-only agentic Health composition over deterministic facts.
|
|
3
|
+
* Evidence collection lives in agentic-evidence.ts and the evaluator contract
|
|
4
|
+
* in agentic-contract.ts; this module validates the evaluator's answer and
|
|
5
|
+
* composes it with the deterministic result.
|
|
6
|
+
* @module health/agentic
|
|
7
|
+
*/
|
|
8
|
+
import { lstat, realpath } from "node:fs/promises";
|
|
4
9
|
import path from "node:path";
|
|
5
10
|
import { isProxy } from "node:util/types";
|
|
6
|
-
import {
|
|
11
|
+
import { collectAgenticArtifacts, readAgenticConfig, } from "./agentic-evidence.js";
|
|
7
12
|
import { summarizeHealthFindings, validateHealthResult, } from "./contract.js";
|
|
8
|
-
import { runDeterministicHealth, } from "./deterministic.js";
|
|
9
13
|
import { HealthDeadline } from "./deadline.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
14
|
+
import { runDeterministicHealth, } from "./deterministic.js";
|
|
15
|
+
import { hasUnsafeTextCharacter, readStrictDenseArray, readStrictProperty as read, requireBoundedMachineId, requireClosedString, requireStrictRecord, } from "./strict-validation.js";
|
|
12
16
|
const DEFAULT_AGENTIC_TIMEOUT_MS = 60_000;
|
|
13
|
-
const MAX_AGENTIC_ARTIFACTS = 67;
|
|
14
|
-
const MAX_WORKFLOW_FILES = 64;
|
|
15
|
-
const MAX_ARTIFACT_BYTES = 128 * 1024;
|
|
16
|
-
const MAX_TOTAL_ARTIFACT_BYTES = 512 * 1024;
|
|
17
17
|
const MAX_JUDGMENTS = 50;
|
|
18
18
|
const MAX_FINAL_FINDINGS = 200;
|
|
19
19
|
const MAX_CHECK_BYTES = 128;
|
|
20
20
|
const MAX_REASON_BYTES = 2_000;
|
|
21
21
|
const RESERVED_CHECK = "agentic.review-completed";
|
|
22
|
-
const WORKFLOW_DIRECTORY = path.join(".github", "workflows");
|
|
23
|
-
const CONFIG_PATH = ".lisa.config.json";
|
|
24
|
-
const LOCAL_CONFIG_PATH = ".lisa.config.local.json";
|
|
25
|
-
const WORKFLOW_CONTROL = /^\s*(?:skip_jobs|verify_enforced|mutation(?:_gate)?(?:_enabled)?)\s*:/u;
|
|
26
|
-
const YAML_COMMENT = /^\s*#/u;
|
|
27
|
-
const JOB_IDENTIFIER = /^ {2}[a-zA-Z0-9_-]+:\s*(?:#.*)?$/u;
|
|
28
|
-
const OVERRIDE_PATHS = [
|
|
29
|
-
{
|
|
30
|
-
kind: "eslint-override",
|
|
31
|
-
path: "eslint.config.local.ts",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
kind: "eslint-ignore-override",
|
|
35
|
-
path: "eslint.ignore.config.local.json",
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
/** Read one optional fixed-path override artifact. */
|
|
39
|
-
async function readOptionalArtifact(projectRoot, descriptor) {
|
|
40
|
-
const kind = await projectPathKind(projectRoot, descriptor.path);
|
|
41
|
-
if (kind === "missing")
|
|
42
|
-
return undefined;
|
|
43
|
-
if (kind !== "file")
|
|
44
|
-
throw new Error("Unsafe agentic evidence path");
|
|
45
|
-
const content = await readProjectText(projectRoot, descriptor.path, MAX_ARTIFACT_BYTES);
|
|
46
|
-
if (content === undefined)
|
|
47
|
-
return undefined;
|
|
48
|
-
return Object.freeze({ ...descriptor, content });
|
|
49
|
-
}
|
|
50
|
-
/** Enumerate bounded regular workflow files without following special paths. */
|
|
51
|
-
async function workflowPaths(projectRoot) {
|
|
52
|
-
const kind = await projectPathKind(projectRoot, WORKFLOW_DIRECTORY);
|
|
53
|
-
if (kind === "missing")
|
|
54
|
-
return [];
|
|
55
|
-
if (kind !== "directory")
|
|
56
|
-
throw new Error("Unsafe workflow evidence path");
|
|
57
|
-
const directory = resolveProjectPath(projectRoot, WORKFLOW_DIRECTORY);
|
|
58
|
-
const entries = await readdir(directory, { withFileTypes: true });
|
|
59
|
-
const workflows = entries
|
|
60
|
-
.filter(entry => /\.ya?ml$/u.test(entry.name))
|
|
61
|
-
.map(entry => {
|
|
62
|
-
if (!entry.isFile())
|
|
63
|
-
throw new Error("Unsafe workflow evidence file");
|
|
64
|
-
return path.join(WORKFLOW_DIRECTORY, entry.name);
|
|
65
|
-
})
|
|
66
|
-
.sort((left, right) => left.localeCompare(right));
|
|
67
|
-
if (workflows.length > MAX_WORKFLOW_FILES) {
|
|
68
|
-
throw new Error("Agentic workflow evidence exceeds file limit");
|
|
69
|
-
}
|
|
70
|
-
return workflows;
|
|
71
|
-
}
|
|
72
|
-
/** Reduce workflow YAML in one pass to controls, job ids, and comment blocks. */
|
|
73
|
-
function workflowExcerpt(source) {
|
|
74
|
-
const lines = source.split(/\r?\n/u);
|
|
75
|
-
const selected = new Map();
|
|
76
|
-
let currentJob;
|
|
77
|
-
let pendingComments = [];
|
|
78
|
-
let captureFollowingComments = false;
|
|
79
|
-
lines.forEach((line, index) => {
|
|
80
|
-
if (JOB_IDENTIFIER.test(line)) {
|
|
81
|
-
currentJob = Object.freeze({ index, line });
|
|
82
|
-
pendingComments = [];
|
|
83
|
-
captureFollowingComments = false;
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (YAML_COMMENT.test(line)) {
|
|
87
|
-
const comment = Object.freeze({ index, line });
|
|
88
|
-
pendingComments.push(comment);
|
|
89
|
-
if (captureFollowingComments)
|
|
90
|
-
selected.set(index, line);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
if (WORKFLOW_CONTROL.test(line)) {
|
|
94
|
-
if (currentJob !== undefined) {
|
|
95
|
-
selected.set(currentJob.index, currentJob.line);
|
|
96
|
-
}
|
|
97
|
-
pendingComments.forEach(comment => selected.set(comment.index, comment.line));
|
|
98
|
-
selected.set(index, line);
|
|
99
|
-
pendingComments = [];
|
|
100
|
-
captureFollowingComments = true;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
pendingComments = [];
|
|
104
|
-
captureFollowingComments = false;
|
|
105
|
-
});
|
|
106
|
-
return [...selected.entries()]
|
|
107
|
-
.map(([index, line]) => `${index + 1}: ${line}`)
|
|
108
|
-
.join("\n");
|
|
109
|
-
}
|
|
110
|
-
/** Read current managed ESLint content only when deterministic drift names it. */
|
|
111
|
-
async function readManagedDriftArtifact(projectRoot, deterministic) {
|
|
112
|
-
const finding = deterministic.findings.find(candidate => candidate.check === "templates.managed" &&
|
|
113
|
-
candidate.status === "fail" &&
|
|
114
|
-
/(?:^|[ :,])eslint\.config\.ts(?:$|[ ,])/u.test(candidate.reason));
|
|
115
|
-
if (finding === undefined)
|
|
116
|
-
return undefined;
|
|
117
|
-
return readOptionalArtifact(projectRoot, {
|
|
118
|
-
kind: "managed-drift",
|
|
119
|
-
path: "eslint.config.ts",
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
/** Resolve the allowlisted path without retaining unrelated config values. */
|
|
123
|
-
function mutationGateRead(config) {
|
|
124
|
-
let current = config;
|
|
125
|
-
for (const field of ["quality", "mutation", "gate", "enabled"]) {
|
|
126
|
-
if (current === null ||
|
|
127
|
-
typeof current !== "object" ||
|
|
128
|
-
Array.isArray(current)) {
|
|
129
|
-
return Object.freeze({ present: true, enabled: null });
|
|
130
|
-
}
|
|
131
|
-
if (!Object.prototype.hasOwnProperty.call(current, field)) {
|
|
132
|
-
return Object.freeze({ present: false, enabled: null });
|
|
133
|
-
}
|
|
134
|
-
current = current[field];
|
|
135
|
-
}
|
|
136
|
-
return Object.freeze({
|
|
137
|
-
present: true,
|
|
138
|
-
enabled: typeof current === "boolean" ? current : null,
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
/** Read the effective mutation-gate boolean with local-config precedence. */
|
|
142
|
-
async function readAgenticConfig(projectRoot) {
|
|
143
|
-
const [committed, local] = await Promise.all([
|
|
144
|
-
readProjectJsonObject(projectRoot, CONFIG_PATH),
|
|
145
|
-
readProjectJsonObject(projectRoot, LOCAL_CONFIG_PATH),
|
|
146
|
-
]);
|
|
147
|
-
const localGate = mutationGateRead(local ?? {});
|
|
148
|
-
const committedGate = mutationGateRead(committed ?? {});
|
|
149
|
-
const enabled = localGate.present ? localGate.enabled : committedGate.enabled;
|
|
150
|
-
return Object.freeze({
|
|
151
|
-
quality: Object.freeze({
|
|
152
|
-
mutation: Object.freeze({
|
|
153
|
-
gate: Object.freeze({ enabled }),
|
|
154
|
-
}),
|
|
155
|
-
}),
|
|
156
|
-
gates: Object.freeze({
|
|
157
|
-
traceability: Object.freeze({
|
|
158
|
-
level: traceabilityLevel(local) ?? traceabilityLevel(committed),
|
|
159
|
-
}),
|
|
160
|
-
}),
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
22
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* configuration nobody is running.
|
|
170
|
-
* @param config - A parsed config object, or null when the file is absent
|
|
171
|
-
* @returns The declared level, or null when this file does not declare it
|
|
23
|
+
* Create a detached deeply frozen evaluator request.
|
|
24
|
+
* @param deterministic - Completed deterministic result
|
|
25
|
+
* @param config - Allowlisted config projection disclosed to the evaluator
|
|
26
|
+
* @param artifacts - Confined, bounded project evidence
|
|
27
|
+
* @returns A frozen request the evaluator cannot mutate
|
|
172
28
|
*/
|
|
173
|
-
function traceabilityLevel(config) {
|
|
174
|
-
const gates = config?.gates;
|
|
175
|
-
if (!isJsonObject(gates) || !isJsonObject(gates.traceability)) {
|
|
176
|
-
return null;
|
|
177
|
-
}
|
|
178
|
-
const declared = gates.traceability["pull-request"];
|
|
179
|
-
if (typeof declared === "string")
|
|
180
|
-
return declared;
|
|
181
|
-
if (isJsonObject(declared) && typeof declared.level === "string") {
|
|
182
|
-
return declared.level;
|
|
183
|
-
}
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
/** Collect confined project evidence with hard per-file and aggregate bounds. */
|
|
187
|
-
async function collectAgenticArtifacts(projectRoot, deterministic) {
|
|
188
|
-
const [overrides, managedDrift] = await Promise.all([
|
|
189
|
-
Promise.all(OVERRIDE_PATHS.map(descriptor => readOptionalArtifact(projectRoot, descriptor))),
|
|
190
|
-
readManagedDriftArtifact(projectRoot, deterministic),
|
|
191
|
-
]);
|
|
192
|
-
const workflows = (await Promise.all((await workflowPaths(projectRoot)).map(async (relativePath) => {
|
|
193
|
-
const content = await readProjectText(projectRoot, relativePath, MAX_ARTIFACT_BYTES);
|
|
194
|
-
if (content === undefined) {
|
|
195
|
-
throw new Error("Workflow evidence disappeared during collection");
|
|
196
|
-
}
|
|
197
|
-
const excerpt = workflowExcerpt(content);
|
|
198
|
-
if (excerpt.length === 0)
|
|
199
|
-
return undefined;
|
|
200
|
-
if (Buffer.byteLength(excerpt, "utf8") > MAX_ARTIFACT_BYTES) {
|
|
201
|
-
throw new Error("Workflow excerpt exceeds artifact size limit");
|
|
202
|
-
}
|
|
203
|
-
return Object.freeze({
|
|
204
|
-
kind: "workflow",
|
|
205
|
-
path: relativePath.split(path.sep).join("/"),
|
|
206
|
-
content: excerpt,
|
|
207
|
-
});
|
|
208
|
-
}))).filter(item => item !== undefined);
|
|
209
|
-
const artifacts = [
|
|
210
|
-
...overrides.filter(item => item !== undefined),
|
|
211
|
-
...(managedDrift === undefined ? [] : [managedDrift]),
|
|
212
|
-
...workflows,
|
|
213
|
-
].sort((left, right) => left.path.localeCompare(right.path));
|
|
214
|
-
if (artifacts.length > MAX_AGENTIC_ARTIFACTS) {
|
|
215
|
-
throw new Error("Agentic evidence exceeds artifact limit");
|
|
216
|
-
}
|
|
217
|
-
const totalBytes = artifacts.reduce((total, artifact) => total + Buffer.byteLength(artifact.content, "utf8"), 0);
|
|
218
|
-
if (totalBytes > MAX_TOTAL_ARTIFACT_BYTES) {
|
|
219
|
-
throw new Error("Agentic evidence exceeds aggregate size limit");
|
|
220
|
-
}
|
|
221
|
-
return Object.freeze(artifacts);
|
|
222
|
-
}
|
|
223
|
-
/** Create a detached deeply frozen evaluator request. */
|
|
224
29
|
function evaluatorRequest(deterministic, config, artifacts) {
|
|
225
30
|
const deterministicFindings = deterministic.findings.map(finding => Object.freeze({ ...finding }));
|
|
226
31
|
return Object.freeze({
|
|
@@ -230,7 +35,12 @@ function evaluatorRequest(deterministic, config, artifacts) {
|
|
|
230
35
|
artifacts: Object.freeze(artifacts.map(artifact => Object.freeze({ ...artifact }))),
|
|
231
36
|
});
|
|
232
37
|
}
|
|
233
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Validate one evaluator-produced warning without accepting attribution fields.
|
|
40
|
+
* @param candidate - Untrusted judgment value
|
|
41
|
+
* @param index - Position in the judgments array, for error messages
|
|
42
|
+
* @returns The validated, frozen judgment
|
|
43
|
+
*/
|
|
234
44
|
function validateJudgment(candidate, index) {
|
|
235
45
|
const input = requireStrictRecord(candidate, ["check", "reason"], `agentic judgments[${index}]`);
|
|
236
46
|
const check = requireBoundedMachineId(read(input, "check"), `agentic judgments[${index}].check`, MAX_CHECK_BYTES);
|
|
@@ -247,7 +57,11 @@ function validateJudgment(candidate, index) {
|
|
|
247
57
|
}
|
|
248
58
|
return Object.freeze({ check, reason });
|
|
249
59
|
}
|
|
250
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Validate the evaluator's exact closed result union atomically.
|
|
62
|
+
* @param candidate - Untrusted evaluator output
|
|
63
|
+
* @returns The validated, frozen evaluation
|
|
64
|
+
*/
|
|
251
65
|
export function validateAgenticHealthEvaluation(candidate) {
|
|
252
66
|
if (candidate === null ||
|
|
253
67
|
typeof candidate !== "object" ||
|
|
@@ -274,7 +88,13 @@ export function validateAgenticHealthEvaluation(candidate) {
|
|
|
274
88
|
}
|
|
275
89
|
return Object.freeze({ status, judgments: Object.freeze(judgments) });
|
|
276
90
|
}
|
|
277
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Compose completed, validated judgments without changing deterministic facts.
|
|
93
|
+
* @param deterministic - Completed deterministic result
|
|
94
|
+
* @param evaluation - Validated completed evaluation
|
|
95
|
+
* @param now - Clock used for the composed completion time
|
|
96
|
+
* @returns The validated full-mode health result
|
|
97
|
+
*/
|
|
278
98
|
function composeFullResult(deterministic, evaluation, now) {
|
|
279
99
|
const deterministicChecks = new Set(deterministic.findings.map(finding => finding.check));
|
|
280
100
|
if (evaluation.judgments.some(judgment => deterministicChecks.has(judgment.check))) {
|
|
@@ -309,7 +129,11 @@ function composeFullResult(deterministic, evaluation, now) {
|
|
|
309
129
|
summary: summarizeHealthFindings(findings),
|
|
310
130
|
});
|
|
311
131
|
}
|
|
312
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Resolve a canonical project directory for confined evidence collection.
|
|
134
|
+
* @param projectPath - Project path as supplied by the caller
|
|
135
|
+
* @returns The real path of the project directory
|
|
136
|
+
*/
|
|
313
137
|
async function canonicalProjectRoot(projectPath) {
|
|
314
138
|
const root = await realpath(path.resolve(projectPath));
|
|
315
139
|
if (!(await lstat(root)).isDirectory()) {
|
|
@@ -320,6 +144,9 @@ async function canonicalProjectRoot(projectPath) {
|
|
|
320
144
|
/**
|
|
321
145
|
* Run deterministic health and, only when explicitly enabled and available,
|
|
322
146
|
* compose one bounded optional agentic review. Collection never persists.
|
|
147
|
+
* @param projectPath - Host project to inspect
|
|
148
|
+
* @param options - Deterministic options plus the optional agentic pass
|
|
149
|
+
* @returns The deterministic result, or the composed full result
|
|
323
150
|
*/
|
|
324
151
|
export async function runHealth(projectPath, options = {}) {
|
|
325
152
|
const { agentic, ...deterministicOptions } = options;
|
|
@@ -353,5 +180,4 @@ export async function runHealth(projectPath, options = {}) {
|
|
|
353
180
|
deadline.close();
|
|
354
181
|
}
|
|
355
182
|
}
|
|
356
|
-
/* eslint-enable functional/immutable-data, functional/no-let, jsdoc/require-param, jsdoc/require-returns, max-lines -- restore repository defaults */
|
|
357
183
|
//# sourceMappingURL=agentic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentic.js","sourceRoot":"","sources":["../../src/health/agentic.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,yKAAyK;AACzK,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,IAAI,IAAI,EAC1B,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,uBAAuB,EAGvB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sBAAsB,GAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAC1C,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,kBAAkB,GAAG,GAAG,GAAG,IAAI,CAAC;AACtC,MAAM,wBAAwB,GAAG,GAAG,GAAG,IAAI,CAAC;AAC5C,MAAM,aAA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;YAAE,OAAO,aAAa,CAAC;QACjD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC;QACrC,MAAM,OAAO,GAAG,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,GAAG,CACnC,KAAK,IAAI,EAAE,CACT,+BAA+B,CAC7B,MAAM,OAAO,CAAC,SAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CACnD,EACH,SAAS,CACV,CAAC;QACF,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,CAAC,MAAM,KAAK,aAAa,EAAE,CAAC;YACpE,OAAO,aAAa,CAAC;QACvB,CAAC;QACD,OAAO,iBAAiB,CACtB,aAAa,EACb,UAAU,EACV,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAClC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,aAAa,CAAC;IACvB,CAAC;YAAS,CAAC;QACT,QAAQ,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -10,7 +10,10 @@ export declare class HealthDeadline {
|
|
|
10
10
|
* @param requestedMs - Requested total budget
|
|
11
11
|
*/
|
|
12
12
|
constructor(requestedMs: number);
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Remaining whole milliseconds available to a bounded command.
|
|
15
|
+
* @returns Milliseconds left before the shared deadline, never negative
|
|
16
|
+
*/
|
|
14
17
|
remainingMs(): number;
|
|
15
18
|
/**
|
|
16
19
|
* Race one collaborator against the shared absolute deadline.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deadline.d.ts","sourceRoot":"","sources":["../../src/health/deadline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deadline.d.ts","sourceRoot":"","sources":["../../src/health/deadline.ts"],"names":[],"mappings":"AAKA,2DAA2D;AAC3D,qBAAa,cAAc;IACzB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAyB;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAiB;IAEvC;;;OAGG;gBACS,WAAW,EAAE,MAAM;IAU/B;;;OAGG;IACH,WAAW,IAAI,MAAM;IAIrB;;;;;OAKG;IACG,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAQ7D,4DAA4D;IAC5D,KAAK,IAAI,IAAI;CAGd"}
|
package/dist/health/deadline.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** One absolute wall-clock deadline shared by every health collaborator. */
|
|
2
|
-
/* eslint-disable jsdoc/require-returns -- typed deadline helpers are self-describing */
|
|
3
2
|
import { performance } from "node:perf_hooks";
|
|
4
3
|
const MAX_DEADLINE_MS = 119_000;
|
|
5
4
|
/** Absolute monotonic deadline and cancellation signal. */
|
|
@@ -22,7 +21,10 @@ export class HealthDeadline {
|
|
|
22
21
|
});
|
|
23
22
|
this.timer = setTimeout(() => this.controller.abort(), duration);
|
|
24
23
|
}
|
|
25
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Remaining whole milliseconds available to a bounded command.
|
|
26
|
+
* @returns Milliseconds left before the shared deadline, never negative
|
|
27
|
+
*/
|
|
26
28
|
remainingMs() {
|
|
27
29
|
return Math.max(0, Math.floor(this.expiresAt - performance.now()));
|
|
28
30
|
}
|
|
@@ -45,5 +47,4 @@ export class HealthDeadline {
|
|
|
45
47
|
clearTimeout(this.timer);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
/* eslint-enable jsdoc/require-returns -- restore repository documentation defaults */
|
|
49
50
|
//# sourceMappingURL=deadline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deadline.js","sourceRoot":"","sources":["../../src/health/deadline.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"deadline.js","sourceRoot":"","sources":["../../src/health/deadline.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,2DAA2D;AAC3D,MAAM,OAAO,cAAc;IAChB,MAAM,CAAc;IACZ,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACnC,OAAO,CAAgB;IACvB,SAAS,CAAS;IAClB,KAAK,CAAiB;IAEvC;;;OAGG;IACH,YAAY,WAAmB;QAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YACnC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAC;IACnE,CAAC;IAED;;;OAGG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CAAI,IAAsB,EAAE,QAAW;QAC9C,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC;YAAE,OAAO,QAAQ,CAAC;QACrE,OAAO,OAAO,CAAC,IAAI,CAAC;YAClB,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;YAC5B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IAED,4DAA4D;IAC5D,KAAK;QACH,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deterministic-inputs.d.ts","sourceRoot":"","sources":["../../src/health/deterministic-inputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"deterministic-inputs.d.ts","sourceRoot":"","sources":["../../src/health/deterministic-inputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAQ7D;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,iBAAiB,CAAC,CAiB5B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,oBAAoB,CAevE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAMvE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { projectPathKind, readProjectJsonObject, readProjectText, } from "./read-only-fs.js";
|
|
2
|
+
import { Memo } from "../utils/memo.js";
|
|
2
3
|
/**
|
|
3
4
|
* Read config while preserving missing vs malformed state.
|
|
4
5
|
* @param projectRoot - Canonical host project root
|
|
@@ -56,16 +57,7 @@ export function safeSyncReads(projectRoot) {
|
|
|
56
57
|
* @returns A reader that calls through at most once per repository
|
|
57
58
|
*/
|
|
58
59
|
export function shareRulesetReader(reader) {
|
|
59
|
-
const inFlight = new
|
|
60
|
-
return (owner, repo, projectRoot, timeoutMs, signal) => {
|
|
61
|
-
const key = `${owner}/${repo}`;
|
|
62
|
-
const existing = inFlight.get(key);
|
|
63
|
-
if (existing !== undefined)
|
|
64
|
-
return existing;
|
|
65
|
-
const started = reader(owner, repo, projectRoot, timeoutMs, signal);
|
|
66
|
-
// eslint-disable-next-line functional/immutable-data -- the cache is the point
|
|
67
|
-
inFlight.set(key, started);
|
|
68
|
-
return started;
|
|
69
|
-
};
|
|
60
|
+
const inFlight = new Memo();
|
|
61
|
+
return (owner, repo, projectRoot, timeoutMs, signal) => inFlight.resolve(`${owner}/${repo}`, () => reader(owner, repo, projectRoot, timeoutMs, signal));
|
|
70
62
|
}
|
|
71
63
|
//# sourceMappingURL=deterministic-inputs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deterministic-inputs.js","sourceRoot":"","sources":["../../src/health/deterministic-inputs.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,eAAe,GAChB,M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AAK,SAAS;gBAAE,OAAO,IAAI,CAAC;YACpC,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC;YACrC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,KAAK,YAAY,WAAW;oBAAE,OAAO,IAAI,CAAC;gBAC9C,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;QACD,UAAU,EAAE,KAAK,EAAE,YAAoB,EAAE,EAAE,CACzC,CAAC,MAAM,eAAe,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,KAAK,SAAS;KACnE,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAqB;IACtD,MAAM,QAAQ,GAAG,IAAI,IAAI,EAAqC,CAAC;IAC/D,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,CACrD,QAAQ,CAAC,OAAO,CAAC,GAAG,KAAK,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,CACxC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,CACpD,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { HealthFinding, HealthStatus } from "./contract.js";
|
|
2
|
+
import type { HealthDeadline } from "./deadline.js";
|
|
3
|
+
import { type HooksPathReader } from "./hook-inspection.js";
|
|
4
|
+
import { type InstalledPluginReader } from "./plugin-inspection.js";
|
|
5
|
+
import { type HealthConfigState } from "./project-probes.js";
|
|
6
|
+
import { type RulesetReader } from "./ruleset-inspection.js";
|
|
7
|
+
import { type BranchReader } from "./ruleset-reach-inspection.js";
|
|
8
|
+
import type { HealthProjectShape } from "./template-inspection.js";
|
|
9
|
+
/**
|
|
10
|
+
* Injectable deterministic-health collaborators. Reader overrides must honor
|
|
11
|
+
* their AbortSignal and release owned handles; the runner bounds its own return
|
|
12
|
+
* but cannot reclaim arbitrary handles created by caller-supplied JavaScript.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeterministicHealthOptions {
|
|
15
|
+
/** Lisa package root containing stack templates. */
|
|
16
|
+
readonly lisaRoot?: string;
|
|
17
|
+
/** Total wall-clock deadline, including root/config/type setup. */
|
|
18
|
+
readonly deadlineMs?: number;
|
|
19
|
+
/** Injectable timestamp clock for contract tests. */
|
|
20
|
+
readonly now?: () => Date;
|
|
21
|
+
/** Injectable bounded detailed ruleset reader. */
|
|
22
|
+
readonly readRulesets?: RulesetReader;
|
|
23
|
+
/** Injectable bounded actual installed-plugin reader. */
|
|
24
|
+
readonly readInstalledPlugins?: InstalledPluginReader;
|
|
25
|
+
/** Injectable bounded repository hooks-path reader. */
|
|
26
|
+
readonly readHooksPath?: HooksPathReader;
|
|
27
|
+
/** Injectable bounded repository branch reader. */
|
|
28
|
+
readonly readBranches?: BranchReader;
|
|
29
|
+
}
|
|
30
|
+
/** One fixed-order check and its unavailable fallback status. */
|
|
31
|
+
export interface Probe {
|
|
32
|
+
readonly check: string;
|
|
33
|
+
readonly unavailable: HealthStatus;
|
|
34
|
+
readonly run: () => Promise<HealthFinding>;
|
|
35
|
+
}
|
|
36
|
+
export declare const CHECKS: readonly Pick<Probe, "check" | "unavailable">[];
|
|
37
|
+
/**
|
|
38
|
+
* Create the fixed-order probe registry from safely captured setup state.
|
|
39
|
+
* @param roots - Canonical project and Lisa roots
|
|
40
|
+
* @param roots.projectRoot - Canonical host project root
|
|
41
|
+
* @param roots.lisaRoot - Lisa package root holding the shipped templates
|
|
42
|
+
* @param configState - Whether `.lisa.config.json` is present, readable, and its contents
|
|
43
|
+
* @param shape - Detected project types and package.json
|
|
44
|
+
* @param deadline - Shared deadline bounding every probe
|
|
45
|
+
* @param options - Injectable readers that replace the live defaults
|
|
46
|
+
* @returns Every probe in the fixed registry order of {@link CHECKS}
|
|
47
|
+
*/
|
|
48
|
+
export declare function probes(roots: {
|
|
49
|
+
readonly projectRoot: string;
|
|
50
|
+
readonly lisaRoot: string;
|
|
51
|
+
}, configState: HealthConfigState, shape: HealthProjectShape | undefined, deadline: HealthDeadline, options: DeterministicHealthOptions): readonly Probe[];
|
|
52
|
+
//# sourceMappingURL=deterministic-probes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deterministic-probes.d.ts","sourceRoot":"","sources":["../../src/health/deterministic-probes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAWpD,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAML,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC;IACtC,yDAAyD;IACzD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IACtD,uDAAuD;IACvD,QAAQ,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC;IACzC,mDAAmD;IACnD,QAAQ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