@axiom-lattice/core 6.4.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -8,7 +8,7 @@ import { BaseLanguageModelInput, LanguageModelLike } from '@langchain/core/langu
8
8
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
9
9
  import { ChatResult } from '@langchain/core/outputs';
10
10
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
11
- import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, DeepAgentConfig, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TrustedRunContext, QueuedExecutionMode, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, ModelProviderStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, LeaseStore, OutboxStore, PluginDeploymentStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ModelProviderEntry, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderStatus, ModelProviderModelEntry, ProviderModelInput, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateShareRequest, ChannelAdapter, InterruptPolicy, 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, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, DeepAgentConfig, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TrustedRunContext, QueuedExecutionMode, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, ModelProviderStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, LeaseStore, OutboxStore, PluginDeploymentStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderStatus, ProviderModelInput, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateShareRequest, ChannelAdapter, InterruptPolicy, ProjectTaskLifecycleAction, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, SandboxPluginManifest, SandboxPluginToolDef, SandboxPluginDiagnostic, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
12
12
  export { _axiom_lattice_protocols as Protocols };
13
13
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType, ProjectRoomTrustedRunContext, QueuedExecutionMode, TrustedRunContext, parseQueuedExecutionMode, parseTrustedRunContext } from '@axiom-lattice/protocols';
14
14
  import * as langchain from 'langchain';
@@ -232,6 +232,20 @@ declare class ModelLattice extends BaseChatModel {
232
232
  raw: BaseMessage;
233
233
  parsed: RunOutput;
234
234
  }>;
235
+ /**
236
+ * 解析出传给 chat model 构造器的 API Key。
237
+ *
238
+ * `noAuth` 表示上游不需要凭据(自建的 Ollama / vLLM / LM Studio 都是如此)。
239
+ * 此时返回空串而不是 `undefined` —— 两者都「没有 key」,但 SDK 的处理完全不同:
240
+ * `undefined` 会让 OpenAI SDK 抛错、也会让 `??` 回退到环境变量;空串则被视为
241
+ * 一个明确的「无凭据」,构造照常、请求照发,且不会把网关自己的部署凭据
242
+ * (`OPENAI_API_KEY` 等)发给租户配置的主机。
243
+ *
244
+ * @param config LLM 配置
245
+ * @param envName 该 provider 的默认环境变量名
246
+ * @returns API Key;无凭据时为空串
247
+ */
248
+ private resolveApiKey;
235
249
  /**
236
250
  * 创建LLM实例
237
251
  * @param config LLM配置
@@ -252,6 +266,13 @@ interface ModelLatticeInterface {
252
266
  */
253
267
  declare class ModelLatticeManager extends BaseLatticeManager<ModelLatticeInterface> {
254
268
  private static _instance;
269
+ /**
270
+ * When a tenant was last found to have no default model, keyed by tenant.
271
+ *
272
+ * Only the absence is recorded — a tenant that has one gets it registered by
273
+ * the base class. See {@link TENANT_DEFAULT_MISS_TTL_MS}.
274
+ */
275
+ private readonly tenantDefaultMissAt;
255
276
  /**
256
277
  * 获取ModelLatticeManager单例实例
257
278
  */
@@ -319,6 +340,67 @@ declare class ModelLatticeManager extends BaseLatticeManager<ModelLatticeInterfa
319
340
  * @param key Lattice键名
320
341
  */
321
342
  hasLatticeWithTenant(tenantId: string, key: string): boolean;
343
+ /**
344
+ * 获取指定租户的模型Lattice(异步,未命中时从 store 回退加载)
345
+ *
346
+ * 内存未命中且该 key 是租户自有模型(`${providerId}/${modelId}`)时,
347
+ * 从 `modelProvider` store 读一行并注册进内存。
348
+ *
349
+ * @param tenantId 租户ID
350
+ * @param key Lattice键名
351
+ */
352
+ getModelLatticeOrLoad(tenantId: string, key: string): Promise<ModelLatticeInterface | undefined>;
353
+ /**
354
+ * 检查指定租户的模型Lattice是否存在(异步,未命中时从 store 回退加载)
355
+ *
356
+ * @param tenantId 租户ID
357
+ * @param key Lattice键名
358
+ */
359
+ hasModelLatticeOrLoad(tenantId: string, key: string): Promise<boolean>;
360
+ /**
361
+ * 从 store 物化一个本进程从未注册过的模型。
362
+ *
363
+ * `BaseLatticeManager` 在内存未命中时调用这里(`getOrLoadWithTenant` /
364
+ * `hasOrLoadWithTenant`),注册由基类完成。
365
+ *
366
+ * **只有租户自有的模型会从 store 加载。** key 必须是 `${providerId}/${modelId}`
367
+ * 形状;解析不出来的裸 key(部署在 `default` 命名空间下注册的
368
+ * `"default"`、`"qwen3.8-flash"` 等)一律返回 undefined —— 它们不归任何租户,
369
+ * 由调用方回退到 `default` 命名空间(见 `resolveModelLatticeForTenant`)。
370
+ *
371
+ * 这是多副本下「正确性不依赖副本之间同步」的落点:一个从未跑过 discovery
372
+ * 的副本,第一次用到某个模型时会读**共享的** PostgreSQL,之后留在本地缓存里。
373
+ *
374
+ * 任何失败(store 未注册、行不存在、provider 或 model 被禁用)都返回
375
+ * undefined,不抛错 —— 解析不到模型应由调用方判断,而不是让基类的加载路径炸掉。
376
+ *
377
+ * @param tenantId 租户ID
378
+ * @param key Lattice键名(`${providerId}/${modelId}`)
379
+ */
380
+ protected loadItemFromStore(tenantId: string, key: string): Promise<ModelLatticeInterface | undefined>;
381
+ /**
382
+ * Forget that a tenant had no default model.
383
+ *
384
+ * The absence is cached for a short window (see
385
+ * {@link TENANT_DEFAULT_MISS_TTL_MS}), which is a trade: without it every
386
+ * legacy tenant would read the store on every fallback resolution, with it a
387
+ * newly named default is ignored until the window lapses. A caller that has
388
+ * just changed the tenant's models knows better than the window does, so it
389
+ * says so.
390
+ *
391
+ * @param tenantId 租户ID
392
+ */
393
+ forgetTenantDefaultMiss(tenantId: string): void;
394
+ /**
395
+ * Resolve a tenant's own default model, if they named one.
396
+ *
397
+ * `undefined` means they have not, and the caller falls through to the
398
+ * deployment's model registered under the same key.
399
+ *
400
+ * @param store The tenant's model provider store
401
+ * @param tenantId 租户ID
402
+ */
403
+ private loadTenantDefault;
322
404
  /**
323
405
  * 获取指定租户的所有模型Lattice
324
406
  * @param tenantId 租户ID
@@ -353,6 +435,115 @@ declare const registerModelLattice: (key: string, config: ModelConfig) => void;
353
435
  declare const registerModelLatticeForTenant: (tenantId: string, key: string, config: ModelConfig) => void;
354
436
  declare const getModelLattice: (key: string) => ModelLatticeInterface;
355
437
 
438
+ /**
439
+ * Build the runtime `LLMConfig` for one model of a tenant provider.
440
+ *
441
+ * One implementation with two callers: the gateway's provider service (when a
442
+ * model is registered after discovery or selection) and the model registry's
443
+ * own lazy loader (when a replica meets a model it has never registered — see
444
+ * `ModelLatticeManager.loadItemFromStore`).
445
+ *
446
+ * It lives in core, not the gateway, because the loader runs inside the
447
+ * registry. Keeping one copy is the point: two implementations of "how a
448
+ * provider row becomes a runtime config" would drift, and the security rules
449
+ * below are exactly the kind that must not drift.
450
+ */
451
+
452
+ /**
453
+ * Thrown when a provider names an LLM provider this build cannot run.
454
+ *
455
+ * Defined here rather than borrowed from the gateway so core can enforce the
456
+ * rule without depending on gateway error types; the gateway wraps it back
457
+ * into its own `ModelProviderServiceError` at the API boundary.
458
+ */
459
+ declare class UnsupportedModelProviderError extends Error {
460
+ readonly llmProvider: string;
461
+ readonly code = "UNSUPPORTED_PROTOCOL";
462
+ constructor(llmProvider: string);
463
+ }
464
+ /**
465
+ * Turn a provider row and one of its model rows into a runtime config.
466
+ *
467
+ * The model's own `extra` is merged first and the provider's settings are
468
+ * applied on top, so a per-model config can tune behaviour but cannot decide
469
+ * *where* the request goes: `provider`, `apiKey`, `baseURL` and `model` are
470
+ * always the provider's. `apiKeyEnvName` is stripped — it names a process
471
+ * environment variable to read a credential from, which is what makes a
472
+ * keyless provider able to borrow the gateway's own deployment key.
473
+ *
474
+ * @param provider - The owning provider
475
+ * @param model - The model row
476
+ * @returns A config ready for `new ModelLattice(config)`
477
+ * @throws {UnsupportedModelProviderError} When the provider is not runnable here
478
+ */
479
+ declare function buildModelLlmConfig(provider: ModelProviderEntry, model: ModelProviderModelEntry): LLMConfig;
480
+
481
+ /**
482
+ * Tenant-scoped model resolution.
483
+ *
484
+ * One entry point for every consumer that needs "the model this run should
485
+ * use", so the policy lives in one place instead of being re-derived — and
486
+ * drifting — at ten call sites.
487
+ *
488
+ * @module @axiom-lattice/core/model_lattice/resolveModelLattice
489
+ */
490
+
491
+ /**
492
+ * Resolve a model for a tenant, falling back to the deployment namespace.
493
+ *
494
+ * Order:
495
+ *
496
+ * 1. **The tenant's own models.** A miss is loaded from the `modelProvider`
497
+ * store by `ModelLatticeManager.loadItemFromStore`, then cached in this
498
+ * process. That is what lets a replica which never ran discovery — or a
499
+ * gateway that just restarted — still execute a tenant's model, without any
500
+ * replica-to-replica synchronisation.
501
+ * 2. **The `default` namespace**, where the deployment registers models at
502
+ * boot via `registerModelLattice`. Those are not tenant-owned, and a bare
503
+ * key such as `"default"` or `"qwen3.8-flash"` resolves only here.
504
+ *
505
+ * Step 2 mirrors what tools already do in `AgentParamsBuilder`
506
+ * (`getToolLatticeWithTenant(tenantId, key) ?? getToolLatticeWithTenant("default", key)`),
507
+ * and is what keeps legacy agent configs — which name bare keys — working
508
+ * unchanged for every tenant.
509
+ *
510
+ * The key `"default"` is special: step 1 resolves it to the model the *tenant*
511
+ * marked as their default, so callers that fall back to it get the tenant's
512
+ * choice without knowing any of this. A tenant that marked none resolves to
513
+ * nothing there and lands on the deployment's model in step 2, exactly as
514
+ * before.
515
+ *
516
+ * @param tenantId - The tenant the run belongs to
517
+ * @param modelKey - A tenant model key (`${providerId}/${modelId}`), the
518
+ * `"default"` fallback key, or a bare legacy key
519
+ * @returns The lattice, or undefined when neither namespace has it
520
+ */
521
+ declare function resolveModelLatticeForTenant(tenantId: string, modelKey: string): Promise<ModelLatticeInterface | undefined>;
522
+ /**
523
+ * Whether a tenant can resolve a model key.
524
+ *
525
+ * The existence-check counterpart of {@link resolveModelLatticeForTenant}:
526
+ * same two namespaces, same lazy loading.
527
+ *
528
+ * @param tenantId - The tenant the run belongs to
529
+ * @param modelKey - A tenant model key or a bare legacy key
530
+ */
531
+ declare function hasModelLatticeForTenant(tenantId: string, modelKey: string): Promise<boolean>;
532
+ /**
533
+ * The models a tenant may choose from: their own, plus the deployment's.
534
+ *
535
+ * The list counterpart of the two resolvers above. Unlike them it cannot be
536
+ * lazy — enumerating a tenant's models does not name any key to load — so it
537
+ * returns what this process currently holds. A model appears here once
538
+ * something has resolved it, or after the tenant's registry is hydrated.
539
+ *
540
+ * Tenant entries win on key collision, matching the tool lookup in
541
+ * `AgentParamsBuilder`.
542
+ *
543
+ * @param tenantId - The tenant whose models to list
544
+ */
545
+ declare function listModelLatticesForTenant(tenantId: string): ModelLatticeInterface[];
546
+
356
547
  /**
357
548
  * SQL Tool Types
358
549
  * Type definitions for SQL database tools
@@ -1650,10 +1841,18 @@ interface SandboxFileService {
1650
1841
  createDirectory(path: string): Promise<void>;
1651
1842
  }
1652
1843
  interface SandboxShellService {
1844
+ /**
1845
+ * Execute a command in the sandbox shell.
1846
+ *
1847
+ * @param params.command - Shell command to run.
1848
+ * @param params.exec_dir - Working directory (optional).
1849
+ * @param params.timeoutMs - Maximum execution time in **milliseconds** (optional).
1850
+ */
1653
1851
  execCommand(params: {
1654
1852
  command: string;
1655
1853
  exec_dir?: string;
1656
- timeout?: number;
1854
+ /** Maximum execution time in milliseconds. */
1855
+ timeoutMs?: number;
1657
1856
  }): Promise<{
1658
1857
  output: string;
1659
1858
  exit_code: number;
@@ -6239,7 +6438,8 @@ interface MicrosandboxShellExecInput {
6239
6438
  sandboxName: string;
6240
6439
  command: string;
6241
6440
  exec_dir?: string;
6242
- timeout?: number;
6441
+ /** Maximum execution time in milliseconds. */
6442
+ timeoutMs?: number;
6243
6443
  }
6244
6444
  interface MicrosandboxServiceClientConfig {
6245
6445
  baseURL: string;
@@ -6652,8 +6852,8 @@ declare class RemoteSandboxInstance implements SandboxInstance {
6652
6852
  declare const MAX_PACK_ENTRIES = 10000;
6653
6853
  declare const MAX_PACK_FILE_BYTES: number;
6654
6854
  declare const MAX_PACK_TOTAL_BYTES: number;
6655
- /** Maximum wall-clock time for one remote/local folder pack shell invocation. */
6656
- declare const PACK_DIRECTORY_TIMEOUT_SECONDS: number;
6855
+ /** Maximum wall-clock time for one remote/local folder pack shell invocation, in milliseconds. */
6856
+ declare const PACK_DIRECTORY_TIMEOUT_MS: number;
6657
6857
  /** Result of validating a pack source path. */
6658
6858
  interface PackSourceInfo {
6659
6859
  /** Basename of the source folder, e.g. `reports`. */
@@ -7623,20 +7823,17 @@ declare const DEFAULT_CALIBRATION_PROBES: CalibrationProbe[];
7623
7823
  /**
7624
7824
  * Resolve the judge model for an eval project: an explicit judgeModelKey wins;
7625
7825
  * otherwise the model registered under the "default" key (the convention apps
7626
- * use — see examples/deep_research), then the first registered model as a last
7627
- * resort. Throws only when no model is registered at all.
7826
+ * use — see examples/deep_research), then the first available model as a last
7827
+ * resort. Throws only when no model is available at all.
7628
7828
  *
7629
- * Phase 1 resolves against the `default` tenant, like every other consumer of
7630
- * the model registry: models are only ever registered there (see
7631
- * `ModelProviderService.PHASE1_REGISTRY_TENANT`), and a single consumer that
7632
- * resolves by tenant while the rest do not is how this drifted out of sync
7633
- * with `eval-runner`. Phase 2 moves the whole set together.
7829
+ * `available` arrives already scoped to the project's tenant. The caller holds
7830
+ * both the tenant and the async context needed to load a model this replica
7831
+ * has not seen — resolving here would hide both, which is exactly how this
7832
+ * drifted out of sync with `eval-runner` before.
7634
7833
  */
7635
- declare function resolveJudgeModelKey(explicitKey: string | undefined, manager: {
7636
- getAllLattices: () => Array<{
7637
- key: string;
7638
- }>;
7639
- }): string;
7834
+ declare function resolveJudgeModelKey(explicitKey: string | undefined, available: ReadonlyArray<{
7835
+ key: string;
7836
+ }>): string;
7640
7837
  /**
7641
7838
  * Manages a project with multiple evaluation suites.
7642
7839
  * Registers a per-project judge agent (keyed by project name and tenant)
@@ -9209,6 +9406,8 @@ interface ProjectMutationScope {
9209
9406
  declare class ProjectMutationMutex {
9210
9407
  private readonly queues;
9211
9408
  private readonly active;
9409
+ /** Project keys already held by the current async context (reentrancy). */
9410
+ private readonly held;
9212
9411
  /** Runs one mutation after all earlier mutations for the same Tenant and Project. */
9213
9412
  runExclusive<T>(scope: ProjectMutationScope, operation: () => Promise<T>, signal?: AbortSignal): Promise<T>;
9214
9413
  /** Returns the number of operations queued behind the current holder. */
@@ -9917,6 +10116,13 @@ interface RoomAgentInterruptInput {
9917
10116
  sourceRoomMessageId: string;
9918
10117
  inputMessageId: string;
9919
10118
  }
10119
+ /** Source-less HITL interrupt input whose scope is derived from the validated durable membership. */
10120
+ interface RoomAgentCorrelatedInterruptInput {
10121
+ tenantId: string;
10122
+ membershipId: string;
10123
+ correlationKey: string;
10124
+ text: string;
10125
+ }
9920
10126
  /**
9921
10127
  * Observes a canonical Agent-authored room message after durable persistence.
9922
10128
  *
@@ -9981,6 +10187,16 @@ declare class RoomAgentMessageService {
9981
10187
  * @returns A deep clone of the canonical idempotent room message.
9982
10188
  */
9983
10189
  postInterrupt(input: RoomAgentInterruptInput): Promise<ProjectRoomMessage>;
10190
+ /**
10191
+ * Persists a correlated HITL interrupt that has no human source message.
10192
+ *
10193
+ * @param input Explicit tenant, active membership, caller-supplied correlation key, and text.
10194
+ * @returns A deep clone of the canonical idempotent room message.
10195
+ * @remarks Business-agnostic: the caller owns the correlation key. Scope is
10196
+ * validated against the durable membership; no source message is required.
10197
+ */
10198
+ postCorrelatedInterrupt(input: RoomAgentCorrelatedInterruptInput): Promise<ProjectRoomMessage>;
10199
+ private persistScoped;
9984
10200
  private persistDerived;
9985
10201
  private persist;
9986
10202
  private notifyCommitted;
@@ -11585,17 +11801,51 @@ declare function clearEncryptionKeyCache(): void;
11585
11801
  * @returns A shallow copy with the named string fields encrypted.
11586
11802
  */
11587
11803
  declare function encryptConfigFields(config: Record<string, unknown>, fields?: string[]): Record<string, unknown>;
11804
+ /**
11805
+ * Decrypt a value without ever throwing.
11806
+ *
11807
+ * Returns the plaintext when the value decrypts with the current key. Any
11808
+ * failure (wrong key, corrupt data, or a legacy plaintext value whose field was
11809
+ * only later marked secret) is logged as a warning and degrades to an empty
11810
+ * string. This keeps batch reads — e.g. listing every configured connection —
11811
+ * from failing wholesale because a single record cannot be decrypted, while
11812
+ * never returning stored ciphertext as if it were plaintext.
11813
+ *
11814
+ * @param value - Stored value (ciphertext or, for legacy rows, plaintext).
11815
+ * @param context - Optional label describing the value, included in the warning.
11816
+ * @returns The decrypted plaintext, or `""` when it cannot be decrypted.
11817
+ */
11818
+ declare function safeDecrypt(value: string, context?: string): string;
11819
+ /**
11820
+ * Heuristic: does this stored string look like our AES-GCM ciphertext?
11821
+ *
11822
+ * Our {@link encrypt} output is the canonical base64 encoding of
11823
+ * `salt(32) + iv(16) + ciphertext + authTag(16)`, so it always decodes to at
11824
+ * least 64 bytes and re-encodes byte-for-byte. Plaintext secrets (API keys,
11825
+ * UUIDs, JWTs, connection keys) fail one or both checks. Used by one-time
11826
+ * remediation to decide which legacy values still need encrypting; a value that
11827
+ * merely *looks* encrypted is left untouched so real ciphertext is never
11828
+ * destroyed.
11829
+ *
11830
+ * @param value - Stored value to inspect.
11831
+ * @returns `true` when the value is plausibly our ciphertext.
11832
+ */
11833
+ declare function isEncryptedValue(value: string): boolean;
11588
11834
  /**
11589
11835
  * Decrypt the named fields of a stored config record.
11590
11836
  *
11591
11837
  * Inverse of {@link encryptConfigFields}. Only non-empty string values are
11592
- * touched; a decryption failure throws so corrupt/mis-keyed data never leaks
11593
- * as ciphertext to callers.
11838
+ * touched. A field that cannot be decrypted (wrong key, corrupt data, or a
11839
+ * plaintext value whose key was later marked secret) is **not** fatal: it is
11840
+ * replaced with an empty string and a warning is logged, so reading a whole
11841
+ * collection (e.g. `list_connections`) still returns every configured entry
11842
+ * instead of failing as a batch. The stored ciphertext is never returned as
11843
+ * plaintext.
11594
11844
  *
11595
11845
  * @param config Stored config record (may contain ciphertext).
11596
11846
  * @param fields Field names to decrypt. Empty/undefined returns `config`.
11597
- * @returns A shallow copy with the named string fields decrypted.
11598
- * @throws {Error} If a declared field cannot be decrypted.
11847
+ * @returns A shallow copy with the named string fields decrypted (or emptied
11848
+ * when a field cannot be decrypted).
11599
11849
  */
11600
11850
  declare function decryptConfigFields(config: Record<string, unknown>, fields?: string[]): Record<string, unknown>;
11601
11851
 
@@ -12028,7 +12278,7 @@ interface ResidentRoutingDeps {
12028
12278
  * @param pluginType - Plugin type addressed by the invocation.
12029
12279
  */
12030
12280
  ensureRunning?(tenantId: string, pluginType: string): Promise<void>;
12031
- /** Sandbox-service base URL (`MICROSANDBOX_SERVICE_URL`). */
12281
+ /** Sandbox-service base URL (`MICROSANDBOX_SERVICE_BASE_URL`). */
12032
12282
  baseUrl: string;
12033
12283
  /** Sandbox-service API key, sent as `Authorization: Bearer` when present. */
12034
12284
  serviceKey?: string;
@@ -12110,6 +12360,22 @@ interface SandboxPluginResult {
12110
12360
  /** Raw stderr captured from the handler (currently always empty). */
12111
12361
  stderr: string;
12112
12362
  }
12363
+ /**
12364
+ * Normalize a successful handler outcome into the text surfaced as the tool
12365
+ * result (and the MCP App `ui/notifications/tool-result` payload).
12366
+ *
12367
+ * Handlers must emit `{ ok: true, result: <payload> }`. When a handler reports
12368
+ * success but omits `result` (a contract violation), fall back to the raw
12369
+ * stdout so the data stays visible instead of collapsing to the string
12370
+ * `"null"` (which hides the mistake behind a valid-looking result).
12371
+ *
12372
+ * @param result - Normalized handler outcome.
12373
+ * @returns The text to surface to the caller / MCP App View.
12374
+ */
12375
+ declare function handlerResultText(result: {
12376
+ result?: unknown;
12377
+ stdout?: string;
12378
+ }): string;
12113
12379
  /**
12114
12380
  * Executes tenant sandbox plugin handlers via the tenant sandbox shell.
12115
12381
  *
@@ -13015,7 +13281,7 @@ interface ResidentInvokeArgs {
13015
13281
  * @example
13016
13282
  * ```ts
13017
13283
  * const result = await invokeResident({
13018
- * baseUrl: process.env.MICROSANDBOX_SERVICE_URL ?? "",
13284
+ * baseUrl: process.env.MICROSANDBOX_SERVICE_BASE_URL ?? "",
13019
13285
  * endpointPath: deployment.endpoint,
13020
13286
  * serviceKey: process.env.MICROSANDBOX_API_KEY,
13021
13287
  * payload: { handler: "handlers/weather.js", input: { city: "SF" }, context: { tenantId } },
@@ -14343,4 +14609,4 @@ declare function parseDirectRoomType(projectId: string): "human" | "bot" | null;
14343
14609
  */
14344
14610
  declare function isDirectRoom(projectId: string): boolean;
14345
14611
 
14346
- export { AGENT_TASK_EVENT, type AddMessageParams, type AddMessageResult, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, type AssignTaskOwnerInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BeginRunFailure, type BeginRunInput, type BeginRunResult, type BeginRunSuccess, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, 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, type ClaimMessagesOptions, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, type ConnectionPayloadInput, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, DelegatedScopeNotQueueableError, type DeleteResult, DependencyResolver, type DispatchPreparation, DuplicateProjectRoomMessageIdempotencyKeyError, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, 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 IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryLeaseStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, LeaseAcquisitionTimeoutError, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_HANDLER_TIMEOUT_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, MIN_HANDLER_TIMEOUT_MS, type MailboxMessage, type MailboxStore, ManagedTaskStartError, type ManagedTaskStartOptions, type ManifestValidationResult, type McpClientFactory, type McpClientLike, type McpClientSession, type McpConnectionOptions, McpLatticeManager, type McpRegisterOptions, type McpServerId, type McpServerRuntime, type McpServerState, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MergedPluginSkills, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageInterruptedEvent, type MessageLike, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_SECONDS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, type PluginDeploymentRuntimeHealth, PluginDeploymentRuntimeRegistry, type PluginDeploymentRuntimeRegistryOptions, type PluginDeploymentServiceDeployOptions, type PluginDeploymentServiceDeployResult, type PluginDeploymentServiceLike, type PluginDeploymentServiceListEntry, type PluginDeploymentServiceMode, type PluginDeploymentServiceStatus, type PluginDeploymentServiceUndeployResult, PluginRegistry, type PluginSources, type PostProcessTaskMutationResponseInput, PostgresDatabase, type PreviewError, ProjectBotMembershipIdConflictError, ProjectMutationMutex, type ProjectMutationScope, ProjectRoomMessageIdConflictError, type ProjectTaskAdmissionListener, type ProjectTaskAdmissionNotification, ProjectTaskAdmissionNotifier, type ProjectTaskAdmissionNotifierOptions, type ProjectTaskAssignmentScope, ProjectTaskOwnerPolicy, type ProjectTaskOwnerPolicyCode, ProjectTaskOwnerPolicyError, type ProjectTaskReassignmentAuthorization, type ProjectTaskReassignmentAuthorizationInput, type ProjectTaskReassignmentAuthorizer, type ProjectTaskReassignmentThreadValidationInput, type ProjectTaskReassignmentThreadValidator, type ProjectTaskRosterScope, PrometheusClient, type ProvisionFileSink, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, ROOM_COORDINATOR_KEY, type ReassignProjectTaskInput, type ReconcileAllTenantTaskRunsInput, type ReconcileStaleTaskRunsInput, type ReconcileStaleTaskRunsResult, type ReconcileTaskDescriptionInput, type ReconcileTenantTaskRunsInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RepeatedToolCallBreakerOptions, RepeatedToolCallError, type ReplyReadyEvent, type ResidentConnectionConfig, type ResidentDeployment, type ResidentInvokeArgs, type ResidentInvokePayload, type ResidentInvokeResult, type ResidentRoutingDeps, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunAsLeaderOptions, type RunAsLeaderResult, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxOpenClientBundle, type SandboxOpenCredential, type SandboxOpenCredentialContext, type SandboxOpenCredentialProvider, type SandboxOpenCredentialProviderOptions, SandboxPluginExecutor, type SandboxPluginExecutorDeps, type SandboxPluginInvokeArgs, type SandboxPluginResult, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxResolver, type SandboxRunConfig, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleRunInput, type SettleRunOutcome, type SharePayload, 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 TaskEvent, type TaskExecutionFailure, type TaskExecutionManaged, type TaskExecutionResult, type TaskExecutionServiceDeps, type TaskExecutionSuccess, type TaskLifecycleListener, type TaskLifecycleNotification, TaskLifecycleNotifier, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskListStore, type TaskResponseParseResult, type TaskRunBridge, type TaskRunBridgeDeps, TaskRunBridgeStoresRequiredError, type TaskRunLeaseHandle, TaskRunRegistry, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, TenantPluginCatalog, type TenantPluginCatalogDeps, type TenantPlugins, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadEndCode, ThreadEndError, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadRunLeaseHandle, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type TryAcquireTaskRunInput, type TryAcquireThreadRunInput, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WithLeaseOptions, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, assertSafeUpstreamUrl, buildBundleFromDist, buildConnectionPayload, buildGrepResultsDict, buildHandlerCommand, buildInput, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSandboxOpenEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createAgentTeam, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProjectRoomMiddleware, createProjectTaskOwnerPolicy, createProjectTaskReassignmentAuthorizer, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createRepeatedToolCallBreakerMiddleware, createResourceAddress, createSandboxProvider, createSandboxResolver, createSchedulerMiddleware, createSharePayload, createShellExecTool, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTeamMiddleware, createTeammateTools, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, decryptConfigFields, describeCronExpression, disconnectAllChannels, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encodeInput, encrypt, encryptConfigFields, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, hasDelegatedWorkerToken, hasRuntimeCapabilityPolicy, installPluginHost, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isMcpConnectionError, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listSandboxProviderTypes, listTenantPlugins, loggerLatticeManager, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeSandboxName, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseHandlerEnvelope, parseHostArgs, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, pluginHostContentHash, postProcessTaskMutationResponse, prepareTaskDispatch, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishPluginCatalogChanged, queueLatticeManager, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveTenantPluginSkill, roomCoordinatorConfig, runAsLeader, runRemotePackDirectory, safeTaskResponseId, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setBindingRegistry, setEvalRunService, setMenuRegistry, setPluginDeploymentService, setSandboxPluginCatalog, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunLeaseKey, taskRunRegistry, threadRunLeaseKey, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, tryAcquireTaskRun, tryAcquireThreadRun, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, withLease, withTimeout, wrapMcpToolWithUi };
14612
+ export { AGENT_TASK_EVENT, type AddMessageParams, type AddMessageResult, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, type AssignTaskOwnerInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BeginRunFailure, type BeginRunInput, type BeginRunResult, type BeginRunSuccess, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, 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, type ClaimMessagesOptions, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, type ConnectionPayloadInput, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, DelegatedScopeNotQueueableError, type DeleteResult, DependencyResolver, type DispatchPreparation, DuplicateProjectRoomMessageIdempotencyKeyError, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, 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 IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryLeaseStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, LeaseAcquisitionTimeoutError, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_HANDLER_TIMEOUT_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, MIN_HANDLER_TIMEOUT_MS, type MailboxMessage, type MailboxStore, ManagedTaskStartError, type ManagedTaskStartOptions, type ManifestValidationResult, type McpClientFactory, type McpClientLike, type McpClientSession, type McpConnectionOptions, McpLatticeManager, type McpRegisterOptions, type McpServerId, type McpServerRuntime, type McpServerState, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MergedPluginSkills, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageInterruptedEvent, type MessageLike, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_MS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, type PluginDeploymentRuntimeHealth, PluginDeploymentRuntimeRegistry, type PluginDeploymentRuntimeRegistryOptions, type PluginDeploymentServiceDeployOptions, type PluginDeploymentServiceDeployResult, type PluginDeploymentServiceLike, type PluginDeploymentServiceListEntry, type PluginDeploymentServiceMode, type PluginDeploymentServiceStatus, type PluginDeploymentServiceUndeployResult, PluginRegistry, type PluginSources, type PostProcessTaskMutationResponseInput, PostgresDatabase, type PreviewError, ProjectBotMembershipIdConflictError, ProjectMutationMutex, type ProjectMutationScope, ProjectRoomMessageIdConflictError, type ProjectTaskAdmissionListener, type ProjectTaskAdmissionNotification, ProjectTaskAdmissionNotifier, type ProjectTaskAdmissionNotifierOptions, type ProjectTaskAssignmentScope, ProjectTaskOwnerPolicy, type ProjectTaskOwnerPolicyCode, ProjectTaskOwnerPolicyError, type ProjectTaskReassignmentAuthorization, type ProjectTaskReassignmentAuthorizationInput, type ProjectTaskReassignmentAuthorizer, type ProjectTaskReassignmentThreadValidationInput, type ProjectTaskReassignmentThreadValidator, type ProjectTaskRosterScope, PrometheusClient, type ProvisionFileSink, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, ROOM_COORDINATOR_KEY, type ReassignProjectTaskInput, type ReconcileAllTenantTaskRunsInput, type ReconcileStaleTaskRunsInput, type ReconcileStaleTaskRunsResult, type ReconcileTaskDescriptionInput, type ReconcileTenantTaskRunsInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RepeatedToolCallBreakerOptions, RepeatedToolCallError, type ReplyReadyEvent, type ResidentConnectionConfig, type ResidentDeployment, type ResidentInvokeArgs, type ResidentInvokePayload, type ResidentInvokeResult, type ResidentRoutingDeps, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RoomAgentCorrelatedInterruptInput, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunAsLeaderOptions, type RunAsLeaderResult, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxOpenClientBundle, type SandboxOpenCredential, type SandboxOpenCredentialContext, type SandboxOpenCredentialProvider, type SandboxOpenCredentialProviderOptions, SandboxPluginExecutor, type SandboxPluginExecutorDeps, type SandboxPluginInvokeArgs, type SandboxPluginResult, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxResolver, type SandboxRunConfig, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleRunInput, type SettleRunOutcome, type SharePayload, 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 TaskEvent, type TaskExecutionFailure, type TaskExecutionManaged, type TaskExecutionResult, type TaskExecutionServiceDeps, type TaskExecutionSuccess, type TaskLifecycleListener, type TaskLifecycleNotification, TaskLifecycleNotifier, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskListStore, type TaskResponseParseResult, type TaskRunBridge, type TaskRunBridgeDeps, TaskRunBridgeStoresRequiredError, type TaskRunLeaseHandle, TaskRunRegistry, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, TenantPluginCatalog, type TenantPluginCatalogDeps, type TenantPlugins, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadEndCode, ThreadEndError, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadRunLeaseHandle, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type TryAcquireTaskRunInput, type TryAcquireThreadRunInput, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, UnsupportedModelProviderError, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WithLeaseOptions, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, assertSafeUpstreamUrl, buildBundleFromDist, buildConnectionPayload, buildGrepResultsDict, buildHandlerCommand, buildInput, buildModelLlmConfig, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSandboxOpenEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createAgentTeam, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProjectRoomMiddleware, createProjectTaskOwnerPolicy, createProjectTaskReassignmentAuthorizer, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createRepeatedToolCallBreakerMiddleware, createResourceAddress, createSandboxProvider, createSandboxResolver, createSchedulerMiddleware, createSharePayload, createShellExecTool, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTeamMiddleware, createTeammateTools, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, decryptConfigFields, describeCronExpression, disconnectAllChannels, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encodeInput, encrypt, encryptConfigFields, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, handlerResultText, hasChunkBuffer, hasDelegatedWorkerToken, hasModelLatticeForTenant, hasRuntimeCapabilityPolicy, installPluginHost, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isEncryptedValue, isMcpConnectionError, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listModelLatticesForTenant, listSandboxProviderTypes, listTenantPlugins, loggerLatticeManager, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeSandboxName, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseHandlerEnvelope, parseHostArgs, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, pluginHostContentHash, postProcessTaskMutationResponse, prepareTaskDispatch, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishPluginCatalogChanged, queueLatticeManager, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveTenantPluginSkill, roomCoordinatorConfig, runAsLeader, runRemotePackDirectory, safeDecrypt, safeTaskResponseId, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setBindingRegistry, setEvalRunService, setMenuRegistry, setPluginDeploymentService, setSandboxPluginCatalog, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunLeaseKey, taskRunRegistry, threadRunLeaseKey, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, tryAcquireTaskRun, tryAcquireThreadRun, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, withLease, withTimeout, wrapMcpToolWithUi };