@dexto/server 1.2.6 → 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 +59 -50
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/index.js +11 -1
- package/dist/hono/routes/llm.d.ts +19 -19
- 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 +1 -1
- 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 +44 -21
- package/dist/hono/schemas/responses.d.ts +1202 -198
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +51 -31
- package/package.json +3 -3
package/dist/hono/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ var import_resources = require("./routes/resources.js");
|
|
|
38
38
|
var import_memory = require("./routes/memory.js");
|
|
39
39
|
var import_agents = require("./routes/agents.js");
|
|
40
40
|
var import_approvals = require("./routes/approvals.js");
|
|
41
|
+
var import_static = require("./routes/static.js");
|
|
41
42
|
var import_error = require("./middleware/error.js");
|
|
42
43
|
var import_redaction = require("./middleware/redaction.js");
|
|
43
44
|
var import_cors = require("./middleware/cors.js");
|
|
@@ -70,7 +71,9 @@ function createDextoApp(options) {
|
|
|
70
71
|
approvalCoordinator,
|
|
71
72
|
webhookSubscriber,
|
|
72
73
|
sseSubscriber,
|
|
73
|
-
agentsContext
|
|
74
|
+
agentsContext,
|
|
75
|
+
webRoot,
|
|
76
|
+
webUIConfig
|
|
74
77
|
} = options;
|
|
75
78
|
const app = new import_zod_openapi.OpenAPIHono({ strict: false });
|
|
76
79
|
app.use("*", (0, import_cors.createCorsMiddleware)());
|
|
@@ -157,6 +160,10 @@ function createDextoApp(options) {
|
|
|
157
160
|
}
|
|
158
161
|
]
|
|
159
162
|
});
|
|
163
|
+
if (webRoot) {
|
|
164
|
+
fullApp.route("/", (0, import_static.createStaticRouter)(webRoot));
|
|
165
|
+
fullApp.notFound((0, import_static.createSpaFallbackHandler)(webRoot, webUIConfig));
|
|
166
|
+
}
|
|
160
167
|
Object.assign(fullApp, { webhookSubscriber });
|
|
161
168
|
return fullApp;
|
|
162
169
|
}
|
package/dist/hono/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from '@hono/zod-openapi';
|
|
2
2
|
import type { DextoAgent, AgentCard } from '@dexto/core';
|
|
3
3
|
import { type AgentsRouterContext } from './routes/agents.js';
|
|
4
|
+
import { type WebUIRuntimeConfig } from './routes/static.js';
|
|
4
5
|
import { WebhookEventSubscriber } from '../events/webhook-subscriber.js';
|
|
5
6
|
import { A2ASseEventSubscriber } from '../events/a2a-sse-subscriber.js';
|
|
6
7
|
import { ApprovalCoordinator } from '../approval/approval-coordinator.js';
|
|
@@ -12,6 +13,10 @@ export type CreateDextoAppOptions = {
|
|
|
12
13
|
webhookSubscriber: WebhookEventSubscriber;
|
|
13
14
|
sseSubscriber: A2ASseEventSubscriber;
|
|
14
15
|
agentsContext?: AgentsRouterContext;
|
|
16
|
+
/** Absolute path to WebUI build output. If provided, static files will be served. */
|
|
17
|
+
webRoot?: string;
|
|
18
|
+
/** Runtime configuration to inject into WebUI (analytics, etc.) */
|
|
19
|
+
webUIConfig?: WebUIRuntimeConfig;
|
|
15
20
|
};
|
|
16
21
|
export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIHono<import("hono").Env, import("hono/types").MergeSchemaPath<{
|
|
17
22
|
"/agents": {
|
|
@@ -984,7 +989,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
984
989
|
}[] | undefined;
|
|
985
990
|
resource?: {
|
|
986
991
|
mimeType: string;
|
|
987
|
-
|
|
992
|
+
data: string;
|
|
988
993
|
filename?: string | undefined;
|
|
989
994
|
} | undefined;
|
|
990
995
|
};
|
|
@@ -1475,18 +1480,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1475
1480
|
text: string;
|
|
1476
1481
|
} | {
|
|
1477
1482
|
type: "image";
|
|
1478
|
-
image
|
|
1483
|
+
image: string;
|
|
1479
1484
|
mimeType?: string | undefined;
|
|
1480
1485
|
} | {
|
|
1481
1486
|
type: "file";
|
|
1482
1487
|
mimeType: string;
|
|
1483
|
-
data
|
|
1488
|
+
data: string;
|
|
1484
1489
|
filename?: string | undefined;
|
|
1485
1490
|
})[] | null;
|
|
1486
1491
|
role: "system" | "user" | "assistant" | "tool";
|
|
1487
|
-
|
|
1488
|
-
model?: string | undefined;
|
|
1489
|
-
router?: string | undefined;
|
|
1492
|
+
id?: string | undefined;
|
|
1490
1493
|
name?: string | undefined;
|
|
1491
1494
|
timestamp?: number | undefined;
|
|
1492
1495
|
reasoning?: string | undefined;
|
|
@@ -1496,6 +1499,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1496
1499
|
reasoningTokens?: number | undefined;
|
|
1497
1500
|
totalTokens?: number | undefined;
|
|
1498
1501
|
} | undefined;
|
|
1502
|
+
model?: string | undefined;
|
|
1503
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1504
|
+
router?: "vercel" | "in-built" | undefined;
|
|
1499
1505
|
toolCalls?: {
|
|
1500
1506
|
function: {
|
|
1501
1507
|
name: string;
|
|
@@ -1538,18 +1544,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1538
1544
|
text: string;
|
|
1539
1545
|
} | {
|
|
1540
1546
|
type: "image";
|
|
1541
|
-
image
|
|
1547
|
+
image: string;
|
|
1542
1548
|
mimeType?: string | undefined;
|
|
1543
1549
|
} | {
|
|
1544
1550
|
type: "file";
|
|
1545
1551
|
mimeType: string;
|
|
1546
|
-
data
|
|
1552
|
+
data: string;
|
|
1547
1553
|
filename?: string | undefined;
|
|
1548
1554
|
})[] | null;
|
|
1549
1555
|
role: "system" | "user" | "assistant" | "tool";
|
|
1550
|
-
|
|
1551
|
-
model?: string | undefined;
|
|
1552
|
-
router?: string | undefined;
|
|
1556
|
+
id?: string | undefined;
|
|
1553
1557
|
name?: string | undefined;
|
|
1554
1558
|
timestamp?: number | undefined;
|
|
1555
1559
|
reasoning?: string | undefined;
|
|
@@ -1559,6 +1563,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1559
1563
|
reasoningTokens?: number | undefined;
|
|
1560
1564
|
totalTokens?: number | undefined;
|
|
1561
1565
|
} | undefined;
|
|
1566
|
+
model?: string | undefined;
|
|
1567
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1568
|
+
router?: "vercel" | "in-built" | undefined;
|
|
1562
1569
|
toolCalls?: {
|
|
1563
1570
|
function: {
|
|
1564
1571
|
name: string;
|
|
@@ -1662,18 +1669,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1662
1669
|
text: string;
|
|
1663
1670
|
} | {
|
|
1664
1671
|
type: "image";
|
|
1665
|
-
image
|
|
1672
|
+
image: string;
|
|
1666
1673
|
mimeType?: string | undefined;
|
|
1667
1674
|
} | {
|
|
1668
1675
|
type: "file";
|
|
1669
1676
|
mimeType: string;
|
|
1670
|
-
data
|
|
1677
|
+
data: string;
|
|
1671
1678
|
filename?: string | undefined;
|
|
1672
1679
|
})[] | null;
|
|
1673
1680
|
role: "system" | "user" | "assistant" | "tool";
|
|
1674
|
-
|
|
1675
|
-
model?: string | undefined;
|
|
1676
|
-
router?: string | undefined;
|
|
1681
|
+
id?: string | undefined;
|
|
1677
1682
|
name?: string | undefined;
|
|
1678
1683
|
timestamp?: number | undefined;
|
|
1679
1684
|
reasoning?: string | undefined;
|
|
@@ -1683,6 +1688,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1683
1688
|
reasoningTokens?: number | undefined;
|
|
1684
1689
|
totalTokens?: number | undefined;
|
|
1685
1690
|
} | undefined;
|
|
1691
|
+
model?: string | undefined;
|
|
1692
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1693
|
+
router?: "vercel" | "in-built" | undefined;
|
|
1686
1694
|
toolCalls?: {
|
|
1687
1695
|
function: {
|
|
1688
1696
|
name: string;
|
|
@@ -1822,10 +1830,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1822
1830
|
};
|
|
1823
1831
|
output: {
|
|
1824
1832
|
config: {
|
|
1825
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
1826
1833
|
model: string;
|
|
1827
|
-
|
|
1834
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
1828
1835
|
router?: "vercel" | "in-built" | undefined;
|
|
1836
|
+
maxIterations?: number | undefined;
|
|
1829
1837
|
baseURL?: string | undefined;
|
|
1830
1838
|
maxInputTokens?: number | undefined;
|
|
1831
1839
|
maxOutputTokens?: number | undefined;
|
|
@@ -1855,15 +1863,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1855
1863
|
output: {
|
|
1856
1864
|
providers: {
|
|
1857
1865
|
openai?: {
|
|
1858
|
-
hasApiKey: boolean;
|
|
1859
1866
|
name: string;
|
|
1867
|
+
hasApiKey: boolean;
|
|
1860
1868
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1861
1869
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1862
1870
|
primaryEnvVar: string;
|
|
1863
1871
|
supportsBaseURL: boolean;
|
|
1864
1872
|
models: {
|
|
1865
|
-
maxInputTokens: number;
|
|
1866
1873
|
name: string;
|
|
1874
|
+
maxInputTokens: number;
|
|
1867
1875
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1868
1876
|
default?: boolean | undefined;
|
|
1869
1877
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1879,15 +1887,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1879
1887
|
}[];
|
|
1880
1888
|
} | undefined;
|
|
1881
1889
|
"openai-compatible"?: {
|
|
1882
|
-
hasApiKey: boolean;
|
|
1883
1890
|
name: string;
|
|
1891
|
+
hasApiKey: boolean;
|
|
1884
1892
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1885
1893
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1886
1894
|
primaryEnvVar: string;
|
|
1887
1895
|
supportsBaseURL: boolean;
|
|
1888
1896
|
models: {
|
|
1889
|
-
maxInputTokens: number;
|
|
1890
1897
|
name: string;
|
|
1898
|
+
maxInputTokens: number;
|
|
1891
1899
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1892
1900
|
default?: boolean | undefined;
|
|
1893
1901
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1903,15 +1911,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1903
1911
|
}[];
|
|
1904
1912
|
} | undefined;
|
|
1905
1913
|
anthropic?: {
|
|
1906
|
-
hasApiKey: boolean;
|
|
1907
1914
|
name: string;
|
|
1915
|
+
hasApiKey: boolean;
|
|
1908
1916
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1909
1917
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1910
1918
|
primaryEnvVar: string;
|
|
1911
1919
|
supportsBaseURL: boolean;
|
|
1912
1920
|
models: {
|
|
1913
|
-
maxInputTokens: number;
|
|
1914
1921
|
name: string;
|
|
1922
|
+
maxInputTokens: number;
|
|
1915
1923
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1916
1924
|
default?: boolean | undefined;
|
|
1917
1925
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1927,15 +1935,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1927
1935
|
}[];
|
|
1928
1936
|
} | undefined;
|
|
1929
1937
|
google?: {
|
|
1930
|
-
hasApiKey: boolean;
|
|
1931
1938
|
name: string;
|
|
1939
|
+
hasApiKey: boolean;
|
|
1932
1940
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1933
1941
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1934
1942
|
primaryEnvVar: string;
|
|
1935
1943
|
supportsBaseURL: boolean;
|
|
1936
1944
|
models: {
|
|
1937
|
-
maxInputTokens: number;
|
|
1938
1945
|
name: string;
|
|
1946
|
+
maxInputTokens: number;
|
|
1939
1947
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1940
1948
|
default?: boolean | undefined;
|
|
1941
1949
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1951,15 +1959,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1951
1959
|
}[];
|
|
1952
1960
|
} | undefined;
|
|
1953
1961
|
groq?: {
|
|
1954
|
-
hasApiKey: boolean;
|
|
1955
1962
|
name: string;
|
|
1963
|
+
hasApiKey: boolean;
|
|
1956
1964
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1957
1965
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1958
1966
|
primaryEnvVar: string;
|
|
1959
1967
|
supportsBaseURL: boolean;
|
|
1960
1968
|
models: {
|
|
1961
|
-
maxInputTokens: number;
|
|
1962
1969
|
name: string;
|
|
1970
|
+
maxInputTokens: number;
|
|
1963
1971
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1964
1972
|
default?: boolean | undefined;
|
|
1965
1973
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1975,15 +1983,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1975
1983
|
}[];
|
|
1976
1984
|
} | undefined;
|
|
1977
1985
|
xai?: {
|
|
1978
|
-
hasApiKey: boolean;
|
|
1979
1986
|
name: string;
|
|
1987
|
+
hasApiKey: boolean;
|
|
1980
1988
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1981
1989
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1982
1990
|
primaryEnvVar: string;
|
|
1983
1991
|
supportsBaseURL: boolean;
|
|
1984
1992
|
models: {
|
|
1985
|
-
maxInputTokens: number;
|
|
1986
1993
|
name: string;
|
|
1994
|
+
maxInputTokens: number;
|
|
1987
1995
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1988
1996
|
default?: boolean | undefined;
|
|
1989
1997
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1999,15 +2007,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1999
2007
|
}[];
|
|
2000
2008
|
} | undefined;
|
|
2001
2009
|
cohere?: {
|
|
2002
|
-
hasApiKey: boolean;
|
|
2003
2010
|
name: string;
|
|
2011
|
+
hasApiKey: boolean;
|
|
2004
2012
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2005
2013
|
supportedRouters: ("vercel" | "in-built")[];
|
|
2006
2014
|
primaryEnvVar: string;
|
|
2007
2015
|
supportsBaseURL: boolean;
|
|
2008
2016
|
models: {
|
|
2009
|
-
maxInputTokens: number;
|
|
2010
2017
|
name: string;
|
|
2018
|
+
maxInputTokens: number;
|
|
2011
2019
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2012
2020
|
default?: boolean | undefined;
|
|
2013
2021
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -2025,9 +2033,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2025
2033
|
};
|
|
2026
2034
|
} | {
|
|
2027
2035
|
models: {
|
|
2036
|
+
name: string;
|
|
2028
2037
|
provider: string;
|
|
2029
2038
|
maxInputTokens: number;
|
|
2030
|
-
name: string;
|
|
2031
2039
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2032
2040
|
default?: boolean | undefined;
|
|
2033
2041
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -2085,10 +2093,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2085
2093
|
};
|
|
2086
2094
|
output: {
|
|
2087
2095
|
config: {
|
|
2088
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2089
2096
|
model: string;
|
|
2090
|
-
|
|
2097
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2091
2098
|
router: "vercel" | "in-built";
|
|
2099
|
+
maxIterations: number;
|
|
2092
2100
|
baseURL?: string | undefined;
|
|
2093
2101
|
maxInputTokens?: number | undefined;
|
|
2094
2102
|
maxOutputTokens?: number | undefined;
|
|
@@ -2110,12 +2118,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2110
2118
|
sessionId: string;
|
|
2111
2119
|
message?: string | undefined;
|
|
2112
2120
|
imageData?: {
|
|
2121
|
+
image: string;
|
|
2113
2122
|
mimeType: string;
|
|
2114
|
-
base64: string;
|
|
2115
2123
|
} | undefined;
|
|
2116
2124
|
fileData?: {
|
|
2117
2125
|
mimeType: string;
|
|
2118
|
-
|
|
2126
|
+
data: string;
|
|
2119
2127
|
filename?: string | undefined;
|
|
2120
2128
|
} | undefined;
|
|
2121
2129
|
};
|
|
@@ -2132,12 +2140,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2132
2140
|
sessionId: string;
|
|
2133
2141
|
message?: string | undefined;
|
|
2134
2142
|
imageData?: {
|
|
2143
|
+
image: string;
|
|
2135
2144
|
mimeType: string;
|
|
2136
|
-
base64: string;
|
|
2137
2145
|
} | undefined;
|
|
2138
2146
|
fileData?: {
|
|
2139
2147
|
mimeType: string;
|
|
2140
|
-
|
|
2148
|
+
data: string;
|
|
2141
2149
|
filename?: string | undefined;
|
|
2142
2150
|
} | undefined;
|
|
2143
2151
|
};
|
|
@@ -2155,12 +2163,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2155
2163
|
sessionId: string;
|
|
2156
2164
|
message?: string | undefined;
|
|
2157
2165
|
imageData?: {
|
|
2166
|
+
image: string;
|
|
2158
2167
|
mimeType: string;
|
|
2159
|
-
base64: string;
|
|
2160
2168
|
} | undefined;
|
|
2161
2169
|
fileData?: {
|
|
2162
2170
|
mimeType: string;
|
|
2163
|
-
|
|
2171
|
+
data: string;
|
|
2164
2172
|
filename?: string | undefined;
|
|
2165
2173
|
} | undefined;
|
|
2166
2174
|
};
|
|
@@ -2174,12 +2182,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2174
2182
|
sessionId: string;
|
|
2175
2183
|
message?: string | undefined;
|
|
2176
2184
|
imageData?: {
|
|
2185
|
+
image: string;
|
|
2177
2186
|
mimeType: string;
|
|
2178
|
-
base64: string;
|
|
2179
2187
|
} | undefined;
|
|
2180
2188
|
fileData?: {
|
|
2181
2189
|
mimeType: string;
|
|
2182
|
-
|
|
2190
|
+
data: string;
|
|
2183
2191
|
filename?: string | undefined;
|
|
2184
2192
|
} | undefined;
|
|
2185
2193
|
};
|
|
@@ -2187,9 +2195,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2187
2195
|
output: {
|
|
2188
2196
|
sessionId: string;
|
|
2189
2197
|
response: string;
|
|
2190
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2191
|
-
model?: string | undefined;
|
|
2192
|
-
router?: "vercel" | "in-built" | undefined;
|
|
2193
2198
|
reasoning?: string | undefined;
|
|
2194
2199
|
tokenUsage?: {
|
|
2195
2200
|
inputTokens?: number | undefined;
|
|
@@ -2197,6 +2202,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2197
2202
|
reasoningTokens?: number | undefined;
|
|
2198
2203
|
totalTokens?: number | undefined;
|
|
2199
2204
|
} | undefined;
|
|
2205
|
+
model?: string | undefined;
|
|
2206
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2207
|
+
router?: "vercel" | "in-built" | undefined;
|
|
2200
2208
|
};
|
|
2201
2209
|
outputFormat: "json";
|
|
2202
2210
|
status: 200;
|
|
@@ -2226,12 +2234,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2226
2234
|
sessionId: string;
|
|
2227
2235
|
message?: string | undefined;
|
|
2228
2236
|
imageData?: {
|
|
2237
|
+
image: string;
|
|
2229
2238
|
mimeType: string;
|
|
2230
|
-
base64: string;
|
|
2231
2239
|
} | undefined;
|
|
2232
2240
|
fileData?: {
|
|
2233
2241
|
mimeType: string;
|
|
2234
|
-
|
|
2242
|
+
data: string;
|
|
2235
2243
|
filename?: string | undefined;
|
|
2236
2244
|
} | undefined;
|
|
2237
2245
|
};
|
|
@@ -2245,12 +2253,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2245
2253
|
sessionId: string;
|
|
2246
2254
|
message?: string | undefined;
|
|
2247
2255
|
imageData?: {
|
|
2256
|
+
image: string;
|
|
2248
2257
|
mimeType: string;
|
|
2249
|
-
base64: string;
|
|
2250
2258
|
} | undefined;
|
|
2251
2259
|
fileData?: {
|
|
2252
2260
|
mimeType: string;
|
|
2253
|
-
|
|
2261
|
+
data: string;
|
|
2254
2262
|
filename?: string | undefined;
|
|
2255
2263
|
} | undefined;
|
|
2256
2264
|
};
|
|
@@ -2783,4 +2791,5 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2783
2791
|
};
|
|
2784
2792
|
}, "/health">, "/">;
|
|
2785
2793
|
export type AppType = ReturnType<typeof createDextoApp>;
|
|
2794
|
+
export type { WebUIRuntimeConfig } from './routes/static.js';
|
|
2786
2795
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/hono/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hono/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAezD,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAKxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AA8B1E,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,UAAU,CAAC;IAC3B,YAAY,EAAE,MAAM,SAAS,CAAC;IAC9B,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,aAAa,EAAE,qBAAqB,CAAC;IACrC,aAAa,CAAC,EAAE,mBAAmB,CAAC;
|
|
1
|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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAR1l4I;AAID,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAGxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/hono/index.js
CHANGED
|
@@ -15,6 +15,10 @@ import { createResourcesRouter } from "./routes/resources.js";
|
|
|
15
15
|
import { createMemoryRouter } from "./routes/memory.js";
|
|
16
16
|
import { createAgentsRouter } from "./routes/agents.js";
|
|
17
17
|
import { createApprovalsRouter } from "./routes/approvals.js";
|
|
18
|
+
import {
|
|
19
|
+
createStaticRouter,
|
|
20
|
+
createSpaFallbackHandler
|
|
21
|
+
} from "./routes/static.js";
|
|
18
22
|
import { handleHonoError } from "./middleware/error.js";
|
|
19
23
|
import { prettyJsonMiddleware, redactionMiddleware } from "./middleware/redaction.js";
|
|
20
24
|
import { createCorsMiddleware } from "./middleware/cors.js";
|
|
@@ -46,7 +50,9 @@ function createDextoApp(options) {
|
|
|
46
50
|
approvalCoordinator,
|
|
47
51
|
webhookSubscriber,
|
|
48
52
|
sseSubscriber,
|
|
49
|
-
agentsContext
|
|
53
|
+
agentsContext,
|
|
54
|
+
webRoot,
|
|
55
|
+
webUIConfig
|
|
50
56
|
} = options;
|
|
51
57
|
const app = new OpenAPIHono({ strict: false });
|
|
52
58
|
app.use("*", createCorsMiddleware());
|
|
@@ -133,6 +139,10 @@ function createDextoApp(options) {
|
|
|
133
139
|
}
|
|
134
140
|
]
|
|
135
141
|
});
|
|
142
|
+
if (webRoot) {
|
|
143
|
+
fullApp.route("/", createStaticRouter(webRoot));
|
|
144
|
+
fullApp.notFound(createSpaFallbackHandler(webRoot, webUIConfig));
|
|
145
|
+
}
|
|
136
146
|
Object.assign(fullApp, { webhookSubscriber });
|
|
137
147
|
return fullApp;
|
|
138
148
|
}
|
|
@@ -10,10 +10,10 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
10
10
|
};
|
|
11
11
|
output: {
|
|
12
12
|
config: {
|
|
13
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
14
13
|
model: string;
|
|
15
|
-
|
|
14
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
16
15
|
router?: "vercel" | "in-built" | undefined;
|
|
16
|
+
maxIterations?: number | undefined;
|
|
17
17
|
baseURL?: string | undefined;
|
|
18
18
|
maxInputTokens?: number | undefined;
|
|
19
19
|
maxOutputTokens?: number | undefined;
|
|
@@ -43,15 +43,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
43
43
|
output: {
|
|
44
44
|
providers: {
|
|
45
45
|
openai?: {
|
|
46
|
-
hasApiKey: boolean;
|
|
47
46
|
name: string;
|
|
47
|
+
hasApiKey: boolean;
|
|
48
48
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
49
49
|
supportedRouters: ("vercel" | "in-built")[];
|
|
50
50
|
primaryEnvVar: string;
|
|
51
51
|
supportsBaseURL: boolean;
|
|
52
52
|
models: {
|
|
53
|
-
maxInputTokens: number;
|
|
54
53
|
name: string;
|
|
54
|
+
maxInputTokens: number;
|
|
55
55
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
56
56
|
default?: boolean | undefined;
|
|
57
57
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -67,15 +67,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
67
67
|
}[];
|
|
68
68
|
} | undefined;
|
|
69
69
|
"openai-compatible"?: {
|
|
70
|
-
hasApiKey: boolean;
|
|
71
70
|
name: string;
|
|
71
|
+
hasApiKey: boolean;
|
|
72
72
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
73
73
|
supportedRouters: ("vercel" | "in-built")[];
|
|
74
74
|
primaryEnvVar: string;
|
|
75
75
|
supportsBaseURL: boolean;
|
|
76
76
|
models: {
|
|
77
|
-
maxInputTokens: number;
|
|
78
77
|
name: string;
|
|
78
|
+
maxInputTokens: number;
|
|
79
79
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
80
80
|
default?: boolean | undefined;
|
|
81
81
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -91,15 +91,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
91
91
|
}[];
|
|
92
92
|
} | undefined;
|
|
93
93
|
anthropic?: {
|
|
94
|
-
hasApiKey: boolean;
|
|
95
94
|
name: string;
|
|
95
|
+
hasApiKey: boolean;
|
|
96
96
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
97
97
|
supportedRouters: ("vercel" | "in-built")[];
|
|
98
98
|
primaryEnvVar: string;
|
|
99
99
|
supportsBaseURL: boolean;
|
|
100
100
|
models: {
|
|
101
|
-
maxInputTokens: number;
|
|
102
101
|
name: string;
|
|
102
|
+
maxInputTokens: number;
|
|
103
103
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
104
104
|
default?: boolean | undefined;
|
|
105
105
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -115,15 +115,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
115
115
|
}[];
|
|
116
116
|
} | undefined;
|
|
117
117
|
google?: {
|
|
118
|
-
hasApiKey: boolean;
|
|
119
118
|
name: string;
|
|
119
|
+
hasApiKey: boolean;
|
|
120
120
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
121
121
|
supportedRouters: ("vercel" | "in-built")[];
|
|
122
122
|
primaryEnvVar: string;
|
|
123
123
|
supportsBaseURL: boolean;
|
|
124
124
|
models: {
|
|
125
|
-
maxInputTokens: number;
|
|
126
125
|
name: string;
|
|
126
|
+
maxInputTokens: number;
|
|
127
127
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
128
128
|
default?: boolean | undefined;
|
|
129
129
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -139,15 +139,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
139
139
|
}[];
|
|
140
140
|
} | undefined;
|
|
141
141
|
groq?: {
|
|
142
|
-
hasApiKey: boolean;
|
|
143
142
|
name: string;
|
|
143
|
+
hasApiKey: boolean;
|
|
144
144
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
145
145
|
supportedRouters: ("vercel" | "in-built")[];
|
|
146
146
|
primaryEnvVar: string;
|
|
147
147
|
supportsBaseURL: boolean;
|
|
148
148
|
models: {
|
|
149
|
-
maxInputTokens: number;
|
|
150
149
|
name: string;
|
|
150
|
+
maxInputTokens: number;
|
|
151
151
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
152
152
|
default?: boolean | undefined;
|
|
153
153
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -163,15 +163,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
163
163
|
}[];
|
|
164
164
|
} | undefined;
|
|
165
165
|
xai?: {
|
|
166
|
-
hasApiKey: boolean;
|
|
167
166
|
name: string;
|
|
167
|
+
hasApiKey: boolean;
|
|
168
168
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
169
169
|
supportedRouters: ("vercel" | "in-built")[];
|
|
170
170
|
primaryEnvVar: string;
|
|
171
171
|
supportsBaseURL: boolean;
|
|
172
172
|
models: {
|
|
173
|
-
maxInputTokens: number;
|
|
174
173
|
name: string;
|
|
174
|
+
maxInputTokens: number;
|
|
175
175
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
176
176
|
default?: boolean | undefined;
|
|
177
177
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -187,15 +187,15 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
187
187
|
}[];
|
|
188
188
|
} | undefined;
|
|
189
189
|
cohere?: {
|
|
190
|
-
hasApiKey: boolean;
|
|
191
190
|
name: string;
|
|
191
|
+
hasApiKey: boolean;
|
|
192
192
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
193
193
|
supportedRouters: ("vercel" | "in-built")[];
|
|
194
194
|
primaryEnvVar: string;
|
|
195
195
|
supportsBaseURL: boolean;
|
|
196
196
|
models: {
|
|
197
|
-
maxInputTokens: number;
|
|
198
197
|
name: string;
|
|
198
|
+
maxInputTokens: number;
|
|
199
199
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
200
200
|
default?: boolean | undefined;
|
|
201
201
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -213,9 +213,9 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
213
213
|
};
|
|
214
214
|
} | {
|
|
215
215
|
models: {
|
|
216
|
+
name: string;
|
|
216
217
|
provider: string;
|
|
217
218
|
maxInputTokens: number;
|
|
218
|
-
name: string;
|
|
219
219
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
220
220
|
default?: boolean | undefined;
|
|
221
221
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -273,10 +273,10 @@ export declare function createLlmRouter(getAgent: () => DextoAgent): OpenAPIHono
|
|
|
273
273
|
};
|
|
274
274
|
output: {
|
|
275
275
|
config: {
|
|
276
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
277
276
|
model: string;
|
|
278
|
-
|
|
277
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
279
278
|
router: "vercel" | "in-built";
|
|
279
|
+
maxIterations: number;
|
|
280
280
|
baseURL?: string | undefined;
|
|
281
281
|
maxInputTokens?: number | undefined;
|
|
282
282
|
maxOutputTokens?: number | undefined;
|