@axiom-lattice/protocols 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +7 -0
- package/dist/index.d.mts +134 -11
- package/dist/index.d.ts +134 -11
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/McpAppShareProtocol.ts +29 -0
- package/src/McpUiProtocol.ts +13 -0
- package/src/MenuProtocol.ts +2 -0
- package/src/OpenProtocol.ts +27 -1
- package/src/SandboxResourceProtocol.ts +91 -15
- package/src/__tests__/McpUiProtocol.toolName.test.ts +26 -0
- package/src/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -4533,6 +4533,8 @@ type McpUiRef = {
|
|
|
4533
4533
|
resourceUri: string;
|
|
4534
4534
|
displayMode: McpUiDisplayMode;
|
|
4535
4535
|
title?: string;
|
|
4536
|
+
/** Tool that produced the UI resource (1..128 chars), when known. */
|
|
4537
|
+
toolName?: string;
|
|
4536
4538
|
/**
|
|
4537
4539
|
* Retained only for backward compatibility with pre-unification
|
|
4538
4540
|
* messages; no longer emitted. Rich tool results now travel via
|
|
@@ -4545,6 +4547,8 @@ type McpUiRef = {
|
|
|
4545
4547
|
resource: string;
|
|
4546
4548
|
displayMode: McpUiDisplayMode;
|
|
4547
4549
|
title?: string;
|
|
4550
|
+
/** Tool that produced the UI resource (1..128 chars), when known. */
|
|
4551
|
+
toolName?: string;
|
|
4548
4552
|
/** Opaque HMAC-signed run/connection scope (1..4096 chars); never contains secrets. */
|
|
4549
4553
|
scope?: string;
|
|
4550
4554
|
};
|
|
@@ -4599,6 +4603,7 @@ type McpAppMenuConfig = {
|
|
|
4599
4603
|
resourceUri: string;
|
|
4600
4604
|
displayMode?: McpUiDisplayMode;
|
|
4601
4605
|
title?: string;
|
|
4606
|
+
toolName?: string;
|
|
4602
4607
|
toolInput?: Record<string, unknown>;
|
|
4603
4608
|
toolResult?: unknown;
|
|
4604
4609
|
ui?: ToolCallUi;
|
|
@@ -4608,6 +4613,7 @@ type McpAppMenuConfig = {
|
|
|
4608
4613
|
resource: string;
|
|
4609
4614
|
displayMode?: McpUiDisplayMode;
|
|
4610
4615
|
title?: string;
|
|
4616
|
+
toolName?: string;
|
|
4611
4617
|
/** Signed scope copied from the ref so a pinned App can keep calling. */
|
|
4612
4618
|
scope?: string;
|
|
4613
4619
|
toolInput?: Record<string, unknown>;
|
|
@@ -5759,6 +5765,16 @@ interface ChannelAdapter<TConfig = unknown> {
|
|
|
5759
5765
|
* OpenProtocol — contracts for the Open API surface (unified external
|
|
5760
5766
|
* capability invocation). See docs/superpowers/specs/2026-09-07-open-platform-api-design.md.
|
|
5761
5767
|
*/
|
|
5768
|
+
/** Resource constraints attached to a grant (domain-specific). */
|
|
5769
|
+
interface OpenGrantSelector {
|
|
5770
|
+
/** Sandbox self-binding, set only on server-minted sandbox tokens. */
|
|
5771
|
+
sandbox?: "self";
|
|
5772
|
+
/**
|
|
5773
|
+
* Connection keys of this domain's connection type (the plugin type).
|
|
5774
|
+
* Absent/empty keeps the legacy connect-all behavior.
|
|
5775
|
+
*/
|
|
5776
|
+
connections?: string[];
|
|
5777
|
+
}
|
|
5762
5778
|
/** Authorization grant: default-deny; a grant covers one capability domain. */
|
|
5763
5779
|
interface OpenGrant {
|
|
5764
5780
|
domain: string;
|
|
@@ -5767,9 +5783,7 @@ interface OpenGrant {
|
|
|
5767
5783
|
* Absent/empty = every action in the domain.
|
|
5768
5784
|
*/
|
|
5769
5785
|
items?: string[];
|
|
5770
|
-
selector?:
|
|
5771
|
-
sandbox?: "self";
|
|
5772
|
-
};
|
|
5786
|
+
selector?: OpenGrantSelector;
|
|
5773
5787
|
}
|
|
5774
5788
|
/** Execution context synthesized from a verified credential — never from the caller. */
|
|
5775
5789
|
interface OpenExecutionContext {
|
|
@@ -5777,6 +5791,8 @@ interface OpenExecutionContext {
|
|
|
5777
5791
|
projectId: string;
|
|
5778
5792
|
/** Addressing only, not an authorization dimension (see design §6.2). */
|
|
5779
5793
|
workspaceId?: string;
|
|
5794
|
+
/** Connection keys pinned by the covering grant (plugin domains only). */
|
|
5795
|
+
connectionKeys?: string[];
|
|
5780
5796
|
/** Synthesized run identity (mirrors the Agent path's runConfig; plugin tools resolve their own connections). */
|
|
5781
5797
|
runConfig: Record<string, unknown>;
|
|
5782
5798
|
}
|
|
@@ -5817,6 +5833,14 @@ interface OpenCatalogItem {
|
|
|
5817
5833
|
destructiveHint: boolean;
|
|
5818
5834
|
};
|
|
5819
5835
|
}
|
|
5836
|
+
/** A tenant connection selectable for a connection-backed plugin domain. */
|
|
5837
|
+
interface OpenCatalogConnection {
|
|
5838
|
+
/** Connection key, stable within `(tenantId, domain type)`. */
|
|
5839
|
+
key: string;
|
|
5840
|
+
/** Human-readable connection name. */
|
|
5841
|
+
name: string;
|
|
5842
|
+
description?: string;
|
|
5843
|
+
}
|
|
5820
5844
|
interface OpenCatalogDomain {
|
|
5821
5845
|
domain: string;
|
|
5822
5846
|
label: string;
|
|
@@ -5826,6 +5850,10 @@ interface OpenCatalogDomain {
|
|
|
5826
5850
|
/** How grant items are chosen: per-action or per-instance. */
|
|
5827
5851
|
itemKind: "action" | "instance";
|
|
5828
5852
|
items: OpenCatalogItem[];
|
|
5853
|
+
/** True when this domain's tools resolve tenant connections. */
|
|
5854
|
+
connectionBacked?: boolean;
|
|
5855
|
+
/** Tenant connections selectable for this domain (connection-backed only). */
|
|
5856
|
+
connections?: OpenCatalogConnection[];
|
|
5829
5857
|
}
|
|
5830
5858
|
/** Full grantable capability catalog for a tenant (drives the key picker). */
|
|
5831
5859
|
interface OpenCatalog {
|
|
@@ -7577,6 +7605,8 @@ interface InternalNodeConfig {
|
|
|
7577
7605
|
* Provides project-grained, provider-agnostic resource location
|
|
7578
7606
|
* and file resolution types for the sandbox lattice.
|
|
7579
7607
|
*/
|
|
7608
|
+
/** Discriminator for the kind of resource a share points at. */
|
|
7609
|
+
type ShareKind = "file" | "mcpApp";
|
|
7580
7610
|
/** Sandbox resource location — project-grained, provider-agnostic. */
|
|
7581
7611
|
interface ResourceAddress {
|
|
7582
7612
|
volume: string;
|
|
@@ -7588,10 +7618,37 @@ interface ResourceResolver {
|
|
|
7588
7618
|
}
|
|
7589
7619
|
/** Visibility level for resource shares. */
|
|
7590
7620
|
type ShareVisibility = "public" | "password" | "internal";
|
|
7591
|
-
/**
|
|
7592
|
-
interface
|
|
7621
|
+
/** Live target of the MCP App a share points at. */
|
|
7622
|
+
interface McpAppShareApp {
|
|
7623
|
+
/** Where the App comes from. */
|
|
7624
|
+
kind: "plugin" | "mcp";
|
|
7625
|
+
/** Initial invocation tool; required for tool shares, optional for invocation shares. */
|
|
7626
|
+
toolName?: string;
|
|
7627
|
+
displayMode?: McpUiDisplayMode;
|
|
7628
|
+
title?: string;
|
|
7629
|
+
/** Plugin-sourced Apps. */
|
|
7630
|
+
pluginType?: string;
|
|
7631
|
+
resource?: string;
|
|
7632
|
+
/** HMAC-signed scope; persisted on the share record, never emitted in bootstrap. */
|
|
7633
|
+
scope?: string;
|
|
7634
|
+
/** MCP-server-sourced Apps. */
|
|
7635
|
+
serverKey?: string;
|
|
7636
|
+
resourceUri?: string;
|
|
7637
|
+
/**
|
|
7638
|
+
* Initial tool arguments. Stored so a shared link can re-run the tool on
|
|
7639
|
+
* every open; the tool result itself is never persisted.
|
|
7640
|
+
*/
|
|
7641
|
+
toolInput?: Record<string, unknown>;
|
|
7642
|
+
}
|
|
7643
|
+
/** App share target stored in the reuse of the `address` column. */
|
|
7644
|
+
interface McpAppShareTarget {
|
|
7645
|
+
kind: "mcpApp";
|
|
7646
|
+
app: McpAppShareApp;
|
|
7647
|
+
}
|
|
7648
|
+
/** Share target: either a file location or an App target. */
|
|
7649
|
+
type ShareTarget = ResourceAddress | McpAppShareTarget;
|
|
7650
|
+
interface ShareRecordBase {
|
|
7593
7651
|
token: string;
|
|
7594
|
-
address: ResourceAddress;
|
|
7595
7652
|
title: string | null;
|
|
7596
7653
|
createdBy: string;
|
|
7597
7654
|
tenantId: string;
|
|
@@ -7610,8 +7667,23 @@ interface ShareRecord {
|
|
|
7610
7667
|
createdAt: Date;
|
|
7611
7668
|
version: number;
|
|
7612
7669
|
}
|
|
7613
|
-
/**
|
|
7614
|
-
interface
|
|
7670
|
+
/** Persisted record of a file share within a project. */
|
|
7671
|
+
interface FileShareRecord extends ShareRecordBase {
|
|
7672
|
+
kind: "file";
|
|
7673
|
+
address: ResourceAddress;
|
|
7674
|
+
}
|
|
7675
|
+
/** Persisted record of an MCP App share within a project. */
|
|
7676
|
+
interface McpAppShareRecord extends ShareRecordBase {
|
|
7677
|
+
kind: "mcpApp";
|
|
7678
|
+
address: McpAppShareTarget;
|
|
7679
|
+
/** App shares V1 do not support `internal`. */
|
|
7680
|
+
visibility: "public" | "password";
|
|
7681
|
+
}
|
|
7682
|
+
/** Persisted record of a resource share within a project. */
|
|
7683
|
+
type ShareRecord = FileShareRecord | McpAppShareRecord;
|
|
7684
|
+
/** Client-provided payload for creating a new file share. */
|
|
7685
|
+
interface CreateFileShareRequest {
|
|
7686
|
+
kind?: "file";
|
|
7615
7687
|
resourcePath: string;
|
|
7616
7688
|
assistantId?: string;
|
|
7617
7689
|
visibility?: ShareVisibility;
|
|
@@ -7622,21 +7694,72 @@ interface CreateShareRequest {
|
|
|
7622
7694
|
/** Extra Open-door grants for sandbox tokens minted for this share. */
|
|
7623
7695
|
openGrants?: OpenGrant[];
|
|
7624
7696
|
}
|
|
7697
|
+
/** Client-provided payload for creating a new MCP App share. */
|
|
7698
|
+
interface CreateMcpAppShareRequest {
|
|
7699
|
+
kind: "mcpApp";
|
|
7700
|
+
app: McpAppShareApp;
|
|
7701
|
+
title?: string;
|
|
7702
|
+
/** Required: `public` or `password`; there is no default. */
|
|
7703
|
+
visibility: "public" | "password";
|
|
7704
|
+
password?: string;
|
|
7705
|
+
expiresAt?: string;
|
|
7706
|
+
maxAccess?: number;
|
|
7707
|
+
}
|
|
7708
|
+
/** Client-provided payload for creating a new resource share. */
|
|
7709
|
+
type CreateShareRequest = CreateFileShareRequest | CreateMcpAppShareRequest;
|
|
7625
7710
|
/** Response returned to clients after a share is created. */
|
|
7626
7711
|
interface ShareResult {
|
|
7627
7712
|
token: string;
|
|
7628
7713
|
url: string;
|
|
7629
7714
|
}
|
|
7715
|
+
/** Mutable fields of a persisted share record. */
|
|
7716
|
+
interface ShareRecordPatch {
|
|
7717
|
+
title?: string;
|
|
7718
|
+
expiresAt?: Date | null;
|
|
7719
|
+
maxAccess?: number | null;
|
|
7720
|
+
revoked?: boolean;
|
|
7721
|
+
visibility?: ShareVisibility;
|
|
7722
|
+
passwordHash?: string | null;
|
|
7723
|
+
}
|
|
7724
|
+
/** Store insert shape for a new share record. */
|
|
7725
|
+
type CreateShareRecord = Omit<FileShareRecord, "accessCount" | "createdAt" | "version"> | Omit<McpAppShareRecord, "accessCount" | "createdAt" | "version">;
|
|
7630
7726
|
/** Store interface for persisting and querying resource shares. */
|
|
7631
7727
|
interface SharedResourceStore {
|
|
7632
7728
|
findByToken(token: string): Promise<ShareRecord | null>;
|
|
7633
|
-
create(record:
|
|
7634
|
-
update(token: string, patch:
|
|
7729
|
+
create(record: CreateShareRecord): Promise<ShareRecord>;
|
|
7730
|
+
update(token: string, patch: ShareRecordPatch): Promise<void>;
|
|
7635
7731
|
listByUser(tenantId: string, userId: string): Promise<ShareRecord[]>;
|
|
7636
7732
|
incrementAccess(token: string): Promise<void>;
|
|
7637
7733
|
atomicIncrementAccess(token: string): Promise<boolean>;
|
|
7638
7734
|
}
|
|
7639
7735
|
|
|
7736
|
+
/** Public-facing description of a shared MCP App. */
|
|
7737
|
+
interface McpAppShareBootstrap {
|
|
7738
|
+
title: string | null;
|
|
7739
|
+
visibility: "public" | "password";
|
|
7740
|
+
app: {
|
|
7741
|
+
kind: "plugin" | "mcp";
|
|
7742
|
+
toolName?: string;
|
|
7743
|
+
ref: McpUiRef;
|
|
7744
|
+
/** Initial arguments re-executed on every open. */
|
|
7745
|
+
toolInput?: Record<string, unknown>;
|
|
7746
|
+
/** Fresh tool result produced for this bootstrap. */
|
|
7747
|
+
toolResult?: unknown;
|
|
7748
|
+
};
|
|
7749
|
+
}
|
|
7750
|
+
/** Share card payload rendered inside an MCP App. */
|
|
7751
|
+
interface ShareCardData {
|
|
7752
|
+
token: string;
|
|
7753
|
+
/** Relative gateway path; the host resolves it against its origin. */
|
|
7754
|
+
path: string;
|
|
7755
|
+
/** Optional absolute URL from a deployment-level public base URL. */
|
|
7756
|
+
url?: string;
|
|
7757
|
+
title: string;
|
|
7758
|
+
visibility: "public" | "password";
|
|
7759
|
+
password?: string;
|
|
7760
|
+
warnings?: string[];
|
|
7761
|
+
}
|
|
7762
|
+
|
|
7640
7763
|
/**
|
|
7641
7764
|
* Plugin Connection 字段 schema(驱动前端表单渲染)
|
|
7642
7765
|
*/
|
|
@@ -8405,4 +8528,4 @@ interface LangfuseObservabilityDashboardPayload {
|
|
|
8405
8528
|
tools: LangfuseToolBreakdownRow[];
|
|
8406
8529
|
}
|
|
8407
8530
|
|
|
8408
|
-
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, ASR_DEFAULT_KEY, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentInterrupt, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppQuickPrompt, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ChannelReplyJob, type ChannelReplyJobStatus, type ChannelReplyJobStore, type CheckpointMaintenance, type CheckpointStorage, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateChannelReplyJobInput, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, DEFAULT_MODEL_KEY, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EMBEDDING_DEFAULT_KEY, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FileMenuConfig, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptAnswerKey, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION, type LLMConfig, type LangfuseAgentBreakdownRow, type LangfuseModelBreakdownRow, type LangfuseModelCostSeries, type LangfuseObservabilityDashboardPayload, type LangfuseObservabilitySeriesPoint, type LangfuseToolBreakdownRow, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LeaseRecord, type LeaseStore, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type McpUiCsp, type McpUiDisplayMode, type McpUiPermissions, type McpUiRef, type McpUiResourcePayload, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelDiscoveryResult, type ModelKind, type ModelLatticeProtocol, type ModelProviderApiStyle, type ModelProviderEntry, type ModelProviderErrorCode, type ModelProviderLlmProvider, type ModelProviderModelEntry, type ModelProviderProbeRequest, type ModelProviderProbeResult, type ModelProviderPublicEntry, type ModelProviderStatus, type ModelProviderStore, type ModelProviderUpstreamErrorCode, type ModelProviderWireProtocol, type ModelSelection, OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX, type ObservabilityDashboardEnvelope, type ObservabilityDashboardInput, type ObservabilityDashboardRange, type ObservabilityDashboardResult, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDeployment, type PluginDeploymentMode, type PluginDeploymentStatus, type PluginDeploymentStore, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type PluginToolUi, type PluginUiResource, type ProcessingAgentConfig, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type ProviderModelInput, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, REPLICA_HEADER, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunCancelSignal, type RunScope, type RunStep, STORE_IDENTITY_SEPARATOR, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareRecord, type ShareResult, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type StoreItem, type StoreProtocol, type StorePutInput, type StoreSearchInput, StoreValidationError, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type Tenant, type TenantModelCatalog, type TenantModelPublicEntry, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadCheckpointStorage, type ThreadStore, type Timestamp, type ToolCall, type ToolCallUi, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateModelProviderRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserPushSubscription, type UserPushSubscriptionStore, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX, type WechatChannelInstallationConfig, type WecomChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, a2aEventCursorSchema, affinityEchoHeaders, assertGenericProjectConfig, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, buildAffinityMissChunk, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isProcessingAgentConfig, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeChannelReplyJobListLimit, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|
|
8531
|
+
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, ASR_DEFAULT_KEY, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentInterrupt, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppQuickPrompt, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ChannelReplyJob, type ChannelReplyJobStatus, type ChannelReplyJobStore, type CheckpointMaintenance, type CheckpointStorage, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateChannelReplyJobInput, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateFileShareRequest, type CreateMcpAppShareRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRecord, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, DEFAULT_MODEL_KEY, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EMBEDDING_DEFAULT_KEY, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FileMenuConfig, type FileShareRecord, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptAnswerKey, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION, type LLMConfig, type LangfuseAgentBreakdownRow, type LangfuseModelBreakdownRow, type LangfuseModelCostSeries, type LangfuseObservabilityDashboardPayload, type LangfuseObservabilitySeriesPoint, type LangfuseToolBreakdownRow, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LeaseRecord, type LeaseStore, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type McpUiCsp, type McpUiDisplayMode, type McpUiPermissions, type McpUiRef, type McpUiResourcePayload, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelDiscoveryResult, type ModelKind, type ModelLatticeProtocol, type ModelProviderApiStyle, type ModelProviderEntry, type ModelProviderErrorCode, type ModelProviderLlmProvider, type ModelProviderModelEntry, type ModelProviderProbeRequest, type ModelProviderProbeResult, type ModelProviderPublicEntry, type ModelProviderStatus, type ModelProviderStore, type ModelProviderUpstreamErrorCode, type ModelProviderWireProtocol, type ModelSelection, OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX, type ObservabilityDashboardEnvelope, type ObservabilityDashboardInput, type ObservabilityDashboardRange, type ObservabilityDashboardResult, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogConnection, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OpenGrantSelector, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDeployment, type PluginDeploymentMode, type PluginDeploymentStatus, type PluginDeploymentStore, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type PluginToolUi, type PluginUiResource, type ProcessingAgentConfig, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type ProviderModelInput, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, REPLICA_HEADER, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunCancelSignal, type RunScope, type RunStep, STORE_IDENTITY_SEPARATOR, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareCardData, type ShareKind, type ShareRecord, type ShareRecordPatch, type ShareResult, type ShareTarget, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type StoreItem, type StoreProtocol, type StorePutInput, type StoreSearchInput, StoreValidationError, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type Tenant, type TenantModelCatalog, type TenantModelPublicEntry, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadCheckpointStorage, type ThreadStore, type Timestamp, type ToolCall, type ToolCallUi, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateModelProviderRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserPushSubscription, type UserPushSubscriptionStore, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX, type WechatChannelInstallationConfig, type WecomChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, a2aEventCursorSchema, affinityEchoHeaders, assertGenericProjectConfig, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, buildAffinityMissChunk, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isProcessingAgentConfig, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeChannelReplyJobListLimit, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|
package/dist/index.js
CHANGED
|
@@ -1221,6 +1221,7 @@ function effectiveGrants(record) {
|
|
|
1221
1221
|
// src/McpUiProtocol.ts
|
|
1222
1222
|
var MODES = ["inline", "fullscreen", "pip"];
|
|
1223
1223
|
var MAX_MCP_UI_SCOPE_LENGTH = 4096;
|
|
1224
|
+
var MAX_MCP_UI_TOOL_NAME_LENGTH = 128;
|
|
1224
1225
|
var isObj = (v) => typeof v === "object" && v !== null;
|
|
1225
1226
|
function isMcpUiRef(value) {
|
|
1226
1227
|
return parseMcpUiRef(value) !== null;
|
|
@@ -1229,6 +1230,7 @@ function parseMcpUiRef(value) {
|
|
|
1229
1230
|
if (!isObj(value)) return null;
|
|
1230
1231
|
const displayMode = MODES.includes(value.displayMode) ? value.displayMode : "inline";
|
|
1231
1232
|
const title = typeof value.title === "string" ? value.title : void 0;
|
|
1233
|
+
const toolName = typeof value.toolName === "string" && value.toolName.length > 0 && value.toolName.length <= MAX_MCP_UI_TOOL_NAME_LENGTH ? value.toolName : void 0;
|
|
1232
1234
|
if (value.kind === "mcp" && typeof value.serverKey === "string" && typeof value.resourceUri === "string") {
|
|
1233
1235
|
return {
|
|
1234
1236
|
kind: "mcp",
|
|
@@ -1236,6 +1238,7 @@ function parseMcpUiRef(value) {
|
|
|
1236
1238
|
resourceUri: value.resourceUri,
|
|
1237
1239
|
displayMode,
|
|
1238
1240
|
...title ? { title } : {},
|
|
1241
|
+
...toolName ? { toolName } : {},
|
|
1239
1242
|
...value.structuredContent !== void 0 ? { structuredContent: value.structuredContent } : {}
|
|
1240
1243
|
};
|
|
1241
1244
|
}
|
|
@@ -1247,6 +1250,7 @@ function parseMcpUiRef(value) {
|
|
|
1247
1250
|
resource: value.resource,
|
|
1248
1251
|
displayMode,
|
|
1249
1252
|
...title ? { title } : {},
|
|
1253
|
+
...toolName ? { toolName } : {},
|
|
1250
1254
|
...scope ? { scope } : {}
|
|
1251
1255
|
};
|
|
1252
1256
|
}
|