@dexto/server 1.14.3 → 1.14.5
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.
|
|
331
|
-
(value)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
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,
|
|
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.
|
|
312
|
-
(value)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
-
|
|
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.14.
|
|
3
|
+
"version": "1.14.5",
|
|
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.
|
|
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.
|
|
40
|
-
"@dexto/agent-management": "1.14.
|
|
41
|
-
"@dexto/core": "1.14.
|
|
42
|
-
"@dexto/image-local": "1.14.
|
|
43
|
-
"@dexto/llm": "1.14.
|
|
44
|
-
"@dexto/storage": "1.14.
|
|
45
|
-
"@dexto/tools-scheduler": "1.14.
|
|
39
|
+
"@dexto/agent-config": "1.14.5",
|
|
40
|
+
"@dexto/agent-management": "1.14.5",
|
|
41
|
+
"@dexto/core": "1.14.5",
|
|
42
|
+
"@dexto/image-local": "1.14.5",
|
|
43
|
+
"@dexto/llm": "1.14.5",
|
|
44
|
+
"@dexto/storage": "1.14.5",
|
|
45
|
+
"@dexto/tools-scheduler": "1.14.5"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"dist",
|