@skaile/workspaces 2.8.0 → 3.0.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 +22 -0
- package/README.md +17 -6
- package/dist/{asset-feeds-23CP6YUY.js → asset-feeds-XKPJZ6QT.js} +4 -4
- package/dist/{asset-feeds-23CP6YUY.js.map → asset-feeds-XKPJZ6QT.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/bridge/drivers/claude-sdk.js +2 -2
- package/dist/bridge/drivers/codex.js +2 -2
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +4 -4
- 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 +4 -4
- package/dist/bridge/index.js +3 -3
- package/dist/bridge/src/models.d.ts +59 -0
- package/dist/bridge/src/models.d.ts.map +1 -1
- package/dist/{chunk-XJ74XFIZ.js → chunk-5QGMEPUX.js} +27 -18
- package/dist/chunk-5QGMEPUX.js.map +1 -0
- package/dist/{chunk-ONUDDQGS.js → chunk-7HXS7WZF.js} +2 -2
- package/dist/{chunk-ONUDDQGS.js.map → chunk-7HXS7WZF.js.map} +1 -1
- package/dist/{chunk-SCR3WGW7.js → chunk-7KFN2EPR.js} +12 -4
- package/dist/chunk-7KFN2EPR.js.map +1 -0
- package/dist/{chunk-L3TS7ZO4.js → chunk-BJDACPWZ.js} +3 -3
- package/dist/{chunk-L3TS7ZO4.js.map → chunk-BJDACPWZ.js.map} +1 -1
- package/dist/{chunk-JIA2S3T2.js → chunk-EH7BCJF4.js} +6 -6
- package/dist/{chunk-JIA2S3T2.js.map → chunk-EH7BCJF4.js.map} +1 -1
- package/dist/{chunk-TUYN2HDT.js → chunk-F5VREBV2.js} +14 -5
- package/dist/chunk-F5VREBV2.js.map +1 -0
- package/dist/{chunk-OAUKA7VT.js → chunk-JQMULHO6.js} +24 -12
- package/dist/chunk-JQMULHO6.js.map +1 -0
- package/dist/{chunk-ZR2X4SIG.js → chunk-KXWUCKP5.js} +5 -5
- package/dist/{chunk-ZR2X4SIG.js.map → chunk-KXWUCKP5.js.map} +1 -1
- package/dist/{chunk-IWUIXNMF.js → chunk-N4GFUWWC.js} +3 -3
- package/dist/{chunk-IWUIXNMF.js.map → chunk-N4GFUWWC.js.map} +1 -1
- package/dist/{chunk-ZJOEU5GP.js → chunk-NMKTM55X.js} +2 -2
- package/dist/{chunk-ZJOEU5GP.js.map → chunk-NMKTM55X.js.map} +1 -1
- package/dist/{chunk-XTFZOYNY.js → chunk-P2J3MLTW.js} +3 -3
- package/dist/{chunk-XTFZOYNY.js.map → chunk-P2J3MLTW.js.map} +1 -1
- package/dist/{chunk-VNIKF66R.js → chunk-P5W6JVD4.js} +4 -4
- package/dist/{chunk-VNIKF66R.js.map → chunk-P5W6JVD4.js.map} +1 -1
- package/dist/{chunk-6AYGXPPF.js → chunk-Q6O53D5Q.js} +2 -2
- package/dist/{chunk-6AYGXPPF.js.map → chunk-Q6O53D5Q.js.map} +1 -1
- package/dist/{chunk-ZJ7MRR2R.js → chunk-QGDQHNYC.js} +4 -4
- package/dist/{chunk-ZJ7MRR2R.js.map → chunk-QGDQHNYC.js.map} +1 -1
- package/dist/{chunk-E4AVJMOJ.js → chunk-S5FV6ISY.js} +89 -6
- package/dist/chunk-S5FV6ISY.js.map +1 -0
- package/dist/{chunk-HY3MBSNC.js → chunk-SR6NBBWT.js} +2 -2
- package/dist/{chunk-HY3MBSNC.js.map → chunk-SR6NBBWT.js.map} +1 -1
- package/dist/{chunk-AZ44F3AT.js → chunk-TXTCW7V6.js} +6 -6
- package/dist/{chunk-AZ44F3AT.js.map → chunk-TXTCW7V6.js.map} +1 -1
- package/dist/{chunk-BMQKMOQY.js → chunk-V34ZEXSE.js} +61 -3
- package/dist/chunk-V34ZEXSE.js.map +1 -0
- package/dist/{chunk-FW2C6JJP.js → chunk-WECBTWWZ.js} +3 -3
- package/dist/{chunk-FW2C6JJP.js.map → chunk-WECBTWWZ.js.map} +1 -1
- package/dist/{chunk-P3DUVOAW.js → chunk-XJECOBCO.js} +16 -7
- package/dist/chunk-XJECOBCO.js.map +1 -0
- package/dist/{chunk-HVQWLYZB.js → chunk-ZO7KL7GN.js} +731 -85
- package/dist/chunk-ZO7KL7GN.js.map +1 -0
- package/dist/cli/index.js +38 -38
- package/dist/connectors/index.js +11 -5
- package/dist/{ensure-sources-N7B7657V.js → ensure-sources-D6R57GAP.js} +4 -4
- package/dist/{ensure-sources-N7B7657V.js.map → ensure-sources-D6R57GAP.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +11 -5
- package/dist/factory-assets/connectors/deploy.js +11 -5
- package/dist/factory-assets/connectors/devserver.js +11 -5
- package/dist/factory-assets/connectors/flow/CONNECTOR.md +80 -11
- package/dist/factory-assets/connectors/flow/adapter.d.ts +97 -5
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +11 -5
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts +2 -24
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/flow.v2.schema.json +0 -6
- package/dist/factory-assets/connectors/flow/contract/normalize.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/schema.d.ts +0 -4
- 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.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/check-provenance.d.ts +47 -0
- package/dist/factory-assets/connectors/flow/engine/check-provenance.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/index.d.ts +3 -0
- package/dist/factory-assets/connectors/flow/engine/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/node-attempts.d.ts +68 -0
- package/dist/factory-assets/connectors/flow/engine/node-attempts.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/node-deadline.d.ts +44 -0
- package/dist/factory-assets/connectors/flow/engine/node-deadline.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts +15 -1
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/types.d.ts +16 -15
- package/dist/factory-assets/connectors/flow/engine/types.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +3 -3
- package/dist/factory-assets/connectors/flow/index.d.ts +2 -1
- package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/inline-sub-flow-host.d.ts +3 -0
- package/dist/factory-assets/connectors/flow/inline-sub-flow-host.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/node-executor.d.ts +10 -4
- package/dist/factory-assets/connectors/flow/node-executor.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts +14 -0
- 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.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +12 -6
- package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts +99 -0
- package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow.js +11 -5
- package/dist/factory-assets/connectors/git.js +11 -5
- package/dist/factory-assets/connectors/gmail.js +11 -5
- package/dist/factory-assets/connectors/googledrive.js +11 -5
- package/dist/factory-assets/connectors/local.js +11 -5
- package/dist/factory-assets/connectors/mattermost.js +11 -5
- package/dist/factory-assets/connectors/memory.js +11 -5
- package/dist/factory-assets/connectors/minio.js +11 -5
- package/dist/factory-assets/connectors/postgres.js +11 -5
- package/dist/factory-assets/connectors/s3.js +11 -5
- package/dist/factory-assets/connectors/sharepoint.js +11 -5
- package/dist/factory-assets/connectors/sqlite.js +11 -5
- package/dist/factory-assets/connectors/static-server.js +11 -5
- package/dist/factory-assets/connectors/tunnel.js +11 -5
- package/dist/factory-assets/connectors/webdav.js +11 -5
- package/dist/factory-assets/connectors/xstate-store.js +11 -5
- package/dist/factory-assets/connectors/xstate.js +11 -5
- package/dist/{flows-K7B253U6.js → flows-LQSVM45J.js} +3 -3
- package/dist/{flows-K7B253U6.js.map → flows-LQSVM45J.js.map} +1 -1
- package/dist/{helpers-PXEHIKF7.js → helpers-IS4MSEOQ.js} +4 -4
- package/dist/{helpers-PXEHIKF7.js.map → helpers-IS4MSEOQ.js.map} +1 -1
- package/dist/{library-publish-3Z33J2ZY.js → library-publish-QJACP6FW.js} +9 -9
- package/dist/{library-publish-3Z33J2ZY.js.map → library-publish-QJACP6FW.js.map} +1 -1
- package/dist/{open-library-Y5SKFAMK.js → open-library-3FMLAU3F.js} +8 -8
- package/dist/{open-library-Y5SKFAMK.js.map → open-library-3FMLAU3F.js.map} +1 -1
- package/dist/{project-DQRC6J6M.js → project-KEAAGHSX.js} +5 -5
- package/dist/{project-DQRC6J6M.js.map → project-KEAAGHSX.js.map} +1 -1
- package/dist/runner/index.js +15 -15
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/bridge.js +3 -3
- package/dist/sdk/flow.js +3 -3
- package/dist/sdk/index.js +15 -15
- package/dist/sdk/runner.js +15 -15
- package/dist/{setup-RHWARBBB.js → setup-VX6EPF5P.js} +5 -5
- package/dist/{setup-RHWARBBB.js.map → setup-VX6EPF5P.js.map} +1 -1
- package/dist/{source-XBJ5KTAV.js → source-45XHQSBF.js} +9 -9
- package/dist/{source-XBJ5KTAV.js.map → source-45XHQSBF.js.map} +1 -1
- package/dist/{source-manifest-publish-Q7TXBMCW.js → source-manifest-publish-M34SKD46.js} +10 -10
- package/dist/{source-manifest-publish-Q7TXBMCW.js.map → source-manifest-publish-M34SKD46.js.map} +1 -1
- package/dist/tui/index.js +15 -15
- package/dist/types/src/flow.d.ts +128 -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/workspace-plugin/adapters/mcp.js +1 -1
- package/dist/workspace-plugin/adapters/omp.js +3 -3
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BMQKMOQY.js.map +0 -1
- package/dist/chunk-E4AVJMOJ.js.map +0 -1
- package/dist/chunk-HVQWLYZB.js.map +0 -1
- package/dist/chunk-OAUKA7VT.js.map +0 -1
- package/dist/chunk-P3DUVOAW.js.map +0 -1
- package/dist/chunk-SCR3WGW7.js.map +0 -1
- package/dist/chunk-TUYN2HDT.js.map +0 -1
- package/dist/chunk-XJ74XFIZ.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,iBAAiB,EACjB,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAKpB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,iBAAiB,EACjB,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAKpB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAIV,aAAa,EAUd,MAAM,0BAA0B,CAAC;AAElC,OAAO,KA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BAAkB;IAK1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,cAAc;IA+BtB;;;;;;;;;OASG;YACW,0BAA0B;IAsCxC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,CAAC,kBAAkB;IA4C1B;;OAEG;IACH,OAAO,CAAC,YAAY;CAwErB;AA6KD,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAE7C"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
export { FlowAdapter, createConnector } from '../../../chunk-
|
|
1
|
+
export { FlowAdapter, createConnector } from '../../../chunk-ZO7KL7GN.js';
|
|
2
2
|
import '../../../chunk-ZNIHTT22.js';
|
|
3
|
+
import '../../../chunk-P5W6JVD4.js';
|
|
4
|
+
import '../../../chunk-ISQWMBKD.js';
|
|
5
|
+
import '../../../chunk-RRVQAE5D.js';
|
|
6
|
+
import '../../../chunk-V34ZEXSE.js';
|
|
7
|
+
import '../../../chunk-GAH4YRCI.js';
|
|
8
|
+
import '../../../chunk-SR6NBBWT.js';
|
|
3
9
|
import '../../../chunk-6E6PKKAD.js';
|
|
4
10
|
import '../../../chunk-IFGTRL2I.js';
|
|
5
|
-
export { isBlocking } from '../../../chunk-
|
|
6
|
-
import '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
11
|
+
export { isBlocking } from '../../../chunk-S5FV6ISY.js';
|
|
12
|
+
import '../../../chunk-5QGMEPUX.js';
|
|
13
|
+
import '../../../chunk-7KFN2EPR.js';
|
|
14
|
+
import '../../../chunk-F5VREBV2.js';
|
|
9
15
|
import '../../../chunk-P43HBWKK.js';
|
|
10
16
|
import '../../../chunk-F3HNW354.js';
|
|
11
17
|
import '../../../chunk-K5GBV4SA.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { BindingOrigin } from "@skaile/workspaces/types";
|
|
2
|
+
export type { BindingOrigin };
|
|
1
3
|
/** Hard resource budgets applied to every Flow expression evaluation. */
|
|
2
4
|
export declare const FLOW_EXPRESSION_LIMITS: Readonly<{
|
|
3
5
|
maxLength: 4096;
|
|
@@ -22,30 +24,6 @@ export interface FlowExpressionContext {
|
|
|
22
24
|
};
|
|
23
25
|
}>;
|
|
24
26
|
}
|
|
25
|
-
/** Runtime or agent provenance retained for one value used by a node binding. */
|
|
26
|
-
export type BindingOrigin = {
|
|
27
|
-
source: "literal";
|
|
28
|
-
path: string;
|
|
29
|
-
obtainedBy: "runtime";
|
|
30
|
-
} | {
|
|
31
|
-
source: "flow-input";
|
|
32
|
-
path: string;
|
|
33
|
-
obtainedBy: "runtime";
|
|
34
|
-
} | {
|
|
35
|
-
source: "default";
|
|
36
|
-
path: string;
|
|
37
|
-
obtainedBy: "runtime";
|
|
38
|
-
} | {
|
|
39
|
-
source: "node-status";
|
|
40
|
-
nodeId: string;
|
|
41
|
-
path: string;
|
|
42
|
-
obtainedBy: "runtime";
|
|
43
|
-
} | {
|
|
44
|
-
source: "node-output";
|
|
45
|
-
nodeId: string;
|
|
46
|
-
path: string;
|
|
47
|
-
obtainedBy: "agent" | "runtime";
|
|
48
|
-
};
|
|
49
27
|
/** A resolved JSON value together with every source that contributed to it. */
|
|
50
28
|
export interface ResolvedBinding {
|
|
51
29
|
/** Runtime value passed to the node executor. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AAEH,0EAA0E;AAC1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C;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,2GAA2G;AAC3G,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,cAAc,UAAO,GACpB,uBAAuB,EAAE,CAkB3B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAQT;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAEpF;AAkDD,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASrD;AA+HD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC7C,OAAO,EAAE,qBAAqB,EAC9B,gBAAgB,GAAE,gBAAqB,EACvC,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAM,GACrD,oBAAoB,CAsBtB"}
|
|
@@ -76,9 +76,6 @@
|
|
|
76
76
|
"autoReview": {
|
|
77
77
|
"type": "boolean"
|
|
78
78
|
},
|
|
79
|
-
"subagentMode": {
|
|
80
|
-
"type": "boolean"
|
|
81
|
-
},
|
|
82
79
|
"verbosity": {
|
|
83
80
|
"type": "string",
|
|
84
81
|
"minLength": 1
|
|
@@ -631,9 +628,6 @@
|
|
|
631
628
|
"parallelGroup": {
|
|
632
629
|
"type": "string",
|
|
633
630
|
"minLength": 1
|
|
634
|
-
},
|
|
635
|
-
"subagent": {
|
|
636
|
-
"type": "boolean"
|
|
637
631
|
}
|
|
638
632
|
},
|
|
639
633
|
"additionalProperties": false
|
|
@@ -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;AA0GrB,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;AA8FjD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CAoJpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CAY5E"}
|
|
@@ -118,7 +118,6 @@ export declare function parseFlowDefinitionStructure(data: unknown): z.ZodSafePa
|
|
|
118
118
|
retries?: number | undefined;
|
|
119
119
|
timeoutSec?: number | undefined;
|
|
120
120
|
parallelGroup?: string | undefined;
|
|
121
|
-
subagent?: boolean | undefined;
|
|
122
121
|
} | undefined;
|
|
123
122
|
}[];
|
|
124
123
|
edges: {
|
|
@@ -140,7 +139,6 @@ export declare function parseFlowDefinitionStructure(data: unknown): z.ZodSafePa
|
|
|
140
139
|
approval?: "manual" | "auto" | "checkpoint" | undefined;
|
|
141
140
|
researchDepth?: string | undefined;
|
|
142
141
|
autoReview?: boolean | undefined;
|
|
143
|
-
subagentMode?: boolean | undefined;
|
|
144
142
|
verbosity?: string | undefined;
|
|
145
143
|
cliMode?: boolean | undefined;
|
|
146
144
|
run_input?: z.core.util.JSONType | undefined;
|
|
@@ -182,7 +180,6 @@ export declare const FlowDefinitionSchema: z.ZodObject<{
|
|
|
182
180
|
}>>;
|
|
183
181
|
researchDepth: z.ZodOptional<z.ZodString>;
|
|
184
182
|
autoReview: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
-
subagentMode: z.ZodOptional<z.ZodBoolean>;
|
|
186
183
|
verbosity: z.ZodOptional<z.ZodString>;
|
|
187
184
|
cliMode: z.ZodOptional<z.ZodBoolean>;
|
|
188
185
|
run_input: z.ZodOptional<z.ZodJSONSchema>;
|
|
@@ -331,7 +328,6 @@ export declare const FlowDefinitionSchema: z.ZodObject<{
|
|
|
331
328
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
332
329
|
timeoutSec: z.ZodOptional<z.ZodNumber>;
|
|
333
330
|
parallelGroup: z.ZodOptional<z.ZodString>;
|
|
334
|
-
subagent: z.ZodOptional<z.ZodBoolean>;
|
|
335
331
|
}, z.core.$strict>>;
|
|
336
332
|
}, z.core.$strict>>;
|
|
337
333
|
edges: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/schema.ts"],"names":[],"m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ACjE,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;AAEtE;yFACyF;AACzF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,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, resolveFlowBindings } from '../../../chunk-
|
|
1
|
+
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-N4GFUWWC.js';
|
|
2
|
+
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, evaluate, evaluateFlowExpression, normalizeV1, parseFlowDefinition, resolveFlowBindings } from '../../../chunk-5QGMEPUX.js';
|
|
3
3
|
import '../../../chunk-NSBPE2FW.js';
|
|
4
4
|
//# sourceMappingURL=contract.js.map
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|
|
@@ -1 +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,
|
|
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,CAgBtB;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAQR"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure derivation of a `check` node's evidence payload — what was compared,
|
|
3
|
+
* where each value came from, and whether that makes the verdict
|
|
4
|
+
* runtime-`"verified"` or agent-`"asserted"`.
|
|
5
|
+
*
|
|
6
|
+
* Ruling: re-running a check is not required to reproduce the same answer,
|
|
7
|
+
* so there is no snapshot materialization, no hashing, and no reproducibility
|
|
8
|
+
* guarantee here — this module records integrity of *what was observed*, not
|
|
9
|
+
* a promise that observing it again would agree. Provenance is derived
|
|
10
|
+
* exclusively from {@link BindingOrigin.obtainedBy}, the flow engine's
|
|
11
|
+
* existing (and only) provenance mechanism, so it can never be influenced by
|
|
12
|
+
* how a flow author names a binding. The check is one-hop only — see
|
|
13
|
+
* {@link CheckEvidence} for what that does and does not claim.
|
|
14
|
+
*
|
|
15
|
+
* No I/O and no clock: `observedAt` is supplied by the caller so this stays
|
|
16
|
+
* trivially testable and replayable.
|
|
17
|
+
*
|
|
18
|
+
* @docLink packages/flow-engine/concepts#check-provenance
|
|
19
|
+
*/
|
|
20
|
+
import type { CheckEvidence } from "@skaile/workspaces/types";
|
|
21
|
+
import type { ResolvedNodeBindings } from "../contract/expression.js";
|
|
22
|
+
/** The check's process facts, captured alongside its verdict so a persisted attempt is self-describing. */
|
|
23
|
+
export interface CheckProcessRecord {
|
|
24
|
+
runtime: "shell" | "node" | "python";
|
|
25
|
+
command: string;
|
|
26
|
+
cwd?: string;
|
|
27
|
+
successExit: number[];
|
|
28
|
+
exitStatus: number;
|
|
29
|
+
passed: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Derive one check's evidence from its already-resolved bindings and its
|
|
33
|
+
* process outcome. `provenance` and `inputs` are computed only from
|
|
34
|
+
* `bindings.origins` — never from `bindings.values` or their names — so
|
|
35
|
+
* authoring a binding literally named `provenance` or `verified` cannot
|
|
36
|
+
* influence the verdict.
|
|
37
|
+
*
|
|
38
|
+
* `provenance` is `"verified"` iff every origin of every compared value has
|
|
39
|
+
* `obtainedBy: "runtime"`, `"asserted"` if any does not, and **absent** when
|
|
40
|
+
* there are no compared values — neither label is honest about an empty set.
|
|
41
|
+
* `inputs` is `"live"` — the floor for any check that runs a process —
|
|
42
|
+
* unless there is at least one compared value and every one of them has
|
|
43
|
+
* origins that are all `literal`/`default`/`flow-input`, in which case it is
|
|
44
|
+
* `"flow-local"`.
|
|
45
|
+
*/
|
|
46
|
+
export declare function deriveCheckEvidence(bindings: ResolvedNodeBindings, process: CheckProcessRecord, observedAt: string): CheckEvidence;
|
|
47
|
+
//# sourceMappingURL=check-provenance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-provenance.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/check-provenance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAGV,aAAa,EAGd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,2GAA2G;AAC3G,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB;AAID;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,MAAM,GACjB,aAAa,CA4Bf"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./engine.js";
|
|
2
2
|
export * from "./bindings.js";
|
|
3
3
|
export * from "./output-schema.js";
|
|
4
|
+
export * from "./node-deadline.js";
|
|
5
|
+
export * from "./node-attempts.js";
|
|
6
|
+
export * from "./check-provenance.js";
|
|
4
7
|
export { flowKindProvider } from "./flow-kind-provider.js";
|
|
5
8
|
export type { FlowManifest, ManifestValidationResult as FlowManifestValidationResult, } from "./flow-manifest.js";
|
|
6
9
|
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;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,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;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AAEtC,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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure bookkeeping for `NodeExecution.outputHistory` and the bounded
|
|
3
|
+
* automatic-retry budget derived from `control.retries`.
|
|
4
|
+
*
|
|
5
|
+
* `retries: N` means the first attempt plus N automatic retries — so an
|
|
6
|
+
* automatic retry remains available while fewer than N attempts have
|
|
7
|
+
* already failed. The budget is derived from `outputHistory` itself (a
|
|
8
|
+
* count of prior `'failed'` entries) rather than a separate durable
|
|
9
|
+
* counter, so it composes for free with hydration and needs no new field.
|
|
10
|
+
*
|
|
11
|
+
* The manual `retryNode` operator override never pushes an entry here (it
|
|
12
|
+
* only flips `status` back to `available`). The agent's own
|
|
13
|
+
* `doFailNode(recoverable: true)` self-retry DOES push an entry — every
|
|
14
|
+
* actual start closes out an attempt — but marks it `selfRetry` so
|
|
15
|
+
* `countFailedAttempts` excludes it: neither self-retry nor the manual
|
|
16
|
+
* override consumes the automatic budget this module tracks.
|
|
17
|
+
*
|
|
18
|
+
* @docLink packages/flow-engine/concepts#node-attempts
|
|
19
|
+
*/
|
|
20
|
+
import type { CheckEvidence, NodeError, NodeExecutionAttempt, NodeOutput } from "@skaile/workspaces/types";
|
|
21
|
+
/** Next 1-based attempt number given the attempts already recorded. */
|
|
22
|
+
export declare function nextAttemptNumber(history: NodeExecutionAttempt[] | undefined): number;
|
|
23
|
+
/** Rarely-set trailing facts about one appended attempt. */
|
|
24
|
+
export interface AppendAttemptOptions {
|
|
25
|
+
/** True for the agent's own `doFailNode(recoverable: true)` self-retry: the
|
|
26
|
+
* entry still records a genuine start-to-failure attempt, but is excluded
|
|
27
|
+
* from {@link countFailedAttempts} so it never consumes the automatic
|
|
28
|
+
* `control.retries` budget. */
|
|
29
|
+
selfRetry?: boolean;
|
|
30
|
+
/** Derived check evidence, when this attempt belongs to a `check` node that
|
|
31
|
+
* actually produced a verdict (pass or fail). Omit for every other node
|
|
32
|
+
* kind and for a check's infrastructure failure, which produced no verdict
|
|
33
|
+
* to attach. */
|
|
34
|
+
check?: CheckEvidence;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Appends one terminal attempt to `history`, numbered `max(attempt) + 1`.
|
|
38
|
+
* Never mutates `history` — returns a fresh array so callers can assign it
|
|
39
|
+
* straight onto a cloned `NodeExecution`.
|
|
40
|
+
*
|
|
41
|
+
* @param history - Existing attempt history, oldest first (or `undefined`).
|
|
42
|
+
* @param result - True outcome of this attempt — independent of any
|
|
43
|
+
* compatibility status degrade the caller applies separately (e.g. an
|
|
44
|
+
* optional node's failed execution still records `'failed'` here even
|
|
45
|
+
* though its `NodeExecution.status` becomes `'skipped'`).
|
|
46
|
+
* @param startedAtIso - This attempt's actual start time.
|
|
47
|
+
* @param completedAtIso - This attempt's terminal outcome time.
|
|
48
|
+
* @param options - See {@link AppendAttemptOptions}. Both fields default to absent.
|
|
49
|
+
* @docLink packages/flow-engine/concepts#append-attempt
|
|
50
|
+
*/
|
|
51
|
+
export declare function appendAttempt(history: NodeExecutionAttempt[] | undefined, result: NodeExecutionAttempt["result"], startedAtIso: string, completedAtIso: string, output: NodeOutput | undefined, error: NodeError | undefined, options?: AppendAttemptOptions): NodeExecutionAttempt[];
|
|
52
|
+
/**
|
|
53
|
+
* Count of attempts in `history` whose true outcome was `'failed'`,
|
|
54
|
+
* excluding self-retry entries (see {@link appendAttempt}) — this feeds only
|
|
55
|
+
* the automatic-retry budget, which self-retry sits outside of.
|
|
56
|
+
*/
|
|
57
|
+
export declare function countFailedAttempts(history: NodeExecutionAttempt[] | undefined): number;
|
|
58
|
+
/**
|
|
59
|
+
* Whether an automatic retry remains, given how many attempts have already
|
|
60
|
+
* failed and the authored `control.retries` budget. `retries: N` allows the
|
|
61
|
+
* first attempt plus N automatic retries — so a retry remains available
|
|
62
|
+
* while `priorFailedAttempts < N`. No `retries` (or `0`) means no automatic
|
|
63
|
+
* retry ever.
|
|
64
|
+
*
|
|
65
|
+
* @docLink packages/flow-engine/concepts#has-automatic-retry-budget
|
|
66
|
+
*/
|
|
67
|
+
export declare function hasAutomaticRetryBudget(priorFailedAttempts: number, retries: number | undefined): boolean;
|
|
68
|
+
//# sourceMappingURL=node-attempts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-attempts.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/node-attempts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAElC,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,SAAS,GAAG,MAAM,CAGrF;AAED,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACnC;;;mCAG+B;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;oBAGgB;IAChB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,oBAAoB,EAAE,GAAG,SAAS,EAC3C,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,KAAK,EAAE,SAAS,GAAG,SAAS,EAC5B,OAAO,GAAE,oBAAyB,GACjC,oBAAoB,EAAE,CAYxB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,SAAS,GAAG,MAAM,CAGvF;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,OAAO,CAGT"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure derived-deadline arithmetic for `control.timeoutSec`.
|
|
3
|
+
*
|
|
4
|
+
* "Active execution only" is the scope every node-timeout ruling shares: the
|
|
5
|
+
* clock runs from `startedAt` but stops counting while the node was parked
|
|
6
|
+
* for a human decision. Rather than persist a separate "paused" duration,
|
|
7
|
+
* this module recomputes the deadline on demand from `startedAt` plus the
|
|
8
|
+
* already-durable `approvalHistory` / `inputHistory` — so it is correct
|
|
9
|
+
* immediately after `hydrate()` or a reconnect with no extra wiring, and a
|
|
10
|
+
* live timer is never the source of truth.
|
|
11
|
+
*
|
|
12
|
+
* @docLink packages/flow-engine/concepts#node-deadline
|
|
13
|
+
*/
|
|
14
|
+
import type { NodeExecution } from "@skaile/workspaces/types";
|
|
15
|
+
/**
|
|
16
|
+
* Milliseconds remaining before `execution`'s active-execution deadline, given
|
|
17
|
+
* `timeoutSec`. Negative once the deadline has passed. `undefined` when no
|
|
18
|
+
* timeout applies — `timeoutSec` is unset, or the node has no `startedAt` to
|
|
19
|
+
* measure from (e.g. it hasn't actually started).
|
|
20
|
+
*
|
|
21
|
+
* Active time is wall-clock since `startedAt` minus every *resolved*
|
|
22
|
+
* approval/input interval recorded at or after that `startedAt` (an
|
|
23
|
+
* interval opened before a retry's fresh `startedAt` never counts against
|
|
24
|
+
* the new attempt; a still-open interval never counts because the node
|
|
25
|
+
* would not be `running` while parked).
|
|
26
|
+
*
|
|
27
|
+
* @param execution - Current node snapshot. Only `startedAt`, `approvalHistory`,
|
|
28
|
+
* and `inputHistory` are read.
|
|
29
|
+
* @param timeoutSec - Authored `control.timeoutSec`, or `undefined` for no timeout.
|
|
30
|
+
* @param nowMs - Caller-supplied wall clock (`Date.now()` in production, injectable
|
|
31
|
+
* for tests).
|
|
32
|
+
* @docLink packages/flow-engine/concepts#remaining-active-execution-ms
|
|
33
|
+
*/
|
|
34
|
+
export declare function remainingActiveExecutionMs(execution: NodeExecution, timeoutSec: number | undefined, nowMs: number): number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Whether `execution` has exceeded its derived active-execution deadline.
|
|
37
|
+
* `false` when no timeout applies. Convenience wrapper over
|
|
38
|
+
* {@link remainingActiveExecutionMs} for call sites that only need the
|
|
39
|
+
* boolean.
|
|
40
|
+
*
|
|
41
|
+
* @docLink packages/flow-engine/concepts#is-active-execution-expired
|
|
42
|
+
*/
|
|
43
|
+
export declare function isActiveExecutionExpired(execution: NodeExecution, timeoutSec: number | undefined, nowMs: number): boolean;
|
|
44
|
+
//# sourceMappingURL=node-deadline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-deadline.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/node-deadline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAsB9D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CAOpB;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,KAAK,EAAE,MAAM,GACZ,OAAO,CAGT"}
|
|
@@ -7,6 +7,20 @@ export declare function isFunctionNode(node: FlowNode): node is FlowNode & {
|
|
|
7
7
|
kind: "function";
|
|
8
8
|
}>;
|
|
9
9
|
};
|
|
10
|
+
/** Returns whether a node is a deterministic pass/fail verdict evaluated by the runtime. */
|
|
11
|
+
export declare function isCheckNode(node: FlowNode): node is FlowNode & {
|
|
12
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
13
|
+
kind: "check";
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
/** Returns whether a node is a runtime-owned, isolated model call evaluated outside the session conversation. */
|
|
17
|
+
export declare function isSubpromptNode(node: FlowNode): node is FlowNode & {
|
|
18
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
19
|
+
kind: "subprompt";
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
/** Capitalized label for error/summary text — shared by every deterministic-node message site. */
|
|
23
|
+
export declare function deterministicNodeKindLabel(kind: "function" | "check"): string;
|
|
10
24
|
/** Returns whether a node is a runtime-owned human decision point. */
|
|
11
25
|
export declare function isGateNode(node: FlowNode): node is FlowNode & {
|
|
12
26
|
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
@@ -41,7 +55,7 @@ export declare function nodeLabel(node: FlowNode): string;
|
|
|
41
55
|
export declare function nodeAssets(node: FlowNode): string[];
|
|
42
56
|
/** Returns the binding values already supplied at the node boundary. */
|
|
43
57
|
export declare function nodeBindings(node: FlowNode): Record<string, unknown>;
|
|
44
|
-
/** Returns the first-class instruction for a strict v2 agent node. */
|
|
58
|
+
/** Returns the first-class instruction for a strict v2 agent or subprompt node. */
|
|
45
59
|
export declare function nodeInstruction(node: FlowNode): string | undefined;
|
|
46
60
|
/** Returns run-scoped defaults across strict v2 and legacy definitions. */
|
|
47
61
|
export declare function flowDefaults(flow: FlowDefinition): Record<string, unknown>;
|
|
@@ -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,E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|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Approval, InputRequest, NodeError, NodeOutput, NodePreconditionFailure, NodeStatus } from "@skaile/workspaces/types";
|
|
2
2
|
import type { FlowDefinition as AuthoredFlowDefinition, FlowNodeContract, FlowNodeControl, FlowNodeRun } from "../contract/schema.js";
|
|
3
|
-
export type { Approval, ArtifactRef, FlowExecution, FlowExecutionStatus, FormField, InputChoice, InputRequest, InputSchema, NodeError, NodeExecution, NodeExecutionSnapshot, NodeOutput, NodePreconditionFailure, NodeStatus, } from "@skaile/workspaces/types";
|
|
3
|
+
export type { Approval, ArtifactRef, BindingOrigin, CheckComparedValue, CheckEvidence, CheckInputCurrency, CheckProvenance, FlowExecution, FlowExecutionStatus, FormField, InputChoice, InputRequest, InputSchema, NodeError, NodeExecution, NodeExecutionAttempt, NodeExecutionSnapshot, NodeOutput, NodePreconditionFailure, NodeStatus, } from "@skaile/workspaces/types";
|
|
4
4
|
/**
|
|
5
5
|
* Discriminates the three edge semantics used by the flow engine:
|
|
6
6
|
* - `'flow'` — hard dependency: target cannot start until source is complete or skipped.
|
|
@@ -17,14 +17,17 @@ export type EdgeType = "flow" | "parallel" | "optional";
|
|
|
17
17
|
*
|
|
18
18
|
* Runtime-compatible node shape for strict v2 and legacy definitions.
|
|
19
19
|
*
|
|
20
|
-
* Strict v2 nodes enter runtime state when `run.kind` is `'agent'`, `'
|
|
21
|
-
* `'router'`, or `'sub-flow'
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
20
|
+
* Strict v2 nodes enter runtime state when `run.kind` is `'agent'`, `'subprompt'`, `'function'`,
|
|
21
|
+
* `'check'`, `'gate'`, `'router'`, or `'sub-flow'` — every authored kind is active. Agents use
|
|
22
|
+
* the session conversation; subprompts run one isolated model call on a second, runtime-owned
|
|
23
|
+
* driver instance with no access to that conversation, typed through the same
|
|
24
|
+
* `validateConsumedNodeOutput` path as every other kind; functions and checks use
|
|
25
|
+
* `NodeExecutor` (a check's exit status is a pass/fail verdict, not a plain success/failure);
|
|
26
|
+
* gates park around a human decision; routers select one branch in the engine; and sub-flows
|
|
27
|
+
* delegate once to an inline child run. Exact legacy sub-flow nodes normalize to the strict
|
|
28
|
+
* active shape before runtime. Of the shapes that remain legacy, only `type: 'skill'` is
|
|
29
|
+
* executable; absent, unknown, group, and router kinds normalize to false-precondition router
|
|
30
|
+
* placeholders that remain blocked.
|
|
28
31
|
*
|
|
29
32
|
* Legacy node kinds:
|
|
30
33
|
* - `'skill'` — executed through the same agent-turn path as a strict v2 agent node.
|
|
@@ -34,9 +37,9 @@ export type EdgeType = "flow" | "parallel" | "optional";
|
|
|
34
37
|
* router placeholder rather than interpreting legacy `data.routes`.
|
|
35
38
|
* - `'group'` — visual only: a canvas container used by the flow editor.
|
|
36
39
|
*
|
|
37
|
-
* The engine tracks strict v2 agent/function/gate/router/sub-flow nodes and explicit
|
|
38
|
-
* nodes. False-precondition legacy placeholders remain `not_started`, so hard
|
|
39
|
-
* from them stay blocking and preserve legacy behavior.
|
|
40
|
+
* The engine tracks strict v2 agent/function/check/gate/router/sub-flow nodes and explicit
|
|
41
|
+
* legacy skill nodes. False-precondition legacy placeholders remain `not_started`, so hard
|
|
42
|
+
* `flow` edges sourced from them stay blocking and preserve legacy behavior.
|
|
40
43
|
*
|
|
41
44
|
* `node.id` remains the execution identity. Skills are reusable requirements and may be
|
|
42
45
|
* shared by several nodes without changing those node IDs.
|
|
@@ -57,7 +60,7 @@ export interface FlowNode {
|
|
|
57
60
|
description?: string;
|
|
58
61
|
/** Strict v2 logical phase label. */
|
|
59
62
|
phase?: string;
|
|
60
|
-
/** Strict v2 execution-owner declaration.
|
|
63
|
+
/** Strict v2 execution-owner declaration. Every kind — agent, subprompt, function, check, gate, router, and sub-flow — is active. */
|
|
61
64
|
run?: FlowNodeRun;
|
|
62
65
|
/** Strict v2 input, precondition, and output declaration. */
|
|
63
66
|
contract?: FlowNodeContract;
|
|
@@ -187,8 +190,6 @@ export interface FlowGlobals {
|
|
|
187
190
|
approval_mode?: "checkpoint" | "auto" | "manual";
|
|
188
191
|
/** Whether the runner automatically triggers a review skill after each node. */
|
|
189
192
|
auto_review?: boolean;
|
|
190
|
-
/** Enables sub-agent dispatch for nodes that support it. */
|
|
191
|
-
subagent_mode?: boolean;
|
|
192
193
|
/** Verbosity level forwarded to each skill invocation. */
|
|
193
194
|
verbosity?: string;
|
|
194
195
|
/** Enables CLI-friendly output mode (no interactive prompts). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,cAAc,IAAI,sBAAsB,EACxC,gBAAgB,EAChB,eAAe,EACf,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAK/B,YAAY,EACV,QAAQ,EACR,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,uBAAuB,EACvB,UAAU,GACX,MAAM,0BAA0B,CAAC;AAMlC;;;;;;;;;GASG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,cAAc,IAAI,sBAAsB,EACxC,gBAAgB,E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E,OAAO,CAAC;CACf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { FlowManifestSchema, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, flowKindProvider, getConsumedOutputSchema, interpolateNodeInstruction, isBlocking, loadAllFlows, loadFlow, loadFlowsFromDir, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, validateConsumedNodeOutput, validateFlow } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, flowKindProvider, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlows, loadFlow, loadFlowsFromDir, nextAttemptNumber, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, validateConsumedNodeOutput, validateFlow } from '../../../chunk-S5FV6ISY.js';
|
|
2
|
+
import '../../../chunk-5QGMEPUX.js';
|
|
3
|
+
import '../../../chunk-F5VREBV2.js';
|
|
4
4
|
import '../../../chunk-P43HBWKK.js';
|
|
5
5
|
import '../../../chunk-F3HNW354.js';
|
|
6
6
|
import '../../../chunk-K5GBV4SA.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { FlowAdapterConnectOptions, FlowAdapterState, FlowAdapterStimulusBus, } from "./adapter.js";
|
|
2
2
|
export { createConnector, FlowAdapter } from "./adapter.js";
|
|
3
3
|
export { type InlineSubFlowAgentTurn, SessionInlineSubFlowRunner, type SessionInlineSubFlowRunnerOptions, } from "./inline-sub-flow-host.js";
|
|
4
|
-
export { SessionNodeExecutor, type FunctionFlowNode, type NodeExecutor, type NodeExecutorRequest, type NodeExecutorResult, type SessionNodeExecutorOptions, } from "./node-executor.js";
|
|
4
|
+
export { SessionNodeExecutor, type DeterministicFlowNode, type FunctionFlowNode, type NodeExecutor, type NodeExecutorRequest, type NodeExecutorResult, type SessionNodeExecutorOptions, } from "./node-executor.js";
|
|
5
5
|
export type { InlineSubFlowOperationTarget, InlineSubFlowProjection, InlineSubFlowRequest, InlineSubFlowResult, InlineSubFlowRunner, SubFlowFlowNode, } from "./sub-flow-runner.js";
|
|
6
|
+
export { SessionSubpromptRunner, type SessionSubpromptRunnerOptions, type SubpromptCloudConfig, type SubpromptExecutorRequest, type SubpromptExecutorResult, type SubpromptFlowNode, type SubpromptRunner, } from "./subprompt-runner.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,KAAK,sBAAsB,EAC3B,0BAA0B,EAC1B,KAAK,iCAAiC,GACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,KAAK,sBAAsB,EAC3B,0BAA0B,EAC1B,KAAK,iCAAiC,GACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,uBAAuB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { FlowAdapter } from "./adapter.js";
|
|
|
4
4
|
import type { FlowDefinition } from "./engine/types.js";
|
|
5
5
|
import type { NodeExecutor } from "./node-executor.js";
|
|
6
6
|
import type { TurnStimulus } from "./prompt-fragments.js";
|
|
7
|
+
import type { SubpromptRunner } from "./subprompt-runner.js";
|
|
7
8
|
import type { InlineSubFlowRequest, InlineSubFlowResult, InlineSubFlowRunner } from "./sub-flow-runner.js";
|
|
8
9
|
/** Maximum number of flow identities allowed in one transient inline ancestry. */
|
|
9
10
|
export declare const INLINE_SUB_FLOW_MAX_DEPTH = 16;
|
|
@@ -28,6 +29,8 @@ export interface SessionInlineSubFlowRunnerOptions {
|
|
|
28
29
|
driveAgentTurn(turn: InlineSubFlowAgentTurn): Promise<void>;
|
|
29
30
|
/** Reuses the materialized session workspace for deterministic child nodes. */
|
|
30
31
|
nodeExecutor?: NodeExecutor;
|
|
32
|
+
/** Reuses the parent's isolated-driver seam for child subprompt nodes. */
|
|
33
|
+
subpromptRunner?: SubpromptRunner;
|
|
31
34
|
}
|
|
32
35
|
/**
|
|
33
36
|
* Drives delegated flows once, inline, through child FlowAdapters in the current session.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-sub-flow-host.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/inline-sub-flow-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAGV,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,wEAAwE;AACxE,MAAM,WAAW,sBAAsB;IACrC,gFAAgF;IAChF,OAAO,EAAE,WAAW,CAAC;IACrB,8BAA8B;IAC9B,MAAM,EAAE,eAAe,CAAC;IACxB,qEAAqE;IACrE,IAAI,EAAE,cAAc,CAAC;IACrB,wEAAwE;IACxE,SAAS,EAAE,aAAa,CAAC;IACzB,qDAAqD;IACrD,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,gGAAgG;AAChG,MAAM,WAAW,iCAAiC;IAChD,wFAAwF;IACxF,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACtE,2EAA2E;IAC3E,cAAc,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,+EAA+E;IAC/E,YAAY,CAAC,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"inline-sub-flow-host.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/inline-sub-flow-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAGV,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,wEAAwE;AACxE,MAAM,WAAW,sBAAsB;IACrC,gFAAgF;IAChF,OAAO,EAAE,WAAW,CAAC;IACrB,8BAA8B;IAC9B,MAAM,EAAE,eAAe,CAAC;IACxB,qEAAqE;IACrE,IAAI,EAAE,cAAc,CAAC;IACrB,wEAAwE;IACxE,SAAS,EAAE,aAAa,CAAC;IACzB,qDAAqD;IACrD,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,gGAAgG;AAChG,MAAM,WAAW,iCAAiC;IAChD,wFAAwF;IACxF,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACtE,2EAA2E;IAC3E,cAAc,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,+EAA+E;IAC/E,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,0EAA0E;IAC1E,eAAe,CAAC,EAAE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