@almadar/core 11.2.0 → 11.4.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.
Files changed (92) hide show
  1. package/dist/behavior-package.js +1 -3
  2. package/dist/{builders-C4TIhiks.d.ts → builders-CAQ_shuO.d.ts} +274 -274
  3. package/dist/builders.d.ts +6 -6
  4. package/dist/builders.js +8 -10
  5. package/dist/{bus-do1P9luP.d.ts → bus-QFvlnIfW.d.ts} +113 -438
  6. package/dist/{chunk-B4MNHGBP.js → chunk-5IRZ6ROW.js} +0 -2
  7. package/dist/{chunk-7NDAXM2Z.js → chunk-6XYHVJ4J.js} +1 -3
  8. package/dist/{chunk-2NKK2X53.js → chunk-7JO77HA6.js} +1 -3
  9. package/dist/chunk-AIRZM37O.js +3809 -0
  10. package/dist/{chunk-RGACZEYC.js → chunk-DDBAQMWA.js} +0 -2
  11. package/dist/{chunk-VOFHP52Z.js → chunk-DHWP7B4S.js} +147 -7
  12. package/dist/{chunk-7GHJU5WI.js → chunk-GNLND5O2.js} +0 -2
  13. package/dist/{chunk-PYYHDYTD.js → chunk-ISAUHHDU.js} +1 -3
  14. package/dist/{chunk-M4S2B5VJ.js → chunk-IU3WGC6Q.js} +0 -2
  15. package/dist/{chunk-VIHQKKTZ.js → chunk-JCRN3F6T.js} +10 -12
  16. package/dist/{chunk-7B4JRMRL.js → chunk-JPJQCTJI.js} +12 -6
  17. package/dist/{chunk-6H3UIZR2.js → chunk-O2ZUOWNK.js} +4 -6
  18. package/dist/{chunk-IE6WCCJP.js → chunk-OLSKERKZ.js} +51 -47
  19. package/dist/{chunk-N3CK4AYW.js → chunk-QV6J4EAF.js} +560 -58
  20. package/dist/{chunk-347APWFM.js → chunk-R3Y7ABF4.js} +2 -4
  21. package/dist/{chunk-3DZOFI53.js → chunk-TOAMAGC7.js} +2 -4
  22. package/dist/{chunk-LPJ7GKRM.js → chunk-UCP26C3C.js} +4 -6
  23. package/dist/{chunk-VG7BRFUD.js → chunk-W3UJRSYC.js} +0 -2
  24. package/dist/{effect-Dr--GXRe.d.ts → effect--PY8R4Oi.d.ts} +72 -38
  25. package/dist/{effect-result-geymPT9w.d.ts → effect-result-fH1ZTxn6.d.ts} +59 -38
  26. package/dist/{expression-DirYKz-f.d.ts → expression-DxY6ct3t.d.ts} +1 -1
  27. package/dist/factory/index.d.ts +3 -3
  28. package/dist/factory/index.js +8 -10
  29. package/dist/factory-runtime/index.d.ts +4 -4
  30. package/dist/factory-runtime/index.js +15 -17
  31. package/dist/fixtures.d.ts +8 -7
  32. package/dist/fixtures.js +6 -8
  33. package/dist/i18n/index.js +2 -4
  34. package/dist/{index-C8mF8btS.d.ts → index-Dk2AoJdI.d.ts} +43 -30
  35. package/dist/index.d.ts +17 -19
  36. package/dist/index.js +23 -25
  37. package/dist/kernel-wire.d.ts +3 -3
  38. package/dist/kernel-wire.js +3 -5
  39. package/dist/language/constructs.json +5 -0
  40. package/dist/language/program-types.json +6 -0
  41. package/dist/language/validation-codes.json +140 -0
  42. package/dist/language/vocabulary.json +45 -1
  43. package/dist/language-data.js +3 -5
  44. package/dist/lolo-document/index.js +0 -2
  45. package/dist/patterns/component-mapping.json +1 -1
  46. package/dist/patterns/definitions.d.ts +2 -2
  47. package/dist/patterns/definitions.js +1 -3
  48. package/dist/patterns/event-contracts.json +1 -1
  49. package/dist/patterns/index.d.ts +9 -3
  50. package/dist/patterns/index.js +3 -5
  51. package/dist/patterns/patterns-registry.json +560 -56
  52. package/dist/patterns/registry.json +560 -56
  53. package/dist/themes/index.js +2 -4
  54. package/dist/{trait-D9MjuwGC.d.ts → trait-BO2gbBte.d.ts} +82 -92
  55. package/dist/types/index.d.ts +9 -9
  56. package/dist/types/index.js +12 -14
  57. package/dist/{types-Bi-KSa0a.d.ts → types-CSBhbbse.d.ts} +3 -3
  58. package/package.json +6 -6
  59. package/dist/behavior-package.js.map +0 -1
  60. package/dist/builders.js.map +0 -1
  61. package/dist/chunk-2NKK2X53.js.map +0 -1
  62. package/dist/chunk-347APWFM.js.map +0 -1
  63. package/dist/chunk-3DZOFI53.js.map +0 -1
  64. package/dist/chunk-6H3UIZR2.js.map +0 -1
  65. package/dist/chunk-7B4JRMRL.js.map +0 -1
  66. package/dist/chunk-7GHJU5WI.js.map +0 -1
  67. package/dist/chunk-7NDAXM2Z.js.map +0 -1
  68. package/dist/chunk-B4MNHGBP.js.map +0 -1
  69. package/dist/chunk-IE6WCCJP.js.map +0 -1
  70. package/dist/chunk-LPJ7GKRM.js.map +0 -1
  71. package/dist/chunk-M4S2B5VJ.js.map +0 -1
  72. package/dist/chunk-N3CK4AYW.js.map +0 -1
  73. package/dist/chunk-PYYHDYTD.js.map +0 -1
  74. package/dist/chunk-RGACZEYC.js.map +0 -1
  75. package/dist/chunk-VG7BRFUD.js.map +0 -1
  76. package/dist/chunk-VIHQKKTZ.js.map +0 -1
  77. package/dist/chunk-VOFHP52Z.js.map +0 -1
  78. package/dist/chunk-ZDIHVDTW.js +0 -3810
  79. package/dist/chunk-ZDIHVDTW.js.map +0 -1
  80. package/dist/factory/index.js.map +0 -1
  81. package/dist/factory-runtime/index.js.map +0 -1
  82. package/dist/fixtures.js.map +0 -1
  83. package/dist/i18n/index.js.map +0 -1
  84. package/dist/index.js.map +0 -1
  85. package/dist/kernel-wire.js.map +0 -1
  86. package/dist/language-data.js.map +0 -1
  87. package/dist/lolo-document/index.js.map +0 -1
  88. package/dist/patterns/definitions.js.map +0 -1
  89. package/dist/patterns/index.js.map +0 -1
  90. package/dist/themes/index.js.map +0 -1
  91. package/dist/types/index.js.map +0 -1
  92. package/dist/{domain-JuWUUeJ3.d.ts → domain-Cpmja5ak.d.ts} +51 -51
@@ -416,5 +416,3 @@ function materializeRegistry(pkg, options = {}) {
416
416
  }
417
417
 
418
418
  export { BUILD_INPUTS_LOCK_FILE, BehaviorPackageError, BehaviorPackageOrbBlockSchema, MaterializeAnswerSchema, REGISTRY_MIRROR_LIMIT, SIDECAR_LOCK_FILE, SidecarLockSchema, assertImportable, behaviorProgramFiles, behaviorRegistry, behaviorRegistryDir, behaviorSourceTree, derivedCacheDir, discoverBehaviorPackages, ensureDeclaredPath, ensureLockEntry, evictOldMirrors, findInstalledBehaviorPackage, installedPackageDirs, materializeRegistry, pruneRegistryMirrors, readBehaviorPackage, readLockFile, resolveDeclaredFile, resolveDeclaredPath, resolveOrbBinary, sidecarCacheDir, userStoreDir };
419
- //# sourceMappingURL=chunk-RGACZEYC.js.map
420
- //# sourceMappingURL=chunk-RGACZEYC.js.map
@@ -1,7 +1,7 @@
1
- import { OrbitalSchemaSchema, SourceDeclarationMetadataSchema } from './chunk-LPJ7GKRM.js';
2
- import { FieldValueSchema, EntityRowSchema, SERVER_REPORTED_EFFECTS } from './chunk-7B4JRMRL.js';
3
- import { EventPayloadValueSchema, EventPayloadSchema } from './chunk-347APWFM.js';
4
- import { JsonValueSchema, isJsonObject } from './chunk-7GHJU5WI.js';
1
+ import { OrbitalSchemaSchema, SourceDeclarationMetadataSchema } from './chunk-UCP26C3C.js';
2
+ import { FieldValueSchema, EntityRowSchema, SERVER_REPORTED_EFFECTS } from './chunk-JPJQCTJI.js';
3
+ import { EventPayloadValueSchema, EventPayloadSchema } from './chunk-R3Y7ABF4.js';
4
+ import { JsonValueSchema, isJsonObject } from './chunk-GNLND5O2.js';
5
5
  import { z } from 'zod';
6
6
 
7
7
  // src/types/observability.ts
@@ -780,6 +780,11 @@ function nativeSlotId(name) {
780
780
 
781
781
  // src/generated/language/validation-codes.json
782
782
  var validation_codes_default = [
783
+ {
784
+ code: "ORB_ENTITY_FIELD_DEFAULT_SHAPE_MISMATCH",
785
+ category: "entity",
786
+ description: "An entity field's declared default does not fit the field's declared type: the singleton row built from the defaults would be refused by the kernel's row intake."
787
+ },
783
788
  {
784
789
  code: "ORB_T_MISSING_RENDER_UI",
785
790
  category: "trait",
@@ -920,6 +925,11 @@ var validation_codes_default = [
920
925
  category: "effect",
921
926
  description: "one dispatch's delegated effects reach browser-stored rows and server work"
922
927
  },
928
+ {
929
+ code: "ORB_LANGUAGE_DATA_FAULT",
930
+ category: "effect",
931
+ description: "the installed language data cannot answer a lookup the validated program needs"
932
+ },
923
933
  {
924
934
  code: "ORB_EFF_SLOT_CONFLICT",
925
935
  category: "effect",
@@ -1055,6 +1065,11 @@ var validation_codes_default = [
1055
1065
  category: "binding",
1056
1066
  description: "**The payload invariant.** An event's declared payload type IS its access path: declaring `Survey` means the payload is the row (read `?name`); declaring `{ row : Survey }` means read `?row.name`. This fires when an event declares a field that the effect firing it does not actually emit \u2014 so every read of that field is `undefined` at runtime, even though `orb validate` and `orb verify` otherwise pass. Checked as width subtyping (`declared \u2286 produced`): declaring FEWER fields than are emitted is legal, declaring one that is never emitted is not. Replaces the narrower `EmitSuccessPayloadWrapped` (persist-only) and `EmitSuccessPayloadReturnMismatch` (empty-payload-only) checks. Error severity."
1057
1067
  },
1068
+ {
1069
+ code: "ORB_LISTEN_PAYLOAD_TYPE_MISMATCH",
1070
+ category: "binding",
1071
+ description: "An `emit` declares a payload field whose type does not fit the type the listening trait declares for the same field of the event its `listens` route triggers: the emitted value would be refused or misread on delivery. Compared by structure under the kernel's one type relation (aliases resolved, a missing optional member and a non-null value into a nullable slot are fine), never by the spelling of the type names. Error severity."
1072
+ },
1058
1073
  {
1059
1074
  code: "ORB_EFFECT_IN_LAMBDA",
1060
1075
  category: "binding",
@@ -1080,6 +1095,116 @@ var validation_codes_default = [
1080
1095
  category: "generic",
1081
1096
  description: "Generic duplicate entity/item"
1082
1097
  },
1098
+ {
1099
+ code: "ORB_BINDING_ROOT_SHADOWED",
1100
+ category: "binding",
1101
+ description: "A `let` binding or `fn` parameter is named after a binding root (`entity`, `payload`, `config`, `user`, and so on), so `@name` in its scope reads the local instead of the root."
1102
+ },
1103
+ {
1104
+ code: "ORB_RUI_COLLECTION_FIELDS_MISSING",
1105
+ category: "render_ui",
1106
+ description: "A render-ui pattern whose registry props take both `entity` and `fields`/`columns` is bound to entity rows but declares neither, so a host would have to derive the shown fields from the first row."
1107
+ },
1108
+ {
1109
+ code: "ORB_BEHAVIOR_AMBIGUOUS",
1110
+ category: "behavior",
1111
+ description: "A behavior name resolves in more than one installed package"
1112
+ },
1113
+ {
1114
+ code: "ORB_BEHAVIOR_NAME_DUPLICATE",
1115
+ category: "behavior",
1116
+ description: "A package declares the same behavior name twice"
1117
+ },
1118
+ {
1119
+ code: "ORB_BEHAVIOR_NOT_FOUND",
1120
+ category: "behavior",
1121
+ description: "An imported behavior is found in no installed package"
1122
+ },
1123
+ {
1124
+ code: "ORB_BEHAVIOR_PACKAGE_INVALID",
1125
+ category: "behavior",
1126
+ description: "An installed behavior package cannot be read or has an invalid layout"
1127
+ },
1128
+ {
1129
+ code: "ORB_BEHAVIOR_PACKAGE_NOT_INSTALLED",
1130
+ category: "behavior",
1131
+ description: "A behavior package a program imports from is not installed"
1132
+ },
1133
+ {
1134
+ code: "ORB_BEHAVIOR_PREFIX_CONFLICT",
1135
+ category: "behavior",
1136
+ description: "Two installed packages claim the same behavior prefix"
1137
+ },
1138
+ {
1139
+ code: "ORB_LAZY_EAGER_REF",
1140
+ category: "uses",
1141
+ description: "An eager orbital references a lazily imported alias beyond a whole page-bearing orbital"
1142
+ },
1143
+ {
1144
+ code: "ORB_LAZY_NOT_SPLIT",
1145
+ category: "uses",
1146
+ description: "An orbital that references a lazy import reached inlining before the lazy split"
1147
+ },
1148
+ {
1149
+ code: "ORB_LAZY_NO_PAGES",
1150
+ category: "uses",
1151
+ description: "An orbital imported lazily declares no pages, so nothing can load it"
1152
+ },
1153
+ {
1154
+ code: "ORB_O_LISTEN_SOURCE_UNKNOWN",
1155
+ category: "orbital_ref",
1156
+ description: "An orbital import listens route names a source trait that is neither imported nor authored in the import body"
1157
+ },
1158
+ {
1159
+ code: "ORB_O_LISTEN_TARGET_UNKNOWN",
1160
+ category: "orbital_ref",
1161
+ description: "An orbital import listens route targets a trait that is not in the imported set"
1162
+ },
1163
+ {
1164
+ code: "ORB_O_PAGE_ACCESS_WEAKENED",
1165
+ category: "orbital_ref",
1166
+ description: "A page reference sets public access on an upstream page that requires authentication"
1167
+ },
1168
+ {
1169
+ code: "ORB_O_PAGE_PROTOCOL_MISMATCH",
1170
+ category: "orbital_ref",
1171
+ description: "A page reference is written with a protocol other than the referenced page's"
1172
+ },
1173
+ {
1174
+ code: "ORB_O_SIBLING_ENTITY_AMBIGUOUS",
1175
+ category: "orbital_ref",
1176
+ description: "A sibling entity is declared by two imports with different fields"
1177
+ },
1178
+ {
1179
+ code: "ORB_T_AMBIGUOUS_TYPE_NAME",
1180
+ category: "trait",
1181
+ description: "A type name is declared by two sources with different shapes"
1182
+ },
1183
+ {
1184
+ code: "ORB_T_CONFLICTING_TYPE_ALIAS",
1185
+ category: "trait",
1186
+ description: "A struct alias is declared both locally and by an imported trait with different shapes"
1187
+ },
1188
+ {
1189
+ code: "ORB_T_EMIT_MERGE_CONFLICT",
1190
+ category: "trait",
1191
+ description: "An emit from an inline-expanded trait collides with an emit of different payload"
1192
+ },
1193
+ {
1194
+ code: "ORB_T_LAMBDA_STATEFUL_TRAIT",
1195
+ category: "trait",
1196
+ description: "A trait used as a lambda keeps its own state machine"
1197
+ },
1198
+ {
1199
+ code: "ORB_T_LISTEN_KEY_DROPPED",
1200
+ category: "trait",
1201
+ description: "A call-site listens override restates a keyed route without its per clause"
1202
+ },
1203
+ {
1204
+ code: "ORB_T_TYPE_IMPORT_REFUSED",
1205
+ category: "trait",
1206
+ description: "A program uses a type declared by a behavior instead of declaring or sharing it"
1207
+ },
1083
1208
  {
1084
1209
  code: "CIRCUIT_ACTION_COMPONENT_MISMATCH",
1085
1210
  category: "circuit",
@@ -1350,6 +1475,11 @@ var validation_codes_default = [
1350
1475
  category: "circuit",
1351
1476
  description: "A page's content owner repaints its region on a user-triggered event with a body that offers no way on"
1352
1477
  },
1478
+ {
1479
+ code: "ORB_CLIENT_ENTITY_SERVER_ONLY",
1480
+ category: "orbital",
1481
+ description: "A client trait is linked to the entity of an orbital whose every page is a protocol endpoint, which the client program leaves out"
1482
+ },
1353
1483
  {
1354
1484
  code: "ORB_COMPOSED_STATE_UNREACHABLE",
1355
1485
  category: "circuit",
@@ -1795,6 +1925,11 @@ var validation_codes_default = [
1795
1925
  category: "lint",
1796
1926
  description: "json/parse re-parses what json/stringify just serialized; a stringify\u2192parse round trip launders a value's type past the checker (owner hard rule, CLAUDE.md). Narrow with `as`."
1797
1927
  },
1928
+ {
1929
+ code: "ORB_JSON_STRINGIFY_KEY",
1930
+ category: "lint",
1931
+ description: "json/stringify is an operand of =, !=, array/unique, array/indexOf or an object/set key; compare or key by value/key instead of serialized text"
1932
+ },
1798
1933
  {
1799
1934
  code: "ORB_LINT_FINDING_CODE_UNDECLARED",
1800
1935
  category: "lint",
@@ -2700,6 +2835,11 @@ var validation_codes_default = [
2700
2835
  category: "lint",
2701
2836
  description: "A parse inside a lambda re-parses the same value for every element and should be bound once outside"
2702
2837
  },
2838
+ {
2839
+ code: "ORB_X_BARE_LISTEN_UNROUTED",
2840
+ category: "cross",
2841
+ description: "A trait declares a bare listens contract for an event another orbital emits to the embedder, and no route joins them"
2842
+ },
2703
2843
  {
2704
2844
  code: "ORB_X_CIRCULAR_DEPENDENCY",
2705
2845
  category: "cross",
@@ -3158,12 +3298,14 @@ var EvalStepWireSchema = z.object({
3158
3298
  value: JsonValueSchema.optional(),
3159
3299
  error: z.string().optional()
3160
3300
  });
3301
+ var PlayedNestedSchema = z.lazy(() => z.array(PlayedEffectSchema));
3161
3302
  var PlayedEffectSchema = z.object({
3162
3303
  type: z.string(),
3163
3304
  args: z.array(JsonValueSchema),
3164
3305
  status: z.enum(["executed", "failed", "skipped"]),
3165
3306
  error: z.string().optional(),
3166
- routed: z.boolean()
3307
+ routed: z.boolean(),
3308
+ nested: PlayedNestedSchema.optional()
3167
3309
  });
3168
3310
  var PropositionBindingsSchema = z.object({
3169
3311
  entity: JsonValueSchema,
@@ -3305,5 +3447,3 @@ var ProgramInspectionSchema = z.object({
3305
3447
  });
3306
3448
 
3307
3449
  export { A11Y_ATTRIBUTES, ACCESSIBLE_NAME_ATTRIBUTES, ACTION_OVERFLOW_TESTID, ACTION_TESTID_PREFIX, ANONYMOUS_USER, ARIA_CURRENT, ARIA_LIVE, ARIA_PRESSED, ARIA_ROLES, AriaRoleSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CALL_KINDS, ClientManifestSchema, ClientThemeSchema, DIAGRAM_STROKE_WEIGHTS, DIAGRAM_TEXT_CASES, DIAGRAM_TEXT_SIZES, DIAGRAM_TONES, DIAGRAM_TONE_COLOR_KEYS, DiagramStrokeWeightSchema, DiagramTextCaseSchema, DiagramTextSizeSchema, DiagramToneSchema, DispatchVisits, EMPTY_STATE_MARKER, EVAL_TIERS, EvalSpecSchema, FORM_PATTERN, FULL_WRITE_CAPABILITIES, GESTURE_EVENT_PROPS, KNOWN_VALIDATION_ERROR_CODES, LOADING_STATE_MARKER, LOG_SEVERITIES, MachineRowSchema, NATIVE_ID_PREFIX, NATIVE_ID_SEPARATOR, PATTERN_PROP_TYPE_ERROR_TESTID, PatternTypeSchema, PayloadSlotSchema, PlayedStepSchema, ProgramInspectionSchema, ProgramSourceAnchorSchema, ProgramSourceLocationSchema, QueryCapabilitiesSchema, QueryDeclinedError, RENDER_BINDING_MARKER, ROW_SET_MARKER, RawUserClaimsSchema, RowCommitSchema, RowIdPageSchema, RowPredicateSchema, RowQueryPageSchema, RowQuerySchema, RowSetRefSchema, RowWriteBatchSchema, RowWriteOpSchema, RowWriteOutcomeSchema, SEMANTIC_CHANGE_KINDS, SURFACE_MODES, ServerBatchSummarySchema, ServerEffectResultSchema, TAB_INDEX_VALUES, TEXT_DIRECTIONS, TRAIT_MOUNT_ERROR_TESTID, TabHostFailure, TraitFieldRefSchema, VERIFICATION_DOM_ATTRS, ViewerSchema, WriteCapabilitiesSchema, WriteDeclinedError, actionTestId, actionTestIdMatches, containsEntityBinding, containsPayloadBinding, createLazyService, createTypedEventBus, dispatchVisitKey, evalPatternMatches, findPersonaInRoster, gestureActionTestId, gestureOfActionTestId, getBindingExamples, guardHolds, isAriaRole, isCallRecord, isKnownValidationErrorCode, isPlanSnapshot, isRenderBindingMarker, isRowSetMarker, isSessionHistoryEntry, isStructuredLogEntry, isTraitFieldRef, nativeFieldId, nativeIds, nativePatternId, nativeRowId, nativeSlotId, normalizeUserContext, orbitalIndexOfValidationPath, parseClientManifest, parseEvalSpec, parseFetchOrder, personaFromIdentityRow, resolvePersonaSpec, rowMatchesPredicate, rowSetMarker, runRowWrite, splitNativeIds, toBindingRoot, validateBindingInContext, widenTier };
3308
- //# sourceMappingURL=chunk-VOFHP52Z.js.map
3309
- //# sourceMappingURL=chunk-VOFHP52Z.js.map
@@ -35,5 +35,3 @@ function toPayloadValue(value) {
35
35
  }
36
36
 
37
37
  export { JsonValueSchema, isJsonArray, isJsonObject, isJsonPrimitive, toPayloadValue };
38
- //# sourceMappingURL=chunk-7GHJU5WI.js.map
39
- //# sourceMappingURL=chunk-7GHJU5WI.js.map
@@ -1,4 +1,4 @@
1
- import { isInlineTrait } from './chunk-LPJ7GKRM.js';
1
+ import { isInlineTrait } from './chunk-UCP26C3C.js';
2
2
 
3
3
  // src/data-bearing.ts
4
4
  function touchesRecord(effect, name) {
@@ -20,5 +20,3 @@ function orbitalTouchesOwnRecord(orbital) {
20
20
  }
21
21
 
22
22
  export { orbitalTouchesOwnRecord };
23
- //# sourceMappingURL=chunk-PYYHDYTD.js.map
24
- //# sourceMappingURL=chunk-PYYHDYTD.js.map
@@ -594,5 +594,3 @@ var CustomPatternDefinitionSchema = z.object({
594
594
  var CustomPatternMapSchema = z.record(z.string(), CustomPatternDefinitionSchema).optional();
595
595
 
596
596
  export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, COLOR_TOKEN_KEYS, ColorSliceSchema, ColorTokensSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DIAGRAM_TOKEN_KEYS, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DiagramFillStyleSchema, DiagramLabelCaseSchema, DiagramLabelFontSchema, DiagramLineCapSchema, DiagramLineJoinSchema, DiagramMarkerSchema, DiagramTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTER_ANIMATIONS, ENTER_DELAY_STEPS, ElevationSliceSchema, ElevationTokensSchema, EnterAnimationSchema, EntitySemanticRoleSchema, EventSemanticRoleSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, ILLUSTRATION_TOKEN_KEYS, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionEntryTokensSchema, MotionIntentMapSchema, MotionIntentSchema, MotionShapeTokensSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, RelatedLinkSchema, SCENE_TOKEN_KEYS, SceneTokensSchema, SkinSpecSchema, SpacingScaleSchema, StateSemanticRoleSchema, SuggestedGuardSchema, SurfaceSliceSchema, SurfaceTokensSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UXHintsSchema, UserPersonaSchema, isThemeReference, isThemeRegistryKey, isWellFormedFontStack, themeDataKey };
597
- //# sourceMappingURL=chunk-M4S2B5VJ.js.map
598
- //# sourceMappingURL=chunk-M4S2B5VJ.js.map
@@ -1,5 +1,5 @@
1
- import { asEventId, asOrbitalId, asTraitId } from './chunk-VG7BRFUD.js';
2
- import { setOwn } from './chunk-B4MNHGBP.js';
1
+ import { asEventId, asOrbitalId, asTraitId } from './chunk-W3UJRSYC.js';
2
+ import { setOwn } from './chunk-5IRZ6ROW.js';
3
3
 
4
4
  // src/generated/kernel-wire.ts
5
5
  var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
@@ -217,7 +217,7 @@ function checkEvalStepWire(v) {
217
217
  return isRecord(v) && checkEvalStepKind(v["kind"]) && (Array.isArray(v["path"]) && v["path"].every((e) => typeof e === "number" || typeof e === "string")) && (v["value"] === void 0 || accepts((x, q) => any(x, q), v["value"])) && (v["error"] === void 0 || typeof v["error"] === "string");
218
218
  }
219
219
  function checkEventRequest(v) {
220
- return isRecord(v) && typeof v["event"] === "string" && (v["eventId"] === void 0 || accepts((x, q) => asEventId(str(x, q)), v["eventId"])) && (v["payload"] === void 0 || accepts((x, q) => rec(x, q), v["payload"])) && (v["entityId"] === void 0 || typeof v["entityId"] === "string") && (v["targetTrait"] === void 0 || typeof v["targetTrait"] === "string") && (v["clientId"] === void 0 || typeof v["clientId"] === "string") && (v["locale"] === void 0 || typeof v["locale"] === "string") && (v["tick"] === void 0 || typeof v["tick"] === "string") && (v["sourceTrait"] === void 0 || typeof v["sourceTrait"] === "string") && (v["runTick"] === void 0 || checkRunTick(v["runTick"])) && (v["traits"] === void 0 || Array.isArray(v["traits"]) && v["traits"].every((e) => checkTraitFrom(e))) && (v["entityByTrait"] === void 0 || isRecord(v["entityByTrait"]) && Object.values(v["entityByTrait"]).every((e) => accepts((x, q) => entityRow(x, q), e))) && (v["behavior"] === void 0 || typeof v["behavior"] === "string") && (v["delivery"] === void 0 || checkDeliveryRecord(v["delivery"])) && (v["dispatchLog"] === void 0 || checkDispatchLog(v["dispatchLog"])) && (v["mount"] === void 0 || Array.isArray(v["mount"]) && v["mount"].every((e) => checkMountSeed(e))) && (v["route"] === void 0 || typeof v["route"] === "string") && (v["residence"] === void 0 || checkLegResidence(v["residence"])) && (v["framesSince"] === void 0 || typeof v["framesSince"] === "number") && (v["heldPayload"] === void 0 || typeof v["heldPayload"] === "number");
220
+ return isRecord(v) && typeof v["event"] === "string" && (v["eventId"] === void 0 || accepts((x, q) => asEventId(str(x, q)), v["eventId"])) && (v["payload"] === void 0 || accepts((x, q) => rec(x, q), v["payload"])) && (v["entityId"] === void 0 || typeof v["entityId"] === "string") && (v["targetTrait"] === void 0 || typeof v["targetTrait"] === "string") && (v["clientId"] === void 0 || typeof v["clientId"] === "string") && (v["locale"] === void 0 || typeof v["locale"] === "string") && (v["tick"] === void 0 || typeof v["tick"] === "string") && (v["sourceTrait"] === void 0 || typeof v["sourceTrait"] === "string") && (v["runTick"] === void 0 || checkRunTick(v["runTick"])) && (v["traits"] === void 0 || Array.isArray(v["traits"]) && v["traits"].every((e) => checkTraitFrom(e))) && (v["entityByTrait"] === void 0 || isRecord(v["entityByTrait"]) && Object.values(v["entityByTrait"]).every((e) => accepts((x, q) => entityRow(x, q), e))) && (v["behavior"] === void 0 || typeof v["behavior"] === "string") && (v["delivery"] === void 0 || checkDeliveryRecord(v["delivery"])) && (v["dispatchLog"] === void 0 || checkDispatchLog(v["dispatchLog"])) && (v["mount"] === void 0 || Array.isArray(v["mount"]) && v["mount"].every((e) => checkMountSeed(e))) && (v["route"] === void 0 || typeof v["route"] === "string") && (v["crumb"] === void 0 || typeof v["crumb"] === "string") && (v["residence"] === void 0 || checkLegResidence(v["residence"])) && (v["framesSince"] === void 0 || typeof v["framesSince"] === "number") && (v["heldPayload"] === void 0 || typeof v["heldPayload"] === "number");
221
221
  }
222
222
  function checkEventResponse(v) {
223
223
  return isRecord(v) && typeof v["success"] === "boolean" && typeof v["transitioned"] === "boolean" && (isRecord(v["states"]) && Object.values(v["states"]).every((e) => typeof e === "string")) && (Array.isArray(v["emittedEvents"]) && v["emittedEvents"].every((e) => checkEmittedEvent(e))) && (v["data"] === void 0 || isRecord(v["data"]) && Object.values(v["data"]).every((e) => Array.isArray(e) && e.every((e2) => accepts((x, q) => entityRow(x, q), e2)))) && (v["dataRefs"] === void 0 || isRecord(v["dataRefs"]) && Object.values(v["dataRefs"]).every((e) => checkRowSetRef(e))) && (v["frames"] === void 0 || checkFrameDelta(v["frames"])) && (v["clientEffectsByTrait"] === void 0 || Array.isArray(v["clientEffectsByTrait"]) && v["clientEffectsByTrait"].every((e) => checkClientEffectByTrait(e))) && (v["effectResults"] === void 0 || Array.isArray(v["effectResults"]) && v["effectResults"].every((e) => checkServerEffectResult(e))) && (v["guardFailed"] === void 0 || typeof v["guardFailed"] === "string") && (v["rejections"] === void 0 || Array.isArray(v["rejections"]) && v["rejections"].every((e) => checkTransitionRejection(e))) && (v["cascadeTruncated"] === void 0 || Array.isArray(v["cascadeTruncated"]) && v["cascadeTruncated"].every((e) => typeof e === "string")) && (v["transitions"] === void 0 || Array.isArray(v["transitions"]) && v["transitions"].every((e) => checkTransitionHop(e))) && (v["error"] === void 0 || typeof v["error"] === "string");
@@ -307,7 +307,7 @@ function checkKernelGrant(v) {
307
307
  return isRecord(v) && typeof v["target"] === "string" && (Array.isArray(v["kinds"]) && v["kinds"].every((e) => checkKernelKind(e)));
308
308
  }
309
309
  function checkKernelKind(v) {
310
- return v === "call" || v === "reorder" || v === "read" || v === "spawn";
310
+ return v === "call" || v === "reorder" || v === "read" || v === "spawn" || v === "declared";
311
311
  }
312
312
  function checkKvMode(v) {
313
313
  return v === "read" || v === "write";
@@ -343,7 +343,7 @@ function checkMountSeed(v) {
343
343
  return isRecord(v) && typeof v["trait"] === "string" && checkLifecycleEvent(v["event"]);
344
344
  }
345
345
  function checkMountWire(v) {
346
- return isRecord(v) && (Array.isArray(v["seeds"]) && v["seeds"].every((e) => checkDispatchWire(e))) && (Array.isArray(v["legs"]) && v["legs"].every((e) => checkMountLegWire(e))) && (Array.isArray(v["statefulLegs"]) && v["statefulLegs"].every((e) => checkMountLegWire(e))) && (checkMountFailure(v["failed"]) || v["failed"] === null);
346
+ return isRecord(v) && (checkDispatchWire(v["announced"]) || v["announced"] === null) && (Array.isArray(v["seeds"]) && v["seeds"].every((e) => checkDispatchWire(e))) && (Array.isArray(v["legs"]) && v["legs"].every((e) => checkMountLegWire(e))) && (Array.isArray(v["statefulLegs"]) && v["statefulLegs"].every((e) => checkMountLegWire(e))) && (Array.isArray(v["hops"]) && v["hops"].every((e) => checkRoutedLeg(e))) && (checkMountFailure(v["failed"]) || v["failed"] === null);
347
347
  }
348
348
  function checkNavigateOptions(v) {
349
349
  return isRecord(v) && (v["crumb"] === void 0 || typeof v["crumb"] === "string");
@@ -397,7 +397,7 @@ function checkPendingRequestWire(v) {
397
397
  return isRecord(v) && typeof v["id"] === "number" && checkIoRequestWire(v["request"]);
398
398
  }
399
399
  function checkPlayedEffect(v) {
400
- return isRecord(v) && typeof v["type"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && checkPlayedEffectStatus(v["status"]) && (v["error"] === void 0 || typeof v["error"] === "string") && typeof v["routed"] === "boolean";
400
+ return isRecord(v) && typeof v["type"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && checkPlayedEffectStatus(v["status"]) && (v["error"] === void 0 || typeof v["error"] === "string") && typeof v["routed"] === "boolean" && (v["nested"] === void 0 || Array.isArray(v["nested"]) && v["nested"].every((e) => checkPlayedEffect(e)));
401
401
  }
402
402
  function checkPlayedEffectStatus(v) {
403
403
  return v === "executed" || v === "failed" || v === "skipped";
@@ -757,7 +757,7 @@ function buildEvalStepWire(v, p) {
757
757
  return obj(v, p, null, (r0) => ({ "kind": buildEvalStepKind(r0["kind"], p + ".kind"), "path": list(r0["path"], p + ".path", (e1, q1) => typeof e1 === "number" ? num(e1, q1) : typeof e1 === "string" ? str(e1, q1) : fail(miss(q1, "a number | a string"))), ...r0["value"] === void 0 || r0["value"] === null ? {} : { "value": any(r0["value"], p + ".value") }, ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") } }));
758
758
  }
759
759
  function buildEventRequest(v, p) {
760
- return obj(v, p, null, (r0) => ({ "event": str(r0["event"], p + ".event"), ...r0["eventId"] === void 0 || r0["eventId"] === null ? {} : { "eventId": asEventId(str(r0["eventId"], p + ".eventId")) }, ...r0["payload"] === void 0 || r0["payload"] === null ? {} : { "payload": rec(r0["payload"], p + ".payload") }, ...r0["entityId"] === void 0 || r0["entityId"] === null ? {} : { "entityId": str(r0["entityId"], p + ".entityId") }, ...r0["targetTrait"] === void 0 || r0["targetTrait"] === null ? {} : { "targetTrait": str(r0["targetTrait"], p + ".targetTrait") }, ...r0["clientId"] === void 0 || r0["clientId"] === null ? {} : { "clientId": str(r0["clientId"], p + ".clientId") }, ...r0["locale"] === void 0 || r0["locale"] === null ? {} : { "locale": str(r0["locale"], p + ".locale") }, ...r0["tick"] === void 0 || r0["tick"] === null ? {} : { "tick": str(r0["tick"], p + ".tick") }, ...r0["sourceTrait"] === void 0 || r0["sourceTrait"] === null ? {} : { "sourceTrait": str(r0["sourceTrait"], p + ".sourceTrait") }, ...r0["runTick"] === void 0 || r0["runTick"] === null ? {} : { "runTick": buildRunTick(r0["runTick"], p + ".runTick") }, ...r0["traits"] === void 0 || r0["traits"] === null ? {} : { "traits": list(r0["traits"], p + ".traits", (e1, q1) => buildTraitFrom(e1, q1)) }, ...r0["entityByTrait"] === void 0 || r0["entityByTrait"] === null ? {} : { "entityByTrait": dict(r0["entityByTrait"], p + ".entityByTrait", (e1, q1) => entityRow(e1, q1)) }, ...r0["behavior"] === void 0 || r0["behavior"] === null ? {} : { "behavior": str(r0["behavior"], p + ".behavior") }, ...r0["delivery"] === void 0 || r0["delivery"] === null ? {} : { "delivery": buildDeliveryRecord(r0["delivery"], p + ".delivery") }, ...r0["dispatchLog"] === void 0 || r0["dispatchLog"] === null ? {} : { "dispatchLog": buildDispatchLog(r0["dispatchLog"], p + ".dispatchLog") }, ...r0["mount"] === void 0 || r0["mount"] === null ? {} : { "mount": list(r0["mount"], p + ".mount", (e1, q1) => buildMountSeed(e1, q1)) }, ...r0["route"] === void 0 || r0["route"] === null ? {} : { "route": str(r0["route"], p + ".route") }, ...r0["residence"] === void 0 || r0["residence"] === null ? {} : { "residence": buildLegResidence(r0["residence"], p + ".residence") }, ...r0["framesSince"] === void 0 || r0["framesSince"] === null ? {} : { "framesSince": int(r0["framesSince"], p + ".framesSince", 0, Number.MAX_SAFE_INTEGER, "u64") }, ...r0["heldPayload"] === void 0 || r0["heldPayload"] === null ? {} : { "heldPayload": int(r0["heldPayload"], p + ".heldPayload", 0, Number.MAX_SAFE_INTEGER, "u64") } }));
760
+ return obj(v, p, null, (r0) => ({ "event": str(r0["event"], p + ".event"), ...r0["eventId"] === void 0 || r0["eventId"] === null ? {} : { "eventId": asEventId(str(r0["eventId"], p + ".eventId")) }, ...r0["payload"] === void 0 || r0["payload"] === null ? {} : { "payload": rec(r0["payload"], p + ".payload") }, ...r0["entityId"] === void 0 || r0["entityId"] === null ? {} : { "entityId": str(r0["entityId"], p + ".entityId") }, ...r0["targetTrait"] === void 0 || r0["targetTrait"] === null ? {} : { "targetTrait": str(r0["targetTrait"], p + ".targetTrait") }, ...r0["clientId"] === void 0 || r0["clientId"] === null ? {} : { "clientId": str(r0["clientId"], p + ".clientId") }, ...r0["locale"] === void 0 || r0["locale"] === null ? {} : { "locale": str(r0["locale"], p + ".locale") }, ...r0["tick"] === void 0 || r0["tick"] === null ? {} : { "tick": str(r0["tick"], p + ".tick") }, ...r0["sourceTrait"] === void 0 || r0["sourceTrait"] === null ? {} : { "sourceTrait": str(r0["sourceTrait"], p + ".sourceTrait") }, ...r0["runTick"] === void 0 || r0["runTick"] === null ? {} : { "runTick": buildRunTick(r0["runTick"], p + ".runTick") }, ...r0["traits"] === void 0 || r0["traits"] === null ? {} : { "traits": list(r0["traits"], p + ".traits", (e1, q1) => buildTraitFrom(e1, q1)) }, ...r0["entityByTrait"] === void 0 || r0["entityByTrait"] === null ? {} : { "entityByTrait": dict(r0["entityByTrait"], p + ".entityByTrait", (e1, q1) => entityRow(e1, q1)) }, ...r0["behavior"] === void 0 || r0["behavior"] === null ? {} : { "behavior": str(r0["behavior"], p + ".behavior") }, ...r0["delivery"] === void 0 || r0["delivery"] === null ? {} : { "delivery": buildDeliveryRecord(r0["delivery"], p + ".delivery") }, ...r0["dispatchLog"] === void 0 || r0["dispatchLog"] === null ? {} : { "dispatchLog": buildDispatchLog(r0["dispatchLog"], p + ".dispatchLog") }, ...r0["mount"] === void 0 || r0["mount"] === null ? {} : { "mount": list(r0["mount"], p + ".mount", (e1, q1) => buildMountSeed(e1, q1)) }, ...r0["route"] === void 0 || r0["route"] === null ? {} : { "route": str(r0["route"], p + ".route") }, ...r0["crumb"] === void 0 || r0["crumb"] === null ? {} : { "crumb": str(r0["crumb"], p + ".crumb") }, ...r0["residence"] === void 0 || r0["residence"] === null ? {} : { "residence": buildLegResidence(r0["residence"], p + ".residence") }, ...r0["framesSince"] === void 0 || r0["framesSince"] === null ? {} : { "framesSince": int(r0["framesSince"], p + ".framesSince", 0, Number.MAX_SAFE_INTEGER, "u64") }, ...r0["heldPayload"] === void 0 || r0["heldPayload"] === null ? {} : { "heldPayload": int(r0["heldPayload"], p + ".heldPayload", 0, Number.MAX_SAFE_INTEGER, "u64") } }));
761
761
  }
762
762
  function buildEventResponse(v, p) {
763
763
  return obj(v, p, null, (r0) => ({ "success": r0["success"] === void 0 ? false : bool(r0["success"], p + ".success"), "transitioned": r0["transitioned"] === void 0 ? false : bool(r0["transitioned"], p + ".transitioned"), "states": r0["states"] === void 0 ? {} : dict(r0["states"], p + ".states", (e1, q1) => str(e1, q1)), "emittedEvents": r0["emittedEvents"] === void 0 ? [] : list(r0["emittedEvents"], p + ".emittedEvents", (e1, q1) => buildEmittedEvent(e1, q1)), ...r0["data"] === void 0 || r0["data"] === null ? {} : { "data": dict(r0["data"], p + ".data", (e1, q1) => list(e1, q1, (e2, q2) => entityRow(e2, q2))) }, ...r0["dataRefs"] === void 0 || r0["dataRefs"] === null ? {} : { "dataRefs": dict(r0["dataRefs"], p + ".dataRefs", (e1, q1) => buildRowSetRef(e1, q1)) }, ...r0["frames"] === void 0 || r0["frames"] === null ? {} : { "frames": buildFrameDelta(r0["frames"], p + ".frames") }, ...r0["clientEffectsByTrait"] === void 0 || r0["clientEffectsByTrait"] === null ? {} : { "clientEffectsByTrait": list(r0["clientEffectsByTrait"], p + ".clientEffectsByTrait", (e1, q1) => buildClientEffectByTrait(e1, q1)) }, ...r0["effectResults"] === void 0 || r0["effectResults"] === null ? {} : { "effectResults": list(r0["effectResults"], p + ".effectResults", (e1, q1) => buildServerEffectResult(e1, q1)) }, ...r0["guardFailed"] === void 0 || r0["guardFailed"] === null ? {} : { "guardFailed": str(r0["guardFailed"], p + ".guardFailed") }, ...r0["rejections"] === void 0 || r0["rejections"] === null ? {} : { "rejections": list(r0["rejections"], p + ".rejections", (e1, q1) => buildTransitionRejection(e1, q1)) }, ...r0["cascadeTruncated"] === void 0 || r0["cascadeTruncated"] === null ? {} : { "cascadeTruncated": list(r0["cascadeTruncated"], p + ".cascadeTruncated", (e1, q1) => str(e1, q1)) }, ...r0["transitions"] === void 0 || r0["transitions"] === null ? {} : { "transitions": list(r0["transitions"], p + ".transitions", (e1, q1) => buildTransitionHop(e1, q1)) }, ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") } }));
@@ -847,7 +847,7 @@ function buildKernelGrant(v, p) {
847
847
  return obj(v, p, ["target", "kinds"], (r0) => ({ "target": str(r0["target"], p + ".target"), "kinds": list(r0["kinds"], p + ".kinds", (e1, q1) => buildKernelKind(e1, q1)) }));
848
848
  }
849
849
  function buildKernelKind(v, p) {
850
- return oneOf(v, p, ["call", "reorder", "read", "spawn"]);
850
+ return oneOf(v, p, ["call", "reorder", "read", "spawn", "declared"]);
851
851
  }
852
852
  function buildKvMode(v, p) {
853
853
  return oneOf(v, p, ["read", "write"]);
@@ -883,7 +883,7 @@ function buildMountSeed(v, p) {
883
883
  return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "event": buildLifecycleEvent(r0["event"], p + ".event") }));
884
884
  }
885
885
  function buildMountWire(v, p) {
886
- return obj(v, p, null, (r0) => ({ "seeds": list(r0["seeds"], p + ".seeds", (e1, q1) => buildDispatchWire(e1, q1)), "legs": list(r0["legs"], p + ".legs", (e1, q1) => buildMountLegWire(e1, q1)), "statefulLegs": list(r0["statefulLegs"], p + ".statefulLegs", (e1, q1) => buildMountLegWire(e1, q1)), "failed": r0["failed"] === void 0 ? null : r0["failed"] === null ? null : buildMountFailure(r0["failed"], p + ".failed") }));
886
+ return obj(v, p, null, (r0) => ({ "announced": r0["announced"] === void 0 ? null : r0["announced"] === null ? null : buildDispatchWire(r0["announced"], p + ".announced"), "seeds": list(r0["seeds"], p + ".seeds", (e1, q1) => buildDispatchWire(e1, q1)), "legs": list(r0["legs"], p + ".legs", (e1, q1) => buildMountLegWire(e1, q1)), "statefulLegs": list(r0["statefulLegs"], p + ".statefulLegs", (e1, q1) => buildMountLegWire(e1, q1)), "hops": list(r0["hops"], p + ".hops", (e1, q1) => buildRoutedLeg(e1, q1)), "failed": r0["failed"] === void 0 ? null : r0["failed"] === null ? null : buildMountFailure(r0["failed"], p + ".failed") }));
887
887
  }
888
888
  function buildNavigateOptions(v, p) {
889
889
  return obj(v, p, null, (r0) => ({ ...r0["crumb"] === void 0 || r0["crumb"] === null ? {} : { "crumb": str(r0["crumb"], p + ".crumb") } }));
@@ -937,7 +937,7 @@ function buildPendingRequestWire(v, p) {
937
937
  return obj(v, p, null, (r0) => ({ "id": int(r0["id"], p + ".id", 0, Number.MAX_SAFE_INTEGER, "u64"), "request": buildIoRequestWire(r0["request"], p + ".request") }));
938
938
  }
939
939
  function buildPlayedEffect(v, p) {
940
- return obj(v, p, null, (r0) => ({ "type": str(r0["type"], p + ".type"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), "status": buildPlayedEffectStatus(r0["status"], p + ".status"), ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") }, "routed": bool(r0["routed"], p + ".routed") }));
940
+ return obj(v, p, null, (r0) => ({ "type": str(r0["type"], p + ".type"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), "status": buildPlayedEffectStatus(r0["status"], p + ".status"), ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") }, "routed": bool(r0["routed"], p + ".routed"), ...r0["nested"] === void 0 || r0["nested"] === null ? {} : { "nested": list(r0["nested"], p + ".nested", (e1, q1) => buildPlayedEffect(e1, q1)) } }));
941
941
  }
942
942
  function buildPlayedEffectStatus(v, p) {
943
943
  return oneOf(v, p, ["executed", "failed", "skipped"]);
@@ -1319,5 +1319,3 @@ function decodeValidationJsonOutput(value) {
1319
1319
  }
1320
1320
 
1321
1321
  export { decodeAppliedWire, decodeDispatchWire, decodeEntered, decodeEventRequest, decodeEventResponse, decodeFiredTick, decodeFoldProgressWire, decodeFoldedNextWire, decodeFrameWire, decodeHeldGpuCompletion, decodeIoAnswerWire, decodeIoReplyWire, decodeIoRequestWire, decodeMountWire, decodeNextWire, decodeOsGrantsReport, decodePlayedStep, decodeProveReport, decodeResolveProgressWire, decodeServerProgressWire, decodeSnapshotWire, decodeStepRefusal, decodeStepReport, decodeValidationJsonOutput, isAppliedWire, isDispatchWire, isEntered, isEventRequest, isEventResponse, isFiredTick, isFoldProgressWire, isFoldedNextWire, isFrameWire, isHeldGpuCompletion, isIoAnswerWire, isIoReplyWire, isIoRequestWire, isMountWire, isNextWire, isOsGrantsReport, isPlayedStep, isProveReport, isResolveProgressWire, isServerProgressWire, isSnapshotWire, isStepRefusal, isStepReport, isValidationJsonOutput };
1322
- //# sourceMappingURL=chunk-VIHQKKTZ.js.map
1323
- //# sourceMappingURL=chunk-VIHQKKTZ.js.map
@@ -1,6 +1,6 @@
1
- import { SExprListSchema, SExprSchema, SExprDataSchema } from './chunk-347APWFM.js';
2
- import { EntityIdSchema } from './chunk-VG7BRFUD.js';
3
- import { JsonValueSchema } from './chunk-7GHJU5WI.js';
1
+ import { SExprListSchema, SExprSchema, SExprDataSchema } from './chunk-R3Y7ABF4.js';
2
+ import { EntityIdSchema } from './chunk-W3UJRSYC.js';
3
+ import { JsonValueSchema } from './chunk-GNLND5O2.js';
4
4
  import { z } from 'zod';
5
5
 
6
6
  var FieldProjectionSchema = z.object({
@@ -493,6 +493,14 @@ var SoundEntrySchema = z.object({
493
493
  crossfadeDurationMs: z.number().optional()
494
494
  });
495
495
  var AudioManifestSchema = z.record(z.string(), SoundEntrySchema);
496
+ var AudioPlaySchema = z.object({
497
+ key: z.string(),
498
+ source: z.string(),
499
+ volume: z.number(),
500
+ loop: z.boolean(),
501
+ poolSize: z.number(),
502
+ fadeMs: z.number()
503
+ });
496
504
  var MANIFEST_CANVAS_AFFINITIES = ["isometric", "hex", "flat", "side", "3d", "none"];
497
505
  var ManifestCanvasAffinitySchema = z.enum(MANIFEST_CANVAS_AFFINITIES);
498
506
  var MANIFEST_SOURCE_CATALOGS = ["kenny", "kekec-assets", "iram-assets", "trait-wars-assets", "kflow-assets"];
@@ -925,6 +933,4 @@ var ResolvedPatternPropsSchema = z.custom(
925
933
  { message: "Expected a resolved pattern props object" }
926
934
  );
927
935
 
928
- export { ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, AudioManifestSchema, CAMERA_MODES, CameraModeSchema, CameraSchema, DEFAULT_UNIT_ANIMATION_ROWS, EFFECT_OPERATORS, EFFECT_OPERATOR_FAMILIES, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRoleSchema, EntityRowSchema, EntitySchema, FIELD_TYPES, FX_KINDS, FieldProjectionSchema, FieldSchema, FieldTagSchema, FieldTypeSchema, FieldValueSchema, FileValueSchema, FxKindSchema, MANIFEST_ASSET_LICENSES, MANIFEST_CANVAS_AFFINITIES, MANIFEST_ENTRY_KINDS, MANIFEST_SOURCE_CATALOGS, ManifestAssetLicenseSchema, ManifestCanvasAffinitySchema, ManifestEntryKindSchema, ManifestEntrySchema, ManifestFrameSpecSchema, ManifestSourceCatalogSchema, NUM_WIDTH_TAGS, OrbitalEntitySchema, PatternConfigSchema, PatternObjectSchema, RENDERED_SLOTS, RelationConfigSchema, ResolvedPatternPropsSchema, SEMANTIC_STRING_PATTERNS, SEMANTIC_STRING_TYPES, SERVER_REPORTED_EFFECTS, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, SPRITE_SHEET_LAYOUT, ScenePosSchema, SemanticAssetRefSchema, SheetProjectionSchema, SoundEntrySchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, SubTextureSchema, TYPE_POSITION_ONLY, TextureAtlasSchema, TilesheetSchema, TypeVariableSchema, UISlotSchema, UI_SLOTS, VISUAL_STYLES, VisualStyleSchema, callService, createAssetKey, defaultUnitAtlas, despawn, doEffects, emit, getDefaultAnimationsForRole, instancesForLocale, isClientResident, isEffect, isEmailValue, isFieldValue, isFileValue, isPersistBatchOperation, isPhoneValue, isRuntimeEntity, isSExprEffect, isSemanticStringType, isSemanticStringValue, isTypeVariable, isTypeVariableField, isUrlValue, isUuidValue, manifestToAssetCatalog, matchAssetQuery, navigate, navigateBack, parseAssetKey, parseAssetQuery, persist, persistenceModeAllowsOverrides, renderUI, set, spawn, storesRowsInBrowser, validateAssetAnimations };
929
- //# sourceMappingURL=chunk-7B4JRMRL.js.map
930
- //# sourceMappingURL=chunk-7B4JRMRL.js.map
936
+ export { ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, AudioManifestSchema, AudioPlaySchema, CAMERA_MODES, CameraModeSchema, CameraSchema, DEFAULT_UNIT_ANIMATION_ROWS, EFFECT_OPERATORS, EFFECT_OPERATOR_FAMILIES, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRoleSchema, EntityRowSchema, EntitySchema, FIELD_TYPES, FX_KINDS, FieldProjectionSchema, FieldSchema, FieldTagSchema, FieldTypeSchema, FieldValueSchema, FileValueSchema, FxKindSchema, MANIFEST_ASSET_LICENSES, MANIFEST_CANVAS_AFFINITIES, MANIFEST_ENTRY_KINDS, MANIFEST_SOURCE_CATALOGS, ManifestAssetLicenseSchema, ManifestCanvasAffinitySchema, ManifestEntryKindSchema, ManifestEntrySchema, ManifestFrameSpecSchema, ManifestSourceCatalogSchema, NUM_WIDTH_TAGS, OrbitalEntitySchema, PatternConfigSchema, PatternObjectSchema, RENDERED_SLOTS, RelationConfigSchema, ResolvedPatternPropsSchema, SEMANTIC_STRING_PATTERNS, SEMANTIC_STRING_TYPES, SERVER_REPORTED_EFFECTS, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, SPRITE_SHEET_LAYOUT, ScenePosSchema, SemanticAssetRefSchema, SheetProjectionSchema, SoundEntrySchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, SubTextureSchema, TYPE_POSITION_ONLY, TextureAtlasSchema, TilesheetSchema, TypeVariableSchema, UISlotSchema, UI_SLOTS, VISUAL_STYLES, VisualStyleSchema, callService, createAssetKey, defaultUnitAtlas, despawn, doEffects, emit, getDefaultAnimationsForRole, instancesForLocale, isClientResident, isEffect, isEmailValue, isFieldValue, isFileValue, isPersistBatchOperation, isPhoneValue, isRuntimeEntity, isSExprEffect, isSemanticStringType, isSemanticStringValue, isTypeVariable, isTypeVariableField, isUrlValue, isUuidValue, manifestToAssetCatalog, matchAssetQuery, navigate, navigateBack, parseAssetKey, parseAssetQuery, persist, persistenceModeAllowsOverrides, renderUI, set, spawn, storesRowsInBrowser, validateAssetAnimations };
@@ -1,7 +1,7 @@
1
- import { isEventResponse } from './chunk-VIHQKKTZ.js';
2
- import { EventPayloadSchema } from './chunk-347APWFM.js';
3
- import { EventIdSchema, TraitIdSchema, OrbitalIdSchema } from './chunk-VG7BRFUD.js';
4
- import { JsonValueSchema } from './chunk-7GHJU5WI.js';
1
+ import { isEventResponse } from './chunk-JCRN3F6T.js';
2
+ import { EventPayloadSchema } from './chunk-R3Y7ABF4.js';
3
+ import { EventIdSchema, TraitIdSchema, OrbitalIdSchema } from './chunk-W3UJRSYC.js';
4
+ import { JsonValueSchema } from './chunk-GNLND5O2.js';
5
5
  import { z } from 'zod';
6
6
 
7
7
  var BusEventSourceSchema = z.object({
@@ -95,5 +95,3 @@ var LiveBroadcastItemSchema = z.object({
95
95
  });
96
96
 
97
97
  export { BusEventSourceSchema, ClientEffectTupleSchema, ClientHostAskTupleSchema, ClientNavigateBackTupleSchema, ClientNavigateTupleSchema, ClientRenderUITupleSchema, DeliveryRecordSchema, DispatchLogSchema, EmittedEventSchema, EventStreamItemSchema, HostAskCompletionSchema, LIFECYCLE_EVENTS, LiveBroadcastItemSchema, MountSeedSchema, OrbitalRegisterResponseSchema, ServerTopologySchema, UNMOUNT_EVENT, normalizeEventKey, tickEventKey };
98
- //# sourceMappingURL=chunk-6H3UIZR2.js.map
99
- //# sourceMappingURL=chunk-6H3UIZR2.js.map