@dexto/server 1.7.2 → 1.8.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.
Files changed (47) hide show
  1. package/dist/approval/manual-approval-handler.d.ts +1 -1
  2. package/dist/events/usage-event-subscriber.cjs +3 -2
  3. package/dist/events/usage-event-subscriber.d.ts.map +1 -1
  4. package/dist/events/usage-event-subscriber.js +1 -2
  5. package/dist/events/usage-event-types.d.ts +1 -1
  6. package/dist/events/usage-event-types.d.ts.map +1 -1
  7. package/dist/hono/index.cjs +13 -3
  8. package/dist/hono/index.d.ts +2 -1
  9. package/dist/hono/index.d.ts.map +1 -1
  10. package/dist/hono/index.js +13 -3
  11. package/dist/hono/routes/agents.d.ts.map +1 -1
  12. package/dist/hono/routes/approvals.cjs +1 -1
  13. package/dist/hono/routes/approvals.js +1 -1
  14. package/dist/hono/routes/discovery.cjs +18 -22
  15. package/dist/hono/routes/discovery.d.ts +8 -33
  16. package/dist/hono/routes/discovery.d.ts.map +1 -1
  17. package/dist/hono/routes/discovery.js +18 -22
  18. package/dist/hono/routes/key.cjs +5 -5
  19. package/dist/hono/routes/key.js +1 -1
  20. package/dist/hono/routes/llm.cjs +29 -29
  21. package/dist/hono/routes/llm.d.ts.map +1 -1
  22. package/dist/hono/routes/llm.js +11 -6
  23. package/dist/hono/routes/messages.cjs +23 -13
  24. package/dist/hono/routes/messages.d.ts.map +1 -1
  25. package/dist/hono/routes/messages.js +23 -13
  26. package/dist/hono/routes/prompts.d.ts +0 -45
  27. package/dist/hono/routes/prompts.d.ts.map +1 -1
  28. package/dist/hono/routes/queue.cjs +193 -82
  29. package/dist/hono/routes/queue.d.ts +2456 -21
  30. package/dist/hono/routes/queue.d.ts.map +1 -1
  31. package/dist/hono/routes/queue.js +193 -82
  32. package/dist/hono/routes/sessions.cjs +13 -14
  33. package/dist/hono/routes/sessions.d.ts.map +1 -1
  34. package/dist/hono/routes/sessions.js +13 -14
  35. package/dist/hono/routes/skills.cjs +116 -0
  36. package/dist/hono/routes/skills.d.ts +602 -0
  37. package/dist/hono/routes/skills.d.ts.map +1 -0
  38. package/dist/hono/routes/skills.js +97 -0
  39. package/dist/hono/routes/static.cjs +6 -1
  40. package/dist/hono/routes/static.d.ts +1 -1
  41. package/dist/hono/routes/static.d.ts.map +1 -1
  42. package/dist/hono/routes/static.js +6 -1
  43. package/dist/hono/schemas/responses.cjs +18 -17
  44. package/dist/hono/schemas/responses.d.ts +13 -18
  45. package/dist/hono/schemas/responses.d.ts.map +1 -1
  46. package/dist/hono/schemas/responses.js +13 -17
  47. package/package.json +8 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAOhE,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAElE,QAAA,MAAM,kBAAkB;;iBAI4B,CAAC;AA0BrD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBb,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBjB,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8BtD;AAED,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;CAAE,CAAC;AAEvE,KAAK,eAAe,GAAG,kBAAkB,CAAC,OAAO,SAAS,EAAE,EAAE,CAAC,CAAC;AAChE,KAAK,mBAAmB,GAAG,kBAAkB,CAAC,OAAO,aAAa,EAAE,iBAAiB,CAAC,CAAC;AAEvF,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,97 @@
1
+ import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
2
+ import {
3
+ ApiErrorResponseSchema,
4
+ InternalErrorResponse,
5
+ SkillDocumentSchema,
6
+ SkillSummarySchema
7
+ } from "../schemas/responses.js";
8
+ const SkillIdParamSchema = z.object({
9
+ id: z.string().min(1, "Skill id is required").describe("The skill identifier")
10
+ }).describe("Path parameters for skill endpoints");
11
+ const ListSkillsResponseSchema = z.object({
12
+ skills: z.array(SkillSummarySchema).describe("Array of available skills")
13
+ }).strict().describe("Skills list response");
14
+ const GetSkillResponseSchema = z.object({
15
+ skill: SkillDocumentSchema.describe("Skill document")
16
+ }).strict().describe("Get skill response");
17
+ function serializeSkillSummary(skill) {
18
+ const { id, displayName, description } = skill;
19
+ return SkillSummarySchema.parse({ id, displayName, description });
20
+ }
21
+ function serializeSkillDocument(skill) {
22
+ const { id, displayName, description, instructions } = skill;
23
+ return SkillDocumentSchema.parse({ id, displayName, description, instructions });
24
+ }
25
+ const listRoute = createRoute({
26
+ method: "get",
27
+ path: "/skills",
28
+ summary: "List Skills",
29
+ description: "Retrieves available skills from the active agent skill catalog",
30
+ tags: ["skills"],
31
+ responses: {
32
+ 200: {
33
+ description: "List all skills",
34
+ content: {
35
+ "application/json": {
36
+ schema: ListSkillsResponseSchema
37
+ }
38
+ }
39
+ },
40
+ 500: InternalErrorResponse
41
+ }
42
+ });
43
+ const getSkillRoute = createRoute({
44
+ method: "get",
45
+ path: "/skills/{id}",
46
+ summary: "Get Skill",
47
+ description: "Fetches the full document for a specific skill",
48
+ tags: ["skills"],
49
+ request: {
50
+ params: SkillIdParamSchema
51
+ },
52
+ responses: {
53
+ 200: {
54
+ description: "Skill document",
55
+ content: {
56
+ "application/json": {
57
+ schema: GetSkillResponseSchema
58
+ }
59
+ }
60
+ },
61
+ 404: {
62
+ description: "Skill not found",
63
+ content: { "application/json": { schema: ApiErrorResponseSchema } }
64
+ },
65
+ 500: InternalErrorResponse
66
+ }
67
+ });
68
+ function createSkillsRouter(getAgent) {
69
+ const app = new OpenAPIHono();
70
+ return app.openapi(listRoute, async (ctx) => {
71
+ const agent = await getAgent(ctx);
72
+ const skills = await agent.skillManager.list();
73
+ const list = skills.map(serializeSkillSummary);
74
+ return ctx.json(ListSkillsResponseSchema.parse({ skills: list }), 200);
75
+ }).openapi(getSkillRoute, async (ctx) => {
76
+ const agent = await getAgent(ctx);
77
+ const { id } = ctx.req.valid("param");
78
+ const skill = await agent.skillManager.get(id);
79
+ if (!skill) {
80
+ return ctx.json(
81
+ ApiErrorResponseSchema.parse({
82
+ message: `Skill not found: ${id}`,
83
+ endpoint: ctx.req.path,
84
+ method: ctx.req.method
85
+ }),
86
+ 404
87
+ );
88
+ }
89
+ return ctx.json(
90
+ GetSkillResponseSchema.parse({ skill: serializeSkillDocument(skill) }),
91
+ 200
92
+ );
93
+ });
94
+ }
95
+ export {
96
+ createSkillsRouter
97
+ };
@@ -42,10 +42,15 @@ function buildInjectionScript(config) {
42
42
  if (scripts.length === 0) return "";
43
43
  return `<script>${scripts.join("\n")}</script>`;
44
44
  }
45
- function createSpaFallbackHandler(webRoot, runtimeConfig) {
45
+ function createSpaFallbackHandler(webRoot, runtimeConfig, apiPrefix = "/api") {
46
46
  const injectionScript = runtimeConfig ? buildInjectionScript(runtimeConfig) : "";
47
47
  return async (c) => {
48
48
  const path = c.req.path;
49
+ const normalizedApiPrefix = apiPrefix === "" ? "/" : apiPrefix.replace(/\/+$/, "") || "/";
50
+ const isApiRoute = normalizedApiPrefix === "/" ? true : path === normalizedApiPrefix || path.startsWith(`${normalizedApiPrefix}/`);
51
+ if (isApiRoute) {
52
+ return c.json({ error: "Not Found", path }, 404);
53
+ }
49
54
  if (/\.[a-zA-Z0-9]+$/.test(path)) {
50
55
  return c.json({ error: "Not Found", path }, 404);
51
56
  }
@@ -37,5 +37,5 @@ export declare function createStaticRouter(webRoot: string): Hono<import("hono/t
37
37
  * @param webRoot - Absolute path to the directory containing WebUI build output
38
38
  * @param runtimeConfig - Optional runtime configuration to inject into the HTML
39
39
  */
40
- export declare function createSpaFallbackHandler(webRoot: string, runtimeConfig?: WebUIRuntimeConfig): NotFoundHandler;
40
+ export declare function createSpaFallbackHandler(webRoot: string, runtimeConfig?: WebUIRuntimeConfig, apiPrefix?: string): NotFoundHandler;
41
41
  //# sourceMappingURL=static.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/static.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAK5C;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IAC/B,SAAS,CAAC,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;KACtB,GAAG,IAAI,CAAC;CACZ;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,8EAcjD;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACpC,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,kBAAkB,GACnC,eAAe,CAuCjB"}
1
+ {"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/static.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAK5C;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IAC/B,SAAS,CAAC,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;KACtB,GAAG,IAAI,CAAC;CACZ;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,8EAcjD;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACpC,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,kBAAkB,EAClC,SAAS,SAAS,GACnB,eAAe,CAgDjB"}
@@ -18,10 +18,15 @@ function buildInjectionScript(config) {
18
18
  if (scripts.length === 0) return "";
19
19
  return `<script>${scripts.join("\n")}</script>`;
20
20
  }
21
- function createSpaFallbackHandler(webRoot, runtimeConfig) {
21
+ function createSpaFallbackHandler(webRoot, runtimeConfig, apiPrefix = "/api") {
22
22
  const injectionScript = runtimeConfig ? buildInjectionScript(runtimeConfig) : "";
23
23
  return async (c) => {
24
24
  const path = c.req.path;
25
+ const normalizedApiPrefix = apiPrefix === "" ? "/" : apiPrefix.replace(/\/+$/, "") || "/";
26
+ const isApiRoute = normalizedApiPrefix === "/" ? true : path === normalizedApiPrefix || path.startsWith(`${normalizedApiPrefix}/`);
27
+ if (isApiRoute) {
28
+ return c.json({ error: "Not Found", path }, 404);
29
+ }
25
30
  if (/\.[a-zA-Z0-9]+$/.test(path)) {
26
31
  return c.json({ error: "Not Found", path }, 404);
27
32
  }
@@ -71,6 +71,8 @@ __export(responses_exports, {
71
71
  SessionSearchResultSchema: () => SessionSearchResultSchema,
72
72
  SessionTokenUsageSchema: () => SessionTokenUsageSchema,
73
73
  SessionUsageTrackingSchema: () => SessionUsageTrackingSchema,
74
+ SkillDocumentSchema: () => SkillDocumentSchema,
75
+ SkillSummarySchema: () => SkillSummarySchema,
74
76
  SseServerConfigSchema: () => import_core5.SseServerConfigSchema,
75
77
  StandardErrorEnvelopeSchema: () => StandardErrorEnvelopeSchema,
76
78
  StatusResponseSchema: () => StatusResponseSchema,
@@ -93,6 +95,7 @@ __export(responses_exports, {
93
95
  module.exports = __toCommonJS(responses_exports);
94
96
  var import_zod_openapi = require("@hono/zod-openapi");
95
97
  var import_core = require("@dexto/core");
98
+ var import_llm = require("@dexto/llm");
96
99
  var import_core2 = require("@dexto/core");
97
100
  var import_core3 = require("@dexto/core");
98
101
  var import_core4 = require("@dexto/core");
@@ -405,7 +408,7 @@ const TokenUsageSchema = import_zod_openapi.z.object({
405
408
  cacheWriteTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of cache write tokens"),
406
409
  totalTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Total tokens used")
407
410
  }).strict().describe("Token usage accounting");
408
- const PricingStatusSchema = import_zod_openapi.z.enum(import_core.LLM_PRICING_STATUSES).describe("Whether pricing was resolved for this response");
411
+ const PricingStatusSchema = import_zod_openapi.z.enum(import_llm.LLM_PRICING_STATUSES).describe("Whether pricing was resolved for this response");
409
412
  const InternalMessageSchema = import_zod_openapi.z.object({
410
413
  id: import_zod_openapi.z.string().uuid().optional().describe("Unique message identifier (UUID)"),
411
414
  role: import_zod_openapi.z.enum(["system", "user", "assistant", "tool"]).describe("Role of the message sender"),
@@ -419,7 +422,7 @@ const InternalMessageSchema = import_zod_openapi.z.object({
419
422
  ),
420
423
  usageScopeId: import_zod_openapi.z.string().optional().describe("Optional usage scope identifier for runtime-scoped metering"),
421
424
  model: import_zod_openapi.z.string().optional().describe("Model identifier for assistant messages"),
422
- provider: import_zod_openapi.z.enum(import_core.LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
425
+ provider: import_zod_openapi.z.enum(import_llm.LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
423
426
  toolCalls: import_zod_openapi.z.array(ToolCallSchema).optional().describe("Tool calls made by the assistant"),
424
427
  toolCallId: import_zod_openapi.z.string().optional().describe("ID of the tool call this message responds to"),
425
428
  name: import_zod_openapi.z.string().optional().describe("Name of the tool that produced this result"),
@@ -491,6 +494,14 @@ const WorkspaceSchema = import_zod_openapi.z.object({
491
494
  createdAt: import_zod_openapi.z.number().int().positive().describe("Creation timestamp (Unix ms)"),
492
495
  lastActiveAt: import_zod_openapi.z.number().int().positive().describe("Last active timestamp (Unix ms)")
493
496
  }).strict().describe("Workspace metadata");
497
+ const SkillSummarySchema = import_zod_openapi.z.object({
498
+ id: import_zod_openapi.z.string().describe("Skill identifier"),
499
+ displayName: import_zod_openapi.z.string().describe("Human-readable skill name"),
500
+ description: import_zod_openapi.z.string().optional().describe("Skill description")
501
+ }).strict().describe("Skill catalog entry");
502
+ const SkillDocumentSchema = SkillSummarySchema.extend({
503
+ instructions: import_zod_openapi.z.string().describe("Full skill instructions")
504
+ }).strict().describe("Skill document");
494
505
  const ScheduleTaskSchema = import_zod_openapi.z.object({
495
506
  instruction: import_zod_openapi.z.string().describe("Instruction to execute"),
496
507
  metadata: JsonObjectSchema.optional().describe("Optional task metadata")
@@ -565,7 +576,7 @@ const CatalogModelInfoSchema = import_zod_openapi.z.object({
565
576
  name: import_zod_openapi.z.string().describe("Model name identifier"),
566
577
  maxInputTokens: import_zod_openapi.z.number().int().positive().describe("Maximum input tokens"),
567
578
  default: import_zod_openapi.z.boolean().optional().describe("Whether this is a default model"),
568
- supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_core.SUPPORTED_FILE_TYPES)).describe("File types this model supports"),
579
+ supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES)).describe("File types this model supports"),
569
580
  displayName: import_zod_openapi.z.string().optional().describe("Human-readable display name"),
570
581
  pricing: import_zod_openapi.z.object({
571
582
  inputPerM: import_zod_openapi.z.number().describe("Input cost per million tokens (USD)"),
@@ -582,7 +593,7 @@ const ProviderCatalogSchema = import_zod_openapi.z.object({
582
593
  primaryEnvVar: import_zod_openapi.z.string().describe("Primary environment variable for API key"),
583
594
  supportsBaseURL: import_zod_openapi.z.boolean().describe("Whether custom base URLs are supported"),
584
595
  models: import_zod_openapi.z.array(CatalogModelInfoSchema).describe("Models available from this provider"),
585
- supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_core.SUPPORTED_FILE_TYPES)).describe("Provider-level file type support")
596
+ supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_llm.SUPPORTED_FILE_TYPES)).describe("Provider-level file type support")
586
597
  }).strict().describe("Provider catalog entry with models and capabilities");
587
598
  const ModelFlatSchema = CatalogModelInfoSchema.extend({
588
599
  provider: import_zod_openapi.z.string().describe("Provider identifier for this model")
@@ -621,26 +632,14 @@ const PromptDefinitionSchema = import_zod_openapi.z.object({
621
632
  title: import_zod_openapi.z.string().optional().describe("Prompt title"),
622
633
  description: import_zod_openapi.z.string().optional().describe("Prompt description"),
623
634
  arguments: import_zod_openapi.z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
624
- disableModelInvocation: import_zod_openapi.z.boolean().optional().describe("Exclude from auto-invocation list in system prompt"),
625
- userInvocable: import_zod_openapi.z.boolean().optional().describe("Whether to show in slash command menu"),
626
- allowedTools: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Tools to auto-approve when this prompt is active"),
627
- toolkits: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Toolkits to load when invoked"),
628
- model: import_zod_openapi.z.string().optional().describe("Model to use when this prompt is invoked"),
629
- context: import_zod_openapi.z.enum(["inline", "fork"]).optional().describe("Execution context for this prompt"),
630
- agent: import_zod_openapi.z.string().optional().describe("Agent ID to use for fork execution")
635
+ userInvocable: import_zod_openapi.z.boolean().optional().describe("Whether to show in slash command menu")
631
636
  }).strict().describe("Prompt definition (MCP-compliant)");
632
637
  const PromptInfoSchema = import_zod_openapi.z.object({
633
638
  name: import_zod_openapi.z.string().describe("Prompt name"),
634
639
  title: import_zod_openapi.z.string().optional().describe("Prompt title"),
635
640
  description: import_zod_openapi.z.string().optional().describe("Prompt description"),
636
641
  arguments: import_zod_openapi.z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
637
- disableModelInvocation: import_zod_openapi.z.boolean().optional().describe("Exclude from auto-invocation list in system prompt"),
638
642
  userInvocable: import_zod_openapi.z.boolean().optional().describe("Whether to show in slash command menu"),
639
- allowedTools: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Tools to auto-approve when this prompt is active"),
640
- toolkits: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Toolkits to load when invoked"),
641
- model: import_zod_openapi.z.string().optional().describe("Model to use when this prompt is invoked"),
642
- context: import_zod_openapi.z.enum(["inline", "fork"]).optional().describe("Execution context for this prompt"),
643
- agent: import_zod_openapi.z.string().optional().describe("Agent ID to use for fork execution"),
644
643
  source: import_zod_openapi.z.enum(["mcp", "config", "custom"]).describe("Source of the prompt"),
645
644
  displayName: import_zod_openapi.z.string().optional().describe("Base display name set by provider"),
646
645
  commandName: import_zod_openapi.z.string().optional().describe("Collision-resolved slash command name"),
@@ -739,6 +738,8 @@ const DeleteResponseSchema = import_zod_openapi.z.object({
739
738
  SessionSearchResultSchema,
740
739
  SessionTokenUsageSchema,
741
740
  SessionUsageTrackingSchema,
741
+ SkillDocumentSchema,
742
+ SkillSummarySchema,
742
743
  SseServerConfigSchema,
743
744
  StandardErrorEnvelopeSchema,
744
745
  StatusResponseSchema,
@@ -918,6 +918,19 @@ export declare const WorkspaceSchema: z.ZodObject<{
918
918
  lastActiveAt: z.ZodNumber;
919
919
  }, z.core.$strict>;
920
920
  export type Workspace = z.output<typeof WorkspaceSchema>;
921
+ export declare const SkillSummarySchema: z.ZodObject<{
922
+ id: z.ZodString;
923
+ displayName: z.ZodString;
924
+ description: z.ZodOptional<z.ZodString>;
925
+ }, z.core.$strict>;
926
+ export type SkillSummary = z.output<typeof SkillSummarySchema>;
927
+ export declare const SkillDocumentSchema: z.ZodObject<{
928
+ id: z.ZodString;
929
+ displayName: z.ZodString;
930
+ description: z.ZodOptional<z.ZodString>;
931
+ instructions: z.ZodString;
932
+ }, z.core.$strict>;
933
+ export type SkillDocument = z.output<typeof SkillDocumentSchema>;
921
934
  export declare const ScheduleTaskSchema: z.ZodObject<{
922
935
  instruction: z.ZodString;
923
936
  metadata: z.ZodOptional<z.ZodType<{
@@ -1602,16 +1615,7 @@ export declare const PromptDefinitionSchema: z.ZodObject<{
1602
1615
  description: z.ZodOptional<z.ZodString>;
1603
1616
  required: z.ZodOptional<z.ZodBoolean>;
1604
1617
  }, z.core.$strict>>>;
1605
- disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
1606
1618
  userInvocable: z.ZodOptional<z.ZodBoolean>;
1607
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1608
- toolkits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1609
- model: z.ZodOptional<z.ZodString>;
1610
- context: z.ZodOptional<z.ZodEnum<{
1611
- inline: "inline";
1612
- fork: "fork";
1613
- }>>;
1614
- agent: z.ZodOptional<z.ZodString>;
1615
1619
  }, z.core.$strict>;
1616
1620
  export type PromptDefinition = z.output<typeof PromptDefinitionSchema>;
1617
1621
  export declare const PromptInfoSchema: z.ZodObject<{
@@ -1623,16 +1627,7 @@ export declare const PromptInfoSchema: z.ZodObject<{
1623
1627
  description: z.ZodOptional<z.ZodString>;
1624
1628
  required: z.ZodOptional<z.ZodBoolean>;
1625
1629
  }, z.core.$strict>>>;
1626
- disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
1627
1630
  userInvocable: z.ZodOptional<z.ZodBoolean>;
1628
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1629
- toolkits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1630
- model: z.ZodOptional<z.ZodString>;
1631
- context: z.ZodOptional<z.ZodEnum<{
1632
- inline: "inline";
1633
- fork: "fork";
1634
- }>>;
1635
- agent: z.ZodOptional<z.ZodString>;
1636
1631
  source: z.ZodEnum<{
1637
1632
  mcp: "mcp";
1638
1633
  custom: "custom";
@@ -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,mBAAmB,CAAC;AACtC,OAAO,EAKH,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,eAAe,IAAI,mBAAmB,EAC9C,MAAM,aAAa,CAAC;AAErB,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAW/F,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAYL,CAAC;AAE7C,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAMN,CAAC;AAUhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBASW,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;iBAU0B,CAAC;AAEvD,eAAO,MAAM,WAAW;;;;;;;;;;;kBAc+B,CAAC;AAExD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oB;;;kBAMD,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,eAAO,MAAM,oBAAoB;;;kBAMS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,10 +1,8 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  import {
3
- LLM_PRICING_STATUSES,
4
- LLMConfigBaseSchema as CoreLLMConfigBaseSchema,
5
- LLM_PROVIDERS,
6
- SUPPORTED_FILE_TYPES
3
+ LLMConfigBaseSchema as CoreLLMConfigBaseSchema
7
4
  } from "@dexto/core";
5
+ import { LLM_PRICING_STATUSES, LLM_PROVIDERS, SUPPORTED_FILE_TYPES } from "@dexto/llm";
8
6
  const JsonValueOpenApiPlaceholder = {
9
7
  type: "object",
10
8
  additionalProperties: true,
@@ -408,6 +406,14 @@ const WorkspaceSchema = z.object({
408
406
  createdAt: z.number().int().positive().describe("Creation timestamp (Unix ms)"),
409
407
  lastActiveAt: z.number().int().positive().describe("Last active timestamp (Unix ms)")
410
408
  }).strict().describe("Workspace metadata");
409
+ const SkillSummarySchema = z.object({
410
+ id: z.string().describe("Skill identifier"),
411
+ displayName: z.string().describe("Human-readable skill name"),
412
+ description: z.string().optional().describe("Skill description")
413
+ }).strict().describe("Skill catalog entry");
414
+ const SkillDocumentSchema = SkillSummarySchema.extend({
415
+ instructions: z.string().describe("Full skill instructions")
416
+ }).strict().describe("Skill document");
411
417
  const ScheduleTaskSchema = z.object({
412
418
  instruction: z.string().describe("Instruction to execute"),
413
419
  metadata: JsonObjectSchema.optional().describe("Optional task metadata")
@@ -538,26 +544,14 @@ const PromptDefinitionSchema = z.object({
538
544
  title: z.string().optional().describe("Prompt title"),
539
545
  description: z.string().optional().describe("Prompt description"),
540
546
  arguments: z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
541
- disableModelInvocation: z.boolean().optional().describe("Exclude from auto-invocation list in system prompt"),
542
- userInvocable: z.boolean().optional().describe("Whether to show in slash command menu"),
543
- allowedTools: z.array(z.string()).optional().describe("Tools to auto-approve when this prompt is active"),
544
- toolkits: z.array(z.string()).optional().describe("Toolkits to load when invoked"),
545
- model: z.string().optional().describe("Model to use when this prompt is invoked"),
546
- context: z.enum(["inline", "fork"]).optional().describe("Execution context for this prompt"),
547
- agent: z.string().optional().describe("Agent ID to use for fork execution")
547
+ userInvocable: z.boolean().optional().describe("Whether to show in slash command menu")
548
548
  }).strict().describe("Prompt definition (MCP-compliant)");
549
549
  const PromptInfoSchema = z.object({
550
550
  name: z.string().describe("Prompt name"),
551
551
  title: z.string().optional().describe("Prompt title"),
552
552
  description: z.string().optional().describe("Prompt description"),
553
553
  arguments: z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
554
- disableModelInvocation: z.boolean().optional().describe("Exclude from auto-invocation list in system prompt"),
555
554
  userInvocable: z.boolean().optional().describe("Whether to show in slash command menu"),
556
- allowedTools: z.array(z.string()).optional().describe("Tools to auto-approve when this prompt is active"),
557
- toolkits: z.array(z.string()).optional().describe("Toolkits to load when invoked"),
558
- model: z.string().optional().describe("Model to use when this prompt is invoked"),
559
- context: z.enum(["inline", "fork"]).optional().describe("Execution context for this prompt"),
560
- agent: z.string().optional().describe("Agent ID to use for fork execution"),
561
555
  source: z.enum(["mcp", "config", "custom"]).describe("Source of the prompt"),
562
556
  displayName: z.string().optional().describe("Base display name set by provider"),
563
557
  commandName: z.string().optional().describe("Collision-resolved slash command name"),
@@ -655,6 +649,8 @@ export {
655
649
  SessionSearchResultSchema,
656
650
  SessionTokenUsageSchema,
657
651
  SessionUsageTrackingSchema,
652
+ SkillDocumentSchema,
653
+ SkillSummarySchema,
658
654
  SseServerConfigSchema,
659
655
  StandardErrorEnvelopeSchema,
660
656
  StatusResponseSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/server",
3
- "version": "1.7.2",
3
+ "version": "1.8.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,12 +31,13 @@
31
31
  "ws": "^8.18.1",
32
32
  "yaml": "^2.8.3",
33
33
  "@modelcontextprotocol/sdk": "^1.28.0",
34
- "@dexto/agent-config": "1.7.2",
35
- "@dexto/agent-management": "1.7.2",
36
- "@dexto/core": "1.7.2",
37
- "@dexto/image-local": "1.7.2",
38
- "@dexto/storage": "1.7.2",
39
- "@dexto/tools-scheduler": "1.7.2"
34
+ "@dexto/agent-config": "1.8.1",
35
+ "@dexto/agent-management": "1.8.1",
36
+ "@dexto/core": "1.8.1",
37
+ "@dexto/image-local": "1.8.1",
38
+ "@dexto/llm": "1.8.1",
39
+ "@dexto/storage": "1.8.1",
40
+ "@dexto/tools-scheduler": "1.8.1"
40
41
  },
41
42
  "files": [
42
43
  "dist",