@dxos/protocols 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51

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 (263) hide show
  1. package/dist/src/FeedProtocol.d.ts +4 -4
  2. package/dist/src/FeedProtocol.d.ts.map +1 -1
  3. package/dist/src/codec.test.js +1 -1
  4. package/dist/src/edge/edge.js.map +1 -1
  5. package/dist/src/edge/errors.d.ts.map +1 -1
  6. package/dist/src/edge/errors.js +1 -1
  7. package/dist/src/edge/errors.js.map +1 -1
  8. package/dist/src/edge/index.js +4 -4
  9. package/dist/src/edge/registry.d.ts +51 -18
  10. package/dist/src/edge/registry.d.ts.map +1 -1
  11. package/dist/src/edge/registry.js +36 -12
  12. package/dist/src/edge/registry.js.map +1 -1
  13. package/dist/src/errors/base-errors.d.ts +18 -18
  14. package/dist/src/errors/base-errors.d.ts.map +1 -1
  15. package/dist/src/errors/encoding.d.ts +1 -1
  16. package/dist/src/errors/encoding.d.ts.map +1 -1
  17. package/dist/src/errors/encoding.js +1 -1
  18. package/dist/src/errors/encoding.js.map +1 -1
  19. package/dist/src/errors/errors.d.ts +132 -132
  20. package/dist/src/errors/errors.d.ts.map +1 -1
  21. package/dist/src/errors/errors.js +1 -1
  22. package/dist/src/errors/errors.test.js +1 -1
  23. package/dist/src/errors/helpers.d.ts +2 -2
  24. package/dist/src/errors/helpers.d.ts.map +1 -1
  25. package/dist/src/errors/index.js +5 -5
  26. package/dist/src/errors/parameter.d.ts.map +1 -1
  27. package/dist/src/index.d.ts +0 -1
  28. package/dist/src/index.d.ts.map +1 -1
  29. package/dist/src/index.js +10 -11
  30. package/dist/src/index.js.map +1 -1
  31. package/dist/src/indexing.d.ts.map +1 -1
  32. package/dist/src/indexing.test.js +1 -1
  33. package/dist/src/proto/gen/dxos/agent/dashboard.d.ts +3 -6
  34. package/dist/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
  35. package/dist/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
  36. package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -2
  37. package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
  38. package/dist/src/proto/gen/dxos/agent/epoch.d.ts +1 -2
  39. package/dist/src/proto/gen/dxos/agent/epoch.d.ts.map +1 -1
  40. package/dist/src/proto/gen/dxos/agent/functions.d.ts +6 -12
  41. package/dist/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
  42. package/dist/src/proto/gen/dxos/bot.d.ts +12 -24
  43. package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
  44. package/dist/src/proto/gen/dxos/bot.js.map +1 -1
  45. package/dist/src/proto/gen/dxos/client/services.d.ts +74 -148
  46. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  47. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  48. package/dist/src/proto/gen/dxos/config.d.ts +51 -102
  49. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  50. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  51. package/dist/src/proto/gen/dxos/devtools/host.d.ts +48 -96
  52. package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  53. package/dist/src/proto/gen/dxos/devtools/swarm.d.ts +4 -8
  54. package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  55. package/dist/src/proto/gen/dxos/echo/blob.d.ts +1 -2
  56. package/dist/src/proto/gen/dxos/echo/blob.d.ts.map +1 -1
  57. package/dist/src/proto/gen/dxos/echo/blob.js.map +1 -1
  58. package/dist/src/proto/gen/dxos/echo/feed.d.ts +4 -8
  59. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  60. package/dist/src/proto/gen/dxos/echo/filter.d.ts +2 -4
  61. package/dist/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
  62. package/dist/src/proto/gen/dxos/echo/filter.js.map +1 -1
  63. package/dist/src/proto/gen/dxos/echo/indexing.d.ts +2 -4
  64. package/dist/src/proto/gen/dxos/echo/indexing.d.ts.map +1 -1
  65. package/dist/src/proto/gen/dxos/echo/indexing.js.map +1 -1
  66. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +8 -16
  67. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  68. package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -1
  69. package/dist/src/proto/gen/dxos/echo/model/document.d.ts +11 -22
  70. package/dist/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
  71. package/dist/src/proto/gen/dxos/echo/model/document.js.map +1 -1
  72. package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +1 -2
  73. package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
  74. package/dist/src/proto/gen/dxos/echo/model/text.d.ts +2 -4
  75. package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
  76. package/dist/src/proto/gen/dxos/echo/object.d.ts +6 -12
  77. package/dist/src/proto/gen/dxos/echo/object.d.ts.map +1 -1
  78. package/dist/src/proto/gen/dxos/echo/object.js.map +1 -1
  79. package/dist/src/proto/gen/dxos/echo/query.d.ts +4 -8
  80. package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  81. package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
  82. package/dist/src/proto/gen/dxos/echo/service.d.ts +17 -34
  83. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  84. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -4
  85. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  86. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -4
  87. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  88. package/dist/src/proto/gen/dxos/edge/calls.d.ts +5 -10
  89. package/dist/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
  90. package/dist/src/proto/gen/dxos/edge/messenger.d.ts +6 -12
  91. package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
  92. package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
  93. package/dist/src/proto/gen/dxos/edge/signal.d.ts +7 -14
  94. package/dist/src/proto/gen/dxos/edge/signal.d.ts.map +1 -1
  95. package/dist/src/proto/gen/dxos/error.d.ts +1 -2
  96. package/dist/src/proto/gen/dxos/error.d.ts.map +1 -1
  97. package/dist/src/proto/gen/dxos/gravity.d.ts +10 -20
  98. package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
  99. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +1 -2
  100. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
  101. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +6 -12
  102. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
  103. package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
  104. package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +2 -4
  105. package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
  106. package/dist/src/proto/gen/dxos/halo/credentials.d.ts +22 -44
  107. package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  108. package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
  109. package/dist/src/proto/gen/dxos/halo/invitations.d.ts +13 -26
  110. package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  111. package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  112. package/dist/src/proto/gen/dxos/halo/keyring.d.ts +1 -2
  113. package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
  114. package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -4
  115. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  116. package/dist/src/proto/gen/dxos/halo/signed.d.ts +4 -8
  117. package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
  118. package/dist/src/proto/gen/dxos/iframe.d.ts +4 -8
  119. package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  120. package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
  121. package/dist/src/proto/gen/dxos/keys.d.ts +2 -4
  122. package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
  123. package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +12 -24
  124. package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
  125. package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +1 -2
  126. package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
  127. package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +2 -4
  128. package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
  129. package/dist/src/proto/gen/dxos/mesh/muxer.d.ts +5 -10
  130. package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
  131. package/dist/src/proto/gen/dxos/mesh/presence.d.ts +1 -2
  132. package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
  133. package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +3 -6
  134. package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
  135. package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +2 -4
  136. package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
  137. package/dist/src/proto/gen/dxos/mesh/signal.d.ts +9 -18
  138. package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
  139. package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -1
  140. package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +6 -12
  141. package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
  142. package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts +2 -4
  143. package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -1
  144. package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts +2 -4
  145. package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts.map +1 -1
  146. package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts +3 -6
  147. package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts.map +1 -1
  148. package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts +3 -6
  149. package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
  150. package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -2
  151. package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -1
  152. package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts +1 -2
  153. package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts.map +1 -1
  154. package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts +5 -10
  155. package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
  156. package/dist/src/proto/gen/dxos/mesh/teleport.d.ts +2 -4
  157. package/dist/src/proto/gen/dxos/mesh/teleport.d.ts.map +1 -1
  158. package/dist/src/proto/gen/dxos/registry.d.ts +3 -6
  159. package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
  160. package/dist/src/proto/gen/dxos/rpc.d.ts +7 -14
  161. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  162. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  163. package/dist/src/proto/gen/dxos/service/agentmanager.d.ts +4 -8
  164. package/dist/src/proto/gen/dxos/service/agentmanager.d.ts.map +1 -1
  165. package/dist/src/proto/gen/dxos/service/agentmanager.js.map +1 -1
  166. package/dist/src/proto/gen/dxos/service/publisher.d.ts +5 -10
  167. package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
  168. package/dist/src/proto/gen/dxos/service/supervisor.d.ts +12 -24
  169. package/dist/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
  170. package/dist/src/proto/gen/dxos/service/supervisor.js.map +1 -1
  171. package/dist/src/proto/gen/dxos/service/tunnel.d.ts +3 -6
  172. package/dist/src/proto/gen/dxos/service/tunnel.d.ts.map +1 -1
  173. package/dist/src/proto/gen/dxos/tracing.d.ts +10 -20
  174. package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
  175. package/dist/src/proto/gen/dxos/type.d.ts +12 -24
  176. package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
  177. package/dist/src/proto/gen/dxos/value.d.ts +2 -4
  178. package/dist/src/proto/gen/dxos/value.d.ts.map +1 -1
  179. package/dist/src/proto/gen/example/testing/data.d.ts +4 -8
  180. package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
  181. package/dist/src/proto/gen/example/testing/rpc.d.ts +7 -14
  182. package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
  183. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  184. package/dist/src/proto/gen/google/protobuf.js.map +1 -1
  185. package/dist/src/proto/index.js +1 -1
  186. package/dist/src/proto/substitutions.d.ts +8 -8
  187. package/dist/src/proto/substitutions.d.ts.map +1 -1
  188. package/dist/src/space-archive.d.ts +5 -5
  189. package/dist/src/space-archive.d.ts.map +1 -1
  190. package/dist/tsconfig.tsbuildinfo +1 -1
  191. package/package.json +9 -9
  192. package/src/edge/registry.ts +42 -14
  193. package/src/index.ts +0 -1
  194. package/src/proto/gen/dxos/agent/dashboard.ts +3 -6
  195. package/src/proto/gen/dxos/agent/echoproxy.ts +1 -2
  196. package/src/proto/gen/dxos/agent/epoch.ts +1 -2
  197. package/src/proto/gen/dxos/agent/functions.ts +6 -12
  198. package/src/proto/gen/dxos/bot.ts +12 -24
  199. package/src/proto/gen/dxos/client/services.ts +74 -148
  200. package/src/proto/gen/dxos/config.ts +51 -102
  201. package/src/proto/gen/dxos/devtools/host.ts +48 -96
  202. package/src/proto/gen/dxos/devtools/swarm.ts +4 -8
  203. package/src/proto/gen/dxos/echo/blob.ts +1 -2
  204. package/src/proto/gen/dxos/echo/feed.ts +4 -8
  205. package/src/proto/gen/dxos/echo/filter.ts +2 -4
  206. package/src/proto/gen/dxos/echo/indexing.ts +2 -4
  207. package/src/proto/gen/dxos/echo/metadata.ts +8 -16
  208. package/src/proto/gen/dxos/echo/model/document.ts +11 -22
  209. package/src/proto/gen/dxos/echo/model/messenger.ts +1 -2
  210. package/src/proto/gen/dxos/echo/model/text.ts +2 -4
  211. package/src/proto/gen/dxos/echo/object.ts +6 -12
  212. package/src/proto/gen/dxos/echo/query.ts +4 -8
  213. package/src/proto/gen/dxos/echo/service.ts +17 -34
  214. package/src/proto/gen/dxos/echo/snapshot.ts +2 -4
  215. package/src/proto/gen/dxos/echo/timeframe.ts +2 -4
  216. package/src/proto/gen/dxos/edge/calls.ts +5 -10
  217. package/src/proto/gen/dxos/edge/messenger.ts +6 -12
  218. package/src/proto/gen/dxos/edge/signal.ts +7 -14
  219. package/src/proto/gen/dxos/error.ts +1 -2
  220. package/src/proto/gen/dxos/gravity.ts +10 -20
  221. package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -2
  222. package/src/proto/gen/dxos/halo/credentials/greet.ts +6 -12
  223. package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -4
  224. package/src/proto/gen/dxos/halo/credentials.ts +22 -44
  225. package/src/proto/gen/dxos/halo/invitations.ts +13 -26
  226. package/src/proto/gen/dxos/halo/keyring.ts +1 -2
  227. package/src/proto/gen/dxos/halo/keys.ts +2 -4
  228. package/src/proto/gen/dxos/halo/signed.ts +4 -8
  229. package/src/proto/gen/dxos/iframe.ts +4 -8
  230. package/src/proto/gen/dxos/keys.ts +2 -4
  231. package/src/proto/gen/dxos/mesh/bridge.ts +12 -24
  232. package/src/proto/gen/dxos/mesh/broadcast.ts +1 -2
  233. package/src/proto/gen/dxos/mesh/messaging.ts +2 -4
  234. package/src/proto/gen/dxos/mesh/muxer.ts +5 -10
  235. package/src/proto/gen/dxos/mesh/presence.ts +1 -2
  236. package/src/proto/gen/dxos/mesh/protocol.ts +3 -6
  237. package/src/proto/gen/dxos/mesh/replicator.ts +2 -4
  238. package/src/proto/gen/dxos/mesh/signal.ts +9 -18
  239. package/src/proto/gen/dxos/mesh/swarm.ts +6 -12
  240. package/src/proto/gen/dxos/mesh/teleport/auth.ts +2 -4
  241. package/src/proto/gen/dxos/mesh/teleport/automerge.ts +2 -4
  242. package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +3 -6
  243. package/src/proto/gen/dxos/mesh/teleport/control.ts +3 -6
  244. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -2
  245. package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -2
  246. package/src/proto/gen/dxos/mesh/teleport/replicator.ts +5 -10
  247. package/src/proto/gen/dxos/mesh/teleport.ts +2 -4
  248. package/src/proto/gen/dxos/registry.ts +3 -6
  249. package/src/proto/gen/dxos/rpc.ts +7 -14
  250. package/src/proto/gen/dxos/service/agentmanager.ts +4 -8
  251. package/src/proto/gen/dxos/service/publisher.ts +5 -10
  252. package/src/proto/gen/dxos/service/supervisor.ts +12 -24
  253. package/src/proto/gen/dxos/service/tunnel.ts +3 -6
  254. package/src/proto/gen/dxos/tracing.ts +10 -20
  255. package/src/proto/gen/dxos/type.ts +12 -24
  256. package/src/proto/gen/dxos/value.ts +2 -4
  257. package/src/proto/gen/example/testing/data.ts +4 -8
  258. package/src/proto/gen/example/testing/rpc.ts +7 -14
  259. package/dist/src/tracing.d.ts +0 -40
  260. package/dist/src/tracing.d.ts.map +0 -1
  261. package/dist/src/tracing.js +0 -50
  262. package/dist/src/tracing.js.map +0 -1
  263. package/src/tracing.ts +0 -86
@@ -65,8 +65,8 @@ export declare const QueryRequest: Schema.Struct<{
65
65
  */
66
66
  spaceId: Schema.Schema<SpaceId, string, never> & {
67
67
  byteLength: number;
68
- encode: (value: Uint8Array) => SpaceId;
69
- decode: (value: SpaceId) => Uint8Array;
68
+ encode: (value: Uint8Array<ArrayBufferLike>) => SpaceId;
69
+ decode: (value: SpaceId) => Uint8Array<ArrayBufferLike>;
70
70
  isValid: (value: unknown) => value is SpaceId;
71
71
  make: (value: string) => SpaceId;
72
72
  random: () => SpaceId;
@@ -510,8 +510,8 @@ export type ProtocolMessage = Schema.Schema.Type<typeof ProtocolMessage>;
510
510
  * Reserved namespaces with protocol-level semantics.
511
511
  */
512
512
  export declare const WellKnownNamespaces: {
513
- readonly data: "data";
514
- readonly trace: "trace";
513
+ readonly data: 'data';
514
+ readonly trace: 'trace';
515
515
  };
516
516
  export declare const isWellKnownNamespace: (namespace: string) => boolean;
517
517
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FeedProtocol.d.ts","sourceRoot":"","sources":["../../src/FeedProtocol.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,gBAAgB,IAAI,WAAW,EACpC,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,GACtB,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC;;GAEG;AACH,eAAO,MAAM,UAAU,6DAA4D,CAAC;AACpF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,KAAK;IAChB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;EAGH,CAAC;AACH,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC;CAAG;AAMlE;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB;;OAEG;;IAGH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@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
  import { describe, expect, test } from 'vitest';
5
- import { schema } from "./proto/index.js";
5
+ import { schema } from './proto/index.js';
6
6
  describe('Codec', () => {
7
7
  test('encodes and decodes messages', async () => {
8
8
  const codec = schema.getCodecForType('example.testing.data.TestItemMutation');
@@ -1 +1 @@
1
- {"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAE1D,4CAA4C;AAC5C,iFAAiF;AACjF,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C;;OAEG;IACH,sEAAsE;IACtE,kDAAmC,CAAA;IACnC;;OAEG;IACH,yFAAyF;IACzF,oDAAqC,CAAA;IACrC,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EAfW,WAAW,KAAX,WAAW,QAetB;AAOD,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;IAClF,KAAK,EAAE,M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/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,YAAY,IAAI,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,EAMA;CACF;AAED,qBAAa,sBAAuB,SAAQ,mBAAmB;aAE3C,SAAS,EAAE,MAAM;IADnC,YACkB,SAAS,EAAE,MAAM,EACjC,IAAI,EAAE,aAAa,EAGpB;CACF"}
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
- import { EdgeHttpErrorCodec, ErrorCodec } from "./edge.js";
4
+ import { EdgeHttpErrorCodec, ErrorCodec } from './edge.js';
5
5
  // TODO(burdon): Reconcile with @dxos/errors.
6
6
  /**
7
7
  * Error thrown when a call to the Edge service fails.
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/edge/errors.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAwC,kBAAkB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEjG,6CAA6C;AAC7C;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACrC,MAAM,CAAC,wBAAwB,CAAC,QAAkB,EAAE,IAAiB;QAC1E,MAAM,KAAK,GAAG,IAAI,mBAAmB,CAAC;YACpC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;YACrE,YAAY,EAAE,mBAAmB,CAAC,QAAQ,CAAC;YAC3C,KAAK,EAAE,IAAI,CAAC,KAAK,CA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E,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;yBAHhD,SAAS;IAI3B,CAAC;CACF;AAED,MAAM,mBAAmB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACjD,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAC/D,OAAO,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE;IACzC,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;QACnB,kBAAkB;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CAAC,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,CAAC;AAC1C,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  //
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
- export * from "./edge.js";
5
- export * as EdgeFunctionEnv from "./EdgeFunctionEnv.js";
6
- export * from "./errors.js";
7
- export * from "./registry.js";
4
+ export * from './edge.js';
5
+ export * as EdgeFunctionEnv from './EdgeFunctionEnv.js';
6
+ export * from './errors.js';
7
+ export * from './registry.js';
8
8
  //# sourceMappingURL=index.js.map
@@ -25,13 +25,23 @@ export type PluginMeta = Schema.Schema.Type<typeof PluginMetaSchema>;
25
25
  */
26
26
  export declare const PluginHealthSchema: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
27
27
  export type PluginHealth = Schema.Schema.Type<typeof PluginHealthSchema>;
28
+ /**
29
+ * Filename of the entry module every plugin must publish at the root of its bundle.
30
+ * The host dynamic-imports `<manifest URL base>/index.mjs` directly — no per-plugin
31
+ * configuration. `composerPlugin` outputs the bundle under this name so plugin authors
32
+ * never have to think about it.
33
+ */
34
+ export declare const PLUGIN_ENTRY_FILENAME = "index.mjs";
28
35
  /**
29
36
  * Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
30
- * Extends {@link PluginMetaSchema} with an optional override for the module bundle filename
31
- * (defaults to `plugin.mjs`).
37
+ *
38
+ * Emitted by `@dxos/app-framework/vite-plugin`'s `composerPlugin` (see
39
+ * `MANIFEST_ASSET_NAME`). Lists every file the plugin needs at runtime — the entry
40
+ * module ({@link PLUGIN_ENTRY_FILENAME}) plus any sibling CSS, code-split chunks,
41
+ * fonts, etc. — so the host can eagerly precache the whole bundle for offline use.
42
+ * Paths in `assets` are relative to the manifest's URL.
32
43
  */
33
44
  export declare const PluginManifestSchema: Schema.Struct<{
34
- moduleFile: Schema.optional<typeof Schema.String>;
35
45
  id: Schema.filter<typeof Schema.String>;
36
46
  name: Schema.filter<typeof Schema.String>;
37
47
  description: Schema.optional<typeof Schema.String>;
@@ -42,14 +52,21 @@ export declare const PluginManifestSchema: Schema.Struct<{
42
52
  tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
43
53
  icon: Schema.optional<typeof Schema.String>;
44
54
  iconHue: Schema.optional<typeof Schema.String>;
55
+ /** Plugin version (semver). Sourced from the publishing project's `package.json`. */
56
+ version: Schema.filter<typeof Schema.String>;
57
+ /**
58
+ * Relative paths of every file the plugin needs at runtime, including the entry.
59
+ * Must include {@link PLUGIN_ENTRY_FILENAME}; consumers verify on parse.
60
+ */
61
+ assets: Schema.filter<Schema.Array$<typeof Schema.String>>;
45
62
  }>;
46
63
  export type PluginManifest = Schema.Schema.Type<typeof PluginManifestSchema>;
47
64
  /**
48
65
  * Single hydrated plugin entry returned by the registry service.
49
66
  */
50
67
  export declare const PluginEntrySchema: Schema.Struct<{
51
- /** GitHub repository in `owner/name` form. */
52
- repo: Schema.filter<typeof Schema.String>;
68
+ /** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
69
+ repo: typeof Schema.String;
53
70
  /** Plugin metadata from the repo's latest-release `manifest.json`. */
54
71
  meta: Schema.Struct<{
55
72
  id: Schema.filter<typeof Schema.String>;
@@ -64,12 +81,12 @@ export declare const PluginEntrySchema: Schema.Struct<{
64
81
  iconHue: Schema.optional<typeof Schema.String>;
65
82
  }>;
66
83
  /**
67
- * URL from which Composer can dynamic-import the plugin module. The registry service is
68
- * responsible for returning a URL that is CORS-safe for browser `import()` (e.g. served or
69
- * proxied by the service itself); clients pass this value directly to the URL loader.
84
+ * URL of the plugin's `manifest.json`. Composer's URL loader fetches this, eagerly caches
85
+ * every declared asset via the platform `PluginAssetCache`, then dynamic-imports the entry.
86
+ * The URL must be CORS-safe and have its declared assets reachable as siblings.
70
87
  */
71
88
  moduleUrl: typeof Schema.String;
72
- /** Release tag the entry was resolved from (e.g. `v0.1.0`). */
89
+ /** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
73
90
  releaseTag: typeof Schema.String;
74
91
  /** Health signal set by the service when an entry fails to refresh. */
75
92
  health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
@@ -85,8 +102,8 @@ export declare const GetPluginsResponseBodySchema: Schema.Struct<{
85
102
  version: Schema.Literal<[1]>;
86
103
  /** Hydrated entries. Order matches the order in the upstream catalog manifest. */
87
104
  plugins: Schema.Array$<Schema.Struct<{
88
- /** GitHub repository in `owner/name` form. */
89
- repo: Schema.filter<typeof Schema.String>;
105
+ /** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
106
+ repo: typeof Schema.String;
90
107
  /** Plugin metadata from the repo's latest-release `manifest.json`. */
91
108
  meta: Schema.Struct<{
92
109
  id: Schema.filter<typeof Schema.String>;
@@ -101,12 +118,12 @@ export declare const GetPluginsResponseBodySchema: Schema.Struct<{
101
118
  iconHue: Schema.optional<typeof Schema.String>;
102
119
  }>;
103
120
  /**
104
- * URL from which Composer can dynamic-import the plugin module. The registry service is
105
- * responsible for returning a URL that is CORS-safe for browser `import()` (e.g. served or
106
- * proxied by the service itself); clients pass this value directly to the URL loader.
121
+ * URL of the plugin's `manifest.json`. Composer's URL loader fetches this, eagerly caches
122
+ * every declared asset via the platform `PluginAssetCache`, then dynamic-imports the entry.
123
+ * The URL must be CORS-safe and have its declared assets reachable as siblings.
107
124
  */
108
125
  moduleUrl: typeof Schema.String;
109
- /** Release tag the entry was resolved from (e.g. `v0.1.0`). */
126
+ /** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
110
127
  releaseTag: typeof Schema.String;
111
128
  /** Health signal set by the service when an entry fails to refresh. */
112
129
  health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
@@ -117,15 +134,31 @@ export declare const GetPluginsResponseBodySchema: Schema.Struct<{
117
134
  refreshedAt: typeof Schema.Number;
118
135
  }>;
119
136
  export type GetPluginsResponseBody = Schema.Schema.Type<typeof GetPluginsResponseBodySchema>;
137
+ /**
138
+ * A catalog entry. Two flavours:
139
+ * - `{ repo }`: the registry service hydrates from the GitHub repo's latest release.
140
+ * Used by the production catalog.
141
+ * - `{ manifestUrl }`: the registry service skips GitHub and fetches the manifest directly.
142
+ * Used for local development against an in-progress plugin (e.g. served by `vite preview`)
143
+ * so authors can iterate without publishing a release.
144
+ */
145
+ export declare const RegistryEntrySchema: Schema.Union<[Schema.Struct<{
146
+ repo: Schema.filter<typeof Schema.String>;
147
+ }>, Schema.Struct<{
148
+ manifestUrl: Schema.filter<typeof Schema.String>;
149
+ }>]>;
150
+ export type RegistryEntry = Schema.Schema.Type<typeof RegistryEntrySchema>;
120
151
  /**
121
152
  * Shape of the catalog manifest published in the upstream community-plugins repo.
122
153
  * Extra keys (e.g. `$schema`) are permitted.
123
154
  */
124
155
  export declare const RegistryManifestSchema: Schema.TypeLiteral<{
125
156
  version: Schema.Literal<[1]>;
126
- plugins: Schema.Array$<Schema.Struct<{
127
- repo: typeof Schema.String;
128
- }>>;
157
+ plugins: Schema.Array$<Schema.Union<[Schema.Struct<{
158
+ repo: Schema.filter<typeof Schema.String>;
159
+ }>, Schema.Struct<{
160
+ manifestUrl: Schema.filter<typeof Schema.String>;
161
+ }>]>>;
129
162
  }, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
130
163
  export type RegistryManifest = Schema.Schema.Type<typeof RegistryManifestSchema>;
131
164
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;EAW3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mFAAkF,CAAC;AAClH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,8CAA8C;;IAE9C,sEAAsE;;;;;;;;;;;;;IAEtE;;;;OAIG;;IAEH,+DAA+D;;IAE/D,uEAAuE;;IAEvE,8DAA8D;;EAE9D,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,4BAA4B;IACvC,+CAA+C;;IAE/C,kFAAkF;;QAzBlF,8CAA8C;;QAE9C,sEAAsE;;;;;;;;;;;;;QAEtE;;;;WAIG;;QAEH,+D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BAAiB,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,4BAA4B;IACvC,+CAA+C;;IAE/C,kFAAkF;;QAzBlF,qGAAqG;;QAErG,sEAAsE;;;;;;;;;;;;;QAEtE;;;;WAIG;;QAEH,uGAAuG;;QAEvG,uEAAuE;;QAEvE,8DAA8D;;;IAa9D,qEAAqE;;EAErE,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;IAG/B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;0EAMlC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -26,30 +26,47 @@ export const PluginMetaSchema = Schema.Struct({
26
26
  * Clients surface the appropriate badge or filter entries based on this field.
27
27
  */
28
28
  export const PluginHealthSchema = Schema.Literal('ok', 'release-missing', 'manifest-invalid', 'repo-unavailable');
29
+ /**
30
+ * Filename of the entry module every plugin must publish at the root of its bundle.
31
+ * The host dynamic-imports `<manifest URL base>/index.mjs` directly — no per-plugin
32
+ * configuration. `composerPlugin` outputs the bundle under this name so plugin authors
33
+ * never have to think about it.
34
+ */
35
+ export const PLUGIN_ENTRY_FILENAME = 'index.mjs';
29
36
  /**
30
37
  * Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
31
- * Extends {@link PluginMetaSchema} with an optional override for the module bundle filename
32
- * (defaults to `plugin.mjs`).
38
+ *
39
+ * Emitted by `@dxos/app-framework/vite-plugin`'s `composerPlugin` (see
40
+ * `MANIFEST_ASSET_NAME`). Lists every file the plugin needs at runtime — the entry
41
+ * module ({@link PLUGIN_ENTRY_FILENAME}) plus any sibling CSS, code-split chunks,
42
+ * fonts, etc. — so the host can eagerly precache the whole bundle for offline use.
43
+ * Paths in `assets` are relative to the manifest's URL.
33
44
  */
34
45
  export const PluginManifestSchema = Schema.Struct({
35
46
  ...PluginMetaSchema.fields,
36
- moduleFile: Schema.optional(Schema.String),
47
+ /** Plugin version (semver). Sourced from the publishing project's `package.json`. */
48
+ version: Schema.String.pipe(Schema.nonEmptyString()),
49
+ /**
50
+ * Relative paths of every file the plugin needs at runtime, including the entry.
51
+ * Must include {@link PLUGIN_ENTRY_FILENAME}; consumers verify on parse.
52
+ */
53
+ assets: Schema.Array(Schema.String).pipe(Schema.minItems(1)),
37
54
  });
38
55
  /**
39
56
  * Single hydrated plugin entry returned by the registry service.
40
57
  */
41
58
  export const PluginEntrySchema = Schema.Struct({
42
- /** GitHub repository in `owner/name` form. */
43
- repo: Schema.String.pipe(Schema.nonEmptyString()),
59
+ /** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
60
+ repo: Schema.String,
44
61
  /** Plugin metadata from the repo's latest-release `manifest.json`. */
45
62
  meta: PluginMetaSchema,
46
63
  /**
47
- * URL from which Composer can dynamic-import the plugin module. The registry service is
48
- * responsible for returning a URL that is CORS-safe for browser `import()` (e.g. served or
49
- * proxied by the service itself); clients pass this value directly to the URL loader.
64
+ * URL of the plugin's `manifest.json`. Composer's URL loader fetches this, eagerly caches
65
+ * every declared asset via the platform `PluginAssetCache`, then dynamic-imports the entry.
66
+ * The URL must be CORS-safe and have its declared assets reachable as siblings.
50
67
  */
51
68
  moduleUrl: Schema.String,
52
- /** Release tag the entry was resolved from (e.g. `v0.1.0`). */
69
+ /** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
53
70
  releaseTag: Schema.String,
54
71
  /** Health signal set by the service when an entry fails to refresh. */
55
72
  health: PluginHealthSchema,
@@ -67,14 +84,21 @@ export const GetPluginsResponseBodySchema = Schema.Struct({
67
84
  /** Unix ms timestamp of the most recent successful refresh cycle. */
68
85
  refreshedAt: Schema.Number,
69
86
  });
87
+ /**
88
+ * A catalog entry. Two flavours:
89
+ * - `{ repo }`: the registry service hydrates from the GitHub repo's latest release.
90
+ * Used by the production catalog.
91
+ * - `{ manifestUrl }`: the registry service skips GitHub and fetches the manifest directly.
92
+ * Used for local development against an in-progress plugin (e.g. served by `vite preview`)
93
+ * so authors can iterate without publishing a release.
94
+ */
95
+ export const RegistryEntrySchema = Schema.Union(Schema.Struct({ repo: Schema.String.pipe(Schema.nonEmptyString()) }), Schema.Struct({ manifestUrl: Schema.String.pipe(Schema.nonEmptyString()) }));
70
96
  /**
71
97
  * Shape of the catalog manifest published in the upstream community-plugins repo.
72
98
  * Extra keys (e.g. `$schema`) are permitted.
73
99
  */
74
100
  export const RegistryManifestSchema = Schema.Struct({
75
101
  version: Schema.Literal(1),
76
- plugins: Schema.Array(Schema.Struct({
77
- repo: Schema.String,
78
- })),
102
+ plugins: Schema.Array(RegistryEntrySchema),
79
103
  }, Schema.Record({ key: Schema.String, value: Schema.Unknown }));
80
104
  //# sourceMappingURL=registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,QAAQ,C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6
6
  declare const ApiError_base: {
7
7
  new (options?: import("@dxos/errors").BaseErrorOptions): {
8
+ cause?: unknown;
9
+ stack?: string;
8
10
  name: "ApiError";
9
11
  context: Record<string, unknown>;
10
12
  readonly message: string;
11
13
  readonly _tag: "ApiError";
12
- stack?: string;
13
- cause?: unknown;
14
14
  };
15
+ isError(error: unknown): error is Error;
15
16
  name: "ApiError";
16
17
  is(error: unknown): error is BaseError;
17
- wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, "cause"> & {
18
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
18
19
  ifTypeDiffers?: boolean;
19
20
  }): (error: unknown) => {
21
+ cause?: unknown;
22
+ stack?: string;
20
23
  name: "ApiError";
21
24
  context: Record<string, unknown>;
22
25
  readonly message: string;
23
26
  readonly _tag: "ApiError";
24
- stack?: string;
25
- cause?: unknown;
26
27
  };
27
28
  extend<Name extends string = string>(name: Name, message?: string): any;
28
- isError(error: unknown): error is Error;
29
29
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
30
30
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
31
31
  stackTraceLimit: number;
@@ -38,27 +38,27 @@ export declare class ApiError extends ApiError_base {
38
38
  }
39
39
  declare const SystemError_base: {
40
40
  new (options?: import("@dxos/errors").BaseErrorOptions): {
41
+ cause?: unknown;
42
+ stack?: string;
41
43
  name: "SystemError";
42
44
  context: Record<string, unknown>;
43
45
  readonly message: string;
44
46
  readonly _tag: "SystemError";
45
- stack?: string;
46
- cause?: unknown;
47
47
  };
48
+ isError(error: unknown): error is Error;
48
49
  name: "SystemError";
49
50
  is(error: unknown): error is BaseError;
50
- wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, "cause"> & {
51
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
51
52
  ifTypeDiffers?: boolean;
52
53
  }): (error: unknown) => {
54
+ cause?: unknown;
55
+ stack?: string;
53
56
  name: "SystemError";
54
57
  context: Record<string, unknown>;
55
58
  readonly message: string;
56
59
  readonly _tag: "SystemError";
57
- stack?: string;
58
- cause?: unknown;
59
60
  };
60
61
  extend<Name extends string = string>(name: Name, message?: string): any;
61
- isError(error: unknown): error is Error;
62
62
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
63
63
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
64
64
  stackTraceLimit: number;
@@ -71,27 +71,27 @@ export declare class SystemError extends SystemError_base {
71
71
  }
72
72
  declare const DatabaseError_base: {
73
73
  new (options?: import("@dxos/errors").BaseErrorOptions): {
74
+ cause?: unknown;
75
+ stack?: string;
74
76
  name: "DatabaseError";
75
77
  context: Record<string, unknown>;
76
78
  readonly message: string;
77
79
  readonly _tag: "DatabaseError";
78
- stack?: string;
79
- cause?: unknown;
80
80
  };
81
+ isError(error: unknown): error is Error;
81
82
  name: "DatabaseError";
82
83
  is(error: unknown): error is BaseError;
83
- wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, "cause"> & {
84
+ wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
84
85
  ifTypeDiffers?: boolean;
85
86
  }): (error: unknown) => {
87
+ cause?: unknown;
88
+ stack?: string;
86
89
  name: "DatabaseError";
87
90
  context: Record<string, unknown>;
88
91
  readonly message: string;
89
92
  readonly _tag: "DatabaseError";
90
- stack?: string;
91
- cause?: unknown;
92
93
  };
93
94
  extend<Name extends string = string>(name: Name, message?: string): any;
94
- isError(error: unknown): error is Error;
95
95
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
96
96
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
97
97
  stackTraceLimit: number;
@@ -1 +1 @@
1
- {"version":3,"file":"base-errors.d.ts","sourceRoot":"","sources":["../../../src/errors/base-errors.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;qBAkB6c,CAAC;;;;;;;;;;;;;;;AAhBvf;;;GAGG;AACH,qBAAa,QAAS,SAAQ,aAA4B;CAAG;;;;;;;;;;;;;qBAYyb,CAAC;;;;;;;;;;;;;;;AAVvf;;;GAGG;AACH,qBAAa,WAAY,SAAQ,gBAA+B;CAAG;;;;;;;;;;;;;qBAMmb,CAAC;;;;;;;;;;;;;;;AAJvf;;GAEG;AACH,qBAAa,aAAc,SAAQ,kBAAiC;CAAG"}
1
+ {"version":3,"file":"base-errors.d.ts","sourceRoot":"","sources":["../../../src/errors/base-errors.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC;;;GAGG;AACH,qBAAa,QAAS,SAAQ,aAA4B;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE7D;;;GAGG;AACH,qBAAa,WAAY,SAAQ,gBAA+B;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEnE;;GAEG;AACH,qBAAa,aAAc,SAAQ,kBAAiC;CAAG"}
@@ -3,5 +3,5 @@ export declare const encodeError: (err: any) => SerializedErrorProto;
3
3
  export type DecodeOptions = {
4
4
  appendStack?: string;
5
5
  };
6
- export declare const decodeError: (err: SerializedErrorProto, { appendStack }?: DecodeOptions) => Error | import("@dxos/errors").BaseError<string>;
6
+ export declare const decodeError: (err: SerializedErrorProto, { appendStack }?: DecodeOptions) => import("@dxos/errors").BaseError<string> | Error;
7
7
  //# sourceMappingURL=encoding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../src/errors/encoding.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGhF,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,oBAiBtC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,oBAAoB,EAAE,kBAAiB,aAAkB,qDASzF,CAAC"}
1
+ {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../src/errors/encoding.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGhF,eAAO,MAAM,WAAW,QAAS,GAAG,KAAG,oBAiBtC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,oBAAoB,oBAAmB,aAAa,qDASpF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { reconstructError } from "./helpers.js";
4
+ import { reconstructError } from './helpers.js';
5
5
  export const encodeError = (err) => {
6
6
  if (typeof err === 'object' && err?.message) {
7
7
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../../src/errors/encoding.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAGF,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAwB,EAAE;IAC5D,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,EAAE,OAAO,EAAE,CAAC;QAC5C,OAAO;YACL,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,KAAK,EAAE,GAAG,CAAC,KAAK;SACjB,CAAC;IACJ,CAAC;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO;YAC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