@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
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
* downgrades nothing and a deeper one only ever adds.
|
|
39
39
|
*
|
|
40
40
|
* It also has to survive the merge driver added in CodySwannGT/lisa#3084, which
|
|
41
|
-
* unions array-valued entries **
|
|
42
|
-
* written into the
|
|
41
|
+
* unions array-valued entries **element by element**. A per-digest label
|
|
42
|
+
* written into the element would make the same hash render differently on two
|
|
43
43
|
* branches: the union would keep both spellings, and the base check would see an
|
|
44
44
|
* element that vanished — a permanent conflict on the very file that driver
|
|
45
45
|
* exists to stop conflicting. A second block of the same shape merges pointwise
|
|
@@ -53,12 +53,24 @@ import process from "node:process";
|
|
|
53
53
|
|
|
54
54
|
import { boundedExecFileSync, isChildTimeout } from "./lib/bounded-spawn.mjs";
|
|
55
55
|
import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
56
|
+
import { formatGeneratedJson } from "./lib/merge-generated-json.mjs";
|
|
56
57
|
|
|
57
58
|
/** Repository this generator runs against when no root is supplied. */
|
|
58
59
|
export const DEFAULT_REPO_ROOT = path.resolve(import.meta.dirname, "..");
|
|
59
60
|
|
|
60
|
-
/**
|
|
61
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Repo-relative path of the generated ledger data.
|
|
63
|
+
*
|
|
64
|
+
* JSON rather than a TypeScript module, for the reason argued at
|
|
65
|
+
* `scripts/generate-export-surface.mjs`: data does not need to be source. The
|
|
66
|
+
* ledger grows by one line per published hash and long ago passed the
|
|
67
|
+
* 300-line `max-lines` budget that applies to source, so as a module it could
|
|
68
|
+
* only exist behind a file-wide lint waiver. As JSON it keeps one hash per
|
|
69
|
+
* line — the per-entry diff and the merge driver's pointwise merge both depend
|
|
70
|
+
* on that — and needs no waiver. `src/core/lisa-owned-hash-ledger.ts` is the
|
|
71
|
+
* hand-written loader that turns it into the frozen records the runtime reads.
|
|
72
|
+
*/
|
|
73
|
+
export const LEDGER_RELATIVE_PATH = "src/core/lisa-owned-hash-ledger.json";
|
|
62
74
|
|
|
63
75
|
/** Name of the record holding every hash ever shipped at a destination. */
|
|
64
76
|
export const LEDGER_EXPORT = "LISA_OWNED_HASH_LEDGER";
|
|
@@ -264,42 +276,53 @@ export function historicalHashes(root, source) {
|
|
|
264
276
|
}
|
|
265
277
|
|
|
266
278
|
/**
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
* records share a shape: a file-wide regex would fold the second block's entries
|
|
271
|
-
* over the first block's under the same key, and the ledger would silently
|
|
272
|
-
* become whichever block happened to be rendered last.
|
|
273
|
-
* @param {string} text - Whole module source
|
|
274
|
-
* @param {string} name - Exported constant name
|
|
275
|
-
* @returns {string|undefined} The declaration's source, when present
|
|
279
|
+
* Whether a value is a well-formed `destination -> hashes` record.
|
|
280
|
+
* @param {unknown} value - Candidate record
|
|
281
|
+
* @returns {boolean} True when every entry is an array of sha256 hex digests
|
|
276
282
|
*/
|
|
277
|
-
function
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
function isHashRecord(value) {
|
|
284
|
+
return (
|
|
285
|
+
typeof value === "object" &&
|
|
286
|
+
value !== null &&
|
|
287
|
+
!Array.isArray(value) &&
|
|
288
|
+
Object.values(value).every(
|
|
289
|
+
hashes =>
|
|
290
|
+
Array.isArray(hashes) &&
|
|
291
|
+
hashes.every(
|
|
292
|
+
hash => typeof hash === "string" && /^[0-9a-f]{64}$/u.test(hash)
|
|
293
|
+
)
|
|
294
|
+
)
|
|
295
|
+
);
|
|
283
296
|
}
|
|
284
297
|
|
|
285
298
|
/**
|
|
286
|
-
* Parse one `destination -> hashes` record out of the
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
299
|
+
* Parse one `destination -> hashes` record out of the ledger JSON.
|
|
300
|
+
*
|
|
301
|
+
* Keyed by record name, so the two records cannot fold into each other: they
|
|
302
|
+
* share a shape, and a reader that merged them would silently become whichever
|
|
303
|
+
* record it read last. A record that is missing or not of that shape reads as
|
|
304
|
+
* absent, never as empty — the caller decides whether absence may report.
|
|
305
|
+
* @param {string} text - Whole ledger JSON
|
|
306
|
+
* @param {string} name - Record name ({@link LEDGER_EXPORT} or {@link HISTORY_EXPORT})
|
|
307
|
+
* @returns {Map<string, string[]>|undefined} Recorded hashes, when the record exists
|
|
290
308
|
*/
|
|
291
309
|
export function parseSection(text, name) {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
parsed.set(
|
|
298
|
-
match[1],
|
|
299
|
-
[...match[2].matchAll(/"([0-9a-f]{64})"/g)].map(hash => hash[1])
|
|
300
|
-
);
|
|
310
|
+
let document;
|
|
311
|
+
try {
|
|
312
|
+
document = JSON.parse(text);
|
|
313
|
+
} catch {
|
|
314
|
+
return undefined;
|
|
301
315
|
}
|
|
302
|
-
|
|
316
|
+
const record =
|
|
317
|
+
typeof document === "object" &&
|
|
318
|
+
document !== null &&
|
|
319
|
+
!Array.isArray(document)
|
|
320
|
+
? document[name]
|
|
321
|
+
: undefined;
|
|
322
|
+
if (!isHashRecord(record)) return undefined;
|
|
323
|
+
return new Map(
|
|
324
|
+
Object.entries(record).map(([key, hashes]) => [key, [...hashes]])
|
|
325
|
+
);
|
|
303
326
|
}
|
|
304
327
|
|
|
305
328
|
/**
|
|
@@ -326,85 +349,47 @@ export function readLedgerSections(root) {
|
|
|
326
349
|
}
|
|
327
350
|
|
|
328
351
|
/**
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
* Indentation matches what Prettier produces. `lint-staged` reformats every
|
|
332
|
-
* staged file, so a generator whose output Prettier would reindent leaves
|
|
333
|
-
* `--check` failing immediately after the commit that regenerated it.
|
|
352
|
+
* One record as the plain object the ledger JSON stores.
|
|
334
353
|
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
354
|
+
* Destinations are sorted the way the merge driver sorts, so a merged file and
|
|
355
|
+
* a regenerated one are the same bytes. A destination with no hashes is dropped
|
|
356
|
+
* rather than rendered as an empty array: an empty entry parses back as a
|
|
357
|
+
* destination the ledger vouches for nothing at, which reads exactly like a
|
|
358
|
+
* destination whose hashes were lost.
|
|
338
359
|
* @param {Map<string, string[]>} entries - Destination path to hashes
|
|
339
|
-
* @returns {string}
|
|
360
|
+
* @returns {Record<string, string[]>} Sorted record
|
|
340
361
|
*/
|
|
341
|
-
function
|
|
342
|
-
return
|
|
343
|
-
.
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
return ` "${destination}": Object.freeze([\n${rendered}\n ]),`;
|
|
348
|
-
})
|
|
349
|
-
.join("\n");
|
|
362
|
+
function recordOf(entries) {
|
|
363
|
+
return Object.fromEntries(
|
|
364
|
+
[...entries.entries()]
|
|
365
|
+
.filter(([, hashes]) => hashes.length > 0)
|
|
366
|
+
.sort(([left], [right]) => byText(left, right))
|
|
367
|
+
);
|
|
350
368
|
}
|
|
351
369
|
|
|
352
370
|
/**
|
|
353
|
-
* Render the ledger
|
|
371
|
+
* Render the ledger JSON.
|
|
372
|
+
*
|
|
373
|
+
* Two records, the ledger and the subset some run derived from git history.
|
|
374
|
+
* Provenance in one lookup (CodySwannGT/lisa#3115): a digest in the ledger and
|
|
375
|
+
* NOT in the history-derived record was **carried forward** from an earlier
|
|
376
|
+
* checked-in ledger, and no run of the generator has been able to derive it
|
|
377
|
+
* since. Carried-forward digests are kept, never pruned — the history walk
|
|
378
|
+
* depends on clone depth and merge topology, so "this clone cannot see it" is
|
|
379
|
+
* not evidence that Lisa never shipped it. They are *reported* instead, by
|
|
380
|
+
* `bun run build:lisa-owned-hash-ledger` and by its `--check` mode.
|
|
381
|
+
*
|
|
382
|
+
* Two-space indentation, one hash per line: what `formatGeneratedJson` emits,
|
|
383
|
+
* and what the merge driver re-emits after a merge.
|
|
354
384
|
* @param {Map<string, string[]>} ledger - Destination path to known-good hashes
|
|
355
385
|
* @param {Map<string, string[]>} historyDerived - Destination path to history-attested hashes
|
|
356
|
-
* @returns {string}
|
|
386
|
+
* @returns {string} Ledger JSON, newline-terminated
|
|
357
387
|
*/
|
|
358
388
|
export function render(ledger, historyDerived) {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
// now has, at 42 destinations. A length limit is a readability rule for
|
|
364
|
-
// code humans maintain, and nobody maintains this file; the sibling
|
|
365
|
-
// manifest generator has emitted the same disable since it was written.
|
|
366
|
-
// Emitted by the generator rather than added by hand, because a hand-edit
|
|
367
|
-
// here is lost on the next regeneration.
|
|
368
|
-
return `/* eslint-disable max-lines -- generated append-only hash ledger */
|
|
369
|
-
/** Generated by scripts/generate-lisa-owned-hash-ledger.mjs. Do not edit. */
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Every content hash Lisa has published at each Lisa-owned destination path.
|
|
373
|
-
*
|
|
374
|
-
* A host copy whose hash appears here is provably an older Lisa artifact and may
|
|
375
|
-
* be refreshed. One that appears nowhere here was edited downstream, and refresh
|
|
376
|
-
* refuses rather than risk deleting a stronger guard. See
|
|
377
|
-
* \`src/core/lisa-owned-provenance.ts\`.
|
|
378
|
-
*/
|
|
379
|
-
export const ${LEDGER_EXPORT}: Readonly<
|
|
380
|
-
Record<string, readonly string[]>
|
|
381
|
-
> = Object.freeze({
|
|
382
|
-
${entries}
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* The subset of the ledger some run of the generator derived from git history.
|
|
387
|
-
*
|
|
388
|
-
* Provenance, in one lookup (CodySwannGT/lisa#3115). A digest recorded here was
|
|
389
|
-
* produced by the \`git log --follow\` walk, or by the bytes in the working tree,
|
|
390
|
-
* at the time it was recorded. A digest in the ledger and NOT here was **carried
|
|
391
|
-
* forward** from an earlier checked-in ledger, and no run of the generator has
|
|
392
|
-
* been able to derive it since.
|
|
393
|
-
*
|
|
394
|
-
* Carried-forward digests are kept, never pruned. The history walk depends on
|
|
395
|
-
* clone depth and merge topology, so "this clone cannot see it" is not evidence
|
|
396
|
-
* that Lisa never shipped it, and dropping one would permanently stop refresh
|
|
397
|
-
* recognising a genuinely older host copy. They are *reported* instead — by
|
|
398
|
-
* \`${REGENERATE}\` and by its \`--check\` mode — so the question is answerable
|
|
399
|
-
* without archaeology.
|
|
400
|
-
*/
|
|
401
|
-
export const ${HISTORY_EXPORT}: Readonly<
|
|
402
|
-
Record<string, readonly string[]>
|
|
403
|
-
> = Object.freeze({
|
|
404
|
-
${attested}
|
|
405
|
-
});
|
|
406
|
-
/* eslint-enable max-lines -- end generated append-only hash ledger */
|
|
407
|
-
`;
|
|
389
|
+
return formatGeneratedJson({
|
|
390
|
+
[LEDGER_EXPORT]: recordOf(ledger),
|
|
391
|
+
[HISTORY_EXPORT]: recordOf(historyDerived),
|
|
392
|
+
});
|
|
408
393
|
}
|
|
409
394
|
|
|
410
395
|
/**
|
|
@@ -5,6 +5,7 @@ import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
import { boundedExecFileSync } from "./lib/bounded-spawn.mjs";
|
|
8
|
+
import { formatGeneratedJson } from "./lib/merge-generated-json.mjs";
|
|
8
9
|
import {
|
|
9
10
|
describeStaleManifest,
|
|
10
11
|
diagnoseStaleManifest,
|
|
@@ -16,10 +17,18 @@ import {
|
|
|
16
17
|
} from "./lib/upstream-public-commits.mjs";
|
|
17
18
|
|
|
18
19
|
const repoRoot = path.resolve(import.meta.dirname, "..");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Where the manifest data lives.
|
|
22
|
+
*
|
|
23
|
+
* JSON rather than a TypeScript module, for the reason argued at
|
|
24
|
+
* `scripts/generate-export-surface.mjs`: data does not need to be source. Every
|
|
25
|
+
* tracked path and every public commit is one line here, far past the 300-line
|
|
26
|
+
* `max-lines` budget source answers to, so as a module it could only exist
|
|
27
|
+
* behind a file-wide lint waiver. `src/core/upstream-evidence-manifest.ts` is the
|
|
28
|
+
* hand-written loader that turns it into the frozen records the runtime reads.
|
|
29
|
+
*/
|
|
30
|
+
const outputRelativePath = "src/core/upstream-evidence-manifest.json";
|
|
31
|
+
const outputPath = path.join(repoRoot, outputRelativePath);
|
|
23
32
|
const packagedEvidencePrefixes = [
|
|
24
33
|
"plugins/src/",
|
|
25
34
|
"all/",
|
|
@@ -112,7 +121,7 @@ const tracked = boundedExecFileSync("git", ["ls-files", "-z"], {
|
|
|
112
121
|
.filter(Boolean);
|
|
113
122
|
const explicitlyIncluded = ["scripts/generate-upstream-evidence-manifest.mjs"];
|
|
114
123
|
const publicSurfaceMembers = [...new Set([...tracked, ...explicitlyIncluded])]
|
|
115
|
-
.filter(file => file !==
|
|
124
|
+
.filter(file => file !== outputRelativePath)
|
|
116
125
|
.filter(file => existsSync(path.join(repoRoot, file)))
|
|
117
126
|
.filter(file => {
|
|
118
127
|
const segments = file.split("/");
|
|
@@ -127,16 +136,32 @@ const publicSurfaceMembers = [...new Set([...tracked, ...explicitlyIncluded])]
|
|
|
127
136
|
const evidenceMembers = publicSurfaceMembers.filter(file =>
|
|
128
137
|
packagedEvidencePrefixes.some(prefix => file.startsWith(prefix))
|
|
129
138
|
);
|
|
139
|
+
/** The checked-in manifest, or an empty string when there is none yet. */
|
|
130
140
|
const existingOutput = existsSync(outputPath)
|
|
131
141
|
? readFileSync(outputPath, "utf8")
|
|
132
142
|
: "";
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The public commits the checked-in manifest already records.
|
|
146
|
+
*
|
|
147
|
+
* Seeded forward rather than recomputed: a clone without every origin ref
|
|
148
|
+
* cannot rediscover them, and the generator refuses to emit an empty set. An
|
|
149
|
+
* unreadable or malformed file carries nothing forward, which the empty-set
|
|
150
|
+
* refusal below then reports.
|
|
151
|
+
* @returns {string[]} Recorded full commit SHAs
|
|
152
|
+
*/
|
|
153
|
+
function readExistingPublicCommits() {
|
|
154
|
+
if (existingOutput === "") return [];
|
|
155
|
+
try {
|
|
156
|
+
const recorded = JSON.parse(existingOutput).UPSTREAM_PUBLIC_COMMITS;
|
|
157
|
+
return Object.keys(recorded ?? {}).filter(commit =>
|
|
158
|
+
/^[a-f0-9]{40}$/u.test(commit)
|
|
159
|
+
);
|
|
160
|
+
} catch {
|
|
161
|
+
return [];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const existingPublicCommits = readExistingPublicCommits();
|
|
140
165
|
const refreshPublicCommits = process.argv.includes("--refresh-public-commits");
|
|
141
166
|
|
|
142
167
|
/**
|
|
@@ -198,10 +223,10 @@ if (publicCommits.length === 0) {
|
|
|
198
223
|
"Refusing to generate an empty public origin commit manifest; rerun with --refresh-public-commits from a full canonical-origin clone"
|
|
199
224
|
);
|
|
200
225
|
}
|
|
201
|
-
// The list is carried forward by
|
|
202
|
-
//
|
|
203
|
-
//
|
|
204
|
-
// looser read in `droppedPublicCommits` is what notices.
|
|
226
|
+
// The list is carried forward by parsing the recorded JSON. If the recorded
|
|
227
|
+
// file ever stops parsing — a conflict marker, a hand edit — the carry-forward
|
|
228
|
+
// comes back empty and the new list is simply smaller: no error, just lost
|
|
229
|
+
// commits. The looser text read in `droppedPublicCommits` is what notices.
|
|
205
230
|
const droppedCommits = droppedPublicCommits(existingOutput, publicCommits);
|
|
206
231
|
if (droppedCommits.length > 0) {
|
|
207
232
|
throw new Error(
|
|
@@ -217,40 +242,22 @@ if (droppedCommits.length > 0) {
|
|
|
217
242
|
);
|
|
218
243
|
}
|
|
219
244
|
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
245
|
+
const output = formatGeneratedJson({
|
|
246
|
+
UPSTREAM_EVIDENCE_MANIFEST: Object.fromEntries(
|
|
247
|
+
evidenceMembers.map(file => [
|
|
248
|
+
file,
|
|
249
|
+
createHash("sha256")
|
|
250
|
+
.update(readFileSync(path.join(repoRoot, file)))
|
|
251
|
+
.digest("hex"),
|
|
252
|
+
])
|
|
253
|
+
),
|
|
254
|
+
UPSTREAM_SURFACE_MANIFEST: Object.fromEntries(
|
|
255
|
+
publicSurfaceMembers.map(file => [file, true])
|
|
256
|
+
),
|
|
257
|
+
UPSTREAM_PUBLIC_COMMITS: Object.fromEntries(
|
|
258
|
+
publicCommits.map(commit => [commit, true])
|
|
259
|
+
),
|
|
233
260
|
});
|
|
234
|
-
const output = `/* eslint-disable max-lines -- generated exact public-evidence allowlist */
|
|
235
|
-
/** Generated by scripts/generate-upstream-evidence-manifest.mjs. Do not edit. */
|
|
236
|
-
export const UPSTREAM_EVIDENCE_MANIFEST: Readonly<Record<string, string>> =
|
|
237
|
-
Object.freeze({
|
|
238
|
-
${evidenceEntries.join("\n")}
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
/** Exact paths tracked by the public Lisa repository at generation time. */
|
|
242
|
-
export const UPSTREAM_SURFACE_MANIFEST: Readonly<Record<string, true>> =
|
|
243
|
-
Object.freeze({
|
|
244
|
-
${surfaceEntries.join("\n")}
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
/** Full commit SHAs reachable from public origin refs when this package was built. */
|
|
248
|
-
export const UPSTREAM_PUBLIC_COMMITS: Readonly<Record<string, true>> =
|
|
249
|
-
Object.freeze({
|
|
250
|
-
${commitEntries.join("\n")}
|
|
251
|
-
});
|
|
252
|
-
/* eslint-enable max-lines -- end generated exact public-evidence allowlist */
|
|
253
|
-
`;
|
|
254
261
|
|
|
255
262
|
if (process.argv.includes("--check")) {
|
|
256
263
|
const current = readFileSync(outputPath, "utf8");
|
|
@@ -86,14 +86,14 @@ log_header() {
|
|
|
86
86
|
time_ago() {
|
|
87
87
|
local timestamp="$1"
|
|
88
88
|
local now
|
|
89
|
-
local
|
|
89
|
+
local then_epoch
|
|
90
90
|
local diff_seconds
|
|
91
91
|
local diff_hours
|
|
92
92
|
local diff_days
|
|
93
93
|
|
|
94
94
|
now=$(date +%s)
|
|
95
|
-
|
|
96
|
-
diff_seconds=$((now -
|
|
95
|
+
then_epoch=$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "$timestamp" +%s 2>/dev/null || date -d "$timestamp" +%s 2>/dev/null)
|
|
96
|
+
diff_seconds=$((now - then_epoch))
|
|
97
97
|
diff_hours=$((diff_seconds / 3600))
|
|
98
98
|
diff_days=$((diff_hours / 24))
|
|
99
99
|
|
|
@@ -114,26 +114,6 @@ time_ago() {
|
|
|
114
114
|
fi
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
is_older_than_days() {
|
|
118
|
-
local timestamp="$1"
|
|
119
|
-
local days="$2"
|
|
120
|
-
local now
|
|
121
|
-
local then
|
|
122
|
-
local diff_seconds
|
|
123
|
-
local threshold_seconds
|
|
124
|
-
|
|
125
|
-
now=$(date +%s)
|
|
126
|
-
then=$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "$timestamp" +%s 2>/dev/null || date -d "$timestamp" +%s 2>/dev/null)
|
|
127
|
-
diff_seconds=$((now - then))
|
|
128
|
-
threshold_seconds=$((days * 86400))
|
|
129
|
-
|
|
130
|
-
if [[ $diff_seconds -gt $threshold_seconds ]]; then
|
|
131
|
-
return 0 # true - older than threshold
|
|
132
|
-
else
|
|
133
|
-
return 1 # false - newer than threshold
|
|
134
|
-
fi
|
|
135
|
-
}
|
|
136
|
-
|
|
137
117
|
# Check for LISA_GITHUB_REPOS environment variable
|
|
138
118
|
if [[ -z "${LISA_GITHUB_REPOS:-}" ]]; then
|
|
139
119
|
log_error "LISA_GITHUB_REPOS environment variable is not set"
|
|
@@ -206,7 +186,7 @@ for REPO in "${REPOS[@]}"; do
|
|
|
206
186
|
assigned_prs_count=$(echo "$assigned_prs" | grep -c . || true)
|
|
207
187
|
|
|
208
188
|
# Get PRs where current user is requested for review (excluding dependabot)
|
|
209
|
-
review_prs=$(gh pr list --repo "$REPO" --state open --json number,title,author,reviewRequests,url,createdAt --jq '.[] | select(.author.login != "dependabot[bot]" and .author.login != "app/dependabot") | select(.reviewRequests | length > 0) | select(.reviewRequests[].requestedReviewer.login == "'$CURRENT_USER'") | "\(.number)|\(.title)|\(.author.login)|\(.url)|\(.createdAt)"' 2>/dev/null || echo "")
|
|
189
|
+
review_prs=$(gh pr list --repo "$REPO" --state open --json number,title,author,reviewRequests,url,createdAt --jq '.[] | select(.author.login != "dependabot[bot]" and .author.login != "app/dependabot") | select(.reviewRequests | length > 0) | select(.reviewRequests[].requestedReviewer.login == "'"$CURRENT_USER"'") | "\(.number)|\(.title)|\(.author.login)|\(.url)|\(.createdAt)"' 2>/dev/null || echo "")
|
|
210
190
|
review_prs_count=$(echo "$review_prs" | grep -c . || true)
|
|
211
191
|
|
|
212
192
|
# Get failed GitHub Actions where no subsequent success exists for the same workflow+branch
|
|
@@ -283,7 +263,7 @@ for REPO in "${REPOS[@]}"; do
|
|
|
283
263
|
# Display failed actions
|
|
284
264
|
if [[ $failed_actions_count -gt 0 ]]; then
|
|
285
265
|
echo -e "${RED}Failed GitHub Actions ($failed_actions_count):${NC}"
|
|
286
|
-
echo "$failed_actions" | while IFS='|' read -r
|
|
266
|
+
echo "$failed_actions" | while IFS='|' read -r _ action_name branch url created_at; do
|
|
287
267
|
age=$(time_ago "$created_at")
|
|
288
268
|
echo " • $action_name (branch: $branch) - $age"
|
|
289
269
|
echo " 🔗 $url"
|
|
@@ -12,7 +12,7 @@ if [[ "${npm_lifecycle_event:-}" = "postinstall" ||
|
|
|
12
12
|
# Say plainly that no Claude Code plugin was registered (#4504): install is
|
|
13
13
|
# hands-off by design (#4135), so a fresh clone has no Lisa commands until
|
|
14
14
|
# an explicit `lisa apply .` registers them for this folder.
|
|
15
|
-
echo
|
|
15
|
+
echo "lisa: installation leaves unrelated project templates unchanged, and Claude Code plugins are not registered by dependency install. Run \`lisa apply .\` in this project to register them and apply updates, or \`lisa doctor\` to check freshness."
|
|
16
16
|
exit 0
|
|
17
17
|
fi
|
|
18
18
|
|
|
@@ -71,7 +71,9 @@ detect_lisa_stack() {
|
|
|
71
71
|
CODEX_RETIRE_MARKER="$HOME/.codex/.lisa-legacy-plugins-retired"
|
|
72
72
|
|
|
73
73
|
write_codex_retire_marker() {
|
|
74
|
-
mkdir -p "$HOME/.codex" 2>/dev/null
|
|
74
|
+
if mkdir -p "$HOME/.codex" 2>/dev/null; then
|
|
75
|
+
touch "$CODEX_RETIRE_MARKER" 2>/dev/null || true
|
|
76
|
+
fi
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
remove_user_wide_codex_lisa_plugins() {
|
|
@@ -405,9 +407,9 @@ fi
|
|
|
405
407
|
# own marker is recorded so repeat installs (and health's root-confined
|
|
406
408
|
# marker probe) see the settled state without reaching outside the project.
|
|
407
409
|
if [ "$IS_LINKED_WORKTREE" = "true" ] && [ "$FORCE_PLUGIN_SYNC" != "true" ]; then
|
|
408
|
-
mkdir -p "$PROJECT_ROOT/.claude" 2>/dev/null
|
|
409
|
-
|
|
410
|
-
|
|
410
|
+
if mkdir -p "$PROJECT_ROOT/.claude" 2>/dev/null; then
|
|
411
|
+
printf '%s' "$LISA_VERSION" > "$PLUGIN_SYNC_MARKER" 2>/dev/null || true
|
|
412
|
+
fi
|
|
411
413
|
echo "Lisa plugins already in sync for ${LISA_VERSION} (primary checkout: ${PRIMARY_ROOT}); deferring worktree plugin registration to the coding agent's startup."
|
|
412
414
|
exit 0
|
|
413
415
|
fi
|
|
@@ -632,9 +634,9 @@ fi
|
|
|
632
634
|
# the primary checkout would let the primary skip the forced reinstall it
|
|
633
635
|
# still needs after a version bump.
|
|
634
636
|
if [ -n "$LISA_VERSION" ]; then
|
|
635
|
-
mkdir -p "$PROJECT_ROOT/.claude" 2>/dev/null
|
|
636
|
-
|
|
637
|
-
|
|
637
|
+
if mkdir -p "$PROJECT_ROOT/.claude" 2>/dev/null; then
|
|
638
|
+
printf '%s' "$LISA_VERSION" > "$PLUGIN_SYNC_MARKER" 2>/dev/null || true
|
|
639
|
+
fi
|
|
638
640
|
fi
|
|
639
641
|
|
|
640
642
|
# A failed template apply fails this lifecycle script (CodySwannGT/lisa#3466).
|