@almadar/ui 5.156.0 → 5.158.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.
@@ -145,7 +145,7 @@ interface SendEventResult {
145
145
  }
146
146
  interface ServerBridgeContextValue {
147
147
  connected: boolean;
148
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload) => Promise<SendEventResult>;
148
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, tick?: string, sourceTrait?: string) => Promise<SendEventResult>;
149
149
  }
150
150
  /**
151
151
  * Transport adapter for ServerBridgeProvider. Decouples the bridge's
@@ -168,8 +168,12 @@ interface ServerBridgeTransport {
168
168
  * `clientId` (Almadar_Live_Push.md) is the per-tab id stamped on every
169
169
  * dispatch so the server's push broadcast can exclude the origin tab
170
170
  * (it already got this cascade in-response).
171
+ *
172
+ * `tick`/`sourceTrait` (T6, docs/Almadar_Tick_Loop.md §3a) mark a
173
+ * tick-originated latest-state broadcast: the server coalesces these
174
+ * newest-per-key and relays them to other tabs at snapshot rate.
171
175
  */
172
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string) => Promise<OrbitalEventResponse>;
176
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string, tick?: string, sourceTrait?: string) => Promise<OrbitalEventResponse>;
173
177
  }
174
178
  /**
175
179
  * Access the server bridge. Returns a no-op stub when outside the provider.
@@ -145,7 +145,7 @@ interface SendEventResult {
145
145
  }
146
146
  interface ServerBridgeContextValue {
147
147
  connected: boolean;
148
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload) => Promise<SendEventResult>;
148
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, tick?: string, sourceTrait?: string) => Promise<SendEventResult>;
149
149
  }
150
150
  /**
151
151
  * Transport adapter for ServerBridgeProvider. Decouples the bridge's
@@ -168,8 +168,12 @@ interface ServerBridgeTransport {
168
168
  * `clientId` (Almadar_Live_Push.md) is the per-tab id stamped on every
169
169
  * dispatch so the server's push broadcast can exclude the origin tab
170
170
  * (it already got this cascade in-response).
171
+ *
172
+ * `tick`/`sourceTrait` (T6, docs/Almadar_Tick_Loop.md §3a) mark a
173
+ * tick-originated latest-state broadcast: the server coalesces these
174
+ * newest-per-key and relays them to other tabs at snapshot rate.
171
175
  */
172
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string) => Promise<OrbitalEventResponse>;
176
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string, tick?: string, sourceTrait?: string) => Promise<OrbitalEventResponse>;
173
177
  }
174
178
  /**
175
179
  * Access the server bridge. Returns a no-op stub when outside the provider.