@codyswann/lisa 7.1.4 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +0 -2
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +3 -6
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +31 -32
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +201 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -2
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +16 -10
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +2 -2
- package/dist/cli/apply.js.map +1 -1
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +8 -4
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +2 -2
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts +5 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.js +44 -10
- package/dist/cli/doctor-readiness-supply-chain-python.js.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -2
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-worker-journey.js +2 -2
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +7 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/file-upstream-cmd.d.ts.map +1 -1
- package/dist/cli/file-upstream-cmd.js +20 -25
- package/dist/cli/file-upstream-cmd.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -2
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +13 -6
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/health-cmd.d.ts.map +1 -1
- package/dist/cli/health-cmd.js +7 -19
- package/dist/cli/health-cmd.js.map +1 -1
- package/dist/cli/lisa-test-run-jest-merge.js +5 -5
- package/dist/cli/lisa-test-run-jest-merge.js.map +1 -1
- package/dist/cli/lisa-test-run.js +8 -4
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/pr-landing.js +2 -2
- package/dist/cli/pr-landing.js.map +1 -1
- package/dist/cli/update-check.d.ts.map +1 -1
- package/dist/cli/update-check.js +7 -4
- package/dist/cli/update-check.js.map +1 -1
- package/dist/cli/update-cmd.d.ts.map +1 -1
- package/dist/cli/update-cmd.js +7 -4
- package/dist/cli/update-cmd.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/cli/worktree-ownership.js +3 -3
- package/dist/cli/worktree-ownership.js.map +1 -1
- package/dist/codex/hooks-catalog.d.ts +151 -0
- package/dist/codex/hooks-catalog.d.ts.map +1 -0
- package/dist/codex/hooks-catalog.js +315 -0
- package/dist/codex/hooks-catalog.js.map +1 -0
- package/dist/codex/hooks-compatibility.d.ts +14 -0
- package/dist/codex/hooks-compatibility.d.ts.map +1 -0
- package/dist/codex/hooks-compatibility.js +196 -0
- package/dist/codex/hooks-compatibility.js.map +1 -0
- package/dist/codex/hooks-installer.d.ts +2 -49
- package/dist/codex/hooks-installer.d.ts.map +1 -1
- package/dist/codex/hooks-installer.js +5 -546
- package/dist/codex/hooks-installer.js.map +1 -1
- package/dist/codex/hooks-source-links.d.ts +11 -0
- package/dist/codex/hooks-source-links.d.ts.map +1 -0
- package/dist/codex/hooks-source-links.js +74 -0
- package/dist/codex/hooks-source-links.js.map +1 -0
- package/dist/codex/scripts/block-migration-edits.sh +2 -2
- package/dist/codex/scripts/block-suppress-directives.sh +3 -3
- package/dist/codex/scripts/format-on-edit.sh +2 -2
- package/dist/codex/scripts/lint-on-edit.sh +2 -2
- package/dist/codex/scripts/lisa-edit-gate.sh +19 -15
- package/dist/codex/scripts/rubocop-on-edit.sh +2 -2
- package/dist/codex/scripts/sg-scan-on-edit.sh +2 -2
- package/dist/configs/coverage-scope.d.ts +0 -23
- package/dist/configs/coverage-scope.d.ts.map +1 -1
- package/dist/configs/coverage-scope.js +2 -3
- package/dist/configs/coverage-scope.js.map +1 -1
- package/dist/configs/eslint/base.d.ts +2 -113
- package/dist/configs/eslint/base.d.ts.map +1 -1
- package/dist/configs/eslint/base.js +2 -165
- package/dist/configs/eslint/base.js.map +1 -1
- package/dist/configs/eslint/cdk.d.ts.map +1 -1
- package/dist/configs/eslint/cdk.js +82 -66
- package/dist/configs/eslint/cdk.js.map +1 -1
- package/dist/configs/eslint/expo-overrides.d.ts +103 -0
- package/dist/configs/eslint/expo-overrides.d.ts.map +1 -0
- package/dist/configs/eslint/expo-overrides.js +187 -0
- package/dist/configs/eslint/expo-overrides.js.map +1 -0
- package/dist/configs/eslint/expo.d.ts +2 -7
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +186 -258
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/nestjs.d.ts.map +1 -1
- package/dist/configs/eslint/nestjs.js +86 -70
- package/dist/configs/eslint/nestjs.js.map +1 -1
- package/dist/configs/eslint/process-environment-bans.d.ts +41 -0
- package/dist/configs/eslint/process-environment-bans.d.ts.map +1 -0
- package/dist/configs/eslint/process-environment-bans.js +50 -0
- package/dist/configs/eslint/process-environment-bans.js.map +1 -0
- package/dist/configs/eslint/shared-rules.d.ts +130 -0
- package/dist/configs/eslint/shared-rules.d.ts.map +1 -0
- package/dist/configs/eslint/shared-rules.js +233 -0
- package/dist/configs/eslint/shared-rules.js.map +1 -0
- package/dist/configs/eslint/typescript.d.ts.map +1 -1
- package/dist/configs/eslint/typescript.js +2 -4
- package/dist/configs/eslint/typescript.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +2 -2
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +5 -5
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +3 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.js +2 -2
- package/dist/configs/vitest/refusal-announcement.js.map +1 -1
- package/dist/core/admission-lock.js +2 -3
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +11 -5
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +2 -2
- package/dist/core/admission.js.map +1 -1
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +8 -5
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +48 -47
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +3 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +46 -27
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/kane-cli-process.d.ts.map +1 -1
- package/dist/core/kane-cli-process.js +46 -33
- package/dist/core/kane-cli-process.js.map +1 -1
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +3 -4
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/lisa-agent-emit-extra.d.ts +75 -0
- package/dist/core/lisa-agent-emit-extra.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit-extra.js +231 -0
- package/dist/core/lisa-agent-emit-extra.js.map +1 -0
- package/dist/core/lisa-agent-emit.d.ts +79 -0
- package/dist/core/lisa-agent-emit.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit.js +224 -0
- package/dist/core/lisa-agent-emit.js.map +1 -0
- package/dist/core/lisa-deletions.d.ts +116 -0
- package/dist/core/lisa-deletions.d.ts.map +1 -0
- package/dist/core/lisa-deletions.js +316 -0
- package/dist/core/lisa-deletions.js.map +1 -0
- package/dist/core/lisa-file-results.d.ts +58 -0
- package/dist/core/lisa-file-results.d.ts.map +1 -0
- package/dist/core/lisa-file-results.js +173 -0
- package/dist/core/lisa-file-results.js.map +1 -0
- package/dist/core/lisa-maintenance.d.ts +139 -0
- package/dist/core/lisa-maintenance.d.ts.map +1 -0
- package/dist/core/lisa-maintenance.js +324 -0
- package/dist/core/lisa-maintenance.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts +7 -5
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -6036
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6021 -0
- package/dist/core/lisa-plugin-sync.d.ts +96 -0
- package/dist/core/lisa-plugin-sync.d.ts.map +1 -0
- package/dist/core/lisa-plugin-sync.js +216 -0
- package/dist/core/lisa-plugin-sync.js.map +1 -0
- package/dist/core/lisa-plugins.d.ts +42 -0
- package/dist/core/lisa-plugins.d.ts.map +1 -0
- package/dist/core/lisa-plugins.js +155 -0
- package/dist/core/lisa-plugins.js.map +1 -0
- package/dist/core/lisa-state.d.ts +202 -0
- package/dist/core/lisa-state.d.ts.map +1 -0
- package/dist/core/lisa-state.js +205 -0
- package/dist/core/lisa-state.js.map +1 -0
- package/dist/core/lisa-summary-stats.d.ts +74 -0
- package/dist/core/lisa-summary-stats.d.ts.map +1 -0
- package/dist/core/lisa-summary-stats.js +189 -0
- package/dist/core/lisa-summary-stats.js.map +1 -0
- package/dist/core/lisa-summary.d.ts +34 -0
- package/dist/core/lisa-summary.d.ts.map +1 -0
- package/dist/core/lisa-summary.js +144 -0
- package/dist/core/lisa-summary.js.map +1 -0
- package/dist/core/lisa-templates.d.ts +98 -0
- package/dist/core/lisa-templates.d.ts.map +1 -0
- package/dist/core/lisa-templates.js +251 -0
- package/dist/core/lisa-templates.js.map +1 -0
- package/dist/core/lisa.d.ts +14 -903
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +30 -2275
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +117 -61
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/template-ownership.js +0 -1
- package/dist/core/template-ownership.js.map +1 -1
- package/dist/core/upstream-attribution-body.d.ts +4 -11
- package/dist/core/upstream-attribution-body.d.ts.map +1 -1
- package/dist/core/upstream-attribution-body.js +61 -373
- package/dist/core/upstream-attribution-body.js.map +1 -1
- package/dist/core/upstream-attribution-fields.d.ts +40 -0
- package/dist/core/upstream-attribution-fields.d.ts.map +1 -0
- package/dist/core/upstream-attribution-fields.js +167 -0
- package/dist/core/upstream-attribution-fields.js.map +1 -0
- package/dist/core/upstream-attribution-files.d.ts +15 -0
- package/dist/core/upstream-attribution-files.d.ts.map +1 -0
- package/dist/core/upstream-attribution-files.js +156 -0
- package/dist/core/upstream-attribution-files.js.map +1 -0
- package/dist/core/upstream-attribution-guards.d.ts +80 -0
- package/dist/core/upstream-attribution-guards.d.ts.map +1 -0
- package/dist/core/upstream-attribution-guards.js +284 -0
- package/dist/core/upstream-attribution-guards.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +67 -30420
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +30518 -0
- package/dist/health/agentic-contract.d.ts +94 -0
- package/dist/health/agentic-contract.d.ts.map +1 -0
- package/dist/health/agentic-contract.js +2 -0
- package/dist/health/agentic-contract.js.map +1 -0
- package/dist/health/agentic-evidence.d.ts +16 -0
- package/dist/health/agentic-evidence.d.ts.map +1 -0
- package/dist/health/agentic-evidence.js +213 -0
- package/dist/health/agentic-evidence.js.map +1 -0
- package/dist/health/agentic.d.ts +11 -74
- package/dist/health/agentic.d.ts.map +1 -1
- package/dist/health/agentic.js +42 -216
- package/dist/health/agentic.js.map +1 -1
- package/dist/health/deadline.d.ts +4 -1
- package/dist/health/deadline.d.ts.map +1 -1
- package/dist/health/deadline.js +4 -3
- package/dist/health/deadline.js.map +1 -1
- package/dist/health/deterministic-inputs.d.ts.map +1 -1
- package/dist/health/deterministic-inputs.js +3 -11
- package/dist/health/deterministic-inputs.js.map +1 -1
- package/dist/health/deterministic-probes.d.ts +52 -0
- package/dist/health/deterministic-probes.d.ts.map +1 -0
- package/dist/health/deterministic-probes.js +142 -0
- package/dist/health/deterministic-probes.js.map +1 -0
- package/dist/health/deterministic.d.ts +2 -25
- package/dist/health/deterministic.d.ts.map +1 -1
- package/dist/health/deterministic.js +14 -106
- package/dist/health/deterministic.js.map +1 -1
- package/dist/health/finding-utils.d.ts +4 -3
- package/dist/health/finding-utils.d.ts.map +1 -1
- package/dist/health/finding-utils.js +4 -4
- package/dist/health/finding-utils.js.map +1 -1
- package/dist/health/governance-probes.d.ts +29 -24
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +29 -25
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/hook-inspection.d.ts +4 -3
- package/dist/health/hook-inspection.d.ts.map +1 -1
- package/dist/health/hook-inspection.js +17 -11
- package/dist/health/hook-inspection.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -4
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -9
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/prepare.js +24 -8
- package/dist/health/prepare.js.map +1 -1
- package/dist/health/project-probes.d.ts +14 -7
- package/dist/health/project-probes.d.ts.map +1 -1
- package/dist/health/project-probes.js +14 -9
- package/dist/health/project-probes.js.map +1 -1
- package/dist/health/ruleset-compare.d.ts +30 -0
- package/dist/health/ruleset-compare.d.ts.map +1 -0
- package/dist/health/ruleset-compare.js +143 -0
- package/dist/health/ruleset-compare.js.map +1 -0
- package/dist/health/ruleset-config-checks.d.ts +66 -0
- package/dist/health/ruleset-config-checks.d.ts.map +1 -0
- package/dist/health/ruleset-config-checks.js +190 -0
- package/dist/health/ruleset-config-checks.js.map +1 -0
- package/dist/health/ruleset-expected.d.ts +39 -0
- package/dist/health/ruleset-expected.d.ts.map +1 -0
- package/dist/health/ruleset-expected.js +181 -0
- package/dist/health/ruleset-expected.js.map +1 -0
- package/dist/health/ruleset-gh.d.ts +85 -0
- package/dist/health/ruleset-gh.d.ts.map +1 -0
- package/dist/health/ruleset-gh.js +177 -0
- package/dist/health/ruleset-gh.js.map +1 -0
- package/dist/health/ruleset-inspection.d.ts +13 -117
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +8 -738
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/health/ruleset-normalize.d.ts +32 -0
- package/dist/health/ruleset-normalize.d.ts.map +1 -0
- package/dist/health/ruleset-normalize.js +160 -0
- package/dist/health/ruleset-normalize.js.map +1 -0
- package/dist/health/template-compose.d.ts +9 -0
- package/dist/health/template-compose.d.ts.map +1 -0
- package/dist/health/template-compose.js +105 -0
- package/dist/health/template-compose.js.map +1 -0
- package/dist/health/template-inspection.d.ts +5 -52
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +13 -435
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/health/template-plan.d.ts +33 -0
- package/dist/health/template-plan.d.ts.map +1 -0
- package/dist/health/template-plan.js +154 -0
- package/dist/health/template-plan.js.map +1 -0
- package/dist/health/template-shape.d.ts +19 -0
- package/dist/health/template-shape.d.ts.map +1 -0
- package/dist/health/template-shape.js +122 -0
- package/dist/health/template-shape.js.map +1 -0
- package/dist/health/workflow-excerpt.d.ts +15 -0
- package/dist/health/workflow-excerpt.d.ts.map +1 -0
- package/dist/health/workflow-excerpt.js +88 -0
- package/dist/health/workflow-excerpt.js.map +1 -0
- package/dist/health/workflow-inputs-inspection.d.ts +16 -0
- package/dist/health/workflow-inputs-inspection.d.ts.map +1 -0
- package/dist/health/workflow-inputs-inspection.js +116 -0
- package/dist/health/workflow-inputs-inspection.js.map +1 -0
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +201 -20
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +73 -25
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +26 -9
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/git-state.d.ts.map +1 -1
- package/dist/standards/git-state.js +2 -2
- package/dist/standards/git-state.js.map +1 -1
- package/dist/standards/registry-checks.d.ts +34 -0
- package/dist/standards/registry-checks.d.ts.map +1 -0
- package/dist/standards/registry-checks.js +137 -0
- package/dist/standards/registry-checks.js.map +1 -0
- package/dist/standards/registry.d.ts +3 -13
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +105 -194
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/storage.js +8 -10
- package/dist/standards/storage.js.map +1 -1
- package/dist/strategies/deduplicate-arrays.d.ts +18 -0
- package/dist/strategies/deduplicate-arrays.d.ts.map +1 -0
- package/dist/strategies/deduplicate-arrays.js +25 -0
- package/dist/strategies/deduplicate-arrays.js.map +1 -0
- package/dist/strategies/package-lisa-detect.d.ts +10 -0
- package/dist/strategies/package-lisa-detect.d.ts.map +1 -0
- package/dist/strategies/package-lisa-detect.js +178 -0
- package/dist/strategies/package-lisa-detect.js.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts +16 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.js +37 -0
- package/dist/strategies/package-lisa-direct-floors.js.map +1 -0
- package/dist/strategies/package-lisa-host-pins.d.ts +43 -0
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -0
- package/dist/strategies/package-lisa-host-pins.js +254 -0
- package/dist/strategies/package-lisa-host-pins.js.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts +59 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.js +234 -0
- package/dist/strategies/package-lisa-manifest-guards.js.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts +34 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.js +106 -0
- package/dist/strategies/package-lisa-pin-alignment.js.map +1 -0
- package/dist/strategies/package-lisa-script-notes.d.ts +19 -0
- package/dist/strategies/package-lisa-script-notes.d.ts.map +1 -0
- package/dist/strategies/package-lisa-script-notes.js +145 -0
- package/dist/strategies/package-lisa-script-notes.js.map +1 -0
- package/dist/strategies/package-lisa-template-apply.d.ts +53 -0
- package/dist/strategies/package-lisa-template-apply.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-apply.js +216 -0
- package/dist/strategies/package-lisa-template-apply.js.map +1 -0
- package/dist/strategies/package-lisa-template-merge.d.ts +42 -0
- package/dist/strategies/package-lisa-template-merge.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-merge.js +202 -0
- package/dist/strategies/package-lisa-template-merge.js.map +1 -0
- package/dist/strategies/package-lisa-types.d.ts +5 -0
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +1 -195
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +27 -1333
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/tagged-merge-sections.d.ts +68 -0
- package/dist/strategies/tagged-merge-sections.d.ts.map +1 -0
- package/dist/strategies/tagged-merge-sections.js +113 -0
- package/dist/strategies/tagged-merge-sections.js.map +1 -0
- package/dist/strategies/tagged-merge.d.ts +1 -90
- package/dist/strategies/tagged-merge.d.ts.map +1 -1
- package/dist/strategies/tagged-merge.js +19 -190
- package/dist/strategies/tagged-merge.js.map +1 -1
- package/dist/utils/bounded-stream.d.ts +30 -0
- package/dist/utils/bounded-stream.d.ts.map +1 -0
- package/dist/utils/bounded-stream.js +63 -0
- package/dist/utils/bounded-stream.js.map +1 -0
- package/dist/utils/fibonacci.d.ts +3 -3
- package/dist/utils/fibonacci.d.ts.map +1 -1
- package/dist/utils/fibonacci.js +48 -10
- package/dist/utils/fibonacci.js.map +1 -1
- package/dist/utils/memo.d.ts +25 -0
- package/dist/utils/memo.d.ts.map +1 -0
- package/dist/utils/memo.js +32 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +3 -20
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/process-environment.d.ts +42 -0
- package/dist/utils/process-environment.d.ts.map +1 -0
- package/dist/utils/process-environment.js +52 -0
- package/dist/utils/process-environment.js.map +1 -0
- package/dist/utils/resolve-executable.d.ts +89 -0
- package/dist/utils/resolve-executable.d.ts.map +1 -0
- package/dist/utils/resolve-executable.js +224 -0
- package/dist/utils/resolve-executable.js.map +1 -0
- package/dist/utils/shell-command-line.d.ts +9 -0
- package/dist/utils/shell-command-line.d.ts.map +1 -0
- package/dist/utils/shell-command-line.js +43 -0
- package/dist/utils/shell-command-line.js.map +1 -0
- package/dist/utils/usage-accounting-totals.d.ts +19 -0
- package/dist/utils/usage-accounting-totals.d.ts.map +1 -0
- package/dist/utils/usage-accounting-totals.js +145 -0
- package/dist/utils/usage-accounting-totals.js.map +1 -0
- package/dist/utils/usage-accounting.d.ts +2 -14
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -169
- package/dist/utils/usage-accounting.js.map +1 -1
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-react-violations.test.js +213 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-valid.test.js +251 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-violations.test.js +222 -0
- package/eslint-plugin-code-organization/__tests__/statement-order-tester.js +42 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +6 -8
- package/expo/copy-overwrite/jest.setup.ts +11 -10
- package/expo/create-only/scripts/zap-baseline.sh +6 -18
- package/harper-fabric/create-only/scripts/zap-baseline.sh +7 -9
- package/nestjs/create-only/scripts/zap-baseline.sh +6 -7
- package/package.json +4 -4
- package/phaser/copy-overwrite/.husky/pre-push.verify +2 -0
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/lisa/hooks/track-plan-sessions.sh +7 -131
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-copilot/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-copilot/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-cursor/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-cursor/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-devin/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-devin/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/.codex-plugin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-agy/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-copilot/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-cursor/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-devin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-copilot/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-cursor/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-devin/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/.codex-plugin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-agy/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-copilot/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-copilot/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-cursor/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-cursor/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-devin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-devin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-devin/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/src/base/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/src/base/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/src/base/hooks/track-plan-sessions.sh +7 -131
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/src/harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/src/harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/src/nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/src/nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/src/nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/src/rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/src/rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/src/typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/src/typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/scripts/build-plugins.sh +1 -1
- package/scripts/check-derived-artifacts.mjs +2 -2
- package/scripts/check-generated-artifact-merge-coverage.mjs +45 -4
- package/scripts/check-orphan-test-processes.mjs +0 -1
- package/scripts/check-self-dependency-pin.mjs +0 -2
- package/scripts/claude-remote-setup.sh +12 -7
- package/scripts/cleanup-amplify-branches.sh +0 -1
- package/scripts/generate-export-surface.mjs +131 -61
- package/scripts/generate-lisa-owned-hash-ledger.mjs +87 -102
- package/scripts/generate-upstream-evidence-manifest.mjs +56 -49
- package/scripts/github-status-check.sh +5 -25
- package/scripts/install-claude-plugins.sh +10 -8
- package/scripts/lib/merge-generated-json.mjs +274 -0
- package/scripts/lib/upstream-manifest-staleness.mjs +38 -34
- package/scripts/lib/upstream-public-commits.mjs +35 -18
- package/scripts/lisa-commit-and-pr-local.sh +1 -1
- package/scripts/lisa-enforcement-fallback.sh +31 -32
- package/scripts/lisa-github-environments.sh +5 -1
- package/scripts/lisa-github-repo-settings.sh +5 -1
- package/scripts/lisa-github-repo-setup.sh +1 -2
- package/scripts/lisa-github-rulesets.sh +8 -8
- package/scripts/lisa-remote-env/session-start.sh +18 -5
- package/scripts/lisa-rollback-release.mjs +0 -2
- package/scripts/lisa-update-local.sh +1 -1
- package/scripts/merge-generated-artifact.mjs +18 -6
- package/scripts/raise-self-dependency-pin.mjs +0 -2
- package/scripts/run-artifact-checks.mjs +1 -1
- package/scripts/verify-packed-learnings-contract.mjs +36 -3
- package/scripts/verify-self-pin-raise.mjs +0 -2
- package/typescript/copy-contents/.husky/commit-msg +8 -2
- package/typescript/copy-contents/.husky/post-checkout +2 -0
- package/typescript/copy-contents/.husky/post-merge +2 -0
- package/typescript/copy-contents/.husky/pre-commit +10 -3
- package/typescript/copy-contents/.husky/pre-push +29 -16
- package/typescript/copy-contents/.husky/prepare-commit-msg +2 -0
- package/typescript/create-only/.husky/pre-push.local +2 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +0 -643
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type MigrationResult } from "../migrations/index.js";
|
|
2
|
+
import { LisaAgentEmitExtra } from "./lisa-agent-emit-extra.js";
|
|
3
|
+
/**
|
|
4
|
+
* Migrations, learnings relocation, lockfile reconciliation, and host hooks.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class LisaMaintenance extends LisaAgentEmitExtra {
|
|
7
|
+
/**
|
|
8
|
+
* Resolve the host-owned learnings destination before template ownership is
|
|
9
|
+
* computed. The canonical source stays at its stable package path while its
|
|
10
|
+
* destination follows the configured project-rules directory.
|
|
11
|
+
*/
|
|
12
|
+
protected loadProjectLearningsFile(): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Warn when `humanGate` or `dependencies.humanSignOff` holds a value outside
|
|
15
|
+
* its closed vocabulary. The value is treated as its default rather than
|
|
16
|
+
* failing the apply (see `project-config-dependencies` and
|
|
17
|
+
* `project-config-human-gate`), so this warning is the only
|
|
18
|
+
* place the CLI says the project did not get the setting it typed.
|
|
19
|
+
*/
|
|
20
|
+
protected reportInvalidDependencySettings(): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Invoke pre-strategy migration hooks so migrations can snapshot project state
|
|
23
|
+
* before strategies overwrite or delete managed files.
|
|
24
|
+
*/
|
|
25
|
+
protected runMigrationsBeforeStrategies(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Run all applicable migrations against the destination project
|
|
28
|
+
*/
|
|
29
|
+
protected processMigrations(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Update migration counters from aggregated migration results
|
|
32
|
+
* @param results - Migration results to aggregate into counters
|
|
33
|
+
*/
|
|
34
|
+
protected updateMigrationCounters(results: readonly MigrationResult[]): void;
|
|
35
|
+
/**
|
|
36
|
+
* Relocate a legacy `.claude/rules/PROJECT_LEARNINGS.md` ledger to the new
|
|
37
|
+
* cold `.lisa/PROJECT_LEARNINGS.md` BEFORE the create-only strategy would
|
|
38
|
+
* seed an empty ledger at the new path — otherwise both would exist and the
|
|
39
|
+
* real entries would be stranded at the legacy location.
|
|
40
|
+
*
|
|
41
|
+
* Runs even on the postinstall/bootstrap skip path: that guard exists to
|
|
42
|
+
* suppress agent-surface EMISSIONS, but moving machine-managed state under
|
|
43
|
+
* `.lisa/` is not an agent emission and is safe headless. Skipping it there
|
|
44
|
+
* was the exact defect that stranded populated legacy ledgers on the fleet
|
|
45
|
+
* upgrade path (create-only still seeds an empty `.lisa/` ledger, so every
|
|
46
|
+
* later run then hits the both-exist no-clobber warning). Only dry-run is
|
|
47
|
+
* exempt. Idempotent; logs one line on a move and one warning when both exist.
|
|
48
|
+
*/
|
|
49
|
+
protected processLearningsRelocation(): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Reconcile the project's agent instruction files onto Lisa's canonical
|
|
52
|
+
* pattern after the per-harness emits run.
|
|
53
|
+
*
|
|
54
|
+
* The per-agent emits write `AGENTS.md` / `CLAUDE.md` create-only, so they
|
|
55
|
+
* can't repair files that already exist from older Lisa versions. This step
|
|
56
|
+
* runs the same non-destructive migration `lisa doctor` uses — stripping the
|
|
57
|
+
* legacy agy baked-rules block from an existing `AGENTS.md` and adding the
|
|
58
|
+
* `@AGENTS.md` import to an existing `CLAUDE.md`. Without it, updating an
|
|
59
|
+
* existing project would create a canonical `AGENTS.md` that its stale
|
|
60
|
+
* `CLAUDE.md` never imports.
|
|
61
|
+
*
|
|
62
|
+
* Harness-aware: a `CLAUDE.md` pointer is only *created* when the harness
|
|
63
|
+
* includes Claude, so a codex/cursor/copilot/agy-only project never gets a
|
|
64
|
+
* stray `CLAUDE.md`. An existing host-authored `CLAUDE.md` still gets the
|
|
65
|
+
* import regardless. Skipped in dry-run mode.
|
|
66
|
+
*/
|
|
67
|
+
protected processInstructionFilesMigration(): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Repoint `sonar integrate`-generated hook shims at Lisa's Sonar wrapper.
|
|
70
|
+
*
|
|
71
|
+
* CodySwannGT/lisa#4502. The vendor shim calls `sonar hook <event>` directly,
|
|
72
|
+
* so an unauthenticated CLI blocks every prompt; the wrapper Lisa ships
|
|
73
|
+
* resolves `SONARQUBE_CLI_TOKEN` and degrades that case to a warning. Only
|
|
74
|
+
* shims at documented locations whose body is recognisably the vendor's are
|
|
75
|
+
* rewritten, and only when the wrapper is present; comment-only edits to such
|
|
76
|
+
* a shim are not preserved. Deliberately NOT gated on
|
|
77
|
+
* `verification.sonar.enabled` or the CLI being on PATH: a shim committed
|
|
78
|
+
* earlier still runs whenever a developer has the CLI installed.
|
|
79
|
+
*
|
|
80
|
+
* Skipped in dry-run mode, and for postinstall-safe and self-apply runs —
|
|
81
|
+
* consistent with `processSonarIntegration`, which those runs also skip, so
|
|
82
|
+
* agent surfaces are only touched by a full apply; the next full apply
|
|
83
|
+
* repoints. A shim that cannot be rewritten, or that calls `sonar hook` in a
|
|
84
|
+
* shape Lisa does not recognise, is reported as a warning and the apply
|
|
85
|
+
* continues. Each shim is backed up before it is replaced, so a failure in
|
|
86
|
+
* a later apply step restores it along with everything else.
|
|
87
|
+
*/
|
|
88
|
+
protected processSonarShimRepoint(): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Sync lockfiles to package.json in-process when the postinstall trampoline
|
|
91
|
+
* will not run.
|
|
92
|
+
*
|
|
93
|
+
* The trampoline only fires when Lisa is invoked as a package-manager
|
|
94
|
+
* lifecycle script (postinstall, prepare, etc.). When users invoke Lisa
|
|
95
|
+
* manually after `npm install -D @codyswann/lisa@latest` — the recommended
|
|
96
|
+
* flow on plain-npm projects, where Lisa's postinstall is not auto-run —
|
|
97
|
+
* the trampoline never schedules and any package.json changes Lisa just
|
|
98
|
+
* made (e.g., adding `oxlint-tsgolint` via package.lisa.json merge) leave
|
|
99
|
+
* package-lock.json out of sync. The next `npm ci` in CI then fails with
|
|
100
|
+
* "lockfile out of sync".
|
|
101
|
+
*
|
|
102
|
+
* This method closes that gap by running the same lockfile-regeneration
|
|
103
|
+
* commands the trampoline child would have run, but synchronously in the
|
|
104
|
+
* current process. We skip when the trampoline IS scheduled (it will
|
|
105
|
+
* regenerate on its own after the parent PM exits) and when running as the
|
|
106
|
+
* trampoline child itself (the trampoline has its own regen step at the end).
|
|
107
|
+
* @param prePackageJsonHash - Hash of package.json captured before apply ran (null if file did not exist)
|
|
108
|
+
*/
|
|
109
|
+
protected reconcileLockfilesInProcess(prePackageJsonHash: string | null): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Schedule a reconciliation re-run when Lisa is invoked as a package-manager
|
|
112
|
+
* lifecycle script. Works around the fact that `bun add` (and similar
|
|
113
|
+
* package-manager mutations) cache package.json in memory at the start of
|
|
114
|
+
* the command and rewrite it at the end, clobbering any changes made by
|
|
115
|
+
* postinstall scripts.
|
|
116
|
+
*
|
|
117
|
+
* The trampoline is always fully detached so the package manager can exit
|
|
118
|
+
* normally; the child then detects the exit and re-runs Lisa. See
|
|
119
|
+
* utils/postinstall-trampoline.ts for details.
|
|
120
|
+
*
|
|
121
|
+
* Skipped when this apply did not mutate package.json: the trampoline exists
|
|
122
|
+
* solely to redo package.json changes that the parent package manager's
|
|
123
|
+
* end-of-command rewrite clobbers (#383). With no mutation there is nothing
|
|
124
|
+
* to clobber — the rewrite restores identical content — and scheduling a
|
|
125
|
+
* detached re-apply (plus its lockfile regen) is pure waste. File-based
|
|
126
|
+
* template writes are not clobbered and need no reconciliation.
|
|
127
|
+
* @param prePackageJsonHash - Hash of package.json captured before apply mutated anything (null if the file did not exist)
|
|
128
|
+
* @returns Promise that resolves immediately after the detached child is spawned
|
|
129
|
+
*/
|
|
130
|
+
protected schedulePostinstallReconciliation(prePackageJsonHash: string | null): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Install Rails wrappers through their manager after a real apply.
|
|
133
|
+
* Failure is reported without turning a usable agent checkout into a blocked
|
|
134
|
+
* startup; doctor and health independently report its actual installation.
|
|
135
|
+
* @returns Once the bounded installation attempt has settled
|
|
136
|
+
*/
|
|
137
|
+
protected installRailsGitHooks(): Promise<void>;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=lisa-maintenance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-maintenance.d.ts","sourceRoot":"","sources":["../../src/core/lisa-maintenance.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,wBAAwB,CAAC;AAyBhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;GAEG;AACH,8BAAsB,eAAgB,SAAQ,kBAAkB;IAC9D;;;;OAIG;cACa,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBzD;;;;;;OAMG;cACa,+BAA+B,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhE;;;OAGG;cACa,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC;IAe9D;;OAEG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBlD;;;OAGG;IACH,SAAS,CAAC,uBAAuB,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,GAAG,IAAI;IAU5E;;;;;;;;;;;;;OAaG;cACa,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3D;;;;;;;;;;;;;;;;OAgBG;cACa,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBjE;;;;;;;;;;;;;;;;;;;OAmBG;cACa,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCxD;;;;;;;;;;;;;;;;;;;OAmBG;cACa,2BAA2B,CACzC,kBAAkB,EAAE,MAAM,GAAG,IAAI,GAChC,OAAO,CAAC,IAAI,CAAC;IAmBhB;;;;;;;;;;;;;;;;;;;OAmBG;cACa,iCAAiC,CAC/C,kBAAkB,EAAE,MAAM,GAAG,IAAI,GAChC,OAAO,CAAC,IAAI,CAAC;IA8ChB;;;;;OAKG;cACa,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;CAiBtD"}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-maintenance.ts
|
|
3
|
+
* @description Migrations, learnings relocation, lockfile reconciliation, and host hooks. One layer of the `Lisa` orchestrator; each layer
|
|
4
|
+
* extends the one below it so the apply pipeline reads as one class while no
|
|
5
|
+
* single module carries the whole pipeline.
|
|
6
|
+
* @module core
|
|
7
|
+
*/
|
|
8
|
+
import * as fse from "fs-extra";
|
|
9
|
+
import * as path from "node:path";
|
|
10
|
+
import pc from "picocolors";
|
|
11
|
+
import { ensureRailsHooks, RAILS_HOOK_INSTALL_COMMAND, } from "../../scripts/lib/rails-hooks.mjs";
|
|
12
|
+
import { getPackageVersion } from "../cli/version.js";
|
|
13
|
+
import { RECONCILIATION_REPORT_SCHEMA_VERSION, recordReconciliationScheduled, recordReconciliationSpawnFailure, resolveReconciliationReportPath, } from "./reconciliation-report.js";
|
|
14
|
+
import { repointSonarShims } from "../sonar/sonar-shim-repoint.js";
|
|
15
|
+
import { isPostinstallSafeApply } from "./apply-mode.js";
|
|
16
|
+
import { getLisaDistDir, hashFile, isRunningAsTrampoline, regenerateLockfilesInProcess, scheduleReconciliationChild, shouldSchedulePostinstallReconciliation, } from "../utils/postinstall-trampoline.js";
|
|
17
|
+
import { harnessIncludesAgent } from "./config.js";
|
|
18
|
+
import { migrateInstructionFiles, relocateProjectLearningsLedger, } from "./instruction-files-migration.js";
|
|
19
|
+
import { assertSafeLearningParents, resolveSafeLearningTarget, } from "./learnings-file-safety.js";
|
|
20
|
+
import { dependencySettingsWarning, humanGateSettingsWarnings, readProjectConfig, resolveLegacyProjectLearningsFile, resolveProjectLearningsFile, } from "./project-config.js";
|
|
21
|
+
import { LisaAgentEmitExtra } from "./lisa-agent-emit-extra.js";
|
|
22
|
+
/**
|
|
23
|
+
* Migrations, learnings relocation, lockfile reconciliation, and host hooks.
|
|
24
|
+
*/
|
|
25
|
+
export class LisaMaintenance extends LisaAgentEmitExtra {
|
|
26
|
+
/**
|
|
27
|
+
* Resolve the host-owned learnings destination before template ownership is
|
|
28
|
+
* computed. The canonical source stays at its stable package path while its
|
|
29
|
+
* destination follows the configured project-rules directory.
|
|
30
|
+
*/
|
|
31
|
+
async loadProjectLearningsFile() {
|
|
32
|
+
const config = await readProjectConfig(this.config.destDir);
|
|
33
|
+
const relativeFile = resolveProjectLearningsFile(config);
|
|
34
|
+
const { root, target } = resolveSafeLearningTarget(this.config.destDir, relativeFile);
|
|
35
|
+
await assertSafeLearningParents(root, path.dirname(target));
|
|
36
|
+
this.projectLearningsFile = path.normalize(relativeFile);
|
|
37
|
+
// Belt-and-braces against the fleet-upgrade defect: if a populated legacy
|
|
38
|
+
// ledger exists and the destination does not, the create-only strategy must
|
|
39
|
+
// not seed an empty ledger here — the relocation (which runs even on the
|
|
40
|
+
// bootstrap/skip path) moves the real file into place instead.
|
|
41
|
+
const legacyRelative = resolveLegacyProjectLearningsFile(config);
|
|
42
|
+
this.suppressLearningsSeedForRelocation =
|
|
43
|
+
legacyRelative !== relativeFile &&
|
|
44
|
+
(await fse.pathExists(path.join(this.config.destDir, legacyRelative))) &&
|
|
45
|
+
!(await fse.pathExists(target));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Warn when `humanGate` or `dependencies.humanSignOff` holds a value outside
|
|
49
|
+
* its closed vocabulary. The value is treated as its default rather than
|
|
50
|
+
* failing the apply (see `project-config-dependencies` and
|
|
51
|
+
* `project-config-human-gate`), so this warning is the only
|
|
52
|
+
* place the CLI says the project did not get the setting it typed.
|
|
53
|
+
*/
|
|
54
|
+
async reportInvalidDependencySettings() {
|
|
55
|
+
const config = await readProjectConfig(this.config.destDir);
|
|
56
|
+
// `humanGate` degrades the same way (CodySwannGT/lisa#4687): an invalid
|
|
57
|
+
// mode resolves to "access-only", and this is where the CLI says so.
|
|
58
|
+
for (const line of humanGateSettingsWarnings(config)) {
|
|
59
|
+
this.deps.logger.warn(line);
|
|
60
|
+
}
|
|
61
|
+
const warning = dependencySettingsWarning(config);
|
|
62
|
+
if (warning !== undefined)
|
|
63
|
+
this.deps.logger.warn(warning);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Invoke pre-strategy migration hooks so migrations can snapshot project state
|
|
67
|
+
* before strategies overwrite or delete managed files.
|
|
68
|
+
*/
|
|
69
|
+
async runMigrationsBeforeStrategies() {
|
|
70
|
+
const { logger, migrationRegistry } = this.deps;
|
|
71
|
+
const ctx = {
|
|
72
|
+
projectDir: this.config.destDir,
|
|
73
|
+
lisaDir: this.config.lisaDir,
|
|
74
|
+
detectedTypes: this.detectedTypes,
|
|
75
|
+
dryRun: this.config.dryRun,
|
|
76
|
+
postinstallSafe: isPostinstallSafeApply(this.config),
|
|
77
|
+
logger,
|
|
78
|
+
};
|
|
79
|
+
await migrationRegistry.runBeforeStrategies(ctx);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Run all applicable migrations against the destination project
|
|
83
|
+
*/
|
|
84
|
+
async processMigrations() {
|
|
85
|
+
const { logger, migrationRegistry } = this.deps;
|
|
86
|
+
const ctx = {
|
|
87
|
+
projectDir: this.config.destDir,
|
|
88
|
+
lisaDir: this.config.lisaDir,
|
|
89
|
+
detectedTypes: this.detectedTypes,
|
|
90
|
+
dryRun: this.config.dryRun,
|
|
91
|
+
postinstallSafe: isPostinstallSafeApply(this.config),
|
|
92
|
+
logger,
|
|
93
|
+
};
|
|
94
|
+
logger.info("Running migrations...");
|
|
95
|
+
const results = await migrationRegistry.runAll(ctx);
|
|
96
|
+
this.updateMigrationCounters(results);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Update migration counters from aggregated migration results
|
|
100
|
+
* @param results - Migration results to aggregate into counters
|
|
101
|
+
*/
|
|
102
|
+
updateMigrationCounters(results) {
|
|
103
|
+
for (const result of results) {
|
|
104
|
+
if (result.action === "applied") {
|
|
105
|
+
this.counters.migrationsApplied++;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
this.counters.migrationsSkipped++;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Relocate a legacy `.claude/rules/PROJECT_LEARNINGS.md` ledger to the new
|
|
114
|
+
* cold `.lisa/PROJECT_LEARNINGS.md` BEFORE the create-only strategy would
|
|
115
|
+
* seed an empty ledger at the new path — otherwise both would exist and the
|
|
116
|
+
* real entries would be stranded at the legacy location.
|
|
117
|
+
*
|
|
118
|
+
* Runs even on the postinstall/bootstrap skip path: that guard exists to
|
|
119
|
+
* suppress agent-surface EMISSIONS, but moving machine-managed state under
|
|
120
|
+
* `.lisa/` is not an agent emission and is safe headless. Skipping it there
|
|
121
|
+
* was the exact defect that stranded populated legacy ledgers on the fleet
|
|
122
|
+
* upgrade path (create-only still seeds an empty `.lisa/` ledger, so every
|
|
123
|
+
* later run then hits the both-exist no-clobber warning). Only dry-run is
|
|
124
|
+
* exempt. Idempotent; logs one line on a move and one warning when both exist.
|
|
125
|
+
*/
|
|
126
|
+
async processLearningsRelocation() {
|
|
127
|
+
if (this.config.dryRun) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const result = await relocateProjectLearningsLedger(this.config.destDir);
|
|
131
|
+
if (result.action !== undefined) {
|
|
132
|
+
this.deps.logger.info(pc.cyan(`Learnings ledger: ${result.action}`));
|
|
133
|
+
}
|
|
134
|
+
if (result.warning !== undefined) {
|
|
135
|
+
this.deps.logger.warn(`Learnings ledger: ${result.warning}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Reconcile the project's agent instruction files onto Lisa's canonical
|
|
140
|
+
* pattern after the per-harness emits run.
|
|
141
|
+
*
|
|
142
|
+
* The per-agent emits write `AGENTS.md` / `CLAUDE.md` create-only, so they
|
|
143
|
+
* can't repair files that already exist from older Lisa versions. This step
|
|
144
|
+
* runs the same non-destructive migration `lisa doctor` uses — stripping the
|
|
145
|
+
* legacy agy baked-rules block from an existing `AGENTS.md` and adding the
|
|
146
|
+
* `@AGENTS.md` import to an existing `CLAUDE.md`. Without it, updating an
|
|
147
|
+
* existing project would create a canonical `AGENTS.md` that its stale
|
|
148
|
+
* `CLAUDE.md` never imports.
|
|
149
|
+
*
|
|
150
|
+
* Harness-aware: a `CLAUDE.md` pointer is only *created* when the harness
|
|
151
|
+
* includes Claude, so a codex/cursor/copilot/agy-only project never gets a
|
|
152
|
+
* stray `CLAUDE.md`. An existing host-authored `CLAUDE.md` still gets the
|
|
153
|
+
* import regardless. Skipped in dry-run mode.
|
|
154
|
+
*/
|
|
155
|
+
async processInstructionFilesMigration() {
|
|
156
|
+
if (this.config.dryRun) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const result = await migrateInstructionFiles(this.config.destDir, {
|
|
163
|
+
createClaudePointer: harnessIncludesAgent(this.config.harness, "claude"),
|
|
164
|
+
// apply already relocated the ledger in processLearningsRelocation (an
|
|
165
|
+
// earlier phase); skip it here so a both-exist conflict warns only once.
|
|
166
|
+
relocateLearnings: false,
|
|
167
|
+
});
|
|
168
|
+
if (result.changed) {
|
|
169
|
+
this.deps.logger.info(pc.cyan(`Instruction files: ${result.actions.join("; ")}`));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Repoint `sonar integrate`-generated hook shims at Lisa's Sonar wrapper.
|
|
174
|
+
*
|
|
175
|
+
* CodySwannGT/lisa#4502. The vendor shim calls `sonar hook <event>` directly,
|
|
176
|
+
* so an unauthenticated CLI blocks every prompt; the wrapper Lisa ships
|
|
177
|
+
* resolves `SONARQUBE_CLI_TOKEN` and degrades that case to a warning. Only
|
|
178
|
+
* shims at documented locations whose body is recognisably the vendor's are
|
|
179
|
+
* rewritten, and only when the wrapper is present; comment-only edits to such
|
|
180
|
+
* a shim are not preserved. Deliberately NOT gated on
|
|
181
|
+
* `verification.sonar.enabled` or the CLI being on PATH: a shim committed
|
|
182
|
+
* earlier still runs whenever a developer has the CLI installed.
|
|
183
|
+
*
|
|
184
|
+
* Skipped in dry-run mode, and for postinstall-safe and self-apply runs —
|
|
185
|
+
* consistent with `processSonarIntegration`, which those runs also skip, so
|
|
186
|
+
* agent surfaces are only touched by a full apply; the next full apply
|
|
187
|
+
* repoints. A shim that cannot be rewritten, or that calls `sonar hook` in a
|
|
188
|
+
* shape Lisa does not recognise, is reported as a warning and the apply
|
|
189
|
+
* continues. Each shim is backed up before it is replaced, so a failure in
|
|
190
|
+
* a later apply step restores it along with everything else.
|
|
191
|
+
*/
|
|
192
|
+
async processSonarShimRepoint() {
|
|
193
|
+
if (this.config.dryRun) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const { backupService, logger } = this.deps;
|
|
200
|
+
// Back each shim up before it is replaced, so a later apply step failing
|
|
201
|
+
// rolls it back together with the wrapper it now points at.
|
|
202
|
+
const result = await repointSonarShims(this.config.destDir, {
|
|
203
|
+
beforeWrite: absolute => backupService.backup(absolute),
|
|
204
|
+
});
|
|
205
|
+
if (result.repointed.length > 0) {
|
|
206
|
+
logger.info(pc.cyan(`Sonar shims: repointed ${result.repointed.length} at the Lisa wrapper (${result.repointed.join(", ")})`));
|
|
207
|
+
}
|
|
208
|
+
for (const failed of result.failed) {
|
|
209
|
+
logger.warn(`Sonar shim ${failed} could not be repointed at the Lisa wrapper (not readable or writable, or reached through a symlinked folder outside the project); patch it by hand per lisa-setup-sonar §4a.`);
|
|
210
|
+
}
|
|
211
|
+
for (const stray of result.unrecognized) {
|
|
212
|
+
logger.warn(`Sonar shim ${stray} calls \`sonar hook\` in a form Lisa does not recognise, so it was left untouched; patch it by hand per lisa-setup-sonar §4a.`);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Sync lockfiles to package.json in-process when the postinstall trampoline
|
|
217
|
+
* will not run.
|
|
218
|
+
*
|
|
219
|
+
* The trampoline only fires when Lisa is invoked as a package-manager
|
|
220
|
+
* lifecycle script (postinstall, prepare, etc.). When users invoke Lisa
|
|
221
|
+
* manually after `npm install -D @codyswann/lisa@latest` — the recommended
|
|
222
|
+
* flow on plain-npm projects, where Lisa's postinstall is not auto-run —
|
|
223
|
+
* the trampoline never schedules and any package.json changes Lisa just
|
|
224
|
+
* made (e.g., adding `oxlint-tsgolint` via package.lisa.json merge) leave
|
|
225
|
+
* package-lock.json out of sync. The next `npm ci` in CI then fails with
|
|
226
|
+
* "lockfile out of sync".
|
|
227
|
+
*
|
|
228
|
+
* This method closes that gap by running the same lockfile-regeneration
|
|
229
|
+
* commands the trampoline child would have run, but synchronously in the
|
|
230
|
+
* current process. We skip when the trampoline IS scheduled (it will
|
|
231
|
+
* regenerate on its own after the parent PM exits) and when running as the
|
|
232
|
+
* trampoline child itself (the trampoline has its own regen step at the end).
|
|
233
|
+
* @param prePackageJsonHash - Hash of package.json captured before apply ran (null if file did not exist)
|
|
234
|
+
*/
|
|
235
|
+
async reconcileLockfilesInProcess(prePackageJsonHash) {
|
|
236
|
+
if (this.config.dryRun)
|
|
237
|
+
return;
|
|
238
|
+
if (isRunningAsTrampoline())
|
|
239
|
+
return;
|
|
240
|
+
if (shouldSchedulePostinstallReconciliation(this.config.dryRun))
|
|
241
|
+
return;
|
|
242
|
+
const pkgPath = this.hostPackageJsonPath();
|
|
243
|
+
const postHash = hashFile(pkgPath);
|
|
244
|
+
if (prePackageJsonHash === null ||
|
|
245
|
+
postHash === null ||
|
|
246
|
+
prePackageJsonHash === postHash) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
this.deps.logger.info(pc.cyan("Syncing lockfiles to match updated package.json..."));
|
|
250
|
+
await regenerateLockfilesInProcess(this.config.destDir);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Schedule a reconciliation re-run when Lisa is invoked as a package-manager
|
|
254
|
+
* lifecycle script. Works around the fact that `bun add` (and similar
|
|
255
|
+
* package-manager mutations) cache package.json in memory at the start of
|
|
256
|
+
* the command and rewrite it at the end, clobbering any changes made by
|
|
257
|
+
* postinstall scripts.
|
|
258
|
+
*
|
|
259
|
+
* The trampoline is always fully detached so the package manager can exit
|
|
260
|
+
* normally; the child then detects the exit and re-runs Lisa. See
|
|
261
|
+
* utils/postinstall-trampoline.ts for details.
|
|
262
|
+
*
|
|
263
|
+
* Skipped when this apply did not mutate package.json: the trampoline exists
|
|
264
|
+
* solely to redo package.json changes that the parent package manager's
|
|
265
|
+
* end-of-command rewrite clobbers (#383). With no mutation there is nothing
|
|
266
|
+
* to clobber — the rewrite restores identical content — and scheduling a
|
|
267
|
+
* detached re-apply (plus its lockfile regen) is pure waste. File-based
|
|
268
|
+
* template writes are not clobbered and need no reconciliation.
|
|
269
|
+
* @param prePackageJsonHash - Hash of package.json captured before apply mutated anything (null if the file did not exist)
|
|
270
|
+
* @returns Promise that resolves immediately after the detached child is spawned
|
|
271
|
+
*/
|
|
272
|
+
async schedulePostinstallReconciliation(prePackageJsonHash) {
|
|
273
|
+
const postHash = hashFile(this.hostPackageJsonPath());
|
|
274
|
+
if (prePackageJsonHash === postHash) {
|
|
275
|
+
this.deps.logger.info(pc.gray("Postinstall reconciliation skipped: package.json unchanged by this apply"));
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (!shouldSchedulePostinstallReconciliation(this.config.dryRun)) {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
const lisaVersion = getPackageVersion();
|
|
282
|
+
// Written BEFORE the spawn on purpose: a spawn that never produces a child
|
|
283
|
+
// otherwise leaves nothing on disk at all, which is one of the two failure
|
|
284
|
+
// modes #2750 could not tell apart from success.
|
|
285
|
+
await recordReconciliationScheduled(this.config.destDir, lisaVersion);
|
|
286
|
+
try {
|
|
287
|
+
const lisaDistDir = getLisaDistDir(import.meta.url);
|
|
288
|
+
await scheduleReconciliationChild(this.config.destDir, lisaDistDir, process.ppid, {
|
|
289
|
+
reportPath: resolveReconciliationReportPath(this.config.destDir),
|
|
290
|
+
reportSchemaVersion: RECONCILIATION_REPORT_SCHEMA_VERSION,
|
|
291
|
+
lisaVersion,
|
|
292
|
+
// The content the package manager resolved its lockfile from. The
|
|
293
|
+
// child compares against THIS rather than against its own re-apply.
|
|
294
|
+
baselinePackageJsonHash: prePackageJsonHash,
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
catch (error) {
|
|
298
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
299
|
+
await recordReconciliationSpawnFailure(this.config.destDir, lisaVersion, message);
|
|
300
|
+
this.deps.logger.warn(`Could not schedule postinstall reconciliation: ${message}`);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Install Rails wrappers through their manager after a real apply.
|
|
305
|
+
* Failure is reported without turning a usable agent checkout into a blocked
|
|
306
|
+
* startup; doctor and health independently report its actual installation.
|
|
307
|
+
* @returns Once the bounded installation attempt has settled
|
|
308
|
+
*/
|
|
309
|
+
async installRailsGitHooks() {
|
|
310
|
+
if (this.config.dryRun ||
|
|
311
|
+
this.config.validateOnly ||
|
|
312
|
+
!this.detectedTypes.includes("rails"))
|
|
313
|
+
return;
|
|
314
|
+
try {
|
|
315
|
+
const result = await ensureRailsHooks(this.config.destDir);
|
|
316
|
+
if (result.status === "failed" && result.detail)
|
|
317
|
+
this.deps.logger.warn(result.detail);
|
|
318
|
+
}
|
|
319
|
+
catch {
|
|
320
|
+
this.deps.logger.warn(`Rails Git hooks could not be installed; run ${RAILS_HOOK_INSTALL_COMMAND}.`);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
//# sourceMappingURL=lisa-maintenance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-maintenance.js","sourceRoot":"","sources":["../../src/core/lisa-maintenance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAKzD,OAAO,EACL,cAAc,EACd,QAAQ,EACR,qBAAqB,EACrB,4BAA4B,EAC5B,2BAA2B,EAC3B,uCAAuC,GACxC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,iCAAiC,EACjC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AM,CAAC,OAAO,CAAC,CAAC;YAC3D,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM;gBAC7C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QAAC,MAAM,CAAC;YACP,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CACnB,+CAA+C,0BAA0B,GAAG,CAC7E,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Destination path to every content hash recorded for it. */
|
|
2
|
+
type HashRecord = Readonly<Record<string, readonly string[]>>;
|
|
2
3
|
/**
|
|
3
4
|
* Every content hash Lisa has published at each Lisa-owned destination path.
|
|
4
5
|
*
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
* refuses rather than risk deleting a stronger guard. See
|
|
8
9
|
* `src/core/lisa-owned-provenance.ts`.
|
|
9
10
|
*/
|
|
10
|
-
export declare const LISA_OWNED_HASH_LEDGER:
|
|
11
|
+
export declare const LISA_OWNED_HASH_LEDGER: HashRecord;
|
|
11
12
|
/**
|
|
12
13
|
* The subset of the ledger some run of the generator derived from git history.
|
|
13
14
|
*
|
|
@@ -21,8 +22,9 @@ export declare const LISA_OWNED_HASH_LEDGER: Readonly<Record<string, readonly st
|
|
|
21
22
|
* clone depth and merge topology, so "this clone cannot see it" is not evidence
|
|
22
23
|
* that Lisa never shipped it, and dropping one would permanently stop refresh
|
|
23
24
|
* recognising a genuinely older host copy. They are *reported* instead — by
|
|
24
|
-
* `bun run build:lisa-owned-hash-ledger` and by its `--check` mode — so the
|
|
25
|
-
* without archaeology.
|
|
25
|
+
* `bun run build:lisa-owned-hash-ledger` and by its `--check` mode — so the
|
|
26
|
+
* question is answerable without archaeology.
|
|
26
27
|
*/
|
|
27
|
-
export declare const LISA_OWNED_HASH_HISTORY_DERIVED:
|
|
28
|
+
export declare const LISA_OWNED_HASH_HISTORY_DERIVED: HashRecord;
|
|
29
|
+
export {};
|
|
28
30
|
//# sourceMappingURL=lisa-owned-hash-ledger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AAgBA,8DAA8D;AAC9D,KAAK,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAkC9D;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,UAGpC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,UAG7C,CAAC"}
|