@moldea.ai/core 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -86
- package/dist/adapter/index.d.ts +97 -14
- package/dist/adapter/index.d.ts.map +1 -1
- package/dist/adapter-execution/index.d.ts.map +1 -1
- package/dist/adapter-repository/index.d.ts +9 -0
- package/dist/adapter-repository/index.d.ts.map +1 -0
- package/dist/adapter-validation/index.d.ts +2 -3
- package/dist/adapter-validation/index.d.ts.map +1 -1
- package/dist/adapter.js +93 -0
- package/dist/adapter.js.map +1 -0
- package/dist/agent-assets/index.d.ts +2 -2
- package/dist/agent-assets/index.d.ts.map +1 -1
- package/dist/canonical-content-page/index.d.ts +5 -0
- package/dist/canonical-content-page/index.d.ts.map +1 -0
- package/dist/canonical-discovery/index.d.ts +3 -2
- package/dist/canonical-discovery/index.d.ts.map +1 -1
- package/dist/chunks/exceptions-DWsZTpqs.js +71 -0
- package/dist/chunks/exceptions-DWsZTpqs.js.map +1 -0
- package/dist/contracts/index.d.ts +140 -6
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/decision/index.d.ts +1 -1
- package/dist/decision/index.d.ts.map +1 -1
- package/dist/decision-graph/index.d.ts +3 -2
- package/dist/decision-graph/index.d.ts.map +1 -1
- package/dist/exceptions/index.d.ts +2 -2
- package/dist/exceptions/index.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1164 -318
- package/dist/index.js.map +1 -1
- package/dist/manifest/index.d.ts +2 -2
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/mirrors/index.d.ts +3 -2
- package/dist/mirrors/index.d.ts.map +1 -1
- package/dist/project-assets/index.d.ts +4 -3
- package/dist/project-assets/index.d.ts.map +1 -1
- package/dist/project-inspection-page/index.d.ts +5 -0
- package/dist/project-inspection-page/index.d.ts.map +1 -0
- package/dist/project-metadata/index.d.ts +6 -0
- package/dist/project-metadata/index.d.ts.map +1 -0
- package/dist/{project-inspection → project-validation}/index.d.ts +8 -2
- package/dist/project-validation/index.d.ts.map +1 -0
- package/dist/repository-inspection-session/index.d.ts +13 -3
- package/dist/repository-inspection-session/index.d.ts.map +1 -1
- package/dist/repository-reference-validation/index.d.ts +3 -2
- package/dist/repository-reference-validation/index.d.ts.map +1 -1
- package/dist/repository-text/index.d.ts +3 -2
- package/dist/repository-text/index.d.ts.map +1 -1
- package/dist/runtime-guidance/index.d.ts +3 -2
- package/dist/runtime-guidance/index.d.ts.map +1 -1
- package/dist/scope-matching/index.d.ts +5 -0
- package/dist/scope-matching/index.d.ts.map +1 -0
- package/dist/scope-matching/matching.d.ts +20 -0
- package/dist/scope-matching/matching.d.ts.map +1 -0
- package/dist/scope-matching/scope.d.ts +14 -0
- package/dist/scope-matching/scope.d.ts.map +1 -0
- package/dist/scope-matching/types.d.ts +48 -0
- package/dist/scope-matching/types.d.ts.map +1 -0
- package/dist/scope-matching/validations.d.ts +21 -0
- package/dist/scope-matching/validations.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/project-inspection/index.d.ts.map +0 -1
package/dist/manifest/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface IManifestDocumentInspectionResult extends IManifestParseResult
|
|
|
17
17
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
18
18
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
19
19
|
*/
|
|
20
|
-
export declare const inspectManifestDocument: (input: ITextDocumentInput, options: ICoreOptionsSnapshot, operation?: Extract<ICoreOperation, "parse-manifest" | "
|
|
20
|
+
export declare const inspectManifestDocument: (input: ITextDocumentInput, options: ICoreOptionsSnapshot, operation?: Extract<ICoreOperation, "parse-manifest" | "match-manifest-scope" | "validate-project">) => Promise<IManifestDocumentInspectionResult>;
|
|
21
21
|
/**
|
|
22
22
|
* Parses and validates one complete version 1 manifest document.
|
|
23
23
|
* @param input The canonical logical path and exact manifest text or bytes.
|
|
@@ -28,5 +28,5 @@ export declare const inspectManifestDocument: (input: ITextDocumentInput, option
|
|
|
28
28
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
29
29
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
30
30
|
*/
|
|
31
|
-
export declare const parseManifestDocument: (input: ITextDocumentInput, options: ICoreOptionsSnapshot) => Promise<IManifestParseResult>;
|
|
31
|
+
export declare const parseManifestDocument: (input: ITextDocumentInput, options: ICoreOptionsSnapshot, operation?: Extract<ICoreOperation, "parse-manifest" | "match-manifest-scope">) => Promise<IManifestParseResult>;
|
|
32
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,KAAK,EAEV,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,iCAAiC,CAAC;AAMzC,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB;IAC7E,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,kBAAkB,EACzB,SAAS,oBAAoB,EAC7B,YAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,KAAK,EAEV,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,iCAAiC,CAAC;AAMzC,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB;IAC7E,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,kBAAkB,EACzB,SAAS,oBAAoB,EAC7B,YAAW,OAAO,CAChB,cAAc,EACd,gBAAgB,GAAG,sBAAsB,GAAG,kBAAkB,CAC5C,KACnB,OAAO,CAAC,iCAAiC,CA8D3C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,kBAAkB,EACzB,SAAS,oBAAoB,EAC7B,YAAW,OAAO,CAAC,cAAc,EAAE,gBAAgB,GAAG,sBAAsB,CAAoB,KAC/F,OAAO,CAAC,oBAAoB,CAS9B,CAAC"}
|
package/dist/mirrors/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { IRepositoryPath
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { IInspectedAgentAssets } from '../agent-assets/index.js';
|
|
3
3
|
import type { IIndexedMirror } from '../contracts/index.js';
|
|
4
4
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
5
5
|
import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
6
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
6
7
|
export interface IAgentMirrorInspection {
|
|
7
8
|
readonly id: string;
|
|
8
9
|
readonly mirrors: readonly IIndexedMirror[];
|
|
@@ -31,5 +32,5 @@ export interface IMirrorInspectionResult {
|
|
|
31
32
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
32
33
|
* - ABORTED: Mirror inspection or a repository operation was aborted.
|
|
33
34
|
*/
|
|
34
|
-
export declare const inspectMirrors: (repository:
|
|
35
|
+
export declare const inspectMirrors: (repository: IRepositoryInspectionReader, manifestPath: IRepositoryPath, agents: readonly IInspectedAgentAssets[], options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IMirrorInspectionResult>;
|
|
35
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mirrors/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mirrors/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,uBAAuB,CAAC;AAM/E,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,yBAAyB,CAAC;AAGpF,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAI7F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACzD,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD;AAuHD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,GACzB,YAAY,2BAA2B,EACvC,cAAc,eAAe,EAC7B,QAAQ,SAAS,qBAAqB,EAAE,EACxC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,uBAAuB,CA2CjC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { IRepositoryPath
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { ICanonicalDiscoveryResult } from '../canonical-discovery/index.js';
|
|
3
3
|
import type { IIndexedContextAsset, IIndexedTextAsset } from '../contracts/index.js';
|
|
4
4
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
5
5
|
import type { IMoldeaManifestV1 } from '../format/index.js';
|
|
6
6
|
import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
7
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
7
8
|
export interface IProjectAssetInspectionResult {
|
|
8
9
|
readonly valid: boolean;
|
|
9
10
|
readonly project: IIndexedTextAsset | null;
|
|
@@ -32,7 +33,7 @@ export interface IProjectFileInspectionResult {
|
|
|
32
33
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
33
34
|
* - ABORTED: Project inspection or the repository read was aborted.
|
|
34
35
|
*/
|
|
35
|
-
export declare const readProjectFile: (repository:
|
|
36
|
+
export declare const readProjectFile: (repository: IRepositoryInspectionReader, path: IRepositoryPath | null, options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IProjectFileInspectionResult>;
|
|
36
37
|
/**
|
|
37
38
|
* Reads the project foundation and every discovered focused-context asset.
|
|
38
39
|
* @param repository The coherent source-neutral reader for the active inspection session.
|
|
@@ -52,5 +53,5 @@ export declare const readProjectFile: (repository: IRepositoryReader, path: IRep
|
|
|
52
53
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
53
54
|
* - ABORTED: Project asset inspection or a repository operation was aborted.
|
|
54
55
|
*/
|
|
55
|
-
export declare const readProjectAssets: (repository:
|
|
56
|
+
export declare const readProjectAssets: (repository: IRepositoryInspectionReader, manifest: IMoldeaManifestV1 | null, discovery: ICanonicalDiscoveryResult, options: ICoreOptionsSnapshot, signal?: AbortSignal, projectFile?: IProjectFileInspectionResult) => Promise<IProjectAssetInspectionResult>;
|
|
56
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAKrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAI7F,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAClD,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD;AAGD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD;AAWD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,GAC1B,YAAY,2BAA2B,EACvC,MAAM,eAAe,GAAG,IAAI,EAC5B,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,4BAA4B,CAyBtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,2BAA2B,EACvC,UAAU,iBAAiB,GAAG,IAAI,EAClC,WAAW,yBAAyB,EACpC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,EACpB,cAAc,4BAA4B,KACzC,OAAO,CAAC,6BAA6B,CAoCvC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IProjectInspectionPageInput, IProjectInspectionPageResult } from '../contracts/index.js';
|
|
2
|
+
import type { ICoreOptionsSnapshot } from '../options/index.js';
|
|
3
|
+
/** Returns one bounded content-free view over a completely validated project snapshot. */
|
|
4
|
+
export declare const inspectProjectPage: (input: IProjectInspectionPageInput, options: ICoreOptionsSnapshot) => Promise<IProjectInspectionPageResult>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-inspection-page/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,2BAA2B,EAE3B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA+JhE,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,GAC7B,OAAO,2BAA2B,EAClC,SAAS,oBAAoB,KAC5B,OAAO,CAAC,4BAA4B,CA2FtC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IMoldeaProjectIndex, IProjectMetadataItem, IProjectValidationSummary } from '../contracts/index.js';
|
|
2
|
+
/** Collects deterministic content-free asset metadata from one validated project. */
|
|
3
|
+
export declare const collectProjectMetadata: (project: IMoldeaProjectIndex) => readonly IProjectMetadataItem[];
|
|
4
|
+
/** Creates the content-free summary for one validated project snapshot. */
|
|
5
|
+
export declare const createProjectSummary: (project: IMoldeaProjectIndex) => IProjectValidationSummary;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAwB/B,qFAAqF;AACrF,eAAO,MAAM,sBAAsB,GACjC,SAAS,mBAAmB,KAC3B,SAAS,oBAAoB,EA2C/B,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,GAAI,SAAS,mBAAmB,KAAG,yBAc5B,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IMoldeaProjectIndex, IProjectValidationInput, IProjectValidationResult } from '../contracts/index.js';
|
|
2
2
|
import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
3
|
+
export interface IProjectValidationState {
|
|
4
|
+
readonly project: IMoldeaProjectIndex | null;
|
|
5
|
+
readonly result: IProjectValidationResult;
|
|
6
|
+
}
|
|
3
7
|
/**
|
|
4
8
|
* Inspects one coherent repository snapshot through universal and adapter validation.
|
|
5
9
|
* @param input The untrusted source-neutral reader and optional cancellation signal.
|
|
@@ -19,5 +23,7 @@ import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
|
19
23
|
* - ABORTED: Project inspection or a repository operation was aborted.
|
|
20
24
|
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed or returned an invalid result.
|
|
21
25
|
*/
|
|
22
|
-
export declare const
|
|
26
|
+
export declare const validateProjectState: (input: IProjectValidationInput, options: ICoreOptionsSnapshot) => Promise<IProjectValidationState>;
|
|
27
|
+
/** Validates one project without returning canonical document bodies. */
|
|
28
|
+
export declare const validateProject: (input: IProjectValidationInput, options: ICoreOptionsSnapshot) => Promise<IProjectValidationResult>;
|
|
23
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-validation/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA0EpG,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,uBAAuB,EAC9B,SAAS,oBAAoB,KAC5B,OAAO,CAAC,uBAAuB,CAuEjC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,eAAe,GAC1B,OAAO,uBAAuB,EAC9B,SAAS,oBAAoB,KAC5B,OAAO,CAAC,wBAAwB,CAAwD,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { type IRepositoryReader } from '@moldea.ai/repository';
|
|
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
|
+
export interface IRepositoryInspectionListOptions extends IRepositoryOperationOptions {
|
|
5
|
+
readonly prefix?: IRepositoryPath;
|
|
6
|
+
}
|
|
7
|
+
export interface IRepositoryInspectionReader {
|
|
8
|
+
getEntry(path: IRepositoryPath, options?: IRepositoryOperationOptions): Promise<IRepositoryEntry | null>;
|
|
9
|
+
iterateEntries(options?: IRepositoryInspectionListOptions): AsyncIterable<IRepositoryEntry>;
|
|
10
|
+
readCompleteFile(path: IRepositoryPath, options?: IRepositoryOperationOptions): Promise<Uint8Array>;
|
|
11
|
+
}
|
|
3
12
|
export interface IRepositoryInspectionSession {
|
|
4
|
-
readonly
|
|
13
|
+
readonly adapterRepository: IRuntimeAdapterRepository;
|
|
14
|
+
readonly reader: IRepositoryInspectionReader;
|
|
5
15
|
/**
|
|
6
16
|
* Stops work at an inspection boundary when cancellation was requested.
|
|
7
17
|
* @throws
|
|
@@ -14,7 +24,7 @@ export interface IRepositoryInspectionSession {
|
|
|
14
24
|
* @param repository The source-neutral reader bound to one coherent snapshot.
|
|
15
25
|
* @param limits The immutable resource limits for the inspection.
|
|
16
26
|
* @param signal Optional cancellation shared by every inspection operation.
|
|
17
|
-
* @returns A
|
|
27
|
+
* @returns A session that pages source metadata and range-reads bounded canonical files.
|
|
18
28
|
* @throws
|
|
19
29
|
* - ABORTED: Repository inspection was aborted before the session was created.
|
|
20
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-inspection-session/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AASrE,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,iBAAiB,EAAE,yBAAyB,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAE7C;;;;OAIG;IACH,cAAc,IAAI,IAAI,CAAC;CACxB;AA4FD;;;;;;;;GAQG;AACH,eAAO,MAAM,iCAAiC,GAC5C,YAAY,iBAAiB,EAC7B,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,KACnB,4BAyZF,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type IRepositoryPath
|
|
1
|
+
import { type IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { ICanonicalDiscoveryResult } from '../canonical-discovery/index.js';
|
|
3
3
|
import type { ICoreResourceLimits } from '../contracts/index.js';
|
|
4
4
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
5
5
|
import type { IMoldeaManifestV1 } from '../format/index.js';
|
|
6
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
6
7
|
/**
|
|
7
8
|
* Validates every manifest repository reference, binding, and exact impact path.
|
|
8
9
|
* @param repository The budget-aware reader for the active inspection session.
|
|
@@ -21,5 +22,5 @@ import type { IMoldeaManifestV1 } from '../format/index.js';
|
|
|
21
22
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
22
23
|
* - ABORTED: Repository inspection or a repository lookup was aborted.
|
|
23
24
|
*/
|
|
24
|
-
export declare const validateRepositoryReferences: (repository:
|
|
25
|
+
export declare const validateRepositoryReferences: (repository: IRepositoryInspectionReader, manifestPath: IRepositoryPath, manifest: IMoldeaManifestV1, discovery: ICanonicalDiscoveryResult, limits: ICoreResourceLimits, signal?: AbortSignal) => Promise<readonly ICoreDiagnostic[]>;
|
|
25
26
|
//# 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,
|
|
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;AAqX7F;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B,GACvC,YAAY,2BAA2B,EACvC,cAAc,eAAe,EAC7B,UAAU,iBAAiB,EAC3B,WAAW,yBAAyB,EACpC,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,SAAS,eAAe,EAAE,CA2BpC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { type IRepositoryPath
|
|
1
|
+
import { type IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { ICoreResourceLimits, IIndexedTextAsset } from '../contracts/index.js';
|
|
3
3
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
4
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
4
5
|
export interface IRepositoryTextResult {
|
|
5
6
|
readonly valid: boolean;
|
|
6
7
|
readonly asset: IIndexedTextAsset | null;
|
|
@@ -23,5 +24,5 @@ export interface IRepositoryTextResult {
|
|
|
23
24
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
24
25
|
* - ABORTED: Repository inspection or the repository read was aborted.
|
|
25
26
|
*/
|
|
26
|
-
export declare const readRepositoryTextAsset: (repository:
|
|
27
|
+
export declare const readRepositoryTextAsset: (repository: IRepositoryInspectionReader, path: IRepositoryPath, limits: ICoreResourceLimits, signal?: AbortSignal) => Promise<IRepositoryTextResult>;
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAI7F,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD;AAWD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,GAClC,YAAY,2BAA2B,EACvC,MAAM,eAAe,EACrB,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,qBAAqB,CAiC/B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { IRepositoryPath
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { ICanonicalDiscoveryResult } from '../canonical-discovery/index.js';
|
|
3
3
|
import type { IIndexedRuntimeGuidance } from '../contracts/index.js';
|
|
4
4
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
5
5
|
import type { IMoldeaManifestV1 } from '../format/index.js';
|
|
6
6
|
import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
7
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
7
8
|
export interface IRuntimeGuidanceResult {
|
|
8
9
|
readonly valid: boolean;
|
|
9
10
|
readonly runtimes: readonly IIndexedRuntimeGuidance[];
|
|
@@ -28,5 +29,5 @@ export interface IRuntimeGuidanceResult {
|
|
|
28
29
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
29
30
|
* - ABORTED: Guidance inspection or a repository operation was aborted.
|
|
30
31
|
*/
|
|
31
|
-
export declare const readRuntimeGuidance: (repository:
|
|
32
|
+
export declare const readRuntimeGuidance: (repository: IRepositoryInspectionReader, manifestPath: IRepositoryPath, manifest: IMoldeaManifestV1 | null, discovery: ICanonicalDiscoveryResult, options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IRuntimeGuidanceResult>;
|
|
32
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime-guidance/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime-guidance/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAMrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAI7F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD;AA8BD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,2BAA2B,EACvC,cAAc,eAAe,EAC7B,UAAU,iBAAiB,GAAG,IAAI,EAClC,WAAW,yBAAyB,EACpC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,sBAAsB,CAsDhC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeInput, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IManifestScopeResult, } from './types.js';
|
|
2
|
+
export { calculateManifestScopeInputDigest, matchParsedManifestScope } from './matching.js';
|
|
3
|
+
export { matchManifestScope } from './scope.js';
|
|
4
|
+
export { normalizeManifestScopeInput } from './validations.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
|
+
import type { IContentDigest, ICoreResourceLimits } from '../contracts/index.js';
|
|
3
|
+
import type { IMoldeaManifestV1 } from '../format/index.js';
|
|
4
|
+
import type { IManifestScopeCounts, IManifestScopeMatch } from './types.js';
|
|
5
|
+
/** Creates the canonical digest of the sorted unique changed-path set. */
|
|
6
|
+
export declare const calculateManifestScopeInputDigest: (paths: readonly IRepositoryPath[]) => Promise<IContentDigest>;
|
|
7
|
+
/**
|
|
8
|
+
* Matches normalized changed paths against one valid version 1 manifest.
|
|
9
|
+
* @param manifest The parsed and validated manifest value.
|
|
10
|
+
* @param paths Sorted unique repository-logical changed paths.
|
|
11
|
+
* @param limits The immutable Core operation limits.
|
|
12
|
+
* @returns Frozen content-free matches and stable aggregate counts.
|
|
13
|
+
* @throws
|
|
14
|
+
* - RESOURCE_LIMIT_EXCEEDED: The declaration or match count exceeded `maxEntries`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const matchParsedManifestScope: (manifest: IMoldeaManifestV1, paths: readonly IRepositoryPath[], limits: ICoreResourceLimits) => {
|
|
17
|
+
readonly counts: IManifestScopeCounts;
|
|
18
|
+
readonly matches: readonly IManifestScopeMatch[];
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=matching.d.ts.map
|
|
@@ -0,0 +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,EAEpB,mBAAmB,EAGpB,MAAM,YAAY,CAAC;AAqfpB,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,14 @@
|
|
|
1
|
+
import type { ICoreOptionsSnapshot } from '../options/index.js';
|
|
2
|
+
import type { IManifestScopeInput, IManifestScopeResult } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Parses a manifest and matches its repository relationships against changed logical paths.
|
|
5
|
+
* @param input The canonical manifest document and untrusted changed-path collection.
|
|
6
|
+
* @param options The immutable Core operation options.
|
|
7
|
+
* @returns A promise resolving to frozen content-free scope metadata and matches.
|
|
8
|
+
* @throws
|
|
9
|
+
* - INVALID_REPOSITORY_PATH: The manifest path or a changed repository path is invalid.
|
|
10
|
+
* - INVALID_ARGUMENT: The scope operation received an invalid argument.
|
|
11
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
12
|
+
*/
|
|
13
|
+
export declare const matchManifestScope: (input: IManifestScopeInput, options: ICoreOptionsSnapshot) => Promise<IManifestScopeResult>;
|
|
14
|
+
//# sourceMappingURL=scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/scope-matching/scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAKhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAG5E;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,mBAAmB,EAC1B,SAAS,oBAAoB,KAC5B,OAAO,CAAC,oBAAoB,CAkC9B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { IRepositoryPath } from '@moldea.ai/repository';
|
|
2
|
+
import type { IContentDigest, ITextDocumentInput } from '../contracts/index.js';
|
|
3
|
+
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
4
|
+
export type IManifestScopeOwnerKind = 'agent' | 'context' | 'decision' | 'skill' | 'tool' | 'unresolved';
|
|
5
|
+
export type IManifestScopeRelationshipField = 'affectedBy' | 'bindings' | 'implementation' | 'inputSchema' | 'instructionLoader' | 'mirrors' | 'outputSchema' | 'registration' | 'related' | 'runtimeAgent' | 'variableProvider';
|
|
6
|
+
export interface IManifestScopeOwner {
|
|
7
|
+
readonly kind: IManifestScopeOwnerKind;
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly agentId: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface IExactManifestScopeDeclaration {
|
|
12
|
+
readonly kind: 'exact';
|
|
13
|
+
readonly path: IRepositoryPath;
|
|
14
|
+
readonly symbol: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface IGlobManifestScopeDeclaration {
|
|
17
|
+
readonly kind: 'glob';
|
|
18
|
+
readonly pattern: string;
|
|
19
|
+
}
|
|
20
|
+
export type IManifestScopeDeclaration = IExactManifestScopeDeclaration | IGlobManifestScopeDeclaration;
|
|
21
|
+
export interface IManifestScopeMatch {
|
|
22
|
+
readonly inputPath: IRepositoryPath;
|
|
23
|
+
readonly owner: IManifestScopeOwner;
|
|
24
|
+
readonly field: IManifestScopeRelationshipField;
|
|
25
|
+
readonly pointer: string;
|
|
26
|
+
readonly declaration: IManifestScopeDeclaration;
|
|
27
|
+
}
|
|
28
|
+
export interface IManifestScopeCounts {
|
|
29
|
+
readonly declarations: number;
|
|
30
|
+
readonly inputPaths: number;
|
|
31
|
+
readonly matchedOwners: number;
|
|
32
|
+
readonly matchedPaths: number;
|
|
33
|
+
readonly matches: number;
|
|
34
|
+
}
|
|
35
|
+
export interface IManifestScopeInput {
|
|
36
|
+
readonly manifest: ITextDocumentInput;
|
|
37
|
+
readonly paths: readonly string[];
|
|
38
|
+
}
|
|
39
|
+
export interface IManifestScopeResult {
|
|
40
|
+
readonly valid: boolean;
|
|
41
|
+
readonly relevant: boolean;
|
|
42
|
+
readonly manifestDigest: IContentDigest | null;
|
|
43
|
+
readonly inputDigest: IContentDigest;
|
|
44
|
+
readonly counts: IManifestScopeCounts;
|
|
45
|
+
readonly matches: readonly IManifestScopeMatch[];
|
|
46
|
+
readonly diagnostics: readonly ICoreDiagnostic[];
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/scope-matching/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D,MAAM,MAAM,uBAAuB,GACjC,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;AAGrE,MAAM,MAAM,+BAA+B,GACvC,YAAY,GACZ,UAAU,GACV,gBAAgB,GAChB,aAAa,GACb,mBAAmB,GACnB,SAAS,GACT,cAAc,GACd,cAAc,GACd,SAAS,GACT,cAAc,GACd,kBAAkB,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,yBAAyB,GACnC,8BAA8B,GAAG,6BAA6B,CAAC;AAGjE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACpC,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;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type IRepositoryPath } from '@moldea.ai/repository';
|
|
2
|
+
import type { ICoreResourceLimits, ITextDocumentInput } from '../contracts/index.js';
|
|
3
|
+
import type { IManifestScopeInput } from './types.js';
|
|
4
|
+
/** Measures scalar UTF-8 bytes without allocating an encoded copy. */
|
|
5
|
+
export declare const measureUtf8ByteLength: (value: string) => number;
|
|
6
|
+
export interface INormalizedManifestScopeInput {
|
|
7
|
+
readonly manifest: ITextDocumentInput;
|
|
8
|
+
readonly paths: readonly IRepositoryPath[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Validates and snapshots one public manifest-scope input.
|
|
12
|
+
* @param input The untrusted manifest document and changed logical paths.
|
|
13
|
+
* @param limits The immutable Core resource limits.
|
|
14
|
+
* @returns The detached manifest input and sorted unique repository paths.
|
|
15
|
+
* @throws
|
|
16
|
+
* - INVALID_REPOSITORY_PATH: A changed repository path is invalid.
|
|
17
|
+
* - INVALID_ARGUMENT: The scope operation received an invalid argument.
|
|
18
|
+
* - RESOURCE_LIMIT_EXCEEDED: The changed-path count or byte budget was exceeded.
|
|
19
|
+
*/
|
|
20
|
+
export declare const normalizeManifestScopeInput: (input: IManifestScopeInput, limits: ICoreResourceLimits) => INormalizedManifestScopeInput;
|
|
21
|
+
//# sourceMappingURL=validations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../src/scope-matching/validations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlF,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAuBtD,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,KAAG,MASrD,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;CAC5C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,mBAAmB,EAC1B,QAAQ,mBAAmB,KAC1B,6BAsCF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moldea.ai/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"main": "./dist/index.js",
|
|
39
39
|
"types": "./dist/index.d.ts",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@moldea.ai/repository": "
|
|
41
|
+
"@moldea.ai/repository": "2.0.0",
|
|
42
42
|
"error-message-utils": "1.2.11",
|
|
43
43
|
"yaml": "2.9.0"
|
|
44
44
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/project-inspection/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAG/F,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAgEpG;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,uBAAuB,EAC9B,SAAS,oBAAoB,KAC5B,OAAO,CAAC,wBAAwB,CAyDlC,CAAC"}
|