@codyswann/lisa 4.107.1 → 4.107.3
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,341 +0,0 @@
|
|
|
1
|
-
import { getAtPath, isJsonObject, } from "../sync/json-path.js";
|
|
2
|
-
import { runConfigSync } from "../sync/config-sync.js";
|
|
3
|
-
import { SYNC_REGISTRY } from "../sync/registry.js";
|
|
4
|
-
import { readConfinedMergedConfig } from "./ui-confined-project-read.js";
|
|
5
|
-
import { persistRoutedConfigChanges, } from "./ui-config-write-persistence.js";
|
|
6
|
-
import { parseUnambiguousJson } from "./ui-config-write-document.js";
|
|
7
|
-
const JSON_CONTENT_TYPE = "application/json; charset=utf-8";
|
|
8
|
-
const MAX_CONFIG_WRITE_BYTES = 128 * 1024;
|
|
9
|
-
const NO_STORE = "no-store";
|
|
10
|
-
const TEXT_CONTENT_TYPE = "text/plain; charset=utf-8";
|
|
11
|
-
const LOCAL_CONFIG_KEYS = new Set([
|
|
12
|
-
"atlassian.email",
|
|
13
|
-
"intake.assignee",
|
|
14
|
-
"playStore.serviceAccountKeyPath",
|
|
15
|
-
]);
|
|
16
|
-
/** Error raised for malformed request bodies that should return 400. */
|
|
17
|
-
class RequestBodyError extends Error {
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Error raised when the config landed but propagation or re-read did not.
|
|
21
|
-
*
|
|
22
|
-
* The write is already durable at this point, so the endpoint must not claim
|
|
23
|
-
* the write failed. It reports the propagation failure instead, because a
|
|
24
|
-
* silent success here would leave exactly the config-versus-artifact drift the
|
|
25
|
-
* in-band sync exists to remove.
|
|
26
|
-
*/
|
|
27
|
-
class ConfigPropagationError extends Error {
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Restrict loopback origins to the authority advertised by `lisa ui`.
|
|
31
|
-
* @param host - Origin URL host
|
|
32
|
-
* @returns Whether the authority is 127.0.0.1 with an optional valid port
|
|
33
|
-
*/
|
|
34
|
-
function isLoopbackHost(host) {
|
|
35
|
-
if (host === "127.0.0.1") {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
const prefix = "127.0.0.1:";
|
|
39
|
-
if (!host.startsWith(prefix)) {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
const portText = host.slice(prefix.length);
|
|
43
|
-
const digitsOnly = Array.from(portText).every(character => character >= "0" && character <= "9");
|
|
44
|
-
const port = Number(portText);
|
|
45
|
-
return (portText.length > 0 &&
|
|
46
|
-
portText.length <= 5 &&
|
|
47
|
-
digitsOnly &&
|
|
48
|
-
port > 0 &&
|
|
49
|
-
port <= 65_535);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Reject request origins that are not the advertised loopback listener.
|
|
53
|
-
* @param origin - Incoming Origin header
|
|
54
|
-
* @param host - Incoming Host header
|
|
55
|
-
* @returns Whether the origin is the exact http://127.0.0.1 listener authority
|
|
56
|
-
*/
|
|
57
|
-
function isExpectedLoopbackOrigin(origin, host) {
|
|
58
|
-
if (origin === undefined || host === undefined) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
const parsed = new URL(origin);
|
|
63
|
-
return (origin === parsed.origin &&
|
|
64
|
-
parsed.protocol === "http:" &&
|
|
65
|
-
parsed.host === host &&
|
|
66
|
-
isLoopbackHost(parsed.host));
|
|
67
|
-
}
|
|
68
|
-
catch {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Check whether an unknown value can be serialized as JSON without dropping
|
|
74
|
-
* fields.
|
|
75
|
-
* @param value - Candidate payload value
|
|
76
|
-
* @returns Whether the value is JSON-compatible
|
|
77
|
-
*/
|
|
78
|
-
function isJsonValue(value) {
|
|
79
|
-
if (value === null ||
|
|
80
|
-
typeof value === "string" ||
|
|
81
|
-
typeof value === "number" ||
|
|
82
|
-
typeof value === "boolean") {
|
|
83
|
-
return Number.isFinite(value) || typeof value !== "number";
|
|
84
|
-
}
|
|
85
|
-
if (Array.isArray(value)) {
|
|
86
|
-
return value.every(isJsonValue);
|
|
87
|
-
}
|
|
88
|
-
if (isJsonObject(value)) {
|
|
89
|
-
return Object.values(value).every(isJsonValue);
|
|
90
|
-
}
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Validate a dot-path config key before it can be written to disk.
|
|
95
|
-
* @param key - Candidate config key
|
|
96
|
-
* @returns Specific validation error, or undefined when valid
|
|
97
|
-
*/
|
|
98
|
-
function validateConfigKey(key) {
|
|
99
|
-
if (key.trim() !== key || key.length === 0) {
|
|
100
|
-
return "Config change keys must be non-empty dot paths";
|
|
101
|
-
}
|
|
102
|
-
const segments = key.split(".");
|
|
103
|
-
if (segments.some(segment => segment.length === 0)) {
|
|
104
|
-
return `Config change key "${key}" contains an empty path segment`;
|
|
105
|
-
}
|
|
106
|
-
const unsafe = new Set(["__proto__", "constructor", "prototype"]);
|
|
107
|
-
if (segments.some(segment => unsafe.has(segment))) {
|
|
108
|
-
return `Config key "${key}" is not writable`;
|
|
109
|
-
}
|
|
110
|
-
return undefined;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Classify one validated key without consulting either project file.
|
|
114
|
-
* @param key - Safe non-empty dot path
|
|
115
|
-
* @returns Fixed persistence target, or undefined when the key is unauthorized
|
|
116
|
-
*/
|
|
117
|
-
function configTarget(key) {
|
|
118
|
-
if (LOCAL_CONFIG_KEYS.has(key))
|
|
119
|
-
return "local";
|
|
120
|
-
return SYNC_REGISTRY.some(entry => key === entry.key || key.startsWith(`${entry.key}.`))
|
|
121
|
-
? "committed"
|
|
122
|
-
: undefined;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Validate one sparse config-write entry.
|
|
126
|
-
* @param key - Dot-path config key
|
|
127
|
-
* @param change - Candidate JSON value
|
|
128
|
-
* @returns Specific validation error, or undefined when valid
|
|
129
|
-
*/
|
|
130
|
-
function validateChangeEntry(key, change) {
|
|
131
|
-
const keyError = validateConfigKey(key);
|
|
132
|
-
if (keyError !== undefined) {
|
|
133
|
-
return keyError;
|
|
134
|
-
}
|
|
135
|
-
if (!isJsonValue(change)) {
|
|
136
|
-
return `Config change "${key}" must be JSON-compatible`;
|
|
137
|
-
}
|
|
138
|
-
return undefined;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Validate every registered constraint against the fully merged document.
|
|
142
|
-
* @param config - Prospective committed config
|
|
143
|
-
*/
|
|
144
|
-
function validateProspectiveConfig(config) {
|
|
145
|
-
SYNC_REGISTRY.forEach(entry => {
|
|
146
|
-
if (entry.validate === undefined)
|
|
147
|
-
return;
|
|
148
|
-
const prospective = getAtPath(config, entry.key);
|
|
149
|
-
if (prospective === undefined)
|
|
150
|
-
return;
|
|
151
|
-
try {
|
|
152
|
-
entry.validate(prospective);
|
|
153
|
-
}
|
|
154
|
-
catch (error) {
|
|
155
|
-
throw new RequestBodyError(error instanceof Error
|
|
156
|
-
? error.message
|
|
157
|
-
: `Config value "${entry.key}" is invalid`);
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Parse and validate the sparse config-write payload.
|
|
163
|
-
* @param value - Parsed JSON request body
|
|
164
|
-
* @returns Dot-path changes, or a specific validation error
|
|
165
|
-
*/
|
|
166
|
-
function parseConfigWritePayload(value) {
|
|
167
|
-
if (!isJsonObject(value)) {
|
|
168
|
-
return { error: "Payload must be a JSON object" };
|
|
169
|
-
}
|
|
170
|
-
const rawChanges = value.changes;
|
|
171
|
-
if (!isJsonObject(rawChanges)) {
|
|
172
|
-
return { error: "Payload must include a changes object" };
|
|
173
|
-
}
|
|
174
|
-
const entries = Object.entries(rawChanges);
|
|
175
|
-
if (entries.length === 0) {
|
|
176
|
-
return { error: "Payload changes must include at least one config key" };
|
|
177
|
-
}
|
|
178
|
-
const error = entries
|
|
179
|
-
.map(([key, change]) => validateChangeEntry(key, change))
|
|
180
|
-
.find(Boolean);
|
|
181
|
-
if (error !== undefined) {
|
|
182
|
-
return { error };
|
|
183
|
-
}
|
|
184
|
-
const unknown = entries.find(([key]) => configTarget(key) === undefined);
|
|
185
|
-
if (unknown !== undefined) {
|
|
186
|
-
return { error: `Config key "${unknown[0]}" is not writable` };
|
|
187
|
-
}
|
|
188
|
-
const changes = entries.reduce((routed, [key, change]) => {
|
|
189
|
-
const target = configTarget(key);
|
|
190
|
-
return {
|
|
191
|
-
...routed,
|
|
192
|
-
[target]: { ...routed[target], [key]: change },
|
|
193
|
-
};
|
|
194
|
-
}, { committed: {}, local: {} });
|
|
195
|
-
return { changes };
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Read a bounded JSON body from an incoming request.
|
|
199
|
-
* @param request - Incoming HTTP request
|
|
200
|
-
* @returns Parsed JSON body
|
|
201
|
-
*/
|
|
202
|
-
async function readJsonBody(request) {
|
|
203
|
-
// eslint-disable-next-line functional/no-let -- bounded stream aggregation
|
|
204
|
-
let received = 0;
|
|
205
|
-
// eslint-disable-next-line functional/no-let -- bounded stream aggregation
|
|
206
|
-
let chunks = [];
|
|
207
|
-
for await (const chunk of request) {
|
|
208
|
-
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
209
|
-
received += buffer.byteLength;
|
|
210
|
-
if (received > MAX_CONFIG_WRITE_BYTES) {
|
|
211
|
-
throw new RequestBodyError("Payload exceeds 128 KiB limit");
|
|
212
|
-
}
|
|
213
|
-
chunks = [...chunks, buffer];
|
|
214
|
-
}
|
|
215
|
-
if (chunks.length === 0) {
|
|
216
|
-
throw new RequestBodyError("Payload body is required");
|
|
217
|
-
}
|
|
218
|
-
const text = decodeRequestBody(Buffer.concat(chunks));
|
|
219
|
-
try {
|
|
220
|
-
return parseUnambiguousJson(text, "Payload body");
|
|
221
|
-
}
|
|
222
|
-
catch {
|
|
223
|
-
throw new RequestBodyError("Payload body must be valid JSON");
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Decode request bytes without replacement characters so malformed encodings
|
|
228
|
-
* cannot be normalized into a different valid property name or value.
|
|
229
|
-
* @param bytes - Exact bounded request entity
|
|
230
|
-
* @returns Valid UTF-8 request text
|
|
231
|
-
*/
|
|
232
|
-
function decodeRequestBody(bytes) {
|
|
233
|
-
try {
|
|
234
|
-
return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
235
|
-
}
|
|
236
|
-
catch {
|
|
237
|
-
throw new RequestBodyError("Payload body must be valid JSON");
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Propagate a landed write to the mirrored artifacts and re-read the result.
|
|
242
|
-
*
|
|
243
|
-
* The write and its propagation are one user action: a Save that updated
|
|
244
|
-
* `.lisa.config.json` while leaving `vitest.thresholds.json` behind would leave
|
|
245
|
-
* the console claiming one floor while CI enforced another. `runConfigSync`
|
|
246
|
-
* only rewrites artifact files that already exist, so this never scaffolds an
|
|
247
|
-
* artifact a project did not ask for.
|
|
248
|
-
*
|
|
249
|
-
* The merged config is read back from disk afterwards rather than derived from
|
|
250
|
-
* the prospective document, so the response describes what actually landed —
|
|
251
|
-
* including any value sync itself populated — instead of what the request
|
|
252
|
-
* assumed.
|
|
253
|
-
* @param destDir - Project root whose config was just written
|
|
254
|
-
* @returns Committed-plus-local merged config, with local winning per key
|
|
255
|
-
*/
|
|
256
|
-
async function propagateAndReadMergedConfig(destDir) {
|
|
257
|
-
try {
|
|
258
|
-
await runConfigSync(destDir);
|
|
259
|
-
return await readConfinedMergedConfig(destDir);
|
|
260
|
-
}
|
|
261
|
-
catch (error) {
|
|
262
|
-
throw new ConfigPropagationError(error instanceof Error ? error.message : "Config propagation failed");
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Choose an error message that never misreports which stage actually failed.
|
|
267
|
-
*
|
|
268
|
-
* A propagation failure happens after the config is already durable, so
|
|
269
|
-
* reporting it as a failed write would tell the operator to retry a write that
|
|
270
|
-
* already succeeded.
|
|
271
|
-
* @param error - Rejected value from the request pipeline
|
|
272
|
-
* @param isRequestBodyError - Whether the request itself was malformed
|
|
273
|
-
* @param isPropagationError - Whether the landed write failed to propagate
|
|
274
|
-
* @returns Operator-readable message for the response body
|
|
275
|
-
*/
|
|
276
|
-
function propagationSafeMessage(error, isRequestBodyError, isPropagationError) {
|
|
277
|
-
if (isRequestBodyError && error instanceof Error) {
|
|
278
|
-
return error.message;
|
|
279
|
-
}
|
|
280
|
-
if (isPropagationError && error instanceof Error) {
|
|
281
|
-
return `Lisa config was saved, but updating the files it feeds failed: ${error.message}`;
|
|
282
|
-
}
|
|
283
|
-
return "Unable to write Lisa config";
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Serve the same-origin config write endpoint.
|
|
287
|
-
* @param request - Incoming loopback request
|
|
288
|
-
* @param response - Response associated with the request
|
|
289
|
-
* @param destDir - Project root whose committed config is written
|
|
290
|
-
*/
|
|
291
|
-
export function serveConfigWrite(request, response, destDir) {
|
|
292
|
-
if (request.method !== "POST") {
|
|
293
|
-
response.writeHead(405, {
|
|
294
|
-
allow: "POST",
|
|
295
|
-
"cache-control": NO_STORE,
|
|
296
|
-
"content-type": TEXT_CONTENT_TYPE,
|
|
297
|
-
});
|
|
298
|
-
response.end("Method not allowed");
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
if (!isExpectedLoopbackOrigin(request.headers.origin, request.headers.host)) {
|
|
302
|
-
response.writeHead(403, {
|
|
303
|
-
"cache-control": NO_STORE,
|
|
304
|
-
"content-type": JSON_CONTENT_TYPE,
|
|
305
|
-
});
|
|
306
|
-
response.end(JSON.stringify({
|
|
307
|
-
error: "Write requests must come from http://127.0.0.1",
|
|
308
|
-
}));
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
311
|
-
void readJsonBody(request)
|
|
312
|
-
.then(parseConfigWritePayload)
|
|
313
|
-
.then(async (parsed) => {
|
|
314
|
-
if ("error" in parsed) {
|
|
315
|
-
response.writeHead(400, {
|
|
316
|
-
"cache-control": NO_STORE,
|
|
317
|
-
"content-type": JSON_CONTENT_TYPE,
|
|
318
|
-
});
|
|
319
|
-
response.end(JSON.stringify({ error: parsed.error }));
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
const config = await persistRoutedConfigChanges(destDir, parsed.changes, validateProspectiveConfig, propagateAndReadMergedConfig);
|
|
323
|
-
response.writeHead(200, {
|
|
324
|
-
"cache-control": NO_STORE,
|
|
325
|
-
"content-type": JSON_CONTENT_TYPE,
|
|
326
|
-
});
|
|
327
|
-
response.end(JSON.stringify({ ok: true, config }));
|
|
328
|
-
})
|
|
329
|
-
.catch(error => {
|
|
330
|
-
const isRequestBodyError = error instanceof RequestBodyError;
|
|
331
|
-
const isPropagationError = error instanceof ConfigPropagationError;
|
|
332
|
-
response.writeHead(isRequestBodyError ? 400 : 500, {
|
|
333
|
-
"cache-control": NO_STORE,
|
|
334
|
-
"content-type": JSON_CONTENT_TYPE,
|
|
335
|
-
});
|
|
336
|
-
response.end(JSON.stringify({
|
|
337
|
-
error: propagationSafeMessage(error, isRequestBodyError, isPropagationError),
|
|
338
|
-
}));
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
//# sourceMappingURL=ui-config-write.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-config-write.js","sourceRoot":"","sources":["../../src/cli/ui-config-write.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,YAAY,GAGb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,0BAA0B,GAE3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,iBAAiB,GAAG,iCAAiC,CAAC;AAC5D,MAAM,sBAAsB,GAAG,GAAG,GAAG,IAAI,CAAC;AAC1C,MAAM,QAAQ,GAA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AE,yBAAyB,CAAC;KAChE,CAAC,CAAC;IACH,OAAO,SAAS,CACd,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EACxC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CACnB,CAAC;AAClB,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure model for Deploy pipeline stages — parse deploy.yml, map holds, assemble.
|
|
3
|
-
* @module cli/ui-deploy-pipeline-model
|
|
4
|
-
*/
|
|
5
|
-
import { type JsonValue } from "../sync/json-path.js";
|
|
6
|
-
import type { ProbeResult } from "./ui-status.js";
|
|
7
|
-
/** Stable probe id consumed by the Deploy section hydration. */
|
|
8
|
-
export declare const DEPLOY_PIPELINE_PROBE_ID = "deploy-pipeline-stages";
|
|
9
|
-
/** One row in the Deploy pipeline stages table. */
|
|
10
|
-
export type DeployPipelineStage = {
|
|
11
|
-
readonly [key: string]: JsonValue;
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
readonly description: string;
|
|
15
|
-
/** Configured GitHub environment name, or empty for workflow jobs. */
|
|
16
|
-
readonly environment: string;
|
|
17
|
-
/**
|
|
18
|
-
* Active column: `true` = hold/job present, `false` = no hold,
|
|
19
|
-
* `"unknown"` = cannot claim hold/no-hold without lying.
|
|
20
|
-
*/
|
|
21
|
-
readonly active: boolean | "unknown";
|
|
22
|
-
/** Required when `active` is false or unknown; empty otherwise. */
|
|
23
|
-
readonly reason: string;
|
|
24
|
-
};
|
|
25
|
-
/** Structured value emitted by the deploy-pipeline-stages probe. */
|
|
26
|
-
export type DeployPipelineValue = {
|
|
27
|
-
readonly [key: string]: JsonValue;
|
|
28
|
-
readonly stages: DeployPipelineStage[];
|
|
29
|
-
};
|
|
30
|
-
/** One GitHub environment as returned by the Environments API. */
|
|
31
|
-
export type GithubEnvironmentInfo = {
|
|
32
|
-
readonly name: string;
|
|
33
|
-
readonly hasRequiredReviewers: boolean;
|
|
34
|
-
};
|
|
35
|
-
/** Result of listing GitHub environments — never invents a concrete hold. */
|
|
36
|
-
export type GithubEnvironmentsLookup = {
|
|
37
|
-
readonly status: "ok";
|
|
38
|
-
readonly environments: readonly GithubEnvironmentInfo[];
|
|
39
|
-
} | {
|
|
40
|
-
readonly status: "not-authenticated";
|
|
41
|
-
readonly message: string;
|
|
42
|
-
} | {
|
|
43
|
-
readonly status: "error";
|
|
44
|
-
readonly message: string;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Extract ordered job stages from a deploy.yml document.
|
|
48
|
-
* @param contents - Raw YAML text
|
|
49
|
-
* @returns Workflow job stages in document order
|
|
50
|
-
*/
|
|
51
|
-
export declare function parseDeployWorkflowStages(contents: string): readonly DeployPipelineStage[];
|
|
52
|
-
/**
|
|
53
|
-
* Map one configured environment onto a hold stage using live GH evidence.
|
|
54
|
-
* @param environment - Configured environment name
|
|
55
|
-
* @param lookup - Live environments API result
|
|
56
|
-
* @returns Approval-hold stage that never false-greens
|
|
57
|
-
*/
|
|
58
|
-
export declare function mapEnvironmentHoldStage(environment: string, lookup: GithubEnvironmentsLookup): DeployPipelineStage;
|
|
59
|
-
/**
|
|
60
|
-
* Interleave approval holds before the first release job (or append).
|
|
61
|
-
* @param jobStages - Stages parsed from deploy.yml
|
|
62
|
-
* @param holdStages - Per-environment approval hold stages
|
|
63
|
-
* @returns Ordered pipeline stages for the console table
|
|
64
|
-
*/
|
|
65
|
-
export declare function assembleDeployPipelineStages(jobStages: readonly DeployPipelineStage[], holdStages: readonly DeployPipelineStage[]): readonly DeployPipelineStage[];
|
|
66
|
-
/**
|
|
67
|
-
* Build the tri-state probe result from filesystem + live environment inputs.
|
|
68
|
-
* @param workflow - deploy.yml contents, or null when absent
|
|
69
|
-
* @param configuredEnvironments - Keys from github.environments
|
|
70
|
-
* @param lookup - Live GitHub environments lookup
|
|
71
|
-
* @returns Probe result — value, not-applicable, or unknown
|
|
72
|
-
*/
|
|
73
|
-
export declare function buildDeployPipelineResult(workflow: string | null, configuredEnvironments: readonly string[], lookup: GithubEnvironmentsLookup): ProbeResult<DeployPipelineValue>;
|
|
74
|
-
//# sourceMappingURL=ui-deploy-pipeline-model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-deploy-pipeline-model.d.ts","sourceRoot":"","sources":["../../src/cli/ui-deploy-pipeline-model.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AAKjE,mDAAmD;AACnD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,mEAAmE;IACnE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,oEAAoE;AACpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC;CACxC,CAAC;AAEF,kEAAkE;AAClE,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,6EAA6E;AAC7E,MAAM,MAAM,wBAAwB,GAChC;IACE,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACzD,GACD;IACE,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,GACD;IAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,GACf,SAAS,mBAAmB,EAAE,CA2BhC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,wBAAwB,GAC/B,mBAAmB,CAqCrB;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,SAAS,mBAAmB,EAAE,EACzC,UAAU,EAAE,SAAS,mBAAmB,EAAE,GACzC,SAAS,mBAAmB,EAAE,CAkBhC;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,sBAAsB,EAAE,SAAS,MAAM,EAAE,EACzC,MAAM,EAAE,wBAAwB,GAC/B,WAAW,CAAC,mBAAmB,CAAC,CAWlC"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure model for Deploy pipeline stages — parse deploy.yml, map holds, assemble.
|
|
3
|
-
* @module cli/ui-deploy-pipeline-model
|
|
4
|
-
*/
|
|
5
|
-
import { isJsonObject } from "../sync/json-path.js";
|
|
6
|
-
import { loadYaml } from "../utils/yaml.js";
|
|
7
|
-
/** Stable probe id consumed by the Deploy section hydration. */
|
|
8
|
-
export const DEPLOY_PIPELINE_PROBE_ID = "deploy-pipeline-stages";
|
|
9
|
-
const NOT_AUTHENTICATED_REASON = "not-authenticated";
|
|
10
|
-
const ENVIRONMENT_NOT_FOUND_REASON = "environment-not-found";
|
|
11
|
-
/**
|
|
12
|
-
* Extract ordered job stages from a deploy.yml document.
|
|
13
|
-
* @param contents - Raw YAML text
|
|
14
|
-
* @returns Workflow job stages in document order
|
|
15
|
-
*/
|
|
16
|
-
export function parseDeployWorkflowStages(contents) {
|
|
17
|
-
try {
|
|
18
|
-
const loaded = loadYaml(contents);
|
|
19
|
-
if (!isJsonObject(loaded)) {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
const jobs = loaded.jobs;
|
|
23
|
-
if (!isJsonObject(jobs)) {
|
|
24
|
-
return [];
|
|
25
|
-
}
|
|
26
|
-
return Object.entries(jobs).map(([id, job]) => {
|
|
27
|
-
const name = isJsonObject(job) && typeof job.name === "string" && job.name.length > 0
|
|
28
|
-
? job.name
|
|
29
|
-
: id;
|
|
30
|
-
return {
|
|
31
|
-
id: `job:${id}`,
|
|
32
|
-
name,
|
|
33
|
-
description: `Workflow job \`${id}\` from deploy.yml`,
|
|
34
|
-
environment: "",
|
|
35
|
-
active: true,
|
|
36
|
-
reason: "",
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
catch {
|
|
41
|
-
return [];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Map one configured environment onto a hold stage using live GH evidence.
|
|
46
|
-
* @param environment - Configured environment name
|
|
47
|
-
* @param lookup - Live environments API result
|
|
48
|
-
* @returns Approval-hold stage that never false-greens
|
|
49
|
-
*/
|
|
50
|
-
export function mapEnvironmentHoldStage(environment, lookup) {
|
|
51
|
-
const base = {
|
|
52
|
-
id: `hold:${environment}`,
|
|
53
|
-
name: `Release approval — ${environment}`,
|
|
54
|
-
description: `Pauses at the release_approval job until a configured reviewer approves the GitHub environment \`${environment}\``,
|
|
55
|
-
environment,
|
|
56
|
-
};
|
|
57
|
-
if (lookup.status === "not-authenticated") {
|
|
58
|
-
return {
|
|
59
|
-
...base,
|
|
60
|
-
active: "unknown",
|
|
61
|
-
reason: `${NOT_AUTHENTICATED_REASON}: ${lookup.message}`,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
if (lookup.status === "error") {
|
|
65
|
-
return {
|
|
66
|
-
...base,
|
|
67
|
-
active: "unknown",
|
|
68
|
-
reason: `environments-api-error: ${lookup.message}`,
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
const match = lookup.environments.find(entry => entry.name === environment);
|
|
72
|
-
if (match === undefined) {
|
|
73
|
-
return {
|
|
74
|
-
...base,
|
|
75
|
-
active: "unknown",
|
|
76
|
-
reason: `${ENVIRONMENT_NOT_FOUND_REASON}: GitHub environment '${environment}' is named in github.environments but was not found on the repository`,
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
if (match.hasRequiredReviewers) {
|
|
80
|
-
return { ...base, active: true, reason: "" };
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
...base,
|
|
84
|
-
active: false,
|
|
85
|
-
reason: `No required reviewers on GitHub environment '${environment}'`,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Interleave approval holds before the first release job (or append).
|
|
90
|
-
* @param jobStages - Stages parsed from deploy.yml
|
|
91
|
-
* @param holdStages - Per-environment approval hold stages
|
|
92
|
-
* @returns Ordered pipeline stages for the console table
|
|
93
|
-
*/
|
|
94
|
-
export function assembleDeployPipelineStages(jobStages, holdStages) {
|
|
95
|
-
if (holdStages.length === 0) {
|
|
96
|
-
return jobStages;
|
|
97
|
-
}
|
|
98
|
-
if (jobStages.length === 0) {
|
|
99
|
-
return holdStages;
|
|
100
|
-
}
|
|
101
|
-
const releaseIndex = jobStages.findIndex(stage => /release/iu.test(stage.id) || /release/iu.test(stage.name));
|
|
102
|
-
if (releaseIndex === -1) {
|
|
103
|
-
return [...jobStages, ...holdStages];
|
|
104
|
-
}
|
|
105
|
-
return [
|
|
106
|
-
...jobStages.slice(0, releaseIndex),
|
|
107
|
-
...holdStages,
|
|
108
|
-
...jobStages.slice(releaseIndex),
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Build the tri-state probe result from filesystem + live environment inputs.
|
|
113
|
-
* @param workflow - deploy.yml contents, or null when absent
|
|
114
|
-
* @param configuredEnvironments - Keys from github.environments
|
|
115
|
-
* @param lookup - Live GitHub environments lookup
|
|
116
|
-
* @returns Probe result — value, not-applicable, or unknown
|
|
117
|
-
*/
|
|
118
|
-
export function buildDeployPipelineResult(workflow, configuredEnvironments, lookup) {
|
|
119
|
-
const jobStages = workflow === null ? [] : parseDeployWorkflowStages(workflow);
|
|
120
|
-
const holdStages = configuredEnvironments.map(name => mapEnvironmentHoldStage(name, lookup));
|
|
121
|
-
const stages = assembleDeployPipelineStages(jobStages, holdStages);
|
|
122
|
-
if (stages.length === 0) {
|
|
123
|
-
return { state: "not-applicable" };
|
|
124
|
-
}
|
|
125
|
-
return { state: "value", value: { stages: [...stages] } };
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=ui-deploy-pipeline-model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-deploy-pipeline-model.js","sourceRoot":"","sources":["../../src/cli/ui-deploy-pipeline-model.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAkB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AAEjE,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AACrD,MAAM,4BAA4B,GAAG,uBAAuB,CAAC;AA2C7D;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,QAAgB;IAEhB,IAAI,CAAC;QACH,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IAAI,CAAC,CACpE,CAAC;IACF,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;QACL,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC;QACnC,GAAG,UAAU;QACb,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC;KACjC,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACvC,QAAuB,EACvB,sBAAyC,EACzC,MAAgC;IAEhC,MAAM,SAAS,GACb,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAC/D,MAAM,UAAU,GAAG,sBAAsB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CACnD,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,CACtC,CAAC;IACF,MAAM,MAAM,GAAG,4BAA4B,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,EAAE,CAAC;AAC5D,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { StatusProbe } from "./ui-status.js";
|
|
2
|
-
import { type DeployPipelineValue, type GithubEnvironmentsLookup } from "./ui-deploy-pipeline-model.js";
|
|
3
|
-
export { assembleDeployPipelineStages, buildDeployPipelineResult, DEPLOY_PIPELINE_PROBE_ID, mapEnvironmentHoldStage, parseDeployWorkflowStages, type DeployPipelineStage, type DeployPipelineValue, type GithubEnvironmentInfo, type GithubEnvironmentsLookup, } from "./ui-deploy-pipeline-model.js";
|
|
4
|
-
/** Injectable collaborators for focused unit tests. */
|
|
5
|
-
export type DeployPipelineDependencies = {
|
|
6
|
-
readonly readDeployWorkflow?: (cwd: string) => Promise<string | null>;
|
|
7
|
-
readonly readConfiguredEnvironments?: (cwd: string) => Promise<readonly string[]>;
|
|
8
|
-
readonly listGithubEnvironments?: (cwd: string, signal: AbortSignal, timeoutMs: number) => Promise<GithubEnvironmentsLookup>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* List GitHub Environments for the project's origin repo via `gh api`.
|
|
12
|
-
* @param cwd - Project root
|
|
13
|
-
* @param signal - Probe cancellation signal
|
|
14
|
-
* @param timeoutMs - Child-process timeout
|
|
15
|
-
* @returns Authenticated list, not-authenticated, or error
|
|
16
|
-
*/
|
|
17
|
-
export declare function listGithubEnvironmentsViaGh(cwd: string, signal: AbortSignal, timeoutMs: number): Promise<GithubEnvironmentsLookup>;
|
|
18
|
-
/**
|
|
19
|
-
* Create the probe that reports Deploy pipeline stages for `lisa ui`.
|
|
20
|
-
* @param cwd - Project root the console is serving
|
|
21
|
-
* @param dependencies - Injectable IO for focused tests
|
|
22
|
-
* @returns Status probe registered as `deploy-pipeline-stages`
|
|
23
|
-
*/
|
|
24
|
-
export declare function createDeployPipelineProbe(cwd: string, dependencies?: DeployPipelineDependencies): StatusProbe<DeployPipelineValue>;
|
|
25
|
-
//# sourceMappingURL=ui-deploy-pipeline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-deploy-pipeline.d.ts","sourceRoot":"","sources":["../../src/cli/ui-deploy-pipeline.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAGL,KAAK,mBAAmB,EAExB,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,+BAA+B,CAAC;AAKvC,uDAAuD;AACvD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtE,QAAQ,CAAC,0BAA0B,CAAC,EAAE,CACpC,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAChC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAChC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACxC,CAAC;AAmIF;;;;;;GAMG;AACH,wBAAsB,2BAA2B,CAC/C,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,wBAAwB,CAAC,CAuBnC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,YAAY,GAAE,0BAA+B,GAC5C,WAAW,CAAC,mBAAmB,CAAC,CA2BlC"}
|