@vantageos/agent-engine 0.1.0-alpha.5 → 0.1.0-alpha.6

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 (39) hide show
  1. package/README.md +229 -40
  2. package/dist/component/_generated/api.d.ts +31 -0
  3. package/dist/component/_generated/component.d.ts +346 -2
  4. package/dist/component/convex.config.js +19 -0
  5. package/dist/component/engine/agents.d.ts +10 -0
  6. package/dist/component/engine/agents.js +21 -0
  7. package/dist/component/engine/awaitEventTimeout.d.ts +13 -0
  8. package/dist/component/engine/awaitEventTimeout.js +82 -0
  9. package/dist/component/engine/delegation.d.ts +75 -0
  10. package/dist/component/engine/delegation.js +329 -0
  11. package/dist/component/engine/directory.d.ts +9 -0
  12. package/dist/component/engine/directory.js +45 -0
  13. package/dist/component/engine/habits.d.ts +70 -0
  14. package/dist/component/engine/habits.js +219 -0
  15. package/dist/component/engine/mandates.d.ts +74 -0
  16. package/dist/component/engine/mandates.js +272 -0
  17. package/dist/component/engine/sandboxCallback.d.ts +36 -0
  18. package/dist/component/engine/sandboxCallback.js +262 -0
  19. package/dist/component/engine/sessions.d.ts +6 -2
  20. package/dist/component/engine/sessions.js +42 -5
  21. package/dist/component/engine/vpConnection.d.ts +69 -0
  22. package/dist/component/engine/vpConnection.js +221 -0
  23. package/dist/component/engine/wakeup.d.ts +33 -0
  24. package/dist/component/engine/wakeup.js +230 -0
  25. package/dist/component/engine/workflows.d.ts +11 -0
  26. package/dist/component/engine/workflows.js +87 -0
  27. package/dist/component/schema.d.ts +365 -4
  28. package/dist/component/schema.js +353 -1
  29. package/dist/component/testFixtures/delegationDemoWorkflow.d.ts +18 -0
  30. package/dist/component/testFixtures/delegationDemoWorkflow.js +76 -0
  31. package/dist/component/testFixtures/sandboxDemoWorkflow.d.ts +19 -0
  32. package/dist/component/testFixtures/sandboxDemoWorkflow.js +69 -0
  33. package/dist/component/testFixtures/vpTool.d.ts +4 -0
  34. package/dist/component/testFixtures/vpTool.js +25 -0
  35. package/dist/component/testFixtures/wakeupDemoWorkflow.d.ts +19 -0
  36. package/dist/component/testFixtures/wakeupDemoWorkflow.js +77 -0
  37. package/dist/component/testFixtures/wakeupWork.d.ts +8 -0
  38. package/dist/component/testFixtures/wakeupWork.js +21 -0
  39. package/package.json +2 -1
@@ -46,6 +46,11 @@ declare const _default: import("convex/server").SchemaDefinition<{
46
46
  by_org_job: ["orgId", "jobId", "_creationTime"];
47
47
  }, {}, {}>;
48
48
  agents: import("convex/server").TableDefinition<import("convex/values").VObject<{
49
+ description?: string | undefined;
50
+ reasoningEffort?: "none" | "low" | "medium" | "high" | undefined;
51
+ modelProvider?: "gateway" | "openrouter" | undefined;
52
+ maxSubagents?: number | undefined;
53
+ maxInputTokensPerSession?: number | false | undefined;
49
54
  name: string;
50
55
  orgId: string;
51
56
  status: "draft" | "live" | "archived";
@@ -57,13 +62,18 @@ declare const _default: import("convex/server").SchemaDefinition<{
57
62
  }, {
58
63
  orgId: import("convex/values").VString<string, "required">;
59
64
  name: import("convex/values").VString<string, "required">;
65
+ description: import("convex/values").VString<string | undefined, "optional">;
60
66
  instructions: import("convex/values").VString<string, "required">;
61
67
  model: import("convex/values").VString<string, "required">;
68
+ reasoningEffort: import("convex/values").VUnion<"none" | "low" | "medium" | "high" | undefined, [import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"low", "required">, import("convex/values").VLiteral<"medium", "required">, import("convex/values").VLiteral<"high", "required">], "optional", never>;
69
+ modelProvider: import("convex/values").VUnion<"gateway" | "openrouter" | undefined, [import("convex/values").VLiteral<"gateway", "required">, import("convex/values").VLiteral<"openrouter", "required">], "optional", never>;
70
+ maxSubagents: import("convex/values").VFloat64<number | undefined, "optional">;
71
+ maxInputTokensPerSession: import("convex/values").VUnion<number | false | undefined, [import("convex/values").VFloat64<number, "required">, import("convex/values").VLiteral<false, "required">], "optional", never>;
62
72
  status: import("convex/values").VUnion<"draft" | "live" | "archived", [import("convex/values").VLiteral<"draft", "required">, import("convex/values").VLiteral<"live", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
63
73
  createdBy: import("convex/values").VString<string, "required">;
64
74
  createdAt: import("convex/values").VFloat64<number, "required">;
65
75
  updatedAt: import("convex/values").VFloat64<number, "required">;
66
- }, "required", "name" | "orgId" | "status" | "createdAt" | "updatedAt" | "instructions" | "model" | "createdBy">, {
76
+ }, "required", "description" | "name" | "orgId" | "status" | "createdAt" | "updatedAt" | "instructions" | "model" | "reasoningEffort" | "modelProvider" | "maxSubagents" | "maxInputTokensPerSession" | "createdBy">, {
67
77
  by_org: ["orgId", "_creationTime"];
68
78
  by_org_status: ["orgId", "status", "_creationTime"];
69
79
  }, {}, {}>;
@@ -87,6 +97,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
87
97
  by_org_agent_tool: ["orgId", "agentId", "toolName", "_creationTime"];
88
98
  }, {}, {}>;
89
99
  sessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
100
+ workflowId?: string | undefined;
101
+ workflowVersion?: string | undefined;
90
102
  orgId: string;
91
103
  status: "running" | "completed" | "cancelled";
92
104
  createdAt: number;
@@ -98,27 +110,376 @@ declare const _default: import("convex/server").SchemaDefinition<{
98
110
  agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
99
111
  status: import("convex/values").VUnion<"running" | "completed" | "cancelled", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
100
112
  createdBy: import("convex/values").VString<string, "required">;
113
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
114
+ workflowVersion: import("convex/values").VString<string | undefined, "optional">;
101
115
  createdAt: import("convex/values").VFloat64<number, "required">;
102
116
  updatedAt: import("convex/values").VFloat64<number, "required">;
103
- }, "required", "orgId" | "status" | "createdAt" | "updatedAt" | "createdBy" | "agentId">, {
117
+ }, "required", "orgId" | "status" | "workflowId" | "workflowVersion" | "createdAt" | "updatedAt" | "createdBy" | "agentId">, {
104
118
  by_org: ["orgId", "_creationTime"];
105
119
  by_org_agent: ["orgId", "agentId", "_creationTime"];
106
120
  }, {}, {}>;
107
121
  sessionEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
108
122
  payload?: string | undefined;
109
- name: "session.started" | "turn.started" | "turn.reasoning" | "turn.toolCall.requested" | "turn.toolCall.completed" | "turn.toolCall.denied" | "turn.completed" | "tool.approval.requested" | "tool.approval.resolved";
123
+ name: "session.started" | "turn.started" | "turn.reasoning" | "turn.toolCall.requested" | "turn.toolCall.completed" | "turn.toolCall.denied" | "turn.completed" | "tool.approval.requested" | "tool.approval.resolved" | "sandbox.timeout";
110
124
  orgId: string;
111
125
  createdAt: number;
112
126
  sessionId: import("convex/values").GenericId<"sessions">;
113
127
  }, {
114
128
  orgId: import("convex/values").VString<string, "required">;
115
129
  sessionId: import("convex/values").VId<import("convex/values").GenericId<"sessions">, "required">;
116
- name: import("convex/values").VUnion<"session.started" | "turn.started" | "turn.reasoning" | "turn.toolCall.requested" | "turn.toolCall.completed" | "turn.toolCall.denied" | "turn.completed" | "tool.approval.requested" | "tool.approval.resolved", [import("convex/values").VLiteral<"session.started", "required">, import("convex/values").VLiteral<"turn.started", "required">, import("convex/values").VLiteral<"turn.reasoning", "required">, import("convex/values").VLiteral<"turn.toolCall.requested", "required">, import("convex/values").VLiteral<"turn.toolCall.completed", "required">, import("convex/values").VLiteral<"turn.toolCall.denied", "required">, import("convex/values").VLiteral<"turn.completed", "required">, import("convex/values").VLiteral<"tool.approval.requested", "required">, import("convex/values").VLiteral<"tool.approval.resolved", "required">], "required", never>;
130
+ name: import("convex/values").VUnion<"session.started" | "turn.started" | "turn.reasoning" | "turn.toolCall.requested" | "turn.toolCall.completed" | "turn.toolCall.denied" | "turn.completed" | "tool.approval.requested" | "tool.approval.resolved" | "sandbox.timeout", [import("convex/values").VLiteral<"session.started", "required">, import("convex/values").VLiteral<"turn.started", "required">, import("convex/values").VLiteral<"turn.reasoning", "required">, import("convex/values").VLiteral<"turn.toolCall.requested", "required">, import("convex/values").VLiteral<"turn.toolCall.completed", "required">, import("convex/values").VLiteral<"turn.toolCall.denied", "required">, import("convex/values").VLiteral<"turn.completed", "required">, import("convex/values").VLiteral<"tool.approval.requested", "required">, import("convex/values").VLiteral<"tool.approval.resolved", "required">, import("convex/values").VLiteral<"sandbox.timeout", "required">], "required", never>;
117
131
  payload: import("convex/values").VString<string | undefined, "optional">;
118
132
  createdAt: import("convex/values").VFloat64<number, "required">;
119
133
  }, "required", "name" | "orgId" | "createdAt" | "sessionId" | "payload">, {
120
134
  by_org: ["orgId", "_creationTime"];
121
135
  by_org_session: ["orgId", "sessionId", "_creationTime"];
122
136
  }, {}, {}>;
137
+ wakeableWork: import("convex/server").TableDefinition<import("convex/values").VObject<{
138
+ resultSummary?: string | undefined;
139
+ orgId: string;
140
+ status: "completed" | "cancelled" | "pending" | "failed";
141
+ workflowId: string;
142
+ createdAt: number;
143
+ updatedAt: number;
144
+ awaitedEventName: string;
145
+ workId: string;
146
+ }, {
147
+ orgId: import("convex/values").VString<string, "required">;
148
+ workflowId: import("convex/values").VString<string, "required">;
149
+ awaitedEventName: import("convex/values").VString<string, "required">;
150
+ workId: import("convex/values").VString<string, "required">;
151
+ status: import("convex/values").VUnion<"completed" | "cancelled" | "pending" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
152
+ resultSummary: import("convex/values").VString<string | undefined, "optional">;
153
+ createdAt: import("convex/values").VFloat64<number, "required">;
154
+ updatedAt: import("convex/values").VFloat64<number, "required">;
155
+ }, "required", "orgId" | "status" | "workflowId" | "createdAt" | "updatedAt" | "awaitedEventName" | "workId" | "resultSummary">, {
156
+ by_org: ["orgId", "_creationTime"];
157
+ by_org_workflow: ["orgId", "workflowId", "_creationTime"];
158
+ }, {}, {}>;
159
+ awaitEventTimeouts: import("convex/server").TableDefinition<import("convex/values").VObject<{
160
+ scheduledFunctionId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
161
+ firedAt?: number | undefined;
162
+ cancelledAt?: number | undefined;
163
+ orgId: string;
164
+ sessionId: import("convex/values").GenericId<"sessions">;
165
+ awaitedEventName: string;
166
+ deadlineAt: number;
167
+ }, {
168
+ orgId: import("convex/values").VString<string, "required">;
169
+ sessionId: import("convex/values").VId<import("convex/values").GenericId<"sessions">, "required">;
170
+ awaitedEventName: import("convex/values").VString<string, "required">;
171
+ deadlineAt: import("convex/values").VFloat64<number, "required">;
172
+ scheduledFunctionId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
173
+ firedAt: import("convex/values").VFloat64<number | undefined, "optional">;
174
+ cancelledAt: import("convex/values").VFloat64<number | undefined, "optional">;
175
+ }, "required", "orgId" | "sessionId" | "awaitedEventName" | "deadlineAt" | "scheduledFunctionId" | "firedAt" | "cancelledAt">, {
176
+ by_org: ["orgId", "_creationTime"];
177
+ by_org_session: ["orgId", "sessionId", "_creationTime"];
178
+ }, {}, {}>;
179
+ wakeupDemoResults: import("convex/server").TableDefinition<import("convex/values").VObject<{
180
+ wokenAt?: number | undefined;
181
+ observedStatus?: "completed" | "cancelled" | "failed" | undefined;
182
+ observedResultSummary?: string | undefined;
183
+ orgId: string;
184
+ enqueuedAt: number;
185
+ }, {
186
+ orgId: import("convex/values").VString<string, "required">;
187
+ enqueuedAt: import("convex/values").VFloat64<number, "required">;
188
+ wokenAt: import("convex/values").VFloat64<number | undefined, "optional">;
189
+ observedStatus: import("convex/values").VUnion<"completed" | "cancelled" | "failed" | undefined, [import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "optional", never>;
190
+ observedResultSummary: import("convex/values").VString<string | undefined, "optional">;
191
+ }, "required", "orgId" | "enqueuedAt" | "wokenAt" | "observedStatus" | "observedResultSummary">, {
192
+ by_org: ["orgId", "_creationTime"];
193
+ }, {}, {}>;
194
+ mandates: import("convex/server").TableDefinition<import("convex/values").VObject<{
195
+ capacity?: number | undefined;
196
+ orgId: string;
197
+ createdAt: number;
198
+ updatedAt: number;
199
+ kind: "token bucket" | "fixed window";
200
+ agentId: import("convex/values").GenericId<"agents">;
201
+ scope: string;
202
+ rate: number;
203
+ period: number;
204
+ }, {
205
+ orgId: import("convex/values").VString<string, "required">;
206
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
207
+ scope: import("convex/values").VString<string, "required">;
208
+ kind: import("convex/values").VUnion<"token bucket" | "fixed window", [import("convex/values").VLiteral<"token bucket", "required">, import("convex/values").VLiteral<"fixed window", "required">], "required", never>;
209
+ rate: import("convex/values").VFloat64<number, "required">;
210
+ period: import("convex/values").VFloat64<number, "required">;
211
+ capacity: import("convex/values").VFloat64<number | undefined, "optional">;
212
+ createdAt: import("convex/values").VFloat64<number, "required">;
213
+ updatedAt: import("convex/values").VFloat64<number, "required">;
214
+ }, "required", "orgId" | "createdAt" | "updatedAt" | "kind" | "agentId" | "scope" | "rate" | "period" | "capacity">, {
215
+ by_org: ["orgId", "_creationTime"];
216
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
217
+ by_org_agent_scope: ["orgId", "agentId", "scope", "_creationTime"];
218
+ }, {}, {}>;
219
+ approvalRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
220
+ resolvedAt?: number | undefined;
221
+ resolvedBy?: string | undefined;
222
+ orgId: string;
223
+ status: "pending" | "approved" | "denied";
224
+ createdAt: number;
225
+ agentId: import("convex/values").GenericId<"agents">;
226
+ scope: string;
227
+ requestedCost: number;
228
+ reason: string;
229
+ }, {
230
+ orgId: import("convex/values").VString<string, "required">;
231
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
232
+ scope: import("convex/values").VString<string, "required">;
233
+ requestedCost: import("convex/values").VFloat64<number, "required">;
234
+ reason: import("convex/values").VString<string, "required">;
235
+ status: import("convex/values").VUnion<"pending" | "approved" | "denied", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"approved", "required">, import("convex/values").VLiteral<"denied", "required">], "required", never>;
236
+ createdAt: import("convex/values").VFloat64<number, "required">;
237
+ resolvedAt: import("convex/values").VFloat64<number | undefined, "optional">;
238
+ resolvedBy: import("convex/values").VString<string | undefined, "optional">;
239
+ }, "required", "orgId" | "status" | "createdAt" | "agentId" | "scope" | "requestedCost" | "reason" | "resolvedAt" | "resolvedBy">, {
240
+ by_org: ["orgId", "_creationTime"];
241
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
242
+ by_org_status: ["orgId", "status", "_creationTime"];
243
+ }, {}, {}>;
244
+ habits: import("convex/server").TableDefinition<import("convex/values").VObject<{
245
+ cronJobId?: string | undefined;
246
+ lastRunAt?: number | undefined;
247
+ name: string;
248
+ orgId: string;
249
+ createdAt: number;
250
+ updatedAt: number;
251
+ agentId: import("convex/values").GenericId<"agents">;
252
+ cronExpression: string;
253
+ prompt: string;
254
+ enabled: boolean;
255
+ }, {
256
+ orgId: import("convex/values").VString<string, "required">;
257
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
258
+ name: import("convex/values").VString<string, "required">;
259
+ cronExpression: import("convex/values").VString<string, "required">;
260
+ prompt: import("convex/values").VString<string, "required">;
261
+ enabled: import("convex/values").VBoolean<boolean, "required">;
262
+ cronJobId: import("convex/values").VString<string | undefined, "optional">;
263
+ lastRunAt: import("convex/values").VFloat64<number | undefined, "optional">;
264
+ createdAt: import("convex/values").VFloat64<number, "required">;
265
+ updatedAt: import("convex/values").VFloat64<number, "required">;
266
+ }, "required", "name" | "orgId" | "createdAt" | "updatedAt" | "agentId" | "cronExpression" | "prompt" | "enabled" | "cronJobId" | "lastRunAt">, {
267
+ by_org: ["orgId", "_creationTime"];
268
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
269
+ }, {}, {}>;
270
+ habitRuns: import("convex/server").TableDefinition<import("convex/values").VObject<{
271
+ orgId: string;
272
+ agentId: import("convex/values").GenericId<"agents">;
273
+ habitId: import("convex/values").GenericId<"habits">;
274
+ ranAt: number;
275
+ }, {
276
+ orgId: import("convex/values").VString<string, "required">;
277
+ habitId: import("convex/values").VId<import("convex/values").GenericId<"habits">, "required">;
278
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
279
+ ranAt: import("convex/values").VFloat64<number, "required">;
280
+ }, "required", "orgId" | "agentId" | "habitId" | "ranAt">, {
281
+ by_org: ["orgId", "_creationTime"];
282
+ by_org_habit: ["orgId", "habitId", "_creationTime"];
283
+ }, {}, {}>;
284
+ sandboxConfig: import("convex/server").TableDefinition<import("convex/values").VObject<{
285
+ image?: string | undefined;
286
+ orgId: string;
287
+ createdAt: number;
288
+ updatedAt: number;
289
+ agentId: import("convex/values").GenericId<"agents">;
290
+ provider: "vercel-sandbox";
291
+ timeoutSeconds: number;
292
+ egressPolicy: "allow-all" | "deny-all-allowlist";
293
+ allowlistDomains: string[];
294
+ }, {
295
+ orgId: import("convex/values").VString<string, "required">;
296
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
297
+ provider: import("convex/values").VLiteral<"vercel-sandbox", "required">;
298
+ image: import("convex/values").VString<string | undefined, "optional">;
299
+ timeoutSeconds: import("convex/values").VFloat64<number, "required">;
300
+ egressPolicy: import("convex/values").VUnion<"allow-all" | "deny-all-allowlist", [import("convex/values").VLiteral<"allow-all", "required">, import("convex/values").VLiteral<"deny-all-allowlist", "required">], "required", never>;
301
+ allowlistDomains: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
302
+ createdAt: import("convex/values").VFloat64<number, "required">;
303
+ updatedAt: import("convex/values").VFloat64<number, "required">;
304
+ }, "required", "orgId" | "createdAt" | "updatedAt" | "agentId" | "provider" | "image" | "timeoutSeconds" | "egressPolicy" | "allowlistDomains">, {
305
+ by_org: ["orgId", "_creationTime"];
306
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
307
+ }, {}, {}>;
308
+ sandboxRuns: import("convex/server").TableDefinition<import("convex/values").VObject<{
309
+ resultSummary?: string | undefined;
310
+ orgId: string;
311
+ status: "completed" | "pending" | "failed" | "timedOut";
312
+ workflowId: string;
313
+ createdAt: number;
314
+ updatedAt: number;
315
+ awaitedEventName: string;
316
+ sandboxId: string;
317
+ }, {
318
+ orgId: import("convex/values").VString<string, "required">;
319
+ workflowId: import("convex/values").VString<string, "required">;
320
+ awaitedEventName: import("convex/values").VString<string, "required">;
321
+ sandboxId: import("convex/values").VString<string, "required">;
322
+ status: import("convex/values").VUnion<"completed" | "pending" | "failed" | "timedOut", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"timedOut", "required">], "required", never>;
323
+ resultSummary: import("convex/values").VString<string | undefined, "optional">;
324
+ createdAt: import("convex/values").VFloat64<number, "required">;
325
+ updatedAt: import("convex/values").VFloat64<number, "required">;
326
+ }, "required", "orgId" | "status" | "workflowId" | "createdAt" | "updatedAt" | "awaitedEventName" | "resultSummary" | "sandboxId">, {
327
+ by_org: ["orgId", "_creationTime"];
328
+ by_org_workflow: ["orgId", "workflowId", "_creationTime"];
329
+ by_org_sandbox: ["orgId", "sandboxId", "_creationTime"];
330
+ }, {}, {}>;
331
+ sandboxCallbackDeliveries: import("convex/server").TableDefinition<import("convex/values").VObject<{
332
+ orgId: string;
333
+ sandboxRunId: import("convex/values").GenericId<"sandboxRuns">;
334
+ deliveryId: string;
335
+ outcome: "woke" | "duplicate";
336
+ receivedAt: number;
337
+ }, {
338
+ orgId: import("convex/values").VString<string, "required">;
339
+ sandboxRunId: import("convex/values").VId<import("convex/values").GenericId<"sandboxRuns">, "required">;
340
+ deliveryId: import("convex/values").VString<string, "required">;
341
+ outcome: import("convex/values").VUnion<"woke" | "duplicate", [import("convex/values").VLiteral<"woke", "required">, import("convex/values").VLiteral<"duplicate", "required">], "required", never>;
342
+ receivedAt: import("convex/values").VFloat64<number, "required">;
343
+ }, "required", "orgId" | "sandboxRunId" | "deliveryId" | "outcome" | "receivedAt">, {
344
+ by_org: ["orgId", "_creationTime"];
345
+ by_org_delivery: ["orgId", "deliveryId", "_creationTime"];
346
+ by_org_run: ["orgId", "sandboxRunId", "_creationTime"];
347
+ }, {}, {}>;
348
+ sandboxCallbackDeadLetters: import("convex/server").TableDefinition<import("convex/values").VObject<{
349
+ orgId?: string | undefined;
350
+ createdAt: number;
351
+ reason: string;
352
+ deliveryId: string;
353
+ rawBody: string;
354
+ }, {
355
+ orgId: import("convex/values").VString<string | undefined, "optional">;
356
+ deliveryId: import("convex/values").VString<string, "required">;
357
+ reason: import("convex/values").VString<string, "required">;
358
+ rawBody: import("convex/values").VString<string, "required">;
359
+ createdAt: import("convex/values").VFloat64<number, "required">;
360
+ }, "required", "orgId" | "createdAt" | "reason" | "deliveryId" | "rawBody">, {
361
+ by_org: ["orgId", "_creationTime"];
362
+ }, {}, {}>;
363
+ subagents: import("convex/server").TableDefinition<import("convex/values").VObject<{
364
+ description?: string | undefined;
365
+ orgId: string;
366
+ createdAt: number;
367
+ toolName: string;
368
+ enabled: boolean;
369
+ parentAgentId: import("convex/values").GenericId<"agents">;
370
+ childAgentId: import("convex/values").GenericId<"agents">;
371
+ }, {
372
+ orgId: import("convex/values").VString<string, "required">;
373
+ parentAgentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
374
+ childAgentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
375
+ toolName: import("convex/values").VString<string, "required">;
376
+ description: import("convex/values").VString<string | undefined, "optional">;
377
+ enabled: import("convex/values").VBoolean<boolean, "required">;
378
+ createdAt: import("convex/values").VFloat64<number, "required">;
379
+ }, "required", "description" | "orgId" | "createdAt" | "toolName" | "enabled" | "parentAgentId" | "childAgentId">, {
380
+ by_org: ["orgId", "_creationTime"];
381
+ by_org_parent: ["orgId", "parentAgentId", "_creationTime"];
382
+ by_org_child: ["orgId", "childAgentId", "_creationTime"];
383
+ by_org_parent_tool: ["orgId", "parentAgentId", "toolName", "_creationTime"];
384
+ }, {}, {}>;
385
+ delegationRuns: import("convex/server").TableDefinition<import("convex/values").VObject<{
386
+ resultSummary?: string | undefined;
387
+ orgId: string;
388
+ status: "completed" | "cancelled" | "pending" | "failed";
389
+ workflowId: string;
390
+ createdAt: number;
391
+ updatedAt: number;
392
+ toolName: string;
393
+ awaitedEventName: string;
394
+ parentAgentId: import("convex/values").GenericId<"agents">;
395
+ childAgentId: import("convex/values").GenericId<"agents">;
396
+ }, {
397
+ orgId: import("convex/values").VString<string, "required">;
398
+ parentAgentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
399
+ childAgentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
400
+ toolName: import("convex/values").VString<string, "required">;
401
+ workflowId: import("convex/values").VString<string, "required">;
402
+ awaitedEventName: import("convex/values").VString<string, "required">;
403
+ status: import("convex/values").VUnion<"completed" | "cancelled" | "pending" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
404
+ resultSummary: import("convex/values").VString<string | undefined, "optional">;
405
+ createdAt: import("convex/values").VFloat64<number, "required">;
406
+ updatedAt: import("convex/values").VFloat64<number, "required">;
407
+ }, "required", "orgId" | "status" | "workflowId" | "createdAt" | "updatedAt" | "toolName" | "awaitedEventName" | "resultSummary" | "parentAgentId" | "childAgentId">, {
408
+ by_org: ["orgId", "_creationTime"];
409
+ by_org_parent: ["orgId", "parentAgentId", "_creationTime"];
410
+ by_org_workflow: ["orgId", "workflowId", "_creationTime"];
411
+ by_org_awaitedEvent: ["orgId", "awaitedEventName", "_creationTime"];
412
+ }, {}, {}>;
413
+ agentCloneRuns: import("convex/server").TableDefinition<import("convex/values").VObject<{
414
+ resultSummary?: string | undefined;
415
+ orgId: string;
416
+ status: "completed" | "cancelled" | "pending" | "failed";
417
+ workflowId: string;
418
+ createdAt: number;
419
+ updatedAt: number;
420
+ agentId: import("convex/values").GenericId<"agents">;
421
+ awaitedEventName: string;
422
+ }, {
423
+ orgId: import("convex/values").VString<string, "required">;
424
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
425
+ workflowId: import("convex/values").VString<string, "required">;
426
+ awaitedEventName: import("convex/values").VString<string, "required">;
427
+ status: import("convex/values").VUnion<"completed" | "cancelled" | "pending" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
428
+ resultSummary: import("convex/values").VString<string | undefined, "optional">;
429
+ createdAt: import("convex/values").VFloat64<number, "required">;
430
+ updatedAt: import("convex/values").VFloat64<number, "required">;
431
+ }, "required", "orgId" | "status" | "workflowId" | "createdAt" | "updatedAt" | "agentId" | "awaitedEventName" | "resultSummary">, {
432
+ by_org: ["orgId", "_creationTime"];
433
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
434
+ }, {}, {}>;
435
+ vpConnections: import("convex/server").TableDefinition<import("convex/values").VObject<{
436
+ orgId: string;
437
+ createdAt: number;
438
+ updatedAt: number;
439
+ agentId: import("convex/values").GenericId<"agents">;
440
+ memoryEnabled: boolean;
441
+ tasksEnabled: boolean;
442
+ messagesEnabled: boolean;
443
+ notesEnabled: boolean;
444
+ }, {
445
+ orgId: import("convex/values").VString<string, "required">;
446
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
447
+ memoryEnabled: import("convex/values").VBoolean<boolean, "required">;
448
+ tasksEnabled: import("convex/values").VBoolean<boolean, "required">;
449
+ messagesEnabled: import("convex/values").VBoolean<boolean, "required">;
450
+ notesEnabled: import("convex/values").VBoolean<boolean, "required">;
451
+ createdAt: import("convex/values").VFloat64<number, "required">;
452
+ updatedAt: import("convex/values").VFloat64<number, "required">;
453
+ }, "required", "orgId" | "createdAt" | "updatedAt" | "agentId" | "memoryEnabled" | "tasksEnabled" | "messagesEnabled" | "notesEnabled">, {
454
+ by_org: ["orgId", "_creationTime"];
455
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
456
+ }, {}, {}>;
457
+ vpToolInvocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
458
+ orgId: string;
459
+ createdAt: number;
460
+ agentId: import("convex/values").GenericId<"agents">;
461
+ tool: "memory" | "tasks" | "messages" | "notes";
462
+ }, {
463
+ orgId: import("convex/values").VString<string, "required">;
464
+ agentId: import("convex/values").VId<import("convex/values").GenericId<"agents">, "required">;
465
+ tool: import("convex/values").VUnion<"memory" | "tasks" | "messages" | "notes", [import("convex/values").VLiteral<"memory", "required">, import("convex/values").VLiteral<"tasks", "required">, import("convex/values").VLiteral<"messages", "required">, import("convex/values").VLiteral<"notes", "required">], "required", never>;
466
+ createdAt: import("convex/values").VFloat64<number, "required">;
467
+ }, "required", "orgId" | "createdAt" | "agentId" | "tool">, {
468
+ by_org: ["orgId", "_creationTime"];
469
+ by_org_agent: ["orgId", "agentId", "_creationTime"];
470
+ }, {}, {}>;
471
+ vpTenantFixture: import("convex/server").TableDefinition<import("convex/values").VObject<{
472
+ orgId: string;
473
+ createdAt: number;
474
+ tool: "memory" | "tasks" | "messages" | "notes";
475
+ argsJson: string;
476
+ }, {
477
+ orgId: import("convex/values").VString<string, "required">;
478
+ tool: import("convex/values").VUnion<"memory" | "tasks" | "messages" | "notes", [import("convex/values").VLiteral<"memory", "required">, import("convex/values").VLiteral<"tasks", "required">, import("convex/values").VLiteral<"messages", "required">, import("convex/values").VLiteral<"notes", "required">], "required", never>;
479
+ argsJson: import("convex/values").VString<string, "required">;
480
+ createdAt: import("convex/values").VFloat64<number, "required">;
481
+ }, "required", "orgId" | "createdAt" | "tool" | "argsJson">, {
482
+ by_org: ["orgId", "_creationTime"];
483
+ }, {}, {}>;
123
484
  }, true>;
124
485
  export default _default;