@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,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-agent-emit.ts
|
|
3
|
+
* @description Codex, Claude, Antigravity, and Sonar agent-surface emission. 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 { existsSync } from "node:fs";
|
|
9
|
+
import * as path from "node:path";
|
|
10
|
+
import pc from "picocolors";
|
|
11
|
+
import { installAgentsMd } from "../codex/agents-md-installer.js";
|
|
12
|
+
import { installCodexProjectOverlay } from "../codex/project-overlay.js";
|
|
13
|
+
import { installAgyPlugin } from "../agy/plugin-installer.js";
|
|
14
|
+
import { collectLisaMcpServers, installAgyMcpConfig, resolveAgyMcpConfigPath, } from "../agy/mcp-installer.js";
|
|
15
|
+
import { installSonarIntegrations } from "../sonar/sonar-installer.js";
|
|
16
|
+
import { installClaudeMd } from "../claude/claude-md-installer.js";
|
|
17
|
+
import { harnessIncludesAgent } from "./config.js";
|
|
18
|
+
import { LisaPlugins } from "./lisa-plugins.js";
|
|
19
|
+
import { HOST_OWNED_LABEL } from "./lisa-state.js";
|
|
20
|
+
/**
|
|
21
|
+
* Codex, Claude, Antigravity, and Sonar agent-surface emission.
|
|
22
|
+
*/
|
|
23
|
+
export class LisaAgentEmit extends LisaPlugins {
|
|
24
|
+
/**
|
|
25
|
+
* Emit Codex-targeted artifacts (agents, hooks, settings) when the host
|
|
26
|
+
* project's harness includes Codex (`codex` or `fleet`). No-op for `claude`
|
|
27
|
+
* (default).
|
|
28
|
+
*
|
|
29
|
+
* Lisa writes the complete Codex surface and a filtered repository
|
|
30
|
+
* marketplace into the host. No user-wide plugin activation participates.
|
|
31
|
+
* Ownership is tracked via `.codex/.lisa-managed.json` so updates remove
|
|
32
|
+
* stale stack artifacts without touching host customizations.
|
|
33
|
+
*/
|
|
34
|
+
async processCodexEmit() {
|
|
35
|
+
const { harness } = this.config;
|
|
36
|
+
if (!harnessIncludesAgent(harness, "codex")) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
40
|
+
this.deps.logger.info(pc.gray("Codex emit: skipped during postinstall-safe apply"));
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (this.config.dryRun) {
|
|
44
|
+
this.deps.logger.info(pc.gray("Codex emit: skipped (dry-run mode)"));
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const result = await installCodexProjectOverlay(this.config.lisaDir, this.config.destDir, this.detectedTypes);
|
|
48
|
+
const totalStale = result.staleAgentCount +
|
|
49
|
+
result.staleHookRuleCount +
|
|
50
|
+
result.staleSkillCount;
|
|
51
|
+
this.deps.logger.info(pc.cyan(`Codex emit: ${result.agentCount} agents, ${result.hookCount} repository enforcement fallback plus plugin-bundled hooks, ${result.modelVisibleSkillCount} native skills from ${result.marketplacePluginCount} project plugins, ${result.mcpServerCount} MCP servers, settings ${result.settingsCreated ? "created" : "merged"}${totalStale > 0
|
|
52
|
+
? ` (${result.staleAgentCount} stale agents, ${result.staleHookRuleCount} stale hook/rule files, ${result.staleSkillCount} stale skills removed)`
|
|
53
|
+
: ""}`));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Emit Claude-Code-targeted artifacts when the harness includes Claude.
|
|
57
|
+
*
|
|
58
|
+
* Claude's primary distribution is the GitHub marketplace; the per-project
|
|
59
|
+
* artifacts Lisa writes are the canonical `AGENTS.md` and a thin `CLAUDE.md`
|
|
60
|
+
* that `@AGENTS.md`-imports it (Claude Code doesn't read AGENTS.md natively).
|
|
61
|
+
* Both are create-only and host-owned from creation onward. Skipped in dry-run
|
|
62
|
+
* mode and on harness modes that don't include Claude.
|
|
63
|
+
*/
|
|
64
|
+
async processClaudeEmit() {
|
|
65
|
+
const { harness } = this.config;
|
|
66
|
+
if (!harnessIncludesAgent(harness, "claude")) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
70
|
+
this.deps.logger.info(pc.gray("Claude emit: skipped during postinstall-safe apply"));
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (this.config.dryRun) {
|
|
74
|
+
this.deps.logger.info(pc.gray("Claude emit: skipped (dry-run mode)"));
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
// Ensure the canonical AGENTS.md exists first — it is the import target of
|
|
78
|
+
// the CLAUDE.md pointer.
|
|
79
|
+
const agentsResult = await installAgentsMd(this.config.destDir);
|
|
80
|
+
const result = await installClaudeMd(this.config.destDir);
|
|
81
|
+
this.deps.logger.info(pc.cyan(`Claude emit: AGENTS.md ${agentsResult.created ? "created" : HOST_OWNED_LABEL}, CLAUDE.md ${result.created ? "created (pointer → AGENTS.md)" : HOST_OWNED_LABEL}`));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Per-agent stack variant directory names for the detected project types
|
|
85
|
+
* that have a built variant. Filters by on-disk existence so a detected type
|
|
86
|
+
* without a stack plugin (e.g. `npm-package`) is naturally skipped.
|
|
87
|
+
* @param pluginRoot - Absolute path to the `plugins/` directory.
|
|
88
|
+
* @param agent - Per-agent variant suffix (`agy` | `copilot` | `cursor`).
|
|
89
|
+
* @returns Variant directory names like `lisa-typescript-agy`.
|
|
90
|
+
*/
|
|
91
|
+
perAgentStackVariants(pluginRoot, agent) {
|
|
92
|
+
return this.detectedTypes
|
|
93
|
+
.map(type => `lisa-${type}-${agent}`)
|
|
94
|
+
.filter(name => existsSync(path.join(pluginRoot, name)));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Emit Antigravity-targeted artifacts when the harness includes agy.
|
|
98
|
+
*
|
|
99
|
+
* Runtime probes of agy 1.0.3 (ticket-1054) established how agy consumes each
|
|
100
|
+
* surface, so each is delivered the way agy actually reads it:
|
|
101
|
+
* 1. `agy plugin install` Lisa's variant from `plugins/lisa-agy/` (when agy
|
|
102
|
+
* is on PATH). This installs the variant into
|
|
103
|
+
* `~/.gemini/config/plugins/<variant>/`.
|
|
104
|
+
* 2. Hooks → PLUGIN-BUNDLED. agy loads a plugin's hooks from a `hooks.json`
|
|
105
|
+
* at the installed plugin ROOT, so the hooks config + agy-protocol script
|
|
106
|
+
* are emitted into the variant at BUILD time by
|
|
107
|
+
* generate-agy-plugin-artifacts.mjs and ride along with the plugin
|
|
108
|
+
* install above — nothing is written here. Only `block-no-verify`
|
|
109
|
+
* (PreToolUse) maps; SessionStart hooks aren't supported by agy.
|
|
110
|
+
* 3. MCP → USER-GLOBAL. agy ignores plugin-bundled MCP and only auto-loads
|
|
111
|
+
* `~/.gemini/config/mcp_config.json`, so `installAgyMcpConfig` writes
|
|
112
|
+
* there (servers collected from the built plugin `.mcp.json` files via
|
|
113
|
+
* `collectLisaMcpServers`, translated to agy's `serverUrl` shape,
|
|
114
|
+
* tagged-merge preserving host entries). Cross-project caveat: the most
|
|
115
|
+
* recent `lisa apply` carrying MCP wins globally.
|
|
116
|
+
* 4. Instruction file → the canonical create-only `AGENTS.md` (the same file
|
|
117
|
+
* every other agent reads), plus a bounded project-learnings bridge
|
|
118
|
+
* reconciled by `processInstructionFilesMigration`. Lisa does not bake
|
|
119
|
+
* eager rule bodies into AGENTS.md: a giant generated file is not worth
|
|
120
|
+
* carrying just to polyfill agy's headless (`-p`) mode, where SessionStart
|
|
121
|
+
* hooks don't fire. In interactive mode it still receives Lisa's plugin
|
|
122
|
+
* (skills/agents/MCP) above.
|
|
123
|
+
*/
|
|
124
|
+
async processAgyEmit() {
|
|
125
|
+
const { harness } = this.config;
|
|
126
|
+
if (!harnessIncludesAgent(harness, "agy")) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
130
|
+
this.deps.logger.info(pc.gray("agy emit: skipped during postinstall-safe apply"));
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (this.config.dryRun) {
|
|
134
|
+
this.deps.logger.info(pc.gray("agy emit: skipped (dry-run mode)"));
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const pluginRoot = path.join(this.config.lisaDir, "plugins");
|
|
138
|
+
// Install the base variant plus the matching variant for each detected
|
|
139
|
+
// stack so agy reaches parity with Claude/Codex on stack-specific plugins.
|
|
140
|
+
const variantNames = [
|
|
141
|
+
"lisa-agy",
|
|
142
|
+
...this.perAgentStackVariants(pluginRoot, "agy"),
|
|
143
|
+
];
|
|
144
|
+
const pluginResults = [];
|
|
145
|
+
for (const variant of variantNames) {
|
|
146
|
+
pluginResults.push(await installAgyPlugin(pluginRoot, variant));
|
|
147
|
+
}
|
|
148
|
+
// MCP: agy ignores plugin-bundled MCP AND only auto-loads the USER-GLOBAL
|
|
149
|
+
// config (~/.gemini/config/mcp_config.json) — the project-scope
|
|
150
|
+
// `.agents/mcp_config.json` is never read by the agy CLI (verified-by-run,
|
|
151
|
+
// ticket-1054). So collect Lisa's servers from the built plugin .mcp.json
|
|
152
|
+
// files (base + detected stacks) and install them into the user-scope
|
|
153
|
+
// aggregate (translated to agy's serverUrl shape, tagged-merge preserving
|
|
154
|
+
// host entries). Caveat: this is shared across projects — the most recent
|
|
155
|
+
// `lisa apply` carrying MCP servers wins globally; host-authored entries are
|
|
156
|
+
// preserved by the _lisaManaged tagged-merge. Skip when no stack ships MCP.
|
|
157
|
+
const lisaMcpServers = collectLisaMcpServers(pluginRoot, this.detectedTypes);
|
|
158
|
+
// Always call installAgyMcpConfig — even when lisaMcpServers is empty —
|
|
159
|
+
// so the tagged-merge logic strips any previously-written _lisaManaged
|
|
160
|
+
// entries. Skipping on empty would leave stale managed entries behind
|
|
161
|
+
// from a previous `lisa apply` for a project that had MCP servers.
|
|
162
|
+
const mcpResult = await installAgyMcpConfig(lisaMcpServers, resolveAgyMcpConfigPath({ scope: "user" }));
|
|
163
|
+
const mcpServerCount = mcpResult.lisaEntryCount;
|
|
164
|
+
// Hooks: delivered as a plugin-bundled root hooks.json inside the installed
|
|
165
|
+
// agy variant (emitted at build time by generate-agy-plugin-artifacts.mjs,
|
|
166
|
+
// installed via `agy plugin install` above) — NOT written here at apply time.
|
|
167
|
+
// Instruction file: the canonical, create-only AGENTS.md. The bounded
|
|
168
|
+
// project-learnings bridge is reconciled after all emit paths run.
|
|
169
|
+
const agentsMdResult = await installAgentsMd(this.config.destDir);
|
|
170
|
+
const attempted = pluginResults.some(r => r.attempted);
|
|
171
|
+
const installedCount = pluginResults.filter(r => r.installed).length;
|
|
172
|
+
const pluginMessage = attempted
|
|
173
|
+
? `${installedCount}/${variantNames.length} variants installed`
|
|
174
|
+
: "skipped (agy not on PATH)";
|
|
175
|
+
// Only mention MCP when servers were actually written.
|
|
176
|
+
const mcpMessage = mcpServerCount > 0
|
|
177
|
+
? `, ${mcpServerCount} MCP server(s) → ~/.gemini/config/mcp_config.json`
|
|
178
|
+
: "";
|
|
179
|
+
this.deps.logger.info(pc.cyan(`agy emit: ${pluginMessage}, AGENTS.md ${agentsMdResult.created ? "created" : HOST_OWNED_LABEL}${mcpMessage}`));
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Wire the official SonarQube MCP into each harness agent via the vendor's
|
|
183
|
+
* `sonar integrate <agent>`.
|
|
184
|
+
*
|
|
185
|
+
* Hard-gated inside {@link installSonarIntegrations}: a no-op unless the project
|
|
186
|
+
* opted in (`verification.sonar.enabled`) AND the `sonar` CLI is on PATH, so it
|
|
187
|
+
* never touches a project that only wants the CI SonarCloud gate. Kiro and
|
|
188
|
+
* Gemini are never wired — they are not Lisa-supported agents. Only the
|
|
189
|
+
* apply-time emit agents with a vendor integrate path are wired here (claude,
|
|
190
|
+
* codex, copilot, antigravity). Cursor (consumed natively, no apply-time emit)
|
|
191
|
+
* and OpenCode (no vendor integrate path) are wired by `/lisa:setup:sonar`.
|
|
192
|
+
*/
|
|
193
|
+
async processSonarIntegration() {
|
|
194
|
+
const { harness } = this.config;
|
|
195
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
196
|
+
this.deps.logger.info(pc.gray("Sonar integrate: skipped during postinstall-safe apply"));
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
if (this.config.dryRun) {
|
|
200
|
+
this.deps.logger.info(pc.gray("Sonar integrate: skipped (dry-run mode)"));
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
// Map Lisa harness emit agents to the vendor's integrate agent names.
|
|
204
|
+
const candidates = [
|
|
205
|
+
[harnessIncludesAgent(harness, "claude"), "claude"],
|
|
206
|
+
[harnessIncludesAgent(harness, "codex"), "codex"],
|
|
207
|
+
[harnessIncludesAgent(harness, "copilot"), "copilot"],
|
|
208
|
+
[harnessIncludesAgent(harness, "agy"), "antigravity"],
|
|
209
|
+
];
|
|
210
|
+
const vendorAgents = candidates
|
|
211
|
+
.filter(([included]) => included)
|
|
212
|
+
.map(([, name]) => name);
|
|
213
|
+
const result = await installSonarIntegrations(this.config.destDir, vendorAgents);
|
|
214
|
+
if (!result.enabled) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const failure = result.failed.length > 0 ? ` (failed: ${result.failed.join(", ")})` : "";
|
|
218
|
+
const message = result.attempted
|
|
219
|
+
? `${result.integrated.length}/${vendorAgents.length} agent(s) wired${failure}`
|
|
220
|
+
: "skipped (sonar CLI not on PATH)";
|
|
221
|
+
this.deps.logger.info(pc.cyan(`Sonar integrate: ${message}`));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=lisa-agent-emit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-agent-emit.js","sourceRoot":"","sources":["../../src/core/lisa-agent-emit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;GAEG;AACH,MAAM,OAAgB,aAAc,SAAQ,WAAW;IACrD;;;;;;;;;OASG;IACO,KAAK,CAAC,gBAAgB;QAC9B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;YAC5C,OAAO;QACT,CAAC;QACD,IAAI,IAAI,CAAC,oCAAoC,EAAE,EAAE,CAAC;YAChD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,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AAC,oBAAoB,OAAO,EAAE,CAAC,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { LisaTemplates } from "./lisa-templates.js";
|
|
2
|
+
/**
|
|
3
|
+
* Manifest-driven deletions, gated by ownership and announced to the operator.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class LisaDeletions extends LisaTemplates {
|
|
6
|
+
/**
|
|
7
|
+
* Pre-compute the set of paths marked for deletion across "all" and every
|
|
8
|
+
* detected project type. This runs before strategy processing so the copy
|
|
9
|
+
* strategies can skip creating files that are about to be deleted anyway.
|
|
10
|
+
*
|
|
11
|
+
* Motivating case: CDK inherits typescript/create-only, which ships
|
|
12
|
+
* `jest.thresholds.json`. CDK's own `deletions.json` then removes it.
|
|
13
|
+
* Without this gate, Lisa would create it and delete it in the same apply,
|
|
14
|
+
* which causes ENOENT errors for any concurrent file-watcher/linter that
|
|
15
|
+
* observed the briefly-existing file.
|
|
16
|
+
*
|
|
17
|
+
* The `keep` list in a deletions.json (e.g., expo keeps
|
|
18
|
+
* `zap-baseline-expo.yml`) is honored — paths in `keep` are not treated as
|
|
19
|
+
* pending-deletions, so they will still be created by upstream strategies.
|
|
20
|
+
* @returns Promise that resolves once pending deletions have been collected
|
|
21
|
+
*/
|
|
22
|
+
protected loadPendingDeletions(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Read the set of paths a single type's deletions.json will delete,
|
|
25
|
+
* filtered by the type's `keep` list. Returns an empty array when the file
|
|
26
|
+
* is missing or malformed — a bad file cannot block strategy processing;
|
|
27
|
+
* any validation errors are surfaced later by processDeletions itself.
|
|
28
|
+
* @param type - Project type (e.g., "all", "cdk", "typescript")
|
|
29
|
+
* @returns Array of relative paths marked for deletion
|
|
30
|
+
*/
|
|
31
|
+
protected readPendingDeletionsForType(type: string): Promise<readonly string[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Process deletions from deletions.json files
|
|
34
|
+
*/
|
|
35
|
+
protected processDeletions(): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Process a single deletions.json file
|
|
38
|
+
* @param deletionsPath - Path to the deletions.json file
|
|
39
|
+
*/
|
|
40
|
+
protected processDeletionsFile(deletionsPath: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Process a single deletion path
|
|
43
|
+
* @param relativePath - Relative path to delete
|
|
44
|
+
* @param forcedReason - Why this removal overrides the workflow ownership gate, when it does
|
|
45
|
+
* @param shipped - Digests of every version Lisa shipped, when the manifest retires this path only while unmodified
|
|
46
|
+
*/
|
|
47
|
+
protected processSingleDeletion(relativePath: string, forcedReason?: string, shipped?: ReadonlySet<string> | null): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Apply the ownership proof a deletion needs, then delete.
|
|
50
|
+
*
|
|
51
|
+
* A path the manifest retires only while unmodified is proved by its bytes
|
|
52
|
+
* (`mayRetireUnmodified`); every other path keeps the workflow ownership
|
|
53
|
+
* gate. A `force` reason outranks both, as it always has.
|
|
54
|
+
* @param targetPath - Absolute path to remove
|
|
55
|
+
* @param relativePath - Repo-relative path, as the manifest spelled it
|
|
56
|
+
* @param forcedReason - Why this removal overrides the ownership gate, when it does
|
|
57
|
+
* @param shipped - Digests of every version Lisa shipped, when retired only while unmodified
|
|
58
|
+
*/
|
|
59
|
+
protected deleteIfOwned(targetPath: string, relativePath: string, forcedReason: string | undefined, shipped: ReadonlySet<string> | null): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Decide whether a path the manifest retires only while unmodified may go.
|
|
62
|
+
*
|
|
63
|
+
* The proof is the file's own bytes: a copy equal to a version Lisa shipped
|
|
64
|
+
* holds nothing of the consumer's, whatever ownership header it carries —
|
|
65
|
+
* see `core/retire-unmodified`. That proof stands in for the workflow
|
|
66
|
+
* ownership gate, which would otherwise refuse every create-only seed. It
|
|
67
|
+
* does not stand in for "nothing calls it", so a path the consumer's own
|
|
68
|
+
* scripts or workflows still name is kept too.
|
|
69
|
+
*
|
|
70
|
+
* Every refusal is recorded as a notice, because a retired file left in
|
|
71
|
+
* place is the consumer's to remove and they can only do that if told.
|
|
72
|
+
* @param targetPath - Absolute path of the file on disk
|
|
73
|
+
* @param relativePath - Repo-relative path the manifest named
|
|
74
|
+
* @param shipped - Digests of every version Lisa shipped at this path
|
|
75
|
+
* @returns Whether the deletion may proceed
|
|
76
|
+
*/
|
|
77
|
+
protected mayRetireUnmodified(targetPath: string, relativePath: string, shipped: ReadonlySet<string>): Promise<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Remove a path every guard has cleared, and say so.
|
|
80
|
+
*
|
|
81
|
+
* The announcement is not incidental to the removal — under
|
|
82
|
+
* CodySwannGT/lisa#3656 it is half the fix, so it is emitted on the same
|
|
83
|
+
* statement path that does the deleting and cannot be skipped while the
|
|
84
|
+
* removal still happens.
|
|
85
|
+
* @param targetPath - Absolute path to remove
|
|
86
|
+
* @param relativePath - Repo-relative path, as the manifest spelled it
|
|
87
|
+
* @param forcedReason - Why this removal overrode the ownership gate, when it did
|
|
88
|
+
*/
|
|
89
|
+
protected performDeletion(targetPath: string, relativePath: string, forcedReason: string | undefined): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Decide whether a `.github/workflows/` deletion target is Lisa's to remove.
|
|
92
|
+
*
|
|
93
|
+
* A deletions manifest names paths, never bytes, so on its own it cannot tell
|
|
94
|
+
* a retired Lisa workflow from an unrelated file a consumer authored at the
|
|
95
|
+
* same path. The file's own ownership header can, and every workflow Lisa
|
|
96
|
+
* ships carries one — see `core/workflow-deletion-ownership` for why that
|
|
97
|
+
* header is the signal and the hash ledger is not.
|
|
98
|
+
*
|
|
99
|
+
* Unreadable is treated as unattributable rather than as an error: a
|
|
100
|
+
* directory, a permissions failure, or bytes that are not text all mean Lisa
|
|
101
|
+
* has no proof, and the safe response to no proof is to leave it alone.
|
|
102
|
+
*
|
|
103
|
+
* A manifest may override the gate per path by giving a reason in its
|
|
104
|
+
* `force` map. That exists because two workflow removals already shipped on
|
|
105
|
+
* owner rulings against files that were actively harmful (#3590, #3599), and
|
|
106
|
+
* those have to reach an edited copy too. The override does not buy silence:
|
|
107
|
+
* a forced removal is announced with its reason attached, which is more than
|
|
108
|
+
* the unforced path used to manage.
|
|
109
|
+
* @param targetPath - Absolute path of the file on disk
|
|
110
|
+
* @param relativePath - Repo-relative path the manifest named
|
|
111
|
+
* @param forcedReason - Why this removal overrides the gate, when it does
|
|
112
|
+
* @returns Whether the deletion may proceed
|
|
113
|
+
*/
|
|
114
|
+
protected mayDeleteWorkflow(targetPath: string, relativePath: string, forcedReason: string | undefined): Promise<boolean>;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=lisa-deletions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-deletions.d.ts","sourceRoot":"","sources":["../../src/core/lisa-deletions.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,8BAAsB,aAAc,SAAQ,aAAa;IACvD;;;;;;;;;;;;;;;OAeG;cACa,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAWrD;;;;;;;OAOG;cACa,2BAA2B,CACzC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;IAuB7B;;OAEG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBjD;;;OAGG;cACa,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAsD1E;;;;;OAKG;cACa,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,GAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAW,GACzC,OAAO,CAAC,IAAI,CAAC;IAyDhB;;;;;;;;;;OAUG;cACa,aAAa,CAC3B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,Y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