@living-architecture/riviere-builder 0.7.0 → 0.7.4
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/dist/features/building/domain/builder-facade.d.ts +7 -2
- package/dist/features/building/domain/builder-facade.d.ts.map +1 -1
- package/dist/features/building/domain/builder-facade.js +10 -4
- package/dist/features/building/domain/builder-graph.d.ts +2 -0
- package/dist/features/building/domain/builder-graph.d.ts.map +1 -1
- package/dist/features/building/domain/construction/builder-assertions.d.ts +3 -0
- package/dist/features/building/domain/construction/builder-assertions.d.ts.map +1 -1
- package/dist/features/building/domain/construction/builder-assertions.js +3 -0
- package/dist/features/building/domain/construction/builder-internals.d.ts +5 -0
- package/dist/features/building/domain/construction/builder-internals.d.ts.map +1 -1
- package/dist/features/building/domain/construction/builder-internals.js +5 -0
- package/dist/features/building/domain/construction/construction-errors.d.ts +11 -0
- package/dist/features/building/domain/construction/construction-errors.d.ts.map +1 -1
- package/dist/features/building/domain/construction/construction-errors.js +11 -0
- package/dist/features/building/domain/construction/construction-types.d.ts +10 -0
- package/dist/features/building/domain/construction/construction-types.d.ts.map +1 -1
- package/dist/features/building/domain/construction/graph-construction.d.ts +1 -0
- package/dist/features/building/domain/construction/graph-construction.d.ts.map +1 -1
- package/dist/features/building/domain/construction/graph-construction.js +1 -0
- package/dist/features/building/domain/enrichment/deduplicate-transitions.d.ts +1 -0
- package/dist/features/building/domain/enrichment/deduplicate-transitions.d.ts.map +1 -1
- package/dist/features/building/domain/enrichment/deduplicate-transitions.js +1 -0
- package/dist/features/building/domain/enrichment/enrichment-errors.d.ts +1 -0
- package/dist/features/building/domain/enrichment/enrichment-errors.d.ts.map +1 -1
- package/dist/features/building/domain/enrichment/enrichment-errors.js +1 -0
- package/dist/features/building/domain/enrichment/enrichment-types.d.ts +1 -0
- package/dist/features/building/domain/enrichment/enrichment-types.d.ts.map +1 -1
- package/dist/features/building/domain/enrichment/graph-enrichment.d.ts +1 -0
- package/dist/features/building/domain/enrichment/graph-enrichment.d.ts.map +1 -1
- package/dist/features/building/domain/enrichment/graph-enrichment.js +1 -0
- package/dist/features/building/domain/enrichment/merge-behavior.d.ts +1 -0
- package/dist/features/building/domain/enrichment/merge-behavior.d.ts.map +1 -1
- package/dist/features/building/domain/enrichment/merge-behavior.js +1 -0
- package/dist/features/building/domain/error-recovery/component-suggestion.d.ts +4 -0
- package/dist/features/building/domain/error-recovery/component-suggestion.d.ts.map +1 -1
- package/dist/features/building/domain/error-recovery/component-suggestion.js +4 -0
- package/dist/features/building/domain/error-recovery/match-types.d.ts +4 -0
- package/dist/features/building/domain/error-recovery/match-types.d.ts.map +1 -1
- package/dist/features/building/domain/error-recovery/near-match.d.ts +1 -0
- package/dist/features/building/domain/error-recovery/near-match.d.ts.map +1 -1
- package/dist/features/building/domain/error-recovery/near-match.js +1 -0
- package/dist/features/building/domain/inspection/graph-inspection.d.ts +1 -0
- package/dist/features/building/domain/inspection/graph-inspection.d.ts.map +1 -1
- package/dist/features/building/domain/inspection/graph-inspection.js +1 -0
- package/dist/features/building/domain/inspection/inspection-functions.d.ts +10 -0
- package/dist/features/building/domain/inspection/inspection-functions.d.ts.map +1 -1
- package/dist/features/building/domain/inspection/inspection-functions.js +10 -0
- package/dist/features/building/domain/inspection/inspection-types.d.ts +3 -0
- package/dist/features/building/domain/inspection/inspection-types.d.ts.map +1 -1
- package/dist/features/building/domain/linking/graph-linking.d.ts +1 -0
- package/dist/features/building/domain/linking/graph-linking.d.ts.map +1 -1
- package/dist/features/building/domain/linking/graph-linking.js +1 -0
- package/dist/features/building/domain/linking/linking-types.d.ts +2 -0
- package/dist/features/building/domain/linking/linking-types.d.ts.map +1 -1
- package/dist/features/building/domain/riviere-builder.d.ts +4 -2
- package/dist/features/building/domain/riviere-builder.d.ts.map +1 -1
- package/dist/features/building/domain/riviere-builder.js +8 -5
- package/dist/platform/domain/collection-utils/deduplicate-strings.d.ts +1 -0
- package/dist/platform/domain/collection-utils/deduplicate-strings.d.ts.map +1 -1
- package/dist/platform/domain/collection-utils/deduplicate-strings.js +1 -0
- package/dist/platform/domain/text-similarity/string-similarity.d.ts +4 -0
- package/dist/platform/domain/text-similarity/string-similarity.d.ts.map +1 -1
- package/dist/platform/domain/text-similarity/string-similarity.js +4 -0
- package/package.json +3 -3
|
@@ -11,24 +11,29 @@ export type { APIInput, BuilderOptions, BuilderStats, BuilderWarning, CustomInpu
|
|
|
11
11
|
*
|
|
12
12
|
* Thin facade preserving the flat public API while delegating
|
|
13
13
|
* to focused domain classes internally.
|
|
14
|
+
*
|
|
15
|
+
* @riviere-role aggregate
|
|
14
16
|
*/
|
|
15
17
|
export declare class RiviereBuilder {
|
|
16
18
|
private readonly delegate;
|
|
19
|
+
readonly graphPath: string;
|
|
17
20
|
private constructor();
|
|
18
21
|
/**
|
|
19
22
|
* Restores a builder from a previously serialized graph.
|
|
20
23
|
*
|
|
21
24
|
* @param graph - A valid RiviereGraph to resume from
|
|
25
|
+
* @param graphPath - File path where the graph is persisted
|
|
22
26
|
* @returns A new RiviereBuilder with the graph state restored
|
|
23
27
|
*/
|
|
24
|
-
static resume(graph: RiviereGraph): RiviereBuilder;
|
|
28
|
+
static resume(graph: RiviereGraph, graphPath?: string): RiviereBuilder;
|
|
25
29
|
/**
|
|
26
30
|
* Creates a new builder with initial configuration.
|
|
27
31
|
*
|
|
28
32
|
* @param options - Configuration including sources and domains
|
|
33
|
+
* @param graphPath - File path where the graph will be persisted
|
|
29
34
|
* @returns A new RiviereBuilder instance
|
|
30
35
|
*/
|
|
31
|
-
static new(options: BuilderOptions): RiviereBuilder;
|
|
36
|
+
static new(options: BuilderOptions, graphPath?: string): RiviereBuilder;
|
|
32
37
|
/**
|
|
33
38
|
* Adds an additional source repository to the graph.
|
|
34
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-facade.d.ts","sourceRoot":"","sources":["../../../../src/features/building/domain/builder-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAE1E,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,YAAY,EACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EACV,YAAY,EAAE,cAAc,EAC7B,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EACV,iBAAiB,EAAE,SAAS,EAC7B,MAAM,yBAAyB,CAAA;AAEhC,YAAY,EACV,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,EACX,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,OAAO,EACP,YAAY,GACb,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"builder-facade.d.ts","sourceRoot":"","sources":["../../../../src/features/building/domain/builder-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EA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
|
|
6
6
|
* to focused domain classes internally.
|
|
7
|
+
*
|
|
8
|
+
* @riviere-role aggregate
|
|
7
9
|
*/
|
|
8
10
|
export class RiviereBuilder {
|
|
9
11
|
delegate;
|
|
12
|
+
graphPath;
|
|
10
13
|
constructor(delegate) {
|
|
11
14
|
this.delegate = delegate;
|
|
15
|
+
this.graphPath = delegate.graphPath;
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* Restores a builder from a previously serialized graph.
|
|
15
19
|
*
|
|
16
20
|
* @param graph - A valid RiviereGraph to resume from
|
|
21
|
+
* @param graphPath - File path where the graph is persisted
|
|
17
22
|
* @returns A new RiviereBuilder with the graph state restored
|
|
18
23
|
*/
|
|
19
|
-
static resume(graph) {
|
|
20
|
-
return new RiviereBuilder(DomainBuilder.resume(graph));
|
|
24
|
+
static resume(graph, graphPath = '') {
|
|
25
|
+
return new RiviereBuilder(DomainBuilder.resume(graph, graphPath));
|
|
21
26
|
}
|
|
22
27
|
/**
|
|
23
28
|
* Creates a new builder with initial configuration.
|
|
24
29
|
*
|
|
25
30
|
* @param options - Configuration including sources and domains
|
|
31
|
+
* @param graphPath - File path where the graph will be persisted
|
|
26
32
|
* @returns A new RiviereBuilder instance
|
|
27
33
|
*/
|
|
28
|
-
static new(options) {
|
|
29
|
-
return new RiviereBuilder(DomainBuilder.new(options));
|
|
34
|
+
static new(options, graphPath = '') {
|
|
35
|
+
return new RiviereBuilder(DomainBuilder.new(options, graphPath));
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Adds an additional source repository to the graph.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { CustomTypeDefinition, ExternalLink, GraphMetadata, RiviereGraph, SourceInfo } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role value-object */
|
|
2
3
|
export interface BuilderMetadata extends Omit<GraphMetadata, 'sources' | 'customTypes'> {
|
|
3
4
|
sources: SourceInfo[];
|
|
4
5
|
customTypes: Record<string, CustomTypeDefinition>;
|
|
5
6
|
}
|
|
7
|
+
/** @riviere-role value-object */
|
|
6
8
|
export interface BuilderGraph extends Omit<RiviereGraph, 'metadata' | 'externalLinks'> {
|
|
7
9
|
metadata: BuilderMetadata;
|
|
8
10
|
externalLinks: ExternalLink[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-graph.d.ts","sourceRoot":"","sources":["../../../../src/features/building/domain/builder-graph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,UAAU,EACX,MAAM,qCAAqC,CAAA;AAE5C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,aAAa,CAAC;IACrF,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAClD;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,eAAe,CAAC;IACpF,QAAQ,EAAE,eAAe,CAAA;IACzB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B"}
|
|
1
|
+
{"version":3,"file":"builder-graph.d.ts","sourceRoot":"","sources":["../../../../src/features/building/domain/builder-graph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,UAAU,EACX,MAAM,qCAAqC,CAAA;AAE5C,iCAAiC;AACjC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,aAAa,CAAC;IACrF,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAClD;AAED,iCAAiC;AACjC,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,eAAe,CAAC;IACpF,QAAQ,EAAE,eAAe,CAAA;IACzB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { CustomTypeDefinition, DomainMetadata } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role domain-service */
|
|
2
3
|
export declare function assertDomainExists(domains: Record<string, DomainMetadata>, domain: string): void;
|
|
4
|
+
/** @riviere-role domain-service */
|
|
3
5
|
export declare function assertCustomTypeExists(customTypes: Record<string, CustomTypeDefinition>, customTypeName: string): void;
|
|
6
|
+
/** @riviere-role domain-service */
|
|
4
7
|
export declare function assertRequiredPropertiesProvided(customTypes: Record<string, CustomTypeDefinition>, customTypeName: string, metadata: Record<string, unknown> | undefined): void;
|
|
5
8
|
//# sourceMappingURL=builder-assertions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-assertions.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/builder-assertions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAAE,cAAc,EACrC,MAAM,qCAAqC,CAAA;AAO5C,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAIhG;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,GACrB,IAAI,CAKN;AAED,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,IAAI,CAaN"}
|
|
1
|
+
{"version":3,"file":"builder-assertions.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/builder-assertions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAAE,cAAc,EACrC,MAAM,qCAAqC,CAAA;AAO5C,mCAAmC;AACnC,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAIhG;AAED,mCAAmC;AACnC,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,GACrB,IAAI,CAKN;AAED,mCAAmC;AACnC,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,IAAI,CAaN"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { CustomTypeNotFoundError, DomainNotFoundError, MissingRequiredPropertiesError, } from './construction-errors';
|
|
2
|
+
/** @riviere-role domain-service */
|
|
2
3
|
export function assertDomainExists(domains, domain) {
|
|
3
4
|
if (!domains[domain]) {
|
|
4
5
|
throw new DomainNotFoundError(domain);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
8
|
+
/** @riviere-role domain-service */
|
|
7
9
|
export function assertCustomTypeExists(customTypes, customTypeName) {
|
|
8
10
|
if (!customTypes[customTypeName]) {
|
|
9
11
|
const definedTypes = Object.keys(customTypes);
|
|
10
12
|
throw new CustomTypeNotFoundError(customTypeName, definedTypes);
|
|
11
13
|
}
|
|
12
14
|
}
|
|
15
|
+
/** @riviere-role domain-service */
|
|
13
16
|
export function assertRequiredPropertiesProvided(customTypes, customTypeName, metadata) {
|
|
14
17
|
const typeDefinition = customTypes[customTypeName];
|
|
15
18
|
if (!typeDefinition?.requiredProperties) {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { Component, CustomTypeDefinition, DomainMetadata } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role domain-service */
|
|
2
3
|
export declare function generateComponentId(domain: string, module: string, type: string, name: string): string;
|
|
4
|
+
/** @riviere-role domain-service */
|
|
3
5
|
export declare function createComponentNotFoundError(components: Component[], id: string): Error;
|
|
6
|
+
/** @riviere-role domain-service */
|
|
4
7
|
export declare function validateDomainExists(domains: Record<string, DomainMetadata>, domain: string): void;
|
|
8
|
+
/** @riviere-role domain-service */
|
|
5
9
|
export declare function validateCustomType(customTypes: Record<string, CustomTypeDefinition>, customTypeName: string): void;
|
|
10
|
+
/** @riviere-role domain-service */
|
|
6
11
|
export declare function validateRequiredProperties(customTypes: Record<string, CustomTypeDefinition>, customTypeName: string, metadata: Record<string, unknown> | undefined): void;
|
|
7
12
|
//# sourceMappingURL=builder-internals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-internals.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/builder-internals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,cAAc,EACf,MAAM,qCAAqC,CAAA;AAS5C,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CAGR;AAED,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,KAAK,CAEvF;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EACvC,MAAM,EAAE,MAAM,GACb,IAAI,CAEN;AAED,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,GACrB,IAAI,CAEN;AAED,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,IAAI,CAEN"}
|
|
1
|
+
{"version":3,"file":"builder-internals.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/builder-internals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,cAAc,EACf,MAAM,qCAAqC,CAAA;AAS5C,mCAAmC;AACnC,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CAGR;AAED,mCAAmC;AACnC,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,KAAK,CAEvF;AAED,mCAAmC;AACnC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EACvC,MAAM,EAAE,MAAM,GACb,IAAI,CAEN;AAED,mCAAmC;AACnC,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,GACrB,IAAI,CAEN;AAED,mCAAmC;AACnC,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACjD,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,IAAI,CAEN"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { ComponentId } from '@living-architecture/riviere-schema';
|
|
2
2
|
import { createSourceNotFoundError } from '../error-recovery/component-suggestion';
|
|
3
3
|
import { assertCustomTypeExists, assertDomainExists, assertRequiredPropertiesProvided, } from './builder-assertions';
|
|
4
|
+
/** @riviere-role domain-service */
|
|
4
5
|
export function generateComponentId(domain, module, type, name) {
|
|
5
6
|
const nameSegment = name.toLowerCase().replaceAll(/\s+/g, '-');
|
|
6
7
|
return `${domain}:${module}:${type}:${nameSegment}`;
|
|
7
8
|
}
|
|
9
|
+
/** @riviere-role domain-service */
|
|
8
10
|
export function createComponentNotFoundError(components, id) {
|
|
9
11
|
return createSourceNotFoundError(components, ComponentId.parse(id));
|
|
10
12
|
}
|
|
13
|
+
/** @riviere-role domain-service */
|
|
11
14
|
export function validateDomainExists(domains, domain) {
|
|
12
15
|
assertDomainExists(domains, domain);
|
|
13
16
|
}
|
|
17
|
+
/** @riviere-role domain-service */
|
|
14
18
|
export function validateCustomType(customTypes, customTypeName) {
|
|
15
19
|
assertCustomTypeExists(customTypes, customTypeName);
|
|
16
20
|
}
|
|
21
|
+
/** @riviere-role domain-service */
|
|
17
22
|
export function validateRequiredProperties(customTypes, customTypeName, metadata) {
|
|
18
23
|
assertRequiredPropertiesProvided(customTypes, customTypeName, metadata);
|
|
19
24
|
}
|
|
@@ -1,43 +1,54 @@
|
|
|
1
|
+
/** @riviere-role domain-error */
|
|
1
2
|
export declare class DuplicateDomainError extends Error {
|
|
2
3
|
readonly domainName: string;
|
|
3
4
|
constructor(domainName: string);
|
|
4
5
|
}
|
|
6
|
+
/** @riviere-role domain-error */
|
|
5
7
|
export declare class DomainNotFoundError extends Error {
|
|
6
8
|
readonly domainName: string;
|
|
7
9
|
constructor(domainName: string);
|
|
8
10
|
}
|
|
11
|
+
/** @riviere-role domain-error */
|
|
9
12
|
export declare class CustomTypeNotFoundError extends Error {
|
|
10
13
|
readonly customTypeName: string;
|
|
11
14
|
readonly definedTypes: string[];
|
|
12
15
|
constructor(customTypeName: string, definedTypes: string[]);
|
|
13
16
|
}
|
|
17
|
+
/** @riviere-role domain-error */
|
|
14
18
|
export declare class DuplicateComponentError extends Error {
|
|
15
19
|
readonly componentId: string;
|
|
16
20
|
constructor(componentId: string);
|
|
17
21
|
}
|
|
22
|
+
/** @riviere-role domain-error */
|
|
18
23
|
export declare class ComponentNotFoundError extends Error {
|
|
19
24
|
readonly componentId: string;
|
|
20
25
|
readonly suggestions: string[];
|
|
21
26
|
constructor(componentId: string, suggestions?: string[]);
|
|
22
27
|
}
|
|
28
|
+
/** @riviere-role domain-error */
|
|
23
29
|
export declare class CustomTypeAlreadyDefinedError extends Error {
|
|
24
30
|
readonly typeName: string;
|
|
25
31
|
constructor(typeName: string);
|
|
26
32
|
}
|
|
33
|
+
/** @riviere-role domain-error */
|
|
27
34
|
export declare class MissingRequiredPropertiesError extends Error {
|
|
28
35
|
readonly customTypeName: string;
|
|
29
36
|
readonly missingKeys: string[];
|
|
30
37
|
constructor(customTypeName: string, missingKeys: string[]);
|
|
31
38
|
}
|
|
39
|
+
/** @riviere-role domain-error */
|
|
32
40
|
export declare class InvalidGraphError extends Error {
|
|
33
41
|
constructor(reason: string);
|
|
34
42
|
}
|
|
43
|
+
/** @riviere-role domain-error */
|
|
35
44
|
export declare class MissingSourcesError extends Error {
|
|
36
45
|
constructor();
|
|
37
46
|
}
|
|
47
|
+
/** @riviere-role domain-error */
|
|
38
48
|
export declare class MissingDomainsError extends Error {
|
|
39
49
|
constructor();
|
|
40
50
|
}
|
|
51
|
+
/** @riviere-role domain-error */
|
|
41
52
|
export declare class BuildValidationError extends Error {
|
|
42
53
|
readonly validationMessages: string[];
|
|
43
54
|
constructor(messages: string[]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"construction-errors.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/construction-errors.ts"],"names":[],"mappings":"AAAA,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;gBAEf,UAAU,EAAE,MAAM;CAK/B;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;gBAEf,UAAU,EAAE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C,qBAAa,mBAAoB,SAAQ,KAAK;;CAK7C;AAED,iCAAiC;AACjC,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAA;gBAEzB,QAAQ,EAAE,MAAM,EAAE;CAK/B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @riviere-role domain-error */
|
|
1
2
|
export class DuplicateDomainError extends Error {
|
|
2
3
|
domainName;
|
|
3
4
|
constructor(domainName) {
|
|
@@ -6,6 +7,7 @@ export class DuplicateDomainError extends Error {
|
|
|
6
7
|
this.domainName = domainName;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
10
|
+
/** @riviere-role domain-error */
|
|
9
11
|
export class DomainNotFoundError extends Error {
|
|
10
12
|
domainName;
|
|
11
13
|
constructor(domainName) {
|
|
@@ -14,6 +16,7 @@ export class DomainNotFoundError extends Error {
|
|
|
14
16
|
this.domainName = domainName;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
19
|
+
/** @riviere-role domain-error */
|
|
17
20
|
export class CustomTypeNotFoundError extends Error {
|
|
18
21
|
customTypeName;
|
|
19
22
|
definedTypes;
|
|
@@ -27,6 +30,7 @@ export class CustomTypeNotFoundError extends Error {
|
|
|
27
30
|
this.definedTypes = definedTypes;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
33
|
+
/** @riviere-role domain-error */
|
|
30
34
|
export class DuplicateComponentError extends Error {
|
|
31
35
|
componentId;
|
|
32
36
|
constructor(componentId) {
|
|
@@ -35,6 +39,7 @@ export class DuplicateComponentError extends Error {
|
|
|
35
39
|
this.componentId = componentId;
|
|
36
40
|
}
|
|
37
41
|
}
|
|
42
|
+
/** @riviere-role domain-error */
|
|
38
43
|
export class ComponentNotFoundError extends Error {
|
|
39
44
|
componentId;
|
|
40
45
|
suggestions;
|
|
@@ -49,6 +54,7 @@ export class ComponentNotFoundError extends Error {
|
|
|
49
54
|
this.suggestions = suggestions;
|
|
50
55
|
}
|
|
51
56
|
}
|
|
57
|
+
/** @riviere-role domain-error */
|
|
52
58
|
export class CustomTypeAlreadyDefinedError extends Error {
|
|
53
59
|
typeName;
|
|
54
60
|
constructor(typeName) {
|
|
@@ -57,6 +63,7 @@ export class CustomTypeAlreadyDefinedError extends Error {
|
|
|
57
63
|
this.typeName = typeName;
|
|
58
64
|
}
|
|
59
65
|
}
|
|
66
|
+
/** @riviere-role domain-error */
|
|
60
67
|
export class MissingRequiredPropertiesError extends Error {
|
|
61
68
|
customTypeName;
|
|
62
69
|
missingKeys;
|
|
@@ -67,24 +74,28 @@ export class MissingRequiredPropertiesError extends Error {
|
|
|
67
74
|
this.missingKeys = missingKeys;
|
|
68
75
|
}
|
|
69
76
|
}
|
|
77
|
+
/** @riviere-role domain-error */
|
|
70
78
|
export class InvalidGraphError extends Error {
|
|
71
79
|
constructor(reason) {
|
|
72
80
|
super(`Invalid graph: ${reason}`);
|
|
73
81
|
this.name = 'InvalidGraphError';
|
|
74
82
|
}
|
|
75
83
|
}
|
|
84
|
+
/** @riviere-role domain-error */
|
|
76
85
|
export class MissingSourcesError extends Error {
|
|
77
86
|
constructor() {
|
|
78
87
|
super('At least one source required');
|
|
79
88
|
this.name = 'MissingSourcesError';
|
|
80
89
|
}
|
|
81
90
|
}
|
|
91
|
+
/** @riviere-role domain-error */
|
|
82
92
|
export class MissingDomainsError extends Error {
|
|
83
93
|
constructor() {
|
|
84
94
|
super('At least one domain required');
|
|
85
95
|
this.name = 'MissingDomainsError';
|
|
86
96
|
}
|
|
87
97
|
}
|
|
98
|
+
/** @riviere-role domain-error */
|
|
88
99
|
export class BuildValidationError extends Error {
|
|
89
100
|
validationMessages;
|
|
90
101
|
constructor(messages) {
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { ApiType, CustomPropertyDefinition, DomainMetadata, HttpMethod, OperationBehavior, OperationSignature, SourceInfo, SourceLocation, StateTransition, SystemType } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role value-object */
|
|
2
3
|
export interface BuilderOptions {
|
|
3
4
|
name?: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
sources: SourceInfo[];
|
|
6
7
|
domains: Record<string, DomainMetadata>;
|
|
7
8
|
}
|
|
9
|
+
/** @riviere-role value-object */
|
|
8
10
|
export interface DomainInput {
|
|
9
11
|
name: string;
|
|
10
12
|
description: string;
|
|
11
13
|
systemType: SystemType;
|
|
12
14
|
}
|
|
15
|
+
/** @riviere-role value-object */
|
|
13
16
|
export interface UIInput {
|
|
14
17
|
name: string;
|
|
15
18
|
domain: string;
|
|
@@ -19,6 +22,7 @@ export interface UIInput {
|
|
|
19
22
|
sourceLocation: SourceLocation;
|
|
20
23
|
metadata?: Record<string, unknown>;
|
|
21
24
|
}
|
|
25
|
+
/** @riviere-role value-object */
|
|
22
26
|
export interface APIInput {
|
|
23
27
|
name: string;
|
|
24
28
|
domain: string;
|
|
@@ -31,6 +35,7 @@ export interface APIInput {
|
|
|
31
35
|
sourceLocation: SourceLocation;
|
|
32
36
|
metadata?: Record<string, unknown>;
|
|
33
37
|
}
|
|
38
|
+
/** @riviere-role value-object */
|
|
34
39
|
export interface UseCaseInput {
|
|
35
40
|
name: string;
|
|
36
41
|
domain: string;
|
|
@@ -39,6 +44,7 @@ export interface UseCaseInput {
|
|
|
39
44
|
sourceLocation: SourceLocation;
|
|
40
45
|
metadata?: Record<string, unknown>;
|
|
41
46
|
}
|
|
47
|
+
/** @riviere-role value-object */
|
|
42
48
|
export interface DomainOpInput {
|
|
43
49
|
name: string;
|
|
44
50
|
domain: string;
|
|
@@ -53,6 +59,7 @@ export interface DomainOpInput {
|
|
|
53
59
|
sourceLocation: SourceLocation;
|
|
54
60
|
metadata?: Record<string, unknown>;
|
|
55
61
|
}
|
|
62
|
+
/** @riviere-role value-object */
|
|
56
63
|
export interface EventInput {
|
|
57
64
|
name: string;
|
|
58
65
|
domain: string;
|
|
@@ -63,6 +70,7 @@ export interface EventInput {
|
|
|
63
70
|
sourceLocation: SourceLocation;
|
|
64
71
|
metadata?: Record<string, unknown>;
|
|
65
72
|
}
|
|
73
|
+
/** @riviere-role value-object */
|
|
66
74
|
export interface EventHandlerInput {
|
|
67
75
|
name: string;
|
|
68
76
|
domain: string;
|
|
@@ -72,12 +80,14 @@ export interface EventHandlerInput {
|
|
|
72
80
|
sourceLocation: SourceLocation;
|
|
73
81
|
metadata?: Record<string, unknown>;
|
|
74
82
|
}
|
|
83
|
+
/** @riviere-role value-object */
|
|
75
84
|
export interface CustomTypeInput {
|
|
76
85
|
name: string;
|
|
77
86
|
description?: string;
|
|
78
87
|
requiredProperties?: Record<string, CustomPropertyDefinition>;
|
|
79
88
|
optionalProperties?: Record<string, CustomPropertyDefinition>;
|
|
80
89
|
}
|
|
90
|
+
/** @riviere-role value-object */
|
|
81
91
|
export interface CustomInput {
|
|
82
92
|
customTypeName: string;
|
|
83
93
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"construction-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/construction-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,wBAAwB,EACxB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,eAAe,EACf,UAAU,EACX,MAAM,qCAAqC,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,C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|
|
1
|
+
{"version":3,"file":"construction-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/construction-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,wBAAwB,EACxB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,eAAe,EACf,UAAU,EACX,MAAM,qCAAqC,CAAA;AAE5C,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACxC;AAED,iCAAiC;AACjC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,iCAAiC;AACjC,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,cAAc,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,cAAc,CAAA;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M,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,cAAc,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;IAC7D,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;CAC9D;AAED,iCAAiC;AACjC,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,cAAc,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { APIComponent, CustomComponent, DomainOpComponent, EventComponent, EventHandlerComponent, SourceInfo, UIComponent, UseCaseComponent } from '@living-architecture/riviere-schema';
|
|
2
2
|
import type { BuilderGraph } from '../builder-graph';
|
|
3
3
|
import type { APIInput, CustomInput, CustomTypeInput, DomainInput, DomainOpInput, EventHandlerInput, EventInput, UIInput, UseCaseInput } from './construction-types';
|
|
4
|
+
/** @riviere-role domain-service */
|
|
4
5
|
export declare class GraphConstruction {
|
|
5
6
|
private readonly graph;
|
|
6
7
|
constructor(graph: BuilderGraph);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-construction.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/graph-construction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,eAAe,EACf,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,YAAY,EACb,MAAM,sBAAsB,CAAA;AAa7B,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAInC,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAWnC,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW;IAiBlC,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,YAAY;IAoBrC,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,gBAAgB;IAgBjD,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,iBAAiB;IAsBpD,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc;IAkB3C,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,qBAAqB;IAiBhE,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAc9C,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe;IAwB9C,OAAO,CAAC,iBAAiB;CAO1B"}
|
|
1
|
+
{"version":3,"file":"graph-construction.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/construction/graph-construction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,eAAe,EACf,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,YAAY,EACb,MAAM,sBAAsB,CAAA;AAa7B,mCAAmC;AACnC,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAInC,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAWnC,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW;IAiBlC,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,YAAY;IAoBrC,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,gBAAgB;IAgBjD,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,iBAAiB;IAsBpD,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc;IAkB3C,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,qBAAqB;IAiBhE,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAc9C,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe;IAwB9C,OAAO,CAAC,iBAAiB;CAO1B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CustomTypeAlreadyDefinedError, DuplicateComponentError, DuplicateDomainError, } from './construction-errors';
|
|
2
2
|
import { generateComponentId, validateCustomType, validateDomainExists, validateRequiredProperties, } from './builder-internals';
|
|
3
|
+
/** @riviere-role domain-service */
|
|
3
4
|
export class GraphConstruction {
|
|
4
5
|
graph;
|
|
5
6
|
constructor(graph) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { StateTransition } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role domain-service */
|
|
2
3
|
export declare function deduplicateStateTransitions(existing: StateTransition[], incoming: StateTransition[]): StateTransition[];
|
|
3
4
|
//# sourceMappingURL=deduplicate-transitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deduplicate-transitions.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/deduplicate-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAE1E,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,eAAe,EAAE,EAC3B,QAAQ,EAAE,eAAe,EAAE,GAC1B,eAAe,EAAE,CAKnB"}
|
|
1
|
+
{"version":3,"file":"deduplicate-transitions.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/deduplicate-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAE1E,mCAAmC;AACnC,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,eAAe,EAAE,EAC3B,QAAQ,EAAE,eAAe,EAAE,GAC1B,eAAe,EAAE,CAKnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enrichment-errors.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/enrichment-errors.ts"],"names":[],"mappings":"AAAA,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;gBAElB,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;CAMvD"}
|
|
1
|
+
{"version":3,"file":"enrichment-errors.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/enrichment-errors.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;gBAElB,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;CAMvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enrichment-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/enrichment-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EAChB,MAAM,qCAAqC,CAAA;AAE5C,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,SAAS,CAAC,EAAE,kBAAkB,CAAA;CAC/B"}
|
|
1
|
+
{"version":3,"file":"enrichment-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/enrichment-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EAChB,MAAM,qCAAqC,CAAA;AAE5C,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,SAAS,CAAC,EAAE,kBAAkB,CAAA;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-enrichment.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/graph-enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAOzD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,GAAG,IAAI;CA4B/D"}
|
|
1
|
+
{"version":3,"file":"graph-enrichment.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/graph-enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAOzD,mCAAmC;AACnC,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,GAAG,IAAI;CA4B/D"}
|
|
@@ -3,6 +3,7 @@ import { createComponentNotFoundError } from '../construction/builder-internals'
|
|
|
3
3
|
import { deduplicateStateTransitions } from './deduplicate-transitions';
|
|
4
4
|
import { deduplicateStrings } from '../../../../platform/domain/collection-utils/deduplicate-strings';
|
|
5
5
|
import { mergeBehavior } from './merge-behavior';
|
|
6
|
+
/** @riviere-role domain-service */
|
|
6
7
|
export class GraphEnrichment {
|
|
7
8
|
graph;
|
|
8
9
|
constructor(graph) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { DomainOpComponent, OperationBehavior } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role domain-service */
|
|
2
3
|
export declare function mergeBehavior(existing: DomainOpComponent['behavior'], incoming: OperationBehavior): OperationBehavior;
|
|
3
4
|
//# sourceMappingURL=merge-behavior.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-behavior.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/merge-behavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAE,iBAAiB,EACrC,MAAM,qCAAqC,CAAA;AAQ5C,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,EACvC,QAAQ,EAAE,iBAAiB,GAC1B,iBAAiB,CASnB"}
|
|
1
|
+
{"version":3,"file":"merge-behavior.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/enrichment/merge-behavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAE,iBAAiB,EACrC,MAAM,qCAAqC,CAAA;AAQ5C,mCAAmC;AACnC,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,EACvC,QAAQ,EAAE,iBAAiB,GAC1B,iBAAiB,CASnB"}
|
|
@@ -3,6 +3,7 @@ function mergeStringArray(existing, incoming) {
|
|
|
3
3
|
const base = existing ?? [];
|
|
4
4
|
return [...base, ...deduplicateStrings(base, incoming)];
|
|
5
5
|
}
|
|
6
|
+
/** @riviere-role domain-service */
|
|
6
7
|
export function mergeBehavior(existing, incoming) {
|
|
7
8
|
const base = existing ?? {};
|
|
8
9
|
return {
|
|
@@ -6,6 +6,8 @@ import type { NearMatchOptions, NearMatchQuery, NearMatchResult } from './match-
|
|
|
6
6
|
*
|
|
7
7
|
* Used for error recovery to suggest alternatives when exact matches fail.
|
|
8
8
|
*
|
|
9
|
+
* @riviere-role domain-service
|
|
10
|
+
*
|
|
9
11
|
* @param components - Array of components to search
|
|
10
12
|
* @param query - Search criteria with name and optional type/domain filters
|
|
11
13
|
* @param options - Optional threshold and limit settings
|
|
@@ -21,6 +23,8 @@ export declare function findNearMatches(components: Component[], query: NearMatc
|
|
|
21
23
|
/**
|
|
22
24
|
* Creates a typed error with suggestions for a missing source component.
|
|
23
25
|
*
|
|
26
|
+
* @riviere-role domain-service
|
|
27
|
+
*
|
|
24
28
|
* @param components - Array of existing components to search for suggestions
|
|
25
29
|
* @param id - The ComponentId that was not found
|
|
26
30
|
* @returns ComponentNotFoundError with suggestions array for programmatic access
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-suggestion.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/error-recovery/component-suggestion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,WAAW,EACvB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,eAAe,CAAA;AA+BtB
|
|
1
|
+
{"version":3,"file":"component-suggestion.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/error-recovery/component-suggestion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,WAAW,EACvB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,eAAe,CAAA;AA+BtB;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,SAAS,EAAE,EACvB,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,gBAAgB,GACzB,eAAe,EAAE,CAuBnB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,SAAS,EAAE,EACvB,EAAE,EAAE,WAAW,GACd,sBAAsB,CAIxB"}
|
|
@@ -26,6 +26,8 @@ function detectMismatch(query, component) {
|
|
|
26
26
|
*
|
|
27
27
|
* Used for error recovery to suggest alternatives when exact matches fail.
|
|
28
28
|
*
|
|
29
|
+
* @riviere-role domain-service
|
|
30
|
+
*
|
|
29
31
|
* @param components - Array of components to search
|
|
30
32
|
* @param query - Search criteria with name and optional type/domain filters
|
|
31
33
|
* @param options - Optional threshold and limit settings
|
|
@@ -61,6 +63,8 @@ export function findNearMatches(components, query, options) {
|
|
|
61
63
|
/**
|
|
62
64
|
* Creates a typed error with suggestions for a missing source component.
|
|
63
65
|
*
|
|
66
|
+
* @riviere-role domain-service
|
|
67
|
+
*
|
|
64
68
|
* @param components - Array of existing components to search for suggestions
|
|
65
69
|
* @param id - The ComponentId that was not found
|
|
66
70
|
* @returns ComponentNotFoundError with suggestions array for programmatic access
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import type { ComponentType } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role value-object */
|
|
2
3
|
export interface NearMatchQuery {
|
|
3
4
|
name: string;
|
|
4
5
|
type?: ComponentType;
|
|
5
6
|
domain?: string;
|
|
6
7
|
}
|
|
8
|
+
/** @riviere-role value-object */
|
|
7
9
|
export interface NearMatchMismatch {
|
|
8
10
|
field: 'type' | 'domain';
|
|
9
11
|
expected: string;
|
|
10
12
|
actual: string;
|
|
11
13
|
}
|
|
14
|
+
/** @riviere-role value-object */
|
|
12
15
|
export interface NearMatchResult {
|
|
13
16
|
component: import('@living-architecture/riviere-schema').Component;
|
|
14
17
|
score: number;
|
|
15
18
|
mismatch?: NearMatchMismatch | undefined;
|
|
16
19
|
}
|
|
20
|
+
/** @riviere-role value-object */
|
|
17
21
|
export interface NearMatchOptions {
|
|
18
22
|
threshold?: number;
|
|
19
23
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/error-recovery/match-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAExE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,qCAAqC,EAAE,SAAS,CAAA;IAClE,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
1
|
+
{"version":3,"file":"match-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/error-recovery/match-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAExE,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,iCAAiC;AACjC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,qCAAqC,EAAE,SAAS,CAAA;IAClE,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;CACzC;AAED,iCAAiC;AACjC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BuilderGraph } from '../builder-graph';
|
|
2
2
|
import type { NearMatchOptions, NearMatchQuery, NearMatchResult } from './match-types';
|
|
3
|
+
/** @riviere-role domain-service */
|
|
3
4
|
export declare class NearMatch {
|
|
4
5
|
private readonly graph;
|
|
5
6
|
constructor(graph: BuilderGraph);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"near-match.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/error-recovery/near-match.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAClD,MAAM,eAAe,CAAA;AAGtB,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,eAAe,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,EAAE;CAGtF"}
|
|
1
|
+
{"version":3,"file":"near-match.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/error-recovery/near-match.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAClD,MAAM,eAAe,CAAA;AAGtB,mCAAmC;AACnC,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,eAAe,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,EAAE;CAGtF"}
|
|
@@ -2,6 +2,7 @@ import type { ValidationResult } from '@living-architecture/riviere-query';
|
|
|
2
2
|
import { RiviereQuery } from '@living-architecture/riviere-query';
|
|
3
3
|
import type { BuilderGraph } from '../builder-graph';
|
|
4
4
|
import type { BuilderStats, BuilderWarning } from './inspection-types';
|
|
5
|
+
/** @riviere-role domain-service */
|
|
5
6
|
export declare class GraphInspection {
|
|
6
7
|
private readonly graph;
|
|
7
8
|
constructor(graph: BuilderGraph);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-inspection.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/inspection/graph-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,YAAY,EAAE,cAAc,EAC7B,MAAM,oBAAoB,CAAA;AAS3B,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,QAAQ,IAAI,cAAc,EAAE;IAI5B,KAAK,IAAI,YAAY;IAIrB,OAAO,IAAI,MAAM,EAAE;IAInB,QAAQ,IAAI,gBAAgB;IAI5B,KAAK,IAAI,YAAY;CAGtB"}
|
|
1
|
+
{"version":3,"file":"graph-inspection.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/inspection/graph-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,YAAY,EAAE,cAAc,EAC7B,MAAM,oBAAoB,CAAA;AAS3B,mCAAmC;AACnC,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,QAAQ,IAAI,cAAc,EAAE;IAI5B,KAAK,IAAI,YAAY;IAIrB,OAAO,IAAI,MAAM,EAAE;IAInB,QAAQ,IAAI,gBAAgB;IAI5B,KAAK,IAAI,YAAY;CAGtB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RiviereQuery } from '@living-architecture/riviere-query';
|
|
2
2
|
import { calculateStats, findOrphans, findWarnings, toRiviereGraph, validateGraph, } from './inspection-functions';
|
|
3
|
+
/** @riviere-role domain-service */
|
|
3
4
|
export class GraphInspection {
|
|
4
5
|
graph;
|
|
5
6
|
constructor(graph) {
|
|
@@ -18,6 +18,8 @@ interface InspectionGraph {
|
|
|
18
18
|
/**
|
|
19
19
|
* Finds components with no incoming or outgoing links.
|
|
20
20
|
*
|
|
21
|
+
* @riviere-role domain-service
|
|
22
|
+
*
|
|
21
23
|
* @param graph - The graph to inspect
|
|
22
24
|
* @returns Array of orphaned component IDs
|
|
23
25
|
*
|
|
@@ -31,6 +33,8 @@ export declare function findOrphans(graph: InspectionGraph): string[];
|
|
|
31
33
|
/**
|
|
32
34
|
* Calculates statistics about the graph.
|
|
33
35
|
*
|
|
36
|
+
* @riviere-role domain-service
|
|
37
|
+
*
|
|
34
38
|
* @param graph - The graph to analyze
|
|
35
39
|
* @returns Object with component counts, link counts, and domain count
|
|
36
40
|
*
|
|
@@ -46,6 +50,8 @@ export declare function calculateStats(graph: InspectionGraph): BuilderStats;
|
|
|
46
50
|
*
|
|
47
51
|
* Detects orphaned components and unused domains.
|
|
48
52
|
*
|
|
53
|
+
* @riviere-role domain-service
|
|
54
|
+
*
|
|
49
55
|
* @param graph - The graph to inspect
|
|
50
56
|
* @returns Array of warning objects
|
|
51
57
|
*
|
|
@@ -61,6 +67,8 @@ export declare function findWarnings(graph: InspectionGraph): BuilderWarning[];
|
|
|
61
67
|
*
|
|
62
68
|
* Removes undefined optional fields and ensures proper structure.
|
|
63
69
|
*
|
|
70
|
+
* @riviere-role domain-service
|
|
71
|
+
*
|
|
64
72
|
* @param graph - The internal builder graph
|
|
65
73
|
* @returns Schema-compliant RiviereGraph
|
|
66
74
|
*
|
|
@@ -74,6 +82,8 @@ export declare function toRiviereGraph(graph: InspectionGraph): RiviereGraph;
|
|
|
74
82
|
/**
|
|
75
83
|
* Validates the graph against the Rivière schema.
|
|
76
84
|
*
|
|
85
|
+
* @riviere-role domain-service
|
|
86
|
+
*
|
|
77
87
|
* @param graph - The graph to validate
|
|
78
88
|
* @returns Validation result with valid flag and any errors
|
|
79
89
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspection-functions.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/inspection/inspection-functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,UAAU,EACX,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACS,KAAK,gBAAgB,EACpC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EACV,YAAY,EAAE,cAAc,EAC7B,MAAM,oBAAoB,CAAA;AAE3B,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,EAAE,UAAU,EAAE,CAAA;QACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;KAClD,CAAA;IACD,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED
|
|
1
|
+
{"version":3,"file":"inspection-functions.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/inspection/inspection-functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,UAAU,EACX,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACS,KAAK,gBAAgB,EACpC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EACV,YAAY,EAAE,cAAc,EAC7B,MAAM,oBAAoB,CAAA;AAE3B,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,EAAE,UAAU,EAAE,CAAA;QACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;KAClD,CAAA;IACD,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,EAAE,CAa5D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,CAiBnE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,cAAc,EAAE,CAuBrE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,CAiBnE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,CAEtE"}
|
|
@@ -2,6 +2,8 @@ import { RiviereQuery } from '@living-architecture/riviere-query';
|
|
|
2
2
|
/**
|
|
3
3
|
* Finds components with no incoming or outgoing links.
|
|
4
4
|
*
|
|
5
|
+
* @riviere-role domain-service
|
|
6
|
+
*
|
|
5
7
|
* @param graph - The graph to inspect
|
|
6
8
|
* @returns Array of orphaned component IDs
|
|
7
9
|
*
|
|
@@ -25,6 +27,8 @@ export function findOrphans(graph) {
|
|
|
25
27
|
/**
|
|
26
28
|
* Calculates statistics about the graph.
|
|
27
29
|
*
|
|
30
|
+
* @riviere-role domain-service
|
|
31
|
+
*
|
|
28
32
|
* @param graph - The graph to analyze
|
|
29
33
|
* @returns Object with component counts, link counts, and domain count
|
|
30
34
|
*
|
|
@@ -57,6 +61,8 @@ export function calculateStats(graph) {
|
|
|
57
61
|
*
|
|
58
62
|
* Detects orphaned components and unused domains.
|
|
59
63
|
*
|
|
64
|
+
* @riviere-role domain-service
|
|
65
|
+
*
|
|
60
66
|
* @param graph - The graph to inspect
|
|
61
67
|
* @returns Array of warning objects
|
|
62
68
|
*
|
|
@@ -92,6 +98,8 @@ export function findWarnings(graph) {
|
|
|
92
98
|
*
|
|
93
99
|
* Removes undefined optional fields and ensures proper structure.
|
|
94
100
|
*
|
|
101
|
+
* @riviere-role domain-service
|
|
102
|
+
*
|
|
95
103
|
* @param graph - The internal builder graph
|
|
96
104
|
* @returns Schema-compliant RiviereGraph
|
|
97
105
|
*
|
|
@@ -121,6 +129,8 @@ export function toRiviereGraph(graph) {
|
|
|
121
129
|
/**
|
|
122
130
|
* Validates the graph against the Rivière schema.
|
|
123
131
|
*
|
|
132
|
+
* @riviere-role domain-service
|
|
133
|
+
*
|
|
124
134
|
* @param graph - The graph to validate
|
|
125
135
|
* @returns Validation result with valid flag and any errors
|
|
126
136
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @riviere-role value-object */
|
|
1
2
|
export interface BuilderStats {
|
|
2
3
|
componentCount: number;
|
|
3
4
|
componentsByType: {
|
|
@@ -13,7 +14,9 @@ export interface BuilderStats {
|
|
|
13
14
|
externalLinkCount: number;
|
|
14
15
|
domainCount: number;
|
|
15
16
|
}
|
|
17
|
+
/** @riviere-role value-object */
|
|
16
18
|
export type WarningCode = 'ORPHAN_COMPONENT' | 'UNUSED_DOMAIN';
|
|
19
|
+
/** @riviere-role value-object */
|
|
17
20
|
export interface BuilderWarning {
|
|
18
21
|
code: WarningCode;
|
|
19
22
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspection-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/inspection/inspection-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAA;QACV,GAAG,EAAE,MAAM,CAAA;QACX,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,YAAY,EAAE,MAAM,CAAA;QACpB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,eAAe,CAAA;AAE9D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
1
|
+
{"version":3,"file":"inspection-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/inspection/inspection-types.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAA;QACV,GAAG,EAAE,MAAM,CAAA;QACX,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,YAAY,EAAE,MAAM,CAAA;QACpB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,eAAe,CAAA;AAE9D,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExternalLink, Link } from '@living-architecture/riviere-schema';
|
|
2
2
|
import type { BuilderGraph } from '../builder-graph';
|
|
3
3
|
import type { ExternalLinkInput, LinkInput } from './linking-types';
|
|
4
|
+
/** @riviere-role domain-service */
|
|
4
5
|
export declare class GraphLinking {
|
|
5
6
|
private readonly graph;
|
|
6
7
|
constructor(graph: BuilderGraph);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/linking/graph-linking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,IAAI,EACnB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EAAE,SAAS,EAC7B,MAAM,iBAAiB,CAAA;AAGxB,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAe5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY;CAgBrD"}
|
|
1
|
+
{"version":3,"file":"graph-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/linking/graph-linking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAAE,IAAI,EACnB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EAAE,SAAS,EAC7B,MAAM,iBAAiB,CAAA;AAGxB,mCAAmC;AACnC,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,KAAK,EAAE,YAAY;IAI/B,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAe5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY;CAgBrD"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ExternalTarget, LinkType, SourceLocation } from '@living-architecture/riviere-schema';
|
|
2
|
+
/** @riviere-role value-object */
|
|
2
3
|
export interface LinkInput {
|
|
3
4
|
from: string;
|
|
4
5
|
to: string;
|
|
5
6
|
type?: LinkType;
|
|
6
7
|
}
|
|
8
|
+
/** @riviere-role value-object */
|
|
7
9
|
export interface ExternalLinkInput {
|
|
8
10
|
from: string;
|
|
9
11
|
target: ExternalTarget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linking-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/linking/linking-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAAE,QAAQ,EAAE,cAAc,EACzC,MAAM,qCAAqC,CAAA;AAE5C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
|
|
1
|
+
{"version":3,"file":"linking-types.d.ts","sourceRoot":"","sources":["../../../../../src/features/building/domain/linking/linking-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAAE,QAAQ,EAAE,cAAc,EACzC,MAAM,qCAAqC,CAAA;AAE5C,iCAAiC;AACjC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB;AAED,iCAAiC;AACjC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
|
|
@@ -5,16 +5,18 @@ import { GraphLinking } from './linking/graph-linking';
|
|
|
5
5
|
import { GraphInspection } from './inspection/graph-inspection';
|
|
6
6
|
import { NearMatch } from './error-recovery/near-match';
|
|
7
7
|
import type { BuilderOptions } from './construction/construction-types';
|
|
8
|
+
/** @riviere-role domain-service */
|
|
8
9
|
export declare class RiviereBuilder {
|
|
9
10
|
readonly construction: GraphConstruction;
|
|
10
11
|
readonly enrichment: GraphEnrichment;
|
|
11
12
|
readonly linking: GraphLinking;
|
|
12
13
|
readonly inspection: GraphInspection;
|
|
13
14
|
readonly errorRecovery: NearMatch;
|
|
15
|
+
readonly graphPath: string;
|
|
14
16
|
private readonly graph;
|
|
15
17
|
private constructor();
|
|
16
|
-
static resume(graph: RiviereGraph): RiviereBuilder;
|
|
17
|
-
static new(options: BuilderOptions): RiviereBuilder;
|
|
18
|
+
static resume(graph: RiviereGraph, graphPath?: string): RiviereBuilder;
|
|
19
|
+
static new(options: BuilderOptions, graphPath?: string): RiviereBuilder;
|
|
18
20
|
serialize(): string;
|
|
19
21
|
build(): RiviereGraph;
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"riviere-builder.d.ts","sourceRoot":"","sources":["../../../../src/features/building/domain/riviere-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAEvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASvE,qBAAa,cAAc;IACzB,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAA;IACxC,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAA;IACpC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAA;IACpC,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"riviere-builder.d.ts","sourceRoot":"","sources":["../../../../src/features/building/domain/riviere-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAEvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASvE,mCAAmC;AACnC,qBAAa,cAAc;IACzB,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAA;IACxC,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAA;IACpC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAA;IACpC,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAE1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IAEpC,OAAO;IAUP,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,SAAK,GAAG,cAAc;IAmBlE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,SAAS,SAAK,GAAG,cAAc;IA0BnE,SAAS,IAAI,MAAM;IAInB,KAAK,IAAI,YAAY;CAQtB"}
|
|
@@ -5,22 +5,25 @@ import { GraphInspection } from './inspection/graph-inspection';
|
|
|
5
5
|
import { NearMatch } from './error-recovery/near-match';
|
|
6
6
|
import { BuildValidationError, InvalidGraphError, MissingDomainsError, MissingSourcesError, } from './construction/construction-errors';
|
|
7
7
|
import { toRiviereGraph } from './inspection/inspection-functions';
|
|
8
|
+
/** @riviere-role domain-service */
|
|
8
9
|
export class RiviereBuilder {
|
|
9
10
|
construction;
|
|
10
11
|
enrichment;
|
|
11
12
|
linking;
|
|
12
13
|
inspection;
|
|
13
14
|
errorRecovery;
|
|
15
|
+
graphPath;
|
|
14
16
|
graph;
|
|
15
|
-
constructor(graph) {
|
|
17
|
+
constructor(graph, graphPath) {
|
|
16
18
|
this.graph = graph;
|
|
19
|
+
this.graphPath = graphPath;
|
|
17
20
|
this.construction = new GraphConstruction(graph);
|
|
18
21
|
this.enrichment = new GraphEnrichment(graph);
|
|
19
22
|
this.linking = new GraphLinking(graph);
|
|
20
23
|
this.inspection = new GraphInspection(graph);
|
|
21
24
|
this.errorRecovery = new NearMatch(graph);
|
|
22
25
|
}
|
|
23
|
-
static resume(graph) {
|
|
26
|
+
static resume(graph, graphPath = '') {
|
|
24
27
|
if (!graph.metadata.sources || graph.metadata.sources.length === 0) {
|
|
25
28
|
throw new InvalidGraphError('missing sources');
|
|
26
29
|
}
|
|
@@ -35,9 +38,9 @@ export class RiviereBuilder {
|
|
|
35
38
|
links: graph.links,
|
|
36
39
|
externalLinks: graph.externalLinks ?? [],
|
|
37
40
|
};
|
|
38
|
-
return new RiviereBuilder(builderGraph);
|
|
41
|
+
return new RiviereBuilder(builderGraph, graphPath);
|
|
39
42
|
}
|
|
40
|
-
static new(options) {
|
|
43
|
+
static new(options, graphPath = '') {
|
|
41
44
|
if (options.sources.length === 0) {
|
|
42
45
|
throw new MissingSourcesError();
|
|
43
46
|
}
|
|
@@ -57,7 +60,7 @@ export class RiviereBuilder {
|
|
|
57
60
|
links: [],
|
|
58
61
|
externalLinks: [],
|
|
59
62
|
};
|
|
60
|
-
return new RiviereBuilder(graph);
|
|
63
|
+
return new RiviereBuilder(graph, graphPath);
|
|
61
64
|
}
|
|
62
65
|
serialize() {
|
|
63
66
|
return JSON.stringify(this.graph, null, 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deduplicate-strings.d.ts","sourceRoot":"","sources":["../../../../src/platform/domain/collection-utils/deduplicate-strings.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAGnF"}
|
|
1
|
+
{"version":3,"file":"deduplicate-strings.d.ts","sourceRoot":"","sources":["../../../../src/platform/domain/collection-utils/deduplicate-strings.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAGnF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Calculates the Levenshtein edit distance between two strings.
|
|
3
3
|
*
|
|
4
|
+
* @riviere-role domain-service
|
|
5
|
+
*
|
|
4
6
|
* @param a - First string
|
|
5
7
|
* @param b - Second string
|
|
6
8
|
* @returns Number of single-character edits needed to transform a into b
|
|
@@ -18,6 +20,8 @@ export declare function levenshteinDistance(a: string, b: string): number;
|
|
|
18
20
|
* Returns 1.0 for identical strings, 0.0 for completely different strings.
|
|
19
21
|
* Case-insensitive comparison.
|
|
20
22
|
*
|
|
23
|
+
* @riviere-role domain-service
|
|
24
|
+
*
|
|
21
25
|
* @param a - First string
|
|
22
26
|
* @param b - Second string
|
|
23
27
|
* @returns Similarity score from 0.0 to 1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-similarity.d.ts","sourceRoot":"","sources":["../../../../src/platform/domain/text-similarity/string-similarity.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"string-similarity.d.ts","sourceRoot":"","sources":["../../../../src/platform/domain/text-similarity/string-similarity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAqBhE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAW5D"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Calculates the Levenshtein edit distance between two strings.
|
|
3
3
|
*
|
|
4
|
+
* @riviere-role domain-service
|
|
5
|
+
*
|
|
4
6
|
* @param a - First string
|
|
5
7
|
* @param b - Second string
|
|
6
8
|
* @returns Number of single-character edits needed to transform a into b
|
|
@@ -38,6 +40,8 @@ export function levenshteinDistance(a, b) {
|
|
|
38
40
|
* Returns 1.0 for identical strings, 0.0 for completely different strings.
|
|
39
41
|
* Case-insensitive comparison.
|
|
40
42
|
*
|
|
43
|
+
* @riviere-role domain-service
|
|
44
|
+
*
|
|
41
45
|
* @param a - First string
|
|
42
46
|
* @param b - Second string
|
|
43
47
|
* @returns Similarity score from 0.0 to 1.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@living-architecture/riviere-builder",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"!**/*.tsbuildinfo"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@living-architecture/riviere-query": "0.6.
|
|
26
|
-
"@living-architecture/riviere-schema": "0.6.
|
|
25
|
+
"@living-architecture/riviere-query": "0.6.4",
|
|
26
|
+
"@living-architecture/riviere-schema": "0.6.4"
|
|
27
27
|
}
|
|
28
28
|
}
|