@vellumai/plugin-api 0.10.11-dev.202607231833.6582892 → 0.10.11-dev.202607231934.db954e6

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 +59 -56
  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";
@@ -3341,28 +3346,26 @@ declare interface HostTransferToSandboxRequest {
3341
3346
  sourcePath: string;
3342
3347
  }
3343
3348
 
3344
- declare interface HostUiSnapshotCancelMessage {
3345
- type: "host_ui_snapshot_cancel";
3346
- requestId: string;
3347
- }
3349
+ declare type HostUiSnapshotCancelEvent = z.infer<typeof HostUiSnapshotCancelEventSchema>;
3348
3350
 
3349
- declare interface HostUiSnapshotRequestMessage {
3350
- type: "host_ui_snapshot_request";
3351
- requestId: string;
3352
- view: HostUiSnapshotView;
3353
- /**
3354
- * Validated workspace-theme tokens to apply on the stage. The daemon reads
3355
- * them from ui/theme.json at request time so the capture reflects the
3356
- * current file even before connected clients refetch. Absent when no valid
3357
- * theme exists — the stage renders the built-in base theme.
3358
- */
3359
- tokens?: Record<string, string>;
3360
- }
3351
+ declare const HostUiSnapshotCancelEventSchema: z.ZodObject<{
3352
+ type: z.ZodLiteral<"host_ui_snapshot_cancel">;
3353
+ requestId: z.ZodString;
3354
+ }, z.core.$strip>;
3355
+
3356
+ declare type HostUiSnapshotRequestEvent = z.infer<typeof HostUiSnapshotRequestEventSchema>;
3361
3357
 
3362
- declare type _HostUiSnapshotServerMessages = HostUiSnapshotRequestMessage | HostUiSnapshotCancelMessage;
3358
+ declare const HostUiSnapshotRequestEventSchema: z.ZodObject<{
3359
+ type: z.ZodLiteral<"host_ui_snapshot_request">;
3360
+ requestId: z.ZodString;
3361
+ view: z.ZodEnum<{
3362
+ sampler: "sampler";
3363
+ chat: "chat";
3364
+ }>;
3365
+ tokens: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3366
+ }, z.core.$strip>;
3363
3367
 
3364
- /** Staged compositions the web client can render for capture. */
3365
- declare type HostUiSnapshotView = "sampler" | "chat";
3368
+ declare type _HostUiSnapshotServerMessages = HostUiSnapshotRequestEvent | HostUiSnapshotCancelEvent;
3366
3369
 
3367
3370
  declare type IdentityChangedEvent = z.infer<typeof IdentityChangedEventSchema>;
3368
3371
 
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.202607231934.db954e6",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",