@vantageos/agent-engine 0.1.0-alpha.7 → 0.3.0-alpha.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 (62) hide show
  1. package/README.md +153 -50
  2. package/dist/component/_generated/api.d.ts +14 -27
  3. package/dist/component/_generated/api.js +0 -25
  4. package/dist/component/_generated/component.d.ts +369 -92
  5. package/dist/component/_generated/component.js +0 -9
  6. package/dist/component/_generated/dataModel.d.ts +0 -38
  7. package/dist/component/_generated/dataModel.js +0 -9
  8. package/dist/component/_generated/server.d.ts +0 -106
  9. package/dist/component/_generated/server.js +0 -69
  10. package/dist/component/convex.config.js +0 -44
  11. package/dist/component/engine/agents.js +0 -7
  12. package/dist/component/engine/awaitEventTimeout.d.ts +1 -1
  13. package/dist/component/engine/awaitEventTimeout.js +18 -26
  14. package/dist/component/engine/connections.d.ts +74 -0
  15. package/dist/component/engine/connections.js +254 -0
  16. package/dist/component/engine/delegation.d.ts +1 -1
  17. package/dist/component/engine/delegation.js +0 -74
  18. package/dist/component/engine/directory.js +0 -18
  19. package/dist/component/engine/durableJob.d.ts +34 -4
  20. package/dist/component/engine/durableJob.js +333 -86
  21. package/dist/component/engine/mandates.js +0 -59
  22. package/dist/component/engine/queue.d.ts +97 -0
  23. package/dist/component/engine/queue.js +201 -0
  24. package/dist/component/engine/resolvers.d.ts +1 -1
  25. package/dist/component/engine/resolvers.js +6 -18
  26. package/dist/component/engine/sandboxCallback.d.ts +1 -1
  27. package/dist/component/engine/sandboxCallback.js +2 -79
  28. package/dist/component/engine/sandboxConfigProvider.d.ts +9 -0
  29. package/dist/component/engine/sandboxConfigProvider.js +32 -0
  30. package/dist/component/engine/sessions.d.ts +28 -10
  31. package/dist/component/engine/sessions.js +153 -165
  32. package/dist/component/engine/streams.d.ts +47 -0
  33. package/dist/component/engine/streams.js +162 -0
  34. package/dist/component/engine/toolApprovals.d.ts +1 -1
  35. package/dist/component/engine/toolApprovals.js +12 -37
  36. package/dist/component/engine/vpConnection.js +0 -40
  37. package/dist/component/engine/wakeup.d.ts +5 -7
  38. package/dist/component/engine/wakeup.js +54 -127
  39. package/dist/component/engine/workflows.d.ts +42 -0
  40. package/dist/component/engine/workflows.js +100 -41
  41. package/dist/component/engine/world.d.ts +249 -0
  42. package/dist/component/engine/world.js +665 -0
  43. package/dist/component/lib/auth.js +0 -26
  44. package/dist/component/lib/connectionSecret.d.ts +5 -0
  45. package/dist/component/lib/connectionSecret.js +32 -0
  46. package/dist/component/schema.d.ts +227 -77
  47. package/dist/component/schema.js +137 -250
  48. package/package.json +17 -3
  49. package/dist/component/engine/habits.d.ts +0 -70
  50. package/dist/component/engine/habits.js +0 -218
  51. package/dist/component/testFixtures/callerSteps.d.ts +0 -20
  52. package/dist/component/testFixtures/callerSteps.js +0 -90
  53. package/dist/component/testFixtures/delegationDemoWorkflow.d.ts +0 -18
  54. package/dist/component/testFixtures/delegationDemoWorkflow.js +0 -75
  55. package/dist/component/testFixtures/sandboxDemoWorkflow.d.ts +0 -19
  56. package/dist/component/testFixtures/sandboxDemoWorkflow.js +0 -69
  57. package/dist/component/testFixtures/vpTool.d.ts +0 -4
  58. package/dist/component/testFixtures/vpTool.js +0 -25
  59. package/dist/component/testFixtures/wakeupDemoWorkflow.d.ts +0 -19
  60. package/dist/component/testFixtures/wakeupDemoWorkflow.js +0 -77
  61. package/dist/component/testFixtures/wakeupWork.d.ts +0 -8
  62. package/dist/component/testFixtures/wakeupWork.js +0 -21
package/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # @vantageos/agent-engine
2
2
 
3
- A reusable [Convex component](https://www.convex.dev/components) that provides
4
- a durable **agent engine**: sessions, delegation, tool approvals, scheduled
5
- "habits", bounded spending "mandates", and long-task survival — all built on
6
- top of [`@convex-dev/workflow`](https://www.npmjs.com/package/@convex-dev/workflow)
7
- and [`@convex-dev/workpool`](https://www.npmjs.com/package/@convex-dev/workpool).
3
+ A reusable [Convex component](https://www.convex.dev/components) that
4
+ provides a durable **agent engine**: sessions, delegation, tool approvals,
5
+ scheduled "habits", bounded spending "mandates", and long-task survival —
6
+ all built on top of
7
+ [`@convex-dev/workflow`](https://www.npmjs.com/package/@convex-dev/workflow)
8
+ and
9
+ [`@convex-dev/workpool`](https://www.npmjs.com/package/@convex-dev/workpool).
8
10
 
9
11
  **An agent is a data aggregate, not compiled code.** Creating an agent means
10
12
  writing a row (plus child rows for skills, tool approvals, connections,
@@ -31,6 +33,16 @@ consuming app.
31
33
  npm install @vantageos/agent-engine
32
34
  ```
33
35
 
36
+ ### What ships in the package
37
+
38
+ The published tarball is `dist/` (compiled JS + `.d.ts`), `README.md`,
39
+ `LICENSE`. `dist/component/testFixtures/**` is deliberately excluded
40
+ (`package.json` `"files"` negation `"!dist/component/testFixtures"`) — it is
41
+ test-only demo workflow code used by this repo's own component-packaging
42
+ tests, never part of the public `exports` (`./convex.config` and
43
+ `./_generated/component.js`), and not a documented consumer API. No file is
44
+ published without a stated reason.
45
+
34
46
  ## Quickstart
35
47
 
36
48
  Register the component in your app's `convex/convex.config.ts`:
@@ -77,61 +89,143 @@ scoped by `orgId` first, deny-by-default.
77
89
  ### API surface (component/, current release)
78
90
 
79
91
  ```
80
- components.agentEngine.engine.agents.create({ orgId, createdBy, name, description?, instructions, model, reasoningEffort?, modelProvider?, maxSubagents?, maxInputTokensPerSession? }) -> Id<"agents">
92
+ components.agentEngine.engine.agents.create({
93
+ orgId, createdBy, name, description?, instructions, model,
94
+ reasoningEffort?, modelProvider?, maxSubagents?,
95
+ maxInputTokensPerSession?,
96
+ }) -> Id<"agents">
81
97
  components.agentEngine.engine.agents.get({ orgId, agentId }) -> agent | null
82
98
 
83
- components.agentEngine.engine.directory.listByOrg({ orgId }) -> { _id, name, status, model, createdAt }[]
84
-
85
- components.agentEngine.engine.resolvers.resolveManifest({ orgId, sessionId }) -> { agentId, name, instructions, model, toolApprovals[] }
86
-
87
- components.agentEngine.engine.sessions.start({ orgId, agentId, createdBy }) -> { sessionId: Id<"sessions">, workflowId: string }
88
- components.agentEngine.engine.sessions.sendTurn({ orgId, sessionId, input }) -> null
89
- components.agentEngine.engine.sessions.appendReasoning({ orgId, sessionId, chunk }) -> null
90
- components.agentEngine.engine.sessions.requestToolCall({ orgId, sessionId, toolName, argsJson }) -> { authorized, approvalPending, denied }
91
- components.agentEngine.engine.sessions.completeToolCall({ orgId, sessionId, toolName, resultJson }) -> null
92
- components.agentEngine.engine.sessions.completeTurn({ orgId, sessionId }) -> null
93
- components.agentEngine.engine.sessions.listEvents({ orgId, sessionId }) -> sessionEvent[]
94
-
95
- components.agentEngine.engine.toolApprovals.respond({ orgId, sessionId, toolName, decision: "approved"|"denied", updatePolicy?: "always"|"once"|"never" }) -> null
96
-
97
- components.agentEngine.engine.wakeup.enqueue({ orgId, agentId, mandateScope, cost, reason, workFunctionHandle, workflowId, awaitedEventName }) -> Id<"wakeableWork"> (action)
98
- components.agentEngine.engine.wakeup.cancel({ orgId, wakeableWorkId }) -> null
99
- components.agentEngine.engine.wakeup.getStatus({ orgId, wakeableWorkId }) -> { status, resultSummary?, ... }
100
-
101
- components.agentEngine.engine.durableJob.start({ orgId, kind, stepFunctionHandle, totalSteps, maxAttemptsPerStep }) -> Id<"durableJobs">
102
- components.agentEngine.engine.durableJob.getStatus({ orgId, jobId }) -> { status, cursor, totalSteps, lastError?, abandonedAtStep? }
99
+ components.agentEngine.engine.directory.listByOrg({ orgId })
100
+ -> { _id, name, status, model, createdAt }[]
101
+
102
+ components.agentEngine.engine.resolvers.resolveManifest({
103
+ orgId, sessionId,
104
+ }) -> { agentId, name, instructions, model, toolApprovals[] }
105
+
106
+ components.agentEngine.engine.sessions.start({
107
+ orgId, agentId, createdBy,
108
+ }) -> { sessionId: string /* the world runId */, workflowId: string }
109
+ // 0.3.0: every `sessionId` below IS that runId (string); an unknown, legacy,
110
+ // cross-org or non-session id is refused as "Session not found".
111
+ components.agentEngine.engine.sessions.sendTurn({
112
+ orgId, sessionId, input,
113
+ }) -> null
114
+ components.agentEngine.engine.sessions.appendReasoning({
115
+ orgId, sessionId, chunk,
116
+ }) -> null
117
+ components.agentEngine.engine.sessions.requestToolCall({
118
+ orgId, sessionId, toolName, argsJson,
119
+ }) -> { authorized, approvalPending, denied }
120
+ components.agentEngine.engine.sessions.completeToolCall({
121
+ orgId, sessionId, toolName, resultJson,
122
+ }) -> null
123
+ components.agentEngine.engine.sessions.completeTurn({
124
+ orgId, sessionId,
125
+ }) -> null
126
+ components.agentEngine.engine.sessions.end({
127
+ orgId, sessionId, outcome: "completed"|"cancelled",
128
+ }) -> null
129
+ components.agentEngine.engine.sessions.listEvents({
130
+ orgId, sessionId,
131
+ }) -> { _id /* journal eventId */, _creationTime /* event createdAt, ms */,
132
+ name, payload?, createdAt }[] (read from the world journal)
133
+
134
+ components.agentEngine.engine.toolApprovals.respond({
135
+ orgId, sessionId, toolName,
136
+ decision: "approved"|"denied",
137
+ updatePolicy?: "always"|"once"|"never",
138
+ }) -> null
139
+
140
+ components.agentEngine.engine.wakeup.enqueue({
141
+ orgId, agentId, mandateScope, cost, reason,
142
+ workFunctionHandle, workflowId, awaitedEventName,
143
+ }) -> string (action; the world-queue messageId)
144
+ components.agentEngine.engine.wakeup.cancel({ orgId, messageId }) -> null
145
+ components.agentEngine.engine.wakeup.getStatus({
146
+ orgId, messageId,
147
+ }) -> { status: "pending" | "delivered" | "failed" }
148
+
149
+ components.agentEngine.engine.durableJob.start({
150
+ orgId, kind, stepFunctionHandle, totalSteps, maxAttemptsPerStep,
151
+ }) -> string (the world runId)
152
+ components.agentEngine.engine.durableJob.getStatus({ orgId, jobId /* runId */ })
153
+ -> { status, cursor, totalSteps, lastError?, abandonedAtStep? }
103
154
  components.agentEngine.engine.durableJob.cancel({ orgId, jobId }) -> null
104
155
 
105
- components.agentEngine.engine.mandates.set({ orgId, agentId, scope, kind, rate, period, capacity? }) -> Id<"mandates">
106
- components.agentEngine.engine.mandates.get({ orgId, agentId, scope }) -> mandate | null
107
- components.agentEngine.engine.mandates.spend({ orgId, agentId, scope, cost, reason }) -> { ok, approvalId? }
108
- components.agentEngine.engine.mandates.listApprovals({ orgId, agentId }) -> approvalRequest[]
109
- components.agentEngine.engine.mandates.resolveApproval({ orgId, approvalId, resolvedBy, status: "approved"|"denied" }) -> null
110
- components.agentEngine.engine.mandates.usageCount({ orgId, agentId, scope }) -> number
111
-
112
- components.agentEngine.engine.habits.create({ orgId, agentId, name, cronExpression, prompt }) -> Id<"habits">
156
+ components.agentEngine.engine.mandates.set({
157
+ orgId, agentId, scope, kind, rate, period, capacity?,
158
+ }) -> Id<"mandates">
159
+ components.agentEngine.engine.mandates.get({
160
+ orgId, agentId, scope,
161
+ }) -> mandate | null
162
+ components.agentEngine.engine.mandates.spend({
163
+ orgId, agentId, scope, cost, reason,
164
+ }) -> { ok, approvalId? }
165
+ components.agentEngine.engine.mandates.listApprovals({
166
+ orgId, agentId,
167
+ }) -> approvalRequest[]
168
+ components.agentEngine.engine.mandates.resolveApproval({
169
+ orgId, approvalId, resolvedBy, status: "approved"|"denied",
170
+ }) -> null
171
+ components.agentEngine.engine.mandates.usageCount({
172
+ orgId, agentId, scope,
173
+ }) -> number
174
+
175
+ components.agentEngine.engine.habits.create({
176
+ orgId, agentId, name, cronExpression, prompt,
177
+ }) -> Id<"habits">
113
178
  components.agentEngine.engine.habits.get({ orgId, habitId }) -> habit | null
114
179
  components.agentEngine.engine.habits.listForAgent({ orgId, agentId }) -> habit[]
115
- components.agentEngine.engine.habits.updateSchedule({ orgId, habitId, cronExpression }) -> null
180
+ components.agentEngine.engine.habits.updateSchedule({
181
+ orgId, habitId, cronExpression,
182
+ }) -> null
116
183
  components.agentEngine.engine.habits.disable({ orgId, habitId }) -> null
117
184
  components.agentEngine.engine.habits.enable({ orgId, habitId }) -> null
118
185
  components.agentEngine.engine.habits.listRuns({ orgId, habitId }) -> habitRun[]
119
186
 
120
- components.agentEngine.engine.sandboxCallback.startRun({ orgId, workflowId, awaitedEventName, timeoutMs }) -> Id<"sandboxRuns">
121
- components.agentEngine.engine.sandboxCallback.attachSandboxId({ orgId, sandboxRunId, sandboxId }) -> null
122
- components.agentEngine.engine.sandboxCallback.getStatus({ orgId, sandboxRunId }) -> { status, resultSummary?, ... }
123
- components.agentEngine.engine.sandboxCallback.processCallback({ orgId, sandboxRunId, deliveryId, status, resultSummary? }) -> { outcome: "woke"|"duplicate" }
124
- components.agentEngine.engine.sandboxCallback.deadLetterMalformed({ orgId?, deliveryId, reason, rawBody }) -> null
125
-
126
- components.agentEngine.engine.delegation.declareSubagent({ orgId, parentAgentId, childAgentId, toolName, description? }) -> Id<"subagents">
127
- components.agentEngine.engine.delegation.listSubagents({ orgId, parentAgentId }) -> subagent[]
128
- components.agentEngine.engine.delegation.delegateToSubagent({ orgId, subagentId, ... }) -> null (action)
129
- components.agentEngine.engine.delegation.invokeAgentClone({ orgId, agentId, ... }) -> null (action; root-only, non-recursive by construction)
130
-
131
- components.agentEngine.engine.vpConnection.get({ orgId, agentId }) -> vpConnection | null
132
- components.agentEngine.engine.vpConnection.getToggles({ orgId, agentId }) -> { memoryEnabled, tasksEnabled, messagesEnabled, notesEnabled }
133
- components.agentEngine.engine.vpConnection.setToggles({ orgId, agentId, memoryEnabled?, tasksEnabled?, messagesEnabled?, notesEnabled? }) -> Id<"vpConnections">
134
- components.agentEngine.engine.vpConnection.invokeVpTool({ orgId, agentId, tool, vpFunctionHandle, argsJson }) -> null (action)
187
+ components.agentEngine.engine.sandboxCallback.startRun({
188
+ orgId, workflowId, awaitedEventName, timeoutMs,
189
+ }) -> Id<"sandboxRuns">
190
+ components.agentEngine.engine.sandboxCallback.attachSandboxId({
191
+ orgId, sandboxRunId, sandboxId,
192
+ }) -> null
193
+ components.agentEngine.engine.sandboxCallback.getStatus({
194
+ orgId, sandboxRunId,
195
+ }) -> { status, resultSummary?, ... }
196
+ components.agentEngine.engine.sandboxCallback.processCallback({
197
+ orgId, sandboxRunId, deliveryId, status, resultSummary?,
198
+ }) -> { outcome: "woke"|"duplicate" }
199
+ components.agentEngine.engine.sandboxCallback.deadLetterMalformed({
200
+ orgId?, deliveryId, reason, rawBody,
201
+ }) -> null
202
+
203
+ components.agentEngine.engine.delegation.declareSubagent({
204
+ orgId, parentAgentId, childAgentId, toolName, description?,
205
+ }) -> Id<"subagents">
206
+ components.agentEngine.engine.delegation.listSubagents({
207
+ orgId, parentAgentId,
208
+ }) -> subagent[]
209
+ components.agentEngine.engine.delegation.delegateToSubagent({
210
+ orgId, subagentId, ...,
211
+ }) -> null (action)
212
+ components.agentEngine.engine.delegation.invokeAgentClone({
213
+ orgId, agentId, ...,
214
+ }) -> null (action; root-only, non-recursive by construction)
215
+
216
+ components.agentEngine.engine.vpConnection.get({
217
+ orgId, agentId,
218
+ }) -> vpConnection | null
219
+ components.agentEngine.engine.vpConnection.getToggles({
220
+ orgId, agentId,
221
+ }) -> { memoryEnabled, tasksEnabled, messagesEnabled, notesEnabled }
222
+ components.agentEngine.engine.vpConnection.setToggles({
223
+ orgId, agentId, memoryEnabled?, tasksEnabled?,
224
+ messagesEnabled?, notesEnabled?,
225
+ }) -> Id<"vpConnections">
226
+ components.agentEngine.engine.vpConnection.invokeVpTool({
227
+ orgId, agentId, tool, vpFunctionHandle, argsJson,
228
+ }) -> null (action)
135
229
  ```
136
230
 
137
231
  ### Concepts
@@ -164,6 +258,15 @@ calling in. Every document lookup by id is checked against the caller's own
164
258
  `orgId` before being returned or mutated; a cross-org read or write is
165
259
  refused the same way a not-found row would be.
166
260
 
261
+ ## Dependency pins
262
+
263
+ `ai` is pinned to v6 (`6.0.35`) in the root package; any other tree that declares `ai` must use the same major (world-convex declares none today).
264
+
265
+ Two sub-packages (`first-orchestrator/`, `scheduling-specialist/`) keep `ai ^7.0.58` because
266
+ eve@0.44.3 peers `ai ^7.0.58` (no eve release peers v6); each runs in its own process with its own
267
+ install, sharing no dependency tree with root or world-convex. Everywhere else the v6 pin stands;
268
+ `scripts/vitestScope.test.ts` enforces it.
269
+
167
270
  ## Requirements
168
271
 
169
272
  - Convex `^1.42`
@@ -1,28 +1,26 @@
1
- /**
2
- * Generated `api` utility.
3
- *
4
- * THIS CODE IS AUTOMATICALLY GENERATED.
5
- *
6
- * To regenerate, run `npx convex dev`.
7
- * @module
8
- */
9
1
  import type * as engine_agents from "../engine/agents.js";
10
2
  import type * as engine_awaitEventTimeout from "../engine/awaitEventTimeout.js";
3
+ import type * as engine_connections from "../engine/connections.js";
11
4
  import type * as engine_delegation from "../engine/delegation.js";
12
5
  import type * as engine_directory from "../engine/directory.js";
13
6
  import type * as engine_durableJob from "../engine/durableJob.js";
14
- import type * as engine_habits from "../engine/habits.js";
15
7
  import type * as engine_mandates from "../engine/mandates.js";
8
+ import type * as engine_queue from "../engine/queue.js";
16
9
  import type * as engine_resolvers from "../engine/resolvers.js";
17
10
  import type * as engine_sandboxCallback from "../engine/sandboxCallback.js";
11
+ import type * as engine_sandboxConfigProvider from "../engine/sandboxConfigProvider.js";
18
12
  import type * as engine_sessions from "../engine/sessions.js";
13
+ import type * as engine_streams from "../engine/streams.js";
19
14
  import type * as engine_toolApprovals from "../engine/toolApprovals.js";
20
15
  import type * as engine_vpConnection from "../engine/vpConnection.js";
21
16
  import type * as engine_wakeup from "../engine/wakeup.js";
22
17
  import type * as engine_workflows from "../engine/workflows.js";
18
+ import type * as engine_world from "../engine/world.js";
23
19
  import type * as lib_auth from "../lib/auth.js";
20
+ import type * as lib_connectionSecret from "../lib/connectionSecret.js";
24
21
  import type * as testFixtures_callerSteps from "../testFixtures/callerSteps.js";
25
22
  import type * as testFixtures_delegationDemoWorkflow from "../testFixtures/delegationDemoWorkflow.js";
23
+ import type * as testFixtures_legacyBind from "../testFixtures/legacyBind.js";
26
24
  import type * as testFixtures_sandboxDemoWorkflow from "../testFixtures/sandboxDemoWorkflow.js";
27
25
  import type * as testFixtures_vpTool from "../testFixtures/vpTool.js";
28
26
  import type * as testFixtures_wakeupDemoWorkflow from "../testFixtures/wakeupDemoWorkflow.js";
@@ -31,43 +29,33 @@ import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server
31
29
  declare const fullApi: ApiFromModules<{
32
30
  "engine/agents": typeof engine_agents;
33
31
  "engine/awaitEventTimeout": typeof engine_awaitEventTimeout;
32
+ "engine/connections": typeof engine_connections;
34
33
  "engine/delegation": typeof engine_delegation;
35
34
  "engine/directory": typeof engine_directory;
36
35
  "engine/durableJob": typeof engine_durableJob;
37
- "engine/habits": typeof engine_habits;
38
36
  "engine/mandates": typeof engine_mandates;
37
+ "engine/queue": typeof engine_queue;
39
38
  "engine/resolvers": typeof engine_resolvers;
40
39
  "engine/sandboxCallback": typeof engine_sandboxCallback;
40
+ "engine/sandboxConfigProvider": typeof engine_sandboxConfigProvider;
41
41
  "engine/sessions": typeof engine_sessions;
42
+ "engine/streams": typeof engine_streams;
42
43
  "engine/toolApprovals": typeof engine_toolApprovals;
43
44
  "engine/vpConnection": typeof engine_vpConnection;
44
45
  "engine/wakeup": typeof engine_wakeup;
45
46
  "engine/workflows": typeof engine_workflows;
47
+ "engine/world": typeof engine_world;
46
48
  "lib/auth": typeof lib_auth;
49
+ "lib/connectionSecret": typeof lib_connectionSecret;
47
50
  "testFixtures/callerSteps": typeof testFixtures_callerSteps;
48
51
  "testFixtures/delegationDemoWorkflow": typeof testFixtures_delegationDemoWorkflow;
52
+ "testFixtures/legacyBind": typeof testFixtures_legacyBind;
49
53
  "testFixtures/sandboxDemoWorkflow": typeof testFixtures_sandboxDemoWorkflow;
50
54
  "testFixtures/vpTool": typeof testFixtures_vpTool;
51
55
  "testFixtures/wakeupDemoWorkflow": typeof testFixtures_wakeupDemoWorkflow;
52
56
  "testFixtures/wakeupWork": typeof testFixtures_wakeupWork;
53
57
  }>;
54
- /**
55
- * A utility for referencing Convex functions in your app's public API.
56
- *
57
- * Usage:
58
- * ```js
59
- * const myFunctionReference = api.myModule.myFunction;
60
- * ```
61
- */
62
58
  export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
63
- /**
64
- * A utility for referencing Convex functions in your app's internal API.
65
- *
66
- * Usage:
67
- * ```js
68
- * const myFunctionReference = internal.myModule.myFunction;
69
- * ```
70
- */
71
59
  export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
72
60
  export declare const components: {
73
61
  workflow: import("@convex-dev/workflow/_generated/component.js").ComponentApi<"workflow">;
@@ -76,6 +64,5 @@ export declare const components: {
76
64
  agent: import("@convex-dev/agent/_generated/component.js").ComponentApi<"agent">;
77
65
  rateLimiter: import("@convex-dev/rate-limiter/_generated/component.js").ComponentApi<"rateLimiter">;
78
66
  shardedCounter: import("@convex-dev/sharded-counter/_generated/component.js").ComponentApi<"shardedCounter">;
79
- crons: import("@convex-dev/crons/_generated/component.js").ComponentApi<"crons">;
80
67
  };
81
68
  export {};
@@ -1,30 +1,5 @@
1
- /* eslint-disable */
2
- /**
3
- * Generated `api` utility.
4
- *
5
- * THIS CODE IS AUTOMATICALLY GENERATED.
6
- *
7
- * To regenerate, run `npx convex dev`.
8
- * @module
9
- */
10
1
  import { anyApi, componentsGeneric } from "convex/server";
11
2
  const fullApi = anyApi;
12
- /**
13
- * A utility for referencing Convex functions in your app's public API.
14
- *
15
- * Usage:
16
- * ```js
17
- * const myFunctionReference = api.myModule.myFunction;
18
- * ```
19
- */
20
3
  export const api = anyApi;
21
- /**
22
- * A utility for referencing Convex functions in your app's internal API.
23
- *
24
- * Usage:
25
- * ```js
26
- * const myFunctionReference = internal.myModule.myFunction;
27
- * ```
28
- */
29
4
  export const internal = anyApi;
30
5
  export const components = componentsGeneric();