@skaile/workspaces 2.3.0 → 2.5.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.
- package/CHANGELOG.md +60 -0
- package/README.md +32 -13
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-DKNYRLED.js → asset-feeds-4AWAT5PW.js} +6 -6
- package/dist/{asset-feeds-DKNYRLED.js.map → asset-feeds-4AWAT5PW.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +1 -1
- package/dist/asset-manager/index.js +5 -5
- package/dist/asset-manager/installer.js +2 -2
- package/dist/bridge/drivers/claude-sdk.js +108 -5
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +3 -3
- package/dist/bridge/drivers/goose.js +2 -2
- package/dist/bridge/drivers/omp.js +1 -1
- package/dist/bridge/drivers/opencode.js +2 -2
- package/dist/bridge/drivers/qwen.js +3 -3
- package/dist/bridge/index.js +2 -2
- package/dist/bridge/src/drivers/claude-sdk.d.ts +33 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/{chunk-CERGXDGG.js → chunk-2OCYS5EP.js} +3 -3
- package/dist/{chunk-CERGXDGG.js.map → chunk-2OCYS5EP.js.map} +1 -1
- package/dist/{chunk-W3Q37HEF.js → chunk-3HVASHBF.js} +3 -3
- package/dist/{chunk-W3Q37HEF.js.map → chunk-3HVASHBF.js.map} +1 -1
- package/dist/{chunk-UQ3RJKDD.js → chunk-4O2RAXKJ.js} +179 -52
- package/dist/chunk-4O2RAXKJ.js.map +1 -0
- package/dist/{chunk-DZM33LQO.js → chunk-4QROZZ5Z.js} +15 -3
- package/dist/chunk-4QROZZ5Z.js.map +1 -0
- package/dist/{chunk-G2ILW47R.js → chunk-57RFYEVM.js} +3 -3
- package/dist/{chunk-G2ILW47R.js.map → chunk-57RFYEVM.js.map} +1 -1
- package/dist/{chunk-BLWNI5KW.js → chunk-AKVAZ5CB.js} +2 -2
- package/dist/{chunk-BLWNI5KW.js.map → chunk-AKVAZ5CB.js.map} +1 -1
- package/dist/{chunk-BFIK6NPZ.js → chunk-AM5LFRXJ.js} +3 -3
- package/dist/{chunk-BFIK6NPZ.js.map → chunk-AM5LFRXJ.js.map} +1 -1
- package/dist/{chunk-RDE43ORT.js → chunk-D4VHBAJC.js} +4 -4
- package/dist/{chunk-RDE43ORT.js.map → chunk-D4VHBAJC.js.map} +1 -1
- package/dist/{chunk-PTS3QN5P.js → chunk-EEHOMCRU.js} +1021 -115
- package/dist/chunk-EEHOMCRU.js.map +1 -0
- package/dist/{chunk-CXX3UGJP.js → chunk-ENBTXMPL.js} +7 -7
- package/dist/{chunk-CXX3UGJP.js.map → chunk-ENBTXMPL.js.map} +1 -1
- package/dist/{chunk-LD6YGIKZ.js → chunk-EUWN4EK4.js} +60 -21
- package/dist/chunk-EUWN4EK4.js.map +1 -0
- package/dist/{chunk-FB4GPWYC.js → chunk-FKBQRV4J.js} +57 -16
- package/dist/chunk-FKBQRV4J.js.map +1 -0
- package/dist/{chunk-WG3L5VHF.js → chunk-HY3MBSNC.js} +2 -2
- package/dist/{chunk-WG3L5VHF.js.map → chunk-HY3MBSNC.js.map} +1 -1
- package/dist/{chunk-7IRH7MGV.js → chunk-IHX2SN35.js} +9 -9
- package/dist/{chunk-7IRH7MGV.js.map → chunk-IHX2SN35.js.map} +1 -1
- package/dist/{chunk-3F54MH2T.js → chunk-JAFEMG7W.js} +4 -4
- package/dist/{chunk-3F54MH2T.js.map → chunk-JAFEMG7W.js.map} +1 -1
- package/dist/{chunk-X6BPVUV2.js → chunk-L3TS7ZO4.js} +3 -3
- package/dist/{chunk-X6BPVUV2.js.map → chunk-L3TS7ZO4.js.map} +1 -1
- package/dist/{chunk-RIEXN7WA.js → chunk-MADO7PH5.js} +2 -2
- package/dist/{chunk-RIEXN7WA.js.map → chunk-MADO7PH5.js.map} +1 -1
- package/dist/{chunk-BCTU4TN7.js → chunk-MWFYXUFK.js} +3 -3
- package/dist/{chunk-BCTU4TN7.js.map → chunk-MWFYXUFK.js.map} +1 -1
- package/dist/{chunk-TK66CMXV.js → chunk-NU4E7C5I.js} +7 -3
- package/dist/chunk-NU4E7C5I.js.map +1 -0
- package/dist/{chunk-ZE2KEPE2.js → chunk-OEGHKO5N.js} +258 -24
- package/dist/chunk-OEGHKO5N.js.map +1 -0
- package/dist/{chunk-63ZPKREA.js → chunk-P43HBWKK.js} +11 -4
- package/dist/chunk-P43HBWKK.js.map +1 -0
- package/dist/{chunk-7UZGKVSK.js → chunk-PJ6INYDD.js} +3 -3
- package/dist/{chunk-7UZGKVSK.js.map → chunk-PJ6INYDD.js.map} +1 -1
- package/dist/{chunk-CA5CWLGN.js → chunk-PKEAYYEJ.js} +7 -4
- package/dist/chunk-PKEAYYEJ.js.map +1 -0
- package/dist/{chunk-ETFETLLB.js → chunk-UZYTSIX6.js} +6 -6
- package/dist/{chunk-ETFETLLB.js.map → chunk-UZYTSIX6.js.map} +1 -1
- package/dist/{chunk-SIF5F5SN.js → chunk-V4ZLZJFN.js} +3 -3
- package/dist/{chunk-SIF5F5SN.js.map → chunk-V4ZLZJFN.js.map} +1 -1
- package/dist/{chunk-ZR5Q4KZK.js → chunk-VNIKF66R.js} +3 -3
- package/dist/{chunk-ZR5Q4KZK.js.map → chunk-VNIKF66R.js.map} +1 -1
- package/dist/{chunk-CILACPUC.js → chunk-WSARNOPP.js} +5 -5
- package/dist/{chunk-CILACPUC.js.map → chunk-WSARNOPP.js.map} +1 -1
- package/dist/{chunk-TAJBFYCT.js → chunk-YWPEDILM.js} +83 -36
- package/dist/chunk-YWPEDILM.js.map +1 -0
- package/dist/{chunk-UNP4M5ZZ.js → chunk-ZR2X4SIG.js} +4 -4
- package/dist/{chunk-UNP4M5ZZ.js.map → chunk-ZR2X4SIG.js.map} +1 -1
- package/dist/cli/index.js +50 -50
- package/dist/connectors/config.js +1 -1
- package/dist/connectors/index.js +6 -6
- package/dist/core/index.js +1 -1
- package/dist/core/src/subprocess.d.ts +5 -1
- package/dist/core/src/subprocess.d.ts.map +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/discovery/index.js +1 -1
- package/dist/{ensure-sources-R6KW7K3M.js → ensure-sources-QF72HVUM.js} +8 -8
- package/dist/{ensure-sources-R6KW7K3M.js.map → ensure-sources-QF72HVUM.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +6 -6
- package/dist/factory-assets/connectors/deploy.js +6 -6
- package/dist/factory-assets/connectors/devserver.js +6 -6
- package/dist/factory-assets/connectors/flow/CONNECTOR.md +61 -14
- package/dist/factory-assets/connectors/flow/adapter.d.ts +78 -34
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +6 -6
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts +55 -0
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/flow.v2.schema.json +61 -134
- package/dist/factory-assets/connectors/flow/contract/index.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/contract/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/normalize.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/schema.d.ts +14 -2
- package/dist/factory-assets/connectors/flow/contract/schema.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract.js +2 -2
- package/dist/factory-assets/connectors/flow/engine/bindings.d.ts +9 -0
- package/dist/factory-assets/connectors/flow/engine/bindings.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/engine.d.ts +11 -6
- package/dist/factory-assets/connectors/flow/engine/engine.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/flow-kind-provider.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/index.d.ts +2 -0
- package/dist/factory-assets/connectors/flow/engine/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts +22 -0
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/output-schema.d.ts +18 -0
- package/dist/factory-assets/connectors/flow/engine/output-schema.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/types.d.ts +21 -15
- package/dist/factory-assets/connectors/flow/engine/types.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +4 -4
- package/dist/factory-assets/connectors/flow/index.d.ts +3 -0
- package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/inline-sub-flow-host.d.ts +48 -0
- package/dist/factory-assets/connectors/flow/inline-sub-flow-host.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/node-executor.d.ts +45 -0
- package/dist/factory-assets/connectors/flow/node-executor.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts +3 -2
- package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/prompt-fragments.js +2 -2
- package/dist/factory-assets/connectors/flow/run-flow.d.ts +10 -9
- package/dist/factory-assets/connectors/flow/run-flow.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +7 -7
- package/dist/factory-assets/connectors/flow/sub-flow-runner.d.ts +73 -0
- package/dist/factory-assets/connectors/flow/sub-flow-runner.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow.js +6 -6
- package/dist/factory-assets/connectors/git.js +6 -6
- package/dist/factory-assets/connectors/gmail.js +6 -6
- package/dist/factory-assets/connectors/googledrive.js +6 -6
- package/dist/factory-assets/connectors/local.js +6 -6
- package/dist/factory-assets/connectors/mattermost.js +6 -6
- package/dist/factory-assets/connectors/memory.js +6 -6
- package/dist/factory-assets/connectors/minio.js +6 -6
- package/dist/factory-assets/connectors/postgres.js +6 -6
- package/dist/factory-assets/connectors/s3.js +6 -6
- package/dist/factory-assets/connectors/sharepoint.js +6 -6
- package/dist/factory-assets/connectors/sqlite.js +6 -6
- package/dist/factory-assets/connectors/static-server.js +6 -6
- package/dist/factory-assets/connectors/tunnel.js +6 -6
- package/dist/factory-assets/connectors/webdav.js +6 -6
- package/dist/factory-assets/connectors/xstate-store.js +6 -6
- package/dist/factory-assets/connectors/xstate.js +6 -6
- package/dist/{flows-F3CJNMK6.js → flows-YIW4HL3L.js} +4 -4
- package/dist/{flows-F3CJNMK6.js.map → flows-YIW4HL3L.js.map} +1 -1
- package/dist/{helpers-KPOLCGKX.js → helpers-LURCZHA4.js} +8 -8
- package/dist/{helpers-KPOLCGKX.js.map → helpers-LURCZHA4.js.map} +1 -1
- package/dist/library/index.js +3 -3
- package/dist/library/install.js +1 -1
- package/dist/{library-publish-ZAPZS64O.js → library-publish-2GMJM3NZ.js} +14 -14
- package/dist/{library-publish-ZAPZS64O.js.map → library-publish-2GMJM3NZ.js.map} +1 -1
- package/dist/{open-library-I4F2UNOY.js → open-library-POFOXZWH.js} +12 -12
- package/dist/{open-library-I4F2UNOY.js.map → open-library-POFOXZWH.js.map} +1 -1
- package/dist/{paths-KBACHM5B.js → paths-ZLX4ITAQ.js} +6 -6
- package/dist/{paths-KBACHM5B.js.map → paths-ZLX4ITAQ.js.map} +1 -1
- package/dist/{plugin-store-CYSNVZIX.js → plugin-store-YIMNH2FH.js} +3 -3
- package/dist/{plugin-store-CYSNVZIX.js.map → plugin-store-YIMNH2FH.js.map} +1 -1
- package/dist/{project-SIHZBTGB.js → project-GVOPZEJZ.js} +9 -9
- package/dist/{project-SIHZBTGB.js.map → project-GVOPZEJZ.js.map} +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/runner/index.js +15 -12
- package/dist/runner/src/serve.d.ts +3 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +5 -5
- package/dist/sdk/bridge.js +2 -2
- package/dist/sdk/core.js +1 -1
- package/dist/sdk/flow.js +4 -4
- package/dist/sdk/index.js +15 -12
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +1 -1
- package/dist/sdk/runner.js +15 -12
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/session/index.js +2 -2
- package/dist/session/src/dispatcher.d.ts.map +1 -1
- package/dist/{setup-KMBXMV25.js → setup-RHWARBBB.js} +5 -5
- package/dist/{setup-KMBXMV25.js.map → setup-RHWARBBB.js.map} +1 -1
- package/dist/{skills-LHS4TOKK.js → skills-HGVH6UTA.js} +5 -5
- package/dist/{skills-LHS4TOKK.js.map → skills-HGVH6UTA.js.map} +1 -1
- package/dist/{source-X226ZJPR.js → source-FB3T4IHP.js} +13 -13
- package/dist/{source-X226ZJPR.js.map → source-FB3T4IHP.js.map} +1 -1
- package/dist/{source-manifest-publish-N2QVUR5U.js → source-manifest-publish-XTRDVPSC.js} +15 -15
- package/dist/{source-manifest-publish-N2QVUR5U.js.map → source-manifest-publish-XTRDVPSC.js.map} +1 -1
- package/dist/tui/index.js +15 -12
- package/dist/tui/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/src/events.d.ts +20 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/flow.d.ts +26 -0
- package/dist/types/src/flow.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/protocol.d.ts +1 -0
- package/dist/types/src/protocol.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +12 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +4 -4
- package/dist/workspace-plugin/adapters/omp.js +7 -7
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-63ZPKREA.js.map +0 -1
- package/dist/chunk-CA5CWLGN.js.map +0 -1
- package/dist/chunk-DZM33LQO.js.map +0 -1
- package/dist/chunk-FB4GPWYC.js.map +0 -1
- package/dist/chunk-LD6YGIKZ.js.map +0 -1
- package/dist/chunk-PTS3QN5P.js.map +0 -1
- package/dist/chunk-TAJBFYCT.js.map +0 -1
- package/dist/chunk-TK66CMXV.js.map +0 -1
- package/dist/chunk-UQ3RJKDD.js.map +0 -1
- package/dist/chunk-ZE2KEPE2.js.map +0 -1
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
"$ref": "#/$defs/__schema1"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"required": [
|
|
47
|
-
"schema"
|
|
48
|
-
],
|
|
46
|
+
"required": ["schema"],
|
|
49
47
|
"additionalProperties": false
|
|
50
48
|
},
|
|
51
49
|
"output": {
|
|
@@ -61,9 +59,7 @@
|
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
|
-
"required": [
|
|
65
|
-
"schema"
|
|
66
|
-
],
|
|
62
|
+
"required": ["schema"],
|
|
67
63
|
"additionalProperties": false
|
|
68
64
|
},
|
|
69
65
|
"defaults": {
|
|
@@ -71,11 +67,7 @@
|
|
|
71
67
|
"properties": {
|
|
72
68
|
"approval": {
|
|
73
69
|
"type": "string",
|
|
74
|
-
"enum": [
|
|
75
|
-
"checkpoint",
|
|
76
|
-
"auto",
|
|
77
|
-
"manual"
|
|
78
|
-
]
|
|
70
|
+
"enum": ["checkpoint", "auto", "manual"]
|
|
79
71
|
},
|
|
80
72
|
"researchDepth": {
|
|
81
73
|
"type": "string",
|
|
@@ -155,10 +147,7 @@
|
|
|
155
147
|
}
|
|
156
148
|
}
|
|
157
149
|
},
|
|
158
|
-
"required": [
|
|
159
|
-
"kind",
|
|
160
|
-
"instruction"
|
|
161
|
-
],
|
|
150
|
+
"required": ["kind", "instruction"],
|
|
162
151
|
"additionalProperties": false
|
|
163
152
|
},
|
|
164
153
|
{
|
|
@@ -184,10 +173,7 @@
|
|
|
184
173
|
}
|
|
185
174
|
}
|
|
186
175
|
},
|
|
187
|
-
"required": [
|
|
188
|
-
"kind",
|
|
189
|
-
"instruction"
|
|
190
|
-
],
|
|
176
|
+
"required": ["kind", "instruction"],
|
|
191
177
|
"additionalProperties": false
|
|
192
178
|
},
|
|
193
179
|
{
|
|
@@ -199,11 +185,7 @@
|
|
|
199
185
|
},
|
|
200
186
|
"runtime": {
|
|
201
187
|
"type": "string",
|
|
202
|
-
"enum": [
|
|
203
|
-
"shell",
|
|
204
|
-
"node",
|
|
205
|
-
"python"
|
|
206
|
-
]
|
|
188
|
+
"enum": ["shell", "node", "python"]
|
|
207
189
|
},
|
|
208
190
|
"command": {
|
|
209
191
|
"type": "string",
|
|
@@ -243,10 +225,7 @@
|
|
|
243
225
|
}
|
|
244
226
|
}
|
|
245
227
|
},
|
|
246
|
-
"required": [
|
|
247
|
-
"kind",
|
|
248
|
-
"command"
|
|
249
|
-
],
|
|
228
|
+
"required": ["kind", "command"],
|
|
250
229
|
"additionalProperties": false
|
|
251
230
|
},
|
|
252
231
|
{
|
|
@@ -259,18 +238,11 @@
|
|
|
259
238
|
"onFail": {
|
|
260
239
|
"default": "escalate",
|
|
261
240
|
"type": "string",
|
|
262
|
-
"enum": [
|
|
263
|
-
"escalate",
|
|
264
|
-
"fail"
|
|
265
|
-
]
|
|
241
|
+
"enum": ["escalate", "fail"]
|
|
266
242
|
},
|
|
267
243
|
"runtime": {
|
|
268
244
|
"type": "string",
|
|
269
|
-
"enum": [
|
|
270
|
-
"shell",
|
|
271
|
-
"node",
|
|
272
|
-
"python"
|
|
273
|
-
]
|
|
245
|
+
"enum": ["shell", "node", "python"]
|
|
274
246
|
},
|
|
275
247
|
"command": {
|
|
276
248
|
"type": "string",
|
|
@@ -310,10 +282,7 @@
|
|
|
310
282
|
}
|
|
311
283
|
}
|
|
312
284
|
},
|
|
313
|
-
"required": [
|
|
314
|
-
"kind",
|
|
315
|
-
"command"
|
|
316
|
-
],
|
|
285
|
+
"required": ["kind", "command"],
|
|
317
286
|
"additionalProperties": false
|
|
318
287
|
},
|
|
319
288
|
{
|
|
@@ -340,9 +309,7 @@
|
|
|
340
309
|
"type": "boolean"
|
|
341
310
|
}
|
|
342
311
|
},
|
|
343
|
-
"required": [
|
|
344
|
-
"kind"
|
|
345
|
-
],
|
|
312
|
+
"required": ["kind"],
|
|
346
313
|
"additionalProperties": false
|
|
347
314
|
},
|
|
348
315
|
{
|
|
@@ -371,10 +338,7 @@
|
|
|
371
338
|
"minLength": 1
|
|
372
339
|
}
|
|
373
340
|
},
|
|
374
|
-
"required": [
|
|
375
|
-
"id",
|
|
376
|
-
"label"
|
|
377
|
-
],
|
|
341
|
+
"required": ["id", "label"],
|
|
378
342
|
"additionalProperties": false
|
|
379
343
|
}
|
|
380
344
|
},
|
|
@@ -382,10 +346,7 @@
|
|
|
382
346
|
"type": "boolean"
|
|
383
347
|
}
|
|
384
348
|
},
|
|
385
|
-
"required": [
|
|
386
|
-
"kind",
|
|
387
|
-
"options"
|
|
388
|
-
],
|
|
349
|
+
"required": ["kind", "options"],
|
|
389
350
|
"additionalProperties": false
|
|
390
351
|
},
|
|
391
352
|
{
|
|
@@ -441,10 +402,7 @@
|
|
|
441
402
|
"minLength": 1
|
|
442
403
|
}
|
|
443
404
|
},
|
|
444
|
-
"required": [
|
|
445
|
-
"id",
|
|
446
|
-
"label"
|
|
447
|
-
],
|
|
405
|
+
"required": ["id", "label"],
|
|
448
406
|
"additionalProperties": false
|
|
449
407
|
}
|
|
450
408
|
},
|
|
@@ -456,19 +414,12 @@
|
|
|
456
414
|
}
|
|
457
415
|
}
|
|
458
416
|
},
|
|
459
|
-
"required": [
|
|
460
|
-
"id",
|
|
461
|
-
"label",
|
|
462
|
-
"type"
|
|
463
|
-
],
|
|
417
|
+
"required": ["id", "label", "type"],
|
|
464
418
|
"additionalProperties": false
|
|
465
419
|
}
|
|
466
420
|
}
|
|
467
421
|
},
|
|
468
|
-
"required": [
|
|
469
|
-
"kind",
|
|
470
|
-
"fields"
|
|
471
|
-
],
|
|
422
|
+
"required": ["kind", "fields"],
|
|
472
423
|
"additionalProperties": false
|
|
473
424
|
},
|
|
474
425
|
{
|
|
@@ -493,9 +444,7 @@
|
|
|
493
444
|
"type": "boolean"
|
|
494
445
|
}
|
|
495
446
|
},
|
|
496
|
-
"required": [
|
|
497
|
-
"kind"
|
|
498
|
-
],
|
|
447
|
+
"required": ["kind"],
|
|
499
448
|
"additionalProperties": false
|
|
500
449
|
}
|
|
501
450
|
]
|
|
@@ -508,11 +457,7 @@
|
|
|
508
457
|
}
|
|
509
458
|
}
|
|
510
459
|
},
|
|
511
|
-
"required": [
|
|
512
|
-
"kind",
|
|
513
|
-
"prompt",
|
|
514
|
-
"schema"
|
|
515
|
-
],
|
|
460
|
+
"required": ["kind", "prompt", "schema"],
|
|
516
461
|
"additionalProperties": false
|
|
517
462
|
},
|
|
518
463
|
{
|
|
@@ -544,10 +489,7 @@
|
|
|
544
489
|
]
|
|
545
490
|
}
|
|
546
491
|
},
|
|
547
|
-
"required": [
|
|
548
|
-
"when",
|
|
549
|
-
"target"
|
|
550
|
-
],
|
|
492
|
+
"required": ["when", "target"],
|
|
551
493
|
"additionalProperties": false
|
|
552
494
|
}
|
|
553
495
|
},
|
|
@@ -559,10 +501,32 @@
|
|
|
559
501
|
}
|
|
560
502
|
}
|
|
561
503
|
},
|
|
562
|
-
"required": [
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
504
|
+
"required": ["kind", "routes"],
|
|
505
|
+
"additionalProperties": false
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"type": "object",
|
|
509
|
+
"properties": {
|
|
510
|
+
"kind": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"const": "sub-flow"
|
|
513
|
+
},
|
|
514
|
+
"flow": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
517
|
+
},
|
|
518
|
+
"passContext": {
|
|
519
|
+
"type": "boolean"
|
|
520
|
+
},
|
|
521
|
+
"assets": {
|
|
522
|
+
"type": "array",
|
|
523
|
+
"items": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"minLength": 1
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"required": ["kind", "flow"],
|
|
566
530
|
"additionalProperties": false
|
|
567
531
|
}
|
|
568
532
|
]
|
|
@@ -584,16 +548,15 @@
|
|
|
584
548
|
"minLength": 1
|
|
585
549
|
}
|
|
586
550
|
},
|
|
587
|
-
"required": [
|
|
588
|
-
"expr"
|
|
589
|
-
],
|
|
551
|
+
"required": ["expr"],
|
|
590
552
|
"additionalProperties": false
|
|
591
553
|
}
|
|
592
554
|
},
|
|
593
555
|
"input": {
|
|
594
556
|
"type": "object",
|
|
595
557
|
"propertyNames": {
|
|
596
|
-
"type": "string"
|
|
558
|
+
"type": "string",
|
|
559
|
+
"pattern": "^(?!__proto__$)"
|
|
597
560
|
},
|
|
598
561
|
"additionalProperties": {
|
|
599
562
|
"$ref": "#/$defs/__schema4"
|
|
@@ -622,16 +585,10 @@
|
|
|
622
585
|
},
|
|
623
586
|
"lifetime": {
|
|
624
587
|
"type": "string",
|
|
625
|
-
"enum": [
|
|
626
|
-
"session",
|
|
627
|
-
"persistent"
|
|
628
|
-
]
|
|
588
|
+
"enum": ["session", "persistent"]
|
|
629
589
|
}
|
|
630
590
|
},
|
|
631
|
-
"required": [
|
|
632
|
-
"kind",
|
|
633
|
-
"lifetime"
|
|
634
|
-
],
|
|
591
|
+
"required": ["kind", "lifetime"],
|
|
635
592
|
"additionalProperties": false
|
|
636
593
|
}
|
|
637
594
|
}
|
|
@@ -646,16 +603,10 @@
|
|
|
646
603
|
"properties": {
|
|
647
604
|
"approval": {
|
|
648
605
|
"type": "string",
|
|
649
|
-
"enum": [
|
|
650
|
-
"none",
|
|
651
|
-
"optional",
|
|
652
|
-
"mandatory"
|
|
653
|
-
]
|
|
606
|
+
"enum": ["none", "optional", "mandatory"]
|
|
654
607
|
}
|
|
655
608
|
},
|
|
656
|
-
"required": [
|
|
657
|
-
"approval"
|
|
658
|
-
],
|
|
609
|
+
"required": ["approval"],
|
|
659
610
|
"additionalProperties": false
|
|
660
611
|
},
|
|
661
612
|
"control": {
|
|
@@ -676,17 +627,15 @@
|
|
|
676
627
|
"parallelGroup": {
|
|
677
628
|
"type": "string",
|
|
678
629
|
"minLength": 1
|
|
630
|
+
},
|
|
631
|
+
"subagent": {
|
|
632
|
+
"type": "boolean"
|
|
679
633
|
}
|
|
680
634
|
},
|
|
681
635
|
"additionalProperties": false
|
|
682
636
|
}
|
|
683
637
|
},
|
|
684
|
-
"required": [
|
|
685
|
-
"id",
|
|
686
|
-
"label",
|
|
687
|
-
"description",
|
|
688
|
-
"run"
|
|
689
|
-
],
|
|
638
|
+
"required": ["id", "label", "description", "run"],
|
|
690
639
|
"additionalProperties": false
|
|
691
640
|
}
|
|
692
641
|
},
|
|
@@ -709,19 +658,10 @@
|
|
|
709
658
|
},
|
|
710
659
|
"type": {
|
|
711
660
|
"type": "string",
|
|
712
|
-
"enum": [
|
|
713
|
-
"flow",
|
|
714
|
-
"parallel",
|
|
715
|
-
"optional"
|
|
716
|
-
]
|
|
661
|
+
"enum": ["flow", "parallel", "optional"]
|
|
717
662
|
}
|
|
718
663
|
},
|
|
719
|
-
"required": [
|
|
720
|
-
"id",
|
|
721
|
-
"source",
|
|
722
|
-
"target",
|
|
723
|
-
"type"
|
|
724
|
-
],
|
|
664
|
+
"required": ["id", "source", "target", "type"],
|
|
725
665
|
"additionalProperties": false
|
|
726
666
|
}
|
|
727
667
|
},
|
|
@@ -752,11 +692,7 @@
|
|
|
752
692
|
"properties": {
|
|
753
693
|
"input_style": {
|
|
754
694
|
"type": "string",
|
|
755
|
-
"enum": [
|
|
756
|
-
"freeform",
|
|
757
|
-
"structured",
|
|
758
|
-
"repo"
|
|
759
|
-
]
|
|
695
|
+
"enum": ["freeform", "structured", "repo"]
|
|
760
696
|
},
|
|
761
697
|
"placeholder": {
|
|
762
698
|
"type": "string",
|
|
@@ -770,23 +706,14 @@
|
|
|
770
706
|
}
|
|
771
707
|
}
|
|
772
708
|
},
|
|
773
|
-
"required": [
|
|
774
|
-
"input_style"
|
|
775
|
-
],
|
|
709
|
+
"required": ["input_style"],
|
|
776
710
|
"additionalProperties": false
|
|
777
711
|
}
|
|
778
712
|
},
|
|
779
713
|
"additionalProperties": false
|
|
780
714
|
}
|
|
781
715
|
},
|
|
782
|
-
"required": [
|
|
783
|
-
"schemaVersion",
|
|
784
|
-
"id",
|
|
785
|
-
"version",
|
|
786
|
-
"name",
|
|
787
|
-
"nodes",
|
|
788
|
-
"edges"
|
|
789
|
-
],
|
|
716
|
+
"required": ["schemaVersion", "id", "version", "name", "nodes", "edges"],
|
|
790
717
|
"additionalProperties": false,
|
|
791
718
|
"$defs": {
|
|
792
719
|
"__schema0": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FlowDefinitionSchema, type FlowAssetRef, type FlowDefinition, type FlowEdge, type FlowInputContract, type FlowNode, type FlowNodeBindings, type FlowNodeContract, type FlowNodeControl, type FlowNodeKind, type FlowNodePrecondition, type FlowNodeRun, type FlowOutputContract, type FlowRoute, } from "./schema.js";
|
|
2
2
|
export { normalizeV1, parseFlowDefinition, type FlowDefinitionIssue, type FlowDefinitionParseResult, type LegacyCompatibilityEdge, type ParsedFlowDefinition, } from "./normalize.js";
|
|
3
|
-
export { evaluate, evaluateFlowExpression, FLOW_EXPRESSION_LIMITS, FlowExpressionError, type FlowExpressionContext, } from "./expression.js";
|
|
3
|
+
export { evaluate, evaluateFlowExpression, FLOW_EXPRESSION_LIMITS, FlowExpressionError, resolveFlowBindings, type BindingOrigin, type FlowExpressionContext, type NodeOutputOrigin, type ResolvedBinding, type ResolvedNodeBindings, } from "./expression.js";
|
|
4
4
|
export { canonicalizeFlowDefinition, hashFlowDefinition } from "./hash.js";
|
|
5
5
|
export { FLOW_DEFINITION_JSON_SCHEMA_ID, generateFlowDefinitionJsonSchema, } from "./json-schema.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/normalize.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/normalize.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AA2GrB,iGAAiG;AACjG,MAAM,WAAW,mBAAmB;IAClC,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,+FAA+F;AAC/F,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B,6FAA6F;AAC7F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IACjE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,uBAAuB,CAAC,CAAC;CACzE,CAAC;AAEF,yFAAyF;AACzF,MAAM,MAAM,yBAAyB,GACjC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,GACxC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAAC;AAsFjD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CAsJpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CAY5E"}
|
|
@@ -83,6 +83,11 @@ export declare function parseFlowDefinitionStructure(data: unknown): z.ZodSafePa
|
|
|
83
83
|
target: string | null;
|
|
84
84
|
}[];
|
|
85
85
|
assets?: string[] | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
kind: "sub-flow";
|
|
88
|
+
flow: string;
|
|
89
|
+
assets?: string[] | undefined;
|
|
90
|
+
passContext?: boolean | undefined;
|
|
86
91
|
};
|
|
87
92
|
phase?: string | undefined;
|
|
88
93
|
contract?: {
|
|
@@ -107,6 +112,7 @@ export declare function parseFlowDefinitionStructure(data: unknown): z.ZodSafePa
|
|
|
107
112
|
retries?: number | undefined;
|
|
108
113
|
timeoutSec?: number | undefined;
|
|
109
114
|
parallelGroup?: string | undefined;
|
|
115
|
+
subagent?: boolean | undefined;
|
|
110
116
|
} | undefined;
|
|
111
117
|
}[];
|
|
112
118
|
edges: {
|
|
@@ -275,13 +281,18 @@ export declare const FlowDefinitionSchema: z.ZodObject<{
|
|
|
275
281
|
when: z.ZodString;
|
|
276
282
|
target: z.ZodNullable<z.ZodString>;
|
|
277
283
|
}, z.core.$strict>>;
|
|
284
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
285
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
kind: z.ZodLiteral<"sub-flow">;
|
|
287
|
+
flow: z.ZodString;
|
|
288
|
+
passContext: z.ZodOptional<z.ZodBoolean>;
|
|
278
289
|
}, z.core.$strict>], "kind">;
|
|
279
290
|
contract: z.ZodOptional<z.ZodObject<{
|
|
280
291
|
requires: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
292
|
expr: z.ZodString;
|
|
282
293
|
message: z.ZodOptional<z.ZodString>;
|
|
283
294
|
}, z.core.$strict>>>;
|
|
284
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema
|
|
295
|
+
input: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
285
296
|
output: z.ZodOptional<z.ZodObject<{
|
|
286
297
|
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
287
298
|
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -305,6 +316,7 @@ export declare const FlowDefinitionSchema: z.ZodObject<{
|
|
|
305
316
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
306
317
|
timeoutSec: z.ZodOptional<z.ZodNumber>;
|
|
307
318
|
parallelGroup: z.ZodOptional<z.ZodString>;
|
|
319
|
+
subagent: z.ZodOptional<z.ZodBoolean>;
|
|
308
320
|
}, z.core.$strict>>;
|
|
309
321
|
}, z.core.$strict>>;
|
|
310
322
|
edges: z.ZodArray<z.ZodObject<{
|
|
@@ -341,7 +353,7 @@ export type FlowNode = FlowDefinition["nodes"][number];
|
|
|
341
353
|
export type FlowEdge = FlowDefinition["edges"][number];
|
|
342
354
|
/** Closed execution-owner declaration with no dispatch or conversation-mode switches. */
|
|
343
355
|
export type FlowNodeRun = FlowNode["run"];
|
|
344
|
-
/** Closed vocabulary of the
|
|
356
|
+
/** Closed vocabulary of the seven supported execution-owner identities. */
|
|
345
357
|
export type FlowNodeKind = FlowNodeRun["kind"];
|
|
346
358
|
/** Validation boundary applied to values entering a Flow run. */
|
|
347
359
|
export type FlowInputContract = NonNullable<FlowDefinition["input"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA2OzB,sFAAsF;AACtF,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEzD;AAoCD,qFAAqF;AACrF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsL/B,CAAC;AAEH,wFAAwF;AACxF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,0FAA0F;AAC1F,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,yFAAyF;AACzF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAE1C,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAE/C,iEAAiE;AACjE,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AAErE,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEvE,sGAAsG;AACtG,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEjE,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;AAE/D,uEAAuE;AACvE,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AAE1E,kGAAkG;AAClG,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,SAC5E,KAAK,CAAC,MAAM,CAAC,CAAC,GACd,SAAS,GACT,CAAC,GACD,KAAK,CAAC;AAEV,qFAAqF;AACrF,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnF,sFAAsF;AACtF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-
|
|
2
|
-
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, evaluate, evaluateFlowExpression, normalizeV1, parseFlowDefinition } from '../../../chunk-
|
|
1
|
+
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-V4ZLZJFN.js';
|
|
2
|
+
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, evaluate, evaluateFlowExpression, normalizeV1, parseFlowDefinition, resolveFlowBindings } from '../../../chunk-OEGHKO5N.js';
|
|
3
3
|
import '../../../chunk-NSBPE2FW.js';
|
|
4
4
|
//# sourceMappingURL=contract.js.map
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type BindingOrigin, type FlowExpressionContext, type ResolvedNodeBindings } from "../contract/expression.js";
|
|
2
|
+
import type { FlowDefinition, FlowNode, NodeExecutionSnapshot } from "./types.js";
|
|
3
|
+
/** Build the bounded expression context from immutable definition and snapshot state. */
|
|
4
|
+
export declare function buildFlowExpressionContext(flow: FlowDefinition, snapshots: Map<string, NodeExecutionSnapshot>): FlowExpressionContext;
|
|
5
|
+
/** Resolve one node's named inputs and derive their runtime/agent origins. */
|
|
6
|
+
export declare function resolveNodeBindings(flow: FlowDefinition, node: FlowNode, snapshots: Map<string, NodeExecutionSnapshot>, flowInputOrigins?: Record<string, BindingOrigin[]>): ResolvedNodeBindings;
|
|
7
|
+
/** Interpolate named, already-resolved binding values into an agent instruction. */
|
|
8
|
+
export declare function interpolateNodeInstruction(instruction: string, values: Record<string, unknown>): string;
|
|
9
|
+
//# sourceMappingURL=bindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAElF,yFAAyF;AACzF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,cAAc,EACpB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAC5C,qBAAqB,CAevB;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,EAC7C,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAM,GACrD,oBAAoB,CAUtB;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAQR"}
|
|
@@ -10,10 +10,14 @@ import type { FlowDefinition, FlowState, NodeExecutionSnapshot, NodeStatus } fro
|
|
|
10
10
|
* - `'parallel'` — soft dependency: target may run while source is still running.
|
|
11
11
|
* - `'optional'` — advisory: target can start regardless of source state.
|
|
12
12
|
*
|
|
13
|
-
* A node is `available` when every incoming `'flow'`-type edge has a complete or skipped source
|
|
13
|
+
* A node is `available` when every incoming `'flow'`-type edge has a complete or skipped source
|
|
14
|
+
* and every authored precondition evaluates true.
|
|
14
15
|
* A node is `not_started` when at least one hard predecessor is still pending.
|
|
15
16
|
* The flow is `done` when every non-optional node is `complete` or `skipped`.
|
|
16
17
|
*
|
|
18
|
+
* This set-based overload has statuses but no completed output fields. Use
|
|
19
|
+
* {@link computeFlowStateFromSnapshots} when a precondition reads node output.
|
|
20
|
+
*
|
|
17
21
|
* Prefer {@link computeFlowStateFromSnapshots} for callers that track full `NodeExecution`
|
|
18
22
|
* state (interaction statuses such as `awaiting_approval`, `awaiting_input`, `failed`).
|
|
19
23
|
*
|
|
@@ -22,7 +26,7 @@ import type { FlowDefinition, FlowState, NodeExecutionSnapshot, NodeStatus } fro
|
|
|
22
26
|
* @param runningIds - Set of node IDs currently executing. Defaults to an empty set.
|
|
23
27
|
* @param skippedIds - Set of node IDs that were explicitly skipped. Skipped nodes count
|
|
24
28
|
* as satisfied for downstream dependency checks. Defaults to an empty set.
|
|
25
|
-
* @returns A {@link FlowState} describing every active
|
|
29
|
+
* @returns A {@link FlowState} describing every active runtime node.
|
|
26
30
|
* @docLink packages/flow-engine/concepts#compute-flow-state
|
|
27
31
|
*/
|
|
28
32
|
export declare function computeFlowState(flow: FlowDefinition, completedIds: Set<string>, runningIds?: Set<string>, skippedIds?: Set<string>): FlowState;
|
|
@@ -40,7 +44,8 @@ export declare function computeFlowState(flow: FlowDefinition, completedIds: Set
|
|
|
40
44
|
* Engine semantics:
|
|
41
45
|
* - A node is `available` when all its incoming `'flow'`-type predecessors are `complete`
|
|
42
46
|
* or `skipped`. Any other upstream status — including `awaiting_approval`,
|
|
43
|
-
* `awaiting_input`, and `failed` — is treated as blocking.
|
|
47
|
+
* `awaiting_input`, and `failed` — is treated as blocking. Every authored precondition
|
|
48
|
+
* must also evaluate true against the snapshot expression context.
|
|
44
49
|
* - A `failed` optional node does **not** block its dependents.
|
|
45
50
|
* - The flow is `done` when every non-optional node is `complete` or `skipped`. A single
|
|
46
51
|
* required node stuck in `failed` keeps `done` false.
|
|
@@ -48,7 +53,7 @@ export declare function computeFlowState(flow: FlowDefinition, completedIds: Set
|
|
|
48
53
|
* @param flow - The parsed flow definition.
|
|
49
54
|
* @param snapshots - Map from node ID to its current {@link NodeExecutionSnapshot}.
|
|
50
55
|
* Missing entries default to `not_started` with no interaction metadata.
|
|
51
|
-
* @returns A {@link FlowState} describing every active
|
|
56
|
+
* @returns A {@link FlowState} describing every active runtime node,
|
|
52
57
|
* including interaction fields (`approval`, `input`, `output`, `error`) copied
|
|
53
58
|
* from the matching snapshot.
|
|
54
59
|
* @docLink packages/flow-engine/concepts#compute-flow-state-from-snapshots
|
|
@@ -82,10 +87,10 @@ export declare function isBlocking(status: NodeStatus): boolean;
|
|
|
82
87
|
* @param completedIds - Set of node IDs already known to be complete before this call.
|
|
83
88
|
* @param skippedIds - Set of node IDs that were explicitly skipped. Defaults to an empty set.
|
|
84
89
|
* @returns Array of node IDs whose hard dependencies are now fully satisfied and that
|
|
85
|
-
* were not already available before `justCompleted` finished. Unlike
|
|
90
|
+
* were not already available before `justCompleted` finished. Unlike executable-node-filtered
|
|
86
91
|
* helpers, this walks raw edge targets and does not filter by node type — if a `group`,
|
|
87
92
|
* `sub-flow`, or `router` node is a direct successor, its ID can appear here. Callers that
|
|
88
|
-
* dispatch these IDs are responsible for filtering
|
|
93
|
+
* dispatch these IDs are responsible for filtering inert nodes.
|
|
89
94
|
* @docLink packages/flow-engine/concepts#resolve-next-nodes
|
|
90
95
|
*/
|
|
91
96
|
export declare function resolveNextNodes(flow: FlowDefinition, justCompleted: string, completedIds: Set<string>, skippedIds?: Set<string>): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,SAAS,EACT,qBAAqB,
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,SAAS,EACT,qBAAqB,EAGrB,UAAU,EACX,MAAM,YAAY,CAAC;AA0DpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,EACpB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,UAAU,GAAE,GAAG,CAAC,MAAM,CAAa,EACnC,UAAU,GAAE,GAAG,CAAC,MAAM,CAAa,GAClC,SAAS,CAwGX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,cAAc,EACpB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAC5C,SAAS,CAwEX;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAEtD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,EACpB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,UAAU,GAAE,GAAG,CAAC,MAAM,CAAa,GAClC,MAAM,EAAE,CAmBV;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAgB1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-kind-provider.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/flow-kind-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAGV,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAOpC,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"flow-kind-provider.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/flow-kind-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAGV,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAOpC,eAAO,MAAM,gBAAgB,EAAE,kBAkE9B,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./engine.js";
|
|
2
|
+
export * from "./bindings.js";
|
|
3
|
+
export * from "./output-schema.js";
|
|
2
4
|
export { flowKindProvider } from "./flow-kind-provider.js";
|
|
3
5
|
export type { FlowManifest, ManifestValidationResult as FlowManifestValidationResult, } from "./flow-manifest.js";
|
|
4
6
|
export { FlowManifestSchema, validateFlow, } from "./flow-manifest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EACV,YAAY,EACZ,wBAAwB,IAAI,4BAA4B,GACzD,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import type { FlowDefinition, FlowNode } from "./types.js";
|
|
2
2
|
/** Returns whether a node is executable by the currently active agent-turn runtime. */
|
|
3
3
|
export declare function isAgentNode(node: FlowNode): boolean;
|
|
4
|
+
/** Returns whether a node executes deterministically through NodeExecutor. */
|
|
5
|
+
export declare function isFunctionNode(node: FlowNode): node is FlowNode & {
|
|
6
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
7
|
+
kind: "function";
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
/** Returns whether a node is a runtime-owned human decision point. */
|
|
11
|
+
export declare function isGateNode(node: FlowNode): node is FlowNode & {
|
|
12
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
13
|
+
kind: "gate";
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
/** Returns whether a node delegates once to an inline child flow. */
|
|
17
|
+
export declare function isSubFlowNode(node: FlowNode): node is FlowNode & {
|
|
18
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
19
|
+
kind: "sub-flow";
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
/** Returns whether the current runtime owns the node's execution state. */
|
|
23
|
+
export declare function isActiveRuntimeNode(node: FlowNode): boolean;
|
|
24
|
+
/** @deprecated Use {@link isActiveRuntimeNode}; gates are active but nobody executes them. */
|
|
25
|
+
export declare const isExecutableNode: typeof isActiveRuntimeNode;
|
|
4
26
|
/** Returns the node's optional policy across strict v2 and legacy definitions. */
|
|
5
27
|
export declare function nodeIsOptional(node: FlowNode): boolean;
|
|
6
28
|
/** Returns the node's mandatory approval policy across strict v2 and legacy definitions. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-shape.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/node-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3D,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEnD;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAIlD;AAED,kFAAkF;AAClF,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEhD;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,CAOnD;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGpE;AAED,sEAAsE;AACtE,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAElE;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1E"}
|
|
1
|
+
{"version":3,"file":"node-shape.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/node-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3D,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEnD;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,GACb,IAAI,IAAI,QAAQ,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAA;CAAE,CAEzF;AAED,sEAAsE;AACtE,wBAAgB,UAAU,CACxB,IAAI,EAAE,QAAQ,GACb,IAAI,IAAI,QAAQ,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAErF;AAED,qEAAqE;AACrE,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,GACb,IAAI,IAAI,QAAQ,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAA;CAAE,CAEzF;AAED,2EAA2E;AAC3E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAE3D;AAED,8FAA8F;AAC9F,eAAO,MAAM,gBAAgB,4BAAsB,CAAC;AAEpD,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAIlD;AAED,kFAAkF;AAClF,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEhD;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,CAOnD;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGpE;AAED,sEAAsE;AACtE,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAElE;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FlowDefinition } from "./types.js";
|
|
2
|
+
/** Result of validating fields at a producer's consumed-output boundary. */
|
|
3
|
+
export interface NodeOutputValidationResult {
|
|
4
|
+
/** Whether the fields may be exposed to downstream consumers. */
|
|
5
|
+
valid: boolean;
|
|
6
|
+
/** Stable, path-bearing failures. Empty when validation is not required. */
|
|
7
|
+
issues: string[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Return a producer's declared fields schema only when another node reads it.
|
|
11
|
+
*
|
|
12
|
+
* Consumption is deliberately limited to preconditions, named bindings, and
|
|
13
|
+
* router conditions. Status reads and unreferenced declarations remain prose-only.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getConsumedOutputSchema(flow: FlowDefinition, producerId: string): Record<string, unknown> | undefined;
|
|
16
|
+
/** Validate proposed fields only when a downstream deterministic consumer requires them. */
|
|
17
|
+
export declare function validateConsumedNodeOutput(flow: FlowDefinition, producerId: string, fields: Record<string, unknown> | undefined): NodeOutputValidationResult;
|
|
18
|
+
//# sourceMappingURL=output-schema.d.ts.map
|