@moldea.ai/core 3.1.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/adapter-repository/index.d.ts +19 -1
- package/dist/adapter-repository/index.d.ts.map +1 -1
- package/dist/adapter-retained-memory/index.d.ts +8 -0
- package/dist/adapter-retained-memory/index.d.ts.map +1 -0
- package/dist/adapter-validation/index.d.ts.map +1 -1
- package/dist/adapter.js +27 -5
- package/dist/adapter.js.map +1 -1
- package/dist/canonical-content-page/index.d.ts.map +1 -1
- package/dist/chunks/{exceptions-DWsZTpqs.js → exceptions-HS9ofVy2.js} +21 -2
- package/dist/chunks/exceptions-HS9ofVy2.js.map +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +31 -5
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/diagnostic-utilities/index.d.ts.map +1 -1
- package/dist/exceptions/index.d.ts +20 -4
- package/dist/exceptions/index.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +289 -113
- package/dist/index.js.map +1 -1
- package/dist/options/index.d.ts.map +1 -1
- package/dist/project-agent-assignments/index.d.ts +2 -2
- package/dist/project-agent-assignments/index.d.ts.map +1 -1
- package/dist/project-inspection/index.d.ts +5 -0
- package/dist/project-inspection/index.d.ts.map +1 -0
- package/dist/project-metadata/index.d.ts +2 -2
- package/dist/project-metadata/index.d.ts.map +1 -1
- package/dist/project-validation/index.d.ts +2 -0
- package/dist/project-validation/index.d.ts.map +1 -1
- package/dist/repository-inspection-session/index.d.ts +8 -0
- package/dist/repository-inspection-session/index.d.ts.map +1 -1
- package/dist/scope-matching/matching.d.ts.map +1 -1
- package/dist/scope-matching/validations.d.ts.map +1 -1
- package/dist/text/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/exceptions-DWsZTpqs.js.map +0 -1
- package/dist/project-inspection-page/index.d.ts +0 -5
- package/dist/project-inspection-page/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Source-neutral, deterministic, content-safe interpretation of the `moldea` repository format.
|
|
6
6
|
|
|
7
|
-
Version
|
|
7
|
+
Version 4 accepts caller-supplied text and `@moldea.ai/repository` version 2 readers. It performs no filesystem, Git, or network access independently. Project validation returns content-free summaries, diagnostics, evidence, agent assignments, and metadata. Canonical document bodies are available only through an explicit path-scoped byte-range operation.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pnpm add @moldea.ai/core@
|
|
12
|
+
pnpm add @moldea.ai/core@4 @moldea.ai/repository@2
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Public entry points
|
|
@@ -67,7 +67,9 @@ const result = await core.validateProject({ repository });
|
|
|
67
67
|
|
|
68
68
|
`validateProject` returns validity, format version, source identity, summary counts and digests, diagnostics, and runtime evidence. It never returns manifest, project, context, decision, runtime-guidance, mirror, description, or instruction bodies.
|
|
69
69
|
|
|
70
|
-
`
|
|
70
|
+
`createProjectInspection` validates the snapshot once, prepares one immutable content-free record set, and returns synchronous bounded page reads for the `metadata`, `diagnostics`, `evidence`, and `all` views. The `metadata` and `all` views include one independently keyed `agent` record per canonical agent with exactly its `agentId` and manifest-declared `runtimeId`, distinct from asset metadata and adapter evidence. Each page uses a semantic continuation cursor tied to the complete inspection digest and view. Page reads perform no repository access, revalidation, sorting, digesting, or adapter execution.
|
|
71
|
+
|
|
72
|
+
The prepared inspection retains only its content-free records, summary, source identity, deterministic resource accounting, and page indexes. Core preflights the complete logical cost before it constructs the prepared collections, indexes, or digest. It does not retain canonical document bodies. `readCanonicalContentPage` is the only Core project operation that returns a body, and it requires an explicit canonical `/moldea/**` file path, byte offset, and byte bound. Returned chunks end at a complete UTF-8 scalar.
|
|
71
73
|
|
|
72
74
|
## Per-agent runtime adapters
|
|
73
75
|
|
|
@@ -77,7 +79,9 @@ Adapter evidence and diagnostics are validated, normalized, deduplicated, sorted
|
|
|
77
79
|
|
|
78
80
|
## Resource and trust boundaries
|
|
79
81
|
|
|
80
|
-
Core uses independent limits for distinct entries, total bytes, file bytes, manifest bytes, diagnostics, and evidence. The adapter-facing repository adds per-page entry and byte limits. Core executes no repository code, follows no symlink, receives no host path or source credential, and returns logical paths only.
|
|
82
|
+
Core uses independent limits for distinct entries, total bytes read, per-file bytes, manifest bytes, logical retained bytes, diagnostics, and evidence. The default logical retained-memory ceiling is 512 MiB. Project inspection accounts for canonical validation state, complete adapter file buffers, transient read pages, and prepared content-free records before completing, and reports deterministic logical usage without exposing document bodies. A complete adapter buffer is reserved before allocation and remains charged for the inspection lifetime. The adapter-facing repository adds per-page entry and byte limits. Core executes no repository code, follows no symlink, receives no host path or source credential, and returns logical paths only.
|
|
83
|
+
|
|
84
|
+
Every `RESOURCE_LIMIT_EXCEEDED` exception identifies the exceeded limit, its configured maximum, the observed or projected usage, and the stable `reduce-input-or-increase-limit` next action. Core refuses the operation before allocating retained state beyond the applicable ceiling.
|
|
81
85
|
|
|
82
86
|
The release-5 calibration corpus drives these limits through the real CLI and PR Assurance across ordinary, 1,024-path, broad-relationship, Unicode, binary, diagnostic-heavy, and incomplete-provider cases. Repeated measurements establish ordinary cumulative headroom, while adversarial tests prove explicit bounded failure without treating a page, file, or operation limit as total repository capacity.
|
|
83
87
|
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { type IRepositoryEntry, type IRepositoryOperationOptions, type IRepositoryPath } from '@moldea.ai/repository';
|
|
2
2
|
import type { IRuntimeAdapterRepository } from '../adapter/index.js';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Reads one complete adapter source file through bounded repository pages.
|
|
5
|
+
* @param repository The Core-created repository for the current adapter invocation.
|
|
6
|
+
* @param path The exact source file path.
|
|
7
|
+
* @param options Optional cancellation controls.
|
|
8
|
+
* @returns A promise resolving to one detached complete source buffer.
|
|
9
|
+
* @throws
|
|
10
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
11
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
12
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
13
|
+
* - INVALID_PAGE_REQUEST: The repository page request is invalid.
|
|
14
|
+
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
15
|
+
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
16
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
17
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
18
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
19
|
+
* - ABORTED: The repository operation was aborted.
|
|
20
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
21
|
+
*/
|
|
4
22
|
export declare const readRuntimeAdapterFile: (repository: IRuntimeAdapterRepository, path: IRepositoryPath, options?: IRepositoryOperationOptions) => Promise<Uint8Array>;
|
|
5
23
|
/** Iterates one adapter-scoped descendant listing through bounded pages. */
|
|
6
24
|
export declare const iterateRuntimeAdapterEntries: (repository: IRuntimeAdapterRepository, options?: IRepositoryOperationOptions & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA+BrE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,yBAAyB,EACrC,MAAM,eAAe,EACrB,UAAU,2BAA2B,KACpC,OAAO,CAAC,UAAU,CAyEpB,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,4BAA4B,GACvC,YAAY,yBAAyB,EACrC,UAAU,2BAA2B,GAAG;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAA;CAAE,KAC5E,aAAa,CAAC,gBAAgB,CA6DhC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IRuntimeAdapterRepository } from '../adapter/index.js';
|
|
2
|
+
type IRetainedByteReservation = (byteLength: number) => void;
|
|
3
|
+
/** Registers the retained-memory reservation owned by one inspection session. */
|
|
4
|
+
export declare const registerRuntimeAdapterRetainedByteReservation: (repository: IRuntimeAdapterRepository, reserve: IRetainedByteReservation) => void;
|
|
5
|
+
/** Reserves a complete adapter-owned buffer when Core owns the repository session. */
|
|
6
|
+
export declare const reserveRuntimeAdapterRetainedBytesIfTracked: (repository: IRuntimeAdapterRepository, byteLength: number) => void;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-retained-memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACrE,KAAK,wBAAwB,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;AAK7D,iFAAiF;AACjF,eAAO,MAAM,6CAA6C,GACxD,YAAY,yBAAyB,EACrC,SAAS,wBAAwB,KAChC,IAMF,CAAC;AAEF,sFAAsF;AACtF,eAAO,MAAM,2CAA2C,GACtD,YAAY,yBAAyB,EACrC,YAAY,MAAM,KACjB,IAMF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-validation/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,uBAAuB,EAEvB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EACV,kBAAkB,EAInB,MAAM,yBAAyB,CAAC;AA8DjC,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACrD;AAGD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-validation/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,uBAAuB,EAEvB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EACV,kBAAkB,EAInB,MAAM,yBAAyB,CAAC;AA8DjC,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACrD;AAGD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAgdD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAC1C,YAAY,SAAS,uBAAuB,EAAE,KAC7C,SAAS,uBAAuB,EAQlC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,OAAO,EAClB,SAAS,yBAAyB,EAClC,cAAc,2BAA2B,KACxC,OAAO,CAAC,8BAA8B,CA4DxC,CAAC"}
|
package/dist/adapter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CoreOperationException } from "./chunks/exceptions-
|
|
1
|
+
import { i as reserveRuntimeAdapterRetainedBytesIfTracked, n as CoreOperationException } from "./chunks/exceptions-HS9ofVy2.js";
|
|
2
2
|
import { REPOSITORY_ROOT, RepositorySourceException, compareRepositoryPaths, parseRepositoryPath } from "@moldea.ai/repository";
|
|
3
3
|
//#region src/adapter-repository/index.ts
|
|
4
4
|
var invalidSourceData = (operation, path) => {
|
|
@@ -9,14 +9,35 @@ var invalidSourceData = (operation, path) => {
|
|
|
9
9
|
retryable: false
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
var throwResourceLimitExceeded = (limit) => {
|
|
12
|
+
var throwResourceLimitExceeded = (limit, limitMaximum, observedUsage) => {
|
|
13
13
|
throw new CoreOperationException({
|
|
14
14
|
code: "RESOURCE_LIMIT_EXCEEDED",
|
|
15
15
|
limit,
|
|
16
|
+
limitMaximum,
|
|
17
|
+
nextAction: "reduce-input-or-increase-limit",
|
|
18
|
+
observedUsage,
|
|
16
19
|
operation: "validate-project"
|
|
17
20
|
});
|
|
18
21
|
};
|
|
19
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Reads one complete adapter source file through bounded repository pages.
|
|
24
|
+
* @param repository The Core-created repository for the current adapter invocation.
|
|
25
|
+
* @param path The exact source file path.
|
|
26
|
+
* @param options Optional cancellation controls.
|
|
27
|
+
* @returns A promise resolving to one detached complete source buffer.
|
|
28
|
+
* @throws
|
|
29
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
30
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
31
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
32
|
+
* - INVALID_PAGE_REQUEST: The repository page request is invalid.
|
|
33
|
+
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
34
|
+
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
35
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
36
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
37
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
38
|
+
* - ABORTED: The repository operation was aborted.
|
|
39
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
40
|
+
*/
|
|
20
41
|
var readRuntimeAdapterFile = async (repository, path, options) => {
|
|
21
42
|
const parsedPath = parseRepositoryPath(path);
|
|
22
43
|
const entry = await repository.getEntry(parsedPath, options);
|
|
@@ -32,7 +53,8 @@ var readRuntimeAdapterFile = async (repository, path, options) => {
|
|
|
32
53
|
path: parsedPath,
|
|
33
54
|
retryable: false
|
|
34
55
|
});
|
|
35
|
-
if (entry.byteLength > repository.limits.maxFileBytes) return throwResourceLimitExceeded("maxFileBytes");
|
|
56
|
+
if (entry.byteLength > repository.limits.maxFileBytes) return throwResourceLimitExceeded("maxFileBytes", repository.limits.maxFileBytes, entry.byteLength);
|
|
57
|
+
reserveRuntimeAdapterRetainedBytesIfTracked(repository, entry.byteLength);
|
|
36
58
|
const content = new Uint8Array(entry.byteLength);
|
|
37
59
|
let offset = 0;
|
|
38
60
|
let isFirstPage = true;
|
|
@@ -74,7 +96,7 @@ var iterateRuntimeAdapterEntries = (repository, options) => {
|
|
|
74
96
|
for (const entry of page.entries) {
|
|
75
97
|
if (previousPath !== null && compareRepositoryPaths(previousPath, entry.path) >= 0) return invalidSourceData("list-entries-page", entry.path);
|
|
76
98
|
entryCount += 1;
|
|
77
|
-
if (entryCount > repository.limits.maxEntries) return throwResourceLimitExceeded("maxEntries");
|
|
99
|
+
if (entryCount > repository.limits.maxEntries) return throwResourceLimitExceeded("maxEntries", repository.limits.maxEntries, entryCount);
|
|
78
100
|
previousPath = entry.path;
|
|
79
101
|
yield entry;
|
|
80
102
|
}
|
package/dist/adapter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","names":[],"sources":["../src/adapter-repository/index.ts"],"sourcesContent":["import {\n REPOSITORY_ROOT,\n RepositorySourceException,\n compareRepositoryPaths,\n parseRepositoryPath,\n type IRepositoryEntry,\n type IRepositoryOperationOptions,\n type IRepositoryPath,\n} from '@moldea.ai/repository';\n\nimport type { IRuntimeAdapterRepository } from '../adapter/index.js';\nimport { CoreOperationException } from '../exceptions/index.js';\n\nconst invalidSourceData = (\n operation: 'list-entries-page' | 'read-file-page',\n path: IRepositoryPath,\n): never => {\n throw new RepositorySourceException({\n code: 'INVALID_SOURCE_DATA',\n operation,\n path,\n retryable: false,\n });\n};\n\nconst throwResourceLimitExceeded = (\n limit: 'maxEntries' | 'maxFileBytes' | 'maxTotalBytesRead',\n): never => {\n throw new CoreOperationException({\n code: 'RESOURCE_LIMIT_EXCEEDED',\n limit,\n operation: 'validate-project',\n });\n};\n\n
|
|
1
|
+
{"version":3,"file":"adapter.js","names":[],"sources":["../src/adapter-repository/index.ts"],"sourcesContent":["import {\n REPOSITORY_ROOT,\n RepositorySourceException,\n compareRepositoryPaths,\n parseRepositoryPath,\n type IRepositoryEntry,\n type IRepositoryOperationOptions,\n type IRepositoryPath,\n} from '@moldea.ai/repository';\n\nimport type { IRuntimeAdapterRepository } from '../adapter/index.js';\nimport { reserveRuntimeAdapterRetainedBytesIfTracked } from '../adapter-retained-memory/index.js';\nimport { CoreOperationException } from '../exceptions/index.js';\n\nconst invalidSourceData = (\n operation: 'list-entries-page' | 'read-file-page',\n path: IRepositoryPath,\n): never => {\n throw new RepositorySourceException({\n code: 'INVALID_SOURCE_DATA',\n operation,\n path,\n retryable: false,\n });\n};\n\nconst throwResourceLimitExceeded = (\n limit: 'maxEntries' | 'maxFileBytes' | 'maxTotalBytesRead',\n limitMaximum: number,\n observedUsage: number,\n): never => {\n throw new CoreOperationException({\n code: 'RESOURCE_LIMIT_EXCEEDED',\n limit,\n limitMaximum,\n nextAction: 'reduce-input-or-increase-limit',\n observedUsage,\n operation: 'validate-project',\n });\n};\n\n/**\n * Reads one complete adapter source file through bounded repository pages.\n * @param repository The Core-created repository for the current adapter invocation.\n * @param path The exact source file path.\n * @param options Optional cancellation controls.\n * @returns A promise resolving to one detached complete source buffer.\n * @throws\n * - INVALID_REPOSITORY_PATH: The repository path is invalid.\n * - ENTRY_NOT_FOUND: The requested repository entry was not found.\n * - ENTRY_NOT_FILE: The requested repository entry is not a file.\n * - INVALID_PAGE_REQUEST: The repository page request is invalid.\n * - ACCESS_DENIED: Access to the repository source was denied.\n * - SOURCE_UNAVAILABLE: The repository source is unavailable.\n * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.\n * - INVALID_SOURCE_DATA: The repository source returned invalid data.\n * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.\n * - ABORTED: The repository operation was aborted.\n * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.\n */\nexport const readRuntimeAdapterFile = async (\n repository: IRuntimeAdapterRepository,\n path: IRepositoryPath,\n options?: IRepositoryOperationOptions,\n): Promise<Uint8Array> => {\n const parsedPath = parseRepositoryPath(path);\n const entry = await repository.getEntry(parsedPath, options);\n\n if (entry === null) {\n throw new RepositorySourceException({\n code: 'ENTRY_NOT_FOUND',\n operation: 'read-file-page',\n path: parsedPath,\n retryable: false,\n });\n }\n\n if (entry.type !== 'file' || entry.byteLength === null) {\n throw new RepositorySourceException({\n code: 'ENTRY_NOT_FILE',\n operation: 'read-file-page',\n path: parsedPath,\n retryable: false,\n });\n }\n\n if (entry.byteLength > repository.limits.maxFileBytes) {\n return throwResourceLimitExceeded(\n 'maxFileBytes',\n repository.limits.maxFileBytes,\n entry.byteLength,\n );\n }\n\n reserveRuntimeAdapterRetainedBytesIfTracked(repository, entry.byteLength);\n const content = new Uint8Array(entry.byteLength);\n let offset = 0;\n let isFirstPage = true;\n\n while (isFirstPage || offset < entry.byteLength) {\n isFirstPage = false;\n options?.signal?.throwIfAborted();\n const page = await repository.readFilePage(parsedPath, {\n maxBytes: Math.min(repository.limits.maxPageBytes, Math.max(1, entry.byteLength - offset)),\n offset,\n ...(options?.signal === undefined ? {} : { signal: options.signal }),\n });\n\n if (\n page.snapshot.id !== repository.snapshot.id ||\n page.offset !== offset ||\n page.totalBytes !== entry.byteLength ||\n !(page.bytes instanceof Uint8Array) ||\n page.bytes.byteLength > repository.limits.maxPageBytes ||\n page.bytes.byteLength > content.byteLength - offset ||\n (page.bytes.byteLength === 0 && !page.isComplete)\n ) {\n return invalidSourceData('read-file-page', parsedPath);\n }\n\n content.set(page.bytes, offset);\n offset += page.bytes.byteLength;\n\n if (page.isComplete) {\n if (page.nextOffset !== null || offset !== content.byteLength) {\n return invalidSourceData('read-file-page', parsedPath);\n }\n\n return content;\n }\n\n if (page.nextOffset !== offset) {\n return invalidSourceData('read-file-page', parsedPath);\n }\n }\n\n return invalidSourceData('read-file-page', parsedPath);\n};\n\n/** Iterates one adapter-scoped descendant listing through bounded pages. */\nexport const iterateRuntimeAdapterEntries = (\n repository: IRuntimeAdapterRepository,\n options?: IRepositoryOperationOptions & { readonly prefix?: IRepositoryPath },\n): AsyncIterable<IRepositoryEntry> => {\n const prefix =\n options?.prefix === undefined ? REPOSITORY_ROOT : parseRepositoryPath(options.prefix);\n\n return {\n async *[Symbol.asyncIterator](): AsyncIterator<IRepositoryEntry> {\n let cursor: string | undefined;\n let entryCount = 0;\n let previousPath: IRepositoryPath | null = null;\n\n do {\n options?.signal?.throwIfAborted();\n const page = await repository.listEntriesPage({\n ...(cursor === undefined ? {} : { cursor }),\n maxEntries: repository.limits.maxPageEntries,\n prefix,\n ...(options?.signal === undefined ? {} : { signal: options.signal }),\n });\n\n if (\n page.snapshot.id !== repository.snapshot.id ||\n page.entries.length > repository.limits.maxPageEntries ||\n (page.entries.length === 0 && !page.isComplete)\n ) {\n return invalidSourceData('list-entries-page', prefix);\n }\n\n for (const entry of page.entries) {\n if (previousPath !== null && compareRepositoryPaths(previousPath, entry.path) >= 0) {\n return invalidSourceData('list-entries-page', entry.path);\n }\n\n entryCount += 1;\n if (entryCount > repository.limits.maxEntries) {\n return throwResourceLimitExceeded(\n 'maxEntries',\n repository.limits.maxEntries,\n entryCount,\n );\n }\n\n previousPath = entry.path;\n yield entry;\n }\n\n if (page.isComplete) {\n if (page.nextCursor !== null) {\n return invalidSourceData('list-entries-page', prefix);\n }\n\n return;\n }\n\n if (page.nextCursor === null || page.nextCursor === cursor) {\n return invalidSourceData('list-entries-page', prefix);\n }\n\n cursor = page.nextCursor;\n } while (true);\n },\n };\n};\n"],"mappings":";;;AAcA,IAAM,qBACJ,WACA,SACU;CACV,MAAM,IAAI,0BA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EA,IAAI,KAAK,YAAY;IACnB,IAAI,KAAK,eAAe,MACtB,OAAO,kBAAkB,qBAAqB,MAAM;IAGtD;GACF;GAEA,IAAI,KAAK,eAAe,QAAQ,KAAK,eAAe,QAClD,OAAO,kBAAkB,qBAAqB,MAAM;GAGtD,SAAS,KAAK;EAChB,SAAS;CACX,EACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/canonical-content-page/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAoHhE,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,GACnC,OAAO,0BAA0B,EACjC,SAAS,oBAAoB,KAC5B,OAAO,CAAC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/canonical-content-page/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAoHhE,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,GACnC,OAAO,0BAA0B,EACjC,SAAS,oBAAoB,KAC5B,OAAO,CAAC,2BAA2B,CA2GrC,CAAC"}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { Exception } from "error-message-utils";
|
|
2
|
+
//#region src/adapter-retained-memory/index.ts
|
|
3
|
+
var retainedByteReservations = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
/** Registers the retained-memory reservation owned by one inspection session. */
|
|
5
|
+
var registerRuntimeAdapterRetainedByteReservation = (repository, reserve) => {
|
|
6
|
+
if (retainedByteReservations.has(repository)) throw new TypeError("The runtime adapter repository is already registered.");
|
|
7
|
+
retainedByteReservations.set(repository, reserve);
|
|
8
|
+
};
|
|
9
|
+
/** Reserves a complete adapter-owned buffer when Core owns the repository session. */
|
|
10
|
+
var reserveRuntimeAdapterRetainedBytesIfTracked = (repository, byteLength) => {
|
|
11
|
+
const reserve = retainedByteReservations.get(repository);
|
|
12
|
+
if (reserve !== void 0) reserve(byteLength);
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
2
15
|
//#region src/exceptions/index.ts
|
|
3
16
|
var CONFIGURATION_ERROR_MESSAGES = {
|
|
4
17
|
DUPLICATE_ADAPTER_ID: "A runtime adapter ID is registered more than once.",
|
|
@@ -52,6 +65,9 @@ var CoreOperationException = class extends Exception {
|
|
|
52
65
|
adapterId;
|
|
53
66
|
agentId;
|
|
54
67
|
limit;
|
|
68
|
+
limitMaximum;
|
|
69
|
+
nextAction;
|
|
70
|
+
observedUsage;
|
|
55
71
|
/** Creates an operation exception with derived retry and safe scope metadata. */
|
|
56
72
|
constructor(options) {
|
|
57
73
|
super(OPERATION_ERROR_MESSAGES[options.code], options.code);
|
|
@@ -62,10 +78,13 @@ var CoreOperationException = class extends Exception {
|
|
|
62
78
|
this.adapterId = options.adapterId ?? null;
|
|
63
79
|
this.agentId = options.agentId ?? null;
|
|
64
80
|
this.limit = options.limit ?? null;
|
|
81
|
+
this.limitMaximum = options.limitMaximum ?? null;
|
|
82
|
+
this.nextAction = options.nextAction ?? null;
|
|
83
|
+
this.observedUsage = options.observedUsage ?? null;
|
|
65
84
|
attachCause(this, options.cause);
|
|
66
85
|
}
|
|
67
86
|
};
|
|
68
87
|
//#endregion
|
|
69
|
-
export { CoreOperationException as n, CoreConfigurationException as t };
|
|
88
|
+
export { reserveRuntimeAdapterRetainedBytesIfTracked as i, CoreOperationException as n, registerRuntimeAdapterRetainedByteReservation as r, CoreConfigurationException as t };
|
|
70
89
|
|
|
71
|
-
//# sourceMappingURL=exceptions-
|
|
90
|
+
//# sourceMappingURL=exceptions-HS9ofVy2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exceptions-HS9ofVy2.js","names":[],"sources":["../../src/adapter-retained-memory/index.ts","../../src/exceptions/index.ts"],"sourcesContent":["import type { IRuntimeAdapterRepository } from '../adapter/index.js';\ntype IRetainedByteReservation = (byteLength: number) => void;\n\n// reservations belong to Core-created adapter repositories and remain private to the session\nconst retainedByteReservations = new WeakMap<IRuntimeAdapterRepository, IRetainedByteReservation>();\n\n/** Registers the retained-memory reservation owned by one inspection session. */\nexport const registerRuntimeAdapterRetainedByteReservation = (\n repository: IRuntimeAdapterRepository,\n reserve: IRetainedByteReservation,\n): void => {\n if (retainedByteReservations.has(repository)) {\n throw new TypeError('The runtime adapter repository is already registered.');\n }\n\n retainedByteReservations.set(repository, reserve);\n};\n\n/** Reserves a complete adapter-owned buffer when Core owns the repository session. */\nexport const reserveRuntimeAdapterRetainedBytesIfTracked = (\n repository: IRuntimeAdapterRepository,\n byteLength: number,\n): void => {\n const reserve = retainedByteReservations.get(repository);\n\n if (reserve !== undefined) {\n reserve(byteLength);\n }\n};\n","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 | 'create-project-inspection'\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\ninterface ICoreOperationExceptionOptionsBase {\n readonly operation: ICoreOperation;\n readonly adapterId?: string;\n readonly agentId?: string;\n readonly cause?: unknown;\n}\n\n// complete resource-refusal metadata required by Core 4\nexport type ICoreResourceLimitNextAction = 'reduce-input-or-increase-limit';\n\nexport type ICoreOperationExceptionOptions = ICoreOperationExceptionOptionsBase &\n (\n | {\n readonly code: 'RESOURCE_LIMIT_EXCEEDED';\n readonly limit: string;\n readonly limitMaximum: number;\n readonly nextAction: ICoreResourceLimitNextAction;\n readonly observedUsage: number;\n }\n | {\n readonly code: Exclude<ICoreOperationErrorCode, 'RESOURCE_LIMIT_EXCEEDED'>;\n readonly limit?: never;\n readonly limitMaximum?: never;\n readonly nextAction?: never;\n readonly observedUsage?: never;\n }\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 public readonly limitMaximum: number | null;\n\n public readonly nextAction: ICoreResourceLimitNextAction | null;\n\n public readonly observedUsage: number | 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 this.limitMaximum = options.limitMaximum ?? null;\n this.nextAction = options.nextAction ?? null;\n this.observedUsage = options.observedUsage ?? null;\n attachCause(this, options.cause);\n }\n}\n"],"mappings":";;AAIA,IAAM,2CAA2B,IAAI,QAA6D;;AAGlG,IAAa,iDACX,YACA,YACS;CACT,IAAI,yBAAyB,IAAI,UAAU,GACzC,MAAM,IAAI,UAAU,uDAAuD;CAG7E,yBAAyB,IAAI,YAAY,OAAO;AAClD;;AAGA,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,cAAc;EACxC,KAAK,gBAAgB,QAAQ,iBAAiB;EAC9C,YAAY,MAAM,QAAQ,KAAK;CACjC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAGnE,eAAO,MAAM,8BAA8B,4KAYhC,CAAC;AAGZ,eAAO,MAAM,oCAAoC,EAAE,SAAS,wBAAwB,EAChE,CAAC;AAGrB,eAAO,MAAM,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAGnE,eAAO,MAAM,8BAA8B,4KAYhC,CAAC;AAGZ,eAAO,MAAM,oCAAoC,EAAE,SAAS,wBAAwB,EAChE,CAAC;AAGrB,eAAO,MAAM,4BAA4B,EAAE,mBAQzC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export interface ICoreResourceLimits {
|
|
|
8
8
|
readonly maxTotalBytesRead: number;
|
|
9
9
|
readonly maxFileBytes: number;
|
|
10
10
|
readonly maxManifestBytes: number;
|
|
11
|
+
readonly maxRetainedBytes: number;
|
|
11
12
|
readonly maxDiagnostics: number;
|
|
12
13
|
readonly maxEvidence: number;
|
|
13
14
|
}
|
|
@@ -71,7 +72,8 @@ export interface IProjectAgentAssignmentItem {
|
|
|
71
72
|
readonly runtimeId: string;
|
|
72
73
|
}
|
|
73
74
|
export type IProjectInspectionView = 'all' | 'diagnostics' | 'evidence' | 'metadata';
|
|
74
|
-
export
|
|
75
|
+
export type IProjectInspectionInput = IProjectValidationInput;
|
|
76
|
+
export interface IProjectInspectionPageInput {
|
|
75
77
|
readonly cursor?: string;
|
|
76
78
|
readonly maxItems: number;
|
|
77
79
|
readonly view: IProjectInspectionView;
|
|
@@ -127,6 +129,30 @@ export interface IProjectInspectionCounts extends IProjectSummaryCounts {
|
|
|
127
129
|
readonly evidence: number;
|
|
128
130
|
readonly metadata: number;
|
|
129
131
|
}
|
|
132
|
+
export interface IProjectInspectionResourceUsage {
|
|
133
|
+
readonly canonicalBytes: number;
|
|
134
|
+
readonly peakRetainedBytes: number;
|
|
135
|
+
readonly preparedBytes: number;
|
|
136
|
+
readonly retainedBytes: number;
|
|
137
|
+
readonly totalBytesRead: number;
|
|
138
|
+
}
|
|
139
|
+
export interface IProjectInspection {
|
|
140
|
+
readonly counts: IProjectInspectionCounts;
|
|
141
|
+
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
142
|
+
readonly inspectionDigest: string;
|
|
143
|
+
readonly resourceUsage: IProjectInspectionResourceUsage;
|
|
144
|
+
readonly source: IRepositorySnapshot;
|
|
145
|
+
readonly summary: IProjectValidationSummary | null;
|
|
146
|
+
readonly valid: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Reads one bounded page from the already prepared content-free record set.
|
|
149
|
+
* @param input The view, page size, and optional cursor.
|
|
150
|
+
* @returns One immutable page without repository reads or project revalidation.
|
|
151
|
+
* @throws
|
|
152
|
+
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
153
|
+
*/
|
|
154
|
+
readPage(input: IProjectInspectionPageInput): IProjectInspectionPageResult;
|
|
155
|
+
}
|
|
130
156
|
export interface IProjectInspectionPageResult {
|
|
131
157
|
readonly counts: IProjectInspectionCounts;
|
|
132
158
|
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
@@ -259,9 +285,9 @@ export interface ICore {
|
|
|
259
285
|
*/
|
|
260
286
|
parseDecision(input: ITextDocumentInput): Promise<IDecisionParseResult>;
|
|
261
287
|
/**
|
|
262
|
-
*
|
|
263
|
-
* @param input The reader
|
|
264
|
-
* @returns A promise resolving to
|
|
288
|
+
* Prepares one bounded content-free inspection over a validated project snapshot.
|
|
289
|
+
* @param input The reader and optional shared cancellation signal.
|
|
290
|
+
* @returns A promise resolving to an immutable inspection with synchronous page reads.
|
|
265
291
|
* @throws
|
|
266
292
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
267
293
|
* - INVALID_REPOSITORY_PATH: A repository path is invalid.
|
|
@@ -276,7 +302,7 @@ export interface ICore {
|
|
|
276
302
|
* - ABORTED: Project inspection or a repository operation was aborted.
|
|
277
303
|
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed or returned an invalid result.
|
|
278
304
|
*/
|
|
279
|
-
|
|
305
|
+
createProjectInspection(input: IProjectInspectionInput): Promise<IProjectInspection>;
|
|
280
306
|
/**
|
|
281
307
|
* Reads one explicit canonical file range without materializing the complete file.
|
|
282
308
|
* @param input The reader, canonical path, byte range, and optional cancellation signal.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,mCAAmC,EACpC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAG5F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MA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xB,wBA4BF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,OAAO,MAAM,KAAG,MAExD,CAAC"}
|
|
@@ -1,21 +1,33 @@
|
|
|
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
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' | '
|
|
4
|
+
export type ICoreOperation = 'create-core' | 'normalize-text' | 'calculate-content-digest' | 'parse-manifest' | 'match-manifest-scope' | 'parse-decision' | 'create-project-inspection' | 'read-canonical-content-page' | 'validate-project' | 'validate-adapter';
|
|
5
5
|
export interface ICoreConfigurationExceptionOptions {
|
|
6
6
|
readonly code: ICoreConfigurationErrorCode;
|
|
7
7
|
readonly operation: ICoreOperation;
|
|
8
8
|
readonly adapterId?: string;
|
|
9
9
|
readonly cause?: unknown;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
readonly code: ICoreOperationErrorCode;
|
|
11
|
+
interface ICoreOperationExceptionOptionsBase {
|
|
13
12
|
readonly operation: ICoreOperation;
|
|
14
13
|
readonly adapterId?: string;
|
|
15
14
|
readonly agentId?: string;
|
|
16
|
-
readonly limit?: string;
|
|
17
15
|
readonly cause?: unknown;
|
|
18
16
|
}
|
|
17
|
+
export type ICoreResourceLimitNextAction = 'reduce-input-or-increase-limit';
|
|
18
|
+
export type ICoreOperationExceptionOptions = ICoreOperationExceptionOptionsBase & ({
|
|
19
|
+
readonly code: 'RESOURCE_LIMIT_EXCEEDED';
|
|
20
|
+
readonly limit: string;
|
|
21
|
+
readonly limitMaximum: number;
|
|
22
|
+
readonly nextAction: ICoreResourceLimitNextAction;
|
|
23
|
+
readonly observedUsage: number;
|
|
24
|
+
} | {
|
|
25
|
+
readonly code: Exclude<ICoreOperationErrorCode, 'RESOURCE_LIMIT_EXCEEDED'>;
|
|
26
|
+
readonly limit?: never;
|
|
27
|
+
readonly limitMaximum?: never;
|
|
28
|
+
readonly nextAction?: never;
|
|
29
|
+
readonly observedUsage?: never;
|
|
30
|
+
});
|
|
19
31
|
/** Represents invalid immutable Core configuration. */
|
|
20
32
|
export declare class CoreConfigurationException extends Exception {
|
|
21
33
|
readonly code: ICoreConfigurationErrorCode;
|
|
@@ -32,7 +44,11 @@ export declare class CoreOperationException extends Exception {
|
|
|
32
44
|
readonly adapterId: string | null;
|
|
33
45
|
readonly agentId: string | null;
|
|
34
46
|
readonly limit: string | null;
|
|
47
|
+
readonly limitMaximum: number | null;
|
|
48
|
+
readonly nextAction: ICoreResourceLimitNextAction | null;
|
|
49
|
+
readonly observedUsage: number | null;
|
|
35
50
|
/** Creates an operation exception with derived retry and safe scope metadata. */
|
|
36
51
|
constructor(options: ICoreOperationExceptionOptions);
|
|
37
52
|
}
|
|
53
|
+
export {};
|
|
38
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,GAC/B,kBAAkB,GAClB,SAAS,GACT,yBAAyB,GACzB,0BAA0B,GAC1B,iBAAiB,CAAC;AAEtB,MAAM,MAAM,cAAc,GACtB,aAAa,GACb,gBAAgB,GAChB,0BAA0B,GAC1B,gBA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eAdapterEvidenceKind } from './adapter/index.js';
|
|
2
2
|
export { DEFAULT_CORE_RESOURCE_LIMITS, SUPPORTED_REPOSITORY_FORMAT_VERSIONS, } from './constants/index.js';
|
|
3
|
-
export type { IContentDigest, IContentDigestResult, ICanonicalContentPageInput, ICanonicalContentPageResult, ICore, ICoreOptions, ICoreResourceLimits, IDecisionParseResult, IManifestParseResult, INormalizedText, IProjectMetadataItem, IProjectMetadataKind, IProjectAgentAssignmentItem, IProjectInspectionItem, IProjectInspectionCounts, IProjectInspectionPage, IProjectInspectionPageInput, IProjectInspectionPageRecord, IProjectInspectionPageResult, IProjectInspectionView, IProjectSummaryCounts, IProjectValidationInput, IProjectValidationResult, IProjectValidationSummary, ITextDocumentContent, ITextDocumentInput, ITextNormalizationResult, } from './contracts/index.js';
|
|
3
|
+
export type { IContentDigest, IContentDigestResult, ICanonicalContentPageInput, ICanonicalContentPageResult, ICore, ICoreOptions, ICoreResourceLimits, IDecisionParseResult, IManifestParseResult, INormalizedText, IProjectMetadataItem, IProjectMetadataKind, IProjectAgentAssignmentItem, IProjectInspection, IProjectInspectionItem, IProjectInspectionCounts, IProjectInspectionInput, IProjectInspectionPage, IProjectInspectionPageInput, IProjectInspectionPageRecord, IProjectInspectionPageResult, IProjectInspectionResourceUsage, IProjectInspectionView, IProjectSummaryCounts, IProjectValidationInput, IProjectValidationResult, IProjectValidationSummary, ITextDocumentContent, ITextDocumentInput, ITextNormalizationResult, } from './contracts/index.js';
|
|
4
4
|
export type { IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeInput, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IManifestScopeResult, } from './scope-matching/index.js';
|
|
5
5
|
export { createCore } from './core/index.js';
|
|
6
6
|
export type { IAdapterDiagnostic, ICoreDiagnostic, ICoreDiagnosticCode, IDiagnostic, IDiagnosticDetails, IDiagnosticEntity, ISourcePosition, ISourceRange, } from './diagnostics/index.js';
|
|
7
|
-
export type { ICoreConfigurationErrorCode, ICoreConfigurationExceptionOptions, ICoreOperation, ICoreOperationErrorCode, ICoreOperationExceptionOptions, } from './exceptions/index.js';
|
|
7
|
+
export type { ICoreConfigurationErrorCode, ICoreConfigurationExceptionOptions, ICoreOperation, ICoreOperationErrorCode, ICoreOperationExceptionOptions, ICoreResourceLimitNextAction, } from './exceptions/index.js';
|
|
8
8
|
export { CoreConfigurationException, CoreOperationException } from './exceptions/index.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
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,0BAA0B,EAC1B,2BAA2B,EAC3B,KAAK,EACL,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,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,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,YAAY,GACb,MAAM,wBAAwB,CAAC;AAGhC,YAAY,EACV,2BAA2B,EAC3B,kCAAkC,EAClC,cAAc,EACd,uBAAuB,EACvB,8BAA8B,
|
|
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,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,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,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,WAAW,E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