@axiom-lattice/core 2.1.74 → 2.1.76
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/README.md +93 -110
- package/dist/index.d.mts +40 -24
- package/dist/index.d.ts +40 -24
- package/dist/index.js +186 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +185 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,149 +1,132 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @axiom-lattice/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Core agent framework providing lattice managers for models, tools, agents, memory, stores, and more.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Store Configuration
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- 工具格子管理 (ToolLatticeManager)
|
|
9
|
-
- 代理格子管理 (AgentLatticeManager)
|
|
10
|
-
- 记忆格子管理 (MemoryLatticeManager)
|
|
11
|
-
- 流式缓冲管理 (ChunkBufferLatticeManager)
|
|
12
|
-
- DeepAgent 实现
|
|
13
|
-
- 工具类和辅助函数
|
|
7
|
+
### `configureStores`
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
Unified store registration that replaces the manual `new → initialize → remove → register` boilerplate.
|
|
10
|
+
Handles `StoreLatticeManager`, `ScheduleLatticeManager`, and `MemoryLatticeManager` through a single call.
|
|
16
11
|
|
|
17
|
-
```
|
|
18
|
-
|
|
12
|
+
```typescript
|
|
13
|
+
import { configureStores } from "@axiom-lattice/core";
|
|
14
|
+
import { createPgStoreConfig } from "@axiom-lattice/pg-stores";
|
|
15
|
+
import { PostgresSaver } from "@langchain/langgraph-checkpoint-postgres";
|
|
16
|
+
|
|
17
|
+
// One connection string creates all PG store instances
|
|
18
|
+
const stores = createPgStoreConfig(process.env.DATABASE_URL);
|
|
19
|
+
|
|
20
|
+
// One call registers all stores across three managers
|
|
21
|
+
await configureStores({
|
|
22
|
+
...stores,
|
|
23
|
+
checkpoint: PostgresSaver.fromConnString(process.env.DATABASE_URL),
|
|
24
|
+
}, { autoDisposeStores: true });
|
|
19
25
|
```
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
### Supported store keys
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
| Key | Registered via |
|
|
30
|
+
|-----|---------------|
|
|
31
|
+
| `thread`, `assistant`, `workspace`, `project`, `database`, `metrics`, `mcp`, `user`, `tenant`, `userTenantLink`, `threadMessageQueue`, `workflowTracking`, `eval`, `channelInstallation`, `channelBinding`, `skill` | `StoreLatticeManager` |
|
|
32
|
+
| `schedule` | `ScheduleLatticeManager` (auto-configured as POSTGRES) |
|
|
33
|
+
| `checkpoint` | `MemoryLatticeManager` (accepts any CheckpointSaver) |
|
|
26
34
|
|
|
27
|
-
|
|
35
|
+
### Behavior
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
pnpm test
|
|
31
|
-
```
|
|
37
|
+
For each store entry:
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
1. Calls `store.initialize()` if the method exists (skipped if it requires arguments)
|
|
40
|
+
2. Removes any existing `"default"` registration
|
|
41
|
+
3. Registers the new store under `"default"`
|
|
42
|
+
4. Tracks `store.dispose` for cleanup
|
|
34
43
|
|
|
35
|
-
###
|
|
44
|
+
### Options
|
|
36
45
|
|
|
37
46
|
```typescript
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
//
|
|
41
|
-
|
|
47
|
+
interface ConfigureStoresOptions {
|
|
48
|
+
autoDisposeStores?: boolean; // Register SIGINT/SIGTERM handlers for cleanup
|
|
49
|
+
customStores?: Record<string, object>; // Register custom store types
|
|
50
|
+
}
|
|
42
51
|
```
|
|
43
52
|
|
|
44
|
-
|
|
53
|
+
Returns a `dispose` function for manual cleanup regardless of `autoDisposeStores`.
|
|
45
54
|
|
|
46
|
-
|
|
47
|
-
import {
|
|
48
|
-
InMemoryChunkBuffer,
|
|
49
|
-
registerChunkBuffer
|
|
50
|
-
} from "@axiom-lattice/core";
|
|
51
|
-
|
|
52
|
-
// Create buffer with 30-minute TTL and optional periodic cleanup
|
|
53
|
-
const buffer = new InMemoryChunkBuffer({
|
|
54
|
-
ttl: 30 * 60 * 1000, // 30 minutes
|
|
55
|
-
cleanupInterval: 5 * 60 * 1000 // Clean every 5 minutes (optional)
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// Register in Lattice system
|
|
59
|
-
registerChunkBuffer('default', buffer);
|
|
55
|
+
### Custom stores
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
await buffer.addChunk('thread-123', 'msg-1', 'Hello ');
|
|
63
|
-
await buffer.addChunk('thread-123', 'msg-1', 'world!');
|
|
64
|
-
await buffer.addChunk('thread-123', 'msg-2', ' How are you?');
|
|
57
|
+
Register custom store implementations that follow the same `initialize()` / `dispose()` pattern:
|
|
65
58
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// Check thread status
|
|
71
|
-
const isActive = await buffer.isThreadActive('thread-123'); // true
|
|
59
|
+
```ts
|
|
60
|
+
interface MyCustomStore {
|
|
61
|
+
getData(): Promise<string>;
|
|
62
|
+
}
|
|
72
63
|
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
class PostgreSQLMyCustomStore implements MyCustomStore {
|
|
65
|
+
async initialize() { /* run migrations */ }
|
|
66
|
+
async dispose() { /* close pool */ }
|
|
67
|
+
async getData() { return "from pg"; }
|
|
68
|
+
}
|
|
69
|
+
```
|
|
75
70
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
```ts
|
|
72
|
+
await configureStores({
|
|
73
|
+
thread: new PostgreSQLThreadStore(opts),
|
|
74
|
+
}, {
|
|
75
|
+
customStores: {
|
|
76
|
+
myCustom: new PostgreSQLMyCustomStore({ poolConfig }),
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
79
|
|
|
80
|
-
//
|
|
81
|
-
|
|
80
|
+
// Consume via StoreLatticeManager
|
|
81
|
+
const { store } = getStoreLattice("default", "myCustom");
|
|
82
|
+
const customStore = store as MyCustomStore;
|
|
82
83
|
```
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
### Consumer pattern
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
- `src/model_lattice/`: 模型格子相关实现
|
|
88
|
-
- `src/tool_lattice/`: 工具格子相关实现
|
|
89
|
-
- `src/agent_lattice/`: 代理格子相关实现
|
|
90
|
-
- `src/memory_lattice/`: 记忆格子相关实现
|
|
91
|
-
- `src/chunk_buffer_lattice/`: 流式缓冲管理实现
|
|
92
|
-
- `src/deep_agent/`: DeepAgent 实现
|
|
93
|
-
- `src/util/`: 工具类和辅助函数
|
|
87
|
+
Components that need stores read them directly from `StoreLatticeManager` — no `setConfigStore` required:
|
|
94
88
|
|
|
95
|
-
|
|
89
|
+
```typescript
|
|
90
|
+
// SqlDatabaseManager reads database configs lazily from the store lattice
|
|
91
|
+
const db = await sqlDatabaseManager.getDatabase(tenantId, "main-db");
|
|
96
92
|
|
|
97
|
-
|
|
93
|
+
// MetricsServerManager loads configs on first access
|
|
94
|
+
const client = await metricsServerManager.getClient(tenantId, "prometheus");
|
|
95
|
+
const servers = await metricsServerManager.getServerKeys(tenantId);
|
|
96
|
+
```
|
|
98
97
|
|
|
99
|
-
|
|
98
|
+
---
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
2. **Sequential Chunk Storage**: Chunks 按到达顺序存储,无需唯一 ID
|
|
103
|
-
3. **Explicit Status Management**: Thread 状态通过显式调用管理(active/completed/aborted)
|
|
104
|
-
4. **Hybrid Cleanup Strategy**:
|
|
105
|
-
- 懒清理(Lazy Cleanup): 访问时自动清除过期 thread
|
|
106
|
-
- 可选周期清理: 后台定时器定期清理过期 thread
|
|
107
|
-
5. **TTL Auto-Extension**: 有新 chunk 加入时自动延长 TTL
|
|
100
|
+
## Other Lattice Managers
|
|
108
101
|
|
|
109
|
-
###
|
|
102
|
+
### Model Lattice
|
|
110
103
|
|
|
111
104
|
```typescript
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
abortThread(threadId) // Mark thread as aborted
|
|
121
|
-
isThreadActive(threadId) // Check if thread is active
|
|
122
|
-
getThreadStatus(threadId) // Get thread status
|
|
123
|
-
|
|
124
|
-
// Thread lifecycle
|
|
125
|
-
clearThread(threadId) // Remove specific thread
|
|
126
|
-
cleanupExpiredThreads() // Manual cleanup of expired threads
|
|
127
|
-
extendThreadTTL(threadId, additionalMs) // Extend thread expiration time
|
|
128
|
-
|
|
129
|
-
// Query operations
|
|
130
|
-
getActiveThreads() // Get all active thread IDs
|
|
131
|
-
getAllThreads() // Get all thread IDs
|
|
132
|
-
getStats() // Get buffer statistics
|
|
105
|
+
import { registerModelLattice } from "@axiom-lattice/core";
|
|
106
|
+
|
|
107
|
+
registerModelLattice("default", {
|
|
108
|
+
model: "gpt-4o",
|
|
109
|
+
provider: "openai",
|
|
110
|
+
streaming: true,
|
|
111
|
+
apiKeyEnvName: "OPENAI_API_KEY",
|
|
112
|
+
});
|
|
133
113
|
```
|
|
134
114
|
|
|
135
|
-
###
|
|
115
|
+
### ChunkBuffer
|
|
136
116
|
|
|
137
117
|
```typescript
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
118
|
+
import { InMemoryChunkBuffer, registerChunkBuffer } from "@axiom-lattice/core";
|
|
119
|
+
|
|
120
|
+
const buffer = new InMemoryChunkBuffer({ ttl: 30 * 60 * 1000 });
|
|
121
|
+
registerChunkBuffer("default", buffer);
|
|
142
122
|
```
|
|
143
123
|
|
|
144
|
-
|
|
124
|
+
## Directory Structure
|
|
145
125
|
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
126
|
+
- `src/store_lattice/` — Store lattice manager + configureStores
|
|
127
|
+
- `src/model_lattice/` — LLM provider abstractions
|
|
128
|
+
- `src/tool_lattice/` — Tool implementations (SQL, metrics, etc.)
|
|
129
|
+
- `src/agent_lattice/` — Agent definitions and builders
|
|
130
|
+
- `src/memory_lattice/` — Context/memory management
|
|
131
|
+
- `src/schedule_lattice/` — Scheduled task management
|
|
132
|
+
- `src/sandbox_lattice/` — Code execution sandbox providers
|
package/dist/index.d.mts
CHANGED
|
@@ -424,7 +424,6 @@ declare class SqlDatabaseManager {
|
|
|
424
424
|
private static instance;
|
|
425
425
|
private databases;
|
|
426
426
|
private defaultDatabaseKeys;
|
|
427
|
-
private configStore;
|
|
428
427
|
private constructor();
|
|
429
428
|
/**
|
|
430
429
|
* Get the singleton instance
|
|
@@ -447,14 +446,9 @@ declare class SqlDatabaseManager {
|
|
|
447
446
|
* @param key - Database key to set as default
|
|
448
447
|
*/
|
|
449
448
|
setDefaultDatabase(tenantId: string, key: string): void;
|
|
450
|
-
/**
|
|
451
|
-
* Set the configuration store for on-demand database loading
|
|
452
|
-
* @param store - The database configuration store
|
|
453
|
-
*/
|
|
454
|
-
setConfigStore(store: _axiom_lattice_protocols.DatabaseConfigStore): void;
|
|
455
449
|
/**
|
|
456
450
|
* Get a database by key for a specific tenant
|
|
457
|
-
* If database is not registered
|
|
451
|
+
* If database is not registered, tries to load from the store lattice
|
|
458
452
|
* @param tenantId - Tenant identifier (required)
|
|
459
453
|
* @param key - Database key (optional, uses default if not provided)
|
|
460
454
|
* @returns ISqlDatabase instance
|
|
@@ -914,11 +908,17 @@ declare class MetricsServerManager {
|
|
|
914
908
|
private clients;
|
|
915
909
|
private configs;
|
|
916
910
|
private defaultServerKeys;
|
|
911
|
+
private _loadingPromise;
|
|
917
912
|
private constructor();
|
|
918
913
|
/**
|
|
919
914
|
* Get the singleton instance
|
|
920
915
|
*/
|
|
921
916
|
static getInstance(): MetricsServerManager;
|
|
917
|
+
/**
|
|
918
|
+
* Ensure configurations are loaded from the store lattice.
|
|
919
|
+
* Uses a promise-lock to prevent concurrent loads.
|
|
920
|
+
*/
|
|
921
|
+
private _ensureLoaded;
|
|
922
922
|
/**
|
|
923
923
|
* Get or create tenant clients map
|
|
924
924
|
*/
|
|
@@ -945,13 +945,13 @@ declare class MetricsServerManager {
|
|
|
945
945
|
* @param tenantId - Tenant identifier
|
|
946
946
|
* @param key - Server key (optional, uses default if not provided)
|
|
947
947
|
*/
|
|
948
|
-
getClient(tenantId: string, key?: string): IMetricsServerClient
|
|
948
|
+
getClient(tenantId: string, key?: string): Promise<IMetricsServerClient>;
|
|
949
949
|
/**
|
|
950
950
|
* Get metrics server configuration by key for a specific tenant
|
|
951
951
|
* @param tenantId - Tenant identifier
|
|
952
952
|
* @param key - Server key (optional, uses default if not provided)
|
|
953
953
|
*/
|
|
954
|
-
getConfig(tenantId: string, key?: string): MetricsServerConfig
|
|
954
|
+
getConfig(tenantId: string, key?: string): Promise<MetricsServerConfig>;
|
|
955
955
|
/**
|
|
956
956
|
* Check if a metrics server is registered for a tenant
|
|
957
957
|
* @param tenantId - Tenant identifier
|
|
@@ -962,11 +962,11 @@ declare class MetricsServerManager {
|
|
|
962
962
|
* Get all registered metrics server keys with their types for a tenant
|
|
963
963
|
* @param tenantId - Tenant identifier
|
|
964
964
|
*/
|
|
965
|
-
getServerKeys(tenantId: string): {
|
|
965
|
+
getServerKeys(tenantId: string): Promise<{
|
|
966
966
|
key: string;
|
|
967
967
|
type: MetricsServerType;
|
|
968
968
|
name?: string;
|
|
969
|
-
}[]
|
|
969
|
+
}[]>;
|
|
970
970
|
/**
|
|
971
971
|
* Remove a metrics server for a tenant
|
|
972
972
|
* @param tenantId - Tenant identifier
|
|
@@ -986,14 +986,6 @@ declare class MetricsServerManager {
|
|
|
986
986
|
* @param tenantId - Tenant identifier
|
|
987
987
|
*/
|
|
988
988
|
loadConfigsFromStore(store: _axiom_lattice_protocols.MetricsServerConfigStore, tenantId: string): Promise<void>;
|
|
989
|
-
/**
|
|
990
|
-
* Load all metrics server configurations from a store
|
|
991
|
-
* across all tenants and register them with this manager
|
|
992
|
-
*
|
|
993
|
-
* @param store - The metrics server configuration store
|
|
994
|
-
* @deprecated Use loadConfigsFromStore with specific tenant instead
|
|
995
|
-
*/
|
|
996
|
-
loadAllConfigsFromStore(store: _axiom_lattice_protocols.MetricsServerConfigStore): Promise<void>;
|
|
997
989
|
}
|
|
998
990
|
declare const metricsServerManager: MetricsServerManager;
|
|
999
991
|
|
|
@@ -1528,6 +1520,8 @@ interface SandboxFileService {
|
|
|
1528
1520
|
downloadFile(params: {
|
|
1529
1521
|
file: string;
|
|
1530
1522
|
}): Promise<Buffer>;
|
|
1523
|
+
deletePath(path: string): Promise<void>;
|
|
1524
|
+
createDirectory(path: string): Promise<void>;
|
|
1531
1525
|
}
|
|
1532
1526
|
interface SandboxShellService {
|
|
1533
1527
|
execCommand(params: {
|
|
@@ -2639,8 +2633,6 @@ interface IMessageQueueStore {
|
|
|
2639
2633
|
removeMessage(messageId: string): Promise<boolean>;
|
|
2640
2634
|
clearMessages(threadId: string): Promise<void>;
|
|
2641
2635
|
markProcessing(messageId: string): Promise<void>;
|
|
2642
|
-
markCompleted(messageId: string): Promise<void>;
|
|
2643
|
-
clearCompletedMessages(threadId: string): Promise<void>;
|
|
2644
2636
|
resetProcessingToPending(threadId: string): Promise<number>;
|
|
2645
2637
|
}
|
|
2646
2638
|
/**
|
|
@@ -2790,6 +2782,32 @@ declare const storeLatticeManager: StoreLatticeManager;
|
|
|
2790
2782
|
declare const registerStoreLattice: <TStoreType extends StoreType>(key: string, type: TStoreType, store: StoreTypeMap[TStoreType]) => void;
|
|
2791
2783
|
declare const getStoreLattice: <TStoreType extends StoreType>(key: string, type: TStoreType) => StoreLattice<TStoreType>;
|
|
2792
2784
|
|
|
2785
|
+
interface ConfigureStoresOptions {
|
|
2786
|
+
autoDisposeStores?: boolean;
|
|
2787
|
+
customStores?: Record<string, object>;
|
|
2788
|
+
}
|
|
2789
|
+
type Store = Partial<{
|
|
2790
|
+
[K in StoreType]: StoreTypeMap[K];
|
|
2791
|
+
}> & {
|
|
2792
|
+
schedule?: object;
|
|
2793
|
+
checkpoint?: object;
|
|
2794
|
+
};
|
|
2795
|
+
/**
|
|
2796
|
+
* Replace stores in the "default" lattice with the given implementations.
|
|
2797
|
+
*
|
|
2798
|
+
* Regular store keys (thread, assistant, etc.) are registered via StoreLatticeManager.
|
|
2799
|
+
* Special keys:
|
|
2800
|
+
* - `schedule`: registered via ScheduleLatticeManager with default POSTGRES type
|
|
2801
|
+
* - `checkpoint`: registered via MemoryLatticeManager (PostgresSaver / any CheckpointSaver)
|
|
2802
|
+
*
|
|
2803
|
+
* For each store: initialize() is called if available, old "default" registration is removed,
|
|
2804
|
+
* and the new store is registered. Stores with dispose() are tracked for cleanup.
|
|
2805
|
+
*
|
|
2806
|
+
* If `autoDisposeStores` is true, SIGINT/SIGTERM handlers call dispose() on exit.
|
|
2807
|
+
* Always returns a dispose function for manual cleanup.
|
|
2808
|
+
*/
|
|
2809
|
+
declare function configureStores(stores: Store, options?: ConfigureStoresOptions): Promise<() => Promise<void>>;
|
|
2810
|
+
|
|
2793
2811
|
/**
|
|
2794
2812
|
* InMemoryThreadStore
|
|
2795
2813
|
*
|
|
@@ -3285,8 +3303,6 @@ declare class InMemoryThreadMessageQueueStore implements IMessageQueueStore {
|
|
|
3285
3303
|
removeMessage(messageId: string): Promise<boolean>;
|
|
3286
3304
|
clearMessages(threadId: string): Promise<void>;
|
|
3287
3305
|
markProcessing(messageId: string): Promise<void>;
|
|
3288
|
-
markCompleted(messageId: string): Promise<void>;
|
|
3289
|
-
clearCompletedMessages(threadId: string): Promise<void>;
|
|
3290
3306
|
resetProcessingToPending(threadId: string): Promise<number>;
|
|
3291
3307
|
}
|
|
3292
3308
|
|
|
@@ -5900,4 +5916,4 @@ interface UnknownToolHandlerConfig {
|
|
|
5900
5916
|
*/
|
|
5901
5917
|
declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
|
|
5902
5918
|
|
|
5903
|
-
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 Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, 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, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, 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, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, 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 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, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, eventBus, eventBus as eventBusDefault, extractFetcherError, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, setBindingRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|
|
5919
|
+
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 Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, 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, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, 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, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, 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 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, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, configureStores, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, eventBus, eventBus as eventBusDefault, extractFetcherError, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, setBindingRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|
package/dist/index.d.ts
CHANGED
|
@@ -424,7 +424,6 @@ declare class SqlDatabaseManager {
|
|
|
424
424
|
private static instance;
|
|
425
425
|
private databases;
|
|
426
426
|
private defaultDatabaseKeys;
|
|
427
|
-
private configStore;
|
|
428
427
|
private constructor();
|
|
429
428
|
/**
|
|
430
429
|
* Get the singleton instance
|
|
@@ -447,14 +446,9 @@ declare class SqlDatabaseManager {
|
|
|
447
446
|
* @param key - Database key to set as default
|
|
448
447
|
*/
|
|
449
448
|
setDefaultDatabase(tenantId: string, key: string): void;
|
|
450
|
-
/**
|
|
451
|
-
* Set the configuration store for on-demand database loading
|
|
452
|
-
* @param store - The database configuration store
|
|
453
|
-
*/
|
|
454
|
-
setConfigStore(store: _axiom_lattice_protocols.DatabaseConfigStore): void;
|
|
455
449
|
/**
|
|
456
450
|
* Get a database by key for a specific tenant
|
|
457
|
-
* If database is not registered
|
|
451
|
+
* If database is not registered, tries to load from the store lattice
|
|
458
452
|
* @param tenantId - Tenant identifier (required)
|
|
459
453
|
* @param key - Database key (optional, uses default if not provided)
|
|
460
454
|
* @returns ISqlDatabase instance
|
|
@@ -914,11 +908,17 @@ declare class MetricsServerManager {
|
|
|
914
908
|
private clients;
|
|
915
909
|
private configs;
|
|
916
910
|
private defaultServerKeys;
|
|
911
|
+
private _loadingPromise;
|
|
917
912
|
private constructor();
|
|
918
913
|
/**
|
|
919
914
|
* Get the singleton instance
|
|
920
915
|
*/
|
|
921
916
|
static getInstance(): MetricsServerManager;
|
|
917
|
+
/**
|
|
918
|
+
* Ensure configurations are loaded from the store lattice.
|
|
919
|
+
* Uses a promise-lock to prevent concurrent loads.
|
|
920
|
+
*/
|
|
921
|
+
private _ensureLoaded;
|
|
922
922
|
/**
|
|
923
923
|
* Get or create tenant clients map
|
|
924
924
|
*/
|
|
@@ -945,13 +945,13 @@ declare class MetricsServerManager {
|
|
|
945
945
|
* @param tenantId - Tenant identifier
|
|
946
946
|
* @param key - Server key (optional, uses default if not provided)
|
|
947
947
|
*/
|
|
948
|
-
getClient(tenantId: string, key?: string): IMetricsServerClient
|
|
948
|
+
getClient(tenantId: string, key?: string): Promise<IMetricsServerClient>;
|
|
949
949
|
/**
|
|
950
950
|
* Get metrics server configuration by key for a specific tenant
|
|
951
951
|
* @param tenantId - Tenant identifier
|
|
952
952
|
* @param key - Server key (optional, uses default if not provided)
|
|
953
953
|
*/
|
|
954
|
-
getConfig(tenantId: string, key?: string): MetricsServerConfig
|
|
954
|
+
getConfig(tenantId: string, key?: string): Promise<MetricsServerConfig>;
|
|
955
955
|
/**
|
|
956
956
|
* Check if a metrics server is registered for a tenant
|
|
957
957
|
* @param tenantId - Tenant identifier
|
|
@@ -962,11 +962,11 @@ declare class MetricsServerManager {
|
|
|
962
962
|
* Get all registered metrics server keys with their types for a tenant
|
|
963
963
|
* @param tenantId - Tenant identifier
|
|
964
964
|
*/
|
|
965
|
-
getServerKeys(tenantId: string): {
|
|
965
|
+
getServerKeys(tenantId: string): Promise<{
|
|
966
966
|
key: string;
|
|
967
967
|
type: MetricsServerType;
|
|
968
968
|
name?: string;
|
|
969
|
-
}[]
|
|
969
|
+
}[]>;
|
|
970
970
|
/**
|
|
971
971
|
* Remove a metrics server for a tenant
|
|
972
972
|
* @param tenantId - Tenant identifier
|
|
@@ -986,14 +986,6 @@ declare class MetricsServerManager {
|
|
|
986
986
|
* @param tenantId - Tenant identifier
|
|
987
987
|
*/
|
|
988
988
|
loadConfigsFromStore(store: _axiom_lattice_protocols.MetricsServerConfigStore, tenantId: string): Promise<void>;
|
|
989
|
-
/**
|
|
990
|
-
* Load all metrics server configurations from a store
|
|
991
|
-
* across all tenants and register them with this manager
|
|
992
|
-
*
|
|
993
|
-
* @param store - The metrics server configuration store
|
|
994
|
-
* @deprecated Use loadConfigsFromStore with specific tenant instead
|
|
995
|
-
*/
|
|
996
|
-
loadAllConfigsFromStore(store: _axiom_lattice_protocols.MetricsServerConfigStore): Promise<void>;
|
|
997
989
|
}
|
|
998
990
|
declare const metricsServerManager: MetricsServerManager;
|
|
999
991
|
|
|
@@ -1528,6 +1520,8 @@ interface SandboxFileService {
|
|
|
1528
1520
|
downloadFile(params: {
|
|
1529
1521
|
file: string;
|
|
1530
1522
|
}): Promise<Buffer>;
|
|
1523
|
+
deletePath(path: string): Promise<void>;
|
|
1524
|
+
createDirectory(path: string): Promise<void>;
|
|
1531
1525
|
}
|
|
1532
1526
|
interface SandboxShellService {
|
|
1533
1527
|
execCommand(params: {
|
|
@@ -2639,8 +2633,6 @@ interface IMessageQueueStore {
|
|
|
2639
2633
|
removeMessage(messageId: string): Promise<boolean>;
|
|
2640
2634
|
clearMessages(threadId: string): Promise<void>;
|
|
2641
2635
|
markProcessing(messageId: string): Promise<void>;
|
|
2642
|
-
markCompleted(messageId: string): Promise<void>;
|
|
2643
|
-
clearCompletedMessages(threadId: string): Promise<void>;
|
|
2644
2636
|
resetProcessingToPending(threadId: string): Promise<number>;
|
|
2645
2637
|
}
|
|
2646
2638
|
/**
|
|
@@ -2790,6 +2782,32 @@ declare const storeLatticeManager: StoreLatticeManager;
|
|
|
2790
2782
|
declare const registerStoreLattice: <TStoreType extends StoreType>(key: string, type: TStoreType, store: StoreTypeMap[TStoreType]) => void;
|
|
2791
2783
|
declare const getStoreLattice: <TStoreType extends StoreType>(key: string, type: TStoreType) => StoreLattice<TStoreType>;
|
|
2792
2784
|
|
|
2785
|
+
interface ConfigureStoresOptions {
|
|
2786
|
+
autoDisposeStores?: boolean;
|
|
2787
|
+
customStores?: Record<string, object>;
|
|
2788
|
+
}
|
|
2789
|
+
type Store = Partial<{
|
|
2790
|
+
[K in StoreType]: StoreTypeMap[K];
|
|
2791
|
+
}> & {
|
|
2792
|
+
schedule?: object;
|
|
2793
|
+
checkpoint?: object;
|
|
2794
|
+
};
|
|
2795
|
+
/**
|
|
2796
|
+
* Replace stores in the "default" lattice with the given implementations.
|
|
2797
|
+
*
|
|
2798
|
+
* Regular store keys (thread, assistant, etc.) are registered via StoreLatticeManager.
|
|
2799
|
+
* Special keys:
|
|
2800
|
+
* - `schedule`: registered via ScheduleLatticeManager with default POSTGRES type
|
|
2801
|
+
* - `checkpoint`: registered via MemoryLatticeManager (PostgresSaver / any CheckpointSaver)
|
|
2802
|
+
*
|
|
2803
|
+
* For each store: initialize() is called if available, old "default" registration is removed,
|
|
2804
|
+
* and the new store is registered. Stores with dispose() are tracked for cleanup.
|
|
2805
|
+
*
|
|
2806
|
+
* If `autoDisposeStores` is true, SIGINT/SIGTERM handlers call dispose() on exit.
|
|
2807
|
+
* Always returns a dispose function for manual cleanup.
|
|
2808
|
+
*/
|
|
2809
|
+
declare function configureStores(stores: Store, options?: ConfigureStoresOptions): Promise<() => Promise<void>>;
|
|
2810
|
+
|
|
2793
2811
|
/**
|
|
2794
2812
|
* InMemoryThreadStore
|
|
2795
2813
|
*
|
|
@@ -3285,8 +3303,6 @@ declare class InMemoryThreadMessageQueueStore implements IMessageQueueStore {
|
|
|
3285
3303
|
removeMessage(messageId: string): Promise<boolean>;
|
|
3286
3304
|
clearMessages(threadId: string): Promise<void>;
|
|
3287
3305
|
markProcessing(messageId: string): Promise<void>;
|
|
3288
|
-
markCompleted(messageId: string): Promise<void>;
|
|
3289
|
-
clearCompletedMessages(threadId: string): Promise<void>;
|
|
3290
3306
|
resetProcessingToPending(threadId: string): Promise<number>;
|
|
3291
3307
|
}
|
|
3292
3308
|
|
|
@@ -5900,4 +5916,4 @@ interface UnknownToolHandlerConfig {
|
|
|
5900
5916
|
*/
|
|
5901
5917
|
declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
|
|
5902
5918
|
|
|
5903
|
-
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 Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, 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, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, 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, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, 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 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, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, eventBus, eventBus as eventBusDefault, extractFetcherError, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, setBindingRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|
|
5919
|
+
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 Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, 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, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, 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, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, 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 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, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, configureStores, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, eventBus, eventBus as eventBusDefault, extractFetcherError, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, setBindingRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|