@vellumai/plugin-api 0.12.1-staging.2 → 0.12.2-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.
- package/index.d.ts +86 -48
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -167,10 +167,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
167
167
|
language: z.ZodDefault<z.ZodString>;
|
|
168
168
|
providers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
169
169
|
roles: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
170
|
-
watch: "watch";
|
|
171
170
|
liveVoice: "liveVoice";
|
|
172
171
|
telephony: "telephony";
|
|
173
172
|
dictation: "dictation";
|
|
173
|
+
watch: "watch";
|
|
174
174
|
batch: "batch";
|
|
175
175
|
}> & z.core.$partial, z.ZodObject<{
|
|
176
176
|
provider: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
@@ -312,6 +312,12 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
312
312
|
"your-own": "your-own";
|
|
313
313
|
}>>;
|
|
314
314
|
}, z.core.$strip>>;
|
|
315
|
+
"shopify-oauth": z.ZodDefault<z.ZodObject<{
|
|
316
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
317
|
+
managed: "managed";
|
|
318
|
+
"your-own": "your-own";
|
|
319
|
+
}>>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
315
321
|
"stripe-link-oauth": z.ZodDefault<z.ZodObject<{
|
|
316
322
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
317
323
|
managed: "managed";
|
|
@@ -592,6 +598,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
592
598
|
}, z.core.$strip>>;
|
|
593
599
|
retrospective: z.ZodDefault<z.ZodObject<{
|
|
594
600
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
601
|
+
skillImprovement: z.ZodDefault<z.ZodBoolean>;
|
|
595
602
|
timeThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
596
603
|
messageThreshold: z.ZodDefault<z.ZodNumber>;
|
|
597
604
|
minCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -945,31 +952,14 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
945
952
|
}, z.core.$strip>>;
|
|
946
953
|
localDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
947
954
|
}, z.core.$strip>>;
|
|
948
|
-
mcp: z.ZodDefault<z.ZodObject<{
|
|
949
|
-
servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
950
|
-
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
951
|
-
type: z.ZodLiteral<"stdio">;
|
|
952
|
-
command: z.ZodString;
|
|
953
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
954
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
955
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
956
|
-
type: z.ZodLiteral<"sse">;
|
|
957
|
-
url: z.ZodString;
|
|
958
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
959
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
960
|
-
type: z.ZodLiteral<"streamable-http">;
|
|
961
|
-
url: z.ZodString;
|
|
962
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
963
|
-
}, z.core.$strip>], "type">;
|
|
964
|
-
}, z.core.$strip>>>;
|
|
965
|
-
}, z.core.$strip>>;
|
|
966
955
|
acp: z.ZodDefault<z.ZodObject<{
|
|
967
956
|
maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
|
|
968
957
|
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
969
|
-
command: z.ZodString
|
|
958
|
+
command: z.ZodOptional<z.ZodString>;
|
|
970
959
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
971
960
|
description: z.ZodOptional<z.ZodString>;
|
|
972
961
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
962
|
+
model: z.ZodOptional<z.ZodString>;
|
|
973
963
|
}, z.core.$strip>>>;
|
|
974
964
|
}, z.core.$strip>>;
|
|
975
965
|
skills: z.ZodDefault<z.ZodObject<{
|
|
@@ -981,8 +971,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
981
971
|
}, z.core.$strip>>>;
|
|
982
972
|
load: z.ZodDefault<z.ZodObject<{
|
|
983
973
|
extraDirs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
984
|
-
watch: z.ZodDefault<z.ZodBoolean>;
|
|
985
|
-
watchDebounceMs: z.ZodDefault<z.ZodNumber>;
|
|
986
974
|
}, z.core.$strip>>;
|
|
987
975
|
install: z.ZodDefault<z.ZodObject<{
|
|
988
976
|
nodeManager: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1077,15 +1065,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1077
1065
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1078
1066
|
text: z.ZodDefault<z.ZodString>;
|
|
1079
1067
|
}, z.core.$strip>>;
|
|
1080
|
-
safety: z.ZodDefault<z.ZodObject<{
|
|
1081
|
-
denyCategories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1082
|
-
}, z.core.$strip>>;
|
|
1083
1068
|
voice: z.ZodDefault<z.ZodObject<{
|
|
1084
|
-
interruptSensitivity: z.ZodDefault<z.ZodEnum<{
|
|
1085
|
-
low: "low";
|
|
1086
|
-
medium: "medium";
|
|
1087
|
-
high: "high";
|
|
1088
|
-
}>>;
|
|
1089
1069
|
telephonyStreaming: z.ZodDefault<z.ZodBoolean>;
|
|
1090
1070
|
utteranceEndMs: z.ZodDefault<z.ZodNumber>;
|
|
1091
1071
|
}, z.core.$strip>>;
|
|
@@ -1100,10 +1080,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1100
1080
|
}, z.core.$strip>>;
|
|
1101
1081
|
}, z.core.$strip>>;
|
|
1102
1082
|
liveVoice: z.ZodDefault<z.ZodObject<{
|
|
1103
|
-
mode: z.ZodDefault<z.ZodEnum<{
|
|
1104
|
-
ptt: "ptt";
|
|
1105
|
-
"open-mic": "open-mic";
|
|
1106
|
-
}>>;
|
|
1107
1083
|
vad: z.ZodDefault<z.ZodObject<{
|
|
1108
1084
|
speechEnergyThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1109
1085
|
noiseFloorMargin: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1114,6 +1090,18 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1114
1090
|
echoEmaHalfLifeMs: z.ZodDefault<z.ZodNumber>;
|
|
1115
1091
|
echoDrainSlackMs: z.ZodDefault<z.ZodNumber>;
|
|
1116
1092
|
}, z.core.$strip>>;
|
|
1093
|
+
flux: z.ZodDefault<z.ZodObject<{
|
|
1094
|
+
turnEnd: z.ZodDefault<z.ZodObject<{
|
|
1095
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1096
|
+
}, z.core.$strip>>;
|
|
1097
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
eotThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1099
|
+
eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
+
eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1101
|
+
}, z.core.$strip>>;
|
|
1102
|
+
archiveAudio: z.ZodDefault<z.ZodBoolean>;
|
|
1103
|
+
}, z.core.$strip>>;
|
|
1104
|
+
voice: z.ZodDefault<z.ZodObject<{
|
|
1117
1105
|
frontModel: z.ZodDefault<z.ZodObject<{
|
|
1118
1106
|
endpointDecisionTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1119
1107
|
endpointExtensionMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1128,17 +1116,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1128
1116
|
generationTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1129
1117
|
}, z.core.$strip>>;
|
|
1130
1118
|
}, z.core.$strip>>;
|
|
1131
|
-
flux: z.ZodDefault<z.ZodObject<{
|
|
1132
|
-
turnEnd: z.ZodDefault<z.ZodObject<{
|
|
1133
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1134
|
-
}, z.core.$strip>>;
|
|
1135
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1136
|
-
eotThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1137
|
-
eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
-
eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1139
|
-
}, z.core.$strip>>;
|
|
1140
|
-
maxSessionDurationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1141
|
-
archiveAudio: z.ZodDefault<z.ZodBoolean>;
|
|
1142
1119
|
}, z.core.$strip>>;
|
|
1143
1120
|
sight: z.ZodDefault<z.ZodObject<{
|
|
1144
1121
|
keepLatestFrames: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1313,6 +1290,18 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
1313
1290
|
type: z.ZodLiteral<"acp_session_error">;
|
|
1314
1291
|
acpSessionId: z.ZodString;
|
|
1315
1292
|
error: z.ZodString;
|
|
1293
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1294
|
+
type: z.ZodLiteral<"acp_session_model_update">;
|
|
1295
|
+
acpSessionId: z.ZodString;
|
|
1296
|
+
modelRevisionEpoch: z.ZodString;
|
|
1297
|
+
modelRevision: z.ZodNumber;
|
|
1298
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
1300
|
+
value: z.ZodString;
|
|
1301
|
+
label: z.ZodString;
|
|
1302
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
}, z.core.$strip>>;
|
|
1316
1305
|
}, z.core.$strict>, z.ZodObject<{
|
|
1317
1306
|
type: z.ZodLiteral<"acp_session_spawned">;
|
|
1318
1307
|
acpSessionId: z.ZodString;
|
|
@@ -2121,6 +2110,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2121
2110
|
}, z.core.$strip>, z.ZodObject<{
|
|
2122
2111
|
type: z.ZodLiteral<"notification_intent">;
|
|
2123
2112
|
sourceEventName: z.ZodString;
|
|
2113
|
+
assistantName: z.ZodOptional<z.ZodString>;
|
|
2124
2114
|
title: z.ZodString;
|
|
2125
2115
|
body: z.ZodString;
|
|
2126
2116
|
deliveryId: z.ZodOptional<z.ZodString>;
|
|
@@ -2548,6 +2538,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2548
2538
|
messageId: z.ZodOptional<z.ZodString>;
|
|
2549
2539
|
requestId: z.ZodOptional<z.ZodString>;
|
|
2550
2540
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
cameraFrame: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2551
2542
|
}, z.core.$strict>, z.ZodObject<{
|
|
2552
2543
|
type: z.ZodLiteral<"watch_retro_completed">;
|
|
2553
2544
|
sessionId: z.ZodString;
|
|
@@ -2781,6 +2772,7 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
|
|
|
2781
2772
|
host_file: "host_file";
|
|
2782
2773
|
host_cu: "host_cu";
|
|
2783
2774
|
host_cu_window_capture: "host_cu_window_capture";
|
|
2775
|
+
host_cu_sequence: "host_cu_sequence";
|
|
2784
2776
|
host_cu_annotate: "host_cu_annotate";
|
|
2785
2777
|
host_browser: "host_browser";
|
|
2786
2778
|
host_app_control: "host_app_control";
|
|
@@ -2841,6 +2833,18 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2841
2833
|
type: z.ZodLiteral<"acp_session_error">;
|
|
2842
2834
|
acpSessionId: z.ZodString;
|
|
2843
2835
|
error: z.ZodString;
|
|
2836
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2837
|
+
type: z.ZodLiteral<"acp_session_model_update">;
|
|
2838
|
+
acpSessionId: z.ZodString;
|
|
2839
|
+
modelRevisionEpoch: z.ZodString;
|
|
2840
|
+
modelRevision: z.ZodNumber;
|
|
2841
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2842
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
2843
|
+
value: z.ZodString;
|
|
2844
|
+
label: z.ZodString;
|
|
2845
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2846
|
+
group: z.ZodOptional<z.ZodString>;
|
|
2847
|
+
}, z.core.$strip>>;
|
|
2844
2848
|
}, z.core.$strict>, z.ZodObject<{
|
|
2845
2849
|
type: z.ZodLiteral<"acp_session_spawned">;
|
|
2846
2850
|
acpSessionId: z.ZodString;
|
|
@@ -3649,6 +3653,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3649
3653
|
}, z.core.$strip>, z.ZodObject<{
|
|
3650
3654
|
type: z.ZodLiteral<"notification_intent">;
|
|
3651
3655
|
sourceEventName: z.ZodString;
|
|
3656
|
+
assistantName: z.ZodOptional<z.ZodString>;
|
|
3652
3657
|
title: z.ZodString;
|
|
3653
3658
|
body: z.ZodString;
|
|
3654
3659
|
deliveryId: z.ZodOptional<z.ZodString>;
|
|
@@ -4076,6 +4081,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4076
4081
|
messageId: z.ZodOptional<z.ZodString>;
|
|
4077
4082
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4078
4083
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
4084
|
+
cameraFrame: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4079
4085
|
}, z.core.$strict>, z.ZodObject<{
|
|
4080
4086
|
type: z.ZodLiteral<"watch_retro_completed">;
|
|
4081
4087
|
sessionId: z.ZodString;
|
|
@@ -4849,6 +4855,7 @@ export declare type HookBroadcast = (detail: Record<string, unknown>) => void;
|
|
|
4849
4855
|
* - `post-model-call` — {@link PostModelCallContext}
|
|
4850
4856
|
* - `conversation-deleted` — {@link ConversationDeletedContext}
|
|
4851
4857
|
* - `conversations-cleared` — {@link ConversationsClearedContext}
|
|
4858
|
+
* - `message-deleted`: {@link MessageDeletedContext}
|
|
4852
4859
|
*/
|
|
4853
4860
|
export declare type HookFunction<TCtx = unknown> = (ctx: TCtx) => Promise<Partial<TCtx> | void>;
|
|
4854
4861
|
|
|
@@ -4890,6 +4897,8 @@ export declare const HOOKS: {
|
|
|
4890
4897
|
readonly CONVERSATION_DELETED: "conversation-deleted";
|
|
4891
4898
|
/** 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. */
|
|
4892
4899
|
readonly CONVERSATIONS_CLEARED: "conversations-cleared";
|
|
4900
|
+
/** 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. */
|
|
4901
|
+
readonly MESSAGE_DELETED: "message-deleted";
|
|
4893
4902
|
};
|
|
4894
4903
|
|
|
4895
4904
|
/**
|
|
@@ -4904,7 +4913,7 @@ export declare const HOOKS: {
|
|
|
4904
4913
|
*
|
|
4905
4914
|
* Pure data and pure functions only: no imports, no daemon runtime graph.
|
|
4906
4915
|
*/
|
|
4907
|
-
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"];
|
|
4916
|
+
declare const HOST_PROXY_CAPABILITIES: readonly ["host_bash", "host_file", "host_cu", "host_cu_window_capture", "host_cu_sequence", "host_cu_annotate", "host_browser", "host_app_control", "host_ui_snapshot"];
|
|
4908
4917
|
|
|
4909
4918
|
declare type HostProxyCapability = (typeof HOST_PROXY_CAPABILITIES)[number];
|
|
4910
4919
|
|
|
@@ -5293,8 +5302,6 @@ declare interface LiveVoiceMetricsServerFrame extends LiveVoiceServerFrameBase {
|
|
|
5293
5302
|
* condition as the two fields above.
|
|
5294
5303
|
*/
|
|
5295
5304
|
readonly endpointDecisionSource?: "front-door" | "provider";
|
|
5296
|
-
/** Which floor-holding ack actually spoke during the turn, if any. */
|
|
5297
|
-
readonly ackSpoken?: "first_delta" | "tool_use";
|
|
5298
5305
|
/**
|
|
5299
5306
|
* Spoken progress narrations during the turn. Present only when at least
|
|
5300
5307
|
* one progress update spoke (otherwise the field is absent, keeping frames
|
|
@@ -5535,6 +5542,37 @@ export declare interface Message {
|
|
|
5535
5542
|
content: ContentBlock[];
|
|
5536
5543
|
}
|
|
5537
5544
|
|
|
5545
|
+
/**
|
|
5546
|
+
* The full `message-deleted` context a hook receives: the dispatching call
|
|
5547
|
+
* site's {@link MessageDeletedInputContext} plus the pipeline-stamped
|
|
5548
|
+
* {@link BaseHookContext} capabilities.
|
|
5549
|
+
*/
|
|
5550
|
+
export declare interface MessageDeletedContext extends MessageDeletedInputContext, BaseHookContext {
|
|
5551
|
+
}
|
|
5552
|
+
|
|
5553
|
+
/**
|
|
5554
|
+
* Context passed to the `message-deleted` hook. Fires once per deleted
|
|
5555
|
+
* message row, from the shared single-message delete primitive, after the row
|
|
5556
|
+
* is removed. Whole-conversation deletes dispatch `conversation-deleted`
|
|
5557
|
+
* instead.
|
|
5558
|
+
*
|
|
5559
|
+
* Fire-and-forget like `conversation-deleted`: the primitive is synchronous
|
|
5560
|
+
* and does not wait for the chain. The row is gone by the time a hook runs,
|
|
5561
|
+
* so the context carries the row's `createdAt` alongside its id. Together
|
|
5562
|
+
* they are the `(createdAt, id)` position the row held, which is what a hook
|
|
5563
|
+
* keeping a cursor on that row needs to record once the row can no longer be
|
|
5564
|
+
* looked up. The default memory plugin contributes a hook here that stamps
|
|
5565
|
+
* its retrospective cursor.
|
|
5566
|
+
*/
|
|
5567
|
+
declare interface MessageDeletedInputContext {
|
|
5568
|
+
/** ID of the conversation that owned the row. */
|
|
5569
|
+
readonly conversationId: string;
|
|
5570
|
+
/** ID of the deleted message row. */
|
|
5571
|
+
readonly messageId: string;
|
|
5572
|
+
/** The deleted row's `createdAt`. */
|
|
5573
|
+
readonly createdAt: number;
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5538
5576
|
declare type MessageLexicalSearchResult = Awaited<ReturnType<searchMessageIdsLexical_2>>[number];
|
|
5539
5577
|
|
|
5540
5578
|
declare interface MessageLexicalSearchResult_2 {
|