Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

coding-tools.json

248 lines5.4 KB

1{
2 "fixtures": [
3 {
4 "match": {
5 "userMessage": "[coding-read] run test",
6 "sequenceIndex": 0
7 },
8 "response": {
9 "toolCalls": [
10 {
11 "name": "read_file",
12 "arguments": "{\"path\":\"notes.txt\"}"
13 }
14 ]
15 }
16 },
17 {
18 "match": {
19 "userMessage": "[coding-read] run test",
20 "sequenceIndex": 1
21 },
22 "response": {
23 "content": "notes.txt has two lines."
24 }
25 },
26 {
27 "match": {
28 "userMessage": "[coding-edit] run test",
29 "sequenceIndex": 0
30 },
31 "response": {
32 "toolCalls": [
33 {
34 "name": "edit_file",
35 "arguments": "{\"path\":\"notes.txt\",\"old\":\"alpha\\nbeta\",\"new\":\"gamma\\nbeta\"}"
36 }
37 ]
38 }
39 },
40 {
41 "match": {
42 "userMessage": "[coding-edit] run test",
43 "sequenceIndex": 1
44 },
45 "response": {
46 "content": "Edited notes.txt."
47 }
48 },
49 {
50 "match": {
51 "userMessage": "[coding-patch] run test",
52 "sequenceIndex": 0
53 },
54 "response": {
55 "toolCalls": [
56 {
57 "name": "patch",
58 "arguments": "{\"patch\":\"*** Begin Patch\\n*** Update File: notes.txt\\n-alpha\\n+delta\\n beta\\n*** Add File: added.txt\\n+added by patch\\n*** End Patch\"}"
59 }
60 ]
61 }
62 },
63 {
64 "match": {
65 "userMessage": "[coding-patch] run test",
66 "sequenceIndex": 1
67 },
68 "response": {
69 "content": "Patched notes.txt and added added.txt."
70 }
71 },
72 {
73 "match": {
74 "userMessage": "[coding-grep] run test",
75 "sequenceIndex": 0
76 },
77 "response": {
78 "toolCalls": [
79 {
80 "name": "grep",
81 "arguments": "{\"pattern\":\"beta\"}"
82 }
83 ]
84 }
85 },
86 {
87 "match": {
88 "userMessage": "[coding-grep] run test",
89 "sequenceIndex": 1
90 },
91 "response": {
92 "content": "beta is in two files."
93 }
94 },
95 {
96 "match": {
97 "userMessage": "[coding-bash] run test",
98 "sequenceIndex": 0
99 },
100 "response": {
101 "toolCalls": [
102 {
103 "name": "bash",
104 "arguments": "{\"command\":\"node -e \\\"require('fs').writeFileSync('bash.txt', 'AGENT=' + process.env.AGENT); console.log('done')\\\"\"}"
105 }
106 ]
107 }
108 },
109 {
110 "match": {
111 "userMessage": "[coding-bash] run test",
112 "sequenceIndex": 1
113 },
114 "response": {
115 "content": "The command ran."
116 }
117 },
118 {
119 "match": {
120 "userMessage": "[coding-revert] run test",
121 "sequenceIndex": 0
122 },
123 "response": {
124 "toolCalls": [
125 {
126 "name": "edit_file",
127 "arguments": "{\"path\":\"notes.txt\",\"old\":\"alpha\",\"new\":\"gamma\"}"
128 }
129 ]
130 }
131 },
132 {
133 "match": {
134 "userMessage": "[coding-revert] run test",
135 "sequenceIndex": 1
136 },
137 "response": {
138 "content": "Edited notes.txt."
139 }
140 },
141 {
142 "match": {
143 "userMessage": "[coding-revert-2] run test",
144 "sequenceIndex": 0
145 },
146 "response": {
147 "toolCalls": [
148 {
149 "name": "edit_file",
150 "arguments": "{\"path\":\"notes.txt\",\"old\":\"gamma\",\"new\":\"delta\"}"
151 }
152 ]
153 }
154 },
155 {
156 "match": {
157 "userMessage": "[coding-revert-2] run test",
158 "sequenceIndex": 1
159 },
160 "response": {
161 "content": "Edited notes.txt again."
162 }
163 },
164 {
165 "match": {
166 "userMessage": "[coding-format-ask] run test",
167 "sequenceIndex": 0
168 },
169 "response": {
170 "toolCalls": [
171 {
172 "name": "write_file",
173 "arguments": "{\"path\":\"a.ts\",\"content\":\"let a=1\\n\"}"
174 }
175 ]
176 }
177 },
178 {
179 "match": {
180 "userMessage": "[coding-format-ask] run test",
181 "sequenceIndex": 1
182 },
183 "response": {
184 "content": "Wrote a.ts."
185 }
186 },
187 {
188 "match": {
189 "userMessage": "[coding-sandbox] run test",
190 "sequenceIndex": 0
191 },
192 "response": {
193 "toolCalls": [
194 {
195 "name": "edit_file",
196 "arguments": "{\"path\":\"notes.txt\",\"old\":\"alpha\",\"new\":\"sandboxed\"}"
197 }
198 ]
199 }
200 },
201 {
202 "match": {
203 "userMessage": "[coding-sandbox] run test",
204 "sequenceIndex": 1
205 },
206 "response": {
207 "content": "Edited notes.txt in the sandbox."
208 }
209 },
210 {
211 "match": {
212 "userMessage": "[coding-diffs] run test",
213 "sequenceIndex": 0
214 },
215 "response": {
216 "toolCalls": [
217 {
218 "name": "write_file",
219 "arguments": "{\"path\":\"a.txt\",\"content\":\"two\\n\"}"
220 }
221 ]
222 }
223 },
224 {
225 "match": {
226 "userMessage": "[coding-diffs] run test",
227 "sequenceIndex": 1
228 },
229 "response": {
230 "toolCalls": [
231 {
232 "name": "bash",
233 "arguments": "{\"command\":\"echo hi > b.txt\"}"
234 }
235 ]
236 }
237 },
238 {
239 "match": {
240 "userMessage": "[coding-diffs] run test",
241 "sequenceIndex": 2
242 },
243 "response": {
244 "content": "Wrote a.txt and b.txt."
245 }
246 }
247 ]