@codyswann/lisa 4.107.0 → 4.107.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lisa-plugin-registration-notice.mjs +190 -0
- package/all/copy-overwrite/scripts/lisa-postinstall.mjs +6 -2
- package/all/merge/.claude/settings.json +9 -0
- package/dist/cli/{ui-ci-quality-jobs-parse.d.ts → ci-workflow-inputs.d.ts} +7 -2
- package/dist/cli/ci-workflow-inputs.d.ts.map +1 -0
- package/dist/cli/{ui-ci-quality-jobs-parse.js → ci-workflow-inputs.js} +2 -2
- package/dist/cli/ci-workflow-inputs.js.map +1 -0
- package/dist/cli/{ui-confined-project-read.d.ts → confined-project-read.d.ts} +1 -1
- package/dist/cli/confined-project-read.d.ts.map +1 -0
- package/dist/cli/{ui-confined-project-read.js → confined-project-read.js} +2 -2
- package/dist/cli/confined-project-read.js.map +1 -0
- package/dist/cli/detected-stacks.d.ts +10 -0
- package/dist/cli/detected-stacks.d.ts.map +1 -0
- package/dist/cli/{ui-detected-stacks.js → detected-stacks.js} +8 -27
- package/dist/cli/detected-stacks.js.map +1 -0
- package/dist/cli/doctor-apply-freshness.d.ts +2 -2
- package/dist/cli/doctor-apply-freshness.js +2 -2
- package/dist/cli/doctor-coderabbit-labeling.js +1 -1
- package/dist/cli/doctor-coderabbit-labeling.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +1 -1
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-instruction-files.d.ts +11 -0
- package/dist/cli/doctor-instruction-files.d.ts.map +1 -0
- package/dist/cli/doctor-instruction-files.js +57 -0
- package/dist/cli/doctor-instruction-files.js.map +1 -0
- package/dist/cli/doctor-plugin-registration.d.ts +25 -0
- package/dist/cli/doctor-plugin-registration.d.ts.map +1 -0
- package/dist/cli/doctor-plugin-registration.js +63 -0
- package/dist/cli/doctor-plugin-registration.js.map +1 -0
- package/dist/cli/doctor.d.ts +5 -2
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +11 -56
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/gate-report-ruleset.js +1 -1
- package/dist/cli/gate-report-ruleset.js.map +1 -1
- package/dist/cli/gate-report-skip-jobs.js +1 -1
- package/dist/cli/gate-report-skip-jobs.js.map +1 -1
- package/dist/cli/gate-report-types.d.ts +2 -3
- package/dist/cli/gate-report-types.d.ts.map +1 -1
- package/dist/cli/gh-cli.d.ts +14 -0
- package/dist/cli/gh-cli.d.ts.map +1 -0
- package/dist/cli/gh-cli.js +32 -0
- package/dist/cli/gh-cli.js.map +1 -0
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/removed-ui-cmd.d.ts +18 -0
- package/dist/cli/removed-ui-cmd.d.ts.map +1 -0
- package/dist/cli/removed-ui-cmd.js +17 -0
- package/dist/cli/removed-ui-cmd.js.map +1 -0
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +6 -2
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +12 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +36 -140
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/devin/enforcement-fallback-installer.d.ts +0 -8
- package/dist/devin/enforcement-fallback-installer.d.ts.map +1 -1
- package/dist/devin/enforcement-fallback-installer.js +0 -26
- package/dist/devin/enforcement-fallback-installer.js.map +1 -1
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +8 -1
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -1
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -3
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/ruleset-reach-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-reach-inspection.js +2 -7
- package/dist/health/ruleset-reach-inspection.js.map +1 -1
- package/dist/standards/capture.d.ts +1 -1
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +2 -2
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/readiness.d.ts +9 -2
- package/dist/standards/readiness.d.ts.map +1 -1
- package/dist/standards/readiness.js +12 -3
- package/dist/standards/readiness.js.map +1 -1
- package/dist/sync/json-path.d.ts +0 -10
- package/dist/sync/json-path.d.ts.map +1 -1
- package/dist/sync/json-path.js +0 -14
- package/dist/sync/json-path.js.map +1 -1
- package/dist/sync/sync-population.d.ts +0 -6
- package/dist/sync/sync-population.d.ts.map +1 -1
- package/dist/sync/sync-population.js +0 -8
- package/dist/sync/sync-population.js.map +1 -1
- package/dist/utils/marketplace-manifest.d.ts.map +1 -1
- package/dist/utils/marketplace-manifest.js +2 -3
- package/dist/utils/marketplace-manifest.js.map +1 -1
- package/package.json +4 -10
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/lisa-devin/skills/lisa-setup-automations/SKILL.md +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
- package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +1 -1
- package/scripts/check-derived-artifacts.mjs +0 -1
- package/scripts/generate-upstream-evidence-manifest.mjs +0 -1
- package/scripts/install-claude-plugins.sh +4 -1
- package/scripts/lisa-ruleset-reach.mjs +0 -3
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
- package/dist/cli/gate-report-drift-section.d.ts +0 -8
- package/dist/cli/gate-report-drift-section.d.ts.map +0 -1
- package/dist/cli/gate-report-drift-section.js +0 -76
- package/dist/cli/gate-report-drift-section.js.map +0 -1
- package/dist/cli/gate-report-fragment.d.ts +0 -11
- package/dist/cli/gate-report-fragment.d.ts.map +0 -1
- package/dist/cli/gate-report-fragment.js +0 -106
- package/dist/cli/gate-report-fragment.js.map +0 -1
- package/dist/cli/gate-report-html.d.ts +0 -47
- package/dist/cli/gate-report-html.d.ts.map +0 -1
- package/dist/cli/gate-report-html.js +0 -49
- package/dist/cli/gate-report-html.js.map +0 -1
- package/dist/cli/gate-report-preview.d.ts +0 -9
- package/dist/cli/gate-report-preview.d.ts.map +0 -1
- package/dist/cli/gate-report-preview.js +0 -55
- package/dist/cli/gate-report-preview.js.map +0 -1
- package/dist/cli/gate-report-rows.d.ts +0 -39
- package/dist/cli/gate-report-rows.d.ts.map +0 -1
- package/dist/cli/gate-report-rows.js +0 -227
- package/dist/cli/gate-report-rows.js.map +0 -1
- package/dist/cli/gate-report-sections.d.ts +0 -38
- package/dist/cli/gate-report-sections.d.ts.map +0 -1
- package/dist/cli/gate-report-sections.js +0 -225
- package/dist/cli/gate-report-sections.js.map +0 -1
- package/dist/cli/gate-report-style.d.ts +0 -19
- package/dist/cli/gate-report-style.d.ts.map +0 -1
- package/dist/cli/gate-report-style.js +0 -100
- package/dist/cli/gate-report-style.js.map +0 -1
- package/dist/cli/remote-environment-catalog.d.ts +0 -17
- package/dist/cli/remote-environment-catalog.d.ts.map +0 -1
- package/dist/cli/remote-environment-catalog.js +0 -175
- package/dist/cli/remote-environment-catalog.js.map +0 -1
- package/dist/cli/remote-environment-contract.d.ts +0 -94
- package/dist/cli/remote-environment-contract.d.ts.map +0 -1
- package/dist/cli/remote-environment-contract.js +0 -59
- package/dist/cli/remote-environment-contract.js.map +0 -1
- package/dist/cli/remote-environment-detection.d.ts +0 -23
- package/dist/cli/remote-environment-detection.d.ts.map +0 -1
- package/dist/cli/remote-environment-detection.js +0 -120
- package/dist/cli/remote-environment-detection.js.map +0 -1
- package/dist/cli/remote-environment.d.ts +0 -12
- package/dist/cli/remote-environment.d.ts.map +0 -1
- package/dist/cli/remote-environment.js +0 -73
- package/dist/cli/remote-environment.js.map +0 -1
- package/dist/cli/ui-automations-adapters.d.ts +0 -72
- package/dist/cli/ui-automations-adapters.d.ts.map +0 -1
- package/dist/cli/ui-automations-adapters.js +0 -174
- package/dist/cli/ui-automations-adapters.js.map +0 -1
- package/dist/cli/ui-automations.d.ts +0 -90
- package/dist/cli/ui-automations.d.ts.map +0 -1
- package/dist/cli/ui-automations.js +0 -149
- package/dist/cli/ui-automations.js.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-compute.d.ts +0 -44
- package/dist/cli/ui-ci-quality-jobs-compute.d.ts.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-compute.js +0 -278
- package/dist/cli/ui-ci-quality-jobs-compute.js.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-parse.d.ts.map +0 -1
- package/dist/cli/ui-ci-quality-jobs-parse.js.map +0 -1
- package/dist/cli/ui-ci-quality-jobs.d.ts +0 -22
- package/dist/cli/ui-ci-quality-jobs.d.ts.map +0 -1
- package/dist/cli/ui-ci-quality-jobs.js +0 -160
- package/dist/cli/ui-ci-quality-jobs.js.map +0 -1
- package/dist/cli/ui-cmd.d.ts +0 -87
- package/dist/cli/ui-cmd.d.ts.map +0 -1
- package/dist/cli/ui-cmd.js +0 -383
- package/dist/cli/ui-cmd.js.map +0 -1
- package/dist/cli/ui-config-write-document.d.ts +0 -53
- package/dist/cli/ui-config-write-document.d.ts.map +0 -1
- package/dist/cli/ui-config-write-document.js +0 -212
- package/dist/cli/ui-config-write-document.js.map +0 -1
- package/dist/cli/ui-config-write-patch-plan.d.ts +0 -30
- package/dist/cli/ui-config-write-patch-plan.d.ts.map +0 -1
- package/dist/cli/ui-config-write-patch-plan.js +0 -151
- package/dist/cli/ui-config-write-patch-plan.js.map +0 -1
- package/dist/cli/ui-config-write-persistence.d.ts +0 -29
- package/dist/cli/ui-config-write-persistence.d.ts.map +0 -1
- package/dist/cli/ui-config-write-persistence.js +0 -298
- package/dist/cli/ui-config-write-persistence.js.map +0 -1
- package/dist/cli/ui-config-write-property-edits.d.ts +0 -40
- package/dist/cli/ui-config-write-property-edits.d.ts.map +0 -1
- package/dist/cli/ui-config-write-property-edits.js +0 -250
- package/dist/cli/ui-config-write-property-edits.js.map +0 -1
- package/dist/cli/ui-config-write-provenance.d.ts +0 -12
- package/dist/cli/ui-config-write-provenance.d.ts.map +0 -1
- package/dist/cli/ui-config-write-provenance.js +0 -29
- package/dist/cli/ui-config-write-provenance.js.map +0 -1
- package/dist/cli/ui-config-write-root-identity.d.ts +0 -25
- package/dist/cli/ui-config-write-root-identity.d.ts.map +0 -1
- package/dist/cli/ui-config-write-root-identity.js +0 -66
- package/dist/cli/ui-config-write-root-identity.js.map +0 -1
- package/dist/cli/ui-config-write.d.ts +0 -13
- package/dist/cli/ui-config-write.d.ts.map +0 -1
- package/dist/cli/ui-config-write.js +0 -341
- package/dist/cli/ui-config-write.js.map +0 -1
- package/dist/cli/ui-confined-project-read.d.ts.map +0 -1
- package/dist/cli/ui-confined-project-read.js.map +0 -1
- package/dist/cli/ui-deploy-pipeline-model.d.ts +0 -74
- package/dist/cli/ui-deploy-pipeline-model.d.ts.map +0 -1
- package/dist/cli/ui-deploy-pipeline-model.js +0 -127
- package/dist/cli/ui-deploy-pipeline-model.js.map +0 -1
- package/dist/cli/ui-deploy-pipeline.d.ts +0 -25
- package/dist/cli/ui-deploy-pipeline.d.ts.map +0 -1
- package/dist/cli/ui-deploy-pipeline.js +0 -181
- package/dist/cli/ui-deploy-pipeline.js.map +0 -1
- package/dist/cli/ui-detected-stacks.d.ts +0 -21
- package/dist/cli/ui-detected-stacks.d.ts.map +0 -1
- package/dist/cli/ui-detected-stacks.js.map +0 -1
- package/dist/cli/ui-enabled-plugins.d.ts +0 -52
- package/dist/cli/ui-enabled-plugins.d.ts.map +0 -1
- package/dist/cli/ui-enabled-plugins.js +0 -229
- package/dist/cli/ui-enabled-plugins.js.map +0 -1
- package/dist/cli/ui-gate-report.d.ts +0 -57
- package/dist/cli/ui-gate-report.d.ts.map +0 -1
- package/dist/cli/ui-gate-report.js +0 -95
- package/dist/cli/ui-gate-report.js.map +0 -1
- package/dist/cli/ui-github-repo-expected.d.ts +0 -36
- package/dist/cli/ui-github-repo-expected.d.ts.map +0 -1
- package/dist/cli/ui-github-repo-expected.js +0 -118
- package/dist/cli/ui-github-repo-expected.js.map +0 -1
- package/dist/cli/ui-github-repo-gh.d.ts +0 -56
- package/dist/cli/ui-github-repo-gh.d.ts.map +0 -1
- package/dist/cli/ui-github-repo-gh.js +0 -117
- package/dist/cli/ui-github-repo-gh.js.map +0 -1
- package/dist/cli/ui-github-repo-map.d.ts +0 -25
- package/dist/cli/ui-github-repo-map.d.ts.map +0 -1
- package/dist/cli/ui-github-repo-map.js +0 -175
- package/dist/cli/ui-github-repo-map.js.map +0 -1
- package/dist/cli/ui-github-repo.d.ts +0 -51
- package/dist/cli/ui-github-repo.d.ts.map +0 -1
- package/dist/cli/ui-github-repo.js +0 -117
- package/dist/cli/ui-github-repo.js.map +0 -1
- package/dist/cli/ui-health.d.ts +0 -18
- package/dist/cli/ui-health.d.ts.map +0 -1
- package/dist/cli/ui-health.js +0 -101
- package/dist/cli/ui-health.js.map +0 -1
- package/dist/cli/ui-lisa-version.d.ts +0 -36
- package/dist/cli/ui-lisa-version.d.ts.map +0 -1
- package/dist/cli/ui-lisa-version.js +0 -82
- package/dist/cli/ui-lisa-version.js.map +0 -1
- package/dist/cli/ui-observability-checks.d.ts +0 -23
- package/dist/cli/ui-observability-checks.d.ts.map +0 -1
- package/dist/cli/ui-observability-checks.js +0 -156
- package/dist/cli/ui-observability-checks.js.map +0 -1
- package/dist/cli/ui-observability-providers.d.ts +0 -69
- package/dist/cli/ui-observability-providers.d.ts.map +0 -1
- package/dist/cli/ui-observability-providers.js +0 -99
- package/dist/cli/ui-observability-providers.js.map +0 -1
- package/dist/cli/ui-request-origin.d.ts +0 -8
- package/dist/cli/ui-request-origin.d.ts.map +0 -1
- package/dist/cli/ui-request-origin.js +0 -41
- package/dist/cli/ui-request-origin.js.map +0 -1
- package/dist/cli/ui-setup-readiness-config.d.ts +0 -28
- package/dist/cli/ui-setup-readiness-config.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-config.js +0 -116
- package/dist/cli/ui-setup-readiness-config.js.map +0 -1
- package/dist/cli/ui-setup-readiness-contract.d.ts +0 -32
- package/dist/cli/ui-setup-readiness-contract.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-contract.js +0 -61
- package/dist/cli/ui-setup-readiness-contract.js.map +0 -1
- package/dist/cli/ui-setup-readiness-install.d.ts +0 -24
- package/dist/cli/ui-setup-readiness-install.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-install.js +0 -211
- package/dist/cli/ui-setup-readiness-install.js.map +0 -1
- package/dist/cli/ui-setup-readiness-local.d.ts +0 -41
- package/dist/cli/ui-setup-readiness-local.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-local.js +0 -237
- package/dist/cli/ui-setup-readiness-local.js.map +0 -1
- package/dist/cli/ui-setup-readiness-remote.d.ts +0 -30
- package/dist/cli/ui-setup-readiness-remote.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness-remote.js +0 -108
- package/dist/cli/ui-setup-readiness-remote.js.map +0 -1
- package/dist/cli/ui-setup-readiness.d.ts +0 -52
- package/dist/cli/ui-setup-readiness.d.ts.map +0 -1
- package/dist/cli/ui-setup-readiness.js +0 -126
- package/dist/cli/ui-setup-readiness.js.map +0 -1
- package/dist/cli/ui-starter-sync.d.ts +0 -17
- package/dist/cli/ui-starter-sync.d.ts.map +0 -1
- package/dist/cli/ui-starter-sync.js +0 -75
- package/dist/cli/ui-starter-sync.js.map +0 -1
- package/dist/cli/ui-status-json.d.ts +0 -29
- package/dist/cli/ui-status-json.d.ts.map +0 -1
- package/dist/cli/ui-status-json.js +0 -162
- package/dist/cli/ui-status-json.js.map +0 -1
- package/dist/cli/ui-status.d.ts +0 -42
- package/dist/cli/ui-status.d.ts.map +0 -1
- package/dist/cli/ui-status.js +0 -221
- package/dist/cli/ui-status.js.map +0 -1
- package/scripts/check-ui-demo-data.mjs +0 -102
- package/ui/README.md +0 -448
- package/ui/index.html +0 -14392
|
@@ -1 +0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CAAC,sBAAsB,CAC5L;SACA,IAAI,CAAC,EAAE,CAAC,CAAC;IACZ,OAAO,OAAO,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,QAAQ,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,4BAA4B,OAAO,CAAC,MAAM,mBAAmB,KAAK,aAAa,CAAC;AACpM,CAAC;AAED;;;;;GAKG;AACH,SAAS,UAAU,CACjB,OAAwC,EACxC,KAAa;IAEb,IAAI,OAAO,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QACjC,OAAO,2BAA2B,UAAU,CAAC,KAAK,CAAC,4DAA4D,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,oCAAoC,CAAC;IACzN,CAAC;IACD,OAAO;QACL,2BAA2B,UAAU,CAAC,KAAK,CAAC,OAAO;QACnD,wBAAwB;QACxB,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1E,QAAQ;KACT,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAkB;IACxD,OAAO;QACL,UAAU,CACR,MAAM,CAAC,gBAAgB,CAAC,SAAS,EACjC,kEAAkE,CACnE;QACD,UAAU,CACR,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAC5B,4CAA4C,CAC7C;KACF,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { GateReport } from "./gate-report-types.js";
|
|
2
|
-
/** The class every rule in the report's stylesheet is scoped to. */
|
|
3
|
-
export declare const GATE_REPORT_ROOT_CLASS = "lisa-gate-report";
|
|
4
|
-
/**
|
|
5
|
-
* Render the report as a fragment for the console tab.
|
|
6
|
-
* @param report - The emitter's output
|
|
7
|
-
* @param projectLabel - How to name the project being reported on
|
|
8
|
-
* @returns HTML with no document wrapper, safe to inject into the console
|
|
9
|
-
*/
|
|
10
|
-
export declare function renderGateReportFragment(report: GateReport, projectLabel: string): string;
|
|
11
|
-
//# sourceMappingURL=gate-report-fragment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-fragment.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-fragment.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAwCzD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,GACnB,MAAM,CAmCR"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The gate report as an HTML fragment, for the Doctor tab in `lisa ui`.
|
|
3
|
-
*
|
|
4
|
-
* A fragment rather than a document because the ruling is that this is one
|
|
5
|
-
* surface: a tab alongside the console's other tabs, not a second page on a
|
|
6
|
-
* second port served by a second server.
|
|
7
|
-
*
|
|
8
|
-
* It is composed HERE and injected by the server at request time, and that is
|
|
9
|
-
* deliberate. `ui/index.html` is a single 13,000-line zero-build file with a
|
|
10
|
-
* known concurrent-edit hazard where union merges lose braces; appending a
|
|
11
|
-
* section of this size to it would make a bad merge materially worse and would
|
|
12
|
-
* put a second copy of this markup somewhere no test renders. The console
|
|
13
|
-
* gains a small block that asks the server for this string, so the file grows
|
|
14
|
-
* by tens of lines rather than hundreds, and opening `ui/index.html` straight
|
|
15
|
-
* from disk still works — the tab then says, in the report's own vocabulary,
|
|
16
|
-
* that it could not be derived without a server rather than showing an empty
|
|
17
|
-
* panel.
|
|
18
|
-
*
|
|
19
|
-
* Pure and total: report in, string out, no I/O, so the same emitter output
|
|
20
|
-
* always produces the same bytes.
|
|
21
|
-
* @module cli/gate-report-fragment
|
|
22
|
-
*/
|
|
23
|
-
import { declarationDriftSection } from "./gate-report-drift-section.js";
|
|
24
|
-
import { chip, escapeHtml } from "./gate-report-html.js";
|
|
25
|
-
import { gateRow } from "./gate-report-rows.js";
|
|
26
|
-
import { agentHooksSection, requiredContextsSection, rulesetSection, skipJobsSection, summarySection, upstreamSection, } from "./gate-report-sections.js";
|
|
27
|
-
import { GATE_REPORT_STYLE } from "./gate-report-style.js";
|
|
28
|
-
/** The class every rule in the report's stylesheet is scoped to. */
|
|
29
|
-
export const GATE_REPORT_ROOT_CLASS = "lisa-gate-report";
|
|
30
|
-
/**
|
|
31
|
-
* The legend, which is where the three states are named for the reader.
|
|
32
|
-
* @returns A block of HTML
|
|
33
|
-
*/
|
|
34
|
-
function legend() {
|
|
35
|
-
return [
|
|
36
|
-
'<div class="lgr-legend">',
|
|
37
|
-
`<span><span class="lgr-state lgr-required">must</span> declared required</span>`,
|
|
38
|
-
`<span><span class="lgr-state lgr-optional">tells</span> declared optional</span>`,
|
|
39
|
-
`<span><span class="lgr-state lgr-off">off</span> declared off — different from never declared</span>`,
|
|
40
|
-
`<span><span class="lgr-state lgr-undeclared">not declared</span> the settings file never mentions it here</span>`,
|
|
41
|
-
`<span>${chip("b-A", "A")} declared, and something reads the declaration</span>`,
|
|
42
|
-
`<span>${chip("b-B", "B")} something runs it anyway; the settings file has no say</span>`,
|
|
43
|
-
`<span>${chip("b-C", "C")} declared, but nothing can run it</span>`,
|
|
44
|
-
`<span>${chip("b-D", "D")} nothing declares it and nothing runs it</span>`,
|
|
45
|
-
`<span>${chip("unknown", "not checked here")} this run could not determine it — NOT a pass</span>`,
|
|
46
|
-
"</div>",
|
|
47
|
-
].join("");
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* The footer, which names what the report was derived from.
|
|
51
|
-
* @param report - The whole report
|
|
52
|
-
* @returns A block of HTML
|
|
53
|
-
*/
|
|
54
|
-
function footer(report) {
|
|
55
|
-
const runner = report.runner.state === "verified" ? report.runner.value : "unknown";
|
|
56
|
-
const problems = report.declarationProblems.length === 0
|
|
57
|
-
? ""
|
|
58
|
-
: ` · <strong>${report.declarationProblems.length} declaration problem(s)</strong>: ${escapeHtml(report.declarationProblems.join("; "))}`;
|
|
59
|
-
const facade = report.facadeSource.present
|
|
60
|
-
? `the workflow file was read from this checkout (${report.facadeSource.files.length} workflow file(s))`
|
|
61
|
-
: "this project holds no copy of the workflow, so what each cloud job does with a declaration could not be read";
|
|
62
|
-
return `<div class="lgr-foot"><p>Report format v${report.version} · registry read from the running Lisa package · runner <code>${escapeHtml(runner)}</code> · ${escapeHtml(facade)}${problems}</p></div>`;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Render the report as a fragment for the console tab.
|
|
66
|
-
* @param report - The emitter's output
|
|
67
|
-
* @param projectLabel - How to name the project being reported on
|
|
68
|
-
* @returns HTML with no document wrapper, safe to inject into the console
|
|
69
|
-
*/
|
|
70
|
-
export function renderGateReportFragment(report, projectLabel) {
|
|
71
|
-
const axis = report.momentAxis;
|
|
72
|
-
const head = axis
|
|
73
|
-
.map(moment => `<th class="lgr-m">${escapeHtml(moment)}</th>`)
|
|
74
|
-
.join("");
|
|
75
|
-
return [
|
|
76
|
-
`<div class="${GATE_REPORT_ROOT_CLASS}">`,
|
|
77
|
-
`<style>${GATE_REPORT_STYLE}</style>`,
|
|
78
|
-
`<p class="lgr-sub">Derived, not written. Every number below comes from ${escapeHtml(projectLabel)}'s own settings file, package scripts, git hooks and workflows, joined against Lisa's check registry. Nothing here is a language model's summary of those files.</p>`,
|
|
79
|
-
summarySection(report),
|
|
80
|
-
"<h2>Every check, and what governs it</h2>",
|
|
81
|
-
'<p class="lgr-lede">One row per check. One column per moment this project can declare a check at — there is no bare "deploy" column, because Lisa has no such moment: the deploy families take an environment suffix and only appear once a project names one.</p>',
|
|
82
|
-
legend(),
|
|
83
|
-
'<div class="lgr-scroll"><table>',
|
|
84
|
-
`<thead><tr><th>Check</th><th>What a pass proves</th><th>Command</th>${head}<th class="lgr-m">Blocks a merge</th><th>Cloud job</th></tr></thead>`,
|
|
85
|
-
`<tbody>${report.gates.map(row => gateRow(row, axis)).join("")}</tbody>`,
|
|
86
|
-
"</table></div>",
|
|
87
|
-
"<h2>What your settings imply, against what the repository requires</h2>",
|
|
88
|
-
'<p class="lgr-lede">The contexts the settings file implies, beside the ones the repository\'s branch-protection rules really require. Nothing compares these two automatically, so they are only ever equal by hand.</p>',
|
|
89
|
-
rulesetSection(report),
|
|
90
|
-
"<h2>Where the settings file and the protection disagree</h2>",
|
|
91
|
-
'<p class="lgr-lede">The set comparison above says WHICH contexts differ. This says what each difference MEANS for the declaration that was supposed to govern it — a check declared off and one never declared at all are opposite problems, not one bucket. A surface this run could not read is said to be unread; it is never reported as agreement. And agreement is not proof: a matched row means the two surfaces name the same required context, not that the check proves the property. Nothing here proposes removing a required check.</p>',
|
|
92
|
-
declarationDriftSection(report),
|
|
93
|
-
"<h2>What else gates my merges, and where does it come from</h2>",
|
|
94
|
-
'<p class="lgr-lede">Everything above describes Lisa\'s own jobs. This is every required check standing between a change and a merge, whoever put it there — including the ones Lisa neither ships nor governs.</p>',
|
|
95
|
-
requiredContextsSection(report),
|
|
96
|
-
"<h2>What this project still switches off by name</h2>",
|
|
97
|
-
skipJobsSection(report),
|
|
98
|
-
"<h2>What runs on every edit</h2>",
|
|
99
|
-
agentHooksSection(report),
|
|
100
|
-
`<h2>${report.projectIsUpstream ? "Lisa's own limitations — and this project is Lisa" : "Not this project's — Lisa's"}</h2>`,
|
|
101
|
-
upstreamSection(report),
|
|
102
|
-
footer(report),
|
|
103
|
-
"</div>",
|
|
104
|
-
].join("");
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=gate-report-fragment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,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hB;QACvhB,uBAAuB,CAAC,MAAM,CAAC;QAC/B,iEAAiE;QACjE,oNAAoN;QACpN,uBAAuB,CAAC,MAAM,CAAC;QAC/B,uDAAuD;QACvD,eAAe,CAAC,MAAM,CAAC;QACvB,kCAAkC;QAClC,iBAAiB,CAAC,MAAM,CAAC;QACzB,OAAO,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,mDAAmD,CAAC,CAAC,CAAC,6BAA6B,OAAO;QAC5H,eAAe,CAAC,MAAM,CAAC;QACvB,MAAM,CAAC,MAAM,CAAC;QACd,QAAQ;KACT,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The report's HTML primitives.
|
|
3
|
-
*
|
|
4
|
-
* One escaper and one chip vocabulary, shared by every renderer, so a state
|
|
5
|
-
* cannot acquire a second spelling. The rule the chips exist to hold: an
|
|
6
|
-
* `unknown` must never look like a pass, and — the gap that shipped in the
|
|
7
|
-
* first cut — it must never look like nothing either. A caller that omits a
|
|
8
|
-
* chip because it had nothing to show has invented a fourth outcome the
|
|
9
|
-
* three-state design never sanctioned, and silence is the one outcome a reader
|
|
10
|
-
* cannot tell from "fine".
|
|
11
|
-
* @module cli/gate-report-html
|
|
12
|
-
*/
|
|
13
|
-
import type { Finding } from "./gate-report-types.js";
|
|
14
|
-
/**
|
|
15
|
-
* Escape a string for interpolation into HTML.
|
|
16
|
-
* @param value - Raw text
|
|
17
|
-
* @returns Escaped text
|
|
18
|
-
*/
|
|
19
|
-
export declare function escapeHtml(value: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* One chip.
|
|
22
|
-
* @param variant - The chip's state class
|
|
23
|
-
* @param text - Its label
|
|
24
|
-
* @param title - Hover text explaining it
|
|
25
|
-
* @returns One chip of HTML
|
|
26
|
-
*/
|
|
27
|
-
export declare function chip(variant: string, text: string, title?: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* The chip for a finding this run could not determine.
|
|
30
|
-
*
|
|
31
|
-
* Carries the human message as hover text rather than dropping it: a report
|
|
32
|
-
* that says "not checked here" without saying why is indistinguishable from a
|
|
33
|
-
* bug in the report.
|
|
34
|
-
* @param finding - An unknown or not-applicable finding
|
|
35
|
-
* @param label - What to call it
|
|
36
|
-
* @returns One chip of HTML
|
|
37
|
-
*/
|
|
38
|
-
export declare function unknownChip(finding: Extract<Finding<unknown>, {
|
|
39
|
-
reason: string;
|
|
40
|
-
}>, label?: string): string;
|
|
41
|
-
/**
|
|
42
|
-
* One monospaced fragment.
|
|
43
|
-
* @param value - Raw text
|
|
44
|
-
* @returns The text inside a `code` element, escaped
|
|
45
|
-
*/
|
|
46
|
-
export declare function code(value: string): string;
|
|
47
|
-
//# sourceMappingURL=gate-report-html.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-html.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-html.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAWtD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKhD;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,SAAK,GAAG,MAAM,CAGtE;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,EACtD,KAAK,SAAqB,GACzB,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1C"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** Characters that must not reach the browser as markup. */
|
|
2
|
-
const ESCAPES = {
|
|
3
|
-
"&": "&",
|
|
4
|
-
"<": "<",
|
|
5
|
-
">": ">",
|
|
6
|
-
'"': """,
|
|
7
|
-
"'": "'",
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Escape a string for interpolation into HTML.
|
|
11
|
-
* @param value - Raw text
|
|
12
|
-
* @returns Escaped text
|
|
13
|
-
*/
|
|
14
|
-
export function escapeHtml(value) {
|
|
15
|
-
return value.replace(/[&<>"']/g, character => ESCAPES[character] ?? character);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* One chip.
|
|
19
|
-
* @param variant - The chip's state class
|
|
20
|
-
* @param text - Its label
|
|
21
|
-
* @param title - Hover text explaining it
|
|
22
|
-
* @returns One chip of HTML
|
|
23
|
-
*/
|
|
24
|
-
export function chip(variant, text, title = "") {
|
|
25
|
-
const attribute = title === "" ? "" : ` title="${escapeHtml(title)}"`;
|
|
26
|
-
return `<span class="lgr-chip lgr-${escapeHtml(variant)}"${attribute}>${escapeHtml(text)}</span>`;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* The chip for a finding this run could not determine.
|
|
30
|
-
*
|
|
31
|
-
* Carries the human message as hover text rather than dropping it: a report
|
|
32
|
-
* that says "not checked here" without saying why is indistinguishable from a
|
|
33
|
-
* bug in the report.
|
|
34
|
-
* @param finding - An unknown or not-applicable finding
|
|
35
|
-
* @param label - What to call it
|
|
36
|
-
* @returns One chip of HTML
|
|
37
|
-
*/
|
|
38
|
-
export function unknownChip(finding, label = "not checked here") {
|
|
39
|
-
return chip("unknown", label, finding.message);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* One monospaced fragment.
|
|
43
|
-
* @param value - Raw text
|
|
44
|
-
* @returns The text inside a `code` element, escaped
|
|
45
|
-
*/
|
|
46
|
-
export function code(value) {
|
|
47
|
-
return `<code>${escapeHtml(value)}</code>`;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=gate-report-html.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-html.js","sourceRoot":"","sources":["../../src/cli/gate-report-html.ts"],"names":[],"mappings":"AAcA,4DAA4D;AAC5D,MAAM,OAAO,GAAqC;IAChD,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,OAAO;CACb,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAU,EACV,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAC7C,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAAC,OAAe,EAAE,IAAY,EAAE,KAAK,GAAG,EAAE;IAC5D,MAAM,SAAS,GAAG,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;IACtE,OAAO,6BAA6B,UAAU,CAAC,OAAO,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC;AACpG,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CACzB,OAAsD,EACtD,KAAK,GAAG,kBAAkB;IAE1B,OAAO,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,IAAI,CAAC,KAAa;IAChC,OAAO,SAAS,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC;AAC7C,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { GateReport } from "./gate-report-types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Render the whole page.
|
|
4
|
-
* @param report - The emitter's output
|
|
5
|
-
* @param projectLabel - How to name the project being reported on
|
|
6
|
-
* @returns A complete, self-contained HTML document
|
|
7
|
-
*/
|
|
8
|
-
export declare function renderGateReportPreview(report: GateReport, projectLabel: string): string;
|
|
9
|
-
//# sourceMappingURL=gate-report-preview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-preview.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-preview.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAuBzD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,GACnB,MAAM,CAWR"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The gate report as a standalone HTML document.
|
|
3
|
-
*
|
|
4
|
-
* A thin wrapper around the fragment the console tab renders, and nothing
|
|
5
|
-
* more. The two surfaces cannot disagree because there is only one renderer:
|
|
6
|
-
* this file supplies a `<head>`, a page frame, and the console's colour tokens
|
|
7
|
-
* so the same scoped stylesheet has something to resolve against.
|
|
8
|
-
*
|
|
9
|
-
* It exists for the cases the tab cannot serve — a report written to a file, a
|
|
10
|
-
* report attached to a build — and not as a second place the report is
|
|
11
|
-
* decided. Where the report lives was an open question when the fragment was
|
|
12
|
-
* first written; it has been ruled on, and the answer is the console tab.
|
|
13
|
-
* @module cli/gate-report-preview
|
|
14
|
-
*/
|
|
15
|
-
import { renderGateReportFragment } from "./gate-report-fragment.js";
|
|
16
|
-
import { escapeHtml } from "./gate-report-html.js";
|
|
17
|
-
/**
|
|
18
|
-
* The console's token names, given dark values.
|
|
19
|
-
*
|
|
20
|
-
* The fragment's stylesheet reads the console's tokens with fallbacks, so a
|
|
21
|
-
* standalone page only has to define the same names once. Duplicating the
|
|
22
|
-
* fragment's own rules here would be the second source of truth this split
|
|
23
|
-
* exists to avoid.
|
|
24
|
-
*/
|
|
25
|
-
const DOCUMENT_TOKENS = `
|
|
26
|
-
:root{--ink:#e6e9f2;--muted:#98a0b5;--faint:#6b7280;--surface:#161923;
|
|
27
|
-
--surface2:#1b2030;--line:#252a38;--accent:#58a6ff;
|
|
28
|
-
--good:#7ee787;--good-soft:#123021;--warn:#e3b341;--warn-soft:#3a2c12;
|
|
29
|
-
--crit:#ff9492;--crit-soft:#3a1616;
|
|
30
|
-
--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
|
|
31
|
-
*{box-sizing:border-box}
|
|
32
|
-
body{margin:0;background:#0f1115;color:var(--ink);
|
|
33
|
-
font:15px/1.55 ui-sans-serif,-apple-system,"Segoe UI",Roboto,sans-serif}
|
|
34
|
-
.page{max-width:1500px;margin:0 auto;padding:32px 24px 72px}
|
|
35
|
-
h1{font-size:25px;margin:0 0 8px}
|
|
36
|
-
`;
|
|
37
|
-
/**
|
|
38
|
-
* Render the whole page.
|
|
39
|
-
* @param report - The emitter's output
|
|
40
|
-
* @param projectLabel - How to name the project being reported on
|
|
41
|
-
* @returns A complete, self-contained HTML document
|
|
42
|
-
*/
|
|
43
|
-
export function renderGateReportPreview(report, projectLabel) {
|
|
44
|
-
return `<!doctype html>
|
|
45
|
-
<html lang="en"><head><meta charset="utf-8">
|
|
46
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
47
|
-
<title>Gate report — ${escapeHtml(projectLabel)}</title>
|
|
48
|
-
<style>${DOCUMENT_TOKENS}</style></head><body>
|
|
49
|
-
<div class="page">
|
|
50
|
-
<h1>What this project's checks actually prove</h1>
|
|
51
|
-
${renderGateReportFragment(report, projectLabel)}
|
|
52
|
-
</div>
|
|
53
|
-
</body></html>`;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=gate-report-preview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-preview.js","sourceRoot":"","sources":["../../src/cli/gate-report-preview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG;;;;;;;;;;;CAWvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAkB,EAClB,YAAoB;IAEpB,OAAO;;;uBAGc,UAAU,CAAC,YAAY,CAAC;SACtC,eAAe;;;EAGtB,wBAAwB,CAAC,MAAM,EAAE,YAAY,CAAC;;eAEjC,CAAC;AAChB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Finding, GateMomentCell, GateReportRow, MergeVerdict } from "./gate-report-types.js";
|
|
2
|
-
/**
|
|
3
|
-
* One matrix cell.
|
|
4
|
-
* @param cell - The (gate, moment) pair
|
|
5
|
-
* @returns A table cell
|
|
6
|
-
*/
|
|
7
|
-
export declare function momentCell(cell: GateMomentCell): string;
|
|
8
|
-
/**
|
|
9
|
-
* Whether `package.json` has the command, said in three states and never none.
|
|
10
|
-
* @param cell - The cell carrying the command
|
|
11
|
-
* @returns One chip of HTML
|
|
12
|
-
*/
|
|
13
|
-
export declare function commandChip(cell: GateMomentCell): string;
|
|
14
|
-
/**
|
|
15
|
-
* The first cell of a row that carries a resolved command.
|
|
16
|
-
* @param row - One gate's row
|
|
17
|
-
* @returns The most informative cell, or undefined
|
|
18
|
-
*/
|
|
19
|
-
export declare function representativeCell(row: GateReportRow): GateMomentCell | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* The command column: Lisa's default on top, any override beneath it.
|
|
22
|
-
* @param row - One gate's row
|
|
23
|
-
* @returns A table cell
|
|
24
|
-
*/
|
|
25
|
-
export declare function commandCell(row: GateReportRow): string;
|
|
26
|
-
/**
|
|
27
|
-
* The merge column: yes, yes under another job's name, or no.
|
|
28
|
-
* @param merge - The row's merge finding
|
|
29
|
-
* @returns A table cell
|
|
30
|
-
*/
|
|
31
|
-
export declare function mergeCell(merge: Finding<MergeVerdict>): string;
|
|
32
|
-
/**
|
|
33
|
-
* One gate row.
|
|
34
|
-
* @param row - The gate
|
|
35
|
-
* @param axis - The report's moment axis
|
|
36
|
-
* @returns A table row
|
|
37
|
-
*/
|
|
38
|
-
export declare function gateRow(row: GateReportRow, axis: readonly string[]): string;
|
|
39
|
-
//# sourceMappingURL=gate-report-rows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-rows.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-rows.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAgDhC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAQvD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAUxD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,aAAa,GACjB,cAAc,GAAG,SAAS,CAM5B;AAkCD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAStD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,MAAM,CAY9D;AAqDD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAa3E"}
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One row of the report's matrix, and the cells that make it up.
|
|
3
|
-
*
|
|
4
|
-
* Two of the three render gaps this module closes were not data limitations.
|
|
5
|
-
* The emitter computed both and the renderer threw them away.
|
|
6
|
-
*
|
|
7
|
-
* **Provenance.** Every cell already names which of four sources supplied its
|
|
8
|
-
* command, and the report printed one command string. That matters more in a
|
|
9
|
-
* consumer than it does upstream, which is the reverse of the intuition: a
|
|
10
|
-
* reader who does not recognise a command needs to know whether it came from
|
|
11
|
-
* Lisa or from their own settings file, because that is the difference between
|
|
12
|
-
* "this is how Lisa ships" and "someone here changed this", and it decides who
|
|
13
|
-
* fixes it. So the default sits on top and the override beneath it — `here:`
|
|
14
|
-
* for a project override, `everyone:` for a registry swap that ships to all
|
|
15
|
-
* consumers.
|
|
16
|
-
*
|
|
17
|
-
* **The blank command chip.** `representativeCell` picks one cell to stand for
|
|
18
|
-
* a row, and when it found none the chip was silently omitted. Every legal
|
|
19
|
-
* cell has an answer, so a blank is never "we could not tell" — it is the
|
|
20
|
-
* renderer having nothing to say and saying nothing, which reads as fine. A
|
|
21
|
-
* row with no representative cell now says so.
|
|
22
|
-
* @module cli/gate-report-rows
|
|
23
|
-
*/
|
|
24
|
-
import { chip, code, escapeHtml, unknownChip } from "./gate-report-html.js";
|
|
25
|
-
/** The state of a fact that does not exist here at all. */
|
|
26
|
-
const NOT_APPLICABLE = "not-applicable";
|
|
27
|
-
/** How each declaration state is written. */
|
|
28
|
-
const DECLARATION_LABELS = {
|
|
29
|
-
required: "must",
|
|
30
|
-
optional: "tells",
|
|
31
|
-
off: "off",
|
|
32
|
-
"not-declared": "not declared",
|
|
33
|
-
};
|
|
34
|
-
/** What each bucket means, in one line. */
|
|
35
|
-
const BUCKET_TITLES = {
|
|
36
|
-
A: "declared, and an executor resolves the declaration",
|
|
37
|
-
B: "an executor exists, but no declaration reaches it",
|
|
38
|
-
C: "a declaration exists that nothing can execute",
|
|
39
|
-
D: "nothing declares it and nothing runs it",
|
|
40
|
-
};
|
|
41
|
-
/** The provenances worth a line of their own, and the word each is written with. */
|
|
42
|
-
const OVERRIDE_WORDS = {
|
|
43
|
-
"moment-run": "here",
|
|
44
|
-
"gate-run": "here",
|
|
45
|
-
"registry-task-at": "everyone",
|
|
46
|
-
// Nobody declared this one. The concern-named default resolves to no script
|
|
47
|
-
// in this project and the template's own prover does, so that is what runs —
|
|
48
|
-
// and a command column showing only the default would name a script the
|
|
49
|
-
// reader could not find and the runner never calls.
|
|
50
|
-
"registry-shipped-as": "installed",
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* The bucket chip for one cell, or the honest refusal to classify it.
|
|
54
|
-
* @param bucket - The cell's bucket finding
|
|
55
|
-
* @returns One chip of HTML
|
|
56
|
-
*/
|
|
57
|
-
function bucketChip(bucket) {
|
|
58
|
-
if (bucket.state === NOT_APPLICABLE)
|
|
59
|
-
return "";
|
|
60
|
-
if (bucket.state === "unknown")
|
|
61
|
-
return unknownChip(bucket);
|
|
62
|
-
return chip(`b-${bucket.value}`, bucket.value, BUCKET_TITLES[bucket.value] ?? "");
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* One matrix cell.
|
|
66
|
-
* @param cell - The (gate, moment) pair
|
|
67
|
-
* @returns A table cell
|
|
68
|
-
*/
|
|
69
|
-
export function momentCell(cell) {
|
|
70
|
-
if (!cell.legal) {
|
|
71
|
-
return '<td class="lgr-m lgr-illegal" title="the registry does not permit declaring this gate here"></td>';
|
|
72
|
-
}
|
|
73
|
-
const label = DECLARATION_LABELS[cell.declaration] ?? cell.declaration;
|
|
74
|
-
const state = cell.declaration === "not-declared" ? "undeclared" : cell.declaration;
|
|
75
|
-
return `<td class="lgr-m"><span class="lgr-state lgr-${escapeHtml(state)}">${escapeHtml(label)}</span>${bucketChip(cell.bucket)}</td>`;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Whether `package.json` has the command, said in three states and never none.
|
|
79
|
-
* @param cell - The cell carrying the command
|
|
80
|
-
* @returns One chip of HTML
|
|
81
|
-
*/
|
|
82
|
-
export function commandChip(cell) {
|
|
83
|
-
if (cell.commandExists.state === "unknown") {
|
|
84
|
-
return unknownChip(cell.commandExists, "command not checked");
|
|
85
|
-
}
|
|
86
|
-
if (cell.commandExists.state === NOT_APPLICABLE) {
|
|
87
|
-
return chip("none", "no task here", cell.commandExists.message);
|
|
88
|
-
}
|
|
89
|
-
return cell.commandExists.value
|
|
90
|
-
? chip("ok", "script exists")
|
|
91
|
-
: chip("bad", "no such script");
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* The first cell of a row that carries a resolved command.
|
|
95
|
-
* @param row - One gate's row
|
|
96
|
-
* @returns The most informative cell, or undefined
|
|
97
|
-
*/
|
|
98
|
-
export function representativeCell(row) {
|
|
99
|
-
return (row.moments.find(cell => cell.legal && cell.declaration !== "not-declared") ?? row.moments.find(cell => cell.legal));
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Why the command beneath the default is the one that runs.
|
|
103
|
-
* @param provenance - The winning task source
|
|
104
|
-
* @returns The tooltip text for the provenance line
|
|
105
|
-
*/
|
|
106
|
-
function provenanceTitle(provenance) {
|
|
107
|
-
if (provenance === "moment-run" || provenance === "gate-run") {
|
|
108
|
-
return "this project's settings file names its own task for this gate";
|
|
109
|
-
}
|
|
110
|
-
if (provenance === "registry-shipped-as") {
|
|
111
|
-
return ("this project has no script by the default's name, and does have the " +
|
|
112
|
-
"one a Lisa template installs for this property, so that is what runs");
|
|
113
|
-
}
|
|
114
|
-
return "Lisa swaps the task at this moment, for every project";
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* The override line beneath the default, when one of the sources won.
|
|
118
|
-
* @param cell - The representative cell
|
|
119
|
-
* @returns One line of HTML, or an empty string when Lisa's default runs
|
|
120
|
-
*/
|
|
121
|
-
function provenanceLine(cell) {
|
|
122
|
-
const word = OVERRIDE_WORDS[cell.provenance];
|
|
123
|
-
if (word === undefined || cell.task === null)
|
|
124
|
-
return "";
|
|
125
|
-
const scope = cell.provenance === "moment-run" ? ` (at ${cell.moment} only)` : "";
|
|
126
|
-
const title = provenanceTitle(cell.provenance);
|
|
127
|
-
return `<div class="lgr-prov" title="${escapeHtml(title)}"><span class="lgr-provword">${word}:</span> ${code(cell.task)}${escapeHtml(scope)}</div>`;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* The command column: Lisa's default on top, any override beneath it.
|
|
131
|
-
* @param row - One gate's row
|
|
132
|
-
* @returns A table cell
|
|
133
|
-
*/
|
|
134
|
-
export function commandCell(row) {
|
|
135
|
-
const cell = representativeCell(row);
|
|
136
|
-
if (cell === undefined) {
|
|
137
|
-
// Never silence. A row reaches here only when every moment the registry
|
|
138
|
-
// permits is off this project's axis, which is a fact worth stating rather
|
|
139
|
-
// than an empty box the reader will read as "fine".
|
|
140
|
-
return `<td>${code(row.defaultTask ?? "—")}${chip("unknown", "no column here", "This gate is only legal at moments this project has no column for, so no cell on this row could be shown.")}</td>`;
|
|
141
|
-
}
|
|
142
|
-
return `<td>${code(row.defaultTask ?? cell.task ?? "—")}${commandChip(cell)}${provenanceLine(cell)}</td>`;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* The merge column: yes, yes under another job's name, or no.
|
|
146
|
-
* @param merge - The row's merge finding
|
|
147
|
-
* @returns A table cell
|
|
148
|
-
*/
|
|
149
|
-
export function mergeCell(merge) {
|
|
150
|
-
if (merge.state !== "verified") {
|
|
151
|
-
return `<td class="lgr-m">${unknownChip(merge)}</td>`;
|
|
152
|
-
}
|
|
153
|
-
if (merge.value.verdict === "no") {
|
|
154
|
-
return `<td class="lgr-m">${chip("no-merge", "no", "No required status context stands between this gate and a merge.")}</td>`;
|
|
155
|
-
}
|
|
156
|
-
const context = merge.value.context ?? "";
|
|
157
|
-
if (merge.value.verdict === "yes") {
|
|
158
|
-
return `<td class="lgr-m">${chip("yes-merge", "yes", context)}</td>`;
|
|
159
|
-
}
|
|
160
|
-
return `<td class="lgr-m">${chip("other-merge", "yes, other name", context)}<div class="lgr-under">under ${code(merge.value.underJob ?? context)}</div></td>`;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Legal moments the project's own axis has no column for.
|
|
164
|
-
* @param row - One gate's row
|
|
165
|
-
* @param axis - The report's moment axis
|
|
166
|
-
* @returns Human text, or an empty string
|
|
167
|
-
*/
|
|
168
|
-
function offAxisMoments(row, axis) {
|
|
169
|
-
const families = row.legalMoments.filter(moment => !axis.includes(moment) && !axis.some(one => one.startsWith(`${moment}:`)));
|
|
170
|
-
return families.length === 0
|
|
171
|
-
? ""
|
|
172
|
-
: `<div class="lgr-offaxis">also legal at ${escapeHtml(families.join(", "))}</div>`;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* The cloud job a gate maps to, and whether that job reads the declaration.
|
|
176
|
-
* @param row - One gate's row
|
|
177
|
-
* @returns A table cell
|
|
178
|
-
*/
|
|
179
|
-
function jobCell(row) {
|
|
180
|
-
const job = row.qualityJob === null ? chip("none", "no job") : code(row.qualityJob);
|
|
181
|
-
const facade = representativeCell(row)?.facadeReadsDeclaration;
|
|
182
|
-
return `<td>${job}<div class="lgr-tier3">${facadeText(facade)}</div></td>`;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* How the "reads the declaration" line reads for one cell.
|
|
186
|
-
*
|
|
187
|
-
* Four inputs, four sentences. A row with no mapped job is not an unanswered
|
|
188
|
-
* question — there is no job whose wiring could be read — and labelling it
|
|
189
|
-
* "not checked here" would file Lisa's unknowable Tier 3 and a plain
|
|
190
|
-
* not-applicable under one word.
|
|
191
|
-
* @param facade - The Tier 3 finding, when the row has one
|
|
192
|
-
* @returns One line of text as HTML
|
|
193
|
-
*/
|
|
194
|
-
function facadeText(facade) {
|
|
195
|
-
if (facade === undefined)
|
|
196
|
-
return "no cell on this row to read";
|
|
197
|
-
if (facade.state === NOT_APPLICABLE) {
|
|
198
|
-
return `<span title="${escapeHtml(facade.message)}">no cloud job maps to this check</span>`;
|
|
199
|
-
}
|
|
200
|
-
if (facade.state === "verified") {
|
|
201
|
-
return facade.value
|
|
202
|
-
? `reads the declaration: ${chip("ok", "yes")}`
|
|
203
|
-
: `reads the declaration: ${chip("bad", "no — hardcoded")}`;
|
|
204
|
-
}
|
|
205
|
-
return `reads the declaration: ${unknownChip(facade)}`;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* One gate row.
|
|
209
|
-
* @param row - The gate
|
|
210
|
-
* @param axis - The report's moment axis
|
|
211
|
-
* @returns A table row
|
|
212
|
-
*/
|
|
213
|
-
export function gateRow(row, axis) {
|
|
214
|
-
return [
|
|
215
|
-
"<tr>",
|
|
216
|
-
`<td><span class="lgr-gid">${escapeHtml(row.id)}</span><span class="lgr-glabel">${escapeHtml(row.label)}</span>`,
|
|
217
|
-
offAxisMoments(row, axis),
|
|
218
|
-
"</td>",
|
|
219
|
-
`<td class="lgr-proves">${escapeHtml(row.summary)}</td>`,
|
|
220
|
-
commandCell(row),
|
|
221
|
-
row.moments.map(momentCell).join(""),
|
|
222
|
-
mergeCell(row.merge),
|
|
223
|
-
jobCell(row),
|
|
224
|
-
"</tr>",
|
|
225
|
-
].join("");
|
|
226
|
-
}
|
|
227
|
-
//# sourceMappingURL=gate-report-rows.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-rows.js","sourceRoot":"","sources":["../../src/cli/gate-report-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAS5E,2DAA2D;AAC3D,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAExC,6CAA6C;AAC7C,MAAM,kBAAkB,GAAqC;IAC3D,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;IACjB,GAAG,EAAE,KAAK;IACV,cAAc,EAAE,cAAc;CAC/B,CAAC;AAEF,2CAA2C;AAC3C,MAAM,aAAa,GAAqC;IACtD,CAAC,EAAE,oDAAoD;IACvD,CAAC,EAAE,mDAAmD;IACtD,CAAC,EAAE,+CAA+C;IAClD,CAAC,EAAE,yCAAyC;CAC7C,CAAC;AAEF,oFAA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AAS;QAAE,OAAO,6BAA6B,CAAC;IAC/D,IAAI,MAAM,CAAC,KAAK,KAAK,cAAc,EAAE,CAAC;QACpC,OAAO,gBAAgB,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,0CAA0C,CAAC;IAC9F,CAAC;IACD,IAAI,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC,0BAA0B,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;YAC/C,CAAC,CAAC,0BAA0B,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC;IAChE,CAAC;IACD,OAAO,0BAA0B,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;AACzD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,GAAkB,EAAE,IAAuB;IACjE,OAAO;QACL,MAAM;QACN,6BAA6B,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,mCAAmC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS;QAChH,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;QACzB,OAAO;QACP,0BAA0B,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO;QACxD,WAAW,CAAC,GAAG,CAAC;QAChB,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC;QACZ,OAAO;KACR,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { GateReport } from "./gate-report-types.js";
|
|
2
|
-
/**
|
|
3
|
-
* The header counts, each with its denominator and its unknown band.
|
|
4
|
-
* @param report - The whole report
|
|
5
|
-
* @returns A section of HTML
|
|
6
|
-
*/
|
|
7
|
-
export declare function summarySection(report: GateReport): string;
|
|
8
|
-
/**
|
|
9
|
-
* The declaration-versus-ruleset comparison.
|
|
10
|
-
* @param report - The whole report
|
|
11
|
-
* @returns A section of HTML
|
|
12
|
-
*/
|
|
13
|
-
export declare function rulesetSection(report: GateReport): string;
|
|
14
|
-
/**
|
|
15
|
-
* Everything a merge is blocked on, grouped by who put it there.
|
|
16
|
-
* @param report - The whole report
|
|
17
|
-
* @returns A section of HTML
|
|
18
|
-
*/
|
|
19
|
-
export declare function requiredContextsSection(report: GateReport): string;
|
|
20
|
-
/**
|
|
21
|
-
* The tokens this project still forwards, and what replaces each.
|
|
22
|
-
* @param report - The whole report
|
|
23
|
-
* @returns A section of HTML
|
|
24
|
-
*/
|
|
25
|
-
export declare function skipJobsSection(report: GateReport): string;
|
|
26
|
-
/**
|
|
27
|
-
* What fires on every file an agent writes.
|
|
28
|
-
* @param report - The whole report
|
|
29
|
-
* @returns A section of HTML
|
|
30
|
-
*/
|
|
31
|
-
export declare function agentHooksSection(report: GateReport): string;
|
|
32
|
-
/**
|
|
33
|
-
* Lisa's own limitations, stated once each with a count and a ticket.
|
|
34
|
-
* @param report - The whole report
|
|
35
|
-
* @returns A section of HTML, or an empty string when there are none
|
|
36
|
-
*/
|
|
37
|
-
export declare function upstreamSection(report: GateReport): string;
|
|
38
|
-
//# sourceMappingURL=gate-report-sections.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-sections.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-sections.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAEV,UAAU,EAGX,MAAM,wBAAwB,CAAC;AA0ChC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAazD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAiBzD;AAmBD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAclE;AA2CD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAc1D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAmB5D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAc1D"}
|