@axiom-lattice/core 9.0.0 → 10.0.0

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.
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { BaseLanguageModelInput } from '@langchain/core/language_models/base';
8
8
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
9
9
  import { ChatResult, ChatGenerationChunk } from '@langchain/core/outputs';
10
10
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
11
- import { LLMConfig, ModelProviderEntry, ModelProviderModelEntry, STTConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, DeepAgentConfig, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TrustedRunContext, QueuedExecutionMode, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, ModelProviderStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, LeaseStore, OutboxStore, PluginDeploymentStore, ChannelReplyJobStore, CheckpointStorage, StoreProtocol, VectorStoreProvider, Thread, CreateThreadRequest, StorePutInput, StoreItem, StoreSearchInput, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderStatus, ProviderModelInput, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, CreateChannelReplyJobInput, ChannelReplyJob, STTModelLatticeProtocol, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateShareRequest, ChannelAdapter, InterruptPolicy, AgentInterrupt, ProjectTaskLifecycleAction, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, SandboxPluginManifest, SandboxPluginToolDef, SandboxPluginDiagnostic, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
11
+ import { LLMConfig, ModelProviderEntry, ModelProviderModelEntry, STTConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, DeepAgentConfig, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TrustedRunContext, QueuedExecutionMode, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, ModelProviderStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, LeaseStore, OutboxStore, PluginDeploymentStore, ChannelReplyJobStore, CheckpointStorage, StoreProtocol, VectorStoreProvider, Thread, CreateThreadRequest, StorePutInput, StoreItem, StoreSearchInput, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderStatus, ProviderModelInput, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, CreateChannelReplyJobInput, ChannelReplyJob, STTModelLatticeProtocol, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateShareRequest, ObservabilityDashboardInput, ObservabilityDashboardResult, ChannelAdapter, InterruptPolicy, AgentInterrupt, ProjectTaskLifecycleAction, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, SandboxPluginManifest, SandboxPluginToolDef, SandboxPluginDiagnostic, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
12
12
  export { _axiom_lattice_protocols as Protocols };
13
13
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType, ProjectRoomTrustedRunContext, QueuedExecutionMode, TrustedRunContext, parseQueuedExecutionMode, parseTrustedRunContext } from '@axiom-lattice/protocols';
14
14
  import * as langchain from 'langchain';
@@ -3452,6 +3452,16 @@ declare class DefaultScheduleClient implements ScheduleClient {
3452
3452
  getActiveTaskIds(): Promise<string[]>;
3453
3453
  cancelAll(): Promise<void>;
3454
3454
  restore(): Promise<number>;
3455
+ /**
3456
+ * Reconcile this replica's timers with the shared schedule store.
3457
+ *
3458
+ * @remarks Safe to call periodically and on every replica. Execution still
3459
+ * goes through `claimScheduledRun`, so duplicate timer fires execute once.
3460
+ */
3461
+ reconcile(): Promise<number>;
3462
+ private clearTimer;
3463
+ private clearAllTimers;
3464
+ private reconcileTimers;
3455
3465
  setStorage(storage: ScheduleStorage): void;
3456
3466
  getStorage(): ScheduleStorage | null;
3457
3467
  private scheduleTimer;
@@ -7826,6 +7836,76 @@ declare function withTimeout<T>(operation: Promise<T>, ms: number, onTimeout: ()
7826
7836
  */
7827
7837
  declare function convertToConnection(config: McpServerConfig): Connection;
7828
7838
 
7839
+ /** Signed payload carried by an MCP App plugin ref. Contains no secrets. */
7840
+ interface McpUiScopePayload {
7841
+ /** Token version; currently always 1. */
7842
+ v: 1;
7843
+ /** Authenticated tenant; must equal the request tenant. */
7844
+ tid: string;
7845
+ /** Thread that produced the tool result. */
7846
+ thid?: string;
7847
+ /** Assistant that produced the tool result. */
7848
+ aid?: string;
7849
+ /** Run workspace. */
7850
+ wid?: string;
7851
+ /** Run project. */
7852
+ pid?: string;
7853
+ /** Plugin type; must equal the ref's `pluginType`. */
7854
+ plugin: string;
7855
+ /** UI resource; must equal the ref's `resource`. */
7856
+ resource: string;
7857
+ /** Selected connection key, if the run selected one. */
7858
+ ck?: string;
7859
+ /** Issue time (Unix seconds). Audit only; not used for expiry. */
7860
+ iat: number;
7861
+ /** Random id for audit/correlation; not stored or checked for uniqueness. */
7862
+ jti: string;
7863
+ }
7864
+ /** Input accepted by {@link signMcpUiScope}. */
7865
+ type McpUiScopeInput = Omit<McpUiScopePayload, "v" | "iat" | "jti"> & Partial<Pick<McpUiScopePayload, "iat" | "jti">>;
7866
+ /**
7867
+ * Read the configured signing secret.
7868
+ *
7869
+ * @returns The explicit `MCP_UI_SCOPE_SECRET` when it is at least 32
7870
+ * characters; otherwise a 32-byte key derived from the shared
7871
+ * `LATTICE_ENCRYPTION_KEY` with HKDF domain separation. Returns `undefined`
7872
+ * when no usable source exists.
7873
+ * @remarks
7874
+ * - An explicitly configured but too-short `MCP_UI_SCOPE_SECRET` fails closed
7875
+ * (it does not fall back), so misconfiguration is visible.
7876
+ * - The derived fallback means rotating `LATTICE_ENCRYPTION_KEY` invalidates
7877
+ * existing pinned scopes. Set `MCP_UI_SCOPE_SECRET` to rotate independently.
7878
+ */
7879
+ declare function getMcpUiScopeSecret(): string | undefined;
7880
+ /**
7881
+ * Sign a scope payload for a plugin UI ref.
7882
+ *
7883
+ * @param input - Run identity, plugin/resource, and selected connection key.
7884
+ * @param secret - Signing secret; defaults to {@link getMcpUiScopeSecret}.
7885
+ * @returns `base64url(payload) + "." + base64url(HMAC-SHA256)`, or `undefined`
7886
+ * when the secret/payload is unusable.
7887
+ * @example
7888
+ * ```ts
7889
+ * const token = signMcpUiScope({ tid, plugin, resource, ck: connectionKey });
7890
+ * ```
7891
+ * @remarks The payload is readable base64url JSON; never put credentials in it.
7892
+ */
7893
+ declare function signMcpUiScope(input: McpUiScopeInput, secret?: string | undefined): string | undefined;
7894
+ /**
7895
+ * Verify a scope token and return its payload.
7896
+ *
7897
+ * @param token - The opaque `scope` string from a plugin ref.
7898
+ * @param secret - Signing secret; defaults to {@link getMcpUiScopeSecret}.
7899
+ * @returns The validated payload, or `null` for any malformed/invalid token.
7900
+ * @example
7901
+ * ```ts
7902
+ * const payload = verifyMcpUiScope(token, secret);
7903
+ * if (!payload) throw new Error("invalid scope");
7904
+ * ```
7905
+ * @remarks Does not check `ck` against the Connection Store; the gateway does.
7906
+ */
7907
+ declare function verifyMcpUiScope(token: string | undefined, secret?: string | undefined): McpUiScopePayload | null;
7908
+
7829
7909
  /**
7830
7910
  * Extract an MCP Apps UI ref from a tool's raw `_meta`.
7831
7911
  *
@@ -7885,7 +7965,8 @@ declare function appendUiFence(content: unknown, ref: McpUiRef): string | unknow
7885
7965
  * an array (see {@link appendUiFence}) so non-text blocks are never dropped.
7886
7966
  *
7887
7967
  * The fence carries only the UI ref identity (server key, resource URI,
7888
- * display mode, title). MCP rich results (`structuredContent`, `_meta`,
7968
+ * display mode, title) for MCP refs; plugin refs may additionally carry a
7969
+ * signed `scope`. MCP rich results (`structuredContent`, `_meta`,
7889
7970
  * non-text blocks) stay on the raw tool result / `artifact`, which the client
7890
7971
  * merger normalizes into `ToolCall.ui` — the fence must not duplicate them.
7891
7972
  *
@@ -8828,6 +8909,188 @@ declare function buildSandboxOpenEnv(credential: SandboxOpenCredential): string;
8828
8909
  /** @internal */
8829
8910
  declare function clearSandboxOpenCredentialProviderForTests(): void;
8830
8911
 
8912
+ /**
8913
+ * Raised when a provider supports dashboards but the backend version does not.
8914
+ */
8915
+ declare class ObservabilityDashboardUnsupportedError extends Error {
8916
+ /**
8917
+ * @param message - Stable diagnostic message.
8918
+ */
8919
+ constructor(message?: string);
8920
+ }
8921
+ /**
8922
+ * Raised when the provider cannot reach its dashboard backend.
8923
+ */
8924
+ declare class ObservabilityDashboardUnavailableError extends Error {
8925
+ /**
8926
+ * @param message - Stable diagnostic message.
8927
+ */
8928
+ constructor(message?: string);
8929
+ }
8930
+ /**
8931
+ * Langfuse-compatible observation kinds; custom providers may use a subset.
8932
+ */
8933
+ type ObservabilityObservationType = "span" | "generation" | "event" | "agent" | "tool" | "chain" | "retriever" | "embedding" | "guardrail" | "evaluator";
8934
+ /**
8935
+ * Correlation context available for one Agent invocation.
8936
+ */
8937
+ interface ObservabilityTraceContext {
8938
+ tenantId: string;
8939
+ projectId?: string;
8940
+ workspaceId?: string;
8941
+ assistantId: string;
8942
+ threadId: string;
8943
+ runId: string;
8944
+ taskId?: string;
8945
+ userId?: string;
8946
+ source?: string;
8947
+ traceName?: string;
8948
+ tags?: string[];
8949
+ metadata?: Record<string, unknown>;
8950
+ }
8951
+ /**
8952
+ * Provider capabilities used by the host and future UI.
8953
+ */
8954
+ interface ObservabilityProviderCapabilities {
8955
+ autoCallbacks: boolean;
8956
+ customObservations: boolean;
8957
+ scores: boolean;
8958
+ sessions: boolean;
8959
+ promptManagement: boolean;
8960
+ }
8961
+ /**
8962
+ * Vendor-neutral observability provider contract.
8963
+ *
8964
+ * A provider is registered under a key in the {@link ObservabilityLatticeManager}
8965
+ * and exposes LangChain-compatible callback handlers for one Agent invocation.
8966
+ * Observability must never break execution, so implementations should be
8967
+ * defensive: the manager swallows callback-resolution failures.
8968
+ */
8969
+ interface ObservabilityProvider {
8970
+ readonly type: string;
8971
+ readonly capabilities: ObservabilityProviderCapabilities;
8972
+ start?(): void | Promise<void>;
8973
+ stop?(): void | Promise<void>;
8974
+ /**
8975
+ * Creates callback handlers correlated to the supplied invocation context.
8976
+ *
8977
+ * @param context Trace correlation fields for the running Agent invocation.
8978
+ * @returns Callback handlers, or `undefined`/empty when tracing is disabled.
8979
+ */
8980
+ createCallbacks(context: ObservabilityTraceContext): readonly unknown[] | undefined;
8981
+ /**
8982
+ * Returns a provider-owned dashboard payload for the selected tenant.
8983
+ *
8984
+ * @param input - Time range and server-resolved tenant scope.
8985
+ * @returns The provider-owned payload and its version.
8986
+ */
8987
+ getDashboard?(input: ObservabilityDashboardInput): Promise<ObservabilityDashboardResult>;
8988
+ /** Returns the provider UI's trace-list URL, if it has one. */
8989
+ getTraceListUrl?(): string | undefined;
8990
+ /** Builds a provider UI URL for a single trace id, if supported. */
8991
+ getTraceUrl?(traceId: string): string | undefined;
8992
+ }
8993
+ /**
8994
+ * Normalized observation contract for future custom-span providers.
8995
+ */
8996
+ interface ObservabilityObservation {
8997
+ id: string;
8998
+ traceId: string;
8999
+ parentId?: string;
9000
+ type: ObservabilityObservationType;
9001
+ name: string;
9002
+ startTime: Date;
9003
+ endTime?: Date;
9004
+ input?: unknown;
9005
+ output?: unknown;
9006
+ model?: string;
9007
+ modelParameters?: Record<string, unknown>;
9008
+ usageDetails?: Record<string, number>;
9009
+ costDetails?: Record<string, number>;
9010
+ level?: "DEBUG" | "DEFAULT" | "WARNING" | "ERROR";
9011
+ statusMessage?: string;
9012
+ metadata?: Record<string, unknown>;
9013
+ }
9014
+
9015
+ /**
9016
+ * Singleton registry of observability providers.
9017
+ *
9018
+ * Providers are registered under a key; exactly one key (default `"default"`)
9019
+ * is selected as the active default. When no provider is registered, or the
9020
+ * selected provider is missing/failing, observability is a no-op.
9021
+ *
9022
+ * @example
9023
+ * ```ts
9024
+ * ObservabilityLatticeManager.getInstance().registerLattice("default", provider);
9025
+ * ObservabilityLatticeManager.getInstance().setDefault("default");
9026
+ * ```
9027
+ *
9028
+ * @remarks
9029
+ * - Registration must happen before the first Agent invocation that should be traced.
9030
+ * - Provider callback creation is resolved through {@link resolveObservabilityCallbacks}.
9031
+ */
9032
+ declare class ObservabilityLatticeManager extends BaseLatticeManager<ObservabilityProvider> {
9033
+ private static instance;
9034
+ private defaultKey;
9035
+ /** Returns the process-wide singleton manager. */
9036
+ static getInstance(): ObservabilityLatticeManager;
9037
+ protected getLatticeType(): string;
9038
+ /** Registers a provider under a caller-chosen key. */
9039
+ registerLattice(key: string, provider: ObservabilityProvider): void;
9040
+ /**
9041
+ * Returns the provider registered under `key`.
9042
+ *
9043
+ * @throws Error when no provider is registered under `key`.
9044
+ */
9045
+ getObservabilityLattice(key: string): ObservabilityProvider;
9046
+ /** Returns whether a provider is registered under `key`. */
9047
+ hasLattice(key: string): boolean;
9048
+ /**
9049
+ * Removes the provider under `key`.
9050
+ *
9051
+ * @returns `true` when a provider was removed. Removing the active default
9052
+ * falls back to the `"default"` key.
9053
+ */
9054
+ removeLattice(key: string): boolean;
9055
+ /** Removes all providers and resets the active default. */
9056
+ clear(): void;
9057
+ /**
9058
+ * Selects the provider used for new invocations.
9059
+ *
9060
+ * @throws Error when no provider is registered under `key`.
9061
+ */
9062
+ setDefault(key: string): void;
9063
+ /** Returns the key of the active default provider. */
9064
+ getDefaultKey(): string;
9065
+ /** Returns the active default provider, if registered. */
9066
+ getDefault(): ObservabilityProvider | undefined;
9067
+ }
9068
+ /** Process-wide singleton observability provider registry. */
9069
+ declare const observabilityLatticeManager: ObservabilityLatticeManager;
9070
+ /**
9071
+ * Registers an observability provider under a key.
9072
+ *
9073
+ * @example
9074
+ * ```ts
9075
+ * registerObservabilityLattice("default", provider);
9076
+ * ```
9077
+ */
9078
+ declare function registerObservabilityLattice(key: string, provider: ObservabilityProvider): void;
9079
+ /**
9080
+ * Selects the default observability provider used for new invocations.
9081
+ *
9082
+ * @throws Error when `key` is not registered.
9083
+ */
9084
+ declare function setDefaultObservabilityLattice(key: string): void;
9085
+ /**
9086
+ * Resolves callbacks from the selected default provider.
9087
+ * A misbehaving provider must never break Agent execution.
9088
+ *
9089
+ * @param context Trace correlation fields for the running Agent invocation.
9090
+ * @returns A fresh array of callback handlers; empty when unavailable.
9091
+ */
9092
+ declare function resolveObservabilityCallbacks(context: ObservabilityTraceContext): unknown[];
9093
+
8831
9094
  /**
8832
9095
  * Channel connection lifecycle.
8833
9096
  *
@@ -8864,10 +9127,24 @@ interface ChannelConnectionLeaderDeps {
8864
9127
  leaseStore: LeaseStore;
8865
9128
  /** Stable this-replica id (e.g. `getReplicaId()`). */
8866
9129
  owner: string;
8867
- /** Establish all enabled channel connections. */
8868
- connect: () => Promise<void>;
8869
- /** Tear down all channel connections. */
8870
- disconnect: () => Promise<void>;
9130
+ /** Legacy mode: establish all enabled channel connections. */
9131
+ connect?: () => Promise<void>;
9132
+ /** Legacy mode: tear down all channel connections. */
9133
+ disconnect?: () => Promise<void>;
9134
+ /** Reconcile mode: read the desired installations from the shared store. */
9135
+ loadDesired?: () => Promise<ChannelInstallation[]>;
9136
+ /** Reconcile mode: establish one installation connection. */
9137
+ connectInstallation?: (installation: ChannelInstallation) => Promise<void>;
9138
+ /** Reconcile mode: tear down one installation connection. */
9139
+ disconnectInstallation?: (installation: ChannelInstallation) => Promise<void>;
9140
+ /** Reconcile mode: stable config fingerprint used to detect changes. */
9141
+ fingerprint?: (installation: ChannelInstallation) => string;
9142
+ /** Shard index (default 0). */
9143
+ shard?: number;
9144
+ /** Shard count (default 1). Must match on every replica. */
9145
+ shardCount?: number;
9146
+ /** Lease key override; defaults to the shard-aware channel lease. */
9147
+ leaseKey?: string;
8871
9148
  /** Lease TTL in ms (default 60_000). */
8872
9149
  ttlMs?: number;
8873
9150
  /** Retry/health interval in ms (default max(5_000, floor(ttlMs / 3))). */
@@ -8877,6 +9154,8 @@ interface ChannelConnectionLeaderDeps {
8877
9154
  warn(message: string, context: Record<string, unknown>): void;
8878
9155
  };
8879
9156
  }
9157
+ /** Stable installation-to-shard mapping shared by every replica. */
9158
+ declare function channelShardForInstallation(installationId: string, shardCount: number): number;
8880
9159
  /**
8881
9160
  * Long-lived single-owner gate for persistent channel connections.
8882
9161
  *
@@ -8900,7 +9179,13 @@ declare class ChannelConnectionLeader {
8900
9179
  private readonly deps;
8901
9180
  private readonly ttlMs;
8902
9181
  private readonly retryMs;
9182
+ private readonly shard;
9183
+ private readonly shardCount;
9184
+ private readonly leaseKey;
9185
+ private readonly reconciler;
9186
+ private readonly active;
8903
9187
  private holder;
9188
+ private renewFailures;
8904
9189
  private connected;
8905
9190
  private attempted;
8906
9191
  private inFlight;
@@ -8908,6 +9193,12 @@ declare class ChannelConnectionLeader {
8908
9193
  private running;
8909
9194
  private stopped;
8910
9195
  constructor(deps: ChannelConnectionLeaderDeps);
9196
+ /** Whether this shard owns an installation id. */
9197
+ owns(installationId: string): boolean;
9198
+ /** Wake the current leader so it reconciles the shared desired state. */
9199
+ wake(): void;
9200
+ /** Reconcile now when this instance currently holds the lease. */
9201
+ reconcile(): Promise<void>;
8911
9202
  /** Starts the ownership loop (immediate tick, then every `retryMs`). */
8912
9203
  start(): void;
8913
9204
  /**
@@ -8935,6 +9226,12 @@ declare class ChannelConnectionLeader {
8935
9226
  private loseLeadership;
8936
9227
  private connectChannels;
8937
9228
  private disconnectChannels;
9229
+ /** Reconcile desired installations against the connections this shard holds. */
9230
+ private reconcileChannels;
9231
+ private fingerprint;
9232
+ private safeConnect;
9233
+ private safeDisconnect;
9234
+ private disconnectTracked;
8938
9235
  }
8939
9236
 
8940
9237
  /**
@@ -10621,6 +10918,23 @@ declare class Agent {
10621
10918
  * @param params - {@link AgentThreadInterface}
10622
10919
  */
10623
10920
  constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
10921
+ /**
10922
+ * Re-pins the workspace/project scope used by the next execution.
10923
+ *
10924
+ * @param params - Concrete scope of the run about to execute; absent or
10925
+ * `null`/empty values keep the run unscoped.
10926
+ * @throws {Error} When this Agent is actively executing.
10927
+ * @remarks `AgentInstanceManager` is keyed by
10928
+ * `(tenant_id, assistant_id, thread_id)` only, so a control-plane caller can
10929
+ * create the instance before the durable run worker does. The worker calls
10930
+ * this method while holding the thread-run lease (no other execution can be
10931
+ * active) so the run's authoritative scope cannot inherit a stale default and
10932
+ * fail capability resolution with `Project 'default' was not found`.
10933
+ */
10934
+ applyExecutionScope(params: {
10935
+ workspace_id?: string | null;
10936
+ project_id?: string | null;
10937
+ }): void;
10624
10938
  /**
10625
10939
  * Accepts host-authenticated queue metadata through the package-private symbol capability.
10626
10940
  *
@@ -10638,6 +10952,7 @@ declare class Agent {
10638
10952
  private clearRecoveryBlock;
10639
10953
  private rethrowClaimedExecutionError;
10640
10954
  private executionRunConfig;
10955
+ private observabilityCallbacks;
10641
10956
  private getHumanPendingContent;
10642
10957
  private queuedInputMessages;
10643
10958
  /**
@@ -11783,6 +12098,18 @@ declare class AgentInstanceManager {
11783
12098
  * Ensures only one instance per thread exists
11784
12099
  */
11785
12100
  getAgent(params: AgentThreadInterface): Agent;
12101
+ /**
12102
+ * Get the managed Agent for an exclusive execution and re-pin its scope.
12103
+ *
12104
+ * @param params - Thread identity plus the authoritative run scope.
12105
+ * @returns The singleton Agent whose next execution uses `params` scope.
12106
+ * @throws {Error} When the resolved Agent is actively executing.
12107
+ * @remarks Callers must already hold the thread-run lease (the durable run
12108
+ * worker does), so no execution can be in flight. This keeps the one-instance
12109
+ * identity while preventing a control-plane caller's default scope from
12110
+ * deciding how the durable run resolves Projects.
12111
+ */
12112
+ getAgentForExecution(params: AgentThreadInterface): Agent;
11786
12113
  /**
11787
12114
  * Get the managed Agent for a thread WITHOUT creating or registering one.
11788
12115
  *
@@ -14477,6 +14804,8 @@ interface CompileSandboxPluginArgs {
14477
14804
  * - Tool calls resolve connection credentials through
14478
14805
  * `resolveSandboxPluginConnections` at execution time via
14479
14806
  * `exeConfig.configurable.runConfig`.
14807
+ * - Tools declaring `ui` carry an HMAC-signed scope derived from the run
14808
+ * identity and the resolved connection, when `MCP_UI_SCOPE_SECRET` is set.
14480
14809
  * - The returned middleware is a LangChain middleware whose `tools` are one
14481
14810
  * proxy per manifest tool; handler code is never evaluated in Node.
14482
14811
  */
@@ -16108,15 +16437,20 @@ declare function createNodeHandler(node: InternalNode, resolveAgent: ResolveAgen
16108
16437
  * and compiles the resulting InternalDSL into a runnable LangGraph StateGraph.
16109
16438
  */
16110
16439
 
16440
+ /** Optional overrides for the compiled workflow graph. */
16441
+ interface CompileWorkflowOptions {
16442
+ /** Trace/run name for the root workflow graph; defaults to the YAML `name`. */
16443
+ name?: string;
16444
+ }
16111
16445
  /**
16112
16446
  * Compile a YAML workflow string into a LangGraph StateGraph.
16113
16447
  */
16114
- declare function compileWorkflow(yamlStr: string, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore): CompiledStateGraph<any, any, any, any, any>;
16448
+ declare function compileWorkflow(yamlStr: string, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore, options?: CompileWorkflowOptions): CompiledStateGraph<any, any, any, any, any>;
16115
16449
  /**
16116
16450
  * Compile an InternalDSL directly into a LangGraph StateGraph.
16117
16451
  * Used internally by compileWorkflow and for lower-level access.
16118
16452
  */
16119
- declare function compileInternal(ir: InternalDSL, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore): CompiledStateGraph<any, any, any, any, any>;
16453
+ declare function compileInternal(ir: InternalDSL, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore, options?: CompileWorkflowOptions): CompiledStateGraph<any, any, any, any, any>;
16120
16454
  interface WorkflowValidationError {
16121
16455
  type: "error" | "warning";
16122
16456
  message: string;
@@ -16632,4 +16966,4 @@ declare function parseDirectRoomType(projectId: string): "human" | "bot" | null;
16632
16966
  */
16633
16967
  declare function isDirectRoom(projectId: string): boolean;
16634
16968
 
16635
- export { type AddMessageParams, type AddMessageResult, Agent, type AgentCheckpointTip, type AgentClient, type AgentExecutor, type AgentGraphTree, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, type AgentLifecycleTapEvent, AgentRunAlreadyActiveError, type AgentRunCounts, AgentRunDuplicateMessageIdError, type AgentRunExpiredOutcome, AgentRunInputCommandConflictError, AgentRunInvalidTaskIdError, type AgentRunJsonObject, type AgentRunPendingCursor, type AgentRunRecord, type AgentRunRollbackResult, type AgentRunSource, type AgentRunStatus, AgentRunTenantQuotaExceededError, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type AppendLog, type AppendLogReader, type AppendLogRecord, type ApproveInterruptedTaskInput, type AssignTaskOwnerInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, BaseCheckpointMismatchError, type BeginAgentRunInput, type BeginRunFailure, type BeginRunInput, type BeginRunResult, type BeginRunSuccess, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, COLLECTION_CHANGED_TOPIC, type CacheEntry, type CalibrationProbe, CapabilityBundleMergeError, type CapabilityBundleMergeErrorCode, CapabilityBundleMerger, CapabilityBundleValidationError, type CapabilityBundleValidationErrorCode, type CapabilityGuardDenialCode, type CapabilityResourceSelector, type CapabilityToolMetadata, CapabilityToolNameConflictError, CapabilityToolRegistry, type CaseRunResult, ChannelConnectionLeader, type ChannelConnectionLeaderDeps, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, ChunkCursorExpiredError, type ClaimAgentRunInput, type ClaimMessagesOptions, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, type ConnectionPayloadInput, ConnectionRegistry, ConsoleLoggerClient, type CreatePendingAgentRunInput, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_MODEL_EXTRA, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DefaultScheduleClientOptions, DelegatedScopeNotQueueableError, type DelegationRequest, DelegationService, type DeleteAgentRunExpected, type DeleteResult, DependencyResolver, type DispatchPreparation, DuplicateProjectRoomMessageIdempotencyKeyError, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EmbeddingsRuntimeConfig, type EnsureMicrosandboxInput, type EvalRunService, type ExecuteRunInput, type ExecuteRunOutcome, type ExecuteRunResult, type ExecutionAuthority, ExecutionAuthorityRegistry, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GetThreadRunOwnerInput, type GrepMatch, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, type HandlerEnvelope, type HostArgs, type IAgentRunLedger, type IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentRunStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChannelReplyJobStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryLeaseStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, LeaseAcquisitionTimeoutError, type LifecycleResult, type LifecycleWarning, type ListPendingRunsOptions, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LongTermStoreConfig, type LongTermStoreMode, type LongTermStoreScope, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_HANDLER_TIMEOUT_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, MAX_TIMER_DELAY, MIN_HANDLER_TIMEOUT_MS, ManagedTaskStartError, type ManagedTaskStartOptions, type ManifestValidationResult, type McpClientFactory, type McpClientLike, type McpClientSession, type McpConnectionOptions, McpLatticeManager, type McpRegisterOptions, type McpServerId, type McpServerRuntime, type McpServerState, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MergedPluginSkills, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageInterruptedEvent, type MessageLike, type MessageStartedEvent, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type ModelRuntimeConfig, MysqlDatabase, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_MS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, type PluginDeploymentRuntimeHealth, PluginDeploymentRuntimeRegistry, type PluginDeploymentRuntimeRegistryOptions, type PluginDeploymentServiceDeployOptions, type PluginDeploymentServiceDeployResult, type PluginDeploymentServiceLike, type PluginDeploymentServiceListEntry, type PluginDeploymentServiceMode, type PluginDeploymentServiceStatus, type PluginDeploymentServiceUndeployResult, PluginRegistry, type PluginSources, type PostProcessTaskMutationResponseInput, PostgresDatabase, type PreviewError, ProjectBotMembershipIdConflictError, ProjectMutationMutex, type ProjectMutationScope, ProjectRoomMessageIdConflictError, type ProjectTaskAdmissionListener, type ProjectTaskAdmissionNotification, ProjectTaskAdmissionNotifier, type ProjectTaskAdmissionNotifierOptions, type ProjectTaskAssignmentScope, ProjectTaskOwnerPolicy, type ProjectTaskOwnerPolicyCode, ProjectTaskOwnerPolicyError, type ProjectTaskReassignmentAuthorization, type ProjectTaskReassignmentAuthorizationInput, type ProjectTaskReassignmentAuthorizer, type ProjectTaskReassignmentThreadValidationInput, type ProjectTaskReassignmentThreadValidator, type ProjectTaskRosterScope, PrometheusClient, type ProvisionFileSink, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, ROOM_COORDINATOR_KEY, type ReapedAgentRun, type ReassignProjectTaskInput, type ReconcileAllTenantTaskRunsInput, type ReconcileStaleTaskRunsInput, type ReconcileStaleTaskRunsResult, type ReconcileTaskDescriptionInput, type ReconcileTenantTaskRunsInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RepeatedToolCallBreakerOptions, RepeatedToolCallError, type ReplyReadyEvent, type ResidentConnectionConfig, type ResidentDeployment, type ResidentInvokeArgs, type ResidentInvokePayload, type ResidentInvokeResult, type ResidentRoutingDeps, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RollbackFailureResult, type RoomAgentCorrelatedInterruptInput, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunAsLeaderOptions, type RunAsLeaderResult, type RunCancelHeartbeatFallbackObserver, RunInterruptMismatchError, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxOpenClientBundle, type SandboxOpenCredential, type SandboxOpenCredentialContext, type SandboxOpenCredentialProvider, type SandboxOpenCredentialProviderOptions, SandboxPluginExecutor, type SandboxPluginExecutorDeps, type SandboxPluginInvokeArgs, type SandboxPluginResult, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxResolver, type SandboxRunConfig, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleExpiredRunOptions, type SettleRunInput, type SettleRunOutcome, type SharePayload, SharedChunkBuffer, type SharedChunkBufferOptions, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StartLifecycleResult, type StartTaskExecutionInput, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TASK_RESPONSE_FINAL_WARNING_LIMIT, TASK_RESPONSE_PRIOR_WARNING_LIMIT, TASK_RESPONSE_SCALAR_MAX_BYTES, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskAgentInvocation, type TaskExecutionFailure, type TaskExecutionManaged, type TaskExecutionResult, type TaskExecutionServiceDeps, type TaskExecutionSuccess, type TaskLifecycleListener, type TaskLifecycleNotification, TaskLifecycleNotifier, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskLivenessProbe, type TaskResponseParseResult, type TaskRunBridge, type TaskRunBridgeDeps, TaskRunBridgeStoresRequiredError, type TaskRunLeaseHandle, TaskRunRegistry, TenantPluginCatalog, type TenantPluginCatalogDeps, type TenantPlugins, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadEndCode, ThreadEndError, ThreadEventsUnavailableError, ThreadExecutionSupervisor, type ThreadExecutionSupervisorAgent, type ThreadExecutionSupervisorAgentParams, type ThreadExecutionSupervisorOptions, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadRunLeaseHandle, type ThreadRunOwnerProbe, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ThreadStreamRecord, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type TryAcquireTaskRunInput, type TryAcquireThreadRunInput, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, UnsupportedModelProviderError, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WithLeaseOptions, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, assertQueueSources, assertSafeUpstreamUrl, buildBundleFromDist, buildConnectionPayload, buildGrepResultsDict, buildHandlerCommand, buildInput, buildModelConfig, buildModelEmbeddingsConfig, buildModelLlmConfig, buildModelSttConfig, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSandboxOpenEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, canConvergeOrphan, checkEmptyContent, chunkBufferStreamKey, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCollectionSync, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createLongTermStoreMiddleware, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProjectRoomMiddleware, createProjectTaskOwnerPolicy, createProjectTaskReassignmentAuthorizer, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createRepeatedToolCallBreakerMiddleware, createResourceAddress, createSandboxProvider, createSandboxResolver, createSchedulerMiddleware, createSharePayload, createShellExecTool, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTaskRunLiveness, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, decryptConfigFields, delegationService, describeCronExpression, disconnectAllChannels, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encodeInput, encrypt, encryptConfigFields, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAgentRunInputMessageIds, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, handlerResultText, hasChunkBuffer, hasDelegatedWorkerToken, hasModelLatticeForTenant, hasModelLatticeForTenantSync, hasRuntimeCapabilityPolicy, installPluginHost, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isEncryptedValue, isMcpConnectionError, isOfficialInterruptId, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isTaskRunLeaseHeld, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listModelLatticesForTenant, listSandboxProviderTypes, listTenantPlugins, loggerLatticeManager, longTermStorePlugin, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeAgentInterrupts, normalizeAgentRunMessageIds, normalizeSandboxName, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseHandlerEnvelope, parseHostArgs, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, pluginHostContentHash, postProcessTaskMutationResponse, prepareTaskDispatch, probeThreadRunOwner, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishCollectionChanged, publishPluginCatalogChanged, queueLatticeManager, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveStartIndex, resolveTenantPluginSkill, roomCoordinatorConfig, runAsLeader, runRemotePackDirectory, safeDecrypt, safeTaskResponseId, sandboxLatticeManager, sanitizeCallerRunConfig, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setAgentLifecycleTap, setBindingRegistry, setEvalRunService, setMenuRegistry, setPluginDeploymentService, setRunCancelHeartbeatFallbackObserver, setSandboxPluginCatalog, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunLeaseKey, taskRunRegistry, threadRunLeaseKey, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, tryAcquireTaskRun, tryAcquireThreadRun, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, withLease, withTimeout, wrapMcpToolWithUi };
16969
+ export { type AddMessageParams, type AddMessageResult, Agent, type AgentCheckpointTip, type AgentClient, type AgentExecutor, type AgentGraphTree, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, type AgentLifecycleTapEvent, AgentRunAlreadyActiveError, type AgentRunCounts, AgentRunDuplicateMessageIdError, type AgentRunExpiredOutcome, AgentRunInputCommandConflictError, AgentRunInvalidTaskIdError, type AgentRunJsonObject, type AgentRunPendingCursor, type AgentRunRecord, type AgentRunRollbackResult, type AgentRunSource, type AgentRunStatus, AgentRunTenantQuotaExceededError, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type AppendLog, type AppendLogReader, type AppendLogRecord, type ApproveInterruptedTaskInput, type AssignTaskOwnerInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, BaseCheckpointMismatchError, type BeginAgentRunInput, type BeginRunFailure, type BeginRunInput, type BeginRunResult, type BeginRunSuccess, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, COLLECTION_CHANGED_TOPIC, type CacheEntry, type CalibrationProbe, CapabilityBundleMergeError, type CapabilityBundleMergeErrorCode, CapabilityBundleMerger, CapabilityBundleValidationError, type CapabilityBundleValidationErrorCode, type CapabilityGuardDenialCode, type CapabilityResourceSelector, type CapabilityToolMetadata, CapabilityToolNameConflictError, CapabilityToolRegistry, type CaseRunResult, ChannelConnectionLeader, type ChannelConnectionLeaderDeps, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, ChunkCursorExpiredError, type ClaimAgentRunInput, type ClaimMessagesOptions, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, type ConnectionPayloadInput, ConnectionRegistry, ConsoleLoggerClient, type CreatePendingAgentRunInput, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_MODEL_EXTRA, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DefaultScheduleClientOptions, DelegatedScopeNotQueueableError, type DelegationRequest, DelegationService, type DeleteAgentRunExpected, type DeleteResult, DependencyResolver, type DispatchPreparation, DuplicateProjectRoomMessageIdempotencyKeyError, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EmbeddingsRuntimeConfig, type EnsureMicrosandboxInput, type EvalRunService, type ExecuteRunInput, type ExecuteRunOutcome, type ExecuteRunResult, type ExecutionAuthority, ExecutionAuthorityRegistry, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GetThreadRunOwnerInput, type GrepMatch, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, type HandlerEnvelope, type HostArgs, type IAgentRunLedger, type IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentRunStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChannelReplyJobStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryLeaseStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, LeaseAcquisitionTimeoutError, type LifecycleResult, type LifecycleWarning, type ListPendingRunsOptions, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LongTermStoreConfig, type LongTermStoreMode, type LongTermStoreScope, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_HANDLER_TIMEOUT_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, MAX_TIMER_DELAY, MIN_HANDLER_TIMEOUT_MS, ManagedTaskStartError, type ManagedTaskStartOptions, type ManifestValidationResult, type McpClientFactory, type McpClientLike, type McpClientSession, type McpConnectionOptions, McpLatticeManager, type McpRegisterOptions, type McpServerId, type McpServerRuntime, type McpServerState, type McpUiScopeInput, type McpUiScopePayload, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MergedPluginSkills, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageInterruptedEvent, type MessageLike, type MessageStartedEvent, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type ModelRuntimeConfig, MysqlDatabase, ObservabilityDashboardUnavailableError, ObservabilityDashboardUnsupportedError, ObservabilityLatticeManager, type ObservabilityObservation, type ObservabilityObservationType, type ObservabilityProvider, type ObservabilityProviderCapabilities, type ObservabilityTraceContext, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_MS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, type PluginDeploymentRuntimeHealth, PluginDeploymentRuntimeRegistry, type PluginDeploymentRuntimeRegistryOptions, type PluginDeploymentServiceDeployOptions, type PluginDeploymentServiceDeployResult, type PluginDeploymentServiceLike, type PluginDeploymentServiceListEntry, type PluginDeploymentServiceMode, type PluginDeploymentServiceStatus, type PluginDeploymentServiceUndeployResult, PluginRegistry, type PluginSources, type PostProcessTaskMutationResponseInput, PostgresDatabase, type PreviewError, ProjectBotMembershipIdConflictError, ProjectMutationMutex, type ProjectMutationScope, ProjectRoomMessageIdConflictError, type ProjectTaskAdmissionListener, type ProjectTaskAdmissionNotification, ProjectTaskAdmissionNotifier, type ProjectTaskAdmissionNotifierOptions, type ProjectTaskAssignmentScope, ProjectTaskOwnerPolicy, type ProjectTaskOwnerPolicyCode, ProjectTaskOwnerPolicyError, type ProjectTaskReassignmentAuthorization, type ProjectTaskReassignmentAuthorizationInput, type ProjectTaskReassignmentAuthorizer, type ProjectTaskReassignmentThreadValidationInput, type ProjectTaskReassignmentThreadValidator, type ProjectTaskRosterScope, PrometheusClient, type ProvisionFileSink, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, ROOM_COORDINATOR_KEY, type ReapedAgentRun, type ReassignProjectTaskInput, type ReconcileAllTenantTaskRunsInput, type ReconcileStaleTaskRunsInput, type ReconcileStaleTaskRunsResult, type ReconcileTaskDescriptionInput, type ReconcileTenantTaskRunsInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RepeatedToolCallBreakerOptions, RepeatedToolCallError, type ReplyReadyEvent, type ResidentConnectionConfig, type ResidentDeployment, type ResidentInvokeArgs, type ResidentInvokePayload, type ResidentInvokeResult, type ResidentRoutingDeps, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RollbackFailureResult, type RoomAgentCorrelatedInterruptInput, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunAsLeaderOptions, type RunAsLeaderResult, type RunCancelHeartbeatFallbackObserver, RunInterruptMismatchError, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxOpenClientBundle, type SandboxOpenCredential, type SandboxOpenCredentialContext, type SandboxOpenCredentialProvider, type SandboxOpenCredentialProviderOptions, SandboxPluginExecutor, type SandboxPluginExecutorDeps, type SandboxPluginInvokeArgs, type SandboxPluginResult, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxResolver, type SandboxRunConfig, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleExpiredRunOptions, type SettleRunInput, type SettleRunOutcome, type SharePayload, SharedChunkBuffer, type SharedChunkBufferOptions, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StartLifecycleResult, type StartTaskExecutionInput, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TASK_RESPONSE_FINAL_WARNING_LIMIT, TASK_RESPONSE_PRIOR_WARNING_LIMIT, TASK_RESPONSE_SCALAR_MAX_BYTES, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskAgentInvocation, type TaskExecutionFailure, type TaskExecutionManaged, type TaskExecutionResult, type TaskExecutionServiceDeps, type TaskExecutionSuccess, type TaskLifecycleListener, type TaskLifecycleNotification, TaskLifecycleNotifier, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskLivenessProbe, type TaskResponseParseResult, type TaskRunBridge, type TaskRunBridgeDeps, TaskRunBridgeStoresRequiredError, type TaskRunLeaseHandle, TaskRunRegistry, TenantPluginCatalog, type TenantPluginCatalogDeps, type TenantPlugins, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadEndCode, ThreadEndError, ThreadEventsUnavailableError, ThreadExecutionSupervisor, type ThreadExecutionSupervisorAgent, type ThreadExecutionSupervisorAgentParams, type ThreadExecutionSupervisorOptions, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadRunLeaseHandle, type ThreadRunOwnerProbe, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ThreadStreamRecord, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type TryAcquireTaskRunInput, type TryAcquireThreadRunInput, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, UnsupportedModelProviderError, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WithLeaseOptions, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, assertQueueSources, assertSafeUpstreamUrl, buildBundleFromDist, buildConnectionPayload, buildGrepResultsDict, buildHandlerCommand, buildInput, buildModelConfig, buildModelEmbeddingsConfig, buildModelLlmConfig, buildModelSttConfig, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSandboxOpenEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, canConvergeOrphan, channelShardForInstallation, checkEmptyContent, chunkBufferStreamKey, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCollectionSync, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createLongTermStoreMiddleware, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProjectRoomMiddleware, createProjectTaskOwnerPolicy, createProjectTaskReassignmentAuthorizer, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createRepeatedToolCallBreakerMiddleware, createResourceAddress, createSandboxProvider, createSandboxResolver, createSchedulerMiddleware, createSharePayload, createShellExecTool, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTaskRunLiveness, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, decryptConfigFields, delegationService, describeCronExpression, disconnectAllChannels, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encodeInput, encrypt, encryptConfigFields, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAgentRunInputMessageIds, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMcpUiScopeSecret, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, handlerResultText, hasChunkBuffer, hasDelegatedWorkerToken, hasModelLatticeForTenant, hasModelLatticeForTenantSync, hasRuntimeCapabilityPolicy, installPluginHost, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isEncryptedValue, isMcpConnectionError, isOfficialInterruptId, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isTaskRunLeaseHeld, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listModelLatticesForTenant, listSandboxProviderTypes, listTenantPlugins, loggerLatticeManager, longTermStorePlugin, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeAgentInterrupts, normalizeAgentRunMessageIds, normalizeSandboxName, observabilityLatticeManager, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseHandlerEnvelope, parseHostArgs, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, pluginHostContentHash, postProcessTaskMutationResponse, prepareTaskDispatch, probeThreadRunOwner, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishCollectionChanged, publishPluginCatalogChanged, queueLatticeManager, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerObservabilityLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolveObservabilityCallbacks, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveStartIndex, resolveTenantPluginSkill, roomCoordinatorConfig, runAsLeader, runRemotePackDirectory, safeDecrypt, safeTaskResponseId, sandboxLatticeManager, sanitizeCallerRunConfig, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setAgentLifecycleTap, setBindingRegistry, setDefaultObservabilityLattice, setEvalRunService, setMenuRegistry, setPluginDeploymentService, setRunCancelHeartbeatFallbackObserver, setSandboxPluginCatalog, signMcpUiScope, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunLeaseKey, taskRunRegistry, threadRunLeaseKey, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, tryAcquireTaskRun, tryAcquireThreadRun, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, verifyMcpUiScope, withLease, withTimeout, wrapMcpToolWithUi };