@dexto/server 1.5.8 → 1.6.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 (58) hide show
  1. package/dist/events/a2a-sse-subscriber.d.ts +1 -1
  2. package/dist/hono/__tests__/test-fixtures.cjs +27 -6
  3. package/dist/hono/__tests__/test-fixtures.d.ts +2 -1
  4. package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
  5. package/dist/hono/__tests__/test-fixtures.js +31 -6
  6. package/dist/hono/index.cjs +17 -2
  7. package/dist/hono/index.d.ts +875 -59
  8. package/dist/hono/index.d.ts.map +1 -1
  9. package/dist/hono/index.js +17 -2
  10. package/dist/hono/routes/a2a-tasks.d.ts +6 -6
  11. package/dist/hono/routes/agents.cjs +38 -27
  12. package/dist/hono/routes/agents.d.ts +2 -1
  13. package/dist/hono/routes/agents.d.ts.map +1 -1
  14. package/dist/hono/routes/agents.js +37 -31
  15. package/dist/hono/routes/discovery.cjs +99 -22
  16. package/dist/hono/routes/discovery.d.ts +14 -12
  17. package/dist/hono/routes/discovery.d.ts.map +1 -1
  18. package/dist/hono/routes/discovery.js +89 -22
  19. package/dist/hono/routes/llm.d.ts +1 -1
  20. package/dist/hono/routes/mcp.cjs +96 -14
  21. package/dist/hono/routes/mcp.d.ts +138 -3
  22. package/dist/hono/routes/mcp.d.ts.map +1 -1
  23. package/dist/hono/routes/mcp.js +97 -15
  24. package/dist/hono/routes/memory.d.ts +4 -4
  25. package/dist/hono/routes/models.d.ts +1 -1
  26. package/dist/hono/routes/resources.d.ts +1 -1
  27. package/dist/hono/routes/schedules.cjs +455 -0
  28. package/dist/hono/routes/schedules.d.ts +472 -0
  29. package/dist/hono/routes/schedules.d.ts.map +1 -0
  30. package/dist/hono/routes/schedules.js +439 -0
  31. package/dist/hono/routes/search.d.ts +1 -1
  32. package/dist/hono/routes/sessions.cjs +10 -4
  33. package/dist/hono/routes/sessions.d.ts +135 -5
  34. package/dist/hono/routes/sessions.d.ts.map +1 -1
  35. package/dist/hono/routes/sessions.js +10 -4
  36. package/dist/hono/routes/tools.cjs +12 -19
  37. package/dist/hono/routes/tools.d.ts +5 -3
  38. package/dist/hono/routes/tools.d.ts.map +1 -1
  39. package/dist/hono/routes/tools.js +12 -19
  40. package/dist/hono/routes/workspaces.cjs +136 -0
  41. package/dist/hono/routes/workspaces.d.ts +77 -0
  42. package/dist/hono/routes/workspaces.d.ts.map +1 -0
  43. package/dist/hono/routes/workspaces.js +112 -0
  44. package/dist/hono/schemas/responses.cjs +82 -7
  45. package/dist/hono/schemas/responses.d.ts +366 -16
  46. package/dist/hono/schemas/responses.d.ts.map +1 -1
  47. package/dist/hono/schemas/responses.js +75 -6
  48. package/dist/hono/start-server.cjs +3 -3
  49. package/dist/hono/start-server.d.ts +15 -6
  50. package/dist/hono/start-server.d.ts.map +1 -1
  51. package/dist/hono/start-server.js +3 -3
  52. package/dist/index.cjs +9 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +4 -0
  56. package/dist/mcp/mcp-handler.d.ts +2 -2
  57. package/dist/mcp/mcp-handler.d.ts.map +1 -1
  58. package/package.json +8 -5
@@ -0,0 +1,472 @@
1
+ import { OpenAPIHono } from '@hono/zod-openapi';
2
+ import type { GetAgentFn } from '../index.js';
3
+ export declare function createSchedulesRouter(getAgent: GetAgentFn): OpenAPIHono<import("hono").Env, {
4
+ "/schedules": {
5
+ $get: {
6
+ input: {};
7
+ output: {
8
+ schedules: {
9
+ id: string;
10
+ name: string;
11
+ createdAt: number;
12
+ cronExpression: string;
13
+ timezone: string;
14
+ enabled: boolean;
15
+ task: {
16
+ instruction: string;
17
+ metadata?: {
18
+ [x: string]: import("hono/utils/types").JSONValue;
19
+ } | undefined;
20
+ };
21
+ sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
22
+ updatedAt: number;
23
+ runCount: number;
24
+ successCount: number;
25
+ failureCount: number;
26
+ sessionId?: string | undefined;
27
+ workspacePath?: string | undefined;
28
+ lastRunAt?: number | undefined;
29
+ nextRunAt?: number | undefined;
30
+ lastError?: string | undefined;
31
+ }[];
32
+ };
33
+ outputFormat: "json";
34
+ status: 200;
35
+ } | {
36
+ input: {};
37
+ output: {
38
+ error: {
39
+ message: string;
40
+ code?: string | undefined;
41
+ details?: import("hono/utils/types").JSONValue;
42
+ };
43
+ ok: false;
44
+ };
45
+ outputFormat: "json";
46
+ status: 500;
47
+ } | {
48
+ input: {};
49
+ output: {
50
+ error: {
51
+ message: string;
52
+ code?: string | undefined;
53
+ details?: import("hono/utils/types").JSONValue;
54
+ };
55
+ ok: false;
56
+ };
57
+ outputFormat: "json";
58
+ status: 503;
59
+ };
60
+ };
61
+ } & {
62
+ "/schedules": {
63
+ $post: {
64
+ input: {
65
+ json: {
66
+ name: string;
67
+ instruction: string;
68
+ cronExpression: string;
69
+ timezone?: string | undefined;
70
+ enabled?: boolean | undefined;
71
+ workspacePath?: string | null | undefined;
72
+ };
73
+ };
74
+ output: {
75
+ error: {
76
+ message: string;
77
+ code?: string | undefined;
78
+ details?: import("hono/utils/types").JSONValue;
79
+ };
80
+ ok: false;
81
+ };
82
+ outputFormat: "json";
83
+ status: 500;
84
+ } | {
85
+ input: {
86
+ json: {
87
+ name: string;
88
+ instruction: string;
89
+ cronExpression: string;
90
+ timezone?: string | undefined;
91
+ enabled?: boolean | undefined;
92
+ workspacePath?: string | null | undefined;
93
+ };
94
+ };
95
+ output: {
96
+ error: {
97
+ message: string;
98
+ code?: string | undefined;
99
+ details?: import("hono/utils/types").JSONValue;
100
+ };
101
+ ok: false;
102
+ };
103
+ outputFormat: "json";
104
+ status: 503;
105
+ } | {
106
+ input: {
107
+ json: {
108
+ name: string;
109
+ instruction: string;
110
+ cronExpression: string;
111
+ timezone?: string | undefined;
112
+ enabled?: boolean | undefined;
113
+ workspacePath?: string | null | undefined;
114
+ };
115
+ };
116
+ output: {
117
+ schedule: {
118
+ id: string;
119
+ name: string;
120
+ createdAt: number;
121
+ cronExpression: string;
122
+ timezone: string;
123
+ enabled: boolean;
124
+ task: {
125
+ instruction: string;
126
+ metadata?: {
127
+ [x: string]: import("hono/utils/types").JSONValue;
128
+ } | undefined;
129
+ };
130
+ sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
131
+ updatedAt: number;
132
+ runCount: number;
133
+ successCount: number;
134
+ failureCount: number;
135
+ sessionId?: string | undefined;
136
+ workspacePath?: string | undefined;
137
+ lastRunAt?: number | undefined;
138
+ nextRunAt?: number | undefined;
139
+ lastError?: string | undefined;
140
+ };
141
+ };
142
+ outputFormat: "json";
143
+ status: 201;
144
+ } | {
145
+ input: {
146
+ json: {
147
+ name: string;
148
+ instruction: string;
149
+ cronExpression: string;
150
+ timezone?: string | undefined;
151
+ enabled?: boolean | undefined;
152
+ workspacePath?: string | null | undefined;
153
+ };
154
+ };
155
+ output: {
156
+ error: {
157
+ message: string;
158
+ code?: string | undefined;
159
+ details?: import("hono/utils/types").JSONValue;
160
+ };
161
+ ok: false;
162
+ };
163
+ outputFormat: "json";
164
+ status: 400;
165
+ } | {
166
+ input: {
167
+ json: {
168
+ name: string;
169
+ instruction: string;
170
+ cronExpression: string;
171
+ timezone?: string | undefined;
172
+ enabled?: boolean | undefined;
173
+ workspacePath?: string | null | undefined;
174
+ };
175
+ };
176
+ output: {
177
+ error: {
178
+ message: string;
179
+ code?: string | undefined;
180
+ details?: import("hono/utils/types").JSONValue;
181
+ };
182
+ ok: false;
183
+ };
184
+ outputFormat: "json";
185
+ status: 429;
186
+ };
187
+ };
188
+ } & {
189
+ "/schedules/:scheduleId": {
190
+ $patch: {
191
+ input: {
192
+ param: {
193
+ scheduleId: string;
194
+ };
195
+ } & {
196
+ json: {
197
+ name?: string | undefined;
198
+ instruction?: string | undefined;
199
+ cronExpression?: string | undefined;
200
+ timezone?: string | undefined;
201
+ enabled?: boolean | undefined;
202
+ workspacePath?: string | null | undefined;
203
+ };
204
+ };
205
+ output: {
206
+ error: {
207
+ message: string;
208
+ code?: string | undefined;
209
+ details?: import("hono/utils/types").JSONValue;
210
+ };
211
+ ok: false;
212
+ };
213
+ outputFormat: "json";
214
+ status: 500;
215
+ } | {
216
+ input: {
217
+ param: {
218
+ scheduleId: string;
219
+ };
220
+ } & {
221
+ json: {
222
+ name?: string | undefined;
223
+ instruction?: string | undefined;
224
+ cronExpression?: string | undefined;
225
+ timezone?: string | undefined;
226
+ enabled?: boolean | undefined;
227
+ workspacePath?: string | null | undefined;
228
+ };
229
+ };
230
+ output: {
231
+ error: {
232
+ message: string;
233
+ code?: string | undefined;
234
+ details?: import("hono/utils/types").JSONValue;
235
+ };
236
+ ok: false;
237
+ };
238
+ outputFormat: "json";
239
+ status: 503;
240
+ } | {
241
+ input: {
242
+ param: {
243
+ scheduleId: string;
244
+ };
245
+ } & {
246
+ json: {
247
+ name?: string | undefined;
248
+ instruction?: string | undefined;
249
+ cronExpression?: string | undefined;
250
+ timezone?: string | undefined;
251
+ enabled?: boolean | undefined;
252
+ workspacePath?: string | null | undefined;
253
+ };
254
+ };
255
+ output: {
256
+ error: {
257
+ message: string;
258
+ code?: string | undefined;
259
+ details?: import("hono/utils/types").JSONValue;
260
+ };
261
+ ok: false;
262
+ };
263
+ outputFormat: "json";
264
+ status: 400;
265
+ } | {
266
+ input: {
267
+ param: {
268
+ scheduleId: string;
269
+ };
270
+ } & {
271
+ json: {
272
+ name?: string | undefined;
273
+ instruction?: string | undefined;
274
+ cronExpression?: string | undefined;
275
+ timezone?: string | undefined;
276
+ enabled?: boolean | undefined;
277
+ workspacePath?: string | null | undefined;
278
+ };
279
+ };
280
+ output: {
281
+ schedule: {
282
+ id: string;
283
+ name: string;
284
+ createdAt: number;
285
+ cronExpression: string;
286
+ timezone: string;
287
+ enabled: boolean;
288
+ task: {
289
+ instruction: string;
290
+ metadata?: {
291
+ [x: string]: import("hono/utils/types").JSONValue;
292
+ } | undefined;
293
+ };
294
+ sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
295
+ updatedAt: number;
296
+ runCount: number;
297
+ successCount: number;
298
+ failureCount: number;
299
+ sessionId?: string | undefined;
300
+ workspacePath?: string | undefined;
301
+ lastRunAt?: number | undefined;
302
+ nextRunAt?: number | undefined;
303
+ lastError?: string | undefined;
304
+ };
305
+ };
306
+ outputFormat: "json";
307
+ status: 200;
308
+ } | {
309
+ input: {
310
+ param: {
311
+ scheduleId: string;
312
+ };
313
+ } & {
314
+ json: {
315
+ name?: string | undefined;
316
+ instruction?: string | undefined;
317
+ cronExpression?: string | undefined;
318
+ timezone?: string | undefined;
319
+ enabled?: boolean | undefined;
320
+ workspacePath?: string | null | undefined;
321
+ };
322
+ };
323
+ output: {
324
+ error: {
325
+ message: string;
326
+ code?: string | undefined;
327
+ details?: import("hono/utils/types").JSONValue;
328
+ };
329
+ ok: false;
330
+ };
331
+ outputFormat: "json";
332
+ status: 404;
333
+ };
334
+ };
335
+ } & {
336
+ "/schedules/:scheduleId": {
337
+ $delete: {
338
+ input: {
339
+ param: {
340
+ scheduleId: string;
341
+ };
342
+ };
343
+ output: {
344
+ error: {
345
+ message: string;
346
+ code?: string | undefined;
347
+ details?: import("hono/utils/types").JSONValue;
348
+ };
349
+ ok: false;
350
+ };
351
+ outputFormat: "json";
352
+ status: 500;
353
+ } | {
354
+ input: {
355
+ param: {
356
+ scheduleId: string;
357
+ };
358
+ };
359
+ output: {
360
+ error: {
361
+ message: string;
362
+ code?: string | undefined;
363
+ details?: import("hono/utils/types").JSONValue;
364
+ };
365
+ ok: false;
366
+ };
367
+ outputFormat: "json";
368
+ status: 503;
369
+ } | {
370
+ input: {
371
+ param: {
372
+ scheduleId: string;
373
+ };
374
+ };
375
+ output: {
376
+ error: {
377
+ message: string;
378
+ code?: string | undefined;
379
+ details?: import("hono/utils/types").JSONValue;
380
+ };
381
+ ok: false;
382
+ };
383
+ outputFormat: "json";
384
+ status: 404;
385
+ } | {
386
+ input: {
387
+ param: {
388
+ scheduleId: string;
389
+ };
390
+ };
391
+ output: {
392
+ deleted: boolean;
393
+ };
394
+ outputFormat: "json";
395
+ status: 200;
396
+ };
397
+ };
398
+ } & {
399
+ "/schedules/:scheduleId/trigger": {
400
+ $post: {
401
+ input: {
402
+ param: {
403
+ scheduleId: string;
404
+ };
405
+ };
406
+ output: {
407
+ error: {
408
+ message: string;
409
+ code?: string | undefined;
410
+ details?: import("hono/utils/types").JSONValue;
411
+ };
412
+ ok: false;
413
+ };
414
+ outputFormat: "json";
415
+ status: 500;
416
+ } | {
417
+ input: {
418
+ param: {
419
+ scheduleId: string;
420
+ };
421
+ };
422
+ output: {
423
+ error: {
424
+ message: string;
425
+ code?: string | undefined;
426
+ details?: import("hono/utils/types").JSONValue;
427
+ };
428
+ ok: false;
429
+ };
430
+ outputFormat: "json";
431
+ status: 503;
432
+ } | {
433
+ input: {
434
+ param: {
435
+ scheduleId: string;
436
+ };
437
+ };
438
+ output: {
439
+ error: {
440
+ message: string;
441
+ code?: string | undefined;
442
+ details?: import("hono/utils/types").JSONValue;
443
+ };
444
+ ok: false;
445
+ };
446
+ outputFormat: "json";
447
+ status: 404;
448
+ } | {
449
+ input: {
450
+ param: {
451
+ scheduleId: string;
452
+ };
453
+ };
454
+ output: {
455
+ scheduled: boolean;
456
+ execution?: {
457
+ status: "success" | "pending" | "failed" | "timeout";
458
+ id: string;
459
+ scheduleId: string;
460
+ triggeredAt: number;
461
+ completedAt?: number | undefined;
462
+ duration?: number | undefined;
463
+ error?: string | undefined;
464
+ result?: string | undefined;
465
+ } | undefined;
466
+ };
467
+ outputFormat: "json";
468
+ status: 200;
469
+ };
470
+ };
471
+ }, "/">;
472
+ //# sourceMappingURL=schedules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/schedules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAgE9C,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0czD"}