@makaio/framework 1.0.0-dev-1781892077969 → 1.0.0-dev-1781899284968
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/adapter-Deu9viD2.mjs +1 -0
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +1 -1
- package/dist/adapters/index.mjs +1 -1
- package/dist/bus/index.d.mts +2 -2
- package/dist/bus/index.mjs +1 -1
- package/dist/contracts/adapter/index.d.mts +2 -2
- 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 +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +6 -6
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +85 -65
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/provider/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/{index-Mi_UJoUV.d.mts → index-4eP9DRL_.d.mts} +4 -4
- package/dist/{index-CRo6GMuL.d.mts → index-6k5ktwXY.d.mts} +117 -57
- package/dist/{index-Cx1Bm6WD.d.mts → index-B76e7m2R.d.mts} +4 -4
- package/dist/{index-vs_GRZcb.d.mts → index-BAnDvAk4.d.mts} +1 -1
- package/dist/{index-BIcRB_2G.d.mts → index-BNT7Ys9c.d.mts} +30 -30
- package/dist/{index-BwZpSUql.d.mts → index-Bw_CfRNZ.d.mts} +24 -24
- package/dist/{index-DaAYQxUR.d.mts → index-CF8ldAwM.d.mts} +146 -129
- package/dist/{index-BfhW4IPv.d.mts → index-CHy2TweG.d.mts} +65 -65
- package/dist/{index-Cr0E0prW.d.mts → index-CYu8kZek.d.mts} +5 -5
- package/dist/{index-NkNbYFud.d.mts → index-CaerrEDH.d.mts} +1 -1
- package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
- package/dist/{index-DdcfBTRr.d.mts → index-D2WJ0Zpt.d.mts} +16 -16
- package/dist/{index-UKndP4iV.d.mts → index-DKs0sHne.d.mts} +1 -1
- package/dist/{index-D94cDExW2.d.mts → index-DLNRgZPo2.d.mts} +15 -15
- package/dist/{index-ByDySw3V.d.mts → index-WHUV7neB.d.mts} +10 -10
- package/dist/{index-AZtoQAII.d.mts → index-XeFiBam-.d.mts} +3 -3
- package/dist/{index-Cp-PKRGx.d.mts → index-gKaw_TMU.d.mts} +20 -20
- package/dist/{index-mpYmdMt9.d.mts → index-q8nLr74m.d.mts} +3 -3
- package/dist/{index-BhUpXt09.d.mts → index-xyXYG5WO.d.mts} +8 -8
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{namespace-Cir7d-vM.d.mts → namespace-65uwTpbg.d.mts} +6 -6
- package/dist/{namespace-CFixS9He.d.mts → namespace-Bv8B89uB.d.mts} +9 -9
- package/dist/{namespace-CTsfVI3H.d.mts → namespace-CMN1WR_2.d.mts} +6 -6
- package/dist/{namespace-Dk--7K4i.d.mts → namespace-CfvtDD_U.d.mts} +22 -22
- package/dist/{namespace-6sIu5nBI2.d.mts → namespace-D8P8Sxce2.d.mts} +2 -2
- package/dist/{namespace-CSU_hTqp.d.mts → namespace-Dybz75l5.d.mts} +32 -32
- package/dist/{namespace-DYLOodoG.d.mts → namespace-MuyQDzjD.d.mts} +42 -42
- package/dist/{namespace-CPjRYzv7.d.mts → namespace-j7vFsmYL.d.mts} +4 -4
- package/dist/package.json +1 -1
- package/dist/runtime-bun/index.d.mts +2 -2
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/index.d.mts +2 -2
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/{schema-Byf1_Kt2.d.mts → schema-CzrYmB9E.d.mts} +2 -2
- package/dist/{schemas-BeWXlOS3.d.mts → schemas-CoFCV42v.d.mts} +22 -22
- package/dist/{schemas-DOV4UouN2.d.mts → schemas-CwgS7KoL2.d.mts} +15 -15
- package/dist/{schemas-C_gGGevw.d.mts → schemas-D4zaFE2p.d.mts} +6 -6
- package/dist/schemas-bfhY9W6A.mjs +1 -0
- package/dist/{schemas-Cl-aAxP_.d.mts → schemas-lnE9YoG7.d.mts} +6 -6
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +11 -11
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/index.d.mts +60 -60
- package/dist/services/session/index.d.mts +5 -5
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +15 -15
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/{session-DLTZOum3.mjs → session-CpVSzgkZ.mjs} +1 -1
- package/dist/{session-lineage-Cht4jbvV.d.mts → session-lineage-DR-9DU-U.d.mts} +1 -1
- package/dist/{transition-CXIZjMk3.d.mts → transition-DKMQs6eP.d.mts} +1 -1
- package/dist/{types-CPmOg4X7.d.mts → types-BrTJEhR-.d.mts} +20 -2
- package/dist/{types-BJOicdtD.d.mts → types-QxCQtHQJ.d.mts} +68 -58
- package/dist/workflow-engine/index.d.mts +71 -71
- package/package.json +1 -1
- package/dist/adapter-BmdC3QwV.mjs +0 -1
- package/dist/schemas-yNBjlOKi.mjs +0 -1
|
@@ -88,7 +88,7 @@ declare const SessionStorageNamespace$1: {
|
|
|
88
88
|
tableName: "sessions";
|
|
89
89
|
dataType: "string";
|
|
90
90
|
columnType: "SQLiteText";
|
|
91
|
-
data: "
|
|
91
|
+
data: "closed" | "active" | "archived" | "discovered";
|
|
92
92
|
driverParam: string;
|
|
93
93
|
notNull: true;
|
|
94
94
|
hasDefault: false;
|
|
@@ -202,7 +202,7 @@ declare const SessionStorageNamespace$1: {
|
|
|
202
202
|
tableName: "sessions";
|
|
203
203
|
dataType: "string";
|
|
204
204
|
columnType: "SQLiteText";
|
|
205
|
-
data: "fork" | "
|
|
205
|
+
data: "fork" | "branch" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside";
|
|
206
206
|
driverParam: string;
|
|
207
207
|
notNull: false;
|
|
208
208
|
hasDefault: false;
|
|
@@ -1021,9 +1021,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1021
1021
|
lastActivityAt: _$zod.ZodNumber;
|
|
1022
1022
|
}, _$zod_v4_core0.$strip>>;
|
|
1023
1023
|
status: _$zod.ZodEnum<{
|
|
1024
|
+
closed: "closed";
|
|
1024
1025
|
active: "active";
|
|
1025
1026
|
archived: "archived";
|
|
1026
|
-
closed: "closed";
|
|
1027
1027
|
discovered: "discovered";
|
|
1028
1028
|
}>;
|
|
1029
1029
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1036,8 +1036,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1036
1036
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1037
1037
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1038
1038
|
fork: "fork";
|
|
1039
|
-
subagent: "subagent";
|
|
1040
1039
|
branch: "branch";
|
|
1040
|
+
subagent: "subagent";
|
|
1041
1041
|
compress: "compress";
|
|
1042
1042
|
rewrite: "rewrite";
|
|
1043
1043
|
coordinator: "coordinator";
|
|
@@ -1141,9 +1141,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1141
1141
|
lastActivityAt: _$zod.ZodNumber;
|
|
1142
1142
|
}, _$zod_v4_core0.$strip>>;
|
|
1143
1143
|
status: _$zod.ZodEnum<{
|
|
1144
|
+
closed: "closed";
|
|
1144
1145
|
active: "active";
|
|
1145
1146
|
archived: "archived";
|
|
1146
|
-
closed: "closed";
|
|
1147
1147
|
discovered: "discovered";
|
|
1148
1148
|
}>;
|
|
1149
1149
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1156,8 +1156,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1156
1156
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1157
1157
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1158
1158
|
fork: "fork";
|
|
1159
|
-
subagent: "subagent";
|
|
1160
1159
|
branch: "branch";
|
|
1160
|
+
subagent: "subagent";
|
|
1161
1161
|
compress: "compress";
|
|
1162
1162
|
rewrite: "rewrite";
|
|
1163
1163
|
coordinator: "coordinator";
|
|
@@ -1238,9 +1238,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1238
1238
|
request: _$zod.ZodObject<{
|
|
1239
1239
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1240
1240
|
all: "all";
|
|
1241
|
+
closed: "closed";
|
|
1241
1242
|
active: "active";
|
|
1242
1243
|
archived: "archived";
|
|
1243
|
-
closed: "closed";
|
|
1244
1244
|
discovered: "discovered";
|
|
1245
1245
|
}>>;
|
|
1246
1246
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
@@ -1286,9 +1286,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1286
1286
|
lastActivityAt: _$zod.ZodNumber;
|
|
1287
1287
|
}, _$zod_v4_core0.$strip>>;
|
|
1288
1288
|
status: _$zod.ZodEnum<{
|
|
1289
|
+
closed: "closed";
|
|
1289
1290
|
active: "active";
|
|
1290
1291
|
archived: "archived";
|
|
1291
|
-
closed: "closed";
|
|
1292
1292
|
discovered: "discovered";
|
|
1293
1293
|
}>;
|
|
1294
1294
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1301,8 +1301,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1301
1301
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1302
1302
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1303
1303
|
fork: "fork";
|
|
1304
|
-
subagent: "subagent";
|
|
1305
1304
|
branch: "branch";
|
|
1305
|
+
subagent: "subagent";
|
|
1306
1306
|
compress: "compress";
|
|
1307
1307
|
rewrite: "rewrite";
|
|
1308
1308
|
coordinator: "coordinator";
|
|
@@ -1382,8 +1382,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1382
1382
|
forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
1383
1383
|
branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
|
|
1384
1384
|
fork: "fork";
|
|
1385
|
-
subagent: "subagent";
|
|
1386
1385
|
branch: "branch";
|
|
1386
|
+
subagent: "subagent";
|
|
1387
1387
|
compress: "compress";
|
|
1388
1388
|
rewrite: "rewrite";
|
|
1389
1389
|
coordinator: "coordinator";
|
|
@@ -1401,9 +1401,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1401
1401
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1402
1402
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1403
1403
|
all: "all";
|
|
1404
|
+
closed: "closed";
|
|
1404
1405
|
active: "active";
|
|
1405
1406
|
archived: "archived";
|
|
1406
|
-
closed: "closed";
|
|
1407
1407
|
discovered: "discovered";
|
|
1408
1408
|
}>>;
|
|
1409
1409
|
isImported: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
@@ -1446,9 +1446,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1446
1446
|
lastActivityAt: _$zod.ZodNumber;
|
|
1447
1447
|
}, _$zod_v4_core0.$strip>>;
|
|
1448
1448
|
status: _$zod.ZodEnum<{
|
|
1449
|
+
closed: "closed";
|
|
1449
1450
|
active: "active";
|
|
1450
1451
|
archived: "archived";
|
|
1451
|
-
closed: "closed";
|
|
1452
1452
|
discovered: "discovered";
|
|
1453
1453
|
}>;
|
|
1454
1454
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1461,8 +1461,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1461
1461
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1462
1462
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1463
1463
|
fork: "fork";
|
|
1464
|
-
subagent: "subagent";
|
|
1465
1464
|
branch: "branch";
|
|
1465
|
+
subagent: "subagent";
|
|
1466
1466
|
compress: "compress";
|
|
1467
1467
|
rewrite: "rewrite";
|
|
1468
1468
|
coordinator: "coordinator";
|
|
@@ -1535,9 +1535,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1535
1535
|
request: _$zod.ZodObject<{
|
|
1536
1536
|
sessionId: _$zod.ZodString;
|
|
1537
1537
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1538
|
+
closed: "closed";
|
|
1538
1539
|
active: "active";
|
|
1539
1540
|
archived: "archived";
|
|
1540
|
-
closed: "closed";
|
|
1541
1541
|
discovered: "discovered";
|
|
1542
1542
|
}>>;
|
|
1543
1543
|
parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1549,8 +1549,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1549
1549
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1550
1550
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1551
1551
|
fork: "fork";
|
|
1552
|
-
subagent: "subagent";
|
|
1553
1552
|
branch: "branch";
|
|
1553
|
+
subagent: "subagent";
|
|
1554
1554
|
compress: "compress";
|
|
1555
1555
|
rewrite: "rewrite";
|
|
1556
1556
|
coordinator: "coordinator";
|
|
@@ -1628,9 +1628,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1628
1628
|
lastActivityAt: _$zod.ZodNumber;
|
|
1629
1629
|
}, _$zod_v4_core0.$strip>>;
|
|
1630
1630
|
status: _$zod.ZodEnum<{
|
|
1631
|
+
closed: "closed";
|
|
1631
1632
|
active: "active";
|
|
1632
1633
|
archived: "archived";
|
|
1633
|
-
closed: "closed";
|
|
1634
1634
|
discovered: "discovered";
|
|
1635
1635
|
}>;
|
|
1636
1636
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1643,8 +1643,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1643
1643
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1644
1644
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1645
1645
|
fork: "fork";
|
|
1646
|
-
subagent: "subagent";
|
|
1647
1646
|
branch: "branch";
|
|
1647
|
+
subagent: "subagent";
|
|
1648
1648
|
compress: "compress";
|
|
1649
1649
|
rewrite: "rewrite";
|
|
1650
1650
|
coordinator: "coordinator";
|
|
@@ -1815,9 +1815,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1815
1815
|
lastActivityAt: _$zod.ZodNumber;
|
|
1816
1816
|
}, _$zod_v4_core0.$strip>>;
|
|
1817
1817
|
status: _$zod.ZodEnum<{
|
|
1818
|
+
closed: "closed";
|
|
1818
1819
|
active: "active";
|
|
1819
1820
|
archived: "archived";
|
|
1820
|
-
closed: "closed";
|
|
1821
1821
|
discovered: "discovered";
|
|
1822
1822
|
}>;
|
|
1823
1823
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1830,8 +1830,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1830
1830
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1831
1831
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1832
1832
|
fork: "fork";
|
|
1833
|
-
subagent: "subagent";
|
|
1834
1833
|
branch: "branch";
|
|
1834
|
+
subagent: "subagent";
|
|
1835
1835
|
compress: "compress";
|
|
1836
1836
|
rewrite: "rewrite";
|
|
1837
1837
|
coordinator: "coordinator";
|
|
@@ -1942,9 +1942,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
1942
1942
|
lastActivityAt: _$zod.ZodNumber;
|
|
1943
1943
|
}, _$zod_v4_core0.$strip>>;
|
|
1944
1944
|
status: _$zod.ZodEnum<{
|
|
1945
|
+
closed: "closed";
|
|
1945
1946
|
active: "active";
|
|
1946
1947
|
archived: "archived";
|
|
1947
|
-
closed: "closed";
|
|
1948
1948
|
discovered: "discovered";
|
|
1949
1949
|
}>;
|
|
1950
1950
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1957,8 +1957,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1957
1957
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1958
1958
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1959
1959
|
fork: "fork";
|
|
1960
|
-
subagent: "subagent";
|
|
1961
1960
|
branch: "branch";
|
|
1961
|
+
subagent: "subagent";
|
|
1962
1962
|
compress: "compress";
|
|
1963
1963
|
rewrite: "rewrite";
|
|
1964
1964
|
coordinator: "coordinator";
|
|
@@ -2090,9 +2090,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2090
2090
|
lastActivityAt: _$zod.ZodNumber;
|
|
2091
2091
|
}, _$zod_v4_core0.$strip>>;
|
|
2092
2092
|
status: _$zod.ZodEnum<{
|
|
2093
|
+
closed: "closed";
|
|
2093
2094
|
active: "active";
|
|
2094
2095
|
archived: "archived";
|
|
2095
|
-
closed: "closed";
|
|
2096
2096
|
discovered: "discovered";
|
|
2097
2097
|
}>;
|
|
2098
2098
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2105,8 +2105,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2105
2105
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2106
2106
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2107
2107
|
fork: "fork";
|
|
2108
|
-
subagent: "subagent";
|
|
2109
2108
|
branch: "branch";
|
|
2109
|
+
subagent: "subagent";
|
|
2110
2110
|
compress: "compress";
|
|
2111
2111
|
rewrite: "rewrite";
|
|
2112
2112
|
coordinator: "coordinator";
|
|
@@ -2210,9 +2210,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2210
2210
|
lastActivityAt: _$zod.ZodNumber;
|
|
2211
2211
|
}, _$zod_v4_core0.$strip>>;
|
|
2212
2212
|
status: _$zod.ZodEnum<{
|
|
2213
|
+
closed: "closed";
|
|
2213
2214
|
active: "active";
|
|
2214
2215
|
archived: "archived";
|
|
2215
|
-
closed: "closed";
|
|
2216
2216
|
discovered: "discovered";
|
|
2217
2217
|
}>;
|
|
2218
2218
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2225,8 +2225,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2225
2225
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2226
2226
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2227
2227
|
fork: "fork";
|
|
2228
|
-
subagent: "subagent";
|
|
2229
2228
|
branch: "branch";
|
|
2229
|
+
subagent: "subagent";
|
|
2230
2230
|
compress: "compress";
|
|
2231
2231
|
rewrite: "rewrite";
|
|
2232
2232
|
coordinator: "coordinator";
|
|
@@ -2307,9 +2307,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2307
2307
|
request: _$zod.ZodObject<{
|
|
2308
2308
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2309
2309
|
all: "all";
|
|
2310
|
+
closed: "closed";
|
|
2310
2311
|
active: "active";
|
|
2311
2312
|
archived: "archived";
|
|
2312
|
-
closed: "closed";
|
|
2313
2313
|
discovered: "discovered";
|
|
2314
2314
|
}>>;
|
|
2315
2315
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
@@ -2355,9 +2355,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2355
2355
|
lastActivityAt: _$zod.ZodNumber;
|
|
2356
2356
|
}, _$zod_v4_core0.$strip>>;
|
|
2357
2357
|
status: _$zod.ZodEnum<{
|
|
2358
|
+
closed: "closed";
|
|
2358
2359
|
active: "active";
|
|
2359
2360
|
archived: "archived";
|
|
2360
|
-
closed: "closed";
|
|
2361
2361
|
discovered: "discovered";
|
|
2362
2362
|
}>;
|
|
2363
2363
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2370,8 +2370,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2370
2370
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2371
2371
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2372
2372
|
fork: "fork";
|
|
2373
|
-
subagent: "subagent";
|
|
2374
2373
|
branch: "branch";
|
|
2374
|
+
subagent: "subagent";
|
|
2375
2375
|
compress: "compress";
|
|
2376
2376
|
rewrite: "rewrite";
|
|
2377
2377
|
coordinator: "coordinator";
|
|
@@ -2451,8 +2451,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2451
2451
|
forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2452
2452
|
branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
|
|
2453
2453
|
fork: "fork";
|
|
2454
|
-
subagent: "subagent";
|
|
2455
2454
|
branch: "branch";
|
|
2455
|
+
subagent: "subagent";
|
|
2456
2456
|
compress: "compress";
|
|
2457
2457
|
rewrite: "rewrite";
|
|
2458
2458
|
coordinator: "coordinator";
|
|
@@ -2470,9 +2470,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2470
2470
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2471
2471
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2472
2472
|
all: "all";
|
|
2473
|
+
closed: "closed";
|
|
2473
2474
|
active: "active";
|
|
2474
2475
|
archived: "archived";
|
|
2475
|
-
closed: "closed";
|
|
2476
2476
|
discovered: "discovered";
|
|
2477
2477
|
}>>;
|
|
2478
2478
|
isImported: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
@@ -2515,9 +2515,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2515
2515
|
lastActivityAt: _$zod.ZodNumber;
|
|
2516
2516
|
}, _$zod_v4_core0.$strip>>;
|
|
2517
2517
|
status: _$zod.ZodEnum<{
|
|
2518
|
+
closed: "closed";
|
|
2518
2519
|
active: "active";
|
|
2519
2520
|
archived: "archived";
|
|
2520
|
-
closed: "closed";
|
|
2521
2521
|
discovered: "discovered";
|
|
2522
2522
|
}>;
|
|
2523
2523
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2530,8 +2530,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2530
2530
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2531
2531
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2532
2532
|
fork: "fork";
|
|
2533
|
-
subagent: "subagent";
|
|
2534
2533
|
branch: "branch";
|
|
2534
|
+
subagent: "subagent";
|
|
2535
2535
|
compress: "compress";
|
|
2536
2536
|
rewrite: "rewrite";
|
|
2537
2537
|
coordinator: "coordinator";
|
|
@@ -2604,9 +2604,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2604
2604
|
request: _$zod.ZodObject<{
|
|
2605
2605
|
sessionId: _$zod.ZodString;
|
|
2606
2606
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2607
|
+
closed: "closed";
|
|
2607
2608
|
active: "active";
|
|
2608
2609
|
archived: "archived";
|
|
2609
|
-
closed: "closed";
|
|
2610
2610
|
discovered: "discovered";
|
|
2611
2611
|
}>>;
|
|
2612
2612
|
parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2618,8 +2618,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2618
2618
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2619
2619
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2620
2620
|
fork: "fork";
|
|
2621
|
-
subagent: "subagent";
|
|
2622
2621
|
branch: "branch";
|
|
2622
|
+
subagent: "subagent";
|
|
2623
2623
|
compress: "compress";
|
|
2624
2624
|
rewrite: "rewrite";
|
|
2625
2625
|
coordinator: "coordinator";
|
|
@@ -2697,9 +2697,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2697
2697
|
lastActivityAt: _$zod.ZodNumber;
|
|
2698
2698
|
}, _$zod_v4_core0.$strip>>;
|
|
2699
2699
|
status: _$zod.ZodEnum<{
|
|
2700
|
+
closed: "closed";
|
|
2700
2701
|
active: "active";
|
|
2701
2702
|
archived: "archived";
|
|
2702
|
-
closed: "closed";
|
|
2703
2703
|
discovered: "discovered";
|
|
2704
2704
|
}>;
|
|
2705
2705
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2712,8 +2712,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2712
2712
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2713
2713
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2714
2714
|
fork: "fork";
|
|
2715
|
-
subagent: "subagent";
|
|
2716
2715
|
branch: "branch";
|
|
2716
|
+
subagent: "subagent";
|
|
2717
2717
|
compress: "compress";
|
|
2718
2718
|
rewrite: "rewrite";
|
|
2719
2719
|
coordinator: "coordinator";
|
|
@@ -2884,9 +2884,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
2884
2884
|
lastActivityAt: _$zod.ZodNumber;
|
|
2885
2885
|
}, _$zod_v4_core0.$strip>>;
|
|
2886
2886
|
status: _$zod.ZodEnum<{
|
|
2887
|
+
closed: "closed";
|
|
2887
2888
|
active: "active";
|
|
2888
2889
|
archived: "archived";
|
|
2889
|
-
closed: "closed";
|
|
2890
2890
|
discovered: "discovered";
|
|
2891
2891
|
}>;
|
|
2892
2892
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2899,8 +2899,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2899
2899
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2900
2900
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2901
2901
|
fork: "fork";
|
|
2902
|
-
subagent: "subagent";
|
|
2903
2902
|
branch: "branch";
|
|
2903
|
+
subagent: "subagent";
|
|
2904
2904
|
compress: "compress";
|
|
2905
2905
|
rewrite: "rewrite";
|
|
2906
2906
|
coordinator: "coordinator";
|
|
@@ -3011,9 +3011,9 @@ declare const SessionStorageNamespace$1: {
|
|
|
3011
3011
|
lastActivityAt: _$zod.ZodNumber;
|
|
3012
3012
|
}, _$zod_v4_core0.$strip>>;
|
|
3013
3013
|
status: _$zod.ZodEnum<{
|
|
3014
|
+
closed: "closed";
|
|
3014
3015
|
active: "active";
|
|
3015
3016
|
archived: "archived";
|
|
3016
|
-
closed: "closed";
|
|
3017
3017
|
discovered: "discovered";
|
|
3018
3018
|
}>;
|
|
3019
3019
|
leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -3026,8 +3026,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
3026
3026
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3027
3027
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3028
3028
|
fork: "fork";
|
|
3029
|
-
subagent: "subagent";
|
|
3030
3029
|
branch: "branch";
|
|
3030
|
+
subagent: "subagent";
|
|
3031
3031
|
compress: "compress";
|
|
3032
3032
|
rewrite: "rewrite";
|
|
3033
3033
|
coordinator: "coordinator";
|
|
@@ -3149,13 +3149,13 @@ declare const SessionStorageNamespace$1: {
|
|
|
3149
3149
|
clientId?: string | undefined;
|
|
3150
3150
|
compressionMode?: "auto" | "manual" | "off" | undefined;
|
|
3151
3151
|
}[];
|
|
3152
|
-
status: "
|
|
3152
|
+
status: "closed" | "active" | "archived" | "discovered";
|
|
3153
3153
|
leadAgentId?: string | undefined;
|
|
3154
3154
|
parentSessionId?: string | undefined;
|
|
3155
3155
|
contextInheritance?: "none" | "parent-history" | undefined;
|
|
3156
3156
|
rootSessionId?: string | undefined;
|
|
3157
3157
|
forkPointMessageId?: string | undefined;
|
|
3158
|
-
branchKind?: "fork" | "
|
|
3158
|
+
branchKind?: "fork" | "branch" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside" | undefined;
|
|
3159
3159
|
adapterName?: string | undefined;
|
|
3160
3160
|
adapterSessionId?: string | undefined;
|
|
3161
3161
|
adapterId?: string | undefined;
|
|
@@ -41,9 +41,9 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
41
41
|
groupId: _$zod.ZodString;
|
|
42
42
|
entries: _$zod.ZodArray<_$zod.ZodObject<{
|
|
43
43
|
metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
44
|
-
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
45
|
-
label: _$zod.ZodString;
|
|
46
44
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
45
|
+
label: _$zod.ZodString;
|
|
46
|
+
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
47
47
|
entryId: _$zod.ZodString;
|
|
48
48
|
}, _$zod_v4_core0.$strip>>;
|
|
49
49
|
section: _$zod.ZodEnum<{
|
|
@@ -132,9 +132,9 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
132
132
|
groupId: _$zod.ZodString;
|
|
133
133
|
entries: _$zod.ZodArray<_$zod.ZodObject<{
|
|
134
134
|
metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
135
|
-
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
136
|
-
label: _$zod.ZodString;
|
|
137
135
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
136
|
+
label: _$zod.ZodString;
|
|
137
|
+
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
138
138
|
entryId: _$zod.ZodString;
|
|
139
139
|
}, _$zod_v4_core0.$strip>>;
|
|
140
140
|
section: _$zod.ZodEnum<{
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
2
|
import { DispatchingAuth, TransportAuth } from "@makaio/framework/node/transports";
|
|
3
|
-
import { BridgeBrowserOptions, CoreBootOptions, CoreBootOptions as CoreBootOptions$1, CredentialProvider, DescriptorSourcePackageGroup, DiscoveredExtension, ExplicitDescriptorDiscovery, ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, FilesystemDescriptorDiscoveryOptions, FrameworkModuleResolver, HonoRouteGraph, HonoRouteGraph as HonoRouteGraph$1, HonoRouteGraphOptions, HttpContributionPhase, HttpRouteContribution, HttpRouteGraphBuilder, LoadExtensionsOptions, MachineKeyStatus, MachineKeyValidation, MakaioRuntime, MakaioRuntime as MakaioRuntime$1, NodeCredentialProvider, PersistedMachineIdentity, ServerTransportProvider, ServerTransportProvider as ServerTransportProvider$1, StoredCredentialProvider, TransportReadyInfo, bootMakaioRuntimeCore, bridgeExtensionBrowserEntries, createHonoRouteGraph, createHttpRouteGraphBuilder, entrypointStem, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadOrCreateMachineIdentity, machineKeysExist, registerAdapterNameResolver, resolveConventionEntrypoint, resolveStaticModelRegistryPath, runMigrations, tryImport, validateMachineKeys } from "@makaio/framework/runtime-node";
|
|
3
|
+
import { BridgeBrowserOptions, CoreBootOptions, CoreBootOptions as CoreBootOptions$1, CredentialProvider, DescriptorSourcePackageGroup, DiscoveredExtension, ExplicitDescriptorDiscovery, ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, FilesystemDescriptorDiscoveryOptions, FrameworkModuleResolver, HonoRouteGraph, HonoRouteGraph as HonoRouteGraph$1, HonoRouteGraphOptions, HttpContributionPhase, HttpRouteContribution, HttpRouteGraphBuilder, LoadExtensionsOptions, MachineKeyStatus, MachineKeyValidation, MakaioRuntime, MakaioRuntime as MakaioRuntime$1, MergedDescriptorDiscovery, NodeCredentialProvider, PersistedMachineIdentity, ServerTransportProvider, ServerTransportProvider as ServerTransportProvider$1, StoredCredentialProvider, TransportReadyInfo, bootMakaioRuntimeCore, bridgeExtensionBrowserEntries, createHonoRouteGraph, createHttpRouteGraphBuilder, entrypointStem, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadOrCreateMachineIdentity, machineKeysExist, registerAdapterNameResolver, resolveConventionEntrypoint, resolveStaticModelRegistryPath, runMigrations, tryImport, validateMachineKeys } from "@makaio/framework/runtime-node";
|
|
4
4
|
|
|
5
5
|
//#region runtimes/bun/src/bus-server-transport.d.ts
|
|
6
6
|
/**
|
|
@@ -382,4 +382,4 @@ interface ReadBunServerEnvOptions {
|
|
|
382
382
|
*/
|
|
383
383
|
declare function readBunServerEnv(options: ReadBunServerEnvOptions): BunServerEnvConfig;
|
|
384
384
|
//#endregion
|
|
385
|
-
export { type ActiveBunHostExtensionIterator, type BridgeBrowserOptions, type BunBootMakaioRuntimeOptions, type BunBusServerTransportOptions, BunBusServerTransportProvider, type BunGracefulShutdownOptions, type BunHostContribution, type BunHostExtensionPackage, type BunHostRouter, type BunRouteGraphFetch, type BunRouteGraphUpgradeServer, type BunServer, type BunServerAddress, type BunServerEnvConfig, type BunWebSocketHandler, type CoreBootOptions, type CredentialProvider, type DescriptorSourcePackageGroup, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type InvalidBunServerEnvPolicy, type LoadExtensionsOptions, type MachineKeyStatus, type MachineKeyValidation, type MakaioRuntime, NodeCredentialProvider, type PersistedMachineIdentity, type ReadBunServerEnvOptions, type ServerTransportProvider, StoredCredentialProvider, type TransportReadyInfo, bootMakaioRuntime, bootMakaioRuntimeCore, bridgeExtensionBrowserEntries, collectActiveBunHostPackages, composeBunHostFetch, composeBunHostWebSocket, createBunHostRouter, createBunRouteGraphFetch, createGracefulShutdown, createHonoRouteGraph, createHttpRouteGraphBuilder, entrypointStem, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadOrCreateMachineIdentity, machineKeysExist, normalizeBunHostPackages, readBunServerEnv, registerAdapterNameResolver, resolveConventionEntrypoint, resolveListeningPort, resolveStaticModelRegistryPath, runMigrations, tryImport, validateMachineKeys };
|
|
385
|
+
export { type ActiveBunHostExtensionIterator, type BridgeBrowserOptions, type BunBootMakaioRuntimeOptions, type BunBusServerTransportOptions, BunBusServerTransportProvider, type BunGracefulShutdownOptions, type BunHostContribution, type BunHostExtensionPackage, type BunHostRouter, type BunRouteGraphFetch, type BunRouteGraphUpgradeServer, type BunServer, type BunServerAddress, type BunServerEnvConfig, type BunWebSocketHandler, type CoreBootOptions, type CredentialProvider, type DescriptorSourcePackageGroup, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type InvalidBunServerEnvPolicy, type LoadExtensionsOptions, type MachineKeyStatus, type MachineKeyValidation, type MakaioRuntime, MergedDescriptorDiscovery, NodeCredentialProvider, type PersistedMachineIdentity, type ReadBunServerEnvOptions, type ServerTransportProvider, StoredCredentialProvider, type TransportReadyInfo, bootMakaioRuntime, bootMakaioRuntimeCore, bridgeExtensionBrowserEntries, collectActiveBunHostPackages, composeBunHostFetch, composeBunHostWebSocket, createBunHostRouter, createBunRouteGraphFetch, createGracefulShutdown, createHonoRouteGraph, createHttpRouteGraphBuilder, entrypointStem, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadOrCreateMachineIdentity, machineKeysExist, normalizeBunHostPackages, readBunServerEnv, registerAdapterNameResolver, resolveConventionEntrypoint, resolveListeningPort, resolveStaticModelRegistryPath, runMigrations, tryImport, validateMachineKeys };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DispatchingAuth as e,createWebSocketCloseEvent as t}from"@makaio/framework/node/transports";import{HonoWebSocketBridge as n,startBusServer as r}from"@makaio/framework/node/bus-server";import{ExplicitDescriptorDiscovery as i,FileConfigStorage as a,FileRegistryCache as o,FilesystemDescriptorDiscovery as s,
|
|
1
|
+
import{DispatchingAuth as e,createWebSocketCloseEvent as t}from"@makaio/framework/node/transports";import{HonoWebSocketBridge as n,startBusServer as r}from"@makaio/framework/node/bus-server";import{ExplicitDescriptorDiscovery as i,FileConfigStorage as a,FileRegistryCache as o,FilesystemDescriptorDiscovery as s,MergedDescriptorDiscovery as c,NodeCredentialProvider as l,StoredCredentialProvider as u,bootMakaioRuntimeCore as d,bootMakaioRuntimeCore as f,bridgeExtensionBrowserEntries as ee,createHonoRouteGraph as p,createHttpRouteGraphBuilder as m,entrypointStem as h,isCliContributionLike as g,isMakaioExtensionLike as _,isMissingOptionalRuntimePackage as v,isWithinDirectory as y,loadExtensions as b,loadOrCreateMachineIdentity as x,machineKeysExist as S,registerAdapterNameResolver as C,resolveConventionEntrypoint as w,resolveStaticModelRegistryPath as T,runMigrations as E,tryImport as D,validateMachineKeys as O}from"@makaio/framework/runtime-node";import{isIP as k}from"node:net";var A=class{raw;eventListeners={message:new Set,close:new Set,error:new Set,open:new Set};constructor(e){this.raw=e}get readyState(){return this.raw.readyState}send(e){if(typeof e==`string`){this.raw.send(e);return}if(e instanceof Blob){e.arrayBuffer().then(e=>{this.raw.readyState===1&&this.raw.send(new Uint8Array(e))}).catch(()=>{this.dispatchError()});return}if(e instanceof ArrayBuffer){this.raw.send(new Uint8Array(e));return}ArrayBuffer.isView(e)&&this.raw.send(e)}close(e,t){this.raw.close(e,t)}addEventListener(e,t){this.eventListeners[e]?.add(t)}removeEventListener(e,t){this.eventListeners[e]?.delete(t)}dispatchMessage(e){let t=new MessageEvent(`message`,{data:e});for(let e of this.eventListeners.message)e(t)}dispatchClose(e,n){let r=t(e,n);for(let e of this.eventListeners.close)e(r)}dispatchError(){let e=new Event(`error`);for(let t of this.eventListeners.error)t(e)}},j=class{options;bridge;busServer=null;busReady=!1;connecting=!1;constructor(e){this.options=e,this.bridge=new n}get dispatchingAuth(){return this.options.auth instanceof e?this.options.auth:void 0}createWebSocketHandler(){let e=this.bridge,t=()=>this.busReady,n=new WeakMap;return{binaryType:`arraybuffer`,open(r){if(!t()){r.close(1013,`Bus server not ready`);return}let i=new A(r);n.set(r,i),e.accept(i)},message(e,t){n.get(e)?.dispatchMessage(t)},close(e,t,r){n.get(e)?.dispatchClose(t,r),n.delete(e)}}}async connect(e,t){if(this.connecting||this.busServer)throw Error(`[BunBusServerTransport] connect() called while transport is already connected or connecting`);this.connecting=!0;try{this.busServer=await r({websocket:this.bridge,bus:e,auth:this.options.auth,loopbackName:this.options.loopbackName??`bun`}),this.busReady=!0}catch(e){throw await this.stopBusServer(`startup error`),e}finally{this.connecting=!1}}async disconnect(){await this.stopBusServer(`shutdown`),this.bridge.close()}async stopBusServer(e){this.busReady=!1,this.busServer&&=(await this.busServer.stop().catch(t=>{console.error(`[BunBusServerTransport] Failed to stop bus server during ${e}:`,t)}),null)}};function M(e){if(e.headers.get(`upgrade`)?.toLowerCase()!==`websocket`)return!1;let{pathname:t}=new URL(e.url);return t===`/bus`?!0:t===`/`&&e.headers.get(`origin`)===null}function te(e){return(t,n)=>M(t)?n.upgrade(t)?void 0:new Response(`WebSocket upgrade failed`,{status:426,headers:{Upgrade:`websocket`}}):e.fetch(t)}function N(e){return e.port}async function P(e){let{port:t,hostname:n}=e.bunServer,r=e.createMount??(await import(`../create-static-mount-DkK28kKW.mjs`)).defaultCreateMount;return f(e.transport,t,n,{...e,createMount:r})}function F(e,t){let n=e,r=t;return{fetch(e,t){return n(e,t)},websocket:{binaryType:t.binaryType,open(e){r.open(e)},message(e,t){r.message(e,t)},close(e,t,n){r.close(e,t,n)}},activate(i){n=R(e,i),r=z(t,i)}}}function I(e){let t=[];return e.forEachActiveExtension((e,n)=>{B(n)&&t.push(n)}),t}function L(e){return Array.isArray(e)?e.flatMap(e=>L(e)):B(e)?[e]:[]}function R(e,t){return t.reduce((e,t)=>t.bun.createFetch?.(e)??e,e)}function z(e,t){return t.reduce((e,t)=>t.bun.createWebSocketHandler?.(e)??e,e)}function B(e){if(!H(e))return!1;let t=e.bun;return typeof e.name==`string`&&typeof e.displayName==`string`&&V(t)}function V(e){if(!H(e))return!1;let t=e.createFetch,n=e.createWebSocketHandler;return(t===void 0||typeof t==`function`)&&(n===void 0||typeof n==`function`)}function H(e){return typeof e==`object`&&!!e}function U(e){let t=e.timeoutMs??1e4,n=e.exit??(e=>process.exit(e)),r=!1;return async i=>{if(r)return;r=!0,console.info(`[${e.label}] ${i} received, shutting down...`);let a=setTimeout(()=>{console.error(`[${e.label}] Graceful shutdown timed out, forcing exit`),n(1)},t);try{process.env.MAKAIO_DEBUG&&console.info(`[${e.label}] Shutting down runtime...`),await e.runtime.shutdown(),process.env.MAKAIO_DEBUG&&console.info(`[${e.label}] Stopping Bun server...`),W(e.bunServer,e.label),process.env.MAKAIO_DEBUG&&console.info(`[${e.label}] Shutdown complete`),clearTimeout(a),n(0)}catch(t){W(e.bunServer,e.label),clearTimeout(a),console.error(`[${e.label}] Shutdown error:`,t),n(1)}}}function W(e,t){let n=e.stop?.(!0);G(n)&&n.catch(e=>{console.warn(`[${t}] Bun server stop failed during shutdown:`,e)})}function G(e){return typeof e==`object`&&!!e&&typeof e.catch==`function`}const K=/^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;function q(e){let t=e.env??process.env,n=e.defaultPort??3e3,r=e.defaultHost??`0.0.0.0`;return{port:J(t.PORT,n,e),host:Y(t.HOST,r,e)}}function J(e,t,n){let r=e?.trim(),i=r&&/^\d+$/.test(r)?Number.parseInt(r,10):NaN;return Number.isInteger(i)&&i>=1&&i<=65535?i:e===void 0?t:Z(`Invalid PORT: ${e}`,t,n)}function Y(e,t,n){let r=e?.trim();return r&&X(r)?r:e===void 0?t:Q(`Invalid HOST: ${e}`,t,n)}function X(e){return k(e)!==0||e===`localhost`||K.test(e)}function Z(e,t,n){return $(e,String(t),n),t}function Q(e,t,n){return $(e,t,n),t}function $(e,t,n){if((n.invalid??`throw`)===`throw`)throw Error(e);console.warn(`[${n.appName}] ${e}, falling back to ${t}`)}export{j as BunBusServerTransportProvider,i as ExplicitDescriptorDiscovery,a as FileConfigStorage,o as FileRegistryCache,s as FilesystemDescriptorDiscovery,c as MergedDescriptorDiscovery,l as NodeCredentialProvider,u as StoredCredentialProvider,P as bootMakaioRuntime,d as bootMakaioRuntimeCore,ee as bridgeExtensionBrowserEntries,I as collectActiveBunHostPackages,R as composeBunHostFetch,z as composeBunHostWebSocket,F as createBunHostRouter,te as createBunRouteGraphFetch,U as createGracefulShutdown,p as createHonoRouteGraph,m as createHttpRouteGraphBuilder,h as entrypointStem,g as isCliContributionLike,_ as isMakaioExtensionLike,v as isMissingOptionalRuntimePackage,y as isWithinDirectory,b as loadExtensions,x as loadOrCreateMachineIdentity,S as machineKeysExist,L as normalizeBunHostPackages,q as readBunServerEnv,C as registerAdapterNameResolver,w as resolveConventionEntrypoint,N as resolveListeningPort,T as resolveStaticModelRegistryPath,E as runMigrations,D as tryImport,O as validateMachineKeys};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuntimeSubjects } from "./bus/runtime/namespace.mjs";
|
|
2
|
-
import { a as FilesystemDescriptorDiscovery, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscoveryOptions, r as ExtensionDiscovery, t as DiscoveredExtension } from "../extension-discovery-CIZn5bkq.mjs";
|
|
2
|
+
import { a as FilesystemDescriptorDiscovery, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscoveryOptions, r as ExtensionDiscovery, s as MergedDescriptorDiscovery, t as DiscoveredExtension } from "../extension-discovery-CIZn5bkq.mjs";
|
|
3
3
|
import { a as isMakaioExtensionLike, c as resolveConventionEntrypoint, i as isCliContributionLike, n as LoadExtensionsOptions, o as isWithinDirectory, r as entrypointStem, s as loadExtensions, t as DescriptorSourcePackageGroup } from "../load-extensions-DNRIy4zC.mjs";
|
|
4
4
|
import { A as DatabaseBootOptions, B as NodeFrameworkModuleResolver, C as ServerTransportProvider, D as WorkflowWorkerEntryMode, E as WorkflowRunnerBootOptions, F as normalizeNodeHostCapabilities, G as HttpContributionPhase, H as resolveFrameworkSpecifier, I as selectFrameworkCorePackages, J as HonoRouteGraphOptions, K as HttpRouteContribution, L as ShutdownStep, M as InitializeNodeDatabaseResult, N as initializeNodeDatabase, O as WorkflowWorkerEntryResolverOptions, P as HostCapabilityDeclaration, R as BridgeBrowserOptions, S as MakaioRuntime, T as UpstreamTelemetryBootOptions, U as HttpRouteGraphBuilder, V as NoopFrameworkModuleResolver, W as createHttpRouteGraphBuilder, Y as createHonoRouteGraph, _ as ThinWorkflowPiscinaRunnerOptions, a as InProcessWorkflowRunnerOptions, b as BootMakaioRuntimeOptions, h as IWorkflowRunner, i as InProcessWorkflowRunner, j as InitializeNodeDatabaseOptions, k as resolveWorkflowWorkerEntry, m as ThinWorkflowPiscinaRunner, q as HonoRouteGraph, v as WorkflowRunResult, w as TransportReadyInfo, x as CoreBootOptions, y as BootCoordinatorSetupContext, z as FrameworkModuleResolver } from "../index-DFk-zky_.mjs";
|
|
5
5
|
import { ConfiguredRuntimeOptions, LoadMakaioConfigOptions, LoadedMakaioConfig, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MakaioConfig, ParseMakaioConfigOptions, ParsedMakaioConfig, WorkflowRunnerConfig, buildConfiguredRuntimeOptions, createMakaioConfigDiscovery, defineMakaioConfig, loadMakaioConfig, parseMakaioConfig, resolveMakaioConfigPath, resolveMakaioHome, shouldIncludeExtension } from "./makaio-config.mjs";
|
|
@@ -730,4 +730,4 @@ declare function findWorkspaceRoot(startDir: string): string;
|
|
|
730
730
|
*/
|
|
731
731
|
declare function findWorkspaceRootInfo(startDir: string): WorkspaceRootInfo;
|
|
732
732
|
//#endregion
|
|
733
|
-
export { type ActivateAdapterRuntimeIdentityInput, type ActivatedAdapterRuntimeIdentity, type AttachedUpstreamTelemetry, type BootCoordinatorSetupContext, type BootMakaioRuntimeOptions, type BridgeBrowserOptions, type BundledMigrationsProbes, type BusServerTransportOptions, BusServerTransportProvider, type ConfiguredRuntimeOptions, type CoreBootOptions, type CredentialProvider, type DatabaseBootOptions, type DescriptorSourcePackageGroup, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type IWorkflowRunner, InProcessWorkflowRunner, type InProcessWorkflowRunnerOptions, type InitializeNodeDatabaseOptions, type InitializeNodeDatabaseResult, type LoadExtensionsOptions, type LoadMakaioConfigOptions, type LoadedMakaioConfig, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MAKAIO_UPSTREAM_SECRET_ENV, MAKAIO_UPSTREAM_URL_ENV, type MachineKeyStatus, type MachineKeyValidation, type MakaioConfig, type MakaioRuntime, NodeCredentialProvider, NodeFrameworkModuleResolver, type NodeRuntimeOptions, NoopFrameworkModuleResolver, type ParseMakaioConfigOptions, type ParsedMakaioConfig, type PersistedMachineIdentity, type PrepareAdapterRuntimeInput, type PreparedAdapterRuntime, type ResolveUpstreamTelemetryBootOptionsFromEnvOptions, RuntimeSubjects, type ServerTransportProvider, StoredCredentialProvider, ThinWorkflowPiscinaRunner, type ThinWorkflowPiscinaRunnerOptions, type TransportReadyInfo, type UpstreamTelemetryBootOptions, type UpstreamTelemetryEnv, type UpstreamTelemetryTransportConfig, type WorkflowRunResult, type WorkflowRunnerBootOptions, type WorkflowRunnerConfig, type WorkflowWorkerEntryMode, type WorkflowWorkerEntryResolverOptions, type WorkspaceRootInfo, WorkspaceRootNotFoundError, activateAdapterRuntimeIdentity, attachUpstreamTelemetry, bootMakaioRuntime, bootMakaioRuntimeCore, bridgeExtensionBrowserEntries, buildConfiguredRuntimeOptions, buildExtensionBrowserRollupInputName, buildExtensionBrowserRuntimeEntrypoint, buildNodeRuntimeOptions, createHonoRouteGraph, createHttpRouteGraphBuilder, createMakaioConfigDiscovery, createUpstreamTelemetryTransport, defineMakaioConfig, entrypointStem, findWorkspaceRoot, findWorkspaceRootInfo, getRuntimeDatabase, initializeNodeDatabase, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadMakaioConfig, loadOrCreateMachineIdentity, machineKeysExist, normalizeNodeHostCapabilities, parseMakaioConfig, prepareAdapterRuntime, readFrameworkVersion, registerAdapterNameResolver, resolveBundledMigrationsDir, resolveConventionEntrypoint, resolveFrameworkSpecifier, resolveListeningPort, resolveMakaioConfigPath, resolveMakaioHome, resolveStaticModelRegistryPath, resolveUpstreamTelemetryBootOptionsFromEnv, resolveWorkflowWorkerEntry, runMigrations, selectFrameworkCorePackages, shouldIncludeExtension, tryImport, validateMachineKeys, waitForServerListening };
|
|
733
|
+
export { type ActivateAdapterRuntimeIdentityInput, type ActivatedAdapterRuntimeIdentity, type AttachedUpstreamTelemetry, type BootCoordinatorSetupContext, type BootMakaioRuntimeOptions, type BridgeBrowserOptions, type BundledMigrationsProbes, type BusServerTransportOptions, BusServerTransportProvider, type ConfiguredRuntimeOptions, type CoreBootOptions, type CredentialProvider, type DatabaseBootOptions, type DescriptorSourcePackageGroup, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type IWorkflowRunner, InProcessWorkflowRunner, type InProcessWorkflowRunnerOptions, type InitializeNodeDatabaseOptions, type InitializeNodeDatabaseResult, type LoadExtensionsOptions, type LoadMakaioConfigOptions, type LoadedMakaioConfig, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MAKAIO_UPSTREAM_SECRET_ENV, MAKAIO_UPSTREAM_URL_ENV, type MachineKeyStatus, type MachineKeyValidation, type MakaioConfig, type MakaioRuntime, MergedDescriptorDiscovery, NodeCredentialProvider, NodeFrameworkModuleResolver, type NodeRuntimeOptions, NoopFrameworkModuleResolver, type ParseMakaioConfigOptions, type ParsedMakaioConfig, type PersistedMachineIdentity, type PrepareAdapterRuntimeInput, type PreparedAdapterRuntime, type ResolveUpstreamTelemetryBootOptionsFromEnvOptions, RuntimeSubjects, type ServerTransportProvider, StoredCredentialProvider, ThinWorkflowPiscinaRunner, type ThinWorkflowPiscinaRunnerOptions, type TransportReadyInfo, type UpstreamTelemetryBootOptions, type UpstreamTelemetryEnv, type UpstreamTelemetryTransportConfig, type WorkflowRunResult, type WorkflowRunnerBootOptions, type WorkflowRunnerConfig, type WorkflowWorkerEntryMode, type WorkflowWorkerEntryResolverOptions, type WorkspaceRootInfo, WorkspaceRootNotFoundError, activateAdapterRuntimeIdentity, attachUpstreamTelemetry, bootMakaioRuntime, bootMakaioRuntimeCore, bridgeExtensionBrowserEntries, buildConfiguredRuntimeOptions, buildExtensionBrowserRollupInputName, buildExtensionBrowserRuntimeEntrypoint, buildNodeRuntimeOptions, createHonoRouteGraph, createHttpRouteGraphBuilder, createMakaioConfigDiscovery, createUpstreamTelemetryTransport, defineMakaioConfig, entrypointStem, findWorkspaceRoot, findWorkspaceRootInfo, getRuntimeDatabase, initializeNodeDatabase, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadMakaioConfig, loadOrCreateMachineIdentity, machineKeysExist, normalizeNodeHostCapabilities, parseMakaioConfig, prepareAdapterRuntime, readFrameworkVersion, registerAdapterNameResolver, resolveBundledMigrationsDir, resolveConventionEntrypoint, resolveFrameworkSpecifier, resolveListeningPort, resolveMakaioConfigPath, resolveMakaioHome, resolveStaticModelRegistryPath, resolveUpstreamTelemetryBootOptionsFromEnv, resolveWorkflowWorkerEntry, runMigrations, selectFrameworkCorePackages, shouldIncludeExtension, tryImport, validateMachineKeys, waitForServerListening };
|