- Add proman.yaml with 8 packages in dependency order - Add @shazhou/proman as devDependency - Replace root scripts: build/test/check/format → proman commands - Keep typecheck script for standalone tsc --build Fixes #27
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { describe, expect, test } from "vitest";
|
||||
import type { LlmToolCall } from "../src/llm/types.js";
|
||||
|
||||
/** Mirror OpenAI response shape for parser coverage via chatCompletionWithTools integration later. */
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
const { mockChatCompletionWithTools, mockAppendSessionTurn, mockExecuteBuiltinTool } = vi.hoisted(() => ({
|
||||
mockChatCompletionWithTools: vi.fn(async () => ({
|
||||
content: "---\nstatus: done\n---",
|
||||
toolCalls: [],
|
||||
})),
|
||||
mockAppendSessionTurn: vi.fn(async () => {}),
|
||||
mockExecuteBuiltinTool: vi.fn(async () => "tool-result"),
|
||||
}));
|
||||
import { beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
const { mockChatCompletionWithTools, mockAppendSessionTurn, mockExecuteBuiltinTool } = vi.hoisted(
|
||||
() => ({
|
||||
mockChatCompletionWithTools: vi.fn(async () => ({
|
||||
content: "---\nstatus: done\n---",
|
||||
toolCalls: [],
|
||||
})),
|
||||
mockAppendSessionTurn: vi.fn(async () => {}),
|
||||
mockExecuteBuiltinTool: vi.fn(async () => "tool-result"),
|
||||
}),
|
||||
);
|
||||
|
||||
vi.mock("../src/llm/index.js", () => ({
|
||||
chatCompletionWithTools: mockChatCompletionWithTools,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { resolve } from "node:path";
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { resolvePath } from "../src/tools/path.js";
|
||||
|
||||
describe("resolvePath", () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import type { AgentContext } from "@united-workforce/util-agent";
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { buildBuiltinMessages } from "../src/prompt.js";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user