@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
package/dist/cli/ui-status.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "../sync/json-path.js";
|
|
2
|
-
import { type ProbeResult } from "./ui-status-json.js";
|
|
3
|
-
export type { ProbeResult } from "./ui-status-json.js";
|
|
4
|
-
/** One bounded, independently executable live-status probe. */
|
|
5
|
-
export interface StatusProbe<T extends JsonValue = JsonValue> {
|
|
6
|
-
/** Stable identifier used as the status endpoint's object key. */
|
|
7
|
-
readonly id: string;
|
|
8
|
-
/** Abort-aware operation returning an explicit tri-state result. */
|
|
9
|
-
readonly run: (signal: AbortSignal) => Promise<ProbeResult<T>>;
|
|
10
|
-
/** Maximum time the status endpoint will await this probe. */
|
|
11
|
-
readonly timeoutMs: number;
|
|
12
|
-
}
|
|
13
|
-
/** Injectable check used by the reference GitHub authentication probe. */
|
|
14
|
-
export type GithubAuthCheck = (cwd: string, timeoutMs: number, signal: AbortSignal, hostname: string) => Promise<"authenticated" | "not-authenticated">;
|
|
15
|
-
/** Injectable effective-origin reader used by the GitHub reference probe. */
|
|
16
|
-
export type GitRemoteReader = (cwd: string, timeoutMs: number, signal: AbortSignal) => Promise<string>;
|
|
17
|
-
/**
|
|
18
|
-
* Run one probe without allowing it to block siblings or fabricate data.
|
|
19
|
-
* @param probe - Probe to execute
|
|
20
|
-
* @returns Explicit result, or unknown for invalid input, failure, or timeout
|
|
21
|
-
*/
|
|
22
|
-
export declare function runProbe<T extends JsonValue>(probe: StatusProbe<T>): Promise<ProbeResult<T>>;
|
|
23
|
-
/**
|
|
24
|
-
* Create the reference GitHub authentication probe.
|
|
25
|
-
* @param cwd - Project root used as the command working directory
|
|
26
|
-
* @param check - Injectable command check used by focused tests
|
|
27
|
-
* @param readRemote - Injectable effective-origin reader used by focused tests
|
|
28
|
-
* @returns Reference probe for the live-status transport
|
|
29
|
-
*/
|
|
30
|
-
export declare function createGithubAuthProbe(cwd: string, check?: GithubAuthCheck, readRemote?: GitRemoteReader): StatusProbe<boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* Validate probe keys before binding a server so status snapshots cannot lose data.
|
|
33
|
-
* @param probes - Registered status probes
|
|
34
|
-
*/
|
|
35
|
-
export declare function validateStatusProbes(probes: readonly StatusProbe[]): void;
|
|
36
|
-
/**
|
|
37
|
-
* Execute all probes concurrently, with failures isolated per probe.
|
|
38
|
-
* @param probes - Probes to execute
|
|
39
|
-
* @returns Results keyed by stable probe identifier
|
|
40
|
-
*/
|
|
41
|
-
export declare function readStatusSnapshot(probes: readonly StatusProbe[]): Promise<Record<string, ProbeResult>>;
|
|
42
|
-
//# sourceMappingURL=ui-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-status.d.ts","sourceRoot":"","sources":["../../src/cli/ui-status.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,+DAA+D;AAC/D,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAC1D,kEAAkE;IAClE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,0EAA0E;AAC1E,MAAM,MAAM,eAAe,GAAG,CAC5B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,eAAe,GAAG,mBAAmB,CAAC,CAAC;AAEpD,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,CAC5B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,CAAC,CAAC;AAyCrB;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAChD,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GACpB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAiCzB;AA6HD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,KAAK,GAAE,eAAqC,EAC5C,UAAU,GAAE,eAAkC,GAC7C,WAAW,CAAC,OAAO,CAAC,CAkBtB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,GAAG,IAAI,CASzE;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,SAAS,WAAW,EAAE,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAKtC"}
|
package/dist/cli/ui-status.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Live-status probe contract and bounded execution for `lisa ui`.
|
|
3
|
-
* @module cli/ui-status
|
|
4
|
-
*/
|
|
5
|
-
import { execFile } from "node:child_process";
|
|
6
|
-
import { normalizeProbeResult } from "./ui-status-json.js";
|
|
7
|
-
/** Error used internally to distinguish a bounded probe timeout. */
|
|
8
|
-
class ProbeTimeoutError extends Error {
|
|
9
|
-
/**
|
|
10
|
-
* Create a probe timeout error.
|
|
11
|
-
* @param timeoutMs - Configured timeout in milliseconds
|
|
12
|
-
*/
|
|
13
|
-
constructor(timeoutMs) {
|
|
14
|
-
super(`Probe timed out after ${timeoutMs}ms`);
|
|
15
|
-
this.name = "ProbeTimeoutError";
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Convert arbitrary thrown data into a stable failure classification.
|
|
20
|
-
* @param error - Value thrown by a probe
|
|
21
|
-
* @returns Timeout classification and non-empty human-readable message
|
|
22
|
-
*/
|
|
23
|
-
function classifyProbeError(error) {
|
|
24
|
-
try {
|
|
25
|
-
const timedOut = error instanceof ProbeTimeoutError;
|
|
26
|
-
const rawMessage = error instanceof Error ? error.message : String(error);
|
|
27
|
-
return {
|
|
28
|
-
timedOut,
|
|
29
|
-
message: rawMessage.trim().length > 0
|
|
30
|
-
? rawMessage
|
|
31
|
-
: "Probe failed without an error message",
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return {
|
|
36
|
-
timedOut: false,
|
|
37
|
-
message: "Probe failed with an unreadable error",
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Run one probe without allowing it to block siblings or fabricate data.
|
|
43
|
-
* @param probe - Probe to execute
|
|
44
|
-
* @returns Explicit result, or unknown for invalid input, failure, or timeout
|
|
45
|
-
*/
|
|
46
|
-
export async function runProbe(probe) {
|
|
47
|
-
if (!Number.isFinite(probe.timeoutMs) || probe.timeoutMs < 0) {
|
|
48
|
-
return {
|
|
49
|
-
state: "unknown",
|
|
50
|
-
reason: "invalid-timeout",
|
|
51
|
-
message: `Probe timeout must be a finite non-negative number; received ${String(probe.timeoutMs)}`,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const controller = new AbortController();
|
|
55
|
-
const timeout = new Promise((_resolve, reject) => {
|
|
56
|
-
controller.signal.addEventListener("abort", () => reject(controller.signal.reason), { once: true });
|
|
57
|
-
});
|
|
58
|
-
const timer = setTimeout(() => controller.abort(new ProbeTimeoutError(probe.timeoutMs)), probe.timeoutMs);
|
|
59
|
-
try {
|
|
60
|
-
const result = await Promise.race([probe.run(controller.signal), timeout]);
|
|
61
|
-
return normalizeProbeResult(result);
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
const { timedOut, message } = classifyProbeError(error);
|
|
65
|
-
return {
|
|
66
|
-
state: "unknown",
|
|
67
|
-
reason: timedOut ? "timeout" : "probe-failed",
|
|
68
|
-
message,
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
finally {
|
|
72
|
-
clearTimeout(timer);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Execute `gh auth status` without invoking a shell.
|
|
77
|
-
* @param cwd - Project root used as the command working directory
|
|
78
|
-
* @param timeoutMs - Child-process timeout in milliseconds
|
|
79
|
-
* @param signal - Cancellation signal controlled by the probe runner
|
|
80
|
-
* @param hostname - Project origin hostname whose active account is checked
|
|
81
|
-
* @returns Authentication state when the command runs
|
|
82
|
-
*/
|
|
83
|
-
const runGithubAuthStatus = async (cwd, timeoutMs, signal, hostname) => await new Promise((resolve, reject) => {
|
|
84
|
-
const ghExecutable = "gh";
|
|
85
|
-
execFile(
|
|
86
|
-
// eslint-disable-next-line sonarjs/no-os-command-from-path -- fixed user-installed gh executable
|
|
87
|
-
ghExecutable, ["auth", "status", "--active", "--hostname", hostname, "--json", "hosts"], { cwd, signal, timeout: timeoutMs, encoding: "utf8" }, (error, stdout) => {
|
|
88
|
-
if (error !== null) {
|
|
89
|
-
reject(error);
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
try {
|
|
93
|
-
const parsed = JSON.parse(stdout);
|
|
94
|
-
if (typeof parsed !== "object" || parsed === null) {
|
|
95
|
-
throw new TypeError("GitHub auth status did not return an object");
|
|
96
|
-
}
|
|
97
|
-
const hosts = Reflect.get(parsed, "hosts");
|
|
98
|
-
if (typeof hosts !== "object" || hosts === null) {
|
|
99
|
-
throw new TypeError("GitHub auth status omitted its hosts map");
|
|
100
|
-
}
|
|
101
|
-
const accounts = Reflect.get(hosts, hostname);
|
|
102
|
-
const authenticated = Array.isArray(accounts) &&
|
|
103
|
-
accounts.some(account => typeof account === "object" &&
|
|
104
|
-
account !== null &&
|
|
105
|
-
Reflect.get(account, "active") === true &&
|
|
106
|
-
Reflect.get(account, "state") === "success");
|
|
107
|
-
resolve(authenticated ? "authenticated" : "not-authenticated");
|
|
108
|
-
}
|
|
109
|
-
catch (parseError) {
|
|
110
|
-
reject(parseError);
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
/**
|
|
115
|
-
* Read the effective origin URL through git without invoking a shell.
|
|
116
|
-
* @param cwd - Project root
|
|
117
|
-
* @param timeoutMs - Child-process timeout
|
|
118
|
-
* @param signal - Probe cancellation signal
|
|
119
|
-
* @returns Origin remote URL
|
|
120
|
-
*/
|
|
121
|
-
async function readOriginRemote(cwd, timeoutMs, signal) {
|
|
122
|
-
return await new Promise((resolve, reject) => {
|
|
123
|
-
const gitExecutable = "git";
|
|
124
|
-
execFile(
|
|
125
|
-
// eslint-disable-next-line sonarjs/no-os-command-from-path -- fixed user-installed git executable
|
|
126
|
-
gitExecutable, ["-C", cwd, "remote", "get-url", "origin"], { cwd, signal, timeout: timeoutMs, encoding: "utf8" }, (error, stdout) => {
|
|
127
|
-
if (error !== null) {
|
|
128
|
-
reject(error);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
const remote = stdout.trim();
|
|
132
|
-
if (remote.length === 0) {
|
|
133
|
-
reject(new Error("Project origin remote is empty"));
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
resolve(remote);
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Extract a hostname from URL-form and scp-form git remotes.
|
|
142
|
-
* @param remote - Git remote URL
|
|
143
|
-
* @returns Hostname used by `gh auth status`
|
|
144
|
-
*/
|
|
145
|
-
function remoteHostname(remote) {
|
|
146
|
-
const normalize = (hostname) => {
|
|
147
|
-
const normalized = hostname.toLowerCase();
|
|
148
|
-
return normalized.endsWith(".") ? normalized.slice(0, -1) : normalized;
|
|
149
|
-
};
|
|
150
|
-
if (!remote.includes("://")) {
|
|
151
|
-
const separator = remote.indexOf(":");
|
|
152
|
-
const authority = separator > 0 ? remote.slice(0, separator) : "";
|
|
153
|
-
const host = authority.slice(authority.lastIndexOf("@") + 1);
|
|
154
|
-
const looksLikeWindowsPath = authority.length === 1 && /[A-Za-z]/u.test(authority);
|
|
155
|
-
if (host.length > 0 &&
|
|
156
|
-
!looksLikeWindowsPath &&
|
|
157
|
-
!Array.from(host).some(character => /\s/u.test(character))) {
|
|
158
|
-
return normalize(host);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
try {
|
|
162
|
-
const hostname = new URL(remote).hostname;
|
|
163
|
-
if (hostname.length > 0) {
|
|
164
|
-
return normalize(hostname);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
catch {
|
|
168
|
-
// Fall through to the explicit error below.
|
|
169
|
-
}
|
|
170
|
-
throw new Error(`Unable to determine GitHub hostname from origin: ${remote}`);
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Create the reference GitHub authentication probe.
|
|
174
|
-
* @param cwd - Project root used as the command working directory
|
|
175
|
-
* @param check - Injectable command check used by focused tests
|
|
176
|
-
* @param readRemote - Injectable effective-origin reader used by focused tests
|
|
177
|
-
* @returns Reference probe for the live-status transport
|
|
178
|
-
*/
|
|
179
|
-
export function createGithubAuthProbe(cwd, check = runGithubAuthStatus, readRemote = readOriginRemote) {
|
|
180
|
-
const timeoutMs = 5_000;
|
|
181
|
-
return {
|
|
182
|
-
id: "github-auth",
|
|
183
|
-
timeoutMs,
|
|
184
|
-
run: async (signal) => {
|
|
185
|
-
const remote = await readRemote(cwd, timeoutMs + 250, signal);
|
|
186
|
-
const hostname = remoteHostname(remote);
|
|
187
|
-
const state = await check(cwd, timeoutMs + 250, signal, hostname);
|
|
188
|
-
return state === "authenticated"
|
|
189
|
-
? { state: "value", value: true }
|
|
190
|
-
: {
|
|
191
|
-
state: "unknown",
|
|
192
|
-
reason: "not-authenticated",
|
|
193
|
-
message: "GitHub CLI is not authenticated",
|
|
194
|
-
};
|
|
195
|
-
},
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Validate probe keys before binding a server so status snapshots cannot lose data.
|
|
200
|
-
* @param probes - Registered status probes
|
|
201
|
-
*/
|
|
202
|
-
export function validateStatusProbes(probes) {
|
|
203
|
-
for (const [index, probe] of probes.entries()) {
|
|
204
|
-
if (probe.id.trim().length === 0) {
|
|
205
|
-
throw new Error("Probe id must contain a non-whitespace character");
|
|
206
|
-
}
|
|
207
|
-
if (probes.slice(0, index).some(candidate => candidate.id === probe.id)) {
|
|
208
|
-
throw new Error(`Duplicate probe id: ${probe.id}`);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Execute all probes concurrently, with failures isolated per probe.
|
|
214
|
-
* @param probes - Probes to execute
|
|
215
|
-
* @returns Results keyed by stable probe identifier
|
|
216
|
-
*/
|
|
217
|
-
export async function readStatusSnapshot(probes) {
|
|
218
|
-
const entries = await Promise.all(probes.map(async (probe) => [probe.id, await runProbe(probe)]));
|
|
219
|
-
return Object.fromEntries(entries);
|
|
220
|
-
}
|
|
221
|
-
//# sourceMappingURL=ui-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-status.js","sourceRoot":"","sources":["../../src/cli/ui-status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAoB,MAAM,qBAAqB,CAAC;AA4B7E,oEAAoE;AACpE,MAAM,iBAAkB,SAAQ,KAAK;IACnC;;;OAGG;IACH,YAAY,SAAiB;QAC3B,KAAK,CAAC,yBAAyB,SAAS,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAED;;;;GAIG;AACH,SAAS,kBAAkB,CAAC,KAAc;IAIxC,IAAI,CAAC;QACH,MAA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
|
-
* Evaluate the Lisa UI catalog in a code-generation-disabled VM and invoke the
|
|
5
|
-
* catalog's own renderer-aware audit. Keeping the audit in `ui/index.html`
|
|
6
|
-
* means the browser and repository guard cannot drift into different ideas of
|
|
7
|
-
* which values are renderable.
|
|
8
|
-
* @module scripts/check-ui-demo-data
|
|
9
|
-
*/
|
|
10
|
-
import { readFileSync } from "node:fs";
|
|
11
|
-
import path from "node:path";
|
|
12
|
-
import vm from "node:vm";
|
|
13
|
-
|
|
14
|
-
import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
15
|
-
|
|
16
|
-
const START_MARKER = "/* LISA_UI_CATALOG_START */";
|
|
17
|
-
const END_MARKER = "/* LISA_UI_CATALOG_END */";
|
|
18
|
-
const DEFAULT_UI_FILE = path.resolve("ui/index.html");
|
|
19
|
-
const VM_TIMEOUT_MS = 2_000;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Extract exactly one bounded catalog program from the HTML document.
|
|
23
|
-
* @param {string} html - Complete UI HTML
|
|
24
|
-
* @returns {string} Catalog JavaScript including the shared audit seam
|
|
25
|
-
*/
|
|
26
|
-
export function extractUiCatalogProgram(html) {
|
|
27
|
-
const start = html.indexOf(START_MARKER);
|
|
28
|
-
const end = html.indexOf(END_MARKER);
|
|
29
|
-
if (start === -1 || end === -1 || end <= start) {
|
|
30
|
-
throw new Error(
|
|
31
|
-
`UI catalog markers are missing or out of order (${START_MARKER}, ${END_MARKER})`
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
if (
|
|
35
|
-
html.indexOf(START_MARKER, start + START_MARKER.length) !== -1 ||
|
|
36
|
-
html.indexOf(END_MARKER, end + END_MARKER.length) !== -1
|
|
37
|
-
) {
|
|
38
|
-
throw new Error("UI catalog markers must each occur exactly once");
|
|
39
|
-
}
|
|
40
|
-
return html.slice(start + START_MARKER.length, end);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Audit an HTML catalog and optionally exercise the live preparation path.
|
|
45
|
-
* @param {string} html - Complete UI HTML
|
|
46
|
-
* @param {{liveConfigPresent?: boolean, liveConfig?: unknown, filename?: string}} [options]
|
|
47
|
-
* @returns {{audit: {inspected: number, sections: number, violations: string[]}, preparation: object|null, catalog: object}}
|
|
48
|
-
*/
|
|
49
|
-
export function inspectUiDemoData(html, options = {}) {
|
|
50
|
-
const context = vm.createContext(
|
|
51
|
-
{
|
|
52
|
-
__liveConfigPresent: options.liveConfigPresent === true,
|
|
53
|
-
__liveConfig: options.liveConfig,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
codeGeneration: { strings: false, wasm: false },
|
|
57
|
-
name: "lisa-ui-demo-data-audit",
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const program = `${extractUiCatalogProgram(html)}
|
|
61
|
-
const __auditResult = auditUiCatalog(DATA);
|
|
62
|
-
const __preparationResult = globalThis.__liveConfigPresent
|
|
63
|
-
? prepareUiCatalogForLive(DATA, globalThis.__liveConfig)
|
|
64
|
-
: null;
|
|
65
|
-
globalThis.__inspectionResult = {
|
|
66
|
-
audit: __auditResult,
|
|
67
|
-
preparation: __preparationResult,
|
|
68
|
-
catalog: DATA
|
|
69
|
-
};
|
|
70
|
-
`;
|
|
71
|
-
// The bounded catalog source is intentionally executed in a context with
|
|
72
|
-
// string/wasm code generation disabled and a hard timeout. This is the
|
|
73
|
-
// guard's shared-seam contract, not application input.
|
|
74
|
-
// eslint-disable-next-line sonarjs/code-eval -- Evaluate only the extracted catalog inside the locked VM above.
|
|
75
|
-
vm.runInContext(program, context, {
|
|
76
|
-
displayErrors: true,
|
|
77
|
-
filename: options.filename || "ui/index.html#catalog",
|
|
78
|
-
timeout: VM_TIMEOUT_MS,
|
|
79
|
-
});
|
|
80
|
-
return context.__inspectionResult;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** Run the repository guard against a supplied file or the real UI. */
|
|
84
|
-
function main() {
|
|
85
|
-
const file = path.resolve(process.argv[2] || DEFAULT_UI_FILE);
|
|
86
|
-
try {
|
|
87
|
-
const inspection = inspectUiDemoData(readFileSync(file, "utf8"), {
|
|
88
|
-
filename: file,
|
|
89
|
-
});
|
|
90
|
-
process.stdout.write(
|
|
91
|
-
`[ui-demo-data] PASS: inspected ${inspection.audit.inspected} rendered values across ${inspection.audit.sections} sections\n`
|
|
92
|
-
);
|
|
93
|
-
} catch (error) {
|
|
94
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
95
|
-
process.stderr.write(`[ui-demo-data] FAIL: ${message}\n`);
|
|
96
|
-
process.exitCode = 1;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (invokedAsScript(import.meta.url)) {
|
|
101
|
-
main();
|
|
102
|
-
}
|