@dexto/server 1.15.0-beta.0 → 1.15.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.
@@ -327,18 +327,17 @@ function createA2ATasksRouter(getAgent, sseSubscriber) {
327
327
  description: "Cancel a running task (A2A tasks/cancel)",
328
328
  tags: ["a2a"],
329
329
  request: {
330
- params: import_zod_openapi.z.preprocess(
331
- (value) => {
332
- if (value && typeof value === "object" && !Array.isArray(value)) {
333
- const raw = readCancelTaskParam(value);
334
- if (raw !== void 0) {
335
- return {
336
- id: raw.endsWith(":cancel") ? raw.slice(0, -":cancel".length) : raw
337
- };
338
- }
330
+ params: import_zod_openapi.z.unknown().transform((value) => {
331
+ if (value && typeof value === "object" && !Array.isArray(value)) {
332
+ const raw = readCancelTaskParam(value);
333
+ if (raw !== void 0) {
334
+ return {
335
+ id: raw.endsWith(":cancel") ? raw.slice(0, -":cancel".length) : raw
336
+ };
339
337
  }
340
- return value;
341
- },
338
+ }
339
+ return value;
340
+ }).pipe(
342
341
  import_zod_openapi.z.object({
343
342
  id: import_zod_openapi.z.string().describe("Task ID")
344
343
  })
@@ -1 +1 @@
1
- {"version":3,"file":"a2a-tasks.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/a2a-tasks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAGhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAMpC,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AA4UrE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,UAAU,EACpB,aAAa,EAAE,qBAAqB,GACrC,WAAW,CAsPb"}
1
+ {"version":3,"file":"a2a-tasks.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/a2a-tasks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAGhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAMpC,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AA4UrE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,UAAU,EACpB,aAAa,EAAE,qBAAqB,GACrC,WAAW,CAwPb"}
@@ -308,18 +308,17 @@ function createA2ATasksRouter(getAgent, sseSubscriber) {
308
308
  description: "Cancel a running task (A2A tasks/cancel)",
309
309
  tags: ["a2a"],
310
310
  request: {
311
- params: z.preprocess(
312
- (value) => {
313
- if (value && typeof value === "object" && !Array.isArray(value)) {
314
- const raw = readCancelTaskParam(value);
315
- if (raw !== void 0) {
316
- return {
317
- id: raw.endsWith(":cancel") ? raw.slice(0, -":cancel".length) : raw
318
- };
319
- }
311
+ params: z.unknown().transform((value) => {
312
+ if (value && typeof value === "object" && !Array.isArray(value)) {
313
+ const raw = readCancelTaskParam(value);
314
+ if (raw !== void 0) {
315
+ return {
316
+ id: raw.endsWith(":cancel") ? raw.slice(0, -":cancel".length) : raw
317
+ };
320
318
  }
321
- return value;
322
- },
319
+ }
320
+ return value;
321
+ }).pipe(
323
322
  z.object({
324
323
  id: z.string().describe("Task ID")
325
324
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/server",
3
- "version": "1.15.0-beta.0",
3
+ "version": "1.15.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -30,19 +30,19 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@hono/node-server": "1.19.17",
33
+ "@hono/node-server": "2.1.5",
34
34
  "@hono/zod-openapi": "^1.3.0",
35
35
  "hono": "^4.13.13",
36
36
  "ws": "^8.22.0",
37
37
  "yaml": "^2.8.3",
38
38
  "@modelcontextprotocol/sdk": "^1.32.1",
39
- "@dexto/agent-config": "1.14.4",
40
- "@dexto/llm": "1.14.4",
41
- "@dexto/agent-management": "1.15.0-beta.0",
42
- "@dexto/storage": "1.14.4",
43
- "@dexto/image-local": "1.15.0-beta.0",
44
- "@dexto/core": "1.14.4",
45
- "@dexto/tools-scheduler": "1.14.4"
39
+ "@dexto/agent-config": "1.15.0",
40
+ "@dexto/agent-management": "1.15.0",
41
+ "@dexto/core": "1.15.0",
42
+ "@dexto/image-local": "1.15.0",
43
+ "@dexto/llm": "1.15.0",
44
+ "@dexto/storage": "1.15.0",
45
+ "@dexto/tools-scheduler": "1.15.0"
46
46
  },
47
47
  "files": [
48
48
  "dist",