@axiom-lattice/core 2.1.94 → 2.1.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -8,7 +8,7 @@ import { BaseLanguageModelInput, LanguageModelLike, BaseLanguageModel } from '@l
8
8
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
9
9
  import { ChatResult } from '@langchain/core/outputs';
10
10
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
11
- import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL } from '@axiom-lattice/protocols';
11
+ import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, PluginMeta, Plugin, PluginMetaOutput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
12
12
  export { _axiom_lattice_protocols as Protocols };
13
13
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
14
14
  import * as langchain from 'langchain';
@@ -16,12 +16,13 @@ import { ReactAgent, AgentMiddleware, StructuredTool as StructuredTool$1, Interr
16
16
  import z, { z as z$1 } from 'zod';
17
17
  import { BaseStore, BaseCheckpointSaver } from '@langchain/langgraph-checkpoint';
18
18
  import * as _langchain_core_tools from '@langchain/core/tools';
19
- import { StructuredTool } from '@langchain/core/tools';
19
+ import { StructuredTool, DynamicStructuredTool } from '@langchain/core/tools';
20
20
  import * as _langchain_langgraph from '@langchain/langgraph';
21
21
  import { CompiledStateGraph, CommandParams, AnnotationRoot } from '@langchain/langgraph';
22
22
  import { ReplaySubject } from 'rxjs';
23
23
  import { Embeddings } from '@langchain/core/embeddings';
24
24
  import { VectorStore } from '@langchain/core/vectorstores';
25
+ import { DocumentInterface } from '@langchain/core/documents';
25
26
  import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
26
27
  import { SandboxClient } from '@agent-infra/sandbox';
27
28
  import { Sandbox } from 'e2b';
@@ -905,68 +906,57 @@ declare class CustomMetricsClient implements IMetricsServerClient {
905
906
  */
906
907
  declare class MetricsServerManager {
907
908
  private static instance;
908
- private clients;
909
909
  private configs;
910
910
  private defaultServerKeys;
911
- private _loadingPromise;
912
911
  private constructor();
913
912
  /**
914
913
  * Get the singleton instance
915
914
  */
916
915
  static getInstance(): MetricsServerManager;
917
916
  /**
918
- * Ensure configurations are loaded from the store lattice.
919
- * Uses a promise-lock to prevent concurrent loads.
917
+ * Get or create tenant configs map
920
918
  */
921
- private _ensureLoaded;
919
+ private getTenantConfigs;
922
920
  /**
923
- * Get or create tenant clients map
921
+ * Create a metrics client from config.
922
+ * Clients are stateless HTTP wrappers — cheap to create on every call.
924
923
  */
925
- private getTenantClients;
924
+ private _createClient;
926
925
  /**
927
- * Get or create tenant configs map
926
+ * Resolve a server config for a tenant. Queries the store for freshness.
927
+ * When store has no data, falls back to in-memory cache.
928
928
  */
929
- private getTenantConfigs;
929
+ private _resolveConfig;
930
930
  /**
931
- * Register a metrics server for a tenant
932
- * @param tenantId - Tenant identifier
933
- * @param key - Unique identifier for the server
934
- * @param config - Metrics server configuration
931
+ * Register a metrics server for a tenant. Stores config in memory
932
+ * for fallback / programmatic registration use.
935
933
  */
936
934
  registerServer(tenantId: string, key: string, config: MetricsServerConfig): void;
937
935
  /**
938
936
  * Set the default metrics server for a tenant
939
- * @param tenantId - Tenant identifier
940
- * @param key - Server key to set as default
941
937
  */
942
938
  setDefaultServer(tenantId: string, key: string): void;
943
939
  /**
944
- * Get a metrics server client by key for a specific tenant
945
- * @param tenantId - Tenant identifier
946
- * @param key - Server key (optional, uses default if not provided)
940
+ * Get a metrics server client for a tenant.
941
+ * Always queries the store for the latest config, creates a fresh client.
942
+ * Falls back to in-memory cache when store is unavailable.
947
943
  */
948
944
  getClient(tenantId: string, key?: string): Promise<IMetricsServerClient>;
949
945
  /**
950
- * Get metrics server configuration by key for a specific tenant
951
- * @param tenantId - Tenant identifier
952
- * @param key - Server key (optional, uses default if not provided)
946
+ * Get metrics server configuration for a tenant.
947
+ * Always queries the store for freshness.
948
+ * Falls back to in-memory cache when store is unavailable.
953
949
  */
954
950
  getConfig(tenantId: string, key?: string): Promise<MetricsServerConfig>;
955
951
  /**
956
- * Ensure server configs are loaded from the store.
957
- * Public wrapper around the internal lazy-loading mechanism.
958
- * Safe to call multiple times — loading happens at most once.
959
- */
960
- ensureLoaded(): Promise<void>;
961
- /**
962
- * Check if a metrics server is registered for a tenant
963
- * @param tenantId - Tenant identifier
964
- * @param key - Server key
952
+ * Check if a metrics server exists in the in-memory cache.
953
+ * For store-backed existence checks, use getClient() or getConfig().
965
954
  */
966
955
  hasServer(tenantId: string, key: string): boolean;
967
956
  /**
968
- * Get all registered metrics server keys with their types for a tenant
969
- * @param tenantId - Tenant identifier
957
+ * Get all registered metrics server keys for a tenant.
958
+ * Queries the store directly. Falls back to in-memory cache
959
+ * when the store has no data for this tenant.
970
960
  */
971
961
  getServerKeys(tenantId: string): Promise<{
972
962
  key: string;
@@ -975,13 +965,10 @@ declare class MetricsServerManager {
975
965
  }[]>;
976
966
  /**
977
967
  * Remove a metrics server for a tenant
978
- * @param tenantId - Tenant identifier
979
- * @param key - Server key
980
968
  */
981
969
  removeServer(tenantId: string, key: string): void;
982
970
  /**
983
971
  * Clear all metrics servers for a tenant
984
- * @param tenantId - Tenant identifier (optional, clears all if not provided)
985
972
  */
986
973
  clear(tenantId?: string): void;
987
974
  /**
@@ -1719,6 +1706,8 @@ interface MiddlewareConfig {
1719
1706
  name: string;
1720
1707
  description: string;
1721
1708
  enabled: boolean;
1709
+ /** 可选:限制该中间件暴露的工具列表。不配置则默认暴露所有工具 */
1710
+ allowedTools?: string[];
1722
1711
  config: Record<string, any>;
1723
1712
  }
1724
1713
  interface AgentBuildParams {
@@ -2707,6 +2696,7 @@ type StoreTypeMap = {
2707
2696
  thread: ThreadStore;
2708
2697
  assistant: AssistantStore;
2709
2698
  skill: SkillStore;
2699
+ collection: CollectionStore;
2710
2700
  workspace: WorkspaceStore;
2711
2701
  project: ProjectStore;
2712
2702
  database: DatabaseConfigStore;
@@ -2724,6 +2714,7 @@ type StoreTypeMap = {
2724
2714
  a2aApiKey: A2AApiKeyStore;
2725
2715
  task: TaskStore;
2726
2716
  sharedResource: SharedResourceStore;
2717
+ connection: ConnectionStore;
2727
2718
  };
2728
2719
  /**
2729
2720
  * Store type keys
@@ -2826,6 +2817,7 @@ type Store = Partial<{
2826
2817
  }> & {
2827
2818
  schedule?: object;
2828
2819
  checkpoint?: object;
2820
+ vectorStoreProvider?: VectorStoreProvider;
2829
2821
  };
2830
2822
  /**
2831
2823
  * Replace stores in the "default" lattice with the given implementations.
@@ -3540,6 +3532,44 @@ declare class InMemoryTaskStore implements TaskStore {
3540
3532
  clear(tenantId?: string): void;
3541
3533
  }
3542
3534
 
3535
+ /**
3536
+ * InMemoryCollectionStore
3537
+ *
3538
+ * In-memory implementation of CollectionStore
3539
+ * Provides CRUD operations for collection metadata stored in memory
3540
+ */
3541
+
3542
+ /**
3543
+ * In-memory implementation of CollectionStore with tenant isolation
3544
+ */
3545
+ declare class InMemoryCollectionStore implements CollectionStore {
3546
+ private collections;
3547
+ /**
3548
+ * Get all collections for a tenant
3549
+ */
3550
+ getAllCollections(tenantId: string): Promise<Collection[]>;
3551
+ /**
3552
+ * Get collection by name
3553
+ */
3554
+ getCollectionByName(tenantId: string, name: string): Promise<Collection | null>;
3555
+ /**
3556
+ * Create a new collection
3557
+ */
3558
+ createCollection(tenantId: string, data: CreateCollectionRequest): Promise<Collection>;
3559
+ /**
3560
+ * Update an existing collection
3561
+ */
3562
+ updateCollection(tenantId: string, name: string, updates: UpdateCollectionRequest): Promise<Collection | null>;
3563
+ /**
3564
+ * Delete a collection by name
3565
+ */
3566
+ deleteCollection(tenantId: string, name: string): Promise<boolean>;
3567
+ /**
3568
+ * Clear all collections for a tenant (useful for testing)
3569
+ */
3570
+ clear(tenantId?: string): void;
3571
+ }
3572
+
3543
3573
  declare class InMemoryMenuStore implements MenuRegistry {
3544
3574
  private items;
3545
3575
  list(params: {
@@ -3562,6 +3592,11 @@ declare class InMemoryMenuStore implements MenuRegistry {
3562
3592
  interface EmbeddingsLatticeInterface {
3563
3593
  key: string;
3564
3594
  client: Embeddings;
3595
+ label: string;
3596
+ }
3597
+ interface EmbeddingsInfo {
3598
+ key: string;
3599
+ label: string;
3565
3600
  }
3566
3601
  /**
3567
3602
  * EmbeddingsLatticeManager - Singleton embeddings Lattice manager
@@ -3581,8 +3616,13 @@ declare class EmbeddingsLatticeManager extends BaseLatticeManager<EmbeddingsLatt
3581
3616
  * Register embeddings Lattice
3582
3617
  * @param key Lattice key name
3583
3618
  * @param embeddings Embeddings instance
3619
+ * @param label Optional display label (auto-derived if not provided)
3584
3620
  */
3585
- registerLattice(key: string, embeddings: Embeddings): void;
3621
+ registerLattice(key: string, embeddings: Embeddings, label?: string): void;
3622
+ /**
3623
+ * Get all registered embeddings as { key, label } info list
3624
+ */
3625
+ getAllEmbeddingsInfo(): EmbeddingsInfo[];
3586
3626
  /**
3587
3627
  * Get EmbeddingsLattice
3588
3628
  * @param key Lattice key name
@@ -3621,7 +3661,7 @@ declare class EmbeddingsLatticeManager extends BaseLatticeManager<EmbeddingsLatt
3621
3661
  getEmbeddingsClient(key: string): Embeddings;
3622
3662
  }
3623
3663
  declare const embeddingsLatticeManager: EmbeddingsLatticeManager;
3624
- declare const registerEmbeddingsLattice: (key: string, embeddings: Embeddings) => void;
3664
+ declare const registerEmbeddingsLattice: (key: string, embeddings: Embeddings, label?: string) => void;
3625
3665
  declare const getEmbeddingsLattice: (key: string) => EmbeddingsLatticeInterface;
3626
3666
  declare const getEmbeddingsClient: (key: string) => Embeddings<number[]>;
3627
3667
 
@@ -3695,6 +3735,64 @@ declare const registerVectorStoreLattice: (key: string, vectorStore: VectorStore
3695
3735
  declare const getVectorStoreLattice: (key: string) => VectorStoreLatticeInterface;
3696
3736
  declare const getVectorStoreClient: (key: string) => VectorStore;
3697
3737
 
3738
+ /**
3739
+ * VectorStoreProviderManager
3740
+ *
3741
+ * Singleton registry for VectorStoreProvider instances.
3742
+ * Each provider key maps to a backend (memory, pgvector, chroma, etc.).
3743
+ * Follows the same pattern as EmbeddingsLatticeManager.
3744
+ */
3745
+
3746
+ /**
3747
+ * VectorStoreProvider Lattice Interface
3748
+ */
3749
+ interface VectorStoreProviderLattice {
3750
+ key: string;
3751
+ provider: VectorStoreProvider;
3752
+ }
3753
+ /**
3754
+ * VectorStoreProviderManager - Singleton provider Lattice manager
3755
+ * Responsible for registering and managing VectorStoreProvider backends
3756
+ */
3757
+ declare class VectorStoreProviderManager extends BaseLatticeManager<VectorStoreProviderLattice> {
3758
+ private static _instance;
3759
+ /**
3760
+ * Get VectorStoreProviderManager singleton instance
3761
+ */
3762
+ static getInstance(): VectorStoreProviderManager;
3763
+ /**
3764
+ * Get Lattice type prefix
3765
+ */
3766
+ protected getLatticeType(): string;
3767
+ /**
3768
+ * Register a VectorStore provider
3769
+ * @param key Provider key name
3770
+ * @param provider VectorStoreProvider implementation
3771
+ */
3772
+ registerProvider(key: string, provider: VectorStoreProvider): void;
3773
+ /**
3774
+ * Get a VectorStore provider by key
3775
+ * @param key Provider key name
3776
+ * @returns VectorStoreProvider instance
3777
+ */
3778
+ getProvider(key: string): VectorStoreProvider;
3779
+ /**
3780
+ * Get all registered providers
3781
+ */
3782
+ getAllProviders(): VectorStoreProviderLattice[];
3783
+ /**
3784
+ * Check if provider exists
3785
+ */
3786
+ hasProvider(key: string): boolean;
3787
+ /**
3788
+ * Remove a provider
3789
+ */
3790
+ removeProvider(key: string): boolean;
3791
+ }
3792
+ declare const vectorStoreProviderManager: VectorStoreProviderManager;
3793
+ declare const registerVectorStoreProvider: (key: string, provider: VectorStoreProvider) => void;
3794
+ declare const getVectorStoreProvider: (key: string) => VectorStoreProvider;
3795
+
3698
3796
  /**
3699
3797
  * LoggerLatticeManager
3700
3798
  *
@@ -4080,11 +4178,106 @@ declare function getBuiltInSkillNames(): string[];
4080
4178
  */
4081
4179
  declare function isBuiltInSkill(name: string): boolean;
4082
4180
 
4181
+ /**
4182
+ * CollectionLatticeManager
4183
+ *
4184
+ * Pure store facade for collection metadata management.
4185
+ * All reads go directly to the configured CollectionStore — no in-memory cache.
4186
+ * VectorStore lifecycle (create/destroy) is handled by the gateway service layer.
4187
+ */
4188
+
4189
+ /**
4190
+ * CollectionLatticeManager - Singleton manager for collection metadata.
4191
+ * Every operation reads/writes the configured CollectionStore from StoreLatticeManager.
4192
+ * No in-memory cache — data always comes from the store.
4193
+ */
4194
+ declare class CollectionLatticeManager {
4195
+ private static _instance;
4196
+ static getInstance(): CollectionLatticeManager;
4197
+ private getStore;
4198
+ registerCollection(tenantId: string, data: CreateCollectionRequest): Promise<Collection>;
4199
+ getCollection(tenantId: string, name: string): Promise<Collection | null>;
4200
+ getAllCollections(tenantId: string): Promise<Collection[]>;
4201
+ removeCollection(tenantId: string, name: string): Promise<boolean>;
4202
+ updateCollection(tenantId: string, name: string, updates: UpdateCollectionRequest): Promise<Collection | null>;
4203
+ }
4204
+ declare const collectionLatticeManager: CollectionLatticeManager;
4205
+
4206
+ /**
4207
+ * CollectionVectorStoreHelper
4208
+ *
4209
+ * Provides helpers for managing tenant-isolated VectorStore instances per collection.
4210
+ * Delegates creation to the registered VectorStoreProvider.
4211
+ *
4212
+ * Key format: "{tenantId}:{collectionName}"
4213
+ * Table format: "tenant_{tenantId}_{collectionName}"
4214
+ */
4215
+
4216
+ declare function buildTableName(tenantId: string, name: string): string;
4217
+ /**
4218
+ * Get or create a tenant-isolated VectorStore for a collection.
4219
+ */
4220
+ declare function getOrCreateCollectionVectorStore(name: string, embeddingKey: string, tenantId: string, providerKey?: string): Promise<any>;
4221
+ /**
4222
+ * Get entry count for a collection.
4223
+ * Tries vector store's native method first, falls back to provider.
4224
+ */
4225
+ declare function getCollectionEntryCount(name: string, embeddingKey: string, tenantId: string): Promise<number>;
4226
+ /**
4227
+ * List all entries in a collection.
4228
+ * Tries vector store's native method first, falls back to provider.
4229
+ */
4230
+ declare function listCollectionEntries(name: string, embeddingKey: string, tenantId: string): Promise<DocumentInterface[]>;
4231
+ /**
4232
+ * Remove a tenant-isolated vector store registration and drop the underlying table.
4233
+ */
4234
+ declare function removeCollectionVectorStore(name: string, tenantId: string): Promise<void>;
4235
+
4236
+ /**
4237
+ * SimpleMemoryVectorStore
4238
+ *
4239
+ * Minimal in-memory VectorStore implementation that satisfies the LangChain
4240
+ * VectorStore interface. Used as the default backend when no external vector
4241
+ * store (PGVector, Chroma, etc.) is registered.
4242
+ */
4243
+
4244
+ declare class SimpleMemoryVectorStore extends VectorStore {
4245
+ _vectorstoreType(): string;
4246
+ private vectors;
4247
+ constructor(embeddings: Embeddings);
4248
+ /**
4249
+ * Add pre-computed vectors with their documents.
4250
+ */
4251
+ addVectors(vectors: number[][], documents: DocumentInterface[], _options?: Record<string, unknown>): Promise<string[]>;
4252
+ /**
4253
+ * Add documents (will be embedded automatically by the VectorStore base class).
4254
+ */
4255
+ addDocuments(documents: DocumentInterface[], _options?: Record<string, unknown>): Promise<string[]>;
4256
+ /**
4257
+ * Delete documents by filter.
4258
+ */
4259
+ delete(params?: Record<string, unknown>): Promise<void>;
4260
+ /**
4261
+ * Similarity search with vector and scores.
4262
+ */
4263
+ similaritySearchVectorWithScore(query: number[], k: number, filter?: this["FilterType"]): Promise<[DocumentInterface, number][]>;
4264
+ /**
4265
+ * Get all stored documents (non-standard, used for listing entries).
4266
+ */
4267
+ getAllDocuments(): DocumentInterface[];
4268
+ /**
4269
+ * Get document count.
4270
+ */
4271
+ getDocumentCount(): number;
4272
+ }
4273
+
4083
4274
  /**
4084
4275
  * McpLatticeManager
4085
4276
  *
4086
- * MCP Lattice Manager - Manages MCP client connections using MultiServerMCPClient
4087
- * Follows the singleton pattern for global access
4277
+ * MCP Lattice Manager - Manages MCP client connections.
4278
+ * Each MCP server gets its own independent MultiServerMCPClient instance,
4279
+ * so adding/removing servers never affects other servers' connections or tools.
4280
+ * Follows the singleton pattern for global access.
4088
4281
  */
4089
4282
 
4090
4283
  interface McpServerInfo {
@@ -4097,24 +4290,71 @@ interface McpLatticeInterface {
4097
4290
  }
4098
4291
  declare class McpLatticeManager extends BaseLatticeManager<McpLatticeInterface> {
4099
4292
  private static _instance;
4100
- private client;
4293
+ /** One MultiServerMCPClient per server, keyed by server name */
4294
+ private clients;
4295
+ /** Server connection configs, keyed by server name */
4101
4296
  private servers;
4297
+ /** Track registered tool keys per server for cleanup */
4298
+ private registeredToolKeys;
4102
4299
  static getInstance(): McpLatticeManager;
4103
4300
  protected getLatticeType(): string;
4104
4301
  registerServers(servers: McpServerInfo[]): void;
4105
4302
  addServer(name: string, connection: Connection): void;
4106
- removeServer(name: string): boolean;
4303
+ /**
4304
+ * Remove a server. Closes its client and unregisters its tools.
4305
+ */
4306
+ removeServer(name: string): Promise<boolean>;
4307
+ /**
4308
+ * Connect all registered servers that are not yet connected.
4309
+ * Each server gets its own MultiServerMCPClient instance.
4310
+ * Existing connections are not affected.
4311
+ */
4107
4312
  connect(): Promise<void>;
4313
+ /**
4314
+ * Reconnect a single server: close old client, create new one, re-register tools.
4315
+ */
4316
+ reconnectServer(name: string): Promise<void>;
4108
4317
  disconnect(): Promise<void>;
4109
4318
  isConnected(): boolean;
4110
- getAllTools(): Promise<any[]>;
4319
+ isServerConnected(name: string): boolean;
4320
+ /**
4321
+ * Get tools from a specific server using raw MCP protocol.
4322
+ * Returns native JSON schema tools — suitable for API responses.
4323
+ */
4324
+ getServerTools(serverName: string): Promise<McpTool[]>;
4325
+ /**
4326
+ * Get all tools from all servers as McpTool[] (API format).
4327
+ */
4328
+ getAllTools(): Promise<McpTool[]>;
4329
+ /**
4330
+ * Get raw LangChain DynamicStructuredTool objects for ToolLattice registration.
4331
+ * Optionally filtered by server name.
4332
+ */
4333
+ getRawTools(serverName?: string): Promise<DynamicStructuredTool[]>;
4111
4334
  getServerNames(): string[];
4112
4335
  hasServer(name: string): boolean;
4113
4336
  /**
4114
- * MCP 工具注册到 Tool Lattice
4115
- * @param prefix 工具键名前缀,用于区分不同服务器的工具
4337
+ * Build the tool lattice key for an MCP tool.
4338
+ */
4339
+ static buildToolKey(serverName: string, toolName: string): string;
4340
+ /**
4341
+ * Unregister all tools for a specific server from ToolLattice.
4116
4342
  */
4117
- registerToolsToToolLattice(prefix?: string): Promise<void>;
4343
+ unregisterServerTools(serverName: string): void;
4344
+ /**
4345
+ * Register MCP tools from a specific server to Tool Lattice.
4346
+ * Tools are registered with key pattern: mcp:{serverName}:{toolName}
4347
+ * Only registers tools whose names are in selectedTools (if provided).
4348
+ */
4349
+ registerToolsToToolLattice(serverName: string, selectedTools?: string[]): Promise<void>;
4350
+ /**
4351
+ * Test a single MCP server connection using a standalone client.
4352
+ * Does not affect the global mcpManager state.
4353
+ */
4354
+ static testConnection(serverName: string, connection: Connection): Promise<{
4355
+ tools: McpTool[];
4356
+ latency: number;
4357
+ }>;
4118
4358
  }
4119
4359
  declare const mcpManager: McpLatticeManager;
4120
4360
 
@@ -6632,6 +6872,8 @@ type CustomMiddlewareFactory = (config: Record<string, any>) => Promise<AgentMid
6632
6872
  * modifying core source code. Once registered, middleware can be enabled per-agent via
6633
6873
  * the database config using `type: "custom"` in the agent's `graphDefinition.middleware` array.
6634
6874
  *
6875
+ * Internally bridges to PluginRegistry for unified discovery.
6876
+ *
6635
6877
  * @example Register and use
6636
6878
  * ```ts
6637
6879
  * // 1. App startup — register a factory
@@ -6651,6 +6893,9 @@ type CustomMiddlewareFactory = (config: Record<string, any>) => Promise<AgentMid
6651
6893
  * // }
6652
6894
  * ```
6653
6895
  *
6896
+ * @deprecated New plugins should use PluginRegistry.register(plugin) instead.
6897
+ * This class is maintained for backward compatibility.
6898
+ *
6654
6899
  * @remarks
6655
6900
  * - Register factories **before** building agents (typically at app startup).
6656
6901
  * - Duplicate keys overwrite previous registrations.
@@ -6661,21 +6906,17 @@ declare class CustomMiddlewareRegistry {
6661
6906
  /**
6662
6907
  * Register a custom middleware factory under the given key.
6663
6908
  *
6664
- * The key is referenced by `config.key` in the database middleware configuration.
6665
- * When an agent is built, the framework looks up this key and calls the factory
6666
- * with the remaining config fields.
6909
+ * Supports three calling conventions:
6910
+ * - register(key, factory) legacy, wraps factory as anonymous Plugin
6911
+ * - register(key, factory, meta) — legacy with optional meta
6912
+ *
6913
+ * For new code, prefer PluginRegistry.register(plugin).
6667
6914
  *
6668
6915
  * @param key - Unique identifier, referenced in database config as `config.key`
6669
6916
  * @param factory - Function that receives config (minus `key`) and returns an AgentMiddleware
6670
- *
6671
- * @example
6672
- * ```ts
6673
- * CustomMiddlewareRegistry.register("my-logger", (config) =>
6674
- * createMiddleware({ name: "Logger", beforeAgent: async () => { ... } }),
6675
- * );
6676
- * ```
6917
+ * @param deprecatedMeta - Optional metadata for API discovery
6677
6918
  */
6678
- static register(key: string, factory: CustomMiddlewareFactory): void;
6919
+ static register(key: string, factory: CustomMiddlewareFactory, deprecatedMeta?: Partial<PluginMeta>): void;
6679
6920
  /**
6680
6921
  * Remove a previously registered factory.
6681
6922
  *
@@ -6692,18 +6933,48 @@ declare class CustomMiddlewareRegistry {
6692
6933
  static get(key: string): CustomMiddlewareFactory | undefined;
6693
6934
  /**
6694
6935
  * Check whether a factory is registered under the given key.
6695
- *
6696
- * @param key - The factory key to check
6697
6936
  */
6698
6937
  static has(key: string): boolean;
6699
6938
  /**
6700
6939
  * Get all currently registered factory keys.
6701
- *
6702
- * @returns Array of registered key strings
6703
6940
  */
6704
6941
  static list(): string[];
6705
6942
  }
6706
6943
 
6944
+ /**
6945
+ * Plugin registry.
6946
+ *
6947
+ * Manages plugin registration, lookup, and meta serialization.
6948
+ * Discovery layer only — runtime dispatch stays in commonMiddleware.ts.
6949
+ */
6950
+ declare class PluginRegistry {
6951
+ private static plugins;
6952
+ /** Register a plugin (overwrites if type conflicts) */
6953
+ static register(plugin: Plugin): void;
6954
+ /** Unregister */
6955
+ static unregister(key: string): boolean;
6956
+ /** Get plugin instance */
6957
+ static get(key: string): Plugin | undefined;
6958
+ /** Check if registered */
6959
+ static has(key: string): boolean;
6960
+ /** List all registered plugin keys */
6961
+ static list(): string[];
6962
+ /** Serialize all registered plugins to API-ready meta list */
6963
+ static listMeta(): PluginMetaOutput[];
6964
+ }
6965
+
6966
+ /**
6967
+ * Serialize a Plugin instance into the API-ready PluginMeta shape.
6968
+ *
6969
+ * Auto-detection:
6970
+ * - tools: meta.tools first, fallback to tryExtractTools
6971
+ * - hasTest: connection.test method exists
6972
+ * - hasDiscover: connection.discover method exists
6973
+ */
6974
+ declare function serializePluginMeta(plugin: Plugin): PluginMetaOutput;
6975
+
6976
+ declare const BUILTIN_PLUGINS: Plugin[];
6977
+
6707
6978
  /**
6708
6979
  * Create middleware that provides widget rendering capabilities.
6709
6980
  *
@@ -6964,4 +7235,15 @@ declare class PersonalAssistantConfig {
6964
7235
  static render(config: AgentConfig, name: string, personality: string): void;
6965
7236
  }
6966
7237
 
6967
- export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, type ConnectAllChannelsOptions, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryA2AApiKeyStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type ResolveAgentFn, type RunSandboxConfig, type RuntimeModelConfig, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, checkEmptyContent, clearEncryptionKeyCache, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, renderTemplate, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, setBindingRegistry, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
7238
+ declare class ConnectionRegistry {
7239
+ private static store;
7240
+ static setStore(store: ConnectionStore): void;
7241
+ static list(type: string, tenantId: string): Promise<ConnectionEntry[]>;
7242
+ static get(type: string, key: string, tenantId: string): Promise<ConnectionEntry | null>;
7243
+ static create(entry: Omit<ConnectionEntry, "id" | "createdAt" | "updatedAt">): Promise<ConnectionEntry>;
7244
+ static update(tenantId: string, type: string, key: string, updates: Partial<ConnectionEntry>): Promise<ConnectionEntry | null>;
7245
+ static delete(tenantId: string, type: string, key: string): Promise<boolean>;
7246
+ private static ensureStore;
7247
+ }
7248
+
7249
+ export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryA2AApiKeyStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type ResolveAgentFn, type RunSandboxConfig, type RuntimeModelConfig, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, removeCollectionVectorStore, renderTemplate, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };