@axiom-lattice/core 2.1.15 → 2.1.17
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 +405 -2
- package/dist/index.d.ts +405 -2
- package/dist/index.js +5961 -3303
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5996 -3353
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/languag
|
|
|
5
5
|
import { BaseLanguageModelInput } from '@langchain/core/language_models/base';
|
|
6
6
|
import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
|
|
7
7
|
import { ChatResult } from '@langchain/core/outputs';
|
|
8
|
-
import { LLMConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, MessageChunk, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext } from '@axiom-lattice/protocols';
|
|
8
|
+
import { LLMConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, MessageChunk, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, ConnectedSandboxConfig } from '@axiom-lattice/protocols';
|
|
9
9
|
import * as protocols from '@axiom-lattice/protocols';
|
|
10
10
|
export { protocols as Protocols };
|
|
11
11
|
export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
|
|
@@ -17,6 +17,8 @@ import { BaseCheckpointSaver } from '@langchain/langgraph-checkpoint';
|
|
|
17
17
|
import { ReplaySubject } from 'rxjs';
|
|
18
18
|
import { Embeddings } from '@langchain/core/embeddings';
|
|
19
19
|
import { VectorStore } from '@langchain/core/vectorstores';
|
|
20
|
+
import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
|
|
21
|
+
import { SandboxClient } from '@agent-infra/sandbox';
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* BaseLatticeManager - 抽象基类,为各种Lattice管理器提供通用功能
|
|
@@ -440,6 +442,12 @@ declare class ToolLatticeManager extends BaseLatticeManager<ToolLattice> {
|
|
|
440
442
|
* 获取所有工具定义
|
|
441
443
|
*/
|
|
442
444
|
getAllToolDefinitions(): ToolDefinition[];
|
|
445
|
+
/**
|
|
446
|
+
* 注册已有的StructuredTool到Lattice
|
|
447
|
+
* @param key Lattice键名
|
|
448
|
+
* @param tool 已有的StructuredTool实例
|
|
449
|
+
*/
|
|
450
|
+
registerExistingTool(key: string, tool: StructuredTool): void;
|
|
443
451
|
/**
|
|
444
452
|
* 验证工具输入参数
|
|
445
453
|
* @param key Lattice键名
|
|
@@ -449,6 +457,7 @@ declare class ToolLatticeManager extends BaseLatticeManager<ToolLattice> {
|
|
|
449
457
|
}
|
|
450
458
|
declare const toolLatticeManager: ToolLatticeManager;
|
|
451
459
|
declare const registerToolLattice: (key: string, config: ToolConfig, executor: ToolExecutor) => void;
|
|
460
|
+
declare const registerExistingTool: (key: string, tool: StructuredTool) => void;
|
|
452
461
|
declare const getToolLattice: (key: string) => ToolLattice | undefined;
|
|
453
462
|
declare const getToolDefinition: (key: string) => ToolConfig;
|
|
454
463
|
declare const getToolClient: (key: string) => StructuredTool<_langchain_core_tools.ToolSchemaBase, any, any, any>;
|
|
@@ -1179,6 +1188,7 @@ declare function describeCronExpression(expression: string): string;
|
|
|
1179
1188
|
type StoreTypeMap = {
|
|
1180
1189
|
thread: ThreadStore;
|
|
1181
1190
|
assistant: AssistantStore;
|
|
1191
|
+
skill: SkillStore;
|
|
1182
1192
|
};
|
|
1183
1193
|
/**
|
|
1184
1194
|
* Store type keys
|
|
@@ -1361,6 +1371,99 @@ declare class InMemoryAssistantStore implements AssistantStore {
|
|
|
1361
1371
|
clear(): void;
|
|
1362
1372
|
}
|
|
1363
1373
|
|
|
1374
|
+
/**
|
|
1375
|
+
* FileSystemSkillStore
|
|
1376
|
+
*
|
|
1377
|
+
* Filesystem-based implementation of SkillStore
|
|
1378
|
+
* Stores each skill as a Markdown file with YAML frontmatter
|
|
1379
|
+
*/
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* FileSystemSkillStore options
|
|
1383
|
+
*/
|
|
1384
|
+
interface FileSystemSkillStoreOptions {
|
|
1385
|
+
/**
|
|
1386
|
+
* Root directory path for storing skills
|
|
1387
|
+
* Can be absolute or relative path (relative to current working directory)
|
|
1388
|
+
* @default "lattice_store/skills"
|
|
1389
|
+
*/
|
|
1390
|
+
rootDir?: string;
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Filesystem-based implementation of SkillStore
|
|
1394
|
+
*/
|
|
1395
|
+
declare class FileSystemSkillStore implements SkillStore {
|
|
1396
|
+
private rootDir;
|
|
1397
|
+
constructor(options?: FileSystemSkillStoreOptions);
|
|
1398
|
+
/**
|
|
1399
|
+
* Ensure the root directory exists
|
|
1400
|
+
*/
|
|
1401
|
+
private ensureDirectoryExists;
|
|
1402
|
+
/**
|
|
1403
|
+
* Get directory path for a skill name
|
|
1404
|
+
* Name is used as the directory name, and SKILL.md is the fixed filename
|
|
1405
|
+
*/
|
|
1406
|
+
private getSkillDirectoryPath;
|
|
1407
|
+
/**
|
|
1408
|
+
* Get file path for a skill name
|
|
1409
|
+
* File is always named SKILL.md inside the name directory
|
|
1410
|
+
*/
|
|
1411
|
+
private getSkillFilePath;
|
|
1412
|
+
/**
|
|
1413
|
+
* Read skill from file
|
|
1414
|
+
* Uses name as the directory name and reads SKILL.md from it
|
|
1415
|
+
*/
|
|
1416
|
+
private readSkillFile;
|
|
1417
|
+
/**
|
|
1418
|
+
* Write skill to file
|
|
1419
|
+
* Creates directory with name and writes SKILL.md inside it
|
|
1420
|
+
*/
|
|
1421
|
+
private writeSkillFile;
|
|
1422
|
+
/**
|
|
1423
|
+
* Get all skills
|
|
1424
|
+
*/
|
|
1425
|
+
getAllSkills(): Promise<Skill[]>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Get skill by ID
|
|
1428
|
+
* ID should equal name (name is used for path addressing)
|
|
1429
|
+
*/
|
|
1430
|
+
getSkillById(id: string): Promise<Skill | null>;
|
|
1431
|
+
/**
|
|
1432
|
+
* Create a new skill
|
|
1433
|
+
* id should equal name (name is used for path addressing)
|
|
1434
|
+
*/
|
|
1435
|
+
createSkill(id: string, data: CreateSkillRequest): Promise<Skill>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Update an existing skill
|
|
1438
|
+
*/
|
|
1439
|
+
updateSkill(id: string, updates: Partial<CreateSkillRequest>): Promise<Skill | null>;
|
|
1440
|
+
/**
|
|
1441
|
+
* Delete a skill by ID
|
|
1442
|
+
* Deletes the entire directory (name is the directory name)
|
|
1443
|
+
*/
|
|
1444
|
+
deleteSkill(id: string): Promise<boolean>;
|
|
1445
|
+
/**
|
|
1446
|
+
* Check if skill exists
|
|
1447
|
+
*/
|
|
1448
|
+
hasSkill(id: string): Promise<boolean>;
|
|
1449
|
+
/**
|
|
1450
|
+
* Search skills by metadata
|
|
1451
|
+
*/
|
|
1452
|
+
searchByMetadata(metadataKey: string, metadataValue: string): Promise<Skill[]>;
|
|
1453
|
+
/**
|
|
1454
|
+
* Filter skills by compatibility
|
|
1455
|
+
*/
|
|
1456
|
+
filterByCompatibility(compatibility: string): Promise<Skill[]>;
|
|
1457
|
+
/**
|
|
1458
|
+
* Filter skills by license
|
|
1459
|
+
*/
|
|
1460
|
+
filterByLicense(license: string): Promise<Skill[]>;
|
|
1461
|
+
/**
|
|
1462
|
+
* Get sub-skills of a parent skill
|
|
1463
|
+
*/
|
|
1464
|
+
getSubSkills(parentSkillName: string): Promise<Skill[]>;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1364
1467
|
/**
|
|
1365
1468
|
* Embeddings Lattice Interface
|
|
1366
1469
|
* Defines the structure of an embeddings lattice entry
|
|
@@ -1629,6 +1732,306 @@ declare class ConsoleLoggerClient implements LoggerClient {
|
|
|
1629
1732
|
child(options: Partial<LoggerConfig>): LoggerClient;
|
|
1630
1733
|
}
|
|
1631
1734
|
|
|
1735
|
+
/**
|
|
1736
|
+
* SkillLatticeManager
|
|
1737
|
+
*
|
|
1738
|
+
* Skill Lattice manager for registering and managing skill components
|
|
1739
|
+
*/
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Skill Lattice interface
|
|
1743
|
+
*/
|
|
1744
|
+
interface SkillLattice {
|
|
1745
|
+
key: string;
|
|
1746
|
+
config: SkillConfig;
|
|
1747
|
+
client: SkillClient | null;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* SkillLatticeManager - Singleton skill Lattice manager
|
|
1751
|
+
* Responsible for registering and managing various skill Lattices
|
|
1752
|
+
*/
|
|
1753
|
+
declare class SkillLatticeManager extends BaseLatticeManager<SkillLattice> {
|
|
1754
|
+
private static _instance;
|
|
1755
|
+
private storeKey?;
|
|
1756
|
+
/**
|
|
1757
|
+
* Get SkillLatticeManager singleton instance
|
|
1758
|
+
*/
|
|
1759
|
+
static getInstance(): SkillLatticeManager;
|
|
1760
|
+
/**
|
|
1761
|
+
* Get Lattice type prefix
|
|
1762
|
+
*/
|
|
1763
|
+
protected getLatticeType(): string;
|
|
1764
|
+
/**
|
|
1765
|
+
* Configure store for persistence
|
|
1766
|
+
* @param storeKey Store key name registered in StoreLatticeManager
|
|
1767
|
+
*/
|
|
1768
|
+
configureStore(storeKey: string): void;
|
|
1769
|
+
/**
|
|
1770
|
+
* Get configured store
|
|
1771
|
+
* @returns SkillStore instance if configured, null otherwise
|
|
1772
|
+
*/
|
|
1773
|
+
private getStore;
|
|
1774
|
+
/**
|
|
1775
|
+
* Inject store into client if client supports it
|
|
1776
|
+
* @param client Skill client instance
|
|
1777
|
+
* @param store Store instance to inject
|
|
1778
|
+
*/
|
|
1779
|
+
private injectStoreIntoClient;
|
|
1780
|
+
/**
|
|
1781
|
+
* Register a skill Lattice
|
|
1782
|
+
* @param key Lattice key name
|
|
1783
|
+
* @param config Skill configuration
|
|
1784
|
+
* @param client Optional skill client implementation
|
|
1785
|
+
*/
|
|
1786
|
+
registerLattice(key: string, config: SkillConfig, client?: SkillClient): Promise<void>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Get skill Lattice by key
|
|
1789
|
+
* @param key Lattice key name
|
|
1790
|
+
*/
|
|
1791
|
+
getSkillLattice(key: string): SkillLattice | undefined;
|
|
1792
|
+
/**
|
|
1793
|
+
* Get all skill Lattices from store
|
|
1794
|
+
* Always reads from the configured store and merges with in-memory clients
|
|
1795
|
+
*/
|
|
1796
|
+
getAllLattices(): Promise<SkillLattice[]>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Check if Lattice exists
|
|
1799
|
+
* @param key Lattice key name
|
|
1800
|
+
*/
|
|
1801
|
+
hasLattice(key: string): boolean;
|
|
1802
|
+
/**
|
|
1803
|
+
* Remove Lattice
|
|
1804
|
+
* @param key Lattice key name
|
|
1805
|
+
*/
|
|
1806
|
+
removeLattice(key: string): Promise<boolean>;
|
|
1807
|
+
/**
|
|
1808
|
+
* Clear all Lattices
|
|
1809
|
+
*/
|
|
1810
|
+
clearLattices(): void;
|
|
1811
|
+
/**
|
|
1812
|
+
* Get Lattice count
|
|
1813
|
+
*/
|
|
1814
|
+
getLatticeCount(): number;
|
|
1815
|
+
/**
|
|
1816
|
+
* Get Lattice key name list
|
|
1817
|
+
*/
|
|
1818
|
+
getLatticeKeys(): string[];
|
|
1819
|
+
/**
|
|
1820
|
+
* Get skill configuration
|
|
1821
|
+
* @param key Lattice key name
|
|
1822
|
+
*/
|
|
1823
|
+
getSkillConfig(key: string): SkillConfig;
|
|
1824
|
+
/**
|
|
1825
|
+
* Get skill client
|
|
1826
|
+
* Ensures client has store access if store is configured
|
|
1827
|
+
* @param key Lattice key name
|
|
1828
|
+
*/
|
|
1829
|
+
getSkillClient(key: string): SkillClient | null;
|
|
1830
|
+
/**
|
|
1831
|
+
* Get all skill configurations from store
|
|
1832
|
+
* Always reads from the configured store, not from memory
|
|
1833
|
+
*/
|
|
1834
|
+
getAllSkillConfigs(): Promise<SkillConfig[]>;
|
|
1835
|
+
/**
|
|
1836
|
+
* Search skills by metadata
|
|
1837
|
+
* @param metadataKey Metadata key to search for
|
|
1838
|
+
* @param metadataValue Metadata value to match
|
|
1839
|
+
*/
|
|
1840
|
+
searchByMetadata(metadataKey: string, metadataValue: string): Promise<SkillLattice[]>;
|
|
1841
|
+
/**
|
|
1842
|
+
* Filter skills by compatibility
|
|
1843
|
+
* @param compatibility Compatibility string to filter by
|
|
1844
|
+
*/
|
|
1845
|
+
filterByCompatibility(compatibility: string): Promise<SkillLattice[]>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Filter skills by license
|
|
1848
|
+
* @param license License string to filter by
|
|
1849
|
+
*/
|
|
1850
|
+
filterByLicense(license: string): Promise<SkillLattice[]>;
|
|
1851
|
+
/**
|
|
1852
|
+
* Load skills from configured store
|
|
1853
|
+
* This method loads all skills from the store and registers them in memory
|
|
1854
|
+
*/
|
|
1855
|
+
loadFromStore(): Promise<void>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Update skill in store
|
|
1858
|
+
* @param key Skill key
|
|
1859
|
+
* @param updates Partial skill data to update
|
|
1860
|
+
*/
|
|
1861
|
+
updateSkillInStore(key: string, updates: Partial<SkillConfig>): Promise<void>;
|
|
1862
|
+
}
|
|
1863
|
+
declare const skillLatticeManager: SkillLatticeManager;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Skill name validator
|
|
1867
|
+
* Validates skill names according to the specification:
|
|
1868
|
+
* - 1-64 characters
|
|
1869
|
+
* - Lowercase alphanumeric with single hyphen separators
|
|
1870
|
+
* - Not start or end with -
|
|
1871
|
+
* - Not contain consecutive --
|
|
1872
|
+
* - Match the directory name that contains SKILL.md
|
|
1873
|
+
* - Regex: ^[a-z0-9]+(-[a-z0-9]+)*$
|
|
1874
|
+
*/
|
|
1875
|
+
/**
|
|
1876
|
+
* Validate skill name
|
|
1877
|
+
* @param name Skill name to validate
|
|
1878
|
+
* @returns true if valid, false otherwise
|
|
1879
|
+
*/
|
|
1880
|
+
declare function isValidSkillName(name: string): boolean;
|
|
1881
|
+
/**
|
|
1882
|
+
* Validate skill name and throw error if invalid
|
|
1883
|
+
* @param name Skill name to validate
|
|
1884
|
+
* @throws Error if name is invalid
|
|
1885
|
+
*/
|
|
1886
|
+
declare function validateSkillName(name: string): void;
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* McpLatticeManager
|
|
1890
|
+
*
|
|
1891
|
+
* MCP Lattice Manager - Manages MCP client connections using MultiServerMCPClient
|
|
1892
|
+
* Follows the singleton pattern for global access
|
|
1893
|
+
*/
|
|
1894
|
+
|
|
1895
|
+
interface McpServerInfo {
|
|
1896
|
+
name: string;
|
|
1897
|
+
connection: Connection;
|
|
1898
|
+
}
|
|
1899
|
+
interface McpLatticeInterface {
|
|
1900
|
+
client: MultiServerMCPClient;
|
|
1901
|
+
servers: Map<string, McpServerInfo>;
|
|
1902
|
+
}
|
|
1903
|
+
declare class McpLatticeManager extends BaseLatticeManager<McpLatticeInterface> {
|
|
1904
|
+
private static _instance;
|
|
1905
|
+
private client;
|
|
1906
|
+
private servers;
|
|
1907
|
+
static getInstance(): McpLatticeManager;
|
|
1908
|
+
protected getLatticeType(): string;
|
|
1909
|
+
registerServers(servers: McpServerInfo[]): void;
|
|
1910
|
+
addServer(name: string, connection: Connection): void;
|
|
1911
|
+
removeServer(name: string): boolean;
|
|
1912
|
+
connect(): Promise<void>;
|
|
1913
|
+
disconnect(): Promise<void>;
|
|
1914
|
+
isConnected(): boolean;
|
|
1915
|
+
getAllTools(): Promise<any[]>;
|
|
1916
|
+
getServerNames(): string[];
|
|
1917
|
+
hasServer(name: string): boolean;
|
|
1918
|
+
/**
|
|
1919
|
+
* 将 MCP 工具注册到 Tool Lattice
|
|
1920
|
+
* @param prefix 工具键名前缀,用于区分不同服务器的工具
|
|
1921
|
+
*/
|
|
1922
|
+
registerToolsToToolLattice(prefix?: string): Promise<void>;
|
|
1923
|
+
}
|
|
1924
|
+
declare const mcpManager: McpLatticeManager;
|
|
1925
|
+
|
|
1926
|
+
interface SandboxManagerProtocol {
|
|
1927
|
+
createSandbox(sandboxName: string): Promise<SandboxClient>;
|
|
1928
|
+
deleteSandbox(sandboxName: string): Promise<void>;
|
|
1929
|
+
getSandbox(sandboxName: string): Promise<SandboxClient>;
|
|
1930
|
+
listSandboxes(): Promise<SandboxClient[]>;
|
|
1931
|
+
getSandboxStatus(sandboxName: string): Promise<string>;
|
|
1932
|
+
getSandboxFromConfig(config: RunSandboxConfig): Promise<SandboxClient>;
|
|
1933
|
+
}
|
|
1934
|
+
interface RunSandboxConfig {
|
|
1935
|
+
assistant_id: string;
|
|
1936
|
+
sandboxConfig: ConnectedSandboxConfig;
|
|
1937
|
+
thread_id: string;
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* SandboxLatticeManager
|
|
1942
|
+
*
|
|
1943
|
+
* Sandbox Lattice manager for registering and managing sandbox services
|
|
1944
|
+
* Supports creating, deleting, and managing sandbox instances
|
|
1945
|
+
*/
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* SandboxLatticeManager - Singleton sandbox Lattice manager
|
|
1949
|
+
* Responsible for registering and managing various sandbox service Lattices
|
|
1950
|
+
*/
|
|
1951
|
+
declare class SandboxLatticeManager extends BaseLatticeManager<SandboxManagerProtocol> {
|
|
1952
|
+
private static _instance;
|
|
1953
|
+
/**
|
|
1954
|
+
* Get SandboxLatticeManager singleton instance
|
|
1955
|
+
*/
|
|
1956
|
+
static getInstance(): SandboxLatticeManager;
|
|
1957
|
+
/**
|
|
1958
|
+
* Get Lattice type prefix
|
|
1959
|
+
*/
|
|
1960
|
+
protected getLatticeType(): string;
|
|
1961
|
+
/**
|
|
1962
|
+
* Register sandbox Lattice
|
|
1963
|
+
* @param key Lattice key name
|
|
1964
|
+
* @param manager Optional sandbox manager. If not provided, will create a default one.
|
|
1965
|
+
* @param baseURL Base URL for sandbox service (used when creating default manager)
|
|
1966
|
+
*/
|
|
1967
|
+
registerLattice(key: string, config: {
|
|
1968
|
+
manager?: SandboxManagerProtocol;
|
|
1969
|
+
baseURL?: string;
|
|
1970
|
+
}): void;
|
|
1971
|
+
/**
|
|
1972
|
+
* Get SandboxLattice
|
|
1973
|
+
* @param key Lattice key name
|
|
1974
|
+
*/
|
|
1975
|
+
getSandboxLattice(key: string): SandboxManagerProtocol;
|
|
1976
|
+
/**
|
|
1977
|
+
* Get all Lattices
|
|
1978
|
+
*/
|
|
1979
|
+
getAllLattices(): SandboxManagerProtocol[];
|
|
1980
|
+
/**
|
|
1981
|
+
* Check if Lattice exists
|
|
1982
|
+
* @param key Lattice key name
|
|
1983
|
+
*/
|
|
1984
|
+
hasLattice(key: string): boolean;
|
|
1985
|
+
/**
|
|
1986
|
+
* Remove Lattice
|
|
1987
|
+
* @param key Lattice key name
|
|
1988
|
+
*/
|
|
1989
|
+
removeLattice(key: string): boolean;
|
|
1990
|
+
/**
|
|
1991
|
+
* Clear all Lattices
|
|
1992
|
+
*/
|
|
1993
|
+
clearLattices(): void;
|
|
1994
|
+
/**
|
|
1995
|
+
* Get Lattice count
|
|
1996
|
+
*/
|
|
1997
|
+
getLatticeCount(): number;
|
|
1998
|
+
/**
|
|
1999
|
+
* Get Lattice key list
|
|
2000
|
+
*/
|
|
2001
|
+
getLatticeKeys(): string[];
|
|
2002
|
+
}
|
|
2003
|
+
declare const sandboxLatticeManager: SandboxLatticeManager;
|
|
2004
|
+
declare const getSandBoxManager: (key?: string) => SandboxManagerProtocol;
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* Sandbox name normalization utility
|
|
2008
|
+
*
|
|
2009
|
+
* Normalizes sandbox names to comply with RFC 1123 subdomain naming requirements:
|
|
2010
|
+
* - Only lowercase alphanumeric characters, '-' or '.'
|
|
2011
|
+
* - Must start and end with an alphanumeric character
|
|
2012
|
+
* - No underscores or other special characters
|
|
2013
|
+
*/
|
|
2014
|
+
/**
|
|
2015
|
+
* Normalize a sandbox name to be RFC 1123 compliant
|
|
2016
|
+
*
|
|
2017
|
+
* @param name - The sandbox name to normalize
|
|
2018
|
+
* @returns Normalized sandbox name that complies with RFC 1123 subdomain rules
|
|
2019
|
+
*
|
|
2020
|
+
* @example
|
|
2021
|
+
* normalizeSandboxName("sandbox_agent") // returns "sandbox-agent"
|
|
2022
|
+
* normalizeSandboxName("My-Sandbox") // returns "my-sandbox"
|
|
2023
|
+
* normalizeSandboxName("test.sandbox") // returns "test.sandbox"
|
|
2024
|
+
* normalizeSandboxName("_invalid_") // returns "invalid"
|
|
2025
|
+
*/
|
|
2026
|
+
declare function normalizeSandboxName(name: string): string;
|
|
2027
|
+
/**
|
|
2028
|
+
* Validate if a sandbox name is RFC 1123 compliant
|
|
2029
|
+
*
|
|
2030
|
+
* @param name - The sandbox name to validate
|
|
2031
|
+
* @returns true if the name is valid, false otherwise
|
|
2032
|
+
*/
|
|
2033
|
+
declare function isValidSandboxName(name: string): boolean;
|
|
2034
|
+
|
|
1632
2035
|
/**
|
|
1633
2036
|
* Event bus service
|
|
1634
2037
|
* Used for event publishing and subscription between internal system components
|
|
@@ -1686,4 +2089,4 @@ declare class AgentManager {
|
|
|
1686
2089
|
|
|
1687
2090
|
declare const AGENT_TASK_EVENT = "agent:execute";
|
|
1688
2091
|
|
|
1689
|
-
export { AGENT_TASK_EVENT, type AgentClient, type AgentLattice, AgentLatticeManager, AgentManager, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, ConsoleLoggerClient, type CronFields, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryThreadStore, type LoggerLattice, LoggerLatticeManager, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, PinoLoggerClient, PostgresDatabase, type QueryResult, type QueueLattice, QueueLatticeManager, type ScheduleLattice, ScheduleLatticeManager, SqlDatabaseManager, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type TableInfo, type TableSchema, type ThreadBuffer, type ThreadBufferConfig, ThreadStatus, type ToolDefinition, type ToolLattice, ToolLatticeManager, type VectorStoreLatticeInterface, VectorStoreLatticeManager, agentLatticeManager, describeCronExpression, embeddingsLatticeManager, eventBus, eventBus as eventBusDefault, getAgentClient, getAgentConfig, getAgentLattice, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, hasChunkBuffer, isValidCronExpression, loggerLatticeManager, modelLatticeManager, parseCronExpression, queueLatticeManager, registerAgentLattice, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, scheduleLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, validateAgentInput, validateToolInput, vectorStoreLatticeManager };
|
|
2092
|
+
export { AGENT_TASK_EVENT, type AgentClient, type AgentLattice, AgentLatticeManager, AgentManager, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, ConsoleLoggerClient, type CronFields, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, FileSystemSkillStore, type FileSystemSkillStoreOptions, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryThreadStore, type LoggerLattice, LoggerLatticeManager, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, PinoLoggerClient, PostgresDatabase, type QueryResult, type QueueLattice, QueueLatticeManager, type RunSandboxConfig, SandboxLatticeManager, type SandboxManagerProtocol, type ScheduleLattice, ScheduleLatticeManager, type SkillLattice, SkillLatticeManager, SqlDatabaseManager, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type TableInfo, type TableSchema, type ThreadBuffer, type ThreadBufferConfig, ThreadStatus, type ToolDefinition, type ToolLattice, ToolLatticeManager, type VectorStoreLatticeInterface, VectorStoreLatticeManager, agentLatticeManager, describeCronExpression, embeddingsLatticeManager, eventBus, eventBus as eventBusDefault, getAgentClient, getAgentConfig, getAgentLattice, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, hasChunkBuffer, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, queueLatticeManager, registerAgentLattice, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, validateAgentInput, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|