@dexto/server 1.2.5 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hono/index.cjs +8 -1
- package/dist/hono/index.d.ts +80 -68
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/index.js +11 -1
- package/dist/hono/routes/agents.d.ts +18 -15
- package/dist/hono/routes/agents.d.ts.map +1 -1
- package/dist/hono/routes/llm.d.ts +19 -19
- package/dist/hono/routes/memory.d.ts +1 -1
- package/dist/hono/routes/messages.cjs +10 -10
- package/dist/hono/routes/messages.d.ts +15 -15
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +10 -10
- package/dist/hono/routes/prompts.cjs +2 -2
- package/dist/hono/routes/prompts.d.ts +3 -3
- package/dist/hono/routes/prompts.js +2 -2
- package/dist/hono/routes/search.cjs +2 -24
- package/dist/hono/routes/search.d.ts +12 -10
- package/dist/hono/routes/search.d.ts.map +1 -1
- package/dist/hono/routes/search.js +3 -25
- package/dist/hono/routes/sessions.d.ts +6 -5
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/static.cjs +77 -0
- package/dist/hono/routes/static.d.ts +41 -0
- package/dist/hono/routes/static.d.ts.map +1 -0
- package/dist/hono/routes/static.js +52 -0
- package/dist/hono/schemas/responses.cjs +45 -22
- package/dist/hono/schemas/responses.d.ts +1205 -201
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +52 -32
- package/package.json +3 -3
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": {
|
|
@@ -167,8 +172,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
167
172
|
} | {
|
|
168
173
|
type: "dynamic";
|
|
169
174
|
id: string;
|
|
175
|
+
source: "resources" | "dateTime";
|
|
170
176
|
priority: number;
|
|
171
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
172
177
|
enabled?: boolean | undefined;
|
|
173
178
|
} | {
|
|
174
179
|
type: "file";
|
|
@@ -183,17 +188,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
183
188
|
includeMetadata?: boolean | undefined;
|
|
184
189
|
} | undefined;
|
|
185
190
|
enabled?: boolean | undefined;
|
|
186
|
-
} | {
|
|
187
|
-
type: "memory";
|
|
188
|
-
id: string;
|
|
189
|
-
priority: number;
|
|
190
|
-
options?: {
|
|
191
|
-
includeTimestamps?: boolean | undefined;
|
|
192
|
-
includeTags?: boolean | undefined;
|
|
193
|
-
limit?: number | undefined;
|
|
194
|
-
pinnedOnly?: boolean | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
enabled?: boolean | undefined;
|
|
197
191
|
})[] | undefined;
|
|
198
192
|
};
|
|
199
193
|
storage?: {
|
|
@@ -289,15 +283,21 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
289
283
|
timeout?: number | undefined;
|
|
290
284
|
enabled?: boolean | undefined;
|
|
291
285
|
} | undefined;
|
|
292
|
-
|
|
293
|
-
starterPrompts?: {
|
|
286
|
+
prompts?: ({
|
|
294
287
|
prompt: string;
|
|
288
|
+
type: "inline";
|
|
295
289
|
id: string;
|
|
296
290
|
description?: string | undefined;
|
|
297
291
|
title?: string | undefined;
|
|
298
292
|
priority?: number | undefined;
|
|
299
293
|
category?: string | undefined;
|
|
300
|
-
|
|
294
|
+
showInStarters?: boolean | undefined;
|
|
295
|
+
} | {
|
|
296
|
+
file: string;
|
|
297
|
+
type: "file";
|
|
298
|
+
showInStarters?: boolean | undefined;
|
|
299
|
+
})[] | undefined;
|
|
300
|
+
agentId?: string | undefined;
|
|
301
301
|
agentCard?: {
|
|
302
302
|
description: string;
|
|
303
303
|
url: string;
|
|
@@ -461,6 +461,14 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
461
461
|
}[] | undefined;
|
|
462
462
|
} | undefined;
|
|
463
463
|
greeting?: string | undefined;
|
|
464
|
+
memories?: {
|
|
465
|
+
enabled?: boolean | undefined;
|
|
466
|
+
limit?: number | undefined;
|
|
467
|
+
priority?: number | undefined;
|
|
468
|
+
includeTimestamps?: boolean | undefined;
|
|
469
|
+
includeTags?: boolean | undefined;
|
|
470
|
+
pinnedOnly?: boolean | undefined;
|
|
471
|
+
} | undefined;
|
|
464
472
|
mcpServers?: Record<string, {
|
|
465
473
|
type: "stdio";
|
|
466
474
|
command: string;
|
|
@@ -772,7 +780,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
772
780
|
};
|
|
773
781
|
};
|
|
774
782
|
output: {
|
|
775
|
-
ok: true;
|
|
776
783
|
memories: {
|
|
777
784
|
content: string;
|
|
778
785
|
id: string;
|
|
@@ -785,6 +792,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
785
792
|
} | undefined;
|
|
786
793
|
tags?: string[] | undefined | undefined;
|
|
787
794
|
}[];
|
|
795
|
+
ok: true;
|
|
788
796
|
};
|
|
789
797
|
outputFormat: "json";
|
|
790
798
|
status: 200;
|
|
@@ -948,7 +956,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
948
956
|
output: {
|
|
949
957
|
prompts: {
|
|
950
958
|
name: string;
|
|
951
|
-
source: "
|
|
959
|
+
source: "config" | "custom" | "mcp";
|
|
952
960
|
description?: string | undefined;
|
|
953
961
|
title?: string | undefined;
|
|
954
962
|
arguments?: {
|
|
@@ -981,7 +989,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
981
989
|
}[] | undefined;
|
|
982
990
|
resource?: {
|
|
983
991
|
mimeType: string;
|
|
984
|
-
|
|
992
|
+
data: string;
|
|
985
993
|
filename?: string | undefined;
|
|
986
994
|
} | undefined;
|
|
987
995
|
};
|
|
@@ -989,7 +997,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
989
997
|
output: {
|
|
990
998
|
prompt: {
|
|
991
999
|
name: string;
|
|
992
|
-
source: "
|
|
1000
|
+
source: "config" | "custom" | "mcp";
|
|
993
1001
|
description?: string | undefined;
|
|
994
1002
|
title?: string | undefined;
|
|
995
1003
|
arguments?: {
|
|
@@ -1472,18 +1480,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1472
1480
|
text: string;
|
|
1473
1481
|
} | {
|
|
1474
1482
|
type: "image";
|
|
1475
|
-
image
|
|
1483
|
+
image: string;
|
|
1476
1484
|
mimeType?: string | undefined;
|
|
1477
1485
|
} | {
|
|
1478
1486
|
type: "file";
|
|
1479
1487
|
mimeType: string;
|
|
1480
|
-
data
|
|
1488
|
+
data: string;
|
|
1481
1489
|
filename?: string | undefined;
|
|
1482
1490
|
})[] | null;
|
|
1483
1491
|
role: "system" | "user" | "assistant" | "tool";
|
|
1484
|
-
|
|
1485
|
-
model?: string | undefined;
|
|
1486
|
-
router?: string | undefined;
|
|
1492
|
+
id?: string | undefined;
|
|
1487
1493
|
name?: string | undefined;
|
|
1488
1494
|
timestamp?: number | undefined;
|
|
1489
1495
|
reasoning?: string | undefined;
|
|
@@ -1493,6 +1499,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1493
1499
|
reasoningTokens?: number | undefined;
|
|
1494
1500
|
totalTokens?: number | undefined;
|
|
1495
1501
|
} | undefined;
|
|
1502
|
+
model?: string | undefined;
|
|
1503
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1504
|
+
router?: "vercel" | "in-built" | undefined;
|
|
1496
1505
|
toolCalls?: {
|
|
1497
1506
|
function: {
|
|
1498
1507
|
name: string;
|
|
@@ -1535,18 +1544,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1535
1544
|
text: string;
|
|
1536
1545
|
} | {
|
|
1537
1546
|
type: "image";
|
|
1538
|
-
image
|
|
1547
|
+
image: string;
|
|
1539
1548
|
mimeType?: string | undefined;
|
|
1540
1549
|
} | {
|
|
1541
1550
|
type: "file";
|
|
1542
1551
|
mimeType: string;
|
|
1543
|
-
data
|
|
1552
|
+
data: string;
|
|
1544
1553
|
filename?: string | undefined;
|
|
1545
1554
|
})[] | null;
|
|
1546
1555
|
role: "system" | "user" | "assistant" | "tool";
|
|
1547
|
-
|
|
1548
|
-
model?: string | undefined;
|
|
1549
|
-
router?: string | undefined;
|
|
1556
|
+
id?: string | undefined;
|
|
1550
1557
|
name?: string | undefined;
|
|
1551
1558
|
timestamp?: number | undefined;
|
|
1552
1559
|
reasoning?: string | undefined;
|
|
@@ -1556,6 +1563,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1556
1563
|
reasoningTokens?: number | undefined;
|
|
1557
1564
|
totalTokens?: number | undefined;
|
|
1558
1565
|
} | undefined;
|
|
1566
|
+
model?: string | undefined;
|
|
1567
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1568
|
+
router?: "vercel" | "in-built" | undefined;
|
|
1559
1569
|
toolCalls?: {
|
|
1560
1570
|
function: {
|
|
1561
1571
|
name: string;
|
|
@@ -1659,18 +1669,16 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1659
1669
|
text: string;
|
|
1660
1670
|
} | {
|
|
1661
1671
|
type: "image";
|
|
1662
|
-
image
|
|
1672
|
+
image: string;
|
|
1663
1673
|
mimeType?: string | undefined;
|
|
1664
1674
|
} | {
|
|
1665
1675
|
type: "file";
|
|
1666
1676
|
mimeType: string;
|
|
1667
|
-
data
|
|
1677
|
+
data: string;
|
|
1668
1678
|
filename?: string | undefined;
|
|
1669
1679
|
})[] | null;
|
|
1670
1680
|
role: "system" | "user" | "assistant" | "tool";
|
|
1671
|
-
|
|
1672
|
-
model?: string | undefined;
|
|
1673
|
-
router?: string | undefined;
|
|
1681
|
+
id?: string | undefined;
|
|
1674
1682
|
name?: string | undefined;
|
|
1675
1683
|
timestamp?: number | undefined;
|
|
1676
1684
|
reasoning?: string | undefined;
|
|
@@ -1680,6 +1688,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1680
1688
|
reasoningTokens?: number | undefined;
|
|
1681
1689
|
totalTokens?: number | undefined;
|
|
1682
1690
|
} | undefined;
|
|
1691
|
+
model?: string | undefined;
|
|
1692
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1693
|
+
router?: "vercel" | "in-built" | undefined;
|
|
1683
1694
|
toolCalls?: {
|
|
1684
1695
|
function: {
|
|
1685
1696
|
name: string;
|
|
@@ -1819,10 +1830,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1819
1830
|
};
|
|
1820
1831
|
output: {
|
|
1821
1832
|
config: {
|
|
1822
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
1823
1833
|
model: string;
|
|
1824
|
-
|
|
1834
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
1825
1835
|
router?: "vercel" | "in-built" | undefined;
|
|
1836
|
+
maxIterations?: number | undefined;
|
|
1826
1837
|
baseURL?: string | undefined;
|
|
1827
1838
|
maxInputTokens?: number | undefined;
|
|
1828
1839
|
maxOutputTokens?: number | undefined;
|
|
@@ -1852,15 +1863,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1852
1863
|
output: {
|
|
1853
1864
|
providers: {
|
|
1854
1865
|
openai?: {
|
|
1855
|
-
hasApiKey: boolean;
|
|
1856
1866
|
name: string;
|
|
1867
|
+
hasApiKey: boolean;
|
|
1857
1868
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1858
1869
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1859
1870
|
primaryEnvVar: string;
|
|
1860
1871
|
supportsBaseURL: boolean;
|
|
1861
1872
|
models: {
|
|
1862
|
-
maxInputTokens: number;
|
|
1863
1873
|
name: string;
|
|
1874
|
+
maxInputTokens: number;
|
|
1864
1875
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1865
1876
|
default?: boolean | undefined;
|
|
1866
1877
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1876,15 +1887,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1876
1887
|
}[];
|
|
1877
1888
|
} | undefined;
|
|
1878
1889
|
"openai-compatible"?: {
|
|
1879
|
-
hasApiKey: boolean;
|
|
1880
1890
|
name: string;
|
|
1891
|
+
hasApiKey: boolean;
|
|
1881
1892
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1882
1893
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1883
1894
|
primaryEnvVar: string;
|
|
1884
1895
|
supportsBaseURL: boolean;
|
|
1885
1896
|
models: {
|
|
1886
|
-
maxInputTokens: number;
|
|
1887
1897
|
name: string;
|
|
1898
|
+
maxInputTokens: number;
|
|
1888
1899
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1889
1900
|
default?: boolean | undefined;
|
|
1890
1901
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1900,15 +1911,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1900
1911
|
}[];
|
|
1901
1912
|
} | undefined;
|
|
1902
1913
|
anthropic?: {
|
|
1903
|
-
hasApiKey: boolean;
|
|
1904
1914
|
name: string;
|
|
1915
|
+
hasApiKey: boolean;
|
|
1905
1916
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1906
1917
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1907
1918
|
primaryEnvVar: string;
|
|
1908
1919
|
supportsBaseURL: boolean;
|
|
1909
1920
|
models: {
|
|
1910
|
-
maxInputTokens: number;
|
|
1911
1921
|
name: string;
|
|
1922
|
+
maxInputTokens: number;
|
|
1912
1923
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1913
1924
|
default?: boolean | undefined;
|
|
1914
1925
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1924,15 +1935,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1924
1935
|
}[];
|
|
1925
1936
|
} | undefined;
|
|
1926
1937
|
google?: {
|
|
1927
|
-
hasApiKey: boolean;
|
|
1928
1938
|
name: string;
|
|
1939
|
+
hasApiKey: boolean;
|
|
1929
1940
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1930
1941
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1931
1942
|
primaryEnvVar: string;
|
|
1932
1943
|
supportsBaseURL: boolean;
|
|
1933
1944
|
models: {
|
|
1934
|
-
maxInputTokens: number;
|
|
1935
1945
|
name: string;
|
|
1946
|
+
maxInputTokens: number;
|
|
1936
1947
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1937
1948
|
default?: boolean | undefined;
|
|
1938
1949
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1948,15 +1959,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1948
1959
|
}[];
|
|
1949
1960
|
} | undefined;
|
|
1950
1961
|
groq?: {
|
|
1951
|
-
hasApiKey: boolean;
|
|
1952
1962
|
name: string;
|
|
1963
|
+
hasApiKey: boolean;
|
|
1953
1964
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1954
1965
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1955
1966
|
primaryEnvVar: string;
|
|
1956
1967
|
supportsBaseURL: boolean;
|
|
1957
1968
|
models: {
|
|
1958
|
-
maxInputTokens: number;
|
|
1959
1969
|
name: string;
|
|
1970
|
+
maxInputTokens: number;
|
|
1960
1971
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1961
1972
|
default?: boolean | undefined;
|
|
1962
1973
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1972,15 +1983,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1972
1983
|
}[];
|
|
1973
1984
|
} | undefined;
|
|
1974
1985
|
xai?: {
|
|
1975
|
-
hasApiKey: boolean;
|
|
1976
1986
|
name: string;
|
|
1987
|
+
hasApiKey: boolean;
|
|
1977
1988
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1978
1989
|
supportedRouters: ("vercel" | "in-built")[];
|
|
1979
1990
|
primaryEnvVar: string;
|
|
1980
1991
|
supportsBaseURL: boolean;
|
|
1981
1992
|
models: {
|
|
1982
|
-
maxInputTokens: number;
|
|
1983
1993
|
name: string;
|
|
1994
|
+
maxInputTokens: number;
|
|
1984
1995
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
1985
1996
|
default?: boolean | undefined;
|
|
1986
1997
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -1996,15 +2007,15 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
1996
2007
|
}[];
|
|
1997
2008
|
} | undefined;
|
|
1998
2009
|
cohere?: {
|
|
1999
|
-
hasApiKey: boolean;
|
|
2000
2010
|
name: string;
|
|
2011
|
+
hasApiKey: boolean;
|
|
2001
2012
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2002
2013
|
supportedRouters: ("vercel" | "in-built")[];
|
|
2003
2014
|
primaryEnvVar: string;
|
|
2004
2015
|
supportsBaseURL: boolean;
|
|
2005
2016
|
models: {
|
|
2006
|
-
maxInputTokens: number;
|
|
2007
2017
|
name: string;
|
|
2018
|
+
maxInputTokens: number;
|
|
2008
2019
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2009
2020
|
default?: boolean | undefined;
|
|
2010
2021
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -2022,9 +2033,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2022
2033
|
};
|
|
2023
2034
|
} | {
|
|
2024
2035
|
models: {
|
|
2036
|
+
name: string;
|
|
2025
2037
|
provider: string;
|
|
2026
2038
|
maxInputTokens: number;
|
|
2027
|
-
name: string;
|
|
2028
2039
|
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2029
2040
|
default?: boolean | undefined;
|
|
2030
2041
|
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
@@ -2082,10 +2093,10 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2082
2093
|
};
|
|
2083
2094
|
output: {
|
|
2084
2095
|
config: {
|
|
2085
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2086
2096
|
model: string;
|
|
2087
|
-
|
|
2097
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2088
2098
|
router: "vercel" | "in-built";
|
|
2099
|
+
maxIterations: number;
|
|
2089
2100
|
baseURL?: string | undefined;
|
|
2090
2101
|
maxInputTokens?: number | undefined;
|
|
2091
2102
|
maxOutputTokens?: number | undefined;
|
|
@@ -2107,12 +2118,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2107
2118
|
sessionId: string;
|
|
2108
2119
|
message?: string | undefined;
|
|
2109
2120
|
imageData?: {
|
|
2121
|
+
image: string;
|
|
2110
2122
|
mimeType: string;
|
|
2111
|
-
base64: string;
|
|
2112
2123
|
} | undefined;
|
|
2113
2124
|
fileData?: {
|
|
2114
2125
|
mimeType: string;
|
|
2115
|
-
|
|
2126
|
+
data: string;
|
|
2116
2127
|
filename?: string | undefined;
|
|
2117
2128
|
} | undefined;
|
|
2118
2129
|
};
|
|
@@ -2129,12 +2140,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2129
2140
|
sessionId: string;
|
|
2130
2141
|
message?: string | undefined;
|
|
2131
2142
|
imageData?: {
|
|
2143
|
+
image: string;
|
|
2132
2144
|
mimeType: string;
|
|
2133
|
-
base64: string;
|
|
2134
2145
|
} | undefined;
|
|
2135
2146
|
fileData?: {
|
|
2136
2147
|
mimeType: string;
|
|
2137
|
-
|
|
2148
|
+
data: string;
|
|
2138
2149
|
filename?: string | undefined;
|
|
2139
2150
|
} | undefined;
|
|
2140
2151
|
};
|
|
@@ -2152,12 +2163,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2152
2163
|
sessionId: string;
|
|
2153
2164
|
message?: string | undefined;
|
|
2154
2165
|
imageData?: {
|
|
2166
|
+
image: string;
|
|
2155
2167
|
mimeType: string;
|
|
2156
|
-
base64: string;
|
|
2157
2168
|
} | undefined;
|
|
2158
2169
|
fileData?: {
|
|
2159
2170
|
mimeType: string;
|
|
2160
|
-
|
|
2171
|
+
data: string;
|
|
2161
2172
|
filename?: string | undefined;
|
|
2162
2173
|
} | undefined;
|
|
2163
2174
|
};
|
|
@@ -2171,12 +2182,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2171
2182
|
sessionId: string;
|
|
2172
2183
|
message?: string | undefined;
|
|
2173
2184
|
imageData?: {
|
|
2185
|
+
image: string;
|
|
2174
2186
|
mimeType: string;
|
|
2175
|
-
base64: string;
|
|
2176
2187
|
} | undefined;
|
|
2177
2188
|
fileData?: {
|
|
2178
2189
|
mimeType: string;
|
|
2179
|
-
|
|
2190
|
+
data: string;
|
|
2180
2191
|
filename?: string | undefined;
|
|
2181
2192
|
} | undefined;
|
|
2182
2193
|
};
|
|
@@ -2184,9 +2195,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2184
2195
|
output: {
|
|
2185
2196
|
sessionId: string;
|
|
2186
2197
|
response: string;
|
|
2187
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2188
|
-
model?: string | undefined;
|
|
2189
|
-
router?: "vercel" | "in-built" | undefined;
|
|
2190
2198
|
reasoning?: string | undefined;
|
|
2191
2199
|
tokenUsage?: {
|
|
2192
2200
|
inputTokens?: number | undefined;
|
|
@@ -2194,6 +2202,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2194
2202
|
reasoningTokens?: number | undefined;
|
|
2195
2203
|
totalTokens?: number | undefined;
|
|
2196
2204
|
} | undefined;
|
|
2205
|
+
model?: string | undefined;
|
|
2206
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2207
|
+
router?: "vercel" | "in-built" | undefined;
|
|
2197
2208
|
};
|
|
2198
2209
|
outputFormat: "json";
|
|
2199
2210
|
status: 200;
|
|
@@ -2223,12 +2234,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2223
2234
|
sessionId: string;
|
|
2224
2235
|
message?: string | undefined;
|
|
2225
2236
|
imageData?: {
|
|
2237
|
+
image: string;
|
|
2226
2238
|
mimeType: string;
|
|
2227
|
-
base64: string;
|
|
2228
2239
|
} | undefined;
|
|
2229
2240
|
fileData?: {
|
|
2230
2241
|
mimeType: string;
|
|
2231
|
-
|
|
2242
|
+
data: string;
|
|
2232
2243
|
filename?: string | undefined;
|
|
2233
2244
|
} | undefined;
|
|
2234
2245
|
};
|
|
@@ -2242,12 +2253,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2242
2253
|
sessionId: string;
|
|
2243
2254
|
message?: string | undefined;
|
|
2244
2255
|
imageData?: {
|
|
2256
|
+
image: string;
|
|
2245
2257
|
mimeType: string;
|
|
2246
|
-
base64: string;
|
|
2247
2258
|
} | undefined;
|
|
2248
2259
|
fileData?: {
|
|
2249
2260
|
mimeType: string;
|
|
2250
|
-
|
|
2261
|
+
data: string;
|
|
2251
2262
|
filename?: string | undefined;
|
|
2252
2263
|
} | undefined;
|
|
2253
2264
|
};
|
|
@@ -2780,4 +2791,5 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2780
2791
|
};
|
|
2781
2792
|
}, "/health">, "/">;
|
|
2782
2793
|
export type AppType = ReturnType<typeof createDextoApp>;
|
|
2794
|
+
export type { WebUIRuntimeConfig } from './routes/static.js';
|
|
2783
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,GAA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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
|
}
|
|
@@ -170,8 +170,8 @@ export declare function createAgentsRouter(getAgent: () => DextoAgent, context:
|
|
|
170
170
|
} | {
|
|
171
171
|
type: "dynamic";
|
|
172
172
|
id: string;
|
|
173
|
+
source: "resources" | "dateTime";
|
|
173
174
|
priority: number;
|
|
174
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
175
175
|
enabled?: boolean | undefined;
|
|
176
176
|
} | {
|
|
177
177
|
type: "file";
|
|
@@ -186,17 +186,6 @@ export declare function createAgentsRouter(getAgent: () => DextoAgent, context:
|
|
|
186
186
|
includeMetadata?: boolean | undefined;
|
|
187
187
|
} | undefined;
|
|
188
188
|
enabled?: boolean | undefined;
|
|
189
|
-
} | {
|
|
190
|
-
type: "memory";
|
|
191
|
-
id: string;
|
|
192
|
-
priority: number;
|
|
193
|
-
options?: {
|
|
194
|
-
includeTimestamps?: boolean | undefined;
|
|
195
|
-
includeTags?: boolean | undefined;
|
|
196
|
-
limit?: number | undefined;
|
|
197
|
-
pinnedOnly?: boolean | undefined;
|
|
198
|
-
} | undefined;
|
|
199
|
-
enabled?: boolean | undefined;
|
|
200
189
|
})[] | undefined;
|
|
201
190
|
};
|
|
202
191
|
storage?: {
|
|
@@ -292,15 +281,21 @@ export declare function createAgentsRouter(getAgent: () => DextoAgent, context:
|
|
|
292
281
|
timeout?: number | undefined;
|
|
293
282
|
enabled?: boolean | undefined;
|
|
294
283
|
} | undefined;
|
|
295
|
-
|
|
296
|
-
starterPrompts?: {
|
|
284
|
+
prompts?: ({
|
|
297
285
|
prompt: string;
|
|
286
|
+
type: "inline";
|
|
298
287
|
id: string;
|
|
299
288
|
description?: string | undefined;
|
|
300
289
|
title?: string | undefined;
|
|
301
290
|
priority?: number | undefined;
|
|
302
291
|
category?: string | undefined;
|
|
303
|
-
|
|
292
|
+
showInStarters?: boolean | undefined;
|
|
293
|
+
} | {
|
|
294
|
+
file: string;
|
|
295
|
+
type: "file";
|
|
296
|
+
showInStarters?: boolean | undefined;
|
|
297
|
+
})[] | undefined;
|
|
298
|
+
agentId?: string | undefined;
|
|
304
299
|
agentCard?: {
|
|
305
300
|
description: string;
|
|
306
301
|
url: string;
|
|
@@ -464,6 +459,14 @@ export declare function createAgentsRouter(getAgent: () => DextoAgent, context:
|
|
|
464
459
|
}[] | undefined;
|
|
465
460
|
} | undefined;
|
|
466
461
|
greeting?: string | undefined;
|
|
462
|
+
memories?: {
|
|
463
|
+
enabled?: boolean | undefined;
|
|
464
|
+
limit?: number | undefined;
|
|
465
|
+
priority?: number | undefined;
|
|
466
|
+
includeTimestamps?: boolean | undefined;
|
|
467
|
+
includeTags?: boolean | undefined;
|
|
468
|
+
pinnedOnly?: boolean | undefined;
|
|
469
|
+
} | undefined;
|
|
467
470
|
mcpServers?: Record<string, {
|
|
468
471
|
type: "stdio";
|
|
469
472
|
command: string;
|