@axiom-lattice/core 9.0.0 → 10.0.1

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.mts 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';
@@ -534,11 +534,84 @@ declare function buildModelLlmConfig(provider: ModelProviderEntry, model: ModelP
534
534
  * never name a process environment variable to read a credential from.
535
535
  */
536
536
 
537
+ /**
538
+ * How an embedding upstream's request and response are shaped.
539
+ *
540
+ * - `openai` — `{ model, input }` → `data[].embedding`
541
+ * - `contents` — `{ model, input: { contents: [{ text }] } }` →
542
+ * `output.embeddings[].embedding`
543
+ * - `texts` — `{ model, input: { texts } }` → `output.embeddings[].embedding`
544
+ *
545
+ * `contents` and `texts` share a response and differ only in how inputs are
546
+ * wrapped, which is why one adapter speaks both.
547
+ */
548
+ type EmbeddingShape = "openai" | "contents" | "texts";
549
+ /**
550
+ * The native multimodal embedding path, relative to the provider's origin.
551
+ *
552
+ * Named as a default rather than a vendor branch: the *shape* decides the
553
+ * request/response handling, the path only says where. Another upstream with the
554
+ * same shape but a different path sets `extra.embeddingPath`.
555
+ */
556
+ declare const DEFAULT_CONTENTS_EMBEDDING_PATH = "/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding";
557
+ /**
558
+ * The native text-embedding path, relative to the provider's origin.
559
+ *
560
+ * Same story as `DEFAULT_CONTENTS_EMBEDDING_PATH`: the path is a default for
561
+ * the `texts` shape, overridable through `extra.embeddingPath`.
562
+ */
563
+ declare const DEFAULT_TEXTS_EMBEDDING_PATH = "/api/v1/services/embeddings/text-embedding/text-embedding";
564
+ /**
565
+ * Pick the wire shape for an embedding model.
566
+ *
567
+ * Explicit config wins. Otherwise a path that points at a native services
568
+ * endpoint implies its shape (`text-embedding` → `texts`, the rest →
569
+ * `contents`), then a model id that names a multimodal embedding implies
570
+ * `contents`, then the OpenAI-compatible default.
571
+ *
572
+ * A text embedding model id deliberately does **not** imply `texts`: the same
573
+ * model (`text-embedding-v4`) is normally served by the OpenAI-compatible
574
+ * surface, so only an explicit `embeddingPath` or `embeddingShape` should move
575
+ * it to the native endpoint.
576
+ *
577
+ * @param modelId - The upstream model id
578
+ * @param extra - The model's per-model config (untyped)
579
+ */
580
+ declare function resolveEmbeddingShape(modelId: string, extra: Record<string, unknown>): EmbeddingShape;
581
+ /**
582
+ * Shapes to try, in order, when a probe fails with a shape-shaped error.
583
+ *
584
+ * The first entry is always the shape the config resolved to. The alternates
585
+ * are ordered by how likely they are to be the tenant's real endpoint:
586
+ *
587
+ * - from `openai`, a text embedding model is likelier to be served natively as
588
+ * `texts`; a multimodal one, and one whose id says nothing, as `contents`
589
+ * (the historical fallback);
590
+ * - between the two service shapes the response is identical, so only the
591
+ * endpoint (and therefore the body) differs.
592
+ *
593
+ * Only probe negotiation uses this: the runtime never guesses, it uses the
594
+ * configured shape or the one a probe persisted.
595
+ */
596
+ declare function embeddingProbeCandidates(initial: EmbeddingShape, modelId: string): EmbeddingShape[];
597
+ /**
598
+ * The endpoint that pairs with a shape.
599
+ *
600
+ * `openai` mirrors what `OpenAIEmbeddings` appends to `configuration.baseURL`,
601
+ * so the Test button probes the exact URL the runtime will call. The two
602
+ * service shapes keep the request on the provider's origin; only a path (never
603
+ * a full URL) is accepted from `extra`.
604
+ *
605
+ * A configured path is used only with the shape it implies. Otherwise probe
606
+ * negotiation would post the `contents` body to the `text-embedding` path (or
607
+ * the reverse), which can only fail and would hide the real error.
608
+ */
609
+ declare function resolveEmbeddingEndpoint(baseURL: string, shape: EmbeddingShape, extra: Record<string, unknown>): string;
537
610
  /**
538
611
  * Runtime config for an embedding model.
539
612
  *
540
- * Shaped for `new OpenAIEmbeddings({...})`: the same fields, with the base URL
541
- * tucked into its `configuration` option by the caller.
613
+ * Shaped for `new OpenAIEmbeddings({...})` for the `openai` shape, and for the
614
+ * shape adapter for `contents` and `texts`.
542
615
  */
543
616
  interface EmbeddingsRuntimeConfig {
544
617
  model: string;
@@ -552,6 +625,10 @@ interface EmbeddingsRuntimeConfig {
552
625
  * exists to prevent. A non-empty placeholder keeps that from happening.
553
626
  */
554
627
  apiKey: string;
628
+ /** Request/response shape, vendor-neutral. */
629
+ shape: EmbeddingShape;
630
+ /** The URL the runtime POSTs to (same origin as the provider). */
631
+ endpoint: string;
555
632
  dimensions?: number;
556
633
  timeout?: number;
557
634
  batchSize?: number;
@@ -677,6 +754,52 @@ declare function hasModelLatticeForTenantSync(tenantId: string, modelKey: string
677
754
  */
678
755
  declare function listModelLatticesForTenant(tenantId: string): ModelLatticeInterface[];
679
756
 
757
+ /**
758
+ * The token threshold at which the summarization middleware compacts history.
759
+ *
760
+ * It used to be the literal `170_000` in three places, which silently assumed a
761
+ * 200k-token window: on a 32k model it never fired before the upstream rejected
762
+ * the request, and on a 1M model it compacted far too early. The number is now
763
+ * derived from the tenant's own `contextWindow`, with the old constant as the
764
+ * fallback for models whose window nobody declared.
765
+ *
766
+ * `fraction` cannot be used for this. `summarizationMiddleware` resolves
767
+ * fractional triggers through `getProfileLimits`, which only understands
768
+ * `profile.maxInputTokens` or a model name string from its built-in table —
769
+ * `ModelLattice` has neither, and the middleware throws rather than falling
770
+ * back. So the ratio is applied here, once, to an absolute token count.
771
+ */
772
+ /** Used when a model does not declare `contextWindow`. */
773
+ declare const DEFAULT_SUMMARIZATION_TRIGGER_TOKENS = 170000;
774
+ /**
775
+ * How much of the window history may occupy before it is compacted.
776
+ *
777
+ * The remaining headroom covers what the counter does not see: the completion
778
+ * (`maxTokens`), tool schemas (only messages are counted), the error in
779
+ * `countTokensApproximately` — which divides every character by four and so
780
+ * *underestimates* Chinese text — and the summarization request itself.
781
+ * `0.85 × 200k = 170k`, i.e. this reproduces the constant it replaces.
782
+ */
783
+ declare const SUMMARIZATION_TRIGGER_RATIO = 0.85;
784
+ /**
785
+ * The input window a model declares, if any.
786
+ *
787
+ * Two sources, in order: a `ModelLattice` config's `contextWindow` (what a
788
+ * tenant sets in the model's `extra`) and LangChain's standard
789
+ * `profile.maxInputTokens` (what a provider class may declare).
790
+ *
791
+ * @param model - A model instance, possibly wrapped in a binding
792
+ * @returns A positive token count, or undefined when the model declares none
793
+ */
794
+ declare function readContextWindow(model: unknown): number | undefined;
795
+ /**
796
+ * The absolute token count to hand to `summarizationMiddleware`.
797
+ *
798
+ * @param model - The model the summary will be produced with
799
+ * @returns `floor(contextWindow × 0.85)`, or the default when none is declared
800
+ */
801
+ declare function resolveSummarizationTriggerTokens(model?: unknown): number;
802
+
680
803
  /**
681
804
  * SQL Tool Types
682
805
  * Type definitions for SQL database tools
@@ -3452,6 +3575,16 @@ declare class DefaultScheduleClient implements ScheduleClient {
3452
3575
  getActiveTaskIds(): Promise<string[]>;
3453
3576
  cancelAll(): Promise<void>;
3454
3577
  restore(): Promise<number>;
3578
+ /**
3579
+ * Reconcile this replica's timers with the shared schedule store.
3580
+ *
3581
+ * @remarks Safe to call periodically and on every replica. Execution still
3582
+ * goes through `claimScheduledRun`, so duplicate timer fires execute once.
3583
+ */
3584
+ reconcile(): Promise<number>;
3585
+ private clearTimer;
3586
+ private clearAllTimers;
3587
+ private reconcileTimers;
3455
3588
  setStorage(storage: ScheduleStorage): void;
3456
3589
  getStorage(): ScheduleStorage | null;
3457
3590
  private scheduleTimer;
@@ -7826,6 +7959,76 @@ declare function withTimeout<T>(operation: Promise<T>, ms: number, onTimeout: ()
7826
7959
  */
7827
7960
  declare function convertToConnection(config: McpServerConfig): Connection;
7828
7961
 
7962
+ /** Signed payload carried by an MCP App plugin ref. Contains no secrets. */
7963
+ interface McpUiScopePayload {
7964
+ /** Token version; currently always 1. */
7965
+ v: 1;
7966
+ /** Authenticated tenant; must equal the request tenant. */
7967
+ tid: string;
7968
+ /** Thread that produced the tool result. */
7969
+ thid?: string;
7970
+ /** Assistant that produced the tool result. */
7971
+ aid?: string;
7972
+ /** Run workspace. */
7973
+ wid?: string;
7974
+ /** Run project. */
7975
+ pid?: string;
7976
+ /** Plugin type; must equal the ref's `pluginType`. */
7977
+ plugin: string;
7978
+ /** UI resource; must equal the ref's `resource`. */
7979
+ resource: string;
7980
+ /** Selected connection key, if the run selected one. */
7981
+ ck?: string;
7982
+ /** Issue time (Unix seconds). Audit only; not used for expiry. */
7983
+ iat: number;
7984
+ /** Random id for audit/correlation; not stored or checked for uniqueness. */
7985
+ jti: string;
7986
+ }
7987
+ /** Input accepted by {@link signMcpUiScope}. */
7988
+ type McpUiScopeInput = Omit<McpUiScopePayload, "v" | "iat" | "jti"> & Partial<Pick<McpUiScopePayload, "iat" | "jti">>;
7989
+ /**
7990
+ * Read the configured signing secret.
7991
+ *
7992
+ * @returns The explicit `MCP_UI_SCOPE_SECRET` when it is at least 32
7993
+ * characters; otherwise a 32-byte key derived from the shared
7994
+ * `LATTICE_ENCRYPTION_KEY` with HKDF domain separation. Returns `undefined`
7995
+ * when no usable source exists.
7996
+ * @remarks
7997
+ * - An explicitly configured but too-short `MCP_UI_SCOPE_SECRET` fails closed
7998
+ * (it does not fall back), so misconfiguration is visible.
7999
+ * - The derived fallback means rotating `LATTICE_ENCRYPTION_KEY` invalidates
8000
+ * existing pinned scopes. Set `MCP_UI_SCOPE_SECRET` to rotate independently.
8001
+ */
8002
+ declare function getMcpUiScopeSecret(): string | undefined;
8003
+ /**
8004
+ * Sign a scope payload for a plugin UI ref.
8005
+ *
8006
+ * @param input - Run identity, plugin/resource, and selected connection key.
8007
+ * @param secret - Signing secret; defaults to {@link getMcpUiScopeSecret}.
8008
+ * @returns `base64url(payload) + "." + base64url(HMAC-SHA256)`, or `undefined`
8009
+ * when the secret/payload is unusable.
8010
+ * @example
8011
+ * ```ts
8012
+ * const token = signMcpUiScope({ tid, plugin, resource, ck: connectionKey });
8013
+ * ```
8014
+ * @remarks The payload is readable base64url JSON; never put credentials in it.
8015
+ */
8016
+ declare function signMcpUiScope(input: McpUiScopeInput, secret?: string | undefined): string | undefined;
8017
+ /**
8018
+ * Verify a scope token and return its payload.
8019
+ *
8020
+ * @param token - The opaque `scope` string from a plugin ref.
8021
+ * @param secret - Signing secret; defaults to {@link getMcpUiScopeSecret}.
8022
+ * @returns The validated payload, or `null` for any malformed/invalid token.
8023
+ * @example
8024
+ * ```ts
8025
+ * const payload = verifyMcpUiScope(token, secret);
8026
+ * if (!payload) throw new Error("invalid scope");
8027
+ * ```
8028
+ * @remarks Does not check `ck` against the Connection Store; the gateway does.
8029
+ */
8030
+ declare function verifyMcpUiScope(token: string | undefined, secret?: string | undefined): McpUiScopePayload | null;
8031
+
7829
8032
  /**
7830
8033
  * Extract an MCP Apps UI ref from a tool's raw `_meta`.
7831
8034
  *
@@ -7885,7 +8088,8 @@ declare function appendUiFence(content: unknown, ref: McpUiRef): string | unknow
7885
8088
  * an array (see {@link appendUiFence}) so non-text blocks are never dropped.
7886
8089
  *
7887
8090
  * The fence carries only the UI ref identity (server key, resource URI,
7888
- * display mode, title). MCP rich results (`structuredContent`, `_meta`,
8091
+ * display mode, title) for MCP refs; plugin refs may additionally carry a
8092
+ * signed `scope`. MCP rich results (`structuredContent`, `_meta`,
7889
8093
  * non-text blocks) stay on the raw tool result / `artifact`, which the client
7890
8094
  * merger normalizes into `ToolCall.ui` — the fence must not duplicate them.
7891
8095
  *
@@ -8828,6 +9032,188 @@ declare function buildSandboxOpenEnv(credential: SandboxOpenCredential): string;
8828
9032
  /** @internal */
8829
9033
  declare function clearSandboxOpenCredentialProviderForTests(): void;
8830
9034
 
9035
+ /**
9036
+ * Raised when a provider supports dashboards but the backend version does not.
9037
+ */
9038
+ declare class ObservabilityDashboardUnsupportedError extends Error {
9039
+ /**
9040
+ * @param message - Stable diagnostic message.
9041
+ */
9042
+ constructor(message?: string);
9043
+ }
9044
+ /**
9045
+ * Raised when the provider cannot reach its dashboard backend.
9046
+ */
9047
+ declare class ObservabilityDashboardUnavailableError extends Error {
9048
+ /**
9049
+ * @param message - Stable diagnostic message.
9050
+ */
9051
+ constructor(message?: string);
9052
+ }
9053
+ /**
9054
+ * Langfuse-compatible observation kinds; custom providers may use a subset.
9055
+ */
9056
+ type ObservabilityObservationType = "span" | "generation" | "event" | "agent" | "tool" | "chain" | "retriever" | "embedding" | "guardrail" | "evaluator";
9057
+ /**
9058
+ * Correlation context available for one Agent invocation.
9059
+ */
9060
+ interface ObservabilityTraceContext {
9061
+ tenantId: string;
9062
+ projectId?: string;
9063
+ workspaceId?: string;
9064
+ assistantId: string;
9065
+ threadId: string;
9066
+ runId: string;
9067
+ taskId?: string;
9068
+ userId?: string;
9069
+ source?: string;
9070
+ traceName?: string;
9071
+ tags?: string[];
9072
+ metadata?: Record<string, unknown>;
9073
+ }
9074
+ /**
9075
+ * Provider capabilities used by the host and future UI.
9076
+ */
9077
+ interface ObservabilityProviderCapabilities {
9078
+ autoCallbacks: boolean;
9079
+ customObservations: boolean;
9080
+ scores: boolean;
9081
+ sessions: boolean;
9082
+ promptManagement: boolean;
9083
+ }
9084
+ /**
9085
+ * Vendor-neutral observability provider contract.
9086
+ *
9087
+ * A provider is registered under a key in the {@link ObservabilityLatticeManager}
9088
+ * and exposes LangChain-compatible callback handlers for one Agent invocation.
9089
+ * Observability must never break execution, so implementations should be
9090
+ * defensive: the manager swallows callback-resolution failures.
9091
+ */
9092
+ interface ObservabilityProvider {
9093
+ readonly type: string;
9094
+ readonly capabilities: ObservabilityProviderCapabilities;
9095
+ start?(): void | Promise<void>;
9096
+ stop?(): void | Promise<void>;
9097
+ /**
9098
+ * Creates callback handlers correlated to the supplied invocation context.
9099
+ *
9100
+ * @param context Trace correlation fields for the running Agent invocation.
9101
+ * @returns Callback handlers, or `undefined`/empty when tracing is disabled.
9102
+ */
9103
+ createCallbacks(context: ObservabilityTraceContext): readonly unknown[] | undefined;
9104
+ /**
9105
+ * Returns a provider-owned dashboard payload for the selected tenant.
9106
+ *
9107
+ * @param input - Time range and server-resolved tenant scope.
9108
+ * @returns The provider-owned payload and its version.
9109
+ */
9110
+ getDashboard?(input: ObservabilityDashboardInput): Promise<ObservabilityDashboardResult>;
9111
+ /** Returns the provider UI's trace-list URL, if it has one. */
9112
+ getTraceListUrl?(): string | undefined;
9113
+ /** Builds a provider UI URL for a single trace id, if supported. */
9114
+ getTraceUrl?(traceId: string): string | undefined;
9115
+ }
9116
+ /**
9117
+ * Normalized observation contract for future custom-span providers.
9118
+ */
9119
+ interface ObservabilityObservation {
9120
+ id: string;
9121
+ traceId: string;
9122
+ parentId?: string;
9123
+ type: ObservabilityObservationType;
9124
+ name: string;
9125
+ startTime: Date;
9126
+ endTime?: Date;
9127
+ input?: unknown;
9128
+ output?: unknown;
9129
+ model?: string;
9130
+ modelParameters?: Record<string, unknown>;
9131
+ usageDetails?: Record<string, number>;
9132
+ costDetails?: Record<string, number>;
9133
+ level?: "DEBUG" | "DEFAULT" | "WARNING" | "ERROR";
9134
+ statusMessage?: string;
9135
+ metadata?: Record<string, unknown>;
9136
+ }
9137
+
9138
+ /**
9139
+ * Singleton registry of observability providers.
9140
+ *
9141
+ * Providers are registered under a key; exactly one key (default `"default"`)
9142
+ * is selected as the active default. When no provider is registered, or the
9143
+ * selected provider is missing/failing, observability is a no-op.
9144
+ *
9145
+ * @example
9146
+ * ```ts
9147
+ * ObservabilityLatticeManager.getInstance().registerLattice("default", provider);
9148
+ * ObservabilityLatticeManager.getInstance().setDefault("default");
9149
+ * ```
9150
+ *
9151
+ * @remarks
9152
+ * - Registration must happen before the first Agent invocation that should be traced.
9153
+ * - Provider callback creation is resolved through {@link resolveObservabilityCallbacks}.
9154
+ */
9155
+ declare class ObservabilityLatticeManager extends BaseLatticeManager<ObservabilityProvider> {
9156
+ private static instance;
9157
+ private defaultKey;
9158
+ /** Returns the process-wide singleton manager. */
9159
+ static getInstance(): ObservabilityLatticeManager;
9160
+ protected getLatticeType(): string;
9161
+ /** Registers a provider under a caller-chosen key. */
9162
+ registerLattice(key: string, provider: ObservabilityProvider): void;
9163
+ /**
9164
+ * Returns the provider registered under `key`.
9165
+ *
9166
+ * @throws Error when no provider is registered under `key`.
9167
+ */
9168
+ getObservabilityLattice(key: string): ObservabilityProvider;
9169
+ /** Returns whether a provider is registered under `key`. */
9170
+ hasLattice(key: string): boolean;
9171
+ /**
9172
+ * Removes the provider under `key`.
9173
+ *
9174
+ * @returns `true` when a provider was removed. Removing the active default
9175
+ * falls back to the `"default"` key.
9176
+ */
9177
+ removeLattice(key: string): boolean;
9178
+ /** Removes all providers and resets the active default. */
9179
+ clear(): void;
9180
+ /**
9181
+ * Selects the provider used for new invocations.
9182
+ *
9183
+ * @throws Error when no provider is registered under `key`.
9184
+ */
9185
+ setDefault(key: string): void;
9186
+ /** Returns the key of the active default provider. */
9187
+ getDefaultKey(): string;
9188
+ /** Returns the active default provider, if registered. */
9189
+ getDefault(): ObservabilityProvider | undefined;
9190
+ }
9191
+ /** Process-wide singleton observability provider registry. */
9192
+ declare const observabilityLatticeManager: ObservabilityLatticeManager;
9193
+ /**
9194
+ * Registers an observability provider under a key.
9195
+ *
9196
+ * @example
9197
+ * ```ts
9198
+ * registerObservabilityLattice("default", provider);
9199
+ * ```
9200
+ */
9201
+ declare function registerObservabilityLattice(key: string, provider: ObservabilityProvider): void;
9202
+ /**
9203
+ * Selects the default observability provider used for new invocations.
9204
+ *
9205
+ * @throws Error when `key` is not registered.
9206
+ */
9207
+ declare function setDefaultObservabilityLattice(key: string): void;
9208
+ /**
9209
+ * Resolves callbacks from the selected default provider.
9210
+ * A misbehaving provider must never break Agent execution.
9211
+ *
9212
+ * @param context Trace correlation fields for the running Agent invocation.
9213
+ * @returns A fresh array of callback handlers; empty when unavailable.
9214
+ */
9215
+ declare function resolveObservabilityCallbacks(context: ObservabilityTraceContext): unknown[];
9216
+
8831
9217
  /**
8832
9218
  * Channel connection lifecycle.
8833
9219
  *
@@ -8864,10 +9250,24 @@ interface ChannelConnectionLeaderDeps {
8864
9250
  leaseStore: LeaseStore;
8865
9251
  /** Stable this-replica id (e.g. `getReplicaId()`). */
8866
9252
  owner: string;
8867
- /** Establish all enabled channel connections. */
8868
- connect: () => Promise<void>;
8869
- /** Tear down all channel connections. */
8870
- disconnect: () => Promise<void>;
9253
+ /** Legacy mode: establish all enabled channel connections. */
9254
+ connect?: () => Promise<void>;
9255
+ /** Legacy mode: tear down all channel connections. */
9256
+ disconnect?: () => Promise<void>;
9257
+ /** Reconcile mode: read the desired installations from the shared store. */
9258
+ loadDesired?: () => Promise<ChannelInstallation[]>;
9259
+ /** Reconcile mode: establish one installation connection. */
9260
+ connectInstallation?: (installation: ChannelInstallation) => Promise<void>;
9261
+ /** Reconcile mode: tear down one installation connection. */
9262
+ disconnectInstallation?: (installation: ChannelInstallation) => Promise<void>;
9263
+ /** Reconcile mode: stable config fingerprint used to detect changes. */
9264
+ fingerprint?: (installation: ChannelInstallation) => string;
9265
+ /** Shard index (default 0). */
9266
+ shard?: number;
9267
+ /** Shard count (default 1). Must match on every replica. */
9268
+ shardCount?: number;
9269
+ /** Lease key override; defaults to the shard-aware channel lease. */
9270
+ leaseKey?: string;
8871
9271
  /** Lease TTL in ms (default 60_000). */
8872
9272
  ttlMs?: number;
8873
9273
  /** Retry/health interval in ms (default max(5_000, floor(ttlMs / 3))). */
@@ -8877,6 +9277,8 @@ interface ChannelConnectionLeaderDeps {
8877
9277
  warn(message: string, context: Record<string, unknown>): void;
8878
9278
  };
8879
9279
  }
9280
+ /** Stable installation-to-shard mapping shared by every replica. */
9281
+ declare function channelShardForInstallation(installationId: string, shardCount: number): number;
8880
9282
  /**
8881
9283
  * Long-lived single-owner gate for persistent channel connections.
8882
9284
  *
@@ -8900,7 +9302,13 @@ declare class ChannelConnectionLeader {
8900
9302
  private readonly deps;
8901
9303
  private readonly ttlMs;
8902
9304
  private readonly retryMs;
9305
+ private readonly shard;
9306
+ private readonly shardCount;
9307
+ private readonly leaseKey;
9308
+ private readonly reconciler;
9309
+ private readonly active;
8903
9310
  private holder;
9311
+ private renewFailures;
8904
9312
  private connected;
8905
9313
  private attempted;
8906
9314
  private inFlight;
@@ -8908,6 +9316,12 @@ declare class ChannelConnectionLeader {
8908
9316
  private running;
8909
9317
  private stopped;
8910
9318
  constructor(deps: ChannelConnectionLeaderDeps);
9319
+ /** Whether this shard owns an installation id. */
9320
+ owns(installationId: string): boolean;
9321
+ /** Wake the current leader so it reconciles the shared desired state. */
9322
+ wake(): void;
9323
+ /** Reconcile now when this instance currently holds the lease. */
9324
+ reconcile(): Promise<void>;
8911
9325
  /** Starts the ownership loop (immediate tick, then every `retryMs`). */
8912
9326
  start(): void;
8913
9327
  /**
@@ -8935,6 +9349,12 @@ declare class ChannelConnectionLeader {
8935
9349
  private loseLeadership;
8936
9350
  private connectChannels;
8937
9351
  private disconnectChannels;
9352
+ /** Reconcile desired installations against the connections this shard holds. */
9353
+ private reconcileChannels;
9354
+ private fingerprint;
9355
+ private safeConnect;
9356
+ private safeDisconnect;
9357
+ private disconnectTracked;
8938
9358
  }
8939
9359
 
8940
9360
  /**
@@ -10621,6 +11041,23 @@ declare class Agent {
10621
11041
  * @param params - {@link AgentThreadInterface}
10622
11042
  */
10623
11043
  constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
11044
+ /**
11045
+ * Re-pins the workspace/project scope used by the next execution.
11046
+ *
11047
+ * @param params - Concrete scope of the run about to execute; absent or
11048
+ * `null`/empty values keep the run unscoped.
11049
+ * @throws {Error} When this Agent is actively executing.
11050
+ * @remarks `AgentInstanceManager` is keyed by
11051
+ * `(tenant_id, assistant_id, thread_id)` only, so a control-plane caller can
11052
+ * create the instance before the durable run worker does. The worker calls
11053
+ * this method while holding the thread-run lease (no other execution can be
11054
+ * active) so the run's authoritative scope cannot inherit a stale default and
11055
+ * fail capability resolution with `Project 'default' was not found`.
11056
+ */
11057
+ applyExecutionScope(params: {
11058
+ workspace_id?: string | null;
11059
+ project_id?: string | null;
11060
+ }): void;
10624
11061
  /**
10625
11062
  * Accepts host-authenticated queue metadata through the package-private symbol capability.
10626
11063
  *
@@ -10638,6 +11075,8 @@ declare class Agent {
10638
11075
  private clearRecoveryBlock;
10639
11076
  private rethrowClaimedExecutionError;
10640
11077
  private executionRunConfig;
11078
+ private runGovernanceContext;
11079
+ private observabilityCallbacks;
10641
11080
  private getHumanPendingContent;
10642
11081
  private queuedInputMessages;
10643
11082
  /**
@@ -11783,6 +12222,18 @@ declare class AgentInstanceManager {
11783
12222
  * Ensures only one instance per thread exists
11784
12223
  */
11785
12224
  getAgent(params: AgentThreadInterface): Agent;
12225
+ /**
12226
+ * Get the managed Agent for an exclusive execution and re-pin its scope.
12227
+ *
12228
+ * @param params - Thread identity plus the authoritative run scope.
12229
+ * @returns The singleton Agent whose next execution uses `params` scope.
12230
+ * @throws {Error} When the resolved Agent is actively executing.
12231
+ * @remarks Callers must already hold the thread-run lease (the durable run
12232
+ * worker does), so no execution can be in flight. This keeps the one-instance
12233
+ * identity while preventing a control-plane caller's default scope from
12234
+ * deciding how the durable run resolves Projects.
12235
+ */
12236
+ getAgentForExecution(params: AgentThreadInterface): Agent;
11786
12237
  /**
11787
12238
  * Get the managed Agent for a thread WITHOUT creating or registering one.
11788
12239
  *
@@ -14477,6 +14928,8 @@ interface CompileSandboxPluginArgs {
14477
14928
  * - Tool calls resolve connection credentials through
14478
14929
  * `resolveSandboxPluginConnections` at execution time via
14479
14930
  * `exeConfig.configurable.runConfig`.
14931
+ * - Tools declaring `ui` carry an HMAC-signed scope derived from the run
14932
+ * identity and the resolved connection, when `MCP_UI_SCOPE_SECRET` is set.
14480
14933
  * - The returned middleware is a LangChain middleware whose `tools` are one
14481
14934
  * proxy per manifest tool; handler code is never evaluated in Node.
14482
14935
  */
@@ -16108,15 +16561,20 @@ declare function createNodeHandler(node: InternalNode, resolveAgent: ResolveAgen
16108
16561
  * and compiles the resulting InternalDSL into a runnable LangGraph StateGraph.
16109
16562
  */
16110
16563
 
16564
+ /** Optional overrides for the compiled workflow graph. */
16565
+ interface CompileWorkflowOptions {
16566
+ /** Trace/run name for the root workflow graph; defaults to the YAML `name`. */
16567
+ name?: string;
16568
+ }
16111
16569
  /**
16112
16570
  * Compile a YAML workflow string into a LangGraph StateGraph.
16113
16571
  */
16114
- declare function compileWorkflow(yamlStr: string, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore): CompiledStateGraph<any, any, any, any, any>;
16572
+ declare function compileWorkflow(yamlStr: string, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore, options?: CompileWorkflowOptions): CompiledStateGraph<any, any, any, any, any>;
16115
16573
  /**
16116
16574
  * Compile an InternalDSL directly into a LangGraph StateGraph.
16117
16575
  * Used internally by compileWorkflow and for lower-level access.
16118
16576
  */
16119
- declare function compileInternal(ir: InternalDSL, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore): CompiledStateGraph<any, any, any, any, any>;
16577
+ declare function compileInternal(ir: InternalDSL, resolveAgent: ResolveAgentFn, checkpointer: BaseCheckpointSaver, trackingStore?: WorkflowTrackingStore, options?: CompileWorkflowOptions): CompiledStateGraph<any, any, any, any, any>;
16120
16578
  interface WorkflowValidationError {
16121
16579
  type: "error" | "warning";
16122
16580
  message: string;
@@ -16632,4 +17090,4 @@ declare function parseDirectRoomType(projectId: string): "human" | "bot" | null;
16632
17090
  */
16633
17091
  declare function isDirectRoom(projectId: string): boolean;
16634
17092
 
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 };
17093
+ 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_CONTENTS_EMBEDDING_PATH, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_MODEL_EXTRA, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, DEFAULT_SUMMARIZATION_TRIGGER_TOKENS, DEFAULT_TEXTS_EMBEDDING_PATH, 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 EmbeddingShape, 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, SUMMARIZATION_TRIGGER_RATIO, 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, embeddingProbeCandidates, 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, readContextWindow, 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, resolveEmbeddingEndpoint, resolveEmbeddingShape, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolveObservabilityCallbacks, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveStartIndex, resolveSummarizationTriggerTokens, 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 };