@axiom-lattice/core 2.1.48 → 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;
@@ -2684,8 +2764,8 @@ declare class FileSystemSkillStore implements SkillStore {
2684
2764
  * SandboxSkillStore
2685
2765
  *
2686
2766
  * Sandbox-based implementation of SkillStore
2687
- * Stores skills in a remote sandbox environment
2688
- * 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
2689
2769
  */
2690
2770
 
2691
2771
  interface SandboxSkillStoreOptions {
@@ -2694,29 +2774,35 @@ interface SandboxSkillStoreOptions {
2694
2774
  * If not provided, will use getSandBoxManager() dynamically
2695
2775
  */
2696
2776
  sandboxManager?: SandboxManagerProtocol;
2697
- /**
2698
- * Base path for skill storage
2699
- * @default "/home/gem/tenants"
2700
- */
2701
- 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;
2702
2783
  }
2703
2784
  /**
2704
2785
  * Sandbox-based implementation of SkillStore with tenant isolation
2705
2786
  */
2706
2787
  declare class SandboxSkillStore implements SkillStore {
2707
2788
  private sandboxManager?;
2708
- private basePath;
2789
+ private defaultContext;
2709
2790
  constructor(options?: SandboxSkillStoreOptions);
2710
2791
  /**
2711
- * Get sandbox manager for a tenant
2792
+ * Get sandbox manager
2712
2793
  */
2713
2794
  private getSandboxManager;
2714
2795
  /**
2715
- * 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)
2716
2802
  */
2717
2803
  private getSkillDirectoryPath;
2718
2804
  /**
2719
- * Get skill file path in sandbox
2805
+ * Get skill file path in sandbox (absolute path with ~/ prefix)
2720
2806
  */
2721
2807
  private getSkillFilePath;
2722
2808
  /**
@@ -2730,43 +2816,43 @@ declare class SandboxSkillStore implements SkillStore {
2730
2816
  /**
2731
2817
  * Get all skills for a tenant
2732
2818
  */
2733
- getAllSkills(tenantId: string): Promise<Skill[]>;
2819
+ getAllSkills(tenantId: string, context?: SkillStoreContext): Promise<Skill[]>;
2734
2820
  /**
2735
- * Get skill by ID
2736
- */
2737
- 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>;
2738
2824
  /**
2739
- * Create a new skill
2740
- */
2741
- 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>;
2742
2828
  /**
2743
- * Update an existing skill
2744
- */
2745
- 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>;
2746
2832
  /**
2747
- * Delete a skill by ID
2748
- */
2749
- deleteSkill(tenantId: string, id: string): Promise<boolean>;
2833
+ * Delete a skill by ID
2834
+ */
2835
+ deleteSkill(tenantId: string, id: string, context?: SkillStoreContext): Promise<boolean>;
2750
2836
  /**
2751
- * Check if skill exists
2752
- */
2753
- hasSkill(tenantId: string, id: string): Promise<boolean>;
2837
+ * Check if skill exists
2838
+ */
2839
+ hasSkill(tenantId: string, id: string, context?: SkillStoreContext): Promise<boolean>;
2754
2840
  /**
2755
- * Search skills by metadata within a tenant
2756
- */
2757
- 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[]>;
2758
2844
  /**
2759
- * Filter skills by compatibility within a tenant
2760
- */
2761
- 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[]>;
2762
2848
  /**
2763
- * Filter skills by license within a tenant
2764
- */
2765
- 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[]>;
2766
2852
  /**
2767
- * Get sub-skills of a parent skill within a tenant
2768
- */
2769
- 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[]>;
2770
2856
  }
2771
2857
 
2772
2858
  /**
@@ -3363,6 +3449,33 @@ declare function isValidSkillName(name: string): boolean;
3363
3449
  */
3364
3450
  declare function validateSkillName(name: string): void;
3365
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
+
3366
3479
  /**
3367
3480
  * McpLatticeManager
3368
3481
  *
@@ -3401,68 +3514,366 @@ declare class McpLatticeManager extends BaseLatticeManager<McpLatticeInterface>
3401
3514
  }
3402
3515
  declare const mcpManager: McpLatticeManager;
3403
3516
 
3404
- /**
3405
- * SandboxLatticeManager
3406
- *
3407
- * Sandbox Lattice manager for registering and managing sandbox services
3408
- * Supports creating, deleting, and managing sandbox instances
3409
- */
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
+ }
3410
3524
 
3411
- /**
3412
- * SandboxLatticeManager - Singleton sandbox Lattice manager
3413
- * Responsible for registering and managing various sandbox service Lattices
3414
- */
3415
- declare class SandboxLatticeManager extends BaseLatticeManager<SandboxManagerProtocol> {
3416
- 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>;
3417
3693
  /**
3418
- * 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}
3419
3699
  */
3420
- 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 {
3421
3709
  /**
3422
- * 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)
3423
3716
  */
3424
- protected getLatticeType(): string;
3717
+ type: "microsandbox" | "microsandbox-remote" | "remote" | "e2b" | "daytona";
3425
3718
  /**
3426
- * Register sandbox Lattice
3427
- * @param key Lattice key name
3428
- * @param manager Optional sandbox manager. If not provided, will create a default one.
3429
- * @param baseURL Base URL for sandbox service (used when creating default manager)
3719
+ * Required when type = "remote"
3430
3720
  */
3431
- registerLattice(key: string, config: {
3432
- manager?: SandboxManagerProtocol;
3433
- baseURL?: string;
3434
- }): void;
3721
+ remoteBaseURL?: string;
3435
3722
  /**
3436
- * Get SandboxLattice
3437
- * @param key Lattice key name
3723
+ * Required when type = "microsandbox-remote"
3438
3724
  */
3439
- getSandboxLattice(key: string): SandboxManagerProtocol;
3725
+ microsandboxServiceBaseURL?: string;
3440
3726
  /**
3441
- * Get all Lattices
3727
+ * Optional override for microsandbox image
3442
3728
  */
3443
- getAllLattices(): SandboxManagerProtocol[];
3729
+ microsandboxImage?: string;
3444
3730
  /**
3445
- * Check if Lattice exists
3446
- * @param key Lattice key name
3731
+ * Optional override for microsandbox CPUs
3447
3732
  */
3448
- hasLattice(key: string): boolean;
3733
+ microsandboxCpus?: number;
3449
3734
  /**
3450
- * Remove Lattice
3451
- * @param key Lattice key name
3735
+ * Optional override for microsandbox memory (MiB)
3452
3736
  */
3453
- removeLattice(key: string): boolean;
3737
+ microsandboxMemoryMib?: number;
3454
3738
  /**
3455
- * Clear all Lattices
3739
+ * Required when type = "e2b"
3456
3740
  */
3457
- clearLattices(): void;
3741
+ e2bApiKey?: string;
3458
3742
  /**
3459
- * Get Lattice count
3743
+ * Optional E2B template (default: "base")
3460
3744
  */
3461
- getLatticeCount(): number;
3745
+ e2bTemplate?: string;
3462
3746
  /**
3463
- * 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.
3464
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;
3465
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;
3466
3877
  }
3467
3878
  declare const sandboxLatticeManager: SandboxLatticeManager;
3468
3879
  declare const getSandBoxManager: (key?: string) => SandboxManagerProtocol;
@@ -4631,113 +5042,23 @@ declare class MemoryBackend implements BackendProtocol {
4631
5042
  /**
4632
5043
  * SandboxFilesystem: A sandboxed filesystem backend that connects to a remote sandbox via SDK.
4633
5044
  *
4634
- * This backend provides a secure, isolated filesystem environment by connecting to a remote
4635
- * sandbox service through the @agent-infra/sandbox SDK. It implements the BackendProtocol
4636
- * interface and delegates all file operations to the remote sandbox.
4637
- *
4638
- * Features:
4639
- * - Remote sandbox connection via HTTP API
4640
- * - Virtual path support (all paths start with /)
4641
- * - Path traversal prevention
4642
- * - 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.
4643
5047
  */
4644
5048
 
4645
- /**
4646
- * Sandboxed filesystem backend that connects to a remote sandbox service.
4647
- *
4648
- * All file operations are delegated to the remote sandbox via the SDK.
4649
- * Paths are treated as virtual absolute paths (starting with /).
4650
- */
4651
5049
  declare class SandboxFilesystem implements BackendProtocol {
4652
5050
  private sandbox;
4653
5051
  private maxFileSizeBytes;
4654
- private workingDirectory;
4655
- private baseURL;
4656
- private homeDir;
4657
- /**
4658
- * Create a new SandboxFilesystem instance.
4659
- *
4660
- * @param options - Configuration options
4661
- * @param options.baseURL - Base URL of the sandbox service (default: 'http://localhost:8080')
4662
- * @param options.maxFileSizeMb - Maximum file size in MB (default: 10)
4663
- * @param options.sandboxInstance - Optional Sandbox instance (if provided, baseURL is ignored)
4664
- */
4665
5052
  constructor(options?: {
4666
- baseURL?: string;
4667
- workingDirectory?: string;
4668
5053
  maxFileSizeMb?: number;
4669
- sandboxInstance?: SandboxClient;
5054
+ sandboxInstance?: SandboxInstance;
4670
5055
  });
4671
- private resolvePath;
4672
- /**
4673
- * Convert a real filesystem path to a virtual path.
4674
- *
4675
- * @param realPath - Real filesystem path
4676
- * @returns Virtual path starting with /
4677
- */
4678
- private toVirtualPath;
4679
- /**
4680
- * List files and directories in the specified directory (non-recursive).
4681
- *
4682
- * @param dirPath - Virtual directory path (must start with /)
4683
- * @returns List of FileInfo objects for files and directories directly in the directory.
4684
- * Directories have a trailing / in their path and is_dir=true.
4685
- */
4686
5056
  lsInfo(dirPath: string): Promise<FileInfo[]>;
4687
- /**
4688
- * Read file content with line numbers.
4689
- *
4690
- * @param filePath - Virtual file path (must start with /)
4691
- * @param offset - Line offset to start reading from (0-indexed)
4692
- * @param limit - Maximum number of lines to read
4693
- * @returns Formatted file content with line numbers, or error message
4694
- */
4695
5057
  read(filePath: string, offset?: number, limit?: number): Promise<string>;
4696
- /**
4697
- * Read file content as raw FileData.
4698
- *
4699
- * @param filePath - Virtual file path (must start with /)
4700
- * @returns Raw file content as FileData
4701
- */
4702
5058
  readRaw(filePath: string): Promise<FileData>;
4703
- /**
4704
- * Create a new file with content.
4705
- * Returns WriteResult. External storage sets filesUpdate=null.
4706
- *
4707
- * @param filePath - Virtual file path (must start with /)
4708
- * @param content - File content as string
4709
- * @returns WriteResult with error populated on failure
4710
- */
4711
5059
  write(filePath: string, content: string): Promise<WriteResult>;
4712
- /**
4713
- * Edit a file by replacing string occurrences.
4714
- * Returns EditResult. External storage sets filesUpdate=null.
4715
- *
4716
- * @param filePath - Virtual file path (must start with /)
4717
- * @param oldString - String to find and replace
4718
- * @param newString - Replacement string
4719
- * @param replaceAll - If true, replace all occurrences (default: false)
4720
- * @returns EditResult with error, path, filesUpdate, and occurrences
4721
- */
4722
5060
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
4723
- /**
4724
- * Structured search results or error string for invalid input.
4725
- *
4726
- * Searches file contents for a regex pattern within the sandbox.
4727
- *
4728
- * @param pattern - Regex pattern to search for
4729
- * @param searchPath - Base path to search from (default: "/")
4730
- * @param glob - Optional glob pattern to filter files (e.g., "*.py")
4731
- * @returns List of GrepMatch objects or error string for invalid regex
4732
- */
4733
5061
  grepRaw(pattern: string, searchPath?: string | null, glob?: string | null): Promise<GrepMatch[] | string>;
4734
- /**
4735
- * Structured glob matching returning FileInfo objects.
4736
- *
4737
- * @param pattern - Glob pattern (e.g., `*.py`, `**\/*.ts`)
4738
- * @param searchPath - Base path to search from (default: "/")
4739
- * @returns List of FileInfo objects matching the pattern
4740
- */
4741
5062
  globInfo(pattern: string, searchPath?: string): Promise<FileInfo[]>;
4742
5063
  }
4743
5064
 
@@ -5340,4 +5661,4 @@ interface SchedulerMiddlewareOptions {
5340
5661
  }
5341
5662
  declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
5342
5663
 
5343
- 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, type SchedulerMiddlewareOptions, 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, createSchedulerMiddleware, 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 };
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 };