@makaio/framework 1.0.0-dev-1790598955306 → 1.0.0-dev-1790614475240

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 (52) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/contracts/capabilities/index.d.mts +1 -1
  3. package/dist/contracts/client/index.d.mts +1 -1
  4. package/dist/contracts/extension/index.d.mts +1 -1
  5. package/dist/contracts/index.d.mts +9 -9
  6. package/dist/contracts/materialization/index.d.mts +2 -2
  7. package/dist/contracts/worker/index.d.mts +1 -1
  8. package/dist/{framework-packages-CLrOCDDK.mjs → framework-packages-D2fycy02.mjs} +1 -1
  9. package/dist/{index-CpaWzUE5.d.mts → index-1mY0aNe3.d.mts} +1 -1
  10. package/dist/{index-CXroIgOA.d.mts → index-3G70bNLs.d.mts} +1 -1
  11. package/dist/{index-oE2q0pTG.d.mts → index-B1uHTa1l.d.mts} +1 -1
  12. package/dist/{index-CPOJqxrf2.d.mts → index-BYMgvz_a2.d.mts} +3 -3
  13. package/dist/{index-CGM0-mt2.d.mts → index-C-tLT_IE.d.mts} +34 -34
  14. package/dist/{index-xqiInEhj.d.mts → index-DmV9ybgT.d.mts} +24 -2
  15. package/dist/{index-D9hIDsPr.d.mts → index-DyWD9bfP.d.mts} +46 -2
  16. package/dist/{index-CZIFCrMc.d.mts → index-_CsKmUOy.d.mts} +14 -9
  17. package/dist/{namespace-C1-ZAKEG.d.mts → namespace-CNX4llM5.d.mts} +6 -6
  18. package/dist/package.json +1 -1
  19. package/dist/runtime-node/index.d.mts +1 -1
  20. package/dist/runtime-node/index.mjs +22 -22
  21. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  22. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  23. package/dist/{schemas-CjFPsYeV.d.mts → schemas-BjhhkGN_.d.mts} +4 -4
  24. package/dist/{schemas-Dyp3rHZ7.d.mts → schemas-D9pXu76T.d.mts} +4 -4
  25. package/dist/{schemas-DPtj1sPC2.d.mts → schemas-RwAlAMbq2.d.mts} +7 -7
  26. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  27. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  28. package/dist/services/index.d.mts +35 -16
  29. package/dist/services/index.mjs +1 -1
  30. package/dist/services/preferences/index.d.mts +2 -2
  31. package/dist/services/preferences/schemas.d.mts +1 -1
  32. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  33. package/dist/services/provider-context/index.d.mts +1 -1
  34. package/dist/services/session/index.d.mts +1 -1
  35. package/dist/services/tool-approval/index.d.mts +1 -1
  36. package/dist/services/tool-approval/index.mjs +1 -1
  37. package/dist/services/tools/index.mjs +1 -1
  38. package/dist/services/workflow-transitions/index.mjs +1 -1
  39. package/dist/{storage-namespace-CwwiV3kt.d.mts → storage-namespace-NHTWAjaX.d.mts} +10 -10
  40. package/dist/tool-approval-service-BCN4W8eS.mjs +1 -0
  41. package/dist/tools/index.d.mts +13 -1
  42. package/dist/tools/index.mjs +1 -1
  43. package/dist/{tools-nkqlVAQ1.mjs → tools-BCL_dtHe.mjs} +1 -1
  44. package/dist/ui-kernel/index.d.mts +4 -4
  45. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  46. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  47. package/dist/{view-builder-Nffvg8MI.d.mts → view-builder-tgwZ1ucc.d.mts} +1 -1
  48. package/dist/{workflow-transitions-DEaRIZDU.mjs → workflow-transitions-7d9lGi08.mjs} +1 -1
  49. package/dist/workflow-worker-BCLy_g_a.mjs +3 -0
  50. package/package.json +1 -1
  51. package/dist/tool-approval-service-BRyBObcL.mjs +0 -1
  52. package/dist/workflow-worker-DXCXb3g-.mjs +0 -3
@@ -1,2 +1,2 @@
1
- import { $ as CreateIsolatedWorkflowRuntimeOptions, $t as computeContributionPackageDigest, A as createLocalGitWorkspacePreparation, At as runWorkerBootstrapExchange, B as HeadlessWorkerMaterializer, C as admitWorkflowRunOperation, Ct as WorkerRunnerOptions, D as loadWorkflowModule, Dt as createNodeWorkflowRunnerPackageOptions, E as registerWorkerRuntime, Et as createNodeWorkflowRunner, F as HeadlessWorkerBootstrap, Ft as IWorkflowRunner, G as runHeadlessWorkflowWorker, H as HeadlessWorkflowWorkerDeps, I as HeadlessWorkerBootstrapCredentials, It as RuntimeLoadedWorkflow, J as WorkloadControlBinding, Jt as MaterializationError, K as InstalledWorkloadAdapter, L as HeadlessWorkerBusConnector, Lt as ThinWorkflowPiscinaRunnerOptions, M as HeadlessWorkerDeps, Mt as withWorkerBootstrapDeadline, N as HeadlessWorkerResult, Nt as createWorkerBusAuth, O as loadWorkflowModules, Ot as BootstrapExchangeResult, P as runHeadlessWorker, Pt as ThinWorkflowPiscinaRunner, Qt as assertNoSymlinkEscape, R as HeadlessWorkerContributionLoader, Rt as WorkflowRunResult, S as RuntimeRegistrationRefusedError, St as WorkerRunner, T as registerAndAdmitWorkflowRun, Tt as NodeWorkflowRunnerPackageOptions, U as HeadlessWorkflowWorkerResult, V as HeadlessWorkerPostCommitObserver, W as MaterializedWorkspace, X as WorkloadInvocationResult, Xt as WorkspaceRootResolver, Y as WorkloadInvocationPreparation, Yt as ParsedSriIntegrity, Z as runWorkloadInvocation, Zt as assertContainedIn, _ as OperationDeliveryEndpointIdentity, _t as OutcomeReconnect, a as InstalledAttemptControlEndpoint, an as WorkflowWorkerEntryMode, at as InProcessWorkflowRunner, b as RegisterAndAdmitWorkflowRunOptions, bt as submitAttemptOutcomeWithAck, c as BootstrapStartRefusedError, ct as PiscinaThinWorkflowProviderOptions, d as bootstrapWorkerRuntime, dt as createWorkflowLaunchResolver, en as computeDirectoryDigest, et as IsolatedWorkflowRuntime, f as AdmitWorkflowRunOperationOptions, ft as AttemptOutcomeDeliveryError, g as OperationDeliveryEndpoint, gt as OutcomeDeliveryError, h as OperationAdmissionRefusedError, ht as DELIVERED_DECISIONS, i as AttemptControlReportOptions, in as verifyContribution, it as createIsolatedWorkflowRuntime, j as LocalGitSourceOptions, jt as BootstrapDeadlineExceededError, k as loadWorkflowFromConfig, kt as WorkerBootstrapExchangeOptions, l as BootstrapWorkerRuntimeOptions, lt as WorkflowAttemptInstructionReader, m as DeliverableOperationKind, mt as AuthorityRequestDeliveryError, n as AttemptControlEndpointIdentity, nn as materializeLocalDirectory, nt as WorkflowRuntimeAuthorityConnector, o as installAttemptControlEndpoint, on as WorkflowWorkerEntryResolverOptions, ot as InProcessWorkflowRunnerOptions, p as AdmittedWorkflowRun, pt as AttemptOutcomeSubmitPayload, q as RunWorkloadInvocationOptions, qt as LocalDirectoryMaterializerOptions, r as AttemptControlLastReport, rn as parseSriIntegrity, rt as WorkflowRuntimeContributionLoader, s as BootstrapRuntimeConnection, sn as resolveWorkflowWorkerEntry, st as PiscinaThinWorkflowProvider, t as AttemptControlEndpointDeps, tn as computeFileDigest, tt as IsolatedWorkflowRuntimeContext, u as StartedWorkerRuntime, ut as WorkflowLaunchResolver, v as OperationDeliveryHandler, vt as OutcomeSubmitPayload, w as installOperationDeliveryEndpoint, wt as CreateNodeWorkflowRunnerPackageOptionsParams, x as RegisterWorkerRuntimeOptions, xt as submitOutcomeWithAck, y as OperationDeliveryHandlers, yt as OutcomeSubmitRetryConfig, z as HeadlessWorkerExecutor } from "../../index-D9hIDsPr.mjs";
1
+ import { $ as CreateIsolatedWorkflowRuntimeOptions, $t as computeContributionPackageDigest, A as createLocalGitWorkspacePreparation, At as runWorkerBootstrapExchange, B as HeadlessWorkerMaterializer, C as admitWorkflowRunOperation, Ct as WorkerRunnerOptions, D as loadWorkflowModule, Dt as createNodeWorkflowRunnerPackageOptions, E as registerWorkerRuntime, Et as createNodeWorkflowRunner, F as HeadlessWorkerBootstrap, Ft as IWorkflowRunner, G as runHeadlessWorkflowWorker, H as HeadlessWorkflowWorkerDeps, I as HeadlessWorkerBootstrapCredentials, It as RuntimeLoadedWorkflow, J as WorkloadControlBinding, Jt as MaterializationError, K as InstalledWorkloadAdapter, L as HeadlessWorkerBusConnector, Lt as ThinWorkflowPiscinaRunnerOptions, M as HeadlessWorkerDeps, Mt as withWorkerBootstrapDeadline, N as HeadlessWorkerResult, Nt as createWorkerBusAuth, O as loadWorkflowModules, Ot as BootstrapExchangeResult, P as runHeadlessWorker, Pt as ThinWorkflowPiscinaRunner, Qt as assertNoSymlinkEscape, R as HeadlessWorkerContributionLoader, Rt as WorkflowRunResult, S as RuntimeRegistrationRefusedError, St as WorkerRunner, T as registerAndAdmitWorkflowRun, Tt as NodeWorkflowRunnerPackageOptions, U as HeadlessWorkflowWorkerResult, V as HeadlessWorkerPostCommitObserver, W as MaterializedWorkspace, X as WorkloadInvocationResult, Xt as WorkspaceRootResolver, Y as WorkloadInvocationPreparation, Yt as ParsedSriIntegrity, Z as runWorkloadInvocation, Zt as assertContainedIn, _ as OperationDeliveryEndpointIdentity, _t as OutcomeReconnect, a as InstalledAttemptControlEndpoint, an as WorkflowWorkerEntryMode, at as InProcessWorkflowRunner, b as RegisterAndAdmitWorkflowRunOptions, bt as submitAttemptOutcomeWithAck, c as BootstrapStartRefusedError, ct as PiscinaThinWorkflowProviderOptions, d as bootstrapWorkerRuntime, dt as createWorkflowLaunchResolver, en as computeDirectoryDigest, et as IsolatedWorkflowRuntime, f as AdmitWorkflowRunOperationOptions, ft as AttemptOutcomeDeliveryError, g as OperationDeliveryEndpoint, gt as OutcomeDeliveryError, h as OperationAdmissionRefusedError, ht as DELIVERED_DECISIONS, i as AttemptControlReportOptions, in as verifyContribution, it as createIsolatedWorkflowRuntime, j as LocalGitSourceOptions, jt as BootstrapDeadlineExceededError, k as loadWorkflowFromConfig, kt as WorkerBootstrapExchangeOptions, l as BootstrapWorkerRuntimeOptions, lt as WorkflowAttemptInstructionReader, m as DeliverableOperationKind, mt as AuthorityRequestDeliveryError, n as AttemptControlEndpointIdentity, nn as materializeLocalDirectory, nt as WorkflowRuntimeAuthorityConnector, o as installAttemptControlEndpoint, on as WorkflowWorkerEntryResolverOptions, ot as InProcessWorkflowRunnerOptions, p as AdmittedWorkflowRun, pt as AttemptOutcomeSubmitPayload, q as RunWorkloadInvocationOptions, qt as LocalDirectoryMaterializerOptions, r as AttemptControlLastReport, rn as parseSriIntegrity, rt as WorkflowRuntimeContributionLoader, s as BootstrapRuntimeConnection, sn as resolveWorkflowWorkerEntry, st as PiscinaThinWorkflowProvider, t as AttemptControlEndpointDeps, tn as computeFileDigest, tt as IsolatedWorkflowRuntimeContext, u as StartedWorkerRuntime, ut as WorkflowLaunchResolver, v as OperationDeliveryHandler, vt as OutcomeSubmitPayload, w as installOperationDeliveryEndpoint, wt as CreateNodeWorkflowRunnerPackageOptionsParams, x as RegisterWorkerRuntimeOptions, xt as submitOutcomeWithAck, y as OperationDeliveryHandlers, yt as OutcomeSubmitRetryConfig, z as HeadlessWorkerExecutor } from "../../index-DyWD9bfP.mjs";
2
2
  export { AdmitWorkflowRunOperationOptions, AdmittedWorkflowRun, AttemptControlEndpointDeps, AttemptControlEndpointIdentity, AttemptControlLastReport, AttemptControlReportOptions, AttemptOutcomeDeliveryError, AttemptOutcomeSubmitPayload, AuthorityRequestDeliveryError, BootstrapDeadlineExceededError, BootstrapExchangeResult, BootstrapRuntimeConnection, BootstrapStartRefusedError, BootstrapWorkerRuntimeOptions, CreateIsolatedWorkflowRuntimeOptions, CreateNodeWorkflowRunnerPackageOptionsParams, DELIVERED_DECISIONS, DeliverableOperationKind, HeadlessWorkerBootstrap, HeadlessWorkerBootstrapCredentials, HeadlessWorkerBusConnector, HeadlessWorkerContributionLoader, HeadlessWorkerDeps, HeadlessWorkerExecutor, HeadlessWorkerMaterializer, HeadlessWorkerPostCommitObserver, HeadlessWorkerResult, HeadlessWorkflowWorkerDeps, HeadlessWorkflowWorkerResult, IWorkflowRunner, InProcessWorkflowRunner, InProcessWorkflowRunnerOptions, InstalledAttemptControlEndpoint, InstalledWorkloadAdapter, IsolatedWorkflowRuntime, IsolatedWorkflowRuntimeContext, LocalDirectoryMaterializerOptions, LocalGitSourceOptions, MaterializationError, MaterializedWorkspace, NodeWorkflowRunnerPackageOptions, OperationAdmissionRefusedError, OperationDeliveryEndpoint, OperationDeliveryEndpointIdentity, OperationDeliveryHandler, OperationDeliveryHandlers, OutcomeDeliveryError, OutcomeReconnect, OutcomeSubmitPayload, OutcomeSubmitRetryConfig, ParsedSriIntegrity, PiscinaThinWorkflowProvider, PiscinaThinWorkflowProviderOptions, RegisterAndAdmitWorkflowRunOptions, RegisterWorkerRuntimeOptions, RunWorkloadInvocationOptions, RuntimeLoadedWorkflow, RuntimeRegistrationRefusedError, StartedWorkerRuntime, ThinWorkflowPiscinaRunner, ThinWorkflowPiscinaRunnerOptions, WorkerBootstrapExchangeOptions, WorkerRunner, WorkerRunnerOptions, WorkflowAttemptInstructionReader, WorkflowLaunchResolver, WorkflowRunResult, WorkflowRuntimeAuthorityConnector, WorkflowRuntimeContributionLoader, WorkflowWorkerEntryMode, WorkflowWorkerEntryResolverOptions, WorkloadControlBinding, WorkloadInvocationPreparation, WorkloadInvocationResult, WorkspaceRootResolver, admitWorkflowRunOperation, assertContainedIn, assertNoSymlinkEscape, bootstrapWorkerRuntime, computeContributionPackageDigest, computeDirectoryDigest, computeFileDigest, createIsolatedWorkflowRuntime, createLocalGitWorkspacePreparation, createNodeWorkflowRunner, createNodeWorkflowRunnerPackageOptions, createWorkerBusAuth, createWorkflowLaunchResolver, installAttemptControlEndpoint, installOperationDeliveryEndpoint, loadWorkflowFromConfig, loadWorkflowModule, loadWorkflowModules, materializeLocalDirectory, parseSriIntegrity, registerAndAdmitWorkflowRun, registerWorkerRuntime, resolveWorkflowWorkerEntry, runHeadlessWorker, runHeadlessWorkflowWorker, runWorkerBootstrapExchange, runWorkloadInvocation, submitAttemptOutcomeWithAck, submitOutcomeWithAck, verifyContribution, withWorkerBootstrapDeadline };
@@ -1 +1 @@
1
- import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,m as _,n as v,o as y,p as b,r as x,s as S,t as C,u as w,v as T,w as E,x as D,y as O}from"../../workflow-worker-DXCXb3g-.mjs";import{a as k,c as A,d as j,f as M,h as N,i as P,l as F,m as I,n as L,p as R,r as z,s as B,t as V,v as H,y as U}from"../../bootstrap-start-client-9nOdeDYl.mjs";export{g as AttemptOutcomeDeliveryError,w as AuthorityRequestDeliveryError,H as BootstrapDeadlineExceededError,V as BootstrapStartRefusedError,u as DELIVERED_DECISIONS,o as InProcessWorkflowRunner,D as MaterializationError,z as OperationAdmissionRefusedError,d as OutcomeDeliveryError,l as PiscinaThinWorkflowProvider,P as RuntimeRegistrationRefusedError,c as ThinWorkflowPiscinaRunner,T as WorkerRunner,k as admitWorkflowRunOperation,i as assertContainedIn,e as assertNoSymlinkEscape,L as bootstrapWorkerRuntime,E as computeContributionPackageDigest,a as computeDirectoryDigest,n as computeFileDigest,y as createIsolatedWorkflowRuntime,C as createLocalGitWorkspacePreparation,p as createNodeWorkflowRunner,f as createNodeWorkflowRunnerPackageOptions,N as createWorkerBusAuth,S as createWorkflowLaunchResolver,m as installAttemptControlEndpoint,B as installOperationDeliveryEndpoint,j as loadWorkflowFromConfig,M as loadWorkflowModule,R as loadWorkflowModules,t as materializeLocalDirectory,r as parseSriIntegrity,A as registerAndAdmitWorkflowRun,F as registerWorkerRuntime,O as resolveWorkflowWorkerEntry,x as runHeadlessWorker,v as runHeadlessWorkflowWorker,I as runWorkerBootstrapExchange,s as runWorkloadInvocation,b as submitAttemptOutcomeWithAck,_ as submitOutcomeWithAck,h as verifyContribution,U as withWorkerBootstrapDeadline};
1
+ import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,m as _,n as v,o as y,p as b,r as x,s as S,t as C,u as w,v as T,w as E,x as D,y as O}from"../../workflow-worker-BCLy_g_a.mjs";import{a as k,c as A,d as j,f as M,h as N,i as P,l as F,m as I,n as L,p as R,r as z,s as B,t as V,v as H,y as U}from"../../bootstrap-start-client-9nOdeDYl.mjs";export{g as AttemptOutcomeDeliveryError,w as AuthorityRequestDeliveryError,H as BootstrapDeadlineExceededError,V as BootstrapStartRefusedError,u as DELIVERED_DECISIONS,o as InProcessWorkflowRunner,D as MaterializationError,z as OperationAdmissionRefusedError,d as OutcomeDeliveryError,l as PiscinaThinWorkflowProvider,P as RuntimeRegistrationRefusedError,c as ThinWorkflowPiscinaRunner,T as WorkerRunner,k as admitWorkflowRunOperation,i as assertContainedIn,e as assertNoSymlinkEscape,L as bootstrapWorkerRuntime,E as computeContributionPackageDigest,a as computeDirectoryDigest,n as computeFileDigest,y as createIsolatedWorkflowRuntime,C as createLocalGitWorkspacePreparation,p as createNodeWorkflowRunner,f as createNodeWorkflowRunnerPackageOptions,N as createWorkerBusAuth,S as createWorkflowLaunchResolver,m as installAttemptControlEndpoint,B as installOperationDeliveryEndpoint,j as loadWorkflowFromConfig,M as loadWorkflowModule,R as loadWorkflowModules,t as materializeLocalDirectory,r as parseSriIntegrity,A as registerAndAdmitWorkflowRun,F as registerWorkerRuntime,O as resolveWorkflowWorkerEntry,x as runHeadlessWorker,v as runHeadlessWorkflowWorker,I as runWorkerBootstrapExchange,s as runWorkloadInvocation,b as submitAttemptOutcomeWithAck,_ as submitOutcomeWithAck,h as verifyContribution,U as withWorkerBootstrapDeadline};
@@ -10,8 +10,8 @@ import { UiNavigationLevel } from "@makaio/framework/contracts";
10
10
  */
11
11
  declare const SurfaceIdSchema: z.ZodEnum<{
12
12
  tray: "tray";
13
- mobile: "mobile";
14
13
  web: "web";
14
+ mobile: "mobile";
15
15
  electron: "electron";
16
16
  electrobun: "electrobun";
17
17
  }>;
@@ -101,8 +101,8 @@ declare const PageMetadataSchema: z.ZodObject<{
101
101
  level: z.ZodCustom<UiNavigationLevel, UiNavigationLevel>;
102
102
  surfaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
103
103
  tray: "tray";
104
- mobile: "mobile";
105
104
  web: "web";
105
+ mobile: "mobile";
106
106
  electron: "electron";
107
107
  electrobun: "electrobun";
108
108
  }>>]>>;
@@ -127,8 +127,8 @@ declare const PageSchemas: {
127
127
  readonly request: z.ZodObject<{
128
128
  surface: z.ZodOptional<z.ZodEnum<{
129
129
  tray: "tray";
130
- mobile: "mobile";
131
130
  web: "web";
131
+ mobile: "mobile";
132
132
  electron: "electron";
133
133
  electrobun: "electrobun";
134
134
  }>>;
@@ -147,8 +147,8 @@ declare const PageSchemas: {
147
147
  level: z.ZodCustom<UiNavigationLevel, UiNavigationLevel>;
148
148
  surfaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
149
149
  tray: "tray";
150
- mobile: "mobile";
151
150
  web: "web";
151
+ mobile: "mobile";
152
152
  electron: "electron";
153
153
  electrobun: "electrobun";
154
154
  }>>]>>;
@@ -20,13 +20,13 @@ declare const AdapterSubsystemSchemas: {
20
20
  displayName: z.ZodOptional<z.ZodString>;
21
21
  protocol: z.ZodOptional<z.ZodString>;
22
22
  clientId: z.ZodOptional<z.ZodString>;
23
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
23
24
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
25
  label: z.ZodString;
25
26
  url: z.ZodString;
26
27
  }, z.core.$strict>>>;
27
28
  instructions: z.ZodOptional<z.ZodString>;
28
29
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
30
30
  name: z.ZodString;
31
31
  enabled: z.ZodBoolean;
32
32
  bindings: z.ZodArray<z.ZodObject<{
@@ -48,13 +48,13 @@ declare const AdapterSubsystemSchemas: {
48
48
  displayName: z.ZodOptional<z.ZodString>;
49
49
  protocol: z.ZodOptional<z.ZodString>;
50
50
  clientId: z.ZodOptional<z.ZodString>;
51
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
51
52
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
53
  label: z.ZodString;
53
54
  url: z.ZodString;
54
55
  }, z.core.$strict>>>;
55
56
  instructions: z.ZodOptional<z.ZodString>;
56
57
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
58
58
  name: z.ZodString;
59
59
  enabled: z.ZodBoolean;
60
60
  bindings: z.ZodArray<z.ZodObject<{
@@ -1719,13 +1719,13 @@ declare const AdapterSubsystemSchemas: {
1719
1719
  displayName: z.ZodOptional<z.ZodString>;
1720
1720
  protocol: z.ZodOptional<z.ZodString>;
1721
1721
  clientId: z.ZodOptional<z.ZodString>;
1722
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1722
1723
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1723
1724
  label: z.ZodString;
1724
1725
  url: z.ZodString;
1725
1726
  }, z.core.$strict>>>;
1726
1727
  instructions: z.ZodOptional<z.ZodString>;
1727
1728
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1728
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1729
1729
  name: z.ZodString;
1730
1730
  enabled: z.ZodBoolean;
1731
1731
  bindings: z.ZodArray<z.ZodObject<{
@@ -3124,13 +3124,13 @@ declare const AdapterFileConfigSchema: z.ZodObject<{
3124
3124
  displayName: z.ZodOptional<z.ZodString>;
3125
3125
  protocol: z.ZodOptional<z.ZodString>;
3126
3126
  clientId: z.ZodOptional<z.ZodString>;
3127
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3127
3128
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3128
3129
  label: z.ZodString;
3129
3130
  url: z.ZodString;
3130
3131
  }, z.core.$strict>>>;
3131
3132
  instructions: z.ZodOptional<z.ZodString>;
3132
3133
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3133
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3134
3134
  name: z.ZodString;
3135
3135
  enabled: z.ZodBoolean;
3136
3136
  bindings: z.ZodArray<z.ZodObject<{
@@ -13,9 +13,9 @@ declare const PreferenceKeySchema: z.ZodObject<{
13
13
  scope: z.ZodString;
14
14
  context: z.ZodOptional<z.ZodString>;
15
15
  viewport: z.ZodOptional<z.ZodEnum<{
16
+ mobile: "mobile";
16
17
  desktop: "desktop";
17
18
  tablet: "tablet";
18
- mobile: "mobile";
19
19
  }>>;
20
20
  }, z.core.$strip>;
21
21
  type PreferenceKey = z.infer<typeof PreferenceKeySchema>;
@@ -33,9 +33,9 @@ declare const PreferenceItemSchema: z.ZodObject<{
33
33
  scope: z.ZodString;
34
34
  context: z.ZodOptional<z.ZodString>;
35
35
  viewport: z.ZodOptional<z.ZodEnum<{
36
+ mobile: "mobile";
36
37
  desktop: "desktop";
37
38
  tablet: "tablet";
38
- mobile: "mobile";
39
39
  }>>;
40
40
  }, z.core.$strip>;
41
41
  category: z.ZodString;
@@ -67,9 +67,9 @@ declare const PreferencesSchemas: {
67
67
  scope: z.ZodString;
68
68
  context: z.ZodOptional<z.ZodString>;
69
69
  viewport: z.ZodOptional<z.ZodEnum<{
70
+ mobile: "mobile";
70
71
  desktop: "desktop";
71
72
  tablet: "tablet";
72
- mobile: "mobile";
73
73
  }>>;
74
74
  }, z.core.$strip>;
75
75
  category: z.ZodString;
@@ -94,9 +94,9 @@ declare const PreferencesSchemas: {
94
94
  scope: z.ZodString;
95
95
  context: z.ZodOptional<z.ZodString>;
96
96
  viewport: z.ZodOptional<z.ZodEnum<{
97
+ mobile: "mobile";
97
98
  desktop: "desktop";
98
99
  tablet: "tablet";
99
- mobile: "mobile";
100
100
  }>>;
101
101
  }, z.core.$strip>;
102
102
  category: z.ZodString;
@@ -122,9 +122,9 @@ declare const PreferencesSchemas: {
122
122
  scope: z.ZodString;
123
123
  context: z.ZodOptional<z.ZodString>;
124
124
  viewport: z.ZodOptional<z.ZodEnum<{
125
+ mobile: "mobile";
125
126
  desktop: "desktop";
126
127
  tablet: "tablet";
127
- mobile: "mobile";
128
128
  }>>;
129
129
  }, z.core.$strip>;
130
130
  category: z.ZodString;
@@ -149,9 +149,9 @@ declare const PreferencesSchemas: {
149
149
  scope: z.ZodOptional<z.ZodString>;
150
150
  context: z.ZodOptional<z.ZodOptional<z.ZodString>>;
151
151
  viewport: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
152
+ mobile: "mobile";
152
153
  desktop: "desktop";
153
154
  tablet: "tablet";
154
- mobile: "mobile";
155
155
  }>>>;
156
156
  }, z.core.$strip>>;
157
157
  category: z.ZodOptional<z.ZodString>;
@@ -166,9 +166,9 @@ declare const PreferencesSchemas: {
166
166
  scope: z.ZodString;
167
167
  context: z.ZodOptional<z.ZodString>;
168
168
  viewport: z.ZodOptional<z.ZodEnum<{
169
+ mobile: "mobile";
169
170
  desktop: "desktop";
170
171
  tablet: "tablet";
171
- mobile: "mobile";
172
172
  }>>;
173
173
  }, z.core.$strip>;
174
174
  category: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { C as ProviderRuntimeSnapshot, S as ProviderConfigFileRecordSchema, T as AdapterSubsystemSchemas, _ as EffectiveAdapter, a as AdapterRuntimePackages, b as ProviderConfigAuthSummarySchema, c as AdapterRuntimeSnapshotErrorCode, d as AdapterRuntimeSnapshotResolutionSchema, f as AdapterRuntimeSnapshotSchema, g as CompatibleAuthOptionSchema, h as CompatibleAuthOption, i as AdapterReadinessSchema, l as AdapterRuntimeSnapshotErrorCodeSchema, m as BindingRecordSchema, n as AdapterFileConfigSchema, o as AdapterRuntimePackagesSchema, p as BindingRecord, r as AdapterReadiness, s as AdapterRuntimeSnapshot, t as AdapterFileConfig, u as AdapterRuntimeSnapshotResolution, v as EffectiveAdapterSchema, w as ProviderRuntimeSnapshotSchema, x as ProviderConfigFileRecord, y as ProviderConfigAuthSummary } from "../../schemas-Dyp3rHZ7.mjs";
1
+ import { C as ProviderRuntimeSnapshot, S as ProviderConfigFileRecordSchema, T as AdapterSubsystemSchemas, _ as EffectiveAdapter, a as AdapterRuntimePackages, b as ProviderConfigAuthSummarySchema, c as AdapterRuntimeSnapshotErrorCode, d as AdapterRuntimeSnapshotResolutionSchema, f as AdapterRuntimeSnapshotSchema, g as CompatibleAuthOptionSchema, h as CompatibleAuthOption, i as AdapterReadinessSchema, l as AdapterRuntimeSnapshotErrorCodeSchema, m as BindingRecordSchema, n as AdapterFileConfigSchema, o as AdapterRuntimePackagesSchema, p as BindingRecord, r as AdapterReadiness, s as AdapterRuntimeSnapshot, t as AdapterFileConfig, u as AdapterRuntimeSnapshotResolution, v as EffectiveAdapterSchema, w as ProviderRuntimeSnapshotSchema, x as ProviderConfigFileRecord, y as ProviderConfigAuthSummary } from "../../schemas-D9pXu76T.mjs";
2
2
  import { a as CreateCanonicalProviderConfigInput, c as AdapterFileConfigSet, i as CanonicalProviderConfigPatchSchema, l as IAdapterConfigRepository, n as CanonicalProviderConfigAuthPayload, o as CreateCanonicalProviderConfigInputPayload, r as CanonicalProviderConfigPatch, s as CreateCanonicalProviderConfigInputSchema, t as CanonicalProviderConfigAuth, u as ProviderConfigFileSet } from "../../index-BleQ0SR7.mjs";
3
- import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-C1-ZAKEG.mjs";
3
+ import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-CNX4llM5.mjs";
4
4
  export { ADAPTER_SUBSYSTEM_PACKAGE_NAME, AdapterFileConfig, AdapterFileConfigSchema, AdapterFileConfigSet, AdapterReadiness, AdapterReadinessSchema, AdapterRuntimePackages, AdapterRuntimePackagesSchema, AdapterRuntimeSnapshot, AdapterRuntimeSnapshotErrorCode, AdapterRuntimeSnapshotErrorCodeSchema, AdapterRuntimeSnapshotResolution, AdapterRuntimeSnapshotResolutionSchema, AdapterRuntimeSnapshotSchema, AdapterSubsystemNamespace, AdapterSubsystemSchemas, AdapterSubsystemSubjects, BindingRecord, BindingRecordSchema, CanonicalProviderConfigAuth, CanonicalProviderConfigAuthPayload, CanonicalProviderConfigPatch, CanonicalProviderConfigPatchSchema, CompatibleAuthOption, CompatibleAuthOptionSchema, CreateCanonicalProviderConfigInput, CreateCanonicalProviderConfigInputPayload, CreateCanonicalProviderConfigInputSchema, EffectiveAdapter, EffectiveAdapterSchema, IAdapterConfigRepository, ProviderConfigAuthSummary, ProviderConfigAuthSummarySchema, ProviderConfigFileRecord, ProviderConfigFileRecordSchema, ProviderConfigFileSet, ProviderRuntimeSnapshot, ProviderRuntimeSnapshotSchema };
@@ -1,2 +1,2 @@
1
- import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-C1-ZAKEG.mjs";
1
+ import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-CNX4llM5.mjs";
2
2
  export { ADAPTER_SUBSYSTEM_PACKAGE_NAME, AdapterSubsystemNamespace, AdapterSubsystemSubjects };
@@ -1,7 +1,7 @@
1
1
  import { _ as ResolveNameResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, l as ResolveIdResponseSchema, m as ResolveNameRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../schemas-CBDNnyz4.mjs";
2
2
  import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-DAzOxaux.mjs";
3
3
  import { c as resolveDeterministicAdapterId, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../index-CVRQS5jk.mjs";
4
- import { p as BindingRecord } from "../schemas-Dyp3rHZ7.mjs";
4
+ import { p as BindingRecord } from "../schemas-D9pXu76T.mjs";
5
5
  import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-BOT1HUv6.mjs";
6
6
  import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-HLrZerLd.mjs";
7
7
  import { t as CapabilityService } from "../capability-service-BHcRd1td.mjs";
@@ -17,7 +17,7 @@ import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../
17
17
  import { A as ContainerRuntimeSchema, B as SpawnRequest, C as ContainerIsolatedSpawnRequest, D as ContainerLocalWorkflowSpawnRequest, E as ContainerLocalSpawnRequestSchema, F as ContainerState, G as StatusRequestSchema, H as SpawnResponse, I as ContainerStateSchema, J as StopRequest, K as StatusResponse, L as ContainerStopped, N as ContainerStarted, O as ContainerLocalWorkflowSpawnRequestSchema, P as ContainerStartedSchema, R as ContainerStoppedSchema, S as ContainerDestroyedSchema, T as ContainerLocalSpawnRequest, U as SpawnResponseSchema, V as SpawnRequestSchema, W as StatusRequest, X as StopResponse, Y as StopRequestSchema, Z as StopResponseSchema, a as DockerSubjects, b as ContainerCreatedSchema, i as DockerNamespace, k as ContainerRuntime, n as ContainerSpawnSubjects, q as StatusResponseSchema, t as ContainerSpawnNamespace, w as ContainerIsolatedSpawnRequestSchema, x as ContainerDestroyed, y as ContainerCreated } from "../index-BOxMyaqG.mjs";
18
18
  import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-CtwkMknv.mjs";
19
19
  import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, T as TurnConfig, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, k as TurnResult, l as registerForkHandler, n as routeToAgents, p as SessionStartError, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities } from "../index-CLwnkYRD.mjs";
20
- import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-oE2q0pTG.mjs";
20
+ import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-B1uHTa1l.mjs";
21
21
  import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-C_NGRHKs.mjs";
22
22
  import { g as sessions, u as agents } from "../schema-DLE6Dqyc.mjs";
23
23
  import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-Bz0ZDWhE.mjs";
@@ -27,14 +27,14 @@ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../na
27
27
  import { v as ArtifactSchemaRegistry } from "../packages-KX9yofCa.mjs";
28
28
  import { a as createToolContributionProcessor, c as ToolRegistryOptions, d as ToolsetPolicy, f as ToolsetPolicyProvider, l as ToolsWithToolsetsResult, o as ToolRegistry, s as ListToolsFilter, u as ToolsetInfo } from "../index-BjrbddkU.mjs";
29
29
  import { a as WORKFLOW_START_ACTION_TYPE, i as TransitionActionRegistry, n as TransitionPipelineService, r as TransitionRuleRegistry, t as createTransitionContributionProcessor } from "../index-BCuWtlv5.mjs";
30
- import { t as ToolApprovalService } from "../index-xqiInEhj.mjs";
30
+ import { n as ToolApprovalServiceOptions, t as ToolApprovalService } from "../index-DmV9ybgT.mjs";
31
31
  import { t as TrayMenuService } from "../index-CwVSr7Ow.mjs";
32
32
  import { a as TrayMenuGroupSchema, c as TrayMenuListEntry, d as TrayMenuSchemas, f as TrayMenuSectionSchema, i as TrayMenuGroupEntrySchema, l as TrayMenuListEntrySchema, n as TrayMenuEntrySchema, o as TrayMenuItemClicked, r as TrayMenuGroup, s as TrayMenuItemClickedSchema, t as TrayMenuEntry, u as TrayMenuMetadataSchema } from "../schemas-feb64ScA.mjs";
33
33
  import { n as TrayMenuSubjects, t as TrayMenuNamespace } from "../namespace-D38Fmd0E.mjs";
34
34
  import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModelOverrideSchema, _ as ModelRegistryGetLabModelsResponse, a as ModelRegistryService, b as ModelRegistryRefreshRequest, c as IModelRegistryFetcher, d as ModelRegistry, f as ModelRegistryCheckModelInProvidersRequest, g as ModelRegistryGetLabModelsRequest, h as ModelRegistryGetForProviderResponse, i as ModelRegistryProviderNotFoundError, l as ModelRegistryNamespace, m as ModelRegistryGetForProviderRequest, n as CachedRegistryFetcher, o as ModelRegistryServiceOptions, p as ModelRegistryCheckModelInProvidersResponse, r as FallbackRegistryFetcher, s as IModelRegistryCache, t as mergeModelMetadata, u as ModelRegistrySubjects, v as ModelRegistryGetProviderModelsRequest, w as ProviderModelOverride, x as ModelRegistryRefreshResponse, y as ModelRegistryGetProviderModelsResponse } from "../index-DsmyofuM.mjs";
35
35
  import { a as InternalPendingRequest, c as SubagentServiceToken, d as SubagentFailureFinalizationError, f as SubagentFailureFinalizationErrorCode, i as InputResolver, l as createSubagentServicePackage, n as TrackOptions, o as SpawnOptions, p as SubagentService, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as subagentServicePackage } from "../index-DAqAa9aL.mjs";
36
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DPtj1sPC2.mjs";
37
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-CwwiV3kt.mjs";
36
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-RwAlAMbq2.mjs";
37
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-NHTWAjaX.mjs";
38
38
  import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../schemas-DnyXA-9o.mjs";
39
39
  import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-KomML5ti.mjs";
40
40
  import * as _$zod from "zod";
@@ -1014,9 +1014,18 @@ declare const sessionBridgePackage: MakaioNodeExtension<IMakaioBus>;
1014
1014
  declare const sessionPackage: MakaioNodeExtension<IMakaioBus>;
1015
1015
  /** Package that registers the framework session.sendMessage orchestrator. */
1016
1016
  declare const sessionOrchestratorPackage: MakaioNodeExtension<IMakaioBus>;
1017
- /** Package that starts the framework tool registry. */
1017
+ /**
1018
+ * Host-supplied file-access rules for the framework tool packages.
1019
+ *
1020
+ * One provider feeds both the tool registry (rules injected into every tool
1021
+ * execution context) and the tool approval service (absolute deny pre-check
1022
+ * ahead of the policy cascade), so both layers enforce the same rules. When
1023
+ * `fileAccessRuleProvider` is omitted, neither package enforces file-access rules.
1024
+ */
1025
+ type FrameworkFileAccessOptions = Pick<ToolApprovalServiceOptions, 'fileAccessRuleProvider'>;
1026
+ /** Package that starts the framework tool registry without file-access rules. */
1018
1027
  declare const toolRegistryPackage: MakaioNodeExtension<IMakaioBus>;
1019
- /** Package that starts the framework tool approval service. */
1028
+ /** Package that starts the framework tool approval service without file-access rules. */
1020
1029
  declare const toolApprovalPackage: MakaioNodeExtension<IMakaioBus>;
1021
1030
  /** Package that starts the framework tray menu service. */
1022
1031
  declare const trayMenuPackage: MakaioNodeExtension<IMakaioBus>;
@@ -1048,6 +1057,16 @@ declare function createModelRegistryPackage(fetcher: IModelRegistryFetcher): Mak
1048
1057
  * coordinator's to satisfy rather than the array order's to preserve.
1049
1058
  */
1050
1059
  declare const frameworkCorePackages: ReadonlyArray<MakaioNodeExtension<IMakaioBus>>;
1060
+ /**
1061
+ * Framework core packages for a host, with the tool packages bound to the
1062
+ * host's file-access rule provider when one is supplied.
1063
+ *
1064
+ * Without a provider this returns {@link frameworkCorePackages} itself, so the
1065
+ * composition stays identical to the static set.
1066
+ * @param options - Optional file-access rule provider for this host.
1067
+ * @returns Framework core packages in {@link frameworkCorePackages} order.
1068
+ */
1069
+ declare function createFrameworkCorePackages(options?: FrameworkFileAccessOptions): ReadonlyArray<MakaioNodeExtension<IMakaioBus>>;
1051
1070
  //#endregion
1052
1071
  //#region services/core/src/namespace-catalog.d.ts
1053
1072
  /**
@@ -1113,13 +1132,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1113
1132
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1114
1133
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1115
1134
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1135
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1116
1136
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1117
1137
  label: _$zod.ZodString;
1118
1138
  url: _$zod.ZodString;
1119
1139
  }, _$zod_v4_core0.$strict>>>;
1120
1140
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1121
1141
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1122
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1123
1142
  name: _$zod.ZodString;
1124
1143
  enabled: _$zod.ZodBoolean;
1125
1144
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1138,13 +1157,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1138
1157
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1139
1158
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1140
1159
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1160
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1141
1161
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1142
1162
  label: _$zod.ZodString;
1143
1163
  url: _$zod.ZodString;
1144
1164
  }, _$zod_v4_core0.$strict>>>;
1145
1165
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1146
1166
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1147
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1148
1167
  name: _$zod.ZodString;
1149
1168
  enabled: _$zod.ZodBoolean;
1150
1169
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -2749,13 +2768,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2749
2768
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
2750
2769
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
2751
2770
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
2771
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2752
2772
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
2753
2773
  label: _$zod.ZodString;
2754
2774
  url: _$zod.ZodString;
2755
2775
  }, _$zod_v4_core0.$strict>>>;
2756
2776
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
2757
2777
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2758
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2759
2778
  name: _$zod.ZodString;
2760
2779
  enabled: _$zod.ZodBoolean;
2761
2780
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -6467,9 +6486,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6467
6486
  scope: _$zod.ZodString;
6468
6487
  context: _$zod.ZodOptional<_$zod.ZodString>;
6469
6488
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6489
+ mobile: "mobile";
6470
6490
  desktop: "desktop";
6471
6491
  tablet: "tablet";
6472
- mobile: "mobile";
6473
6492
  }>>;
6474
6493
  }, _$zod_v4_core0.$strip>;
6475
6494
  category: _$zod.ZodString;
@@ -6488,9 +6507,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6488
6507
  scope: _$zod.ZodString;
6489
6508
  context: _$zod.ZodOptional<_$zod.ZodString>;
6490
6509
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6510
+ mobile: "mobile";
6491
6511
  desktop: "desktop";
6492
6512
  tablet: "tablet";
6493
- mobile: "mobile";
6494
6513
  }>>;
6495
6514
  }, _$zod_v4_core0.$strip>;
6496
6515
  category: _$zod.ZodString;
@@ -6510,9 +6529,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6510
6529
  scope: _$zod.ZodString;
6511
6530
  context: _$zod.ZodOptional<_$zod.ZodString>;
6512
6531
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6532
+ mobile: "mobile";
6513
6533
  desktop: "desktop";
6514
6534
  tablet: "tablet";
6515
- mobile: "mobile";
6516
6535
  }>>;
6517
6536
  }, _$zod_v4_core0.$strip>;
6518
6537
  category: _$zod.ZodString;
@@ -6531,9 +6550,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6531
6550
  scope: _$zod.ZodOptional<_$zod.ZodString>;
6532
6551
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
6533
6552
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
6553
+ mobile: "mobile";
6534
6554
  desktop: "desktop";
6535
6555
  tablet: "tablet";
6536
- mobile: "mobile";
6537
6556
  }>>>;
6538
6557
  }, _$zod_v4_core0.$strip>>;
6539
6558
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6548,9 +6567,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6548
6567
  scope: _$zod.ZodString;
6549
6568
  context: _$zod.ZodOptional<_$zod.ZodString>;
6550
6569
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6570
+ mobile: "mobile";
6551
6571
  desktop: "desktop";
6552
6572
  tablet: "tablet";
6553
- mobile: "mobile";
6554
6573
  }>>;
6555
6574
  }, _$zod_v4_core0.$strip>;
6556
6575
  category: _$zod.ZodString;
@@ -7850,4 +7869,4 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
7850
7869
  };
7851
7870
  }>];
7852
7871
  //#endregion
7853
- export { AdapterIdentityRegistry, AdapterRegistry, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, type AgentContextState, type AgentInstanceStatus, AgentInstanceStatusSchema, type AgentRecoveryOutcome, AgentRuntimeNamespace, AgentRuntimeSchemas, type AgentRuntimeSelection, AgentRuntimeSelectionSchema, AgentRuntimeSubjects, AgentStorageNamespace, AgentStorageSubjects, type AmbiguousMatch, ArtifactLifecycleHookRegistry, ArtifactLifecycleHookRegistryToken, ArtifactLifecycleHookRejectedError, ArtifactSchemaRegistry, ArtifactSchemaRegistryToken, type AwaitResult, type BugEntry, BugEntrySchema, type BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, CachedRegistryFetcher, CanonicalModelResolutionError, type CanonicalModelResolutionErrorCode, CanonicalModelResolver, type CanonicalModelResolverDeps, CanonicalModelService, CapabilityService, CapabilityToken, type CodeExecutionProviderRejected, type CodeExecutionProviderSelected, type CodeExecutionProviderSelection, type CodeExecutionSelectionFailureCode, CodeExecutionService, CodeExecutionServiceToken, type CodebaseChangedEvent, CodebaseChangedEventSchema, CodebaseNamespace, CodebaseSchemas, CodebaseSubjects, type CompressRequest, CompressRequestSchema, type CompressResponse, CompressResponseSchema, type CompressionEvent, CompressionEventSchema, CompressionNamespace, CompressionSchemas, CompressionSubjects, type ContainerCreated, ContainerCreatedSchema, type ContainerDestroyed, ContainerDestroyedSchema, ContainerIsolatedExecutionTargetSchema, type ContainerIsolatedSpawnRequest, ContainerIsolatedSpawnRequestSchema, ContainerLocalExecutionTargetSchema, type ContainerLocalSpawnRequest, ContainerLocalSpawnRequestSchema, type ContainerLocalWorkflowSpawnRequest, ContainerLocalWorkflowSpawnRequestSchema, type ContainerRuntime, ContainerRuntimeSchema, ContainerSpawnNamespace, ContainerSpawnSubjects, type ContainerStarted, ContainerStartedSchema, type ContainerState, ContainerStateSchema, type ContainerStopped, ContainerStoppedSchema, type ContextAssemblyResult, ContextWindowTracker, type ContextWindowTrackerConfig, type DefaultModelResolution, DockerNamespace, DockerSubjects, type EffectiveExecutionSignal, type EffectiveExecutionSignalOptions, EmbeddingIndexManager, type EventTransform, type ExecutionTarget, type ExecutionTargetInput, ExecutionTargetInputSchema, type ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetNamespace, type ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetSubjects, type ExecutionTargetType, ExecutionTargetTypeSchema, type ExtractedContext, ExtractedContextSchema, FacetNamespaceRegistry, FacetNamespaceRegistryToken, FallbackRegistryFetcher, type FallbackRuntimeOptions, FrameworkServicesCoreNamespaces, type IModelRegistryCache, type IModelRegistryFetcher, type ISessionOrchestrator, type InputResolver, type InsertMessage, type InsertMessageRouting, type InsertSessionEvent, type InsertTurn, type InternalPendingRequest, type ListToolsFilter, LocalExecutionTargetSchema, MakaioSession, type MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, type ModelRegistry, type ModelRegistryCheckModelInProvidersRequest, type ModelRegistryCheckModelInProvidersResponse, type ModelRegistryGetForProviderRequest, type ModelRegistryGetForProviderResponse, type ModelRegistryGetLabModelsRequest, type ModelRegistryGetLabModelsResponse, type ModelRegistryGetProviderModelsRequest, type ModelRegistryGetProviderModelsResponse, ModelRegistryNamespace, ModelRegistryProviderNotFoundError, type ModelRegistryRefreshRequest, type ModelRegistryRefreshResponse, ModelRegistrySchema, ModelRegistrySchemas, ModelRegistryService, type ModelRegistryServiceOptions, ModelRegistrySubjects, ModelRegistryToken, type PreferenceItem, PreferenceItemSchema, type PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects, ProviderContextActivationError, type ProviderContextActivationErrorCode, type ProviderModelOverride, ProviderModelOverrideSchema, type ReactionContributionProcessorOptions, type ReactionInvocationInput, ReactionRegistry, ReactionRegistryToken, type RecoveryConfig, type RegisteredAdapterRuntimeIdentityHandlers, type ResolveArtifactContextOptions, type ResolveIdRequest, ResolveIdRequestSchema, type ResolveIdResponse, ResolveIdResponseSchema, type ResolveLiveIdentityRequest, ResolveLiveIdentityRequestSchema, type ResolveLiveIdentityResponse, ResolveLiveIdentityResponseSchema, type ResolveNameRequest, ResolveNameRequestSchema, type ResolveNameResponse, ResolveNameResponseSchema, type ResolvedDefaultTarget, type ResolvedSelection, type RunAfterInput, type RunBeforeInput, type RunBeforeResult, RuntimeProviderContextResolutionError, type RuntimeProviderContextResolutionErrorCode, type SearchFilters, type SearchSessionRow, type SelectMessage, type SelectMessageRouting, type SelectSessionEvent, type SelectTurn, SessionBridge, SessionBridgeToken, type SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionOrchestrator, SessionOrchestratorToken, type SessionPreviewMaps, SessionStartError, type SessionStorageMemoryState, SessionStorageNamespace, SessionStorageSubjects, SessionStorageToken, SessionToken, SessionTurnManager, type SpawnOptions, type SpawnRequest, SpawnRequestSchema, type SpawnResponse, SpawnResponseSchema, type StartTurnOptions, type StatusRequest, StatusRequestSchema, type StatusResponse, StatusResponseSchema, type StopRequest, StopRequestSchema, type StopResponse, StopResponseSchema, SubagentFailureFinalizationError, type SubagentFailureFinalizationErrorCode, SubagentManager, SubagentService, SubagentServiceToken, 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, type TechnicalDetails, TechnicalDetailsSchema, type TodoEntry, TodoEntrySchema, ToolApprovalService, ToolApprovalToken, ToolRegistry, type ToolRegistryOptions, ToolRegistryToken, type ToolsWithToolsetsResult, type ToolsetInfo, type ToolsetPolicy, type ToolsetPolicyProvider, type TrackOptions, type TrackedSubagent, TransitionActionRegistry, TransitionPipelineService, TransitionPipelineToken, TransitionRuleRegistry, type TrayMenuEntry, TrayMenuEntrySchema, type TrayMenuGroup, TrayMenuGroupEntrySchema, TrayMenuGroupSchema, type TrayMenuItemClicked, TrayMenuItemClickedSchema, type TrayMenuListEntry, TrayMenuListEntrySchema, TrayMenuMetadataSchema, TrayMenuNamespace, TrayMenuSchemas, TrayMenuSectionSchema, TrayMenuService, TrayMenuSubjects, TrayMenuToken, Turn, type TurnConfig, type TurnContext, TurnContextEnricher, type TurnPairStateChange, type TurnPairTerminalOutcome, type TurnResult, TurnStorageNamespace, TurnStorageSubjects, type VerifiedAgents, WORKFLOW_START_ACTION_TYPE, WorkflowBlockRegistry, WorkflowBlockRegistryToken, actionRegistry, activateProviderContext, agents, artifactLifecycleHookRegistryPackage, artifactSchemaRegistryPackage, assembleForkContext, buildDeterministicAdapterId, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, canonicalModelPackage, capabilityPackage, codeExecutionPackage, createArtifactKindContributionProcessor, createArtifactLifecycleHookContributionProcessor, createEffectiveExecutionSignal, createFacetNamespaceContributionProcessor, createModelRegistryPackage, createReactionContributionProcessor, createSessionExtensionContext, createSessionStorageMemoryState, createSubagentServicePackage, createToolContributionProcessor, createTransitionContributionProcessor, createWorkflowBlockContributionProcessor, ensureAgentCwd, ensureAgentModel, extractTextContent, facetNamespaceRegistryPackage, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, frameworkCorePackages, getFullConversation, getOrCreateSession, importCursors, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, mergeModelMetadata, messageRouting, messages, normalizeSelectionString, normalizeToBlocks, parseForkTransforms, pickFallbackRuntimeOptions, reactionRegistryPackage, recoverAgent, registerAbandonHandler, registerAdapterRuntimeIdentityHandlers, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionOwnershipStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionOwnershipStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerParentResolver, registerResumeHandler, registerSpawningToolCallResolver, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveArtifactContext, resolveDeterministicAdapterId, resolveExecutionTarget, resolveModelCapabilities, resolveRuntimeProviderContext, resolveTargetAgents, routeToAgents, routeToAgentsCore, selectCodeExecutionProvider, sessionBridgePackage, sessionEvents, sessionOrchestratorPackage, sessionPackage, sessionStoragePackage, sessions, subagentServicePackage, toolApprovalPackage, toolRegistryPackage, transitionPipelinePackage, trayMenuPackage, turns, verifyAndRecoverAgents, workflowBlockRegistryPackage };
7872
+ export { AdapterIdentityRegistry, AdapterRegistry, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, type AgentContextState, type AgentInstanceStatus, AgentInstanceStatusSchema, type AgentRecoveryOutcome, AgentRuntimeNamespace, AgentRuntimeSchemas, type AgentRuntimeSelection, AgentRuntimeSelectionSchema, AgentRuntimeSubjects, AgentStorageNamespace, AgentStorageSubjects, type AmbiguousMatch, ArtifactLifecycleHookRegistry, ArtifactLifecycleHookRegistryToken, ArtifactLifecycleHookRejectedError, ArtifactSchemaRegistry, ArtifactSchemaRegistryToken, type AwaitResult, type BugEntry, BugEntrySchema, type BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, CachedRegistryFetcher, CanonicalModelResolutionError, type CanonicalModelResolutionErrorCode, CanonicalModelResolver, type CanonicalModelResolverDeps, CanonicalModelService, CapabilityService, CapabilityToken, type CodeExecutionProviderRejected, type CodeExecutionProviderSelected, type CodeExecutionProviderSelection, type CodeExecutionSelectionFailureCode, CodeExecutionService, CodeExecutionServiceToken, type CodebaseChangedEvent, CodebaseChangedEventSchema, CodebaseNamespace, CodebaseSchemas, CodebaseSubjects, type CompressRequest, CompressRequestSchema, type CompressResponse, CompressResponseSchema, type CompressionEvent, CompressionEventSchema, CompressionNamespace, CompressionSchemas, CompressionSubjects, type ContainerCreated, ContainerCreatedSchema, type ContainerDestroyed, ContainerDestroyedSchema, ContainerIsolatedExecutionTargetSchema, type ContainerIsolatedSpawnRequest, ContainerIsolatedSpawnRequestSchema, ContainerLocalExecutionTargetSchema, type ContainerLocalSpawnRequest, ContainerLocalSpawnRequestSchema, type ContainerLocalWorkflowSpawnRequest, ContainerLocalWorkflowSpawnRequestSchema, type ContainerRuntime, ContainerRuntimeSchema, ContainerSpawnNamespace, ContainerSpawnSubjects, type ContainerStarted, ContainerStartedSchema, type ContainerState, ContainerStateSchema, type ContainerStopped, ContainerStoppedSchema, type ContextAssemblyResult, ContextWindowTracker, type ContextWindowTrackerConfig, type DefaultModelResolution, DockerNamespace, DockerSubjects, type EffectiveExecutionSignal, type EffectiveExecutionSignalOptions, EmbeddingIndexManager, type EventTransform, type ExecutionTarget, type ExecutionTargetInput, ExecutionTargetInputSchema, type ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetNamespace, type ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetSubjects, type ExecutionTargetType, ExecutionTargetTypeSchema, type ExtractedContext, ExtractedContextSchema, FacetNamespaceRegistry, FacetNamespaceRegistryToken, FallbackRegistryFetcher, type FallbackRuntimeOptions, type FrameworkFileAccessOptions, FrameworkServicesCoreNamespaces, type IModelRegistryCache, type IModelRegistryFetcher, type ISessionOrchestrator, type InputResolver, type InsertMessage, type InsertMessageRouting, type InsertSessionEvent, type InsertTurn, type InternalPendingRequest, type ListToolsFilter, LocalExecutionTargetSchema, MakaioSession, type MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, type ModelRegistry, type ModelRegistryCheckModelInProvidersRequest, type ModelRegistryCheckModelInProvidersResponse, type ModelRegistryGetForProviderRequest, type ModelRegistryGetForProviderResponse, type ModelRegistryGetLabModelsRequest, type ModelRegistryGetLabModelsResponse, type ModelRegistryGetProviderModelsRequest, type ModelRegistryGetProviderModelsResponse, ModelRegistryNamespace, ModelRegistryProviderNotFoundError, type ModelRegistryRefreshRequest, type ModelRegistryRefreshResponse, ModelRegistrySchema, ModelRegistrySchemas, ModelRegistryService, type ModelRegistryServiceOptions, ModelRegistrySubjects, ModelRegistryToken, type PreferenceItem, PreferenceItemSchema, type PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects, ProviderContextActivationError, type ProviderContextActivationErrorCode, type ProviderModelOverride, ProviderModelOverrideSchema, type ReactionContributionProcessorOptions, type ReactionInvocationInput, ReactionRegistry, ReactionRegistryToken, type RecoveryConfig, type RegisteredAdapterRuntimeIdentityHandlers, type ResolveArtifactContextOptions, type ResolveIdRequest, ResolveIdRequestSchema, type ResolveIdResponse, ResolveIdResponseSchema, type ResolveLiveIdentityRequest, ResolveLiveIdentityRequestSchema, type ResolveLiveIdentityResponse, ResolveLiveIdentityResponseSchema, type ResolveNameRequest, ResolveNameRequestSchema, type ResolveNameResponse, ResolveNameResponseSchema, type ResolvedDefaultTarget, type ResolvedSelection, type RunAfterInput, type RunBeforeInput, type RunBeforeResult, RuntimeProviderContextResolutionError, type RuntimeProviderContextResolutionErrorCode, type SearchFilters, type SearchSessionRow, type SelectMessage, type SelectMessageRouting, type SelectSessionEvent, type SelectTurn, SessionBridge, SessionBridgeToken, type SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionOrchestrator, SessionOrchestratorToken, type SessionPreviewMaps, SessionStartError, type SessionStorageMemoryState, SessionStorageNamespace, SessionStorageSubjects, SessionStorageToken, SessionToken, SessionTurnManager, type SpawnOptions, type SpawnRequest, SpawnRequestSchema, type SpawnResponse, SpawnResponseSchema, type StartTurnOptions, type StatusRequest, StatusRequestSchema, type StatusResponse, StatusResponseSchema, type StopRequest, StopRequestSchema, type StopResponse, StopResponseSchema, SubagentFailureFinalizationError, type SubagentFailureFinalizationErrorCode, SubagentManager, SubagentService, SubagentServiceToken, 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, type TechnicalDetails, TechnicalDetailsSchema, type TodoEntry, TodoEntrySchema, ToolApprovalService, ToolApprovalToken, ToolRegistry, type ToolRegistryOptions, ToolRegistryToken, type ToolsWithToolsetsResult, type ToolsetInfo, type ToolsetPolicy, type ToolsetPolicyProvider, type TrackOptions, type TrackedSubagent, TransitionActionRegistry, TransitionPipelineService, TransitionPipelineToken, TransitionRuleRegistry, type TrayMenuEntry, TrayMenuEntrySchema, type TrayMenuGroup, TrayMenuGroupEntrySchema, TrayMenuGroupSchema, type TrayMenuItemClicked, TrayMenuItemClickedSchema, type TrayMenuListEntry, TrayMenuListEntrySchema, TrayMenuMetadataSchema, TrayMenuNamespace, TrayMenuSchemas, TrayMenuSectionSchema, TrayMenuService, TrayMenuSubjects, TrayMenuToken, Turn, type TurnConfig, type TurnContext, TurnContextEnricher, type TurnPairStateChange, type TurnPairTerminalOutcome, type TurnResult, TurnStorageNamespace, TurnStorageSubjects, type VerifiedAgents, WORKFLOW_START_ACTION_TYPE, WorkflowBlockRegistry, WorkflowBlockRegistryToken, actionRegistry, activateProviderContext, agents, artifactLifecycleHookRegistryPackage, artifactSchemaRegistryPackage, assembleForkContext, buildDeterministicAdapterId, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, canonicalModelPackage, capabilityPackage, codeExecutionPackage, createArtifactKindContributionProcessor, createArtifactLifecycleHookContributionProcessor, createEffectiveExecutionSignal, createFacetNamespaceContributionProcessor, createFrameworkCorePackages, createModelRegistryPackage, createReactionContributionProcessor, createSessionExtensionContext, createSessionStorageMemoryState, createSubagentServicePackage, createToolContributionProcessor, createTransitionContributionProcessor, createWorkflowBlockContributionProcessor, ensureAgentCwd, ensureAgentModel, extractTextContent, facetNamespaceRegistryPackage, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, frameworkCorePackages, getFullConversation, getOrCreateSession, importCursors, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, mergeModelMetadata, messageRouting, messages, normalizeSelectionString, normalizeToBlocks, parseForkTransforms, pickFallbackRuntimeOptions, reactionRegistryPackage, recoverAgent, registerAbandonHandler, registerAdapterRuntimeIdentityHandlers, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionOwnershipStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionOwnershipStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerParentResolver, registerResumeHandler, registerSpawningToolCallResolver, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveArtifactContext, resolveDeterministicAdapterId, resolveExecutionTarget, resolveModelCapabilities, resolveRuntimeProviderContext, resolveTargetAgents, routeToAgents, routeToAgentsCore, selectCodeExecutionProvider, sessionBridgePackage, sessionEvents, sessionOrchestratorPackage, sessionPackage, sessionStoragePackage, sessions, subagentServicePackage, toolApprovalPackage, toolRegistryPackage, transitionPipelinePackage, trayMenuPackage, turns, verifyAndRecoverAgents, workflowBlockRegistryPackage };
@@ -1 +1 @@
1
- import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{t as n}from"../schema-BnuyCklU.mjs";import{t as r}from"../schema-Cz6-4_Dn.mjs";import{n as i,r as a,t as o}from"../namespace-CMntzAPI.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-CfWqy2KP.mjs";import{TurnStorageNamespace as je,TurnStorageSubjects as Me}from"./turn/namespace.mjs";import{a as Ne,i as d}from"../ownership-recovery-guard-C9h8K1jo.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-Tj_635zr.mjs";import{n as xt}from"../namespace-J87EeVTm.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-Djjq4LLs.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-D6GIZ5DC.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-DgTjgflr.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-Bo6-o_rW.mjs";import{l as bn,n as xn,p as Sn,r as Cn,t as wn}from"../ownership-memory-handler-C-y9zQf8.mjs";import{_ as Tn,g as T,v as En}from"../packages-vF9F4M41.mjs";import{A as Dn,B as On,C as kn,D as An,E as jn,F as Mn,I as Nn,L as Pn,M as E,N as Fn,O as In,P as Ln,R as Rn,S as zn,T as Bn,V as Vn,_ as Hn,a as Un,b as Wn,c as Gn,d as D,f as O,g as Kn,h as qn,i as Jn,j as Yn,k as Xn,l as Zn,m as Qn,n as k,o as $n,p as er,r as tr,s as nr,t as A,u as rr,v as ir,w as ar,x as or,y as sr,z as cr}from"../framework-packages-CLrOCDDK.mjs";import{n as lr,r as ur,t as dr}from"../package-BCKYMTYG.mjs";import{a as fr,c as pr,i as mr,l as hr,n as gr,o as j,r as _r,s as vr,t as yr,u as br}from"../model-registry-CeDu27XL.mjs";import{t as xr}from"../tool-approval-service-BRyBObcL.mjs";import{TrayMenuEntrySchema as Sr,TrayMenuGroupEntrySchema as Cr,TrayMenuGroupSchema as wr,TrayMenuItemClickedSchema as Tr,TrayMenuListEntrySchema as Er,TrayMenuMetadataSchema as Dr,TrayMenuSchemas as Or,TrayMenuSectionSchema as kr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as M,TrayMenuSubjects as Ar}from"./tray-menu/namespace.mjs";import{t as jr}from"../tray-menu-service-BRrnoqaY.mjs";import{n as Mr}from"../handler-Cc1MhaR4.mjs";import{a as Nr,i as Pr,n as Fr,o as Ir,r as Lr,t as Rr}from"../package-BSz4hbav.mjs";import{FsNamespace as zr}from"./filesystem/namespace.mjs";import{r as Br}from"../tools-nkqlVAQ1.mjs";import{t as Vr}from"../workflow-transitions-DEaRIZDU.mjs";import"./capability/index.mjs";import{a as Hr,i as Ur,n as Wr,r as Gr,t as Kr}from"../code-execution-BspFbEdT.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as qr,AgentRuntimeSchemas as Jr,AgentRuntimeSelectionSchema as Yr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as N,AgentRuntimeSubjects as Xr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as Zr,CodebaseSchemas as Qr}from"./codebase/schemas.mjs";import{CodebaseNamespace as P,CodebaseSubjects as $r}from"./codebase/namespace.mjs";import{CompressionNamespace as F,CompressionSubjects as ei}from"./compression/namespace.mjs";import{r as ti,t as ni}from"../storage-namespace-TBX8VgK3.mjs";import{DefinitionNamespace as ri}from"./definition/namespace.mjs";import{DialogNamespace as ii}from"./dialog/namespace.mjs";import{a as ai,i as I,n as oi,t as si}from"../execution-target-CDeIBu4b.mjs";import{CLIDetectionNamespace as ci}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as li}from"./local-notification/namespace.mjs";import{t as ui}from"../namespace-C9xmGXbW.mjs";import{ExtensionConfigStorageNamespace as di}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as fi}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as pi,SubagentTemplateCreateSchema as mi,SubagentTemplateInstanceSchema as hi,SubagentTemplateInstanceStatusSchema as gi,SubagentTemplateKernelSchemas as _i,SubagentTemplateSchema as vi,SubagentTemplateSettingsSchemas as yi,SubagentTemplateSpawnRequestSchema as bi,SubagentTemplateSpawnedEventSchema as xi,SubagentTemplateSummarySchema as Si,SubagentTemplateUpdateSchema as Ci}from"./subagent-template/schemas.mjs";import{r as wi,t as Ti}from"../namespace-CqJhR19O.mjs";import{SubagentTemplateKernelNamespace as L,SubagentTemplateSubjects as Ei}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 Di}from"@makaio/framework/adapters";import{artifactRevisionKey as z}from"@makaio/framework/contracts/artifact";import{ModelRegistryPublicNamespace as Oi}from"@makaio/framework/contracts/model-registry";function ki(e){return{source:`extension`,ownerKey:`extension:${e}`}}function Ai(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function ji(){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)}Ai(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=ki(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 Mi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function Ni(){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(Mi(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=Li(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(!Pi(a,Ii(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 Pi(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}Fi(e,t)}function K(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Fi(e,t){e.refMetadataByKey.delete(t)}function Ii(e,t){return q(e.refMetadataByKey.get(t))}function q(e){return e?.resolvedViaBackEdge===!0}function Li(e){return JSON.stringify([z(e.sourceRef),e.sourceLocalId??null,e.relationType,e.direction??`outbound`,Ri(e.target)])}function Ri(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 zi(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=Ki(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 Bi(e,o,a,n,r,i);for(let[t,a]of Object.entries(n??{}))a.direction===`inbound`&&await Vi(e,o,t,a,r,i)}async function Bi(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 Vi(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||!Wi(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 Hi(e,l,o,t.relationType,i,n,r)}async function Hi(e,t,n,r,i,a,o){let s=(i.depth??1)-1;await J(e,t,Ui(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 Ui(e,t){return!t||!e?t??e:{...e,...t}}function Z(e,t){if(!e)return!1;if(!e.kinds)return!0;let n=Gi(t);return n!==void 0&&e.kinds.includes(n)}function Wi(e,t){return e.refClass===`artifact`&&e.kind===t.kind&&e.id===t.id}function Gi(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 Ki(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 qi(){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 Ji(){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 Yi(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 Xi=[x,xt,N,d,ci,fi,P,F,ti,ni,ri,ii,I,C,di,zr,Mr,Di,li,S,j,Oi,w,ui,St,yn,Ti,M,je,L,wi];export{an as AdapterIdentityRegistry,_t as AdapterRegistry,x as AdapterRuntimeNamespace,m as AdapterRuntimeSchemas,Pe as AdapterRuntimeSubjects,qr as AgentInstanceStatusSchema,N as AgentRuntimeNamespace,Jr as AgentRuntimeSchemas,Yr as AgentRuntimeSelectionSchema,Xr as AgentRuntimeSubjects,d as AgentStorageNamespace,Ne as AgentStorageSubjects,On as ArtifactLifecycleHookRegistry,A as ArtifactLifecycleHookRegistryToken,Vn as ArtifactLifecycleHookRejectedError,En as ArtifactSchemaRegistry,T as ArtifactSchemaRegistryToken,on as BugEntrySchema,Xe as CONNECTOR_SWAP_DEFAULT_PIPELINE,yr as CachedRegistryFetcher,Rn as CanonicalModelResolutionError,Pn as CanonicalModelResolver,Nn as CanonicalModelService,ur as CapabilityService,dr as CapabilityToken,Gr as CodeExecutionService,Kr as CodeExecutionServiceToken,Zr as CodebaseChangedEventSchema,P as CodebaseNamespace,Qr as CodebaseSchemas,$r as CodebaseSubjects,sn as CompressRequestSchema,cn as CompressResponseSchema,ln as CompressionEventSchema,F as CompressionNamespace,un as CompressionSchemas,ei 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,si as ContainerSpawnNamespace,oi as ContainerSpawnSubjects,Wt as ContainerStartedSchema,kt as ContainerStateSchema,wt as ContainerStoppedSchema,gt as ContextWindowTracker,I as DockerNamespace,ai 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,cr as FacetNamespaceRegistry,k as FacetNamespaceRegistryToken,gr as FallbackRegistryFetcher,Xi 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,_r as ModelRegistryProviderNotFoundError,pr as ModelRegistrySchema,hr as ModelRegistrySchemas,mr as ModelRegistryService,vr as ModelRegistrySubjects,tr as ModelRegistryToken,mn as PreferenceItemSchema,hn as PreferenceKeySchema,gn as PreferenceValueSchema,w as PreferencesNamespace,_n as PreferencesSchemas,vn as PreferencesSubjects,$t as ProviderContextActivationError,br as ProviderModelOverrideSchema,Ln 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,Jn as SessionBridgeToken,o as SessionEventStorageNamespace,i as SessionEventStorageSubjects,Ye as SessionExtensionContextImpl,$e as SessionOrchestrator,Un as SessionOrchestratorToken,de as SessionStartError,f as SessionStorageNamespace,p as SessionStorageSubjects,$n as SessionStorageToken,nr as SessionToken,Ve as SessionTurnManager,Dt as SpawnRequestSchema,It as SpawnResponseSchema,Ct as StatusRequestSchema,Ft as StatusResponseSchema,Tt as StopRequestSchema,Et as StopResponseSchema,Pr as SubagentFailureFinalizationError,Ir as SubagentManager,Nr as SubagentService,Rr as SubagentServiceToken,pi as SubagentTemplateCompletedEventSchema,mi as SubagentTemplateCreateSchema,hi as SubagentTemplateInstanceSchema,gi as SubagentTemplateInstanceStatusSchema,L as SubagentTemplateKernelNamespace,_i as SubagentTemplateKernelSchemas,vi as SubagentTemplateSchema,yi as SubagentTemplateSettingsSchemas,bi as SubagentTemplateSpawnRequestSchema,xi as SubagentTemplateSpawnedEventSchema,Ei as SubagentTemplateSubjects,Si as SubagentTemplateSummarySchema,Ci as SubagentTemplateUpdateSchema,fn as TechnicalDetailsSchema,pn as TodoEntrySchema,xr as ToolApprovalService,Gn as ToolApprovalToken,Yn as ToolRegistry,Zn as ToolRegistryToken,In as TransitionActionRegistry,jn as TransitionPipelineService,rr as TransitionPipelineToken,An as TransitionRuleRegistry,Sr as TrayMenuEntrySchema,Cr as TrayMenuGroupEntrySchema,wr as TrayMenuGroupSchema,Tr as TrayMenuItemClickedSchema,Er as TrayMenuListEntrySchema,Dr as TrayMenuMetadataSchema,M as TrayMenuNamespace,Or as TrayMenuSchemas,kr as TrayMenuSectionSchema,jr as TrayMenuService,Ar as TrayMenuSubjects,D as TrayMenuToken,Ge as Turn,He as TurnContextEnricher,en as TurnStorageNamespace,Me as TurnStorageSubjects,Xn as WORKFLOW_START_ACTION_TYPE,Dn as WorkflowBlockRegistry,O as WorkflowBlockRegistryToken,Ae as actionRegistry,Qt as activateProviderContext,e as agents,er as artifactLifecycleHookRegistryPackage,Tn as artifactSchemaRegistryPackage,xe as assembleForkContext,nn as buildDeterministicAdapterId,re as buildRecoveryContext,ae as buildRecoveryContextWithPipeline,l as buildSessionContext,le as buildTurnInitiator,Mn as canonicalModelPackage,lr as capabilityPackage,Wr as codeExecutionPackage,ji as createArtifactKindContributionProcessor,Ni as createArtifactLifecycleHookContributionProcessor,Hr as createEffectiveExecutionSignal,qi as createFacetNamespaceContributionProcessor,Qn as createModelRegistryPackage,Yi as createReactionContributionProcessor,Be as createSessionExtensionContext,Sn as createSessionStorageMemoryState,Fr as createSubagentServicePackage,Br as createToolContributionProcessor,Vr as createTransitionContributionProcessor,Ji 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,Kn as frameworkCorePackages,oe as getFullConversation,ce as getOrCreateSession,ut as importCursors,bn as kindToBranchKind,ct as mapAgentsBySession,vt as mapRowToSession,qe as mapToSession,fr as mergeModelMetadata,nt as messageRouting,r as messages,he as normalizeSelectionString,ne as normalizeToBlocks,Qe as parseForkTransforms,Ke as pickFallbackRuntimeOptions,Fn 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,zi as resolveArtifactContext,tn as resolveDeterministicAdapterId,De as resolveExecutionTarget,Se as resolveModelCapabilities,Zt as resolveRuntimeProviderContext,ue as resolveTargetAgents,Ee as routeToAgents,u as routeToAgentsCore,Ur as selectCodeExecutionProvider,Hn as sessionBridgePackage,a as sessionEvents,ir as sessionOrchestratorPackage,sr as sessionPackage,Wn as sessionStoragePackage,t as sessions,Lr as subagentServicePackage,or as toolApprovalPackage,zn as toolRegistryPackage,kn as transitionPipelinePackage,ar as trayMenuPackage,n as turns,ie as verifyAndRecoverAgents,Bn as workflowBlockRegistryPackage};
1
+ import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{t as n}from"../schema-BnuyCklU.mjs";import{t as r}from"../schema-Cz6-4_Dn.mjs";import{n as i,r as a,t as o}from"../namespace-CMntzAPI.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-CfWqy2KP.mjs";import{TurnStorageNamespace as je,TurnStorageSubjects as Me}from"./turn/namespace.mjs";import{a as Ne,i as d}from"../ownership-recovery-guard-C9h8K1jo.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-Tj_635zr.mjs";import{n as xt}from"../namespace-J87EeVTm.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-Djjq4LLs.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-D6GIZ5DC.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-DgTjgflr.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-Bo6-o_rW.mjs";import{l as bn,n as xn,p as Sn,r as Cn,t as wn}from"../ownership-memory-handler-C-y9zQf8.mjs";import{_ as Tn,g as T,v as En}from"../packages-vF9F4M41.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-D2fycy02.mjs";import{n as ur,r as dr,t as fr}from"../package-BCKYMTYG.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-CeDu27XL.mjs";import{t as Sr}from"../tool-approval-service-BCN4W8eS.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-BRrnoqaY.mjs";import{n as Nr}from"../handler-Cc1MhaR4.mjs";import{a as Pr,i as Fr,n as Ir,o as Lr,r as Rr,t as zr}from"../package-BSz4hbav.mjs";import{FsNamespace as Br}from"./filesystem/namespace.mjs";import{r as Vr}from"../tools-BCL_dtHe.mjs";import{t as Hr}from"../workflow-transitions-7d9lGi08.mjs";import"./capability/index.mjs";import{a as Ur,i as Wr,n as Gr,r as Kr,t as qr}from"../code-execution-BspFbEdT.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-TBX8VgK3.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-CDeIBu4b.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-C9xmGXbW.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-CqJhR19O.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,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-DPtj1sPC2.mjs";
2
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-CwwiV3kt.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-RwAlAMbq2.mjs";
2
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-NHTWAjaX.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-DPtj1sPC2.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-RwAlAMbq2.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-DPtj1sPC2.mjs";
2
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-CwwiV3kt.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-RwAlAMbq2.mjs";
2
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-NHTWAjaX.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-oE2q0pTG.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-B1uHTa1l.mjs";
2
2
  export { ProviderContextActivationError, ProviderContextActivationErrorCode, ProviderContextActivationRollbackError, ProviderContextActivationTransaction, RuntimeProviderContextResolutionError, RuntimeProviderContextResolutionErrorCode, activateProviderContext, prepareProviderContextActivation, resolveRuntimeProviderContext };