@vellumai/plugin-api 0.8.12-dev.202606150559.f5afe8b → 0.8.12-dev.202606150824.4ddebe7
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/index.d.ts +56 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2163,6 +2163,7 @@ declare const LLMCallSiteEnum: z.ZodEnum<{
|
|
|
2163
2163
|
trustRuleSuggestion: "trustRuleSuggestion";
|
|
2164
2164
|
homeGreeting: "homeGreeting";
|
|
2165
2165
|
homeSuggestedPrompts: "homeSuggestedPrompts";
|
|
2166
|
+
workflowLeaf: "workflowLeaf";
|
|
2166
2167
|
}>;
|
|
2167
2168
|
|
|
2168
2169
|
/**
|
|
@@ -3163,7 +3164,7 @@ declare interface SensitiveOutputBinding {
|
|
|
3163
3164
|
|
|
3164
3165
|
declare type SensitiveOutputKind = "invite_code";
|
|
3165
3166
|
|
|
3166
|
-
declare type ServerMessage = _ConversationsServerMessages | _MessagesServerMessages | _SurfacesServerMessages | _SkillsServerMessages | _AppsServerMessages | _IntegrationsServerMessages | _ComputerUseServerMessages | _ContactsServerMessages | _WorkItemsServerMessages | _SubagentsServerMessages | _DocumentsServerMessages | _DocumentCommentsServerMessages | _GuardianActionsServerMessages | _SyncInvalidationServerMessages | _HomeServerMessages | _HostAppControlServerMessages | _HostBashServerMessages | _HostBrowserServerMessages | _HostCuServerMessages | _HostFileServerMessages | _HostTransferServerMessages | _MeetServerMessages | _MemoryServerMessages | _WorkspaceServerMessages | _SchedulesServerMessages | _SettingsServerMessages | _DiagnosticsServerMessages | _InboxServerMessages | _NotificationsServerMessages | _UpgradesServerMessages | _AcpServerMessages | _BookmarksServerMessages | DiskPressureStatusChangedEvent | SubagentEvent;
|
|
3167
|
+
declare type ServerMessage = _ConversationsServerMessages | _MessagesServerMessages | _SurfacesServerMessages | _SkillsServerMessages | _AppsServerMessages | _IntegrationsServerMessages | _ComputerUseServerMessages | _ContactsServerMessages | _WorkItemsServerMessages | _SubagentsServerMessages | _DocumentsServerMessages | _DocumentCommentsServerMessages | _GuardianActionsServerMessages | _SyncInvalidationServerMessages | _HomeServerMessages | _HostAppControlServerMessages | _HostBashServerMessages | _HostBrowserServerMessages | _HostCuServerMessages | _HostFileServerMessages | _HostTransferServerMessages | _MeetServerMessages | _MemoryServerMessages | _WorkspaceServerMessages | _SchedulesServerMessages | _SettingsServerMessages | _DiagnosticsServerMessages | _InboxServerMessages | _NotificationsServerMessages | _UpgradesServerMessages | _AcpServerMessages | _BookmarksServerMessages | _WorkflowsServerMessages | DiskPressureStatusChangedEvent | SubagentEvent;
|
|
3167
3168
|
|
|
3168
3169
|
export declare interface ServerToolUseContent {
|
|
3169
3170
|
type: "server_tool_use";
|
|
@@ -4533,6 +4534,60 @@ export declare interface WebSearchToolResultContent {
|
|
|
4533
4534
|
content: unknown;
|
|
4534
4535
|
}
|
|
4535
4536
|
|
|
4537
|
+
/**
|
|
4538
|
+
* Terminal push for a workflow run. Carries the final status, counts, token
|
|
4539
|
+
* usage, and a human-readable result/error summary the originating
|
|
4540
|
+
* conversation also receives via an agent wake.
|
|
4541
|
+
*/
|
|
4542
|
+
declare interface WorkflowCompleted {
|
|
4543
|
+
type: "workflow_completed";
|
|
4544
|
+
runId: string;
|
|
4545
|
+
status: WorkflowRunStatus;
|
|
4546
|
+
agentsSpawned: number;
|
|
4547
|
+
inputTokens: number;
|
|
4548
|
+
outputTokens: number;
|
|
4549
|
+
/** Human-readable result-or-error summary. */
|
|
4550
|
+
summary?: string;
|
|
4551
|
+
}
|
|
4552
|
+
|
|
4553
|
+
/**
|
|
4554
|
+
* Progress push for an in-flight workflow run. Maps the engine's
|
|
4555
|
+
* `onProgress` (`phase`/`log`) callback plus the current usage snapshot into a
|
|
4556
|
+
* single wire event. `phase` carries the latest `phase(title)`; `message`
|
|
4557
|
+
* carries the latest `log(msg)`; only one is set per emission.
|
|
4558
|
+
*/
|
|
4559
|
+
declare interface WorkflowProgress {
|
|
4560
|
+
type: "workflow_progress";
|
|
4561
|
+
runId: string;
|
|
4562
|
+
/** Latest phase title, when this emission came from a `phase(...)` call. */
|
|
4563
|
+
phase?: string;
|
|
4564
|
+
/** Run label (the workflow's `meta.name`), for client display. */
|
|
4565
|
+
label?: string;
|
|
4566
|
+
/** Live agent count at emission time. */
|
|
4567
|
+
agentsSpawned: number;
|
|
4568
|
+
/** Latest log line, when this emission came from a `log(...)` call. */
|
|
4569
|
+
message?: string;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
/**
|
|
4573
|
+
* Typed persistence for the workflow orchestration engine.
|
|
4574
|
+
*
|
|
4575
|
+
* Two tables (created by migration 282):
|
|
4576
|
+
*
|
|
4577
|
+
* - `workflow_runs` — one row per orchestration run (a sandboxed script that
|
|
4578
|
+
* spawns parallel leaf agents), tracking lifecycle status and token usage.
|
|
4579
|
+
* - `workflow_journal` — append-only `(run_id, seq)` log of every leaf call
|
|
4580
|
+
* (agent / host function / nested workflow). On resume after a daemon
|
|
4581
|
+
* restart, the engine replays cached results for the unchanged call prefix
|
|
4582
|
+
* instead of re-spawning agents.
|
|
4583
|
+
*
|
|
4584
|
+
* This module is pure persistence — no `workflows` feature-flag logic. Callers
|
|
4585
|
+
* (the engine, a later PR) own gating.
|
|
4586
|
+
*/
|
|
4587
|
+
declare type WorkflowRunStatus = "running" | "completed" | "failed" | "aborted" | "cap_exceeded" | "interrupted";
|
|
4588
|
+
|
|
4589
|
+
declare type _WorkflowsServerMessages = WorkflowProgress | WorkflowCompleted;
|
|
4590
|
+
|
|
4536
4591
|
declare interface WorkItemApprovePermissionsResponse {
|
|
4537
4592
|
type: "work_item_approve_permissions_response";
|
|
4538
4593
|
id: string;
|
package/package.json
CHANGED