-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathapply-diff.json
More file actions
74 lines (74 loc) · 2.67 KB
/
Copy pathapply-diff.json
File metadata and controls
74 lines (74 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"fixtures": [
{
"match": {
"userMessage": "APPLY_DIFF_SIMPLE_SMOKE"
},
"response": {
"toolCalls": [
{
"name": "apply_diff",
"arguments": "{\"path\":\"apply-diff-tool-fixture/simple-modify.txt\",\"diff\":\"<<<<<<< SEARCH\\n:start_line:1\\n-------\\nHello World\\n=======\\nHello Universe\\n>>>>>>> REPLACE\"}",
"id": "call_apply_diff_simple_001"
}
]
}
},
{
"match": {
"userMessage": "APPLY_DIFF_MULTI_REPLACE_SMOKE"
},
"response": {
"toolCalls": [
{
"name": "apply_diff",
"arguments": "{\"path\":\"apply-diff-tool-fixture/multiple-replace.js\",\"diff\":\"<<<<<<< SEARCH\\n:start_line:1\\n-------\\nfunction calculate(x, y) {\\n\\tconst sum = x + y\\n\\tconst product = x * y\\n\\treturn { sum: sum, product: product }\\n}\\n=======\\nfunction compute(a, b) {\\n\\tconst total = a + b\\n\\tconst result = a * b\\n\\treturn { total: total, result: result }\\n}\\n>>>>>>> REPLACE\"}",
"id": "call_apply_diff_multi_replace_001"
}
]
}
},
{
"match": {
"userMessage": "APPLY_DIFF_LINE_HINTS_SMOKE"
},
"response": {
"toolCalls": [
{
"name": "apply_diff",
"arguments": "{\"path\":\"apply-diff-tool-fixture/line-hints.js\",\"diff\":\"<<<<<<< SEARCH\\n:start_line:2\\n-------\\nfunction oldFunction() {\\n\\tconsole.log(\\\"Old implementation\\\")\\n}\\n=======\\nfunction newFunction() {\\n\\tconsole.log(\\\"New implementation\\\")\\n}\\n>>>>>>> REPLACE\"}",
"id": "call_apply_diff_line_hints_001"
}
]
}
},
{
"match": {
"userMessage": "APPLY_DIFF_ERROR_SMOKE"
},
"response": {
"toolCalls": [
{
"name": "apply_diff",
"arguments": "{\"path\":\"apply-diff-tool-fixture/error-handling.txt\",\"diff\":\"<<<<<<< SEARCH\\n:start_line:1\\n-------\\nThis content does not exist\\n=======\\nNew content\\n>>>>>>> REPLACE\"}",
"id": "call_apply_diff_error_001"
}
]
}
},
{
"match": {
"userMessage": "APPLY_DIFF_MULTI_BLOCK_SMOKE"
},
"response": {
"toolCalls": [
{
"name": "apply_diff",
"arguments": "{\"path\":\"apply-diff-tool-fixture/multi-search-replace.js\",\"diff\":\"<<<<<<< SEARCH\\n:start_line:1\\n-------\\nfunction processData(data) {\\n\\tconsole.log(\\\"Processing data\\\")\\n=======\\nfunction transformData(data) {\\n\\tconsole.log(\\\"Transforming data\\\")\\n>>>>>>> REPLACE\\n\\n<<<<<<< SEARCH\\n:start_line:12\\n-------\\nfunction validateInput(input) {\\n\\tconsole.log(\\\"Validating input\\\")\\n=======\\nfunction checkInput(input) {\\n\\tconsole.log(\\\"Checking input\\\")\\n>>>>>>> REPLACE\"}",
"id": "call_apply_diff_multi_block_001"
}
]
}
}
]
}