@vellumai/plugin-api 0.11.10-dev.202609100822.c03f0a4 → 0.11.10-dev.202609101315.6ce8934
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 +40 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1375,6 +1375,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
1375
1375
|
reason: z.ZodEnum<{
|
|
1376
1376
|
thinking_delta: "thinking_delta";
|
|
1377
1377
|
message_dequeued: "message_dequeued";
|
|
1378
|
+
message_interrupted: "message_interrupted";
|
|
1378
1379
|
first_text_delta: "first_text_delta";
|
|
1379
1380
|
tool_use_start: "tool_use_start";
|
|
1380
1381
|
preview_start: "preview_start";
|
|
@@ -2049,6 +2050,10 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2049
2050
|
filePath: z.ZodOptional<z.ZodString>;
|
|
2050
2051
|
}, z.core.$strip>>>;
|
|
2051
2052
|
attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2053
|
+
assistantTextVisibility: z.ZodOptional<z.ZodEnum<{
|
|
2054
|
+
private: "private";
|
|
2055
|
+
visible: "visible";
|
|
2056
|
+
}>>;
|
|
2052
2057
|
}, z.core.$strip>, z.ZodObject<{
|
|
2053
2058
|
type: z.ZodLiteral<"message_dequeued">;
|
|
2054
2059
|
conversationId: z.ZodString;
|
|
@@ -2898,6 +2903,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2898
2903
|
reason: z.ZodEnum<{
|
|
2899
2904
|
thinking_delta: "thinking_delta";
|
|
2900
2905
|
message_dequeued: "message_dequeued";
|
|
2906
|
+
message_interrupted: "message_interrupted";
|
|
2901
2907
|
first_text_delta: "first_text_delta";
|
|
2902
2908
|
tool_use_start: "tool_use_start";
|
|
2903
2909
|
preview_start: "preview_start";
|
|
@@ -3572,6 +3578,10 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3572
3578
|
filePath: z.ZodOptional<z.ZodString>;
|
|
3573
3579
|
}, z.core.$strip>>>;
|
|
3574
3580
|
attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3581
|
+
assistantTextVisibility: z.ZodOptional<z.ZodEnum<{
|
|
3582
|
+
private: "private";
|
|
3583
|
+
visible: "visible";
|
|
3584
|
+
}>>;
|
|
3575
3585
|
}, z.core.$strip>, z.ZodObject<{
|
|
3576
3586
|
type: z.ZodLiteral<"message_dequeued">;
|
|
3577
3587
|
conversationId: z.ZodString;
|
|
@@ -5623,6 +5633,7 @@ declare const messageMetadataSchema: z.ZodObject<{
|
|
|
5623
5633
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5624
5634
|
voiceSessionTurn: z.ZodOptional<z.ZodBoolean>;
|
|
5625
5635
|
messageKind: z.ZodOptional<z.ZodString>;
|
|
5636
|
+
assistantTextVisibility: z.ZodOptional<z.ZodString>;
|
|
5626
5637
|
providerErrorCode: z.ZodOptional<z.ZodString>;
|
|
5627
5638
|
providerErrorCategory: z.ZodOptional<z.ZodString>;
|
|
5628
5639
|
backgroundToolCompletion: z.ZodOptional<z.ZodObject<{
|
|
@@ -5643,6 +5654,7 @@ declare const messageMetadataSchema: z.ZodObject<{
|
|
|
5643
5654
|
forkSourceMessageId: z.ZodOptional<z.ZodString>;
|
|
5644
5655
|
imageSourcePaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5645
5656
|
attachmentStoredPaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5657
|
+
interruptedPriorTurn: z.ZodOptional<z.ZodBoolean>;
|
|
5646
5658
|
memoryInjectedBlock: z.ZodOptional<z.ZodString>;
|
|
5647
5659
|
memoryV3InjectedBlock: z.ZodOptional<z.ZodString>;
|
|
5648
5660
|
memoryV3InjectedBlockFormat: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5959,6 +5971,28 @@ declare interface PostModelCallInputContext {
|
|
|
5959
5971
|
messages: Message[];
|
|
5960
5972
|
/** Provider-reported stop reason for the turn; `null` when not reported. */
|
|
5961
5973
|
readonly stopReason: string | null;
|
|
5974
|
+
/**
|
|
5975
|
+
* True when this run's plain assistant text does not reach the user: the
|
|
5976
|
+
* turn routes its reply through the `send_user_message` tool instead, and
|
|
5977
|
+
* {@link content}'s text blocks are private working notes. A hook that
|
|
5978
|
+
* decides whether the user was answered must read this rather than assume
|
|
5979
|
+
* visible text was delivered. Absent or false on every ordinary run, so a
|
|
5980
|
+
* hook reads it as `=== true`.
|
|
5981
|
+
*/
|
|
5982
|
+
readonly assistantTextSuppressed?: boolean;
|
|
5983
|
+
/**
|
|
5984
|
+
* Whether the user has already been told the OUTCOME of this run's work,
|
|
5985
|
+
* decided by the host so a hook cannot reach a different answer than the
|
|
5986
|
+
* loop does.
|
|
5987
|
+
*
|
|
5988
|
+
* True when the last response that called any tool reported on the work
|
|
5989
|
+
* before it: every one of its tool calls delivered a message to the user. A
|
|
5990
|
+
* response that sends a message alongside other tool calls is a progress
|
|
5991
|
+
* update, and a call the executor rejects (blank or non-string message)
|
|
5992
|
+
* delivers nothing, so neither counts. Absent on a host that does not
|
|
5993
|
+
* compute it, so a hook reads it as `=== true`.
|
|
5994
|
+
*/
|
|
5995
|
+
readonly userToldOutcome?: boolean;
|
|
5962
5996
|
/**
|
|
5963
5997
|
* The provider rejection that ended the call, on a rejection outcome. Absent
|
|
5964
5998
|
* on a finalized reply. A hook that recovers from a specific rejection class
|
|
@@ -7530,6 +7564,12 @@ export declare interface ToolContext {
|
|
|
7530
7564
|
* @legacy
|
|
7531
7565
|
*/
|
|
7532
7566
|
diskPressureCleanupModeActive?: boolean;
|
|
7567
|
+
/**
|
|
7568
|
+
* Whether this turn routes its user-facing text through `send_user_message`.
|
|
7569
|
+
* Read by the cleanup-mode gate, which keeps that tool callable on a gated
|
|
7570
|
+
* turn: the wire offers it, so the executor must not refuse it.
|
|
7571
|
+
*/
|
|
7572
|
+
sendUserMessageActive?: boolean;
|
|
7533
7573
|
/**
|
|
7534
7574
|
* Prompt the user for a secret value via native SecureField UI.
|
|
7535
7575
|
* @legacy
|
package/package.json
CHANGED