@moldea.ai/core 6.0.0 → 7.0.1
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/README.md +13 -19
- package/dist/analysis-worker.js +14 -24
- package/dist/analysis-worker.js.map +1 -1
- package/dist/binding-coverage/index.d.ts +26 -0
- package/dist/binding-coverage/index.d.ts.map +1 -0
- package/dist/chunks/{core-DchheNDz.js → core-Cdeiu6xG.js} +743 -2684
- package/dist/chunks/core-Cdeiu6xG.js.map +1 -0
- package/dist/chunks/{errors-BQI1DEqf.js → errors-BE4DS3Ak.js} +27 -38
- package/dist/chunks/errors-BE4DS3Ak.js.map +1 -0
- package/dist/chunks/{exceptions-lzD3buFw.js → exceptions-IXsorE8t.js} +4 -16
- package/dist/chunks/exceptions-IXsorE8t.js.map +1 -0
- package/dist/chunks/{lifecycle-4EkWgEHm.js → lifecycle-D_RvxhDC.js} +2 -2
- package/dist/chunks/{lifecycle-4EkWgEHm.js.map → lifecycle-D_RvxhDC.js.map} +1 -1
- package/dist/chunks/{options-CxCT3dZU.js → options-5x9gu2Qb.js} +139 -152
- package/dist/chunks/options-5x9gu2Qb.js.map +1 -0
- package/dist/chunks/{repository-rpc-BWi6X1la.js → repository-rpc-B_y0Kspf.js} +2 -2
- package/dist/chunks/{repository-rpc-BWi6X1la.js.map → repository-rpc-B_y0Kspf.js.map} +1 -1
- package/dist/chunks/scope-AGMcHUE_.js +1827 -0
- package/dist/chunks/scope-AGMcHUE_.js.map +1 -0
- package/dist/chunks/syntax-CVvExx4R.js +137 -0
- package/dist/chunks/syntax-CVvExx4R.js.map +1 -0
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +15 -15
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -4
- package/dist/core/index.d.ts.map +1 -1
- package/dist/decision/index.d.ts +1 -1
- package/dist/decision-graph/index.d.ts +9 -7
- package/dist/decision-graph/index.d.ts.map +1 -1
- package/dist/diagnostic-utilities/index.d.ts +6 -2
- package/dist/diagnostic-utilities/index.d.ts.map +1 -1
- package/dist/diagnostics/index.d.ts +21 -33
- package/dist/diagnostics/index.d.ts.map +1 -1
- package/dist/exceptions/index.d.ts +4 -8
- package/dist/exceptions/index.d.ts.map +1 -1
- package/dist/export-inventory/index.d.ts +3 -0
- package/dist/export-inventory/index.d.ts.map +1 -0
- package/dist/export-inventory/inventory.d.ts +22 -0
- package/dist/export-inventory/inventory.d.ts.map +1 -0
- package/dist/export-inventory/syntax.d.ts +4 -0
- package/dist/export-inventory/syntax.d.ts.map +1 -0
- package/dist/export-inventory/types.d.ts +9 -0
- package/dist/export-inventory/types.d.ts.map +1 -0
- package/dist/format/index.d.ts +8 -0
- package/dist/format/index.d.ts.map +1 -1
- package/dist/impact-pattern-validation/index.d.ts +2 -0
- package/dist/impact-pattern-validation/index.d.ts.map +1 -0
- package/dist/impact-pattern-validation/inspection.d.ts +24 -0
- package/dist/impact-pattern-validation/inspection.d.ts.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/integration-validation/index.d.ts +4 -0
- package/dist/integration-validation/index.d.ts.map +1 -0
- package/dist/integration-validation/inspection.d.ts +18 -0
- package/dist/integration-validation/inspection.d.ts.map +1 -0
- package/dist/integration-validation/parser.d.ts +9 -0
- package/dist/integration-validation/parser.d.ts.map +1 -0
- package/dist/integration-validation/types.d.ts +13 -0
- package/dist/integration-validation/types.d.ts.map +1 -0
- package/dist/manifest/index.d.ts +2 -4
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/manifest-validation/index.d.ts +7 -10
- package/dist/manifest-validation/index.d.ts.map +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node-inspection/client.d.ts +0 -4
- package/dist/node-inspection/client.d.ts.map +1 -1
- package/dist/node-inspection/errors.d.ts.map +1 -1
- package/dist/node-inspection/protocol.d.ts.map +1 -1
- package/dist/node-inspection/types.d.ts +4 -8
- package/dist/node-inspection/types.d.ts.map +1 -1
- package/dist/node-runner.js +4 -4
- package/dist/node-runner.js.map +1 -1
- package/dist/node.js +23 -13
- package/dist/node.js.map +1 -1
- package/dist/options/index.d.ts +2 -14
- package/dist/options/index.d.ts.map +1 -1
- package/dist/project-inspection/index.d.ts +1 -2
- package/dist/project-inspection/index.d.ts.map +1 -1
- package/dist/project-validation/index.d.ts +2 -4
- package/dist/project-validation/index.d.ts.map +1 -1
- package/dist/repository-inspection-session/index.d.ts +2 -4
- package/dist/repository-inspection-session/index.d.ts.map +1 -1
- package/dist/repository-reference-validation/index.d.ts +12 -6
- package/dist/repository-reference-validation/index.d.ts.map +1 -1
- package/dist/retained-memory/index.d.ts +18 -0
- package/dist/retained-memory/index.d.ts.map +1 -0
- package/dist/scope/index.d.ts +3 -0
- package/dist/scope/index.d.ts.map +1 -0
- package/dist/scope/scope.d.ts +13 -0
- package/dist/scope/scope.d.ts.map +1 -0
- package/dist/scope-matching/index.d.ts +2 -1
- package/dist/scope-matching/index.d.ts.map +1 -1
- package/dist/scope-matching/matching.d.ts +11 -2
- package/dist/scope-matching/matching.d.ts.map +1 -1
- package/dist/scope-matching/patterns.d.ts +4 -0
- package/dist/scope-matching/patterns.d.ts.map +1 -0
- package/dist/scope.js +17 -0
- package/dist/scope.js.map +1 -0
- package/dist/universal-project-inspection/index.d.ts +13 -11
- package/dist/universal-project-inspection/index.d.ts.map +1 -1
- package/dist/warning-acceptance/acceptance.d.ts +11 -0
- package/dist/warning-acceptance/acceptance.d.ts.map +1 -0
- package/dist/warning-acceptance/index.d.ts +2 -0
- package/dist/warning-acceptance/index.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/adapter/index.d.ts +0 -143
- package/dist/adapter/index.d.ts.map +0 -1
- package/dist/adapter-availability/index.d.ts +0 -15
- package/dist/adapter-availability/index.d.ts.map +0 -1
- package/dist/adapter-execution/index.d.ts +0 -34
- package/dist/adapter-execution/index.d.ts.map +0 -1
- package/dist/adapter-repository/index.d.ts +0 -27
- package/dist/adapter-repository/index.d.ts.map +0 -1
- package/dist/adapter-result-collection/collection.d.ts +0 -13
- package/dist/adapter-result-collection/collection.d.ts.map +0 -1
- package/dist/adapter-result-collection/index.d.ts +0 -3
- package/dist/adapter-result-collection/index.d.ts.map +0 -1
- package/dist/adapter-result-collection/types.d.ts +0 -31
- package/dist/adapter-result-collection/types.d.ts.map +0 -1
- package/dist/adapter-retained-memory/index.d.ts +0 -8
- package/dist/adapter-retained-memory/index.d.ts.map +0 -1
- package/dist/adapter-validation/index.d.ts +0 -43
- package/dist/adapter-validation/index.d.ts.map +0 -1
- package/dist/adapter.js +0 -116
- package/dist/adapter.js.map +0 -1
- package/dist/chunks/collection-CvbjjLf2.js +0 -73
- package/dist/chunks/collection-CvbjjLf2.js.map +0 -1
- package/dist/chunks/core-DchheNDz.js.map +0 -1
- package/dist/chunks/errors-BQI1DEqf.js.map +0 -1
- package/dist/chunks/exceptions-lzD3buFw.js.map +0 -1
- package/dist/chunks/options-CxCT3dZU.js.map +0 -1
- package/dist/custom-runtime-inspection/index.d.ts +0 -2
- package/dist/custom-runtime-inspection/index.d.ts.map +0 -1
- package/dist/custom-runtime-inspection/inspection.d.ts +0 -11
- package/dist/custom-runtime-inspection/inspection.d.ts.map +0 -1
|
@@ -7,7 +7,7 @@ export interface IProjectValidationState {
|
|
|
7
7
|
readonly result: IProjectValidationResult;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Inspects one coherent repository snapshot through universal and
|
|
10
|
+
* Inspects one coherent repository snapshot through universal file and export validation.
|
|
11
11
|
* @param input The untrusted source-neutral reader and optional cancellation signal.
|
|
12
12
|
* @param options The immutable Core configuration snapshot.
|
|
13
13
|
* @returns A promise resolving to the frozen all-or-nothing project inspection result.
|
|
@@ -26,13 +26,12 @@ export interface IProjectValidationState {
|
|
|
26
26
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
27
27
|
* - ABORTED: The repository operation was aborted.
|
|
28
28
|
* - ABORTED: The Core operation was aborted.
|
|
29
|
-
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed during inspection.
|
|
30
29
|
*/
|
|
31
30
|
export declare const validateProjectState: (input: IProjectValidationInput, options: ICoreOptionsSnapshot) => Promise<IProjectValidationState>;
|
|
32
31
|
/**
|
|
33
32
|
* Validates one project without returning canonical document bodies.
|
|
34
33
|
* @param input The source-neutral reader and optional cancellation signal.
|
|
35
|
-
* @param options The immutable
|
|
34
|
+
* @param options The immutable operation limits.
|
|
36
35
|
* @returns A promise resolving to the complete validation result.
|
|
37
36
|
* @throws
|
|
38
37
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
@@ -49,7 +48,6 @@ export declare const validateProjectState: (input: IProjectValidationInput, opti
|
|
|
49
48
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
50
49
|
* - ABORTED: The repository operation was aborted.
|
|
51
50
|
* - ABORTED: The Core operation was aborted.
|
|
52
|
-
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed during inspection.
|
|
53
51
|
*/
|
|
54
52
|
export declare const validateProject: (input: IProjectValidationInput, options: ICoreOptionsSnapshot) => Promise<IProjectValidationResult>;
|
|
55
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-validation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-validation/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGpG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAwEpG,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,aAAa,EAAE,kCAAkC,CAAC;IAC3D,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,uBAAuB,EAC9B,SAAS,oBAAoB,KAC5B,OAAO,CAAC,uBAAuB,CAgCjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,uBAAuB,EAC9B,SAAS,oBAAoB,KAC5B,OAAO,CAAC,wBAAwB,CAAwD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type IRepositoryEntry, type IRepositoryOperationOptions, type IRepositoryPath, type IRepositoryReader } from '@moldea.ai/repository';
|
|
2
2
|
import type { ICoreResourceLimits } from '../contracts/index.js';
|
|
3
|
-
import type { IRuntimeAdapterRepository } from '../adapter/index.js';
|
|
4
3
|
export interface IRepositoryInspectionListOptions extends IRepositoryOperationOptions {
|
|
5
4
|
readonly prefix?: IRepositoryPath;
|
|
6
5
|
}
|
|
@@ -10,14 +9,13 @@ export interface IRepositoryInspectionReader {
|
|
|
10
9
|
readCompleteFile(path: IRepositoryPath, options?: IRepositoryOperationOptions): Promise<Uint8Array>;
|
|
11
10
|
}
|
|
12
11
|
export interface IRepositoryInspectionSession {
|
|
13
|
-
readonly adapterRepository: IRuntimeAdapterRepository;
|
|
14
12
|
readonly reader: IRepositoryInspectionReader;
|
|
15
13
|
/** Returns deterministic logical resource usage for the current validation state. */
|
|
16
14
|
getResourceUsage(): IRepositoryInspectionResourceUsage;
|
|
17
15
|
/**
|
|
18
16
|
* Stops work at an inspection boundary when cancellation was requested.
|
|
19
17
|
* @throws
|
|
20
|
-
* - ABORTED:
|
|
18
|
+
* - ABORTED: The Core operation was aborted.
|
|
21
19
|
*/
|
|
22
20
|
throwIfAborted(): void;
|
|
23
21
|
}
|
|
@@ -34,7 +32,7 @@ export interface IRepositoryInspectionResourceUsage {
|
|
|
34
32
|
* @param signal Optional cancellation shared by every inspection operation.
|
|
35
33
|
* @returns A session that pages source metadata and range-reads bounded canonical files.
|
|
36
34
|
* @throws
|
|
37
|
-
* - ABORTED:
|
|
35
|
+
* - ABORTED: The Core operation was aborted.
|
|
38
36
|
*/
|
|
39
37
|
export declare const createRepositoryInspectionSession: (repository: IRepositoryReader, limits: ICoreResourceLimits, signal?: AbortSignal) => IRepositoryInspectionSession;
|
|
40
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-inspection-session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,gBAAgB,EAErB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-inspection-session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,gBAAgB,EAErB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAcjE,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IACnF,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;CACnC;AAGD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CACN,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACpC,cAAc,CAAC,OAAO,CAAC,EAAE,gCAAgC,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC5F,gBAAgB,CACd,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,UAAU,CAAC,CAAC;CACxB;AAGD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAE7C,qFAAqF;IACrF,gBAAgB,IAAI,kCAAkC,CAAC;IAEvD;;;;OAIG;IACH,cAAc,IAAI,IAAI,CAAC;CACxB;AAGD,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAmGD;;;;;;;;GAQG;AACH,eAAO,MAAM,iCAAiC,GAC5C,YAAY,iBAAiB,EAC7B,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,KACnB,4BAgYF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IRepositoryPath } from '@moldea.ai/repository';
|
|
2
|
+
import type { IBindingCoverage } from '../binding-coverage/index.js';
|
|
2
3
|
import type { ICanonicalDiscoveryResult } from '../canonical-discovery/index.js';
|
|
3
4
|
import type { ICoreResourceLimits } from '../contracts/index.js';
|
|
4
5
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
@@ -12,15 +13,20 @@ import type { IRepositoryInspectionReader } from '../repository-inspection-sessi
|
|
|
12
13
|
* @param discovery Canonical discovery state used to suppress dependent path diagnostics.
|
|
13
14
|
* @param limits The resource limits applied to emitted diagnostics.
|
|
14
15
|
* @param signal Optional cancellation forwarded to exact repository lookups.
|
|
16
|
+
* @param coverage Operation-owned binding coverage populated only for regular files.
|
|
15
17
|
* @returns Deeply immutable deterministic repository-reference diagnostics.
|
|
16
18
|
* @throws
|
|
17
|
-
* - INVALID_REPOSITORY_PATH:
|
|
19
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
20
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
21
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
18
22
|
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
19
23
|
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
20
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during
|
|
21
|
-
* - INVALID_SOURCE_DATA: The repository
|
|
22
|
-
* - RESOURCE_LIMIT_EXCEEDED: A Core
|
|
23
|
-
* -
|
|
24
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
25
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
26
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
27
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
28
|
+
* - ABORTED: The Core operation was aborted.
|
|
29
|
+
* - ABORTED: The repository operation was aborted.
|
|
24
30
|
*/
|
|
25
|
-
export declare const validateRepositoryReferences: (repository: IRepositoryInspectionReader, manifestPath: IRepositoryPath, manifest: IMoldeaManifestV1, discovery: ICanonicalDiscoveryResult, limits: ICoreResourceLimits, signal?: AbortSignal) => Promise<readonly ICoreDiagnostic[]>;
|
|
31
|
+
export declare const validateRepositoryReferences: (repository: IRepositoryInspectionReader, manifestPath: IRepositoryPath, manifest: IMoldeaManifestV1, discovery: ICanonicalDiscoveryResult, limits: ICoreResourceLimits, signal?: AbortSignal, coverage?: IBindingCoverage[]) => Promise<readonly ICoreDiagnostic[]>;
|
|
26
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-reference-validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAMjE,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAMlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-reference-validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAwB,MAAM,8BAA8B,CAAC;AAI3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAMjE,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAMlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AA6Y7F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,4BAA4B,GACvC,YAAY,2BAA2B,EACvC,cAAc,eAAe,EAC7B,UAAU,iBAAiB,EAC3B,WAAW,yBAAyB,EACpC,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,EACpB,WAAU,gBAAgB,EAAO,KAChC,OAAO,CAAC,SAAS,eAAe,EAAE,CAkFpC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
3
|
+
export interface IRetainedMemory {
|
|
4
|
+
reserve(bytes: number): void;
|
|
5
|
+
tryReserve(bytes: number): boolean;
|
|
6
|
+
release(bytes: number): void;
|
|
7
|
+
readSourceFile(path: IRepositoryPath): Promise<{
|
|
8
|
+
bytes: Uint8Array;
|
|
9
|
+
release: () => void;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
/** Registers the sole memory owner for one internal reader. */
|
|
13
|
+
export declare const registerRetainedMemory: (reader: IRepositoryInspectionReader, ledger: IRetainedMemory) => void;
|
|
14
|
+
/** Returns the ledger shared by all phases of a repository inspection. */
|
|
15
|
+
export declare const getRetainedMemory: (reader: IRepositoryInspectionReader) => IRetainedMemory;
|
|
16
|
+
/** Reserves retained coverage in production sessions and leaves standalone file-check readers untracked. */
|
|
17
|
+
export declare const reserveRetainedBytesIfTracked: (reader: IRepositoryInspectionReader, bytes: number) => void;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/retained-memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAG7F,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,UAAU,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;CAC5F;AAID,+DAA+D;AAC/D,eAAO,MAAM,sBAAsB,GACjC,QAAQ,2BAA2B,EACnC,QAAQ,eAAe,KACtB,IAGF,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,GAAI,QAAQ,2BAA2B,KAAG,eAKvE,CAAC;AAEF,4GAA4G;AAC5G,eAAO,MAAM,6BAA6B,GACxC,QAAQ,2BAA2B,EACnC,OAAO,MAAM,KACZ,IAEF,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { IManifestScopeInput, IManifestScopeResult, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, } from '../scope-matching/index.js';
|
|
2
|
+
export { matchManifestScope } from './scope.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,EAC/B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ICoreOptions } from '../contracts/index.js';
|
|
2
|
+
import { type IManifestScopeInput, type IManifestScopeResult } from '../scope-matching/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Matches only the supplied manifest and changed paths, without inspecting source files.
|
|
5
|
+
* @returns A content-free result with deterministic relationship matches.
|
|
6
|
+
* @throws
|
|
7
|
+
* - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.
|
|
8
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
9
|
+
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
10
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
11
|
+
*/
|
|
12
|
+
export declare const matchManifestScope: (input: IManifestScopeInput, options?: ICoreOptions) => Promise<IManifestScopeResult>;
|
|
13
|
+
//# sourceMappingURL=scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/scope/scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,mBAAmB,EAC1B,UAAU,YAAY,KACrB,OAAO,CAAC,oBAAoB,CACuD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeInput, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IManifestScopeResult, } from './types.js';
|
|
2
|
-
export { calculateManifestScopeInputDigest, matchParsedManifestScope } from './matching.js';
|
|
2
|
+
export { calculateManifestScopeInputDigest, matchParsedManifestScope, collectManifestScopeDeclarations, } from './matching.js';
|
|
3
3
|
export { matchManifestScope } from './scope.js';
|
|
4
4
|
export { normalizeManifestScopeInput } from './validations.js';
|
|
5
|
+
export { matchesRepositoryGlob } from './patterns.js';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope-matching/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,EAC/B,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope-matching/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,EAC/B,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,gCAAgC,GACjC,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAG/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { IContentDigest, ICoreResourceLimits } from '../contracts/index.js';
|
|
3
3
|
import type { IMoldeaManifestV1 } from '../format/index.js';
|
|
4
|
-
import type { IManifestScopeCounts, IManifestScopeMatch } from './types.js';
|
|
4
|
+
import type { IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeRelationshipField } from './types.js';
|
|
5
|
+
interface IManifestScopeRelationshipDeclaration {
|
|
6
|
+
readonly owner: IManifestScopeOwner;
|
|
7
|
+
readonly field: IManifestScopeRelationshipField;
|
|
8
|
+
readonly pointer: string;
|
|
9
|
+
readonly declaration: IManifestScopeDeclaration;
|
|
10
|
+
}
|
|
11
|
+
/** Collects every version 1 declaration that can establish changed-path relevance. */
|
|
12
|
+
export declare const collectManifestScopeDeclarations: (manifest: IMoldeaManifestV1) => readonly IManifestScopeRelationshipDeclaration[];
|
|
5
13
|
/** Creates the canonical digest of the sorted unique changed-path set. */
|
|
6
14
|
export declare const calculateManifestScopeInputDigest: (paths: readonly IRepositoryPath[]) => Promise<IContentDigest>;
|
|
7
15
|
/**
|
|
@@ -11,10 +19,11 @@ export declare const calculateManifestScopeInputDigest: (paths: readonly IReposi
|
|
|
11
19
|
* @param limits The immutable Core operation limits.
|
|
12
20
|
* @returns Frozen content-free matches and stable aggregate counts.
|
|
13
21
|
* @throws
|
|
14
|
-
* - RESOURCE_LIMIT_EXCEEDED:
|
|
22
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
15
23
|
*/
|
|
16
24
|
export declare const matchParsedManifestScope: (manifest: IMoldeaManifestV1, paths: readonly IRepositoryPath[], limits: ICoreResourceLimits) => {
|
|
17
25
|
readonly counts: IManifestScopeCounts;
|
|
18
26
|
readonly matches: readonly IManifestScopeMatch[];
|
|
19
27
|
};
|
|
28
|
+
export {};
|
|
20
29
|
//# sourceMappingURL=matching.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matching.d.ts","sourceRoot":"","sources":["../../src/scope-matching/matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjF,OAAO,KAAK,EAEV,iBAAiB,EAKlB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EACV,oBAAoB,
|
|
1
|
+
{"version":3,"file":"matching.d.ts","sourceRoot":"","sources":["../../src/scope-matching/matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjF,OAAO,KAAK,EAEV,iBAAiB,EAKlB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AAIpB,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,+BAA+B,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;CACjD;AAwRD,sFAAsF;AACtF,eAAO,MAAM,gCAAgC,GAC3C,UAAU,iBAAiB,KAC1B,SAAS,qCAAqC,EA0ChD,CAAC;AA2GF,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC,GAC5C,OAAO,SAAS,eAAe,EAAE,KAChC,OAAO,CAAC,cAAc,CAQxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,EAC3B,OAAO,SAAS,eAAe,EAAE,EACjC,QAAQ,mBAAmB,KAC1B;IAAE,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAA;CAmC3F,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
|
+
/** Matches validated simple-glob segments with zero-or-more-segment globstars. */
|
|
3
|
+
export declare const matchesRepositoryGlob: (patternSegments: readonly string[], path: IRepositoryPath) => boolean;
|
|
4
|
+
//# sourceMappingURL=patterns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../src/scope-matching/patterns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAuC7D,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,GAChC,iBAAiB,SAAS,MAAM,EAAE,EAClC,MAAM,eAAe,KACpB,OA2BF,CAAC"}
|
package/dist/scope.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as normalizeCoreOptions, t as createCoreOperationOptionsSnapshot } from "./chunks/options-5x9gu2Qb.js";
|
|
2
|
+
import { t as matchManifestScope$1 } from "./chunks/scope-AGMcHUE_.js";
|
|
3
|
+
//#region src/scope/scope.ts
|
|
4
|
+
/**
|
|
5
|
+
* Matches only the supplied manifest and changed paths, without inspecting source files.
|
|
6
|
+
* @returns A content-free result with deterministic relationship matches.
|
|
7
|
+
* @throws
|
|
8
|
+
* - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.
|
|
9
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
10
|
+
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
11
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
12
|
+
*/
|
|
13
|
+
var matchManifestScope = (input, options) => matchManifestScope$1(input, createCoreOperationOptionsSnapshot(normalizeCoreOptions(options)));
|
|
14
|
+
//#endregion
|
|
15
|
+
export { matchManifestScope };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.js","names":[],"sources":["../src/scope/scope.ts"],"sourcesContent":["import type { ICoreOptions } from '../contracts/index.js';\nimport { normalizeCoreOptions, createCoreOperationOptionsSnapshot } from '../options/index.js';\nimport {\n matchManifestScope as matchScope,\n type IManifestScopeInput,\n type IManifestScopeResult,\n} from '../scope-matching/index.js';\n\n/**\n * Matches only the supplied manifest and changed paths, without inspecting source files.\n * @returns A content-free result with deterministic relationship matches.\n * @throws\n * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.\n * - INVALID_REPOSITORY_PATH: The repository path is invalid.\n * - INVALID_ARGUMENT: The Core operation received an invalid argument.\n * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.\n */\nexport const matchManifestScope = (\n input: IManifestScopeInput,\n options?: ICoreOptions,\n): Promise<IManifestScopeResult> =>\n matchScope(input, createCoreOperationOptionsSnapshot(normalizeCoreOptions(options)));\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAa,sBACX,OACA,YAEA,qBAAW,OAAO,mCAAmC,qBAAqB,OAAO,CAAC,CAAC"}
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
+
import type { IBindingCoverage } from '../binding-coverage/index.js';
|
|
1
2
|
import type { IMoldeaProjectIndex } from '../contracts/index.js';
|
|
2
3
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
3
4
|
import type { IRepositoryFormatVersion } from '../format/index.js';
|
|
4
|
-
import type { IRuntimeManifestLocation } from '../manifest-validation/index.js';
|
|
5
5
|
import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
6
6
|
import type { IRepositoryInspectionSession } from '../repository-inspection-session/index.js';
|
|
7
7
|
export interface IUniversalProjectInspectionResult {
|
|
8
8
|
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
9
9
|
readonly project: IMoldeaProjectIndex | null;
|
|
10
10
|
readonly diagnostics: readonly ICoreDiagnostic[];
|
|
11
|
-
readonly
|
|
11
|
+
readonly coverage: readonly IBindingCoverage[];
|
|
12
12
|
}
|
|
13
13
|
export interface IUniversalProjectInspectionContext {
|
|
14
14
|
readonly session: IRepositoryInspectionSession;
|
|
15
15
|
readonly signal?: AbortSignal;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Executes every universal repository-format phase
|
|
18
|
+
* Executes every universal repository-format phase with syntax-only export checks.
|
|
19
19
|
* @param context The shared inspection session and optional cancellation signal.
|
|
20
20
|
* @param options The immutable Core configuration snapshot.
|
|
21
21
|
* @returns The frozen provisional index only when no universal diagnostic remains.
|
|
22
22
|
* @throws
|
|
23
|
-
* - INVALID_REPOSITORY_PATH:
|
|
24
|
-
* - ENTRY_NOT_FOUND:
|
|
25
|
-
* - ENTRY_NOT_FILE:
|
|
26
|
-
* - ENTRY_NOT_DIRECTORY:
|
|
23
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
24
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
25
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
26
|
+
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
27
27
|
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
28
28
|
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
29
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during
|
|
30
|
-
* - INVALID_SOURCE_DATA: The repository
|
|
31
|
-
* - RESOURCE_LIMIT_EXCEEDED: A Core
|
|
32
|
-
* -
|
|
29
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
30
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
31
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
32
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
33
|
+
* - ABORTED: The Core operation was aborted.
|
|
34
|
+
* - ABORTED: The repository operation was aborted.
|
|
33
35
|
*/
|
|
34
36
|
export declare const inspectUniversalProject: (context: IUniversalProjectInspectionContext, options: ICoreOptionsSnapshot) => Promise<IUniversalProjectInspectionResult>;
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/universal-project-inspection/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/universal-project-inspection/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAoB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAMnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAQnE,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGpG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAS9F,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,aAAa,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACxD,QAAQ,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;IACjD,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAChD;AAGD,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,OAAO,EAAE,4BAA4B,CAAC;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAWD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,GAClC,SAAS,kCAAkC,EAC3C,SAAS,oBAAoB,KAC5B,OAAO,CAAC,iCAAiC,CAgL3C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ICoreResourceLimits } from '../contracts/index.js';
|
|
2
|
+
import type { ICoreDiagnostic, ICoreWarningCode } from '../diagnostics/index.js';
|
|
3
|
+
import type { IAcceptedWarningManifestEntry } from '../format/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Applies explicit manifest acceptances only to checks that completed, retaining all findings.
|
|
6
|
+
* @returns Normalized diagnostics with acceptance flags, reasons, and obsolete-acceptance warnings.
|
|
7
|
+
* @throws
|
|
8
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
9
|
+
*/
|
|
10
|
+
export declare const applyWarningAcceptances: (diagnostics: readonly ICoreDiagnostic[], entries: readonly IAcceptedWarningManifestEntry[], completed: ReadonlySet<ICoreWarningCode>, limits: ICoreResourceLimits) => readonly ICoreDiagnostic[];
|
|
11
|
+
//# sourceMappingURL=acceptance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptance.d.ts","sourceRoot":"","sources":["../../src/warning-acceptance/acceptance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAKjE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAMxE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,eAAe,EAAE,EACvC,SAAS,SAAS,6BAA6B,EAAE,EACjD,WAAW,WAAW,CAAC,gBAAgB,CAAC,EACxC,QAAQ,mBAAmB,KAC1B,SAAS,eAAe,EAkC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/warning-acceptance/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moldea.ai/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Source-neutral, deterministic interpretation and indexing of moldea repositories.",
|
|
5
5
|
"homepage": "https://github.com/moldea-ai/packages/tree/main/projects/core#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"types": "./dist/node/index.d.ts",
|
|
35
35
|
"import": "./dist/node.js"
|
|
36
36
|
},
|
|
37
|
-
"./
|
|
38
|
-
"types": "./dist/
|
|
39
|
-
"import": "./dist/
|
|
37
|
+
"./scope": {
|
|
38
|
+
"types": "./dist/scope/index.d.ts",
|
|
39
|
+
"import": "./dist/scope.js"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"main": "./dist/index.js",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@moldea.ai/repository": "^2.0.0",
|
|
50
50
|
"error-message-utils": "1.2.11",
|
|
51
|
-
"yaml": "2.9.0"
|
|
51
|
+
"yaml": "2.9.0",
|
|
52
|
+
"typescript": "6.0.3"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@types/node": "22.20.1",
|
|
55
|
-
"typescript": "6.0.3",
|
|
56
56
|
"vite": "8.2.1",
|
|
57
57
|
"vitest": "4.1.10"
|
|
58
58
|
},
|
package/dist/adapter/index.d.ts
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import type { IRepositoryEntry, IRepositoryEntryPage, IRepositoryEntryPageOptions, IRepositoryFilePage, IRepositoryFilePageOptions, IRepositoryOperationOptions, IRepositoryPath, IRepositorySnapshot } from '@moldea.ai/repository';
|
|
2
|
-
import type { IIndexedAgent, IIndexedDescriptionAsset } from '../contracts/index.js';
|
|
3
|
-
import type { IRuntimeAdapterOutputBudget } from '../adapter-result-collection/index.js';
|
|
4
|
-
import type { IAdapterDiagnostic, IDiagnosticDetails } from '../diagnostics/index.js';
|
|
5
|
-
import type { IRepositoryFormatVersion, IRepositoryReference } from '../format/index.js';
|
|
6
|
-
export interface IRuntimeAdapter {
|
|
7
|
-
readonly id: string;
|
|
8
|
-
readonly supportedRepositoryFormatVersions: readonly IRepositoryFormatVersion[];
|
|
9
|
-
/**
|
|
10
|
-
* Inspects the trusted provisional project through the supplied budget-aware reader.
|
|
11
|
-
* @param context The immutable agent closure, reader, and cancellation signal.
|
|
12
|
-
* @returns A promise resolving to deterministic evidence and adapter diagnostics.
|
|
13
|
-
* @throws
|
|
14
|
-
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
15
|
-
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
16
|
-
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
17
|
-
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
18
|
-
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
19
|
-
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
20
|
-
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
21
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
22
|
-
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
23
|
-
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
24
|
-
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
25
|
-
* - ABORTED: The repository operation was aborted.
|
|
26
|
-
* - ABORTED: The Core operation was aborted.
|
|
27
|
-
*/
|
|
28
|
-
inspect(context: IRuntimeAdapterContext): Promise<IRuntimeAdapterResult>;
|
|
29
|
-
}
|
|
30
|
-
export interface IRuntimeAdapterContext {
|
|
31
|
-
readonly agent: IIndexedAgent;
|
|
32
|
-
readonly outputBudget: IRuntimeAdapterOutputBudget;
|
|
33
|
-
readonly repository: IRuntimeAdapterRepository;
|
|
34
|
-
readonly signal?: AbortSignal;
|
|
35
|
-
/**
|
|
36
|
-
* Resolves one exact same-runtime manifest agent binding without exposing an agent index.
|
|
37
|
-
* @param reference The runtime-agent source reference to match exactly.
|
|
38
|
-
* @returns The absent, ambiguous, or content-minimal matched agent result.
|
|
39
|
-
*/
|
|
40
|
-
resolveAgent(reference: IRepositoryReference): IRuntimeAdapterAgentResolution;
|
|
41
|
-
}
|
|
42
|
-
export interface IRuntimeAdapterResolvedAgent {
|
|
43
|
-
readonly declaration: IIndexedAgent['declaration'];
|
|
44
|
-
readonly description: IIndexedDescriptionAsset;
|
|
45
|
-
readonly handoffDescription: IIndexedDescriptionAsset | null;
|
|
46
|
-
readonly id: string;
|
|
47
|
-
}
|
|
48
|
-
export type IRuntimeAdapterAgentResolution = {
|
|
49
|
-
readonly kind: 'absent';
|
|
50
|
-
} | {
|
|
51
|
-
readonly candidateCount: number;
|
|
52
|
-
readonly kind: 'ambiguous';
|
|
53
|
-
} | {
|
|
54
|
-
readonly agent: IRuntimeAdapterResolvedAgent;
|
|
55
|
-
readonly kind: 'matched';
|
|
56
|
-
};
|
|
57
|
-
export interface IRuntimeAdapterRepository {
|
|
58
|
-
readonly limits: IRuntimeAdapterRepositoryLimits;
|
|
59
|
-
readonly snapshot: IRepositorySnapshot;
|
|
60
|
-
/**
|
|
61
|
-
* Looks up one exact logical path without following symlinks.
|
|
62
|
-
* @param path The validated repository-logical path.
|
|
63
|
-
* @param options Optional cancellation controls.
|
|
64
|
-
* @returns The detached entry or `null` when it is absent.
|
|
65
|
-
* @throws
|
|
66
|
-
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
67
|
-
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
68
|
-
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
69
|
-
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
70
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
71
|
-
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
72
|
-
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
73
|
-
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
74
|
-
* - ABORTED: The repository operation was aborted.
|
|
75
|
-
* - ABORTED: The Core operation was aborted.
|
|
76
|
-
*/
|
|
77
|
-
getEntry(path: IRepositoryPath, options?: IRepositoryOperationOptions): Promise<IRepositoryEntry | null>;
|
|
78
|
-
/**
|
|
79
|
-
* Returns one deterministic bounded descendant page.
|
|
80
|
-
* @param options The prefix, keyset cursor, page bound, and cancellation controls.
|
|
81
|
-
* @returns One immutable source-bound page and continuation state.
|
|
82
|
-
* @throws
|
|
83
|
-
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
84
|
-
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
85
|
-
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
86
|
-
* - INVALID_PAGE_REQUEST: The repository page request is invalid.
|
|
87
|
-
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
88
|
-
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
89
|
-
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
90
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
91
|
-
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
92
|
-
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
93
|
-
* - ABORTED: The repository operation was aborted.
|
|
94
|
-
*/
|
|
95
|
-
listEntriesPage(options: IRepositoryEntryPageOptions): Promise<IRepositoryEntryPage>;
|
|
96
|
-
/**
|
|
97
|
-
* Reads one bounded regular-file byte range without following symlinks.
|
|
98
|
-
* @param path The validated repository-logical file path.
|
|
99
|
-
* @param options The offset, byte bound, and cancellation controls.
|
|
100
|
-
* @returns One detached source-bound byte page and continuation offset.
|
|
101
|
-
* @throws
|
|
102
|
-
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
103
|
-
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
104
|
-
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
105
|
-
* - INVALID_PAGE_REQUEST: The repository page request is invalid.
|
|
106
|
-
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
107
|
-
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
108
|
-
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
109
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
110
|
-
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
111
|
-
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
112
|
-
* - ABORTED: The repository operation was aborted.
|
|
113
|
-
*/
|
|
114
|
-
readFilePage(path: IRepositoryPath, options: IRepositoryFilePageOptions): Promise<IRepositoryFilePage>;
|
|
115
|
-
}
|
|
116
|
-
export interface IRuntimeAdapterRepositoryLimits {
|
|
117
|
-
readonly maxEntries: number;
|
|
118
|
-
readonly maxFileBytes: number;
|
|
119
|
-
readonly maxPageBytes: number;
|
|
120
|
-
readonly maxPageEntries: number;
|
|
121
|
-
readonly maxTotalBytesRead: number;
|
|
122
|
-
}
|
|
123
|
-
export type IRuntimeAdapterEvidenceKind = 'runtime-package' | 'language' | 'agent-definition' | 'instruction-loader' | 'schema' | 'tool-registration' | 'skill-registration' | 'handoff-registration' | 'variable-provider' | 'runtime-pattern';
|
|
124
|
-
export interface IRuntimeAdapterEvidence {
|
|
125
|
-
readonly source: string;
|
|
126
|
-
readonly kind: IRuntimeAdapterEvidenceKind;
|
|
127
|
-
readonly agentId: string | null;
|
|
128
|
-
readonly capabilityKind: 'tool' | 'skill' | null;
|
|
129
|
-
readonly capabilityId: string | null;
|
|
130
|
-
readonly runtimeName: string | null;
|
|
131
|
-
readonly references: readonly IRepositoryReference[];
|
|
132
|
-
readonly details: IDiagnosticDetails;
|
|
133
|
-
}
|
|
134
|
-
export interface IRuntimeAdapterResult {
|
|
135
|
-
readonly evidence: readonly IRuntimeAdapterEvidence[];
|
|
136
|
-
readonly diagnostics: readonly IAdapterDiagnostic[];
|
|
137
|
-
}
|
|
138
|
-
export type { IAdapterDiagnostic, IAdapterErrorDiagnostic, IAdapterWarningDiagnostic, IUnverifiedRelationship, IUnverifiedRelationshipDetails, } from '../diagnostics/index.js';
|
|
139
|
-
export type { IIndexedAgent, IIndexedContextAsset, IIndexedDecision, IIndexedDescriptionAsset, IIndexedManifest, IIndexedMirror, IIndexedRuntimeGuidance, IIndexedTextAsset, } from '../contracts/index.js';
|
|
140
|
-
export { iterateRuntimeAdapterEntries, readRuntimeAdapterFile, } from '../adapter-repository/index.js';
|
|
141
|
-
export type { IRuntimeAdapterOutputBudget, IRuntimeAdapterRecordCollector, IRuntimeAdapterResultCollector, } from '../adapter-result-collection/index.js';
|
|
142
|
-
export { createRuntimeAdapterResultCollector } from '../adapter-result-collection/index.js';
|
|
143
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
2
|
-
import type { IRepositoryFormatVersion } from '../format/index.js';
|
|
3
|
-
import type { IRuntimeManifestLocation } from '../manifest-validation/index.js';
|
|
4
|
-
import type { ICoreOptionsSnapshot } from '../options/index.js';
|
|
5
|
-
/**
|
|
6
|
-
* Validates adapter availability and format support before any runtime adapter runs.
|
|
7
|
-
* @param locations The recognized runtime declarations retained from manifest parsing.
|
|
8
|
-
* @param formatVersion The active repository-format version.
|
|
9
|
-
* @param options The immutable Core adapter registry and limits.
|
|
10
|
-
* @returns Frozen deterministic preflight diagnostics.
|
|
11
|
-
* @throws
|
|
12
|
-
* - RESOURCE_LIMIT_EXCEEDED: The raw Core diagnostic limit was exceeded.
|
|
13
|
-
*/
|
|
14
|
-
export declare const validateRuntimeAdapterAvailability: (locations: readonly IRuntimeManifestLocation[], formatVersion: IRepositoryFormatVersion, options: ICoreOptionsSnapshot) => readonly ICoreDiagnostic[];
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-availability/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,GAC7C,WAAW,SAAS,wBAAwB,EAAE,EAC9C,eAAe,wBAAwB,EACvC,SAAS,oBAAoB,KAC5B,SAAS,eAAe,EAkC1B,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { IRuntimeAdapterEvidence } from '../adapter/index.js';
|
|
2
|
-
import type { IMoldeaProjectIndex } from '../contracts/index.js';
|
|
3
|
-
import type { IAdapterDiagnostic } from '../diagnostics/index.js';
|
|
4
|
-
import type { ICoreOptionsSnapshot } from '../options/index.js';
|
|
5
|
-
import type { IRepositoryInspectionSession } from '../repository-inspection-session/index.js';
|
|
6
|
-
export interface IRuntimeAdapterInspectionResult {
|
|
7
|
-
readonly evidence: readonly IRuntimeAdapterEvidence[];
|
|
8
|
-
readonly diagnostics: readonly IAdapterDiagnostic[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Invokes every applicable configured adapter in canonical ID order.
|
|
12
|
-
* @param project The complete frozen universal project index.
|
|
13
|
-
* @param session The shared inspection reader, cache, and resource budget.
|
|
14
|
-
* @param options The immutable Core adapter registry and resource limits.
|
|
15
|
-
* @param signal Optional cancellation shared by the complete inspection.
|
|
16
|
-
* @returns A promise resolving to normalized evidence and adapter diagnostics.
|
|
17
|
-
* @throws
|
|
18
|
-
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
19
|
-
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
20
|
-
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
21
|
-
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
22
|
-
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
23
|
-
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
24
|
-
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
25
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
26
|
-
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
27
|
-
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
28
|
-
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
29
|
-
* - ABORTED: The repository operation was aborted.
|
|
30
|
-
* - ABORTED: The Core operation was aborted.
|
|
31
|
-
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed during inspection.
|
|
32
|
-
*/
|
|
33
|
-
export declare const inspectRuntimeAdapters: (project: IMoldeaProjectIndex, session: IRepositoryInspectionSession, options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IRuntimeAdapterInspectionResult>;
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-execution/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,uBAAuB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,OAAO,KAAK,EAAE,oBAAoB,EAA2B,MAAM,qBAAqB,CAAC;AAEzF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAG9F,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACrD;AA2ID;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,mBAAmB,EAC5B,SAAS,4BAA4B,EACrC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,+BAA+B,CA6CzC,CAAC"}
|