@axiom-lattice/core 5.0.0 → 6.1.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, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, 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, 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, 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, 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, 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';
@@ -178,6 +178,15 @@ declare class ModelLattice extends BaseChatModel {
178
178
  * @param config LLM配置
179
179
  */
180
180
  constructor(config: LLMConfig);
181
+ /**
182
+ * 返回构造时使用的配置
183
+ *
184
+ * 供调用方(如 models 控制器)读取 apiKey 是否存在、以及展示元数据,
185
+ * 避免反射读取私有字段。
186
+ *
187
+ * @returns 构造时传入的 LLMConfig
188
+ */
189
+ getConfig(): LLMConfig;
181
190
  /**
182
191
  * 返回模型类型
183
192
  */
@@ -288,9 +297,60 @@ declare class ModelLatticeManager extends BaseLatticeManager<ModelLatticeInterfa
288
297
  * 获取Lattice键名列表
289
298
  */
290
299
  getLatticeKeys(): string[];
300
+ /**
301
+ * 以租户维度注册模型Lattice
302
+ *
303
+ * 同名 key 采用「后写覆盖」语义:先移除再注册,避免基类重复注册时抛错。
304
+ *
305
+ * @param tenantId 租户ID
306
+ * @param key Lattice键名
307
+ * @param config 模型配置
308
+ */
309
+ registerLatticeWithTenant(tenantId: string, key: string, config: ModelConfig): void;
310
+ /**
311
+ * 获取指定租户的模型Lattice
312
+ * @param tenantId 租户ID
313
+ * @param key Lattice键名
314
+ */
315
+ getModelLatticeWithTenant(tenantId: string, key: string): ModelLatticeInterface | undefined;
316
+ /**
317
+ * 检查指定租户的模型Lattice是否存在
318
+ * @param tenantId 租户ID
319
+ * @param key Lattice键名
320
+ */
321
+ hasLatticeWithTenant(tenantId: string, key: string): boolean;
322
+ /**
323
+ * 获取指定租户的所有模型Lattice
324
+ * @param tenantId 租户ID
325
+ */
326
+ getAllLatticesByTenant(tenantId: string): ModelLatticeInterface[];
327
+ /**
328
+ * 获取指定租户的所有模型键名
329
+ *
330
+ * 只返回键名,不构造 Lattice 对象数组,适合仅需判断存在性的调用方。
331
+ *
332
+ * @param tenantId 租户ID
333
+ */
334
+ getLatticeKeysByTenant(tenantId: string): string[];
335
+ /**
336
+ * 移除指定租户的模型Lattice
337
+ * @param tenantId 租户ID
338
+ * @param key Lattice键名
339
+ */
340
+ removeLatticeWithTenant(tenantId: string, key: string): boolean;
291
341
  }
292
342
  declare const modelLatticeManager: ModelLatticeManager;
293
343
  declare const registerModelLattice: (key: string, config: ModelConfig) => void;
344
+ /**
345
+ * 以租户维度注册模型 Lattice 的便捷函数
346
+ *
347
+ * 键由基类拼装为 models:{tenantId}:{key},同名 key 后写覆盖。
348
+ *
349
+ * @param tenantId 租户ID
350
+ * @param key 模型键名(通常为 `${providerId}/${modelId}`)
351
+ * @param config 模型配置
352
+ */
353
+ declare const registerModelLatticeForTenant: (tenantId: string, key: string, config: ModelConfig) => void;
294
354
  declare const getModelLattice: (key: string) => ModelLatticeInterface;
295
355
 
296
356
  /**
@@ -2911,6 +2971,7 @@ type StoreTypeMap = {
2911
2971
  database: DatabaseConfigStore;
2912
2972
  metrics: MetricsServerConfigStore;
2913
2973
  mcp: McpServerConfigStore;
2974
+ modelProvider: ModelProviderStore;
2914
2975
  user: UserStore;
2915
2976
  tenant: TenantStore;
2916
2977
  userTenantLink: UserTenantLinkStore;
@@ -3583,6 +3644,98 @@ declare class InMemoryDatabaseConfigStore implements DatabaseConfigStore {
3583
3644
  clearByTenant(tenantId: string): void;
3584
3645
  }
3585
3646
 
3647
+ /**
3648
+ * InMemoryModelProviderStore
3649
+ *
3650
+ * In-memory implementation of ModelProviderStore
3651
+ * Provides CRUD operations for tenant-scoped model provider configurations and
3652
+ * their discovered model snapshots, stored in memory.
3653
+ *
3654
+ * Note: This implementation does NOT encrypt API keys - use with caution
3655
+ * For production use, prefer PostgreSQLModelProviderStore
3656
+ */
3657
+
3658
+ /**
3659
+ * In-memory implementation of ModelProviderStore
3660
+ */
3661
+ declare class InMemoryModelProviderStore implements ModelProviderStore {
3662
+ private providers;
3663
+ private models;
3664
+ /**
3665
+ * Get composite key for providers
3666
+ */
3667
+ private getProviderKey;
3668
+ /**
3669
+ * Get composite key for snapshot models
3670
+ */
3671
+ private getModelKey;
3672
+ /**
3673
+ * Get all provider configurations for a tenant
3674
+ */
3675
+ listProviders(tenantId: string): Promise<ModelProviderEntry[]>;
3676
+ /**
3677
+ * Get a provider configuration by ID
3678
+ */
3679
+ getProviderById(tenantId: string, id: string): Promise<ModelProviderEntry | null>;
3680
+ /**
3681
+ * Get a provider configuration by business name
3682
+ */
3683
+ getProviderByName(tenantId: string, name: string): Promise<ModelProviderEntry | null>;
3684
+ /**
3685
+ * Create a new provider configuration
3686
+ */
3687
+ createProvider(tenantId: string, id: string, data: CreateModelProviderRequest): Promise<ModelProviderEntry>;
3688
+ /**
3689
+ * Update an existing provider configuration.
3690
+ * An omitted or empty `apiKey` leaves the stored key untouched.
3691
+ */
3692
+ updateProvider(tenantId: string, id: string, updates: Partial<UpdateModelProviderRequest>): Promise<ModelProviderEntry | null>;
3693
+ /**
3694
+ * Delete a provider configuration and its model snapshot
3695
+ */
3696
+ deleteProvider(tenantId: string, id: string): Promise<boolean>;
3697
+ /**
3698
+ * Record the outcome of a discovery attempt
3699
+ */
3700
+ markProviderStatus(tenantId: string, id: string, status: ModelProviderStatus, lastError?: string, discoveredAt?: Date): Promise<void>;
3701
+ /**
3702
+ * List snapshot models for a tenant
3703
+ */
3704
+ listModels(tenantId: string, providerId?: string): Promise<ModelProviderModelEntry[]>;
3705
+ /**
3706
+ * Get a single snapshot model.
3707
+ * Keyed by provider as well as model id, since two providers in the same
3708
+ * tenant may expose the same upstream model id.
3709
+ */
3710
+ getModel(tenantId: string, providerId: string, modelId: string): Promise<ModelProviderModelEntry | null>;
3711
+ /**
3712
+ * Replace a provider's model snapshot with the result of one discovery.
3713
+ *
3714
+ * Model ids are scoped per provider, so the same upstream id may appear
3715
+ * under several providers in one tenant — each is an independent model.
3716
+ *
3717
+ * Models the upstream no longer offers are removed; models that survive keep
3718
+ * the tenant's enable/disable choice rather than being reset.
3719
+ */
3720
+ replaceProviderModels(tenantId: string, providerId: string, models: ProviderModelInput[]): Promise<string[]>;
3721
+ /**
3722
+ * Enable or disable a single snapshot model
3723
+ */
3724
+ setModelEnabled(tenantId: string, providerId: string, modelId: string, enabled: boolean): Promise<ModelProviderModelEntry | null>;
3725
+ /**
3726
+ * Delete every snapshot model belonging to a provider
3727
+ */
3728
+ deleteModelsByProvider(tenantId: string, providerId: string): Promise<number>;
3729
+ /**
3730
+ * Clear all providers and models (useful for testing)
3731
+ */
3732
+ clear(): void;
3733
+ /**
3734
+ * Clear providers and models for a specific tenant
3735
+ */
3736
+ clearByTenant(tenantId: string): void;
3737
+ }
3738
+
3586
3739
  declare class InMemoryUserStore implements UserStore {
3587
3740
  private users;
3588
3741
  constructor();
@@ -5447,6 +5600,7 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
5447
5600
  private clientFactory;
5448
5601
  private watchdog?;
5449
5602
  private healthCheckInFlight;
5603
+ private reconnectPromises;
5450
5604
  static getInstance(): McpLatticeManager;
5451
5605
  protected getLatticeType(): string;
5452
5606
  /** Test seam: override the MCP client factory. */
@@ -5535,6 +5689,19 @@ declare class McpLatticeManager extends BaseLatticeManager<McpClientLike> {
5535
5689
  * @throws If the server is not registered or the reconnect attempt fails.
5536
5690
  */
5537
5691
  reconnectServer(tenantId: string, serverKey: string): Promise<void>;
5692
+ /**
5693
+ * Single-flight a forced reconnect per `(tenantId, serverKey)` so concurrent
5694
+ * tool calls that all hit the same dead session reconnect once, not once each.
5695
+ */
5696
+ private reconnectShared;
5697
+ /**
5698
+ * Wrap a raw MCP tool so a call landing on a torn-down session
5699
+ * (`Not connected` / `Connection closed` / session expiry) transparently
5700
+ * forces a reconnect and retries once against the fresh client, instead of
5701
+ * failing the surrounding run. Non-connection errors propagate untouched.
5702
+ */
5703
+ private wrapToolForResilience;
5704
+ private invokeResilient;
5538
5705
  private checkHealth;
5539
5706
  /**
5540
5707
  * Remove a registered server, closing its client and unregistering its tools.
@@ -5661,6 +5828,18 @@ declare const MAX_BACKOFF_MS = 30000;
5661
5828
  declare const HEALTH_CHECK_INTERVAL_MS = 30000;
5662
5829
  /** Timeout (ms) for a single MCP session health check. */
5663
5830
  declare const HEALTH_CHECK_TIMEOUT_MS = 5000;
5831
+ /**
5832
+ * Whether an error means the MCP session/connection is gone (the request never
5833
+ * reached the server), as opposed to a tool-level, validation or business
5834
+ * error. Only these errors are safe to retry once after a forced reconnect —
5835
+ * retrying arbitrary failures could double-execute non-idempotent tools, so
5836
+ * ambiguous transport failures like `fetch failed` or `timed out` are
5837
+ * intentionally excluded.
5838
+ *
5839
+ * @param error Thrown value.
5840
+ * @returns `true` when the error matches a known dead-session signature.
5841
+ */
5842
+ declare function isMcpConnectionError(error: unknown): boolean;
5664
5843
  /**
5665
5844
  * Exponential backoff delay: `base * 2^(attempt-1)`, capped at `max`.
5666
5845
  * `attempt <= 0` returns `base`.
@@ -7076,6 +7255,12 @@ declare const DEFAULT_CALIBRATION_PROBES: CalibrationProbe[];
7076
7255
  * otherwise the model registered under the "default" key (the convention apps
7077
7256
  * use — see examples/deep_research), then the first registered model as a last
7078
7257
  * resort. Throws only when no model is registered at all.
7258
+ *
7259
+ * Phase 1 resolves against the `default` tenant, like every other consumer of
7260
+ * the model registry: models are only ever registered there (see
7261
+ * `ModelProviderService.PHASE1_REGISTRY_TENANT`), and a single consumer that
7262
+ * resolves by tenant while the rest do not is how this drifted out of sync
7263
+ * with `eval-runner`. Phase 2 moves the whole set together.
7079
7264
  */
7080
7265
  declare function resolveJudgeModelKey(explicitKey: string | undefined, manager: {
7081
7266
  getAllLattices: () => Array<{
@@ -9494,7 +9679,7 @@ interface CancelTaskInput {
9494
9679
  summary?: string;
9495
9680
  }
9496
9681
  /** Agent-owned interruption kinds persisted by the lifecycle service. */
9497
- type AgentInterruptionType = "missing_input" | "external_dependency" | "user_decision";
9682
+ type AgentInterruptionType = "missing_input" | "user_decision";
9498
9683
  /** Input for atomically interrupting an in-progress agent task. */
9499
9684
  interface InterruptTaskInput {
9500
9685
  tenantId: string;
@@ -9503,15 +9688,6 @@ interface InterruptTaskInput {
9503
9688
  summary: string;
9504
9689
  actor: string;
9505
9690
  threadId?: string;
9506
- /** Required exact task IDs when the interruption waits on external dependencies. */
9507
- dependencyTaskIds?: string[];
9508
- }
9509
- /** Parsed, canonical external-dependency interruption persisted by the lifecycle service. */
9510
- interface ExternalDependencyInterruption {
9511
- type: "external_dependency";
9512
- summary: string;
9513
- requestedAt: string;
9514
- dependencyTaskIds: string[];
9515
9691
  }
9516
9692
  /** Exact roster, task, and Thread coordinates for a governed Project task reassignment. */
9517
9693
  interface ReassignProjectTaskInput {
@@ -9520,6 +9696,26 @@ interface ReassignProjectTaskInput {
9520
9696
  authorization: ProjectTaskReassignmentAuthorization;
9521
9697
  actor: string;
9522
9698
  }
9699
+ /**
9700
+ * Input for transferring a human-authored (`source === "user"`) task to an Agent.
9701
+ *
9702
+ * @remarks Unlike {@link ReassignProjectTaskInput}, this primitive is a plain
9703
+ * owner assignment for UI-created tasks and carries no Project roster token.
9704
+ */
9705
+ interface AssignTaskOwnerInput {
9706
+ /** Tenant containing the task. */
9707
+ tenantId: string;
9708
+ /** Human-authored task identifier. */
9709
+ taskId: string;
9710
+ /** Actor recording the assignment. */
9711
+ actor: string;
9712
+ /** Destination owner kind; only `"agent"` is supported. */
9713
+ ownerType: "agent";
9714
+ /** Destination Agent identifier (the selected owner). */
9715
+ ownerId: string;
9716
+ /** Optional Task Thread persisted only when the task has no thread yet. */
9717
+ threadId?: string;
9718
+ }
9523
9719
  /** Canonical identity and Belief State snapshot bound to completion evidence. */
9524
9720
  interface BeliefOwnerSnapshot {
9525
9721
  owner: "self" | "parent";
@@ -9540,13 +9736,6 @@ interface BeliefOwnerSnapshot {
9540
9736
  projectId?: string;
9541
9737
  };
9542
9738
  }
9543
- /**
9544
- * Parses a descriptor-safe canonical external-dependency interruption.
9545
- *
9546
- * @param value Untrusted persisted interruption value.
9547
- * @returns A cloned interruption with trimmed unique IDs, or undefined when malformed.
9548
- */
9549
- declare function parseExternalDependency(value: unknown): ExternalDependencyInterruption | undefined;
9550
9739
  /**
9551
9740
  * Owns atomic agent-task completion, review, repair, and belief reconciliation.
9552
9741
  *
@@ -9606,6 +9795,30 @@ declare class TaskLifecycleService {
9606
9795
  startTask(input: StartTaskInput): Promise<StartLifecycleResult>;
9607
9796
  /** Atomically retries a failed agent task and records an idempotent status event. */
9608
9797
  retryTask(input: StartTaskInput): Promise<LifecycleResult>;
9798
+ /**
9799
+ * Reopens a terminal agent task by returning it to in_progress.
9800
+ *
9801
+ * @param input Task, actor, and optional thread.
9802
+ * @returns Structured lifecycle result. `completed` and `cancelled` tasks
9803
+ * reopen to `in_progress`; an already-`in_progress` task is acknowledged
9804
+ * without mutation; any other status or a lost CAS yields
9805
+ * `TASK_STATUS_CONFLICT`.
9806
+ * @remarks This is the single reverse edge of the terminal-irreversibility
9807
+ * relaxation. It records the status change only; re-dispatch is owned by
9808
+ * the application layer and is never triggered here.
9809
+ */
9810
+ reopenTask(input: StartTaskInput): Promise<LifecycleResult>;
9811
+ /**
9812
+ * Transfers a human-authored task's ownership to a chosen Agent before dispatch.
9813
+ *
9814
+ * @param input Task, actor, destination Agent, and optional Task Thread.
9815
+ * @returns Structured result with the reassigned owner and an `owner_assigned` audit.
9816
+ * @remarks Only tasks with `context.source === "user"` can be assigned this way.
9817
+ * Repeated assignment to the same owner is idempotent (repair-writes the audit
9818
+ * without a CAS). This changes owner only, never status, so it publishes no
9819
+ * Project lifecycle notification.
9820
+ */
9821
+ assignOwner(input: AssignTaskOwnerInput): Promise<LifecycleResult>;
9609
9822
  /** Atomically cancels a nonterminal agent task and records an idempotent status event. */
9610
9823
  cancelTask(input: CancelTaskInput): Promise<LifecycleResult>;
9611
9824
  /** Atomically transfers a stopped Project task to another active roster owner and Task Thread. */
@@ -9696,9 +9909,6 @@ declare class TaskLifecycleService {
9696
9909
  * window lasts until the host filter lands (ADR-118 Plan A, Task 3).
9697
9910
  */
9698
9911
  private notifyWinningTransition;
9699
- private validateExternalDependencies;
9700
- private externalDependencyReadiness;
9701
- private finishExternalDependencyInterruption;
9702
9912
  private clearAuditMarker;
9703
9913
  /**
9704
9914
  * Restores a context marker removed by {@link clearAuditMarker}.
@@ -10467,6 +10677,45 @@ declare function validateEncryptionKey(): void;
10467
10677
  */
10468
10678
  declare function clearEncryptionKeyCache(): void;
10469
10679
 
10680
+ /**
10681
+ * 上游 URL 校验工具
10682
+ *
10683
+ * 校验租户提交的 model provider baseURL 是否是一个结构合法的 http(s) 地址:
10684
+ * 拒绝非 http(s) 协议、URL 内嵌凭据、缺少主机。
10685
+ *
10686
+ * **不限制目标地址是公网还是内网。** 平台里其它由租户配置 URL 的能力
10687
+ * (metrics-configs 的 "Metrics Server Base URL"、mcp-configs 等)都不做地址
10688
+ * 限制,自建部署的模型服务本来就与网关同处内网。仅对 model provider 拦截内网
10689
+ * 地址会让最主要的使用场景不可用,且与平台其余部分不一致。
10690
+ *
10691
+ * 出网请求本身的硬化在 discovery adapter 里:不跟随重定向、超时、响应体体积
10692
+ * 上限、错误信息不回显上游 body。
10693
+ *
10694
+ * @module @axiom-lattice/core/util/safeUpstreamUrl
10695
+ */
10696
+ /**
10697
+ * 校验失败的原因
10698
+ */
10699
+ type UnsafeUrlReason = "INVALID_BASE_URL" | "UNSUPPORTED_SCHEME" | "CREDENTIALS_IN_URL";
10700
+ /**
10701
+ * 校验 baseURL 失败时抛出的错误
10702
+ */
10703
+ declare class UnsafeUpstreamUrlError extends Error {
10704
+ readonly reason: UnsafeUrlReason;
10705
+ readonly statusCode: number;
10706
+ constructor(reason: UnsafeUrlReason, message: string, statusCode?: number);
10707
+ }
10708
+ /**
10709
+ * 校验并解析一个上游 baseURL。
10710
+ *
10711
+ * @param raw 待校验的 URL
10712
+ * @returns 解析后的 URL
10713
+ * @throws {UnsafeUpstreamUrlError}
10714
+ */
10715
+ declare function assertSafeUpstreamUrl(raw: string): Promise<{
10716
+ url: URL;
10717
+ }>;
10718
+
10470
10719
  /**
10471
10720
  * Factory function type for creating custom middleware instances.
10472
10721
  *
@@ -11262,8 +11511,8 @@ declare class CapabilityBundleMerger {
11262
11511
  /**
11263
11512
  * Capability Learning Plugin
11264
11513
  *
11265
- * Provides a document-learner agent and source-to-capability learning workflow.
11266
- * The agent guides users through turning source material (documents, API
11514
+ * Provides the source-to-capability learning workflow as a plugin-contributed
11515
+ * skill. The Agent Architect loads it to turn source material (documents, API
11267
11516
  * specs, conversations, spreadsheets) into structured skill systems with
11268
11517
  * evaluations — following a supervised learning paradigm.
11269
11518
  */
@@ -12338,4 +12587,4 @@ declare function parseDirectRoomType(projectId: string): "human" | "bot" | null;
12338
12587
  */
12339
12588
  declare function isDirectRoom(projectId: string): boolean;
12340
12589
 
12341
- 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, 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, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_DELAY_MS, DEFAULT_MAX_ATTEMPTS, 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 ExternalDependencyInterruption, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryOpenAuditStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, 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, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, 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, type OutputType, PACK_DIRECTORY_TIMEOUT_SECONDS, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, PluginRegistry, 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 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 Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, 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, 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 ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type UnknownToolHandlerConfig, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, 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, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTeamMiddleware, createTeammateTools, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginSkillManifestVersion, getQueueLattice, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, hasDelegatedWorkerToken, hasRuntimeCapabilityPolicy, invokeWithRetry, isBuiltInSkill, isDirectRoom, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeSandboxName, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseExternalDependency, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, postProcessTaskMutationResponse, prepareTaskDispatch, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, queueLatticeManager, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveEnabledPluginSkill, resolveJudgeModelKey, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveTenantPluginSkill, roomCoordinatorConfig, runRemotePackDirectory, safeTaskResponseId, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setBindingRegistry, setEvalRunService, setMenuRegistry, setSandboxPluginCatalog, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunRegistry, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, withTimeout, wrapMcpToolWithUi };
12590
+ 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, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_DELAY_MS, DEFAULT_MAX_ATTEMPTS, 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 GrepMatch, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, 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, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, 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, type OutputType, PACK_DIRECTORY_TIMEOUT_SECONDS, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, PluginRegistry, 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 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 Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, 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, 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 ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, assertSafeUpstreamUrl, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, 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, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTeamMiddleware, createTeammateTools, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginSkillManifestVersion, getQueueLattice, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, hasDelegatedWorkerToken, hasRuntimeCapabilityPolicy, invokeWithRetry, isBuiltInSkill, isDirectRoom, isMcpConnectionError, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeSandboxName, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, postProcessTaskMutationResponse, prepareTaskDispatch, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, queueLatticeManager, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveEnabledPluginSkill, resolveJudgeModelKey, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveTenantPluginSkill, roomCoordinatorConfig, runRemotePackDirectory, safeTaskResponseId, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setBindingRegistry, setEvalRunService, setMenuRegistry, setSandboxPluginCatalog, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunRegistry, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, withTimeout, wrapMcpToolWithUi };