@makaio/framework 1.0.0-dev-1781454904823 → 1.0.0-dev-1781472900225

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.
Files changed (109) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-subsystem/index.mjs +1 -1
  3. package/dist/{adapter-BH1X0THX.mjs → adapter-ux2xaQ6H.mjs} +1 -1
  4. package/dist/bus/index.d.mts +4 -4
  5. package/dist/bus/index.mjs +1 -1
  6. package/dist/{bus-Hb-LGzgb.mjs → bus-EZNBPRYi.mjs} +1 -1
  7. package/dist/bus-TDrZtNyc.mjs +1 -0
  8. package/dist/{canonical-model-BNb0IFWC.mjs → canonical-model-BE7t86yt.mjs} +1 -1
  9. package/dist/{compression-vRUOO-28.mjs → compression-Cy9DIqyr.mjs} +1 -1
  10. package/dist/contracts/adapter/index.d.mts +2 -2
  11. package/dist/contracts/adapter/index.mjs +1 -1
  12. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  13. package/dist/contracts/artifact/index.d.mts +1 -1
  14. package/dist/contracts/canonical-model/index.mjs +1 -1
  15. package/dist/contracts/client/index.d.mts +1 -1
  16. package/dist/contracts/config/index.d.mts +6 -6
  17. package/dist/contracts/extension/index.d.mts +3 -3
  18. package/dist/contracts/extension/index.mjs +1 -1
  19. package/dist/contracts/facet/index.d.mts +1 -1
  20. package/dist/contracts/harness/index.d.mts +1 -1
  21. package/dist/contracts/index.d.mts +135 -119
  22. package/dist/contracts/index.mjs +1 -1
  23. package/dist/contracts/materialization/index.d.mts +3 -3
  24. package/dist/contracts/provider/index.d.mts +2 -2
  25. package/dist/contracts/provider/index.mjs +1 -1
  26. package/dist/contracts/session/index.d.mts +2 -2
  27. package/dist/contracts/session/index.mjs +1 -1
  28. package/dist/contracts/shared/index.d.mts +1 -1
  29. package/dist/contracts/variant/index.d.mts +1 -1
  30. package/dist/{definition-BwLJnqEo.d.mts → definition-B2FH_eOh.d.mts} +1 -0
  31. package/dist/{definition-DZMXOnjX.mjs → definition-Bija4lGr.mjs} +1 -1
  32. package/dist/{definition-DSq5ErZD.d.mts → definition-CZcVOhXZ.d.mts} +1 -1
  33. package/dist/{extension-DEUfzXcg.mjs → extension-DNrcv3V7.mjs} +1 -1
  34. package/dist/{index-iXawmtSH2.d.mts → index-9vCtepE32.d.mts} +6 -6
  35. package/dist/{index-B3mq3Qjf.d.mts → index-BZuF4I8O.d.mts} +1 -1
  36. package/dist/{index-BSFmBEDL.d.mts → index-BaajomEP.d.mts} +20 -20
  37. package/dist/{index-BVMF3kRv.d.mts → index-BafN3wmA.d.mts} +18 -16
  38. package/dist/{index-GuspCNLR.d.mts → index-C2XLjebs.d.mts} +8 -8
  39. package/dist/{index-Cs009Dqh.d.mts → index-CKaFWH2Q.d.mts} +2 -2
  40. package/dist/{index-BVf5D_xQ.d.mts → index-CciZTbYG.d.mts} +4 -4
  41. package/dist/{index-BkKWL_tI.d.mts → index-DBd4CgV5.d.mts} +22 -6
  42. package/dist/{index-BKbzDEv4.d.mts → index-DDAviCTa.d.mts} +104 -102
  43. package/dist/{index-CgJf67BC.d.mts → index-DGbTPRLw.d.mts} +29 -29
  44. package/dist/{index-BDnI2oqX.d.mts → index-DKR_B-Oa.d.mts} +1 -1
  45. package/dist/{index-Cs1JVq0D.d.mts → index-DUI1W-zN.d.mts} +8 -8
  46. package/dist/{index-CK_hi7fg.d.mts → index-XzH0OovV.d.mts} +30 -28
  47. package/dist/{index-DN0GXDlw.d.mts → index-ldkFQKNM.d.mts} +9 -9
  48. package/dist/{index-D8nNK-pF.d.mts → index-nEJX7pZ7.d.mts} +1 -1
  49. package/dist/kernel/extension/index.d.mts +1 -1
  50. package/dist/kernel/index.d.mts +2 -2
  51. package/dist/kernel/observability/index.d.mts +1 -1
  52. package/dist/{namespace-Dr1wDUZA2.d.mts → namespace-6u1Uf-iw2.d.mts} +2 -2
  53. package/dist/{namespace-Dy0pcIqF.d.mts → namespace-B1Bldc48.d.mts} +9 -9
  54. package/dist/{namespace-1tHmgGQV.d.mts → namespace-BQgZChZl.d.mts} +2 -2
  55. package/dist/{namespace-CN2TfSCY.d.mts → namespace-Ba1gUpUu.d.mts} +4 -4
  56. package/dist/{namespace-CWgNi8Gv.d.mts → namespace-D8fZyqIh.d.mts} +30 -26
  57. package/dist/{namespace-DphMg7CF.d.mts → namespace-Q-z7Lr2f.d.mts} +4 -4
  58. package/dist/{namespace-Dyj2m6DT.d.mts → namespace-vf2H23bo.d.mts} +42 -42
  59. package/dist/{package-CBjoefAW.mjs → package-lxB0vpby.mjs} +1 -1
  60. package/dist/package.json +1 -1
  61. package/dist/{primitive-runtime-BHSEOIH6.mjs → primitive-runtime-BSg8J7VX.mjs} +1 -1
  62. package/dist/{providers-namespace-DMUyEbmp.d.mts → providers-namespace-C0C-Sb4N.d.mts} +7 -0
  63. package/dist/runtime-node/index.mjs +1 -1
  64. package/dist/{schema-D2B2V6r6.d.mts → schema-zLCdL-0u.d.mts} +2 -2
  65. package/dist/{schemas-ByBtBmoL.d.mts → schemas-BbFAwUpf.d.mts} +3 -3
  66. package/dist/{schemas-D0gBYOoc2.d.mts → schemas-C5iazMbM2.d.mts} +15 -15
  67. package/dist/{schemas-CzvG8xq7.mjs → schemas-Dvm_0GDr.mjs} +1 -1
  68. package/dist/{schemas-CN9hprME.d.mts → schemas-IDGAJ_zv.d.mts} +6 -6
  69. package/dist/{schemas-za4KzhEe.d.mts → schemas-fEoe6H0K.d.mts} +2 -2
  70. package/dist/scoped-bus-CRC3ba_l.mjs +1 -0
  71. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  72. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  73. package/dist/services/agent-runtime/index.d.mts +2 -2
  74. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  75. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  76. package/dist/services/context-rules/index.d.mts +6 -6
  77. package/dist/services/filesystem/namespace.d.mts +12 -12
  78. package/dist/services/filesystem/schemas.d.mts +6 -6
  79. package/dist/services/git/namespace.d.mts +2 -2
  80. package/dist/services/git/schemas.d.mts +1 -1
  81. package/dist/services/harness/index.d.mts +3 -3
  82. package/dist/services/index.d.mts +48 -43
  83. package/dist/services/session/index.d.mts +5 -5
  84. package/dist/services/session/messages/namespace.d.mts +1 -1
  85. package/dist/services/session/session-events/namespace.d.mts +1 -1
  86. package/dist/services/session/storage/namespace.d.mts +1 -1
  87. package/dist/services/session/storage/schema.d.mts +1 -1
  88. package/dist/services/settings/index.d.mts +1 -1
  89. package/dist/services/settings/namespace.d.mts +12 -12
  90. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  91. package/dist/services/settings/storage/index.d.mts +1 -1
  92. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  93. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  94. package/dist/services/subagent-template/index.d.mts +2 -2
  95. package/dist/services/subagent-template/namespace.d.mts +1 -1
  96. package/dist/services/subagent-template/schemas.d.mts +1 -1
  97. package/dist/services/tray-menu/index.d.mts +2 -2
  98. package/dist/services/tray-menu/namespace.d.mts +1 -1
  99. package/dist/services/tray-menu/schemas.d.mts +1 -1
  100. package/dist/{session-owtKCoUX.mjs → session-Is5VSP2V.mjs} +1 -1
  101. package/dist/{session-lineage-DFkJgYt5.d.mts → session-lineage-D_8W1MI0.d.mts} +1 -1
  102. package/dist/{types-Co-MJvHY.d.mts → types-DaznHkuE.d.mts} +38 -36
  103. package/dist/workflow-engine/index.d.mts +63 -63
  104. package/dist/workflow-engine/index.mjs +1 -1
  105. package/dist/workflow-engine/package.mjs +1 -1
  106. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/bus-Caz3Jpbc.mjs +0 -1
  109. package/dist/scoped-bus-04pwo1uM.mjs +0 -1
@@ -423,9 +423,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
423
423
  pending: "pending";
424
424
  completed: "completed";
425
425
  cancelled: "cancelled";
426
+ running: "running";
426
427
  failed: "failed";
427
428
  paused: "paused";
428
- running: "running";
429
429
  }>;
430
430
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
431
431
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -464,9 +464,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
464
464
  pending: "pending";
465
465
  completed: "completed";
466
466
  cancelled: "cancelled";
467
+ running: "running";
467
468
  failed: "failed";
468
469
  paused: "paused";
469
- running: "running";
470
470
  }>;
471
471
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
472
472
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -512,9 +512,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
512
512
  pending: "pending";
513
513
  completed: "completed";
514
514
  cancelled: "cancelled";
515
+ running: "running";
515
516
  failed: "failed";
516
517
  paused: "paused";
517
- running: "running";
518
518
  }>;
519
519
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
520
520
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -748,9 +748,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
748
748
  pending: "pending";
749
749
  completed: "completed";
750
750
  cancelled: "cancelled";
751
+ running: "running";
751
752
  failed: "failed";
752
753
  paused: "paused";
753
- running: "running";
754
754
  }>>;
755
755
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
756
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -817,9 +817,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
817
817
  pending: "pending";
818
818
  completed: "completed";
819
819
  cancelled: "cancelled";
820
+ running: "running";
820
821
  failed: "failed";
821
822
  paused: "paused";
822
- running: "running";
823
823
  }>>;
824
824
  artifactRef: z.ZodOptional<z.ZodObject<{
825
825
  kind: z.ZodString;
@@ -840,9 +840,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
840
840
  pending: "pending";
841
841
  completed: "completed";
842
842
  cancelled: "cancelled";
843
+ running: "running";
843
844
  failed: "failed";
844
845
  paused: "paused";
845
- running: "running";
846
846
  }>;
847
847
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
848
848
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -892,9 +892,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
892
892
  pending: "pending";
893
893
  completed: "completed";
894
894
  cancelled: "cancelled";
895
+ running: "running";
895
896
  failed: "failed";
896
897
  paused: "paused";
897
- running: "running";
898
898
  }>;
899
899
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
900
900
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -940,8 +940,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
940
940
  "delegate-agent": "delegate-agent";
941
941
  "delegate-role": "delegate-role";
942
942
  sequence: "sequence";
943
- gate: "gate";
944
943
  parallel: "parallel";
944
+ gate: "gate";
945
945
  iterate: "iterate";
946
946
  "iterate-chain": "iterate-chain";
947
947
  }>;
@@ -951,10 +951,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
951
951
  pending: "pending";
952
952
  completed: "completed";
953
953
  cancelled: "cancelled";
954
- failed: "failed";
955
954
  running: "running";
956
- waiting: "waiting";
955
+ failed: "failed";
957
956
  skipped: "skipped";
957
+ waiting: "waiting";
958
958
  }>;
959
959
  attempt: z.ZodDefault<z.ZodNumber>;
960
960
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -985,8 +985,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
985
985
  "delegate-agent": "delegate-agent";
986
986
  "delegate-role": "delegate-role";
987
987
  sequence: "sequence";
988
- gate: "gate";
989
988
  parallel: "parallel";
989
+ gate: "gate";
990
990
  iterate: "iterate";
991
991
  "iterate-chain": "iterate-chain";
992
992
  }>;
@@ -996,10 +996,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
996
996
  pending: "pending";
997
997
  completed: "completed";
998
998
  cancelled: "cancelled";
999
- failed: "failed";
1000
999
  running: "running";
1001
- waiting: "waiting";
1000
+ failed: "failed";
1002
1001
  skipped: "skipped";
1002
+ waiting: "waiting";
1003
1003
  }>;
1004
1004
  attempt: z.ZodDefault<z.ZodNumber>;
1005
1005
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1027,8 +1027,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1027
1027
  "delegate-agent": "delegate-agent";
1028
1028
  "delegate-role": "delegate-role";
1029
1029
  sequence: "sequence";
1030
- gate: "gate";
1031
1030
  parallel: "parallel";
1031
+ gate: "gate";
1032
1032
  iterate: "iterate";
1033
1033
  "iterate-chain": "iterate-chain";
1034
1034
  }>;
@@ -1038,10 +1038,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1038
1038
  pending: "pending";
1039
1039
  completed: "completed";
1040
1040
  cancelled: "cancelled";
1041
- failed: "failed";
1042
1041
  running: "running";
1043
- waiting: "waiting";
1042
+ failed: "failed";
1044
1043
  skipped: "skipped";
1044
+ waiting: "waiting";
1045
1045
  }>;
1046
1046
  attempt: z.ZodDefault<z.ZodNumber>;
1047
1047
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1068,8 +1068,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1068
1068
  status: z.ZodEnum<{
1069
1069
  cancelled: "cancelled";
1070
1070
  rejected: "rejected";
1071
- waiting: "waiting";
1072
1071
  resumed: "resumed";
1072
+ waiting: "waiting";
1073
1073
  "timed-out": "timed-out";
1074
1074
  }>;
1075
1075
  autoAction: z.ZodEnum<{
@@ -1200,8 +1200,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1200
1200
  status: z.ZodEnum<{
1201
1201
  cancelled: "cancelled";
1202
1202
  rejected: "rejected";
1203
- waiting: "waiting";
1204
1203
  resumed: "resumed";
1204
+ waiting: "waiting";
1205
1205
  "timed-out": "timed-out";
1206
1206
  }>;
1207
1207
  autoAction: z.ZodEnum<{
@@ -1225,8 +1225,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1225
1225
  status: z.ZodOptional<z.ZodEnum<{
1226
1226
  cancelled: "cancelled";
1227
1227
  rejected: "rejected";
1228
- waiting: "waiting";
1229
1228
  resumed: "resumed";
1229
+ waiting: "waiting";
1230
1230
  "timed-out": "timed-out";
1231
1231
  }>>;
1232
1232
  limit: z.ZodDefault<z.ZodNumber>;
@@ -1241,8 +1241,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1241
1241
  status: z.ZodEnum<{
1242
1242
  cancelled: "cancelled";
1243
1243
  rejected: "rejected";
1244
- waiting: "waiting";
1245
1244
  resumed: "resumed";
1245
+ waiting: "waiting";
1246
1246
  "timed-out": "timed-out";
1247
1247
  }>;
1248
1248
  autoAction: z.ZodEnum<{
@@ -1276,8 +1276,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1276
1276
  status: z.ZodEnum<{
1277
1277
  cancelled: "cancelled";
1278
1278
  rejected: "rejected";
1279
- waiting: "waiting";
1280
1279
  resumed: "resumed";
1280
+ waiting: "waiting";
1281
1281
  "timed-out": "timed-out";
1282
1282
  }>;
1283
1283
  autoAction: z.ZodEnum<{
@@ -1306,8 +1306,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1306
1306
  }>;
1307
1307
  status: z.ZodEnum<{
1308
1308
  completed: "completed";
1309
- failed: "failed";
1310
1309
  running: "running";
1310
+ failed: "failed";
1311
1311
  skipped: "skipped";
1312
1312
  }>;
1313
1313
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -1342,8 +1342,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1342
1342
  }>;
1343
1343
  status: z.ZodEnum<{
1344
1344
  completed: "completed";
1345
- failed: "failed";
1346
1345
  running: "running";
1346
+ failed: "failed";
1347
1347
  skipped: "skipped";
1348
1348
  }>;
1349
1349
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -2467,7 +2467,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2467
2467
  tableName: "workflow_executions";
2468
2468
  dataType: "string";
2469
2469
  columnType: "SQLiteText";
2470
- data: "pending" | "completed" | "cancelled" | "failed" | "paused" | "running";
2470
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused";
2471
2471
  driverParam: string;
2472
2472
  notNull: true;
2473
2473
  hasDefault: false;
@@ -2698,7 +2698,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2698
2698
  tableName: "workflow_execution_frames";
2699
2699
  dataType: "string";
2700
2700
  columnType: "SQLiteText";
2701
- data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain";
2701
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain";
2702
2702
  driverParam: string;
2703
2703
  notNull: true;
2704
2704
  hasDefault: false;
@@ -2711,7 +2711,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2711
2711
  generated: undefined;
2712
2712
  }, {}, {
2713
2713
  length: number | undefined;
2714
- $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain";
2714
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain";
2715
2715
  }>;
2716
2716
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2717
2717
  name: string;
@@ -2756,7 +2756,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2756
2756
  tableName: "workflow_execution_frames";
2757
2757
  dataType: "string";
2758
2758
  columnType: "SQLiteText";
2759
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
2759
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
2760
2760
  driverParam: string;
2761
2761
  notNull: true;
2762
2762
  hasDefault: true;
@@ -2769,7 +2769,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2769
2769
  generated: undefined;
2770
2770
  }, {}, {
2771
2771
  length: number | undefined;
2772
- $type: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
2772
+ $type: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
2773
2773
  }>;
2774
2774
  attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2775
2775
  name: string;
@@ -3039,7 +3039,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3039
3039
  tableName: "workflow_gate_instances";
3040
3040
  dataType: "string";
3041
3041
  columnType: "SQLiteText";
3042
- data: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
3042
+ data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
3043
3043
  driverParam: string;
3044
3044
  notNull: true;
3045
3045
  hasDefault: true;
@@ -3052,7 +3052,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3052
3052
  generated: undefined;
3053
3053
  }, {}, {
3054
3054
  length: number | undefined;
3055
- $type: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
3055
+ $type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
3056
3056
  }>;
3057
3057
  autoAction: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3058
3058
  name: "auto_action";
@@ -3267,7 +3267,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3267
3267
  tableName: "workflow_step_spans";
3268
3268
  dataType: "string";
3269
3269
  columnType: "SQLiteText";
3270
- data: "completed" | "failed" | "running" | "skipped";
3270
+ data: "completed" | "running" | "failed" | "skipped";
3271
3271
  driverParam: string;
3272
3272
  notNull: true;
3273
3273
  hasDefault: false;
@@ -3280,7 +3280,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3280
3280
  generated: undefined;
3281
3281
  }, {}, {
3282
3282
  length: number | undefined;
3283
- $type: "completed" | "failed" | "running" | "skipped";
3283
+ $type: "completed" | "running" | "failed" | "skipped";
3284
3284
  }>;
3285
3285
  startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3286
3286
  name: string;
@@ -4314,7 +4314,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4314
4314
  tableName: "worklog_summaries";
4315
4315
  dataType: "string";
4316
4316
  columnType: "SQLiteText";
4317
- data: "pending" | "completed" | "cancelled" | "failed" | "paused" | "running";
4317
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused";
4318
4318
  driverParam: string;
4319
4319
  notNull: true;
4320
4320
  hasDefault: false;
@@ -4537,7 +4537,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4537
4537
  tableName: "worklog_frame_entries";
4538
4538
  dataType: "string";
4539
4539
  columnType: "SQLiteText";
4540
- data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain";
4540
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain";
4541
4541
  driverParam: string;
4542
4542
  notNull: true;
4543
4543
  hasDefault: false;
@@ -4550,7 +4550,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4550
4550
  generated: undefined;
4551
4551
  }, {}, {
4552
4552
  length: number | undefined;
4553
- $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain";
4553
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain";
4554
4554
  }>;
4555
4555
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4556
4556
  name: string;
@@ -4576,7 +4576,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4576
4576
  tableName: "worklog_frame_entries";
4577
4577
  dataType: "string";
4578
4578
  columnType: "SQLiteText";
4579
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
4579
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
4580
4580
  driverParam: string;
4581
4581
  notNull: true;
4582
4582
  hasDefault: false;
@@ -5010,7 +5010,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5010
5010
  tableName: "worklog_gate_events";
5011
5011
  dataType: "string";
5012
5012
  columnType: "SQLiteText";
5013
- data: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
5013
+ data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
5014
5014
  driverParam: string;
5015
5015
  notNull: true;
5016
5016
  hasDefault: false;
@@ -5023,7 +5023,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5023
5023
  generated: undefined;
5024
5024
  }, {}, {
5025
5025
  length: number | undefined;
5026
- $type: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
5026
+ $type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
5027
5027
  }>;
5028
5028
  prompt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
5029
5029
  name: "prompt";
@@ -5670,9 +5670,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
5670
5670
  pending: "pending";
5671
5671
  completed: "completed";
5672
5672
  cancelled: "cancelled";
5673
+ running: "running";
5673
5674
  failed: "failed";
5674
5675
  paused: "paused";
5675
- running: "running";
5676
5676
  }>;
5677
5677
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
5678
5678
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -5711,9 +5711,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
5711
5711
  pending: "pending";
5712
5712
  completed: "completed";
5713
5713
  cancelled: "cancelled";
5714
+ running: "running";
5714
5715
  failed: "failed";
5715
5716
  paused: "paused";
5716
- running: "running";
5717
5717
  }>;
5718
5718
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
5719
5719
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -5759,9 +5759,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
5759
5759
  pending: "pending";
5760
5760
  completed: "completed";
5761
5761
  cancelled: "cancelled";
5762
+ running: "running";
5762
5763
  failed: "failed";
5763
5764
  paused: "paused";
5764
- running: "running";
5765
5765
  }>;
5766
5766
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
5767
5767
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -5995,9 +5995,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
5995
5995
  pending: "pending";
5996
5996
  completed: "completed";
5997
5997
  cancelled: "cancelled";
5998
+ running: "running";
5998
5999
  failed: "failed";
5999
6000
  paused: "paused";
6000
- running: "running";
6001
6001
  }>>;
6002
6002
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6003
6003
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6064,9 +6064,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6064
6064
  pending: "pending";
6065
6065
  completed: "completed";
6066
6066
  cancelled: "cancelled";
6067
+ running: "running";
6067
6068
  failed: "failed";
6068
6069
  paused: "paused";
6069
- running: "running";
6070
6070
  }>>;
6071
6071
  artifactRef: z.ZodOptional<z.ZodObject<{
6072
6072
  kind: z.ZodString;
@@ -6087,9 +6087,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6087
6087
  pending: "pending";
6088
6088
  completed: "completed";
6089
6089
  cancelled: "cancelled";
6090
+ running: "running";
6090
6091
  failed: "failed";
6091
6092
  paused: "paused";
6092
- running: "running";
6093
6093
  }>;
6094
6094
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
6095
6095
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -6139,9 +6139,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6139
6139
  pending: "pending";
6140
6140
  completed: "completed";
6141
6141
  cancelled: "cancelled";
6142
+ running: "running";
6142
6143
  failed: "failed";
6143
6144
  paused: "paused";
6144
- running: "running";
6145
6145
  }>;
6146
6146
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
6147
6147
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -6187,8 +6187,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6187
6187
  "delegate-agent": "delegate-agent";
6188
6188
  "delegate-role": "delegate-role";
6189
6189
  sequence: "sequence";
6190
- gate: "gate";
6191
6190
  parallel: "parallel";
6191
+ gate: "gate";
6192
6192
  iterate: "iterate";
6193
6193
  "iterate-chain": "iterate-chain";
6194
6194
  }>;
@@ -6198,10 +6198,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6198
6198
  pending: "pending";
6199
6199
  completed: "completed";
6200
6200
  cancelled: "cancelled";
6201
- failed: "failed";
6202
6201
  running: "running";
6203
- waiting: "waiting";
6202
+ failed: "failed";
6204
6203
  skipped: "skipped";
6204
+ waiting: "waiting";
6205
6205
  }>;
6206
6206
  attempt: z.ZodDefault<z.ZodNumber>;
6207
6207
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -6232,8 +6232,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6232
6232
  "delegate-agent": "delegate-agent";
6233
6233
  "delegate-role": "delegate-role";
6234
6234
  sequence: "sequence";
6235
- gate: "gate";
6236
6235
  parallel: "parallel";
6236
+ gate: "gate";
6237
6237
  iterate: "iterate";
6238
6238
  "iterate-chain": "iterate-chain";
6239
6239
  }>;
@@ -6243,10 +6243,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6243
6243
  pending: "pending";
6244
6244
  completed: "completed";
6245
6245
  cancelled: "cancelled";
6246
- failed: "failed";
6247
6246
  running: "running";
6248
- waiting: "waiting";
6247
+ failed: "failed";
6249
6248
  skipped: "skipped";
6249
+ waiting: "waiting";
6250
6250
  }>;
6251
6251
  attempt: z.ZodDefault<z.ZodNumber>;
6252
6252
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -6274,8 +6274,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6274
6274
  "delegate-agent": "delegate-agent";
6275
6275
  "delegate-role": "delegate-role";
6276
6276
  sequence: "sequence";
6277
- gate: "gate";
6278
6277
  parallel: "parallel";
6278
+ gate: "gate";
6279
6279
  iterate: "iterate";
6280
6280
  "iterate-chain": "iterate-chain";
6281
6281
  }>;
@@ -6285,10 +6285,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6285
6285
  pending: "pending";
6286
6286
  completed: "completed";
6287
6287
  cancelled: "cancelled";
6288
- failed: "failed";
6289
6288
  running: "running";
6290
- waiting: "waiting";
6289
+ failed: "failed";
6291
6290
  skipped: "skipped";
6291
+ waiting: "waiting";
6292
6292
  }>;
6293
6293
  attempt: z.ZodDefault<z.ZodNumber>;
6294
6294
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -6315,8 +6315,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6315
6315
  status: z.ZodEnum<{
6316
6316
  cancelled: "cancelled";
6317
6317
  rejected: "rejected";
6318
- waiting: "waiting";
6319
6318
  resumed: "resumed";
6319
+ waiting: "waiting";
6320
6320
  "timed-out": "timed-out";
6321
6321
  }>;
6322
6322
  autoAction: z.ZodEnum<{
@@ -6447,8 +6447,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6447
6447
  status: z.ZodEnum<{
6448
6448
  cancelled: "cancelled";
6449
6449
  rejected: "rejected";
6450
- waiting: "waiting";
6451
6450
  resumed: "resumed";
6451
+ waiting: "waiting";
6452
6452
  "timed-out": "timed-out";
6453
6453
  }>;
6454
6454
  autoAction: z.ZodEnum<{
@@ -6472,8 +6472,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6472
6472
  status: z.ZodOptional<z.ZodEnum<{
6473
6473
  cancelled: "cancelled";
6474
6474
  rejected: "rejected";
6475
- waiting: "waiting";
6476
6475
  resumed: "resumed";
6476
+ waiting: "waiting";
6477
6477
  "timed-out": "timed-out";
6478
6478
  }>>;
6479
6479
  limit: z.ZodDefault<z.ZodNumber>;
@@ -6488,8 +6488,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6488
6488
  status: z.ZodEnum<{
6489
6489
  cancelled: "cancelled";
6490
6490
  rejected: "rejected";
6491
- waiting: "waiting";
6492
6491
  resumed: "resumed";
6492
+ waiting: "waiting";
6493
6493
  "timed-out": "timed-out";
6494
6494
  }>;
6495
6495
  autoAction: z.ZodEnum<{
@@ -6523,8 +6523,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6523
6523
  status: z.ZodEnum<{
6524
6524
  cancelled: "cancelled";
6525
6525
  rejected: "rejected";
6526
- waiting: "waiting";
6527
6526
  resumed: "resumed";
6527
+ waiting: "waiting";
6528
6528
  "timed-out": "timed-out";
6529
6529
  }>;
6530
6530
  autoAction: z.ZodEnum<{
@@ -6553,8 +6553,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6553
6553
  }>;
6554
6554
  status: z.ZodEnum<{
6555
6555
  completed: "completed";
6556
- failed: "failed";
6557
6556
  running: "running";
6557
+ failed: "failed";
6558
6558
  skipped: "skipped";
6559
6559
  }>;
6560
6560
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -6589,8 +6589,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6589
6589
  }>;
6590
6590
  status: z.ZodEnum<{
6591
6591
  completed: "completed";
6592
- failed: "failed";
6593
6592
  running: "running";
6593
+ failed: "failed";
6594
6594
  skipped: "skipped";
6595
6595
  }>;
6596
6596
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -7364,7 +7364,7 @@ declare const workflowStepSpansDual: _$_makaio_storage_drizzle0.DualTable<"workf
7364
7364
  frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>; /** Step identifier within the workflow definition. */
7365
7365
  stepId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_id", [string, ...string[]]>>>; /** Step type discriminant. */
7366
7366
  stepType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_type", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_type", [string, ...string[]]>>>; /** Current span status. */
7367
- status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "failed" | "running" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "failed" | "running" | "skipped">>>; /** Step start timestamp (epoch ms). */
7367
+ status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "running" | "failed" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "running" | "failed" | "skipped">>>; /** Step start timestamp (epoch ms). */
7368
7368
  startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Step completion timestamp (epoch ms). */
7369
7369
  completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. */
7370
7370
  durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Input tokens consumed (agent steps). */
@@ -7412,7 +7412,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
7412
7412
  /** Unique frame identifier within the execution. */frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>>; /** Execution this frame belongs to. */
7413
7413
  executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>; /** Node identifier from the workflow definition. */
7414
7414
  nodeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_id", [string, ...string[]]>>>; /** Node type discriminant. */
7415
- nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain">>;
7415
+ nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain">>;
7416
7416
  /**
7417
7417
  * Ordered path of frame IDs from the root frame to this frame (inclusive).
7418
7418
  * Stored as a JSON array for tree correlation.
@@ -1 +1 @@
1
- import{A as e,H as t,K as n,M as r,O as i,R as a,S as o,b as s,u as c,y as l}from"../primitive-runtime-BHSEOIH6.mjs";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../package-CBjoefAW.mjs";import{JsonValueSchema as y,WorkflowFrameStateSchema as b}from"@makaio/framework/contracts";const x=new Set([...b.shape.status.options]);function S(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function C(e){if(!S(e))return!1;for(let t of Object.values(e))if(!S(t)||typeof t.status!=`string`||!x.has(t.status)||`result`in t&&t.result!==void 0&&!y.safeParse(t.result).success)return!1;return!0}function w(e){let t={trigger:S(e.trigger)?e.trigger:{},steps:C(e.steps)?e.steps:{},inputs:y.safeParse(e.inputs).success?e.inputs:{}};return`item`in e&&(t.item=e.item),typeof e.index==`number`&&(t.index=e.index),t}export{f as WorkflowEngineService,v as WorkflowEngineToken,u as WorkflowExecutor,l as WorkflowStorageNamespace,s as WorkflowStorageSubjects,w as buildWorkflowExpressionContextFromResolvedInputs,m as createWorkflowEnginePackage,_ as getWorkflowState,d as initializeWorkflowState,p as patchWorkflowState,h as registerDrizzleWorkflowStorage,c as runShellStep,o as workflowDefinitionsDual,g as workflowEnginePackage,i as workflowExecutionStateDual,e as workflowExecutionStateEventsDual,r as workflowExecutionsDual,a as workflowStepSpansDual,t as worklogFrameEntriesDual,n as worklogSummariesDual};
1
+ import{A as e,H as t,K as n,M as r,O as i,R as a,S as o,b as s,u as c,y as l}from"../primitive-runtime-BSg8J7VX.mjs";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../package-lxB0vpby.mjs";import{JsonValueSchema as y,WorkflowFrameStateSchema as b}from"@makaio/framework/contracts";const x=new Set([...b.shape.status.options]);function S(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function C(e){if(!S(e))return!1;for(let t of Object.values(e))if(!S(t)||typeof t.status!=`string`||!x.has(t.status)||`result`in t&&t.result!==void 0&&!y.safeParse(t.result).success)return!1;return!0}function w(e){let t={trigger:S(e.trigger)?e.trigger:{},steps:C(e.steps)?e.steps:{},inputs:y.safeParse(e.inputs).success?e.inputs:{}};return`item`in e&&(t.item=e.item),typeof e.index==`number`&&(t.index=e.index),t}export{f as WorkflowEngineService,v as WorkflowEngineToken,u as WorkflowExecutor,l as WorkflowStorageNamespace,s as WorkflowStorageSubjects,w as buildWorkflowExpressionContextFromResolvedInputs,m as createWorkflowEnginePackage,_ as getWorkflowState,d as initializeWorkflowState,p as patchWorkflowState,h as registerDrizzleWorkflowStorage,c as runShellStep,o as workflowDefinitionsDual,g as workflowEnginePackage,i as workflowExecutionStateDual,e as workflowExecutionStateEventsDual,r as workflowExecutionsDual,a as workflowStepSpansDual,t as worklogFrameEntriesDual,n as worklogSummariesDual};
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"../package-CBjoefAW.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
1
+ import{n as e,r as t,t as n}from"../package-lxB0vpby.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
@@ -1 +1 @@
1
- import{_ as e,a as t,b as n,i as r,o as i,p as a,q as o,r as s,t as c}from"../primitive-runtime-BHSEOIH6.mjs";import{WORKFLOW_CANCELLED_REASON as l}from"@makaio/framework/contracts";async function u(e,t,r,i){let a=await h(e,t,r);return await e.request(n.setExecution,{execution:a}),r===`completed`?await e.emit(o.execution.completed,{executionId:t.executionId,workflowId:t.workflowId,totalDuration:0,completedAt:a.completedAt}):await e.emit(o.execution.cancelled,{executionId:t.executionId,workflowId:t.workflowId,reason:i,completedAt:a.completedAt}),r===`cancelled`?{executionId:t.executionId,workflowId:t.workflowId,status:`cancelled`,...i===void 0?{}:{reason:i}}:{executionId:t.executionId,workflowId:t.workflowId,status:`completed`}}function d(e,t){return t.status===`completed`?{executionId:e.executionId,workflowId:e.workflowId,status:`completed`,...t.artifact===void 0?{}:{artifact:t.artifact}}:t.status===`cancelled`?{executionId:e.executionId,workflowId:e.workflowId,status:`cancelled`,...t.reason===void 0?{}:{reason:t.reason}}:t.status===`paused`?{executionId:e.executionId,workflowId:e.workflowId,status:`paused`,pausedAtGateId:t.pausedAtGateId,pausedAtFrameId:t.pausedAtFrameId}:{executionId:e.executionId,workflowId:e.workflowId,status:`failed`,error:t.error}}function f(t){let n,r=()=>{n=a({bus:t.bus,activeExecutions:t.activeExecutions,shellAbortControllers:t.shellAbortControllers,activeRunnerSteps:t.activeRunnerSteps,cancelTimeoutMs:e.cancelTimeoutMs},t.executionId,l).catch(e=>(console.error(`[WorkflowOrchestrator] Failed to persist cancellation for ${t.executionId}:`,e),!1))};return t.signal.addEventListener(`abort`,r,{once:!0}),t.signal.aborted&&r(),async()=>(t.signal.removeEventListener(`abort`,r),n??!1)}async function p(e,t){let r=await e.requestOptional(n.getExecution,{executionId:t});return r.handled?r.data.execution?.startedAt??void 0:void 0}async function m(e,t){return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:`running`,inputs:t.inputs,config:t.config??{},startedAt:await p(e,t.executionId)??Date.now(),triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function h(e,t,n){let r=Date.now();return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:n,inputs:t.inputs,config:t.config??{},startedAt:await p(e,t.executionId)??r,completedAt:r,triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function g(e,n,i,a,o,s,u,d){let f=e.suspensionStrategy===`wait-in-process`?void 0:await _(e.executionId,s,{required:!0}),p=await r({definition:n,execution:i,runContext:a,zodSchema:d?.artifact,bus:s}),m=new t(e.executionId,e.workflowId,n,i,o,s,u,void 0,p,{context:e.context,env:e.env},{suspensionStrategy:e.suspensionStrategy,resumeFrames:f}),h=m.buildExpressionContext(),g=await c(n.root,m,h);return g.status===`failed`?{status:`failed`,error:g.error}:g.status===`paused`?{status:`paused`,pausedAtGateId:g.pausedAtGateId,pausedAtFrameId:g.pausedAtFrameId}:g.status===`cancelled`||u.aborted?{status:`cancelled`,reason:l}:{status:`completed`,artifact:p?.current}}async function _(e,t,r={}){try{let i=await t.requestOptional(n.listFrames,{executionId:e});if(!i.handled){if(r.required===!0)throw Error(`Frame storage handler is required to resume execution '${e}'.`);return}return i.data.frames.length===0?void 0:s(i.data.frames)}catch(e){if(r.required===!0)throw e;return}}function v(e,t){return{executionId:e.executionId,workflowId:e.workflowId,source:e.source,definitionSnapshot:e.source.kind===`definition`?e.definition??t:t,workerManifest:{packages:[]},inputs:e.inputs,config:e.config??{},scope:e.scope,triggerPayload:e.triggerPayload,...e.artifactRef===void 0?{}:{artifactRef:e.artifactRef},...e.executionHints===void 0?{}:{executionHints:e.executionHints},coordinatorSessionId:e.coordinatorSessionId,cancelSubject:e.cancelSubject,context:e.context,env:e.env,createdAt:Date.now(),suspensionStrategy:e.suspensionStrategy}}async function y(e,t,r,i,a){r.status=`paused`,await e.request(n.setExecution,{execution:r}),await e.emit(o.execution.paused,{executionId:t.executionId,workflowId:t.workflowId,pausedAtGateId:i,pausedAtFrameId:a})}async function b(e,t,n,r,i,a){n===`completed`?await e.emit(o.execution.completed,{executionId:t.executionId,workflowId:t.workflowId,totalDuration:i-r.startedAt,completedAt:i}):n===`cancelled`?await e.emit(o.execution.cancelled,{executionId:t.executionId,workflowId:t.workflowId,reason:l,completedAt:i}):await e.emit(o.execution.failed,{executionId:t.executionId,workflowId:t.workflowId,error:a??`Workflow execution failed`,completedAt:i})}async function x(e){let{config:t,loaded:r,bus:a,signal:o}=e,{definition:s}=r;if(o.aborted)return u(a,t,`cancelled`,l);let c=await m(a,t),p=v(t,s);await i(a,c,p,s);let h=new Map(r.runtimeHandlers),_=new Map,x=new Map,S=new Map;_.set(t.executionId,{execution:c,workflow:s,runContext:p,runtimeHandlers:h});let C=f({signal:o,executionId:t.executionId,bus:a,activeExecutions:_,shellAbortControllers:x,activeRunnerSteps:S}),w={status:`completed`},T=!1;try{s.root.nodes.length>0&&(w=await g(t,s,c,p,h,a,o,r.zodSchemas))}catch(e){w={status:`failed`,error:e instanceof Error?e.message:String(e)}}finally{T=await C(),_.clear()}if(T)return d(t,{status:`cancelled`,reason:l});if((o.aborted||c.status===`cancelled`)&&(w={status:`cancelled`,reason:l}),w.status===`paused`)return await y(a,t,c,w.pausedAtGateId,w.pausedAtFrameId),d(t,w);let E=Date.now(),D=w.status===`failed`?w.error:void 0;return c.status=w.status,c.completedAt=E,c.error=D,await a.request(n.setExecution,{execution:c}),await b(a,t,w.status,c,E,D),d(t,w)}export{x as runWorkflowOrchestrator};
1
+ import{_ as e,a as t,b as n,i as r,o as i,p as a,q as o,r as s,t as c}from"../primitive-runtime-BSg8J7VX.mjs";import{WORKFLOW_CANCELLED_REASON as l}from"@makaio/framework/contracts";async function u(e,t,r,i){let a=await h(e,t,r);return await e.request(n.setExecution,{execution:a}),r===`completed`?await e.emit(o.execution.completed,{executionId:t.executionId,workflowId:t.workflowId,totalDuration:0,completedAt:a.completedAt}):await e.emit(o.execution.cancelled,{executionId:t.executionId,workflowId:t.workflowId,reason:i,completedAt:a.completedAt}),r===`cancelled`?{executionId:t.executionId,workflowId:t.workflowId,status:`cancelled`,...i===void 0?{}:{reason:i}}:{executionId:t.executionId,workflowId:t.workflowId,status:`completed`}}function d(e,t){return t.status===`completed`?{executionId:e.executionId,workflowId:e.workflowId,status:`completed`,...t.artifact===void 0?{}:{artifact:t.artifact}}:t.status===`cancelled`?{executionId:e.executionId,workflowId:e.workflowId,status:`cancelled`,...t.reason===void 0?{}:{reason:t.reason}}:t.status===`paused`?{executionId:e.executionId,workflowId:e.workflowId,status:`paused`,pausedAtGateId:t.pausedAtGateId,pausedAtFrameId:t.pausedAtFrameId}:{executionId:e.executionId,workflowId:e.workflowId,status:`failed`,error:t.error}}function f(t){let n,r=()=>{n=a({bus:t.bus,activeExecutions:t.activeExecutions,shellAbortControllers:t.shellAbortControllers,activeRunnerSteps:t.activeRunnerSteps,cancelTimeoutMs:e.cancelTimeoutMs},t.executionId,l).catch(e=>(console.error(`[WorkflowOrchestrator] Failed to persist cancellation for ${t.executionId}:`,e),!1))};return t.signal.addEventListener(`abort`,r,{once:!0}),t.signal.aborted&&r(),async()=>(t.signal.removeEventListener(`abort`,r),n??!1)}async function p(e,t){let r=await e.requestOptional(n.getExecution,{executionId:t});return r.handled?r.data.execution?.startedAt??void 0:void 0}async function m(e,t){return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:`running`,inputs:t.inputs,config:t.config??{},startedAt:await p(e,t.executionId)??Date.now(),triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function h(e,t,n){let r=Date.now();return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:n,inputs:t.inputs,config:t.config??{},startedAt:await p(e,t.executionId)??r,completedAt:r,triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function g(e,n,i,a,o,s,u,d){let f=e.suspensionStrategy===`wait-in-process`?void 0:await _(e.executionId,s,{required:!0}),p=await r({definition:n,execution:i,runContext:a,zodSchema:d?.artifact,bus:s}),m=new t(e.executionId,e.workflowId,n,i,o,s,u,void 0,p,{context:e.context,env:e.env},{suspensionStrategy:e.suspensionStrategy,resumeFrames:f}),h=m.buildExpressionContext(),g=await c(n.root,m,h);return g.status===`failed`?{status:`failed`,error:g.error}:g.status===`paused`?{status:`paused`,pausedAtGateId:g.pausedAtGateId,pausedAtFrameId:g.pausedAtFrameId}:g.status===`cancelled`||u.aborted?{status:`cancelled`,reason:l}:{status:`completed`,artifact:p?.current}}async function _(e,t,r={}){try{let i=await t.requestOptional(n.listFrames,{executionId:e});if(!i.handled){if(r.required===!0)throw Error(`Frame storage handler is required to resume execution '${e}'.`);return}return i.data.frames.length===0?void 0:s(i.data.frames)}catch(e){if(r.required===!0)throw e;return}}function v(e,t){return{executionId:e.executionId,workflowId:e.workflowId,source:e.source,definitionSnapshot:e.source.kind===`definition`?e.definition??t:t,workerManifest:{packages:[]},inputs:e.inputs,config:e.config??{},scope:e.scope,triggerPayload:e.triggerPayload,...e.artifactRef===void 0?{}:{artifactRef:e.artifactRef},...e.executionHints===void 0?{}:{executionHints:e.executionHints},coordinatorSessionId:e.coordinatorSessionId,cancelSubject:e.cancelSubject,context:e.context,env:e.env,createdAt:Date.now(),suspensionStrategy:e.suspensionStrategy}}async function y(e,t,r,i,a){r.status=`paused`,await e.request(n.setExecution,{execution:r}),await e.emit(o.execution.paused,{executionId:t.executionId,workflowId:t.workflowId,pausedAtGateId:i,pausedAtFrameId:a})}async function b(e,t,n,r,i,a){n===`completed`?await e.emit(o.execution.completed,{executionId:t.executionId,workflowId:t.workflowId,totalDuration:i-r.startedAt,completedAt:i}):n===`cancelled`?await e.emit(o.execution.cancelled,{executionId:t.executionId,workflowId:t.workflowId,reason:l,completedAt:i}):await e.emit(o.execution.failed,{executionId:t.executionId,workflowId:t.workflowId,error:a??`Workflow execution failed`,completedAt:i})}async function x(e){let{config:t,loaded:r,bus:a,signal:o}=e,{definition:s}=r;if(o.aborted)return u(a,t,`cancelled`,l);let c=await m(a,t),p=v(t,s);await i(a,c,p,s);let h=new Map(r.runtimeHandlers),_=new Map,x=new Map,S=new Map;_.set(t.executionId,{execution:c,workflow:s,runContext:p,runtimeHandlers:h});let C=f({signal:o,executionId:t.executionId,bus:a,activeExecutions:_,shellAbortControllers:x,activeRunnerSteps:S}),w={status:`completed`},T=!1;try{s.root.nodes.length>0&&(w=await g(t,s,c,p,h,a,o,r.zodSchemas))}catch(e){w={status:`failed`,error:e instanceof Error?e.message:String(e)}}finally{T=await C(),_.clear()}if(T)return d(t,{status:`cancelled`,reason:l});if((o.aborted||c.status===`cancelled`)&&(w={status:`cancelled`,reason:l}),w.status===`paused`)return await y(a,t,c,w.pausedAtGateId,w.pausedAtFrameId),d(t,w);let E=Date.now(),D=w.status===`failed`?w.error:void 0;return c.status=w.status,c.completedAt=E,c.error=D,await a.request(n.setExecution,{execution:c}),await b(a,t,w.status,c,E,D),d(t,w)}export{x as runWorkflowOrchestrator};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makaio/framework",
3
- "version": "1.0.0-dev-1781454904823",
3
+ "version": "1.0.0-dev-1781472900225",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/makaio-ai/makaio-framework.git",
@@ -1 +0,0 @@
1
- import{t as e}from"./bus-Hb-LGzgb.mjs";export{e as MakaioBus};
@@ -1 +0,0 @@
1
- import{s as e}from"./bus-Hb-LGzgb.mjs";export{e as createScopedBus};