@convex-dev/agent 0.6.0-alpha.1 → 0.6.0-beta.0

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 (44) hide show
  1. package/dist/UIMessages.d.ts.map +1 -1
  2. package/dist/UIMessages.js +88 -0
  3. package/dist/UIMessages.js.map +1 -1
  4. package/dist/client/definePlaygroundAPI.d.ts +17 -17
  5. package/dist/client/index.d.ts +44 -44
  6. package/dist/client/index.d.ts.map +1 -1
  7. package/dist/client/index.js +54 -20
  8. package/dist/client/index.js.map +1 -1
  9. package/dist/client/messages.d.ts +3 -3
  10. package/dist/client/search.d.ts +3 -3
  11. package/dist/client/search.d.ts.map +1 -1
  12. package/dist/client/search.js +14 -4
  13. package/dist/client/search.js.map +1 -1
  14. package/dist/client/start.js +2 -2
  15. package/dist/client/start.js.map +1 -1
  16. package/dist/client/streamText.d.ts.map +1 -1
  17. package/dist/client/streamText.js +10 -0
  18. package/dist/client/streamText.js.map +1 -1
  19. package/dist/client/streaming.d.ts +47 -47
  20. package/dist/client/streaming.d.ts.map +1 -1
  21. package/dist/client/streaming.js +37 -21
  22. package/dist/client/streaming.js.map +1 -1
  23. package/dist/component/messages.d.ts +47 -47
  24. package/dist/component/schema.d.ts +40 -40
  25. package/dist/component/streams.d.ts +2 -2
  26. package/dist/component/threads.d.ts +6 -6
  27. package/dist/component/vector/index.d.ts +1 -1
  28. package/dist/mapping.d.ts +19 -15
  29. package/dist/mapping.d.ts.map +1 -1
  30. package/dist/mapping.js +90 -47
  31. package/dist/mapping.js.map +1 -1
  32. package/dist/validators.d.ts +13 -13
  33. package/package.json +1 -1
  34. package/src/UIMessages.ts +126 -0
  35. package/src/client/approval.test.ts +144 -0
  36. package/src/client/index.ts +73 -23
  37. package/src/client/search.test.ts +4 -5
  38. package/src/client/search.ts +16 -4
  39. package/src/client/start.ts +2 -2
  40. package/src/client/streamText.ts +9 -0
  41. package/src/client/streaming.integration.test.ts +1206 -0
  42. package/src/client/streaming.ts +35 -21
  43. package/src/mapping.test.ts +136 -71
  44. package/src/mapping.ts +119 -50
@@ -600,7 +600,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
600
600
  type: "other";
601
601
  message: string;
602
602
  })[] | undefined;
603
- finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
603
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
604
604
  reasoningDetails?: ({
605
605
  providerOptions?: Record<string, Record<string, any>> | undefined;
606
606
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -3039,7 +3039,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
3039
3039
  type: import("convex/values").VLiteral<"other", "required">;
3040
3040
  message: import("convex/values").VString<string, "required">;
3041
3041
  }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
3042
- finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
3042
+ finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
3043
3043
  reasoning: import("convex/values").VString<string | undefined, "optional">;
3044
3044
  reasoningDetails: import("convex/values").VArray<({
3045
3045
  providerOptions?: Record<string, Record<string, any>> | undefined;
@@ -3245,7 +3245,7 @@ export declare const vv: {
3245
3245
  order?: number | undefined;
3246
3246
  status: "active" | "archived";
3247
3247
  };
3248
- fieldPaths: ("status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order" | "_creationTime") | "_id";
3248
+ fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
3249
3249
  indexes: {
3250
3250
  userId: ["userId", "_creationTime"];
3251
3251
  by_id: ["_id"];
@@ -3271,7 +3271,7 @@ export declare const vv: {
3271
3271
  table: string;
3272
3272
  vector: number[];
3273
3273
  };
3274
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3274
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3275
3275
  indexes: {
3276
3276
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3277
3277
  by_id: ["_id"];
@@ -3298,7 +3298,7 @@ export declare const vv: {
3298
3298
  table: string;
3299
3299
  vector: number[];
3300
3300
  };
3301
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3301
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3302
3302
  indexes: {
3303
3303
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3304
3304
  by_id: ["_id"];
@@ -3325,7 +3325,7 @@ export declare const vv: {
3325
3325
  table: string;
3326
3326
  vector: number[];
3327
3327
  };
3328
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3328
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3329
3329
  indexes: {
3330
3330
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3331
3331
  by_id: ["_id"];
@@ -3352,7 +3352,7 @@ export declare const vv: {
3352
3352
  table: string;
3353
3353
  vector: number[];
3354
3354
  };
3355
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3355
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3356
3356
  indexes: {
3357
3357
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3358
3358
  by_id: ["_id"];
@@ -3379,7 +3379,7 @@ export declare const vv: {
3379
3379
  table: string;
3380
3380
  vector: number[];
3381
3381
  };
3382
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3382
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3383
3383
  indexes: {
3384
3384
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3385
3385
  by_id: ["_id"];
@@ -3406,7 +3406,7 @@ export declare const vv: {
3406
3406
  table: string;
3407
3407
  vector: number[];
3408
3408
  };
3409
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3409
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3410
3410
  indexes: {
3411
3411
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3412
3412
  by_id: ["_id"];
@@ -3433,7 +3433,7 @@ export declare const vv: {
3433
3433
  table: string;
3434
3434
  vector: number[];
3435
3435
  };
3436
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3436
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3437
3437
  indexes: {
3438
3438
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3439
3439
  by_id: ["_id"];
@@ -3460,7 +3460,7 @@ export declare const vv: {
3460
3460
  table: string;
3461
3461
  vector: number[];
3462
3462
  };
3463
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3463
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3464
3464
  indexes: {
3465
3465
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3466
3466
  by_id: ["_id"];
@@ -3487,7 +3487,7 @@ export declare const vv: {
3487
3487
  table: string;
3488
3488
  vector: number[];
3489
3489
  };
3490
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3490
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3491
3491
  indexes: {
3492
3492
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3493
3493
  by_id: ["_id"];
@@ -3514,7 +3514,7 @@ export declare const vv: {
3514
3514
  table: string;
3515
3515
  vector: number[];
3516
3516
  };
3517
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3517
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
3518
3518
  indexes: {
3519
3519
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
3520
3520
  by_id: ["_id"];
@@ -3541,7 +3541,7 @@ export declare const vv: {
3541
3541
  refcount: number;
3542
3542
  lastTouchedAt: number;
3543
3543
  };
3544
- fieldPaths: ("_creationTime" | "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt") | "_id";
3544
+ fieldPaths: "_id" | ("_creationTime" | "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
3545
3545
  indexes: {
3546
3546
  hash: ["hash", "_creationTime"];
3547
3547
  refcount: ["refcount", "_creationTime"];
@@ -3874,7 +3874,7 @@ export declare const vv: {
3874
3874
  type: "other";
3875
3875
  message: string;
3876
3876
  })[] | undefined;
3877
- finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
3877
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
3878
3878
  reasoningDetails?: ({
3879
3879
  providerOptions?: Record<string, Record<string, any>> | undefined;
3880
3880
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -3897,7 +3897,7 @@ export declare const vv: {
3897
3897
  stepOrder: number;
3898
3898
  tool: boolean;
3899
3899
  };
3900
- fieldPaths: ("id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens") | "_id";
3900
+ fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens");
3901
3901
  indexes: {
3902
3902
  threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
3903
3903
  embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
@@ -3938,7 +3938,7 @@ export declare const vv: {
3938
3938
  kind: "aborted";
3939
3939
  };
3940
3940
  };
3941
- fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId") | "_id";
3941
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId");
3942
3942
  indexes: {
3943
3943
  threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
3944
3944
  by_id: ["_id"];
@@ -3956,7 +3956,7 @@ export declare const vv: {
3956
3956
  end: number;
3957
3957
  parts: any[];
3958
3958
  };
3959
- fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id";
3959
+ fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
3960
3960
  indexes: {
3961
3961
  streamId_start_end: ["streamId", "start", "end", "_creationTime"];
3962
3962
  by_id: ["_id"];
@@ -3974,7 +3974,7 @@ export declare const vv: {
3974
3974
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
3975
3975
  memory: string;
3976
3976
  };
3977
- fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id";
3977
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
3978
3978
  indexes: {
3979
3979
  threadId: ["threadId", "_creationTime"];
3980
3980
  userId: ["userId", "_creationTime"];
@@ -3991,7 +3991,7 @@ export declare const vv: {
3991
3991
  _creationTime: number;
3992
3992
  name?: string | undefined;
3993
3993
  };
3994
- fieldPaths: ("_creationTime" | "name") | "_id";
3994
+ fieldPaths: "_id" | ("_creationTime" | "name");
3995
3995
  indexes: {
3996
3996
  name: ["name", "_creationTime"];
3997
3997
  by_id: ["_id"];
@@ -4014,7 +4014,7 @@ export declare const vv: {
4014
4014
  order?: number | undefined;
4015
4015
  status: "active" | "archived";
4016
4016
  };
4017
- fieldPaths: ("status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order" | "_creationTime") | "_id";
4017
+ fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
4018
4018
  indexes: {
4019
4019
  userId: ["userId", "_creationTime"];
4020
4020
  by_id: ["_id"];
@@ -4040,7 +4040,7 @@ export declare const vv: {
4040
4040
  table: string;
4041
4041
  vector: number[];
4042
4042
  };
4043
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4043
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4044
4044
  indexes: {
4045
4045
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4046
4046
  by_id: ["_id"];
@@ -4067,7 +4067,7 @@ export declare const vv: {
4067
4067
  table: string;
4068
4068
  vector: number[];
4069
4069
  };
4070
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4070
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4071
4071
  indexes: {
4072
4072
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4073
4073
  by_id: ["_id"];
@@ -4094,7 +4094,7 @@ export declare const vv: {
4094
4094
  table: string;
4095
4095
  vector: number[];
4096
4096
  };
4097
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4097
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4098
4098
  indexes: {
4099
4099
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4100
4100
  by_id: ["_id"];
@@ -4121,7 +4121,7 @@ export declare const vv: {
4121
4121
  table: string;
4122
4122
  vector: number[];
4123
4123
  };
4124
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4124
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4125
4125
  indexes: {
4126
4126
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4127
4127
  by_id: ["_id"];
@@ -4148,7 +4148,7 @@ export declare const vv: {
4148
4148
  table: string;
4149
4149
  vector: number[];
4150
4150
  };
4151
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4151
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4152
4152
  indexes: {
4153
4153
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4154
4154
  by_id: ["_id"];
@@ -4175,7 +4175,7 @@ export declare const vv: {
4175
4175
  table: string;
4176
4176
  vector: number[];
4177
4177
  };
4178
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4178
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4179
4179
  indexes: {
4180
4180
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4181
4181
  by_id: ["_id"];
@@ -4202,7 +4202,7 @@ export declare const vv: {
4202
4202
  table: string;
4203
4203
  vector: number[];
4204
4204
  };
4205
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4205
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4206
4206
  indexes: {
4207
4207
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4208
4208
  by_id: ["_id"];
@@ -4229,7 +4229,7 @@ export declare const vv: {
4229
4229
  table: string;
4230
4230
  vector: number[];
4231
4231
  };
4232
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4232
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4233
4233
  indexes: {
4234
4234
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4235
4235
  by_id: ["_id"];
@@ -4256,7 +4256,7 @@ export declare const vv: {
4256
4256
  table: string;
4257
4257
  vector: number[];
4258
4258
  };
4259
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4259
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4260
4260
  indexes: {
4261
4261
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4262
4262
  by_id: ["_id"];
@@ -4283,7 +4283,7 @@ export declare const vv: {
4283
4283
  table: string;
4284
4284
  vector: number[];
4285
4285
  };
4286
- fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4286
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
4287
4287
  indexes: {
4288
4288
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
4289
4289
  by_id: ["_id"];
@@ -4310,7 +4310,7 @@ export declare const vv: {
4310
4310
  refcount: number;
4311
4311
  lastTouchedAt: number;
4312
4312
  };
4313
- fieldPaths: ("_creationTime" | "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt") | "_id";
4313
+ fieldPaths: "_id" | ("_creationTime" | "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
4314
4314
  indexes: {
4315
4315
  hash: ["hash", "_creationTime"];
4316
4316
  refcount: ["refcount", "_creationTime"];
@@ -4643,7 +4643,7 @@ export declare const vv: {
4643
4643
  type: "other";
4644
4644
  message: string;
4645
4645
  })[] | undefined;
4646
- finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
4646
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
4647
4647
  reasoningDetails?: ({
4648
4648
  providerOptions?: Record<string, Record<string, any>> | undefined;
4649
4649
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -4666,7 +4666,7 @@ export declare const vv: {
4666
4666
  stepOrder: number;
4667
4667
  tool: boolean;
4668
4668
  };
4669
- fieldPaths: ("id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens") | "_id";
4669
+ fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens");
4670
4670
  indexes: {
4671
4671
  threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
4672
4672
  embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
@@ -4707,7 +4707,7 @@ export declare const vv: {
4707
4707
  kind: "aborted";
4708
4708
  };
4709
4709
  };
4710
- fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId") | "_id";
4710
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId");
4711
4711
  indexes: {
4712
4712
  threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
4713
4713
  by_id: ["_id"];
@@ -4725,7 +4725,7 @@ export declare const vv: {
4725
4725
  end: number;
4726
4726
  parts: any[];
4727
4727
  };
4728
- fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id";
4728
+ fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
4729
4729
  indexes: {
4730
4730
  streamId_start_end: ["streamId", "start", "end", "_creationTime"];
4731
4731
  by_id: ["_id"];
@@ -4743,7 +4743,7 @@ export declare const vv: {
4743
4743
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
4744
4744
  memory: string;
4745
4745
  };
4746
- fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id";
4746
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
4747
4747
  indexes: {
4748
4748
  threadId: ["threadId", "_creationTime"];
4749
4749
  userId: ["userId", "_creationTime"];
@@ -4760,7 +4760,7 @@ export declare const vv: {
4760
4760
  _creationTime: number;
4761
4761
  name?: string | undefined;
4762
4762
  };
4763
- fieldPaths: ("_creationTime" | "name") | "_id";
4763
+ fieldPaths: "_id" | ("_creationTime" | "name");
4764
4764
  indexes: {
4765
4765
  name: ["name", "_creationTime"];
4766
4766
  by_id: ["_id"];
@@ -5371,7 +5371,7 @@ export declare const vv: {
5371
5371
  type: "other";
5372
5372
  message: string;
5373
5373
  })[] | undefined;
5374
- finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
5374
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
5375
5375
  reasoningDetails?: ({
5376
5376
  providerOptions?: Record<string, Record<string, any>> | undefined;
5377
5377
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -7810,7 +7810,7 @@ export declare const vv: {
7810
7810
  type: import("convex/values").VLiteral<"other", "required">;
7811
7811
  message: import("convex/values").VString<string, "required">;
7812
7812
  }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
7813
- finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
7813
+ finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
7814
7814
  reasoning: import("convex/values").VString<string | undefined, "optional">;
7815
7815
  reasoningDetails: import("convex/values").VArray<({
7816
7816
  providerOptions?: Record<string, Record<string, any>> | undefined;
@@ -33,7 +33,7 @@ export declare const create: import("convex/server").RegisteredMutation<"public"
33
33
  }, Promise<import("convex/values").GenericId<"streamingMessages">>>;
34
34
  export declare const list: import("convex/server").RegisteredQuery<"public", {
35
35
  startOrder?: number | undefined;
36
- statuses?: ("aborted" | "streaming" | "finished")[] | undefined;
36
+ statuses?: ("streaming" | "finished" | "aborted")[] | undefined;
37
37
  threadId: import("convex/values").GenericId<"threads">;
38
38
  }, Promise<{
39
39
  userId?: string | undefined;
@@ -44,7 +44,7 @@ export declare const list: import("convex/server").RegisteredQuery<"public", {
44
44
  format?: "UIMessageChunk" | "TextStreamPart" | undefined;
45
45
  order: number;
46
46
  stepOrder: number;
47
- status: "aborted" | "streaming" | "finished";
47
+ status: "streaming" | "finished" | "aborted";
48
48
  streamId: string;
49
49
  }[]>>;
50
50
  export declare const abortByOrder: import("convex/server").RegisteredMutation<"public", {
@@ -66,8 +66,8 @@ export declare const updateThread: import("convex/server").RegisteredMutation<"p
66
66
  }>>;
67
67
  export declare const searchThreadTitles: import("convex/server").RegisteredQuery<"public", {
68
68
  userId?: string | null | undefined;
69
- limit: number;
70
69
  query: string;
70
+ limit: number;
71
71
  }, Promise<{
72
72
  userId?: string | undefined;
73
73
  title?: string | undefined;
@@ -88,14 +88,14 @@ export declare const deleteAllForThreadIdSync: import("convex/server").Registere
88
88
  export declare const _deletePageForThreadId: import("convex/server").RegisteredMutation<"internal", {
89
89
  cursor?: string | undefined;
90
90
  limit?: number | undefined;
91
- messagesDone?: boolean | undefined;
92
- streamsDone?: boolean | undefined;
93
91
  streamOrder?: number | undefined;
94
92
  deltaCursor?: string | undefined;
93
+ messagesDone?: boolean | undefined;
94
+ streamsDone?: boolean | undefined;
95
95
  threadId: import("convex/values").GenericId<"threads">;
96
96
  }, Promise<{
97
- cursor: string;
98
97
  isDone: boolean;
98
+ cursor: string;
99
99
  }>>;
100
100
  /**
101
101
  * Use this to delete a thread and everything it contains.
@@ -104,10 +104,10 @@ export declare const _deletePageForThreadId: import("convex/server").RegisteredM
104
104
  export declare const deleteAllForThreadIdAsync: import("convex/server").RegisteredMutation<"public", {
105
105
  cursor?: string | undefined;
106
106
  limit?: number | undefined;
107
- messagesDone?: boolean | undefined;
108
- streamsDone?: boolean | undefined;
109
107
  streamOrder?: number | undefined;
110
108
  deltaCursor?: string | undefined;
109
+ messagesDone?: boolean | undefined;
110
+ streamsDone?: boolean | undefined;
111
111
  threadId: import("convex/values").GenericId<"threads">;
112
112
  }, Promise<{
113
113
  isDone: boolean;
@@ -23,7 +23,6 @@ export declare const deleteBatchForThread: import("convex/server").RegisteredMut
23
23
  continueCursor: string;
24
24
  }>>;
25
25
  export declare const insertBatch: import("convex/server").RegisteredMutation<"public", {
26
- vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
27
26
  vectors: {
28
27
  userId?: string | undefined;
29
28
  threadId?: string | undefined;
@@ -32,6 +31,7 @@ export declare const insertBatch: import("convex/server").RegisteredMutation<"pu
32
31
  table: string;
33
32
  vector: number[];
34
33
  }[];
34
+ vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
35
35
  }, Promise<(string & {
36
36
  __tableName: "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096";
37
37
  })[]>>;
package/dist/mapping.d.ts CHANGED
@@ -19,28 +19,32 @@ export declare function serializeOrThrow(message: ModelMessage | Message): Promi
19
19
  export declare function toModelMessage(message: SerializedMessage | ModelMessage): ModelMessage;
20
20
  export declare function docsToModelMessages(messages: MessageDoc[]): ModelMessage[];
21
21
  /**
22
- * Merge consecutive tool messages that contain `tool-approval-response` parts
23
- * into a single tool message. The AI SDK's `collectToolApprovals` only examines
24
- * the last tool message, so when multiple approvals are saved as separate
25
- * messages (e.g. approve tool A, then deny tool B), they must be combined
26
- * for the SDK to process them all.
22
+ * Scan messages for unresolved `tool-approval-request` parts and inject
23
+ * synthetic `tool-approval-response` denials so that the AI SDK receives
24
+ * a complete history (every tool-call has a corresponding result or denial).
25
+ *
26
+ * This handles the case where a user sends a new message instead of
27
+ * resolving pending approvals — the old approvals are auto-denied rather
28
+ * than silently dropped.
27
29
  */
28
- export declare function mergeApprovalResponseMessages(messages: ModelMessage[]): ModelMessage[];
30
+ export declare function autoDenyUnresolvedApprovals(messages: ModelMessage[]): ModelMessage[];
29
31
  export declare function serializeUsage(usage: LanguageModelUsage): Usage;
30
32
  export declare function toModelMessageUsage(usage: Usage): LanguageModelUsage;
31
33
  export declare function serializeWarnings(warnings: CallWarning[] | undefined): MessageWithMetadata["warnings"];
32
34
  export declare function toModelMessageWarnings(warnings: MessageWithMetadata["warnings"]): CallWarning[] | undefined;
33
- export declare function serializeNewMessagesInStep<TOOLS extends ToolSet>(ctx: ActionCtx, component: AgentComponent, step: StepResult<TOOLS>, model: ModelOrMetadata | undefined,
34
35
  /**
35
- * If provided, these are the new response messages for this step
36
- * (pre-sliced by the caller). When not provided, falls back to the
37
- * existing heuristic of slicing the last 1-2 messages.
38
- *
39
- * This is needed for tool approval flows where the SDK adds extra
40
- * messages (e.g. approval tool-results) at the beginning of
41
- * responseMessages that the old slice(-1/-2) logic would miss.
36
+ * Serialize explicitly provided response messages for a step.
37
+ * Used by the streaming/generation loop where the caller tracks which
38
+ * messages are new via slicing.
39
+ */
40
+ export declare function serializeResponseMessages<TOOLS extends ToolSet>(ctx: ActionCtx, component: AgentComponent, step: StepResult<TOOLS>, model: ModelOrMetadata | undefined, responseMessages: ModelMessage[]): Promise<{
41
+ messages: MessageWithMetadata[];
42
+ }>;
43
+ /**
44
+ * Serialize the new messages from a step using a heuristic to determine
45
+ * which response messages are new (last 1-2 messages).
42
46
  */
43
- newResponseMessages?: ModelMessage[]): Promise<{
47
+ export declare function serializeNewMessagesInStep<TOOLS extends ToolSet>(ctx: ActionCtx, component: AgentComponent, step: StepResult<TOOLS>, model: ModelOrMetadata | undefined): Promise<{
44
48
  messages: MessageWithMetadata[];
45
49
  }>;
46
50
  export declare function serializeObjectResult(ctx: ActionCtx, component: AgentComponent, result: GenerateObjectResult<unknown>, model: ModelOrMetadata | undefined): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../src/mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAGhB,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,IAAI,CAAC;AACZ,OAAO,EA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