@dxos/protocols 0.8.4-main.f9ba587 → 0.8.4-main.fcfe5033a5

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 (429) hide show
  1. package/README.md +1 -1
  2. package/dist/src/FeedProtocol.d.ts +528 -0
  3. package/dist/src/FeedProtocol.d.ts.map +1 -0
  4. package/dist/src/FeedProtocol.js +237 -0
  5. package/dist/src/FeedProtocol.js.map +1 -0
  6. package/dist/src/FunctionProtocol.d.ts +82 -0
  7. package/dist/src/FunctionProtocol.d.ts.map +1 -0
  8. package/dist/src/FunctionProtocol.js +4 -0
  9. package/dist/src/FunctionProtocol.js.map +1 -0
  10. package/dist/src/automerge.d.ts +8 -0
  11. package/dist/src/automerge.d.ts.map +1 -1
  12. package/dist/src/automerge.js.map +1 -1
  13. package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.d.ts +1 -1
  14. package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.js +1 -1
  15. package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.d.ts +1 -1
  16. package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.js +1 -1
  17. package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.d.ts +1 -1
  18. package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.js +1 -1
  19. package/dist/src/buf/proto/gen/dxos/agent/functions_pb.d.ts +1 -1
  20. package/dist/src/buf/proto/gen/dxos/agent/functions_pb.js +1 -1
  21. package/dist/src/buf/proto/gen/dxos/bot_pb.d.ts +1 -1
  22. package/dist/src/buf/proto/gen/dxos/bot_pb.js +1 -1
  23. package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts +1 -1
  24. package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js +1 -1
  25. package/dist/src/buf/proto/gen/dxos/client/logging_pb.d.ts +1 -1
  26. package/dist/src/buf/proto/gen/dxos/client/logging_pb.js +1 -1
  27. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +231 -0
  28. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
  29. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +44 -0
  30. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
  31. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +129 -22
  32. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  33. package/dist/src/buf/proto/gen/dxos/client/services_pb.js +90 -54
  34. package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  35. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +142 -7
  36. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
  37. package/dist/src/buf/proto/gen/dxos/config_pb.js +78 -2
  38. package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
  39. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.d.ts +1 -1
  40. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.js +1 -1
  41. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts +1 -1
  42. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +1 -1
  43. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.d.ts +1 -1
  44. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.js +1 -1
  45. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.d.ts +1 -1
  46. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.js +1 -1
  47. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.d.ts +1 -1
  48. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.js +1 -1
  49. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +1 -1
  50. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
  51. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.d.ts +1 -1
  52. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.js +1 -1
  53. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +7 -1
  54. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts.map +1 -1
  55. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +2 -2
  56. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
  57. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.d.ts +1 -1
  58. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.js +1 -1
  59. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.d.ts +1 -1
  60. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.js +1 -1
  61. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.d.ts +1 -1
  62. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.js +1 -1
  63. package/dist/src/buf/proto/gen/dxos/echo/object_pb.d.ts +1 -1
  64. package/dist/src/buf/proto/gen/dxos/echo/object_pb.js +1 -1
  65. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +13 -3
  66. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
  67. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +2 -2
  68. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
  69. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +71 -10
  70. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
  71. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +16 -6
  72. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
  73. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.d.ts +1 -1
  74. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.js +1 -1
  75. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.d.ts +1 -1
  76. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.js +1 -1
  77. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +1 -1
  78. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.js +1 -1
  79. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +29 -1
  80. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts.map +1 -1
  81. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +11 -6
  82. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
  83. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.d.ts +1 -1
  84. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.js +1 -1
  85. package/dist/src/buf/proto/gen/dxos/error_pb.d.ts +1 -1
  86. package/dist/src/buf/proto/gen/dxos/error_pb.js +1 -1
  87. package/dist/src/buf/proto/gen/dxos/field_options_pb.d.ts +1 -1
  88. package/dist/src/buf/proto/gen/dxos/field_options_pb.js +1 -1
  89. package/dist/src/buf/proto/gen/dxos/google_pb.d.ts +1 -1
  90. package/dist/src/buf/proto/gen/dxos/google_pb.js +2 -2
  91. package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
  92. package/dist/src/buf/proto/gen/dxos/gravity_pb.d.ts +1 -1
  93. package/dist/src/buf/proto/gen/dxos/gravity_pb.js +1 -1
  94. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.d.ts +1 -1
  95. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.js +1 -1
  96. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.d.ts +1 -1
  97. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.js +1 -1
  98. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.d.ts +1 -1
  99. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.js +1 -1
  100. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +40 -1
  101. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts.map +1 -1
  102. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +28 -3
  103. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
  104. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts +1 -1
  105. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +1 -1
  106. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.d.ts +1 -1
  107. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.js +1 -1
  108. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.d.ts +1 -1
  109. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.js +1 -1
  110. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.d.ts +1 -1
  111. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.js +1 -1
  112. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +2 -11
  113. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
  114. package/dist/src/buf/proto/gen/dxos/iframe_pb.js +2 -2
  115. package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
  116. package/dist/src/buf/proto/gen/dxos/keys_pb.d.ts +1 -1
  117. package/dist/src/buf/proto/gen/dxos/keys_pb.js +1 -1
  118. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.d.ts +1 -1
  119. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.js +1 -1
  120. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.d.ts +1 -1
  121. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.js +1 -1
  122. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.d.ts +1 -1
  123. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.js +1 -1
  124. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.d.ts +1 -1
  125. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.js +1 -1
  126. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.d.ts +1 -1
  127. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.js +1 -1
  128. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.d.ts +1 -1
  129. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.js +1 -1
  130. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.d.ts +1 -1
  131. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.js +1 -1
  132. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.d.ts +1 -1
  133. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.js +1 -1
  134. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.d.ts +1 -1
  135. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.js +1 -1
  136. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.d.ts +1 -1
  137. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.js +1 -1
  138. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.d.ts +1 -1
  139. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.js +1 -1
  140. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.d.ts +1 -1
  141. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.js +1 -1
  142. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.d.ts +1 -1
  143. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.js +1 -1
  144. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.d.ts +1 -1
  145. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.js +1 -1
  146. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.d.ts +1 -1
  147. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.js +1 -1
  148. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.d.ts +1 -1
  149. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.js +1 -1
  150. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.d.ts +1 -1
  151. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.js +1 -1
  152. package/dist/src/buf/proto/gen/dxos/registry_pb.d.ts +1 -1
  153. package/dist/src/buf/proto/gen/dxos/registry_pb.js +1 -1
  154. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +25 -1
  155. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
  156. package/dist/src/buf/proto/gen/dxos/rpc_pb.js +13 -8
  157. package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +1 -1
  158. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.d.ts +1 -1
  159. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.js +1 -1
  160. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.d.ts +1 -1
  161. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.js +1 -1
  162. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.d.ts +1 -1
  163. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.js +1 -1
  164. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.d.ts +1 -1
  165. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.js +1 -1
  166. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -139
  167. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts.map +1 -1
  168. package/dist/src/buf/proto/gen/dxos/tracing_pb.js +11 -45
  169. package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
  170. package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
  171. package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
  172. package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
  173. package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
  174. package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
  175. package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
  176. package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
  177. package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
  178. package/dist/src/codec.test.js +1 -1
  179. package/dist/src/edge/EdgeFunctionEnv.d.ts +108 -0
  180. package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
  181. package/dist/src/edge/EdgeFunctionEnv.js +4 -0
  182. package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
  183. package/dist/src/edge/edge.d.ts +511 -0
  184. package/dist/src/edge/edge.d.ts.map +1 -0
  185. package/dist/src/edge/edge.js +173 -0
  186. package/dist/src/edge/edge.js.map +1 -0
  187. package/dist/src/edge/errors.d.ts +29 -0
  188. package/dist/src/edge/errors.d.ts.map +1 -0
  189. package/dist/src/edge/errors.js +69 -0
  190. package/dist/src/edge/errors.js.map +1 -0
  191. package/dist/src/edge/index.d.ts +5 -0
  192. package/dist/src/edge/index.d.ts.map +1 -0
  193. package/dist/src/edge/index.js +8 -0
  194. package/dist/src/edge/index.js.map +1 -0
  195. package/dist/src/edge/registry.d.ts +127 -0
  196. package/dist/src/edge/registry.d.ts.map +1 -0
  197. package/dist/src/edge/registry.js +79 -0
  198. package/dist/src/edge/registry.js.map +1 -0
  199. package/dist/src/errors/base-errors.d.ts +86 -8
  200. package/dist/src/errors/base-errors.d.ts.map +1 -1
  201. package/dist/src/errors/base-errors.js +4 -19
  202. package/dist/src/errors/base-errors.js.map +1 -1
  203. package/dist/src/errors/encoding.d.ts +2 -2
  204. package/dist/src/errors/encoding.d.ts.map +1 -1
  205. package/dist/src/errors/encoding.js +1 -1
  206. package/dist/src/errors/encoding.js.map +1 -1
  207. package/dist/src/errors/errors.d.ts +619 -42
  208. package/dist/src/errors/errors.d.ts.map +1 -1
  209. package/dist/src/errors/errors.js +50 -104
  210. package/dist/src/errors/errors.js.map +1 -1
  211. package/dist/src/errors/errors.test.js +2 -2
  212. package/dist/src/errors/errors.test.js.map +1 -1
  213. package/dist/src/errors/helpers.d.ts +9 -5
  214. package/dist/src/errors/helpers.d.ts.map +1 -1
  215. package/dist/src/errors/helpers.js +3 -3
  216. package/dist/src/errors/helpers.js.map +1 -1
  217. package/dist/src/errors/index.d.ts +5 -5
  218. package/dist/src/errors/index.js +5 -5
  219. package/dist/src/feed-replication.d.ts.map +1 -1
  220. package/dist/src/index.d.ts +12 -12
  221. package/dist/src/index.d.ts.map +1 -1
  222. package/dist/src/index.js +11 -12
  223. package/dist/src/index.js.map +1 -1
  224. package/dist/src/indexing.d.ts +1 -1
  225. package/dist/src/indexing.d.ts.map +1 -1
  226. package/dist/src/indexing.js +1 -1
  227. package/dist/src/indexing.js.map +1 -1
  228. package/dist/src/indexing.test.js +1 -1
  229. package/dist/src/invitation.d.ts +1 -1
  230. package/dist/src/invitation.d.ts.map +1 -1
  231. package/dist/src/invitation.js +1 -1
  232. package/dist/src/invitation.js.map +1 -1
  233. package/dist/src/messenger.d.ts +16 -0
  234. package/dist/src/messenger.d.ts.map +1 -0
  235. package/dist/src/messenger.js +4 -0
  236. package/dist/src/messenger.js.map +1 -0
  237. package/dist/src/proto/gen/dxos/client/services.d.ts +190 -5
  238. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  239. package/dist/src/proto/gen/dxos/client/services.js +22 -6
  240. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  241. package/dist/src/proto/gen/dxos/config.d.ts +87 -2
  242. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  243. package/dist/src/proto/gen/dxos/config.js +26 -0
  244. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  245. package/dist/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  246. package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  247. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +4 -0
  248. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  249. package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -1
  250. package/dist/src/proto/gen/dxos/echo/query.d.ts +17 -1
  251. package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  252. package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
  253. package/dist/src/proto/gen/dxos/echo/service.d.ts +43 -8
  254. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  255. package/dist/src/proto/gen/dxos/edge/messenger.d.ts +24 -0
  256. package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
  257. package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
  258. package/dist/src/proto/gen/dxos/halo/credentials.d.ts +15 -1
  259. package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  260. package/dist/src/proto/gen/dxos/halo/credentials.js +9 -0
  261. package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
  262. package/dist/src/proto/gen/dxos/iframe.d.ts +0 -10
  263. package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  264. package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
  265. package/dist/src/proto/gen/dxos/rpc.d.ts +19 -0
  266. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  267. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  268. package/dist/src/proto/gen/dxos/tracing.d.ts +0 -79
  269. package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
  270. package/dist/src/proto/gen/google/protobuf.d.ts +326 -40
  271. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  272. package/dist/src/proto/gen/google/protobuf.js +127 -1
  273. package/dist/src/proto/gen/google/protobuf.js.map +1 -1
  274. package/dist/src/proto/gen/index.d.ts +42 -7
  275. package/dist/src/proto/gen/index.d.ts.map +1 -1
  276. package/dist/src/proto/gen/index.js +1 -1
  277. package/dist/src/proto/gen/index.js.map +1 -1
  278. package/dist/src/proto/index.d.ts +2 -2
  279. package/dist/src/proto/index.d.ts.map +1 -1
  280. package/dist/src/proto/index.js +1 -2
  281. package/dist/src/proto/index.js.map +1 -1
  282. package/dist/src/proto/types.d.ts +1 -1
  283. package/dist/src/space-archive.d.ts +60 -1
  284. package/dist/src/space-archive.d.ts.map +1 -1
  285. package/dist/src/space-archive.js +13 -1
  286. package/dist/src/space-archive.js.map +1 -1
  287. package/dist/src/types.d.ts +2 -2
  288. package/dist/tsconfig.tsbuildinfo +1 -1
  289. package/package.json +19 -17
  290. package/src/FeedProtocol.ts +320 -0
  291. package/src/FunctionProtocol.ts +102 -0
  292. package/src/automerge.ts +8 -0
  293. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
  294. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
  295. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
  296. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
  297. package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
  298. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
  299. package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
  300. package/src/buf/proto/gen/dxos/client/queue_pb.ts +280 -0
  301. package/src/buf/proto/gen/dxos/client/services_pb.ts +191 -62
  302. package/src/buf/proto/gen/dxos/config_pb.ts +166 -10
  303. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +3 -3
  304. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +3 -3
  305. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +3 -3
  306. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +3 -3
  307. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +3 -3
  308. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +3 -3
  309. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +3 -3
  310. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +11 -4
  311. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +3 -3
  312. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +3 -3
  313. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +3 -3
  314. package/src/buf/proto/gen/dxos/echo/object_pb.ts +3 -3
  315. package/src/buf/proto/gen/dxos/echo/query_pb.ts +18 -6
  316. package/src/buf/proto/gen/dxos/echo/service_pb.ts +87 -18
  317. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +3 -3
  318. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +3 -3
  319. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +3 -3
  320. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +41 -8
  321. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +3 -3
  322. package/src/buf/proto/gen/dxos/error_pb.ts +3 -3
  323. package/src/buf/proto/gen/dxos/field_options_pb.ts +3 -3
  324. package/src/buf/proto/gen/dxos/google_pb.ts +3 -3
  325. package/src/buf/proto/gen/dxos/gravity_pb.ts +3 -3
  326. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +3 -3
  327. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +3 -3
  328. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +3 -3
  329. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +51 -5
  330. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +3 -3
  331. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +3 -3
  332. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +3 -3
  333. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +3 -3
  334. package/src/buf/proto/gen/dxos/iframe_pb.ts +5 -16
  335. package/src/buf/proto/gen/dxos/keys_pb.ts +3 -3
  336. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +3 -3
  337. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +3 -3
  338. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +3 -3
  339. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +3 -3
  340. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +3 -3
  341. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +3 -3
  342. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +3 -3
  343. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +3 -3
  344. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +3 -3
  345. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +3 -3
  346. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +3 -3
  347. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +3 -3
  348. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +3 -3
  349. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +3 -3
  350. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +3 -3
  351. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +3 -3
  352. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +3 -3
  353. package/src/buf/proto/gen/dxos/registry_pb.ts +3 -3
  354. package/src/buf/proto/gen/dxos/rpc_pb.ts +39 -10
  355. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +3 -3
  356. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +3 -3
  357. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +3 -3
  358. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +3 -3
  359. package/src/buf/proto/gen/dxos/tracing_pb.ts +12 -179
  360. package/src/buf/proto/gen/dxos/type_pb.ts +3 -3
  361. package/src/buf/proto/gen/dxos/value_pb.ts +3 -3
  362. package/src/buf/proto/gen/example/testing/data_pb.ts +3 -3
  363. package/src/buf/proto/gen/example/testing/rpc_pb.ts +3 -3
  364. package/src/codec.test.ts +1 -1
  365. package/src/edge/EdgeFunctionEnv.ts +191 -0
  366. package/src/edge/edge.ts +604 -0
  367. package/src/edge/errors.ts +85 -0
  368. package/src/edge/index.ts +8 -0
  369. package/src/edge/registry.ts +96 -0
  370. package/src/errors/base-errors.ts +4 -20
  371. package/src/errors/encoding.ts +2 -2
  372. package/src/errors/errors.test.ts +2 -2
  373. package/src/errors/errors.ts +57 -123
  374. package/src/errors/helpers.ts +6 -6
  375. package/src/errors/index.ts +5 -5
  376. package/src/feed-replication.ts +1 -0
  377. package/src/index.ts +12 -12
  378. package/src/indexing.test.ts +1 -1
  379. package/src/indexing.ts +1 -1
  380. package/src/invitation.ts +1 -1
  381. package/src/messenger.ts +22 -0
  382. package/src/proto/dxos/client/queue.proto +78 -0
  383. package/src/proto/dxos/client/services.proto +39 -4
  384. package/src/proto/dxos/config.proto +83 -40
  385. package/src/proto/dxos/echo/metadata.proto +3 -0
  386. package/src/proto/dxos/echo/query.proto +4 -1
  387. package/src/proto/dxos/echo/service.proto +38 -6
  388. package/src/proto/dxos/edge/messenger.proto +10 -0
  389. package/src/proto/dxos/halo/credentials.proto +15 -0
  390. package/src/proto/dxos/iframe.proto +1 -3
  391. package/src/proto/dxos/rpc.proto +7 -0
  392. package/src/proto/dxos/tracing.proto +0 -40
  393. package/src/proto/gen/dxos/client/services.ts +190 -5
  394. package/src/proto/gen/dxos/config.ts +87 -2
  395. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  396. package/src/proto/gen/dxos/echo/metadata.ts +4 -0
  397. package/src/proto/gen/dxos/echo/query.ts +17 -1
  398. package/src/proto/gen/dxos/echo/service.ts +42 -8
  399. package/src/proto/gen/dxos/edge/messenger.ts +24 -0
  400. package/src/proto/gen/dxos/halo/credentials.ts +15 -1
  401. package/src/proto/gen/dxos/iframe.ts +0 -10
  402. package/src/proto/gen/dxos/rpc.ts +19 -0
  403. package/src/proto/gen/dxos/tracing.ts +0 -76
  404. package/src/proto/gen/google/protobuf.ts +326 -40
  405. package/src/proto/gen/index.ts +43 -8
  406. package/src/proto/index.ts +2 -2
  407. package/src/proto/types.ts +1 -1
  408. package/src/space-archive.ts +70 -1
  409. package/src/types.ts +2 -2
  410. package/dist/src/edge-error.d.ts +0 -26
  411. package/dist/src/edge-error.d.ts.map +0 -1
  412. package/dist/src/edge-error.js +0 -62
  413. package/dist/src/edge-error.js.map +0 -1
  414. package/dist/src/edge.d.ts +0 -198
  415. package/dist/src/edge.d.ts.map +0 -1
  416. package/dist/src/edge.js +0 -43
  417. package/dist/src/edge.js.map +0 -1
  418. package/dist/src/query.d.ts +0 -5
  419. package/dist/src/query.d.ts.map +0 -1
  420. package/dist/src/query.js +0 -8
  421. package/dist/src/query.js.map +0 -1
  422. package/dist/src/queue.d.ts +0 -24
  423. package/dist/src/queue.d.ts.map +0 -1
  424. package/dist/src/queue.js +0 -4
  425. package/dist/src/queue.js.map +0 -1
  426. package/src/edge-error.ts +0 -79
  427. package/src/edge.ts +0 -222
  428. package/src/query.ts +0 -8
  429. package/src/queue.ts +0 -33
@@ -0,0 +1,237 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+ export const KEY_QUEUE_POSITION = 'org.dxos.key.queue-position';
5
+ import * as Schema from 'effect/Schema';
6
+ import { invariant } from '@dxos/invariant';
7
+ import { SpaceId } from '@dxos/keys';
8
+ import { EdgeService } from './edge/edge.js';
9
+ /**
10
+ * Opaque pagination cursor for feed queries.
11
+ */
12
+ export const FeedCursor = Schema.String.pipe(Schema.brand('@dxos/feed/FeedCursor'));
13
+ /**
14
+ * Replicated queue block payload and ordering metadata.
15
+ */
16
+ export const Block = Schema.Struct({
17
+ /**
18
+ * Appears on blocks returned from query.
19
+ */
20
+ feedId: Schema.UndefinedOr(Schema.String),
21
+ /**
22
+ * Actor that produced this block.
23
+ */
24
+ actorId: Schema.String,
25
+ /**
26
+ * Per-feed monotonic sequence assigned by the actor.
27
+ */
28
+ sequence: Schema.Number,
29
+ /**
30
+ * Actor of the immediate predecessor block, if any.
31
+ */
32
+ prevActorId: Schema.NullOr(Schema.String),
33
+ /**
34
+ * Sequence of the immediate predecessor block, if any.
35
+ */
36
+ prevSequence: Schema.NullOr(Schema.Number),
37
+ /**
38
+ * Globally ordered position assigned by a position authority.
39
+ * Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
40
+ */
41
+ position: Schema.NullOr(Schema.Number),
42
+ /**
43
+ * Milliseconds since Unix epoch when the block was created.
44
+ */
45
+ timestamp: Schema.Number,
46
+ /**
47
+ * Serialized application payload.
48
+ */
49
+ data: Schema.Uint8Array,
50
+ /**
51
+ * Local insertion ID.
52
+ * Not replicated.
53
+ */
54
+ // TODO(dmaretskyi): Remove. Use cursors.
55
+ insertionId: Schema.optional(Schema.Number),
56
+ });
57
+ //
58
+ // RPC Schemas
59
+ //
60
+ /**
61
+ * Query parameters for retrieving blocks from one namespace in one space.
62
+ */
63
+ export const QueryRequest = Schema.Struct({
64
+ /**
65
+ * Optional request correlation identifier.
66
+ */
67
+ requestId: Schema.optional(Schema.String),
68
+ /**
69
+ * Target space identifier.
70
+ */
71
+ spaceId: SpaceId,
72
+ /**
73
+ * Feed namespace to query.
74
+ */
75
+ feedNamespace: Schema.String,
76
+ query: Schema.optional(Schema.Union(Schema.Struct({
77
+ /**
78
+ * Explicit list of feed IDs to read from.
79
+ */
80
+ feedIds: Schema.Array(Schema.String),
81
+ }), Schema.Struct({
82
+ /**
83
+ * Existing subscription to resolve feed IDs from.
84
+ */
85
+ subscriptionId: Schema.String,
86
+ }))),
87
+ /**
88
+ * Get changes following this cursor (exclusive).
89
+ *
90
+ * Must not be used with `position`.
91
+ */
92
+ cursor: Schema.optional(FeedCursor),
93
+ /**
94
+ * Get changes following this position.
95
+ * Returned blocks have strictly greater position than this.
96
+ *
97
+ * Must not be used with `cursor`.
98
+ */
99
+ position: Schema.optional(Schema.Number),
100
+ /**
101
+ * Only return blocks that are not positioned.
102
+ *
103
+ * Must not be used with `cursor` or `position`.
104
+ */
105
+ unpositionedOnly: Schema.optional(Schema.Boolean),
106
+ /**
107
+ * Maximum number of blocks to return.
108
+ */
109
+ limit: Schema.optional(Schema.Number),
110
+ });
111
+ /**
112
+ * Result payload for a query operation.
113
+ */
114
+ export const QueryResponse = Schema.Struct({
115
+ /**
116
+ * Echoed request correlation identifier.
117
+ */
118
+ requestId: Schema.optional(Schema.String),
119
+ /**
120
+ * Cursor to continue reading from this result boundary.
121
+ */
122
+ nextCursor: FeedCursor,
123
+ /**
124
+ * Indicates whether more matching blocks are available.
125
+ */
126
+ hasMore: Schema.Boolean,
127
+ /**
128
+ * Returned blocks for the current page.
129
+ */
130
+ blocks: Schema.Array(Block),
131
+ });
132
+ /**
133
+ * Parameters for creating or refreshing a feed subscription.
134
+ */
135
+ export const SubscribeRequest = Schema.Struct({
136
+ /**
137
+ * Optional request correlation identifier.
138
+ */
139
+ requestId: Schema.optional(Schema.String),
140
+ /**
141
+ * Optional space scope for the subscription.
142
+ */
143
+ spaceId: Schema.optional(Schema.String),
144
+ /**
145
+ * Feeds to include in the subscription.
146
+ */
147
+ feedIds: Schema.Array(Schema.String),
148
+ });
149
+ /**
150
+ * Response payload for subscription creation.
151
+ */
152
+ export const SubscribeResponse = Schema.Struct({
153
+ /**
154
+ * Echoed request correlation identifier.
155
+ */
156
+ requestId: Schema.optional(Schema.String),
157
+ /**
158
+ * Identifier to use in subsequent subscription queries.
159
+ */
160
+ subscriptionId: Schema.String,
161
+ /**
162
+ * Expiration timestamp in milliseconds since Unix epoch.
163
+ */
164
+ expiresAt: Schema.Number,
165
+ });
166
+ /**
167
+ * Request payload for appending one or more blocks.
168
+ */
169
+ export const AppendRequest = Schema.Struct({
170
+ /**
171
+ * Optional request correlation identifier.
172
+ */
173
+ requestId: Schema.optional(Schema.String),
174
+ /**
175
+ * Target space identifier.
176
+ */
177
+ spaceId: Schema.String,
178
+ /**
179
+ * Namespace that all appended blocks belong to.
180
+ */
181
+ feedNamespace: Schema.String,
182
+ /**
183
+ * Blocks to append.
184
+ */
185
+ blocks: Schema.Array(Block),
186
+ });
187
+ /**
188
+ * Result payload for append operations.
189
+ */
190
+ export const AppendResponse = Schema.Struct({
191
+ /**
192
+ * Echoed request correlation identifier.
193
+ */
194
+ requestId: Schema.optional(Schema.String),
195
+ /**
196
+ * Assigned global positions for appended blocks.
197
+ */
198
+ positions: Schema.Array(Schema.Number),
199
+ });
200
+ /**
201
+ * Tagged transport message union for queue protocol RPC traffic.
202
+ */
203
+ export const ProtocolMessage = Schema.Union(Schema.TaggedStruct('QueryRequest', QueryRequest.fields), Schema.TaggedStruct('QueryResponse', QueryResponse.fields), Schema.TaggedStruct('SubscribeRequest', SubscribeRequest.fields), Schema.TaggedStruct('SubscribeResponse', SubscribeResponse.fields), Schema.TaggedStruct('AppendRequest', AppendRequest.fields), Schema.TaggedStruct('AppendResponse', AppendResponse.fields), Schema.TaggedStruct('Error', {
204
+ /**
205
+ * Human-readable error message.
206
+ */
207
+ message: Schema.String,
208
+ })).pipe(Schema.extend(Schema.Struct({
209
+ senderPeerId: Schema.UndefinedOr(Schema.String),
210
+ /**
211
+ * Could be undefined if the recipient could be assumed from the context.
212
+ */
213
+ recipientPeerId: Schema.UndefinedOr(Schema.String),
214
+ })));
215
+ /**
216
+ * Reserved namespaces with protocol-level semantics.
217
+ */
218
+ export const WellKnownNamespaces = {
219
+ data: 'data',
220
+ trace: 'trace',
221
+ };
222
+ export const isWellKnownNamespace = (namespace) => Object.values(WellKnownNamespaces).includes(namespace);
223
+ /**
224
+ * Encodes queue replicator service identifier as `<service>:<namespace>:<spaceId>`.
225
+ */
226
+ export const encodeServiceId = (namespace, spaceId) => `${EdgeService.QUEUE_REPLICATOR}:${namespace}:${spaceId}`;
227
+ /**
228
+ * Decodes and validates queue replicator service identifier.
229
+ */
230
+ export const decodeServiceId = (serviceId) => {
231
+ const [service, namespace, spaceId] = serviceId.split(':');
232
+ invariant(service === EdgeService.QUEUE_REPLICATOR, `Invalid service: ${service}`);
233
+ invariant(isWellKnownNamespace(namespace), `Invalid namespace: ${namespace}`);
234
+ invariant(SpaceId.isValid(spaceId), `Invalid spaceId: ${spaceId}`);
235
+ return { namespace: namespace, spaceId };
236
+ };
237
+ //# sourceM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,GAAG,CAC7B,SAAiB,EACkD,EAAE;IACrE,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3D,SAAS,CAAC,OAAO,KAAK,WAAW,CAAC,gBAAgB,EAAE,oBAAoB,OAAO,EAAE,CAAC,CAAC;IACnF,SAAS,CAAC,oBAAoB,CAAC,SAAS,CAAC,EAAE,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAC9E,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,oBAAoB,OAAO,EAAE,CAAC,CAAC;IACnE,OAAO,EAAE,SAAS,EAAE,SAA6C,EAAE,OAAO,EAAE,CAAC;AAC/E,CAAC,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { type SpaceId } from '@dxos/keys';
2
+ import type * as QueryProto from '@dxos/protocols/proto/dxos/echo/query';
3
+ import type * as DataProto from '@dxos/protocols/proto/dxos/echo/service';
4
+ import { type EdgeFunctionEnv } from './edge';
5
+ import type * as FeedProtocol from './FeedProtocol';
6
+ /**
7
+ * Function implementation.
8
+ * This is a contract between the user-defined function and the runtime.
9
+ */
10
+ export interface Func {
11
+ readonly meta: Meta;
12
+ readonly handler: Handler;
13
+ }
14
+ /**
15
+ * Function metadata.
16
+ */
17
+ export interface Meta {
18
+ readonly key: string;
19
+ name?: string;
20
+ description?: string;
21
+ /**
22
+ * Required services.
23
+ */
24
+ readonly services: readonly string[];
25
+ /**
26
+ * JSON schema format
27
+ */
28
+ readonly inputSchema: unknown;
29
+ /**
30
+ * JSON schema format.
31
+ */
32
+ readonly outputSchema?: unknown;
33
+ }
34
+ /**
35
+ * Function handler.
36
+ * Executed by the runtime
37
+ */
38
+ export type Handler = (opts: {
39
+ data: unknown;
40
+ context: Context;
41
+ }) => Promise<unknown>;
42
+ /**
43
+ * Function context.
44
+ */
45
+ export interface Context {
46
+ services: {
47
+ /**
48
+ * Query service.
49
+ * Available if the function is invoked in context of a space.
50
+ */
51
+ queryService?: QueryProto.QueryService;
52
+ /**
53
+ * Data service.
54
+ * Available if the function is invoked in context of a space.
55
+ */
56
+ dataService?: DataProto.DataService;
57
+ /**
58
+ * Queue service.
59
+ * Available if the function is invoked in context of a space.
60
+ */
61
+ queueService?: FeedProtocol.QueueService;
62
+ /**
63
+ * Functions service.
64
+ * Available if the function is invoked in context of a space.
65
+ */
66
+ functionsAiService?: EdgeFunctionEnv.FunctionsAiService;
67
+ };
68
+ /**
69
+ * That space that the function is invoked in context of.
70
+ */
71
+ spaceId?: SpaceId;
72
+ /**
73
+ * Hex-encoded space key.
74
+ * @deprecated We need to remove this but ECHO keeps dragging this in.
75
+ */
76
+ spaceKey?: string;
77
+ /**
78
+ * Automerge URL of the space-root document.
79
+ */
80
+ spaceRootUrl?: string;
81
+ }
82
+ //# sourceMappingURL=FunctionProtocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionProtocol.d.ts","sourceRoot":"","sources":["../../src/FunctionProtocol.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,KAAK,UAAU,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,KAAK,SAAS,MAAM,yCAAyC,CAAC;AAE1E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAWpD;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE;QACR;;;WAGG;QACH,YAAY,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC;QAEvC;;;WAGG;QACH,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;QAEpC;;;WAGG;QACH,YAAY,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;QAEzC;;;WAGG;QACH,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC;KACzD,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,4 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+ //# sourceMappingURL=FunctionProtocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionProtocol.js","sourceRoot":"","sources":["../../src/FunctionProtocol.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
@@ -12,6 +12,7 @@ export type LeaveProtocolMessage = {
12
12
  type: 'leave';
13
13
  targetId?: PeerId;
14
14
  senderId: PeerId;
15
+ metadata?: Record<string, unknown>;
15
16
  };
16
17
  export type PeerProtocolMessage = {
17
18
  type: 'peer';
@@ -33,6 +34,7 @@ export type RequestProtocolMessage = {
33
34
  targetId: PeerId;
34
35
  documentId: string;
35
36
  data: Uint8Array;
37
+ metadata?: Record<string, unknown>;
36
38
  };
37
39
  /**
38
40
  * A sync message for a particular document
@@ -43,6 +45,7 @@ export type SyncProtocolMessage = {
43
45
  targetId: PeerId;
44
46
  documentId: string;
45
47
  data: Uint8Array;
48
+ metadata?: Record<string, unknown>;
46
49
  };
47
50
  /**
48
51
  * Sent by a {@link Repo} to indicate that it does not have the document and none of its connected
@@ -53,6 +56,7 @@ export type UnavailableProtocolMessage = {
53
56
  senderId: PeerId;
54
57
  targetId: PeerId;
55
58
  documentId: string;
59
+ metadata?: Record<string, unknown>;
56
60
  };
57
61
  /**
58
62
  * An ephemeral message.
@@ -73,12 +77,14 @@ export type EphemeralProtocolMessage = {
73
77
  sessionId: string;
74
78
  documentId: string;
75
79
  data: Uint8Array;
80
+ metadata?: Record<string, unknown>;
76
81
  };
77
82
  export type ErrorProtocolMessage = {
78
83
  type: 'error';
79
84
  senderId?: PeerId;
80
85
  targetId?: PeerId;
81
86
  message: string;
87
+ metadata?: Record<string, unknown>;
82
88
  };
83
89
  export declare const MESSAGE_TYPE_COLLECTION_QUERY = "collection-query";
84
90
  export type CollectionQueryMessage = {
@@ -91,6 +97,7 @@ export type CollectionQueryMessage = {
91
97
  * Remote peer will skip sending the state if it has the same tag.
92
98
  */
93
99
  stateTag?: string;
100
+ metadata?: Record<string, unknown>;
94
101
  };
95
102
  export declare const MESSAGE_TYPE_COLLECTION_STATE = "collection-state";
96
103
  export type CollectionStateMessage = {
@@ -106,6 +113,7 @@ export type CollectionStateMessage = {
106
113
  * Identifier of the current state.
107
114
  */
108
115
  stateTag?: string;
116
+ metadata?: Record<string, unknown>;
109
117
  };
110
118
  export type AutomergeProtocolMessage = JoinProtocolMessage | PeerProtocolMessage | LeaveProtocolMessage | RequestProtocolMessage | SyncProtocolMessage | UnavailableProtocolMessage | EphemeralProtocolMessage | ErrorProtocolMessage | CollectionQueryMessage | CollectionStateMessage;
111
119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AC;AAEhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,OAAO,6BAA6B,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,6BAA6B,qBAAqB,CAAC;AAEhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,OAAO,6BAA6B,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAChC,mBAAmB,GACnB,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,0BAA0B,GAC1B,wBAAwB,GACxB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"automerge.js","sourceRoot":"","sources":["../../src/automerge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AA2FF,MAAM,CAAC,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAehE,MAAM,CAAC,MAAM,6BAA6B,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"automerge.js","sourceRoot":"","sources":["../../src/automerge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAiGF,MAAM,CAAC,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAgBhE,MAAM,CAAC,MAAM,6BAA6B,GAAG,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Runtime_Agent_Plugin } from "../config_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_config } from "../config_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file dxos/agent/echo-proxy.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file dxos/agent/echo-proxy.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file dxos/agent/epoch.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file dxos/agent/epoch.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/agent/functions.proto.
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { Invitation } from "./client/invitation_pb.js";
4
4
  import type { Config } from "./config_pb.js";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_client_invitation } from "./client/invitation_pb.js";
7
7
  import { file_dxos_config } from "./config_pb.js";
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { SpaceMember_Role } from "../halo/credentials_pb.js";
4
4
  import type { PrivateKey, PublicKey } from "../keys_pb.js";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_config } from "../config_pb.js";
7
7
  import { file_dxos_devtools_swarm } from "../devtools/swarm_pb.js";
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { Error } from "../error_pb.js";
4
4
  import type { Stats, Value } from "../value_pb.js";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_config } from "../config_pb.js";
7
7
  import { file_dxos_echo_metadata } from "../echo/metadata_pb.js";