@living-architecture/riviere-query 0.5.6 → 0.6.3

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 (49) hide show
  1. package/dist/features/querying/queries/RiviereQuery.d.ts +2 -0
  2. package/dist/features/querying/queries/RiviereQuery.d.ts.map +1 -1
  3. package/dist/features/querying/queries/RiviereQuery.js +2 -0
  4. package/dist/features/querying/queries/compare-by-code-point.d.ts +1 -0
  5. package/dist/features/querying/queries/compare-by-code-point.d.ts.map +1 -1
  6. package/dist/features/querying/queries/compare-by-code-point.js +1 -0
  7. package/dist/features/querying/queries/component-queries.d.ts +6 -0
  8. package/dist/features/querying/queries/component-queries.d.ts.map +1 -1
  9. package/dist/features/querying/queries/component-queries.js +6 -0
  10. package/dist/features/querying/queries/cross-domain-queries.d.ts +2 -0
  11. package/dist/features/querying/queries/cross-domain-queries.d.ts.map +1 -1
  12. package/dist/features/querying/queries/cross-domain-queries.js +2 -0
  13. package/dist/features/querying/queries/depth-queries.d.ts +1 -0
  14. package/dist/features/querying/queries/depth-queries.d.ts.map +1 -1
  15. package/dist/features/querying/queries/depth-queries.js +1 -0
  16. package/dist/features/querying/queries/domain-queries.d.ts +6 -0
  17. package/dist/features/querying/queries/domain-queries.d.ts.map +1 -1
  18. package/dist/features/querying/queries/domain-queries.js +6 -0
  19. package/dist/features/querying/queries/domain-types.d.ts +72 -12
  20. package/dist/features/querying/queries/domain-types.d.ts.map +1 -1
  21. package/dist/features/querying/queries/domain-types.js +10 -0
  22. package/dist/features/querying/queries/errors.d.ts +1 -0
  23. package/dist/features/querying/queries/errors.d.ts.map +1 -1
  24. package/dist/features/querying/queries/errors.js +1 -0
  25. package/dist/features/querying/queries/event-queries.d.ts +2 -0
  26. package/dist/features/querying/queries/event-queries.d.ts.map +1 -1
  27. package/dist/features/querying/queries/event-queries.js +2 -0
  28. package/dist/features/querying/queries/event-types.d.ts +8 -0
  29. package/dist/features/querying/queries/event-types.d.ts.map +1 -1
  30. package/dist/features/querying/queries/event-types.js +1 -0
  31. package/dist/features/querying/queries/external-system-queries.d.ts +1 -0
  32. package/dist/features/querying/queries/external-system-queries.d.ts.map +1 -1
  33. package/dist/features/querying/queries/external-system-queries.js +1 -0
  34. package/dist/features/querying/queries/flow-queries.d.ts +5 -0
  35. package/dist/features/querying/queries/flow-queries.d.ts.map +1 -1
  36. package/dist/features/querying/queries/flow-queries.js +4 -0
  37. package/dist/features/querying/queries/graph-diff.d.ts +1 -0
  38. package/dist/features/querying/queries/graph-diff.d.ts.map +1 -1
  39. package/dist/features/querying/queries/graph-diff.js +1 -0
  40. package/dist/features/querying/queries/graph-validation.d.ts +2 -0
  41. package/dist/features/querying/queries/graph-validation.d.ts.map +1 -1
  42. package/dist/features/querying/queries/graph-validation.js +2 -0
  43. package/dist/features/querying/queries/link-key.d.ts +1 -0
  44. package/dist/features/querying/queries/link-key.d.ts.map +1 -1
  45. package/dist/features/querying/queries/link-key.js +1 -0
  46. package/dist/features/querying/queries/stats-queries.d.ts +1 -0
  47. package/dist/features/querying/queries/stats-queries.d.ts.map +1 -1
  48. package/dist/features/querying/queries/stats-queries.js +1 -0
  49. package/package.json +2 -2
@@ -27,6 +27,8 @@ export { ComponentNotFoundError } from './errors';
27
27
  * // Trace flows
28
28
  * const flow = query.traceFlow('orders:checkout:api:post-orders')
29
29
  * ```
30
+ *
31
+ * @riviere-role query-model
30
32
  */
31
33
  export declare class RiviereQuery {
32
34
  private readonly graph;
@@ -1 +1 @@
1
- {"version":3,"file":"RiviereQuery.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/RiviereQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAC3D,MAAM,eAAe,CAA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pC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE;IAItD;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAIrD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,IAAI,IAAI,EAAE;IAIf;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,oBAAoB;IAInF;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,EAAE;IAIvD;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAIzD;;;;;;;;;;;;OAYG;IACH,KAAK,IAAI,UAAU;IAInB;;;;;;;;;;;;;;OAcG;IACH,UAAU,IAAI,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC;IAItC;;;;;;;;;;;;;;;OAeG;IACH,aAAa,IAAI,YAAY,EAAE;IAI/B;;;;;;;;;;;;;;;OAeG;IACH,eAAe,IAAI,cAAc,EAAE;CAGpC"}
1
+ {"version":3,"file":"RiviereQuery.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/RiviereQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAC3D,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,KAAK,EACL,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,MAAM,EACN,IAAI,EACJ,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,cAAc,EACf,M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AAE;IAIrD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,IAAI,IAAI,EAAE;IAIf;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,oBAAoB;IAInF;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,EAAE;IAIvD;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAIzD;;;;;;;;;;;;OAYG;IACH,KAAK,IAAI,UAAU;IAInB;;;;;;;;;;;;;;OAcG;IACH,UAAU,IAAI,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC;IAItC;;;;;;;;;;;;;;;OAeG;IACH,aAAa,IAAI,YAAY,EAAE;IAI/B;;;;;;;;;;;;;;;OAeG;IACH,eAAe,IAAI,cAAc,EAAE;CAGpC"}
@@ -34,6 +34,8 @@ function assertValidGraph(graph) {
34
34
  * // Trace flows
35
35
  * const flow = query.traceFlow('orders:checkout:api:post-orders')
36
36
  * ```
37
+ *
38
+ * @riviere-role query-model
37
39
  */
38
40
  export class RiviereQuery {
39
41
  graph;
@@ -1,2 +1,3 @@
1
+ /** @riviere-role query-model */
1
2
  export declare function compareByCodePoint(a: string, b: string): number;
2
3
  //# sourceMappingURL=compare-by-code-point.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compare-by-code-point.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/compare-by-code-point.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/D"}
1
+ {"version":3,"file":"compare-by-code-point.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/compare-by-code-point.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/D"}
@@ -1,3 +1,4 @@
1
+ /** @riviere-role query-model */
1
2
  export function compareByCodePoint(a, b) {
2
3
  if (a < b)
3
4
  return -1;
@@ -1,8 +1,14 @@
1
1
  import type { RiviereGraph, Component, ComponentType } from '@living-architecture/riviere-schema';
2
+ /** @riviere-role query-model */
2
3
  export declare function findComponent(graph: RiviereGraph, predicate: (component: Component) => boolean): Component | undefined;
4
+ /** @riviere-role query-model */
3
5
  export declare function findAllComponents(graph: RiviereGraph, predicate: (component: Component) => boolean): Component[];
6
+ /** @riviere-role query-model */
4
7
  export declare function componentById(graph: RiviereGraph, id: string): Component | undefined;
8
+ /** @riviere-role query-model */
5
9
  export declare function searchComponents(graph: RiviereGraph, query: string): Component[];
10
+ /** @riviere-role query-model */
6
11
  export declare function componentsInDomain(graph: RiviereGraph, domainName: string): Component[];
12
+ /** @riviere-role query-model */
7
13
  export declare function componentsByType(graph: RiviereGraph, type: ComponentType): Component[];
8
14
  //# sourceMappingURL=component-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/component-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,SAAS,EAAE,aAAa,EACvC,MAAM,qCAAqC,CAAA;AAE5C,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,GAC3C,SAAS,GAAG,SAAS,CAEvB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,GAC3C,SAAS,EAAE,CAEb;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEpF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CAYhF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,CAEvF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,SAAS,EAAE,CAEtF"}
1
+ {"version":3,"file":"component-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/component-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,SAAS,EAAE,aAAa,EACvC,MAAM,qCAAqC,CAAA;AAE5C,gCAAgC;AAChC,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,GAC3C,SAAS,GAAG,SAAS,CAEvB;AAED,gCAAgC;AAChC,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,GAC3C,SAAS,EAAE,CAEb;AAED,gCAAgC;AAChC,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEpF;AAED,gCAAgC;AAChC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CAYhF;AAED,gCAAgC;AAChC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,CAEvF;AAED,gCAAgC;AAChC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,SAAS,EAAE,CAEtF"}
@@ -1,12 +1,16 @@
1
+ /** @riviere-role query-model */
1
2
  export function findComponent(graph, predicate) {
2
3
  return graph.components.find(predicate);
3
4
  }
5
+ /** @riviere-role query-model */
4
6
  export function findAllComponents(graph, predicate) {
5
7
  return graph.components.filter(predicate);
6
8
  }
9
+ /** @riviere-role query-model */
7
10
  export function componentById(graph, id) {
8
11
  return findComponent(graph, (c) => c.id === id);
9
12
  }
13
+ /** @riviere-role query-model */
10
14
  export function searchComponents(graph, query) {
11
15
  if (query === '') {
12
16
  return [];
@@ -16,9 +20,11 @@ export function searchComponents(graph, query) {
16
20
  c.domain.toLowerCase().includes(lowerQuery) ||
17
21
  c.type.toLowerCase().includes(lowerQuery));
18
22
  }
23
+ /** @riviere-role query-model */
19
24
  export function componentsInDomain(graph, domainName) {
20
25
  return findAllComponents(graph, (c) => c.domain === domainName);
21
26
  }
27
+ /** @riviere-role query-model */
22
28
  export function componentsByType(graph, type) {
23
29
  return findAllComponents(graph, (c) => c.type === type);
24
30
  }
@@ -1,5 +1,7 @@
1
1
  import type { RiviereGraph } from '@living-architecture/riviere-schema';
2
2
  import type { CrossDomainLink, DomainConnection } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function queryCrossDomainLinks(graph: RiviereGraph, domainName: string): CrossDomainLink[];
5
+ /** @riviere-role query-model */
4
6
  export declare function queryDomainConnections(graph: RiviereGraph, domainName: string): DomainConnection[];
5
7
  //# sourceMappingURL=cross-domain-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cross-domain-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/cross-domain-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EACV,eAAe,EAAE,gBAAgB,EAClC,MAAM,gBAAgB,CAAA;AAQvB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe,EAAE,CA+BhG;AA8FD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,MAAM,GACjB,gBAAgB,EAAE,CAYpB"}
1
+ {"version":3,"file":"cross-domain-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/cross-domain-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EACV,eAAe,EAAE,gBAAgB,EAClC,MAAM,gBAAgB,CAAA;AAQvB,gCAAgC;AAChC,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe,EAAE,CA+BhG;AA8FD,gCAAgC;AAChC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,MAAM,GACjB,gBAAgB,EAAE,CAYpB"}
@@ -3,6 +3,7 @@ import { compareByCodePoint } from './compare-by-code-point';
3
3
  function buildNodeIdToDomain(graph) {
4
4
  return new Map(graph.components.map((c) => [c.id, c.domain]));
5
5
  }
6
+ /** @riviere-role query-model */
6
7
  export function queryCrossDomainLinks(graph, domainName) {
7
8
  const nodeIdToDomain = buildNodeIdToDomain(graph);
8
9
  const seen = new Set();
@@ -90,6 +91,7 @@ function toConnectionResults(connections, direction) {
90
91
  eventCount: counts.eventCount,
91
92
  }));
92
93
  }
94
+ /** @riviere-role query-model */
93
95
  export function queryDomainConnections(graph, domainName) {
94
96
  const nodeIdToDomain = buildNodeIdToDomain(graph);
95
97
  const nodeById = new Map(graph.components.map((c) => [c.id, { type: c.type }]));
@@ -1,4 +1,5 @@
1
1
  import type { RiviereGraph } from '@living-architecture/riviere-schema';
2
2
  import type { ComponentId } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function queryNodeDepths(graph: RiviereGraph): Map<ComponentId, number>;
4
5
  //# sourceMappingURL=depth-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"depth-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/depth-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AASjD,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAiB7E"}
1
+ {"version":3,"file":"depth-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/depth-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AASjD,gCAAgC;AAChC,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAiB7E"}
@@ -1,5 +1,6 @@
1
1
  import { parseComponentId } from './domain-types';
2
2
  import { ENTRY_POINT_TYPES } from './flow-constants';
3
+ /** @riviere-role query-model */
3
4
  export function queryNodeDepths(graph) {
4
5
  const depths = new Map();
5
6
  const entryPoints = findEntryPointIds(graph);
@@ -2,10 +2,16 @@ import type { RiviereGraph, DomainOpComponent } from '@living-architecture/rivie
2
2
  import { Entity } from './event-types';
3
3
  import type { EntityTransition } from './event-types';
4
4
  import type { State, Domain } from './domain-types';
5
+ /** @riviere-role query-model */
5
6
  export declare function queryDomains(graph: RiviereGraph): Domain[];
7
+ /** @riviere-role query-model */
6
8
  export declare function operationsForEntity(graph: RiviereGraph, entityName: string): DomainOpComponent[];
9
+ /** @riviere-role query-model */
7
10
  export declare function queryEntities(graph: RiviereGraph, domainName?: string): Entity[];
11
+ /** @riviere-role query-model */
8
12
  export declare function businessRulesForEntity(graph: RiviereGraph, entityName: string): string[];
13
+ /** @riviere-role query-model */
9
14
  export declare function transitionsForEntity(graph: RiviereGraph, entityName: string): EntityTransition[];
15
+ /** @riviere-role query-model */
10
16
  export declare function statesForEntity(graph: RiviereGraph, entityName: string): State[];
11
17
  //# sourceMappingURL=domain-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"domain-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/domain-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,iBAAiB,EAChC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EACV,KAAK,EAAE,MAAM,EACd,MAAM,gBAAgB,CAAA;AAOvB,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAqB1D;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAIhG;AAQD,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA0BhF;AAgBD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAQxF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAchG;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,EAAE,CAWhF"}
1
+ {"version":3,"file":"domain-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/domain-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,iBAAiB,EAChC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EACV,KAAK,EAAE,MAAM,EACd,MAAM,gBAAgB,CAAA;AAOvB,gCAAgC;AAChC,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAqB1D;AAED,gCAAgC;AAChC,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAIhG;AAQD,gCAAgC;AAChC,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA0BhF;AAgBD,gCAAgC;AAChC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAQxF;AAED,gCAAgC;AAChC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAchG;AAED,gCAAgC;AAChC,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,EAAE,CAWhF"}
@@ -2,6 +2,7 @@ import { Entity } from './event-types';
2
2
  import { parseEntityName, parseDomainName, parseState, parseOperationName } from './domain-types';
3
3
  import { componentsInDomain } from './component-queries';
4
4
  import { compareByCodePoint } from './compare-by-code-point';
5
+ /** @riviere-role query-model */
5
6
  export function queryDomains(graph) {
6
7
  return Object.entries(graph.metadata.domains).map(([name, metadata]) => {
7
8
  const dc = componentsInDomain(graph, name);
@@ -24,9 +25,11 @@ export function queryDomains(graph) {
24
25
  };
25
26
  });
26
27
  }
28
+ /** @riviere-role query-model */
27
29
  export function operationsForEntity(graph, entityName) {
28
30
  return graph.components.filter((c) => c.type === 'DomainOp' && c.entity === entityName);
29
31
  }
32
+ /** @riviere-role query-model */
30
33
  export function queryEntities(graph, domainName) {
31
34
  const domainOps = graph.components.filter((c) => c.type === 'DomainOp' && c.entity !== undefined);
32
35
  const filtered = domainName ? domainOps.filter((op) => op.domain === domainName) : domainOps;
@@ -56,6 +59,7 @@ function createEntity(graph, partial) {
56
59
  const sortedOperations = [...partial.operations].sort((a, b) => compareByCodePoint(a.operationName, b.operationName));
57
60
  return new Entity(parseEntityName(partial.name), parseDomainName(partial.domain), sortedOperations, statesForEntity(graph, partial.name), transitionsForEntity(graph, partial.name), businessRulesForEntity(graph, partial.name));
58
61
  }
62
+ /** @riviere-role query-model */
59
63
  export function businessRulesForEntity(graph, entityName) {
60
64
  const operations = operationsForEntity(graph, entityName);
61
65
  const allRules = [];
@@ -66,6 +70,7 @@ export function businessRulesForEntity(graph, entityName) {
66
70
  }
67
71
  return [...new Set(allRules)];
68
72
  }
73
+ /** @riviere-role query-model */
69
74
  export function transitionsForEntity(graph, entityName) {
70
75
  const operations = operationsForEntity(graph, entityName);
71
76
  const transitions = [];
@@ -82,6 +87,7 @@ export function transitionsForEntity(graph, entityName) {
82
87
  }
83
88
  return transitions;
84
89
  }
90
+ /** @riviere-role query-model */
85
91
  export function statesForEntity(graph, entityName) {
86
92
  const operations = operationsForEntity(graph, entityName);
87
93
  const states = new Set();
@@ -20,30 +20,64 @@ declare const eventNameSchema: z.core.$ZodBranded<z.ZodString, "EventName", "out
20
20
  declare const handlerIdSchema: z.core.$ZodBranded<z.ZodString, "HandlerId", "out">;
21
21
  /** @internal */
22
22
  declare const handlerNameSchema: z.core.$ZodBranded<z.ZodString, "HandlerName", "out">;
23
- /** Branded type for component identifiers. */
23
+ /**
24
+ * Branded type for component identifiers.
25
+ * @riviere-role query-model
26
+ */
24
27
  export type ComponentId = z.infer<typeof componentIdSchema>;
25
- /** Branded type for link identifiers. */
28
+ /**
29
+ * Branded type for link identifiers.
30
+ * @riviere-role query-model
31
+ */
26
32
  export type LinkId = z.infer<typeof linkIdSchema>;
27
- /** Branded type for entity names. */
33
+ /**
34
+ * Branded type for entity names.
35
+ * @riviere-role query-model
36
+ */
28
37
  export type EntityName = z.infer<typeof entityNameSchema>;
29
- /** Branded type for domain names. */
38
+ /**
39
+ * Branded type for domain names.
40
+ * @riviere-role query-model
41
+ */
30
42
  export type DomainName = z.infer<typeof domainNameSchema>;
31
- /** Branded type for state names in entity state machines. */
43
+ /**
44
+ * Branded type for state names in entity state machines.
45
+ * @riviere-role query-model
46
+ */
32
47
  export type State = z.infer<typeof stateSchema>;
33
- /** Branded type for operation names. */
48
+ /**
49
+ * Branded type for operation names.
50
+ * @riviere-role query-model
51
+ */
34
52
  export type OperationName = z.infer<typeof operationNameSchema>;
35
- /** Branded type for event identifiers. */
53
+ /**
54
+ * Branded type for event identifiers.
55
+ * @riviere-role query-model
56
+ */
36
57
  export type EventId = z.infer<typeof eventIdSchema>;
37
- /** Branded type for event names. */
58
+ /**
59
+ * Branded type for event names.
60
+ * @riviere-role query-model
61
+ */
38
62
  export type EventName = z.infer<typeof eventNameSchema>;
39
- /** Branded type for event handler identifiers. */
63
+ /**
64
+ * Branded type for event handler identifiers.
65
+ * @riviere-role query-model
66
+ */
40
67
  export type HandlerId = z.infer<typeof handlerIdSchema>;
41
- /** Branded type for event handler names. */
68
+ /**
69
+ * Branded type for event handler names.
70
+ * @riviere-role query-model
71
+ */
42
72
  export type HandlerName = z.infer<typeof handlerNameSchema>;
43
- /** Error codes for graph validation failures. */
73
+ /**
74
+ * Error codes for graph validation failures.
75
+ * @riviere-role query-model
76
+ */
44
77
  export type ValidationErrorCode = 'INVALID_LINK_SOURCE' | 'INVALID_LINK_TARGET' | 'INVALID_TYPE';
45
78
  /**
46
79
  * A validation error found in the graph.
80
+ * @riviere-role query-model
47
81
  */
48
82
  export interface ValidationError {
49
83
  /** JSON path to the error location. */
@@ -55,6 +89,7 @@ export interface ValidationError {
55
89
  }
56
90
  /**
57
91
  * Result of graph validation.
92
+ * @riviere-role query-model
58
93
  */
59
94
  export interface ValidationResult {
60
95
  /** Whether the graph passed validation. */
@@ -64,6 +99,7 @@ export interface ValidationResult {
64
99
  }
65
100
  /**
66
101
  * Component counts by type within a domain.
102
+ * @riviere-role query-model
67
103
  */
68
104
  export interface ComponentCounts {
69
105
  /** Number of UI components. */
@@ -85,6 +121,7 @@ export interface ComponentCounts {
85
121
  }
86
122
  /**
87
123
  * Domain information with metadata and component counts.
124
+ * @riviere-role query-model
88
125
  */
89
126
  export interface Domain {
90
127
  /** Domain name. */
@@ -98,6 +135,7 @@ export interface Domain {
98
135
  }
99
136
  /**
100
137
  * A component that was modified between graph versions.
138
+ * @riviere-role query-model
101
139
  */
102
140
  export interface ComponentModification {
103
141
  /** The component ID. */
@@ -111,6 +149,7 @@ export interface ComponentModification {
111
149
  }
112
150
  /**
113
151
  * Summary statistics of differences between graphs.
152
+ * @riviere-role query-model
114
153
  */
115
154
  export interface DiffStats {
116
155
  /** Number of components added. */
@@ -126,6 +165,7 @@ export interface DiffStats {
126
165
  }
127
166
  /**
128
167
  * Complete diff between two graph versions.
168
+ * @riviere-role query-model
129
169
  */
130
170
  export interface GraphDiff {
131
171
  /** Component changes. */
@@ -147,10 +187,14 @@ export interface GraphDiff {
147
187
  /** Summary statistics. */
148
188
  stats: DiffStats;
149
189
  }
150
- /** Type of link between components. */
190
+ /**
191
+ * Type of link between components.
192
+ * @riviere-role query-model
193
+ */
151
194
  export type LinkType = 'sync' | 'async';
152
195
  /**
153
196
  * A step in an execution flow.
197
+ * @riviere-role query-model
154
198
  */
155
199
  export interface FlowStep {
156
200
  /** The component at this step. */
@@ -164,6 +208,7 @@ export interface FlowStep {
164
208
  }
165
209
  /**
166
210
  * An execution flow from entry point through the graph.
211
+ * @riviere-role query-model
167
212
  */
168
213
  export interface Flow {
169
214
  /** The entry point component. */
@@ -173,6 +218,7 @@ export interface Flow {
173
218
  }
174
219
  /**
175
220
  * Result of searchWithFlow containing matches and their flow context.
221
+ * @riviere-role query-model
176
222
  */
177
223
  export interface SearchWithFlowResult {
178
224
  /** IDs of components that matched the search. */
@@ -182,6 +228,7 @@ export interface SearchWithFlowResult {
182
228
  }
183
229
  /**
184
230
  * A link that crosses domain boundaries.
231
+ * @riviere-role query-model
185
232
  */
186
233
  export interface CrossDomainLink {
187
234
  /** The target domain name. */
@@ -191,6 +238,7 @@ export interface CrossDomainLink {
191
238
  }
192
239
  /**
193
240
  * Summary of connections between domains.
241
+ * @riviere-role query-model
194
242
  */
195
243
  export interface DomainConnection {
196
244
  /** The connected domain name. */
@@ -204,6 +252,7 @@ export interface DomainConnection {
204
252
  }
205
253
  /**
206
254
  * Aggregate statistics about a graph.
255
+ * @riviere-role query-model
207
256
  */
208
257
  export interface GraphStats {
209
258
  /** Total number of components. */
@@ -224,6 +273,7 @@ export interface GraphStats {
224
273
  *
225
274
  * External domains are any systems not represented in the graph—third-party
226
275
  * services (Stripe, Twilio) or internal domains outside the current scope.
276
+ * @riviere-role query-model
227
277
  */
228
278
  export interface ExternalDomain {
229
279
  /** Name of the external domain (e.g., "Stripe", "Twilio"). */
@@ -238,6 +288,7 @@ export interface ExternalDomain {
238
288
  *
239
289
  * @param id - The string to parse
240
290
  * @returns A branded ComponentId
291
+ * @riviere-role query-model
241
292
  */
242
293
  export declare function parseComponentId(id: string): ComponentId;
243
294
  /**
@@ -245,6 +296,7 @@ export declare function parseComponentId(id: string): ComponentId;
245
296
  *
246
297
  * @param id - The string to parse
247
298
  * @returns A branded LinkId
299
+ * @riviere-role query-model
248
300
  */
249
301
  export declare function parseLinkId(id: string): LinkId;
250
302
  /**
@@ -252,6 +304,7 @@ export declare function parseLinkId(id: string): LinkId;
252
304
  *
253
305
  * @param value - The string to parse
254
306
  * @returns A branded EntityName
307
+ * @riviere-role query-model
255
308
  */
256
309
  export declare function parseEntityName(value: string): EntityName;
257
310
  /**
@@ -259,6 +312,7 @@ export declare function parseEntityName(value: string): EntityName;
259
312
  *
260
313
  * @param value - The string to parse
261
314
  * @returns A branded DomainName
315
+ * @riviere-role query-model
262
316
  */
263
317
  export declare function parseDomainName(value: string): DomainName;
264
318
  /**
@@ -266,6 +320,7 @@ export declare function parseDomainName(value: string): DomainName;
266
320
  *
267
321
  * @param value - The string to parse
268
322
  * @returns A branded State
323
+ * @riviere-role query-model
269
324
  */
270
325
  export declare function parseState(value: string): State;
271
326
  /**
@@ -273,6 +328,7 @@ export declare function parseState(value: string): State;
273
328
  *
274
329
  * @param value - The string to parse
275
330
  * @returns A branded OperationName
331
+ * @riviere-role query-model
276
332
  */
277
333
  export declare function parseOperationName(value: string): OperationName;
278
334
  /**
@@ -280,6 +336,7 @@ export declare function parseOperationName(value: string): OperationName;
280
336
  *
281
337
  * @param value - The string to parse
282
338
  * @returns A branded EventId
339
+ * @riviere-role query-model
283
340
  */
284
341
  export declare function parseEventId(value: string): EventId;
285
342
  /**
@@ -287,6 +344,7 @@ export declare function parseEventId(value: string): EventId;
287
344
  *
288
345
  * @param value - The string to parse
289
346
  * @returns A branded EventName
347
+ * @riviere-role query-model
290
348
  */
291
349
  export declare function parseEventName(value: string): EventName;
292
350
  /**
@@ -294,6 +352,7 @@ export declare function parseEventName(value: string): EventName;
294
352
  *
295
353
  * @param value - The string to parse
296
354
  * @returns A branded HandlerId
355
+ * @riviere-role query-model
297
356
  */
298
357
  export declare function parseHandlerId(value: string): HandlerId;
299
358
  /**
@@ -301,6 +360,7 @@ export declare function parseHandlerId(value: string): HandlerId;
301
360
  *
302
361
  * @param value - The string to parse
303
362
  * @returns A branded HandlerName
363
+ * @riviere-role query-model
304
364
  */
305
365
  export declare function parseHandlerName(value: string): HandlerName;
306
366
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"domain-types.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/domain-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,IAAI,EAAE,YAAY,EAC9B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,gBAAgB;AAChB,QAAA,MAAM,iBAAiB,uDAAoC,CAAA;AAC3D,gBAAgB;AAChB,QAAA,MAAM,YAAY,kDAA+B,CAAA;AACjD,gBAAgB;AAChB,QAAA,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;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAE/C;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAE3D"}
1
+ {"version":3,"file":"domain-types.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/domain-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,IAAI,EAAE,YAAY,EAC9B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,gBAAgB;AAChB,QAAA,MAAM,iBAAiB,uDAAoC,CAAA;AAC3D,gBAAgB;AAChB,QAAA,MAAM,YAAY,kDAA+B,CAAA;AACjD,gBAAgB;AAChB,QAAA,MAAM,gBAAgB,sDAAmC,CAAA;AACzD,gBAAgB;AAChB,QAAA,MAAM,gBAAgB,sDAAmC,CAAA;AACzD,gBAAgB;AAChB,QAAA,MAAM,WAAW,iDAA8B,CAAA;AAC/C,gBAAgB;AAChB,QAAA,MAAM,mBAAm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B,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAE/C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAE/D;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAE3D"}
@@ -24,6 +24,7 @@ const handlerNameSchema = z.string().brand();
24
24
  *
25
25
  * @param id - The string to parse
26
26
  * @returns A branded ComponentId
27
+ * @riviere-role query-model
27
28
  */
28
29
  export function parseComponentId(id) {
29
30
  return componentIdSchema.parse(id);
@@ -33,6 +34,7 @@ export function parseComponentId(id) {
33
34
  *
34
35
  * @param id - The string to parse
35
36
  * @returns A branded LinkId
37
+ * @riviere-role query-model
36
38
  */
37
39
  export function parseLinkId(id) {
38
40
  return linkIdSchema.parse(id);
@@ -42,6 +44,7 @@ export function parseLinkId(id) {
42
44
  *
43
45
  * @param value - The string to parse
44
46
  * @returns A branded EntityName
47
+ * @riviere-role query-model
45
48
  */
46
49
  export function parseEntityName(value) {
47
50
  return entityNameSchema.parse(value);
@@ -51,6 +54,7 @@ export function parseEntityName(value) {
51
54
  *
52
55
  * @param value - The string to parse
53
56
  * @returns A branded DomainName
57
+ * @riviere-role query-model
54
58
  */
55
59
  export function parseDomainName(value) {
56
60
  return domainNameSchema.parse(value);
@@ -60,6 +64,7 @@ export function parseDomainName(value) {
60
64
  *
61
65
  * @param value - The string to parse
62
66
  * @returns A branded State
67
+ * @riviere-role query-model
63
68
  */
64
69
  export function parseState(value) {
65
70
  return stateSchema.parse(value);
@@ -69,6 +74,7 @@ export function parseState(value) {
69
74
  *
70
75
  * @param value - The string to parse
71
76
  * @returns A branded OperationName
77
+ * @riviere-role query-model
72
78
  */
73
79
  export function parseOperationName(value) {
74
80
  return operationNameSchema.parse(value);
@@ -78,6 +84,7 @@ export function parseOperationName(value) {
78
84
  *
79
85
  * @param value - The string to parse
80
86
  * @returns A branded EventId
87
+ * @riviere-role query-model
81
88
  */
82
89
  export function parseEventId(value) {
83
90
  return eventIdSchema.parse(value);
@@ -87,6 +94,7 @@ export function parseEventId(value) {
87
94
  *
88
95
  * @param value - The string to parse
89
96
  * @returns A branded EventName
97
+ * @riviere-role query-model
90
98
  */
91
99
  export function parseEventName(value) {
92
100
  return eventNameSchema.parse(value);
@@ -96,6 +104,7 @@ export function parseEventName(value) {
96
104
  *
97
105
  * @param value - The string to parse
98
106
  * @returns A branded HandlerId
107
+ * @riviere-role query-model
99
108
  */
100
109
  export function parseHandlerId(value) {
101
110
  return handlerIdSchema.parse(value);
@@ -105,6 +114,7 @@ export function parseHandlerId(value) {
105
114
  *
106
115
  * @param value - The string to parse
107
116
  * @returns A branded HandlerName
117
+ * @riviere-role query-model
108
118
  */
109
119
  export function parseHandlerName(value) {
110
120
  return handlerNameSchema.parse(value);
@@ -1,3 +1,4 @@
1
+ /** @riviere-role query-model-error */
1
2
  export declare class ComponentNotFoundError extends Error {
2
3
  readonly componentId: string;
3
4
  readonly suggestions: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAA;gBAElB,WAAW,EAAE,MAAM,EAAE,WAAW,GAAE,MAAM,EAAO;CAM5D"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/errors.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAA;gBAElB,WAAW,EAAE,MAAM,EAAE,WAAW,GAAE,MAAM,EAAO;CAM5D"}
@@ -1,3 +1,4 @@
1
+ /** @riviere-role query-model-error */
1
2
  export class ComponentNotFoundError extends Error {
2
3
  componentId;
3
4
  suggestions;
@@ -1,5 +1,7 @@
1
1
  import type { RiviereGraph } from '@living-architecture/riviere-schema';
2
2
  import type { PublishedEvent, EventHandlerInfo } from './event-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function queryPublishedEvents(graph: RiviereGraph, domainName?: string): PublishedEvent[];
5
+ /** @riviere-role query-model */
4
6
  export declare function queryEventHandlers(graph: RiviereGraph, eventName?: string): EventHandlerInfo[];
5
7
  //# sourceMappingURL=event-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/event-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAGb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,cAAc,EAEd,gBAAgB,EAGjB,MAAM,eAAe,CAAA;AAStB,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAwB/F;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAO9F"}
1
+ {"version":3,"file":"event-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/event-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAGb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,cAAc,EAEd,gBAAgB,EAGjB,MAAM,eAAe,CAAA;AAStB,gCAAgC;AAChC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAwB/F;AAED,gCAAgC;AAChC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAO9F"}
@@ -1,4 +1,5 @@
1
1
  import { parseDomainName, parseEventId, parseEventName, parseHandlerId, parseHandlerName, } from './domain-types';
2
+ /** @riviere-role query-model */
2
3
  export function queryPublishedEvents(graph, domainName) {
3
4
  const eventComponents = graph.components.filter((c) => c.type === 'Event');
4
5
  const filtered = domainName
@@ -21,6 +22,7 @@ export function queryPublishedEvents(graph, domainName) {
21
22
  };
22
23
  });
23
24
  }
25
+ /** @riviere-role query-model */
24
26
  export function queryEventHandlers(graph, eventName) {
25
27
  const eventByName = buildEventNameMap(graph);
26
28
  const handlers = findEventHandlerComponents(graph);
@@ -2,6 +2,7 @@ import type { DomainOpComponent } from '@living-architecture/riviere-schema';
2
2
  import type { EntityName, DomainName, State, OperationName, EventId, EventName, HandlerId, HandlerName } from './domain-types';
3
3
  /**
4
4
  * A domain entity with its associated operations, states, and business rules.
5
+ * @riviere-role query-model
5
6
  */
6
7
  export declare class Entity {
7
8
  /** The entity name. */
@@ -35,6 +36,7 @@ export declare class Entity {
35
36
  }
36
37
  /**
37
38
  * A state transition in an entity's state machine.
39
+ * @riviere-role query-model
38
40
  */
39
41
  export interface EntityTransition {
40
42
  /** The state before the transition. */
@@ -46,6 +48,7 @@ export interface EntityTransition {
46
48
  }
47
49
  /**
48
50
  * An event handler that subscribes to an event.
51
+ * @riviere-role query-model
49
52
  */
50
53
  export interface EventSubscriber {
51
54
  /** The handler's component ID. */
@@ -57,6 +60,7 @@ export interface EventSubscriber {
57
60
  }
58
61
  /**
59
62
  * A published event with its subscribers.
63
+ * @riviere-role query-model
60
64
  */
61
65
  export interface PublishedEvent {
62
66
  /** The event component's ID. */
@@ -70,6 +74,7 @@ export interface PublishedEvent {
70
74
  }
71
75
  /**
72
76
  * A subscribed event where the source domain is known.
77
+ * @riviere-role query-model
73
78
  */
74
79
  export interface KnownSourceEvent {
75
80
  /** The event name. */
@@ -81,6 +86,7 @@ export interface KnownSourceEvent {
81
86
  }
82
87
  /**
83
88
  * A subscribed event where the source domain is unknown.
89
+ * @riviere-role query-model
84
90
  */
85
91
  export interface UnknownSourceEvent {
86
92
  /** The event name. */
@@ -90,10 +96,12 @@ export interface UnknownSourceEvent {
90
96
  }
91
97
  /**
92
98
  * A subscribed event with optional source domain information.
99
+ * @riviere-role query-model
93
100
  */
94
101
  export type SubscribedEventWithDomain = KnownSourceEvent | UnknownSourceEvent;
95
102
  /**
96
103
  * Information about an event handler component.
104
+ * @riviere-role query-model
97
105
  */
98
106
  export interface EventHandlerInfo {
99
107
  /** The handler's component ID. */
@@ -1 +1 @@
1
- {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/event-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,KAAK,EACL,aAAa,EACb,OAAO,EACP,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,gBAAgB,CAAA;AAEvB;;GAEG;AACH,qBAAa,MAAM;IAEf,uBAAuB;aACP,IAAI,EAAE,UAAU;IAChC,wCAAwC;aACxB,MAAM,EAAE,UAAU;IAClC,mDAAmD;aACnC,UAAU,EAAE,iBAAiB,EAAE;IAC/C,0EAA0E;aAC1D,MAAM,EAAE,KAAK,EAAE;IAC/B,oDAAoD;aACpC,WAAW,EAAE,gBAAgB,EAAE;IAC/C,uDAAuD;aACvC,aAAa,EAAE,M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uC;IACvC,WAAW,EAAE,KAAK,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAE7E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,EAAE,EAAE,SAAS,CAAA;IACb,0BAA0B;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,yCAAyC;IACzC,MAAM,EAAE,UAAU,CAAA;IAClB,sDAAsD;IACtD,gBAAgB,EAAE,SAAS,EAAE,CAAA;IAC7B,wDAAwD;IACxD,0BAA0B,EAAE,yBAAyB,EAAE,CAAA;CACxD"}
1
+ {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/event-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,KAAK,EACL,aAAa,EACb,OAAO,EACP,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,gBAAgB,CAAA;AAEvB;;;GAGG;AACH,qBAAa,MAAM;IAEf,uBAAuB;aACP,IAAI,EAAE,UAAU;IAChC,wCAAwC;aACxB,MAAM,EAAE,UAAU;IAClC,mDAAmD;aACnC,UAAU,EAAE,iBAAiB,EAAE;IAC/C,0EAA0E;aAC1D,MAAM,EAAE,KAAK,EAAE;IAC/B,oDAAoD;aACpC,WAAW,EAAE,gBAAgB,EAAE;IAC/C,uDAAuD;aACvC,aAAa,EAAE,MAAM,EAAE;;IAXvC,uBAAuB;IACP,IAAI,EAAE,UAAU;IAChC,wCAAwC;IACxB,MAAM,EAAE,UAAU;IAClC,mDAAmD;IACnC,UAAU,EAAE,iBAAiB,EAAE;IAC/C,0EAA0E;IAC1D,MAAM,EAAE,KAAK,EAAE;IAC/B,oDAAoD;IACpC,WAAW,EAAE,gBAAgB,EAAE;IAC/C,uDAAuD;IACvC,aAAa,EAAE,MA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zC,MAAM,EAAE,UAAU,CAAA;IAClB,sDAAsD;IACtD,gBAAgB,EAAE,SAAS,EAAE,CAAA;IAC7B,wDAAwD;IACxD,0BAA0B,EAAE,yBAAyB,EAAE,CAAA;CACxD"}
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * A domain entity with its associated operations, states, and business rules.
3
+ * @riviere-role query-model
3
4
  */
4
5
  export class Entity {
5
6
  name;
@@ -8,6 +8,7 @@ import type { ExternalDomain } from './domain-types';
8
8
  *
9
9
  * @param graph - The RiviereGraph to query
10
10
  * @returns Array of ExternalDomain objects, sorted alphabetically by name
11
+ * @riviere-role query-model
11
12
  */
12
13
  export declare function queryExternalDomains(graph: RiviereGraph): ExternalDomain[];
13
14
  //# sourceMappingURL=external-system-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external-system-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/external-system-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAsDpD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,cAAc,EAAE,CAQ1E"}
1
+ {"version":3,"file":"external-system-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/external-system-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAsDpD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,cAAc,EAAE,CAQ1E"}
@@ -44,6 +44,7 @@ function convertToExternalDomains(domains) {
44
44
  *
45
45
  * @param graph - The RiviereGraph to query
46
46
  * @returns Array of ExternalDomain objects, sorted alphabetically by name
47
+ * @riviere-role query-model
47
48
  */
48
49
  export function queryExternalDomains(graph) {
49
50
  if (graph.externalLinks === undefined || graph.externalLinks.length === 0) {
@@ -1,13 +1,18 @@
1
1
  import type { RiviereGraph, Component } from '@living-architecture/riviere-schema';
2
2
  import type { ComponentId, LinkId, Flow, SearchWithFlowResult } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function findEntryPoints(graph: RiviereGraph): Component[];
5
+ /** @riviere-role query-model */
4
6
  export declare function traceFlowFrom(graph: RiviereGraph, startComponentId: ComponentId): {
5
7
  componentIds: ComponentId[];
6
8
  linkIds: LinkId[];
7
9
  };
10
+ /** @riviere-role query-model */
8
11
  export declare function queryFlows(graph: RiviereGraph): Flow[];
12
+ /** @riviere-role query-model-use-case-input */
9
13
  export interface SearchWithFlowOptions {
10
14
  returnAllOnEmptyQuery: boolean;
11
15
  }
16
+ /** @riviere-role query-model */
12
17
  export declare function searchWithFlowContext(graph: RiviereGraph, query: string, options: SearchWithFlowOptions): SearchWithFlowResult;
13
18
  //# sourceMappingURL=flow-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/flow-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,SAAS,EACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAChD,MAAM,gBAAgB,CAAA;AASvB,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,EAAE,CAGhE;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,gBAAgB,EAAE,WAAW,GAC5B;IACD,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAiCA;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,EAAE,CA2CtD;AA+CD,MAAM,WAAW,qBAAqB;IAAE,qBAAqB,EAAE,OAAO,CAAA;CAAC;AAEvE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB,CAwCtB"}
1
+ {"version":3,"file":"flow-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/flow-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,SAAS,EACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAChD,MAAM,gBAAgB,CAAA;AASvB,gCAAgC;AAChC,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,EAAE,CAGhE;AAED,gCAAgC;AAChC,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,gBAAgB,EAAE,WAAW,GAC5B;IACD,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAiCA;AAED,gCAAgC;AAChC,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,EAAE,CA2CtD;AA+CD,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IAAE,qBAAqB,EAAE,OAAO,CAAA;CAAC;AAEvE,gCAAgC;AAChC,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB,CAwCtB"}
@@ -3,10 +3,12 @@ import { componentById, searchComponents } from './component-queries';
3
3
  import { ComponentNotFoundError } from './errors';
4
4
  import { createLinkKey } from './link-key';
5
5
  import { ENTRY_POINT_TYPES } from './flow-constants';
6
+ /** @riviere-role query-model */
6
7
  export function findEntryPoints(graph) {
7
8
  const targets = new Set(graph.links.map((link) => link.target));
8
9
  return graph.components.filter((c) => ENTRY_POINT_TYPES.has(c.type) && !targets.has(c.id));
9
10
  }
11
+ /** @riviere-role query-model */
10
12
  export function traceFlowFrom(graph, startComponentId) {
11
13
  const component = componentById(graph, startComponentId);
12
14
  if (!component) {
@@ -38,6 +40,7 @@ export function traceFlowFrom(graph, startComponentId) {
38
40
  linkIds: Array.from(visitedLinks),
39
41
  };
40
42
  }
43
+ /** @riviere-role query-model */
41
44
  export function queryFlows(graph) {
42
45
  const componentByIdMap = new Map(graph.components.map((c) => [c.id, c]));
43
46
  const outgoingEdges = buildOutgoingEdges(graph);
@@ -107,6 +110,7 @@ function buildOutgoingEdges(graph) {
107
110
  }
108
111
  return edges;
109
112
  }
113
+ /** @riviere-role query-model */
110
114
  export function searchWithFlowContext(graph, query, options) {
111
115
  const trimmedQuery = query.trim().toLowerCase();
112
116
  const isEmptyQuery = trimmedQuery === '';
@@ -1,4 +1,5 @@
1
1
  import type { RiviereGraph } from '@living-architecture/riviere-schema';
2
2
  import type { GraphDiff } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function diffGraphs(current: RiviereGraph, other: RiviereGraph): GraphDiff;
4
5
  //# sourceMappingURL=graph-diff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph-diff.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/graph-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACa,SAAS,EACjC,MAAM,gBAAgB,CAAA;AAIvB,wBAAgB,UAAU,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,GAAG,SAAS,CA8ChF"}
1
+ {"version":3,"file":"graph-diff.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/graph-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACa,SAAS,EACjC,MAAM,gBAAgB,CAAA;AAIvB,gCAAgC;AAChC,wBAAgB,UAAU,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,GAAG,SAAS,CA8ChF"}
@@ -1,5 +1,6 @@
1
1
  import { parseComponentId } from './domain-types';
2
2
  import { createLinkKey } from './link-key';
3
+ /** @riviere-role query-model */
3
4
  export function diffGraphs(current, other) {
4
5
  const thisIds = new Set(current.components.map((c) => c.id));
5
6
  const otherIds = new Set(other.components.map((c) => c.id));
@@ -1,5 +1,7 @@
1
1
  import type { RiviereGraph } from '@living-architecture/riviere-schema';
2
2
  import type { ComponentId, ValidationResult } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function validateGraph(graph: RiviereGraph): ValidationResult;
5
+ /** @riviere-role query-model */
4
6
  export declare function detectOrphanComponents(graph: RiviereGraph): ComponentId[];
5
7
  //# sourceMappingURL=graph-validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph-validation.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/graph-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,WAAW,EAAmB,gBAAgB,EAC/C,MAAM,gBAAgB,CAAA;AAOvB,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,gBAAgB,CA2BnE;AAyBD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,EAAE,CAUzE"}
1
+ {"version":3,"file":"graph-validation.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/graph-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EACV,WAAW,EAAmB,gBAAgB,EAC/C,MAAM,gBAAgB,CAAA;AAOvB,gCAAgC;AAChC,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,gBAAgB,CA2BnE;AAyBD,gCAAgC;AAChC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,EAAE,CAUzE"}
@@ -2,6 +2,7 @@ import { parseComponentId } from './domain-types';
2
2
  function isCustomComponent(component) {
3
3
  return component.type === 'Custom';
4
4
  }
5
+ /** @riviere-role query-model */
5
6
  export function validateGraph(graph) {
6
7
  const errors = [];
7
8
  const componentIds = new Set(graph.components.map((c) => c.id));
@@ -45,6 +46,7 @@ function validateCustomTypes(graph) {
45
46
  });
46
47
  return errors;
47
48
  }
49
+ /** @riviere-role query-model */
48
50
  export function detectOrphanComponents(graph) {
49
51
  const connectedComponentIds = new Set();
50
52
  graph.links.forEach((link) => {
@@ -1,4 +1,5 @@
1
1
  import type { Link } from '@living-architecture/riviere-schema';
2
2
  import type { LinkId } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function createLinkKey(link: Link): LinkId;
4
5
  //# sourceMappingURL=link-key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-key.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/link-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAG5C,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD"}
1
+ {"version":3,"file":"link-key.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/link-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAG5C,gCAAgC;AAChC,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD"}
@@ -1,4 +1,5 @@
1
1
  import { parseLinkId } from './domain-types';
2
+ /** @riviere-role query-model */
2
3
  export function createLinkKey(link) {
3
4
  if (link.id !== undefined) {
4
5
  return parseLinkId(link.id);
@@ -1,4 +1,5 @@
1
1
  import type { RiviereGraph } from '@living-architecture/riviere-schema';
2
2
  import type { GraphStats } from './domain-types';
3
+ /** @riviere-role query-model */
3
4
  export declare function queryStats(graph: RiviereGraph): GraphStats;
4
5
  //# sourceMappingURL=stats-queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stats-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/stats-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,CAgB1D"}
1
+ {"version":3,"file":"stats-queries.d.ts","sourceRoot":"","sources":["../../../../src/features/querying/queries/stats-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,gCAAgC;AAChC,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,CAgB1D"}
@@ -1,3 +1,4 @@
1
+ /** @riviere-role query-model */
1
2
  export function queryStats(graph) {
2
3
  const components = graph.components;
3
4
  const uniqueDomains = new Set(components.map((c) => c.domain));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@living-architecture/riviere-query",
3
- "version": "0.5.6",
3
+ "version": "0.6.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,6 +23,6 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "zod": "^4.2.1",
26
- "@living-architecture/riviere-schema": "0.5.6"
26
+ "@living-architecture/riviere-schema": "0.6.3"
27
27
  }
28
28
  }