@voltro/plugin-ai-flows 0.83.1 → 0.85.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 +1191 -0
- package/THIRD-PARTY-NOTICES.md +119 -573
- package/dist/errors.d.ts +52 -69
- package/dist/errors.js +12 -3
- package/dist/index.d.ts +269 -281
- package/dist/index.js +624 -608
- package/dist/{ir-CdDUTf98.js → ir-Cjk1kQl9.js} +107 -30
- package/dist/ir.d.ts +193 -193
- package/dist/ir.js +1 -1
- package/dist/web.d.ts +169 -169
- package/dist/workflow.d.ts +12 -10
- package/dist/workflow.js +8 -6
- package/package.json +12 -12
package/dist/workflow.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
|
-
import { Workflow } from '
|
|
2
|
+
import { Workflow } from 'effect/workflow/Workflow';
|
|
3
3
|
import { WorkflowMessagesCarrier } from '@voltro/workflow';
|
|
4
4
|
|
|
5
5
|
/** The canonical name the launch action starts + the app re-export registers. */
|
|
@@ -22,15 +22,15 @@ export declare interface FlowRunPayload {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const flowRunWorkflow: Workflow<"flow.run", Schema.Struct<{
|
|
24
24
|
/** The pre-created `ai_flow_runs` row id the executor patches. */
|
|
25
|
-
runId:
|
|
25
|
+
runId: Schema.String;
|
|
26
26
|
/** Name (code flow) or id (data flow) to resolve the IR from. */
|
|
27
|
-
flowRef:
|
|
27
|
+
flowRef: Schema.String;
|
|
28
28
|
/** Brief values keyed by `BriefField.key`. */
|
|
29
|
-
input: Schema
|
|
29
|
+
input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
30
30
|
/** manual | cron. */
|
|
31
|
-
source: Schema.
|
|
31
|
+
source: Schema.Literals<readonly ["manual", "cron"]>;
|
|
32
32
|
/** Correlation + idempotency key. */
|
|
33
|
-
requestId:
|
|
33
|
+
requestId: Schema.String;
|
|
34
34
|
/**
|
|
35
35
|
* The chain of flows that led here, oldest first, INCLUDING this one.
|
|
36
36
|
*
|
|
@@ -43,11 +43,13 @@ export declare const flowRunWorkflow: Workflow<"flow.run", Schema.Struct<{
|
|
|
43
43
|
* Optional so a run started by an older caller (or by hand) still decodes;
|
|
44
44
|
* an absent path is read as "this is the first flow", which it is.
|
|
45
45
|
*/
|
|
46
|
-
chainPath: Schema.optional<Schema
|
|
46
|
+
chainPath: Schema.optional<Schema.$Array<Schema.String>>;
|
|
47
47
|
}>, Schema.Struct<{
|
|
48
|
-
runId:
|
|
49
|
-
status: Schema.
|
|
50
|
-
}>,
|
|
48
|
+
readonly runId: Schema.String;
|
|
49
|
+
readonly status: Schema.Literals<readonly ["succeeded", "failed", "cancelled", "waiting"]>;
|
|
50
|
+
}>, Schema.Never> & {
|
|
51
|
+
readonly name: "flow.run";
|
|
52
|
+
} & WorkflowMessagesCarrier<{
|
|
51
53
|
readonly signals: {};
|
|
52
54
|
readonly updates: {};
|
|
53
55
|
}>;
|
package/dist/workflow.js
CHANGED
|
@@ -6,17 +6,19 @@ var n = "flow.run", r = "flow-human-response", i = (e) => `${r}:${e}`, a = t({
|
|
|
6
6
|
payload: {
|
|
7
7
|
runId: e.String,
|
|
8
8
|
flowRef: e.String,
|
|
9
|
-
input: e.Record(
|
|
10
|
-
|
|
11
|
-
value: e.Unknown
|
|
12
|
-
}),
|
|
13
|
-
source: e.Literal("manual", "cron"),
|
|
9
|
+
input: e.Record(e.String, e.Unknown),
|
|
10
|
+
source: e.Literals(["manual", "cron"]),
|
|
14
11
|
requestId: e.String,
|
|
15
12
|
chainPath: e.optional(e.Array(e.String))
|
|
16
13
|
},
|
|
17
14
|
success: e.Struct({
|
|
18
15
|
runId: e.String,
|
|
19
|
-
status: e.
|
|
16
|
+
status: e.Literals([
|
|
17
|
+
"succeeded",
|
|
18
|
+
"failed",
|
|
19
|
+
"cancelled",
|
|
20
|
+
"waiting"
|
|
21
|
+
])
|
|
20
22
|
}),
|
|
21
23
|
idempotencyKey: ({ requestId: e }) => `flow-run:${e}`,
|
|
22
24
|
internal: !0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/plugin-ai-flows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "AI Flows — durable multi-step AI pipelines (deterministic + agentic) with human-in-the-loop, chaining, and cadence. Author flows in code (defineFlow) or as data (visual editor rows); one engine runs both on @voltro/workflow durability, @voltro/ai generation, storage artifacts, and notifications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -58,19 +58,19 @@
|
|
|
58
58
|
"node": ">=24.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@voltro/ai": "0.
|
|
62
|
-
"@voltro/client": "0.
|
|
63
|
-
"@voltro/database": "0.
|
|
64
|
-
"@voltro/env": "0.
|
|
65
|
-
"@voltro/plugin-audit": "0.
|
|
66
|
-
"@voltro/plugin-multitenancy": "0.
|
|
67
|
-
"@voltro/plugin-soft-delete": "0.
|
|
68
|
-
"@voltro/protocol": "0.
|
|
69
|
-
"@voltro/runtime": "0.
|
|
70
|
-
"@voltro/workflow": "0.
|
|
61
|
+
"@voltro/ai": "0.85.0",
|
|
62
|
+
"@voltro/client": "0.85.0",
|
|
63
|
+
"@voltro/database": "0.85.0",
|
|
64
|
+
"@voltro/env": "0.85.0",
|
|
65
|
+
"@voltro/plugin-audit": "0.85.0",
|
|
66
|
+
"@voltro/plugin-multitenancy": "0.85.0",
|
|
67
|
+
"@voltro/plugin-soft-delete": "0.85.0",
|
|
68
|
+
"@voltro/protocol": "0.85.0",
|
|
69
|
+
"@voltro/runtime": "0.85.0",
|
|
70
|
+
"@voltro/workflow": "0.85.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"effect": "
|
|
73
|
+
"effect": "4.0.1"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|