@cleocode/contracts 2026.9.15 → 2026.9.16
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/dist/code-symbol.d.ts +13 -1
- package/dist/code-symbol.d.ts.map +1 -1
- package/dist/code-symbol.js +1 -1
- package/package.json +2 -2
- package/src/code-symbol.ts +13 -1
package/dist/code-symbol.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare const PARSER_WORKER_HEAP_MIN_MB = 8;
|
|
|
65
65
|
/** Largest V8 old-space a parse worker may be given, in MiB. */
|
|
66
66
|
export declare const PARSER_WORKER_HEAP_MAX_MB = 4096;
|
|
67
67
|
/** Default V8 old-space per parse worker, in MiB. */
|
|
68
|
-
export declare const PARSER_WORKER_HEAP_DEFAULT_MB =
|
|
68
|
+
export declare const PARSER_WORKER_HEAP_DEFAULT_MB = 512;
|
|
69
69
|
/** Bounds for one native parser invocation; cancellation is cooperative in-process. */
|
|
70
70
|
export interface ParserExecutionLimits {
|
|
71
71
|
/** Maximum UTF-8 source bytes; defaults to 512 KiB. */
|
|
@@ -87,6 +87,18 @@ export interface ParserProcessHandle {
|
|
|
87
87
|
nativeMemory: 'unverified';
|
|
88
88
|
/** Kill owned execution and wait until it has exited. */
|
|
89
89
|
stop(): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* The tail of the child's own standard error, bounded in size.
|
|
92
|
+
*
|
|
93
|
+
* The stream was drained and discarded so a full pipe could not block the
|
|
94
|
+
* child. Draining is right; discarding is not — it threw away the only
|
|
95
|
+
* account of why a worker died, leaving the parent to report the broken pipe
|
|
96
|
+
* it noticed afterwards. Retaining a bounded tail keeps the pipe moving and
|
|
97
|
+
* keeps the cause (T12313).
|
|
98
|
+
*
|
|
99
|
+
* @returns Captured stderr, newest content last; empty when the child said nothing.
|
|
100
|
+
*/
|
|
101
|
+
stderrTail(): string;
|
|
90
102
|
}
|
|
91
103
|
/** Dependency-inverted access to the existing runtime process containment service. */
|
|
92
104
|
export interface ParserExecutionPort {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-symbol.d.ts","sourceRoot":"","sources":["../src/code-symbol.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,8CAA8C;AAC9C,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,MAAM,GACN,MAAM,GACN,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,MAAM,CAAC;AAEX,6EAA6E;AAC7E,MAAM,WAAW,UAAU;IACzB,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,IAAI,EAAE,cAAc,CAAC;IACrB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uCAAuC;AACvC,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,gCAAgC;IAChC,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,8C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,CAAC;IACxB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,gFAAgF;AAChF,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,KAAK,EAAE,YAAY,CAAC;IACpB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,YAAY,EAAE,YAAY,CAAC;IAC3B,yDAAyD;IACzD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB;;;;;;;;;;OAUG;IACH,UAAU,IAAI,MAAM,CAAC;CACtB;AAED,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,mBAAmB,CAAC;CAC/E"}
|
package/dist/code-symbol.js
CHANGED
|
@@ -17,5 +17,5 @@ export const PARSER_WORKER_HEAP_MIN_MB = 8;
|
|
|
17
17
|
/** Largest V8 old-space a parse worker may be given, in MiB. */
|
|
18
18
|
export const PARSER_WORKER_HEAP_MAX_MB = 4_096;
|
|
19
19
|
/** Default V8 old-space per parse worker, in MiB. */
|
|
20
|
-
export const PARSER_WORKER_HEAP_DEFAULT_MB =
|
|
20
|
+
export const PARSER_WORKER_HEAP_DEFAULT_MB = 512;
|
|
21
21
|
//# sourceMappingURL=code-symbol.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/contracts",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.16",
|
|
4
4
|
"description": "Domain types, interfaces, and contracts for the CLEO ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"dependencies": {
|
|
195
195
|
"zod": "^4.3.6",
|
|
196
196
|
"zod-to-json-schema": "^3.25.2",
|
|
197
|
-
"@cleocode/lafs": "2026.9.
|
|
197
|
+
"@cleocode/lafs": "2026.9.16"
|
|
198
198
|
},
|
|
199
199
|
"scripts": {
|
|
200
200
|
"build": "tsc -b --force && node scripts/copy-assets.mjs && node scripts/emit-schemas.mjs",
|
package/src/code-symbol.ts
CHANGED
|
@@ -87,7 +87,7 @@ export const PARSER_WORKER_HEAP_MIN_MB = 8;
|
|
|
87
87
|
export const PARSER_WORKER_HEAP_MAX_MB = 4_096;
|
|
88
88
|
|
|
89
89
|
/** Default V8 old-space per parse worker, in MiB. */
|
|
90
|
-
export const PARSER_WORKER_HEAP_DEFAULT_MB =
|
|
90
|
+
export const PARSER_WORKER_HEAP_DEFAULT_MB = 512;
|
|
91
91
|
|
|
92
92
|
/** Bounds for one native parser invocation; cancellation is cooperative in-process. */
|
|
93
93
|
export interface ParserExecutionLimits {
|
|
@@ -111,6 +111,18 @@ export interface ParserProcessHandle {
|
|
|
111
111
|
nativeMemory: 'unverified';
|
|
112
112
|
/** Kill owned execution and wait until it has exited. */
|
|
113
113
|
stop(): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* The tail of the child's own standard error, bounded in size.
|
|
116
|
+
*
|
|
117
|
+
* The stream was drained and discarded so a full pipe could not block the
|
|
118
|
+
* child. Draining is right; discarding is not — it threw away the only
|
|
119
|
+
* account of why a worker died, leaving the parent to report the broken pipe
|
|
120
|
+
* it noticed afterwards. Retaining a bounded tail keeps the pipe moving and
|
|
121
|
+
* keeps the cause (T12313).
|
|
122
|
+
*
|
|
123
|
+
* @returns Captured stderr, newest content last; empty when the child said nothing.
|
|
124
|
+
*/
|
|
125
|
+
stderrTail(): string;
|
|
114
126
|
}
|
|
115
127
|
|
|
116
128
|
/** Dependency-inverted access to the existing runtime process containment service. */
|