@codyswann/lisa 4.107.0 → 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 -140
- 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 -10
- 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/scripts/check-ui-demo-data.mjs +0 -102
- package/ui/README.md +0 -448
- package/ui/index.html +0 -14392
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Live-status probes for connected observability providers.
|
|
3
|
-
*
|
|
4
|
-
* READ-ONLY detection by reachability (Sentry auth, CloudWatch alarms, X-Ray
|
|
5
|
-
* traces). Missing credentials degrade to unknown — never a fabricated
|
|
6
|
-
* "disconnected" claim.
|
|
7
|
-
* @module cli/ui-observability-providers
|
|
8
|
-
*/
|
|
9
|
-
import type { JsonValue } from "../sync/json-path.js";
|
|
10
|
-
import type { ProbeResult, StatusProbe } from "./ui-status.js";
|
|
11
|
-
/** Structured value for a reachable observability provider. */
|
|
12
|
-
export type ObservabilityProviderValue = {
|
|
13
|
-
readonly [key: string]: JsonValue;
|
|
14
|
-
readonly status: "connected" | "connected-but-empty";
|
|
15
|
-
readonly emptyKind?: "alarms" | "traces";
|
|
16
|
-
};
|
|
17
|
-
/** Injectable Sentry reachability check. */
|
|
18
|
-
export type SentryReachabilityCheck = (timeoutMs: number, signal: AbortSignal) => Promise<"reachable" | "not-authenticated">;
|
|
19
|
-
/** Injectable AWS count check (alarms or traces), or not-authenticated. */
|
|
20
|
-
export type AwsCountCheck = (timeoutMs: number, signal: AbortSignal) => Promise<number | "not-authenticated">;
|
|
21
|
-
export declare const SENTRY_PROBE_ID = "sentry";
|
|
22
|
-
export declare const CLOUDWATCH_ALARMS_PROBE_ID = "cloudwatch-alarms";
|
|
23
|
-
export declare const XRAY_PROBE_ID = "x-ray";
|
|
24
|
-
/**
|
|
25
|
-
* Map Sentry reachability onto the live-status tri-state.
|
|
26
|
-
* @param outcome - Reachability check result
|
|
27
|
-
* @returns Probe result for the sentry provider
|
|
28
|
-
*/
|
|
29
|
-
export declare function mapSentryReachability(outcome: "reachable" | "not-authenticated"): ProbeResult<ObservabilityProviderValue>;
|
|
30
|
-
/**
|
|
31
|
-
* Map an AWS count check onto connected / empty / unknown.
|
|
32
|
-
* @param outcome - Count or not-authenticated
|
|
33
|
-
* @param emptyKind - Whether zero means no alarms or no traces
|
|
34
|
-
* @returns Probe result for CloudWatch or X-Ray
|
|
35
|
-
*/
|
|
36
|
-
export declare function mapAwsCountCheck(outcome: number | "not-authenticated", emptyKind: "alarms" | "traces"): ProbeResult<ObservabilityProviderValue>;
|
|
37
|
-
/**
|
|
38
|
-
* Create the Sentry observability probe.
|
|
39
|
-
* @param options - Injectable collaborators
|
|
40
|
-
* @param options.check - Optional reachability check for focused tests
|
|
41
|
-
* @returns Bounded status probe
|
|
42
|
-
*/
|
|
43
|
-
export declare function createSentryProbe(options?: {
|
|
44
|
-
readonly check?: SentryReachabilityCheck;
|
|
45
|
-
}): StatusProbe<ObservabilityProviderValue>;
|
|
46
|
-
/**
|
|
47
|
-
* Create the CloudWatch Alarms observability probe.
|
|
48
|
-
* @param options - Injectable collaborators
|
|
49
|
-
* @param options.check - Optional alarm-count check for focused tests
|
|
50
|
-
* @returns Bounded status probe
|
|
51
|
-
*/
|
|
52
|
-
export declare function createCloudWatchAlarmsProbe(options?: {
|
|
53
|
-
readonly check?: AwsCountCheck;
|
|
54
|
-
}): StatusProbe<ObservabilityProviderValue>;
|
|
55
|
-
/**
|
|
56
|
-
* Create the X-Ray observability probe.
|
|
57
|
-
* @param options - Injectable collaborators
|
|
58
|
-
* @param options.check - Optional trace-count check for focused tests
|
|
59
|
-
* @returns Bounded status probe
|
|
60
|
-
*/
|
|
61
|
-
export declare function createXRayProbe(options?: {
|
|
62
|
-
readonly check?: AwsCountCheck;
|
|
63
|
-
}): StatusProbe<ObservabilityProviderValue>;
|
|
64
|
-
/**
|
|
65
|
-
* Register all three observability provider probes.
|
|
66
|
-
* @returns Sentry, CloudWatch Alarms, and X-Ray probes
|
|
67
|
-
*/
|
|
68
|
-
export declare function createObservabilityProviderProbes(): readonly StatusProbe<ObservabilityProviderValue>[];
|
|
69
|
-
//# sourceMappingURL=ui-observability-providers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-observability-providers.d.ts","sourceRoot":"","sources":["../../src/cli/ui-observability-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C;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,GAAE;IACP,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;CAC3B,GACL,WAAW,CAAC,0BAA0B,CAAC,CAQzC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,GAAE;IACP,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;CAC3B,GACL,WAAW,CAAC,0BAA0B,CAAC,CAQzC;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,IAAI,SAAS,WAAW,CAAC,0BAA0B,CAAC,EAAE,CAMtG"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { defaultCloudWatchCheck, defaultSentryCheck, defaultXRayCheck, } from "./ui-observability-checks.js";
|
|
2
|
-
export const SENTRY_PROBE_ID = "sentry";
|
|
3
|
-
export const CLOUDWATCH_ALARMS_PROBE_ID = "cloudwatch-alarms";
|
|
4
|
-
export const XRAY_PROBE_ID = "x-ray";
|
|
5
|
-
const PROBE_TIMEOUT_MS = 5_000;
|
|
6
|
-
const NOT_AUTHENTICATED = "not-authenticated";
|
|
7
|
-
const SENTRY_UNKNOWN_MESSAGE = "Sentry auth/MCP is not reachable — authenticate Sentry MCP/CLI or set SENTRY_AUTH_TOKEN";
|
|
8
|
-
const AWS_UNKNOWN_MESSAGE = "AWS credentials are not authenticated for this machine";
|
|
9
|
-
/**
|
|
10
|
-
* Map Sentry reachability onto the live-status tri-state.
|
|
11
|
-
* @param outcome - Reachability check result
|
|
12
|
-
* @returns Probe result for the sentry provider
|
|
13
|
-
*/
|
|
14
|
-
export function mapSentryReachability(outcome) {
|
|
15
|
-
if (outcome === "reachable") {
|
|
16
|
-
return { state: "value", value: { status: "connected" } };
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
state: "unknown",
|
|
20
|
-
reason: NOT_AUTHENTICATED,
|
|
21
|
-
message: SENTRY_UNKNOWN_MESSAGE,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Map an AWS count check onto connected / empty / unknown.
|
|
26
|
-
* @param outcome - Count or not-authenticated
|
|
27
|
-
* @param emptyKind - Whether zero means no alarms or no traces
|
|
28
|
-
* @returns Probe result for CloudWatch or X-Ray
|
|
29
|
-
*/
|
|
30
|
-
export function mapAwsCountCheck(outcome, emptyKind) {
|
|
31
|
-
if (outcome === "not-authenticated") {
|
|
32
|
-
return {
|
|
33
|
-
state: "unknown",
|
|
34
|
-
reason: NOT_AUTHENTICATED,
|
|
35
|
-
message: AWS_UNKNOWN_MESSAGE,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
if (outcome > 0) {
|
|
39
|
-
return { state: "value", value: { status: "connected" } };
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
state: "value",
|
|
43
|
-
value: { status: "connected-but-empty", emptyKind },
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Create the Sentry observability probe.
|
|
48
|
-
* @param options - Injectable collaborators
|
|
49
|
-
* @param options.check - Optional reachability check for focused tests
|
|
50
|
-
* @returns Bounded status probe
|
|
51
|
-
*/
|
|
52
|
-
export function createSentryProbe(options = {}) {
|
|
53
|
-
const check = options.check ?? defaultSentryCheck;
|
|
54
|
-
return {
|
|
55
|
-
id: SENTRY_PROBE_ID,
|
|
56
|
-
timeoutMs: PROBE_TIMEOUT_MS,
|
|
57
|
-
run: async (signal) => mapSentryReachability(await check(PROBE_TIMEOUT_MS + 250, signal)),
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Create the CloudWatch Alarms observability probe.
|
|
62
|
-
* @param options - Injectable collaborators
|
|
63
|
-
* @param options.check - Optional alarm-count check for focused tests
|
|
64
|
-
* @returns Bounded status probe
|
|
65
|
-
*/
|
|
66
|
-
export function createCloudWatchAlarmsProbe(options = {}) {
|
|
67
|
-
const check = options.check ?? defaultCloudWatchCheck;
|
|
68
|
-
return {
|
|
69
|
-
id: CLOUDWATCH_ALARMS_PROBE_ID,
|
|
70
|
-
timeoutMs: PROBE_TIMEOUT_MS,
|
|
71
|
-
run: async (signal) => mapAwsCountCheck(await check(PROBE_TIMEOUT_MS + 250, signal), "alarms"),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Create the X-Ray observability probe.
|
|
76
|
-
* @param options - Injectable collaborators
|
|
77
|
-
* @param options.check - Optional trace-count check for focused tests
|
|
78
|
-
* @returns Bounded status probe
|
|
79
|
-
*/
|
|
80
|
-
export function createXRayProbe(options = {}) {
|
|
81
|
-
const check = options.check ?? defaultXRayCheck;
|
|
82
|
-
return {
|
|
83
|
-
id: XRAY_PROBE_ID,
|
|
84
|
-
timeoutMs: PROBE_TIMEOUT_MS,
|
|
85
|
-
run: async (signal) => mapAwsCountCheck(await check(PROBE_TIMEOUT_MS + 250, signal), "traces"),
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Register all three observability provider probes.
|
|
90
|
-
* @returns Sentry, CloudWatch Alarms, and X-Ray probes
|
|
91
|
-
*/
|
|
92
|
-
export function createObservabilityProviderProbes() {
|
|
93
|
-
return [
|
|
94
|
-
createSentryProbe(),
|
|
95
|
-
createCloudWatchAlarmsProbe(),
|
|
96
|
-
createXRayProbe(),
|
|
97
|
-
];
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=ui-observability-providers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-observability-providers.js","sourceRoot":"","sources":["../../src/cli/ui-observability-providers.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AAqBtC,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AAC9D,MAAM,CA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MAAM,EAAC,EAAE,CAClB,qBAAqB,CAAC,MAAM,KAAK,CAAC,gBAAgB,GAAG,GAAG,EAAE,MAAM,CAAC,CAAC;KACrE,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,UAEI,EAAE;IAEN,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,sBAAsB,CAAC;IACtD,OAAO;QACL,EAAE,EAAE,0BAA0B;QAC9B,SAAS,EAAE,gBAAgB;QAC3B,GAAG,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE,CAClB,gBAAgB,CAAC,MAAM,KAAK,CAAC,gBAAgB,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAC7B,UAEI,EAAE;IAEN,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,gBAAgB,CAAC;IAChD,OAAO;QACL,EAAE,EAAE,aAAa;QACjB,SAAS,EAAE,gBAAgB;QAC3B,GAAG,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE,CAClB,gBAAgB,CAAC,MAAM,KAAK,CAAC,gBAAgB,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iCAAiC;IAC/C,OAAO;QACL,iBAAiB,EAAE;QACnB,2BAA2B,EAAE;QAC7B,eAAe,EAAE;KAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Restrict origins to the exact loopback authority advertised by `lisa ui`.
|
|
3
|
-
* @param origin - Incoming Origin header
|
|
4
|
-
* @param host - Incoming Host header
|
|
5
|
-
* @returns Whether origin exactly matches the loopback listener
|
|
6
|
-
*/
|
|
7
|
-
export declare function isExpectedLoopbackOrigin(origin: string | undefined, host: string | undefined): boolean;
|
|
8
|
-
//# sourceMappingURL=ui-request-origin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-request-origin.d.ts","sourceRoot":"","sources":["../../src/cli/ui-request-origin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,OAAO,CAaT"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Restrict origins to the exact loopback authority advertised by `lisa ui`.
|
|
3
|
-
* @param origin - Incoming Origin header
|
|
4
|
-
* @param host - Incoming Host header
|
|
5
|
-
* @returns Whether origin exactly matches the loopback listener
|
|
6
|
-
*/
|
|
7
|
-
export function isExpectedLoopbackOrigin(origin, host) {
|
|
8
|
-
if (origin === undefined || host === undefined)
|
|
9
|
-
return false;
|
|
10
|
-
try {
|
|
11
|
-
const parsed = new URL(origin);
|
|
12
|
-
return (origin === parsed.origin &&
|
|
13
|
-
parsed.protocol === "http:" &&
|
|
14
|
-
parsed.host === host &&
|
|
15
|
-
isLoopbackHost(parsed.host));
|
|
16
|
-
}
|
|
17
|
-
catch {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Match the config writer's accepted 127.0.0.1 authority shape.
|
|
23
|
-
* @param host - URL authority to inspect
|
|
24
|
-
* @returns Whether the authority is valid loopback
|
|
25
|
-
*/
|
|
26
|
-
function isLoopbackHost(host) {
|
|
27
|
-
if (host === "127.0.0.1")
|
|
28
|
-
return true;
|
|
29
|
-
const prefix = "127.0.0.1:";
|
|
30
|
-
if (!host.startsWith(prefix))
|
|
31
|
-
return false;
|
|
32
|
-
const portText = host.slice(prefix.length);
|
|
33
|
-
const digitsOnly = Array.from(portText).every(character => character >= "0" && character <= "9");
|
|
34
|
-
const port = Number(portText);
|
|
35
|
-
return (portText.length > 0 &&
|
|
36
|
-
portText.length <= 5 &&
|
|
37
|
-
digitsOnly &&
|
|
38
|
-
port > 0 &&
|
|
39
|
-
port <= 65_535);
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=ui-request-origin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-request-origin.js","sourceRoot":"","sources":["../../src/cli/ui-request-origin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CACtC,MAA0B,EAC1B,IAAwB;IAExB,IAAI,MAAM,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAC/B,OAAO,CACL,MAAM,KAAK,MAAM,CAAC,MAAM;YACxB,MAAM,CAAC,QAAQ,KAAK,OAAO;YAC3B,MAAM,CAAC,IAAI,KAAK,IAAI;YACpB,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAC5B,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CAAC,IAAY;IAClC,IAAI,IAAI,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC;IACtC,MAAM,MAAM,GAAG,YAAY,CAAC;IAC5B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAC3C,SAAS,CAAC,EAAE,CAAC,SAAS,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,CAClD,CAAC;IACF,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC9B,OAAO,CACL,QAAQ,CAAC,MAAM,GAAG,CAAC;QACnB,QAAQ,CAAC,MAAM,IAAI,CAAC;QACpB,UAAU;QACV,IAAI,GAAG,CAAC;QACR,IAAI,IAAI,MAAM,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** Config-backed Setup readiness findings with independent provider lanes. */
|
|
2
|
-
import { type JsonObject } from "../sync/json-path.js";
|
|
3
|
-
import { type SetupReadinessFinding } from "./ui-setup-readiness-contract.js";
|
|
4
|
-
/**
|
|
5
|
-
* Read tracker readiness independently from the PRD source.
|
|
6
|
-
* @param config - Merged Lisa project configuration
|
|
7
|
-
* @returns Work-tracker readiness finding
|
|
8
|
-
*/
|
|
9
|
-
export declare function trackerFinding(config: JsonObject): SetupReadinessFinding;
|
|
10
|
-
/**
|
|
11
|
-
* Read PRD-source readiness independently from the work tracker.
|
|
12
|
-
* @param config - Merged Lisa project configuration
|
|
13
|
-
* @returns PRD-source readiness finding
|
|
14
|
-
*/
|
|
15
|
-
export declare function prdSourceFinding(config: JsonObject): SetupReadinessFinding;
|
|
16
|
-
/**
|
|
17
|
-
* Require an explicit exploration environment, policy, and test identity.
|
|
18
|
-
* @param config - Merged Lisa project configuration
|
|
19
|
-
* @returns Exploration-environment readiness finding
|
|
20
|
-
*/
|
|
21
|
-
export declare function explorationFinding(config: JsonObject): SetupReadinessFinding;
|
|
22
|
-
/**
|
|
23
|
-
* Require at least one bounded starter template provenance record.
|
|
24
|
-
* @param config - Merged Lisa project configuration
|
|
25
|
-
* @returns Starter-provenance readiness finding
|
|
26
|
-
*/
|
|
27
|
-
export declare function starterProvenanceFinding(config: JsonObject): SetupReadinessFinding;
|
|
28
|
-
//# sourceMappingURL=ui-setup-readiness-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-config.d.ts","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-config.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGrE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAkE1C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,qBAAqB,CAOxE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,qBAAqB,CAO1E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,qBAAqB,CAyD5E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,GACjB,qBAAqB,CA6BvB"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/** Config-backed Setup readiness findings with independent provider lanes. */
|
|
2
|
-
import { isJsonObject } from "../sync/json-path.js";
|
|
3
|
-
import { SETUP_PROVIDER_REQUIREMENTS } from "../sync/registry.js";
|
|
4
|
-
import { resolveMutationPolicy } from "./doctor-readiness-journey-freshness.js";
|
|
5
|
-
import { setupFinding, } from "./ui-setup-readiness-contract.js";
|
|
6
|
-
const EXPLORATION_CHECK = "setup.exploration";
|
|
7
|
-
const STARTER_PROVENANCE_CHECK = "setup.starter-provenance";
|
|
8
|
-
/**
|
|
9
|
-
* Return whether a dot path resolves to a non-empty string.
|
|
10
|
-
* @param config - Merged Lisa project configuration
|
|
11
|
-
* @param dotPath - Dot-delimited property path to inspect
|
|
12
|
-
* @returns Whether the property contains non-empty text
|
|
13
|
-
*/
|
|
14
|
-
function hasString(config, dotPath) {
|
|
15
|
-
const value = dotPath.split(".").reduce((current, segment) => {
|
|
16
|
-
if (!isJsonObject(current))
|
|
17
|
-
return undefined;
|
|
18
|
-
return current[segment];
|
|
19
|
-
}, config);
|
|
20
|
-
return typeof value === "string" && value.trim().length > 0;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Evaluate one provider lane from the shared sync-registry requirements.
|
|
24
|
-
* @param config - Merged Lisa project configuration
|
|
25
|
-
* @param lane - Provider lane to validate
|
|
26
|
-
* @param check - Setup finding identifier for the lane
|
|
27
|
-
* @param selectionHint - Operator-facing setup commands for invalid providers
|
|
28
|
-
* @returns Deterministic readiness finding for the provider lane
|
|
29
|
-
*/
|
|
30
|
-
function providerLaneFinding(config, lane, check, selectionHint) {
|
|
31
|
-
const provider = config[lane];
|
|
32
|
-
const providers = SETUP_PROVIDER_REQUIREMENTS[lane];
|
|
33
|
-
if (typeof provider !== "string" || !Object.hasOwn(providers, provider)) {
|
|
34
|
-
return setupFinding(check, "fail", `${lane === "tracker" ? "Work tracker" : "PRD source"} is missing or unsupported. Run ${selectionHint}.`);
|
|
35
|
-
}
|
|
36
|
-
const requirement = providers[provider];
|
|
37
|
-
const missingAll = requirement.allOf.filter(key => !hasString(config, key));
|
|
38
|
-
const missingAny = requirement.anyOf !== undefined &&
|
|
39
|
-
!requirement.anyOf.some(key => hasString(config, key))
|
|
40
|
-
? [requirement.anyOf.join(" or ")]
|
|
41
|
-
: [];
|
|
42
|
-
const missing = [...missingAll, ...missingAny];
|
|
43
|
-
return missing.length === 0
|
|
44
|
-
? setupFinding(check, "pass", `${lane === "tracker" ? "Tracker" : "PRD source"} provider and required scope identifiers are configured.`)
|
|
45
|
-
: setupFinding(check, "fail", `Missing required configuration: ${missing.join(", ")}. Run ${requirement.setupHint}.`);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Read tracker readiness independently from the PRD source.
|
|
49
|
-
* @param config - Merged Lisa project configuration
|
|
50
|
-
* @returns Work-tracker readiness finding
|
|
51
|
-
*/
|
|
52
|
-
export function trackerFinding(config) {
|
|
53
|
-
return providerLaneFinding(config, "tracker", "setup.tracker", "/lisa:setup:jira, /lisa:setup:github, or /lisa:setup:linear");
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Read PRD-source readiness independently from the work tracker.
|
|
57
|
-
* @param config - Merged Lisa project configuration
|
|
58
|
-
* @returns PRD-source readiness finding
|
|
59
|
-
*/
|
|
60
|
-
export function prdSourceFinding(config) {
|
|
61
|
-
return providerLaneFinding(config, "source", "setup.prd-source", "/lisa:setup:notion, /lisa:setup:confluence, /lisa:setup:linear, or /lisa:setup:github");
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Require an explicit exploration environment, policy, and test identity.
|
|
65
|
-
* @param config - Merged Lisa project configuration
|
|
66
|
-
* @returns Exploration-environment readiness finding
|
|
67
|
-
*/
|
|
68
|
-
export function explorationFinding(config) {
|
|
69
|
-
const exploration = config.exploration;
|
|
70
|
-
if (!isJsonObject(exploration)) {
|
|
71
|
-
return setupFinding(EXPLORATION_CHECK, "warn", "Exploration environments are not configured in .lisa.config.json.");
|
|
72
|
-
}
|
|
73
|
-
const environmentName = exploration.default;
|
|
74
|
-
const environments = exploration.environments;
|
|
75
|
-
if (typeof environmentName !== "string" ||
|
|
76
|
-
environmentName.trim().length === 0 ||
|
|
77
|
-
!isJsonObject(environments) ||
|
|
78
|
-
!isJsonObject(environments[environmentName])) {
|
|
79
|
-
return setupFinding(EXPLORATION_CHECK, "warn", "Exploration requires a default environment with a matching environments entry.");
|
|
80
|
-
}
|
|
81
|
-
const environment = environments[environmentName];
|
|
82
|
-
const mutation = environment.mutation;
|
|
83
|
-
if (typeof mutation !== "string" ||
|
|
84
|
-
!["forbidden", "read-only", "full"].includes(mutation)) {
|
|
85
|
-
return setupFinding(EXPLORATION_CHECK, "warn", "The default exploration environment needs an explicit mutation policy.");
|
|
86
|
-
}
|
|
87
|
-
if (typeof environment.identity !== "string" ||
|
|
88
|
-
environment.identity.trim().length === 0) {
|
|
89
|
-
return setupFinding(EXPLORATION_CHECK, "warn", "The default exploration environment needs a dedicated test identity reference.");
|
|
90
|
-
}
|
|
91
|
-
const effective = resolveMutationPolicy(config);
|
|
92
|
-
return effective === mutation
|
|
93
|
-
? setupFinding(EXPLORATION_CHECK, "pass", `The default exploration environment has an explicit ${effective} policy and test identity reference.`)
|
|
94
|
-
: setupFinding(EXPLORATION_CHECK, "warn", `The configured mutation policy is unsafe for the selected environment and resolves to ${effective}.`);
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Require at least one bounded starter template provenance record.
|
|
98
|
-
* @param config - Merged Lisa project configuration
|
|
99
|
-
* @returns Starter-provenance readiness finding
|
|
100
|
-
*/
|
|
101
|
-
export function starterProvenanceFinding(config) {
|
|
102
|
-
const starter = config.starter;
|
|
103
|
-
const templates = isJsonObject(starter) ? starter.templates : undefined;
|
|
104
|
-
if (!Array.isArray(templates) || templates.length === 0) {
|
|
105
|
-
return setupFinding(STARTER_PROVENANCE_CHECK, "warn", "Optional starter provenance is not recorded in starter.templates.");
|
|
106
|
-
}
|
|
107
|
-
const invalid = templates.some(template => !isJsonObject(template) ||
|
|
108
|
-
typeof template.repo !== "string" ||
|
|
109
|
-
template.repo.trim().length === 0 ||
|
|
110
|
-
typeof template.ref !== "string" ||
|
|
111
|
-
template.ref.trim().length === 0);
|
|
112
|
-
return invalid
|
|
113
|
-
? setupFinding(STARTER_PROVENANCE_CHECK, "warn", "Starter provenance contains a template without both repo and ref.")
|
|
114
|
-
: setupFinding(STARTER_PROVENANCE_CHECK, "pass", `${templates.length} starter template provenance record${templates.length === 1 ? " is" : "s are"} configured.`);
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=ui-setup-readiness-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-config.js","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-config.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,YAAY,EAAmB,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,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AO,CAAC;IAC/B,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;IACxE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxD,OAAO,YAAY,CACjB,wBAAwB,EACxB,MAAM,EACN,mEAAmE,CACpE,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC5B,QAAQ,CAAC,EAAE,CACT,CAAC,YAAY,CAAC,QAAQ,CAAC;QACvB,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ;QACjC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QACjC,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ;QAChC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CACnC,CAAC;IACF,OAAO,OAAO;QACZ,CAAC,CAAC,YAAY,CACV,wBAAwB,EACxB,MAAM,EACN,mEAAmE,CACpE;QACH,CAAC,CAAC,YAAY,CACV,wBAAwB,EACxB,MAAM,EACN,GAAG,SAAS,CAAC,MAAM,sCAAsC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,cAAc,CAChH,CAAC;AACR,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** Strict transport contract for the console Setup readiness projection. */
|
|
2
|
-
import { type HealthFinding, type HealthStatus } from "../health/contract.js";
|
|
3
|
-
/** Stable finding identifiers, in the existing checklist render order. */
|
|
4
|
-
export declare const SETUP_READINESS_CHECKS: readonly ["setup.install", "setup.sync", "setup.agent-ready", "setup.standards", "setup.tracker", "setup.prd-source", "setup.github-governance", "setup.secrets", "setup.automations", "setup.exploration", "setup.wiki", "setup.starter-provenance"];
|
|
5
|
-
/** One of the closed Setup checklist identifiers. */
|
|
6
|
-
export type SetupReadinessCheck = (typeof SETUP_READINESS_CHECKS)[number];
|
|
7
|
-
/** Setup finding reuses the closed Health finding shape without joining Health. */
|
|
8
|
-
export type SetupReadinessFinding = HealthFinding & {
|
|
9
|
-
readonly check: SetupReadinessCheck;
|
|
10
|
-
readonly layer: "deterministic";
|
|
11
|
-
};
|
|
12
|
-
/** Current, non-persisted Setup readiness response. */
|
|
13
|
-
export interface SetupReadinessResult {
|
|
14
|
-
readonly schemaVersion: 1;
|
|
15
|
-
readonly observedAt: string;
|
|
16
|
-
readonly findings: readonly SetupReadinessFinding[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Create one operator-readable deterministic Setup finding.
|
|
20
|
-
* @param check - Closed Setup checklist identifier
|
|
21
|
-
* @param status - Deterministic readiness status
|
|
22
|
-
* @param reason - Operator-readable evidence or remediation summary
|
|
23
|
-
* @returns Deterministic Setup readiness finding
|
|
24
|
-
*/
|
|
25
|
-
export declare function setupFinding(check: SetupReadinessCheck, status: HealthStatus, reason: string): SetupReadinessFinding;
|
|
26
|
-
/**
|
|
27
|
-
* Validate, detach, and freeze a Setup readiness projection.
|
|
28
|
-
* @param candidate - Untrusted projection
|
|
29
|
-
* @returns Strict schema-v1 result with exactly the twelve checklist findings
|
|
30
|
-
*/
|
|
31
|
-
export declare function validateSetupReadinessResult(candidate: unknown): SetupReadinessResult;
|
|
32
|
-
//# sourceMappingURL=ui-setup-readiness-contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-contract.d.ts","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-contract.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAQ/B,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,uPAazB,CAAC;AAEX,qDAAqD;AACrD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,mFAAmF;AACnF,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;CACjC,CAAC;AAEF,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACrD;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,MAAM,GACb,qBAAqB,CAEvB;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,OAAO,GACjB,oBAAoB,CAwCtB"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/** Strict transport contract for the console Setup readiness projection. */
|
|
2
|
-
import { summarizeHealthFindings, validateHealthResult, } from "../health/contract.js";
|
|
3
|
-
import { readStrictDenseArray, readStrictProperty, requireCanonicalUtcTimestamp, requireStrictRecord, } from "../health/strict-validation.js";
|
|
4
|
-
/** Stable finding identifiers, in the existing checklist render order. */
|
|
5
|
-
export const SETUP_READINESS_CHECKS = [
|
|
6
|
-
"setup.install",
|
|
7
|
-
"setup.sync",
|
|
8
|
-
"setup.agent-ready",
|
|
9
|
-
"setup.standards",
|
|
10
|
-
"setup.tracker",
|
|
11
|
-
"setup.prd-source",
|
|
12
|
-
"setup.github-governance",
|
|
13
|
-
"setup.secrets",
|
|
14
|
-
"setup.automations",
|
|
15
|
-
"setup.exploration",
|
|
16
|
-
"setup.wiki",
|
|
17
|
-
"setup.starter-provenance",
|
|
18
|
-
];
|
|
19
|
-
/**
|
|
20
|
-
* Create one operator-readable deterministic Setup finding.
|
|
21
|
-
* @param check - Closed Setup checklist identifier
|
|
22
|
-
* @param status - Deterministic readiness status
|
|
23
|
-
* @param reason - Operator-readable evidence or remediation summary
|
|
24
|
-
* @returns Deterministic Setup readiness finding
|
|
25
|
-
*/
|
|
26
|
-
export function setupFinding(check, status, reason) {
|
|
27
|
-
return { check, layer: "deterministic", status, reason };
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Validate, detach, and freeze a Setup readiness projection.
|
|
31
|
-
* @param candidate - Untrusted projection
|
|
32
|
-
* @returns Strict schema-v1 result with exactly the twelve checklist findings
|
|
33
|
-
*/
|
|
34
|
-
export function validateSetupReadinessResult(candidate) {
|
|
35
|
-
const record = requireStrictRecord(candidate, ["schemaVersion", "observedAt", "findings"], "SetupReadinessResult");
|
|
36
|
-
if (readStrictProperty(record, "schemaVersion") !== 1) {
|
|
37
|
-
throw new Error("Invalid setup readiness schemaVersion: expected 1");
|
|
38
|
-
}
|
|
39
|
-
const observedAt = requireCanonicalUtcTimestamp(readStrictProperty(record, "observedAt"), "observedAt");
|
|
40
|
-
const rawFindings = readStrictDenseArray(readStrictProperty(record, "findings"), SETUP_READINESS_CHECKS.length, SETUP_READINESS_CHECKS.length, "findings");
|
|
41
|
-
const validated = validateHealthResult({
|
|
42
|
-
schemaVersion: 1,
|
|
43
|
-
runId: "setup-readiness-validation",
|
|
44
|
-
mode: "deterministic",
|
|
45
|
-
startedAt: observedAt,
|
|
46
|
-
completedAt: observedAt,
|
|
47
|
-
findings: rawFindings,
|
|
48
|
-
summary: summarizeHealthFindings(rawFindings),
|
|
49
|
-
}).findings;
|
|
50
|
-
const actual = validated.map(finding => finding.check);
|
|
51
|
-
if (SETUP_READINESS_CHECKS.some((check, index) => actual[index] !== check)) {
|
|
52
|
-
throw new Error(`Invalid setup readiness checks: expected ${SETUP_READINESS_CHECKS.join(", ")}`);
|
|
53
|
-
}
|
|
54
|
-
const findings = validated;
|
|
55
|
-
return Object.freeze({
|
|
56
|
-
schemaVersion: 1,
|
|
57
|
-
observedAt,
|
|
58
|
-
findings: Object.freeze(findings),
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=ui-setup-readiness-contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-contract.js","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-contract.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AAExC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,eAAe;IACf,YAAY;IACZ,mBAAmB;IACnB,iBAAiB;IACjB,eAAe;IACf,kBAAkB;IAClB,yBAAyB;IACzB,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,0BAA0B;CAClB,CAAC;AAkBX;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,KAA0B,EAC1B,MAAoB,EACpB,MAAc;IAEd,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAC1C,SAAkB;IAElB,MAAM,MAAM,GAAG,mBAAmB,CAChC,SAAS,EACT,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,CAAU,EACpD,sBAAsB,CACvB,CAAC;IACF,IAAI,kBAAkB,CAAC,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IACD,MAAM,UAAU,GAAG,4BAA4B,CAC7C,kBAAkB,CAAC,MAAM,EAAE,YAAY,CAAC,EACxC,YAAY,CACb,CAAC;IACF,MAAM,WAAW,GAAG,oBAAoB,CACtC,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,EACtC,sBAAsB,CAAC,MAAM,EAC7B,sBAAsB,CAAC,MAAM,EAC7B,UAAU,CACX,CAAC;IACF,MAAM,SAAS,GAAG,oBAAoB,CAAC;QACrC,aAAa,EAAE,CAAC;QAChB,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,UAAU;QACrB,WAAW,EAAE,UAAU;QACvB,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,uBAAuB,CAAC,WAAW,CAAC;KAC9C,CAAC,CAAC,QAAQ,CAAC;IACZ,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACvD,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CACb,4CAA4C,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAChF,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,SAA6C,CAAC;IAC/D,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,aAAa,EAAE,CAAC;QAChB,UAAU;QACV,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;KAClC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { HealthResult } from "../health/contract.js";
|
|
2
|
-
import type { JsonObject } from "../sync/json-path.js";
|
|
3
|
-
import { type SetupReadinessFinding } from "./ui-setup-readiness-contract.js";
|
|
4
|
-
/** Fixed Health checks that establish common project-owned apply surfaces. */
|
|
5
|
-
export declare const INSTALL_HEALTH_CHECKS: readonly ["project.state", "templates.managed", "package.conformance", "hooks.managed"];
|
|
6
|
-
/**
|
|
7
|
-
* Derive Codex's exact current managed-file set from the same selected plugin
|
|
8
|
-
* and agent discovery contract used by apply. No project file is trusted as a
|
|
9
|
-
* declaration of completeness.
|
|
10
|
-
* @param projectRoot - Project root to inspect
|
|
11
|
-
* @param config - Merged Lisa project configuration
|
|
12
|
-
* @returns Frozen authoritative Codex managed-file paths
|
|
13
|
-
*/
|
|
14
|
-
export declare function expectedCodexManagedFiles(projectRoot: string, config: JsonObject): Promise<readonly string[]>;
|
|
15
|
-
/**
|
|
16
|
-
* Establish only installation state that Lisa can observe authoritatively.
|
|
17
|
-
* External plugin/runtime state remains non-pass when no bounded reader exists.
|
|
18
|
-
* @param projectRoot - Project root to inspect
|
|
19
|
-
* @param config - Merged Lisa project configuration
|
|
20
|
-
* @param health - Current deterministic Health evidence, when available
|
|
21
|
-
* @returns Installation readiness finding for the configured harness
|
|
22
|
-
*/
|
|
23
|
-
export declare function installFinding(projectRoot: string, config: JsonObject, health: HealthResult | undefined): Promise<SetupReadinessFinding>;
|
|
24
|
-
//# sourceMappingURL=ui-setup-readiness-install.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-install.d.ts","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-install.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAO1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAI1C,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,yFAKxB,CAAC;AAiIX;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAwB5B;AAuFD;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAqEhC"}
|