@axiom-lattice/core 2.1.47 → 2.1.49

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.ts CHANGED
@@ -8,13 +8,12 @@ import { BaseLanguageModelInput, LanguageModelLike } from '@langchain/core/langu
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, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient } 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, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient } 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';
15
15
  import { ReactAgent, AgentMiddleware } from 'langchain';
16
16
  import z, { z as z$1 } from 'zod';
17
- import { SandboxClient } from '@agent-infra/sandbox';
18
17
  import * as _langchain_core_tools from '@langchain/core/tools';
19
18
  import { StructuredTool } from '@langchain/core/tools';
20
19
  import * as _langchain_langgraph from '@langchain/langgraph';
@@ -24,6 +23,10 @@ import { ReplaySubject } from 'rxjs';
24
23
  import { Embeddings } from '@langchain/core/embeddings';
25
24
  import { VectorStore } from '@langchain/core/vectorstores';
26
25
  import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
26
+ import { Sandbox } from 'microsandbox';
27
+ import { SandboxClient } from '@agent-infra/sandbox';
28
+ import { Sandbox as Sandbox$1 } from 'e2b';
29
+ import { Sandbox as Sandbox$2 } from '@daytonaio/sdk';
27
30
 
28
31
  /**
29
32
  * BaseLatticeManager - 抽象基类,为各种Lattice管理器提供通用功能
@@ -1262,20 +1265,97 @@ declare const createExecuteSqlQueryTool: ({ serverKeys, serverDescriptions, getT
1262
1265
  datasourceId?: string | undefined;
1263
1266
  }, string, "execute_sql_query">;
1264
1267
 
1265
- interface SandboxManagerProtocol {
1266
- getBaseURL(): string;
1267
- createSandbox(sandboxName: string): Promise<SandboxClient>;
1268
- deleteSandbox(sandboxName: string): Promise<void>;
1269
- getSandbox(sandboxName: string): Promise<SandboxClient>;
1270
- listSandboxes(): Promise<SandboxClient[]>;
1271
- getSandboxStatus(sandboxName: string): Promise<string>;
1272
- getSandboxFromConfig(config: RunSandboxConfig): Promise<SandboxClient>;
1273
- }
1274
- type IsolatedLevel = "agent" | "thread" | "global";
1268
+ interface SandboxFileInfo {
1269
+ path: string;
1270
+ is_dir: boolean;
1271
+ size?: number;
1272
+ modified_at?: string;
1273
+ }
1274
+ interface SandboxFileService {
1275
+ readFile(file: string): Promise<{
1276
+ content: string;
1277
+ }>;
1278
+ writeFile(file: string, content: string): Promise<void>;
1279
+ listPath(path: string, options?: {
1280
+ recursive?: boolean;
1281
+ }): Promise<{
1282
+ files: SandboxFileInfo[];
1283
+ }>;
1284
+ findFiles(path: string, glob: string): Promise<{
1285
+ files: string[];
1286
+ }>;
1287
+ searchInFile(file: string, regex: string): Promise<{
1288
+ matches: string[];
1289
+ line_numbers: number[];
1290
+ }>;
1291
+ strReplaceEditor(params: {
1292
+ command: "str_replace";
1293
+ path: string;
1294
+ old_str: string;
1295
+ new_str: string;
1296
+ replace_mode: "FIRST" | "ALL";
1297
+ }): Promise<void>;
1298
+ uploadFile(params: {
1299
+ file: string;
1300
+ data: Buffer;
1301
+ encoding?: string;
1302
+ }): Promise<void>;
1303
+ downloadFile(params: {
1304
+ file: string;
1305
+ }): Promise<Buffer>;
1306
+ }
1307
+ interface SandboxShellService {
1308
+ execCommand(params: {
1309
+ command: string;
1310
+ exec_dir?: string;
1311
+ timeout?: number;
1312
+ }): Promise<{
1313
+ output: string;
1314
+ exit_code: number;
1315
+ }>;
1316
+ }
1317
+ interface SandboxInstance {
1318
+ readonly name: string;
1319
+ start(): Promise<void>;
1320
+ stop(): Promise<void>;
1321
+ kill(): Promise<void>;
1322
+ getStatus(): Promise<"running" | "stopped" | "unknown">;
1323
+ readonly file: SandboxFileService;
1324
+ readonly shell: SandboxShellService;
1325
+ }
1326
+
1327
+ type SandboxIsolationLevel = "global" | "agent" | "project";
1328
+ type SandboxVolumeDefinition = {
1329
+ type: "bind";
1330
+ source: string;
1331
+ readonly?: boolean;
1332
+ } | {
1333
+ type: "named";
1334
+ name: string;
1335
+ readonly?: boolean;
1336
+ } | {
1337
+ type: "tmpfs";
1338
+ sizeMib?: number;
1339
+ };
1275
1340
  interface RunSandboxConfig {
1276
1341
  assistant_id: string;
1277
- isolatedLevel: IsolatedLevel;
1278
1342
  thread_id: string;
1343
+ tenantId?: string;
1344
+ workspaceId?: string;
1345
+ projectId?: string;
1346
+ vmIsolation?: SandboxIsolationLevel;
1347
+ volumes?: Record<string, SandboxVolumeDefinition>;
1348
+ }
1349
+ interface SandboxManagerProtocol {
1350
+ resolvePolicy(config: RunSandboxConfig): {
1351
+ vmIsolation: SandboxIsolationLevel;
1352
+ };
1353
+ getSandboxFromConfig(config: RunSandboxConfig): Promise<SandboxInstance>;
1354
+ createSandbox(name: string): Promise<SandboxInstance>;
1355
+ getSandbox(name: string): Promise<SandboxInstance>;
1356
+ stopSandbox(name: string): Promise<void>;
1357
+ deleteSandbox(name: string): Promise<void>;
1358
+ listSandboxes(): Promise<SandboxInstance[]>;
1279
1359
  }
1280
1360
 
1281
1361
  type ToolDefinition = ToolConfig;
@@ -2267,9 +2347,9 @@ interface PendingMessage {
2267
2347
  custom_run_config?: unknown;
2268
2348
  }
2269
2349
  interface PendingQueueMessageInput {
2270
- message: string;
2350
+ message?: string;
2271
2351
  id?: string;
2272
- messages?: unknown[];
2352
+ messages?: MessageLike[];
2273
2353
  [key: string]: unknown;
2274
2354
  }
2275
2355
  interface PendingQueueMessage {
@@ -2338,6 +2418,16 @@ type LangGraphStateChecker = (tenantId: string, assistantId: string, threadId: s
2338
2418
  * Returns an async iterable for streaming responses
2339
2419
  */
2340
2420
  type AgentStreamExecutor = (tenantId: string, assistantId: string, threadId: string, input: any) => AsyncIterable<any>;
2421
+ /**
2422
+ * Message-like structure for normalized message input
2423
+ * Supports both simple string content and structured message objects
2424
+ */
2425
+ interface MessageLike {
2426
+ role: "human" | "system" | "assistant" | "tool";
2427
+ content: string;
2428
+ id?: string;
2429
+ metadata?: Record<string, unknown>;
2430
+ }
2341
2431
 
2342
2432
  /**
2343
2433
  * StoreLatticeManager
@@ -2674,8 +2764,8 @@ declare class FileSystemSkillStore implements SkillStore {
2674
2764
  * SandboxSkillStore
2675
2765
  *
2676
2766
  * Sandbox-based implementation of SkillStore
2677
- * Stores skills in a remote sandbox environment
2678
- * Path format: /home/gem/tenants/{tenantId}/skills/{skillName}/SKILL.md
2767
+ * Stores skills in the shared project sandbox under ~/.agents/skills/
2768
+ * Path format: ~/.agents/skills/{skillName}/SKILL.md
2679
2769
  */
2680
2770
 
2681
2771
  interface SandboxSkillStoreOptions {
@@ -2684,29 +2774,35 @@ interface SandboxSkillStoreOptions {
2684
2774
  * If not provided, will use getSandBoxManager() dynamically
2685
2775
  */
2686
2776
  sandboxManager?: SandboxManagerProtocol;
2687
- /**
2688
- * Base path for skill storage
2689
- * @default "/home/gem/tenants"
2690
- */
2691
- basePath?: string;
2777
+ /** Default assistant ID for sandbox context */
2778
+ assistantId?: string;
2779
+ /** Default workspace ID for sandbox context */
2780
+ workspaceId?: string;
2781
+ /** Default project ID for sandbox context */
2782
+ projectId?: string;
2692
2783
  }
2693
2784
  /**
2694
2785
  * Sandbox-based implementation of SkillStore with tenant isolation
2695
2786
  */
2696
2787
  declare class SandboxSkillStore implements SkillStore {
2697
2788
  private sandboxManager?;
2698
- private basePath;
2789
+ private defaultContext;
2699
2790
  constructor(options?: SandboxSkillStoreOptions);
2700
2791
  /**
2701
- * Get sandbox manager for a tenant
2792
+ * Get sandbox manager
2702
2793
  */
2703
2794
  private getSandboxManager;
2704
2795
  /**
2705
- * Get skill directory path in sandbox
2796
+ * Get the project-level sandbox for skill operations.
2797
+ * Uses the same sandbox as the project workspace to ensure volume mounts are consistent.
2798
+ */
2799
+ private getSandbox;
2800
+ /**
2801
+ * Get skill directory path in sandbox (absolute path with ~/ prefix)
2706
2802
  */
2707
2803
  private getSkillDirectoryPath;
2708
2804
  /**
2709
- * Get skill file path in sandbox
2805
+ * Get skill file path in sandbox (absolute path with ~/ prefix)
2710
2806
  */
2711
2807
  private getSkillFilePath;
2712
2808
  /**
@@ -2720,43 +2816,43 @@ declare class SandboxSkillStore implements SkillStore {
2720
2816
  /**
2721
2817
  * Get all skills for a tenant
2722
2818
  */
2723
- getAllSkills(tenantId: string): Promise<Skill[]>;
2819
+ getAllSkills(tenantId: string, context?: SkillStoreContext): Promise<Skill[]>;
2724
2820
  /**
2725
- * Get skill by ID
2726
- */
2727
- getSkillById(tenantId: string, id: string): Promise<Skill | null>;
2821
+ * Get skill by ID
2822
+ */
2823
+ getSkillById(tenantId: string, id: string, context?: SkillStoreContext): Promise<Skill | null>;
2728
2824
  /**
2729
- * Create a new skill
2730
- */
2731
- createSkill(tenantId: string, id: string, data: CreateSkillRequest): Promise<Skill>;
2825
+ * Create a new skill
2826
+ */
2827
+ createSkill(tenantId: string, id: string, data: CreateSkillRequest, context?: SkillStoreContext): Promise<Skill>;
2732
2828
  /**
2733
- * Update an existing skill
2734
- */
2735
- updateSkill(tenantId: string, id: string, updates: Partial<CreateSkillRequest>): Promise<Skill | null>;
2829
+ * Update an existing skill
2830
+ */
2831
+ updateSkill(tenantId: string, id: string, updates: Partial<CreateSkillRequest>, context?: SkillStoreContext): Promise<Skill | null>;
2736
2832
  /**
2737
- * Delete a skill by ID
2738
- */
2739
- deleteSkill(tenantId: string, id: string): Promise<boolean>;
2833
+ * Delete a skill by ID
2834
+ */
2835
+ deleteSkill(tenantId: string, id: string, context?: SkillStoreContext): Promise<boolean>;
2740
2836
  /**
2741
- * Check if skill exists
2742
- */
2743
- hasSkill(tenantId: string, id: string): Promise<boolean>;
2837
+ * Check if skill exists
2838
+ */
2839
+ hasSkill(tenantId: string, id: string, context?: SkillStoreContext): Promise<boolean>;
2744
2840
  /**
2745
- * Search skills by metadata within a tenant
2746
- */
2747
- searchByMetadata(tenantId: string, metadataKey: string, metadataValue: string): Promise<Skill[]>;
2841
+ * Search skills by metadata within a tenant
2842
+ */
2843
+ searchByMetadata(tenantId: string, metadataKey: string, metadataValue: string, context?: SkillStoreContext): Promise<Skill[]>;
2748
2844
  /**
2749
- * Filter skills by compatibility within a tenant
2750
- */
2751
- filterByCompatibility(tenantId: string, compatibility: string): Promise<Skill[]>;
2845
+ * Filter skills by compatibility within a tenant
2846
+ */
2847
+ filterByCompatibility(tenantId: string, compatibility: string, context?: SkillStoreContext): Promise<Skill[]>;
2752
2848
  /**
2753
- * Filter skills by license within a tenant
2754
- */
2755
- filterByLicense(tenantId: string, license: string): Promise<Skill[]>;
2849
+ * Filter skills by license within a tenant
2850
+ */
2851
+ filterByLicense(tenantId: string, license: string, context?: SkillStoreContext): Promise<Skill[]>;
2756
2852
  /**
2757
- * Get sub-skills of a parent skill within a tenant
2758
- */
2759
- getSubSkills(tenantId: string, parentSkillName: string): Promise<Skill[]>;
2853
+ * Get sub-skills of a parent skill within a tenant
2854
+ */
2855
+ getSubSkills(tenantId: string, parentSkillName: string, context?: SkillStoreContext): Promise<Skill[]>;
2760
2856
  }
2761
2857
 
2762
2858
  /**
@@ -3353,6 +3449,33 @@ declare function isValidSkillName(name: string): boolean;
3353
3449
  */
3354
3450
  declare function validateSkillName(name: string): void;
3355
3451
 
3452
+ /**
3453
+ * Skill Parser Utilities
3454
+ *
3455
+ * Pure functions for parsing and building SKILL.md files.
3456
+ * No storage abstraction — callers operate on raw file content.
3457
+ */
3458
+ interface SkillMeta {
3459
+ name: string;
3460
+ description: string;
3461
+ license?: string;
3462
+ compatibility?: string;
3463
+ metadata?: Record<string, string>;
3464
+ subSkills?: string[];
3465
+ }
3466
+ /**
3467
+ * Parse YAML frontmatter from a SKILL.md file.
3468
+ * Returns the parsed metadata and the markdown body.
3469
+ */
3470
+ declare function parseSkillFrontmatter(content: string): {
3471
+ meta: SkillMeta;
3472
+ body: string;
3473
+ };
3474
+ /**
3475
+ * Build a SKILL.md file from metadata and body content.
3476
+ */
3477
+ declare function buildSkillFile(meta: SkillMeta, body: string): string;
3478
+
3356
3479
  /**
3357
3480
  * McpLatticeManager
3358
3481
  *
@@ -3391,68 +3514,366 @@ declare class McpLatticeManager extends BaseLatticeManager<McpLatticeInterface>
3391
3514
  }
3392
3515
  declare const mcpManager: McpLatticeManager;
3393
3516
 
3394
- /**
3395
- * SandboxLatticeManager
3396
- *
3397
- * Sandbox Lattice manager for registering and managing sandbox services
3398
- * Supports creating, deleting, and managing sandbox instances
3399
- */
3517
+ interface SandboxProvider {
3518
+ createSandbox(name: string, config?: RunSandboxConfig): Promise<SandboxInstance>;
3519
+ getSandbox(name: string): Promise<SandboxInstance>;
3520
+ stopSandbox(name: string): Promise<void>;
3521
+ deleteSandbox(name: string): Promise<void>;
3522
+ listSandboxes(): Promise<SandboxInstance[]>;
3523
+ }
3400
3524
 
3401
- /**
3402
- * SandboxLatticeManager - Singleton sandbox Lattice manager
3403
- * Responsible for registering and managing various sandbox service Lattices
3404
- */
3405
- declare class SandboxLatticeManager extends BaseLatticeManager<SandboxManagerProtocol> {
3406
- private static _instance;
3525
+ interface MicrosandboxProviderConfig {
3526
+ image?: string;
3527
+ cpus?: number;
3528
+ memoryMib?: number;
3529
+ env?: Record<string, string>;
3530
+ }
3531
+ declare const defaultMicrosandboxConfig: MicrosandboxProviderConfig;
3532
+ declare class MicrosandboxProvider implements SandboxProvider {
3533
+ private config;
3534
+ private instances;
3535
+ private creating;
3536
+ constructor(config?: MicrosandboxProviderConfig);
3537
+ createSandbox(name: string): Promise<SandboxInstance>;
3538
+ getSandbox(name: string): Promise<SandboxInstance>;
3539
+ stopSandbox(name: string): Promise<void>;
3540
+ deleteSandbox(name: string): Promise<void>;
3541
+ listSandboxes(): Promise<SandboxInstance[]>;
3542
+ }
3543
+
3544
+ type SandboxLifecycleResponse = {
3545
+ name: string;
3546
+ status: string;
3547
+ };
3548
+ type ReadFileResponse = {
3549
+ path: string;
3550
+ content: string;
3551
+ };
3552
+ type WriteFileResponse = {
3553
+ path: string;
3554
+ };
3555
+ type ListPathResponse = {
3556
+ entries: Array<{
3557
+ path: string;
3558
+ type: string;
3559
+ }>;
3560
+ };
3561
+ type FindFilesResponse = {
3562
+ files: string[];
3563
+ };
3564
+ type SearchInFileResponse = {
3565
+ matches: Array<{
3566
+ line: number;
3567
+ content: string;
3568
+ }>;
3569
+ };
3570
+ type ReplaceInFileResponse = {
3571
+ replaced: number;
3572
+ };
3573
+ type DownloadFileResponse = {
3574
+ path: string;
3575
+ content?: string;
3576
+ contentBase64?: string;
3577
+ };
3578
+ type ExecCommandResponse = {
3579
+ stdout: string;
3580
+ stderr: string;
3581
+ exitCode: number;
3582
+ };
3583
+ interface EnsureMicrosandboxInput {
3584
+ image?: string;
3585
+ cpus?: number;
3586
+ memoryMib?: number;
3587
+ env?: Record<string, string>;
3588
+ volumes?: Record<string, SandboxVolumeDefinition>;
3589
+ }
3590
+ interface MicrosandboxShellExecInput {
3591
+ sandboxName: string;
3592
+ command: string;
3593
+ exec_dir?: string;
3594
+ timeout?: number;
3595
+ }
3596
+ interface MicrosandboxServiceClientConfig {
3597
+ baseURL: string;
3598
+ }
3599
+ declare class MicrosandboxServiceClient {
3600
+ private readonly baseURL;
3601
+ constructor(config: MicrosandboxServiceClientConfig);
3602
+ ensureSandbox(name: string, input: EnsureMicrosandboxInput): Promise<SandboxLifecycleResponse>;
3603
+ startSandbox(name: string): Promise<SandboxLifecycleResponse>;
3604
+ stopSandbox(name: string): Promise<SandboxLifecycleResponse>;
3605
+ killSandbox(name: string): Promise<SandboxLifecycleResponse>;
3606
+ deleteSandbox(name: string): Promise<SandboxLifecycleResponse>;
3607
+ getStatus(name: string): Promise<SandboxLifecycleResponse>;
3608
+ readFile(sandboxName: string, path: string): Promise<ReadFileResponse>;
3609
+ writeFile(sandboxName: string, path: string, content: string): Promise<WriteFileResponse>;
3610
+ listPath(sandboxName: string, path: string, recursive?: boolean): Promise<ListPathResponse>;
3611
+ findFiles(sandboxName: string, path: string, pattern: string): Promise<FindFilesResponse>;
3612
+ searchInFile(sandboxName: string, path: string, query: string): Promise<SearchInFileResponse>;
3613
+ replaceInFile(sandboxName: string, input: {
3614
+ path: string;
3615
+ search: string;
3616
+ replace: string;
3617
+ }): Promise<ReplaceInFileResponse>;
3618
+ uploadFile(sandboxName: string, path: string, content: Buffer): Promise<WriteFileResponse>;
3619
+ downloadFile(sandboxName: string, path: string): Promise<DownloadFileResponse>;
3620
+ execCommand(input: MicrosandboxShellExecInput): Promise<ExecCommandResponse>;
3621
+ private request;
3622
+ }
3623
+
3624
+ interface MicrosandboxRemoteProviderConfig extends MicrosandboxServiceClientConfig {
3625
+ client?: Pick<MicrosandboxServiceClient, "ensureSandbox"> & Partial<MicrosandboxServiceClient>;
3626
+ image?: string;
3627
+ cpus?: number;
3628
+ memoryMib?: number;
3629
+ env?: Record<string, string>;
3630
+ }
3631
+ declare class MicrosandboxRemoteProvider implements SandboxProvider {
3632
+ private readonly config;
3633
+ private readonly client;
3634
+ private readonly instances;
3635
+ private readonly creating;
3636
+ constructor(config: MicrosandboxRemoteProviderConfig);
3637
+ createSandbox(name: string, config?: RunSandboxConfig): Promise<SandboxInstance>;
3638
+ getSandbox(name: string): Promise<SandboxInstance>;
3639
+ stopSandbox(name: string): Promise<void>;
3640
+ deleteSandbox(name: string): Promise<void>;
3641
+ listSandboxes(): Promise<SandboxInstance[]>;
3642
+ private buildEnsureInput;
3643
+ private buildDefaultVolumes;
3644
+ }
3645
+
3646
+ interface RemoteSandboxProviderConfig {
3647
+ baseURL: string;
3648
+ }
3649
+ declare class RemoteSandboxProvider implements SandboxProvider {
3650
+ private config;
3651
+ private client;
3652
+ private instances;
3653
+ constructor(config: RemoteSandboxProviderConfig);
3654
+ createSandbox(name: string): Promise<SandboxInstance>;
3655
+ getSandbox(name: string): Promise<SandboxInstance>;
3656
+ stopSandbox(name: string): Promise<void>;
3657
+ deleteSandbox(name: string): Promise<void>;
3658
+ listSandboxes(): Promise<SandboxInstance[]>;
3659
+ }
3660
+
3661
+ interface E2BProviderConfig {
3662
+ apiKey: string;
3663
+ template?: string;
3664
+ timeoutMs?: number;
3665
+ }
3666
+ declare class E2BProvider implements SandboxProvider {
3667
+ private config;
3668
+ private instances;
3669
+ private creating;
3670
+ constructor(config: E2BProviderConfig);
3671
+ createSandbox(name: string): Promise<SandboxInstance>;
3672
+ getSandbox(name: string): Promise<SandboxInstance>;
3673
+ stopSandbox(name: string): Promise<void>;
3674
+ deleteSandbox(name: string): Promise<void>;
3675
+ listSandboxes(): Promise<SandboxInstance[]>;
3676
+ }
3677
+
3678
+ interface DaytonaProviderConfig {
3679
+ apiKey?: string;
3680
+ apiUrl?: string;
3681
+ target?: string;
3682
+ timeout?: number;
3683
+ volumeName?: string;
3684
+ }
3685
+ declare class DaytonaProvider implements SandboxProvider {
3686
+ private config;
3687
+ private daytona;
3688
+ private instances;
3689
+ private creating;
3690
+ private volumeId;
3691
+ constructor(config: DaytonaProviderConfig);
3692
+ createSandbox(name: string, config?: RunSandboxConfig): Promise<SandboxInstance>;
3407
3693
  /**
3408
- * Get SandboxLatticeManager singleton instance
3694
+ * Build volume mounts for a sandbox based on RunSandboxConfig.
3695
+ * Mounts:
3696
+ * ~/.agents/skills → tenants/{tenantId}/skills
3697
+ * ~/agent → tenants/{tenantId}/agents/{assistantId}
3698
+ * ~/project → tenants/{tenantId}/projects/{projectId}
3409
3699
  */
3410
- static getInstance(): SandboxLatticeManager;
3700
+ private buildVolumeMounts;
3701
+ private getOrCreateVolume;
3702
+ getSandbox(name: string): Promise<SandboxInstance>;
3703
+ stopSandbox(name: string): Promise<void>;
3704
+ deleteSandbox(name: string): Promise<void>;
3705
+ listSandboxes(): Promise<SandboxInstance[]>;
3706
+ }
3707
+
3708
+ interface CreateSandboxProviderConfig {
3411
3709
  /**
3412
- * Get Lattice type prefix
3710
+ * Provider type
3711
+ * - "microsandbox": local microVM via microsandbox SDK (requires KVM/Hypervisor)
3712
+ * - "microsandbox-remote": remote microsandbox-service via dedicated HTTP client
3713
+ * - "remote": remote sandbox service via @agent-infra/sandbox HTTP client
3714
+ * - "e2b": E2B cloud sandbox (https://e2b.dev)
3715
+ * - "daytona": Daytona cloud sandbox (https://daytona.io)
3413
3716
  */
3414
- protected getLatticeType(): string;
3717
+ type: "microsandbox" | "microsandbox-remote" | "remote" | "e2b" | "daytona";
3415
3718
  /**
3416
- * Register sandbox Lattice
3417
- * @param key Lattice key name
3418
- * @param manager Optional sandbox manager. If not provided, will create a default one.
3419
- * @param baseURL Base URL for sandbox service (used when creating default manager)
3719
+ * Required when type = "remote"
3420
3720
  */
3421
- registerLattice(key: string, config: {
3422
- manager?: SandboxManagerProtocol;
3423
- baseURL?: string;
3424
- }): void;
3721
+ remoteBaseURL?: string;
3425
3722
  /**
3426
- * Get SandboxLattice
3427
- * @param key Lattice key name
3723
+ * Required when type = "microsandbox-remote"
3428
3724
  */
3429
- getSandboxLattice(key: string): SandboxManagerProtocol;
3725
+ microsandboxServiceBaseURL?: string;
3430
3726
  /**
3431
- * Get all Lattices
3727
+ * Optional override for microsandbox image
3432
3728
  */
3433
- getAllLattices(): SandboxManagerProtocol[];
3729
+ microsandboxImage?: string;
3434
3730
  /**
3435
- * Check if Lattice exists
3436
- * @param key Lattice key name
3731
+ * Optional override for microsandbox CPUs
3437
3732
  */
3438
- hasLattice(key: string): boolean;
3733
+ microsandboxCpus?: number;
3439
3734
  /**
3440
- * Remove Lattice
3441
- * @param key Lattice key name
3735
+ * Optional override for microsandbox memory (MiB)
3442
3736
  */
3443
- removeLattice(key: string): boolean;
3737
+ microsandboxMemoryMib?: number;
3444
3738
  /**
3445
- * Clear all Lattices
3739
+ * Required when type = "e2b"
3446
3740
  */
3447
- clearLattices(): void;
3741
+ e2bApiKey?: string;
3448
3742
  /**
3449
- * Get Lattice count
3743
+ * Optional E2B template (default: "base")
3450
3744
  */
3451
- getLatticeCount(): number;
3745
+ e2bTemplate?: string;
3452
3746
  /**
3453
- * Get Lattice key list
3747
+ * Optional E2B sandbox timeout in milliseconds (default: 300000)
3748
+ */
3749
+ e2bTimeoutMs?: number;
3750
+ /**
3751
+ * Required when type = "daytona"
3752
+ */
3753
+ daytonaApiKey?: string;
3754
+ /**
3755
+ * Optional Daytona API URL
3756
+ */
3757
+ daytonaApiUrl?: string;
3758
+ /**
3759
+ * Optional Daytona target region
3760
+ */
3761
+ daytonaTarget?: string;
3762
+ /**
3763
+ * Optional Daytona create timeout in seconds (0 = no timeout, default: 0)
3764
+ */
3765
+ daytonaTimeout?: number;
3766
+ /**
3767
+ * Optional Daytona volume name for shared persistent storage across sandboxes
3768
+ */
3769
+ daytonaVolumeName?: string;
3770
+ }
3771
+ /**
3772
+ * Factory function for creating different sandbox provider implementations.
3773
+ *
3774
+ * This allows runtime selection of the sandbox backend without changing
3775
+ * consumer code. New provider types can be added here as they are implemented.
3776
+ */
3777
+ declare function createSandboxProvider(config: CreateSandboxProviderConfig): SandboxProvider;
3778
+
3779
+ declare class MicrosandboxInstance implements SandboxInstance {
3780
+ private native;
3781
+ readonly name: string;
3782
+ constructor(name: string, native: Sandbox);
3783
+ start(): Promise<void>;
3784
+ stop(): Promise<void>;
3785
+ kill(): Promise<void>;
3786
+ getStatus(): Promise<"running" | "stopped" | "unknown">;
3787
+ readonly file: SandboxFileService;
3788
+ readonly shell: SandboxShellService;
3789
+ }
3790
+
3791
+ declare class MicrosandboxRemoteInstance implements SandboxInstance {
3792
+ private readonly client;
3793
+ readonly name: string;
3794
+ constructor(name: string, client: MicrosandboxServiceClient);
3795
+ start(): Promise<void>;
3796
+ stop(): Promise<void>;
3797
+ kill(): Promise<void>;
3798
+ getStatus(): Promise<"running" | "stopped" | "unknown">;
3799
+ readonly file: SandboxFileService;
3800
+ readonly shell: SandboxShellService;
3801
+ }
3802
+
3803
+ declare class RemoteSandboxInstance implements SandboxInstance {
3804
+ private client;
3805
+ readonly name: string;
3806
+ constructor(name: string, client: SandboxClient);
3807
+ start(): Promise<void>;
3808
+ stop(): Promise<void>;
3809
+ kill(): Promise<void>;
3810
+ getStatus(): Promise<"running" | "stopped" | "unknown">;
3811
+ readonly file: SandboxFileService;
3812
+ readonly shell: SandboxShellService;
3813
+ }
3814
+
3815
+ declare class E2BInstance implements SandboxInstance {
3816
+ private native;
3817
+ readonly name: string;
3818
+ constructor(name: string, native: Sandbox$1);
3819
+ start(): Promise<void>;
3820
+ stop(): Promise<void>;
3821
+ kill(): Promise<void>;
3822
+ getStatus(): Promise<"running" | "stopped" | "unknown">;
3823
+ readonly file: SandboxFileService;
3824
+ readonly shell: SandboxShellService;
3825
+ }
3826
+
3827
+ declare class DaytonaInstance implements SandboxInstance {
3828
+ private native;
3829
+ readonly name: string;
3830
+ constructor(name: string, native: Sandbox$2);
3831
+ /**
3832
+ * All sandbox file operations live under the user's home directory (~).
3833
+ * The AI uses virtual paths like "~/agent/file.txt". Daytona SDK expects
3834
+ * relative paths for file operations (they are resolved against ~ automatically),
3835
+ * so we strip the leading "~/" or "/" here.
3836
+ *
3837
+ * Handles edge cases like "~/~/agent/file.txt" by repeatedly stripping prefixes.
3454
3838
  */
3839
+ private toSandboxHomePath;
3840
+ start(): Promise<void>;
3841
+ stop(): Promise<void>;
3842
+ kill(): Promise<void>;
3843
+ getStatus(): Promise<"running" | "stopped" | "unknown">;
3844
+ readonly file: SandboxFileService;
3845
+ readonly shell: SandboxShellService;
3846
+ }
3847
+
3848
+ declare function computeSandboxName(config: {
3849
+ vmIsolation: SandboxIsolationLevel;
3850
+ tenantId?: string;
3851
+ workspaceId?: string;
3852
+ projectId?: string;
3853
+ assistant_id: string;
3854
+ }): string;
3855
+ declare class SandboxLatticeManager extends BaseLatticeManager<SandboxProvider> implements SandboxManagerProtocol {
3856
+ private static _instance;
3857
+ static getInstance(): SandboxLatticeManager;
3858
+ protected getLatticeType(): string;
3859
+ registerLattice(key: string, provider: SandboxProvider): void;
3860
+ getSandboxLattice(key: string): SandboxProvider;
3861
+ getAllLattices(): SandboxProvider[];
3862
+ hasLattice(key: string): boolean;
3863
+ removeLattice(key: string): boolean;
3864
+ clearLattices(): void;
3865
+ getLatticeCount(): number;
3455
3866
  getLatticeKeys(): string[];
3867
+ resolvePolicy(config: RunSandboxConfig): {
3868
+ vmIsolation: SandboxIsolationLevel;
3869
+ };
3870
+ getSandboxFromConfig(config: RunSandboxConfig): Promise<SandboxInstance>;
3871
+ createSandbox(name: string, config?: RunSandboxConfig): Promise<SandboxInstance>;
3872
+ getSandbox(name: string): Promise<SandboxInstance>;
3873
+ stopSandbox(name: string): Promise<void>;
3874
+ deleteSandbox(name: string): Promise<void>;
3875
+ listSandboxes(): Promise<SandboxInstance[]>;
3876
+ private _requireProvider;
3456
3877
  }
3457
3878
  declare const sandboxLatticeManager: SandboxLatticeManager;
3458
3879
  declare const getSandBoxManager: (key?: string) => SandboxManagerProtocol;
@@ -4621,113 +5042,23 @@ declare class MemoryBackend implements BackendProtocol {
4621
5042
  /**
4622
5043
  * SandboxFilesystem: A sandboxed filesystem backend that connects to a remote sandbox via SDK.
4623
5044
  *
4624
- * This backend provides a secure, isolated filesystem environment by connecting to a remote
4625
- * sandbox service through the @agent-infra/sandbox SDK. It implements the BackendProtocol
4626
- * interface and delegates all file operations to the remote sandbox.
4627
- *
4628
- * Features:
4629
- * - Remote sandbox connection via HTTP API
4630
- * - Virtual path support (all paths start with /)
4631
- * - Path traversal prevention
4632
- * - Full BackendProtocol implementation
5045
+ * Paths are absolute paths starting with ~/ (e.g. "~/agent/file.txt").
5046
+ * These are passed directly to DaytonaInstance which handles the ~/ prefix.
4633
5047
  */
4634
5048
 
4635
- /**
4636
- * Sandboxed filesystem backend that connects to a remote sandbox service.
4637
- *
4638
- * All file operations are delegated to the remote sandbox via the SDK.
4639
- * Paths are treated as virtual absolute paths (starting with /).
4640
- */
4641
5049
  declare class SandboxFilesystem implements BackendProtocol {
4642
5050
  private sandbox;
4643
5051
  private maxFileSizeBytes;
4644
- private workingDirectory;
4645
- private baseURL;
4646
- private homeDir;
4647
- /**
4648
- * Create a new SandboxFilesystem instance.
4649
- *
4650
- * @param options - Configuration options
4651
- * @param options.baseURL - Base URL of the sandbox service (default: 'http://localhost:8080')
4652
- * @param options.maxFileSizeMb - Maximum file size in MB (default: 10)
4653
- * @param options.sandboxInstance - Optional Sandbox instance (if provided, baseURL is ignored)
4654
- */
4655
5052
  constructor(options?: {
4656
- baseURL?: string;
4657
- workingDirectory?: string;
4658
5053
  maxFileSizeMb?: number;
4659
- sandboxInstance?: SandboxClient;
5054
+ sandboxInstance?: SandboxInstance;
4660
5055
  });
4661
- private resolvePath;
4662
- /**
4663
- * Convert a real filesystem path to a virtual path.
4664
- *
4665
- * @param realPath - Real filesystem path
4666
- * @returns Virtual path starting with /
4667
- */
4668
- private toVirtualPath;
4669
- /**
4670
- * List files and directories in the specified directory (non-recursive).
4671
- *
4672
- * @param dirPath - Virtual directory path (must start with /)
4673
- * @returns List of FileInfo objects for files and directories directly in the directory.
4674
- * Directories have a trailing / in their path and is_dir=true.
4675
- */
4676
5056
  lsInfo(dirPath: string): Promise<FileInfo[]>;
4677
- /**
4678
- * Read file content with line numbers.
4679
- *
4680
- * @param filePath - Virtual file path (must start with /)
4681
- * @param offset - Line offset to start reading from (0-indexed)
4682
- * @param limit - Maximum number of lines to read
4683
- * @returns Formatted file content with line numbers, or error message
4684
- */
4685
5057
  read(filePath: string, offset?: number, limit?: number): Promise<string>;
4686
- /**
4687
- * Read file content as raw FileData.
4688
- *
4689
- * @param filePath - Virtual file path (must start with /)
4690
- * @returns Raw file content as FileData
4691
- */
4692
5058
  readRaw(filePath: string): Promise<FileData>;
4693
- /**
4694
- * Create a new file with content.
4695
- * Returns WriteResult. External storage sets filesUpdate=null.
4696
- *
4697
- * @param filePath - Virtual file path (must start with /)
4698
- * @param content - File content as string
4699
- * @returns WriteResult with error populated on failure
4700
- */
4701
5059
  write(filePath: string, content: string): Promise<WriteResult>;
4702
- /**
4703
- * Edit a file by replacing string occurrences.
4704
- * Returns EditResult. External storage sets filesUpdate=null.
4705
- *
4706
- * @param filePath - Virtual file path (must start with /)
4707
- * @param oldString - String to find and replace
4708
- * @param newString - Replacement string
4709
- * @param replaceAll - If true, replace all occurrences (default: false)
4710
- * @returns EditResult with error, path, filesUpdate, and occurrences
4711
- */
4712
5060
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
4713
- /**
4714
- * Structured search results or error string for invalid input.
4715
- *
4716
- * Searches file contents for a regex pattern within the sandbox.
4717
- *
4718
- * @param pattern - Regex pattern to search for
4719
- * @param searchPath - Base path to search from (default: "/")
4720
- * @param glob - Optional glob pattern to filter files (e.g., "*.py")
4721
- * @returns List of GrepMatch objects or error string for invalid regex
4722
- */
4723
5061
  grepRaw(pattern: string, searchPath?: string | null, glob?: string | null): Promise<GrepMatch[] | string>;
4724
- /**
4725
- * Structured glob matching returning FileInfo objects.
4726
- *
4727
- * @param pattern - Glob pattern (e.g., `*.py`, `**\/*.ts`)
4728
- * @param searchPath - Base path to search from (default: "/")
4729
- * @returns List of FileInfo objects matching the pattern
4730
- */
4731
5062
  globInfo(pattern: string, searchPath?: string): Promise<FileInfo[]>;
4732
5063
  }
4733
5064
 
@@ -4958,8 +5289,9 @@ interface ThreadState {
4958
5289
  }
4959
5290
  interface QueueMessage {
4960
5291
  input: {
4961
- message: string;
5292
+ message?: string;
4962
5293
  id?: string;
5294
+ messages?: MessageLike[];
4963
5295
  };
4964
5296
  command?: CommandParams<any>;
4965
5297
  custom_run_config?: any;
@@ -5075,6 +5407,11 @@ declare class Agent {
5075
5407
  * Add message to queue
5076
5408
  * All messages go to queue, processor auto-starts if not running
5077
5409
  * STEER/Command messages are inserted at head of queue for immediate processing
5410
+ *
5411
+ * Supports both legacy single message format and new messages[] format:
5412
+ * - Legacy: input.message (single human message)
5413
+ * - New: input.messages[] (array of mixed human/system messages)
5414
+ * - When input.messages is provided, it takes precedence over input.message
5078
5415
  */
5079
5416
  addMessage(queueMessage: QueueMessage, mode?: QueueMode): Promise<{
5080
5417
  queued: boolean;
@@ -5319,4 +5656,9 @@ interface UnknownToolHandlerConfig {
5319
5656
  */
5320
5657
  declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
5321
5658
 
5322
- export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type IsolatedLevel, 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, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type RunSandboxConfig, type RuntimeModelConfig, SandboxFilesystem, SandboxLatticeManager, type SandboxManagerProtocol, SandboxSkillStore, type SandboxSkillStoreOptions, type ScheduleLattice, ScheduleLatticeManager, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, 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 UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, checkEmptyContent, clearEncryptionKeyCache, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
5659
+ interface SchedulerMiddlewareOptions {
5660
+ defaultMaxRetries?: number;
5661
+ }
5662
+ declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
5663
+
5664
+ export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, 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 GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, 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, MicrosandboxInstance, MicrosandboxProvider, type MicrosandboxProviderConfig, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, 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 UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, defaultMicrosandboxConfig, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, 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, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };