@axiom-lattice/core 3.1.2 → 4.0.0

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 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, 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, 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';
@@ -3110,6 +3110,19 @@ declare class FileSystemSkillStore implements SkillStore {
3110
3110
  * @returns The resource content as string
3111
3111
  */
3112
3112
  loadSkillResource(_tenantId: string, skillName: string, resourcePath: string): Promise<string | null>;
3113
+ /**
3114
+ * Write a resource file into a skill's resources directory
3115
+ * @param tenantId The tenant identifier (accepted for protocol compliance)
3116
+ * @param skillName The skill name
3117
+ * @param resourcePath Path to the resource relative to resources/ directory
3118
+ * @param content Resource content
3119
+ */
3120
+ writeSkillResource(_tenantId: string, skillName: string, resourcePath: string, content: string): Promise<void>;
3121
+ /** Load a skill resource as bytes. */
3122
+ loadSkillResourceRaw(_tenantId: string, skillName: string, resourcePath: string): Promise<Buffer | null>;
3123
+ /** Write skill resource bytes without text encoding. */
3124
+ writeSkillResourceRaw(_tenantId: string, skillName: string, resourcePath: string, data: Buffer): Promise<void>;
3125
+ private resolveResourcePath;
3113
3126
  }
3114
3127
 
3115
3128
  /**
@@ -3213,6 +3226,25 @@ declare class SandboxSkillStore implements SkillStore {
3213
3226
  * Get sub-skills of a parent skill within a tenant
3214
3227
  */
3215
3228
  getSubSkills(tenantId: string, parentSkillName: string, context?: SkillStoreContext): Promise<Skill[]>;
3229
+ /**
3230
+ * List all resources in a skill's resources directory (within sandbox).
3231
+ * Returns paths relative to the resources/ directory.
3232
+ */
3233
+ listSkillResources(tenantId: string, id: string, context?: SkillStoreContext): Promise<string[]>;
3234
+ /**
3235
+ * Load a specific resource from a skill's resources directory (within sandbox).
3236
+ */
3237
+ loadSkillResource(tenantId: string, id: string, resourcePath: string, context?: SkillStoreContext): Promise<string | null>;
3238
+ /**
3239
+ * Write a resource file into a skill's resources directory (within sandbox).
3240
+ * Creates parent directories as needed.
3241
+ */
3242
+ writeSkillResource(tenantId: string, id: string, resourcePath: string, content: string, context?: SkillStoreContext): Promise<void>;
3243
+ /** Load a resource as bytes through the sandbox file API. */
3244
+ loadSkillResourceRaw(tenantId: string, id: string, resourcePath: string, context?: SkillStoreContext): Promise<Buffer | null>;
3245
+ /** Write resource bytes through the sandbox file API. */
3246
+ writeSkillResourceRaw(tenantId: string, id: string, resourcePath: string, data: Buffer, context?: SkillStoreContext): Promise<void>;
3247
+ private validateResourcePath;
3216
3248
  }
3217
3249
 
3218
3250
  /**
@@ -3508,9 +3540,11 @@ declare class InMemoryBindingStore implements BindingRegistry {
3508
3540
  clear(): void;
3509
3541
  }
3510
3542
 
3543
+ /** In-memory A2A API key persistence for development and tests. */
3511
3544
  declare class InMemoryA2AApiKeyStore implements A2AApiKeyStore {
3512
3545
  private keys;
3513
3546
  findByKey(key: string): Promise<A2AApiKeyRecord | null>;
3547
+ findById(id: string): Promise<A2AApiKeyRecord | null>;
3514
3548
  list(params: {
3515
3549
  tenantId?: string;
3516
3550
  limit?: number;
@@ -3560,8 +3594,14 @@ declare class InMemoryThreadMessageQueueStore implements IMessageQueueStore {
3560
3594
  */
3561
3595
  declare class InMemoryTaskStore implements TaskStore {
3562
3596
  private tasks;
3597
+ private cloneTask;
3598
+ private nextUpdatedAt;
3599
+ private canAdvanceUpdatedAt;
3600
+ private recognizedUpdates;
3601
+ private applyUpdates;
3563
3602
  /**
3564
3603
  * Create a new task
3604
+ * @throws Error when the tenant already contains the requested task ID.
3565
3605
  */
3566
3606
  create(params: CreateTaskRequest & {
3567
3607
  tenantId: string;
@@ -3580,6 +3620,22 @@ declare class InMemoryTaskStore implements TaskStore {
3580
3620
  * Update an existing task
3581
3621
  */
3582
3622
  update(tenantId: string, id: string, updates: UpdateTaskRequest): Promise<TaskItem | null>;
3623
+ /** Atomically update a task only when its current status is expected. */
3624
+ updateIfStatusIn(tenantId: string, id: string, updates: UpdateTaskRequest, expectedStatuses: TaskItem["status"][]): Promise<TaskItem | null>;
3625
+ /**
3626
+ * Atomically update a task unless its current status is blocked.
3627
+ *
3628
+ * @param tenantId Tenant identifier.
3629
+ * @param id Task identifier.
3630
+ * @param updates Partial task data to update.
3631
+ * @param blockedStatuses Current statuses that prevent the update.
3632
+ * @returns The updated task, or `null` when missing or blocked.
3633
+ */
3634
+ updateIfStatusNotIn(tenantId: string, id: string, updates: UpdateTaskRequest, blockedStatuses: TaskItem["status"][]): Promise<TaskItem | null>;
3635
+ /** Atomically update a task only when status and updatedAt match a read snapshot. */
3636
+ updateIfStatusAndUpdatedAt(tenantId: string, id: string, updates: UpdateTaskRequest, expectedStatuses: TaskItem["status"][], expectedUpdatedAt: Date | string): Promise<TaskItem | null>;
3637
+ /** Atomically update a child only when both child and parent snapshots match. */
3638
+ updateIfStatusUpdatedAtAndParentUpdatedAt(tenantId: string, id: string, updates: UpdateTaskRequest, expectedStatuses: TaskItem["status"][], expectedUpdatedAt: Date | string, parentId: string, expectedParentUpdatedAt: Date | string): Promise<TaskItem | null>;
3583
3639
  /**
3584
3640
  * Delete a task by ID
3585
3641
  */
@@ -7476,6 +7532,289 @@ declare class AgentInstanceManager {
7476
7532
  }
7477
7533
  declare const agentInstanceManager: AgentInstanceManager;
7478
7534
 
7535
+ /**
7536
+ * A single structured belief report attached to a task completion.
7537
+ *
7538
+ * Mirrors the `manage_task.beliefImpact` tool field: the reporting task claims
7539
+ * that, after execution, the named Belief Key is true with `after` percent
7540
+ * probability, supported by `basis` evidence.
7541
+ */
7542
+ interface BeliefImpactInput {
7543
+ key: string;
7544
+ after: number;
7545
+ basis: string;
7546
+ }
7547
+
7548
+ /** A recoverable work-item failure that occurred after a task transition committed. */
7549
+ interface LifecycleWarning {
7550
+ code: string;
7551
+ taskId: string;
7552
+ evidenceId?: string;
7553
+ eventKey?: string;
7554
+ parentTaskId?: string;
7555
+ }
7556
+ /** The structured outcome returned by every task lifecycle operation. */
7557
+ type LifecycleResult = {
7558
+ success: true;
7559
+ task: TaskItem;
7560
+ evidenceId?: string;
7561
+ eventKey?: string;
7562
+ warnings?: LifecycleWarning[];
7563
+ } | {
7564
+ success: false;
7565
+ code: string;
7566
+ error: string;
7567
+ hint?: string;
7568
+ evidenceId?: string;
7569
+ eventKey?: string;
7570
+ warnings?: LifecycleWarning[];
7571
+ };
7572
+ /** Stores and clock used by {@link TaskLifecycleService}. */
7573
+ interface TaskLifecycleServiceDeps {
7574
+ taskStore: TaskStore;
7575
+ workItemStore: TaskWorkItemStore;
7576
+ now?: () => Date;
7577
+ }
7578
+ /** Input shared by direct completion and completion repair. */
7579
+ interface AgentTaskCompletionInput {
7580
+ tenantId: string;
7581
+ taskId: string;
7582
+ result: string;
7583
+ beliefImpact: BeliefImpactInput[];
7584
+ actor: string;
7585
+ threadId?: string;
7586
+ sourceId?: string;
7587
+ }
7588
+ /** Input for submitting agent completion evidence to HITL review. */
7589
+ interface SubmitTaskReviewInput extends AgentTaskCompletionInput {
7590
+ reviewMode: "disabled" | "hitl";
7591
+ /** Atomically enables review as part of the in-progress-to-interrupted transition. */
7592
+ configureRequireReview?: boolean;
7593
+ }
7594
+ /** Input for approving completion evidence after an HITL resume. */
7595
+ interface ApproveInterruptedTaskInput {
7596
+ tenantId: string;
7597
+ taskId: string;
7598
+ evidenceId: string;
7599
+ actor: string;
7600
+ threadId?: string;
7601
+ }
7602
+ /** Input for rejecting completion evidence after an HITL resume. */
7603
+ interface RejectInterruptedTaskInput extends ApproveInterruptedTaskInput {
7604
+ note: string;
7605
+ }
7606
+ /** Input for a description update that audits semantic Belief State changes. */
7607
+ interface ReconcileTaskDescriptionInput {
7608
+ tenantId: string;
7609
+ taskId: string;
7610
+ description: string;
7611
+ actor: string;
7612
+ threadId?: string;
7613
+ }
7614
+ /** Input for resuming an interruption that is not waiting for human review. */
7615
+ interface ResumeInterruptionInput {
7616
+ /** Tenant containing the task. */
7617
+ tenantId: string;
7618
+ /** Interrupted task identifier. */
7619
+ taskId: string;
7620
+ /** Actor making the resume request. */
7621
+ actor: string;
7622
+ /** Optional thread to retain in the interruption audit context. */
7623
+ threadId?: string;
7624
+ }
7625
+ /** Input for atomically starting or retrying an agent task. */
7626
+ interface StartTaskInput {
7627
+ tenantId: string;
7628
+ taskId: string;
7629
+ actor: string;
7630
+ threadId?: string;
7631
+ }
7632
+ /** Input for atomically failing an active agent task. */
7633
+ interface FailTaskInput {
7634
+ tenantId: string;
7635
+ taskId: string;
7636
+ failureReason: string;
7637
+ actor: string;
7638
+ threadId?: string;
7639
+ }
7640
+ /** Input for atomically cancelling a nonterminal agent task. */
7641
+ interface CancelTaskInput {
7642
+ tenantId: string;
7643
+ taskId: string;
7644
+ actor: string;
7645
+ threadId?: string;
7646
+ summary?: string;
7647
+ }
7648
+ /** Agent-owned interruption kinds persisted by the lifecycle service. */
7649
+ type AgentInterruptionType = "missing_input" | "external_dependency" | "user_decision";
7650
+ /** Input for atomically interrupting an in-progress agent task. */
7651
+ interface InterruptTaskInput {
7652
+ tenantId: string;
7653
+ taskId: string;
7654
+ type: AgentInterruptionType;
7655
+ summary: string;
7656
+ actor: string;
7657
+ threadId?: string;
7658
+ }
7659
+ /** Canonical identity and Belief State snapshot bound to completion evidence. */
7660
+ interface BeliefOwnerSnapshot {
7661
+ owner: "self" | "parent";
7662
+ childParentId?: string;
7663
+ beliefState: TaskBeliefState;
7664
+ self?: {
7665
+ id: string;
7666
+ ownerType: "user" | "agent";
7667
+ ownerId: string;
7668
+ workspaceId?: string;
7669
+ projectId?: string;
7670
+ };
7671
+ parent?: {
7672
+ id: string;
7673
+ ownerType: "user" | "agent";
7674
+ ownerId: string;
7675
+ workspaceId?: string;
7676
+ projectId?: string;
7677
+ };
7678
+ parentUpdatedAt?: string;
7679
+ }
7680
+ /**
7681
+ * Owns atomic agent-task completion, review, repair, and belief reconciliation.
7682
+ *
7683
+ * Evidence is persisted before status CAS operations. All events written after
7684
+ * CAS have deterministic keys, allowing callers to repair partial persistence.
7685
+ *
7686
+ * @example
7687
+ * ```ts
7688
+ * const service = new TaskLifecycleService({ taskStore, workItemStore });
7689
+ * await service.completeAgentTask({ tenantId, taskId, result, beliefImpact, actor });
7690
+ * ```
7691
+ */
7692
+ declare class TaskLifecycleService {
7693
+ private readonly deps;
7694
+ private readonly now;
7695
+ /**
7696
+ * Creates a lifecycle service with injected stores and an optional test clock.
7697
+ *
7698
+ * @param deps Task and work-item stores plus an optional deterministic clock.
7699
+ * @remarks Store operations are translated to structured lifecycle failures by public methods.
7700
+ */
7701
+ constructor(deps: TaskLifecycleServiceDeps);
7702
+ /**
7703
+ * Returns the deterministic task-scoped completion evidence key.
7704
+ *
7705
+ * @param taskId Task receiving the evidence.
7706
+ * @param result Candidate result Markdown.
7707
+ * @param beliefImpact Structured belief evidence.
7708
+ * @param beliefOwner Optional canonical owner snapshot to bind into the key.
7709
+ * @returns A task-scoped key containing the canonical SHA-256 digest.
7710
+ * @remarks Review attempts append `:attempt:N` to this canonical base key.
7711
+ */
7712
+ completionEventKey(taskId: string, result: string, beliefImpact: BeliefImpactInput[], beliefOwner?: BeliefOwnerSnapshot): string;
7713
+ /**
7714
+ * Resumes an interruption unless it is explicitly owned by the review workflow.
7715
+ *
7716
+ * @param input Resume request and actor identity.
7717
+ * @returns Structured task transition result.
7718
+ * @remarks Review interruptions must be approved or rejected through their evidence-bound methods.
7719
+ */
7720
+ resumeInterruption(input: ResumeInterruptionInput): Promise<LifecycleResult>;
7721
+ /** Atomically fails an active agent task and records an idempotent status event. */
7722
+ failTask(input: FailTaskInput): Promise<LifecycleResult>;
7723
+ /** Atomically starts a pending agent task and records an idempotent status event. */
7724
+ startTask(input: StartTaskInput): Promise<LifecycleResult>;
7725
+ /** Atomically retries a failed agent task and records an idempotent status event. */
7726
+ retryTask(input: StartTaskInput): Promise<LifecycleResult>;
7727
+ /** Atomically cancels a nonterminal agent task and records an idempotent status event. */
7728
+ cancelTask(input: CancelTaskInput): Promise<LifecycleResult>;
7729
+ /** Atomically records a governed blocking interruption for an in-progress agent task. */
7730
+ interruptTask(input: InterruptTaskInput): Promise<LifecycleResult>;
7731
+ /**
7732
+ * Atomically completes an in-progress agent task and writes repairable events.
7733
+ * @param input Completion result, belief impacts, actor, and optional thread.
7734
+ * @returns Structured completion result or failure.
7735
+ * @remarks Evidence is written before the status CAS; retries are idempotent by canonical event key.
7736
+ */
7737
+ completeAgentTask(input: AgentTaskCompletionInput): Promise<LifecycleResult>;
7738
+ /**
7739
+ * Persists candidate evidence and atomically enters `interrupted(review_required)`.
7740
+ * @param input Review submission and candidate evidence.
7741
+ * @returns Structured interruption result or failure.
7742
+ * @remarks Existing context is preserved and review attempts after rejection receive a fresh key.
7743
+ */
7744
+ submitReview(input: SubmitTaskReviewInput): Promise<LifecycleResult>;
7745
+ /**
7746
+ * Approves current completion evidence after revalidation and atomically completes the task.
7747
+ * @param input Evidence-bound approval request.
7748
+ * @returns Structured completion result or failure.
7749
+ * @remarks Approval is valid only for the current interruption evidence and is status-CAS protected.
7750
+ */
7751
+ approveInterrupted(input: ApproveInterruptedTaskInput): Promise<LifecycleResult>;
7752
+ /**
7753
+ * Rejects current completion evidence and atomically resumes the task in progress.
7754
+ * @param input Evidence-bound rejection request and reviewer note.
7755
+ * @returns Structured resume result with repair warnings when post-CAS events fail.
7756
+ * @remarks Rejection records a decision before any later identical submission can be approved.
7757
+ */
7758
+ rejectInterrupted(input: RejectInterruptedTaskInput): Promise<LifecycleResult>;
7759
+ /**
7760
+ * Repairs review decision and feedback events after rejection resumed the task.
7761
+ *
7762
+ * @param input Rejected evidence and deterministic feedback data.
7763
+ * @returns Structured repair result with any remaining warnings.
7764
+ * @remarks This path is valid only while the task remains in progress; it never changes task status.
7765
+ */
7766
+ repairReview(input: RejectInterruptedTaskInput): Promise<LifecycleResult>;
7767
+ /**
7768
+ * Repairs missing completion status, decision, or parent events for an identical terminal replay.
7769
+ * @param input Canonical completion evidence to replay.
7770
+ * @returns Structured repair result or failure.
7771
+ * @remarks Repair never creates terminal events for non-completed tasks or incompatible evidence.
7772
+ */
7773
+ repairCompletion(input: AgentTaskCompletionInput): Promise<LifecycleResult>;
7774
+ /**
7775
+ * Updates a description while preserving its goal contract and auditing semantic belief changes.
7776
+ * @param input Description, actor, and optional thread.
7777
+ * @returns Structured update result or failure.
7778
+ * @remarks Duplicate Objective or Acceptance Criteria headings are rejected rather than collapsed.
7779
+ */
7780
+ updateTaskDescriptionWithReconciliation(input: ReconcileTaskDescriptionInput): Promise<LifecycleResult>;
7781
+ private prepareCompletion;
7782
+ private beliefOwnerSnapshot;
7783
+ private reconcileCompletedCas;
7784
+ private reconcileSubmittedCas;
7785
+ private reconcileReviewDecisionCas;
7786
+ private loadParent;
7787
+ private updatePreparedSnapshot;
7788
+ private hasStaleAgentParent;
7789
+ private validatePrepared;
7790
+ private loadReviewEvidence;
7791
+ private resumeEarlyStaleApproval;
7792
+ private findEvidenceById;
7793
+ private listAllWorkItems;
7794
+ private isValidEvidence;
7795
+ private reviewAttemptEventKey;
7796
+ private writeCompletionEvents;
7797
+ private writeReviewDecision;
7798
+ private writeTransitionMarker;
7799
+ private resumeEventKey;
7800
+ private writeResumeEvent;
7801
+ private transitionAgentTask;
7802
+ private statusEventKey;
7803
+ private writeStatusEvent;
7804
+ private clearAuditMarker;
7805
+ private writeReviewActivity;
7806
+ private createEvent;
7807
+ private success;
7808
+ }
7809
+ /**
7810
+ * Creates the lifecycle service from injected stores or the default Store Lattice.
7811
+ *
7812
+ * @param deps Optional stores and clock; omitted dependencies resolve the current
7813
+ * `default:task` and `default:taskWorkItem` registrations.
7814
+ * @returns A task lifecycle service ready for adapter use.
7815
+ */
7816
+ declare function createTaskLifecycleService(deps?: TaskLifecycleServiceDeps): TaskLifecycleService;
7817
+
7479
7818
  declare const AGENT_TASK_EVENT = "agent:execute";
7480
7819
 
7481
7820
  /**
@@ -7766,7 +8105,11 @@ interface SchedulerMiddlewareOptions {
7766
8105
  }
7767
8106
  declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
7768
8107
 
7769
- declare function createTaskMiddleware(): AgentMiddleware;
8108
+ /** Configuration consumed by the task middleware adapter. */
8109
+ interface TaskMiddlewareConfig {
8110
+ reviewMode?: "disabled" | "hitl";
8111
+ }
8112
+ declare function createTaskMiddleware(options?: TaskMiddlewareConfig): AgentMiddleware;
7770
8113
 
7771
8114
  type ResolveAgentFn = (ref?: string, responseFormat?: Record<string, unknown>, stepType?: string) => Promise<AgentClient>;
7772
8115
  /**
@@ -7972,6 +8315,18 @@ interface ExportableEntity {
7972
8315
  _exportId: string;
7973
8316
  data: Record<string, unknown>;
7974
8317
  }
8318
+ /**
8319
+ * A file bundled with an exported entity (e.g., skill SKILL.md, resources).
8320
+ * Stored in the archive under `files/{entityType}/{entityId}/{path}`.
8321
+ */
8322
+ interface ExportableFile {
8323
+ /** The raw entity id this file belongs to (e.g., skill name). */
8324
+ entityId: string;
8325
+ /** Relative path within the entity's file tree, e.g. "SKILL.md" or "resources/scripts/x.py". */
8326
+ path: string;
8327
+ /** File content. */
8328
+ content: Buffer;
8329
+ }
7975
8330
  /** Top-level export JSON format written to file. */
7976
8331
  interface ExportBundle {
7977
8332
  version: 1;
@@ -8023,6 +8378,12 @@ interface Resolution {
8023
8378
  action: ResolutionAction;
8024
8379
  newId?: string;
8025
8380
  }
8381
+ /** Resolution passed internally to registrations for conflict-free inserts. */
8382
+ interface ImportApplyResolution {
8383
+ _exportId: string;
8384
+ action: ResolutionAction | 'insert';
8385
+ newId?: string;
8386
+ }
8026
8387
  /** Result of importing a single entity. */
8027
8388
  type ImportEntityStatus = 'created' | 'updated' | 'skipped' | 'failed';
8028
8389
  interface ImportEntityResult {
@@ -8044,6 +8405,15 @@ interface ExportJob {
8044
8405
  bundle: ExportBundle;
8045
8406
  createdAt: Date;
8046
8407
  }
8408
+ /**
8409
+ * Runtime context for export/import operations.
8410
+ * Sandbox-backed entity types (skills) need workspace/project to resolve the
8411
+ * correct volume; DB-backed types ignore it.
8412
+ */
8413
+ interface ExportContext {
8414
+ workspaceId?: string;
8415
+ projectId?: string;
8416
+ }
8047
8417
  /**
8048
8418
  * Definition for a single exportable entity type.
8049
8419
  * Plugins and built-in types register through this interface.
@@ -8055,22 +8425,36 @@ interface ExportableEntityDefinition {
8055
8425
  dependsOn: string[];
8056
8426
  cascadeParents: string[];
8057
8427
  /** List all entities of this type for the given tenant. */
8058
- listForExport(tenantId: string): Promise<ExportableEntity[]>;
8428
+ listForExport(tenantId: string, context?: ExportContext): Promise<ExportableEntity[]>;
8429
+ /**
8430
+ * Optionally collect file content to bundle with this entity type.
8431
+ * Used for file-backed entities (e.g., skills with SKILL.md + resources/).
8432
+ * Returns files keyed by raw entity id → relative path → content.
8433
+ */
8434
+ listFilesForExport?(tenantId: string, entities: ExportableEntity[], context?: ExportContext): Promise<ExportableFile[]>;
8059
8435
  /**
8060
8436
  * Map of field name → referenced entityType. During export, raw IDs in these fields
8061
8437
  * are replaced with @type/exportId references. During import, IdRemapper reverses this.
8062
8438
  */
8063
8439
  referenceFields?: Record<string, string>;
8440
+ /**
8441
+ * Return entity IDs required by the selected entities, grouped by registered
8442
+ * entity type. Export follows these references transitively and rejects
8443
+ * missing entities or explicit selections that omit a required ID.
8444
+ */
8445
+ getReferencedEntityIds?(tenantId: string, entities: ExportableEntity[], context?: ExportContext): Promise<Record<string, string[]>>;
8064
8446
  /** Check for conflicts when importing into the target tenant. */
8065
- previewImport(tenantId: string, entities: ExportableEntity[]): Promise<ImportPreviewResult>;
8447
+ previewImport(tenantId: string, entities: ExportableEntity[], context?: ExportContext): Promise<ImportPreviewResult>;
8066
8448
  /**
8067
8449
  * Apply a single entity import.
8068
8450
  * @param tenantId - Target tenant
8069
8451
  * @param entity - The entity data with references already remapped by the service
8070
8452
  * @param resolution - How to handle this entity (skip/overwrite/rename)
8453
+ * @param files - Extracted file content for this entity (from archive `files/`), keyed by relative path
8454
+ * @param context - Runtime context (workspace/project) for sandbox resolution
8071
8455
  * @returns The new ID created, or undefined if skipped
8072
8456
  */
8073
- applyImport(tenantId: string, entity: ExportableEntity, resolution: Resolution): Promise<{
8457
+ applyImport(tenantId: string, entity: ExportableEntity, resolution: ImportApplyResolution, files?: Map<string, Buffer>, context?: ExportContext): Promise<{
8074
8458
  newId?: string;
8075
8459
  }>;
8076
8460
  }
@@ -8218,4 +8602,4 @@ declare class IdRemapper {
8218
8602
  remapSkillIds(graphDefinition: Record<string, unknown>, skillRemap: Record<string, string>): Record<string, unknown>;
8219
8603
  }
8220
8604
 
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 };
8605
+ 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, 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 };