d63d58ccb5
- Move 15 old workflow-* packages to legacy-packages/ (inactive, preserved for reference)
- Rename templates/ → examples/ for clarity
- Rewrite docs/architecture.md to reflect current uwf architecture
- Active packages remain in packages/: cli-uwf, uwf-agent-hermes, uwf-agent-kit, uwf-moderator, uwf-protocol, workflow-util
小橘 🍊(NEKO Team)
20 lines
632 B
TypeScript
20 lines
632 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
|
|
import { committerMetaSchema, committerRole } from "../src/roles/committer.js";
|
|
|
|
describe("committerRole", () => {
|
|
test("committed sample validates against schema", () => {
|
|
const parsed = committerMetaSchema.safeParse({
|
|
status: "committed" as const,
|
|
branch: "feat/example",
|
|
commitSha: "abc1234",
|
|
});
|
|
expect(parsed.success).toBe(true);
|
|
});
|
|
|
|
test("exposes generic committer system prompt", () => {
|
|
expect(committerRole.systemPrompt).toContain("git committer");
|
|
expect(committerRole.systemPrompt).not.toContain("project is at");
|
|
});
|
|
});
|