@makaio/framework 1.0.0-dev-1788511348215 → 1.0.0-dev-1788721567504

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 (94) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/attempt-record-codec-BORASgzn.mjs +1 -0
  3. package/dist/bus/index.d.mts +19 -19
  4. package/dist/bus/index.mjs +1 -1
  5. package/dist/{context-resolution-841T7jBI.d.mts → context-resolution-CoKFKIqz.d.mts} +3 -3
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +2 -2
  8. package/dist/contracts/canonical-model/index.d.mts +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 +3 -3
  12. package/dist/contracts/index.d.mts +616 -122
  13. package/dist/contracts/index.mjs +1 -1
  14. package/dist/contracts/materialization/index.d.mts +2 -2
  15. package/dist/contracts/session/index.d.mts +2 -2
  16. package/dist/contracts/shared/index.d.mts +1 -1
  17. package/dist/contracts/variant/index.d.mts +1 -1
  18. package/dist/contracts/worker/index.d.mts +1 -1
  19. package/dist/contracts/worker/index.mjs +1 -1
  20. package/dist/contracts/workflow/index.d.mts +2 -2
  21. package/dist/{execution-attempt-repository-DY4KTptE.d.mts → execution-attempt-repository-CRdrgou3.d.mts} +512 -3
  22. package/dist/{index-jxPncqWZ2.d.mts → index--Ws52sWV2.d.mts} +4 -4
  23. package/dist/{index-Wbd_syN2.d.mts → index-37_b--BH.d.mts} +11 -11
  24. package/dist/{index-6trZYnUP2.d.mts → index-8NdPPzUh2.d.mts} +12 -12
  25. package/dist/{index-B-3I98nw.d.mts → index-AdcDBUnc.d.mts} +95 -95
  26. package/dist/{index-C6aSnO8m.d.mts → index-BJdkVFX9.d.mts} +288 -24
  27. package/dist/{index-DXtQRehh.d.mts → index-BKIxdzIw.d.mts} +11 -11
  28. package/dist/{index-CmwAJ8-5.d.mts → index-CFI6FxC7.d.mts} +1 -1
  29. package/dist/{index-DI2lS7VT.d.mts → index-CVcG4Q3X.d.mts} +5 -5
  30. package/dist/{index-DHH-93YD.d.mts → index-CYjgoYeX.d.mts} +1 -1
  31. package/dist/{index-CDud4NAm.d.mts → index-CxwqnZpT.d.mts} +75 -75
  32. package/dist/{index-BkbnC65b.d.mts → index-CyWGSxrs.d.mts} +291 -291
  33. package/dist/{index-C146Eq_J.d.mts → index-D1wTWSLR.d.mts} +327 -327
  34. package/dist/{index-Bqk0pJBQ2.d.mts → index-DBD_oFEt2.d.mts} +1 -1
  35. package/dist/{index-BmilK-co2.d.mts → index-DV38-klA2.d.mts} +12 -36
  36. package/dist/{index-DNI6UF9h.d.mts → index-I5a37JCm.d.mts} +4 -4
  37. package/dist/kernel/extension/index.d.mts +1 -1
  38. package/dist/kernel/index.d.mts +2 -2
  39. package/dist/kernel/observability/index.d.mts +1 -1
  40. package/dist/{namespace-l-HG1rLF.d.mts → namespace-Bo94cenp.d.mts} +136 -136
  41. package/dist/{namespace-DknCutQZ.d.mts → namespace-CPm9dhi2.d.mts} +2 -2
  42. package/dist/{namespace-BNp7n_gu.d.mts → namespace-CsnrP8AD.d.mts} +3 -3
  43. package/dist/{namespace-BGRHcrmp.d.mts → namespace-CstawJgN.d.mts} +2 -2
  44. package/dist/{package-efR90JGe.d.mts → package-DkZmsdCd.d.mts} +49 -1
  45. package/dist/package-UemD2NWn.mjs +7 -0
  46. package/dist/package.json +1 -1
  47. package/dist/runtime-node/index.d.mts +2 -2
  48. package/dist/runtime-node/index.mjs +24 -24
  49. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  50. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  51. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  52. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +49 -9
  53. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  54. package/dist/runtime-registration-client-BTtFpt_k.mjs +1 -0
  55. package/dist/{schemas-D7EeKBDJ.d.mts → schemas-CJKHYluy.d.mts} +13 -13
  56. package/dist/{schemas-C1mxTfd7.d.mts → schemas-CenET9Cq.d.mts} +1 -1
  57. package/dist/{schemas-D7ScxLrf.d.mts → schemas-DTJtS14K.d.mts} +136 -136
  58. package/dist/services/adapter-runtime/index.d.mts +3 -3
  59. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  60. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  61. package/dist/services/agent-runtime/index.d.mts +2 -2
  62. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  63. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  64. package/dist/services/filesystem/namespace.d.mts +6 -6
  65. package/dist/services/filesystem/schemas.d.mts +3 -3
  66. package/dist/services/index.d.mts +86 -86
  67. package/dist/services/session/index.d.mts +1 -1
  68. package/dist/services/session/messages/namespace.d.mts +1 -1
  69. package/dist/services/settings/namespace.d.mts +10 -10
  70. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  71. package/dist/services/subagent-template/index.d.mts +2 -2
  72. package/dist/services/subagent-template/namespace.d.mts +1 -1
  73. package/dist/services/subagent-template/schemas.d.mts +1 -1
  74. package/dist/{transition-D3zUBTPc.d.mts → transition-DxsrTsn4.d.mts} +1 -1
  75. package/dist/{types-DcxBYlPA.d.mts → types-Czdm5op1.d.mts} +306 -306
  76. package/dist/{view-builder-B0j9p5C0.d.mts → view-builder-D-Wz_l_B.d.mts} +1 -1
  77. package/dist/worker-DlRdLf2d.mjs +1 -0
  78. package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
  79. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  80. package/dist/workflow-engine/index.d.mts +205 -70
  81. package/dist/workflow-engine/index.mjs +1 -1
  82. package/dist/workflow-engine/package.d.mts +1 -1
  83. package/dist/workflow-engine/package.mjs +1 -1
  84. package/dist/workflow-engine/testing/index.d.mts +55 -3
  85. package/dist/workflow-engine/testing/index.mjs +1 -1
  86. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  87. package/dist/workflow-engine/testing/sqlite.mjs +106 -38
  88. package/dist/workflow-worker-DjUfKshi.mjs +1 -0
  89. package/package.json +1 -1
  90. package/dist/attempt-record-codec-dC9LSFUE.mjs +0 -1
  91. package/dist/await-trigger-Bkg2BQfg.mjs +0 -1
  92. package/dist/package-Cgjpm9om.mjs +0 -7
  93. package/dist/worker-CARV52hT.mjs +0 -1
  94. package/dist/workflow-worker-Dul-wcOR.mjs +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 1,
3
- "fingerprint": "fa2417fd2dfee05e61a18b10f33f157cbbf11d37704edae9f264ed4226bb1b7a",
4
- "builtAt": "2026-09-04T08:43:29.190Z",
3
+ "fingerprint": "2a435beaefee8570e6147bce9ed20a2dd22a6052d73293fce72e982fc0826ee1",
4
+ "builtAt": "2026-09-06T19:06:56.001Z",
5
5
  "declarations": true,
6
6
  "declarationBackend": "tsc"
7
7
  }
@@ -0,0 +1 @@
1
+ import{ProviderAllocationRefSchema as e,WorkerAllocationLifetimeSchema as t}from"@makaio/framework/contracts";function n(e){let t=Date.parse(e);if(Number.isNaN(t))throw Error(`Expected an ISO-8601 timestamp, received '${e}'`);return t}function r(e){return new Date(n(e)).toISOString()}function i(e){return typeof e==`object`&&!!e}function a(e){if(!(!i(e)||Object.isFrozen(e))){Object.freeze(e);for(let t of Object.values(e))a(t)}}function o(e,t){let n=t(structuredClone(e));return a(n),n}function s(t){return o(t,t=>e.parse(t))}function c(e){return t.parse(e)}function l(t){let n=e.parse(t.currentRef),r=s(t.nextRef);if(n.providerId!==r.providerId)throw Error(`Allocation reference evolution must keep one provider, received '${n.providerId}' and '${r.providerId}'`);return{currentRef:n,nextRef:r}}function u(e,t){if(e.providerId!==t.providerId)throw Error(`Allocation reference for attempt '${e.executionAttemptId}' names provider '${t.providerId}' but the attempt is bound to '${e.providerId??`no provider`}'`)}const d={runtimeGeneration:0,runtimeIncarnationId:null,runtimeReadyAt:null,operationStartGate:`open`,activeOperationId:null,activeOperationKind:null,activeOperationKey:null,activeOperationGeneration:null,activeOperationAdmittedAt:null,lastCompletedOperationId:null};function f(e){return{runtimeGeneration:e.runtimeGeneration,runtimeIncarnationId:e.runtimeIncarnationId,runtimeReadyAt:e.runtimeReadyAt,operationStartGate:e.operationStartGate,activeOperationId:e.activeOperationId,activeOperationKind:e.activeOperationKind,activeOperationKey:e.activeOperationKey,activeOperationGeneration:e.activeOperationGeneration,activeOperationAdmittedAt:e.activeOperationAdmittedAt,lastCompletedOperationId:e.lastCompletedOperationId}}function p(e,t){let r=n(e.createdAt)-n(t.createdAt);return r===0?e.executionAttemptId<t.executionAttemptId?-1:+(e.executionAttemptId>t.executionAttemptId):r}function m(e){let{status:t,claimable:n,settlementKind:r,allocationRef:i,providerId:a}=e,{allocationLifetime:o,provisionerIncarnationId:s}=e;if(t!==`allocated`||n!==!0||r!=null||i===null||a===null||o===null||s===null)throw Error(`Attempt '${e.executionAttemptId}' was selected as recoverable but is not: status '${t}', claimable '${String(n)}', settlement '${String(r)}', allocation '${i===null?`none`:`present`}', provider '${String(a)}', lifetime '${String(o)}', provisioner '${String(s)}'`);return{...e,status:t,claimable:!0,settlementKind:null,allocationRef:i,providerId:a,allocationLifetime:o,provisionerIncarnationId:s}}export{c as a,u as c,r as i,f as l,p as n,s as o,n as r,l as s,d as t,m as u};
@@ -3763,6 +3763,25 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
3763
3763
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3764
3764
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
3765
3765
  sessionId: z.ZodString;
3766
+ directTools: z.ZodArray<z.ZodObject<{
3767
+ fullName: z.ZodString;
3768
+ originalName: z.ZodString;
3769
+ serverName: z.ZodString;
3770
+ description: z.ZodOptional<z.ZodString>;
3771
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3772
+ exposureMode: z.ZodEnum<{
3773
+ direct: "direct";
3774
+ discovery: "discovery";
3775
+ hidden: "hidden";
3776
+ }>;
3777
+ enabled: z.ZodBoolean;
3778
+ enabledBy: z.ZodOptional<z.ZodEnum<{
3779
+ discovery: "discovery";
3780
+ toolset: "toolset";
3781
+ }>>;
3782
+ enabledAt: z.ZodOptional<z.ZodNumber>;
3783
+ exposed: z.ZodBoolean;
3784
+ }, z.core.$strip>>;
3766
3785
  servers: z.ZodArray<z.ZodObject<{
3767
3786
  name: z.ZodString;
3768
3787
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3803,25 +3822,6 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
3803
3822
  discovery: "discovery";
3804
3823
  }>;
3805
3824
  }, z.core.$strip>>;
3806
- directTools: z.ZodArray<z.ZodObject<{
3807
- fullName: z.ZodString;
3808
- originalName: z.ZodString;
3809
- serverName: z.ZodString;
3810
- description: z.ZodOptional<z.ZodString>;
3811
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3812
- exposureMode: z.ZodEnum<{
3813
- direct: "direct";
3814
- discovery: "discovery";
3815
- hidden: "hidden";
3816
- }>;
3817
- enabled: z.ZodBoolean;
3818
- enabledBy: z.ZodOptional<z.ZodEnum<{
3819
- discovery: "discovery";
3820
- toolset: "toolset";
3821
- }>>;
3822
- enabledAt: z.ZodOptional<z.ZodNumber>;
3823
- exposed: z.ZodBoolean;
3824
- }, z.core.$strip>>;
3825
3825
  discoverableTools: z.ZodArray<z.ZodObject<{
3826
3826
  fullName: z.ZodString;
3827
3827
  originalName: z.ZodString;