@codyswann/lisa 7.1.5 → 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 -30435
- 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
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import * as path from "node:path";
|
|
5
|
+
import { text } from "node:stream/consumers";
|
|
6
|
+
import { readEnv } from "../utils/process-environment.js";
|
|
5
7
|
/**
|
|
6
8
|
* Detect a locally installed Chromium-family browser without launching it.
|
|
7
9
|
* @returns True when a supported browser path exists
|
|
8
10
|
*/
|
|
9
11
|
export const isChromeAvailable = () => {
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const programFiles = process.env.PROGRAMFILES;
|
|
14
|
-
// eslint-disable-next-line no-restricted-syntax -- Windows x86 installation root discovery
|
|
15
|
-
const programFilesX86 = process.env["PROGRAMFILES(X86)"];
|
|
12
|
+
const configured = readEnv("CHROME_PATH");
|
|
13
|
+
const programFiles = readEnv("PROGRAMFILES");
|
|
14
|
+
const programFilesX86 = readEnv("PROGRAMFILES(X86)");
|
|
16
15
|
const candidates = [
|
|
17
16
|
configured,
|
|
18
17
|
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
|
|
@@ -39,39 +38,53 @@ export const isChromeAvailable = () => {
|
|
|
39
38
|
*/
|
|
40
39
|
export const runKaneCommand = async (executable, args, options) => await new Promise(resolve => {
|
|
41
40
|
// Kane is an explicitly configured user-installed CLI.
|
|
42
|
-
// eslint-disable-next-line sonarjs/no-os-command-from-path -- fixed executable and argv
|
|
43
41
|
const child = spawn(executable, [...args], {
|
|
44
42
|
cwd: options.cwd,
|
|
45
43
|
env: options.env,
|
|
46
44
|
stdio: ["ignore", "pipe", "pipe"],
|
|
47
45
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
child.on("error", error => {
|
|
62
|
-
stderr += `${stderr.length === 0 ? "" : "\n"}${error.message}`;
|
|
63
|
-
});
|
|
64
|
-
const timeout = setTimeout(() => {
|
|
65
|
-
timedOut = true;
|
|
66
|
-
child.kill("SIGKILL");
|
|
67
|
-
}, options.timeoutMs);
|
|
68
|
-
child.on("close", code => {
|
|
69
|
-
clearTimeout(timeout);
|
|
70
|
-
resolve({
|
|
71
|
-
exitCode: timedOut ? 3 : (code ?? 2),
|
|
72
|
-
stdout,
|
|
73
|
-
stderr,
|
|
46
|
+
// Each piece of the result is a promise the child's own events settle, so
|
|
47
|
+
// nothing accumulates in mutable state between the events.
|
|
48
|
+
const stdout = text(child.stdout);
|
|
49
|
+
const stderr = text(child.stderr);
|
|
50
|
+
const failure = new Promise(settle => child.on("error", error => settle(error.message)));
|
|
51
|
+
const timedOut = new Promise(settle => {
|
|
52
|
+
const timeout = setTimeout(() => {
|
|
53
|
+
settle(true);
|
|
54
|
+
child.kill("SIGKILL");
|
|
55
|
+
}, options.timeoutMs);
|
|
56
|
+
child.once("close", () => {
|
|
57
|
+
clearTimeout(timeout);
|
|
58
|
+
settle(false);
|
|
74
59
|
});
|
|
75
60
|
});
|
|
61
|
+
child.once("close", code => {
|
|
62
|
+
resolve(settleKaneRun(code, stdout, stderr, failure, timedOut));
|
|
63
|
+
});
|
|
76
64
|
});
|
|
65
|
+
/**
|
|
66
|
+
* Assemble the result once the child has closed.
|
|
67
|
+
* @param code - Exit code the child closed with, or null when signalled
|
|
68
|
+
* @param stdout - The child's whole standard output
|
|
69
|
+
* @param stderr - The child's whole standard error
|
|
70
|
+
* @param failure - The spawn or process error's message, if one was emitted
|
|
71
|
+
* @param timedOut - Whether the deadline killed the child
|
|
72
|
+
* @returns Captured exit code and streams; a process error is appended to
|
|
73
|
+
* standard error on its own line
|
|
74
|
+
*/
|
|
75
|
+
async function settleKaneRun(code, stdout, stderr, failure, timedOut) {
|
|
76
|
+
const [out, err, message, killed] = await Promise.all([
|
|
77
|
+
stdout,
|
|
78
|
+
stderr,
|
|
79
|
+
// An error, when there is one, is emitted before close.
|
|
80
|
+
Promise.race([failure, Promise.resolve("")]),
|
|
81
|
+
timedOut,
|
|
82
|
+
]);
|
|
83
|
+
const separator = err.length === 0 || message.length === 0 ? "" : "\n";
|
|
84
|
+
return {
|
|
85
|
+
exitCode: killed ? 3 : (code ?? 2),
|
|
86
|
+
stdout: out,
|
|
87
|
+
stderr: `${err}${separator}${message}`,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
77
90
|
//# sourceMappingURL=kane-cli-process.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kane-cli-process.js","sourceRoot":"","sources":["../../src/core/kane-cli-process.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"kane-cli-process.js","sourceRoot":"","sources":["../../src/core/kane-cli-process.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAA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AAwD;QACxD,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5C,QAAQ;KACT,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACvE,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC;QAClC,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GAAG,GAAG,GAAG,SAAS,GAAG,OAAO,EAAE;KACvC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kane-cli.d.ts","sourceRoot":"","sources":["../../src/core/kane-cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kane-cli.d.ts","sourceRoot":"","sources":["../../src/core/kane-cli.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,uBAAuB,EAEvB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EACV,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAE9C,wDAAwD;AACxD,KAAK,iBAAiB,GAAG,iBAAiB,GAAG;IAC3C,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,mBAAmB,EAAE,IAAI,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,OAAO,sBAAsB,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CASxC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GACxD,OAAO,CAAC,MAAM,IAAI,iBAAiB,CA8BrC;AA4DD;;;;;GAKG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,cAAc,EACvB,MAAM,GAAE,iBAAkC,GACzC,OAAO,CAAC,aAAa,CAAC,CAGxB;AAqGD;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,MAAM,GAAE,iBAAkC,EAC1C,eAAe,GAAE,uBAA2C,GAC3D,OAAO,CAAC,aAAa,CAAC,CAmDxB"}
|
package/dist/core/kane-cli.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import * as path from "node:path";
|
|
5
|
+
import { currentEnvironment } from "../utils/process-environment.js";
|
|
5
6
|
import { readProjectConfig, validateProjectConfig, } from "./project-config.js";
|
|
6
7
|
import { parseKaneResult } from "./kane-cli-parser.js";
|
|
7
8
|
import { isChromeAvailable, runKaneCommand } from "./kane-cli-process.js";
|
|
@@ -78,8 +79,7 @@ function buildRunArguments(request, config) {
|
|
|
78
79
|
*/
|
|
79
80
|
async function executeKaneRun(request, config, runner) {
|
|
80
81
|
const timeoutSeconds = config?.timeoutSeconds ?? 120;
|
|
81
|
-
|
|
82
|
-
const env = { ...process.env, KANE_CLI_USER_AGENT: "lisa" };
|
|
82
|
+
const env = { ...currentEnvironment(), KANE_CLI_USER_AGENT: "lisa" };
|
|
83
83
|
assertKaneRunAllowed(config, request);
|
|
84
84
|
if (request.objective.trim().length === 0) {
|
|
85
85
|
throw new Error("Kane CLI objective must not be empty");
|
|
@@ -211,8 +211,7 @@ export async function probeKaneReadiness(projectRoot, runner = runKaneCommand, c
|
|
|
211
211
|
detail: "Kane CLI requires Google Chrome or Chromium; install it or set CHROME_PATH",
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
|
|
215
|
-
const env = { ...process.env, KANE_CLI_USER_AGENT: "lisa-doctor" };
|
|
214
|
+
const env = { ...currentEnvironment(), KANE_CLI_USER_AGENT: "lisa-doctor" };
|
|
216
215
|
const options = { cwd: projectRoot, timeoutMs: 15_000, env };
|
|
217
216
|
const version = await runner("kane-cli", ["--version"], options);
|
|
218
217
|
const observedVersion = /\b\d+\.\d+\.\d+\b/u.exec(version.stdout)?.[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kane-cli.js","sourceRoot":"","sources":["../../src/core/kane-cli.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAU1E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAWvD,iEAAiE;AACjE,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAU9C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,WAAmB;IAEnB,MAAM,SAAS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AC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC;IACpE,IAAI,KAAK,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,EAAE,CAAC;IACnE,CAAC;IACD,MAAM,aAAa,GAAG,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO;YACL,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,+DAA+D,aAAa,EAAE;SACvF,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/D,OAAO,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,SAAmB,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { installSkills as installOpencodeSkills } from "../opencode/skills-installer.js";
|
|
2
|
+
import { installHooks as installOpencodeHooks } from "../opencode/hooks-installer.js";
|
|
3
|
+
import { discoverAndInstallAgents as installOpencodeAgents } from "../opencode/agent-installer.js";
|
|
4
|
+
import { discoverAndInstallCommands as installOpencodeCommands } from "../opencode/command-installer.js";
|
|
5
|
+
import { LisaAgentEmit } from "./lisa-agent-emit.js";
|
|
6
|
+
/**
|
|
7
|
+
* Copilot, Devin, and OpenCode agent-surface emission.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class LisaAgentEmitExtra extends LisaAgentEmit {
|
|
10
|
+
/**
|
|
11
|
+
* Emit GitHub-Copilot-targeted artifacts when the harness includes copilot.
|
|
12
|
+
*
|
|
13
|
+
* Three per-project actions:
|
|
14
|
+
* 1. `copilot plugin install lisa@CodySwannGT/lisa` (with local-path
|
|
15
|
+
* fallback when the marketplace path fails — currently does, pending
|
|
16
|
+
* the marketplace.json pluginRoot fix gated on Wave 2 spec step 8).
|
|
17
|
+
* 2. Ensure the canonical `AGENTS.md` exists (Copilot reads it natively).
|
|
18
|
+
* 3. Create-only write of `.github/copilot-instructions.md`.
|
|
19
|
+
*/
|
|
20
|
+
protected processCopilotEmit(): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Emit Devin-CLI-targeted artifacts when the harness includes devin.
|
|
23
|
+
*
|
|
24
|
+
* Three per-project actions (CodySwannGT/lisa#4427):
|
|
25
|
+
* 1. `devin plugins install --local -y` Lisa's `lisa-devin` variant plus the
|
|
26
|
+
* matching stack variants, when `devin` is on PATH.
|
|
27
|
+
* 2. Reconcile `.devin/hooks.v1.json` with the repository enforcement
|
|
28
|
+
* fallback, which keeps the guards firing when the plugin is missing,
|
|
29
|
+
* disabled, or untrusted — and which is written whether or not `devin`
|
|
30
|
+
* is on this machine, because the clone travels to machines that have it.
|
|
31
|
+
* 3. Ensure the canonical `AGENTS.md` exists (Devin reads it natively).
|
|
32
|
+
*
|
|
33
|
+
* Documented gaps: Devin CLI has no native scheduler, so Lisa's recurring
|
|
34
|
+
* loops are triggered manually or through `scheduler: "github-actions"`; and
|
|
35
|
+
* Sonar has no Devin integrate path, so `processSonarIntegration` skips it.
|
|
36
|
+
*/
|
|
37
|
+
protected processDevinEmit(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Install the four manifest-tracked OpenCode artifact sets and persist the
|
|
40
|
+
* ownership manifest.
|
|
41
|
+
*
|
|
42
|
+
* All three vendoring installers (skills, agents, commands) are gated on
|
|
43
|
+
* `detectedTypes`, matching the hooks installer below and the Codex overlay.
|
|
44
|
+
* OpenCode is the surface where Lisa copies its catalogue verbatim into the
|
|
45
|
+
* host repo, so an ungated emit would put Expo/React skills and Phaser
|
|
46
|
+
* game-design agents in front of a model working an unrelated stack (#3437).
|
|
47
|
+
*
|
|
48
|
+
* Each installer scopes its own stale cleanup to its `lisa-` namespace, so
|
|
49
|
+
* handing the full previous manifest to all four is safe.
|
|
50
|
+
* @returns The four install results, for logging and stale accounting.
|
|
51
|
+
*/
|
|
52
|
+
protected installOpencodeManagedArtifacts(): Promise<{
|
|
53
|
+
skillsResult: Awaited<ReturnType<typeof installOpencodeSkills>>;
|
|
54
|
+
hooksResult: Awaited<ReturnType<typeof installOpencodeHooks>>;
|
|
55
|
+
opencodeAgentsResult: Awaited<ReturnType<typeof installOpencodeAgents>>;
|
|
56
|
+
commandsResult: Awaited<ReturnType<typeof installOpencodeCommands>>;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Emit OpenCode-targeted artifacts when the harness includes OpenCode.
|
|
60
|
+
*
|
|
61
|
+
* OpenCode reads the open Agent Skills format, native agents
|
|
62
|
+
* (`.opencode/agents/`), native commands (`.opencode/commands/`), and
|
|
63
|
+
* `AGENTS.md` natively (opencode.ai/docs/skills, /docs/agents, /docs/commands,
|
|
64
|
+
* /docs/rules), so Lisa needs no transformed plugin variant. It writes:
|
|
65
|
+
* - skills (bundled + command-derived) into `.opencode/skills/lisa/`,
|
|
66
|
+
* - agents (Markdown, `lisa-` prefixed) into `.opencode/agents/`,
|
|
67
|
+
* - commands (Markdown, `lisa-` prefixed) into `.opencode/commands/`,
|
|
68
|
+
* and ensures the canonical `AGENTS.md` exists. Ownership of skills/agents/
|
|
69
|
+
* commands is tracked via `.opencode/.lisa-managed.json` so updates clean up
|
|
70
|
+
* stale artifacts without touching host customizations. Skipped in dry-run
|
|
71
|
+
* mode and on harness modes that don't include OpenCode.
|
|
72
|
+
*/
|
|
73
|
+
protected processOpencodeEmit(): Promise<void>;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=lisa-agent-emit-extra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-agent-emit-extra.d.ts","sourceRoot":"","sources":["../../src/core/lisa-agent-emit-extra.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAMtF,OAAO,EAAE,wBAAwB,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACnG,OAAO,EAAE,0BAA0B,IAAI,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEzG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD;;GAEG;AACH,8BAAsB,kBAAmB,SAAQ,aAAa;IAC5D;;;;;;;;;OASG;cACa,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoDnD;;;;;;;;;;;;;;;OAeG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAuDjD;;;;;;;;;;;;;OAaG;cACa,+BAA+B,IAAI,OAAO,CAAC;QACzD,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;QAChE,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;QAC9D,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;QACxE,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;KACrE,CAAC;IA6CF;;;;;;;;;;;;;;OAcG;cACa,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;CAqErD"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file lisa-agent-emit-extra.ts
|
|
3
|
+
* @description Copilot, Devin, and OpenCode 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 * as path from "node:path";
|
|
9
|
+
import pc from "picocolors";
|
|
10
|
+
import { installAgentsMd } from "../codex/agents-md-installer.js";
|
|
11
|
+
import { collectLisaMcpServers } from "../agy/mcp-installer.js";
|
|
12
|
+
import { installCopilotPlugin } from "../copilot/plugin-installer.js";
|
|
13
|
+
import { detectDevin, installDevinPlugin } from "../devin/plugin-installer.js";
|
|
14
|
+
import { installDevinEnforcementFallback } from "../devin/enforcement-fallback-installer.js";
|
|
15
|
+
import { installCopilotInstructions } from "../copilot/copilot-instructions-installer.js";
|
|
16
|
+
import { readManagedManifest as readOpencodeManifest, writeManagedManifest as writeOpencodeManifest, } from "../opencode/manifest.js";
|
|
17
|
+
import { installSkills as installOpencodeSkills } from "../opencode/skills-installer.js";
|
|
18
|
+
import { installHooks as installOpencodeHooks } from "../opencode/hooks-installer.js";
|
|
19
|
+
import { installSettings as installOpencodeSettings } from "../opencode/settings-installer.js";
|
|
20
|
+
import { installOpencodeMcpConfig, resolveOpencodeConfigPath, } from "../opencode/mcp-installer.js";
|
|
21
|
+
import { discoverAndInstallAgents as installOpencodeAgents } from "../opencode/agent-installer.js";
|
|
22
|
+
import { discoverAndInstallCommands as installOpencodeCommands } from "../opencode/command-installer.js";
|
|
23
|
+
import { harnessIncludesAgent } from "./config.js";
|
|
24
|
+
import { LisaAgentEmit } from "./lisa-agent-emit.js";
|
|
25
|
+
import { HOST_OWNED_LABEL } from "./lisa-state.js";
|
|
26
|
+
/**
|
|
27
|
+
* Copilot, Devin, and OpenCode agent-surface emission.
|
|
28
|
+
*/
|
|
29
|
+
export class LisaAgentEmitExtra extends LisaAgentEmit {
|
|
30
|
+
/**
|
|
31
|
+
* Emit GitHub-Copilot-targeted artifacts when the harness includes copilot.
|
|
32
|
+
*
|
|
33
|
+
* Three per-project actions:
|
|
34
|
+
* 1. `copilot plugin install lisa@CodySwannGT/lisa` (with local-path
|
|
35
|
+
* fallback when the marketplace path fails — currently does, pending
|
|
36
|
+
* the marketplace.json pluginRoot fix gated on Wave 2 spec step 8).
|
|
37
|
+
* 2. Ensure the canonical `AGENTS.md` exists (Copilot reads it natively).
|
|
38
|
+
* 3. Create-only write of `.github/copilot-instructions.md`.
|
|
39
|
+
*/
|
|
40
|
+
async processCopilotEmit() {
|
|
41
|
+
const { harness } = this.config;
|
|
42
|
+
if (!harnessIncludesAgent(harness, "copilot")) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
46
|
+
this.deps.logger.info(pc.gray("Copilot emit: skipped during postinstall-safe apply"));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (this.config.dryRun) {
|
|
50
|
+
this.deps.logger.info(pc.gray("Copilot emit: skipped (dry-run mode)"));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const pluginRoot = path.join(this.config.lisaDir, "plugins");
|
|
54
|
+
// Base variant plus the matching variant for each detected stack.
|
|
55
|
+
const variantNames = [
|
|
56
|
+
"lisa-copilot",
|
|
57
|
+
...this.perAgentStackVariants(pluginRoot, "copilot"),
|
|
58
|
+
];
|
|
59
|
+
const pluginResults = [];
|
|
60
|
+
for (const variant of variantNames) {
|
|
61
|
+
pluginResults.push(await installCopilotPlugin(pluginRoot, variant));
|
|
62
|
+
}
|
|
63
|
+
// Copilot reads AGENTS.md natively at session start, so ensure the
|
|
64
|
+
// canonical file exists; copilot-instructions.md stays a thin host-owned
|
|
65
|
+
// file that points at it.
|
|
66
|
+
const copilotAgentsResult = await installAgentsMd(this.config.destDir);
|
|
67
|
+
const instructionsResult = await installCopilotInstructions(this.config.destDir);
|
|
68
|
+
const attempted = pluginResults.some(r => r.attempted);
|
|
69
|
+
const installedCount = pluginResults.filter(r => r.installed).length;
|
|
70
|
+
const via = pluginResults.find(r => r.installed)?.via ?? "local";
|
|
71
|
+
const pluginMessage = attempted
|
|
72
|
+
? `${installedCount}/${variantNames.length} variants installed via ${via}`
|
|
73
|
+
: "skipped (copilot not on PATH)";
|
|
74
|
+
this.deps.logger.info(pc.cyan(`Copilot emit: ${pluginMessage}, AGENTS.md ${copilotAgentsResult.created ? "created" : HOST_OWNED_LABEL}, copilot-instructions ${instructionsResult.created ? "created" : HOST_OWNED_LABEL}`));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Emit Devin-CLI-targeted artifacts when the harness includes devin.
|
|
78
|
+
*
|
|
79
|
+
* Three per-project actions (CodySwannGT/lisa#4427):
|
|
80
|
+
* 1. `devin plugins install --local -y` Lisa's `lisa-devin` variant plus the
|
|
81
|
+
* matching stack variants, when `devin` is on PATH.
|
|
82
|
+
* 2. Reconcile `.devin/hooks.v1.json` with the repository enforcement
|
|
83
|
+
* fallback, which keeps the guards firing when the plugin is missing,
|
|
84
|
+
* disabled, or untrusted — and which is written whether or not `devin`
|
|
85
|
+
* is on this machine, because the clone travels to machines that have it.
|
|
86
|
+
* 3. Ensure the canonical `AGENTS.md` exists (Devin reads it natively).
|
|
87
|
+
*
|
|
88
|
+
* Documented gaps: Devin CLI has no native scheduler, so Lisa's recurring
|
|
89
|
+
* loops are triggered manually or through `scheduler: "github-actions"`; and
|
|
90
|
+
* Sonar has no Devin integrate path, so `processSonarIntegration` skips it.
|
|
91
|
+
*/
|
|
92
|
+
async processDevinEmit() {
|
|
93
|
+
const { harness } = this.config;
|
|
94
|
+
if (!harnessIncludesAgent(harness, "devin")) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
98
|
+
this.deps.logger.info(pc.gray("Devin emit: skipped during postinstall-safe apply"));
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (this.config.dryRun) {
|
|
102
|
+
this.deps.logger.info(pc.gray("Devin emit: skipped (dry-run mode)"));
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const pluginRoot = path.join(this.config.lisaDir, "plugins");
|
|
106
|
+
const variantNames = [
|
|
107
|
+
"lisa-devin",
|
|
108
|
+
...this.perAgentStackVariants(pluginRoot, "devin"),
|
|
109
|
+
];
|
|
110
|
+
const detection = await detectDevin();
|
|
111
|
+
const devinOnPath = detection.available;
|
|
112
|
+
if (detection.error !== undefined) {
|
|
113
|
+
this.deps.logger.warn(`Devin emit: devin is on PATH but \`devin --version\` failed, so no plugins were installed: ${detection.error}`);
|
|
114
|
+
}
|
|
115
|
+
const pluginResults = [];
|
|
116
|
+
if (devinOnPath) {
|
|
117
|
+
for (const variant of variantNames) {
|
|
118
|
+
pluginResults.push(await installDevinPlugin(pluginRoot, variant));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const fallback = await installDevinEnforcementFallback(this.config.destDir);
|
|
122
|
+
const agentsResult = await installAgentsMd(this.config.destDir);
|
|
123
|
+
const installedCount = pluginResults.filter(r => r.installed).length;
|
|
124
|
+
const pluginMessage = devinOnPath
|
|
125
|
+
? `${installedCount}/${variantNames.length} plugins installed`
|
|
126
|
+
: "plugins skipped (devin not on PATH)";
|
|
127
|
+
this.deps.logger.info(pc.cyan(`Devin emit: ${pluginMessage}, ${fallback.managedFiles.join(", ")} enforcement fallback reconciled, AGENTS.md ${agentsResult.created ? "created" : HOST_OWNED_LABEL}`));
|
|
128
|
+
for (const failure of pluginResults.filter(r => !r.installed)) {
|
|
129
|
+
this.deps.logger.warn(`Devin plugin install failed for ${failure.source ?? "unknown"}: ${failure.error ?? "unknown error"}`);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Install the four manifest-tracked OpenCode artifact sets and persist the
|
|
134
|
+
* ownership manifest.
|
|
135
|
+
*
|
|
136
|
+
* All three vendoring installers (skills, agents, commands) are gated on
|
|
137
|
+
* `detectedTypes`, matching the hooks installer below and the Codex overlay.
|
|
138
|
+
* OpenCode is the surface where Lisa copies its catalogue verbatim into the
|
|
139
|
+
* host repo, so an ungated emit would put Expo/React skills and Phaser
|
|
140
|
+
* game-design agents in front of a model working an unrelated stack (#3437).
|
|
141
|
+
*
|
|
142
|
+
* Each installer scopes its own stale cleanup to its `lisa-` namespace, so
|
|
143
|
+
* handing the full previous manifest to all four is safe.
|
|
144
|
+
* @returns The four install results, for logging and stale accounting.
|
|
145
|
+
*/
|
|
146
|
+
async installOpencodeManagedArtifacts() {
|
|
147
|
+
const { lisaDir, destDir } = this.config;
|
|
148
|
+
const previous = await readOpencodeManifest(destDir);
|
|
149
|
+
const skillsResult = await installOpencodeSkills(lisaDir, destDir, previous.files, this.detectedTypes);
|
|
150
|
+
// Hooks: block-no-verify maps to opencode.json `permission.bash`; the
|
|
151
|
+
// runtime-behavior hooks ship as `.opencode/plugin/lisa-*.ts` modules.
|
|
152
|
+
const hooksResult = await installOpencodeHooks(lisaDir, destDir, this.detectedTypes, previous.files);
|
|
153
|
+
// OpenCode reads agents (`.opencode/agents/`) and commands
|
|
154
|
+
// (`.opencode/commands/`) natively. Emit both from Lisa's plugin sources.
|
|
155
|
+
const opencodeAgentsResult = await installOpencodeAgents(lisaDir, destDir, previous.files, this.detectedTypes);
|
|
156
|
+
const commandsResult = await installOpencodeCommands(lisaDir, destDir, previous.files, this.detectedTypes);
|
|
157
|
+
await writeOpencodeManifest(destDir, [
|
|
158
|
+
...skillsResult.managedFiles,
|
|
159
|
+
...hooksResult.managedFiles,
|
|
160
|
+
...opencodeAgentsResult.managedFiles,
|
|
161
|
+
...commandsResult.managedFiles,
|
|
162
|
+
]);
|
|
163
|
+
return {
|
|
164
|
+
skillsResult,
|
|
165
|
+
hooksResult,
|
|
166
|
+
opencodeAgentsResult,
|
|
167
|
+
commandsResult,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Emit OpenCode-targeted artifacts when the harness includes OpenCode.
|
|
172
|
+
*
|
|
173
|
+
* OpenCode reads the open Agent Skills format, native agents
|
|
174
|
+
* (`.opencode/agents/`), native commands (`.opencode/commands/`), and
|
|
175
|
+
* `AGENTS.md` natively (opencode.ai/docs/skills, /docs/agents, /docs/commands,
|
|
176
|
+
* /docs/rules), so Lisa needs no transformed plugin variant. It writes:
|
|
177
|
+
* - skills (bundled + command-derived) into `.opencode/skills/lisa/`,
|
|
178
|
+
* - agents (Markdown, `lisa-` prefixed) into `.opencode/agents/`,
|
|
179
|
+
* - commands (Markdown, `lisa-` prefixed) into `.opencode/commands/`,
|
|
180
|
+
* and ensures the canonical `AGENTS.md` exists. Ownership of skills/agents/
|
|
181
|
+
* commands is tracked via `.opencode/.lisa-managed.json` so updates clean up
|
|
182
|
+
* stale artifacts without touching host customizations. Skipped in dry-run
|
|
183
|
+
* mode and on harness modes that don't include OpenCode.
|
|
184
|
+
*/
|
|
185
|
+
async processOpencodeEmit() {
|
|
186
|
+
const { harness } = this.config;
|
|
187
|
+
if (!harnessIncludesAgent(harness, "opencode")) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
if (this.shouldSkipAgentEmitDuringPostinstall()) {
|
|
191
|
+
this.deps.logger.info(pc.gray("OpenCode emit: skipped during postinstall-safe apply"));
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (this.config.dryRun) {
|
|
195
|
+
this.deps.logger.info(pc.gray("OpenCode emit: skipped (dry-run mode)"));
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
const { skillsResult, hooksResult, opencodeAgentsResult, commandsResult } = await this.installOpencodeManagedArtifacts();
|
|
199
|
+
// OpenCode reads AGENTS.md natively; ensure the canonical file exists. It is
|
|
200
|
+
// create-only and host-owned afterward, so it's not tracked in the manifest.
|
|
201
|
+
const agentsMdResult = await installAgentsMd(this.config.destDir);
|
|
202
|
+
// Config-level delivery (host-preserving merges into the project
|
|
203
|
+
// `opencode.json`, NOT tracked in the manifest — deleting a merged host file
|
|
204
|
+
// would be data loss). The hooks installer above already merged the
|
|
205
|
+
// `permission.bash` deny rules; settings + MCP merge their own keys and
|
|
206
|
+
// preserve everything else, so the three writers compose into one file.
|
|
207
|
+
// 1. Settings: force `share: "disabled"` so applying the fleet config can
|
|
208
|
+
// never publish a host's sessions via OpenCode's default-on, public
|
|
209
|
+
// share URLs. Other host keys are preserved.
|
|
210
|
+
// 2. MCP wrap: OpenCode ignores plugin-bundled MCP, so collect Lisa's
|
|
211
|
+
// servers from the built plugin `.mcp.json` files (base + detected
|
|
212
|
+
// stacks) and write them into the `mcp` key, translated to OpenCode's
|
|
213
|
+
// `type:"local"|"remote"` shape. Called unconditionally so stale
|
|
214
|
+
// `_lisaManaged` entries are stripped when a project drops MCP.
|
|
215
|
+
await installOpencodeSettings(this.config.destDir);
|
|
216
|
+
const pluginRoot = path.join(this.config.lisaDir, "plugins");
|
|
217
|
+
const lisaMcpServers = collectLisaMcpServers(pluginRoot, this.detectedTypes);
|
|
218
|
+
const mcpResult = await installOpencodeMcpConfig(lisaMcpServers, resolveOpencodeConfigPath(this.config.destDir));
|
|
219
|
+
const mcpMessage = mcpResult.lisaEntryCount > 0
|
|
220
|
+
? `, ${mcpResult.lisaEntryCount} MCP server(s)`
|
|
221
|
+
: "";
|
|
222
|
+
const staleCount = skillsResult.deleted.length +
|
|
223
|
+
hooksResult.deleted.length +
|
|
224
|
+
opencodeAgentsResult.deleted.length +
|
|
225
|
+
commandsResult.deleted.length;
|
|
226
|
+
// The hooks installer is the first writer, so its `configCreated` flag
|
|
227
|
+
// reflects whether `opencode.json` existed before this emit.
|
|
228
|
+
this.deps.logger.info(pc.cyan(`OpenCode emit: ${skillsResult.installed.length} skills, ${hooksResult.pluginCount} plugin hooks, ${opencodeAgentsResult.installed.length} agents, ${commandsResult.installed.length} commands${staleCount > 0 ? ` (${staleCount} stale removed)` : ""}, AGENTS.md ${agentsMdResult.created ? "created" : HOST_OWNED_LABEL}, opencode.json ${hooksResult.configCreated ? "created" : "merged"}${mcpMessage}`));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
//# sourceMappingURL=lisa-agent-emit-extra.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-agent-emit-extra.js","sourceRoot":"","sources":["../../src/core/lisa-agent-em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ission.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class LisaAgentEmit extends LisaPlugins {
|
|
6
|
+
/**
|
|
7
|
+
* Emit Codex-targeted artifacts (agents, hooks, settings) when the host
|
|
8
|
+
* project's harness includes Codex (`codex` or `fleet`). No-op for `claude`
|
|
9
|
+
* (default).
|
|
10
|
+
*
|
|
11
|
+
* Lisa writes the complete Codex surface and a filtered repository
|
|
12
|
+
* marketplace into the host. No user-wide plugin activation participates.
|
|
13
|
+
* Ownership is tracked via `.codex/.lisa-managed.json` so updates remove
|
|
14
|
+
* stale stack artifacts without touching host customizations.
|
|
15
|
+
*/
|
|
16
|
+
protected processCodexEmit(): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Emit Claude-Code-targeted artifacts when the harness includes Claude.
|
|
19
|
+
*
|
|
20
|
+
* Claude's primary distribution is the GitHub marketplace; the per-project
|
|
21
|
+
* artifacts Lisa writes are the canonical `AGENTS.md` and a thin `CLAUDE.md`
|
|
22
|
+
* that `@AGENTS.md`-imports it (Claude Code doesn't read AGENTS.md natively).
|
|
23
|
+
* Both are create-only and host-owned from creation onward. Skipped in dry-run
|
|
24
|
+
* mode and on harness modes that don't include Claude.
|
|
25
|
+
*/
|
|
26
|
+
protected processClaudeEmit(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Per-agent stack variant directory names for the detected project types
|
|
29
|
+
* that have a built variant. Filters by on-disk existence so a detected type
|
|
30
|
+
* without a stack plugin (e.g. `npm-package`) is naturally skipped.
|
|
31
|
+
* @param pluginRoot - Absolute path to the `plugins/` directory.
|
|
32
|
+
* @param agent - Per-agent variant suffix (`agy` | `copilot` | `cursor`).
|
|
33
|
+
* @returns Variant directory names like `lisa-typescript-agy`.
|
|
34
|
+
*/
|
|
35
|
+
protected perAgentStackVariants(pluginRoot: string, agent: string): string[];
|
|
36
|
+
/**
|
|
37
|
+
* Emit Antigravity-targeted artifacts when the harness includes agy.
|
|
38
|
+
*
|
|
39
|
+
* Runtime probes of agy 1.0.3 (ticket-1054) established how agy consumes each
|
|
40
|
+
* surface, so each is delivered the way agy actually reads it:
|
|
41
|
+
* 1. `agy plugin install` Lisa's variant from `plugins/lisa-agy/` (when agy
|
|
42
|
+
* is on PATH). This installs the variant into
|
|
43
|
+
* `~/.gemini/config/plugins/<variant>/`.
|
|
44
|
+
* 2. Hooks → PLUGIN-BUNDLED. agy loads a plugin's hooks from a `hooks.json`
|
|
45
|
+
* at the installed plugin ROOT, so the hooks config + agy-protocol script
|
|
46
|
+
* are emitted into the variant at BUILD time by
|
|
47
|
+
* generate-agy-plugin-artifacts.mjs and ride along with the plugin
|
|
48
|
+
* install above — nothing is written here. Only `block-no-verify`
|
|
49
|
+
* (PreToolUse) maps; SessionStart hooks aren't supported by agy.
|
|
50
|
+
* 3. MCP → USER-GLOBAL. agy ignores plugin-bundled MCP and only auto-loads
|
|
51
|
+
* `~/.gemini/config/mcp_config.json`, so `installAgyMcpConfig` writes
|
|
52
|
+
* there (servers collected from the built plugin `.mcp.json` files via
|
|
53
|
+
* `collectLisaMcpServers`, translated to agy's `serverUrl` shape,
|
|
54
|
+
* tagged-merge preserving host entries). Cross-project caveat: the most
|
|
55
|
+
* recent `lisa apply` carrying MCP wins globally.
|
|
56
|
+
* 4. Instruction file → the canonical create-only `AGENTS.md` (the same file
|
|
57
|
+
* every other agent reads), plus a bounded project-learnings bridge
|
|
58
|
+
* reconciled by `processInstructionFilesMigration`. Lisa does not bake
|
|
59
|
+
* eager rule bodies into AGENTS.md: a giant generated file is not worth
|
|
60
|
+
* carrying just to polyfill agy's headless (`-p`) mode, where SessionStart
|
|
61
|
+
* hooks don't fire. In interactive mode it still receives Lisa's plugin
|
|
62
|
+
* (skills/agents/MCP) above.
|
|
63
|
+
*/
|
|
64
|
+
protected processAgyEmit(): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Wire the official SonarQube MCP into each harness agent via the vendor's
|
|
67
|
+
* `sonar integrate <agent>`.
|
|
68
|
+
*
|
|
69
|
+
* Hard-gated inside {@link installSonarIntegrations}: a no-op unless the project
|
|
70
|
+
* opted in (`verification.sonar.enabled`) AND the `sonar` CLI is on PATH, so it
|
|
71
|
+
* never touches a project that only wants the CI SonarCloud gate. Kiro and
|
|
72
|
+
* Gemini are never wired — they are not Lisa-supported agents. Only the
|
|
73
|
+
* apply-time emit agents with a vendor integrate path are wired here (claude,
|
|
74
|
+
* codex, copilot, antigravity). Cursor (consumed natively, no apply-time emit)
|
|
75
|
+
* and OpenCode (no vendor integrate path) are wired by `/lisa:setup:sonar`.
|
|
76
|
+
*/
|
|
77
|
+
protected processSonarIntegration(): Promise<void>;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=lisa-agent-emit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lisa-agent-emit.d.ts","sourceRoot":"","sources":["../../src/core/lisa-agent-emit.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;GAEG;AACH,8BAAsB,aAAc,SAAQ,WAAW;IACrD;;;;;;;;;OASG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoCjD;;;;;;;;OAQG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BlD;;;;;;;OAOG;IACH,SAAS,CAAC,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAM5E;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;cACa,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IA+E/C;;;;;;;;;;;OAWG;cACa,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;CAoCzD"}
|