@relayfile/file-observer 0.10.56 → 0.10.57-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayfile/file-observer",
3
- "version": "0.10.56",
3
+ "version": "0.10.57-rc.0",
4
4
  "description": "RelayFile observer dashboard for browsing synced workspace files and metadata",
5
5
  "files": [
6
6
  "src",
@@ -70,6 +70,7 @@ export type FilesystemEventType =
70
70
  | 'sync.ignored'
71
71
  | 'sync.suppressed'
72
72
  | 'sync.stale'
73
+ | 'sync.reconcile'
73
74
  | 'writeback.failed'
74
75
  | 'writeback.succeeded';
75
76
 
@@ -275,10 +276,10 @@ class DefaultRelayfileWebSocketConnection implements RelayfileWebSocketConnectio
275
276
  if (!raw || typeof raw !== 'object' || typeof raw.type !== 'string') {
276
277
  throw new Error("Invalid Relayfile WebSocket event: missing required 'type' field.");
277
278
  }
278
- if (typeof raw.path !== 'string') {
279
+ if (typeof raw.path !== 'string' && raw.type !== 'sync.reconcile') {
279
280
  throw new Error("Invalid Relayfile WebSocket event: missing required 'path' field.");
280
281
  }
281
- if (typeof raw.revision !== 'string') {
282
+ if (typeof raw.revision !== 'string' && raw.type !== 'sync.reconcile') {
282
283
  throw new Error("Invalid Relayfile WebSocket event: missing required 'revision' field.");
283
284
  }
284
285
  if (typeof raw.timestamp !== 'string') {
@@ -288,8 +289,8 @@ class DefaultRelayfileWebSocketConnection implements RelayfileWebSocketConnectio
288
289
  parsed = {
289
290
  eventId: typeof raw.eventId === 'string' ? raw.eventId : '',
290
291
  type: raw.type as FilesystemEventType,
291
- path: raw.path,
292
- revision: raw.revision,
292
+ path: typeof raw.path === 'string' ? raw.path : '',
293
+ revision: typeof raw.revision === 'string' ? raw.revision : '',
293
294
  origin: raw.origin,
294
295
  provider: raw.provider,
295
296
  correlationId: raw.correlationId,