feat(tui): integrate with Herdr host
This commit is contained in:
@@ -8,7 +8,7 @@ describe("tool renderers", () => {
|
||||
{ call_id: "exec-1", phase: "start", name: "exec", arguments: { cmd: "git status" } },
|
||||
{ call_id: "exec-1", phase: "end", name: "exec", result: { output: "clean" } },
|
||||
)
|
||||
expect(renderToolEvent(event)).toBe(" ✓ Command git status")
|
||||
expect(renderToolEvent(event)).toBe(" ✓ Ran git status")
|
||||
})
|
||||
|
||||
test("uses stable task language for common file and web tools", () => {
|
||||
@@ -19,4 +19,11 @@ describe("tool renderers", () => {
|
||||
expect(renderToolEvent({ phase: "error", name: "web_fetch", error: "timeout" }))
|
||||
.toBe(" × Fetch timeout")
|
||||
})
|
||||
|
||||
test("compresses verification and edits into outcome language", () => {
|
||||
expect(renderToolEvent({ phase: "end", name: "exec", arguments: { cmd: "bun test" } }))
|
||||
.toBe(" ✓ Testing bun test")
|
||||
expect(renderToolEvent({ phase: "end", name: "apply_patch", arguments: { path: "app.ts" } }))
|
||||
.toBe(" ✓ Edited app.ts")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user