@dxos/client-services 0.4.10-main.1f36d57 → 0.4.10-main.2b53d56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-services",
3
- "version": "0.4.10-main.1f36d57",
3
+ "version": "0.4.10-main.2b53d56",
4
4
  "description": "DXOS client services implementation",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -22,43 +22,43 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "platform": "^1.3.6",
25
- "@dxos/async": "0.4.10-main.1f36d57",
26
- "@dxos/automerge": "0.4.10-main.1f36d57",
27
- "@dxos/codec-protobuf": "0.4.10-main.1f36d57",
28
- "@dxos/client-protocol": "0.4.10-main.1f36d57",
29
- "@dxos/config": "0.4.10-main.1f36d57",
30
- "@dxos/context": "0.4.10-main.1f36d57",
31
- "@dxos/credentials": "0.4.10-main.1f36d57",
32
- "@dxos/crypto": "0.4.10-main.1f36d57",
33
- "@dxos/echo-db": "0.4.10-main.1f36d57",
34
- "@dxos/echo-pipeline": "0.4.10-main.1f36d57",
35
- "@dxos/debug": "0.4.10-main.1f36d57",
36
- "@dxos/echo-schema": "0.4.10-main.1f36d57",
37
- "@dxos/feed-store": "0.4.10-main.1f36d57",
38
- "@dxos/indexing": "0.4.10-main.1f36d57",
39
- "@dxos/invariant": "0.4.10-main.1f36d57",
40
- "@dxos/keyring": "0.4.10-main.1f36d57",
41
- "@dxos/keys": "0.4.10-main.1f36d57",
42
- "@dxos/log": "0.4.10-main.1f36d57",
43
- "@dxos/lock-file": "0.4.10-main.1f36d57",
44
- "@dxos/messaging": "0.4.10-main.1f36d57",
45
- "@dxos/network-manager": "0.4.10-main.1f36d57",
46
- "@dxos/node-std": "0.4.10-main.1f36d57",
47
- "@dxos/protocols": "0.4.10-main.1f36d57",
48
- "@dxos/random-access-storage": "0.4.10-main.1f36d57",
49
- "@dxos/rpc": "0.4.10-main.1f36d57",
50
- "@dxos/teleport-extension-gossip": "0.4.10-main.1f36d57",
51
- "@dxos/teleport-extension-object-sync": "0.4.10-main.1f36d57",
52
- "@dxos/teleport": "0.4.10-main.1f36d57",
53
- "@dxos/timeframe": "0.4.10-main.1f36d57",
54
- "@dxos/tracing": "0.4.10-main.1f36d57",
55
- "@dxos/websocket-rpc": "0.4.10-main.1f36d57",
56
- "@dxos/util": "0.4.10-main.1f36d57"
25
+ "@dxos/async": "0.4.10-main.2b53d56",
26
+ "@dxos/automerge": "0.4.10-main.2b53d56",
27
+ "@dxos/config": "0.4.10-main.2b53d56",
28
+ "@dxos/client-protocol": "0.4.10-main.2b53d56",
29
+ "@dxos/codec-protobuf": "0.4.10-main.2b53d56",
30
+ "@dxos/context": "0.4.10-main.2b53d56",
31
+ "@dxos/credentials": "0.4.10-main.2b53d56",
32
+ "@dxos/debug": "0.4.10-main.2b53d56",
33
+ "@dxos/crypto": "0.4.10-main.2b53d56",
34
+ "@dxos/echo-db": "0.4.10-main.2b53d56",
35
+ "@dxos/echo-schema": "0.4.10-main.2b53d56",
36
+ "@dxos/echo-pipeline": "0.4.10-main.2b53d56",
37
+ "@dxos/feed-store": "0.4.10-main.2b53d56",
38
+ "@dxos/indexing": "0.4.10-main.2b53d56",
39
+ "@dxos/keyring": "0.4.10-main.2b53d56",
40
+ "@dxos/invariant": "0.4.10-main.2b53d56",
41
+ "@dxos/lock-file": "0.4.10-main.2b53d56",
42
+ "@dxos/keys": "0.4.10-main.2b53d56",
43
+ "@dxos/log": "0.4.10-main.2b53d56",
44
+ "@dxos/messaging": "0.4.10-main.2b53d56",
45
+ "@dxos/network-manager": "0.4.10-main.2b53d56",
46
+ "@dxos/protocols": "0.4.10-main.2b53d56",
47
+ "@dxos/node-std": "0.4.10-main.2b53d56",
48
+ "@dxos/random-access-storage": "0.4.10-main.2b53d56",
49
+ "@dxos/rpc": "0.4.10-main.2b53d56",
50
+ "@dxos/teleport-extension-gossip": "0.4.10-main.2b53d56",
51
+ "@dxos/teleport": "0.4.10-main.2b53d56",
52
+ "@dxos/teleport-extension-object-sync": "0.4.10-main.2b53d56",
53
+ "@dxos/timeframe": "0.4.10-main.2b53d56",
54
+ "@dxos/tracing": "0.4.10-main.2b53d56",
55
+ "@dxos/util": "0.4.10-main.2b53d56",
56
+ "@dxos/websocket-rpc": "0.4.10-main.2b53d56"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/platform": "^1.3.4",
60
60
  "@types/readable-stream": "^2.3.9",
61
- "@dxos/signal": "0.4.10-main.1f36d57"
61
+ "@dxos/signal": "0.4.10-main.2b53d56"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -2,12 +2,13 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import { Event, synchronized } from '@dxos/async';
6
- import { Properties, clientServiceBundle, defaultKey, type ClientServices } from '@dxos/client-protocol';
5
+ import { Event, sleep, synchronized } from '@dxos/async';
6
+ import { clientServiceBundle, defaultKey, type ClientServices, PropertiesSchema } from '@dxos/client-protocol';
7
7
  import { type Config } from '@dxos/config';
8
8
  import { Context } from '@dxos/context';
9
9
  import { DataServiceImpl, type SpaceDoc } from '@dxos/echo-pipeline';
10
- import { getAutomergeObjectCore, getRawDoc, type TypedObject } from '@dxos/echo-schema';
10
+ import * as E from '@dxos/echo-schema';
11
+ import { createRawObjectDoc } from '@dxos/echo-schema';
11
12
  import { IndexServiceImpl } from '@dxos/indexing';
12
13
  import { invariant } from '@dxos/invariant';
13
14
  import { PublicKey } from '@dxos/keys';
@@ -347,17 +348,20 @@ export class ClientServicesHost {
347
348
  await this._serviceContext.initialized.wait();
348
349
  const space = await this._serviceContext.dataSpaceManager!.createSpace();
349
350
 
350
- const obj: TypedObject = new Properties(undefined);
351
- obj[defaultKey] = identity.identityKey.toHex();
352
-
353
351
  const automergeIndex = space.automergeSpaceState.rootUrl;
354
352
  invariant(automergeIndex);
355
353
  const document = await this._serviceContext.automergeHost.repo.find<SpaceDoc>(automergeIndex as any);
356
354
  await document.whenReady();
357
355
 
356
+ const objectDocument = createRawObjectDoc(
357
+ { [defaultKey]: identity.identityKey.toHex() },
358
+ { type: E.getTypeReference(PropertiesSchema) },
359
+ );
358
360
  document.change((doc: SpaceDoc) => {
359
- assignDeep(doc, ['objects', getAutomergeObjectCore(obj).id], getRawDoc(obj).handle.docSync());
361
+ assignDeep(doc, ['objects', objectDocument.id], objectDocument.handle.docSync());
360
362
  });
363
+ // TODO: replace with flush when supported by automerge-repo
364
+ await sleep(200);
361
365
 
362
366
  return identity;
363
367
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DXOS_VERSION = "0.4.10-main.1f36d57";
1
+ export const DXOS_VERSION = "0.4.10-main.2b53d56";