@dxos/protocols 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33
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/README.md +1 -1
- package/dist/src/FeedProtocol.d.ts +528 -0
- package/dist/src/FeedProtocol.d.ts.map +1 -0
- package/dist/src/FeedProtocol.js +237 -0
- package/dist/src/FeedProtocol.js.map +1 -0
- package/dist/src/FunctionProtocol.d.ts +2 -2
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +53 -5
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +8 -3
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +64 -3
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js +68 -37
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +104 -2
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +72 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +6 -0
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +28 -0
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +10 -5
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +39 -0
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +27 -2
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +0 -10
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +24 -0
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js +12 -7
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -139
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js +11 -45
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +12 -24
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +172 -1
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +20 -1
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/errors.d.ts +1 -1
- package/dist/src/edge/errors.d.ts.map +1 -1
- package/dist/src/edge/errors.js.map +1 -1
- package/dist/src/edge/index.d.ts +4 -3
- package/dist/src/edge/index.d.ts.map +1 -1
- package/dist/src/edge/index.js +1 -0
- package/dist/src/edge/index.js.map +1 -1
- package/dist/src/edge/registry.d.ts +164 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +104 -0
- package/dist/src/edge/registry.js.map +1 -0
- package/dist/src/errors/base-errors.d.ts +18 -18
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/encoding.d.ts +2 -2
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +133 -133
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +3 -3
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/index.d.ts +5 -5
- package/dist/src/errors/parameter.d.ts.map +1 -1
- package/dist/src/index.d.ts +11 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/dashboard.d.ts +3 -6
- package/dist/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
- package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -2
- package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/epoch.d.ts +1 -2
- package/dist/src/proto/gen/dxos/agent/epoch.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/functions.d.ts +6 -12
- package/dist/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.d.ts +12 -24
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +1027 -1040
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +107 -94
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +104 -101
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +26 -0
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +71 -119
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts +4 -8
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/blob.d.ts +1 -2
- package/dist/src/proto/gen/dxos/echo/blob.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/blob.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +4 -8
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/filter.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/filter.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/indexing.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/indexing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/indexing.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +12 -16
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/document.d.ts +11 -22
- package/dist/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +1 -2
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/object.d.ts +6 -12
- package/dist/src/proto/gen/dxos/echo/object.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/object.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts +4 -8
- package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +17 -34
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/calls.d.ts +5 -10
- package/dist/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts +28 -10
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
- package/dist/src/proto/gen/dxos/edge/signal.d.ts +7 -14
- package/dist/src/proto/gen/dxos/edge/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/error.d.ts +1 -2
- package/dist/src/proto/gen/dxos/error.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/gravity.d.ts +10 -20
- package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +1 -2
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +6 -12
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +2 -4
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts +35 -43
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js +9 -0
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts +13 -26
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts +1 -2
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -4
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/signed.d.ts +4 -8
- package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.d.ts +4 -18
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/src/proto/gen/dxos/keys.d.ts +2 -4
- package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +12 -24
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts +5 -10
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts +9 -18
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +6 -12
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts +5 -10
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/registry.d.ts +3 -6
- package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +24 -12
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/agentmanager.d.ts +4 -8
- package/dist/src/proto/gen/dxos/service/agentmanager.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/agentmanager.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +5 -10
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/supervisor.d.ts +12 -24
- package/dist/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/supervisor.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/tunnel.d.ts +3 -6
- package/dist/src/proto/gen/dxos/service/tunnel.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/tracing.d.ts +10 -99
- package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/type.d.ts +12 -24
- package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/value.d.ts +2 -4
- package/dist/src/proto/gen/dxos/value.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/data.d.ts +4 -8
- package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/rpc.d.ts +7 -14
- package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +326 -40
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js +127 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +32 -7
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/index.d.ts +2 -2
- package/dist/src/proto/substitutions.d.ts +8 -8
- package/dist/src/proto/substitutions.d.ts.map +1 -1
- package/dist/src/proto/types.d.ts +1 -1
- package/dist/src/space-archive.d.ts +62 -3
- package/dist/src/space-archive.d.ts.map +1 -1
- package/dist/src/space-archive.js +13 -1
- package/dist/src/space-archive.js.map +1 -1
- package/dist/src/types.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -33
- package/src/FeedProtocol.ts +320 -0
- package/src/FunctionProtocol.ts +2 -4
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +64 -9
- package/src/buf/proto/gen/dxos/client/services_pb.ts +114 -40
- package/src/buf/proto/gen/dxos/config_pb.ts +122 -4
- package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +9 -2
- package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +39 -6
- package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +49 -3
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/iframe_pb.ts +2 -14
- package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/rpc_pb.ts +37 -8
- package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/tracing_pb.ts +12 -179
- package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
- package/src/codec.test.ts +1 -1
- package/src/edge/EdgeFunctionEnv.ts +25 -27
- package/src/edge/edge.ts +127 -1
- package/src/edge/errors.ts +1 -1
- package/src/edge/index.ts +4 -3
- package/src/edge/registry.ts +125 -0
- package/src/errors/encoding.ts +2 -3
- package/src/errors/errors.test.ts +1 -1
- package/src/errors/errors.ts +2 -3
- package/src/errors/helpers.ts +1 -1
- package/src/errors/index.ts +5 -5
- package/src/index.ts +11 -14
- package/src/indexing.test.ts +1 -1
- package/src/proto/dxos/client/queue.proto +18 -4
- package/src/proto/dxos/client/services.proto +19 -1
- package/src/proto/dxos/config.proto +47 -2
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/edge/messenger.proto +10 -0
- package/src/proto/dxos/halo/credentials.proto +15 -0
- package/src/proto/dxos/iframe.proto +0 -3
- package/src/proto/dxos/rpc.proto +7 -0
- package/src/proto/dxos/tracing.proto +0 -40
- package/src/proto/gen/dxos/agent/dashboard.ts +3 -6
- package/src/proto/gen/dxos/agent/echoproxy.ts +1 -2
- package/src/proto/gen/dxos/agent/epoch.ts +1 -2
- package/src/proto/gen/dxos/agent/functions.ts +6 -12
- package/src/proto/gen/dxos/bot.ts +12 -24
- package/src/proto/gen/dxos/client/services.ts +1027 -1040
- package/src/proto/gen/dxos/config.ts +104 -101
- package/src/proto/gen/dxos/devtools/host.ts +71 -119
- package/src/proto/gen/dxos/devtools/swarm.ts +4 -8
- package/src/proto/gen/dxos/echo/blob.ts +1 -2
- package/src/proto/gen/dxos/echo/feed.ts +4 -8
- package/src/proto/gen/dxos/echo/filter.ts +2 -4
- package/src/proto/gen/dxos/echo/indexing.ts +2 -4
- package/src/proto/gen/dxos/echo/metadata.ts +12 -16
- package/src/proto/gen/dxos/echo/model/document.ts +11 -22
- package/src/proto/gen/dxos/echo/model/messenger.ts +1 -2
- package/src/proto/gen/dxos/echo/model/text.ts +2 -4
- package/src/proto/gen/dxos/echo/object.ts +6 -12
- package/src/proto/gen/dxos/echo/query.ts +4 -8
- package/src/proto/gen/dxos/echo/service.ts +17 -34
- package/src/proto/gen/dxos/echo/snapshot.ts +2 -4
- package/src/proto/gen/dxos/echo/timeframe.ts +2 -4
- package/src/proto/gen/dxos/edge/calls.ts +5 -10
- package/src/proto/gen/dxos/edge/messenger.ts +28 -10
- package/src/proto/gen/dxos/edge/signal.ts +7 -14
- package/src/proto/gen/dxos/error.ts +1 -2
- package/src/proto/gen/dxos/gravity.ts +10 -20
- package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -2
- package/src/proto/gen/dxos/halo/credentials/greet.ts +6 -12
- package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -4
- package/src/proto/gen/dxos/halo/credentials.ts +35 -43
- package/src/proto/gen/dxos/halo/invitations.ts +13 -26
- package/src/proto/gen/dxos/halo/keyring.ts +1 -2
- package/src/proto/gen/dxos/halo/keys.ts +2 -4
- package/src/proto/gen/dxos/halo/signed.ts +4 -8
- package/src/proto/gen/dxos/iframe.ts +4 -18
- package/src/proto/gen/dxos/keys.ts +2 -4
- package/src/proto/gen/dxos/mesh/bridge.ts +12 -24
- package/src/proto/gen/dxos/mesh/broadcast.ts +1 -2
- package/src/proto/gen/dxos/mesh/messaging.ts +2 -4
- package/src/proto/gen/dxos/mesh/muxer.ts +5 -10
- package/src/proto/gen/dxos/mesh/presence.ts +1 -2
- package/src/proto/gen/dxos/mesh/protocol.ts +3 -6
- package/src/proto/gen/dxos/mesh/replicator.ts +2 -4
- package/src/proto/gen/dxos/mesh/signal.ts +9 -18
- package/src/proto/gen/dxos/mesh/swarm.ts +6 -12
- package/src/proto/gen/dxos/mesh/teleport/auth.ts +2 -4
- package/src/proto/gen/dxos/mesh/teleport/automerge.ts +2 -4
- package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +3 -6
- package/src/proto/gen/dxos/mesh/teleport/control.ts +3 -6
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -2
- package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -2
- package/src/proto/gen/dxos/mesh/teleport/replicator.ts +5 -10
- package/src/proto/gen/dxos/mesh/teleport.ts +2 -4
- package/src/proto/gen/dxos/registry.ts +3 -6
- package/src/proto/gen/dxos/rpc.ts +24 -12
- package/src/proto/gen/dxos/service/agentmanager.ts +4 -8
- package/src/proto/gen/dxos/service/publisher.ts +5 -10
- package/src/proto/gen/dxos/service/supervisor.ts +12 -24
- package/src/proto/gen/dxos/service/tunnel.ts +3 -6
- package/src/proto/gen/dxos/tracing.ts +10 -96
- package/src/proto/gen/dxos/type.ts +12 -24
- package/src/proto/gen/dxos/value.ts +2 -4
- package/src/proto/gen/example/testing/data.ts +4 -8
- package/src/proto/gen/example/testing/rpc.ts +7 -14
- package/src/proto/gen/google/protobuf.ts +326 -40
- package/src/proto/gen/index.ts +33 -8
- package/src/proto/index.ts +2 -2
- package/src/proto/types.ts +1 -1
- package/src/space-archive.ts +70 -1
- package/src/types.ts +2 -2
- package/dist/src/queue.d.ts +0 -3
- package/dist/src/queue.d.ts.map +0 -1
- package/dist/src/queue.js +0 -5
- package/dist/src/queue.js.map +0 -1
- package/dist/src/tracing.d.ts +0 -40
- package/dist/src/tracing.d.ts.map +0 -1
- package/dist/src/tracing.js +0 -50
- package/dist/src/tracing.js.map +0 -1
- package/src/queue.ts +0 -14
- package/src/tracing.ts +0 -86
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
/**
|
|
3
|
+
* Hydrated plugin metadata, mirroring the @dxos/app-framework `Plugin.Meta` shape.
|
|
4
|
+
*
|
|
5
|
+
* Defined locally rather than imported from @dxos/app-framework to keep the protocols
|
|
6
|
+
* package free of UI/runtime dependencies. Consumers can treat decoded values as
|
|
7
|
+
* `Plugin.Meta` directly.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PluginMetaSchema: Schema.Struct<{
|
|
10
|
+
id: Schema.filter<typeof Schema.String>;
|
|
11
|
+
name: Schema.filter<typeof Schema.String>;
|
|
12
|
+
description: Schema.optional<typeof Schema.String>;
|
|
13
|
+
author: Schema.optional<typeof Schema.String>;
|
|
14
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
15
|
+
source: Schema.optional<typeof Schema.String>;
|
|
16
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
17
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
18
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
19
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
20
|
+
}>;
|
|
21
|
+
export type PluginMeta = Schema.Schema.Type<typeof PluginMetaSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Health signal the registry service attaches to a hydrated entry when a refresh fails.
|
|
24
|
+
* Clients surface the appropriate badge or filter entries based on this field.
|
|
25
|
+
*/
|
|
26
|
+
export declare const PluginHealthSchema: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
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";
|
|
35
|
+
/**
|
|
36
|
+
* Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
|
|
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.
|
|
43
|
+
*/
|
|
44
|
+
export declare const PluginManifestSchema: Schema.Struct<{
|
|
45
|
+
id: Schema.filter<typeof Schema.String>;
|
|
46
|
+
name: Schema.filter<typeof Schema.String>;
|
|
47
|
+
description: Schema.optional<typeof Schema.String>;
|
|
48
|
+
author: Schema.optional<typeof Schema.String>;
|
|
49
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
50
|
+
source: Schema.optional<typeof Schema.String>;
|
|
51
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
52
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
53
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
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>>;
|
|
62
|
+
}>;
|
|
63
|
+
export type PluginManifest = Schema.Schema.Type<typeof PluginManifestSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* Single hydrated plugin entry returned by the registry service.
|
|
66
|
+
*/
|
|
67
|
+
export declare const PluginEntrySchema: Schema.Struct<{
|
|
68
|
+
/** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
|
|
69
|
+
repo: typeof Schema.String;
|
|
70
|
+
/** Plugin metadata from the repo's latest-release `manifest.json`. */
|
|
71
|
+
meta: Schema.Struct<{
|
|
72
|
+
id: Schema.filter<typeof Schema.String>;
|
|
73
|
+
name: Schema.filter<typeof Schema.String>;
|
|
74
|
+
description: Schema.optional<typeof Schema.String>;
|
|
75
|
+
author: Schema.optional<typeof Schema.String>;
|
|
76
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
77
|
+
source: Schema.optional<typeof Schema.String>;
|
|
78
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
79
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
80
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
81
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
82
|
+
}>;
|
|
83
|
+
/**
|
|
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.
|
|
87
|
+
*/
|
|
88
|
+
moduleUrl: typeof Schema.String;
|
|
89
|
+
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
90
|
+
releaseTag: typeof Schema.String;
|
|
91
|
+
/** Health signal set by the service when an entry fails to refresh. */
|
|
92
|
+
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
93
|
+
/** Unix ms when this entry was last successfully hydrated. */
|
|
94
|
+
hydratedAt: typeof Schema.Number;
|
|
95
|
+
}>;
|
|
96
|
+
export type PluginEntry = Schema.Schema.Type<typeof PluginEntrySchema>;
|
|
97
|
+
/**
|
|
98
|
+
* Response body of `GET /registry/plugins`.
|
|
99
|
+
*/
|
|
100
|
+
export declare const GetPluginsResponseBodySchema: Schema.Struct<{
|
|
101
|
+
/** Wire-format schema version, pinned to 1. */
|
|
102
|
+
version: Schema.Literal<[1]>;
|
|
103
|
+
/** Hydrated entries. Order matches the order in the upstream catalog manifest. */
|
|
104
|
+
plugins: Schema.Array$<Schema.Struct<{
|
|
105
|
+
/** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
|
|
106
|
+
repo: typeof Schema.String;
|
|
107
|
+
/** Plugin metadata from the repo's latest-release `manifest.json`. */
|
|
108
|
+
meta: Schema.Struct<{
|
|
109
|
+
id: Schema.filter<typeof Schema.String>;
|
|
110
|
+
name: Schema.filter<typeof Schema.String>;
|
|
111
|
+
description: Schema.optional<typeof Schema.String>;
|
|
112
|
+
author: Schema.optional<typeof Schema.String>;
|
|
113
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
114
|
+
source: Schema.optional<typeof Schema.String>;
|
|
115
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
116
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
117
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
118
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
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.
|
|
124
|
+
*/
|
|
125
|
+
moduleUrl: typeof Schema.String;
|
|
126
|
+
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
127
|
+
releaseTag: typeof Schema.String;
|
|
128
|
+
/** Health signal set by the service when an entry fails to refresh. */
|
|
129
|
+
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
130
|
+
/** Unix ms when this entry was last successfully hydrated. */
|
|
131
|
+
hydratedAt: typeof Schema.Number;
|
|
132
|
+
}>>;
|
|
133
|
+
/** Unix ms timestamp of the most recent successful refresh cycle. */
|
|
134
|
+
refreshedAt: typeof Schema.Number;
|
|
135
|
+
}>;
|
|
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>;
|
|
151
|
+
/**
|
|
152
|
+
* Shape of the catalog manifest published in the upstream community-plugins repo.
|
|
153
|
+
* Extra keys (e.g. `$schema`) are permitted.
|
|
154
|
+
*/
|
|
155
|
+
export declare const RegistryManifestSchema: Schema.TypeLiteral<{
|
|
156
|
+
version: Schema.Literal<[1]>;
|
|
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
|
+
}>]>>;
|
|
162
|
+
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
|
|
163
|
+
export type RegistryManifest = Schema.Schema.Type<typeof RegistryManifestSchema>;
|
|
164
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +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;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;IAE/B,qFAAqF;;IAErF;;;OAGG;;EAEH,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,qGAAqG;;IAErG,sEAAsE;;;;;;;;;;;;;IAEtE;;;;OAIG;;IAEH,uGAAuG;;IAEvG,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,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"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import * as Schema from 'effect/Schema';
|
|
5
|
+
/**
|
|
6
|
+
* Hydrated plugin metadata, mirroring the @dxos/app-framework `Plugin.Meta` shape.
|
|
7
|
+
*
|
|
8
|
+
* Defined locally rather than imported from @dxos/app-framework to keep the protocols
|
|
9
|
+
* package free of UI/runtime dependencies. Consumers can treat decoded values as
|
|
10
|
+
* `Plugin.Meta` directly.
|
|
11
|
+
*/
|
|
12
|
+
export const PluginMetaSchema = Schema.Struct({
|
|
13
|
+
id: Schema.String.pipe(Schema.nonEmptyString()),
|
|
14
|
+
name: Schema.String.pipe(Schema.nonEmptyString()),
|
|
15
|
+
description: Schema.optional(Schema.String),
|
|
16
|
+
author: Schema.optional(Schema.String),
|
|
17
|
+
homePage: Schema.optional(Schema.String),
|
|
18
|
+
source: Schema.optional(Schema.String),
|
|
19
|
+
screenshots: Schema.optional(Schema.Array(Schema.String)),
|
|
20
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
21
|
+
icon: Schema.optional(Schema.String),
|
|
22
|
+
iconHue: Schema.optional(Schema.String),
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Health signal the registry service attaches to a hydrated entry when a refresh fails.
|
|
26
|
+
* Clients surface the appropriate badge or filter entries based on this field.
|
|
27
|
+
*/
|
|
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';
|
|
36
|
+
/**
|
|
37
|
+
* Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
|
|
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.
|
|
44
|
+
*/
|
|
45
|
+
export const PluginManifestSchema = Schema.Struct({
|
|
46
|
+
...PluginMetaSchema.fields,
|
|
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)),
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Single hydrated plugin entry returned by the registry service.
|
|
57
|
+
*/
|
|
58
|
+
export const PluginEntrySchema = Schema.Struct({
|
|
59
|
+
/** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
|
|
60
|
+
repo: Schema.String,
|
|
61
|
+
/** Plugin metadata from the repo's latest-release `manifest.json`. */
|
|
62
|
+
meta: PluginMetaSchema,
|
|
63
|
+
/**
|
|
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.
|
|
67
|
+
*/
|
|
68
|
+
moduleUrl: Schema.String,
|
|
69
|
+
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
70
|
+
releaseTag: Schema.String,
|
|
71
|
+
/** Health signal set by the service when an entry fails to refresh. */
|
|
72
|
+
health: PluginHealthSchema,
|
|
73
|
+
/** Unix ms when this entry was last successfully hydrated. */
|
|
74
|
+
hydratedAt: Schema.Number,
|
|
75
|
+
});
|
|
76
|
+
/**
|
|
77
|
+
* Response body of `GET /registry/plugins`.
|
|
78
|
+
*/
|
|
79
|
+
export const GetPluginsResponseBodySchema = Schema.Struct({
|
|
80
|
+
/** Wire-format schema version, pinned to 1. */
|
|
81
|
+
version: Schema.Literal(1),
|
|
82
|
+
/** Hydrated entries. Order matches the order in the upstream catalog manifest. */
|
|
83
|
+
plugins: Schema.Array(PluginEntrySchema),
|
|
84
|
+
/** Unix ms timestamp of the most recent successful refresh cycle. */
|
|
85
|
+
refreshedAt: Schema.Number,
|
|
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()) }));
|
|
96
|
+
/**
|
|
97
|
+
* Shape of the catalog manifest published in the upstream community-plugins repo.
|
|
98
|
+
* Extra keys (e.g. `$schema`) are permitted.
|
|
99
|
+
*/
|
|
100
|
+
export const RegistryManifestSchema = Schema.Struct({
|
|
101
|
+
version: Schema.Literal(1),
|
|
102
|
+
plugins: Schema.Array(RegistryEntrySchema),
|
|
103
|
+
}, Schema.Record({ key: Schema.String, value: Schema.Unknown }));
|
|
104
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
import { BaseError } from '@dxos/errors';
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type Error as SerializedErrorProto } from '../proto/gen/dxos/error.
|
|
1
|
+
import { type Error as SerializedErrorProto } from '../proto/gen/dxos/error.ts';
|
|
2
2
|
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) =>
|
|
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;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../../src/errors/encoding.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;
|
|
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;YACL,OAAO,EAAE,GAAG;SACb,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;SAC7B,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAyB,EAAE,EAAE,WAAW,EAAE,GAAkB,EAAE,EAAE,EAAE;IAC5F,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,WAAW,EAAE,CAAC;QAChB,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,GAAG,WAAW,CAAC;IAClE,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|