@cat-factory/kernel 0.224.0 → 0.226.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/dist/domain/catalog.d.ts +13 -1
- package/dist/domain/catalog.d.ts.map +1 -1
- package/dist/domain/catalog.js +16 -2
- package/dist/domain/catalog.js.map +1 -1
- package/dist/domain/change-class.d.ts +47 -1
- package/dist/domain/change-class.d.ts.map +1 -1
- package/dist/domain/change-class.js +59 -0
- package/dist/domain/change-class.js.map +1 -1
- package/dist/domain/llm-rollup.d.ts +51 -4
- package/dist/domain/llm-rollup.d.ts.map +1 -1
- package/dist/domain/llm-rollup.js +77 -5
- package/dist/domain/llm-rollup.js.map +1 -1
- package/dist/domain/seed.d.ts.map +1 -1
- package/dist/domain/seed.js +14 -4
- package/dist/domain/seed.js.map +1 -1
- package/dist/domain/types.d.ts +1 -1
- package/dist/domain/types.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/ports/agent-executor.d.ts +1 -1
- package/dist/ports/index.d.ts +2 -1
- package/dist/ports/index.d.ts.map +1 -1
- package/dist/ports/index.js.map +1 -1
- package/dist/ports/llm-metrics.d.ts +37 -6
- package/dist/ports/llm-metrics.d.ts.map +1 -1
- package/dist/ports/llm-metrics.js.map +1 -1
- package/dist/ports/operational-metrics.d.ts +19 -1
- package/dist/ports/operational-metrics.d.ts.map +1 -1
- package/dist/ports/operational-metrics.js.map +1 -1
- package/dist/ports/runner-transport.d.ts +1 -1
- package/dist/ports/task-repositories.d.ts +24 -1
- package/dist/ports/task-repositories.d.ts.map +1 -1
- package/dist/ports/tutorial-progress-repositories.d.ts +17 -0
- package/dist/ports/tutorial-progress-repositories.d.ts.map +1 -0
- package/dist/ports/tutorial-progress-repositories.js +2 -0
- package/dist/ports/tutorial-progress-repositories.js.map +1 -0
- package/dist/shared/host-markdown.logic.d.ts +59 -0
- package/dist/shared/host-markdown.logic.d.ts.map +1 -1
- package/dist/shared/host-markdown.logic.js +100 -4
- package/dist/shared/host-markdown.logic.js.map +1 -1
- package/package.json +2 -2
|
@@ -21,6 +21,20 @@ export declare const MAX_SECTION_CHARS = 50000;
|
|
|
21
21
|
* (unlike escaping the fences) while guaranteeing the enclosing document stays well-formed.
|
|
22
22
|
*/
|
|
23
23
|
export declare function balanceFences(text: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Drop the trailing fenced block that `text` leaves OPEN, back to the line that opened it.
|
|
26
|
+
*
|
|
27
|
+
* The sibling of {@link balanceFences}, for the one caller that cannot use it: a hard cut against
|
|
28
|
+
* a byte budget. Closing the fence there would ADD characters to text that is already over the
|
|
29
|
+
* limit, and the fence is sized to the longest backtick run in the block, so the amount added is
|
|
30
|
+
* not knowable in advance. Removing is the disposition that fits by construction.
|
|
31
|
+
*
|
|
32
|
+
* It is also the better half to keep. Captured output is bounded from the END (see
|
|
33
|
+
* {@link boundOutput}), so the fragment a cut leaves behind is the head of a log whose failure was
|
|
34
|
+
* reported at its tail: the part nobody opened the report for. The caller's own truncation note is
|
|
35
|
+
* what states the cut.
|
|
36
|
+
*/
|
|
37
|
+
export declare function dropOpenFence(text: string): string;
|
|
24
38
|
/**
|
|
25
39
|
* Render untrusted multi-line prose as a safe markdown block: auto-link triggers defused,
|
|
26
40
|
* length capped, and any code fence the value leaves open closed again.
|
|
@@ -43,6 +57,51 @@ export declare function cell(value: string): string;
|
|
|
43
57
|
* to a caller's own budget, before the escapes, exactly as in {@link prose}.
|
|
44
58
|
*/
|
|
45
59
|
export declare function inline(value: string, max?: number): string;
|
|
60
|
+
/**
|
|
61
|
+
* Render untrusted text as a CODE SPAN in a markdown table cell (a command, a path, a stored id).
|
|
62
|
+
*
|
|
63
|
+
* Pipes are escaped because the GFM table parser splits the row BEFORE inline parsing, so a `\|`
|
|
64
|
+
* reaches the span as a literal `|`. Newlines fold to spaces rather than `cell`'s `<br>`, which
|
|
65
|
+
* inside a code span would render as the four characters it is.
|
|
66
|
+
*/
|
|
67
|
+
export declare function codeCell(value: string, max?: number): string;
|
|
68
|
+
/**
|
|
69
|
+
* Render untrusted text as a CODE SPAN outside a table (a label in a heading, a command on its
|
|
70
|
+
* own line).
|
|
71
|
+
*
|
|
72
|
+
* Deliberately does NOT escape pipes: outside a table row nothing splits on them, and a backslash
|
|
73
|
+
* escape is not honoured inside a code span, so `\|` would reach the reader as `\|`. That is the
|
|
74
|
+
* same split as {@link cell} versus {@link inline}, for the same reason.
|
|
75
|
+
*/
|
|
76
|
+
export declare function inlineCode(value: string, max?: number): string;
|
|
77
|
+
/**
|
|
78
|
+
* Render captured COMMAND OUTPUT as a fenced block the output itself cannot break out of.
|
|
79
|
+
*
|
|
80
|
+
* A test runner, a linter or a compiler legitimately prints backticks (a rule quoting a template
|
|
81
|
+
* literal, a snapshot echoing a fenced fixture), and a fixed three-tick fence closes on the first
|
|
82
|
+
* such run: everything after it lands in the document as prose — the rest of the log, the sections
|
|
83
|
+
* rendered below it, and the machine-readable JSON block that is the report's contract. Sizing the
|
|
84
|
+
* fence one tick longer than the longest run in the body is CommonMark's rule for exactly this, so
|
|
85
|
+
* the block always spans the whole tail.
|
|
86
|
+
*
|
|
87
|
+
* Deliberately NOT `inertLine`d: the host does not auto-link inside a fenced block, so escaping
|
|
88
|
+
* would only show the reader a literal `#` where the command printed a `#`. The fence is the
|
|
89
|
+
* whole boundary here, which is why it has to be the right length.
|
|
90
|
+
*/
|
|
91
|
+
export declare function outputBlock(text: string): string;
|
|
92
|
+
/**
|
|
93
|
+
* Bound a captured output tail, keeping the END of it and SAYING what was cut.
|
|
94
|
+
*
|
|
95
|
+
* The tail is where a failure is reported — a stack trace, an assertion diff, a compiler's error
|
|
96
|
+
* summary — so a prefix cut throws away the half a reviewer opened the report for. Returns the
|
|
97
|
+
* kept text plus how many characters were dropped, so a caller can log the cut in the report's own
|
|
98
|
+
* `truncations` rather than presenting a shortened log as a whole one.
|
|
99
|
+
*/
|
|
100
|
+
export declare function boundOutput(text: string, max: number): {
|
|
101
|
+
text: string;
|
|
102
|
+
dropped: number;
|
|
103
|
+
total: number;
|
|
104
|
+
};
|
|
46
105
|
/** Cap a list at {@link MAX_LIST_ITEMS}, returning the kept rows plus how many were dropped. */
|
|
47
106
|
export declare function capList<T>(items: readonly T[]): {
|
|
48
107
|
items: T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-markdown.logic.d.ts","sourceRoot":"","sources":["../../src/shared/host-markdown.logic.ts"],"names":[],"mappings":"AA4BA,+FAA+F;AAC/F,eAAO,MAAM,eAAe,OAAQ,CAAA;AACpC,sEAAsE;AACtE,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,yEAAyE;AACzE,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"host-markdown.logic.d.ts","sourceRoot":"","sources":["../../src/shared/host-markdown.logic.ts"],"names":[],"mappings":"AA4BA,+FAA+F;AAC/F,eAAO,MAAM,eAAe,OAAQ,CAAA;AACpC,sEAAsE;AACtE,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,yEAAyE;AACzE,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAgHvC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIlD;AAWD;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAwB,GAAG,MAAM,CAQ1E;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK1C;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAuB,GAAG,MAAM,CAE1E;AAwBD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAuB,GAAG,MAAM,CAE5E;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAuB,GAAG,MAAM,CAE9E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAIlD;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG;IAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAG/E"}
|
|
@@ -117,19 +117,21 @@ function fenceAt(line) {
|
|
|
117
117
|
* Walk `lines`, tracking fenced-code state, and hand each line to `visit` together with
|
|
118
118
|
* whether it sits INSIDE a fenced block. Returns the fence still open at the end, if any.
|
|
119
119
|
*
|
|
120
|
-
* One shared walker so the
|
|
121
|
-
*
|
|
120
|
+
* One shared walker so the three things that care about fences (leaving code untouched, closing
|
|
121
|
+
* what the text left open, and dropping a block a hard cut landed inside) can never disagree
|
|
122
|
+
* about where a block starts and ends. `at` is the index of the line that OPENED the fence still
|
|
123
|
+
* standing, which is the only thing a caller cutting text back needs and the walker alone knows.
|
|
122
124
|
*/
|
|
123
125
|
function walkFences(lines, visit) {
|
|
124
126
|
let open = null;
|
|
125
|
-
for (const line of lines) {
|
|
127
|
+
for (const [index, line] of lines.entries()) {
|
|
126
128
|
const fence = fenceAt(line);
|
|
127
129
|
// The fence line itself belongs to the code block, so it is never rewritten.
|
|
128
130
|
visit(line, open !== null || fence !== null);
|
|
129
131
|
if (!fence)
|
|
130
132
|
continue;
|
|
131
133
|
if (!open)
|
|
132
|
-
open = { char: fence.char, length: fence.length };
|
|
134
|
+
open = { char: fence.char, length: fence.length, at: index };
|
|
133
135
|
else if (fence.char === open.char && fence.length >= open.length && !fence.info)
|
|
134
136
|
open = null;
|
|
135
137
|
}
|
|
@@ -147,6 +149,24 @@ export function balanceFences(text) {
|
|
|
147
149
|
const open = walkFences(text.split('\n'), () => { });
|
|
148
150
|
return open ? `${text}\n${open.char.repeat(open.length)}` : text;
|
|
149
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Drop the trailing fenced block that `text` leaves OPEN, back to the line that opened it.
|
|
154
|
+
*
|
|
155
|
+
* The sibling of {@link balanceFences}, for the one caller that cannot use it: a hard cut against
|
|
156
|
+
* a byte budget. Closing the fence there would ADD characters to text that is already over the
|
|
157
|
+
* limit, and the fence is sized to the longest backtick run in the block, so the amount added is
|
|
158
|
+
* not knowable in advance. Removing is the disposition that fits by construction.
|
|
159
|
+
*
|
|
160
|
+
* It is also the better half to keep. Captured output is bounded from the END (see
|
|
161
|
+
* {@link boundOutput}), so the fragment a cut leaves behind is the head of a log whose failure was
|
|
162
|
+
* reported at its tail: the part nobody opened the report for. The caller's own truncation note is
|
|
163
|
+
* what states the cut.
|
|
164
|
+
*/
|
|
165
|
+
export function dropOpenFence(text) {
|
|
166
|
+
const lines = text.split('\n');
|
|
167
|
+
const open = walkFences(lines, () => { });
|
|
168
|
+
return open ? lines.slice(0, open.at).join('\n').trimEnd() : text;
|
|
169
|
+
}
|
|
150
170
|
/** Cut `value` to `max` characters, marking the cut. Prefers a line boundary when one is near. */
|
|
151
171
|
function truncate(value, max) {
|
|
152
172
|
if (value.length <= max)
|
|
@@ -193,6 +213,82 @@ export function cell(value) {
|
|
|
193
213
|
export function inline(value, max = MAX_CELL_CHARS) {
|
|
194
214
|
return inertLine(truncate(value.replace(/\s+/g, ' '), max));
|
|
195
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Wrap already-flattened text in a code span whose delimiter the text cannot break out of.
|
|
218
|
+
*
|
|
219
|
+
* The inline twin of {@link outputBlock}, and it exists for the same reason: a hand-written
|
|
220
|
+
* `` `${cell(value)}` `` looks safe and is not, because {@link cell} escapes pipes, newlines and
|
|
221
|
+
* the auto-link triggers but NOT backticks. A value carrying one closes the span early, and the
|
|
222
|
+
* rest of it lands in the document as prose, where a `#`/`@`/closing keyword the caller believed
|
|
223
|
+
* was inert (the escapes deliberately skip code spans, since the host does not auto-link there)
|
|
224
|
+
* is suddenly live. Sizing the delimiter one tick past the longest run inside is CommonMark's
|
|
225
|
+
* rule for exactly this.
|
|
226
|
+
*
|
|
227
|
+
* The space padding is CommonMark's too: a span whose content begins or ends with a backtick
|
|
228
|
+
* needs one space on each side, and the renderer strips a single leading+trailing space back off.
|
|
229
|
+
*/
|
|
230
|
+
function codeSpan(text) {
|
|
231
|
+
if (!text)
|
|
232
|
+
return '';
|
|
233
|
+
const longestRun = Math.max(0, ...[...text.matchAll(/`+/g)].map((m) => m[0].length));
|
|
234
|
+
const ticks = '`'.repeat(longestRun + 1);
|
|
235
|
+
const pad = text.startsWith('`') || text.endsWith('`') ? ' ' : '';
|
|
236
|
+
return `${ticks}${pad}${text}${pad}${ticks}`;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Render untrusted text as a CODE SPAN in a markdown table cell (a command, a path, a stored id).
|
|
240
|
+
*
|
|
241
|
+
* Pipes are escaped because the GFM table parser splits the row BEFORE inline parsing, so a `\|`
|
|
242
|
+
* reaches the span as a literal `|`. Newlines fold to spaces rather than `cell`'s `<br>`, which
|
|
243
|
+
* inside a code span would render as the four characters it is.
|
|
244
|
+
*/
|
|
245
|
+
export function codeCell(value, max = MAX_CELL_CHARS) {
|
|
246
|
+
return codeSpan(truncate(value.replace(/\s+/g, ' '), max).replaceAll('|', '\\|'));
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Render untrusted text as a CODE SPAN outside a table (a label in a heading, a command on its
|
|
250
|
+
* own line).
|
|
251
|
+
*
|
|
252
|
+
* Deliberately does NOT escape pipes: outside a table row nothing splits on them, and a backslash
|
|
253
|
+
* escape is not honoured inside a code span, so `\|` would reach the reader as `\|`. That is the
|
|
254
|
+
* same split as {@link cell} versus {@link inline}, for the same reason.
|
|
255
|
+
*/
|
|
256
|
+
export function inlineCode(value, max = MAX_CELL_CHARS) {
|
|
257
|
+
return codeSpan(truncate(value.replace(/\s+/g, ' '), max));
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Render captured COMMAND OUTPUT as a fenced block the output itself cannot break out of.
|
|
261
|
+
*
|
|
262
|
+
* A test runner, a linter or a compiler legitimately prints backticks (a rule quoting a template
|
|
263
|
+
* literal, a snapshot echoing a fenced fixture), and a fixed three-tick fence closes on the first
|
|
264
|
+
* such run: everything after it lands in the document as prose — the rest of the log, the sections
|
|
265
|
+
* rendered below it, and the machine-readable JSON block that is the report's contract. Sizing the
|
|
266
|
+
* fence one tick longer than the longest run in the body is CommonMark's rule for exactly this, so
|
|
267
|
+
* the block always spans the whole tail.
|
|
268
|
+
*
|
|
269
|
+
* Deliberately NOT `inertLine`d: the host does not auto-link inside a fenced block, so escaping
|
|
270
|
+
* would only show the reader a literal `#` where the command printed a `#`. The fence is the
|
|
271
|
+
* whole boundary here, which is why it has to be the right length.
|
|
272
|
+
*/
|
|
273
|
+
export function outputBlock(text) {
|
|
274
|
+
const longestRun = Math.max(0, ...[...text.matchAll(/`+/g)].map((m) => m[0].length));
|
|
275
|
+
const fence = '`'.repeat(Math.max(3, longestRun + 1));
|
|
276
|
+
return `${fence}\n${text.replace(/\r\n?/g, '\n').replace(/\n+$/, '')}\n${fence}`;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Bound a captured output tail, keeping the END of it and SAYING what was cut.
|
|
280
|
+
*
|
|
281
|
+
* The tail is where a failure is reported — a stack trace, an assertion diff, a compiler's error
|
|
282
|
+
* summary — so a prefix cut throws away the half a reviewer opened the report for. Returns the
|
|
283
|
+
* kept text plus how many characters were dropped, so a caller can log the cut in the report's own
|
|
284
|
+
* `truncations` rather than presenting a shortened log as a whole one.
|
|
285
|
+
*/
|
|
286
|
+
export function boundOutput(text, max) {
|
|
287
|
+
const total = text.length;
|
|
288
|
+
if (total <= max)
|
|
289
|
+
return { text, dropped: 0, total };
|
|
290
|
+
return { text: text.slice(total - max), dropped: total - max, total };
|
|
291
|
+
}
|
|
196
292
|
/** Cap a list at {@link MAX_LIST_ITEMS}, returning the kept rows plus how many were dropped. */
|
|
197
293
|
export function capList(items) {
|
|
198
294
|
if (items.length <= MAX_LIST_ITEMS)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-markdown.logic.js","sourceRoot":"","sources":["../../src/shared/host-markdown.logic.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+EAA+E;AAC/E,EAAE;AACF,2FAA2F;AAC3F,6FAA6F;AAC7F,wFAAwF;AACxF,4FAA4F;AAC5F,4DAA4D;AAC5D,EAAE;AACF,yFAAyF;AACzF,qFAAqF;AACrF,6FAA6F;AAC7F,4FAA4F;AAC5F,2FAA2F;AAC3F,0CAA0C;AAC1C,EAAE;AACF,6FAA6F;AAC7F,8FAA8F;AAC9F,gFAAgF;AAChF,6FAA6F;AAC7F,6FAA6F;AAC7F,2FAA2F;AAC3F,SAAS;AACT,EAAE;AACF,6FAA6F;AAC7F,qDAAqD;AACrD,8EAA8E;AAE9E,+FAA+F;AAC/F,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAA;AACpC,sEAAsE;AACtE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;AACjC,yEAAyE;AACzE,MAAM,CAAC,MAAM,cAAc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.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.226.0",
|
|
4
4
|
"description": "Shared vocabulary, pure logic, and port interfaces for the Agent Architecture Board.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ai": "^7.0.47",
|
|
28
28
|
"yaml": "^2.9.0",
|
|
29
|
-
"@cat-factory/contracts": "0.
|
|
29
|
+
"@cat-factory/contracts": "0.224.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@vitest/coverage-v8": "^4.1.10",
|