@dexto/server 1.8.0 → 1.8.2
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/events/usage-event-subscriber.cjs +3 -2
- package/dist/events/usage-event-subscriber.d.ts.map +1 -1
- package/dist/events/usage-event-subscriber.js +1 -2
- package/dist/events/usage-event-types.d.ts +1 -1
- package/dist/events/usage-event-types.d.ts.map +1 -1
- package/dist/hono/routes/agents.d.ts.map +1 -1
- package/dist/hono/routes/key.cjs +5 -5
- package/dist/hono/routes/key.js +1 -1
- package/dist/hono/routes/llm.cjs +29 -29
- package/dist/hono/routes/llm.d.ts.map +1 -1
- package/dist/hono/routes/llm.js +11 -6
- package/dist/hono/routes/messages.cjs +2 -1
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +2 -1
- package/dist/hono/schemas/responses.cjs +5 -4
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +2 -4
- package/package.json +8 -7
|
@@ -23,6 +23,7 @@ __export(usage_event_subscriber_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(usage_event_subscriber_exports);
|
|
24
24
|
var import_events = require("events");
|
|
25
25
|
var import_core = require("@dexto/core");
|
|
26
|
+
var import_llm = require("@dexto/llm");
|
|
26
27
|
const OUTBOX_KEY_PREFIX = "usage-outbox:";
|
|
27
28
|
const DEFAULT_DELIVERY_OPTIONS = {
|
|
28
29
|
fetchFn: fetch,
|
|
@@ -129,11 +130,11 @@ class UsageEventSubscriber {
|
|
|
129
130
|
return null;
|
|
130
131
|
}
|
|
131
132
|
const resolvedCostBreakdown = payload.costBreakdown ?? (payload.provider && payload.model ? (() => {
|
|
132
|
-
const pricing = (0,
|
|
133
|
+
const pricing = (0, import_llm.getModelPricing)(payload.provider, payload.model);
|
|
133
134
|
if (!pricing) {
|
|
134
135
|
return void 0;
|
|
135
136
|
}
|
|
136
|
-
return (0,
|
|
137
|
+
return (0, import_llm.calculateCostBreakdown)(payload.tokenUsage, pricing);
|
|
137
138
|
})() : void 0);
|
|
138
139
|
const resolvedEstimatedCost = payload.estimatedCost ?? resolvedCostBreakdown?.totalUsd;
|
|
139
140
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-event-subscriber.d.ts","sourceRoot":"","sources":["../../src/events/usage-event-subscriber.ts"],"names":[],"mappings":"AACA,OAAO,EACH,aAAa,
|
|
1
|
+
{"version":3,"file":"usage-event-subscriber.d.ts","sourceRoot":"","sources":["../../src/events/usage-event-subscriber.ts"],"names":[],"mappings":"AACA,OAAO,EACH,aAAa,EAIb,KAAK,QAAQ,EAChB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAGR,yBAAyB,EAC5B,MAAM,wBAAwB,CAAC;AAqBhC,UAAU,0BAA2B,SAAQ,yBAAyB;IAClE,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAcD,qBAAa,oBAAqB,YAAW,eAAe;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IACpC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAC3C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAsC;IACtE,OAAO,CAAC,eAAe,CAAC,CAAkB;IAC1C,OAAO,CAAC,+BAA+B,CAAC,CAAkB;IAC1D,OAAO,CAAC,aAAa,CAAC,CAAiC;IACvD,OAAO,CAAC,YAAY,CAA8B;IAClD,OAAO,CAAC,0BAA0B,CAAS;IAC3C,OAAO,CAAC,YAAY,CAAS;gBAEjB,MAAM,EAAE,0BAA0B;IA0B9C,SAAS,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IA2BxC,OAAO,IAAI,IAAI;IAmBF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAInC,OAAO,CAAC,eAAe;YAuCT,iBAAiB;YAajB,kBAAkB;YA2BlB,YAAY;YAsBZ,cAAc;CA2E/B"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { setMaxListeners } from "events";
|
|
2
2
|
import {
|
|
3
|
-
calculateCostBreakdown,
|
|
4
|
-
getModelPricing,
|
|
5
3
|
hasMeaningfulTokenUsage,
|
|
6
4
|
logger
|
|
7
5
|
} from "@dexto/core";
|
|
6
|
+
import { calculateCostBreakdown, getModelPricing } from "@dexto/llm";
|
|
8
7
|
const OUTBOX_KEY_PREFIX = "usage-outbox:";
|
|
9
8
|
const DEFAULT_DELIVERY_OPTIONS = {
|
|
10
9
|
fetchFn: fetch,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-event-types.d.ts","sourceRoot":"","sources":["../../src/events/usage-event-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"usage-event-types.d.ts","sourceRoot":"","sources":["../../src/events/usage-event-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,MAAM,CAAC;IACh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/hono/routes/key.cjs
CHANGED
|
@@ -22,7 +22,7 @@ __export(key_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(key_exports);
|
|
24
24
|
var import_zod_openapi = require("@hono/zod-openapi");
|
|
25
|
-
var
|
|
25
|
+
var import_llm = require("@dexto/llm");
|
|
26
26
|
var import_responses = require("../schemas/responses.js");
|
|
27
27
|
var import_agent_management = require("@dexto/agent-management");
|
|
28
28
|
function maskApiKey(key) {
|
|
@@ -33,21 +33,21 @@ function maskApiKey(key) {
|
|
|
33
33
|
return key.slice(0, 7) + "..." + key.slice(-4);
|
|
34
34
|
}
|
|
35
35
|
const GetKeyParamsSchema = import_zod_openapi.z.object({
|
|
36
|
-
provider: import_zod_openapi.z.enum(
|
|
36
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("LLM provider identifier")
|
|
37
37
|
}).describe("Path parameters for API key operations");
|
|
38
38
|
const SaveKeySchema = import_zod_openapi.z.object({
|
|
39
|
-
provider: import_zod_openapi.z.enum(
|
|
39
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("LLM provider identifier (e.g., openai, anthropic)"),
|
|
40
40
|
apiKey: import_zod_openapi.z.string().min(1, "API key is required").describe("API key for the provider (writeOnly - never returned in responses)").openapi({ writeOnly: true })
|
|
41
41
|
}).describe("Request body for saving a provider API key");
|
|
42
42
|
const GetKeyResponseSchema = import_zod_openapi.z.object({
|
|
43
|
-
provider: import_zod_openapi.z.enum(
|
|
43
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("Provider identifier"),
|
|
44
44
|
envVar: import_zod_openapi.z.string().describe("Environment variable name"),
|
|
45
45
|
hasKey: import_zod_openapi.z.boolean().describe("Whether API key is configured"),
|
|
46
46
|
keyValue: import_zod_openapi.z.string().optional().describe("Masked API key value if configured (e.g., sk-proj...xyz4)")
|
|
47
47
|
}).strict().describe("API key status response");
|
|
48
48
|
const SaveKeyResponseSchema = import_zod_openapi.z.object({
|
|
49
49
|
ok: import_zod_openapi.z.literal(true).describe("Operation success indicator"),
|
|
50
|
-
provider: import_zod_openapi.z.enum(
|
|
50
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("Provider for which the key was saved"),
|
|
51
51
|
envVar: import_zod_openapi.z.string().describe("Environment variable name where key was stored")
|
|
52
52
|
}).strict().describe("API key save response");
|
|
53
53
|
const getKeyRoute = (0, import_zod_openapi.createRoute)({
|
package/dist/hono/routes/key.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
2
|
-
import { LLM_PROVIDERS } from "@dexto/
|
|
2
|
+
import { LLM_PROVIDERS } from "@dexto/llm";
|
|
3
3
|
import { BadRequestErrorResponse, InternalErrorResponse } from "../schemas/responses.js";
|
|
4
4
|
import {
|
|
5
5
|
getProviderKeyStatus,
|
package/dist/hono/routes/llm.cjs
CHANGED
|
@@ -23,7 +23,7 @@ __export(llm_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(llm_exports);
|
|
24
24
|
var import_zod_openapi = require("@hono/zod-openapi");
|
|
25
25
|
var import_core = require("@dexto/core");
|
|
26
|
-
var
|
|
26
|
+
var import_llm = require("@dexto/llm");
|
|
27
27
|
var import_agent_management = require("@dexto/agent-management");
|
|
28
28
|
var import_responses = require("../schemas/responses.js");
|
|
29
29
|
const MODEL_PICKER_FEATURED_LIMIT = 8;
|
|
@@ -43,28 +43,28 @@ const CatalogQuerySchema = import_zod_openapi.z.object({
|
|
|
43
43
|
hasKey: import_zod_openapi.z.union([import_zod_openapi.z.literal("true"), import_zod_openapi.z.literal("false"), import_zod_openapi.z.literal("1"), import_zod_openapi.z.literal("0")]).optional().transform(
|
|
44
44
|
(raw) => raw === "true" || raw === "1" ? true : raw === "false" || raw === "0" ? false : void 0
|
|
45
45
|
).describe("Filter by API key presence (true or false)"),
|
|
46
|
-
fileType: import_zod_openapi.z.enum(
|
|
46
|
+
fileType: import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES).optional().describe("Filter by supported file type (audio, pdf, image, video, or document)"),
|
|
47
47
|
defaultOnly: import_zod_openapi.z.union([import_zod_openapi.z.literal("true"), import_zod_openapi.z.literal("false"), import_zod_openapi.z.literal("1"), import_zod_openapi.z.literal("0")]).optional().transform(
|
|
48
48
|
(raw) => raw === "true" || raw === "1" ? true : raw === "false" || raw === "0" ? false : void 0
|
|
49
49
|
).describe("Include only default models (true or false)"),
|
|
50
50
|
mode: import_zod_openapi.z.enum(["grouped", "flat"]).default("grouped").describe("Response format mode (grouped by provider or flat list)")
|
|
51
51
|
}).strict().describe("Query parameters for filtering and formatting the LLM catalog");
|
|
52
|
-
const SwitchLLMBodySchema =
|
|
52
|
+
const SwitchLLMBodySchema = import_core.LLMUpdatesSchema.and(
|
|
53
53
|
import_zod_openapi.z.object({
|
|
54
54
|
sessionId: import_zod_openapi.z.string().optional().describe("Session identifier for session-specific LLM configuration")
|
|
55
55
|
})
|
|
56
56
|
).describe("LLM switch request body with optional session ID and LLM fields");
|
|
57
57
|
const ModelPickerModelRefSchema = import_zod_openapi.z.object({
|
|
58
|
-
provider: import_zod_openapi.z.enum(
|
|
58
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("LLM provider"),
|
|
59
59
|
model: import_zod_openapi.z.string().trim().min(1).describe("Model ID"),
|
|
60
60
|
baseURL: import_zod_openapi.z.string().trim().url().optional().describe("Variant-specific base URL")
|
|
61
61
|
}).strict().describe("Provider/model pair for model picker state operations");
|
|
62
62
|
const ModelPickerEntrySchema = import_zod_openapi.z.object({
|
|
63
|
-
provider: import_zod_openapi.z.enum(
|
|
63
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("LLM provider"),
|
|
64
64
|
model: import_zod_openapi.z.string().describe("Model ID"),
|
|
65
65
|
baseURL: import_zod_openapi.z.string().url().optional().describe("Variant-specific base URL"),
|
|
66
66
|
displayName: import_zod_openapi.z.string().optional().describe("Human-readable model name"),
|
|
67
|
-
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(
|
|
67
|
+
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES)).describe("File types supported by this model"),
|
|
68
68
|
source: import_zod_openapi.z.enum(["catalog", "custom", "local-installed"]).describe("Where this model comes from")
|
|
69
69
|
}).strict().describe("Hydrated model picker entry");
|
|
70
70
|
const ModelPickerErrorSchema = import_responses.StandardErrorEnvelopeSchema.describe(
|
|
@@ -97,7 +97,7 @@ const ModelPickerErrorResponses = {
|
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
const CapabilitiesQuerySchema = import_zod_openapi.z.object({
|
|
100
|
-
provider: import_zod_openapi.z.enum(
|
|
100
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("LLM provider name"),
|
|
101
101
|
model: import_zod_openapi.z.string().min(1).describe("Model name (supports both native and OpenRouter format)")
|
|
102
102
|
}).strict().describe("Query parameters for model capability lookup");
|
|
103
103
|
const SetFavoritesBodySchema = import_zod_openapi.z.object({
|
|
@@ -147,7 +147,7 @@ const catalogRoute = (0, import_zod_openapi.createRoute)({
|
|
|
147
147
|
"application/json": {
|
|
148
148
|
schema: import_zod_openapi.z.union([
|
|
149
149
|
import_zod_openapi.z.object({
|
|
150
|
-
providers: import_zod_openapi.z.partialRecord(import_zod_openapi.z.enum(
|
|
150
|
+
providers: import_zod_openapi.z.partialRecord(import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS), import_responses.ProviderCatalogSchema).describe(
|
|
151
151
|
"Providers grouped by ID with their models and capabilities"
|
|
152
152
|
)
|
|
153
153
|
}).strict().describe("Grouped catalog response (mode=grouped)"),
|
|
@@ -294,9 +294,9 @@ const capabilitiesRoute = (0, import_zod_openapi.createRoute)({
|
|
|
294
294
|
content: {
|
|
295
295
|
"application/json": {
|
|
296
296
|
schema: import_zod_openapi.z.object({
|
|
297
|
-
provider: import_zod_openapi.z.enum(
|
|
297
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).describe("Provider name"),
|
|
298
298
|
model: import_zod_openapi.z.string().describe("Model name as provided"),
|
|
299
|
-
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(
|
|
299
|
+
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES)).describe("File types supported by this model"),
|
|
300
300
|
reasoning: import_zod_openapi.z.object({
|
|
301
301
|
capable: import_zod_openapi.z.boolean().describe(
|
|
302
302
|
"Whether Dexto considers this provider/model reasoning-capable (derived from registry metadata plus explicit provider/model rules)"
|
|
@@ -482,7 +482,7 @@ function createLlmRouter(getAgent) {
|
|
|
482
482
|
const byKey = /* @__PURE__ */ new Map();
|
|
483
483
|
const customSection = [];
|
|
484
484
|
const hydrateStateEntry = (entry) => {
|
|
485
|
-
const providerInfo =
|
|
485
|
+
const providerInfo = import_llm.LLM_REGISTRY[entry.provider];
|
|
486
486
|
const modelInfo = providerInfo.models.find((model) => model.name === entry.model);
|
|
487
487
|
const supportedFileTypes = Array.isArray(modelInfo?.supportedFileTypes) && modelInfo.supportedFileTypes.length > 0 ? modelInfo.supportedFileTypes : providerInfo.supportedFileTypes;
|
|
488
488
|
const source = entry.provider === "local" ? "local-installed" : entry.baseURL ? "custom" : "catalog";
|
|
@@ -495,12 +495,12 @@ function createLlmRouter(getAgent) {
|
|
|
495
495
|
source
|
|
496
496
|
};
|
|
497
497
|
};
|
|
498
|
-
for (const provider of
|
|
498
|
+
for (const provider of import_llm.LLM_PROVIDERS) {
|
|
499
499
|
if (!isProviderEnabled(provider)) {
|
|
500
500
|
continue;
|
|
501
501
|
}
|
|
502
|
-
const providerInfo =
|
|
503
|
-
for (const model of (0,
|
|
502
|
+
const providerInfo = import_llm.LLM_REGISTRY[provider];
|
|
503
|
+
for (const model of (0, import_core.getAllModelsForProvider)(provider)) {
|
|
504
504
|
const supportedFileTypes = Array.isArray(model.supportedFileTypes) && model.supportedFileTypes.length > 0 ? model.supportedFileTypes : providerInfo.supportedFileTypes;
|
|
505
505
|
const entry = {
|
|
506
506
|
provider,
|
|
@@ -521,7 +521,7 @@ function createLlmRouter(getAgent) {
|
|
|
521
521
|
if (!isProviderEnabled(provider)) {
|
|
522
522
|
continue;
|
|
523
523
|
}
|
|
524
|
-
const providerInfo =
|
|
524
|
+
const providerInfo = import_llm.LLM_REGISTRY[provider];
|
|
525
525
|
const entry = {
|
|
526
526
|
provider,
|
|
527
527
|
model: customModel.name,
|
|
@@ -533,10 +533,10 @@ function createLlmRouter(getAgent) {
|
|
|
533
533
|
byKey.set((0, import_agent_management.toModelPickerKey)(entry), entry);
|
|
534
534
|
customSection.push(entry);
|
|
535
535
|
}
|
|
536
|
-
const localProviderSupportedFileTypes =
|
|
536
|
+
const localProviderSupportedFileTypes = import_llm.LLM_REGISTRY.local.supportedFileTypes;
|
|
537
537
|
const installedLocalModels = await (0, import_agent_management.getAllInstalledModels)();
|
|
538
538
|
for (const installedModel of installedLocalModels) {
|
|
539
|
-
const modelInfo = (0,
|
|
539
|
+
const modelInfo = (0, import_core.getLocalModelById)(installedModel.id);
|
|
540
540
|
const entry = {
|
|
541
541
|
provider: "local",
|
|
542
542
|
model: installedModel.id,
|
|
@@ -546,8 +546,8 @@ function createLlmRouter(getAgent) {
|
|
|
546
546
|
};
|
|
547
547
|
byKey.set((0, import_agent_management.toModelPickerKey)(entry), entry);
|
|
548
548
|
}
|
|
549
|
-
const featuredProviders =
|
|
550
|
-
const featured = (0,
|
|
549
|
+
const featuredProviders = import_llm.LLM_PROVIDERS.filter((provider) => isProviderEnabled(provider));
|
|
550
|
+
const featured = (0, import_core.getCuratedModelRefsForProviders)({
|
|
551
551
|
providers: featuredProviders,
|
|
552
552
|
max: MODEL_PICKER_FEATURED_LIMIT
|
|
553
553
|
}).map((ref) => byKey.get((0, import_agent_management.toModelPickerKey)(ref))).filter((entry) => Boolean(entry));
|
|
@@ -588,7 +588,7 @@ function createLlmRouter(getAgent) {
|
|
|
588
588
|
const currentConfig = sessionId ? agent.getEffectiveConfig(sessionId).llm : agent.getCurrentLLMConfig();
|
|
589
589
|
let displayName;
|
|
590
590
|
try {
|
|
591
|
-
const model =
|
|
591
|
+
const model = import_llm.LLM_REGISTRY[currentConfig.provider]?.models.find(
|
|
592
592
|
(m) => m.name.toLowerCase() === String(currentConfig.model).toLowerCase()
|
|
593
593
|
);
|
|
594
594
|
displayName = model?.displayName || void 0;
|
|
@@ -621,25 +621,25 @@ function createLlmRouter(getAgent) {
|
|
|
621
621
|
const includeModels = queryParams.includeModels ?? true;
|
|
622
622
|
const scope = queryParams.scope ?? "all";
|
|
623
623
|
const providers = {};
|
|
624
|
-
for (const provider of
|
|
624
|
+
for (const provider of import_llm.LLM_PROVIDERS) {
|
|
625
625
|
if (provider === "dexto-nova" && !(0, import_agent_management.isDextoAuthEnabled)()) {
|
|
626
626
|
continue;
|
|
627
627
|
}
|
|
628
|
-
const info =
|
|
628
|
+
const info = import_llm.LLM_REGISTRY[provider];
|
|
629
629
|
const displayName = provider === "dexto-nova" ? "Dexto Nova" : provider.charAt(0).toUpperCase() + provider.slice(1);
|
|
630
630
|
const keyStatus = (0, import_agent_management.getProviderKeyStatus)(provider);
|
|
631
631
|
const models = (() => {
|
|
632
632
|
if (!includeModels) return [];
|
|
633
633
|
if (scope === "all") {
|
|
634
|
-
return (0,
|
|
634
|
+
return (0, import_core.getAllModelsForProvider)(provider);
|
|
635
635
|
}
|
|
636
|
-
return (0,
|
|
636
|
+
return (0, import_core.getCuratedModelsForProvider)(provider);
|
|
637
637
|
})();
|
|
638
638
|
providers[provider] = {
|
|
639
639
|
name: displayName,
|
|
640
640
|
hasApiKey: keyStatus.hasApiKey,
|
|
641
641
|
primaryEnvVar: keyStatus.envVar,
|
|
642
|
-
supportsBaseURL: (0,
|
|
642
|
+
supportsBaseURL: (0, import_llm.supportsBaseURL)(provider),
|
|
643
643
|
models,
|
|
644
644
|
supportedFileTypes: info.supportedFileTypes
|
|
645
645
|
};
|
|
@@ -648,7 +648,7 @@ function createLlmRouter(getAgent) {
|
|
|
648
648
|
if (queryParams.provider && queryParams.provider.length > 0) {
|
|
649
649
|
const allowed = new Set(
|
|
650
650
|
queryParams.provider.filter(
|
|
651
|
-
(p) =>
|
|
651
|
+
(p) => import_llm.LLM_PROVIDERS.includes(p)
|
|
652
652
|
)
|
|
653
653
|
);
|
|
654
654
|
const filteredByProvider = {};
|
|
@@ -779,12 +779,12 @@ function createLlmRouter(getAgent) {
|
|
|
779
779
|
const { provider, model } = ctx.req.valid("query");
|
|
780
780
|
let supportedFileTypes;
|
|
781
781
|
try {
|
|
782
|
-
supportedFileTypes = (0,
|
|
782
|
+
supportedFileTypes = (0, import_core.getSupportedFileTypesForModel)(provider, model);
|
|
783
783
|
} catch {
|
|
784
|
-
const providerInfo =
|
|
784
|
+
const providerInfo = import_llm.LLM_REGISTRY[provider];
|
|
785
785
|
supportedFileTypes = providerInfo?.supportedFileTypes ?? [];
|
|
786
786
|
}
|
|
787
|
-
const reasoning = (0,
|
|
787
|
+
const reasoning = (0, import_llm.getReasoningProfile)(provider, model);
|
|
788
788
|
return ctx.json(
|
|
789
789
|
{
|
|
790
790
|
provider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/llm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,CAAC,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/llm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAuBhE,OAAO,EAaH,iBAAiB,EAEpB,MAAM,yBAAyB,CAAC;AAWjC,OAAO,KAAK,EAAE,UAAU,EAAE,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,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAAE,CACtD,CAAC;AACF,KAAK,8BAA8B,GAAG,kBAAkB,CACpD,OAAO,wBAAwB,EAC/B;IAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAAE,CACtD,CAAC;AACF,KAAK,uBAAuB,GAAG,kBAAkB,CAC7C,OAAO,iBAAiB,EACxB;IAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAAE,CACnD,CAAC;AAEF,MAAM,MAAM,eAAe,GACrB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,2BAA2B,GAC3B,4BAA4B,GAC5B,4BAA4B,GAC5B,uBAAuB,GACvB,2BAA2B,GAC3B,4BAA4B,GAC5B,8BAA8B,GAC9B,uBAAuB,CAAC"}
|
package/dist/hono/routes/llm.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
2
|
-
import { DextoRuntimeError, ErrorScope, ErrorType, logger } from "@dexto/core";
|
|
3
2
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
DextoRuntimeError,
|
|
4
|
+
ErrorScope,
|
|
5
|
+
ErrorType,
|
|
6
|
+
logger,
|
|
8
7
|
getAllModelsForProvider,
|
|
9
8
|
getCuratedModelsForProvider,
|
|
10
9
|
getCuratedModelRefsForProviders,
|
|
11
10
|
getSupportedFileTypesForModel,
|
|
12
11
|
getLocalModelById,
|
|
13
|
-
getReasoningProfile,
|
|
14
12
|
LLMUpdatesSchema
|
|
15
13
|
} from "@dexto/core";
|
|
14
|
+
import {
|
|
15
|
+
LLM_REGISTRY,
|
|
16
|
+
LLM_PROVIDERS,
|
|
17
|
+
SUPPORTED_FILE_TYPES,
|
|
18
|
+
getReasoningProfile,
|
|
19
|
+
supportsBaseURL
|
|
20
|
+
} from "@dexto/llm";
|
|
16
21
|
import {
|
|
17
22
|
getProviderKeyStatus,
|
|
18
23
|
loadCustomModels,
|
|
@@ -24,6 +24,7 @@ module.exports = __toCommonJS(messages_exports);
|
|
|
24
24
|
var import_zod_openapi = require("@hono/zod-openapi");
|
|
25
25
|
var import_streaming = require("hono/streaming");
|
|
26
26
|
var import_core = require("@dexto/core");
|
|
27
|
+
var import_llm = require("@dexto/llm");
|
|
27
28
|
var import_responses = require("../schemas/responses.js");
|
|
28
29
|
const MessageBodySchema = import_zod_openapi.z.object({
|
|
29
30
|
content: import_responses.RequestContentSchema,
|
|
@@ -48,7 +49,7 @@ const MessageSyncResponseSchema = import_zod_openapi.z.object({
|
|
|
48
49
|
),
|
|
49
50
|
reasoning: import_zod_openapi.z.string().optional().describe("Extended thinking content from reasoning models"),
|
|
50
51
|
model: import_zod_openapi.z.string().optional().describe("Model used for this response"),
|
|
51
|
-
provider: import_zod_openapi.z.enum(
|
|
52
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).optional().describe("LLM provider"),
|
|
52
53
|
hostRuntime: import_core.HostRuntimeContextSchema.optional().describe(
|
|
53
54
|
"Host-owned runtime IDs surfaced by core runtime flows"
|
|
54
55
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,KAAK,0BAA0B,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEjG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,KAAK,0BAA0B,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEjG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,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} from "@hono/zod-openapi";
|
|
2
2
|
import { streamSSE } from "hono/streaming";
|
|
3
|
-
import { HostRuntimeContextSchema
|
|
3
|
+
import { HostRuntimeContextSchema } from "@dexto/core";
|
|
4
|
+
import { LLM_PROVIDERS } from "@dexto/llm";
|
|
4
5
|
import {
|
|
5
6
|
ApiErrorResponseSchema,
|
|
6
7
|
BadRequestErrorResponse,
|
|
@@ -95,6 +95,7 @@ __export(responses_exports, {
|
|
|
95
95
|
module.exports = __toCommonJS(responses_exports);
|
|
96
96
|
var import_zod_openapi = require("@hono/zod-openapi");
|
|
97
97
|
var import_core = require("@dexto/core");
|
|
98
|
+
var import_llm = require("@dexto/llm");
|
|
98
99
|
var import_core2 = require("@dexto/core");
|
|
99
100
|
var import_core3 = require("@dexto/core");
|
|
100
101
|
var import_core4 = require("@dexto/core");
|
|
@@ -407,7 +408,7 @@ const TokenUsageSchema = import_zod_openapi.z.object({
|
|
|
407
408
|
cacheWriteTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of cache write tokens"),
|
|
408
409
|
totalTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Total tokens used")
|
|
409
410
|
}).strict().describe("Token usage accounting");
|
|
410
|
-
const PricingStatusSchema = import_zod_openapi.z.enum(
|
|
411
|
+
const PricingStatusSchema = import_zod_openapi.z.enum(import_llm.LLM_PRICING_STATUSES).describe("Whether pricing was resolved for this response");
|
|
411
412
|
const InternalMessageSchema = import_zod_openapi.z.object({
|
|
412
413
|
id: import_zod_openapi.z.string().uuid().optional().describe("Unique message identifier (UUID)"),
|
|
413
414
|
role: import_zod_openapi.z.enum(["system", "user", "assistant", "tool"]).describe("Role of the message sender"),
|
|
@@ -421,7 +422,7 @@ const InternalMessageSchema = import_zod_openapi.z.object({
|
|
|
421
422
|
),
|
|
422
423
|
usageScopeId: import_zod_openapi.z.string().optional().describe("Optional usage scope identifier for runtime-scoped metering"),
|
|
423
424
|
model: import_zod_openapi.z.string().optional().describe("Model identifier for assistant messages"),
|
|
424
|
-
provider: import_zod_openapi.z.enum(
|
|
425
|
+
provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
|
|
425
426
|
toolCalls: import_zod_openapi.z.array(ToolCallSchema).optional().describe("Tool calls made by the assistant"),
|
|
426
427
|
toolCallId: import_zod_openapi.z.string().optional().describe("ID of the tool call this message responds to"),
|
|
427
428
|
name: import_zod_openapi.z.string().optional().describe("Name of the tool that produced this result"),
|
|
@@ -575,7 +576,7 @@ const CatalogModelInfoSchema = import_zod_openapi.z.object({
|
|
|
575
576
|
name: import_zod_openapi.z.string().describe("Model name identifier"),
|
|
576
577
|
maxInputTokens: import_zod_openapi.z.number().int().positive().describe("Maximum input tokens"),
|
|
577
578
|
default: import_zod_openapi.z.boolean().optional().describe("Whether this is a default model"),
|
|
578
|
-
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(
|
|
579
|
+
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES)).describe("File types this model supports"),
|
|
579
580
|
displayName: import_zod_openapi.z.string().optional().describe("Human-readable display name"),
|
|
580
581
|
pricing: import_zod_openapi.z.object({
|
|
581
582
|
inputPerM: import_zod_openapi.z.number().describe("Input cost per million tokens (USD)"),
|
|
@@ -592,7 +593,7 @@ const ProviderCatalogSchema = import_zod_openapi.z.object({
|
|
|
592
593
|
primaryEnvVar: import_zod_openapi.z.string().describe("Primary environment variable for API key"),
|
|
593
594
|
supportsBaseURL: import_zod_openapi.z.boolean().describe("Whether custom base URLs are supported"),
|
|
594
595
|
models: import_zod_openapi.z.array(CatalogModelInfoSchema).describe("Models available from this provider"),
|
|
595
|
-
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(
|
|
596
|
+
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES)).describe("Provider-level file type support")
|
|
596
597
|
}).strict().describe("Provider catalog entry with models and capabilities");
|
|
597
598
|
const ModelFlatSchema = CatalogModelInfoSchema.extend({
|
|
598
599
|
provider: import_zod_openapi.z.string().describe("Provider identifier for this model")
|
|
@@ -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,mBAAmB,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAEH,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,eAAe,IAAI,mBAAmB,EAC9C,MAAM,aAAa,CAAC;AAGrB,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAW/F,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAYL,CAAC;AAE7C,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAMN,CAAC;AAUhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBASW,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;iBAU0B,CAAC;AAEvD,eAAO,MAAM,WAAW;;;;;;;;;;;kBAc+B,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyBS,CAAC;AAE7C,eAAO,MAAM,uBAAuB;;;;;;;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CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGjF,eAAO,MAAM,oBAAoB;;;kBAMD,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,eAAO,MAAM,oBAAoB;;;kBAMS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
LLMConfigBaseSchema as CoreLLMConfigBaseSchema,
|
|
5
|
-
LLM_PROVIDERS,
|
|
6
|
-
SUPPORTED_FILE_TYPES
|
|
3
|
+
LLMConfigBaseSchema as CoreLLMConfigBaseSchema
|
|
7
4
|
} from "@dexto/core";
|
|
5
|
+
import { LLM_PRICING_STATUSES, LLM_PROVIDERS, SUPPORTED_FILE_TYPES } from "@dexto/llm";
|
|
8
6
|
const JsonValueOpenApiPlaceholder = {
|
|
9
7
|
type: "object",
|
|
10
8
|
additionalProperties: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/server",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
"ws": "^8.18.1",
|
|
32
32
|
"yaml": "^2.8.3",
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
34
|
-
"@dexto/agent-config": "1.8.
|
|
35
|
-
"@dexto/agent-management": "1.8.
|
|
36
|
-
"@dexto/core": "1.8.
|
|
37
|
-
"@dexto/image-local": "1.8.
|
|
38
|
-
"@dexto/
|
|
39
|
-
"@dexto/
|
|
34
|
+
"@dexto/agent-config": "1.8.2",
|
|
35
|
+
"@dexto/agent-management": "1.8.2",
|
|
36
|
+
"@dexto/core": "1.8.2",
|
|
37
|
+
"@dexto/image-local": "1.8.2",
|
|
38
|
+
"@dexto/llm": "1.8.2",
|
|
39
|
+
"@dexto/storage": "1.8.2",
|
|
40
|
+
"@dexto/tools-scheduler": "1.8.2"
|
|
40
41
|
},
|
|
41
42
|
"files": [
|
|
42
43
|
"dist",
|