style: format agent workspace and prompts

This commit is contained in:
Peter Steinberger committed 2026-01-22 08:05:55 +00:00
1 parent 87baca82db
commit 1a8b106f34
8 files changed
+85 -1

No files matched your search

+9
View File
@@ -115,6 +115,15 @@ describe("buildAgentSystemPrompt", () => {
);
});
it("includes workspace notes when provided", () => {
const prompt = buildAgentSystemPrompt({
workspaceDir: "/tmp/clawd",
workspaceNotes: ["Reminder: commit your changes in this workspace after edits."],
});
expect(prompt).toContain("Reminder: commit your changes in this workspace after edits.");
});
it("includes user time when provided (12-hour)", () => {
const prompt = buildAgentSystemPrompt({
workspaceDir: "/tmp/clawd",