@vellumai/plugin-api 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/index.d.ts +32 -23
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6150,32 +6150,41 @@ declare interface SubagentEvent {
|
|
|
6150
6150
|
event: ServerMessage;
|
|
6151
6151
|
}
|
|
6152
6152
|
|
|
6153
|
-
declare
|
|
6154
|
-
type: "subagent_spawned";
|
|
6155
|
-
subagentId: string;
|
|
6156
|
-
parentConversationId: string;
|
|
6157
|
-
label: string;
|
|
6158
|
-
objective: string;
|
|
6159
|
-
isFork?: boolean;
|
|
6160
|
-
/**
|
|
6161
|
-
* Tool-use id of the `skill_execute` call that spawned this subagent. Lets
|
|
6162
|
-
* the client anchor the inline subagent card to the exact spawn tool call,
|
|
6163
|
-
* independent of the (reconcile-volatile) parent message id.
|
|
6164
|
-
*/
|
|
6165
|
-
parentToolUseId?: string;
|
|
6166
|
-
}
|
|
6153
|
+
declare type SubagentSpawnedEvent = z.infer<typeof SubagentSpawnedEventSchema>;
|
|
6167
6154
|
|
|
6168
|
-
declare
|
|
6155
|
+
declare const SubagentSpawnedEventSchema: z.ZodObject<{
|
|
6156
|
+
type: z.ZodLiteral<"subagent_spawned">;
|
|
6157
|
+
subagentId: z.ZodString;
|
|
6158
|
+
parentConversationId: z.ZodString;
|
|
6159
|
+
label: z.ZodString;
|
|
6160
|
+
objective: z.ZodString;
|
|
6161
|
+
isFork: z.ZodOptional<z.ZodBoolean>;
|
|
6162
|
+
parentToolUseId: z.ZodOptional<z.ZodString>;
|
|
6163
|
+
}, z.core.$strict>;
|
|
6169
6164
|
|
|
6170
|
-
declare type
|
|
6165
|
+
declare type _SubagentsServerMessages = SubagentSpawnedEvent | SubagentStatusChangedEvent | SubagentDetailResponse;
|
|
6171
6166
|
|
|
6172
|
-
declare
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6167
|
+
declare type SubagentStatusChangedEvent = z.infer<typeof SubagentStatusChangedEventSchema>;
|
|
6168
|
+
|
|
6169
|
+
declare const SubagentStatusChangedEventSchema: z.ZodObject<{
|
|
6170
|
+
type: z.ZodLiteral<"subagent_status_changed">;
|
|
6171
|
+
subagentId: z.ZodString;
|
|
6172
|
+
status: z.ZodEnum<{
|
|
6173
|
+
pending: "pending";
|
|
6174
|
+
failed: "failed";
|
|
6175
|
+
aborted: "aborted";
|
|
6176
|
+
completed: "completed";
|
|
6177
|
+
running: "running";
|
|
6178
|
+
awaiting_input: "awaiting_input";
|
|
6179
|
+
interrupted: "interrupted";
|
|
6180
|
+
}>;
|
|
6181
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6182
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
6183
|
+
inputTokens: z.ZodNumber;
|
|
6184
|
+
outputTokens: z.ZodNumber;
|
|
6185
|
+
estimatedCost: z.ZodNumber;
|
|
6186
|
+
}, z.core.$strict>>;
|
|
6187
|
+
}, z.core.$strict>;
|
|
6179
6188
|
|
|
6180
6189
|
declare type SubscriberEntry = ClientEntry | ProcessEntry;
|
|
6181
6190
|
|
package/package.json
CHANGED