feat(ql3): expose fenced copilot diagnosis API

This commit is contained in:
whyour
2026-08-15 23:45:13 +08:00
parent 0a31c3364b
commit 774af4a4c9
10 changed files with 845 additions and 5 deletions
@@ -117,7 +117,7 @@ async function projectedFile(root, name, bytes) {
await chmod(join(root, name), 0o440);
}
test('Copilot composition is explicit, shares the Prompt gateway and exposes no route', async () => {
test('Copilot composition is explicit, shares the Prompt gateway and injects one route capability', async () => {
const secretRoot = await mkdtemp(join(tmpdir(), 'ql3-cluster-ai-secret-'));
const configRoot = await mkdtemp(join(tmpdir(), 'ql3-copilot-config-'));
const invocationRoot = await mkdtemp(join(tmpdir(), 'ql3-copilot-invocation-'));
@@ -229,7 +229,7 @@ test('Copilot composition is explicit, shares the Prompt gateway and exposes no
assert.equal(created.gateway, gateway);
assert.equal(created.successfulCompletion, registeredSink);
assert.equal(created.artifactStore, artifactStore);
assert.equal('copilot' in controlOptions, false);
assert.equal(controlOptions.copilotFailureDiagnosis.capability, copilot);
assert.equal(await application.stop(), 'stopped');
} finally {
config.fill(0); invocation.fill(0); result.fill(0); output.fill(0);