@dexto/server 1.2.5 → 1.3.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.
- package/dist/hono/index.cjs +8 -1
- package/dist/hono/index.d.ts +80 -68
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/index.js +11 -1
- package/dist/hono/routes/agents.d.ts +18 -15
- package/dist/hono/routes/agents.d.ts.map +1 -1
- package/dist/hono/routes/llm.d.ts +19 -19
- package/dist/hono/routes/memory.d.ts +1 -1
- package/dist/hono/routes/messages.cjs +10 -10
- package/dist/hono/routes/messages.d.ts +15 -15
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +10 -10
- package/dist/hono/routes/prompts.cjs +2 -2
- package/dist/hono/routes/prompts.d.ts +3 -3
- package/dist/hono/routes/prompts.js +2 -2
- package/dist/hono/routes/search.cjs +2 -24
- package/dist/hono/routes/search.d.ts +12 -10
- package/dist/hono/routes/search.d.ts.map +1 -1
- package/dist/hono/routes/search.js +3 -25
- package/dist/hono/routes/sessions.d.ts +6 -5
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/static.cjs +77 -0
- package/dist/hono/routes/static.d.ts +41 -0
- package/dist/hono/routes/static.d.ts.map +1 -0
- package/dist/hono/routes/static.js +52 -0
- package/dist/hono/schemas/responses.cjs +45 -22
- package/dist/hono/schemas/responses.d.ts +1205 -201
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +52 -32
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,E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AAY,CAAC;;;;;;;;;iEAO1B,CAAC;AAG7C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaG,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGjE,eAAO,MAAM,oBAAoB;;;;;;;;;EAMD,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,eAAO,MAAM,oBAAoB;;;;;;;;;EAMS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,45 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { LLMConfigBaseSchema as CoreLLMConfigBaseSchema } from "@dexto/core";
|
|
3
|
-
import { MemorySchema } from "@dexto/core";
|
|
4
|
-
import { LLMConfigBaseSchema } from "@dexto/core";
|
|
5
|
-
const LLMConfigResponseSchema = CoreLLMConfigBaseSchema.omit({ apiKey: true }).extend({
|
|
6
|
-
hasApiKey: z.boolean().optional().describe("Whether an API key is configured")
|
|
7
|
-
}).describe("LLM configuration (apiKey omitted for security)");
|
|
8
|
-
const LLMConfigSchema = CoreLLMConfigBaseSchema.describe("LLM configuration with API key");
|
|
9
|
-
import { AgentCardSchema } from "@dexto/core";
|
|
10
2
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
HttpServerConfigSchema
|
|
3
|
+
LLMConfigBaseSchema as CoreLLMConfigBaseSchema,
|
|
4
|
+
LLM_PROVIDERS,
|
|
5
|
+
LLM_ROUTERS
|
|
15
6
|
} from "@dexto/core";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
const BinaryDataSchema = z.custom(
|
|
19
|
-
(val) => {
|
|
20
|
-
return typeof val === "string" || val instanceof Buffer || val instanceof Uint8Array || val instanceof URL;
|
|
21
|
-
},
|
|
22
|
-
{ message: "Must be string, Buffer, Uint8Array, or URL" }
|
|
23
|
-
);
|
|
24
|
-
const SessionMetadataSchema = z.object({
|
|
25
|
-
id: z.string().describe("Unique session identifier"),
|
|
26
|
-
createdAt: z.number().int().positive().nullable().describe("Creation timestamp (Unix ms, null if unavailable)"),
|
|
27
|
-
lastActivity: z.number().int().positive().nullable().describe("Last activity timestamp (Unix ms, null if unavailable)"),
|
|
28
|
-
messageCount: z.number().int().nonnegative().describe("Total number of messages in session"),
|
|
29
|
-
title: z.string().optional().nullable().describe("Optional session title")
|
|
30
|
-
}).strict().describe("Session metadata");
|
|
7
|
+
import { MemorySchema } from "@dexto/core";
|
|
8
|
+
import { LLMConfigBaseSchema } from "@dexto/core";
|
|
31
9
|
const TextPartSchema = z.object({
|
|
32
10
|
type: z.literal("text").describe("Part type: text"),
|
|
33
11
|
text: z.string().describe("Text content")
|
|
34
12
|
}).strict().describe("Text content part");
|
|
35
13
|
const ImagePartSchema = z.object({
|
|
36
14
|
type: z.literal("image").describe("Part type: image"),
|
|
37
|
-
image:
|
|
15
|
+
image: z.string().describe("Base64-encoded image data"),
|
|
38
16
|
mimeType: z.string().optional().describe("MIME type of the image")
|
|
39
17
|
}).strict().describe("Image content part");
|
|
40
18
|
const FilePartSchema = z.object({
|
|
41
19
|
type: z.literal("file").describe("Part type: file"),
|
|
42
|
-
data:
|
|
20
|
+
data: z.string().describe("Base64-encoded file data"),
|
|
43
21
|
mimeType: z.string().describe("MIME type of the file"),
|
|
44
22
|
filename: z.string().optional().describe("Optional filename")
|
|
45
23
|
}).strict().describe("File content part");
|
|
@@ -59,18 +37,39 @@ const TokenUsageSchema = z.object({
|
|
|
59
37
|
totalTokens: z.number().int().nonnegative().optional().describe("Total tokens used")
|
|
60
38
|
}).strict().describe("Token usage accounting");
|
|
61
39
|
const InternalMessageSchema = z.object({
|
|
40
|
+
id: z.string().uuid().optional().describe("Unique message identifier (UUID)"),
|
|
62
41
|
role: z.enum(["system", "user", "assistant", "tool"]).describe("Role of the message sender"),
|
|
63
42
|
timestamp: z.number().int().positive().optional().describe("Creation timestamp (Unix ms)"),
|
|
64
43
|
content: z.union([z.string(), z.null(), z.array(ContentPartSchema)]).describe("Message content (string, null, or array of parts)"),
|
|
65
44
|
reasoning: z.string().optional().describe("Optional model reasoning text"),
|
|
66
45
|
tokenUsage: TokenUsageSchema.optional().describe("Optional token usage accounting"),
|
|
67
46
|
model: z.string().optional().describe("Model identifier for assistant messages"),
|
|
68
|
-
provider: z.
|
|
69
|
-
router: z.
|
|
47
|
+
provider: z.enum(LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
|
|
48
|
+
router: z.enum(LLM_ROUTERS).optional().describe("Router metadata for assistant messages"),
|
|
70
49
|
toolCalls: z.array(ToolCallSchema).optional().describe("Tool calls made by the assistant"),
|
|
71
50
|
toolCallId: z.string().optional().describe("ID of the tool call this message responds to"),
|
|
72
51
|
name: z.string().optional().describe("Name of the tool that produced this result")
|
|
73
52
|
}).strict().describe("Internal message representation");
|
|
53
|
+
const LLMConfigResponseSchema = CoreLLMConfigBaseSchema.omit({ apiKey: true }).extend({
|
|
54
|
+
hasApiKey: z.boolean().optional().describe("Whether an API key is configured")
|
|
55
|
+
}).describe("LLM configuration (apiKey omitted for security)");
|
|
56
|
+
const LLMConfigSchema = CoreLLMConfigBaseSchema.describe("LLM configuration with API key");
|
|
57
|
+
import { AgentCardSchema } from "@dexto/core";
|
|
58
|
+
import {
|
|
59
|
+
McpServerConfigSchema,
|
|
60
|
+
StdioServerConfigSchema,
|
|
61
|
+
SseServerConfigSchema,
|
|
62
|
+
HttpServerConfigSchema
|
|
63
|
+
} from "@dexto/core";
|
|
64
|
+
import { ToolConfirmationConfigSchema } from "@dexto/core";
|
|
65
|
+
import { InternalResourceConfigSchema } from "@dexto/core";
|
|
66
|
+
const SessionMetadataSchema = z.object({
|
|
67
|
+
id: z.string().describe("Unique session identifier"),
|
|
68
|
+
createdAt: z.number().int().positive().nullable().describe("Creation timestamp (Unix ms, null if unavailable)"),
|
|
69
|
+
lastActivity: z.number().int().positive().nullable().describe("Last activity timestamp (Unix ms, null if unavailable)"),
|
|
70
|
+
messageCount: z.number().int().nonnegative().describe("Total number of messages in session"),
|
|
71
|
+
title: z.string().optional().nullable().describe("Optional session title")
|
|
72
|
+
}).strict().describe("Session metadata");
|
|
74
73
|
const SearchResultSchema = z.object({
|
|
75
74
|
sessionId: z.string().describe("Session ID where the message was found"),
|
|
76
75
|
message: InternalMessageSchema.describe("The message that matched the search"),
|
|
@@ -88,6 +87,20 @@ const SessionSearchResultSchema = z.object({
|
|
|
88
87
|
messageCount: z.number().int().nonnegative().describe("Total messages in session")
|
|
89
88
|
}).strict().describe("Session metadata")
|
|
90
89
|
}).strict().describe("Result of a session search");
|
|
90
|
+
const MessageSearchResponseSchema = z.object({
|
|
91
|
+
results: z.array(SearchResultSchema).describe("Array of search results"),
|
|
92
|
+
total: z.number().int().nonnegative().describe("Total number of results available"),
|
|
93
|
+
hasMore: z.boolean().describe("Whether there are more results beyond the current page"),
|
|
94
|
+
query: z.string().describe("Query that was searched")
|
|
95
|
+
}).strict().describe("Message search response");
|
|
96
|
+
const SessionSearchResponseSchema = z.object({
|
|
97
|
+
results: z.array(SessionSearchResultSchema).describe("Array of session search results"),
|
|
98
|
+
total: z.number().int().nonnegative().describe("Total number of sessions with matches"),
|
|
99
|
+
hasMore: z.boolean().describe(
|
|
100
|
+
"Always false - session search returns all matching sessions without pagination"
|
|
101
|
+
),
|
|
102
|
+
query: z.string().describe("Query that was searched")
|
|
103
|
+
}).strict().describe("Session search response");
|
|
91
104
|
const WebhookSchema = z.object({
|
|
92
105
|
id: z.string().describe("Unique webhook identifier"),
|
|
93
106
|
url: z.string().url().describe("Webhook URL to send events to"),
|
|
@@ -162,7 +175,7 @@ const PromptInfoSchema = z.object({
|
|
|
162
175
|
title: z.string().optional().describe("Prompt title"),
|
|
163
176
|
description: z.string().optional().describe("Prompt description"),
|
|
164
177
|
arguments: z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
|
|
165
|
-
source: z.enum(["mcp", "
|
|
178
|
+
source: z.enum(["mcp", "config", "custom"]).describe("Source of the prompt"),
|
|
166
179
|
metadata: z.record(z.unknown()).optional().describe("Additional metadata")
|
|
167
180
|
}).strict().describe("Enhanced prompt information");
|
|
168
181
|
const PromptSchema = z.object({
|
|
@@ -196,9 +209,12 @@ export {
|
|
|
196
209
|
AgentCardSchema,
|
|
197
210
|
AgentRegistryEntrySchema,
|
|
198
211
|
CatalogModelInfoSchema,
|
|
212
|
+
ContentPartSchema,
|
|
199
213
|
DeleteResponseSchema,
|
|
200
214
|
ErrorResponseSchema,
|
|
215
|
+
FilePartSchema,
|
|
201
216
|
HttpServerConfigSchema,
|
|
217
|
+
ImagePartSchema,
|
|
202
218
|
InternalMessageSchema,
|
|
203
219
|
InternalResourceConfigSchema,
|
|
204
220
|
LLMConfigBaseSchema,
|
|
@@ -206,6 +222,7 @@ export {
|
|
|
206
222
|
LLMConfigSchema,
|
|
207
223
|
McpServerConfigSchema,
|
|
208
224
|
MemorySchema,
|
|
225
|
+
MessageSearchResponseSchema,
|
|
209
226
|
ModelFlatSchema,
|
|
210
227
|
OkResponseSchema,
|
|
211
228
|
PromptArgumentSchema,
|
|
@@ -216,11 +233,14 @@ export {
|
|
|
216
233
|
ResourceSchema,
|
|
217
234
|
SearchResultSchema,
|
|
218
235
|
SessionMetadataSchema,
|
|
236
|
+
SessionSearchResponseSchema,
|
|
219
237
|
SessionSearchResultSchema,
|
|
220
238
|
SseServerConfigSchema,
|
|
221
239
|
StatusResponseSchema,
|
|
222
240
|
StdioServerConfigSchema,
|
|
241
|
+
TextPartSchema,
|
|
223
242
|
TokenUsageSchema,
|
|
243
|
+
ToolCallSchema,
|
|
224
244
|
ToolConfirmationConfigSchema,
|
|
225
245
|
ToolSchema,
|
|
226
246
|
WebhookSchema
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"ws": "^8.18.1",
|
|
32
32
|
"yaml": "^2.7.1",
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
34
|
-
"@dexto/agent-management": "1.
|
|
35
|
-
"@dexto/core": "1.
|
|
34
|
+
"@dexto/agent-management": "1.3.0",
|
|
35
|
+
"@dexto/core": "1.3.0"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|