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

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 (115) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/claude/index.d.mts +20 -20
  3. package/dist/artifact-D3VD0bDr.mjs +1 -0
  4. package/dist/bus/index.mjs +1 -1
  5. package/dist/bus-CzD5SUBY.mjs +9 -0
  6. package/dist/contracts/adapter/index.d.mts +2 -2
  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 +77 -77
  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/session/index.d.mts +2 -2
  22. package/dist/contracts/variant/index.d.mts +1 -1
  23. package/dist/contracts/worker/index.d.mts +1 -1
  24. package/dist/contracts/worker/index.mjs +1 -1
  25. package/dist/contracts/workflow/index.d.mts +2 -2
  26. package/dist/contracts/workflow/index.mjs +1 -1
  27. package/dist/{contribution-CsDOPiDo.d.mts → contribution-CCVRsaNB.d.mts} +1 -1
  28. package/dist/{extension-context-BY9o1ITm.d.mts → extension-context-BWrjVPXR.d.mts} +3 -3
  29. package/dist/{framework-packages-blqho6Nk.mjs → framework-packages-CdpSqDeo.mjs} +1 -1
  30. package/dist/{hook-responses-Xxq6QAL2.d.mts → hook-responses-v6EA_7WC.d.mts} +1 -1
  31. package/dist/{index-CDezXPm9.d.mts → index-5NiMVtgh.d.mts} +425 -289
  32. package/dist/{index-BrnOW7-5.d.mts → index-B4IxvgmZ.d.mts} +17 -17
  33. package/dist/{index-VG-C-ZHN.d.mts → index-BKA5-NKn.d.mts} +16 -16
  34. package/dist/{index-Fmdwbgei.d.mts → index-BYFxcF58.d.mts} +7 -7
  35. package/dist/{index-DWWP2cUb.d.mts → index-Bt6KIvVk.d.mts} +1 -1
  36. package/dist/{index-CnVhfLrY.d.mts → index-C3C0hYHu.d.mts} +53 -53
  37. package/dist/{index-PymaxRkQ2.d.mts → index-CFet5T7v2.d.mts} +6 -6
  38. package/dist/{index-Di2-G_3M.d.mts → index-CQQsIg1Z.d.mts} +1 -1
  39. package/dist/{index-D_fMdJbU.d.mts → index-CTScKg_6.d.mts} +8 -8
  40. package/dist/{index-Dnc0PaTv2.d.mts → index-ChwEMUbc2.d.mts} +12 -12
  41. package/dist/{index-DMFFSC7x.d.mts → index-Cxx1aoPR.d.mts} +1 -1
  42. package/dist/{index-Fo4ALycy.d.mts → index-D9rIwIZ_.d.mts} +19 -19
  43. package/dist/{index-D_Zdnh0U.d.mts → index-DHKBs9sY.d.mts} +8 -8
  44. package/dist/{index-OA1A-NWE.d.mts → index-DVorNME3.d.mts} +1 -1
  45. package/dist/{index-chwNKVMu2.d.mts → index-D_1N051p2.d.mts} +37 -37
  46. package/dist/{index-CP7iuxhd2.d.mts → index-DbTxrhan2.d.mts} +4 -4
  47. package/dist/{index-C9X6ei7S.d.mts → index-DneUbrTU.d.mts} +4 -4
  48. package/dist/{index-BBrLhtLK.d.mts → index-MzTQNTb8.d.mts} +1 -1
  49. package/dist/{index-D9Ome4qp.d.mts → index-bYrlVerZ.d.mts} +1 -1
  50. package/dist/kernel/extension/index.d.mts +2 -2
  51. package/dist/kernel/index.d.mts +2 -2
  52. package/dist/kernel/observability/index.d.mts +1 -1
  53. package/dist/{materialization-BzSgnv2R.mjs → materialization-Cqx2hTZU.mjs} +1 -1
  54. package/dist/{namespace-BG35KNtw.d.mts → namespace-C1AVqxHR.d.mts} +4 -4
  55. package/dist/{namespace-BH9U2C1O.d.mts → namespace-ChJ-C9m_.d.mts} +2 -2
  56. package/dist/{namespace-D74MefGI.d.mts → namespace-D89Ih67f.d.mts} +2 -2
  57. package/dist/{namespace-DK5qZpST.d.mts → namespace-D_NJoYyN.d.mts} +6 -6
  58. package/dist/{namespace-DZooy1DW.d.mts → namespace-u4eoUCLp.d.mts} +18 -18
  59. package/dist/package.json +1 -1
  60. package/dist/packages-BOM7wECe.mjs +1 -0
  61. package/dist/{packages-Fy4a6vQy.d.mts → packages-g6BtlUF9.d.mts} +9 -6
  62. package/dist/{schemas-JPaSXxNr.d.mts → schemas-BBMHnFq8.d.mts} +4 -4
  63. package/dist/{schemas-CiJpGURT.d.mts → schemas-C81JlArF.d.mts} +8 -8
  64. package/dist/{schemas-DyTbvDp-.d.mts → schemas-CY2niCMn.d.mts} +54 -11
  65. package/dist/{schemas-CEc_v3dl.d.mts → schemas-DKaUrczB.d.mts} +2 -2
  66. package/dist/{schemas-BvDsO8Is.mjs → schemas-DmP_43fe.mjs} +1 -1
  67. package/dist/{schemas-DnwAE1ao.d.mts → schemas-DrTW-Clp.d.mts} +1 -1
  68. package/dist/{schemas-BYEgjPst2.d.mts → schemas-DrrpHMbF2.d.mts} +7 -7
  69. package/dist/{schemas-CtL2su-K.d.mts → schemas-yyNP39HU.d.mts} +4 -4
  70. package/dist/services/adapter-runtime/index.d.mts +3 -3
  71. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  72. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  73. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  74. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  75. package/dist/services/execution-target/index.d.mts +2 -2
  76. package/dist/services/execution-target/namespace.d.mts +1 -1
  77. package/dist/services/execution-target/schemas.d.mts +1 -1
  78. package/dist/services/filesystem/namespace.d.mts +12 -12
  79. package/dist/services/filesystem/schemas.d.mts +6 -6
  80. package/dist/services/git/namespace.d.mts +2 -2
  81. package/dist/services/git/schemas.d.mts +2 -2
  82. package/dist/services/index.d.mts +36 -36
  83. package/dist/services/index.mjs +1 -1
  84. package/dist/services/materialization/index.d.mts +1 -1
  85. package/dist/services/materialization/index.mjs +1 -1
  86. package/dist/services/preferences/index.d.mts +2 -2
  87. package/dist/services/preferences/schemas.d.mts +1 -1
  88. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  89. package/dist/services/provider-context/index.d.mts +1 -1
  90. package/dist/services/session/handlers/index.d.mts +1 -1
  91. package/dist/services/session/index.d.mts +5 -5
  92. package/dist/services/session/messages/namespace.d.mts +1 -1
  93. package/dist/services/session/session-events/namespace.d.mts +1 -1
  94. package/dist/services/settings/namespace.d.mts +8 -8
  95. package/dist/services/subagent-template/index.d.mts +1 -1
  96. package/dist/services/subagent-template/schemas.d.mts +1 -1
  97. package/dist/services/tools/index.mjs +1 -1
  98. package/dist/services/workflow-transitions/index.mjs +1 -1
  99. package/dist/{session-lineage-DZr5w2-z.d.mts → session-lineage-Bjh0Ccu7.d.mts} +1 -1
  100. package/dist/{storage-namespace-Cl8qtHDu.d.mts → storage-namespace-DoxNJ9Cg.d.mts} +10 -10
  101. package/dist/{tools-Cbuj-ClQ.mjs → tools-EK2HiPee.mjs} +1 -1
  102. package/dist/{transition-CzxHvafT.d.mts → transition-BEbgeCGa.d.mts} +1 -1
  103. package/dist/{types-CRKyrt5_.d.mts → types-C4-76ief.d.mts} +15 -15
  104. package/dist/ui-kernel/index.d.mts +4 -4
  105. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  106. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  107. package/dist/{view-builder-BLdSezFD.d.mts → view-builder-Cw9R3hvK.d.mts} +1 -1
  108. package/dist/{worker-toBnRJ0A.mjs → worker-DAWXguML.mjs} +1 -1
  109. package/dist/{workflow-BDDB6EJi.mjs → workflow-CS_pwwXn.mjs} +1 -1
  110. package/dist/workflow-engine/index.d.mts +9 -9
  111. package/dist/{workflow-transitions-CvT6P03B.mjs → workflow-transitions-ztq90FUj.mjs} +1 -1
  112. package/package.json +1 -1
  113. package/dist/artifact-XE82Q2bH.mjs +0 -1
  114. package/dist/bus-B-ksy7YX.mjs +0 -9
  115. package/dist/packages-CZ2x-Ver.mjs +0 -1
@@ -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};
@@ -1,3 +1,3 @@
1
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-BYEgjPst2.mjs";
2
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-Cl8qtHDu.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-DrrpHMbF2.mjs";
2
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-DoxNJ9Cg.mjs";
3
3
  export { type PreferenceItem, PreferenceItemSchema, type PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects };
@@ -1,2 +1,2 @@
1
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-BYEgjPst2.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-DrrpHMbF2.mjs";
2
2
  export { PreferenceItem, PreferenceItemSchema, PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesSchemas };
@@ -1,3 +1,3 @@
1
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-BYEgjPst2.mjs";
2
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-Cl8qtHDu.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-DrrpHMbF2.mjs";
2
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-DoxNJ9Cg.mjs";
3
3
  export { PreferenceItem, PreferenceItemSchema, PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects };
@@ -1,2 +1,2 @@
1
- import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, i as ProviderContextActivationTransaction, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, o as prepareProviderContextActivation, r as ProviderContextActivationRollbackError, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../../index-BBrLhtLK.mjs";
1
+ import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, i as ProviderContextActivationTransaction, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, o as prepareProviderContextActivation, r as ProviderContextActivationRollbackError, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../../index-MzTQNTb8.mjs";
2
2
  export { ProviderContextActivationError, ProviderContextActivationErrorCode, ProviderContextActivationRollbackError, ProviderContextActivationTransaction, RuntimeProviderContextResolutionError, RuntimeProviderContextResolutionErrorCode, activateProviderContext, prepareProviderContextActivation, resolveRuntimeProviderContext };
@@ -1,2 +1,2 @@
1
- import { a as InFlightStartResolution, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, i as refuseTotalDeferral, l as registerForkHandler, n as routeToAgents, o as StartResolution, r as admitFreshStartTargets, s as resolveInFlightStarts, t as routeToAgentsCore, u as registerCompressHandler } from "../../../index-DWWP2cUb.mjs";
1
+ import { a as InFlightStartResolution, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, i as refuseTotalDeferral, l as registerForkHandler, n as routeToAgents, o as StartResolution, r as admitFreshStartTargets, s as resolveInFlightStarts, t as routeToAgentsCore, u as registerCompressHandler } from "../../../index-Bt6KIvVk.mjs";
2
2
  export { InFlightStartResolution, StartResolution, admitFreshStartTargets, refuseTotalDeferral, registerAbandonHandler, registerAttachHandler, registerCompressHandler, registerForkHandler, registerMergeHandler, resolveInFlightStarts, routeToAgents, routeToAgentsCore };
@@ -1,10 +1,10 @@
1
- import { $ as IngestCompletedTurnResult, $n as runExclusiveStart, $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, An as FreshWithHistoryRecoveryPlan, At as SESSION_OWNERSHIP_CLAIM_LOCK_NAMESPACE, B as importCursorsDual, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dn as buildPlannedRecoveryContext, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Fn as recoveryPlanResumeTarget, Ft as registerMemoryAgentStorage, G as ObservedSessionIngestionPolicyInput, Gn as ISessionOrchestrator, Gt as assembleForkContext, H as OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, In as StartReservationRequest, It as registerDrizzleSessionStorage, J as ObservedSessionIngestionService, Jn as assessClaimOwner, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, K as registerObservedSessionIngestionPolicyProvider, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Ln as reserveStartFor, Lt as registerMemorySessionStorage, M as SelectTurn, Mn as RecoveryPlan, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nn as planAgentRecovery, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, P as turnsDual, Pn as recoveryPlanRequiresHistory, Pt as registerDrizzleAgentStorage, Q as IngestCompletedTurnParams, Qn as peekInFlightStart, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, S as messageRoutingDual, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, U as ObservedSessionIngestionPolicyDecision, Un as TurnContextEnricher, Ut as createSessionExtensionContext, V as IObservedSessionIngestionPolicyProvider, Vn as extractTextContent, Vt as AgentStorageSubjects, W as ObservedSessionIngestionPolicyImportStatus, Wn as AdapterRegistry, Wt as SessionBridge, X as isTrackingStub, Xn as enqueueAgentSettle, Xt as SelectionRefusalContext, Y as isPolicyDiscoveredObservedSession, Yn as mintClaimToken, Yt as NamedSelectionInstance, Z as LogImportTriggerSubjects, Zn as InFlightStart, Zt as describeHalfNamedInstanceRefusal, _ as MakaioSessionConfig, _n as LeadTransition, _t as SessionPreviewMaps, a as resolveSessionResumeIdentity, an as registerResumeHandler, at as SessionUserMessageSentPayload, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, ct as emitSessionUserMessageSent, d as toSessionLineage, dn as resolveSelectionOwnedInstance, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, er as registerAdapterSessionMovementObserver, et as IngestTurnMessage, f as registerSessionDiscoveredHandler, fn as startLeadAgent, ft as InsertSessionEvent, g as MakaioSession, gn as LeadStartResult, gt as getSessionAncestorChain, h as registerParentResolver, hn as LeadStartRequest, ht as sessionEventsDual, i as SessionResumeIdentity, in as registerGetStatusCountsHandler, ir as MakaioSessionServiceOptions, it as SessionTurnStartedPayload, j as InsertTurn, jn as NativeResumeRecoveryPlan, jt as ownershipClaimTransactionLock, k as registerMemoryMessageStorage, kn as FRESH_WITH_HISTORY_RECOVERY_PLAN, kt as OwnershipClaimKey, l as ContextAssemblyResult, ln as SessionContextWindowState, lt as registerSessionLifecycleEventWriters, m as registerCompressLineageResolver, mn as LeadStartDispatchRequest, mt as sessionEvents, n as NativeLocalityIntent, nn as resetBuiltInActionsRegistration, nr as registerSessionOwnershipAuthority, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, ot as appendSessionLifecycleEvent, p as registerSpawningToolCallResolver, pn as LeadStartDispatch, pt as SelectSessionEvent, q as unregisterObservedSessionIngestionPolicyProvider, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, r as evaluateNativeLocality, rn as actionRegistry, rr as MakaioSessionService, rt as SessionLifecycleEventArgs, s as buildSessionContext, sn as AgentContextState, st as emitSessionTurnStarted, t as NativeLocalityInput, tn as registerBuiltInActions, tr as SessionOwnershipAuthorityDeps, tt as ingestCompletedTurn, u as kindToBranchKind, un as SelectionInstanceContext, 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";
2
- import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, S as resolveOwnedAdapterInstance, T as TurnConfig, _ as OwnedAdapterInstanceTarget, a as InFlightStartResolution, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, g as OwnedAdapterInstance, h as MachineScopedAdapterInstance, i as refuseTotalDeferral, k as TurnResult, l as registerForkHandler, m as SessionStartFailureCode, n as routeToAgents, o as StartResolution, p as SessionStartError, r as admitFreshStartTargets, s as resolveInFlightStarts, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities, y as resolveAnnouncedAdapterInstance } from "../../index-DWWP2cUb.mjs";
3
- import { l as resolveRuntimeProviderContext } from "../../index-BBrLhtLK.mjs";
1
+ import { $ as IngestCompletedTurnResult, $n as runExclusiveStart, $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, An as FreshWithHistoryRecoveryPlan, At as SESSION_OWNERSHIP_CLAIM_LOCK_NAMESPACE, B as importCursorsDual, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dn as buildPlannedRecoveryContext, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Fn as recoveryPlanResumeTarget, Ft as registerMemoryAgentStorage, G as ObservedSessionIngestionPolicyInput, Gn as ISessionOrchestrator, Gt as assembleForkContext, H as OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, In as StartReservationRequest, It as registerDrizzleSessionStorage, J as ObservedSessionIngestionService, Jn as assessClaimOwner, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, K as registerObservedSessionIngestionPolicyProvider, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Ln as reserveStartFor, Lt as registerMemorySessionStorage, M as SelectTurn, Mn as RecoveryPlan, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nn as planAgentRecovery, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, P as turnsDual, Pn as recoveryPlanRequiresHistory, Pt as registerDrizzleAgentStorage, Q as IngestCompletedTurnParams, Qn as peekInFlightStart, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, S as messageRoutingDual, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, U as ObservedSessionIngestionPolicyDecision, Un as TurnContextEnricher, Ut as createSessionExtensionContext, V as IObservedSessionIngestionPolicyProvider, Vn as extractTextContent, Vt as AgentStorageSubjects, W as ObservedSessionIngestionPolicyImportStatus, Wn as AdapterRegistry, Wt as SessionBridge, X as isTrackingStub, Xn as enqueueAgentSettle, Xt as SelectionRefusalContext, Y as isPolicyDiscoveredObservedSession, Yn as mintClaimToken, Yt as NamedSelectionInstance, Z as LogImportTriggerSubjects, Zn as InFlightStart, Zt as describeHalfNamedInstanceRefusal, _ as MakaioSessionConfig, _n as LeadTransition, _t as SessionPreviewMaps, a as resolveSessionResumeIdentity, an as registerResumeHandler, at as SessionUserMessageSentPayload, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, ct as emitSessionUserMessageSent, d as toSessionLineage, dn as resolveSelectionOwnedInstance, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, er as registerAdapterSessionMovementObserver, et as IngestTurnMessage, f as registerSessionDiscoveredHandler, fn as startLeadAgent, ft as InsertSessionEvent, g as MakaioSession, gn as LeadStartResult, gt as getSessionAncestorChain, h as registerParentResolver, hn as LeadStartRequest, ht as sessionEventsDual, i as SessionResumeIdentity, in as registerGetStatusCountsHandler, ir as MakaioSessionServiceOptions, it as SessionTurnStartedPayload, j as InsertTurn, jn as NativeResumeRecoveryPlan, jt as ownershipClaimTransactionLock, k as registerMemoryMessageStorage, kn as FRESH_WITH_HISTORY_RECOVERY_PLAN, kt as OwnershipClaimKey, l as ContextAssemblyResult, ln as SessionContextWindowState, lt as registerSessionLifecycleEventWriters, m as registerCompressLineageResolver, mn as LeadStartDispatchRequest, mt as sessionEvents, n as NativeLocalityIntent, nn as resetBuiltInActionsRegistration, nr as registerSessionOwnershipAuthority, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, ot as appendSessionLifecycleEvent, p as registerSpawningToolCallResolver, pn as LeadStartDispatch, pt as SelectSessionEvent, q as unregisterObservedSessionIngestionPolicyProvider, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, r as evaluateNativeLocality, rn as actionRegistry, rr as MakaioSessionService, rt as SessionLifecycleEventArgs, s as buildSessionContext, sn as AgentContextState, st as emitSessionTurnStarted, t as NativeLocalityInput, tn as registerBuiltInActions, tr as SessionOwnershipAuthorityDeps, tt as ingestCompletedTurn, u as kindToBranchKind, un as SelectionInstanceContext, 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-BYFxcF58.mjs";
2
+ import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, S as resolveOwnedAdapterInstance, T as TurnConfig, _ as OwnedAdapterInstanceTarget, a as InFlightStartResolution, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, g as OwnedAdapterInstance, h as MachineScopedAdapterInstance, i as refuseTotalDeferral, k as TurnResult, l as registerForkHandler, m as SessionStartFailureCode, n as routeToAgents, o as StartResolution, p as SessionStartError, r as admitFreshStartTargets, s as resolveInFlightStarts, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities, y as resolveAnnouncedAdapterInstance } from "../../index-Bt6KIvVk.mjs";
3
+ import { l as resolveRuntimeProviderContext } from "../../index-MzTQNTb8.mjs";
4
4
  import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-Dt7hJA-a.mjs";
5
5
  import { _ as sessionsDual, c as adapterSessionClaims, d as agentsDual, g as sessions, l as adapterSessionClaimsDual, u as agents } from "../../schema-C58MdqlI.mjs";
6
- import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../namespace-DZooy1DW.mjs";
6
+ import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../namespace-u4eoUCLp.mjs";
7
7
  import { t as TurnStorageNamespace } from "../../namespace-CO9J3NB-2.mjs";
8
8
  import { n as TurnStorageSubjects } from "../../namespace-D8pSI--d.mjs";
9
- import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-BG35KNtw.mjs";
9
+ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-C1AVqxHR.mjs";
10
10
  export { AdapterRegistry, AgentContextState, AgentRecoveryOutcome, AgentStorageNamespace, AgentStorageSubjects, BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, ContextAssemblyResult, ContextWindowTracker, ContextWindowTrackerConfig, EmbeddingIndexManager, EventTransform, FRESH_WITH_HISTORY_RECOVERY_PLAN, FallbackRuntimeOptions, FreshWithHistoryRecoveryPlan, IObservedSessionIngestionPolicyProvider, ISessionOrchestrator, InFlightStart, InFlightStartResolution, IngestCompletedTurnParams, IngestCompletedTurnResult, IngestTurnMessage, InsertMessage, InsertMessageRouting, InsertSessionEvent, InsertTurn, LeadStartDispatch, LeadStartDispatchRequest, LeadStartRequest, LeadStartResult, LeadTransition, LogImportTriggerSubjects, MachineScopedAdapterInstance, MakaioSession, MakaioSessionConfig, MakaioSessionService, MakaioSessionServiceOptions, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, NamedSelectionInstance, NativeLocalityInput, NativeLocalityIntent, NativeResumeRecoveryPlan, OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, ObservedSessionIngestionPolicyDecision, ObservedSessionIngestionPolicyImportStatus, ObservedSessionIngestionPolicyInput, ObservedSessionIngestionService, OwnedAdapterInstance, OwnedAdapterInstanceTarget, OwnershipClaimKey, RecoveryConfig, RecoveryPlan, SESSION_OWNERSHIP_CLAIM_LOCK_NAMESPACE, SearchFilters, SearchSessionRow, SelectMessage, SelectMessageRouting, SelectSessionEvent, SelectTurn, SelectionInstanceContext, SelectionRefusalContext, SessionBridge, SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionLifecycleEventArgs, SessionOrchestrator, SessionOwnershipAuthorityDeps, SessionPreviewMaps, SessionResumeIdentity, SessionStartError, SessionStartFailureCode, SessionStorageMemoryState, SessionStorageNamespace, SessionStorageSubjects, SessionTurnManager, SessionTurnStartedPayload, SessionUserMessageSentPayload, StartReservationRequest, StartResolution, StartTurnOptions, Turn, TurnConfig, TurnContext, TurnContextEnricher, TurnPairStateChange, TurnPairTerminalOutcome, TurnResult, TurnStorageNamespace, TurnStorageSubjects, VerifiedAgents, actionRegistry, adapterSessionClaims, adapterSessionClaimsDual, admitFreshStartTargets, agents, agentsDual, appendSessionLifecycleEvent, assembleForkContext, assessClaimOwner, buildPlannedRecoveryContext, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, createSessionExtensionContext, createSessionStorageMemoryState, describeHalfNamedInstanceRefusal, emitSessionTurnStarted, emitSessionUserMessageSent, enqueueAgentSettle, ensureAgentCwd, ensureAgentModel, evaluateNativeLocality, extractTextContent, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, getFullConversation, getOrCreateSession, getSessionAncestorChain, importCursors, importCursorsDual, ingestCompletedTurn, isPolicyDiscoveredObservedSession, isTrackingStub, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, messageRouting, messageRoutingDual, messages, mintClaimToken, normalizeSelectionString, normalizeToBlocks, ownershipClaimTransactionLock, parseForkTransforms, peekInFlightStart, pickFallbackRuntimeOptions, planAgentRecovery, recoverAgent, recoveryPlanRequiresHistory, recoveryPlanResumeTarget, refuseTotalDeferral, registerAbandonHandler, registerAdapterSessionMovementObserver, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionOwnershipStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionOwnershipStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerObservedSessionIngestionPolicyProvider, registerParentResolver, registerResumeHandler, registerSessionDiscoveredHandler, registerSessionLifecycleEventWriters, registerSessionOwnershipAuthority, registerSpawningToolCallResolver, reserveStartFor, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveAnnouncedAdapterInstance, resolveExecutionTarget, resolveInFlightStarts, resolveModelCapabilities, resolveOwnedAdapterInstance, resolveRuntimeProviderContext, resolveSelectionOwnedInstance, resolveSessionResumeIdentity, resolveTargetAgents, routeToAgents, routeToAgentsCore, runExclusiveStart, sessionEvents, sessionEventsDual, sessions, sessionsDual, startLeadAgent, toSessionLineage, turns, turnsDual, unregisterObservedSessionIngestionPolicyProvider, verifyAndRecoverAgents };
@@ -1,2 +1,2 @@
1
- import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-BG35KNtw.mjs";
1
+ import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-C1AVqxHR.mjs";
2
2
  export { MessagePageCursor, MessagePageCursorSchema, MessageStorageNamespace, MessageStorageSubjects };
@@ -1,2 +1,2 @@
1
- import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../../namespace-DZooy1DW.mjs";
1
+ import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../../namespace-u4eoUCLp.mjs";
2
2
  export { SessionEventStorageNamespace, SessionEventStorageSubjects };
@@ -725,8 +725,8 @@ declare const SubagentTemplateSettingsNamespace: _$_makaio_core0.BusNamespaceDef
725
725
  model: _$zod.ZodOptional<_$zod.ZodString>;
726
726
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
727
727
  contextMode: _$zod.ZodDefault<_$zod.ZodEnum<{
728
- fresh: "fresh";
729
728
  fork: "fork";
729
+ fresh: "fresh";
730
730
  }>>;
731
731
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
732
732
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -743,14 +743,14 @@ declare const SubagentTemplateSettingsNamespace: _$_makaio_core0.BusNamespaceDef
743
743
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
744
744
  adapterName: _$zod.ZodString;
745
745
  model: _$zod.ZodOptional<_$zod.ZodString>;
746
- providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
747
746
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
747
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
748
748
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
749
749
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
750
750
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
751
751
  contextMode: _$zod.ZodDefault<_$zod.ZodEnum<{
752
- fresh: "fresh";
753
752
  fork: "fork";
753
+ fresh: "fresh";
754
754
  }>>;
755
755
  }, _$zod_v4_core0.$strip>;
756
756
  response: _$zod.ZodObject<{
@@ -766,8 +766,8 @@ declare const SubagentTemplateSettingsNamespace: _$_makaio_core0.BusNamespaceDef
766
766
  model: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
767
767
  systemPrompt: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
768
768
  contextMode: _$zod.ZodOptional<_$zod.ZodDefault<_$zod.ZodEnum<{
769
- fresh: "fresh";
770
769
  fork: "fork";
770
+ fresh: "fresh";
771
771
  }>>>;
772
772
  allowedTools: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>>;
773
773
  disallowedTools: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>>;
@@ -816,8 +816,8 @@ declare const SubagentTemplateSettingsSubjects: _$_makaio_core0.BusSubjects<_$_m
816
816
  model: _$zod.ZodOptional<_$zod.ZodString>;
817
817
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
818
818
  contextMode: _$zod.ZodDefault<_$zod.ZodEnum<{
819
- fresh: "fresh";
820
819
  fork: "fork";
820
+ fresh: "fresh";
821
821
  }>>;
822
822
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
823
823
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -834,14 +834,14 @@ declare const SubagentTemplateSettingsSubjects: _$_makaio_core0.BusSubjects<_$_m
834
834
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
835
835
  adapterName: _$zod.ZodString;
836
836
  model: _$zod.ZodOptional<_$zod.ZodString>;
837
- providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
838
837
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
838
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
839
839
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
840
840
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
841
841
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
842
842
  contextMode: _$zod.ZodDefault<_$zod.ZodEnum<{
843
- fresh: "fresh";
844
843
  fork: "fork";
844
+ fresh: "fresh";
845
845
  }>>;
846
846
  }, _$zod_v4_core0.$strip>;
847
847
  response: _$zod.ZodObject<{
@@ -857,8 +857,8 @@ declare const SubagentTemplateSettingsSubjects: _$_makaio_core0.BusSubjects<_$_m
857
857
  model: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
858
858
  systemPrompt: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
859
859
  contextMode: _$zod.ZodOptional<_$zod.ZodDefault<_$zod.ZodEnum<{
860
- fresh: "fresh";
861
860
  fork: "fork";
861
+ fresh: "fresh";
862
862
  }>>>;
863
863
  allowedTools: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>>;
864
864
  disallowedTools: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>>;
@@ -1,3 +1,3 @@
1
- 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";
1
+ 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-C81JlArF.mjs";
2
2
  import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../../namespace-CytKzWBF.mjs";
3
3
  export { type SubagentTemplate, SubagentTemplateCompletedEventSchema, type SubagentTemplateCreate, SubagentTemplateCreateSchema, type SubagentTemplateInstance, SubagentTemplateInstanceSchema, type SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelNamespace, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, type SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSubjects, type SubagentTemplateSummary, SubagentTemplateSummarySchema, type SubagentTemplateUpdate, SubagentTemplateUpdateSchema };
@@ -1,2 +1,2 @@
1
- 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";
1
+ 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-C81JlArF.mjs";
2
2
  export { SubagentTemplate, SubagentTemplateCompletedEventSchema, SubagentTemplateCreate, SubagentTemplateCreateSchema, SubagentTemplateInstance, SubagentTemplateInstanceSchema, SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSummary, SubagentTemplateSummarySchema, SubagentTemplateUpdate, SubagentTemplateUpdateSchema };
@@ -1 +1 @@
1
- import{M as e}from"../../framework-packages-blqho6Nk.mjs";import{n as t,r as n,t as r}from"../../tools-Cbuj-ClQ.mjs";export{r as FILE_ACCESS_RULES_KEY,e as ToolRegistry,n as createToolContributionProcessor,t as extractToolFilePath};
1
+ import{M as e}from"../../framework-packages-CdpSqDeo.mjs";import{n as t,r as n,t as r}from"../../tools-EK2HiPee.mjs";export{r as FILE_ACCESS_RULES_KEY,e as ToolRegistry,n as createToolContributionProcessor,t as extractToolFilePath};
@@ -1 +1 @@
1
- import{A as e,D as t,O as n,k as r}from"../../framework-packages-blqho6Nk.mjs";import{t as i}from"../../workflow-transitions-CvT6P03B.mjs";export{r as TransitionActionRegistry,t as TransitionPipelineService,n as TransitionRuleRegistry,e as WORKFLOW_START_ACTION_TYPE,i as createTransitionContributionProcessor};
1
+ import{A as e,D as t,O as n,k as r}from"../../framework-packages-CdpSqDeo.mjs";import{t as i}from"../../workflow-transitions-ztq90FUj.mjs";export{r as TransitionActionRegistry,t as TransitionPipelineService,n as TransitionRuleRegistry,e as WORKFLOW_START_ACTION_TYPE,i as createTransitionContributionProcessor};
@@ -14,8 +14,8 @@ declare const COMPRESS_SESSION_LINEAGE_KIND: "compress";
14
14
  /** Discriminates the relationship of a session to its parent. */
15
15
  declare const SessionLineageKindSchema: z.ZodEnum<{
16
16
  fork: "fork";
17
- subagent: "subagent";
18
17
  root: "root";
18
+ subagent: "subagent";
19
19
  compress: "compress";
20
20
  }>;
21
21
  type SessionLineageKind = z.infer<typeof SessionLineageKindSchema>;
@@ -17,9 +17,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
17
17
  scope: _$zod.ZodString;
18
18
  context: _$zod.ZodOptional<_$zod.ZodString>;
19
19
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
20
- mobile: "mobile";
21
20
  desktop: "desktop";
22
21
  tablet: "tablet";
22
+ mobile: "mobile";
23
23
  }>>;
24
24
  }, _$zod_v4_core0.$strip>;
25
25
  category: _$zod.ZodString;
@@ -38,9 +38,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
38
38
  scope: _$zod.ZodString;
39
39
  context: _$zod.ZodOptional<_$zod.ZodString>;
40
40
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
41
- mobile: "mobile";
42
41
  desktop: "desktop";
43
42
  tablet: "tablet";
43
+ mobile: "mobile";
44
44
  }>>;
45
45
  }, _$zod_v4_core0.$strip>;
46
46
  category: _$zod.ZodString;
@@ -60,9 +60,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
60
60
  scope: _$zod.ZodString;
61
61
  context: _$zod.ZodOptional<_$zod.ZodString>;
62
62
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
63
- mobile: "mobile";
64
63
  desktop: "desktop";
65
64
  tablet: "tablet";
65
+ mobile: "mobile";
66
66
  }>>;
67
67
  }, _$zod_v4_core0.$strip>;
68
68
  category: _$zod.ZodString;
@@ -81,9 +81,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
81
81
  scope: _$zod.ZodOptional<_$zod.ZodString>;
82
82
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
83
83
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
84
- mobile: "mobile";
85
84
  desktop: "desktop";
86
85
  tablet: "tablet";
86
+ mobile: "mobile";
87
87
  }>>>;
88
88
  }, _$zod_v4_core0.$strip>>;
89
89
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -98,9 +98,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
98
98
  scope: _$zod.ZodString;
99
99
  context: _$zod.ZodOptional<_$zod.ZodString>;
100
100
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
101
- mobile: "mobile";
102
101
  desktop: "desktop";
103
102
  tablet: "tablet";
103
+ mobile: "mobile";
104
104
  }>>;
105
105
  }, _$zod_v4_core0.$strip>;
106
106
  category: _$zod.ZodString;
@@ -124,9 +124,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
124
124
  scope: _$zod.ZodString;
125
125
  context: _$zod.ZodOptional<_$zod.ZodString>;
126
126
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
127
- mobile: "mobile";
128
127
  desktop: "desktop";
129
128
  tablet: "tablet";
129
+ mobile: "mobile";
130
130
  }>>;
131
131
  }, _$zod_v4_core0.$strip>;
132
132
  category: _$zod.ZodString;
@@ -145,9 +145,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
145
145
  scope: _$zod.ZodString;
146
146
  context: _$zod.ZodOptional<_$zod.ZodString>;
147
147
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
148
- mobile: "mobile";
149
148
  desktop: "desktop";
150
149
  tablet: "tablet";
150
+ mobile: "mobile";
151
151
  }>>;
152
152
  }, _$zod_v4_core0.$strip>;
153
153
  category: _$zod.ZodString;
@@ -167,9 +167,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
167
167
  scope: _$zod.ZodString;
168
168
  context: _$zod.ZodOptional<_$zod.ZodString>;
169
169
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
170
- mobile: "mobile";
171
170
  desktop: "desktop";
172
171
  tablet: "tablet";
172
+ mobile: "mobile";
173
173
  }>>;
174
174
  }, _$zod_v4_core0.$strip>;
175
175
  category: _$zod.ZodString;
@@ -188,9 +188,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
188
188
  scope: _$zod.ZodOptional<_$zod.ZodString>;
189
189
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
190
190
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
191
- mobile: "mobile";
192
191
  desktop: "desktop";
193
192
  tablet: "tablet";
193
+ mobile: "mobile";
194
194
  }>>>;
195
195
  }, _$zod_v4_core0.$strip>>;
196
196
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -205,9 +205,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
205
205
  scope: _$zod.ZodString;
206
206
  context: _$zod.ZodOptional<_$zod.ZodString>;
207
207
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
208
- mobile: "mobile";
209
208
  desktop: "desktop";
210
209
  tablet: "tablet";
210
+ mobile: "mobile";
211
211
  }>>;
212
212
  }, _$zod_v4_core0.$strip>;
213
213
  category: _$zod.ZodString;
@@ -1 +1 @@
1
- import{l as e}from"./framework-packages-blqho6Nk.mjs";import{FILE_ACCESS_RULES_KEY as t,extractToolFilePath as n}from"@makaio/framework/tools";function r(){let t=new Map;return{filter:e=>!!e.tools?.createToolsets,async processActivated(n,r,i){let a=i.getService(e);if(!a)throw Error(`ToolRegistry is not available. Ensure toolRegistryPackage is included in the composition root.`);let o=r.tools.createToolsets(i),s=[];try{for(let e of o)await a.register(e),s.push(()=>a.deregister(e.metadata.name))}catch(e){for(let e=s.length-1;e>=0;--e)try{await s[e]()}catch(e){console.error(`[ToolContributionProcessor] Rollback error for "${n}":`,e)}throw e}t.set(n,s)},async processStopped(e){let n=t.get(e);if(n){for(let t=n.length-1;t>=0;--t)try{await n[t]()}catch(t){console.error(`[ToolContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}export{n,r,t};
1
+ import{l as e}from"./framework-packages-CdpSqDeo.mjs";import{FILE_ACCESS_RULES_KEY as t,extractToolFilePath as n}from"@makaio/framework/tools";function r(){let t=new Map;return{filter:e=>!!e.tools?.createToolsets,async processActivated(n,r,i){let a=i.getService(e);if(!a)throw Error(`ToolRegistry is not available. Ensure toolRegistryPackage is included in the composition root.`);let o=r.tools.createToolsets(i),s=[];try{for(let e of o)await a.register(e),s.push(()=>a.deregister(e.metadata.name))}catch(e){for(let e=s.length-1;e>=0;--e)try{await s[e]()}catch(e){console.error(`[ToolContributionProcessor] Rollback error for "${n}":`,e)}throw e}t.set(n,s)},async processStopped(e){let n=t.get(e);if(n){for(let t=n.length-1;t>=0;--t)try{await n[t]()}catch(t){console.error(`[ToolContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}export{n,r,t};
@@ -1,4 +1,4 @@
1
- import { x as ArtifactRevision$1 } from "./schemas-DyTbvDp-.mjs";
1
+ import { x as ArtifactRevision$1 } from "./schemas-CY2niCMn.mjs";
2
2
  import { l as JsonValue$1 } from "./json-value-B2gMynW3.mjs";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -1158,8 +1158,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
1158
1158
  type: z.ZodLiteral<"locality.degraded">;
1159
1159
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1160
1160
  intent: z.ZodEnum<{
1161
- resume: "resume";
1162
1161
  fork: "fork";
1162
+ resume: "resume";
1163
1163
  }>;
1164
1164
  verdictKind: z.ZodLiteral<"degrade">;
1165
1165
  reason: z.ZodEnum<{
@@ -1184,8 +1184,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
1184
1184
  turnId: z.ZodOptional<z.ZodString>;
1185
1185
  }, z.core.$strip>, z.ZodObject<{
1186
1186
  intent: z.ZodEnum<{
1187
- resume: "resume";
1188
1187
  fork: "fork";
1188
+ resume: "resume";
1189
1189
  }>;
1190
1190
  verdictKind: z.ZodLiteral<"foreign">;
1191
1191
  foreignMachineId: z.ZodString;
@@ -1565,8 +1565,8 @@ type Turn$1 = z.infer<typeof TurnSchema$1>;
1565
1565
  */
1566
1566
  declare const MessageRoutingStatusSchema: z.ZodEnum<{
1567
1567
  completed: "completed";
1568
- sent: "sent";
1569
1568
  acknowledged: "acknowledged";
1569
+ sent: "sent";
1570
1570
  }>;
1571
1571
  type MessageRoutingStatus = z.infer<typeof MessageRoutingStatusSchema>;
1572
1572
  /**
@@ -1577,8 +1577,8 @@ declare const MessageRoutingSchema$1: z.ZodObject<{
1577
1577
  agentId: z.ZodString;
1578
1578
  status: z.ZodEnum<{
1579
1579
  completed: "completed";
1580
- sent: "sent";
1581
1580
  acknowledged: "acknowledged";
1581
+ sent: "sent";
1582
1582
  }>;
1583
1583
  timestamp: z.ZodNumber;
1584
1584
  error: z.ZodOptional<z.ZodString>;
@@ -4284,8 +4284,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
4284
4284
  type: z.ZodLiteral<"locality.degraded">;
4285
4285
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
4286
4286
  intent: z.ZodEnum<{
4287
- resume: "resume";
4288
4287
  fork: "fork";
4288
+ resume: "resume";
4289
4289
  }>;
4290
4290
  verdictKind: z.ZodLiteral<"degrade">;
4291
4291
  reason: z.ZodEnum<{
@@ -4310,8 +4310,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
4310
4310
  turnId: z.ZodOptional<z.ZodString>;
4311
4311
  }, z.core.$strip>, z.ZodObject<{
4312
4312
  intent: z.ZodEnum<{
4313
- resume: "resume";
4314
4313
  fork: "fork";
4314
+ resume: "resume";
4315
4315
  }>;
4316
4316
  verdictKind: z.ZodLiteral<"foreign">;
4317
4317
  foreignMachineId: z.ZodString;
@@ -11006,8 +11006,8 @@ declare const SessionSchemas: {
11006
11006
  type: _$zod.ZodLiteral<"locality.degraded">;
11007
11007
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
11008
11008
  intent: _$zod.ZodEnum<{
11009
- resume: "resume";
11010
11009
  fork: "fork";
11010
+ resume: "resume";
11011
11011
  }>;
11012
11012
  verdictKind: _$zod.ZodLiteral<"degrade">;
11013
11013
  reason: _$zod.ZodEnum<{
@@ -11032,8 +11032,8 @@ declare const SessionSchemas: {
11032
11032
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
11033
11033
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
11034
11034
  intent: _$zod.ZodEnum<{
11035
- resume: "resume";
11036
11035
  fork: "fork";
11036
+ resume: "resume";
11037
11037
  }>;
11038
11038
  verdictKind: _$zod.ZodLiteral<"foreign">;
11039
11039
  foreignMachineId: _$zod.ZodString;
@@ -11683,8 +11683,8 @@ declare const SessionSchemas: {
11683
11683
  type: _$zod.ZodLiteral<"locality.degraded">;
11684
11684
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
11685
11685
  intent: _$zod.ZodEnum<{
11686
- resume: "resume";
11687
11686
  fork: "fork";
11687
+ resume: "resume";
11688
11688
  }>;
11689
11689
  verdictKind: _$zod.ZodLiteral<"degrade">;
11690
11690
  reason: _$zod.ZodEnum<{
@@ -11709,8 +11709,8 @@ declare const SessionSchemas: {
11709
11709
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
11710
11710
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
11711
11711
  intent: _$zod.ZodEnum<{
11712
- resume: "resume";
11713
11712
  fork: "fork";
11713
+ resume: "resume";
11714
11714
  }>;
11715
11715
  verdictKind: _$zod.ZodLiteral<"foreign">;
11716
11716
  foreignMachineId: _$zod.ZodString;
@@ -11813,8 +11813,8 @@ declare const SessionSchemas: {
11813
11813
  timestamp: _$zod.ZodNumber;
11814
11814
  }, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
11815
11815
  intent: _$zod.ZodEnum<{
11816
- resume: "resume";
11817
11816
  fork: "fork";
11817
+ resume: "resume";
11818
11818
  }>;
11819
11819
  verdictKind: _$zod.ZodLiteral<"degrade">;
11820
11820
  reason: _$zod.ZodEnum<{
@@ -11839,8 +11839,8 @@ declare const SessionSchemas: {
11839
11839
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
11840
11840
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
11841
11841
  intent: _$zod.ZodEnum<{
11842
- resume: "resume";
11843
11842
  fork: "fork";
11843
+ resume: "resume";
11844
11844
  }>;
11845
11845
  verdictKind: _$zod.ZodLiteral<"foreign">;
11846
11846
  foreignMachineId: _$zod.ZodString;
@@ -11858,8 +11858,8 @@ declare const SessionSchemas: {
11858
11858
  maxTokens: _$zod.ZodNumber;
11859
11859
  percentage: _$zod.ZodNumber;
11860
11860
  level: _$zod.ZodEnum<{
11861
- ok: "ok";
11862
11861
  warn: "warn";
11862
+ ok: "ok";
11863
11863
  critical: "critical";
11864
11864
  }>;
11865
11865
  lastUpdatedAt: _$zod.ZodNumber;
@@ -12199,8 +12199,8 @@ declare const SessionSchemas: {
12199
12199
  type: _$zod.ZodLiteral<"locality.degraded">;
12200
12200
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
12201
12201
  intent: _$zod.ZodEnum<{
12202
- resume: "resume";
12203
12202
  fork: "fork";
12203
+ resume: "resume";
12204
12204
  }>;
12205
12205
  verdictKind: _$zod.ZodLiteral<"degrade">;
12206
12206
  reason: _$zod.ZodEnum<{
@@ -12225,8 +12225,8 @@ declare const SessionSchemas: {
12225
12225
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
12226
12226
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
12227
12227
  intent: _$zod.ZodEnum<{
12228
- resume: "resume";
12229
12228
  fork: "fork";
12229
+ resume: "resume";
12230
12230
  }>;
12231
12231
  verdictKind: _$zod.ZodLiteral<"foreign">;
12232
12232
  foreignMachineId: _$zod.ZodString;