@convex-dev/agent 0.6.0-beta.0 → 0.6.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.
@@ -21,8 +21,8 @@ export declare const deleteAllForUserIdAsync: import("convex/server").Registered
21
21
  userId: string;
22
22
  }, Promise<boolean>>;
23
23
  export declare const _deleteAllForUserIdAsync: import("convex/server").RegisteredMutation<"internal", {
24
- streamOrder?: number | undefined;
25
24
  deltaCursor?: string | undefined;
25
+ streamOrder?: number | undefined;
26
26
  streamsInProgress?: boolean | undefined;
27
27
  userId: string;
28
28
  messagesCursor: string | null;
@@ -30,16 +30,16 @@ export declare const _deleteAllForUserIdAsync: import("convex/server").Registere
30
30
  threadInProgress: import("convex/values").GenericId<"threads"> | null;
31
31
  }, Promise<boolean>>;
32
32
  export declare const _deletePageForUserId: import("convex/server").RegisteredMutation<"internal", {
33
- streamOrder?: number | undefined;
34
33
  deltaCursor?: string | undefined;
34
+ streamOrder?: number | undefined;
35
35
  streamsInProgress?: boolean | undefined;
36
36
  userId: string;
37
37
  messagesCursor: string | null;
38
38
  threadsCursor: string | null;
39
39
  threadInProgress: import("convex/values").GenericId<"threads"> | null;
40
40
  }, Promise<{
41
- streamOrder?: number | undefined;
42
41
  deltaCursor?: string | undefined;
42
+ streamOrder?: number | undefined;
43
43
  streamsInProgress?: boolean | undefined;
44
44
  isDone: boolean;
45
45
  messagesCursor: string | null;
@@ -43,8 +43,8 @@ export type VectorDimension = (typeof VectorDimensions)[number];
43
43
  export declare const VectorTableNames: `embeddings_${(typeof VectorDimensions)[number]}`[];
44
44
  export type VectorTableName = (typeof VectorTableNames)[number];
45
45
  export type VectorTableId = GenericId<(typeof VectorTableNames)[number]>;
46
- export declare const vVectorDimension: VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, import("convex/values").VLiteral<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, "required">[], "required", never>;
47
- export declare const vVectorTableName: VUnion<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", import("convex/values").VLiteral<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "required", never>;
46
+ export declare const vVectorDimension: VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, NoInfer<[import("convex/values").VLiteral<128, "required">, import("convex/values").VLiteral<256, "required">, import("convex/values").VLiteral<512, "required">, import("convex/values").VLiteral<768, "required">, import("convex/values").VLiteral<1024, "required">, import("convex/values").VLiteral<1408, "required">, import("convex/values").VLiteral<1536, "required">, import("convex/values").VLiteral<2048, "required">, import("convex/values").VLiteral<3072, "required">, import("convex/values").VLiteral<4096, "required">]>, "required", never>;
47
+ export declare const vVectorTableName: VUnion<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", NoInfer<import("convex/values").VLiteral<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[]>, "required", never>;
48
48
  export declare const vVectorId: VUnion<GenericId<(typeof VectorTableNames)[number]>, VId<(typeof VectorTableNames)[number]>[]>;
49
49
  export declare function getVectorTableName(dimension: VectorDimension): VectorTableName;
50
50
  export declare function getVectorIdInfo(ctx: QueryCtx, id: VectorTableId): {
@@ -1 +1 @@
1
- {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../../src/component/vector/tables.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,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G,SAAS,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,gBAAgB,2mBAAgC,CAAC;AAC9D,eAAO,MAAM,gBAAgB,0dAAgC,CAAC;AAC9D,eAAO,MAAM,SAAS,EAEjB,MAAM,CACT,SAAS,CAAC,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,CAAC,EAC5C,GAAG,CAAC,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,CAAC,EAAE,CACzC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,eAAe,GACvB,eAAe,CACpD;AACD,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,aAAa;;;EAQ/D;AAED,QAAA,MAAM,MAAM,EAAE;KACX,CAAC,IAAI,MAAM,OAAO,gBAAgB,GACjC,MAAM,IAAI,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,WAAW,CACpE,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAC7B;CASF,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -9493,7 +9493,7 @@ export declare const vRequest: import("convex/values").VObject<{
9493
9493
  method: import("convex/values").VString<string | undefined, "optional">;
9494
9494
  url: import("convex/values").VString<string | undefined, "optional">;
9495
9495
  }, "required", "url" | "body" | "headers" | "method" | `body.${string}` | `headers.${string}`>;
9496
- export declare const vFinishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown", [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">], "required", never>;
9496
+ export declare const vFinishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown", [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">], "required", never>;
9497
9497
  export declare const vUsage: import("convex/values").VObject<{
9498
9498
  reasoningTokens?: number | undefined;
9499
9499
  cachedInputTokens?: number | undefined;
@@ -9588,7 +9588,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
9588
9588
  type: "other";
9589
9589
  message: string;
9590
9590
  })[] | undefined;
9591
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
9591
+ finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
9592
9592
  reasoningDetails?: ({
9593
9593
  providerOptions?: Record<string, Record<string, any>> | undefined;
9594
9594
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -12242,7 +12242,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
12242
12242
  text: import("convex/values").VString<string | undefined, "optional">;
12243
12243
  fileIds: import("convex/values").VArray<import("convex/values").GenericId<"files">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"files">, "required">, "optional">;
12244
12244
  status: import("convex/values").VUnion<"pending" | "success" | "failed" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "optional", never>;
12245
- 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>;
12245
+ 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>;
12246
12246
  model: import("convex/values").VString<string | undefined, "optional">;
12247
12247
  provider: import("convex/values").VString<string | undefined, "optional">;
12248
12248
  providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
@@ -12476,7 +12476,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
12476
12476
  type: "other";
12477
12477
  message: string;
12478
12478
  })[] | undefined;
12479
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
12479
+ finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
12480
12480
  reasoningDetails?: ({
12481
12481
  providerOptions?: Record<string, Record<string, any>> | undefined;
12482
12482
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -15130,7 +15130,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
15130
15130
  }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
15131
15131
  text: import("convex/values").VString<string | undefined, "optional">;
15132
15132
  status: import("convex/values").VUnion<"pending" | "success" | "failed" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "optional", never>;
15133
- 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>;
15133
+ 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>;
15134
15134
  model: import("convex/values").VString<string | undefined, "optional">;
15135
15135
  provider: import("convex/values").VString<string | undefined, "optional">;
15136
15136
  providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
@@ -15324,7 +15324,7 @@ export declare const vMessageEmbeddingsWithDimension: import("convex/values").VO
15324
15324
  vectors: (number[] | null)[];
15325
15325
  }, {
15326
15326
  model: import("convex/values").VString<string, "required">;
15327
- dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, import("convex/values").VLiteral<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, "required">[], "required", never>;
15327
+ dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, NoInfer<[import("convex/values").VLiteral<128, "required">, import("convex/values").VLiteral<256, "required">, import("convex/values").VLiteral<512, "required">, import("convex/values").VLiteral<768, "required">, import("convex/values").VLiteral<1024, "required">, import("convex/values").VLiteral<1408, "required">, import("convex/values").VLiteral<1536, "required">, import("convex/values").VLiteral<2048, "required">, import("convex/values").VLiteral<3072, "required">, import("convex/values").VLiteral<4096, "required">]>, "required", never>;
15328
15328
  vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
15329
15329
  }, "required", "model" | "dimension" | "vectors">;
15330
15330
  export type MessageEmbeddingsWithDimension = Infer<typeof vMessageEmbeddingsWithDimension>;
@@ -21490,7 +21490,7 @@ export declare const vEmbeddingsWithMetadata: import("convex/values").VObject<{
21490
21490
  vectors: (number[] | null)[];
21491
21491
  }, {
21492
21492
  vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
21493
- dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, import("convex/values").VLiteral<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, "required">[], "required", never>;
21493
+ dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, NoInfer<[import("convex/values").VLiteral<128, "required">, import("convex/values").VLiteral<256, "required">, import("convex/values").VLiteral<512, "required">, import("convex/values").VLiteral<768, "required">, import("convex/values").VLiteral<1024, "required">, import("convex/values").VLiteral<1408, "required">, import("convex/values").VLiteral<1536, "required">, import("convex/values").VLiteral<2048, "required">, import("convex/values").VLiteral<3072, "required">, import("convex/values").VLiteral<4096, "required">]>, "required", never>;
21494
21494
  model: import("convex/values").VString<string, "required">;
21495
21495
  }, "required", "model" | "dimension" | "vectors">;
21496
21496
  export type EmbeddingsWithMetadata = Infer<typeof vEmbeddingsWithMetadata>;
@@ -21905,7 +21905,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
21905
21905
  type: "other";
21906
21906
  message: string;
21907
21907
  })[] | undefined;
21908
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
21908
+ finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
21909
21909
  reasoningDetails?: ({
21910
21910
  providerOptions?: Record<string, Record<string, any>> | undefined;
21911
21911
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -21920,13 +21920,13 @@ export declare const vMessageDoc: import("convex/values").VObject<{
21920
21920
  type: "redacted";
21921
21921
  data: string;
21922
21922
  })[] | undefined;
21923
- _id: string;
21924
- _creationTime: number;
21925
21923
  status: "pending" | "success" | "failed";
21926
21924
  order: number;
21925
+ _creationTime: number;
21927
21926
  threadId: string;
21928
21927
  stepOrder: number;
21929
21928
  tool: boolean;
21929
+ _id: string;
21930
21930
  }, {
21931
21931
  _id: import("convex/values").VString<string, "required">;
21932
21932
  _creationTime: import("convex/values").VFloat64<number, "required">;
@@ -24438,7 +24438,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
24438
24438
  type: import("convex/values").VLiteral<"other", "required">;
24439
24439
  message: import("convex/values").VString<string, "required">;
24440
24440
  }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
24441
- 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>;
24441
+ 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>;
24442
24442
  reasoning: import("convex/values").VString<string | undefined, "optional">;
24443
24443
  reasoningDetails: import("convex/values").VArray<({
24444
24444
  providerOptions?: Record<string, Record<string, any>> | undefined;
@@ -24494,15 +24494,15 @@ export declare const vMessageDoc: import("convex/values").VObject<{
24494
24494
  data: import("convex/values").VString<string, "required">;
24495
24495
  }, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
24496
24496
  id: import("convex/values").VString<string | undefined, "optional">;
24497
- }, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
24497
+ }, "required", "id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens" | "_id">;
24498
24498
  export type MessageDoc = Infer<typeof vMessageDoc>;
24499
24499
  export declare const vThreadDoc: import("convex/values").VObject<{
24500
24500
  userId?: string | undefined;
24501
24501
  title?: string | undefined;
24502
24502
  summary?: string | undefined;
24503
- _id: string;
24504
- _creationTime: number;
24505
24503
  status: "active" | "archived";
24504
+ _creationTime: number;
24505
+ _id: string;
24506
24506
  }, {
24507
24507
  _id: import("convex/values").VString<string, "required">;
24508
24508
  _creationTime: import("convex/values").VFloat64<number, "required">;
@@ -24510,7 +24510,7 @@ export declare const vThreadDoc: import("convex/values").VObject<{
24510
24510
  title: import("convex/values").VString<string | undefined, "optional">;
24511
24511
  summary: import("convex/values").VString<string | undefined, "optional">;
24512
24512
  status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
24513
- }, "required", "_id" | "_creationTime" | "status" | "userId" | "title" | "summary">;
24513
+ }, "required", "status" | "userId" | "title" | "summary" | "_creationTime" | "_id">;
24514
24514
  export type ThreadDoc = Infer<typeof vThreadDoc>;
24515
24515
  export {};
24516
24516
  //# sourceMappingURL=validators.d.ts.map
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "email": "support@convex.dev",
8
8
  "url": "https://github.com/get-convex/agent/issues"
9
9
  },
10
- "version": "0.6.0-beta.0",
10
+ "version": "0.6.1",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "convex",
@@ -84,66 +84,66 @@
84
84
  }
85
85
  },
86
86
  "devDependencies": {
87
- "@ai-sdk/anthropic": "^3.0.13",
88
- "@ai-sdk/google": "^3.0.30",
89
- "@ai-sdk/groq": "^3.0.8",
90
- "@ai-sdk/openai": "^3.0.10",
91
- "@ai-sdk/provider": "^3.0.3",
92
- "@ai-sdk/provider-utils": "^4.0.6",
93
- "@convex-dev/rag": "0.7.0",
94
- "@convex-dev/rate-limiter": "0.3.0",
95
- "@convex-dev/workflow": "0.3.2",
87
+ "@ai-sdk/anthropic": "3.0.13",
88
+ "@ai-sdk/google": "3.0.30",
89
+ "@ai-sdk/groq": "3.0.8",
90
+ "@ai-sdk/openai": "3.0.10",
91
+ "@ai-sdk/provider": "3.0.3",
92
+ "@ai-sdk/provider-utils": "4.0.6",
93
+ "@convex-dev/rag": "0.7.2",
94
+ "@convex-dev/rate-limiter": "0.3.2",
95
+ "@convex-dev/workflow": "0.3.6",
96
96
  "@edge-runtime/vm": "5.0.0",
97
- "@eslint/js": "9.38.0",
97
+ "@eslint/js": "9.39.4",
98
98
  "@hookform/resolvers": "5.2.2",
99
99
  "@langchain/textsplitters": "0.1.0",
100
100
  "@radix-ui/react-accordion": "1.2.12",
101
101
  "@radix-ui/react-checkbox": "1.3.3",
102
- "@radix-ui/react-label": "2.1.7",
102
+ "@radix-ui/react-label": "2.1.8",
103
103
  "@radix-ui/react-select": "2.2.6",
104
- "@radix-ui/react-slot": "1.2.3",
104
+ "@radix-ui/react-slot": "1.2.4",
105
105
  "@radix-ui/react-toast": "1.2.15",
106
106
  "@tailwindcss/typography": "0.5.19",
107
- "@types/node": "20.19.24",
108
- "@types/react": "19.2.2",
109
- "@types/react-dom": "19.2.2",
107
+ "@types/node": "20.19.37",
108
+ "@types/react": "19.2.14",
109
+ "@types/react-dom": "19.2.3",
110
110
  "@vitejs/plugin-react": "4.7.0",
111
- "ai": "^6.0.35",
112
- "autoprefixer": "10.4.21",
111
+ "ai": "6.0.35",
112
+ "autoprefixer": "10.4.27",
113
113
  "chokidar-cli": "3.0.0",
114
114
  "class-variance-authority": "0.7.1",
115
115
  "clsx": "2.1.1",
116
- "convex": "1.29.3",
117
- "convex-helpers": "0.1.104",
118
- "convex-test": "0.0.38",
116
+ "convex": "1.33.1",
117
+ "convex-helpers": "0.1.114",
118
+ "convex-test": "0.0.41",
119
119
  "cpy-cli": "5.0.0",
120
- "dayjs": "1.11.18",
120
+ "dayjs": "1.11.20",
121
121
  "dotenv": "16.6.1",
122
- "eslint": "9.38.0",
122
+ "eslint": "9.39.4",
123
123
  "eslint-plugin-jsx-a11y": "6.10.2",
124
124
  "eslint-plugin-react": "7.37.5",
125
- "eslint-plugin-react-hooks": "^6",
126
- "eslint-plugin-react-refresh": "0.4.24",
127
- "globals": "16.4.0",
128
- "lucide-react": "0.548.0",
125
+ "eslint-plugin-react-hooks": "6.1.1",
126
+ "eslint-plugin-react-refresh": "0.5.2",
127
+ "globals": "16.5.0",
128
+ "lucide-react": "0.577.0",
129
129
  "npm-run-all2": "8.0.4",
130
- "ollama-ai-provider": "^1.2.0",
130
+ "ollama-ai-provider": "1.2.0",
131
131
  "openai": "5.23.2",
132
- "path-exists-cli": "^2.0.0",
133
- "pkg-pr-new": "0.0.60",
134
- "postcss": "8.5.6",
135
- "prettier": "3.6.2",
136
- "react": "19.2.3",
137
- "react-dom": "19.2.3",
138
- "react-hook-form": "7.65.0",
132
+ "path-exists-cli": "2.0.0",
133
+ "pkg-pr-new": "0.0.66",
134
+ "postcss": "8.5.8",
135
+ "prettier": "3.8.1",
136
+ "react": "19.2.4",
137
+ "react-dom": "19.2.4",
138
+ "react-hook-form": "7.71.2",
139
139
  "react-markdown": "10.1.0",
140
- "react-router-dom": "7.9.5",
140
+ "react-router-dom": "7.13.1",
141
141
  "readline": "1.3.0",
142
- "tailwind-merge": "3.3.1",
143
- "tailwindcss": "3.4.18",
142
+ "tailwind-merge": "3.5.0",
143
+ "tailwindcss": "3.4.19",
144
144
  "tailwindcss-animate": "1.0.7",
145
145
  "typescript": "5.9.3",
146
- "typescript-eslint": "8.46.2",
146
+ "typescript-eslint": "8.57.1",
147
147
  "vite": "6.4.1",
148
148
  "vitest": "3.2.4",
149
149
  "zod": "3.25.76"
@@ -38,7 +38,7 @@ export type Doc<TableName extends TableNames> = DocumentByName<
38
38
  * Convex documents are uniquely identified by their `Id`, which is accessible
39
39
  * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
40
40
  *
41
- * Documents can be loaded using `db.get(id)` in query and mutation functions.
41
+ * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions.
42
42
  *
43
43
  * IDs are just strings at runtime, but this type can be used to distinguish them from other
44
44
  * strings when type checking.
@@ -107,11 +107,6 @@ export const internalAction: ActionBuilder<DataModel, "internal"> =
107
107
  */
108
108
  export const httpAction: HttpActionBuilder = httpActionGeneric;
109
109
 
110
- type GenericCtx =
111
- | GenericActionCtx<DataModel>
112
- | GenericMutationCtx<DataModel>
113
- | GenericQueryCtx<DataModel>;
114
-
115
110
  /**
116
111
  * A set of services for use within Convex query functions.
117
112
  *
@@ -0,0 +1 @@
1
+ {"version":"3.2.4","results":[[":client/index.test.ts",{"duration":129.9694999999997,"failed":false}],[":component/messages.test.ts",{"duration":191.73391600000014,"failed":false}],[":component/users.test.ts",{"duration":545.7272500000001,"failed":false}],[":mapping.test.ts",{"duration":28.127082999999402,"failed":false}],[":react/deltas.test.ts",{"duration":5.8497500000000855,"failed":false}],[":react/toUIMessages.test.ts",{"duration":6.495208000000048,"failed":false}],[":validators.test.ts",{"duration":1.0037499999999682,"failed":false}],[":deltas.test.ts",{"duration":0,"failed":false}],[":client/streaming.test.ts",{"duration":177.87866699695587,"failed":false}]]}