@executioncontrolprotocol/harnesses-browser-coding 0.10.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 (81) hide show
  1. package/README.md +21 -0
  2. package/dist/browser-coding-harness.d.ts +50 -0
  3. package/dist/browser-coding-harness.d.ts.map +1 -0
  4. package/dist/browser-coding-harness.js +76 -0
  5. package/dist/browser-coding-harness.js.map +1 -0
  6. package/dist/fluent-patch-hints.d.ts +18 -0
  7. package/dist/fluent-patch-hints.d.ts.map +1 -0
  8. package/dist/fluent-patch-hints.js +262 -0
  9. package/dist/fluent-patch-hints.js.map +1 -0
  10. package/dist/harness-coding-config.d.ts +45 -0
  11. package/dist/harness-coding-config.d.ts.map +1 -0
  12. package/dist/harness-coding-config.js +87 -0
  13. package/dist/harness-coding-config.js.map +1 -0
  14. package/dist/harness-ids.d.ts +6 -0
  15. package/dist/harness-ids.d.ts.map +1 -0
  16. package/dist/harness-ids.js +6 -0
  17. package/dist/harness-ids.js.map +1 -0
  18. package/dist/index.d.ts +6 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +5 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/intent-classification-coding.d.ts +8 -0
  23. package/dist/intent-classification-coding.d.ts.map +1 -0
  24. package/dist/intent-classification-coding.js +172 -0
  25. package/dist/intent-classification-coding.js.map +1 -0
  26. package/dist/prompts/build-coding-prompt.d.ts +11 -0
  27. package/dist/prompts/build-coding-prompt.d.ts.map +1 -0
  28. package/dist/prompts/build-coding-prompt.js +17 -0
  29. package/dist/prompts/build-coding-prompt.js.map +1 -0
  30. package/dist/prompts/coding-prompt-fixture-ids.d.ts +10 -0
  31. package/dist/prompts/coding-prompt-fixture-ids.d.ts.map +1 -0
  32. package/dist/prompts/coding-prompt-fixture-ids.js +8 -0
  33. package/dist/prompts/coding-prompt-fixture-ids.js.map +1 -0
  34. package/dist/prompts/fixtures-root.d.ts +5 -0
  35. package/dist/prompts/fixtures-root.d.ts.map +1 -0
  36. package/dist/prompts/fixtures-root.js +7 -0
  37. package/dist/prompts/fixtures-root.js.map +1 -0
  38. package/dist/prompts/index.d.ts +4 -0
  39. package/dist/prompts/index.d.ts.map +1 -0
  40. package/dist/prompts/index.js +4 -0
  41. package/dist/prompts/index.js.map +1 -0
  42. package/dist/prompts/load-harness-prompt.browser.d.ts +4 -0
  43. package/dist/prompts/load-harness-prompt.browser.d.ts.map +1 -0
  44. package/dist/prompts/load-harness-prompt.browser.js +32 -0
  45. package/dist/prompts/load-harness-prompt.browser.js.map +1 -0
  46. package/dist/prompts/load-harness-prompt.d.ts +2 -0
  47. package/dist/prompts/load-harness-prompt.d.ts.map +1 -0
  48. package/dist/prompts/load-harness-prompt.js +2 -0
  49. package/dist/prompts/load-harness-prompt.js.map +1 -0
  50. package/dist/prompts/load-harness-prompt.node.d.ts +4 -0
  51. package/dist/prompts/load-harness-prompt.node.d.ts.map +1 -0
  52. package/dist/prompts/load-harness-prompt.node.js +20 -0
  53. package/dist/prompts/load-harness-prompt.node.js.map +1 -0
  54. package/dist/register.d.ts +5 -0
  55. package/dist/register.d.ts.map +1 -0
  56. package/dist/register.js +14 -0
  57. package/dist/register.js.map +1 -0
  58. package/dist/workflow-assistant-coding.d.ts +9 -0
  59. package/dist/workflow-assistant-coding.d.ts.map +1 -0
  60. package/dist/workflow-assistant-coding.js +282 -0
  61. package/dist/workflow-assistant-coding.js.map +1 -0
  62. package/dist/workflow-authoring-coding.d.ts +9 -0
  63. package/dist/workflow-authoring-coding.d.ts.map +1 -0
  64. package/dist/workflow-authoring-coding.js +214 -0
  65. package/dist/workflow-authoring-coding.js.map +1 -0
  66. package/fixtures/eval-cases/assistant.cases.json +658 -0
  67. package/fixtures/eval-cases/intent.cases.json +587 -0
  68. package/fixtures/eval-cases/workflow-create.cases.json +493 -0
  69. package/fixtures/eval-cases/workflow-patch.cases.json +379 -0
  70. package/fixtures/harness-prompts/intent-classification-coding.prompt.json +56 -0
  71. package/fixtures/harness-prompts/workflow-assistant-coding.prompt.json +70 -0
  72. package/fixtures/harness-prompts/workflow-authoring-create-coding.prompt.json +42 -0
  73. package/fixtures/harness-prompts/workflow-authoring-patch-coding.prompt.json +50 -0
  74. package/fixtures/runs/completed-with-refs.json +18 -0
  75. package/fixtures/runs/failed-echo-step.json +29 -0
  76. package/fixtures/runs/running-pending.json +14 -0
  77. package/fixtures/workflows/echo-validate-reorder.json +26 -0
  78. package/fixtures/workflows/echo-workflow.json +20 -0
  79. package/fixtures/workflows/multi-cap-workflow.json +34 -0
  80. package/fixtures/workflows/two-step-chain.json +26 -0
  81. package/package.json +47 -0
@@ -0,0 +1,493 @@
1
+ {
2
+ "cases": [
3
+ {
4
+ "id": "wf-create-01",
5
+ "suite": "workflow-create",
6
+ "title": "Minimal echo",
7
+ "harness": "workflow-authoring",
8
+ "model": "default",
9
+ "input": {
10
+ "request": "Create a minimal @executioncontrolprotocol.workflow with one step id echo using @executioncontrolprotocol/test.echo and input value hello."
11
+ },
12
+ "assertions": {
13
+ "deterministic": [
14
+ {
15
+ "kind": "invokeSuccess"
16
+ },
17
+ {
18
+ "kind": "artifactSchema",
19
+ "value": "@executioncontrolprotocol.workflow"
20
+ },
21
+ {
22
+ "kind": "validationValid"
23
+ },
24
+ {
25
+ "kind": "descriptorListsExtensions",
26
+ "ids": [
27
+ "@executioncontrolprotocol/format-toon",
28
+ "@executioncontrolprotocol/format-eql",
29
+ "@executioncontrolprotocol/format-json",
30
+ "@executioncontrolprotocol/test"
31
+ ]
32
+ },
33
+ {
34
+ "kind": "stepUses",
35
+ "capabilityId": "@executioncontrolprotocol/test.echo"
36
+ },
37
+ {
38
+ "kind": "stepCount",
39
+ "exact": 1
40
+ }
41
+ ],
42
+ "judge": {
43
+ "enabled": false
44
+ }
45
+ }
46
+ },
47
+ {
48
+ "id": "wf-create-02",
49
+ "suite": "workflow-create",
50
+ "title": "Echo plus summarize",
51
+ "harness": "workflow-authoring",
52
+ "model": "default",
53
+ "input": {
54
+ "request": "Create a workflow with echo (@executioncontrolprotocol/test.echo) then summarize (@executioncontrolprotocol/test.summarize) passing echo output."
55
+ },
56
+ "assertions": {
57
+ "deterministic": [
58
+ {
59
+ "kind": "invokeSuccess"
60
+ },
61
+ {
62
+ "kind": "artifactSchema",
63
+ "value": "@executioncontrolprotocol.workflow"
64
+ },
65
+ {
66
+ "kind": "validationValid"
67
+ },
68
+ {
69
+ "kind": "descriptorListsExtensions",
70
+ "ids": [
71
+ "@executioncontrolprotocol/format-toon",
72
+ "@executioncontrolprotocol/format-eql",
73
+ "@executioncontrolprotocol/format-json",
74
+ "@executioncontrolprotocol/test"
75
+ ]
76
+ },
77
+ {
78
+ "kind": "stepCount",
79
+ "min": 2
80
+ },
81
+ {
82
+ "kind": "stepUses",
83
+ "capabilityId": "@executioncontrolprotocol/test.summarize"
84
+ }
85
+ ],
86
+ "judge": {
87
+ "enabled": false
88
+ }
89
+ }
90
+ },
91
+ {
92
+ "id": "wf-create-03",
93
+ "suite": "workflow-create",
94
+ "title": "Validate then echo",
95
+ "harness": "workflow-authoring",
96
+ "model": "default",
97
+ "input": {
98
+ "request": "Build a workflow: first @executioncontrolprotocol/test.validate then @executioncontrolprotocol/test.echo."
99
+ },
100
+ "assertions": {
101
+ "deterministic": [
102
+ {
103
+ "kind": "invokeSuccess"
104
+ },
105
+ {
106
+ "kind": "artifactSchema",
107
+ "value": "@executioncontrolprotocol.workflow"
108
+ },
109
+ {
110
+ "kind": "validationValid"
111
+ },
112
+ {
113
+ "kind": "descriptorListsExtensions",
114
+ "ids": [
115
+ "@executioncontrolprotocol/format-toon",
116
+ "@executioncontrolprotocol/format-eql",
117
+ "@executioncontrolprotocol/format-json",
118
+ "@executioncontrolprotocol/test"
119
+ ]
120
+ },
121
+ {
122
+ "kind": "stepUses",
123
+ "capabilityId": "@executioncontrolprotocol/test.validate"
124
+ }
125
+ ],
126
+ "judge": {
127
+ "enabled": false
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "id": "wf-create-04",
133
+ "suite": "workflow-create",
134
+ "title": "Notify step",
135
+ "harness": "workflow-authoring",
136
+ "model": "default",
137
+ "input": {
138
+ "request": "Create workflow with @executioncontrolprotocol/test.echo and a final @executioncontrolprotocol/test.notify step."
139
+ },
140
+ "assertions": {
141
+ "deterministic": [
142
+ {
143
+ "kind": "invokeSuccess"
144
+ },
145
+ {
146
+ "kind": "artifactSchema",
147
+ "value": "@executioncontrolprotocol.workflow"
148
+ },
149
+ {
150
+ "kind": "validationValid"
151
+ },
152
+ {
153
+ "kind": "descriptorListsExtensions",
154
+ "ids": [
155
+ "@executioncontrolprotocol/format-toon",
156
+ "@executioncontrolprotocol/format-eql",
157
+ "@executioncontrolprotocol/format-json",
158
+ "@executioncontrolprotocol/test"
159
+ ]
160
+ },
161
+ {
162
+ "kind": "stepUses",
163
+ "capabilityId": "@executioncontrolprotocol/test.notify"
164
+ }
165
+ ],
166
+ "judge": {
167
+ "enabled": false
168
+ }
169
+ }
170
+ },
171
+ {
172
+ "id": "wf-create-05",
173
+ "suite": "workflow-create",
174
+ "title": "Translate branch",
175
+ "harness": "workflow-authoring",
176
+ "model": "default",
177
+ "input": {
178
+ "request": "Create a two-step workflow using @executioncontrolprotocol/test.echo and @executioncontrolprotocol/test.translate."
179
+ },
180
+ "assertions": {
181
+ "deterministic": [
182
+ {
183
+ "kind": "invokeSuccess"
184
+ },
185
+ {
186
+ "kind": "artifactSchema",
187
+ "value": "@executioncontrolprotocol.workflow"
188
+ },
189
+ {
190
+ "kind": "validationValid"
191
+ },
192
+ {
193
+ "kind": "descriptorListsExtensions",
194
+ "ids": [
195
+ "@executioncontrolprotocol/format-toon",
196
+ "@executioncontrolprotocol/format-eql",
197
+ "@executioncontrolprotocol/format-json",
198
+ "@executioncontrolprotocol/test"
199
+ ]
200
+ },
201
+ {
202
+ "kind": "stepUses",
203
+ "capabilityId": "@executioncontrolprotocol/test.translate"
204
+ }
205
+ ],
206
+ "judge": {
207
+ "enabled": false
208
+ }
209
+ }
210
+ },
211
+ {
212
+ "id": "wf-create-06",
213
+ "suite": "workflow-create",
214
+ "title": "Spanish label",
215
+ "harness": "workflow-authoring",
216
+ "model": "default",
217
+ "input": {
218
+ "request": "Crea un flujo con un paso echo usando @executioncontrolprotocol/test.echo."
219
+ },
220
+ "assertions": {
221
+ "deterministic": [
222
+ {
223
+ "kind": "invokeSuccess"
224
+ },
225
+ {
226
+ "kind": "artifactSchema",
227
+ "value": "@executioncontrolprotocol.workflow"
228
+ },
229
+ {
230
+ "kind": "validationValid"
231
+ },
232
+ {
233
+ "kind": "descriptorListsExtensions",
234
+ "ids": [
235
+ "@executioncontrolprotocol/format-toon",
236
+ "@executioncontrolprotocol/format-eql",
237
+ "@executioncontrolprotocol/format-json",
238
+ "@executioncontrolprotocol/test"
239
+ ]
240
+ },
241
+ {
242
+ "kind": "stepUses",
243
+ "capabilityId": "@executioncontrolprotocol/test.echo"
244
+ }
245
+ ],
246
+ "judge": {
247
+ "enabled": false
248
+ }
249
+ }
250
+ },
251
+ {
252
+ "id": "wf-create-07",
253
+ "suite": "workflow-create",
254
+ "title": "French label",
255
+ "harness": "workflow-authoring",
256
+ "model": "default",
257
+ "input": {
258
+ "request": "Créez un workflow avec une étape @executioncontrolprotocol/test.echo."
259
+ },
260
+ "assertions": {
261
+ "deterministic": [
262
+ {
263
+ "kind": "invokeSuccess"
264
+ },
265
+ {
266
+ "kind": "artifactSchema",
267
+ "value": "@executioncontrolprotocol.workflow"
268
+ },
269
+ {
270
+ "kind": "validationValid"
271
+ },
272
+ {
273
+ "kind": "descriptorListsExtensions",
274
+ "ids": [
275
+ "@executioncontrolprotocol/format-toon",
276
+ "@executioncontrolprotocol/format-eql",
277
+ "@executioncontrolprotocol/format-json",
278
+ "@executioncontrolprotocol/test"
279
+ ]
280
+ },
281
+ {
282
+ "kind": "stepUses",
283
+ "capabilityId": "@executioncontrolprotocol/test.echo"
284
+ }
285
+ ],
286
+ "judge": {
287
+ "enabled": false
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "id": "wf-create-08",
293
+ "suite": "workflow-create",
294
+ "title": "German label",
295
+ "harness": "workflow-authoring",
296
+ "model": "default",
297
+ "input": {
298
+ "request": "Erstelle einen Workflow mit @executioncontrolprotocol/test.echo."
299
+ },
300
+ "assertions": {
301
+ "deterministic": [
302
+ {
303
+ "kind": "invokeSuccess"
304
+ },
305
+ {
306
+ "kind": "artifactSchema",
307
+ "value": "@executioncontrolprotocol.workflow"
308
+ },
309
+ {
310
+ "kind": "validationValid"
311
+ },
312
+ {
313
+ "kind": "descriptorListsExtensions",
314
+ "ids": [
315
+ "@executioncontrolprotocol/format-toon",
316
+ "@executioncontrolprotocol/format-eql",
317
+ "@executioncontrolprotocol/format-json",
318
+ "@executioncontrolprotocol/test"
319
+ ]
320
+ },
321
+ {
322
+ "kind": "stepUses",
323
+ "capabilityId": "@executioncontrolprotocol/test.echo"
324
+ }
325
+ ],
326
+ "judge": {
327
+ "enabled": false
328
+ }
329
+ }
330
+ },
331
+ {
332
+ "id": "wf-create-09",
333
+ "suite": "workflow-create",
334
+ "title": "Triple steps",
335
+ "harness": "workflow-authoring",
336
+ "model": "default",
337
+ "input": {
338
+ "request": "Create a 3-step workflow using @executioncontrolprotocol/test.validate, @executioncontrolprotocol/test.echo, and @executioncontrolprotocol/test.summarize."
339
+ },
340
+ "assertions": {
341
+ "deterministic": [
342
+ {
343
+ "kind": "invokeSuccess"
344
+ },
345
+ {
346
+ "kind": "artifactSchema",
347
+ "value": "@executioncontrolprotocol.workflow"
348
+ },
349
+ {
350
+ "kind": "validationValid"
351
+ },
352
+ {
353
+ "kind": "descriptorListsExtensions",
354
+ "ids": [
355
+ "@executioncontrolprotocol/format-toon",
356
+ "@executioncontrolprotocol/format-eql",
357
+ "@executioncontrolprotocol/format-json",
358
+ "@executioncontrolprotocol/test"
359
+ ]
360
+ },
361
+ {
362
+ "kind": "stepCount",
363
+ "min": 3
364
+ }
365
+ ],
366
+ "judge": {
367
+ "enabled": false
368
+ }
369
+ }
370
+ },
371
+ {
372
+ "id": "wf-create-10",
373
+ "suite": "workflow-create",
374
+ "title": "Workflow id minimal-echo",
375
+ "harness": "workflow-authoring",
376
+ "model": "default",
377
+ "input": {
378
+ "request": "Create workflow id minimal-echo with one @executioncontrolprotocol/test.echo step labeled Runner."
379
+ },
380
+ "assertions": {
381
+ "deterministic": [
382
+ {
383
+ "kind": "invokeSuccess"
384
+ },
385
+ {
386
+ "kind": "artifactSchema",
387
+ "value": "@executioncontrolprotocol.workflow"
388
+ },
389
+ {
390
+ "kind": "validationValid"
391
+ },
392
+ {
393
+ "kind": "descriptorListsExtensions",
394
+ "ids": [
395
+ "@executioncontrolprotocol/format-toon",
396
+ "@executioncontrolprotocol/format-eql",
397
+ "@executioncontrolprotocol/format-json",
398
+ "@executioncontrolprotocol/test"
399
+ ]
400
+ },
401
+ {
402
+ "kind": "stepUses",
403
+ "capabilityId": "@executioncontrolprotocol/test.echo"
404
+ }
405
+ ],
406
+ "judge": {
407
+ "enabled": false
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "id": "wf-create-11",
413
+ "suite": "workflow-create",
414
+ "title": "Quality judge",
415
+ "harness": "workflow-authoring",
416
+ "model": "default",
417
+ "input": {
418
+ "request": "Design a clear production workflow using @executioncontrolprotocol/test.echo for ingestion."
419
+ },
420
+ "assertions": {
421
+ "deterministic": [
422
+ {
423
+ "kind": "invokeSuccess"
424
+ },
425
+ {
426
+ "kind": "artifactSchema",
427
+ "value": "@executioncontrolprotocol.workflow"
428
+ },
429
+ {
430
+ "kind": "validationValid"
431
+ },
432
+ {
433
+ "kind": "descriptorListsExtensions",
434
+ "ids": [
435
+ "@executioncontrolprotocol/format-toon",
436
+ "@executioncontrolprotocol/format-eql",
437
+ "@executioncontrolprotocol/format-json",
438
+ "@executioncontrolprotocol/test"
439
+ ]
440
+ }
441
+ ],
442
+ "judge": {
443
+ "enabled": true,
444
+ "goal": "Workflow is coherent and references echo capability",
445
+ "requireApproved": true
446
+ }
447
+ }
448
+ },
449
+ {
450
+ "id": "wf-create-12",
451
+ "suite": "workflow-create",
452
+ "title": "Descriptor caps",
453
+ "harness": "workflow-authoring",
454
+ "model": "default",
455
+ "input": {
456
+ "request": "List capabilities then create echo-only workflow with @executioncontrolprotocol/test.echo."
457
+ },
458
+ "assertions": {
459
+ "deterministic": [
460
+ {
461
+ "kind": "invokeSuccess"
462
+ },
463
+ {
464
+ "kind": "artifactSchema",
465
+ "value": "@executioncontrolprotocol.workflow"
466
+ },
467
+ {
468
+ "kind": "validationValid"
469
+ },
470
+ {
471
+ "kind": "descriptorListsExtensions",
472
+ "ids": [
473
+ "@executioncontrolprotocol/format-toon",
474
+ "@executioncontrolprotocol/format-eql",
475
+ "@executioncontrolprotocol/format-json",
476
+ "@executioncontrolprotocol/test"
477
+ ]
478
+ },
479
+ {
480
+ "kind": "descriptorListsCapabilities",
481
+ "ids": [
482
+ "@executioncontrolprotocol/test.echo",
483
+ "@executioncontrolprotocol/test.summarize"
484
+ ]
485
+ }
486
+ ],
487
+ "judge": {
488
+ "enabled": false
489
+ }
490
+ }
491
+ }
492
+ ]
493
+ }