@axiom-lattice/protocols 2.1.53 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/protocols@2.1.53 build /home/runner/work/agentic/agentic/packages/protocols
2
+ > @axiom-lattice/protocols@3.0.0 build /home/runner/work/agentic/agentic/packages/protocols
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.mjs 4.78 KB
12
- ESM dist/index.mjs.map 43.41 KB
13
- ESM ⚡️ Build success in 188ms
14
11
  CJS dist/index.js 6.69 KB
15
- CJS dist/index.js.map 45.75 KB
16
- CJS ⚡️ Build success in 207ms
12
+ CJS dist/index.js.map 47.01 KB
13
+ CJS ⚡️ Build success in 141ms
14
+ ESM dist/index.mjs 4.78 KB
15
+ ESM dist/index.mjs.map 44.53 KB
16
+ ESM ⚡️ Build success in 155ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 14394ms
19
- DTS dist/index.d.ts 134.29 KB
20
- DTS dist/index.d.mts 134.29 KB
18
+ DTS ⚡️ Build success in 12244ms
19
+ DTS dist/index.d.ts 138.95 KB
20
+ DTS dist/index.d.mts 138.95 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @axiom-lattice/protocols
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 3a124ab: **BREAKING**: Remove `LocalA2ATemplateStore` from store lattice, replacing it with static template config.
8
+
9
+ - Deleted `LocalA2ATemplateStoreProtocol` and all implementations (InMemory, PostgreSQL, SQLite)
10
+ - Removed `localA2ATemplate` entry from `StoreTypeMap` and store lattice default registrations
11
+ - Removed obsolete PostgreSQL Local A2A template migration source; existing database tables are not dropped
12
+ - Removed `LocalA2ATemplateEntry`, `CreateLocalA2ATemplateRequest`, `UpdateLocalA2ATemplateRequest` types
13
+ - `client.assistants.localA2A.templates` now only supports `.list()` (returns `LocalA2ATemplateDefinition[]`)
14
+ - Templates are now defined in `packages/gateway/src/config/local-a2a-templates.ts`
15
+ - Gateway resolves the managed CLI through the installed `@axiom-lattice/cli-a2a/cli-path` export and declares the CLI package as a runtime dependency
16
+ - Templates no longer contain port or agentCardUrl; those are user-supplied at creation time
17
+ - `CreateAssistantModal` appends the Agent Card URL port to template commands as `--port <port>` when the template does not already declare a port
18
+ - CLI session files are isolated by provider and server port when no explicit store path is configured
19
+
20
+ ## 2.1.54
21
+
22
+ ### Patch Changes
23
+
24
+ - 5e1486e: add voice input
25
+
3
26
  ## 2.1.53
4
27
 
5
28
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -323,8 +323,19 @@ interface TeamAgentConfig extends BaseAgentConfig {
323
323
  * Type guard to check if config is TeamAgentConfig
324
324
  */
325
325
  declare function isTeamAgentConfig(config: AgentConfig): config is TeamAgentConfig;
326
+ interface LocalRuntimeConfig {
327
+ label?: string;
328
+ agentCardUrl: string;
329
+ healthUrl?: string;
330
+ command: {
331
+ executable: string;
332
+ args: string[];
333
+ cwd?: string;
334
+ env?: Record<string, string>;
335
+ };
336
+ }
326
337
  /**
327
- * A2A_REMOTE agent configuration — delegates to an external A2A server.
338
+ * A2A_REMOTE agent configuration — wraps a remote A2A-compatible agent endpoint.
328
339
  *
329
340
  * This agent type wraps a remote A2A endpoint so orchestrators can treat
330
341
  * external agents the same as local LangGraph agents.
@@ -337,17 +348,39 @@ interface A2ARemoteAgentConfig extends BaseAgentConfig {
337
348
  */
338
349
  agentCardUrl: string;
339
350
  /**
340
- * Optional API key sent as Bearer token or X-API-Key header.
351
+ * Optional API key sent as a Bearer token.
341
352
  */
342
353
  apiKey?: string;
343
354
  /**
344
355
  * HTTP timeout in milliseconds (default: 300_000 = 5 min).
345
356
  */
346
357
  timeout?: number;
358
+ projectId?: string;
347
359
  /**
348
360
  * Optional tool keys (not used by the builder, but included for type compatibility).
349
361
  */
350
362
  tools?: string[];
363
+ /**
364
+ * Optional local runtime snapshot for Local Managed A2A assistants.
365
+ * When present, the gateway manages a local process for this assistant.
366
+ * Copied from a template or custom form at creation time.
367
+ */
368
+ localRuntime?: LocalRuntimeConfig;
369
+ }
370
+ type LocalA2AProviderId = string;
371
+ type LocalA2AProviderStatus = "missing" | "disabled" | "starting" | "running" | "stopped" | "failed";
372
+ interface LocalA2AProviderState {
373
+ runtimeId: string;
374
+ label: string;
375
+ status: LocalA2AProviderStatus;
376
+ enabled: boolean;
377
+ assistantId?: string;
378
+ agentCardUrl?: string;
379
+ healthUrl?: string;
380
+ pid?: number;
381
+ message?: string;
382
+ lastStartedAt?: string;
383
+ lastStoppedAt?: string;
351
384
  }
352
385
  /**
353
386
  * WORKFLOW agent configuration — compiled from YAML workflow DSL into a LangGraph StateGraph.
@@ -886,6 +919,67 @@ interface EmbeddingsLatticeProtocol extends BaseLatticeProtocol<EmbeddingsConfig
886
919
  embedQuery: (text: string) => Promise<number[]>;
887
920
  }
888
921
 
922
+ /**
923
+ * STTModelLatticeProtocol
924
+ *
925
+ * Speech-to-text model lattice protocol for defining unified interface
926
+ * for speech recognition / transcription models.
927
+ */
928
+
929
+ /**
930
+ * STT provider configuration.
931
+ */
932
+ interface STTConfig {
933
+ /** Provider type */
934
+ provider?: string;
935
+ /** API mode: "whisper" uses /v1/audio/transcriptions, "chat" uses /v1/chat/completions */
936
+ apiMode?: "whisper" | "chat";
937
+ /** Model name, e.g. "whisper-1", "qwen3-asr-flash" */
938
+ model?: string;
939
+ /** Direct API key */
940
+ apiKey?: string;
941
+ /** Environment variable name for API key, e.g. "DASHSCOPE_API_KEY" */
942
+ apiKeyEnvName?: string;
943
+ /** Custom base URL */
944
+ baseURL?: string;
945
+ /** Request timeout in milliseconds */
946
+ timeout?: number;
947
+ /** Additional parameters passed through to provider (e.g. asr_options) */
948
+ extra?: Record<string, unknown>;
949
+ }
950
+ /**
951
+ * Result returned by a transcription provider.
952
+ */
953
+ interface TranscriptionResult {
954
+ /** Transcribed text */
955
+ text: string;
956
+ /** Confidence score 0-1, if available */
957
+ confidence?: number;
958
+ /** Word-level timing segments, if available */
959
+ segments?: Array<{
960
+ start: number;
961
+ end: number;
962
+ text: string;
963
+ }>;
964
+ }
965
+ /**
966
+ * STT client interface for providers to implement.
967
+ */
968
+ interface STTClient {
969
+ transcribe(audio: Buffer, format: string): Promise<TranscriptionResult>;
970
+ }
971
+ /**
972
+ * STT model lattice protocol interface.
973
+ */
974
+ interface STTModelLatticeProtocol extends BaseLatticeProtocol<STTConfig, STTClient> {
975
+ /**
976
+ * Transcribe audio buffer to text.
977
+ * @param audio - Raw audio buffer
978
+ * @param format - Audio format, e.g. "webm", "wav", "mp3"
979
+ */
980
+ transcribe(audio: Buffer, format: string): Promise<TranscriptionResult>;
981
+ }
982
+
889
983
  /**
890
984
  * VectorStoreLatticeProtocol
891
985
  *
@@ -3872,6 +3966,24 @@ interface TaskWorkItemStore {
3872
3966
  list(filter: TaskWorkItemListFilter): Promise<TaskWorkItem[]>;
3873
3967
  }
3874
3968
 
3969
+ /**
3970
+ * LocalA2ATemplateConfig
3971
+ *
3972
+ * Read-only template definitions for Local Managed A2A providers.
3973
+ * Templates define command defaults (executable, args, cwd, env)
3974
+ * without port or agentCardUrl — those are user-supplied at creation time.
3975
+ *
3976
+ * Templates are defined in `packages/gateway/src/config/local-a2a-templates.ts`
3977
+ * and served via `GET /api/local-a2a/templates`.
3978
+ */
3979
+
3980
+ interface LocalA2ATemplateDefinition {
3981
+ key: string;
3982
+ name: string;
3983
+ description?: string;
3984
+ command: LocalRuntimeConfig["command"];
3985
+ }
3986
+
3875
3987
  /**
3876
3988
  * ChannelAdapterProtocol
3877
3989
  */
@@ -4007,6 +4119,9 @@ type A2APart = A2ATextPart | A2AFilePart | A2ADataPart;
4007
4119
  interface A2AMessage {
4008
4120
  role: "user" | "agent";
4009
4121
  parts: A2APart[];
4122
+ messageId?: string;
4123
+ contextId?: string;
4124
+ referenceTaskIds?: string[];
4010
4125
  metadata?: Record<string, unknown>;
4011
4126
  }
4012
4127
  type A2ATaskState = "working" | "input-required" | "completed" | "failed" | "canceled" | "rejected";
@@ -4024,6 +4139,7 @@ interface A2AArtifact {
4024
4139
  interface A2ATask {
4025
4140
  id: string;
4026
4141
  sessionId?: string;
4142
+ contextId?: string;
4027
4143
  status: A2ATaskStatus;
4028
4144
  artifacts: A2AArtifact[];
4029
4145
  history?: A2AMessage[];
@@ -4044,6 +4160,7 @@ interface A2APushNotification {
4044
4160
  interface A2ATaskUpdatePayload {
4045
4161
  id: string;
4046
4162
  sessionId?: string;
4163
+ contextId?: string;
4047
4164
  status: A2ATaskStatus;
4048
4165
  final?: boolean;
4049
4166
  metadata?: Record<string, unknown>;
@@ -4051,6 +4168,7 @@ interface A2ATaskUpdatePayload {
4051
4168
  interface A2ATaskArtifactUpdatePayload {
4052
4169
  id: string;
4053
4170
  sessionId?: string;
4171
+ contextId?: string;
4054
4172
  artifact: A2AArtifact;
4055
4173
  final?: boolean;
4056
4174
  metadata?: Record<string, unknown>;
@@ -4147,6 +4265,37 @@ interface A2AApiKeyStore {
4147
4265
  loadIntoMap(): Promise<Map<string, A2AApiKeyEntry>>;
4148
4266
  }
4149
4267
 
4268
+ /**
4269
+ * ConversationStoreProtocol
4270
+ *
4271
+ * Application-layer conversation persistence. Maintains mappings from
4272
+ * application `conversationId`/`threadId` to A2A task IDs, allowing
4273
+ * consumers to reference previous tasks without relying on A2A protocol
4274
+ * state for chat memory. A2A handles task routing; conversation memory
4275
+ * lives here.
4276
+ */
4277
+ interface ConversationRecord {
4278
+ conversationId: string;
4279
+ tenantId?: string;
4280
+ taskIds: string[];
4281
+ contextId?: string;
4282
+ metadata?: Record<string, unknown>;
4283
+ createdAt: string;
4284
+ updatedAt: string;
4285
+ }
4286
+ interface CreateConversationInput {
4287
+ conversationId: string;
4288
+ tenantId?: string;
4289
+ contextId?: string;
4290
+ metadata?: Record<string, unknown>;
4291
+ }
4292
+ interface IConversationStore {
4293
+ getConversation(conversationId: string): Promise<ConversationRecord | null>;
4294
+ createConversation(input: CreateConversationInput): Promise<ConversationRecord>;
4295
+ addTaskToConversation(conversationId: string, taskId: string): Promise<ConversationRecord>;
4296
+ deleteConversation(conversationId: string): Promise<void>;
4297
+ }
4298
+
4150
4299
  /**
4151
4300
  * YAML Workflow DSL — linear model with parallel blocks
4152
4301
  *
@@ -4617,4 +4766,4 @@ type Timestamp = number;
4617
4766
  */
4618
4767
  type Callback<T = any, R = void> = (data: T) => R | Promise<R>;
4619
4768
 
4620
- export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, 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 CreateA2AApiKeyInput, type CreateAssistantRequest, type CreateBindingInput, type CreateChannelInstallationRequest, type CreateCollectionRequest, 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 CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, 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 OutboundMessage, 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 PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type SandboxMiddlewareConfig, 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 TaskHandler, type TaskItem, type TaskListFilter, 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 UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };
4769
+ export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, 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 CreateAssistantRequest, type CreateBindingInput, 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 CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, 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, 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 OutboundMessage, 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 PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, 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 TaskHandler, type TaskItem, type TaskListFilter, 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 UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };
package/dist/index.d.ts CHANGED
@@ -323,8 +323,19 @@ interface TeamAgentConfig extends BaseAgentConfig {
323
323
  * Type guard to check if config is TeamAgentConfig
324
324
  */
325
325
  declare function isTeamAgentConfig(config: AgentConfig): config is TeamAgentConfig;
326
+ interface LocalRuntimeConfig {
327
+ label?: string;
328
+ agentCardUrl: string;
329
+ healthUrl?: string;
330
+ command: {
331
+ executable: string;
332
+ args: string[];
333
+ cwd?: string;
334
+ env?: Record<string, string>;
335
+ };
336
+ }
326
337
  /**
327
- * A2A_REMOTE agent configuration — delegates to an external A2A server.
338
+ * A2A_REMOTE agent configuration — wraps a remote A2A-compatible agent endpoint.
328
339
  *
329
340
  * This agent type wraps a remote A2A endpoint so orchestrators can treat
330
341
  * external agents the same as local LangGraph agents.
@@ -337,17 +348,39 @@ interface A2ARemoteAgentConfig extends BaseAgentConfig {
337
348
  */
338
349
  agentCardUrl: string;
339
350
  /**
340
- * Optional API key sent as Bearer token or X-API-Key header.
351
+ * Optional API key sent as a Bearer token.
341
352
  */
342
353
  apiKey?: string;
343
354
  /**
344
355
  * HTTP timeout in milliseconds (default: 300_000 = 5 min).
345
356
  */
346
357
  timeout?: number;
358
+ projectId?: string;
347
359
  /**
348
360
  * Optional tool keys (not used by the builder, but included for type compatibility).
349
361
  */
350
362
  tools?: string[];
363
+ /**
364
+ * Optional local runtime snapshot for Local Managed A2A assistants.
365
+ * When present, the gateway manages a local process for this assistant.
366
+ * Copied from a template or custom form at creation time.
367
+ */
368
+ localRuntime?: LocalRuntimeConfig;
369
+ }
370
+ type LocalA2AProviderId = string;
371
+ type LocalA2AProviderStatus = "missing" | "disabled" | "starting" | "running" | "stopped" | "failed";
372
+ interface LocalA2AProviderState {
373
+ runtimeId: string;
374
+ label: string;
375
+ status: LocalA2AProviderStatus;
376
+ enabled: boolean;
377
+ assistantId?: string;
378
+ agentCardUrl?: string;
379
+ healthUrl?: string;
380
+ pid?: number;
381
+ message?: string;
382
+ lastStartedAt?: string;
383
+ lastStoppedAt?: string;
351
384
  }
352
385
  /**
353
386
  * WORKFLOW agent configuration — compiled from YAML workflow DSL into a LangGraph StateGraph.
@@ -886,6 +919,67 @@ interface EmbeddingsLatticeProtocol extends BaseLatticeProtocol<EmbeddingsConfig
886
919
  embedQuery: (text: string) => Promise<number[]>;
887
920
  }
888
921
 
922
+ /**
923
+ * STTModelLatticeProtocol
924
+ *
925
+ * Speech-to-text model lattice protocol for defining unified interface
926
+ * for speech recognition / transcription models.
927
+ */
928
+
929
+ /**
930
+ * STT provider configuration.
931
+ */
932
+ interface STTConfig {
933
+ /** Provider type */
934
+ provider?: string;
935
+ /** API mode: "whisper" uses /v1/audio/transcriptions, "chat" uses /v1/chat/completions */
936
+ apiMode?: "whisper" | "chat";
937
+ /** Model name, e.g. "whisper-1", "qwen3-asr-flash" */
938
+ model?: string;
939
+ /** Direct API key */
940
+ apiKey?: string;
941
+ /** Environment variable name for API key, e.g. "DASHSCOPE_API_KEY" */
942
+ apiKeyEnvName?: string;
943
+ /** Custom base URL */
944
+ baseURL?: string;
945
+ /** Request timeout in milliseconds */
946
+ timeout?: number;
947
+ /** Additional parameters passed through to provider (e.g. asr_options) */
948
+ extra?: Record<string, unknown>;
949
+ }
950
+ /**
951
+ * Result returned by a transcription provider.
952
+ */
953
+ interface TranscriptionResult {
954
+ /** Transcribed text */
955
+ text: string;
956
+ /** Confidence score 0-1, if available */
957
+ confidence?: number;
958
+ /** Word-level timing segments, if available */
959
+ segments?: Array<{
960
+ start: number;
961
+ end: number;
962
+ text: string;
963
+ }>;
964
+ }
965
+ /**
966
+ * STT client interface for providers to implement.
967
+ */
968
+ interface STTClient {
969
+ transcribe(audio: Buffer, format: string): Promise<TranscriptionResult>;
970
+ }
971
+ /**
972
+ * STT model lattice protocol interface.
973
+ */
974
+ interface STTModelLatticeProtocol extends BaseLatticeProtocol<STTConfig, STTClient> {
975
+ /**
976
+ * Transcribe audio buffer to text.
977
+ * @param audio - Raw audio buffer
978
+ * @param format - Audio format, e.g. "webm", "wav", "mp3"
979
+ */
980
+ transcribe(audio: Buffer, format: string): Promise<TranscriptionResult>;
981
+ }
982
+
889
983
  /**
890
984
  * VectorStoreLatticeProtocol
891
985
  *
@@ -3872,6 +3966,24 @@ interface TaskWorkItemStore {
3872
3966
  list(filter: TaskWorkItemListFilter): Promise<TaskWorkItem[]>;
3873
3967
  }
3874
3968
 
3969
+ /**
3970
+ * LocalA2ATemplateConfig
3971
+ *
3972
+ * Read-only template definitions for Local Managed A2A providers.
3973
+ * Templates define command defaults (executable, args, cwd, env)
3974
+ * without port or agentCardUrl — those are user-supplied at creation time.
3975
+ *
3976
+ * Templates are defined in `packages/gateway/src/config/local-a2a-templates.ts`
3977
+ * and served via `GET /api/local-a2a/templates`.
3978
+ */
3979
+
3980
+ interface LocalA2ATemplateDefinition {
3981
+ key: string;
3982
+ name: string;
3983
+ description?: string;
3984
+ command: LocalRuntimeConfig["command"];
3985
+ }
3986
+
3875
3987
  /**
3876
3988
  * ChannelAdapterProtocol
3877
3989
  */
@@ -4007,6 +4119,9 @@ type A2APart = A2ATextPart | A2AFilePart | A2ADataPart;
4007
4119
  interface A2AMessage {
4008
4120
  role: "user" | "agent";
4009
4121
  parts: A2APart[];
4122
+ messageId?: string;
4123
+ contextId?: string;
4124
+ referenceTaskIds?: string[];
4010
4125
  metadata?: Record<string, unknown>;
4011
4126
  }
4012
4127
  type A2ATaskState = "working" | "input-required" | "completed" | "failed" | "canceled" | "rejected";
@@ -4024,6 +4139,7 @@ interface A2AArtifact {
4024
4139
  interface A2ATask {
4025
4140
  id: string;
4026
4141
  sessionId?: string;
4142
+ contextId?: string;
4027
4143
  status: A2ATaskStatus;
4028
4144
  artifacts: A2AArtifact[];
4029
4145
  history?: A2AMessage[];
@@ -4044,6 +4160,7 @@ interface A2APushNotification {
4044
4160
  interface A2ATaskUpdatePayload {
4045
4161
  id: string;
4046
4162
  sessionId?: string;
4163
+ contextId?: string;
4047
4164
  status: A2ATaskStatus;
4048
4165
  final?: boolean;
4049
4166
  metadata?: Record<string, unknown>;
@@ -4051,6 +4168,7 @@ interface A2ATaskUpdatePayload {
4051
4168
  interface A2ATaskArtifactUpdatePayload {
4052
4169
  id: string;
4053
4170
  sessionId?: string;
4171
+ contextId?: string;
4054
4172
  artifact: A2AArtifact;
4055
4173
  final?: boolean;
4056
4174
  metadata?: Record<string, unknown>;
@@ -4147,6 +4265,37 @@ interface A2AApiKeyStore {
4147
4265
  loadIntoMap(): Promise<Map<string, A2AApiKeyEntry>>;
4148
4266
  }
4149
4267
 
4268
+ /**
4269
+ * ConversationStoreProtocol
4270
+ *
4271
+ * Application-layer conversation persistence. Maintains mappings from
4272
+ * application `conversationId`/`threadId` to A2A task IDs, allowing
4273
+ * consumers to reference previous tasks without relying on A2A protocol
4274
+ * state for chat memory. A2A handles task routing; conversation memory
4275
+ * lives here.
4276
+ */
4277
+ interface ConversationRecord {
4278
+ conversationId: string;
4279
+ tenantId?: string;
4280
+ taskIds: string[];
4281
+ contextId?: string;
4282
+ metadata?: Record<string, unknown>;
4283
+ createdAt: string;
4284
+ updatedAt: string;
4285
+ }
4286
+ interface CreateConversationInput {
4287
+ conversationId: string;
4288
+ tenantId?: string;
4289
+ contextId?: string;
4290
+ metadata?: Record<string, unknown>;
4291
+ }
4292
+ interface IConversationStore {
4293
+ getConversation(conversationId: string): Promise<ConversationRecord | null>;
4294
+ createConversation(input: CreateConversationInput): Promise<ConversationRecord>;
4295
+ addTaskToConversation(conversationId: string, taskId: string): Promise<ConversationRecord>;
4296
+ deleteConversation(conversationId: string): Promise<void>;
4297
+ }
4298
+
4150
4299
  /**
4151
4300
  * YAML Workflow DSL — linear model with parallel blocks
4152
4301
  *
@@ -4617,4 +4766,4 @@ type Timestamp = number;
4617
4766
  */
4618
4767
  type Callback<T = any, R = void> = (data: T) => R | Promise<R>;
4619
4768
 
4620
- export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, 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 CreateA2AApiKeyInput, type CreateAssistantRequest, type CreateBindingInput, type CreateChannelInstallationRequest, type CreateCollectionRequest, 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 CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, 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 OutboundMessage, 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 PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type SandboxMiddlewareConfig, 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 TaskHandler, type TaskItem, type TaskListFilter, 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 UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };
4769
+ export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, 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 CreateAssistantRequest, type CreateBindingInput, 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 CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, 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, 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 OutboundMessage, 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 PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, 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 TaskHandler, type TaskItem, type TaskListFilter, 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 UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };