@dexto/server 1.6.8 → 1.6.10
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.d.ts +173 -12
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/routes/llm.cjs +282 -0
- package/dist/hono/routes/llm.d.ts +90 -0
- package/dist/hono/routes/llm.d.ts.map +1 -1
- package/dist/hono/routes/llm.js +295 -2
- package/dist/hono/routes/sessions.cjs +73 -44
- package/dist/hono/routes/sessions.d.ts +71 -0
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +78 -45
- package/dist/hono/routes/system-prompt.d.ts +12 -12
- package/dist/hono/schemas/responses.cjs +2 -1
- package/dist/hono/schemas/responses.d.ts +3 -0
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +2 -1
- package/package.json +8 -8
|
@@ -37,6 +37,7 @@ export declare function createSessionsRouter(getAgent: GetAgentFn): OpenAPIHono<
|
|
|
37
37
|
lastUsedAt: number;
|
|
38
38
|
}[] | undefined;
|
|
39
39
|
workspaceId?: string | null | undefined;
|
|
40
|
+
parentSessionId?: string | null | undefined;
|
|
40
41
|
}[];
|
|
41
42
|
};
|
|
42
43
|
outputFormat: "json";
|
|
@@ -84,12 +85,79 @@ export declare function createSessionsRouter(getAgent: GetAgentFn): OpenAPIHono<
|
|
|
84
85
|
lastUsedAt: number;
|
|
85
86
|
}[] | undefined;
|
|
86
87
|
workspaceId?: string | null | undefined;
|
|
88
|
+
parentSessionId?: string | null | undefined;
|
|
87
89
|
};
|
|
88
90
|
};
|
|
89
91
|
outputFormat: "json";
|
|
90
92
|
status: 201;
|
|
91
93
|
};
|
|
92
94
|
};
|
|
95
|
+
} & {
|
|
96
|
+
"/sessions/:sessionId/fork": {
|
|
97
|
+
$post: {
|
|
98
|
+
input: {
|
|
99
|
+
param: {
|
|
100
|
+
sessionId: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
output: {
|
|
104
|
+
session: {
|
|
105
|
+
id: string;
|
|
106
|
+
messageCount: number;
|
|
107
|
+
createdAt: number | null;
|
|
108
|
+
lastActivity: number | null;
|
|
109
|
+
title?: string | null | undefined;
|
|
110
|
+
tokenUsage?: {
|
|
111
|
+
inputTokens: number;
|
|
112
|
+
outputTokens: number;
|
|
113
|
+
reasoningTokens: number;
|
|
114
|
+
totalTokens: number;
|
|
115
|
+
cacheReadTokens: number;
|
|
116
|
+
cacheWriteTokens: number;
|
|
117
|
+
} | undefined;
|
|
118
|
+
estimatedCost?: number | undefined;
|
|
119
|
+
modelStats?: {
|
|
120
|
+
tokenUsage: {
|
|
121
|
+
inputTokens: number;
|
|
122
|
+
outputTokens: number;
|
|
123
|
+
reasoningTokens: number;
|
|
124
|
+
totalTokens: number;
|
|
125
|
+
cacheReadTokens: number;
|
|
126
|
+
cacheWriteTokens: number;
|
|
127
|
+
};
|
|
128
|
+
model: string;
|
|
129
|
+
provider: string;
|
|
130
|
+
messageCount: number;
|
|
131
|
+
estimatedCost: number;
|
|
132
|
+
firstUsedAt: number;
|
|
133
|
+
lastUsedAt: number;
|
|
134
|
+
}[] | undefined;
|
|
135
|
+
workspaceId?: string | null | undefined;
|
|
136
|
+
parentSessionId?: string | null | undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
outputFormat: "json";
|
|
140
|
+
status: 201;
|
|
141
|
+
} | {
|
|
142
|
+
input: {
|
|
143
|
+
param: {
|
|
144
|
+
sessionId: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
output: never;
|
|
148
|
+
outputFormat: "json";
|
|
149
|
+
status: 400;
|
|
150
|
+
} | {
|
|
151
|
+
input: {
|
|
152
|
+
param: {
|
|
153
|
+
sessionId: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
output: never;
|
|
157
|
+
outputFormat: "json";
|
|
158
|
+
status: 404;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
93
161
|
} & {
|
|
94
162
|
"/sessions/:sessionId": {
|
|
95
163
|
$get: {
|
|
@@ -132,6 +200,7 @@ export declare function createSessionsRouter(getAgent: GetAgentFn): OpenAPIHono<
|
|
|
132
200
|
lastUsedAt: number;
|
|
133
201
|
}[] | undefined;
|
|
134
202
|
workspaceId?: string | null | undefined;
|
|
203
|
+
parentSessionId?: string | null | undefined;
|
|
135
204
|
};
|
|
136
205
|
};
|
|
137
206
|
outputFormat: "json";
|
|
@@ -284,6 +353,7 @@ export declare function createSessionsRouter(getAgent: GetAgentFn): OpenAPIHono<
|
|
|
284
353
|
lastUsedAt: number;
|
|
285
354
|
}[] | undefined;
|
|
286
355
|
workspaceId?: string | null | undefined;
|
|
356
|
+
parentSessionId?: string | null | undefined;
|
|
287
357
|
};
|
|
288
358
|
};
|
|
289
359
|
outputFormat: "json";
|
|
@@ -346,6 +416,7 @@ export declare function createSessionsRouter(getAgent: GetAgentFn): OpenAPIHono<
|
|
|
346
416
|
lastUsedAt: number;
|
|
347
417
|
}[] | undefined;
|
|
348
418
|
workspaceId?: string | null | undefined;
|
|
419
|
+
parentSessionId?: string | null | undefined;
|
|
349
420
|
};
|
|
350
421
|
};
|
|
351
422
|
outputFormat: "json";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAOhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA+B9C,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8fxD"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
SessionMetadataSchema,
|
|
4
|
+
InternalMessageSchema,
|
|
5
|
+
StandardErrorEnvelopeSchema
|
|
6
|
+
} from "../schemas/responses.js";
|
|
3
7
|
const CreateSessionSchema = z.object({
|
|
4
8
|
sessionId: z.string().optional().describe("A custom ID for the new session")
|
|
5
9
|
}).describe("Request body for creating a new session");
|
|
10
|
+
function mapSessionMetadata(sessionId, metadata, defaults) {
|
|
11
|
+
return {
|
|
12
|
+
id: sessionId,
|
|
13
|
+
createdAt: metadata?.createdAt ?? defaults?.createdAt ?? null,
|
|
14
|
+
lastActivity: metadata?.lastActivity ?? defaults?.lastActivity ?? null,
|
|
15
|
+
messageCount: metadata?.messageCount ?? defaults?.messageCount ?? 0,
|
|
16
|
+
title: metadata?.title ?? defaults?.title ?? null,
|
|
17
|
+
workspaceId: metadata?.workspaceId ?? defaults?.workspaceId ?? null,
|
|
18
|
+
parentSessionId: metadata?.parentSessionId ?? defaults?.parentSessionId ?? null
|
|
19
|
+
};
|
|
20
|
+
}
|
|
6
21
|
function createSessionsRouter(getAgent) {
|
|
7
22
|
const app = new OpenAPIHono();
|
|
8
23
|
const listRoute = createRoute({
|
|
@@ -68,6 +83,48 @@ function createSessionsRouter(getAgent) {
|
|
|
68
83
|
}
|
|
69
84
|
}
|
|
70
85
|
});
|
|
86
|
+
const forkRoute = createRoute({
|
|
87
|
+
method: "post",
|
|
88
|
+
path: "/sessions/{sessionId}/fork",
|
|
89
|
+
summary: "Fork Session",
|
|
90
|
+
description: "Creates a new child session by cloning the specified parent session history and metadata lineage.",
|
|
91
|
+
tags: ["sessions"],
|
|
92
|
+
request: {
|
|
93
|
+
params: z.object({
|
|
94
|
+
sessionId: z.string().describe("Parent session identifier")
|
|
95
|
+
})
|
|
96
|
+
},
|
|
97
|
+
responses: {
|
|
98
|
+
201: {
|
|
99
|
+
description: "Forked session created successfully",
|
|
100
|
+
content: {
|
|
101
|
+
"application/json": {
|
|
102
|
+
schema: z.object({
|
|
103
|
+
session: SessionMetadataSchema.describe(
|
|
104
|
+
"Newly created child session metadata"
|
|
105
|
+
)
|
|
106
|
+
}).strict()
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
400: {
|
|
111
|
+
description: "Invalid fork request (for example, max session limit reached)",
|
|
112
|
+
content: {
|
|
113
|
+
"application/json": {
|
|
114
|
+
schema: StandardErrorEnvelopeSchema
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
404: {
|
|
119
|
+
description: "Parent session not found",
|
|
120
|
+
content: {
|
|
121
|
+
"application/json": {
|
|
122
|
+
schema: StandardErrorEnvelopeSchema
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
});
|
|
71
128
|
const historyRoute = createRoute({
|
|
72
129
|
method: "get",
|
|
73
130
|
path: "/sessions/{sessionId}/history",
|
|
@@ -251,23 +308,9 @@ function createSessionsRouter(getAgent) {
|
|
|
251
308
|
sessionIds.map(async (id) => {
|
|
252
309
|
try {
|
|
253
310
|
const metadata = await agent.getSessionMetadata(id);
|
|
254
|
-
return
|
|
255
|
-
id,
|
|
256
|
-
createdAt: metadata?.createdAt || null,
|
|
257
|
-
lastActivity: metadata?.lastActivity || null,
|
|
258
|
-
messageCount: metadata?.messageCount || 0,
|
|
259
|
-
title: metadata?.title || null,
|
|
260
|
-
workspaceId: metadata?.workspaceId || null
|
|
261
|
-
};
|
|
311
|
+
return mapSessionMetadata(id, metadata);
|
|
262
312
|
} catch {
|
|
263
|
-
return
|
|
264
|
-
id,
|
|
265
|
-
createdAt: null,
|
|
266
|
-
lastActivity: null,
|
|
267
|
-
messageCount: 0,
|
|
268
|
-
title: null,
|
|
269
|
-
workspaceId: null
|
|
270
|
-
};
|
|
313
|
+
return mapSessionMetadata(id, void 0);
|
|
271
314
|
}
|
|
272
315
|
})
|
|
273
316
|
);
|
|
@@ -279,14 +322,21 @@ function createSessionsRouter(getAgent) {
|
|
|
279
322
|
const metadata = await agent.getSessionMetadata(session.id);
|
|
280
323
|
return ctx.json(
|
|
281
324
|
{
|
|
282
|
-
session: {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
325
|
+
session: mapSessionMetadata(session.id, metadata, {
|
|
326
|
+
createdAt: Date.now(),
|
|
327
|
+
lastActivity: Date.now()
|
|
328
|
+
})
|
|
329
|
+
},
|
|
330
|
+
201
|
|
331
|
+
);
|
|
332
|
+
}).openapi(forkRoute, async (ctx) => {
|
|
333
|
+
const agent = await getAgent(ctx);
|
|
334
|
+
const { sessionId: parentSessionId } = ctx.req.valid("param");
|
|
335
|
+
const session = await agent.forkSession(parentSessionId);
|
|
336
|
+
const metadata = await agent.getSessionMetadata(session.id);
|
|
337
|
+
return ctx.json(
|
|
338
|
+
{
|
|
339
|
+
session: mapSessionMetadata(session.id, metadata)
|
|
290
340
|
},
|
|
291
341
|
201
|
|
292
342
|
);
|
|
@@ -297,12 +347,7 @@ function createSessionsRouter(getAgent) {
|
|
|
297
347
|
const history = await agent.getSessionHistory(sessionId);
|
|
298
348
|
return ctx.json({
|
|
299
349
|
session: {
|
|
300
|
-
|
|
301
|
-
createdAt: metadata?.createdAt || null,
|
|
302
|
-
lastActivity: metadata?.lastActivity || null,
|
|
303
|
-
messageCount: metadata?.messageCount || 0,
|
|
304
|
-
title: metadata?.title || null,
|
|
305
|
-
workspaceId: metadata?.workspaceId || null,
|
|
350
|
+
...mapSessionMetadata(sessionId, metadata),
|
|
306
351
|
history: history.length
|
|
307
352
|
}
|
|
308
353
|
});
|
|
@@ -363,12 +408,7 @@ function createSessionsRouter(getAgent) {
|
|
|
363
408
|
return ctx.json(
|
|
364
409
|
{
|
|
365
410
|
session: {
|
|
366
|
-
|
|
367
|
-
createdAt: metadata?.createdAt || null,
|
|
368
|
-
lastActivity: metadata?.lastActivity || null,
|
|
369
|
-
messageCount: metadata?.messageCount || 0,
|
|
370
|
-
title: metadata?.title || null,
|
|
371
|
-
workspaceId: metadata?.workspaceId || null,
|
|
411
|
+
...mapSessionMetadata(sessionId, metadata),
|
|
372
412
|
isBusy
|
|
373
413
|
}
|
|
374
414
|
},
|
|
@@ -381,14 +421,7 @@ function createSessionsRouter(getAgent) {
|
|
|
381
421
|
await agent.setSessionTitle(sessionId, title);
|
|
382
422
|
const metadata = await agent.getSessionMetadata(sessionId);
|
|
383
423
|
return ctx.json({
|
|
384
|
-
session: {
|
|
385
|
-
id: sessionId,
|
|
386
|
-
createdAt: metadata?.createdAt || null,
|
|
387
|
-
lastActivity: metadata?.lastActivity || null,
|
|
388
|
-
messageCount: metadata?.messageCount || 0,
|
|
389
|
-
title: metadata?.title || title,
|
|
390
|
-
workspaceId: metadata?.workspaceId || null
|
|
391
|
-
}
|
|
424
|
+
session: mapSessionMetadata(sessionId, metadata, { title })
|
|
392
425
|
});
|
|
393
426
|
}).openapi(generateTitleRoute, async (ctx) => {
|
|
394
427
|
const agent = await getAgent(ctx);
|
|
@@ -27,17 +27,9 @@ export declare function createSystemPromptRouter(getAgent: GetAgentFn): OpenAPIH
|
|
|
27
27
|
priority?: number | undefined;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
output:
|
|
31
|
-
id: string;
|
|
32
|
-
enabled: boolean;
|
|
33
|
-
removed?: boolean | undefined;
|
|
34
|
-
priority?: number | undefined;
|
|
35
|
-
replaced?: boolean | undefined;
|
|
36
|
-
contentLength?: number | undefined;
|
|
37
|
-
truncated?: boolean | undefined;
|
|
38
|
-
};
|
|
30
|
+
output: never;
|
|
39
31
|
outputFormat: "json";
|
|
40
|
-
status:
|
|
32
|
+
status: 400;
|
|
41
33
|
} | {
|
|
42
34
|
input: {
|
|
43
35
|
json: {
|
|
@@ -47,9 +39,17 @@ export declare function createSystemPromptRouter(getAgent: GetAgentFn): OpenAPIH
|
|
|
47
39
|
priority?: number | undefined;
|
|
48
40
|
};
|
|
49
41
|
};
|
|
50
|
-
output:
|
|
42
|
+
output: {
|
|
43
|
+
id: string;
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
removed?: boolean | undefined;
|
|
46
|
+
priority?: number | undefined;
|
|
47
|
+
replaced?: boolean | undefined;
|
|
48
|
+
contentLength?: number | undefined;
|
|
49
|
+
truncated?: boolean | undefined;
|
|
50
|
+
};
|
|
51
51
|
outputFormat: "json";
|
|
52
|
-
status:
|
|
52
|
+
status: 200;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
}, "/">;
|
|
@@ -169,7 +169,8 @@ const SessionMetadataSchema = import_zod.z.object({
|
|
|
169
169
|
),
|
|
170
170
|
estimatedCost: import_zod.z.number().nonnegative().optional().describe("Total estimated cost in USD across all models"),
|
|
171
171
|
modelStats: import_zod.z.array(ModelStatisticsSchema).optional().describe("Per-model usage statistics (for multi-model sessions)"),
|
|
172
|
-
workspaceId: import_zod.z.string().optional().nullable().describe("Associated workspace ID, if any")
|
|
172
|
+
workspaceId: import_zod.z.string().optional().nullable().describe("Associated workspace ID, if any"),
|
|
173
|
+
parentSessionId: import_zod.z.string().optional().nullable().describe("Parent session ID if this session was forked, otherwise null")
|
|
173
174
|
}).strict().describe("Session metadata");
|
|
174
175
|
const WorkspaceSchema = import_zod.z.object({
|
|
175
176
|
id: import_zod.z.string().describe("Workspace identifier"),
|
|
@@ -797,6 +797,7 @@ export declare const SessionMetadataSchema: z.ZodObject<{
|
|
|
797
797
|
lastUsedAt: number;
|
|
798
798
|
}>, "many">>;
|
|
799
799
|
workspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
800
|
+
parentSessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
800
801
|
}, "strict", z.ZodTypeAny, {
|
|
801
802
|
id: string;
|
|
802
803
|
messageCount: number;
|
|
@@ -829,6 +830,7 @@ export declare const SessionMetadataSchema: z.ZodObject<{
|
|
|
829
830
|
lastUsedAt: number;
|
|
830
831
|
}[] | undefined;
|
|
831
832
|
workspaceId?: string | null | undefined;
|
|
833
|
+
parentSessionId?: string | null | undefined;
|
|
832
834
|
}, {
|
|
833
835
|
id: string;
|
|
834
836
|
messageCount: number;
|
|
@@ -861,6 +863,7 @@ export declare const SessionMetadataSchema: z.ZodObject<{
|
|
|
861
863
|
lastUsedAt: number;
|
|
862
864
|
}[] | undefined;
|
|
863
865
|
workspaceId?: string | null | undefined;
|
|
866
|
+
parentSessionId?: string | null | undefined;
|
|
864
867
|
}>;
|
|
865
868
|
export type SessionTokenUsage = z.output<typeof SessionTokenUsageSchema>;
|
|
866
869
|
export type ModelStatistics = z.output<typeof ModelStatisticsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,OAAO,EAAE,YAAY,EAAE,MAAM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AAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGjF,eAAO,MAAM,oBAAoB;;;;;;;;;EAMD,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,eAAO,MAAM,oBAAoB;;;;;;;;;EAMS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -106,7 +106,8 @@ const SessionMetadataSchema = z.object({
|
|
|
106
106
|
),
|
|
107
107
|
estimatedCost: z.number().nonnegative().optional().describe("Total estimated cost in USD across all models"),
|
|
108
108
|
modelStats: z.array(ModelStatisticsSchema).optional().describe("Per-model usage statistics (for multi-model sessions)"),
|
|
109
|
-
workspaceId: z.string().optional().nullable().describe("Associated workspace ID, if any")
|
|
109
|
+
workspaceId: z.string().optional().nullable().describe("Associated workspace ID, if any"),
|
|
110
|
+
parentSessionId: z.string().optional().nullable().describe("Parent session ID if this session was forked, otherwise null")
|
|
110
111
|
}).strict().describe("Session metadata");
|
|
111
112
|
const WorkspaceSchema = z.object({
|
|
112
113
|
id: z.string().describe("Workspace identifier"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/server",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"hono": "^4.11.10",
|
|
31
31
|
"ws": "^8.18.1",
|
|
32
32
|
"yaml": "^2.7.1",
|
|
33
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
34
|
-
"@dexto/agent-config": "1.6.
|
|
35
|
-
"@dexto/agent-management": "1.6.
|
|
36
|
-
"@dexto/core": "1.6.
|
|
37
|
-
"@dexto/image-local": "1.6.
|
|
38
|
-
"@dexto/storage": "1.6.
|
|
39
|
-
"@dexto/tools-scheduler": "1.6.
|
|
33
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
34
|
+
"@dexto/agent-config": "1.6.10",
|
|
35
|
+
"@dexto/agent-management": "1.6.10",
|
|
36
|
+
"@dexto/core": "1.6.10",
|
|
37
|
+
"@dexto/image-local": "1.6.10",
|
|
38
|
+
"@dexto/storage": "1.6.10",
|
|
39
|
+
"@dexto/tools-scheduler": "1.6.10"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|