yaml-flow 2.1.0 → 2.2.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/README.md +81 -0
- package/dist/{constants-D1fTEbbM.d.ts → constants-Bwvkbr5s.d.cts} +128 -1
- package/dist/{constants-D1fTEbbM.d.cts → constants-Ewufm5cK.d.ts} +128 -1
- package/dist/event-graph/index.cjs +409 -0
- package/dist/event-graph/index.cjs.map +1 -1
- package/dist/event-graph/index.d.cts +3 -2
- package/dist/event-graph/index.d.ts +3 -2
- package/dist/event-graph/index.js +403 -1
- package/dist/event-graph/index.js.map +1 -1
- package/dist/index.cjs +409 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +403 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1333,6 +1333,408 @@ function applyTaskCreation(state, taskName, taskConfig) {
|
|
|
1333
1333
|
};
|
|
1334
1334
|
}
|
|
1335
1335
|
|
|
1336
|
+
// src/event-graph/plan.ts
|
|
1337
|
+
function buildProducerMap(tasks) {
|
|
1338
|
+
const map = {};
|
|
1339
|
+
for (const [name, config] of Object.entries(tasks)) {
|
|
1340
|
+
for (const token of getProvides(config)) {
|
|
1341
|
+
if (!map[token]) map[token] = [];
|
|
1342
|
+
map[token].push(name);
|
|
1343
|
+
}
|
|
1344
|
+
if (config.on) {
|
|
1345
|
+
for (const tokens of Object.values(config.on)) {
|
|
1346
|
+
for (const token of tokens) {
|
|
1347
|
+
if (!map[token]) map[token] = [];
|
|
1348
|
+
if (!map[token].includes(name)) map[token].push(name);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
if (config.on_failure) {
|
|
1353
|
+
for (const token of config.on_failure) {
|
|
1354
|
+
if (!map[token]) map[token] = [];
|
|
1355
|
+
if (!map[token].includes(name)) map[token].push(name);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
return map;
|
|
1360
|
+
}
|
|
1361
|
+
function buildDependencies(tasks, producerMap) {
|
|
1362
|
+
const deps = {};
|
|
1363
|
+
for (const [name, config] of Object.entries(tasks)) {
|
|
1364
|
+
const required = getRequires(config);
|
|
1365
|
+
const taskDeps = /* @__PURE__ */ new Set();
|
|
1366
|
+
for (const token of required) {
|
|
1367
|
+
const producers = producerMap[token] || [];
|
|
1368
|
+
for (const producer of producers) {
|
|
1369
|
+
if (producer !== name) taskDeps.add(producer);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
deps[name] = [...taskDeps];
|
|
1373
|
+
}
|
|
1374
|
+
return deps;
|
|
1375
|
+
}
|
|
1376
|
+
function computePhases(taskNames, dependencies) {
|
|
1377
|
+
const taskSet = new Set(taskNames);
|
|
1378
|
+
const inDegree = {};
|
|
1379
|
+
const dependents = {};
|
|
1380
|
+
for (const name of taskNames) {
|
|
1381
|
+
inDegree[name] = 0;
|
|
1382
|
+
dependents[name] = [];
|
|
1383
|
+
}
|
|
1384
|
+
for (const name of taskNames) {
|
|
1385
|
+
for (const dep of dependencies[name] || []) {
|
|
1386
|
+
if (taskSet.has(dep)) {
|
|
1387
|
+
inDegree[name]++;
|
|
1388
|
+
dependents[dep].push(name);
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
const phases = [];
|
|
1393
|
+
const remaining = new Set(taskNames);
|
|
1394
|
+
while (remaining.size > 0) {
|
|
1395
|
+
const phase = [];
|
|
1396
|
+
for (const name of remaining) {
|
|
1397
|
+
if (inDegree[name] === 0) {
|
|
1398
|
+
phase.push(name);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
if (phase.length === 0) {
|
|
1402
|
+
phases.push([...remaining]);
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1405
|
+
phase.sort();
|
|
1406
|
+
phases.push(phase);
|
|
1407
|
+
for (const name of phase) {
|
|
1408
|
+
remaining.delete(name);
|
|
1409
|
+
for (const dependent of dependents[name] || []) {
|
|
1410
|
+
if (remaining.has(dependent)) {
|
|
1411
|
+
inDegree[dependent]--;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
return phases;
|
|
1417
|
+
}
|
|
1418
|
+
function planExecution(graph) {
|
|
1419
|
+
const tasks = getAllTasks(graph);
|
|
1420
|
+
const taskNames = Object.keys(tasks);
|
|
1421
|
+
if (taskNames.length === 0) {
|
|
1422
|
+
return {
|
|
1423
|
+
phases: [],
|
|
1424
|
+
dependencies: {},
|
|
1425
|
+
conflicts: {},
|
|
1426
|
+
entryPoints: [],
|
|
1427
|
+
leafTasks: [],
|
|
1428
|
+
unreachableTokens: [],
|
|
1429
|
+
blockedTasks: [],
|
|
1430
|
+
depth: 0,
|
|
1431
|
+
maxParallelism: 0
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
const producerMap = buildProducerMap(tasks);
|
|
1435
|
+
const dependencies = buildDependencies(tasks, producerMap);
|
|
1436
|
+
const conflicts = {};
|
|
1437
|
+
for (const [token, producers] of Object.entries(producerMap)) {
|
|
1438
|
+
if (producers.length > 1) {
|
|
1439
|
+
conflicts[token] = producers;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
const entryPoints = taskNames.filter((name) => getRequires(tasks[name]).length === 0);
|
|
1443
|
+
const dependedOn = /* @__PURE__ */ new Set();
|
|
1444
|
+
for (const deps of Object.values(dependencies)) {
|
|
1445
|
+
for (const dep of deps) dependedOn.add(dep);
|
|
1446
|
+
}
|
|
1447
|
+
const leafTasks = taskNames.filter((name) => !dependedOn.has(name));
|
|
1448
|
+
const allRequired = /* @__PURE__ */ new Set();
|
|
1449
|
+
for (const config of Object.values(tasks)) {
|
|
1450
|
+
for (const token of getRequires(config)) {
|
|
1451
|
+
allRequired.add(token);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
const unreachableTokens = [...allRequired].filter((token) => !producerMap[token]);
|
|
1455
|
+
const unreachableSet = new Set(unreachableTokens);
|
|
1456
|
+
const blockedTasks = taskNames.filter(
|
|
1457
|
+
(name) => getRequires(tasks[name]).some((token) => unreachableSet.has(token))
|
|
1458
|
+
);
|
|
1459
|
+
const phases = computePhases(taskNames, dependencies);
|
|
1460
|
+
return {
|
|
1461
|
+
phases,
|
|
1462
|
+
dependencies,
|
|
1463
|
+
conflicts,
|
|
1464
|
+
entryPoints,
|
|
1465
|
+
leafTasks: leafTasks.sort(),
|
|
1466
|
+
unreachableTokens: unreachableTokens.sort(),
|
|
1467
|
+
blockedTasks: blockedTasks.sort(),
|
|
1468
|
+
depth: phases.length,
|
|
1469
|
+
maxParallelism: Math.max(0, ...phases.map((p) => p.length))
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
// src/event-graph/mermaid.ts
|
|
1474
|
+
function sanitizeId(name) {
|
|
1475
|
+
return name.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
1476
|
+
}
|
|
1477
|
+
function graphToMermaid(graph, options = {}) {
|
|
1478
|
+
const { direction = "TD", showTokens = true, title } = options;
|
|
1479
|
+
const tasks = getAllTasks(graph);
|
|
1480
|
+
const taskNames = Object.keys(tasks);
|
|
1481
|
+
if (taskNames.length === 0) {
|
|
1482
|
+
return `graph ${direction}
|
|
1483
|
+
empty[No tasks defined]`;
|
|
1484
|
+
}
|
|
1485
|
+
const producerMap = {};
|
|
1486
|
+
for (const [name, config] of Object.entries(tasks)) {
|
|
1487
|
+
for (const token of getProvides(config)) {
|
|
1488
|
+
if (!producerMap[token]) producerMap[token] = [];
|
|
1489
|
+
producerMap[token].push(name);
|
|
1490
|
+
}
|
|
1491
|
+
if (config.on) {
|
|
1492
|
+
for (const tokens of Object.values(config.on)) {
|
|
1493
|
+
for (const token of tokens) {
|
|
1494
|
+
if (!producerMap[token]) producerMap[token] = [];
|
|
1495
|
+
if (!producerMap[token].includes(name)) producerMap[token].push(name);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
const lines = [];
|
|
1501
|
+
const diagramTitle = title || graph.id || "Event Graph";
|
|
1502
|
+
lines.push(`%% ${diagramTitle}`);
|
|
1503
|
+
lines.push(`graph ${direction}`);
|
|
1504
|
+
const allRequired = /* @__PURE__ */ new Set();
|
|
1505
|
+
for (const config of Object.values(tasks)) {
|
|
1506
|
+
for (const token of getRequires(config)) {
|
|
1507
|
+
allRequired.add(token);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
const leafTaskSet = new Set(
|
|
1511
|
+
taskNames.filter((name) => {
|
|
1512
|
+
const prov = getProvides(tasks[name]);
|
|
1513
|
+
return prov.length === 0 || prov.every((token) => !allRequired.has(token));
|
|
1514
|
+
})
|
|
1515
|
+
);
|
|
1516
|
+
for (const name of taskNames) {
|
|
1517
|
+
const id = sanitizeId(name);
|
|
1518
|
+
const req = getRequires(tasks[name]);
|
|
1519
|
+
if (req.length === 0) {
|
|
1520
|
+
lines.push(` ${id}([${name}])`);
|
|
1521
|
+
} else if (leafTaskSet.has(name)) {
|
|
1522
|
+
lines.push(` ${id}[[${name}]]`);
|
|
1523
|
+
} else {
|
|
1524
|
+
lines.push(` ${id}[${name}]`);
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
const edgeSet = /* @__PURE__ */ new Set();
|
|
1528
|
+
for (const [name, config] of Object.entries(tasks)) {
|
|
1529
|
+
const required = getRequires(config);
|
|
1530
|
+
for (const token of required) {
|
|
1531
|
+
const producers = producerMap[token] || [];
|
|
1532
|
+
for (const producer of producers) {
|
|
1533
|
+
if (producer === name) continue;
|
|
1534
|
+
const edgeKey = `${producer}->${name}:${token}`;
|
|
1535
|
+
if (edgeSet.has(edgeKey)) continue;
|
|
1536
|
+
edgeSet.add(edgeKey);
|
|
1537
|
+
const fromId = sanitizeId(producer);
|
|
1538
|
+
const toId = sanitizeId(name);
|
|
1539
|
+
if (showTokens) {
|
|
1540
|
+
lines.push(` ${fromId} -->|${token}| ${toId}`);
|
|
1541
|
+
} else {
|
|
1542
|
+
lines.push(` ${fromId} --> ${toId}`);
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
for (const token of required) {
|
|
1547
|
+
if (!producerMap[token]) {
|
|
1548
|
+
const warnId = `warn_${sanitizeId(token)}`;
|
|
1549
|
+
const toId = sanitizeId(name);
|
|
1550
|
+
lines.push(` ${warnId}{{\u26A0 ${token}}} -.->|missing| ${toId}`);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
return lines.join("\n");
|
|
1555
|
+
}
|
|
1556
|
+
function flowToMermaid(flow, options = {}) {
|
|
1557
|
+
const { direction = "TD", title } = options;
|
|
1558
|
+
const steps = flow.steps;
|
|
1559
|
+
const terminals = flow.terminal_states;
|
|
1560
|
+
const startStep = flow.settings.start_step;
|
|
1561
|
+
const lines = [];
|
|
1562
|
+
const diagramTitle = title || flow.id || "Step Machine";
|
|
1563
|
+
lines.push(`%% ${diagramTitle}`);
|
|
1564
|
+
lines.push(`graph ${direction}`);
|
|
1565
|
+
lines.push(` START(( ))`);
|
|
1566
|
+
lines.push(` START --> ${sanitizeId(startStep)}`);
|
|
1567
|
+
for (const name of Object.keys(steps)) {
|
|
1568
|
+
const id = sanitizeId(name);
|
|
1569
|
+
lines.push(` ${id}[${name}]`);
|
|
1570
|
+
}
|
|
1571
|
+
for (const [name, config] of Object.entries(terminals)) {
|
|
1572
|
+
const id = sanitizeId(name);
|
|
1573
|
+
lines.push(` ${id}([${name}: ${config.return_intent}])`);
|
|
1574
|
+
}
|
|
1575
|
+
for (const [stepName, stepConfig] of Object.entries(steps)) {
|
|
1576
|
+
const fromId = sanitizeId(stepName);
|
|
1577
|
+
for (const [result, target] of Object.entries(stepConfig.transitions)) {
|
|
1578
|
+
const toId = sanitizeId(target);
|
|
1579
|
+
lines.push(` ${fromId} -->|${result}| ${toId}`);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
return lines.join("\n");
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
// src/event-graph/loader.ts
|
|
1586
|
+
function validateGraphConfig(config) {
|
|
1587
|
+
const errors = [];
|
|
1588
|
+
if (!config || typeof config !== "object") {
|
|
1589
|
+
return ["Graph config must be an object"];
|
|
1590
|
+
}
|
|
1591
|
+
const c = config;
|
|
1592
|
+
if (!c.settings || typeof c.settings !== "object") {
|
|
1593
|
+
errors.push('Graph config must have a "settings" object');
|
|
1594
|
+
} else {
|
|
1595
|
+
const settings = c.settings;
|
|
1596
|
+
if (!settings.completion || typeof settings.completion !== "string") {
|
|
1597
|
+
errors.push("settings.completion must be a string");
|
|
1598
|
+
}
|
|
1599
|
+
if (settings.completion === "goal-reached") {
|
|
1600
|
+
if (!Array.isArray(settings.goal) || settings.goal.length === 0) {
|
|
1601
|
+
errors.push('settings.goal must be a non-empty array when completion is "goal-reached"');
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
if (!c.tasks || typeof c.tasks !== "object") {
|
|
1606
|
+
errors.push('Graph config must have a "tasks" object');
|
|
1607
|
+
} else {
|
|
1608
|
+
const tasks = c.tasks;
|
|
1609
|
+
if (Object.keys(tasks).length === 0) {
|
|
1610
|
+
errors.push("Graph config must have at least one task");
|
|
1611
|
+
}
|
|
1612
|
+
for (const [name, task] of Object.entries(tasks)) {
|
|
1613
|
+
if (!task || typeof task !== "object") {
|
|
1614
|
+
errors.push(`Task "${name}" must be an object`);
|
|
1615
|
+
continue;
|
|
1616
|
+
}
|
|
1617
|
+
const t = task;
|
|
1618
|
+
if (!Array.isArray(t.provides)) {
|
|
1619
|
+
errors.push(`Task "${name}" must have a "provides" array`);
|
|
1620
|
+
}
|
|
1621
|
+
if (t.requires !== void 0 && !Array.isArray(t.requires)) {
|
|
1622
|
+
errors.push(`Task "${name}".requires must be an array if present`);
|
|
1623
|
+
}
|
|
1624
|
+
if (t.on !== void 0) {
|
|
1625
|
+
if (typeof t.on !== "object" || Array.isArray(t.on)) {
|
|
1626
|
+
errors.push(`Task "${name}".on must be an object mapping result keys to token arrays`);
|
|
1627
|
+
} else {
|
|
1628
|
+
for (const [key, tokens] of Object.entries(t.on)) {
|
|
1629
|
+
if (!Array.isArray(tokens)) {
|
|
1630
|
+
errors.push(`Task "${name}".on.${key} must be an array of tokens`);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
return errors;
|
|
1638
|
+
}
|
|
1639
|
+
async function parseGraphYaml(yamlString) {
|
|
1640
|
+
const yaml = await import('yaml');
|
|
1641
|
+
return yaml.parse(yamlString);
|
|
1642
|
+
}
|
|
1643
|
+
async function loadGraphConfig(source) {
|
|
1644
|
+
let config;
|
|
1645
|
+
if (typeof source === "string") {
|
|
1646
|
+
if (source.startsWith("http://") || source.startsWith("https://")) {
|
|
1647
|
+
const response = await fetch(source);
|
|
1648
|
+
if (!response.ok) {
|
|
1649
|
+
throw new Error(`Failed to load graph config from ${source}: ${response.statusText}`);
|
|
1650
|
+
}
|
|
1651
|
+
const text = await response.text();
|
|
1652
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
1653
|
+
if (contentType.includes("json") || source.endsWith(".json")) {
|
|
1654
|
+
config = JSON.parse(text);
|
|
1655
|
+
} else {
|
|
1656
|
+
config = await parseGraphYaml(text);
|
|
1657
|
+
}
|
|
1658
|
+
} else if (source.includes("{")) {
|
|
1659
|
+
config = JSON.parse(source);
|
|
1660
|
+
} else {
|
|
1661
|
+
const fs = await import('fs/promises');
|
|
1662
|
+
const text = await fs.readFile(source, "utf-8");
|
|
1663
|
+
if (source.endsWith(".json")) {
|
|
1664
|
+
config = JSON.parse(text);
|
|
1665
|
+
} else {
|
|
1666
|
+
config = await parseGraphYaml(text);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
} else {
|
|
1670
|
+
config = source;
|
|
1671
|
+
}
|
|
1672
|
+
const errors = validateGraphConfig(config);
|
|
1673
|
+
if (errors.length > 0) {
|
|
1674
|
+
throw new Error(`Invalid graph configuration:
|
|
1675
|
+
- ${errors.join("\n- ")}`);
|
|
1676
|
+
}
|
|
1677
|
+
return config;
|
|
1678
|
+
}
|
|
1679
|
+
function exportGraphConfig(config, options = {}) {
|
|
1680
|
+
const { format = "json", indent = 2 } = options;
|
|
1681
|
+
if (format === "yaml") {
|
|
1682
|
+
return toYaml(config, indent);
|
|
1683
|
+
}
|
|
1684
|
+
return JSON.stringify(config, null, indent);
|
|
1685
|
+
}
|
|
1686
|
+
async function exportGraphConfigToFile(config, filePath, options = {}) {
|
|
1687
|
+
const format = options.format ?? (filePath.endsWith(".yaml") || filePath.endsWith(".yml") ? "yaml" : "json");
|
|
1688
|
+
const content = exportGraphConfig(config, { ...options, format });
|
|
1689
|
+
const fs = await import('fs/promises');
|
|
1690
|
+
await fs.writeFile(filePath, content, "utf-8");
|
|
1691
|
+
}
|
|
1692
|
+
function toYaml(obj, indent, depth = 0) {
|
|
1693
|
+
const pad = " ".repeat(indent * depth);
|
|
1694
|
+
if (obj === null || obj === void 0) return "null";
|
|
1695
|
+
if (typeof obj === "boolean") return String(obj);
|
|
1696
|
+
if (typeof obj === "number") return String(obj);
|
|
1697
|
+
if (typeof obj === "string") {
|
|
1698
|
+
if (obj.includes(":") || obj.includes("#") || obj.includes("\n") || obj.includes('"') || obj.includes("'") || obj.startsWith(" ") || obj.startsWith("{") || obj.startsWith("[") || obj === "") {
|
|
1699
|
+
return JSON.stringify(obj);
|
|
1700
|
+
}
|
|
1701
|
+
return obj;
|
|
1702
|
+
}
|
|
1703
|
+
if (Array.isArray(obj)) {
|
|
1704
|
+
if (obj.length === 0) return "[]";
|
|
1705
|
+
if (obj.every((v) => typeof v === "string" || typeof v === "number" || typeof v === "boolean")) {
|
|
1706
|
+
return `[${obj.map((v) => typeof v === "string" ? toYaml(v, indent, 0) : String(v)).join(", ")}]`;
|
|
1707
|
+
}
|
|
1708
|
+
return obj.map((item) => {
|
|
1709
|
+
const val = toYaml(item, indent, depth + 1);
|
|
1710
|
+
if (typeof item === "object" && item !== null && !Array.isArray(item)) {
|
|
1711
|
+
const lines = val.trimStart().split("\n");
|
|
1712
|
+
return `${pad}- ${lines[0]}
|
|
1713
|
+
${lines.slice(1).map((l) => `${pad} ${l.trimStart() ? l : ""}`).filter(Boolean).join("\n")}`;
|
|
1714
|
+
}
|
|
1715
|
+
return `${pad}- ${val}`;
|
|
1716
|
+
}).join("\n");
|
|
1717
|
+
}
|
|
1718
|
+
if (typeof obj === "object") {
|
|
1719
|
+
const entries = Object.entries(obj);
|
|
1720
|
+
if (entries.length === 0) return "{}";
|
|
1721
|
+
return entries.map(([key, value]) => {
|
|
1722
|
+
if (value === void 0) return "";
|
|
1723
|
+
const serialized = toYaml(value, indent, depth + 1);
|
|
1724
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value) && Object.keys(value).length > 0) {
|
|
1725
|
+
return `${pad}${key}:
|
|
1726
|
+
${serialized}`;
|
|
1727
|
+
}
|
|
1728
|
+
if (Array.isArray(value) && value.length > 0 && !value.every((v) => typeof v === "string" || typeof v === "number" || typeof v === "boolean")) {
|
|
1729
|
+
return `${pad}${key}:
|
|
1730
|
+
${serialized}`;
|
|
1731
|
+
}
|
|
1732
|
+
return `${pad}${key}: ${serialized}`;
|
|
1733
|
+
}).filter(Boolean).join("\n");
|
|
1734
|
+
}
|
|
1735
|
+
return String(obj);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1336
1738
|
// src/stores/localStorage.ts
|
|
1337
1739
|
var LocalStorageStore = class {
|
|
1338
1740
|
prefix;
|
|
@@ -1718,22 +2120,29 @@ exports.createInitialExecutionState = createInitialExecutionState;
|
|
|
1718
2120
|
exports.createInitialState = createInitialState;
|
|
1719
2121
|
exports.createStepMachine = createStepMachine;
|
|
1720
2122
|
exports.detectStuckState = detectStuckState;
|
|
2123
|
+
exports.exportGraphConfig = exportGraphConfig;
|
|
2124
|
+
exports.exportGraphConfigToFile = exportGraphConfigToFile;
|
|
1721
2125
|
exports.extractReturnData = extractReturnData;
|
|
2126
|
+
exports.flowToMermaid = flowToMermaid;
|
|
1722
2127
|
exports.getAllTasks = getAllTasks;
|
|
1723
2128
|
exports.getCandidateTasks = getCandidateTasks;
|
|
1724
2129
|
exports.getProvides = getProvides;
|
|
1725
2130
|
exports.getRequires = getRequires;
|
|
1726
2131
|
exports.getTask = getTask;
|
|
2132
|
+
exports.graphToMermaid = graphToMermaid;
|
|
1727
2133
|
exports.hasTask = hasTask;
|
|
1728
2134
|
exports.isExecutionComplete = isExecutionComplete;
|
|
1729
2135
|
exports.isNonActiveTask = isNonActiveTask;
|
|
1730
2136
|
exports.isRepeatableTask = isRepeatableTask;
|
|
1731
2137
|
exports.isTaskCompleted = isTaskCompleted;
|
|
1732
2138
|
exports.isTaskRunning = isTaskRunning;
|
|
2139
|
+
exports.loadGraphConfig = loadGraphConfig;
|
|
1733
2140
|
exports.loadStepFlow = loadStepFlow;
|
|
1734
2141
|
exports.next = next;
|
|
2142
|
+
exports.planExecution = planExecution;
|
|
1735
2143
|
exports.resolveConfigTemplates = resolveConfigTemplates;
|
|
1736
2144
|
exports.resolveVariables = resolveVariables;
|
|
2145
|
+
exports.validateGraphConfig = validateGraphConfig;
|
|
1737
2146
|
exports.validateStepFlowConfig = validateStepFlowConfig;
|
|
1738
2147
|
//# sourceMappingURL=index.cjs.map
|
|
1739
2148
|
//# sourceMappingURL=index.cjs.map
|