@dxos/echo-protocol 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea

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/echo-protocol",
3
- "version": "0.8.4-main.a4bbb77",
3
+ "version": "0.8.4-main.ae835ea",
4
4
  "description": "Core ECHO APIs.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -27,11 +27,11 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "effect": "3.18.3",
30
- "@dxos/crypto": "0.8.4-main.a4bbb77",
31
- "@dxos/invariant": "0.8.4-main.a4bbb77",
32
- "@dxos/keys": "0.8.4-main.a4bbb77",
33
- "@dxos/protocols": "0.8.4-main.a4bbb77",
34
- "@dxos/util": "0.8.4-main.a4bbb77"
30
+ "@dxos/crypto": "0.8.4-main.ae835ea",
31
+ "@dxos/invariant": "0.8.4-main.ae835ea",
32
+ "@dxos/protocols": "0.8.4-main.ae835ea",
33
+ "@dxos/keys": "0.8.4-main.ae835ea",
34
+ "@dxos/util": "0.8.4-main.ae835ea"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -153,6 +153,10 @@ export const ObjectStructure = Object.freeze({
153
153
  return references;
154
154
  },
155
155
 
156
+ getTags: (object: ObjectStructure): string[] => {
157
+ return object.meta.tags ?? [];
158
+ },
159
+
156
160
  makeObject: ({
157
161
  type,
158
162
  data,
@@ -214,6 +218,14 @@ export type ObjectMeta = {
214
218
  * Foreign keys.
215
219
  */
216
220
  keys: ForeignKey[];
221
+
222
+ /**
223
+ * Tags.
224
+ * An array of DXNs of Tag objects within the space.
225
+ *
226
+ * NOTE: Optional for backwards compatibilty.
227
+ */
228
+ tags?: string[];
217
229
  };
218
230
 
219
231
  /**
@@ -2,7 +2,8 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Schema, SchemaAST } from 'effect';
5
+ import * as Schema from 'effect/Schema';
6
+ import * as SchemaAST from 'effect/SchemaAST';
6
7
 
7
8
  const ForeignKey_ = Schema.Struct({
8
9
  /**
package/src/query/ast.ts CHANGED
@@ -2,7 +2,8 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Match, Schema } from 'effect';
5
+ import * as Match from 'effect/Match';
6
+ import * as Schema from 'effect/Schema';
6
7
 
7
8
  import { DXN, ObjectId } from '@dxos/keys';
8
9
 
@@ -82,7 +83,7 @@ export interface FilterContains extends Schema.Schema.Type<typeof FilterContains
82
83
  export const FilterContains: Schema.Schema<FilterContains> = FilterContains_;
83
84
 
84
85
  /**
85
- * Tag.
86
+ * Filters objects that have certain tag.
86
87
  */
87
88
  const FilterTag_ = Schema.Struct({
88
89
  type: Schema.Literal('tag'),