@dexto/server 1.14.6 → 1.15.0-beta.1

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,17 +327,18 @@ 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.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
- };
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
+ }
337
339
  }
338
- }
339
- return value;
340
- }).pipe(
340
+ return value;
341
+ },
341
342
  import_zod_openapi.z.object({
342
343
  id: import_zod_openapi.z.string().describe("Task ID")
343
344
  })
@@ -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,CAwPb"}
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"}
@@ -308,17 +308,18 @@ function createA2ATasksRouter(getAgent, sseSubscriber) {
308
308
  description: "Cancel a running task (A2A tasks/cancel)",
309
309
  tags: ["a2a"],
310
310
  request: {
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
- };
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
+ }
318
320
  }
319
- }
320
- return value;
321
- }).pipe(
321
+ return value;
322
+ },
322
323
  z.object({
323
324
  id: z.string().describe("Task ID")
324
325
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/server",
3
- "version": "1.14.6",
3
+ "version": "1.15.0-beta.1",
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": "2.1.5",
33
+ "@hono/node-server": "1.19.17",
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.6",
40
- "@dexto/agent-management": "1.14.6",
41
- "@dexto/core": "1.14.6",
42
- "@dexto/image-local": "1.14.6",
43
- "@dexto/llm": "1.14.6",
44
- "@dexto/storage": "1.14.6",
45
- "@dexto/tools-scheduler": "1.14.6"
39
+ "@dexto/agent-config": "1.14.4",
40
+ "@dexto/image-local": "1.15.0-beta.1",
41
+ "@dexto/core": "1.14.4",
42
+ "@dexto/agent-management": "1.15.0-beta.1",
43
+ "@dexto/storage": "1.14.4",
44
+ "@dexto/llm": "1.14.4",
45
+ "@dexto/tools-scheduler": "1.14.4"
46
46
  },
47
47
  "files": [
48
48
  "dist",