5970456a54
CI / check (pull_request) Failing after 8m30s
Rename packages/ subdirectories to match their @united-workforce/* scope: cli-workflow → cli workflow-agent-builtin → agent-builtin workflow-agent-claude-code → agent-claude-code workflow-agent-hermes → agent-hermes workflow-dashboard → dashboard workflow-protocol → protocol workflow-util-agent → util-agent workflow-util → util Updated all tsconfig references, scripts, and active docs. Historical docs (docs/plans/, docs/superpowers/) left as-is. Closes #21
17 lines
539 B
TypeScript
17 lines
539 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
|
|
import type { LlmToolCall } from "../src/llm/types.js";
|
|
|
|
/** Mirror OpenAI response shape for parser coverage via chatCompletionWithTools integration later. */
|
|
describe("LlmToolCall shape", () => {
|
|
test("tool call record fields", () => {
|
|
const call: LlmToolCall = {
|
|
id: "call_1",
|
|
name: "read_file",
|
|
arguments: '{"path":"README.md"}',
|
|
};
|
|
expect(call.name).toBe("read_file");
|
|
expect(JSON.parse(call.arguments)).toEqual({ path: "README.md" });
|
|
});
|
|
});
|