docs: clarify sandbox bind mounts (#790)

This commit is contained in:
Peter Steinberger
2026-01-12 22:06:17 +00:00
parent 21405b0dfc
commit 59c8d2d17f
8 changed files with 81 additions and 11 deletions

View File

@@ -109,7 +109,17 @@ describe("voice-call plugin", () => {
it("tool get_status returns json payload", async () => {
const { tools } = setup({ provider: "mock" });
const tool = tools[0] as { execute: (id: string, params: unknown) => any };
type VoiceTool = {
execute: (
id: string,
params: unknown,
) =>
| Promise<{ details: Record<string, unknown> }>
| {
details: Record<string, unknown>;
};
};
const tool = tools[0] as VoiceTool;
const result = await tool.execute("id", {
action: "get_status",
callId: "call-1",
@@ -119,7 +129,17 @@ describe("voice-call plugin", () => {
it("legacy tool status without sid returns error payload", async () => {
const { tools } = setup({ provider: "mock" });
const tool = tools[0] as { execute: (id: string, params: unknown) => any };
type VoiceTool = {
execute: (
id: string,
params: unknown,
) =>
| Promise<{ details: Record<string, unknown> }>
| {
details: Record<string, unknown>;
};
};
const tool = tools[0] as VoiceTool;
const result = await tool.execute("id", { mode: "status" });
expect(String(result.details.error)).toContain("sid required");
});