@hearsay-tools/squawk 0.18.0-pr4184.8083 → 0.18.0-pr4187.8097
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/runs/lifecycle.d.ts +6 -3
- package/dist/runs/lifecycle.js.map +1 -1
- package/dist/runs/run-persistence.d.ts +4 -0
- package/dist/runs/run-persistence.js +13 -1
- package/dist/runs/run-persistence.js.map +1 -1
- package/dist/runs/run-retention.js +6 -2
- package/dist/runs/run-retention.js.map +1 -1
- package/dist/runs/store.js +1 -0
- package/dist/runs/store.js.map +1 -1
- package/dist/server/server.d.ts +58 -58
- package/dist/workflows/run/completion-gate.js +1 -1
- package/dist/workflows/run/completion-gate.js.map +1 -1
- package/dist/workflows/run/family-reconciler.js +2 -2
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/wait-engine.js +4 -1
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wake-admission.js +1 -1
- package/dist/workflows/run/wake-admission.js.map +1 -1
- package/dist/workflows/wait-scope.js +4 -1
- package/dist/workflows/wait-scope.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-ci-tool.mjs +52 -4
- package/scripts/mock-claude.mjs +2 -12
- package/scripts/mock-fixture-runner.mjs +167 -12
- package/scripts/mock-scenario.mjs +16 -2
- package/scripts/parity-rows.ts +4 -0
package/scripts/mock-ci-tool.mjs
CHANGED
|
@@ -1,26 +1,74 @@
|
|
|
1
1
|
// Offline harness fixtures share the real bundled MCP protocol, never a fake receipt.
|
|
2
|
+
import { randomUUID } from 'node:crypto';
|
|
2
3
|
import { existsSync } from 'node:fs';
|
|
4
|
+
import { request } from 'node:http';
|
|
3
5
|
import { publishFile } from './mock-publish.mjs';
|
|
4
6
|
import { basename } from 'node:path';
|
|
5
7
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
6
8
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
7
9
|
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
8
10
|
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
11
|
+
import { productEnv } from './product-env.mjs';
|
|
9
12
|
|
|
10
13
|
export async function probeCiTool(backend, wire, pr = process.env.CEZ_MOCK_CI_PR) {
|
|
11
14
|
if (!pr) return;
|
|
12
15
|
return probeSquawkTool(backend, wire, 'cezar_wait', { kind: 'pr', pr });
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
// Calls one Squawk tool the way the real harness would: through the wired MCP server (or Pi/OMP extension)
|
|
18
|
+
// Calls one Squawk tool the way the real harness would: through the wired MCP server (or Pi/OMP extension),
|
|
19
|
+
// or directly over the private tool IPC socket for the test-only fixture runner.
|
|
16
20
|
export async function probeSquawkTool(backend, wire, name, args, record = true) {
|
|
17
|
-
const result = backend === '
|
|
18
|
-
? await
|
|
19
|
-
:
|
|
21
|
+
const result = backend === 'fixture'
|
|
22
|
+
? await probeFixtureSocketTool(name, args)
|
|
23
|
+
: backend === 'pi' || backend === 'omp'
|
|
24
|
+
? await probeExtensionTool(backend, wire, name, args)
|
|
25
|
+
: await probeMcpTool(mcpServerOf(backend, wire), name, args);
|
|
20
26
|
if (record && process.env.CEZ_MOCK_CI_RESULT) publishFile(process.env.CEZ_MOCK_CI_RESULT, JSON.stringify(result));
|
|
21
27
|
return result;
|
|
22
28
|
}
|
|
23
29
|
|
|
30
|
+
/** Direct Unix-socket IPC call for the test-only fixture runner: real tool controller, zero MCP spawn overhead. */
|
|
31
|
+
async function probeFixtureSocketTool(name, args) {
|
|
32
|
+
const socketPath = productEnv('TOOL_SOCKET');
|
|
33
|
+
const token = productEnv('TOOL_TOKEN');
|
|
34
|
+
if (!socketPath || !token) throw new Error('CI server absent');
|
|
35
|
+
const body = name === 'cezar_wait' && args && typeof args === 'object' && !Array.isArray(args) && !('operation_id' in args)
|
|
36
|
+
? { ...args, operation_id: randomUUID() }
|
|
37
|
+
: args;
|
|
38
|
+
const response = await new Promise((resolve, reject) => {
|
|
39
|
+
const req = request({
|
|
40
|
+
socketPath,
|
|
41
|
+
agent: false,
|
|
42
|
+
path: `/api/v1/tools/${encodeURIComponent(name)}`,
|
|
43
|
+
method: 'POST',
|
|
44
|
+
headers: {
|
|
45
|
+
authorization: `Bearer ${token}`,
|
|
46
|
+
'content-type': 'application/json',
|
|
47
|
+
accept: 'application/x-squawk-tool-result+json',
|
|
48
|
+
},
|
|
49
|
+
}, res => {
|
|
50
|
+
const chunks = [];
|
|
51
|
+
res.on('data', chunk => chunks.push(chunk));
|
|
52
|
+
res.on('error', reject);
|
|
53
|
+
res.on('end', () => {
|
|
54
|
+
try {
|
|
55
|
+
const parsed = JSON.parse(Buffer.concat(chunks).toString('utf8'));
|
|
56
|
+
if (res.statusCode !== 200 && !parsed?.content) {
|
|
57
|
+
resolve({ isError: true, content: [{ type: 'text', text: JSON.stringify(parsed) }] });
|
|
58
|
+
} else {
|
|
59
|
+
resolve(parsed);
|
|
60
|
+
}
|
|
61
|
+
} catch (error) {
|
|
62
|
+
reject(error);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
req.on('error', reject);
|
|
67
|
+
req.end(JSON.stringify(body ?? {}));
|
|
68
|
+
});
|
|
69
|
+
return { names: [], response };
|
|
70
|
+
}
|
|
71
|
+
|
|
24
72
|
/** Pi and OMP load the tools as an extension the mock imports and calls in process. */
|
|
25
73
|
async function probeExtensionTool(backend, wire, name, args) {
|
|
26
74
|
const extensions = wire.flatMap((arg, index) => arg === '--extension' ? [wire[index + 1]] : []);
|
package/scripts/mock-claude.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { claudeTrigger, skillFrames, knownSkill, SKILL_TOKEN } from './mock-skil
|
|
|
3
3
|
import { productEnv } from './product-env.mjs';
|
|
4
4
|
import { CLAUDE_FAILURES } from './mock-provider-failures.mjs';
|
|
5
5
|
import { loadControls } from './mock-controls.mjs';
|
|
6
|
-
import { scenarioFor, play, afterParityPark } from './mock-scenario.mjs';
|
|
6
|
+
import { scenarioFor, play, afterParityPark, holdSteerLines } from './mock-scenario.mjs';
|
|
7
7
|
import { closeSync } from 'node:fs';
|
|
8
8
|
import { createInterface } from 'node:readline';
|
|
9
9
|
import { appendFileSync, readFileSync, writeFileSync } from 'node:fs';
|
|
@@ -40,17 +40,7 @@ function writeNotesTrace(userText) {
|
|
|
40
40
|
// read-only cwd — the mock still works, just without a diff
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
// until it has read n steered lines, so a loaded host cannot close the turn first (hearsay-tools/cezarion#1280).
|
|
45
|
-
async function holdSteerTool() {
|
|
46
|
-
const lines = Number(process.env.CEZ_MOCK_STEER_LINES ?? 0);
|
|
47
|
-
if (!lines) { await sleep(Number(process.env.CEZ_MOCK_STEER_MS ?? 600)); return; }
|
|
48
|
-
const deadline = Date.now() + 15_000;
|
|
49
|
-
while (steering.length < lines) {
|
|
50
|
-
if (Date.now() > deadline) throw new Error(`CEZ_MOCK_STEER_LINES: ${steering.length} of ${lines} steered lines arrived`);
|
|
51
|
-
await sleep(10);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
43
|
+
const holdSteerTool = () => holdSteerLines(() => steering.length);
|
|
54
44
|
// Lines a `mock:ack-only` reply read and never answered (hearsay-tools/cezarion#1301): the turn they
|
|
55
45
|
// opened is still running, so the next turn's result settles them with its own, as Claude settles
|
|
56
46
|
// every line one turn consumed (#505).
|
|
@@ -1,15 +1,172 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The fixture runner's native mock (src/runners/fixture/): newline-delimited JSON over stdio.
|
|
3
|
-
// stdin takes `{"type":"prompt","text":"..."}`; stdout answers `ready`, then per prompt
|
|
4
|
-
// `
|
|
5
|
-
// `
|
|
3
|
+
// stdin takes `{"type":"prompt","text":"...","id":"..."}`; stdout answers `ready`, then per prompt
|
|
4
|
+
// `consumed` (when `id` is set), `turn-start`, `text`/`tool-start`/`tool-end`/`reasoning`/`progress`,
|
|
5
|
+
// `usage` and `turn-end` (or `error`). Drives the shared `mock-scenario.mjs` catalog and calls
|
|
6
|
+
// Squawk tools directly over `CEZ_TOOL_SOCKET` without spawning an MCP server subprocess.
|
|
7
|
+
import { appendFileSync, closeSync } from 'node:fs';
|
|
6
8
|
import readline from 'node:readline';
|
|
9
|
+
import { loadControls } from './mock-controls.mjs';
|
|
10
|
+
import { answerNudge } from './mock-nudge.mjs';
|
|
11
|
+
import { holdSteerLines, play, scenarioFor } from './mock-scenario.mjs';
|
|
12
|
+
import { withoutSessionContext } from './mock-session-context.mjs';
|
|
13
|
+
|
|
14
|
+
const { failureControl, delivery } = await loadControls({ failure: ['provider', 'usage-limit', 'unread'], delivery: ['hold-response'] });
|
|
7
15
|
|
|
8
16
|
const write = (value) => process.stdout.write(`${JSON.stringify(value)}\n`);
|
|
9
17
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
18
|
+
const tools = () => import('./mock-ci-tool.mjs');
|
|
19
|
+
async function lifecycle(call) {
|
|
20
|
+
return (await tools()).lifecycleCall('fixture', process.argv.slice(2), ...call);
|
|
21
|
+
}
|
|
10
22
|
|
|
11
23
|
process.on('SIGTERM', () => process.exit(143));
|
|
12
|
-
|
|
24
|
+
|
|
25
|
+
if (process.env.CEZ_MOCK_ARGS_FILE) {
|
|
26
|
+
try { appendFileSync(process.env.CEZ_MOCK_ARGS_FILE, `${JSON.stringify(process.argv.slice(2))}\n`); } catch {}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const sessionFlag = process.argv.includes('--resume') ? '--resume' : '--session-id';
|
|
30
|
+
const sessionIndex = process.argv.indexOf(sessionFlag);
|
|
31
|
+
const sessionId = sessionIndex >= 0 && process.argv[sessionIndex + 1] ? process.argv[sessionIndex + 1] : 'fixture-session-1';
|
|
32
|
+
write({ type: 'ready', sessionId });
|
|
33
|
+
|
|
34
|
+
const scenarioContext = {
|
|
35
|
+
runner: 'fixture',
|
|
36
|
+
lifecycle,
|
|
37
|
+
session: {},
|
|
38
|
+
unsupported: [],
|
|
39
|
+
nativeFailureControl: Boolean(failureControl),
|
|
40
|
+
toolPrompt: async (prompt) => (await tools()).toolPrompt('fixture', process.argv.slice(2), prompt),
|
|
41
|
+
ciPrompt: async (prompt) => (await tools()).ciPrompt('fixture', process.argv.slice(2), prompt),
|
|
42
|
+
async crash(prompt) {
|
|
43
|
+
const { crashWithStderr } = await import('./mock-runner-crash.mjs');
|
|
44
|
+
crashWithStderr(prompt, '{"type":"text",');
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
let heldIds = [];
|
|
49
|
+
let steering = null;
|
|
50
|
+
|
|
51
|
+
function recordStdin(userText) {
|
|
52
|
+
if (!process.env.CEZ_MOCK_STDIN_FILE) return;
|
|
53
|
+
try { appendFileSync(process.env.CEZ_MOCK_STDIN_FILE, `${JSON.stringify({ userText })}\n`); } catch {}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const holdSteerTool = () => holdSteerLines(() => (steering ? steering.length : Number.POSITIVE_INFINITY));
|
|
57
|
+
|
|
58
|
+
function failureMessage(kind) {
|
|
59
|
+
if (kind === 'usage-limit') {
|
|
60
|
+
const configured = Number(process.env.CEZ_MOCK_LIMIT_RESET_SECONDS ?? '60');
|
|
61
|
+
const seconds = Number.isFinite(configured) ? configured : 60;
|
|
62
|
+
return `Claude AI usage limit reached|${Math.floor(Date.now() / 1000) + seconds}`;
|
|
63
|
+
}
|
|
64
|
+
return 'fixture provider rejected the request (API Error: 400 invalid_request_error)';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function scenarioEncoder(scenario, prompt, id) {
|
|
68
|
+
const name = scenario.name;
|
|
69
|
+
let steered = [];
|
|
70
|
+
let turnOpened = false;
|
|
71
|
+
const openTurn = () => {
|
|
72
|
+
if (turnOpened) return;
|
|
73
|
+
turnOpened = true;
|
|
74
|
+
write({ type: 'turn-start' });
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
closeInput: () => closeSync(0),
|
|
78
|
+
open(step) {
|
|
79
|
+
if (name === 'ack-only') {
|
|
80
|
+
if (id) heldIds.push(id);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (step?.ackOnly) return;
|
|
84
|
+
openTurn();
|
|
85
|
+
if (name === 'steer-tool') steering = [];
|
|
86
|
+
},
|
|
87
|
+
hold: () => holdSteerTool(),
|
|
88
|
+
reply: () => handlePrompt(prompt, id, false),
|
|
89
|
+
text(step) {
|
|
90
|
+
openTurn();
|
|
91
|
+
write({ type: 'text', text: step.parts.join('') });
|
|
92
|
+
},
|
|
93
|
+
reasoning(step) {
|
|
94
|
+
openTurn();
|
|
95
|
+
write({ type: 'reasoning', text: step.text });
|
|
96
|
+
},
|
|
97
|
+
toolStart({ call }) {
|
|
98
|
+
openTurn();
|
|
99
|
+
write({ type: 'tool-start', call });
|
|
100
|
+
},
|
|
101
|
+
toolEnd({ call }) {
|
|
102
|
+
write({ type: 'tool-end', call });
|
|
103
|
+
},
|
|
104
|
+
child(_step, playChild) {
|
|
105
|
+
return playChild(scenarioEncoder(scenario, prompt, id));
|
|
106
|
+
},
|
|
107
|
+
progress: () => write({ type: 'progress' }),
|
|
108
|
+
readSteers() {
|
|
109
|
+
steered = steering ?? [];
|
|
110
|
+
steering = null;
|
|
111
|
+
const ids = steered.map((line) => line.id).filter(Boolean);
|
|
112
|
+
if (ids.length) write({ type: 'consumed', ids });
|
|
113
|
+
return steered.map((line) => line.userText);
|
|
114
|
+
},
|
|
115
|
+
end(step) {
|
|
116
|
+
if (step?.error) {
|
|
117
|
+
openTurn();
|
|
118
|
+
write({ type: 'error', message: failureMessage(step.error) });
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
openTurn();
|
|
122
|
+
write({ type: 'usage', input: 12, output: 8 });
|
|
123
|
+
const consumedIds = [...heldIds.splice(0), ...(id ? [id] : []), ...steered.map((line) => line.id).filter(Boolean)];
|
|
124
|
+
write({ type: 'turn-end', ...(consumedIds.length ? { consumedIds } : {}) });
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
async function resolveFailure(rawText, text) {
|
|
130
|
+
const selected = failureControl?.failureFor(rawText) ?? failureControl?.failureFor(text);
|
|
131
|
+
const resolved = selected instanceof Promise ? await selected : selected;
|
|
132
|
+
if (resolved) return resolved;
|
|
133
|
+
if (failureControl?.failure !== 'provider' && text.includes('mock:auth-error')) return 'provider';
|
|
134
|
+
if (failureControl?.failure !== 'usage-limit' && text.includes('mock:limit')) return 'usage-limit';
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async function runScenario(scenario, text, id) {
|
|
139
|
+
if (!scenario) return false;
|
|
140
|
+
return await play(scenario, scenarioEncoder(scenario, text, id)) !== 'continue';
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function writeDefaultTurn(text, id) {
|
|
144
|
+
write({ type: 'turn-start' });
|
|
145
|
+
write({ type: 'text', text: `fixture reply to: ${text}` });
|
|
146
|
+
write({ type: 'usage', input: 12, output: 8 });
|
|
147
|
+
const consumedIds = [...heldIds.splice(0), ...(id ? [id] : [])];
|
|
148
|
+
write({ type: 'turn-end', ...(consumedIds.length ? { consumedIds } : {}) });
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
async function handlePrompt(rawText, id, record = true) {
|
|
152
|
+
if (record) recordStdin(rawText);
|
|
153
|
+
if (delivery) await delivery.holdResponse(rawText);
|
|
154
|
+
const text = withoutSessionContext(answerNudge(rawText));
|
|
155
|
+
const nativeFailure = await resolveFailure(rawText, text);
|
|
156
|
+
if (nativeFailure === 'unread') process.exit(1);
|
|
157
|
+
if (id) write({ type: 'consumed', ids: [id] });
|
|
158
|
+
const early = scenarioFor(text, scenarioContext);
|
|
159
|
+
if (early?.beforeFailure && await runScenario(early, text, id)) return;
|
|
160
|
+
if (text.includes('mock:slow')) await sleep(25_000);
|
|
161
|
+
if (nativeFailure === 'provider' || nativeFailure === 'usage-limit') {
|
|
162
|
+
write({ type: 'turn-start' });
|
|
163
|
+
write({ type: 'error', message: failureMessage(nativeFailure) });
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const matched = early && !early.beforeFailure ? early : scenarioFor(text, scenarioContext);
|
|
167
|
+
if (matched && !matched.beforeFailure && await runScenario(matched, text, id)) return;
|
|
168
|
+
writeDefaultTurn(text, id);
|
|
169
|
+
}
|
|
13
170
|
|
|
14
171
|
const lines = readline.createInterface({ input: process.stdin });
|
|
15
172
|
let chain = Promise.resolve();
|
|
@@ -17,13 +174,11 @@ lines.on('line', (line) => {
|
|
|
17
174
|
let message;
|
|
18
175
|
try { message = JSON.parse(line); } catch { return; }
|
|
19
176
|
if (message?.type !== 'prompt') return;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
write({ type: 'turn-end' });
|
|
27
|
-
});
|
|
177
|
+
if (steering !== null) {
|
|
178
|
+
recordStdin(message.text);
|
|
179
|
+
steering.push({ id: message.id, userText: message.text });
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
chain = chain.then(() => handlePrompt(message.text, message.id));
|
|
28
183
|
});
|
|
29
184
|
lines.on('close', () => { chain.then(() => process.exit(0)); });
|
|
@@ -15,6 +15,20 @@ const QUESTIONS = [{ header: 'Library', question: 'Which test library?', multiSe
|
|
|
15
15
|
const tool = (id, name, input, output) => ({ id, name, input, output, isError: false });
|
|
16
16
|
const calls = call => [{ kind: 'toolStart', call }, { kind: 'toolEnd', call }];
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Hold `mock:steer-tool` for `CEZ_MOCK_STEER_MS`, or with `CEZ_MOCK_STEER_LINES=<n>` until
|
|
20
|
+
* `readCount()` reaches `n`, so a loaded host cannot close the turn first (hearsay-tools/cezarion#1280).
|
|
21
|
+
*/
|
|
22
|
+
export async function holdSteerLines(readCount) {
|
|
23
|
+
const lines = Number(process.env.CEZ_MOCK_STEER_LINES ?? 0);
|
|
24
|
+
if (!lines) { await sleep(Number(process.env.CEZ_MOCK_STEER_MS ?? 600)); return; }
|
|
25
|
+
const deadline = Date.now() + 15_000;
|
|
26
|
+
while (readCount() < lines) {
|
|
27
|
+
if (Date.now() > deadline) throw new Error(`CEZ_MOCK_STEER_LINES: ${readCount()} of ${lines} steered lines arrived`);
|
|
28
|
+
await sleep(10);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
18
32
|
/** Shared post-park gate. The encoder keeps child attribution and native barriers. */
|
|
19
33
|
export async function afterParityPark(prompt) {
|
|
20
34
|
const gate = /parity-release=([^\s"\\]+)/.exec(prompt)?.[1];
|
|
@@ -249,8 +263,8 @@ function* steerTool(context) {
|
|
|
249
263
|
yield { kind: 'hold', ms: Number(process.env.CEZ_MOCK_STEER_MS ?? 600) };
|
|
250
264
|
yield { kind: 'toolEnd', call };
|
|
251
265
|
yield { kind: 'readSteers', receive: texts => { admitted = texts ?? []; } };
|
|
252
|
-
// Both versions are pinned: Claude/Codex echo steers; pi/OMP finish in plain text.
|
|
253
|
-
const echoes = context.runner === 'claude' || context.runner === 'codex';
|
|
266
|
+
// Both versions are pinned: Claude/Codex/fixture echo steers; pi/OMP finish in plain text.
|
|
267
|
+
const echoes = context.runner === 'claude' || context.runner === 'codex' || context.runner === 'fixture';
|
|
254
268
|
yield text(['steer tool done', ...(echoes ? admitted.map(value => `saw: ${value}`) : [])].join('\n'));
|
|
255
269
|
yield end();
|
|
256
270
|
}
|
package/scripts/parity-rows.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { BUILT_IN_RUNNER_IDS } from '../src/runners/ids.ts';
|
|
|
13
13
|
import { parseArgs } from 'node:util';
|
|
14
14
|
|
|
15
15
|
import * as harnessCore from '../src/core/harness-parity-core.testkit.ts';
|
|
16
|
+
import * as parityExemptions from '../src/core/parity-exemptions.testkit.ts';
|
|
16
17
|
import * as harnessRows from '../src/core/harness-parity-rows.testkit.ts';
|
|
17
18
|
import { PARITY_ROW_ID } from '../src/core/parity-classes.testkit.ts';
|
|
18
19
|
import * as seamContract from '../src/core/seam-contract.testkit.ts';
|
|
@@ -20,16 +21,19 @@ import * as monitoringTurn from '../src/workflows/monitoring-turn.testkit.ts';
|
|
|
20
21
|
import * as waits from '../src/workflows/waits-parity.testkit.ts';
|
|
21
22
|
import * as uiRows from '../src/core/ui-parity-rows.testkit.ts';
|
|
22
23
|
import * as subagents from '../src/workflows/waits-subagents-rows.testkit.ts';
|
|
24
|
+
import * as subagentExemptions from '../src/workflows/waits-subagents-exemptions.testkit.ts';
|
|
23
25
|
|
|
24
26
|
/** The kit modules that declare rows, by path under `packages/cezar/src`. */
|
|
25
27
|
const KITS: Readonly<Record<string, object>> = {
|
|
26
28
|
'core/ui-parity-rows.testkit.ts': uiRows,
|
|
27
29
|
'core/harness-parity-core.testkit.ts': harnessCore,
|
|
30
|
+
'core/parity-exemptions.testkit.ts': parityExemptions,
|
|
28
31
|
'core/harness-parity-rows.testkit.ts': harnessRows,
|
|
29
32
|
'core/seam-contract.testkit.ts': seamContract,
|
|
30
33
|
'workflows/monitoring-turn.testkit.ts': monitoringTurn,
|
|
31
34
|
'workflows/waits-parity.testkit.ts': waits,
|
|
32
35
|
'workflows/waits-subagents-rows.testkit.ts': subagents,
|
|
36
|
+
'workflows/waits-subagents-exemptions.testkit.ts': subagentExemptions,
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
export interface IndexedExemption {
|