@codyswann/lisa 7.1.4 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +0 -2
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +3 -6
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +31 -32
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +201 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -2
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +16 -10
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +2 -2
- package/dist/cli/apply.js.map +1 -1
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +8 -4
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +2 -2
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts +5 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.js +44 -10
- package/dist/cli/doctor-readiness-supply-chain-python.js.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -2
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-worker-journey.js +2 -2
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +7 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/file-upstream-cmd.d.ts.map +1 -1
- package/dist/cli/file-upstream-cmd.js +20 -25
- package/dist/cli/file-upstream-cmd.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -2
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +13 -6
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/health-cmd.d.ts.map +1 -1
- package/dist/cli/health-cmd.js +7 -19
- package/dist/cli/health-cmd.js.map +1 -1
- package/dist/cli/lisa-test-run-jest-merge.js +5 -5
- package/dist/cli/lisa-test-run-jest-merge.js.map +1 -1
- package/dist/cli/lisa-test-run.js +8 -4
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/pr-landing.js +2 -2
- package/dist/cli/pr-landing.js.map +1 -1
- package/dist/cli/update-check.d.ts.map +1 -1
- package/dist/cli/update-check.js +7 -4
- package/dist/cli/update-check.js.map +1 -1
- package/dist/cli/update-cmd.d.ts.map +1 -1
- package/dist/cli/update-cmd.js +7 -4
- package/dist/cli/update-cmd.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/cli/worktree-ownership.js +3 -3
- package/dist/cli/worktree-ownership.js.map +1 -1
- package/dist/codex/hooks-catalog.d.ts +151 -0
- package/dist/codex/hooks-catalog.d.ts.map +1 -0
- package/dist/codex/hooks-catalog.js +315 -0
- package/dist/codex/hooks-catalog.js.map +1 -0
- package/dist/codex/hooks-compatibility.d.ts +14 -0
- package/dist/codex/hooks-compatibility.d.ts.map +1 -0
- package/dist/codex/hooks-compatibility.js +196 -0
- package/dist/codex/hooks-compatibility.js.map +1 -0
- package/dist/codex/hooks-installer.d.ts +2 -49
- package/dist/codex/hooks-installer.d.ts.map +1 -1
- package/dist/codex/hooks-installer.js +5 -546
- package/dist/codex/hooks-installer.js.map +1 -1
- package/dist/codex/hooks-source-links.d.ts +11 -0
- package/dist/codex/hooks-source-links.d.ts.map +1 -0
- package/dist/codex/hooks-source-links.js +74 -0
- package/dist/codex/hooks-source-links.js.map +1 -0
- package/dist/codex/scripts/block-migration-edits.sh +2 -2
- package/dist/codex/scripts/block-suppress-directives.sh +3 -3
- package/dist/codex/scripts/format-on-edit.sh +2 -2
- package/dist/codex/scripts/lint-on-edit.sh +2 -2
- package/dist/codex/scripts/lisa-edit-gate.sh +19 -15
- package/dist/codex/scripts/rubocop-on-edit.sh +2 -2
- package/dist/codex/scripts/sg-scan-on-edit.sh +2 -2
- package/dist/configs/coverage-scope.d.ts +0 -23
- package/dist/configs/coverage-scope.d.ts.map +1 -1
- package/dist/configs/coverage-scope.js +2 -3
- package/dist/configs/coverage-scope.js.map +1 -1
- package/dist/configs/eslint/base.d.ts +2 -113
- package/dist/configs/eslint/base.d.ts.map +1 -1
- package/dist/configs/eslint/base.js +2 -165
- package/dist/configs/eslint/base.js.map +1 -1
- package/dist/configs/eslint/cdk.d.ts.map +1 -1
- package/dist/configs/eslint/cdk.js +82 -66
- package/dist/configs/eslint/cdk.js.map +1 -1
- package/dist/configs/eslint/expo-overrides.d.ts +103 -0
- package/dist/configs/eslint/expo-overrides.d.ts.map +1 -0
- package/dist/configs/eslint/expo-overrides.js +187 -0
- package/dist/configs/eslint/expo-overrides.js.map +1 -0
- package/dist/configs/eslint/expo.d.ts +2 -7
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +186 -258
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/nestjs.d.ts.map +1 -1
- package/dist/configs/eslint/nestjs.js +86 -70
- package/dist/configs/eslint/nestjs.js.map +1 -1
- package/dist/configs/eslint/process-environment-bans.d.ts +41 -0
- package/dist/configs/eslint/process-environment-bans.d.ts.map +1 -0
- package/dist/configs/eslint/process-environment-bans.js +50 -0
- package/dist/configs/eslint/process-environment-bans.js.map +1 -0
- package/dist/configs/eslint/shared-rules.d.ts +130 -0
- package/dist/configs/eslint/shared-rules.d.ts.map +1 -0
- package/dist/configs/eslint/shared-rules.js +233 -0
- package/dist/configs/eslint/shared-rules.js.map +1 -0
- package/dist/configs/eslint/typescript.d.ts.map +1 -1
- package/dist/configs/eslint/typescript.js +2 -4
- package/dist/configs/eslint/typescript.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +2 -2
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +5 -5
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +3 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.js +2 -2
- package/dist/configs/vitest/refusal-announcement.js.map +1 -1
- package/dist/core/admission-lock.js +2 -3
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +11 -5
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +2 -2
- package/dist/core/admission.js.map +1 -1
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +8 -5
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +48 -47
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +3 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +46 -27
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/kane-cli-process.d.ts.map +1 -1
- package/dist/core/kane-cli-process.js +46 -33
- package/dist/core/kane-cli-process.js.map +1 -1
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +3 -4
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/lisa-agent-emit-extra.d.ts +75 -0
- package/dist/core/lisa-agent-emit-extra.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit-extra.js +231 -0
- package/dist/core/lisa-agent-emit-extra.js.map +1 -0
- package/dist/core/lisa-agent-emit.d.ts +79 -0
- package/dist/core/lisa-agent-emit.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit.js +224 -0
- package/dist/core/lisa-agent-emit.js.map +1 -0
- package/dist/core/lisa-deletions.d.ts +116 -0
- package/dist/core/lisa-deletions.d.ts.map +1 -0
- package/dist/core/lisa-deletions.js +316 -0
- package/dist/core/lisa-deletions.js.map +1 -0
- package/dist/core/lisa-file-results.d.ts +58 -0
- package/dist/core/lisa-file-results.d.ts.map +1 -0
- package/dist/core/lisa-file-results.js +173 -0
- package/dist/core/lisa-file-results.js.map +1 -0
- package/dist/core/lisa-maintenance.d.ts +139 -0
- package/dist/core/lisa-maintenance.d.ts.map +1 -0
- package/dist/core/lisa-maintenance.js +324 -0
- package/dist/core/lisa-maintenance.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts +7 -5
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -6036
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6021 -0
- package/dist/core/lisa-plugin-sync.d.ts +96 -0
- package/dist/core/lisa-plugin-sync.d.ts.map +1 -0
- package/dist/core/lisa-plugin-sync.js +216 -0
- package/dist/core/lisa-plugin-sync.js.map +1 -0
- package/dist/core/lisa-plugins.d.ts +42 -0
- package/dist/core/lisa-plugins.d.ts.map +1 -0
- package/dist/core/lisa-plugins.js +155 -0
- package/dist/core/lisa-plugins.js.map +1 -0
- package/dist/core/lisa-state.d.ts +202 -0
- package/dist/core/lisa-state.d.ts.map +1 -0
- package/dist/core/lisa-state.js +205 -0
- package/dist/core/lisa-state.js.map +1 -0
- package/dist/core/lisa-summary-stats.d.ts +74 -0
- package/dist/core/lisa-summary-stats.d.ts.map +1 -0
- package/dist/core/lisa-summary-stats.js +189 -0
- package/dist/core/lisa-summary-stats.js.map +1 -0
- package/dist/core/lisa-summary.d.ts +34 -0
- package/dist/core/lisa-summary.d.ts.map +1 -0
- package/dist/core/lisa-summary.js +144 -0
- package/dist/core/lisa-summary.js.map +1 -0
- package/dist/core/lisa-templates.d.ts +98 -0
- package/dist/core/lisa-templates.d.ts.map +1 -0
- package/dist/core/lisa-templates.js +251 -0
- package/dist/core/lisa-templates.js.map +1 -0
- package/dist/core/lisa.d.ts +14 -903
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +30 -2275
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +117 -61
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/template-ownership.js +0 -1
- package/dist/core/template-ownership.js.map +1 -1
- package/dist/core/upstream-attribution-body.d.ts +4 -11
- package/dist/core/upstream-attribution-body.d.ts.map +1 -1
- package/dist/core/upstream-attribution-body.js +61 -373
- package/dist/core/upstream-attribution-body.js.map +1 -1
- package/dist/core/upstream-attribution-fields.d.ts +40 -0
- package/dist/core/upstream-attribution-fields.d.ts.map +1 -0
- package/dist/core/upstream-attribution-fields.js +167 -0
- package/dist/core/upstream-attribution-fields.js.map +1 -0
- package/dist/core/upstream-attribution-files.d.ts +15 -0
- package/dist/core/upstream-attribution-files.d.ts.map +1 -0
- package/dist/core/upstream-attribution-files.js +156 -0
- package/dist/core/upstream-attribution-files.js.map +1 -0
- package/dist/core/upstream-attribution-guards.d.ts +80 -0
- package/dist/core/upstream-attribution-guards.d.ts.map +1 -0
- package/dist/core/upstream-attribution-guards.js +284 -0
- package/dist/core/upstream-attribution-guards.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +67 -30420
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +30518 -0
- package/dist/health/agentic-contract.d.ts +94 -0
- package/dist/health/agentic-contract.d.ts.map +1 -0
- package/dist/health/agentic-contract.js +2 -0
- package/dist/health/agentic-contract.js.map +1 -0
- package/dist/health/agentic-evidence.d.ts +16 -0
- package/dist/health/agentic-evidence.d.ts.map +1 -0
- package/dist/health/agentic-evidence.js +213 -0
- package/dist/health/agentic-evidence.js.map +1 -0
- package/dist/health/agentic.d.ts +11 -74
- package/dist/health/agentic.d.ts.map +1 -1
- package/dist/health/agentic.js +42 -216
- package/dist/health/agentic.js.map +1 -1
- package/dist/health/deadline.d.ts +4 -1
- package/dist/health/deadline.d.ts.map +1 -1
- package/dist/health/deadline.js +4 -3
- package/dist/health/deadline.js.map +1 -1
- package/dist/health/deterministic-inputs.d.ts.map +1 -1
- package/dist/health/deterministic-inputs.js +3 -11
- package/dist/health/deterministic-inputs.js.map +1 -1
- package/dist/health/deterministic-probes.d.ts +52 -0
- package/dist/health/deterministic-probes.d.ts.map +1 -0
- package/dist/health/deterministic-probes.js +142 -0
- package/dist/health/deterministic-probes.js.map +1 -0
- package/dist/health/deterministic.d.ts +2 -25
- package/dist/health/deterministic.d.ts.map +1 -1
- package/dist/health/deterministic.js +14 -106
- package/dist/health/deterministic.js.map +1 -1
- package/dist/health/finding-utils.d.ts +4 -3
- package/dist/health/finding-utils.d.ts.map +1 -1
- package/dist/health/finding-utils.js +4 -4
- package/dist/health/finding-utils.js.map +1 -1
- package/dist/health/governance-probes.d.ts +29 -24
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +29 -25
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/hook-inspection.d.ts +4 -3
- package/dist/health/hook-inspection.d.ts.map +1 -1
- package/dist/health/hook-inspection.js +17 -11
- package/dist/health/hook-inspection.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -4
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -9
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/prepare.js +24 -8
- package/dist/health/prepare.js.map +1 -1
- package/dist/health/project-probes.d.ts +14 -7
- package/dist/health/project-probes.d.ts.map +1 -1
- package/dist/health/project-probes.js +14 -9
- package/dist/health/project-probes.js.map +1 -1
- package/dist/health/ruleset-compare.d.ts +30 -0
- package/dist/health/ruleset-compare.d.ts.map +1 -0
- package/dist/health/ruleset-compare.js +143 -0
- package/dist/health/ruleset-compare.js.map +1 -0
- package/dist/health/ruleset-config-checks.d.ts +66 -0
- package/dist/health/ruleset-config-checks.d.ts.map +1 -0
- package/dist/health/ruleset-config-checks.js +190 -0
- package/dist/health/ruleset-config-checks.js.map +1 -0
- package/dist/health/ruleset-expected.d.ts +39 -0
- package/dist/health/ruleset-expected.d.ts.map +1 -0
- package/dist/health/ruleset-expected.js +181 -0
- package/dist/health/ruleset-expected.js.map +1 -0
- package/dist/health/ruleset-gh.d.ts +85 -0
- package/dist/health/ruleset-gh.d.ts.map +1 -0
- package/dist/health/ruleset-gh.js +177 -0
- package/dist/health/ruleset-gh.js.map +1 -0
- package/dist/health/ruleset-inspection.d.ts +13 -117
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +8 -738
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/health/ruleset-normalize.d.ts +32 -0
- package/dist/health/ruleset-normalize.d.ts.map +1 -0
- package/dist/health/ruleset-normalize.js +160 -0
- package/dist/health/ruleset-normalize.js.map +1 -0
- package/dist/health/template-compose.d.ts +9 -0
- package/dist/health/template-compose.d.ts.map +1 -0
- package/dist/health/template-compose.js +105 -0
- package/dist/health/template-compose.js.map +1 -0
- package/dist/health/template-inspection.d.ts +5 -52
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +13 -435
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/health/template-plan.d.ts +33 -0
- package/dist/health/template-plan.d.ts.map +1 -0
- package/dist/health/template-plan.js +154 -0
- package/dist/health/template-plan.js.map +1 -0
- package/dist/health/template-shape.d.ts +19 -0
- package/dist/health/template-shape.d.ts.map +1 -0
- package/dist/health/template-shape.js +122 -0
- package/dist/health/template-shape.js.map +1 -0
- package/dist/health/workflow-excerpt.d.ts +15 -0
- package/dist/health/workflow-excerpt.d.ts.map +1 -0
- package/dist/health/workflow-excerpt.js +88 -0
- package/dist/health/workflow-excerpt.js.map +1 -0
- package/dist/health/workflow-inputs-inspection.d.ts +16 -0
- package/dist/health/workflow-inputs-inspection.d.ts.map +1 -0
- package/dist/health/workflow-inputs-inspection.js +116 -0
- package/dist/health/workflow-inputs-inspection.js.map +1 -0
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +201 -20
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +73 -25
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +26 -9
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/git-state.d.ts.map +1 -1
- package/dist/standards/git-state.js +2 -2
- package/dist/standards/git-state.js.map +1 -1
- package/dist/standards/registry-checks.d.ts +34 -0
- package/dist/standards/registry-checks.d.ts.map +1 -0
- package/dist/standards/registry-checks.js +137 -0
- package/dist/standards/registry-checks.js.map +1 -0
- package/dist/standards/registry.d.ts +3 -13
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +105 -194
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/storage.js +8 -10
- package/dist/standards/storage.js.map +1 -1
- package/dist/strategies/deduplicate-arrays.d.ts +18 -0
- package/dist/strategies/deduplicate-arrays.d.ts.map +1 -0
- package/dist/strategies/deduplicate-arrays.js +25 -0
- package/dist/strategies/deduplicate-arrays.js.map +1 -0
- package/dist/strategies/package-lisa-detect.d.ts +10 -0
- package/dist/strategies/package-lisa-detect.d.ts.map +1 -0
- package/dist/strategies/package-lisa-detect.js +178 -0
- package/dist/strategies/package-lisa-detect.js.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts +16 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.js +37 -0
- package/dist/strategies/package-lisa-direct-floors.js.map +1 -0
- package/dist/strategies/package-lisa-host-pins.d.ts +43 -0
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -0
- package/dist/strategies/package-lisa-host-pins.js +254 -0
- package/dist/strategies/package-lisa-host-pins.js.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts +59 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.js +234 -0
- package/dist/strategies/package-lisa-manifest-guards.js.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts +34 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.js +106 -0
- package/dist/strategies/package-lisa-pin-alignment.js.map +1 -0
- package/dist/strategies/package-lisa-script-notes.d.ts +19 -0
- package/dist/strategies/package-lisa-script-notes.d.ts.map +1 -0
- package/dist/strategies/package-lisa-script-notes.js +145 -0
- package/dist/strategies/package-lisa-script-notes.js.map +1 -0
- package/dist/strategies/package-lisa-template-apply.d.ts +53 -0
- package/dist/strategies/package-lisa-template-apply.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-apply.js +216 -0
- package/dist/strategies/package-lisa-template-apply.js.map +1 -0
- package/dist/strategies/package-lisa-template-merge.d.ts +42 -0
- package/dist/strategies/package-lisa-template-merge.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-merge.js +202 -0
- package/dist/strategies/package-lisa-template-merge.js.map +1 -0
- package/dist/strategies/package-lisa-types.d.ts +5 -0
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +1 -195
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +27 -1333
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/tagged-merge-sections.d.ts +68 -0
- package/dist/strategies/tagged-merge-sections.d.ts.map +1 -0
- package/dist/strategies/tagged-merge-sections.js +113 -0
- package/dist/strategies/tagged-merge-sections.js.map +1 -0
- package/dist/strategies/tagged-merge.d.ts +1 -90
- package/dist/strategies/tagged-merge.d.ts.map +1 -1
- package/dist/strategies/tagged-merge.js +19 -190
- package/dist/strategies/tagged-merge.js.map +1 -1
- package/dist/utils/bounded-stream.d.ts +30 -0
- package/dist/utils/bounded-stream.d.ts.map +1 -0
- package/dist/utils/bounded-stream.js +63 -0
- package/dist/utils/bounded-stream.js.map +1 -0
- package/dist/utils/fibonacci.d.ts +3 -3
- package/dist/utils/fibonacci.d.ts.map +1 -1
- package/dist/utils/fibonacci.js +48 -10
- package/dist/utils/fibonacci.js.map +1 -1
- package/dist/utils/memo.d.ts +25 -0
- package/dist/utils/memo.d.ts.map +1 -0
- package/dist/utils/memo.js +32 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +3 -20
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/process-environment.d.ts +42 -0
- package/dist/utils/process-environment.d.ts.map +1 -0
- package/dist/utils/process-environment.js +52 -0
- package/dist/utils/process-environment.js.map +1 -0
- package/dist/utils/resolve-executable.d.ts +89 -0
- package/dist/utils/resolve-executable.d.ts.map +1 -0
- package/dist/utils/resolve-executable.js +224 -0
- package/dist/utils/resolve-executable.js.map +1 -0
- package/dist/utils/shell-command-line.d.ts +9 -0
- package/dist/utils/shell-command-line.d.ts.map +1 -0
- package/dist/utils/shell-command-line.js +43 -0
- package/dist/utils/shell-command-line.js.map +1 -0
- package/dist/utils/usage-accounting-totals.d.ts +19 -0
- package/dist/utils/usage-accounting-totals.d.ts.map +1 -0
- package/dist/utils/usage-accounting-totals.js +145 -0
- package/dist/utils/usage-accounting-totals.js.map +1 -0
- package/dist/utils/usage-accounting.d.ts +2 -14
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -169
- package/dist/utils/usage-accounting.js.map +1 -1
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-react-violations.test.js +213 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-valid.test.js +251 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-violations.test.js +222 -0
- package/eslint-plugin-code-organization/__tests__/statement-order-tester.js +42 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +6 -8
- package/expo/copy-overwrite/jest.setup.ts +11 -10
- package/expo/create-only/scripts/zap-baseline.sh +6 -18
- package/harper-fabric/create-only/scripts/zap-baseline.sh +7 -9
- package/nestjs/create-only/scripts/zap-baseline.sh +6 -7
- package/package.json +4 -4
- package/phaser/copy-overwrite/.husky/pre-push.verify +2 -0
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/lisa/hooks/track-plan-sessions.sh +7 -131
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-copilot/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-copilot/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-cursor/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-cursor/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-devin/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-devin/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/.codex-plugin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-agy/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-copilot/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-cursor/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-devin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-copilot/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-cursor/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-devin/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/.codex-plugin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-agy/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-copilot/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-copilot/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-cursor/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-cursor/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-devin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-devin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-devin/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/src/base/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/src/base/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/src/base/hooks/track-plan-sessions.sh +7 -131
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/src/harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/src/harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/src/nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/src/nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/src/nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/src/rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/src/rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/src/typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/src/typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/scripts/build-plugins.sh +1 -1
- package/scripts/check-derived-artifacts.mjs +2 -2
- package/scripts/check-generated-artifact-merge-coverage.mjs +45 -4
- package/scripts/check-orphan-test-processes.mjs +0 -1
- package/scripts/check-self-dependency-pin.mjs +0 -2
- package/scripts/claude-remote-setup.sh +12 -7
- package/scripts/cleanup-amplify-branches.sh +0 -1
- package/scripts/generate-export-surface.mjs +131 -61
- package/scripts/generate-lisa-owned-hash-ledger.mjs +87 -102
- package/scripts/generate-upstream-evidence-manifest.mjs +56 -49
- package/scripts/github-status-check.sh +5 -25
- package/scripts/install-claude-plugins.sh +10 -8
- package/scripts/lib/merge-generated-json.mjs +274 -0
- package/scripts/lib/upstream-manifest-staleness.mjs +38 -34
- package/scripts/lib/upstream-public-commits.mjs +35 -18
- package/scripts/lisa-commit-and-pr-local.sh +1 -1
- package/scripts/lisa-enforcement-fallback.sh +31 -32
- package/scripts/lisa-github-environments.sh +5 -1
- package/scripts/lisa-github-repo-settings.sh +5 -1
- package/scripts/lisa-github-repo-setup.sh +1 -2
- package/scripts/lisa-github-rulesets.sh +8 -8
- package/scripts/lisa-remote-env/session-start.sh +18 -5
- package/scripts/lisa-rollback-release.mjs +0 -2
- package/scripts/lisa-update-local.sh +1 -1
- package/scripts/merge-generated-artifact.mjs +18 -6
- package/scripts/raise-self-dependency-pin.mjs +0 -2
- package/scripts/run-artifact-checks.mjs +1 -1
- package/scripts/verify-packed-learnings-contract.mjs +36 -3
- package/scripts/verify-self-pin-raise.mjs +0 -2
- package/typescript/copy-contents/.husky/commit-msg +8 -2
- package/typescript/copy-contents/.husky/post-checkout +2 -0
- package/typescript/copy-contents/.husky/post-merge +2 -0
- package/typescript/copy-contents/.husky/pre-commit +10 -3
- package/typescript/copy-contents/.husky/pre-push +29 -16
- package/typescript/copy-contents/.husky/prepare-commit-msg +2 -0
- package/typescript/create-only/.husky/pre-push.local +2 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +0 -643
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { LisaDeletions } from "./lisa-deletions.js";
|
|
2
|
+
import type { PluginExecAsync } from "./lisa-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* Plugin sync marker, sync planning, and individual Claude CLI plugin commands.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class LisaPluginSync extends LisaDeletions {
|
|
7
|
+
/**
|
|
8
|
+
* Exec options shared by all Claude CLI plugin commands.
|
|
9
|
+
* @returns Options object with the project cwd and registration budget
|
|
10
|
+
*/
|
|
11
|
+
protected pluginExecOptions(): Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Absolute path of the plugin sync marker recording the last fully-synced
|
|
14
|
+
* Lisa version for this project. Shared with install-claude-plugins.sh.
|
|
15
|
+
* @returns Marker path under the project's .claude directory
|
|
16
|
+
*/
|
|
17
|
+
protected pluginSyncMarkerPath(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Read the plugin ids already installed for this project via
|
|
20
|
+
* `claude plugin list --json`.
|
|
21
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
22
|
+
* @returns Set of installed plugin ids, or null when the list cannot be
|
|
23
|
+
* obtained (older CLI, parse failure) so callers fall back to installing
|
|
24
|
+
* everything — the pre-existing behavior
|
|
25
|
+
*/
|
|
26
|
+
protected readInstalledPluginIds(execAsync: PluginExecAsync): Promise<ReadonlySet<string> | null>;
|
|
27
|
+
/**
|
|
28
|
+
* Record the Lisa version whose plugin set was last fully synced.
|
|
29
|
+
*
|
|
30
|
+
* Writes through `node:fs/promises`. `writeFile` is one of the `graceful-fs`
|
|
31
|
+
* passthroughs Node's ESM loader does not expose on the `fs-extra` namespace,
|
|
32
|
+
* so `fse.writeFile(...)` was `undefined` in the shipped `dist/` and threw a
|
|
33
|
+
* `TypeError` into the catch below (#2487) — the marker was never written, and
|
|
34
|
+
* the version gate it feeds never once took effect.
|
|
35
|
+
*
|
|
36
|
+
* Failure stays non-fatal, but is no longer silent. The catch now reports the
|
|
37
|
+
* real error: a recovery path that says nothing cannot be distinguished from
|
|
38
|
+
* one that never ran, which is precisely how this went unnoticed. The wording
|
|
39
|
+
* matches the sibling best-effort plugin steps above.
|
|
40
|
+
* @param version - Lisa package version to record
|
|
41
|
+
* @returns Promise that resolves when the marker is written (best-effort)
|
|
42
|
+
*/
|
|
43
|
+
protected writePluginSyncMarker(version: string): Promise<void>;
|
|
44
|
+
/** Remove only this project's marker so incomplete incremental syncs retry. */
|
|
45
|
+
protected invalidatePluginSyncMarker(): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Record only a completed sync, keeping failures eligible for a later retry.
|
|
48
|
+
* @param version - Current Lisa version
|
|
49
|
+
* @param fullSync - Whether a version change required every plugin
|
|
50
|
+
* @param completed - Whether all required commands succeeded
|
|
51
|
+
*/
|
|
52
|
+
protected recordPluginSyncOutcome(version: string, fullSync: boolean, completed: boolean): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Decide whether this apply needs a full plugin sync and which plugins to
|
|
55
|
+
* install.
|
|
56
|
+
*
|
|
57
|
+
* Linked worktrees inherit the primary checkout's sync state: the marker is
|
|
58
|
+
* gitignored (it records this machine's `~/.claude` plugin state), so a
|
|
59
|
+
* fresh agent worktree is always marker-less and would otherwise pay the
|
|
60
|
+
* full sync — marketplace pulls plus a Claude CLI spawn per plugin — on
|
|
61
|
+
* every ticket. When the primary checkout is already synced for this Lisa
|
|
62
|
+
* version, the worktree has nothing left to do: the marketplace cache is
|
|
63
|
+
* machine-global and per-worktree plugin registration is handled by the
|
|
64
|
+
* coding agent's own startup (Claude Code auto-installs the committed
|
|
65
|
+
* `enabledPlugins` for a new projectPath; Codex uses the project-local
|
|
66
|
+
* `.codex-plugin` pointer instead of Claude project-scope registrations).
|
|
67
|
+
* The #320 defense (refresh marketplace whenever installs happened) holds:
|
|
68
|
+
* the skip path performs no installs.
|
|
69
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
70
|
+
* @param plugins - Plugin identifiers from enabledPlugins
|
|
71
|
+
* @returns Sync plan: fullSync (version changed), plugins to install, the
|
|
72
|
+
* current Lisa version, and whether destDir is a linked worktree
|
|
73
|
+
*/
|
|
74
|
+
protected computePluginSyncPlan(execAsync: PluginExecAsync, plugins: readonly string[]): Promise<{
|
|
75
|
+
readonly fullSync: boolean;
|
|
76
|
+
readonly toInstall: readonly string[];
|
|
77
|
+
readonly version: string;
|
|
78
|
+
readonly isLinkedWorktree: boolean;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* Refresh the cached Lisa marketplace via the Claude CLI.
|
|
82
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
83
|
+
* @param announce - Whether to log the outcome (silent for the pre-install
|
|
84
|
+
* best-effort refresh)
|
|
85
|
+
* @returns Whether the refresh command succeeded
|
|
86
|
+
*/
|
|
87
|
+
protected updateLisaMarketplace(execAsync: PluginExecAsync, announce: boolean): Promise<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* Install a single plugin at project scope via the Claude CLI.
|
|
90
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
91
|
+
* @param plugin - Plugin identifier (already validated)
|
|
92
|
+
* @returns Whether the install command succeeded
|
|
93
|
+
*/
|
|
94
|
+
protected installPlugin(execAsync: PluginExecAsync, plugin: string): Promise<boolean>;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=lisa-plugin-sync.d.ts.map
|
|
@@ -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AChB,OAAO,CAAC,OAAO,CAAC;IAqBnB;;;;;OAKG;cACa,aAAa,CAC3B,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,OAAO,CAAC;CAgBpB"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-plugin-sync.ts
|
|
3
|
+
* @description Plugin sync marker, sync planning, and individual Claude CLI plugin commands. One layer of the `Lisa` orchestrator; each layer
|
|
4
|
+
* extends the one below it so the apply pipeline reads as one class while no
|
|
5
|
+
* single module carries the whole pipeline.
|
|
6
|
+
* @module core
|
|
7
|
+
*/
|
|
8
|
+
import * as fse from "fs-extra";
|
|
9
|
+
import { readFile, unlink, writeFile } from "node:fs/promises";
|
|
10
|
+
import * as path from "node:path";
|
|
11
|
+
import { getPackageVersion } from "../cli/version.js";
|
|
12
|
+
import { resolvePrimaryWorktreeRoot } from "../utils/linked-worktree.js";
|
|
13
|
+
import { PLUGIN_LIST_MAX_CAPTURE_BYTES, PLUGIN_PROBE_TIMEOUT_MS, PLUGIN_REGISTRATION_TIMEOUT_MS, } from "./plugin-command.js";
|
|
14
|
+
import { LisaDeletions } from "./lisa-deletions.js";
|
|
15
|
+
import { PLUGIN_COMMAND_FAILED } from "./lisa-state.js";
|
|
16
|
+
/**
|
|
17
|
+
* Plugin sync marker, sync planning, and individual Claude CLI plugin commands.
|
|
18
|
+
*/
|
|
19
|
+
export class LisaPluginSync extends LisaDeletions {
|
|
20
|
+
/**
|
|
21
|
+
* Exec options shared by all Claude CLI plugin commands.
|
|
22
|
+
* @returns Options object with the project cwd and registration budget
|
|
23
|
+
*/
|
|
24
|
+
pluginExecOptions() {
|
|
25
|
+
return {
|
|
26
|
+
cwd: this.config.destDir,
|
|
27
|
+
timeout: PLUGIN_REGISTRATION_TIMEOUT_MS,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Absolute path of the plugin sync marker recording the last fully-synced
|
|
32
|
+
* Lisa version for this project. Shared with install-claude-plugins.sh.
|
|
33
|
+
* @returns Marker path under the project's .claude directory
|
|
34
|
+
*/
|
|
35
|
+
pluginSyncMarkerPath() {
|
|
36
|
+
return path.join(this.config.destDir, ".claude", ".lisa-plugins-synced");
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Read the plugin ids already installed for this project via
|
|
40
|
+
* `claude plugin list --json`.
|
|
41
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
42
|
+
* @returns Set of installed plugin ids, or null when the list cannot be
|
|
43
|
+
* obtained (older CLI, parse failure) so callers fall back to installing
|
|
44
|
+
* everything — the pre-existing behavior
|
|
45
|
+
*/
|
|
46
|
+
async readInstalledPluginIds(execAsync) {
|
|
47
|
+
try {
|
|
48
|
+
const result = (await execAsync("claude plugin list --json", {
|
|
49
|
+
cwd: this.config.destDir,
|
|
50
|
+
timeout: PLUGIN_PROBE_TIMEOUT_MS,
|
|
51
|
+
maxCaptureBytes: PLUGIN_LIST_MAX_CAPTURE_BYTES,
|
|
52
|
+
}));
|
|
53
|
+
const parsed = JSON.parse(String(result.stdout ?? ""));
|
|
54
|
+
if (!Array.isArray(parsed)) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
const destPath = path.resolve(this.config.destDir);
|
|
58
|
+
const ids = parsed
|
|
59
|
+
.filter((entry) => typeof entry.id === "string" &&
|
|
60
|
+
entry.projectPath === destPath)
|
|
61
|
+
.map(entry => entry.id);
|
|
62
|
+
return new Set(ids);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Record the Lisa version whose plugin set was last fully synced.
|
|
70
|
+
*
|
|
71
|
+
* Writes through `node:fs/promises`. `writeFile` is one of the `graceful-fs`
|
|
72
|
+
* passthroughs Node's ESM loader does not expose on the `fs-extra` namespace,
|
|
73
|
+
* so `fse.writeFile(...)` was `undefined` in the shipped `dist/` and threw a
|
|
74
|
+
* `TypeError` into the catch below (#2487) — the marker was never written, and
|
|
75
|
+
* the version gate it feeds never once took effect.
|
|
76
|
+
*
|
|
77
|
+
* Failure stays non-fatal, but is no longer silent. The catch now reports the
|
|
78
|
+
* real error: a recovery path that says nothing cannot be distinguished from
|
|
79
|
+
* one that never ran, which is precisely how this went unnoticed. The wording
|
|
80
|
+
* matches the sibling best-effort plugin steps above.
|
|
81
|
+
* @param version - Lisa package version to record
|
|
82
|
+
* @returns Promise that resolves when the marker is written (best-effort)
|
|
83
|
+
*/
|
|
84
|
+
async writePluginSyncMarker(version) {
|
|
85
|
+
try {
|
|
86
|
+
await fse.ensureDir(path.join(this.config.destDir, ".claude"));
|
|
87
|
+
await writeFile(this.pluginSyncMarkerPath(), `${version}\n`, "utf-8");
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
// Best-effort: a missing marker only costs a redundant full sync next run.
|
|
91
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
92
|
+
this.deps.logger.warn(`Could not record plugin sync marker: ${message}`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/** Remove only this project's marker so incomplete incremental syncs retry. */
|
|
96
|
+
async invalidatePluginSyncMarker() {
|
|
97
|
+
try {
|
|
98
|
+
await unlink(this.pluginSyncMarkerPath());
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
if (error.code === "ENOENT")
|
|
102
|
+
return;
|
|
103
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
104
|
+
this.deps.logger.warn(`Could not invalidate plugin sync marker: ${message}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Record only a completed sync, keeping failures eligible for a later retry.
|
|
109
|
+
* @param version - Current Lisa version
|
|
110
|
+
* @param fullSync - Whether a version change required every plugin
|
|
111
|
+
* @param completed - Whether all required commands succeeded
|
|
112
|
+
*/
|
|
113
|
+
async recordPluginSyncOutcome(version, fullSync, completed) {
|
|
114
|
+
if (!completed) {
|
|
115
|
+
await this.invalidatePluginSyncMarker();
|
|
116
|
+
this.deps.logger.warn("Plugin registration incomplete; retry on the next apply");
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (fullSync) {
|
|
120
|
+
// Always the project's OWN marker (destDir): a full sync run from a
|
|
121
|
+
// linked worktree only reinstalled plugins for the worktree's
|
|
122
|
+
// projectPath, so recording it against the primary checkout would let
|
|
123
|
+
// the primary skip the forced reinstall it still needs after a
|
|
124
|
+
// version bump.
|
|
125
|
+
await this.writePluginSyncMarker(version);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Decide whether this apply needs a full plugin sync and which plugins to
|
|
130
|
+
* install.
|
|
131
|
+
*
|
|
132
|
+
* Linked worktrees inherit the primary checkout's sync state: the marker is
|
|
133
|
+
* gitignored (it records this machine's `~/.claude` plugin state), so a
|
|
134
|
+
* fresh agent worktree is always marker-less and would otherwise pay the
|
|
135
|
+
* full sync — marketplace pulls plus a Claude CLI spawn per plugin — on
|
|
136
|
+
* every ticket. When the primary checkout is already synced for this Lisa
|
|
137
|
+
* version, the worktree has nothing left to do: the marketplace cache is
|
|
138
|
+
* machine-global and per-worktree plugin registration is handled by the
|
|
139
|
+
* coding agent's own startup (Claude Code auto-installs the committed
|
|
140
|
+
* `enabledPlugins` for a new projectPath; Codex uses the project-local
|
|
141
|
+
* `.codex-plugin` pointer instead of Claude project-scope registrations).
|
|
142
|
+
* The #320 defense (refresh marketplace whenever installs happened) holds:
|
|
143
|
+
* the skip path performs no installs.
|
|
144
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
145
|
+
* @param plugins - Plugin identifiers from enabledPlugins
|
|
146
|
+
* @returns Sync plan: fullSync (version changed), plugins to install, the
|
|
147
|
+
* current Lisa version, and whether destDir is a linked worktree
|
|
148
|
+
*/
|
|
149
|
+
async computePluginSyncPlan(execAsync, plugins) {
|
|
150
|
+
const version = getPackageVersion();
|
|
151
|
+
const primaryRoot = await resolvePrimaryWorktreeRoot(this.config.destDir);
|
|
152
|
+
const isLinkedWorktree = primaryRoot !== null;
|
|
153
|
+
const readMarker = async (markerPath) => readFile(markerPath, "utf-8")
|
|
154
|
+
.then(content => content.trim())
|
|
155
|
+
.catch(() => null);
|
|
156
|
+
const ownMarker = await readMarker(this.pluginSyncMarkerPath());
|
|
157
|
+
const syncedVersion = ownMarker === version || primaryRoot === null
|
|
158
|
+
? ownMarker
|
|
159
|
+
: await readMarker(path.join(primaryRoot, ".claude", ".lisa-plugins-synced"));
|
|
160
|
+
const fullSync = syncedVersion !== version;
|
|
161
|
+
if (isLinkedWorktree && !fullSync) {
|
|
162
|
+
// Skip the `claude plugin list` probe too — registration for this
|
|
163
|
+
// worktree's projectPath is deferred to the coding agent's startup.
|
|
164
|
+
return { fullSync: false, toInstall: [], version, isLinkedWorktree };
|
|
165
|
+
}
|
|
166
|
+
const installed = fullSync
|
|
167
|
+
? null
|
|
168
|
+
: await this.readInstalledPluginIds(execAsync);
|
|
169
|
+
const toInstall = installed === null
|
|
170
|
+
? plugins
|
|
171
|
+
: plugins.filter(plugin => !installed.has(plugin));
|
|
172
|
+
return { fullSync, toInstall, version, isLinkedWorktree };
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Refresh the cached Lisa marketplace via the Claude CLI.
|
|
176
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
177
|
+
* @param announce - Whether to log the outcome (silent for the pre-install
|
|
178
|
+
* best-effort refresh)
|
|
179
|
+
* @returns Whether the refresh command succeeded
|
|
180
|
+
*/
|
|
181
|
+
async updateLisaMarketplace(execAsync, announce) {
|
|
182
|
+
const { logger } = this.deps;
|
|
183
|
+
try {
|
|
184
|
+
await execAsync("claude plugin marketplace update lisa", this.pluginExecOptions());
|
|
185
|
+
if (announce) {
|
|
186
|
+
logger.success("Updated marketplace: lisa");
|
|
187
|
+
}
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
if (announce) {
|
|
192
|
+
logger.warn(`Could not update marketplace: lisa (${error instanceof Error ? error.message : PLUGIN_COMMAND_FAILED})`);
|
|
193
|
+
}
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Install a single plugin at project scope via the Claude CLI.
|
|
199
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
200
|
+
* @param plugin - Plugin identifier (already validated)
|
|
201
|
+
* @returns Whether the install command succeeded
|
|
202
|
+
*/
|
|
203
|
+
async installPlugin(execAsync, plugin) {
|
|
204
|
+
const { logger } = this.deps;
|
|
205
|
+
try {
|
|
206
|
+
await execAsync(`claude plugin install ${plugin} --scope project`, this.pluginExecOptions());
|
|
207
|
+
logger.success(`Registered plugin: ${plugin}`);
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
catch (error) {
|
|
211
|
+
logger.warn(`Could not register plugin: ${plugin} (${error instanceof Error ? error.message : PLUGIN_COMMAND_FAILED})`);
|
|
212
|
+
return false;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=lisa-plugin-sync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-plugin-sync.js","sourceRoot":"","sources":["../../src/core/lisa-plugin-sync.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,qB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AAC,aAAa,CAC3B,SAA0B,EAC1B,MAAc;QAEd,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC;YACH,MAAM,SAAS,CACb,yBAAyB,MAAM,kBAAkB,EACjD,IAAI,CAAC,iBAAiB,EAAE,CACzB,CAAC;YACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,MAAM,EAAE,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,IAAI,CACT,8BAA8B,MAAM,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,GAAG,CAC3G,CAAC;YACF,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LisaPluginSync } from "./lisa-plugin-sync.js";
|
|
2
|
+
import type { PluginExecAsync } from "./lisa-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* Project-scoped Claude Code plugin registration.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class LisaPlugins extends LisaPluginSync {
|
|
7
|
+
/**
|
|
8
|
+
* Register plugins from merged settings.json with Claude Code at project scope
|
|
9
|
+
*/
|
|
10
|
+
protected registerPlugins(): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Distinguish a missing optional CLI from a failed or timed-out real probe.
|
|
13
|
+
* @param error - Probe failure
|
|
14
|
+
*/
|
|
15
|
+
protected reportPluginProbeFailure(error: unknown): void;
|
|
16
|
+
/**
|
|
17
|
+
* Install each plugin and refresh the Lisa marketplace cache.
|
|
18
|
+
*
|
|
19
|
+
* Version-gated (perf): `claude plugin marketplace update` is a network git
|
|
20
|
+
* pull of the Lisa repo and every `claude plugin install` spawns the Claude
|
|
21
|
+
* CLI (seconds each); re-running all of it on every apply made a single
|
|
22
|
+
* `bun add` cost minutes across the repeated apply passes. A full sync
|
|
23
|
+
* (marketplace refresh + install every plugin) still runs whenever the
|
|
24
|
+
* installed Lisa version differs from the `.claude/.lisa-plugins-synced`
|
|
25
|
+
* marker; between version changes only plugins missing for this project are
|
|
26
|
+
* installed, so the self-heal property (a removed plugin comes back on the
|
|
27
|
+
* next install) survives at the cost of one `claude plugin list` call.
|
|
28
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
29
|
+
* @param enabledPlugins - Plugin identifiers from enabledPlugins (e.g. "lisa@lisa")
|
|
30
|
+
*/
|
|
31
|
+
protected installPluginsAndUpdateMarketplace(execAsync: PluginExecAsync, enabledPlugins: readonly string[]): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Drop enabled `<name>@lisa` keys the Lisa marketplace cannot supply, with
|
|
34
|
+
* one warning each. A skip never counts against the sync, so a retired key
|
|
35
|
+
* such as `typescript@lisa` no longer fails every apply (#4645). An
|
|
36
|
+
* unreadable manifest skips nothing.
|
|
37
|
+
* @param enabledPlugins - Plugin identifiers from enabledPlugins
|
|
38
|
+
* @returns The identifiers worth attempting, in order
|
|
39
|
+
*/
|
|
40
|
+
protected withoutUnavailableLisaPlugins(enabledPlugins: readonly string[]): Promise<readonly string[]>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=lisa-plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-plugins.d.ts","sourceRoot":"","sources":["../../src/core/lisa-plugins.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;GAEG;AACH,8BAAsB,WAAY,SAAQ,cAAc;IACtD;;OAEG;cACa,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IA4EhD;;;OAGG;IACH,SAAS,CAAC,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAYxD;;;;;;;;;;;;;;OAcG;cACa,kCAAkC,CAChD,SAAS,EAAE,eAAe,EAC1B,cAAc,EAAE,SAAS,MAAM,EAAE,GAChC,OAAO,CAAC,IAAI,CAAC;IAmDhB;;;;;;;OAOG;cACa,6BAA6B,CAC3C,cAAc,EAAE,SAAS,MAAM,EAAE,GAChC,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;CAY9B"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-plugins.ts
|
|
3
|
+
* @description Project-scoped Claude Code plugin registration. One layer of the `Lisa` orchestrator; each layer
|
|
4
|
+
* extends the one below it so the apply pipeline reads as one class while no
|
|
5
|
+
* single module carries the whole pipeline.
|
|
6
|
+
* @module core
|
|
7
|
+
*/
|
|
8
|
+
import * as fse from "fs-extra";
|
|
9
|
+
import { readFile } from "node:fs/promises";
|
|
10
|
+
import * as path from "node:path";
|
|
11
|
+
import pc from "picocolors";
|
|
12
|
+
import { readMarketplaceCatalog } from "../utils/marketplace-manifest.js";
|
|
13
|
+
import { describeSkippedPluginKey, partitionByLisaMarketplace, } from "./plugin-marketplace-filter.js";
|
|
14
|
+
import { pruneDeadPluginRegistrations } from "./plugin-registration-prune.js";
|
|
15
|
+
import { harnessIncludesAgent } from "./config.js";
|
|
16
|
+
import { PLUGIN_LIST_MAX_CAPTURE_BYTES, PLUGIN_PROBE_TIMEOUT_MS, PLUGIN_PRUNE_TIMEOUT_MS, PLUGIN_REGISTRATION_TIMEOUT_MS, runPluginCommand, } from "./plugin-command.js";
|
|
17
|
+
import { LisaPluginSync } from "./lisa-plugin-sync.js";
|
|
18
|
+
import { PLUGIN_COMMAND_FAILED } from "./lisa-state.js";
|
|
19
|
+
/**
|
|
20
|
+
* Project-scoped Claude Code plugin registration.
|
|
21
|
+
*/
|
|
22
|
+
export class LisaPlugins extends LisaPluginSync {
|
|
23
|
+
/**
|
|
24
|
+
* Register plugins from merged settings.json with Claude Code at project scope
|
|
25
|
+
*/
|
|
26
|
+
async registerPlugins() {
|
|
27
|
+
if (this.config.dryRun ||
|
|
28
|
+
!harnessIncludesAgent(this.config.harness, "claude")) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const settingsPath = path.join(this.config.destDir, ".claude", "settings.json");
|
|
32
|
+
if (!(await fse.pathExists(settingsPath))) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const settings = await readFile(settingsPath, "utf-8")
|
|
36
|
+
.then(content => JSON.parse(content))
|
|
37
|
+
.catch(() => null);
|
|
38
|
+
if (!settings?.enabledPlugins) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const plugins = Object.entries(settings.enabledPlugins)
|
|
42
|
+
.filter(([, enabled]) => enabled === true)
|
|
43
|
+
.map(([plugin]) => plugin);
|
|
44
|
+
if (plugins.length === 0) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const operationDeadline = Date.now() + PLUGIN_REGISTRATION_TIMEOUT_MS;
|
|
48
|
+
const execAsync = async (command, options) => await runPluginCommand(command.split(" ").slice(1), {
|
|
49
|
+
cwd: this.config.destDir,
|
|
50
|
+
timeoutMs: Math.min(Number(options.timeout), operationDeadline - Date.now()),
|
|
51
|
+
...(typeof options.maxCaptureBytes === "number"
|
|
52
|
+
? { maxCaptureBytes: options.maxCaptureBytes }
|
|
53
|
+
: {}),
|
|
54
|
+
});
|
|
55
|
+
try {
|
|
56
|
+
await execAsync("claude --version", { timeout: PLUGIN_PROBE_TIMEOUT_MS });
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
this.reportPluginProbeFailure(error);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
await this.installPluginsAndUpdateMarketplace(execAsync, plugins);
|
|
63
|
+
// After installs, on its own budget, so a long backlog of dead
|
|
64
|
+
// registrations never starves this checkout's own registration (#4645).
|
|
65
|
+
const pruneDeadline = Date.now() + PLUGIN_PRUNE_TIMEOUT_MS;
|
|
66
|
+
await pruneDeadPluginRegistrations(this.config.destDir, {
|
|
67
|
+
runClaude: async (args, cwd) => await runPluginCommand(args, {
|
|
68
|
+
cwd,
|
|
69
|
+
timeoutMs: Math.min(PLUGIN_PROBE_TIMEOUT_MS, pruneDeadline - Date.now()),
|
|
70
|
+
maxCaptureBytes: PLUGIN_LIST_MAX_CAPTURE_BYTES,
|
|
71
|
+
}),
|
|
72
|
+
deadlineReached: () => Date.now() >= pruneDeadline,
|
|
73
|
+
logger: this.deps.logger,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Distinguish a missing optional CLI from a failed or timed-out real probe.
|
|
78
|
+
* @param error - Probe failure
|
|
79
|
+
*/
|
|
80
|
+
reportPluginProbeFailure(error) {
|
|
81
|
+
if (error.code === "ENOENT") {
|
|
82
|
+
this.deps.logger.info("Claude CLI not found, skipping plugin registration");
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this.deps.logger.warn(`Claude CLI probe failed; plugin registration will retry (${error instanceof Error ? error.message : PLUGIN_COMMAND_FAILED})`);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Install each plugin and refresh the Lisa marketplace cache.
|
|
89
|
+
*
|
|
90
|
+
* Version-gated (perf): `claude plugin marketplace update` is a network git
|
|
91
|
+
* pull of the Lisa repo and every `claude plugin install` spawns the Claude
|
|
92
|
+
* CLI (seconds each); re-running all of it on every apply made a single
|
|
93
|
+
* `bun add` cost minutes across the repeated apply passes. A full sync
|
|
94
|
+
* (marketplace refresh + install every plugin) still runs whenever the
|
|
95
|
+
* installed Lisa version differs from the `.claude/.lisa-plugins-synced`
|
|
96
|
+
* marker; between version changes only plugins missing for this project are
|
|
97
|
+
* installed, so the self-heal property (a removed plugin comes back on the
|
|
98
|
+
* next install) survives at the cost of one `claude plugin list` call.
|
|
99
|
+
* @param execAsync - Promisified exec function for running shell commands
|
|
100
|
+
* @param enabledPlugins - Plugin identifiers from enabledPlugins (e.g. "lisa@lisa")
|
|
101
|
+
*/
|
|
102
|
+
async installPluginsAndUpdateMarketplace(execAsync, enabledPlugins) {
|
|
103
|
+
const { logger } = this.deps;
|
|
104
|
+
const validPluginName = /^[\w@./-]+$/;
|
|
105
|
+
const plugins = await this.withoutUnavailableLisaPlugins(enabledPlugins);
|
|
106
|
+
const { fullSync, toInstall, version, isLinkedWorktree } = await this.computePluginSyncPlan(execAsync, plugins);
|
|
107
|
+
if (!fullSync && toInstall.length === 0) {
|
|
108
|
+
if (isLinkedWorktree) {
|
|
109
|
+
// Record the settled state on the worktree's own marker so repeat
|
|
110
|
+
// applies (and health's root-confined marker probe) do not have to
|
|
111
|
+
// re-derive it from the primary checkout.
|
|
112
|
+
await this.writePluginSyncMarker(version);
|
|
113
|
+
}
|
|
114
|
+
logger.info(pc.gray(`Plugins already in sync for Lisa ${version}; skipping`));
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
logger.info("Registering plugins with Claude Code (project scope)...");
|
|
118
|
+
const sync = { succeeded: true };
|
|
119
|
+
if (fullSync) {
|
|
120
|
+
// Best-effort cache refresh. Individual plugin installs below will still
|
|
121
|
+
// report whether the marketplace entry is available.
|
|
122
|
+
sync.succeeded = await this.updateLisaMarketplace(execAsync, false);
|
|
123
|
+
}
|
|
124
|
+
for (const plugin of toInstall) {
|
|
125
|
+
if (!validPluginName.test(plugin)) {
|
|
126
|
+
logger.warn(`Skipping invalid plugin name: ${plugin}`);
|
|
127
|
+
sync.succeeded = false;
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
const installed = await this.installPlugin(execAsync, plugin);
|
|
131
|
+
sync.succeeded = installed && sync.succeeded;
|
|
132
|
+
}
|
|
133
|
+
// Post-install refresh must run whenever installs happened: installing can
|
|
134
|
+
// register the marketplace for the first time, and without a refresh newly
|
|
135
|
+
// added skills are not discovered ("Unknown skill" in nightly CI — #320).
|
|
136
|
+
const refreshed = await this.updateLisaMarketplace(execAsync, true);
|
|
137
|
+
await this.recordPluginSyncOutcome(version, fullSync, sync.succeeded && refreshed);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Drop enabled `<name>@lisa` keys the Lisa marketplace cannot supply, with
|
|
141
|
+
* one warning each. A skip never counts against the sync, so a retired key
|
|
142
|
+
* such as `typescript@lisa` no longer fails every apply (#4645). An
|
|
143
|
+
* unreadable manifest skips nothing.
|
|
144
|
+
* @param enabledPlugins - Plugin identifiers from enabledPlugins
|
|
145
|
+
* @returns The identifiers worth attempting, in order
|
|
146
|
+
*/
|
|
147
|
+
async withoutUnavailableLisaPlugins(enabledPlugins) {
|
|
148
|
+
const { installable, skipped } = partitionByLisaMarketplace(enabledPlugins, await readMarketplaceCatalog(path.join(this.config.lisaDir, ".claude-plugin", "marketplace.json")));
|
|
149
|
+
for (const key of skipped) {
|
|
150
|
+
this.deps.logger.warn(describeSkippedPluginKey(key));
|
|
151
|
+
}
|
|
152
|
+
return installable;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=lisa-plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-plugins.js","sourceRoot":"","sources":["../../src/core/lisa-plugins.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EACL,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACv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