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

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 +176 -212
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -671,6 +671,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
671
671
  timeThresholdMs: z.ZodDefault<z.ZodNumber>;
672
672
  messageThreshold: z.ZodDefault<z.ZodNumber>;
673
673
  minCooldownMs: z.ZodDefault<z.ZodNumber>;
674
+ sweepIntervalMs: z.ZodDefault<z.ZodNumber>;
674
675
  keepSupersededRuns: z.ZodDefault<z.ZodBoolean>;
675
676
  matchConversationProfile: z.ZodDefault<z.ZodBoolean>;
676
677
  promptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3085,117 +3086,84 @@ export declare const HOOKS: {
3085
3086
  */
3086
3087
  declare const HOST_PROXY_CAPABILITIES: readonly ["host_bash", "host_file", "host_cu", "host_browser", "host_app_control", "host_ui_snapshot"];
3087
3088
 
3088
- declare interface HostAppControlCancel {
3089
- type: "host_app_control_cancel";
3090
- requestId: string;
3091
- conversationId: string;
3092
- }
3093
-
3094
- declare interface HostAppControlClickInput {
3095
- tool: "click";
3096
- app: string;
3097
- x: number;
3098
- y: number;
3099
- button?: "left" | "right" | "middle";
3100
- double?: boolean;
3101
- }
3102
-
3103
- declare interface HostAppControlComboInput {
3104
- tool: "combo";
3105
- app: string;
3106
- /** Sequence of keys pressed simultaneously, e.g. ["cmd", "shift", "4"]. */
3107
- keys: string[];
3108
- /** Hold duration in milliseconds. */
3109
- duration_ms?: number;
3110
- }
3111
-
3112
- declare interface HostAppControlDragInput {
3113
- tool: "drag";
3114
- app: string;
3115
- from_x: number;
3116
- from_y: number;
3117
- to_x: number;
3118
- to_y: number;
3119
- button?: "left" | "right" | "middle";
3120
- }
3121
-
3122
- /** Inputs accepted by the nine app-control tool variants. */
3123
- declare type HostAppControlInput = HostAppControlStartInput | HostAppControlObserveInput | HostAppControlPressInput | HostAppControlComboInput | HostAppControlSequenceInput | HostAppControlTypeInput | HostAppControlClickInput | HostAppControlDragInput | HostAppControlStopInput;
3124
-
3125
- declare interface HostAppControlObserveInput {
3126
- tool: "observe";
3127
- app: string;
3128
- /**
3129
- * Milliseconds to wait between receiving the request and capturing the
3130
- * window. Lets the target app process pending input and the WindowServer
3131
- * composite a fresh frame. When omitted, the client uses its default
3132
- * (~200ms, sized for emulator-class apps at 60fps). Pass `0` for static
3133
- * UIs to make `observe` snappier; raise it for slow-feedback apps.
3134
- */
3135
- settle_ms?: number;
3136
- }
3137
-
3138
- declare interface HostAppControlPressInput {
3139
- tool: "press";
3140
- app: string;
3141
- /** Single key identifier, e.g. "return", "a", "f12". */
3142
- key: string;
3143
- /** Modifier list, e.g. ["cmd", "shift"]. */
3144
- modifiers?: string[];
3145
- /** Hold duration in milliseconds. */
3146
- duration_ms?: number;
3147
- }
3089
+ declare type HostAppControlCancelEvent = z.infer<typeof HostAppControlCancelEventSchema>;
3148
3090
 
3149
- declare interface HostAppControlRequest {
3150
- type: "host_app_control_request";
3151
- requestId: string;
3152
- conversationId: string;
3153
- toolName: string;
3154
- input: HostAppControlInput;
3155
- }
3156
-
3157
- declare interface HostAppControlSequenceInput {
3158
- tool: "sequence";
3159
- app: string;
3160
- /** Ordered list of single-key presses to execute serially. */
3161
- steps: HostAppControlSequenceStep[];
3162
- }
3163
-
3164
- /** A single step inside a sequence: one key press with optional modifiers, hold duration, and post-press gap. */
3165
- declare interface HostAppControlSequenceStep {
3166
- /** Single key identifier, e.g. "right", "a", "return". */
3167
- key: string;
3168
- /** Modifier list, e.g. ["cmd", "shift"]. Omit for no modifiers. */
3169
- modifiers?: string[];
3170
- /** Hold duration for this key in milliseconds. */
3171
- duration_ms?: number;
3172
- /** Pause after this step before starting the next, in milliseconds. */
3173
- gap_ms?: number;
3174
- }
3091
+ declare const HostAppControlCancelEventSchema: z.ZodObject<{
3092
+ type: z.ZodLiteral<"host_app_control_cancel">;
3093
+ requestId: z.ZodString;
3094
+ conversationId: z.ZodString;
3095
+ }, z.core.$strip>;
3175
3096
 
3176
- declare type _HostAppControlServerMessages = HostAppControlRequest | HostAppControlCancel;
3097
+ declare type HostAppControlRequestEvent = z.infer<typeof HostAppControlRequestEventSchema>;
3177
3098
 
3178
- declare interface HostAppControlStartInput {
3179
- tool: "start";
3180
- /** Bundle ID (preferred) or process name. */
3181
- app: string;
3182
- /** Optional command-line arguments to launch the app with. */
3183
- args?: string[];
3184
- }
3185
-
3186
- declare interface HostAppControlStopInput {
3187
- tool: "stop";
3188
- /** Optional — when omitted the proxy stops whichever app currently holds the session. */
3189
- app?: string;
3190
- /** Free-form reason, surfaced for logging. */
3191
- reason?: string;
3192
- }
3099
+ declare const HostAppControlRequestEventSchema: z.ZodObject<{
3100
+ type: z.ZodLiteral<"host_app_control_request">;
3101
+ requestId: z.ZodString;
3102
+ conversationId: z.ZodString;
3103
+ toolName: z.ZodString;
3104
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
3105
+ tool: z.ZodLiteral<"start">;
3106
+ app: z.ZodString;
3107
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
3108
+ }, z.core.$strip>, z.ZodObject<{
3109
+ tool: z.ZodLiteral<"observe">;
3110
+ app: z.ZodString;
3111
+ settle_ms: z.ZodOptional<z.ZodNumber>;
3112
+ }, z.core.$strip>, z.ZodObject<{
3113
+ tool: z.ZodLiteral<"press">;
3114
+ app: z.ZodString;
3115
+ key: z.ZodString;
3116
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3117
+ duration_ms: z.ZodOptional<z.ZodNumber>;
3118
+ }, z.core.$strip>, z.ZodObject<{
3119
+ tool: z.ZodLiteral<"combo">;
3120
+ app: z.ZodString;
3121
+ keys: z.ZodArray<z.ZodString>;
3122
+ duration_ms: z.ZodOptional<z.ZodNumber>;
3123
+ }, z.core.$strip>, z.ZodObject<{
3124
+ tool: z.ZodLiteral<"sequence">;
3125
+ app: z.ZodString;
3126
+ steps: z.ZodArray<z.ZodObject<{
3127
+ key: z.ZodString;
3128
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3129
+ duration_ms: z.ZodOptional<z.ZodNumber>;
3130
+ gap_ms: z.ZodOptional<z.ZodNumber>;
3131
+ }, z.core.$strip>>;
3132
+ }, z.core.$strip>, z.ZodObject<{
3133
+ tool: z.ZodLiteral<"type">;
3134
+ app: z.ZodString;
3135
+ text: z.ZodString;
3136
+ }, z.core.$strip>, z.ZodObject<{
3137
+ tool: z.ZodLiteral<"click">;
3138
+ app: z.ZodString;
3139
+ x: z.ZodNumber;
3140
+ y: z.ZodNumber;
3141
+ button: z.ZodOptional<z.ZodEnum<{
3142
+ left: "left";
3143
+ right: "right";
3144
+ middle: "middle";
3145
+ }>>;
3146
+ double: z.ZodOptional<z.ZodBoolean>;
3147
+ }, z.core.$strip>, z.ZodObject<{
3148
+ tool: z.ZodLiteral<"drag">;
3149
+ app: z.ZodString;
3150
+ from_x: z.ZodNumber;
3151
+ from_y: z.ZodNumber;
3152
+ to_x: z.ZodNumber;
3153
+ to_y: z.ZodNumber;
3154
+ button: z.ZodOptional<z.ZodEnum<{
3155
+ left: "left";
3156
+ right: "right";
3157
+ middle: "middle";
3158
+ }>>;
3159
+ }, z.core.$strip>, z.ZodObject<{
3160
+ tool: z.ZodLiteral<"stop">;
3161
+ app: z.ZodOptional<z.ZodString>;
3162
+ reason: z.ZodOptional<z.ZodString>;
3163
+ }, z.core.$strip>], "tool">;
3164
+ }, z.core.$strip>;
3193
3165
 
3194
- declare interface HostAppControlTypeInput {
3195
- tool: "type";
3196
- app: string;
3197
- text: string;
3198
- }
3166
+ declare type _HostAppControlServerMessages = HostAppControlRequestEvent | HostAppControlCancelEvent;
3199
3167
 
3200
3168
  declare type HostBashCancelEvent = z.infer<typeof HostBashCancelEventSchema>;
3201
3169
 
@@ -3221,26 +3189,26 @@ declare const HostBashRequestEventSchema: z.ZodObject<{
3221
3189
 
3222
3190
  declare type _HostBashServerMessages = HostBashRequestEvent | HostBashCancelEvent;
3223
3191
 
3224
- declare interface HostBrowserCancelRequest {
3225
- type: "host_browser_cancel";
3226
- requestId: string;
3227
- }
3192
+ declare type HostBrowserCancelEvent = z.infer<typeof HostBrowserCancelEventSchema>;
3228
3193
 
3229
- declare interface HostBrowserRequest {
3230
- type: "host_browser_request";
3231
- requestId: string;
3232
- conversationId: string;
3233
- /** CDP method name, e.g. "Page.navigate", "Runtime.evaluate", "Accessibility.getFullAXTree". */
3234
- cdpMethod: string;
3235
- /** Opaque JSON params object forwarded verbatim to CDP. */
3236
- cdpParams?: Record<string, unknown>;
3237
- /** Optional CDP target/session ID; omitted = "most-recently-active tab". */
3238
- cdpSessionId?: string;
3239
- /** Client-side timeout hint; defaults to 30s in the proxy. */
3240
- timeout_seconds?: number;
3241
- }
3194
+ declare const HostBrowserCancelEventSchema: z.ZodObject<{
3195
+ type: z.ZodLiteral<"host_browser_cancel">;
3196
+ requestId: z.ZodString;
3197
+ }, z.core.$strip>;
3198
+
3199
+ declare type HostBrowserRequestEvent = z.infer<typeof HostBrowserRequestEventSchema>;
3200
+
3201
+ declare const HostBrowserRequestEventSchema: z.ZodObject<{
3202
+ type: z.ZodLiteral<"host_browser_request">;
3203
+ requestId: z.ZodString;
3204
+ conversationId: z.ZodString;
3205
+ cdpMethod: z.ZodString;
3206
+ cdpParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3207
+ cdpSessionId: z.ZodOptional<z.ZodString>;
3208
+ timeout_seconds: z.ZodOptional<z.ZodNumber>;
3209
+ }, z.core.$strip>;
3242
3210
 
3243
- declare type _HostBrowserServerMessages = HostBrowserRequest | HostBrowserCancelRequest;
3211
+ declare type _HostBrowserServerMessages = HostBrowserRequestEvent | HostBrowserCancelEvent;
3244
3212
 
3245
3213
  declare type HostCuCancelEvent = z.infer<typeof HostCuCancelEventSchema>;
3246
3214
 
@@ -3266,108 +3234,104 @@ declare const HostCuRequestEventSchema: z.ZodObject<{
3266
3234
 
3267
3235
  declare type _HostCuServerMessages = HostCuRequestEvent | HostCuCancelEvent;
3268
3236
 
3269
- declare interface HostFileCancelRequest {
3270
- type: "host_file_cancel";
3271
- requestId: string;
3272
- conversationId: string;
3273
- targetClientId?: string;
3274
- }
3275
-
3276
- declare interface HostFileEditRequest {
3277
- type: "host_file_request";
3278
- requestId: string;
3279
- conversationId: string;
3280
- targetClientId?: string;
3281
- operation: "edit";
3282
- path: string;
3283
- old_string: string;
3284
- new_string: string;
3285
- replace_all?: boolean;
3286
- }
3237
+ declare type HostFileCancelEvent = z.infer<typeof HostFileCancelEventSchema>;
3287
3238
 
3288
- declare interface HostFileReadRequest {
3289
- type: "host_file_request";
3290
- requestId: string;
3291
- conversationId: string;
3292
- targetClientId?: string;
3293
- operation: "read";
3294
- path: string;
3295
- offset?: number;
3296
- limit?: number;
3297
- }
3239
+ declare const HostFileCancelEventSchema: z.ZodObject<{
3240
+ type: z.ZodLiteral<"host_file_cancel">;
3241
+ requestId: z.ZodString;
3242
+ conversationId: z.ZodString;
3243
+ targetClientId: z.ZodOptional<z.ZodString>;
3244
+ }, z.core.$strip>;
3298
3245
 
3299
- declare type HostFileRequest = HostFileReadRequest | HostFileWriteRequest | HostFileEditRequest;
3246
+ declare type HostFileRequestEvent = z.infer<typeof HostFileRequestEventSchema>;
3300
3247
 
3301
- declare type _HostFileServerMessages = HostFileRequest | HostFileCancelRequest;
3248
+ declare const HostFileRequestEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3249
+ type: z.ZodLiteral<"host_file_request">;
3250
+ requestId: z.ZodString;
3251
+ conversationId: z.ZodString;
3252
+ targetClientId: z.ZodOptional<z.ZodString>;
3253
+ operation: z.ZodLiteral<"read">;
3254
+ path: z.ZodString;
3255
+ offset: z.ZodOptional<z.ZodNumber>;
3256
+ limit: z.ZodOptional<z.ZodNumber>;
3257
+ }, z.core.$strip>, z.ZodObject<{
3258
+ type: z.ZodLiteral<"host_file_request">;
3259
+ requestId: z.ZodString;
3260
+ conversationId: z.ZodString;
3261
+ targetClientId: z.ZodOptional<z.ZodString>;
3262
+ operation: z.ZodLiteral<"write">;
3263
+ path: z.ZodString;
3264
+ content: z.ZodString;
3265
+ }, z.core.$strip>, z.ZodObject<{
3266
+ type: z.ZodLiteral<"host_file_request">;
3267
+ requestId: z.ZodString;
3268
+ conversationId: z.ZodString;
3269
+ targetClientId: z.ZodOptional<z.ZodString>;
3270
+ operation: z.ZodLiteral<"edit">;
3271
+ path: z.ZodString;
3272
+ old_string: z.ZodString;
3273
+ new_string: z.ZodString;
3274
+ replace_all: z.ZodOptional<z.ZodBoolean>;
3275
+ }, z.core.$strip>], "operation">;
3302
3276
 
3303
- declare interface HostFileWriteRequest {
3304
- type: "host_file_request";
3305
- requestId: string;
3306
- conversationId: string;
3307
- targetClientId?: string;
3308
- operation: "write";
3309
- path: string;
3310
- content: string;
3311
- }
3277
+ declare type _HostFileServerMessages = HostFileRequestEvent | HostFileCancelEvent;
3312
3278
 
3313
3279
  declare type HostProxyCapability = (typeof HOST_PROXY_CAPABILITIES)[number];
3314
3280
 
3315
- declare interface HostTransferCancelRequest {
3316
- type: "host_transfer_cancel";
3317
- requestId: string;
3318
- conversationId: string;
3319
- targetClientId?: string;
3320
- }
3281
+ declare type HostTransferCancelEvent = z.infer<typeof HostTransferCancelEventSchema>;
3321
3282
 
3322
- declare type HostTransferRequest = HostTransferToHostRequest | HostTransferToSandboxRequest;
3283
+ declare const HostTransferCancelEventSchema: z.ZodObject<{
3284
+ type: z.ZodLiteral<"host_transfer_cancel">;
3285
+ requestId: z.ZodString;
3286
+ conversationId: z.ZodString;
3287
+ targetClientId: z.ZodOptional<z.ZodString>;
3288
+ }, z.core.$strip>;
3323
3289
 
3324
- declare type _HostTransferServerMessages = HostTransferRequest | HostTransferCancelRequest;
3290
+ declare type HostTransferRequestEvent = z.infer<typeof HostTransferRequestEventSchema>;
3325
3291
 
3326
- declare interface HostTransferToHostRequest {
3327
- type: "host_transfer_request";
3328
- requestId: string;
3329
- conversationId: string;
3330
- targetClientId?: string;
3331
- direction: "to_host";
3332
- transferId: string;
3333
- destPath: string;
3334
- sizeBytes: number;
3335
- sha256: string;
3336
- overwrite: boolean;
3337
- }
3292
+ declare const HostTransferRequestEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3293
+ type: z.ZodLiteral<"host_transfer_request">;
3294
+ requestId: z.ZodString;
3295
+ conversationId: z.ZodString;
3296
+ targetClientId: z.ZodOptional<z.ZodString>;
3297
+ direction: z.ZodLiteral<"to_host">;
3298
+ transferId: z.ZodString;
3299
+ destPath: z.ZodString;
3300
+ sizeBytes: z.ZodNumber;
3301
+ sha256: z.ZodString;
3302
+ overwrite: z.ZodBoolean;
3303
+ }, z.core.$strip>, z.ZodObject<{
3304
+ type: z.ZodLiteral<"host_transfer_request">;
3305
+ requestId: z.ZodString;
3306
+ conversationId: z.ZodString;
3307
+ targetClientId: z.ZodOptional<z.ZodString>;
3308
+ direction: z.ZodLiteral<"to_sandbox">;
3309
+ transferId: z.ZodString;
3310
+ sourcePath: z.ZodString;
3311
+ }, z.core.$strip>], "direction">;
3338
3312
 
3339
- declare interface HostTransferToSandboxRequest {
3340
- type: "host_transfer_request";
3341
- requestId: string;
3342
- conversationId: string;
3343
- targetClientId?: string;
3344
- direction: "to_sandbox";
3345
- transferId: string;
3346
- sourcePath: string;
3347
- }
3313
+ declare type _HostTransferServerMessages = HostTransferRequestEvent | HostTransferCancelEvent;
3348
3314
 
3349
- declare interface HostUiSnapshotCancelMessage {
3350
- type: "host_ui_snapshot_cancel";
3351
- requestId: string;
3352
- }
3315
+ declare type HostUiSnapshotCancelEvent = z.infer<typeof HostUiSnapshotCancelEventSchema>;
3353
3316
 
3354
- declare interface HostUiSnapshotRequestMessage {
3355
- type: "host_ui_snapshot_request";
3356
- requestId: string;
3357
- view: HostUiSnapshotView;
3358
- /**
3359
- * Validated workspace-theme tokens to apply on the stage. The daemon reads
3360
- * them from ui/theme.json at request time so the capture reflects the
3361
- * current file even before connected clients refetch. Absent when no valid
3362
- * theme exists — the stage renders the built-in base theme.
3363
- */
3364
- tokens?: Record<string, string>;
3365
- }
3317
+ declare const HostUiSnapshotCancelEventSchema: z.ZodObject<{
3318
+ type: z.ZodLiteral<"host_ui_snapshot_cancel">;
3319
+ requestId: z.ZodString;
3320
+ }, z.core.$strip>;
3321
+
3322
+ declare type HostUiSnapshotRequestEvent = z.infer<typeof HostUiSnapshotRequestEventSchema>;
3366
3323
 
3367
- declare type _HostUiSnapshotServerMessages = HostUiSnapshotRequestMessage | HostUiSnapshotCancelMessage;
3324
+ declare const HostUiSnapshotRequestEventSchema: z.ZodObject<{
3325
+ type: z.ZodLiteral<"host_ui_snapshot_request">;
3326
+ requestId: z.ZodString;
3327
+ view: z.ZodEnum<{
3328
+ sampler: "sampler";
3329
+ chat: "chat";
3330
+ }>;
3331
+ tokens: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3332
+ }, z.core.$strip>;
3368
3333
 
3369
- /** Staged compositions the web client can render for capture. */
3370
- declare type HostUiSnapshotView = "sampler" | "chat";
3334
+ declare type _HostUiSnapshotServerMessages = HostUiSnapshotRequestEvent | HostUiSnapshotCancelEvent;
3371
3335
 
3372
3336
  declare type IdentityChangedEvent = z.infer<typeof IdentityChangedEventSchema>;
3373
3337
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.11-dev.202607231902.0887e08",
3
+ "version": "0.10.11-dev.202607231953.b64451d",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",