@makaio/framework 1.0.0-dev-1790783144258 → 1.0.0-dev-1791396836202

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/adapters/claude/index.d.mts +20 -20
  3. package/dist/artifact-BbNQHNDL.mjs +1 -0
  4. package/dist/bus/index.mjs +1 -1
  5. package/dist/bus-CtT6XeB_.mjs +9 -0
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  8. package/dist/contracts/artifact/index.d.mts +3 -3
  9. package/dist/contracts/artifact/index.mjs +1 -1
  10. package/dist/contracts/automation-trigger/index.d.mts +1 -1
  11. package/dist/contracts/capabilities/index.d.mts +1 -1
  12. package/dist/contracts/client/index.d.mts +2 -2
  13. package/dist/contracts/extension/index.d.mts +4 -4
  14. package/dist/contracts/harness/index.d.mts +1 -1
  15. package/dist/contracts/index.d.mts +58 -58
  16. package/dist/contracts/index.mjs +1 -1
  17. package/dist/contracts/materialization/index.d.mts +2 -2
  18. package/dist/contracts/materialization/index.mjs +1 -1
  19. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  20. package/dist/contracts/reaction/index.d.mts +1 -1
  21. package/dist/contracts/worker/index.d.mts +1 -1
  22. package/dist/contracts/worker/index.mjs +1 -1
  23. package/dist/contracts/workflow/index.d.mts +2 -2
  24. package/dist/contracts/workflow/index.mjs +1 -1
  25. package/dist/{contribution-CsDOPiDo.d.mts → contribution-CCVRsaNB.d.mts} +1 -1
  26. package/dist/{extension-context-BY9o1ITm.d.mts → extension-context-BWrjVPXR.d.mts} +3 -3
  27. package/dist/{framework-packages-blqho6Nk.mjs → framework-packages-CdpSqDeo.mjs} +1 -1
  28. package/dist/{hook-responses-Xxq6QAL2.d.mts → hook-responses-v6EA_7WC.d.mts} +1 -1
  29. package/dist/{index-D9Ome4qp.d.mts → index-BXaNt9GP.d.mts} +1 -1
  30. package/dist/{index-DWWP2cUb.d.mts → index-Bt6KIvVk.d.mts} +1 -1
  31. package/dist/{index-PymaxRkQ2.d.mts → index-CFet5T7v2.d.mts} +6 -6
  32. package/dist/{index-VG-C-ZHN.d.mts → index-CgcMrxhm.d.mts} +16 -16
  33. package/dist/{index-Dnc0PaTv2.d.mts → index-ChwEMUbc2.d.mts} +12 -12
  34. package/dist/{index-OA1A-NWE.d.mts → index-CjM6Fi-N.d.mts} +1 -1
  35. package/dist/{index-DMFFSC7x.d.mts → index-Cxx1aoPR.d.mts} +1 -1
  36. package/dist/{index-D_Zdnh0U.d.mts → index-D5eIy_qx.d.mts} +7 -7
  37. package/dist/{index-CDezXPm9.d.mts → index-DBkmFhrn.d.mts} +411 -289
  38. package/dist/{index-C9X6ei7S.d.mts → index-DneUbrTU.d.mts} +4 -4
  39. package/dist/{index-CnVhfLrY.d.mts → index-DnsMV2xK.d.mts} +57 -57
  40. package/dist/{index-Fmdwbgei.d.mts → index-HsD17NLG.d.mts} +1 -1
  41. package/dist/{index-BrnOW7-5.d.mts → index-Rd9Teoza.d.mts} +1 -1
  42. package/dist/{index-Fo4ALycy.d.mts → index-y6zuCdvH.d.mts} +26 -26
  43. package/dist/kernel/extension/index.d.mts +2 -2
  44. package/dist/kernel/index.d.mts +2 -2
  45. package/dist/kernel/observability/index.d.mts +1 -1
  46. package/dist/{materialization-BzSgnv2R.mjs → materialization-C1qlFBV2.mjs} +1 -1
  47. package/dist/{namespace-BH9U2C1O.d.mts → namespace-ChJ-C9m_.d.mts} +2 -2
  48. package/dist/package.json +1 -1
  49. package/dist/packages-BOM7wECe.mjs +1 -0
  50. package/dist/{packages-Fy4a6vQy.d.mts → packages-g6BtlUF9.d.mts} +9 -6
  51. package/dist/{schemas-JPaSXxNr.d.mts → schemas-BBMHnFq8.d.mts} +4 -4
  52. package/dist/{schemas-CEc_v3dl.d.mts → schemas-DKaUrczB.d.mts} +2 -2
  53. package/dist/{schemas-DyTbvDp-.d.mts → schemas-DnrIc9g7.d.mts} +50 -11
  54. package/dist/{schemas-BYEgjPst2.d.mts → schemas-DrrpHMbF2.d.mts} +7 -7
  55. package/dist/{schemas-CiJpGURT.d.mts → schemas-Y3EJu698.d.mts} +2 -2
  56. package/dist/{schemas-BvDsO8Is.mjs → schemas-uNzmiLso.mjs} +1 -1
  57. package/dist/services/context-rules/index.d.mts +3 -3
  58. package/dist/services/execution-target/index.d.mts +2 -2
  59. package/dist/services/execution-target/namespace.d.mts +1 -1
  60. package/dist/services/execution-target/schemas.d.mts +1 -1
  61. package/dist/services/filesystem/namespace.d.mts +6 -6
  62. package/dist/services/filesystem/schemas.d.mts +3 -3
  63. package/dist/services/git/namespace.d.mts +2 -2
  64. package/dist/services/git/schemas.d.mts +2 -2
  65. package/dist/services/index.d.mts +18 -18
  66. package/dist/services/index.mjs +1 -1
  67. package/dist/services/materialization/index.d.mts +1 -1
  68. package/dist/services/materialization/index.mjs +1 -1
  69. package/dist/services/preferences/index.d.mts +2 -2
  70. package/dist/services/preferences/schemas.d.mts +1 -1
  71. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  72. package/dist/services/session/handlers/index.d.mts +1 -1
  73. package/dist/services/session/index.d.mts +2 -2
  74. package/dist/services/settings/namespace.d.mts +2 -2
  75. package/dist/services/subagent-template/index.d.mts +1 -1
  76. package/dist/services/subagent-template/schemas.d.mts +1 -1
  77. package/dist/services/tools/index.mjs +1 -1
  78. package/dist/services/workflow-transitions/index.mjs +1 -1
  79. package/dist/{session-lineage-DZr5w2-z.d.mts → session-lineage-Bjh0Ccu7.d.mts} +1 -1
  80. package/dist/{storage-namespace-Cl8qtHDu.d.mts → storage-namespace-DoxNJ9Cg.d.mts} +10 -10
  81. package/dist/{tools-Cbuj-ClQ.mjs → tools-EK2HiPee.mjs} +1 -1
  82. package/dist/{transition-CzxHvafT.d.mts → transition-yohyGRmc.d.mts} +1 -1
  83. package/dist/ui-kernel/index.d.mts +4 -4
  84. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  85. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  86. package/dist/{view-builder-BLdSezFD.d.mts → view-builder-BjVjGZAI.d.mts} +2 -2
  87. package/dist/{worker-toBnRJ0A.mjs → worker-DulBFC0P.mjs} +1 -1
  88. package/dist/{workflow-BDDB6EJi.mjs → workflow-Dvv_8Xu6.mjs} +1 -1
  89. package/dist/workflow-engine/index.d.mts +31 -31
  90. package/dist/{workflow-transitions-CvT6P03B.mjs → workflow-transitions-ztq90FUj.mjs} +1 -1
  91. package/package.json +1 -1
  92. package/dist/artifact-XE82Q2bH.mjs +0 -1
  93. package/dist/bus-B-ksy7YX.mjs +0 -9
  94. package/dist/packages-CZ2x-Ver.mjs +0 -1
@@ -13,9 +13,9 @@ declare const PreferenceKeySchema: z.ZodObject<{
13
13
  scope: z.ZodString;
14
14
  context: z.ZodOptional<z.ZodString>;
15
15
  viewport: z.ZodOptional<z.ZodEnum<{
16
- mobile: "mobile";
17
16
  desktop: "desktop";
18
17
  tablet: "tablet";
18
+ mobile: "mobile";
19
19
  }>>;
20
20
  }, z.core.$strip>;
21
21
  type PreferenceKey = z.infer<typeof PreferenceKeySchema>;
@@ -33,9 +33,9 @@ declare const PreferenceItemSchema: z.ZodObject<{
33
33
  scope: z.ZodString;
34
34
  context: z.ZodOptional<z.ZodString>;
35
35
  viewport: z.ZodOptional<z.ZodEnum<{
36
- mobile: "mobile";
37
36
  desktop: "desktop";
38
37
  tablet: "tablet";
38
+ mobile: "mobile";
39
39
  }>>;
40
40
  }, z.core.$strip>;
41
41
  category: z.ZodString;
@@ -67,9 +67,9 @@ declare const PreferencesSchemas: {
67
67
  scope: z.ZodString;
68
68
  context: z.ZodOptional<z.ZodString>;
69
69
  viewport: z.ZodOptional<z.ZodEnum<{
70
- mobile: "mobile";
71
70
  desktop: "desktop";
72
71
  tablet: "tablet";
72
+ mobile: "mobile";
73
73
  }>>;
74
74
  }, z.core.$strip>;
75
75
  category: z.ZodString;
@@ -94,9 +94,9 @@ declare const PreferencesSchemas: {
94
94
  scope: z.ZodString;
95
95
  context: z.ZodOptional<z.ZodString>;
96
96
  viewport: z.ZodOptional<z.ZodEnum<{
97
- mobile: "mobile";
98
97
  desktop: "desktop";
99
98
  tablet: "tablet";
99
+ mobile: "mobile";
100
100
  }>>;
101
101
  }, z.core.$strip>;
102
102
  category: z.ZodString;
@@ -122,9 +122,9 @@ declare const PreferencesSchemas: {
122
122
  scope: z.ZodString;
123
123
  context: z.ZodOptional<z.ZodString>;
124
124
  viewport: z.ZodOptional<z.ZodEnum<{
125
- mobile: "mobile";
126
125
  desktop: "desktop";
127
126
  tablet: "tablet";
127
+ mobile: "mobile";
128
128
  }>>;
129
129
  }, z.core.$strip>;
130
130
  category: z.ZodString;
@@ -149,9 +149,9 @@ declare const PreferencesSchemas: {
149
149
  scope: z.ZodOptional<z.ZodString>;
150
150
  context: z.ZodOptional<z.ZodOptional<z.ZodString>>;
151
151
  viewport: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
152
- mobile: "mobile";
153
152
  desktop: "desktop";
154
153
  tablet: "tablet";
154
+ mobile: "mobile";
155
155
  }>>>;
156
156
  }, z.core.$strip>>;
157
157
  category: z.ZodOptional<z.ZodString>;
@@ -166,9 +166,9 @@ declare const PreferencesSchemas: {
166
166
  scope: z.ZodString;
167
167
  context: z.ZodOptional<z.ZodString>;
168
168
  viewport: z.ZodOptional<z.ZodEnum<{
169
- mobile: "mobile";
170
169
  desktop: "desktop";
171
170
  tablet: "tablet";
171
+ mobile: "mobile";
172
172
  }>>;
173
173
  }, z.core.$strip>;
174
174
  category: z.ZodString;
@@ -46,8 +46,8 @@ declare const SubagentTemplateCreateSchema: z.ZodObject<{
46
46
  name: z.ZodString;
47
47
  enabled: z.ZodDefault<z.ZodBoolean>;
48
48
  adapterName: z.ZodString;
49
- model: z.ZodOptional<z.ZodString>;
50
49
  providerConfigId: z.ZodOptional<z.ZodString>;
50
+ model: z.ZodOptional<z.ZodString>;
51
51
  systemPrompt: z.ZodOptional<z.ZodString>;
52
52
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
53
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -131,8 +131,8 @@ declare const SubagentTemplateSettingsSchemas: {
131
131
  name: z.ZodString;
132
132
  enabled: z.ZodDefault<z.ZodBoolean>;
133
133
  adapterName: z.ZodString;
134
- model: z.ZodOptional<z.ZodString>;
135
134
  providerConfigId: z.ZodOptional<z.ZodString>;
135
+ model: z.ZodOptional<z.ZodString>;
136
136
  systemPrompt: z.ZodOptional<z.ZodString>;
137
137
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
138
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{d as n,r,w as i}from"./kind-registration-CdjmVxY_.mjs";import{t as a}from"./repo-context-cO-TLEGN.mjs";import{z as o}from"zod";const s=o.string().min(1).regex(/\S/),c=o.strictObject({refClass:o.literal(`artifact`),kind:s,id:s,revision:s}),l=`x-makaio-value-type`,u=`evidence/v1`,d=o.string().min(1).regex(/\S/),f=o.strictObject({kind:o.literal(`whole-source`)}),p=o.strictObject({kind:o.literal(`lines`),startLine:o.number().int().positive(),lineCount:o.number().int().positive()}),m=o.strictObject({kind:o.literal(`data-path`),path:r}),h=o.strictObject({kind:o.literal(`git-file`),repository:a.strict(),path:d,commit:o.string().regex(/^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$/)}),g=o.strictObject({kind:o.literal(`confluence-page`),site:d,pageId:d,version:o.number().int().positive()}),_=o.strictObject({kind:o.literal(`artifact`),reference:c}),v=o.union([o.strictObject({source:h,location:o.union([f,p]),excerpt:o.string().optional()}),o.strictObject({source:g,location:f,excerpt:o.string().optional()}),o.strictObject({source:_,location:o.union([f,m]),excerpt:o.string().optional()})]).meta({title:`EvidenceValue`,description:`An immutable, directly cited source and its source-specific location.`,[l]:u}),y=o.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`),b=o.object({kind:o.string().min(1),id:o.string().min(1),displayName:o.string().optional()}),x=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:o.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),S=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}),C=o.object({refClass:o.literal(`local`).default(`local`),artifact:c,localId:o.string().min(1)}),w=o.object({refClass:o.literal(`evidence`).default(`evidence`),kind:o.string().min(1),id:o.string().min(1),revision:o.string().min(1).optional(),locator:o.string().min(1).optional()}),T=o.strictObject({refClass:o.literal(`entity`),entityType:o.string().min(1),id:o.string().min(1)}),E=o.discriminatedUnion(`refClass`,[c,C,w,T]);function D(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e||!(`revision`in e)?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const O=o.preprocess(D,E),k=o.discriminatedUnion(`refClass`,[c.extend({revision:c.shape.revision.optional()}),C,w,T]);function A(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const j=o.preprocess(A,k),M=o.object({type:o.string().min(1),sourceLocalId:o.string().min(1).regex(/\S/).optional(),target:O}),N=o.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),P=o.object({kind:o.string().min(1),actor:b,timestamp:o.number().int().nonnegative(),detail:o.string().optional(),evidenceRef:O.optional()}),F=o.object({level:N,basis:o.array(P)}),I=o.object({id:o.string().min(1),kind:o.string().min(1),summary:o.string().min(1),detail:o.string().optional(),severity:o.enum([`info`,`warning`,`blocker`]).optional(),tags:o.array(o.string().min(1)).optional(),regarding:o.union([c,C]).optional(),evidence:o.union([c,w]).optional(),actor:b,timestamp:o.number().int().nonnegative()}),L=o.object({markdown:o.string().optional(),summary:o.string().optional(),plaintext:o.string().optional()}),R=o.object({kind:c.shape.kind,id:c.shape.id,slug:i,revision:c.shape.revision,scope:x,schemaVersion:n,data:e,relations:o.array(M),evidence:o.array(v).optional(),confidence:F.optional(),representations:L.optional(),actor:b,timestamp:o.number().int().nonnegative(),createdAt:o.number().int().nonnegative().optional()}),z=o.object({type:o.string().min(1),symmetry:o.enum([`asymmetric`,`symmetric`]),implication:o.string().min(1).optional(),sourceKinds:o.array(o.string().min(1)).optional(),targetKinds:o.array(o.string().min(1)).optional(),targetRefClasses:o.array(o.enum([`artifact`,`local`,`evidence`,`entity`])).optional()}),B=o.object({kind:o.string().min(1).optional(),scope:S.optional(),ids:o.array(o.string().min(1)).optional(),slug:i.optional(),currentOnly:o.boolean().optional(),search:o.string().optional(),relation:o.object({type:o.string().min(1).optional(),target:j.optional()}).optional(),confidence:o.object({maxLevel:N.optional(),minLevel:N.optional()}).optional(),indexed:o.record(o.string(),t).optional(),limit:o.number().int().min(1).optional()}),V=o.object({base:c,target:c}),H=o.object({base:R,target:R,changedPaths:o.array(o.string())});export{v as C,u as S,T as _,B as a,z as b,M as c,R as d,x as f,F as g,N as h,I as i,O as l,P as m,V as n,S as o,y as p,H as r,j as s,b as t,L as u,w as v,c as w,l as x,C as y};
1
+ import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{d as n,r,w as i}from"./kind-registration-CdjmVxY_.mjs";import{t as a}from"./repo-context-cO-TLEGN.mjs";import{z as o}from"zod";const s=o.string().min(1).regex(/\S/),c=o.strictObject({refClass:o.literal(`artifact`),kind:s,id:s,revision:s}),l=`x-makaio-value-type`,u=`evidence/v1`,d=o.string().min(1).regex(/\S/),f=o.strictObject({kind:o.literal(`whole-source`)}),p=o.strictObject({kind:o.literal(`lines`),startLine:o.number().int().positive(),lineCount:o.number().int().positive()}),m=o.strictObject({kind:o.literal(`data-path`),path:r}),h=o.strictObject({kind:o.literal(`git-file`),repository:a.strict(),path:d,commit:o.string().regex(/^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$/)}),g=o.strictObject({kind:o.literal(`confluence-page`),site:d,pageId:d,version:o.number().int().positive()}),_=o.strictObject({kind:o.literal(`artifact`),reference:c}),v=o.union([o.strictObject({source:h,location:o.union([f,p]),excerpt:o.string().optional()}),o.strictObject({source:g,location:f,excerpt:o.string().optional()}),o.strictObject({source:_,location:o.union([f,m]),excerpt:o.string().optional()})]).meta({title:`EvidenceValue`,description:`An immutable, directly cited source and its source-specific location.`,[l]:u}),y=o.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`),b=o.object({kind:o.string().min(1),id:o.string().min(1),displayName:o.string().optional()}),x=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:o.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),S=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}),C=o.object({refClass:o.literal(`local`).default(`local`),artifact:c,localId:o.string().min(1)}),w=o.object({refClass:o.literal(`evidence`).default(`evidence`),kind:o.string().min(1),id:o.string().min(1),revision:o.string().min(1).optional(),locator:o.string().min(1).optional()}),T=o.strictObject({refClass:o.literal(`entity`),entityType:o.string().min(1),id:o.string().min(1)}),E=o.discriminatedUnion(`refClass`,[c,C,w,T]);function D(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e||!(`revision`in e)?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const O=o.preprocess(D,E),k=o.discriminatedUnion(`refClass`,[c.extend({revision:c.shape.revision.optional()}),C,w,T]);function A(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const j=o.preprocess(A,k),M=o.object({type:o.string().min(1),sourceLocalId:o.string().min(1).regex(/\S/).optional(),target:O}),N=o.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),P=o.object({kind:o.string().min(1),actor:b,timestamp:o.number().int().nonnegative(),detail:o.string().optional(),evidenceRef:O.optional()}),F=o.object({level:N,basis:o.array(P)}),I=o.object({id:o.string().min(1),kind:o.string().min(1),summary:o.string().min(1),detail:o.string().optional(),severity:o.enum([`info`,`warning`,`blocker`]).optional(),tags:o.array(o.string().min(1)).optional(),regarding:o.union([c,C]).optional(),evidence:o.union([c,w]).optional(),actor:b,timestamp:o.number().int().nonnegative()}),L=o.object({markdown:o.string().optional(),summary:o.string().optional(),plaintext:o.string().optional()}),R=o.object({kind:c.shape.kind,id:c.shape.id,slug:i,revision:c.shape.revision,scope:x,schemaVersion:n,data:e,relations:o.array(M),evidence:o.array(v).optional(),confidence:F.optional(),representations:L.optional(),actor:b,timestamp:o.number().int().nonnegative(),createdAt:o.number().int().nonnegative().optional()}),z=o.enum([`artifact`,`local`,`evidence`,`entity`]),B=o.object({sourceKinds:o.array(o.string().min(1)).optional(),targetKinds:o.array(o.string().min(1)).optional(),targetRefClasses:o.array(z).optional()}),V=o.object({type:o.string().min(1),symmetry:o.enum([`asymmetric`,`symmetric`]),implication:o.string().min(1).optional(),...B.shape,endpoints:o.array(B).min(1).optional()}).superRefine((e,t)=>{e.endpoints!==void 0&&(e.sourceKinds!==void 0||e.targetKinds!==void 0||e.targetRefClasses!==void 0)&&t.addIssue({code:`custom`,path:[`endpoints`],message:`endpoints cannot be combined with the shorthand fields sourceKinds, targetKinds or targetRefClasses`})}),H=o.object({kind:o.string().min(1).optional(),scope:S.optional(),ids:o.array(o.string().min(1)).optional(),slug:i.optional(),currentOnly:o.boolean().optional(),search:o.string().optional(),relation:o.object({type:o.string().min(1).optional(),target:j.optional()}).optional(),confidence:o.object({maxLevel:N.optional(),minLevel:N.optional()}).optional(),indexed:o.record(o.string(),t).optional(),limit:o.number().int().min(1).optional()}),U=o.object({base:c,target:c}),W=o.object({base:R,target:R,changedPaths:o.array(o.string())});export{u as C,l as S,c as T,T as _,H as a,B as b,M as c,R as d,x as f,F as g,N as h,I as i,O as l,P as m,U as n,S as o,y as p,W as r,j as s,b as t,L as u,w as v,v as w,V as x,C as y};
@@ -160,8 +160,8 @@ declare const ResolvedContextRulesSchema: z.ZodObject<{
160
160
  declare const ContextRuleChangedEventSchema: z.ZodObject<{
161
161
  ruleId: z.ZodString;
162
162
  changeType: z.ZodEnum<{
163
- created: "created";
164
163
  updated: "updated";
164
+ created: "created";
165
165
  deleted: "deleted";
166
166
  }>;
167
167
  previous: z.ZodNullable<z.ZodObject<{
@@ -313,8 +313,8 @@ declare const ContextRulesServiceNamespace: _$_makaio_core0.BusNamespaceDefiniti
313
313
  changed: _$zod.ZodObject<{
314
314
  ruleId: _$zod.ZodString;
315
315
  changeType: _$zod.ZodEnum<{
316
- created: "created";
317
316
  updated: "updated";
317
+ created: "created";
318
318
  deleted: "deleted";
319
319
  }>;
320
320
  previous: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -383,8 +383,8 @@ declare const ContextRulesServiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio
383
383
  changed: _$zod.ZodObject<{
384
384
  ruleId: _$zod.ZodString;
385
385
  changeType: _$zod.ZodEnum<{
386
- created: "created";
387
386
  updated: "updated";
387
+ created: "created";
388
388
  deleted: "deleted";
389
389
  }>;
390
390
  previous: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../../schemas-CEc_v3dl.mjs";
2
- import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../../namespace-BH9U2C1O.mjs";
1
+ import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../../schemas-DKaUrczB.mjs";
2
+ import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../../namespace-ChJ-C9m_.mjs";
3
3
  import { A as ContainerRuntimeSchema, B as SpawnRequest, C as ContainerIsolatedSpawnRequest, D as ContainerLocalWorkflowSpawnRequest, E as ContainerLocalSpawnRequestSchema, F as ContainerState, G as StatusRequestSchema, H as SpawnResponse, I as ContainerStateSchema, J as StopRequest, K as StatusResponse, L as ContainerStopped, M as ContainerSessionRuntimeBindingSchema, N as ContainerStarted, O as ContainerLocalWorkflowSpawnRequestSchema, P as ContainerStartedSchema, R as ContainerStoppedSchema, S as ContainerDestroyedSchema, T as ContainerLocalSpawnRequest, U as SpawnResponseSchema, V as SpawnRequestSchema, W as StatusRequest, X as StopResponse, Y as StopRequestSchema, Z as StopResponseSchema, _ as ContainerConnectorAuthValue, a as DockerSubjects, b as ContainerCreatedSchema, c as ContainerAdapterAuthEnvelopeSchema, d as ContainerBootstrapConfig, f as ContainerBootstrapConfigSchema, g as ContainerConnectorAuthDeliverySchema, h as ContainerConnectorAuthDelivery, i as DockerNamespace, j as ContainerSessionRuntimeBinding, k as ContainerRuntime, l as ContainerAdapterAuthSelector, m as ContainerBootstrapSpawnRequestSchema, n as ContainerSpawnSubjects, o as CONTAINER_BOOTSTRAP_PRIVATE_ENV_VARS, p as ContainerBootstrapSpawnRequest, q as StatusResponseSchema, r as CONTAINER_BOOTSTRAP_CHANNEL_ENDPOINT, s as ContainerAdapterAuthEnvelope, t as ContainerSpawnNamespace, u as ContainerAdapterAuthSelectorSchema, v as ContainerConnectorAuthValueSchema, w as ContainerIsolatedSpawnRequestSchema, x as ContainerDestroyed, y as ContainerCreated, z as CredentialFreeGitRemoteSchema } from "../../index-D-rTv5WO.mjs";
4
4
  export { CONTAINER_BOOTSTRAP_CHANNEL_ENDPOINT, CONTAINER_BOOTSTRAP_PRIVATE_ENV_VARS, ContainerAdapterAuthEnvelope, ContainerAdapterAuthEnvelopeSchema, ContainerAdapterAuthSelector, ContainerAdapterAuthSelectorSchema, ContainerBootstrapConfig, ContainerBootstrapConfigSchema, ContainerBootstrapSpawnRequest, ContainerBootstrapSpawnRequestSchema, ContainerConnectorAuthDelivery, ContainerConnectorAuthDeliverySchema, ContainerConnectorAuthValue, ContainerConnectorAuthValueSchema, ContainerCreated, ContainerCreatedSchema, ContainerDestroyed, ContainerDestroyedSchema, ContainerIsolatedExecutionTargetSchema, ContainerIsolatedSpawnRequest, ContainerIsolatedSpawnRequestSchema, ContainerLocalExecutionTargetSchema, ContainerLocalSpawnRequest, ContainerLocalSpawnRequestSchema, ContainerLocalWorkflowSpawnRequest, ContainerLocalWorkflowSpawnRequestSchema, ContainerRuntime, ContainerRuntimeSchema, ContainerSessionRuntimeBinding, ContainerSessionRuntimeBindingSchema, ContainerSpawnNamespace, ContainerSpawnSubjects, ContainerStarted, ContainerStartedSchema, ContainerState, ContainerStateSchema, ContainerStopped, ContainerStoppedSchema, CredentialFreeGitRemoteSchema, DockerNamespace, DockerSubjects, ExecutionTarget, ExecutionTargetInput, ExecutionTargetInputSchema, ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetNamespace, ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetSubjects, ExecutionTargetType, ExecutionTargetTypeSchema, LocalExecutionTargetSchema, SpawnRequest, SpawnRequestSchema, SpawnResponse, SpawnResponseSchema, StatusRequest, StatusRequestSchema, StatusResponse, StatusResponseSchema, StopRequest, StopRequestSchema, StopResponse, StopResponseSchema };
@@ -1,2 +1,2 @@
1
- import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../../namespace-BH9U2C1O.mjs";
1
+ import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../../namespace-ChJ-C9m_.mjs";
2
2
  export { ExecutionTargetNamespace, ExecutionTargetSubjects };
@@ -1,2 +1,2 @@
1
- import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../../schemas-CEc_v3dl.mjs";
1
+ import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../../schemas-DKaUrczB.mjs";
2
2
  export { ContainerIsolatedExecutionTargetSchema, ContainerLocalExecutionTargetSchema, ExecutionTarget, ExecutionTargetInput, ExecutionTargetInputSchema, ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetType, ExecutionTargetTypeSchema, LocalExecutionTargetSchema };
@@ -10,18 +10,18 @@ declare const FsNamespace: _$_makaio_core0.BusNamespaceDefinition<"fs", {
10
10
  changed: _$zod.ZodObject<{
11
11
  path: _$zod.ZodString;
12
12
  kind: _$zod.ZodEnum<{
13
- delete: "delete";
14
13
  change: "change";
15
14
  create: "create";
15
+ delete: "delete";
16
16
  }>;
17
17
  }, _$zod_v4_core0.$strip>;
18
18
  batch: _$zod.ZodObject<{
19
19
  changes: _$zod.ZodArray<_$zod.ZodObject<{
20
20
  path: _$zod.ZodString;
21
21
  kind: _$zod.ZodEnum<{
22
- delete: "delete";
23
22
  change: "change";
24
23
  create: "create";
24
+ delete: "delete";
25
25
  }>;
26
26
  }, _$zod_v4_core0.$strip>>;
27
27
  }, _$zod_v4_core0.$strip>;
@@ -153,18 +153,18 @@ declare const FsSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjec
153
153
  changed: _$zod.ZodObject<{
154
154
  path: _$zod.ZodString;
155
155
  kind: _$zod.ZodEnum<{
156
- delete: "delete";
157
156
  change: "change";
158
157
  create: "create";
158
+ delete: "delete";
159
159
  }>;
160
160
  }, _$zod_v4_core0.$strip>;
161
161
  batch: _$zod.ZodObject<{
162
162
  changes: _$zod.ZodArray<_$zod.ZodObject<{
163
163
  path: _$zod.ZodString;
164
164
  kind: _$zod.ZodEnum<{
165
- delete: "delete";
166
165
  change: "change";
167
166
  create: "create";
167
+ delete: "delete";
168
168
  }>;
169
169
  }, _$zod_v4_core0.$strip>>;
170
170
  }, _$zod_v4_core0.$strip>;
@@ -294,18 +294,18 @@ declare const FileSystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
294
294
  changed: _$zod.ZodObject<{
295
295
  path: _$zod.ZodString;
296
296
  kind: _$zod.ZodEnum<{
297
- delete: "delete";
298
297
  change: "change";
299
298
  create: "create";
299
+ delete: "delete";
300
300
  }>;
301
301
  }, _$zod_v4_core0.$strip>;
302
302
  batch: _$zod.ZodObject<{
303
303
  changes: _$zod.ZodArray<_$zod.ZodObject<{
304
304
  path: _$zod.ZodString;
305
305
  kind: _$zod.ZodEnum<{
306
- delete: "delete";
307
306
  change: "change";
308
307
  create: "create";
308
+ delete: "delete";
309
309
  }>;
310
310
  }, _$zod_v4_core0.$strip>>;
311
311
  }, _$zod_v4_core0.$strip>;
@@ -5,9 +5,9 @@ import { z } from "zod";
5
5
  * File change kind.
6
6
  */
7
7
  declare const FsChangeKindSchema: z.ZodEnum<{
8
- delete: "delete";
9
8
  change: "change";
10
9
  create: "create";
10
+ delete: "delete";
11
11
  }>;
12
12
  type FsChangeKind = z.infer<typeof FsChangeKindSchema>;
13
13
  /**
@@ -16,9 +16,9 @@ type FsChangeKind = z.infer<typeof FsChangeKindSchema>;
16
16
  declare const FsChangedSchema: z.ZodObject<{
17
17
  path: z.ZodString;
18
18
  kind: z.ZodEnum<{
19
- delete: "delete";
20
19
  change: "change";
21
20
  create: "create";
21
+ delete: "delete";
22
22
  }>;
23
23
  }, z.core.$strip>;
24
24
  type FsChanged = z.infer<typeof FsChangedSchema>;
@@ -29,9 +29,9 @@ declare const FsBatchSchema: z.ZodObject<{
29
29
  changes: z.ZodArray<z.ZodObject<{
30
30
  path: z.ZodString;
31
31
  kind: z.ZodEnum<{
32
- delete: "delete";
33
32
  change: "change";
34
33
  create: "create";
34
+ delete: "delete";
35
35
  }>;
36
36
  }, z.core.$strip>>;
37
37
  }, z.core.$strip>;
@@ -429,8 +429,8 @@ declare const GitNamespace: _$_makaio_core0.BusNamespaceDefinition<"git", {
429
429
  repoPath: _$zod.ZodOptional<_$zod.ZodString>;
430
430
  source: _$zod.ZodString;
431
431
  approach: _$zod.ZodOptional<_$zod.ZodEnum<{
432
- merge: "merge";
433
432
  squash: "squash";
433
+ merge: "merge";
434
434
  "fast-forward-only": "fast-forward-only";
435
435
  }>>;
436
436
  message: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1016,8 +1016,8 @@ declare const GitSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
1016
1016
  repoPath: _$zod.ZodOptional<_$zod.ZodString>;
1017
1017
  source: _$zod.ZodString;
1018
1018
  approach: _$zod.ZodOptional<_$zod.ZodEnum<{
1019
- merge: "merge";
1020
1019
  squash: "squash";
1020
+ merge: "merge";
1021
1021
  "fast-forward-only": "fast-forward-only";
1022
1022
  }>>;
1023
1023
  message: _$zod.ZodOptional<_$zod.ZodString>;
@@ -552,8 +552,8 @@ type GitCreateCommitResponse = z.infer<typeof GitCreateCommitResponseSchema>;
552
552
  * - 'fast-forward-only': Only allow fast-forward merges
553
553
  */
554
554
  declare const GitMergeApproachSchema: z.ZodEnum<{
555
- merge: "merge";
556
555
  squash: "squash";
556
+ merge: "merge";
557
557
  "fast-forward-only": "fast-forward-only";
558
558
  }>;
559
559
  type GitMergeApproach = z.infer<typeof GitMergeApproachSchema>;
@@ -562,8 +562,8 @@ declare const GitMergeRequestSchema: z.ZodObject<{
562
562
  repoPath: z.ZodOptional<z.ZodString>;
563
563
  source: z.ZodString;
564
564
  approach: z.ZodOptional<z.ZodEnum<{
565
- merge: "merge";
566
565
  squash: "squash";
566
+ merge: "merge";
567
567
  "fast-forward-only": "fast-forward-only";
568
568
  }>>;
569
569
  message: z.ZodOptional<z.ZodString>;
@@ -12,11 +12,11 @@ import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseCha
12
12
  import { a as CompressResponse, c as CompressionEventSchema, d as ExtractedContextSchema, f as TechnicalDetails, h as TodoEntrySchema, i as CompressRequestSchema, l as CompressionSchemas, m as TodoEntry, n as BugEntrySchema, o as CompressResponseSchema, p as TechnicalDetailsSchema, r as CompressRequest, s as CompressionEvent, t as BugEntry, u as ExtractedContext } from "../schemas-BNG5UOHC.mjs";
13
13
  import { n as CompressionSubjects, t as CompressionNamespace } from "../namespace-Dcs8KeNG.mjs";
14
14
  import { a as ContextRuleInput, n as ContextRuleAction, t as ContextRule } from "../types-CA6i6flt.mjs";
15
- import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../schemas-CEc_v3dl.mjs";
16
- import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-BH9U2C1O.mjs";
15
+ import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../schemas-DKaUrczB.mjs";
16
+ import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-ChJ-C9m_.mjs";
17
17
  import { A as ContainerRuntimeSchema, B as SpawnRequest, C as ContainerIsolatedSpawnRequest, D as ContainerLocalWorkflowSpawnRequest, E as ContainerLocalSpawnRequestSchema, F as ContainerState, G as StatusRequestSchema, H as SpawnResponse, I as ContainerStateSchema, J as StopRequest, K as StatusResponse, L as ContainerStopped, N as ContainerStarted, O as ContainerLocalWorkflowSpawnRequestSchema, P as ContainerStartedSchema, R as ContainerStoppedSchema, S as ContainerDestroyedSchema, T as ContainerLocalSpawnRequest, U as SpawnResponseSchema, V as SpawnRequestSchema, W as StatusRequest, X as StopResponse, Y as StopRequestSchema, Z as StopResponseSchema, a as DockerSubjects, b as ContainerCreatedSchema, i as DockerNamespace, k as ContainerRuntime, n as ContainerSpawnSubjects, q as StatusResponseSchema, t as ContainerSpawnNamespace, w as ContainerIsolatedSpawnRequestSchema, x as ContainerDestroyed, y as ContainerCreated } from "../index-D-rTv5WO.mjs";
18
- import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-Fmdwbgei.mjs";
19
- import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, T as TurnConfig, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, k as TurnResult, l as registerForkHandler, n as routeToAgents, p as SessionStartError, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities } from "../index-DWWP2cUb.mjs";
18
+ import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-HsD17NLG.mjs";
19
+ import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, T as TurnConfig, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, k as TurnResult, l as registerForkHandler, n as routeToAgents, p as SessionStartError, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities } from "../index-Bt6KIvVk.mjs";
20
20
  import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-BBrLhtLK.mjs";
21
21
  import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-Dt7hJA-a.mjs";
22
22
  import { g as sessions, u as agents } from "../schema-C58MdqlI.mjs";
@@ -24,7 +24,7 @@ import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } f
24
24
  import { t as TurnStorageNamespace } from "../namespace-CO9J3NB-2.mjs";
25
25
  import { n as TurnStorageSubjects } from "../namespace-D8pSI--d.mjs";
26
26
  import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-BG35KNtw.mjs";
27
- import { v as ArtifactSchemaRegistry } from "../packages-Fy4a6vQy.mjs";
27
+ import { v as ArtifactSchemaRegistry } from "../packages-g6BtlUF9.mjs";
28
28
  import { a as createToolContributionProcessor, c as ToolRegistryOptions, d as ToolsetPolicy, f as ToolsetPolicyProvider, l as ToolsWithToolsetsResult, o as ToolRegistry, s as ListToolsFilter, u as ToolsetInfo } from "../index-BS3GYAN9.mjs";
29
29
  import { a as WORKFLOW_START_ACTION_TYPE, i as TransitionActionRegistry, n as TransitionPipelineService, r as TransitionRuleRegistry, t as createTransitionContributionProcessor } from "../index-B-ZgZuHg.mjs";
30
30
  import { n as ToolApprovalServiceOptions, t as ToolApprovalService } from "../index-C5u82-qr.mjs";
@@ -33,9 +33,9 @@ import { a as TrayMenuGroupSchema, c as TrayMenuListEntry, d as TrayMenuSchemas,
33
33
  import { n as TrayMenuSubjects, t as TrayMenuNamespace } from "../namespace-DDvWP-XA.mjs";
34
34
  import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModelOverrideSchema, _ as ModelRegistryGetLabModelsResponse, a as ModelRegistryService, b as ModelRegistryRefreshRequest, c as IModelRegistryFetcher, d as ModelRegistry, f as ModelRegistryCheckModelInProvidersRequest, g as ModelRegistryGetLabModelsRequest, h as ModelRegistryGetForProviderResponse, i as ModelRegistryProviderNotFoundError, l as ModelRegistryNamespace, m as ModelRegistryGetForProviderRequest, n as CachedRegistryFetcher, o as ModelRegistryServiceOptions, p as ModelRegistryCheckModelInProvidersResponse, r as FallbackRegistryFetcher, s as IModelRegistryCache, t as mergeModelMetadata, u as ModelRegistrySubjects, v as ModelRegistryGetProviderModelsRequest, w as ProviderModelOverride, x as ModelRegistryRefreshResponse, y as ModelRegistryGetProviderModelsResponse } from "../index-lJLrusa5.mjs";
35
35
  import { a as InternalPendingRequest, c as SubagentServiceToken, d as SubagentFailureFinalizationError, f as SubagentFailureFinalizationErrorCode, i as InputResolver, l as createSubagentServicePackage, n as TrackOptions, o as SpawnOptions, p as SubagentService, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as subagentServicePackage } from "../index-yfLm_tCv.mjs";
36
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-BYEgjPst2.mjs";
37
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-Cl8qtHDu.mjs";
38
- import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../schemas-CiJpGURT.mjs";
36
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DrrpHMbF2.mjs";
37
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-DoxNJ9Cg.mjs";
38
+ import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../schemas-Y3EJu698.mjs";
39
39
  import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-CytKzWBF.mjs";
40
40
  import * as _$zod from "zod";
41
41
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -4598,8 +4598,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
4598
4598
  changed: _$zod.ZodObject<{
4599
4599
  ruleId: _$zod.ZodString;
4600
4600
  changeType: _$zod.ZodEnum<{
4601
- created: "created";
4602
4601
  updated: "updated";
4602
+ created: "created";
4603
4603
  deleted: "deleted";
4604
4604
  }>;
4605
4605
  previous: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -4952,8 +4952,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
4952
4952
  name: _$zod.ZodString;
4953
4953
  image: _$zod.ZodOptional<_$zod.ZodString>;
4954
4954
  enabled: _$zod.ZodBoolean;
4955
- scope: _$zod.ZodString;
4956
4955
  busUrl: _$zod.ZodOptional<_$zod.ZodString>;
4956
+ scope: _$zod.ZodString;
4957
4957
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4958
4958
  type: _$zod.ZodLiteral<"container-isolated">;
4959
4959
  id: _$zod.ZodString;
@@ -5227,18 +5227,18 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5227
5227
  changed: _$zod.ZodObject<{
5228
5228
  path: _$zod.ZodString;
5229
5229
  kind: _$zod.ZodEnum<{
5230
- delete: "delete";
5231
5230
  change: "change";
5232
5231
  create: "create";
5232
+ delete: "delete";
5233
5233
  }>;
5234
5234
  }, _$zod_v4_core0.$strip>;
5235
5235
  batch: _$zod.ZodObject<{
5236
5236
  changes: _$zod.ZodArray<_$zod.ZodObject<{
5237
5237
  path: _$zod.ZodString;
5238
5238
  kind: _$zod.ZodEnum<{
5239
- delete: "delete";
5240
5239
  change: "change";
5241
5240
  create: "create";
5241
+ delete: "delete";
5242
5242
  }>;
5243
5243
  }, _$zod_v4_core0.$strip>>;
5244
5244
  }, _$zod_v4_core0.$strip>;
@@ -6486,9 +6486,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6486
6486
  scope: _$zod.ZodString;
6487
6487
  context: _$zod.ZodOptional<_$zod.ZodString>;
6488
6488
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6489
- mobile: "mobile";
6490
6489
  desktop: "desktop";
6491
6490
  tablet: "tablet";
6491
+ mobile: "mobile";
6492
6492
  }>>;
6493
6493
  }, _$zod_v4_core0.$strip>;
6494
6494
  category: _$zod.ZodString;
@@ -6507,9 +6507,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6507
6507
  scope: _$zod.ZodString;
6508
6508
  context: _$zod.ZodOptional<_$zod.ZodString>;
6509
6509
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6510
- mobile: "mobile";
6511
6510
  desktop: "desktop";
6512
6511
  tablet: "tablet";
6512
+ mobile: "mobile";
6513
6513
  }>>;
6514
6514
  }, _$zod_v4_core0.$strip>;
6515
6515
  category: _$zod.ZodString;
@@ -6529,9 +6529,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6529
6529
  scope: _$zod.ZodString;
6530
6530
  context: _$zod.ZodOptional<_$zod.ZodString>;
6531
6531
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6532
- mobile: "mobile";
6533
6532
  desktop: "desktop";
6534
6533
  tablet: "tablet";
6534
+ mobile: "mobile";
6535
6535
  }>>;
6536
6536
  }, _$zod_v4_core0.$strip>;
6537
6537
  category: _$zod.ZodString;
@@ -6550,9 +6550,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6550
6550
  scope: _$zod.ZodOptional<_$zod.ZodString>;
6551
6551
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
6552
6552
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
6553
- mobile: "mobile";
6554
6553
  desktop: "desktop";
6555
6554
  tablet: "tablet";
6555
+ mobile: "mobile";
6556
6556
  }>>>;
6557
6557
  }, _$zod_v4_core0.$strip>>;
6558
6558
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6567,9 +6567,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6567
6567
  scope: _$zod.ZodString;
6568
6568
  context: _$zod.ZodOptional<_$zod.ZodString>;
6569
6569
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6570
- mobile: "mobile";
6571
6570
  desktop: "desktop";
6572
6571
  tablet: "tablet";
6572
+ mobile: "mobile";
6573
6573
  }>>;
6574
6574
  }, _$zod_v4_core0.$strip>;
6575
6575
  category: _$zod.ZodString;
@@ -7820,8 +7820,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
7820
7820
  name: _$zod.ZodString;
7821
7821
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
7822
7822
  adapterName: _$zod.ZodString;
7823
- model: _$zod.ZodOptional<_$zod.ZodString>;
7824
7823
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
7824
+ model: _$zod.ZodOptional<_$zod.ZodString>;
7825
7825
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
7826
7826
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
7827
7827
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -1 +1 @@
1
- import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{t as n}from"../schema-CdUStsjr.mjs";import{t as r}from"../schema-C0lK_6u-.mjs";import{n as i,r as a,t as o}from"../namespace-D-_gP6_l.mjs";import{$ as s,A as c,B as l,D as u,G as ee,H as te,K as ne,L as re,M as ie,O as ae,R as oe,Tt as se,U as ce,V as le,W as ue,Z as de,a as fe,b as pe,c as me,d as he,f as ge,i as _e,j as ve,k as ye,l as be,n as xe,nt as Se,o as Ce,r as we,s as Te,t as Ee,tt as De,wt as Oe,x as ke,z as Ae}from"../handlers-DmEPQqPX.mjs";import{TurnStorageNamespace as je,TurnStorageSubjects as Me}from"./turn/namespace.mjs";import{a as Ne,i as d}from"../ownership-recovery-guard-C00rcqvz.mjs";import{SessionStorageNamespace as f,SessionStorageSubjects as p}from"./session/storage/namespace.mjs";import{AdapterRuntimeSchemas as m,ResolveIdRequestSchema as h,ResolveIdResponseSchema as g,ResolveLiveIdentityRequestSchema as _,ResolveLiveIdentityResponseSchema as v,ResolveNameRequestSchema as y,ResolveNameResponseSchema as b}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as x,AdapterRuntimeSubjects as Pe}from"./adapter-runtime/namespace.mjs";import{$ as Fe,A as Ie,B as Le,C as Re,E as ze,F as Be,G as Ve,H as He,I as Ue,J as We,K as Ge,L as Ke,M as qe,N as Je,P as Ye,R as Xe,S as Ze,T as Qe,U as $e,V as et,X as tt,Y as S,Z as nt,a as rt,b as it,c as at,et as ot,i as st,j as ct,k as lt,l as ut,nt as dt,o as ft,r as pt,rt as mt,s as ht,t as gt,tt as _t,w as vt,x as yt,z as bt}from"../session-BjV4HPCQ.mjs";import{n as xt}from"../namespace-DaFbUCqO.mjs";import{ProviderStorageNamespace as St}from"./settings/storage/providers-namespace.mjs";import{A as Ct,E as wt,M as Tt,N as Et,O as Dt,S as Ot,T as kt,_ as At,a as jt,b as Mt,c as Nt,i as Pt,j as Ft,k as It,l as Lt,n as Rt,o as zt,r as Bt,s as Vt,t as Ht,v as Ut,w as Wt,x as Gt,y as Kt}from"../schemas-D9hVAoP5.mjs";import{ExecutionTargetNamespace as C,ExecutionTargetSubjects as qt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Jt,MessageStorageSubjects as Yt}from"./session/messages/namespace.mjs";import{a as Xt,o as Zt,r as Qt,t as $t}from"../provider-context-DHS1LRQA.mjs";import{TurnStorageNamespace as en}from"./session/turns/namespace.mjs";import{i as tn,n as nn,r as rn,t as an}from"../identity-DBdzjf61.mjs";import{BugEntrySchema as on,CompressRequestSchema as sn,CompressResponseSchema as cn,CompressionEventSchema as ln,CompressionSchemas as un,ExtractedContextSchema as dn,TechnicalDetailsSchema as fn,TodoEntrySchema as pn}from"./compression/schemas.mjs";import{PreferenceItemSchema as mn,PreferenceKeySchema as hn,PreferenceValueSchema as gn,PreferencesSchemas as _n}from"./preferences/schemas.mjs";import{PreferencesNamespace as w,PreferencesSubjects as vn}from"./preferences/storage-namespace.mjs";import{t as yn}from"../namespace-BWTEnslo.mjs";import{l as bn,n as xn,p as Sn,r as Cn,t as wn}from"../ownership-memory-handler-BkB4ondL.mjs";import{_ as Tn,g as T,v as En}from"../packages-CZ2x-Ver.mjs";import{A as Dn,B as On,C as kn,D as An,E as jn,F as Mn,H as Nn,I as Pn,L as Fn,M as In,N as E,O as Ln,P as Rn,R as zn,S as Bn,T as Vn,V as Hn,_ as Un,a as Wn,b as Gn,c as D,d as Kn,f as O,g as qn,h as Jn,i as Yn,j as Xn,k as Zn,l as Qn,m as $n,n as k,o as er,p as tr,r as nr,s as rr,t as A,u as ir,v as ar,w as or,x as sr,y as cr,z as lr}from"../framework-packages-blqho6Nk.mjs";import{n as ur,r as dr,t as fr}from"../package-B6mFblgK.mjs";import{a as pr,c as mr,i as hr,l as gr,n as _r,o as j,r as vr,s as yr,t as br,u as xr}from"../model-registry-BJbUh4uw.mjs";import{t as Sr}from"../tool-approval-service-Bc0IC6Hj.mjs";import{TrayMenuEntrySchema as Cr,TrayMenuGroupEntrySchema as wr,TrayMenuGroupSchema as Tr,TrayMenuItemClickedSchema as Er,TrayMenuListEntrySchema as Dr,TrayMenuMetadataSchema as Or,TrayMenuSchemas as kr,TrayMenuSectionSchema as Ar}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as M,TrayMenuSubjects as jr}from"./tray-menu/namespace.mjs";import{t as Mr}from"../tray-menu-service-DGhHTNyy.mjs";import{n as Nr}from"../handler-BY2DDdyI.mjs";import{a as Pr,i as Fr,n as Ir,o as Lr,r as Rr,t as zr}from"../package-C_PVR-xw.mjs";import{FsNamespace as Br}from"./filesystem/namespace.mjs";import{r as Vr}from"../tools-Cbuj-ClQ.mjs";import{t as Hr}from"../workflow-transitions-CvT6P03B.mjs";import"./capability/index.mjs";import{a as Ur,i as Wr,n as Gr,r as Kr,t as qr}from"../code-execution-Bdqurit9.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as Jr,AgentRuntimeSchemas as Yr,AgentRuntimeSelectionSchema as Xr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as N,AgentRuntimeSubjects as Zr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as Qr,CodebaseSchemas as $r}from"./codebase/schemas.mjs";import{CodebaseNamespace as P,CodebaseSubjects as ei}from"./codebase/namespace.mjs";import{CompressionNamespace as F,CompressionSubjects as ti}from"./compression/namespace.mjs";import{r as ni,t as ri}from"../storage-namespace-CYZOP3RS.mjs";import{DefinitionNamespace as ii}from"./definition/namespace.mjs";import{DialogNamespace as ai}from"./dialog/namespace.mjs";import{a as oi,i as I,n as si,t as ci}from"../execution-target-BumuKpUR.mjs";import{CLIDetectionNamespace as li}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as ui}from"./local-notification/namespace.mjs";import{t as di}from"../namespace-D1tJewLB.mjs";import{ExtensionConfigStorageNamespace as fi}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as pi}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as mi,SubagentTemplateCreateSchema as hi,SubagentTemplateInstanceSchema as gi,SubagentTemplateInstanceStatusSchema as _i,SubagentTemplateKernelSchemas as vi,SubagentTemplateSchema as yi,SubagentTemplateSettingsSchemas as bi,SubagentTemplateSpawnRequestSchema as xi,SubagentTemplateSpawnedEventSchema as Si,SubagentTemplateSummarySchema as Ci,SubagentTemplateUpdateSchema as wi}from"./subagent-template/schemas.mjs";import{r as Ti,t as Ei}from"../namespace-BG-DwVwA.mjs";import{SubagentTemplateKernelNamespace as L,SubagentTemplateSubjects as Di}from"./subagent-template/namespace.mjs";import"./adapter-runtime/index.mjs";import"./agent-runtime/index.mjs";import"./codebase/index.mjs";import"./compression/index.mjs";import"./preferences/index.mjs";import"./subagent-template/index.mjs";import{ArtifactSubjects as R}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as Oi}from"@makaio/framework/adapters";import{artifactRevisionKey as z}from"@makaio/framework/contracts/artifact";import{ModelRegistryPublicNamespace as ki}from"@makaio/framework/contracts/model-registry";function Ai(e){return{source:`extension`,ownerKey:`extension:${e}`}}function ji(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function Mi(){let e=new Map,t=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterKind(t.kind,t.schemaVersion,n.owner)}ji(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(T);if(!a)throw Error(`ArtifactSchemaRegistry is not available — ensure artifact-schema-registry is started before extensions with artifactKinds.`);let o=(r.artifactKinds?.kinds??[]).map(e=>e.toRegistration()),s=Ai(n);t(n);for(let e of o)a.registerKind(e,s);e.set(n,{registry:a,owner:s,registrations:o})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactContributionProcessor] Deregister error for "${e}":`,t)}}}}function Ni(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function Pi(){let e=new Map,t=t=>{let n=e.get(t);n&&(e.delete(t),n.cleanup())};return{filter:e=>{let t=e.artifactLifecycleHooks!=null,n=(e.artifactKinds?.kinds??[]).some(e=>(e.hooks?.hooks.length??0)>0);return t||n},async processActivated(n,r,i){let a=i.getService(A);if(!a)throw Error(`ArtifactLifecycleHookRegistry is not available — ensure artifact-lifecycle-hook-registry is started before extensions with artifact lifecycle hooks.`);let o=r.artifactLifecycleHooks?[...await r.artifactLifecycleHooks.createHooks({bus:i.bus,extensionName:n})]:[],s=[];for(let e of r.artifactKinds?.kinds??[])if(e.hooks)for(let t of e.hooks.hooks)s.push(Ni(e.kind,e.schemaVersion,t));let c=[...o,...s];t(n);let l=a.registerHooks(n,c);e.set(n,{cleanup:l})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactLifecycleHookContributionProcessor] Deregister error for "${e}":`,t)}}}}function B(e,t){return{sourceRef:e.sourceRef,target:e.target,relationType:e.relationType,sourceLocalId:e.sourceLocalId,...e.direction?{direction:e.direction}:{},hint:e.selector?.hint??`link`,...t}}function V(e,t,n){let r=Ri(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),G(e,r,t,n),e.refs.push(t);return}let a=e.refs[i];if(a){if(t.status===`unresolved`&&t.reason===`depth-exceeded`){if(!Fi(a,Li(e,r)))return;W(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&q(n)||t.status===`unresolved`&&!H(t.reason,a.reason))return;W(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){H(t.reason,a.reason)&&W(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){W(e,i,r,t,n);return}t.status===`resolved`&&!q(n)&&K(e,r,n)}}function Fi(e,t){return e.status===`resolved`?t:H(`depth-exceeded`,e.reason)}function H(e,t){return U(e)>U(t)}function U(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function W(e,t,n,r,i){G(e,n,r,i),e.refs[t]=r}function G(e,t,n,r){if(n.status===`resolved`){K(e,t,r);return}Ii(e,t)}function K(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Ii(e,t){e.refMetadataByKey.delete(t)}function Li(e,t){return q(e.refMetadataByKey.get(t))}function q(e){return e?.resolvedViaBackEdge===!0}function Ri(e){return JSON.stringify([z(e.sourceRef),e.sourceLocalId??null,e.relationType,e.direction??`outbound`,zi(e.target)])}function zi(e){return e.refClass===`entity`?JSON.stringify([`entity`,e.entityType,e.id]):e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,z(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}async function Bi(e){let t=e.maxDepth??5,n={bus:e.bus,maxDepth:t,resolvedByKey:new Map,walkedByKey:new Set,inboundByKey:new Map,refIndexByKey:new Map,refMetadataByKey:new Map,resolved:[],refs:[]},r=await X(n,e.ref);if(!r)throw Error(`artifact.resolveContext: root artifact '${e.ref.kind}:${e.ref.id}:${e.ref.revision}' not found`);return n.resolved.push(r),await J(n,r,e.selectors,0,new Set([z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function J(e,t,n,r,i){let a=qi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=Q(t);for(let a of t.relations)await Vi(e,o,a,n,r,i);for(let[t,a]of Object.entries(n??{}))a.direction===`inbound`&&await Hi(e,o,t,a,r,i)}async function Vi(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.direction===`inbound`?void 0:o,{target:c}=n,l={sourceRef:t,relationType:n.type,sourceLocalId:n.sourceLocalId,selector:s};if(c.refClass!==`artifact`){let t=Z(s,c)?`unsupported-ref-class`:`not-selected`;V(e,B({...l,target:c},{status:`unresolved`,reason:t}));return}await Y(e,{...l,target:c,load:()=>X(e,c)},i,a)}async function Hi(e,t,n,r,i,a){if(r.hint===`omit`)return;let o=JSON.stringify([n,t.kind,t.id]),s=e.inboundByKey.get(o);if(!s){let{artifacts:r}=await e.bus.request(R.query,{relation:{type:n,target:{refClass:`artifact`,kind:t.kind,id:t.id}},currentOnly:!0});s=r,e.inboundByKey.set(o,s)}for(let o of s){let s=Q(o);for(let c of o.relations)c.type!==n||!Gi(c.target,t)||await Y(e,{sourceRef:t,target:s,relationType:n,sourceLocalId:c.sourceLocalId,direction:`inbound`,selector:r,load:()=>X(e,s,async()=>o)},i,a)}}async function Y(e,t,n,r){let{selector:i,target:a}=t;if(!Z(i,a)){V(e,B(t,{status:`unresolved`,reason:`not-selected`}));return}let o=z(a),s=r.has(o);if(n>=e.maxDepth&&!s){V(e,B(t,{status:`unresolved`,reason:`depth-exceeded`}));return}let c=e.resolvedByKey.has(o),l=await t.load();if(!l){V(e,B(t,{status:`unresolved`,reason:`not-found`}));return}V(e,B(t,{status:`resolved`}),{resolvedViaBackEdge:s}),c||e.resolved.push(l),!s&&await Ui(e,l,o,t.relationType,i,n,r)}async function Ui(e,t,n,r,i,a,o){let s=(i.depth??1)-1;await J(e,t,Wi(s>0?{[r]:{...i,depth:s}}:void 0,i.nested),a+1,new Set([...o,n]))}async function X(e,t,n=async()=>(await e.bus.request(R.resolve,{ref:t})).artifact){let r=z(t);if(e.resolvedByKey.has(r))return e.resolvedByKey.get(r)??null;let i=await n();return e.resolvedByKey.set(r,i),i}function Wi(e,t){return!t||!e?t??e:{...e,...t}}function Z(e,t){if(!e)return!1;if(!e.kinds)return!0;let n=Ki(t);return n!==void 0&&e.kinds.includes(n)}function Gi(e,t){return e.refClass===`artifact`&&e.kind===t.kind&&e.id===t.id}function Ki(e){if(e.refClass!==`entity`)return e.refClass===`local`?e.artifact.kind:e.kind}function Q(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function qi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ji(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerNamespace(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterNamespace(t.namespace)}$(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(k);if(!o)throw Error(`FacetNamespaceRegistry is not available — ensure facet-namespace-registry is started before extensions with facetNamespaces.`);let s=(i.facetNamespaces?.namespaces??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerNamespace(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterNamespace(l[e].namespace);throw $(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[FacetNamespaceContributionProcessor] Deregister error for "${e}":`,t)}}}}function Yi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(O);if(!i)throw Error(`WorkflowBlockRegistry is not available — ensure workflow-block-registry is started before extensions with workflowBlocks.`);await i.register(t,n.workflowBlocks.blocks),e.set(t,()=>i.deregister(t))},async processStopped(t){let n=e.get(t);if(n){try{await n()}catch(e){console.error(`[WorkflowBlockContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Xi(e){let t=new Map,n=e=>{let n=t.get(e);n&&(t.delete(e),n())},r=async(e,n,r)=>{let i=n.reactions;if(!i)return;let a=r.getService(E);if(!a)throw Error(`ReactionRegistry is not available — ensure reaction-registry is started before extensions with reactions.`);let o=await i.createReactions(r);a.register(e,o),t.set(e,()=>a.deregister(e))};return{filter:e=>e.name===E.name||!!e.reactions,async processActivated(n,i,a){if(n===E.name){let n=[];e.forEachActiveExtension((e,t,r)=>{t.reactions&&n.push([e,t,r])});try{for(let[e,t,i]of n)await r(e,t,i)}catch(e){throw t.clear(),e}return}await r(n,i,a)},async processStopped(e){if(e===E.name){t.clear();return}try{n(e)}catch(t){console.error(`[ReactionContributionProcessor] Deregister error for "${e}":`,t)}}}}const Zi=[x,xt,N,d,li,pi,P,F,ni,ri,ii,ai,I,C,fi,Br,Nr,Oi,ui,S,j,ki,w,di,St,yn,Ei,M,je,L,Ti];export{an as AdapterIdentityRegistry,_t as AdapterRegistry,x as AdapterRuntimeNamespace,m as AdapterRuntimeSchemas,Pe as AdapterRuntimeSubjects,Jr as AgentInstanceStatusSchema,N as AgentRuntimeNamespace,Yr as AgentRuntimeSchemas,Xr as AgentRuntimeSelectionSchema,Zr as AgentRuntimeSubjects,d as AgentStorageNamespace,Ne as AgentStorageSubjects,Hn as ArtifactLifecycleHookRegistry,A as ArtifactLifecycleHookRegistryToken,Nn as ArtifactLifecycleHookRejectedError,En as ArtifactSchemaRegistry,T as ArtifactSchemaRegistryToken,on as BugEntrySchema,Xe as CONNECTOR_SWAP_DEFAULT_PIPELINE,br as CachedRegistryFetcher,lr as CanonicalModelResolutionError,zn as CanonicalModelResolver,Fn as CanonicalModelService,dr as CapabilityService,fr as CapabilityToken,Kr as CodeExecutionService,qr as CodeExecutionServiceToken,Qr as CodebaseChangedEventSchema,P as CodebaseNamespace,$r as CodebaseSchemas,ei as CodebaseSubjects,sn as CompressRequestSchema,cn as CompressResponseSchema,ln as CompressionEventSchema,F as CompressionNamespace,un as CompressionSchemas,ti as CompressionSubjects,At as ContainerCreatedSchema,Ut as ContainerDestroyedSchema,Ht as ContainerIsolatedExecutionTargetSchema,Kt as ContainerIsolatedSpawnRequestSchema,Rt as ContainerLocalExecutionTargetSchema,Mt as ContainerLocalSpawnRequestSchema,Gt as ContainerLocalWorkflowSpawnRequestSchema,Ot as ContainerRuntimeSchema,ci as ContainerSpawnNamespace,si as ContainerSpawnSubjects,Wt as ContainerStartedSchema,kt as ContainerStateSchema,wt as ContainerStoppedSchema,gt as ContextWindowTracker,I as DockerNamespace,oi as DockerSubjects,ht as EmbeddingIndexManager,Bt as ExecutionTargetInputSchema,Pt as ExecutionTargetListQuerySchema,C as ExecutionTargetNamespace,jt as ExecutionTargetResolveRequestSchema,zt as ExecutionTargetSchema,Vt as ExecutionTargetSchemas,qt as ExecutionTargetSubjects,Nt as ExecutionTargetTypeSchema,dn as ExtractedContextSchema,On as FacetNamespaceRegistry,k as FacetNamespaceRegistryToken,_r as FallbackRegistryFetcher,Zi as FrameworkServicesCoreNamespaces,Lt as LocalExecutionTargetSchema,ft as MakaioSession,dt as MakaioSessionService,S as MessageRoutingNamespace,tt as MessageRoutingSubjects,Jt as MessageStorageNamespace,Yt as MessageStorageSubjects,j as ModelRegistryNamespace,vr as ModelRegistryProviderNotFoundError,mr as ModelRegistrySchema,gr as ModelRegistrySchemas,hr as ModelRegistryService,yr as ModelRegistrySubjects,nr as ModelRegistryToken,mn as PreferenceItemSchema,hn as PreferenceKeySchema,gn as PreferenceValueSchema,w as PreferencesNamespace,_n as PreferencesSchemas,vn as PreferencesSubjects,$t as ProviderContextActivationError,xr as ProviderModelOverrideSchema,Mn as ReactionRegistry,E as ReactionRegistryToken,h as ResolveIdRequestSchema,g as ResolveIdResponseSchema,_ as ResolveLiveIdentityRequestSchema,v as ResolveLiveIdentityResponseSchema,y as ResolveNameRequestSchema,b as ResolveNameResponseSchema,Xt as RuntimeProviderContextResolutionError,Ue as SessionBridge,Yn as SessionBridgeToken,o as SessionEventStorageNamespace,i as SessionEventStorageSubjects,Ye as SessionExtensionContextImpl,$e as SessionOrchestrator,Wn as SessionOrchestratorToken,de as SessionStartError,f as SessionStorageNamespace,p as SessionStorageSubjects,er as SessionStorageToken,rr as SessionToken,Ve as SessionTurnManager,Dt as SpawnRequestSchema,It as SpawnResponseSchema,Ct as StatusRequestSchema,Ft as StatusResponseSchema,Tt as StopRequestSchema,Et as StopResponseSchema,Fr as SubagentFailureFinalizationError,Lr as SubagentManager,Pr as SubagentService,zr as SubagentServiceToken,mi as SubagentTemplateCompletedEventSchema,hi as SubagentTemplateCreateSchema,gi as SubagentTemplateInstanceSchema,_i as SubagentTemplateInstanceStatusSchema,L as SubagentTemplateKernelNamespace,vi as SubagentTemplateKernelSchemas,yi as SubagentTemplateSchema,bi as SubagentTemplateSettingsSchemas,xi as SubagentTemplateSpawnRequestSchema,Si as SubagentTemplateSpawnedEventSchema,Di as SubagentTemplateSubjects,Ci as SubagentTemplateSummarySchema,wi as SubagentTemplateUpdateSchema,fn as TechnicalDetailsSchema,pn as TodoEntrySchema,Sr as ToolApprovalService,D as ToolApprovalToken,In as ToolRegistry,Qn as ToolRegistryToken,Zn as TransitionActionRegistry,An as TransitionPipelineService,ir as TransitionPipelineToken,Ln as TransitionRuleRegistry,Cr as TrayMenuEntrySchema,wr as TrayMenuGroupEntrySchema,Tr as TrayMenuGroupSchema,Er as TrayMenuItemClickedSchema,Dr as TrayMenuListEntrySchema,Or as TrayMenuMetadataSchema,M as TrayMenuNamespace,kr as TrayMenuSchemas,Ar as TrayMenuSectionSchema,Mr as TrayMenuService,jr as TrayMenuSubjects,Kn as TrayMenuToken,Ge as Turn,He as TurnContextEnricher,en as TurnStorageNamespace,Me as TurnStorageSubjects,Dn as WORKFLOW_START_ACTION_TYPE,Xn as WorkflowBlockRegistry,O as WorkflowBlockRegistryToken,Ae as actionRegistry,Qt as activateProviderContext,e as agents,tr as artifactLifecycleHookRegistryPackage,Tn as artifactSchemaRegistryPackage,xe as assembleForkContext,nn as buildDeterministicAdapterId,re as buildRecoveryContext,ae as buildRecoveryContextWithPipeline,l as buildSessionContext,le as buildTurnInitiator,Pn as canonicalModelPackage,ur as capabilityPackage,Gr as codeExecutionPackage,Mi as createArtifactKindContributionProcessor,Pi as createArtifactLifecycleHookContributionProcessor,Ur as createEffectiveExecutionSignal,Ji as createFacetNamespaceContributionProcessor,$n as createFrameworkCorePackages,Jn as createModelRegistryPackage,Xi as createReactionContributionProcessor,Be as createSessionExtensionContext,Sn as createSessionStorageMemoryState,Ir as createSubagentServicePackage,Vr as createToolContributionProcessor,Hr as createTransitionContributionProcessor,Yi as createWorkflowBlockContributionProcessor,ye as ensureAgentCwd,c as ensureAgentModel,ee as extractTextContent,qn as facetNamespaceRegistryPackage,yt as fetchAgentsBySession,Ze as fetchMessageCountsBySession,Re as fetchPreviewBySession,Ie as fetchSessionPreviewMaps,te as findTurnByAgent,Un as frameworkCorePackages,oe as getFullConversation,ce as getOrCreateSession,ut as importCursors,bn as kindToBranchKind,ct as mapAgentsBySession,vt as mapRowToSession,qe as mapToSession,pr as mergeModelMetadata,nt as messageRouting,r as messages,he as normalizeSelectionString,ne as normalizeToBlocks,Qe as parseForkTransforms,Ke as pickFallbackRuntimeOptions,Rn as reactionRegistryPackage,ve as recoverAgent,me as registerAbandonHandler,rn as registerAdapterRuntimeIdentityHandlers,be as registerAttachHandler,Ce as registerBuiltInActions,fe as registerCompressHandler,st as registerCompressLineageResolver,mt as registerCoreSessionServiceHandlers,Je as registerDrizzleAgentStorage,at as registerDrizzleImportCursorStorage,We as registerDrizzleMessageRoutingStorage,ot as registerDrizzleMessageStorage,Oe as registerDrizzleSessionEventStorage,ze as registerDrizzleSessionOwnershipStorage,lt as registerDrizzleSessionStorage,ke as registerDrizzleTurnStorage,_e as registerForkHandler,it as registerFtsSearchHandler,Le as registerGetStatusCountsHandler,bt as registerListActionsHandler,xn as registerMemoryAgentStorage,Fe as registerMemoryMessageStorage,se as registerMemorySessionEventStorage,wn as registerMemorySessionOwnershipStorage,Cn as registerMemorySessionStorage,pe as registerMemoryTurnStorage,we as registerMergeHandler,rt as registerParentResolver,et as registerResumeHandler,pt as registerSpawningToolCallResolver,Te as resetBuiltInActionsRegistration,s as resolveAdapterId,ge as resolveAdapterNameById,Bi as resolveArtifactContext,tn as resolveDeterministicAdapterId,De as resolveExecutionTarget,Se as resolveModelCapabilities,Zt as resolveRuntimeProviderContext,ue as resolveTargetAgents,Ee as routeToAgents,u as routeToAgentsCore,Wr as selectCodeExecutionProvider,ar as sessionBridgePackage,a as sessionEvents,cr as sessionOrchestratorPackage,Gn as sessionPackage,sr as sessionStoragePackage,t as sessions,Rr as subagentServicePackage,Bn as toolApprovalPackage,kn as toolRegistryPackage,or as transitionPipelinePackage,Vn as trayMenuPackage,n as turns,ie as verifyAndRecoverAgents,jn as workflowBlockRegistryPackage};
1
+ import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{t as n}from"../schema-CdUStsjr.mjs";import{t as r}from"../schema-C0lK_6u-.mjs";import{n as i,r as a,t as o}from"../namespace-D-_gP6_l.mjs";import{$ as s,A as c,B as l,D as u,G as ee,H as te,K as ne,L as re,M as ie,O as ae,R as oe,Tt as se,U as ce,V as le,W as ue,Z as de,a as fe,b as pe,c as me,d as he,f as ge,i as _e,j as ve,k as ye,l as be,n as xe,nt as Se,o as Ce,r as we,s as Te,t as Ee,tt as De,wt as Oe,x as ke,z as Ae}from"../handlers-DmEPQqPX.mjs";import{TurnStorageNamespace as je,TurnStorageSubjects as Me}from"./turn/namespace.mjs";import{a as Ne,i as d}from"../ownership-recovery-guard-C00rcqvz.mjs";import{SessionStorageNamespace as f,SessionStorageSubjects as p}from"./session/storage/namespace.mjs";import{AdapterRuntimeSchemas as m,ResolveIdRequestSchema as h,ResolveIdResponseSchema as g,ResolveLiveIdentityRequestSchema as _,ResolveLiveIdentityResponseSchema as v,ResolveNameRequestSchema as y,ResolveNameResponseSchema as b}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as x,AdapterRuntimeSubjects as Pe}from"./adapter-runtime/namespace.mjs";import{$ as Fe,A as Ie,B as Le,C as Re,E as ze,F as Be,G as Ve,H as He,I as Ue,J as We,K as Ge,L as Ke,M as qe,N as Je,P as Ye,R as Xe,S as Ze,T as Qe,U as $e,V as et,X as tt,Y as S,Z as nt,a as rt,b as it,c as at,et as ot,i as st,j as ct,k as lt,l as ut,nt as dt,o as ft,r as pt,rt as mt,s as ht,t as gt,tt as _t,w as vt,x as yt,z as bt}from"../session-BjV4HPCQ.mjs";import{n as xt}from"../namespace-DaFbUCqO.mjs";import{ProviderStorageNamespace as St}from"./settings/storage/providers-namespace.mjs";import{A as Ct,E as wt,M as Tt,N as Et,O as Dt,S as Ot,T as kt,_ as At,a as jt,b as Mt,c as Nt,i as Pt,j as Ft,k as It,l as Lt,n as Rt,o as zt,r as Bt,s as Vt,t as Ht,v as Ut,w as Wt,x as Gt,y as Kt}from"../schemas-D9hVAoP5.mjs";import{ExecutionTargetNamespace as C,ExecutionTargetSubjects as qt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Jt,MessageStorageSubjects as Yt}from"./session/messages/namespace.mjs";import{a as Xt,o as Zt,r as Qt,t as $t}from"../provider-context-DHS1LRQA.mjs";import{TurnStorageNamespace as en}from"./session/turns/namespace.mjs";import{i as tn,n as nn,r as rn,t as an}from"../identity-DBdzjf61.mjs";import{BugEntrySchema as on,CompressRequestSchema as sn,CompressResponseSchema as cn,CompressionEventSchema as ln,CompressionSchemas as un,ExtractedContextSchema as dn,TechnicalDetailsSchema as fn,TodoEntrySchema as pn}from"./compression/schemas.mjs";import{PreferenceItemSchema as mn,PreferenceKeySchema as hn,PreferenceValueSchema as gn,PreferencesSchemas as _n}from"./preferences/schemas.mjs";import{PreferencesNamespace as w,PreferencesSubjects as vn}from"./preferences/storage-namespace.mjs";import{t as yn}from"../namespace-BWTEnslo.mjs";import{l as bn,n as xn,p as Sn,r as Cn,t as wn}from"../ownership-memory-handler-BkB4ondL.mjs";import{_ as Tn,g as T,v as En}from"../packages-BOM7wECe.mjs";import{A as Dn,B as On,C as kn,D as An,E as jn,F as Mn,H as Nn,I as Pn,L as Fn,M as In,N as E,O as Ln,P as Rn,R as zn,S as Bn,T as Vn,V as Hn,_ as Un,a as Wn,b as Gn,c as D,d as Kn,f as O,g as qn,h as Jn,i as Yn,j as Xn,k as Zn,l as Qn,m as $n,n as k,o as er,p as tr,r as nr,s as rr,t as A,u as ir,v as ar,w as or,x as sr,y as cr,z as lr}from"../framework-packages-CdpSqDeo.mjs";import{n as ur,r as dr,t as fr}from"../package-B6mFblgK.mjs";import{a as pr,c as mr,i as hr,l as gr,n as _r,o as j,r as vr,s as yr,t as br,u as xr}from"../model-registry-BJbUh4uw.mjs";import{t as Sr}from"../tool-approval-service-Bc0IC6Hj.mjs";import{TrayMenuEntrySchema as Cr,TrayMenuGroupEntrySchema as wr,TrayMenuGroupSchema as Tr,TrayMenuItemClickedSchema as Er,TrayMenuListEntrySchema as Dr,TrayMenuMetadataSchema as Or,TrayMenuSchemas as kr,TrayMenuSectionSchema as Ar}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as M,TrayMenuSubjects as jr}from"./tray-menu/namespace.mjs";import{t as Mr}from"../tray-menu-service-DGhHTNyy.mjs";import{n as Nr}from"../handler-BY2DDdyI.mjs";import{a as Pr,i as Fr,n as Ir,o as Lr,r as Rr,t as zr}from"../package-C_PVR-xw.mjs";import{FsNamespace as Br}from"./filesystem/namespace.mjs";import{r as Vr}from"../tools-EK2HiPee.mjs";import{t as Hr}from"../workflow-transitions-ztq90FUj.mjs";import"./capability/index.mjs";import{a as Ur,i as Wr,n as Gr,r as Kr,t as qr}from"../code-execution-Bdqurit9.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as Jr,AgentRuntimeSchemas as Yr,AgentRuntimeSelectionSchema as Xr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as N,AgentRuntimeSubjects as Zr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as Qr,CodebaseSchemas as $r}from"./codebase/schemas.mjs";import{CodebaseNamespace as P,CodebaseSubjects as ei}from"./codebase/namespace.mjs";import{CompressionNamespace as F,CompressionSubjects as ti}from"./compression/namespace.mjs";import{r as ni,t as ri}from"../storage-namespace-CYZOP3RS.mjs";import{DefinitionNamespace as ii}from"./definition/namespace.mjs";import{DialogNamespace as ai}from"./dialog/namespace.mjs";import{a as oi,i as I,n as si,t as ci}from"../execution-target-BumuKpUR.mjs";import{CLIDetectionNamespace as li}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as ui}from"./local-notification/namespace.mjs";import{t as di}from"../namespace-D1tJewLB.mjs";import{ExtensionConfigStorageNamespace as fi}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as pi}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as mi,SubagentTemplateCreateSchema as hi,SubagentTemplateInstanceSchema as gi,SubagentTemplateInstanceStatusSchema as _i,SubagentTemplateKernelSchemas as vi,SubagentTemplateSchema as yi,SubagentTemplateSettingsSchemas as bi,SubagentTemplateSpawnRequestSchema as xi,SubagentTemplateSpawnedEventSchema as Si,SubagentTemplateSummarySchema as Ci,SubagentTemplateUpdateSchema as wi}from"./subagent-template/schemas.mjs";import{r as Ti,t as Ei}from"../namespace-BG-DwVwA.mjs";import{SubagentTemplateKernelNamespace as L,SubagentTemplateSubjects as Di}from"./subagent-template/namespace.mjs";import"./adapter-runtime/index.mjs";import"./agent-runtime/index.mjs";import"./codebase/index.mjs";import"./compression/index.mjs";import"./preferences/index.mjs";import"./subagent-template/index.mjs";import{ArtifactSubjects as R}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as Oi}from"@makaio/framework/adapters";import{artifactRevisionKey as z}from"@makaio/framework/contracts/artifact";import{ModelRegistryPublicNamespace as ki}from"@makaio/framework/contracts/model-registry";function Ai(e){return{source:`extension`,ownerKey:`extension:${e}`}}function ji(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function Mi(){let e=new Map,t=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterKind(t.kind,t.schemaVersion,n.owner)}ji(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(T);if(!a)throw Error(`ArtifactSchemaRegistry is not available — ensure artifact-schema-registry is started before extensions with artifactKinds.`);let o=(r.artifactKinds?.kinds??[]).map(e=>e.toRegistration()),s=Ai(n);t(n);for(let e of o)a.registerKind(e,s);e.set(n,{registry:a,owner:s,registrations:o})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactContributionProcessor] Deregister error for "${e}":`,t)}}}}function Ni(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function Pi(){let e=new Map,t=t=>{let n=e.get(t);n&&(e.delete(t),n.cleanup())};return{filter:e=>{let t=e.artifactLifecycleHooks!=null,n=(e.artifactKinds?.kinds??[]).some(e=>(e.hooks?.hooks.length??0)>0);return t||n},async processActivated(n,r,i){let a=i.getService(A);if(!a)throw Error(`ArtifactLifecycleHookRegistry is not available — ensure artifact-lifecycle-hook-registry is started before extensions with artifact lifecycle hooks.`);let o=r.artifactLifecycleHooks?[...await r.artifactLifecycleHooks.createHooks({bus:i.bus,extensionName:n})]:[],s=[];for(let e of r.artifactKinds?.kinds??[])if(e.hooks)for(let t of e.hooks.hooks)s.push(Ni(e.kind,e.schemaVersion,t));let c=[...o,...s];t(n);let l=a.registerHooks(n,c);e.set(n,{cleanup:l})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactLifecycleHookContributionProcessor] Deregister error for "${e}":`,t)}}}}function B(e,t){return{sourceRef:e.sourceRef,target:e.target,relationType:e.relationType,sourceLocalId:e.sourceLocalId,...e.direction?{direction:e.direction}:{},hint:e.selector?.hint??`link`,...t}}function V(e,t,n){let r=Ri(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),G(e,r,t,n),e.refs.push(t);return}let a=e.refs[i];if(a){if(t.status===`unresolved`&&t.reason===`depth-exceeded`){if(!Fi(a,Li(e,r)))return;W(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&q(n)||t.status===`unresolved`&&!H(t.reason,a.reason))return;W(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){H(t.reason,a.reason)&&W(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){W(e,i,r,t,n);return}t.status===`resolved`&&!q(n)&&K(e,r,n)}}function Fi(e,t){return e.status===`resolved`?t:H(`depth-exceeded`,e.reason)}function H(e,t){return U(e)>U(t)}function U(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function W(e,t,n,r,i){G(e,n,r,i),e.refs[t]=r}function G(e,t,n,r){if(n.status===`resolved`){K(e,t,r);return}Ii(e,t)}function K(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Ii(e,t){e.refMetadataByKey.delete(t)}function Li(e,t){return q(e.refMetadataByKey.get(t))}function q(e){return e?.resolvedViaBackEdge===!0}function Ri(e){return JSON.stringify([z(e.sourceRef),e.sourceLocalId??null,e.relationType,e.direction??`outbound`,zi(e.target)])}function zi(e){return e.refClass===`entity`?JSON.stringify([`entity`,e.entityType,e.id]):e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,z(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}async function Bi(e){let t=e.maxDepth??5,n={bus:e.bus,maxDepth:t,resolvedByKey:new Map,walkedByKey:new Set,inboundByKey:new Map,refIndexByKey:new Map,refMetadataByKey:new Map,resolved:[],refs:[]},r=await X(n,e.ref);if(!r)throw Error(`artifact.resolveContext: root artifact '${e.ref.kind}:${e.ref.id}:${e.ref.revision}' not found`);return n.resolved.push(r),await J(n,r,e.selectors,0,new Set([z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function J(e,t,n,r,i){let a=qi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=Q(t);for(let a of t.relations)await Vi(e,o,a,n,r,i);for(let[t,a]of Object.entries(n??{}))a.direction===`inbound`&&await Hi(e,o,t,a,r,i)}async function Vi(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.direction===`inbound`?void 0:o,{target:c}=n,l={sourceRef:t,relationType:n.type,sourceLocalId:n.sourceLocalId,selector:s};if(c.refClass!==`artifact`){let t=Z(s,c)?`unsupported-ref-class`:`not-selected`;V(e,B({...l,target:c},{status:`unresolved`,reason:t}));return}await Y(e,{...l,target:c,load:()=>X(e,c)},i,a)}async function Hi(e,t,n,r,i,a){if(r.hint===`omit`)return;let o=JSON.stringify([n,t.kind,t.id]),s=e.inboundByKey.get(o);if(!s){let{artifacts:r}=await e.bus.request(R.query,{relation:{type:n,target:{refClass:`artifact`,kind:t.kind,id:t.id}},currentOnly:!0});s=r,e.inboundByKey.set(o,s)}for(let o of s){let s=Q(o);for(let c of o.relations)c.type!==n||!Gi(c.target,t)||await Y(e,{sourceRef:t,target:s,relationType:n,sourceLocalId:c.sourceLocalId,direction:`inbound`,selector:r,load:()=>X(e,s,async()=>o)},i,a)}}async function Y(e,t,n,r){let{selector:i,target:a}=t;if(!Z(i,a)){V(e,B(t,{status:`unresolved`,reason:`not-selected`}));return}let o=z(a),s=r.has(o);if(n>=e.maxDepth&&!s){V(e,B(t,{status:`unresolved`,reason:`depth-exceeded`}));return}let c=e.resolvedByKey.has(o),l=await t.load();if(!l){V(e,B(t,{status:`unresolved`,reason:`not-found`}));return}V(e,B(t,{status:`resolved`}),{resolvedViaBackEdge:s}),c||e.resolved.push(l),!s&&await Ui(e,l,o,t.relationType,i,n,r)}async function Ui(e,t,n,r,i,a,o){let s=(i.depth??1)-1;await J(e,t,Wi(s>0?{[r]:{...i,depth:s}}:void 0,i.nested),a+1,new Set([...o,n]))}async function X(e,t,n=async()=>(await e.bus.request(R.resolve,{ref:t})).artifact){let r=z(t);if(e.resolvedByKey.has(r))return e.resolvedByKey.get(r)??null;let i=await n();return e.resolvedByKey.set(r,i),i}function Wi(e,t){return!t||!e?t??e:{...e,...t}}function Z(e,t){if(!e)return!1;if(!e.kinds)return!0;let n=Ki(t);return n!==void 0&&e.kinds.includes(n)}function Gi(e,t){return e.refClass===`artifact`&&e.kind===t.kind&&e.id===t.id}function Ki(e){if(e.refClass!==`entity`)return e.refClass===`local`?e.artifact.kind:e.kind}function Q(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function qi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ji(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerNamespace(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterNamespace(t.namespace)}$(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(k);if(!o)throw Error(`FacetNamespaceRegistry is not available — ensure facet-namespace-registry is started before extensions with facetNamespaces.`);let s=(i.facetNamespaces?.namespaces??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerNamespace(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterNamespace(l[e].namespace);throw $(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[FacetNamespaceContributionProcessor] Deregister error for "${e}":`,t)}}}}function Yi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(O);if(!i)throw Error(`WorkflowBlockRegistry is not available — ensure workflow-block-registry is started before extensions with workflowBlocks.`);await i.register(t,n.workflowBlocks.blocks),e.set(t,()=>i.deregister(t))},async processStopped(t){let n=e.get(t);if(n){try{await n()}catch(e){console.error(`[WorkflowBlockContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Xi(e){let t=new Map,n=e=>{let n=t.get(e);n&&(t.delete(e),n())},r=async(e,n,r)=>{let i=n.reactions;if(!i)return;let a=r.getService(E);if(!a)throw Error(`ReactionRegistry is not available — ensure reaction-registry is started before extensions with reactions.`);let o=await i.createReactions(r);a.register(e,o),t.set(e,()=>a.deregister(e))};return{filter:e=>e.name===E.name||!!e.reactions,async processActivated(n,i,a){if(n===E.name){let n=[];e.forEachActiveExtension((e,t,r)=>{t.reactions&&n.push([e,t,r])});try{for(let[e,t,i]of n)await r(e,t,i)}catch(e){throw t.clear(),e}return}await r(n,i,a)},async processStopped(e){if(e===E.name){t.clear();return}try{n(e)}catch(t){console.error(`[ReactionContributionProcessor] Deregister error for "${e}":`,t)}}}}const Zi=[x,xt,N,d,li,pi,P,F,ni,ri,ii,ai,I,C,fi,Br,Nr,Oi,ui,S,j,ki,w,di,St,yn,Ei,M,je,L,Ti];export{an as AdapterIdentityRegistry,_t as AdapterRegistry,x as AdapterRuntimeNamespace,m as AdapterRuntimeSchemas,Pe as AdapterRuntimeSubjects,Jr as AgentInstanceStatusSchema,N as AgentRuntimeNamespace,Yr as AgentRuntimeSchemas,Xr as AgentRuntimeSelectionSchema,Zr as AgentRuntimeSubjects,d as AgentStorageNamespace,Ne as AgentStorageSubjects,Hn as ArtifactLifecycleHookRegistry,A as ArtifactLifecycleHookRegistryToken,Nn as ArtifactLifecycleHookRejectedError,En as ArtifactSchemaRegistry,T as ArtifactSchemaRegistryToken,on as BugEntrySchema,Xe as CONNECTOR_SWAP_DEFAULT_PIPELINE,br as CachedRegistryFetcher,lr as CanonicalModelResolutionError,zn as CanonicalModelResolver,Fn as CanonicalModelService,dr as CapabilityService,fr as CapabilityToken,Kr as CodeExecutionService,qr as CodeExecutionServiceToken,Qr as CodebaseChangedEventSchema,P as CodebaseNamespace,$r as CodebaseSchemas,ei as CodebaseSubjects,sn as CompressRequestSchema,cn as CompressResponseSchema,ln as CompressionEventSchema,F as CompressionNamespace,un as CompressionSchemas,ti as CompressionSubjects,At as ContainerCreatedSchema,Ut as ContainerDestroyedSchema,Ht as ContainerIsolatedExecutionTargetSchema,Kt as ContainerIsolatedSpawnRequestSchema,Rt as ContainerLocalExecutionTargetSchema,Mt as ContainerLocalSpawnRequestSchema,Gt as ContainerLocalWorkflowSpawnRequestSchema,Ot as ContainerRuntimeSchema,ci as ContainerSpawnNamespace,si as ContainerSpawnSubjects,Wt as ContainerStartedSchema,kt as ContainerStateSchema,wt as ContainerStoppedSchema,gt as ContextWindowTracker,I as DockerNamespace,oi as DockerSubjects,ht as EmbeddingIndexManager,Bt as ExecutionTargetInputSchema,Pt as ExecutionTargetListQuerySchema,C as ExecutionTargetNamespace,jt as ExecutionTargetResolveRequestSchema,zt as ExecutionTargetSchema,Vt as ExecutionTargetSchemas,qt as ExecutionTargetSubjects,Nt as ExecutionTargetTypeSchema,dn as ExtractedContextSchema,On as FacetNamespaceRegistry,k as FacetNamespaceRegistryToken,_r as FallbackRegistryFetcher,Zi as FrameworkServicesCoreNamespaces,Lt as LocalExecutionTargetSchema,ft as MakaioSession,dt as MakaioSessionService,S as MessageRoutingNamespace,tt as MessageRoutingSubjects,Jt as MessageStorageNamespace,Yt as MessageStorageSubjects,j as ModelRegistryNamespace,vr as ModelRegistryProviderNotFoundError,mr as ModelRegistrySchema,gr as ModelRegistrySchemas,hr as ModelRegistryService,yr as ModelRegistrySubjects,nr as ModelRegistryToken,mn as PreferenceItemSchema,hn as PreferenceKeySchema,gn as PreferenceValueSchema,w as PreferencesNamespace,_n as PreferencesSchemas,vn as PreferencesSubjects,$t as ProviderContextActivationError,xr as ProviderModelOverrideSchema,Mn as ReactionRegistry,E as ReactionRegistryToken,h as ResolveIdRequestSchema,g as ResolveIdResponseSchema,_ as ResolveLiveIdentityRequestSchema,v as ResolveLiveIdentityResponseSchema,y as ResolveNameRequestSchema,b as ResolveNameResponseSchema,Xt as RuntimeProviderContextResolutionError,Ue as SessionBridge,Yn as SessionBridgeToken,o as SessionEventStorageNamespace,i as SessionEventStorageSubjects,Ye as SessionExtensionContextImpl,$e as SessionOrchestrator,Wn as SessionOrchestratorToken,de as SessionStartError,f as SessionStorageNamespace,p as SessionStorageSubjects,er as SessionStorageToken,rr as SessionToken,Ve as SessionTurnManager,Dt as SpawnRequestSchema,It as SpawnResponseSchema,Ct as StatusRequestSchema,Ft as StatusResponseSchema,Tt as StopRequestSchema,Et as StopResponseSchema,Fr as SubagentFailureFinalizationError,Lr as SubagentManager,Pr as SubagentService,zr as SubagentServiceToken,mi as SubagentTemplateCompletedEventSchema,hi as SubagentTemplateCreateSchema,gi as SubagentTemplateInstanceSchema,_i as SubagentTemplateInstanceStatusSchema,L as SubagentTemplateKernelNamespace,vi as SubagentTemplateKernelSchemas,yi as SubagentTemplateSchema,bi as SubagentTemplateSettingsSchemas,xi as SubagentTemplateSpawnRequestSchema,Si as SubagentTemplateSpawnedEventSchema,Di as SubagentTemplateSubjects,Ci as SubagentTemplateSummarySchema,wi as SubagentTemplateUpdateSchema,fn as TechnicalDetailsSchema,pn as TodoEntrySchema,Sr as ToolApprovalService,D as ToolApprovalToken,In as ToolRegistry,Qn as ToolRegistryToken,Zn as TransitionActionRegistry,An as TransitionPipelineService,ir as TransitionPipelineToken,Ln as TransitionRuleRegistry,Cr as TrayMenuEntrySchema,wr as TrayMenuGroupEntrySchema,Tr as TrayMenuGroupSchema,Er as TrayMenuItemClickedSchema,Dr as TrayMenuListEntrySchema,Or as TrayMenuMetadataSchema,M as TrayMenuNamespace,kr as TrayMenuSchemas,Ar as TrayMenuSectionSchema,Mr as TrayMenuService,jr as TrayMenuSubjects,Kn as TrayMenuToken,Ge as Turn,He as TurnContextEnricher,en as TurnStorageNamespace,Me as TurnStorageSubjects,Dn as WORKFLOW_START_ACTION_TYPE,Xn as WorkflowBlockRegistry,O as WorkflowBlockRegistryToken,Ae as actionRegistry,Qt as activateProviderContext,e as agents,tr as artifactLifecycleHookRegistryPackage,Tn as artifactSchemaRegistryPackage,xe as assembleForkContext,nn as buildDeterministicAdapterId,re as buildRecoveryContext,ae as buildRecoveryContextWithPipeline,l as buildSessionContext,le as buildTurnInitiator,Pn as canonicalModelPackage,ur as capabilityPackage,Gr as codeExecutionPackage,Mi as createArtifactKindContributionProcessor,Pi as createArtifactLifecycleHookContributionProcessor,Ur as createEffectiveExecutionSignal,Ji as createFacetNamespaceContributionProcessor,$n as createFrameworkCorePackages,Jn as createModelRegistryPackage,Xi as createReactionContributionProcessor,Be as createSessionExtensionContext,Sn as createSessionStorageMemoryState,Ir as createSubagentServicePackage,Vr as createToolContributionProcessor,Hr as createTransitionContributionProcessor,Yi as createWorkflowBlockContributionProcessor,ye as ensureAgentCwd,c as ensureAgentModel,ee as extractTextContent,qn as facetNamespaceRegistryPackage,yt as fetchAgentsBySession,Ze as fetchMessageCountsBySession,Re as fetchPreviewBySession,Ie as fetchSessionPreviewMaps,te as findTurnByAgent,Un as frameworkCorePackages,oe as getFullConversation,ce as getOrCreateSession,ut as importCursors,bn as kindToBranchKind,ct as mapAgentsBySession,vt as mapRowToSession,qe as mapToSession,pr as mergeModelMetadata,nt as messageRouting,r as messages,he as normalizeSelectionString,ne as normalizeToBlocks,Qe as parseForkTransforms,Ke as pickFallbackRuntimeOptions,Rn as reactionRegistryPackage,ve as recoverAgent,me as registerAbandonHandler,rn as registerAdapterRuntimeIdentityHandlers,be as registerAttachHandler,Ce as registerBuiltInActions,fe as registerCompressHandler,st as registerCompressLineageResolver,mt as registerCoreSessionServiceHandlers,Je as registerDrizzleAgentStorage,at as registerDrizzleImportCursorStorage,We as registerDrizzleMessageRoutingStorage,ot as registerDrizzleMessageStorage,Oe as registerDrizzleSessionEventStorage,ze as registerDrizzleSessionOwnershipStorage,lt as registerDrizzleSessionStorage,ke as registerDrizzleTurnStorage,_e as registerForkHandler,it as registerFtsSearchHandler,Le as registerGetStatusCountsHandler,bt as registerListActionsHandler,xn as registerMemoryAgentStorage,Fe as registerMemoryMessageStorage,se as registerMemorySessionEventStorage,wn as registerMemorySessionOwnershipStorage,Cn as registerMemorySessionStorage,pe as registerMemoryTurnStorage,we as registerMergeHandler,rt as registerParentResolver,et as registerResumeHandler,pt as registerSpawningToolCallResolver,Te as resetBuiltInActionsRegistration,s as resolveAdapterId,ge as resolveAdapterNameById,Bi as resolveArtifactContext,tn as resolveDeterministicAdapterId,De as resolveExecutionTarget,Se as resolveModelCapabilities,Zt as resolveRuntimeProviderContext,ue as resolveTargetAgents,Ee as routeToAgents,u as routeToAgentsCore,Wr as selectCodeExecutionProvider,ar as sessionBridgePackage,a as sessionEvents,cr as sessionOrchestratorPackage,Gn as sessionPackage,sr as sessionStoragePackage,t as sessions,Rr as subagentServicePackage,Bn as toolApprovalPackage,kn as toolRegistryPackage,or as transitionPipelinePackage,Vn as trayMenuPackage,n as turns,ie as verifyAndRecoverAgents,jn as workflowBlockRegistryPackage};
@@ -1,4 +1,4 @@
1
- import { _ as ArtifactViewBuilderRegistry, a as artifactViewBuilderRegistryPackage, c as surfaceBindingRegistryPackage, d as MaterializationOperationRequestOrigin, f as MaterializationOperationScope, g as ArtifactViewBuilderCollisionError, h as ArtifactViewService, i as SurfaceBindingRegistryToken, l as MaterializationOperationCoordinator, m as SurfaceBindingRegistry, n as ArtifactViewServiceToken, o as artifactViewServicePackage, p as MaterializationProviderObject, r as MaterializationOperationCoordinatorToken, s as materializationOperationCoordinatorPackage, t as ArtifactViewBuilderRegistryToken, u as MaterializationOperationLease } from "../../packages-Fy4a6vQy.mjs";
1
+ import { _ as ArtifactViewBuilderRegistry, a as artifactViewBuilderRegistryPackage, c as surfaceBindingRegistryPackage, d as MaterializationOperationRequestOrigin, f as MaterializationOperationScope, g as ArtifactViewBuilderCollisionError, h as ArtifactViewService, i as SurfaceBindingRegistryToken, l as MaterializationOperationCoordinator, m as SurfaceBindingRegistry, n as ArtifactViewServiceToken, o as artifactViewServicePackage, p as MaterializationProviderObject, r as MaterializationOperationCoordinatorToken, s as materializationOperationCoordinatorPackage, t as ArtifactViewBuilderRegistryToken, u as MaterializationOperationLease } from "../../packages-g6BtlUF9.mjs";
2
2
  import { ArtifactKindRegistration, ArtifactRevision, ArtifactViewLevel, ArtifactViewModel } from "@makaio/framework/contracts";
3
3
  import { ContributionProcessor } from "@makaio/framework/kernel";
4
4
 
@@ -1 +1 @@
1
- import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"../../packages-CZ2x-Ver.mjs";function h(){let e=new Map;return{filter:e=>e.artifactViewBuilders!=null,async processActivated(t,n,r){let i=n.artifactViewBuilders;if(!i)return;let a=r.getService(p);if(!a)throw Error(`ArtifactViewBuilderRegistry is not available — ensure artifact-view-builder-registry is started before extensions with artifact view builders.`);let o=await i.createBuilders();a.replaceBuildersForOwner(t,o),e.set(t,a)},async processStopped(t){let n=e.get(t);n&&(e.delete(t),n.removeBuildersForOwner(t))}}}function g(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerBinding(e)}function _(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerBinding(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterBinding(t.id)}g(e,n.registry)}};return{filter:e=>(e.surfaceBindings?.bindings?.length??0)>0,async processActivated(r,i,o){let s=o.getService(a);if(!s)throw Error(`SurfaceBindingRegistry is not available — ensure surface-binding-registry is started before extensions with surfaceBindings.`);let c=(i.surfaceBindings?.bindings??[]).map(e=>e.toRegistration()),l=e.get(r);n(r);let u=[];try{for(let e of c)s.registerBinding(e),u.push(e)}catch(n){for(let e=u.length-1;e>=0;--e)s.deregisterBinding(u[e].id);throw g(e,s),t(r,l),n}e.set(r,{registry:s,registrations:c})},async processStopped(e){try{n(e)}catch(t){console.error(`[SurfaceBindingContributionProcessor] Deregister error for "${e}":`,t)}}}}export{s as ArtifactViewBuilderCollisionError,i as ArtifactViewBuilderRegistry,p as ArtifactViewBuilderRegistryToken,n as ArtifactViewService,c as ArtifactViewServiceToken,r as GENERIC_ARTIFACT_VIEW_BUILDER_VERSION,o as MaterializationOperationCoordinator,d as MaterializationOperationCoordinatorToken,m as SurfaceBindingRegistry,a as SurfaceBindingRegistryToken,e as artifactViewBuilderRegistryPackage,l as artifactViewServicePackage,u as buildGenericArtifactView,h as createArtifactViewBuilderContributionProcessor,_ as createSurfaceBindingContributionProcessor,f as materializationOperationCoordinatorPackage,t as surfaceBindingRegistryPackage};
1
+ import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"../../packages-BOM7wECe.mjs";function h(){let e=new Map;return{filter:e=>e.artifactViewBuilders!=null,async processActivated(t,n,r){let i=n.artifactViewBuilders;if(!i)return;let a=r.getService(p);if(!a)throw Error(`ArtifactViewBuilderRegistry is not available — ensure artifact-view-builder-registry is started before extensions with artifact view builders.`);let o=await i.createBuilders();a.replaceBuildersForOwner(t,o),e.set(t,a)},async processStopped(t){let n=e.get(t);n&&(e.delete(t),n.removeBuildersForOwner(t))}}}function g(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerBinding(e)}function _(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerBinding(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterBinding(t.id)}g(e,n.registry)}};return{filter:e=>(e.surfaceBindings?.bindings?.length??0)>0,async processActivated(r,i,o){let s=o.getService(a);if(!s)throw Error(`SurfaceBindingRegistry is not available — ensure surface-binding-registry is started before extensions with surfaceBindings.`);let c=(i.surfaceBindings?.bindings??[]).map(e=>e.toRegistration()),l=e.get(r);n(r);let u=[];try{for(let e of c)s.registerBinding(e),u.push(e)}catch(n){for(let e=u.length-1;e>=0;--e)s.deregisterBinding(u[e].id);throw g(e,s),t(r,l),n}e.set(r,{registry:s,registrations:c})},async processStopped(e){try{n(e)}catch(t){console.error(`[SurfaceBindingContributionProcessor] Deregister error for "${e}":`,t)}}}}export{s as ArtifactViewBuilderCollisionError,i as ArtifactViewBuilderRegistry,p as ArtifactViewBuilderRegistryToken,n as ArtifactViewService,c as ArtifactViewServiceToken,r as GENERIC_ARTIFACT_VIEW_BUILDER_VERSION,o as MaterializationOperationCoordinator,d as MaterializationOperationCoordinatorToken,m as SurfaceBindingRegistry,a as SurfaceBindingRegistryToken,e as artifactViewBuilderRegistryPackage,l as artifactViewServicePackage,u as buildGenericArtifactView,h as createArtifactViewBuilderContributionProcessor,_ as createSurfaceBindingContributionProcessor,f as materializationOperationCoordinatorPackage,t as surfaceBindingRegistryPackage};