@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-schema.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/output-schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AAE3D,4EAA4E;AAC5E,MAAM,WAAW,0BAA0B;IACzC,iEAAiE;IACjE,KAAK,EAAE,OAAO,CAAC;IACf,4EAA4E;IAC5E,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAmBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,cAAc,EACpB,UAAU,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CASrC;AAED,4FAA4F;AAC5F,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,cAAc,EACpB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC1C,0BAA0B,CA2B5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Approval, InputRequest, NodeError, NodeOutput, NodeStatus } from "@skaile/workspaces/types";
|
|
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, NodeStatus, } from "@skaile/workspaces/types";
|
|
3
|
+
export type { Approval, ArtifactRef, FlowExecution, FlowExecutionStatus, FormField, InputChoice, InputRequest, InputSchema, NodeError, NodeExecution, 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,25 +17,28 @@ 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
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* Strict v2 nodes enter runtime state when `run.kind` is `'agent'`, `'function'`, `'gate'`,
|
|
21
|
+
* or `'sub-flow'`. Agents use the session conversation, functions use `NodeExecutor`, gates
|
|
22
|
+
* park around a human decision, and sub-flows delegate once to an inline child run. Exact
|
|
23
|
+
* legacy sub-flow nodes normalize to the strict active shape before runtime. Of the
|
|
24
|
+
* shapes that remain legacy, only `type: 'skill'` is executable; absent, unknown, group,
|
|
25
|
+
* and router kinds remain inert. The remaining authored v2 kinds are accepted but stay inert
|
|
26
|
+
* until their dedicated runtime implementations ship.
|
|
24
27
|
*
|
|
25
28
|
* Legacy node kinds:
|
|
26
29
|
* - `'skill'` — executed through the same agent-turn path as a strict v2 agent node.
|
|
27
|
-
* - `'sub-flow'` —
|
|
28
|
-
*
|
|
29
|
-
* a host/orchestrator concern, not something this package implements.
|
|
30
|
+
* - `'sub-flow'` — executable after compatibility normalization to strict v2; the host drives
|
|
31
|
+
* the delegated child through the existing FlowAdapter lifecycle.
|
|
30
32
|
* - `'router'` — non-executable: no skill runs. Conceptually completes when a route from
|
|
31
33
|
* `data.routes` is chosen. `data.routes` is evaluated in order — the first
|
|
32
34
|
* entry whose `condition` holds wins; `condition: "default"` is a
|
|
33
35
|
* catch-all; `target: null` means "choose to skip".
|
|
34
36
|
* - `'group'` — visual only: a canvas container used by the flow editor.
|
|
35
37
|
*
|
|
36
|
-
* The engine tracks strict v2 agent nodes and explicit legacy skill nodes
|
|
37
|
-
* kind is excluded from {@link NodeState} and terminal-state computation. Hard
|
|
38
|
-
* sourced from inert nodes are nevertheless preserved as blockers, matching
|
|
38
|
+
* The engine tracks strict v2 agent/function/gate/sub-flow nodes and explicit legacy skill nodes.
|
|
39
|
+
* Every other kind is excluded from {@link NodeState} and terminal-state computation. Hard
|
|
40
|
+
* `flow` edges sourced from inert nodes are nevertheless preserved as blockers, matching
|
|
41
|
+
* legacy behavior.
|
|
39
42
|
*
|
|
40
43
|
* `node.id` remains the execution identity. Skills are reusable requirements and may be
|
|
41
44
|
* shared by several nodes without changing those node IDs.
|
|
@@ -46,7 +49,8 @@ export interface FlowNode {
|
|
|
46
49
|
/** Canvas-unique node identifier. Used as the key in completed/running/skipped sets. */
|
|
47
50
|
id: string;
|
|
48
51
|
/**
|
|
49
|
-
* Legacy node kind.
|
|
52
|
+
* Legacy-authored node kind. Exact sub-flows are promoted during parsing; retained runtime
|
|
53
|
+
* shapes track explicit `'skill'`, while every other legacy value is inert.
|
|
50
54
|
*/
|
|
51
55
|
type?: "skill" | "group" | "sub-flow" | "router" | (string & {});
|
|
52
56
|
/** Strict v2 display label. */
|
|
@@ -55,7 +59,7 @@ export interface FlowNode {
|
|
|
55
59
|
description?: string;
|
|
56
60
|
/** Strict v2 logical phase label. */
|
|
57
61
|
phase?: string;
|
|
58
|
-
/** Strict v2 execution-owner declaration.
|
|
62
|
+
/** Strict v2 execution-owner declaration. Agent, function, gate, and sub-flow are active. */
|
|
59
63
|
run?: FlowNodeRun;
|
|
60
64
|
/** Strict v2 input, precondition, and output declaration. */
|
|
61
65
|
contract?: FlowNodeContract;
|
|
@@ -320,6 +324,8 @@ export interface NodeState {
|
|
|
320
324
|
canRun: boolean;
|
|
321
325
|
/** IDs of upstream nodes whose incomplete state currently blocks this node. Empty when `canRun` is `true`. */
|
|
322
326
|
blockers: string[];
|
|
327
|
+
/** Authored deterministic conditions currently preventing admission. */
|
|
328
|
+
failedPreconditions?: NodePreconditionFailure[];
|
|
323
329
|
/** Current or most recent approval request on this node. */
|
|
324
330
|
approval?: Approval;
|
|
325
331
|
/** Full history of approval requests on this node, oldest first. */
|
|
@@ -350,7 +356,7 @@ export interface NodeState {
|
|
|
350
356
|
export interface FlowState {
|
|
351
357
|
/** ID of the flow this state was computed from (`FlowDefinition.id`). */
|
|
352
358
|
flowId: string;
|
|
353
|
-
/** Per-node state for strict v2 agents and explicit legacy skill nodes. */
|
|
359
|
+
/** Per-node state for strict v2 agents/functions and explicit legacy skill nodes. */
|
|
354
360
|
nodes: NodeState[];
|
|
355
361
|
/** IDs of nodes whose status is `'available'` — ready to be dispatched by the runner. */
|
|
356
362
|
available: string[];
|
|
@@ -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,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,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","sourceR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KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,yFAAyF;IACzF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,iDAAiD;IACjD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { FlowManifestSchema, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, flowKindProvider, isBlocking, loadAllFlows, loadFlow, loadFlowsFromDir, resolveNextNodes, validateFlow } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import '../../../chunk-
|
|
1
|
+
export { FlowManifestSchema, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, flowKindProvider, getConsumedOutputSchema, interpolateNodeInstruction, isBlocking, loadAllFlows, loadFlow, loadFlowsFromDir, resolveNextNodes, resolveNodeBindings, validateConsumedNodeOutput, validateFlow } from '../../../chunk-4O2RAXKJ.js';
|
|
2
|
+
import '../../../chunk-OEGHKO5N.js';
|
|
3
|
+
import '../../../chunk-4QROZZ5Z.js';
|
|
4
|
+
import '../../../chunk-P43HBWKK.js';
|
|
5
5
|
import '../../../chunk-F3HNW354.js';
|
|
6
6
|
import '../../../chunk-K5GBV4SA.js';
|
|
7
7
|
import '../../../chunk-ZAP2BDHG.js';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export type { FlowAdapterConnectOptions, FlowAdapterState, FlowAdapterStimulusBus, } from "./adapter.js";
|
|
2
2
|
export { createConnector, FlowAdapter } from "./adapter.js";
|
|
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";
|
|
5
|
+
export type { InlineSubFlowOperationTarget, InlineSubFlowProjection, InlineSubFlowRequest, InlineSubFlowResult, InlineSubFlowRunner, SubFlowFlowNode, } from "./sub-flow-runner.js";
|
|
3
6
|
//# 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"}
|
|
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"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ConnectorHandle } from "@skaile/workspaces/connectors";
|
|
2
|
+
import type { FlowExecution } from "@skaile/workspaces/types";
|
|
3
|
+
import { FlowAdapter } from "./adapter.js";
|
|
4
|
+
import type { FlowDefinition } from "./engine/types.js";
|
|
5
|
+
import type { NodeExecutor } from "./node-executor.js";
|
|
6
|
+
import type { TurnStimulus } from "./prompt-fragments.js";
|
|
7
|
+
import type { InlineSubFlowRequest, InlineSubFlowResult, InlineSubFlowRunner } from "./sub-flow-runner.js";
|
|
8
|
+
/** Maximum number of flow identities allowed in one transient inline ancestry. */
|
|
9
|
+
export declare const INLINE_SUB_FLOW_MAX_DEPTH = 16;
|
|
10
|
+
/** One agent turn driven by the already-materialized parent session. */
|
|
11
|
+
export interface InlineSubFlowAgentTurn {
|
|
12
|
+
/** Child adapter whose agent nodes use the parent session's connector tools. */
|
|
13
|
+
adapter: FlowAdapter;
|
|
14
|
+
/** Connected child handle. */
|
|
15
|
+
handle: ConnectorHandle;
|
|
16
|
+
/** Child definition with its resolved parent-bound input applied. */
|
|
17
|
+
flow: FlowDefinition;
|
|
18
|
+
/** Live child snapshot used to build the normal orchestrator prompt. */
|
|
19
|
+
execution: FlowExecution;
|
|
20
|
+
/** Child-local stimulus that initiated this turn. */
|
|
21
|
+
stimulus: TurnStimulus;
|
|
22
|
+
}
|
|
23
|
+
/** Host dependencies for driving an inline child through the existing FlowAdapter lifecycle. */
|
|
24
|
+
export interface SessionInlineSubFlowRunnerOptions {
|
|
25
|
+
/** Resolves a flow identity through the host's normal installed/manual/asset lookup. */
|
|
26
|
+
resolveFlow(flowId: string): FlowDefinition | Promise<FlowDefinition>;
|
|
27
|
+
/** Runs one child agent turn with the parent session's existing driver. */
|
|
28
|
+
driveAgentTurn(turn: InlineSubFlowAgentTurn): Promise<void>;
|
|
29
|
+
/** Reuses the materialized session workspace for deterministic child nodes. */
|
|
30
|
+
nodeExecutor?: NodeExecutor;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Drives delegated flows once, inline, through child FlowAdapters in the current session.
|
|
34
|
+
*
|
|
35
|
+
* Child sessions are transient and keyed by their owning parent node. A parked/no-op child stays
|
|
36
|
+
* connected in memory for the next parent stimulus, but no child snapshot is published or stored.
|
|
37
|
+
*/
|
|
38
|
+
export declare class SessionInlineSubFlowRunner implements InlineSubFlowRunner {
|
|
39
|
+
private readonly options;
|
|
40
|
+
private readonly sessions;
|
|
41
|
+
constructor(options: SessionInlineSubFlowRunnerOptions);
|
|
42
|
+
private sessionKey;
|
|
43
|
+
private dispose;
|
|
44
|
+
private cancel;
|
|
45
|
+
private createSession;
|
|
46
|
+
run(request: InlineSubFlowRequest): Promise<InlineSubFlowResult>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=inline-sub-flow-host.d.ts.map
|
|
@@ -0,0 +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;CAC7B;AAmGD;;;;;GAKG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAGxD,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyC;gBAErC,OAAO,EAAE,iCAAiC;IAEvE,OAAO,CAAC,UAAU;YAIJ,OAAO;YAQP,MAAM;YASN,aAAa;IAoGrB,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAsEvE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { BindingOrigin } from "./contract/expression.js";
|
|
2
|
+
import type { FlowNode } from "./engine/types.js";
|
|
3
|
+
/** Strict v2 function node accepted by the deterministic runtime. */
|
|
4
|
+
export type FunctionFlowNode = FlowNode & {
|
|
5
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
6
|
+
kind: "function";
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
/** Resolved execution request handed across the flow engine's only I/O seam. */
|
|
10
|
+
export interface NodeExecutorRequest {
|
|
11
|
+
/** Available strict v2 function node selected by the pure engine. */
|
|
12
|
+
node: FunctionFlowNode;
|
|
13
|
+
/** Binding values already resolved at the node boundary. */
|
|
14
|
+
inputs: Record<string, unknown>;
|
|
15
|
+
/** Provenance retained separately from the values serialized for execution. */
|
|
16
|
+
inputOrigins: Record<string, BindingOrigin[]>;
|
|
17
|
+
}
|
|
18
|
+
/** Captured result of one deterministic node process. */
|
|
19
|
+
export interface NodeExecutorResult {
|
|
20
|
+
/** Process exit status, matched against the node's declared successful statuses. */
|
|
21
|
+
exitStatus: number;
|
|
22
|
+
/** Complete UTF-8 standard output from the process. */
|
|
23
|
+
stdout: string;
|
|
24
|
+
/** Complete UTF-8 standard error from the process. */
|
|
25
|
+
stderr: string;
|
|
26
|
+
}
|
|
27
|
+
/** Runtime seam for node kinds that execute outside an agent turn. */
|
|
28
|
+
export interface NodeExecutor {
|
|
29
|
+
/** Executes one available deterministic node with already-resolved inputs. */
|
|
30
|
+
execute(request: NodeExecutorRequest): Promise<NodeExecutorResult>;
|
|
31
|
+
}
|
|
32
|
+
/** Session workspace required to keep deterministic execution inside the active run. */
|
|
33
|
+
export interface SessionNodeExecutorOptions {
|
|
34
|
+
/** Root of the already-materialized session workspace. */
|
|
35
|
+
workspaceDir: string;
|
|
36
|
+
}
|
|
37
|
+
/** Runs deterministic nodes inside the existing session workspace and environment. */
|
|
38
|
+
export declare class SessionNodeExecutor implements NodeExecutor {
|
|
39
|
+
private readonly workspaceDir;
|
|
40
|
+
/** Creates an executor scoped to one already-materialized session workspace. */
|
|
41
|
+
constructor(options: SessionNodeExecutorOptions);
|
|
42
|
+
/** Runs one function node process with session environment and binding overrides. */
|
|
43
|
+
execute(request: NodeExecutorRequest): Promise<NodeExecutorResult>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=node-executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-executor.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/node-executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,GAAG,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CAClE,CAAC;AAEF,gFAAgF;AAChF,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,IAAI,EAAE,gBAAgB,CAAC;IACvB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,+EAA+E;IAC/E,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;CAC/C;AAED,yDAAyD;AACzD,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACpE;AAED,wFAAwF;AACxF,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;CACtB;AAmCD,sFAAsF;AACtF,qBAAa,mBAAoB,YAAW,YAAY;IACtD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC,gFAAgF;gBACpE,OAAO,EAAE,0BAA0B;IAI/C,qFAAqF;IAC/E,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA8BzE"}
|
|
@@ -75,8 +75,9 @@ export declare function renderStimulusPrompt(stimulus: TurnStimulus): string;
|
|
|
75
75
|
* `FlowOrchestrator.buildOrchestratorPrompt`; the contract now is simply
|
|
76
76
|
* this function's own output. When strict v2 defaults or legacy globals are
|
|
77
77
|
* non-empty, a `## Flow globals` section exposes those run-scoped values. The
|
|
78
|
-
* flow-wide node table stays bounded to selection metadata; `build_handoff`
|
|
79
|
-
* supplies
|
|
78
|
+
* flow-wide active-node table stays bounded to selection metadata; `build_handoff`
|
|
79
|
+
* supplies a selected agent node's execution payload. First-class gates appear
|
|
80
|
+
* as runtime-owned state but never as agent-executable work.
|
|
80
81
|
* Pure — depends only on its inputs.
|
|
81
82
|
*
|
|
82
83
|
* @docLink packages/factory-assets/flow#build-orchestrator-prompt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-fragments.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/prompt-fragments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-fragments.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/prompt-fragments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAUxD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GACxB;IACE,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACjF;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAChE;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,2BAA2B,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC;AAE9B;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAyBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,YAAY,GACrB,MAAM,CAoLR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAmB/D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildOrchestratorPrompt, describeStimulus, renderStimulusPrompt } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { buildOrchestratorPrompt, describeStimulus, renderStimulusPrompt } from '../../../chunk-FKBQRV4J.js';
|
|
2
|
+
import '../../../chunk-4QROZZ5Z.js';
|
|
3
3
|
import '../../../chunk-NSBPE2FW.js';
|
|
4
4
|
//# sourceMappingURL=prompt-fragments.js.map
|
|
5
5
|
//# sourceMappingURL=prompt-fragments.js.map
|
|
@@ -26,8 +26,8 @@ export type SessionState = import("@skaile/workspaces/runner").SessionState;
|
|
|
26
26
|
/**
|
|
27
27
|
* Options for {@link runFlow}.
|
|
28
28
|
*
|
|
29
|
-
* Wraps `FlowOrchestrator` with autonomous mode turned on by default
|
|
30
|
-
*
|
|
29
|
+
* Wraps `FlowOrchestrator` with autonomous mode turned on by default. First-class
|
|
30
|
+
* gate nodes remain mandatory human decisions in every mode.
|
|
31
31
|
*
|
|
32
32
|
* @docLink packages/factory-assets/flow#run-flow
|
|
33
33
|
*/
|
|
@@ -71,7 +71,7 @@ export interface RunOptions {
|
|
|
71
71
|
sessionTimeoutMs?: number;
|
|
72
72
|
/** Optional human-readable label shown in the session list. */
|
|
73
73
|
sessionLabel?: string;
|
|
74
|
-
/** Autonomous mode for CLI runs
|
|
74
|
+
/** Autonomous mode for CLI runs. Defaults to true; first-class gate nodes are never bypassed. */
|
|
75
75
|
autonomousMode?: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* Called for each {@link AgentEvent} emitted during the run
|
|
@@ -129,12 +129,11 @@ export interface ResumeOptions {
|
|
|
129
129
|
/**
|
|
130
130
|
* Start a new flow session from the CLI.
|
|
131
131
|
*
|
|
132
|
-
* Wraps `FlowOrchestrator` with autonomous mode turned on by default
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* serve command surface and drive gates through user actions.
|
|
132
|
+
* Wraps `FlowOrchestrator` with autonomous mode turned on by default. The
|
|
133
|
+
* runner remains idle between turns; first-class gates always park for a human
|
|
134
|
+
* decision, including in autonomous mode. Non-CLI hosts (Skaile platform,
|
|
135
|
+
* Pichi) use the orchestrator directly via the serve command surface and drive
|
|
136
|
+
* gates through user actions.
|
|
138
137
|
*
|
|
139
138
|
* @docLink packages/factory-assets/flow#run-flow
|
|
140
139
|
*/
|
|
@@ -156,4 +155,6 @@ export declare function runFlow(opts: RunOptions): Promise<void>;
|
|
|
156
155
|
* @docLink packages/factory-assets/flow#resume-flow
|
|
157
156
|
*/
|
|
158
157
|
export declare function resumeFlow(opts: ResumeOptions): Promise<void>;
|
|
158
|
+
/** Resolve one flow identity through the CLI/serve host's normal lookup order. */
|
|
159
|
+
export declare function resolveFlowPath(flowId: string, projectDir: string): string;
|
|
159
160
|
//# sourceMappingURL=run-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-flow.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/run-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"run-flow.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/run-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AA2C5D,oFAAoF;AACpF,MAAM,MAAM,YAAY,GAAG,OAAO,2BAA2B,EAAE,YAAY,CAAC;AAmB5E;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC5B,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC7B;AAMD;;;;;;;;;;GAUG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAkW7D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDnE;AAkED,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAuC1E"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { resumeFlow, runFlow } from '../../../chunk-
|
|
1
|
+
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-EUWN4EK4.js';
|
|
2
2
|
import '../../../chunk-4R6DROGN.js';
|
|
3
3
|
import '../../../chunk-CZZRDYT4.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-EEHOMCRU.js';
|
|
5
5
|
import '../../../chunk-ZNIHTT22.js';
|
|
6
6
|
import '../../../chunk-6E6PKKAD.js';
|
|
7
7
|
import '../../../chunk-IFGTRL2I.js';
|
|
8
|
-
import '../../../chunk-
|
|
9
|
-
import '../../../chunk-
|
|
10
|
-
import '../../../chunk-
|
|
11
|
-
import '../../../chunk-
|
|
12
|
-
import '../../../chunk-
|
|
8
|
+
import '../../../chunk-4O2RAXKJ.js';
|
|
9
|
+
import '../../../chunk-OEGHKO5N.js';
|
|
10
|
+
import '../../../chunk-FKBQRV4J.js';
|
|
11
|
+
import '../../../chunk-4QROZZ5Z.js';
|
|
12
|
+
import '../../../chunk-P43HBWKK.js';
|
|
13
13
|
import '../../../chunk-F3HNW354.js';
|
|
14
14
|
import '../../../chunk-K5GBV4SA.js';
|
|
15
15
|
import '../../../chunk-ZAP2BDHG.js';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { BindingOrigin } from "./contract/expression.js";
|
|
2
|
+
import type { FlowDefinition, FlowNode } from "./engine/types.js";
|
|
3
|
+
import type { Approval, FlowExecution, InputRequest, NodeError, NodeOutput } from "@skaile/workspaces/types";
|
|
4
|
+
/** Strict v2 sub-flow node admitted by the pure engine. */
|
|
5
|
+
export type SubFlowFlowNode = FlowNode & {
|
|
6
|
+
run: Extract<NonNullable<FlowNode["run"]>, {
|
|
7
|
+
kind: "sub-flow";
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
/** Live child surface temporarily exposed through the parent's existing connector tools. */
|
|
11
|
+
export interface InlineSubFlowOperationTarget {
|
|
12
|
+
/** Parent sub-flow node that owns this transient child. */
|
|
13
|
+
parentNodeId: string;
|
|
14
|
+
/** Whether this child currently owns the session agent's operation surface. */
|
|
15
|
+
isAgentTurnActive(): boolean;
|
|
16
|
+
/** Executes one agent operation against the live child. */
|
|
17
|
+
executeAgentOp(operation: string, args: Record<string, unknown>): Promise<string>;
|
|
18
|
+
/** Applies a host approval addressed to the parent sub-flow node. */
|
|
19
|
+
applyParentApproval(args: Record<string, unknown>): Promise<InlineSubFlowProjection>;
|
|
20
|
+
/** Applies host input addressed to the parent sub-flow node. */
|
|
21
|
+
applyParentInput(args: Record<string, unknown>): Promise<InlineSubFlowProjection>;
|
|
22
|
+
/** Cancels, disconnects, and forgets this transient child. */
|
|
23
|
+
cancel(): Promise<void>;
|
|
24
|
+
/** Returns the child snapshot visible to scripted and production agent drivers. */
|
|
25
|
+
getExecution(): FlowExecution;
|
|
26
|
+
/** Returns child agent nodes whose approval policy remains mandatory. */
|
|
27
|
+
getMandatoryAgentApprovalNodeIds(): string[];
|
|
28
|
+
}
|
|
29
|
+
/** Host-owned request to drive one delegated flow through the existing session lifecycle. */
|
|
30
|
+
export interface InlineSubFlowRequest {
|
|
31
|
+
/** Available parent node whose delegated flow is starting. */
|
|
32
|
+
node: SubFlowFlowNode;
|
|
33
|
+
/** Delegated flow identifier from the node's run declaration. */
|
|
34
|
+
flowId: string;
|
|
35
|
+
/** Values resolved at the parent node boundary. */
|
|
36
|
+
inputs: Record<string, unknown>;
|
|
37
|
+
/** Provenance retained separately from the values passed to the child. */
|
|
38
|
+
inputOrigins: Record<string, BindingOrigin[]>;
|
|
39
|
+
/** Whether the authored legacy/shared-context intent should be applied to child input. */
|
|
40
|
+
passContext: boolean;
|
|
41
|
+
/** Parent definition, used only to derive child run input when context passing is enabled. */
|
|
42
|
+
parentFlow: FlowDefinition;
|
|
43
|
+
/** Live parent snapshot; the child never mutates or persists it directly. */
|
|
44
|
+
parentExecution: FlowExecution;
|
|
45
|
+
/** In-memory flow ancestry used for cycle and depth checks. */
|
|
46
|
+
ancestry: string[];
|
|
47
|
+
/** Registers this parent node's transient child operation target. */
|
|
48
|
+
routeOperationsTo(target: InlineSubFlowOperationTarget | undefined): void;
|
|
49
|
+
}
|
|
50
|
+
/** Existing parent-node interaction fields projected from a transient parked child. */
|
|
51
|
+
export interface InlineSubFlowProjection {
|
|
52
|
+
status: "running" | "awaiting_approval" | "awaiting_input";
|
|
53
|
+
approval?: Approval;
|
|
54
|
+
input?: InputRequest;
|
|
55
|
+
}
|
|
56
|
+
/** Terminal or deliberately parked result reported by the host-owned inline lifecycle. */
|
|
57
|
+
export type InlineSubFlowResult = {
|
|
58
|
+
status: "complete";
|
|
59
|
+
output?: NodeOutput;
|
|
60
|
+
} | {
|
|
61
|
+
status: "failed";
|
|
62
|
+
error: NodeError;
|
|
63
|
+
output?: NodeOutput;
|
|
64
|
+
} | {
|
|
65
|
+
status: "paused";
|
|
66
|
+
projection: InlineSubFlowProjection;
|
|
67
|
+
};
|
|
68
|
+
/** Host seam for resolving and driving an inline child inside the materialized session. */
|
|
69
|
+
export interface InlineSubFlowRunner {
|
|
70
|
+
/** Drives one child until it completes, fails, or parks for unavailable host input. */
|
|
71
|
+
run(request: InlineSubFlowRequest): Promise<InlineSubFlowResult>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=sub-flow-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-flow-runner.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/sub-flow-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,SAAS,EACT,UAAU,EACX,MAAM,0BAA0B,CAAC;AAElC,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,GAAG,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CAClE,CAAC;AAEF,4FAA4F;AAC5F,MAAM,WAAW,4BAA4B;IAC3C,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,iBAAiB,IAAI,OAAO,CAAC;IAC7B,2DAA2D;IAC3D,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAClF,qEAAqE;IACrE,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACrF,gEAAgE;IACh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,EAAE,UAAU,CAAA;CAAE,GAC3D;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,UAAU,EAAE,uBAAuB,CAAA;CAAE,CAAC;AAE9D,2FAA2F;AAC3F,MAAM,WAAW,mBAAmB;IAClC,uFAAuF;IACvF,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { FlowAdapter, createConnector } from '../../chunk-
|
|
1
|
+
export { FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { GitConnector, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-
|
|
1
|
+
export { GitConnector, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { GmailConnector, createConnector6 as createConnector } from '../../chunk-
|
|
1
|
+
export { GmailConnector, createConnector6 as createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { GoogleDriveConnector, createConnector7 as createConnector } from '../../chunk-
|
|
1
|
+
export { GoogleDriveConnector, createConnector7 as createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { LocalConnector, createConnector8 as createConnector } from '../../chunk-
|
|
1
|
+
export { LocalConnector, createConnector8 as createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { MattermostConnector, createConnector9 as createConnector } from '../../chunk-
|
|
1
|
+
export { MattermostConnector, createConnector9 as createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { MemoryConnector, createConnector10 as createConnector } from '../../chunk-
|
|
1
|
+
export { MemoryConnector, createConnector10 as createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { MinIOConnector, createConnector11 as createConnector } from '../../chunk-
|
|
1
|
+
export { MinIOConnector, createConnector11 as createConnector } from '../../chunk-EEHOMCRU.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4O2RAXKJ.js';
|
|
6
|
+
import '../../chunk-OEGHKO5N.js';
|
|
7
|
+
import '../../chunk-FKBQRV4J.js';
|
|
8
|
+
import '../../chunk-4QROZZ5Z.js';
|
|
9
|
+
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../../chunk-ZAP2BDHG.js';
|