@makaio/framework 1.0.0-dev-1790760814648 → 1.0.0-dev-1790772200584

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 (47) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/contracts/artifact/index.d.mts +2 -2
  3. package/dist/contracts/capabilities/index.d.mts +1 -1
  4. package/dist/contracts/client/index.d.mts +1 -1
  5. package/dist/contracts/extension/index.d.mts +2 -2
  6. package/dist/contracts/harness/index.d.mts +1 -1
  7. package/dist/contracts/index.d.mts +13 -13
  8. package/dist/contracts/materialization/index.d.mts +2 -2
  9. package/dist/contracts/workflow/index.d.mts +2 -2
  10. package/dist/{fast-connection-Y4_AFwCD.mjs → fast-connection-CIZ6nL7o.mjs} +1 -1
  11. package/dist/inbound-hooks/fast-connection.d.mts +1 -1
  12. package/dist/inbound-hooks/fast-connection.mjs +1 -1
  13. package/dist/inbound-hooks/index.d.mts +1 -1
  14. package/dist/inbound-hooks/index.mjs +1 -1
  15. package/dist/{index-gOYLLgKk.d.mts → index-21Tx9_N1.d.mts} +12 -12
  16. package/dist/{index-MzTQNTb8.d.mts → index-BBrLhtLK.d.mts} +1 -1
  17. package/dist/{index-ClDAqLxW.d.mts → index-BPoX2Q9Z.d.mts} +13 -13
  18. package/dist/{index-D9Ome4qp.d.mts → index-CBzHX2vt.d.mts} +1 -1
  19. package/dist/{index-f9ok_Fxi.d.mts → index-CMmUS-p2.d.mts} +247 -247
  20. package/dist/{index-CfGPuR1W.d.mts → index-DeSmhDs9.d.mts} +1 -1
  21. package/dist/{index-BytbaguH.d.mts → index-DneUbrTU.d.mts} +4 -4
  22. package/dist/{index-Bl995t8Y.d.mts → index-DulipRwg.d.mts} +10 -10
  23. package/dist/{index-RiRTBXfr.d.mts → index-v1-To1jx.d.mts} +3 -3
  24. package/dist/{index-C0NhPcTU.d.mts → index-vARKBSt9.d.mts} +5 -5
  25. package/dist/kernel/extension/index.d.mts +2 -2
  26. package/dist/kernel/index.d.mts +2 -2
  27. package/dist/kernel/observability/index.d.mts +1 -1
  28. package/dist/{namespace-D_NJoYyN.d.mts → namespace-DK5qZpST.d.mts} +6 -6
  29. package/dist/node/transports/index.d.mts +12 -1
  30. package/dist/node/transports/index.mjs +2 -2
  31. package/dist/package.json +1 -1
  32. package/dist/{schemas-DyTbvDp-.d.mts → schemas-BKE3qw_w.d.mts} +1 -1
  33. package/dist/{schemas-yyNP39HU.d.mts → schemas-CtL2su-K.d.mts} +4 -4
  34. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  35. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  36. package/dist/services/context-rules/index.d.mts +3 -3
  37. package/dist/services/filesystem/namespace.d.mts +6 -6
  38. package/dist/services/filesystem/schemas.d.mts +3 -3
  39. package/dist/services/harness/index.d.mts +3 -3
  40. package/dist/services/index.d.mts +10 -10
  41. package/dist/services/provider-context/index.d.mts +1 -1
  42. package/dist/services/session/index.d.mts +1 -1
  43. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  44. package/dist/{transition-CzxHvafT.d.mts → transition-DNNBGMtx.d.mts} +1 -1
  45. package/dist/{view-builder-BLdSezFD.d.mts → view-builder-HU_v1Jg7.d.mts} +1 -1
  46. package/dist/workflow-engine/index.d.mts +15 -15
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- import{n as e,t}from"../fast-connection-Y4_AFwCD.mjs";export{t as DEFAULT_FAST_HOOK_BUS_URL,e as connectFastHookBus};
1
+ import{n as e,t}from"../fast-connection-CIZ6nL7o.mjs";export{t as DEFAULT_FAST_HOOK_BUS_URL,e as connectFastHookBus};
@@ -76,7 +76,7 @@ interface FastHookBusOptions {
76
76
  readonly connectTimeoutMs?: number;
77
77
  /** HMAC secret for bus authentication. Falls back to `MAKAIO_BUS_SECRET`. */
78
78
  readonly secret?: string;
79
- /** Transport debug logging (console.info, stdout); falls back to MAKAIO_DEBUG === 'true'. */
79
+ /** Transport debug logging (written to stderr; stdout is the hook response channel); falls back to MAKAIO_DEBUG === 'true'. */
80
80
  readonly debug?: boolean;
81
81
  }
82
82
  /**
@@ -1 +1 @@
1
- import{i as e,n as t,r as n,t as r}from"../fast-connection-Y4_AFwCD.mjs";import{parseJsonMetadata as i,parseJsonPayload as a,readProcessStdinText as o,safeReadStdinText as s}from"./stdio.mjs";import{z as c}from"zod";import{createBusNamespace as l}from"@makaio/framework/core";const u=c.string().regex(/^[a-z0-9-]+$/,`source must contain only lowercase letters, numbers, and hyphens`),d=c.object({eventName:c.string().min(1),receivedAt:c.number().int().finite().nonnegative(),argv:c.array(c.string()),stdinText:c.string(),payload:c.record(c.string(),c.unknown()),metadata:c.record(c.string(),c.unknown()).optional()});function f(e){return u.parse(e.trim().toLowerCase())}function p(e){return l(`hook:${f(e)}`,{received:d})}function m(e){return{subject:`received`,$meta:{namespace:`hook:${f(e)}`,isRequest:!1,local:!1,channel:!1}}}async function h(e,t,n,r={}){let i=r.failOpen??!0;try{await e.emit(m(t),n)}catch(e){if(!i)throw e}}async function g(r,i,a={}){let o=n(a.timeoutMs??a.connectTimeoutMs),s=e(o),c=await t({name:`hook-${r}`,busUrl:a.busUrl,secret:a.secret,timeoutMs:o,debug:a.debug});if(!c)return;let l,u=h(c.bus,r,i,{failOpen:!0});u.catch(()=>void 0);try{await Promise.race([u,new Promise((e,t)=>{l=setTimeout(()=>{t(Error(`hook bus delivery timeout`))},s())})])}catch{return}finally{clearTimeout(l),c.dispose()}}export{r as DEFAULT_FAST_HOOK_BUS_URL,u as InboundHookSourceSchema,d as RawInboundHookPayloadSchema,t as connectFastHookBus,p as createInboundHookNamespace,m as createInboundHookReceivedSubject,h as emitInboundHookReceived,g as emitInboundHookReceivedFast,f as normalizeInboundHookSource,i as parseJsonMetadata,a as parseJsonPayload,o as readProcessStdinText,s as safeReadStdinText};
1
+ import{i as e,n as t,r as n,t as r}from"../fast-connection-CIZ6nL7o.mjs";import{parseJsonMetadata as i,parseJsonPayload as a,readProcessStdinText as o,safeReadStdinText as s}from"./stdio.mjs";import{z as c}from"zod";import{createBusNamespace as l}from"@makaio/framework/core";const u=c.string().regex(/^[a-z0-9-]+$/,`source must contain only lowercase letters, numbers, and hyphens`),d=c.object({eventName:c.string().min(1),receivedAt:c.number().int().finite().nonnegative(),argv:c.array(c.string()),stdinText:c.string(),payload:c.record(c.string(),c.unknown()),metadata:c.record(c.string(),c.unknown()).optional()});function f(e){return u.parse(e.trim().toLowerCase())}function p(e){return l(`hook:${f(e)}`,{received:d})}function m(e){return{subject:`received`,$meta:{namespace:`hook:${f(e)}`,isRequest:!1,local:!1,channel:!1}}}async function h(e,t,n,r={}){let i=r.failOpen??!0;try{await e.emit(m(t),n)}catch(e){if(!i)throw e}}async function g(r,i,a={}){let o=n(a.timeoutMs??a.connectTimeoutMs),s=e(o),c=await t({name:`hook-${r}`,busUrl:a.busUrl,secret:a.secret,timeoutMs:o,debug:a.debug});if(!c)return;let l,u=h(c.bus,r,i,{failOpen:!0});u.catch(()=>void 0);try{await Promise.race([u,new Promise((e,t)=>{l=setTimeout(()=>{t(Error(`hook bus delivery timeout`))},s())})])}catch{return}finally{clearTimeout(l),c.dispose()}}export{r as DEFAULT_FAST_HOOK_BUS_URL,u as InboundHookSourceSchema,d as RawInboundHookPayloadSchema,t as connectFastHookBus,p as createInboundHookNamespace,m as createInboundHookReceivedSubject,h as emitInboundHookReceived,g as emitInboundHookReceivedFast,f as normalizeInboundHookSource,i as parseJsonMetadata,a as parseJsonPayload,o as readProcessStdinText,s as safeReadStdinText};
@@ -20,9 +20,9 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
20
20
  declare const ComponentStateSchema: z.ZodEnum<{
21
21
  failed: "failed";
22
22
  discovered: "discovered";
23
+ stopped: "stopped";
23
24
  active: "active";
24
25
  skipped: "skipped";
25
- stopped: "stopped";
26
26
  initializing: "initializing";
27
27
  }>;
28
28
  /** Inferred union of all valid component lifecycle states. */
@@ -49,9 +49,9 @@ declare const ComponentInfoSchema: z.ZodObject<{
49
49
  state: z.ZodEnum<{
50
50
  failed: "failed";
51
51
  discovered: "discovered";
52
+ stopped: "stopped";
52
53
  active: "active";
53
54
  skipped: "skipped";
54
- stopped: "stopped";
55
55
  initializing: "initializing";
56
56
  }>;
57
57
  error: z.ZodOptional<z.ZodString>;
@@ -70,9 +70,9 @@ declare const ServiceInfoSchema: z.ZodObject<{
70
70
  state: z.ZodEnum<{
71
71
  failed: "failed";
72
72
  discovered: "discovered";
73
+ stopped: "stopped";
73
74
  active: "active";
74
75
  skipped: "skipped";
75
- stopped: "stopped";
76
76
  initializing: "initializing";
77
77
  }>;
78
78
  error: z.ZodOptional<z.ZodString>;
@@ -92,9 +92,9 @@ declare const ExtensionInfoSchema: z.ZodObject<{
92
92
  state: z.ZodEnum<{
93
93
  failed: "failed";
94
94
  discovered: "discovered";
95
+ stopped: "stopped";
95
96
  active: "active";
96
97
  skipped: "skipped";
97
- stopped: "stopped";
98
98
  initializing: "initializing";
99
99
  }>;
100
100
  error: z.ZodOptional<z.ZodString>;
@@ -229,17 +229,17 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
229
229
  from: z.ZodEnum<{
230
230
  failed: "failed";
231
231
  discovered: "discovered";
232
+ stopped: "stopped";
232
233
  active: "active";
233
234
  skipped: "skipped";
234
- stopped: "stopped";
235
235
  initializing: "initializing";
236
236
  }>;
237
237
  to: z.ZodEnum<{
238
238
  failed: "failed";
239
239
  discovered: "discovered";
240
+ stopped: "stopped";
240
241
  active: "active";
241
242
  skipped: "skipped";
242
- stopped: "stopped";
243
243
  initializing: "initializing";
244
244
  }>;
245
245
  error: z.ZodOptional<z.ZodString>;
@@ -272,9 +272,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
272
272
  state: z.ZodEnum<{
273
273
  failed: "failed";
274
274
  discovered: "discovered";
275
+ stopped: "stopped";
275
276
  active: "active";
276
277
  skipped: "skipped";
277
- stopped: "stopped";
278
278
  initializing: "initializing";
279
279
  }>;
280
280
  error: z.ZodOptional<z.ZodString>;
@@ -313,9 +313,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
313
313
  state: z.ZodEnum<{
314
314
  failed: "failed";
315
315
  discovered: "discovered";
316
+ stopped: "stopped";
316
317
  active: "active";
317
318
  skipped: "skipped";
318
- stopped: "stopped";
319
319
  initializing: "initializing";
320
320
  }>;
321
321
  error: z.ZodOptional<z.ZodString>;
@@ -840,17 +840,17 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
840
840
  from: z.ZodEnum<{
841
841
  failed: "failed";
842
842
  discovered: "discovered";
843
+ stopped: "stopped";
843
844
  active: "active";
844
845
  skipped: "skipped";
845
- stopped: "stopped";
846
846
  initializing: "initializing";
847
847
  }>;
848
848
  to: z.ZodEnum<{
849
849
  failed: "failed";
850
850
  discovered: "discovered";
851
+ stopped: "stopped";
851
852
  active: "active";
852
853
  skipped: "skipped";
853
- stopped: "stopped";
854
854
  initializing: "initializing";
855
855
  }>;
856
856
  error: z.ZodOptional<z.ZodString>;
@@ -883,9 +883,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
883
883
  state: z.ZodEnum<{
884
884
  failed: "failed";
885
885
  discovered: "discovered";
886
+ stopped: "stopped";
886
887
  active: "active";
887
888
  skipped: "skipped";
888
- stopped: "stopped";
889
889
  initializing: "initializing";
890
890
  }>;
891
891
  error: z.ZodOptional<z.ZodString>;
@@ -924,9 +924,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
924
924
  state: z.ZodEnum<{
925
925
  failed: "failed";
926
926
  discovered: "discovered";
927
+ stopped: "stopped";
927
928
  active: "active";
928
929
  skipped: "skipped";
929
- stopped: "stopped";
930
930
  initializing: "initializing";
931
931
  }>;
932
932
  error: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-yyNP39HU.mjs";
1
+ import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-CtL2su-K.mjs";
2
2
  import { ProviderContext, ResolvedProviderContext } from "@makaio/framework/contracts";
3
3
  import { IMakaioBus } from "@makaio/framework/bus";
4
4
 
@@ -1,4 +1,4 @@
1
- import { x as ArtifactRevision$1 } from "./schemas-DyTbvDp-.mjs";
1
+ import { x as ArtifactRevision$1 } from "./schemas-BKE3qw_w.mjs";
2
2
  import { a as JsonObjectContractSchema, l as JsonValue$1 } from "./json-value-B2gMynW3.mjs";
3
3
  import { n as AutomationTriggerBinding$1, o as AutomationTriggerParams, u as DefinedAutomationTrigger } from "./definition-i4PufQpo.mjs";
4
4
  import { z } from "zod";
@@ -145,10 +145,10 @@ type WorkflowSourceLocation = z.infer<typeof WorkflowSourceLocationSchema>;
145
145
  * - `sequence` — ordered list of child nodes (the structural container)
146
146
  */
147
147
  declare const WorkflowNodeTypeSchema: z.ZodEnum<{
148
- sequence: "sequence";
149
148
  station: "station";
150
149
  "delegate-agent": "delegate-agent";
151
150
  "delegate-role": "delegate-role";
151
+ sequence: "sequence";
152
152
  parallel: "parallel";
153
153
  gate: "gate";
154
154
  iterate: "iterate";
@@ -872,10 +872,10 @@ declare const WorkflowFrameStateSchema$1: z.ZodObject<{
872
872
  frameId: z.ZodString;
873
873
  nodeId: z.ZodString;
874
874
  nodeType: z.ZodEnum<{
875
- sequence: "sequence";
876
875
  station: "station";
877
876
  "delegate-agent": "delegate-agent";
878
877
  "delegate-role": "delegate-role";
878
+ sequence: "sequence";
879
879
  parallel: "parallel";
880
880
  gate: "gate";
881
881
  iterate: "iterate";
@@ -4129,10 +4129,10 @@ declare const WorkflowSchemas: {
4129
4129
  frameId: z.ZodString;
4130
4130
  nodeId: z.ZodString;
4131
4131
  nodeType: z.ZodEnum<{
4132
- sequence: "sequence";
4133
4132
  station: "station";
4134
4133
  "delegate-agent": "delegate-agent";
4135
4134
  "delegate-role": "delegate-role";
4135
+ sequence: "sequence";
4136
4136
  parallel: "parallel";
4137
4137
  gate: "gate";
4138
4138
  iterate: "iterate";
@@ -4950,10 +4950,10 @@ declare const WorkflowSchemas: {
4950
4950
  frameId: z.ZodString;
4951
4951
  nodeId: z.ZodString;
4952
4952
  nodeType: z.ZodEnum<{
4953
- sequence: "sequence";
4954
4953
  station: "station";
4955
4954
  "delegate-agent": "delegate-agent";
4956
4955
  "delegate-role": "delegate-role";
4956
+ sequence: "sequence";
4957
4957
  parallel: "parallel";
4958
4958
  gate: "gate";
4959
4959
  iterate: "iterate";
@@ -5112,10 +5112,10 @@ declare const WorkflowSchemas: {
5112
5112
  frameId: z.ZodString;
5113
5113
  nodeId: z.ZodString;
5114
5114
  nodeType: z.ZodEnum<{
5115
- sequence: "sequence";
5116
5115
  station: "station";
5117
5116
  "delegate-agent": "delegate-agent";
5118
5117
  "delegate-role": "delegate-role";
5118
+ sequence: "sequence";
5119
5119
  parallel: "parallel";
5120
5120
  gate: "gate";
5121
5121
  iterate: "iterate";
@@ -7111,10 +7111,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7111
7111
  frameId: z.ZodString;
7112
7112
  nodeId: z.ZodString;
7113
7113
  nodeType: z.ZodEnum<{
7114
- sequence: "sequence";
7115
7114
  station: "station";
7116
7115
  "delegate-agent": "delegate-agent";
7117
7116
  "delegate-role": "delegate-role";
7117
+ sequence: "sequence";
7118
7118
  parallel: "parallel";
7119
7119
  gate: "gate";
7120
7120
  iterate: "iterate";
@@ -7932,10 +7932,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7932
7932
  frameId: z.ZodString;
7933
7933
  nodeId: z.ZodString;
7934
7934
  nodeType: z.ZodEnum<{
7935
- sequence: "sequence";
7936
7935
  station: "station";
7937
7936
  "delegate-agent": "delegate-agent";
7938
7937
  "delegate-role": "delegate-role";
7938
+ sequence: "sequence";
7939
7939
  parallel: "parallel";
7940
7940
  gate: "gate";
7941
7941
  iterate: "iterate";
@@ -8094,10 +8094,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
8094
8094
  frameId: z.ZodString;
8095
8095
  nodeId: z.ZodString;
8096
8096
  nodeType: z.ZodEnum<{
8097
- sequence: "sequence";
8098
8097
  station: "station";
8099
8098
  "delegate-agent": "delegate-agent";
8100
8099
  "delegate-role": "delegate-role";
8100
+ sequence: "sequence";
8101
8101
  parallel: "parallel";
8102
8102
  gate: "gate";
8103
8103
  iterate: "iterate";
@@ -10093,10 +10093,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10093
10093
  frameId: z.ZodString;
10094
10094
  nodeId: z.ZodString;
10095
10095
  nodeType: z.ZodEnum<{
10096
- sequence: "sequence";
10097
10096
  station: "station";
10098
10097
  "delegate-agent": "delegate-agent";
10099
10098
  "delegate-role": "delegate-role";
10099
+ sequence: "sequence";
10100
10100
  parallel: "parallel";
10101
10101
  gate: "gate";
10102
10102
  iterate: "iterate";
@@ -10914,10 +10914,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10914
10914
  frameId: z.ZodString;
10915
10915
  nodeId: z.ZodString;
10916
10916
  nodeType: z.ZodEnum<{
10917
- sequence: "sequence";
10918
10917
  station: "station";
10919
10918
  "delegate-agent": "delegate-agent";
10920
10919
  "delegate-role": "delegate-role";
10920
+ sequence: "sequence";
10921
10921
  parallel: "parallel";
10922
10922
  gate: "gate";
10923
10923
  iterate: "iterate";
@@ -11076,10 +11076,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
11076
11076
  frameId: z.ZodString;
11077
11077
  nodeId: z.ZodString;
11078
11078
  nodeType: z.ZodEnum<{
11079
- sequence: "sequence";
11080
11079
  station: "station";
11081
11080
  "delegate-agent": "delegate-agent";
11082
11081
  "delegate-role": "delegate-role";
11082
+ sequence: "sequence";
11083
11083
  parallel: "parallel";
11084
11084
  gate: "gate";
11085
11085
  iterate: "iterate";
@@ -12734,10 +12734,10 @@ declare const WorkLogFrameEntrySchema$1: z.ZodObject<{
12734
12734
  frameId: z.ZodString;
12735
12735
  nodeId: z.ZodString;
12736
12736
  nodeType: z.ZodEnum<{
12737
- sequence: "sequence";
12738
12737
  station: "station";
12739
12738
  "delegate-agent": "delegate-agent";
12740
12739
  "delegate-role": "delegate-role";
12740
+ sequence: "sequence";
12741
12741
  parallel: "parallel";
12742
12742
  gate: "gate";
12743
12743
  iterate: "iterate";
@@ -1,4 +1,4 @@
1
- import { D as ArtifactViewModel$1 } from "./view-builder-BLdSezFD.mjs";
1
+ import { D as ArtifactViewModel$1 } from "./view-builder-HU_v1Jg7.mjs";
2
2
  import { z } from "zod";
3
3
  import * as _$_makaio_core0 from "@makaio/framework/core";
4
4
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";