@axiom-lattice/core 3.1.2 → 4.0.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 +413 -6
- package/dist/index.d.ts +413 -6
- package/dist/index.js +5283 -2241
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6301 -3262
- 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, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, 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, 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, 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';
|
|
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';
|
|
@@ -2761,6 +2761,7 @@ type StoreTypeMap = {
|
|
|
2761
2761
|
sharedResource: SharedResourceStore;
|
|
2762
2762
|
connection: ConnectionStore;
|
|
2763
2763
|
taskWorkItem: TaskWorkItemStore;
|
|
2764
|
+
agentWebApp: AgentWebAppStore;
|
|
2764
2765
|
};
|
|
2765
2766
|
/**
|
|
2766
2767
|
* Store type keys
|
|
@@ -2986,6 +2987,28 @@ declare class InMemoryAssistantStore implements AssistantStore {
|
|
|
2986
2987
|
clear(tenantId?: string): void;
|
|
2987
2988
|
}
|
|
2988
2989
|
|
|
2990
|
+
/**
|
|
2991
|
+
* Stores tenant-isolated Agent Web App publications in process memory.
|
|
2992
|
+
*
|
|
2993
|
+
* Values are cloned on every read and write so callers cannot mutate persisted
|
|
2994
|
+
* nested configuration or dates through retained object references.
|
|
2995
|
+
*
|
|
2996
|
+
* @example
|
|
2997
|
+
* ```ts
|
|
2998
|
+
* const store = new InMemoryAgentWebAppStore();
|
|
2999
|
+
* const webApp = await store.create("tenant-1", input);
|
|
3000
|
+
* ```
|
|
3001
|
+
*/
|
|
3002
|
+
declare class InMemoryAgentWebAppStore implements AgentWebAppStore {
|
|
3003
|
+
private readonly webApps;
|
|
3004
|
+
list(tenantId: string, assistantId?: string): Promise<AgentWebApp[]>;
|
|
3005
|
+
getById(tenantId: string, webAppId: string): Promise<AgentWebApp | null>;
|
|
3006
|
+
findById(webAppId: string): Promise<AgentWebApp | null>;
|
|
3007
|
+
create(tenantId: string, input: CreateAgentWebAppInput): Promise<AgentWebApp>;
|
|
3008
|
+
update(tenantId: string, webAppId: string, patch: AgentWebAppStorePatch, options?: AgentWebAppUpdateOptions): Promise<AgentWebApp | null>;
|
|
3009
|
+
delete(tenantId: string, webAppId: string): Promise<boolean>;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
2989
3012
|
/**
|
|
2990
3013
|
* FileSystemSkillStore
|
|
2991
3014
|
*
|
|
@@ -3110,6 +3133,19 @@ declare class FileSystemSkillStore implements SkillStore {
|
|
|
3110
3133
|
* @returns The resource content as string
|
|
3111
3134
|
*/
|
|
3112
3135
|
loadSkillResource(_tenantId: string, skillName: string, resourcePath: string): Promise<string | null>;
|
|
3136
|
+
/**
|
|
3137
|
+
* Write a resource file into a skill's resources directory
|
|
3138
|
+
* @param tenantId The tenant identifier (accepted for protocol compliance)
|
|
3139
|
+
* @param skillName The skill name
|
|
3140
|
+
* @param resourcePath Path to the resource relative to resources/ directory
|
|
3141
|
+
* @param content Resource content
|
|
3142
|
+
*/
|
|
3143
|
+
writeSkillResource(_tenantId: string, skillName: string, resourcePath: string, content: string): Promise<void>;
|
|
3144
|
+
/** Load a skill resource as bytes. */
|
|
3145
|
+
loadSkillResourceRaw(_tenantId: string, skillName: string, resourcePath: string): Promise<Buffer | null>;
|
|
3146
|
+
/** Write skill resource bytes without text encoding. */
|
|
3147
|
+
writeSkillResourceRaw(_tenantId: string, skillName: string, resourcePath: string, data: Buffer): Promise<void>;
|
|
3148
|
+
private resolveResourcePath;
|
|
3113
3149
|
}
|
|
3114
3150
|
|
|
3115
3151
|
/**
|
|
@@ -3213,6 +3249,25 @@ declare class SandboxSkillStore implements SkillStore {
|
|
|
3213
3249
|
* Get sub-skills of a parent skill within a tenant
|
|
3214
3250
|
*/
|
|
3215
3251
|
getSubSkills(tenantId: string, parentSkillName: string, context?: SkillStoreContext): Promise<Skill[]>;
|
|
3252
|
+
/**
|
|
3253
|
+
* List all resources in a skill's resources directory (within sandbox).
|
|
3254
|
+
* Returns paths relative to the resources/ directory.
|
|
3255
|
+
*/
|
|
3256
|
+
listSkillResources(tenantId: string, id: string, context?: SkillStoreContext): Promise<string[]>;
|
|
3257
|
+
/**
|
|
3258
|
+
* Load a specific resource from a skill's resources directory (within sandbox).
|
|
3259
|
+
*/
|
|
3260
|
+
loadSkillResource(tenantId: string, id: string, resourcePath: string, context?: SkillStoreContext): Promise<string | null>;
|
|
3261
|
+
/**
|
|
3262
|
+
* Write a resource file into a skill's resources directory (within sandbox).
|
|
3263
|
+
* Creates parent directories as needed.
|
|
3264
|
+
*/
|
|
3265
|
+
writeSkillResource(tenantId: string, id: string, resourcePath: string, content: string, context?: SkillStoreContext): Promise<void>;
|
|
3266
|
+
/** Load a resource as bytes through the sandbox file API. */
|
|
3267
|
+
loadSkillResourceRaw(tenantId: string, id: string, resourcePath: string, context?: SkillStoreContext): Promise<Buffer | null>;
|
|
3268
|
+
/** Write resource bytes through the sandbox file API. */
|
|
3269
|
+
writeSkillResourceRaw(tenantId: string, id: string, resourcePath: string, data: Buffer, context?: SkillStoreContext): Promise<void>;
|
|
3270
|
+
private validateResourcePath;
|
|
3216
3271
|
}
|
|
3217
3272
|
|
|
3218
3273
|
/**
|
|
@@ -3508,9 +3563,11 @@ declare class InMemoryBindingStore implements BindingRegistry {
|
|
|
3508
3563
|
clear(): void;
|
|
3509
3564
|
}
|
|
3510
3565
|
|
|
3566
|
+
/** In-memory A2A API key persistence for development and tests. */
|
|
3511
3567
|
declare class InMemoryA2AApiKeyStore implements A2AApiKeyStore {
|
|
3512
3568
|
private keys;
|
|
3513
3569
|
findByKey(key: string): Promise<A2AApiKeyRecord | null>;
|
|
3570
|
+
findById(id: string): Promise<A2AApiKeyRecord | null>;
|
|
3514
3571
|
list(params: {
|
|
3515
3572
|
tenantId?: string;
|
|
3516
3573
|
limit?: number;
|
|
@@ -3560,8 +3617,14 @@ declare class InMemoryThreadMessageQueueStore implements IMessageQueueStore {
|
|
|
3560
3617
|
*/
|
|
3561
3618
|
declare class InMemoryTaskStore implements TaskStore {
|
|
3562
3619
|
private tasks;
|
|
3620
|
+
private cloneTask;
|
|
3621
|
+
private nextUpdatedAt;
|
|
3622
|
+
private canAdvanceUpdatedAt;
|
|
3623
|
+
private recognizedUpdates;
|
|
3624
|
+
private applyUpdates;
|
|
3563
3625
|
/**
|
|
3564
3626
|
* Create a new task
|
|
3627
|
+
* @throws Error when the tenant already contains the requested task ID.
|
|
3565
3628
|
*/
|
|
3566
3629
|
create(params: CreateTaskRequest & {
|
|
3567
3630
|
tenantId: string;
|
|
@@ -3580,6 +3643,22 @@ declare class InMemoryTaskStore implements TaskStore {
|
|
|
3580
3643
|
* Update an existing task
|
|
3581
3644
|
*/
|
|
3582
3645
|
update(tenantId: string, id: string, updates: UpdateTaskRequest): Promise<TaskItem | null>;
|
|
3646
|
+
/** Atomically update a task only when its current status is expected. */
|
|
3647
|
+
updateIfStatusIn(tenantId: string, id: string, updates: UpdateTaskRequest, expectedStatuses: TaskItem["status"][]): Promise<TaskItem | null>;
|
|
3648
|
+
/**
|
|
3649
|
+
* Atomically update a task unless its current status is blocked.
|
|
3650
|
+
*
|
|
3651
|
+
* @param tenantId Tenant identifier.
|
|
3652
|
+
* @param id Task identifier.
|
|
3653
|
+
* @param updates Partial task data to update.
|
|
3654
|
+
* @param blockedStatuses Current statuses that prevent the update.
|
|
3655
|
+
* @returns The updated task, or `null` when missing or blocked.
|
|
3656
|
+
*/
|
|
3657
|
+
updateIfStatusNotIn(tenantId: string, id: string, updates: UpdateTaskRequest, blockedStatuses: TaskItem["status"][]): Promise<TaskItem | null>;
|
|
3658
|
+
/** Atomically update a task only when status and updatedAt match a read snapshot. */
|
|
3659
|
+
updateIfStatusAndUpdatedAt(tenantId: string, id: string, updates: UpdateTaskRequest, expectedStatuses: TaskItem["status"][], expectedUpdatedAt: Date | string): Promise<TaskItem | null>;
|
|
3660
|
+
/** Atomically update a child only when both child and parent snapshots match. */
|
|
3661
|
+
updateIfStatusUpdatedAtAndParentUpdatedAt(tenantId: string, id: string, updates: UpdateTaskRequest, expectedStatuses: TaskItem["status"][], expectedUpdatedAt: Date | string, parentId: string, expectedParentUpdatedAt: Date | string): Promise<TaskItem | null>;
|
|
3583
3662
|
/**
|
|
3584
3663
|
* Delete a task by ID
|
|
3585
3664
|
*/
|
|
@@ -7476,6 +7555,289 @@ declare class AgentInstanceManager {
|
|
|
7476
7555
|
}
|
|
7477
7556
|
declare const agentInstanceManager: AgentInstanceManager;
|
|
7478
7557
|
|
|
7558
|
+
/**
|
|
7559
|
+
* A single structured belief report attached to a task completion.
|
|
7560
|
+
*
|
|
7561
|
+
* Mirrors the `manage_task.beliefImpact` tool field: the reporting task claims
|
|
7562
|
+
* that, after execution, the named Belief Key is true with `after` percent
|
|
7563
|
+
* probability, supported by `basis` evidence.
|
|
7564
|
+
*/
|
|
7565
|
+
interface BeliefImpactInput {
|
|
7566
|
+
key: string;
|
|
7567
|
+
after: number;
|
|
7568
|
+
basis: string;
|
|
7569
|
+
}
|
|
7570
|
+
|
|
7571
|
+
/** A recoverable work-item failure that occurred after a task transition committed. */
|
|
7572
|
+
interface LifecycleWarning {
|
|
7573
|
+
code: string;
|
|
7574
|
+
taskId: string;
|
|
7575
|
+
evidenceId?: string;
|
|
7576
|
+
eventKey?: string;
|
|
7577
|
+
parentTaskId?: string;
|
|
7578
|
+
}
|
|
7579
|
+
/** The structured outcome returned by every task lifecycle operation. */
|
|
7580
|
+
type LifecycleResult = {
|
|
7581
|
+
success: true;
|
|
7582
|
+
task: TaskItem;
|
|
7583
|
+
evidenceId?: string;
|
|
7584
|
+
eventKey?: string;
|
|
7585
|
+
warnings?: LifecycleWarning[];
|
|
7586
|
+
} | {
|
|
7587
|
+
success: false;
|
|
7588
|
+
code: string;
|
|
7589
|
+
error: string;
|
|
7590
|
+
hint?: string;
|
|
7591
|
+
evidenceId?: string;
|
|
7592
|
+
eventKey?: string;
|
|
7593
|
+
warnings?: LifecycleWarning[];
|
|
7594
|
+
};
|
|
7595
|
+
/** Stores and clock used by {@link TaskLifecycleService}. */
|
|
7596
|
+
interface TaskLifecycleServiceDeps {
|
|
7597
|
+
taskStore: TaskStore;
|
|
7598
|
+
workItemStore: TaskWorkItemStore;
|
|
7599
|
+
now?: () => Date;
|
|
7600
|
+
}
|
|
7601
|
+
/** Input shared by direct completion and completion repair. */
|
|
7602
|
+
interface AgentTaskCompletionInput {
|
|
7603
|
+
tenantId: string;
|
|
7604
|
+
taskId: string;
|
|
7605
|
+
result: string;
|
|
7606
|
+
beliefImpact: BeliefImpactInput[];
|
|
7607
|
+
actor: string;
|
|
7608
|
+
threadId?: string;
|
|
7609
|
+
sourceId?: string;
|
|
7610
|
+
}
|
|
7611
|
+
/** Input for submitting agent completion evidence to HITL review. */
|
|
7612
|
+
interface SubmitTaskReviewInput extends AgentTaskCompletionInput {
|
|
7613
|
+
reviewMode: "disabled" | "hitl";
|
|
7614
|
+
/** Atomically enables review as part of the in-progress-to-interrupted transition. */
|
|
7615
|
+
configureRequireReview?: boolean;
|
|
7616
|
+
}
|
|
7617
|
+
/** Input for approving completion evidence after an HITL resume. */
|
|
7618
|
+
interface ApproveInterruptedTaskInput {
|
|
7619
|
+
tenantId: string;
|
|
7620
|
+
taskId: string;
|
|
7621
|
+
evidenceId: string;
|
|
7622
|
+
actor: string;
|
|
7623
|
+
threadId?: string;
|
|
7624
|
+
}
|
|
7625
|
+
/** Input for rejecting completion evidence after an HITL resume. */
|
|
7626
|
+
interface RejectInterruptedTaskInput extends ApproveInterruptedTaskInput {
|
|
7627
|
+
note: string;
|
|
7628
|
+
}
|
|
7629
|
+
/** Input for a description update that audits semantic Belief State changes. */
|
|
7630
|
+
interface ReconcileTaskDescriptionInput {
|
|
7631
|
+
tenantId: string;
|
|
7632
|
+
taskId: string;
|
|
7633
|
+
description: string;
|
|
7634
|
+
actor: string;
|
|
7635
|
+
threadId?: string;
|
|
7636
|
+
}
|
|
7637
|
+
/** Input for resuming an interruption that is not waiting for human review. */
|
|
7638
|
+
interface ResumeInterruptionInput {
|
|
7639
|
+
/** Tenant containing the task. */
|
|
7640
|
+
tenantId: string;
|
|
7641
|
+
/** Interrupted task identifier. */
|
|
7642
|
+
taskId: string;
|
|
7643
|
+
/** Actor making the resume request. */
|
|
7644
|
+
actor: string;
|
|
7645
|
+
/** Optional thread to retain in the interruption audit context. */
|
|
7646
|
+
threadId?: string;
|
|
7647
|
+
}
|
|
7648
|
+
/** Input for atomically starting or retrying an agent task. */
|
|
7649
|
+
interface StartTaskInput {
|
|
7650
|
+
tenantId: string;
|
|
7651
|
+
taskId: string;
|
|
7652
|
+
actor: string;
|
|
7653
|
+
threadId?: string;
|
|
7654
|
+
}
|
|
7655
|
+
/** Input for atomically failing an active agent task. */
|
|
7656
|
+
interface FailTaskInput {
|
|
7657
|
+
tenantId: string;
|
|
7658
|
+
taskId: string;
|
|
7659
|
+
failureReason: string;
|
|
7660
|
+
actor: string;
|
|
7661
|
+
threadId?: string;
|
|
7662
|
+
}
|
|
7663
|
+
/** Input for atomically cancelling a nonterminal agent task. */
|
|
7664
|
+
interface CancelTaskInput {
|
|
7665
|
+
tenantId: string;
|
|
7666
|
+
taskId: string;
|
|
7667
|
+
actor: string;
|
|
7668
|
+
threadId?: string;
|
|
7669
|
+
summary?: string;
|
|
7670
|
+
}
|
|
7671
|
+
/** Agent-owned interruption kinds persisted by the lifecycle service. */
|
|
7672
|
+
type AgentInterruptionType = "missing_input" | "external_dependency" | "user_decision";
|
|
7673
|
+
/** Input for atomically interrupting an in-progress agent task. */
|
|
7674
|
+
interface InterruptTaskInput {
|
|
7675
|
+
tenantId: string;
|
|
7676
|
+
taskId: string;
|
|
7677
|
+
type: AgentInterruptionType;
|
|
7678
|
+
summary: string;
|
|
7679
|
+
actor: string;
|
|
7680
|
+
threadId?: string;
|
|
7681
|
+
}
|
|
7682
|
+
/** Canonical identity and Belief State snapshot bound to completion evidence. */
|
|
7683
|
+
interface BeliefOwnerSnapshot {
|
|
7684
|
+
owner: "self" | "parent";
|
|
7685
|
+
childParentId?: string;
|
|
7686
|
+
beliefState: TaskBeliefState;
|
|
7687
|
+
self?: {
|
|
7688
|
+
id: string;
|
|
7689
|
+
ownerType: "user" | "agent";
|
|
7690
|
+
ownerId: string;
|
|
7691
|
+
workspaceId?: string;
|
|
7692
|
+
projectId?: string;
|
|
7693
|
+
};
|
|
7694
|
+
parent?: {
|
|
7695
|
+
id: string;
|
|
7696
|
+
ownerType: "user" | "agent";
|
|
7697
|
+
ownerId: string;
|
|
7698
|
+
workspaceId?: string;
|
|
7699
|
+
projectId?: string;
|
|
7700
|
+
};
|
|
7701
|
+
parentUpdatedAt?: string;
|
|
7702
|
+
}
|
|
7703
|
+
/**
|
|
7704
|
+
* Owns atomic agent-task completion, review, repair, and belief reconciliation.
|
|
7705
|
+
*
|
|
7706
|
+
* Evidence is persisted before status CAS operations. All events written after
|
|
7707
|
+
* CAS have deterministic keys, allowing callers to repair partial persistence.
|
|
7708
|
+
*
|
|
7709
|
+
* @example
|
|
7710
|
+
* ```ts
|
|
7711
|
+
* const service = new TaskLifecycleService({ taskStore, workItemStore });
|
|
7712
|
+
* await service.completeAgentTask({ tenantId, taskId, result, beliefImpact, actor });
|
|
7713
|
+
* ```
|
|
7714
|
+
*/
|
|
7715
|
+
declare class TaskLifecycleService {
|
|
7716
|
+
private readonly deps;
|
|
7717
|
+
private readonly now;
|
|
7718
|
+
/**
|
|
7719
|
+
* Creates a lifecycle service with injected stores and an optional test clock.
|
|
7720
|
+
*
|
|
7721
|
+
* @param deps Task and work-item stores plus an optional deterministic clock.
|
|
7722
|
+
* @remarks Store operations are translated to structured lifecycle failures by public methods.
|
|
7723
|
+
*/
|
|
7724
|
+
constructor(deps: TaskLifecycleServiceDeps);
|
|
7725
|
+
/**
|
|
7726
|
+
* Returns the deterministic task-scoped completion evidence key.
|
|
7727
|
+
*
|
|
7728
|
+
* @param taskId Task receiving the evidence.
|
|
7729
|
+
* @param result Candidate result Markdown.
|
|
7730
|
+
* @param beliefImpact Structured belief evidence.
|
|
7731
|
+
* @param beliefOwner Optional canonical owner snapshot to bind into the key.
|
|
7732
|
+
* @returns A task-scoped key containing the canonical SHA-256 digest.
|
|
7733
|
+
* @remarks Review attempts append `:attempt:N` to this canonical base key.
|
|
7734
|
+
*/
|
|
7735
|
+
completionEventKey(taskId: string, result: string, beliefImpact: BeliefImpactInput[], beliefOwner?: BeliefOwnerSnapshot): string;
|
|
7736
|
+
/**
|
|
7737
|
+
* Resumes an interruption unless it is explicitly owned by the review workflow.
|
|
7738
|
+
*
|
|
7739
|
+
* @param input Resume request and actor identity.
|
|
7740
|
+
* @returns Structured task transition result.
|
|
7741
|
+
* @remarks Review interruptions must be approved or rejected through their evidence-bound methods.
|
|
7742
|
+
*/
|
|
7743
|
+
resumeInterruption(input: ResumeInterruptionInput): Promise<LifecycleResult>;
|
|
7744
|
+
/** Atomically fails an active agent task and records an idempotent status event. */
|
|
7745
|
+
failTask(input: FailTaskInput): Promise<LifecycleResult>;
|
|
7746
|
+
/** Atomically starts a pending agent task and records an idempotent status event. */
|
|
7747
|
+
startTask(input: StartTaskInput): Promise<LifecycleResult>;
|
|
7748
|
+
/** Atomically retries a failed agent task and records an idempotent status event. */
|
|
7749
|
+
retryTask(input: StartTaskInput): Promise<LifecycleResult>;
|
|
7750
|
+
/** Atomically cancels a nonterminal agent task and records an idempotent status event. */
|
|
7751
|
+
cancelTask(input: CancelTaskInput): Promise<LifecycleResult>;
|
|
7752
|
+
/** Atomically records a governed blocking interruption for an in-progress agent task. */
|
|
7753
|
+
interruptTask(input: InterruptTaskInput): Promise<LifecycleResult>;
|
|
7754
|
+
/**
|
|
7755
|
+
* Atomically completes an in-progress agent task and writes repairable events.
|
|
7756
|
+
* @param input Completion result, belief impacts, actor, and optional thread.
|
|
7757
|
+
* @returns Structured completion result or failure.
|
|
7758
|
+
* @remarks Evidence is written before the status CAS; retries are idempotent by canonical event key.
|
|
7759
|
+
*/
|
|
7760
|
+
completeAgentTask(input: AgentTaskCompletionInput): Promise<LifecycleResult>;
|
|
7761
|
+
/**
|
|
7762
|
+
* Persists candidate evidence and atomically enters `interrupted(review_required)`.
|
|
7763
|
+
* @param input Review submission and candidate evidence.
|
|
7764
|
+
* @returns Structured interruption result or failure.
|
|
7765
|
+
* @remarks Existing context is preserved and review attempts after rejection receive a fresh key.
|
|
7766
|
+
*/
|
|
7767
|
+
submitReview(input: SubmitTaskReviewInput): Promise<LifecycleResult>;
|
|
7768
|
+
/**
|
|
7769
|
+
* Approves current completion evidence after revalidation and atomically completes the task.
|
|
7770
|
+
* @param input Evidence-bound approval request.
|
|
7771
|
+
* @returns Structured completion result or failure.
|
|
7772
|
+
* @remarks Approval is valid only for the current interruption evidence and is status-CAS protected.
|
|
7773
|
+
*/
|
|
7774
|
+
approveInterrupted(input: ApproveInterruptedTaskInput): Promise<LifecycleResult>;
|
|
7775
|
+
/**
|
|
7776
|
+
* Rejects current completion evidence and atomically resumes the task in progress.
|
|
7777
|
+
* @param input Evidence-bound rejection request and reviewer note.
|
|
7778
|
+
* @returns Structured resume result with repair warnings when post-CAS events fail.
|
|
7779
|
+
* @remarks Rejection records a decision before any later identical submission can be approved.
|
|
7780
|
+
*/
|
|
7781
|
+
rejectInterrupted(input: RejectInterruptedTaskInput): Promise<LifecycleResult>;
|
|
7782
|
+
/**
|
|
7783
|
+
* Repairs review decision and feedback events after rejection resumed the task.
|
|
7784
|
+
*
|
|
7785
|
+
* @param input Rejected evidence and deterministic feedback data.
|
|
7786
|
+
* @returns Structured repair result with any remaining warnings.
|
|
7787
|
+
* @remarks This path is valid only while the task remains in progress; it never changes task status.
|
|
7788
|
+
*/
|
|
7789
|
+
repairReview(input: RejectInterruptedTaskInput): Promise<LifecycleResult>;
|
|
7790
|
+
/**
|
|
7791
|
+
* Repairs missing completion status, decision, or parent events for an identical terminal replay.
|
|
7792
|
+
* @param input Canonical completion evidence to replay.
|
|
7793
|
+
* @returns Structured repair result or failure.
|
|
7794
|
+
* @remarks Repair never creates terminal events for non-completed tasks or incompatible evidence.
|
|
7795
|
+
*/
|
|
7796
|
+
repairCompletion(input: AgentTaskCompletionInput): Promise<LifecycleResult>;
|
|
7797
|
+
/**
|
|
7798
|
+
* Updates a description while preserving its goal contract and auditing semantic belief changes.
|
|
7799
|
+
* @param input Description, actor, and optional thread.
|
|
7800
|
+
* @returns Structured update result or failure.
|
|
7801
|
+
* @remarks Duplicate Objective or Acceptance Criteria headings are rejected rather than collapsed.
|
|
7802
|
+
*/
|
|
7803
|
+
updateTaskDescriptionWithReconciliation(input: ReconcileTaskDescriptionInput): Promise<LifecycleResult>;
|
|
7804
|
+
private prepareCompletion;
|
|
7805
|
+
private beliefOwnerSnapshot;
|
|
7806
|
+
private reconcileCompletedCas;
|
|
7807
|
+
private reconcileSubmittedCas;
|
|
7808
|
+
private reconcileReviewDecisionCas;
|
|
7809
|
+
private loadParent;
|
|
7810
|
+
private updatePreparedSnapshot;
|
|
7811
|
+
private hasStaleAgentParent;
|
|
7812
|
+
private validatePrepared;
|
|
7813
|
+
private loadReviewEvidence;
|
|
7814
|
+
private resumeEarlyStaleApproval;
|
|
7815
|
+
private findEvidenceById;
|
|
7816
|
+
private listAllWorkItems;
|
|
7817
|
+
private isValidEvidence;
|
|
7818
|
+
private reviewAttemptEventKey;
|
|
7819
|
+
private writeCompletionEvents;
|
|
7820
|
+
private writeReviewDecision;
|
|
7821
|
+
private writeTransitionMarker;
|
|
7822
|
+
private resumeEventKey;
|
|
7823
|
+
private writeResumeEvent;
|
|
7824
|
+
private transitionAgentTask;
|
|
7825
|
+
private statusEventKey;
|
|
7826
|
+
private writeStatusEvent;
|
|
7827
|
+
private clearAuditMarker;
|
|
7828
|
+
private writeReviewActivity;
|
|
7829
|
+
private createEvent;
|
|
7830
|
+
private success;
|
|
7831
|
+
}
|
|
7832
|
+
/**
|
|
7833
|
+
* Creates the lifecycle service from injected stores or the default Store Lattice.
|
|
7834
|
+
*
|
|
7835
|
+
* @param deps Optional stores and clock; omitted dependencies resolve the current
|
|
7836
|
+
* `default:task` and `default:taskWorkItem` registrations.
|
|
7837
|
+
* @returns A task lifecycle service ready for adapter use.
|
|
7838
|
+
*/
|
|
7839
|
+
declare function createTaskLifecycleService(deps?: TaskLifecycleServiceDeps): TaskLifecycleService;
|
|
7840
|
+
|
|
7479
7841
|
declare const AGENT_TASK_EVENT = "agent:execute";
|
|
7480
7842
|
|
|
7481
7843
|
/**
|
|
@@ -7766,7 +8128,11 @@ interface SchedulerMiddlewareOptions {
|
|
|
7766
8128
|
}
|
|
7767
8129
|
declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
|
|
7768
8130
|
|
|
7769
|
-
|
|
8131
|
+
/** Configuration consumed by the task middleware adapter. */
|
|
8132
|
+
interface TaskMiddlewareConfig {
|
|
8133
|
+
reviewMode?: "disabled" | "hitl";
|
|
8134
|
+
}
|
|
8135
|
+
declare function createTaskMiddleware(options?: TaskMiddlewareConfig): AgentMiddleware;
|
|
7770
8136
|
|
|
7771
8137
|
type ResolveAgentFn = (ref?: string, responseFormat?: Record<string, unknown>, stepType?: string) => Promise<AgentClient>;
|
|
7772
8138
|
/**
|
|
@@ -7972,6 +8338,18 @@ interface ExportableEntity {
|
|
|
7972
8338
|
_exportId: string;
|
|
7973
8339
|
data: Record<string, unknown>;
|
|
7974
8340
|
}
|
|
8341
|
+
/**
|
|
8342
|
+
* A file bundled with an exported entity (e.g., skill SKILL.md, resources).
|
|
8343
|
+
* Stored in the archive under `files/{entityType}/{entityId}/{path}`.
|
|
8344
|
+
*/
|
|
8345
|
+
interface ExportableFile {
|
|
8346
|
+
/** The raw entity id this file belongs to (e.g., skill name). */
|
|
8347
|
+
entityId: string;
|
|
8348
|
+
/** Relative path within the entity's file tree, e.g. "SKILL.md" or "resources/scripts/x.py". */
|
|
8349
|
+
path: string;
|
|
8350
|
+
/** File content. */
|
|
8351
|
+
content: Buffer;
|
|
8352
|
+
}
|
|
7975
8353
|
/** Top-level export JSON format written to file. */
|
|
7976
8354
|
interface ExportBundle {
|
|
7977
8355
|
version: 1;
|
|
@@ -8023,6 +8401,12 @@ interface Resolution {
|
|
|
8023
8401
|
action: ResolutionAction;
|
|
8024
8402
|
newId?: string;
|
|
8025
8403
|
}
|
|
8404
|
+
/** Resolution passed internally to registrations for conflict-free inserts. */
|
|
8405
|
+
interface ImportApplyResolution {
|
|
8406
|
+
_exportId: string;
|
|
8407
|
+
action: ResolutionAction | 'insert';
|
|
8408
|
+
newId?: string;
|
|
8409
|
+
}
|
|
8026
8410
|
/** Result of importing a single entity. */
|
|
8027
8411
|
type ImportEntityStatus = 'created' | 'updated' | 'skipped' | 'failed';
|
|
8028
8412
|
interface ImportEntityResult {
|
|
@@ -8044,6 +8428,15 @@ interface ExportJob {
|
|
|
8044
8428
|
bundle: ExportBundle;
|
|
8045
8429
|
createdAt: Date;
|
|
8046
8430
|
}
|
|
8431
|
+
/**
|
|
8432
|
+
* Runtime context for export/import operations.
|
|
8433
|
+
* Sandbox-backed entity types (skills) need workspace/project to resolve the
|
|
8434
|
+
* correct volume; DB-backed types ignore it.
|
|
8435
|
+
*/
|
|
8436
|
+
interface ExportContext {
|
|
8437
|
+
workspaceId?: string;
|
|
8438
|
+
projectId?: string;
|
|
8439
|
+
}
|
|
8047
8440
|
/**
|
|
8048
8441
|
* Definition for a single exportable entity type.
|
|
8049
8442
|
* Plugins and built-in types register through this interface.
|
|
@@ -8055,22 +8448,36 @@ interface ExportableEntityDefinition {
|
|
|
8055
8448
|
dependsOn: string[];
|
|
8056
8449
|
cascadeParents: string[];
|
|
8057
8450
|
/** List all entities of this type for the given tenant. */
|
|
8058
|
-
listForExport(tenantId: string): Promise<ExportableEntity[]>;
|
|
8451
|
+
listForExport(tenantId: string, context?: ExportContext): Promise<ExportableEntity[]>;
|
|
8452
|
+
/**
|
|
8453
|
+
* Optionally collect file content to bundle with this entity type.
|
|
8454
|
+
* Used for file-backed entities (e.g., skills with SKILL.md + resources/).
|
|
8455
|
+
* Returns files keyed by raw entity id → relative path → content.
|
|
8456
|
+
*/
|
|
8457
|
+
listFilesForExport?(tenantId: string, entities: ExportableEntity[], context?: ExportContext): Promise<ExportableFile[]>;
|
|
8059
8458
|
/**
|
|
8060
8459
|
* Map of field name → referenced entityType. During export, raw IDs in these fields
|
|
8061
8460
|
* are replaced with @type/exportId references. During import, IdRemapper reverses this.
|
|
8062
8461
|
*/
|
|
8063
8462
|
referenceFields?: Record<string, string>;
|
|
8463
|
+
/**
|
|
8464
|
+
* Return entity IDs required by the selected entities, grouped by registered
|
|
8465
|
+
* entity type. Export follows these references transitively and rejects
|
|
8466
|
+
* missing entities or explicit selections that omit a required ID.
|
|
8467
|
+
*/
|
|
8468
|
+
getReferencedEntityIds?(tenantId: string, entities: ExportableEntity[], context?: ExportContext): Promise<Record<string, string[]>>;
|
|
8064
8469
|
/** Check for conflicts when importing into the target tenant. */
|
|
8065
|
-
previewImport(tenantId: string, entities: ExportableEntity[]): Promise<ImportPreviewResult>;
|
|
8470
|
+
previewImport(tenantId: string, entities: ExportableEntity[], context?: ExportContext): Promise<ImportPreviewResult>;
|
|
8066
8471
|
/**
|
|
8067
8472
|
* Apply a single entity import.
|
|
8068
8473
|
* @param tenantId - Target tenant
|
|
8069
8474
|
* @param entity - The entity data with references already remapped by the service
|
|
8070
8475
|
* @param resolution - How to handle this entity (skip/overwrite/rename)
|
|
8476
|
+
* @param files - Extracted file content for this entity (from archive `files/`), keyed by relative path
|
|
8477
|
+
* @param context - Runtime context (workspace/project) for sandbox resolution
|
|
8071
8478
|
* @returns The new ID created, or undefined if skipped
|
|
8072
8479
|
*/
|
|
8073
|
-
applyImport(tenantId: string, entity: ExportableEntity, resolution:
|
|
8480
|
+
applyImport(tenantId: string, entity: ExportableEntity, resolution: ImportApplyResolution, files?: Map<string, Buffer>, context?: ExportContext): Promise<{
|
|
8074
8481
|
newId?: string;
|
|
8075
8482
|
}>;
|
|
8076
8483
|
}
|
|
@@ -8218,4 +8625,4 @@ declare class IdRemapper {
|
|
|
8218
8625
|
remapSkillIds(graphDefinition: Record<string, unknown>, skillRemap: Record<string, string>): Record<string, unknown>;
|
|
8219
8626
|
}
|
|
8220
8627
|
|
|
8221
|
-
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, 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 ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, 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, 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, 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, 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, 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, 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 };
|
|
8628
|
+
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 };
|