@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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Exception } from "error-message-utils";
|
|
2
|
+
//#region src/exceptions/index.ts
|
|
3
|
+
var CONFIGURATION_ERROR_MESSAGES = {
|
|
4
|
+
DUPLICATE_ADAPTER_ID: "A runtime adapter ID is registered more than once.",
|
|
5
|
+
INVALID_ADAPTER_DEFINITION: "A runtime adapter definition is invalid.",
|
|
6
|
+
INVALID_RESOURCE_LIMIT: "A Core resource limit is invalid.",
|
|
7
|
+
RESERVED_ADAPTER_ID: "A reserved runtime adapter ID was supplied."
|
|
8
|
+
};
|
|
9
|
+
var OPERATION_ERROR_MESSAGES = {
|
|
10
|
+
ABORTED: "The Core operation was aborted.",
|
|
11
|
+
ADAPTER_EXECUTION_FAILED: "A runtime adapter failed during inspection.",
|
|
12
|
+
CONTENT_INVALID: "The canonical content is not valid UTF-8 text.",
|
|
13
|
+
INVALID_ARGUMENT: "The Core operation received an invalid argument.",
|
|
14
|
+
RESOURCE_LIMIT_EXCEEDED: "A Core resource limit was exceeded."
|
|
15
|
+
};
|
|
16
|
+
var OPERATION_ERROR_RETRYABILITY = {
|
|
17
|
+
ABORTED: true,
|
|
18
|
+
ADAPTER_EXECUTION_FAILED: false,
|
|
19
|
+
CONTENT_INVALID: false,
|
|
20
|
+
INVALID_ARGUMENT: false,
|
|
21
|
+
RESOURCE_LIMIT_EXCEEDED: false
|
|
22
|
+
};
|
|
23
|
+
var attachCause = (exception, cause) => {
|
|
24
|
+
if (cause === void 0) return;
|
|
25
|
+
Object.defineProperty(exception, "cause", {
|
|
26
|
+
configurable: true,
|
|
27
|
+
enumerable: false,
|
|
28
|
+
value: cause,
|
|
29
|
+
writable: false
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
/** Represents invalid immutable Core configuration. */
|
|
33
|
+
var CoreConfigurationException = class extends Exception {
|
|
34
|
+
code;
|
|
35
|
+
operation;
|
|
36
|
+
adapterId;
|
|
37
|
+
/** Creates a configuration exception with safe adapter metadata. */
|
|
38
|
+
constructor(options) {
|
|
39
|
+
super(CONFIGURATION_ERROR_MESSAGES[options.code], options.code);
|
|
40
|
+
this.code = options.code;
|
|
41
|
+
this.name = "CoreConfigurationException";
|
|
42
|
+
this.operation = options.operation;
|
|
43
|
+
this.adapterId = options.adapterId ?? null;
|
|
44
|
+
attachCause(this, options.cause);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
/** Represents an operational failure that prevented Core from completing. */
|
|
48
|
+
var CoreOperationException = class extends Exception {
|
|
49
|
+
code;
|
|
50
|
+
operation;
|
|
51
|
+
retryable;
|
|
52
|
+
adapterId;
|
|
53
|
+
agentId;
|
|
54
|
+
limit;
|
|
55
|
+
/** Creates an operation exception with derived retry and safe scope metadata. */
|
|
56
|
+
constructor(options) {
|
|
57
|
+
super(OPERATION_ERROR_MESSAGES[options.code], options.code);
|
|
58
|
+
this.code = options.code;
|
|
59
|
+
this.name = "CoreOperationException";
|
|
60
|
+
this.operation = options.operation;
|
|
61
|
+
this.retryable = OPERATION_ERROR_RETRYABILITY[options.code];
|
|
62
|
+
this.adapterId = options.adapterId ?? null;
|
|
63
|
+
this.agentId = options.agentId ?? null;
|
|
64
|
+
this.limit = options.limit ?? null;
|
|
65
|
+
attachCause(this, options.cause);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { CoreOperationException as n, CoreConfigurationException as t };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=exceptions-DWsZTpqs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exceptions-DWsZTpqs.js","names":[],"sources":["../../src/exceptions/index.ts"],"sourcesContent":["import { Exception } from 'error-message-utils';\n\n// stable configuration and operation failure codes\nexport type ICoreConfigurationErrorCode =\n | 'DUPLICATE_ADAPTER_ID'\n | 'RESERVED_ADAPTER_ID'\n | 'INVALID_ADAPTER_DEFINITION'\n | 'INVALID_RESOURCE_LIMIT';\n\nexport type ICoreOperationErrorCode =\n | 'INVALID_ARGUMENT'\n | 'ABORTED'\n | 'RESOURCE_LIMIT_EXCEEDED'\n | 'ADAPTER_EXECUTION_FAILED'\n | 'CONTENT_INVALID';\n\nexport type ICoreOperation =\n | 'create-core'\n | 'normalize-text'\n | 'calculate-content-digest'\n | 'parse-manifest'\n | 'match-manifest-scope'\n | 'parse-decision'\n | 'inspect-project-page'\n | 'read-canonical-content-page'\n | 'validate-project'\n | 'validate-adapter';\n\n// safe construction options for exported Core exceptions\nexport interface ICoreConfigurationExceptionOptions {\n readonly code: ICoreConfigurationErrorCode;\n readonly operation: ICoreOperation;\n readonly adapterId?: string;\n readonly cause?: unknown;\n}\n\nexport interface ICoreOperationExceptionOptions {\n readonly code: ICoreOperationErrorCode;\n readonly operation: ICoreOperation;\n readonly adapterId?: string;\n readonly agentId?: string;\n readonly limit?: string;\n readonly cause?: unknown;\n}\n\nconst CONFIGURATION_ERROR_MESSAGES = {\n DUPLICATE_ADAPTER_ID: 'A runtime adapter ID is registered more than once.',\n INVALID_ADAPTER_DEFINITION: 'A runtime adapter definition is invalid.',\n INVALID_RESOURCE_LIMIT: 'A Core resource limit is invalid.',\n RESERVED_ADAPTER_ID: 'A reserved runtime adapter ID was supplied.',\n} as const satisfies Readonly<Record<ICoreConfigurationErrorCode, string>>;\n\nconst OPERATION_ERROR_MESSAGES = {\n ABORTED: 'The Core operation was aborted.',\n ADAPTER_EXECUTION_FAILED: 'A runtime adapter failed during inspection.',\n CONTENT_INVALID: 'The canonical content is not valid UTF-8 text.',\n INVALID_ARGUMENT: 'The Core operation received an invalid argument.',\n RESOURCE_LIMIT_EXCEEDED: 'A Core resource limit was exceeded.',\n} as const satisfies Readonly<Record<ICoreOperationErrorCode, string>>;\n\nconst OPERATION_ERROR_RETRYABILITY = {\n ABORTED: true,\n ADAPTER_EXECUTION_FAILED: false,\n CONTENT_INVALID: false,\n INVALID_ARGUMENT: false,\n RESOURCE_LIMIT_EXCEEDED: false,\n} as const satisfies Readonly<Record<ICoreOperationErrorCode, boolean>>;\n\nconst attachCause = (exception: Error, cause: unknown): void => {\n if (cause === undefined) {\n return;\n }\n\n Object.defineProperty(exception, 'cause', {\n configurable: true,\n enumerable: false,\n value: cause,\n writable: false,\n });\n};\n\n/** Represents invalid immutable Core configuration. */\nexport class CoreConfigurationException extends Exception {\n public override readonly code: ICoreConfigurationErrorCode;\n\n public readonly operation: ICoreOperation;\n\n public readonly adapterId: string | null;\n\n /** Creates a configuration exception with safe adapter metadata. */\n public constructor(options: ICoreConfigurationExceptionOptions) {\n super(CONFIGURATION_ERROR_MESSAGES[options.code], options.code);\n this.code = options.code;\n this.name = 'CoreConfigurationException';\n this.operation = options.operation;\n this.adapterId = options.adapterId ?? null;\n attachCause(this, options.cause);\n }\n}\n\n/** Represents an operational failure that prevented Core from completing. */\nexport class CoreOperationException extends Exception {\n public override readonly code: ICoreOperationErrorCode;\n\n public readonly operation: ICoreOperation;\n\n public readonly retryable: boolean;\n\n public readonly adapterId: string | null;\n\n public readonly agentId: string | null;\n\n public readonly limit: string | null;\n\n /** Creates an operation exception with derived retry and safe scope metadata. */\n public constructor(options: ICoreOperationExceptionOptions) {\n super(OPERATION_ERROR_MESSAGES[options.code], options.code);\n this.code = options.code;\n this.name = 'CoreOperationException';\n this.operation = options.operation;\n this.retryable = OPERATION_ERROR_RETRYABILITY[options.code];\n this.adapterId = options.adapterId ?? null;\n this.agentId = options.agentId ?? null;\n this.limit = options.limit ?? null;\n attachCause(this, options.cause);\n }\n}\n"],"mappings":";;AA6CA,IAAM,+BAA+B;CACnC,sBAAsB;CACtB,4BAA4B;CAC5B,wBAAwB;CACxB,qBAAqB;AACvB;AAEA,IAAM,2BAA2B;CAC/B,SAAS;CACT,0BAA0B;CAC1B,iBAAiB;CACjB,kBAAkB;CAClB,yBAAyB;AAC3B;AAEA,IAAM,+BAA+B;CACnC,SAAS;CACT,0BAA0B;CAC1B,iBAAiB;CACjB,kBAAkB;CAClB,yBAAyB;AAC3B;AAEA,IAAM,eAAe,WAAkB,UAAyB;CAC9D,IAAI,UAAU,KAAA,GACZ;CAGF,OAAO,eAAe,WAAW,SAAS;EACxC,cAAc;EACd,YAAY;EACZ,OAAO;EACP,UAAU;CACZ,CAAC;AACH;;AAGA,IAAa,6BAAb,cAAgD,UAAU;CACxD;CAEA;CAEA;;CAGA,YAAmB,SAA6C;EAC9D,MAAM,6BAA6B,QAAQ,OAAO,QAAQ,IAAI;EAC9D,KAAK,OAAO,QAAQ;EACpB,KAAK,OAAO;EACZ,KAAK,YAAY,QAAQ;EACzB,KAAK,YAAY,QAAQ,aAAa;EACtC,YAAY,MAAM,QAAQ,KAAK;CACjC;AACF;;AAGA,IAAa,yBAAb,cAA4C,UAAU;CACpD;CAEA;CAEA;CAEA;CAEA;CAEA;;CAGA,YAAmB,SAAyC;EAC1D,MAAM,yBAAyB,QAAQ,OAAO,QAAQ,IAAI;EAC1D,KAAK,OAAO,QAAQ;EACpB,KAAK,OAAO;EACZ,KAAK,YAAY,QAAQ;EACzB,KAAK,YAAY,6BAA6B,QAAQ;EACtD,KAAK,YAAY,QAAQ,aAAa;EACtC,KAAK,UAAU,QAAQ,WAAW;EAClC,KAAK,QAAQ,QAAQ,SAAS;EAC9B,YAAY,MAAM,QAAQ,KAAK;CACjC;AACF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { IRepositoryPath, IRepositoryReader } from '@moldea.ai/repository';
|
|
1
|
+
import type { IRepositoryPath, IRepositoryReader, IRepositorySnapshot } from '@moldea.ai/repository';
|
|
2
2
|
import type { IRuntimeAdapter, IRuntimeAdapterEvidence } from '../adapter/index.js';
|
|
3
3
|
import type { ICoreDiagnostic, IDiagnostic } from '../diagnostics/index.js';
|
|
4
4
|
import type { IAgentManifestEntry, IMoldeaManifestV1, IParsedDecision, IRelationshipManifestEntry, IRepositoryFormatVersion, IUnresolvedRequirementManifestEntry } from '../format/index.js';
|
|
5
|
+
import type { IManifestScopeInput, IManifestScopeResult } from '../scope-matching/types.js';
|
|
5
6
|
export interface ICoreResourceLimits {
|
|
6
7
|
readonly maxEntries: number;
|
|
7
8
|
readonly maxTotalBytesRead: number;
|
|
@@ -50,17 +51,101 @@ export interface IDecisionParseResult {
|
|
|
50
51
|
readonly decision: IParsedDecision | null;
|
|
51
52
|
readonly diagnostics: readonly ICoreDiagnostic[];
|
|
52
53
|
}
|
|
53
|
-
export interface
|
|
54
|
+
export interface IProjectValidationInput {
|
|
54
55
|
readonly repository: IRepositoryReader;
|
|
55
56
|
readonly signal?: AbortSignal;
|
|
56
57
|
}
|
|
57
|
-
export
|
|
58
|
+
export type IProjectMetadataKind = 'agent-description' | 'agent-handoff-description' | 'agent-instruction' | 'context' | 'decision' | 'manifest' | 'mirror' | 'project' | 'runtime-guidance';
|
|
59
|
+
export interface IProjectMetadataItem {
|
|
60
|
+
readonly agentId: string | null;
|
|
61
|
+
readonly byteLength: number;
|
|
62
|
+
readonly canonicalDigest: IContentDigest | null;
|
|
63
|
+
readonly decisionId: string | null;
|
|
64
|
+
readonly digest: IContentDigest;
|
|
65
|
+
readonly kind: IProjectMetadataKind;
|
|
66
|
+
readonly path: IRepositoryPath;
|
|
67
|
+
readonly scalarLength: number | null;
|
|
68
|
+
}
|
|
69
|
+
export type IProjectInspectionView = 'all' | 'diagnostics' | 'evidence' | 'metadata';
|
|
70
|
+
export interface IProjectInspectionPageInput extends IProjectValidationInput {
|
|
71
|
+
readonly cursor?: string;
|
|
72
|
+
readonly maxItems: number;
|
|
73
|
+
readonly view: IProjectInspectionView;
|
|
74
|
+
}
|
|
75
|
+
export type IProjectInspectionItem = {
|
|
76
|
+
readonly diagnostic: IDiagnostic;
|
|
77
|
+
readonly kind: 'diagnostic';
|
|
78
|
+
} | {
|
|
79
|
+
readonly evidence: IRuntimeAdapterEvidence;
|
|
80
|
+
readonly kind: 'evidence';
|
|
81
|
+
} | {
|
|
82
|
+
readonly kind: 'metadata';
|
|
83
|
+
readonly metadata: IProjectMetadataItem;
|
|
84
|
+
};
|
|
85
|
+
export interface IProjectInspectionPageRecord {
|
|
86
|
+
readonly item: IProjectInspectionItem;
|
|
87
|
+
readonly nextCursor: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface IProjectInspectionPage {
|
|
90
|
+
readonly isComplete: boolean;
|
|
91
|
+
readonly records: readonly IProjectInspectionPageRecord[];
|
|
92
|
+
readonly nextCursor: string | null;
|
|
93
|
+
readonly totalItems: number;
|
|
94
|
+
}
|
|
95
|
+
export interface IProjectSummaryCounts {
|
|
96
|
+
readonly agents: number;
|
|
97
|
+
readonly context: number;
|
|
98
|
+
readonly decisions: number;
|
|
99
|
+
readonly mirrors: number;
|
|
100
|
+
readonly runtimes: number;
|
|
101
|
+
readonly unresolved: number;
|
|
102
|
+
}
|
|
103
|
+
export interface IProjectValidationSummary {
|
|
104
|
+
readonly counts: IProjectSummaryCounts;
|
|
105
|
+
readonly manifestDigest: IContentDigest;
|
|
106
|
+
readonly manifestPath: IRepositoryPath;
|
|
107
|
+
readonly projectDigest: IContentDigest;
|
|
108
|
+
readonly projectPath: IRepositoryPath;
|
|
109
|
+
}
|
|
110
|
+
export interface IProjectValidationResult {
|
|
58
111
|
readonly valid: boolean;
|
|
59
112
|
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
60
|
-
readonly
|
|
113
|
+
readonly summary: IProjectValidationSummary | null;
|
|
114
|
+
readonly source: IRepositorySnapshot;
|
|
61
115
|
readonly evidence: readonly IRuntimeAdapterEvidence[];
|
|
62
116
|
readonly diagnostics: readonly IDiagnostic[];
|
|
63
117
|
}
|
|
118
|
+
export interface IProjectInspectionCounts extends IProjectSummaryCounts {
|
|
119
|
+
readonly diagnostics: number;
|
|
120
|
+
readonly evidence: number;
|
|
121
|
+
readonly metadata: number;
|
|
122
|
+
}
|
|
123
|
+
export interface IProjectInspectionPageResult {
|
|
124
|
+
readonly counts: IProjectInspectionCounts;
|
|
125
|
+
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
126
|
+
readonly inspectionDigest: string;
|
|
127
|
+
readonly page: IProjectInspectionPage;
|
|
128
|
+
readonly source: IRepositorySnapshot;
|
|
129
|
+
readonly summary: IProjectValidationSummary | null;
|
|
130
|
+
readonly valid: boolean;
|
|
131
|
+
readonly view: IProjectInspectionView;
|
|
132
|
+
}
|
|
133
|
+
export interface ICanonicalContentPageInput extends IProjectValidationInput {
|
|
134
|
+
readonly maxBytes: number;
|
|
135
|
+
readonly offset: number;
|
|
136
|
+
readonly path: IRepositoryPath;
|
|
137
|
+
}
|
|
138
|
+
export interface ICanonicalContentPageResult {
|
|
139
|
+
readonly byteEnd: number;
|
|
140
|
+
readonly byteStart: number;
|
|
141
|
+
readonly content: string;
|
|
142
|
+
readonly contentIdentity: string | null;
|
|
143
|
+
readonly isComplete: boolean;
|
|
144
|
+
readonly nextOffset: number | null;
|
|
145
|
+
readonly path: IRepositoryPath;
|
|
146
|
+
readonly source: IRepositorySnapshot;
|
|
147
|
+
readonly totalBytes: number;
|
|
148
|
+
}
|
|
64
149
|
export interface IIndexedTextAsset {
|
|
65
150
|
readonly path: IRepositoryPath;
|
|
66
151
|
readonly content: string;
|
|
@@ -86,8 +171,10 @@ export interface IIndexedRuntimeGuidance {
|
|
|
86
171
|
}
|
|
87
172
|
export interface IIndexedMirror {
|
|
88
173
|
readonly path: IRepositoryPath;
|
|
174
|
+
readonly byteLength: number;
|
|
89
175
|
readonly digest: IContentDigest;
|
|
90
176
|
readonly canonicalDigest: IContentDigest;
|
|
177
|
+
readonly scalarLength: number;
|
|
91
178
|
}
|
|
92
179
|
export interface IIndexedAgent {
|
|
93
180
|
readonly id: string;
|
|
@@ -144,6 +231,16 @@ export interface ICore {
|
|
|
144
231
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
145
232
|
*/
|
|
146
233
|
parseManifest(input: ITextDocumentInput): Promise<IManifestParseResult>;
|
|
234
|
+
/**
|
|
235
|
+
* Matches changed repository paths against one complete version 1 manifest document.
|
|
236
|
+
* @param input The canonical manifest document and repository-logical changed paths.
|
|
237
|
+
* @returns A promise resolving to frozen content-free relationship matches and stable metadata.
|
|
238
|
+
* @throws
|
|
239
|
+
* - INVALID_REPOSITORY_PATH: The manifest path or a changed repository path is invalid.
|
|
240
|
+
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
241
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
242
|
+
*/
|
|
243
|
+
matchManifestScope(input: IManifestScopeInput): Promise<IManifestScopeResult>;
|
|
147
244
|
/**
|
|
148
245
|
* Parses and validates one complete decision document.
|
|
149
246
|
* @param input The canonical logical path and exact decision text or bytes.
|
|
@@ -154,10 +251,47 @@ export interface ICore {
|
|
|
154
251
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
155
252
|
*/
|
|
156
253
|
parseDecision(input: ITextDocumentInput): Promise<IDecisionParseResult>;
|
|
254
|
+
/**
|
|
255
|
+
* Returns one bounded content-free view over a validated project snapshot.
|
|
256
|
+
* @param input The reader, view, page size, optional cursor, and cancellation signal.
|
|
257
|
+
* @returns A promise resolving to one immutable metadata, diagnostic, or evidence page.
|
|
258
|
+
* @throws
|
|
259
|
+
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
260
|
+
* - INVALID_REPOSITORY_PATH: A repository path is invalid.
|
|
261
|
+
* - ENTRY_NOT_FOUND: A discovered file disappeared from the reader snapshot.
|
|
262
|
+
* - ENTRY_NOT_FILE: A discovered file changed type during inspection.
|
|
263
|
+
* - ENTRY_NOT_DIRECTORY: A discovered directory changed type during inspection.
|
|
264
|
+
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
265
|
+
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
266
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during inspection.
|
|
267
|
+
* - INVALID_SOURCE_DATA: The repository reader returned invalid contract data.
|
|
268
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
269
|
+
* - ABORTED: Project inspection or a repository operation was aborted.
|
|
270
|
+
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed or returned an invalid result.
|
|
271
|
+
*/
|
|
272
|
+
inspectProjectPage(input: IProjectInspectionPageInput): Promise<IProjectInspectionPageResult>;
|
|
273
|
+
/**
|
|
274
|
+
* Reads one explicit canonical file range without materializing the complete file.
|
|
275
|
+
* @param input The reader, canonical path, byte range, and optional cancellation signal.
|
|
276
|
+
* @returns A promise resolving to one immutable Unicode-safe content page.
|
|
277
|
+
* @throws
|
|
278
|
+
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
279
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
280
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
281
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
282
|
+
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
283
|
+
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
284
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
285
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
286
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
287
|
+
* - ABORTED: The Core or repository operation was aborted.
|
|
288
|
+
* - CONTENT_INVALID: The canonical content is not valid UTF-8 text.
|
|
289
|
+
*/
|
|
290
|
+
readCanonicalContentPage(input: ICanonicalContentPageInput): Promise<ICanonicalContentPageResult>;
|
|
157
291
|
/**
|
|
158
292
|
* Inspects one coherent repository snapshot through universal and configured adapter validation.
|
|
159
293
|
* @param input The source-neutral reader and optional shared cancellation signal.
|
|
160
|
-
* @returns A promise resolving to the frozen
|
|
294
|
+
* @returns A promise resolving to the frozen content-free project validation result.
|
|
161
295
|
* @throws
|
|
162
296
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
163
297
|
* - INVALID_REPOSITORY_PATH: A repository path is invalid.
|
|
@@ -172,7 +306,7 @@ export interface ICore {
|
|
|
172
306
|
* - ABORTED: Project inspection or a repository operation was aborted.
|
|
173
307
|
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed or returned an invalid result.
|
|
174
308
|
*/
|
|
175
|
-
|
|
309
|
+
validateProject(input: IProjectValidationInput): Promise<IProjectValidationResult>;
|
|
176
310
|
}
|
|
177
311
|
export {};
|
|
178
312
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,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B,CAAC,CAAC;IAExE;;;;;;;;;;;;;;;;;OAiBG;IACH,kBAAkB,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAE9F;;;;;;;;;;;;;;;;OAgBG;IACH,wBAAwB,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAElG;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACpF"}
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,KAAK,EACL,YAAY,EAIb,MAAM,uBAAuB,CAAC;AAY/B;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,UAAU,YAAY,KAAG,KAyBnD,CAAC"}
|
package/dist/decision/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
|
12
12
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
13
13
|
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
14
14
|
*/
|
|
15
|
-
export declare const parseDecisionDocument: (input: ITextDocumentInput, options: ICoreOptionsSnapshot, operation?: Extract<ICoreOperation, "parse-decision" | "
|
|
15
|
+
export declare const parseDecisionDocument: (input: ITextDocumentInput, options: ICoreOptionsSnapshot, operation?: Extract<ICoreOperation, "parse-decision" | "validate-project">) => Promise<IDecisionParseResult>;
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAKpG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,kBAAkB,EACzB,SAAS,oBAAoB,EAC7B,YAAW,OAAO,CAAC,cAAc,EAAE,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAKpG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,kBAAkB,EACzB,SAAS,oBAAoB,EAC7B,YAAW,OAAO,CAAC,cAAc,EAAE,gBAAgB,GAAG,kBAAkB,CAAoB,KAC3F,OAAO,CAAC,oBAAoB,CAmE9B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type IRepositoryPath
|
|
1
|
+
import { type IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { ICoreDiagnostic } from '../diagnostics/index.js';
|
|
3
3
|
import type { IParsedDecision } from '../format/index.js';
|
|
4
4
|
import { type ICoreOptionsSnapshot } from '../options/index.js';
|
|
5
|
+
import type { IRepositoryInspectionReader } from '../repository-inspection-session/index.js';
|
|
5
6
|
export interface IDecisionGraphResult {
|
|
6
7
|
readonly valid: boolean;
|
|
7
8
|
readonly decisions: readonly IParsedDecision[];
|
|
@@ -24,5 +25,5 @@ export interface IDecisionGraphResult {
|
|
|
24
25
|
* - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
|
|
25
26
|
* - ABORTED: Decision inspection or a repository operation was aborted.
|
|
26
27
|
*/
|
|
27
|
-
export declare const readDecisionGraph: (repository:
|
|
28
|
+
export declare const readDecisionGraph: (repository: IRepositoryInspectionReader, paths: readonly IRepositoryPath[], options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IDecisionGraphResult>;
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision-graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision-graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAQxF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAG7F,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;CAClD;AAiBD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,2BAA2B,EACvC,OAAO,SAAS,eAAe,EAAE,EACjC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,oBAAoB,CA8C9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Exception } from 'error-message-utils';
|
|
2
2
|
export type ICoreConfigurationErrorCode = 'DUPLICATE_ADAPTER_ID' | 'RESERVED_ADAPTER_ID' | 'INVALID_ADAPTER_DEFINITION' | 'INVALID_RESOURCE_LIMIT';
|
|
3
|
-
export type ICoreOperationErrorCode = 'INVALID_ARGUMENT' | 'ABORTED' | 'RESOURCE_LIMIT_EXCEEDED' | 'ADAPTER_EXECUTION_FAILED';
|
|
4
|
-
export type ICoreOperation = 'create-core' | 'normalize-text' | 'calculate-content-digest' | 'parse-manifest' | 'parse-decision' | 'inspect-project' | 'validate-adapter';
|
|
3
|
+
export type ICoreOperationErrorCode = 'INVALID_ARGUMENT' | 'ABORTED' | 'RESOURCE_LIMIT_EXCEEDED' | 'ADAPTER_EXECUTION_FAILED' | 'CONTENT_INVALID';
|
|
4
|
+
export type ICoreOperation = 'create-core' | 'normalize-text' | 'calculate-content-digest' | 'parse-manifest' | 'match-manifest-scope' | 'parse-decision' | 'inspect-project-page' | 'read-canonical-content-page' | 'validate-project' | 'validate-adapter';
|
|
5
5
|
export interface ICoreConfigurationExceptionOptions {
|
|
6
6
|
readonly code: ICoreConfigurationErrorCode;
|
|
7
7
|
readonly operation: ICoreOperation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,MAAM,MAAM,2BAA2B,GACnC,sBAAsB,GACtB,qBAAqB,GACrB,4BAA4B,GAC5B,wBAAwB,CAAC;AAE7B,MAAM,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,MAAM,MAAM,2BAA2B,GACnC,sBAAsB,GACtB,qBAA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SAAgB,SAAS,EAAE,OAAO,CAAC;IAEnC,SAAgB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,SAAgB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,SAAgB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,iFAAiF;gBAC9D,OAAO,EAAE,8BAA8B;CAW3D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { IRuntimeAdapterEvidence, IRuntimeAdapterEvidenceKind } from './adapter/index.js';
|
|
2
2
|
export { DEFAULT_CORE_RESOURCE_LIMITS, SUPPORTED_REPOSITORY_FORMAT_VERSIONS, } from './constants/index.js';
|
|
3
|
-
export type { IContentDigest, IContentDigestResult, ICore, ICoreOptions, ICoreResourceLimits, IDecisionParseResult,
|
|
3
|
+
export type { IContentDigest, IContentDigestResult, ICanonicalContentPageInput, ICanonicalContentPageResult, ICore, ICoreOptions, ICoreResourceLimits, IDecisionParseResult, IManifestParseResult, INormalizedText, IProjectMetadataItem, IProjectMetadataKind, IProjectInspectionItem, IProjectInspectionCounts, IProjectInspectionPage, IProjectInspectionPageInput, IProjectInspectionPageRecord, IProjectInspectionPageResult, IProjectInspectionView, IProjectSummaryCounts, IProjectValidationInput, IProjectValidationResult, IProjectValidationSummary, ITextDocumentContent, ITextDocumentInput, ITextNormalizationResult, } from './contracts/index.js';
|
|
4
|
+
export type { IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeInput, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IManifestScopeResult, } from './scope-matching/index.js';
|
|
4
5
|
export { createCore } from './core/index.js';
|
|
5
6
|
export type { IAdapterDiagnostic, ICoreDiagnostic, ICoreDiagnosticCode, IDiagnostic, IDiagnosticDetails, IDiagnosticEntity, ISourcePosition, ISourceRange, } from './diagnostics/index.js';
|
|
6
7
|
export type { ICoreConfigurationErrorCode, ICoreConfigurationExceptionOptions, ICoreOperation, ICoreOperationErrorCode, ICoreOperationExceptionOptions, } from './exceptions/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAG/F,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,GACrC,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,KAAK,EACL,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAG/F,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,GACrC,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,KAAK,EACL,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,EAC/B,oBAAoB,GACrB,MAA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