@axiom-lattice/core 2.1.55 → 2.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +57 -39
- package/dist/index.d.ts +57 -39
- package/dist/index.js +369 -243
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +365 -242
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/index.d.mts
CHANGED
|
@@ -23,10 +23,9 @@ import { ReplaySubject } from 'rxjs';
|
|
|
23
23
|
import { Embeddings } from '@langchain/core/embeddings';
|
|
24
24
|
import { VectorStore } from '@langchain/core/vectorstores';
|
|
25
25
|
import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
|
|
26
|
-
import { FsEntry, Sandbox } from 'microsandbox';
|
|
27
26
|
import { SandboxClient } from '@agent-infra/sandbox';
|
|
28
|
-
import { Sandbox
|
|
29
|
-
import { Sandbox as Sandbox$
|
|
27
|
+
import { Sandbox } from 'e2b';
|
|
28
|
+
import { Sandbox as Sandbox$1 } from '@daytonaio/sdk';
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* BaseLatticeManager - 抽象基类,为各种Lattice管理器提供通用功能
|
|
@@ -2997,6 +2996,14 @@ declare class SandboxSkillStore implements SkillStore {
|
|
|
2997
2996
|
private sandboxManager?;
|
|
2998
2997
|
private defaultContext;
|
|
2999
2998
|
constructor(options?: SandboxSkillStoreOptions);
|
|
2999
|
+
/**
|
|
3000
|
+
* Build a Skill object from a built-in skill definition.
|
|
3001
|
+
*/
|
|
3002
|
+
private _builtInSkill;
|
|
3003
|
+
/**
|
|
3004
|
+
* Get all built-in skills as Skill objects for a tenant.
|
|
3005
|
+
*/
|
|
3006
|
+
private _allBuiltInSkills;
|
|
3000
3007
|
/**
|
|
3001
3008
|
* Get sandbox manager
|
|
3002
3009
|
*/
|
|
@@ -3685,6 +3692,42 @@ declare function parseSkillFrontmatter(content: string): {
|
|
|
3685
3692
|
*/
|
|
3686
3693
|
declare function buildSkillFile(meta: SkillMeta, body: string): string;
|
|
3687
3694
|
|
|
3695
|
+
/**
|
|
3696
|
+
* Built-in Skills
|
|
3697
|
+
*
|
|
3698
|
+
* Skills defined here are injected into the agent's available skill list
|
|
3699
|
+
* at runtime. They are NEVER written to the sandbox — they exist only in
|
|
3700
|
+
* memory and cannot be modified or deleted by the agent.
|
|
3701
|
+
*/
|
|
3702
|
+
|
|
3703
|
+
/**
|
|
3704
|
+
* Map of built-in skill name to full SKILL.md content.
|
|
3705
|
+
* Add new built-in skills here to make them automatically available.
|
|
3706
|
+
*/
|
|
3707
|
+
declare const BUILTIN_SKILLS: Record<string, string>;
|
|
3708
|
+
/**
|
|
3709
|
+
* Parse metadata from a built-in skill content.
|
|
3710
|
+
* Returns null if the skill content cannot be parsed.
|
|
3711
|
+
*/
|
|
3712
|
+
declare function getBuiltInSkillMeta(name: string): SkillMeta | null;
|
|
3713
|
+
/**
|
|
3714
|
+
* Get the full content of a built-in skill by name.
|
|
3715
|
+
* Returns undefined if the skill is not a built-in.
|
|
3716
|
+
*/
|
|
3717
|
+
declare function getBuiltInSkillContent(name: string): string | undefined;
|
|
3718
|
+
/**
|
|
3719
|
+
* Get metadata for all built-in skills.
|
|
3720
|
+
*/
|
|
3721
|
+
declare function getAllBuiltInSkillMetas(): SkillMeta[];
|
|
3722
|
+
/**
|
|
3723
|
+
* Get all built-in skill names.
|
|
3724
|
+
*/
|
|
3725
|
+
declare function getBuiltInSkillNames(): string[];
|
|
3726
|
+
/**
|
|
3727
|
+
* Check if a skill name refers to a built-in skill.
|
|
3728
|
+
*/
|
|
3729
|
+
declare function isBuiltInSkill(name: string): boolean;
|
|
3730
|
+
|
|
3688
3731
|
/**
|
|
3689
3732
|
* McpLatticeManager
|
|
3690
3733
|
*
|
|
@@ -3723,6 +3766,13 @@ declare class McpLatticeManager extends BaseLatticeManager<McpLatticeInterface>
|
|
|
3723
3766
|
}
|
|
3724
3767
|
declare const mcpManager: McpLatticeManager;
|
|
3725
3768
|
|
|
3769
|
+
interface FsEntry {
|
|
3770
|
+
path: string;
|
|
3771
|
+
kind: string;
|
|
3772
|
+
size: number;
|
|
3773
|
+
mode: number;
|
|
3774
|
+
modified: string | null;
|
|
3775
|
+
}
|
|
3726
3776
|
interface VolumeFsClient {
|
|
3727
3777
|
read(path: string): Promise<string>;
|
|
3728
3778
|
write(path: string, content: string): Promise<void>;
|
|
@@ -3740,25 +3790,6 @@ interface SandboxProvider {
|
|
|
3740
3790
|
createVolumeFsClient?(volumeName: string): VolumeFsClient;
|
|
3741
3791
|
}
|
|
3742
3792
|
|
|
3743
|
-
interface MicrosandboxProviderConfig {
|
|
3744
|
-
image?: string;
|
|
3745
|
-
cpus?: number;
|
|
3746
|
-
memoryMib?: number;
|
|
3747
|
-
env?: Record<string, string>;
|
|
3748
|
-
}
|
|
3749
|
-
declare const defaultMicrosandboxConfig: MicrosandboxProviderConfig;
|
|
3750
|
-
declare class MicrosandboxProvider implements SandboxProvider {
|
|
3751
|
-
private config;
|
|
3752
|
-
private instances;
|
|
3753
|
-
private creating;
|
|
3754
|
-
constructor(config?: MicrosandboxProviderConfig);
|
|
3755
|
-
createSandbox(name: string, config?: RunSandboxConfig): Promise<SandboxInstance>;
|
|
3756
|
-
getSandbox(name: string): Promise<SandboxInstance>;
|
|
3757
|
-
stopSandbox(name: string): Promise<void>;
|
|
3758
|
-
deleteSandbox(name: string): Promise<void>;
|
|
3759
|
-
listSandboxes(): Promise<SandboxInstance[]>;
|
|
3760
|
-
}
|
|
3761
|
-
|
|
3762
3793
|
type SandboxLifecycleResponse = {
|
|
3763
3794
|
name: string;
|
|
3764
3795
|
status: string;
|
|
@@ -3944,13 +3975,12 @@ declare class DaytonaProvider implements SandboxProvider {
|
|
|
3944
3975
|
interface CreateSandboxProviderConfig {
|
|
3945
3976
|
/**
|
|
3946
3977
|
* Provider type
|
|
3947
|
-
* - "microsandbox": local microVM via microsandbox SDK (requires KVM/Hypervisor)
|
|
3948
3978
|
* - "microsandbox-remote": remote microsandbox-service via dedicated HTTP client
|
|
3949
3979
|
* - "remote": remote sandbox service via @agent-infra/sandbox HTTP client
|
|
3950
3980
|
* - "e2b": E2B cloud sandbox (https://e2b.dev)
|
|
3951
3981
|
* - "daytona": Daytona cloud sandbox (https://daytona.io)
|
|
3952
3982
|
*/
|
|
3953
|
-
type: "microsandbox
|
|
3983
|
+
type: "microsandbox-remote" | "remote" | "e2b" | "daytona";
|
|
3954
3984
|
/**
|
|
3955
3985
|
* Required when type = "remote"
|
|
3956
3986
|
*/
|
|
@@ -4012,18 +4042,6 @@ interface CreateSandboxProviderConfig {
|
|
|
4012
4042
|
*/
|
|
4013
4043
|
declare function createSandboxProvider(config: CreateSandboxProviderConfig): SandboxProvider;
|
|
4014
4044
|
|
|
4015
|
-
declare class MicrosandboxInstance implements SandboxInstance {
|
|
4016
|
-
private native;
|
|
4017
|
-
readonly name: string;
|
|
4018
|
-
constructor(name: string, native: Sandbox);
|
|
4019
|
-
start(): Promise<void>;
|
|
4020
|
-
stop(): Promise<void>;
|
|
4021
|
-
kill(): Promise<void>;
|
|
4022
|
-
getStatus(): Promise<"running" | "stopped" | "unknown">;
|
|
4023
|
-
readonly file: SandboxFileService;
|
|
4024
|
-
readonly shell: SandboxShellService;
|
|
4025
|
-
}
|
|
4026
|
-
|
|
4027
4045
|
declare class MicrosandboxRemoteInstance implements SandboxInstance {
|
|
4028
4046
|
private readonly client;
|
|
4029
4047
|
readonly name: string;
|
|
@@ -4051,7 +4069,7 @@ declare class RemoteSandboxInstance implements SandboxInstance {
|
|
|
4051
4069
|
declare class E2BInstance implements SandboxInstance {
|
|
4052
4070
|
private native;
|
|
4053
4071
|
readonly name: string;
|
|
4054
|
-
constructor(name: string, native: Sandbox
|
|
4072
|
+
constructor(name: string, native: Sandbox);
|
|
4055
4073
|
start(): Promise<void>;
|
|
4056
4074
|
stop(): Promise<void>;
|
|
4057
4075
|
kill(): Promise<void>;
|
|
@@ -4063,7 +4081,7 @@ declare class E2BInstance implements SandboxInstance {
|
|
|
4063
4081
|
declare class DaytonaInstance implements SandboxInstance {
|
|
4064
4082
|
private native;
|
|
4065
4083
|
readonly name: string;
|
|
4066
|
-
constructor(name: string, native: Sandbox$
|
|
4084
|
+
constructor(name: string, native: Sandbox$1);
|
|
4067
4085
|
start(): Promise<void>;
|
|
4068
4086
|
stop(): Promise<void>;
|
|
4069
4087
|
kill(): Promise<void>;
|
|
@@ -5697,4 +5715,4 @@ interface SchedulerMiddlewareOptions {
|
|
|
5697
5715
|
}
|
|
5698
5716
|
declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
|
|
5699
5717
|
|
|
5700
|
-
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,
|
|
5718
|
+
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, 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, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, 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, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,9 @@ import { ReplaySubject } from 'rxjs';
|
|
|
23
23
|
import { Embeddings } from '@langchain/core/embeddings';
|
|
24
24
|
import { VectorStore } from '@langchain/core/vectorstores';
|
|
25
25
|
import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
|
|
26
|
-
import { FsEntry, Sandbox } from 'microsandbox';
|
|
27
26
|
import { SandboxClient } from '@agent-infra/sandbox';
|
|
28
|
-
import { Sandbox
|
|
29
|
-
import { Sandbox as Sandbox$
|
|
27
|
+
import { Sandbox } from 'e2b';
|
|
28
|
+
import { Sandbox as Sandbox$1 } from '@daytonaio/sdk';
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* BaseLatticeManager - 抽象基类,为各种Lattice管理器提供通用功能
|
|
@@ -2997,6 +2996,14 @@ declare class SandboxSkillStore implements SkillStore {
|
|
|
2997
2996
|
private sandboxManager?;
|
|
2998
2997
|
private defaultContext;
|
|
2999
2998
|
constructor(options?: SandboxSkillStoreOptions);
|
|
2999
|
+
/**
|
|
3000
|
+
* Build a Skill object from a built-in skill definition.
|
|
3001
|
+
*/
|
|
3002
|
+
private _builtInSkill;
|
|
3003
|
+
/**
|
|
3004
|
+
* Get all built-in skills as Skill objects for a tenant.
|
|
3005
|
+
*/
|
|
3006
|
+
private _allBuiltInSkills;
|
|
3000
3007
|
/**
|
|
3001
3008
|
* Get sandbox manager
|
|
3002
3009
|
*/
|
|
@@ -3685,6 +3692,42 @@ declare function parseSkillFrontmatter(content: string): {
|
|
|
3685
3692
|
*/
|
|
3686
3693
|
declare function buildSkillFile(meta: SkillMeta, body: string): string;
|
|
3687
3694
|
|
|
3695
|
+
/**
|
|
3696
|
+
* Built-in Skills
|
|
3697
|
+
*
|
|
3698
|
+
* Skills defined here are injected into the agent's available skill list
|
|
3699
|
+
* at runtime. They are NEVER written to the sandbox — they exist only in
|
|
3700
|
+
* memory and cannot be modified or deleted by the agent.
|
|
3701
|
+
*/
|
|
3702
|
+
|
|
3703
|
+
/**
|
|
3704
|
+
* Map of built-in skill name to full SKILL.md content.
|
|
3705
|
+
* Add new built-in skills here to make them automatically available.
|
|
3706
|
+
*/
|
|
3707
|
+
declare const BUILTIN_SKILLS: Record<string, string>;
|
|
3708
|
+
/**
|
|
3709
|
+
* Parse metadata from a built-in skill content.
|
|
3710
|
+
* Returns null if the skill content cannot be parsed.
|
|
3711
|
+
*/
|
|
3712
|
+
declare function getBuiltInSkillMeta(name: string): SkillMeta | null;
|
|
3713
|
+
/**
|
|
3714
|
+
* Get the full content of a built-in skill by name.
|
|
3715
|
+
* Returns undefined if the skill is not a built-in.
|
|
3716
|
+
*/
|
|
3717
|
+
declare function getBuiltInSkillContent(name: string): string | undefined;
|
|
3718
|
+
/**
|
|
3719
|
+
* Get metadata for all built-in skills.
|
|
3720
|
+
*/
|
|
3721
|
+
declare function getAllBuiltInSkillMetas(): SkillMeta[];
|
|
3722
|
+
/**
|
|
3723
|
+
* Get all built-in skill names.
|
|
3724
|
+
*/
|
|
3725
|
+
declare function getBuiltInSkillNames(): string[];
|
|
3726
|
+
/**
|
|
3727
|
+
* Check if a skill name refers to a built-in skill.
|
|
3728
|
+
*/
|
|
3729
|
+
declare function isBuiltInSkill(name: string): boolean;
|
|
3730
|
+
|
|
3688
3731
|
/**
|
|
3689
3732
|
* McpLatticeManager
|
|
3690
3733
|
*
|
|
@@ -3723,6 +3766,13 @@ declare class McpLatticeManager extends BaseLatticeManager<McpLatticeInterface>
|
|
|
3723
3766
|
}
|
|
3724
3767
|
declare const mcpManager: McpLatticeManager;
|
|
3725
3768
|
|
|
3769
|
+
interface FsEntry {
|
|
3770
|
+
path: string;
|
|
3771
|
+
kind: string;
|
|
3772
|
+
size: number;
|
|
3773
|
+
mode: number;
|
|
3774
|
+
modified: string | null;
|
|
3775
|
+
}
|
|
3726
3776
|
interface VolumeFsClient {
|
|
3727
3777
|
read(path: string): Promise<string>;
|
|
3728
3778
|
write(path: string, content: string): Promise<void>;
|
|
@@ -3740,25 +3790,6 @@ interface SandboxProvider {
|
|
|
3740
3790
|
createVolumeFsClient?(volumeName: string): VolumeFsClient;
|
|
3741
3791
|
}
|
|
3742
3792
|
|
|
3743
|
-
interface MicrosandboxProviderConfig {
|
|
3744
|
-
image?: string;
|
|
3745
|
-
cpus?: number;
|
|
3746
|
-
memoryMib?: number;
|
|
3747
|
-
env?: Record<string, string>;
|
|
3748
|
-
}
|
|
3749
|
-
declare const defaultMicrosandboxConfig: MicrosandboxProviderConfig;
|
|
3750
|
-
declare class MicrosandboxProvider implements SandboxProvider {
|
|
3751
|
-
private config;
|
|
3752
|
-
private instances;
|
|
3753
|
-
private creating;
|
|
3754
|
-
constructor(config?: MicrosandboxProviderConfig);
|
|
3755
|
-
createSandbox(name: string, config?: RunSandboxConfig): Promise<SandboxInstance>;
|
|
3756
|
-
getSandbox(name: string): Promise<SandboxInstance>;
|
|
3757
|
-
stopSandbox(name: string): Promise<void>;
|
|
3758
|
-
deleteSandbox(name: string): Promise<void>;
|
|
3759
|
-
listSandboxes(): Promise<SandboxInstance[]>;
|
|
3760
|
-
}
|
|
3761
|
-
|
|
3762
3793
|
type SandboxLifecycleResponse = {
|
|
3763
3794
|
name: string;
|
|
3764
3795
|
status: string;
|
|
@@ -3944,13 +3975,12 @@ declare class DaytonaProvider implements SandboxProvider {
|
|
|
3944
3975
|
interface CreateSandboxProviderConfig {
|
|
3945
3976
|
/**
|
|
3946
3977
|
* Provider type
|
|
3947
|
-
* - "microsandbox": local microVM via microsandbox SDK (requires KVM/Hypervisor)
|
|
3948
3978
|
* - "microsandbox-remote": remote microsandbox-service via dedicated HTTP client
|
|
3949
3979
|
* - "remote": remote sandbox service via @agent-infra/sandbox HTTP client
|
|
3950
3980
|
* - "e2b": E2B cloud sandbox (https://e2b.dev)
|
|
3951
3981
|
* - "daytona": Daytona cloud sandbox (https://daytona.io)
|
|
3952
3982
|
*/
|
|
3953
|
-
type: "microsandbox
|
|
3983
|
+
type: "microsandbox-remote" | "remote" | "e2b" | "daytona";
|
|
3954
3984
|
/**
|
|
3955
3985
|
* Required when type = "remote"
|
|
3956
3986
|
*/
|
|
@@ -4012,18 +4042,6 @@ interface CreateSandboxProviderConfig {
|
|
|
4012
4042
|
*/
|
|
4013
4043
|
declare function createSandboxProvider(config: CreateSandboxProviderConfig): SandboxProvider;
|
|
4014
4044
|
|
|
4015
|
-
declare class MicrosandboxInstance implements SandboxInstance {
|
|
4016
|
-
private native;
|
|
4017
|
-
readonly name: string;
|
|
4018
|
-
constructor(name: string, native: Sandbox);
|
|
4019
|
-
start(): Promise<void>;
|
|
4020
|
-
stop(): Promise<void>;
|
|
4021
|
-
kill(): Promise<void>;
|
|
4022
|
-
getStatus(): Promise<"running" | "stopped" | "unknown">;
|
|
4023
|
-
readonly file: SandboxFileService;
|
|
4024
|
-
readonly shell: SandboxShellService;
|
|
4025
|
-
}
|
|
4026
|
-
|
|
4027
4045
|
declare class MicrosandboxRemoteInstance implements SandboxInstance {
|
|
4028
4046
|
private readonly client;
|
|
4029
4047
|
readonly name: string;
|
|
@@ -4051,7 +4069,7 @@ declare class RemoteSandboxInstance implements SandboxInstance {
|
|
|
4051
4069
|
declare class E2BInstance implements SandboxInstance {
|
|
4052
4070
|
private native;
|
|
4053
4071
|
readonly name: string;
|
|
4054
|
-
constructor(name: string, native: Sandbox
|
|
4072
|
+
constructor(name: string, native: Sandbox);
|
|
4055
4073
|
start(): Promise<void>;
|
|
4056
4074
|
stop(): Promise<void>;
|
|
4057
4075
|
kill(): Promise<void>;
|
|
@@ -4063,7 +4081,7 @@ declare class E2BInstance implements SandboxInstance {
|
|
|
4063
4081
|
declare class DaytonaInstance implements SandboxInstance {
|
|
4064
4082
|
private native;
|
|
4065
4083
|
readonly name: string;
|
|
4066
|
-
constructor(name: string, native: Sandbox$
|
|
4084
|
+
constructor(name: string, native: Sandbox$1);
|
|
4067
4085
|
start(): Promise<void>;
|
|
4068
4086
|
stop(): Promise<void>;
|
|
4069
4087
|
kill(): Promise<void>;
|
|
@@ -5697,4 +5715,4 @@ interface SchedulerMiddlewareOptions {
|
|
|
5697
5715
|
}
|
|
5698
5716
|
declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
|
|
5699
5717
|
|
|
5700
|
-
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,
|
|
5718
|
+
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, 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, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, 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, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
|