@codyswann/lisa 6.3.5 → 7.0.1
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/README.md +35 -0
- package/cdk/copy-overwrite/knip.json +7 -52
- package/cdk/package-lisa/package.lisa.json +4 -2
- package/dist/agy/mcp-installer.d.ts +0 -4
- package/dist/agy/mcp-installer.d.ts.map +1 -1
- package/dist/cli/admit-cmd.d.ts +0 -14
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +1 -1
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/check-cmd.d.ts +0 -2
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +1 -1
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/ci-workflow-inputs.d.ts +0 -6
- package/dist/cli/ci-workflow-inputs.d.ts.map +1 -1
- package/dist/cli/ci-workflow-inputs.js +1 -1
- package/dist/cli/ci-workflow-inputs.js.map +1 -1
- package/dist/cli/confined-project-read.d.ts +0 -14
- package/dist/cli/confined-project-read.d.ts.map +1 -1
- package/dist/cli/confined-project-read.js +2 -2
- package/dist/cli/confined-project-read.js.map +1 -1
- package/dist/cli/doctor-apply-deletions.d.ts +0 -18
- package/dist/cli/doctor-apply-deletions.d.ts.map +1 -1
- package/dist/cli/doctor-apply-deletions.js +2 -2
- package/dist/cli/doctor-apply-deletions.js.map +1 -1
- package/dist/cli/doctor-coderabbit.d.ts +2 -7
- package/dist/cli/doctor-coderabbit.d.ts.map +1 -1
- package/dist/cli/doctor-coderabbit.js +1 -1
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-gate-recommendation.d.ts +1 -12
- package/dist/cli/doctor-gate-recommendation.d.ts.map +1 -1
- package/dist/cli/doctor-gate-recommendation.js +1 -1
- package/dist/cli/doctor-gate-recommendation.js.map +1 -1
- package/dist/cli/doctor-learnings-ledger.d.ts +0 -2
- package/dist/cli/doctor-learnings-ledger.d.ts.map +1 -1
- package/dist/cli/doctor-learnings-ledger.js +1 -1
- package/dist/cli/doctor-learnings-ledger.js.map +1 -1
- package/dist/cli/doctor-lisa-owned-universal.d.ts +0 -2
- package/dist/cli/doctor-lisa-owned-universal.d.ts.map +1 -1
- package/dist/cli/doctor-lisa-owned-universal.js +1 -1
- package/dist/cli/doctor-lisa-owned-universal.js.map +1 -1
- package/dist/cli/doctor-merge-drivers.d.ts +0 -2
- package/dist/cli/doctor-merge-drivers.d.ts.map +1 -1
- package/dist/cli/doctor-merge-drivers.js +1 -1
- package/dist/cli/doctor-merge-drivers.js.map +1 -1
- package/dist/cli/doctor-nightly-e2e-bypass-arming.d.ts +0 -21
- package/dist/cli/doctor-nightly-e2e-bypass-arming.d.ts.map +1 -1
- package/dist/cli/doctor-nightly-e2e-bypass-arming.js +1 -1
- package/dist/cli/doctor-nightly-e2e-bypass-arming.js.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-deadline.d.ts +0 -5
- package/dist/cli/doctor-nightly-e2e-guard-deadline.d.ts.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-deadline.js +0 -9
- package/dist/cli/doctor-nightly-e2e-guard-deadline.js.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-evidence.d.ts +0 -6
- package/dist/cli/doctor-nightly-e2e-guard-evidence.d.ts.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-evidence.js +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-evidence.js.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-job.d.ts +2 -1
- package/dist/cli/doctor-nightly-e2e-guard-job.d.ts.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-proof.d.ts +2 -1
- package/dist/cli/doctor-nightly-e2e-guard-proof.d.ts.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-scan.d.ts +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-scan.d.ts.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard-scan.js.map +1 -1
- package/dist/cli/doctor-nightly-e2e-guard.d.ts +0 -1
- package/dist/cli/doctor-nightly-e2e-guard.d.ts.map +1 -1
- package/dist/cli/doctor-ownership-banner-drift.d.ts +0 -15
- package/dist/cli/doctor-ownership-banner-drift.d.ts.map +1 -1
- package/dist/cli/doctor-ownership-banner-drift.js +1 -1
- package/dist/cli/doctor-ownership-banner-drift.js.map +1 -1
- package/dist/cli/doctor-readiness-blockers.d.ts +1 -1
- package/dist/cli/doctor-readiness-blockers.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-journey-freshness.d.ts +0 -6
- package/dist/cli/doctor-readiness-journey-freshness.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-journey-freshness.js +1 -1
- package/dist/cli/doctor-readiness-journey-freshness.js.map +1 -1
- package/dist/cli/doctor-readiness-journey.d.ts +4 -4
- package/dist/cli/doctor-readiness-journey.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-journey.js.map +1 -1
- package/dist/cli/doctor-readiness-operations.d.ts +0 -24
- package/dist/cli/doctor-readiness-operations.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-operations.js +3 -3
- package/dist/cli/doctor-readiness-operations.js.map +1 -1
- package/dist/cli/doctor-readiness-tracking.d.ts +0 -2
- package/dist/cli/doctor-readiness-tracking.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-tracking.js +1 -1
- package/dist/cli/doctor-readiness-tracking.js.map +1 -1
- package/dist/cli/doctor-readiness-types.d.ts +2 -1
- package/dist/cli/doctor-readiness-types.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-workflows.d.ts +2 -1
- package/dist/cli/doctor-readiness-workflows.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-workspaces.d.ts +2 -1
- package/dist/cli/doctor-readiness-workspaces.d.ts.map +1 -1
- package/dist/cli/doctor-readiness.d.ts +1 -2
- package/dist/cli/doctor-readiness.d.ts.map +1 -1
- package/dist/cli/doctor-readiness.js +0 -4
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-session-manager-trust.d.ts +0 -6
- package/dist/cli/doctor-session-manager-trust.d.ts.map +1 -1
- package/dist/cli/doctor-session-manager-trust.js +1 -1
- package/dist/cli/doctor-session-manager-trust.js.map +1 -1
- package/dist/cli/doctor-session-manager.d.ts +0 -2
- package/dist/cli/doctor-session-manager.d.ts.map +1 -1
- package/dist/cli/doctor-session-manager.js +1 -1
- package/dist/cli/doctor-session-manager.js.map +1 -1
- package/dist/cli/doctor-skip-jobs-migration.d.ts +1 -1
- package/dist/cli/doctor-skip-jobs-migration.d.ts.map +1 -1
- package/dist/cli/doctor-third-party-evidence-seed.d.ts +0 -7
- package/dist/cli/doctor-third-party-evidence-seed.d.ts.map +1 -1
- package/dist/cli/doctor-third-party-evidence-seed.js +1 -1
- package/dist/cli/doctor-third-party-evidence-seed.js.map +1 -1
- package/dist/cli/doctor-traceability-gate.d.ts +0 -4
- package/dist/cli/doctor-traceability-gate.d.ts.map +1 -1
- package/dist/cli/doctor-traceability-gate.js +2 -2
- package/dist/cli/doctor-traceability-gate.js.map +1 -1
- package/dist/cli/doctor-two-channel-drift.d.ts +0 -11
- package/dist/cli/doctor-two-channel-drift.d.ts.map +1 -1
- package/dist/cli/doctor-two-channel-drift.js +1 -1
- package/dist/cli/doctor-two-channel-drift.js.map +1 -1
- package/dist/cli/doctor-worker-journey.d.ts +0 -20
- package/dist/cli/doctor-worker-journey.d.ts.map +1 -1
- package/dist/cli/doctor-worker-journey.js +3 -3
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/environment-cmd.d.ts +0 -29
- package/dist/cli/environment-cmd.d.ts.map +1 -1
- package/dist/cli/environment-cmd.js +2 -2
- package/dist/cli/environment-cmd.js.map +1 -1
- package/dist/cli/gate-report-cells.d.ts +2 -76
- package/dist/cli/gate-report-cells.d.ts.map +1 -1
- package/dist/cli/gate-report-cells.js +4 -4
- package/dist/cli/gate-report-cells.js.map +1 -1
- package/dist/cli/gate-report-contexts.d.ts +1 -8
- package/dist/cli/gate-report-contexts.d.ts.map +1 -1
- package/dist/cli/gate-report-contexts.js +1 -1
- package/dist/cli/gate-report-contexts.js.map +1 -1
- package/dist/cli/gate-report-facade.d.ts +2 -1
- package/dist/cli/gate-report-facade.d.ts.map +1 -1
- package/dist/cli/gate-report-registry.d.ts +3 -7
- package/dist/cli/gate-report-registry.d.ts.map +1 -1
- package/dist/cli/gate-report-registry.js +1 -1
- package/dist/cli/gate-report-registry.js.map +1 -1
- package/dist/cli/gate-report-templates.d.ts +0 -6
- package/dist/cli/gate-report-templates.d.ts.map +1 -1
- package/dist/cli/gate-report-templates.js +1 -1
- package/dist/cli/gate-report-templates.js.map +1 -1
- package/dist/cli/gate-report-types.d.ts +0 -14
- package/dist/cli/gate-report-types.d.ts.map +1 -1
- package/dist/cli/gate-report-upstream.d.ts +0 -23
- package/dist/cli/gate-report-upstream.d.ts.map +1 -1
- package/dist/cli/gate-report-upstream.js +3 -3
- package/dist/cli/gate-report-upstream.js.map +1 -1
- package/dist/cli/gate-report.d.ts +0 -14
- package/dist/cli/gate-report.d.ts.map +1 -1
- package/dist/cli/gate-report.js +1 -1
- package/dist/cli/gate-report.js.map +1 -1
- package/dist/cli/lisa-test-run-missing-tool.d.ts +20 -0
- package/dist/cli/lisa-test-run-missing-tool.d.ts.map +1 -0
- package/dist/cli/lisa-test-run-missing-tool.js +31 -0
- package/dist/cli/lisa-test-run-missing-tool.js.map +1 -0
- package/dist/cli/lisa-test-run-shard-files.d.ts +2 -10
- package/dist/cli/lisa-test-run-shard-files.d.ts.map +1 -1
- package/dist/cli/lisa-test-run-shard-files.js +1 -1
- package/dist/cli/lisa-test-run-shard-files.js.map +1 -1
- package/dist/cli/lisa-test-run-shard.d.ts +3 -14
- package/dist/cli/lisa-test-run-shard.d.ts.map +1 -1
- package/dist/cli/lisa-test-run-shard.js +6 -6
- package/dist/cli/lisa-test-run-shard.js.map +1 -1
- package/dist/cli/lisa-test-run.js +2 -1
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/remote-env-cmd.d.ts +0 -29
- package/dist/cli/remote-env-cmd.d.ts.map +1 -1
- package/dist/cli/remote-env-cmd.js +2 -2
- package/dist/cli/remote-env-cmd.js.map +1 -1
- package/dist/cli/removed-ui-cmd.d.ts +0 -2
- package/dist/cli/removed-ui-cmd.d.ts.map +1 -1
- package/dist/cli/removed-ui-cmd.js +1 -1
- package/dist/cli/removed-ui-cmd.js.map +1 -1
- package/dist/cli/starter-sync-source.d.ts +2 -1
- package/dist/cli/starter-sync-source.d.ts.map +1 -1
- package/dist/cli/stash-prune-policy.d.ts +2 -1
- package/dist/cli/stash-prune-policy.d.ts.map +1 -1
- package/dist/cli/stash-prune.d.ts +0 -13
- package/dist/cli/stash-prune.d.ts.map +1 -1
- package/dist/cli/stash-prune.js +2 -2
- package/dist/cli/stash-prune.js.map +1 -1
- package/dist/cli/sync-cmd.d.ts +0 -6
- package/dist/cli/sync-cmd.d.ts.map +1 -1
- package/dist/cli/sync-cmd.js +1 -1
- package/dist/cli/sync-cmd.js.map +1 -1
- package/dist/cli/version-cmd.d.ts +0 -6
- package/dist/cli/version-cmd.d.ts.map +1 -1
- package/dist/cli/version-cmd.js +1 -1
- package/dist/cli/version-cmd.js.map +1 -1
- package/dist/cli/workflow-moments.d.ts +0 -2
- package/dist/cli/workflow-moments.d.ts.map +1 -1
- package/dist/cli/workflow-moments.js +1 -1
- package/dist/cli/workflow-moments.js.map +1 -1
- package/dist/cli/worktree-inventory.d.ts +0 -25
- package/dist/cli/worktree-inventory.d.ts.map +1 -1
- package/dist/cli/worktree-inventory.js +1 -1
- package/dist/cli/worktree-inventory.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts +0 -7
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/codex/agent-installer.d.ts +2 -1
- package/dist/codex/agent-installer.d.ts.map +1 -1
- package/dist/codex/agent-transformer.d.ts +0 -7
- package/dist/codex/agent-transformer.d.ts.map +1 -1
- package/dist/codex/agent-transformer.js +1 -1
- package/dist/codex/agent-transformer.js.map +1 -1
- package/dist/codex/hooks-merger.d.ts +3 -2
- package/dist/codex/hooks-merger.d.ts.map +1 -1
- package/dist/codex/plugin-marketplace-installer.d.ts +0 -2
- package/dist/codex/plugin-marketplace-installer.d.ts.map +1 -1
- package/dist/codex/plugin-marketplace-installer.js +1 -1
- package/dist/codex/plugin-marketplace-installer.js.map +1 -1
- package/dist/codex/settings-installer.d.ts +0 -2
- package/dist/codex/settings-installer.d.ts.map +1 -1
- package/dist/codex/settings-installer.js +1 -1
- package/dist/codex/settings-installer.js.map +1 -1
- package/dist/codex/skills-installer.d.ts +1 -2
- package/dist/codex/skills-installer.d.ts.map +1 -1
- package/dist/codex/skills-installer.js +0 -1
- package/dist/codex/skills-installer.js.map +1 -1
- package/dist/configs/eslint/view-gate.d.ts +0 -11
- package/dist/configs/eslint/view-gate.d.ts.map +1 -1
- package/dist/configs/eslint/view-gate.js +2 -2
- package/dist/configs/eslint/view-gate.js.map +1 -1
- package/dist/configs/knip/index.d.ts +34 -0
- package/dist/configs/knip/index.d.ts.map +1 -0
- package/dist/configs/knip/index.js +99 -0
- package/dist/configs/knip/index.js.map +1 -0
- package/dist/configs/vitest/coverage-reports-directory.d.ts +0 -16
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +2 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/controls/attest-check.d.ts +0 -2
- package/dist/controls/attest-check.d.ts.map +1 -1
- package/dist/controls/attest-check.js +1 -1
- package/dist/controls/attest-check.js.map +1 -1
- package/dist/controls/audit-answers-secrets.d.ts +1 -7
- package/dist/controls/audit-answers-secrets.d.ts.map +1 -1
- package/dist/controls/audit-answers-secrets.js +1 -1
- package/dist/controls/audit-answers-secrets.js.map +1 -1
- package/dist/controls/audit-inline-answers.d.ts +0 -1
- package/dist/controls/audit-inline-answers.d.ts.map +1 -1
- package/dist/controls/audit-inline-answers.js.map +1 -1
- package/dist/controls/audit-probes.d.ts +0 -9
- package/dist/controls/audit-probes.d.ts.map +1 -1
- package/dist/controls/audit-probes.js +0 -11
- package/dist/controls/audit-probes.js.map +1 -1
- package/dist/controls/audit-question-lines.d.ts +0 -8
- package/dist/controls/audit-question-lines.d.ts.map +1 -1
- package/dist/controls/audit-question-lines.js +1 -1
- package/dist/controls/audit-question-lines.js.map +1 -1
- package/dist/controls/audit-questions-markdown.d.ts +0 -8
- package/dist/controls/audit-questions-markdown.d.ts.map +1 -1
- package/dist/controls/audit-questions-markdown.js +4 -4
- package/dist/controls/audit-questions-markdown.js.map +1 -1
- package/dist/controls/audit-report-file.d.ts +0 -2
- package/dist/controls/audit-report-file.d.ts.map +1 -1
- package/dist/controls/audit-report-file.js +1 -1
- package/dist/controls/audit-report-file.js.map +1 -1
- package/dist/controls/audit-report-rules/coverage.d.ts +0 -11
- package/dist/controls/audit-report-rules/coverage.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/coverage.js +2 -2
- package/dist/controls/audit-report-rules/coverage.js.map +1 -1
- package/dist/controls/audit-report-rules/locators.d.ts +0 -2
- package/dist/controls/audit-report-rules/locators.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/locators.js +1 -1
- package/dist/controls/audit-report-rules/locators.js.map +1 -1
- package/dist/controls/audit-report-rules/not-applicable.d.ts +0 -2
- package/dist/controls/audit-report-rules/not-applicable.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/not-applicable.js +1 -1
- package/dist/controls/audit-report-rules/not-applicable.js.map +1 -1
- package/dist/controls/audit-report-rules/plain-language.d.ts +0 -2
- package/dist/controls/audit-report-rules/plain-language.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/plain-language.js +1 -1
- package/dist/controls/audit-report-rules/plain-language.js.map +1 -1
- package/dist/controls/audit-report-rules/proved-evidence.d.ts +0 -2
- package/dist/controls/audit-report-rules/proved-evidence.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/proved-evidence.js +1 -1
- package/dist/controls/audit-report-rules/proved-evidence.js.map +1 -1
- package/dist/controls/audit-report-rules/questions.d.ts +0 -2
- package/dist/controls/audit-report-rules/questions.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/questions.js +1 -1
- package/dist/controls/audit-report-rules/questions.js.map +1 -1
- package/dist/controls/audit-report-rules/recorded-answers.d.ts +0 -2
- package/dist/controls/audit-report-rules/recorded-answers.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/recorded-answers.js +1 -1
- package/dist/controls/audit-report-rules/recorded-answers.js.map +1 -1
- package/dist/controls/audit-report-rules/scopes.d.ts +0 -2
- package/dist/controls/audit-report-rules/scopes.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/scopes.js +1 -1
- package/dist/controls/audit-report-rules/scopes.js.map +1 -1
- package/dist/controls/audit-report-rules/tracker-question.d.ts +0 -2
- package/dist/controls/audit-report-rules/tracker-question.d.ts.map +1 -1
- package/dist/controls/audit-report-rules/tracker-question.js +1 -1
- package/dist/controls/audit-report-rules/tracker-question.js.map +1 -1
- package/dist/controls/audit-report-shape.d.ts +2 -3
- package/dist/controls/audit-report-shape.d.ts.map +1 -1
- package/dist/controls/audit-report-shape.js +1 -1
- package/dist/controls/audit-report-shape.js.map +1 -1
- package/dist/controls/audit-report-types.d.ts +2 -1
- package/dist/controls/audit-report-types.d.ts.map +1 -1
- package/dist/controls/audit-report.d.ts +2 -3
- package/dist/controls/audit-report.d.ts.map +1 -1
- package/dist/controls/audit-report.js +2 -3
- package/dist/controls/audit-report.js.map +1 -1
- package/dist/controls/before-enforce-findings.d.ts +0 -2
- package/dist/controls/before-enforce-findings.d.ts.map +1 -1
- package/dist/controls/before-enforce-findings.js +1 -1
- package/dist/controls/before-enforce-findings.js.map +1 -1
- package/dist/controls/before-enforce-types.d.ts +19 -5
- package/dist/controls/before-enforce-types.d.ts.map +1 -1
- package/dist/controls/before-enforce-types.js +0 -24
- package/dist/controls/before-enforce-types.js.map +1 -1
- package/dist/controls/canary-door.d.ts +2 -9
- package/dist/controls/canary-door.d.ts.map +1 -1
- package/dist/controls/canary-door.js +1 -1
- package/dist/controls/canary-door.js.map +1 -1
- package/dist/controls/canary-names.d.ts +0 -2
- package/dist/controls/canary-names.d.ts.map +1 -1
- package/dist/controls/canary-names.js +1 -1
- package/dist/controls/canary-names.js.map +1 -1
- package/dist/controls/canonical-json.d.ts +0 -17
- package/dist/controls/canonical-json.d.ts.map +1 -1
- package/dist/controls/canonical-json.js +0 -25
- package/dist/controls/canonical-json.js.map +1 -1
- package/dist/controls/carrier-agent-surfaces.d.ts +0 -2
- package/dist/controls/carrier-agent-surfaces.d.ts.map +1 -1
- package/dist/controls/carrier-agent-surfaces.js +1 -1
- package/dist/controls/carrier-agent-surfaces.js.map +1 -1
- package/dist/controls/carrier-hook-here-documents.d.ts +2 -1
- package/dist/controls/carrier-hook-here-documents.d.ts.map +1 -1
- package/dist/controls/carrier-ignore.d.ts +0 -2
- package/dist/controls/carrier-ignore.d.ts.map +1 -1
- package/dist/controls/carrier-ignore.js +1 -1
- package/dist/controls/carrier-ignore.js.map +1 -1
- package/dist/controls/carrier-owner.d.ts +0 -4
- package/dist/controls/carrier-owner.d.ts.map +1 -1
- package/dist/controls/carrier-owner.js +2 -2
- package/dist/controls/carrier-owner.js.map +1 -1
- package/dist/controls/carrier-types.d.ts +6 -15
- package/dist/controls/carrier-types.d.ts.map +1 -1
- package/dist/controls/carrier-types.js +1 -19
- package/dist/controls/carrier-types.js.map +1 -1
- package/dist/controls/carrier-yaml-lines.d.ts +0 -26
- package/dist/controls/carrier-yaml-lines.d.ts.map +1 -1
- package/dist/controls/carrier-yaml-lines.js +3 -3
- package/dist/controls/carrier-yaml-lines.js.map +1 -1
- package/dist/controls/carriers.d.ts +1 -14
- package/dist/controls/carriers.d.ts.map +1 -1
- package/dist/controls/carriers.js +1 -1
- package/dist/controls/carriers.js.map +1 -1
- package/dist/controls/catalogue.d.ts +3 -2
- package/dist/controls/catalogue.d.ts.map +1 -1
- package/dist/controls/checks-binding.d.ts +0 -2
- package/dist/controls/checks-binding.d.ts.map +1 -1
- package/dist/controls/checks-binding.js +1 -1
- package/dist/controls/checks-binding.js.map +1 -1
- package/dist/controls/commands/attest-before-enforce.d.ts +0 -2
- package/dist/controls/commands/attest-before-enforce.d.ts.map +1 -1
- package/dist/controls/commands/attest-before-enforce.js +1 -1
- package/dist/controls/commands/attest-before-enforce.js.map +1 -1
- package/dist/controls/commands/attest-report-only.d.ts +0 -6
- package/dist/controls/commands/attest-report-only.d.ts.map +1 -1
- package/dist/controls/commands/attest-report-only.js +1 -1
- package/dist/controls/commands/attest-report-only.js.map +1 -1
- package/dist/controls/commands/catalogue.d.ts +1 -23
- package/dist/controls/commands/catalogue.d.ts.map +1 -1
- package/dist/controls/commands/catalogue.js +2 -2
- package/dist/controls/commands/catalogue.js.map +1 -1
- package/dist/controls/commands/gaps.d.ts +3 -2
- package/dist/controls/commands/gaps.d.ts.map +1 -1
- package/dist/controls/commands/gaps.js +1 -1
- package/dist/controls/commands/gaps.js.map +1 -1
- package/dist/controls/commands/propose-threshold.d.ts +2 -1
- package/dist/controls/commands/propose-threshold.d.ts.map +1 -1
- package/dist/controls/commands/propose-threshold.js +1 -1
- package/dist/controls/commands/propose-threshold.js.map +1 -1
- package/dist/controls/commands/report-check.d.ts +0 -2
- package/dist/controls/commands/report-check.d.ts.map +1 -1
- package/dist/controls/commands/report-check.js +1 -1
- package/dist/controls/commands/report-check.js.map +1 -1
- package/dist/controls/commands/seed.d.ts +2 -1
- package/dist/controls/commands/seed.d.ts.map +1 -1
- package/dist/controls/enforce-head-run.d.ts +0 -4
- package/dist/controls/enforce-head-run.d.ts.map +1 -1
- package/dist/controls/enforce-head-run.js +2 -2
- package/dist/controls/enforce-head-run.js.map +1 -1
- package/dist/controls/enforce-input-types.d.ts +2 -1
- package/dist/controls/enforce-input-types.d.ts.map +1 -1
- package/dist/controls/enforce-inputs.d.ts +1 -1
- package/dist/controls/enforce-inputs.d.ts.map +1 -1
- package/dist/controls/enforce-inputs.js.map +1 -1
- package/dist/controls/enforce-types.d.ts +2 -1
- package/dist/controls/enforce-types.d.ts.map +1 -1
- package/dist/controls/evidence-findings.d.ts +2 -4
- package/dist/controls/evidence-findings.d.ts.map +1 -1
- package/dist/controls/evidence-findings.js +1 -1
- package/dist/controls/evidence-findings.js.map +1 -1
- package/dist/controls/evidence-standing.d.ts +7 -3
- package/dist/controls/evidence-standing.d.ts.map +1 -1
- package/dist/controls/evidence-standing.js +0 -9
- package/dist/controls/evidence-standing.js.map +1 -1
- package/dist/controls/evidence-types.d.ts +0 -4
- package/dist/controls/evidence-types.d.ts.map +1 -1
- package/dist/controls/evidence-types.js +2 -2
- package/dist/controls/evidence-types.js.map +1 -1
- package/dist/controls/merge-protection-read.d.ts +3 -2
- package/dist/controls/merge-protection-read.d.ts.map +1 -1
- package/dist/controls/proof-check-types.d.ts +54 -9
- package/dist/controls/proof-check-types.d.ts.map +1 -1
- package/dist/controls/proof-check-types.js +0 -63
- package/dist/controls/proof-check-types.js.map +1 -1
- package/dist/controls/proof-copy-wording.d.ts +0 -13
- package/dist/controls/proof-copy-wording.d.ts.map +1 -1
- package/dist/controls/proof-copy-wording.js +1 -1
- package/dist/controls/proof-copy-wording.js.map +1 -1
- package/dist/controls/proof-copy-workspace.d.ts +1 -3
- package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
- package/dist/controls/proof-copy-workspace.js +0 -2
- package/dist/controls/proof-copy-workspace.js.map +1 -1
- package/dist/controls/proof-copy.d.ts +3 -4
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +0 -2
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-task-runners.d.ts +0 -2
- package/dist/controls/proof-task-runners.d.ts.map +1 -1
- package/dist/controls/proof-task-runners.js +1 -1
- package/dist/controls/proof-task-runners.js.map +1 -1
- package/dist/controls/proof-tools.d.ts +4 -3
- package/dist/controls/proof-tools.d.ts.map +1 -1
- package/dist/controls/proof-types.d.ts +75 -9
- package/dist/controls/proof-types.d.ts.map +1 -1
- package/dist/controls/proof-types.js +0 -86
- package/dist/controls/proof-types.js.map +1 -1
- package/dist/controls/protect-apply.d.ts +0 -8
- package/dist/controls/protect-apply.d.ts.map +1 -1
- package/dist/controls/protect-apply.js +2 -2
- package/dist/controls/protect-apply.js.map +1 -1
- package/dist/controls/protect-live.d.ts +0 -10
- package/dist/controls/protect-live.d.ts.map +1 -1
- package/dist/controls/protect-live.js +1 -1
- package/dist/controls/protect-live.js.map +1 -1
- package/dist/controls/protect-modules.d.ts +7 -6
- package/dist/controls/protect-modules.d.ts.map +1 -1
- package/dist/controls/protect-reported.d.ts +0 -8
- package/dist/controls/protect-reported.d.ts.map +1 -1
- package/dist/controls/protect-reported.js +2 -2
- package/dist/controls/protect-reported.js.map +1 -1
- package/dist/controls/pull-request-canaries.d.ts +0 -2
- package/dist/controls/pull-request-canaries.d.ts.map +1 -1
- package/dist/controls/pull-request-canaries.js +1 -1
- package/dist/controls/pull-request-canaries.js.map +1 -1
- package/dist/controls/pull-request-executor.d.ts +1 -7
- package/dist/controls/pull-request-executor.d.ts.map +1 -1
- package/dist/controls/pull-request-executor.js +1 -1
- package/dist/controls/pull-request-executor.js.map +1 -1
- package/dist/controls/pull-request-observe.d.ts +2 -1
- package/dist/controls/pull-request-observe.d.ts.map +1 -1
- package/dist/controls/pull-request-types.d.ts +2 -1
- package/dist/controls/pull-request-types.d.ts.map +1 -1
- package/dist/controls/pull-request-wording.d.ts +0 -2
- package/dist/controls/pull-request-wording.d.ts.map +1 -1
- package/dist/controls/pull-request-wording.js +1 -1
- package/dist/controls/pull-request-wording.js.map +1 -1
- package/dist/controls/reconcile-audit-findings.d.ts +2 -1
- package/dist/controls/reconcile-audit-findings.d.ts.map +1 -1
- package/dist/controls/reconcile-carrier-points.d.ts +0 -10
- package/dist/controls/reconcile-carrier-points.d.ts.map +1 -1
- package/dist/controls/reconcile-carrier-points.js +1 -1
- package/dist/controls/reconcile-carrier-points.js.map +1 -1
- package/dist/controls/reconcile-executor.d.ts +0 -8
- package/dist/controls/reconcile-executor.d.ts.map +1 -1
- package/dist/controls/reconcile-executor.js +1 -1
- package/dist/controls/reconcile-executor.js.map +1 -1
- package/dist/controls/reconcile-findings.d.ts +0 -2
- package/dist/controls/reconcile-findings.d.ts.map +1 -1
- package/dist/controls/reconcile-findings.js +1 -1
- package/dist/controls/reconcile-findings.js.map +1 -1
- package/dist/controls/reconcile-hook-lines.d.ts +0 -4
- package/dist/controls/reconcile-hook-lines.d.ts.map +1 -1
- package/dist/controls/reconcile-hook-lines.js +2 -2
- package/dist/controls/reconcile-hook-lines.js.map +1 -1
- package/dist/controls/reconcile-platform.d.ts +1 -8
- package/dist/controls/reconcile-platform.d.ts.map +1 -1
- package/dist/controls/reconcile-platform.js +1 -1
- package/dist/controls/reconcile-platform.js.map +1 -1
- package/dist/controls/reconcile-shell-words.d.ts +0 -6
- package/dist/controls/reconcile-shell-words.d.ts.map +1 -1
- package/dist/controls/reconcile-shell-words.js +1 -1
- package/dist/controls/reconcile-shell-words.js.map +1 -1
- package/dist/controls/reconcile-types.d.ts +5 -16
- package/dist/controls/reconcile-types.d.ts.map +1 -1
- package/dist/controls/reconcile-types.js +0 -22
- package/dist/controls/reconcile-types.js.map +1 -1
- package/dist/controls/register-rules.d.ts +2 -8
- package/dist/controls/register-rules.d.ts.map +1 -1
- package/dist/controls/register-rules.js +1 -1
- package/dist/controls/register-rules.js.map +1 -1
- package/dist/controls/register-types.d.ts +7 -8
- package/dist/controls/register-types.d.ts.map +1 -1
- package/dist/controls/register-types.js +1 -1
- package/dist/controls/register-types.js.map +1 -1
- package/dist/controls/threshold-proposal.d.ts +2 -1
- package/dist/controls/threshold-proposal.d.ts.map +1 -1
- package/dist/controls/tracker-config.d.ts +2 -1
- package/dist/controls/tracker-config.d.ts.map +1 -1
- package/dist/controls/unenforceable-agents.d.ts +1 -10
- package/dist/controls/unenforceable-agents.d.ts.map +1 -1
- package/dist/controls/unenforceable-agents.js +1 -1
- package/dist/controls/unenforceable-agents.js.map +1 -1
- package/dist/controls/verdict-types.d.ts +3 -2
- package/dist/controls/verdict-types.d.ts.map +1 -1
- package/dist/controls/verdict-wording.d.ts +0 -8
- package/dist/controls/verdict-wording.d.ts.map +1 -1
- package/dist/controls/verdict-wording.js +1 -1
- package/dist/controls/verdict-wording.js.map +1 -1
- package/dist/copilot/copilot-instructions-installer.d.ts +0 -2
- package/dist/copilot/copilot-instructions-installer.d.ts.map +1 -1
- package/dist/copilot/copilot-instructions-installer.js +1 -1
- package/dist/copilot/copilot-instructions-installer.js.map +1 -1
- package/dist/core/admission-lock.d.ts +0 -4
- package/dist/core/admission-lock.d.ts.map +1 -1
- package/dist/core/admission-lock.js +2 -2
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-settings.d.ts +0 -18
- package/dist/core/admission-settings.d.ts.map +1 -1
- package/dist/core/admission-settings.js +3 -3
- package/dist/core/admission-settings.js.map +1 -1
- package/dist/core/admission-state.d.ts +0 -10
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +4 -4
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts +0 -9
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +1 -1
- package/dist/core/admission.js.map +1 -1
- package/dist/core/apply-mode.d.ts +0 -2
- package/dist/core/apply-mode.d.ts.map +1 -1
- package/dist/core/apply-mode.js +1 -1
- package/dist/core/apply-mode.js.map +1 -1
- package/dist/core/audit-field-names.d.ts +2 -1
- package/dist/core/audit-field-names.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.d.ts +2 -2
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +1 -1
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/cdk-preset-adoption.d.ts +1 -1
- package/dist/core/cdk-preset-adoption.d.ts.map +1 -1
- package/dist/core/cdk-preset-adoption.js +1 -4
- package/dist/core/cdk-preset-adoption.js.map +1 -1
- package/dist/core/coderabbit-labeling.d.ts +0 -12
- package/dist/core/coderabbit-labeling.d.ts.map +1 -1
- package/dist/core/coderabbit-labeling.js +2 -2
- package/dist/core/coderabbit-labeling.js.map +1 -1
- package/dist/core/config-shadowing.d.ts +4 -0
- package/dist/core/config-shadowing.d.ts.map +1 -1
- package/dist/core/config-shadowing.js +6 -1
- package/dist/core/config-shadowing.js.map +1 -1
- package/dist/core/config.d.ts +2 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/direct-minimums.d.ts +69 -0
- package/dist/core/direct-minimums.d.ts.map +1 -0
- package/dist/core/direct-minimums.js +116 -0
- package/dist/core/direct-minimums.js.map +1 -0
- package/dist/core/direct-range-raise.d.ts +44 -0
- package/dist/core/direct-range-raise.d.ts.map +1 -0
- package/dist/core/direct-range-raise.js +153 -0
- package/dist/core/direct-range-raise.js.map +1 -0
- package/dist/core/downstream-names.d.ts +0 -9
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +1 -1
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/downstream-references.d.ts +0 -7
- package/dist/core/downstream-references.d.ts.map +1 -1
- package/dist/core/downstream-references.js +1 -1
- package/dist/core/downstream-references.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts +0 -31
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +5 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/enforcement-census.d.ts +2 -3
- package/dist/core/enforcement-census.d.ts.map +1 -1
- package/dist/core/enforcement-census.js +0 -2
- package/dist/core/enforcement-census.js.map +1 -1
- package/dist/core/enforcement-coverage.d.ts +7 -6
- package/dist/core/enforcement-coverage.d.ts.map +1 -1
- package/dist/core/enforcement-coverage.js.map +1 -1
- package/dist/core/github-actions-condition.d.ts +2 -8
- package/dist/core/github-actions-condition.d.ts.map +1 -1
- package/dist/core/github-actions-condition.js +1 -1
- package/dist/core/github-actions-condition.js.map +1 -1
- package/dist/core/kane-cli.d.ts +1 -2
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +0 -1
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/kane-pilot-report.d.ts +0 -11
- package/dist/core/kane-pilot-report.d.ts.map +1 -1
- package/dist/core/kane-pilot-report.js +1 -1
- package/dist/core/kane-pilot-report.js.map +1 -1
- package/dist/core/kane-pilot-types.d.ts +2 -1
- package/dist/core/kane-pilot-types.d.ts.map +1 -1
- package/dist/core/kane-pilot.d.ts +3 -3
- package/dist/core/kane-pilot.d.ts.map +1 -1
- package/dist/core/kane-pilot.js +2 -2
- package/dist/core/kane-pilot.js.map +1 -1
- package/dist/core/knowledge-role.d.ts +0 -2
- package/dist/core/knowledge-role.d.ts.map +1 -1
- package/dist/core/knowledge-role.js +1 -1
- package/dist/core/knowledge-role.js.map +1 -1
- package/dist/core/learnings-document.d.ts +0 -18
- package/dist/core/learnings-document.d.ts.map +1 -1
- package/dist/core/learnings-document.js +1 -1
- package/dist/core/learnings-document.js.map +1 -1
- package/dist/core/learnings-merge-driver.d.ts +0 -18
- package/dist/core/learnings-merge-driver.d.ts.map +1 -1
- package/dist/core/learnings-merge-driver.js +2 -2
- package/dist/core/learnings-merge-driver.js.map +1 -1
- package/dist/core/lisa.d.ts +4 -4
- package/dist/core/lisa.js +4 -4
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-pull-request-triggers.d.ts +0 -10
- package/dist/core/nightly-e2e-pull-request-triggers.d.ts.map +1 -1
- package/dist/core/nightly-e2e-pull-request-triggers.js +1 -1
- package/dist/core/nightly-e2e-pull-request-triggers.js.map +1 -1
- package/dist/core/override-floors.d.ts +20 -7
- package/dist/core/override-floors.d.ts.map +1 -1
- package/dist/core/override-floors.js +56 -15
- package/dist/core/override-floors.js.map +1 -1
- package/dist/core/ownership-header.d.ts +0 -11
- package/dist/core/ownership-header.d.ts.map +1 -1
- package/dist/core/ownership-header.js +1 -1
- package/dist/core/ownership-header.js.map +1 -1
- package/dist/core/plugin-registration-prune.d.ts +2 -1
- package/dist/core/plugin-registration-prune.d.ts.map +1 -1
- package/dist/core/project-config-human-gate.d.ts +2 -1
- package/dist/core/project-config-human-gate.d.ts.map +1 -1
- package/dist/core/project-config-kane.d.ts +3 -2
- package/dist/core/project-config-kane.d.ts.map +1 -1
- package/dist/core/project-config-learnings.d.ts +1 -14
- package/dist/core/project-config-learnings.d.ts.map +1 -1
- package/dist/core/project-config-learnings.js +2 -2
- package/dist/core/project-config-learnings.js.map +1 -1
- package/dist/core/project-config-nightly-e2e.d.ts +3 -2
- package/dist/core/project-config-nightly-e2e.d.ts.map +1 -1
- package/dist/core/project-config-push-gate.d.ts +2 -3
- package/dist/core/project-config-push-gate.d.ts.map +1 -1
- package/dist/core/project-config-push-gate.js +1 -1
- package/dist/core/project-config-push-gate.js.map +1 -1
- package/dist/core/project-config.d.ts +4 -6
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +3 -3
- package/dist/core/project-config.js.map +1 -1
- package/dist/core/reconciliation-report.d.ts +0 -4
- package/dist/core/reconciliation-report.d.ts.map +1 -1
- package/dist/core/reconciliation-report.js +0 -4
- package/dist/core/reconciliation-report.js.map +1 -1
- package/dist/core/reusable-workflow-pin.d.ts +0 -2
- package/dist/core/reusable-workflow-pin.d.ts.map +1 -1
- package/dist/core/reusable-workflow-pin.js +1 -1
- package/dist/core/reusable-workflow-pin.js.map +1 -1
- package/dist/core/sonar-integration.d.ts +2 -7
- package/dist/core/sonar-integration.d.ts.map +1 -1
- package/dist/core/sonar-integration.js +1 -1
- package/dist/core/sonar-integration.js.map +1 -1
- package/dist/core/template-ownership.d.ts +2 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/two-channel-delivery.d.ts +4 -4
- package/dist/core/two-channel-delivery.d.ts.map +1 -1
- package/dist/core/two-channel-delivery.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +66 -30
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/devin/enforcement-fallback-installer.d.ts +0 -2
- package/dist/devin/enforcement-fallback-installer.d.ts.map +1 -1
- package/dist/devin/enforcement-fallback-installer.js +1 -1
- package/dist/devin/enforcement-fallback-installer.js.map +1 -1
- package/dist/errors/index.d.ts +0 -37
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +0 -51
- package/dist/errors/index.js.map +1 -1
- package/dist/health/expo-splash-inspection.d.ts +0 -4
- package/dist/health/expo-splash-inspection.d.ts.map +1 -1
- package/dist/health/expo-splash-inspection.js +2 -2
- package/dist/health/expo-splash-inspection.js.map +1 -1
- package/dist/health/read-only-fs.d.ts +0 -8
- package/dist/health/read-only-fs.d.ts.map +1 -1
- package/dist/health/read-only-fs.js +1 -1
- package/dist/health/read-only-fs.js.map +1 -1
- package/dist/health/ruleset-reach-inspection.d.ts +0 -26
- package/dist/health/ruleset-reach-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-reach-inspection.js +1 -1
- package/dist/health/ruleset-reach-inspection.js.map +1 -1
- package/dist/health/template-inspection.d.ts +1 -2
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +1 -2
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/logging/index.d.ts +1 -1
- package/dist/logging/index.d.ts.map +1 -1
- package/dist/logging/logger.interface.d.ts +0 -4
- package/dist/logging/logger.interface.d.ts.map +1 -1
- package/dist/migrations/delegate-legacy-test-scripts.d.ts +0 -6
- package/dist/migrations/delegate-legacy-test-scripts.d.ts.map +1 -1
- package/dist/migrations/delegate-legacy-test-scripts.js +1 -1
- package/dist/migrations/delegate-legacy-test-scripts.js.map +1 -1
- package/dist/migrations/deploy-outcome-guard-yaml.d.ts +0 -46
- package/dist/migrations/deploy-outcome-guard-yaml.d.ts.map +1 -1
- package/dist/migrations/deploy-outcome-guard-yaml.js +3 -3
- package/dist/migrations/deploy-outcome-guard-yaml.js.map +1 -1
- package/dist/migrations/ensure-pinned-reusable-workflow-refs.d.ts +0 -20
- package/dist/migrations/ensure-pinned-reusable-workflow-refs.d.ts.map +1 -1
- package/dist/migrations/ensure-pinned-reusable-workflow-refs.js +1 -1
- package/dist/migrations/ensure-pinned-reusable-workflow-refs.js.map +1 -1
- package/dist/migrations/ensure-third-party-action-pins.d.ts +0 -28
- package/dist/migrations/ensure-third-party-action-pins.d.ts.map +1 -1
- package/dist/migrations/ensure-third-party-action-pins.js +1 -1
- package/dist/migrations/ensure-third-party-action-pins.js.map +1 -1
- package/dist/migrations/generated-paths.d.ts +0 -6
- package/dist/migrations/generated-paths.d.ts.map +1 -1
- package/dist/migrations/generated-paths.js +0 -9
- package/dist/migrations/generated-paths.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -29
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +0 -28
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/migration.interface.d.ts +2 -1
- package/dist/migrations/migration.interface.d.ts.map +1 -1
- package/dist/migrations/prune-retired-third-party-plugins.d.ts +0 -38
- package/dist/migrations/prune-retired-third-party-plugins.d.ts.map +1 -1
- package/dist/migrations/prune-retired-third-party-plugins.js +3 -3
- package/dist/migrations/prune-retired-third-party-plugins.js.map +1 -1
- package/dist/opencode/agent-installer.d.ts +1 -1
- package/dist/opencode/agent-installer.d.ts.map +1 -1
- package/dist/opencode/command-installer.d.ts +2 -17
- package/dist/opencode/command-installer.d.ts.map +1 -1
- package/dist/opencode/command-installer.js +2 -3
- package/dist/opencode/command-installer.js.map +1 -1
- package/dist/opencode/hooks-installer.d.ts +0 -14
- package/dist/opencode/hooks-installer.d.ts.map +1 -1
- package/dist/opencode/hooks-installer.js +1 -1
- package/dist/opencode/hooks-installer.js.map +1 -1
- package/dist/opencode/mcp-installer.d.ts +2 -6
- package/dist/opencode/mcp-installer.d.ts.map +1 -1
- package/dist/opencode/mcp-installer.js.map +1 -1
- package/dist/opencode/relative-imports.d.ts +0 -8
- package/dist/opencode/relative-imports.d.ts.map +1 -1
- package/dist/opencode/relative-imports.js +1 -1
- package/dist/opencode/relative-imports.js.map +1 -1
- package/dist/opencode/settings-installer.d.ts +0 -8
- package/dist/opencode/settings-installer.d.ts.map +1 -1
- package/dist/opencode/settings-installer.js +1 -1
- package/dist/opencode/settings-installer.js.map +1 -1
- package/dist/opencode/skills-installer.d.ts +2 -1
- package/dist/opencode/skills-installer.d.ts.map +1 -1
- package/dist/sonar/sonar-shim-repoint.d.ts +2 -15
- package/dist/sonar/sonar-shim-repoint.d.ts.map +1 -1
- package/dist/sonar/sonar-shim-repoint.js +2 -2
- package/dist/sonar/sonar-shim-repoint.js.map +1 -1
- package/dist/standards/contract.d.ts +3 -3
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +2 -2
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/registry.d.ts +0 -12
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +1 -9
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/test-evidence.d.ts +1 -2
- package/dist/standards/test-evidence.d.ts.map +1 -1
- package/dist/standards/test-evidence.js +0 -7
- package/dist/standards/test-evidence.js.map +1 -1
- package/dist/strategies/index.d.ts +0 -11
- package/dist/strategies/index.d.ts.map +1 -1
- package/dist/strategies/index.js +0 -13
- package/dist/strategies/index.js.map +1 -1
- package/dist/strategies/package-lisa-types.d.ts +19 -10
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +4 -0
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +107 -13
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/package-mentions.d.ts +11 -0
- package/dist/strategies/package-mentions.d.ts.map +1 -0
- package/dist/strategies/package-mentions.js +356 -0
- package/dist/strategies/package-mentions.js.map +1 -0
- package/dist/sync/artifact-sync.d.ts +2 -1
- package/dist/sync/artifact-sync.d.ts.map +1 -1
- package/dist/sync/config-sync.d.ts +2 -2
- package/dist/sync/config-sync.d.ts.map +1 -1
- package/dist/sync/config-sync.js.map +1 -1
- package/dist/sync/legacy-monitor-thresholds.d.ts +0 -17
- package/dist/sync/legacy-monitor-thresholds.d.ts.map +1 -1
- package/dist/sync/legacy-monitor-thresholds.js +1 -1
- package/dist/sync/legacy-monitor-thresholds.js.map +1 -1
- package/dist/sync/registry.d.ts +0 -14
- package/dist/sync/registry.d.ts.map +1 -1
- package/dist/sync/registry.js +1 -1
- package/dist/sync/registry.js.map +1 -1
- package/dist/sync/stryker-thresholds-ownership.d.ts +0 -12
- package/dist/sync/stryker-thresholds-ownership.d.ts.map +1 -1
- package/dist/sync/stryker-thresholds-ownership.js +3 -3
- package/dist/sync/stryker-thresholds-ownership.js.map +1 -1
- package/dist/transaction/index.d.ts +0 -1
- package/dist/transaction/index.d.ts.map +1 -1
- package/dist/transaction/index.js +0 -1
- package/dist/transaction/index.js.map +1 -1
- package/dist/utils/effectiveness.d.ts +2 -2
- package/dist/utils/effectiveness.d.ts.map +1 -1
- package/dist/utils/effectiveness.js +2 -2
- package/dist/utils/effectiveness.js.map +1 -1
- package/dist/utils/file-operations.d.ts +0 -12
- package/dist/utils/file-operations.d.ts.map +1 -1
- package/dist/utils/file-operations.js +1 -15
- package/dist/utils/file-operations.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/json-utils.d.ts +0 -6
- package/dist/utils/json-utils.d.ts.map +1 -1
- package/dist/utils/json-utils.js +0 -14
- package/dist/utils/json-utils.js.map +1 -1
- package/dist/utils/marketplace-manifest.d.ts +2 -1
- package/dist/utils/marketplace-manifest.d.ts.map +1 -1
- package/dist/utils/path-utils.d.ts +0 -25
- package/dist/utils/path-utils.d.ts.map +1 -1
- package/dist/utils/path-utils.js +0 -33
- package/dist/utils/path-utils.js.map +1 -1
- package/dist/utils/pm-env.d.ts +0 -7
- package/dist/utils/pm-env.d.ts.map +1 -1
- package/dist/utils/pm-env.js +1 -1
- package/dist/utils/pm-env.js.map +1 -1
- package/dist/utils/postinstall-trampoline.d.ts +3 -3
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +1 -1
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/usage-accounting.d.ts +2 -18
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -2
- package/dist/utils/usage-accounting.js.map +1 -1
- package/dist/utils/yaml.d.ts +0 -2
- package/dist/utils/yaml.d.ts.map +1 -1
- package/dist/utils/yaml.js +1 -1
- package/dist/utils/yaml.js.map +1 -1
- package/expo/copy-overwrite/jest.config.ts +5 -0
- package/expo/copy-overwrite/knip.json +9 -124
- package/expo/copy-overwrite/plugins/withAndroidSplashNoClientExit.js +11 -3
- package/expo/deletions.json +4 -2
- package/expo/package-lisa/package.lisa.json +103 -68
- package/harper-fabric/copy-overwrite/knip.json +8 -16
- package/harper-fabric/package-lisa/package.lisa.json +49 -14
- package/nestjs/copy-overwrite/knip.json +12 -89
- package/nestjs/package-lisa/package.lisa.json +46 -30
- package/package.json +26 -13
- package/phaser/copy-overwrite/knip.json +10 -13
- package/phaser/package-lisa/package.lisa.json +51 -15
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +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-cursor/.claude-plugin/plugin.json +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-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/lisa-expo/.codex-plugin/skills/knip-platform-files/SKILL.md +73 -0
- package/plugins/lisa-expo/.codex-plugin/skills/knip-platform-files/agents/openai.yaml +4 -0
- package/plugins/lisa-expo/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/lisa-expo/skills/knip-platform-files/SKILL.md +71 -0
- package/plugins/lisa-expo/skills/knip-platform-files/agents/openai.yaml +4 -0
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/lisa-expo-agy/skills/knip-platform-files/SKILL.md +71 -0
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/lisa-expo-copilot/skills/knip-platform-files/SKILL.md +71 -0
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/lisa-expo-cursor/skills/knip-platform-files/SKILL.md +71 -0
- 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-expo-devin/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/lisa-expo-devin/skills/knip-platform-files/SKILL.md +71 -0
- 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-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/lisa-phaser/.codex-plugin/skills/phaser-build-deploy/SKILL.md +3 -0
- package/plugins/lisa-phaser/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/lisa-phaser/skills/phaser-build-deploy/SKILL.md +3 -0
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/lisa-phaser-agy/skills/phaser-build-deploy/SKILL.md +3 -0
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/lisa-phaser-copilot/skills/phaser-build-deploy/SKILL.md +3 -0
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/lisa-phaser-cursor/skills/phaser-build-deploy/SKILL.md +3 -0
- 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-phaser-devin/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/lisa-phaser-devin/skills/phaser-build-deploy/SKILL.md +3 -0
- 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/expo/skills/cross-platform-compatibility/SKILL.md +7 -0
- package/plugins/src/expo/skills/knip-platform-files/SKILL.md +71 -0
- package/plugins/src/phaser/skills/phaser-asset-pipeline/SKILL.md +6 -2
- package/plugins/src/phaser/skills/phaser-build-deploy/SKILL.md +3 -0
- package/scripts/lib/phrase-tests/doc-taint.mjs +0 -10
- package/typescript/copy-overwrite/knip.json +15 -56
- package/typescript/package-lisa/package.lisa.json +76 -1
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/standards/index.d.ts +0 -8
- package/dist/standards/index.d.ts.map +0 -1
- package/dist/standards/index.js +0 -8
- package/dist/standards/index.js.map +0 -1
- package/dist/transaction/transaction.d.ts +0 -57
- package/dist/transaction/transaction.d.ts.map +0 -1
- package/dist/transaction/transaction.js +0 -91
- package/dist/transaction/transaction.js.map +0 -1
- package/expo/copy-overwrite/eslint.expo.ts +0 -518
- package/typescript/create-only/jest.config.local.ts +0 -33
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { RAISABLE_SECTIONS } from "./override-floors.js";
|
|
2
|
+
/** A section Lisa may raise a direct range in. */
|
|
3
|
+
type RaisableSection = (typeof RAISABLE_SECTIONS)[number];
|
|
4
|
+
/** One direct range raised to meet a Lisa minimum. */
|
|
5
|
+
export interface DirectMinimumRaise {
|
|
6
|
+
/** Dependency section holding the range. */
|
|
7
|
+
readonly section: RaisableSection;
|
|
8
|
+
/** Package name. */
|
|
9
|
+
readonly name: string;
|
|
10
|
+
/** The host's range before the raise. */
|
|
11
|
+
readonly from: string;
|
|
12
|
+
/** The range it was raised to. */
|
|
13
|
+
readonly to: string;
|
|
14
|
+
/** Lisa's minimum, as a range such as `>=4.6.6`. */
|
|
15
|
+
readonly minimum: string;
|
|
16
|
+
}
|
|
17
|
+
/** One direct range below a Lisa minimum that no same-major raise reaches. */
|
|
18
|
+
export interface DirectMinimumConflict {
|
|
19
|
+
/** Dependency section holding the range. */
|
|
20
|
+
readonly section: RaisableSection;
|
|
21
|
+
/** Package name. */
|
|
22
|
+
readonly name: string;
|
|
23
|
+
/** The host's range. */
|
|
24
|
+
readonly directRange: string;
|
|
25
|
+
/** Lisa's minimum, as a range such as `>=4.6.6`. */
|
|
26
|
+
readonly minimum: string;
|
|
27
|
+
/** A range verified to meet the minimum, or null when none was derived. */
|
|
28
|
+
readonly suggestedDirectRange: string | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Hold a host's direct ranges at or above Lisa's minimums.
|
|
32
|
+
* @remarks
|
|
33
|
+
* A range that meets the minimum, and one Lisa cannot read (`workspace:*`, a
|
|
34
|
+
* git spec), is left exactly as written. A range below it has only its minimum
|
|
35
|
+
* raised, inside its own major: `5.2.0` becomes the minimum exactly, `~7.50.0`
|
|
36
|
+
* a tilde at it. A range whose raise would cross a major is a conflict, and the
|
|
37
|
+
* caller refuses rather than move the host to another major behind its back.
|
|
38
|
+
* `peerDependencies` are never read or rewritten: a peer range is the host's
|
|
39
|
+
* promise to its own consumers, not what it installs.
|
|
40
|
+
* @param pkg - Merged package.json, as the apply would persist it
|
|
41
|
+
* @param minimums - Package name to minimum range, from the merged template
|
|
42
|
+
* @returns The manifest with raised ranges, each raise, and each conflict
|
|
43
|
+
*/
|
|
44
|
+
export declare function applyDirectMinimums(pkg: Record<string, unknown>, minimums: Readonly<Record<string, string>>): {
|
|
45
|
+
readonly packageJson: Record<string, unknown>;
|
|
46
|
+
readonly raises: readonly DirectMinimumRaise[];
|
|
47
|
+
readonly conflicts: readonly DirectMinimumConflict[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Explain a refused minimum, naming the raise the host can make itself.
|
|
51
|
+
* @param conflict - The conflict that stops the apply
|
|
52
|
+
* @returns One operator-readable sentence
|
|
53
|
+
*/
|
|
54
|
+
export declare function describeDirectMinimumConflict(conflict: DirectMinimumConflict): string;
|
|
55
|
+
/**
|
|
56
|
+
* The refusal for every direct range Lisa will not raise, in one message, so
|
|
57
|
+
* the host fixes them all in one pass instead of one per run.
|
|
58
|
+
* @param conflicts - Every range a same-major raise cannot reach; not empty
|
|
59
|
+
* @returns One sentence per range, under a count when there is more than one
|
|
60
|
+
*/
|
|
61
|
+
export declare function describeDirectMinimumConflicts(conflicts: readonly [DirectMinimumConflict, ...DirectMinimumConflict[]]): string;
|
|
62
|
+
/**
|
|
63
|
+
* The note an apply prints for one raise.
|
|
64
|
+
* @param raise - The raise made
|
|
65
|
+
* @returns One operator-readable sentence
|
|
66
|
+
*/
|
|
67
|
+
export declare function describeDirectMinimumRaise(raise: DirectMinimumRaise): string;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=direct-minimums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-minimums.d.ts","sourceRoot":"","sources":["../../src/core/direct-minimums.ts"],"names":[],"mappings":"AAcA,OAAO,EAGL,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAE9B,kDAAkD;AAClD,KAAK,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,oBAAoB;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,8EAA8E;AAC9E,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,oBAAoB;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACzC;IACD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,QAAQ,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACtD,CAmDA;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,qBAAqB,GAC9B,MAAM,CAaR;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,SAAS,CAAC,qBAAqB,EAAE,GAAG,qBAAqB,EAAE,CAAC,GACtE,MAAM,CASR;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAM5E"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lisa's minimum versions for libraries a host chooses for itself
|
|
3
|
+
* (CodySwannGT/lisa#4932).
|
|
4
|
+
*
|
|
5
|
+
* Lisa used to force a stack's standard libraries into every host. It no
|
|
6
|
+
* longer installs them, but a host that lists one is still held at or above
|
|
7
|
+
* the version Lisa used to force. A minimum touches only the host's own direct
|
|
8
|
+
* ranges: it is never written to `overrides` or `resolutions`, because those
|
|
9
|
+
* replace the range of every copy in the tree and would move a transitive
|
|
10
|
+
* consumer of an older major onto a newer one. A host that does not list the
|
|
11
|
+
* library is not changed at all.
|
|
12
|
+
* @module core/direct-minimums
|
|
13
|
+
*/
|
|
14
|
+
import { raiseRangeMinimum } from "./direct-range-raise.js";
|
|
15
|
+
import { asRecord, classifySelfReferenceRewrite, RAISABLE_SECTIONS, suggestSatisfyingDirectRange, } from "./override-floors.js";
|
|
16
|
+
/**
|
|
17
|
+
* Hold a host's direct ranges at or above Lisa's minimums.
|
|
18
|
+
* @remarks
|
|
19
|
+
* A range that meets the minimum, and one Lisa cannot read (`workspace:*`, a
|
|
20
|
+
* git spec), is left exactly as written. A range below it has only its minimum
|
|
21
|
+
* raised, inside its own major: `5.2.0` becomes the minimum exactly, `~7.50.0`
|
|
22
|
+
* a tilde at it. A range whose raise would cross a major is a conflict, and the
|
|
23
|
+
* caller refuses rather than move the host to another major behind its back.
|
|
24
|
+
* `peerDependencies` are never read or rewritten: a peer range is the host's
|
|
25
|
+
* promise to its own consumers, not what it installs.
|
|
26
|
+
* @param pkg - Merged package.json, as the apply would persist it
|
|
27
|
+
* @param minimums - Package name to minimum range, from the merged template
|
|
28
|
+
* @returns The manifest with raised ranges, each raise, and each conflict
|
|
29
|
+
*/
|
|
30
|
+
export function applyDirectMinimums(pkg, minimums) {
|
|
31
|
+
const judged = RAISABLE_SECTIONS.flatMap(section => Object.entries(asRecord(pkg[section])).flatMap(([name, from]) => {
|
|
32
|
+
const minimum = minimums[name];
|
|
33
|
+
if (minimum === undefined ||
|
|
34
|
+
typeof from !== "string" ||
|
|
35
|
+
classifySelfReferenceRewrite(minimum, from) !== "widening")
|
|
36
|
+
return [];
|
|
37
|
+
return [
|
|
38
|
+
{ section, name, from, minimum, to: raiseRangeMinimum(from, minimum) },
|
|
39
|
+
];
|
|
40
|
+
}));
|
|
41
|
+
const raises = judged.flatMap(({ to, ...rest }) => to === null ? [] : [{ ...rest, to }]);
|
|
42
|
+
const conflicts = judged.flatMap(({ to, section, name, from, minimum }) => to === null
|
|
43
|
+
? [
|
|
44
|
+
{
|
|
45
|
+
section,
|
|
46
|
+
name,
|
|
47
|
+
directRange: from,
|
|
48
|
+
minimum,
|
|
49
|
+
suggestedDirectRange: suggestSatisfyingDirectRange(minimum),
|
|
50
|
+
},
|
|
51
|
+
]
|
|
52
|
+
: []);
|
|
53
|
+
if (raises.length === 0)
|
|
54
|
+
return { packageJson: pkg, raises, conflicts };
|
|
55
|
+
const raisedSections = RAISABLE_SECTIONS.flatMap(section => {
|
|
56
|
+
const here = raises.filter(raise => raise.section === section);
|
|
57
|
+
return here.length === 0
|
|
58
|
+
? []
|
|
59
|
+
: [
|
|
60
|
+
[
|
|
61
|
+
section,
|
|
62
|
+
{
|
|
63
|
+
...asRecord(pkg[section]),
|
|
64
|
+
...Object.fromEntries(here.map(raise => [raise.name, raise.to])),
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
];
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
packageJson: { ...pkg, ...Object.fromEntries(raisedSections) },
|
|
71
|
+
raises,
|
|
72
|
+
conflicts,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Explain a refused minimum, naming the raise the host can make itself.
|
|
77
|
+
* @param conflict - The conflict that stops the apply
|
|
78
|
+
* @returns One operator-readable sentence
|
|
79
|
+
*/
|
|
80
|
+
export function describeDirectMinimumConflict(conflict) {
|
|
81
|
+
const remedy = conflict.suggestedDirectRange === null
|
|
82
|
+
? `Reconcile ${conflict.name} by hand.`
|
|
83
|
+
: `Raise the direct dependency ${conflict.name} to ` +
|
|
84
|
+
`${JSON.stringify(conflict.suggestedDirectRange)} when the host is ` +
|
|
85
|
+
`ready for that major.`;
|
|
86
|
+
return (`${conflict.section}.${conflict.name} is ` +
|
|
87
|
+
`${JSON.stringify(conflict.directRange)}, below Lisa's minimum ` +
|
|
88
|
+
`${JSON.stringify(conflict.minimum)}, and raising it would cross a major ` +
|
|
89
|
+
`version, so Lisa is not changing it on the host's behalf. ${remedy}`);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The refusal for every direct range Lisa will not raise, in one message, so
|
|
93
|
+
* the host fixes them all in one pass instead of one per run.
|
|
94
|
+
* @param conflicts - Every range a same-major raise cannot reach; not empty
|
|
95
|
+
* @returns One sentence per range, under a count when there is more than one
|
|
96
|
+
*/
|
|
97
|
+
export function describeDirectMinimumConflicts(conflicts) {
|
|
98
|
+
const [only] = conflicts;
|
|
99
|
+
if (conflicts.length === 1)
|
|
100
|
+
return describeDirectMinimumConflict(only);
|
|
101
|
+
return [
|
|
102
|
+
`${conflicts.length} direct dependencies are below Lisa's minimums:`,
|
|
103
|
+
...conflicts.map(conflict => `- ${describeDirectMinimumConflict(conflict)}`),
|
|
104
|
+
].join("\n");
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The note an apply prints for one raise.
|
|
108
|
+
* @param raise - The raise made
|
|
109
|
+
* @returns One operator-readable sentence
|
|
110
|
+
*/
|
|
111
|
+
export function describeDirectMinimumRaise(raise) {
|
|
112
|
+
return (`Raised ${raise.section}.${raise.name} from ${JSON.stringify(raise.from)} ` +
|
|
113
|
+
`to ${JSON.stringify(raise.to)} to meet Lisa's minimum ` +
|
|
114
|
+
`${JSON.stringify(raise.minimum)}.`);
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=direct-minimums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-minimums.js","sourceRoot":"","sources":["../../src/core/direct-minimums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAiC9B;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CACjC,GAA4B,EAC5B,QAA0C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CAAuC;QAC1E,6DAA6D,MAAM,EAAE,CACtE,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAC5C,SAAuE;IAEvE,MAAM,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACzB,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,6BAA6B,CAAC,IAAI,CAAC,CAAC;IACvE,OAAO;QACL,GAAG,SAAS,CAAC,MAAM,iDAAiD;QACpE,GAAG,SAAS,CAAC,GAAG,CACd,QAAQ,CAAC,EAAE,CAAC,KAAK,6BAA6B,CAAC,QAAQ,CAAC,EAAE,CAC3D;KACF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAyB;IAClE,OAAO,CACL,UAAU,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG;QAC3E,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,0BAA0B;QACxD,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DIRECT_DEPENDENCY_SECTIONS } from "./override-floors.js";
|
|
2
|
+
/** One direct range raised to meet a floor Lisa forced. */
|
|
3
|
+
export interface DirectRangeRaise {
|
|
4
|
+
/** Package name. */
|
|
5
|
+
readonly name: string;
|
|
6
|
+
/** The dependency section whose range was raised. */
|
|
7
|
+
readonly section: (typeof DIRECT_DEPENDENCY_SECTIONS)[number];
|
|
8
|
+
/** The host's direct range before the raise. */
|
|
9
|
+
readonly from: string;
|
|
10
|
+
/** The range it was raised to. */
|
|
11
|
+
readonly to: string;
|
|
12
|
+
/** Lisa's floor that required it. */
|
|
13
|
+
readonly floorRange: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Raise only the minimum of a host's range to a floor, keeping every upper
|
|
17
|
+
* bound and every alternative already above the floor: `^7.0.0 || ^8.0.0`
|
|
18
|
+
* becomes `^7.70.0 || ^8.0.0` under `>=7.70.0`, and `*` becomes `>=7.70.0`.
|
|
19
|
+
* @param range - The host's direct range
|
|
20
|
+
* @param floorRange - Lisa's floor
|
|
21
|
+
* @returns The raised range, verified to satisfy the floor, or null when no
|
|
22
|
+
* raise is provable
|
|
23
|
+
*/
|
|
24
|
+
export declare function raiseRangeMinimum(range: string, floorRange: string): string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Raise a host's direct ranges to meet a floor Lisa itself forced into
|
|
27
|
+
* `overrides`/`resolutions`, where the `$name` rewrite would otherwise widen.
|
|
28
|
+
* @remarks
|
|
29
|
+
* Each section is judged on its own. A range that already satisfies the floor
|
|
30
|
+
* is left exactly as written, prereleases included. A range below it has only
|
|
31
|
+
* its minimum raised, so the host keeps its upper bound and any alternative
|
|
32
|
+
* already above the floor. `peerDependencies` are never rewritten. A floor the
|
|
33
|
+
* host wrote, a range Lisa cannot read (`workspace:*`, a git spec) and a raise
|
|
34
|
+
* that cannot be proven are left for {@link auditSelfReferenceRewrites} to
|
|
35
|
+
* refuse as before.
|
|
36
|
+
* @param pkg - Merged package.json, as the apply would persist it
|
|
37
|
+
* @param lisaForce - The applied template's `force` section
|
|
38
|
+
* @returns The manifest with raised direct ranges, and each raise made
|
|
39
|
+
*/
|
|
40
|
+
export declare function raiseDirectRangesToLisaFloors(pkg: Record<string, unknown>, lisaForce: Readonly<Record<string, unknown>>): {
|
|
41
|
+
readonly packageJson: Record<string, unknown>;
|
|
42
|
+
readonly raises: readonly DirectRangeRaise[];
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=direct-range-raise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-range-raise.d.ts","sourceRoot":"","sources":["../../src/core/direct-range-raise.ts"],"names":[],"mappings":"AAWA,OAAO,EAIL,0BAA0B,EAM3B,MAAM,sBAAsB,CAAC;AAE9B,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9D,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AA+ED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,GACjB,MAAM,GAAG,IAAI,CAoBf;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC3C;IACD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,QAAQ,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC9C,CA+CA"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Raising a host's direct dependency ranges to a floor, keeping each range's
|
|
3
|
+
* shape and upper bound (CodySwannGT/lisa#4932).
|
|
4
|
+
*
|
|
5
|
+
* Shared by the `overrides`/`resolutions` floors Lisa forces, whose `$name`
|
|
6
|
+
* rewrite would otherwise widen, and by a template's `minimums`, which hold
|
|
7
|
+
* only the host's own direct ranges.
|
|
8
|
+
* @module core/direct-range-raise
|
|
9
|
+
*/
|
|
10
|
+
import semver from "semver";
|
|
11
|
+
import { asRecord, classifySelfReferenceRewrite, collectDirectDependencyNames, needsSelfReferenceRewrite, OVERRIDE_SECTIONS, RAISABLE_SECTIONS, rangeMinimum, SEMVER_OPTIONS, } from "./override-floors.js";
|
|
12
|
+
/**
|
|
13
|
+
* Upper-bound comparators of one comparator set, e.g. `<8.0.0-0` for `^7.0.0`.
|
|
14
|
+
* @param set - One `||`-free range
|
|
15
|
+
* @returns The `<`/`<=` comparators, space-joined
|
|
16
|
+
*/
|
|
17
|
+
function upperBounds(set) {
|
|
18
|
+
return (new semver.Range(set, SEMVER_OPTIONS).set[0] ?? [])
|
|
19
|
+
.filter(comparator => comparator.operator.startsWith("<"))
|
|
20
|
+
.map(comparator => comparator.value)
|
|
21
|
+
.join(" ");
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Whether two ranges admit exactly the same versions.
|
|
25
|
+
* @param a - First range
|
|
26
|
+
* @param b - Second range
|
|
27
|
+
* @returns True when each is a subset of the other
|
|
28
|
+
*/
|
|
29
|
+
function sameVersions(a, b) {
|
|
30
|
+
return (semver.subset(a, b, SEMVER_OPTIONS) && semver.subset(b, a, SEMVER_OPTIONS));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Raise a comparator set that admits nothing at or above the floor, keeping its
|
|
34
|
+
* shape: an exact pin becomes the floor's minimum exactly, and a tilde or caret
|
|
35
|
+
* moves to the minimum. Any other shape is raised to a caret at the minimum.
|
|
36
|
+
* @param set - The host's comparator set, as written
|
|
37
|
+
* @param expanded - The same set as semver expands it
|
|
38
|
+
* @param minimum - The floor's minimum version
|
|
39
|
+
* @returns The raised set, or null when the minimum lies outside the set's own
|
|
40
|
+
* caret-compatible line, because the raise would then cross a major
|
|
41
|
+
*/
|
|
42
|
+
function raiseSetBelowFloor(set, expanded, minimum) {
|
|
43
|
+
const lowest = semver.minVersion(expanded);
|
|
44
|
+
if (lowest === null ||
|
|
45
|
+
!semver.satisfies(minimum, `^${lowest.version}`, SEMVER_OPTIONS))
|
|
46
|
+
return null;
|
|
47
|
+
if (semver.valid(set) !== null)
|
|
48
|
+
return minimum;
|
|
49
|
+
return `${/^[\^~]/u.exec(set)?.[0] ?? "^"}${minimum}`;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Raise one `||`-free comparator set to a floor, keeping its upper bound.
|
|
53
|
+
* @param set - The host's comparator set
|
|
54
|
+
* @param floorRange - Lisa's floor, a single comparator set
|
|
55
|
+
* @param minimum - The floor's minimum version
|
|
56
|
+
* @returns The set unchanged when it satisfies the floor, null when no raise
|
|
57
|
+
* stays inside the set's major, else the set with only its minimum raised
|
|
58
|
+
*/
|
|
59
|
+
function raiseSet(set, floorRange, minimum) {
|
|
60
|
+
// Expanded first, so a hyphen or x-range joins with the floor as comparators.
|
|
61
|
+
const expanded = new semver.Range(set).range || "*";
|
|
62
|
+
if (semver.subset(expanded, floorRange, SEMVER_OPTIONS))
|
|
63
|
+
return set;
|
|
64
|
+
if (!semver.intersects(expanded, floorRange, SEMVER_OPTIONS))
|
|
65
|
+
return raiseSetBelowFloor(set, expanded, minimum);
|
|
66
|
+
const meet = `${expanded} ${floorRange}`;
|
|
67
|
+
const operator = /^[\^~]/u.exec(set)?.[0];
|
|
68
|
+
const candidates = [
|
|
69
|
+
...(operator === undefined ? [] : [`${operator}${minimum}`]),
|
|
70
|
+
`>=${minimum} ${upperBounds(expanded)}`.trim(),
|
|
71
|
+
meet,
|
|
72
|
+
];
|
|
73
|
+
return candidates.find(candidate => sameVersions(candidate, meet)) ?? null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Raise only the minimum of a host's range to a floor, keeping every upper
|
|
77
|
+
* bound and every alternative already above the floor: `^7.0.0 || ^8.0.0`
|
|
78
|
+
* becomes `^7.70.0 || ^8.0.0` under `>=7.70.0`, and `*` becomes `>=7.70.0`.
|
|
79
|
+
* @param range - The host's direct range
|
|
80
|
+
* @param floorRange - Lisa's floor
|
|
81
|
+
* @returns The raised range, verified to satisfy the floor, or null when no
|
|
82
|
+
* raise is provable
|
|
83
|
+
*/
|
|
84
|
+
export function raiseRangeMinimum(range, floorRange) {
|
|
85
|
+
const minimum = rangeMinimum(floorRange);
|
|
86
|
+
if (minimum === null ||
|
|
87
|
+
floorRange.includes("||") ||
|
|
88
|
+
semver.validRange(range, SEMVER_OPTIONS) === null)
|
|
89
|
+
return null;
|
|
90
|
+
const sets = range
|
|
91
|
+
.split("||")
|
|
92
|
+
.map(set => set.trim())
|
|
93
|
+
.flatMap(set => {
|
|
94
|
+
const raised = raiseSet(set === "" ? "*" : set, floorRange, minimum);
|
|
95
|
+
return raised === null ? [] : [raised];
|
|
96
|
+
});
|
|
97
|
+
const raised = sets.join(" || ");
|
|
98
|
+
return sets.length > 0 &&
|
|
99
|
+
classifySelfReferenceRewrite(floorRange, raised) === "safe"
|
|
100
|
+
? raised
|
|
101
|
+
: null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Raise a host's direct ranges to meet a floor Lisa itself forced into
|
|
105
|
+
* `overrides`/`resolutions`, where the `$name` rewrite would otherwise widen.
|
|
106
|
+
* @remarks
|
|
107
|
+
* Each section is judged on its own. A range that already satisfies the floor
|
|
108
|
+
* is left exactly as written, prereleases included. A range below it has only
|
|
109
|
+
* its minimum raised, so the host keeps its upper bound and any alternative
|
|
110
|
+
* already above the floor. `peerDependencies` are never rewritten. A floor the
|
|
111
|
+
* host wrote, a range Lisa cannot read (`workspace:*`, a git spec) and a raise
|
|
112
|
+
* that cannot be proven are left for {@link auditSelfReferenceRewrites} to
|
|
113
|
+
* refuse as before.
|
|
114
|
+
* @param pkg - Merged package.json, as the apply would persist it
|
|
115
|
+
* @param lisaForce - The applied template's `force` section
|
|
116
|
+
* @returns The manifest with raised direct ranges, and each raise made
|
|
117
|
+
*/
|
|
118
|
+
export function raiseDirectRangesToLisaFloors(pkg, lisaForce) {
|
|
119
|
+
const directDeps = collectDirectDependencyNames(pkg);
|
|
120
|
+
const floors = new Map(OVERRIDE_SECTIONS.flatMap(section => Object.entries(asRecord(pkg[section])).flatMap(([name, value]) => needsSelfReferenceRewrite(directDeps, name, value) &&
|
|
121
|
+
asRecord(lisaForce[section])[name] === value
|
|
122
|
+
? [[name, value]]
|
|
123
|
+
: [])));
|
|
124
|
+
const raises = RAISABLE_SECTIONS.flatMap(section => Object.entries(asRecord(pkg[section])).flatMap(([name, from]) => {
|
|
125
|
+
const floorRange = floors.get(name);
|
|
126
|
+
if (floorRange === undefined ||
|
|
127
|
+
typeof from !== "string" ||
|
|
128
|
+
classifySelfReferenceRewrite(floorRange, from) !== "widening")
|
|
129
|
+
return [];
|
|
130
|
+
const to = raiseRangeMinimum(from, floorRange);
|
|
131
|
+
return to === null ? [] : [{ name, section, from, to, floorRange }];
|
|
132
|
+
}));
|
|
133
|
+
if (raises.length === 0)
|
|
134
|
+
return { packageJson: pkg, raises: [] };
|
|
135
|
+
const raisedSections = RAISABLE_SECTIONS.flatMap(section => raises.some(raise => raise.section === section)
|
|
136
|
+
? [
|
|
137
|
+
[
|
|
138
|
+
section,
|
|
139
|
+
{
|
|
140
|
+
...asRecord(pkg[section]),
|
|
141
|
+
...Object.fromEntries(raises
|
|
142
|
+
.filter(raise => raise.section === section)
|
|
143
|
+
.map(raise => [raise.name, raise.to])),
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
]
|
|
147
|
+
: []);
|
|
148
|
+
return {
|
|
149
|
+
packageJson: { ...pkg, ...Object.fromEntries(raisedSections) },
|
|
150
|
+
raises,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=direct-range-raise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-range-raise.js","sourceRoot":"","sources":["../../src/core/direct-range-raise.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,QAAQ,EAC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AAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CACxC;iBACF;aACO;SACX;QACH,CAAC,CAAC,EAAE,CACP,CAAC;IACF,OAAO;QACL,WAAW,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC9D,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -7,15 +7,6 @@
|
|
|
7
7
|
* was written to avoid.
|
|
8
8
|
*/
|
|
9
9
|
export declare const MIN_NAME_LENGTH = 5;
|
|
10
|
-
/**
|
|
11
|
-
* Strip a name to the form the digests are taken over.
|
|
12
|
-
*
|
|
13
|
-
* Case and separators are spelling, not identity: `Some-Host`, `some host` and
|
|
14
|
-
* `SomeHost` are one name.
|
|
15
|
-
* @param raw - A name or a candidate span of source text.
|
|
16
|
-
* @returns Lowercased, alphanumerics only.
|
|
17
|
-
*/
|
|
18
|
-
export declare function normalizeName(raw: string): string;
|
|
19
10
|
/**
|
|
20
11
|
* The stored form of one name: its normalized length, then its digest.
|
|
21
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downstream-names.d.ts","sourceRoot":"","sources":["../../src/core/downstream-names.ts"],"names":[],"mappings":"AAgFA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"downstream-names.d.ts","sourceRoot":"","sources":["../../src/core/downstream-names.ts"],"names":[],"mappings":"AAgFA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AAcjC;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQ7C;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAQ9C,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AA+CD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,GAAG,GAAE,MAAM,CAAC,UAA6B,GACxC,WAAW,CAQb;AA0FD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,WAAW,GACnB,SAAS,MAAM,EAAE,CAKnB"}
|
|
@@ -90,7 +90,7 @@ export const MIN_NAME_LENGTH = 5;
|
|
|
90
90
|
* @param raw - A name or a candidate span of source text.
|
|
91
91
|
* @returns Lowercased, alphanumerics only.
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
function normalizeName(raw) {
|
|
94
94
|
return raw.toLowerCase().replaceAll(/[^a-z0-9]+/gu, "");
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downstream-names.js","sourceRoot":"","sources":["../../src/core/downstream-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG,yBAAyB,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B;;;;;GAKG;AACH,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE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EpB,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CACpC,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -33,13 +33,6 @@ import type { NameMatcher } from "./downstream-names.js";
|
|
|
33
33
|
* project until someone deliberately says otherwise.
|
|
34
34
|
*/
|
|
35
35
|
export declare const PUBLIC_ORGS: readonly string[];
|
|
36
|
-
/**
|
|
37
|
-
* Owners that are obviously stand-ins rather than real accounts.
|
|
38
|
-
*
|
|
39
|
-
* Documentation needs a worked example, and refusing one would push authors
|
|
40
|
-
* toward using a real name instead — the opposite of the intent.
|
|
41
|
-
*/
|
|
42
|
-
export declare const PLACEHOLDER_OWNERS: readonly string[];
|
|
43
36
|
/**
|
|
44
37
|
* AWS account ids that are documentation placeholders rather than real ones.
|
|
45
38
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downstream-references.d.ts","sourceRoot":"","sources":["../../src/core/downstream-references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EA4ExC,CAAC;
|
|
1
|
+
{"version":3,"file":"downstream-references.d.ts","sourceRoot":"","sources":["../../src/core/downstream-references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EA4ExC,CAAC;AAwDF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EASjD,CAAC;AAEF,gEAAgE;AAChE,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAuFD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,WAA+B,GACvC,SAAS,mBAAmB,EAAE,CAQhC"}
|
|
@@ -89,7 +89,7 @@ export const PUBLIC_ORGS = [
|
|
|
89
89
|
* Documentation needs a worked example, and refusing one would push authors
|
|
90
90
|
* toward using a real name instead — the opposite of the intent.
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
const PLACEHOLDER_OWNERS = [
|
|
93
93
|
"your_username",
|
|
94
94
|
"your-org",
|
|
95
95
|
"yourorg",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downstream-references.js","sourceRoot":"","sources":["../../src/core/downstream-references.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,aAAa;IACb,SAAS;IACT,6EAA6E;IAC7E,0EAA0E;IAC1E,kEAAkE;IAClE,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,MAAM;IACN,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,MAAM;IACN,aAAa;IACb,aAAa;IACb,KAAK;IACL,aAAa;IACb,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,KAAK;IACL,MAAM;IACN,SAAS;IACT,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,mBAAmB;IACnB,SAAS;IACT,WAAW;IACX,aAAa;IACb,YAAY;IACZ,aAAa;IACb,QAAQ;IACR,SAAS;IACT,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,KAAK;IACL,UAAU;IACV,UAAU;IACV,YAAY;IACZ,cAAc;IACd,UAAU;IACV,aAAa;IACb,MAAM;IACN,WAAW;IACX,cAAc;IACd,KAAK;IACL,YAAY;IACZ,cAAc;IACd,YAAY;IACZ,UAAU;IACV,MAAM;IACN,SAAS;IACT,KAAK;IACL,WAAW;IACX,WAAW;IACX,WAAW;IACX,UAAU;IACV,SAAS;IACT,uEAAuE;IACvE,mEAAmE;IACnE,QAAQ;CACT,CAAC;AAEF;;;;;GAKG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"downstream-references.js","sourceRoot":"","sources":["../../src/core/downstream-references.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,aAAa;IACb,SAAS;IACT,6EAA6E;IAC7E,0EAA0E;IAC1E,kEAAkE;IAClE,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,MAAM;IACN,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,MAAM;IACN,aAAa;IACb,aAAa;IACb,KAAK;IACL,aAAa;IACb,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,KAAK;IACL,MAAM;IACN,SAAS;IACT,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,mBAAmB;IACnB,SAAS;IACT,WAAW;IACX,aAAa;IACb,YAAY;IACZ,aAAa;IACb,QAAQ;IACR,SAAS;IACT,WAAW;IACX,g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AAC,CAAC;SAC/D,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACb,IAAI;QACJ,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;QACrB,MAAM,EAAE,iEAAiE;KAC1E,CAAC,CAAC,CAAC;AACR,CAAC;AAED;;;;;;GAMG;AACH,SAAS,cAAc,CACrB,IAAY,EACZ,IAAY,EACZ,OAAoB;IAEpB,OAAO,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAChD,IAAI;QACJ,KAAK;QACL,MAAM,EACJ,wEAAwE;KAC3E,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,QAAgB,EAChB,UAAuB,eAAe,EAAE;IAExC,OAAO,QAAQ;SACZ,KAAK,CAAC,IAAI,CAAC;SACX,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC;QACnC,GAAG,iBAAiB,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC;QACrC,GAAG,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,OAAO,CAAC;KAC5C,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type EffectivenessObservation } from "../utils/effectiveness.js";
|
|
2
2
|
export declare const RECURRENCE_LEDGER = ".lisa/RECURRENCES.jsonl";
|
|
3
|
-
export declare const EFFECTIVENESS_REPORTS = ".lisa/effectiveness";
|
|
4
3
|
/** One actual failure following a shipped learning or control. */
|
|
5
4
|
export interface FailureRecurrence {
|
|
6
5
|
readonly invariant: string;
|
|
@@ -16,18 +15,6 @@ export interface EffectivenessRecord {
|
|
|
16
15
|
readonly artifactRef: string;
|
|
17
16
|
readonly effectiveness: EffectivenessObservation;
|
|
18
17
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Validate evidence before a persistent count can change.
|
|
21
|
-
* @param value - Untrusted recurrence input
|
|
22
|
-
* @returns Normalized recurrence
|
|
23
|
-
*/
|
|
24
|
-
export declare function parseRecurrence(value: unknown): FailureRecurrence;
|
|
25
|
-
/**
|
|
26
|
-
* Shared gardener class identity; the ledger's content-version fingerprint is different.
|
|
27
|
-
* @param row - Normalized recurrence
|
|
28
|
-
* @returns Gardener marker key
|
|
29
|
-
*/
|
|
30
|
-
export declare function recurrenceClass(row: FailureRecurrence): string;
|
|
31
18
|
/**
|
|
32
19
|
* Read union-merged occurrences, idempotently retaining each distinct source event.
|
|
33
20
|
* @param content - Append-only JSONL
|
|
@@ -41,30 +28,12 @@ export declare function parseRecurrences(content: string): readonly FailureRecur
|
|
|
41
28
|
* @returns Number of distinct recurrences in this class
|
|
42
29
|
*/
|
|
43
30
|
export declare function recordRecurrence(root: string, value: unknown): Promise<number>;
|
|
44
|
-
/**
|
|
45
|
-
* Validate an accounting mirror without accepting arbitrary output paths.
|
|
46
|
-
* @param value - Untrusted input
|
|
47
|
-
* @returns Validated accounting mirror
|
|
48
|
-
*/
|
|
49
|
-
export declare function parseEffectivenessRecord(value: unknown): EffectivenessRecord;
|
|
50
31
|
/**
|
|
51
32
|
* Mirror observations locally, refusing to generate tracked timing artifacts.
|
|
52
33
|
* @param root - Project root
|
|
53
34
|
* @param value - Correlated accounting row
|
|
54
35
|
*/
|
|
55
36
|
export declare function recordEffectiveness(root: string, value: unknown): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Count human events over unique accepted outcomes, exposing incomplete coverage.
|
|
58
|
-
* @param records - Local observations reconstructed from accounting rows
|
|
59
|
-
* @returns Sourced numerator and denominator without a throughput proxy
|
|
60
|
-
*/
|
|
61
|
-
export declare function summarizeAttention(records: readonly EffectivenessRecord[]): {
|
|
62
|
-
acceptedOutcomes: number;
|
|
63
|
-
observedInterventions: number;
|
|
64
|
-
interventionsPerAcceptedOutcome: number | null;
|
|
65
|
-
complete: boolean;
|
|
66
|
-
sources: string[];
|
|
67
|
-
};
|
|
68
37
|
/**
|
|
69
38
|
* Read existing reports and durable counts; this operation never writes.
|
|
70
39
|
* @param root - Project root
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effectiveness-store.d.ts","sourceRoot":"","sources":["../../src/core/effectiveness-store.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AAInC,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"effectiveness-store.d.ts","sourceRoot":"","sources":["../../src/core/effectiveness-store.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AAInC,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAG3D,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,iFAAiF;AACjF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,wBAAwB,CAAC;CAClD;AA8CD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,GACd,SAAS,iBAAiB,EAAE,CAkB9B;AAgDD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,MAAM,CAAC,CAwBjB;AAwBD;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,IAAI,CAAC,CAmBf;AAiCD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CzD"}
|
|
@@ -8,13 +8,13 @@ import { invariantFingerprint, isEvidenceString, isEvidenceTime, parseEffectiven
|
|
|
8
8
|
import { assertSafeLearningParents } from "./learnings-file-safety.js";
|
|
9
9
|
import { withFileTargetLock } from "./learnings-lock.js";
|
|
10
10
|
export const RECURRENCE_LEDGER = ".lisa/RECURRENCES.jsonl";
|
|
11
|
-
|
|
11
|
+
const EFFECTIVENESS_REPORTS = ".lisa/effectiveness";
|
|
12
12
|
/**
|
|
13
13
|
* Validate evidence before a persistent count can change.
|
|
14
14
|
* @param value - Untrusted recurrence input
|
|
15
15
|
* @returns Normalized recurrence
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
function parseRecurrence(value) {
|
|
18
18
|
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
19
19
|
throw new Error("Invalid recurrence");
|
|
20
20
|
const row = value;
|
|
@@ -46,7 +46,7 @@ export function parseRecurrence(value) {
|
|
|
46
46
|
* @param row - Normalized recurrence
|
|
47
47
|
* @returns Gardener marker key
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
function recurrenceClass(row) {
|
|
50
50
|
return `${row.surface}+${invariantFingerprint(row.invariant)}`;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -139,7 +139,7 @@ export async function recordRecurrence(root, value) {
|
|
|
139
139
|
* @param value - Untrusted input
|
|
140
140
|
* @returns Validated accounting mirror
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
function parseEffectivenessRecord(value) {
|
|
143
143
|
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
144
144
|
throw new Error("Invalid effectiveness record");
|
|
145
145
|
const row = value;
|
|
@@ -183,7 +183,7 @@ export async function recordEffectiveness(root, value) {
|
|
|
183
183
|
* @param records - Local observations reconstructed from accounting rows
|
|
184
184
|
* @returns Sourced numerator and denominator without a throughput proxy
|
|
185
185
|
*/
|
|
186
|
-
|
|
186
|
+
function summarizeAttention(records) {
|
|
187
187
|
const accepted = new Set(records
|
|
188
188
|
.filter(row => row.effectiveness.acceptedAt !== null)
|
|
189
189
|
.map(row => row.artifactRef));
|