@codyswann/lisa 7.1.5 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +0 -2
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +3 -6
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +31 -32
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +201 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -2
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +16 -10
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +2 -2
- package/dist/cli/apply.js.map +1 -1
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +8 -4
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +2 -2
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts +5 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.js +44 -10
- package/dist/cli/doctor-readiness-supply-chain-python.js.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -2
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-worker-journey.js +2 -2
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +7 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/file-upstream-cmd.d.ts.map +1 -1
- package/dist/cli/file-upstream-cmd.js +20 -25
- package/dist/cli/file-upstream-cmd.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -2
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +13 -6
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/health-cmd.d.ts.map +1 -1
- package/dist/cli/health-cmd.js +7 -19
- package/dist/cli/health-cmd.js.map +1 -1
- package/dist/cli/lisa-test-run-jest-merge.js +5 -5
- package/dist/cli/lisa-test-run-jest-merge.js.map +1 -1
- package/dist/cli/lisa-test-run.js +8 -4
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/pr-landing.js +2 -2
- package/dist/cli/pr-landing.js.map +1 -1
- package/dist/cli/update-check.d.ts.map +1 -1
- package/dist/cli/update-check.js +7 -4
- package/dist/cli/update-check.js.map +1 -1
- package/dist/cli/update-cmd.d.ts.map +1 -1
- package/dist/cli/update-cmd.js +7 -4
- package/dist/cli/update-cmd.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/cli/worktree-ownership.js +3 -3
- package/dist/cli/worktree-ownership.js.map +1 -1
- package/dist/codex/hooks-catalog.d.ts +151 -0
- package/dist/codex/hooks-catalog.d.ts.map +1 -0
- package/dist/codex/hooks-catalog.js +315 -0
- package/dist/codex/hooks-catalog.js.map +1 -0
- package/dist/codex/hooks-compatibility.d.ts +14 -0
- package/dist/codex/hooks-compatibility.d.ts.map +1 -0
- package/dist/codex/hooks-compatibility.js +196 -0
- package/dist/codex/hooks-compatibility.js.map +1 -0
- package/dist/codex/hooks-installer.d.ts +2 -49
- package/dist/codex/hooks-installer.d.ts.map +1 -1
- package/dist/codex/hooks-installer.js +5 -546
- package/dist/codex/hooks-installer.js.map +1 -1
- package/dist/codex/hooks-source-links.d.ts +11 -0
- package/dist/codex/hooks-source-links.d.ts.map +1 -0
- package/dist/codex/hooks-source-links.js +74 -0
- package/dist/codex/hooks-source-links.js.map +1 -0
- package/dist/codex/scripts/block-migration-edits.sh +2 -2
- package/dist/codex/scripts/block-suppress-directives.sh +3 -3
- package/dist/codex/scripts/format-on-edit.sh +2 -2
- package/dist/codex/scripts/lint-on-edit.sh +2 -2
- package/dist/codex/scripts/lisa-edit-gate.sh +19 -15
- package/dist/codex/scripts/rubocop-on-edit.sh +2 -2
- package/dist/codex/scripts/sg-scan-on-edit.sh +2 -2
- package/dist/configs/coverage-scope.d.ts +0 -23
- package/dist/configs/coverage-scope.d.ts.map +1 -1
- package/dist/configs/coverage-scope.js +2 -3
- package/dist/configs/coverage-scope.js.map +1 -1
- package/dist/configs/eslint/base.d.ts +2 -113
- package/dist/configs/eslint/base.d.ts.map +1 -1
- package/dist/configs/eslint/base.js +2 -165
- package/dist/configs/eslint/base.js.map +1 -1
- package/dist/configs/eslint/cdk.d.ts.map +1 -1
- package/dist/configs/eslint/cdk.js +82 -66
- package/dist/configs/eslint/cdk.js.map +1 -1
- package/dist/configs/eslint/expo-overrides.d.ts +103 -0
- package/dist/configs/eslint/expo-overrides.d.ts.map +1 -0
- package/dist/configs/eslint/expo-overrides.js +187 -0
- package/dist/configs/eslint/expo-overrides.js.map +1 -0
- package/dist/configs/eslint/expo.d.ts +2 -7
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +186 -258
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/nestjs.d.ts.map +1 -1
- package/dist/configs/eslint/nestjs.js +86 -70
- package/dist/configs/eslint/nestjs.js.map +1 -1
- package/dist/configs/eslint/process-environment-bans.d.ts +41 -0
- package/dist/configs/eslint/process-environment-bans.d.ts.map +1 -0
- package/dist/configs/eslint/process-environment-bans.js +50 -0
- package/dist/configs/eslint/process-environment-bans.js.map +1 -0
- package/dist/configs/eslint/shared-rules.d.ts +130 -0
- package/dist/configs/eslint/shared-rules.d.ts.map +1 -0
- package/dist/configs/eslint/shared-rules.js +233 -0
- package/dist/configs/eslint/shared-rules.js.map +1 -0
- package/dist/configs/eslint/typescript.d.ts.map +1 -1
- package/dist/configs/eslint/typescript.js +2 -4
- package/dist/configs/eslint/typescript.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +2 -2
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +5 -5
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +3 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.js +2 -2
- package/dist/configs/vitest/refusal-announcement.js.map +1 -1
- package/dist/core/admission-lock.js +2 -3
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +11 -5
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +2 -2
- package/dist/core/admission.js.map +1 -1
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +8 -5
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +48 -47
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +3 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +46 -27
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/kane-cli-process.d.ts.map +1 -1
- package/dist/core/kane-cli-process.js +46 -33
- package/dist/core/kane-cli-process.js.map +1 -1
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +3 -4
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/lisa-agent-emit-extra.d.ts +75 -0
- package/dist/core/lisa-agent-emit-extra.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit-extra.js +231 -0
- package/dist/core/lisa-agent-emit-extra.js.map +1 -0
- package/dist/core/lisa-agent-emit.d.ts +79 -0
- package/dist/core/lisa-agent-emit.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit.js +224 -0
- package/dist/core/lisa-agent-emit.js.map +1 -0
- package/dist/core/lisa-deletions.d.ts +116 -0
- package/dist/core/lisa-deletions.d.ts.map +1 -0
- package/dist/core/lisa-deletions.js +316 -0
- package/dist/core/lisa-deletions.js.map +1 -0
- package/dist/core/lisa-file-results.d.ts +58 -0
- package/dist/core/lisa-file-results.d.ts.map +1 -0
- package/dist/core/lisa-file-results.js +173 -0
- package/dist/core/lisa-file-results.js.map +1 -0
- package/dist/core/lisa-maintenance.d.ts +139 -0
- package/dist/core/lisa-maintenance.d.ts.map +1 -0
- package/dist/core/lisa-maintenance.js +324 -0
- package/dist/core/lisa-maintenance.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts +7 -5
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -6036
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6021 -0
- package/dist/core/lisa-plugin-sync.d.ts +96 -0
- package/dist/core/lisa-plugin-sync.d.ts.map +1 -0
- package/dist/core/lisa-plugin-sync.js +216 -0
- package/dist/core/lisa-plugin-sync.js.map +1 -0
- package/dist/core/lisa-plugins.d.ts +42 -0
- package/dist/core/lisa-plugins.d.ts.map +1 -0
- package/dist/core/lisa-plugins.js +155 -0
- package/dist/core/lisa-plugins.js.map +1 -0
- package/dist/core/lisa-state.d.ts +202 -0
- package/dist/core/lisa-state.d.ts.map +1 -0
- package/dist/core/lisa-state.js +205 -0
- package/dist/core/lisa-state.js.map +1 -0
- package/dist/core/lisa-summary-stats.d.ts +74 -0
- package/dist/core/lisa-summary-stats.d.ts.map +1 -0
- package/dist/core/lisa-summary-stats.js +189 -0
- package/dist/core/lisa-summary-stats.js.map +1 -0
- package/dist/core/lisa-summary.d.ts +34 -0
- package/dist/core/lisa-summary.d.ts.map +1 -0
- package/dist/core/lisa-summary.js +144 -0
- package/dist/core/lisa-summary.js.map +1 -0
- package/dist/core/lisa-templates.d.ts +98 -0
- package/dist/core/lisa-templates.d.ts.map +1 -0
- package/dist/core/lisa-templates.js +251 -0
- package/dist/core/lisa-templates.js.map +1 -0
- package/dist/core/lisa.d.ts +14 -903
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +30 -2275
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +117 -61
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/template-ownership.js +0 -1
- package/dist/core/template-ownership.js.map +1 -1
- package/dist/core/upstream-attribution-body.d.ts +4 -11
- package/dist/core/upstream-attribution-body.d.ts.map +1 -1
- package/dist/core/upstream-attribution-body.js +61 -373
- package/dist/core/upstream-attribution-body.js.map +1 -1
- package/dist/core/upstream-attribution-fields.d.ts +40 -0
- package/dist/core/upstream-attribution-fields.d.ts.map +1 -0
- package/dist/core/upstream-attribution-fields.js +167 -0
- package/dist/core/upstream-attribution-fields.js.map +1 -0
- package/dist/core/upstream-attribution-files.d.ts +15 -0
- package/dist/core/upstream-attribution-files.d.ts.map +1 -0
- package/dist/core/upstream-attribution-files.js +156 -0
- package/dist/core/upstream-attribution-files.js.map +1 -0
- package/dist/core/upstream-attribution-guards.d.ts +80 -0
- package/dist/core/upstream-attribution-guards.d.ts.map +1 -0
- package/dist/core/upstream-attribution-guards.js +284 -0
- package/dist/core/upstream-attribution-guards.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +67 -30435
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +30520 -0
- package/dist/health/agentic-contract.d.ts +94 -0
- package/dist/health/agentic-contract.d.ts.map +1 -0
- package/dist/health/agentic-contract.js +2 -0
- package/dist/health/agentic-contract.js.map +1 -0
- package/dist/health/agentic-evidence.d.ts +16 -0
- package/dist/health/agentic-evidence.d.ts.map +1 -0
- package/dist/health/agentic-evidence.js +213 -0
- package/dist/health/agentic-evidence.js.map +1 -0
- package/dist/health/agentic.d.ts +11 -74
- package/dist/health/agentic.d.ts.map +1 -1
- package/dist/health/agentic.js +42 -216
- package/dist/health/agentic.js.map +1 -1
- package/dist/health/deadline.d.ts +4 -1
- package/dist/health/deadline.d.ts.map +1 -1
- package/dist/health/deadline.js +4 -3
- package/dist/health/deadline.js.map +1 -1
- package/dist/health/deterministic-inputs.d.ts.map +1 -1
- package/dist/health/deterministic-inputs.js +3 -11
- package/dist/health/deterministic-inputs.js.map +1 -1
- package/dist/health/deterministic-probes.d.ts +52 -0
- package/dist/health/deterministic-probes.d.ts.map +1 -0
- package/dist/health/deterministic-probes.js +142 -0
- package/dist/health/deterministic-probes.js.map +1 -0
- package/dist/health/deterministic.d.ts +2 -25
- package/dist/health/deterministic.d.ts.map +1 -1
- package/dist/health/deterministic.js +14 -106
- package/dist/health/deterministic.js.map +1 -1
- package/dist/health/finding-utils.d.ts +4 -3
- package/dist/health/finding-utils.d.ts.map +1 -1
- package/dist/health/finding-utils.js +4 -4
- package/dist/health/finding-utils.js.map +1 -1
- package/dist/health/governance-probes.d.ts +29 -24
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +29 -25
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/hook-inspection.d.ts +4 -3
- package/dist/health/hook-inspection.d.ts.map +1 -1
- package/dist/health/hook-inspection.js +17 -11
- package/dist/health/hook-inspection.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -4
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -9
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/prepare.js +24 -8
- package/dist/health/prepare.js.map +1 -1
- package/dist/health/project-probes.d.ts +14 -7
- package/dist/health/project-probes.d.ts.map +1 -1
- package/dist/health/project-probes.js +14 -9
- package/dist/health/project-probes.js.map +1 -1
- package/dist/health/ruleset-compare.d.ts +30 -0
- package/dist/health/ruleset-compare.d.ts.map +1 -0
- package/dist/health/ruleset-compare.js +143 -0
- package/dist/health/ruleset-compare.js.map +1 -0
- package/dist/health/ruleset-config-checks.d.ts +66 -0
- package/dist/health/ruleset-config-checks.d.ts.map +1 -0
- package/dist/health/ruleset-config-checks.js +190 -0
- package/dist/health/ruleset-config-checks.js.map +1 -0
- package/dist/health/ruleset-expected.d.ts +39 -0
- package/dist/health/ruleset-expected.d.ts.map +1 -0
- package/dist/health/ruleset-expected.js +181 -0
- package/dist/health/ruleset-expected.js.map +1 -0
- package/dist/health/ruleset-gh.d.ts +85 -0
- package/dist/health/ruleset-gh.d.ts.map +1 -0
- package/dist/health/ruleset-gh.js +177 -0
- package/dist/health/ruleset-gh.js.map +1 -0
- package/dist/health/ruleset-inspection.d.ts +13 -117
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +8 -738
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/health/ruleset-normalize.d.ts +32 -0
- package/dist/health/ruleset-normalize.d.ts.map +1 -0
- package/dist/health/ruleset-normalize.js +160 -0
- package/dist/health/ruleset-normalize.js.map +1 -0
- package/dist/health/template-compose.d.ts +9 -0
- package/dist/health/template-compose.d.ts.map +1 -0
- package/dist/health/template-compose.js +105 -0
- package/dist/health/template-compose.js.map +1 -0
- package/dist/health/template-inspection.d.ts +5 -52
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +13 -435
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/health/template-plan.d.ts +33 -0
- package/dist/health/template-plan.d.ts.map +1 -0
- package/dist/health/template-plan.js +154 -0
- package/dist/health/template-plan.js.map +1 -0
- package/dist/health/template-shape.d.ts +19 -0
- package/dist/health/template-shape.d.ts.map +1 -0
- package/dist/health/template-shape.js +122 -0
- package/dist/health/template-shape.js.map +1 -0
- package/dist/health/workflow-excerpt.d.ts +15 -0
- package/dist/health/workflow-excerpt.d.ts.map +1 -0
- package/dist/health/workflow-excerpt.js +88 -0
- package/dist/health/workflow-excerpt.js.map +1 -0
- package/dist/health/workflow-inputs-inspection.d.ts +16 -0
- package/dist/health/workflow-inputs-inspection.d.ts.map +1 -0
- package/dist/health/workflow-inputs-inspection.js +116 -0
- package/dist/health/workflow-inputs-inspection.js.map +1 -0
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +201 -20
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +73 -25
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +26 -9
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/git-state.d.ts.map +1 -1
- package/dist/standards/git-state.js +2 -2
- package/dist/standards/git-state.js.map +1 -1
- package/dist/standards/registry-checks.d.ts +34 -0
- package/dist/standards/registry-checks.d.ts.map +1 -0
- package/dist/standards/registry-checks.js +137 -0
- package/dist/standards/registry-checks.js.map +1 -0
- package/dist/standards/registry.d.ts +3 -13
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +105 -194
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/storage.js +8 -10
- package/dist/standards/storage.js.map +1 -1
- package/dist/strategies/deduplicate-arrays.d.ts +18 -0
- package/dist/strategies/deduplicate-arrays.d.ts.map +1 -0
- package/dist/strategies/deduplicate-arrays.js +25 -0
- package/dist/strategies/deduplicate-arrays.js.map +1 -0
- package/dist/strategies/package-lisa-detect.d.ts +10 -0
- package/dist/strategies/package-lisa-detect.d.ts.map +1 -0
- package/dist/strategies/package-lisa-detect.js +178 -0
- package/dist/strategies/package-lisa-detect.js.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts +16 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.js +37 -0
- package/dist/strategies/package-lisa-direct-floors.js.map +1 -0
- package/dist/strategies/package-lisa-host-pins.d.ts +43 -0
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -0
- package/dist/strategies/package-lisa-host-pins.js +254 -0
- package/dist/strategies/package-lisa-host-pins.js.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts +59 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.js +234 -0
- package/dist/strategies/package-lisa-manifest-guards.js.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts +34 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.js +106 -0
- package/dist/strategies/package-lisa-pin-alignment.js.map +1 -0
- package/dist/strategies/package-lisa-script-notes.d.ts +19 -0
- package/dist/strategies/package-lisa-script-notes.d.ts.map +1 -0
- package/dist/strategies/package-lisa-script-notes.js +145 -0
- package/dist/strategies/package-lisa-script-notes.js.map +1 -0
- package/dist/strategies/package-lisa-template-apply.d.ts +53 -0
- package/dist/strategies/package-lisa-template-apply.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-apply.js +216 -0
- package/dist/strategies/package-lisa-template-apply.js.map +1 -0
- package/dist/strategies/package-lisa-template-merge.d.ts +42 -0
- package/dist/strategies/package-lisa-template-merge.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-merge.js +202 -0
- package/dist/strategies/package-lisa-template-merge.js.map +1 -0
- package/dist/strategies/package-lisa-types.d.ts +5 -0
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +1 -195
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +27 -1333
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/tagged-merge-sections.d.ts +68 -0
- package/dist/strategies/tagged-merge-sections.d.ts.map +1 -0
- package/dist/strategies/tagged-merge-sections.js +113 -0
- package/dist/strategies/tagged-merge-sections.js.map +1 -0
- package/dist/strategies/tagged-merge.d.ts +1 -90
- package/dist/strategies/tagged-merge.d.ts.map +1 -1
- package/dist/strategies/tagged-merge.js +19 -190
- package/dist/strategies/tagged-merge.js.map +1 -1
- package/dist/utils/bounded-stream.d.ts +30 -0
- package/dist/utils/bounded-stream.d.ts.map +1 -0
- package/dist/utils/bounded-stream.js +63 -0
- package/dist/utils/bounded-stream.js.map +1 -0
- package/dist/utils/fibonacci.d.ts +3 -3
- package/dist/utils/fibonacci.d.ts.map +1 -1
- package/dist/utils/fibonacci.js +48 -10
- package/dist/utils/fibonacci.js.map +1 -1
- package/dist/utils/memo.d.ts +25 -0
- package/dist/utils/memo.d.ts.map +1 -0
- package/dist/utils/memo.js +32 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +3 -20
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/process-environment.d.ts +42 -0
- package/dist/utils/process-environment.d.ts.map +1 -0
- package/dist/utils/process-environment.js +52 -0
- package/dist/utils/process-environment.js.map +1 -0
- package/dist/utils/resolve-executable.d.ts +89 -0
- package/dist/utils/resolve-executable.d.ts.map +1 -0
- package/dist/utils/resolve-executable.js +224 -0
- package/dist/utils/resolve-executable.js.map +1 -0
- package/dist/utils/shell-command-line.d.ts +9 -0
- package/dist/utils/shell-command-line.d.ts.map +1 -0
- package/dist/utils/shell-command-line.js +43 -0
- package/dist/utils/shell-command-line.js.map +1 -0
- package/dist/utils/usage-accounting-totals.d.ts +19 -0
- package/dist/utils/usage-accounting-totals.d.ts.map +1 -0
- package/dist/utils/usage-accounting-totals.js +145 -0
- package/dist/utils/usage-accounting-totals.js.map +1 -0
- package/dist/utils/usage-accounting.d.ts +2 -14
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -169
- package/dist/utils/usage-accounting.js.map +1 -1
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-react-violations.test.js +213 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-valid.test.js +251 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-violations.test.js +222 -0
- package/eslint-plugin-code-organization/__tests__/statement-order-tester.js +42 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +6 -8
- package/expo/copy-overwrite/jest.setup.ts +11 -10
- package/expo/create-only/scripts/zap-baseline.sh +6 -18
- package/harper-fabric/create-only/scripts/zap-baseline.sh +7 -9
- package/nestjs/create-only/scripts/zap-baseline.sh +6 -7
- package/package.json +5 -5
- package/phaser/copy-overwrite/.husky/pre-push.verify +2 -0
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/lisa/hooks/track-plan-sessions.sh +7 -131
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-copilot/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-copilot/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-cursor/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-cursor/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-devin/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-devin/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/.codex-plugin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-agy/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-copilot/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-cursor/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-devin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-copilot/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-cursor/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-devin/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/.codex-plugin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-agy/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-copilot/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-copilot/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-cursor/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-cursor/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-devin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-devin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-devin/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/src/base/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/src/base/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/src/base/hooks/track-plan-sessions.sh +7 -131
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/src/harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/src/harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/src/nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/src/nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/src/nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/src/rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/src/rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/src/typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/src/typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/scripts/build-plugins.sh +1 -1
- package/scripts/check-derived-artifacts.mjs +2 -2
- package/scripts/check-generated-artifact-merge-coverage.mjs +45 -4
- package/scripts/check-orphan-test-processes.mjs +0 -1
- package/scripts/check-self-dependency-pin.mjs +0 -2
- package/scripts/claude-remote-setup.sh +12 -7
- package/scripts/cleanup-amplify-branches.sh +0 -1
- package/scripts/generate-export-surface.mjs +131 -61
- package/scripts/generate-lisa-owned-hash-ledger.mjs +87 -102
- package/scripts/generate-upstream-evidence-manifest.mjs +56 -49
- package/scripts/github-status-check.sh +5 -25
- package/scripts/install-claude-plugins.sh +10 -8
- package/scripts/lib/merge-generated-json.mjs +274 -0
- package/scripts/lib/upstream-manifest-staleness.mjs +38 -34
- package/scripts/lib/upstream-public-commits.mjs +35 -18
- package/scripts/lisa-commit-and-pr-local.sh +1 -1
- package/scripts/lisa-enforcement-fallback.sh +31 -32
- package/scripts/lisa-github-environments.sh +5 -1
- package/scripts/lisa-github-repo-settings.sh +5 -1
- package/scripts/lisa-github-repo-setup.sh +1 -2
- package/scripts/lisa-github-rulesets.sh +8 -8
- package/scripts/lisa-remote-env/session-start.sh +18 -5
- package/scripts/lisa-rollback-release.mjs +0 -2
- package/scripts/lisa-update-local.sh +1 -1
- package/scripts/merge-generated-artifact.mjs +18 -6
- package/scripts/raise-self-dependency-pin.mjs +0 -2
- package/scripts/run-artifact-checks.mjs +1 -1
- package/scripts/verify-packed-learnings-contract.mjs +36 -3
- package/scripts/verify-self-pin-raise.mjs +0 -2
- package/typescript/copy-contents/.husky/commit-msg +8 -2
- package/typescript/copy-contents/.husky/post-checkout +2 -0
- package/typescript/copy-contents/.husky/post-merge +2 -0
- package/typescript/copy-contents/.husky/pre-commit +10 -3
- package/typescript/copy-contents/.husky/pre-push +29 -16
- package/typescript/copy-contents/.husky/prepare-commit-msg +2 -0
- package/typescript/create-only/.husky/pre-push.local +2 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +0 -643
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-summary-stats.ts
|
|
3
|
+
* @description Per-mode statistics and detail sections of the apply summary. 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 pc from "picocolors";
|
|
9
|
+
import { APPLY_RECEIPT_DISPLAY_PATH } from "./apply-receipt.js";
|
|
10
|
+
import { LisaState } from "./lisa-state.js";
|
|
11
|
+
/**
|
|
12
|
+
* Per-mode statistics and detail sections of the apply summary.
|
|
13
|
+
*/
|
|
14
|
+
export class LisaSummaryStats extends LisaState {
|
|
15
|
+
/**
|
|
16
|
+
* Print summary header with mode
|
|
17
|
+
*/
|
|
18
|
+
printSummaryHeader() {
|
|
19
|
+
console.log("");
|
|
20
|
+
console.log(pc.green(this.separator));
|
|
21
|
+
if (this.config.validateOnly) {
|
|
22
|
+
console.log(pc.green(" Lisa Validation Complete"));
|
|
23
|
+
}
|
|
24
|
+
else if (this.config.dryRun) {
|
|
25
|
+
console.log(pc.green(" Lisa Dry Run Complete"));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
console.log(pc.green(" Lisa Installation Complete!"));
|
|
29
|
+
}
|
|
30
|
+
console.log(pc.green(this.separator));
|
|
31
|
+
console.log("");
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Print a single stat line with color
|
|
35
|
+
* @param label - Stat label
|
|
36
|
+
* @param value - Stat value
|
|
37
|
+
* @param color - Color function from picocolors
|
|
38
|
+
* @param suffix - Optional suffix after the count
|
|
39
|
+
*/
|
|
40
|
+
printStatLine(label, value, color, suffix = "") {
|
|
41
|
+
const suffixText = suffix ? ` ${suffix}` : "";
|
|
42
|
+
console.log(` ${color(label)} ${String(value).padStart(3)} files${suffixText}`);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Print summary statistics for validate mode
|
|
46
|
+
*/
|
|
47
|
+
printValidateStats() {
|
|
48
|
+
const { copied, skipped, overwritten, appended, merged, deleted, ignored } = this.counters;
|
|
49
|
+
this.printStatLine("Compatible files: ", copied, pc.green);
|
|
50
|
+
this.printStatLine("Already present: ", skipped, pc.blue);
|
|
51
|
+
this.printStatLine("Would conflict: ", overwritten, pc.yellow);
|
|
52
|
+
this.printStatLine("Would append: ", appended, pc.blue);
|
|
53
|
+
this.printStatLine("Would merge: ", merged, pc.green);
|
|
54
|
+
this.printStatLine("Would delete: ", deleted, pc.red);
|
|
55
|
+
if (ignored > 0) {
|
|
56
|
+
this.printStatLine("Ignored: ", ignored, pc.magenta, this.lisaignoreSuffix);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Print summary statistics for dry-run mode
|
|
61
|
+
*/
|
|
62
|
+
printDryRunStats() {
|
|
63
|
+
const { copied, skipped, overwritten, appended, merged, deleted, ignored } = this.counters;
|
|
64
|
+
this.printStatLine("Would copy: ", copied, pc.green);
|
|
65
|
+
this.printStatLine("Would skip: ", skipped, pc.blue, "(identical or create-only)");
|
|
66
|
+
this.printStatLine("Would prompt: ", overwritten, pc.yellow, "(differ)");
|
|
67
|
+
this.printStatLine("Out of date: ", this.counters.stale, pc.yellow, "(managed templates changed; would NOT be updated)");
|
|
68
|
+
this.printStatLine("Would append: ", appended, pc.blue, "(copy-contents)");
|
|
69
|
+
this.printStatLine("Would merge: ", merged, pc.green, "(JSON)");
|
|
70
|
+
this.printStatLine("Would delete: ", deleted, pc.red);
|
|
71
|
+
if (ignored > 0) {
|
|
72
|
+
this.printStatLine("Would ignore: ", ignored, pc.magenta, this.lisaignoreSuffix);
|
|
73
|
+
}
|
|
74
|
+
this.printStaleDetail();
|
|
75
|
+
this.printHostAheadDetail();
|
|
76
|
+
this.printShadowedDetail();
|
|
77
|
+
this.printDeletionDetail();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Print summary statistics for apply mode
|
|
81
|
+
*/
|
|
82
|
+
printApplyStats() {
|
|
83
|
+
const { copied, skipped, overwritten, appended, merged, deleted, ignored } = this.counters;
|
|
84
|
+
this.printStatLine("Copied: ", copied, pc.green);
|
|
85
|
+
this.printStatLine("Skipped: ", skipped, pc.blue, "(identical or create-only)");
|
|
86
|
+
// Not every overwrite is a human saying yes: Lisa's own artifacts refresh
|
|
87
|
+
// on any apply, which is how a released guard fix reaches installed
|
|
88
|
+
// projects. Saying "user approved" here would misreport that as consent
|
|
89
|
+
// nobody gave.
|
|
90
|
+
this.printStatLine("Overwritten:", overwritten, pc.yellow, "(approved or Lisa-owned)");
|
|
91
|
+
this.printStatLine("Out of date:", this.counters.stale, pc.yellow, "(managed templates changed; NOT updated)");
|
|
92
|
+
this.printStatLine("Appended: ", appended, pc.blue, "(copy-contents)");
|
|
93
|
+
this.printStatLine("Merged: ", merged, pc.green, "(JSON merged)");
|
|
94
|
+
this.printStatLine("Deleted: ", deleted, pc.red);
|
|
95
|
+
if (ignored > 0) {
|
|
96
|
+
this.printStatLine("Ignored: ", ignored, pc.magenta, this.lisaignoreSuffix);
|
|
97
|
+
}
|
|
98
|
+
this.printStaleDetail();
|
|
99
|
+
this.printHostAheadDetail();
|
|
100
|
+
this.printShadowedDetail();
|
|
101
|
+
this.printDeletionDetail();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Name the out-of-date managed files and say how to update them.
|
|
105
|
+
*
|
|
106
|
+
* A bare count is not enough to act on. An operator taking an upgrade needs
|
|
107
|
+
* to see WHICH managed files the release changed and did not deliver —
|
|
108
|
+
* particularly the enforcement guards, where the gap is a security control
|
|
109
|
+
* that stayed on its old version while the release notes said otherwise.
|
|
110
|
+
*/
|
|
111
|
+
printStaleDetail() {
|
|
112
|
+
if (this.counters.stale === 0)
|
|
113
|
+
return;
|
|
114
|
+
const { logger } = this.deps;
|
|
115
|
+
logger.warn(this.config.dryRun
|
|
116
|
+
? `${this.counters.stale} managed file(s) changed upstream and would be left as-is:`
|
|
117
|
+
: `${this.counters.stale} managed file(s) changed upstream but were left as-is:`);
|
|
118
|
+
for (const relativePath of this.stalePaths) {
|
|
119
|
+
logger.warn(` ${relativePath}`);
|
|
120
|
+
}
|
|
121
|
+
logger.info("A non-interactive apply will not replace a file your project may have customised.");
|
|
122
|
+
logger.info("To take upstream's version of one, name it: `lisa apply . --refresh-templates=<path>`.");
|
|
123
|
+
logger.info("Name them ONE AT A TIME. Bare `--refresh-templates` is repo-wide and reverts every deliberate fork at once.");
|
|
124
|
+
logger.info("To keep yours instead, add the path to .lisaignore. Either way, decide — an unread file stops receiving upstream fixes, security fixes included.");
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Report Lisa-owned artifacts this apply chose not to replace.
|
|
128
|
+
*
|
|
129
|
+
* Reported as good news, not as a warning about the project: keeping a guard
|
|
130
|
+
* that is stronger than Lisa's is the correct outcome, and phrasing it as a
|
|
131
|
+
* problem would push an operator to "fix" it by discarding their own
|
|
132
|
+
* hardening — the exact loss the check exists to prevent.
|
|
133
|
+
*/
|
|
134
|
+
printHostAheadDetail() {
|
|
135
|
+
if (this.counters.hostAhead === 0)
|
|
136
|
+
return;
|
|
137
|
+
const { logger } = this.deps;
|
|
138
|
+
logger.info(`${this.counters.hostAhead} Lisa-owned file(s) look stronger in your project than in Lisa, so your version was kept:`);
|
|
139
|
+
for (const note of this.hostAheadNotes) {
|
|
140
|
+
logger.info(` ${note}`);
|
|
141
|
+
}
|
|
142
|
+
logger.info("Nothing is broken. Lisa only replaces one of its own files when it can prove your copy came from an older Lisa.");
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Name every template this apply declined to write to avoid outranking the
|
|
146
|
+
* project's own configuration.
|
|
147
|
+
*
|
|
148
|
+
* Reported as good news for the same reason as {@link printHostAheadDetail}:
|
|
149
|
+
* the project's config surviving is the correct outcome. But it is stated at
|
|
150
|
+
* all because the *absence* of a file is invisible — a template that never
|
|
151
|
+
* arrives looks identical to one that was never shipped, and this is the only
|
|
152
|
+
* moment anything can say which happened (CodySwannGT/lisa#3501).
|
|
153
|
+
*/
|
|
154
|
+
printShadowedDetail() {
|
|
155
|
+
if (this.counters.shadowed === 0)
|
|
156
|
+
return;
|
|
157
|
+
const { logger } = this.deps;
|
|
158
|
+
logger.info(`${this.counters.shadowed} template(s) were not written because this project already configures those tools itself:`);
|
|
159
|
+
for (const note of this.shadowedNotes) {
|
|
160
|
+
logger.info(` ${note}`);
|
|
161
|
+
}
|
|
162
|
+
logger.info("Nothing is broken. Lisa's file would have taken precedence over yours, so yours was left in charge.");
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Name every path this apply removed, and every workflow it declined to.
|
|
166
|
+
*
|
|
167
|
+
* Deliberately unconditional on the removals, and deliberately wider than the
|
|
168
|
+
* ownership gate. Lisa is entitled to retire its own artifacts, and it still
|
|
169
|
+
* says so out loud, because the cost of an unannounced removal is not
|
|
170
|
+
* proportional to whether it was justified: a workflow that no longer exists
|
|
171
|
+
* cannot fail, so its absence produces no red check anywhere and reads
|
|
172
|
+
* exactly like a healthy repo (CodySwannGT/lisa#3656). The same is true, more
|
|
173
|
+
* quietly, of a deleted `.claude/skills/<name>` directory or a root-level
|
|
174
|
+
* `eslint-plugin-*` tree. Reviewing the upgrade diff has to be enough to
|
|
175
|
+
* notice, and that only works if the install told somebody.
|
|
176
|
+
*/
|
|
177
|
+
printDeletionDetail() {
|
|
178
|
+
if (this.deletionNotices.length === 0)
|
|
179
|
+
return;
|
|
180
|
+
const { logger } = this.deps;
|
|
181
|
+
logger.warn("Files this run removed, and workflows it declined to remove:");
|
|
182
|
+
for (const notice of this.deletionNotices) {
|
|
183
|
+
logger.warn(` ${notice}`);
|
|
184
|
+
}
|
|
185
|
+
logger.info(`The removals are also recorded in ${APPLY_RECEIPT_DISPLAY_PATH}, because install output does not survive: package managers hide postinstall stdout and the reconciliation trampoline runs detached with stdio "ignore".`);
|
|
186
|
+
logger.info("A removed workflow takes its checks with it and cannot fail afterwards, so its absence looks exactly like a healthy repo. If any removed file was yours, restore it from git and add its path to .lisaignore — that is checked before every deletion, workflow or not.");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=lisa-summary-stats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-summary-stats.js","sourceRoot":"","sources":["../../src/core/lisa-summary-stats.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;GAEG;AACH,MAAM,OAAgB,gBAAiB,SAAQ,SAAS;IACtD;;OAEG;IACO,kBAAkB;QAC1B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAEtC,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC7B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;QACxD,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YAC9B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operator.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class LisaSummary extends LisaSummaryStats {
|
|
6
|
+
/**
|
|
7
|
+
* Print header banner
|
|
8
|
+
*/
|
|
9
|
+
protected printHeader(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Print summary statistics
|
|
12
|
+
*/
|
|
13
|
+
protected printSummaryStats(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Print project types
|
|
16
|
+
*/
|
|
17
|
+
protected printProjectTypes(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Print validation result
|
|
20
|
+
*/
|
|
21
|
+
protected printValidationResult(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Print summary
|
|
24
|
+
*/
|
|
25
|
+
protected printSummary(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Print migration notices when the project's ci.yml or deploy.yml still reference
|
|
28
|
+
* local quality/release workflows instead of the canonical Lisa repo versions.
|
|
29
|
+
* Printed after the update summary so users see it as a post-update action item.
|
|
30
|
+
* @param projectDir - The destination project directory to inspect
|
|
31
|
+
*/
|
|
32
|
+
protected printMigrationNotices(projectDir: string): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=lisa-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-summary.d.ts","sourceRoot":"","sources":["../../src/core/lisa-summary.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;GAEG;AACH,8BAAsB,WAAY,SAAQ,gBAAgB;IACxD;;OAEG;IACH,SAAS,CAAC,WAAW,IAAI,IAAI;IA4B7B;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAenC;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAanC;;OAEG;IACH,SAAS,CAAC,qBAAqB,IAAI,IAAI;IAgBvC;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAO9B;;;;;OAKG;cACa,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA8DzE"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-summary.ts
|
|
3
|
+
* @description Header, summary, and post-apply notices Lisa prints to the operator. 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 path from "node:path";
|
|
9
|
+
import pc from "picocolors";
|
|
10
|
+
import { LisaSummaryStats } from "./lisa-summary-stats.js";
|
|
11
|
+
/**
|
|
12
|
+
* Header, summary, and post-apply notices Lisa prints to the operator.
|
|
13
|
+
*/
|
|
14
|
+
export class LisaSummary extends LisaSummaryStats {
|
|
15
|
+
/**
|
|
16
|
+
* Print header banner
|
|
17
|
+
*/
|
|
18
|
+
printHeader() {
|
|
19
|
+
const { logger } = this.deps;
|
|
20
|
+
console.log("");
|
|
21
|
+
console.log(pc.blue(this.separator));
|
|
22
|
+
if (this.config.validateOnly) {
|
|
23
|
+
console.log(pc.blue(" Lisa Project Bootstrapper (VALIDATE)"));
|
|
24
|
+
}
|
|
25
|
+
else if (this.config.dryRun) {
|
|
26
|
+
console.log(pc.blue(" Lisa Project Bootstrapper (DRY RUN)"));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
console.log(pc.blue(" Lisa Project Bootstrapper"));
|
|
30
|
+
}
|
|
31
|
+
console.log(pc.blue(this.separator));
|
|
32
|
+
console.log("");
|
|
33
|
+
if (this.config.validateOnly) {
|
|
34
|
+
logger.info("Validate mode - checking project compatibility");
|
|
35
|
+
}
|
|
36
|
+
else if (this.config.dryRun) {
|
|
37
|
+
logger.warn("Dry run mode - no changes will be made");
|
|
38
|
+
}
|
|
39
|
+
logger.info(`Lisa directory: ${this.config.lisaDir}`);
|
|
40
|
+
logger.info(`Destination: ${this.config.destDir}`);
|
|
41
|
+
console.log("");
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Print summary statistics
|
|
45
|
+
*/
|
|
46
|
+
printSummaryStats() {
|
|
47
|
+
if (this.config.validateOnly) {
|
|
48
|
+
this.printValidateStats();
|
|
49
|
+
}
|
|
50
|
+
else if (this.config.dryRun) {
|
|
51
|
+
this.printDryRunStats();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.printApplyStats();
|
|
55
|
+
}
|
|
56
|
+
const { migrationsApplied } = this.counters;
|
|
57
|
+
if (migrationsApplied > 0) {
|
|
58
|
+
this.printStatLine("Migrations: ", migrationsApplied, pc.cyan, "applied");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Print project types
|
|
63
|
+
*/
|
|
64
|
+
printProjectTypes() {
|
|
65
|
+
console.log("");
|
|
66
|
+
const allAndDetected = this.detectedTypes.length > 0
|
|
67
|
+
? `all ${this.detectedTypes.join(" ")}`
|
|
68
|
+
: "all";
|
|
69
|
+
console.log(`Project types: ${pc.green(allAndDetected)}`);
|
|
70
|
+
console.log("");
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Print validation result
|
|
74
|
+
*/
|
|
75
|
+
printValidationResult() {
|
|
76
|
+
if (!this.config.validateOnly)
|
|
77
|
+
return;
|
|
78
|
+
const { logger } = this.deps;
|
|
79
|
+
const { overwritten } = this.counters;
|
|
80
|
+
if (overwritten > 0) {
|
|
81
|
+
logger.warn(`Validation found ${overwritten} file(s) that would conflict`);
|
|
82
|
+
console.log("Run without --validate to apply changes interactively");
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
logger.success("Project is compatible with Lisa configurations");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Print summary
|
|
90
|
+
*/
|
|
91
|
+
printSummary() {
|
|
92
|
+
this.printSummaryHeader();
|
|
93
|
+
this.printSummaryStats();
|
|
94
|
+
this.printProjectTypes();
|
|
95
|
+
this.printValidationResult();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Print migration notices when the project's ci.yml or deploy.yml still reference
|
|
99
|
+
* local quality/release workflows instead of the canonical Lisa repo versions.
|
|
100
|
+
* Printed after the update summary so users see it as a post-update action item.
|
|
101
|
+
* @param projectDir - The destination project directory to inspect
|
|
102
|
+
*/
|
|
103
|
+
async printMigrationNotices(projectDir) {
|
|
104
|
+
const ciPath = path.join(projectDir, ".github", "workflows", "ci.yml");
|
|
105
|
+
const deployPath = path.join(projectDir, ".github", "workflows", "deploy.yml");
|
|
106
|
+
const [ciContent, deployContent] = await Promise.all([
|
|
107
|
+
this.tryReadFile(ciPath),
|
|
108
|
+
this.tryReadFile(deployPath),
|
|
109
|
+
]);
|
|
110
|
+
const isRailsProject = this.detectedTypes.includes("rails");
|
|
111
|
+
const notices = [
|
|
112
|
+
ciContent?.includes("uses: ./.github/workflows/quality.yml") &&
|
|
113
|
+
!isRailsProject
|
|
114
|
+
? " .github/workflows/ci.yml — change:\n uses: ./.github/workflows/quality.yml\n → uses: CodySwannGT/lisa/.github/workflows/quality.yml@main"
|
|
115
|
+
: null,
|
|
116
|
+
ciContent?.includes("uses: ./.github/workflows/quality.yml") &&
|
|
117
|
+
isRailsProject
|
|
118
|
+
? " .github/workflows/ci.yml — change:\n uses: ./.github/workflows/quality.yml\n → uses: CodySwannGT/lisa/.github/workflows/quality-rails.yml@main"
|
|
119
|
+
: null,
|
|
120
|
+
deployContent?.includes("uses: ./.github/workflows/release.yml") &&
|
|
121
|
+
!isRailsProject
|
|
122
|
+
? " .github/workflows/deploy.yml — change:\n uses: ./.github/workflows/release.yml\n → uses: CodySwannGT/lisa/.github/workflows/release.yml@main"
|
|
123
|
+
: null,
|
|
124
|
+
deployContent?.includes("uses: ./.github/workflows/release.yml") &&
|
|
125
|
+
isRailsProject
|
|
126
|
+
? " .github/workflows/deploy.yml — change:\n uses: ./.github/workflows/release.yml\n → uses: CodySwannGT/lisa/.github/workflows/release-rails.yml@main"
|
|
127
|
+
: null,
|
|
128
|
+
].filter((n) => n !== null);
|
|
129
|
+
if (notices.length === 0) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
console.log("");
|
|
133
|
+
console.log(pc.yellow("⚠️ Action required: Update your CI/Deploy workflows to call the Lisa repo directly."));
|
|
134
|
+
console.log("");
|
|
135
|
+
console.log(notices.join("\n\n"));
|
|
136
|
+
console.log("");
|
|
137
|
+
console.log(" Write `@main` as shown. The next `lisa apply` rewrites it to the commit");
|
|
138
|
+
console.log(" your installed Lisa's version tag names and keeps it there, so this is a");
|
|
139
|
+
console.log(" one-time edit and the ref is maintained for you from then on. Until that");
|
|
140
|
+
console.log(" apply runs, `lisa doctor` will correctly report the ref as still mutable.");
|
|
141
|
+
console.log("");
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=lisa-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-summary.js","sourceRoot":"","sources":["../../src/core/lisa-summary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;GAEG;AACH,MAAM,OAAgB,WAAY,SAAQ,gBAAgB;IACxD;;OAEG;IACO,WAAW;QACnB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAE7B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAErC,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC7B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI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,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CACT,EAAE,CAAC,MAAM,CACP,sFAAsF,CACvF,CACF,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CACT,2EAA2E,CAC5E,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4EAA4E,CAC7E,CAAC;QACF,OAAO,CAAC,GAAG,CACT,4EAA4E,CAC7E,CAAC;QACF,OAAO,CAAC,GAAG,CACT,6EAA6E,CAC9E,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type StrategyContext } from "../strategies/index.js";
|
|
2
|
+
import type { CopyStrategy, FileOperationResult } from "./config.js";
|
|
3
|
+
import { LisaFileResults } from "./lisa-file-results.js";
|
|
4
|
+
/**
|
|
5
|
+
* Template ownership resolution and per-type template application.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class LisaTemplates extends LisaFileResults {
|
|
8
|
+
/**
|
|
9
|
+
* Pre-compute, for every relative path shipped by any type's `create-only/`
|
|
10
|
+
* directory, which single type "owns" it. The owner is the most-specific
|
|
11
|
+
* detected type — i.e., the last entry in [all, ...detectedTypes] (already
|
|
12
|
+
* canonically ordered parent-before-child by `expandAndOrderTypes`).
|
|
13
|
+
*
|
|
14
|
+
* Why this is needed: the `create-only` strategy intentionally does nothing
|
|
15
|
+
* when the destination file already exists. Combined with the per-type
|
|
16
|
+
* outer loop in `processConfigurations`, that means the *first* type to
|
|
17
|
+
* ship a `create-only/<path>` creates the file and every later type's
|
|
18
|
+
* version is silently skipped. For paths that overlap between a parent
|
|
19
|
+
* stack (typescript) and a child stack (cdk/expo/nestjs/npm-package), this
|
|
20
|
+
* lets the parent win — the exact opposite of the rest of Lisa's
|
|
21
|
+
* "child overrides parent" semantics. See `copy-overwrite` for comparison:
|
|
22
|
+
* because it always overwrites, the per-type ordering naturally lets
|
|
23
|
+
* children win. `create-only` needs explicit help.
|
|
24
|
+
*
|
|
25
|
+
* The fix: the orchestrator pre-computes this ownership map and, while
|
|
26
|
+
* processing `create-only`, skips any source whose owning type isn't the
|
|
27
|
+
* current one. The result is that exactly one source wins per path — the
|
|
28
|
+
* most-specific detected type.
|
|
29
|
+
* @returns Promise that resolves once ownership has been resolved
|
|
30
|
+
*/
|
|
31
|
+
protected loadCreateOnlyOwnership(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Pre-compute, for every relative path shipped by any type's `copy-overwrite/`
|
|
34
|
+
* directory, which single type "owns" it — the most-specific detected type
|
|
35
|
+
* (last entry in [all, ...detectedTypes], already ordered parent-before-child).
|
|
36
|
+
*
|
|
37
|
+
* Consumed by `shouldProcessFile` to skip non-owning sources so each path is
|
|
38
|
+
* written exactly once, by its winning stack. See the `copyOverwriteOwnership`
|
|
39
|
+
* field doc for the crash-safety rationale (eliminating the parent-then-child
|
|
40
|
+
* overwrite window that left half-applied configs when the process was killed
|
|
41
|
+
* mid-apply during postinstall — the bug behind #318).
|
|
42
|
+
* @returns Promise that resolves once ownership has been resolved
|
|
43
|
+
*/
|
|
44
|
+
protected loadCopyOverwriteOwnership(): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Process all configurations
|
|
47
|
+
*/
|
|
48
|
+
protected processConfigurations(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Process all files for a given project type
|
|
51
|
+
* @param type Project type to process
|
|
52
|
+
*/
|
|
53
|
+
protected processProjectType(type: string): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Process all files in a directory with the given strategy
|
|
56
|
+
* @param srcDir Source directory
|
|
57
|
+
* @param strategy Strategy to apply
|
|
58
|
+
* @param strategy.name Strategy name
|
|
59
|
+
* @param strategy.apply Apply function
|
|
60
|
+
* @param currentType Project type (e.g. "all", "typescript", "cdk") supplying these files
|
|
61
|
+
*/
|
|
62
|
+
protected processDirectory(srcDir: string, strategy: {
|
|
63
|
+
name: CopyStrategy;
|
|
64
|
+
apply: (s: string, d: string, r: string, c: StrategyContext) => Promise<FileOperationResult>;
|
|
65
|
+
}, currentType: string): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Map the stable canonical learnings source to the project's configured
|
|
68
|
+
* sibling path. No other template source is redirected.
|
|
69
|
+
* @param sourceRelativePath - Path relative to the strategy source directory
|
|
70
|
+
* @param strategyName - Strategy delivering the source file
|
|
71
|
+
* @param currentType - Project type that owns the source directory
|
|
72
|
+
* @returns Destination path relative to the host project
|
|
73
|
+
*/
|
|
74
|
+
protected resolveTemplateDestination(sourceRelativePath: string, strategyName: CopyStrategy, currentType: string): string;
|
|
75
|
+
/**
|
|
76
|
+
* Decide whether a candidate source file should be passed to its strategy.
|
|
77
|
+
* Centralizes three independent skip rules that all need to short-circuit
|
|
78
|
+
* before a strategy ever sees the file:
|
|
79
|
+
*
|
|
80
|
+
* 1. `.lisaignore` patterns from the destination project
|
|
81
|
+
* 2. Pending deletions from any detected type's `deletions.json`
|
|
82
|
+
* (avoids the create-then-delete ENOENT race)
|
|
83
|
+
* 3. Create-only ownership conflicts (parent stack ships a path that a
|
|
84
|
+
* child stack also ships under create-only — child wins)
|
|
85
|
+
* 4. Cross-strategy ownership conflicts (a child stack ships a create-only
|
|
86
|
+
* path that a parent stack ships under copy-overwrite — child wins before
|
|
87
|
+
* the parent can overwrite a host-owned or soon-to-be-created child file)
|
|
88
|
+
* 5. Copy-overwrite ownership conflicts (parent and child both ship a path
|
|
89
|
+
* under copy-overwrite — only the most-specific stack writes it, so there
|
|
90
|
+
* is no parent-then-child overwrite window; see copyOverwriteOwnership)
|
|
91
|
+
* @param relativePath - Path relative to the strategy's source directory
|
|
92
|
+
* @param strategyName - Name of the strategy that would apply the file
|
|
93
|
+
* @param currentType - Project type currently being processed
|
|
94
|
+
* @returns True if the strategy should apply the file, false to skip
|
|
95
|
+
*/
|
|
96
|
+
protected shouldProcessFile(relativePath: string, strategyName: CopyStrategy, currentType: string): boolean;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=lisa-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-templates.d.ts","sourceRoot":"","sources":["../../src/core/lisa-templates.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMrE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAOzD;;GAEG;AACH,8BAAsB,aAAc,SAAQ,eAAe;IACzD;;;;;;;;;;;;;;;;;;;;;;OAsBG;cACa,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAsCxD;;;;;;;;;;;OAWG;cACa,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3D;;OAEG;cACa,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBtD;;;OAGG;cACa,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAuB/D;;;;;;;OAOG;cACa,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY,CAAC;QACnB,KAAK,EAAE,CACL,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,eAAe,KACf,OAAO,CAAC,mBAAmB,CAAC,CAAC;KACnC,EACD,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC;IAmDhB;;;;;;;OAOG;IACH,SAAS,CAAC,0BAA0B,CAClC,kBAAkB,EAAE,MAAM,EAC1B,YA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