@axiom-lattice/core 4.2.0 → 4.2.1
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 +639 -35
- package/dist/index.d.ts +639 -35
- package/dist/index.js +15811 -12347
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15668 -12227
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ 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, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InterruptPolicy, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } 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, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, CapabilityBundleStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, PluginSkillDefinition, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InterruptPolicy, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, CapabilityPreview, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } 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';
|
|
@@ -1588,6 +1588,22 @@ interface SandboxInstance {
|
|
|
1588
1588
|
getStatus(): Promise<"running" | "stopped" | "unknown">;
|
|
1589
1589
|
readonly file: SandboxFileService;
|
|
1590
1590
|
readonly shell: SandboxShellService;
|
|
1591
|
+
/**
|
|
1592
|
+
* Pack a directory into a provider-generated temporary ZIP file.
|
|
1593
|
+
*
|
|
1594
|
+
* Implementations may omit this capability. Local sandboxes accept only
|
|
1595
|
+
* paths rooted at `/project`; the returned path can be downloaded and then
|
|
1596
|
+
* deleted through the existing file service. Remote POSIX sandboxes run the
|
|
1597
|
+
* same safe shell-zip strategy through their shell service and therefore also
|
|
1598
|
+
* pack volume-backed folders visible inside the sandbox filesystem. The
|
|
1599
|
+
* returned `path` is always a sandbox-visible sibling (e.g.
|
|
1600
|
+
* `/project/data/reports.zip`).
|
|
1601
|
+
*/
|
|
1602
|
+
packDirectory?(sourcePath: string): Promise<{
|
|
1603
|
+
path: string;
|
|
1604
|
+
filename: string;
|
|
1605
|
+
size?: number;
|
|
1606
|
+
}>;
|
|
1591
1607
|
}
|
|
1592
1608
|
|
|
1593
1609
|
type SandboxIsolationLevel = "global" | "agent" | "project";
|
|
@@ -2670,8 +2686,8 @@ interface AddMessageParams {
|
|
|
2670
2686
|
threadId: string;
|
|
2671
2687
|
tenantId: string;
|
|
2672
2688
|
assistantId: string;
|
|
2673
|
-
workspaceId?: string;
|
|
2674
|
-
projectId?: string;
|
|
2689
|
+
workspaceId?: string | null;
|
|
2690
|
+
projectId?: string | null;
|
|
2675
2691
|
content: PendingMessageContent;
|
|
2676
2692
|
type?: "human" | "system";
|
|
2677
2693
|
priority?: number;
|
|
@@ -2683,24 +2699,26 @@ interface ThreadInfo {
|
|
|
2683
2699
|
tenantId: string;
|
|
2684
2700
|
assistantId: string;
|
|
2685
2701
|
threadId: string;
|
|
2686
|
-
workspaceId?: string;
|
|
2687
|
-
projectId?: string;
|
|
2702
|
+
workspaceId?: string | null;
|
|
2703
|
+
projectId?: string | null;
|
|
2688
2704
|
}
|
|
2705
|
+
type QueueScope = Pick<ThreadInfo, "tenantId" | "assistantId" | "workspaceId" | "projectId">;
|
|
2689
2706
|
/**
|
|
2690
2707
|
* Interface for message queue storage
|
|
2691
2708
|
* Implemented by pg-stores or other storage backends
|
|
2692
2709
|
*/
|
|
2693
2710
|
interface IMessageQueueStore {
|
|
2694
2711
|
addMessage(params: AddMessageParams): Promise<PendingMessage>;
|
|
2712
|
+
addMessageIfCapacity(params: AddMessageParams, maxSize: number): Promise<boolean>;
|
|
2695
2713
|
addMessageAtHead(params: AddMessageParams): Promise<PendingMessage>;
|
|
2696
|
-
getPendingMessages(threadId: string): Promise<PendingMessage[]>;
|
|
2697
|
-
getProcessingMessages(threadId: string): Promise<PendingMessage[]>;
|
|
2698
|
-
getQueueSize(threadId: string): Promise<number>;
|
|
2714
|
+
getPendingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
|
|
2715
|
+
getProcessingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
|
|
2716
|
+
getQueueSize(threadId: string, scope?: QueueScope): Promise<number>;
|
|
2699
2717
|
getThreadsWithPendingMessages(): Promise<ThreadInfo[]>;
|
|
2700
|
-
removeMessage(messageId: string): Promise<boolean>;
|
|
2701
|
-
clearMessages(threadId: string): Promise<void>;
|
|
2702
|
-
markProcessing(messageId: string): Promise<void>;
|
|
2703
|
-
resetProcessingToPending(threadId: string): Promise<number>;
|
|
2718
|
+
removeMessage(messageId: string, scope?: QueueScope): Promise<boolean>;
|
|
2719
|
+
clearMessages(threadId: string, scope?: QueueScope): Promise<void>;
|
|
2720
|
+
markProcessing(messageId: string, customRunConfig?: unknown, scope?: QueueScope): Promise<void>;
|
|
2721
|
+
resetProcessingToPending(threadId: string, scope?: QueueScope): Promise<number>;
|
|
2704
2722
|
}
|
|
2705
2723
|
/**
|
|
2706
2724
|
* Agent executor function type
|
|
@@ -2718,13 +2736,28 @@ type LangGraphStateChecker = (tenantId: string, assistantId: string, threadId: s
|
|
|
2718
2736
|
* Returns an async iterable for streaming responses
|
|
2719
2737
|
*/
|
|
2720
2738
|
type AgentStreamExecutor = (tenantId: string, assistantId: string, threadId: string, input: any) => AsyncIterable<any>;
|
|
2739
|
+
/** A JSON-safe value accepted within a structured message content part. */
|
|
2740
|
+
type MessageContentValue = null | boolean | number | string | {
|
|
2741
|
+
[key: string]: MessageContentValue;
|
|
2742
|
+
} | MessageContentValue[];
|
|
2743
|
+
/** A provider-compatible structured message content part. */
|
|
2744
|
+
type MessageContentPart = {
|
|
2745
|
+
[key: string]: MessageContentValue;
|
|
2746
|
+
};
|
|
2747
|
+
/**
|
|
2748
|
+
* Queue-safe message content accepted by Agent inputs.
|
|
2749
|
+
*
|
|
2750
|
+
* Structured content remains JSON-serializable while supporting provider
|
|
2751
|
+
* content parts such as `{ type: "text", text: "hello" }`.
|
|
2752
|
+
*/
|
|
2753
|
+
type MessageContent = string | [MessageContentPart, ...MessageContentPart[]];
|
|
2721
2754
|
/**
|
|
2722
2755
|
* Message-like structure for normalized message input
|
|
2723
2756
|
* Supports both simple string content and structured message objects
|
|
2724
2757
|
*/
|
|
2725
2758
|
interface MessageLike {
|
|
2726
2759
|
role: "human" | "system" | "assistant" | "tool";
|
|
2727
|
-
content:
|
|
2760
|
+
content: MessageContent;
|
|
2728
2761
|
id?: string;
|
|
2729
2762
|
metadata?: Record<string, unknown>;
|
|
2730
2763
|
}
|
|
@@ -2764,6 +2797,7 @@ type StoreTypeMap = {
|
|
|
2764
2797
|
connection: ConnectionStore;
|
|
2765
2798
|
taskWorkItem: TaskWorkItemStore;
|
|
2766
2799
|
agentWebApp: AgentWebAppStore;
|
|
2800
|
+
capabilityBundle: CapabilityBundleStore;
|
|
2767
2801
|
};
|
|
2768
2802
|
/**
|
|
2769
2803
|
* Store type keys
|
|
@@ -3011,6 +3045,86 @@ declare class InMemoryAgentWebAppStore implements AgentWebAppStore {
|
|
|
3011
3045
|
delete(tenantId: string, webAppId: string): Promise<boolean>;
|
|
3012
3046
|
}
|
|
3013
3047
|
|
|
3048
|
+
/** Coordinates capability Bundle existence checks with Project updates in memory. */
|
|
3049
|
+
declare class InMemoryCapabilityBundleCoordinator {
|
|
3050
|
+
private readonly bundleKeys;
|
|
3051
|
+
private readonly revisions;
|
|
3052
|
+
private readonly tenantUpdates;
|
|
3053
|
+
/** Serializes Project and Bundle reference changes for one tenant. */
|
|
3054
|
+
runProjectUpdate<T>(tenantId: string, projectId: string, update: () => Promise<T> | T): Promise<T>;
|
|
3055
|
+
/** Records a tenant Bundle as present. */
|
|
3056
|
+
add(tenantId: string, bundleId: string, revision?: string): void;
|
|
3057
|
+
/** Removes a tenant Bundle. */
|
|
3058
|
+
remove(tenantId: string, bundleId: string): void;
|
|
3059
|
+
/** Checks all requested Bundle IDs without yielding to another operation. */
|
|
3060
|
+
hasAll(tenantId: string, bundleIds: string[]): boolean;
|
|
3061
|
+
hasAllAtRevisions(tenantId: string, bundleIds: string[], expected: Record<string, string>): boolean;
|
|
3062
|
+
setRevision(tenantId: string, bundleId: string, revision: string): void;
|
|
3063
|
+
private key;
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* InMemoryProjectStore
|
|
3068
|
+
*
|
|
3069
|
+
* In-memory implementation of ProjectStore
|
|
3070
|
+
* Provides CRUD operations for project data stored in memory
|
|
3071
|
+
*/
|
|
3072
|
+
|
|
3073
|
+
declare class InMemoryProjectStore implements ProjectStore {
|
|
3074
|
+
readonly capabilityBundles: InMemoryCapabilityBundleCoordinator;
|
|
3075
|
+
private projects;
|
|
3076
|
+
constructor(capabilityBundles?: InMemoryCapabilityBundleCoordinator);
|
|
3077
|
+
private initDefaultData;
|
|
3078
|
+
private getKey;
|
|
3079
|
+
getProjectsByWorkspace(tenantId: string, workspaceId: string): Promise<Project[]>;
|
|
3080
|
+
getProjectById(tenantId: string, id: string): Promise<Project | null>;
|
|
3081
|
+
createProject(tenantId: string, workspaceId: string, id: string, data: CreateProjectRequest): Promise<Project>;
|
|
3082
|
+
/**
|
|
3083
|
+
* Update an existing project
|
|
3084
|
+
*
|
|
3085
|
+
* @remarks
|
|
3086
|
+
* - The `config` field uses **replace** semantics: if provided, it completely
|
|
3087
|
+
* overwrites the existing config. To preserve the current config, omit this field.
|
|
3088
|
+
*/
|
|
3089
|
+
updateProject(tenantId: string, id: string, updates: UpdateProjectRequest): Promise<Project | null>;
|
|
3090
|
+
deleteProject(tenantId: string, id: string): Promise<boolean>;
|
|
3091
|
+
updateCapabilityBundleIds(tenantId: string, projectId: string, bundleIds: string[], expectedRevisions?: Record<string, string>): Promise<UpdateProjectCapabilityBundlesResult>;
|
|
3092
|
+
isCapabilityBundleReferenced(tenantId: string, bundleId: string): Promise<boolean>;
|
|
3093
|
+
/** Checks bundle references synchronously for in-process atomic coordination. */
|
|
3094
|
+
isCapabilityBundleReferencedSync(tenantId: string, bundleId: string): boolean;
|
|
3095
|
+
clear(): void;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
/**
|
|
3099
|
+
* Stores tenant-isolated capability bundles in process memory.
|
|
3100
|
+
*
|
|
3101
|
+
* Values are cloned on write and read so callers cannot mutate persisted
|
|
3102
|
+
* middleware configuration through retained nested references.
|
|
3103
|
+
*
|
|
3104
|
+
* @example
|
|
3105
|
+
* ```ts
|
|
3106
|
+
* const store = new InMemoryCapabilityBundleStore(projectStore);
|
|
3107
|
+
* const bundle = await store.create("tenant-1", input);
|
|
3108
|
+
* ```
|
|
3109
|
+
*/
|
|
3110
|
+
declare class InMemoryCapabilityBundleStore implements CapabilityBundleStore {
|
|
3111
|
+
private readonly projectStore;
|
|
3112
|
+
private readonly coordinator;
|
|
3113
|
+
private readonly bundles;
|
|
3114
|
+
/** Creates an in-memory bundle store coordinated with its Project store. */
|
|
3115
|
+
constructor(projectStore: InMemoryProjectStore, coordinator?: InMemoryCapabilityBundleCoordinator);
|
|
3116
|
+
private key;
|
|
3117
|
+
private hasKey;
|
|
3118
|
+
listByTenant(tenantId: string): Promise<CapabilityBundle[]>;
|
|
3119
|
+
getById(tenantId: string, id: string): Promise<CapabilityBundle | null>;
|
|
3120
|
+
getManyByIds(tenantId: string, ids: string[]): Promise<CapabilityBundle[]>;
|
|
3121
|
+
create(tenantId: string, input: InternalCreateCapabilityBundleInput): Promise<CapabilityBundle>;
|
|
3122
|
+
update(tenantId: string, id: string, input: InternalUpdateCapabilityBundleInput): Promise<CapabilityBundle | {
|
|
3123
|
+
status: "conflict";
|
|
3124
|
+
} | null>;
|
|
3125
|
+
deleteIfUnreferenced(tenantId: string, id: string): Promise<CapabilityBundleDeleteResult>;
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3014
3128
|
/**
|
|
3015
3129
|
* FileSystemSkillStore
|
|
3016
3130
|
*
|
|
@@ -3593,18 +3707,21 @@ declare class InMemoryA2AApiKeyStore implements A2AApiKeyStore {
|
|
|
3593
3707
|
declare class InMemoryThreadMessageQueueStore implements IMessageQueueStore {
|
|
3594
3708
|
private messages;
|
|
3595
3709
|
private messageIdCounter;
|
|
3710
|
+
private capacityTail;
|
|
3596
3711
|
private generateId;
|
|
3597
3712
|
private getMessagesForThread;
|
|
3713
|
+
private inScope;
|
|
3598
3714
|
addMessage(params: AddMessageParams): Promise<PendingMessage>;
|
|
3715
|
+
addMessageIfCapacity(params: AddMessageParams, maxSize: number): Promise<boolean>;
|
|
3599
3716
|
addMessageAtHead(params: AddMessageParams): Promise<PendingMessage>;
|
|
3600
|
-
getPendingMessages(threadId: string): Promise<PendingMessage[]>;
|
|
3601
|
-
getProcessingMessages(threadId: string): Promise<PendingMessage[]>;
|
|
3602
|
-
getQueueSize(threadId: string): Promise<number>;
|
|
3717
|
+
getPendingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
|
|
3718
|
+
getProcessingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
|
|
3719
|
+
getQueueSize(threadId: string, scope?: QueueScope): Promise<number>;
|
|
3603
3720
|
getThreadsWithPendingMessages(): Promise<ThreadInfo[]>;
|
|
3604
|
-
removeMessage(messageId: string): Promise<boolean>;
|
|
3605
|
-
clearMessages(threadId: string): Promise<void>;
|
|
3606
|
-
markProcessing(messageId: string): Promise<void>;
|
|
3607
|
-
resetProcessingToPending(threadId: string): Promise<number>;
|
|
3721
|
+
removeMessage(messageId: string, scope?: QueueScope): Promise<boolean>;
|
|
3722
|
+
clearMessages(threadId: string, scope?: QueueScope): Promise<void>;
|
|
3723
|
+
markProcessing(messageId: string, customRunConfig?: unknown, scope?: QueueScope): Promise<void>;
|
|
3724
|
+
resetProcessingToPending(threadId: string, scope?: QueueScope): Promise<number>;
|
|
3608
3725
|
}
|
|
3609
3726
|
|
|
3610
3727
|
/**
|
|
@@ -4440,14 +4557,56 @@ declare function getBuiltInSkillNames(): string[];
|
|
|
4440
4557
|
* Check if a skill name refers to a built-in skill.
|
|
4441
4558
|
*/
|
|
4442
4559
|
declare function isBuiltInSkill(name: string): boolean;
|
|
4560
|
+
|
|
4561
|
+
declare const SAFE_PATH_COMPONENT: RegExp;
|
|
4443
4562
|
/**
|
|
4444
|
-
*
|
|
4445
|
-
*
|
|
4446
|
-
*
|
|
4563
|
+
* Ensure a versioned plugin skill bundle is available in a runtime sandbox.
|
|
4564
|
+
*
|
|
4565
|
+
* @param sandbox - Runtime sandbox receiving the bundle files.
|
|
4566
|
+
* @param pluginType - Plugin that owns the skill.
|
|
4567
|
+
* @param skillName - Skill name used for its sandbox directory.
|
|
4568
|
+
* @param definition - Versioned markdown and text-resource bundle.
|
|
4569
|
+
* @param lockKey - Stable skills-volume identity, normally the tenant ID. Calls
|
|
4570
|
+
* sharing a skills volume must use the same value; different tenants must use
|
|
4571
|
+
* different values.
|
|
4572
|
+
* @returns A promise that resolves after the bundle and manifest are written.
|
|
4447
4573
|
*
|
|
4448
|
-
*
|
|
4574
|
+
* @example
|
|
4575
|
+
* ```ts
|
|
4576
|
+
* await ensurePluginSkillInSandbox(
|
|
4577
|
+
* sandbox,
|
|
4578
|
+
* "acme",
|
|
4579
|
+
* "acme-guide",
|
|
4580
|
+
* {
|
|
4581
|
+
* version: "1.2.0",
|
|
4582
|
+
* content: "---\nname: acme-guide\ndescription: Acme usage\n---\n",
|
|
4583
|
+
* resources: {
|
|
4584
|
+
* "templates/request.json": { content: '{"method":"POST"}' },
|
|
4585
|
+
* },
|
|
4586
|
+
* },
|
|
4587
|
+
* "agent-runtime"
|
|
4588
|
+
* );
|
|
4589
|
+
* ```
|
|
4449
4590
|
*/
|
|
4450
|
-
declare function
|
|
4591
|
+
declare function ensurePluginSkillInSandbox(sandbox: SandboxInstance, pluginType: string, skillName: string, definition: PluginSkillDefinition, lockKey: string): Promise<void>;
|
|
4592
|
+
/**
|
|
4593
|
+
* Check whether a sandbox skill directory is owned by the plugin synchronizer.
|
|
4594
|
+
*
|
|
4595
|
+
* @param sandbox - Runtime sandbox containing the skill manifest.
|
|
4596
|
+
* @param skillName - Skill directory name to inspect.
|
|
4597
|
+
* @returns True when the manifest identifies the skill as plugin-managed.
|
|
4598
|
+
*/
|
|
4599
|
+
declare function isPluginSkillManagedInSandbox(sandbox: SandboxInstance, skillName: string): Promise<boolean>;
|
|
4600
|
+
/** Check whether a manifest-owned skill has the expected live plugin owner. */
|
|
4601
|
+
declare function isPluginSkillAuthorizedInSandbox(sandbox: SandboxInstance, skillName: string, pluginType: string): Promise<boolean>;
|
|
4602
|
+
/** Return the synchronized manifest version for a skill, if plugin-managed. */
|
|
4603
|
+
declare function getPluginSkillManifestVersion(sandbox: SandboxInstance, skillName: string): Promise<string | undefined>;
|
|
4604
|
+
/**
|
|
4605
|
+
* Keep every path component safe for the shell-interpolated Daytona mkdir
|
|
4606
|
+
* command: ASCII letters, digits, dot, underscore, and hyphen only; no empty,
|
|
4607
|
+
* dot, or parent components, separators, whitespace, or shell metacharacters.
|
|
4608
|
+
*/
|
|
4609
|
+
declare function validateRelativePath(value: string, kind: string): void;
|
|
4451
4610
|
|
|
4452
4611
|
/**
|
|
4453
4612
|
* CollectionLatticeManager
|
|
@@ -4488,7 +4647,7 @@ declare function buildTableName(tenantId: string, name: string): string;
|
|
|
4488
4647
|
/**
|
|
4489
4648
|
* Get or create a tenant-isolated VectorStore for a collection.
|
|
4490
4649
|
*/
|
|
4491
|
-
declare function getOrCreateCollectionVectorStore(name: string, embeddingKey: string, tenantId: string, providerKey?: string): Promise<
|
|
4650
|
+
declare function getOrCreateCollectionVectorStore(name: string, embeddingKey: string, tenantId: string, providerKey?: string): Promise<VectorStore>;
|
|
4492
4651
|
/**
|
|
4493
4652
|
* Get entry count for a collection.
|
|
4494
4653
|
* Tries vector store's native method first, falls back to provider.
|
|
@@ -5058,6 +5217,24 @@ declare class MicrosandboxRemoteInstance implements SandboxInstance {
|
|
|
5058
5217
|
stop(): Promise<void>;
|
|
5059
5218
|
kill(): Promise<void>;
|
|
5060
5219
|
getStatus(): Promise<"running" | "stopped" | "unknown">;
|
|
5220
|
+
/**
|
|
5221
|
+
* Pack a sandbox folder into a sibling ZIP through the microsandbox shell.
|
|
5222
|
+
*
|
|
5223
|
+
* The command runs inside the POSIX container, so mounted volume-backed
|
|
5224
|
+
* folders are packed from their on-disk location just like any other sandbox
|
|
5225
|
+
* folder. Paths use the external virtual convention (`/project/...`) and the
|
|
5226
|
+
* command is cwd-independent because the microsandbox shell service does not
|
|
5227
|
+
* honor `exec_dir`. The returned archive path can be downloaded and deleted
|
|
5228
|
+
* through the existing file service.
|
|
5229
|
+
*
|
|
5230
|
+
* @param sourcePath - Sandbox-visible absolute source folder path rooted at `/project`
|
|
5231
|
+
* @returns The sibling archive path, download filename, and exact byte size
|
|
5232
|
+
*/
|
|
5233
|
+
packDirectory(sourcePath: string): Promise<{
|
|
5234
|
+
path: string;
|
|
5235
|
+
filename: string;
|
|
5236
|
+
size?: number;
|
|
5237
|
+
}>;
|
|
5061
5238
|
readonly file: SandboxFileService;
|
|
5062
5239
|
readonly shell: SandboxShellService;
|
|
5063
5240
|
}
|
|
@@ -5074,10 +5251,129 @@ declare class RemoteSandboxInstance implements SandboxInstance {
|
|
|
5074
5251
|
stop(): Promise<void>;
|
|
5075
5252
|
kill(): Promise<void>;
|
|
5076
5253
|
getStatus(): Promise<"running" | "stopped" | "unknown">;
|
|
5254
|
+
/**
|
|
5255
|
+
* Pack a sandbox folder into a sibling ZIP through the remote shell service.
|
|
5256
|
+
*
|
|
5257
|
+
* The command runs inside the remote POSIX sandbox, so mounted volume-backed
|
|
5258
|
+
* folders are packed from their on-disk location just like any other sandbox
|
|
5259
|
+
* folder. The returned archive path is the sandbox-visible sibling (e.g.
|
|
5260
|
+
* `/project/data/reports.zip`) and can be downloaded and deleted through the
|
|
5261
|
+
* existing file service.
|
|
5262
|
+
*
|
|
5263
|
+
* @param sourcePath - Sandbox-visible absolute source folder path rooted at `/project`
|
|
5264
|
+
* @returns The sibling archive path, download filename, and exact byte size
|
|
5265
|
+
*/
|
|
5266
|
+
packDirectory(sourcePath: string): Promise<{
|
|
5267
|
+
path: string;
|
|
5268
|
+
filename: string;
|
|
5269
|
+
size?: number;
|
|
5270
|
+
}>;
|
|
5077
5271
|
readonly file: SandboxFileService;
|
|
5078
5272
|
readonly shell: SandboxShellService;
|
|
5079
5273
|
}
|
|
5080
5274
|
|
|
5275
|
+
/**
|
|
5276
|
+
* Shared packing policy for `SandboxInstance.packDirectory`.
|
|
5277
|
+
*
|
|
5278
|
+
* Local and remote sandbox instances agree on the same source-path contract
|
|
5279
|
+
* (must be rooted at `/project`, no traversal, no backslashes) and the same
|
|
5280
|
+
* entry/size limits. Remote instances additionally run the whole safe shell
|
|
5281
|
+
* strategy (in-shell preflight, exclusive sibling lock, randomized temporary
|
|
5282
|
+
* directory, trap cleanup, atomic no-clobber finalize) through their existing
|
|
5283
|
+
* shell service, because Node cannot open a sandbox file handle remotely.
|
|
5284
|
+
*/
|
|
5285
|
+
declare const MAX_PACK_ENTRIES = 10000;
|
|
5286
|
+
declare const MAX_PACK_FILE_BYTES: number;
|
|
5287
|
+
declare const MAX_PACK_TOTAL_BYTES: number;
|
|
5288
|
+
/** Maximum wall-clock time for one remote/local folder pack shell invocation. */
|
|
5289
|
+
declare const PACK_DIRECTORY_TIMEOUT_SECONDS: number;
|
|
5290
|
+
/** Result of validating a pack source path. */
|
|
5291
|
+
interface PackSourceInfo {
|
|
5292
|
+
/** Basename of the source folder, e.g. `reports`. */
|
|
5293
|
+
rootName: string;
|
|
5294
|
+
/** Download archive name, e.g. `reports.zip`. */
|
|
5295
|
+
filename: string;
|
|
5296
|
+
/** Sandbox-visible sibling archive path, e.g. `/project/data/reports.zip`. */
|
|
5297
|
+
archivePath: string;
|
|
5298
|
+
}
|
|
5299
|
+
/**
|
|
5300
|
+
* Validate a sandbox folder path that may be packed.
|
|
5301
|
+
*
|
|
5302
|
+
* Accepts only absolute paths rooted at `/project` (the project root) with no
|
|
5303
|
+
* empty/`.`/`..` components and no backslashes. Rejects anything else with a
|
|
5304
|
+
* descriptive error before any shell command is sent.
|
|
5305
|
+
*
|
|
5306
|
+
* @param sourcePath - Sandbox-visible absolute source folder path
|
|
5307
|
+
* @returns Derived source basename, archive filename, and sibling archive path
|
|
5308
|
+
* @example
|
|
5309
|
+
* ```ts
|
|
5310
|
+
* const { rootName, filename, archivePath } = validatePackSourcePath("/project/data/reports");
|
|
5311
|
+
* // rootName: "reports", filename: "reports.zip", archivePath: "/project/data/reports.zip"
|
|
5312
|
+
* ```
|
|
5313
|
+
*/
|
|
5314
|
+
declare function validatePackSourcePath(sourcePath: string): PackSourceInfo;
|
|
5315
|
+
/**
|
|
5316
|
+
* Build the complete `/bin/sh` command that packs one sandbox folder.
|
|
5317
|
+
*
|
|
5318
|
+
* The command is cwd-independent: it `cd`s to `parentDir` and packs
|
|
5319
|
+
* `./<sourceName>` into a randomized sibling temporary directory, so it works
|
|
5320
|
+
* both through `shell.execCommand({ exec_dir })` and through shells that ignore
|
|
5321
|
+
* `exec_dir` entirely. It performs a metadata-only preflight (no file content
|
|
5322
|
+
* reads) that rejects symlinks, FIFO/socket/device entries, entry-count
|
|
5323
|
+
* overflow, and per-file/total size overflow before invoking `zip`. The final
|
|
5324
|
+
* archive is committed with an atomic hard-link `ln` so an existing sibling
|
|
5325
|
+
* (file, directory, or symlink) is never overwritten, and an exclusive `mkdir`
|
|
5326
|
+
* lock plus an `EXIT` trap remove only artifacts owned by this invocation. The
|
|
5327
|
+
* last stdout line reports the exact archive size as `PACK_SIZE=<bytes>`.
|
|
5328
|
+
*
|
|
5329
|
+
* The command targets `/bin/sh` with the common Linux find extensions used by
|
|
5330
|
+
* GNU and busybox (`-print0`, the `c` byte suffix for `-size`); it is not
|
|
5331
|
+
* guaranteed to run on other POSIX-only `sh` implementations. The sandbox
|
|
5332
|
+
* image must provide `zip` (Info-ZIP) on `PATH`.
|
|
5333
|
+
*
|
|
5334
|
+
* @param parentDir - Absolute physical path of the source folder's parent
|
|
5335
|
+
* @param sourceName - Source folder basename
|
|
5336
|
+
* @param archiveName - Archive filename (`<sourceName>.zip`)
|
|
5337
|
+
* @returns A `/bin/sh`-compatible command string
|
|
5338
|
+
* @example
|
|
5339
|
+
* ```ts
|
|
5340
|
+
* buildRemotePackDirectoryCommand("/workspace/project/data", "reports", "reports.zip");
|
|
5341
|
+
* ```
|
|
5342
|
+
*/
|
|
5343
|
+
declare function buildRemotePackDirectoryCommand(parentDir: string, sourceName: string, archiveName: string): string;
|
|
5344
|
+
/**
|
|
5345
|
+
* Extract the exact packed archive byte size from a remote pack command output.
|
|
5346
|
+
*
|
|
5347
|
+
* @param output - Combined shell stdout/stderr
|
|
5348
|
+
* @returns The archive size in bytes, or `undefined` when the command did not
|
|
5349
|
+
* report one (for example when preflight or `zip` failed)
|
|
5350
|
+
*/
|
|
5351
|
+
declare function parsePackSize(output: string): number | undefined;
|
|
5352
|
+
/**
|
|
5353
|
+
* Run a remote `packDirectory` through a shell service.
|
|
5354
|
+
*
|
|
5355
|
+
* Validates the source path, executes the shared safe shell-zip command from
|
|
5356
|
+
* `physicalParentDir`, and returns the sandbox-visible sibling archive path,
|
|
5357
|
+
* download filename, and exact byte size parsed from the shell output. Errors
|
|
5358
|
+
* (invalid source, preflight failure, `zip` failure, missing size) throw with a
|
|
5359
|
+
* descriptive message.
|
|
5360
|
+
*
|
|
5361
|
+
* @param shell - Sandbox shell service that executes the command remotely
|
|
5362
|
+
* @param sourcePath - Sandbox-visible absolute source folder path
|
|
5363
|
+
* @param physicalParentDir - Physical absolute parent directory of the source on
|
|
5364
|
+
* the remote host (already resolved for the instance's path convention)
|
|
5365
|
+
* @returns The packed archive location and metadata
|
|
5366
|
+
* @example
|
|
5367
|
+
* ```ts
|
|
5368
|
+
* const packed = await runRemotePackDirectory(instance.shell, "/project/data/reports", "/workspace/project/data");
|
|
5369
|
+
* ```
|
|
5370
|
+
*/
|
|
5371
|
+
declare function runRemotePackDirectory(shell: SandboxShellService, sourcePath: string, physicalParentDir: string): Promise<{
|
|
5372
|
+
path: string;
|
|
5373
|
+
filename: string;
|
|
5374
|
+
size: number;
|
|
5375
|
+
}>;
|
|
5376
|
+
|
|
5081
5377
|
declare class E2BInstance implements SandboxInstance {
|
|
5082
5378
|
private native;
|
|
5083
5379
|
readonly name: string;
|
|
@@ -5123,6 +5419,11 @@ declare class LocalSandboxInstance implements SandboxInstance {
|
|
|
5123
5419
|
stop(): Promise<void>;
|
|
5124
5420
|
kill(): Promise<void>;
|
|
5125
5421
|
getStatus(): Promise<"running" | "stopped" | "unknown">;
|
|
5422
|
+
packDirectory(sourcePath: string): Promise<{
|
|
5423
|
+
path: string;
|
|
5424
|
+
filename: string;
|
|
5425
|
+
size?: number;
|
|
5426
|
+
}>;
|
|
5126
5427
|
readonly file: SandboxFileService;
|
|
5127
5428
|
readonly shell: SandboxShellService;
|
|
5128
5429
|
private walkDir;
|
|
@@ -7031,6 +7332,13 @@ declare enum ThreadStatus {
|
|
|
7031
7332
|
INTERRUPTED = "interrupted",
|
|
7032
7333
|
ERROR = "error"
|
|
7033
7334
|
}
|
|
7335
|
+
/** Result of attempting to recover a persisted checkpoint. */
|
|
7336
|
+
interface ResumeTaskResult {
|
|
7337
|
+
/** Graph status observed after the recovery attempt. */
|
|
7338
|
+
status: ThreadStatus;
|
|
7339
|
+
/** Whether processing rows are settled and pending queue work may continue. */
|
|
7340
|
+
settled: boolean;
|
|
7341
|
+
}
|
|
7034
7342
|
/**
|
|
7035
7343
|
* Snapshot of a thread's current state including queue and status.
|
|
7036
7344
|
*
|
|
@@ -7177,8 +7485,8 @@ interface AgentThreadInterface {
|
|
|
7177
7485
|
assistant_id: string;
|
|
7178
7486
|
thread_id: string;
|
|
7179
7487
|
tenant_id: string;
|
|
7180
|
-
workspace_id?: string;
|
|
7181
|
-
project_id?: string;
|
|
7488
|
+
workspace_id?: string | null;
|
|
7489
|
+
project_id?: string | null;
|
|
7182
7490
|
custom_run_config?: any;
|
|
7183
7491
|
}
|
|
7184
7492
|
/**
|
|
@@ -7233,11 +7541,15 @@ declare class Agent {
|
|
|
7233
7541
|
private stateChecker;
|
|
7234
7542
|
private chunkBuffer;
|
|
7235
7543
|
private abortController;
|
|
7544
|
+
private queueProcessorPromise?;
|
|
7545
|
+
private checkpointRecoveryBlocked;
|
|
7236
7546
|
assistant_id: string;
|
|
7237
7547
|
thread_id: string;
|
|
7238
7548
|
tenant_id: string;
|
|
7239
7549
|
workspace_id: string;
|
|
7240
7550
|
project_id: string;
|
|
7551
|
+
private queue_workspace_id;
|
|
7552
|
+
private queue_project_id;
|
|
7241
7553
|
custom_run_config: any;
|
|
7242
7554
|
queueMode: ThreadQueueConfig;
|
|
7243
7555
|
private isWaitingForQueueEnd;
|
|
@@ -7252,6 +7564,7 @@ declare class Agent {
|
|
|
7252
7564
|
*/
|
|
7253
7565
|
constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
|
|
7254
7566
|
private getHumanPendingContent;
|
|
7567
|
+
private queuedInputMessages;
|
|
7255
7568
|
/**
|
|
7256
7569
|
* Initialize with message queue store
|
|
7257
7570
|
*/
|
|
@@ -7276,13 +7589,16 @@ declare class Agent {
|
|
|
7276
7589
|
chunkStream(message_id: string, stopTypes?: MessageChunkType[]): {
|
|
7277
7590
|
[Symbol.asyncIterator]: () => AsyncGenerator<MessageChunk, void, unknown>;
|
|
7278
7591
|
};
|
|
7279
|
-
|
|
7592
|
+
private buildExecutionRunConfig;
|
|
7593
|
+
getLatticeClientAndRuntimeConfig(custom_run_config?: Record<string, unknown>, expectedRevision?: string): Promise<{
|
|
7280
7594
|
runnable_agent: AgentClient;
|
|
7281
|
-
runConfig:
|
|
7595
|
+
runConfig: Record<string, unknown>;
|
|
7282
7596
|
}>;
|
|
7597
|
+
private getLatticeClient;
|
|
7283
7598
|
invoke(queueMessage: QueueMessage, signal?: AbortSignal): Promise<{
|
|
7284
7599
|
messages: any;
|
|
7285
7600
|
}>;
|
|
7601
|
+
private validateMessageInput;
|
|
7286
7602
|
/**
|
|
7287
7603
|
* Like {@link invoke} but returns the full LangGraph state (all annotations)
|
|
7288
7604
|
* instead of only messages. Messages are serialized to dicts; other state
|
|
@@ -7305,7 +7621,9 @@ declare class Agent {
|
|
|
7305
7621
|
}[];
|
|
7306
7622
|
}>;
|
|
7307
7623
|
private agentExecutor;
|
|
7624
|
+
private interruptedCommandCapabilityRevision;
|
|
7308
7625
|
getPendingMessages(): Promise<PendingMessage[]>;
|
|
7626
|
+
private queueScope;
|
|
7309
7627
|
private agentStreamExecutor;
|
|
7310
7628
|
private consumeAgentStream;
|
|
7311
7629
|
/**
|
|
@@ -7380,6 +7698,7 @@ declare class Agent {
|
|
|
7380
7698
|
* loop with a fresh {@link AbortController}.
|
|
7381
7699
|
*/
|
|
7382
7700
|
startQueueProcessorIfNeeded(): Promise<void>;
|
|
7701
|
+
private runQueueProcessor;
|
|
7383
7702
|
/**
|
|
7384
7703
|
* Remove pending message
|
|
7385
7704
|
*/
|
|
@@ -7433,7 +7752,7 @@ declare class Agent {
|
|
|
7433
7752
|
* Called during gateway startup to recover threads that were mid-execution
|
|
7434
7753
|
* when the server went down.
|
|
7435
7754
|
*/
|
|
7436
|
-
resumeTask(): Promise<
|
|
7755
|
+
resumeTask(): Promise<ResumeTaskResult>;
|
|
7437
7756
|
/**
|
|
7438
7757
|
* Fully abort all activity on this thread.
|
|
7439
7758
|
*
|
|
@@ -7561,8 +7880,8 @@ declare const agentInstanceManager: AgentInstanceManager;
|
|
|
7561
7880
|
* A single structured belief report attached to a task completion.
|
|
7562
7881
|
*
|
|
7563
7882
|
* Mirrors the `manage_task.beliefImpact` tool field: the reporting task claims
|
|
7564
|
-
* that, after execution, the named Belief Key
|
|
7565
|
-
*
|
|
7883
|
+
* that, after execution, the named Belief Key has `after` percent evidence
|
|
7884
|
+
* support, accompanied by a qualitative status and evidence in `basis`.
|
|
7566
7885
|
*/
|
|
7567
7886
|
interface BeliefImpactInput {
|
|
7568
7887
|
key: string;
|
|
@@ -7582,6 +7901,7 @@ interface LifecycleWarning {
|
|
|
7582
7901
|
type LifecycleResult = {
|
|
7583
7902
|
success: true;
|
|
7584
7903
|
task: TaskItem;
|
|
7904
|
+
mutated: boolean;
|
|
7585
7905
|
evidenceId?: string;
|
|
7586
7906
|
eventKey?: string;
|
|
7587
7907
|
warnings?: LifecycleWarning[];
|
|
@@ -7980,6 +8300,27 @@ declare class CustomMiddlewareRegistry {
|
|
|
7980
8300
|
static list(): string[];
|
|
7981
8301
|
}
|
|
7982
8302
|
|
|
8303
|
+
/**
|
|
8304
|
+
* Catalog metadata for a single registered plugin skill.
|
|
8305
|
+
* Used to expose plugin skills through the read-only system skill catalog.
|
|
8306
|
+
*/
|
|
8307
|
+
interface PluginSkillCatalogItem {
|
|
8308
|
+
/** Skill id (plugin skill key). */
|
|
8309
|
+
id: string;
|
|
8310
|
+
/** Skill name parsed from SKILL.md frontmatter. */
|
|
8311
|
+
name: string;
|
|
8312
|
+
/** Skill description parsed from SKILL.md frontmatter. */
|
|
8313
|
+
description: string;
|
|
8314
|
+
/** Plugin skill bundle version. */
|
|
8315
|
+
version: string;
|
|
8316
|
+
/** Owning plugin type. */
|
|
8317
|
+
pluginType: string;
|
|
8318
|
+
/** Safe relative paths of bundled resources with their MIME types. */
|
|
8319
|
+
resourcePaths: Array<{
|
|
8320
|
+
path: string;
|
|
8321
|
+
mimeType?: string;
|
|
8322
|
+
}>;
|
|
8323
|
+
}
|
|
7983
8324
|
/**
|
|
7984
8325
|
* Plugin registry.
|
|
7985
8326
|
*
|
|
@@ -7994,12 +8335,37 @@ declare class PluginRegistry {
|
|
|
7994
8335
|
static unregister(key: string): boolean;
|
|
7995
8336
|
/** Get plugin instance */
|
|
7996
8337
|
static get(key: string): Plugin | undefined;
|
|
8338
|
+
/** Get a plugin skill definition and its owning plugin type. */
|
|
8339
|
+
static getSkill(name: string): {
|
|
8340
|
+
pluginType: string;
|
|
8341
|
+
definition: PluginSkillDefinition;
|
|
8342
|
+
} | undefined;
|
|
8343
|
+
/** Find the registered owner of the exact enabled skill definition. */
|
|
8344
|
+
static getSkillOwner(name: string, definition: PluginSkillDefinition): {
|
|
8345
|
+
pluginType: string;
|
|
8346
|
+
definition: PluginSkillDefinition;
|
|
8347
|
+
} | undefined;
|
|
8348
|
+
/** Find a skill using the explicitly enabled plugin owner. */
|
|
8349
|
+
static getSkillForPlugin(pluginType: string, name: string): {
|
|
8350
|
+
pluginType: string;
|
|
8351
|
+
definition: PluginSkillDefinition;
|
|
8352
|
+
} | undefined;
|
|
7997
8353
|
/** Check if registered */
|
|
7998
8354
|
static has(key: string): boolean;
|
|
7999
8355
|
/** List all registered plugin keys */
|
|
8000
8356
|
static list(): string[];
|
|
8001
8357
|
/** Serialize all registered plugins to API-ready meta list */
|
|
8002
8358
|
static listMeta(): PluginMetaOutput[];
|
|
8359
|
+
/**
|
|
8360
|
+
* Catalog metadata for all registered plugin skills, regardless of whether
|
|
8361
|
+
* the owning plugin is enabled for a given agent.
|
|
8362
|
+
*
|
|
8363
|
+
* Pure/synchronous — no sandbox, no tenant context. Name/description are
|
|
8364
|
+
* parsed from each SKILL.md definition's frontmatter.
|
|
8365
|
+
*
|
|
8366
|
+
* @returns Catalog entries keyed by plugin skill id.
|
|
8367
|
+
*/
|
|
8368
|
+
static listSkills(): PluginSkillCatalogItem[];
|
|
8003
8369
|
}
|
|
8004
8370
|
|
|
8005
8371
|
/**
|
|
@@ -8014,10 +8380,76 @@ declare function serializePluginMeta(plugin: Plugin): PluginMetaOutput;
|
|
|
8014
8380
|
|
|
8015
8381
|
declare const BUILTIN_PLUGINS: Plugin[];
|
|
8016
8382
|
|
|
8383
|
+
/** Stable failure codes emitted when capability bundles cannot be composed. */
|
|
8384
|
+
type CapabilityBundleMergeErrorCode = "CAPABILITY_BUNDLE_DUPLICATE_ID" | "CAPABILITY_BUNDLE_EMPTY_ALLOWED_TOOLS" | "CAPABILITY_BUNDLE_INVALID_CONFIG" | "CAPABILITY_BUNDLE_NULL_VALUE" | "CAPABILITY_BUNDLE_UNSAFE_KEY";
|
|
8385
|
+
/** Describes invalid capability bundle input rejected by the pure merger. */
|
|
8386
|
+
declare class CapabilityBundleMergeError extends Error {
|
|
8387
|
+
/** Stable machine-readable reason for the failure. */
|
|
8388
|
+
readonly code: CapabilityBundleMergeErrorCode;
|
|
8389
|
+
/** Bundle containing the invalid value, when known. */
|
|
8390
|
+
readonly bundleId?: string;
|
|
8391
|
+
/** Capability containing the invalid value, when known. */
|
|
8392
|
+
readonly capabilityType?: string;
|
|
8393
|
+
/** JSON Pointer path to the invalid capability field, when known. */
|
|
8394
|
+
readonly fieldPath?: string;
|
|
8395
|
+
/**
|
|
8396
|
+
* Creates a capability bundle composition error.
|
|
8397
|
+
*
|
|
8398
|
+
* @param code - Stable machine-readable failure code.
|
|
8399
|
+
* @param message - Human-readable failure description.
|
|
8400
|
+
* @param context - Structured location of the invalid input.
|
|
8401
|
+
*/
|
|
8402
|
+
constructor(code: CapabilityBundleMergeErrorCode, message: string, context?: {
|
|
8403
|
+
bundleId?: string;
|
|
8404
|
+
capabilityType?: string;
|
|
8405
|
+
fieldPath?: string;
|
|
8406
|
+
});
|
|
8407
|
+
}
|
|
8408
|
+
/**
|
|
8409
|
+
* Composes ordered capability bundles into a detached runtime preview.
|
|
8410
|
+
*
|
|
8411
|
+
* Capability identity and display fields come from the first occurrence of a
|
|
8412
|
+
* type. Runtime fields are merged in bundle order with provenance and distinct
|
|
8413
|
+
* ordinary replacements recorded in the preview.
|
|
8414
|
+
*
|
|
8415
|
+
* @param bundles - Capability bundles in composition precedence order.
|
|
8416
|
+
* @returns A deterministic, detached capability preview.
|
|
8417
|
+
* @throws {CapabilityBundleMergeError} When bundle IDs repeat or consumed input contains null, empty tool selections, or unsafe keys.
|
|
8418
|
+
* @example
|
|
8419
|
+
* ```ts
|
|
8420
|
+
* const preview = mergeCapabilityBundles([baseBundle, projectBundle]);
|
|
8421
|
+
* ```
|
|
8422
|
+
* @remarks
|
|
8423
|
+
* Bundle order defines precedence: later explicit ordinary values replace earlier values.
|
|
8424
|
+
* Capability output order follows each type's first appearance.
|
|
8425
|
+
*/
|
|
8426
|
+
declare function mergeCapabilityBundles(bundles: readonly CapabilityBundle[]): CapabilityPreview;
|
|
8427
|
+
/**
|
|
8428
|
+
* Stateless facade for composing capability bundles in dependency-injected services.
|
|
8429
|
+
*
|
|
8430
|
+
* @example
|
|
8431
|
+
* ```ts
|
|
8432
|
+
* const merger = new CapabilityBundleMerger();
|
|
8433
|
+
* const preview = merger.merge([baseBundle, projectBundle]);
|
|
8434
|
+
* ```
|
|
8435
|
+
* @remarks
|
|
8436
|
+
* Pass bundles in ascending precedence order. The facade retains no state between calls.
|
|
8437
|
+
*/
|
|
8438
|
+
declare class CapabilityBundleMerger {
|
|
8439
|
+
/**
|
|
8440
|
+
* Composes ordered capability bundles.
|
|
8441
|
+
*
|
|
8442
|
+
* @param bundles - Capability bundles in composition precedence order.
|
|
8443
|
+
* @returns A deterministic, detached capability preview.
|
|
8444
|
+
* @remarks Later bundles take precedence while capability type order remains first-seen.
|
|
8445
|
+
*/
|
|
8446
|
+
merge(bundles: readonly CapabilityBundle[]): CapabilityPreview;
|
|
8447
|
+
}
|
|
8448
|
+
|
|
8017
8449
|
/**
|
|
8018
8450
|
* Capability Learning Plugin
|
|
8019
8451
|
*
|
|
8020
|
-
* Provides a document-learner agent and
|
|
8452
|
+
* Provides a document-learner agent and source-to-capability learning workflow.
|
|
8021
8453
|
* The agent guides users through turning source material (documents, API
|
|
8022
8454
|
* specs, conversations, spreadsheets) into structured skill systems with
|
|
8023
8455
|
* evaluations — following a supervised learning paradigm.
|
|
@@ -8034,8 +8466,41 @@ declare const documentLearningPlugin: Plugin;
|
|
|
8034
8466
|
* when connectAll is enabled.
|
|
8035
8467
|
*/
|
|
8036
8468
|
|
|
8469
|
+
/** Built-in Document Parser plugin definition. */
|
|
8037
8470
|
declare const documentParserPlugin: Plugin;
|
|
8038
8471
|
|
|
8472
|
+
/** Stable reasons for rejecting capability bundle input. */
|
|
8473
|
+
type CapabilityBundleValidationErrorCode = "CAPABILITY_BUNDLE_EMPTY_FIELD" | "CAPABILITY_BUNDLE_INELIGIBLE_CAPABILITY" | "CAPABILITY_BUNDLE_INVALID_CAPABILITY" | "CAPABILITY_BUNDLE_DUPLICATE_CAPABILITY" | "CAPABILITY_BUNDLE_EMPTY_ALLOWED_TOOLS" | "CAPABILITY_BUNDLE_UNKNOWN_TOOL" | "CAPABILITY_BUNDLE_TOOLS_UNAVAILABLE" | "CAPABILITY_BUNDLE_NULL_VALUE" | "CAPABILITY_BUNDLE_UNSAFE_KEY" | "CAPABILITY_BUNDLE_NESTED_REFERENCE" | "CAPABILITY_BUNDLE_INVALID_CONFIG" | "CAPABILITY_BUNDLE_CYCLIC_CONFIG" | "CAPABILITY_BUNDLE_CONFIG_TOO_DEEP" | "CAPABILITY_BUNDLE_CONFIG_TOO_LARGE" | "CAPABILITY_BUNDLE_NON_JSON_VALUE" | "CAPABILITY_BUNDLE_CREDENTIALS_FORBIDDEN";
|
|
8474
|
+
/** Describes invalid capability bundle input with a stable code and location. */
|
|
8475
|
+
declare class CapabilityBundleValidationError extends Error {
|
|
8476
|
+
/** Stable machine-readable reason. */
|
|
8477
|
+
readonly code: CapabilityBundleValidationErrorCode;
|
|
8478
|
+
/** Capability type containing the invalid value, when known. */
|
|
8479
|
+
readonly capabilityType?: string;
|
|
8480
|
+
/** JSON Pointer to the invalid value. */
|
|
8481
|
+
readonly fieldPath?: string;
|
|
8482
|
+
/** Creates a structured capability bundle validation error. */
|
|
8483
|
+
constructor(code: CapabilityBundleValidationErrorCode, message: string, context?: {
|
|
8484
|
+
capabilityType?: string;
|
|
8485
|
+
fieldPath?: string;
|
|
8486
|
+
});
|
|
8487
|
+
}
|
|
8488
|
+
/**
|
|
8489
|
+
* Validates create or partial-update capability bundle input without mutating it.
|
|
8490
|
+
*
|
|
8491
|
+
* @param input - Bundle fields supplied by a create or update request.
|
|
8492
|
+
* @param options - Set `partial` for update semantics; omitted fields are allowed.
|
|
8493
|
+
* @returns Nothing when valid; throws {@link CapabilityBundleValidationError} otherwise.
|
|
8494
|
+
* @example
|
|
8495
|
+
* ```ts
|
|
8496
|
+
* validateCapabilityBundleInput({ name: "Data", capabilities: [] });
|
|
8497
|
+
* validateCapabilityBundleInput({ name: "Renamed" }, { partial: true });
|
|
8498
|
+
* ```
|
|
8499
|
+
*/
|
|
8500
|
+
declare function validateCapabilityBundleInput(input: unknown, options?: {
|
|
8501
|
+
partial?: boolean;
|
|
8502
|
+
}): asserts input is CreateCapabilityBundleInput | UpdateCapabilityBundleInput;
|
|
8503
|
+
|
|
8039
8504
|
/**
|
|
8040
8505
|
* Create middleware that provides widget rendering capabilities.
|
|
8041
8506
|
*
|
|
@@ -8125,6 +8590,145 @@ interface UnknownToolHandlerConfig {
|
|
|
8125
8590
|
*/
|
|
8126
8591
|
declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
|
|
8127
8592
|
|
|
8593
|
+
/** Describes how a tool argument selects a capability-scoped resource. */
|
|
8594
|
+
interface CapabilityResourceSelector {
|
|
8595
|
+
/** Tool argument containing the selected resource key. */
|
|
8596
|
+
argumentField: string;
|
|
8597
|
+
/** Capability runtime config field containing allowed resource keys. */
|
|
8598
|
+
configField: string;
|
|
8599
|
+
/** Capability runtime config flag that grants access to all resources. */
|
|
8600
|
+
allowAllField?: "connectAll" | "readAll";
|
|
8601
|
+
/** Whether allow-all mode permits omission for a discovery-style tool. */
|
|
8602
|
+
allowMissingWhenAll?: boolean;
|
|
8603
|
+
}
|
|
8604
|
+
/** Metadata linking one emitted tool to its capability policy. */
|
|
8605
|
+
interface CapabilityToolMetadata {
|
|
8606
|
+
/** Middleware type used as the capability runtime policy key. */
|
|
8607
|
+
capabilityType: string;
|
|
8608
|
+
/** Optional resource selector enforced when the tool call supplies it. */
|
|
8609
|
+
resourceSelector?: CapabilityResourceSelector;
|
|
8610
|
+
}
|
|
8611
|
+
/** Stable failure code for ambiguous emitted tool-to-capability mappings. */
|
|
8612
|
+
declare const CAPABILITY_TOOL_NAME_CONFLICT: "CAPABILITY_TOOL_NAME_CONFLICT";
|
|
8613
|
+
/** Error raised when one emitted tool name is mapped to incompatible policies. */
|
|
8614
|
+
declare class CapabilityToolNameConflictError extends Error {
|
|
8615
|
+
readonly toolName: string;
|
|
8616
|
+
readonly existingCapabilityType: string;
|
|
8617
|
+
readonly conflictingCapabilityType: string;
|
|
8618
|
+
/** Stable machine-readable error code. */
|
|
8619
|
+
readonly code: "CAPABILITY_TOOL_NAME_CONFLICT";
|
|
8620
|
+
/** Creates an emitted tool-name conflict error. */
|
|
8621
|
+
constructor(toolName: string, existingCapabilityType: string, conflictingCapabilityType: string);
|
|
8622
|
+
}
|
|
8623
|
+
/**
|
|
8624
|
+
* Registers tool-to-capability metadata for one middleware construction.
|
|
8625
|
+
*
|
|
8626
|
+
* @remarks Create one registry per middleware chain. Stored and returned metadata
|
|
8627
|
+
* is frozen so callers cannot mutate policy mappings across requests.
|
|
8628
|
+
*
|
|
8629
|
+
* @example Standard plugins do not need a resource selector mapping; the
|
|
8630
|
+
* generic guard uses `connectionKey` with `meta.type` as the connection type.
|
|
8631
|
+
* Legacy built-ins retain explicit selectors through the compatibility map.
|
|
8632
|
+
* ```ts
|
|
8633
|
+
* const registry = new CapabilityToolRegistry();
|
|
8634
|
+
* registry.registerMiddleware("crm", crmMiddleware);
|
|
8635
|
+
* ```
|
|
8636
|
+
*/
|
|
8637
|
+
declare class CapabilityToolRegistry {
|
|
8638
|
+
private readonly metadataByTool;
|
|
8639
|
+
private readonly standardConnectionTools;
|
|
8640
|
+
/**
|
|
8641
|
+
* Registers one tool mapping.
|
|
8642
|
+
*
|
|
8643
|
+
* @param name - Actual emitted tool name.
|
|
8644
|
+
* @param metadata - Capability and optional resource-selector metadata.
|
|
8645
|
+
* @returns Nothing.
|
|
8646
|
+
*/
|
|
8647
|
+
private registerInternal;
|
|
8648
|
+
/**
|
|
8649
|
+
* Registers one tool mapping.
|
|
8650
|
+
*
|
|
8651
|
+
* @param name - Actual emitted tool name.
|
|
8652
|
+
* @param metadata - Capability and optional legacy resource-selector metadata.
|
|
8653
|
+
* @param tool - Optional emitted tool whose schema may declare `connectionKey`.
|
|
8654
|
+
* @returns Nothing.
|
|
8655
|
+
* @remarks Standard connection authorization is captured only for tools whose
|
|
8656
|
+
* schema declares `connectionKey`; legacy selectors remain explicit metadata.
|
|
8657
|
+
*/
|
|
8658
|
+
register(name: string, metadata: CapabilityToolMetadata, tool?: unknown): void;
|
|
8659
|
+
/**
|
|
8660
|
+
* Registers all tools actually exposed by a middleware instance.
|
|
8661
|
+
*
|
|
8662
|
+
* @param capabilityType - Runtime middleware policy key.
|
|
8663
|
+
* @param middleware - Constructed middleware after tool filtering.
|
|
8664
|
+
* @param resourceSelectors - Optional resource mappings keyed by emitted tool name.
|
|
8665
|
+
* @returns Nothing.
|
|
8666
|
+
*/
|
|
8667
|
+
registerMiddleware(capabilityType: string, middleware: AgentMiddleware, resourceSelectors?: Readonly<Record<string, CapabilityResourceSelector>>): void;
|
|
8668
|
+
/**
|
|
8669
|
+
* Gets immutable metadata for a registered tool.
|
|
8670
|
+
*
|
|
8671
|
+
* @param name - Tool name requested by the model.
|
|
8672
|
+
* @returns Frozen metadata, or `undefined` when the tool is not mapped.
|
|
8673
|
+
*/
|
|
8674
|
+
get(name: string): CapabilityToolMetadata | undefined;
|
|
8675
|
+
/**
|
|
8676
|
+
* Reports whether standard connection authorization was captured at registration time.
|
|
8677
|
+
*
|
|
8678
|
+
* @param name - Tool name.
|
|
8679
|
+
* @returns Whether the tool belongs to an eligible standard connection plugin.
|
|
8680
|
+
*/
|
|
8681
|
+
isStandardConnectionTool(name: string): boolean;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
/**
|
|
8685
|
+
* Returns one capability's runtime configuration for the current invocation.
|
|
8686
|
+
*
|
|
8687
|
+
* @param executionConfig - LangChain execution configuration or another unknown input.
|
|
8688
|
+
* @param capabilityType - Middleware type used as the runtime capability key.
|
|
8689
|
+
* @returns The capability config record, or `undefined` when the runtime shape is absent or invalid.
|
|
8690
|
+
*/
|
|
8691
|
+
declare function getRuntimeCapabilityConfig(executionConfig: unknown, capabilityType: string): Record<string, unknown> | undefined;
|
|
8692
|
+
/**
|
|
8693
|
+
* Reports whether a capability policy exists in the current runtime snapshot.
|
|
8694
|
+
*
|
|
8695
|
+
* @param executionConfig - LangChain execution configuration or another unknown input.
|
|
8696
|
+
* @param capabilityType - Middleware type used as the runtime capability key.
|
|
8697
|
+
* @returns Whether the runtime contains a policy record for the capability.
|
|
8698
|
+
*/
|
|
8699
|
+
declare function hasRuntimeCapabilityPolicy(executionConfig: unknown, capabilityType: string): boolean;
|
|
8700
|
+
/** Runtime skill selector extracted from a capability snapshot. */
|
|
8701
|
+
interface RuntimeSkillSelection {
|
|
8702
|
+
/** Whether the invocation contains an explicit skill capability policy. */
|
|
8703
|
+
hasPolicy: boolean;
|
|
8704
|
+
/** Whether the resolved skill capability is enabled. */
|
|
8705
|
+
enabled: boolean;
|
|
8706
|
+
/** Explicitly selected skill names, including an empty deny-all list. */
|
|
8707
|
+
skills?: string[];
|
|
8708
|
+
/** Whether the runtime policy requests all skills within the static ceiling. */
|
|
8709
|
+
readAll: boolean;
|
|
8710
|
+
}
|
|
8711
|
+
/**
|
|
8712
|
+
* Returns the runtime skill selection for one invocation.
|
|
8713
|
+
*
|
|
8714
|
+
* @param executionConfig - LangChain execution configuration or another unknown input.
|
|
8715
|
+
* @returns A detached selector that preserves absent policy versus explicit empty selection.
|
|
8716
|
+
*/
|
|
8717
|
+
declare function getRuntimeSkillSelection(executionConfig: unknown): RuntimeSkillSelection;
|
|
8718
|
+
|
|
8719
|
+
/** Stable machine-readable capability guard denial codes. */
|
|
8720
|
+
type CapabilityGuardDenialCode = "CAPABILITY_DISABLED" | "CAPABILITY_DENIED" | "RESOURCE_NOT_ALLOWED";
|
|
8721
|
+
/**
|
|
8722
|
+
* Creates a tool-call guard backed by server-derived capability runtime policy.
|
|
8723
|
+
*
|
|
8724
|
+
* @param registry - Per-middleware-chain mappings for actual emitted tools.
|
|
8725
|
+
* @returns A middleware with only a `wrapToolCall` hook.
|
|
8726
|
+
* @remarks Unmapped tools and missing policies pass through. This middleware does
|
|
8727
|
+
* not replace unknown-tool handling and deliberately does not implement
|
|
8728
|
+
* `wrapModelCall`.
|
|
8729
|
+
*/
|
|
8730
|
+
declare function createCapabilityGuardMiddleware(registry: CapabilityToolRegistry): AgentMiddleware;
|
|
8731
|
+
|
|
8128
8732
|
interface SchedulerMiddlewareOptions {
|
|
8129
8733
|
defaultMaxRetries?: number;
|
|
8130
8734
|
}
|
|
@@ -8627,4 +9231,4 @@ declare class IdRemapper {
|
|
|
8627
9231
|
remapSkillIds(graphDefinition: Record<string, unknown>, skillRemap: Record<string, string>): Record<string, unknown>;
|
|
8628
9232
|
}
|
|
8629
9233
|
|
|
8630
|
-
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type CalibrationProbe, type CaseRunResult, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DeleteResult, DependencyResolver, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type OutputType, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, type PreviewError, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type ReconcileTaskDescriptionInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type RunSandboxConfig, type RuntimeModelConfig, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, TaskLifecycleService, type TaskLifecycleServiceDeps, 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, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskLifecycleService, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getQueueLattice, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseJudgeVerdict, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerBuiltinSkill, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveJudgeModelKey, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setEvalRunService, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };
|
|
9234
|
+
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, CAPABILITY_TOOL_NAME_CONFLICT, type CacheEntry, type CalibrationProbe, CapabilityBundleMergeError, type CapabilityBundleMergeErrorCode, CapabilityBundleMerger, CapabilityBundleValidationError, type CapabilityBundleValidationErrorCode, type CapabilityGuardDenialCode, type CapabilityResourceSelector, type CapabilityToolMetadata, CapabilityToolNameConflictError, CapabilityToolRegistry, type CaseRunResult, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DeleteResult, DependencyResolver, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryCapabilityBundleStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, MAX_PACK_ENTRIES, MAX_PACK_FILE_BYTES, MAX_PACK_TOTAL_BYTES, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageContent, type MessageContentPart, type MessageContentValue, type MessageFailedEvent, type MessageLike, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type OutputType, PACK_DIRECTORY_TIMEOUT_SECONDS, type PackSourceInfo, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, type PreviewError, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, type QueueMessage, QueueMode, type QueuePendingEvent, type QueueScope, type ReconcileTaskDescriptionInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type ResumeTaskResult, type RunSandboxConfig, type RuntimeModelConfig, type RuntimeSkillSelection, SAFE_PATH_COMPONENT, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, TaskLifecycleService, type TaskLifecycleServiceDeps, 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, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildRemotePackDirectoryCommand, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createCapabilityGuardMiddleware, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskLifecycleService, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, ensurePluginSkillInSandbox, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getPluginSkillManifestVersion, getQueueLattice, getRuntimeCapabilityConfig, getRuntimeSkillSelection, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, hasRuntimeCapabilityPolicy, invokeWithRetry, isBuiltInSkill, isPluginSkillAuthorizedInSandbox, isPluginSkillManagedInSandbox, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, mergeCapabilityBundles, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseJudgeVerdict, parsePackSize, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveJudgeModelKey, resolvePath, runRemotePackDirectory, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setEvalRunService, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateCapabilityBundleInput, validateDSL, validateEncryptionKey, validatePackSourcePath, validatePath, validateRelativePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };
|