@xemahq/dsl 0.8.1 → 0.8.3
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.
- package/dist/payload-codec/index.d.ts.map +1 -1
- package/dist/payload-codec/index.js.map +1 -1
- package/dist/payload-codec/lib/codec.d.ts.map +1 -1
- package/dist/payload-codec/lib/codec.js +2 -1
- package/dist/payload-codec/lib/codec.js.map +1 -1
- package/dist/payload-codec/lib/payload.d.ts.map +1 -1
- package/dist/schema/action.schema.json +205 -39
- package/dist/schema/workflow.schema.json +335 -88
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/lib/compiler/compile.js +1 -1
- package/dist/workflow/lib/compiler/compile.js.map +1 -1
- package/package.json +2 -18
- package/schema/action.schema.json +205 -39
- package/schema/workflow.schema.json +335 -88
- package/dist/payload-codec/temporal/index.d.ts +0 -5
- package/dist/payload-codec/temporal/index.d.ts.map +0 -1
- package/dist/payload-codec/temporal/index.js +0 -7
- package/dist/payload-codec/temporal/index.js.map +0 -1
- package/src/deliverable-spec/index.ts +0 -19
- package/src/deliverable-spec/lib/schema.ts +0 -270
- package/src/deliverable-spec/lib/types.ts +0 -26
- package/src/payload-codec/index.ts +0 -44
- package/src/payload-codec/lib/blob-store.ts +0 -176
- package/src/payload-codec/lib/codec-context.ts +0 -38
- package/src/payload-codec/lib/codec.ts +0 -605
- package/src/payload-codec/lib/enums.ts +0 -58
- package/src/payload-codec/lib/errors.ts +0 -54
- package/src/payload-codec/lib/http-blob-store.ts +0 -267
- package/src/payload-codec/lib/lru-cache.ts +0 -81
- package/src/payload-codec/lib/payload.ts +0 -26
- package/src/payload-codec/temporal/index.ts +0 -36
- package/src/workflow/index.ts +0 -108
- package/src/workflow/lib/action-input-validator.ts +0 -160
- package/src/workflow/lib/compiler/action-shape.ts +0 -71
- package/src/workflow/lib/compiler/canonical-json.ts +0 -66
- package/src/workflow/lib/compiler/compile.ts +0 -1742
- package/src/workflow/lib/compiler/concurrency.ts +0 -223
- package/src/workflow/lib/compiler/dag.ts +0 -108
- package/src/workflow/lib/compiler/gate-defaults.ts +0 -153
- package/src/workflow/lib/compiler/index.ts +0 -11
- package/src/workflow/lib/compiler/inputs.ts +0 -254
- package/src/workflow/lib/compiler/installation-resource-validator.ts +0 -114
- package/src/workflow/lib/compiler/manifest-source.ts +0 -71
- package/src/workflow/lib/compiler/matrix.ts +0 -135
- package/src/workflow/lib/compiler/mount-plan.ts +0 -190
- package/src/workflow/lib/compiler/payload-reach-in.ts +0 -497
- package/src/workflow/lib/compiler/permissions.ts +0 -64
- package/src/workflow/lib/compiler/retry-timeout.ts +0 -105
- package/src/workflow/lib/compiler/review-step.ts +0 -548
- package/src/workflow/lib/compiler/types.ts +0 -172
- package/src/workflow/lib/compiler/variable-requirements.ts +0 -208
- package/src/workflow/lib/deliverable-spec-introspection-error.ts +0 -63
- package/src/workflow/lib/deliverable-spec-keys.ts +0 -147
- package/src/workflow/lib/deliverable-spec-source-scan.ts +0 -280
- package/src/workflow/lib/dispatch-inputs/index.ts +0 -160
- package/src/workflow/lib/dispatch-inputs/to-json-schema.ts +0 -60
- package/src/workflow/lib/duration.ts +0 -43
- package/src/workflow/lib/errors.ts +0 -37
- package/src/workflow/lib/expression/ast.ts +0 -108
- package/src/workflow/lib/expression/context.ts +0 -148
- package/src/workflow/lib/expression/evaluator.ts +0 -492
- package/src/workflow/lib/expression/index.ts +0 -28
- package/src/workflow/lib/expression/interpolation.ts +0 -84
- package/src/workflow/lib/expression/parser.ts +0 -264
- package/src/workflow/lib/expression/template.ts +0 -117
- package/src/workflow/lib/expression/tokenizer.ts +0 -200
- package/src/workflow/lib/expression/tokens.ts +0 -30
- package/src/workflow/lib/expression/walk-artifact-refs.ts +0 -232
- package/src/workflow/lib/installation-resource-kind.ts +0 -107
- package/src/workflow/lib/schemas-loader.ts +0 -64
- package/src/workflow/lib/serializer.ts +0 -30
- package/src/workflow/lib/types.ts +0 -417
- package/src/workflow/lib/validate.ts +0 -199
- package/src/workspace-manifest/index.ts +0 -27
- package/src/workspace-manifest/lib/compile.ts +0 -619
- package/src/workspace-manifest/lib/interpolate.ts +0 -166
- package/src/workspace-manifest/lib/resolve-extends.ts +0 -260
- package/src/workspace-manifest/lib/schema.ts +0 -692
- package/src/workspace-manifest/lib/types.ts +0 -446
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
"title": "Xema Workflow",
|
|
5
5
|
"description": "Authoring shape for a Xema workflow document (system or custom).",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": [
|
|
7
|
+
"required": [
|
|
8
|
+
"apiVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"metadata",
|
|
11
|
+
"on",
|
|
12
|
+
"jobs"
|
|
13
|
+
],
|
|
8
14
|
"additionalProperties": false,
|
|
9
15
|
"properties": {
|
|
10
16
|
"apiVersion": {
|
|
@@ -15,27 +21,45 @@
|
|
|
15
21
|
"type": "string",
|
|
16
22
|
"const": "Workflow"
|
|
17
23
|
},
|
|
18
|
-
"metadata": {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
24
|
+
"metadata": {
|
|
25
|
+
"$ref": "#/$defs/Metadata"
|
|
26
|
+
},
|
|
27
|
+
"on": {
|
|
28
|
+
"$ref": "#/$defs/Triggers"
|
|
29
|
+
},
|
|
30
|
+
"concurrency": {
|
|
31
|
+
"$ref": "#/$defs/Concurrency"
|
|
32
|
+
},
|
|
33
|
+
"defaults": {
|
|
34
|
+
"$ref": "#/$defs/Defaults"
|
|
35
|
+
},
|
|
36
|
+
"permissions": {
|
|
37
|
+
"$ref": "#/$defs/Permissions"
|
|
38
|
+
},
|
|
23
39
|
"vars": {
|
|
24
40
|
"type": "object",
|
|
25
41
|
"description": "Static key/value pairs bound into every job's expression context as `vars.*`.",
|
|
26
42
|
"additionalProperties": true
|
|
27
43
|
},
|
|
28
|
-
"requires": {
|
|
44
|
+
"requires": {
|
|
45
|
+
"$ref": "#/$defs/Requires"
|
|
46
|
+
},
|
|
29
47
|
"jobs": {
|
|
30
48
|
"type": "object",
|
|
31
49
|
"minProperties": 1,
|
|
32
|
-
"additionalProperties": {
|
|
33
|
-
|
|
50
|
+
"additionalProperties": {
|
|
51
|
+
"$ref": "#/$defs/Job"
|
|
52
|
+
},
|
|
53
|
+
"propertyNames": {
|
|
54
|
+
"$ref": "#/$defs/JobKey"
|
|
55
|
+
}
|
|
34
56
|
},
|
|
35
57
|
"outputs": {
|
|
36
58
|
"type": "object",
|
|
37
59
|
"description": "Workflow-level named outputs. Each key references a (job, outputName) pair via fromJob/fromOutput and declares the kind of value surfaced.",
|
|
38
|
-
"additionalProperties": {
|
|
60
|
+
"additionalProperties": {
|
|
61
|
+
"$ref": "#/$defs/WorkflowOutput"
|
|
62
|
+
},
|
|
39
63
|
"propertyNames": {
|
|
40
64
|
"type": "string",
|
|
41
65
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
@@ -45,21 +69,39 @@
|
|
|
45
69
|
"$defs": {
|
|
46
70
|
"Metadata": {
|
|
47
71
|
"type": "object",
|
|
48
|
-
"required": [
|
|
72
|
+
"required": [
|
|
73
|
+
"name"
|
|
74
|
+
],
|
|
49
75
|
"additionalProperties": false,
|
|
50
76
|
"properties": {
|
|
51
|
-
"name": {
|
|
77
|
+
"name": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
80
|
+
},
|
|
52
81
|
"contractVersion": {
|
|
53
82
|
"type": "string",
|
|
54
83
|
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9.-]+)?$",
|
|
55
84
|
"description": "Compatibility version for an explicitly reusable public workflow contract. Ordinary workflows omit this field."
|
|
56
85
|
},
|
|
57
|
-
"title": {
|
|
58
|
-
|
|
59
|
-
|
|
86
|
+
"title": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"maxLength": 120
|
|
89
|
+
},
|
|
90
|
+
"description": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"maxLength": 4000
|
|
93
|
+
},
|
|
94
|
+
"category": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"maxLength": 120
|
|
98
|
+
},
|
|
60
99
|
"tags": {
|
|
61
100
|
"type": "array",
|
|
62
|
-
"items": {
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
104
|
+
},
|
|
63
105
|
"uniqueItems": true
|
|
64
106
|
}
|
|
65
107
|
}
|
|
@@ -92,7 +134,10 @@
|
|
|
92
134
|
"items": {
|
|
93
135
|
"type": "object",
|
|
94
136
|
"additionalProperties": false,
|
|
95
|
-
"required": [
|
|
137
|
+
"required": [
|
|
138
|
+
"adapterKind",
|
|
139
|
+
"capabilities"
|
|
140
|
+
],
|
|
96
141
|
"properties": {
|
|
97
142
|
"adapterKind": {
|
|
98
143
|
"type": "string",
|
|
@@ -124,32 +169,44 @@
|
|
|
124
169
|
"minProperties": 1,
|
|
125
170
|
"additionalProperties": false,
|
|
126
171
|
"properties": {
|
|
127
|
-
"workflow_dispatch": {
|
|
172
|
+
"workflow_dispatch": {
|
|
173
|
+
"$ref": "#/$defs/WorkflowDispatchTrigger"
|
|
174
|
+
},
|
|
128
175
|
"schedule": {
|
|
129
176
|
"type": "array",
|
|
130
177
|
"minItems": 1,
|
|
131
178
|
"maxItems": 16,
|
|
132
|
-
"items": {
|
|
179
|
+
"items": {
|
|
180
|
+
"$ref": "#/$defs/ScheduleTrigger"
|
|
181
|
+
}
|
|
133
182
|
},
|
|
134
183
|
"webhook": {
|
|
135
184
|
"type": "array",
|
|
136
185
|
"minItems": 1,
|
|
137
186
|
"maxItems": 32,
|
|
138
|
-
"items": {
|
|
187
|
+
"items": {
|
|
188
|
+
"$ref": "#/$defs/WebhookTrigger"
|
|
189
|
+
}
|
|
139
190
|
},
|
|
140
|
-
"workflow_call": {
|
|
191
|
+
"workflow_call": {
|
|
192
|
+
"$ref": "#/$defs/WorkflowCallTrigger"
|
|
193
|
+
}
|
|
141
194
|
}
|
|
142
195
|
},
|
|
143
196
|
"WorkflowDispatchTrigger": {
|
|
144
197
|
"type": "object",
|
|
145
198
|
"additionalProperties": false,
|
|
146
199
|
"properties": {
|
|
147
|
-
"inputs": {
|
|
200
|
+
"inputs": {
|
|
201
|
+
"$ref": "#/$defs/InputSchemaMap"
|
|
202
|
+
}
|
|
148
203
|
}
|
|
149
204
|
},
|
|
150
205
|
"ScheduleTrigger": {
|
|
151
206
|
"type": "object",
|
|
152
|
-
"required": [
|
|
207
|
+
"required": [
|
|
208
|
+
"cron"
|
|
209
|
+
],
|
|
153
210
|
"additionalProperties": false,
|
|
154
211
|
"properties": {
|
|
155
212
|
"cron": {
|
|
@@ -170,14 +227,24 @@
|
|
|
170
227
|
},
|
|
171
228
|
"WebhookTrigger": {
|
|
172
229
|
"type": "object",
|
|
173
|
-
"required": [
|
|
230
|
+
"required": [
|
|
231
|
+
"event"
|
|
232
|
+
],
|
|
174
233
|
"additionalProperties": false,
|
|
175
234
|
"properties": {
|
|
176
|
-
"event": {
|
|
177
|
-
|
|
235
|
+
"event": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"pattern": "^[a-z][a-z0-9._]*$"
|
|
238
|
+
},
|
|
239
|
+
"secretRef": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"minLength": 1
|
|
242
|
+
},
|
|
178
243
|
"filters": {
|
|
179
244
|
"type": "object",
|
|
180
|
-
"additionalProperties": {
|
|
245
|
+
"additionalProperties": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
181
248
|
}
|
|
182
249
|
}
|
|
183
250
|
},
|
|
@@ -185,42 +252,79 @@
|
|
|
185
252
|
"type": "object",
|
|
186
253
|
"additionalProperties": false,
|
|
187
254
|
"properties": {
|
|
188
|
-
"inputs": {
|
|
255
|
+
"inputs": {
|
|
256
|
+
"$ref": "#/$defs/InputSchemaMap"
|
|
257
|
+
},
|
|
189
258
|
"outputs": {
|
|
190
259
|
"type": "object",
|
|
191
|
-
"additionalProperties": {
|
|
260
|
+
"additionalProperties": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
}
|
|
192
263
|
}
|
|
193
264
|
}
|
|
194
265
|
},
|
|
195
266
|
"InputSchemaMap": {
|
|
196
267
|
"type": "object",
|
|
197
|
-
"additionalProperties": {
|
|
268
|
+
"additionalProperties": {
|
|
269
|
+
"$ref": "#/$defs/InputSchemaEntry"
|
|
270
|
+
}
|
|
198
271
|
},
|
|
199
272
|
"InputSchemaEntry": {
|
|
200
273
|
"type": "object",
|
|
201
|
-
"required": [
|
|
274
|
+
"required": [
|
|
275
|
+
"type"
|
|
276
|
+
],
|
|
202
277
|
"additionalProperties": false,
|
|
203
278
|
"properties": {
|
|
204
279
|
"type": {
|
|
205
280
|
"type": "string",
|
|
206
|
-
"enum": [
|
|
281
|
+
"enum": [
|
|
282
|
+
"string",
|
|
283
|
+
"number",
|
|
284
|
+
"integer",
|
|
285
|
+
"boolean",
|
|
286
|
+
"object",
|
|
287
|
+
"array"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"required": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"default": false
|
|
207
293
|
},
|
|
208
|
-
"required": { "type": "boolean", "default": false },
|
|
209
294
|
"default": {},
|
|
210
|
-
"description": {
|
|
211
|
-
|
|
212
|
-
|
|
295
|
+
"description": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"maxLength": 1000
|
|
298
|
+
},
|
|
299
|
+
"enum": {
|
|
300
|
+
"type": "array",
|
|
301
|
+
"minItems": 1
|
|
302
|
+
},
|
|
303
|
+
"items": {
|
|
304
|
+
"type": "object"
|
|
305
|
+
}
|
|
213
306
|
}
|
|
214
307
|
},
|
|
215
308
|
"Concurrency": {
|
|
216
309
|
"type": "object",
|
|
217
|
-
"required": [
|
|
310
|
+
"required": [
|
|
311
|
+
"group",
|
|
312
|
+
"mode"
|
|
313
|
+
],
|
|
218
314
|
"additionalProperties": false,
|
|
219
315
|
"properties": {
|
|
220
|
-
"group": {
|
|
316
|
+
"group": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"minLength": 1
|
|
319
|
+
},
|
|
221
320
|
"mode": {
|
|
222
321
|
"type": "string",
|
|
223
|
-
"enum": [
|
|
322
|
+
"enum": [
|
|
323
|
+
"allow",
|
|
324
|
+
"queue",
|
|
325
|
+
"cancel_in_progress",
|
|
326
|
+
"skip"
|
|
327
|
+
]
|
|
224
328
|
}
|
|
225
329
|
}
|
|
226
330
|
},
|
|
@@ -228,9 +332,15 @@
|
|
|
228
332
|
"type": "object",
|
|
229
333
|
"additionalProperties": false,
|
|
230
334
|
"properties": {
|
|
231
|
-
"retry": {
|
|
232
|
-
|
|
233
|
-
|
|
335
|
+
"retry": {
|
|
336
|
+
"$ref": "#/$defs/RetryPolicy"
|
|
337
|
+
},
|
|
338
|
+
"timeout": {
|
|
339
|
+
"$ref": "#/$defs/Timeout"
|
|
340
|
+
},
|
|
341
|
+
"gate": {
|
|
342
|
+
"$ref": "#/$defs/GateDefaults"
|
|
343
|
+
}
|
|
234
344
|
}
|
|
235
345
|
},
|
|
236
346
|
"GateDefaults": {
|
|
@@ -268,17 +378,28 @@
|
|
|
268
378
|
"type": "object",
|
|
269
379
|
"additionalProperties": false,
|
|
270
380
|
"properties": {
|
|
271
|
-
"maxAttempts": {
|
|
272
|
-
|
|
381
|
+
"maxAttempts": {
|
|
382
|
+
"type": "integer",
|
|
383
|
+
"minimum": 1,
|
|
384
|
+
"maximum": 20
|
|
385
|
+
},
|
|
386
|
+
"initialInterval": {
|
|
387
|
+
"$ref": "#/$defs/Timeout"
|
|
388
|
+
},
|
|
273
389
|
"backoffCoefficient": {
|
|
274
390
|
"type": "number",
|
|
275
391
|
"minimum": 1.0,
|
|
276
392
|
"maximum": 10.0
|
|
277
393
|
},
|
|
278
|
-
"maximumInterval": {
|
|
394
|
+
"maximumInterval": {
|
|
395
|
+
"$ref": "#/$defs/Timeout"
|
|
396
|
+
},
|
|
279
397
|
"nonRetryableErrorTypes": {
|
|
280
398
|
"type": "array",
|
|
281
|
-
"items": {
|
|
399
|
+
"items": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"minLength": 1
|
|
402
|
+
}
|
|
282
403
|
}
|
|
283
404
|
}
|
|
284
405
|
},
|
|
@@ -286,47 +407,91 @@
|
|
|
286
407
|
"type": "object",
|
|
287
408
|
"additionalProperties": false,
|
|
288
409
|
"properties": {
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
|
|
410
|
+
"artifacts": {
|
|
411
|
+
"$ref": "#/$defs/PermissionScope"
|
|
412
|
+
},
|
|
413
|
+
"backlog": {
|
|
414
|
+
"$ref": "#/$defs/PermissionScope"
|
|
415
|
+
},
|
|
416
|
+
"connectors": {
|
|
417
|
+
"$ref": "#/$defs/PermissionScope"
|
|
418
|
+
},
|
|
419
|
+
"kb": {
|
|
420
|
+
"$ref": "#/$defs/PermissionScope"
|
|
421
|
+
},
|
|
422
|
+
"memory": {
|
|
423
|
+
"$ref": "#/$defs/PermissionScope"
|
|
424
|
+
},
|
|
425
|
+
"repos": {
|
|
426
|
+
"$ref": "#/$defs/PermissionScope"
|
|
427
|
+
}
|
|
295
428
|
}
|
|
296
429
|
},
|
|
297
430
|
"PermissionScope": {
|
|
298
431
|
"type": "string",
|
|
299
|
-
"enum": [
|
|
432
|
+
"enum": [
|
|
433
|
+
"none",
|
|
434
|
+
"read",
|
|
435
|
+
"limited",
|
|
436
|
+
"write"
|
|
437
|
+
]
|
|
300
438
|
},
|
|
301
439
|
"Job": {
|
|
302
440
|
"type": "object",
|
|
303
|
-
"required": [
|
|
441
|
+
"required": [
|
|
442
|
+
"uses"
|
|
443
|
+
],
|
|
304
444
|
"additionalProperties": false,
|
|
305
445
|
"properties": {
|
|
306
|
-
"title": {
|
|
446
|
+
"title": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"maxLength": 120
|
|
449
|
+
},
|
|
307
450
|
"needs": {
|
|
308
451
|
"type": "array",
|
|
309
|
-
"items": {
|
|
452
|
+
"items": {
|
|
453
|
+
"$ref": "#/$defs/JobKey"
|
|
454
|
+
},
|
|
310
455
|
"uniqueItems": true
|
|
311
456
|
},
|
|
312
|
-
"if": {
|
|
313
|
-
|
|
457
|
+
"if": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"minLength": 1
|
|
460
|
+
},
|
|
461
|
+
"strategy": {
|
|
462
|
+
"$ref": "#/$defs/Strategy"
|
|
463
|
+
},
|
|
314
464
|
"matrixGather": {
|
|
315
465
|
"type": "array",
|
|
316
466
|
"description": "List of upstream jobKeys whose per-entry outputs should be flattened. For each key listed here, `needs.<key>.outputs` is reshaped from `{ kind: 'matrix', outputs: [...] }` to the flat array `[...]` before the job's `with:` expressions and `if:` are evaluated. Authors use this for synthesizer / coordinator jobs that need to aggregate across a matrix. Each key must be a declared job with a matrix strategy; the compiler auto-adds every key here to `needs` so authors do not have to duplicate.",
|
|
317
|
-
"items": {
|
|
467
|
+
"items": {
|
|
468
|
+
"$ref": "#/$defs/JobKey"
|
|
469
|
+
},
|
|
318
470
|
"minItems": 1,
|
|
319
471
|
"uniqueItems": true
|
|
320
472
|
},
|
|
321
|
-
"uses": {
|
|
322
|
-
|
|
473
|
+
"uses": {
|
|
474
|
+
"$ref": "#/$defs/UsesRef"
|
|
475
|
+
},
|
|
476
|
+
"with": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"additionalProperties": true
|
|
479
|
+
},
|
|
323
480
|
"outputs": {
|
|
324
481
|
"type": "object",
|
|
325
|
-
"additionalProperties": {
|
|
482
|
+
"additionalProperties": {
|
|
483
|
+
"type": "string"
|
|
484
|
+
}
|
|
326
485
|
},
|
|
327
|
-
"retry": {
|
|
328
|
-
|
|
329
|
-
|
|
486
|
+
"retry": {
|
|
487
|
+
"$ref": "#/$defs/RetryPolicy"
|
|
488
|
+
},
|
|
489
|
+
"timeout": {
|
|
490
|
+
"$ref": "#/$defs/Timeout"
|
|
491
|
+
},
|
|
492
|
+
"permissions": {
|
|
493
|
+
"$ref": "#/$defs/Permissions"
|
|
494
|
+
}
|
|
330
495
|
}
|
|
331
496
|
},
|
|
332
497
|
"UsesRef": {
|
|
@@ -349,12 +514,25 @@
|
|
|
349
514
|
},
|
|
350
515
|
"dynamic": {
|
|
351
516
|
"type": "object",
|
|
352
|
-
"required": [
|
|
517
|
+
"required": [
|
|
518
|
+
"from",
|
|
519
|
+
"as"
|
|
520
|
+
],
|
|
353
521
|
"additionalProperties": false,
|
|
354
522
|
"properties": {
|
|
355
|
-
"from": {
|
|
356
|
-
|
|
357
|
-
|
|
523
|
+
"from": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"minLength": 1
|
|
526
|
+
},
|
|
527
|
+
"as": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$"
|
|
530
|
+
},
|
|
531
|
+
"maxEntries": {
|
|
532
|
+
"type": "integer",
|
|
533
|
+
"minimum": 1,
|
|
534
|
+
"maximum": 64
|
|
535
|
+
},
|
|
358
536
|
"keyBy": {
|
|
359
537
|
"type": "string",
|
|
360
538
|
"minLength": 1,
|
|
@@ -362,26 +540,60 @@
|
|
|
362
540
|
}
|
|
363
541
|
}
|
|
364
542
|
},
|
|
365
|
-
"maxParallel": {
|
|
543
|
+
"maxParallel": {
|
|
544
|
+
"type": "integer",
|
|
545
|
+
"minimum": 1,
|
|
546
|
+
"maximum": 64
|
|
547
|
+
}
|
|
366
548
|
},
|
|
367
|
-
"oneOf": [
|
|
549
|
+
"oneOf": [
|
|
550
|
+
{
|
|
551
|
+
"required": [
|
|
552
|
+
"matrix"
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"required": [
|
|
557
|
+
"dynamic"
|
|
558
|
+
]
|
|
559
|
+
}
|
|
560
|
+
]
|
|
368
561
|
},
|
|
369
562
|
"WorkflowOutput": {
|
|
370
563
|
"type": "object",
|
|
371
|
-
"required": [
|
|
564
|
+
"required": [
|
|
565
|
+
"kind",
|
|
566
|
+
"slug",
|
|
567
|
+
"fromJob",
|
|
568
|
+
"fromOutput"
|
|
569
|
+
],
|
|
372
570
|
"oneOf": [
|
|
373
571
|
{
|
|
374
572
|
"additionalProperties": false,
|
|
375
573
|
"properties": {
|
|
376
|
-
"kind": {
|
|
377
|
-
|
|
574
|
+
"kind": {
|
|
575
|
+
"const": "deliverable"
|
|
576
|
+
},
|
|
577
|
+
"slug": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
580
|
+
},
|
|
378
581
|
"fromJob": {
|
|
379
582
|
"type": "string",
|
|
380
583
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
381
584
|
},
|
|
382
|
-
"fromOutput": {
|
|
383
|
-
|
|
384
|
-
|
|
585
|
+
"fromOutput": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"minLength": 1
|
|
588
|
+
},
|
|
589
|
+
"description": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"maxLength": 4000
|
|
592
|
+
},
|
|
593
|
+
"deliverableSpecRef": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"minLength": 1
|
|
596
|
+
}
|
|
385
597
|
},
|
|
386
598
|
"required": [
|
|
387
599
|
"kind",
|
|
@@ -394,31 +606,66 @@
|
|
|
394
606
|
{
|
|
395
607
|
"additionalProperties": false,
|
|
396
608
|
"properties": {
|
|
397
|
-
"kind": {
|
|
398
|
-
|
|
609
|
+
"kind": {
|
|
610
|
+
"const": "structured"
|
|
611
|
+
},
|
|
612
|
+
"slug": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
615
|
+
},
|
|
399
616
|
"fromJob": {
|
|
400
617
|
"type": "string",
|
|
401
618
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
402
619
|
},
|
|
403
|
-
"fromOutput": {
|
|
404
|
-
|
|
405
|
-
|
|
620
|
+
"fromOutput": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"minLength": 1
|
|
623
|
+
},
|
|
624
|
+
"description": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"maxLength": 4000
|
|
627
|
+
},
|
|
628
|
+
"schemaRef": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"minLength": 1
|
|
631
|
+
}
|
|
406
632
|
},
|
|
407
|
-
"required": [
|
|
633
|
+
"required": [
|
|
634
|
+
"kind",
|
|
635
|
+
"slug",
|
|
636
|
+
"fromJob",
|
|
637
|
+
"fromOutput"
|
|
638
|
+
]
|
|
408
639
|
},
|
|
409
640
|
{
|
|
410
641
|
"additionalProperties": false,
|
|
411
642
|
"properties": {
|
|
412
|
-
"kind": {
|
|
413
|
-
|
|
643
|
+
"kind": {
|
|
644
|
+
"const": "text"
|
|
645
|
+
},
|
|
646
|
+
"slug": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
649
|
+
},
|
|
414
650
|
"fromJob": {
|
|
415
651
|
"type": "string",
|
|
416
652
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
417
653
|
},
|
|
418
|
-
"fromOutput": {
|
|
419
|
-
|
|
654
|
+
"fromOutput": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"minLength": 1
|
|
657
|
+
},
|
|
658
|
+
"description": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"maxLength": 4000
|
|
661
|
+
}
|
|
420
662
|
},
|
|
421
|
-
"required": [
|
|
663
|
+
"required": [
|
|
664
|
+
"kind",
|
|
665
|
+
"slug",
|
|
666
|
+
"fromJob",
|
|
667
|
+
"fromOutput"
|
|
668
|
+
]
|
|
422
669
|
}
|
|
423
670
|
]
|
|
424
671
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,GACjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,KAAK,6BAA6B,GACnC,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACL,0BAA0B,EAC1B,oCAAoC,EACpC,4BAA4B,EAC5B,sBAAsB,EACtB,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,+BAA+B,EAC/B,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,4BAA4B,EAC5B,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iCAAiC,EACjC,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,YAAY,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,YAAY,EACV,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,+BAA+B,EAC/B,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,gBAAgB,EAChB,kCAAkC,EAClC,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;AAgBA,uCAAoE;AAA3D,0GAAA,gBAAgB,OAAA;AAAE,4GAAA,kBAAkB,OAAA;AAC7C,uEAIsC;AAHpC,8HAAA,oBAAoB,OAAA;AAItB,+EAI0C;AAHxC,sIAAA,wBAAwB,OAAA;AACxB,8IAAA,gCAAgC,OAAA;AAIlC,2CAOwB;AANtB,sHAAA,0BAA0B,OAAA;AAC1B,gIAAA,oCAAoC,OAAA;AACpC,wHAAA,4BAA4B,OAAA;AAC5B,kHAAA,sBAAsB,OAAA;AACtB,4HAAA,gCAAgC,OAAA;AAChC,oHAAA,wBAAwB,OAAA;AAE1B,+CAa0B;AAZxB,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,kBAAkB,OAAA;AAClB,gHAAA,kBAAkB,OAAA;AAClB,4GAAA,cAAc,OAAA;AACd,+GAAA,iBAAiB,OAAA;AACjB,gHAAA,kBAAkB,OAAA;AAClB,mHAAA,qBAAqB,OAAA;AACrB,oHAAA,sBAAsB,OAAA;AACtB,gHAAA,kBAAkB,OAAA;AAKpB,2CAAiD;AAAxC,2GAAA,eAAe,OAAA;AACxB,yDAK+B;AAJ7B,yHAAA,sBAAsB,OAAA;AACtB,4HAAA,yBAAyB,OAAA;AACzB,kIAAA,+BAA+B,OAAA;AAGjC,uEAAkF;AAAzE,4HAAA,0BAA0B,OAAA;AACnC,+CAA6D;AAApD,uHAAA,yBAAyB,OAAA;AAClC,2CAawB;AAZtB,mHAAA,uBAAuB,OAAA;AACvB,6GAAA,iBAAiB,OAAA;AACjB,+GAAA,mBAAmB,OAAA;AACnB,kHAAA,sBAAsB,OAAA;AACtB,iHAAA,qBAAqB,OAAA;AACrB,2GAAA,eAAe,OAAA;AACf,wHAAA,4BAA4B,OAAA;AAC5B,+GAAA,mBAAmB,OAAA;AAMrB,qEAGqC;AAFnC,qIAAA,4BAA4B,OAAA;AAC5B,sIAAA,6BAA6B,OAAA;AAE/B,mGAIoD;AAHlD,yJAAA,iCAAiC,OAAA;AACjC,2JAAA,mCAAmC,OAAA;AACnC,2JAAA,mCAAmC,OAAA;AAErC,mFAAuF;AAA9E,iJAAA,iCAAiC,OAAA"}
|
|
@@ -200,7 +200,7 @@ function resolveJobExecutionKind(jobKey, withBlock, resolved) {
|
|
|
200
200
|
}
|
|
201
201
|
if (raw !== workflow_1.ActionExecutionKind.ACTIVITY &&
|
|
202
202
|
raw !== workflow_1.ActionExecutionKind.CHILD_WORKFLOW) {
|
|
203
|
-
throw new errors_1.WorkflowDslError(workflow_1.WorkflowErrorCode.DSL_SEMANTIC_INVALID, `jobs.${jobKey}.with.executionKind must be the literal '${workflow_1.ActionExecutionKind.ACTIVITY}' or '${workflow_1.ActionExecutionKind.CHILD_WORKFLOW}' — the
|
|
203
|
+
throw new errors_1.WorkflowDslError(workflow_1.WorkflowErrorCode.DSL_SEMANTIC_INVALID, `jobs.${jobKey}.with.executionKind must be the literal '${workflow_1.ActionExecutionKind.ACTIVITY}' or '${workflow_1.ActionExecutionKind.CHILD_WORKFLOW}' — the workflow-runtime dispatch primitive is fixed at compile time, so expressions are not allowed.`, { jobKey, executionKind: raw });
|
|
204
204
|
}
|
|
205
205
|
return raw;
|
|
206
206
|
}
|