@particle-academy/fancy-flow 0.55.0 → 0.57.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/dist/{chunk-KP4TBF3A.js → chunk-45SSUYW7.js} +3 -3
- package/dist/{chunk-KP4TBF3A.js.map → chunk-45SSUYW7.js.map} +1 -1
- package/dist/{chunk-L4QAAGLV.js → chunk-4X3DPRVD.js} +3 -3
- package/dist/{chunk-L4QAAGLV.js.map → chunk-4X3DPRVD.js.map} +1 -1
- package/dist/{chunk-YVLOLS25.js → chunk-E3XNFOLI.js} +20 -5
- package/dist/chunk-E3XNFOLI.js.map +1 -0
- package/dist/{chunk-22OJOD4X.js → chunk-LTUOAFQA.js} +27 -2
- package/dist/chunk-LTUOAFQA.js.map +1 -0
- package/dist/{chunk-E3AGYTHP.js → chunk-LUXQXJ4R.js} +3 -3
- package/dist/{chunk-E3AGYTHP.js.map → chunk-LUXQXJ4R.js.map} +1 -1
- package/dist/{chunk-HMEI2LFU.js → chunk-UBXRIK5R.js} +4 -4
- package/dist/{chunk-HMEI2LFU.js.map → chunk-UBXRIK5R.js.map} +1 -1
- package/dist/durable.cjs +25 -0
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +25 -0
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +3 -3
- package/dist/index.cjs +42 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/registry.cjs +25 -0
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +25 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema/index.d.cts +29 -5
- package/dist/schema/index.d.ts +29 -5
- package/dist/schema.cjs +42 -2
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +25 -0
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +4 -4
- package/dist/ux.cjs +25 -0
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-22OJOD4X.js.map +0 -1
- package/dist/chunk-YVLOLS25.js.map +0 -1
package/dist/engine.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { runCohort } from './chunk-
|
|
1
|
+
export { runCohort } from './chunk-45SSUYW7.js';
|
|
2
2
|
import { decodePause } from './chunk-UEOE6B52.js';
|
|
3
3
|
export { LEGACY_PAUSE_PREFIXES, PAUSE_PREFIX, decodePause, encodePause, isPause, pauseForHuman } from './chunk-UEOE6B52.js';
|
|
4
|
-
import { runFlow, getNodeKind, resolveNodePorts } from './chunk-
|
|
5
|
-
export { RunIdentity, defaultConfigFor, escapeSegment, getNodeKind, kindIds, listNodeKinds, registerNodeKind, resolveKindId, runFlow, validateConfig } from './chunk-
|
|
4
|
+
import { runFlow, getNodeKind, resolveNodePorts } from './chunk-LTUOAFQA.js';
|
|
5
|
+
export { RunIdentity, defaultConfigFor, escapeSegment, getNodeKind, kindIds, listNodeKinds, registerNodeKind, resolveKindId, runFlow, validateConfig } from './chunk-LTUOAFQA.js';
|
|
6
6
|
import './chunk-F5RPRB7A.js';
|
|
7
7
|
import { isResolutionFailure, registerLlmClient, registerWorkflowResolver } from './chunk-USL4FMFU.js';
|
|
8
8
|
|
package/dist/index.cjs
CHANGED
|
@@ -11950,6 +11950,11 @@ var KINDS = [
|
|
|
11950
11950
|
},
|
|
11951
11951
|
{
|
|
11952
11952
|
name: "@particle-academy/wait",
|
|
11953
|
+
outputShape: [
|
|
11954
|
+
{ path: "waited", type: "string", description: "Which wait mode ran." },
|
|
11955
|
+
{ path: "duration", type: "number", description: "How long it waited." },
|
|
11956
|
+
{ path: "input", type: "unknown", description: "The value that arrived, carried forward." }
|
|
11957
|
+
],
|
|
11953
11958
|
aliases: ["wait", "@fancy/wait"],
|
|
11954
11959
|
category: "logic",
|
|
11955
11960
|
label: "Wait",
|
|
@@ -12147,6 +12152,11 @@ var KINDS = [
|
|
|
12147
12152
|
},
|
|
12148
12153
|
{
|
|
12149
12154
|
name: "@particle-academy/llm_router",
|
|
12155
|
+
outputShape: [
|
|
12156
|
+
{ path: "route", type: "string", description: "The port the model chose." },
|
|
12157
|
+
{ path: "reason", type: "string", description: "Why the model chose it." },
|
|
12158
|
+
{ path: "input", type: "unknown", description: "The value that arrived, carried forward." }
|
|
12159
|
+
],
|
|
12150
12160
|
// Every id this node has ever shipped under keeps resolving — MOIC's saved
|
|
12151
12161
|
// flows carry the bare `llm_branch`.
|
|
12152
12162
|
aliases: ["llm_router", "llm_branch", "@fancy/llm_branch", "@fancy/llm_router"],
|
|
@@ -12285,6 +12295,11 @@ var KINDS = [
|
|
|
12285
12295
|
},
|
|
12286
12296
|
{
|
|
12287
12297
|
name: "@particle-academy/webhook_out",
|
|
12298
|
+
outputShape: [
|
|
12299
|
+
{ path: "sent", type: "boolean", description: "True once the request was made." },
|
|
12300
|
+
{ path: "status", type: "number", description: "HTTP status, when the transport reported one." },
|
|
12301
|
+
{ path: "response", type: "unknown", description: "The response body, when there was one." }
|
|
12302
|
+
],
|
|
12288
12303
|
aliases: ["webhook_out", "@fancy/webhook_out"],
|
|
12289
12304
|
category: "io",
|
|
12290
12305
|
label: "Send Webhook",
|
|
@@ -12322,6 +12337,12 @@ var KINDS = [
|
|
|
12322
12337
|
},
|
|
12323
12338
|
{
|
|
12324
12339
|
name: "@particle-academy/notify",
|
|
12340
|
+
outputShape: [
|
|
12341
|
+
{ path: "sent", type: "boolean", description: "True once the message was handed to the channel." },
|
|
12342
|
+
{ path: "channel", type: "string", description: "The channel it went to." },
|
|
12343
|
+
{ path: "to", type: "string", description: "The recipient." },
|
|
12344
|
+
{ path: "message", type: "string", description: "The rendered message." }
|
|
12345
|
+
],
|
|
12325
12346
|
aliases: ["notify", "@fancy/notify"],
|
|
12326
12347
|
category: "human",
|
|
12327
12348
|
label: "Notify",
|
|
@@ -12357,6 +12378,10 @@ var KINDS = [
|
|
|
12357
12378
|
},
|
|
12358
12379
|
{
|
|
12359
12380
|
name: "@particle-academy/log",
|
|
12381
|
+
outputShape: [
|
|
12382
|
+
{ path: "logged", type: "string", description: "The message that was written." },
|
|
12383
|
+
{ path: "level", type: "string", description: "The level it was written at." }
|
|
12384
|
+
],
|
|
12360
12385
|
aliases: ["log", "@fancy/log"],
|
|
12361
12386
|
category: "output",
|
|
12362
12387
|
label: "Log",
|
|
@@ -14389,8 +14414,23 @@ function toSchemaEdge(e) {
|
|
|
14389
14414
|
label: typeof e.label === "string" ? e.label : void 0
|
|
14390
14415
|
};
|
|
14391
14416
|
}
|
|
14392
|
-
|
|
14393
|
-
|
|
14417
|
+
var MIGRATIONS = {};
|
|
14418
|
+
function migrateSchema(schema, steps = MIGRATIONS) {
|
|
14419
|
+
if (!schema || typeof schema !== "object") return schema;
|
|
14420
|
+
const doc = schema;
|
|
14421
|
+
let version = doc.version;
|
|
14422
|
+
if (typeof version !== "number" || !Number.isInteger(version) || version >= WORKFLOW_SCHEMA_VERSION) {
|
|
14423
|
+
return schema;
|
|
14424
|
+
}
|
|
14425
|
+
let out = doc;
|
|
14426
|
+
while (version < WORKFLOW_SCHEMA_VERSION) {
|
|
14427
|
+
const step = steps[version];
|
|
14428
|
+
if (!step) return out;
|
|
14429
|
+
out = step(out);
|
|
14430
|
+
version += 1;
|
|
14431
|
+
out.version = version;
|
|
14432
|
+
}
|
|
14433
|
+
return out;
|
|
14394
14434
|
}
|
|
14395
14435
|
function importWorkflow(schema, options = {}) {
|
|
14396
14436
|
const issues = [];
|