@dexto/server 1.14.5 → 1.15.0-beta.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,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.
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
-
|
|
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,
|
|
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.
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.15.0-beta.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": "
|
|
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.
|
|
40
|
-
"@dexto/
|
|
41
|
-
"@dexto/
|
|
42
|
-
"@dexto/
|
|
43
|
-
"@dexto/
|
|
44
|
-
"@dexto/
|
|
45
|
-
"@dexto/tools-scheduler": "1.14.
|
|
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"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"dist",
|