@vellumai/plugin-api 0.10.11-dev.202607231833.6582892 → 0.10.11-dev.202607231902.0887e08

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.
Files changed (2) hide show
  1. package/index.d.ts +42 -37
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3197,28 +3197,29 @@ declare interface HostAppControlTypeInput {
3197
3197
  text: string;
3198
3198
  }
3199
3199
 
3200
- declare interface HostBashCancelRequest {
3201
- type: "host_bash_cancel";
3202
- requestId: string;
3203
- conversationId: string;
3204
- /** When set, route this cancel only to the client that owns the request. */
3205
- targetClientId?: string;
3206
- }
3200
+ declare type HostBashCancelEvent = z.infer<typeof HostBashCancelEventSchema>;
3207
3201
 
3208
- declare interface HostBashRequest {
3209
- type: "host_bash_request";
3210
- requestId: string;
3211
- conversationId: string;
3212
- command: string;
3213
- working_dir?: string;
3214
- timeout_seconds?: number;
3215
- /** Extra environment variables to inject into the subprocess (e.g. __CONVERSATION_ID). */
3216
- env?: Record<string, string>;
3217
- /** When set, route this request only to the client with this ID. */
3218
- targetClientId?: string;
3219
- }
3202
+ declare const HostBashCancelEventSchema: z.ZodObject<{
3203
+ type: z.ZodLiteral<"host_bash_cancel">;
3204
+ requestId: z.ZodString;
3205
+ conversationId: z.ZodString;
3206
+ targetClientId: z.ZodOptional<z.ZodString>;
3207
+ }, z.core.$strip>;
3220
3208
 
3221
- declare type _HostBashServerMessages = HostBashRequest | HostBashCancelRequest;
3209
+ declare type HostBashRequestEvent = z.infer<typeof HostBashRequestEventSchema>;
3210
+
3211
+ declare const HostBashRequestEventSchema: z.ZodObject<{
3212
+ type: z.ZodLiteral<"host_bash_request">;
3213
+ requestId: z.ZodString;
3214
+ conversationId: z.ZodString;
3215
+ command: z.ZodString;
3216
+ working_dir: z.ZodOptional<z.ZodString>;
3217
+ timeout_seconds: z.ZodOptional<z.ZodNumber>;
3218
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3219
+ targetClientId: z.ZodOptional<z.ZodString>;
3220
+ }, z.core.$strip>;
3221
+
3222
+ declare type _HostBashServerMessages = HostBashRequestEvent | HostBashCancelEvent;
3222
3223
 
3223
3224
  declare interface HostBrowserCancelRequest {
3224
3225
  type: "host_browser_cancel";
@@ -3241,25 +3242,29 @@ declare interface HostBrowserRequest {
3241
3242
 
3242
3243
  declare type _HostBrowserServerMessages = HostBrowserRequest | HostBrowserCancelRequest;
3243
3244
 
3244
- declare interface HostCuCancelRequest {
3245
- type: "host_cu_cancel";
3246
- requestId: string;
3247
- conversationId: string;
3248
- targetClientId?: string;
3249
- }
3245
+ declare type HostCuCancelEvent = z.infer<typeof HostCuCancelEventSchema>;
3250
3246
 
3251
- declare interface HostCuRequest {
3252
- type: "host_cu_request";
3253
- requestId: string;
3254
- conversationId: string;
3255
- targetClientId?: string;
3256
- toolName: string;
3257
- input: Record<string, unknown>;
3258
- stepNumber: number;
3259
- reasoning?: string;
3260
- }
3247
+ declare const HostCuCancelEventSchema: z.ZodObject<{
3248
+ type: z.ZodLiteral<"host_cu_cancel">;
3249
+ requestId: z.ZodString;
3250
+ conversationId: z.ZodString;
3251
+ targetClientId: z.ZodOptional<z.ZodString>;
3252
+ }, z.core.$strip>;
3253
+
3254
+ declare type HostCuRequestEvent = z.infer<typeof HostCuRequestEventSchema>;
3255
+
3256
+ declare const HostCuRequestEventSchema: z.ZodObject<{
3257
+ type: z.ZodLiteral<"host_cu_request">;
3258
+ requestId: z.ZodString;
3259
+ conversationId: z.ZodString;
3260
+ targetClientId: z.ZodOptional<z.ZodString>;
3261
+ toolName: z.ZodString;
3262
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3263
+ stepNumber: z.ZodNumber;
3264
+ reasoning: z.ZodOptional<z.ZodString>;
3265
+ }, z.core.$strip>;
3261
3266
 
3262
- declare type _HostCuServerMessages = HostCuRequest | HostCuCancelRequest;
3267
+ declare type _HostCuServerMessages = HostCuRequestEvent | HostCuCancelEvent;
3263
3268
 
3264
3269
  declare interface HostFileCancelRequest {
3265
3270
  type: "host_file_cancel";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.11-dev.202607231833.6582892",
3
+ "version": "0.10.11-dev.202607231902.0887e08",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",