@almadar/shell-web 0.1.0 → 1.1.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 (131) hide show
  1. package/dist/{ArbitraryClassCompiler-Mzabq-UB.d.ts → ArbitraryClassCompiler-CO_iASBn.d.ts} +99 -4
  2. package/dist/AvlGlyph-PIXU6QH5.js +5 -0
  3. package/dist/AvlStateMachine-CKGMECMG.js +8 -0
  4. package/dist/AvlTransitionDetail-QZX6G5KJ.js +10 -0
  5. package/dist/AvlTransitionExplainer-26WLEIC6.js +11 -0
  6. package/dist/BehaviorView-JLZ4PKWY.js +10 -0
  7. package/dist/{EventBusProvider-CVwjkV_2.d.ts → EventBusProvider-BFFHfN4O.d.ts} +12 -0
  8. package/dist/{FileTree-BCFnBEuQ.d.ts → FileTree-B3GDAjaQ.d.ts} +131 -4
  9. package/dist/FlowCanvas-RPII4V24.js +23 -0
  10. package/dist/{BehaviorValueFrame-SSEMEBTG.css → FlowCanvas-VWUPMBKB.css} +189 -191
  11. package/dist/{GameAudioProvider-Cm9BnvmP.d.ts → GameAudioProvider-D7wo5ryN.d.ts} +5 -8
  12. package/dist/KernelEngineContext-CPeWQMAz.d.ts +46 -0
  13. package/dist/LayersPanel-M2LHWUFF.js +6 -0
  14. package/dist/ModuleCard-NJD6JQGD.js +6 -0
  15. package/dist/OrbInspector-OWWKPOBF.js +23 -0
  16. package/dist/{TraitValueFrame-4G3KOUBR.css → OrbInspector-VMTMZHNQ.css} +189 -191
  17. package/dist/{Select-mDZIwNqN.d.ts → Select-C2Uq6t86.d.ts} +17 -31
  18. package/dist/ServerBridge-Bqsj-lOU.d.ts +124 -0
  19. package/dist/{FlowCanvas-3JRMNJLV.css → UISlotRenderer-BIS6KT7T.css} +189 -191
  20. package/dist/UISlotRenderer-PY7FIJXN.js +23 -0
  21. package/dist/auth/browser/index.js +1 -0
  22. package/dist/auth/react/index.d.ts +8 -1
  23. package/dist/auth/react/index.js +40 -2
  24. package/dist/avl/index.css +189 -191
  25. package/dist/avl/index.d.ts +107 -85
  26. package/dist/avl/index.js +170 -39
  27. package/dist/{chunk-P4LNHAFI.js → chunk-2WGR4TDJ.js} +465 -36
  28. package/dist/{chunk-GKIFONTE.js → chunk-3S54FWRC.js} +2 -2
  29. package/dist/{chunk-KVQS4GXU.js → chunk-4YJ53G7S.js} +18 -8
  30. package/dist/{chunk-MBQAMMSE.js → chunk-4YXBKHHM.js} +269 -658
  31. package/dist/{chunk-YDNJLLG6.js → chunk-57DC34LY.js} +19 -10
  32. package/dist/{chunk-FP3WIKTC.js → chunk-7N6ZPHQ5.js} +9 -1
  33. package/dist/{chunk-AILY3XPS.js → chunk-AE7VCQB6.js} +5 -6
  34. package/dist/{chunk-L677XGY3.js → chunk-AGVSO4WY.js} +4 -5
  35. package/dist/{chunk-FAJDTHWC.js → chunk-AGXD77SL.js} +2 -2
  36. package/dist/chunk-AU7O65OX.js +66 -0
  37. package/dist/{chunk-DFNZUYX4.js → chunk-FAKU5F62.js} +273 -29
  38. package/dist/{chunk-U6QRZASX.js → chunk-ILQXJ2AR.js} +1 -1
  39. package/dist/chunk-M74BCDBQ.js +490 -0
  40. package/dist/{chunk-GYTPOFVC.js → chunk-MS4K3K2R.js} +12095 -13329
  41. package/dist/{chunk-SGM3FASH.js → chunk-OWNG4JZI.js} +13 -12
  42. package/dist/{chunk-VFF5OO47.js → chunk-PCR37T3U.js} +15 -38
  43. package/dist/{chunk-SJGJJKBY.js → chunk-PRLHKBXG.js} +5 -3
  44. package/dist/{chunk-R5O5AUPI.js → chunk-PRXQGGCO.js} +93 -86
  45. package/dist/{chunk-42FY4RYA.js → chunk-REXYVBUO.js} +2 -2
  46. package/dist/{chunk-EQAMU2ZC.js → chunk-UTDC2NEA.js} +1 -1
  47. package/dist/{chunk-73SRAB4P.js → chunk-UU57VNS2.js} +2 -2
  48. package/dist/{chunk-TESBIVUA.js → chunk-VHC2M26B.js} +2 -2
  49. package/dist/{chunk-L2DEKY4J.js → chunk-VO2TTLS5.js} +3 -6
  50. package/dist/{chunk-2PY54Z44.js → chunk-VUIACGDU.js} +4 -5
  51. package/dist/{chunk-DLZF4PVE.js → chunk-YYIHRIDH.js} +3 -3
  52. package/dist/{chunk-DYEKAA4L.js → chunk-ZDRDJKYB.js} +243 -252
  53. package/dist/components/index.css +189 -191
  54. package/dist/components/index.d.ts +739 -289
  55. package/dist/components/index.js +25 -28
  56. package/dist/context/index.d.ts +2 -3
  57. package/dist/context/index.js +4 -3
  58. package/dist/core.d.ts +95 -19
  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/{fx-CmQjnHmT.d.ts → fx-Br8zjvu9.d.ts} +6 -6
  63. package/dist/hooks/index.d.ts +40 -5
  64. package/dist/hooks/index.js +5 -4
  65. package/dist/index.d.ts +40 -114
  66. package/dist/index.js +174 -34
  67. package/dist/kernel-client-JW6OH5FX.js +537 -0
  68. package/dist/kernel-wire-DGAySGhX.d.ts +95 -0
  69. package/dist/lib/index.d.ts +3 -4
  70. package/dist/lib/index.js +4 -4
  71. package/dist/{prism-AIWGN2X5.js → prism-X5YWKXO5.js} +5 -3
  72. package/dist/providers/index.css +189 -191
  73. package/dist/providers/index.d.ts +41 -28
  74. package/dist/providers/index.js +19 -24
  75. package/dist/renderer/index.d.ts +0 -2
  76. package/dist/renderer/index.js +1 -0
  77. package/dist/runtime/index.css +189 -191
  78. package/dist/runtime/index.d.ts +57 -253
  79. package/dist/runtime/index.js +18 -24
  80. package/dist/ssr/index.cjs +2643 -535
  81. package/dist/ssr/index.d.cts +0 -23
  82. package/dist/ssr/index.d.ts +0 -23
  83. package/dist/ssr/index.js +2639 -535
  84. package/dist/storage/browser/index.js +1 -0
  85. package/dist/test-support.d.ts +15 -8
  86. package/dist/test-support.js +91 -24
  87. package/dist/{paintDispatch-ChW5mVuK.d.ts → verificationRegistry-oopV1J1n.d.ts} +132 -30
  88. package/package.json +14 -38
  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/BehaviorView-RFEE5J6E.js +0 -10
  100. package/dist/Canvas3DHost-_Y-5uLM_.d.ts +0 -552
  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/OrbInspector-MHLJ6OEE.css +0 -1756
  107. package/dist/ServerBridge-Cm1On51b.d.ts +0 -233
  108. package/dist/TraitValueFrame-2PJGLLVI.js +0 -28
  109. package/dist/UISlotRenderer-JKFSX24W.js +0 -27
  110. package/dist/UISlotRenderer-KVFO6J7R.css +0 -1756
  111. package/dist/UserContext-DqWeZkUZ.d.ts +0 -100
  112. package/dist/avl-3d-context-BIRKWpaL.d.ts +0 -204
  113. package/dist/avl-schema-parser-CtJxJ9KU.d.ts +0 -132
  114. package/dist/avl-zoom-state-CKMVuBFg.d.ts +0 -17
  115. package/dist/chunk-2QOH2HWM.js +0 -95
  116. package/dist/chunk-6P3MWXYE.js +0 -440
  117. package/dist/chunk-B4BU77LT.js +0 -432
  118. package/dist/chunk-DJ433ET5.js +0 -1327
  119. package/dist/chunk-DZ42OJQC.js +0 -176
  120. package/dist/chunk-EOWMARUB.js +0 -16
  121. package/dist/chunk-FIW6WN23.js +0 -508
  122. package/dist/chunk-GAR5TQ5B.js +0 -199
  123. package/dist/chunk-PC7K4SK7.js +0 -1384
  124. package/dist/chunk-ZO6MXAS3.js +0 -69
  125. package/dist/kernel-client-ZH4PSMCN.js +0 -367
  126. package/dist/kernel-wire-B4S8pnP3.d.ts +0 -65
  127. package/dist/three/index.css +0 -503
  128. package/dist/three/index.d.ts +0 -1185
  129. package/dist/three/index.js +0 -3896
  130. package/dist/useKeyboardRouter-Dsq553Ur.d.ts +0 -42
  131. package/dist/verificationRegistry-CabxhfTv.d.ts +0 -122
@@ -1,42 +0,0 @@
1
- interface KeyCaptureEntry {
2
- mode: string;
3
- keys: ReadonlySet<string>;
4
- }
5
- /** keyed by editorId, or the literal 'shell' for chrome-level bindings */
6
- type KeyCaptureTable = Readonly<Record<string, KeyCaptureEntry>>;
7
- interface EditorKeyEvent {
8
- editorId: string;
9
- key: string;
10
- code: string;
11
- ctrl: boolean;
12
- alt: boolean;
13
- shift: boolean;
14
- meta: boolean;
15
- repeat: boolean;
16
- }
17
- /**
18
- * Merges several plugins' capture tables into one, per target: keys UNION
19
- * across every table that declares the target; `mode` is `'any'` if any
20
- * input says so, else the shared mode when every input agrees, else the
21
- * distinct modes sorted and `|`-joined. A target present in only one table
22
- * passes through unchanged. Pure, deterministic — no heuristics.
23
- */
24
- declare function mergeCaptureTables(tables: readonly KeyCaptureTable[]): KeyCaptureTable;
25
- /** `"Control+Shift+P"`-style spelling of a keydown: modifiers in the fixed order Control, Alt, Shift, Meta, then `event.key`. */
26
- declare function keyChord(event: Pick<KeyboardEvent, 'key' | 'ctrlKey' | 'altKey' | 'shiftKey' | 'metaKey'>): string;
27
- interface UseKeyboardRouterOptions {
28
- /** declared data; caller owns it; re-read on every keydown (kept in a ref) */
29
- captureTable: KeyCaptureTable;
30
- /** default 'EDITOR_FOCUS' -> subscribes UI:EDITOR_FOCUS {editorId} */
31
- editorFocusEvent?: string;
32
- /** default 'EDITOR_BLUR' */
33
- editorBlurEvent?: string;
34
- /** default 'KEY' -> emits UI:KEY */
35
- keyEvent?: string;
36
- /** default true */
37
- enabled?: boolean;
38
- }
39
- declare function useKeyboardRouter(options: UseKeyboardRouterOptions): void;
40
-
41
- export { keyChord as k, mergeCaptureTables as m, useKeyboardRouter as u };
42
- export type { EditorKeyEvent as E, KeyCaptureTable as K, UseKeyboardRouterOptions as U, KeyCaptureEntry as a };
@@ -1,122 +0,0 @@
1
- import { D as DrawableNode } from './paintDispatch-ChW5mVuK.js';
2
- import { OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, OrbitalEventRequest, OrbitalEventResponse, ServerResponseTrace, EffectTrace, CheckStatus, ServerEffectResult, AssetLoadStatus } from '@almadar/core';
3
- import { EventTransport } from '@almadar/shell-runtime/client/EventTransport';
4
- import './verification-C5pTeMJv.js';
5
-
6
- /**
7
- * Verification Registry - Tracks runtime verification checks and transition traces
8
- *
9
- * Provides:
10
- * 1. A checklist of pass/fail checks (INIT has fetch, bridge connected, etc.)
11
- * 2. A full transition timeline with effect execution results
12
- * 3. ServerBridge health snapshot
13
- * 4. window.__orbitalVerification for Playwright/automation
14
- *
15
- * @packageDocumentation
16
- */
17
-
18
- type ChangeListener = () => void;
19
- /**
20
- * Per-trait snapshot getter. Each generated trait logic hook (or
21
- * `useTraitStateMachine` trait binding) registers one on mount so the
22
- * verifier can read the live reducer state for that trait.
23
- */
24
- type TraitSnapshotGetter = () => TraitStateSnapshot;
25
- declare function registerCheck(id: string, label: string, status?: CheckStatus, details?: string): void;
26
- declare function updateCheck(id: string, status: CheckStatus, details?: string): void;
27
- declare function getAllChecks(): VerificationCheck[];
28
- declare function recordTransition(trace: Omit<TransitionTrace, "id">): void;
29
- declare function getTransitions(): TransitionTrace[];
30
- declare function getTransitionsForTrait(traitName: string): TransitionTrace[];
31
- /**
32
- * Record a server response as a timeline entry.
33
- * Creates a synthetic transition entry with type "server-response" to show
34
- * what the server returned (clientEffects, data counts, emitted events).
35
- *
36
- * `effectResults` — the server's persist/set/call-service outcomes, already
37
- * mapped to `EffectTrace` by the caller — populate `entry.effects` so a
38
- * denied or failed persist is visible on this synthetic entry too. Before
39
- * this it was always `[]`: the ONLY entry the driver's per-event
40
- * `server:<orbital>` lookup (`default-snapshot.ts`'s `lastEffectResultsFor`)
41
- * can find carried nothing.
42
- */
43
- declare function recordServerResponse(orbitalName: string, event: string, response: Omit<ServerResponseTrace, "orbitalName" | "timestamp"> & {
44
- effectResults?: EffectTrace[];
45
- }): void;
46
- /** A server response's `effectResults` as timeline traces, carrying each persist's real outcome (entity, action, resulting id, denied). */
47
- declare function serverEffectTraces(results: readonly ServerEffectResult[] | undefined): EffectTrace[];
48
- /** Record one answered server leg on the timeline as a `server:<orbital>` trace. */
49
- declare function recordOrbitalResponse(orbitalName: string, request: OrbitalEventRequest, response: OrbitalEventResponse): void;
50
- /** `transport` with every answered post recorded on the verification timeline; the one place the circuit client's server responses are captured. */
51
- declare function recordingTransport(transport: EventTransport): EventTransport;
52
- declare function updateBridgeHealth(health: BridgeHealth): void;
53
- declare function getBridgeHealth(): BridgeHealth | null;
54
- declare function getSummary(): VerificationSummary;
55
- declare function getSnapshot(): VerificationSnapshot;
56
- /**
57
- * Per-trait snapshot for the verifier.
58
- *
59
- * Iterates every registered trait getter and collects the live reducer
60
- * state. Empty until at least one trait hook calls `registerTraitSnapshot`.
61
- * A getter that throws is logged and skipped — one broken trait must not
62
- * poison the rest of the snapshot.
63
- */
64
- declare function getTraitSnapshots(): TraitStateSnapshot[];
65
- declare function subscribeToVerification(listener: ChangeListener): () => void;
66
- declare global {
67
- interface Window {
68
- __orbitalVerification?: OrbitalVerificationAPI;
69
- }
70
- }
71
- /** Whether a verifier is driving this page: the `__ALMADAR_VERIFY__` window flag it sets before the bundle runs. */
72
- declare function verifierAttached(): boolean;
73
- /**
74
- * Wait for a transition matching the given event to appear.
75
- * Returns the trace or null on timeout.
76
- */
77
- declare function waitForTransition(event: string, timeoutMs?: number): Promise<TransitionTrace | null>;
78
- /**
79
- * Bind the EventBus so automation can send events and log emissions.
80
- * Call this during app initialization.
81
- */
82
- declare function bindEventBus(eventBus: {
83
- emit: (type: string, payload?: EventPayload) => void;
84
- onAny?: (listener: (event: BusEvent) => void) => () => void;
85
- }): void;
86
- declare function bindConfigApplier(applyConfig: NonNullable<OrbitalVerificationAPI['applyConfig']>): () => void;
87
- /**
88
- * Bind a trait state getter so automation can query current states.
89
- */
90
- declare function bindTraitStateGetter(getter: (traitName: string) => string | undefined): void;
91
- /**
92
- * Register a per-trait snapshot provider. The generated trait logic hook
93
- * (or `useTraitStateMachine`) calls this once on mount, passing a getter
94
- * that reads the current reducer state via a ref. Returns an unregister
95
- * function for cleanup on unmount.
96
- *
97
- * Calling this twice for the same `traitName` replaces the previous
98
- * getter (e.g. page navigation remounts the trait; the new registration
99
- * wins).
100
- */
101
- declare function registerTraitSnapshot(traitName: string, getter: TraitSnapshotGetter): () => void;
102
- /**
103
- * Register a canvas frame capture function.
104
- * Called by game organisms (IsometricCanvas, PlatformerCanvas)
105
- * so the verifier can snapshot canvas content at checkpoints.
106
- */
107
- declare function bindCanvasCapture(captureFn: () => string | null): void;
108
- /**
109
- * Bind a reader for the last drawables list received by a canvas host.
110
- * Lets verification scripts inspect exactly which neutral descriptors reached
111
- * the painter without re-deriving them from state.
112
- */
113
- declare function bindLastDrawables(getDrawables: () => DrawableNode[] | null): void;
114
- /**
115
- * Update asset load status for canvas verification.
116
- * Game organisms call this when images load or fail.
117
- */
118
- declare function updateAssetStatus(url: string, status: AssetLoadStatus): void;
119
- declare function clearVerification(): void;
120
-
121
- export { bindConfigApplier as a, bindCanvasCapture as b, bindEventBus as c, bindLastDrawables as d, bindTraitStateGetter as e, clearVerification as f, getAllChecks as g, getBridgeHealth as h, getSnapshot as i, getSummary as j, getTraitSnapshots as k, getTransitions as l, getTransitionsForTrait as m, recordServerResponse as n, recordTransition as o, recordingTransport as p, registerCheck as q, recordOrbitalResponse as r, registerTraitSnapshot as s, serverEffectTraces as t, subscribeToVerification as u, updateAssetStatus as v, updateBridgeHealth as w, updateCheck as x, verifierAttached as y, waitForTransition as z };
122
- export type { TraitSnapshotGetter as T };