@azx-pbc/axiom-runtime 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +714 -2
- package/dist/cache/index.d.ts +191 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +361 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/canonical/jcs.d.ts +78 -0
- package/dist/canonical/jcs.d.ts.map +1 -0
- package/dist/canonical/jcs.js +500 -0
- package/dist/canonical/jcs.js.map +1 -0
- package/dist/canonical/restricted-json.d.ts +7 -0
- package/dist/canonical/restricted-json.d.ts.map +1 -0
- package/dist/canonical/restricted-json.js +318 -0
- package/dist/canonical/restricted-json.js.map +1 -0
- package/dist/canonical/restricted-value.d.ts +59 -0
- package/dist/canonical/restricted-value.d.ts.map +1 -0
- package/dist/canonical/restricted-value.js +156 -0
- package/dist/canonical/restricted-value.js.map +1 -0
- package/dist/canonical/restricted.d.ts +85 -0
- package/dist/canonical/restricted.d.ts.map +1 -0
- package/dist/canonical/restricted.js +163 -0
- package/dist/canonical/restricted.js.map +1 -0
- package/dist/canonical/signature.d.ts +38 -0
- package/dist/canonical/signature.d.ts.map +1 -0
- package/dist/canonical/signature.js +47 -0
- package/dist/canonical/signature.js.map +1 -0
- package/dist/eval/access/delivery.d.ts +63 -0
- package/dist/eval/access/delivery.d.ts.map +1 -0
- package/dist/eval/access/delivery.js +98 -0
- package/dist/eval/access/delivery.js.map +1 -0
- package/dist/eval/access/overlay.d.ts +72 -0
- package/dist/eval/access/overlay.d.ts.map +1 -0
- package/dist/eval/access/overlay.js +402 -0
- package/dist/eval/access/overlay.js.map +1 -0
- package/dist/eval/access/projection.d.ts +159 -0
- package/dist/eval/access/projection.d.ts.map +1 -0
- package/dist/eval/access/projection.js +211 -0
- package/dist/eval/access/projection.js.map +1 -0
- package/dist/eval/access/window.d.ts +128 -0
- package/dist/eval/access/window.d.ts.map +1 -0
- package/dist/eval/access/window.js +254 -0
- package/dist/eval/access/window.js.map +1 -0
- package/dist/eval/access/write.d.ts +113 -0
- package/dist/eval/access/write.d.ts.map +1 -0
- package/dist/eval/access/write.js +119 -0
- package/dist/eval/access/write.js.map +1 -0
- package/dist/eval/addressing.d.ts +131 -0
- package/dist/eval/addressing.d.ts.map +1 -0
- package/dist/eval/addressing.js +270 -0
- package/dist/eval/addressing.js.map +1 -0
- package/dist/eval/budget.d.ts +143 -0
- package/dist/eval/budget.d.ts.map +1 -0
- package/dist/eval/budget.js +387 -0
- package/dist/eval/budget.js.map +1 -0
- package/dist/eval/computed.d.ts +46 -0
- package/dist/eval/computed.d.ts.map +1 -0
- package/dist/eval/computed.js +89 -0
- package/dist/eval/computed.js.map +1 -0
- package/dist/eval/denials.d.ts +64 -0
- package/dist/eval/denials.d.ts.map +1 -0
- package/dist/eval/denials.js +87 -0
- package/dist/eval/denials.js.map +1 -0
- package/dist/eval/engine/cancellation.d.ts +12 -0
- package/dist/eval/engine/cancellation.d.ts.map +1 -0
- package/dist/eval/engine/cancellation.js +56 -0
- package/dist/eval/engine/cancellation.js.map +1 -0
- package/dist/eval/engine/delta.d.ts +104 -0
- package/dist/eval/engine/delta.d.ts.map +1 -0
- package/dist/eval/engine/delta.js +466 -0
- package/dist/eval/engine/delta.js.map +1 -0
- package/dist/eval/engine/deps.d.ts +136 -0
- package/dist/eval/engine/deps.d.ts.map +1 -0
- package/dist/eval/engine/deps.js +345 -0
- package/dist/eval/engine/deps.js.map +1 -0
- package/dist/eval/engine/identity.d.ts +128 -0
- package/dist/eval/engine/identity.d.ts.map +1 -0
- package/dist/eval/engine/identity.js +398 -0
- package/dist/eval/engine/identity.js.map +1 -0
- package/dist/eval/engine/index.d.ts +200 -0
- package/dist/eval/engine/index.d.ts.map +1 -0
- package/dist/eval/engine/index.js +1242 -0
- package/dist/eval/engine/index.js.map +1 -0
- package/dist/eval/engine/measurement.d.ts +23 -0
- package/dist/eval/engine/measurement.d.ts.map +1 -0
- package/dist/eval/engine/measurement.js +42 -0
- package/dist/eval/engine/measurement.js.map +1 -0
- package/dist/eval/engine/naive.d.ts +19 -0
- package/dist/eval/engine/naive.d.ts.map +1 -0
- package/dist/eval/engine/naive.js +59 -0
- package/dist/eval/engine/naive.js.map +1 -0
- package/dist/eval/engine/ops.d.ts +214 -0
- package/dist/eval/engine/ops.d.ts.map +1 -0
- package/dist/eval/engine/ops.js +1422 -0
- package/dist/eval/engine/ops.js.map +1 -0
- package/dist/eval/engine/patches.d.ts +40 -0
- package/dist/eval/engine/patches.d.ts.map +1 -0
- package/dist/eval/engine/patches.js +125 -0
- package/dist/eval/engine/patches.js.map +1 -0
- package/dist/eval/engine/ports.d.ts +71 -0
- package/dist/eval/engine/ports.d.ts.map +1 -0
- package/dist/eval/engine/ports.js +2 -0
- package/dist/eval/engine/ports.js.map +1 -0
- package/dist/eval/engine/session.d.ts +116 -0
- package/dist/eval/engine/session.d.ts.map +1 -0
- package/dist/eval/engine/session.js +653 -0
- package/dist/eval/engine/session.js.map +1 -0
- package/dist/eval/engine/snapshot.d.ts +97 -0
- package/dist/eval/engine/snapshot.d.ts.map +1 -0
- package/dist/eval/engine/snapshot.js +221 -0
- package/dist/eval/engine/snapshot.js.map +1 -0
- package/dist/eval/engine/subscriptions.d.ts +47 -0
- package/dist/eval/engine/subscriptions.d.ts.map +1 -0
- package/dist/eval/engine/subscriptions.js +103 -0
- package/dist/eval/engine/subscriptions.js.map +1 -0
- package/dist/eval/engine/trace.d.ts +77 -0
- package/dist/eval/engine/trace.d.ts.map +1 -0
- package/dist/eval/engine/trace.js +140 -0
- package/dist/eval/engine/trace.js.map +1 -0
- package/dist/eval/error-diagnostic.d.ts +26 -0
- package/dist/eval/error-diagnostic.d.ts.map +1 -0
- package/dist/eval/error-diagnostic.js +63 -0
- package/dist/eval/error-diagnostic.js.map +1 -0
- package/dist/eval/evaluate-expr.d.ts +44 -0
- package/dist/eval/evaluate-expr.d.ts.map +1 -0
- package/dist/eval/evaluate-expr.js +149 -0
- package/dist/eval/evaluate-expr.js.map +1 -0
- package/dist/eval/evaluate.d.ts +282 -0
- package/dist/eval/evaluate.d.ts.map +1 -0
- package/dist/eval/evaluate.js +391 -0
- package/dist/eval/evaluate.js.map +1 -0
- package/dist/eval/evolution/relocate.d.ts +72 -0
- package/dist/eval/evolution/relocate.d.ts.map +1 -0
- package/dist/eval/evolution/relocate.js +427 -0
- package/dist/eval/evolution/relocate.js.map +1 -0
- package/dist/eval/evolution/select.d.ts +11 -0
- package/dist/eval/evolution/select.d.ts.map +1 -0
- package/dist/eval/evolution/select.js +53 -0
- package/dist/eval/evolution/select.js.map +1 -0
- package/dist/eval/evolution/upcast.d.ts +13 -0
- package/dist/eval/evolution/upcast.d.ts.map +1 -0
- package/dist/eval/evolution/upcast.js +88 -0
- package/dist/eval/evolution/upcast.js.map +1 -0
- package/dist/eval/expr/aggregates.d.ts +75 -0
- package/dist/eval/expr/aggregates.d.ts.map +1 -0
- package/dist/eval/expr/aggregates.js +991 -0
- package/dist/eval/expr/aggregates.js.map +1 -0
- package/dist/eval/expr/arithmetic.d.ts +26 -0
- package/dist/eval/expr/arithmetic.d.ts.map +1 -0
- package/dist/eval/expr/arithmetic.js +387 -0
- package/dist/eval/expr/arithmetic.js.map +1 -0
- package/dist/eval/expr/between.d.ts +17 -0
- package/dist/eval/expr/between.d.ts.map +1 -0
- package/dist/eval/expr/between.js +46 -0
- package/dist/eval/expr/between.js.map +1 -0
- package/dist/eval/expr/binder.d.ts +96 -0
- package/dist/eval/expr/binder.d.ts.map +1 -0
- package/dist/eval/expr/binder.js +253 -0
- package/dist/eval/expr/binder.js.map +1 -0
- package/dist/eval/expr/call-dispatch.d.ts +28 -0
- package/dist/eval/expr/call-dispatch.d.ts.map +1 -0
- package/dist/eval/expr/call-dispatch.js +114 -0
- package/dist/eval/expr/call-dispatch.js.map +1 -0
- package/dist/eval/expr/collections.d.ts +20 -0
- package/dist/eval/expr/collections.d.ts.map +1 -0
- package/dist/eval/expr/collections.js +66 -0
- package/dist/eval/expr/collections.js.map +1 -0
- package/dist/eval/expr/compare.d.ts +36 -0
- package/dist/eval/expr/compare.d.ts.map +1 -0
- package/dist/eval/expr/compare.js +115 -0
- package/dist/eval/expr/compare.js.map +1 -0
- package/dist/eval/expr/datasets.d.ts +28 -0
- package/dist/eval/expr/datasets.d.ts.map +1 -0
- package/dist/eval/expr/datasets.js +304 -0
- package/dist/eval/expr/datasets.js.map +1 -0
- package/dist/eval/expr/digest.d.ts +23 -0
- package/dist/eval/expr/digest.d.ts.map +1 -0
- package/dist/eval/expr/digest.js +89 -0
- package/dist/eval/expr/digest.js.map +1 -0
- package/dist/eval/expr/domains.d.ts +19 -0
- package/dist/eval/expr/domains.d.ts.map +1 -0
- package/dist/eval/expr/domains.js +18 -0
- package/dist/eval/expr/domains.js.map +1 -0
- package/dist/eval/expr/host.d.ts +152 -0
- package/dist/eval/expr/host.d.ts.map +1 -0
- package/dist/eval/expr/host.js +36 -0
- package/dist/eval/expr/host.js.map +1 -0
- package/dist/eval/expr/lists.d.ts +24 -0
- package/dist/eval/expr/lists.d.ts.map +1 -0
- package/dist/eval/expr/lists.js +155 -0
- package/dist/eval/expr/lists.js.map +1 -0
- package/dist/eval/expr/member.d.ts +15 -0
- package/dist/eval/expr/member.d.ts.map +1 -0
- package/dist/eval/expr/member.js +32 -0
- package/dist/eval/expr/member.js.map +1 -0
- package/dist/eval/expr/money-ops.d.ts +10 -0
- package/dist/eval/expr/money-ops.d.ts.map +1 -0
- package/dist/eval/expr/money-ops.js +17 -0
- package/dist/eval/expr/money-ops.js.map +1 -0
- package/dist/eval/expr/operands.d.ts +27 -0
- package/dist/eval/expr/operands.d.ts.map +1 -0
- package/dist/eval/expr/operands.js +167 -0
- package/dist/eval/expr/operands.js.map +1 -0
- package/dist/eval/expr/presence.d.ts +27 -0
- package/dist/eval/expr/presence.d.ts.map +1 -0
- package/dist/eval/expr/presence.js +140 -0
- package/dist/eval/expr/presence.js.map +1 -0
- package/dist/eval/expr/records.d.ts +22 -0
- package/dist/eval/expr/records.d.ts.map +1 -0
- package/dist/eval/expr/records.js +101 -0
- package/dist/eval/expr/records.js.map +1 -0
- package/dist/eval/expr/rule-refs.d.ts +25 -0
- package/dist/eval/expr/rule-refs.d.ts.map +1 -0
- package/dist/eval/expr/rule-refs.js +60 -0
- package/dist/eval/expr/rule-refs.js.map +1 -0
- package/dist/eval/expr/sequences.d.ts +26 -0
- package/dist/eval/expr/sequences.d.ts.map +1 -0
- package/dist/eval/expr/sequences.js +151 -0
- package/dist/eval/expr/sequences.js.map +1 -0
- package/dist/eval/expr/value.d.ts +99 -0
- package/dist/eval/expr/value.d.ts.map +1 -0
- package/dist/eval/expr/value.js +14 -0
- package/dist/eval/expr/value.js.map +1 -0
- package/dist/eval/expression.d.ts +142 -0
- package/dist/eval/expression.d.ts.map +1 -0
- package/dist/eval/expression.js +446 -0
- package/dist/eval/expression.js.map +1 -0
- package/dist/eval/firing.d.ts +68 -0
- package/dist/eval/firing.d.ts.map +1 -0
- package/dist/eval/firing.js +222 -0
- package/dist/eval/firing.js.map +1 -0
- package/dist/eval/gate.d.ts +110 -0
- package/dist/eval/gate.d.ts.map +1 -0
- package/dist/eval/gate.js +278 -0
- package/dist/eval/gate.js.map +1 -0
- package/dist/eval/layout-visibility.d.ts +18 -0
- package/dist/eval/layout-visibility.d.ts.map +1 -0
- package/dist/eval/layout-visibility.js +61 -0
- package/dist/eval/layout-visibility.js.map +1 -0
- package/dist/eval/option-availability.d.ts +26 -0
- package/dist/eval/option-availability.d.ts.map +1 -0
- package/dist/eval/option-availability.js +580 -0
- package/dist/eval/option-availability.js.map +1 -0
- package/dist/eval/options-boundary.d.ts +15 -0
- package/dist/eval/options-boundary.d.ts.map +1 -0
- package/dist/eval/options-boundary.js +40 -0
- package/dist/eval/options-boundary.js.map +1 -0
- package/dist/eval/options.d.ts +99 -0
- package/dist/eval/options.d.ts.map +1 -0
- package/dist/eval/options.js +96 -0
- package/dist/eval/options.js.map +1 -0
- package/dist/eval/overrides.d.ts +116 -0
- package/dist/eval/overrides.d.ts.map +1 -0
- package/dist/eval/overrides.js +176 -0
- package/dist/eval/overrides.js.map +1 -0
- package/dist/eval/paths.d.ts +25 -0
- package/dist/eval/paths.d.ts.map +1 -0
- package/dist/eval/paths.js +47 -0
- package/dist/eval/paths.js.map +1 -0
- package/dist/eval/presentation-reads.d.ts +20 -0
- package/dist/eval/presentation-reads.d.ts.map +1 -0
- package/dist/eval/presentation-reads.js +2 -0
- package/dist/eval/presentation-reads.js.map +1 -0
- package/dist/eval/presentation.d.ts +122 -0
- package/dist/eval/presentation.d.ts.map +1 -0
- package/dist/eval/presentation.js +255 -0
- package/dist/eval/presentation.js.map +1 -0
- package/dist/eval/reader/context-value.d.ts +41 -0
- package/dist/eval/reader/context-value.d.ts.map +1 -0
- package/dist/eval/reader/context-value.js +129 -0
- package/dist/eval/reader/context-value.js.map +1 -0
- package/dist/eval/reader/covered.d.ts +53 -0
- package/dist/eval/reader/covered.d.ts.map +1 -0
- package/dist/eval/reader/covered.js +139 -0
- package/dist/eval/reader/covered.js.map +1 -0
- package/dist/eval/reader/declarations.d.ts +182 -0
- package/dist/eval/reader/declarations.d.ts.map +1 -0
- package/dist/eval/reader/declarations.js +153 -0
- package/dist/eval/reader/declarations.js.map +1 -0
- package/dist/eval/reader/member-access.d.ts +87 -0
- package/dist/eval/reader/member-access.d.ts.map +1 -0
- package/dist/eval/reader/member-access.js +212 -0
- package/dist/eval/reader/member-access.js.map +1 -0
- package/dist/eval/reader/memo.d.ts +34 -0
- package/dist/eval/reader/memo.d.ts.map +1 -0
- package/dist/eval/reader/memo.js +67 -0
- package/dist/eval/reader/memo.js.map +1 -0
- package/dist/eval/reader/overlay.d.ts +74 -0
- package/dist/eval/reader/overlay.d.ts.map +1 -0
- package/dist/eval/reader/overlay.js +365 -0
- package/dist/eval/reader/overlay.js.map +1 -0
- package/dist/eval/reader/questions.d.ts +37 -0
- package/dist/eval/reader/questions.d.ts.map +1 -0
- package/dist/eval/reader/questions.js +78 -0
- package/dist/eval/reader/questions.js.map +1 -0
- package/dist/eval/reader/resolve.d.ts +84 -0
- package/dist/eval/reader/resolve.d.ts.map +1 -0
- package/dist/eval/reader/resolve.js +310 -0
- package/dist/eval/reader/resolve.js.map +1 -0
- package/dist/eval/reader/value-read.d.ts +50 -0
- package/dist/eval/reader/value-read.d.ts.map +1 -0
- package/dist/eval/reader/value-read.js +133 -0
- package/dist/eval/reader/value-read.js.map +1 -0
- package/dist/eval/reader/withheld.d.ts +48 -0
- package/dist/eval/reader/withheld.d.ts.map +1 -0
- package/dist/eval/reader/withheld.js +108 -0
- package/dist/eval/reader/withheld.js.map +1 -0
- package/dist/eval/reader-paths.d.ts +24 -0
- package/dist/eval/reader-paths.d.ts.map +1 -0
- package/dist/eval/reader-paths.js +23 -0
- package/dist/eval/reader-paths.js.map +1 -0
- package/dist/eval/reader.d.ts +281 -0
- package/dist/eval/reader.d.ts.map +1 -0
- package/dist/eval/reader.js +560 -0
- package/dist/eval/reader.js.map +1 -0
- package/dist/eval/receipt.d.ts +37 -0
- package/dist/eval/receipt.d.ts.map +1 -0
- package/dist/eval/receipt.js +222 -0
- package/dist/eval/receipt.js.map +1 -0
- package/dist/eval/report/assemble.d.ts +84 -0
- package/dist/eval/report/assemble.d.ts.map +1 -0
- package/dist/eval/report/assemble.js +277 -0
- package/dist/eval/report/assemble.js.map +1 -0
- package/dist/eval/report/fold.d.ts +18 -0
- package/dist/eval/report/fold.d.ts.map +1 -0
- package/dist/eval/report/fold.js +58 -0
- package/dist/eval/report/fold.js.map +1 -0
- package/dist/eval/rule/alternatives.d.ts +23 -0
- package/dist/eval/rule/alternatives.d.ts.map +1 -0
- package/dist/eval/rule/alternatives.js +46 -0
- package/dist/eval/rule/alternatives.js.map +1 -0
- package/dist/eval/rule/behaviour.d.ts +47 -0
- package/dist/eval/rule/behaviour.d.ts.map +1 -0
- package/dist/eval/rule/behaviour.js +249 -0
- package/dist/eval/rule/behaviour.js.map +1 -0
- package/dist/eval/rule/compute.d.ts +46 -0
- package/dist/eval/rule/compute.d.ts.map +1 -0
- package/dist/eval/rule/compute.js +158 -0
- package/dist/eval/rule/compute.js.map +1 -0
- package/dist/eval/rule/create-state.d.ts +42 -0
- package/dist/eval/rule/create-state.d.ts.map +1 -0
- package/dist/eval/rule/create-state.js +134 -0
- package/dist/eval/rule/create-state.js.map +1 -0
- package/dist/eval/rule/diagnostics.d.ts +24 -0
- package/dist/eval/rule/diagnostics.d.ts.map +1 -0
- package/dist/eval/rule/diagnostics.js +45 -0
- package/dist/eval/rule/diagnostics.js.map +1 -0
- package/dist/eval/rule/execution.d.ts +24 -0
- package/dist/eval/rule/execution.d.ts.map +1 -0
- package/dist/eval/rule/execution.js +495 -0
- package/dist/eval/rule/execution.js.map +1 -0
- package/dist/eval/rule/gate.d.ts +12 -0
- package/dist/eval/rule/gate.d.ts.map +1 -0
- package/dist/eval/rule/gate.js +34 -0
- package/dist/eval/rule/gate.js.map +1 -0
- package/dist/eval/rule/item.d.ts +11 -0
- package/dist/eval/rule/item.d.ts.map +1 -0
- package/dist/eval/rule/item.js +265 -0
- package/dist/eval/rule/item.js.map +1 -0
- package/dist/eval/rule/prepare.d.ts +64 -0
- package/dist/eval/rule/prepare.d.ts.map +1 -0
- package/dist/eval/rule/prepare.js +131 -0
- package/dist/eval/rule/prepare.js.map +1 -0
- package/dist/eval/rule/result.d.ts +97 -0
- package/dist/eval/rule/result.d.ts.map +1 -0
- package/dist/eval/rule/result.js +347 -0
- package/dist/eval/rule/result.js.map +1 -0
- package/dist/eval/rule/runner.d.ts +128 -0
- package/dist/eval/rule/runner.d.ts.map +1 -0
- package/dist/eval/rule/runner.js +296 -0
- package/dist/eval/rule/runner.js.map +1 -0
- package/dist/eval/rule/screen.d.ts +32 -0
- package/dist/eval/rule/screen.d.ts.map +1 -0
- package/dist/eval/rule/screen.js +73 -0
- package/dist/eval/rule/screen.js.map +1 -0
- package/dist/eval/rule/state.d.ts +137 -0
- package/dist/eval/rule/state.d.ts.map +1 -0
- package/dist/eval/rule/state.js +2 -0
- package/dist/eval/rule/state.js.map +1 -0
- package/dist/eval/rule/steps.d.ts +44 -0
- package/dist/eval/rule/steps.d.ts.map +1 -0
- package/dist/eval/rule/steps.js +367 -0
- package/dist/eval/rule/steps.js.map +1 -0
- package/dist/eval/rule/visibility.d.ts +18 -0
- package/dist/eval/rule/visibility.d.ts.map +1 -0
- package/dist/eval/rule/visibility.js +79 -0
- package/dist/eval/rule/visibility.js.map +1 -0
- package/dist/eval/seal.d.ts +74 -0
- package/dist/eval/seal.d.ts.map +1 -0
- package/dist/eval/seal.js +154 -0
- package/dist/eval/seal.js.map +1 -0
- package/dist/eval/signature-coverage.d.ts +19 -0
- package/dist/eval/signature-coverage.d.ts.map +1 -0
- package/dist/eval/signature-coverage.js +160 -0
- package/dist/eval/signature-coverage.js.map +1 -0
- package/dist/eval/state/derive.d.ts +72 -0
- package/dist/eval/state/derive.d.ts.map +1 -0
- package/dist/eval/state/derive.js +61 -0
- package/dist/eval/state/derive.js.map +1 -0
- package/dist/eval/state/describe.d.ts +18 -0
- package/dist/eval/state/describe.d.ts.map +1 -0
- package/dist/eval/state/describe.js +19 -0
- package/dist/eval/state/describe.js.map +1 -0
- package/dist/eval/state/field-state.d.ts +471 -0
- package/dist/eval/state/field-state.d.ts.map +1 -0
- package/dist/eval/state/field-state.js +1604 -0
- package/dist/eval/state/field-state.js.map +1 -0
- package/dist/eval/state/measurement.d.ts +136 -0
- package/dist/eval/state/measurement.d.ts.map +1 -0
- package/dist/eval/state/measurement.js +209 -0
- package/dist/eval/state/measurement.js.map +1 -0
- package/dist/eval/state/options.d.ts +21 -0
- package/dist/eval/state/options.d.ts.map +1 -0
- package/dist/eval/state/options.js +3 -0
- package/dist/eval/state/options.js.map +1 -0
- package/dist/eval/state/readiness.d.ts +400 -0
- package/dist/eval/state/readiness.d.ts.map +1 -0
- package/dist/eval/state/readiness.js +1067 -0
- package/dist/eval/state/readiness.js.map +1 -0
- package/dist/eval/state/snapshot.d.ts +130 -0
- package/dist/eval/state/snapshot.d.ts.map +1 -0
- package/dist/eval/state/snapshot.js +35 -0
- package/dist/eval/state/snapshot.js.map +1 -0
- package/dist/eval/state/unavailable-options.d.ts +54 -0
- package/dist/eval/state/unavailable-options.d.ts.map +1 -0
- package/dist/eval/state/unavailable-options.js +82 -0
- package/dist/eval/state/unavailable-options.js.map +1 -0
- package/dist/eval/state/value-state.d.ts +38 -0
- package/dist/eval/state/value-state.d.ts.map +1 -0
- package/dist/eval/state/value-state.js +52 -0
- package/dist/eval/state/value-state.js.map +1 -0
- package/dist/eval/submission/admission.d.ts +50 -0
- package/dist/eval/submission/admission.d.ts.map +1 -0
- package/dist/eval/submission/admission.js +174 -0
- package/dist/eval/submission/admission.js.map +1 -0
- package/dist/eval/submission/authority.d.ts +71 -0
- package/dist/eval/submission/authority.d.ts.map +1 -0
- package/dist/eval/submission/authority.js +118 -0
- package/dist/eval/submission/authority.js.map +1 -0
- package/dist/eval/submission/datasets.d.ts +28 -0
- package/dist/eval/submission/datasets.d.ts.map +1 -0
- package/dist/eval/submission/datasets.js +109 -0
- package/dist/eval/submission/datasets.js.map +1 -0
- package/dist/eval/submission/index.d.ts +15 -0
- package/dist/eval/submission/index.d.ts.map +1 -0
- package/dist/eval/submission/index.js +13 -0
- package/dist/eval/submission/index.js.map +1 -0
- package/dist/eval/submission/refusals.d.ts +103 -0
- package/dist/eval/submission/refusals.d.ts.map +1 -0
- package/dist/eval/submission/refusals.js +15 -0
- package/dist/eval/submission/refusals.js.map +1 -0
- package/dist/eval/submission/signatures.d.ts +7 -0
- package/dist/eval/submission/signatures.d.ts.map +1 -0
- package/dist/eval/submission/signatures.js +215 -0
- package/dist/eval/submission/signatures.js.map +1 -0
- package/dist/eval/submission/writes.d.ts +51 -0
- package/dist/eval/submission/writes.d.ts.map +1 -0
- package/dist/eval/submission/writes.js +203 -0
- package/dist/eval/submission/writes.js.map +1 -0
- package/dist/eval/submission.d.ts +53 -0
- package/dist/eval/submission.d.ts.map +1 -0
- package/dist/eval/submission.js +521 -0
- package/dist/eval/submission.js.map +1 -0
- package/dist/eval/suggestions-to-engine.d.ts +18 -0
- package/dist/eval/suggestions-to-engine.d.ts.map +1 -0
- package/dist/eval/suggestions-to-engine.js +40 -0
- package/dist/eval/suggestions-to-engine.js.map +1 -0
- package/dist/eval/suggestions.d.ts +17 -0
- package/dist/eval/suggestions.d.ts.map +1 -0
- package/dist/eval/suggestions.js +314 -0
- package/dist/eval/suggestions.js.map +1 -0
- package/dist/eval/undecided.d.ts +64 -0
- package/dist/eval/undecided.d.ts.map +1 -0
- package/dist/eval/undecided.js +101 -0
- package/dist/eval/undecided.js.map +1 -0
- package/dist/eval/verdict.d.ts +66 -0
- package/dist/eval/verdict.d.ts.map +1 -0
- package/dist/eval/verdict.js +106 -0
- package/dist/eval/verdict.js.map +1 -0
- package/dist/eval/verify-signature.d.ts +78 -0
- package/dist/eval/verify-signature.d.ts.map +1 -0
- package/dist/eval/verify-signature.js +185 -0
- package/dist/eval/verify-signature.js.map +1 -0
- package/dist/eval/version-dispatch.d.ts +38 -0
- package/dist/eval/version-dispatch.d.ts.map +1 -0
- package/dist/eval/version-dispatch.js +61 -0
- package/dist/eval/version-dispatch.js.map +1 -0
- package/dist/eval/visibility.d.ts +33 -0
- package/dist/eval/visibility.d.ts.map +1 -0
- package/dist/eval/visibility.js +83 -0
- package/dist/eval/visibility.js.map +1 -0
- package/dist/evaluate.d.ts +24 -0
- package/dist/evaluate.d.ts.map +1 -0
- package/dist/evaluate.js +18 -0
- package/dist/evaluate.js.map +1 -0
- package/dist/expr/builtin-docs.d.ts +51 -0
- package/dist/expr/builtin-docs.d.ts.map +1 -0
- package/dist/expr/builtin-docs.js +874 -0
- package/dist/expr/builtin-docs.js.map +1 -0
- package/dist/expr/builtins.d.ts +50 -0
- package/dist/expr/builtins.d.ts.map +1 -0
- package/dist/expr/builtins.js +966 -0
- package/dist/expr/builtins.js.map +1 -0
- package/dist/expr/decimal-precision.d.ts +39 -0
- package/dist/expr/decimal-precision.d.ts.map +1 -0
- package/dist/expr/decimal-precision.js +62 -0
- package/dist/expr/decimal-precision.js.map +1 -0
- package/dist/expr/decimal.d.ts +172 -0
- package/dist/expr/decimal.d.ts.map +1 -0
- package/dist/expr/decimal.js +782 -0
- package/dist/expr/decimal.js.map +1 -0
- package/dist/expr/deprecations.d.ts +34 -0
- package/dist/expr/deprecations.d.ts.map +1 -0
- package/dist/expr/deprecations.js +17 -0
- package/dist/expr/deprecations.js.map +1 -0
- package/dist/expr/diagnostics.d.ts +21 -0
- package/dist/expr/diagnostics.d.ts.map +1 -0
- package/dist/expr/diagnostics.js +231 -0
- package/dist/expr/diagnostics.js.map +1 -0
- package/dist/expr/direction.d.ts +30 -0
- package/dist/expr/direction.d.ts.map +1 -0
- package/dist/expr/direction.js +77 -0
- package/dist/expr/direction.js.map +1 -0
- package/dist/expr/example-expression.d.ts +62 -0
- package/dist/expr/example-expression.d.ts.map +1 -0
- package/dist/expr/example-expression.js +670 -0
- package/dist/expr/example-expression.js.map +1 -0
- package/dist/expr/instant.d.ts +49 -0
- package/dist/expr/instant.d.ts.map +1 -0
- package/dist/expr/instant.js +111 -0
- package/dist/expr/instant.js.map +1 -0
- package/dist/expr/logic.d.ts +17 -0
- package/dist/expr/logic.d.ts.map +1 -0
- package/dist/expr/logic.js +65 -0
- package/dist/expr/logic.js.map +1 -0
- package/dist/expr/messages.d.ts +45 -0
- package/dist/expr/messages.d.ts.map +1 -0
- package/dist/expr/messages.js +280 -0
- package/dist/expr/messages.js.map +1 -0
- package/dist/expr/money.d.ts +38 -0
- package/dist/expr/money.d.ts.map +1 -0
- package/dist/expr/money.js +127 -0
- package/dist/expr/money.js.map +1 -0
- package/dist/expr/ordering.d.ts +56 -0
- package/dist/expr/ordering.d.ts.map +1 -0
- package/dist/expr/ordering.js +167 -0
- package/dist/expr/ordering.js.map +1 -0
- package/dist/expr/pattern.d.ts +44 -0
- package/dist/expr/pattern.d.ts.map +1 -0
- package/dist/expr/pattern.js +458 -0
- package/dist/expr/pattern.js.map +1 -0
- package/dist/expr/plain-date.d.ts +90 -0
- package/dist/expr/plain-date.d.ts.map +1 -0
- package/dist/expr/plain-date.js +230 -0
- package/dist/expr/plain-date.js.map +1 -0
- package/dist/expr/plural-categories.d.ts +8 -0
- package/dist/expr/plural-categories.d.ts.map +1 -0
- package/dist/expr/plural-categories.js +15 -0
- package/dist/expr/plural-categories.js.map +1 -0
- package/dist/expr/plural-keys.d.ts +39 -0
- package/dist/expr/plural-keys.d.ts.map +1 -0
- package/dist/expr/plural-keys.js +46 -0
- package/dist/expr/plural-keys.js.map +1 -0
- package/dist/expr/plural.d.ts +33 -0
- package/dist/expr/plural.d.ts.map +1 -0
- package/dist/expr/plural.js +50 -0
- package/dist/expr/plural.js.map +1 -0
- package/dist/expr/quantity.d.ts +31 -0
- package/dist/expr/quantity.d.ts.map +1 -0
- package/dist/expr/quantity.js +83 -0
- package/dist/expr/quantity.js.map +1 -0
- package/dist/expr/reduce.d.ts +50 -0
- package/dist/expr/reduce.d.ts.map +1 -0
- package/dist/expr/reduce.js +236 -0
- package/dist/expr/reduce.js.map +1 -0
- package/dist/expr/regex.d.ts +108 -0
- package/dist/expr/regex.d.ts.map +1 -0
- package/dist/expr/regex.js +1207 -0
- package/dist/expr/regex.js.map +1 -0
- package/dist/expr/select-locale.d.ts +67 -0
- package/dist/expr/select-locale.d.ts.map +1 -0
- package/dist/expr/select-locale.js +219 -0
- package/dist/expr/select-locale.js.map +1 -0
- package/dist/expr/sequences.d.ts +123 -0
- package/dist/expr/sequences.d.ts.map +1 -0
- package/dist/expr/sequences.js +234 -0
- package/dist/expr/sequences.js.map +1 -0
- package/dist/expr/strings.d.ts +50 -0
- package/dist/expr/strings.d.ts.map +1 -0
- package/dist/expr/strings.js +184 -0
- package/dist/expr/strings.js.map +1 -0
- package/dist/expr/validation.d.ts +32 -0
- package/dist/expr/validation.d.ts.map +1 -0
- package/dist/expr/validation.js +182 -0
- package/dist/expr/validation.js.map +1 -0
- package/dist/graph/freeze.d.ts +4 -0
- package/dist/graph/freeze.d.ts.map +1 -0
- package/dist/graph/freeze.js +52 -0
- package/dist/graph/freeze.js.map +1 -0
- package/dist/graph/index.d.ts +15 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +13 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/inspect.d.ts +76 -0
- package/dist/graph/inspect.d.ts.map +1 -0
- package/dist/graph/inspect.js +263 -0
- package/dist/graph/inspect.js.map +1 -0
- package/dist/graph/read-walk.d.ts +101 -0
- package/dist/graph/read-walk.d.ts.map +1 -0
- package/dist/graph/read-walk.js +358 -0
- package/dist/graph/read-walk.js.map +1 -0
- package/dist/graph/record-index.d.ts +24 -0
- package/dist/graph/record-index.d.ts.map +1 -0
- package/dist/graph/record-index.js +35 -0
- package/dist/graph/record-index.js.map +1 -0
- package/dist/index.d.ts +104 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/dist/lookup/digest.d.ts +51 -0
- package/dist/lookup/digest.d.ts.map +1 -0
- package/dist/lookup/digest.js +46 -0
- package/dist/lookup/digest.js.map +1 -0
- package/dist/lookup/index.d.ts +28 -0
- package/dist/lookup/index.d.ts.map +1 -0
- package/dist/lookup/index.js +27 -0
- package/dist/lookup/index.js.map +1 -0
- package/dist/lookup/install.d.ts +48 -0
- package/dist/lookup/install.d.ts.map +1 -0
- package/dist/lookup/install.js +315 -0
- package/dist/lookup/install.js.map +1 -0
- package/dist/lookup/pass.d.ts +55 -0
- package/dist/lookup/pass.d.ts.map +1 -0
- package/dist/lookup/pass.js +212 -0
- package/dist/lookup/pass.js.map +1 -0
- package/dist/lookup/pins.d.ts +34 -0
- package/dist/lookup/pins.d.ts.map +1 -0
- package/dist/lookup/pins.js +39 -0
- package/dist/lookup/pins.js.map +1 -0
- package/dist/lookup/provenance.d.ts +23 -0
- package/dist/lookup/provenance.d.ts.map +1 -0
- package/dist/lookup/provenance.js +78 -0
- package/dist/lookup/provenance.js.map +1 -0
- package/dist/lookup/readiness.d.ts +13 -0
- package/dist/lookup/readiness.d.ts.map +1 -0
- package/dist/lookup/readiness.js +57 -0
- package/dist/lookup/readiness.js.map +1 -0
- package/dist/lookup/resolve.d.ts +24 -0
- package/dist/lookup/resolve.d.ts.map +1 -0
- package/dist/lookup/resolve.js +201 -0
- package/dist/lookup/resolve.js.map +1 -0
- package/dist/lookup/store.d.ts +41 -0
- package/dist/lookup/store.d.ts.map +1 -0
- package/dist/lookup/store.js +74 -0
- package/dist/lookup/store.js.map +1 -0
- package/dist/model/access.d.ts +200 -0
- package/dist/model/access.d.ts.map +1 -0
- package/dist/model/access.js +125 -0
- package/dist/model/access.js.map +1 -0
- package/dist/model/artifact-members.d.ts +3 -0
- package/dist/model/artifact-members.d.ts.map +1 -0
- package/dist/model/artifact-members.js +38 -0
- package/dist/model/artifact-members.js.map +1 -0
- package/dist/model/composition.d.ts +47 -0
- package/dist/model/composition.d.ts.map +1 -0
- package/dist/model/composition.js +66 -0
- package/dist/model/composition.js.map +1 -0
- package/dist/model/domain.d.ts +51 -0
- package/dist/model/domain.d.ts.map +1 -0
- package/dist/model/domain.js +75 -0
- package/dist/model/domain.js.map +1 -0
- package/dist/model/duration.d.ts +31 -0
- package/dist/model/duration.d.ts.map +1 -0
- package/dist/model/duration.js +136 -0
- package/dist/model/duration.js.map +1 -0
- package/dist/model/errors.d.ts +58 -0
- package/dist/model/errors.d.ts.map +1 -0
- package/dist/model/errors.js +81 -0
- package/dist/model/errors.js.map +1 -0
- package/dist/model/evolution.d.ts +177 -0
- package/dist/model/evolution.d.ts.map +1 -0
- package/dist/model/evolution.js +5 -0
- package/dist/model/evolution.js.map +1 -0
- package/dist/model/expr-children.d.ts +15 -0
- package/dist/model/expr-children.d.ts.map +1 -0
- package/dist/model/expr-children.js +45 -0
- package/dist/model/expr-children.js.map +1 -0
- package/dist/model/guards.d.ts +9 -0
- package/dist/model/guards.d.ts.map +1 -0
- package/dist/model/guards.js +11 -0
- package/dist/model/guards.js.map +1 -0
- package/dist/model/input.d.ts +42 -0
- package/dist/model/input.d.ts.map +1 -0
- package/dist/model/input.js +26 -0
- package/dist/model/input.js.map +1 -0
- package/dist/model/integer.d.ts +14 -0
- package/dist/model/integer.d.ts.map +1 -0
- package/dist/model/integer.js +16 -0
- package/dist/model/integer.js.map +1 -0
- package/dist/model/intrinsic.d.ts +18 -0
- package/dist/model/intrinsic.d.ts.map +1 -0
- package/dist/model/intrinsic.js +21 -0
- package/dist/model/intrinsic.js.map +1 -0
- package/dist/model/layout.d.ts +129 -0
- package/dist/model/layout.d.ts.map +1 -0
- package/dist/model/layout.js +2 -0
- package/dist/model/layout.js.map +1 -0
- package/dist/model/media.d.ts +33 -0
- package/dist/model/media.d.ts.map +1 -0
- package/dist/model/media.js +86 -0
- package/dist/model/media.js.map +1 -0
- package/dist/model/members.generated.d.ts +11 -0
- package/dist/model/members.generated.d.ts.map +1 -0
- package/dist/model/members.generated.js +71 -0
- package/dist/model/members.generated.js.map +1 -0
- package/dist/model/row-address.d.ts +27 -0
- package/dist/model/row-address.d.ts.map +1 -0
- package/dist/model/row-address.js +146 -0
- package/dist/model/row-address.js.map +1 -0
- package/dist/model/schema.d.ts +108 -0
- package/dist/model/schema.d.ts.map +1 -0
- package/dist/model/schema.js +2 -0
- package/dist/model/schema.js.map +1 -0
- package/dist/model/shape.d.ts +193 -0
- package/dist/model/shape.d.ts.map +1 -0
- package/dist/model/shape.js +2 -0
- package/dist/model/shape.js.map +1 -0
- package/dist/model/time.d.ts +61 -0
- package/dist/model/time.d.ts.map +1 -0
- package/dist/model/time.js +110 -0
- package/dist/model/time.js.map +1 -0
- package/dist/model/types.d.ts +1329 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/model/types.js +424 -0
- package/dist/model/types.js.map +1 -0
- package/dist/model/values.d.ts +91 -0
- package/dist/model/values.d.ts.map +1 -0
- package/dist/model/values.js +195 -0
- package/dist/model/values.js.map +1 -0
- package/dist/model/wire.d.ts +356 -0
- package/dist/model/wire.d.ts.map +1 -0
- package/dist/model/wire.js +1504 -0
- package/dist/model/wire.js.map +1 -0
- package/dist/offline/index.d.ts +374 -0
- package/dist/offline/index.d.ts.map +1 -0
- package/dist/offline/index.js +422 -0
- package/dist/offline/index.js.map +1 -0
- package/dist/testing.d.ts +30 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +42 -0
- package/dist/testing.js.map +1 -0
- package/dist/version.d.ts +30 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +116 -0
- package/dist/version.js.map +1 -0
- package/package.json +98 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/model/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;;;;;;;;GAWG;AAEH,oDAAoD;AACpD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnE,iEAAiE;AACjE,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,qEAAqE;IACrE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;I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AAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;CACjC;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC7C,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;CACjC;AAED,qEAAqE;AACrE,MAAM,MAAM,UAAU,GAClB,aAAa,GACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,WAAW,GACX,aAAa,GACb,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/model/layout.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExprNode } from './types.js';\n\n/**\n * The closed layout grammar, `spec/semantics/model-v1.md` section 3.\n *\n * Layout is presentation only: it never appears in `values`, never takes part in evaluation\n * and never affects `behaviorHash` or `reportHash`. The compiler is its only producer and\n * the checks that keep it away from data (C11) run there, so a node an artifact carries is\n * one it has already admitted.\n *\n * The nodes are a discriminated union tagged by `kind`, so a renderer that walks the tree\n * exhausts the grammar at typecheck time. `visibleWhen`, `params` and `readouts` carry\n * compiled expressions; they are evaluated only in the runtime's presentation-only channel.\n */\n\n/** The emphasis a callout states, `MODEL-3.1.1`. */\nexport type LayoutTone = 'info' | 'warning' | 'danger' | 'success';\n\n/** One read-only value a summary card shows beside its label. */\nexport interface LayoutReadout {\n /** The message key naming the readout, resolved through the artifact's catalogue. */\n readonly labelKey: string;\n /** The compiled expression the presentation channel evaluates for the value. */\n readonly value: ExprNode;\n}\n\n/**\n * A top-level or nested section. It places a review step's content and may be collapsed;\n * it never gates access (`annotations.sectionId` owns access, `ACCESS-2.1.4`).\n *\n * A `visibleWhen` decides whether the section is painted. It is presentation-only, so the\n * condition never changes a value or its submission policy; but a hidden section's fields are\n * not on the screen, so the derived readiness ignores their blockers exactly as it ignores a\n * hidden field's.\n */\nexport interface LayoutSection {\n readonly kind: 'section';\n readonly sectionId?: string;\n readonly titleKey: string;\n readonly descriptionKey?: string;\n /** The column count the section lays its children out in, `1..4`. */\n readonly columns: number;\n readonly collapsible?: boolean;\n readonly defaultExpanded?: boolean;\n readonly hideWhenEmpty?: boolean;\n readonly visibleWhen?: ExprNode;\n /** A section holds chrome and fields, never a `wizard` or a `step`. */\n readonly children: readonly LayoutNode[];\n}\n\n/** A titled field grouping inside a section or a step, with the same column contract. */\nexport interface LayoutGroup {\n readonly kind: 'group';\n readonly titleKey?: string;\n readonly descriptionKey?: string;\n readonly columns: number;\n readonly collapsible?: boolean;\n readonly defaultExpanded?: boolean;\n readonly hideWhenEmpty?: boolean;\n readonly children: readonly LayoutNode[];\n}\n\n/** A branching flow. At most one is declared, at the top level, and it holds only steps. */\nexport interface LayoutWizard {\n readonly kind: 'wizard';\n readonly children: readonly LayoutStep[];\n}\n\n/**\n * One page of a wizard. A step that carries a `gateId` or places an interactive field is data,\n * so C11 forbids a `visibleWhen` on it; only an instruction-only step is chrome the author may\n * hide conditionally.\n */\nexport interface LayoutStep {\n readonly kind: 'step';\n readonly stepId: string;\n readonly titleKey: string;\n readonly descriptionKey?: string;\n readonly sectionId?: string;\n /** The gate rule this step is judged by, when one applies. */\n readonly gateId?: string;\n readonly hideWhenEmpty?: boolean;\n readonly columns: number;\n readonly visibleWhen?: ExprNode;\n readonly children: readonly LayoutNode[];\n}\n\n/** One interactive field's placement. A field appears at most once across the layout. */\nexport interface LayoutField {\n readonly kind: 'field';\n readonly fieldId: string;\n /** How many of its parent's columns the field spans, `1..parent.columns`. */\n readonly colSpan: number;\n}\n\n/** A decorative title. A heading is a leaf and names no section anchor. */\nexport interface LayoutHeading {\n readonly kind: 'heading';\n readonly titleKey: string;\n readonly textKey?: string;\n}\n\n/** Presentation-only emphasis with an optional title and a body message. */\nexport interface LayoutCallout {\n readonly kind: 'callout';\n readonly tone: LayoutTone;\n readonly titleKey?: string;\n readonly textKey: string;\n readonly params?: Readonly<Record<string, ExprNode>>;\n readonly visibleWhen?: ExprNode;\n}\n\n/** A horizontal rule. */\nexport interface LayoutDivider {\n readonly kind: 'divider';\n}\n\n/** Standard operating procedure text rendered as chrome. */\nexport interface LayoutSopBlock {\n readonly kind: 'sop_block';\n readonly sectionId?: string;\n readonly titleKey: string;\n readonly textKey?: string;\n readonly params?: Readonly<Record<string, ExprNode>>;\n readonly visibleWhen?: ExprNode;\n}\n\n/** A read-only summary of placed fields and computed readouts. */\nexport interface LayoutSummaryCard {\n readonly kind: 'summary_card';\n readonly sectionId?: string;\n readonly titleKey: string;\n readonly textKey?: string;\n readonly params?: Readonly<Record<string, ExprNode>>;\n readonly readouts?: readonly LayoutReadout[];\n /** The declared fields the card lists read-only; it places no control. */\n readonly fields?: readonly string[];\n readonly visibleWhen?: ExprNode;\n}\n\n/** One node of the closed ten-kind layout grammar, `MODEL-3.1.1`. */\nexport type LayoutNode =\n | LayoutSection\n | LayoutGroup\n | LayoutWizard\n | LayoutStep\n | LayoutField\n | LayoutHeading\n | LayoutCallout\n | LayoutDivider\n | LayoutSopBlock\n | LayoutSummaryCard;\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The declared media constraints of a capture field, `spec/semantics/model-v1.md` `MODEL-2.1.20`.
|
|
3
|
+
*
|
|
4
|
+
* A `media_ref` value carries its `mime` and `byteSize` on the wire, so a field's `accept` list
|
|
5
|
+
* and byte bounds are checked against a captured value rather than against a filename. A
|
|
6
|
+
* leading-dot extension is therefore matched by the media type the extension denotes: the table
|
|
7
|
+
* below is the closed mapping the compiler and the runtime share, so an extension the compiler
|
|
8
|
+
* admits is an extension the runtime can decide.
|
|
9
|
+
*/
|
|
10
|
+
/** The closed extension-to-media-type mapping an `accept` extension entry denotes. */
|
|
11
|
+
export declare const MEDIA_EXTENSION_TYPES: ReadonlyMap<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* The canonical spelling of one `accept` entry, or `undefined` when it is not an entry.
|
|
14
|
+
*
|
|
15
|
+
* The compiler stores the lower-case spelling: media types are case-insensitive and the wire
|
|
16
|
+
* `mime` is lower-case, so storing the author's case would make a duplicate depend on how it was
|
|
17
|
+
* typed. The function does not trim: whitespace around an entry is malformed rather than a
|
|
18
|
+
* spelling to normalise away.
|
|
19
|
+
*/
|
|
20
|
+
export declare function canonicalMediaAcceptEntry(raw: unknown): string | undefined;
|
|
21
|
+
/** Whether text is already a canonical `accept` entry. */
|
|
22
|
+
export declare function isCanonicalMediaAcceptEntry(text: string): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether an `accept` entry admits a captured `mime`.
|
|
25
|
+
*
|
|
26
|
+
* `image/*` admits every `image/…`; an exact media type admits only itself; an extension admits
|
|
27
|
+
* the media type the closed table maps it to. A `mime` the wire refused never reaches this
|
|
28
|
+
* function, so the comparison is exact after lower-casing and never a prefix guess.
|
|
29
|
+
*/
|
|
30
|
+
export declare function mediaAcceptEntryMatches(entry: string, mime: string): boolean;
|
|
31
|
+
/** Whether any declared `accept` entry admits a captured `mime`. */
|
|
32
|
+
export declare function mediaAcceptMatches(accept: readonly string[], mime: string): boolean;
|
|
33
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/model/media.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sFAAsF;AACtF,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CA2B5D,CAAC;AAQH;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAQ1E;AAED,0DAA0D;AAC1D,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5E;AAED,oEAAoE;AACpE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnF"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The declared media constraints of a capture field, `spec/semantics/model-v1.md` `MODEL-2.1.20`.
|
|
3
|
+
*
|
|
4
|
+
* A `media_ref` value carries its `mime` and `byteSize` on the wire, so a field's `accept` list
|
|
5
|
+
* and byte bounds are checked against a captured value rather than against a filename. A
|
|
6
|
+
* leading-dot extension is therefore matched by the media type the extension denotes: the table
|
|
7
|
+
* below is the closed mapping the compiler and the runtime share, so an extension the compiler
|
|
8
|
+
* admits is an extension the runtime can decide.
|
|
9
|
+
*/
|
|
10
|
+
/** The closed extension-to-media-type mapping an `accept` extension entry denotes. */
|
|
11
|
+
export const MEDIA_EXTENSION_TYPES = new Map([
|
|
12
|
+
['.bmp', 'image/bmp'],
|
|
13
|
+
['.csv', 'text/csv'],
|
|
14
|
+
['.doc', 'application/msword'],
|
|
15
|
+
['.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
|
|
16
|
+
['.gif', 'image/gif'],
|
|
17
|
+
['.heic', 'image/heic'],
|
|
18
|
+
['.heif', 'image/heif'],
|
|
19
|
+
['.jpeg', 'image/jpeg'],
|
|
20
|
+
['.jpg', 'image/jpeg'],
|
|
21
|
+
['.json', 'application/json'],
|
|
22
|
+
['.mov', 'video/quicktime'],
|
|
23
|
+
['.mp3', 'audio/mpeg'],
|
|
24
|
+
['.mp4', 'video/mp4'],
|
|
25
|
+
['.pdf', 'application/pdf'],
|
|
26
|
+
['.png', 'image/png'],
|
|
27
|
+
['.svg', 'image/svg+xml'],
|
|
28
|
+
['.tif', 'image/tiff'],
|
|
29
|
+
['.tiff', 'image/tiff'],
|
|
30
|
+
['.txt', 'text/plain'],
|
|
31
|
+
['.wav', 'audio/wav'],
|
|
32
|
+
['.webm', 'video/webm'],
|
|
33
|
+
['.webp', 'image/webp'],
|
|
34
|
+
['.xls', 'application/vnd.ms-excel'],
|
|
35
|
+
['.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
|
|
36
|
+
['.xml', 'application/xml'],
|
|
37
|
+
['.zip', 'application/zip'],
|
|
38
|
+
]);
|
|
39
|
+
/** A media type entry: `type/subtype`, with `*` admitted as the subtype. */
|
|
40
|
+
const MEDIA_TYPE_ENTRY = /^[a-z]+\/(?:[a-z0-9.+-]+|\*)$/;
|
|
41
|
+
/** An extension entry: a leading dot and one lower-case alphanumeric run. */
|
|
42
|
+
const EXTENSION_ENTRY = /^\.[a-z0-9]+$/;
|
|
43
|
+
/**
|
|
44
|
+
* The canonical spelling of one `accept` entry, or `undefined` when it is not an entry.
|
|
45
|
+
*
|
|
46
|
+
* The compiler stores the lower-case spelling: media types are case-insensitive and the wire
|
|
47
|
+
* `mime` is lower-case, so storing the author's case would make a duplicate depend on how it was
|
|
48
|
+
* typed. The function does not trim: whitespace around an entry is malformed rather than a
|
|
49
|
+
* spelling to normalise away.
|
|
50
|
+
*/
|
|
51
|
+
export function canonicalMediaAcceptEntry(raw) {
|
|
52
|
+
if (typeof raw !== 'string' || raw === '')
|
|
53
|
+
return undefined;
|
|
54
|
+
const lower = raw.toLowerCase();
|
|
55
|
+
if (MEDIA_TYPE_ENTRY.test(lower))
|
|
56
|
+
return lower;
|
|
57
|
+
// An extension is shorthand for a media type, so an extension the closed table does not
|
|
58
|
+
// name denotes nothing the runtime could match and is malformed, not merely unknown.
|
|
59
|
+
if (EXTENSION_ENTRY.test(lower) && MEDIA_EXTENSION_TYPES.has(lower))
|
|
60
|
+
return lower;
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
/** Whether text is already a canonical `accept` entry. */
|
|
64
|
+
export function isCanonicalMediaAcceptEntry(text) {
|
|
65
|
+
return canonicalMediaAcceptEntry(text) === text;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Whether an `accept` entry admits a captured `mime`.
|
|
69
|
+
*
|
|
70
|
+
* `image/*` admits every `image/…`; an exact media type admits only itself; an extension admits
|
|
71
|
+
* the media type the closed table maps it to. A `mime` the wire refused never reaches this
|
|
72
|
+
* function, so the comparison is exact after lower-casing and never a prefix guess.
|
|
73
|
+
*/
|
|
74
|
+
export function mediaAcceptEntryMatches(entry, mime) {
|
|
75
|
+
const subject = mime.toLowerCase();
|
|
76
|
+
if (entry.startsWith('.'))
|
|
77
|
+
return MEDIA_EXTENSION_TYPES.get(entry) === subject;
|
|
78
|
+
if (entry.endsWith('/*'))
|
|
79
|
+
return subject.startsWith(entry.slice(0, -1));
|
|
80
|
+
return subject === entry;
|
|
81
|
+
}
|
|
82
|
+
/** Whether any declared `accept` entry admits a captured `mime`. */
|
|
83
|
+
export function mediaAcceptMatches(accept, mime) {
|
|
84
|
+
return accept.some((entry) => mediaAcceptEntryMatches(entry, mime));
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../src/model/media.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sFAAsF;AACtF,MAAM,CAAC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AAI,GAAG,KAAK,EAAE;QAAE,OAAO,SAAS,CAAC;IAC5D,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;IAChC,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/C,wFAAwF;IACxF,qFAAqF;IACrF,IAAI,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAClF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,2BAA2B,CAAC,IAAY;IACtD,OAAO,yBAAyB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;AAClD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa,EAAE,IAAY;IACjE,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACnC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC;IAC/E,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,OAAO,OAAO,KAAK,KAAK,CAAC;AAC3B,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,kBAAkB,CAAC,MAAyB,EAAE,IAAY;IACxE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACtE,CAAC","sourcesContent":["/**\n * The declared media constraints of a capture field, `spec/semantics/model-v1.md` `MODEL-2.1.20`.\n *\n * A `media_ref` value carries its `mime` and `byteSize` on the wire, so a field's `accept` list\n * and byte bounds are checked against a captured value rather than against a filename. A\n * leading-dot extension is therefore matched by the media type the extension denotes: the table\n * below is the closed mapping the compiler and the runtime share, so an extension the compiler\n * admits is an extension the runtime can decide.\n */\n\n/** The closed extension-to-media-type mapping an `accept` extension entry denotes. */\nexport const MEDIA_EXTENSION_TYPES: ReadonlyMap<string, string> = new Map([\n ['.bmp', 'image/bmp'],\n ['.csv', 'text/csv'],\n ['.doc', 'application/msword'],\n ['.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],\n ['.gif', 'image/gif'],\n ['.heic', 'image/heic'],\n ['.heif', 'image/heif'],\n ['.jpeg', 'image/jpeg'],\n ['.jpg', 'image/jpeg'],\n ['.json', 'application/json'],\n ['.mov', 'video/quicktime'],\n ['.mp3', 'audio/mpeg'],\n ['.mp4', 'video/mp4'],\n ['.pdf', 'application/pdf'],\n ['.png', 'image/png'],\n ['.svg', 'image/svg+xml'],\n ['.tif', 'image/tiff'],\n ['.tiff', 'image/tiff'],\n ['.txt', 'text/plain'],\n ['.wav', 'audio/wav'],\n ['.webm', 'video/webm'],\n ['.webp', 'image/webp'],\n ['.xls', 'application/vnd.ms-excel'],\n ['.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],\n ['.xml', 'application/xml'],\n ['.zip', 'application/zip'],\n]);\n\n/** A media type entry: `type/subtype`, with `*` admitted as the subtype. */\nconst MEDIA_TYPE_ENTRY = /^[a-z]+\\/(?:[a-z0-9.+-]+|\\*)$/;\n\n/** An extension entry: a leading dot and one lower-case alphanumeric run. */\nconst EXTENSION_ENTRY = /^\\.[a-z0-9]+$/;\n\n/**\n * The canonical spelling of one `accept` entry, or `undefined` when it is not an entry.\n *\n * The compiler stores the lower-case spelling: media types are case-insensitive and the wire\n * `mime` is lower-case, so storing the author's case would make a duplicate depend on how it was\n * typed. The function does not trim: whitespace around an entry is malformed rather than a\n * spelling to normalise away.\n */\nexport function canonicalMediaAcceptEntry(raw: unknown): string | undefined {\n if (typeof raw !== 'string' || raw === '') return undefined;\n const lower = raw.toLowerCase();\n if (MEDIA_TYPE_ENTRY.test(lower)) return lower;\n // An extension is shorthand for a media type, so an extension the closed table does not\n // name denotes nothing the runtime could match and is malformed, not merely unknown.\n if (EXTENSION_ENTRY.test(lower) && MEDIA_EXTENSION_TYPES.has(lower)) return lower;\n return undefined;\n}\n\n/** Whether text is already a canonical `accept` entry. */\nexport function isCanonicalMediaAcceptEntry(text: string): boolean {\n return canonicalMediaAcceptEntry(text) === text;\n}\n\n/**\n * Whether an `accept` entry admits a captured `mime`.\n *\n * `image/*` admits every `image/…`; an exact media type admits only itself; an extension admits\n * the media type the closed table maps it to. A `mime` the wire refused never reaches this\n * function, so the comparison is exact after lower-casing and never a prefix guess.\n */\nexport function mediaAcceptEntryMatches(entry: string, mime: string): boolean {\n const subject = mime.toLowerCase();\n if (entry.startsWith('.')) return MEDIA_EXTENSION_TYPES.get(entry) === subject;\n if (entry.endsWith('/*')) return subject.startsWith(entry.slice(0, -1));\n return subject === entry;\n}\n\n/** Whether any declared `accept` entry admits a captured `mime`. */\nexport function mediaAcceptMatches(accept: readonly string[], mime: string): boolean {\n return accept.some((entry) => mediaAcceptEntryMatches(entry, mime));\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CompiledField } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The declared members of each primitive whose value is a closed record, in declaration order.
|
|
4
|
+
*
|
|
5
|
+
* A member with no `fields` is opaque: its own shape is not described by the published
|
|
6
|
+
* contract in terms an expression can read, so reading a member of it is refused rather
|
|
7
|
+
* than guessed.
|
|
8
|
+
*/
|
|
9
|
+
export type IntrinsicPrimitive = 'money' | 'media_ref' | 'signature_ref' | 'quantity' | 'timeslot' | 'duration' | 'address' | 'coordinate';
|
|
10
|
+
export declare const INTRINSIC_MEMBERS: Readonly<Record<IntrinsicPrimitive, readonly CompiledField[]>>;
|
|
11
|
+
//# sourceMappingURL=members.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.generated.d.ts","sourceRoot":"","sources":["../../src/model/members.generated.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,WAAW,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,CAAC;AAE3I,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,SAAS,aAAa,EAAE,CAAC,CA8D5F,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Generated by tools/sync-metaschema.ts from spec/metaschema/schema.v1.json.
|
|
2
|
+
// Do not edit by hand: run `pnpm metaschema:gen`. The sync gate (`pnpm metaschema:check`)
|
|
3
|
+
// compares this file byte for byte with the module the authored definitions render to.
|
|
4
|
+
//
|
|
5
|
+
// Formatters and code linters are pointed away from this file (see biome.jsonc and
|
|
6
|
+
// .oxlintrc.json): its layout is the generator's, so a formatter cannot fight the gate.
|
|
7
|
+
// Type checking and the sync tests still cover it.
|
|
8
|
+
export const INTRINSIC_MEMBERS = {
|
|
9
|
+
money: [
|
|
10
|
+
{ fieldId: 'minor', primitive: 'decimal' },
|
|
11
|
+
{ fieldId: 'currency', primitive: 'string' },
|
|
12
|
+
{ fieldId: 'scale', primitive: 'integer' },
|
|
13
|
+
],
|
|
14
|
+
media_ref: [
|
|
15
|
+
{ fieldId: 'id', primitive: 'string' },
|
|
16
|
+
{ fieldId: 'sha256', primitive: 'string' },
|
|
17
|
+
{ fieldId: 'mime', primitive: 'string' },
|
|
18
|
+
{ fieldId: 'byteSize', primitive: 'integer' },
|
|
19
|
+
{ fieldId: 'capturedAt', primitive: 'instant' },
|
|
20
|
+
{
|
|
21
|
+
fieldId: 'geo',
|
|
22
|
+
primitive: 'record',
|
|
23
|
+
fields: [
|
|
24
|
+
{ fieldId: 'lat', primitive: 'decimal' },
|
|
25
|
+
{ fieldId: 'lon', primitive: 'decimal' },
|
|
26
|
+
{ fieldId: 'accuracyM', primitive: 'decimal' },
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{ fieldId: 'source', primitive: 'string' },
|
|
30
|
+
{ fieldId: 'tags', primitive: 'array' },
|
|
31
|
+
{ fieldId: 'status', primitive: 'string' },
|
|
32
|
+
],
|
|
33
|
+
signature_ref: [
|
|
34
|
+
{ fieldId: 'id', primitive: 'string' },
|
|
35
|
+
{ fieldId: 'mediaRefId', primitive: 'string' },
|
|
36
|
+
{ fieldId: 'signerRole', primitive: 'string' },
|
|
37
|
+
{ fieldId: 'signedAt', primitive: 'instant' },
|
|
38
|
+
{ fieldId: 'schemaVersion', primitive: 'integer' },
|
|
39
|
+
{ fieldId: 'coveredTargets', primitive: 'array' },
|
|
40
|
+
{ fieldId: 'dataHash', primitive: 'string' },
|
|
41
|
+
{ fieldId: 'status', primitive: 'string' },
|
|
42
|
+
],
|
|
43
|
+
quantity: [
|
|
44
|
+
{ fieldId: 'value', primitive: 'decimal' },
|
|
45
|
+
{ fieldId: 'unit', primitive: 'string' },
|
|
46
|
+
],
|
|
47
|
+
timeslot: [
|
|
48
|
+
{ fieldId: 'slotId', primitive: 'string' },
|
|
49
|
+
{ fieldId: 'localDate', primitive: 'date' },
|
|
50
|
+
{ fieldId: 'start', primitive: 'instant' },
|
|
51
|
+
{ fieldId: 'end', primitive: 'instant' },
|
|
52
|
+
],
|
|
53
|
+
duration: [
|
|
54
|
+
{ fieldId: 'amount', primitive: 'integer' },
|
|
55
|
+
{ fieldId: 'unit', primitive: 'string' },
|
|
56
|
+
],
|
|
57
|
+
address: [
|
|
58
|
+
{ fieldId: 'line1', primitive: 'string' },
|
|
59
|
+
{ fieldId: 'line2', primitive: 'string' },
|
|
60
|
+
{ fieldId: 'city', primitive: 'string' },
|
|
61
|
+
{ fieldId: 'region', primitive: 'string' },
|
|
62
|
+
{ fieldId: 'postalCode', primitive: 'string' },
|
|
63
|
+
{ fieldId: 'country', primitive: 'string' },
|
|
64
|
+
],
|
|
65
|
+
coordinate: [
|
|
66
|
+
{ fieldId: 'latitude', primitive: 'decimal' },
|
|
67
|
+
{ fieldId: 'longitude', primitive: 'decimal' },
|
|
68
|
+
{ fieldId: 'accuracy', primitive: 'decimal' },
|
|
69
|
+
],
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=members.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.generated.js","sourceRoot":"","sources":["../../src/model/members.generated.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,0FAA0F;AAC1F,uFAAuF;AACvF,EAAE;AACF,mFAAmF;AACnF,wFAAwF;AACxF,mDAAmD;AAanD,MAAM,CAAC,MAAM,iBAAiB,GAAmE;IAC/F,KAAK,EAAE;QACL,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;QAC1C,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE;QAC5C,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;KAC3C;IACD,SAAS,EAAE;QACT,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE;QACtC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QAC1C,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE;QACxC,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE;QAC7C,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE;QAC/C;YACE,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE;gBACN,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE;gBACxC,EAAE,OAAO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AAE;KACzC;IACD,QAAQ,EAAE;QACR,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE;QAC3C,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE;KACzC;IACD,OAAO,EAAE;QACP,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;QACzC,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;QACzC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE;QACxC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QAC1C,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE;QAC9C,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE;KAC5C;IACD,UAAU,EAAE;QACV,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE;QAC7C,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE;QAC9C,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE;KAC9C;CACF,CAAC","sourcesContent":["// Generated by tools/sync-metaschema.ts from spec/metaschema/schema.v1.json.\n// Do not edit by hand: run `pnpm metaschema:gen`. The sync gate (`pnpm metaschema:check`)\n// compares this file byte for byte with the module the authored definitions render to.\n//\n// Formatters and code linters are pointed away from this file (see biome.jsonc and\n// .oxlintrc.json): its layout is the generator's, so a formatter cannot fight the gate.\n// Type checking and the sync tests still cover it.\n\nimport type { CompiledField } from './types.js';\n\n/**\n * The declared members of each primitive whose value is a closed record, in declaration order.\n *\n * A member with no `fields` is opaque: its own shape is not described by the published\n * contract in terms an expression can read, so reading a member of it is refused rather\n * than guessed.\n */\nexport type IntrinsicPrimitive = 'money' | 'media_ref' | 'signature_ref' | 'quantity' | 'timeslot' | 'duration' | 'address' | 'coordinate';\n\nexport const INTRINSIC_MEMBERS: Readonly<Record<IntrinsicPrimitive, readonly CompiledField[]>> = {\n money: [\n { fieldId: 'minor', primitive: 'decimal' },\n { fieldId: 'currency', primitive: 'string' },\n { fieldId: 'scale', primitive: 'integer' },\n ],\n media_ref: [\n { fieldId: 'id', primitive: 'string' },\n { fieldId: 'sha256', primitive: 'string' },\n { fieldId: 'mime', primitive: 'string' },\n { fieldId: 'byteSize', primitive: 'integer' },\n { fieldId: 'capturedAt', primitive: 'instant' },\n {\n fieldId: 'geo',\n primitive: 'record',\n fields: [\n { fieldId: 'lat', primitive: 'decimal' },\n { fieldId: 'lon', primitive: 'decimal' },\n { fieldId: 'accuracyM', primitive: 'decimal' },\n ],\n },\n { fieldId: 'source', primitive: 'string' },\n { fieldId: 'tags', primitive: 'array' },\n { fieldId: 'status', primitive: 'string' },\n ],\n signature_ref: [\n { fieldId: 'id', primitive: 'string' },\n { fieldId: 'mediaRefId', primitive: 'string' },\n { fieldId: 'signerRole', primitive: 'string' },\n { fieldId: 'signedAt', primitive: 'instant' },\n { fieldId: 'schemaVersion', primitive: 'integer' },\n { fieldId: 'coveredTargets', primitive: 'array' },\n { fieldId: 'dataHash', primitive: 'string' },\n { fieldId: 'status', primitive: 'string' },\n ],\n quantity: [\n { fieldId: 'value', primitive: 'decimal' },\n { fieldId: 'unit', primitive: 'string' },\n ],\n timeslot: [\n { fieldId: 'slotId', primitive: 'string' },\n { fieldId: 'localDate', primitive: 'date' },\n { fieldId: 'start', primitive: 'instant' },\n { fieldId: 'end', primitive: 'instant' },\n ],\n duration: [\n { fieldId: 'amount', primitive: 'integer' },\n { fieldId: 'unit', primitive: 'string' },\n ],\n address: [\n { fieldId: 'line1', primitive: 'string' },\n { fieldId: 'line2', primitive: 'string' },\n { fieldId: 'city', primitive: 'string' },\n { fieldId: 'region', primitive: 'string' },\n { fieldId: 'postalCode', primitive: 'string' },\n { fieldId: 'country', primitive: 'string' },\n ],\n coordinate: [\n { fieldId: 'latitude', primitive: 'decimal' },\n { fieldId: 'longitude', primitive: 'decimal' },\n { fieldId: 'accuracy', primitive: 'decimal' },\n ],\n};\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** One segment's key: a natural key value or a host-assigned id. */
|
|
2
|
+
export type RowAddressKey = string | number;
|
|
3
|
+
/**
|
|
4
|
+
* The composite address of one row, outermost first.
|
|
5
|
+
*
|
|
6
|
+
* The length is the JavaScript string length of the key, the unit `slice` consumes, so encoding
|
|
7
|
+
* and decoding agree for every string a host-assigned id can carry.
|
|
8
|
+
*/
|
|
9
|
+
export declare function encodeRowAddress(keys: readonly RowAddressKey[]): string;
|
|
10
|
+
/** The keys a composite address states, or a refusal naming why it is not one. */
|
|
11
|
+
export type RowAddressDecode = {
|
|
12
|
+
readonly ok: true;
|
|
13
|
+
readonly keys: readonly RowAddressKey[];
|
|
14
|
+
} | {
|
|
15
|
+
readonly ok: false;
|
|
16
|
+
readonly detail: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Reads a composite address back into its keys, restoring the wire type each segment states.
|
|
20
|
+
*
|
|
21
|
+
* A token is refused unless every character is consumed by a segment: a missing or unknown type,
|
|
22
|
+
* a missing length, a non-numeric length, a numeric segment that is not canonical integer text, a
|
|
23
|
+
* truncated key, a length that disagrees with the characters present and a trailing separator are
|
|
24
|
+
* all named, because a partially-read address would name a row no writer produced.
|
|
25
|
+
*/
|
|
26
|
+
export declare function decodeRowAddress(token: string): RowAddressDecode;
|
|
27
|
+
//# sourceMappingURL=row-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-address.d.ts","sourceRoot":"","sources":["../../src/model/row-address.ts"],"names":[],"mappings":"AAwBA,oEAAoE;AACpE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AA2B5C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,aAAa,EAAE,GAAG,MAAM,CAKvE;AAED,kFAAkF;AAClF,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CA4EhE"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The composite address of a row inside a nested array.
|
|
3
|
+
*
|
|
4
|
+
* A v1 array was one level deep, so a row's identity was its own key. A row inside a row has no
|
|
5
|
+
* single key: `(measure 2, photo 3)` and `(measure 23, photo 1)` must not become one address, and
|
|
6
|
+
* a host-assigned key may itself contain `:` or `|`. The address therefore states each key with
|
|
7
|
+
* its wire type and its own length, outermost first:
|
|
8
|
+
*
|
|
9
|
+
* ```text
|
|
10
|
+
* s<length>:<key>|n<length>:<key>
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* The type tag is what keeps `rowKeyToken`'s promise: the integer `7` and the text `"7"` are two
|
|
14
|
+
* rows (`[IDENT-2.1.4]`), so their addresses differ (`n1:7` and `s1:7`) even though both keys
|
|
15
|
+
* stringify alike. The length makes the separator inside a key data rather than syntax: a reader
|
|
16
|
+
* consumes exactly `length` characters after the colon, so no key can shift the boundary. The
|
|
17
|
+
* encoding is deterministic and total for every non-empty, well-formed string and every safe
|
|
18
|
+
* integer, and `decodeRowAddress` refuses a token that does not parse rather than guessing a row.
|
|
19
|
+
*/
|
|
20
|
+
import { hasUnpairedSurrogate } from '../canonical/restricted.js';
|
|
21
|
+
import { AxiomError } from './errors.js';
|
|
22
|
+
import { isSafeInteger } from './integer.js';
|
|
23
|
+
import { INTEGER_TEXT_PATTERN } from './types.js';
|
|
24
|
+
/** The separator between two length-prefixed segments. */
|
|
25
|
+
const SEGMENT_SEPARATOR = '|';
|
|
26
|
+
const LENGTH_SEPARATOR = ':';
|
|
27
|
+
/** The wire type each segment states, the same two a `rowKeyToken` prefixes. */
|
|
28
|
+
const STRING_TAG = 's';
|
|
29
|
+
const NUMBER_TAG = 'n';
|
|
30
|
+
/** One key as the typed, length-prefixed segment the address carries. */
|
|
31
|
+
function segmentOf(key) {
|
|
32
|
+
if (typeof key === 'string') {
|
|
33
|
+
if (key === '') {
|
|
34
|
+
throw new AxiomError('ENGINE_ERROR', 'a row key must not be empty');
|
|
35
|
+
}
|
|
36
|
+
if (hasUnpairedSurrogate(key)) {
|
|
37
|
+
throw new AxiomError('ENGINE_ERROR', 'a row key must not carry an unpaired surrogate');
|
|
38
|
+
}
|
|
39
|
+
return `${STRING_TAG}${String(key.length)}${LENGTH_SEPARATOR}${key}`;
|
|
40
|
+
}
|
|
41
|
+
if (!isSafeInteger(key)) {
|
|
42
|
+
throw new AxiomError('ENGINE_ERROR', 'a numeric row key must be a safe integer, never -0');
|
|
43
|
+
}
|
|
44
|
+
const text = String(key);
|
|
45
|
+
return `${NUMBER_TAG}${String(text.length)}${LENGTH_SEPARATOR}${text}`;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The composite address of one row, outermost first.
|
|
49
|
+
*
|
|
50
|
+
* The length is the JavaScript string length of the key, the unit `slice` consumes, so encoding
|
|
51
|
+
* and decoding agree for every string a host-assigned id can carry.
|
|
52
|
+
*/
|
|
53
|
+
export function encodeRowAddress(keys) {
|
|
54
|
+
if (keys.length === 0) {
|
|
55
|
+
throw new AxiomError('ENGINE_ERROR', 'a row address needs at least one key');
|
|
56
|
+
}
|
|
57
|
+
return keys.map(segmentOf).join(SEGMENT_SEPARATOR);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Reads a composite address back into its keys, restoring the wire type each segment states.
|
|
61
|
+
*
|
|
62
|
+
* A token is refused unless every character is consumed by a segment: a missing or unknown type,
|
|
63
|
+
* a missing length, a non-numeric length, a numeric segment that is not canonical integer text, a
|
|
64
|
+
* truncated key, a length that disagrees with the characters present and a trailing separator are
|
|
65
|
+
* all named, because a partially-read address would name a row no writer produced.
|
|
66
|
+
*/
|
|
67
|
+
export function decodeRowAddress(token) {
|
|
68
|
+
if (token === '') {
|
|
69
|
+
return { ok: false, detail: 'a row address needs at least one key' };
|
|
70
|
+
}
|
|
71
|
+
const keys = [];
|
|
72
|
+
let cursor = 0;
|
|
73
|
+
while (cursor < token.length) {
|
|
74
|
+
const tag = token[cursor];
|
|
75
|
+
if (tag !== STRING_TAG && tag !== NUMBER_TAG) {
|
|
76
|
+
return {
|
|
77
|
+
ok: false,
|
|
78
|
+
detail: `row address ${JSON.stringify(token)} has no wire type at ${String(cursor)}`,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
const colon = token.indexOf(LENGTH_SEPARATOR, cursor + 1);
|
|
82
|
+
if (colon < 0) {
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
detail: `row address ${JSON.stringify(token)} has no length at ${String(cursor)}`,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const lengthText = token.slice(cursor + 1, colon);
|
|
89
|
+
if (!/^(?:0|[1-9][0-9]*)$/.test(lengthText)) {
|
|
90
|
+
return {
|
|
91
|
+
ok: false,
|
|
92
|
+
detail: `row address ${JSON.stringify(token)} has the invalid length ${JSON.stringify(lengthText)}`,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const length = Number(lengthText);
|
|
96
|
+
if (length === 0) {
|
|
97
|
+
return { ok: false, detail: `row address ${JSON.stringify(token)} states an empty key` };
|
|
98
|
+
}
|
|
99
|
+
const keyStart = colon + 1;
|
|
100
|
+
const keyEnd = keyStart + length;
|
|
101
|
+
if (keyEnd > token.length) {
|
|
102
|
+
return {
|
|
103
|
+
ok: false,
|
|
104
|
+
detail: `row address ${JSON.stringify(token)} states ${String(length)} characters where fewer remain`,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const text = token.slice(keyStart, keyEnd);
|
|
108
|
+
if (tag === STRING_TAG) {
|
|
109
|
+
keys.push(text);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
if (!INTEGER_TEXT_PATTERN.test(text)) {
|
|
113
|
+
return {
|
|
114
|
+
ok: false,
|
|
115
|
+
detail: `row address ${JSON.stringify(token)} states the non-integer key ${JSON.stringify(text)}`,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
const numeric = Number(text);
|
|
119
|
+
if (!isSafeInteger(numeric)) {
|
|
120
|
+
return {
|
|
121
|
+
ok: false,
|
|
122
|
+
detail: `row address ${JSON.stringify(token)} states a key outside the safe integer range`,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
keys.push(numeric);
|
|
126
|
+
}
|
|
127
|
+
cursor = keyEnd;
|
|
128
|
+
if (cursor === token.length)
|
|
129
|
+
break;
|
|
130
|
+
if (token[cursor] !== SEGMENT_SEPARATOR) {
|
|
131
|
+
return {
|
|
132
|
+
ok: false,
|
|
133
|
+
detail: `row address ${JSON.stringify(token)} has no separator at ${String(cursor)}`,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
cursor += 1;
|
|
137
|
+
if (cursor === token.length) {
|
|
138
|
+
return {
|
|
139
|
+
ok: false,
|
|
140
|
+
detail: `row address ${JSON.stringify(token)} ends with a separator`,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return { ok: true, keys };
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=row-address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-address.js","sourceRoot":"","sources":["../../src/model/row-address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAA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,eAAe,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,8CAA8C;iBAC3F,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,CAAC;QACD,MAAM,GAAG,MAAM,CAAC;QAChB,IAAI,MAAM,KAAK,KAAK,CAAC,MAAM;YAAE,MAAM;QACnC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,iBAAiB,EAAE,CAAC;YACxC,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,MAAM,EAAE,eAAe,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,wBAAwB,MAAM,CAAC,MAAM,CAAC,EAAE;aACrF,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,CAAC,CAAC;QACZ,IAAI,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAC5B,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,MAAM,EAAE,eAAe,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,wBAAwB;aACrE,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC5B,CAAC","sourcesContent":["/**\n * The composite address of a row inside a nested array.\n *\n * A v1 array was one level deep, so a row's identity was its own key. A row inside a row has no\n * single key: `(measure 2, photo 3)` and `(measure 23, photo 1)` must not become one address, and\n * a host-assigned key may itself contain `:` or `|`. The address therefore states each key with\n * its wire type and its own length, outermost first:\n *\n * ```text\n * s<length>:<key>|n<length>:<key>\n * ```\n *\n * The type tag is what keeps `rowKeyToken`'s promise: the integer `7` and the text `\"7\"` are two\n * rows (`[IDENT-2.1.4]`), so their addresses differ (`n1:7` and `s1:7`) even though both keys\n * stringify alike. The length makes the separator inside a key data rather than syntax: a reader\n * consumes exactly `length` characters after the colon, so no key can shift the boundary. The\n * encoding is deterministic and total for every non-empty, well-formed string and every safe\n * integer, and `decodeRowAddress` refuses a token that does not parse rather than guessing a row.\n */\nimport { hasUnpairedSurrogate } from '../canonical/restricted.js';\nimport { AxiomError } from './errors.js';\nimport { isSafeInteger } from './integer.js';\nimport { INTEGER_TEXT_PATTERN } from './types.js';\n\n/** One segment's key: a natural key value or a host-assigned id. */\nexport type RowAddressKey = string | number;\n\n/** The separator between two length-prefixed segments. */\nconst SEGMENT_SEPARATOR = '|';\nconst LENGTH_SEPARATOR = ':';\n/** The wire type each segment states, the same two a `rowKeyToken` prefixes. */\nconst STRING_TAG = 's';\nconst NUMBER_TAG = 'n';\n\n/** One key as the typed, length-prefixed segment the address carries. */\nfunction segmentOf(key: RowAddressKey): string {\n if (typeof key === 'string') {\n if (key === '') {\n throw new AxiomError('ENGINE_ERROR', 'a row key must not be empty');\n }\n if (hasUnpairedSurrogate(key)) {\n throw new AxiomError('ENGINE_ERROR', 'a row key must not carry an unpaired surrogate');\n }\n return `${STRING_TAG}${String(key.length)}${LENGTH_SEPARATOR}${key}`;\n }\n if (!isSafeInteger(key)) {\n throw new AxiomError('ENGINE_ERROR', 'a numeric row key must be a safe integer, never -0');\n }\n const text = String(key);\n return `${NUMBER_TAG}${String(text.length)}${LENGTH_SEPARATOR}${text}`;\n}\n\n/**\n * The composite address of one row, outermost first.\n *\n * The length is the JavaScript string length of the key, the unit `slice` consumes, so encoding\n * and decoding agree for every string a host-assigned id can carry.\n */\nexport function encodeRowAddress(keys: readonly RowAddressKey[]): string {\n if (keys.length === 0) {\n throw new AxiomError('ENGINE_ERROR', 'a row address needs at least one key');\n }\n return keys.map(segmentOf).join(SEGMENT_SEPARATOR);\n}\n\n/** The keys a composite address states, or a refusal naming why it is not one. */\nexport type RowAddressDecode =\n | { readonly ok: true; readonly keys: readonly RowAddressKey[] }\n | { readonly ok: false; readonly detail: string };\n\n/**\n * Reads a composite address back into its keys, restoring the wire type each segment states.\n *\n * A token is refused unless every character is consumed by a segment: a missing or unknown type,\n * a missing length, a non-numeric length, a numeric segment that is not canonical integer text, a\n * truncated key, a length that disagrees with the characters present and a trailing separator are\n * all named, because a partially-read address would name a row no writer produced.\n */\nexport function decodeRowAddress(token: string): RowAddressDecode {\n if (token === '') {\n return { ok: false, detail: 'a row address needs at least one key' };\n }\n const keys: RowAddressKey[] = [];\n let cursor = 0;\n while (cursor < token.length) {\n const tag = token[cursor];\n if (tag !== STRING_TAG && tag !== NUMBER_TAG) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} has no wire type at ${String(cursor)}`,\n };\n }\n const colon = token.indexOf(LENGTH_SEPARATOR, cursor + 1);\n if (colon < 0) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} has no length at ${String(cursor)}`,\n };\n }\n const lengthText = token.slice(cursor + 1, colon);\n if (!/^(?:0|[1-9][0-9]*)$/.test(lengthText)) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} has the invalid length ${JSON.stringify(lengthText)}`,\n };\n }\n const length = Number(lengthText);\n if (length === 0) {\n return { ok: false, detail: `row address ${JSON.stringify(token)} states an empty key` };\n }\n const keyStart = colon + 1;\n const keyEnd = keyStart + length;\n if (keyEnd > token.length) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} states ${String(length)} characters where fewer remain`,\n };\n }\n const text = token.slice(keyStart, keyEnd);\n if (tag === STRING_TAG) {\n keys.push(text);\n } else {\n if (!INTEGER_TEXT_PATTERN.test(text)) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} states the non-integer key ${JSON.stringify(text)}`,\n };\n }\n const numeric = Number(text);\n if (!isSafeInteger(numeric)) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} states a key outside the safe integer range`,\n };\n }\n keys.push(numeric);\n }\n cursor = keyEnd;\n if (cursor === token.length) break;\n if (token[cursor] !== SEGMENT_SEPARATOR) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} has no separator at ${String(cursor)}`,\n };\n }\n cursor += 1;\n if (cursor === token.length) {\n return {\n ok: false,\n detail: `row address ${JSON.stringify(token)} ends with a separator`,\n };\n }\n }\n return { ok: true, keys };\n}\n"]}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { CompositionReport } from './composition.js';
|
|
2
|
+
import type { LayoutNode } from './layout.js';
|
|
3
|
+
import type { CompiledField, CompiledMessageEntry, CompiledRule, ContextRoot, OnHidePolicy, Tier } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* The compiled document — the artifact `@azx-pbc/axiom-runtime` evaluates — declared apart
|
|
6
|
+
* from the expression and report vocabulary so the behaviour contract and the presentation
|
|
7
|
+
* contract have one home each. Nothing here is re-exported by `types.ts`, so the two modules
|
|
8
|
+
* do not import each other.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* One declared table, the version the artifact pins it at, and the bytes it pins,
|
|
12
|
+
* `schema.v1.json` `datasetRef` and `spec/semantics/datasets-v1.md` `DATA-4.1.6`.
|
|
13
|
+
*
|
|
14
|
+
* `sha256` is the restricted-JCS SHA-256 of the dataset document at `tableVersion` — the same
|
|
15
|
+
* digest a report records as `tableSha256` (`DATA-4.1.2`), computed by the one canonicaliser the
|
|
16
|
+
* store already uses. A version is a name, not bytes: without this member a republished document
|
|
17
|
+
* under the same version would be admitted as the pinned one. The compiler always emits it, and
|
|
18
|
+
* `admitOfflineArtifact` refuses a pin that does not carry it rather than resolving an unverified
|
|
19
|
+
* table.
|
|
20
|
+
*/
|
|
21
|
+
export interface DatasetRef {
|
|
22
|
+
readonly tableId: string;
|
|
23
|
+
readonly tableVersion: number;
|
|
24
|
+
readonly sha256: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A compiled schema document, in the form the compiler emits.
|
|
28
|
+
*/
|
|
29
|
+
export interface CompiledSchema {
|
|
30
|
+
readonly schemaId: string;
|
|
31
|
+
readonly schemaVersion: number;
|
|
32
|
+
readonly exprVersion: 1;
|
|
33
|
+
/**
|
|
34
|
+
* The Axiom release that produced this artifact, when the producer stamped it.
|
|
35
|
+
*
|
|
36
|
+
* The four packages publish in lockstep, so this is also the release the runtime beside the
|
|
37
|
+
* compiler was built at. A runtime refuses an artifact whose producer is newer than itself:
|
|
38
|
+
* evaluating it would read the members this build knows and silently ignore the behaviour a
|
|
39
|
+
* later release added, which is a wrong answer rather than a diagnosable refusal. Absent on
|
|
40
|
+
* artifacts compiled before the stamp existed, and those predate every runtime that reads the
|
|
41
|
+
* member, so their absence is safe.
|
|
42
|
+
*/
|
|
43
|
+
readonly producerVersion?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The tier this artifact was built for; absent means `server`.
|
|
46
|
+
*
|
|
47
|
+
* The tier an artifact is compiled for is the runtime's `Tier`, so an artifact, a rule and an
|
|
48
|
+
* evaluation cannot spell the pair differently. A device artifact is not publish evidence: its
|
|
49
|
+
* server rules are stubs and its embedded cases do not travel (`spec/semantics/rules-v1.md`
|
|
50
|
+
* `RULES-3.1.2`). The member is absent on a server artifact, because an artifact states only
|
|
51
|
+
* what an author or a target chose, never the default it was built with.
|
|
52
|
+
*/
|
|
53
|
+
readonly target?: Tier;
|
|
54
|
+
readonly fields: readonly CompiledField[];
|
|
55
|
+
/**
|
|
56
|
+
* The locales the catalogue is complete in, and the one a renderer shows when the host states
|
|
57
|
+
* none. Absent together on a single-locale document; a renderer that must
|
|
58
|
+
* choose a locale reads `defaultLocale` rather than guessing one.
|
|
59
|
+
*/
|
|
60
|
+
readonly locales?: readonly string[];
|
|
61
|
+
readonly defaultLocale?: string;
|
|
62
|
+
/** The document's own title message key, `schema.v1.json` `titleKey`. */
|
|
63
|
+
readonly titleKey?: string;
|
|
64
|
+
/** Presentation only: carried beside the behaviour, never hashed into it (`RULES-5.1.2`). */
|
|
65
|
+
readonly layout?: readonly LayoutNode[];
|
|
66
|
+
readonly context?: {
|
|
67
|
+
readonly roots: readonly ContextRoot[];
|
|
68
|
+
};
|
|
69
|
+
readonly rules?: readonly CompiledRule[];
|
|
70
|
+
/** Message catalogue keyed by message key, then by locale (`schema.v1.json` `messageEntry`). */
|
|
71
|
+
readonly messages?: Readonly<Record<string, Readonly<Record<string, CompiledMessageEntry>>>>;
|
|
72
|
+
/**
|
|
73
|
+
* The tables this artifact can read, with the version and canonical digest it was compiled
|
|
74
|
+
* against. Resolution refuses a store serving any other version of a declared table — older or
|
|
75
|
+
* newer — rather than
|
|
76
|
+
* answering from data the artifact was never checked with, and offline admission refuses a
|
|
77
|
+
* same-version document whose bytes hash to anything but `DatasetRef.sha256`.
|
|
78
|
+
*/
|
|
79
|
+
readonly datasets?: readonly DatasetRef[];
|
|
80
|
+
/**
|
|
81
|
+
* The gate a caller acts on when it names none, `spec/metaschema/schema.v1.json`. The
|
|
82
|
+
* compiler refuses a document that declares a gate without designating one, and refuses a
|
|
83
|
+
* designation that names no declared gate, so the artifact states a designation it can
|
|
84
|
+
* honour or none at all.
|
|
85
|
+
*/
|
|
86
|
+
readonly primaryGateId?: string;
|
|
87
|
+
/** The designated screen, by the same contract as `primaryGateId`. */
|
|
88
|
+
readonly primaryScreenId?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The document's hiding policy. Absent means `preserve`, so the artifact states `exclude`
|
|
91
|
+
* only. A field's own `onHide` overrides the document's and is emitted only where it differs
|
|
92
|
+
* from that inherited policy: a field `preserve` under a document `exclude` is a real
|
|
93
|
+
* override and travels, while a member repeating the document's policy does not.
|
|
94
|
+
*/
|
|
95
|
+
readonly onHide?: OnHidePolicy;
|
|
96
|
+
/**
|
|
97
|
+
* The base edition and every overlay edition this artifact was composed from, in order
|
|
98
|
+
* (`[EVOL-4.1.4]`). Absent on an artifact compiled from one document, including every
|
|
99
|
+
* artifact compiled before overlays existed, so an existing artifact keeps its bytes and its
|
|
100
|
+
* `behaviorHash`.
|
|
101
|
+
*
|
|
102
|
+
* The member is behaviour, not presentation: the same rules composed from a different set of
|
|
103
|
+
* overlay editions is a different configuration, and a report must be able to name it. The
|
|
104
|
+
* report assembly copies it into `EvaluationReport.composition`, where `reportHash` covers it.
|
|
105
|
+
*/
|
|
106
|
+
readonly composition?: CompositionReport;
|
|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AO,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;KAAE,CAAC;IAC9D,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7F;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,sEAAsE;IACtE,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC/B;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/model/schema.ts"],"names":[],"mappings":"","sourcesContent":["import type { CompositionReport } from './composition.js';\nimport type { LayoutNode } from './layout.js';\nimport type {\n CompiledField,\n CompiledMessageEntry,\n CompiledRule,\n ContextRoot,\n OnHidePolicy,\n Tier,\n} from './types.js';\n\n/**\n * The compiled document — the artifact `@azx-pbc/axiom-runtime` evaluates — declared apart\n * from the expression and report vocabulary so the behaviour contract and the presentation\n * contract have one home each. Nothing here is re-exported by `types.ts`, so the two modules\n * do not import each other.\n */\n\n/**\n * One declared table, the version the artifact pins it at, and the bytes it pins,\n * `schema.v1.json` `datasetRef` and `spec/semantics/datasets-v1.md` `DATA-4.1.6`.\n *\n * `sha256` is the restricted-JCS SHA-256 of the dataset document at `tableVersion` — the same\n * digest a report records as `tableSha256` (`DATA-4.1.2`), computed by the one canonicaliser the\n * store already uses. A version is a name, not bytes: without this member a republished document\n * under the same version would be admitted as the pinned one. The compiler always emits it, and\n * `admitOfflineArtifact` refuses a pin that does not carry it rather than resolving an unverified\n * table.\n */\nexport interface DatasetRef {\n readonly tableId: string;\n readonly tableVersion: number;\n readonly sha256: string;\n}\n\n/**\n * A compiled schema document, in the form the compiler emits.\n */\nexport interface CompiledSchema {\n readonly schemaId: string;\n readonly schemaVersion: number;\n readonly exprVersion: 1;\n /**\n * The Axiom release that produced this artifact, when the producer stamped it.\n *\n * The four packages publish in lockstep, so this is also the release the runtime beside the\n * compiler was built at. A runtime refuses an artifact whose producer is newer than itself:\n * evaluating it would read the members this build knows and silently ignore the behaviour a\n * later release added, which is a wrong answer rather than a diagnosable refusal. Absent on\n * artifacts compiled before the stamp existed, and those predate every runtime that reads the\n * member, so their absence is safe.\n */\n readonly producerVersion?: string;\n /**\n * The tier this artifact was built for; absent means `server`.\n *\n * The tier an artifact is compiled for is the runtime's `Tier`, so an artifact, a rule and an\n * evaluation cannot spell the pair differently. A device artifact is not publish evidence: its\n * server rules are stubs and its embedded cases do not travel (`spec/semantics/rules-v1.md`\n * `RULES-3.1.2`). The member is absent on a server artifact, because an artifact states only\n * what an author or a target chose, never the default it was built with.\n */\n readonly target?: Tier;\n readonly fields: readonly CompiledField[];\n /**\n * The locales the catalogue is complete in, and the one a renderer shows when the host states\n * none. Absent together on a single-locale document; a renderer that must\n * choose a locale reads `defaultLocale` rather than guessing one.\n */\n readonly locales?: readonly string[];\n readonly defaultLocale?: string;\n /** The document's own title message key, `schema.v1.json` `titleKey`. */\n readonly titleKey?: string;\n /** Presentation only: carried beside the behaviour, never hashed into it (`RULES-5.1.2`). */\n readonly layout?: readonly LayoutNode[];\n readonly context?: { readonly roots: readonly ContextRoot[] };\n readonly rules?: readonly CompiledRule[];\n /** Message catalogue keyed by message key, then by locale (`schema.v1.json` `messageEntry`). */\n readonly messages?: Readonly<Record<string, Readonly<Record<string, CompiledMessageEntry>>>>;\n /**\n * The tables this artifact can read, with the version and canonical digest it was compiled\n * against. Resolution refuses a store serving any other version of a declared table — older or\n * newer — rather than\n * answering from data the artifact was never checked with, and offline admission refuses a\n * same-version document whose bytes hash to anything but `DatasetRef.sha256`.\n */\n readonly datasets?: readonly DatasetRef[];\n /**\n * The gate a caller acts on when it names none, `spec/metaschema/schema.v1.json`. The\n * compiler refuses a document that declares a gate without designating one, and refuses a\n * designation that names no declared gate, so the artifact states a designation it can\n * honour or none at all.\n */\n readonly primaryGateId?: string;\n /** The designated screen, by the same contract as `primaryGateId`. */\n readonly primaryScreenId?: string;\n /**\n * The document's hiding policy. Absent means `preserve`, so the artifact states `exclude`\n * only. A field's own `onHide` overrides the document's and is emitted only where it differs\n * from that inherited policy: a field `preserve` under a document `exclude` is a real\n * override and travels, while a member repeating the document's policy does not.\n */\n readonly onHide?: OnHidePolicy;\n /**\n * The base edition and every overlay edition this artifact was composed from, in order\n * (`[EVOL-4.1.4]`). Absent on an artifact compiled from one document, including every\n * artifact compiled before overlays existed, so an existing artifact keeps its bytes and its\n * `behaviorHash`.\n *\n * The member is behaviour, not presentation: the same rules composed from a different set of\n * overlay editions is a different configuration, and a report must be able to name it. The\n * report assembly copies it into `EvaluationReport.composition`, where `reportHash` covers it.\n */\n readonly composition?: CompositionReport;\n}\n"]}
|