@axiom-lattice/core 10.0.5 → 11.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,12 +8,12 @@ import { BaseLanguageModelInput } from '@langchain/core/language_models/base';
8
8
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
9
9
  import { ChatResult, ChatGenerationChunk } from '@langchain/core/outputs';
10
10
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
11
- import { LLMConfig, ModelProviderEntry, ModelProviderModelEntry, STTConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, DeepAgentConfig, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TrustedRunContext, QueuedExecutionMode, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, ModelProviderStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, LeaseStore, OutboxStore, PluginDeploymentStore, ChannelReplyJobStore, CheckpointStorage, StoreProtocol, VectorStoreProvider, Thread, CreateThreadRequest, StorePutInput, StoreItem, StoreSearchInput, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderStatus, ProviderModelInput, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, CreateChannelReplyJobInput, ChannelReplyJob, STTModelLatticeProtocol, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateShareRequest, ObservabilityDashboardInput, ObservabilityDashboardResult, ChannelAdapter, InterruptPolicy, AgentInterrupt, ProjectTaskLifecycleAction, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, SandboxPluginManifest, SandboxPluginToolDef, SandboxPluginDiagnostic, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
11
+ import { LLMConfig, ModelProviderEntry, ModelProviderModelEntry, STTConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, DeepAgentConfig, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TrustedRunContext, QueuedExecutionMode, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, ModelProviderStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, OpenAuditStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, ProjectRoomStore, ProjectMembershipStore, ProjectBotMembershipStore, ProjectRoomMessageStore, ProjectRoomReadStateStore, UserPushSubscriptionStore, LeaseStore, OutboxStore, PluginDeploymentStore, ChannelReplyJobStore, CheckpointStorage, StoreProtocol, VectorStoreProvider, Thread, CreateThreadRequest, StorePutInput, StoreItem, StoreSearchInput, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderStatus, ProviderModelInput, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationInput, UpdateChannelInstallationRequest, Binding, CreateBindingInput, BindingMutablePatch, BindingListParams, A2AApiKeyRecord, CreateA2AApiKeyInput, UpdateA2AApiKeyInput, A2AApiKeyEntry, OpenAuditAppendInput, OpenAuditQuery, OpenAuditRecord, TaskMutationSnapshot, CreateTaskRequest, TaskItem, TaskListFilter, TaskDependentListQuery, UpdateTaskRequest, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, ProjectLifecycleEventQuery, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, ProjectRoom, ProjectMembership, ProjectBotMembership, ProjectRoomMessage, ProjectHumanRole, ProjectMembershipMutationResult, ProjectRoomReadState, UserPushSubscription, LeaseRecord, OutboxEvent, CreateChannelReplyJobInput, ChannelReplyJob, ShareRecord, CreateShareRecord, ShareRecordPatch, STTModelLatticeProtocol, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, McpUiResourcePayload, McpServerConfig, McpUiRef, ResourceResolver, ResourceAddress, ShareVisibility, OpenGrant, CreateFileShareRequest, McpAppShareApp, McpAppShareRecord, ObservabilityDashboardInput, ObservabilityDashboardResult, ChannelAdapter, InterruptPolicy, AgentInterrupt, ProjectTaskLifecycleAction, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, SandboxPluginManifest, SandboxPluginToolDef, SandboxPluginDiagnostic, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
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';
15
15
  import { StructuredTool, ReactAgent, AgentMiddleware } from 'langchain';
16
- import z, { ZodTypeAny } from 'zod';
16
+ import z, { ZodTypeAny, z as z$1 } from 'zod';
17
17
  import { BaseStore, BaseCheckpointSaver } from '@langchain/langgraph-checkpoint';
18
18
  import * as _langchain_core_tools from '@langchain/core/tools';
19
19
  import { StructuredTool as StructuredTool$1, DynamicStructuredTool } from '@langchain/core/tools';
@@ -6620,6 +6620,125 @@ declare class InMemoryChannelReplyJobStore implements ChannelReplyJobStore {
6620
6620
  private copy;
6621
6621
  }
6622
6622
 
6623
+ /**
6624
+ * Raised when {@link InMemorySharedResourceStore.create} receives a token that
6625
+ * is already stored.
6626
+ *
6627
+ * Mirrors the PostgreSQL primary-key constraint on
6628
+ * `lattice_shared_resources.token`.
6629
+ */
6630
+ declare class DuplicateShareTokenError extends Error {
6631
+ /** Machine-readable failure code. */
6632
+ readonly code: "DUPLICATE_SHARE_TOKEN";
6633
+ /** Token that was already present in the store. */
6634
+ readonly token: string;
6635
+ /**
6636
+ * Creates a duplicate share token error.
6637
+ *
6638
+ * @param token - Token that is already present in the store.
6639
+ */
6640
+ constructor(token: string);
6641
+ }
6642
+ /**
6643
+ * Stores resource shares in process memory.
6644
+ *
6645
+ * This store is process-local and non-durable: records live in a `Map` and are
6646
+ * lost on restart. It exists for tests, local development, and single-process
6647
+ * deployments; use the PostgreSQL store when durable, cross-replica storage is
6648
+ * required.
6649
+ *
6650
+ * Values are cloned on write and on read so callers cannot mutate persisted
6651
+ * nested `address`/`openGrants` objects or `expiresAt` dates through retained
6652
+ * references.
6653
+ *
6654
+ * Access counting has two modes:
6655
+ * - {@link atomicIncrementAccess} enforces revocation, expiry, and `maxAccess`
6656
+ * and reports whether the access was granted.
6657
+ * - {@link incrementAccess} increments unconditionally and is intended for
6658
+ * callers that already validated access.
6659
+ *
6660
+ * @example
6661
+ * ```ts
6662
+ * const store = new InMemorySharedResourceStore();
6663
+ * const record = await store.create({
6664
+ * token: "share-token",
6665
+ * kind: "file",
6666
+ * address: { volume: "sandbox", resourcePath: "report.pdf" },
6667
+ * title: null,
6668
+ * createdBy: "user-1",
6669
+ * tenantId: "tenant-1",
6670
+ * workspaceId: "workspace-1",
6671
+ * projectId: "project-1",
6672
+ * assistantId: null,
6673
+ * vmIsolation: "project",
6674
+ * visibility: "public",
6675
+ * passwordHash: null,
6676
+ * expiresAt: null,
6677
+ * maxAccess: null,
6678
+ * revoked: false,
6679
+ * });
6680
+ * ```
6681
+ */
6682
+ declare class InMemorySharedResourceStore implements SharedResourceStore {
6683
+ private readonly records;
6684
+ /**
6685
+ * Finds a share by its token.
6686
+ *
6687
+ * @param token - Share token to look up.
6688
+ * @returns An independent copy of the record, or `null` when absent.
6689
+ */
6690
+ findByToken(token: string): Promise<ShareRecord | null>;
6691
+ /**
6692
+ * Inserts a new share record with `accessCount: 0`, `version: 1`, and the
6693
+ * current `createdAt`.
6694
+ *
6695
+ * @param record - Insert shape for the new share.
6696
+ * @returns An independent copy of the stored record.
6697
+ * @throws {DuplicateShareTokenError} When the token is already stored.
6698
+ */
6699
+ create(record: CreateShareRecord): Promise<ShareRecord>;
6700
+ /**
6701
+ * Applies a patch to an existing share.
6702
+ *
6703
+ * Only `title`, `expiresAt`, `maxAccess`, `revoked`, `visibility`, and
6704
+ * `passwordHash` are applied; other keys (for example `token`, `kind`, or
6705
+ * `address`) are ignored. `undefined` values are treated as "no change".
6706
+ * Missing tokens are a no-op.
6707
+ *
6708
+ * @param token - Token of the share to update.
6709
+ * @param patch - Mutable fields to apply.
6710
+ */
6711
+ update(token: string, patch: ShareRecordPatch): Promise<void>;
6712
+ /**
6713
+ * Lists a user's shares within a tenant, newest first by `createdAt`.
6714
+ *
6715
+ * @param tenantId - Tenant to scope the listing to.
6716
+ * @param userId - Creator (`createdBy`) to scope the listing to.
6717
+ * @returns Independent copies of matching records.
6718
+ */
6719
+ listByUser(tenantId: string, userId: string): Promise<ShareRecord[]>;
6720
+ /**
6721
+ * Increments `accessCount` unconditionally when the token exists.
6722
+ *
6723
+ * Use {@link atomicIncrementAccess} when revocation, expiry, and `maxAccess`
6724
+ * must be enforced.
6725
+ *
6726
+ * @param token - Token of the share to count.
6727
+ */
6728
+ incrementAccess(token: string): Promise<void>;
6729
+ /**
6730
+ * Atomically increments `accessCount` only when the share is usable and the
6731
+ * access limit has not been reached.
6732
+ *
6733
+ * A share is considered expired when `expiresAt.getTime() <= Date.now()`,
6734
+ * matching PostgreSQL's `expires_at > NOW()` check.
6735
+ *
6736
+ * @param token - Token of the share to count.
6737
+ * @returns `true` when access was granted, `false` otherwise.
6738
+ */
6739
+ atomicIncrementAccess(token: string): Promise<boolean>;
6740
+ }
6741
+
6623
6742
  /**
6624
6743
  * Embeddings Lattice Interface
6625
6744
  * Defines the structure of an embeddings lattice entry
@@ -8045,9 +8164,10 @@ declare function verifyMcpUiScope(token: string | undefined, secret?: string | u
8045
8164
  *
8046
8165
  * @param meta Tool `_meta` object (may be undefined).
8047
8166
  * @param serverKey Owning MCP server key.
8167
+ * @param toolName Tool that produced the UI resource, when known.
8048
8168
  * @returns Normalized {@link McpUiRef} or `null` when no UI resource is declared.
8049
8169
  */
8050
- declare function extractAppsRef(meta: unknown, serverKey: string): McpUiRef | null;
8170
+ declare function extractAppsRef(meta: unknown, serverKey: string, toolName?: string): McpUiRef | null;
8051
8171
  /**
8052
8172
  * Extract legacy MCP-UI refs from a tool result's content blocks.
8053
8173
  *
@@ -8081,6 +8201,7 @@ declare function extractLegacyRefs(content: unknown, serverKey: string): McpUiRe
8081
8201
  * @param ref UI ref to encode into the fence.
8082
8202
  * @returns The fence appended in a shape that preserves every original block.
8083
8203
  */
8204
+ declare function appendUiFence(content: string, ref: McpUiRef): string;
8084
8205
  declare function appendUiFence(content: unknown, ref: McpUiRef): string | unknown[];
8085
8206
  /**
8086
8207
  * Wrap an MCP tool so its result carries an `mcp_app` fence for the given ref.
@@ -8933,6 +9054,7 @@ declare function generateToken(): string;
8933
9054
  * Shape of the share document to persist in the share store.
8934
9055
  */
8935
9056
  interface SharePayload {
9057
+ kind: "file";
8936
9058
  address: ResourceAddress;
8937
9059
  tenantId: string;
8938
9060
  workspaceId: string;
@@ -8960,18 +9082,61 @@ interface SharePayload {
8960
9082
  * @param workspaceId - The workspace the project belongs to.
8961
9083
  * @param projectId - The project whose resource path is being shared.
8962
9084
  * @param userId - The user creating the share.
8963
- * @param request - Client-provided share parameters.
9085
+ * @param request - Client-provided file share parameters.
8964
9086
  * @returns A complete share payload for persistence.
9087
+ * @throws {Error} When the path traverses out of the project or resolves to
9088
+ * the project root (for every visibility).
9089
+ */
9090
+ declare function createSharePayload(tenantId: string, workspaceId: string, projectId: string, userId: string, request: CreateFileShareRequest): SharePayload;
9091
+ /**
9092
+ * Error raised when an MCP App share payload cannot be built.
9093
+ *
9094
+ * Carries a machine-readable code so callers can map the failure to an HTTP
9095
+ * status without parsing the message.
8965
9096
  */
8966
- declare function createSharePayload(tenantId: string, workspaceId: string, projectId: string, userId: string, request: CreateShareRequest): SharePayload;
9097
+ declare class SharePayloadError extends Error {
9098
+ readonly code: "INTERNAL_NOT_SUPPORTED" | "PAYLOAD_TOO_LARGE" | "TOOL_NAME_REQUIRED";
9099
+ /**
9100
+ * @param code - The stable failure code.
9101
+ */
9102
+ constructor(code: "INTERNAL_NOT_SUPPORTED" | "PAYLOAD_TOO_LARGE" | "TOOL_NAME_REQUIRED");
9103
+ }
9104
+ /**
9105
+ * Build a share payload for a live MCP App share.
9106
+ *
9107
+ * App shares are public/password only. The tool identity and initial arguments
9108
+ * are stored so bootstrap can re-run the tool; the tool result itself is never
9109
+ * persisted. The serialized app payload is capped at 256 KiB.
9110
+ *
9111
+ * @param input - Owner context, App target, and share options.
9112
+ * @returns A ready-to-persist MCP App share payload.
9113
+ * @throws {SharePayloadError} When visibility is `internal`, the tool name is
9114
+ * missing, or the payload is too large.
9115
+ */
9116
+ declare function createMcpAppSharePayload(input: {
9117
+ tenantId: string;
9118
+ createdBy: string;
9119
+ workspaceId: string;
9120
+ projectId: string;
9121
+ app: McpAppShareApp;
9122
+ title?: string;
9123
+ visibility: "public" | "password";
9124
+ password?: string;
9125
+ expiresAt?: Date;
9126
+ maxAccess?: number;
9127
+ }): Omit<McpAppShareRecord, "accessCount" | "createdAt" | "version">;
8967
9128
 
8968
9129
  /**
8969
9130
  * Sandbox open-credential seam.
8970
9131
  *
8971
9132
  * A process-global provider (registered by the gateway composition root) resolves
8972
- * a short-lived Open bearer for a running sandbox so sandbox code can call the
8973
- * Open MCP endpoint. Core never mints tokens — it only transports a provider's
8974
- * result into single-process env.
9133
+ * a short-lived Open bearer for a running sandbox so agent `code_eval` code can
9134
+ * call the Open MCP endpoint. Core never mints tokens — it only transports a
9135
+ * provider's result into single-process env.
9136
+ *
9137
+ * Plugin handlers do not use this seam for PTC: they read the platform API key
9138
+ * from their connection config directly. They only need the gateway URL, which is
9139
+ * exposed through a separate process-global URL provider.
8975
9140
  */
8976
9141
  /** Identity of the sandbox whose code will consume the credential. */
8977
9142
  interface SandboxOpenCredentialContext {
@@ -9030,6 +9195,24 @@ declare function registerSandboxOpenCredentialProvider(next: SandboxOpenCredenti
9030
9195
  * @returns The credential, or `undefined` when no provider is registered or it throws
9031
9196
  */
9032
9197
  declare function getSandboxOpenCredential(context: SandboxOpenCredentialContext): Promise<SandboxOpenCredential | undefined>;
9198
+ /**
9199
+ * Register the public gateway URL used by plugin handlers.
9200
+ *
9201
+ * @param next - Returns the gateway base URL, or `undefined` when not configured
9202
+ * @returns An unregister function for the current registration
9203
+ *
9204
+ * @remarks
9205
+ * Plugin handlers read their platform API key from the connection config; they
9206
+ * only need the gateway URL to call `/open/mcp`. This seam is independent of the
9207
+ * short-lived credential provider used by agent `code_eval`.
9208
+ */
9209
+ declare function registerSandboxOpenGatewayUrlProvider(next: () => string | undefined): () => void;
9210
+ /**
9211
+ * Resolve the gateway base URL for plugin handlers.
9212
+ *
9213
+ * @returns The registered URL, or `undefined` when no provider is configured
9214
+ */
9215
+ declare function getSandboxOpenGatewayUrl(): string | undefined;
9033
9216
  /**
9034
9217
  * Build the shell `export … && export …` prefix for a credential.
9035
9218
  *
@@ -12188,6 +12371,47 @@ declare class RoomAgentMessageService {
12188
12371
  private notifyCommitted;
12189
12372
  }
12190
12373
 
12374
+ /**
12375
+ * Observes a canonical Agent-authored Project Room message after durable persistence.
12376
+ *
12377
+ * @param message Isolated clone of the persisted message.
12378
+ * @returns Nothing, or a promise whose rejection is contained by the notifier.
12379
+ */
12380
+ type ProjectRoomMessageCommittedListener = (message: ProjectRoomMessage) => void | Promise<void>;
12381
+ /**
12382
+ * Process-global fan-out for room messages committed by writers that cannot
12383
+ * reach the host realtime publisher, such as the trusted `post_room_message` tool.
12384
+ *
12385
+ * @example
12386
+ * ```ts
12387
+ * const unsubscribe = projectRoomMessageNotifier.subscribe((message) => publisher.messageCreated(message));
12388
+ * unsubscribe();
12389
+ * ```
12390
+ *
12391
+ * @remarks Listener failures are isolated and never affect the committed message.
12392
+ * They are intentionally discarded here; a host that needs observability should
12393
+ * wrap its listener and report failures itself.
12394
+ */
12395
+ declare class ProjectRoomMessageNotifier {
12396
+ private readonly listeners;
12397
+ /**
12398
+ * Registers a committed-message listener.
12399
+ *
12400
+ * @param listener Observer invoked for later commits.
12401
+ * @returns An idempotent unsubscribe callback.
12402
+ */
12403
+ subscribe(listener: ProjectRoomMessageCommittedListener): () => void;
12404
+ /**
12405
+ * Delivers one committed message to every registered listener.
12406
+ *
12407
+ * @param message Canonical persisted room message.
12408
+ * @returns Nothing; each listener receives its own clone and failures are contained.
12409
+ */
12410
+ notify(message: ProjectRoomMessage): void;
12411
+ }
12412
+ /** Process-global notifier shared by the trusted tool writer and the host. */
12413
+ declare const projectRoomMessageNotifier: ProjectRoomMessageNotifier;
12414
+
12191
12415
  /**
12192
12416
  * Agent Instance Manager
12193
12417
  *
@@ -15727,6 +15951,8 @@ interface ResidentInvokePayload {
15727
15951
  connection?: Record<string, unknown>;
15728
15952
  /** Full multi-connection list keyed by connection key. */
15729
15953
  connections?: ResidentConnectionConfig[];
15954
+ /** Platform gateway base URL for PTC calls from the handler. */
15955
+ apiGatewayUrl?: string;
15730
15956
  /** Trusted execution context strings (tenant, plugin type, ...). */
15731
15957
  context: Record<string, string>;
15732
15958
  /**
@@ -16036,6 +16262,247 @@ declare function createProjectRoomMiddleware(): AgentMiddleware;
16036
16262
  /** Built-in Project Room plugin metadata and middleware factory. */
16037
16263
  declare const projectRoomPlugin: Plugin;
16038
16264
 
16265
+ /**
16266
+ * Inline MCP App UI for the built-in `app-share` plugin.
16267
+ *
16268
+ * The card is a GLOBAL plugin UI resource: it is served directly from
16269
+ * {@link SHARE_CARD_APP_HTML} through `meta.uiResources` and never read from a
16270
+ * tenant sandbox volume.
16271
+ *
16272
+ * The document is dependency-free vanilla JS. It renders the result pushed as
16273
+ * `ui/notifications/tool-result` (a share link, visibility, and optional
16274
+ * password) and offers copy/open actions through the standard MCP Apps host
16275
+ * RPC methods `ui/copy-link` and `ui/open-link`.
16276
+ */
16277
+ /** `ui://` resource key for the `app-share` share card MCP App. */
16278
+ declare const SHARE_CARD_UI_RESOURCE = "ui://app-share/share-card";
16279
+ /**
16280
+ * Full, self-contained HTML document for the `app-share` share card.
16281
+ *
16282
+ * @remarks
16283
+ * Runs in an opaque-origin sandboxed iframe under a strict CSP (`default-src
16284
+ * 'none'`); everything is inline and no external origin is required.
16285
+ */
16286
+ declare const SHARE_CARD_APP_HTML = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>Shared link</title>\n <style>\n :root {\n color-scheme: light dark;\n --card-bg: #fff;\n --card-border: #e5e7eb;\n --text: #111827;\n --muted: #6b7280;\n --accent: #4338ca;\n --accent-bg: #eef2ff;\n --warning: #b45309;\n --btn-bg: #fff;\n --btn-border: #d1d5db;\n --btn-text: #111827;\n --primary-bg: #4f46e5;\n --primary-border: #4f46e5;\n --primary-text: #fff;\n --shadow: 0 1px 2px rgba(0,0,0,.04);\n }\n @media (prefers-color-scheme: dark) {\n :root {\n --card-bg: #111827;\n --card-border: #374151;\n --text: #f9fafb;\n --muted: #9ca3af;\n --accent: #c7d2fe;\n --accent-bg: #312e81;\n --warning: #fbbf24;\n --btn-bg: #1f2937;\n --btn-border: #4b5563;\n --btn-text: #f9fafb;\n --primary-bg: #6366f1;\n --primary-border: #6366f1;\n --primary-text: #fff;\n --shadow: 0 1px 2px rgba(0,0,0,.4);\n }\n }\n body { margin: 0; padding: 12px 14px; font: 13px/1.45 Inter, -apple-system, \"Segoe UI\", sans-serif; color: var(--text); background: transparent; }\n .card { box-sizing: border-box; max-width: 420px; margin: 0 auto; padding: 14px 16px; border: 1px solid var(--card-border); border-radius: 14px; background: var(--card-bg); color: var(--text); box-shadow: var(--shadow); }\n .head { display: flex; align-items: center; gap: 8px; }\n .icon { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-size: 14px; }\n .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }\n .kind { border-radius: 999px; font-size: 11px; padding: 1px 7px; background: var(--accent-bg); color: var(--accent); }\n .meta { margin: 4px 0 8px; color: var(--muted); font-size: 11px; }\n .link { padding: 7px 9px; border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }\n .link:focus-visible { outline: 2px solid var(--primary-bg); outline-offset: 2px; }\n .pwd { margin-top: 6px; color: var(--muted); font-size: 12px; }\n .warn { margin-top: 6px; color: var(--warning); font-size: 11px; overflow-wrap: anywhere; }\n .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }\n button { border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-text); border-radius: 8px; padding: 5px 10px; font: inherit; cursor: pointer; }\n button.primary { background: var(--primary-bg); border-color: var(--primary-border); color: var(--primary-text); }\n </style>\n </head>\n <body>\n <div id=\"root\"><p>Loading\u2026</p></div>\n <script>\n (function () {\n var root = document.getElementById(\"root\");\n function post(message) { window.parent.postMessage(message, \"*\"); }\n function notify(method, params) { post({ jsonrpc: \"2.0\", method: method, params: params }); }\n var nextId = 1;\n function rpc(method, params) {\n var id = nextId++;\n return new Promise(function (resolve, reject) {\n function onMessage(event) {\n var data = event.data;\n if (!data || data.id !== id) return;\n window.removeEventListener(\"message\", onMessage);\n if (data.error) reject(new Error((data.error && data.error.message) || \"rpc error\"));\n else resolve(data.result);\n }\n window.addEventListener(\"message\", onMessage);\n post({ jsonrpc: \"2.0\", id: id, method: method, params: params });\n });\n }\n function sendSize() {\n notify(\"ui/notifications/size-changed\", {\n width: Math.ceil(document.documentElement.scrollWidth || document.body.scrollWidth),\n height: Math.ceil(document.documentElement.scrollHeight || document.body.scrollHeight),\n });\n }\n var ZH = (navigator.language || \"\").toLowerCase().indexOf(\"zh\") === 0;\n var COPY = ZH\n ? { copy: \"\u590D\u5236\", copyLink: \"\u590D\u5236\u94FE\u63A5\", open: \"\u6253\u5F00\", kindApp: \"\u5E94\u7528\", kindFile: \"\u6587\u4EF6\", password: \"\u53E3\u4EE4\uFF1A\", publicTag: \"\u516C\u5F00\", passwordTag: \"\u53E3\u4EE4\", unavailable: \"\u5206\u4EAB\u6570\u636E\u4E0D\u53EF\u7528\u3002\", failed: \"\u521D\u59CB\u5316\u5931\u8D25\uFF1A\" }\n : { copy: \"Copy\", copyLink: \"Copy link\", open: \"Open\", kindApp: \"App\", kindFile: \"File\", password: \"Password: \", publicTag: \"Public\", passwordTag: \"Password\", unavailable: \"Share data unavailable.\", failed: \"Failed to initialize: \" };\n function esc(v) {\n return String(v == null ? \"\" : v).replace(/[&<>\"']/g, function (ch) {\n return { \"&\": \"&amp;\", \"<\": \"&lt;\", \">\": \"&gt;\", '\"': \"&quot;\", \"'\": \"&#39;\" }[ch];\n });\n }\n function readResult(params) {\n if (!params || typeof params !== \"object\") return null;\n if (params.structuredContent && typeof params.structuredContent === \"object\") return params.structuredContent;\n var content = params.content;\n var text = content && content[0] && typeof content[0].text === \"string\" ? content[0].text : \"\";\n if (!text) return null;\n try { return JSON.parse(text); } catch (err) { return null; }\n }\n function render(data) {\n if (!data) { root.innerHTML = \"<p>\" + COPY.unavailable + \"</p>\"; sendSize(); return; }\n var title = data.title || \"Published link\";\n var full = data.url || data.path;\n var html = '<div class=\"card\">';\n html += '<div class=\"head\"><span class=\"icon\" aria-hidden=\"true\">\u2197</span><span class=\"title\" title=\"' + esc(title) + '\">' + esc(title) + '</span><span class=\"kind\">' + (data.kind === \"file\" ? COPY.kindFile : COPY.kindApp) + '</span></div>';\n html += '<div class=\"meta\">' + (data.visibility === \"password\" ? COPY.passwordTag : COPY.publicTag) + \"</div>\";\n html += '<div class=\"link\" role=\"button\" tabindex=\"0\" aria-label=\"' + esc(COPY.copyLink) + '\" title=\"' + esc(full) + '\">' + esc(full) + \"</div>\";\n if (data.password) html += '<div class=\"pwd\">' + COPY.password + esc(data.password) + \"</div>\";\n if (data.warnings && data.warnings.length) {\n var warning = data.warnings.join(\" \");\n html += '<div class=\"warn\" title=\"' + esc(warning) + '\">' + esc(warning) + \"</div>\";\n }\n html += '<div class=\"actions\">';\n html += '<button id=\"copy\" aria-label=\"' + esc(COPY.copy) + '\">' + COPY.copy + \"</button>\";\n html += '<button id=\"open\" class=\"primary\" aria-label=\"' + esc(COPY.open) + '\">' + COPY.open + \"</button>\";\n html += \"</div></div>\";\n root.innerHTML = html;\n function copyLink() {\n rpc(\"ui/copy-link\", {\n title: data.title,\n url: data.url || data.path,\n password: data.password,\n passwordLabel: COPY.password\n }).catch(function () {});\n }\n var link = document.querySelector(\".link\");\n link.onclick = copyLink;\n link.onkeydown = function (event) {\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n copyLink();\n }\n };\n document.getElementById(\"copy\").onclick = copyLink;\n document.getElementById(\"open\").onclick = function () {\n rpc(\"ui/open-link\", { url: data.url || data.path }).catch(function () {});\n };\n sendSize();\n }\n window.addEventListener(\"message\", function (event) {\n var data = event.data;\n if (!data || typeof data !== \"object\" || typeof data.method !== \"string\") return;\n if (data.method === \"ui/notifications/tool-result\") render(readResult(data.params));\n });\n if (typeof ResizeObserver !== \"undefined\") new ResizeObserver(sendSize).observe(document.documentElement);\n else window.addEventListener(\"resize\", sendSize);\n rpc(\"ui/initialize\", {\n protocolVersion: \"2025-06-18\",\n capabilities: {},\n clientInfo: { name: \"app-share-card\", version: \"1.0.0\" },\n appCapabilities: { availableDisplayModes: [\"inline\"] },\n }).then(function () {\n notify(\"ui/notifications/initialized\", {});\n sendSize();\n }).catch(function (err) {\n root.innerHTML = \"<p>\" + COPY.failed + esc((err && err.message) || err) + \"</p>\";\n sendSize();\n });\n })();\n </script>\n </body>\n</html>";
16287
+
16288
+ /**
16289
+ * Input for publishing a pinned target.
16290
+ *
16291
+ * - `link` mode requires `visibility`; password visibility requires `password`,
16292
+ * while public visibility must not include one.
16293
+ * - `menu` mode takes an optional display `name` and `group`.
16294
+ */
16295
+ declare const publishTargetSchema: z$1.ZodEffects<z$1.ZodDiscriminatedUnion<"mode", [z$1.ZodObject<{
16296
+ mode: z$1.ZodLiteral<"link">;
16297
+ target: z$1.ZodDiscriminatedUnion<"kind", [z$1.ZodObject<{
16298
+ kind: z$1.ZodLiteral<"file">;
16299
+ path: z$1.ZodString;
16300
+ }, "strip", z$1.ZodTypeAny, {
16301
+ path: string;
16302
+ kind: "file";
16303
+ }, {
16304
+ path: string;
16305
+ kind: "file";
16306
+ }>, z$1.ZodObject<{
16307
+ kind: z$1.ZodLiteral<"mcpApp">;
16308
+ pluginType: z$1.ZodString;
16309
+ toolName: z$1.ZodString;
16310
+ input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
16311
+ connectionKey: z$1.ZodOptional<z$1.ZodString>;
16312
+ }, "strip", z$1.ZodTypeAny, {
16313
+ kind: "mcpApp";
16314
+ pluginType: string;
16315
+ toolName: string;
16316
+ input?: Record<string, unknown> | undefined;
16317
+ connectionKey?: string | undefined;
16318
+ }, {
16319
+ kind: "mcpApp";
16320
+ pluginType: string;
16321
+ toolName: string;
16322
+ input?: Record<string, unknown> | undefined;
16323
+ connectionKey?: string | undefined;
16324
+ }>]>;
16325
+ visibility: z$1.ZodEnum<["public", "password"]>;
16326
+ password: z$1.ZodOptional<z$1.ZodString>;
16327
+ title: z$1.ZodOptional<z$1.ZodString>;
16328
+ expiresInMinutes: z$1.ZodOptional<z$1.ZodNumber>;
16329
+ maxAccess: z$1.ZodOptional<z$1.ZodNumber>;
16330
+ }, "strip", z$1.ZodTypeAny, {
16331
+ mode: "link";
16332
+ visibility: "public" | "password";
16333
+ target: {
16334
+ path: string;
16335
+ kind: "file";
16336
+ } | {
16337
+ kind: "mcpApp";
16338
+ pluginType: string;
16339
+ toolName: string;
16340
+ input?: Record<string, unknown> | undefined;
16341
+ connectionKey?: string | undefined;
16342
+ };
16343
+ title?: string | undefined;
16344
+ maxAccess?: number | undefined;
16345
+ password?: string | undefined;
16346
+ expiresInMinutes?: number | undefined;
16347
+ }, {
16348
+ mode: "link";
16349
+ visibility: "public" | "password";
16350
+ target: {
16351
+ path: string;
16352
+ kind: "file";
16353
+ } | {
16354
+ kind: "mcpApp";
16355
+ pluginType: string;
16356
+ toolName: string;
16357
+ input?: Record<string, unknown> | undefined;
16358
+ connectionKey?: string | undefined;
16359
+ };
16360
+ title?: string | undefined;
16361
+ maxAccess?: number | undefined;
16362
+ password?: string | undefined;
16363
+ expiresInMinutes?: number | undefined;
16364
+ }>, z$1.ZodObject<{
16365
+ mode: z$1.ZodLiteral<"menu">;
16366
+ target: z$1.ZodDiscriminatedUnion<"kind", [z$1.ZodObject<{
16367
+ kind: z$1.ZodLiteral<"file">;
16368
+ path: z$1.ZodString;
16369
+ }, "strip", z$1.ZodTypeAny, {
16370
+ path: string;
16371
+ kind: "file";
16372
+ }, {
16373
+ path: string;
16374
+ kind: "file";
16375
+ }>, z$1.ZodObject<{
16376
+ kind: z$1.ZodLiteral<"mcpApp">;
16377
+ pluginType: z$1.ZodString;
16378
+ toolName: z$1.ZodString;
16379
+ input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
16380
+ connectionKey: z$1.ZodOptional<z$1.ZodString>;
16381
+ }, "strip", z$1.ZodTypeAny, {
16382
+ kind: "mcpApp";
16383
+ pluginType: string;
16384
+ toolName: string;
16385
+ input?: Record<string, unknown> | undefined;
16386
+ connectionKey?: string | undefined;
16387
+ }, {
16388
+ kind: "mcpApp";
16389
+ pluginType: string;
16390
+ toolName: string;
16391
+ input?: Record<string, unknown> | undefined;
16392
+ connectionKey?: string | undefined;
16393
+ }>]>;
16394
+ name: z$1.ZodOptional<z$1.ZodString>;
16395
+ group: z$1.ZodOptional<z$1.ZodString>;
16396
+ }, "strip", z$1.ZodTypeAny, {
16397
+ mode: "menu";
16398
+ target: {
16399
+ path: string;
16400
+ kind: "file";
16401
+ } | {
16402
+ kind: "mcpApp";
16403
+ pluginType: string;
16404
+ toolName: string;
16405
+ input?: Record<string, unknown> | undefined;
16406
+ connectionKey?: string | undefined;
16407
+ };
16408
+ name?: string | undefined;
16409
+ group?: string | undefined;
16410
+ }, {
16411
+ mode: "menu";
16412
+ target: {
16413
+ path: string;
16414
+ kind: "file";
16415
+ } | {
16416
+ kind: "mcpApp";
16417
+ pluginType: string;
16418
+ toolName: string;
16419
+ input?: Record<string, unknown> | undefined;
16420
+ connectionKey?: string | undefined;
16421
+ };
16422
+ name?: string | undefined;
16423
+ group?: string | undefined;
16424
+ }>]>, {
16425
+ mode: "link";
16426
+ visibility: "public" | "password";
16427
+ target: {
16428
+ path: string;
16429
+ kind: "file";
16430
+ } | {
16431
+ kind: "mcpApp";
16432
+ pluginType: string;
16433
+ toolName: string;
16434
+ input?: Record<string, unknown> | undefined;
16435
+ connectionKey?: string | undefined;
16436
+ };
16437
+ title?: string | undefined;
16438
+ maxAccess?: number | undefined;
16439
+ password?: string | undefined;
16440
+ expiresInMinutes?: number | undefined;
16441
+ } | {
16442
+ mode: "menu";
16443
+ target: {
16444
+ path: string;
16445
+ kind: "file";
16446
+ } | {
16447
+ kind: "mcpApp";
16448
+ pluginType: string;
16449
+ toolName: string;
16450
+ input?: Record<string, unknown> | undefined;
16451
+ connectionKey?: string | undefined;
16452
+ };
16453
+ name?: string | undefined;
16454
+ group?: string | undefined;
16455
+ }, {
16456
+ mode: "link";
16457
+ visibility: "public" | "password";
16458
+ target: {
16459
+ path: string;
16460
+ kind: "file";
16461
+ } | {
16462
+ kind: "mcpApp";
16463
+ pluginType: string;
16464
+ toolName: string;
16465
+ input?: Record<string, unknown> | undefined;
16466
+ connectionKey?: string | undefined;
16467
+ };
16468
+ title?: string | undefined;
16469
+ maxAccess?: number | undefined;
16470
+ password?: string | undefined;
16471
+ expiresInMinutes?: number | undefined;
16472
+ } | {
16473
+ mode: "menu";
16474
+ target: {
16475
+ path: string;
16476
+ kind: "file";
16477
+ } | {
16478
+ kind: "mcpApp";
16479
+ pluginType: string;
16480
+ toolName: string;
16481
+ input?: Record<string, unknown> | undefined;
16482
+ connectionKey?: string | undefined;
16483
+ };
16484
+ name?: string | undefined;
16485
+ group?: string | undefined;
16486
+ }>;
16487
+ /**
16488
+ * Input for `list_menu_groups` (no fields).
16489
+ */
16490
+ declare const listMenuGroupsSchema: z$1.ZodObject<{}, "strip", z$1.ZodTypeAny, {}, {}>;
16491
+
16492
+ /**
16493
+ * Built-in global plugin that publishes project files and sandbox plugin MCP
16494
+ * Apps as share links or workspace menu items.
16495
+ *
16496
+ * The plugin has no connection of its own and no tenant data; the tools resolve
16497
+ * the target tenant plugin/tool and its connection at invocation time.
16498
+ *
16499
+ * @remarks
16500
+ * - `publish_target` handles both link and menu modes.
16501
+ * - `list_menu_groups` is read-only and should be called before choosing a
16502
+ * menu group.
16503
+ */
16504
+ declare const appSharePlugin: Plugin;
16505
+
16039
16506
  /** Stable reasons for rejecting capability bundle input. */
16040
16507
  type CapabilityBundleValidationErrorCode = "CAPABILITY_BUNDLE_EMPTY_FIELD" | "CAPABILITY_BUNDLE_INELIGIBLE_CAPABILITY" | "CAPABILITY_BUNDLE_INVALID_CAPABILITY" | "CAPABILITY_BUNDLE_DUPLICATE_CAPABILITY" | "CAPABILITY_BUNDLE_EMPTY_ALLOWED_TOOLS" | "CAPABILITY_BUNDLE_UNKNOWN_TOOL" | "CAPABILITY_BUNDLE_TOOLS_UNAVAILABLE" | "CAPABILITY_BUNDLE_NULL_VALUE" | "CAPABILITY_BUNDLE_UNSAFE_KEY" | "CAPABILITY_BUNDLE_NESTED_REFERENCE" | "CAPABILITY_BUNDLE_INVALID_CONFIG" | "CAPABILITY_BUNDLE_CYCLIC_CONFIG" | "CAPABILITY_BUNDLE_CONFIG_TOO_DEEP" | "CAPABILITY_BUNDLE_CONFIG_TOO_LARGE" | "CAPABILITY_BUNDLE_NON_JSON_VALUE" | "CAPABILITY_BUNDLE_CREDENTIALS_FORBIDDEN";
16041
16508
  /** Describes invalid capability bundle input with a stable code and location. */
@@ -16177,9 +16644,19 @@ declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerC
16177
16644
  * @remarks
16178
16645
  * Thresholds are supplied at construction time; callers typically read them from
16179
16646
  * env via `readLoopBreakerConfig`. A threshold of `0` disables the guard.
16647
+ *
16648
+ * @deprecated The default agent build no longer installs this middleware.
16649
+ * `RunGovernanceMiddleware` (`runGovernance.ts`) now owns repeated-tool detection
16650
+ * together with the per-run model/tool/skill budgets and graceful wrap-up. Keep
16651
+ * this export only for custom middleware chains that opt in explicitly.
16180
16652
  */
16181
16653
 
16182
- /** Raised when a run keeps issuing the identical tool call past the stop threshold. */
16654
+ /**
16655
+ * Raised when a run keeps issuing the identical tool call past the stop threshold.
16656
+ *
16657
+ * @deprecated Only thrown by {@link createRepeatedToolCallBreakerMiddleware}, which
16658
+ * the default agent build no longer installs; see `RunGovernanceMiddleware`.
16659
+ */
16183
16660
  declare class RepeatedToolCallError extends Error {
16184
16661
  readonly toolName: string | undefined;
16185
16662
  readonly count: number;
@@ -16200,7 +16677,12 @@ interface LoopBreakerConfig {
16200
16677
  }
16201
16678
  /** Read loop-breaker thresholds from env. 0 disables a guard. Invalid values fall back to defaults. */
16202
16679
  declare function readLoopBreakerConfig(env?: NodeJS.ProcessEnv): LoopBreakerConfig;
16203
- /** Construction options for {@link createRepeatedToolCallBreakerMiddleware}. */
16680
+ /**
16681
+ * Construction options for {@link createRepeatedToolCallBreakerMiddleware}.
16682
+ *
16683
+ * @deprecated Only used by the deprecated standalone breaker; the default agent
16684
+ * build uses `RunGovernanceMiddleware` instead.
16685
+ */
16204
16686
  interface RepeatedToolCallBreakerOptions {
16205
16687
  /**
16206
16688
  * Call count at which the repeated call is blocked with a reminder (default 20).
@@ -16224,6 +16706,12 @@ interface RepeatedToolCallBreakerOptions {
16224
16706
  * (counting and the hard stop still apply); `stopThreshold <= 0` is treated as
16225
16707
  * disabled at install time (callers gate on it).
16226
16708
  * @returns A LangChain `AgentMiddleware` that can be pushed onto the middleware chain.
16709
+ *
16710
+ * @deprecated The default agent build no longer installs this middleware.
16711
+ * `RunGovernanceMiddleware` provides the same consecutive-identical-call detection
16712
+ * (plus per-run budgets and a graceful wrap-up), with a different warn contract:
16713
+ * its warn tier only injects a reminder instead of blocking the call. Use it unless
16714
+ * a custom chain explicitly needs the breaker's hard blocking behavior.
16227
16715
  */
16228
16716
  declare function createRepeatedToolCallBreakerMiddleware(options?: RepeatedToolCallBreakerOptions): AgentMiddleware;
16229
16717
 
@@ -17098,4 +17586,4 @@ declare function parseDirectRoomType(projectId: string): "human" | "bot" | null;
17098
17586
  */
17099
17587
  declare function isDirectRoom(projectId: string): boolean;
17100
17588
 
17101
- export { type AddMessageParams, type AddMessageResult, Agent, type AgentCheckpointTip, type AgentClient, type AgentExecutor, type AgentGraphTree, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, type AgentLifecycleTapEvent, AgentRunAlreadyActiveError, type AgentRunCounts, AgentRunDuplicateMessageIdError, type AgentRunExpiredOutcome, AgentRunInputCommandConflictError, AgentRunInvalidTaskIdError, type AgentRunJsonObject, type AgentRunPendingCursor, type AgentRunRecord, type AgentRunRollbackResult, type AgentRunSource, type AgentRunStatus, AgentRunTenantQuotaExceededError, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type AppendLog, type AppendLogReader, type AppendLogRecord, type ApproveInterruptedTaskInput, type AssignTaskOwnerInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, BaseCheckpointMismatchError, type BeginAgentRunInput, type BeginRunFailure, type BeginRunInput, type BeginRunResult, type BeginRunSuccess, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, COLLECTION_CHANGED_TOPIC, type CacheEntry, type CalibrationProbe, CapabilityBundleMergeError, type CapabilityBundleMergeErrorCode, CapabilityBundleMerger, CapabilityBundleValidationError, type CapabilityBundleValidationErrorCode, type CapabilityGuardDenialCode, type CapabilityResourceSelector, type CapabilityToolMetadata, CapabilityToolNameConflictError, CapabilityToolRegistry, type CaseRunResult, ChannelConnectionLeader, type ChannelConnectionLeaderDeps, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, ChunkCursorExpiredError, type ClaimAgentRunInput, type ClaimMessagesOptions, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, type ConnectionPayloadInput, ConnectionRegistry, ConsoleLoggerClient, type CreatePendingAgentRunInput, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_CONTENTS_EMBEDDING_PATH, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_MODEL_EXTRA, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, DEFAULT_SUMMARIZATION_TRIGGER_TOKENS, DEFAULT_TEXTS_EMBEDDING_PATH, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DefaultScheduleClientOptions, DelegatedScopeNotQueueableError, type DelegationRequest, DelegationService, type DeleteAgentRunExpected, type DeleteResult, DependencyResolver, type DispatchPreparation, DuplicateProjectRoomMessageIdempotencyKeyError, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingShape, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EmbeddingsRuntimeConfig, type EnsureMicrosandboxInput, type EvalRunService, type ExecuteRunInput, type ExecuteRunOutcome, type ExecuteRunResult, type ExecutionAuthority, ExecutionAuthorityRegistry, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GetThreadRunOwnerInput, type GrepMatch, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, type HandlerEnvelope, type HostArgs, type IAgentRunLedger, type IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentRunStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChannelReplyJobStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryLeaseStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, LeaseAcquisitionTimeoutError, type LifecycleResult, type LifecycleWarning, type ListPendingRunsOptions, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LongTermStoreConfig, type LongTermStoreMode, type LongTermStoreScope, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_HANDLER_TIMEOUT_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, MAX_TIMER_DELAY, MIN_HANDLER_TIMEOUT_MS, ManagedTaskStartError, type ManagedTaskStartOptions, type ManifestValidationResult, type McpClientFactory, type McpClientLike, type McpClientSession, type McpConnectionOptions, McpLatticeManager, type McpRegisterOptions, type McpServerId, type McpServerRuntime, type McpServerState, type McpUiScopeInput, type McpUiScopePayload, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MergedPluginSkills, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageInterruptedEvent, type MessageLike, type MessageStartedEvent, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type ModelRuntimeConfig, MysqlDatabase, ObservabilityDashboardUnavailableError, ObservabilityDashboardUnsupportedError, ObservabilityLatticeManager, type ObservabilityObservation, type ObservabilityObservationType, type ObservabilityProvider, type ObservabilityProviderCapabilities, type ObservabilityTraceContext, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_MS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, type PluginDeploymentRuntimeHealth, PluginDeploymentRuntimeRegistry, type PluginDeploymentRuntimeRegistryOptions, type PluginDeploymentServiceDeployOptions, type PluginDeploymentServiceDeployResult, type PluginDeploymentServiceLike, type PluginDeploymentServiceListEntry, type PluginDeploymentServiceMode, type PluginDeploymentServiceStatus, type PluginDeploymentServiceUndeployResult, PluginRegistry, type PluginSources, type PostProcessTaskMutationResponseInput, PostgresDatabase, type PreviewError, ProjectBotMembershipIdConflictError, ProjectMutationMutex, type ProjectMutationScope, ProjectRoomMessageIdConflictError, type ProjectTaskAdmissionListener, type ProjectTaskAdmissionNotification, ProjectTaskAdmissionNotifier, type ProjectTaskAdmissionNotifierOptions, type ProjectTaskAssignmentScope, ProjectTaskOwnerPolicy, type ProjectTaskOwnerPolicyCode, ProjectTaskOwnerPolicyError, type ProjectTaskReassignmentAuthorization, type ProjectTaskReassignmentAuthorizationInput, type ProjectTaskReassignmentAuthorizer, type ProjectTaskReassignmentThreadValidationInput, type ProjectTaskReassignmentThreadValidator, type ProjectTaskRosterScope, PrometheusClient, type ProvisionFileSink, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, ROOM_COORDINATOR_KEY, type ReapedAgentRun, type ReassignProjectTaskInput, type ReconcileAllTenantTaskRunsInput, type ReconcileStaleTaskRunsInput, type ReconcileStaleTaskRunsResult, type ReconcileTaskDescriptionInput, type ReconcileTenantTaskRunsInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RepeatedToolCallBreakerOptions, RepeatedToolCallError, type ReplyReadyEvent, type ResidentConnectionConfig, type ResidentDeployment, type ResidentInvokeArgs, type ResidentInvokePayload, type ResidentInvokeResult, type ResidentRoutingDeps, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RollbackFailureResult, type RoomAgentCorrelatedInterruptInput, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunAsLeaderOptions, type RunAsLeaderResult, type RunCancelHeartbeatFallbackObserver, RunInterruptMismatchError, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, SUMMARIZATION_TRIGGER_RATIO, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxOpenClientBundle, type SandboxOpenCredential, type SandboxOpenCredentialContext, type SandboxOpenCredentialProvider, type SandboxOpenCredentialProviderOptions, SandboxPluginExecutor, type SandboxPluginExecutorDeps, type SandboxPluginInvokeArgs, type SandboxPluginResult, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxResolver, type SandboxRunConfig, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleExpiredRunOptions, type SettleRunInput, type SettleRunOutcome, type SharePayload, SharedChunkBuffer, type SharedChunkBufferOptions, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StartLifecycleResult, type StartTaskExecutionInput, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TASK_RESPONSE_FINAL_WARNING_LIMIT, TASK_RESPONSE_PRIOR_WARNING_LIMIT, TASK_RESPONSE_SCALAR_MAX_BYTES, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskAgentInvocation, type TaskExecutionFailure, type TaskExecutionManaged, type TaskExecutionResult, type TaskExecutionServiceDeps, type TaskExecutionSuccess, type TaskLifecycleListener, type TaskLifecycleNotification, TaskLifecycleNotifier, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskLivenessProbe, type TaskResponseParseResult, type TaskRunBridge, type TaskRunBridgeDeps, TaskRunBridgeStoresRequiredError, type TaskRunLeaseHandle, TaskRunRegistry, TenantPluginCatalog, type TenantPluginCatalogDeps, type TenantPlugins, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadEndCode, ThreadEndError, ThreadEventsUnavailableError, ThreadExecutionSupervisor, type ThreadExecutionSupervisorAgent, type ThreadExecutionSupervisorAgentParams, type ThreadExecutionSupervisorOptions, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadRunLeaseHandle, type ThreadRunOwnerProbe, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ThreadStreamRecord, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type TryAcquireTaskRunInput, type TryAcquireThreadRunInput, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, UnsupportedModelProviderError, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WithLeaseOptions, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appendReconciliationWarning, appendUiFence, assertQueueSources, assertSafeUpstreamUrl, buildBundleFromDist, buildConnectionPayload, buildGrepResultsDict, buildHandlerCommand, buildInput, buildModelConfig, buildModelEmbeddingsConfig, buildModelLlmConfig, buildModelSttConfig, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSandboxOpenEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, canConvergeOrphan, channelShardForInstallation, checkEmptyContent, chunkBufferStreamKey, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCollectionSync, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createLongTermStoreMiddleware, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProjectRoomMiddleware, createProjectTaskOwnerPolicy, createProjectTaskReassignmentAuthorizer, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createRepeatedToolCallBreakerMiddleware, createResourceAddress, createSandboxProvider, createSandboxResolver, createSchedulerMiddleware, createSharePayload, createShellExecTool, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTaskRunLiveness, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, decryptConfigFields, delegationService, describeCronExpression, disconnectAllChannels, documentLearningPlugin, documentParserPlugin, embeddingProbeCandidates, embeddingsLatticeManager, encodeInput, encrypt, encryptConfigFields, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAgentRunInputMessageIds, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMcpUiScopeSecret, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, handlerResultText, hasChunkBuffer, hasDelegatedWorkerToken, hasModelLatticeForTenant, hasModelLatticeForTenantSync, hasRuntimeCapabilityPolicy, installPluginHost, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isEncryptedValue, isMcpConnectionError, isOfficialInterruptId, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isTaskRunLeaseHeld, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listModelLatticesForTenant, listSandboxProviderTypes, listTenantPlugins, loggerLatticeManager, longTermStorePlugin, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeAgentInterrupts, normalizeAgentRunMessageIds, normalizeSandboxName, observabilityLatticeManager, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseHandlerEnvelope, parseHostArgs, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, pluginHostContentHash, postProcessTaskMutationResponse, prepareTaskDispatch, probeThreadRunOwner, projectMutationMutex, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishCollectionChanged, publishPluginCatalogChanged, queueLatticeManager, readContextWindow, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerObservabilityLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEmbeddingEndpoint, resolveEmbeddingShape, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolveObservabilityCallbacks, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveStartIndex, resolveSummarizationTriggerTokens, resolveTenantPluginSkill, roomCoordinatorConfig, runAsLeader, runRemotePackDirectory, safeDecrypt, safeTaskResponseId, sandboxLatticeManager, sanitizeCallerRunConfig, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setAgentLifecycleTap, setBindingRegistry, setDefaultObservabilityLattice, setEvalRunService, setMenuRegistry, setPluginDeploymentService, setRunCancelHeartbeatFallbackObserver, setSandboxPluginCatalog, signMcpUiScope, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunLeaseKey, taskRunRegistry, threadRunLeaseKey, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, tryAcquireTaskRun, tryAcquireThreadRun, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, verifyMcpUiScope, withLease, withTimeout, wrapMcpToolWithUi };
17589
+ export { type AddMessageParams, type AddMessageResult, Agent, type AgentCheckpointTip, type AgentClient, type AgentExecutor, type AgentGraphTree, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, type AgentLifecycleTapEvent, AgentRunAlreadyActiveError, type AgentRunCounts, AgentRunDuplicateMessageIdError, type AgentRunExpiredOutcome, AgentRunInputCommandConflictError, AgentRunInvalidTaskIdError, type AgentRunJsonObject, type AgentRunPendingCursor, type AgentRunRecord, type AgentRunRollbackResult, type AgentRunSource, type AgentRunStatus, AgentRunTenantQuotaExceededError, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type AppendLog, type AppendLogReader, type AppendLogRecord, type ApproveInterruptedTaskInput, type AssignTaskOwnerInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, BaseCheckpointMismatchError, type BeginAgentRunInput, type BeginRunFailure, type BeginRunInput, type BeginRunResult, type BeginRunSuccess, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, COLLECTION_CHANGED_TOPIC, type CacheEntry, type CalibrationProbe, CapabilityBundleMergeError, type CapabilityBundleMergeErrorCode, CapabilityBundleMerger, CapabilityBundleValidationError, type CapabilityBundleValidationErrorCode, type CapabilityGuardDenialCode, type CapabilityResourceSelector, type CapabilityToolMetadata, CapabilityToolNameConflictError, CapabilityToolRegistry, type CaseRunResult, ChannelConnectionLeader, type ChannelConnectionLeaderDeps, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, ChunkCursorExpiredError, type ClaimAgentRunInput, type ClaimMessagesOptions, CollectionLatticeManager, type ColumnInfo, type CompileSandboxPluginArgs, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, type ConnectionPayloadInput, ConnectionRegistry, ConsoleLoggerClient, type CreatePendingAgentRunInput, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, DEFAULT_CONNECT_TIMEOUT_MS, DEFAULT_CONTENTS_EMBEDDING_PATH, DEFAULT_DELAY_MS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_MAX_ATTEMPTS, DEFAULT_MODEL_EXTRA, DEFAULT_RESIDENT_INVOKE_TIMEOUT_MS, DEFAULT_SUMMARIZATION_TRIGGER_TOKENS, DEFAULT_TEXTS_EMBEDDING_PATH, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DefaultScheduleClientOptions, DelegatedScopeNotQueueableError, type DelegationRequest, DelegationService, type DeleteAgentRunExpected, type DeleteResult, DependencyResolver, type DispatchPreparation, DuplicateProjectRoomMessageIdempotencyKeyError, DuplicateShareTokenError, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingShape, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EmbeddingsRuntimeConfig, type EnsureMicrosandboxInput, type EvalRunService, type ExecuteRunInput, type ExecuteRunOutcome, type ExecuteRunResult, type ExecutionAuthority, ExecutionAuthorityRegistry, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GetThreadRunOwnerInput, type GrepMatch, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, type HandlerEnvelope, type HostArgs, type IAgentRunLedger, type IMessageQueueStore, type IMetricsServerClient, INLINE_INPUT_LIMIT_BYTES, type ISqlDatabase, IdRemapper, type ImmediateDispatchPlan, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentRunStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChannelReplyJobStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryLeaseStore, InMemoryMenuStore, InMemoryModelProviderStore, InMemoryOpenAuditStore, InMemoryOutboxStore, InMemoryProjectBotMembershipStore, InMemoryProjectMembershipStore, InMemoryProjectRoomCoordinator, InMemoryProjectRoomMessageStore, InMemoryProjectRoomReadStateStore, InMemoryProjectRoomStore, InMemoryProjectStore, InMemorySharedResourceStore, InMemoryStore, InMemoryTaskStore, InMemoryTaskWorkItemStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserPushSubscriptionStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type InstallPluginHostResult, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, LeaseAcquisitionTimeoutError, type LifecycleResult, type LifecycleWarning, type ListPendingRunsOptions, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, type LongTermStoreConfig, type LongTermStoreMode, type LongTermStoreScope, type LoopBreakerConfig, MAX_BACKOFF_MS, MAX_HANDLER_TIMEOUT_MS, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, MAX_TIMER_DELAY, MIN_HANDLER_TIMEOUT_MS, ManagedTaskStartError, type ManagedTaskStartOptions, type ManifestValidationResult, type McpClientFactory, type McpClientLike, type McpClientSession, type McpConnectionOptions, McpLatticeManager, type McpRegisterOptions, type McpServerId, type McpServerRuntime, type McpServerState, type McpUiScopeInput, type McpUiScopePayload, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MergedPluginSkills, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageInterruptedEvent, type MessageLike, type MessageStartedEvent, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type ModelRuntimeConfig, MysqlDatabase, ObservabilityDashboardUnavailableError, ObservabilityDashboardUnsupportedError, ObservabilityLatticeManager, type ObservabilityObservation, type ObservabilityObservationType, type ObservabilityProvider, type ObservabilityProviderCapabilities, type ObservabilityTraceContext, OutboxPoller, type OutboxPollerDeps, type OutputType, PACK_DIRECTORY_TIMEOUT_MS, PLATFORM_SECRET_ENV_VARS, PLUGIN_CATALOG_CHANGED_TOPIC, PLUGIN_HOST_DIR, PLUGIN_HOST_SERVER_SOURCE, PLUGIN_HOST_VERSION, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, type PluginConnectionScope, type PluginDeploymentRuntimeHealth, PluginDeploymentRuntimeRegistry, type PluginDeploymentRuntimeRegistryOptions, type PluginDeploymentServiceDeployOptions, type PluginDeploymentServiceDeployResult, type PluginDeploymentServiceLike, type PluginDeploymentServiceListEntry, type PluginDeploymentServiceMode, type PluginDeploymentServiceStatus, type PluginDeploymentServiceUndeployResult, PluginRegistry, type PluginSources, type PostProcessTaskMutationResponseInput, PostgresDatabase, type PreviewError, ProjectBotMembershipIdConflictError, ProjectMutationMutex, type ProjectMutationScope, type ProjectRoomMessageCommittedListener, ProjectRoomMessageIdConflictError, ProjectRoomMessageNotifier, type ProjectTaskAdmissionListener, type ProjectTaskAdmissionNotification, ProjectTaskAdmissionNotifier, type ProjectTaskAdmissionNotifierOptions, type ProjectTaskAssignmentScope, ProjectTaskOwnerPolicy, type ProjectTaskOwnerPolicyCode, ProjectTaskOwnerPolicyError, type ProjectTaskReassignmentAuthorization, type ProjectTaskReassignmentAuthorizationInput, type ProjectTaskReassignmentAuthorizer, type ProjectTaskReassignmentThreadValidationInput, type ProjectTaskReassignmentThreadValidator, type ProjectTaskRosterScope, PrometheusClient, type ProvisionFileSink, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, ROOM_COORDINATOR_KEY, type ReapedAgentRun, type ReassignProjectTaskInput, type ReconcileAllTenantTaskRunsInput, type ReconcileStaleTaskRunsInput, type ReconcileStaleTaskRunsResult, type ReconcileTaskDescriptionInput, type ReconcileTenantTaskRunsInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RepeatedToolCallBreakerOptions, RepeatedToolCallError, type ReplyReadyEvent, type ResidentConnectionConfig, type ResidentDeployment, type ResidentInvokeArgs, type ResidentInvokePayload, type ResidentInvokeResult, type ResidentRoutingDeps, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResolvedPluginConnection, type ResolvedPluginSkill, type ResumeTaskResult, type RollbackFailureResult, type RoomAgentCorrelatedInterruptInput, type RoomAgentMessageCallbackFailure, type RoomAgentMessageCommitted, type RoomAgentMessageInput, RoomAgentMessageService, type RoomAgentReplyInput, type RunAsLeaderOptions, type RunAsLeaderResult, type RunCancelHeartbeatFallbackObserver, RunInterruptMismatchError, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, SANDBOX_OPEN_GATEWAY_URL_ENV, SANDBOX_OPEN_TOKEN_ENV, SHARE_CARD_APP_HTML, SHARE_CARD_UI_RESOURCE, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, SUMMARIZATION_TRIGGER_RATIO, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxGrepMatch, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxOpenClientBundle, type SandboxOpenCredential, type SandboxOpenCredentialContext, type SandboxOpenCredentialProvider, type SandboxOpenCredentialProviderOptions, SandboxPluginExecutor, type SandboxPluginExecutorDeps, type SandboxPluginInvokeArgs, type SandboxPluginResult, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxResolver, type SandboxRunConfig, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SettleExpiredRunOptions, type SettleRunInput, type SettleRunOutcome, type SharePayload, SharePayloadError, SharedChunkBuffer, type SharedChunkBufferOptions, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StartLifecycleResult, type StartTaskExecutionInput, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TASK_RESPONSE_FINAL_WARNING_LIMIT, TASK_RESPONSE_PRIOR_WARNING_LIMIT, TASK_RESPONSE_SCALAR_MAX_BYTES, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskAgentInvocation, type TaskExecutionFailure, type TaskExecutionManaged, type TaskExecutionResult, type TaskExecutionServiceDeps, type TaskExecutionSuccess, type TaskLifecycleListener, type TaskLifecycleNotification, TaskLifecycleNotifier, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskLivenessProbe, type TaskResponseParseResult, type TaskRunBridge, type TaskRunBridgeDeps, TaskRunBridgeStoresRequiredError, type TaskRunLeaseHandle, TaskRunRegistry, TenantPluginCatalog, type TenantPluginCatalogDeps, type TenantPlugins, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadEndCode, ThreadEndError, ThreadEventsUnavailableError, ThreadExecutionSupervisor, type ThreadExecutionSupervisorAgent, type ThreadExecutionSupervisorAgentParams, type ThreadExecutionSupervisorOptions, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadRunLeaseHandle, type ThreadRunOwnerProbe, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ThreadStreamRecord, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TransferOwnerInput, type TransferOwnerResult, type TrustedAgentMessageDispatcher, type TrustedMessageOptions, type TryAcquireTaskRunInput, type TryAcquireThreadRunInput, type UnknownToolHandlerConfig, UnsafeUpstreamUrlError, type UnsafeUrlReason, UnsupportedModelProviderError, type ValidateManifestArgs, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WithLeaseOptions, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, appSharePlugin, appendReconciliationWarning, appendUiFence, assertQueueSources, assertSafeUpstreamUrl, buildBundleFromDist, buildConnectionPayload, buildGrepResultsDict, buildHandlerCommand, buildInput, buildModelConfig, buildModelEmbeddingsConfig, buildModelLlmConfig, buildModelSttConfig, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSandboxOpenEnv, buildSkillFile, buildStateAnnotation, buildTableName, buildTaskMutationFallback, buildTaskNormalizationFallback, canConvergeOrphan, channelShardForInstallation, checkEmptyContent, chunkBufferStreamKey, clearEncryptionKeyCache, clearEvalRunService, clearSandboxOpenCredentialProviderForTests, collectPluginSources, collectionLatticeManager, compileInternal, compileSandboxPlugin, compileWorkflow, computeSandboxName, configureCollectionSync, configureCoordinationLeaseStore, configurePluginCatalogSync, configureStores, connectAllChannels, connectionSecretFields, convertToConnection, createAgentNode, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createLongTermStoreMiddleware, createMapNode, createMcpAppSharePayload, createModelSelectorMiddleware, createNodeHandler, createProjectRoomMiddleware, createProjectTaskOwnerPolicy, createProjectTaskReassignmentAuthorizer, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createRepeatedToolCallBreakerMiddleware, createResourceAddress, createSandboxProvider, createSandboxResolver, createSchedulerMiddleware, createSharePayload, createShellExecTool, createTaskExecutionService, createTaskLifecycleService, createTaskMiddleware, createTaskRunBridge, createTaskRunLiveness, createTrustedAgentMessageDispatcher, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, decryptConfigFields, delegationService, describeCronExpression, disconnectAllChannels, documentLearningPlugin, documentParserPlugin, embeddingProbeCandidates, embeddingsLatticeManager, encodeInput, encrypt, encryptConfigFields, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, executionAuthorityRegistry, extractAgentRunInputMessageIds, extractAppsRef, extractFetcherError, extractLegacyRefs, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateDirectBotProjectId, generateDirectHumanProjectId, generateToken, getAgentClient, getAgentClientAsync, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getCoordinationLeaseStore, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMcpUiScopeSecret, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginDeploymentService, getPluginSkillManifestVersion, getQueueLattice, getReplicaId, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getSandboxOpenCredential, getSandboxOpenGatewayUrl, getSandboxPluginCatalog, getScheduleLattice, getStoreLattice, getThreadRunOwner, getToolClient, getToolClientWithTenant, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, handlerResultText, hasChunkBuffer, hasDelegatedWorkerToken, hasModelLatticeForTenant, hasModelLatticeForTenantSync, hasRuntimeCapabilityPolicy, installPluginHost, invokeResident, invokeWithRetry, isBuiltInSkill, isDirectRoom, isEncryptedValue, isMcpConnectionError, isOfficialInterruptId, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isTaskRunLeaseHeld, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, jsonSchemaToZod, listCollectionEntries, listMenuGroupsSchema, listModelLatticesForTenant, listSandboxProviderTypes, listTenantPlugins, loggerLatticeManager, longTermStorePlugin, mcpManager, mergeCapabilityBundles, mergePluginSkills, mergePluginSources, metricsServerManager, modelLatticeManager, nextBackoffDelay, normalizeAgentInterrupts, normalizeAgentRunMessageIds, normalizeSandboxName, observabilityLatticeManager, ownTaskResponseField, parallelLimit, parseCronExpression, parseDirectRoomType, parseHandlerEnvelope, parseHostArgs, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseTaskResponse, parseYaml, performStringReplacement, pluginHostContentHash, postProcessTaskMutationResponse, prepareTaskDispatch, probeThreadRunOwner, projectMutationMutex, projectRoomMessageNotifier, projectRoomPlugin, projectTaskAdmissionNotifier, provisionSandboxOpenClient, publishCollectionChanged, publishPluginCatalogChanged, publishTargetSchema, queueLatticeManager, readContextWindow, readLoopBreakerConfig, reconcileAllTenantTaskRuns, reconcileStaleTaskRuns, reconcileTenantTaskRuns, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerExistingToolWithTenant, registerLoggerLattice, registerModelLattice, registerModelLatticeForTenant, registerObservabilityLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxOpenCredentialProvider, registerSandboxOpenGatewayUrlProvider, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resetReplicaIdForTests, resolveEmbeddingEndpoint, resolveEmbeddingShape, resolveEnabledPluginSkill, resolveHandlerTimeoutMs, resolveJudgeModelKey, resolveModelLatticeForTenant, resolveObservabilityCallbacks, resolvePath, resolvePluginConnections, resolveSandboxPluginConnections, resolveStartIndex, resolveSummarizationTriggerTokens, resolveTenantPluginSkill, roomCoordinatorConfig, runAsLeader, runRemotePackDirectory, safeDecrypt, safeTaskResponseId, sandboxLatticeManager, sanitizeCallerRunConfig, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, serializeTaskMutationSuccess, serializeTaskNormalizationFallback, serializeTaskReadResponse, setAgentLifecycleTap, setBindingRegistry, setDefaultObservabilityLattice, setEvalRunService, setMenuRegistry, setPluginDeploymentService, setRunCancelHeartbeatFallbackObserver, setSandboxPluginCatalog, signMcpUiScope, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, taskLifecycleNotifier, taskRunLeaseKey, taskRunRegistry, threadRunLeaseKey, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, tryAcquireTaskRun, tryAcquireThreadRun, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSandboxPluginManifest, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager, verifyMcpUiScope, withLease, withTimeout, wrapMcpToolWithUi };