@axiom-lattice/core 12.2.2 → 12.3.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.mts CHANGED
@@ -8,9 +8,9 @@ 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, UserExternalIdentityStore, OidcProviderConfigStore, PlatformMemberStore, PlatformInvitationStore, OidcIdentityClaimStore, InviteLinkStore, 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, PlatformSettingsStore, 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, UserExternalIdentity, OidcProviderConfig, CreateOidcProviderConfigInput, UpdateOidcProviderConfigInput, PlatformMember, PlatformInvitation, OidcIdentityClaimStatus, OidcIdentityClaim, CreateOidcIdentityClaimInput, UpdateOidcIdentityClaimInput, OidcIdentityClaimApproval, InviteLink, CreateInviteLinkInput, 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, PlatformSettingsRecord, PlatformSettingsDocument, ShareRecord, CreateShareRecord, ShareRecordPatch, AuthProvider, LoginSurface, Principal, STTModelLatticeProtocol, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, PinoFileOptions, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateFileShareRequest, McpAppShareApp, McpAppShareRecord, 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';
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, UserExternalIdentityStore, OidcProviderConfigStore, PlatformMemberStore, PlatformInvitationStore, OidcIdentityClaimStore, InviteLinkStore, 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, PlatformSettingsStore, PlatformAuditStore, 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, UserExternalIdentity, OidcProviderConfig, CreateOidcProviderConfigInput, UpdateOidcProviderConfigInput, PlatformMember, PlatformInvitation, OidcIdentityClaimStatus, OidcIdentityClaim, CreateOidcIdentityClaimInput, UpdateOidcIdentityClaimInput, OidcIdentityClaimApproval, InviteLink, CreateInviteLinkInput, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, PlatformAuditAppendInput, PlatformAuditRecord, PlatformAuditQuery, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, CreateChannelReplyJobInput, ChannelReplyJob, PlatformSettingsRecord, PlatformSettingsDocument, ShareRecord, CreateShareRecord, ShareRecordPatch, AuthProvider, LoginSurface, Principal, STTModelLatticeProtocol, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, PinoFileOptions, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, PersonalMcpServerConfigStore, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, McpAppShareApp, McpAppShareRecord, CreateFileShareRequest, ObservabilityDashboardInput, ObservabilityDashboardResult, ChannelAdapter, InterruptPolicy, AgentInterrupt, ProjectTaskLifecycleAction, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, SandboxPluginManifest, SandboxPluginToolDef, SandboxPluginDiagnostic, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalInput, InternalStateField, InternalAgentNode, InternalMapNode, InternalNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
12
12
  export { _axiom_lattice_protocols as Protocols };
13
- export { AgentConfig, AgentType, GraphBuildOptions, MemoryType, ProjectRoomTrustedRunContext, QueuedExecutionMode, TrustedRunContext, parseQueuedExecutionMode, parseTrustedRunContext } from '@axiom-lattice/protocols';
13
+ export { AgentConfig, AgentType, GraphBuildOptions, McpServerConfigEntry, MemoryType, PersonalMcpServerConfigEntry, ProjectRoomTrustedRunContext, QueuedExecutionMode, TrustedRunContext, parseQueuedExecutionMode, parseTrustedRunContext } from '@axiom-lattice/protocols';
14
14
  import * as langchain from 'langchain';
15
15
  import { StructuredTool, ReactAgent, AgentMiddleware } from 'langchain';
16
16
  import z, { ZodTypeAny, z as z$1 } from 'zod';
@@ -736,8 +736,7 @@ declare function buildModelConfig(provider: ModelProviderEntry, model: ModelProv
736
736
  */
737
737
 
738
738
  /**
739
- * Resolve a model for a tenant, falling back to the deployment namespace only
740
- * while the tenant has no providers of its own.
739
+ * Resolve a model for a tenant across the three model catalogs.
741
740
  *
742
741
  * Order:
743
742
  *
@@ -746,32 +745,36 @@ declare function buildModelConfig(provider: ModelProviderEntry, model: ModelProv
746
745
  * process. That is what lets a replica which never ran discovery — or a
747
746
  * gateway that just restarted — still execute a tenant's model, without any
748
747
  * replica-to-replica synchronisation.
749
- * 2. **The `default` namespace**, where the deployment registers models at
750
- * boot via `registerModelLattice`. Those are not tenant-owned, and a bare
751
- * key such as `"default"` or `"qwen3.8-flash"` resolves only here.
752
- *
753
- * Step 2 is skipped once the tenant has registered a provider of its own: the
754
- * tenant has taken over its model supply, so a key it does not define stays
755
- * unresolved rather than running on a platform model (see
756
- * `tenantHasOwnModelSupply`). Tenants with no providers keep the legacy
757
- * fallback, which is what keeps old agent configs working unchanged.
748
+ * 2. **The platform catalog**, stored under the reserved
749
+ * {@link PLATFORM_MODEL_TENANT_ID} id. Reached only by a tenant with no
750
+ * providers of its own. A miss is loaded from the same store, lazily, so a
751
+ * platform model behaves exactly like a tenant model.
752
+ * 3. **The `default` namespace**, where the deployment registers models at boot
753
+ * via `registerModelLattice`. Reachable only when the platform catalog is
754
+ * empty, which preserves the legacy fallback for deployments that never
755
+ * configure one.
756
+ *
757
+ * Each step is all-or-nothing: once a catalog has at least one provider it owns
758
+ * that tenant's whole supply, so a key it does not define stays unresolved
759
+ * rather than dropping to the next catalog (see `tenantHasOwnModelSupply`).
760
+ * That is the runtime half of the one-way "own models" mode in the
761
+ * model-provider panel, applied to the platform too.
758
762
  *
759
763
  * The key `"default"` is special: step 1 resolves it to the model the *tenant*
760
- * marked as their default, so callers that fall back to it get the tenant's
761
- * choice without knowing any of this. A tenant that marked none resolves to
762
- * nothing there; it reaches step 2 only when it has no providers at all.
764
+ * marked as their default, step 2 to the platform's, and step 3 to the
765
+ * deployment's. A catalog that marked none resolves to nothing there.
763
766
  *
764
767
  * @param tenantId - The tenant the run belongs to
765
768
  * @param modelKey - A tenant model key (`${providerId}/${modelId}`), the
766
769
  * `"default"` fallback key, or a bare legacy key
767
- * @returns The lattice, or undefined when neither namespace has it
770
+ * @returns The lattice, or undefined when no reachable catalog has it
768
771
  */
769
772
  declare function resolveModelLatticeForTenant(tenantId: string, modelKey: string): Promise<ModelLatticeInterface | undefined>;
770
773
  /**
771
774
  * Whether a tenant can resolve a model key.
772
775
  *
773
776
  * The existence-check counterpart of {@link resolveModelLatticeForTenant}:
774
- * same two namespaces, same lazy loading.
777
+ * same three catalogs, same order, same lazy loading.
775
778
  *
776
779
  * @param tenantId - The tenant the run belongs to
777
780
  * @param modelKey - A tenant model key or a bare legacy key
@@ -780,10 +783,10 @@ declare function hasModelLatticeForTenant(tenantId: string, modelKey: string): P
780
783
  /**
781
784
  * The in-memory counterpart of {@link hasModelLatticeForTenant}.
782
785
  *
783
- * Same two namespaces, same order — but **no lazy load**, because the caller
786
+ * Same three catalogs, same order — but **no lazy load**, because the caller
784
787
  * reached here synchronously. That is sound only when something already
785
- * awaited the async version for the same tenant and key: the base manager
786
- * registers whatever a load returns, so a miss here is a real miss.
788
+ * awaited the async version for the same tenant, platform and key: the base
789
+ * manager registers whatever a load returns, so a miss here is a real miss.
787
790
  *
788
791
  * Exists so a synchronous consumer cannot end up with a *narrower* policy than
789
792
  * the async one. The eval path did exactly that: `eval-runner` resolved the
@@ -798,19 +801,28 @@ declare function hasModelLatticeForTenantSync(tenantId: string, modelKey: string
798
801
  /**
799
802
  * The models a tenant may choose from.
800
803
  *
801
- * A tenant with no providers sees the deployment's models plus its own; one
802
- * that configured a provider sees only its own, because the deployment is no
803
- * longer part of that tenant's supply. The ownership check is synchronous, so
804
- * this relies on `tenantHasOwnModelSupply` having run in this process first —
805
- * callers that list for a user-facing surface must await it (see
806
- * `getAvailableModels` in `agentArchitectTools`).
804
+ * A tenant with no providers sees the platform catalog plus its own; one that
805
+ * configured a provider sees only its own, because neither fallback is part of
806
+ * that tenant's supply any more. The deployment models appear only when the
807
+ * platform catalog is empty — the same all-or-nothing rule the resolvers apply,
808
+ * so the list cannot advertise a key `resolveModelLatticeForTenant` rejects.
809
+ *
810
+ * The ownership checks are synchronous, so this relies on both
811
+ * `tenantHasOwnModelSupply` calls having run in this process first — for the
812
+ * tenant *and* the platform catalog. Callers that list for a user-facing
813
+ * surface must await both (see `getAvailableModels` in `agentArchitectTools`);
814
+ * warming only the tenant's observation would let a non-empty platform catalog
815
+ * show deployment models that no resolution would accept.
807
816
  *
808
817
  * Unlike the resolvers it cannot be lazy — enumerating a tenant's models does
809
818
  * not name any key to load — so it returns what this process currently holds.
810
- * A model appears here once something has resolved it, or after the tenant's
811
- * registry is hydrated.
819
+ * A model appears here once something has resolved it, or after the relevant
820
+ * registry is hydrated. Catalog/picker integration that hydrates and warms
821
+ * these observations is the platform model-catalog API/UI work (Plan 3
822
+ * Tasks 2–3), not this resolution layer.
812
823
  *
813
- * Tenant entries win on key collision, matching the tool lookup in
824
+ * Precedence on key collision: the tenant's own entry wins over the platform,
825
+ * which wins over the deployment. That matches the tool lookup in
814
826
  * `AgentParamsBuilder`.
815
827
  *
816
828
  * @param tenantId - The tenant whose models to list
@@ -2271,6 +2283,14 @@ interface ToolLattice {
2271
2283
  */
2272
2284
  declare class ToolLatticeManager extends BaseLatticeManager<ToolLattice> {
2273
2285
  private static _instance;
2286
+ /**
2287
+ * Personal-assistant tool buckets, keyed by `${tenantId}\u0000${assistantId}`.
2288
+ *
2289
+ * Kept outside the shared `BaseLatticeManager.registry` on purpose: tenant
2290
+ * prefix scans (`getAllByTenant` / `clearByTenant`) must never see personal
2291
+ * tools, and personal tool keys may collide with tenant keys.
2292
+ */
2293
+ private assistantTools;
2274
2294
  /**
2275
2295
  * 获取ToolLatticeManager单例实例
2276
2296
  */
@@ -2362,6 +2382,43 @@ declare class ToolLatticeManager extends BaseLatticeManager<ToolLattice> {
2362
2382
  * @returns the StructuredTool client
2363
2383
  */
2364
2384
  getToolClientWithTenant(tenantId: string, key: string): StructuredTool$1;
2385
+ /**
2386
+ * Composite key for one assistant's personal tool bucket.
2387
+ */
2388
+ private getAssistantBucketKey;
2389
+ /**
2390
+ * Register (or replace) a personal tool for one assistant.
2391
+ *
2392
+ * Uses replace semantics because MCP re-registration on reconnect must be
2393
+ * idempotent, unlike the tenant bucket's duplicate-throwing register.
2394
+ *
2395
+ * @param tenantId - tenant that owns the assistant
2396
+ * @param assistantId - personal assistant that owns the tool
2397
+ * @param key - tool lattice key (no tenant prefix)
2398
+ * @param tool - the StructuredTool client
2399
+ */
2400
+ registerExistingToolForAssistant(tenantId: string, assistantId: string, key: string, tool: StructuredTool$1): void;
2401
+ /**
2402
+ * Get one personal tool for an assistant.
2403
+ *
2404
+ * @param tenantId - tenant that owns the assistant
2405
+ * @param assistantId - personal assistant that owns the tool
2406
+ * @param key - tool lattice key
2407
+ * @returns the lattice, or undefined when absent
2408
+ */
2409
+ getToolLatticeForAssistant(tenantId: string, assistantId: string, key: string): ToolLattice | undefined;
2410
+ /**
2411
+ * List the tool keys currently registered for one assistant.
2412
+ */
2413
+ getAssistantToolKeys(tenantId: string, assistantId: string): string[];
2414
+ /**
2415
+ * Remove one personal tool from an assistant bucket.
2416
+ */
2417
+ removeAssistantTool(tenantId: string, assistantId: string, key: string): boolean;
2418
+ /**
2419
+ * Clear every personal tool owned by one assistant.
2420
+ */
2421
+ clearAssistantTools(tenantId: string, assistantId: string): void;
2365
2422
  /**
2366
2423
  * 验证工具输入参数
2367
2424
  * @param key Lattice键名
@@ -2680,6 +2737,27 @@ declare const getAgentClientAsync: (tenantId: string, key: string, options?: Gra
2680
2737
  */
2681
2738
  declare function ensureBuiltinAgentsForTenant(tenantId: string): void;
2682
2739
 
2740
+ /**
2741
+ * Plugin Agents
2742
+ *
2743
+ * Agents contributed by plugins (via Plugin.agents) are registered per-tenant
2744
+ * on first access, following the same pattern as built-in agents. This ensures
2745
+ * each tenant gets its own in-memory copy of the agent lattice, consistent
2746
+ * with how DB-loaded assistants work.
2747
+ */
2748
+ /**
2749
+ * Ensure all plugin-contributed agents (global and tenant sandbox plugins) are
2750
+ * registered for the given tenant. Idempotent.
2751
+ *
2752
+ * The merged global ∪ tenant plugin set comes from {@link listTenantPlugins},
2753
+ * so a failed or unconfigured sandbox degrades to global plugins only and the
2754
+ * global plugin agents always register.
2755
+ *
2756
+ * @param tenantId - Tenant to register plugin agents for
2757
+ * @returns Nothing once all merged plugin agents are registered
2758
+ */
2759
+ declare function ensurePluginAgentsForTenant(tenantId: string): Promise<void>;
2760
+
2683
2761
  declare const ROOM_COORDINATOR_KEY = "room-coordinator";
2684
2762
  declare const roomCoordinatorConfig: DeepAgentConfig;
2685
2763
 
@@ -4815,6 +4893,7 @@ type StoreTypeMap = {
4815
4893
  checkpointStorage: CheckpointStorage;
4816
4894
  store: StoreProtocol;
4817
4895
  platformSettings: PlatformSettingsStore;
4896
+ platformAudit: PlatformAuditStore;
4818
4897
  };
4819
4898
  /**
4820
4899
  * Store type keys
@@ -5578,6 +5657,11 @@ declare class InMemoryModelProviderStore implements ModelProviderStore {
5578
5657
  clearByTenant(tenantId: string): void;
5579
5658
  }
5580
5659
 
5660
+ /** Stable conflict raised when an email is already owned by another user. */
5661
+ declare class InMemoryUserEmailConflictError extends Error {
5662
+ readonly code = "USER_EMAIL_EXISTS";
5663
+ constructor(email: string);
5664
+ }
5581
5665
  declare class InMemoryUserStore implements UserStore {
5582
5666
  private users;
5583
5667
  constructor();
@@ -5588,6 +5672,7 @@ declare class InMemoryUserStore implements UserStore {
5588
5672
  updateUser(id: string, updates: UpdateUserRequest): Promise<User | null>;
5589
5673
  deleteUser(id: string): Promise<boolean>;
5590
5674
  clear(): void;
5675
+ private assertEmailAvailable;
5591
5676
  }
5592
5677
 
5593
5678
  /**
@@ -5985,6 +6070,33 @@ declare class InMemoryOpenAuditStore implements OpenAuditStore {
5985
6070
  all(): OpenAuditRecord[];
5986
6071
  }
5987
6072
 
6073
+ /**
6074
+ * In-memory platform audit store (default when no persistent store is configured).
6075
+ */
6076
+
6077
+ /**
6078
+ * In-memory implementation of {@link PlatformAuditStore}.
6079
+ *
6080
+ * Records are kept in append order and returned newest-first. Intended for
6081
+ * tests and single-process deployments; state is not shared across instances.
6082
+ */
6083
+ declare class InMemoryPlatformAuditStore implements PlatformAuditStore {
6084
+ private records;
6085
+ /** Appends a record, assigning a fresh id and creation timestamp. */
6086
+ append(record: PlatformAuditAppendInput): Promise<PlatformAuditRecord>;
6087
+ /** Returns a record by id, or null when it does not exist. */
6088
+ get(id: string): Promise<PlatformAuditRecord | null>;
6089
+ /**
6090
+ * Returns matching records newest-first.
6091
+ *
6092
+ * `initiatorUserId` only matches human initiators. `from` is inclusive and
6093
+ * `to` is exclusive. Records are ordered by `createdAt` descending, then by
6094
+ * `id` descending. Results are paginated with a default limit of 100, and
6095
+ * negative `offset`/`limit` values are clamped to 0.
6096
+ */
6097
+ query(params: PlatformAuditQuery): Promise<PlatformAuditRecord[]>;
6098
+ }
6099
+
5988
6100
  /**
5989
6101
  * In-Memory Thread Message Queue Store
5990
6102
  *
@@ -6294,6 +6406,26 @@ declare class InMemoryProjectRoomStore implements ProjectRoomStore {
6294
6406
  getMainRoom(tenantId: string, projectId: string): Promise<ProjectRoom | null>;
6295
6407
  }
6296
6408
 
6409
+ /**
6410
+ * InMemoryWorkspaceStore
6411
+ *
6412
+ * In-memory implementation of WorkspaceStore
6413
+ * Provides CRUD operations for workspace data stored in memory
6414
+ */
6415
+
6416
+ declare class InMemoryWorkspaceStore implements WorkspaceStore {
6417
+ private workspaces;
6418
+ constructor();
6419
+ private initDefaultData;
6420
+ private getKey;
6421
+ getAllWorkspaces(tenantId: string): Promise<Workspace[]>;
6422
+ getWorkspaceById(tenantId: string, id: string): Promise<Workspace | null>;
6423
+ createWorkspace(tenantId: string, id: string, data: CreateWorkspaceRequest): Promise<Workspace>;
6424
+ updateWorkspace(tenantId: string, id: string, updates: UpdateWorkspaceRequest): Promise<Workspace | null>;
6425
+ deleteWorkspace(tenantId: string, id: string): Promise<boolean>;
6426
+ clear(): void;
6427
+ }
6428
+
6297
6429
  /**
6298
6430
  * Stores tenant-isolated human project memberships in process memory.
6299
6431
  *
@@ -8086,6 +8218,18 @@ declare class SimpleMemoryVectorStore extends VectorStore {
8086
8218
  interface McpServerId {
8087
8219
  tenantId: string;
8088
8220
  serverKey: string;
8221
+ /**
8222
+ * Personal assistant that owns this server. Omitted = tenant-scoped.
8223
+ *
8224
+ * Deliberately identity-only: connection policy lives in
8225
+ * `McpConnectionOptions`, so the two never get conflated.
8226
+ */
8227
+ ownerAssistantId?: string;
8228
+ }
8229
+ /** Data-domain scope for an MCP server; presence of `ownerAssistantId` = personal. */
8230
+ interface McpScopeOptions {
8231
+ /** Personal assistant that owns this server. Omitted = tenant-scoped. */
8232
+ ownerAssistantId?: string;
8089
8233
  }
8090
8234
  /** Per-server connection policy. */
8091
8235
  interface McpConnectionOptions {
@@ -8097,9 +8241,14 @@ interface McpConnectionOptions {
8097
8241
  delayMs?: number;
8098
8242
  }
8099
8243
  /** Options accepted by `McpLatticeManager.registerServer`. */
8100
- interface McpRegisterOptions extends McpConnectionOptions {
8244
+ interface McpRegisterOptions extends McpConnectionOptions, McpScopeOptions {
8101
8245
  /** Tool-name allowlist to persist on the runtime for reconnect re-registration. `undefined` = all, `[]` = none. */
8102
8246
  selectedTools?: string[];
8247
+ /**
8248
+ * Config revision (updatedAt ISO) of the registration. Lazy personal sync
8249
+ * compares it to skip re-registering unchanged configs.
8250
+ */
8251
+ revision?: string;
8103
8252
  }
8104
8253
  /** Runtime lifecycle state of one MCP server. */
8105
8254
  type McpServerState = "idle" | "connecting" | "connected" | "reconnecting" | "failed";
@@ -8153,6 +8302,8 @@ interface McpServerRuntime {
8153
8302
  client?: McpClientLike;
8154
8303
  toolKeys: string[];
8155
8304
  selectedTools?: string[];
8305
+ /** Config revision the runtime was registered from; used by lazy personal sync. */
8306
+ revision?: string;
8156
8307
  attempt: number;
8157
8308
  timer?: ReturnType<typeof setTimeout>;
8158
8309
  /** In-flight connect promise, used to single-flight concurrent connects. */
@@ -8201,12 +8352,16 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8201
8352
  configure(options?: {
8202
8353
  clientFactory?: McpClientFactory;
8203
8354
  }): void;
8355
+ /**
8356
+ * Runtime map key. The owner segment is empty for tenant servers, so tenant
8357
+ * keys keep their historical shape and never collide with personal ones.
8358
+ */
8204
8359
  private compositeKey;
8205
8360
  private getRuntime;
8206
8361
  /**
8207
- * Whether a runtime is still the live entry for its `(tenantId, serverKey)`.
8208
- * In-flight continuations use this to avoid publishing onto an orphaned
8209
- * runtime that was removed or overwritten.
8362
+ * Whether a runtime is still the live entry for its identity. In-flight
8363
+ * continuations use this to avoid publishing onto an orphaned runtime that
8364
+ * was removed or overwritten.
8210
8365
  */
8211
8366
  private isActive;
8212
8367
  /**
@@ -8218,15 +8373,16 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8218
8373
  */
8219
8374
  static buildToolKey(serverKey: string, toolName: string): string;
8220
8375
  /**
8221
- * Register (or replace) an MCP server connection for a tenant.
8376
+ * Register (or replace) an MCP server connection.
8222
8377
  *
8223
8378
  * @param tenantId Tenant that owns the connection.
8224
8379
  * @param serverKey Stable server identifier within the tenant.
8225
8380
  * @param connection Adapter connection config.
8226
- * @param options Optional connect timeout / retry policy overrides.
8227
- * @remarks Re-registering an existing `(tenantId, serverKey)` clears its
8228
- * pending reconnect timer, unregisters its tools, closes the old client
8229
- * (fire-and-forget) and aborts any in-flight connect.
8381
+ * @param options Optional connect timeout / retry policy overrides and the
8382
+ * data-domain scope (`ownerAssistantId` = personal).
8383
+ * @remarks Re-registering an existing identity clears its pending reconnect
8384
+ * timer, unregisters its tools, closes the old client (fire-and-forget) and
8385
+ * aborts any in-flight connect.
8230
8386
  */
8231
8387
  registerServer(tenantId: string, serverKey: string, connection: Connection, options?: McpRegisterOptions): void;
8232
8388
  /**
@@ -8234,17 +8390,46 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8234
8390
  *
8235
8391
  * @param tenantId Tenant that owns the connection.
8236
8392
  * @param serverKey Server identifier within the tenant.
8393
+ * @param scope Optional data-domain scope.
8237
8394
  * @returns `true` if a runtime entry exists.
8238
8395
  */
8239
- hasServer(tenantId: string, serverKey: string): boolean;
8396
+ hasServer(tenantId: string, serverKey: string, scope?: McpScopeOptions): boolean;
8397
+ /**
8398
+ * Whether any personal server runtime exists for one assistant.
8399
+ *
8400
+ * Used by the cross-replica outbox handler to decide whether this replica
8401
+ * should sync connections at all (it only should if the PA has run here).
8402
+ *
8403
+ * @param tenantId Tenant that owns the assistant.
8404
+ * @param ownerAssistantId Personal assistant id.
8405
+ */
8406
+ hasServersForAssistant(tenantId: string, ownerAssistantId: string): boolean;
8407
+ /**
8408
+ * List the server keys with a personal runtime for one assistant.
8409
+ *
8410
+ * @param tenantId Tenant that owns the assistant.
8411
+ * @param ownerAssistantId Personal assistant id.
8412
+ * @returns Server keys registered by this replica for that assistant.
8413
+ */
8414
+ getServerKeysForAssistant(tenantId: string, ownerAssistantId: string): string[];
8415
+ /**
8416
+ * The config revision a runtime was registered from, if any.
8417
+ *
8418
+ * @param tenantId Tenant that owns the connection.
8419
+ * @param serverKey Server identifier within the tenant.
8420
+ * @param scope Optional data-domain scope.
8421
+ * @returns The revision string, or undefined when not registered.
8422
+ */
8423
+ getServerRevision(tenantId: string, serverKey: string, scope?: McpScopeOptions): string | undefined;
8240
8424
  /**
8241
8425
  * Whether a server's client is connected.
8242
8426
  *
8243
8427
  * @param tenantId Tenant that owns the connection.
8244
8428
  * @param serverKey Server identifier within the tenant.
8429
+ * @param scope Optional data-domain scope.
8245
8430
  * @returns `true` only when the runtime state is `connected`.
8246
8431
  */
8247
- isServerConnected(tenantId: string, serverKey: string): boolean;
8432
+ isServerConnected(tenantId: string, serverKey: string, scope?: McpScopeOptions): boolean;
8248
8433
  private ensureWatchdog;
8249
8434
  private connectRuntime;
8250
8435
  /**
@@ -8252,10 +8437,11 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8252
8437
  *
8253
8438
  * @param tenantId Tenant that owns the connection.
8254
8439
  * @param serverKey Server identifier within the tenant.
8440
+ * @param scope Optional data-domain scope.
8255
8441
  * @throws If the server is not registered or the connect attempt fails.
8256
8442
  * @remarks On failure the server is scheduled for background reconnect.
8257
8443
  */
8258
- connectServer(tenantId: string, serverKey: string): Promise<void>;
8444
+ connectServer(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<void>;
8259
8445
  /**
8260
8446
  * Connect every registered server, isolating per-server failures.
8261
8447
  *
@@ -8268,11 +8454,12 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8268
8454
  *
8269
8455
  * @param tenantId Tenant that owns the connection.
8270
8456
  * @param serverKey Server identifier within the tenant.
8457
+ * @param scope Optional data-domain scope.
8271
8458
  * @throws If the server is not registered or the connect attempt fails.
8272
8459
  * @remarks Concurrent calls are single-flighted onto one connect attempt.
8273
8460
  * On failure the server is scheduled for background reconnect.
8274
8461
  */
8275
- ensureConnected(tenantId: string, serverKey: string): Promise<void>;
8462
+ ensureConnected(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<void>;
8276
8463
  private scheduleReconnect;
8277
8464
  private reconnectRuntime;
8278
8465
  /**
@@ -8280,9 +8467,10 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8280
8467
  *
8281
8468
  * @param tenantId Tenant that owns the connection.
8282
8469
  * @param serverKey Server identifier within the tenant.
8470
+ * @param scope Optional data-domain scope.
8283
8471
  * @throws If the server is not registered or the reconnect attempt fails.
8284
8472
  */
8285
- reconnectServer(tenantId: string, serverKey: string): Promise<void>;
8473
+ reconnectServer(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<void>;
8286
8474
  /**
8287
8475
  * Single-flight a forced reconnect per `(tenantId, serverKey)` so concurrent
8288
8476
  * tool calls that all hit the same dead session reconnect once, not once each.
@@ -8302,38 +8490,42 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8302
8490
  *
8303
8491
  * @param tenantId Tenant that owns the connection.
8304
8492
  * @param serverKey Server identifier within the tenant.
8493
+ * @param scope Optional data-domain scope.
8305
8494
  * @returns `true` if a server was removed.
8306
8495
  * @remarks The runtime is removed from the map before the client is closed
8307
8496
  * so any in-flight connect aborts instead of resurrecting it.
8308
8497
  */
8309
- removeServer(tenantId: string, serverKey: string): Promise<boolean>;
8498
+ removeServer(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<boolean>;
8310
8499
  /**
8311
8500
  * List a connected server's tools in API format.
8312
8501
  *
8313
8502
  * @param tenantId Tenant that owns the connection.
8314
8503
  * @param serverKey Server identifier within the tenant.
8504
+ * @param scope Optional data-domain scope.
8315
8505
  * @returns Native JSON-schema tool descriptors.
8316
8506
  * @throws If the server is not connected.
8317
8507
  */
8318
- getServerTools(tenantId: string, serverKey: string): Promise<McpTool[]>;
8508
+ getServerTools(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<McpTool[]>;
8319
8509
  /**
8320
8510
  * Get a connected server's raw LangChain tools.
8321
8511
  *
8322
8512
  * @param tenantId Tenant that owns the connection.
8323
8513
  * @param serverKey Server identifier within the tenant.
8514
+ * @param scope Optional data-domain scope.
8324
8515
  * @returns Raw `DynamicStructuredTool` instances.
8325
8516
  * @throws If the server is not connected.
8326
8517
  */
8327
- getRawTools(tenantId: string, serverKey: string): Promise<DynamicStructuredTool[]>;
8518
+ getRawTools(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<DynamicStructuredTool[]>;
8328
8519
  /**
8329
8520
  * List a connected server's tools including raw `_meta` (for UI association).
8330
8521
  *
8331
8522
  * @param tenantId Tenant that owns the connection.
8332
8523
  * @param serverKey Server identifier within the tenant.
8524
+ * @param scope Optional data-domain scope.
8333
8525
  * @returns Tool descriptors with optional `_meta`.
8334
8526
  * @throws If the server is not connected.
8335
8527
  */
8336
- getAvailableTools(tenantId: string, serverKey: string): Promise<Array<{
8528
+ getAvailableTools(tenantId: string, serverKey: string, scope?: McpScopeOptions): Promise<Array<{
8337
8529
  name: string;
8338
8530
  description: string;
8339
8531
  inputSchema: unknown;
@@ -8375,8 +8567,10 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8375
8567
  *
8376
8568
  * @param tenantId Tenant that owns the connection.
8377
8569
  * @param serverKey Server identifier within the tenant.
8570
+ * @param scope Optional data-domain scope; personal tools live in the
8571
+ * assistant bucket and are removed there.
8378
8572
  */
8379
- unregisterServerTools(tenantId: string, serverKey: string): void;
8573
+ unregisterServerTools(tenantId: string, serverKey: string, scope?: McpScopeOptions): void;
8380
8574
  /**
8381
8575
  * Register a connected server's tools into the tool lattice.
8382
8576
  *
@@ -8385,15 +8579,27 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
8385
8579
  * @param selectedTools Tool names to expose. `undefined` registers all tools;
8386
8580
  * an empty array registers none. Once provided, the selection is remembered
8387
8581
  * and reused on reconnect.
8582
+ * @param scope Optional data-domain scope. Personal servers register into
8583
+ * the owning assistant's bucket, never the tenant bucket.
8388
8584
  * @throws If the server is not registered or not connected.
8389
8585
  * @remarks No-op if the runtime was removed/replaced while fetching tools.
8586
+ * A non-empty selection that matches none of the advertised tools is treated
8587
+ * as stale (servers such as apifox regenerate tool names per session) and
8588
+ * exposes nothing until re-selected; an empty array likewise registers none.
8589
+ * Personal tools skip MCP App UI wrapping: `McpUiRef` resolution is
8590
+ * tenant-scoped today, so a personal server would resolve the wrong
8591
+ * connection.
8390
8592
  */
8391
- registerToolsToToolLattice(tenantId: string, serverKey: string, selectedTools?: string[]): Promise<void>;
8593
+ registerToolsToToolLattice(tenantId: string, serverKey: string, selectedTools?: string[], scope?: McpScopeOptions): Promise<void>;
8392
8594
  /**
8393
8595
  * Test a single MCP server using a standalone client.
8394
8596
  * Never touches manager state and always closes the client.
8597
+ *
8598
+ * @param timeoutMs Handshake timeout. Callers pass the config's own
8599
+ * `timeout` so a cold `npx` download or a slow remote server isn't cut
8600
+ * off by the default; omitted means {@link DEFAULT_CONNECT_TIMEOUT_MS}.
8395
8601
  */
8396
- static testConnection(serverName: string, connection: Connection, factory?: McpClientFactory): Promise<{
8602
+ static testConnection(serverName: string, connection: Connection, factory?: McpClientFactory, timeoutMs?: number): Promise<{
8397
8603
  tools: McpTool[];
8398
8604
  latency: number;
8399
8605
  protocolVersion?: string;
@@ -8423,6 +8629,13 @@ declare const MAX_BACKOFF_MS = 30000;
8423
8629
  declare const HEALTH_CHECK_INTERVAL_MS = 30000;
8424
8630
  /** Timeout (ms) for a single MCP session health check. */
8425
8631
  declare const HEALTH_CHECK_TIMEOUT_MS = 5000;
8632
+ /**
8633
+ * Upper bound (ms) for a single health check. The check uses the server's own
8634
+ * handshake budget when it is larger than {@link HEALTH_CHECK_TIMEOUT_MS}, so
8635
+ * a slow-but-healthy remote server is not marked dead; this cap keeps one hung
8636
+ * server from stalling the sweep over every runtime.
8637
+ */
8638
+ declare const HEALTH_CHECK_MAX_TIMEOUT_MS = 15000;
8426
8639
  /**
8427
8640
  * Whether an error means the MCP session/connection is gone (the request never
8428
8641
  * reached the server), as opposed to a tool-level, validation or business
@@ -8462,7 +8675,7 @@ declare function withTimeout<T>(operation: Promise<T>, ms: number, onTimeout: ()
8462
8675
  /**
8463
8676
  * Convert a persisted McpServerConfig into a @langchain/mcp-adapters Connection.
8464
8677
  *
8465
- * stdio restart is available in every protocol mode. HTTP/SSE `reconnect` is
8678
+ * stdio restart is available in every protocol mode. HTTP `reconnect` is
8466
8679
  * legacy-only: modern streams cannot replay lost requests, so the adapter
8467
8680
  * rejects `reconnect` on `auto`/`modern` connections.
8468
8681
  */
@@ -8545,6 +8758,160 @@ declare function signMcpUiScope(input: McpUiScopeInput, secret?: string | undefi
8545
8758
  */
8546
8759
  declare function verifyMcpUiScope(token: string | undefined, secret?: string | undefined): McpUiScopePayload | null;
8547
8760
 
8761
+ /**
8762
+ * Tool-selection reconciliation for servers that rename their tools per session.
8763
+ *
8764
+ * Some MCP servers (apifox-mcp-server is the known offender) mint a fresh random
8765
+ * suffix for every tool name on each launch, e.g. `read_project_oas_efldgj`
8766
+ * becomes `read_project_oas_5zmv3v`. A stored selection of the old names then
8767
+ * matches nothing, the server exposes no tools, and the UI shows every tool as
8768
+ * unselected — users read that as "my selection was lost".
8769
+ *
8770
+ * This module maps a stored selection onto the names a server advertises *now*,
8771
+ * but only under a strict, conservative rule: every unmatched selected tool must
8772
+ * share one trailing token, every live tool must share one (different) trailing
8773
+ * token, and each selected tool must have exactly one live tool with the same
8774
+ * prefix. Anything ambiguous stays unmapped, so a rename can never silently
8775
+ * widen a selection to a different tool.
8776
+ */
8777
+ /**
8778
+ * Map a stored tool selection onto the tool names a server currently exposes.
8779
+ *
8780
+ * Exact matches are always kept. Unmatched names are mapped only when the
8781
+ * server clearly renamed tools for this session (a single shared trailing token
8782
+ * on each side) and the prefix identifies exactly one live tool.
8783
+ *
8784
+ * @param selected Tool names persisted for the server.
8785
+ * @param available Tool names the server currently exposes.
8786
+ * @returns The selection expressed in current tool names; possibly shorter when
8787
+ * some entries could not be mapped safely.
8788
+ */
8789
+ declare function reconcileToolSelection(selected: readonly string[], available: readonly string[]): string[];
8790
+
8791
+ /**
8792
+ * Personal-assistant MCP lifecycle
8793
+ *
8794
+ * Personal assistants own a private MCP data domain: configs live in a separate
8795
+ * table and their tools live in a per-assistant ToolLattice bucket. This module
8796
+ * owns the runtime side of that domain:
8797
+ *
8798
+ * - lazy, TTL-bounded sync of one assistant's configs into `McpLatticeManager`
8799
+ * - removal / purge helpers used by the API and cascade deletes
8800
+ * - a store guard so hosts without personal-store support degrade to a no-op
8801
+ *
8802
+ * Sync is deliberately lazy rather than restored at startup: a replica only
8803
+ * holds connections for personal assistants it has actually run. That keeps
8804
+ * N users × N replicas from turning into a connection storm after a deploy.
8805
+ */
8806
+
8807
+ /** Default cap on personal MCP servers per assistant. Override with `PERSONAL_MCP_MAX_SERVERS`. */
8808
+ declare const PERSONAL_MCP_MAX_SERVERS = 10;
8809
+ /** Default wait budget for a lazy sync before the agent build proceeds. Override with `PERSONAL_MCP_SYNC_BUDGET_MS`. */
8810
+ declare const PERSONAL_MCP_SYNC_BUDGET_MS = 6000;
8811
+ /**
8812
+ * Read the personal-server cap, honoring the environment override.
8813
+ *
8814
+ * @returns A positive integer; falls back to {@link PERSONAL_MCP_MAX_SERVERS}.
8815
+ */
8816
+ declare function getPersonalMcpMaxServers(): number;
8817
+ /**
8818
+ * Read the lazy-sync wait budget in milliseconds, honoring the override.
8819
+ *
8820
+ * @returns A non-negative integer; falls back to {@link PERSONAL_MCP_SYNC_BUDGET_MS}.
8821
+ */
8822
+ declare function getPersonalMcpSyncBudgetMs(): number;
8823
+ /** Outcome of one lazy sync pass. */
8824
+ interface PersonalMcpSyncResult {
8825
+ /** Server keys that are connected and have their tools registered. */
8826
+ connected: string[];
8827
+ /** Per-server failures; a failure only drops that server's tools. */
8828
+ failed: Array<{
8829
+ key: string;
8830
+ error: string;
8831
+ }>;
8832
+ /** True when at least one server failed or the wait budget elapsed. */
8833
+ partial: boolean;
8834
+ /** True when the budget elapsed before the pass finished (work continues). */
8835
+ timedOut: boolean;
8836
+ /** True when no personal-capable store is registered. */
8837
+ skipped: boolean;
8838
+ }
8839
+ /**
8840
+ * Resolve the personal-capable MCP config store, when the host provides one.
8841
+ *
8842
+ * Hosts with a custom tenant-only store (for example the JSON-file store) get
8843
+ * `undefined`, which makes every personal helper a no-op instead of throwing.
8844
+ *
8845
+ * @returns The store, or `undefined` when unsupported.
8846
+ */
8847
+ declare function getPersonalMcpStore(): PersonalMcpServerConfigStore | undefined;
8848
+ /**
8849
+ * Drop the cached freshness window for one assistant.
8850
+ *
8851
+ * Called after config writes and by the cross-replica outbox handler, so the
8852
+ * next agent build or forced sync re-reads the store.
8853
+ *
8854
+ * @param tenantId Tenant that owns the assistant.
8855
+ * @param assistantId Personal assistant id.
8856
+ */
8857
+ declare function invalidatePersonalMcpSync(tenantId: string, assistantId: string): void;
8858
+ /**
8859
+ * Ensure one assistant's personal MCP runtimes match its stored configs.
8860
+ *
8861
+ * Connects every config whose status is `connected`, registers its tools into
8862
+ * the assistant bucket, and removes runtimes for configs that disappeared. A
8863
+ * single server failure is isolated and reported, never thrown: a broken MCP
8864
+ * server must not make the personal assistant unbuildable.
8865
+ *
8866
+ * @param input.tenantId Tenant that owns the assistant.
8867
+ * @param input.assistantId Personal assistant id.
8868
+ * @param input.force Bypass the TTL cache and re-read the store.
8869
+ * @param input.budgetMs Override the wait budget for this caller.
8870
+ * @returns Connected keys, per-server failures and partial flags.
8871
+ *
8872
+ * @remarks
8873
+ * - Concurrent non-forced calls single-flight onto one pass.
8874
+ * - A forced call waits for any in-flight pass first, then runs fresh, so it
8875
+ * never observes a pass that started before the caller's write.
8876
+ * - The whole pass is bounded by {@link getPersonalMcpSyncBudgetMs}; when the
8877
+ * budget elapses the caller gets a snapshot and connections keep going in
8878
+ * the background. A caller that is willing to wait (an explicit "show me the
8879
+ * tools" click) can pass a larger `budgetMs`.
8880
+ */
8881
+ declare function ensurePersonalMcpForAssistant(input: {
8882
+ tenantId: string;
8883
+ assistantId: string;
8884
+ force?: boolean;
8885
+ budgetMs?: number;
8886
+ }): Promise<PersonalMcpSyncResult>;
8887
+ /**
8888
+ * Remove one personal MCP server's runtime and tools, without touching the
8889
+ * store. Used after the config row is deleted or disconnected.
8890
+ *
8891
+ * @param tenantId Tenant that owns the assistant.
8892
+ * @param assistantId Personal assistant id.
8893
+ * @param serverKey Server business key.
8894
+ */
8895
+ declare function removePersonalMcpServer(tenantId: string, assistantId: string, serverKey: string): Promise<void>;
8896
+ /**
8897
+ * Delete every personal MCP config and runtime for one assistant.
8898
+ *
8899
+ * @param tenantId Tenant that owns the assistant.
8900
+ * @param assistantId Personal assistant id.
8901
+ * @returns Number of deleted config rows (0 when unsupported/absent).
8902
+ */
8903
+ declare function purgePersonalMcpForAssistant(tenantId: string, assistantId: string): Promise<{
8904
+ deleted: number;
8905
+ }>;
8906
+ /**
8907
+ * Count one assistant's personal MCP configs.
8908
+ *
8909
+ * @param tenantId Tenant that owns the assistant.
8910
+ * @param assistantId Personal assistant id.
8911
+ * @returns The config count (0 when the host doesn't support personal MCP).
8912
+ */
8913
+ declare function countPersonalMcpServers(tenantId: string, assistantId: string): Promise<number>;
8914
+
8548
8915
  /**
8549
8916
  * Extract an MCP Apps UI ref from a tool's raw `_meta`.
8550
8917
  *
@@ -17928,4 +18295,6 @@ declare function parseDirectRoomType(projectId: string): "human" | "bot" | null;
17928
18295
  */
17929
18296
  declare function isDirectRoom(projectId: string): boolean;
17930
18297
 
17931
- 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, AuthProviderAlreadyRegisteredError, 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, DuplicateShareTokenError, 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, IdentityMappingConfigError, type IdentityMappingDependencies, type IdentityMappingOptions, type IdentityMappingResult, IdentityMappingService, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentRunStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChannelReplyJobStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryInviteLinkStore, InMemoryLeaseStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOidcIdentityClaimStore, InMemoryOidcProviderConfigStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryPlatformInvitationStore, InMemoryPlatformMemberStore, InMemoryPlatformSettingsStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryProjectStore, InMemorySharedResourceStore, InMemoryStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserExternalIdentityStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LEGACY_ROOT_SANDBOX_IMAGE, 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, NONROOT_SANDBOX_IMAGE, 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, type ProjectRoomMessageCommittedListener, ProjectRoomMessageIdConflictError, ProjectRoomMessageNotifier, 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 ResolvedSandboxRuntime, 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_AGENTS_ROOT, SANDBOX_DEFAULT_IMAGE, SANDBOX_HOME, SANDBOX_KNOWLEDGEBASE_ROOT, SANDBOX_LEGACY_ROOT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, SANDBOX_PLUGINS_ROOT, SANDBOX_PLUGIN_HOST_DIR, SANDBOX_PLUGIN_HOST_SERVER_PATH, SANDBOX_PLUGIN_SKILL_MANIFEST_PATH, SANDBOX_RUNTIME_PROFILE, SANDBOX_SDK_ROOT, SANDBOX_SKILLS_ROOT, SHARE_CARD_APP_HTML, SHARE_CARD_UI_RESOURCE, 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 SandboxRuntimeProfile, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleExpiredRunOptions, type SettleRunInput, type SettleRunOutcome, type SharePayload, SharePayloadError, 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, appSharePlugin, 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, clearAuthProvidersForTests, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCollectionSync, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createCapabilityGuardMiddleware, createCodeEvalTool, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createLongTermStoreMiddleware, createMapNode, createMcpAppSharePayload, 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, forgetTenantModelSupply, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getAuthProvider, 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, getSandboxOpenGatewayUrl, 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, listAuthProviders, listCollectionEntries, listMenuGroupsSchema, 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, projectRoomMessageNotifier, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishCollectionChanged, publishPluginCatalogChanged, publishTargetSchema, queueLatticeManager, readContextWindow, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerAuthProvider, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerObservabilityLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxOpenGatewayUrlProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, rememberTenantModelSupply, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEmbeddingEndpoint, resolveEmbeddingShape, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolveObservabilityCallbacks, resolvePath, resolvePinoFileOptions, resolvePluginConnections, resolveSandboxAgentsPathAlias, resolveSandboxPluginConnections, resolveSandboxRuntime, 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, tenantHasOwnModelSupply, tenantHasOwnModelSupplySync, 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 };
18298
+ declare const genUIMarkdown: (type: string, data: any) => string;
18299
+
18300
+ 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, AuthProviderAlreadyRegisteredError, 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, DuplicateShareTokenError, 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_MAX_TIMEOUT_MS, HEALTH_CHECK_TIMEOUT_MS, type HandlerEnvelope, type HostArgs, type IAgentRunLedger, type IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, IdentityMappingConfigError, type IdentityMappingDependencies, type IdentityMappingOptions, type IdentityMappingResult, IdentityMappingService, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentRunStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChannelReplyJobStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryInviteLinkStore, InMemoryLeaseStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOidcIdentityClaimStore, InMemoryOidcProviderConfigStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryPlatformAuditStore, InMemoryPlatformInvitationStore, InMemoryPlatformMemberStore, InMemoryPlatformSettingsStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryProjectStore, InMemorySharedResourceStore, InMemoryStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserEmailConflictError, InMemoryUserExternalIdentityStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, InMemoryWorkspaceStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LEGACY_ROOT_SANDBOX_IMAGE, 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 McpScopeOptions, 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, NONROOT_SANDBOX_IMAGE, ObservabilityDashboardUnavailableError, ObservabilityDashboardUnsupportedError, ObservabilityLatticeManager, type ObservabilityObservation, type ObservabilityObservationType, type ObservabilityProvider, type ObservabilityProviderCapabilities, type ObservabilityTraceContext, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_MS, PERSONAL_MCP_MAX_SERVERS, PERSONAL_MCP_SYNC_BUDGET_MS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, type PersonalMcpSyncResult, 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, type ProjectRoomMessageCommittedListener, ProjectRoomMessageIdConflictError, ProjectRoomMessageNotifier, 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 ResolvedSandboxRuntime, 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_AGENTS_ROOT, SANDBOX_DEFAULT_IMAGE, SANDBOX_HOME, SANDBOX_KNOWLEDGEBASE_ROOT, SANDBOX_LEGACY_ROOT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, SANDBOX_PLUGINS_ROOT, SANDBOX_PLUGIN_HOST_DIR, SANDBOX_PLUGIN_HOST_SERVER_PATH, SANDBOX_PLUGIN_SKILL_MANIFEST_PATH, SANDBOX_RUNTIME_PROFILE, SANDBOX_SDK_ROOT, SANDBOX_SKILLS_ROOT, SHARE_CARD_APP_HTML, SHARE_CARD_UI_RESOURCE, 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 SandboxRuntimeProfile, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleExpiredRunOptions, type SettleRunInput, type SettleRunOutcome, type SharePayload, SharePayloadError, 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, appSharePlugin, 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, clearAuthProvidersForTests, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCollectionSync, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, countPersonalMcpServers, createAgentNode, createCapabilityGuardMiddleware, createCodeEvalTool, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createLongTermStoreMiddleware, createMapNode, createMcpAppSharePayload, 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, ensurePersonalMcpForAssistant, ensurePluginAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAgentRunInputMessageIds, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, forgetTenantModelSupply, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, genUIMarkdown, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getAuthProvider, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMcpUiScopeSecret, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPersonalMcpMaxServers, getPersonalMcpStore, getPersonalMcpSyncBudgetMs, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxOpenGatewayUrl, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, handlerResultText, hasChunkBuffer, hasDelegatedWorkerToken, hasModelLatticeForTenant, hasModelLatticeForTenantSync, hasRuntimeCapabilityPolicy, installPluginHost, invalidatePersonalMcpSync, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isEncryptedValue, isMcpConnectionError, isOfficialInterruptId, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isTaskRunLeaseHeld, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listAuthProviders, listCollectionEntries, listMenuGroupsSchema, 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, projectRoomMessageNotifier, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishCollectionChanged, publishPluginCatalogChanged, publishTargetSchema, purgePersonalMcpForAssistant, queueLatticeManager, readContextWindow, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, reconcileToolSelection, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerAuthProvider, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerObservabilityLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxOpenGatewayUrlProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, rememberTenantModelSupply, removeCollectionVectorStore, removePersonalMcpServer, renderTemplate, resetReplicaIdForTests, resolveEmbeddingEndpoint, resolveEmbeddingShape, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolveObservabilityCallbacks, resolvePath, resolvePinoFileOptions, resolvePluginConnections, resolveSandboxAgentsPathAlias, resolveSandboxPluginConnections, resolveSandboxRuntime, 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, tenantHasOwnModelSupply, tenantHasOwnModelSupplySync, 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 };