@makaio/framework 1.0.0-dev-1789148673705 → 1.0.0-dev-1789168267790

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/artifact-BGy1hXuP.mjs +1 -0
  3. package/dist/bus/index.d.mts +48 -1
  4. package/dist/bus/index.mjs +1 -8
  5. package/dist/bus-KqRHrusX.mjs +9 -0
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +2 -2
  8. package/dist/contracts/artifact/index.mjs +1 -1
  9. package/dist/contracts/capabilities/index.d.mts +1 -1
  10. package/dist/contracts/client/index.d.mts +1 -1
  11. package/dist/contracts/extension/index.d.mts +2 -2
  12. package/dist/contracts/index.d.mts +31 -31
  13. package/dist/contracts/index.mjs +1 -1
  14. package/dist/contracts/session/index.d.mts +2 -2
  15. package/dist/contracts/worker/index.d.mts +1 -1
  16. package/dist/contracts/worker/index.mjs +1 -1
  17. package/dist/contracts/workflow/index.d.mts +1 -1
  18. package/dist/contracts/workflow/index.mjs +1 -1
  19. package/dist/{index-Caai1zAG.d.mts → index-BTwMms1p.d.mts} +1 -1
  20. package/dist/{index-Bk-hwMue.d.mts → index-Bp8ZljrJ.d.mts} +2 -2
  21. package/dist/{index-2YEh0vHQ.d.mts → index-CjOJLtH7.d.mts} +28 -28
  22. package/dist/{index-DC2C-u2k.d.mts → index-Cp9olTr7.d.mts} +7 -7
  23. package/dist/{index-LFS-KagP.d.mts → index-DOVT8mU7.d.mts} +233 -66
  24. package/dist/{index-DKI-qw1F.d.mts → index-DPBh4QNY.d.mts} +30 -30
  25. package/dist/{index-EJFdPYs32.d.mts → index-D__FyAg62.d.mts} +4 -4
  26. package/dist/{index-CK5GEXLB2.d.mts → index-DtlZ4hw62.d.mts} +12 -12
  27. package/dist/{index-DcfuHw2O.d.mts → index-ZBm6F5_h.d.mts} +16 -16
  28. package/dist/{index-Ddk-kjif.d.mts → index-kC3LKZYJ.d.mts} +1 -1
  29. package/dist/{index-Zf9Zayey2.d.mts → index-qal7TzGP2.d.mts} +79 -79
  30. package/dist/{index-BLhNHkiK.d.mts → index-yapYXeah.d.mts} +8 -8
  31. package/dist/kernel/extension/index.d.mts +1 -1
  32. package/dist/kernel/index.d.mts +2 -2
  33. package/dist/kernel/observability/index.d.mts +1 -1
  34. package/dist/{namespace-BD4lgMfP.d.mts → namespace-BYBMtQUy.d.mts} +5 -5
  35. package/dist/{namespace--mFdPlbu.d.mts → namespace-CZJQrexB.d.mts} +18 -18
  36. package/dist/{namespace-CQPcYS-Q.d.mts → namespace-CjFT0wBT.d.mts} +2 -2
  37. package/dist/{namespace-Bw7YLQHw.d.mts → namespace-CvCk6Y9i.d.mts} +25 -25
  38. package/dist/package.json +1 -1
  39. package/dist/{schema-CbmZYwEl.d.mts → schema-B098Jz9p.d.mts} +1 -1
  40. package/dist/{schemas-Dt1YwXLN.d.mts → schemas-D0ZZdGmV.d.mts} +10 -10
  41. package/dist/{schemas-D9WJH6We.d.mts → schemas-DNUfTOJ0.d.mts} +1 -1
  42. package/dist/services/adapter-runtime/index.d.mts +3 -3
  43. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  44. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  45. package/dist/services/context-rules/index.d.mts +3 -3
  46. package/dist/services/filesystem/namespace.d.mts +6 -6
  47. package/dist/services/filesystem/schemas.d.mts +3 -3
  48. package/dist/services/git/namespace.d.mts +2 -2
  49. package/dist/services/git/schemas.d.mts +2 -2
  50. package/dist/services/index.d.mts +21 -21
  51. package/dist/services/session/index.d.mts +5 -5
  52. package/dist/services/session/messages/namespace.d.mts +1 -1
  53. package/dist/services/session/session-events/namespace.d.mts +1 -1
  54. package/dist/services/session/storage/namespace.d.mts +1 -1
  55. package/dist/services/session/storage/schema.d.mts +1 -1
  56. package/dist/services/settings/namespace.d.mts +10 -10
  57. package/dist/services/subagent-template/index.d.mts +1 -1
  58. package/dist/services/subagent-template/schemas.d.mts +1 -1
  59. package/dist/{types-BrD4l8JJ.d.mts → types-6PHSlnbx.d.mts} +26 -26
  60. package/dist/{worker-DHZKWcLx.mjs → worker-Bw2UYlVO.mjs} +1 -1
  61. package/dist/workflow-engine/index.d.mts +24 -24
  62. package/dist/{workflow-D8uoSvcR.mjs → workflow-pOvprFKW.mjs} +1 -1
  63. package/package.json +1 -1
  64. package/dist/artifact-0LaQv515.mjs +0 -1
  65. package/dist/bus-CobBUqjo.mjs +0 -2
  66. package/dist/bus-Uy9C3TBM.mjs +0 -1
  67. package/dist/scoped-bus-DwVrmi_1.mjs +0 -1
@@ -1889,8 +1889,8 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1889
1889
  success: _$zod.ZodBoolean;
1890
1890
  evidence: _$zod.ZodEnum<{
1891
1891
  unknown: "unknown";
1892
- exited: "exited";
1893
1892
  closed: "closed";
1893
+ exited: "exited";
1894
1894
  released: "released";
1895
1895
  detached: "detached";
1896
1896
  }>;
@@ -2013,9 +2013,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
2013
2013
  timestamp: _$zod.ZodNumber;
2014
2014
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
2015
2015
  error: "error";
2016
+ warn: "warn";
2016
2017
  debug: "debug";
2017
2018
  info: "info";
2018
- warn: "warn";
2019
2019
  }>>;
2020
2020
  }, _$zod_v4_core0.$strip>;
2021
2021
  error: _$zod.ZodObject<{
@@ -3939,8 +3939,8 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3939
3939
  success: _$zod.ZodBoolean;
3940
3940
  evidence: _$zod.ZodEnum<{
3941
3941
  unknown: "unknown";
3942
- exited: "exited";
3943
3942
  closed: "closed";
3943
+ exited: "exited";
3944
3944
  released: "released";
3945
3945
  detached: "detached";
3946
3946
  }>;
@@ -4063,9 +4063,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4063
4063
  timestamp: _$zod.ZodNumber;
4064
4064
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
4065
4065
  error: "error";
4066
+ warn: "warn";
4066
4067
  debug: "debug";
4067
4068
  info: "info";
4068
- warn: "warn";
4069
4069
  }>>;
4070
4070
  }, _$zod_v4_core0.$strip>;
4071
4071
  error: _$zod.ZodObject<{
@@ -6013,8 +6013,8 @@ declare const AdapterSchemas: {
6013
6013
  success: _$zod.ZodBoolean;
6014
6014
  evidence: _$zod.ZodEnum<{
6015
6015
  unknown: "unknown";
6016
- exited: "exited";
6017
6016
  closed: "closed";
6017
+ exited: "exited";
6018
6018
  released: "released";
6019
6019
  detached: "detached";
6020
6020
  }>;
@@ -6137,9 +6137,9 @@ declare const AdapterSchemas: {
6137
6137
  timestamp: _$zod.ZodNumber;
6138
6138
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
6139
6139
  error: "error";
6140
+ warn: "warn";
6140
6141
  debug: "debug";
6141
6142
  info: "info";
6142
- warn: "warn";
6143
6143
  }>>;
6144
6144
  }, _$zod_v4_core0.$strip>;
6145
6145
  error: _$zod.ZodObject<{
@@ -8118,8 +8118,8 @@ type AcknowledgeCallerSettlementResponse = z.infer<typeof AcknowledgeCallerSettl
8118
8118
  */
8119
8119
  declare const TeardownEvidenceSchema: z.ZodEnum<{
8120
8120
  unknown: "unknown";
8121
- exited: "exited";
8122
8121
  closed: "closed";
8122
+ exited: "exited";
8123
8123
  released: "released";
8124
8124
  detached: "detached";
8125
8125
  }>;
@@ -8147,8 +8147,8 @@ declare function teardownWasObserved$1(evidence: TeardownEvidence$1): boolean;
8147
8147
  declare const ConnectorTeardownResultSchema$1: z.ZodObject<{
8148
8148
  evidence: z.ZodEnum<{
8149
8149
  unknown: "unknown";
8150
- exited: "exited";
8151
8150
  closed: "closed";
8151
+ exited: "exited";
8152
8152
  released: "released";
8153
8153
  detached: "detached";
8154
8154
  }>;
@@ -1,2 +1,2 @@
1
- import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-Ddk-kjif.mjs";
1
+ import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-kC3LKZYJ.mjs";
2
2
  export { ContributionProcessor, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, coalesceExtensionOverrides, filterEligibleExtensions };
@@ -1,5 +1,5 @@
1
- import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-CK5GEXLB2.mjs";
2
- import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-Ddk-kjif.mjs";
1
+ import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-DtlZ4hw62.mjs";
2
+ import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-kC3LKZYJ.mjs";
3
3
  import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-Dq5uOWpH.mjs";
4
4
  import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-1AKlC3kZ.mjs";
5
5
  import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-DSRxn5Zr2.mjs";
@@ -1,2 +1,2 @@
1
- import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-CK5GEXLB2.mjs";
1
+ import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-DtlZ4hw62.mjs";
2
2
  export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
335
335
  isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
336
336
  }, _$zod_v4_core0.$strip>], "type">>;
337
337
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
338
- turnId: _$zod.ZodNullable<_$zod.ZodString>;
339
338
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
339
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
340
340
  timestamp: _$zod.ZodNumber;
341
341
  contentText: _$zod.ZodString;
342
342
  adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
1120
1120
  isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1121
1121
  }, _$zod_v4_core0.$strip>], "type">>;
1122
1122
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
1123
- turnId: _$zod.ZodNullable<_$zod.ZodString>;
1124
1123
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1124
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1125
1125
  timestamp: _$zod.ZodNumber;
1126
1126
  contentText: _$zod.ZodString;
1127
1127
  adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2030,17 +2030,17 @@ declare const MessageStorageNamespace$1: {
2030
2030
  })[];
2031
2031
  messageId: string;
2032
2032
  agentId: never;
2033
- turnId: string | null;
2034
2033
  adapterSessionId: never;
2035
- timestamp: number;
2034
+ turnId: string | null;
2036
2035
  limit: never;
2036
+ timestamp: number;
2037
+ query: string;
2037
2038
  contentText: string;
2038
2039
  adapterMessageId: string;
2039
2040
  emitEvent: never;
2040
2041
  after: never;
2041
2042
  includeAfter: never;
2042
2043
  order: never;
2043
- query: string;
2044
2044
  } | undefined;
2045
2045
  };
2046
2046
  //#endregion
@@ -585,8 +585,8 @@ declare const SessionEventStorageNamespace$1: {
585
585
  type: _$zod.ZodLiteral<"locality.degraded">;
586
586
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
587
587
  intent: _$zod.ZodEnum<{
588
- fork: "fork";
589
588
  resume: "resume";
589
+ fork: "fork";
590
590
  }>;
591
591
  verdictKind: _$zod.ZodLiteral<"degrade">;
592
592
  reason: _$zod.ZodEnum<{
@@ -611,8 +611,8 @@ declare const SessionEventStorageNamespace$1: {
611
611
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
612
612
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
613
613
  intent: _$zod.ZodEnum<{
614
- fork: "fork";
615
614
  resume: "resume";
615
+ fork: "fork";
616
616
  }>;
617
617
  verdictKind: _$zod.ZodLiteral<"foreign">;
618
618
  foreignMachineId: _$zod.ZodString;
@@ -967,8 +967,8 @@ declare const SessionEventStorageNamespace$1: {
967
967
  type: _$zod.ZodLiteral<"locality.degraded">;
968
968
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
969
969
  intent: _$zod.ZodEnum<{
970
- fork: "fork";
971
970
  resume: "resume";
971
+ fork: "fork";
972
972
  }>;
973
973
  verdictKind: _$zod.ZodLiteral<"degrade">;
974
974
  reason: _$zod.ZodEnum<{
@@ -993,8 +993,8 @@ declare const SessionEventStorageNamespace$1: {
993
993
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
994
994
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
995
995
  intent: _$zod.ZodEnum<{
996
- fork: "fork";
997
996
  resume: "resume";
997
+ fork: "fork";
998
998
  }>;
999
999
  verdictKind: _$zod.ZodLiteral<"foreign">;
1000
1000
  foreignMachineId: _$zod.ZodString;
@@ -1339,8 +1339,8 @@ declare const SessionEventStorageNamespace$1: {
1339
1339
  type: _$zod.ZodLiteral<"locality.degraded">;
1340
1340
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1341
1341
  intent: _$zod.ZodEnum<{
1342
- fork: "fork";
1343
1342
  resume: "resume";
1343
+ fork: "fork";
1344
1344
  }>;
1345
1345
  verdictKind: _$zod.ZodLiteral<"degrade">;
1346
1346
  reason: _$zod.ZodEnum<{
@@ -1365,8 +1365,8 @@ declare const SessionEventStorageNamespace$1: {
1365
1365
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1366
1366
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1367
1367
  intent: _$zod.ZodEnum<{
1368
- fork: "fork";
1369
1368
  resume: "resume";
1369
+ fork: "fork";
1370
1370
  }>;
1371
1371
  verdictKind: _$zod.ZodLiteral<"foreign">;
1372
1372
  foreignMachineId: _$zod.ZodString;
@@ -1719,8 +1719,8 @@ declare const SessionEventStorageNamespace$1: {
1719
1719
  type: _$zod.ZodLiteral<"locality.degraded">;
1720
1720
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1721
1721
  intent: _$zod.ZodEnum<{
1722
- fork: "fork";
1723
1722
  resume: "resume";
1723
+ fork: "fork";
1724
1724
  }>;
1725
1725
  verdictKind: _$zod.ZodLiteral<"degrade">;
1726
1726
  reason: _$zod.ZodEnum<{
@@ -1745,8 +1745,8 @@ declare const SessionEventStorageNamespace$1: {
1745
1745
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1746
1746
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1747
1747
  intent: _$zod.ZodEnum<{
1748
- fork: "fork";
1749
1748
  resume: "resume";
1749
+ fork: "fork";
1750
1750
  }>;
1751
1751
  verdictKind: _$zod.ZodLiteral<"foreign">;
1752
1752
  foreignMachineId: _$zod.ZodString;
@@ -2087,8 +2087,8 @@ declare const SessionEventStorageNamespace$1: {
2087
2087
  type: _$zod.ZodLiteral<"locality.degraded">;
2088
2088
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2089
2089
  intent: _$zod.ZodEnum<{
2090
- fork: "fork";
2091
2090
  resume: "resume";
2091
+ fork: "fork";
2092
2092
  }>;
2093
2093
  verdictKind: _$zod.ZodLiteral<"degrade">;
2094
2094
  reason: _$zod.ZodEnum<{
@@ -2113,8 +2113,8 @@ declare const SessionEventStorageNamespace$1: {
2113
2113
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2114
2114
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2115
2115
  intent: _$zod.ZodEnum<{
2116
- fork: "fork";
2117
2116
  resume: "resume";
2117
+ fork: "fork";
2118
2118
  }>;
2119
2119
  verdictKind: _$zod.ZodLiteral<"foreign">;
2120
2120
  foreignMachineId: _$zod.ZodString;
@@ -2469,8 +2469,8 @@ declare const SessionEventStorageNamespace$1: {
2469
2469
  type: _$zod.ZodLiteral<"locality.degraded">;
2470
2470
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2471
2471
  intent: _$zod.ZodEnum<{
2472
- fork: "fork";
2473
2472
  resume: "resume";
2473
+ fork: "fork";
2474
2474
  }>;
2475
2475
  verdictKind: _$zod.ZodLiteral<"degrade">;
2476
2476
  reason: _$zod.ZodEnum<{
@@ -2495,8 +2495,8 @@ declare const SessionEventStorageNamespace$1: {
2495
2495
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2496
2496
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2497
2497
  intent: _$zod.ZodEnum<{
2498
- fork: "fork";
2499
2498
  resume: "resume";
2499
+ fork: "fork";
2500
2500
  }>;
2501
2501
  verdictKind: _$zod.ZodLiteral<"foreign">;
2502
2502
  foreignMachineId: _$zod.ZodString;
@@ -2841,8 +2841,8 @@ declare const SessionEventStorageNamespace$1: {
2841
2841
  type: _$zod.ZodLiteral<"locality.degraded">;
2842
2842
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2843
2843
  intent: _$zod.ZodEnum<{
2844
- fork: "fork";
2845
2844
  resume: "resume";
2845
+ fork: "fork";
2846
2846
  }>;
2847
2847
  verdictKind: _$zod.ZodLiteral<"degrade">;
2848
2848
  reason: _$zod.ZodEnum<{
@@ -2867,8 +2867,8 @@ declare const SessionEventStorageNamespace$1: {
2867
2867
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2868
2868
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2869
2869
  intent: _$zod.ZodEnum<{
2870
- fork: "fork";
2871
2870
  resume: "resume";
2871
+ fork: "fork";
2872
2872
  }>;
2873
2873
  verdictKind: _$zod.ZodLiteral<"foreign">;
2874
2874
  foreignMachineId: _$zod.ZodString;
@@ -3221,8 +3221,8 @@ declare const SessionEventStorageNamespace$1: {
3221
3221
  type: _$zod.ZodLiteral<"locality.degraded">;
3222
3222
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3223
3223
  intent: _$zod.ZodEnum<{
3224
- fork: "fork";
3225
3224
  resume: "resume";
3225
+ fork: "fork";
3226
3226
  }>;
3227
3227
  verdictKind: _$zod.ZodLiteral<"degrade">;
3228
3228
  reason: _$zod.ZodEnum<{
@@ -3247,8 +3247,8 @@ declare const SessionEventStorageNamespace$1: {
3247
3247
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3248
3248
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3249
3249
  intent: _$zod.ZodEnum<{
3250
- fork: "fork";
3251
3250
  resume: "resume";
3251
+ fork: "fork";
3252
3252
  }>;
3253
3253
  verdictKind: _$zod.ZodLiteral<"foreign">;
3254
3254
  foreignMachineId: _$zod.ZodString;
@@ -3537,14 +3537,14 @@ declare const SessionEventStorageNamespace$1: {
3537
3537
  timestamp: number;
3538
3538
  type: "locality.degraded";
3539
3539
  payload: {
3540
- intent: "fork" | "resume";
3540
+ intent: "resume" | "fork";
3541
3541
  verdictKind: "degrade";
3542
3542
  reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable" | "adapter-session-moved";
3543
3543
  agentId?: string | undefined;
3544
3544
  adapterId?: string | undefined;
3545
3545
  turnId?: string | undefined;
3546
3546
  } | {
3547
- intent: "fork" | "resume";
3547
+ intent: "resume" | "fork";
3548
3548
  verdictKind: "foreign";
3549
3549
  foreignMachineId: string;
3550
3550
  agentId?: string | undefined;
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
47
47
  teardownCompleted: _$zod.ZodObject<{
48
48
  evidence: _$zod.ZodEnum<{
49
49
  unknown: "unknown";
50
- exited: "exited";
51
50
  closed: "closed";
51
+ exited: "exited";
52
52
  released: "released";
53
53
  detached: "detached";
54
54
  }>;
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
100
100
  teardownCompleted: _$zod.ZodObject<{
101
101
  evidence: _$zod.ZodEnum<{
102
102
  unknown: "unknown";
103
- exited: "exited";
104
103
  closed: "closed";
104
+ exited: "exited";
105
105
  released: "released";
106
106
  detached: "detached";
107
107
  }>;
@@ -88,7 +88,7 @@ declare const SessionStorageNamespace$1: {
88
88
  tableName: "sessions";
89
89
  dataType: "string";
90
90
  columnType: "SQLiteText";
91
- data: "closed" | "discovered" | "archived" | "active";
91
+ data: "closed" | "discovered" | "active" | "archived";
92
92
  driverParam: string;
93
93
  notNull: true;
94
94
  hasDefault: false;
@@ -1240,8 +1240,8 @@ declare const SessionStorageNamespace$1: {
1240
1240
  status: _$zod.ZodEnum<{
1241
1241
  closed: "closed";
1242
1242
  discovered: "discovered";
1243
- archived: "archived";
1244
1243
  active: "active";
1244
+ archived: "archived";
1245
1245
  }>;
1246
1246
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
1247
1247
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1382,8 +1382,8 @@ declare const SessionStorageNamespace$1: {
1382
1382
  status: _$zod.ZodEnum<{
1383
1383
  closed: "closed";
1384
1384
  discovered: "discovered";
1385
- archived: "archived";
1386
1385
  active: "active";
1386
+ archived: "archived";
1387
1387
  }>;
1388
1388
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
1389
1389
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1487,8 +1487,8 @@ declare const SessionStorageNamespace$1: {
1487
1487
  all: "all";
1488
1488
  closed: "closed";
1489
1489
  discovered: "discovered";
1490
- archived: "archived";
1491
1490
  active: "active";
1491
+ archived: "archived";
1492
1492
  }>>;
1493
1493
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
1494
1494
  offset: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -1549,8 +1549,8 @@ declare const SessionStorageNamespace$1: {
1549
1549
  status: _$zod.ZodEnum<{
1550
1550
  closed: "closed";
1551
1551
  discovered: "discovered";
1552
- archived: "archived";
1553
1552
  active: "active";
1553
+ archived: "archived";
1554
1554
  }>;
1555
1555
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
1556
1556
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1672,8 +1672,8 @@ declare const SessionStorageNamespace$1: {
1672
1672
  all: "all";
1673
1673
  closed: "closed";
1674
1674
  discovered: "discovered";
1675
- archived: "archived";
1676
1675
  active: "active";
1676
+ archived: "archived";
1677
1677
  }>>;
1678
1678
  isImported: _$zod.ZodOptional<_$zod.ZodBoolean>;
1679
1679
  }, _$zod_v4_core0.$strip>;
@@ -1731,8 +1731,8 @@ declare const SessionStorageNamespace$1: {
1731
1731
  status: _$zod.ZodEnum<{
1732
1732
  closed: "closed";
1733
1733
  discovered: "discovered";
1734
- archived: "archived";
1735
1734
  active: "active";
1735
+ archived: "archived";
1736
1736
  }>;
1737
1737
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
1738
1738
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1828,14 +1828,14 @@ declare const SessionStorageNamespace$1: {
1828
1828
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1829
1829
  closed: "closed";
1830
1830
  discovered: "discovered";
1831
- archived: "archived";
1832
1831
  active: "active";
1832
+ archived: "archived";
1833
1833
  }>>;
1834
1834
  expectedStatus: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodEnum<{
1835
1835
  closed: "closed";
1836
1836
  discovered: "discovered";
1837
- archived: "archived";
1838
1837
  active: "active";
1838
+ archived: "archived";
1839
1839
  }>>>;
1840
1840
  parentSessionId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1841
1841
  contextInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1955,8 +1955,8 @@ declare const SessionStorageNamespace$1: {
1955
1955
  status: _$zod.ZodEnum<{
1956
1956
  closed: "closed";
1957
1957
  discovered: "discovered";
1958
- archived: "archived";
1959
1958
  active: "active";
1959
+ archived: "archived";
1960
1960
  }>;
1961
1961
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
1962
1962
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2247,8 +2247,8 @@ declare const SessionStorageNamespace$1: {
2247
2247
  status: _$zod.ZodEnum<{
2248
2248
  closed: "closed";
2249
2249
  discovered: "discovered";
2250
- archived: "archived";
2251
2250
  active: "active";
2251
+ archived: "archived";
2252
2252
  }>;
2253
2253
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
2254
2254
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2396,8 +2396,8 @@ declare const SessionStorageNamespace$1: {
2396
2396
  status: _$zod.ZodEnum<{
2397
2397
  closed: "closed";
2398
2398
  discovered: "discovered";
2399
- archived: "archived";
2400
2399
  active: "active";
2400
+ archived: "archived";
2401
2401
  }>;
2402
2402
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
2403
2403
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2566,8 +2566,8 @@ declare const SessionStorageNamespace$1: {
2566
2566
  status: _$zod.ZodEnum<{
2567
2567
  closed: "closed";
2568
2568
  discovered: "discovered";
2569
- archived: "archived";
2570
2569
  active: "active";
2570
+ archived: "archived";
2571
2571
  }>;
2572
2572
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
2573
2573
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2708,8 +2708,8 @@ declare const SessionStorageNamespace$1: {
2708
2708
  status: _$zod.ZodEnum<{
2709
2709
  closed: "closed";
2710
2710
  discovered: "discovered";
2711
- archived: "archived";
2712
2711
  active: "active";
2712
+ archived: "archived";
2713
2713
  }>;
2714
2714
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
2715
2715
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2813,8 +2813,8 @@ declare const SessionStorageNamespace$1: {
2813
2813
  all: "all";
2814
2814
  closed: "closed";
2815
2815
  discovered: "discovered";
2816
- archived: "archived";
2817
2816
  active: "active";
2817
+ archived: "archived";
2818
2818
  }>>;
2819
2819
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
2820
2820
  offset: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -2875,8 +2875,8 @@ declare const SessionStorageNamespace$1: {
2875
2875
  status: _$zod.ZodEnum<{
2876
2876
  closed: "closed";
2877
2877
  discovered: "discovered";
2878
- archived: "archived";
2879
2878
  active: "active";
2879
+ archived: "archived";
2880
2880
  }>;
2881
2881
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
2882
2882
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2998,8 +2998,8 @@ declare const SessionStorageNamespace$1: {
2998
2998
  all: "all";
2999
2999
  closed: "closed";
3000
3000
  discovered: "discovered";
3001
- archived: "archived";
3002
3001
  active: "active";
3002
+ archived: "archived";
3003
3003
  }>>;
3004
3004
  isImported: _$zod.ZodOptional<_$zod.ZodBoolean>;
3005
3005
  }, _$zod_v4_core0.$strip>;
@@ -3057,8 +3057,8 @@ declare const SessionStorageNamespace$1: {
3057
3057
  status: _$zod.ZodEnum<{
3058
3058
  closed: "closed";
3059
3059
  discovered: "discovered";
3060
- archived: "archived";
3061
3060
  active: "active";
3061
+ archived: "archived";
3062
3062
  }>;
3063
3063
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
3064
3064
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3154,14 +3154,14 @@ declare const SessionStorageNamespace$1: {
3154
3154
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
3155
3155
  closed: "closed";
3156
3156
  discovered: "discovered";
3157
- archived: "archived";
3158
3157
  active: "active";
3158
+ archived: "archived";
3159
3159
  }>>;
3160
3160
  expectedStatus: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodEnum<{
3161
3161
  closed: "closed";
3162
3162
  discovered: "discovered";
3163
- archived: "archived";
3164
3163
  active: "active";
3164
+ archived: "archived";
3165
3165
  }>>>;
3166
3166
  parentSessionId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
3167
3167
  contextInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3281,8 +3281,8 @@ declare const SessionStorageNamespace$1: {
3281
3281
  status: _$zod.ZodEnum<{
3282
3282
  closed: "closed";
3283
3283
  discovered: "discovered";
3284
- archived: "archived";
3285
3284
  active: "active";
3285
+ archived: "archived";
3286
3286
  }>;
3287
3287
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
3288
3288
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3573,8 +3573,8 @@ declare const SessionStorageNamespace$1: {
3573
3573
  status: _$zod.ZodEnum<{
3574
3574
  closed: "closed";
3575
3575
  discovered: "discovered";
3576
- archived: "archived";
3577
3576
  active: "active";
3577
+ archived: "archived";
3578
3578
  }>;
3579
3579
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
3580
3580
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3722,8 +3722,8 @@ declare const SessionStorageNamespace$1: {
3722
3722
  status: _$zod.ZodEnum<{
3723
3723
  closed: "closed";
3724
3724
  discovered: "discovered";
3725
- archived: "archived";
3726
3725
  active: "active";
3726
+ archived: "archived";
3727
3727
  }>;
3728
3728
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
3729
3729
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3836,7 +3836,7 @@ declare const SessionStorageNamespace$1: {
3836
3836
  options?: _$_makaio_core0.NamespaceRegistrationOptions;
3837
3837
  defaultTransports?: _$_makaio_core0.TransportRoutingDefault;
3838
3838
  __filterPayload?: {
3839
- [x: string]: string | number | boolean | Record<string, _$_makaio_contracts0.JsonValue> | ("closed" | "discovered" | "archived" | "active")[] | {
3839
+ [x: string]: string | number | boolean | Record<string, _$_makaio_contracts0.JsonValue> | ("closed" | "discovered" | "active" | "archived")[] | {
3840
3840
  clientId: string;
3841
3841
  source: string;
3842
3842
  kind: string;
@@ -3875,7 +3875,7 @@ declare const SessionStorageNamespace$1: {
3875
3875
  clientId?: string | undefined;
3876
3876
  compressionMode?: "auto" | "manual" | "off" | undefined;
3877
3877
  }[];
3878
- status: "closed" | "discovered" | "archived" | "active";
3878
+ status: "closed" | "discovered" | "active" | "archived";
3879
3879
  leadAgentId?: string | undefined;
3880
3880
  parentSessionId?: string | undefined;
3881
3881
  contextInheritance?: "none" | "parent-history" | undefined;
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@makaio/framework",
3
- "version": "1.0.0-dev-1789148673705",
3
+ "version": "1.0.0-dev-1789168267790",
4
4
  "type": "module"
5
5
  }
@@ -293,7 +293,7 @@ declare const sessions: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
293
293
  tableName: "sessions";
294
294
  dataType: "string";
295
295
  columnType: "SQLiteText";
296
- data: "closed" | "discovered" | "archived" | "active";
296
+ data: "closed" | "discovered" | "active" | "archived";
297
297
  driverParam: string;
298
298
  notNull: true;
299
299
  hasDefault: false;
@@ -15,8 +15,8 @@ declare const SubagentTemplateSchema: z.ZodObject<{
15
15
  model: z.ZodOptional<z.ZodString>;
16
16
  systemPrompt: z.ZodOptional<z.ZodString>;
17
17
  contextMode: z.ZodDefault<z.ZodEnum<{
18
- fork: "fork";
19
18
  fresh: "fresh";
19
+ fork: "fork";
20
20
  }>>;
21
21
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
22
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -45,16 +45,16 @@ type SubagentTemplateSummary = z.infer<typeof SubagentTemplateSummarySchema>;
45
45
  declare const SubagentTemplateCreateSchema: z.ZodObject<{
46
46
  name: z.ZodString;
47
47
  enabled: z.ZodDefault<z.ZodBoolean>;
48
- adapterName: z.ZodString;
49
48
  model: z.ZodOptional<z.ZodString>;
50
- systemPrompt: z.ZodOptional<z.ZodString>;
51
49
  providerConfigId: z.ZodOptional<z.ZodString>;
50
+ systemPrompt: z.ZodOptional<z.ZodString>;
52
51
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
52
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
53
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ adapterName: z.ZodString;
55
55
  contextMode: z.ZodDefault<z.ZodEnum<{
56
- fork: "fork";
57
56
  fresh: "fresh";
57
+ fork: "fork";
58
58
  }>>;
59
59
  }, z.core.$strip>;
60
60
  type SubagentTemplateCreate = z.infer<typeof SubagentTemplateCreateSchema>;
@@ -69,8 +69,8 @@ declare const SubagentTemplateUpdateSchema: z.ZodObject<{
69
69
  model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
70
70
  systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
71
71
  contextMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
72
- fork: "fork";
73
72
  fresh: "fresh";
73
+ fork: "fork";
74
74
  }>>>;
75
75
  allowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
76
76
  disallowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
@@ -114,8 +114,8 @@ declare const SubagentTemplateSettingsSchemas: {
114
114
  model: z.ZodOptional<z.ZodString>;
115
115
  systemPrompt: z.ZodOptional<z.ZodString>;
116
116
  contextMode: z.ZodDefault<z.ZodEnum<{
117
- fork: "fork";
118
117
  fresh: "fresh";
118
+ fork: "fork";
119
119
  }>>;
120
120
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
121
121
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -130,16 +130,16 @@ declare const SubagentTemplateSettingsSchemas: {
130
130
  request: z.ZodObject<{
131
131
  name: z.ZodString;
132
132
  enabled: z.ZodDefault<z.ZodBoolean>;
133
- adapterName: z.ZodString;
134
133
  model: z.ZodOptional<z.ZodString>;
135
- systemPrompt: z.ZodOptional<z.ZodString>;
136
134
  providerConfigId: z.ZodOptional<z.ZodString>;
135
+ systemPrompt: z.ZodOptional<z.ZodString>;
137
136
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
137
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
138
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ adapterName: z.ZodString;
140
140
  contextMode: z.ZodDefault<z.ZodEnum<{
141
- fork: "fork";
142
141
  fresh: "fresh";
142
+ fork: "fork";
143
143
  }>>;
144
144
  }, z.core.$strip>;
145
145
  response: z.ZodObject<{
@@ -155,8 +155,8 @@ declare const SubagentTemplateSettingsSchemas: {
155
155
  model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
156
156
  systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
157
157
  contextMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
158
- fork: "fork";
159
158
  fresh: "fresh";
159
+ fork: "fork";
160
160
  }>>>;
161
161
  allowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
162
162
  disallowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;