@dexto/server 1.6.7 → 1.6.8

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.
@@ -49,6 +49,7 @@ var import_tools = require("./routes/tools.js");
49
49
  var import_discovery = require("./routes/discovery.js");
50
50
  var import_models = require("./routes/models.js");
51
51
  var import_dexto_auth = require("./routes/dexto-auth.js");
52
+ var import_system_prompt = require("./routes/system-prompt.js");
52
53
  var import_static = require("./routes/static.js");
53
54
  var import_error = require("./middleware/error.js");
54
55
  var import_redaction = require("./middleware/redaction.js");
@@ -143,7 +144,7 @@ function createDextoApp(options) {
143
144
  agentsContext || dummyAgentsContext,
144
145
  resolvedGetAgentConfigPath
145
146
  )
146
- ).route(routePrefix, (0, import_queue.createQueueRouter)(getAgent)).route(routePrefix, (0, import_openrouter.createOpenRouterRouter)()).route(routePrefix, (0, import_key.createKeyRouter)()).route(routePrefix, (0, import_tools.createToolsRouter)(getAgent)).route(routePrefix, (0, import_discovery.createDiscoveryRouter)(resolvedGetAgentConfigPath)).route(routePrefix, (0, import_models.createModelsRouter)()).route(routePrefix, (0, import_dexto_auth.createDextoAuthRouter)(getAgent));
147
+ ).route(routePrefix, (0, import_queue.createQueueRouter)(getAgent)).route(routePrefix, (0, import_openrouter.createOpenRouterRouter)()).route(routePrefix, (0, import_key.createKeyRouter)()).route(routePrefix, (0, import_tools.createToolsRouter)(getAgent)).route(routePrefix, (0, import_discovery.createDiscoveryRouter)(resolvedGetAgentConfigPath)).route(routePrefix, (0, import_models.createModelsRouter)()).route(routePrefix, (0, import_system_prompt.createSystemPromptRouter)(getAgent)).route(routePrefix, (0, import_dexto_auth.createDextoAuthRouter)(getAgent));
147
148
  fullApp.doc("/openapi.json", {
148
149
  openapi: "3.0.0",
149
150
  info: {
@@ -46,6 +46,56 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
46
46
  status: 200;
47
47
  };
48
48
  };
49
+ }, "/api"> & import("hono/types").MergeSchemaPath<{
50
+ "/system-prompt/contributors": {
51
+ $get: {
52
+ input: {};
53
+ output: {
54
+ contributors: {
55
+ id: string;
56
+ priority: number;
57
+ }[];
58
+ };
59
+ outputFormat: "json";
60
+ status: 200;
61
+ };
62
+ };
63
+ } & {
64
+ "/system-prompt/contributors": {
65
+ $post: {
66
+ input: {
67
+ json: {
68
+ id: string;
69
+ content?: string | undefined;
70
+ enabled?: boolean | undefined;
71
+ priority?: number | undefined;
72
+ };
73
+ };
74
+ output: {
75
+ id: string;
76
+ enabled: boolean;
77
+ removed?: boolean | undefined;
78
+ priority?: number | undefined;
79
+ replaced?: boolean | undefined;
80
+ contentLength?: number | undefined;
81
+ truncated?: boolean | undefined;
82
+ };
83
+ outputFormat: "json";
84
+ status: 200;
85
+ } | {
86
+ input: {
87
+ json: {
88
+ id: string;
89
+ content?: string | undefined;
90
+ enabled?: boolean | undefined;
91
+ priority?: number | undefined;
92
+ };
93
+ };
94
+ output: never;
95
+ outputFormat: "json";
96
+ status: 400;
97
+ };
98
+ };
49
99
  }, "/api"> & import("hono/types").MergeSchemaPath<{
50
100
  "/models/local": {
51
101
  $get: {
@@ -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,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAmBzD,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AASlF,OAAO,EAGH,KAAK,kBAAkB,EAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAKxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC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"./routes/tools.js";
26
26
  import { createDiscoveryRouter } from "./routes/discovery.js";
27
27
  import { createModelsRouter } from "./routes/models.js";
28
28
  import { createDextoAuthRouter } from "./routes/dexto-auth.js";
29
+ import { createSystemPromptRouter } from "./routes/system-prompt.js";
29
30
  import {
30
31
  createStaticRouter,
31
32
  createSpaFallbackHandler
@@ -122,7 +123,7 @@ function createDextoApp(options) {
122
123
  agentsContext || dummyAgentsContext,
123
124
  resolvedGetAgentConfigPath
124
125
  )
125
- ).route(routePrefix, createQueueRouter(getAgent)).route(routePrefix, createOpenRouterRouter()).route(routePrefix, createKeyRouter()).route(routePrefix, createToolsRouter(getAgent)).route(routePrefix, createDiscoveryRouter(resolvedGetAgentConfigPath)).route(routePrefix, createModelsRouter()).route(routePrefix, createDextoAuthRouter(getAgent));
126
+ ).route(routePrefix, createQueueRouter(getAgent)).route(routePrefix, createOpenRouterRouter()).route(routePrefix, createKeyRouter()).route(routePrefix, createToolsRouter(getAgent)).route(routePrefix, createDiscoveryRouter(resolvedGetAgentConfigPath)).route(routePrefix, createModelsRouter()).route(routePrefix, createSystemPromptRouter(getAgent)).route(routePrefix, createDextoAuthRouter(getAgent));
126
127
  fullApp.doc("/openapi.json", {
127
128
  openapi: "3.0.0",
128
129
  info: {
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var system_prompt_exports = {};
20
+ __export(system_prompt_exports, {
21
+ createSystemPromptRouter: () => createSystemPromptRouter
22
+ });
23
+ module.exports = __toCommonJS(system_prompt_exports);
24
+ var import_zod_openapi = require("@hono/zod-openapi");
25
+ var import_core = require("@dexto/core");
26
+ var import_responses = require("../schemas/responses.js");
27
+ const MAX_SYSTEM_PROMPT_CONTRIBUTOR_CONTENT_CHARS = 12e4;
28
+ const DEFAULT_SYSTEM_PROMPT_CONTRIBUTOR_PRIORITY = 45;
29
+ const ContributorInfoSchema = import_zod_openapi.z.object({
30
+ id: import_zod_openapi.z.string().describe("Contributor identifier"),
31
+ priority: import_zod_openapi.z.number().describe("Contributor priority")
32
+ }).strict().describe("System prompt contributor metadata.");
33
+ const UpsertSystemPromptContributorSchema = import_zod_openapi.z.object({
34
+ id: import_zod_openapi.z.string().min(1).describe("Contributor identifier"),
35
+ priority: import_zod_openapi.z.number().optional().describe("Optional priority override"),
36
+ enabled: import_zod_openapi.z.boolean().optional().describe("Set false to remove the contributor instead of adding/updating it"),
37
+ content: import_zod_openapi.z.string().optional().describe("Static contributor content (required when enabled).")
38
+ }).strict().describe("System prompt contributor update payload.");
39
+ const SystemPromptContributorErrorSchema = import_responses.StandardErrorEnvelopeSchema.describe(
40
+ "System prompt contributor error response."
41
+ );
42
+ function sanitizeContributorId(value) {
43
+ return value.trim().replace(/[^A-Za-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 80);
44
+ }
45
+ function resolveContributorPriority(value) {
46
+ if (typeof value === "number" && Number.isFinite(value)) {
47
+ return Math.trunc(value);
48
+ }
49
+ return DEFAULT_SYSTEM_PROMPT_CONTRIBUTOR_PRIORITY;
50
+ }
51
+ function createSystemPromptRouter(getAgent) {
52
+ const app = new import_zod_openapi.OpenAPIHono();
53
+ const listContributorsRoute = (0, import_zod_openapi.createRoute)({
54
+ method: "get",
55
+ path: "/system-prompt/contributors",
56
+ summary: "List System Prompt Contributors",
57
+ description: "Lists currently registered system prompt contributors.",
58
+ tags: ["config"],
59
+ responses: {
60
+ 200: {
61
+ description: "Current contributor list",
62
+ content: {
63
+ "application/json": {
64
+ schema: import_zod_openapi.z.object({
65
+ contributors: import_zod_openapi.z.array(ContributorInfoSchema).describe("Registered system prompt contributors.")
66
+ }).strict().describe("System prompt contributors list response.")
67
+ }
68
+ }
69
+ }
70
+ }
71
+ });
72
+ const upsertContributorRoute = (0, import_zod_openapi.createRoute)({
73
+ method: "post",
74
+ path: "/system-prompt/contributors",
75
+ summary: "Upsert System Prompt Contributor",
76
+ description: "Adds or updates a static system prompt contributor. Set enabled=false (or empty content) to remove.",
77
+ tags: ["config"],
78
+ request: {
79
+ body: {
80
+ content: {
81
+ "application/json": {
82
+ schema: UpsertSystemPromptContributorSchema
83
+ }
84
+ }
85
+ }
86
+ },
87
+ responses: {
88
+ 200: {
89
+ description: "Contributor upsert result",
90
+ content: {
91
+ "application/json": {
92
+ schema: import_zod_openapi.z.object({
93
+ id: import_zod_openapi.z.string().describe("Contributor identifier"),
94
+ enabled: import_zod_openapi.z.boolean().describe("Whether the contributor remains enabled"),
95
+ priority: import_zod_openapi.z.number().optional().describe("Contributor priority"),
96
+ replaced: import_zod_openapi.z.boolean().optional().describe("Whether an existing contributor was replaced"),
97
+ removed: import_zod_openapi.z.boolean().optional().describe("Whether the contributor was removed"),
98
+ contentLength: import_zod_openapi.z.number().optional().describe("Stored content length in characters"),
99
+ truncated: import_zod_openapi.z.boolean().optional().describe("Whether the submitted content was truncated")
100
+ }).strict().describe("System prompt contributor upsert response.")
101
+ }
102
+ }
103
+ },
104
+ 400: {
105
+ description: "Invalid contributor update request",
106
+ content: {
107
+ "application/json": {
108
+ schema: SystemPromptContributorErrorSchema
109
+ }
110
+ }
111
+ }
112
+ }
113
+ });
114
+ return app.openapi(listContributorsRoute, async (ctx) => {
115
+ const agent = await getAgent(ctx);
116
+ const contributors = agent.systemPromptManager.getContributors().map((contributor) => ({
117
+ id: contributor.id,
118
+ priority: contributor.priority
119
+ }));
120
+ return ctx.json({ contributors });
121
+ }).openapi(upsertContributorRoute, async (ctx) => {
122
+ const agent = await getAgent(ctx);
123
+ const payload = ctx.req.valid("json");
124
+ const contributorId = sanitizeContributorId(payload.id);
125
+ if (contributorId.length === 0) {
126
+ throw new import_core.DextoRuntimeError(
127
+ "systemprompt_contributor_config_invalid",
128
+ import_core.ErrorScope.SYSTEM_PROMPT,
129
+ import_core.ErrorType.USER,
130
+ "A valid contributor id is required",
131
+ {
132
+ id: payload.id
133
+ }
134
+ );
135
+ }
136
+ const enabled = payload.enabled !== false;
137
+ const hasContent = payload.content !== void 0;
138
+ const rawContent = payload.content ?? "";
139
+ const content = rawContent.slice(0, MAX_SYSTEM_PROMPT_CONTRIBUTOR_CONTENT_CHARS);
140
+ const priority = resolveContributorPriority(payload.priority);
141
+ if (!enabled || hasContent && content.trim().length === 0) {
142
+ const removed = agent.systemPromptManager.removeContributor(contributorId);
143
+ return ctx.json(
144
+ {
145
+ id: contributorId,
146
+ enabled: false,
147
+ removed
148
+ },
149
+ 200
150
+ );
151
+ }
152
+ if (!hasContent || content.trim().length === 0) {
153
+ throw new import_core.DextoRuntimeError(
154
+ "systemprompt_contributor_config_invalid",
155
+ import_core.ErrorScope.SYSTEM_PROMPT,
156
+ import_core.ErrorType.USER,
157
+ "Contributor content is required when enabled",
158
+ {
159
+ id: payload.id
160
+ }
161
+ );
162
+ }
163
+ const replaced = agent.systemPromptManager.removeContributor(contributorId);
164
+ agent.systemPromptManager.addContributor({
165
+ id: contributorId,
166
+ priority,
167
+ getContent: async () => content
168
+ });
169
+ return ctx.json(
170
+ {
171
+ id: contributorId,
172
+ enabled: true,
173
+ priority,
174
+ replaced,
175
+ contentLength: hasContent ? content.length : void 0,
176
+ truncated: hasContent ? rawContent.length > content.length : void 0
177
+ },
178
+ 200
179
+ );
180
+ });
181
+ }
182
+ // Annotate the CommonJS export names for ESM import in node:
183
+ 0 && (module.exports = {
184
+ createSystemPromptRouter
185
+ });
@@ -0,0 +1,57 @@
1
+ import { OpenAPIHono } from '@hono/zod-openapi';
2
+ import type { DextoAgent } from '@dexto/core';
3
+ import type { Context } from 'hono';
4
+ type GetAgentFn = (ctx: Context) => DextoAgent | Promise<DextoAgent>;
5
+ export declare function createSystemPromptRouter(getAgent: GetAgentFn): OpenAPIHono<import("hono").Env, {
6
+ "/system-prompt/contributors": {
7
+ $get: {
8
+ input: {};
9
+ output: {
10
+ contributors: {
11
+ id: string;
12
+ priority: number;
13
+ }[];
14
+ };
15
+ outputFormat: "json";
16
+ status: 200;
17
+ };
18
+ };
19
+ } & {
20
+ "/system-prompt/contributors": {
21
+ $post: {
22
+ input: {
23
+ json: {
24
+ id: string;
25
+ content?: string | undefined;
26
+ enabled?: boolean | undefined;
27
+ priority?: number | undefined;
28
+ };
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
+ };
39
+ outputFormat: "json";
40
+ status: 200;
41
+ } | {
42
+ input: {
43
+ json: {
44
+ id: string;
45
+ content?: string | undefined;
46
+ enabled?: boolean | undefined;
47
+ priority?: number | undefined;
48
+ };
49
+ };
50
+ output: never;
51
+ outputFormat: "json";
52
+ status: 400;
53
+ };
54
+ };
55
+ }, "/">;
56
+ export {};
57
+ //# sourceMappingURL=system-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAgDrE,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoK5D"}
@@ -0,0 +1,161 @@
1
+ import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
2
+ import { DextoRuntimeError, ErrorScope, ErrorType } from "@dexto/core";
3
+ import { StandardErrorEnvelopeSchema } from "../schemas/responses.js";
4
+ const MAX_SYSTEM_PROMPT_CONTRIBUTOR_CONTENT_CHARS = 12e4;
5
+ const DEFAULT_SYSTEM_PROMPT_CONTRIBUTOR_PRIORITY = 45;
6
+ const ContributorInfoSchema = z.object({
7
+ id: z.string().describe("Contributor identifier"),
8
+ priority: z.number().describe("Contributor priority")
9
+ }).strict().describe("System prompt contributor metadata.");
10
+ const UpsertSystemPromptContributorSchema = z.object({
11
+ id: z.string().min(1).describe("Contributor identifier"),
12
+ priority: z.number().optional().describe("Optional priority override"),
13
+ enabled: z.boolean().optional().describe("Set false to remove the contributor instead of adding/updating it"),
14
+ content: z.string().optional().describe("Static contributor content (required when enabled).")
15
+ }).strict().describe("System prompt contributor update payload.");
16
+ const SystemPromptContributorErrorSchema = StandardErrorEnvelopeSchema.describe(
17
+ "System prompt contributor error response."
18
+ );
19
+ function sanitizeContributorId(value) {
20
+ return value.trim().replace(/[^A-Za-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 80);
21
+ }
22
+ function resolveContributorPriority(value) {
23
+ if (typeof value === "number" && Number.isFinite(value)) {
24
+ return Math.trunc(value);
25
+ }
26
+ return DEFAULT_SYSTEM_PROMPT_CONTRIBUTOR_PRIORITY;
27
+ }
28
+ function createSystemPromptRouter(getAgent) {
29
+ const app = new OpenAPIHono();
30
+ const listContributorsRoute = createRoute({
31
+ method: "get",
32
+ path: "/system-prompt/contributors",
33
+ summary: "List System Prompt Contributors",
34
+ description: "Lists currently registered system prompt contributors.",
35
+ tags: ["config"],
36
+ responses: {
37
+ 200: {
38
+ description: "Current contributor list",
39
+ content: {
40
+ "application/json": {
41
+ schema: z.object({
42
+ contributors: z.array(ContributorInfoSchema).describe("Registered system prompt contributors.")
43
+ }).strict().describe("System prompt contributors list response.")
44
+ }
45
+ }
46
+ }
47
+ }
48
+ });
49
+ const upsertContributorRoute = createRoute({
50
+ method: "post",
51
+ path: "/system-prompt/contributors",
52
+ summary: "Upsert System Prompt Contributor",
53
+ description: "Adds or updates a static system prompt contributor. Set enabled=false (or empty content) to remove.",
54
+ tags: ["config"],
55
+ request: {
56
+ body: {
57
+ content: {
58
+ "application/json": {
59
+ schema: UpsertSystemPromptContributorSchema
60
+ }
61
+ }
62
+ }
63
+ },
64
+ responses: {
65
+ 200: {
66
+ description: "Contributor upsert result",
67
+ content: {
68
+ "application/json": {
69
+ schema: z.object({
70
+ id: z.string().describe("Contributor identifier"),
71
+ enabled: z.boolean().describe("Whether the contributor remains enabled"),
72
+ priority: z.number().optional().describe("Contributor priority"),
73
+ replaced: z.boolean().optional().describe("Whether an existing contributor was replaced"),
74
+ removed: z.boolean().optional().describe("Whether the contributor was removed"),
75
+ contentLength: z.number().optional().describe("Stored content length in characters"),
76
+ truncated: z.boolean().optional().describe("Whether the submitted content was truncated")
77
+ }).strict().describe("System prompt contributor upsert response.")
78
+ }
79
+ }
80
+ },
81
+ 400: {
82
+ description: "Invalid contributor update request",
83
+ content: {
84
+ "application/json": {
85
+ schema: SystemPromptContributorErrorSchema
86
+ }
87
+ }
88
+ }
89
+ }
90
+ });
91
+ return app.openapi(listContributorsRoute, async (ctx) => {
92
+ const agent = await getAgent(ctx);
93
+ const contributors = agent.systemPromptManager.getContributors().map((contributor) => ({
94
+ id: contributor.id,
95
+ priority: contributor.priority
96
+ }));
97
+ return ctx.json({ contributors });
98
+ }).openapi(upsertContributorRoute, async (ctx) => {
99
+ const agent = await getAgent(ctx);
100
+ const payload = ctx.req.valid("json");
101
+ const contributorId = sanitizeContributorId(payload.id);
102
+ if (contributorId.length === 0) {
103
+ throw new DextoRuntimeError(
104
+ "systemprompt_contributor_config_invalid",
105
+ ErrorScope.SYSTEM_PROMPT,
106
+ ErrorType.USER,
107
+ "A valid contributor id is required",
108
+ {
109
+ id: payload.id
110
+ }
111
+ );
112
+ }
113
+ const enabled = payload.enabled !== false;
114
+ const hasContent = payload.content !== void 0;
115
+ const rawContent = payload.content ?? "";
116
+ const content = rawContent.slice(0, MAX_SYSTEM_PROMPT_CONTRIBUTOR_CONTENT_CHARS);
117
+ const priority = resolveContributorPriority(payload.priority);
118
+ if (!enabled || hasContent && content.trim().length === 0) {
119
+ const removed = agent.systemPromptManager.removeContributor(contributorId);
120
+ return ctx.json(
121
+ {
122
+ id: contributorId,
123
+ enabled: false,
124
+ removed
125
+ },
126
+ 200
127
+ );
128
+ }
129
+ if (!hasContent || content.trim().length === 0) {
130
+ throw new DextoRuntimeError(
131
+ "systemprompt_contributor_config_invalid",
132
+ ErrorScope.SYSTEM_PROMPT,
133
+ ErrorType.USER,
134
+ "Contributor content is required when enabled",
135
+ {
136
+ id: payload.id
137
+ }
138
+ );
139
+ }
140
+ const replaced = agent.systemPromptManager.removeContributor(contributorId);
141
+ agent.systemPromptManager.addContributor({
142
+ id: contributorId,
143
+ priority,
144
+ getContent: async () => content
145
+ });
146
+ return ctx.json(
147
+ {
148
+ id: contributorId,
149
+ enabled: true,
150
+ priority,
151
+ replaced,
152
+ contentLength: hasContent ? content.length : void 0,
153
+ truncated: hasContent ? rawContent.length > content.length : void 0
154
+ },
155
+ 200
156
+ );
157
+ });
158
+ }
159
+ export {
160
+ createSystemPromptRouter
161
+ };
@@ -54,6 +54,7 @@ __export(responses_exports, {
54
54
  SessionSearchResultSchema: () => SessionSearchResultSchema,
55
55
  SessionTokenUsageSchema: () => SessionTokenUsageSchema,
56
56
  SseServerConfigSchema: () => import_core5.SseServerConfigSchema,
57
+ StandardErrorEnvelopeSchema: () => StandardErrorEnvelopeSchema,
57
58
  StatusResponseSchema: () => StatusResponseSchema,
58
59
  StdioServerConfigSchema: () => import_core5.StdioServerConfigSchema,
59
60
  TextPartSchema: () => TextPartSchema,
@@ -335,6 +336,17 @@ const ErrorResponseSchema = import_zod.z.object({
335
336
  details: import_zod.z.unknown().optional().describe("Additional error details")
336
337
  }).strict().describe("Error details")
337
338
  }).strict().describe("Error API response");
339
+ const StandardErrorEnvelopeSchema = import_zod.z.object({
340
+ code: import_zod.z.string().describe("Error code"),
341
+ message: import_zod.z.string().describe("Error message"),
342
+ scope: import_zod.z.string().describe("Error scope"),
343
+ type: import_zod.z.string().describe("Error type"),
344
+ context: import_zod.z.unknown().optional().describe("Error context"),
345
+ recovery: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]).optional().describe("Recovery guidance"),
346
+ traceId: import_zod.z.string().describe("Trace identifier"),
347
+ endpoint: import_zod.z.string().describe("Request endpoint"),
348
+ method: import_zod.z.string().describe("HTTP method")
349
+ }).strict().describe("Standard API error envelope");
338
350
  const StatusResponseSchema = import_zod.z.object({
339
351
  status: import_zod.z.string().describe("Operation status"),
340
352
  message: import_zod.z.string().optional().describe("Optional status message")
@@ -381,6 +393,7 @@ const DeleteResponseSchema = import_zod.z.object({
381
393
  SessionSearchResultSchema,
382
394
  SessionTokenUsageSchema,
383
395
  SseServerConfigSchema,
396
+ StandardErrorEnvelopeSchema,
384
397
  StatusResponseSchema,
385
398
  StdioServerConfigSchema,
386
399
  TextPartSchema,
@@ -3501,6 +3501,38 @@ export declare const ErrorResponseSchema: z.ZodObject<{
3501
3501
  ok: false;
3502
3502
  }>;
3503
3503
  export type ErrorResponse = z.output<typeof ErrorResponseSchema>;
3504
+ export declare const StandardErrorEnvelopeSchema: z.ZodObject<{
3505
+ code: z.ZodString;
3506
+ message: z.ZodString;
3507
+ scope: z.ZodString;
3508
+ type: z.ZodString;
3509
+ context: z.ZodOptional<z.ZodUnknown>;
3510
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3511
+ traceId: z.ZodString;
3512
+ endpoint: z.ZodString;
3513
+ method: z.ZodString;
3514
+ }, "strict", z.ZodTypeAny, {
3515
+ method: string;
3516
+ type: string;
3517
+ code: string;
3518
+ message: string;
3519
+ scope: string;
3520
+ traceId: string;
3521
+ endpoint: string;
3522
+ context?: unknown;
3523
+ recovery?: string | string[] | undefined;
3524
+ }, {
3525
+ method: string;
3526
+ type: string;
3527
+ code: string;
3528
+ message: string;
3529
+ scope: string;
3530
+ traceId: string;
3531
+ endpoint: string;
3532
+ context?: unknown;
3533
+ recovery?: string | string[] | undefined;
3534
+ }>;
3535
+ export type StandardErrorEnvelope = z.output<typeof StandardErrorEnvelopeSchema>;
3504
3536
  export declare const StatusResponseSchema: z.ZodObject<{
3505
3537
  status: z.ZodString;
3506
3538
  message: z.ZodOptional<z.ZodString>;
@@ -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,aAAa,CAAC;AAG3C,OAAO,EAAE,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAM3E,eAAO,MAAM,cAAc;;;;;;;;;EAMO,CAAC;AAEnC,eAAO,MAAM,eAAe;;;;;;;;;;;;EAOO,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAQO,CAAC;AAEnC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B0C,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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own().optional().describe("Additional error details")
274
274
  }).strict().describe("Error details")
275
275
  }).strict().describe("Error API response");
276
+ const StandardErrorEnvelopeSchema = z.object({
277
+ code: z.string().describe("Error code"),
278
+ message: z.string().describe("Error message"),
279
+ scope: z.string().describe("Error scope"),
280
+ type: z.string().describe("Error type"),
281
+ context: z.unknown().optional().describe("Error context"),
282
+ recovery: z.union([z.string(), z.array(z.string())]).optional().describe("Recovery guidance"),
283
+ traceId: z.string().describe("Trace identifier"),
284
+ endpoint: z.string().describe("Request endpoint"),
285
+ method: z.string().describe("HTTP method")
286
+ }).strict().describe("Standard API error envelope");
276
287
  const StatusResponseSchema = z.object({
277
288
  status: z.string().describe("Operation status"),
278
289
  message: z.string().optional().describe("Optional status message")
@@ -318,6 +329,7 @@ export {
318
329
  SessionSearchResultSchema,
319
330
  SessionTokenUsageSchema,
320
331
  SseServerConfigSchema,
332
+ StandardErrorEnvelopeSchema,
321
333
  StatusResponseSchema,
322
334
  StdioServerConfigSchema,
323
335
  TextPartSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/server",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
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.26.0",
34
- "@dexto/agent-config": "1.6.7",
35
- "@dexto/agent-management": "1.6.7",
36
- "@dexto/core": "1.6.7",
37
- "@dexto/image-local": "1.6.7",
38
- "@dexto/storage": "1.6.7",
39
- "@dexto/tools-scheduler": "1.6.7"
34
+ "@dexto/agent-config": "1.6.8",
35
+ "@dexto/agent-management": "1.6.8",
36
+ "@dexto/core": "1.6.8",
37
+ "@dexto/image-local": "1.6.8",
38
+ "@dexto/storage": "1.6.8",
39
+ "@dexto/tools-scheduler": "1.6.8"
40
40
  },
41
41
  "files": [
42
42
  "dist",