@devtune/agentpicks 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +230 -10
  2. package/dist/cli.js +81365 -70073
  3. package/package.json +5 -2
  4. package/schema/setup.v1.json +521 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtune/agentpicks",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "The open Agent Picks runner: the agentpicks CLI, which tests the coding agents installed on your machine in fresh Docker containers, and the sandbox code DevTune runs its managed tests on",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -18,14 +18,17 @@
18
18
  "dist",
19
19
  "docker",
20
20
  "LICENSE",
21
- "README.md"
21
+ "README.md",
22
+ "schema"
22
23
  ],
23
24
  "exports": {
24
25
  "./package.json": "./package.json"
25
26
  },
26
27
  "dependencies": {
28
+ "fs-native-extensions": "1.5.1",
27
29
  "jsonc-parser": "3.3.1",
28
30
  "re2js": "2.8.7",
31
+ "yaml": "2.9.1",
29
32
  "zod": "4.6.6"
30
33
  },
31
34
  "devDependencies": {
@@ -0,0 +1,521 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "description": "The DevTune setup this file is linked to.",
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 100
10
+ },
11
+ "synced": {
12
+ "description": "What agentpicks pull or push last saw: the DevTune setup's snapshot digest (setup) and this file's content digest (file). agentpicks writes it; leave it as it is.",
13
+ "type": "object",
14
+ "properties": {
15
+ "setup": {
16
+ "type": "string",
17
+ "pattern": "^[a-f0-9]{64}$"
18
+ },
19
+ "file": {
20
+ "type": "string",
21
+ "pattern": "^[a-f0-9]{64}$"
22
+ }
23
+ },
24
+ "required": ["setup", "file"],
25
+ "additionalProperties": false
26
+ },
27
+ "from": {
28
+ "description": "A built-in category whose job, requests and tools the setup inherits.",
29
+ "type": "string",
30
+ "enum": [
31
+ "authentication",
32
+ "payments",
33
+ "transactional-email",
34
+ "databases",
35
+ "error-tracking",
36
+ "ci"
37
+ ]
38
+ },
39
+ "job": {
40
+ "description": "The job line, which labels the setup; a run asks requests.add. Required without from.",
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 300,
44
+ "pattern": "^[^\\n\\r]+$"
45
+ },
46
+ "requests": {
47
+ "description": "One request per intent. A run asks the add request, which a setup without from must give. With from, null leaves out the category's request of that intent.",
48
+ "type": "object",
49
+ "properties": {
50
+ "add": {
51
+ "anyOf": [
52
+ {
53
+ "type": "string",
54
+ "minLength": 8,
55
+ "maxLength": 300,
56
+ "pattern": "^[^\\n\\r]+$"
57
+ },
58
+ {
59
+ "type": "null"
60
+ }
61
+ ]
62
+ },
63
+ "recommend": {
64
+ "anyOf": [
65
+ {
66
+ "type": "string",
67
+ "minLength": 8,
68
+ "maxLength": 300,
69
+ "pattern": "^[^\\n\\r]+$"
70
+ },
71
+ {
72
+ "type": "null"
73
+ }
74
+ ]
75
+ },
76
+ "hosted": {
77
+ "anyOf": [
78
+ {
79
+ "type": "string",
80
+ "minLength": 8,
81
+ "maxLength": 300,
82
+ "pattern": "^[^\\n\\r]+$"
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ]
88
+ },
89
+ "improve": {
90
+ "anyOf": [
91
+ {
92
+ "type": "string",
93
+ "minLength": 8,
94
+ "maxLength": 300,
95
+ "pattern": "^[^\\n\\r]+$"
96
+ },
97
+ {
98
+ "type": "null"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ "additionalProperties": false
104
+ },
105
+ "tools": {
106
+ "description": "Your tool and its competitors: the key of a tool in DevTune's catalogue (such as sentry), or a full entry with key, name and signals, and optionally domain.",
107
+ "type": "object",
108
+ "properties": {
109
+ "own": {
110
+ "anyOf": [
111
+ {
112
+ "type": "string",
113
+ "maxLength": 63,
114
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
115
+ },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "key": {
120
+ "type": "string",
121
+ "maxLength": 63,
122
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
123
+ },
124
+ "name": {
125
+ "type": "string",
126
+ "minLength": 1,
127
+ "maxLength": 100
128
+ },
129
+ "domain": {
130
+ "type": "string",
131
+ "minLength": 3,
132
+ "maxLength": 253,
133
+ "pattern": "^[a-z0-9-]+(?:\\.[a-z0-9-]+)+$"
134
+ },
135
+ "signals": {
136
+ "type": "object",
137
+ "properties": {
138
+ "packages": {
139
+ "type": "object",
140
+ "properties": {
141
+ "npm": {
142
+ "maxItems": 40,
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string",
146
+ "minLength": 1,
147
+ "maxLength": 214,
148
+ "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
149
+ }
150
+ },
151
+ "pypi": {
152
+ "maxItems": 40,
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string",
156
+ "minLength": 1,
157
+ "maxLength": 214,
158
+ "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
159
+ }
160
+ },
161
+ "gem": {
162
+ "maxItems": 40,
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string",
166
+ "minLength": 1,
167
+ "maxLength": 214,
168
+ "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
169
+ }
170
+ }
171
+ },
172
+ "additionalProperties": false
173
+ },
174
+ "configNames": {
175
+ "maxItems": 30,
176
+ "type": "array",
177
+ "items": {
178
+ "type": "string",
179
+ "minLength": 2,
180
+ "maxLength": 100,
181
+ "pattern": "^[A-Za-z0-9@._/:*][A-Za-z0-9@._/:*-]*$"
182
+ }
183
+ },
184
+ "importPatterns": {
185
+ "maxItems": 20,
186
+ "type": "array",
187
+ "items": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 200
191
+ }
192
+ },
193
+ "brandDomains": {
194
+ "maxItems": 10,
195
+ "type": "array",
196
+ "items": {
197
+ "type": "string",
198
+ "minLength": 3,
199
+ "maxLength": 253,
200
+ "pattern": "^[a-z0-9-]+(?:\\.[a-z0-9-]+)+$"
201
+ }
202
+ },
203
+ "aliases": {
204
+ "maxItems": 20,
205
+ "type": "array",
206
+ "items": {
207
+ "type": "string",
208
+ "minLength": 1,
209
+ "maxLength": 100
210
+ }
211
+ },
212
+ "commandPatterns": {
213
+ "maxItems": 10,
214
+ "type": "array",
215
+ "items": {
216
+ "type": "string",
217
+ "minLength": 1,
218
+ "maxLength": 200
219
+ }
220
+ },
221
+ "configFiles": {
222
+ "maxItems": 10,
223
+ "type": "array",
224
+ "items": {
225
+ "type": "string",
226
+ "minLength": 1,
227
+ "maxLength": 200
228
+ }
229
+ },
230
+ "configPatterns": {
231
+ "maxItems": 10,
232
+ "type": "array",
233
+ "items": {
234
+ "type": "string",
235
+ "minLength": 1,
236
+ "maxLength": 200
237
+ }
238
+ },
239
+ "selfHosted": {
240
+ "maxItems": 10,
241
+ "type": "array",
242
+ "items": {
243
+ "type": "string",
244
+ "minLength": 1,
245
+ "maxLength": 200
246
+ }
247
+ },
248
+ "frameworkBuiltIn": {
249
+ "type": "boolean"
250
+ },
251
+ "yieldsTo": {
252
+ "maxItems": 40,
253
+ "type": "array",
254
+ "items": {
255
+ "type": "string",
256
+ "maxLength": 63,
257
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
258
+ }
259
+ },
260
+ "receivesFrom": {
261
+ "maxItems": 40,
262
+ "type": "array",
263
+ "items": {
264
+ "type": "string",
265
+ "maxLength": 63,
266
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
267
+ }
268
+ }
269
+ },
270
+ "additionalProperties": false
271
+ }
272
+ },
273
+ "required": ["key", "name", "signals"],
274
+ "additionalProperties": false
275
+ }
276
+ ]
277
+ },
278
+ "competitors": {
279
+ "maxItems": 40,
280
+ "type": "array",
281
+ "items": {
282
+ "anyOf": [
283
+ {
284
+ "type": "string",
285
+ "maxLength": 63,
286
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
287
+ },
288
+ {
289
+ "type": "object",
290
+ "properties": {
291
+ "key": {
292
+ "type": "string",
293
+ "maxLength": 63,
294
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
295
+ },
296
+ "name": {
297
+ "type": "string",
298
+ "minLength": 1,
299
+ "maxLength": 100
300
+ },
301
+ "domain": {
302
+ "type": "string",
303
+ "minLength": 3,
304
+ "maxLength": 253,
305
+ "pattern": "^[a-z0-9-]+(?:\\.[a-z0-9-]+)+$"
306
+ },
307
+ "signals": {
308
+ "type": "object",
309
+ "properties": {
310
+ "packages": {
311
+ "type": "object",
312
+ "properties": {
313
+ "npm": {
314
+ "maxItems": 40,
315
+ "type": "array",
316
+ "items": {
317
+ "type": "string",
318
+ "minLength": 1,
319
+ "maxLength": 214,
320
+ "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
321
+ }
322
+ },
323
+ "pypi": {
324
+ "maxItems": 40,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 214,
330
+ "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
331
+ }
332
+ },
333
+ "gem": {
334
+ "maxItems": 40,
335
+ "type": "array",
336
+ "items": {
337
+ "type": "string",
338
+ "minLength": 1,
339
+ "maxLength": 214,
340
+ "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
341
+ }
342
+ }
343
+ },
344
+ "additionalProperties": false
345
+ },
346
+ "configNames": {
347
+ "maxItems": 30,
348
+ "type": "array",
349
+ "items": {
350
+ "type": "string",
351
+ "minLength": 2,
352
+ "maxLength": 100,
353
+ "pattern": "^[A-Za-z0-9@._/:*][A-Za-z0-9@._/:*-]*$"
354
+ }
355
+ },
356
+ "importPatterns": {
357
+ "maxItems": 20,
358
+ "type": "array",
359
+ "items": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "maxLength": 200
363
+ }
364
+ },
365
+ "brandDomains": {
366
+ "maxItems": 10,
367
+ "type": "array",
368
+ "items": {
369
+ "type": "string",
370
+ "minLength": 3,
371
+ "maxLength": 253,
372
+ "pattern": "^[a-z0-9-]+(?:\\.[a-z0-9-]+)+$"
373
+ }
374
+ },
375
+ "aliases": {
376
+ "maxItems": 20,
377
+ "type": "array",
378
+ "items": {
379
+ "type": "string",
380
+ "minLength": 1,
381
+ "maxLength": 100
382
+ }
383
+ },
384
+ "commandPatterns": {
385
+ "maxItems": 10,
386
+ "type": "array",
387
+ "items": {
388
+ "type": "string",
389
+ "minLength": 1,
390
+ "maxLength": 200
391
+ }
392
+ },
393
+ "configFiles": {
394
+ "maxItems": 10,
395
+ "type": "array",
396
+ "items": {
397
+ "type": "string",
398
+ "minLength": 1,
399
+ "maxLength": 200
400
+ }
401
+ },
402
+ "configPatterns": {
403
+ "maxItems": 10,
404
+ "type": "array",
405
+ "items": {
406
+ "type": "string",
407
+ "minLength": 1,
408
+ "maxLength": 200
409
+ }
410
+ },
411
+ "selfHosted": {
412
+ "maxItems": 10,
413
+ "type": "array",
414
+ "items": {
415
+ "type": "string",
416
+ "minLength": 1,
417
+ "maxLength": 200
418
+ }
419
+ },
420
+ "frameworkBuiltIn": {
421
+ "type": "boolean"
422
+ },
423
+ "yieldsTo": {
424
+ "maxItems": 40,
425
+ "type": "array",
426
+ "items": {
427
+ "type": "string",
428
+ "maxLength": 63,
429
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
430
+ }
431
+ },
432
+ "receivesFrom": {
433
+ "maxItems": 40,
434
+ "type": "array",
435
+ "items": {
436
+ "type": "string",
437
+ "maxLength": 63,
438
+ "pattern": "^[a-z0-9]+(?:[-_.][a-z0-9]+)*$"
439
+ }
440
+ }
441
+ },
442
+ "additionalProperties": false
443
+ }
444
+ },
445
+ "required": ["key", "name", "signals"],
446
+ "additionalProperties": false
447
+ }
448
+ ]
449
+ }
450
+ }
451
+ },
452
+ "additionalProperties": false
453
+ },
454
+ "stacks": {
455
+ "description": "Starter apps to test in. Give stacks or repo, not both.",
456
+ "minItems": 1,
457
+ "maxItems": 20,
458
+ "type": "array",
459
+ "items": {
460
+ "type": "string",
461
+ "enum": [
462
+ "empty",
463
+ "nextjs",
464
+ "nextjs-noinstr",
465
+ "nextjs-supabase",
466
+ "nextjs-github-actions",
467
+ "tanstack",
468
+ "sveltekit",
469
+ "express",
470
+ "fastapi",
471
+ "rails",
472
+ "fastapi-aws",
473
+ "rails-own-servers-eu"
474
+ ]
475
+ }
476
+ },
477
+ "repo": {
478
+ "description": "Your repository, relative to the repository root this file is in, in place of stacks: a path, or a path and a commit (ref).",
479
+ "anyOf": [
480
+ {
481
+ "type": "string",
482
+ "minLength": 1
483
+ },
484
+ {
485
+ "type": "object",
486
+ "properties": {
487
+ "path": {
488
+ "type": "string",
489
+ "minLength": 1
490
+ },
491
+ "ref": {
492
+ "type": "string",
493
+ "minLength": 1
494
+ }
495
+ },
496
+ "required": ["path"],
497
+ "additionalProperties": false
498
+ }
499
+ ]
500
+ },
501
+ "agents": {
502
+ "description": "The agents to test, each installed on the machine that runs it. Without agents, the one installed agent runs.",
503
+ "minItems": 1,
504
+ "maxItems": 4,
505
+ "type": "array",
506
+ "items": {
507
+ "type": "string",
508
+ "enum": ["claude-code", "codex", "opencode", "pi"]
509
+ }
510
+ },
511
+ "runs": {
512
+ "description": "How many runs per agent and stack. Default 1.",
513
+ "type": "integer",
514
+ "minimum": 1,
515
+ "maximum": 100
516
+ }
517
+ },
518
+ "additionalProperties": false,
519
+ "title": "Agent Picks setup",
520
+ "description": "What agentpicks run tests: a job, its requests, your tool and its competitors, stacks or your repository, agents and runs. See https://www.npmjs.com/package/@devtune/agentpicks."
521
+ }