mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-28 07:16:53 +05:00
feat(ipuaro): add edit tools (v0.6.0)
Add file editing capabilities: - EditLinesTool: replace lines with hash conflict detection - CreateFileTool: create files with directory auto-creation - DeleteFileTool: delete files from filesystem and storage Total: 664 tests, 97.77% coverage
This commit is contained in:
@@ -63,6 +63,13 @@ describe("ChatMessage", () => {
|
||||
|
||||
expect(msg.content).toContain("[2] Error: Not found")
|
||||
})
|
||||
|
||||
it("should handle error result without error message", () => {
|
||||
const results = [{ callId: "3", success: false, executionTimeMs: 5 }]
|
||||
const msg = createToolMessage(results)
|
||||
|
||||
expect(msg.content).toContain("[3] Error: Unknown error")
|
||||
})
|
||||
})
|
||||
|
||||
describe("createSystemMessage", () => {
|
||||
|
||||
Reference in New Issue
Block a user