@vellumai/plugin-api 0.10.7-dev.202607101554.2aa9767 → 0.10.7-dev.202607101836.11f2eba

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 +10 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1131,10 +1131,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
1131
1131
  }, z.core.$strip>>;
1132
1132
  install: z.ZodDefault<z.ZodObject<{
1133
1133
  nodeManager: z.ZodDefault<z.ZodEnum<{
1134
- bun: "bun";
1135
1134
  npm: "npm";
1136
1135
  pnpm: "pnpm";
1137
1136
  yarn: "yarn";
1137
+ bun: "bun";
1138
1138
  }>>;
1139
1139
  }, z.core.$strip>>;
1140
1140
  allowBundled: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -2696,7 +2696,7 @@ declare const ErrorEventSchema: z.ZodObject<{
2696
2696
  conversationId: z.ZodOptional<z.ZodString>;
2697
2697
  }, z.core.$strip>;
2698
2698
 
2699
- export declare function extractTextFromStoredMessageContent(raw: string): string;
2699
+ export declare function extractTextFromStoredMessageContent(raw: string | ContentBlock[]): string;
2700
2700
 
2701
2701
  export declare interface FileContent {
2702
2702
  type: "file";
@@ -3961,8 +3961,13 @@ declare interface MessageRow {
3961
3961
  id: string;
3962
3962
  conversationId: string;
3963
3963
  role: string;
3964
- /** Resolved content — always inline JSON, never a raw `{ ref }`. */
3965
- content: string;
3964
+ /**
3965
+ * Typed content blocks, resolved at the row-fetch chokepoint by
3966
+ * `resolveMessageContentBlocks`: inline JSON parses, file-backed
3967
+ * `{ ref }` rows fold their delta file, and legacy plain strings arrive
3968
+ * wrapped in a single text block.
3969
+ */
3970
+ content: ContentBlock[];
3966
3971
  createdAt: number;
3967
3972
  metadata: string | null;
3968
3973
  clientMessageId: string | null;
@@ -5428,7 +5433,7 @@ declare interface StopInputContext {
5428
5433
  * Parse failures fall back to returning the raw input trimmed (the
5429
5434
  * legacy-string path).
5430
5435
  */
5431
- export declare function stringifyMessageContent(stored: string): string;
5436
+ export declare function stringifyMessageContent(stored: string | ContentBlock[]): string;
5432
5437
 
5433
5438
  declare interface SubagentDetailResponse {
5434
5439
  type: "subagent_detail_response";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.7-dev.202607101554.2aa9767",
3
+ "version": "0.10.7-dev.202607101836.11f2eba",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",