@dexto/server 1.6.19 → 1.6.20
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.
- package/dist/hono/index.d.ts +161 -133
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/routes/a2a-tasks.cjs +17 -4
- package/dist/hono/routes/a2a-tasks.d.ts +39 -35
- package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
- package/dist/hono/routes/a2a-tasks.js +17 -4
- package/dist/hono/routes/agents.d.ts +8 -8
- package/dist/hono/routes/approvals.cjs +19 -8
- package/dist/hono/routes/approvals.d.ts +39 -8
- package/dist/hono/routes/approvals.d.ts.map +1 -1
- package/dist/hono/routes/approvals.js +19 -8
- package/dist/hono/routes/llm.d.ts +1 -1
- package/dist/hono/routes/mcp.cjs +56 -26
- package/dist/hono/routes/mcp.d.ts +22 -29
- package/dist/hono/routes/mcp.d.ts.map +1 -1
- package/dist/hono/routes/mcp.js +64 -28
- package/dist/hono/routes/messages.cjs +34 -35
- package/dist/hono/routes/messages.d.ts +12 -12
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +41 -36
- package/dist/hono/routes/prompts.cjs +10 -4
- package/dist/hono/routes/prompts.d.ts +4 -4
- package/dist/hono/routes/prompts.d.ts.map +1 -1
- package/dist/hono/routes/prompts.js +15 -5
- package/dist/hono/routes/queue.cjs +42 -29
- package/dist/hono/routes/queue.d.ts +9 -9
- package/dist/hono/routes/queue.d.ts.map +1 -1
- package/dist/hono/routes/queue.js +49 -30
- package/dist/hono/routes/resources.d.ts +1 -1
- package/dist/hono/routes/schedules.d.ts +4 -4
- package/dist/hono/routes/search.d.ts +4 -4
- package/dist/hono/routes/sessions.cjs +7 -2
- package/dist/hono/routes/sessions.d.ts +12 -12
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +7 -2
- package/dist/hono/routes/tools.d.ts +1 -1
- package/dist/hono/routes/webhooks.cjs +59 -24
- package/dist/hono/routes/webhooks.d.ts +7 -7
- package/dist/hono/routes/webhooks.d.ts.map +1 -1
- package/dist/hono/routes/webhooks.js +59 -24
- package/dist/hono/schemas/responses.cjs +112 -2
- package/dist/hono/schemas/responses.d.ts +246 -54
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +105 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIH,KAAK,WAAW,IAAI,eAAe,EACtC,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;EAc+B,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBS,CAAC;AAO7C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAE,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAM3E,eAAO,MAAM,cAAc;;;;;;;;;EAMO,CAAC;AAEnC,eAAO,MAAM,eAAe;;;;;;;;;;;;EAOO,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAQO,CAAC;AAEnC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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6
6
|
} from "@dexto/core";
|
|
7
|
+
const IssueSchema = z.object({
|
|
8
|
+
code: z.string().describe("Machine-readable issue code"),
|
|
9
|
+
message: z.string().describe("Human-readable issue message"),
|
|
10
|
+
scope: z.string().describe("Domain that produced the issue"),
|
|
11
|
+
type: z.string().describe("Error type used for HTTP status mapping"),
|
|
12
|
+
severity: z.enum(["error", "warning"]).describe("Issue severity"),
|
|
13
|
+
path: z.array(z.union([z.string(), z.number()])).optional().describe("Optional location for the issue"),
|
|
14
|
+
context: z.unknown().optional().describe("Optional structured issue context")
|
|
15
|
+
}).strict().describe("Structured validation or runtime issue");
|
|
16
|
+
const ApiErrorResponseSchema = z.object({
|
|
17
|
+
name: z.string().optional().describe("Optional error class name"),
|
|
18
|
+
message: z.string().describe("Human-readable error message"),
|
|
19
|
+
code: z.string().optional().describe("Machine-readable error code"),
|
|
20
|
+
scope: z.string().optional().describe("Domain that produced the error"),
|
|
21
|
+
type: z.string().optional().describe("Error type used for HTTP status mapping"),
|
|
22
|
+
severity: z.enum(["error", "warning"]).optional().describe("Optional error severity for lightweight failures"),
|
|
23
|
+
endpoint: z.string().describe("Request path that failed"),
|
|
24
|
+
method: z.string().describe("HTTP method for the failed request"),
|
|
25
|
+
traceId: z.string().optional().describe("Optional trace identifier"),
|
|
26
|
+
recovery: z.union([z.string(), z.array(z.string())]).optional().describe("Optional recovery guidance"),
|
|
27
|
+
context: z.unknown().optional().describe("Optional structured error context"),
|
|
28
|
+
issues: z.array(IssueSchema).optional().describe("Validation issues when present"),
|
|
29
|
+
errorCount: z.number().int().nonnegative().optional().describe("Number of errors"),
|
|
30
|
+
warningCount: z.number().int().nonnegative().optional().describe("Number of warnings"),
|
|
31
|
+
stack: z.string().optional().describe("Development-only stack trace")
|
|
32
|
+
}).strict().describe("Standard API error response");
|
|
7
33
|
import { MemorySchema } from "@dexto/core";
|
|
8
34
|
import { LLMConfigBaseSchema } from "@dexto/core";
|
|
9
35
|
const TextPartSchema = z.object({
|
|
@@ -41,6 +67,78 @@ const ContentPartSchema = z.discriminatedUnion("type", [
|
|
|
41
67
|
FilePartSchema,
|
|
42
68
|
UIResourcePartSchema
|
|
43
69
|
]).describe("Message content part (text, image, file, or UI resource)");
|
|
70
|
+
const RequestContentPartSchema = z.discriminatedUnion("type", [TextPartSchema, ImagePartSchema, FilePartSchema]).describe("Request message content part (text, image, or file)");
|
|
71
|
+
const RequestContentSchema = z.union([z.string(), z.array(RequestContentPartSchema)]).describe("Message content - string for text, or ContentPart[] for multimodal");
|
|
72
|
+
function serializeBinaryValue(value) {
|
|
73
|
+
if (typeof value === "string") {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
if (value instanceof URL) {
|
|
77
|
+
return value.toString();
|
|
78
|
+
}
|
|
79
|
+
if (value instanceof ArrayBuffer) {
|
|
80
|
+
return Buffer.from(new Uint8Array(value)).toString("base64");
|
|
81
|
+
}
|
|
82
|
+
return Buffer.from(value).toString("base64");
|
|
83
|
+
}
|
|
84
|
+
function toContentInput(rawContent) {
|
|
85
|
+
if (typeof rawContent === "string") {
|
|
86
|
+
return [{ type: "text", text: rawContent }];
|
|
87
|
+
}
|
|
88
|
+
return rawContent.map((part) => {
|
|
89
|
+
switch (part.type) {
|
|
90
|
+
case "text":
|
|
91
|
+
return {
|
|
92
|
+
type: "text",
|
|
93
|
+
text: part.text
|
|
94
|
+
};
|
|
95
|
+
case "image":
|
|
96
|
+
return {
|
|
97
|
+
type: "image",
|
|
98
|
+
image: part.image,
|
|
99
|
+
...part.mimeType !== void 0 ? { mimeType: part.mimeType } : {}
|
|
100
|
+
};
|
|
101
|
+
case "file":
|
|
102
|
+
return {
|
|
103
|
+
type: "file",
|
|
104
|
+
data: part.data,
|
|
105
|
+
mimeType: part.mimeType,
|
|
106
|
+
...part.filename !== void 0 ? { filename: part.filename } : {}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function toApiContentPart(part) {
|
|
112
|
+
switch (part.type) {
|
|
113
|
+
case "text":
|
|
114
|
+
return {
|
|
115
|
+
type: "text",
|
|
116
|
+
text: part.text
|
|
117
|
+
};
|
|
118
|
+
case "image":
|
|
119
|
+
return {
|
|
120
|
+
type: "image",
|
|
121
|
+
image: serializeBinaryValue(part.image),
|
|
122
|
+
...part.mimeType !== void 0 ? { mimeType: part.mimeType } : {}
|
|
123
|
+
};
|
|
124
|
+
case "file":
|
|
125
|
+
return {
|
|
126
|
+
type: "file",
|
|
127
|
+
data: serializeBinaryValue(part.data),
|
|
128
|
+
mimeType: part.mimeType,
|
|
129
|
+
...part.filename !== void 0 ? { filename: part.filename } : {}
|
|
130
|
+
};
|
|
131
|
+
case "ui-resource":
|
|
132
|
+
return {
|
|
133
|
+
type: "ui-resource",
|
|
134
|
+
uri: part.uri,
|
|
135
|
+
mimeType: part.mimeType,
|
|
136
|
+
...part.content !== void 0 ? { content: part.content } : {},
|
|
137
|
+
...part.blob !== void 0 ? { blob: part.blob } : {},
|
|
138
|
+
...part.metadata !== void 0 ? { metadata: part.metadata } : {}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
44
142
|
const ToolCallSchema = z.object({
|
|
45
143
|
id: z.string().describe("Unique identifier for this tool call"),
|
|
46
144
|
type: z.literal("function").describe("Tool call type (currently only function is supported)"),
|
|
@@ -332,6 +430,7 @@ const DeleteResponseSchema = z.object({
|
|
|
332
430
|
export {
|
|
333
431
|
AgentCardSchema,
|
|
334
432
|
AgentRegistryEntrySchema,
|
|
433
|
+
ApiErrorResponseSchema,
|
|
335
434
|
CatalogModelInfoSchema,
|
|
336
435
|
ContentPartSchema,
|
|
337
436
|
DeleteResponseSchema,
|
|
@@ -341,6 +440,7 @@ export {
|
|
|
341
440
|
HttpServerConfigSchema,
|
|
342
441
|
ImagePartSchema,
|
|
343
442
|
InternalMessageSchema,
|
|
443
|
+
IssueSchema,
|
|
344
444
|
LLMConfigBaseSchema,
|
|
345
445
|
LLMConfigResponseSchema,
|
|
346
446
|
LLMConfigSchema,
|
|
@@ -357,6 +457,8 @@ export {
|
|
|
357
457
|
PromptInfoSchema,
|
|
358
458
|
PromptSchema,
|
|
359
459
|
ProviderCatalogSchema,
|
|
460
|
+
RequestContentPartSchema,
|
|
461
|
+
RequestContentSchema,
|
|
360
462
|
ResourceConfigSchema,
|
|
361
463
|
ResourceSchema,
|
|
362
464
|
ScheduleSchema,
|
|
@@ -379,5 +481,7 @@ export {
|
|
|
379
481
|
UIResourcePartSchema,
|
|
380
482
|
UsageSummarySchema,
|
|
381
483
|
WebhookSchema,
|
|
382
|
-
WorkspaceSchema
|
|
484
|
+
WorkspaceSchema,
|
|
485
|
+
toApiContentPart,
|
|
486
|
+
toContentInput
|
|
383
487
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/server",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"ws": "^8.18.1",
|
|
32
32
|
"yaml": "^2.8.3",
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
34
|
-
"@dexto/agent-config": "1.6.
|
|
35
|
-
"@dexto/agent-management": "1.6.
|
|
36
|
-
"@dexto/core": "1.6.
|
|
37
|
-
"@dexto/
|
|
38
|
-
"@dexto/
|
|
39
|
-
"@dexto/tools-scheduler": "1.6.
|
|
34
|
+
"@dexto/agent-config": "1.6.20",
|
|
35
|
+
"@dexto/agent-management": "1.6.20",
|
|
36
|
+
"@dexto/core": "1.6.20",
|
|
37
|
+
"@dexto/storage": "1.6.20",
|
|
38
|
+
"@dexto/image-local": "1.6.20",
|
|
39
|
+
"@dexto/tools-scheduler": "1.6.20"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|