@openplanr/protocol 0.2.0
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/LICENSE +21 -0
- package/README.md +82 -0
- package/lib/dashboard/closed-json-contract.mjs +141 -0
- package/lib/dashboard/generated/operate-experience-surface-schema-data.mjs +67 -0
- package/lib/dashboard/generated/operate-review-schema-data.mjs +35 -0
- package/lib/dashboard/generated/operate-schema-token-codec.mjs +127 -0
- package/lib/dashboard/operate-experience-audit-display-contract.d.mts +196 -0
- package/lib/dashboard/operate-experience-audit-display-contract.mjs +700 -0
- package/lib/dashboard/operate-experience-display-contract.d.mts +572 -0
- package/lib/dashboard/operate-experience-display-contract.mjs +1007 -0
- package/lib/dashboard/operate-experience-surface-contract.d.mts +157 -0
- package/lib/dashboard/operate-experience-surface-contract.mjs +91 -0
- package/lib/dashboard/operate-review-contract.d.mts +34 -0
- package/lib/dashboard/operate-review-contract.mjs +175 -0
- package/lib/dashboard/operate-review-display-workspace-contract.d.mts +54 -0
- package/lib/dashboard/operate-review-display-workspace-contract.mjs +258 -0
- package/lib/dashboard/operate-review-payload-safety.d.mts +7 -0
- package/lib/dashboard/operate-review-payload-safety.mjs +42 -0
- package/lib/dashboard/operate-review-workspace-projection-v2.d.mts +218 -0
- package/lib/protocol/index.d.ts +2638 -0
- package/package.json +115 -0
- package/registries/commands.json +1952 -0
- package/registries/diagram-grammars.json +2407 -0
- package/registries/diagram-semantic-patterns.json +111 -0
- package/registries/output-paths.json +40 -0
- package/registries/outputs.json +864 -0
- package/registries/roles.json +661 -0
- package/registries/rules.json +261 -0
- package/registries/skill-host-profiles.json +247 -0
- package/registries/skill-modules.json +1112 -0
- package/registries/skill-routing.json +389 -0
- package/registries/skills.json +1545 -0
- package/registries/task-kinds.json +220 -0
- package/registry/adapters.json +110 -0
- package/registry/artifact-theme.json +60 -0
- package/registry/evaluation-graders.json +303 -0
- package/registry/evaluation-host-profiles.json +131 -0
- package/registry/frozen-commands.json +15 -0
- package/registry/landing-operations.json +20 -0
- package/registry/landing-workflows.json +70 -0
- package/registry/live-evidence-providers.json +1 -0
- package/registry/operate-v2-contracts.json +5965 -0
- package/registry/professional-skills.json +115 -0
- package/registry/roles.json +14 -0
- package/registry/ship-review-specialists.json +42 -0
- package/schemas/v1.0.0/design-approved.schema.json +35 -0
- package/schemas/v1.0.0/design-feedback.schema.json +169 -0
- package/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/schemas/v1.0.0/design-session.schema.json +73 -0
- package/schemas/v1.0.0/graph.schema.json +100 -0
- package/schemas/v1.0.0/pipeline-shipped.schema.json +154 -0
- package/schemas/v1.0.0/run-manifest.schema.json +81 -0
- package/schemas/v1.0.0/spec.schema.json +120 -0
- package/schemas/v1.0.0/stack.schema.json +184 -0
- package/schemas/v1.0.0/story.schema.json +95 -0
- package/schemas/v1.0.0/task.schema.json +171 -0
- package/schemas/v1.0.0/taste-profile.schema.json +96 -0
- package/schemas/v1.1.0/adapter-registry.schema.json +72 -0
- package/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/schemas/v1.1.0/artifact-room-descriptor.schema.json +39 -0
- package/schemas/v1.1.0/artifact-room-event.schema.json +184 -0
- package/schemas/v1.1.0/artifact-room-signed-event.schema.json +58 -0
- package/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/schemas/v1.1.0/browser-qa-gate.schema.json +21 -0
- package/schemas/v1.1.0/browser-qa-result.schema.json +24 -0
- package/schemas/v1.1.0/browser-qa-session.schema.json +12 -0
- package/schemas/v1.1.0/ecosystem-manifest.schema.json +46 -0
- package/schemas/v1.1.0/investigation-diagnosis.schema.json +12 -0
- package/schemas/v1.1.0/investigation-event.schema.json +15 -0
- package/schemas/v1.1.0/investigation-experiment.schema.json +17 -0
- package/schemas/v1.1.0/investigation-fix.schema.json +11 -0
- package/schemas/v1.1.0/investigation-hypothesis.schema.json +6 -0
- package/schemas/v1.1.0/investigation-observation.schema.json +10 -0
- package/schemas/v1.1.0/investigation-receipt.schema.json +7 -0
- package/schemas/v1.1.0/investigation-record.schema.json +7 -0
- package/schemas/v1.1.0/investigation-request.schema.json +34 -0
- package/schemas/v1.1.0/planning-review-event.schema.json +64 -0
- package/schemas/v1.1.0/planning-review-receipt.schema.json +19 -0
- package/schemas/v1.1.0/planning-review-record.schema.json +176 -0
- package/schemas/v1.1.0/planning-review-state.schema.json +19 -0
- package/schemas/v1.1.0/professional-skills.schema.json +105 -0
- package/schemas/v1.1.0/professional-specification.schema.json +111 -0
- package/schemas/v1.1.0/provenance-event.schema.json +82 -0
- package/schemas/v1.1.0/role-registry.schema.json +28 -0
- package/schemas/v1.1.0/runtime-lock.schema.json +39 -0
- package/schemas/v1.1.0/ship-closure.schema.json +353 -0
- package/schemas/v1.1.0/ship-review-specialist-registry.schema.json +29 -0
- package/schemas/v1.1.0/ship-risk-classification.schema.json +48 -0
- package/schemas/v1.1.0/specialist-review-result.schema.json +19 -0
- package/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/schemas/v1.12.0/enterprise-access-context.schema.json +217 -0
- package/schemas/v1.12.0/enterprise-agent-handoff.schema.json +508 -0
- package/schemas/v1.12.0/enterprise-artifact-revision.schema.json +87 -0
- package/schemas/v1.12.0/enterprise-change-proposal.schema.json +359 -0
- package/schemas/v1.12.0/enterprise-evidence-reference.schema.json +147 -0
- package/schemas/v1.12.0/enterprise-review-thread.schema.json +278 -0
- package/schemas/v1.12.0/enterprise-sync-state.schema.json +169 -0
- package/schemas/v1.2.0/adapter-registry.schema.json +83 -0
- package/schemas/v1.2.0/dashboard-bootstrap.schema.json +219 -0
- package/schemas/v1.2.0/ecosystem-release-operation.schema.json +90 -0
- package/schemas/v1.2.0/ecosystem-saga.schema.json +54 -0
- package/schemas/v1.2.0/evidence-diagnostic.schema.json +77 -0
- package/schemas/v1.2.0/guided-answer-envelope.schema.json +73 -0
- package/schemas/v1.2.0/guided-confirmation.schema.json +128 -0
- package/schemas/v1.2.0/guided-question.schema.json +242 -0
- package/schemas/v1.2.0/guided-questionnaire.schema.json +278 -0
- package/schemas/v1.2.0/guided-session.schema.json +141 -0
- package/schemas/v1.2.0/landing-confirmation.schema.json +17 -0
- package/schemas/v1.2.0/landing-event.schema.json +12 -0
- package/schemas/v1.2.0/landing-operation-registry.schema.json +16 -0
- package/schemas/v1.2.0/landing-phase-receipt.schema.json +19 -0
- package/schemas/v1.2.0/landing-plan.schema.json +36 -0
- package/schemas/v1.2.0/landing-receipt.schema.json +12 -0
- package/schemas/v1.2.0/landing-workflow-catalog.schema.json +143 -0
- package/schemas/v1.2.0/operate-action-display-workspace.schema.json +119 -0
- package/schemas/v1.2.0/operate-cycle-display-workspace.schema.json +109 -0
- package/schemas/v1.2.0/operate-executive-board-display-surface.schema.json +72 -0
- package/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json +328 -0
- package/schemas/v1.2.0/operate-experience-display-surface.schema.json +46 -0
- package/schemas/v1.2.0/operate-experience-surface.schema.json +590 -0
- package/schemas/v1.2.0/operate-recovery-display-surface.schema.json +85 -0
- package/schemas/v1.2.0/structured-action.schema.json +91 -0
- package/schemas/v1.3.0/adapter-registry.schema.json +84 -0
- package/schemas/v1.3.0/ecosystem-manifest.schema.json +120 -0
- package/schemas/v1.3.0/release-compatibility-claim.schema.json +46 -0
- package/schemas/v1.3.0/release-ledger-receipt.schema.json +45 -0
- package/schemas/v1.3.0/release-ledger.schema.json +60 -0
- package/schemas/v1.4.0/adapter-registry.schema.json +62 -0
- package/schemas/v1.4.0/evaluation-aggregate-report.schema.json +166 -0
- package/schemas/v1.4.0/evaluation-budget.schema.json +49 -0
- package/schemas/v1.4.0/evaluation-corpus.schema.json +93 -0
- package/schemas/v1.4.0/evaluation-fixture.schema.json +64 -0
- package/schemas/v1.4.0/evaluation-gate-policy.schema.json +33 -0
- package/schemas/v1.4.0/evaluation-grader-registration.schema.json +141 -0
- package/schemas/v1.4.0/evaluation-grader-registry.schema.json +20 -0
- package/schemas/v1.4.0/evaluation-host-profile-registry.schema.json +20 -0
- package/schemas/v1.4.0/evaluation-host-profile.schema.json +73 -0
- package/schemas/v1.4.0/evaluation-observation.schema.json +76 -0
- package/schemas/v1.4.0/evaluation-run-result.schema.json +84 -0
- package/schemas/v1.4.0/evaluation-scenario.schema.json +231 -0
- package/schemas/v1.4.0/evaluation-waiver.schema.json +65 -0
- package/schemas/v1.4.0/skill-certification-receipt.schema.json +103 -0
- package/schemas/v1.5.0/command-catalog.schema.json +296 -0
- package/schemas/v1.5.0/common.schema.json +261 -0
- package/schemas/v1.5.0/generated-asset-manifest.schema.json +313 -0
- package/schemas/v1.5.0/implementation-result.schema.json +152 -0
- package/schemas/v1.5.0/migration-preservation-manifest.schema.json +749 -0
- package/schemas/v1.5.0/output-catalog.schema.json +210 -0
- package/schemas/v1.5.0/output-path-catalog.schema.json +81 -0
- package/schemas/v1.5.0/role-registry.schema.json +261 -0
- package/schemas/v1.5.0/rule-catalog.schema.json +130 -0
- package/schemas/v1.5.0/skill-catalog.schema.json +303 -0
- package/schemas/v1.5.0/task-kind-registry.schema.json +167 -0
- package/schemas/v1.5.0/task-manifest.schema.json +373 -0
- package/schemas/v1.5.0/task-output-manifest.schema.json +462 -0
- package/schemas/v1.6.0/common.schema.json +462 -0
- package/schemas/v1.6.0/diagram-consumer-reference.schema.json +167 -0
- package/schemas/v1.6.0/diagram-document.schema.json +699 -0
- package/schemas/v1.6.0/diagram-fidelity-report.schema.json +137 -0
- package/schemas/v1.6.0/diagram-manifest.schema.json +162 -0
- package/schemas/v1.6.0/diagram-quality-report.schema.json +148 -0
- package/schemas/v1.6.0/diagram-review-binding.schema.json +132 -0
- package/schemas/v1.6.0/diagram-semantic-pattern-registry.schema.json +90 -0
- package/schemas/v1.6.0/diagram-type-registry.schema.json +373 -0
- package/schemas/v1.6.0/generated-asset-manifest.schema.json +103 -0
- package/schemas/v1.6.0/skill-catalog.schema.json +84 -0
- package/schemas/v1.6.0/skill-completion-receipt.schema.json +72 -0
- package/schemas/v1.6.0/skill-consent-record.schema.json +74 -0
- package/schemas/v1.6.0/skill-host-profile-registry.schema.json +526 -0
- package/schemas/v1.6.0/skill-learning-record.schema.json +116 -0
- package/schemas/v1.6.0/skill-module-registry.schema.json +108 -0
- package/schemas/v1.6.0/skill-routing-registry.schema.json +93 -0
- package/schemas/v1.6.0/skill-session.schema.json +73 -0
- package/schemas/v1.6.0/skill-source.schema.json +169 -0
- package/schemas/v1.7.0/common.schema.json +464 -0
- package/schemas/v1.7.0/generated-asset-manifest.schema.json +103 -0
- package/schemas/v1.7.0/planning-id-sequence.schema.json +50 -0
- package/schemas/v1.7.0/request-authority.schema.json +71 -0
- package/schemas/v1.7.0/skill-catalog.schema.json +84 -0
- package/schemas/v1.7.0/skill-completion-receipt.schema.json +72 -0
- package/schemas/v1.7.0/skill-consent-record.schema.json +74 -0
- package/schemas/v1.7.0/skill-host-profile-registry.schema.json +526 -0
- package/schemas/v1.7.0/skill-learning-record.schema.json +116 -0
- package/schemas/v1.7.0/skill-module-registry.schema.json +108 -0
- package/schemas/v1.7.0/skill-routing-registry.schema.json +93 -0
- package/schemas/v1.7.0/skill-session.schema.json +73 -0
- package/schemas/v1.7.0/skill-source.schema.json +169 -0
- package/schemas/v1.7.0/spec.schema.json +117 -0
- package/schemas/v1.7.0/story.schema.json +107 -0
- package/schemas/v1.7.0/task.schema.json +217 -0
- package/schemas/v1.8.0/common.schema.json +96 -0
- package/schemas/v1.8.0/skill-package.schema.json +63 -0
- package/schemas/v1.8.0/utility-command-catalog.schema.json +82 -0
- package/schemas/v1.9.0/design-document.schema.json +306 -0
- package/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/schemas/v2.0.0/agent-runtime-manifest.schema.json +59 -0
- package/schemas/v2.0.0/business-operating-snapshot-projection.schema.json +14 -0
- package/schemas/v2.0.0/operate-allowed-action.schema.json +181 -0
- package/schemas/v2.0.0/operate-api-envelope.schema.json +225 -0
- package/schemas/v2.0.0/operate-capability-provider-registration.schema.json +30 -0
- package/schemas/v2.0.0/operate-domain-registration.schema.json +284 -0
- package/schemas/v2.0.0/operate-evidence-provider-registration.schema.json +55 -0
- package/schemas/v2.0.0/operate-evidence-resolver-registration.schema.json +46 -0
- package/schemas/v2.0.0/operate-executor-registration.schema.json +27 -0
- package/schemas/v2.0.0/operate-experience-live-patch.schema.json +47 -0
- package/schemas/v2.0.0/operate-experience-preview.schema.json +51 -0
- package/schemas/v2.0.0/operate-experience-view.schema.json +281 -0
- package/schemas/v2.0.0/operate-live-evidence-provider-registration.schema.json +48 -0
- package/schemas/v2.0.0/operate-live-evidence-provider-registry.schema.json +17 -0
- package/schemas/v2.0.0/operate-metric-provider-registration.schema.json +12 -0
- package/schemas/v2.0.0/operate-policy-provider-registration.schema.json +33 -0
- package/schemas/v2.0.0/operate-review-bound-submission.schema.json +29 -0
- package/schemas/v2.0.0/operate-review-display-workspace.schema.json +390 -0
- package/schemas/v2.0.0/operate-snapshot-provider-registration.schema.json +16 -0
- package/schemas/v2.0.0/operate-tool-call.schema.json +172 -0
- package/schemas/v2.0.0/operate-verification-provider-registration.schema.json +12 -0
- package/schemas/v2.0.0/operating-action-policy.schema.json +31 -0
- package/schemas/v2.0.0/operating-action-verification-plan.schema.json +13 -0
- package/schemas/v2.0.0/operating-action.schema.json +86 -0
- package/schemas/v2.0.0/operating-advisor-result.schema.json +394 -0
- package/schemas/v2.0.0/operating-approval-record.schema.json +23 -0
- package/schemas/v2.0.0/operating-approval-requirement.schema.json +31 -0
- package/schemas/v2.0.0/operating-artifact.schema.json +52 -0
- package/schemas/v2.0.0/operating-assignment.schema.json +437 -0
- package/schemas/v2.0.0/operating-assumption.schema.json +16 -0
- package/schemas/v2.0.0/operating-capability-availability.schema.json +15 -0
- package/schemas/v2.0.0/operating-capability-grant.schema.json +14 -0
- package/schemas/v2.0.0/operating-challenger-review.schema.json +204 -0
- package/schemas/v2.0.0/operating-checkpoint.schema.json +43 -0
- package/schemas/v2.0.0/operating-claim.schema.json +17 -0
- package/schemas/v2.0.0/operating-connector-checkpoint.schema.json +28 -0
- package/schemas/v2.0.0/operating-context-capture.schema.json +74 -0
- package/schemas/v2.0.0/operating-cycle-input-binding.schema.json +30 -0
- package/schemas/v2.0.0/operating-cycle.schema.json +42 -0
- package/schemas/v2.0.0/operating-decision-ledger.schema.json +237 -0
- package/schemas/v2.0.0/operating-decision.schema.json +137 -0
- package/schemas/v2.0.0/operating-delivery-evidence.schema.json +46 -0
- package/schemas/v2.0.0/operating-delivery-route.schema.json +43 -0
- package/schemas/v2.0.0/operating-delta.schema.json +13 -0
- package/schemas/v2.0.0/operating-domain-projection.schema.json +15 -0
- package/schemas/v2.0.0/operating-event-trigger.schema.json +11 -0
- package/schemas/v2.0.0/operating-event.schema.json +505 -0
- package/schemas/v2.0.0/operating-evidence-candidate.schema.json +88 -0
- package/schemas/v2.0.0/operating-evidence-edge.schema.json +39 -0
- package/schemas/v2.0.0/operating-evidence-graph.schema.json +25 -0
- package/schemas/v2.0.0/operating-evidence-observation.schema.json +48 -0
- package/schemas/v2.0.0/operating-evidence-ref.schema.json +51 -0
- package/schemas/v2.0.0/operating-evidence-resolution.schema.json +54 -0
- package/schemas/v2.0.0/operating-execution-result.schema.json +23 -0
- package/schemas/v2.0.0/operating-executive-board.schema.json +78 -0
- package/schemas/v2.0.0/operating-finding.schema.json +116 -0
- package/schemas/v2.0.0/operating-governed-operation.schema.json +54 -0
- package/schemas/v2.0.0/operating-intelligence-input-bundle.schema.json +128 -0
- package/schemas/v2.0.0/operating-intelligence-plan.schema.json +302 -0
- package/schemas/v2.0.0/operating-learning-receipt.schema.json +31 -0
- package/schemas/v2.0.0/operating-learning.schema.json +13 -0
- package/schemas/v2.0.0/operating-live-evidence-consent-record.schema.json +42 -0
- package/schemas/v2.0.0/operating-live-evidence-ingestion.schema.json +31 -0
- package/schemas/v2.0.0/operating-measurement-plan.schema.json +18 -0
- package/schemas/v2.0.0/operating-measurement-schedule-receipt.schema.json +7 -0
- package/schemas/v2.0.0/operating-measurement-schedule.schema.json +16 -0
- package/schemas/v2.0.0/operating-metric-observation.schema.json +15 -0
- package/schemas/v2.0.0/operating-metric.schema.json +18 -0
- package/schemas/v2.0.0/operating-model-state.schema.json +36 -0
- package/schemas/v2.0.0/operating-objective.schema.json +21 -0
- package/schemas/v2.0.0/operating-origin.schema.json +31 -0
- package/schemas/v2.0.0/operating-outcome-evaluation.schema.json +46 -0
- package/schemas/v2.0.0/operating-outcome.schema.json +13 -0
- package/schemas/v2.0.0/operating-planning-proposal.schema.json +45 -0
- package/schemas/v2.0.0/operating-policy-evaluation.schema.json +28 -0
- package/schemas/v2.0.0/operating-review-read.schema.json +217 -0
- package/schemas/v2.0.0/operating-review-receipt.schema.json +64 -0
- package/schemas/v2.0.0/operating-review.schema.json +47 -0
- package/schemas/v2.0.0/operating-risk.schema.json +96 -0
- package/schemas/v2.0.0/operating-rollback-plan.schema.json +10 -0
- package/schemas/v2.0.0/operating-rollback-result.schema.json +20 -0
- package/schemas/v2.0.0/operating-runtime-state.schema.json +289 -0
- package/schemas/v2.0.0/operating-scenario.schema.json +13 -0
- package/schemas/v2.0.0/operating-snapshot.schema.json +38 -0
- package/schemas/v2.0.0/operating-submission.schema.json +34 -0
- package/schemas/v2.0.0/operating-trace-matrix.schema.json +176 -0
- package/schemas/v2.0.0/operating-work-change-set.schema.json +89 -0
- package/schemas/v2.0.0/operating-work-ledger.schema.json +40 -0
- package/schemas/v2.0.0/software-operating-snapshot-projection.schema.json +14 -0
- package/src/browser-contracts.d.mts +5 -0
- package/src/browser-contracts.mjs +40 -0
- package/src/canonical-json.d.mts +5 -0
- package/src/canonical-json.mjs +142 -0
- package/src/compat/live-evidence-v2.mjs +1019 -0
- package/src/compat/operate-experience-live-patch.mjs +66 -0
- package/src/compat/operating-planning-contracts.mjs +114 -0
- package/src/contracts.d.mts +42 -0
- package/src/contracts.mjs +990 -0
- package/src/design-contracts.d.mts +62 -0
- package/src/design-contracts.mjs +186 -0
- package/src/design-publication-contracts.d.mts +4 -0
- package/src/design-publication-contracts.mjs +85 -0
- package/src/diagram-contracts.d.mts +19 -0
- package/src/diagram-contracts.mjs +28 -0
- package/src/enterprise-contracts.d.mts +107 -0
- package/src/enterprise-contracts.mjs +463 -0
- package/src/errors.d.mts +11 -0
- package/src/errors.mjs +109 -0
- package/src/generated/canonical-registries.mjs +5554 -0
- package/src/generated/contract-catalog-v2.mjs +7076 -0
- package/src/generated/diagram-registries.mjs +2529 -0
- package/src/index.d.mts +10 -0
- package/src/index.mjs +40 -0
- package/src/json-schema.d.mts +7 -0
- package/src/json-schema.mjs +283 -0
- package/src/planning-contracts.d.mts +10 -0
- package/src/planning-contracts.mjs +53 -0
- package/src/registries.d.mts +40 -0
- package/src/registries.mjs +261 -0
- package/src/review-experience-contracts.d.mts +11 -0
- package/src/review-experience-contracts.mjs +103 -0
- package/src/semver.d.mts +2 -0
- package/src/semver.mjs +7 -0
- package/src/skill-source-contracts.d.mts +25 -0
- package/src/skill-source-contracts.mjs +105 -0
- package/src/task-contracts.d.mts +7 -0
- package/src/task-contracts.mjs +130 -0
- package/src/workspace-contracts.d.mts +26 -0
- package/src/workspace-contracts.mjs +83 -0
package/src/index.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './errors.mjs';
|
|
2
|
+
export * from './canonical-json.mjs';
|
|
3
|
+
export * from './json-schema.mjs';
|
|
4
|
+
export * from './registries.mjs';
|
|
5
|
+
export * from './browser-contracts.mjs';
|
|
6
|
+
export * from './task-contracts.mjs';
|
|
7
|
+
export * from './planning-contracts.mjs';
|
|
8
|
+
export * from './diagram-contracts.mjs';
|
|
9
|
+
export * from './enterprise-contracts.mjs';
|
|
10
|
+
export * from './design-publication-contracts.mjs';
|
package/src/index.mjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { ARTIFACT_ERROR_CODES, PIPELINE_ERROR_CODES, PROTOCOL_ERROR_CODES, PipelineError, ProtocolError } from './errors.mjs';
|
|
2
|
+
export { canonicalizeJson, sha256Hex, sha256Jcs, verifyDocumentDigest, withDocumentDigest } from './canonical-json.mjs';
|
|
3
|
+
export { validate, validateJson } from './json-schema.mjs';
|
|
4
|
+
export {
|
|
5
|
+
CANONICAL_REGISTRIES,
|
|
6
|
+
getCanonicalRegistry,
|
|
7
|
+
getOutput,
|
|
8
|
+
getOutputPathTemplate,
|
|
9
|
+
getRole,
|
|
10
|
+
resolveOutputPath,
|
|
11
|
+
resolveLegacyRoleAlias,
|
|
12
|
+
resolveTaskKind,
|
|
13
|
+
routeLegacyTask,
|
|
14
|
+
validateCanonicalRegistries,
|
|
15
|
+
} from './registries.mjs';
|
|
16
|
+
export {
|
|
17
|
+
PROTOCOL_V15_CONTRACTS,
|
|
18
|
+
PROTOCOL_V16_CONTRACTS,
|
|
19
|
+
PROTOCOL_V17_CONTRACTS,
|
|
20
|
+
PROTOCOL_V18_CONTRACTS,
|
|
21
|
+
protocolAssetUrl,
|
|
22
|
+
} from './browser-contracts.mjs';
|
|
23
|
+
export { normalizePlanningTask, validatePlanningAcceptanceCoverage } from './planning-contracts.mjs';
|
|
24
|
+
export {
|
|
25
|
+
DIAGRAM_CONTRACT_FILES,
|
|
26
|
+
DIAGRAM_GRAMMAR_REGISTRY,
|
|
27
|
+
DIAGRAM_SEMANTIC_PATTERN_REGISTRY,
|
|
28
|
+
diagramContractUrl,
|
|
29
|
+
getDiagramGrammar,
|
|
30
|
+
} from './diagram-contracts.mjs';
|
|
31
|
+
export {
|
|
32
|
+
assertTaskManifestSemantics,
|
|
33
|
+
assertTaskOutputSemantics,
|
|
34
|
+
countR2Tasks,
|
|
35
|
+
validateTaskGraph,
|
|
36
|
+
validateTaskManifestSemantics,
|
|
37
|
+
validateTaskOutputSemantics,
|
|
38
|
+
} from './task-contracts.mjs';
|
|
39
|
+
export * from './enterprise-contracts.mjs';
|
|
40
|
+
export * from './design-publication-contracts.mjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface JsonSchemaDiagnostic { path: string; rule: string; detail: string }
|
|
2
|
+
export interface JsonSchemaResolverResult { schema: unknown; rootSchema?: unknown; base?: string }
|
|
3
|
+
export declare function validateJson(value: unknown, schema: unknown, options?: {
|
|
4
|
+
base?: string | null;
|
|
5
|
+
resolveRef?: (reference: string, context: { base?: string | null }) => JsonSchemaResolverResult | unknown;
|
|
6
|
+
}): JsonSchemaDiagnostic[];
|
|
7
|
+
export { validateJson as validate };
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal JSON Schema (draft 2020-12) subset extracted from conformance/runner.mjs.
|
|
3
|
+
* Supports the constructs used by packaged Protocol schemas, including local
|
|
4
|
+
* JSON-pointer and caller-resolved external `$ref` references.
|
|
5
|
+
*
|
|
6
|
+
* Zero third-party deps. Safe to import from node:test suites.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// ── minimal JSON Schema validator (draft 2020-12 subset) ────────────────
|
|
10
|
+
|
|
11
|
+
const typeOf = (v) => {
|
|
12
|
+
if (v === null) return 'null';
|
|
13
|
+
if (Array.isArray(v)) return 'array';
|
|
14
|
+
if (Number.isInteger(v)) return 'integer';
|
|
15
|
+
if (typeof v === 'number') return 'number';
|
|
16
|
+
return typeof v;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const matchesType = (v, t) => {
|
|
20
|
+
if (t === 'integer') return Number.isInteger(v);
|
|
21
|
+
if (t === 'number') return typeof v === 'number';
|
|
22
|
+
if (t === 'string') return typeof v === 'string';
|
|
23
|
+
if (t === 'boolean') return typeof v === 'boolean';
|
|
24
|
+
if (t === 'null') return v === null;
|
|
25
|
+
if (t === 'array') return Array.isArray(v);
|
|
26
|
+
if (t === 'object') return v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
27
|
+
return false;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const FORMAT_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
31
|
+
const FORMAT_DATETIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
32
|
+
|
|
33
|
+
function resolveJsonPointer(root, reference) {
|
|
34
|
+
if (reference === '#') return root;
|
|
35
|
+
if (!reference.startsWith('#/')) return null;
|
|
36
|
+
return reference
|
|
37
|
+
.slice(2)
|
|
38
|
+
.split('/')
|
|
39
|
+
.map((part) => part.replaceAll('~1', '/').replaceAll('~0', '~'))
|
|
40
|
+
.reduce((value, part) => value?.[part], root);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const validateNode = (value, schema, path, errs, context) => {
|
|
44
|
+
if (schema === true) return;
|
|
45
|
+
if (schema === false) {
|
|
46
|
+
errs.push({ path, rule: 'schema:false', detail: 'value not allowed' });
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (typeof schema?.$ref === 'string') {
|
|
51
|
+
const reference = schema.$ref;
|
|
52
|
+
let resolved;
|
|
53
|
+
let nextRoot = context.rootSchema;
|
|
54
|
+
let resolvedBase = context.base;
|
|
55
|
+
if (reference.startsWith('#')) {
|
|
56
|
+
resolved = resolveJsonPointer(context.rootSchema, reference);
|
|
57
|
+
} else if (typeof context.resolveRef === 'function') {
|
|
58
|
+
const result = context.resolveRef(reference, { base: context.base });
|
|
59
|
+
resolved = result?.schema ?? result;
|
|
60
|
+
nextRoot = result?.rootSchema ?? resolved;
|
|
61
|
+
resolvedBase = result?.base ?? resolved?.$id ?? context.base;
|
|
62
|
+
}
|
|
63
|
+
if (!resolved) {
|
|
64
|
+
errs.push({ path, rule: '$ref', detail: `could not resolve schema reference ${reference}` });
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const referenceKey = `${context.base ?? '<root>'}:${reference}`;
|
|
68
|
+
if (context.referenceStack.includes(referenceKey)) {
|
|
69
|
+
errs.push({ path, rule: '$ref', detail: `circular schema reference ${reference}` });
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
validateNode(value, resolved, path, errs, {
|
|
73
|
+
...context,
|
|
74
|
+
rootSchema: nextRoot,
|
|
75
|
+
base: resolvedBase,
|
|
76
|
+
referenceStack: [...context.referenceStack, referenceKey],
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (schema.type !== undefined) {
|
|
81
|
+
const types = Array.isArray(schema.type) ? schema.type : [schema.type];
|
|
82
|
+
if (!types.some((t) => matchesType(value, t))) {
|
|
83
|
+
errs.push({ path, rule: 'type', detail: `expected ${types.join('|')}, got ${typeOf(value)}` });
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (schema.const !== undefined) {
|
|
89
|
+
if (value !== schema.const) {
|
|
90
|
+
errs.push({ path, rule: 'const', detail: `expected ${JSON.stringify(schema.const)}, got ${JSON.stringify(value)}` });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (Array.isArray(schema.enum)) {
|
|
95
|
+
if (!schema.enum.includes(value)) {
|
|
96
|
+
errs.push({
|
|
97
|
+
path,
|
|
98
|
+
rule: 'enum',
|
|
99
|
+
detail: `value ${JSON.stringify(value)} not in enum [${schema.enum.map((x) => JSON.stringify(x)).join(', ')}]`,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (typeof value === 'string') {
|
|
105
|
+
if (typeof schema.minLength === 'number' && value.length < schema.minLength) {
|
|
106
|
+
errs.push({ path, rule: 'minLength', detail: `length ${value.length} < ${schema.minLength}` });
|
|
107
|
+
}
|
|
108
|
+
if (typeof schema.maxLength === 'number' && value.length > schema.maxLength) {
|
|
109
|
+
errs.push({ path, rule: 'maxLength', detail: `length ${value.length} > ${schema.maxLength}` });
|
|
110
|
+
}
|
|
111
|
+
if (typeof schema.pattern === 'string') {
|
|
112
|
+
try {
|
|
113
|
+
if (!new RegExp(schema.pattern).test(value)) {
|
|
114
|
+
errs.push({ path, rule: 'pattern', detail: `value ${JSON.stringify(value)} does not match /${schema.pattern}/` });
|
|
115
|
+
}
|
|
116
|
+
} catch (e) {
|
|
117
|
+
errs.push({ path, rule: 'pattern', detail: `invalid regex /${schema.pattern}/: ${e.message}` });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (typeof schema.format === 'string') {
|
|
121
|
+
if (schema.format === 'date' && !FORMAT_DATE.test(value)) {
|
|
122
|
+
errs.push({ path, rule: 'format:date', detail: `value ${JSON.stringify(value)} is not YYYY-MM-DD` });
|
|
123
|
+
} else if (schema.format === 'date-time' && !FORMAT_DATETIME.test(value)) {
|
|
124
|
+
errs.push({ path, rule: 'format:date-time', detail: `value ${JSON.stringify(value)} is not ISO 8601 date-time` });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (typeof value === 'number') {
|
|
130
|
+
if (typeof schema.minimum === 'number' && value < schema.minimum) {
|
|
131
|
+
errs.push({ path, rule: 'minimum', detail: `value ${value} < ${schema.minimum}` });
|
|
132
|
+
}
|
|
133
|
+
if (typeof schema.maximum === 'number' && value > schema.maximum) {
|
|
134
|
+
errs.push({ path, rule: 'maximum', detail: `value ${value} > ${schema.maximum}` });
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (Array.isArray(value)) {
|
|
139
|
+
if (typeof schema.minItems === 'number' && value.length < schema.minItems) {
|
|
140
|
+
errs.push({ path, rule: 'minItems', detail: `length ${value.length} < ${schema.minItems}` });
|
|
141
|
+
}
|
|
142
|
+
if (typeof schema.maxItems === 'number' && value.length > schema.maxItems) {
|
|
143
|
+
errs.push({ path, rule: 'maxItems', detail: `length ${value.length} > ${schema.maxItems}` });
|
|
144
|
+
}
|
|
145
|
+
const prefixLength = Array.isArray(schema.prefixItems) ? schema.prefixItems.length : 0;
|
|
146
|
+
if (prefixLength > 0) {
|
|
147
|
+
for (let i = 0; i < Math.min(value.length, prefixLength); i++) {
|
|
148
|
+
validateNode(value[i], schema.prefixItems[i], `${path}[${i}]`, errs, context);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (schema.items !== undefined) {
|
|
152
|
+
for (let i = prefixLength; i < value.length; i++) {
|
|
153
|
+
validateNode(value[i], schema.items, `${path}[${i}]`, errs, context);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (schema.uniqueItems === true) {
|
|
157
|
+
const seen = new Set();
|
|
158
|
+
for (const item of value) {
|
|
159
|
+
const key = JSON.stringify(item);
|
|
160
|
+
if (seen.has(key)) {
|
|
161
|
+
errs.push({ path, rule: 'uniqueItems', detail: `duplicate item ${key}` });
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
seen.add(key);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (schema.contains !== undefined) {
|
|
168
|
+
let matches = 0;
|
|
169
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
170
|
+
const containedErrors = [];
|
|
171
|
+
validateNode(value[index], schema.contains, `${path}[${index}]`, containedErrors, context);
|
|
172
|
+
if (containedErrors.length === 0) matches += 1;
|
|
173
|
+
}
|
|
174
|
+
const minimum = Number.isSafeInteger(schema.minContains) ? schema.minContains : 1;
|
|
175
|
+
const maximum = Number.isSafeInteger(schema.maxContains) ? schema.maxContains : null;
|
|
176
|
+
if (matches < minimum) {
|
|
177
|
+
errs.push({ path, rule: 'contains', detail: `matched ${matches} contained items; expected at least ${minimum}` });
|
|
178
|
+
}
|
|
179
|
+
if (maximum !== null && matches > maximum) {
|
|
180
|
+
errs.push({ path, rule: 'contains', detail: `matched ${matches} contained items; expected at most ${maximum}` });
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
|
|
186
|
+
if (Array.isArray(schema.required)) {
|
|
187
|
+
for (const req of schema.required) {
|
|
188
|
+
if (!Object.hasOwn(value, req)) {
|
|
189
|
+
errs.push({ path, rule: 'required', detail: `missing required property '${req}'` });
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const props = schema.properties || {};
|
|
194
|
+
for (const [k, v] of Object.entries(value)) {
|
|
195
|
+
if (!Object.hasOwn(props, k)) {
|
|
196
|
+
if (schema.additionalProperties === false) {
|
|
197
|
+
errs.push({ path, rule: 'additionalProperties', detail: `unknown property '${k}'` });
|
|
198
|
+
} else if (
|
|
199
|
+
schema.additionalProperties === true
|
|
200
|
+
|| (schema.additionalProperties !== null && typeof schema.additionalProperties === 'object')
|
|
201
|
+
) {
|
|
202
|
+
validateNode(v, schema.additionalProperties, `${path}.${k}`, errs, context);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
for (const [k, v] of Object.entries(value)) {
|
|
207
|
+
if (Object.hasOwn(props, k)) validateNode(v, props[k], `${path}.${k}`, errs, context);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (Array.isArray(schema.oneOf)) {
|
|
212
|
+
let matched = 0;
|
|
213
|
+
for (const sub of schema.oneOf) {
|
|
214
|
+
const e = [];
|
|
215
|
+
validateNode(value, sub, path, e, context);
|
|
216
|
+
if (e.length === 0) matched++;
|
|
217
|
+
}
|
|
218
|
+
if (matched !== 1) {
|
|
219
|
+
const titles = schema.oneOf.map((s) => s.title || '(unnamed)').join(' | ');
|
|
220
|
+
errs.push({
|
|
221
|
+
path,
|
|
222
|
+
rule: 'oneOf',
|
|
223
|
+
detail: `matched ${matched}/${schema.oneOf.length} branches (expected exactly 1). Branches: ${titles}`,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (Array.isArray(schema.anyOf)) {
|
|
229
|
+
let matched = 0;
|
|
230
|
+
for (const sub of schema.anyOf) {
|
|
231
|
+
const candidateErrors = [];
|
|
232
|
+
validateNode(value, sub, path, candidateErrors, context);
|
|
233
|
+
if (candidateErrors.length === 0) matched += 1;
|
|
234
|
+
}
|
|
235
|
+
if (matched === 0) {
|
|
236
|
+
const titles = schema.anyOf.map((sub) => sub.title || '(unnamed)').join(' | ');
|
|
237
|
+
errs.push({
|
|
238
|
+
path,
|
|
239
|
+
rule: 'anyOf',
|
|
240
|
+
detail: `matched 0/${schema.anyOf.length} branches (expected at least 1). Branches: ${titles}`,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (Array.isArray(schema.allOf)) {
|
|
246
|
+
for (const sub of schema.allOf) {
|
|
247
|
+
validateNode(value, sub, path, errs, context);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (schema.if !== undefined) {
|
|
252
|
+
const conditionErrors = [];
|
|
253
|
+
validateNode(value, schema.if, path, conditionErrors, context);
|
|
254
|
+
const branch = conditionErrors.length === 0 ? schema.then : schema.else;
|
|
255
|
+
if (branch !== undefined) validateNode(value, branch, path, errs, context);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (schema.not !== undefined) {
|
|
259
|
+
const e = [];
|
|
260
|
+
validateNode(value, schema.not, path, e, context);
|
|
261
|
+
if (e.length === 0) {
|
|
262
|
+
errs.push({ path, rule: 'not', detail: 'value matched a forbidden subschema' });
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** @returns {{ path: string, rule: string, detail: string }[]} */
|
|
268
|
+
export const validateJson = (value, schema, {
|
|
269
|
+
resolveRef = null,
|
|
270
|
+
base = schema?.$id ?? null,
|
|
271
|
+
} = {}) => {
|
|
272
|
+
const errs = [];
|
|
273
|
+
validateNode(value, schema, '$', errs, {
|
|
274
|
+
rootSchema: schema,
|
|
275
|
+
resolveRef,
|
|
276
|
+
base,
|
|
277
|
+
referenceStack: [],
|
|
278
|
+
});
|
|
279
|
+
return errs;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
/** Alias matching legacy runner export name. */
|
|
283
|
+
export const validate = validateJson;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PlanningIssue { path: string; rule: string; detail: string }
|
|
2
|
+
export declare function normalizePlanningTask<T extends Record<string, unknown>>(value: T): T & {
|
|
3
|
+
reviewRisks: string[];
|
|
4
|
+
browserSurfaces: string[];
|
|
5
|
+
acceptanceRefs: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare function validatePlanningAcceptanceCoverage(
|
|
8
|
+
stories: ReadonlyArray<Record<string, unknown>>,
|
|
9
|
+
tasks: ReadonlyArray<Record<string, unknown>>,
|
|
10
|
+
): PlanningIssue[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const LEGACY_TASK_FIELDS = Object.freeze({
|
|
2
|
+
review_risks: 'reviewRisks',
|
|
3
|
+
browser_surfaces: 'browserSurfaces',
|
|
4
|
+
acceptance_refs: 'acceptanceRefs',
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
/** Translate released snake-case task metadata into the canonical 1.7 names. */
|
|
8
|
+
export function normalizePlanningTask(value) {
|
|
9
|
+
const task = structuredClone(value ?? {});
|
|
10
|
+
for (const [legacy, canonical] of Object.entries(LEGACY_TASK_FIELDS)) {
|
|
11
|
+
if (task[canonical] === undefined && task[legacy] !== undefined) task[canonical] = task[legacy];
|
|
12
|
+
delete task[legacy];
|
|
13
|
+
}
|
|
14
|
+
task.reviewRisks ??= [];
|
|
15
|
+
task.browserSurfaces ??= [];
|
|
16
|
+
task.acceptanceRefs ??= [];
|
|
17
|
+
return task;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Validate that every story criterion is assigned and named in task verification. */
|
|
21
|
+
export function validatePlanningAcceptanceCoverage(stories, tasks) {
|
|
22
|
+
const issues = [];
|
|
23
|
+
const tasksByStory = new Map();
|
|
24
|
+
for (const rawTask of tasks ?? []) {
|
|
25
|
+
const task = normalizePlanningTask(rawTask);
|
|
26
|
+
const bucket = tasksByStory.get(task.storyId) ?? [];
|
|
27
|
+
bucket.push(task);
|
|
28
|
+
tasksByStory.set(task.storyId, bucket);
|
|
29
|
+
}
|
|
30
|
+
for (const story of stories ?? []) {
|
|
31
|
+
const criteria = story.acceptanceCriteria ?? [];
|
|
32
|
+
const ids = new Set(criteria.map((criterion) => criterion.id));
|
|
33
|
+
if (ids.size !== criteria.length) {
|
|
34
|
+
issues.push({ path: `${story.id}.acceptanceCriteria`, rule: 'unique', detail: 'Acceptance IDs must be unique within the story.' });
|
|
35
|
+
}
|
|
36
|
+
for (const criterion of criteria) {
|
|
37
|
+
const mapped = (tasksByStory.get(story.id) ?? []).filter((task) => task.acceptanceRefs.includes(criterion.id));
|
|
38
|
+
if (mapped.length === 0) {
|
|
39
|
+
issues.push({ path: `${story.id}.${criterion.id}`, rule: 'coverage', detail: 'Acceptance criterion is not mapped to a task.' });
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (mapped.every((task) => !String(task.testRequirements ?? '').includes(criterion.id))) {
|
|
43
|
+
issues.push({ path: `${story.id}.${criterion.id}`, rule: 'verification', detail: 'A mapped task must name the acceptance ID in Test Requirements.' });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
for (const task of tasksByStory.get(story.id) ?? []) {
|
|
47
|
+
for (const reference of task.acceptanceRefs) {
|
|
48
|
+
if (!ids.has(reference)) issues.push({ path: `${task.id}.acceptanceRefs`, rule: 'reference', detail: `${reference} is not declared by ${story.id}.` });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return issues;
|
|
53
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface CanonicalRegistries {
|
|
2
|
+
readonly 'roles.json': Record<string, unknown>;
|
|
3
|
+
readonly 'task-kinds.json': Record<string, unknown>;
|
|
4
|
+
readonly 'rules.json': Record<string, unknown>;
|
|
5
|
+
readonly 'commands.json': Record<string, unknown>;
|
|
6
|
+
readonly 'skills.json': Record<string, unknown>;
|
|
7
|
+
readonly 'outputs.json': Record<string, unknown>;
|
|
8
|
+
readonly 'output-paths.json'?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export type OutputProjectMode = 'default' | 'spec-driven';
|
|
11
|
+
export interface ProjectModePathTemplates {
|
|
12
|
+
readonly default: string;
|
|
13
|
+
readonly 'spec-driven': string;
|
|
14
|
+
}
|
|
15
|
+
export interface OutputCatalogEntry extends Record<string, unknown> {
|
|
16
|
+
readonly outputId: string;
|
|
17
|
+
readonly pathTemplate: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ResolveOutputPathOptions {
|
|
20
|
+
readonly projectMode?: OutputProjectMode;
|
|
21
|
+
readonly pathArguments?: Readonly<Record<string, string>>;
|
|
22
|
+
}
|
|
23
|
+
export declare const CANONICAL_REGISTRIES: CanonicalRegistries;
|
|
24
|
+
export declare function getCanonicalRegistry(name: keyof CanonicalRegistries): Record<string, unknown>;
|
|
25
|
+
export declare function validateCanonicalRegistries(registries?: CanonicalRegistries): true;
|
|
26
|
+
export declare function getRole(roleId: string): Record<string, unknown>;
|
|
27
|
+
export declare function resolveLegacyRoleAlias(alias: string): Record<string, unknown> | null;
|
|
28
|
+
export declare function resolveTaskKind(taskKind: string): Record<string, unknown>;
|
|
29
|
+
export declare function getOutput(outputId: string, registries?: CanonicalRegistries): OutputCatalogEntry;
|
|
30
|
+
export declare function getOutputPathTemplate(
|
|
31
|
+
outputId: string,
|
|
32
|
+
projectMode?: OutputProjectMode,
|
|
33
|
+
registries?: CanonicalRegistries,
|
|
34
|
+
): string;
|
|
35
|
+
export declare function resolveOutputPath(
|
|
36
|
+
outputId: string,
|
|
37
|
+
options?: ResolveOutputPathOptions,
|
|
38
|
+
registries?: CanonicalRegistries,
|
|
39
|
+
): string;
|
|
40
|
+
export declare function routeLegacyTask(value: { legacyType: 'UI' | 'Tech'; legacyAgent?: string | null }): Record<string, unknown>;
|