@dxos/echo 0.10.0 → 0.11.0

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.
Files changed (274) hide show
  1. package/dist/lib/Annotation.mjs +3 -0
  2. package/dist/lib/Blob.mjs +160 -0
  3. package/dist/lib/Blob.mjs.map +1 -0
  4. package/dist/lib/Database.mjs +2 -0
  5. package/dist/lib/Entity.mjs +231 -0
  6. package/dist/lib/Entity.mjs.map +1 -0
  7. package/dist/lib/Err.mjs +105 -0
  8. package/dist/lib/Err.mjs.map +1 -0
  9. package/dist/lib/Feed.mjs +338 -0
  10. package/dist/lib/Feed.mjs.map +1 -0
  11. package/dist/lib/Filter.mjs +380 -0
  12. package/dist/lib/Filter.mjs.map +1 -0
  13. package/dist/lib/Format.mjs +47 -0
  14. package/dist/lib/Format.mjs.map +1 -0
  15. package/dist/lib/JsonSchema.mjs +21 -0
  16. package/dist/lib/JsonSchema.mjs.map +1 -0
  17. package/dist/lib/Key.mjs +15 -0
  18. package/dist/lib/Key.mjs.map +1 -0
  19. package/dist/lib/Migration.mjs +38 -0
  20. package/dist/lib/Migration.mjs.map +1 -0
  21. package/dist/lib/Obj.mjs +660 -0
  22. package/dist/lib/Obj.mjs.map +1 -0
  23. package/dist/lib/Order.mjs +65 -0
  24. package/dist/lib/Order.mjs.map +1 -0
  25. package/dist/lib/Query.mjs +336 -0
  26. package/dist/lib/Query.mjs.map +1 -0
  27. package/dist/lib/QueryResult.mjs +7 -0
  28. package/dist/lib/QueryResult.mjs.map +1 -0
  29. package/dist/lib/Ref.mjs +44 -0
  30. package/dist/lib/Ref.mjs.map +1 -0
  31. package/dist/lib/Registry.mjs +35 -0
  32. package/dist/lib/Registry.mjs.map +1 -0
  33. package/dist/lib/Relation.mjs +397 -0
  34. package/dist/lib/Relation.mjs.map +1 -0
  35. package/dist/lib/Scope.mjs +51 -0
  36. package/dist/lib/Scope.mjs.map +1 -0
  37. package/dist/lib/Tag.mjs +70 -0
  38. package/dist/lib/Tag.mjs.map +1 -0
  39. package/dist/lib/Text.mjs +82 -0
  40. package/dist/lib/Text.mjs.map +1 -0
  41. package/dist/lib/Type.mjs +371 -0
  42. package/dist/lib/Type.mjs.map +1 -0
  43. package/dist/lib/chunk-Annotation.mjs +221 -0
  44. package/dist/lib/chunk-Annotation.mjs.map +1 -0
  45. package/dist/lib/chunk-Database.mjs +918 -0
  46. package/dist/lib/chunk-Database.mjs.map +1 -0
  47. package/dist/lib/chunk-atom-snapshot.mjs +249 -0
  48. package/dist/lib/chunk-atom-snapshot.mjs.map +1 -0
  49. package/dist/lib/chunk-internal.mjs +2775 -0
  50. package/dist/lib/chunk-internal.mjs.map +1 -0
  51. package/dist/lib/chunk-json-schema.mjs +660 -0
  52. package/dist/lib/chunk-json-schema.mjs.map +1 -0
  53. package/dist/lib/chunk-number.mjs +164 -0
  54. package/dist/lib/chunk-number.mjs.map +1 -0
  55. package/dist/lib/chunk-ref-array.mjs +31 -0
  56. package/dist/lib/chunk-ref-array.mjs.map +1 -0
  57. package/dist/lib/chunk-ref.mjs +590 -0
  58. package/dist/lib/chunk-ref.mjs.map +1 -0
  59. package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
  60. package/dist/lib/chunk-select.mjs +186 -0
  61. package/dist/lib/chunk-select.mjs.map +1 -0
  62. package/dist/lib/chunk-src.mjs +234 -0
  63. package/dist/lib/chunk-src.mjs.map +1 -0
  64. package/dist/lib/chunk-util.mjs +140 -0
  65. package/dist/lib/chunk-util.mjs.map +1 -0
  66. package/dist/lib/index.mjs +24 -0
  67. package/dist/lib/internal.mjs +10 -0
  68. package/dist/lib/testing.mjs +346 -0
  69. package/dist/lib/testing.mjs.map +1 -0
  70. package/dist/types/src/Aggregate.d.ts +86 -0
  71. package/dist/types/src/Aggregate.d.ts.map +1 -0
  72. package/dist/types/src/Blob.d.ts +153 -0
  73. package/dist/types/src/Blob.d.ts.map +1 -0
  74. package/dist/types/src/Blob.test.d.ts +2 -0
  75. package/dist/types/src/Blob.test.d.ts.map +1 -0
  76. package/dist/types/src/Database.d.ts +153 -4
  77. package/dist/types/src/Database.d.ts.map +1 -1
  78. package/dist/types/src/Err.d.ts +116 -0
  79. package/dist/types/src/Err.d.ts.map +1 -1
  80. package/dist/types/src/Feed.d.ts +116 -28
  81. package/dist/types/src/Feed.d.ts.map +1 -1
  82. package/dist/types/src/Feed.test.d.ts +2 -0
  83. package/dist/types/src/Feed.test.d.ts.map +1 -0
  84. package/dist/types/src/Filter.d.ts +14 -6
  85. package/dist/types/src/Filter.d.ts.map +1 -1
  86. package/dist/types/src/Hypergraph.d.ts +18 -0
  87. package/dist/types/src/Hypergraph.d.ts.map +1 -1
  88. package/dist/types/src/Json.d.ts.map +1 -1
  89. package/dist/types/src/Obj.d.ts +14 -1
  90. package/dist/types/src/Obj.d.ts.map +1 -1
  91. package/dist/types/src/Order.d.ts +9 -3
  92. package/dist/types/src/Order.d.ts.map +1 -1
  93. package/dist/types/src/Query.d.ts +107 -26
  94. package/dist/types/src/Query.d.ts.map +1 -1
  95. package/dist/types/src/Relation.d.ts +6 -0
  96. package/dist/types/src/Relation.d.ts.map +1 -1
  97. package/dist/types/src/Type.d.ts.map +1 -1
  98. package/dist/types/src/View.d.ts +1 -1
  99. package/dist/types/src/index.d.ts +2 -0
  100. package/dist/types/src/index.d.ts.map +1 -1
  101. package/dist/types/src/internal/Entity/api.d.ts +6 -0
  102. package/dist/types/src/internal/Entity/api.d.ts.map +1 -1
  103. package/dist/types/src/internal/Entity/model.d.ts +3 -2
  104. package/dist/types/src/internal/Entity/model.d.ts.map +1 -1
  105. package/dist/types/src/internal/Filter/match.d.ts.map +1 -1
  106. package/dist/types/src/internal/JsonSchema/json-schema-type.d.ts +34 -8
  107. package/dist/types/src/internal/JsonSchema/json-schema-type.d.ts.map +1 -1
  108. package/dist/types/src/internal/JsonSchema/json-schema.d.ts.map +1 -1
  109. package/dist/types/src/internal/Obj/atoms.d.ts.map +1 -1
  110. package/dist/types/src/internal/Obj/json-serializer.d.ts.map +1 -1
  111. package/dist/types/src/internal/Query/pretty.d.ts.map +1 -1
  112. package/dist/types/src/internal/Query/query-result-effect.d.ts.map +1 -1
  113. package/dist/types/src/internal/common/proxy/make-object.d.ts +13 -0
  114. package/dist/types/src/internal/common/proxy/make-object.d.ts.map +1 -1
  115. package/dist/types/src/internal/common/proxy/reactive.d.ts.map +1 -1
  116. package/dist/types/src/internal/common/proxy/symbols.d.ts.map +1 -1
  117. package/dist/types/src/internal/common/proxy/typed-handler.d.ts +12 -0
  118. package/dist/types/src/internal/common/proxy/typed-handler.d.ts.map +1 -1
  119. package/dist/types/src/internal/common/types/index.d.ts +1 -0
  120. package/dist/types/src/internal/common/types/index.d.ts.map +1 -1
  121. package/dist/types/src/internal/common/types/model-symbols.d.ts +5 -0
  122. package/dist/types/src/internal/common/types/model-symbols.d.ts.map +1 -1
  123. package/dist/types/src/internal/common/types/projection.d.ts +32 -0
  124. package/dist/types/src/internal/common/types/projection.d.ts.map +1 -0
  125. package/dist/types/tsconfig.tsbuildinfo +1 -1
  126. package/package.json +40 -35
  127. package/src/Aggregate.ts +105 -0
  128. package/src/Blob.test.ts +45 -0
  129. package/src/Blob.ts +205 -0
  130. package/src/Database.ts +207 -17
  131. package/src/Err.ts +36 -0
  132. package/src/Feed.test.ts +188 -0
  133. package/src/Feed.ts +238 -62
  134. package/src/Filter.ts +28 -10
  135. package/src/Hypergraph.ts +18 -0
  136. package/src/Json.ts +1 -0
  137. package/src/Obj.test.ts +2 -2
  138. package/src/Obj.ts +21 -1
  139. package/src/Order.ts +16 -9
  140. package/src/Query.test.ts +319 -2
  141. package/src/Query.ts +165 -51
  142. package/src/Relation.ts +14 -0
  143. package/src/Type.ts +5 -6
  144. package/src/index.ts +2 -0
  145. package/src/internal/Entity/api.ts +11 -1
  146. package/src/internal/Entity/model.ts +3 -0
  147. package/src/internal/Filter/match.ts +30 -1
  148. package/src/internal/JsonSchema/json-schema-type.ts +14 -2
  149. package/src/internal/JsonSchema/json-schema.test.ts +28 -1
  150. package/src/internal/JsonSchema/json-schema.ts +33 -6
  151. package/src/internal/Obj/atoms.ts +4 -2
  152. package/src/internal/Obj/json-serializer.test.ts +162 -2
  153. package/src/internal/Obj/json-serializer.ts +6 -0
  154. package/src/internal/Query/pretty.ts +19 -1
  155. package/src/internal/Query/query-result-effect.ts +2 -4
  156. package/src/internal/Ref/atoms.ts +1 -1
  157. package/src/internal/common/proxy/change-context.ts +1 -1
  158. package/src/internal/common/proxy/make-object.ts +42 -3
  159. package/src/internal/common/proxy/reactive.ts +5 -0
  160. package/src/internal/common/proxy/symbols.ts +1 -0
  161. package/src/internal/common/proxy/typed-handler.ts +71 -29
  162. package/src/internal/common/types/index.ts +1 -0
  163. package/src/internal/common/types/model-symbols.ts +6 -0
  164. package/src/internal/common/types/projection.ts +45 -0
  165. package/src/testing/test-data.ts +14 -14
  166. package/dist/lib/neutral/Annotation.mjs +0 -90
  167. package/dist/lib/neutral/Annotation.mjs.map +0 -7
  168. package/dist/lib/neutral/Database.mjs +0 -42
  169. package/dist/lib/neutral/Database.mjs.map +0 -7
  170. package/dist/lib/neutral/Entity.mjs +0 -76
  171. package/dist/lib/neutral/Entity.mjs.map +0 -7
  172. package/dist/lib/neutral/Err.mjs +0 -16
  173. package/dist/lib/neutral/Err.mjs.map +0 -7
  174. package/dist/lib/neutral/Feed.mjs +0 -50
  175. package/dist/lib/neutral/Feed.mjs.map +0 -7
  176. package/dist/lib/neutral/Filter.mjs +0 -72
  177. package/dist/lib/neutral/Filter.mjs.map +0 -7
  178. package/dist/lib/neutral/Format.mjs +0 -82
  179. package/dist/lib/neutral/Format.mjs.map +0 -7
  180. package/dist/lib/neutral/JsonSchema.mjs +0 -18
  181. package/dist/lib/neutral/JsonSchema.mjs.map +0 -7
  182. package/dist/lib/neutral/Key.mjs +0 -16
  183. package/dist/lib/neutral/Key.mjs.map +0 -7
  184. package/dist/lib/neutral/Migration.mjs +0 -18
  185. package/dist/lib/neutral/Migration.mjs.map +0 -7
  186. package/dist/lib/neutral/Obj.mjs +0 -128
  187. package/dist/lib/neutral/Obj.mjs.map +0 -7
  188. package/dist/lib/neutral/Order.mjs +0 -16
  189. package/dist/lib/neutral/Order.mjs.map +0 -7
  190. package/dist/lib/neutral/Query.mjs +0 -38
  191. package/dist/lib/neutral/Query.mjs.map +0 -7
  192. package/dist/lib/neutral/QueryResult.mjs +0 -2
  193. package/dist/lib/neutral/QueryResult.mjs.map +0 -7
  194. package/dist/lib/neutral/Ref.mjs +0 -25
  195. package/dist/lib/neutral/Ref.mjs.map +0 -7
  196. package/dist/lib/neutral/Registry.mjs +0 -14
  197. package/dist/lib/neutral/Registry.mjs.map +0 -7
  198. package/dist/lib/neutral/Relation.mjs +0 -97
  199. package/dist/lib/neutral/Relation.mjs.map +0 -7
  200. package/dist/lib/neutral/Scope.mjs +0 -12
  201. package/dist/lib/neutral/Scope.mjs.map +0 -7
  202. package/dist/lib/neutral/Tag.mjs +0 -32
  203. package/dist/lib/neutral/Tag.mjs.map +0 -7
  204. package/dist/lib/neutral/Text.mjs +0 -25
  205. package/dist/lib/neutral/Text.mjs.map +0 -7
  206. package/dist/lib/neutral/Type.mjs +0 -65
  207. package/dist/lib/neutral/Type.mjs.map +0 -7
  208. package/dist/lib/neutral/chunk-2HKGAQM4.mjs +0 -1394
  209. package/dist/lib/neutral/chunk-2HKGAQM4.mjs.map +0 -7
  210. package/dist/lib/neutral/chunk-2ZHECXUR.mjs +0 -95
  211. package/dist/lib/neutral/chunk-2ZHECXUR.mjs.map +0 -7
  212. package/dist/lib/neutral/chunk-3KTE2Y7Q.mjs +0 -336
  213. package/dist/lib/neutral/chunk-3KTE2Y7Q.mjs.map +0 -7
  214. package/dist/lib/neutral/chunk-3TN2VMI4.mjs +0 -714
  215. package/dist/lib/neutral/chunk-3TN2VMI4.mjs.map +0 -7
  216. package/dist/lib/neutral/chunk-42L4HJ3Z.mjs +0 -104
  217. package/dist/lib/neutral/chunk-42L4HJ3Z.mjs.map +0 -7
  218. package/dist/lib/neutral/chunk-4A2NWKRJ.mjs +0 -747
  219. package/dist/lib/neutral/chunk-4A2NWKRJ.mjs.map +0 -7
  220. package/dist/lib/neutral/chunk-7LOUAPYZ.mjs +0 -25
  221. package/dist/lib/neutral/chunk-7LOUAPYZ.mjs.map +0 -7
  222. package/dist/lib/neutral/chunk-ACFAOTKJ.mjs +0 -1531
  223. package/dist/lib/neutral/chunk-ACFAOTKJ.mjs.map +0 -7
  224. package/dist/lib/neutral/chunk-BEFR7LEA.mjs +0 -170
  225. package/dist/lib/neutral/chunk-BEFR7LEA.mjs.map +0 -7
  226. package/dist/lib/neutral/chunk-BXIKXT7Q.mjs +0 -89
  227. package/dist/lib/neutral/chunk-BXIKXT7Q.mjs.map +0 -7
  228. package/dist/lib/neutral/chunk-C57XMMBY.mjs +0 -206
  229. package/dist/lib/neutral/chunk-C57XMMBY.mjs.map +0 -7
  230. package/dist/lib/neutral/chunk-C62JYFAD.mjs +0 -183
  231. package/dist/lib/neutral/chunk-C62JYFAD.mjs.map +0 -7
  232. package/dist/lib/neutral/chunk-FSGX2R62.mjs +0 -48
  233. package/dist/lib/neutral/chunk-FSGX2R62.mjs.map +0 -7
  234. package/dist/lib/neutral/chunk-HBXT3GSB.mjs +0 -459
  235. package/dist/lib/neutral/chunk-HBXT3GSB.mjs.map +0 -7
  236. package/dist/lib/neutral/chunk-IQR45HAD.mjs +0 -31
  237. package/dist/lib/neutral/chunk-IQR45HAD.mjs.map +0 -7
  238. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +0 -10
  239. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +0 -7
  240. package/dist/lib/neutral/chunk-KCBW4BR6.mjs +0 -424
  241. package/dist/lib/neutral/chunk-KCBW4BR6.mjs.map +0 -7
  242. package/dist/lib/neutral/chunk-L3E5IXAE.mjs +0 -575
  243. package/dist/lib/neutral/chunk-L3E5IXAE.mjs.map +0 -7
  244. package/dist/lib/neutral/chunk-PRC4FEKJ.mjs +0 -56
  245. package/dist/lib/neutral/chunk-PRC4FEKJ.mjs.map +0 -7
  246. package/dist/lib/neutral/chunk-SCT6FFCR.mjs +0 -351
  247. package/dist/lib/neutral/chunk-SCT6FFCR.mjs.map +0 -7
  248. package/dist/lib/neutral/chunk-TOCVVFK2.mjs +0 -75
  249. package/dist/lib/neutral/chunk-TOCVVFK2.mjs.map +0 -7
  250. package/dist/lib/neutral/chunk-U53LSQQA.mjs +0 -41
  251. package/dist/lib/neutral/chunk-U53LSQQA.mjs.map +0 -7
  252. package/dist/lib/neutral/chunk-UGFFV2FR.mjs +0 -27
  253. package/dist/lib/neutral/chunk-UGFFV2FR.mjs.map +0 -7
  254. package/dist/lib/neutral/chunk-UWLP4RFM.mjs +0 -7
  255. package/dist/lib/neutral/chunk-UWLP4RFM.mjs.map +0 -7
  256. package/dist/lib/neutral/chunk-UZHCQ6NI.mjs +0 -283
  257. package/dist/lib/neutral/chunk-UZHCQ6NI.mjs.map +0 -7
  258. package/dist/lib/neutral/chunk-WISOH2XH.mjs +0 -36
  259. package/dist/lib/neutral/chunk-WISOH2XH.mjs.map +0 -7
  260. package/dist/lib/neutral/chunk-WKIT2YY5.mjs +0 -34
  261. package/dist/lib/neutral/chunk-WKIT2YY5.mjs.map +0 -7
  262. package/dist/lib/neutral/chunk-XB6ISRAO.mjs +0 -271
  263. package/dist/lib/neutral/chunk-XB6ISRAO.mjs.map +0 -7
  264. package/dist/lib/neutral/chunk-XXL42WCB.mjs +0 -84
  265. package/dist/lib/neutral/chunk-XXL42WCB.mjs.map +0 -7
  266. package/dist/lib/neutral/chunk-XXWK4J53.mjs +0 -117
  267. package/dist/lib/neutral/chunk-XXWK4J53.mjs.map +0 -7
  268. package/dist/lib/neutral/index.mjs +0 -115
  269. package/dist/lib/neutral/index.mjs.map +0 -7
  270. package/dist/lib/neutral/internal/index.mjs +0 -581
  271. package/dist/lib/neutral/internal/index.mjs.map +0 -7
  272. package/dist/lib/neutral/meta.json +0 -1
  273. package/dist/lib/neutral/testing/index.mjs +0 -477
  274. package/dist/lib/neutral/testing/index.mjs.map +0 -7
@@ -10,6 +10,7 @@ export * from './entity';
10
10
  // would create an eval-order cycle (TDZ on `createAnnotationHelper`). Import meta from `./meta`
11
11
  // directly, or from the top-level `@dxos/echo/internal` barrel (re-exported there after Ref loads).
12
12
  export * from './model-symbols';
13
+ export * from './projection';
13
14
  export * from './typename';
14
15
  export * from './version';
15
16
  export * from './well-known-types';
@@ -50,6 +50,12 @@ export const ObjectVersionId: unique symbol = Symbol.for('@dxos/echo/Version');
50
50
  */
51
51
  export const ObjectDatabaseId = Symbol.for('@dxos/echo/Database');
52
52
 
53
+ /**
54
+ * Branch accessor symbol. Resolves to the branch name this object instance is bound to (`'main'` for
55
+ * the canonical object, or the branch of a `db.branch()` independent instance). Read via `Obj.getBranch`.
56
+ */
57
+ export const ObjectBranchId = Symbol.for('@dxos/echo/Branch');
58
+
53
59
  /**
54
60
  * Property name for relation source when object is serialized to JSON.
55
61
  */
@@ -0,0 +1,45 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import type * as Types from 'effect/Types';
6
+
7
+ import { type QueryAST } from '@dxos/echo-protocol';
8
+
9
+ /**
10
+ * Brand for a query projected to a single scalar property (`Query.project`), consumed by
11
+ * `Filter.in` to build a subquery-membership predicate — an uncorrelated
12
+ * `col IN (SELECT property FROM ...)` semi-join. Defined in common/ (not in Query/) so
13
+ * Filter.ts can recognize the brand without importing Query.ts as a value: Query.ts already
14
+ * imports Filter.ts as a value, so a reverse value import would create a cycle. Both
15
+ * Filter.ts and Query.ts import this shared leaf module instead.
16
+ *
17
+ * A string-literal id (not a `Symbol.for`), matching `FilterTypeId`/`QueryTypeId`/`OrderTypeId` —
18
+ * this lets the sandboxed `query-lite` mirror (which cannot import `@dxos/echo`'s runtime) declare
19
+ * its own local constant with the same literal and construct structurally-compatible objects,
20
+ * the same way it already does for those brands.
21
+ */
22
+ export const ProjectionTypeId = '~@dxos/echo/Query.Projection' as const;
23
+ export type ProjectionTypeId = typeof ProjectionTypeId;
24
+
25
+ /**
26
+ * `V` is the projected property's value type — carried only as a phantom brand (like
27
+ * `Filter<T>`'s `[FilterTypeId]: { value: Types.Covariant<T> }`) so `Filter.in(query.project(k))`
28
+ * infers its own type parameter from the projected property instead of defaulting to `unknown`.
29
+ */
30
+ export interface Projection<V = unknown> {
31
+ readonly [ProjectionTypeId]: { value: Types.Covariant<V> };
32
+ readonly query: QueryAST.Query;
33
+ readonly property: string;
34
+ }
35
+
36
+ export const isProjection = (value: unknown): value is Projection =>
37
+ typeof value === 'object' && value !== null && ProjectionTypeId in value;
38
+
39
+ const variance: Projection<any>[ProjectionTypeId] = {} as Projection<any>[ProjectionTypeId];
40
+
41
+ export const makeProjection = <V>(query: QueryAST.Query, property: string): Projection<V> => ({
42
+ [ProjectionTypeId]: variance,
43
+ query,
44
+ property,
45
+ });
@@ -3,18 +3,18 @@
3
3
  //
4
4
 
5
5
  import { DatabaseDirectory, EntityStructure } from '@dxos/echo-protocol';
6
- import { EID, EntityId, PublicKey } from '@dxos/keys';
6
+ import { EID, EntityId, SpaceId } from '@dxos/keys';
7
7
 
8
8
  import { Type } from '../index';
9
9
  import { TestSchema } from './test-schema';
10
10
 
11
11
  // Lazy init: Cloudflare workers disallow non-determinism at module scope (e.g. random keys).
12
- let cachedSpaceKeyHex: string | undefined;
13
- const getSpaceKeyHex = (): string => {
14
- if (cachedSpaceKeyHex === undefined) {
15
- cachedSpaceKeyHex = PublicKey.random().toHex();
12
+ let cachedSpaceId: SpaceId | undefined;
13
+ const getSpaceId = (): SpaceId => {
14
+ if (cachedSpaceId === undefined) {
15
+ cachedSpaceId = SpaceId.random();
16
16
  }
17
- return cachedSpaceKeyHex;
17
+ return cachedSpaceId;
18
18
  };
19
19
 
20
20
  let cachedPeopleAlice: DatabaseDirectory | undefined;
@@ -32,7 +32,7 @@ export const PEOPLE = {
32
32
  get alice(): DatabaseDirectory {
33
33
  if (cachedPeopleAlice === undefined) {
34
34
  cachedPeopleAlice = DatabaseDirectory.make({
35
- spaceKey: getSpaceKeyHex(),
35
+ spaceId: getSpaceId(),
36
36
  objects: {
37
37
  [EntityId.random()]: EntityStructure.makeObject({
38
38
  type: Type.getURI(TestSchema.Person)!,
@@ -49,7 +49,7 @@ export const PEOPLE = {
49
49
  get bob(): DatabaseDirectory {
50
50
  if (cachedPeopleBob === undefined) {
51
51
  cachedPeopleBob = DatabaseDirectory.make({
52
- spaceKey: getSpaceKeyHex(),
52
+ spaceId: getSpaceId(),
53
53
  objects: {
54
54
  [EntityId.random()]: EntityStructure.makeObject({
55
55
  type: Type.getURI(TestSchema.Person)!,
@@ -68,7 +68,7 @@ export const ORGS = {
68
68
  get dxos(): DatabaseDirectory {
69
69
  if (cachedOrgsDxos === undefined) {
70
70
  cachedOrgsDxos = DatabaseDirectory.make({
71
- spaceKey: getSpaceKeyHex(),
71
+ spaceId: getSpaceId(),
72
72
  objects: {
73
73
  [EntityId.random()]: EntityStructure.makeObject({
74
74
  type: Type.getURI(TestSchema.Organization)!,
@@ -86,7 +86,7 @@ export const ORGS = {
86
86
  get cyberdyne(): DatabaseDirectory {
87
87
  if (cachedOrgsCyberdyne === undefined) {
88
88
  cachedOrgsCyberdyne = DatabaseDirectory.make({
89
- spaceKey: getSpaceKeyHex(),
89
+ spaceId: getSpaceId(),
90
90
  objects: {
91
91
  [EntityId.random()]: EntityStructure.makeObject({
92
92
  type: Type.getURI(TestSchema.Organization)!,
@@ -106,7 +106,7 @@ export const WORKS_FOR = {
106
106
  get fredWorksForCyberdyne(): DatabaseDirectory {
107
107
  if (cachedWorksFredCyberdyne === undefined) {
108
108
  cachedWorksFredCyberdyne = DatabaseDirectory.make({
109
- spaceKey: getSpaceKeyHex(),
109
+ spaceId: getSpaceId(),
110
110
  objects: {
111
111
  [EntityId.random()]: EntityStructure.makeRelation({
112
112
  type: Type.getURI(TestSchema.EmployedBy)!,
@@ -126,7 +126,7 @@ export const WORKS_FOR = {
126
126
  get aliceWorksForAperture(): DatabaseDirectory {
127
127
  if (cachedWorksAliceAperture === undefined) {
128
128
  cachedWorksAliceAperture = DatabaseDirectory.make({
129
- spaceKey: getSpaceKeyHex(),
129
+ spaceId: getSpaceId(),
130
130
  objects: {
131
131
  [EntityId.random()]: EntityStructure.makeRelation({
132
132
  type: Type.getURI(TestSchema.EmployedBy)!,
@@ -148,7 +148,7 @@ export const TASKS = {
148
148
  get task1(): DatabaseDirectory {
149
149
  if (cachedTasksTask1 === undefined) {
150
150
  cachedTasksTask1 = DatabaseDirectory.make({
151
- spaceKey: getSpaceKeyHex(),
151
+ spaceId: getSpaceId(),
152
152
  objects: {
153
153
  [EntityId.random()]: EntityStructure.makeObject({
154
154
  type: Type.getURI(TestSchema.Task)!,
@@ -169,7 +169,7 @@ export const TASKS = {
169
169
  get task2(): DatabaseDirectory {
170
170
  if (cachedTasksTask2 === undefined) {
171
171
  cachedTasksTask2 = DatabaseDirectory.make({
172
- spaceKey: getSpaceKeyHex(),
172
+ spaceId: getSpaceId(),
173
173
  objects: {
174
174
  [EntityId.random()]: EntityStructure.makeObject({
175
175
  type: Type.getURI(TestSchema.Task)!,
@@ -1,90 +0,0 @@
1
- import {
2
- Dictionary,
3
- Key,
4
- TypeId,
5
- atom,
6
- atomProperty,
7
- buildDictionary,
8
- get,
9
- getDictionary,
10
- getFromAst,
11
- make,
12
- set,
13
- setDictionary,
14
- update
15
- } from "./chunk-C62JYFAD.mjs";
16
- import "./chunk-2HKGAQM4.mjs";
17
- import "./chunk-4A2NWKRJ.mjs";
18
- import "./chunk-KCBW4BR6.mjs";
19
- import "./chunk-L3E5IXAE.mjs";
20
- import {
21
- DEFAULT_LAYOUT_NAME,
22
- DescriptionAnnotation,
23
- FieldLookupAnnotationId,
24
- FormCreateAnnotation,
25
- FormCreateAnnotationId,
26
- FormInlineAnnotation,
27
- FormInputAnnotation,
28
- FormLayoutAnnotation,
29
- FormLayoutAnnotationId,
30
- FormOrderedAnnotation,
31
- GeneratorAnnotation,
32
- GeneratorAnnotationId,
33
- HiddenAnnotation,
34
- IconAnnotation,
35
- IconFromRefAnnotation,
36
- LabelAnnotation,
37
- ReferenceAnnotation,
38
- ReferenceAnnotationId,
39
- TypeAnnotation,
40
- getDescriptionWithSchema,
41
- getLabelWithSchema,
42
- getTypeAnnotation,
43
- getTypeIdentifierAnnotation,
44
- setDescriptionWithSchema,
45
- setLabelWithSchema
46
- } from "./chunk-3TN2VMI4.mjs";
47
- import "./chunk-2ZHECXUR.mjs";
48
- import "./chunk-TOCVVFK2.mjs";
49
- import "./chunk-J5LGTIGS.mjs";
50
- export {
51
- DEFAULT_LAYOUT_NAME,
52
- DescriptionAnnotation,
53
- Dictionary,
54
- FieldLookupAnnotationId,
55
- FormCreateAnnotation,
56
- FormCreateAnnotationId,
57
- FormInlineAnnotation,
58
- FormInputAnnotation,
59
- FormLayoutAnnotation,
60
- FormLayoutAnnotationId,
61
- FormOrderedAnnotation,
62
- GeneratorAnnotation,
63
- GeneratorAnnotationId,
64
- HiddenAnnotation,
65
- IconAnnotation,
66
- IconFromRefAnnotation,
67
- Key,
68
- LabelAnnotation,
69
- ReferenceAnnotation,
70
- ReferenceAnnotationId,
71
- TypeAnnotation,
72
- TypeId,
73
- atom,
74
- atomProperty,
75
- buildDictionary,
76
- get,
77
- getDescriptionWithSchema,
78
- getDictionary,
79
- getFromAst,
80
- getLabelWithSchema,
81
- getTypeAnnotation,
82
- getTypeIdentifierAnnotation,
83
- make,
84
- set,
85
- setDescriptionWithSchema,
86
- setDictionary,
87
- setLabelWithSchema,
88
- update
89
- };
90
- //# sourceMappingURL=Annotation.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,42 +0,0 @@
1
- import {
2
- Database,
3
- Service,
4
- TypeId2 as TypeId,
5
- add,
6
- addType,
7
- appendToFeed,
8
- deleteFromFeed,
9
- flush,
10
- isDatabase,
11
- layer,
12
- load,
13
- makeService,
14
- notAvailable,
15
- query,
16
- remove,
17
- resolve,
18
- spaceId
19
- } from "./chunk-3TN2VMI4.mjs";
20
- import "./chunk-2ZHECXUR.mjs";
21
- import "./chunk-TOCVVFK2.mjs";
22
- import "./chunk-J5LGTIGS.mjs";
23
- export {
24
- Database,
25
- Service,
26
- TypeId,
27
- add,
28
- addType,
29
- appendToFeed,
30
- deleteFromFeed,
31
- flush,
32
- isDatabase,
33
- layer,
34
- load,
35
- makeService,
36
- notAvailable,
37
- query,
38
- remove,
39
- resolve,
40
- spaceId
41
- };
42
- //# sourceMappingURL=Database.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,76 +0,0 @@
1
- import {
2
- Kind,
3
- KindId,
4
- KindSchema,
5
- Meta,
6
- SnapshotKindId,
7
- Unknown,
8
- addTag,
9
- atom,
10
- getDatabase,
11
- getDescription,
12
- getIcon,
13
- getKeys,
14
- getKind,
15
- getLabel,
16
- getMeta,
17
- getType,
18
- getTypeURI,
19
- getTypename,
20
- getURI,
21
- instanceOf,
22
- isDeleted,
23
- isEntity,
24
- isSnapshot,
25
- labelAtom,
26
- labelProperty,
27
- removeTag,
28
- setLabel,
29
- subscribe,
30
- toJSON,
31
- update
32
- } from "./chunk-BEFR7LEA.mjs";
33
- import "./chunk-XB6ISRAO.mjs";
34
- import "./chunk-ACFAOTKJ.mjs";
35
- import "./chunk-WKIT2YY5.mjs";
36
- import "./chunk-2HKGAQM4.mjs";
37
- import "./chunk-4A2NWKRJ.mjs";
38
- import "./chunk-KCBW4BR6.mjs";
39
- import "./chunk-L3E5IXAE.mjs";
40
- import "./chunk-3TN2VMI4.mjs";
41
- import "./chunk-2ZHECXUR.mjs";
42
- import "./chunk-TOCVVFK2.mjs";
43
- import "./chunk-J5LGTIGS.mjs";
44
- export {
45
- Kind,
46
- KindId,
47
- KindSchema,
48
- Meta,
49
- SnapshotKindId,
50
- Unknown,
51
- addTag,
52
- atom,
53
- getDatabase,
54
- getDescription,
55
- getIcon,
56
- getKeys,
57
- getKind,
58
- getLabel,
59
- getMeta,
60
- getType,
61
- getTypeURI,
62
- getTypename,
63
- getURI,
64
- instanceOf,
65
- isDeleted,
66
- isEntity,
67
- isSnapshot,
68
- labelAtom,
69
- labelProperty,
70
- removeTag,
71
- setLabel,
72
- subscribe,
73
- toJSON,
74
- update
75
- };
76
- //# sourceMappingURL=Entity.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,16 +0,0 @@
1
- import {
2
- EntityNotFoundError,
3
- GetReactiveError,
4
- SchemaNotFoundError,
5
- TextEditNotFoundError,
6
- TextNotSupportedError
7
- } from "./chunk-TOCVVFK2.mjs";
8
- import "./chunk-J5LGTIGS.mjs";
9
- export {
10
- EntityNotFoundError,
11
- GetReactiveError,
12
- SchemaNotFoundError,
13
- TextEditNotFoundError,
14
- TextNotSupportedError
15
- };
16
- //# sourceMappingURL=Err.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,50 +0,0 @@
1
- import {
2
- ContextFeedService,
3
- Feed,
4
- FeedService,
5
- append,
6
- cursor,
7
- getQueueUri,
8
- getSyncState,
9
- make,
10
- next,
11
- nextOption,
12
- notAvailable,
13
- query,
14
- remove,
15
- setRetention,
16
- sync
17
- } from "./chunk-XXWK4J53.mjs";
18
- import "./chunk-HBXT3GSB.mjs";
19
- import "./chunk-FSGX2R62.mjs";
20
- import "./chunk-BEFR7LEA.mjs";
21
- import "./chunk-XB6ISRAO.mjs";
22
- import "./chunk-ACFAOTKJ.mjs";
23
- import "./chunk-WKIT2YY5.mjs";
24
- import "./chunk-C62JYFAD.mjs";
25
- import "./chunk-2HKGAQM4.mjs";
26
- import "./chunk-4A2NWKRJ.mjs";
27
- import "./chunk-KCBW4BR6.mjs";
28
- import "./chunk-L3E5IXAE.mjs";
29
- import "./chunk-3TN2VMI4.mjs";
30
- import "./chunk-2ZHECXUR.mjs";
31
- import "./chunk-TOCVVFK2.mjs";
32
- import "./chunk-J5LGTIGS.mjs";
33
- export {
34
- ContextFeedService,
35
- Feed,
36
- FeedService,
37
- append,
38
- cursor,
39
- getQueueUri,
40
- getSyncState,
41
- make,
42
- next,
43
- nextOption,
44
- notAvailable,
45
- query,
46
- remove,
47
- setRetention,
48
- sync
49
- };
50
- //# sourceMappingURL=Feed.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,72 +0,0 @@
1
- import {
2
- and,
3
- between,
4
- childOf,
5
- contains,
6
- created,
7
- eq,
8
- everything,
9
- foreignKeys,
10
- fromAst,
11
- gt,
12
- gte,
13
- id,
14
- in$,
15
- is,
16
- key,
17
- lt,
18
- lte,
19
- neq,
20
- not,
21
- nothing,
22
- or,
23
- pretty,
24
- props,
25
- tag,
26
- text,
27
- toPredicate,
28
- type,
29
- updated
30
- } from "./chunk-SCT6FFCR.mjs";
31
- import "./chunk-FSGX2R62.mjs";
32
- import "./chunk-ACFAOTKJ.mjs";
33
- import "./chunk-WKIT2YY5.mjs";
34
- import "./chunk-2HKGAQM4.mjs";
35
- import "./chunk-4A2NWKRJ.mjs";
36
- import "./chunk-KCBW4BR6.mjs";
37
- import "./chunk-L3E5IXAE.mjs";
38
- import "./chunk-3TN2VMI4.mjs";
39
- import "./chunk-2ZHECXUR.mjs";
40
- import "./chunk-TOCVVFK2.mjs";
41
- import "./chunk-J5LGTIGS.mjs";
42
- export {
43
- and,
44
- between,
45
- childOf,
46
- contains,
47
- created,
48
- eq,
49
- everything,
50
- foreignKeys,
51
- fromAst,
52
- gt,
53
- gte,
54
- id,
55
- in$ as in,
56
- is,
57
- key,
58
- lt,
59
- lte,
60
- neq,
61
- not,
62
- nothing,
63
- or,
64
- pretty,
65
- props,
66
- tag,
67
- text,
68
- toPredicate,
69
- type,
70
- updated
71
- };
72
- //# sourceMappingURL=Filter.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,82 +0,0 @@
1
- import "./chunk-BXIKXT7Q.mjs";
2
- import {
3
- Currency,
4
- CurrencyAnnotationId,
5
- DateOnly,
6
- DateTime,
7
- DecimalPrecision,
8
- Duration,
9
- Email,
10
- Format,
11
- FormatAnnotation,
12
- FormatAnnotationId,
13
- FormatEnums,
14
- Formula,
15
- GeoLocation,
16
- GeoPoint,
17
- Hostname,
18
- OptionsAnnotation,
19
- OptionsAnnotationId,
20
- PropertyKind,
21
- Regex,
22
- SelectOption,
23
- SimpleDate,
24
- SimpleDateTime,
25
- SimpleTime,
26
- Text,
27
- TimeOnly,
28
- TypeEnum,
29
- TypeFormat,
30
- URL,
31
- UUID,
32
- formatToType,
33
- getFormatAnnotation,
34
- getOptionsAnnotation,
35
- getTypeEnum,
36
- toSimpleDate,
37
- toSimpleDateTime,
38
- toSimpleTime,
39
- typeToFormat
40
- } from "./chunk-KCBW4BR6.mjs";
41
- import "./chunk-2ZHECXUR.mjs";
42
- import "./chunk-J5LGTIGS.mjs";
43
- export {
44
- Currency,
45
- CurrencyAnnotationId,
46
- DateOnly,
47
- DateTime,
48
- DecimalPrecision,
49
- Duration,
50
- Email,
51
- Format,
52
- FormatAnnotation,
53
- FormatAnnotationId,
54
- FormatEnums,
55
- Formula,
56
- GeoLocation,
57
- GeoPoint,
58
- Hostname,
59
- OptionsAnnotation,
60
- OptionsAnnotationId,
61
- PropertyKind,
62
- Regex,
63
- SelectOption,
64
- SimpleDate,
65
- SimpleDateTime,
66
- SimpleTime,
67
- Text,
68
- TimeOnly,
69
- TypeEnum,
70
- TypeFormat,
71
- URL,
72
- UUID,
73
- formatToType,
74
- getFormatAnnotation,
75
- getOptionsAnnotation,
76
- getTypeEnum,
77
- toSimpleDate,
78
- toSimpleDateTime,
79
- toSimpleTime,
80
- typeToFormat
81
- };
82
- //# sourceMappingURL=Format.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,18 +0,0 @@
1
- import {
2
- JsonSchema,
3
- toEffectSchema,
4
- toJsonSchema
5
- } from "./chunk-UGFFV2FR.mjs";
6
- import "./chunk-4A2NWKRJ.mjs";
7
- import "./chunk-KCBW4BR6.mjs";
8
- import "./chunk-L3E5IXAE.mjs";
9
- import "./chunk-3TN2VMI4.mjs";
10
- import "./chunk-2ZHECXUR.mjs";
11
- import "./chunk-TOCVVFK2.mjs";
12
- import "./chunk-J5LGTIGS.mjs";
13
- export {
14
- JsonSchema,
15
- toEffectSchema,
16
- toJsonSchema
17
- };
18
- //# sourceMappingURL=JsonSchema.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }