@vellumai/plugin-api 0.8.11 → 0.8.12-staging.1

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 +18 -14
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1062,7 +1062,7 @@ declare interface ConversationSearchResultItem {
1062
1062
  matchingMessages: ConversationSearchMatchingMessage[];
1063
1063
  }
1064
1064
 
1065
- declare type _ConversationsServerMessages = AuthResult | PongMessage | AssistantStatusMessage | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfo | HistoryResponse | UndoComplete | UsageUpdateEvent | UsageProgress | UsageResponse | ContextCompacted | CompactionCircuitOpenEvent | CompactionCircuitClosedEvent | ConversationErrorEvent | ConversationInfo | ConversationTitleUpdatedEvent | ConversationListResponse | ConversationsClearResponse | ConversationSearchResponse | MessageContentResponse | ConversationListInvalidatedEvent | ScheduleConversationCreated | OpenConversation;
1065
+ declare type _ConversationsServerMessages = AuthResult | PongMessage | AssistantStatusMessage | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfo | HistoryResponse | UndoComplete | UsageUpdateEvent | UsageProgressEvent | UsageResponse | ContextCompacted | CompactionCircuitOpenEvent | CompactionCircuitClosedEvent | ConversationErrorEvent | ConversationInfo | ConversationTitleUpdatedEvent | ConversationListResponse | ConversationsClearResponse | ConversationSearchResponse | MessageContentResponse | ConversationListInvalidatedEvent | ScheduleConversationCreated | OpenConversation;
1066
1066
 
1067
1067
  declare type ConversationTitleUpdatedEvent = z.infer<typeof ConversationTitleUpdatedEventSchema>;
1068
1068
 
@@ -2887,6 +2887,13 @@ export declare interface PostToolUseContext {
2887
2887
  * singular of Codex's `additional_contexts`. `null` means no extra context.
2888
2888
  */
2889
2889
  additionalContext: string | null;
2890
+ /**
2891
+ * Model id reported by the provider for the assistant turn that issued
2892
+ * this tool call (e.g. `claude-opus-4-8`,
2893
+ * `accounts/fireworks/models/kimi-k2p6`). Hooks use it to vary coaching by
2894
+ * model family — some models need earlier or firmer steering than others.
2895
+ */
2896
+ readonly model: string;
2890
2897
  /**
2891
2898
  * The model's context-window size in tokens. Plugins derive their own
2892
2899
  * character budget from this (e.g. a share of the window) rather than
@@ -4310,19 +4317,16 @@ declare interface UsageAttributionSnapshot {
4310
4317
  resolvedMixArm: string | null;
4311
4318
  }
4312
4319
 
4313
- /**
4314
- * Emitted after each LLM call with per-call token deltas and estimated cost.
4315
- * Clients accumulate these additively for live-updating usage metrics.
4316
- * This is a UI-only hint — it does not persist to DB or affect billing.
4317
- */
4318
- declare interface UsageProgress {
4319
- type: "usage_progress";
4320
- conversationId: string;
4321
- inputTokens: number;
4322
- outputTokens: number;
4323
- estimatedCost: number;
4324
- model: string;
4325
- }
4320
+ declare type UsageProgressEvent = z.infer<typeof UsageProgressEventSchema>;
4321
+
4322
+ declare const UsageProgressEventSchema: z.ZodObject<{
4323
+ type: z.ZodLiteral<"usage_progress">;
4324
+ conversationId: z.ZodString;
4325
+ inputTokens: z.ZodNumber;
4326
+ outputTokens: z.ZodNumber;
4327
+ estimatedCost: z.ZodNumber;
4328
+ model: z.ZodString;
4329
+ }, z.core.$strip>;
4326
4330
 
4327
4331
  declare interface UsageResponse {
4328
4332
  type: "usage_response";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.8.11",
3
+ "version": "0.8.12-staging.1",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",