@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
|
@@ -33,14 +33,13 @@ set -eo pipefail
|
|
|
33
33
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
34
34
|
|
|
35
35
|
DRY_RUN=false
|
|
36
|
-
VERBOSE=false
|
|
37
36
|
PROJECT_PATH=""
|
|
38
37
|
PASSTHROUGH=()
|
|
39
38
|
|
|
40
39
|
while [[ $# -gt 0 ]]; do
|
|
41
40
|
case $1 in
|
|
42
41
|
-n|--dry-run) DRY_RUN=true; PASSTHROUGH+=("--dry-run"); shift ;;
|
|
43
|
-
-v|--verbose)
|
|
42
|
+
-v|--verbose) PASSTHROUGH+=("--verbose"); shift ;;
|
|
44
43
|
-h|--help) sed -n '2,30p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
|
|
45
44
|
-*) echo "Unknown option: $1" >&2; exit 1 ;;
|
|
46
45
|
*) PROJECT_PATH="$1"; shift ;;
|
|
@@ -261,7 +261,7 @@ expand_types_with_parents() {
|
|
|
261
261
|
# Add in reverse order (parent first)
|
|
262
262
|
for ((i=${#chain[@]}-1; i>=0; i--)); do
|
|
263
263
|
local t="${chain[$i]}"
|
|
264
|
-
if [[
|
|
264
|
+
if [[ " $seen " != *" $t "* ]]; then
|
|
265
265
|
expanded+=("$t")
|
|
266
266
|
seen="$seen $t"
|
|
267
267
|
fi
|
|
@@ -767,7 +767,7 @@ config_bypass_actors() {
|
|
|
767
767
|
return 0
|
|
768
768
|
fi
|
|
769
769
|
|
|
770
|
-
local filter=
|
|
770
|
+
local filter=".github.rulesets.bypassActors[\$name] // null"
|
|
771
771
|
if [[ "$ruleset_name" == "base" ]]; then
|
|
772
772
|
if jq -e '.github.rulesets.bypassActors.base != null' "$config" &> /dev/null; then
|
|
773
773
|
log_warning "github.rulesets.bypassActors.base is ignored โ declare base's bypass list as policy.ruleset.bypass_actors" >&2
|
|
@@ -802,7 +802,7 @@ bypass_declaration_error() {
|
|
|
802
802
|
[[ -f "$config" ]] || return 0
|
|
803
803
|
|
|
804
804
|
local key="github.rulesets.bypassActors[\"$ruleset_name\"]"
|
|
805
|
-
local filter=
|
|
805
|
+
local filter=".github.rulesets.bypassActors[\$name]?"
|
|
806
806
|
if [[ "$ruleset_name" == "base" ]]; then
|
|
807
807
|
key="policy.ruleset.bypass_actors"
|
|
808
808
|
filter='.policy.ruleset.bypass_actors?'
|
|
@@ -1079,15 +1079,15 @@ apply_with_integration_fallback() {
|
|
|
1079
1079
|
app_ids=$(echo "$payload" | jq --argjson actions "$ACTIONS_INTEGRATION_ID" \
|
|
1080
1080
|
'[.rules[]? | select(.type=="required_status_checks") | .parameters.required_status_checks[]?.integration_id | select(. != null and . != $actions)] | unique | .[]')
|
|
1081
1081
|
|
|
1082
|
-
local drop_filter=
|
|
1082
|
+
local drop_filter="
|
|
1083
1083
|
.rules |= (
|
|
1084
1084
|
map(
|
|
1085
|
-
if .type == "required_status_checks" then
|
|
1086
|
-
.parameters.required_status_checks |= map(select((.integration_id // -1) as
|
|
1085
|
+
if .type == \"required_status_checks\" then
|
|
1086
|
+
.parameters.required_status_checks |= map(select((.integration_id // -1) as \$i | (\$drop | index(\$i)) | not))
|
|
1087
1087
|
else . end
|
|
1088
1088
|
)
|
|
1089
|
-
| map(select(.type != "required_status_checks" or (.parameters.required_status_checks | length) > 0))
|
|
1090
|
-
)
|
|
1089
|
+
| map(select(.type != \"required_status_checks\" or (.parameters.required_status_checks | length) > 0))
|
|
1090
|
+
)"
|
|
1091
1091
|
|
|
1092
1092
|
# Each single app id first (keep the most checks), then all app ids.
|
|
1093
1093
|
local candidates=()
|
|
@@ -72,11 +72,24 @@ values_file="$(
|
|
|
72
72
|
# Match the managed block's AWS poison removal, then export the artifact's
|
|
73
73
|
# values only for this session-start process and its project-hook child.
|
|
74
74
|
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
|
|
75
|
-
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
# The authority process proved this exact path and its complete writer format:
|
|
76
|
+
# two comment lines, then one `export NAME='value'` line per variable, where a
|
|
77
|
+
# quote inside the value is written `'\''`. That format is read here as data
|
|
78
|
+
# rather than sourced as code, so no byte of the artifact is executed, and the
|
|
79
|
+
# result is exactly what sourcing it would export.
|
|
80
|
+
values_quote="'\\''"
|
|
81
|
+
values_apostrophe="'"
|
|
82
|
+
while IFS= read -r values_line; do
|
|
83
|
+
case "${values_line}" in
|
|
84
|
+
"#"*) continue ;;
|
|
85
|
+
esac
|
|
86
|
+
values_name="${values_line#export }"
|
|
87
|
+
values_name="${values_name%%=*}"
|
|
88
|
+
values_value="${values_line#export "${values_name}"="${values_apostrophe}"}"
|
|
89
|
+
values_value="${values_value%"${values_apostrophe}"}"
|
|
90
|
+
export "${values_name}=${values_value//"${values_quote}"/${values_apostrophe}}"
|
|
91
|
+
done <"${values_file}"
|
|
92
|
+
unset values_quote values_apostrophe values_line values_name values_value
|
|
80
93
|
|
|
81
94
|
# A project hook is part of the remote toolchain contract too. It covers tools
|
|
82
95
|
# that cannot be expressed by the pinned manifest, so skipping it on a cached
|
|
@@ -741,10 +741,8 @@ export async function main(argv, injected = {}) {
|
|
|
741
741
|
return rollback(options, deps);
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
/* c8 ignore start -- CLI wiring, exercised through main() in tests */
|
|
745
744
|
if (invokedAsScript(import.meta.url)) {
|
|
746
745
|
main(process.argv.slice(2)).then(code => {
|
|
747
746
|
process.exitCode = code;
|
|
748
747
|
});
|
|
749
748
|
}
|
|
750
|
-
/* c8 ignore stop */
|
|
@@ -90,7 +90,7 @@ fi
|
|
|
90
90
|
# { "branch": "<target branch>", "canary": true } (CodySwannGT/lisa#4604).
|
|
91
91
|
# Validated up front: the loop reads it through process substitution, whose
|
|
92
92
|
# exit status `set -e` ignores, so a bad entry would otherwise be skipped.
|
|
93
|
-
WORKSPACE_ENTRIES_JQ=
|
|
93
|
+
WORKSPACE_ENTRIES_JQ="to_entries[] | .key as \$k | (.value | if type == \"object\" then .branch else . end) as \$raw | (if (\$raw | type) == \"string\" and (\$raw | length) > 0 then \$raw else error(\"entry \\(\$k) has no valid branch (expected a non-empty string)\") end) as \$b | \"\\(\$k)\\t\\(\$b)\""
|
|
94
94
|
if ! jq -r "$WORKSPACE_ENTRIES_JQ" "$CONFIG_FILE" >/dev/null; then
|
|
95
95
|
log_error "Invalid workspace entry in $CONFIG_FILE"
|
|
96
96
|
exit 1
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* Git merge driver for Lisa's two checked-in generated artifacts โ
|
|
4
|
-
* `src/core/upstream-evidence-manifest.
|
|
5
|
-
* `src/core/lisa-owned-hash-ledger.
|
|
4
|
+
* `src/core/upstream-evidence-manifest.json` and
|
|
5
|
+
* `src/core/lisa-owned-hash-ledger.json` (issue CodySwannGT/lisa#3084).
|
|
6
|
+
*
|
|
7
|
+
* Both were TypeScript modules until CodySwannGT/lisa#4929 moved their data to
|
|
8
|
+
* JSON. A JSON artifact is merged by `scripts/lib/merge-generated-json.mjs` on a
|
|
9
|
+
* parsed model with the same pointwise semantics described below; the
|
|
10
|
+
* line-based parser here still serves any TypeScript-shaped artifact and the
|
|
11
|
+
* coverage guard's tripwire.
|
|
6
12
|
*
|
|
7
13
|
* ## The problem this exists for
|
|
8
14
|
*
|
|
@@ -77,7 +83,7 @@
|
|
|
77
83
|
*
|
|
78
84
|
* ## How it works
|
|
79
85
|
*
|
|
80
|
-
*
|
|
86
|
+
* A TypeScript-shaped file is segmented into literal TEXT runs and ENTRIES blocks (a run of
|
|
81
87
|
* `<key>: <value>` lines at one indent, each absorbing its own continuation
|
|
82
88
|
* lines). Entry bodies are carried as **raw source text**, never re-rendered
|
|
83
89
|
* from a parsed model, so this driver has no opinion about either generator's
|
|
@@ -117,6 +123,10 @@ import { readFileSync, writeFileSync } from "node:fs";
|
|
|
117
123
|
import process from "node:process";
|
|
118
124
|
|
|
119
125
|
import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
126
|
+
import {
|
|
127
|
+
isJsonArtifact,
|
|
128
|
+
mergeJsonArtifact,
|
|
129
|
+
} from "./lib/merge-generated-json.mjs";
|
|
120
130
|
|
|
121
131
|
/**
|
|
122
132
|
* Identity standing for "this side does not have this thing at all".
|
|
@@ -162,7 +172,7 @@ const ARRAY_OPEN = /Object\.freeze\(\[\s*$/u;
|
|
|
162
172
|
*
|
|
163
173
|
* ## Why NOT the hash ledger
|
|
164
174
|
*
|
|
165
|
-
* `src/core/lisa-owned-hash-ledger.ts` appears in **0 of 7** historical
|
|
175
|
+
* The hash ledger (then `src/core/lisa-owned-hash-ledger.ts`) appears in **0 of 7** historical
|
|
166
176
|
* conflicts despite a 43% touch rate, and merged cleanly on both sides of two
|
|
167
177
|
* live PRs the day #3822 was filed. Its entries are append-only arrays that
|
|
168
178
|
* `unionArrayEntry` already merges exactly. It needs nothing, and a same-key
|
|
@@ -173,7 +183,7 @@ const ARRAY_OPEN = /Object\.freeze\(\[\s*$/u;
|
|
|
173
183
|
* @type {ReadonlySet<string>}
|
|
174
184
|
*/
|
|
175
185
|
export const DERIVED_ENTRY_RESOLUTION_PATHS = Object.freeze(
|
|
176
|
-
new Set(["src/core/upstream-evidence-manifest.
|
|
186
|
+
new Set(["src/core/upstream-evidence-manifest.json"])
|
|
177
187
|
);
|
|
178
188
|
|
|
179
189
|
/**
|
|
@@ -497,6 +507,8 @@ function mergeEntries(base, ours, theirs, resolveDerived) {
|
|
|
497
507
|
*/
|
|
498
508
|
export function mergeGeneratedArtifact(base, ours, theirs, artifactPath) {
|
|
499
509
|
const resolveDerived = resolvesDerivedEntries(artifactPath);
|
|
510
|
+
if (isJsonArtifact(ours))
|
|
511
|
+
return mergeJsonArtifact(base, ours, theirs, resolveDerived);
|
|
500
512
|
const parsedOurs = parseArtifact(ours);
|
|
501
513
|
const parsedTheirs = parseArtifact(theirs);
|
|
502
514
|
if (!parsedOurs.ok)
|
|
@@ -690,7 +702,7 @@ export function runMergeGeneratedArtifact(
|
|
|
690
702
|
` git show ":3:${label}" > "${label}"\n` +
|
|
691
703
|
` bun run build:upstream-evidence-manifest\n` +
|
|
692
704
|
` bun run build:lisa-owned-hash-ledger\n` +
|
|
693
|
-
` git add "${label}" src/core/upstream-evidence-manifest.
|
|
705
|
+
` git add "${label}" src/core/upstream-evidence-manifest.json src/core/lisa-owned-hash-ledger.json\n` +
|
|
694
706
|
`\n` +
|
|
695
707
|
`Take the other side instead with \`git show ":2:${label}"\`. The redirect truncates\n` +
|
|
696
708
|
`${label} before git writes, so a failed first command leaves it empty โ re-run it,\n` +
|
|
@@ -154,7 +154,6 @@ export function main(argv) {
|
|
|
154
154
|
: 0;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
/* c8 ignore start -- CLI wiring, exercised through main() in tests */
|
|
158
157
|
if (invokedAsScript(import.meta.url)) {
|
|
159
158
|
try {
|
|
160
159
|
process.exitCode = main(process.argv.slice(2));
|
|
@@ -163,4 +162,3 @@ if (invokedAsScript(import.meta.url)) {
|
|
|
163
162
|
process.exitCode = 1;
|
|
164
163
|
}
|
|
165
164
|
}
|
|
166
|
-
/* c8 ignore stop */
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* answer โ the file whose bytes moved, the cause, and both commands:
|
|
24
24
|
*
|
|
25
25
|
* ```
|
|
26
|
-
* Error: src/core/upstream-evidence-manifest.
|
|
26
|
+
* Error: src/core/upstream-evidence-manifest.json is stale.
|
|
27
27
|
* Its inputs moved after it was generated. โฆ
|
|
28
28
|
* At commit time lint-staged reformats every staged file BEFORE this
|
|
29
29
|
* check runs, so a manifest generated first is stale by the time it is
|
|
@@ -112,12 +112,30 @@ const configs: ProjectConfig[] = [
|
|
|
112
112
|
{ learnings: withFile },
|
|
113
113
|
];
|
|
114
114
|
for (const config of configs) resolveLearningsSettings(config);
|
|
115
|
-
// @ts-expect-error mergeDriver is a boolean opt-out, never a string
|
|
116
|
-
const invalid: LearningsConfig = { mergeDriver: "false" };
|
|
117
|
-
void invalid;
|
|
118
115
|
`,
|
|
119
116
|
"utf8"
|
|
120
117
|
);
|
|
118
|
+
// The negative case compiles on its own and must FAIL: mergeDriver is a
|
|
119
|
+
// boolean opt-out, never a string. Asserting tsc's actual diagnostic (rather
|
|
120
|
+
// than marking the line expected-to-error inside the passing project) proves
|
|
121
|
+
// the published type rejects the value for the stated reason.
|
|
122
|
+
await writeFile(
|
|
123
|
+
path.join(typeConsumer, "invalid-consumer.ts"),
|
|
124
|
+
`import type { LearningsConfig } from "@codyswann/lisa/learnings";
|
|
125
|
+
|
|
126
|
+
export const invalid: LearningsConfig = { mergeDriver: "false" };
|
|
127
|
+
`,
|
|
128
|
+
"utf8"
|
|
129
|
+
);
|
|
130
|
+
await writeFile(
|
|
131
|
+
path.join(typeConsumer, "tsconfig.invalid.json"),
|
|
132
|
+
`${JSON.stringify(
|
|
133
|
+
{ extends: "./tsconfig.json", include: ["invalid-consumer.ts"] },
|
|
134
|
+
null,
|
|
135
|
+
2
|
|
136
|
+
)}\n`,
|
|
137
|
+
"utf8"
|
|
138
|
+
);
|
|
121
139
|
await executeFile(
|
|
122
140
|
process.execPath,
|
|
123
141
|
[
|
|
@@ -127,6 +145,21 @@ void invalid;
|
|
|
127
145
|
],
|
|
128
146
|
{ cwd: typeConsumer }
|
|
129
147
|
);
|
|
148
|
+
await assert.rejects(
|
|
149
|
+
executeFile(
|
|
150
|
+
process.execPath,
|
|
151
|
+
[
|
|
152
|
+
path.join(root, "node_modules", "typescript", "bin", "tsc"),
|
|
153
|
+
"-p",
|
|
154
|
+
path.join(typeConsumer, "tsconfig.invalid.json"),
|
|
155
|
+
],
|
|
156
|
+
{ cwd: typeConsumer }
|
|
157
|
+
),
|
|
158
|
+
error =>
|
|
159
|
+
/invalid-consumer\.ts\(3,\d+\): error TS2322: Type 'string' is not assignable to type 'boolean( \| undefined)?'/u.test(
|
|
160
|
+
String(error.stdout)
|
|
161
|
+
)
|
|
162
|
+
);
|
|
130
163
|
|
|
131
164
|
const packedVictim = "packed-victim";
|
|
132
165
|
const packedProvenance = "issue:#2015";
|
|
@@ -461,7 +461,6 @@ export function mainSpec(argv) {
|
|
|
461
461
|
return report(result);
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
/* c8 ignore start -- CLI wiring, exercised through main() in tests */
|
|
465
464
|
if (invokedAsScript(import.meta.url)) {
|
|
466
465
|
try {
|
|
467
466
|
const argv = process.argv.slice(2);
|
|
@@ -484,4 +483,3 @@ if (invokedAsScript(import.meta.url)) {
|
|
|
484
483
|
process.exitCode = 1;
|
|
485
484
|
}
|
|
486
485
|
}
|
|
487
|
-
/* c8 ignore stop */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# shellcheck shell=sh
|
|
2
|
+
# Git runs this hook with no shebang through /bin/sh, without -e.
|
|
1
3
|
# BEGIN: AI GUARDRAILS
|
|
2
4
|
|
|
3
5
|
# --- lisa:pm-detect ---
|
|
@@ -54,6 +56,9 @@ case "$PACKAGE_MANAGER" in
|
|
|
54
56
|
*) RUNNER="npm run"; EXECUTOR="npx" ;;
|
|
55
57
|
esac
|
|
56
58
|
# --- end lisa:pm-detect ---
|
|
59
|
+
# RUNNER and EXECUTOR are handed on to the commands this hook runs, as the
|
|
60
|
+
# pre-push hook hands them to its extension files.
|
|
61
|
+
export RUNNER EXECUTOR
|
|
57
62
|
|
|
58
63
|
# Get the commit message file path
|
|
59
64
|
COMMIT_MSG_FILE=$1
|
|
@@ -97,9 +102,10 @@ if ! node "$WORK_ITEM_SCRIPT" validate-commit "$COMMIT_MSG_FILE"; then
|
|
|
97
102
|
fi
|
|
98
103
|
|
|
99
104
|
echo "๐ Validating commit message with commitlint..."
|
|
100
|
-
$EXECUTOR commitlint --edit $1
|
|
105
|
+
$EXECUTOR commitlint --edit "$1"
|
|
106
|
+
STEP_STATUS=$?
|
|
101
107
|
|
|
102
|
-
if [
|
|
108
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
103
109
|
echo ""
|
|
104
110
|
echo "โ Commit message does not follow conventional commits format!"
|
|
105
111
|
echo ""
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# shellcheck shell=sh
|
|
2
|
+
# Git runs this hook with no shebang through /bin/sh, without -e.
|
|
1
3
|
# BEGIN: AI GUARDRAILS
|
|
2
4
|
# --- lisa:pm-detect ---
|
|
3
5
|
# Detect the package manager this project wants, honoring explicit opt-outs.
|
|
@@ -53,6 +55,9 @@ case "$PACKAGE_MANAGER" in
|
|
|
53
55
|
*) RUNNER="npm run"; EXECUTOR="npx" ;;
|
|
54
56
|
esac
|
|
55
57
|
# --- end lisa:pm-detect ---
|
|
58
|
+
# RUNNER and EXECUTOR are handed on to the commands this hook runs, as the
|
|
59
|
+
# pre-push hook hands them to its extension files.
|
|
60
|
+
export RUNNER EXECUTOR
|
|
56
61
|
|
|
57
62
|
echo "๐ฆ Using package manager: $PACKAGE_MANAGER"
|
|
58
63
|
|
|
@@ -301,7 +306,7 @@ elif command -v gitleaks >/dev/null 2>&1; then
|
|
|
301
306
|
GITLEAKS_IGNORE_ARGS="--gitleaks-ignore-path=$GITLEAKS_COMBINED_IGNORE"
|
|
302
307
|
fi
|
|
303
308
|
|
|
304
|
-
gitleaks protect --staged --redact -v $GITLEAKS_IGNORE_ARGS
|
|
309
|
+
gitleaks protect --staged --redact -v ${GITLEAKS_IGNORE_ARGS:+"$GITLEAKS_IGNORE_ARGS"}
|
|
305
310
|
GITLEAKS_STATUS=$?
|
|
306
311
|
if [ -n "$GITLEAKS_COMBINED_IGNORE" ]; then
|
|
307
312
|
rm -f "$GITLEAKS_COMBINED_IGNORE"
|
|
@@ -367,7 +372,8 @@ if lisa_gate_covers artifact-freshness; then
|
|
|
367
372
|
elif [ -f "scripts/check-derived-artifacts.mjs" ] && command -v node >/dev/null 2>&1; then
|
|
368
373
|
echo "๐งพ Checking generated artifacts..."
|
|
369
374
|
node scripts/check-derived-artifacts.mjs --staged
|
|
370
|
-
|
|
375
|
+
STEP_STATUS=$?
|
|
376
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
371
377
|
exit 1
|
|
372
378
|
fi
|
|
373
379
|
fi
|
|
@@ -390,7 +396,8 @@ fi
|
|
|
390
396
|
if [ -f "scripts/check-threshold-ratchet.mjs" ] && command -v node >/dev/null 2>&1; then
|
|
391
397
|
echo "๐ Checking threshold ratchet..."
|
|
392
398
|
node scripts/check-threshold-ratchet.mjs --staged
|
|
393
|
-
|
|
399
|
+
STEP_STATUS=$?
|
|
400
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
394
401
|
echo ""
|
|
395
402
|
echo "โ A quality threshold was weakened. Thresholds may only tighten."
|
|
396
403
|
echo " Fix the code to meet the current gate. Only if the regression is"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# shellcheck shell=sh
|
|
2
|
+
# Git runs this hook with no shebang through /bin/sh, without -e.
|
|
1
3
|
# BEGIN: AI GUARDRAILS
|
|
2
4
|
|
|
3
5
|
# BEGIN: deletion-only push guard
|
|
@@ -55,7 +57,7 @@ if [ -n "$LISA_PUSHED_REFS" ]; then
|
|
|
55
57
|
# The `||` keeps a final line with no trailing newline. A line whose second
|
|
56
58
|
# field is empty โ a blank or malformed line โ counts as commit-carrying,
|
|
57
59
|
# because a push this cannot read must never be classified as a deletion.
|
|
58
|
-
while read -r LISA_PUSHED_LOCAL_REF LISA_PUSHED_LOCAL_SHA
|
|
60
|
+
while read -r LISA_PUSHED_LOCAL_REF LISA_PUSHED_LOCAL_SHA _ || [ -n "$LISA_PUSHED_LOCAL_REF" ]; do
|
|
59
61
|
LISA_PUSHED_REF_COUNT=$((LISA_PUSHED_REF_COUNT + 1))
|
|
60
62
|
case "$LISA_PUSHED_LOCAL_SHA" in
|
|
61
63
|
*[!0]* | "") LISA_PUSHED_COMMIT_COUNT=$((LISA_PUSHED_COMMIT_COUNT + 1)) ;;
|
|
@@ -73,7 +75,7 @@ if [ -n "$LISA_PUSHED_REFS" ]; then
|
|
|
73
75
|
rm -f "$LISA_PUSHED_REFS"
|
|
74
76
|
fi
|
|
75
77
|
unset LISA_PUSHED_REFS LISA_PUSHED_REF_COUNT LISA_PUSHED_COMMIT_COUNT
|
|
76
|
-
unset LISA_PUSHED_LOCAL_REF LISA_PUSHED_LOCAL_SHA
|
|
78
|
+
unset LISA_PUSHED_LOCAL_REF LISA_PUSHED_LOCAL_SHA
|
|
77
79
|
# END: deletion-only push guard
|
|
78
80
|
|
|
79
81
|
# BEGIN: pushed refs file
|
|
@@ -361,7 +363,7 @@ process.stdin.on("data", chunk => { raw += chunk }).on("end", () => {
|
|
|
361
363
|
const declared = JSON.parse(raw || "[]").some(gate => gate.id === "traceability");
|
|
362
364
|
process.stdout.write(declared ? "declared" : "");
|
|
363
365
|
} catch (error) {
|
|
364
|
-
process.stderr.write(
|
|
366
|
+
process.stderr.write("\u26a0\ufe0f Could not read the gate registry: " + error.message + "\n");
|
|
365
367
|
}
|
|
366
368
|
});
|
|
367
369
|
')
|
|
@@ -419,7 +421,7 @@ LISA_OUT_OF_TREE=""
|
|
|
419
421
|
if [ -n "$LISA_PUSHED_REFS_FILE" ] && git rev-parse -q --verify HEAD >/dev/null 2>&1; then
|
|
420
422
|
# The `||` keeps a final line with no trailing newline, exactly as the
|
|
421
423
|
# deletion guard reads the same stream.
|
|
422
|
-
while read -r LISA_SCOPE_REF LISA_SCOPE_SHA
|
|
424
|
+
while read -r LISA_SCOPE_REF LISA_SCOPE_SHA _ || [ -n "$LISA_SCOPE_REF" ]; do
|
|
423
425
|
case "$LISA_SCOPE_REF" in
|
|
424
426
|
refs/heads/* | HEAD) ;;
|
|
425
427
|
*) continue ;;
|
|
@@ -439,7 +441,7 @@ if [ -n "$LISA_PUSHED_REFS_FILE" ] && git rev-parse -q --verify HEAD >/dev/null
|
|
|
439
441
|
fi
|
|
440
442
|
done < "$LISA_PUSHED_REFS_FILE"
|
|
441
443
|
fi
|
|
442
|
-
unset LISA_SCOPE_REF LISA_SCOPE_SHA
|
|
444
|
+
unset LISA_SCOPE_REF LISA_SCOPE_SHA
|
|
443
445
|
|
|
444
446
|
if [ -n "$LISA_OUT_OF_TREE" ]; then
|
|
445
447
|
# The one gate that can answer correctly from here, run before the refusal so
|
|
@@ -534,6 +536,9 @@ case "$PACKAGE_MANAGER" in
|
|
|
534
536
|
*) RUNNER="npm run"; EXECUTOR="npx" ;;
|
|
535
537
|
esac
|
|
536
538
|
# --- end lisa:pm-detect ---
|
|
539
|
+
# RUNNER and EXECUTOR are handed on to the sourced extension files below
|
|
540
|
+
# (.husky/pre-push.local, .husky/pre-push.verify) and the commands they run.
|
|
541
|
+
export RUNNER EXECUTOR
|
|
537
542
|
|
|
538
543
|
echo "๐ฆ Using package manager: $PACKAGE_MANAGER"
|
|
539
544
|
|
|
@@ -645,7 +650,8 @@ if lisa_gate_covers type-correctness; then
|
|
|
645
650
|
else
|
|
646
651
|
echo "๐ Running type check..."
|
|
647
652
|
$RUNNER typecheck
|
|
648
|
-
|
|
653
|
+
STEP_STATUS=$?
|
|
654
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
649
655
|
echo "โ Type check failed. Please fix TypeScript errors before pushing."
|
|
650
656
|
exit 1
|
|
651
657
|
fi
|
|
@@ -838,7 +844,8 @@ if lisa_gate_covers code-style-slow; then
|
|
|
838
844
|
elif jq -e '.scripts["lint:slow"]' package.json >/dev/null 2>&1; then
|
|
839
845
|
echo "๐ข Running slow lint rules..."
|
|
840
846
|
$RUNNER lint:slow
|
|
841
|
-
|
|
847
|
+
STEP_STATUS=$?
|
|
848
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
842
849
|
echo "โ Slow lint rules failed. Please fix linting issues before pushing."
|
|
843
850
|
exit 1
|
|
844
851
|
fi
|
|
@@ -863,7 +870,8 @@ if lisa_gate_covers dead-code; then
|
|
|
863
870
|
elif [ -n "$KNIP_SCRIPT" ]; then
|
|
864
871
|
echo "๐๏ธ Running dead code detection (knip)..."
|
|
865
872
|
$RUNNER "$KNIP_SCRIPT"
|
|
866
|
-
|
|
873
|
+
STEP_STATUS=$?
|
|
874
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
867
875
|
echo "โ Dead code detected. Please remove unused exports/dependencies before pushing."
|
|
868
876
|
echo ""
|
|
869
877
|
echo "To auto-fix some issues, run: $RUNNER knip:fix"
|
|
@@ -910,7 +918,7 @@ fi
|
|
|
910
918
|
# measured, and the honest command for such a project is still `test:cov` โ
|
|
911
919
|
# slower, but answering to the floor that was configured for what it runs.
|
|
912
920
|
COVERAGE_SCRIPT="test:cov"
|
|
913
|
-
if node -e 'const s=require("./package.json").scripts||{};const preflight="node scripts/lib/worktree-dependencies.mjs && ";const resolve=(k,d)=>{const raw=s[k];const v=typeof raw==="string"&&raw.startsWith(preflight)?raw.slice(preflight.length):raw;const hop
|
|
921
|
+
if node -e 'const s=require("./package.json").scripts||{};const preflight="node scripts/lib/worktree-dependencies.mjs && ";const resolve=(k,d)=>{const raw=s[k];const v=typeof raw==="string"&&raw.startsWith(preflight)?raw.slice(preflight.length):raw;const hop=/^[$]npm_execpath\s+run\s+(\S+)$/.exec((v||"").trim());return hop&&d<4?resolve(hop[1],d+1):v;};const u=resolve("test:cov:unit",0);const marker=/^(?:env(?:\s+-\S+)*\s+)?(?:[A-Za-z_][A-Za-z0-9_]*=\S+\s+)*LISA_COVERAGE_SCOPE=unit(?:\s|$)/;process.exit(typeof u==="string"&&marker.test(u.trim())?0:1)' >/dev/null 2>&1; then
|
|
914
922
|
COVERAGE_SCRIPT="test:cov:unit"
|
|
915
923
|
fi
|
|
916
924
|
|
|
@@ -919,7 +927,8 @@ if lisa_gate_covers test-correctness coverage-adequacy; then
|
|
|
919
927
|
else
|
|
920
928
|
echo "๐งช Running unit tests with coverage ($COVERAGE_SCRIPT)..."
|
|
921
929
|
$RUNNER "$COVERAGE_SCRIPT"
|
|
922
|
-
|
|
930
|
+
STEP_STATUS=$?
|
|
931
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
923
932
|
echo "โ Unit tests or coverage thresholds failed. Please fix before pushing."
|
|
924
933
|
exit 1
|
|
925
934
|
fi
|
|
@@ -931,7 +940,8 @@ if lisa_gate_covers test-integration; then
|
|
|
931
940
|
else
|
|
932
941
|
echo "๐งช Running integration tests..."
|
|
933
942
|
$RUNNER test:integration
|
|
934
|
-
|
|
943
|
+
STEP_STATUS=$?
|
|
944
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
935
945
|
echo "โ Integration tests failed. Please fix failing tests before pushing."
|
|
936
946
|
exit 1
|
|
937
947
|
fi
|
|
@@ -950,7 +960,8 @@ if lisa_gate_covers test-meaningfulness; then
|
|
|
950
960
|
elif jq -e '.scripts["test:mutation"]' package.json >/dev/null 2>&1; then
|
|
951
961
|
echo "๐งฌ Running mutation-testing gate..."
|
|
952
962
|
$RUNNER test:mutation
|
|
953
|
-
|
|
963
|
+
STEP_STATUS=$?
|
|
964
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
954
965
|
# Deliberately does NOT name a cause. This line used to say "mutation score
|
|
955
966
|
# below threshold" for every nonzero exit, including a dry run killed by its
|
|
956
967
|
# own timeout โ a sentence that was false twice over, since no score was
|
|
@@ -1039,9 +1050,10 @@ fi
|
|
|
1039
1050
|
# CI verification_coverage gate locally. It is absent for types that have not
|
|
1040
1051
|
# opted into verify_enforced, so this block is a no-op for them.
|
|
1041
1052
|
if [ -f .husky/pre-push.verify ]; then
|
|
1042
|
-
# shellcheck source
|
|
1053
|
+
# shellcheck source=pre-push.verify
|
|
1043
1054
|
. .husky/pre-push.verify
|
|
1044
|
-
|
|
1055
|
+
STEP_STATUS=$?
|
|
1056
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
1045
1057
|
echo "โ Verification (UAT) coverage check failed."
|
|
1046
1058
|
exit 1
|
|
1047
1059
|
fi
|
|
@@ -1053,9 +1065,10 @@ fi
|
|
|
1053
1065
|
# updates without editing the governance block above.
|
|
1054
1066
|
if [ -f .husky/pre-push.local ]; then
|
|
1055
1067
|
echo "๐ Running project-specific pre-push checks (.husky/pre-push.local)..."
|
|
1056
|
-
# shellcheck source
|
|
1068
|
+
# shellcheck source=pre-push.local
|
|
1057
1069
|
. .husky/pre-push.local
|
|
1058
|
-
|
|
1070
|
+
STEP_STATUS=$?
|
|
1071
|
+
if [ "$STEP_STATUS" -ne 0 ]; then
|
|
1059
1072
|
echo "โ Project-specific pre-push checks failed."
|
|
1060
1073
|
exit 1
|
|
1061
1074
|
fi
|