@vellumai/plugin-api 0.8.11-staging.1 → 0.8.12-dev.202606131539.b0e5ff7
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.
- package/index.d.ts +30 -23
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -463,14 +463,15 @@ declare const AssistantTextDeltaEventSchema: z.ZodObject<{
|
|
|
463
463
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
464
464
|
}, z.core.$strip>;
|
|
465
465
|
|
|
466
|
-
declare
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
466
|
+
declare type AssistantThinkingDeltaEvent = z.infer<typeof AssistantThinkingDeltaEventSchema>;
|
|
467
|
+
|
|
468
|
+
declare const AssistantThinkingDeltaEventSchema: z.ZodObject<{
|
|
469
|
+
type: z.ZodLiteral<"assistant_thinking_delta">;
|
|
470
|
+
thinking: z.ZodString;
|
|
471
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
472
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
473
|
+
timestampMs: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
}, z.core.$strip>;
|
|
474
475
|
|
|
475
476
|
declare type AssistantTurnStartEvent = z.infer<typeof AssistantTurnStartEventSchema>;
|
|
476
477
|
|
|
@@ -1062,7 +1063,7 @@ declare interface ConversationSearchResultItem {
|
|
|
1062
1063
|
matchingMessages: ConversationSearchMatchingMessage[];
|
|
1063
1064
|
}
|
|
1064
1065
|
|
|
1065
|
-
declare type _ConversationsServerMessages = AuthResult | PongMessage | AssistantStatusMessage | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfo | HistoryResponse | UndoComplete | UsageUpdateEvent |
|
|
1066
|
+
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
1067
|
|
|
1067
1068
|
declare type ConversationTitleUpdatedEvent = z.infer<typeof ConversationTitleUpdatedEventSchema>;
|
|
1068
1069
|
|
|
@@ -2420,7 +2421,7 @@ declare const MessageRequestCompleteEventSchema: z.ZodObject<{
|
|
|
2420
2421
|
runStillActive: z.ZodOptional<z.ZodBoolean>;
|
|
2421
2422
|
}, z.core.$strip>;
|
|
2422
2423
|
|
|
2423
|
-
declare type _MessagesServerMessages = UserMessageEchoEvent | AssistantTurnStartEvent | AssistantTextDeltaEvent |
|
|
2424
|
+
declare type _MessagesServerMessages = UserMessageEchoEvent | AssistantTurnStartEvent | AssistantTextDeltaEvent | AssistantThinkingDeltaEvent | ToolUseStartEvent | ToolUsePreviewStartEvent | ToolOutputChunkEvent | ToolInputDelta | ToolResultEvent | ConfirmationRequestEvent | SecretRequestEvent | QuestionRequestEvent | MessageCompleteEvent | ErrorEvent_2 | MessageQueuedEvent | MessageDequeuedEvent | MessageRequestCompleteEvent | MessageQueuedDeletedEvent | MessageSteered | SuggestionResponse | TraceEvent | ConfirmationStateChanged | AssistantActivityStateEvent | TurnProfileAutoRoutedEvent | ConversationInferenceProfileUpdated | InteractionResolvedEvent;
|
|
2424
2425
|
|
|
2425
2426
|
declare interface MessageSteered {
|
|
2426
2427
|
type: "message_steered";
|
|
@@ -2887,6 +2888,13 @@ export declare interface PostToolUseContext {
|
|
|
2887
2888
|
* singular of Codex's `additional_contexts`. `null` means no extra context.
|
|
2888
2889
|
*/
|
|
2889
2890
|
additionalContext: string | null;
|
|
2891
|
+
/**
|
|
2892
|
+
* Model id reported by the provider for the assistant turn that issued
|
|
2893
|
+
* this tool call (e.g. `claude-opus-4-8`,
|
|
2894
|
+
* `accounts/fireworks/models/kimi-k2p6`). Hooks use it to vary coaching by
|
|
2895
|
+
* model family — some models need earlier or firmer steering than others.
|
|
2896
|
+
*/
|
|
2897
|
+
readonly model: string;
|
|
2890
2898
|
/**
|
|
2891
2899
|
* The model's context-window size in tokens. Plugins derive their own
|
|
2892
2900
|
* character budget from this (e.g. a share of the window) rather than
|
|
@@ -4310,19 +4318,16 @@ declare interface UsageAttributionSnapshot {
|
|
|
4310
4318
|
resolvedMixArm: string | null;
|
|
4311
4319
|
}
|
|
4312
4320
|
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
estimatedCost: number;
|
|
4324
|
-
model: string;
|
|
4325
|
-
}
|
|
4321
|
+
declare type UsageProgressEvent = z.infer<typeof UsageProgressEventSchema>;
|
|
4322
|
+
|
|
4323
|
+
declare const UsageProgressEventSchema: z.ZodObject<{
|
|
4324
|
+
type: z.ZodLiteral<"usage_progress">;
|
|
4325
|
+
conversationId: z.ZodString;
|
|
4326
|
+
inputTokens: z.ZodNumber;
|
|
4327
|
+
outputTokens: z.ZodNumber;
|
|
4328
|
+
estimatedCost: z.ZodNumber;
|
|
4329
|
+
model: z.ZodString;
|
|
4330
|
+
}, z.core.$strip>;
|
|
4326
4331
|
|
|
4327
4332
|
declare interface UsageResponse {
|
|
4328
4333
|
type: "usage_response";
|
|
@@ -4345,6 +4350,8 @@ declare const UsageUpdateEventSchema: z.ZodObject<{
|
|
|
4345
4350
|
conversationId: z.ZodString;
|
|
4346
4351
|
inputTokens: z.ZodNumber;
|
|
4347
4352
|
outputTokens: z.ZodNumber;
|
|
4353
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4354
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4348
4355
|
totalInputTokens: z.ZodNumber;
|
|
4349
4356
|
totalOutputTokens: z.ZodNumber;
|
|
4350
4357
|
estimatedCost: z.ZodNumber;
|
package/package.json
CHANGED