@vellumai/plugin-api 0.10.11-dev.202607230140.b414d01 → 0.10.11-dev.202607230310.c962b95
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 +76 -62
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -151,6 +151,9 @@ export declare type AgentLoopExitReason =
|
|
|
151
151
|
/** An unhandled error ended the turn. */
|
|
152
152
|
| "error";
|
|
153
153
|
|
|
154
|
+
/** Any surface `data` payload, including the opaque (non-renderable) types. */
|
|
155
|
+
declare type AnySurfaceData = SurfaceDataByType[SurfaceType];
|
|
156
|
+
|
|
154
157
|
declare interface AppDataResponse {
|
|
155
158
|
type: "app_data_response";
|
|
156
159
|
surfaceId: string;
|
|
@@ -6253,10 +6256,63 @@ declare interface SurfaceAction {
|
|
|
6253
6256
|
data?: Record<string, unknown>;
|
|
6254
6257
|
}
|
|
6255
6258
|
|
|
6256
|
-
|
|
6259
|
+
/**
|
|
6260
|
+
* Per-type `data` payload shapes, keyed by surface type. This is the
|
|
6261
|
+
* correlation source for everything that pairs a `surfaceType` with its
|
|
6262
|
+
* `data`: generic code indexes it (`SurfaceDataByType[K]`) so the compiler
|
|
6263
|
+
* tracks which data shape belongs to which type instead of collapsing to
|
|
6264
|
+
* the undiscriminated `SurfaceData` union.
|
|
6265
|
+
*
|
|
6266
|
+
* Several types are opaque records — they carry data the daemon persists
|
|
6267
|
+
* and serves verbatim but whose shape it does not model, which is why they
|
|
6268
|
+
* are absent from the renderable `SurfaceData` union: `channel_setup` (a
|
|
6269
|
+
* side-effect command forwarded to the setup panel), `task_preferences` (a
|
|
6270
|
+
* fixed grid that reads no data), and `skill_card` / `call_summary` (cards
|
|
6271
|
+
* the daemon appends to history directly — the memory retrospective and a
|
|
6272
|
+
* call summary — and whose data shape is owned by their client renderers).
|
|
6273
|
+
*/
|
|
6274
|
+
declare interface SurfaceDataByType {
|
|
6275
|
+
card: CardSurfaceData;
|
|
6276
|
+
channel_setup: Record<string, unknown>;
|
|
6277
|
+
choice: ChoiceSurfaceData;
|
|
6278
|
+
copy_block: CopyBlockSurfaceData;
|
|
6279
|
+
oauth_connect: OAuthConnectSurfaceData;
|
|
6280
|
+
form: FormSurfaceData;
|
|
6281
|
+
list: ListSurfaceData;
|
|
6282
|
+
table: TableSurfaceData;
|
|
6283
|
+
confirmation: ConfirmationSurfaceData;
|
|
6284
|
+
dynamic_page: DynamicPageSurfaceData;
|
|
6285
|
+
file_upload: FileUploadSurfaceData;
|
|
6286
|
+
document_preview: DocumentPreviewSurfaceData;
|
|
6287
|
+
task_preferences: Record<string, unknown>;
|
|
6288
|
+
work_result: WorkResultSurfaceData;
|
|
6289
|
+
skill_card: Record<string, unknown>;
|
|
6290
|
+
call_summary: Record<string, unknown>;
|
|
6291
|
+
}
|
|
6257
6292
|
|
|
6258
6293
|
declare type _SurfacesServerMessages = UiSurfaceShow | UiSurfaceUpdate | UiSurfaceDismiss | UiSurfaceComplete | UiSurfaceUndoResult;
|
|
6259
6294
|
|
|
6295
|
+
declare type SurfaceType = z.infer<typeof SurfaceTypeSchema>;
|
|
6296
|
+
|
|
6297
|
+
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
6298
|
+
table: "table";
|
|
6299
|
+
form: "form";
|
|
6300
|
+
list: "list";
|
|
6301
|
+
card: "card";
|
|
6302
|
+
channel_setup: "channel_setup";
|
|
6303
|
+
choice: "choice";
|
|
6304
|
+
copy_block: "copy_block";
|
|
6305
|
+
oauth_connect: "oauth_connect";
|
|
6306
|
+
confirmation: "confirmation";
|
|
6307
|
+
dynamic_page: "dynamic_page";
|
|
6308
|
+
file_upload: "file_upload";
|
|
6309
|
+
document_preview: "document_preview";
|
|
6310
|
+
task_preferences: "task_preferences";
|
|
6311
|
+
work_result: "work_result";
|
|
6312
|
+
skill_card: "skill_card";
|
|
6313
|
+
call_summary: "call_summary";
|
|
6314
|
+
}>;
|
|
6315
|
+
|
|
6260
6316
|
/**
|
|
6261
6317
|
* Delete `graph_node` Qdrant points whose backing `memory_graph_nodes` row no
|
|
6262
6318
|
* longer exists.
|
|
@@ -7062,7 +7118,15 @@ declare interface UiSurfaceDismiss {
|
|
|
7062
7118
|
surfaceId: string;
|
|
7063
7119
|
}
|
|
7064
7120
|
|
|
7065
|
-
|
|
7121
|
+
/**
|
|
7122
|
+
* Discriminated union over every surface type, derived from
|
|
7123
|
+
* `SurfaceDataByType` so a type added there appears here automatically.
|
|
7124
|
+
* Includes the opaque types (`channel_setup`, `task_preferences`) — their
|
|
7125
|
+
* show events carry opaque record data.
|
|
7126
|
+
*/
|
|
7127
|
+
declare type UiSurfaceShow = {
|
|
7128
|
+
[K in SurfaceType]: UiSurfaceShowFor<K>;
|
|
7129
|
+
}[SurfaceType];
|
|
7066
7130
|
|
|
7067
7131
|
/** Common fields shared by all UiSurfaceShow variants. */
|
|
7068
7132
|
declare interface UiSurfaceShowBase {
|
|
@@ -7080,65 +7144,15 @@ declare interface UiSurfaceShowBase {
|
|
|
7080
7144
|
toolCallId?: string;
|
|
7081
7145
|
}
|
|
7082
7146
|
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
declare
|
|
7089
|
-
surfaceType:
|
|
7090
|
-
data:
|
|
7091
|
-
}
|
|
7092
|
-
|
|
7093
|
-
declare interface UiSurfaceShowConfirmation extends UiSurfaceShowBase {
|
|
7094
|
-
surfaceType: "confirmation";
|
|
7095
|
-
data: ConfirmationSurfaceData;
|
|
7096
|
-
}
|
|
7097
|
-
|
|
7098
|
-
declare interface UiSurfaceShowCopyBlock extends UiSurfaceShowBase {
|
|
7099
|
-
surfaceType: "copy_block";
|
|
7100
|
-
data: CopyBlockSurfaceData;
|
|
7101
|
-
}
|
|
7102
|
-
|
|
7103
|
-
declare interface UiSurfaceShowDocumentPreview extends UiSurfaceShowBase {
|
|
7104
|
-
surfaceType: "document_preview";
|
|
7105
|
-
data: DocumentPreviewSurfaceData;
|
|
7106
|
-
}
|
|
7107
|
-
|
|
7108
|
-
declare interface UiSurfaceShowDynamicPage extends UiSurfaceShowBase {
|
|
7109
|
-
surfaceType: "dynamic_page";
|
|
7110
|
-
data: DynamicPageSurfaceData;
|
|
7111
|
-
}
|
|
7112
|
-
|
|
7113
|
-
declare interface UiSurfaceShowFileUpload extends UiSurfaceShowBase {
|
|
7114
|
-
surfaceType: "file_upload";
|
|
7115
|
-
data: FileUploadSurfaceData;
|
|
7116
|
-
}
|
|
7117
|
-
|
|
7118
|
-
declare interface UiSurfaceShowForm extends UiSurfaceShowBase {
|
|
7119
|
-
surfaceType: "form";
|
|
7120
|
-
data: FormSurfaceData;
|
|
7121
|
-
}
|
|
7122
|
-
|
|
7123
|
-
declare interface UiSurfaceShowList extends UiSurfaceShowBase {
|
|
7124
|
-
surfaceType: "list";
|
|
7125
|
-
data: ListSurfaceData;
|
|
7126
|
-
}
|
|
7127
|
-
|
|
7128
|
-
declare interface UiSurfaceShowOAuthConnect extends UiSurfaceShowBase {
|
|
7129
|
-
surfaceType: "oauth_connect";
|
|
7130
|
-
data: OAuthConnectSurfaceData;
|
|
7131
|
-
}
|
|
7132
|
-
|
|
7133
|
-
declare interface UiSurfaceShowTable extends UiSurfaceShowBase {
|
|
7134
|
-
surfaceType: "table";
|
|
7135
|
-
data: TableSurfaceData;
|
|
7136
|
-
}
|
|
7137
|
-
|
|
7138
|
-
declare interface UiSurfaceShowWorkResult extends UiSurfaceShowBase {
|
|
7139
|
-
surfaceType: "work_result";
|
|
7140
|
-
data: WorkResultSurfaceData;
|
|
7141
|
-
}
|
|
7147
|
+
/**
|
|
7148
|
+
* The show event for one specific surface type: base fields plus the
|
|
7149
|
+
* correlated `surfaceType`/`data` pair, both indexed from
|
|
7150
|
+
* `SurfaceDataByType` so generic code keeps the pairing.
|
|
7151
|
+
*/
|
|
7152
|
+
declare type UiSurfaceShowFor<K extends SurfaceType> = UiSurfaceShowBase & {
|
|
7153
|
+
surfaceType: K;
|
|
7154
|
+
data: SurfaceDataByType[K];
|
|
7155
|
+
};
|
|
7142
7156
|
|
|
7143
7157
|
declare interface UiSurfaceUndoResult {
|
|
7144
7158
|
type: "ui_surface_undo_result";
|
|
@@ -7153,7 +7167,7 @@ declare interface UiSurfaceUpdate {
|
|
|
7153
7167
|
type: "ui_surface_update";
|
|
7154
7168
|
conversationId: string;
|
|
7155
7169
|
surfaceId: string;
|
|
7156
|
-
data: Partial<
|
|
7170
|
+
data: Partial<AnySurfaceData>;
|
|
7157
7171
|
}
|
|
7158
7172
|
|
|
7159
7173
|
declare interface UndoComplete {
|
package/package.json
CHANGED