@executioncontrolprotocol/types 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 (105) hide show
  1. package/README.md +16 -0
  2. package/dist/capabilities.d.ts +31 -0
  3. package/dist/capabilities.d.ts.map +1 -0
  4. package/dist/capabilities.js +2 -0
  5. package/dist/capabilities.js.map +1 -0
  6. package/dist/encoding.d.ts +99 -0
  7. package/dist/encoding.d.ts.map +1 -0
  8. package/dist/encoding.js +25 -0
  9. package/dist/encoding.js.map +1 -0
  10. package/dist/environment.d.ts +132 -0
  11. package/dist/environment.d.ts.map +1 -0
  12. package/dist/environment.js +2 -0
  13. package/dist/environment.js.map +1 -0
  14. package/dist/harness-feedback.d.ts +43 -0
  15. package/dist/harness-feedback.d.ts.map +1 -0
  16. package/dist/harness-feedback.js +2 -0
  17. package/dist/harness-feedback.js.map +1 -0
  18. package/dist/harness-reply.d.ts +63 -0
  19. package/dist/harness-reply.d.ts.map +1 -0
  20. package/dist/harness-reply.js +30 -0
  21. package/dist/harness-reply.js.map +1 -0
  22. package/dist/harness-run-context.d.ts +228 -0
  23. package/dist/harness-run-context.d.ts.map +1 -0
  24. package/dist/harness-run-context.js +35 -0
  25. package/dist/harness-run-context.js.map +1 -0
  26. package/dist/harness-tasks.d.ts +403 -0
  27. package/dist/harness-tasks.d.ts.map +1 -0
  28. package/dist/harness-tasks.js +50 -0
  29. package/dist/harness-tasks.js.map +1 -0
  30. package/dist/harness.d.ts +118 -0
  31. package/dist/harness.d.ts.map +1 -0
  32. package/dist/harness.js +34 -0
  33. package/dist/harness.js.map +1 -0
  34. package/dist/image.d.ts +150 -0
  35. package/dist/image.d.ts.map +1 -0
  36. package/dist/image.js +46 -0
  37. package/dist/image.js.map +1 -0
  38. package/dist/index.d.ts +34 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +12 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/intent.d.ts +35 -0
  43. package/dist/intent.d.ts.map +1 -0
  44. package/dist/intent.js +26 -0
  45. package/dist/intent.js.map +1 -0
  46. package/dist/invoke.d.ts +44 -0
  47. package/dist/invoke.d.ts.map +1 -0
  48. package/dist/invoke.js +9 -0
  49. package/dist/invoke.js.map +1 -0
  50. package/dist/lifecycle.d.ts +27 -0
  51. package/dist/lifecycle.d.ts.map +1 -0
  52. package/dist/lifecycle.js +2 -0
  53. package/dist/lifecycle.js.map +1 -0
  54. package/dist/model.d.ts +57 -0
  55. package/dist/model.d.ts.map +1 -0
  56. package/dist/model.js +32 -0
  57. package/dist/model.js.map +1 -0
  58. package/dist/patch-errors.d.ts +11 -0
  59. package/dist/patch-errors.d.ts.map +1 -0
  60. package/dist/patch-errors.js +9 -0
  61. package/dist/patch-errors.js.map +1 -0
  62. package/dist/patch.d.ts +51 -0
  63. package/dist/patch.d.ts.map +1 -0
  64. package/dist/patch.js +2 -0
  65. package/dist/patch.js.map +1 -0
  66. package/dist/registry.d.ts +24 -0
  67. package/dist/registry.d.ts.map +1 -0
  68. package/dist/registry.js +2 -0
  69. package/dist/registry.js.map +1 -0
  70. package/dist/run.d.ts +35 -0
  71. package/dist/run.d.ts.map +1 -0
  72. package/dist/run.js +2 -0
  73. package/dist/run.js.map +1 -0
  74. package/dist/schema.d.ts +67 -0
  75. package/dist/schema.d.ts.map +1 -0
  76. package/dist/schema.js +2 -0
  77. package/dist/schema.js.map +1 -0
  78. package/dist/schemas/decode.result.json +155 -0
  79. package/dist/schemas/encode.result.json +162 -0
  80. package/dist/schemas/environment.describe.json +210 -0
  81. package/dist/schemas/environment.manifest.json +159 -0
  82. package/dist/schemas/environment.search.json +72 -0
  83. package/dist/schemas/patch.json +104 -0
  84. package/dist/schemas/patch.result.json +260 -0
  85. package/dist/schemas/run.request.json +485 -0
  86. package/dist/schemas/run.result.json +170 -0
  87. package/dist/schemas/validation.result.json +89 -0
  88. package/dist/schemas/workflow.manifest.json +451 -0
  89. package/dist/store.d.ts +30 -0
  90. package/dist/store.d.ts.map +1 -0
  91. package/dist/store.js +2 -0
  92. package/dist/store.js.map +1 -0
  93. package/dist/validation.d.ts +20 -0
  94. package/dist/validation.d.ts.map +1 -0
  95. package/dist/validation.js +2 -0
  96. package/dist/validation.js.map +1 -0
  97. package/dist/version.d.ts +5 -0
  98. package/dist/version.d.ts.map +1 -0
  99. package/dist/version.js +3 -0
  100. package/dist/version.js.map +1 -0
  101. package/dist/workflow.d.ts +55 -0
  102. package/dist/workflow.d.ts.map +1 -0
  103. package/dist/workflow.js +2 -0
  104. package/dist/workflow.js.map +1 -0
  105. package/package.json +33 -0
@@ -0,0 +1,485 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/RunRequest",
4
+ "definitions": {
5
+ "RunRequest": {
6
+ "type": "object",
7
+ "properties": {
8
+ "schema": {
9
+ "type": "string",
10
+ "const": "@executioncontrolprotocol.run.request"
11
+ },
12
+ "version": {
13
+ "$ref": "#/definitions/EcpVersion"
14
+ },
15
+ "workflow": {
16
+ "$ref": "#/definitions/WorkflowManifest"
17
+ },
18
+ "input": {
19
+ "type": "object",
20
+ "additionalProperties": {}
21
+ },
22
+ "actor": {
23
+ "type": "object",
24
+ "additionalProperties": {}
25
+ },
26
+ "dryRun": {
27
+ "type": "boolean"
28
+ }
29
+ },
30
+ "required": [
31
+ "schema",
32
+ "version",
33
+ "workflow"
34
+ ],
35
+ "additionalProperties": false,
36
+ "description": "Run request document.",
37
+ "category": "Runtime"
38
+ },
39
+ "EcpVersion": {
40
+ "type": "string",
41
+ "description": "ECP semantic version literal.",
42
+ "category": "Common"
43
+ },
44
+ "WorkflowManifest": {
45
+ "type": "object",
46
+ "properties": {
47
+ "schema": {
48
+ "type": "string",
49
+ "const": "@executioncontrolprotocol.workflow"
50
+ },
51
+ "version": {
52
+ "$ref": "#/definitions/EcpVersion"
53
+ },
54
+ "workflow": {
55
+ "type": "object",
56
+ "properties": {
57
+ "id": {
58
+ "type": "string"
59
+ },
60
+ "label": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "required": [
65
+ "id"
66
+ ],
67
+ "additionalProperties": false
68
+ },
69
+ "steps": {
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/definitions/WorkflowNode"
73
+ }
74
+ }
75
+ },
76
+ "required": [
77
+ "schema",
78
+ "version",
79
+ "workflow",
80
+ "steps"
81
+ ],
82
+ "additionalProperties": false,
83
+ "description": "Portable workflow manifest.",
84
+ "category": "Workflow"
85
+ },
86
+ "WorkflowNode": {
87
+ "anyOf": [
88
+ {
89
+ "$ref": "#/definitions/StepNode"
90
+ },
91
+ {
92
+ "$ref": "#/definitions/ParallelNode"
93
+ },
94
+ {
95
+ "$ref": "#/definitions/BranchNode"
96
+ },
97
+ {
98
+ "$ref": "#/definitions/LoopNode"
99
+ }
100
+ ],
101
+ "description": "Workflow graph node union.",
102
+ "category": "Workflow"
103
+ },
104
+ "StepNode": {
105
+ "type": "object",
106
+ "properties": {
107
+ "type": {
108
+ "type": "string",
109
+ "const": "step"
110
+ },
111
+ "id": {
112
+ "type": "string"
113
+ },
114
+ "label": {
115
+ "type": "string"
116
+ },
117
+ "uses": {
118
+ "anyOf": [
119
+ {
120
+ "$ref": "#/definitions/CapabilityId"
121
+ },
122
+ {
123
+ "type": "string"
124
+ }
125
+ ]
126
+ },
127
+ "input": {
128
+ "type": "object",
129
+ "additionalProperties": {
130
+ "$ref": "#/definitions/InputValue"
131
+ }
132
+ },
133
+ "as": {
134
+ "type": "string",
135
+ "description": "State key for committed output (fluent `.as()`)."
136
+ },
137
+ "mode": {
138
+ "$ref": "#/definitions/CommitMode",
139
+ "description": "Commit mode when `as` is set (fluent `.as(key, { mode })`)."
140
+ },
141
+ "when": {
142
+ "$ref": "#/definitions/ExprValue"
143
+ }
144
+ },
145
+ "required": [
146
+ "id",
147
+ "uses"
148
+ ],
149
+ "additionalProperties": false,
150
+ "description": "Single capability step.",
151
+ "category": "Workflow"
152
+ },
153
+ "CapabilityId": {
154
+ "type": "string",
155
+ "description": "Capability id (`@namespace/name.capability`).",
156
+ "category": "Common"
157
+ },
158
+ "InputValue": {
159
+ "anyOf": [
160
+ {
161
+ "type": "string"
162
+ },
163
+ {
164
+ "type": "number"
165
+ },
166
+ {
167
+ "type": "boolean"
168
+ },
169
+ {
170
+ "type": "null"
171
+ },
172
+ {
173
+ "type": "array",
174
+ "items": {
175
+ "$ref": "#/definitions/InputValue"
176
+ }
177
+ },
178
+ {
179
+ "type": "object",
180
+ "additionalProperties": {
181
+ "$ref": "#/definitions/InputValue"
182
+ }
183
+ },
184
+ {
185
+ "$ref": "#/definitions/RefValue"
186
+ },
187
+ {
188
+ "$ref": "#/definitions/StateValue"
189
+ },
190
+ {
191
+ "$ref": "#/definitions/EnvValue"
192
+ },
193
+ {
194
+ "$ref": "#/definitions/SecretValue"
195
+ },
196
+ {
197
+ "$ref": "#/definitions/BrowserValue"
198
+ }
199
+ ],
200
+ "description": "Input value allowed in step config.",
201
+ "category": "Workflow"
202
+ },
203
+ "RefValue": {
204
+ "type": "object",
205
+ "properties": {
206
+ "$ref": {
207
+ "type": "string",
208
+ "description": "State path prefixed with `state.` in manifests."
209
+ },
210
+ "optional": {
211
+ "type": "boolean",
212
+ "description": "When true, missing state does not fail resolution."
213
+ },
214
+ "fallback": {
215
+ "description": "Fallback when optional ref is missing."
216
+ }
217
+ },
218
+ "required": [
219
+ "$ref"
220
+ ],
221
+ "additionalProperties": false,
222
+ "description": "Workflow reference to committed state.",
223
+ "category": "Workflow"
224
+ },
225
+ "StateValue": {
226
+ "type": "object",
227
+ "properties": {
228
+ "$state": {
229
+ "type": "string",
230
+ "description": "State path for staged mutations."
231
+ },
232
+ "optional": {
233
+ "type": "boolean"
234
+ },
235
+ "fallback": {}
236
+ },
237
+ "required": [
238
+ "$state"
239
+ ],
240
+ "additionalProperties": false,
241
+ "description": "Mutable state handle in step input.",
242
+ "category": "Workflow"
243
+ },
244
+ "EnvValue": {
245
+ "type": "object",
246
+ "properties": {
247
+ "$env": {
248
+ "type": "string"
249
+ },
250
+ "optional": {
251
+ "type": "boolean"
252
+ },
253
+ "fallback": {}
254
+ },
255
+ "required": [
256
+ "$env"
257
+ ],
258
+ "additionalProperties": false,
259
+ "description": "Environment config secret reference (not portable in workflows).",
260
+ "category": "Environment"
261
+ },
262
+ "SecretValue": {
263
+ "type": "object",
264
+ "properties": {
265
+ "$secret": {
266
+ "type": "string",
267
+ "description": "Logical key in the OS secrets store."
268
+ },
269
+ "optional": {
270
+ "type": "boolean",
271
+ "description": "When true, missing secret does not fail resolution."
272
+ },
273
+ "fallback": {
274
+ "description": "Fallback when optional secret is missing."
275
+ }
276
+ },
277
+ "required": [
278
+ "$secret"
279
+ ],
280
+ "additionalProperties": false,
281
+ "description": "OS secrets reference (not portable in workflows).",
282
+ "category": "Environment"
283
+ },
284
+ "BrowserValue": {
285
+ "type": "object",
286
+ "properties": {
287
+ "$browser": {
288
+ "type": "string",
289
+ "description": "Logical key in the browser secrets vault."
290
+ },
291
+ "optional": {
292
+ "type": "boolean",
293
+ "description": "When true, missing secret does not fail resolution."
294
+ },
295
+ "fallback": {
296
+ "description": "Fallback when optional secret is missing."
297
+ }
298
+ },
299
+ "required": [
300
+ "$browser"
301
+ ],
302
+ "additionalProperties": false,
303
+ "description": "Browser encrypted secrets reference (not portable in workflows).",
304
+ "category": "Environment"
305
+ },
306
+ "CommitMode": {
307
+ "type": "string",
308
+ "enum": [
309
+ "create",
310
+ "replace",
311
+ "merge",
312
+ "append",
313
+ "version"
314
+ ],
315
+ "description": "Commit mode for step output.",
316
+ "category": "Workflow"
317
+ },
318
+ "ExprValue": {
319
+ "anyOf": [
320
+ {
321
+ "type": "object",
322
+ "properties": {
323
+ "eq": {
324
+ "type": "array",
325
+ "minItems": 2,
326
+ "items": [
327
+ {
328
+ "type": "string"
329
+ },
330
+ {}
331
+ ],
332
+ "maxItems": 2
333
+ }
334
+ },
335
+ "required": [
336
+ "eq"
337
+ ],
338
+ "additionalProperties": false
339
+ },
340
+ {
341
+ "type": "object",
342
+ "properties": {
343
+ "neq": {
344
+ "type": "array",
345
+ "minItems": 2,
346
+ "items": [
347
+ {
348
+ "type": "string"
349
+ },
350
+ {}
351
+ ],
352
+ "maxItems": 2
353
+ }
354
+ },
355
+ "required": [
356
+ "neq"
357
+ ],
358
+ "additionalProperties": false
359
+ },
360
+ {
361
+ "type": "object",
362
+ "additionalProperties": {}
363
+ }
364
+ ],
365
+ "description": "Expression value in workflow conditions.",
366
+ "category": "Workflow"
367
+ },
368
+ "ParallelNode": {
369
+ "type": "object",
370
+ "properties": {
371
+ "type": {
372
+ "type": "string",
373
+ "const": "parallel"
374
+ },
375
+ "id": {
376
+ "type": "string"
377
+ },
378
+ "label": {
379
+ "type": "string"
380
+ },
381
+ "branches": {
382
+ "type": "array",
383
+ "items": {
384
+ "type": "array",
385
+ "items": {
386
+ "$ref": "#/definitions/WorkflowNode"
387
+ }
388
+ }
389
+ }
390
+ },
391
+ "required": [
392
+ "type",
393
+ "id",
394
+ "branches"
395
+ ],
396
+ "additionalProperties": false,
397
+ "description": "Parallel branches.",
398
+ "category": "Workflow"
399
+ },
400
+ "BranchNode": {
401
+ "type": "object",
402
+ "properties": {
403
+ "type": {
404
+ "type": "string",
405
+ "const": "branch"
406
+ },
407
+ "id": {
408
+ "type": "string"
409
+ },
410
+ "label": {
411
+ "type": "string"
412
+ },
413
+ "branches": {
414
+ "type": "array",
415
+ "items": {
416
+ "type": "object",
417
+ "properties": {
418
+ "label": {
419
+ "type": "string"
420
+ },
421
+ "when": {
422
+ "$ref": "#/definitions/ExprValue"
423
+ },
424
+ "steps": {
425
+ "type": "array",
426
+ "items": {
427
+ "$ref": "#/definitions/WorkflowNode"
428
+ }
429
+ }
430
+ },
431
+ "required": [
432
+ "when",
433
+ "steps"
434
+ ],
435
+ "additionalProperties": false
436
+ }
437
+ }
438
+ },
439
+ "required": [
440
+ "type",
441
+ "id",
442
+ "branches"
443
+ ],
444
+ "additionalProperties": false,
445
+ "description": "Conditional branches.",
446
+ "category": "Workflow"
447
+ },
448
+ "LoopNode": {
449
+ "type": "object",
450
+ "properties": {
451
+ "type": {
452
+ "type": "string",
453
+ "const": "loop"
454
+ },
455
+ "id": {
456
+ "type": "string"
457
+ },
458
+ "label": {
459
+ "type": "string"
460
+ },
461
+ "until": {
462
+ "$ref": "#/definitions/ExprValue"
463
+ },
464
+ "maxRounds": {
465
+ "type": "number"
466
+ },
467
+ "steps": {
468
+ "type": "array",
469
+ "items": {
470
+ "$ref": "#/definitions/WorkflowNode"
471
+ }
472
+ }
473
+ },
474
+ "required": [
475
+ "type",
476
+ "id",
477
+ "steps"
478
+ ],
479
+ "additionalProperties": false,
480
+ "description": "Loop until condition.",
481
+ "category": "Workflow"
482
+ }
483
+ },
484
+ "$id": "https://ecp.dev/schemas/run.request.json"
485
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/RunResult",
4
+ "definitions": {
5
+ "RunResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "schema": {
9
+ "type": "string",
10
+ "const": "@executioncontrolprotocol.run.result"
11
+ },
12
+ "version": {
13
+ "$ref": "#/definitions/EcpVersion"
14
+ },
15
+ "run": {
16
+ "type": "object",
17
+ "properties": {
18
+ "id": {
19
+ "type": "string"
20
+ },
21
+ "status": {
22
+ "$ref": "#/definitions/RunStatus"
23
+ }
24
+ },
25
+ "required": [
26
+ "id",
27
+ "status"
28
+ ],
29
+ "additionalProperties": false
30
+ },
31
+ "state": {
32
+ "type": "object",
33
+ "additionalProperties": {}
34
+ },
35
+ "history": {
36
+ "type": "object",
37
+ "additionalProperties": {
38
+ "$ref": "#/definitions/StepRunRecord"
39
+ }
40
+ },
41
+ "usage": {
42
+ "type": "object",
43
+ "additionalProperties": {}
44
+ }
45
+ },
46
+ "required": [
47
+ "schema",
48
+ "version",
49
+ "run"
50
+ ],
51
+ "additionalProperties": false,
52
+ "description": "Run result document.",
53
+ "category": "Runtime"
54
+ },
55
+ "EcpVersion": {
56
+ "type": "string",
57
+ "description": "ECP semantic version literal.",
58
+ "category": "Common"
59
+ },
60
+ "RunStatus": {
61
+ "type": "string",
62
+ "enum": [
63
+ "created",
64
+ "started",
65
+ "completed",
66
+ "failed",
67
+ "cancelled",
68
+ "paused"
69
+ ],
70
+ "description": "Run status.",
71
+ "category": "Runtime"
72
+ },
73
+ "StepRunRecord": {
74
+ "type": "object",
75
+ "properties": {
76
+ "status": {
77
+ "$ref": "#/definitions/RunStatus"
78
+ },
79
+ "output": {},
80
+ "committedAs": {
81
+ "type": [
82
+ "string",
83
+ "null"
84
+ ]
85
+ },
86
+ "attempts": {
87
+ "type": "number"
88
+ },
89
+ "usage": {
90
+ "type": "object",
91
+ "additionalProperties": {}
92
+ },
93
+ "mutations": {
94
+ "type": "array",
95
+ "items": {
96
+ "$ref": "#/definitions/MutationRecord"
97
+ }
98
+ }
99
+ },
100
+ "required": [
101
+ "status"
102
+ ],
103
+ "additionalProperties": false,
104
+ "description": "Per-step run history record.",
105
+ "category": "Runtime"
106
+ },
107
+ "MutationRecord": {
108
+ "type": "object",
109
+ "properties": {
110
+ "id": {
111
+ "type": "string"
112
+ },
113
+ "op": {
114
+ "type": "string",
115
+ "enum": [
116
+ "set",
117
+ "replace",
118
+ "merge",
119
+ "append"
120
+ ]
121
+ },
122
+ "path": {
123
+ "type": "string"
124
+ },
125
+ "before": {},
126
+ "after": {},
127
+ "reason": {
128
+ "type": "string"
129
+ },
130
+ "metadata": {
131
+ "type": "object",
132
+ "additionalProperties": {}
133
+ },
134
+ "status": {
135
+ "type": "string",
136
+ "enum": [
137
+ "committed",
138
+ "denied",
139
+ "discarded",
140
+ "failed"
141
+ ]
142
+ },
143
+ "stepId": {
144
+ "type": "string"
145
+ },
146
+ "capability": {
147
+ "type": "string"
148
+ },
149
+ "timestamp": {
150
+ "type": "string"
151
+ }
152
+ },
153
+ "required": [
154
+ "id",
155
+ "op",
156
+ "path",
157
+ "before",
158
+ "after",
159
+ "status",
160
+ "stepId",
161
+ "capability",
162
+ "timestamp"
163
+ ],
164
+ "additionalProperties": false,
165
+ "description": "Committed or denied mutation record.",
166
+ "category": "Runtime"
167
+ }
168
+ },
169
+ "$id": "https://ecp.dev/schemas/run.result.json"
170
+ }