@vellumai/plugin-api 0.11.10-dev.202609110043.1ff55a1 → 0.11.10-staging.2

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 (3) hide show
  1. package/index.d.ts +35 -155
  2. package/index.js +0 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -342,7 +342,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
342
342
  embeddings: z.ZodDefault<z.ZodObject<{
343
343
  required: z.ZodDefault<z.ZodBoolean>;
344
344
  provider: z.ZodDefault<z.ZodEnum<{
345
- custom: "custom";
346
345
  openai: "openai";
347
346
  gemini: "gemini";
348
347
  ollama: "ollama";
@@ -364,9 +363,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
364
363
  }>>;
365
364
  geminiDimensions: z.ZodOptional<z.ZodNumber>;
366
365
  ollamaModel: z.ZodDefault<z.ZodString>;
367
- customModel: z.ZodDefault<z.ZodString>;
368
- baseUrl: z.ZodOptional<z.ZodString>;
369
- customDimensions: z.ZodOptional<z.ZodNumber>;
370
366
  }, z.core.$strip>>;
371
367
  qdrant: z.ZodDefault<z.ZodObject<{
372
368
  url: z.ZodDefault<z.ZodString>;
@@ -725,24 +721,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
725
721
  description: z.ZodOptional<z.ZodString>;
726
722
  provider_connection: z.ZodOptional<z.ZodString>;
727
723
  allowUnlisted: z.ZodOptional<z.ZodBoolean>;
728
- inputModalities: z.ZodOptional<z.ZodNullable<z.ZodObject<{
729
- text: z.ZodOptional<z.ZodObject<{
730
- enabled: z.ZodOptional<z.ZodBoolean>;
731
- supported: z.ZodOptional<z.ZodBoolean>;
732
- }, z.core.$strip>>;
733
- image: z.ZodOptional<z.ZodObject<{
734
- enabled: z.ZodOptional<z.ZodBoolean>;
735
- supported: z.ZodOptional<z.ZodBoolean>;
736
- }, z.core.$strip>>;
737
- audio: z.ZodOptional<z.ZodObject<{
738
- enabled: z.ZodOptional<z.ZodBoolean>;
739
- supported: z.ZodOptional<z.ZodBoolean>;
740
- }, z.core.$strip>>;
741
- video: z.ZodOptional<z.ZodObject<{
742
- enabled: z.ZodOptional<z.ZodBoolean>;
743
- supported: z.ZodOptional<z.ZodBoolean>;
744
- }, z.core.$strip>>;
745
- }, z.core.$strip>>>;
746
724
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
747
725
  disabled: "disabled";
748
726
  active: "active";
@@ -793,7 +771,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
793
771
  vision: "vision";
794
772
  voiceProgressNarration: "voiceProgressNarration";
795
773
  voiceFrontDoor: "voiceFrontDoor";
796
- voiceContinuationLabel: "voiceContinuationLabel";
797
774
  trustRuleSuggestion: "trustRuleSuggestion";
798
775
  homeGreeting: "homeGreeting";
799
776
  homeSuggestedPrompts: "homeSuggestedPrompts";
@@ -961,7 +938,17 @@ declare const AssistantConfigSchema: z.ZodObject<{
961
938
  url: z.ZodString;
962
939
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
963
940
  }, z.core.$strip>], "type">;
941
+ enabled: z.ZodDefault<z.ZodBoolean>;
942
+ defaultRiskLevel: z.ZodDefault<z.ZodEnum<{
943
+ low: "low";
944
+ medium: "medium";
945
+ high: "high";
946
+ }>>;
947
+ maxTools: z.ZodDefault<z.ZodNumber>;
948
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
949
+ blockedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
964
950
  }, z.core.$strip>>>;
951
+ globalMaxTools: z.ZodDefault<z.ZodNumber>;
965
952
  }, z.core.$strip>>;
966
953
  acp: z.ZodDefault<z.ZodObject<{
967
954
  maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
@@ -1022,7 +1009,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1022
1009
  enabled: z.ZodDefault<z.ZodBoolean>;
1023
1010
  }, z.core.$strip>>;
1024
1011
  interactiveGitTimeoutMs: z.ZodDefault<z.ZodNumber>;
1025
- stageBatchSize: z.ZodDefault<z.ZodNumber>;
1026
1012
  enrichmentQueueSize: z.ZodDefault<z.ZodNumber>;
1027
1013
  enrichmentConcurrency: z.ZodDefault<z.ZodNumber>;
1028
1014
  enrichmentJobTimeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -1077,7 +1063,15 @@ declare const AssistantConfigSchema: z.ZodObject<{
1077
1063
  enabled: z.ZodDefault<z.ZodBoolean>;
1078
1064
  text: z.ZodDefault<z.ZodString>;
1079
1065
  }, z.core.$strip>>;
1066
+ safety: z.ZodDefault<z.ZodObject<{
1067
+ denyCategories: z.ZodDefault<z.ZodArray<z.ZodString>>;
1068
+ }, z.core.$strip>>;
1080
1069
  voice: z.ZodDefault<z.ZodObject<{
1070
+ interruptSensitivity: z.ZodDefault<z.ZodEnum<{
1071
+ low: "low";
1072
+ medium: "medium";
1073
+ high: "high";
1074
+ }>>;
1081
1075
  telephonyStreaming: z.ZodDefault<z.ZodBoolean>;
1082
1076
  utteranceEndMs: z.ZodDefault<z.ZodNumber>;
1083
1077
  }, z.core.$strip>>;
@@ -1092,6 +1086,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
1092
1086
  }, z.core.$strip>>;
1093
1087
  }, z.core.$strip>>;
1094
1088
  liveVoice: z.ZodDefault<z.ZodObject<{
1089
+ mode: z.ZodDefault<z.ZodEnum<{
1090
+ ptt: "ptt";
1091
+ "open-mic": "open-mic";
1092
+ }>>;
1095
1093
  vad: z.ZodDefault<z.ZodObject<{
1096
1094
  speechEnergyThreshold: z.ZodDefault<z.ZodNumber>;
1097
1095
  noiseFloorMargin: z.ZodDefault<z.ZodNumber>;
@@ -1125,6 +1123,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
1125
1123
  eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
1126
1124
  eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
1127
1125
  }, z.core.$strip>>;
1126
+ maxSessionDurationSeconds: z.ZodDefault<z.ZodNumber>;
1128
1127
  archiveAudio: z.ZodDefault<z.ZodBoolean>;
1129
1128
  }, z.core.$strip>>;
1130
1129
  sight: z.ZodDefault<z.ZodObject<{
@@ -1362,7 +1361,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1362
1361
  reason: z.ZodEnum<{
1363
1362
  thinking_delta: "thinking_delta";
1364
1363
  message_dequeued: "message_dequeued";
1365
- message_interrupted: "message_interrupted";
1366
1364
  first_text_delta: "first_text_delta";
1367
1365
  tool_use_start: "tool_use_start";
1368
1366
  preview_start: "preview_start";
@@ -1587,7 +1585,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1587
1585
  type: z.ZodLiteral<"conversation_error">;
1588
1586
  conversationId: z.ZodString;
1589
1587
  code: z.ZodEnum<{
1590
- UNKNOWN: "UNKNOWN";
1591
1588
  PROVIDER_NETWORK: "PROVIDER_NETWORK";
1592
1589
  PROVIDER_RATE_LIMIT: "PROVIDER_RATE_LIMIT";
1593
1590
  MANAGED_USAGE_LIMIT: "MANAGED_USAGE_LIMIT";
@@ -1606,6 +1603,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1606
1603
  CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
1607
1604
  CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
1608
1605
  DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
1606
+ UNKNOWN: "UNKNOWN";
1609
1607
  }>;
1610
1608
  userMessage: z.ZodString;
1611
1609
  retryable: z.ZodBoolean;
@@ -1626,7 +1624,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1626
1624
  memory_v3: "memory_v3";
1627
1625
  }>;
1628
1626
  code: z.ZodEnum<{
1629
- UNKNOWN: "UNKNOWN";
1630
1627
  PROVIDER_NETWORK: "PROVIDER_NETWORK";
1631
1628
  PROVIDER_RATE_LIMIT: "PROVIDER_RATE_LIMIT";
1632
1629
  MANAGED_USAGE_LIMIT: "MANAGED_USAGE_LIMIT";
@@ -1645,6 +1642,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1645
1642
  CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
1646
1643
  CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
1647
1644
  DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
1645
+ UNKNOWN: "UNKNOWN";
1648
1646
  }>;
1649
1647
  userMessage: z.ZodString;
1650
1648
  errorCategory: z.ZodOptional<z.ZodString>;
@@ -2037,10 +2035,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2037
2035
  filePath: z.ZodOptional<z.ZodString>;
2038
2036
  }, z.core.$strip>>>;
2039
2037
  attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
2040
- assistantTextVisibility: z.ZodOptional<z.ZodEnum<{
2041
- private: "private";
2042
- visible: "visible";
2043
- }>>;
2044
2038
  }, z.core.$strip>, z.ZodObject<{
2045
2039
  type: z.ZodLiteral<"message_dequeued">;
2046
2040
  conversationId: z.ZodString;
@@ -2789,8 +2783,8 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
2789
2783
  macos: "macos";
2790
2784
  windows: "windows";
2791
2785
  linux: "linux";
2792
- "chrome-extension": "chrome-extension";
2793
2786
  cli: "cli";
2787
+ "chrome-extension": "chrome-extension";
2794
2788
  }>>;
2795
2789
  excludeClientId: z.ZodOptional<z.ZodString>;
2796
2790
  }, z.core.$strip>;
@@ -2890,7 +2884,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2890
2884
  reason: z.ZodEnum<{
2891
2885
  thinking_delta: "thinking_delta";
2892
2886
  message_dequeued: "message_dequeued";
2893
- message_interrupted: "message_interrupted";
2894
2887
  first_text_delta: "first_text_delta";
2895
2888
  tool_use_start: "tool_use_start";
2896
2889
  preview_start: "preview_start";
@@ -3115,7 +3108,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3115
3108
  type: z.ZodLiteral<"conversation_error">;
3116
3109
  conversationId: z.ZodString;
3117
3110
  code: z.ZodEnum<{
3118
- UNKNOWN: "UNKNOWN";
3119
3111
  PROVIDER_NETWORK: "PROVIDER_NETWORK";
3120
3112
  PROVIDER_RATE_LIMIT: "PROVIDER_RATE_LIMIT";
3121
3113
  MANAGED_USAGE_LIMIT: "MANAGED_USAGE_LIMIT";
@@ -3134,6 +3126,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3134
3126
  CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
3135
3127
  CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
3136
3128
  DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
3129
+ UNKNOWN: "UNKNOWN";
3137
3130
  }>;
3138
3131
  userMessage: z.ZodString;
3139
3132
  retryable: z.ZodBoolean;
@@ -3154,7 +3147,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3154
3147
  memory_v3: "memory_v3";
3155
3148
  }>;
3156
3149
  code: z.ZodEnum<{
3157
- UNKNOWN: "UNKNOWN";
3158
3150
  PROVIDER_NETWORK: "PROVIDER_NETWORK";
3159
3151
  PROVIDER_RATE_LIMIT: "PROVIDER_RATE_LIMIT";
3160
3152
  MANAGED_USAGE_LIMIT: "MANAGED_USAGE_LIMIT";
@@ -3173,6 +3165,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3173
3165
  CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
3174
3166
  CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
3175
3167
  DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
3168
+ UNKNOWN: "UNKNOWN";
3176
3169
  }>;
3177
3170
  userMessage: z.ZodString;
3178
3171
  errorCategory: z.ZodOptional<z.ZodString>;
@@ -3565,10 +3558,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3565
3558
  filePath: z.ZodOptional<z.ZodString>;
3566
3559
  }, z.core.$strip>>>;
3567
3560
  attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
3568
- assistantTextVisibility: z.ZodOptional<z.ZodEnum<{
3569
- private: "private";
3570
- visible: "visible";
3571
- }>>;
3572
3561
  }, z.core.$strip>, z.ZodObject<{
3573
3562
  type: z.ZodLiteral<"message_dequeued">;
3574
3563
  conversationId: z.ZodString;
@@ -4235,18 +4224,6 @@ declare interface BaseSubscriberEntry {
4235
4224
  */
4236
4225
  export declare function buildMessageExcerpt(rawContent: string, query: string): Promise<string>;
4237
4226
 
4238
- /**
4239
- * The turn-cancellation guard every side-effecting tool calls, host tools and
4240
- * plugin tools alike. It lives on the plugin API surface because that is the
4241
- * only module a plugin may import from, and the guard must be one
4242
- * implementation rather than a copy per side of the boundary.
4243
- */
4244
- /** The slice of a tool's context this guard reads. */
4245
- export declare interface CancellableToolContext {
4246
- /** Cooperative cancellation signal for the turn, when the caller supplies one. */
4247
- signal?: AbortSignal;
4248
- }
4249
-
4250
4227
  /**
4251
4228
  * Conversation-type axis within an adapter (the "channel-type" cascade
4252
4229
  * level): direct message, private channel/group, public channel. Adapters
@@ -4836,7 +4813,6 @@ export declare type HookBroadcast = (detail: Record<string, unknown>) => void;
4836
4813
  * - `post-model-call` — {@link PostModelCallContext}
4837
4814
  * - `conversation-deleted` — {@link ConversationDeletedContext}
4838
4815
  * - `conversations-cleared` — {@link ConversationsClearedContext}
4839
- * - `message-deleted`: {@link MessageDeletedContext}
4840
4816
  */
4841
4817
  export declare type HookFunction<TCtx = unknown> = (ctx: TCtx) => Promise<Partial<TCtx> | void>;
4842
4818
 
@@ -4878,21 +4854,12 @@ export declare const HOOKS: {
4878
4854
  readonly CONVERSATION_DELETED: "conversation-deleted";
4879
4855
  /** Fires once when every conversation is wiped at once (the clear-all reset), after the main tables are cleared. Carries no `conversationId`; cleanup hooks wipe their own per-conversation state wholesale. */
4880
4856
  readonly CONVERSATIONS_CLEARED: "conversations-cleared";
4881
- /** Fires once per deleted message row, after the row is removed, carrying the row's `(createdAt, id)` so a hook can settle state that pointed at it. Fire-and-forget cleanup signal, like `conversation-deleted`; whole-conversation deletes dispatch that hook instead. */
4882
- readonly MESSAGE_DELETED: "message-deleted";
4883
4857
  };
4884
4858
 
4885
4859
  /**
4886
- * Which client provides which host capability.
4887
- *
4888
- * This is the single source of truth for host routing. `supportsHostProxy` in
4889
- * `channels/types.ts` answers from this table, and the `assistant clients` help
4890
- * text renders it so the assistant can tell a user which client unblocks a
4891
- * task. It lives in the shared leaf zone because the CLI reads it on every
4892
- * `assistant clients --help`, and the CLI may not hoist daemon-internal
4893
- * modules into its static import graph.
4894
- *
4895
- * Pure data and pure functions only: no imports, no daemon runtime graph.
4860
+ * Host proxy capabilities that an interface can support. macOS supports all
4861
+ * of them, Windows and Linux withhold app control, and chrome-extension
4862
+ * supports only host_browser through the Chrome DevTools Protocol proxy.
4896
4863
  */
4897
4864
  declare const HOST_PROXY_CAPABILITIES: readonly ["host_bash", "host_file", "host_cu", "host_cu_window_capture", "host_cu_annotate", "host_browser", "host_app_control", "host_ui_snapshot"];
4898
4865
 
@@ -5283,6 +5250,8 @@ declare interface LiveVoiceMetricsServerFrame extends LiveVoiceServerFrameBase {
5283
5250
  * condition as the two fields above.
5284
5251
  */
5285
5252
  readonly endpointDecisionSource?: "front-door" | "provider";
5253
+ /** Which floor-holding ack actually spoke during the turn, if any. */
5254
+ readonly ackSpoken?: "first_delta" | "tool_use";
5286
5255
  /**
5287
5256
  * Spoken progress narrations during the turn. Present only when at least
5288
5257
  * one progress update spoke (otherwise the field is absent, keeping frames
@@ -5494,7 +5463,6 @@ declare const LLMCallSiteEnum: z.ZodEnum<{
5494
5463
  vision: "vision";
5495
5464
  voiceProgressNarration: "voiceProgressNarration";
5496
5465
  voiceFrontDoor: "voiceFrontDoor";
5497
- voiceContinuationLabel: "voiceContinuationLabel";
5498
5466
  trustRuleSuggestion: "trustRuleSuggestion";
5499
5467
  homeGreeting: "homeGreeting";
5500
5468
  homeSuggestedPrompts: "homeSuggestedPrompts";
@@ -5523,37 +5491,6 @@ export declare interface Message {
5523
5491
  content: ContentBlock[];
5524
5492
  }
5525
5493
 
5526
- /**
5527
- * The full `message-deleted` context a hook receives: the dispatching call
5528
- * site's {@link MessageDeletedInputContext} plus the pipeline-stamped
5529
- * {@link BaseHookContext} capabilities.
5530
- */
5531
- export declare interface MessageDeletedContext extends MessageDeletedInputContext, BaseHookContext {
5532
- }
5533
-
5534
- /**
5535
- * Context passed to the `message-deleted` hook. Fires once per deleted
5536
- * message row, from the shared single-message delete primitive, after the row
5537
- * is removed. Whole-conversation deletes dispatch `conversation-deleted`
5538
- * instead.
5539
- *
5540
- * Fire-and-forget like `conversation-deleted`: the primitive is synchronous
5541
- * and does not wait for the chain. The row is gone by the time a hook runs,
5542
- * so the context carries the row's `createdAt` alongside its id. Together
5543
- * they are the `(createdAt, id)` position the row held, which is what a hook
5544
- * keeping a cursor on that row needs to record once the row can no longer be
5545
- * looked up. The default memory plugin contributes a hook here that stamps
5546
- * its retrospective cursor.
5547
- */
5548
- declare interface MessageDeletedInputContext {
5549
- /** ID of the conversation that owned the row. */
5550
- readonly conversationId: string;
5551
- /** ID of the deleted message row. */
5552
- readonly messageId: string;
5553
- /** The deleted row's `createdAt`. */
5554
- readonly createdAt: number;
5555
- }
5556
-
5557
5494
  declare type MessageLexicalSearchResult = Awaited<ReturnType<searchMessageIdsLexical_2>>[number];
5558
5495
 
5559
5496
  declare interface MessageLexicalSearchResult_2 {
@@ -5606,8 +5543,8 @@ declare const messageMetadataSchema: z.ZodObject<{
5606
5543
  discord: "discord";
5607
5544
  plugin: "plugin";
5608
5545
  }>>;
5609
- userMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "chrome-extension" | "cli" | null, string>> & z.ZodType<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "chrome-extension" | "cli", string, z.core.$ZodTypeInternals<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "chrome-extension" | "cli", string>>>;
5610
- assistantMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "chrome-extension" | "cli" | null, string>> & z.ZodType<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "chrome-extension" | "cli", string, z.core.$ZodTypeInternals<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "chrome-extension" | "cli", string>>>;
5546
+ userMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "cli" | "chrome-extension" | null, string>> & z.ZodType<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "cli" | "chrome-extension", string, z.core.$ZodTypeInternals<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "cli" | "chrome-extension", string>>>;
5547
+ assistantMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "cli" | "chrome-extension" | null, string>> & z.ZodType<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "cli" | "chrome-extension", string, z.core.$ZodTypeInternals<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "route" | "web" | "ios" | "macos" | "windows" | "linux" | "cli" | "chrome-extension", string>>>;
5611
5548
  client: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5612
5549
  clientOsFromRequest: z.ZodOptional<z.ZodBoolean>;
5613
5550
  subagentNotification: z.ZodOptional<z.ZodObject<{
@@ -5652,7 +5589,6 @@ declare const messageMetadataSchema: z.ZodObject<{
5652
5589
  hidden: z.ZodOptional<z.ZodBoolean>;
5653
5590
  voiceSessionTurn: z.ZodOptional<z.ZodBoolean>;
5654
5591
  messageKind: z.ZodOptional<z.ZodString>;
5655
- assistantTextVisibility: z.ZodOptional<z.ZodString>;
5656
5592
  providerErrorCode: z.ZodOptional<z.ZodString>;
5657
5593
  providerErrorCategory: z.ZodOptional<z.ZodString>;
5658
5594
  backgroundToolCompletion: z.ZodOptional<z.ZodObject<{
@@ -5673,7 +5609,6 @@ declare const messageMetadataSchema: z.ZodObject<{
5673
5609
  forkSourceMessageId: z.ZodOptional<z.ZodString>;
5674
5610
  imageSourcePaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5675
5611
  attachmentStoredPaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5676
- interruptedPriorTurn: z.ZodOptional<z.ZodBoolean>;
5677
5612
  memoryInjectedBlock: z.ZodOptional<z.ZodString>;
5678
5613
  memoryV3InjectedBlock: z.ZodOptional<z.ZodString>;
5679
5614
  memoryV3InjectedBlockFormat: z.ZodOptional<z.ZodNumber>;
@@ -5774,17 +5709,6 @@ export declare function parseMessageMetadata(metadataJson: string | null): Promi
5774
5709
  */
5775
5710
  declare function parseMessageMetadata_2(metadataJson: string | null): MessageMetadata_2 | undefined;
5776
5711
 
5777
- /**
5778
- * Read the `surfaceId` out of a `ui_show` tool result, or `undefined` when the
5779
- * content is not a surface envelope.
5780
- *
5781
- * Trailing prose after the JSON object is tolerated: guidance belongs in a
5782
- * `note` field, but a caller that appends it instead must not silently cost
5783
- * the reader its `surfaceId`: losing the id makes a live progress surface
5784
- * invisible to the completion nudge, and the user watches it spin forever.
5785
- */
5786
- export declare function parseSurfaceShowResultId(content: string): string | undefined;
5787
-
5788
5712
  /**
5789
5713
  * Plugin-facing facade over the host's system-card writer: a daemon-authored
5790
5714
  * transcript notice, persisted as an assistant row stamped
@@ -5990,28 +5914,6 @@ declare interface PostModelCallInputContext {
5990
5914
  messages: Message[];
5991
5915
  /** Provider-reported stop reason for the turn; `null` when not reported. */
5992
5916
  readonly stopReason: string | null;
5993
- /**
5994
- * True when this run's plain assistant text does not reach the user: the
5995
- * turn routes its reply through the `send_user_message` tool instead, and
5996
- * {@link content}'s text blocks are private working notes. A hook that
5997
- * decides whether the user was answered must read this rather than assume
5998
- * visible text was delivered. Absent or false on every ordinary run, so a
5999
- * hook reads it as `=== true`.
6000
- */
6001
- readonly assistantTextSuppressed?: boolean;
6002
- /**
6003
- * Whether the user has already been told the OUTCOME of this run's work,
6004
- * decided by the host so a hook cannot reach a different answer than the
6005
- * loop does.
6006
- *
6007
- * True when the last response that called any tool reported on the work
6008
- * before it: every one of its tool calls delivered a message to the user. A
6009
- * response that sends a message alongside other tool calls is a progress
6010
- * update, and a call the executor rejects (blank or non-string message)
6011
- * delivers nothing, so neither counts. Absent on a host that does not
6012
- * compute it, so a hook reads it as `=== true`.
6013
- */
6014
- readonly userToldOutcome?: boolean;
6015
5917
  /**
6016
5918
  * The provider rejection that ended the call, on a rejection outcome. Absent
6017
5919
  * on a finalized reply. A hook that recovers from a specific rejection class
@@ -7475,22 +7377,6 @@ export declare interface ThinkingContent {
7475
7377
  signature: string;
7476
7378
  }
7477
7379
 
7478
- /**
7479
- * Stop a side-effecting tool whose turn was cancelled before it acted.
7480
- *
7481
- * Call this immediately before the step that changes something the user would
7482
- * notice: a write, a create/update/delete, a message send, a process spawn, a
7483
- * paid provider call. The agent loop tells the model an aborted batch was
7484
- * cancelled, so anything that lands after the abort is work the model believes
7485
- * never happened.
7486
- *
7487
- * Throws the signal's own reason, which is the daemon's tagged abort reason
7488
- * for a conversation abort and a `DOMException` named `AbortError` for a plain
7489
- * one. The tool executor recognizes both and reports the call as an expected
7490
- * cancellation rather than a tool failure.
7491
- */
7492
- export declare function throwIfCancelled(context: CancellableToolContext): void;
7493
-
7494
7380
  /** Discriminated container so future tools can add their own metadata. */
7495
7381
  declare interface ToolActivityMetadata {
7496
7382
  webSearch?: WebSearchMetadata;
@@ -7583,12 +7469,6 @@ export declare interface ToolContext {
7583
7469
  * @legacy
7584
7470
  */
7585
7471
  diskPressureCleanupModeActive?: boolean;
7586
- /**
7587
- * Whether this turn routes its user-facing text through `send_user_message`.
7588
- * Read by the cleanup-mode gate, which keeps that tool callable on a gated
7589
- * turn: the wire offers it, so the executor must not refuse it.
7590
- */
7591
- sendUserMessageActive?: boolean;
7592
7472
  /**
7593
7473
  * Prompt the user for a secret value via native SecureField UI.
7594
7474
  * @legacy
package/index.js CHANGED
@@ -42,7 +42,6 @@ export const listInstalledSkills = api.listInstalledSkills;
42
42
  export const mediaBlockAttachmentId = api.mediaBlockAttachmentId;
43
43
  export const openTranscriptionSession = api.openTranscriptionSession;
44
44
  export const parseMessageMetadata = api.parseMessageMetadata;
45
- export const parseSurfaceShowResultId = api.parseSurfaceShowResultId;
46
45
  export const persistSystemCard = api.persistSystemCard;
47
46
  export const publishEvent = api.publishEvent;
48
47
  export const quarantineRefusedExchanges = api.quarantineRefusedExchanges;
@@ -61,5 +60,4 @@ export const stringifyMessageContent = api.stringifyMessageContent;
61
60
  export const sweepOrphanedGraphNodePoints = api.sweepOrphanedGraphNodePoints;
62
61
  export const syncMessageToDisk = api.syncMessageToDisk;
63
62
  export const synthesizeText = api.synthesizeText;
64
- export const throwIfCancelled = api.throwIfCancelled;
65
63
  export const updateMessageMetadata = api.updateMessageMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.10-dev.202609110043.1ff55a1",
3
+ "version": "0.11.10-staging.2",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",