@dexto/server 1.3.0 → 1.4.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/approval/manual-approval-handler.cjs +23 -15
- package/dist/approval/manual-approval-handler.d.ts.map +1 -1
- package/dist/approval/manual-approval-handler.js +23 -15
- package/dist/events/webhook-subscriber.cjs +1 -1
- package/dist/events/webhook-subscriber.d.ts.map +1 -1
- package/dist/events/webhook-subscriber.js +1 -1
- package/dist/hono/__tests__/test-fixtures.cjs +2 -2
- package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
- package/dist/hono/__tests__/test-fixtures.js +2 -2
- package/dist/hono/index.cjs +6 -1
- package/dist/hono/index.d.ts +433 -88
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/index.js +6 -1
- package/dist/hono/middleware/error.d.ts.map +1 -1
- package/dist/hono/routes/agents.cjs +8 -10
- package/dist/hono/routes/agents.d.ts +15 -8
- package/dist/hono/routes/agents.d.ts.map +1 -1
- package/dist/hono/routes/agents.js +10 -10
- package/dist/hono/routes/approvals.cjs +52 -1
- package/dist/hono/routes/approvals.d.ts +25 -0
- package/dist/hono/routes/approvals.d.ts.map +1 -1
- package/dist/hono/routes/approvals.js +52 -1
- package/dist/hono/routes/llm.cjs +110 -31
- package/dist/hono/routes/llm.d.ts +72 -20
- package/dist/hono/routes/llm.d.ts.map +1 -1
- package/dist/hono/routes/llm.js +108 -25
- package/dist/hono/routes/mcp.cjs +8 -4
- package/dist/hono/routes/mcp.d.ts +4 -1
- package/dist/hono/routes/mcp.d.ts.map +1 -1
- package/dist/hono/routes/mcp.js +9 -5
- package/dist/hono/routes/memory.d.ts +1 -1
- package/dist/hono/routes/messages.cjs +54 -62
- package/dist/hono/routes/messages.d.ts +87 -43
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +55 -63
- package/dist/hono/routes/prompts.d.ts +6 -6
- package/dist/hono/routes/queue.cjs +202 -0
- package/dist/hono/routes/queue.d.ts +171 -0
- package/dist/hono/routes/queue.d.ts.map +1 -0
- package/dist/hono/routes/queue.js +178 -0
- package/dist/hono/routes/resources.d.ts +1 -1
- package/dist/hono/routes/search.d.ts +33 -7
- package/dist/hono/routes/search.d.ts.map +1 -1
- package/dist/hono/routes/sessions.cjs +65 -11
- package/dist/hono/routes/sessions.d.ts +22 -1
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +65 -11
- package/dist/hono/schemas/responses.cjs +24 -5
- package/dist/hono/schemas/responses.d.ts +799 -81
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +24 -10
- package/package.json +3 -3
|
@@ -55,6 +55,7 @@ __export(responses_exports, {
|
|
|
55
55
|
ToolCallSchema: () => ToolCallSchema,
|
|
56
56
|
ToolConfirmationConfigSchema: () => import_core6.ToolConfirmationConfigSchema,
|
|
57
57
|
ToolSchema: () => ToolSchema,
|
|
58
|
+
UIResourcePartSchema: () => UIResourcePartSchema,
|
|
58
59
|
WebhookSchema: () => WebhookSchema
|
|
59
60
|
});
|
|
60
61
|
module.exports = __toCommonJS(responses_exports);
|
|
@@ -81,7 +82,26 @@ const FilePartSchema = import_zod.z.object({
|
|
|
81
82
|
mimeType: import_zod.z.string().describe("MIME type of the file"),
|
|
82
83
|
filename: import_zod.z.string().optional().describe("Optional filename")
|
|
83
84
|
}).strict().describe("File content part");
|
|
84
|
-
const
|
|
85
|
+
const UIResourcePartSchema = import_zod.z.object({
|
|
86
|
+
type: import_zod.z.literal("ui-resource").describe("Part type: ui-resource"),
|
|
87
|
+
uri: import_zod.z.string().describe("URI identifying the UI resource (must start with ui://)"),
|
|
88
|
+
mimeType: import_zod.z.string().describe("MIME type: text/html, text/uri-list, or application/vnd.mcp-ui.remote-dom"),
|
|
89
|
+
content: import_zod.z.string().optional().describe("Inline HTML content or URL"),
|
|
90
|
+
blob: import_zod.z.string().optional().describe("Base64-encoded content (alternative to content)"),
|
|
91
|
+
metadata: import_zod.z.object({
|
|
92
|
+
title: import_zod.z.string().optional().describe("Display title for the UI resource"),
|
|
93
|
+
preferredSize: import_zod.z.object({
|
|
94
|
+
width: import_zod.z.number().describe("Preferred width in pixels"),
|
|
95
|
+
height: import_zod.z.number().describe("Preferred height in pixels")
|
|
96
|
+
}).strict().optional().describe("Preferred rendering size")
|
|
97
|
+
}).strict().optional().describe("Optional metadata for the UI resource")
|
|
98
|
+
}).strict().describe("UI Resource content part for MCP-UI interactive components");
|
|
99
|
+
const ContentPartSchema = import_zod.z.discriminatedUnion("type", [
|
|
100
|
+
TextPartSchema,
|
|
101
|
+
ImagePartSchema,
|
|
102
|
+
FilePartSchema,
|
|
103
|
+
UIResourcePartSchema
|
|
104
|
+
]).describe("Message content part (text, image, file, or UI resource)");
|
|
85
105
|
const ToolCallSchema = import_zod.z.object({
|
|
86
106
|
id: import_zod.z.string().describe("Unique identifier for this tool call"),
|
|
87
107
|
type: import_zod.z.literal("function").describe("Tool call type (currently only function is supported)"),
|
|
@@ -105,10 +125,10 @@ const InternalMessageSchema = import_zod.z.object({
|
|
|
105
125
|
tokenUsage: TokenUsageSchema.optional().describe("Optional token usage accounting"),
|
|
106
126
|
model: import_zod.z.string().optional().describe("Model identifier for assistant messages"),
|
|
107
127
|
provider: import_zod.z.enum(import_core.LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
|
|
108
|
-
router: import_zod.z.enum(import_core.LLM_ROUTERS).optional().describe("Router metadata for assistant messages"),
|
|
109
128
|
toolCalls: import_zod.z.array(ToolCallSchema).optional().describe("Tool calls made by the assistant"),
|
|
110
129
|
toolCallId: import_zod.z.string().optional().describe("ID of the tool call this message responds to"),
|
|
111
|
-
name: import_zod.z.string().optional().describe("Name of the tool that produced this result")
|
|
130
|
+
name: import_zod.z.string().optional().describe("Name of the tool that produced this result"),
|
|
131
|
+
success: import_zod.z.boolean().optional().describe("Whether tool execution succeeded (present for role=tool messages)")
|
|
112
132
|
}).strict().describe("Internal message representation");
|
|
113
133
|
const LLMConfigResponseSchema = import_core.LLMConfigBaseSchema.omit({ apiKey: true }).extend({
|
|
114
134
|
hasApiKey: import_zod.z.boolean().optional().describe("Whether an API key is configured")
|
|
@@ -163,7 +183,6 @@ const CatalogModelInfoSchema = import_zod.z.object({
|
|
|
163
183
|
maxInputTokens: import_zod.z.number().int().positive().describe("Maximum input tokens"),
|
|
164
184
|
default: import_zod.z.boolean().optional().describe("Whether this is a default model"),
|
|
165
185
|
supportedFileTypes: import_zod.z.array(import_zod.z.enum(["audio", "pdf", "image"])).describe("File types this model supports"),
|
|
166
|
-
supportedRouters: import_zod.z.array(import_zod.z.enum(["vercel", "in-built"])).optional().describe("Routing strategies this model supports"),
|
|
167
186
|
displayName: import_zod.z.string().optional().describe("Human-readable display name"),
|
|
168
187
|
pricing: import_zod.z.object({
|
|
169
188
|
inputPerM: import_zod.z.number().describe("Input cost per million tokens (USD)"),
|
|
@@ -178,7 +197,6 @@ const ProviderCatalogSchema = import_zod.z.object({
|
|
|
178
197
|
name: import_zod.z.string().describe("Provider display name"),
|
|
179
198
|
hasApiKey: import_zod.z.boolean().describe("Whether API key is configured"),
|
|
180
199
|
primaryEnvVar: import_zod.z.string().describe("Primary environment variable for API key"),
|
|
181
|
-
supportedRouters: import_zod.z.array(import_zod.z.enum(["vercel", "in-built"])).describe("Routing strategies supported by this provider"),
|
|
182
200
|
supportsBaseURL: import_zod.z.boolean().describe("Whether custom base URLs are supported"),
|
|
183
201
|
models: import_zod.z.array(CatalogModelInfoSchema).describe("Models available from this provider"),
|
|
184
202
|
supportedFileTypes: import_zod.z.array(import_zod.z.enum(["audio", "pdf", "image"])).describe("Provider-level file type support")
|
|
@@ -295,5 +313,6 @@ const DeleteResponseSchema = import_zod.z.object({
|
|
|
295
313
|
ToolCallSchema,
|
|
296
314
|
ToolConfirmationConfigSchema,
|
|
297
315
|
ToolSchema,
|
|
316
|
+
UIResourcePartSchema,
|
|
298
317
|
WebhookSchema
|
|
299
318
|
});
|