@convex-dev/agent 0.1.5-alpha.3 → 0.1.5
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/README.md +1 -0
- package/dist/commonjs/client/index.d.ts +22 -2
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +47 -2
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/types.d.ts +13 -5
- package/dist/commonjs/client/types.d.ts.map +1 -1
- package/dist/commonjs/component/_generated/api.d.ts +2327 -4
- package/dist/commonjs/component/_generated/dataModel.d.ts +60 -0
- package/dist/commonjs/component/_generated/server.d.ts +97 -12
- package/dist/commonjs/react/types.d.ts +3 -3
- package/dist/commonjs/react/types.d.ts.map +1 -1
- package/dist/commonjs/react/useSmoothText.d.ts.map +1 -1
- package/dist/commonjs/react/useSmoothText.js +1 -0
- package/dist/commonjs/react/useSmoothText.js.map +1 -1
- package/dist/commonjs.tsbuildinfo +1 -1
- package/dist/esm/client/index.d.ts +22 -2
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +47 -2
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/types.d.ts +13 -5
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/component/_generated/api.d.ts +2327 -4
- package/dist/esm/component/_generated/dataModel.d.ts +60 -0
- package/dist/esm/component/_generated/server.d.ts +97 -12
- package/dist/esm/react/types.d.ts +3 -3
- package/dist/esm/react/types.d.ts.map +1 -1
- package/dist/esm/react/useSmoothText.d.ts.map +1 -1
- package/dist/esm/react/useSmoothText.js +1 -0
- package/dist/esm/react/useSmoothText.js.map +1 -1
- package/dist/esm.tsbuildinfo +1 -1
- package/package.json +10 -7
- package/src/client/index.ts +64 -4
- package/src/client/types.ts +19 -9
- package/src/component/_generated/api.d.ts +22 -0
- package/src/react/types.ts +3 -3
- package/src/react/useSmoothText.ts +4 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated data model types.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type {
|
|
12
|
+
DataModelFromSchemaDefinition,
|
|
13
|
+
DocumentByName,
|
|
14
|
+
TableNamesInDataModel,
|
|
15
|
+
SystemTableNames,
|
|
16
|
+
} from "convex/server";
|
|
17
|
+
import type { GenericId } from "convex/values";
|
|
18
|
+
import schema from "../schema.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The names of all of your Convex tables.
|
|
22
|
+
*/
|
|
23
|
+
export type TableNames = TableNamesInDataModel<DataModel>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The type of a document stored in Convex.
|
|
27
|
+
*
|
|
28
|
+
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
29
|
+
*/
|
|
30
|
+
export type Doc<TableName extends TableNames> = DocumentByName<
|
|
31
|
+
DataModel,
|
|
32
|
+
TableName
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* An identifier for a document in Convex.
|
|
37
|
+
*
|
|
38
|
+
* Convex documents are uniquely identified by their `Id`, which is accessible
|
|
39
|
+
* on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
|
|
40
|
+
*
|
|
41
|
+
* Documents can be loaded using `db.get(id)` in query and mutation functions.
|
|
42
|
+
*
|
|
43
|
+
* IDs are just strings at runtime, but this type can be used to distinguish them from other
|
|
44
|
+
* strings when type checking.
|
|
45
|
+
*
|
|
46
|
+
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
47
|
+
*/
|
|
48
|
+
export type Id<TableName extends TableNames | SystemTableNames> =
|
|
49
|
+
GenericId<TableName>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A type describing your Convex data model.
|
|
53
|
+
*
|
|
54
|
+
* This type includes information about what tables you have, the type of
|
|
55
|
+
* documents stored in those tables, and the indexes defined on them.
|
|
56
|
+
*
|
|
57
|
+
* This type is used to parameterize methods like `queryGeneric` and
|
|
58
|
+
* `mutationGeneric` to make them type-safe.
|
|
59
|
+
*/
|
|
60
|
+
export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated utilities for implementing server-side Convex query and mutation functions.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
ActionBuilder,
|
|
13
|
+
AnyComponents,
|
|
14
|
+
HttpActionBuilder,
|
|
15
|
+
MutationBuilder,
|
|
16
|
+
QueryBuilder,
|
|
17
|
+
GenericActionCtx,
|
|
18
|
+
GenericMutationCtx,
|
|
19
|
+
GenericQueryCtx,
|
|
20
|
+
GenericDatabaseReader,
|
|
21
|
+
GenericDatabaseWriter,
|
|
22
|
+
FunctionReference,
|
|
23
|
+
} from "convex/server";
|
|
24
|
+
import type { DataModel } from "./dataModel.js";
|
|
25
|
+
|
|
26
|
+
type GenericCtx =
|
|
27
|
+
| GenericActionCtx<DataModel>
|
|
28
|
+
| GenericMutationCtx<DataModel>
|
|
29
|
+
| GenericQueryCtx<DataModel>;
|
|
30
|
+
|
|
1
31
|
/**
|
|
2
32
|
* Define a query in this Convex app's public API.
|
|
3
33
|
*
|
|
@@ -6,7 +36,8 @@
|
|
|
6
36
|
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
7
37
|
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
8
38
|
*/
|
|
9
|
-
export const query:
|
|
39
|
+
export declare const query: QueryBuilder<DataModel, "public">;
|
|
40
|
+
|
|
10
41
|
/**
|
|
11
42
|
* Define a query that is only accessible from other Convex functions (but not from the client).
|
|
12
43
|
*
|
|
@@ -15,7 +46,8 @@ export const query: import("convex/server").QueryBuilder<any, "public">;
|
|
|
15
46
|
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
16
47
|
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
17
48
|
*/
|
|
18
|
-
export const internalQuery:
|
|
49
|
+
export declare const internalQuery: QueryBuilder<DataModel, "internal">;
|
|
50
|
+
|
|
19
51
|
/**
|
|
20
52
|
* Define a mutation in this Convex app's public API.
|
|
21
53
|
*
|
|
@@ -24,7 +56,8 @@ export const internalQuery: import("convex/server").QueryBuilder<any, "internal"
|
|
|
24
56
|
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
25
57
|
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
26
58
|
*/
|
|
27
|
-
export const mutation:
|
|
59
|
+
export declare const mutation: MutationBuilder<DataModel, "public">;
|
|
60
|
+
|
|
28
61
|
/**
|
|
29
62
|
* Define a mutation that is only accessible from other Convex functions (but not from the client).
|
|
30
63
|
*
|
|
@@ -33,7 +66,8 @@ export const mutation: import("convex/server").MutationBuilder<any, "public">;
|
|
|
33
66
|
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
34
67
|
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
35
68
|
*/
|
|
36
|
-
export const internalMutation:
|
|
69
|
+
export declare const internalMutation: MutationBuilder<DataModel, "internal">;
|
|
70
|
+
|
|
37
71
|
/**
|
|
38
72
|
* Define an action in this Convex app's public API.
|
|
39
73
|
*
|
|
@@ -45,20 +79,71 @@ export const internalMutation: import("convex/server").MutationBuilder<any, "int
|
|
|
45
79
|
* @param func - The action. It receives an {@link ActionCtx} as its first argument.
|
|
46
80
|
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
|
|
47
81
|
*/
|
|
48
|
-
export const action:
|
|
82
|
+
export declare const action: ActionBuilder<DataModel, "public">;
|
|
83
|
+
|
|
49
84
|
/**
|
|
50
85
|
* Define an action that is only accessible from other Convex functions (but not from the client).
|
|
51
86
|
*
|
|
52
87
|
* @param func - The function. It receives an {@link ActionCtx} as its first argument.
|
|
53
88
|
* @returns The wrapped function. Include this as an `export` to name it and make it accessible.
|
|
54
89
|
*/
|
|
55
|
-
export const internalAction:
|
|
90
|
+
export declare const internalAction: ActionBuilder<DataModel, "internal">;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Define an HTTP action.
|
|
94
|
+
*
|
|
95
|
+
* This function will be used to respond to HTTP requests received by a Convex
|
|
96
|
+
* deployment if the requests matches the path and method where this action
|
|
97
|
+
* is routed. Be sure to route your action in `convex/http.js`.
|
|
98
|
+
*
|
|
99
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument.
|
|
100
|
+
* @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
|
|
101
|
+
*/
|
|
102
|
+
export declare const httpAction: HttpActionBuilder;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* A set of services for use within Convex query functions.
|
|
106
|
+
*
|
|
107
|
+
* The query context is passed as the first argument to any Convex query
|
|
108
|
+
* function run on the server.
|
|
109
|
+
*
|
|
110
|
+
* This differs from the {@link MutationCtx} because all of the services are
|
|
111
|
+
* read-only.
|
|
112
|
+
*/
|
|
113
|
+
export type QueryCtx = GenericQueryCtx<DataModel>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A set of services for use within Convex mutation functions.
|
|
117
|
+
*
|
|
118
|
+
* The mutation context is passed as the first argument to any Convex mutation
|
|
119
|
+
* function run on the server.
|
|
120
|
+
*/
|
|
121
|
+
export type MutationCtx = GenericMutationCtx<DataModel>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* A set of services for use within Convex action functions.
|
|
125
|
+
*
|
|
126
|
+
* The action context is passed as the first argument to any Convex action
|
|
127
|
+
* function run on the server.
|
|
128
|
+
*/
|
|
129
|
+
export type ActionCtx = GenericActionCtx<DataModel>;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* An interface to read from the database within Convex query functions.
|
|
133
|
+
*
|
|
134
|
+
* The two entry points are {@link DatabaseReader.get}, which fetches a single
|
|
135
|
+
* document by its {@link Id}, or {@link DatabaseReader.query}, which starts
|
|
136
|
+
* building a query.
|
|
137
|
+
*/
|
|
138
|
+
export type DatabaseReader = GenericDatabaseReader<DataModel>;
|
|
139
|
+
|
|
56
140
|
/**
|
|
57
|
-
*
|
|
141
|
+
* An interface to read from and write to the database within Convex mutation
|
|
142
|
+
* functions.
|
|
58
143
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
144
|
+
* Convex guarantees that all writes within a single mutation are
|
|
145
|
+
* executed atomically, so you never have to worry about partial writes leaving
|
|
146
|
+
* your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
|
|
147
|
+
* for the guarantees Convex provides your functions.
|
|
62
148
|
*/
|
|
63
|
-
export
|
|
64
|
-
//# sourceMappingURL=server.d.ts.map
|
|
149
|
+
export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BetterOmit, Expand } from "convex-helpers";
|
|
2
2
|
import type { FunctionArgs, FunctionReference, PaginationOptions, PaginationResult } from "convex/server";
|
|
3
|
-
import type { MessageDoc } from "../client";
|
|
4
|
-
import type { SyncStreamsReturnValue } from "../client/types";
|
|
5
|
-
import type { StreamArgs } from "../validators";
|
|
3
|
+
import type { MessageDoc } from "../client/index.js";
|
|
4
|
+
import type { SyncStreamsReturnValue } from "../client/types.js";
|
|
5
|
+
import type { StreamArgs } from "../validators.js";
|
|
6
6
|
export type ThreadQuery<Args = unknown, M extends MessageDoc = MessageDoc> = FunctionReference<"query", "public", {
|
|
7
7
|
threadId: string;
|
|
8
8
|
paginationOpts: PaginationOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,WAAW,CACrB,IAAI,GAAG,OAAO,EACd,CAAC,SAAS,UAAU,GAAG,UAAU,IAC/B,iBAAiB,CACnB,OAAO,EACP,QAAQ,EACR;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,CAAC;IAElC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,IAAI,EACR,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,sBAAsB,CAAA;CAAE,CAC3D,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAC3B,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,CAAC,SAAS,UAAU,GAAG,UAAU,IAC/B,iBAAiB,CACnB,OAAO,EACP,QAAQ,EACR;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,CAAC;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,IAAI,EACR,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,sBAAsB,CAAA;CAAE,CAC1D,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,IAC3E,KAAK,SAAS,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,GAC1C,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAAC,CAAC,GACxE,KAAK,CAAC;AAEZ,MAAM,MAAM,oBAAoB,CAC9B,KAAK,SAAS,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,IAC5C,KAAK,SAAS,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSmoothText.d.ts","sourceRoot":"","sources":["../../../src/react/useSmoothText.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,EACE,WAAiB,GAClB,GAAE;IACD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"useSmoothText.d.ts","sourceRoot":"","sources":["../../../src/react/useSmoothText.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,EACE,WAAiB,GAClB,GAAE;IACD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,CAsDpD"}
|
|
@@ -30,6 +30,7 @@ export function useSmoothText(text, { charsPerSec = 256, } = {}) {
|
|
|
30
30
|
(Date.now() - smoothState.current.start);
|
|
31
31
|
// Smooth out the charsPerSec by averaging it with the previous value.
|
|
32
32
|
smoothState.current.charsPerMs = Math.min((2 * latestCharsPerMs + smoothState.current.charsPerMs) / 3, smoothState.current.charsPerMs * 2);
|
|
33
|
+
smoothState.current.tick = Math.max(smoothState.current.tick, Date.now() - 2 * MS_PER_FRAME);
|
|
33
34
|
function update() {
|
|
34
35
|
if (smoothState.current.cursor >= text.length) {
|
|
35
36
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSmoothText.js","sourceRoot":"","sources":["../../../src/react/useSmoothText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,GAAG,GAAG,EAAE,CAAC;AACf,MAAM,YAAY,GAAG,IAAI,GAAG,GAAG,CAAC;AAChC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAY,EACZ,EACE,WAAW,GAAG,GAAG,MAMf,EAAE;IAEN,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,MAAM,CAAC;QACzB,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,WAAW;QACrD,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG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