@dexto/server 1.13.5 → 1.14.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 (35) hide show
  1. package/dist/hono/index.cjs +3 -2
  2. package/dist/hono/index.d.ts.map +1 -1
  3. package/dist/hono/index.js +7 -3
  4. package/dist/hono/middleware/auth.cjs +42 -32
  5. package/dist/hono/middleware/auth.d.ts +15 -1
  6. package/dist/hono/middleware/auth.d.ts.map +1 -1
  7. package/dist/hono/middleware/auth.js +39 -31
  8. package/dist/hono/node/index.cjs +33 -22
  9. package/dist/hono/node/index.d.ts +1 -0
  10. package/dist/hono/node/index.d.ts.map +1 -1
  11. package/dist/hono/node/index.js +33 -22
  12. package/dist/hono/routes/agents.d.ts +14 -14
  13. package/dist/hono/routes/greeting.d.ts +13 -13
  14. package/dist/hono/routes/key.d.ts +4 -4
  15. package/dist/hono/routes/llm.d.ts +54 -54
  16. package/dist/hono/routes/memory.d.ts +10 -10
  17. package/dist/hono/routes/messages.d.ts +8 -8
  18. package/dist/hono/routes/models.d.ts +6 -6
  19. package/dist/hono/routes/openrouter.d.ts +6 -6
  20. package/dist/hono/routes/prompts.d.ts +2 -2
  21. package/dist/hono/routes/queue.d.ts +16 -16
  22. package/dist/hono/routes/resources.d.ts +2 -2
  23. package/dist/hono/routes/schedules.d.ts +12 -12
  24. package/dist/hono/routes/search.d.ts +4 -4
  25. package/dist/hono/routes/sessions.d.ts +24 -24
  26. package/dist/hono/routes/system-prompt.d.ts +2 -2
  27. package/dist/hono/routes/webhooks.d.ts +2 -2
  28. package/dist/hono/routes/workspaces.d.ts +2 -2
  29. package/dist/hono/types.d.ts +2 -0
  30. package/dist/hono/types.d.ts.map +1 -1
  31. package/dist/mcp/mcp-handler.cjs +32 -32
  32. package/dist/mcp/mcp-handler.d.ts +9 -3
  33. package/dist/mcp/mcp-handler.d.ts.map +1 -1
  34. package/dist/mcp/mcp-handler.js +32 -32
  35. package/package.json +15 -10
@@ -758,7 +758,7 @@ export declare function createKeyRouter(): OpenAPIHono<import("hono").Env, {
758
758
  stack?: string | undefined;
759
759
  };
760
760
  outputFormat: "json";
761
- status: 400;
761
+ status: 500;
762
762
  } | {
763
763
  input: {
764
764
  param: {
@@ -791,7 +791,7 @@ export declare function createKeyRouter(): OpenAPIHono<import("hono").Env, {
791
791
  stack?: string | undefined;
792
792
  };
793
793
  outputFormat: "json";
794
- status: 500;
794
+ status: 400;
795
795
  } | {
796
796
  input: {
797
797
  param: {
@@ -843,7 +843,7 @@ export declare function createKeyRouter(): OpenAPIHono<import("hono").Env, {
843
843
  stack?: string | undefined;
844
844
  };
845
845
  outputFormat: "json";
846
- status: 400;
846
+ status: 500;
847
847
  } | {
848
848
  input: {
849
849
  json: {
@@ -877,7 +877,7 @@ export declare function createKeyRouter(): OpenAPIHono<import("hono").Env, {
877
877
  stack?: string | undefined;
878
878
  };
879
879
  outputFormat: "json";
880
- status: 500;
880
+ status: 400;
881
881
  } | {
882
882
  input: {
883
883
  json: {
@@ -10,8 +10,8 @@ declare const CatalogQuerySchema: z.ZodObject<{
10
10
  all: "all";
11
11
  }>>;
12
12
  provider: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<string[] | undefined, string | string[] | undefined>>;
13
- includeModels: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
14
- hasKey: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
13
+ includeModels: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "true" | "0" | "1" | "false" | undefined>>;
14
+ hasKey: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "true" | "0" | "1" | "false" | undefined>>;
15
15
  fileType: z.ZodOptional<z.ZodEnum<{
16
16
  image: "image";
17
17
  audio: "audio";
@@ -19,7 +19,7 @@ declare const CatalogQuerySchema: z.ZodObject<{
19
19
  pdf: "pdf";
20
20
  document: "document";
21
21
  }>>;
22
- defaultOnly: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
22
+ defaultOnly: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "true" | "0" | "1" | "false" | undefined>>;
23
23
  mode: z.ZodDefault<z.ZodEnum<{
24
24
  flat: "flat";
25
25
  grouped: "grouped";
@@ -607,8 +607,8 @@ declare const catalogRoute: {
607
607
  all: "all";
608
608
  }>>;
609
609
  provider: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<string[] | undefined, string | string[] | undefined>>;
610
- includeModels: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
611
- hasKey: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
610
+ includeModels: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "true" | "0" | "1" | "false" | undefined>>;
611
+ hasKey: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "true" | "0" | "1" | "false" | undefined>>;
612
612
  fileType: z.ZodOptional<z.ZodEnum<{
613
613
  image: "image";
614
614
  audio: "audio";
@@ -616,7 +616,7 @@ declare const catalogRoute: {
616
616
  pdf: "pdf";
617
617
  document: "document";
618
618
  }>>;
619
- defaultOnly: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
619
+ defaultOnly: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">, z.ZodLiteral<"0">]>>, z.ZodTransform<boolean | undefined, "true" | "0" | "1" | "false" | undefined>>;
620
620
  mode: z.ZodDefault<z.ZodEnum<{
621
621
  flat: "flat";
622
622
  grouped: "grouped";
@@ -4878,7 +4878,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
4878
4878
  stack?: string | undefined;
4879
4879
  };
4880
4880
  outputFormat: "json";
4881
- status: 400;
4881
+ status: 500;
4882
4882
  } | {
4883
4883
  input: {
4884
4884
  query: {
@@ -4911,7 +4911,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
4911
4911
  stack?: string | undefined;
4912
4912
  };
4913
4913
  outputFormat: "json";
4914
- status: 500;
4914
+ status: 400;
4915
4915
  } | {
4916
4916
  input: {
4917
4917
  query: {
@@ -4983,10 +4983,10 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
4983
4983
  query: {
4984
4984
  scope?: "curated" | "all" | undefined;
4985
4985
  provider?: string | string[] | undefined;
4986
- includeModels?: "0" | "1" | "true" | "false" | undefined;
4987
- hasKey?: "0" | "1" | "true" | "false" | undefined;
4986
+ includeModels?: "true" | "0" | "1" | "false" | undefined;
4987
+ hasKey?: "true" | "0" | "1" | "false" | undefined;
4988
4988
  fileType?: "image" | "audio" | "video" | "pdf" | "document" | undefined;
4989
- defaultOnly?: "0" | "1" | "true" | "false" | undefined;
4989
+ defaultOnly?: "true" | "0" | "1" | "false" | undefined;
4990
4990
  mode?: "flat" | "grouped" | undefined;
4991
4991
  };
4992
4992
  };
@@ -5016,16 +5016,16 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5016
5016
  stack?: string | undefined;
5017
5017
  };
5018
5018
  outputFormat: "json";
5019
- status: 400;
5019
+ status: 500;
5020
5020
  } | {
5021
5021
  input: {
5022
5022
  query: {
5023
5023
  scope?: "curated" | "all" | undefined;
5024
5024
  provider?: string | string[] | undefined;
5025
- includeModels?: "0" | "1" | "true" | "false" | undefined;
5026
- hasKey?: "0" | "1" | "true" | "false" | undefined;
5025
+ includeModels?: "true" | "0" | "1" | "false" | undefined;
5026
+ hasKey?: "true" | "0" | "1" | "false" | undefined;
5027
5027
  fileType?: "image" | "audio" | "video" | "pdf" | "document" | undefined;
5028
- defaultOnly?: "0" | "1" | "true" | "false" | undefined;
5028
+ defaultOnly?: "true" | "0" | "1" | "false" | undefined;
5029
5029
  mode?: "flat" | "grouped" | undefined;
5030
5030
  };
5031
5031
  };
@@ -5055,16 +5055,16 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5055
5055
  stack?: string | undefined;
5056
5056
  };
5057
5057
  outputFormat: "json";
5058
- status: 500;
5058
+ status: 400;
5059
5059
  } | {
5060
5060
  input: {
5061
5061
  query: {
5062
5062
  scope?: "curated" | "all" | undefined;
5063
5063
  provider?: string | string[] | undefined;
5064
- includeModels?: "0" | "1" | "true" | "false" | undefined;
5065
- hasKey?: "0" | "1" | "true" | "false" | undefined;
5064
+ includeModels?: "true" | "0" | "1" | "false" | undefined;
5065
+ hasKey?: "true" | "0" | "1" | "false" | undefined;
5066
5066
  fileType?: "image" | "audio" | "video" | "pdf" | "document" | undefined;
5067
- defaultOnly?: "0" | "1" | "true" | "false" | undefined;
5067
+ defaultOnly?: "true" | "0" | "1" | "false" | undefined;
5068
5068
  mode?: "flat" | "grouped" | undefined;
5069
5069
  };
5070
5070
  };
@@ -5100,10 +5100,10 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5100
5100
  query: {
5101
5101
  scope?: "curated" | "all" | undefined;
5102
5102
  provider?: string | string[] | undefined;
5103
- includeModels?: "0" | "1" | "true" | "false" | undefined;
5104
- hasKey?: "0" | "1" | "true" | "false" | undefined;
5103
+ includeModels?: "true" | "0" | "1" | "false" | undefined;
5104
+ hasKey?: "true" | "0" | "1" | "false" | undefined;
5105
5105
  fileType?: "image" | "audio" | "video" | "pdf" | "document" | undefined;
5106
- defaultOnly?: "0" | "1" | "true" | "false" | undefined;
5106
+ defaultOnly?: "true" | "0" | "1" | "false" | undefined;
5107
5107
  mode?: "flat" | "grouped" | undefined;
5108
5108
  };
5109
5109
  };
@@ -5554,7 +5554,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5554
5554
  stack?: string | undefined;
5555
5555
  };
5556
5556
  outputFormat: "json";
5557
- status: 400;
5557
+ status: 500;
5558
5558
  } | {
5559
5559
  input: {
5560
5560
  json: {
@@ -5601,7 +5601,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5601
5601
  stack?: string | undefined;
5602
5602
  };
5603
5603
  outputFormat: "json";
5604
- status: 500;
5604
+ status: 400;
5605
5605
  } | {
5606
5606
  input: {
5607
5607
  json: {
@@ -5894,7 +5894,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5894
5894
  stack?: string | undefined;
5895
5895
  };
5896
5896
  outputFormat: "json";
5897
- status: 400;
5897
+ status: 500;
5898
5898
  } | {
5899
5899
  input: {
5900
5900
  json: {
@@ -5938,7 +5938,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
5938
5938
  stack?: string | undefined;
5939
5939
  };
5940
5940
  outputFormat: "json";
5941
- status: 500;
5941
+ status: 400;
5942
5942
  } | {
5943
5943
  input: {
5944
5944
  json: {
@@ -6099,7 +6099,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6099
6099
  stack?: string | undefined;
6100
6100
  };
6101
6101
  outputFormat: "json";
6102
- status: 400;
6102
+ status: 500;
6103
6103
  } | {
6104
6104
  input: {
6105
6105
  param: {
@@ -6132,7 +6132,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6132
6132
  stack?: string | undefined;
6133
6133
  };
6134
6134
  outputFormat: "json";
6135
- status: 500;
6135
+ status: 400;
6136
6136
  } | {
6137
6137
  input: {
6138
6138
  param: {
@@ -6183,6 +6183,21 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6183
6183
  } & {
6184
6184
  "/llm/model-picker-state": {
6185
6185
  $get: {
6186
+ input: {};
6187
+ output: {
6188
+ code: string;
6189
+ message: string;
6190
+ scope: string;
6191
+ type: string;
6192
+ traceId: string;
6193
+ endpoint: string;
6194
+ method: string;
6195
+ context?: any;
6196
+ recovery?: string | string[] | undefined;
6197
+ };
6198
+ outputFormat: "json";
6199
+ status: 500;
6200
+ } | {
6186
6201
  input: {};
6187
6202
  output: {
6188
6203
  featured: {
@@ -6250,21 +6265,6 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6250
6265
  };
6251
6266
  outputFormat: "json";
6252
6267
  status: 404;
6253
- } | {
6254
- input: {};
6255
- output: {
6256
- code: string;
6257
- message: string;
6258
- scope: string;
6259
- type: string;
6260
- traceId: string;
6261
- endpoint: string;
6262
- method: string;
6263
- context?: any;
6264
- recovery?: string | string[] | undefined;
6265
- };
6266
- outputFormat: "json";
6267
- status: 500;
6268
6268
  };
6269
6269
  };
6270
6270
  } & {
@@ -6289,7 +6289,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6289
6289
  recovery?: string | string[] | undefined;
6290
6290
  };
6291
6291
  outputFormat: "json";
6292
- status: 400;
6292
+ status: 500;
6293
6293
  } | {
6294
6294
  input: {
6295
6295
  json: {
@@ -6310,7 +6310,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6310
6310
  recovery?: string | string[] | undefined;
6311
6311
  };
6312
6312
  outputFormat: "json";
6313
- status: 404;
6313
+ status: 400;
6314
6314
  } | {
6315
6315
  input: {
6316
6316
  json: {
@@ -6331,7 +6331,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6331
6331
  recovery?: string | string[] | undefined;
6332
6332
  };
6333
6333
  outputFormat: "json";
6334
- status: 500;
6334
+ status: 404;
6335
6335
  } | {
6336
6336
  input: {
6337
6337
  json: {
@@ -6369,7 +6369,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6369
6369
  recovery?: string | string[] | undefined;
6370
6370
  };
6371
6371
  outputFormat: "json";
6372
- status: 400;
6372
+ status: 500;
6373
6373
  } | {
6374
6374
  input: {
6375
6375
  json: {
@@ -6390,7 +6390,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6390
6390
  recovery?: string | string[] | undefined;
6391
6391
  };
6392
6392
  outputFormat: "json";
6393
- status: 404;
6393
+ status: 400;
6394
6394
  } | {
6395
6395
  input: {
6396
6396
  json: {
@@ -6411,7 +6411,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6411
6411
  recovery?: string | string[] | undefined;
6412
6412
  };
6413
6413
  outputFormat: "json";
6414
- status: 500;
6414
+ status: 404;
6415
6415
  } | {
6416
6416
  input: {
6417
6417
  json: {
@@ -6452,7 +6452,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6452
6452
  recovery?: string | string[] | undefined;
6453
6453
  };
6454
6454
  outputFormat: "json";
6455
- status: 400;
6455
+ status: 500;
6456
6456
  } | {
6457
6457
  input: {
6458
6458
  json: {
@@ -6475,7 +6475,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6475
6475
  recovery?: string | string[] | undefined;
6476
6476
  };
6477
6477
  outputFormat: "json";
6478
- status: 404;
6478
+ status: 400;
6479
6479
  } | {
6480
6480
  input: {
6481
6481
  json: {
@@ -6498,7 +6498,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6498
6498
  recovery?: string | string[] | undefined;
6499
6499
  };
6500
6500
  outputFormat: "json";
6501
- status: 500;
6501
+ status: 404;
6502
6502
  } | {
6503
6503
  input: {
6504
6504
  json: {
@@ -6552,7 +6552,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6552
6552
  stack?: string | undefined;
6553
6553
  };
6554
6554
  outputFormat: "json";
6555
- status: 400;
6555
+ status: 500;
6556
6556
  } | {
6557
6557
  input: {
6558
6558
  query: {
@@ -6586,7 +6586,7 @@ export declare function createLlmRouter(getAgent: GetAgentFn): OpenAPIHono<impor
6586
6586
  stack?: string | undefined;
6587
6587
  };
6588
6588
  outputFormat: "json";
6589
- status: 500;
6589
+ status: 400;
6590
6590
  } | {
6591
6591
  input: {
6592
6592
  query: {
@@ -2021,7 +2021,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2021
2021
  stack?: string | undefined;
2022
2022
  };
2023
2023
  outputFormat: "json";
2024
- status: 400;
2024
+ status: 500;
2025
2025
  } | {
2026
2026
  input: {
2027
2027
  json: {
@@ -2060,7 +2060,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2060
2060
  stack?: string | undefined;
2061
2061
  };
2062
2062
  outputFormat: "json";
2063
- status: 500;
2063
+ status: 400;
2064
2064
  } | {
2065
2065
  input: {
2066
2066
  json: {
@@ -2130,7 +2130,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2130
2130
  stack?: string | undefined;
2131
2131
  };
2132
2132
  outputFormat: "json";
2133
- status: 400;
2133
+ status: 500;
2134
2134
  } | {
2135
2135
  input: {
2136
2136
  query: {
@@ -2167,7 +2167,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2167
2167
  stack?: string | undefined;
2168
2168
  };
2169
2169
  outputFormat: "json";
2170
- status: 500;
2170
+ status: 400;
2171
2171
  } | {
2172
2172
  input: {
2173
2173
  query: {
@@ -2231,7 +2231,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2231
2231
  stack?: string | undefined;
2232
2232
  };
2233
2233
  outputFormat: "json";
2234
- status: 400;
2234
+ status: 500;
2235
2235
  } | {
2236
2236
  input: {
2237
2237
  param: {
@@ -2264,7 +2264,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2264
2264
  stack?: string | undefined;
2265
2265
  };
2266
2266
  outputFormat: "json";
2267
- status: 500;
2267
+ status: 400;
2268
2268
  } | {
2269
2269
  input: {
2270
2270
  param: {
@@ -2367,7 +2367,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2367
2367
  stack?: string | undefined;
2368
2368
  };
2369
2369
  outputFormat: "json";
2370
- status: 400;
2370
+ status: 500;
2371
2371
  } | {
2372
2372
  input: {
2373
2373
  param: {
@@ -2410,7 +2410,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2410
2410
  stack?: string | undefined;
2411
2411
  };
2412
2412
  outputFormat: "json";
2413
- status: 500;
2413
+ status: 400;
2414
2414
  } | {
2415
2415
  input: {
2416
2416
  param: {
@@ -2523,7 +2523,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2523
2523
  stack?: string | undefined;
2524
2524
  };
2525
2525
  outputFormat: "json";
2526
- status: 400;
2526
+ status: 500;
2527
2527
  } | {
2528
2528
  input: {
2529
2529
  param: {
@@ -2556,7 +2556,7 @@ export declare function createMemoryRouter(getAgent: GetAgentFn): OpenAPIHono<im
2556
2556
  stack?: string | undefined;
2557
2557
  };
2558
2558
  outputFormat: "json";
2559
- status: 500;
2559
+ status: 400;
2560
2560
  } | {
2561
2561
  input: {
2562
2562
  param: {
@@ -1523,7 +1523,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1523
1523
  stack?: string | undefined;
1524
1524
  };
1525
1525
  outputFormat: "json";
1526
- status: 400;
1526
+ status: 500;
1527
1527
  } | {
1528
1528
  input: {
1529
1529
  json: {
@@ -1569,7 +1569,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1569
1569
  stack?: string | undefined;
1570
1570
  };
1571
1571
  outputFormat: "json";
1572
- status: 500;
1572
+ status: 400;
1573
1573
  } | {
1574
1574
  input: {
1575
1575
  json: {
@@ -1644,7 +1644,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1644
1644
  stack?: string | undefined;
1645
1645
  };
1646
1646
  outputFormat: "json";
1647
- status: 400;
1647
+ status: 500;
1648
1648
  } | {
1649
1649
  input: {
1650
1650
  json: {
@@ -1690,7 +1690,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1690
1690
  stack?: string | undefined;
1691
1691
  };
1692
1692
  outputFormat: "json";
1693
- status: 500;
1693
+ status: 400;
1694
1694
  } | {
1695
1695
  input: {
1696
1696
  json: {
@@ -1772,7 +1772,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1772
1772
  stack?: string | undefined;
1773
1773
  };
1774
1774
  outputFormat: "json";
1775
- status: 400;
1775
+ status: 500;
1776
1776
  } | {
1777
1777
  input: {
1778
1778
  json: {
@@ -1805,7 +1805,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1805
1805
  stack?: string | undefined;
1806
1806
  };
1807
1807
  outputFormat: "json";
1808
- status: 500;
1808
+ status: 400;
1809
1809
  } | {
1810
1810
  input: {
1811
1811
  json: {
@@ -1922,7 +1922,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1922
1922
  stack?: string | undefined;
1923
1923
  };
1924
1924
  outputFormat: "json";
1925
- status: 400;
1925
+ status: 500;
1926
1926
  } | {
1927
1927
  input: {
1928
1928
  json: {
@@ -1968,7 +1968,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, _approvalCoor
1968
1968
  stack?: string | undefined;
1969
1969
  };
1970
1970
  outputFormat: "json";
1971
- status: 500;
1971
+ status: 400;
1972
1972
  } | {
1973
1973
  input: {
1974
1974
  json: {
@@ -1182,7 +1182,7 @@ export declare function createModelsRouter(): OpenAPIHono<import("hono").Env, {
1182
1182
  stack?: string | undefined;
1183
1183
  };
1184
1184
  outputFormat: "json";
1185
- status: 400;
1185
+ status: 500;
1186
1186
  } | {
1187
1187
  input: {
1188
1188
  query: {
@@ -1215,7 +1215,7 @@ export declare function createModelsRouter(): OpenAPIHono<import("hono").Env, {
1215
1215
  stack?: string | undefined;
1216
1216
  };
1217
1217
  outputFormat: "json";
1218
- status: 500;
1218
+ status: 400;
1219
1219
  } | {
1220
1220
  input: {
1221
1221
  query: {
@@ -1271,7 +1271,7 @@ export declare function createModelsRouter(): OpenAPIHono<import("hono").Env, {
1271
1271
  stack?: string | undefined;
1272
1272
  };
1273
1273
  outputFormat: "json";
1274
- status: 400;
1274
+ status: 500;
1275
1275
  } | {
1276
1276
  input: {
1277
1277
  json: {
@@ -1304,7 +1304,7 @@ export declare function createModelsRouter(): OpenAPIHono<import("hono").Env, {
1304
1304
  stack?: string | undefined;
1305
1305
  };
1306
1306
  outputFormat: "json";
1307
- status: 500;
1307
+ status: 400;
1308
1308
  } | {
1309
1309
  input: {
1310
1310
  json: {
@@ -1358,7 +1358,7 @@ export declare function createModelsRouter(): OpenAPIHono<import("hono").Env, {
1358
1358
  stack?: string | undefined;
1359
1359
  };
1360
1360
  outputFormat: "json";
1361
- status: 400;
1361
+ status: 500;
1362
1362
  } | {
1363
1363
  input: {
1364
1364
  param: {
@@ -1395,7 +1395,7 @@ export declare function createModelsRouter(): OpenAPIHono<import("hono").Env, {
1395
1395
  stack?: string | undefined;
1396
1396
  };
1397
1397
  outputFormat: "json";
1398
- status: 500;
1398
+ status: 400;
1399
1399
  } | {
1400
1400
  input: {
1401
1401
  param: {
@@ -384,7 +384,7 @@ export declare function createOpenRouterRouter(): OpenAPIHono<import("hono").Env
384
384
  stack?: string | undefined;
385
385
  };
386
386
  outputFormat: "json";
387
- status: 400;
387
+ status: 500;
388
388
  } | {
389
389
  input: {
390
390
  param: {
@@ -417,7 +417,7 @@ export declare function createOpenRouterRouter(): OpenAPIHono<import("hono").Env
417
417
  stack?: string | undefined;
418
418
  };
419
419
  outputFormat: "json";
420
- status: 500;
420
+ status: 400;
421
421
  } | {
422
422
  input: {
423
423
  param: {
@@ -442,19 +442,19 @@ export declare function createOpenRouterRouter(): OpenAPIHono<import("hono").Env
442
442
  $post: {
443
443
  input: {};
444
444
  output: {
445
- ok: true;
445
+ ok: false;
446
446
  message: string;
447
447
  };
448
448
  outputFormat: "json";
449
- status: 200;
449
+ status: 500;
450
450
  } | {
451
451
  input: {};
452
452
  output: {
453
- ok: false;
453
+ ok: true;
454
454
  message: string;
455
455
  };
456
456
  outputFormat: "json";
457
- status: 500;
457
+ status: 200;
458
458
  };
459
459
  };
460
460
  }, "/">;
@@ -1088,7 +1088,7 @@ export declare function createPromptsRouter(getAgent: GetAgentFn): OpenAPIHono<i
1088
1088
  stack?: string | undefined;
1089
1089
  };
1090
1090
  outputFormat: "json";
1091
- status: 400;
1091
+ status: 500;
1092
1092
  } | {
1093
1093
  input: {
1094
1094
  json: {
@@ -1134,7 +1134,7 @@ export declare function createPromptsRouter(getAgent: GetAgentFn): OpenAPIHono<i
1134
1134
  stack?: string | undefined;
1135
1135
  };
1136
1136
  outputFormat: "json";
1137
- status: 500;
1137
+ status: 400;
1138
1138
  } | {
1139
1139
  input: {
1140
1140
  json: {