@dexto/server 1.6.1 → 1.6.3

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.
@@ -23,6 +23,7 @@ __export(hono_exports, {
23
23
  module.exports = __toCommonJS(hono_exports);
24
24
  var import_zod_openapi = require("@hono/zod-openapi");
25
25
  var import_core = require("@dexto/core");
26
+ var import_agent_management = require("@dexto/agent-management");
26
27
  var import_health = require("./routes/health.js");
27
28
  var import_greeting = require("./routes/greeting.js");
28
29
  var import_messages = require("./routes/messages.js");
@@ -59,7 +60,35 @@ var import_node_path = require("node:path");
59
60
  const import_meta = {};
60
61
  const __filename = (0, import_node_url.fileURLToPath)(import_meta.url);
61
62
  const __dirname = (0, import_node_path.dirname)(__filename);
62
- const packageJson = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.join)(__dirname, "../../package.json"), "utf-8"));
63
+ function readPackageVersion(packageJsonPath) {
64
+ if (!(0, import_node_fs.existsSync)(packageJsonPath)) {
65
+ return void 0;
66
+ }
67
+ try {
68
+ const content = (0, import_node_fs.readFileSync)(packageJsonPath, "utf-8");
69
+ const packageJson = JSON.parse(content);
70
+ if (typeof packageJson.version === "string" && packageJson.version.length > 0) {
71
+ return packageJson.version;
72
+ }
73
+ } catch {
74
+ }
75
+ return void 0;
76
+ }
77
+ function resolveServerVersion() {
78
+ const localVersion = readPackageVersion((0, import_node_path.join)(__dirname, "../../package.json"));
79
+ if (localVersion) {
80
+ return localVersion;
81
+ }
82
+ const packageRoot = (0, import_agent_management.getDextoPackageRoot)();
83
+ if (packageRoot) {
84
+ const standaloneVersion = readPackageVersion((0, import_node_path.join)(packageRoot, "package.json"));
85
+ if (standaloneVersion) {
86
+ return standaloneVersion;
87
+ }
88
+ }
89
+ return process.env.DEXTO_CLI_VERSION ?? "0.0.0";
90
+ }
91
+ const serverVersion = resolveServerVersion();
63
92
  const dummyAgentsContext = {
64
93
  switchAgentById: async () => {
65
94
  throw new Error("Multi-agent features not available in single-agent mode");
@@ -119,7 +148,7 @@ function createDextoApp(options) {
119
148
  openapi: "3.0.0",
120
149
  info: {
121
150
  title: "Dexto API",
122
- version: packageJson.version,
151
+ version: serverVersion,
123
152
  description: "OpenAPI spec for the Dexto REST API server"
124
153
  },
125
154
  servers: [
@@ -2776,13 +2776,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2776
2776
  config: {
2777
2777
  model: string;
2778
2778
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
2779
+ reasoning?: {
2780
+ variant: string;
2781
+ budgetTokens?: number | undefined | undefined;
2782
+ } | undefined;
2779
2783
  maxIterations?: number | undefined;
2780
2784
  baseURL?: string | undefined;
2781
2785
  maxInputTokens?: number | undefined;
2782
2786
  maxOutputTokens?: number | undefined;
2783
2787
  temperature?: number | undefined;
2784
2788
  allowedMediaTypes?: string[] | undefined;
2785
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2786
2789
  hasApiKey?: boolean | undefined;
2787
2790
  displayName?: string | undefined;
2788
2791
  };
@@ -3216,12 +3219,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3216
3219
  model?: string | undefined;
3217
3220
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3218
3221
  maxInputTokens?: number | undefined;
3222
+ reasoning?: {
3223
+ variant: string;
3224
+ budgetTokens?: number | undefined;
3225
+ } | null | undefined;
3226
+ temperature?: number | undefined;
3219
3227
  maxIterations?: number | undefined;
3220
3228
  baseURL?: string | undefined;
3221
3229
  maxOutputTokens?: number | undefined;
3222
- temperature?: number | undefined;
3223
3230
  allowedMediaTypes?: string[] | undefined;
3224
- reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
3225
3231
  } & {
3226
3232
  sessionId?: string | undefined;
3227
3233
  };
@@ -3230,13 +3236,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3230
3236
  config: {
3231
3237
  model: string;
3232
3238
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
3239
+ reasoning?: {
3240
+ variant: string;
3241
+ budgetTokens?: number | undefined | undefined;
3242
+ } | undefined;
3233
3243
  maxIterations?: number | undefined;
3234
3244
  baseURL?: string | undefined;
3235
3245
  maxInputTokens?: number | undefined;
3236
3246
  maxOutputTokens?: number | undefined;
3237
3247
  temperature?: number | undefined;
3238
3248
  allowedMediaTypes?: string[] | undefined;
3239
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3240
3249
  hasApiKey?: boolean | undefined;
3241
3250
  };
3242
3251
  sessionId?: string | undefined;
@@ -3255,7 +3264,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3255
3264
  provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
3256
3265
  apiKey?: string | undefined | undefined;
3257
3266
  baseURL?: string | undefined | undefined;
3258
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined | undefined;
3267
+ reasoning?: {
3268
+ variant: string;
3269
+ budgetTokens?: number | undefined | undefined;
3270
+ } | undefined;
3259
3271
  filePath?: string | undefined | undefined;
3260
3272
  displayName?: string | undefined | undefined;
3261
3273
  maxInputTokens?: number | undefined | undefined;
@@ -3275,7 +3287,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3275
3287
  provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3276
3288
  apiKey?: string | undefined;
3277
3289
  baseURL?: string | undefined;
3278
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3290
+ reasoning?: {
3291
+ variant: string;
3292
+ budgetTokens?: number | undefined;
3293
+ } | undefined;
3279
3294
  filePath?: string | undefined;
3280
3295
  displayName?: string | undefined;
3281
3296
  maxInputTokens?: number | undefined;
@@ -3288,7 +3303,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3288
3303
  provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
3289
3304
  apiKey?: string | undefined | undefined;
3290
3305
  baseURL?: string | undefined | undefined;
3291
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined | undefined;
3306
+ reasoning?: {
3307
+ variant: string;
3308
+ budgetTokens?: number | undefined | undefined;
3309
+ } | undefined;
3292
3310
  filePath?: string | undefined | undefined;
3293
3311
  displayName?: string | undefined | undefined;
3294
3312
  maxInputTokens?: number | undefined | undefined;
@@ -3338,6 +3356,17 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3338
3356
  };
3339
3357
  };
3340
3358
  output: {
3359
+ reasoning: {
3360
+ capable: boolean;
3361
+ paradigm: "effort" | "adaptive-effort" | "thinking-level" | "budget" | "none";
3362
+ variants: {
3363
+ id: string;
3364
+ label: string;
3365
+ }[];
3366
+ supportedVariants: string[];
3367
+ supportsBudgetTokens: boolean;
3368
+ defaultVariant?: string | undefined;
3369
+ };
3341
3370
  model: string;
3342
3371
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
3343
3372
  supportedFileTypes: ("image" | "audio" | "pdf")[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2QvC;AAID,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAGxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
2
  import { logger } from "@dexto/core";
3
+ import { getDextoPackageRoot } from "@dexto/agent-management";
3
4
  import { createHealthRouter } from "./routes/health.js";
4
5
  import { createGreetingRouter } from "./routes/greeting.js";
5
6
  import { createMessagesRouter } from "./routes/messages.js";
@@ -33,12 +34,40 @@ import { handleHonoError } from "./middleware/error.js";
33
34
  import { prettyJsonMiddleware, redactionMiddleware } from "./middleware/redaction.js";
34
35
  import { createCorsMiddleware } from "./middleware/cors.js";
35
36
  import { createAuthMiddleware } from "./middleware/auth.js";
36
- import { readFileSync } from "node:fs";
37
+ import { existsSync, readFileSync } from "node:fs";
37
38
  import { fileURLToPath } from "node:url";
38
39
  import { dirname, join } from "node:path";
39
40
  const __filename = fileURLToPath(import.meta.url);
40
41
  const __dirname = dirname(__filename);
41
- const packageJson = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf-8"));
42
+ function readPackageVersion(packageJsonPath) {
43
+ if (!existsSync(packageJsonPath)) {
44
+ return void 0;
45
+ }
46
+ try {
47
+ const content = readFileSync(packageJsonPath, "utf-8");
48
+ const packageJson = JSON.parse(content);
49
+ if (typeof packageJson.version === "string" && packageJson.version.length > 0) {
50
+ return packageJson.version;
51
+ }
52
+ } catch {
53
+ }
54
+ return void 0;
55
+ }
56
+ function resolveServerVersion() {
57
+ const localVersion = readPackageVersion(join(__dirname, "../../package.json"));
58
+ if (localVersion) {
59
+ return localVersion;
60
+ }
61
+ const packageRoot = getDextoPackageRoot();
62
+ if (packageRoot) {
63
+ const standaloneVersion = readPackageVersion(join(packageRoot, "package.json"));
64
+ if (standaloneVersion) {
65
+ return standaloneVersion;
66
+ }
67
+ }
68
+ return process.env.DEXTO_CLI_VERSION ?? "0.0.0";
69
+ }
70
+ const serverVersion = resolveServerVersion();
42
71
  const dummyAgentsContext = {
43
72
  switchAgentById: async () => {
44
73
  throw new Error("Multi-agent features not available in single-agent mode");
@@ -98,7 +127,7 @@ function createDextoApp(options) {
98
127
  openapi: "3.0.0",
99
128
  info: {
100
129
  title: "Dexto API",
101
- version: packageJson.version,
130
+ version: serverVersion,
102
131
  description: "OpenAPI spec for the Dexto REST API server"
103
132
  },
104
133
  servers: [
@@ -246,7 +246,40 @@ function createLlmRouter(getAgent) {
246
246
  schema: import_zod_openapi.z.object({
247
247
  provider: import_zod_openapi.z.enum(import_core2.LLM_PROVIDERS).describe("Provider name"),
248
248
  model: import_zod_openapi.z.string().describe("Model name as provided"),
249
- supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_core2.SUPPORTED_FILE_TYPES)).describe("File types supported by this model")
249
+ supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_core2.SUPPORTED_FILE_TYPES)).describe("File types supported by this model"),
250
+ reasoning: import_zod_openapi.z.object({
251
+ capable: import_zod_openapi.z.boolean().describe(
252
+ "Whether Dexto considers this provider/model reasoning-capable (derived from registry metadata plus explicit provider/model rules)"
253
+ ),
254
+ paradigm: import_zod_openapi.z.enum([
255
+ "effort",
256
+ "adaptive-effort",
257
+ "thinking-level",
258
+ "budget",
259
+ "none"
260
+ ]).describe("Reasoning control paradigm for this model"),
261
+ variants: import_zod_openapi.z.array(
262
+ import_zod_openapi.z.object({
263
+ id: import_zod_openapi.z.string().describe(
264
+ "Native reasoning variant identifier"
265
+ ),
266
+ label: import_zod_openapi.z.string().describe(
267
+ "Display label for the native reasoning variant"
268
+ )
269
+ }).strict()
270
+ ).describe("Native reasoning variants exposed to users"),
271
+ supportedVariants: import_zod_openapi.z.array(import_zod_openapi.z.string()).describe(
272
+ "Native reasoning variant IDs supported for this model/provider"
273
+ ),
274
+ defaultVariant: import_zod_openapi.z.string().optional().describe(
275
+ "Default reasoning variant used when no explicit override is set"
276
+ ),
277
+ supportsBudgetTokens: import_zod_openapi.z.boolean().describe(
278
+ "Whether this provider/model supports a budgetTokens-style escape hatch"
279
+ )
280
+ }).strict().describe(
281
+ "Reasoning tuning capabilities derived from registry metadata and explicit provider/model rules"
282
+ )
250
283
  })
251
284
  }
252
285
  }
@@ -412,10 +445,12 @@ function createLlmRouter(getAgent) {
412
445
  const providerInfo = import_core2.LLM_REGISTRY[provider];
413
446
  supportedFileTypes = providerInfo?.supportedFileTypes ?? [];
414
447
  }
448
+ const reasoning = (0, import_core2.getReasoningProfile)(provider, model);
415
449
  return ctx.json({
416
450
  provider,
417
451
  model,
418
- supportedFileTypes
452
+ supportedFileTypes,
453
+ reasoning
419
454
  });
420
455
  });
421
456
  }
@@ -14,13 +14,16 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
14
14
  config: {
15
15
  model: string;
16
16
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
17
+ reasoning?: {
18
+ variant: string;
19
+ budgetTokens?: number | undefined | undefined;
20
+ } | undefined;
17
21
  maxIterations?: number | undefined;
18
22
  baseURL?: string | undefined;
19
23
  maxInputTokens?: number | undefined;
20
24
  maxOutputTokens?: number | undefined;
21
25
  temperature?: number | undefined;
22
26
  allowedMediaTypes?: string[] | undefined;
23
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
24
27
  hasApiKey?: boolean | undefined;
25
28
  displayName?: string | undefined;
26
29
  };
@@ -454,12 +457,15 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
454
457
  model?: string | undefined;
455
458
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
456
459
  maxInputTokens?: number | undefined;
460
+ reasoning?: {
461
+ variant: string;
462
+ budgetTokens?: number | undefined;
463
+ } | null | undefined;
464
+ temperature?: number | undefined;
457
465
  maxIterations?: number | undefined;
458
466
  baseURL?: string | undefined;
459
467
  maxOutputTokens?: number | undefined;
460
- temperature?: number | undefined;
461
468
  allowedMediaTypes?: string[] | undefined;
462
- reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
463
469
  } & {
464
470
  sessionId?: string | undefined;
465
471
  };
@@ -468,13 +474,16 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
468
474
  config: {
469
475
  model: string;
470
476
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
477
+ reasoning?: {
478
+ variant: string;
479
+ budgetTokens?: number | undefined | undefined;
480
+ } | undefined;
471
481
  maxIterations?: number | undefined;
472
482
  baseURL?: string | undefined;
473
483
  maxInputTokens?: number | undefined;
474
484
  maxOutputTokens?: number | undefined;
475
485
  temperature?: number | undefined;
476
486
  allowedMediaTypes?: string[] | undefined;
477
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
478
487
  hasApiKey?: boolean | undefined;
479
488
  };
480
489
  sessionId?: string | undefined;
@@ -493,7 +502,10 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
493
502
  provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
494
503
  apiKey?: string | undefined | undefined;
495
504
  baseURL?: string | undefined | undefined;
496
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined | undefined;
505
+ reasoning?: {
506
+ variant: string;
507
+ budgetTokens?: number | undefined | undefined;
508
+ } | undefined;
497
509
  filePath?: string | undefined | undefined;
498
510
  displayName?: string | undefined | undefined;
499
511
  maxInputTokens?: number | undefined | undefined;
@@ -513,7 +525,10 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
513
525
  provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
514
526
  apiKey?: string | undefined;
515
527
  baseURL?: string | undefined;
516
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
528
+ reasoning?: {
529
+ variant: string;
530
+ budgetTokens?: number | undefined;
531
+ } | undefined;
517
532
  filePath?: string | undefined;
518
533
  displayName?: string | undefined;
519
534
  maxInputTokens?: number | undefined;
@@ -526,7 +541,10 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
526
541
  provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
527
542
  apiKey?: string | undefined | undefined;
528
543
  baseURL?: string | undefined | undefined;
529
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined | undefined;
544
+ reasoning?: {
545
+ variant: string;
546
+ budgetTokens?: number | undefined | undefined;
547
+ } | undefined;
530
548
  filePath?: string | undefined | undefined;
531
549
  displayName?: string | undefined | undefined;
532
550
  maxInputTokens?: number | undefined | undefined;
@@ -576,6 +594,17 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
576
594
  };
577
595
  };
578
596
  output: {
597
+ reasoning: {
598
+ capable: boolean;
599
+ paradigm: "effort" | "adaptive-effort" | "thinking-level" | "budget" | "none";
600
+ variants: {
601
+ id: string;
602
+ label: string;
603
+ }[];
604
+ supportedVariants: string[];
605
+ supportsBudgetTokens: boolean;
606
+ defaultVariant?: string | undefined;
607
+ };
579
608
  model: string;
580
609
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
581
610
  supportedFileTypes: ("image" | "audio" | "pdf")[];
@@ -1 +1 @@
1
- {"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/llm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAuB9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAOpC,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAmFrE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAohBD"}
@@ -8,6 +8,7 @@ import {
8
8
  getAllModelsForProvider,
9
9
  getCuratedModelsForProvider,
10
10
  getSupportedFileTypesForModel,
11
+ getReasoningProfile,
11
12
  LLMUpdatesSchema
12
13
  } from "@dexto/core";
13
14
  import {
@@ -243,7 +244,40 @@ function createLlmRouter(getAgent) {
243
244
  schema: z.object({
244
245
  provider: z.enum(LLM_PROVIDERS).describe("Provider name"),
245
246
  model: z.string().describe("Model name as provided"),
246
- supportedFileTypes: z.array(z.enum(SUPPORTED_FILE_TYPES)).describe("File types supported by this model")
247
+ supportedFileTypes: z.array(z.enum(SUPPORTED_FILE_TYPES)).describe("File types supported by this model"),
248
+ reasoning: z.object({
249
+ capable: z.boolean().describe(
250
+ "Whether Dexto considers this provider/model reasoning-capable (derived from registry metadata plus explicit provider/model rules)"
251
+ ),
252
+ paradigm: z.enum([
253
+ "effort",
254
+ "adaptive-effort",
255
+ "thinking-level",
256
+ "budget",
257
+ "none"
258
+ ]).describe("Reasoning control paradigm for this model"),
259
+ variants: z.array(
260
+ z.object({
261
+ id: z.string().describe(
262
+ "Native reasoning variant identifier"
263
+ ),
264
+ label: z.string().describe(
265
+ "Display label for the native reasoning variant"
266
+ )
267
+ }).strict()
268
+ ).describe("Native reasoning variants exposed to users"),
269
+ supportedVariants: z.array(z.string()).describe(
270
+ "Native reasoning variant IDs supported for this model/provider"
271
+ ),
272
+ defaultVariant: z.string().optional().describe(
273
+ "Default reasoning variant used when no explicit override is set"
274
+ ),
275
+ supportsBudgetTokens: z.boolean().describe(
276
+ "Whether this provider/model supports a budgetTokens-style escape hatch"
277
+ )
278
+ }).strict().describe(
279
+ "Reasoning tuning capabilities derived from registry metadata and explicit provider/model rules"
280
+ )
247
281
  })
248
282
  }
249
283
  }
@@ -409,10 +443,12 @@ function createLlmRouter(getAgent) {
409
443
  const providerInfo = LLM_REGISTRY[provider];
410
444
  supportedFileTypes = providerInfo?.supportedFileTypes ?? [];
411
445
  }
446
+ const reasoning = getReasoningProfile(provider, model);
412
447
  return ctx.json({
413
448
  provider,
414
449
  model,
415
- supportedFileTypes
450
+ supportedFileTypes,
451
+ reasoning
416
452
  });
417
453
  });
418
454
  }
@@ -530,30 +530,45 @@ export declare const LLMConfigResponseSchema: z.ZodObject<Omit<{
530
530
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
531
531
  temperature: z.ZodOptional<z.ZodNumber>;
532
532
  allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
533
- reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
533
+ reasoning: z.ZodOptional<z.ZodObject<{
534
+ variant: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
535
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
536
+ }, "strict", z.ZodTypeAny, {
537
+ variant: string;
538
+ budgetTokens?: number | undefined;
539
+ }, {
540
+ variant: string;
541
+ budgetTokens?: number | undefined;
542
+ }>>;
534
543
  }, "apiKey"> & {
535
544
  hasApiKey: z.ZodOptional<z.ZodBoolean>;
536
545
  }, "strict", z.ZodTypeAny, {
537
546
  model: string;
538
547
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
548
+ reasoning?: {
549
+ variant: string;
550
+ budgetTokens?: number | undefined;
551
+ } | undefined;
539
552
  maxIterations?: number | undefined;
540
553
  baseURL?: string | undefined;
541
554
  maxInputTokens?: number | undefined;
542
555
  maxOutputTokens?: number | undefined;
543
556
  temperature?: number | undefined;
544
557
  allowedMediaTypes?: string[] | undefined;
545
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
546
558
  hasApiKey?: boolean | undefined;
547
559
  }, {
548
560
  model: string;
549
561
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
562
+ reasoning?: {
563
+ variant: string;
564
+ budgetTokens?: number | undefined;
565
+ } | undefined;
550
566
  maxIterations?: number | undefined;
551
567
  baseURL?: string | undefined;
552
568
  maxInputTokens?: number | undefined;
553
569
  maxOutputTokens?: number | undefined;
554
570
  temperature?: number | undefined;
555
571
  allowedMediaTypes?: string[] | undefined;
556
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
557
572
  hasApiKey?: boolean | undefined;
558
573
  }>;
559
574
  export declare const LLMConfigSchema: z.ZodObject<{
@@ -566,29 +581,44 @@ export declare const LLMConfigSchema: z.ZodObject<{
566
581
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
567
582
  temperature: z.ZodOptional<z.ZodNumber>;
568
583
  allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
569
- reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
584
+ reasoning: z.ZodOptional<z.ZodObject<{
585
+ variant: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
586
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
587
+ }, "strict", z.ZodTypeAny, {
588
+ variant: string;
589
+ budgetTokens?: number | undefined;
590
+ }, {
591
+ variant: string;
592
+ budgetTokens?: number | undefined;
593
+ }>>;
570
594
  }, "strict", z.ZodTypeAny, {
571
595
  model: string;
572
596
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
573
597
  apiKey?: string | undefined;
574
598
  maxInputTokens?: number | undefined;
599
+ reasoning?: {
600
+ variant: string;
601
+ budgetTokens?: number | undefined;
602
+ } | undefined;
603
+ temperature?: number | undefined;
575
604
  maxIterations?: number | undefined;
576
605
  baseURL?: string | undefined;
577
606
  maxOutputTokens?: number | undefined;
578
- temperature?: number | undefined;
579
607
  allowedMediaTypes?: string[] | undefined;
580
- reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
581
608
  }, {
582
609
  model: string;
583
610
  provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
584
611
  apiKey?: string | undefined;
585
612
  maxInputTokens?: number | undefined;
613
+ reasoning?: {
614
+ variant: string;
615
+ budgetTokens?: number | undefined;
616
+ } | undefined;
617
+ temperature?: number | undefined;
586
618
  maxIterations?: number | undefined;
587
619
  baseURL?: string | undefined;
588
620
  maxOutputTokens?: number | undefined;
589
- temperature?: number | undefined;
590
621
  allowedMediaTypes?: string[] | undefined;
591
- reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
592
622
  }>;
593
623
  export type LLMConfigResponse = z.output<typeof LLMConfigResponseSchema>;
594
624
  export { AgentCardSchema, type AgentCard } from '@dexto/core';
@@ -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;AAqBxB,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,oBAAo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
27
  "dependencies": {
28
28
  "@hono/node-server": "1.19.5",
29
29
  "@hono/zod-openapi": "^0.19.1",
30
- "hono": "^4.6.8",
30
+ "hono": "^4.11.10",
31
31
  "ws": "^8.18.1",
32
32
  "yaml": "^2.7.1",
33
- "@modelcontextprotocol/sdk": "^1.25.2",
34
- "@dexto/agent-config": "1.6.1",
35
- "@dexto/agent-management": "1.6.1",
36
- "@dexto/core": "1.6.1",
37
- "@dexto/image-local": "1.6.1",
38
- "@dexto/storage": "1.6.1",
39
- "@dexto/tools-scheduler": "1.6.1"
33
+ "@modelcontextprotocol/sdk": "^1.26.0",
34
+ "@dexto/agent-config": "1.6.3",
35
+ "@dexto/agent-management": "1.6.3",
36
+ "@dexto/core": "1.6.3",
37
+ "@dexto/image-local": "1.6.3",
38
+ "@dexto/storage": "1.6.3",
39
+ "@dexto/tools-scheduler": "1.6.3"
40
40
  },
41
41
  "files": [
42
42
  "dist",