@voltro/plugin-ai-flows 0.76.0 → 0.77.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 +55 -0
- package/dist/errors.js +1 -1
- package/dist/index.d.ts +27 -14
- package/dist/index.js +261 -251
- package/dist/{ir-BW5JRUiH.js → ir-DcPJp738.js} +2 -2
- package/dist/ir.d.ts +11 -4
- package/dist/ir.js +1 -1
- package/dist/web.d.ts +6 -2
- package/package.json +11 -11
|
@@ -40,7 +40,7 @@ var r = e.Literal("truthy", "falsy", "eq", "neq", "contains"), i = e.Struct({
|
|
|
40
40
|
runId: e.NonEmptyString,
|
|
41
41
|
requestId: e.NonEmptyString,
|
|
42
42
|
admission: n
|
|
43
|
-
}), u = e.Literal("deterministic", "agentic"), d = e.Literal("draft", "active", "archived"), f = e.Literal("private", "organization", "shared"), p = e.Literal("pending", "running", "waiting", "succeeded", "failed", "cancelled"), m = e.Struct({
|
|
43
|
+
}), u = e.Literal("deterministic", "agentic"), d = e.Literal("draft", "active", "archived"), f = e.Literal("private", "organization", "shared"), p = e.Literal("pending", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled"), m = e.Struct({
|
|
44
44
|
runId: e.NonEmptyString,
|
|
45
45
|
status: p,
|
|
46
46
|
engine: e.Literal("cancelled", "accepted", "unknown", "already-terminal", "unreachable", "not-requested"),
|
|
@@ -49,7 +49,7 @@ var r = e.Literal("truthy", "falsy", "eq", "neq", "contains"), i = e.Struct({
|
|
|
49
49
|
let t = e.control;
|
|
50
50
|
if (t !== null && t.operation !== "cancel") return !1;
|
|
51
51
|
switch (e.engine) {
|
|
52
|
-
case "cancelled": return t !== null && t.snapshot.status === "cancelled" && (t.kind === "confirmed" || t.kind === "already-terminal");
|
|
52
|
+
case "cancelled": return e.status === "cancelled" && t !== null && t.snapshot.status === "cancelled" && (t.kind === "confirmed" || t.kind === "already-terminal");
|
|
53
53
|
case "accepted": return t?.kind === "accepted";
|
|
54
54
|
case "already-terminal": return t?.kind === "already-terminal" && t.snapshot.status !== "cancelled";
|
|
55
55
|
case "unknown": return t === null || t.kind === "unknown";
|
package/dist/ir.d.ts
CHANGED
|
@@ -106,10 +106,13 @@ export declare interface FlowCadence {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/** Row state and engine acknowledgement are separate observations. Retain the
|
|
109
|
-
* control request identity so an accepted/unknown request can be observed.
|
|
109
|
+
* control request identity so an accepted/unknown request can be observed.
|
|
110
|
+
* The row never claims `cancelled` on its own: a confirmed engine cancellation
|
|
111
|
+
* is the only receipt that reports a `cancelled` row, every other request
|
|
112
|
+
* outcome leaves the row `cancelling` (or a completion that won a race). */
|
|
110
113
|
export declare const FlowCancelReceipt: Schema.filter<Schema.Struct<{
|
|
111
114
|
runId: typeof Schema.NonEmptyString;
|
|
112
|
-
status: Schema.Literal<["pending", "running", "waiting", "succeeded", "failed", "cancelled"]>;
|
|
115
|
+
status: Schema.Literal<["pending", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled"]>;
|
|
113
116
|
engine: Schema.Literal<["cancelled", "accepted", "unknown", "already-terminal", "unreachable", "not-requested"]>;
|
|
114
117
|
control: Schema.NullOr<Schema.filter<Schema.Struct<{
|
|
115
118
|
operation: Schema.Literal<["cancel", "resume"]>;
|
|
@@ -499,8 +502,12 @@ export declare type RunSource = typeof RunSource.Type;
|
|
|
499
502
|
|
|
500
503
|
/** Run status — ONE canonical set (the legacy vocabulary; the Voltro-port
|
|
501
504
|
* additions `awaiting_human`/`completed`/`rejected` are collapsed: `waiting`
|
|
502
|
-
* covers the human pause, `succeeded` is the single terminal-success literal).
|
|
503
|
-
|
|
505
|
+
* covers the human pause, `succeeded` is the single terminal-success literal).
|
|
506
|
+
* `cancelling` is a recorded cancellation request the engine has not
|
|
507
|
+
* confirmed: the row carries that uncertainty until the engine stops the run
|
|
508
|
+
* (cooperatively, by interruption, or through a later confirmed request).
|
|
509
|
+
* Only `succeeded`, `failed` and `cancelled` are terminal. */
|
|
510
|
+
export declare const RunStatus: Schema.Literal<["pending", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled"]>;
|
|
504
511
|
|
|
505
512
|
export declare type RunStatus = typeof RunStatus.Type;
|
|
506
513
|
|
package/dist/ir.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "./ir-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "./ir-DcPJp738.js";
|
|
2
2
|
export { F as BriefField, A as ChainPending, p as ConditionOp, N as CostCompleteness, T as CostSource, v as FlowCadence, j as FlowCancelReceipt, P as FlowChain, b as FlowMode, O as FlowReviewInput, I as FlowReviewReceipt, x as FlowStartReceipt, S as FlowStatus, M as FlowStep, k as HumanResponse, w as Json, C as MAX_STEPS_DEFAULT, _ as MAX_STEPS_MAX, L as MAX_STEPS_MIN, B as MediaArtifact, y as MediaArtifacts, z as MediaInputSlot, m as MediaInputs, n as MediaReceipt, R as Modality, h as ReviewMode, i as ReviewOption, r as RunReview, d as RunSource, D as RunStatus, e as RunStep, E as RunStepStatus, V as StepCondition, l as StepType, u as StepUsage, f as Visibility, a as clampMaxSteps, t as describeCondition, g as evaluateCondition, o as isTruthy, s as normalizeFlow, c as sanitizeOutputKey };
|
package/dist/web.d.ts
CHANGED
|
@@ -408,8 +408,12 @@ export declare type RunReview = typeof RunReview.Type;
|
|
|
408
408
|
|
|
409
409
|
/** Run status — ONE canonical set (the legacy vocabulary; the Voltro-port
|
|
410
410
|
* additions `awaiting_human`/`completed`/`rejected` are collapsed: `waiting`
|
|
411
|
-
* covers the human pause, `succeeded` is the single terminal-success literal).
|
|
412
|
-
|
|
411
|
+
* covers the human pause, `succeeded` is the single terminal-success literal).
|
|
412
|
+
* `cancelling` is a recorded cancellation request the engine has not
|
|
413
|
+
* confirmed: the row carries that uncertainty until the engine stops the run
|
|
414
|
+
* (cooperatively, by interruption, or through a later confirmed request).
|
|
415
|
+
* Only `succeeded`, `failed` and `cancelled` are terminal. */
|
|
416
|
+
export declare const RunStatus: Schema.Literal<["pending", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled"]>;
|
|
413
417
|
|
|
414
418
|
export declare type RunStatus = typeof RunStatus.Type;
|
|
415
419
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/plugin-ai-flows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.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,16 +58,16 @@
|
|
|
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.77.0",
|
|
62
|
+
"@voltro/client": "0.77.0",
|
|
63
|
+
"@voltro/database": "0.77.0",
|
|
64
|
+
"@voltro/env": "0.77.0",
|
|
65
|
+
"@voltro/plugin-audit": "0.77.0",
|
|
66
|
+
"@voltro/plugin-multitenancy": "0.77.0",
|
|
67
|
+
"@voltro/plugin-soft-delete": "0.77.0",
|
|
68
|
+
"@voltro/protocol": "0.77.0",
|
|
69
|
+
"@voltro/runtime": "0.77.0",
|
|
70
|
+
"@voltro/workflow": "0.77.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"effect": "^3.22.2"
|