@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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The closed data contract between Lisa's agentic Health pass and an injected
|
|
3
|
+
* evaluator: what the evaluator is shown and what it may answer.
|
|
4
|
+
* @module health/agentic-contract
|
|
5
|
+
*/
|
|
6
|
+
import type { HealthFinding } from "./contract.js";
|
|
7
|
+
/** Read-only evidence kinds exposed to an injected evaluator. */
|
|
8
|
+
export type AgenticArtifactKind = "eslint-override" | "eslint-ignore-override" | "managed-drift" | "workflow";
|
|
9
|
+
/**
|
|
10
|
+
* One bounded, project-relative source artifact. Artifact content comes from
|
|
11
|
+
* the host project and must be treated as untrusted prompt material.
|
|
12
|
+
*/
|
|
13
|
+
export interface AgenticHealthArtifact {
|
|
14
|
+
readonly kind: AgenticArtifactKind;
|
|
15
|
+
readonly path: string;
|
|
16
|
+
readonly content: string;
|
|
17
|
+
}
|
|
18
|
+
/** Deeply frozen input passed to the evaluator without filesystem capability. */
|
|
19
|
+
export interface AgenticHealthRequest {
|
|
20
|
+
readonly schemaVersion: 1;
|
|
21
|
+
readonly deterministicFindings: readonly HealthFinding[];
|
|
22
|
+
readonly config: {
|
|
23
|
+
readonly quality: {
|
|
24
|
+
readonly mutation: {
|
|
25
|
+
readonly gate: {
|
|
26
|
+
readonly enabled: boolean | null;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Declared level of the work-item traceability gate, or null when the
|
|
32
|
+
* project never mentions it. Null is NOT off: an undeclared gate still runs
|
|
33
|
+
* its built-in check, so an evaluator told "null" must read that as
|
|
34
|
+
* "running on Lisa's default", never as "not enforced".
|
|
35
|
+
*/
|
|
36
|
+
readonly gates: {
|
|
37
|
+
readonly traceability: {
|
|
38
|
+
readonly level: string | null;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly artifacts: readonly AgenticHealthArtifact[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* One optional warning proposed by an evaluator.
|
|
46
|
+
*
|
|
47
|
+
* At most 50 judgments are accepted. `check` must use the `agentic.` namespace,
|
|
48
|
+
* cannot be the reserved `agentic.review-completed` id, and is limited to 128
|
|
49
|
+
* UTF-8 bytes. `reason` must be trimmed, within 2,000 UTF-8 bytes, and contain
|
|
50
|
+
* no control or bidirectional-formatting characters. Lisa, rather than the
|
|
51
|
+
* evaluator, stamps every accepted judgment as agentic and warn.
|
|
52
|
+
*/
|
|
53
|
+
export interface AgenticHealthJudgment {
|
|
54
|
+
readonly check: string;
|
|
55
|
+
readonly reason: string;
|
|
56
|
+
}
|
|
57
|
+
/** Closed evaluator response; unavailable and completed are the only states. */
|
|
58
|
+
export type AgenticHealthEvaluation = {
|
|
59
|
+
readonly status: "completed";
|
|
60
|
+
readonly judgments: readonly AgenticHealthJudgment[];
|
|
61
|
+
} | {
|
|
62
|
+
readonly status: "unavailable";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Injected harness-neutral judgment boundary.
|
|
66
|
+
*
|
|
67
|
+
* The callback is arbitrary JavaScript, not a security sandbox. Lisa supplies
|
|
68
|
+
* no filesystem capability, but consumers must still trust their evaluator.
|
|
69
|
+
* Evaluators must honor the AbortSignal and release their own timers, streams,
|
|
70
|
+
* and other resources when it aborts. Runtime output remains hostile-validated.
|
|
71
|
+
*/
|
|
72
|
+
export type AgenticHealthEvaluator = (request: AgenticHealthRequest, signal: AbortSignal) => Promise<AgenticHealthEvaluation>;
|
|
73
|
+
/** Explicit optional agentic-pass configuration. */
|
|
74
|
+
export interface AgenticHealthConfig {
|
|
75
|
+
readonly enabled: boolean;
|
|
76
|
+
readonly evaluator?: AgenticHealthEvaluator;
|
|
77
|
+
readonly timeoutMs?: number;
|
|
78
|
+
}
|
|
79
|
+
/** The sole project-config value disclosed to an evaluator. */
|
|
80
|
+
export interface AgenticConfigProjection {
|
|
81
|
+
readonly quality: {
|
|
82
|
+
readonly mutation: {
|
|
83
|
+
readonly gate: {
|
|
84
|
+
readonly enabled: boolean | null;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly gates: {
|
|
89
|
+
readonly traceability: {
|
|
90
|
+
readonly level: string | null;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=agentic-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-contract.d.ts","sourceRoot":"","sources":["../../src/health/agentic-contract.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,iEAAiE;AACjE,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,wBAAwB,GACxB,eAAe,GACf,UAAU,CAAC;AAEf;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,iFAAiF;AACjF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1B,QAAQ,CAAC,qBAAqB,EAAE,SAAS,aAAa,EAAE,CAAC;IACzD,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,CAAC,OAAO,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,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;aAAE,CAAA;SAAE,CAAC;KAC5E,CAAC;IACF,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,YAAY,EAAE;YAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;KAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-contract.js","sourceRoot":"","sources":["../../src/health/agentic-contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AgenticConfigProjection, AgenticHealthArtifact } from "./agentic-contract.js";
|
|
2
|
+
import type { HealthResult } from "./contract.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read the effective mutation-gate boolean with local-config precedence.
|
|
5
|
+
* @param projectRoot - Canonical host project root
|
|
6
|
+
* @returns The frozen config projection disclosed to the evaluator
|
|
7
|
+
*/
|
|
8
|
+
export declare function readAgenticConfig(projectRoot: string): Promise<AgenticConfigProjection>;
|
|
9
|
+
/**
|
|
10
|
+
* Collect confined project evidence with hard per-file and aggregate bounds.
|
|
11
|
+
* @param projectRoot - Canonical host project root
|
|
12
|
+
* @param deterministic - Completed deterministic result
|
|
13
|
+
* @returns Frozen artifacts sorted by path
|
|
14
|
+
*/
|
|
15
|
+
export declare function collectAgenticArtifacts(projectRoot: string, deterministic: HealthResult): Promise<readonly AgenticHealthArtifact[]>;
|
|
16
|
+
//# sourceMappingURL=agentic-evidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-evidence.d.ts","sourceRoot":"","sources":["../../src/health/agentic-evidence.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAmJlD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,uBAAuB,CAAC,CAoBlC;AA2BD;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,YAAY,GAC1B,OAAO,CAAC,SAAS,qBAAqB,EAAE,CAAC,CAiD3C"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confined, bounded collection of the project evidence an agentic Health
|
|
3
|
+
* evaluator is shown. Every read stays inside the project root and every
|
|
4
|
+
* artifact is size-capped; the content itself is untrusted host material.
|
|
5
|
+
* @module health/agentic-evidence
|
|
6
|
+
*/
|
|
7
|
+
import { readdir } from "node:fs/promises";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { isJsonObject } from "../sync/json-path.js";
|
|
10
|
+
import { projectPathKind, readProjectJsonObject, readProjectText, resolveProjectPath, } from "./read-only-fs.js";
|
|
11
|
+
import { workflowExcerpt } from "./workflow-excerpt.js";
|
|
12
|
+
const MAX_AGENTIC_ARTIFACTS = 67;
|
|
13
|
+
const MAX_WORKFLOW_FILES = 64;
|
|
14
|
+
const MAX_ARTIFACT_BYTES = 128 * 1024;
|
|
15
|
+
const MAX_TOTAL_ARTIFACT_BYTES = 512 * 1024;
|
|
16
|
+
const WORKFLOW_DIRECTORY = path.join(".github", "workflows");
|
|
17
|
+
const CONFIG_PATH = ".lisa.config.json";
|
|
18
|
+
const LOCAL_CONFIG_PATH = ".lisa.config.local.json";
|
|
19
|
+
const OVERRIDE_PATHS = [
|
|
20
|
+
{
|
|
21
|
+
kind: "eslint-override",
|
|
22
|
+
path: "eslint.config.local.ts",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
kind: "eslint-ignore-override",
|
|
26
|
+
path: "eslint.ignore.config.local.json",
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
/**
|
|
30
|
+
* Read one optional fixed-path override artifact.
|
|
31
|
+
* @param projectRoot - Canonical host project root
|
|
32
|
+
* @param descriptor - Artifact kind and its fixed project-relative path
|
|
33
|
+
* @returns The bounded artifact, or undefined when the file is absent
|
|
34
|
+
*/
|
|
35
|
+
async function readOptionalArtifact(projectRoot, descriptor) {
|
|
36
|
+
const kind = await projectPathKind(projectRoot, descriptor.path);
|
|
37
|
+
if (kind === "missing")
|
|
38
|
+
return undefined;
|
|
39
|
+
if (kind !== "file")
|
|
40
|
+
throw new Error("Unsafe agentic evidence path");
|
|
41
|
+
const content = await readProjectText(projectRoot, descriptor.path, MAX_ARTIFACT_BYTES);
|
|
42
|
+
if (content === undefined)
|
|
43
|
+
return undefined;
|
|
44
|
+
return Object.freeze({ ...descriptor, content });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Enumerate bounded regular workflow files without following special paths.
|
|
48
|
+
* @param projectRoot - Canonical host project root
|
|
49
|
+
* @returns Sorted project-relative workflow paths
|
|
50
|
+
*/
|
|
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
|
+
/**
|
|
73
|
+
* Read current managed ESLint content only when deterministic drift names it.
|
|
74
|
+
* @param projectRoot - Canonical host project root
|
|
75
|
+
* @param deterministic - Completed deterministic result
|
|
76
|
+
* @returns The drifted `eslint.config.ts` artifact, or undefined when not drifted
|
|
77
|
+
*/
|
|
78
|
+
async function readManagedDriftArtifact(projectRoot, deterministic) {
|
|
79
|
+
const finding = deterministic.findings.find(candidate => candidate.check === "templates.managed" &&
|
|
80
|
+
candidate.status === "fail" &&
|
|
81
|
+
/(?:^|[ :,])eslint\.config\.ts(?:$|[ ,])/u.test(candidate.reason));
|
|
82
|
+
if (finding === undefined)
|
|
83
|
+
return undefined;
|
|
84
|
+
return readOptionalArtifact(projectRoot, {
|
|
85
|
+
kind: "managed-drift",
|
|
86
|
+
path: "eslint.config.ts",
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Walk one fixed config path, distinguishing an absent key from a present
|
|
91
|
+
* value of the wrong shape.
|
|
92
|
+
* @param current - The value reached so far
|
|
93
|
+
* @param fields - Path segments still to walk
|
|
94
|
+
* @returns Whether the path is present and its boolean value, if it is one
|
|
95
|
+
*/
|
|
96
|
+
function readGatePath(current, fields) {
|
|
97
|
+
const [field, ...rest] = fields;
|
|
98
|
+
if (field === undefined) {
|
|
99
|
+
return Object.freeze({
|
|
100
|
+
present: true,
|
|
101
|
+
enabled: typeof current === "boolean" ? current : null,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (current === null ||
|
|
105
|
+
typeof current !== "object" ||
|
|
106
|
+
Array.isArray(current)) {
|
|
107
|
+
return Object.freeze({ present: true, enabled: null });
|
|
108
|
+
}
|
|
109
|
+
if (!Object.prototype.hasOwnProperty.call(current, field)) {
|
|
110
|
+
return Object.freeze({ present: false, enabled: null });
|
|
111
|
+
}
|
|
112
|
+
return readGatePath(current[field], rest);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Resolve the allowlisted path without retaining unrelated config values.
|
|
116
|
+
* @param config - One parsed config file
|
|
117
|
+
* @returns Whether this file declares the mutation gate, and its value
|
|
118
|
+
*/
|
|
119
|
+
function mutationGateRead(config) {
|
|
120
|
+
return readGatePath(config, ["quality", "mutation", "gate", "enabled"]);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Read the effective mutation-gate boolean with local-config precedence.
|
|
124
|
+
* @param projectRoot - Canonical host project root
|
|
125
|
+
* @returns The frozen config projection disclosed to the evaluator
|
|
126
|
+
*/
|
|
127
|
+
export async function readAgenticConfig(projectRoot) {
|
|
128
|
+
const [committed, local] = await Promise.all([
|
|
129
|
+
readProjectJsonObject(projectRoot, CONFIG_PATH),
|
|
130
|
+
readProjectJsonObject(projectRoot, LOCAL_CONFIG_PATH),
|
|
131
|
+
]);
|
|
132
|
+
const localGate = mutationGateRead(local ?? {});
|
|
133
|
+
const committedGate = mutationGateRead(committed ?? {});
|
|
134
|
+
const enabled = localGate.present ? localGate.enabled : committedGate.enabled;
|
|
135
|
+
return Object.freeze({
|
|
136
|
+
quality: Object.freeze({
|
|
137
|
+
mutation: Object.freeze({
|
|
138
|
+
gate: Object.freeze({ enabled }),
|
|
139
|
+
}),
|
|
140
|
+
}),
|
|
141
|
+
gates: Object.freeze({
|
|
142
|
+
traceability: Object.freeze({
|
|
143
|
+
level: traceabilityLevel(local) ?? traceabilityLevel(committed),
|
|
144
|
+
}),
|
|
145
|
+
}),
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The declared pull-request level of the traceability gate, or null.
|
|
150
|
+
*
|
|
151
|
+
* Local config wins over committed, matching how the mutation gate above
|
|
152
|
+
* resolves — a developer's local override is the effective answer, and
|
|
153
|
+
* reporting the committed value while the local one governs would describe a
|
|
154
|
+
* configuration nobody is running.
|
|
155
|
+
* @param config - A parsed config object, or null when the file is absent
|
|
156
|
+
* @returns The declared level, or null when this file does not declare it
|
|
157
|
+
*/
|
|
158
|
+
function traceabilityLevel(config) {
|
|
159
|
+
const gates = config?.gates;
|
|
160
|
+
if (!isJsonObject(gates) || !isJsonObject(gates.traceability)) {
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
const declared = gates.traceability["pull-request"];
|
|
164
|
+
if (typeof declared === "string")
|
|
165
|
+
return declared;
|
|
166
|
+
if (isJsonObject(declared) && typeof declared.level === "string") {
|
|
167
|
+
return declared.level;
|
|
168
|
+
}
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Collect confined project evidence with hard per-file and aggregate bounds.
|
|
173
|
+
* @param projectRoot - Canonical host project root
|
|
174
|
+
* @param deterministic - Completed deterministic result
|
|
175
|
+
* @returns Frozen artifacts sorted by path
|
|
176
|
+
*/
|
|
177
|
+
export async function collectAgenticArtifacts(projectRoot, deterministic) {
|
|
178
|
+
const [overrides, managedDrift] = await Promise.all([
|
|
179
|
+
Promise.all(OVERRIDE_PATHS.map(descriptor => readOptionalArtifact(projectRoot, descriptor))),
|
|
180
|
+
readManagedDriftArtifact(projectRoot, deterministic),
|
|
181
|
+
]);
|
|
182
|
+
const workflows = (await Promise.all((await workflowPaths(projectRoot)).map(async (relativePath) => {
|
|
183
|
+
const content = await readProjectText(projectRoot, relativePath, MAX_ARTIFACT_BYTES);
|
|
184
|
+
if (content === undefined) {
|
|
185
|
+
throw new Error("Workflow evidence disappeared during collection");
|
|
186
|
+
}
|
|
187
|
+
const excerpt = workflowExcerpt(content);
|
|
188
|
+
if (excerpt.length === 0)
|
|
189
|
+
return undefined;
|
|
190
|
+
if (Buffer.byteLength(excerpt, "utf8") > MAX_ARTIFACT_BYTES) {
|
|
191
|
+
throw new Error("Workflow excerpt exceeds artifact size limit");
|
|
192
|
+
}
|
|
193
|
+
return Object.freeze({
|
|
194
|
+
kind: "workflow",
|
|
195
|
+
path: relativePath.split(path.sep).join("/"),
|
|
196
|
+
content: excerpt,
|
|
197
|
+
});
|
|
198
|
+
}))).filter(item => item !== undefined);
|
|
199
|
+
const artifacts = [
|
|
200
|
+
...overrides.filter(item => item !== undefined),
|
|
201
|
+
...(managedDrift === undefined ? [] : [managedDrift]),
|
|
202
|
+
...workflows,
|
|
203
|
+
].sort((left, right) => left.path.localeCompare(right.path));
|
|
204
|
+
if (artifacts.length > MAX_AGENTIC_ARTIFACTS) {
|
|
205
|
+
throw new Error("Agentic evidence exceeds artifact limit");
|
|
206
|
+
}
|
|
207
|
+
const totalBytes = artifacts.reduce((total, artifact) => total + Buffer.byteLength(artifact.content, "utf8"), 0);
|
|
208
|
+
if (totalBytes > MAX_TOTAL_ARTIFACT_BYTES) {
|
|
209
|
+
throw new Error("Agentic evidence exceeds aggregate size limit");
|
|
210
|
+
}
|
|
211
|
+
return Object.freeze(artifacts);
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=agentic-evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-evidence.js","sourceRoot":"","sources":["../../src/health/agentic-evidence.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOpD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,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,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAC7D,MAAM,WA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AAC;QAC/C,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;QACrD,GAAG,SAAS;KACb,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7D,IAAI,SAAS,CAAC,MAAM,GAAG,qBAAqB,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IACD,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CACjC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EACxE,CAAC,CACF,CAAC;IACF,IAAI,UAAU,GAAG,wBAAwB,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC"}
|
package/dist/health/agentic.d.ts
CHANGED
|
@@ -1,86 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AgenticHealthConfig, AgenticHealthEvaluation } from "./agentic-contract.js";
|
|
2
|
+
import { type HealthResult } from "./contract.js";
|
|
2
3
|
import { type DeterministicHealthOptions } from "./deterministic.js";
|
|
3
|
-
|
|
4
|
-
export type AgenticArtifactKind = "eslint-override" | "eslint-ignore-override" | "managed-drift" | "workflow";
|
|
5
|
-
/**
|
|
6
|
-
* One bounded, project-relative source artifact. Artifact content comes from
|
|
7
|
-
* the host project and must be treated as untrusted prompt material.
|
|
8
|
-
*/
|
|
9
|
-
export interface AgenticHealthArtifact {
|
|
10
|
-
readonly kind: AgenticArtifactKind;
|
|
11
|
-
readonly path: string;
|
|
12
|
-
readonly content: string;
|
|
13
|
-
}
|
|
14
|
-
/** Deeply frozen input passed to the evaluator without filesystem capability. */
|
|
15
|
-
export interface AgenticHealthRequest {
|
|
16
|
-
readonly schemaVersion: 1;
|
|
17
|
-
readonly deterministicFindings: readonly HealthFinding[];
|
|
18
|
-
readonly config: {
|
|
19
|
-
readonly quality: {
|
|
20
|
-
readonly mutation: {
|
|
21
|
-
readonly gate: {
|
|
22
|
-
readonly enabled: boolean | null;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Declared level of the work-item traceability gate, or null when the
|
|
28
|
-
* project never mentions it. Null is NOT off: an undeclared gate still runs
|
|
29
|
-
* its built-in check, so an evaluator told "null" must read that as
|
|
30
|
-
* "running on Lisa's default", never as "not enforced".
|
|
31
|
-
*/
|
|
32
|
-
readonly gates: {
|
|
33
|
-
readonly traceability: {
|
|
34
|
-
readonly level: string | null;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
readonly artifacts: readonly AgenticHealthArtifact[];
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* One optional warning proposed by an evaluator.
|
|
42
|
-
*
|
|
43
|
-
* At most 50 judgments are accepted. `check` must use the `agentic.` namespace,
|
|
44
|
-
* cannot be the reserved `agentic.review-completed` id, and is limited to 128
|
|
45
|
-
* UTF-8 bytes. `reason` must be trimmed, within 2,000 UTF-8 bytes, and contain
|
|
46
|
-
* no control or bidirectional-formatting characters. Lisa, rather than the
|
|
47
|
-
* evaluator, stamps every accepted judgment as agentic and warn.
|
|
48
|
-
*/
|
|
49
|
-
export interface AgenticHealthJudgment {
|
|
50
|
-
readonly check: string;
|
|
51
|
-
readonly reason: string;
|
|
52
|
-
}
|
|
53
|
-
/** Closed evaluator response; unavailable and completed are the only states. */
|
|
54
|
-
export type AgenticHealthEvaluation = {
|
|
55
|
-
readonly status: "completed";
|
|
56
|
-
readonly judgments: readonly AgenticHealthJudgment[];
|
|
57
|
-
} | {
|
|
58
|
-
readonly status: "unavailable";
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Injected harness-neutral judgment boundary.
|
|
62
|
-
*
|
|
63
|
-
* The callback is arbitrary JavaScript, not a security sandbox. Lisa supplies
|
|
64
|
-
* no filesystem capability, but consumers must still trust their evaluator.
|
|
65
|
-
* Evaluators must honor the AbortSignal and release their own timers, streams,
|
|
66
|
-
* and other resources when it aborts. Runtime output remains hostile-validated.
|
|
67
|
-
*/
|
|
68
|
-
export type AgenticHealthEvaluator = (request: AgenticHealthRequest, signal: AbortSignal) => Promise<AgenticHealthEvaluation>;
|
|
69
|
-
/** Explicit optional agentic-pass configuration. */
|
|
70
|
-
export interface AgenticHealthConfig {
|
|
71
|
-
readonly enabled: boolean;
|
|
72
|
-
readonly evaluator?: AgenticHealthEvaluator;
|
|
73
|
-
readonly timeoutMs?: number;
|
|
74
|
-
}
|
|
4
|
+
export type { AgenticArtifactKind, AgenticHealthArtifact, AgenticHealthConfig, AgenticHealthEvaluation, AgenticHealthEvaluator, AgenticHealthJudgment, AgenticHealthRequest, } from "./agentic-contract.js";
|
|
75
5
|
/** Deterministic options plus the optional agentic pass. */
|
|
76
6
|
export interface HealthOptions extends DeterministicHealthOptions {
|
|
77
7
|
readonly agentic?: AgenticHealthConfig;
|
|
78
8
|
}
|
|
79
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Validate the evaluator's exact closed result union atomically.
|
|
11
|
+
* @param candidate - Untrusted evaluator output
|
|
12
|
+
* @returns The validated, frozen evaluation
|
|
13
|
+
*/
|
|
80
14
|
export declare function validateAgenticHealthEvaluation(candidate: unknown): AgenticHealthEvaluation;
|
|
81
15
|
/**
|
|
82
16
|
* Run deterministic health and, only when explicitly enabled and available,
|
|
83
17
|
* compose one bounded optional agentic review. Collection never persists.
|
|
18
|
+
* @param projectPath - Host project to inspect
|
|
19
|
+
* @param options - Deterministic options plus the optional agentic pass
|
|
20
|
+
* @returns The deterministic result, or the composed full result
|
|
84
21
|
*/
|
|
85
22
|
export declare function runHealth(projectPath: string, options?: HealthOptions): Promise<HealthResult>;
|
|
86
23
|
//# sourceMappingURL=agentic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentic.d.ts","sourceRoot":"","sources":["../../src/health/agentic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agentic.d.ts","sourceRoot":"","sources":["../../src/health/agentic.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAGV,mBAAmB,EACnB,uBAAuB,EAGxB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAU5B,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAS/B,4DAA4D;AAC5D,MAAM,WAAW,aAAc,SAAQ,0BAA0B;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;CACxC;AA+DD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,OAAO,GACjB,uBAAuB,CAwCzB;AA+ED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAC7B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,CAiDvB"}
|