@almadar/shell-web 1.0.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 (70) hide show
  1. package/dist/AvlGlyph-PIXU6QH5.js +5 -0
  2. package/dist/AvlStateMachine-CKGMECMG.js +8 -0
  3. package/dist/{AvlTransitionDetail-63SD6GZF.js → AvlTransitionDetail-QZX6G5KJ.js} +4 -5
  4. package/dist/AvlTransitionExplainer-26WLEIC6.js +11 -0
  5. package/dist/BehaviorView-JLZ4PKWY.js +10 -0
  6. package/dist/{FileTree-BCFnBEuQ.d.ts → FileTree-B3GDAjaQ.d.ts} +131 -4
  7. package/dist/{FlowCanvas-AUMTWMNG.js → FlowCanvas-RPII4V24.js} +10 -13
  8. package/dist/{FlowCanvas-3JRMNJLV.css → FlowCanvas-VWUPMBKB.css} +189 -191
  9. package/dist/{GameAudioProvider-ceM_n0ey.d.ts → GameAudioProvider-D7wo5ryN.d.ts} +1 -1
  10. package/dist/{KernelEngineContext-CcxGYtlr.d.ts → KernelEngineContext-CPeWQMAz.d.ts} +15 -2
  11. package/dist/ModuleCard-NJD6JQGD.js +6 -0
  12. package/dist/{OrbInspector-QCPEPUPH.js → OrbInspector-OWWKPOBF.js} +10 -13
  13. package/dist/{OrbInspector-MHLJ6OEE.css → OrbInspector-VMTMZHNQ.css} +189 -191
  14. package/dist/{Select-B-iDdnvE.d.ts → Select-C2Uq6t86.d.ts} +1 -1
  15. package/dist/{UISlotRenderer-KVFO6J7R.css → UISlotRenderer-BIS6KT7T.css} +189 -191
  16. package/dist/{UISlotRenderer-C7WWOK43.js → UISlotRenderer-PY7FIJXN.js} +10 -13
  17. package/dist/avl/index.css +189 -191
  18. package/dist/avl/index.d.ts +19 -7
  19. package/dist/avl/index.js +157 -26
  20. package/dist/{chunk-TUPZWTRE.js → chunk-2WGR4TDJ.js} +464 -35
  21. package/dist/{chunk-SP5CDJ6K.js → chunk-4YJ53G7S.js} +3 -3
  22. package/dist/{chunk-HH5KSMH5.js → chunk-7N6ZPHQ5.js} +1 -1
  23. package/dist/{chunk-CPLN6NBQ.js → chunk-AGVSO4WY.js} +2 -3
  24. package/dist/{chunk-UXLE3IPR.js → chunk-FAKU5F62.js} +205 -4
  25. package/dist/{chunk-TXAUOLWZ.js → chunk-M74BCDBQ.js} +1 -1
  26. package/dist/{chunk-LHP2TK7O.js → chunk-MS4K3K2R.js} +2908 -4574
  27. package/dist/{chunk-K4MOPSEL.js → chunk-OWNG4JZI.js} +3 -4
  28. package/dist/{chunk-AB3X7QTE.js → chunk-PRLHKBXG.js} +1 -2
  29. package/dist/{chunk-X3DMMX27.js → chunk-VHC2M26B.js} +1 -1
  30. package/dist/{chunk-E6KA4J6N.js → chunk-VUIACGDU.js} +3 -4
  31. package/dist/{chunk-ROICKAU7.js → chunk-YYIHRIDH.js} +1 -1
  32. package/dist/{chunk-3VZ36ZKO.js → chunk-ZDRDJKYB.js} +5 -2
  33. package/dist/components/index.css +189 -191
  34. package/dist/components/index.d.ts +417 -173
  35. package/dist/components/index.js +14 -17
  36. package/dist/core.d.ts +3 -3
  37. package/dist/{fx-CmQjnHmT.d.ts → fx-Br8zjvu9.d.ts} +6 -6
  38. package/dist/index.d.ts +4 -0
  39. package/dist/index.js +2 -2
  40. package/dist/{kernel-client-TZKGHJRY.js → kernel-client-JW6OH5FX.js} +24 -3
  41. package/dist/{kernel-wire-wNdAPfhJ.d.ts → kernel-wire-DGAySGhX.d.ts} +7 -0
  42. package/dist/lib/index.d.ts +2 -3
  43. package/dist/lib/index.js +2 -3
  44. package/dist/providers/index.css +189 -191
  45. package/dist/providers/index.d.ts +6 -8
  46. package/dist/providers/index.js +10 -14
  47. package/dist/runtime/index.css +189 -191
  48. package/dist/runtime/index.d.ts +6 -1
  49. package/dist/runtime/index.js +10 -13
  50. package/dist/test-support.js +2 -2
  51. package/dist/{paintDispatch-CuJLsr9Y.d.ts → verificationRegistry-oopV1J1n.d.ts} +127 -15
  52. package/package.json +8 -36
  53. package/dist/AvlGlyph-EPJKFEO3.js +0 -6
  54. package/dist/AvlStateMachine-RKZIKNGC.js +0 -9
  55. package/dist/AvlTransitionExplainer-ZBTLOM3T.js +0 -12
  56. package/dist/BehaviorView-YS5G4GNB.js +0 -11
  57. package/dist/Canvas3DHost-BkZQB5l2.d.ts +0 -552
  58. package/dist/ModuleCard-QHDGK5XK.js +0 -7
  59. package/dist/avl-3d-context-BycmO6tG.d.ts +0 -201
  60. package/dist/avl-schema-parser-CtJxJ9KU.d.ts +0 -132
  61. package/dist/avl-zoom-state-CKMVuBFg.d.ts +0 -17
  62. package/dist/chunk-4T3P43NS.js +0 -1133
  63. package/dist/chunk-DZBQA2OW.js +0 -176
  64. package/dist/chunk-EOWMARUB.js +0 -16
  65. package/dist/chunk-GFXCPUMX.js +0 -1334
  66. package/dist/chunk-ILZ7ORX7.js +0 -432
  67. package/dist/three/index.css +0 -503
  68. package/dist/three/index.d.ts +0 -1185
  69. package/dist/three/index.js +0 -3908
  70. package/dist/verificationRegistry-CVrcxG1s.d.ts +0 -122
@@ -1,122 +0,0 @@
1
- import { D as DrawableNode } from './paintDispatch-CuJLsr9Y.js';
2
- import { OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, EventRequest, EventResponse, 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: EventRequest, response: EventResponse): 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 };