@almadar/shell-web 0.1.0 → 1.0.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 (118) hide show
  1. package/dist/{ArbitraryClassCompiler-Mzabq-UB.d.ts → ArbitraryClassCompiler-CO_iASBn.d.ts} +99 -4
  2. package/dist/AvlGlyph-EPJKFEO3.js +6 -0
  3. package/dist/AvlStateMachine-RKZIKNGC.js +9 -0
  4. package/dist/AvlTransitionDetail-63SD6GZF.js +11 -0
  5. package/dist/AvlTransitionExplainer-ZBTLOM3T.js +12 -0
  6. package/dist/BehaviorView-YS5G4GNB.js +11 -0
  7. package/dist/{Canvas3DHost-_Y-5uLM_.d.ts → Canvas3DHost-BkZQB5l2.d.ts} +1 -1
  8. package/dist/{EventBusProvider-CVwjkV_2.d.ts → EventBusProvider-BFFHfN4O.d.ts} +12 -0
  9. package/dist/FlowCanvas-AUMTWMNG.js +26 -0
  10. package/dist/{GameAudioProvider-Cm9BnvmP.d.ts → GameAudioProvider-ceM_n0ey.d.ts} +4 -7
  11. package/dist/KernelEngineContext-CcxGYtlr.d.ts +33 -0
  12. package/dist/LayersPanel-M2LHWUFF.js +6 -0
  13. package/dist/ModuleCard-QHDGK5XK.js +7 -0
  14. package/dist/OrbInspector-QCPEPUPH.js +26 -0
  15. package/dist/{Select-mDZIwNqN.d.ts → Select-B-iDdnvE.d.ts} +16 -30
  16. package/dist/ServerBridge-Bqsj-lOU.d.ts +124 -0
  17. package/dist/UISlotRenderer-C7WWOK43.js +26 -0
  18. package/dist/auth/browser/index.js +1 -0
  19. package/dist/auth/react/index.d.ts +8 -1
  20. package/dist/auth/react/index.js +40 -2
  21. package/dist/avl/index.d.ts +89 -79
  22. package/dist/avl/index.js +38 -38
  23. package/dist/{avl-3d-context-BIRKWpaL.d.ts → avl-3d-context-BycmO6tG.d.ts} +9 -12
  24. package/dist/{chunk-GKIFONTE.js → chunk-3S54FWRC.js} +2 -2
  25. package/dist/{chunk-DYEKAA4L.js → chunk-3VZ36ZKO.js} +240 -252
  26. package/dist/{chunk-PC7K4SK7.js → chunk-4T3P43NS.js} +18 -269
  27. package/dist/{chunk-MBQAMMSE.js → chunk-4YXBKHHM.js} +269 -658
  28. package/dist/{chunk-YDNJLLG6.js → chunk-57DC34LY.js} +19 -10
  29. package/dist/{chunk-SJGJJKBY.js → chunk-AB3X7QTE.js} +6 -3
  30. package/dist/{chunk-AILY3XPS.js → chunk-AE7VCQB6.js} +5 -6
  31. package/dist/{chunk-FAJDTHWC.js → chunk-AGXD77SL.js} +2 -2
  32. package/dist/chunk-AU7O65OX.js +66 -0
  33. package/dist/{chunk-L677XGY3.js → chunk-CPLN6NBQ.js} +5 -5
  34. package/dist/{chunk-DZ42OJQC.js → chunk-DZBQA2OW.js} +1 -1
  35. package/dist/{chunk-2PY54Z44.js → chunk-E6KA4J6N.js} +5 -5
  36. package/dist/{chunk-DJ433ET5.js → chunk-GFXCPUMX.js} +11 -4
  37. package/dist/{chunk-FP3WIKTC.js → chunk-HH5KSMH5.js} +9 -1
  38. package/dist/{chunk-U6QRZASX.js → chunk-ILQXJ2AR.js} +1 -1
  39. package/dist/{chunk-B4BU77LT.js → chunk-ILZ7ORX7.js} +1 -1
  40. package/dist/{chunk-SGM3FASH.js → chunk-K4MOPSEL.js} +14 -12
  41. package/dist/{chunk-GYTPOFVC.js → chunk-LHP2TK7O.js} +7402 -6970
  42. package/dist/{chunk-VFF5OO47.js → chunk-PCR37T3U.js} +15 -38
  43. package/dist/{chunk-R5O5AUPI.js → chunk-PRXQGGCO.js} +93 -86
  44. package/dist/{chunk-42FY4RYA.js → chunk-REXYVBUO.js} +2 -2
  45. package/dist/{chunk-DLZF4PVE.js → chunk-ROICKAU7.js} +3 -3
  46. package/dist/{chunk-KVQS4GXU.js → chunk-SP5CDJ6K.js} +18 -8
  47. package/dist/{chunk-P4LNHAFI.js → chunk-TUPZWTRE.js} +2 -2
  48. package/dist/chunk-TXAUOLWZ.js +490 -0
  49. package/dist/{chunk-EQAMU2ZC.js → chunk-UTDC2NEA.js} +1 -1
  50. package/dist/{chunk-73SRAB4P.js → chunk-UU57VNS2.js} +2 -2
  51. package/dist/{chunk-DFNZUYX4.js → chunk-UXLE3IPR.js} +70 -27
  52. package/dist/{chunk-L2DEKY4J.js → chunk-VO2TTLS5.js} +3 -6
  53. package/dist/{chunk-TESBIVUA.js → chunk-X3DMMX27.js} +2 -2
  54. package/dist/components/index.d.ts +331 -125
  55. package/dist/components/index.js +28 -28
  56. package/dist/context/index.d.ts +2 -3
  57. package/dist/context/index.js +4 -3
  58. package/dist/core.d.ts +93 -17
  59. package/dist/core.js +2 -1
  60. package/dist/design-classes/index.cjs +3 -1
  61. package/dist/design-classes/index.js +3 -1
  62. package/dist/hooks/index.d.ts +40 -5
  63. package/dist/hooks/index.js +5 -4
  64. package/dist/index.d.ts +36 -114
  65. package/dist/index.js +174 -34
  66. package/dist/kernel-client-TZKGHJRY.js +516 -0
  67. package/dist/kernel-wire-wNdAPfhJ.d.ts +88 -0
  68. package/dist/lib/index.d.ts +3 -3
  69. package/dist/lib/index.js +5 -4
  70. package/dist/{paintDispatch-ChW5mVuK.d.ts → paintDispatch-CuJLsr9Y.d.ts} +5 -15
  71. package/dist/{prism-AIWGN2X5.js → prism-X5YWKXO5.js} +5 -3
  72. package/dist/providers/index.d.ts +42 -27
  73. package/dist/providers/index.js +22 -23
  74. package/dist/renderer/index.d.ts +0 -2
  75. package/dist/renderer/index.js +1 -0
  76. package/dist/runtime/index.d.ts +52 -253
  77. package/dist/runtime/index.js +21 -24
  78. package/dist/ssr/index.cjs +2643 -535
  79. package/dist/ssr/index.d.cts +0 -23
  80. package/dist/ssr/index.d.ts +0 -23
  81. package/dist/ssr/index.js +2639 -535
  82. package/dist/storage/browser/index.js +1 -0
  83. package/dist/test-support.d.ts +15 -8
  84. package/dist/test-support.js +91 -24
  85. package/dist/three/index.d.ts +6 -6
  86. package/dist/three/index.js +49 -37
  87. package/dist/{verificationRegistry-CabxhfTv.d.ts → verificationRegistry-CVrcxG1s.d.ts} +3 -3
  88. package/package.json +13 -9
  89. package/src/core/lib/band-shapes.json +7 -0
  90. package/src/core/locales/ar.json +18 -5
  91. package/src/core/locales/en.json +18 -5
  92. package/src/core/locales/sl.json +18 -5
  93. package/tailwind-preset.cjs +30 -1
  94. package/dist/AvlGlyph-JKJOAH23.js +0 -6
  95. package/dist/AvlStateMachine-PI4YGREK.js +0 -8
  96. package/dist/AvlTransitionDetail-ZH7V24UG.js +0 -12
  97. package/dist/AvlTransitionExplainer-ZSRT7L6Y.js +0 -13
  98. package/dist/BehaviorValueFrame-6RUJXT4A.js +0 -29
  99. package/dist/BehaviorValueFrame-SSEMEBTG.css +0 -1756
  100. package/dist/BehaviorView-RFEE5J6E.js +0 -10
  101. package/dist/FlowCanvas-STDC4OWK.js +0 -27
  102. package/dist/KernelEngineContext-BOCQoFwk.d.ts +0 -43
  103. package/dist/LayersPanel-BBQ54IVG.js +0 -7
  104. package/dist/ModuleCard-3TT2X7IW.js +0 -7
  105. package/dist/OrbInspector-K6T6O7GI.js +0 -27
  106. package/dist/ServerBridge-Cm1On51b.d.ts +0 -233
  107. package/dist/TraitValueFrame-2PJGLLVI.js +0 -28
  108. package/dist/TraitValueFrame-4G3KOUBR.css +0 -1756
  109. package/dist/UISlotRenderer-JKFSX24W.js +0 -27
  110. package/dist/UserContext-DqWeZkUZ.d.ts +0 -100
  111. package/dist/chunk-2QOH2HWM.js +0 -95
  112. package/dist/chunk-6P3MWXYE.js +0 -440
  113. package/dist/chunk-FIW6WN23.js +0 -508
  114. package/dist/chunk-GAR5TQ5B.js +0 -199
  115. package/dist/chunk-ZO6MXAS3.js +0 -69
  116. package/dist/kernel-client-ZH4PSMCN.js +0 -367
  117. package/dist/kernel-wire-B4S8pnP3.d.ts +0 -65
  118. package/dist/useKeyboardRouter-Dsq553Ur.d.ts +0 -42
@@ -1,7 +1,9 @@
1
+ "use client";
1
2
  import '../../chunk-G7DCAZ22.js';
2
3
  import { createContext, useState, useEffect, useCallback, useMemo, useContext } from 'react';
3
4
  import { z } from 'zod';
4
5
  import { FieldValueSchema } from '@almadar/core';
6
+ import { HostAskError } from '@almadar/shell-runtime/kernel/host';
5
7
  import { jsx } from 'react/jsx-runtime';
6
8
 
7
9
  var AuthContext = createContext(void 0);
@@ -90,7 +92,7 @@ function useAuth() {
90
92
  }
91
93
  var PersonasSchema = z.object({
92
94
  success: z.literal(true),
93
- personas: z.array(z.object({ id: z.string() }).catchall(FieldValueSchema.optional()))
95
+ personas: z.array(z.object({ id: z.string() }).catchall(FieldValueSchema))
94
96
  });
95
97
  var SignInSchema = z.object({ success: z.literal(true), customToken: z.string() });
96
98
  function useDevPersonas(apiBase) {
@@ -115,5 +117,41 @@ function useDevPersonas(apiBase) {
115
117
  }, [apiBase, signInWithCustomToken]);
116
118
  return { personas, signInAs };
117
119
  }
120
+ var FIREBASE_FAILURE_KIND = {
121
+ "auth/popup-closed-by-user": "cancelled",
122
+ "auth/cancelled-popup-request": "cancelled",
123
+ "auth/user-cancelled": "cancelled",
124
+ "auth/wrong-password": "denied",
125
+ "auth/invalid-credential": "denied",
126
+ "auth/user-not-found": "denied",
127
+ "auth/user-disabled": "denied",
128
+ "auth/popup-blocked": "denied",
129
+ "auth/invalid-email": "invalid",
130
+ "auth/invalid-custom-token": "invalid",
131
+ "auth/invalid-action-code": "invalid",
132
+ "auth/expired-action-code": "invalid",
133
+ "auth/network-request-failed": "unavailable",
134
+ "auth/operation-not-allowed": "unavailable"
135
+ };
136
+ function userAnswer(user) {
137
+ return { uid: user.uid, ...user.email !== void 0 ? { email: user.email } : {}, ...user.name !== void 0 ? { displayName: user.name } : {} };
138
+ }
139
+ function hostSignIn(auth) {
140
+ return async (request) => {
141
+ try {
142
+ if (request.method === "google") return userAnswer(await auth.signInWithGoogle());
143
+ if (request.method === "email") return userAnswer(await auth.signInWithEmail(request.email, request.password));
144
+ if (request.method === "customToken") return userAnswer(await auth.signInWithCustomToken(request.token));
145
+ if ("continueUrl" in request) {
146
+ await auth.sendSignInLinkToEmail(request.email, request.continueUrl);
147
+ return { sent: true };
148
+ }
149
+ return userAnswer(await auth.signInWithEmailLink(request.email, request.link));
150
+ } catch (error) {
151
+ const code = typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" ? error.code : void 0;
152
+ throw new HostAskError(code !== void 0 ? FIREBASE_FAILURE_KIND[code] ?? "unavailable" : "unavailable", error instanceof Error ? error.message : String(error));
153
+ }
154
+ };
155
+ }
118
156
 
119
- export { AuthProvider, useAuth, useDevPersonas, useOptionalAuth };
157
+ export { AuthProvider, hostSignIn, useAuth, useDevPersonas, useOptionalAuth };
@@ -226,6 +226,74 @@ interface AvlBindingRefProps extends AvlBaseProps {
226
226
  }
227
227
  declare const AvlBindingRef: React__default.FC<AvlBindingRefProps>;
228
228
 
229
+ /**
230
+ * AVL ELK Layout
231
+ *
232
+ * Shared ELK-based layout engine for state machines. Extracted from
233
+ * AvlTraitScene so both the V2 scene renderer and the V3 BehaviorView
234
+ * can share the same layout computation.
235
+ */
236
+
237
+ interface LayoutNode {
238
+ id: string;
239
+ x: number;
240
+ y: number;
241
+ width: number;
242
+ height: number;
243
+ isInitial?: boolean;
244
+ isTerminal?: boolean;
245
+ role: StateRole;
246
+ transitionCount: number;
247
+ }
248
+ interface LayoutEdge {
249
+ id: string;
250
+ from: string;
251
+ to: string;
252
+ event: string;
253
+ effects: Array<{
254
+ type: string;
255
+ }>;
256
+ guard: boolean;
257
+ guardExpr?: string;
258
+ index: number;
259
+ labelX: number;
260
+ labelY: number;
261
+ labelW: number;
262
+ labelH: number;
263
+ points: Array<{
264
+ x: number;
265
+ y: number;
266
+ }>;
267
+ isSelf: boolean;
268
+ isBackward: boolean;
269
+ }
270
+ interface ElkLayout {
271
+ nodes: LayoutNode[];
272
+ edges: LayoutEdge[];
273
+ width: number;
274
+ height: number;
275
+ }
276
+ /** Measured sizes for a renderer that draws real nodes and label pills. */
277
+ interface TraitLayoutMetrics {
278
+ nodeSize: (stateName: string) => {
279
+ width: number;
280
+ height: number;
281
+ };
282
+ labelSize: (transition: TraitLevelData['transitions'][number]) => {
283
+ width: number;
284
+ height: number;
285
+ };
286
+ nodeSpacing: number;
287
+ layerSpacing: number;
288
+ orthogonal: boolean;
289
+ direction: 'ltr' | 'rtl';
290
+ }
291
+ declare function computeTraitLayout(data: TraitLevelData, metrics?: TraitLayoutMetrics): Promise<ElkLayout>;
292
+ declare function edgePath(points: Array<{
293
+ x: number;
294
+ y: number;
295
+ }>): string;
296
+
229
297
  /**
230
298
  * AvlCircuit — a Lisp S-expression drawn as a circuit and, given a trace,
231
299
  * shown executing: values ride the wires, `and`/`or` are switch chains that
@@ -271,8 +339,8 @@ interface AvlGlyphProps extends Omit<React__default.AriaAttributes, keyof A11yPr
271
339
  persistence?: EntityPersistence;
272
340
  /** Operator category tint. @default 'arithmetic' */
273
341
  namespace?: OperatorCategory;
274
- /** Symbol height. @default 'md' */
275
- size?: 'sm' | 'md' | 'lg';
342
+ /** Symbol height; `xs` sits inline with a line of text. @default 'md' */
343
+ size?: 'xs' | 'sm' | 'md' | 'lg';
276
344
  /** Show the caption under the symbol. @default true */
277
345
  showCaption?: boolean;
278
346
  className?: string;
@@ -513,74 +581,6 @@ declare const ZoomBandContext: React$1.Context<ZoomBand>;
513
581
  /** Hook to read the current zoom band. */
514
582
  declare function useZoomBand(): ZoomBand;
515
583
 
516
- /**
517
- * AVL ELK Layout
518
- *
519
- * Shared ELK-based layout engine for state machines. Extracted from
520
- * AvlTraitScene so both the V2 scene renderer and the V3 BehaviorView
521
- * can share the same layout computation.
522
- */
523
-
524
- interface LayoutNode {
525
- id: string;
526
- x: number;
527
- y: number;
528
- width: number;
529
- height: number;
530
- isInitial?: boolean;
531
- isTerminal?: boolean;
532
- role: StateRole;
533
- transitionCount: number;
534
- }
535
- interface LayoutEdge {
536
- id: string;
537
- from: string;
538
- to: string;
539
- event: string;
540
- effects: Array<{
541
- type: string;
542
- }>;
543
- guard: boolean;
544
- guardExpr?: string;
545
- index: number;
546
- labelX: number;
547
- labelY: number;
548
- labelW: number;
549
- labelH: number;
550
- points: Array<{
551
- x: number;
552
- y: number;
553
- }>;
554
- isSelf: boolean;
555
- isBackward: boolean;
556
- }
557
- interface ElkLayout {
558
- nodes: LayoutNode[];
559
- edges: LayoutEdge[];
560
- width: number;
561
- height: number;
562
- }
563
- /** Measured sizes for a renderer that draws real nodes and label pills. */
564
- interface TraitLayoutMetrics {
565
- nodeSize: (stateName: string) => {
566
- width: number;
567
- height: number;
568
- };
569
- labelSize: (transition: TraitLevelData['transitions'][number]) => {
570
- width: number;
571
- height: number;
572
- };
573
- nodeSpacing: number;
574
- layerSpacing: number;
575
- orthogonal: boolean;
576
- direction: 'ltr' | 'rtl';
577
- }
578
- declare function computeTraitLayout(data: TraitLevelData, metrics?: TraitLayoutMetrics): Promise<ElkLayout>;
579
- declare function edgePath(points: Array<{
580
- x: number;
581
- y: number;
582
- }>): string;
583
-
584
584
  /**
585
585
  * SystemNode — one orbital on the system map (cosmic L1): name, entity and
586
586
  * its size (traits · pages · fields). Hovering shows what the host renders
@@ -1076,6 +1076,16 @@ interface CardVerdict {
1076
1076
  interface CanvasVerify {
1077
1077
  verdictOf: (orbital: string, trait: string) => CardVerdict | undefined;
1078
1078
  playing: (orbital: string) => boolean;
1079
+ /** Subscribe to the states a run reaches; a card with a screen for the step flips to it. Returns the unsubscribe. */
1080
+ follow: (onStep: (step: CanvasStepReached) => void) => () => void;
1081
+ }
1082
+ /** A transition a verification run just took, on the trait of `orbital`. */
1083
+ interface CanvasStepReached {
1084
+ orbital: string;
1085
+ trait: string;
1086
+ event: string;
1087
+ from: string;
1088
+ to: string;
1079
1089
  }
1080
1090
  declare const CanvasVerifyContext: React__default.Context<CanvasVerify | null>;
1081
1091
  declare const OrbPreviewNode: React__default.NamedExoticComponent<NodeProps>;
@@ -1119,9 +1129,9 @@ declare function useInlineTextEdit({ schema, enabled, node }: InlineTextEditOpti
1119
1129
  * Pointer-sensor based so it works inside React Flow nodes (the native
1120
1130
  * HTML5 DnD path was swallowed by React Flow's pan/zoom handlers).
1121
1131
  *
1132
+ * The kind being dragged is React context (`useCanvasDragKind`), not a bus event.
1133
+ *
1122
1134
  * Event contract (defaults — overridable via `CanvasDndProvider.onDrop`):
1123
- * - On drag start: emits `UI:DRAG_START` { kind, data }
1124
- * - On drag end: emits `UI:DRAG_END` { kind, data }
1125
1135
  * - On 'pattern' drop: emits `UI:PATTERN_DROP` { patternType, containerNode, parentPath?, index? }
1126
1136
  * - On 'behavior' drop: emits `UI:BEHAVIOR_DROP` { behaviorName, containerNode }
1127
1137
  * - On 'pattern-instance' drop: emits `UI:PATTERN_MOVE` { fromPath, loc, toParentPath?, toIndex? } —
@@ -1158,16 +1168,14 @@ interface CanvasDragPayload {
1158
1168
  /**
1159
1169
  * Orbital/trait/transition context a drop will mutate.
1160
1170
  *
1161
- * Has an explicit `[key: string]: string | undefined` index signature so it
1162
- * structurally matches `EventPayload` — required because we pass the whole
1171
+ * A type alias (not an interface) so it is assignable to `EventPayload` — we pass the whole
1163
1172
  * object as a field on the `UI:PATTERN_DROP` payload.
1164
1173
  */
1165
- interface CanvasContainerNode {
1174
+ type CanvasContainerNode = {
1166
1175
  orbitalName?: string;
1167
1176
  traitName?: string;
1168
1177
  transitionEvent?: string;
1169
- [key: string]: string | undefined;
1170
- }
1178
+ };
1171
1179
  /** Drop-target metadata stored on each droppable's `data` field. */
1172
1180
  /** Where a drop lands: the card path + index, and the container element's own address when the card knows it. */
1173
1181
  interface CanvasResolvedDrop {
@@ -1666,6 +1674,8 @@ interface FlowCanvasProps {
1666
1674
  * @notification
1667
1675
  */
1668
1676
  onFlowSelect?: (unit: TraitFlowUnit) => void;
1677
+ /** Flow lens: emits UI:{flowSelectEvent} with the selected unit. */
1678
+ flowSelectEvent?: EventEmit<TraitFlowUnit>;
1669
1679
  /** Dependencies lens: emits UI:{openBehaviorEvent} with { name } to open a selected behavior's source. */
1670
1680
  openBehaviorEvent?: EventEmit<{
1671
1681
  name: string;
@@ -1808,7 +1818,7 @@ interface FlowCanvasProps {
1808
1818
  */
1809
1819
  externalInspector?: boolean;
1810
1820
  /** A host that verifies from the canvas: cards show verify controls and the trait's verdict,
1811
- * and follow `UI:CANVAS_SHOW_STATE` to the states a run reaches. */
1821
+ * and follow the states a run reaches (`verify.follow`). */
1812
1822
  verify?: CanvasVerify;
1813
1823
  }
1814
1824
  declare const FlowCanvas: React__default.FC<FlowCanvasProps>;
@@ -2235,4 +2245,4 @@ declare function decodeSelectedPattern(value: EventPayloadValue): SelectedPatter
2235
2245
  declare function decodeNodePlacements(value: EventPayloadValue): Record<string, CanvasNodePlacement>;
2236
2246
 
2237
2247
  export { AVL_GLYPH_KINDS, AVL_GRAPH_NODE_TYPES, AvlAnnotations, AvlApplication, AvlBackwardEdge, AvlBehaviorGlyph, AvlBinding, AvlBindingEdge, AvlBindingRef, AvlCircuit, AvlClickTarget, AvlClosedCircuit, AvlCosmicZoom, AvlEffect, AvlEffectChip, AvlEmitListen, AvlEntity, AvlEvent, AvlEventWireEdge, AvlExprTree, AvlField, AvlFieldType, AvlGlyph, AvlGraphCanvas, AvlGuard, AvlLiteral, AvlNodeData, AvlNote, AvlOperator, AvlOrbital, AvlOrbitalUnit, AvlOrbitalsCosmicZoom, AvlPage, AvlPageEdge, AvlPersistence, AvlSExpr, AvlSlotMap, AvlState, AvlSwimLane, AvlTrait, AvlTraitScene, AvlTransition, AvlTransitionDetail, AvlTransitionEdge, AvlTransitionExplainer, AvlTransitionLane, AvlTransitionScene, CANVAS_TOOLS, CONNECTION_COLORS, CanvasDndProvider, CanvasVerifyContext, DEPLOYMENT_ROW, DOMAIN_COLORS, DependencyColumnNode, DependencyNode, DetailView, EDITABLE, EFFECT_CATEGORY_COLORS, ElementEditAccessContext, EventFlowEdge, FIELD_TYPE_SHAPES, FlowCanvas, KnobField, KnobSettingRow, LIVE_STATE, LayersPanel, MiniStateMachine, OPERATOR_CATEGORY_COLORS, OrbInspector, OrbPreviewNode, STATE_COLORS, SystemBandNode, SystemMapContext, SystemNode, TraitLevelData, TraitTransitionInfo, TransitionLevelData, ZOOM_BAND_THRESHOLDS, ZoomBandContext, ZoomBreadcrumb, ZoomLegend, ZoomLevel, arcPath, armPosition, armsOf, canvasViewGraph, computeTraitLayout, computeZoomBand, curveControlPoint, decodeNodePlacements, decodePreviewNodeData, decodeSelectedPattern, dependencyReach, deploymentGraph, deriveEditFocusFromElement, dropBusEvent, edgePath, effectCategoryOf, firedTransition, flowNeighbors, getStateRole, gridPositions, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, parseLayerId, propAccessAt, radialPositions, ringPositions, schemaToDependencyGraph, schemaToLayerItems, schemaToOverviewGraph, stateMachinePlayback, stateOptionsOf, traitFlowGraph, transitionPlayback, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit, useZoomBand, zoomProgress };
2238
- export type { AvlApplicationProps, AvlBaseProps, AvlBehaviorGlyphProps, AvlBindingProps, AvlBindingRefProps, AvlCircuitProps, AvlClickTargetProps, AvlClosedCircuitProps, AvlClosedCircuitState, AvlClosedCircuitTransition, AvlCosmicZoomProps, AvlEffectChipProps, AvlEffectProps, AvlEmitListenProps, AvlEntityProps, AvlEventProps, AvlEventWireEdgeData, AvlExprTreeNode, AvlExprTreeProps, AvlFieldProps, AvlFieldTypeProps, AvlGlyphKind, AvlGlyphProps, AvlGraphCanvasProps, AvlGuardProps, AvlLiteralProps, AvlOperatorProps, AvlOrbitalProps, AvlOrbitalUnitPage, AvlOrbitalUnitProps, AvlOrbitalUnitTrait, AvlOrbitalsCosmicZoomProps, AvlPageProps, AvlPersistenceProps, AvlPlayStep, AvlSExprProps, AvlSlotMapProps, AvlSlotMapSlot, AvlStateMachinePlayback, AvlStateProps, AvlStepRequest, AvlSwimLaneProps, AvlTraitProps, AvlTraitSceneProps, AvlTransitionDetailProps, AvlTransitionEdgeData, AvlTransitionExplainerProps, AvlTransitionLaneProps, AvlTransitionPlayback, AvlTransitionProps, AvlTransitionSceneProps, BehaviorGlyphChild, BehaviorGlyphConnection, BehaviorLevel, CanvasContainerNode, CanvasDndProviderProps, CanvasDragKind, CanvasDragPayload, CanvasDropEvent, CanvasDropTarget, CanvasFocusChange, CanvasResolvedDrop, CanvasScope, CanvasStateGroup, CanvasStateOption, CanvasStateOptions, CanvasStateView, CanvasTool, CanvasVerify, CanvasViewOptions, CardVerdict, EffectCategory, ElementEditAccess, ElementEditAccessResolver, ElementKnob, ElementPropAccess, ElementSettings, ElkLayout, EventEdgeData, FieldTypeShape, FlowCanvasProps, GlyphSize, InlineTextEditOptions, KnobFieldProps, KnobSettingRowProps, LayerIdParts, LayeredColumn, LayeredColumnId, LayeredEdge, LayeredGraphInput, LayeredRow, LayeredUnit, LayersPanelProps, LayoutEdge, LayoutNode, OrbInspectorProps, PatternEventSource, PlayedStep, PreviewNodeData, RenderUIEntry, SelectedPattern, StateRole, SystemDependencies, SystemMapContextValue, TraitFlowEdge, TraitFlowUnit, TraitView, UseCanvasDraggableArgs, UseCanvasDraggableResult, UseCanvasDroppableArgs, UseCanvasDroppableResult, ViewLevel, ZoomBand, ZoomBreadcrumbProps, ZoomLegendProps };
2248
+ export type { AvlApplicationProps, AvlBaseProps, AvlBehaviorGlyphProps, AvlBindingProps, AvlBindingRefProps, AvlCircuitProps, AvlClickTargetProps, AvlClosedCircuitProps, AvlClosedCircuitState, AvlClosedCircuitTransition, AvlCosmicZoomProps, AvlEffectChipProps, AvlEffectProps, AvlEmitListenProps, AvlEntityProps, AvlEventProps, AvlEventWireEdgeData, AvlExprTreeNode, AvlExprTreeProps, AvlFieldProps, AvlFieldTypeProps, AvlGlyphKind, AvlGlyphProps, AvlGraphCanvasProps, AvlGuardProps, AvlLiteralProps, AvlOperatorProps, AvlOrbitalProps, AvlOrbitalUnitPage, AvlOrbitalUnitProps, AvlOrbitalUnitTrait, AvlOrbitalsCosmicZoomProps, AvlPageProps, AvlPersistenceProps, AvlPlayStep, AvlSExprProps, AvlSlotMapProps, AvlSlotMapSlot, AvlStateMachinePlayback, AvlStateProps, AvlStepRequest, AvlSwimLaneProps, AvlTraitProps, AvlTraitSceneProps, AvlTransitionDetailProps, AvlTransitionEdgeData, AvlTransitionExplainerProps, AvlTransitionLaneProps, AvlTransitionPlayback, AvlTransitionProps, AvlTransitionSceneProps, BehaviorGlyphChild, BehaviorGlyphConnection, BehaviorLevel, CanvasContainerNode, CanvasDndProviderProps, CanvasDragKind, CanvasDragPayload, CanvasDropEvent, CanvasDropTarget, CanvasFocusChange, CanvasResolvedDrop, CanvasScope, CanvasStateGroup, CanvasStateOption, CanvasStateOptions, CanvasStateView, CanvasStepReached, CanvasTool, CanvasVerify, CanvasViewOptions, CardVerdict, EffectCategory, ElementEditAccess, ElementEditAccessResolver, ElementKnob, ElementPropAccess, ElementSettings, ElkLayout, EventEdgeData, FieldTypeShape, FlowCanvasProps, GlyphSize, InlineTextEditOptions, KnobFieldProps, KnobSettingRowProps, LayerIdParts, LayeredColumn, LayeredColumnId, LayeredEdge, LayeredGraphInput, LayeredRow, LayeredUnit, LayersPanelProps, LayoutEdge, LayoutNode, OrbInspectorProps, PatternEventSource, PlayedStep, PreviewNodeData, RenderUIEntry, SelectedPattern, StateRole, SystemDependencies, SystemMapContextValue, TraitFlowEdge, TraitFlowUnit, TraitView, UseCanvasDraggableArgs, UseCanvasDraggableResult, UseCanvasDroppableArgs, UseCanvasDroppableResult, ViewLevel, ZoomBand, ZoomBreadcrumbProps, ZoomLegendProps };
package/dist/avl/index.js CHANGED
@@ -1,44 +1,44 @@
1
- export { AvlTransitionExplainer } from '../chunk-TESBIVUA.js';
2
- export { LayersPanel, parseLayerId, schemaToLayerItems } from '../chunk-GKIFONTE.js';
3
- import { AvlTransitionDetail } from '../chunk-SGM3FASH.js';
4
- export { AvlCircuit, AvlTransitionDetail } from '../chunk-SGM3FASH.js';
5
- import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-DJ433ET5.js';
6
- export { BehaviorView } from '../chunk-DLZF4PVE.js';
7
- export { MiniStateMachine, ModuleCard } from '../chunk-2PY54Z44.js';
8
- import '../chunk-U6QRZASX.js';
1
+ "use client";
2
+ export { AvlTransitionExplainer } from '../chunk-X3DMMX27.js';
3
+ export { LayersPanel, parseLayerId, schemaToLayerItems } from '../chunk-3S54FWRC.js';
4
+ import { AvlTransitionDetail } from '../chunk-K4MOPSEL.js';
5
+ export { AvlCircuit, AvlTransitionDetail } from '../chunk-K4MOPSEL.js';
6
+ import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-GFXCPUMX.js';
7
+ export { BehaviorView } from '../chunk-ROICKAU7.js';
8
+ export { MiniStateMachine, ModuleCard } from '../chunk-E6KA4J6N.js';
9
+ import '../chunk-ILQXJ2AR.js';
9
10
  import '../chunk-EOWMARUB.js';
10
- import { FlowCanvas, layeredGraph } from '../chunk-GYTPOFVC.js';
11
- export { AVL_GRAPH_NODE_TYPES, AvlGraphCanvas, CANVAS_TOOLS, CanvasDndProvider, CanvasVerifyContext, DependencyColumnNode, DependencyNode, EDITABLE, ElementEditAccessContext, EventFlowEdge, FlowCanvas, KnobField, KnobSettingRow, LIVE_STATE, OrbInspector, OrbPreviewNode, SystemBandNode, SystemMapContext, SystemNode, canvasViewGraph, dependencyReach, deriveEditFocusFromElement, dropBusEvent, flowNeighbors, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, propAccessAt, schemaToDependencyGraph, schemaToOverviewGraph, stateOptionsOf, traitFlowGraph, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit } from '../chunk-GYTPOFVC.js';
12
- import '../chunk-YDNJLLG6.js';
13
- export { AvlStateMachine } from '../chunk-KVQS4GXU.js';
14
- import { AvlOrbital, AvlTrait, AvlEvent, AvlGuard } from '../chunk-L677XGY3.js';
15
- export { AVL_GLYPH_KINDS, AvlApplication, AvlBinding, AvlBindingRef, AvlEvent, AvlField, AvlGlyph, AvlGuard, AvlLiteral, AvlOperator, AvlOrbital, AvlPersistence, AvlSExpr, AvlTrait, AvlTransition } from '../chunk-L677XGY3.js';
16
- import { AvlEntity, AvlPage, AvlState } from '../chunk-FP3WIKTC.js';
17
- export { AvlEntity, AvlFieldType, AvlPage, AvlState, FIELD_TYPE_SHAPES } from '../chunk-FP3WIKTC.js';
18
- import { transitionPlayback } from '../chunk-42FY4RYA.js';
19
- export { armPosition, armsOf, firedTransition, stateMachinePlayback, transitionPlayback } from '../chunk-42FY4RYA.js';
20
- import '../chunk-FAJDTHWC.js';
21
- import { computeTraitLayout, edgePath } from '../chunk-GAR5TQ5B.js';
22
- export { computeTraitLayout, edgePath } from '../chunk-GAR5TQ5B.js';
23
- export { AvlEffectChip } from '../chunk-SJGJJKBY.js';
24
- import { AvlEffect } from '../chunk-DZ42OJQC.js';
25
- export { AvlEffect } from '../chunk-DZ42OJQC.js';
26
- import '../chunk-P4LNHAFI.js';
11
+ import { FlowCanvas, layeredGraph } from '../chunk-LHP2TK7O.js';
12
+ export { AVL_GRAPH_NODE_TYPES, AvlGraphCanvas, CANVAS_TOOLS, CanvasDndProvider, CanvasVerifyContext, DependencyColumnNode, DependencyNode, EDITABLE, ElementEditAccessContext, EventFlowEdge, FlowCanvas, KnobField, KnobSettingRow, LIVE_STATE, OrbInspector, OrbPreviewNode, SystemBandNode, SystemMapContext, SystemNode, canvasViewGraph, dependencyReach, deriveEditFocusFromElement, dropBusEvent, flowNeighbors, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, propAccessAt, schemaToDependencyGraph, schemaToOverviewGraph, stateOptionsOf, traitFlowGraph, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit } from '../chunk-LHP2TK7O.js';
13
+ import '../chunk-57DC34LY.js';
14
+ export { AvlStateMachine } from '../chunk-SP5CDJ6K.js';
15
+ import { AvlOrbital, AvlTrait, AvlEvent, AvlGuard } from '../chunk-CPLN6NBQ.js';
16
+ export { AVL_GLYPH_KINDS, AvlApplication, AvlBinding, AvlBindingRef, AvlEvent, AvlField, AvlGlyph, AvlGuard, AvlLiteral, AvlOperator, AvlOrbital, AvlPersistence, AvlSExpr, AvlTrait, AvlTransition } from '../chunk-CPLN6NBQ.js';
17
+ import { AvlEntity, AvlPage, AvlState } from '../chunk-HH5KSMH5.js';
18
+ export { AvlEntity, AvlFieldType, AvlPage, AvlState, FIELD_TYPE_SHAPES } from '../chunk-HH5KSMH5.js';
19
+ import { transitionPlayback } from '../chunk-REXYVBUO.js';
20
+ export { armPosition, armsOf, firedTransition, stateMachinePlayback, transitionPlayback } from '../chunk-REXYVBUO.js';
21
+ import '../chunk-AGXD77SL.js';
22
+ import { computeTraitLayout, edgePath } from '../chunk-TXAUOLWZ.js';
23
+ export { computeTraitLayout, edgePath } from '../chunk-TXAUOLWZ.js';
24
+ export { AvlEffectChip } from '../chunk-AB3X7QTE.js';
25
+ import { AvlEffect } from '../chunk-DZBQA2OW.js';
26
+ export { AvlEffect } from '../chunk-DZBQA2OW.js';
27
+ import '../chunk-TUPZWTRE.js';
27
28
  import '../chunk-TZZBINQY.js';
28
- import '../chunk-PC7K4SK7.js';
29
- import { parseApplicationLevel, parseOrbitalLevel, parseTraitLevel } from '../chunk-VFF5OO47.js';
30
- export { parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-VFF5OO47.js';
31
- import { avlSeries, CONNECTION_COLORS, getStateRole, avlTint, STATE_COLORS, effectCategoryOf, EFFECT_CATEGORY_COLORS } from '../chunk-DFNZUYX4.js';
32
- export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole } from '../chunk-DFNZUYX4.js';
33
- import '../chunk-B4BU77LT.js';
34
- import '../chunk-6P3MWXYE.js';
35
- import '../chunk-DYEKAA4L.js';
36
- import '../chunk-R5O5AUPI.js';
37
- import '../chunk-L2DEKY4J.js';
38
- import '../chunk-AILY3XPS.js';
29
+ import '../chunk-4T3P43NS.js';
30
+ import { parseApplicationLevel, parseOrbitalLevel, parseTraitLevel } from '../chunk-PCR37T3U.js';
31
+ export { parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-PCR37T3U.js';
32
+ import { avlSeries, CONNECTION_COLORS, getStateRole, avlTint, STATE_COLORS, effectCategoryOf, EFFECT_CATEGORY_COLORS } from '../chunk-UXLE3IPR.js';
33
+ export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole } from '../chunk-UXLE3IPR.js';
34
+ import '../chunk-ILZ7ORX7.js';
35
+ import '../chunk-3VZ36ZKO.js';
36
+ import '../chunk-PRXQGGCO.js';
37
+ import '../chunk-VO2TTLS5.js';
38
+ import '../chunk-AE7VCQB6.js';
39
39
  import '../chunk-3BBUBJFF.js';
40
40
  import '../chunk-YHMRX6YA.js';
41
- import { useTranslate, cn, Box, HStack, Typography, pressableProps, Button, RangeSlider } from '../chunk-MBQAMMSE.js';
41
+ import { useTranslate, cn, Box, HStack, Typography, pressableProps, Button, RangeSlider } from '../chunk-4YXBKHHM.js';
42
42
  import '../chunk-A2LR6VQQ.js';
43
43
  import '../chunk-P4ZFUQFF.js';
44
44
  import '../chunk-G7DCAZ22.js';
@@ -2537,7 +2537,7 @@ function isList(value) {
2537
2537
  return Array.isArray(value);
2538
2538
  }
2539
2539
  function record(value, what) {
2540
- if (value === null || value === void 0 || typeof value !== "object" || value instanceof Date || isList(value)) {
2540
+ if (value === null || value === void 0 || typeof value !== "object" || isList(value)) {
2541
2541
  fail(`${what} must be an object`);
2542
2542
  }
2543
2543
  return value;
@@ -61,12 +61,14 @@ declare const AVL_3D_COLORS: {
61
61
  readonly "op:std-time": string;
62
62
  readonly "op:std-format": string;
63
63
  readonly "op:std-i18n": string;
64
- readonly "op:std-async": string;
65
- readonly "op:std-nn": string;
66
- readonly "op:std-tensor": string;
67
- readonly "op:std-train": string;
68
64
  readonly "op:std-prob": string;
69
65
  readonly "op:std-os": string;
66
+ readonly "op:std-kv": string;
67
+ readonly "op:std-mem": string;
68
+ readonly "op:std-mem-read": string;
69
+ readonly "op:std-kernel": string;
70
+ readonly "op:std-kernel-read": string;
71
+ readonly "op:std-ffi": string;
70
72
  readonly "op:std-browser": string;
71
73
  readonly "op:std-composition": string;
72
74
  readonly "op:std-vec": string;
@@ -76,21 +78,16 @@ declare const AVL_3D_COLORS: {
76
78
  readonly "op:std-ease": string;
77
79
  readonly "op:std-noise": string;
78
80
  readonly "op:std-path": string;
79
- readonly "op:ml-arch": string;
80
- readonly "op:ml-effect": string;
81
- readonly "op:ml-tensor": string;
82
- readonly "op:ml-graph": string;
83
- readonly "op:ml-contract": string;
84
- readonly "op:ml-data": string;
85
81
  readonly "op:std-llm": string;
86
82
  readonly "op:std-workspace": string;
87
83
  readonly "op:std-session": string;
88
- readonly "op:std-memory": string;
89
84
  readonly "op:std-trace": string;
85
+ readonly "op:std-audio": string;
86
+ readonly "op:std-auth": string;
90
87
  readonly "op:std-behavior": string;
91
88
  readonly "op:std-behavior-value": string;
92
89
  readonly "op:std-program": string;
93
- readonly "op:std-integration": string;
90
+ readonly "op:std-codec": string;
94
91
  readonly orbitalSphere: "var(--color-card)";
95
92
  readonly orbitalRim: "var(--color-info)";
96
93
  readonly entityCore: "var(--color-warning)";
@@ -1,5 +1,5 @@
1
- import { FileTree } from './chunk-YDNJLLG6.js';
2
- import { parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, traitTransitionRenderUi } from './chunk-VFF5OO47.js';
1
+ import { FileTree } from './chunk-57DC34LY.js';
2
+ import { parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, traitTransitionRenderUi } from './chunk-PCR37T3U.js';
3
3
  import { useMemo } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5