@dxos/client-protocol 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65

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-protocol",
3
- "version": "0.8.4-main.c85a9c8dae",
3
+ "version": "0.8.4-main.d05673bc65",
4
4
  "description": "Core DXOS Client API.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -41,16 +41,16 @@
41
41
  "dependencies": {
42
42
  "base-x": "~3.0.11",
43
43
  "effect": "3.19.16",
44
- "@dxos/async": "0.8.4-main.c85a9c8dae",
45
- "@dxos/credentials": "0.8.4-main.c85a9c8dae",
46
- "@dxos/context": "0.8.4-main.c85a9c8dae",
47
- "@dxos/invariant": "0.8.4-main.c85a9c8dae",
48
- "@dxos/echo-db": "0.8.4-main.c85a9c8dae",
49
- "@dxos/node-std": "0.8.4-main.c85a9c8dae",
50
- "@dxos/rpc": "0.8.4-main.c85a9c8dae",
51
- "@dxos/keys": "0.8.4-main.c85a9c8dae",
52
- "@dxos/protocols": "0.8.4-main.c85a9c8dae",
53
- "@dxos/echo": "0.8.4-main.c85a9c8dae"
44
+ "@dxos/context": "0.8.4-main.d05673bc65",
45
+ "@dxos/credentials": "0.8.4-main.d05673bc65",
46
+ "@dxos/echo": "0.8.4-main.d05673bc65",
47
+ "@dxos/echo-db": "0.8.4-main.d05673bc65",
48
+ "@dxos/invariant": "0.8.4-main.d05673bc65",
49
+ "@dxos/keys": "0.8.4-main.d05673bc65",
50
+ "@dxos/node-std": "0.8.4-main.d05673bc65",
51
+ "@dxos/protocols": "0.8.4-main.d05673bc65",
52
+ "@dxos/rpc": "0.8.4-main.d05673bc65",
53
+ "@dxos/async": "0.8.4-main.d05673bc65"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "effect": "3.19.16"
package/src/config.ts CHANGED
@@ -60,9 +60,9 @@ export namespace DXEnv {
60
60
  }
61
61
  }
62
62
 
63
- // Base directories.
64
- // TODO(burdon): Consider Windows, Linux, OSX.
65
- // https://wiki.archlinux.org/title/XDG_Base_Directory
66
- // Each `/dx` directory should contain `/profile/<DX_PROFILE>` subdirectories.
67
- export const getProfilePath = (root: string, profile: string, file: string | undefined = undefined) =>
63
+ // Profile layout: profile/<name> is the profile dir; profile/<name>.yml is the config file.
64
+ export const getProfilePath = (root: string, profile: string, file?: string) =>
68
65
  `${root}/profile/${profile}` + (file ? `/${file}` : '');
66
+
67
+ /** Path to the profile config file (profile/<name>.yml). */
68
+ export const getProfileConfigPath = (root: string, profile: string) => `${getProfilePath(root, profile)}.yml`;
@@ -39,8 +39,7 @@ export type SpacePropertiesSchema = Schema.Schema.Type<typeof SpacePropertiesSch
39
39
  // TODO(burdon): Is separate schema def required for forms? Can it be extracted from SpaceProperties?
40
40
  export const SpaceProperties = SpacePropertiesSchema.pipe(
41
41
  Type.object({
42
- // TODO(burdon): Rename SpaceProperties.
43
- typename: 'dxos.org/type/Properties',
42
+ typename: 'org.dxos.type.space-properties',
44
43
  version: '0.1.0',
45
44
  }),
46
45
  Annotation.SystemTypeAnnotation.set(true),