@moldea.ai/core 2.1.0 → 3.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.
Files changed (53) hide show
  1. package/README.md +38 -98
  2. package/dist/adapter/index.d.ts +97 -14
  3. package/dist/adapter/index.d.ts.map +1 -1
  4. package/dist/adapter-execution/index.d.ts.map +1 -1
  5. package/dist/adapter-repository/index.d.ts +9 -0
  6. package/dist/adapter-repository/index.d.ts.map +1 -0
  7. package/dist/adapter-validation/index.d.ts +2 -3
  8. package/dist/adapter-validation/index.d.ts.map +1 -1
  9. package/dist/adapter.js +93 -0
  10. package/dist/adapter.js.map +1 -0
  11. package/dist/agent-assets/index.d.ts +2 -2
  12. package/dist/agent-assets/index.d.ts.map +1 -1
  13. package/dist/canonical-content-page/index.d.ts +5 -0
  14. package/dist/canonical-content-page/index.d.ts.map +1 -0
  15. package/dist/canonical-discovery/index.d.ts +3 -2
  16. package/dist/canonical-discovery/index.d.ts.map +1 -1
  17. package/dist/chunks/exceptions-DWsZTpqs.js +71 -0
  18. package/dist/chunks/exceptions-DWsZTpqs.js.map +1 -0
  19. package/dist/contracts/index.d.ts +129 -6
  20. package/dist/contracts/index.d.ts.map +1 -1
  21. package/dist/core/index.d.ts.map +1 -1
  22. package/dist/decision/index.d.ts +1 -1
  23. package/dist/decision/index.d.ts.map +1 -1
  24. package/dist/decision-graph/index.d.ts +3 -2
  25. package/dist/decision-graph/index.d.ts.map +1 -1
  26. package/dist/exceptions/index.d.ts +2 -2
  27. package/dist/exceptions/index.d.ts.map +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +688 -228
  31. package/dist/index.js.map +1 -1
  32. package/dist/manifest/index.d.ts +1 -1
  33. package/dist/manifest/index.d.ts.map +1 -1
  34. package/dist/mirrors/index.d.ts +3 -2
  35. package/dist/mirrors/index.d.ts.map +1 -1
  36. package/dist/project-assets/index.d.ts +4 -3
  37. package/dist/project-assets/index.d.ts.map +1 -1
  38. package/dist/project-inspection-page/index.d.ts +5 -0
  39. package/dist/project-inspection-page/index.d.ts.map +1 -0
  40. package/dist/project-metadata/index.d.ts +6 -0
  41. package/dist/project-metadata/index.d.ts.map +1 -0
  42. package/dist/{project-inspection → project-validation}/index.d.ts +8 -2
  43. package/dist/project-validation/index.d.ts.map +1 -0
  44. package/dist/repository-inspection-session/index.d.ts +13 -3
  45. package/dist/repository-inspection-session/index.d.ts.map +1 -1
  46. package/dist/repository-reference-validation/index.d.ts +3 -2
  47. package/dist/repository-reference-validation/index.d.ts.map +1 -1
  48. package/dist/repository-text/index.d.ts +3 -2
  49. package/dist/repository-text/index.d.ts.map +1 -1
  50. package/dist/runtime-guidance/index.d.ts +3 -2
  51. package/dist/runtime-guidance/index.d.ts.map +1 -1
  52. package/package.json +2 -2
  53. package/dist/project-inspection/index.d.ts.map +0 -1
@@ -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" | "match-manifest-scope" | "inspect-project">) => Promise<IManifestDocumentInspectionResult>;
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.
@@ -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,oBAA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;;;;;;;;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"}
@@ -1,8 +1,9 @@
1
- import type { IRepositoryPath, IRepositoryReader } from '@moldea.ai/repository';
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: IRepositoryReader, manifestPath: IRepositoryPath, agents: readonly IInspectedAgentAssets[], options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IMirrorInspectionResult>;
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,EACf,iBAAiB,EAClB,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;AAIpG,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;AAqHD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,GACzB,YAAY,iBAAiB,EAC7B,cAAc,eAAe,EAC7B,QAAQ,SAAS,qBAAqB,EAAE,EACxC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,uBAAuB,CA2CjC,CAAC"}
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, IRepositoryReader } from '@moldea.ai/repository';
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: IRepositoryReader, path: IRepositoryPath | null, options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IProjectFileInspectionResult>;
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: IRepositoryReader, manifest: IMoldeaManifestV1 | null, discovery: ICanonicalDiscoveryResult, options: ICoreOptionsSnapshot, signal?: AbortSignal, projectFile?: IProjectFileInspectionResult) => Promise<IProjectAssetInspectionResult>;
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,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,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,M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,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 { IProjectInspectionInput, IProjectInspectionResult } from '../contracts/index.js';
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 inspectProject: (input: IProjectInspectionInput, options: ICoreOptionsSnapshot) => Promise<IProjectInspectionResult>;
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 reader: IRepositoryReader;
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 frozen session whose reader owns inspection-local budgets and byte caching.
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,EAUL,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,MAAM,EAAE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AAW,KACnB,4BAyZF,CAAC"}
@@ -1,8 +1,9 @@
1
- import { type IRepositoryPath, type IRepositoryReader } from '@moldea.ai/repository';
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: IRepositoryReader, manifestPath: IRepositoryPath, manifest: IMoldeaManifestV1, discovery: ICanonicalDiscoveryResult, limits: ICoreResourceLimits, signal?: AbortSignal) => Promise<readonly ICoreDiagnostic[]>;
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,EACpB,KAAK,iBAAiB,EACvB,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;AAqX5B;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B,GACvC,YAAY,iBAAiB,EAC7B,cAAc,eAAe,EAC7B,UAAU,iBAAiB,EAC3B,WAAW,yBAAyB,EACpC,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,SAAS,eAAe,EAAE,CA2BpC,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,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, type IRepositoryReader } from '@moldea.ai/repository';
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: IRepositoryReader, path: IRepositoryPath, limits: ICoreResourceLimits, signal?: AbortSignal) => Promise<IRepositoryTextResult>;
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,EAEL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAK/D,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,iBAAiB,EAC7B,MAAM,eAAe,EACrB,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,qBAAqB,CA8B/B,CAAC"}
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, IRepositoryReader } from '@moldea.ai/repository';
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: IRepositoryReader, manifestPath: IRepositoryPath, manifest: IMoldeaManifestV1 | null, discovery: ICanonicalDiscoveryResult, options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IRuntimeGuidanceResult>;
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,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,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;AAIpG,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,iBAAiB,EAC7B,cAAc,eAAe,EAC7B,UAAU,iBAAiB,GAAG,IAAI,EAClC,WAAW,yBAAyB,EACpC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,sBAAsB,CAsDhC,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moldea.ai/core",
3
- "version": "2.1.0",
3
+ "version": "3.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": {
@@ -38,7 +38,7 @@
38
38
  "main": "./dist/index.js",
39
39
  "types": "./dist/index.d.ts",
40
40
  "dependencies": {
41
- "@moldea.ai/repository": ">=1.1.1",
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"}