@dexto/server 1.6.0 → 1.6.1

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.
@@ -1381,8 +1381,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1381
1381
  ok: true;
1382
1382
  memory: {
1383
1383
  content: string;
1384
- id: string;
1385
1384
  createdAt: number;
1385
+ id: string;
1386
1386
  updatedAt: number;
1387
1387
  metadata?: {
1388
1388
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1411,8 +1411,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1411
1411
  output: {
1412
1412
  memories: {
1413
1413
  content: string;
1414
- id: string;
1415
1414
  createdAt: number;
1415
+ id: string;
1416
1416
  updatedAt: number;
1417
1417
  metadata?: {
1418
1418
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1439,8 +1439,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1439
1439
  ok: true;
1440
1440
  memory: {
1441
1441
  content: string;
1442
- id: string;
1443
1442
  createdAt: number;
1443
+ id: string;
1444
1444
  updatedAt: number;
1445
1445
  metadata?: {
1446
1446
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1463,11 +1463,11 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1463
1463
  };
1464
1464
  } & {
1465
1465
  json: {
1466
- content?: string | undefined;
1467
1466
  metadata?: import("zod").objectInputType<{
1468
1467
  source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
1469
1468
  pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
1470
1469
  }, import("zod").ZodTypeAny, "passthrough"> | undefined;
1470
+ content?: string | undefined;
1471
1471
  tags?: string[] | undefined;
1472
1472
  };
1473
1473
  };
@@ -1475,8 +1475,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1475
1475
  ok: true;
1476
1476
  memory: {
1477
1477
  content: string;
1478
- id: string;
1479
1478
  createdAt: number;
1479
+ id: string;
1480
1480
  updatedAt: number;
1481
1481
  metadata?: {
1482
1482
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1855,8 +1855,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1855
1855
  type: "stdio";
1856
1856
  command: string;
1857
1857
  timeout?: number | undefined;
1858
- enabled?: boolean | undefined;
1859
1858
  args?: string[] | undefined;
1859
+ enabled?: boolean | undefined;
1860
1860
  env?: Record<string, string> | undefined;
1861
1861
  connectionMode?: "strict" | "lenient" | undefined;
1862
1862
  } | {
@@ -1922,9 +1922,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1922
1922
  config: {
1923
1923
  timeout: number;
1924
1924
  type: "stdio";
1925
- enabled: boolean;
1926
- command: string;
1927
1925
  args: string[];
1926
+ command: string;
1927
+ enabled: boolean;
1928
1928
  env: {
1929
1929
  [x: string]: string;
1930
1930
  };
@@ -1967,8 +1967,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1967
1967
  type: "stdio";
1968
1968
  command: string;
1969
1969
  timeout?: number | undefined;
1970
- enabled?: boolean | undefined;
1971
1970
  args?: string[] | undefined;
1971
+ enabled?: boolean | undefined;
1972
1972
  env?: Record<string, string> | undefined;
1973
1973
  connectionMode?: "strict" | "lenient" | undefined;
1974
1974
  } | {
@@ -2003,8 +2003,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2003
2003
  type: "stdio";
2004
2004
  command: string;
2005
2005
  timeout?: number | undefined;
2006
- enabled?: boolean | undefined;
2007
2006
  args?: string[] | undefined;
2007
+ enabled?: boolean | undefined;
2008
2008
  env?: Record<string, string> | undefined;
2009
2009
  connectionMode?: "strict" | "lenient" | undefined;
2010
2010
  } | {
@@ -3212,9 +3212,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3212
3212
  $post: {
3213
3213
  input: {
3214
3214
  json: {
3215
+ apiKey?: string | undefined;
3215
3216
  model?: string | undefined;
3216
3217
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3217
- apiKey?: string | undefined;
3218
3218
  maxInputTokens?: number | undefined;
3219
3219
  maxIterations?: number | undefined;
3220
3220
  baseURL?: string | undefined;
@@ -450,9 +450,9 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
450
450
  $post: {
451
451
  input: {
452
452
  json: {
453
+ apiKey?: string | undefined;
453
454
  model?: string | undefined;
454
455
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
455
- apiKey?: string | undefined;
456
456
  maxInputTokens?: number | undefined;
457
457
  maxIterations?: number | undefined;
458
458
  baseURL?: string | undefined;
@@ -9,8 +9,8 @@ export declare function createMcpRouter(getAgent: GetAgentFn, getAgentConfigPath
9
9
  type: "stdio";
10
10
  command: string;
11
11
  timeout?: number | undefined;
12
- enabled?: boolean | undefined;
13
12
  args?: string[] | undefined;
13
+ enabled?: boolean | undefined;
14
14
  env?: Record<string, string> | undefined;
15
15
  connectionMode?: "strict" | "lenient" | undefined;
16
16
  } | {
@@ -76,9 +76,9 @@ export declare function createMcpRouter(getAgent: GetAgentFn, getAgentConfigPath
76
76
  config: {
77
77
  timeout: number;
78
78
  type: "stdio";
79
- enabled: boolean;
80
- command: string;
81
79
  args: string[];
80
+ command: string;
81
+ enabled: boolean;
82
82
  env: {
83
83
  [x: string]: string;
84
84
  };
@@ -121,8 +121,8 @@ export declare function createMcpRouter(getAgent: GetAgentFn, getAgentConfigPath
121
121
  type: "stdio";
122
122
  command: string;
123
123
  timeout?: number | undefined;
124
- enabled?: boolean | undefined;
125
124
  args?: string[] | undefined;
125
+ enabled?: boolean | undefined;
126
126
  env?: Record<string, string> | undefined;
127
127
  connectionMode?: "strict" | "lenient" | undefined;
128
128
  } | {
@@ -157,8 +157,8 @@ export declare function createMcpRouter(getAgent: GetAgentFn, getAgentConfigPath
157
157
  type: "stdio";
158
158
  command: string;
159
159
  timeout?: number | undefined;
160
- enabled?: boolean | undefined;
161
160
  args?: string[] | undefined;
161
+ enabled?: boolean | undefined;
162
162
  env?: Record<string, string> | undefined;
163
163
  connectionMode?: "strict" | "lenient" | undefined;
164
164
  } | {
@@ -19,8 +19,8 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
19
19
  ok: true;
20
20
  memory: {
21
21
  content: string;
22
- id: string;
23
22
  createdAt: number;
23
+ id: string;
24
24
  updatedAt: number;
25
25
  metadata?: {
26
26
  [x: string]: import("hono/utils/types").JSONValue;
@@ -49,8 +49,8 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
49
49
  output: {
50
50
  memories: {
51
51
  content: string;
52
- id: string;
53
52
  createdAt: number;
53
+ id: string;
54
54
  updatedAt: number;
55
55
  metadata?: {
56
56
  [x: string]: import("hono/utils/types").JSONValue;
@@ -77,8 +77,8 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
77
77
  ok: true;
78
78
  memory: {
79
79
  content: string;
80
- id: string;
81
80
  createdAt: number;
81
+ id: string;
82
82
  updatedAt: number;
83
83
  metadata?: {
84
84
  [x: string]: import("hono/utils/types").JSONValue;
@@ -101,11 +101,11 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
101
101
  };
102
102
  } & {
103
103
  json: {
104
- content?: string | undefined;
105
104
  metadata?: z.objectInputType<{
106
105
  source: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
107
106
  pinned: z.ZodOptional<z.ZodBoolean>;
108
107
  }, z.ZodTypeAny, "passthrough"> | undefined;
108
+ content?: string | undefined;
109
109
  tags?: string[] | undefined;
110
110
  };
111
111
  };
@@ -113,8 +113,8 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
113
113
  ok: true;
114
114
  memory: {
115
115
  content: string;
116
- id: string;
117
116
  createdAt: number;
117
+ id: string;
118
118
  updatedAt: number;
119
119
  metadata?: {
120
120
  [x: string]: import("hono/utils/types").JSONValue;
@@ -24,6 +24,7 @@ module.exports = __toCommonJS(schedules_exports);
24
24
  var import_zod_openapi = require("@hono/zod-openapi");
25
25
  var import_responses = require("../schemas/responses.js");
26
26
  var import_tools_scheduler = require("@dexto/tools-scheduler");
27
+ var import_service = require("@dexto/tools-scheduler/service");
27
28
  var import_core = require("@dexto/core");
28
29
  const CreateScheduleSchema = import_zod_openapi.z.object({
29
30
  name: import_zod_openapi.z.string().min(1).describe("Schedule name"),
@@ -57,9 +58,9 @@ function createSchedulesRouter(getAgent) {
57
58
  const resolveScheduler = async (ctx) => {
58
59
  const agent = await getAgent(ctx);
59
60
  const agentId = agent.config?.agentId ?? "default";
60
- let scheduler = (0, import_tools_scheduler.getSchedulerManager)(agentId) ?? null;
61
+ let scheduler = (0, import_service.getSchedulerManager)(agentId) ?? null;
61
62
  if (!scheduler) {
62
- scheduler = await (0, import_tools_scheduler.ensureSchedulerManagerForAgent)(agent);
63
+ scheduler = await (0, import_service.ensureSchedulerManagerForAgent)(agent);
63
64
  }
64
65
  return { scheduler, agent };
65
66
  };
@@ -4,11 +4,11 @@ import {
4
4
  ExecutionLogSchema,
5
5
  ScheduleSchema
6
6
  } from "../schemas/responses.js";
7
+ import { SchedulerErrorCode } from "@dexto/tools-scheduler";
7
8
  import {
8
- getSchedulerManager,
9
9
  ensureSchedulerManagerForAgent,
10
- SchedulerErrorCode
11
- } from "@dexto/tools-scheduler";
10
+ getSchedulerManager
11
+ } from "@dexto/tools-scheduler/service";
12
12
  import { DextoRuntimeError, ErrorType } from "@dexto/core";
13
13
  const CreateScheduleSchema = z.object({
14
14
  name: z.string().min(1).describe("Schedule name"),
package/dist/index.cjs CHANGED
@@ -19,7 +19,7 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var index_exports = {};
21
21
  __export(index_exports, {
22
- getSchedulerManager: () => import_tools_scheduler.getSchedulerManager
22
+ getSchedulerManager: () => import_service.getSchedulerManager
23
23
  });
24
24
  module.exports = __toCommonJS(index_exports);
25
25
  __reExport(index_exports, require("./hono/index.js"), module.exports);
@@ -32,7 +32,7 @@ __reExport(index_exports, require("./events/types.js"), module.exports);
32
32
  __reExport(index_exports, require("./mcp/mcp-handler.js"), module.exports);
33
33
  __reExport(index_exports, require("./approval/manual-approval-handler.js"), module.exports);
34
34
  __reExport(index_exports, require("./approval/approval-coordinator.js"), module.exports);
35
- var import_tools_scheduler = require("@dexto/tools-scheduler");
35
+ var import_service = require("@dexto/tools-scheduler/service");
36
36
  // Annotate the CommonJS export names for ESM import in node:
37
37
  0 && (module.exports = {
38
38
  getSchedulerManager,
package/dist/index.d.ts CHANGED
@@ -9,5 +9,5 @@ export * from './events/types.js';
9
9
  export * from './mcp/mcp-handler.js';
10
10
  export * from './approval/manual-approval-handler.js';
11
11
  export * from './approval/approval-coordinator.js';
12
- export { getSchedulerManager } from '@dexto/tools-scheduler';
12
+ export { getSchedulerManager } from '@dexto/tools-scheduler/service';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ export * from "./events/types.js";
8
8
  export * from "./mcp/mcp-handler.js";
9
9
  export * from "./approval/manual-approval-handler.js";
10
10
  export * from "./approval/approval-coordinator.js";
11
- import { getSchedulerManager } from "@dexto/tools-scheduler";
11
+ import { getSchedulerManager } from "@dexto/tools-scheduler/service";
12
12
  export {
13
13
  getSchedulerManager
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/server",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,12 +31,12 @@
31
31
  "ws": "^8.18.1",
32
32
  "yaml": "^2.7.1",
33
33
  "@modelcontextprotocol/sdk": "^1.25.2",
34
- "@dexto/agent-config": "1.6.0",
35
- "@dexto/agent-management": "1.6.0",
36
- "@dexto/core": "1.6.0",
37
- "@dexto/image-local": "1.6.0",
38
- "@dexto/storage": "1.6.0",
39
- "@dexto/tools-scheduler": "1.6.0"
34
+ "@dexto/agent-config": "1.6.1",
35
+ "@dexto/agent-management": "1.6.1",
36
+ "@dexto/core": "1.6.1",
37
+ "@dexto/image-local": "1.6.1",
38
+ "@dexto/storage": "1.6.1",
39
+ "@dexto/tools-scheduler": "1.6.1"
40
40
  },
41
41
  "files": [
42
42
  "dist",
@@ -54,7 +54,7 @@
54
54
  "zod": "^3.25.0"
55
55
  },
56
56
  "scripts": {
57
- "build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup && cross-env NODE_OPTIONS='--max-old-space-size=8192' tsc -b tsconfig.json --force --emitDeclarationOnly",
57
+ "build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup && node ../../scripts/clean-tsbuildinfo.mjs && cross-env NODE_OPTIONS='--max-old-space-size=8192' tsc -b tsconfig.json --emitDeclarationOnly",
58
58
  "dev": "tsup --watch",
59
59
  "typecheck": "tsc -p tsconfig.typecheck.json --noEmit",
60
60
  "lint": "eslint . --ext .ts",