@vellumai/assistant 0.10.11-dev.202607221815.530ef8d → 0.10.11-dev.202607221832.fc8c883
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/package.json
CHANGED
|
@@ -1,33 +1,15 @@
|
|
|
1
1
|
// Subagent lifecycle and communication types.
|
|
2
|
+
//
|
|
3
|
+
// The `subagent_spawned` and `subagent_status_changed` server events are
|
|
4
|
+
// single-sourced from their canonical `api/events` wire schemas; this file
|
|
5
|
+
// composes them into the domain union consumed by `message-protocol.ts`.
|
|
2
6
|
|
|
3
|
-
import type {
|
|
7
|
+
import type { SubagentSpawnedEvent } from "../../api/events/subagent-spawned.js";
|
|
8
|
+
import type { SubagentStatusChangedEvent } from "../../api/events/subagent-status-changed.js";
|
|
4
9
|
import type { UsageStats } from "./shared.js";
|
|
5
10
|
|
|
6
11
|
// === Server → Client ===
|
|
7
12
|
|
|
8
|
-
export interface SubagentSpawned {
|
|
9
|
-
type: "subagent_spawned";
|
|
10
|
-
subagentId: string;
|
|
11
|
-
parentConversationId: string;
|
|
12
|
-
label: string;
|
|
13
|
-
objective: string;
|
|
14
|
-
isFork?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Tool-use id of the `skill_execute` call that spawned this subagent. Lets
|
|
17
|
-
* the client anchor the inline subagent card to the exact spawn tool call,
|
|
18
|
-
* independent of the (reconcile-volatile) parent message id.
|
|
19
|
-
*/
|
|
20
|
-
parentToolUseId?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface SubagentStatusChanged {
|
|
24
|
-
type: "subagent_status_changed";
|
|
25
|
-
subagentId: string;
|
|
26
|
-
status: SubagentStatus;
|
|
27
|
-
error?: string;
|
|
28
|
-
usage?: UsageStats;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
13
|
export interface SubagentDetailResponse {
|
|
32
14
|
type: "subagent_detail_response";
|
|
33
15
|
subagentId: string;
|
|
@@ -76,6 +58,6 @@ export type _SubagentsClientMessages =
|
|
|
76
58
|
| SubagentDetailRequest;
|
|
77
59
|
|
|
78
60
|
export type _SubagentsServerMessages =
|
|
79
|
-
|
|
|
80
|
-
|
|
|
61
|
+
| SubagentSpawnedEvent
|
|
62
|
+
| SubagentStatusChangedEvent
|
|
81
63
|
| SubagentDetailResponse;
|