@axiom-lattice/protocols 4.3.2 → 4.4.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 +36 -0
- package/dist/index.d.mts +184 -8
- package/dist/index.d.ts +184 -8
- package/dist/index.js +63 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/CapabilityBundleStoreProtocol.ts +3 -4
- package/src/McpUiProtocol.ts +76 -0
- package/src/MenuProtocol.ts +50 -2
- package/src/MessageProtocol.ts +30 -0
- package/src/OpenProtocol.ts +1 -1
- package/src/PluginProtocol.ts +36 -0
- package/src/SandboxPluginProtocol.ts +3 -1
- package/src/TaskStoreProtocol.ts +19 -0
- package/src/TrustedRunContextProtocol.ts +40 -15
- package/src/__tests__/McpUiProtocol.test.ts +43 -0
- package/src/__tests__/MenuProtocol.test.ts +28 -0
- package/src/__tests__/ProjectRoomStores.test.ts +6 -0
- package/src/__tests__/TaskMetadataFilter.test.ts +27 -0
- package/src/__tests__/ToolCallUi.test.ts +46 -0
- package/src/__tests__/TrustedRunContextProtocol.test.ts +75 -3
- package/src/__tests__/open-ui-meta.test.ts +23 -0
- package/src/index.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1117,6 +1117,24 @@ interface UserMessage extends BaseMessage {
|
|
|
1117
1117
|
id: string;
|
|
1118
1118
|
}>;
|
|
1119
1119
|
}
|
|
1120
|
+
/**
|
|
1121
|
+
* UI-only rich payload for a tool call.
|
|
1122
|
+
*
|
|
1123
|
+
* Populated by the client-side message merger from the tool message's raw
|
|
1124
|
+
* LangChain `artifact` and non-text content blocks. It is never part of the
|
|
1125
|
+
* model-visible text: the model only sees `ToolCall.response`.
|
|
1126
|
+
*/
|
|
1127
|
+
interface ToolCallUi {
|
|
1128
|
+
/** MCP `CallToolResult.structuredContent`, when the tool produced one. */
|
|
1129
|
+
structuredContent?: unknown;
|
|
1130
|
+
/** MCP `CallToolResult._meta`, when present. */
|
|
1131
|
+
meta?: Record<string, unknown>;
|
|
1132
|
+
/** Non-text content blocks (image / audio / resource / file). */
|
|
1133
|
+
contentBlocks?: Array<{
|
|
1134
|
+
type: string;
|
|
1135
|
+
[key: string]: unknown;
|
|
1136
|
+
}>;
|
|
1137
|
+
}
|
|
1120
1138
|
/**
|
|
1121
1139
|
* Tool call interface
|
|
1122
1140
|
*/
|
|
@@ -1126,6 +1144,12 @@ interface ToolCall {
|
|
|
1126
1144
|
args: Record<string, any>;
|
|
1127
1145
|
type: "tool_call";
|
|
1128
1146
|
response?: string;
|
|
1147
|
+
/** UI-only rich result (MCP Apps). Never part of the model-visible text. */
|
|
1148
|
+
ui?: ToolCallUi;
|
|
1149
|
+
/** Execution status reported by the client-side message merger. */
|
|
1150
|
+
status?: "success" | "pending" | "error";
|
|
1151
|
+
/** Correlation id of the originating tool message (internal). */
|
|
1152
|
+
original_tool_message_id?: string;
|
|
1129
1153
|
}
|
|
1130
1154
|
/**
|
|
1131
1155
|
* Assistant message interface
|
|
@@ -1208,6 +1232,12 @@ interface MessageChunk {
|
|
|
1208
1232
|
}>;
|
|
1209
1233
|
};
|
|
1210
1234
|
tool_call_id?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* Raw LangChain tool message `artifact` (e.g. MCP `structuredContent`
|
|
1237
|
+
* and non-text content blocks). Present on `tool` chunks; consumed by the
|
|
1238
|
+
* client-side message merger to populate `ToolCall.ui`.
|
|
1239
|
+
*/
|
|
1240
|
+
artifact?: unknown;
|
|
1211
1241
|
};
|
|
1212
1242
|
}
|
|
1213
1243
|
/**
|
|
@@ -3558,14 +3588,65 @@ interface VectorStoreProvider {
|
|
|
3558
3588
|
dropTable?(tableName: string): Promise<void>;
|
|
3559
3589
|
}
|
|
3560
3590
|
|
|
3591
|
+
/** Display modes supported by MCP Apps. */
|
|
3592
|
+
type McpUiDisplayMode = "inline" | "fullscreen" | "pip";
|
|
3593
|
+
/** CSP origins declared by a UI resource. */
|
|
3594
|
+
interface McpUiCsp {
|
|
3595
|
+
connectDomains?: string[];
|
|
3596
|
+
resourceDomains?: string[];
|
|
3597
|
+
frameDomains?: string[];
|
|
3598
|
+
baseUriDomains?: string[];
|
|
3599
|
+
}
|
|
3600
|
+
/** Sandbox permissions requested by a UI resource. */
|
|
3601
|
+
interface McpUiPermissions {
|
|
3602
|
+
camera?: boolean;
|
|
3603
|
+
microphone?: boolean;
|
|
3604
|
+
geolocation?: boolean;
|
|
3605
|
+
clipboardWrite?: boolean;
|
|
3606
|
+
}
|
|
3607
|
+
/** A UI ref carried in the `mcp_app` content fence. */
|
|
3608
|
+
type McpUiRef = {
|
|
3609
|
+
kind: "mcp";
|
|
3610
|
+
serverKey: string;
|
|
3611
|
+
resourceUri: string;
|
|
3612
|
+
displayMode: McpUiDisplayMode;
|
|
3613
|
+
title?: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* Retained only for backward compatibility with pre-unification
|
|
3616
|
+
* messages; no longer emitted. Rich tool results now travel via
|
|
3617
|
+
* `ToolCall.ui`.
|
|
3618
|
+
*/
|
|
3619
|
+
structuredContent?: unknown;
|
|
3620
|
+
} | {
|
|
3621
|
+
kind: "plugin";
|
|
3622
|
+
pluginType: string;
|
|
3623
|
+
resource: string;
|
|
3624
|
+
displayMode: McpUiDisplayMode;
|
|
3625
|
+
title?: string;
|
|
3626
|
+
};
|
|
3627
|
+
/** Resolved UI resource body returned by the gateway. */
|
|
3628
|
+
interface McpUiResourcePayload {
|
|
3629
|
+
mimeType: string;
|
|
3630
|
+
html: string;
|
|
3631
|
+
csp?: McpUiCsp;
|
|
3632
|
+
permissions?: McpUiPermissions;
|
|
3633
|
+
prefersBorder?: boolean;
|
|
3634
|
+
stale?: boolean;
|
|
3635
|
+
}
|
|
3636
|
+
/** Type guard for a parsed `McpUiRef`. */
|
|
3637
|
+
declare function isMcpUiRef(value: unknown): value is McpUiRef;
|
|
3638
|
+
/** Parse and normalize an unknown value into a `McpUiRef`, or `null`. */
|
|
3639
|
+
declare function parseMcpUiRef(value: unknown): McpUiRef | null;
|
|
3640
|
+
|
|
3561
3641
|
/**
|
|
3562
3642
|
* MenuProtocol
|
|
3563
3643
|
*
|
|
3564
3644
|
* Defines types and registry interface for per-tenant customizable menu items.
|
|
3565
3645
|
* Menu items are merged with built-in defaults at the React SDK layer.
|
|
3566
3646
|
*/
|
|
3647
|
+
|
|
3567
3648
|
type MenuTarget = 'sidebar' | 'workspace';
|
|
3568
|
-
type MenuContentType = 'agent' | 'html' | 'custom';
|
|
3649
|
+
type MenuContentType = 'agent' | 'html' | 'custom' | 'file' | 'mcpApp';
|
|
3569
3650
|
interface AgentMenuConfig {
|
|
3570
3651
|
agentId: string;
|
|
3571
3652
|
workspaceId?: string;
|
|
@@ -3579,7 +3660,43 @@ interface HtmlMenuConfig {
|
|
|
3579
3660
|
interface CustomMenuConfig {
|
|
3580
3661
|
componentKey: string;
|
|
3581
3662
|
}
|
|
3582
|
-
|
|
3663
|
+
/**
|
|
3664
|
+
* A pinned MCP App menu item.
|
|
3665
|
+
*
|
|
3666
|
+
* The identity (`kind` + server/plugin + resource) is enough to re-open the
|
|
3667
|
+
* App; `toolInput` lets a self-refreshing App re-run the same query. The pin
|
|
3668
|
+
* flow also captures the current `toolResult` and `ui` so the pinned view has
|
|
3669
|
+
* the same initial data as the chat view did (an App that refreshes itself can
|
|
3670
|
+
* still re-query).
|
|
3671
|
+
*/
|
|
3672
|
+
type McpAppMenuConfig = {
|
|
3673
|
+
kind: 'mcp';
|
|
3674
|
+
serverKey: string;
|
|
3675
|
+
resourceUri: string;
|
|
3676
|
+
displayMode?: McpUiDisplayMode;
|
|
3677
|
+
title?: string;
|
|
3678
|
+
toolInput?: Record<string, unknown>;
|
|
3679
|
+
toolResult?: unknown;
|
|
3680
|
+
ui?: ToolCallUi;
|
|
3681
|
+
} | {
|
|
3682
|
+
kind: 'plugin';
|
|
3683
|
+
pluginType: string;
|
|
3684
|
+
resource: string;
|
|
3685
|
+
displayMode?: McpUiDisplayMode;
|
|
3686
|
+
title?: string;
|
|
3687
|
+
toolInput?: Record<string, unknown>;
|
|
3688
|
+
toolResult?: unknown;
|
|
3689
|
+
ui?: ToolCallUi;
|
|
3690
|
+
};
|
|
3691
|
+
/** A pinned workspace file rendered by the file viewer. */
|
|
3692
|
+
interface FileMenuConfig {
|
|
3693
|
+
resourcePath: string;
|
|
3694
|
+
fileName?: string;
|
|
3695
|
+
workspaceId?: string;
|
|
3696
|
+
projectId?: string;
|
|
3697
|
+
assistantId?: string;
|
|
3698
|
+
}
|
|
3699
|
+
type MenuContentConfig = AgentMenuConfig | HtmlMenuConfig | CustomMenuConfig | FileMenuConfig | McpAppMenuConfig;
|
|
3583
3700
|
interface MenuItem {
|
|
3584
3701
|
id: string;
|
|
3585
3702
|
tenantId: string;
|
|
@@ -4109,6 +4226,19 @@ interface UpdateTaskRequest {
|
|
|
4109
4226
|
/** File references attached to this task */
|
|
4110
4227
|
files?: TaskFileRef[];
|
|
4111
4228
|
}
|
|
4229
|
+
/**
|
|
4230
|
+
* Normalizes a task metadata scalar to its JSON text form so every task store
|
|
4231
|
+
* backend compares metadata filters identically.
|
|
4232
|
+
*
|
|
4233
|
+
* The contract is JSON scalar value equality, type-tolerant: `1` and `"1"`
|
|
4234
|
+
* are equal, `true` and `"true"` are equal, and `true` never equals `1`.
|
|
4235
|
+
* PostgreSQL's `metadata->>` naturally yields this form; InMemory and SQLite
|
|
4236
|
+
* use this helper to match it.
|
|
4237
|
+
*
|
|
4238
|
+
* @param value Candidate filter or stored metadata value.
|
|
4239
|
+
* @returns JSON text form for string/number/boolean, otherwise `undefined`.
|
|
4240
|
+
*/
|
|
4241
|
+
declare function normalizeTaskMetadataScalar(value: unknown): string | undefined;
|
|
4112
4242
|
/**
|
|
4113
4243
|
* Task list filter criteria
|
|
4114
4244
|
*/
|
|
@@ -4654,7 +4784,7 @@ interface OpenExecutionContext {
|
|
|
4654
4784
|
projectId: string;
|
|
4655
4785
|
/** Addressing only, not an authorization dimension (see design §6.2). */
|
|
4656
4786
|
workspaceId?: string;
|
|
4657
|
-
/** Synthesized
|
|
4787
|
+
/** Synthesized run identity (mirrors the Agent path's runConfig; plugin tools resolve their own connections). */
|
|
4658
4788
|
runConfig: Record<string, unknown>;
|
|
4659
4789
|
}
|
|
4660
4790
|
interface OpenExecutionResult {
|
|
@@ -5170,9 +5300,9 @@ interface InternalCreateCapabilityBundleInput extends Omit<CreateCapabilityBundl
|
|
|
5170
5300
|
interface UpdateCapabilityBundleInput extends Partial<CreateCapabilityBundleInput> {
|
|
5171
5301
|
expectedUpdatedAt: string;
|
|
5172
5302
|
}
|
|
5173
|
-
/** Store input
|
|
5303
|
+
/** Store input for updating a bundle; the stable key is immutable and the revision is always required for CAS. */
|
|
5174
5304
|
interface InternalUpdateCapabilityBundleInput extends Partial<CreateCapabilityBundleInput> {
|
|
5175
|
-
expectedUpdatedAt
|
|
5305
|
+
expectedUpdatedAt: string;
|
|
5176
5306
|
}
|
|
5177
5307
|
/** Result returned when an update's expected revision no longer matches. */
|
|
5178
5308
|
interface CapabilityBundleUpdateConflict {
|
|
@@ -5190,8 +5320,7 @@ interface CapabilityBundleStore {
|
|
|
5190
5320
|
getManyByIds(tenantId: string, ids: string[]): Promise<CapabilityBundle[]>;
|
|
5191
5321
|
/** Creates a bundle for a tenant. */
|
|
5192
5322
|
create(tenantId: string, input: InternalCreateCapabilityBundleInput): Promise<CapabilityBundle>;
|
|
5193
|
-
/** Updates a bundle, or returns null when it does not exist. */
|
|
5194
|
-
/** Omitted expectedUpdatedAt is reserved for internal maintenance callers. */
|
|
5323
|
+
/** Updates a bundle with mandatory revision CAS, or returns null when it does not exist. */
|
|
5195
5324
|
update(tenantId: string, id: string, input: InternalUpdateCapabilityBundleInput): Promise<CapabilityBundle | CapabilityBundleUpdateConflict | null>;
|
|
5196
5325
|
/** Atomically deletes a bundle unless a tenant project references it. */
|
|
5197
5326
|
deleteIfUnreferenced(tenantId: string, id: string): Promise<CapabilityBundleDeleteResult>;
|
|
@@ -6126,6 +6255,35 @@ interface PluginConnection {
|
|
|
6126
6255
|
/** 资源发现面板标题 */
|
|
6127
6256
|
resourceLabel?: string;
|
|
6128
6257
|
}
|
|
6258
|
+
/**
|
|
6259
|
+
* UI declaration for a plugin tool: an HTML file rendered as an MCP App when
|
|
6260
|
+
* the tool runs.
|
|
6261
|
+
*
|
|
6262
|
+
* @property resource - Safe relative path (within the plugin directory) to an `.html` file.
|
|
6263
|
+
* @property displayMode - Preferred display mode; defaults to `inline` (resolved by the compiler).
|
|
6264
|
+
* @property csp - Origins the UI needs (see `McpUiCsp`).
|
|
6265
|
+
* @property permissions - Sandbox permissions requested (see `McpUiPermissions`).
|
|
6266
|
+
* @property prefersBorder - Visual boundary preference.
|
|
6267
|
+
*/
|
|
6268
|
+
interface PluginToolUi {
|
|
6269
|
+
resource: string;
|
|
6270
|
+
displayMode?: McpUiDisplayMode;
|
|
6271
|
+
csp?: McpUiCsp;
|
|
6272
|
+
permissions?: McpUiPermissions;
|
|
6273
|
+
prefersBorder?: boolean;
|
|
6274
|
+
}
|
|
6275
|
+
/**
|
|
6276
|
+
* Inline UI resource served by a GLOBAL (non-sandbox) plugin.
|
|
6277
|
+
*
|
|
6278
|
+
* @property html - Full HTML document served for a `ui://` resource.
|
|
6279
|
+
* @property mimeType - Defaults to `text/html;profile=mcp-app` when omitted.
|
|
6280
|
+
* @property csp - Origins the UI needs.
|
|
6281
|
+
*/
|
|
6282
|
+
interface PluginUiResource {
|
|
6283
|
+
html: string;
|
|
6284
|
+
mimeType?: string;
|
|
6285
|
+
csp?: McpUiCsp;
|
|
6286
|
+
}
|
|
6129
6287
|
/**
|
|
6130
6288
|
* 工具元信息(用于前端 allowedTools 筛选)
|
|
6131
6289
|
*
|
|
@@ -6138,6 +6296,8 @@ interface PluginToolMeta {
|
|
|
6138
6296
|
description: string;
|
|
6139
6297
|
/** When true, this tool surfaces on the Open API (MCP) surface. */
|
|
6140
6298
|
expose?: boolean;
|
|
6299
|
+
/** Optional UI (HTML) declaration for this tool. */
|
|
6300
|
+
ui?: PluginToolUi;
|
|
6141
6301
|
}
|
|
6142
6302
|
/** Open-surface exposure entry with MCP annotation hints. */
|
|
6143
6303
|
interface PluginOpenExposeTool {
|
|
@@ -6204,6 +6364,8 @@ interface PluginMeta {
|
|
|
6204
6364
|
icon?: string;
|
|
6205
6365
|
/** 工具清单(可选,middleware 能自动提取时不需要写) */
|
|
6206
6366
|
tools?: PluginToolMeta[];
|
|
6367
|
+
/** Inline `ui://` resources for this plugin's tool UIs (global plugins only). */
|
|
6368
|
+
uiResources?: Record<string, PluginUiResource>;
|
|
6207
6369
|
/**
|
|
6208
6370
|
* Open 面(MCP)暴露的工具名清单——独立于 tools 声明,一行即生长。
|
|
6209
6371
|
* 声明后 OpenCredentialService 的 grants 匹配 domain=<meta.type>。
|
|
@@ -6352,6 +6514,8 @@ interface SandboxPluginToolDef {
|
|
|
6352
6514
|
destructive?: boolean;
|
|
6353
6515
|
timeoutMs?: number;
|
|
6354
6516
|
maxResultBytes?: number;
|
|
6517
|
+
/** Optional UI (HTML) rendered as an MCP App when this tool runs. */
|
|
6518
|
+
ui?: PluginToolUi;
|
|
6355
6519
|
}
|
|
6356
6520
|
/**
|
|
6357
6521
|
* Connection capability contributed by a sandbox plugin. `test`/`discover`
|
|
@@ -6473,6 +6637,12 @@ interface ProjectRoomTrustedRunContext {
|
|
|
6473
6637
|
role: "coordinator" | "specialist";
|
|
6474
6638
|
title: string;
|
|
6475
6639
|
responsibility?: string;
|
|
6640
|
+
/**
|
|
6641
|
+
* Host-provided provenance string, persisted unchanged. Optional; a non-empty string when present;
|
|
6642
|
+
* `undefined` is treated as absent. Core copies and compares this value without interpreting or
|
|
6643
|
+
* naming any specific value (ADR-118).
|
|
6644
|
+
*/
|
|
6645
|
+
source?: string;
|
|
6476
6646
|
}
|
|
6477
6647
|
/** Trusted Project Task identity persisted with a privileged queue message. */
|
|
6478
6648
|
interface ProjectTaskTrustedRunContext {
|
|
@@ -6485,6 +6655,12 @@ interface ProjectTaskTrustedRunContext {
|
|
|
6485
6655
|
taskId: string;
|
|
6486
6656
|
threadId: string;
|
|
6487
6657
|
inputMessageId: string;
|
|
6658
|
+
/**
|
|
6659
|
+
* Host-provided provenance string, persisted unchanged. Optional; a non-empty string when present;
|
|
6660
|
+
* `undefined` is treated as absent. Core copies and compares this value without interpreting or
|
|
6661
|
+
* naming any specific value (ADR-118).
|
|
6662
|
+
*/
|
|
6663
|
+
source?: string;
|
|
6488
6664
|
}
|
|
6489
6665
|
/** Host-authenticated metadata that cannot be supplied through public Agent APIs. */
|
|
6490
6666
|
interface TrustedRunContext {
|
|
@@ -6508,4 +6684,4 @@ declare function parseTrustedRunContext(value: unknown): TrustedRunContext;
|
|
|
6508
6684
|
*/
|
|
6509
6685
|
declare function parseQueuedExecutionMode(value: unknown): QueuedExecutionMode;
|
|
6510
6686
|
|
|
6511
|
-
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2ARemoteAgentConfig, type AgentClient, type AgentConfig, type AgentConfigWithTools, 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, 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 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 CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, 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, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DispatchResult, DuplicateChannelBindingSubjectError, 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 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 InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, 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 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 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 ModelLatticeProtocol, 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, 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 PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, 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 PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, 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 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 TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, 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 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 WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, assertGenericProjectConfig, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isProcessingAgentConfig, isProjectRoomEventId, isTeamAgentConfig, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, parseAgentWebAppGenUIBlock, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, taskBeliefStatesEqual, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|
|
6687
|
+
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2ARemoteAgentConfig, type AgentClient, type AgentConfig, type AgentConfigWithTools, 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, 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 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 CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, 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, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DispatchResult, DuplicateChannelBindingSubjectError, 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 InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, 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 ModelLatticeProtocol, 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, 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 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 PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, 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 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 TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, 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 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 WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, assertGenericProjectConfig, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isProcessingAgentConfig, isProjectRoomEventId, isTeamAgentConfig, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeTaskMetadataScalar, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, taskBeliefStatesEqual, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|
package/dist/index.js
CHANGED
|
@@ -55,12 +55,15 @@ __export(index_exports, {
|
|
|
55
55
|
isA2ARemoteAgentConfig: () => isA2ARemoteAgentConfig,
|
|
56
56
|
isDeepAgentConfig: () => isDeepAgentConfig,
|
|
57
57
|
isExecutionResultEventKey: () => isExecutionResultEventKey,
|
|
58
|
+
isMcpUiRef: () => isMcpUiRef,
|
|
58
59
|
isProcessingAgentConfig: () => isProcessingAgentConfig,
|
|
59
60
|
isProjectRoomEventId: () => isProjectRoomEventId,
|
|
60
61
|
isTeamAgentConfig: () => isTeamAgentConfig,
|
|
61
62
|
isWorkflowAgentConfig: () => isWorkflowAgentConfig,
|
|
62
63
|
isWorkspacePublicRoomProjectId: () => isWorkspacePublicRoomProjectId,
|
|
64
|
+
normalizeTaskMetadataScalar: () => normalizeTaskMetadataScalar,
|
|
63
65
|
parseAgentWebAppGenUIBlock: () => parseAgentWebAppGenUIBlock,
|
|
66
|
+
parseMcpUiRef: () => parseMcpUiRef,
|
|
64
67
|
parseProjectRoomEventId: () => parseProjectRoomEventId,
|
|
65
68
|
parseQueuedExecutionMode: () => parseQueuedExecutionMode,
|
|
66
69
|
parseTaskBeliefState: () => parseTaskBeliefState,
|
|
@@ -244,6 +247,14 @@ var ChannelBindingMigrationConflictError = class extends Error {
|
|
|
244
247
|
}
|
|
245
248
|
};
|
|
246
249
|
|
|
250
|
+
// src/TaskStoreProtocol.ts
|
|
251
|
+
function normalizeTaskMetadataScalar(value) {
|
|
252
|
+
if (typeof value === "string") return value;
|
|
253
|
+
if (typeof value === "number") return Number.isFinite(value) ? String(value) : void 0;
|
|
254
|
+
if (typeof value === "boolean") return value ? "true" : "false";
|
|
255
|
+
return void 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
247
258
|
// src/TaskWorkItemProtocol.ts
|
|
248
259
|
var EXECUTION_RESULT_EVENT_KEY_PREFIX = "execution-result:";
|
|
249
260
|
var EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE = "^execution-result:[A-Za-z0-9._:-]+$";
|
|
@@ -913,23 +924,26 @@ function parseTrustedRunContext(value) {
|
|
|
913
924
|
"threadId",
|
|
914
925
|
"inputMessageId"
|
|
915
926
|
];
|
|
916
|
-
const projectTaskValues = snapshotExactRecord(contextValues.projectTask, requiredKeys2);
|
|
917
|
-
|
|
927
|
+
const projectTaskValues = snapshotExactRecord(contextValues.projectTask, requiredKeys2, ["source"]);
|
|
928
|
+
const projectTaskHasSource = projectTaskValues !== void 0 && Object.prototype.hasOwnProperty.call(projectTaskValues, "source");
|
|
929
|
+
if (!projectTaskValues || requiredKeys2.some((key) => typeof projectTaskValues[key] !== "string" || projectTaskValues[key].length === 0) || projectTaskHasSource && projectTaskValues.source !== void 0 && (typeof projectTaskValues.source !== "string" || projectTaskValues.source.length === 0)) {
|
|
918
930
|
throw new Error("Invalid trusted agent run context");
|
|
919
931
|
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
inputMessageId: projectTaskValues.inputMessageId
|
|
931
|
-
}
|
|
932
|
+
const parsedProjectTask = {
|
|
933
|
+
tenantId: projectTaskValues.tenantId,
|
|
934
|
+
workspaceId: projectTaskValues.workspaceId,
|
|
935
|
+
projectId: projectTaskValues.projectId,
|
|
936
|
+
roomId: projectTaskValues.roomId,
|
|
937
|
+
membershipId: projectTaskValues.membershipId,
|
|
938
|
+
assistantId: projectTaskValues.assistantId,
|
|
939
|
+
taskId: projectTaskValues.taskId,
|
|
940
|
+
threadId: projectTaskValues.threadId,
|
|
941
|
+
inputMessageId: projectTaskValues.inputMessageId
|
|
932
942
|
};
|
|
943
|
+
if (projectTaskHasSource && typeof projectTaskValues.source === "string") {
|
|
944
|
+
parsedProjectTask.source = projectTaskValues.source;
|
|
945
|
+
}
|
|
946
|
+
return { projectTask: parsedProjectTask };
|
|
933
947
|
}
|
|
934
948
|
const projectRoomValue = contextValues?.projectRoom;
|
|
935
949
|
const requiredKeys = [
|
|
@@ -944,9 +958,10 @@ function parseTrustedRunContext(value) {
|
|
|
944
958
|
"role",
|
|
945
959
|
"title"
|
|
946
960
|
];
|
|
947
|
-
const projectRoomValues = snapshotExactRecord(projectRoomValue, requiredKeys, ["responsibility"]);
|
|
961
|
+
const projectRoomValues = snapshotExactRecord(projectRoomValue, requiredKeys, ["responsibility", "source"]);
|
|
948
962
|
const hasResponsibility = projectRoomValues !== void 0 && Object.prototype.hasOwnProperty.call(projectRoomValues, "responsibility");
|
|
949
|
-
|
|
963
|
+
const hasSource = projectRoomValues !== void 0 && Object.prototype.hasOwnProperty.call(projectRoomValues, "source");
|
|
964
|
+
if (!projectRoomValues || requiredKeys.some((key) => typeof projectRoomValues[key] !== "string" || projectRoomValues[key].length === 0) || hasResponsibility && projectRoomValues.responsibility !== void 0 && (typeof projectRoomValues.responsibility !== "string" || projectRoomValues.responsibility.length === 0) || hasSource && projectRoomValues.source !== void 0 && (typeof projectRoomValues.source !== "string" || projectRoomValues.source.length === 0) || projectRoomValues.role !== "coordinator" && projectRoomValues.role !== "specialist") {
|
|
950
965
|
throw new Error("Invalid trusted agent run context");
|
|
951
966
|
}
|
|
952
967
|
const parsedProjectRoom = {
|
|
@@ -964,6 +979,9 @@ function parseTrustedRunContext(value) {
|
|
|
964
979
|
if (hasResponsibility && typeof projectRoomValues.responsibility === "string") {
|
|
965
980
|
parsedProjectRoom.responsibility = projectRoomValues.responsibility;
|
|
966
981
|
}
|
|
982
|
+
if (hasSource && typeof projectRoomValues.source === "string") {
|
|
983
|
+
parsedProjectRoom.source = projectRoomValues.source;
|
|
984
|
+
}
|
|
967
985
|
return { projectRoom: parsedProjectRoom };
|
|
968
986
|
}
|
|
969
987
|
function parseQueuedExecutionMode(value) {
|
|
@@ -979,6 +997,32 @@ function effectiveGrants(record) {
|
|
|
979
997
|
}
|
|
980
998
|
return [{ domain: "agent" }];
|
|
981
999
|
}
|
|
1000
|
+
|
|
1001
|
+
// src/McpUiProtocol.ts
|
|
1002
|
+
var MODES = ["inline", "fullscreen", "pip"];
|
|
1003
|
+
var isObj = (v) => typeof v === "object" && v !== null;
|
|
1004
|
+
function isMcpUiRef(value) {
|
|
1005
|
+
return parseMcpUiRef(value) !== null;
|
|
1006
|
+
}
|
|
1007
|
+
function parseMcpUiRef(value) {
|
|
1008
|
+
if (!isObj(value)) return null;
|
|
1009
|
+
const displayMode = MODES.includes(value.displayMode) ? value.displayMode : "inline";
|
|
1010
|
+
const title = typeof value.title === "string" ? value.title : void 0;
|
|
1011
|
+
if (value.kind === "mcp" && typeof value.serverKey === "string" && typeof value.resourceUri === "string") {
|
|
1012
|
+
return {
|
|
1013
|
+
kind: "mcp",
|
|
1014
|
+
serverKey: value.serverKey,
|
|
1015
|
+
resourceUri: value.resourceUri,
|
|
1016
|
+
displayMode,
|
|
1017
|
+
...title ? { title } : {},
|
|
1018
|
+
...value.structuredContent !== void 0 ? { structuredContent: value.structuredContent } : {}
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
if (value.kind === "plugin" && typeof value.pluginType === "string" && typeof value.resource === "string") {
|
|
1022
|
+
return { kind: "plugin", pluginType: value.pluginType, resource: value.resource, displayMode, ...title ? { title } : {} };
|
|
1023
|
+
}
|
|
1024
|
+
return null;
|
|
1025
|
+
}
|
|
982
1026
|
// Annotate the CommonJS export names for ESM import in node:
|
|
983
1027
|
0 && (module.exports = {
|
|
984
1028
|
AgentType,
|
|
@@ -1016,12 +1060,15 @@ function effectiveGrants(record) {
|
|
|
1016
1060
|
isA2ARemoteAgentConfig,
|
|
1017
1061
|
isDeepAgentConfig,
|
|
1018
1062
|
isExecutionResultEventKey,
|
|
1063
|
+
isMcpUiRef,
|
|
1019
1064
|
isProcessingAgentConfig,
|
|
1020
1065
|
isProjectRoomEventId,
|
|
1021
1066
|
isTeamAgentConfig,
|
|
1022
1067
|
isWorkflowAgentConfig,
|
|
1023
1068
|
isWorkspacePublicRoomProjectId,
|
|
1069
|
+
normalizeTaskMetadataScalar,
|
|
1024
1070
|
parseAgentWebAppGenUIBlock,
|
|
1071
|
+
parseMcpUiRef,
|
|
1025
1072
|
parseProjectRoomEventId,
|
|
1026
1073
|
parseQueuedExecutionMode,
|
|
1027
1074
|
parseTaskBeliefState,
|