mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-16 14:01:06 +00:00
chat titles
This commit is contained in:
parent
ce61669442
commit
a5f4b58221
3 changed files with 128 additions and 19 deletions
|
|
@ -4,6 +4,7 @@ import { GatewayRuntime } from "../src/core/gateway/runtime.js";
|
|||
function createMockSession() {
|
||||
return {
|
||||
sessionId: "session-1",
|
||||
sessionName: undefined,
|
||||
messages: [],
|
||||
prompt: vi.fn().mockResolvedValue(undefined),
|
||||
steer: vi.fn().mockResolvedValue(undefined),
|
||||
|
|
@ -74,7 +75,11 @@ describe("GatewayRuntime steer handling", () => {
|
|||
handleSteer: (
|
||||
sessionKey: string,
|
||||
text: string,
|
||||
) => Promise<{ ok: true; mode: "steer" | "queued"; sessionKey: string }>;
|
||||
) => Promise<{
|
||||
ok: true;
|
||||
mode: "steer" | "queued";
|
||||
sessionKey: string;
|
||||
}>;
|
||||
}
|
||||
).handleSteer("chat", "keep going");
|
||||
|
||||
|
|
@ -97,7 +102,11 @@ describe("GatewayRuntime steer handling", () => {
|
|||
handleSteer: (
|
||||
sessionKey: string,
|
||||
text: string,
|
||||
) => Promise<{ ok: true; mode: "steer" | "queued"; sessionKey: string }>;
|
||||
) => Promise<{
|
||||
ok: true;
|
||||
mode: "steer" | "queued";
|
||||
sessionKey: string;
|
||||
}>;
|
||||
}
|
||||
).handleSteer("chat", "pick this up next");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue