@codyswann/lisa 4.107.1 → 4.107.2
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/lisa-plugin-registration-notice.mjs +190 -0
- package/all/copy-overwrite/scripts/lisa-postinstall.mjs +6 -2
- package/all/merge/.claude/settings.json +9 -0
- package/dist/cli/{ui-ci-quality-jobs-parse.d.ts → ci-workflow-inputs.d.ts} +7 -2
- package/dist/cli/ci-workflow-inputs.d.ts.map +1 -0
- package/dist/cli/{ui-ci-quality-jobs-parse.js → ci-workflow-inputs.js} +2 -2
- package/dist/cli/ci-workflow-inputs.js.map +1 -0
- package/dist/cli/{ui-confined-project-read.d.ts → confined-project-read.d.ts} +1 -1
- package/dist/cli/confined-project-read.d.ts.map +1 -0
- package/dist/cli/{ui-confined-project-read.js → confined-project-read.js} +2 -2
- package/dist/cli/confined-project-read.js.map +1 -0
- package/dist/cli/detected-stacks.d.ts +10 -0
- package/dist/cli/detected-stacks.d.ts.map +1 -0
- package/dist/cli/{ui-detected-stacks.js → detected-stacks.js} +8 -27
- package/dist/cli/detected-stacks.js.map +1 -0
- package/dist/cli/doctor-apply-freshness.d.ts +2 -2
- package/dist/cli/doctor-apply-freshness.js +2 -2
- package/dist/cli/doctor-coderabbit-labeling.js +1 -1
- package/dist/cli/doctor-coderabbit-labeling.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +1 -1
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-instruction-files.d.ts +11 -0
- package/dist/cli/doctor-instruction-files.d.ts.map +1 -0
- package/dist/cli/doctor-instruction-files.js +57 -0
- package/dist/cli/doctor-instruction-files.js.map +1 -0
- package/dist/cli/doctor-plugin-registration.d.ts +25 -0
- package/dist/cli/doctor-plugin-registration.d.ts.map +1 -0
- package/dist/cli/doctor-plugin-registration.js +63 -0
- package/dist/cli/doctor-plugin-registration.js.map +1 -0
- package/dist/cli/doctor.d.ts +5 -2
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +11 -56
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/gate-report-ruleset.js +1 -1
- package/dist/cli/gate-report-ruleset.js.map +1 -1
- package/dist/cli/gate-report-skip-jobs.js +1 -1
- package/dist/cli/gate-report-skip-jobs.js.map +1 -1
- package/dist/cli/gate-report-types.d.ts +2 -3
- package/dist/cli/gate-report-types.d.ts.map +1 -1
- package/dist/cli/gh-cli.d.ts +14 -0
- package/dist/cli/gh-cli.d.ts.map +1 -0
- package/dist/cli/gh-cli.js +32 -0
- package/dist/cli/gh-cli.js.map +1 -0
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/removed-ui-cmd.d.ts +18 -0
- package/dist/cli/removed-ui-cmd.d.ts.map +1 -0
- package/dist/cli/removed-ui-cmd.js +17 -0
- package/dist/cli/removed-ui-cmd.js.map +1 -0
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +6 -2
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +12 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +36 -97
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/devin/enforcement-fallback-installer.d.ts +0 -8
- package/dist/devin/enforcement-fallback-installer.d.ts.map +1 -1
- package/dist/devin/enforcement-fallback-installer.js +0 -26
- package/dist/devin/enforcement-fallback-installer.js.map +1 -1
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +8 -1
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -1
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -3
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/ruleset-reach-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-reach-inspection.js +2 -7
- package/dist/health/ruleset-reach-inspection.js.map +1 -1
- package/dist/standards/capture.d.ts +1 -1
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +2 -2
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/readiness.d.ts +9 -2
- package/dist/standards/readiness.d.ts.map +1 -1
- package/dist/standards/readiness.js +12 -3
- package/dist/standards/readiness.js.map +1 -1
- package/dist/sync/json-path.d.ts +0 -10
- package/dist/sync/json-path.d.ts.map +1 -1
- package/dist/sync/json-path.js +0 -14
- package/dist/sync/json-path.js.map +1 -1
- package/dist/sync/sync-population.d.ts +0 -6
- package/dist/sync/sync-population.d.ts.map +1 -1
- package/dist/sync/sync-population.js +0 -8
- package/dist/sync/sync-population.js.map +1 -1
- package/dist/utils/marketplace-manifest.d.ts.map +1 -1
- package/dist/utils/marketplace-manifest.js +2 -3
- package/dist/utils/marketplace-manifest.js.map +1 -1
- package/package.json +4 -5
- 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-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +1 -1
- 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/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-devin/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- 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-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +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-cursor/.claude-plugin/plugin.json +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-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- 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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- 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-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- 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-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- 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-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/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +1 -1
- package/scripts/check-derived-artifacts.mjs +0 -1
- package/scripts/generate-upstream-evidence-manifest.mjs +0 -1
- package/scripts/install-claude-plugins.sh +4 -1
- package/scripts/lisa-ruleset-reach.mjs +0 -3
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
- package/dist/cli/gate-report-drift-section.d.ts +0 -8
- package/dist/cli/gate-report-drift-section.d.ts.map +0 -1
- package/dist/cli/gate-report-drift-section.js +0 -76
- package/dist/cli/gate-report-drift-section.js.map +0 -1
- package/dist/cli/gate-report-fragment.d.ts +0 -11
- package/dist/cli/gate-report-fragment.d.ts.map +0 -1
- package/dist/cli/gate-report-fragment.js +0 -106
- package/dist/cli/gate-report-fragment.js.map +0 -1
- package/dist/cli/gate-report-html.d.ts +0 -47
- package/dist/cli/gate-report-html.d.ts.map +0 -1
- package/dist/cli/gate-report-html.js +0 -49
- package/dist/cli/gate-report-html.js.map +0 -1
- package/dist/cli/gate-report-preview.d.ts +0 -9
- package/dist/cli/gate-report-preview.d.ts.map +0 -1
- package/dist/cli/gate-report-preview.js +0 -55
- package/dist/cli/gate-report-preview.js.map +0 -1
- package/dist/cli/gate-report-rows.d.ts +0 -39
- package/dist/cli/gate-report-rows.d.ts.map +0 -1
- package/dist/cli/gate-report-rows.js +0 -227
- package/dist/cli/gate-report-rows.js.map +0 -1
- package/dist/cli/gate-report-sections.d.ts +0 -38
- package/dist/cli/gate-report-sections.d.ts.map +0 -1
- package/dist/cli/gate-report-sections.js +0 -225
- package/dist/cli/gate-report-sections.js.map +0 -1
- package/dist/cli/gate-report-style.d.ts +0 -19
- package/dist/cli/gate-report-style.d.ts.map +0 -1
- package/dist/cli/gate-report-style.js +0 -100
- package/dist/cli/gate-report-style.js.map +0 -1
- package/dist/cli/remote-environment-catalog.d.ts +0 -17
- package/dist/cli/remote-environment-catalog.d.ts.map +0 -1
- package/dist/cli/remote-environment-catalog.js +0 -175
- package/dist/cli/remote-environment-catalog.js.map +0 -1
- package/dist/cli/remote-environment-contract.d.ts +0 -94
- package/dist/cli/remote-environment-contract.d.ts.map +0 -1
- package/dist/cli/remote-environment-contract.js +0 -59
- package/dist/cli/remote-environment-contract.js.map +0 -1
- package/dist/cli/remote-environment-detection.d.ts +0 -23
- package/dist/cli/remote-environment-detection.d.ts.map +0 -1
- package/dist/cli/remote-environment-detection.js +0 -120
- package/dist/cli/remote-environment-detection.js.map +0 -1
- package/dist/cli/remote-environment.d.ts +0 -12
- package/dist/cli/remote-environment.d.ts.map +0 -1
- package/dist/cli/remote-environment.js +0 -73
- package/dist/cli/remote-environment.js.map +0 -1
- package/dist/cli/ui-automations-adapters.d.ts +0 -72
- package/dist/cli/ui-automations-adapters.d.ts.map +0 -1
- package/dist/cli/ui-automations-adapters.js +0 -174
- package/dist/cli/ui-automations-adapters.js.map +0 -1
- package/dist/cli/ui-automations.d.ts +0 -90
- package/dist/cli/ui-automations.d.ts.map +0 -1
- package/dist/cli/ui-automations.js +0 -149
- package/dist/cli/ui-automations.js.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-compute.d.ts +0 -44
- package/dist/cli/ui-ci-quality-jobs-compute.d.ts.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-compute.js +0 -278
- package/dist/cli/ui-ci-quality-jobs-compute.js.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-parse.d.ts.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-parse.js.map +0 -1
- package/dist/cli/ui-ci-quality-jobs.d.ts +0 -22
- package/dist/cli/ui-ci-quality-jobs.d.ts.map +0 -1
- package/dist/cli/ui-ci-quality-jobs.js +0 -160
- package/dist/cli/ui-ci-quality-jobs.js.map +0 -1
- package/dist/cli/ui-cmd.d.ts +0 -87
- package/dist/cli/ui-cmd.d.ts.map +0 -1
- package/dist/cli/ui-cmd.js +0 -383
- package/dist/cli/ui-cmd.js.map +0 -1
- package/dist/cli/ui-config-write-document.d.ts +0 -53
- package/dist/cli/ui-config-write-document.d.ts.map +0 -1
- package/dist/cli/ui-config-write-document.js +0 -212
- package/dist/cli/ui-config-write-document.js.map +0 -1
- package/dist/cli/ui-config-write-patch-plan.d.ts +0 -30
- package/dist/cli/ui-config-write-patch-plan.d.ts.map +0 -1
- package/dist/cli/ui-config-write-patch-plan.js +0 -151
- package/dist/cli/ui-config-write-patch-plan.js.map +0 -1
- package/dist/cli/ui-config-write-persistence.d.ts +0 -29
- package/dist/cli/ui-config-write-persistence.d.ts.map +0 -1
- package/dist/cli/ui-config-write-persistence.js +0 -298
- package/dist/cli/ui-config-write-persistence.js.map +0 -1
- package/dist/cli/ui-config-write-property-edits.d.ts +0 -40
- package/dist/cli/ui-config-write-property-edits.d.ts.map +0 -1
- package/dist/cli/ui-config-write-property-edits.js +0 -250
- package/dist/cli/ui-config-write-property-edits.js.map +0 -1
- package/dist/cli/ui-config-write-provenance.d.ts +0 -12
- package/dist/cli/ui-config-write-provenance.d.ts.map +0 -1
- package/dist/cli/ui-config-write-provenance.js +0 -29
- package/dist/cli/ui-config-write-provenance.js.map +0 -1
- package/dist/cli/ui-config-write-root-identity.d.ts +0 -25
- package/dist/cli/ui-config-write-root-identity.d.ts.map +0 -1
- package/dist/cli/ui-config-write-root-identity.js +0 -66
- package/dist/cli/ui-config-write-root-identity.js.map +0 -1
- package/dist/cli/ui-config-write.d.ts +0 -13
- package/dist/cli/ui-config-write.d.ts.map +0 -1
- package/dist/cli/ui-config-write.js +0 -341
- package/dist/cli/ui-config-write.js.map +0 -1
- package/dist/cli/ui-confined-project-read.d.ts.map +0 -1
- package/dist/cli/ui-confined-project-read.js.map +0 -1
- package/dist/cli/ui-deploy-pipeline-model.d.ts +0 -74
- package/dist/cli/ui-deploy-pipeline-model.d.ts.map +0 -1
- package/dist/cli/ui-deploy-pipeline-model.js +0 -127
- package/dist/cli/ui-deploy-pipeline-model.js.map +0 -1
- package/dist/cli/ui-deploy-pipeline.d.ts +0 -25
- package/dist/cli/ui-deploy-pipeline.d.ts.map +0 -1
- package/dist/cli/ui-deploy-pipeline.js +0 -181
- package/dist/cli/ui-deploy-pipeline.js.map +0 -1
- package/dist/cli/ui-detected-stacks.d.ts +0 -21
- package/dist/cli/ui-detected-stacks.d.ts.map +0 -1
- package/dist/cli/ui-detected-stacks.js.map +0 -1
- package/dist/cli/ui-enabled-plugins.d.ts +0 -52
- package/dist/cli/ui-enabled-plugins.d.ts.map +0 -1
- package/dist/cli/ui-enabled-plugins.js +0 -229
- package/dist/cli/ui-enabled-plugins.js.map +0 -1
- package/dist/cli/ui-gate-report.d.ts +0 -57
- package/dist/cli/ui-gate-report.d.ts.map +0 -1
- package/dist/cli/ui-gate-report.js +0 -95
- package/dist/cli/ui-gate-report.js.map +0 -1
- package/dist/cli/ui-github-repo-expected.d.ts +0 -36
- package/dist/cli/ui-github-repo-expected.d.ts.map +0 -1
- package/dist/cli/ui-github-repo-expected.js +0 -118
- package/dist/cli/ui-github-repo-expected.js.map +0 -1
- package/dist/cli/ui-github-repo-gh.d.ts +0 -56
- package/dist/cli/ui-github-repo-gh.d.ts.map +0 -1
- package/dist/cli/ui-github-repo-gh.js +0 -117
- package/dist/cli/ui-github-repo-gh.js.map +0 -1
- package/dist/cli/ui-github-repo-map.d.ts +0 -25
- package/dist/cli/ui-github-repo-map.d.ts.map +0 -1
- package/dist/cli/ui-github-repo-map.js +0 -175
- package/dist/cli/ui-github-repo-map.js.map +0 -1
- package/dist/cli/ui-github-repo.d.ts +0 -51
- package/dist/cli/ui-github-repo.d.ts.map +0 -1
- package/dist/cli/ui-github-repo.js +0 -117
- package/dist/cli/ui-github-repo.js.map +0 -1
- package/dist/cli/ui-health.d.ts +0 -18
- package/dist/cli/ui-health.d.ts.map +0 -1
- package/dist/cli/ui-health.js +0 -101
- package/dist/cli/ui-health.js.map +0 -1
- package/dist/cli/ui-lisa-version.d.ts +0 -36
- package/dist/cli/ui-lisa-version.d.ts.map +0 -1
- package/dist/cli/ui-lisa-version.js +0 -82
- package/dist/cli/ui-lisa-version.js.map +0 -1
- package/dist/cli/ui-observability-checks.d.ts +0 -23
- package/dist/cli/ui-observability-checks.d.ts.map +0 -1
- package/dist/cli/ui-observability-checks.js +0 -156
- package/dist/cli/ui-observability-checks.js.map +0 -1
- package/dist/cli/ui-observability-providers.d.ts +0 -69
- package/dist/cli/ui-observability-providers.d.ts.map +0 -1
- package/dist/cli/ui-observability-providers.js +0 -99
- package/dist/cli/ui-observability-providers.js.map +0 -1
- package/dist/cli/ui-request-origin.d.ts +0 -8
- package/dist/cli/ui-request-origin.d.ts.map +0 -1
- package/dist/cli/ui-request-origin.js +0 -41
- package/dist/cli/ui-request-origin.js.map +0 -1
- package/dist/cli/ui-setup-readiness-config.d.ts +0 -28
- package/dist/cli/ui-setup-readiness-config.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-config.js +0 -116
- package/dist/cli/ui-setup-readiness-config.js.map +0 -1
- package/dist/cli/ui-setup-readiness-contract.d.ts +0 -32
- package/dist/cli/ui-setup-readiness-contract.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-contract.js +0 -61
- package/dist/cli/ui-setup-readiness-contract.js.map +0 -1
- package/dist/cli/ui-setup-readiness-install.d.ts +0 -24
- package/dist/cli/ui-setup-readiness-install.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-install.js +0 -211
- package/dist/cli/ui-setup-readiness-install.js.map +0 -1
- package/dist/cli/ui-setup-readiness-local.d.ts +0 -41
- package/dist/cli/ui-setup-readiness-local.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-local.js +0 -237
- package/dist/cli/ui-setup-readiness-local.js.map +0 -1
- package/dist/cli/ui-setup-readiness-remote.d.ts +0 -30
- package/dist/cli/ui-setup-readiness-remote.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-remote.js +0 -108
- package/dist/cli/ui-setup-readiness-remote.js.map +0 -1
- package/dist/cli/ui-setup-readiness.d.ts +0 -52
- package/dist/cli/ui-setup-readiness.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness.js +0 -126
- package/dist/cli/ui-setup-readiness.js.map +0 -1
- package/dist/cli/ui-starter-sync.d.ts +0 -17
- package/dist/cli/ui-starter-sync.d.ts.map +0 -1
- package/dist/cli/ui-starter-sync.js +0 -75
- package/dist/cli/ui-starter-sync.js.map +0 -1
- package/dist/cli/ui-status-json.d.ts +0 -29
- package/dist/cli/ui-status-json.d.ts.map +0 -1
- package/dist/cli/ui-status-json.js +0 -162
- package/dist/cli/ui-status-json.js.map +0 -1
- package/dist/cli/ui-status.d.ts +0 -42
- package/dist/cli/ui-status.d.ts.map +0 -1
- package/dist/cli/ui-status.js +0 -221
- package/dist/cli/ui-status.js.map +0 -1
- package/ui/README.md +0 -443
- package/ui/index.html +0 -14392
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { Harness, ProjectType } from "../core/config.js";
|
|
2
|
-
/** Project-owned extension point for remote-environment requirements. */
|
|
3
|
-
export declare const REMOTE_ENVIRONMENT_MANIFEST: ".lisa/remote-environment.json";
|
|
4
|
-
/** One concrete coding agent, excluding the fleet aggregate. */
|
|
5
|
-
export type RemoteAgent = Exclude<Harness, "fleet">;
|
|
6
|
-
/** A variable the current project requires in a remote coding environment. */
|
|
7
|
-
export interface RemoteEnvironmentVariableStatus {
|
|
8
|
-
/** Environment-variable name. Values are never exposed. */
|
|
9
|
-
readonly name: string;
|
|
10
|
-
/** Why this project requires the variable. */
|
|
11
|
-
readonly reason: string;
|
|
12
|
-
/** Project signal that activated the requirement. */
|
|
13
|
-
readonly source: string;
|
|
14
|
-
/** Whether the variable contains a credential. */
|
|
15
|
-
readonly secret: boolean;
|
|
16
|
-
/** Whether the variable is visible to the `lisa ui` process. */
|
|
17
|
-
readonly set: boolean;
|
|
18
|
-
}
|
|
19
|
-
/** Startup artifact expected by one supported remote coding agent. */
|
|
20
|
-
export interface RemoteEnvironmentStartupStatus {
|
|
21
|
-
/** Agent whose remote environment consumes the artifact. */
|
|
22
|
-
readonly agent: RemoteAgent;
|
|
23
|
-
/** Project-relative setup artifact, when one is configured. */
|
|
24
|
-
readonly artifact?: string;
|
|
25
|
-
/** Whether the configured artifact exists. */
|
|
26
|
-
readonly installed: boolean;
|
|
27
|
-
}
|
|
28
|
-
/** Project-aware remote-environment readiness exposed to the console. */
|
|
29
|
-
export interface RemoteEnvironmentStatus {
|
|
30
|
-
/** Lisa project types detected for the current project. */
|
|
31
|
-
readonly projectTypes: readonly ProjectType[];
|
|
32
|
-
/** Required variables only; optional/dormant integrations are omitted. */
|
|
33
|
-
readonly variables: readonly RemoteEnvironmentVariableStatus[];
|
|
34
|
-
/** Startup artifact status for every supported agent. */
|
|
35
|
-
readonly startupScripts: readonly RemoteEnvironmentStartupStatus[];
|
|
36
|
-
}
|
|
37
|
-
/** Internal names-only variable requirement. */
|
|
38
|
-
export interface VariableRequirement {
|
|
39
|
-
/** Environment-variable name. */
|
|
40
|
-
readonly name: string;
|
|
41
|
-
/** Human-readable reason the project requires it. */
|
|
42
|
-
readonly reason: string;
|
|
43
|
-
/** Project signal that activated it. */
|
|
44
|
-
readonly source: string;
|
|
45
|
-
/** Whether it contains a credential. */
|
|
46
|
-
readonly secret: boolean;
|
|
47
|
-
}
|
|
48
|
-
/** Active remote-tool integrations detected from the host project. */
|
|
49
|
-
export interface IntegrationFlags {
|
|
50
|
-
/** AWS SDK/infrastructure/operational integration. */
|
|
51
|
-
readonly aws: boolean;
|
|
52
|
-
/** Expo Application Services integration. */
|
|
53
|
-
readonly eas: boolean;
|
|
54
|
-
/** Figma tooling integration. */
|
|
55
|
-
readonly figma: boolean;
|
|
56
|
-
/** Jam debugging integration. */
|
|
57
|
-
readonly jam: boolean;
|
|
58
|
-
/** Maestro Cloud integration. */
|
|
59
|
-
readonly maestro: boolean;
|
|
60
|
-
/** Sentry tooling integration. */
|
|
61
|
-
readonly sentry: boolean;
|
|
62
|
-
/** SonarCloud integration. */
|
|
63
|
-
readonly sonar: boolean;
|
|
64
|
-
}
|
|
65
|
-
/** Raw project-owned manifest shape; every field is validated before use. */
|
|
66
|
-
export interface RemoteEnvironmentManifest {
|
|
67
|
-
/** Names-only variable declarations. */
|
|
68
|
-
readonly variables?: readonly {
|
|
69
|
-
readonly name?: unknown;
|
|
70
|
-
readonly reason?: unknown;
|
|
71
|
-
readonly source?: unknown;
|
|
72
|
-
readonly secret?: unknown;
|
|
73
|
-
readonly required?: unknown;
|
|
74
|
-
}[];
|
|
75
|
-
/** Per-agent project-relative startup artifacts. */
|
|
76
|
-
readonly startupScripts?: Readonly<Record<string, unknown>>;
|
|
77
|
-
}
|
|
78
|
-
/** Supported concrete agents in canonical order. */
|
|
79
|
-
export declare const REMOTE_AGENTS: readonly RemoteAgent[];
|
|
80
|
-
/** Default project artifacts recognized for each remote agent. */
|
|
81
|
-
export declare const DEFAULT_STARTUP_ARTIFACTS: Readonly<Record<RemoteAgent, readonly string[]>>;
|
|
82
|
-
/**
|
|
83
|
-
* Validate project-owned manifest variable declarations.
|
|
84
|
-
* @param manifest - Parsed manifest
|
|
85
|
-
* @returns Required variable declarations only
|
|
86
|
-
*/
|
|
87
|
-
export declare function manifestRequirements(manifest: RemoteEnvironmentManifest | null): readonly VariableRequirement[];
|
|
88
|
-
/**
|
|
89
|
-
* Deduplicate requirements by variable name while preserving first-source order.
|
|
90
|
-
* @param requirements - Requirements from config, detection, and manifest
|
|
91
|
-
* @returns Deduplicated requirements
|
|
92
|
-
*/
|
|
93
|
-
export declare function uniqueRequirements(requirements: readonly VariableRequirement[]): readonly VariableRequirement[];
|
|
94
|
-
//# sourceMappingURL=remote-environment-contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-environment-contract.d.ts","sourceRoot":"","sources":["../../src/cli/remote-environment-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG9D,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,EACtC,+BAAwC,CAAC;AAE3C,gEAAgE;AAChE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAEpD,8EAA8E;AAC9E,MAAM,WAAW,+BAA+B;IAC9C,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB;AAED,sEAAsE;AACtE,MAAM,WAAW,8BAA8B;IAC7C,4DAA4D;IAC5D,QAAQ,CAAC,KAAK,E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AC,EAAE,SAAS;QAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;KAC7B,EAAE,CAAC;IACJ,oDAAoD;IACpD,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC7D;AAED,oDAAoD;AACpD,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAE/C,CAAC;AAIF,kEAAkE;AAClE,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAC9C,MAAM,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC,CAiBvC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,yBAAyB,GAAG,IAAI,GACzC,SAAS,mBAAmB,EAAE,CAwBhC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,SAAS,mBAAmB,EAAE,GAC3C,SAAS,mBAAmB,EAAE,CAOhC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { HARNESS_VALUES } from "../core/config.js";
|
|
2
|
-
/** Project-owned extension point for remote-environment requirements. */
|
|
3
|
-
export const REMOTE_ENVIRONMENT_MANIFEST = ".lisa/remote-environment.json";
|
|
4
|
-
/** Supported concrete agents in canonical order. */
|
|
5
|
-
export const REMOTE_AGENTS = HARNESS_VALUES.filter((harness) => harness !== "fleet");
|
|
6
|
-
const GENERIC_STARTUP_ARTIFACT = "scripts/remote-agent-setup.sh";
|
|
7
|
-
/** Default project artifacts recognized for each remote agent. */
|
|
8
|
-
export const DEFAULT_STARTUP_ARTIFACTS = {
|
|
9
|
-
claude: ["scripts/claude-remote-setup.sh", GENERIC_STARTUP_ARTIFACT],
|
|
10
|
-
codex: ["scripts/codex-remote-setup.sh", GENERIC_STARTUP_ARTIFACT],
|
|
11
|
-
cursor: [
|
|
12
|
-
".cursor/environment.json",
|
|
13
|
-
"scripts/cursor-remote-setup.sh",
|
|
14
|
-
GENERIC_STARTUP_ARTIFACT,
|
|
15
|
-
],
|
|
16
|
-
agy: ["scripts/agy-remote-setup.sh", GENERIC_STARTUP_ARTIFACT],
|
|
17
|
-
copilot: [
|
|
18
|
-
".github/workflows/copilot-setup-steps.yml",
|
|
19
|
-
"scripts/copilot-remote-setup.sh",
|
|
20
|
-
GENERIC_STARTUP_ARTIFACT,
|
|
21
|
-
],
|
|
22
|
-
opencode: ["scripts/opencode-remote-setup.sh", GENERIC_STARTUP_ARTIFACT],
|
|
23
|
-
devin: ["scripts/devin-remote-setup.sh", GENERIC_STARTUP_ARTIFACT],
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Validate project-owned manifest variable declarations.
|
|
27
|
-
* @param manifest - Parsed manifest
|
|
28
|
-
* @returns Required variable declarations only
|
|
29
|
-
*/
|
|
30
|
-
export function manifestRequirements(manifest) {
|
|
31
|
-
return (manifest?.variables ?? []).flatMap(entry => {
|
|
32
|
-
if (entry.required === false ||
|
|
33
|
-
typeof entry.name !== "string" ||
|
|
34
|
-
!/^[A-Z][A-Z0-9_]*$/u.test(entry.name)) {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
return [
|
|
38
|
-
{
|
|
39
|
-
name: entry.name,
|
|
40
|
-
reason: typeof entry.reason === "string"
|
|
41
|
-
? entry.reason
|
|
42
|
-
: "Required by the project remote-environment manifest",
|
|
43
|
-
source: typeof entry.source === "string"
|
|
44
|
-
? entry.source
|
|
45
|
-
: REMOTE_ENVIRONMENT_MANIFEST,
|
|
46
|
-
secret: entry.secret !== false,
|
|
47
|
-
},
|
|
48
|
-
];
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Deduplicate requirements by variable name while preserving first-source order.
|
|
53
|
-
* @param requirements - Requirements from config, detection, and manifest
|
|
54
|
-
* @returns Deduplicated requirements
|
|
55
|
-
*/
|
|
56
|
-
export function uniqueRequirements(requirements) {
|
|
57
|
-
return requirements.filter((requirement, index) => requirements.findIndex(candidate => candidate.name === requirement.name) === index);
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=remote-environment-contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-environment-contract.js","sourceRoot":"","sources":["../../src/cli/remote-environment-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,yEAAyE;AACzE,MAAM,CAAC,MAAM,2BAA2B,GACtC,+BAAwC,CAAC;AAmF3C,oDAAoD;AACpD,MAAM,CAAC,MAAM,aAAa,GAA2B,cAAc,CAAC,MAAM,CACxE,CAAC,OAAO,EAA0B,EAAE,CAAC,OAAO,KAAK,OAAO,CACzD,CAAC;AAEF,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AAEjE,kEAAkE;AAClE,MAAM,CAAC,MAAM,yBAAyB,GAElC;IACF,MAAM,EAAE,CAAC,gCAAgC,EAAE,wBAAwB,CAAC;IACpE,KAAK,EAAE,CAAC,+BAA+B,EAAE,wBAAwB,CAAC;IAClE,MAAM,EAAE;QACN,0BAA0B;QAC1B,gCAAgC;QAChC,wBAAwB;KACzB;IACD,GAAG,EAAE,CAAC,6BAA6B,EAAE,wBAAwB,CAAC;IAC9D,OAAO,EAAE;QACP,2CAA2C;QAC3C,iCAAiC;QACjC,wBAAwB;KACzB;IACD,QAAQ,EAAE,CAAC,kCAAkC,EAAE,wBAAwB,CAAC;IACxE,KAAK,EAAE,CAAC,+BAA+B,EAAE,wBAAwB,CAAC;CACnE,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAClC,QAA0C;IAE1C,OAAO,CAAC,QAAQ,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACjD,IACE,KAAK,CAAC,QAAQ,KAAK,KAAK;YACxB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;YAC9B,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EACtC,CAAC;YACD,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO;YACL;gBACE,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EACJ,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;oBAC9B,CAAC,CAAC,KAAK,CAAC,MAAM;oBACd,CAAC,CAAC,qDAAqD;gBAC3D,MAAM,EACJ,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;oBAC9B,CAAC,CAAC,KAAK,CAAC,MAAM;oBACd,CAAC,CAAC,2BAA2B;gBACjC,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,KAAK;aAC/B;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAChC,YAA4C;IAE5C,OAAO,YAAY,CAAC,MAAM,CACxB,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,CACrB,YAAY,CAAC,SAAS,CACpB,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,WAAW,CAAC,IAAI,CACjD,KAAK,KAAK,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ProjectType } from "../core/config.js";
|
|
2
|
-
import type { VariableRequirement } from "./remote-environment-contract.js";
|
|
3
|
-
/**
|
|
4
|
-
* Read a UTF-8 file, returning an empty string when it is absent.
|
|
5
|
-
* @param filePath - Absolute path
|
|
6
|
-
* @returns File contents or an empty string
|
|
7
|
-
*/
|
|
8
|
-
export declare function readTextOrEmpty(filePath: string): Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Return whether a project-relative file exists.
|
|
11
|
-
* @param destDir - Project root
|
|
12
|
-
* @param relativePath - Project-relative path
|
|
13
|
-
* @returns True when the file can be read and is non-empty
|
|
14
|
-
*/
|
|
15
|
-
export declare function projectFileExists(destDir: string, relativePath: string): Promise<boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Build requirements activated by detected project type and integrations.
|
|
18
|
-
* @param destDir - Project root
|
|
19
|
-
* @param projectTypes - Detected Lisa project types
|
|
20
|
-
* @returns Project-specific requirements
|
|
21
|
-
*/
|
|
22
|
-
export declare function detectedProjectRequirements(destDir: string, projectTypes: readonly ProjectType[]): Promise<readonly VariableRequirement[]>;
|
|
23
|
-
//# sourceMappingURL=remote-environment-detection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-environment-detection.d.ts","sourceRoot":"","sources":["../../src/cli/remote-environment-detection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,EAEV,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAU1C;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAWvE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAElB;AA2GD;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,SAAS,WAAW,EAAE,GACnC,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC,CAIzC"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { readFile } from "node:fs/promises";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
import { readJsonOrNull } from "../utils/index.js";
|
|
4
|
-
import { requirementsForFlags } from "./remote-environment-catalog.js";
|
|
5
|
-
/**
|
|
6
|
-
* Read a UTF-8 file, returning an empty string when it is absent.
|
|
7
|
-
* @param filePath - Absolute path
|
|
8
|
-
* @returns File contents or an empty string
|
|
9
|
-
*/
|
|
10
|
-
export async function readTextOrEmpty(filePath) {
|
|
11
|
-
try {
|
|
12
|
-
return await readFile(filePath, "utf8");
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
const code = typeof error === "object" && error !== null && "code" in error
|
|
16
|
-
? error.code
|
|
17
|
-
: undefined;
|
|
18
|
-
if (code === "ENOENT")
|
|
19
|
-
return "";
|
|
20
|
-
throw error;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Return whether a project-relative file exists.
|
|
25
|
-
* @param destDir - Project root
|
|
26
|
-
* @param relativePath - Project-relative path
|
|
27
|
-
* @returns True when the file can be read and is non-empty
|
|
28
|
-
*/
|
|
29
|
-
export async function projectFileExists(destDir, relativePath) {
|
|
30
|
-
return (await readTextOrEmpty(path.join(destDir, relativePath))) !== "";
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Read dependency names and selected project-owned integration surfaces.
|
|
34
|
-
* @param destDir - Project root
|
|
35
|
-
* @returns Signals used by the requirement detectors
|
|
36
|
-
*/
|
|
37
|
-
async function readProjectSignals(destDir) {
|
|
38
|
-
const packageJson = await readJsonOrNull(path.join(destDir, "package.json"));
|
|
39
|
-
const dependencies = new Set([
|
|
40
|
-
...Object.keys(packageJson?.dependencies ?? {}),
|
|
41
|
-
...Object.keys(packageJson?.devDependencies ?? {}),
|
|
42
|
-
]);
|
|
43
|
-
const workflows = ["ci", "deploy", "quality"].flatMap(name => [
|
|
44
|
-
`.github/workflows/${name}.yml`,
|
|
45
|
-
`.github/workflows/${name}.yaml`,
|
|
46
|
-
]);
|
|
47
|
-
const [envExample, remoteSetup, ...workflowContents] = await Promise.all([
|
|
48
|
-
readTextOrEmpty(path.join(destDir, ".env.example")),
|
|
49
|
-
readTextOrEmpty(path.join(destDir, "scripts/claude-remote-setup.sh")),
|
|
50
|
-
...workflows.map(relativePath => readTextOrEmpty(path.join(destDir, relativePath))),
|
|
51
|
-
]);
|
|
52
|
-
return {
|
|
53
|
-
dependencies,
|
|
54
|
-
envExample,
|
|
55
|
-
remoteSetup,
|
|
56
|
-
workflows: workflowContents.join("\n"),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Test dependency presence by exact name or namespace prefix.
|
|
61
|
-
* @param dependencies - Project dependency names
|
|
62
|
-
* @param names - Exact names or prefixes ending in `/`
|
|
63
|
-
* @returns Whether any dependency matches
|
|
64
|
-
*/
|
|
65
|
-
function hasDependency(dependencies, names) {
|
|
66
|
-
return Array.from(dependencies).some(dependency => names.some(name => name.endsWith("/") ? dependency.startsWith(name) : dependency === name));
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Detect active project integrations from dependencies and committed surfaces.
|
|
70
|
-
* @param destDir - Project root
|
|
71
|
-
* @param projectTypes - Detected Lisa project types
|
|
72
|
-
* @param signals - Project signals
|
|
73
|
-
* @returns Boolean integration flags
|
|
74
|
-
*/
|
|
75
|
-
async function detectIntegrationFlags(destDir, projectTypes, signals) {
|
|
76
|
-
const { dependencies, envExample, remoteSetup, workflows } = signals;
|
|
77
|
-
const [serverlessYml, serverlessYaml, sstTs, sstJs, sonar, eas, maestro] = await Promise.all([
|
|
78
|
-
"serverless.yml",
|
|
79
|
-
"serverless.yaml",
|
|
80
|
-
"sst.config.ts",
|
|
81
|
-
"sst.config.js",
|
|
82
|
-
"sonar-project.properties",
|
|
83
|
-
"eas.json",
|
|
84
|
-
".maestro/config.yaml",
|
|
85
|
-
].map(relativePath => projectFileExists(destDir, relativePath)));
|
|
86
|
-
return {
|
|
87
|
-
aws: projectTypes.includes("cdk") ||
|
|
88
|
-
hasDependency(dependencies, [
|
|
89
|
-
"@aws-sdk/",
|
|
90
|
-
"aws-cdk-lib",
|
|
91
|
-
"serverless",
|
|
92
|
-
"sst",
|
|
93
|
-
]) ||
|
|
94
|
-
/^(AWS_PROFILE|CDK_CONTEXT_ACCOUNT|CDK_CONTEXT_ENV)=/mu.test(envExample) ||
|
|
95
|
-
[serverlessYml, serverlessYaml, sstTs, sstJs].some(Boolean),
|
|
96
|
-
eas: projectTypes.includes("expo") &&
|
|
97
|
-
(eas || workflows.includes("EXPO_TOKEN")),
|
|
98
|
-
figma: remoteSetup.includes("FIGMA_ACCESS_TOKEN"),
|
|
99
|
-
jam: hasDependency(dependencies, ["@jam.dev/"]),
|
|
100
|
-
maestro: maestro === true && workflows.includes("MAESTRO_API_KEY"),
|
|
101
|
-
sentry: hasDependency(dependencies, ["@sentry/"]) &&
|
|
102
|
-
(remoteSetup.includes("SENTRY_AUTH_TOKEN") ||
|
|
103
|
-
workflows.includes("SENTRY_AUTH_TOKEN")),
|
|
104
|
-
sonar: sonar === true &&
|
|
105
|
-
(remoteSetup.includes("SONAR_TOKEN") ||
|
|
106
|
-
workflows.includes("SONAR_TOKEN")),
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Build requirements activated by detected project type and integrations.
|
|
111
|
-
* @param destDir - Project root
|
|
112
|
-
* @param projectTypes - Detected Lisa project types
|
|
113
|
-
* @returns Project-specific requirements
|
|
114
|
-
*/
|
|
115
|
-
export async function detectedProjectRequirements(destDir, projectTypes) {
|
|
116
|
-
const signals = await readProjectSignals(destDir);
|
|
117
|
-
const flags = await detectIntegrationFlags(destDir, projectTypes, signals);
|
|
118
|
-
return requirementsForFlags(flags, projectTypes);
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=remote-environment-detection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-environment-detection.js","sourceRoot":"","sources":["../../src/cli/remote-environment-detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,C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MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,OAAe,EACf,YAAoC;IAEpC,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,MAAM,sBAAsB,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC3E,OAAO,oBAAoB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { JsonObject } from "../sync/json-path.js";
|
|
2
|
-
import { type RemoteEnvironmentStatus } from "./remote-environment-contract.js";
|
|
3
|
-
export type { RemoteEnvironmentStartupStatus, RemoteEnvironmentStatus, RemoteEnvironmentVariableStatus, } from "./remote-environment-contract.js";
|
|
4
|
-
/**
|
|
5
|
-
* Inspect requirements for this particular project without exposing values.
|
|
6
|
-
* @param destDir - Project root
|
|
7
|
-
* @param config - Merged Lisa project config
|
|
8
|
-
* @param environment - Environment visible to the Lisa process
|
|
9
|
-
* @returns Project-aware variable and startup-artifact status
|
|
10
|
-
*/
|
|
11
|
-
export declare function inspectRemoteEnvironment(destDir: string, config: JsonObject, environment: NodeJS.ProcessEnv): Promise<RemoteEnvironmentStatus>;
|
|
12
|
-
//# sourceMappingURL=remote-environment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-environment.d.ts","sourceRoot":"","sources":["../../src/cli/remote-environment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAQL,KAAK,uBAAuB,EAE7B,MAAM,kCAAkC,CAAC;AAO1C,YAAY,EACV,8BAA8B,EAC9B,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,kCAAkC,CAAC;AAkD1C;;;;;;GAMG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,MAAM,CAAC,UAAU,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CA2BlC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
import { createDetectorRegistry } from "../detection/index.js";
|
|
3
|
-
import { readJsonOrNull } from "../utils/index.js";
|
|
4
|
-
import { DEFAULT_STARTUP_ARTIFACTS, manifestRequirements, REMOTE_AGENTS, REMOTE_ENVIRONMENT_MANIFEST, uniqueRequirements, } from "./remote-environment-contract.js";
|
|
5
|
-
import { configuredIntegrationRequirements } from "./remote-environment-catalog.js";
|
|
6
|
-
import { detectedProjectRequirements, projectFileExists, } from "./remote-environment-detection.js";
|
|
7
|
-
/**
|
|
8
|
-
* Restrict manifest artifacts to files beneath the host project.
|
|
9
|
-
* @param candidate - Project-owned manifest value
|
|
10
|
-
* @returns Whether the value is a safe project-relative path
|
|
11
|
-
*/
|
|
12
|
-
function isSafeProjectArtifact(candidate) {
|
|
13
|
-
return (candidate.length > 0 &&
|
|
14
|
-
!path.isAbsolute(candidate) &&
|
|
15
|
-
!candidate.split(/[\\/]/u).includes(".."));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Resolve an explicitly configured or discovered startup artifact for one agent.
|
|
19
|
-
* @param destDir - Project root
|
|
20
|
-
* @param agent - Supported coding agent
|
|
21
|
-
* @param manifest - Project-owned manifest
|
|
22
|
-
* @returns Startup artifact status
|
|
23
|
-
*/
|
|
24
|
-
async function resolveStartupScript(destDir, agent, manifest) {
|
|
25
|
-
const configured = manifest?.startupScripts?.[agent];
|
|
26
|
-
const explicit = typeof configured === "string" && isSafeProjectArtifact(configured)
|
|
27
|
-
? configured
|
|
28
|
-
: undefined;
|
|
29
|
-
const candidates = explicit === undefined ? DEFAULT_STARTUP_ARTIFACTS[agent] : [explicit];
|
|
30
|
-
const existence = await Promise.all(candidates.map(async (artifact) => ({
|
|
31
|
-
artifact,
|
|
32
|
-
exists: await projectFileExists(destDir, artifact),
|
|
33
|
-
})));
|
|
34
|
-
const installed = existence.find(candidate => candidate.exists);
|
|
35
|
-
return installed === undefined
|
|
36
|
-
? {
|
|
37
|
-
agent,
|
|
38
|
-
...(explicit === undefined ? {} : { artifact: explicit }),
|
|
39
|
-
installed: false,
|
|
40
|
-
}
|
|
41
|
-
: { agent, artifact: installed.artifact, installed: true };
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Inspect requirements for this particular project without exposing values.
|
|
45
|
-
* @param destDir - Project root
|
|
46
|
-
* @param config - Merged Lisa project config
|
|
47
|
-
* @param environment - Environment visible to the Lisa process
|
|
48
|
-
* @returns Project-aware variable and startup-artifact status
|
|
49
|
-
*/
|
|
50
|
-
export async function inspectRemoteEnvironment(destDir, config, environment) {
|
|
51
|
-
const detectorRegistry = createDetectorRegistry();
|
|
52
|
-
const [detectedTypes, manifest] = await Promise.all([
|
|
53
|
-
detectorRegistry.detectAll(destDir),
|
|
54
|
-
readJsonOrNull(path.join(destDir, REMOTE_ENVIRONMENT_MANIFEST)),
|
|
55
|
-
]);
|
|
56
|
-
const projectTypes = detectorRegistry.expandAndOrderTypes(detectedTypes);
|
|
57
|
-
const requirements = uniqueRequirements([
|
|
58
|
-
...configuredIntegrationRequirements(config),
|
|
59
|
-
...(await detectedProjectRequirements(destDir, projectTypes)),
|
|
60
|
-
...manifestRequirements(manifest),
|
|
61
|
-
]);
|
|
62
|
-
const startupScripts = await Promise.all(REMOTE_AGENTS.map(agent => resolveStartupScript(destDir, agent, manifest)));
|
|
63
|
-
return {
|
|
64
|
-
projectTypes,
|
|
65
|
-
variables: requirements.map(requirement => ({
|
|
66
|
-
...requirement,
|
|
67
|
-
set: typeof environment[requirement.name] === "string" &&
|
|
68
|
-
environment[requirement.name].length > 0,
|
|
69
|
-
})),
|
|
70
|
-
startupScripts,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=remote-environment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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AC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAC3E,CAAC;IACF,OAAO;QACL,YAAY;QACZ,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAC1C,GAAG,WAAW;YACd,GAAG,EACD,OAAO,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,QAAQ;gBACjD,WAAW,CAAC,WAAW,CAAC,IAAI,CAAE,CAAC,MAAM,GAAG,CAAC;SAC5C,CAAC,CAAC;QACH,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { JsonObject } from "../sync/json-path.js";
|
|
2
|
-
import type { ClaudeAutomationLister, ClaudeScheduleListingReader, CodexAutomationLister, CodexDirReadableCheck, HarnessAutomationObservation, ProjectIdentityResolver } from "./ui-automations.js";
|
|
3
|
-
/**
|
|
4
|
-
* Default Codex automations directory (`$CODEX_HOME/automations` or `~/.codex/automations`).
|
|
5
|
-
* @returns Absolute directory path
|
|
6
|
-
*/
|
|
7
|
-
export declare function resolveDefaultCodexAutomationsDir(): string;
|
|
8
|
-
/** Minimal expected-fleet entry consumed by setup readiness. */
|
|
9
|
-
export interface ExpectedAutomationEntry {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly automationId: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Resolve applicable automations through setup-automations' shared contract.
|
|
15
|
-
* @param config - Current merged Lisa config
|
|
16
|
-
* @param detectedTypes - Authoritatively detected project types
|
|
17
|
-
* @param gitRemoteUrl - Optional origin fallback for repository identity
|
|
18
|
-
* @returns Applicable expected entries; unsupported loops are excluded
|
|
19
|
-
*/
|
|
20
|
-
export declare function resolveExpectedAutomationEntries(config: JsonObject, detectedTypes: readonly string[], gitRemoteUrl?: string): Promise<readonly ExpectedAutomationEntry[]>;
|
|
21
|
-
/**
|
|
22
|
-
* Read the origin remote URL via git without a shell.
|
|
23
|
-
* @param cwd - Project root
|
|
24
|
-
* @param signal - Abort signal
|
|
25
|
-
* @returns Origin URL, or undefined when unavailable
|
|
26
|
-
*/
|
|
27
|
-
export declare function readOriginRemote(cwd: string, signal: AbortSignal): Promise<string | undefined>;
|
|
28
|
-
/** Raw adapter fields normalized by {@link toObservation}. */
|
|
29
|
-
export interface AdapterObservationInput {
|
|
30
|
-
readonly automationId: string;
|
|
31
|
-
readonly observedCadence?: string;
|
|
32
|
-
readonly status?: string;
|
|
33
|
-
readonly lastRunAt?: string | null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Normalize adapter observations into the probe's observation shape.
|
|
37
|
-
* @param entry - Adapter observation fields
|
|
38
|
-
* @returns Probe observation without invented cadence/status
|
|
39
|
-
*/
|
|
40
|
-
export declare function toObservation(entry: AdapterObservationInput): HarnessAutomationObservation;
|
|
41
|
-
/**
|
|
42
|
-
* Default identity resolver: config + origin remote → `lisa-auto-<project>-`.
|
|
43
|
-
* @param cwd - Project root
|
|
44
|
-
* @param signal - Abort signal
|
|
45
|
-
* @returns Automation project identity
|
|
46
|
-
*/
|
|
47
|
-
export declare const defaultResolveIdentity: ProjectIdentityResolver;
|
|
48
|
-
/**
|
|
49
|
-
* Default Codex directory readability check.
|
|
50
|
-
* @param automationsDir - Directory to probe
|
|
51
|
-
* @param signal - Probe cancellation signal
|
|
52
|
-
* @returns Whether the directory is readable
|
|
53
|
-
*/
|
|
54
|
-
export declare const defaultCodexDirReadable: CodexDirReadableCheck;
|
|
55
|
-
/**
|
|
56
|
-
* Default Claude `/schedule` reader — Node cannot invoke the interactive
|
|
57
|
-
* `/schedule` surface, so the default is honest unavailability.
|
|
58
|
-
* @returns Always null
|
|
59
|
-
*/
|
|
60
|
-
export declare const defaultReadClaudeScheduleListing: ClaudeScheduleListingReader;
|
|
61
|
-
/**
|
|
62
|
-
* Default Codex lister via the shared automation-status adapter.
|
|
63
|
-
* @param input - Prefix and optional directory override
|
|
64
|
-
* @returns Observed Codex automations
|
|
65
|
-
*/
|
|
66
|
-
export declare const defaultListCodexAutomations: CodexAutomationLister;
|
|
67
|
-
/**
|
|
68
|
-
* Load the default Claude lister from the shared adapter.
|
|
69
|
-
* @returns Claude automation lister
|
|
70
|
-
*/
|
|
71
|
-
export declare function loadDefaultListClaudeAutomations(): Promise<ClaudeAutomationLister>;
|
|
72
|
-
//# sourceMappingURL=ui-automations-adapters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-automations-adapters.d.ts","sourceRoot":"","sources":["../../src/cli/ui-automations-adapters.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAEV,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAqC7B;;;GAGG;AACH,wBAAgB,iCAAiC,IAAI,MAAM,CAO1D;AAYD,gEAAgE;AAChE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,SAAS,MAAM,EAAE,EAChC,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,SAAS,uBAAuB,EAAE,CAAC,CAa7C;AAWD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAY7B;AAED,8DAA8D;AAC9D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAA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