@dxos/protocols 0.8.4-staging.ac66bdf99f → 0.9.1-main.c7dcc2e112
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/LICENSE +102 -5
- package/dist/src/Config2.d.ts +91 -0
- package/dist/src/Config2.d.ts.map +1 -0
- package/dist/src/Config2.js +56 -0
- package/dist/src/Config2.js.map +1 -0
- package/dist/src/FeedProtocol.d.ts +5 -5
- package/dist/src/FeedProtocol.d.ts.map +1 -1
- package/dist/src/FeedProtocol.js.map +1 -1
- package/dist/src/FunctionProtocol.d.ts +7 -0
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/TraceProtocol.d.ts +15 -0
- package/dist/src/TraceProtocol.d.ts.map +1 -0
- package/dist/src/TraceProtocol.js +4 -0
- package/dist/src/TraceProtocol.js.map +1 -0
- package/dist/src/automerge.d.ts +203 -13
- package/dist/src/automerge.d.ts.map +1 -1
- package/dist/src/automerge.js +17 -0
- package/dist/src/automerge.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts +16 -4
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js +17 -5
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +74 -0
- 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 +16 -1
- 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 +14 -0
- 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 +1 -1
- 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 +6 -0
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts +70 -0
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +16 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_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/echo/service_pb.d.ts +17 -2
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +26 -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 +26 -21
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts +11 -4
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +12 -5
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js.map +1 -1
- package/dist/src/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +27 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +272 -3
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +157 -2
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/edge.test.d.ts +2 -0
- package/dist/src/edge/edge.test.d.ts.map +1 -0
- package/dist/src/edge/edge.test.js +50 -0
- package/dist/src/edge/edge.test.js.map +1 -0
- package/dist/src/edge/errors.d.ts.map +1 -1
- package/dist/src/edge/errors.js +1 -1
- package/dist/src/edge/errors.js.map +1 -1
- package/dist/src/edge/index.js +4 -4
- package/dist/src/edge/registry.d.ts +248 -76
- package/dist/src/edge/registry.d.ts.map +1 -1
- package/dist/src/edge/registry.js +151 -52
- package/dist/src/edge/registry.js.map +1 -1
- 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 +1 -1
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +132 -132
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/helpers.d.ts +2 -2
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/index.js +5 -5
- package/dist/src/errors/parameter.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/indexing.test.js +1 -1
- package/dist/src/invitation.js +3 -3
- package/dist/src/invitation.js.map +1 -1
- package/dist/src/profile-archive.d.ts +14 -1
- package/dist/src/profile-archive.d.ts.map +1 -1
- package/dist/src/profile-archive.js +2 -0
- package/dist/src/profile-archive.js.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 +121 -150
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +4 -2
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +58 -102
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +78 -96
- 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 +36 -35
- 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 +6 -12
- 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 +34 -44
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts +16 -28
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js +3 -2
- 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 -8
- 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 +7 -14
- 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 -20
- 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 +27 -27
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +7 -0
- 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.js +1 -1
- package/dist/src/proto/substitutions.d.ts +8 -8
- package/dist/src/proto/substitutions.d.ts.map +1 -1
- package/dist/src/space-archive.d.ts +5 -5
- package/dist/src/space-archive.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -32
- package/src/Config2.ts +68 -0
- package/src/FeedProtocol.ts +3 -0
- package/src/FunctionProtocol.ts +9 -0
- package/src/TraceProtocol.ts +21 -0
- package/src/automerge.ts +239 -13
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +19 -5
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +88 -1
- package/src/buf/proto/gen/dxos/client/services_pb.ts +16 -1
- package/src/buf/proto/gen/dxos/config_pb.ts +8 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +82 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +8 -1
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +19 -3
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +52 -21
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +13 -5
- package/src/edge/EdgeFunctionEnv.ts +40 -3
- package/src/edge/edge.test.ts +64 -0
- package/src/edge/edge.ts +281 -5
- package/src/edge/registry.ts +170 -61
- package/src/index.ts +2 -1
- package/src/invitation.ts +3 -3
- package/src/lexicons/org.dxos.experimental/README.md +29 -0
- package/src/lexicons/org.dxos.experimental/package.profile.json +87 -0
- package/src/lexicons/org.dxos.experimental/package.release.json +45 -0
- package/src/lexicons/org.dxos.experimental/publisher.profile.json +37 -0
- package/src/lexicons/org.dxos.experimental/publisher.verification.json +36 -0
- package/src/profile-archive.ts +13 -0
- package/src/proto/dxos/client/invitation.proto +9 -2
- package/src/proto/dxos/client/queue.proto +21 -0
- package/src/proto/dxos/client/services.proto +4 -0
- package/src/proto/dxos/config.proto +2 -0
- package/src/proto/dxos/devtools/host.proto +27 -0
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/echo/service.proto +14 -1
- package/src/proto/dxos/halo/credentials.proto +9 -0
- package/src/proto/dxos/halo/invitations.proto +5 -2
- 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 +121 -150
- package/src/proto/gen/dxos/config.ts +58 -102
- package/src/proto/gen/dxos/devtools/host.ts +78 -96
- 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 +36 -35
- 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 +6 -12
- 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 +34 -44
- package/src/proto/gen/dxos/halo/invitations.ts +16 -28
- 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 -8
- 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 +7 -14
- 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 -20
- 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 +27 -27
- package/src/proto/gen/index.ts +8 -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/tracing.ts +0 -86
|
@@ -1,127 +1,299 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* A snapshot of a plugin's declared dependencies resolved to concrete installed versions at build
|
|
4
|
+
* time (`{ "@dxos/app-framework": "0.8.3", "react": "19.2.0", … }`). The host derives SDK
|
|
5
|
+
* compatibility from the subset it shares with the plugin (the externalized `@dxos/*` packages).
|
|
6
|
+
*/
|
|
7
|
+
export declare const DependencyMapSchema: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
8
|
+
export type DependencyMap = Schema.Schema.Type<typeof DependencyMapSchema>;
|
|
9
|
+
/**
|
|
10
|
+
* Filename of the entry module every plugin must publish at the root of its bundle.
|
|
11
|
+
* The host dynamic-imports `<manifest URL base>/index.mjs` directly — no per-plugin
|
|
12
|
+
* configuration. `composerPlugin` outputs the bundle under this name so plugin authors
|
|
13
|
+
* never have to think about it.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PLUGIN_ENTRY_FILENAME = "index.mjs";
|
|
16
|
+
/**
|
|
17
|
+
* Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
|
|
4
18
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
19
|
+
* Emitted by `@dxos/app-framework/vite-plugin`'s `composerPlugin` (see
|
|
20
|
+
* `MANIFEST_ASSET_NAME`). Lists every file the plugin needs at runtime — the entry
|
|
21
|
+
* module ({@link PLUGIN_ENTRY_FILENAME}) plus any sibling CSS, code-split chunks,
|
|
22
|
+
* fonts, etc. — so the host can eagerly precache the whole bundle for offline use.
|
|
23
|
+
* Paths in `assets` are relative to the manifest's URL.
|
|
8
24
|
*/
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
25
|
+
export declare const PluginManifestSchema: Schema.Struct<{
|
|
26
|
+
key: Schema.filter<typeof Schema.String>;
|
|
11
27
|
name: Schema.filter<typeof Schema.String>;
|
|
12
28
|
description: Schema.optional<typeof Schema.String>;
|
|
29
|
+
author: Schema.optional<typeof Schema.String>;
|
|
13
30
|
homePage: Schema.optional<typeof Schema.String>;
|
|
14
31
|
source: Schema.optional<typeof Schema.String>;
|
|
15
|
-
screenshots: Schema.optional<Schema.Array$<
|
|
32
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
33
|
+
light: Schema.optional<typeof Schema.String>;
|
|
34
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
35
|
+
}>>>;
|
|
16
36
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
17
|
-
icon: Schema.optional<
|
|
18
|
-
|
|
37
|
+
icon: Schema.optional<Schema.Struct<{
|
|
38
|
+
key: Schema.filter<typeof Schema.String>;
|
|
39
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
40
|
+
}>>;
|
|
41
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
42
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
43
|
+
/** Plugin version (semver). Sourced from the publishing project's `package.json`. */
|
|
44
|
+
version: Schema.filter<typeof Schema.String>;
|
|
45
|
+
/**
|
|
46
|
+
* Relative paths of every file the plugin needs at runtime, including the entry.
|
|
47
|
+
* Must include {@link PLUGIN_ENTRY_FILENAME}; consumers verify on parse.
|
|
48
|
+
*/
|
|
49
|
+
assets: Schema.filter<Schema.Array$<typeof Schema.String>>;
|
|
50
|
+
/** Declared dependencies resolved to installed versions at build time (SDK-compat source). */
|
|
51
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
19
52
|
}>;
|
|
20
|
-
export type
|
|
53
|
+
export type PluginManifest = Schema.Schema.Type<typeof PluginManifestSchema>;
|
|
21
54
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
55
|
+
* A single installable release of a plugin, projected from a `package.release`
|
|
56
|
+
* ATProto record.
|
|
24
57
|
*/
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
58
|
+
export declare const PluginReleaseSchema: Schema.Struct<{
|
|
59
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
60
|
+
version: Schema.filter<typeof Schema.String>;
|
|
61
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
62
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
63
|
+
/**
|
|
64
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
65
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
66
|
+
*/
|
|
67
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
68
|
+
}>;
|
|
69
|
+
export type PluginRelease = Schema.Schema.Type<typeof PluginReleaseSchema>;
|
|
27
70
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* (
|
|
71
|
+
* Verbatim content of a `package.profile` ATProto record. `key` is the record's rkey (a reverse-domain
|
|
72
|
+
* NSID), denormalized into the body. Version-independent identity + display metadata; provenance
|
|
73
|
+
* (`author`) is resolved separately from the publisher DID/handle.
|
|
31
74
|
*/
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
75
|
+
export declare const PluginProfileSchema: Schema.Struct<{
|
|
76
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
77
|
+
key: Schema.filter<typeof Schema.String>;
|
|
78
|
+
/** Plugin display name. */
|
|
35
79
|
name: Schema.filter<typeof Schema.String>;
|
|
80
|
+
/** Short description of plugin functionality. */
|
|
36
81
|
description: Schema.optional<typeof Schema.String>;
|
|
82
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
37
83
|
homePage: Schema.optional<typeof Schema.String>;
|
|
84
|
+
/** Source repository URL. */
|
|
38
85
|
source: Schema.optional<typeof Schema.String>;
|
|
39
|
-
|
|
86
|
+
/** Tags to help categorize the plugin. */
|
|
40
87
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
41
|
-
|
|
42
|
-
|
|
88
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
89
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
90
|
+
light: Schema.optional<typeof Schema.String>;
|
|
91
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
92
|
+
}>>>;
|
|
93
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
94
|
+
icon: Schema.optional<Schema.Struct<{
|
|
95
|
+
key: Schema.filter<typeof Schema.String>;
|
|
96
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
97
|
+
}>>;
|
|
98
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
99
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
100
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
101
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
43
102
|
}>;
|
|
44
|
-
export type
|
|
103
|
+
export type PluginProfile = Schema.Schema.Type<typeof PluginProfileSchema>;
|
|
45
104
|
/**
|
|
46
|
-
*
|
|
105
|
+
* A single hydrated plugin entry returned by `GET /registry/plugins`.
|
|
106
|
+
*
|
|
107
|
+
* This is an indexer-assembled *view* — analogous to emdash's `PackageView` — projected
|
|
108
|
+
* from four ATProto record types: `package.profile`, `package.release`,
|
|
109
|
+
* `publisher.profile`, and `publisher.verification`. It is NOT a direct serialization
|
|
110
|
+
* of any single ATProto record.
|
|
111
|
+
*
|
|
112
|
+
* Design notes:
|
|
113
|
+
* - `profile.key` is required to be a valid NSID (e.g. `org.dxos.plugin.excalidraw`), making it
|
|
114
|
+
* the single identifier for both PDS addressing and the composer runtime plugin id.
|
|
115
|
+
* `DXN.make(profile.key, latestVersion)` reconstructs the canonical plugin DXN.
|
|
116
|
+
* - `releases` inlines all known versions, eliminating a separate versions round-trip for
|
|
117
|
+
* the version picker. Ordered newest-first.
|
|
118
|
+
* - `latestVersion` is a convenience pointer into `releases` indicating the recommended
|
|
119
|
+
* install target.
|
|
47
120
|
*/
|
|
48
|
-
export declare const
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
121
|
+
export declare const PluginViewSchema: Schema.Struct<{
|
|
122
|
+
/**
|
|
123
|
+
* `at://` URI of the source `package.profile` record.
|
|
124
|
+
* Globally unique and stable — never changes after the record is published.
|
|
125
|
+
*/
|
|
126
|
+
uri: Schema.filter<typeof Schema.String>;
|
|
127
|
+
/** Publisher DID, e.g. `did:plc:abc…`. Cryptographic identity; never changes. */
|
|
128
|
+
did: Schema.filter<typeof Schema.String>;
|
|
129
|
+
/**
|
|
130
|
+
* Publisher AT Protocol handle at index time, e.g. `alice.bsky.social`.
|
|
131
|
+
* Display-only — handles can be reassigned; never use as a stable key.
|
|
132
|
+
*/
|
|
133
|
+
handle: Schema.optional<typeof Schema.String>;
|
|
134
|
+
/** Unix ms when the indexer last assembled this entry. */
|
|
135
|
+
indexedAt: typeof Schema.Number;
|
|
136
|
+
/**
|
|
137
|
+
* Trust labels derived from curator `publisher.verification` records.
|
|
138
|
+
* An empty array means the entry has no verification signal.
|
|
139
|
+
*/
|
|
140
|
+
labels: Schema.Array$<typeof Schema.String>;
|
|
141
|
+
profile: Schema.Struct<{
|
|
142
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
143
|
+
key: Schema.filter<typeof Schema.String>;
|
|
144
|
+
/** Plugin display name. */
|
|
54
145
|
name: Schema.filter<typeof Schema.String>;
|
|
146
|
+
/** Short description of plugin functionality. */
|
|
55
147
|
description: Schema.optional<typeof Schema.String>;
|
|
148
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
56
149
|
homePage: Schema.optional<typeof Schema.String>;
|
|
150
|
+
/** Source repository URL. */
|
|
57
151
|
source: Schema.optional<typeof Schema.String>;
|
|
58
|
-
|
|
152
|
+
/** Tags to help categorize the plugin. */
|
|
59
153
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
60
|
-
|
|
61
|
-
|
|
154
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
155
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
156
|
+
light: Schema.optional<typeof Schema.String>;
|
|
157
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
158
|
+
}>>>;
|
|
159
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
160
|
+
icon: Schema.optional<Schema.Struct<{
|
|
161
|
+
key: Schema.filter<typeof Schema.String>;
|
|
162
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
163
|
+
}>>;
|
|
164
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
165
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
166
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
167
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
62
168
|
}>;
|
|
63
169
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* proxied by the service itself); clients pass this value directly to the URL loader.
|
|
170
|
+
* All known releases for this package, ordered newest-first.
|
|
171
|
+
* Powers the version picker directly — no separate endpoint needed.
|
|
67
172
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
173
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
174
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
175
|
+
version: Schema.filter<typeof Schema.String>;
|
|
176
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
177
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
178
|
+
/**
|
|
179
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
180
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
181
|
+
*/
|
|
182
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
183
|
+
}>>;
|
|
184
|
+
/**
|
|
185
|
+
* The latest (recommended) release version. Always references an entry in `releases`.
|
|
186
|
+
* Used by the host to determine whether an update is available.
|
|
187
|
+
*/
|
|
188
|
+
latestVersion: Schema.filter<typeof Schema.String>;
|
|
75
189
|
}>;
|
|
76
|
-
export type
|
|
190
|
+
export type PluginView = Schema.Schema.Type<typeof PluginViewSchema>;
|
|
77
191
|
/**
|
|
78
192
|
* Response body of `GET /registry/plugins`.
|
|
79
193
|
*/
|
|
80
194
|
export declare const GetPluginsResponseBodySchema: Schema.Struct<{
|
|
81
|
-
/** Wire-format schema version, pinned to
|
|
82
|
-
version: Schema.Literal<[
|
|
83
|
-
/** Hydrated entries.
|
|
195
|
+
/** Wire-format schema version, pinned to 2. */
|
|
196
|
+
version: Schema.Literal<[2]>;
|
|
197
|
+
/** Hydrated entries. */
|
|
84
198
|
plugins: Schema.Array$<Schema.Struct<{
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
199
|
+
/**
|
|
200
|
+
* `at://` URI of the source `package.profile` record.
|
|
201
|
+
* Globally unique and stable — never changes after the record is published.
|
|
202
|
+
*/
|
|
203
|
+
uri: Schema.filter<typeof Schema.String>;
|
|
204
|
+
/** Publisher DID, e.g. `did:plc:abc…`. Cryptographic identity; never changes. */
|
|
205
|
+
did: Schema.filter<typeof Schema.String>;
|
|
206
|
+
/**
|
|
207
|
+
* Publisher AT Protocol handle at index time, e.g. `alice.bsky.social`.
|
|
208
|
+
* Display-only — handles can be reassigned; never use as a stable key.
|
|
209
|
+
*/
|
|
210
|
+
handle: Schema.optional<typeof Schema.String>;
|
|
211
|
+
/** Unix ms when the indexer last assembled this entry. */
|
|
212
|
+
indexedAt: typeof Schema.Number;
|
|
213
|
+
/**
|
|
214
|
+
* Trust labels derived from curator `publisher.verification` records.
|
|
215
|
+
* An empty array means the entry has no verification signal.
|
|
216
|
+
*/
|
|
217
|
+
labels: Schema.Array$<typeof Schema.String>;
|
|
218
|
+
profile: Schema.Struct<{
|
|
219
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
220
|
+
key: Schema.filter<typeof Schema.String>;
|
|
221
|
+
/** Plugin display name. */
|
|
90
222
|
name: Schema.filter<typeof Schema.String>;
|
|
223
|
+
/** Short description of plugin functionality. */
|
|
91
224
|
description: Schema.optional<typeof Schema.String>;
|
|
225
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
92
226
|
homePage: Schema.optional<typeof Schema.String>;
|
|
227
|
+
/** Source repository URL. */
|
|
93
228
|
source: Schema.optional<typeof Schema.String>;
|
|
94
|
-
|
|
229
|
+
/** Tags to help categorize the plugin. */
|
|
95
230
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
96
|
-
|
|
97
|
-
|
|
231
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
232
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
233
|
+
light: Schema.optional<typeof Schema.String>;
|
|
234
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
235
|
+
}>>>;
|
|
236
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
237
|
+
icon: Schema.optional<Schema.Struct<{
|
|
238
|
+
key: Schema.filter<typeof Schema.String>;
|
|
239
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
240
|
+
}>>;
|
|
241
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
242
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
243
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
244
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
98
245
|
}>;
|
|
99
246
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
|
|
247
|
+
* All known releases for this package, ordered newest-first.
|
|
248
|
+
* Powers the version picker directly — no separate endpoint needed.
|
|
249
|
+
*/
|
|
250
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
251
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
252
|
+
version: Schema.filter<typeof Schema.String>;
|
|
253
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
254
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
255
|
+
/**
|
|
256
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
257
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
258
|
+
*/
|
|
259
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
260
|
+
}>>;
|
|
261
|
+
/**
|
|
262
|
+
* The latest (recommended) release version. Always references an entry in `releases`.
|
|
263
|
+
* Used by the host to determine whether an update is available.
|
|
103
264
|
*/
|
|
104
|
-
|
|
105
|
-
/** Release tag the entry was resolved from (e.g. `v0.1.0`). */
|
|
106
|
-
releaseTag: typeof Schema.String;
|
|
107
|
-
/** Health signal set by the service when an entry fails to refresh. */
|
|
108
|
-
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
109
|
-
/** Unix ms when this entry was last successfully hydrated. */
|
|
110
|
-
hydratedAt: typeof Schema.Number;
|
|
265
|
+
latestVersion: Schema.filter<typeof Schema.String>;
|
|
111
266
|
}>>;
|
|
112
|
-
/** Unix ms timestamp of the most recent successful
|
|
267
|
+
/** Unix ms timestamp of the most recent successful index cycle. */
|
|
113
268
|
refreshedAt: typeof Schema.Number;
|
|
114
269
|
}>;
|
|
115
270
|
export type GetPluginsResponseBody = Schema.Schema.Type<typeof GetPluginsResponseBodySchema>;
|
|
271
|
+
/** Content of a `publisher.profile` ATProto record. Display metadata for a publisher DID. */
|
|
272
|
+
export declare const PublisherProfileSchema: Schema.Struct<{
|
|
273
|
+
displayName: Schema.filter<typeof Schema.String>;
|
|
274
|
+
bio: Schema.optional<typeof Schema.String>;
|
|
275
|
+
homepageUrl: Schema.optional<typeof Schema.String>;
|
|
276
|
+
contact: Schema.optional<typeof Schema.String>;
|
|
277
|
+
}>;
|
|
278
|
+
export type PublisherProfile = Schema.Schema.Type<typeof PublisherProfileSchema>;
|
|
116
279
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
280
|
+
* Content of a `publisher.verification` record written by the curator DID.
|
|
281
|
+
* Links a publisher DID to a trusted AT Protocol handle.
|
|
119
282
|
*/
|
|
120
|
-
export declare const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
export type
|
|
283
|
+
export declare const PublisherVerificationSchema: Schema.Struct<{
|
|
284
|
+
subject: Schema.filter<typeof Schema.String>;
|
|
285
|
+
handle: Schema.filter<typeof Schema.String>;
|
|
286
|
+
displayName: Schema.filter<typeof Schema.String>;
|
|
287
|
+
createdAt: Schema.filter<typeof Schema.String>;
|
|
288
|
+
}>;
|
|
289
|
+
export type PublisherVerification = Schema.Schema.Type<typeof PublisherVerificationSchema>;
|
|
290
|
+
/** NSID constants for the four `org.dxos.experimental.*` record collections. */
|
|
291
|
+
export declare const NSID: {
|
|
292
|
+
readonly PackageProfile: 'org.dxos.experimental.package.profile';
|
|
293
|
+
readonly PackageRelease: 'org.dxos.experimental.package.release';
|
|
294
|
+
readonly PublisherProfile: 'org.dxos.experimental.publisher.profile';
|
|
295
|
+
readonly PublisherVerification: 'org.dxos.experimental.publisher.verification';
|
|
296
|
+
};
|
|
297
|
+
export type RegistryNsid = (typeof NSID)[keyof typeof NSID];
|
|
298
|
+
export declare const ALL_NSIDS: readonly RegistryNsid[];
|
|
127
299
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,4DAA8D,CAAC;AAC/F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAE/B,qFAAqF;;IAErF;;;OAGG;;IAEH,8FAA8F;;EAE9F,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAI7E;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,2CAA2C;;IAE3C,qEAAqE;;IAErE;;;OAGG;;EAEH,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,iIAAiI;;IAEjI,2BAA2B;;IAE3B,iDAAiD;;IAEjD,wDAAwD;;IAExD,6BAA6B;;IAE7B,0CAA0C;;IAE1C,+EAA+E;;;;;IAE/E,gHAAgH;;;;;IAEhH,2GAA2G;;IAE3G,wFAAwF;;EAExF,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB;IAE3B;;;OAGG;;IAEH,iFAAiF;;IAEjF;;;OAGG;;IAEH,0DAA0D;;IAE1D;;;OAGG;;;QA3DH,iIAAiI;;QAEjI,2BAA2B;;QAE3B,iDAAiD;;QAEjD,wDAAwD;;QAExD,6BAA6B;;QAE7B,0CAA0C;;QAE1C,+EAA+E;;;;;QAE/E,gHAAgH;;;;;QAEhH,2GAA2G;;QAE3G,wFAAwF;;;IAgDxF;;;OAGG;;QAvFH,2CAA2C;;QAE3C,qEAAqE;;QAErE;;;WAGG;;;IAkFH;;;OAGG;;EAEH,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,4BAA4B;IACvC,+CAA+C;;IAE/C,wBAAwB;;QA3CxB;;;WAGG;;QAEH,iFAAiF;;QAEjF;;;WAGG;;QAEH,0DAA0D;;QAE1D;;;WAGG;;;YA3DH,iIAAiI;;YAEjI,2BAA2B;;YAE3B,iDAAiD;;YAEjD,wDAAwD;;YAExD,6BAA6B;;YAE7B,0CAA0C;;YAE1C,+EAA+E;;;;;YAE/E,gHAAgH;;;;;YAEhH,2GAA2G;;YAE3G,wFAAwF;;;QAgDxF;;;WAGG;;YAvFH,2CAA2C;;YAE3C,qEAAqE;;YAErE;;;eAGG;;;QAkFH;;;WAGG;;;IAaH,mEAAmE;;EAEnE,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAI7F,6FAA6F;AAC7F,eAAO,MAAM,sBAAsB;;;;;EAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;EAKtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAI3F,gFAAgF;AAChF,eAAO,MAAM,IAAI;aACf,cAAc,EAAE,uCAAuC;aACvD,cAAc,EAAE,uCAAuC;aACvD,gBAAgB,EAAE,yCAAyC;aAC3D,qBAAqB,EAAE,8CAA8C;CAC7D,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAE5D,eAAO,MAAM,SAAS,EAAE,SAAS,YAAY,EAK5C,CAAC"}
|
|
@@ -2,78 +2,177 @@
|
|
|
2
2
|
// Copyright 2026 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
import * as Schema from 'effect/Schema';
|
|
5
|
+
import * as Config2 from '../Config2.js';
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* package free of UI/runtime dependencies. Consumers can treat decoded values as
|
|
10
|
-
* `Plugin.Meta` directly.
|
|
7
|
+
* A snapshot of a plugin's declared dependencies resolved to concrete installed versions at build
|
|
8
|
+
* time (`{ "@dxos/app-framework": "0.8.3", "react": "19.2.0", … }`). The host derives SDK
|
|
9
|
+
* compatibility from the subset it shares with the plugin (the externalized `@dxos/*` packages).
|
|
11
10
|
*/
|
|
12
|
-
export const
|
|
13
|
-
id: Schema.String.pipe(Schema.nonEmptyString()),
|
|
14
|
-
name: Schema.String.pipe(Schema.nonEmptyString()),
|
|
15
|
-
description: Schema.optional(Schema.String),
|
|
16
|
-
homePage: Schema.optional(Schema.String),
|
|
17
|
-
source: Schema.optional(Schema.String),
|
|
18
|
-
screenshots: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
-
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
20
|
-
icon: Schema.optional(Schema.String),
|
|
21
|
-
iconHue: Schema.optional(Schema.String),
|
|
22
|
-
});
|
|
11
|
+
export const DependencyMapSchema = Schema.Record({ key: Schema.String, value: Schema.String });
|
|
23
12
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
13
|
+
* Filename of the entry module every plugin must publish at the root of its bundle.
|
|
14
|
+
* The host dynamic-imports `<manifest URL base>/index.mjs` directly — no per-plugin
|
|
15
|
+
* configuration. `composerPlugin` outputs the bundle under this name so plugin authors
|
|
16
|
+
* never have to think about it.
|
|
26
17
|
*/
|
|
27
|
-
export const
|
|
18
|
+
export const PLUGIN_ENTRY_FILENAME = 'index.mjs';
|
|
28
19
|
/**
|
|
29
20
|
* Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
|
|
30
|
-
*
|
|
31
|
-
*
|
|
21
|
+
*
|
|
22
|
+
* Emitted by `@dxos/app-framework/vite-plugin`'s `composerPlugin` (see
|
|
23
|
+
* `MANIFEST_ASSET_NAME`). Lists every file the plugin needs at runtime — the entry
|
|
24
|
+
* module ({@link PLUGIN_ENTRY_FILENAME}) plus any sibling CSS, code-split chunks,
|
|
25
|
+
* fonts, etc. — so the host can eagerly precache the whole bundle for offline use.
|
|
26
|
+
* Paths in `assets` are relative to the manifest's URL.
|
|
32
27
|
*/
|
|
33
28
|
export const PluginManifestSchema = Schema.Struct({
|
|
34
|
-
...
|
|
35
|
-
|
|
29
|
+
...Config2.Plugin.fields,
|
|
30
|
+
/** Plugin version (semver). Sourced from the publishing project's `package.json`. */
|
|
31
|
+
version: Schema.String.pipe(Schema.nonEmptyString()),
|
|
32
|
+
/**
|
|
33
|
+
* Relative paths of every file the plugin needs at runtime, including the entry.
|
|
34
|
+
* Must include {@link PLUGIN_ENTRY_FILENAME}; consumers verify on parse.
|
|
35
|
+
*/
|
|
36
|
+
assets: Schema.Array(Schema.String).pipe(Schema.minItems(1)),
|
|
37
|
+
/** Declared dependencies resolved to installed versions at build time (SDK-compat source). */
|
|
38
|
+
dependencies: Schema.optional(DependencyMapSchema),
|
|
36
39
|
});
|
|
40
|
+
// ─── ATProto-native registry view ────────────────────────────────────────────
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* A single installable release of a plugin, projected from a `package.release`
|
|
43
|
+
* ATProto record.
|
|
39
44
|
*/
|
|
40
|
-
export const
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
+
export const PluginReleaseSchema = Schema.Struct({
|
|
46
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
47
|
+
version: Schema.String.pipe(Schema.nonEmptyString()),
|
|
48
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
49
|
+
moduleUrl: Schema.String.pipe(Schema.nonEmptyString()),
|
|
45
50
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* proxied by the service itself); clients pass this value directly to the URL loader.
|
|
51
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
52
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
49
53
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
dependencies: Schema.optional(DependencyMapSchema),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Verbatim content of a `package.profile` ATProto record. `key` is the record's rkey (a reverse-domain
|
|
58
|
+
* NSID), denormalized into the body. Version-independent identity + display metadata; provenance
|
|
59
|
+
* (`author`) is resolved separately from the publisher DID/handle.
|
|
60
|
+
*/
|
|
61
|
+
export const PluginProfileSchema = Schema.Struct({
|
|
62
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
63
|
+
key: Schema.String.pipe(Schema.nonEmptyString()),
|
|
64
|
+
/** Plugin display name. */
|
|
65
|
+
name: Schema.String.pipe(Schema.nonEmptyString()),
|
|
66
|
+
/** Short description of plugin functionality. */
|
|
67
|
+
description: Schema.optional(Schema.String),
|
|
68
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
69
|
+
homePage: Schema.optional(Schema.String),
|
|
70
|
+
/** Source repository URL. */
|
|
71
|
+
source: Schema.optional(Schema.String),
|
|
72
|
+
/** Tags to help categorize the plugin. */
|
|
73
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
74
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
75
|
+
screenshots: Schema.optional(Schema.Array(Config2.Screenshot)),
|
|
76
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
77
|
+
icon: Schema.optional(Config2.Icon),
|
|
78
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
79
|
+
dependsOn: Schema.optional(Schema.Array(Schema.String)),
|
|
80
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
81
|
+
spec: Schema.optional(Schema.String),
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* A single hydrated plugin entry returned by `GET /registry/plugins`.
|
|
85
|
+
*
|
|
86
|
+
* This is an indexer-assembled *view* — analogous to emdash's `PackageView` — projected
|
|
87
|
+
* from four ATProto record types: `package.profile`, `package.release`,
|
|
88
|
+
* `publisher.profile`, and `publisher.verification`. It is NOT a direct serialization
|
|
89
|
+
* of any single ATProto record.
|
|
90
|
+
*
|
|
91
|
+
* Design notes:
|
|
92
|
+
* - `profile.key` is required to be a valid NSID (e.g. `org.dxos.plugin.excalidraw`), making it
|
|
93
|
+
* the single identifier for both PDS addressing and the composer runtime plugin id.
|
|
94
|
+
* `DXN.make(profile.key, latestVersion)` reconstructs the canonical plugin DXN.
|
|
95
|
+
* - `releases` inlines all known versions, eliminating a separate versions round-trip for
|
|
96
|
+
* the version picker. Ordered newest-first.
|
|
97
|
+
* - `latestVersion` is a convenience pointer into `releases` indicating the recommended
|
|
98
|
+
* install target.
|
|
99
|
+
*/
|
|
100
|
+
export const PluginViewSchema = Schema.Struct({
|
|
101
|
+
// ── Addressing / provenance (indexer-derived) ────────────────────────────
|
|
102
|
+
/**
|
|
103
|
+
* `at://` URI of the source `package.profile` record.
|
|
104
|
+
* Globally unique and stable — never changes after the record is published.
|
|
105
|
+
*/
|
|
106
|
+
uri: Schema.String.pipe(Schema.nonEmptyString()),
|
|
107
|
+
/** Publisher DID, e.g. `did:plc:abc…`. Cryptographic identity; never changes. */
|
|
108
|
+
did: Schema.String.pipe(Schema.nonEmptyString()),
|
|
109
|
+
/**
|
|
110
|
+
* Publisher AT Protocol handle at index time, e.g. `alice.bsky.social`.
|
|
111
|
+
* Display-only — handles can be reassigned; never use as a stable key.
|
|
112
|
+
*/
|
|
113
|
+
handle: Schema.optional(Schema.String),
|
|
114
|
+
/** Unix ms when the indexer last assembled this entry. */
|
|
115
|
+
indexedAt: Schema.Number,
|
|
116
|
+
/**
|
|
117
|
+
* Trust labels derived from curator `publisher.verification` records.
|
|
118
|
+
* An empty array means the entry has no verification signal.
|
|
119
|
+
*/
|
|
120
|
+
labels: Schema.Array(Schema.String),
|
|
121
|
+
// ── Verbatim profile record content ─────────────────────────────────────
|
|
122
|
+
profile: PluginProfileSchema,
|
|
123
|
+
// ── Releases (projected from package.release records) ───────────────────
|
|
124
|
+
/**
|
|
125
|
+
* All known releases for this package, ordered newest-first.
|
|
126
|
+
* Powers the version picker directly — no separate endpoint needed.
|
|
127
|
+
*/
|
|
128
|
+
releases: Schema.Array(PluginReleaseSchema),
|
|
129
|
+
/**
|
|
130
|
+
* The latest (recommended) release version. Always references an entry in `releases`.
|
|
131
|
+
* Used by the host to determine whether an update is available.
|
|
132
|
+
*/
|
|
133
|
+
latestVersion: Schema.String.pipe(Schema.nonEmptyString()),
|
|
57
134
|
});
|
|
58
135
|
/**
|
|
59
136
|
* Response body of `GET /registry/plugins`.
|
|
60
137
|
*/
|
|
61
138
|
export const GetPluginsResponseBodySchema = Schema.Struct({
|
|
62
|
-
/** Wire-format schema version, pinned to
|
|
63
|
-
version: Schema.Literal(
|
|
64
|
-
/** Hydrated entries.
|
|
65
|
-
plugins: Schema.Array(
|
|
66
|
-
/** Unix ms timestamp of the most recent successful
|
|
139
|
+
/** Wire-format schema version, pinned to 2. */
|
|
140
|
+
version: Schema.Literal(2),
|
|
141
|
+
/** Hydrated entries. */
|
|
142
|
+
plugins: Schema.Array(PluginViewSchema),
|
|
143
|
+
/** Unix ms timestamp of the most recent successful index cycle. */
|
|
67
144
|
refreshedAt: Schema.Number,
|
|
68
145
|
});
|
|
146
|
+
// ─── Publisher records ────────────────────────────────────────────────────────
|
|
147
|
+
/** Content of a `publisher.profile` ATProto record. Display metadata for a publisher DID. */
|
|
148
|
+
export const PublisherProfileSchema = Schema.Struct({
|
|
149
|
+
displayName: Schema.String.pipe(Schema.nonEmptyString()),
|
|
150
|
+
bio: Schema.optional(Schema.String),
|
|
151
|
+
homepageUrl: Schema.optional(Schema.String),
|
|
152
|
+
contact: Schema.optional(Schema.String),
|
|
153
|
+
});
|
|
69
154
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
155
|
+
* Content of a `publisher.verification` record written by the curator DID.
|
|
156
|
+
* Links a publisher DID to a trusted AT Protocol handle.
|
|
72
157
|
*/
|
|
73
|
-
export const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
158
|
+
export const PublisherVerificationSchema = Schema.Struct({
|
|
159
|
+
subject: Schema.String.pipe(Schema.nonEmptyString()),
|
|
160
|
+
handle: Schema.String.pipe(Schema.nonEmptyString()),
|
|
161
|
+
displayName: Schema.String.pipe(Schema.nonEmptyString()),
|
|
162
|
+
createdAt: Schema.String.pipe(Schema.nonEmptyString()),
|
|
163
|
+
});
|
|
164
|
+
// ─── NSID constants ───────────────────────────────────────────────────────────
|
|
165
|
+
/** NSID constants for the four `org.dxos.experimental.*` record collections. */
|
|
166
|
+
export const NSID = {
|
|
167
|
+
PackageProfile: 'org.dxos.experimental.package.profile',
|
|
168
|
+
PackageRelease: 'org.dxos.experimental.package.release',
|
|
169
|
+
PublisherProfile: 'org.dxos.experimental.publisher.profile',
|
|
170
|
+
PublisherVerification: 'org.dxos.experimental.publisher.verification',
|
|
171
|
+
};
|
|
172
|
+
export const ALL_NSIDS = [
|
|
173
|
+
NSID.PackageProfile,
|
|
174
|
+
NSID.PackageRelease,
|
|
175
|
+
NSID.PublisherProfile,
|
|
176
|
+
NSID.PublisherVerification,
|
|
177
|
+
];
|
|
79
178
|
//# sourceMappingURL=registry.js.map
|