refactor: remove retired agent provider integration

This commit is contained in:
2026-11-12 15:53:33 -08:00
parent d88018fd64
commit 91c7c0310e
42 changed files with 271 additions and 245 deletions
+6 -3
View File
@@ -58,7 +58,7 @@ test("mention invokes only the inline Agent, stores both sides, and replays by r
};
const first = await app.inject({ method: "POST", url: "/v1/chat-completions", headers: auth, payload: body });
assert.equal(first.statusCode, 200, first.body);
assert.equal(first.json().provider, "hermes-agent");
assert.equal(first.json().provider, "sybil-agent");
assert.equal(first.json().message.name, "Sybil Agent");
assert.equal(first.json().message.agentAside, true);
assert.equal(first.json().message.content, "Synthetic Sybil reply");
@@ -66,7 +66,7 @@ test("mention invokes only the inline Agent, stores both sides, and replays by r
const retry = await app.inject({ method: "POST", url: "/v1/chat-completions", headers: auth, payload: body });
assert.equal(retry.statusCode, 200, retry.body);
assert.equal(retry.json().provider, "hermes-agent");
assert.equal(retry.json().provider, "sybil-agent");
assert.equal(retry.json().message.name, "Sybil Agent");
assert.equal(retry.json().message.agentAside, true);
assert.equal(retry.json().message.content, "Synthetic Sybil reply");
@@ -224,9 +224,12 @@ test("streamed mention is idempotent and identifies the inline Agent", async ()
const retry = streamingApp.inject({ method: "POST", url: "/v1/chat-completions/stream", headers: auth, payload });
finish("Synthetic streamed reply");
const [firstResponse, retryResponse] = await Promise.all([first, retry]);
for (const response of [firstResponse, retryResponse]) {
const completedReplay = await streamingApp.inject({ method: "POST", url: "/v1/chat-completions/stream", headers: auth, payload });
for (const response of [firstResponse, retryResponse, completedReplay]) {
assert.equal(response.statusCode, 200, response.body);
assert.match(response.body, /"agentAside":true/);
assert.match(response.body, /"provider":"sybil-agent"/);
assert.match(response.body, /"model":"sybil-agent"/);
assert.match(response.body, /Synthetic streamed reply/);
}
assert.equal(calls, 1);