@makaio/framework 1.0.0-dev-1789056039016 → 1.0.0-dev-1789118938035
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/.makaio-build.json +2 -2
- package/dist/{account-identity-CNdiLYaM.mjs → account-identity-BdGGjBuZ.mjs} +1 -1
- package/dist/{adapter-BdMny6vw.mjs → adapter-BLivHuUi.mjs} +1 -1
- package/dist/artifact-B9wVswQv.mjs +1 -0
- package/dist/bus/index.mjs +4 -4
- package/dist/{canonical-model-BMnzRhG_.mjs → canonical-model-yXnm9QTn.mjs} +1 -1
- package/dist/{client-C0HcPzvw.mjs → client-BsY0rMlE.mjs} +1 -1
- package/dist/{compression-DvPXSBWS.mjs → compression-odwEUBWb.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/automation-trigger/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/code-execution/index.d.mts +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +25 -25
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +3 -3
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{contribution-BWanQHUz.d.mts → contribution-Cdz5WTYk.d.mts} +1 -1
- package/dist/{definition-DSOXLpQj.d.mts → definition-DQNFO-Qz.d.mts} +1 -1
- package/dist/{extension-GQEL-NCV.mjs → extension-DYBu49NH.mjs} +1 -1
- package/dist/{index-CVP9K9-a2.d.mts → index-B7VWSBm72.d.mts} +4 -4
- package/dist/{index-CO6ADD43.d.mts → index-BFnIC2b0.d.mts} +49 -49
- package/dist/{index-CAURP-Tl2.d.mts → index-BUoIGZmF2.d.mts} +2 -2
- package/dist/{index-CgYGg-Ne2.d.mts → index-BZrlHkpM2.d.mts} +41 -2
- package/dist/{index-CKvliyuY.d.mts → index-C7XS5mvZ.d.mts} +842 -8
- package/dist/{index-CLmjrH8K.d.mts → index-D6_5slJp.d.mts} +1 -1
- package/dist/{index-Dp3UZQv_.d.mts → index-DS1mI9GP.d.mts} +1 -1
- package/dist/{index-H2NL2OwF2.d.mts → index-D__FyAg62.d.mts} +7 -7
- package/dist/{index-B4KCyY6J.d.mts → index-Den1hqEo.d.mts} +7 -7
- package/dist/{index-CU9xmTkP.d.mts → index-OLGGmjgd.d.mts} +1 -1
- package/dist/{index-C0jn5nKJ.d.mts → index-WhgPewY4.d.mts} +11 -11
- package/dist/{index-Dtc5UYJG.d.mts → index-l_yo-7aV.d.mts} +48 -48
- package/dist/kind-registration-CyMf-vey.mjs +1 -0
- package/dist/{materialization--bg6ZwQd.mjs → materialization-DRr6CSXV.mjs} +1 -1
- package/dist/{namespace-DyWNxLt1.d.mts → namespace-BHkEHrUG.d.mts} +6 -6
- package/dist/package.json +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/schemas-BhkprYU1.mjs +1 -0
- package/dist/{schemas-BGcAiQE0.d.mts → schemas-COQUToGQ.d.mts} +4 -4
- package/dist/{schemas-_NrySTmN.d.mts → schemas-CXCdmM5K.d.mts} +13 -1
- package/dist/{schemas-pHboaOxJ.mjs → schemas-D9_OPuLB.mjs} +1 -1
- package/dist/{schemas-Fn-eeay32.d.mts → schemas-DNvDh0eE2.d.mts} +7 -7
- package/dist/{schemas-FkLOBJgq.d.mts → schemas-DYtUc2WA.d.mts} +4 -4
- package/dist/{schemas-QEr2LI43.mjs → schemas-pBrUJEN6.mjs} +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/index.d.mts +13 -13
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/{session-CODDwsGa.mjs → session-BsQst2fC.mjs} +1 -1
- package/dist/{session-lineage-CoNs4WZy.d.mts → session-lineage-DQLXk5jZ.d.mts} +1 -1
- package/dist/shared-m6jgT2a3.mjs +1 -0
- package/dist/{storage-namespace-BUSNKZLw.d.mts → storage-namespace-DITavhRL.d.mts} +10 -10
- package/dist/{transition-D2VKNtv6.d.mts → transition-B8XDvfD7.d.mts} +2 -2
- package/dist/{types-DyXXIK4c.d.mts → types-HFQQoeAz.d.mts} +2 -2
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder-BFEvUe6n.d.mts → view-builder--qgYM35J.d.mts} +1 -1
- package/dist/{worker-L8vWpbYa.mjs → worker-nbwkoIfH.mjs} +1 -1
- package/dist/{workflow-DNks09Ip.mjs → workflow-Ba8qlWwV.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +39 -39
- package/package.json +1 -1
- package/dist/artifact--nbPrvm5.mjs +0 -1
- package/dist/kind-registration-BanX_UAF.mjs +0 -1
- package/dist/schemas-NKlV5jqJ.mjs +0 -1
- package/dist/shared-CkCrHz66.mjs +0 -1
- /package/dist/{adapter-binding-CTssGlH_.d.mts → adapter-binding-CZTWlcp9.d.mts} +0 -0
- /package/dist/{index-CrvTRZqh.d.mts → index-BNgNBDuW2.d.mts} +0 -0
- /package/dist/{json-value-Bjl8jzom.d.mts → json-value-DyMQrwGz.d.mts} +0 -0
|
@@ -836,8 +836,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
836
836
|
completed: "completed";
|
|
837
837
|
cancelled: "cancelled";
|
|
838
838
|
failed: "failed";
|
|
839
|
-
paused: "paused";
|
|
840
839
|
running: "running";
|
|
840
|
+
paused: "paused";
|
|
841
841
|
finalizing: "finalizing";
|
|
842
842
|
}>;
|
|
843
843
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -878,8 +878,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
878
878
|
completed: "completed";
|
|
879
879
|
cancelled: "cancelled";
|
|
880
880
|
failed: "failed";
|
|
881
|
-
paused: "paused";
|
|
882
881
|
running: "running";
|
|
882
|
+
paused: "paused";
|
|
883
883
|
finalizing: "finalizing";
|
|
884
884
|
}>;
|
|
885
885
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -927,8 +927,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
927
927
|
completed: "completed";
|
|
928
928
|
cancelled: "cancelled";
|
|
929
929
|
failed: "failed";
|
|
930
|
-
paused: "paused";
|
|
931
930
|
running: "running";
|
|
931
|
+
paused: "paused";
|
|
932
932
|
finalizing: "finalizing";
|
|
933
933
|
}>;
|
|
934
934
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -1113,8 +1113,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1113
1113
|
"exit-and-resume": "exit-and-resume";
|
|
1114
1114
|
}>>;
|
|
1115
1115
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
1116
|
-
worker: "worker";
|
|
1117
1116
|
authority: "authority";
|
|
1117
|
+
worker: "worker";
|
|
1118
1118
|
}>>;
|
|
1119
1119
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1120
1120
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -1182,10 +1182,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1182
1182
|
frameId: z.ZodString;
|
|
1183
1183
|
nodeId: z.ZodString;
|
|
1184
1184
|
nodeType: z.ZodEnum<{
|
|
1185
|
-
sequence: "sequence";
|
|
1186
1185
|
station: "station";
|
|
1187
1186
|
"delegate-agent": "delegate-agent";
|
|
1188
1187
|
"delegate-role": "delegate-role";
|
|
1188
|
+
sequence: "sequence";
|
|
1189
1189
|
parallel: "parallel";
|
|
1190
1190
|
gate: "gate";
|
|
1191
1191
|
iterate: "iterate";
|
|
@@ -1227,10 +1227,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1227
1227
|
frameId: z.ZodString;
|
|
1228
1228
|
nodeId: z.ZodString;
|
|
1229
1229
|
nodeType: z.ZodEnum<{
|
|
1230
|
-
sequence: "sequence";
|
|
1231
1230
|
station: "station";
|
|
1232
1231
|
"delegate-agent": "delegate-agent";
|
|
1233
1232
|
"delegate-role": "delegate-role";
|
|
1233
|
+
sequence: "sequence";
|
|
1234
1234
|
parallel: "parallel";
|
|
1235
1235
|
gate: "gate";
|
|
1236
1236
|
iterate: "iterate";
|
|
@@ -1267,8 +1267,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1267
1267
|
completed: "completed";
|
|
1268
1268
|
cancelled: "cancelled";
|
|
1269
1269
|
failed: "failed";
|
|
1270
|
-
paused: "paused";
|
|
1271
1270
|
running: "running";
|
|
1271
|
+
paused: "paused";
|
|
1272
1272
|
finalizing: "finalizing";
|
|
1273
1273
|
}>>;
|
|
1274
1274
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1464,8 +1464,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1464
1464
|
completed: "completed";
|
|
1465
1465
|
cancelled: "cancelled";
|
|
1466
1466
|
failed: "failed";
|
|
1467
|
-
paused: "paused";
|
|
1468
1467
|
running: "running";
|
|
1468
|
+
paused: "paused";
|
|
1469
1469
|
finalizing: "finalizing";
|
|
1470
1470
|
}>>;
|
|
1471
1471
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -1488,8 +1488,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1488
1488
|
completed: "completed";
|
|
1489
1489
|
cancelled: "cancelled";
|
|
1490
1490
|
failed: "failed";
|
|
1491
|
-
paused: "paused";
|
|
1492
1491
|
running: "running";
|
|
1492
|
+
paused: "paused";
|
|
1493
1493
|
finalizing: "finalizing";
|
|
1494
1494
|
}>;
|
|
1495
1495
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -1541,8 +1541,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1541
1541
|
completed: "completed";
|
|
1542
1542
|
cancelled: "cancelled";
|
|
1543
1543
|
failed: "failed";
|
|
1544
|
-
paused: "paused";
|
|
1545
1544
|
running: "running";
|
|
1545
|
+
paused: "paused";
|
|
1546
1546
|
finalizing: "finalizing";
|
|
1547
1547
|
}>;
|
|
1548
1548
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -1585,10 +1585,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1585
1585
|
frameId: z.ZodString;
|
|
1586
1586
|
nodeId: z.ZodString;
|
|
1587
1587
|
nodeType: z.ZodEnum<{
|
|
1588
|
-
sequence: "sequence";
|
|
1589
1588
|
station: "station";
|
|
1590
1589
|
"delegate-agent": "delegate-agent";
|
|
1591
1590
|
"delegate-role": "delegate-role";
|
|
1591
|
+
sequence: "sequence";
|
|
1592
1592
|
parallel: "parallel";
|
|
1593
1593
|
gate: "gate";
|
|
1594
1594
|
iterate: "iterate";
|
|
@@ -1631,10 +1631,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1631
1631
|
frameId: z.ZodString;
|
|
1632
1632
|
nodeId: z.ZodString;
|
|
1633
1633
|
nodeType: z.ZodEnum<{
|
|
1634
|
-
sequence: "sequence";
|
|
1635
1634
|
station: "station";
|
|
1636
1635
|
"delegate-agent": "delegate-agent";
|
|
1637
1636
|
"delegate-role": "delegate-role";
|
|
1637
|
+
sequence: "sequence";
|
|
1638
1638
|
parallel: "parallel";
|
|
1639
1639
|
gate: "gate";
|
|
1640
1640
|
iterate: "iterate";
|
|
@@ -1674,10 +1674,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1674
1674
|
frameId: z.ZodString;
|
|
1675
1675
|
nodeId: z.ZodString;
|
|
1676
1676
|
nodeType: z.ZodEnum<{
|
|
1677
|
-
sequence: "sequence";
|
|
1678
1677
|
station: "station";
|
|
1679
1678
|
"delegate-agent": "delegate-agent";
|
|
1680
1679
|
"delegate-role": "delegate-role";
|
|
1680
|
+
sequence: "sequence";
|
|
1681
1681
|
parallel: "parallel";
|
|
1682
1682
|
gate: "gate";
|
|
1683
1683
|
iterate: "iterate";
|
|
@@ -2208,8 +2208,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2208
2208
|
"exit-and-resume": "exit-and-resume";
|
|
2209
2209
|
}>>;
|
|
2210
2210
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
2211
|
-
worker: "worker";
|
|
2212
2211
|
authority: "authority";
|
|
2212
|
+
worker: "worker";
|
|
2213
2213
|
}>>;
|
|
2214
2214
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2215
2215
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -2395,8 +2395,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2395
2395
|
"exit-and-resume": "exit-and-resume";
|
|
2396
2396
|
}>>;
|
|
2397
2397
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
2398
|
-
worker: "worker";
|
|
2399
2398
|
authority: "authority";
|
|
2399
|
+
worker: "worker";
|
|
2400
2400
|
}>>;
|
|
2401
2401
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2402
2402
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -3058,7 +3058,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3058
3058
|
tableName: "workflow_executions";
|
|
3059
3059
|
dataType: "string";
|
|
3060
3060
|
columnType: "SQLiteText";
|
|
3061
|
-
data: "pending" | "completed" | "cancelled" | "failed" | "
|
|
3061
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
|
|
3062
3062
|
driverParam: string;
|
|
3063
3063
|
notNull: true;
|
|
3064
3064
|
hasDefault: false;
|
|
@@ -3327,7 +3327,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3327
3327
|
tableName: "workflow_execution_frames";
|
|
3328
3328
|
dataType: "string";
|
|
3329
3329
|
columnType: "SQLiteText";
|
|
3330
|
-
data: "
|
|
3330
|
+
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
3331
3331
|
driverParam: string;
|
|
3332
3332
|
notNull: true;
|
|
3333
3333
|
hasDefault: false;
|
|
@@ -3340,7 +3340,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3340
3340
|
generated: undefined;
|
|
3341
3341
|
}, {}, {
|
|
3342
3342
|
length: number | undefined;
|
|
3343
|
-
$type: "
|
|
3343
|
+
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
3344
3344
|
}>;
|
|
3345
3345
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3346
3346
|
name: string;
|
|
@@ -4795,7 +4795,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4795
4795
|
tableName: "workflow_run_contexts";
|
|
4796
4796
|
dataType: "string";
|
|
4797
4797
|
columnType: "SQLiteText";
|
|
4798
|
-
data: "
|
|
4798
|
+
data: "authority" | "worker" | undefined;
|
|
4799
4799
|
driverParam: string;
|
|
4800
4800
|
notNull: false;
|
|
4801
4801
|
hasDefault: false;
|
|
@@ -4808,7 +4808,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4808
4808
|
generated: undefined;
|
|
4809
4809
|
}, {}, {
|
|
4810
4810
|
length: number | undefined;
|
|
4811
|
-
$type: "
|
|
4811
|
+
$type: "authority" | "worker" | undefined;
|
|
4812
4812
|
}>;
|
|
4813
4813
|
materializationSpec: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4814
4814
|
name: string;
|
|
@@ -4918,7 +4918,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4918
4918
|
tableName: "worklog_summaries";
|
|
4919
4919
|
dataType: "string";
|
|
4920
4920
|
columnType: "SQLiteText";
|
|
4921
|
-
data: "pending" | "completed" | "cancelled" | "failed" | "
|
|
4921
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
|
|
4922
4922
|
driverParam: string;
|
|
4923
4923
|
notNull: true;
|
|
4924
4924
|
hasDefault: false;
|
|
@@ -5141,7 +5141,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5141
5141
|
tableName: "worklog_frame_entries";
|
|
5142
5142
|
dataType: "string";
|
|
5143
5143
|
columnType: "SQLiteText";
|
|
5144
|
-
data: "
|
|
5144
|
+
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
5145
5145
|
driverParam: string;
|
|
5146
5146
|
notNull: true;
|
|
5147
5147
|
hasDefault: false;
|
|
@@ -5154,7 +5154,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5154
5154
|
generated: undefined;
|
|
5155
5155
|
}, {}, {
|
|
5156
5156
|
length: number | undefined;
|
|
5157
|
-
$type: "
|
|
5157
|
+
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
5158
5158
|
}>;
|
|
5159
5159
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5160
5160
|
name: string;
|
|
@@ -6459,8 +6459,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6459
6459
|
completed: "completed";
|
|
6460
6460
|
cancelled: "cancelled";
|
|
6461
6461
|
failed: "failed";
|
|
6462
|
-
paused: "paused";
|
|
6463
6462
|
running: "running";
|
|
6463
|
+
paused: "paused";
|
|
6464
6464
|
finalizing: "finalizing";
|
|
6465
6465
|
}>;
|
|
6466
6466
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -6501,8 +6501,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6501
6501
|
completed: "completed";
|
|
6502
6502
|
cancelled: "cancelled";
|
|
6503
6503
|
failed: "failed";
|
|
6504
|
-
paused: "paused";
|
|
6505
6504
|
running: "running";
|
|
6505
|
+
paused: "paused";
|
|
6506
6506
|
finalizing: "finalizing";
|
|
6507
6507
|
}>;
|
|
6508
6508
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -6550,8 +6550,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6550
6550
|
completed: "completed";
|
|
6551
6551
|
cancelled: "cancelled";
|
|
6552
6552
|
failed: "failed";
|
|
6553
|
-
paused: "paused";
|
|
6554
6553
|
running: "running";
|
|
6554
|
+
paused: "paused";
|
|
6555
6555
|
finalizing: "finalizing";
|
|
6556
6556
|
}>;
|
|
6557
6557
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -6736,8 +6736,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6736
6736
|
"exit-and-resume": "exit-and-resume";
|
|
6737
6737
|
}>>;
|
|
6738
6738
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
6739
|
-
worker: "worker";
|
|
6740
6739
|
authority: "authority";
|
|
6740
|
+
worker: "worker";
|
|
6741
6741
|
}>>;
|
|
6742
6742
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6743
6743
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -6805,10 +6805,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6805
6805
|
frameId: z.ZodString;
|
|
6806
6806
|
nodeId: z.ZodString;
|
|
6807
6807
|
nodeType: z.ZodEnum<{
|
|
6808
|
-
sequence: "sequence";
|
|
6809
6808
|
station: "station";
|
|
6810
6809
|
"delegate-agent": "delegate-agent";
|
|
6811
6810
|
"delegate-role": "delegate-role";
|
|
6811
|
+
sequence: "sequence";
|
|
6812
6812
|
parallel: "parallel";
|
|
6813
6813
|
gate: "gate";
|
|
6814
6814
|
iterate: "iterate";
|
|
@@ -6850,10 +6850,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6850
6850
|
frameId: z.ZodString;
|
|
6851
6851
|
nodeId: z.ZodString;
|
|
6852
6852
|
nodeType: z.ZodEnum<{
|
|
6853
|
-
sequence: "sequence";
|
|
6854
6853
|
station: "station";
|
|
6855
6854
|
"delegate-agent": "delegate-agent";
|
|
6856
6855
|
"delegate-role": "delegate-role";
|
|
6856
|
+
sequence: "sequence";
|
|
6857
6857
|
parallel: "parallel";
|
|
6858
6858
|
gate: "gate";
|
|
6859
6859
|
iterate: "iterate";
|
|
@@ -6890,8 +6890,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6890
6890
|
completed: "completed";
|
|
6891
6891
|
cancelled: "cancelled";
|
|
6892
6892
|
failed: "failed";
|
|
6893
|
-
paused: "paused";
|
|
6894
6893
|
running: "running";
|
|
6894
|
+
paused: "paused";
|
|
6895
6895
|
finalizing: "finalizing";
|
|
6896
6896
|
}>>;
|
|
6897
6897
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7087,8 +7087,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7087
7087
|
completed: "completed";
|
|
7088
7088
|
cancelled: "cancelled";
|
|
7089
7089
|
failed: "failed";
|
|
7090
|
-
paused: "paused";
|
|
7091
7090
|
running: "running";
|
|
7091
|
+
paused: "paused";
|
|
7092
7092
|
finalizing: "finalizing";
|
|
7093
7093
|
}>>;
|
|
7094
7094
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -7111,8 +7111,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7111
7111
|
completed: "completed";
|
|
7112
7112
|
cancelled: "cancelled";
|
|
7113
7113
|
failed: "failed";
|
|
7114
|
-
paused: "paused";
|
|
7115
7114
|
running: "running";
|
|
7115
|
+
paused: "paused";
|
|
7116
7116
|
finalizing: "finalizing";
|
|
7117
7117
|
}>;
|
|
7118
7118
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -7164,8 +7164,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7164
7164
|
completed: "completed";
|
|
7165
7165
|
cancelled: "cancelled";
|
|
7166
7166
|
failed: "failed";
|
|
7167
|
-
paused: "paused";
|
|
7168
7167
|
running: "running";
|
|
7168
|
+
paused: "paused";
|
|
7169
7169
|
finalizing: "finalizing";
|
|
7170
7170
|
}>;
|
|
7171
7171
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -7208,10 +7208,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7208
7208
|
frameId: z.ZodString;
|
|
7209
7209
|
nodeId: z.ZodString;
|
|
7210
7210
|
nodeType: z.ZodEnum<{
|
|
7211
|
-
sequence: "sequence";
|
|
7212
7211
|
station: "station";
|
|
7213
7212
|
"delegate-agent": "delegate-agent";
|
|
7214
7213
|
"delegate-role": "delegate-role";
|
|
7214
|
+
sequence: "sequence";
|
|
7215
7215
|
parallel: "parallel";
|
|
7216
7216
|
gate: "gate";
|
|
7217
7217
|
iterate: "iterate";
|
|
@@ -7254,10 +7254,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7254
7254
|
frameId: z.ZodString;
|
|
7255
7255
|
nodeId: z.ZodString;
|
|
7256
7256
|
nodeType: z.ZodEnum<{
|
|
7257
|
-
sequence: "sequence";
|
|
7258
7257
|
station: "station";
|
|
7259
7258
|
"delegate-agent": "delegate-agent";
|
|
7260
7259
|
"delegate-role": "delegate-role";
|
|
7260
|
+
sequence: "sequence";
|
|
7261
7261
|
parallel: "parallel";
|
|
7262
7262
|
gate: "gate";
|
|
7263
7263
|
iterate: "iterate";
|
|
@@ -7297,10 +7297,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7297
7297
|
frameId: z.ZodString;
|
|
7298
7298
|
nodeId: z.ZodString;
|
|
7299
7299
|
nodeType: z.ZodEnum<{
|
|
7300
|
-
sequence: "sequence";
|
|
7301
7300
|
station: "station";
|
|
7302
7301
|
"delegate-agent": "delegate-agent";
|
|
7303
7302
|
"delegate-role": "delegate-role";
|
|
7303
|
+
sequence: "sequence";
|
|
7304
7304
|
parallel: "parallel";
|
|
7305
7305
|
gate: "gate";
|
|
7306
7306
|
iterate: "iterate";
|
|
@@ -7831,8 +7831,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7831
7831
|
"exit-and-resume": "exit-and-resume";
|
|
7832
7832
|
}>>;
|
|
7833
7833
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
7834
|
-
worker: "worker";
|
|
7835
7834
|
authority: "authority";
|
|
7835
|
+
worker: "worker";
|
|
7836
7836
|
}>>;
|
|
7837
7837
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7838
7838
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -8018,8 +8018,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
8018
8018
|
"exit-and-resume": "exit-and-resume";
|
|
8019
8019
|
}>>;
|
|
8020
8020
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
8021
|
-
worker: "worker";
|
|
8022
8021
|
authority: "authority";
|
|
8022
|
+
worker: "worker";
|
|
8023
8023
|
}>>;
|
|
8024
8024
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8025
8025
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -8379,7 +8379,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
8379
8379
|
/** 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. */
|
|
8380
8380
|
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. */
|
|
8381
8381
|
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. */
|
|
8382
|
-
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "
|
|
8382
|
+
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" | "loop">, _$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" | "loop">>;
|
|
8383
8383
|
/**
|
|
8384
8384
|
* Ordered path of frame IDs from the root frame to this frame (inclusive).
|
|
8385
8385
|
* Stored as a JSON array for tree correlation.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DTipWd-i.mjs";import{C as t,S as n,a as r,b as i,c as a,d as o,i as s,l as c,n as l,r as ee,t as u,y as d}from"./schemas-NKlV5jqJ.mjs";import{a as f,f as te,l as ne,m as re,s as p,t as m}from"./kind-registration-BanX_UAF.mjs";import{t as ie}from"./zod-json-schema-DGWHUOK0.mjs";import{t as ae}from"./ajv-Dz-0DD7m.mjs";import{t as oe}from"./2020-DvDj4r_K.mjs";import{t as se}from"./dist-DMIaE8sg.mjs";import{z as h}from"zod";import{createBusNamespace as ce}from"@makaio/framework/core";const g=h.strictObject({evidence:n}),_=h.strictObject({kind:h.literal(`text`),text:h.string()}),[le,ue,de]=n.options,v=h.union([le.pick({source:!0,location:!0}).extend({content:_}),ue.pick({source:!0,location:!0}).extend({content:_}),de.pick({source:!0,location:!0}).extend({content:_})]);function y(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function b(e){return e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`)}function x(e,t){if(t===`#`)return{node:e,pointer:``};if(!t.startsWith(`#/`))return;let n;try{n=decodeURIComponent(t.slice(1))}catch{return}let r=e;for(let e of n.slice(1).split(`/`)){let t=e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`);if(Array.isArray(r)){if(!/^(0|[1-9]\d*)$/.test(t)||Number(t)>=r.length)return;r=r[Number(t)]}else{let e=y(r);if(!e||!Object.hasOwn(e,t))return;r=e[t]}}let i=typeof r==`boolean`?r:y(r);return i===void 0?void 0:{node:i,pointer:n}}function S(e,t){if(t===``)return!1;let n=e;for(let e of t.slice(1).split(`/`)){let t=e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`);if(n=Array.isArray(n)?n[Number(t)]:y(n)?.[t],typeof y(n)?.$id==`string`)return!0}return!1}function fe(e,t,r){if(e[`x-makaio-value-type`]!==`evidence/v1`)return;let i=n.safeParse(t);if(!i.success)throw Error(`Invalid schema-declared evidence at ${r}`);return{evidence:i.data,dataPath:r}}function pe(e,t,n,r){if(typeof t.$ref!=`string`)return!1;if(r)return!0;let i=x(e,t.$ref);return i===void 0?!0:typeof i.node!=`boolean`&&C(e,i.node,n,S(e,i.pointer))}function C(e,t,n=new WeakSet,r=!1){let i=y(t);if(!i||n.has(i))return!1;n.add(i);let a=r||i!==e&&typeof i.$id==`string`;if(i[`x-makaio-value-type`]===`evidence/v1`||typeof i.$dynamicRef==`string`||pe(e,i,n,a)||[`additionalItems`,`additionalProperties`,`contains`,`else`,`if`,`items`,`then`,`unevaluatedItems`,`unevaluatedProperties`].some(t=>C(e,i[t],n,a))||[`allOf`,`anyOf`,`oneOf`,`prefixItems`].some(t=>Array.isArray(i[t])&&i[t].some(t=>C(e,t,n,a)))||Array.isArray(i.items)&&i.items.some(t=>C(e,t,n,a)))return!0;for(let t of[`dependentSchemas`,`dependencies`,`patternProperties`,`properties`]){let r=y(i[t]);if(r&&Object.values(r).some(t=>C(e,t,n,a)))return!0}return!1}var me=class{dataSchema;matchesSchema;occurrences=new Map;visited=new WeakMap;constructor(e,t){this.dataSchema=e,this.matchesSchema=t}extract(e){return this.visit(this.dataSchema,e,`/data`),[...this.occurrences.values()]}visit(e,t,n,r=``){let i=this.visited.get(e)??new Set;if(i.has(n))return;if(i.add(n),this.visited.set(e,i),typeof e.$dynamicRef==`string`)throw Error(`Evidence discovery does not support active $dynamicRef at ${n}`);if(typeof e.$ref==`string`){if(S(this.dataSchema,r))throw Error(`Evidence discovery does not support local $ref inside nested $id resource at ${n}`);let i=x(this.dataSchema,e.$ref);if(i===void 0)throw Error(`Cannot resolve local schema reference ${e.$ref} at ${n}`);if(typeof i.node!=`boolean`&&this.visit(i.node,t,n,i.pointer),this.dataSchema.$schema!==`https://json-schema.org/draft/2020-12/schema`)return}let a=fe(e,t,n);if(a){this.occurrences.set(n,a);return}this.visitCombiners(e,t,n,r),this.visitConditional(e,t,n,r),this.visitDependencies(e,t,n,r),this.assertSupportedApplicators(e,n,r),Array.isArray(t)?this.visitArray(e,t,n,r):typeof t==`object`&&t&&this.visitObject(e,t,n,r)}visitCombiners(e,t,n,r){for(let i of[`allOf`,`anyOf`,`oneOf`]){let a=e[i];if(Array.isArray(a))for(let[e,o]of a.entries()){let a=y(o),s=`${r}/${i}/${e}`;a&&(i===`allOf`||this.matchesSchema(this.dataSchema,s,t))&&this.visit(a,t,n,s)}}}visitConditional(e,t,n,r){let i=typeof e.if==`boolean`?e.if:y(e.if);if(i===void 0)return;let a=`${r}/if`,o=this.matchesSchema(this.dataSchema,a,t);o&&typeof i!=`boolean`&&this.visit(i,t,n,a);let s=o?`then`:`else`,c=y(e[s]);c&&this.visit(c,t,n,`${r}/${s}`)}visitDependencies(e,t,n,r){if(!(typeof t!=`object`||!t||Array.isArray(t)))for(let i of[`dependentSchemas`,`dependencies`]){let a=y(e[i]);if(a)for(let[e,o]of Object.entries(a)){let a=y(o);Object.hasOwn(t,e)&&a&&this.visit(a,t,n,`${r}/${i}/${b(e)}`)}}}assertSupportedApplicators(e,t,n){for(let r of[`unevaluatedProperties`,`unevaluatedItems`])if(C(this.dataSchema,e[r],void 0,S(this.dataSchema,n)))throw Error(`Evidence under unsupported ${r} applicator at ${t}`)}visitArray(e,t,n,r){let i=Array.isArray(e.prefixItems),a=i?e.prefixItems:Array.isArray(e.items)?e.items:[];a.forEach((e,a)=>{let o=y(e),s=i?`prefixItems`:`items`;o&&a<t.length&&this.visit(o,t[a],`${n}/${a}`,`${r}/${s}/${a}`)});let o=Array.isArray(e.items)?y(e.additionalItems):y(e.items);if(o){let i=Array.isArray(e.items)?`additionalItems`:`items`;t.slice(a.length).forEach((e,t)=>this.visit(o,e,`${n}/${a.length+t}`,`${r}/${i}`))}this.visitContains(e,t,n,r)}visitContains(e,t,n,r){let i=y(e.contains);if(!i)return;let a=`${r}/contains`;t.forEach((e,t)=>{this.matchesSchema(this.dataSchema,a,e)&&this.visit(i,e,`${n}/${t}`,a)})}visitObject(e,t,n,r){let i=y(e.properties),a=y(e.patternProperties);for(let[o,s]of Object.entries(t)){let t=b(o),c=i!==void 0&&Object.hasOwn(i,o),l=y(i?.[o]);l&&this.visit(l,s,`${n}/${t}`,`${r}/properties/${t}`);let ee=this.visitPatterns(a,o,s,`${n}/${t}`,r),u=y(e.additionalProperties);!c&&!ee&&u&&this.visit(u,s,`${n}/${t}`,`${r}/additionalProperties`)}}visitPatterns(e,t,n,r,i){let a=!1;for(let[o,s]of Object.entries(e??{})){if(!new RegExp(o,`u`).test(t))continue;a=!0;let e=y(s);e&&this.visit(e,n,r,`${i}/patternProperties/${b(o)}`)}return a}};function he(e,t,n){return new me(e,n.matchesSchema).extract(t)}function ge(e){let{dataSchema:t,hooks:n,...r}=e,i={$schema:`https://json-schema.org/draft/2020-12/schema`,...ie(t)};te(i);let a=f.parse({...r,dataSchema:i});if(a.kind!==e.kind)throw Error(`Artifact kind identifiers must not contain surrounding whitespace`);let o=h.fromJSONSchema(a.dataSchema),s=h.unknown().superRefine((e,t)=>{let n=o.safeParse(e);if(!n.success)for(let e of n.error.issues)t.addIssue({code:`custom`,path:e.path,message:e.message})}).pipe(t).superRefine((e,t)=>{try{re(e,a.titlePath)}catch(e){t.addIssue({code:`custom`,path:a.titlePath.split(`.`),message:e instanceof Error?e.message:`Artifact title must be a nonblank string`})}});return{...structuredClone(a),kind:e.kind,schemaVersion:e.schemaVersion,dataSchema:s,...n?{hooks:n}:{},toRegistration:()=>structuredClone(a)}}var _e=e(ae(),1),ve=e(oe(),1),ye=e(se(),1);function be(e){let t={allErrors:!0,strict:!1,strictSchema:!0},n=e.dataSchema.$schema===`https://json-schema.org/draft/2020-12/schema`?new ve.default(t):new _e.default(t);return(0,ye.default)(n),n.addKeyword({keyword:i,schemaType:`string`,valid:!0}),n.compile(e.dataSchema)}function xe(e){return{hooks:[...e.hooks]}}const Se=[`inline`,`summary`,`link`,`omit`],w=h.string().min(1),T=h.object({kinds:h.array(h.string().min(1)).optional(),hint:w.optional(),depth:h.number().int().min(1).max(20).optional(),nested:h.lazy(()=>E).optional()}),E=h.record(h.string().min(1),T);function D(e){return JSON.stringify([e.kind,e.id,e.revision])}const O=h.enum([`not-selected`,`not-found`,`depth-exceeded`,`unsupported-ref-class`,`cycle-detected`]),k=h.object({target:c,sourceRef:t,relationType:h.string().min(1),hint:w,status:h.enum([`resolved`,`unresolved`]),reason:O.optional()}).superRefine((e,t)=>{e.status===`unresolved`&&e.reason===void 0&&t.addIssue({code:h.ZodIssueCode.custom,path:[`reason`],message:`reason is required for unresolved artifact context refs`}),e.status===`resolved`&&e.reason!==void 0&&t.addIssue({code:h.ZodIssueCode.custom,path:[`reason`],message:`reason must be omitted for resolved artifact context refs`}),e.status===`resolved`&&e.target.refClass!==`artifact`&&t.addIssue({code:h.ZodIssueCode.custom,path:[`target`],message:`resolved artifact context refs must target an artifact revision`})}),A=h.object({rootRef:t,refs:h.array(k),resolved:h.array(o)}).superRefine((e,t)=>{let n=new Set(e.resolved.map(D));n.has(D(e.rootRef))||t.addIssue({code:h.ZodIssueCode.custom,path:[`resolved`],message:`resolved artifact context wire payloads must include the root artifact revision`}),e.refs.forEach((e,r)=>{n.has(D(e.sourceRef))||t.addIssue({code:h.ZodIssueCode.custom,path:[`refs`,r,`sourceRef`],message:`artifact context ref sources must have a matching revision in resolved`}),!(e.status!==`resolved`||e.target.refClass!==`artifact`)&&(n.has(D(e.target))||t.addIssue({code:h.ZodIssueCode.custom,path:[`refs`,r,`target`],message:`resolved artifact context refs must have a matching revision in resolved`}))})});function Ce(e){let t=A.parse(e),n=new Map(t.resolved.map(e=>[N(e),e])),r=new Map;for(let e of t.refs){let t=N(e.sourceRef),n=r.get(t);n||(n=[],r.set(t,n)),n.push(e)}let i=n.get(N(t.rootRef));if(!i)throw Error(`Resolved artifact context is missing root artifact '${N(t.rootRef)}'`);let a=we(t.rootRef,i,`inline`,r,n);return{root:a,flatten(){let e=[];return M(a,e),e}}}function we(e,t,n,r,i){return{status:`resolved`,ref:e,artifact:t,hint:n,children:j(e,r,i,new Set([N(e)]))}}function Te(e,t,n,r,i,a,o){let s=N(e),c=new Set(o);return c.add(s),{status:`resolved`,ref:e,artifact:t,relation:n,hint:r,children:j(e,i,a,c)}}function j(e,t,n,r){return(t.get(N(e))??[]).map(e=>{if(e.status===`unresolved`)return{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:e.reason};if(e.target.refClass!==`artifact`)throw Error(`Resolved artifact context refs must target an artifact revision`);let i=N(e.target),a=n.get(i);if(!a)throw Error(`Resolved artifact context is missing target artifact '${i}'`);return r.has(i)?{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:`cycle-detected`}:Te(e.target,a,e.relationType,e.hint,t,n,r)})}function M(e,t){if(e.status!==`unresolved`){t.push(e.artifact);for(let n of e.children)M(n,t)}}function N(e){return JSON.stringify([e.kind,e.id,e.revision])}const P=t.pick({kind:!0,id:!0}),F=h.number().int().positive(),I=F,L={knowledge:`valid`,commitment:`proposed`,interaction:`open`},R=h.discriminatedUnion(`category`,[h.strictObject({category:h.literal(`knowledge`),state:h.enum(m.knowledge),version:I}),h.strictObject({category:h.literal(`commitment`),state:h.enum(m.commitment),version:I}),h.strictObject({category:h.literal(`interaction`),state:h.enum(m.interaction),version:I})]).superRefine((e,t)=>{e.version===1&&e.state!==L[e.category]&&t.addIssue({code:`custom`,path:[`state`],message:`Lifecycle version 1 is reserved for the category initial state`})}),z=h.union([R,h.strictObject({category:h.literal(`record`)})]),B=h.string().trim().min(1),V=h.strictObject({kind:B,ref:B}),H=h.discriminatedUnion(`kind`,[h.strictObject({kind:h.literal(`revision-assessment`),assessedRevision:t.shape.revision,source:V.optional()}),h.strictObject({kind:h.literal(`handover`),source:V})]),U={artifact:P,expectedVersion:I,state:p,situation:H,reason:B.optional()},W=h.strictObject(U),G=h.strictObject({...U,actor:u}),Ee={valid:[`retired`],retired:[],proposed:[`decided`],decided:[`fulfilled`,`revoked`],fulfilled:[],revoked:[],open:[`resolved`,`closed-without-resolution`],resolved:[],"closed-without-resolution":[]};function K(e,t){return Ee[e].includes(t)}const De={artifact:P,lifecycle:R,actor:u,timestamp:h.number().int().nonnegative(),observedRevision:t.shape.revision},Oe=h.strictObject({...De,operation:h.literal(`initialized`)}).superRefine((e,t)=>{(e.lifecycle.version!==1||e.lifecycle.state!==L[e.lifecycle.category])&&t.addIssue({code:`custom`,path:[`lifecycle`],message:`Initialization requires the category initial state and version 1`})}),q=h.strictObject({...De,operation:h.literal(`transitioned`),previousState:p,situation:H,reason:W.shape.reason}).superRefine((e,t)=>{(!K(e.previousState,e.lifecycle.state)||e.lifecycle.version<=1)&&t.addIssue({code:`custom`,path:[`lifecycle`],message:`History requires a category-compatible transition after initialization`}),e.lifecycle.state===`retired`&&!e.reason&&t.addIssue({code:`custom`,path:[`reason`],message:`Retiring knowledge requires a reason`}),e.situation.kind===`revision-assessment`&&e.situation.assessedRevision!==e.observedRevision&&t.addIssue({code:`custom`,path:[`situation`],message:`An assessment cannot authorize a different observed content revision`})}),ke=h.discriminatedUnion(`operation`,[Oe,q]),J=h.discriminatedUnion(`reason`,[h.strictObject({reason:h.literal(`lifecycle-version-conflict`),expectedVersion:I,current:R,requestedState:p}),h.strictObject({reason:h.literal(`content-basis-conflict`),assessedRevision:t.shape.revision,currentRevision:t.shape.revision}),h.strictObject({reason:h.literal(`invalid-transition`),current:z,requestedState:p}),h.strictObject({reason:h.literal(`precondition-failed`),current:R,requestedState:p})]),Y=`artifact-lifecycle-rejected`;var X=class extends Error{code=Y;data;constructor(e,t){super(e),this.name=`ArtifactLifecycleError`,this.data=J.parse(t)}};function Ae(e){return e===`record`?{category:`record`}:R.parse({category:e,state:L[e],version:1})}function je(e){let n=z.parse(e.current),r=t.shape.revision.parse(e.currentRevision),i=G.parse(e.command);if(n.category===`record`)throw new X(`Record artifacts do not have a lifecycle`,{reason:`invalid-transition`,current:n,requestedState:i.state});if(i.expectedVersion!==n.version)throw new X(`Artifact lifecycle changed since the supplied baseline`,{reason:`lifecycle-version-conflict`,expectedVersion:i.expectedVersion,current:n,requestedState:i.state});if(i.situation.kind===`revision-assessment`&&i.situation.assessedRevision!==r)throw new X(`Assessed content revision is no longer current`,{reason:`content-basis-conflict`,assessedRevision:i.situation.assessedRevision,currentRevision:r});if(!K(n.state,i.state))throw new X(`Artifact lifecycle transition is not allowed`,{reason:`invalid-transition`,current:n,requestedState:i.state});if(i.state===`retired`&&!i.reason)throw new X(`Retiring knowledge requires a reason`,{reason:`precondition-failed`,current:n,requestedState:i.state});return R.parse({...n,state:i.state,version:n.version+1})}const Me=h.strictObject({artifact:P}),Z=h.strictObject({lifecycle:z}),Ne=h.strictObject({artifact:P,afterVersion:F.optional(),limit:h.number().int().min(1).max(100).default(50)}),Pe=h.strictObject({entries:h.array(ke).max(100),nextCursor:F.optional()}).superRefine(({entries:e,nextCursor:t},n)=>{let r=e[0],i;for(let[t,a]of e.entries()){let e=a.artifact.kind===r?.artifact.kind&&a.artifact.id===r?.artifact.id,o=i===void 0||a.lifecycle.version===i.lifecycle.version+1,s=i===void 0||a.operation===`transitioned`&&a.lifecycle.category===i.lifecycle.category&&a.previousState===i.lifecycle.state;if(!e||!o||!s){n.addIssue({code:`custom`,path:[`entries`,t],message:`History pages contain one artifact in contiguous ascending, state-linked order`});break}i=a}t!==void 0&&t!==i?.lifecycle.version&&n.addIssue({code:`custom`,path:[`nextCursor`],message:`nextCursor must equal the last returned lifecycle version`})}),Q=h.strictObject({entry:q}),Fe=Q,Ie=h.strictObject({code:h.literal(Y),message:h.string().min(1),data:J});function Le(e){return{code:e.code,message:e.message,data:e.data}}function Re(e,t){switch(t.reason){case`content-basis-conflict`:return Ve(e,t);case`lifecycle-version-conflict`:return[...ze(e,t),...Be(e,t)];case`invalid-transition`:case`precondition-failed`:return[...ze(e,t),...He(e,t)]}}function ze(e,t){return t.requestedState===e.state?[]:[{path:[`requestedState`],message:`Rejection requestedState must match the rejected transition`}]}function Be(e,t){let n=[];return t.expectedVersion!==e.expectedVersion&&n.push({path:[`expectedVersion`],message:`Version conflict baseline must match the rejected transition`}),t.current.version===e.expectedVersion&&n.push({path:[`current`,`version`],message:`Version conflict requires a current version different from the supplied baseline`}),n}function Ve(e,t){let n=[];return(e.situation.kind!==`revision-assessment`||t.assessedRevision!==e.situation.assessedRevision)&&n.push({path:[`assessedRevision`],message:`Content conflict must identify the rejected revision assessment`}),t.currentRevision===t.assessedRevision&&n.push({path:[`currentRevision`],message:`Content conflict requires a current revision different from the assessed revision`}),n}function He(e,t){if(t.current.category===`record`)return[];let n=[];t.current.version!==e.expectedVersion&&n.push({path:[`current`,`version`],message:`A rejection after the version check must report the supplied baseline version`});let r=K(t.current.state,t.requestedState);return t.reason===`invalid-transition`&&r&&n.push({path:[`reason`],message:`invalid-transition requires a transition the lifecycle matrix disallows`}),t.reason===`precondition-failed`&&!r&&n.push({path:[`reason`],message:`precondition-failed requires a transition the lifecycle matrix allows`}),n}const Ue=h.strictObject({transition:W,error:Ie}).superRefine(({transition:e,error:t},n)=>{for(let r of Re(e,t.data))n.addIssue({code:`custom`,path:[`error`,`data`,...r.path],message:r.message})}),We={"lifecycle.get":{request:Me,response:Z},"lifecycle.history":{request:Ne,response:Pe},"lifecycle.transition":{request:W,response:Q},"lifecycle.committed":Fe,"lifecycle.rejected":Ue},Ge={...We,"kind.register":{request:f,response:h.object({registered:h.boolean()})},"kind.list":{request:h.object({kind:h.string().min(1).optional()}),response:h.object({kinds:h.array(f)})},"relation-type.register":{request:d,response:h.object({registered:h.boolean()})},"relation-type.list":{request:h.object({type:h.string().min(1).optional()}),response:h.object({relationTypes:h.array(d)})},create:{request:o.omit({id:!0,revision:!0,timestamp:!0}).extend({id:t.shape.id.optional()}),response:h.object({artifact:o})},revise:{request:h.object({previous:t,statusPath:h.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`).optional(),revision:o.omit({id:!0,revision:!0,timestamp:!0})}),response:h.object({artifact:o})},resolve:{request:h.object({ref:t}),response:h.object({artifact:o.nullable()})},query:{request:r,response:h.object({artifacts:h.array(o)})},compare:{request:l,response:ee},"evidence.resolve":{request:g,response:v},resolveContext:{request:h.object({ref:t,selectors:E.optional(),maxDepth:h.number().int().min(1).max(20).default(5)}),response:h.object({context:A})},created:h.object({artifact:o}),revised:h.object({previous:t,artifact:o}),"relation.added":h.object({artifact:t,relation:a}),"observation.added":h.object({artifact:t,observation:s}),"status.changed":h.object({artifact:t,path:h.string().min(1),previous:h.unknown().optional(),current:h.unknown().optional()}),"kind.changed":h.object({kind:h.string().min(1),schemaVersion:ne})},$=ce(`artifact`,Ge),Ke=$.subjects;export{Ce as A,ge as B,G as C,je as D,F as E,T as F,g as H,w as I,E as L,O as M,A as N,Ae as O,Se as P,xe as R,R as S,q as T,v as U,he as V,ke as _,Ie as a,J as b,Ne as c,We as d,Q as f,X as g,z as h,Fe as i,k as j,K as k,Pe as l,Y as m,Ge as n,Me as o,Le as p,Ke as r,Z as s,$ as t,Ue as u,P as v,W as w,H as x,Oe as y,be as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./json-value-DM-EjTC1.mjs";import{z as t}from"zod";function n(e){return r(e)?e:void 0}function r(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function i(e,t){return Object.keys(t).length===0?e:e?t:!1}function a(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let r=e;for(let e of t.slice(2).split(`/`)){let t=n(r),i=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,i))return;r=t[i]}return r}function o(e,t){let r=t.$ref;if(typeof r!=`string`)return;let o=a(e,r);if(typeof o==`boolean`){if(e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return o;let{$ref:n,...r}=t;return i(o,r)}let s=n(o);if(!s||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return s;let{$ref:c,...l}=t;return Object.keys(l).length===0?s:{...s,allOf:[l,...Array.isArray(s.allOf)?s.allOf:[]]}}function s(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function c(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function l(e,t){let r=n(e.properties);if(!r||!Object.hasOwn(r,t))return;let i=r[t];return typeof i==`boolean`?i:n(i)}function u(e,t,i){if(typeof t.$ref==`string`){if(i.has(t.$ref))return;let n=o(e,t);return r(n)?u(e,n,new Set([...i,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:a,...l}=t,d={},f={},p=new Set;for(let t of[l,...a]){let r=n(t),a=r?u(e,r,i):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(d.type!==void 0&&d.type!==a.type)return;d.type=a.type}s(f,n(a.properties)??{});for(let e of c(a))p.add(e)}return{...d,properties:f,required:[...p]}}function d(e,t,n,r,i,a,s){if(a.has(n))return;let c=o(e,t);return typeof c==`boolean`?r.length===0?[c]:void 0:c?f(e,c,r,i,new Set([...a,n]),s):void 0}function f(e,t,r,i,a=new Set,o=!1){if(typeof t.$ref==`string`)return d(e,t,t.$ref,r,i,a,o);let s=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,p=t[s];if(Array.isArray(p)){let{[s]:c,...l}=t,u=p.map(t=>{let s=n(t);if(s)return f(e,typeof s.$ref==`string`?{allOf:[l,s]}:{...s,allOf:[l,...Array.isArray(s.allOf)?s.allOf:[]]},r,i,a,o)});return u.every(e=>e!==void 0)?u.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let n=u(e,t,a);return n?f(e,n,r,i,a,o):void 0}if(r.length===0)return[t];if(t.type!==`object`&&!(t.type===void 0&&o))return;let[m,...h]=r;if(!m||i&&!c(t).includes(m))return;let g=l(t,m);return typeof g==`boolean`?h.length===0?[g]:void 0:g?f(e,g,h,i):void 0}function p(e,t){return f(e,e,t.split(`.`),!1,new Set,!0)}function m(e,t){return p(e,t)!==void 0}function h(e){let t=[],r=(e,r)=>{let i=n(e);i&&t.push({node:i,path:r})};for(let t of[`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`])for(let[i,a]of Object.entries(n(e[t])??{}))r(a,[t,i]);for(let t of[`allOf`,`anyOf`,`oneOf`,`prefixItems`,`items`]){let n=e[t];Array.isArray(n)&&n.forEach((e,n)=>r(e,[t,n]))}for(let t of[`items`,`additionalItems`,`additionalProperties`,`unevaluatedItems`,`unevaluatedProperties`,`propertyNames`,`contains`,`not`,`if`,`then`,`else`,`contentSchema`])r(e[t],[t]);return t}function g(e,t=[`dataSchema`]){if(Array.isArray(e.prefixItems)||Array.isArray(e.items))throw Error(`Unsupported tuple serialization at ${t.join(`.`)}: use an array schema or an explicit JSON Schema registration`);for(let n of h(e))g(n.node,[...t,...n.path])}function _(e,t,n=new Set){if(t.additionalProperties===!1)return!0;if(typeof t.$ref==`string`&&!n.has(t.$ref)){let i=o(e,t);if(i===void 0||r(i)&&_(e,i,new Set([...n,t.$ref])))return!0}return h(t).some(t=>_(e,t.node,n))}function v(e,t,r,i){if(Object.hasOwn(t,`$ref`)&&typeof t.$ref!=`string`&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Schema reference must be a string`}),typeof t.$ref==`string`&&!t.$ref.startsWith(`#`)&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Only fragment schema references are supported; absolute and document-relative references are outside the artifact registration profile`}),Object.hasOwn(t,`$anchor`)&&r.addIssue({code:`custom`,path:[...i,`$anchor`],message:`Named schema anchors are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&t.$ref.startsWith(`#`)&&t.$ref.length>1&&!t.$ref.startsWith(`#/`)&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Named schema references are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&(t.$ref===`#`||t.$ref.startsWith(`#/`))){let o=a(e,t.$ref);!n(o)&&typeof o!=`boolean`&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Fragment schema reference must resolve to an existing object or boolean schema`})}}function y(e,t,n,r=[`dataSchema`]){Object.hasOwn(t,`$async`)&&t.$async!==!1&&n.addIssue({code:`custom`,path:[...r,`$async`],message:`Asynchronous artifact schemas are not supported`}),v(e,t,n,r);for(let e of[`anyOf`,`oneOf`]){let i=t[e];Array.isArray(i)&&i.some(e=>typeof e==`boolean`)&&n.addIssue({code:`custom`,path:[...r,e],message:`Unsupported boolean union alternative: use object schema declarations`})}Array.isArray(t.allOf)&&(_(e,t)||!u(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of h(t))y(e,i.node,n,[...r,...i.path])}function b(e,t){y(e.dataSchema,e.dataSchema,t);let n=f(e.dataSchema,e.dataSchema,e.titlePath.split(`.`),!0,new Set,!0);(!n?.length||n.some(e=>!r(e)||e.type!==`string`))&&t.addIssue({code:`custom`,path:[`titlePath`],message:`titlePath must select a required string in every data schema variant`});let i=[...(e.indexedFields??[]).map((e,t)=>({path:e,location:[`indexedFields`,t]})),...(e.searchableFields??[]).map((e,t)=>({path:e,location:[`searchableFields`,t]})),...(e.uniqueness??[]).flatMap((e,t)=>e.by.flatMap((e,n)=>e.kind===`data`?[{path:e.path,location:[`uniqueness`,t,`by`,n,`path`]}]:[])),...Object.entries(e.views??{}).flatMap(([e,t])=>t.fields.map((t,n)=>({path:t,location:[`views`,e,`fields`,n]})))];for(let{path:n,location:r}of i)m(e.dataSchema,n)||t.addIssue({code:`custom`,path:r,message:`Data path ${n} must select a declared field`})}function x(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const S=t.number().int().positive(),C=t.enum([`knowledge`,`commitment`,`interaction`,`record`]),w=t.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),T=t.strictObject({fields:t.array(w).min(1)}),E=new Set([`full`]),D={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},O=t.enum([...D.knowledge,...D.commitment,...D.interaction]),k=t.strictObject({relationType:t.string().trim().min(1),targetKinds:t.array(t.string().trim().min(1)).min(1).optional(),minItems:t.number().int().nonnegative(),maxItems:t.number().int().nonnegative().optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),A=t.discriminatedUnion(`kind`,[t.strictObject({kind:t.literal(`data`),path:w}),t.strictObject({kind:t.literal(`relation-target`),relationType:t.string().trim().min(1)})]),j=t.strictObject({by:t.array(A).min(1),lifecycleStates:t.array(O).min(1).optional()}),M=t.strictObject({minItems:t.number().int().nonnegative()}),N=t.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),P=t.strictObject({kind:t.string().trim().min(1),description:t.string().trim().min(1),schemaVersion:S,category:C,dataSchema:e,titlePath:w,relations:t.array(k).optional(),uniqueness:t.array(j).optional(),evidenceRequirements:M.optional(),indexedFields:t.array(w).optional(),searchableFields:t.array(w).optional(),views:t.record(t.string().trim().min(1),T).optional()}).superRefine((e,t)=>{N.safeParse(e.dataSchema.$schema).success||t.addIssue({code:`custom`,path:[`dataSchema`,`$schema`],message:`Unsupported data schema dialect: omit $schema for draft-7 or declare the supported draft-7 or 2020-12 URI`});let n=D[e.category];e.uniqueness?.forEach((r,i)=>{r.lifecycleStates?.some(e=>!n.includes(e))&&t.addIssue({code:`custom`,path:[`uniqueness`,i,`lifecycleStates`],message:`Lifecycle conditions are incompatible with category ${e.category}`})}),Object.keys(e.views??{}).forEach(e=>{E.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),b(e,t)});export{P as a,k as c,A as d,g as f,M as i,S as l,x as m,C as n,T as o,m as p,w as r,O as s,D as t,j as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{l as n,r}from"./kind-registration-BanX_UAF.mjs";import{t as i}from"./repo-context-Dy6eE9cg.mjs";import{z as a}from"zod";const o=a.string().min(1).regex(/\S/),s=a.strictObject({refClass:a.literal(`artifact`),kind:o,id:o,revision:o}),c=`x-makaio-value-type`,l=`evidence/v1`,u=a.string().min(1).regex(/\S/),d=a.strictObject({kind:a.literal(`whole-source`)}),f=a.strictObject({kind:a.literal(`lines`),startLine:a.number().int().positive(),lineCount:a.number().int().positive()}),p=a.strictObject({kind:a.literal(`data-path`),path:r}),m=a.strictObject({kind:a.literal(`git-file`),repository:i.strict(),path:u,commit:a.string().regex(/^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$/)}),h=a.strictObject({kind:a.literal(`confluence-page`),site:u,pageId:u,version:a.number().int().positive()}),g=a.strictObject({kind:a.literal(`artifact`),reference:s}),_=a.union([a.strictObject({source:m,location:a.union([d,f]),excerpt:a.string().optional()}),a.strictObject({source:h,location:d,excerpt:a.string().optional()}),a.strictObject({source:g,location:a.union([d,p]),excerpt:a.string().optional()})]).meta({title:`EvidenceValue`,description:`An immutable, directly cited source and its source-specific location.`,[c]:l}),v=a.object({kind:a.string().min(1),id:a.string().min(1),displayName:a.string().optional()}),y=a.object({level:a.string().min(1),ids:a.record(a.string().min(1),a.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:a.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),b=a.object({level:a.string().min(1),ids:a.record(a.string().min(1),a.string().min(1)).optional()}),x=a.object({refClass:a.literal(`local`).default(`local`),artifact:s,localId:a.string().min(1)}),S=a.object({refClass:a.literal(`evidence`).default(`evidence`),kind:a.string().min(1),id:a.string().min(1),revision:a.string().min(1).optional(),locator:a.string().min(1).optional()}),C=a.strictObject({refClass:a.literal(`entity`),entityType:a.string().min(1),id:a.string().min(1)}),w=a.discriminatedUnion(`refClass`,[s,x,S,C]);function T(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e||!(`revision`in e)?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const E=a.preprocess(T,w),D=a.discriminatedUnion(`refClass`,[s.extend({revision:s.shape.revision.optional()}),x,S,C]);function O(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const k=a.preprocess(O,D),A=a.object({type:a.string().min(1),target:E}),j=a.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),M=a.object({kind:a.string().min(1),actor:v,timestamp:a.number().int().nonnegative(),detail:a.string().optional(),evidenceRef:E.optional()}),N=a.object({level:j,basis:a.array(M)}),P=a.object({id:a.string().min(1),kind:a.string().min(1),summary:a.string().min(1),detail:a.string().optional(),severity:a.enum([`info`,`warning`,`blocker`]).optional(),tags:a.array(a.string().min(1)).optional(),regarding:a.union([s,x]).optional(),evidence:a.union([s,S]).optional(),actor:v,timestamp:a.number().int().nonnegative()}),F=a.object({markdown:a.string().optional(),summary:a.string().optional(),plaintext:a.string().optional()}),I=a.object({kind:s.shape.kind,id:s.shape.id,revision:s.shape.revision,scope:y,schemaVersion:n,data:e,relations:a.array(A),evidence:a.array(_).optional(),confidence:N.optional(),representations:F.optional(),actor:v,timestamp:a.number().int().nonnegative(),createdAt:a.number().int().nonnegative().optional()}),L=a.object({type:a.string().min(1),symmetry:a.enum([`asymmetric`,`symmetric`]),implication:a.string().min(1).optional(),sourceKinds:a.array(a.string().min(1)).optional(),targetKinds:a.array(a.string().min(1)).optional(),targetRefClasses:a.array(a.enum([`artifact`,`local`,`evidence`,`entity`])).optional()}),R=a.object({kind:a.string().min(1).optional(),scope:b.optional(),ids:a.array(a.string().min(1)).optional(),currentOnly:a.boolean().optional(),search:a.string().optional(),relation:a.object({type:a.string().min(1).optional(),target:k.optional()}).optional(),confidence:a.object({maxLevel:j.optional(),minLevel:j.optional()}).optional(),indexed:a.record(a.string(),t).optional(),limit:a.number().int().min(1).optional()}),z=a.object({base:s,target:s}),B=a.object({base:I,target:I,changedPaths:a.array(a.string())});export{s as C,_ as S,S as _,R as a,c as b,A as c,I as d,y as f,C as g,N as h,P as i,E as l,j as m,z as n,b as o,M as p,B as r,k as s,v as t,F as u,x as v,l as x,L as y};
|
package/dist/shared-CkCrHz66.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./json-value-DM-EjTC1.mjs";import"./zod-json-schema-DGWHUOK0.mjs";import"./ui-config-Bl2Wbkr-.mjs";import{z as t}from"zod";const n=t.string().max(64).regex(/^[a-zA-Z0-9_-]+$/),r=t.object({schema:e,name:n.optional(),strict:t.boolean().optional()}).strict(),i=t.object({message:t.string(),instancePath:t.string(),schemaPath:t.string()}).strict(),a=t.enum([`passed`,`failed`,`enforced`]),o=t.discriminatedUnion(`status`,[t.object({status:t.literal(`passed`)}).strict(),t.object({status:t.literal(`enforced`)}).strict(),t.object({status:t.literal(`failed`),errors:t.array(i).min(1)}).strict()]),s=t.discriminatedUnion(`type`,[t.object({type:t.literal(`base64`),data:t.string(),mimeType:t.string()}),t.object({type:t.literal(`url`),url:t.string(),mimeType:t.string().optional()})]),c=t.enum([`file`,`directory`]),l=t.discriminatedUnion(`type`,[t.object({type:t.literal(`text`),content:t.string()}),t.object({type:t.literal(`image`),source:s}),t.object({type:t.literal(`document`),source:s}),t.object({type:t.literal(`attachment`),fileName:t.string(),filePath:t.string(),source:s,displayName:t.string().optional(),attachmentType:c}),t.object({type:t.literal(`reasoning`),content:t.string(),metadata:t.record(t.string(),t.unknown()).optional()}),t.object({type:t.literal(`tool_call`),toolCallId:t.string(),name:t.string(),args:t.record(t.string(),t.unknown())}),t.object({type:t.literal(`tool_output`),toolCallId:t.string(),output:t.string(),isError:t.boolean().optional()})]),u=t.enum([`user`,`assistant`,`system`]),d=t.object({role:u.optional(),blocks:t.union([l,t.array(l)])}),f=t.union([t.string(),d]),p=t.object({message:t.string().optional()}),m=t.enum([`completed`,`superseded`,`merged`,`cancelled`,`error`,`rejected`]),h=t.object({messageId:t.string(),result:p.optional(),error:t.string().optional(),outcome:m}),g=t.enum([`enqueue`,`immediate`,`replace`]),_=t.union([t.string(),t.object({mode:t.literal(`append`),content:t.string()})]),v=t.object({role:t.enum([`user`,`assistant`,`system`]),blocks:t.array(l),message:t.string().optional()}),y=[`rate_limit`,`auth`,`model_unavailable`,`quota_exceeded`],b=t.enum(y);export{a as _,g as a,d as c,h as d,_ as f,o as g,i as h,l as i,v as l,n as m,y as n,f as o,r as p,b as r,m as s,s as t,p as u};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|