@mastra/server 0.0.0-feat-improve-processors-20251205191721 → 0.0.0-feat-add-query-option-to-playground-20251209160219

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 (136) hide show
  1. package/CHANGELOG.md +281 -3
  2. package/dist/{chunk-FCCK5TSS.js → chunk-3SFLFUKY.js} +3 -3
  3. package/dist/{chunk-FCCK5TSS.js.map → chunk-3SFLFUKY.js.map} +1 -1
  4. package/dist/{chunk-CENPXDRK.js → chunk-6YWE7UPT.js} +17 -5
  5. package/dist/chunk-6YWE7UPT.js.map +1 -0
  6. package/dist/{chunk-ICROWJN4.cjs → chunk-7HX4V5Y6.cjs} +137 -127
  7. package/dist/{chunk-ICROWJN4.cjs.map → chunk-7HX4V5Y6.cjs.map} +1 -1
  8. package/dist/{chunk-ORJBWSYB.js → chunk-7N3PD4SV.js} +3 -3
  9. package/dist/{chunk-ORJBWSYB.js.map → chunk-7N3PD4SV.js.map} +1 -1
  10. package/dist/{chunk-6FKQ4DSG.js → chunk-AWBBXA36.js} +31 -21
  11. package/dist/{chunk-6FKQ4DSG.js.map → chunk-AWBBXA36.js.map} +1 -1
  12. package/dist/{chunk-KXHMFCVS.cjs → chunk-C3D3X2L5.cjs} +5 -5
  13. package/dist/{chunk-KXHMFCVS.cjs.map → chunk-C3D3X2L5.cjs.map} +1 -1
  14. package/dist/{chunk-U565A3UD.js → chunk-C4J473OZ.js} +44 -35
  15. package/dist/chunk-C4J473OZ.js.map +1 -0
  16. package/dist/{chunk-2PB6VJQX.js → chunk-CT5VG7NT.js} +3 -3
  17. package/dist/{chunk-2PB6VJQX.js.map → chunk-CT5VG7NT.js.map} +1 -1
  18. package/dist/{chunk-BMZXKXKN.js → chunk-DG3INBBQ.js} +59 -22
  19. package/dist/chunk-DG3INBBQ.js.map +1 -0
  20. package/dist/{chunk-Z4GN2JAO.cjs → chunk-DHWPHLGF.cjs} +16 -16
  21. package/dist/{chunk-Z4GN2JAO.cjs.map → chunk-DHWPHLGF.cjs.map} +1 -1
  22. package/dist/{chunk-7MKJBWFB.js → chunk-DRUNNM4C.js} +3 -3
  23. package/dist/{chunk-7MKJBWFB.js.map → chunk-DRUNNM4C.js.map} +1 -1
  24. package/dist/{chunk-QS23OV2B.cjs → chunk-ESZ6V5WB.cjs} +10 -10
  25. package/dist/{chunk-QS23OV2B.cjs.map → chunk-ESZ6V5WB.cjs.map} +1 -1
  26. package/dist/{chunk-TLA5YDQF.cjs → chunk-FMTSLS25.cjs} +95 -86
  27. package/dist/chunk-FMTSLS25.cjs.map +1 -0
  28. package/dist/{chunk-C36PTNGG.js → chunk-FYY54HZC.js} +3 -3
  29. package/dist/{chunk-C36PTNGG.js.map → chunk-FYY54HZC.js.map} +1 -1
  30. package/dist/{chunk-TIX6M3ZD.js → chunk-GFF2I6UD.js} +3 -3
  31. package/dist/{chunk-TIX6M3ZD.js.map → chunk-GFF2I6UD.js.map} +1 -1
  32. package/dist/chunk-HAJOEDNB.js +274 -0
  33. package/dist/chunk-HAJOEDNB.js.map +1 -0
  34. package/dist/{chunk-PKRHEXX7.js → chunk-HT4LP3BO.js} +19 -18
  35. package/dist/chunk-HT4LP3BO.js.map +1 -0
  36. package/dist/{chunk-CLRYA4BH.cjs → chunk-I6LR6CPC.cjs} +6 -6
  37. package/dist/{chunk-CLRYA4BH.cjs.map → chunk-I6LR6CPC.cjs.map} +1 -1
  38. package/dist/chunk-IEYXQTUW.cjs +284 -0
  39. package/dist/chunk-IEYXQTUW.cjs.map +1 -0
  40. package/dist/{chunk-QCW6WANZ.cjs → chunk-LBSJWPXK.cjs} +28 -12
  41. package/dist/chunk-LBSJWPXK.cjs.map +1 -0
  42. package/dist/{chunk-2NW6POYK.cjs → chunk-MCYD5LW7.cjs} +19 -18
  43. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  44. package/dist/{chunk-GXPLVMB6.cjs → chunk-PUSD37LD.cjs} +17 -5
  45. package/dist/chunk-PUSD37LD.cjs.map +1 -0
  46. package/dist/{chunk-XMKZWHVG.js → chunk-QNVYGEJ4.js} +4 -4
  47. package/dist/{chunk-XMKZWHVG.js.map → chunk-QNVYGEJ4.js.map} +1 -1
  48. package/dist/{chunk-TOUBNMVI.cjs → chunk-S3TIWWQL.cjs} +5 -5
  49. package/dist/{chunk-TOUBNMVI.cjs.map → chunk-S3TIWWQL.cjs.map} +1 -1
  50. package/dist/{chunk-TT25WHVT.cjs → chunk-TYZ6ZISQ.cjs} +6 -6
  51. package/dist/{chunk-TT25WHVT.cjs.map → chunk-TYZ6ZISQ.cjs.map} +1 -1
  52. package/dist/{chunk-UPY7WWRA.cjs → chunk-US6Y5RLR.cjs} +21 -21
  53. package/dist/{chunk-UPY7WWRA.cjs.map → chunk-US6Y5RLR.cjs.map} +1 -1
  54. package/dist/{chunk-WISPJOEJ.js → chunk-UTIOKR5C.js} +3 -3
  55. package/dist/{chunk-WISPJOEJ.js.map → chunk-UTIOKR5C.js.map} +1 -1
  56. package/dist/{chunk-R4M3BSUG.js → chunk-WE4USCF3.js} +3 -3
  57. package/dist/{chunk-R4M3BSUG.js.map → chunk-WE4USCF3.js.map} +1 -1
  58. package/dist/{chunk-PRNUFXPC.cjs → chunk-WVAQXM6W.cjs} +87 -49
  59. package/dist/chunk-WVAQXM6W.cjs.map +1 -0
  60. package/dist/{chunk-SWIK2QSP.cjs → chunk-X43DWDXB.cjs} +5 -5
  61. package/dist/{chunk-SWIK2QSP.cjs.map → chunk-X43DWDXB.cjs.map} +1 -1
  62. package/dist/{chunk-MWQQRVQC.cjs → chunk-X4QMPCTP.cjs} +7 -7
  63. package/dist/{chunk-MWQQRVQC.cjs.map → chunk-X4QMPCTP.cjs.map} +1 -1
  64. package/dist/{chunk-VJVDLNFK.js → chunk-XNKZPXCY.js} +28 -12
  65. package/dist/chunk-XNKZPXCY.js.map +1 -0
  66. package/dist/server/handlers/a2a.cjs +9 -9
  67. package/dist/server/handlers/a2a.js +1 -1
  68. package/dist/server/handlers/agent-builder.cjs +19 -19
  69. package/dist/server/handlers/agent-builder.d.ts +15 -33
  70. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  71. package/dist/server/handlers/agent-builder.js +1 -1
  72. package/dist/server/handlers/agents.cjs +23 -23
  73. package/dist/server/handlers/agents.d.ts +6 -4
  74. package/dist/server/handlers/agents.d.ts.map +1 -1
  75. package/dist/server/handlers/agents.js +1 -1
  76. package/dist/server/handlers/logs.cjs +4 -4
  77. package/dist/server/handlers/logs.js +1 -1
  78. package/dist/server/handlers/mcp.cjs +9 -9
  79. package/dist/server/handlers/mcp.d.ts +3 -1
  80. package/dist/server/handlers/mcp.d.ts.map +1 -1
  81. package/dist/server/handlers/mcp.js +1 -1
  82. package/dist/server/handlers/memory.cjs +24 -24
  83. package/dist/server/handlers/memory.js +1 -1
  84. package/dist/server/handlers/observability.cjs +9 -9
  85. package/dist/server/handlers/observability.js +1 -1
  86. package/dist/server/handlers/scores.cjs +7 -7
  87. package/dist/server/handlers/scores.js +1 -1
  88. package/dist/server/handlers/stored-agents.cjs +28 -0
  89. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  90. package/dist/server/handlers/stored-agents.d.ts +289 -0
  91. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  92. package/dist/server/handlers/stored-agents.js +3 -0
  93. package/dist/server/handlers/stored-agents.js.map +1 -0
  94. package/dist/server/handlers/tools.cjs +6 -6
  95. package/dist/server/handlers/tools.js +1 -1
  96. package/dist/server/handlers/vector.cjs +13 -13
  97. package/dist/server/handlers/vector.js +1 -1
  98. package/dist/server/handlers/voice.cjs +8 -8
  99. package/dist/server/handlers/voice.js +1 -1
  100. package/dist/server/handlers/workflows.cjs +30 -26
  101. package/dist/server/handlers/workflows.d.ts +291 -300
  102. package/dist/server/handlers/workflows.d.ts.map +1 -1
  103. package/dist/server/handlers/workflows.js +1 -1
  104. package/dist/server/handlers.cjs +24 -24
  105. package/dist/server/handlers.js +12 -12
  106. package/dist/server/schemas/common.d.ts +29 -15
  107. package/dist/server/schemas/common.d.ts.map +1 -1
  108. package/dist/server/schemas/mcp.d.ts +9 -3
  109. package/dist/server/schemas/mcp.d.ts.map +1 -1
  110. package/dist/server/schemas/stored-agents.d.ts +792 -0
  111. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  112. package/dist/server/schemas/workflows.d.ts +18 -39
  113. package/dist/server/schemas/workflows.d.ts.map +1 -1
  114. package/dist/server/server-adapter/index.cjs +157 -141
  115. package/dist/server/server-adapter/index.cjs.map +1 -1
  116. package/dist/server/server-adapter/index.d.ts +16 -2
  117. package/dist/server/server-adapter/index.d.ts.map +1 -1
  118. package/dist/server/server-adapter/index.js +34 -18
  119. package/dist/server/server-adapter/index.js.map +1 -1
  120. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  121. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  122. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  123. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
  124. package/dist/server/utils.d.ts +1 -1
  125. package/dist/server/utils.d.ts.map +1 -1
  126. package/package.json +6 -6
  127. package/dist/chunk-2NW6POYK.cjs.map +0 -1
  128. package/dist/chunk-BMZXKXKN.js.map +0 -1
  129. package/dist/chunk-CENPXDRK.js.map +0 -1
  130. package/dist/chunk-GXPLVMB6.cjs.map +0 -1
  131. package/dist/chunk-PKRHEXX7.js.map +0 -1
  132. package/dist/chunk-PRNUFXPC.cjs.map +0 -1
  133. package/dist/chunk-QCW6WANZ.cjs.map +0 -1
  134. package/dist/chunk-TLA5YDQF.cjs.map +0 -1
  135. package/dist/chunk-U565A3UD.js.map +0 -1
  136. package/dist/chunk-VJVDLNFK.js.map +0 -1
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var chunkTOUBNMVI_cjs = require('../../chunk-TOUBNMVI.cjs');
3
+ var chunkS3TIWWQL_cjs = require('../../chunk-S3TIWWQL.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "GET_SCORER_ROUTE", {
8
8
  enumerable: true,
9
- get: function () { return chunkTOUBNMVI_cjs.GET_SCORER_ROUTE; }
9
+ get: function () { return chunkS3TIWWQL_cjs.GET_SCORER_ROUTE; }
10
10
  });
11
11
  Object.defineProperty(exports, "LIST_SCORERS_ROUTE", {
12
12
  enumerable: true,
13
- get: function () { return chunkTOUBNMVI_cjs.LIST_SCORERS_ROUTE; }
13
+ get: function () { return chunkS3TIWWQL_cjs.LIST_SCORERS_ROUTE; }
14
14
  });
15
15
  Object.defineProperty(exports, "LIST_SCORES_BY_ENTITY_ID_ROUTE", {
16
16
  enumerable: true,
17
- get: function () { return chunkTOUBNMVI_cjs.LIST_SCORES_BY_ENTITY_ID_ROUTE; }
17
+ get: function () { return chunkS3TIWWQL_cjs.LIST_SCORES_BY_ENTITY_ID_ROUTE; }
18
18
  });
19
19
  Object.defineProperty(exports, "LIST_SCORES_BY_RUN_ID_ROUTE", {
20
20
  enumerable: true,
21
- get: function () { return chunkTOUBNMVI_cjs.LIST_SCORES_BY_RUN_ID_ROUTE; }
21
+ get: function () { return chunkS3TIWWQL_cjs.LIST_SCORES_BY_RUN_ID_ROUTE; }
22
22
  });
23
23
  Object.defineProperty(exports, "LIST_SCORES_BY_SCORER_ID_ROUTE", {
24
24
  enumerable: true,
25
- get: function () { return chunkTOUBNMVI_cjs.LIST_SCORES_BY_SCORER_ID_ROUTE; }
25
+ get: function () { return chunkS3TIWWQL_cjs.LIST_SCORES_BY_SCORER_ID_ROUTE; }
26
26
  });
27
27
  Object.defineProperty(exports, "SAVE_SCORE_ROUTE", {
28
28
  enumerable: true,
29
- get: function () { return chunkTOUBNMVI_cjs.SAVE_SCORE_ROUTE; }
29
+ get: function () { return chunkS3TIWWQL_cjs.SAVE_SCORE_ROUTE; }
30
30
  });
31
31
  //# sourceMappingURL=scores.cjs.map
32
32
  //# sourceMappingURL=scores.cjs.map
@@ -1,3 +1,3 @@
1
- export { GET_SCORER_ROUTE, LIST_SCORERS_ROUTE, LIST_SCORES_BY_ENTITY_ID_ROUTE, LIST_SCORES_BY_RUN_ID_ROUTE, LIST_SCORES_BY_SCORER_ID_ROUTE, SAVE_SCORE_ROUTE } from '../../chunk-C36PTNGG.js';
1
+ export { GET_SCORER_ROUTE, LIST_SCORERS_ROUTE, LIST_SCORES_BY_ENTITY_ID_ROUTE, LIST_SCORES_BY_RUN_ID_ROUTE, LIST_SCORES_BY_SCORER_ID_ROUTE, SAVE_SCORE_ROUTE } from '../../chunk-FYY54HZC.js';
2
2
  //# sourceMappingURL=scores.js.map
3
3
  //# sourceMappingURL=scores.js.map
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var chunkIEYXQTUW_cjs = require('../../chunk-IEYXQTUW.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "CREATE_STORED_AGENT_ROUTE", {
8
+ enumerable: true,
9
+ get: function () { return chunkIEYXQTUW_cjs.CREATE_STORED_AGENT_ROUTE; }
10
+ });
11
+ Object.defineProperty(exports, "DELETE_STORED_AGENT_ROUTE", {
12
+ enumerable: true,
13
+ get: function () { return chunkIEYXQTUW_cjs.DELETE_STORED_AGENT_ROUTE; }
14
+ });
15
+ Object.defineProperty(exports, "GET_STORED_AGENT_ROUTE", {
16
+ enumerable: true,
17
+ get: function () { return chunkIEYXQTUW_cjs.GET_STORED_AGENT_ROUTE; }
18
+ });
19
+ Object.defineProperty(exports, "LIST_STORED_AGENTS_ROUTE", {
20
+ enumerable: true,
21
+ get: function () { return chunkIEYXQTUW_cjs.LIST_STORED_AGENTS_ROUTE; }
22
+ });
23
+ Object.defineProperty(exports, "UPDATE_STORED_AGENT_ROUTE", {
24
+ enumerable: true,
25
+ get: function () { return chunkIEYXQTUW_cjs.UPDATE_STORED_AGENT_ROUTE; }
26
+ });
27
+ //# sourceMappingURL=stored-agents.cjs.map
28
+ //# sourceMappingURL=stored-agents.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"stored-agents.cjs"}
@@ -0,0 +1,289 @@
1
+ /**
2
+ * GET /api/stored/agents - List all stored agents
3
+ */
4
+ export declare const LIST_STORED_AGENTS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
5
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
6
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
7
+ } & {
8
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
9
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
10
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ field?: "createdAt" | "updatedAt" | undefined;
13
+ direction?: "ASC" | "DESC" | undefined;
14
+ }, {
15
+ field?: "createdAt" | "updatedAt" | undefined;
16
+ direction?: "ASC" | "DESC" | undefined;
17
+ }>>;
18
+ }, "strip", import("zod").ZodTypeAny, {
19
+ page: number;
20
+ perPage: number;
21
+ orderBy?: {
22
+ field?: "createdAt" | "updatedAt" | undefined;
23
+ direction?: "ASC" | "DESC" | undefined;
24
+ } | undefined;
25
+ }, {
26
+ page?: number | undefined;
27
+ perPage?: number | undefined;
28
+ orderBy?: {
29
+ field?: "createdAt" | "updatedAt" | undefined;
30
+ direction?: "ASC" | "DESC" | undefined;
31
+ } | undefined;
32
+ }> | import("zod").ZodObject<{
33
+ perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
34
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
35
+ } & {
36
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
37
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
38
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
39
+ }, "strip", import("zod").ZodTypeAny, {
40
+ field?: "createdAt" | "updatedAt" | undefined;
41
+ direction?: "ASC" | "DESC" | undefined;
42
+ }, {
43
+ field?: "createdAt" | "updatedAt" | undefined;
44
+ direction?: "ASC" | "DESC" | undefined;
45
+ }>>;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ page: number;
48
+ perPage?: number | undefined;
49
+ orderBy?: {
50
+ field?: "createdAt" | "updatedAt" | undefined;
51
+ direction?: "ASC" | "DESC" | undefined;
52
+ } | undefined;
53
+ }, {
54
+ page?: number | undefined;
55
+ perPage?: number | undefined;
56
+ orderBy?: {
57
+ field?: "createdAt" | "updatedAt" | undefined;
58
+ direction?: "ASC" | "DESC" | undefined;
59
+ } | undefined;
60
+ }>, undefined>, {
61
+ total: number;
62
+ page: number;
63
+ perPage: number | false;
64
+ hasMore: boolean;
65
+ agents: {
66
+ name: string;
67
+ id: string;
68
+ createdAt: Date;
69
+ updatedAt: Date;
70
+ model: Record<string, unknown>;
71
+ instructions: string;
72
+ metadata?: Record<string, unknown> | undefined;
73
+ description?: string | undefined;
74
+ tools?: string[] | undefined;
75
+ agents?: string[] | undefined;
76
+ workflows?: string[] | undefined;
77
+ inputProcessors?: Record<string, unknown>[] | undefined;
78
+ outputProcessors?: Record<string, unknown>[] | undefined;
79
+ defaultOptions?: Record<string, unknown> | undefined;
80
+ memory?: string | undefined;
81
+ scorers?: Record<string, {
82
+ sampling?: {
83
+ type: "count" | "ratio";
84
+ count?: number | undefined;
85
+ rate?: number | undefined;
86
+ } | undefined;
87
+ }> | undefined;
88
+ }[];
89
+ }, "json">;
90
+ /**
91
+ * GET /api/stored/agents/:storedAgentId - Get a stored agent by ID
92
+ */
93
+ export declare const GET_STORED_AGENT_ROUTE: import("../server-adapter").ServerRoute<{
94
+ storedAgentId: string;
95
+ }, {
96
+ name: string;
97
+ id: string;
98
+ createdAt: Date;
99
+ updatedAt: Date;
100
+ model: Record<string, unknown>;
101
+ instructions: string;
102
+ metadata?: Record<string, unknown> | undefined;
103
+ description?: string | undefined;
104
+ tools?: string[] | undefined;
105
+ agents?: string[] | undefined;
106
+ workflows?: string[] | undefined;
107
+ inputProcessors?: Record<string, unknown>[] | undefined;
108
+ outputProcessors?: Record<string, unknown>[] | undefined;
109
+ defaultOptions?: Record<string, unknown> | undefined;
110
+ memory?: string | undefined;
111
+ scorers?: Record<string, {
112
+ sampling?: {
113
+ type: "count" | "ratio";
114
+ count?: number | undefined;
115
+ rate?: number | undefined;
116
+ } | undefined;
117
+ }> | undefined;
118
+ }, "json">;
119
+ /**
120
+ * POST /api/stored/agents - Create a new stored agent
121
+ */
122
+ export declare const CREATE_STORED_AGENT_ROUTE: import("../server-adapter").ServerRoute<{
123
+ name: string;
124
+ id: string;
125
+ model: Record<string, unknown>;
126
+ instructions: string;
127
+ metadata?: Record<string, unknown> | undefined;
128
+ description?: string | undefined;
129
+ tools?: string[] | undefined;
130
+ agents?: string[] | undefined;
131
+ workflows?: string[] | undefined;
132
+ inputProcessors?: Record<string, unknown>[] | undefined;
133
+ outputProcessors?: Record<string, unknown>[] | undefined;
134
+ defaultOptions?: Record<string, unknown> | undefined;
135
+ memory?: string | undefined;
136
+ scorers?: Record<string, {
137
+ sampling?: {
138
+ type: "count" | "ratio";
139
+ count?: number | undefined;
140
+ rate?: number | undefined;
141
+ } | undefined;
142
+ }> | undefined;
143
+ }, {
144
+ name: string;
145
+ id: string;
146
+ createdAt: Date;
147
+ updatedAt: Date;
148
+ model: Record<string, unknown>;
149
+ instructions: string;
150
+ metadata?: Record<string, unknown> | undefined;
151
+ description?: string | undefined;
152
+ tools?: string[] | undefined;
153
+ agents?: string[] | undefined;
154
+ workflows?: string[] | undefined;
155
+ inputProcessors?: Record<string, unknown>[] | undefined;
156
+ outputProcessors?: Record<string, unknown>[] | undefined;
157
+ defaultOptions?: Record<string, unknown> | undefined;
158
+ memory?: string | undefined;
159
+ scorers?: Record<string, {
160
+ sampling?: {
161
+ type: "count" | "ratio";
162
+ count?: number | undefined;
163
+ rate?: number | undefined;
164
+ } | undefined;
165
+ }> | undefined;
166
+ }, "json">;
167
+ /**
168
+ * PATCH /api/stored/agents/:storedAgentId - Update a stored agent
169
+ */
170
+ export declare const UPDATE_STORED_AGENT_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
171
+ storedAgentId: import("zod").ZodString;
172
+ }, "strip", import("zod").ZodTypeAny, {
173
+ storedAgentId: string;
174
+ }, {
175
+ storedAgentId: string;
176
+ }>, undefined, import("zod").ZodObject<{
177
+ name: import("zod").ZodOptional<import("zod").ZodString>;
178
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
179
+ instructions: import("zod").ZodOptional<import("zod").ZodString>;
180
+ model: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
181
+ tools: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
182
+ defaultOptions: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
183
+ workflows: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
184
+ agents: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
185
+ inputProcessors: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>>;
186
+ outputProcessors: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>>;
187
+ memory: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
188
+ scorers: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
189
+ sampling: import("zod").ZodOptional<import("zod").ZodObject<{
190
+ type: import("zod").ZodEnum<["ratio", "count"]>;
191
+ rate: import("zod").ZodOptional<import("zod").ZodNumber>;
192
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
193
+ }, "strip", import("zod").ZodTypeAny, {
194
+ type: "count" | "ratio";
195
+ count?: number | undefined;
196
+ rate?: number | undefined;
197
+ }, {
198
+ type: "count" | "ratio";
199
+ count?: number | undefined;
200
+ rate?: number | undefined;
201
+ }>>;
202
+ }, "strip", import("zod").ZodTypeAny, {
203
+ sampling?: {
204
+ type: "count" | "ratio";
205
+ count?: number | undefined;
206
+ rate?: number | undefined;
207
+ } | undefined;
208
+ }, {
209
+ sampling?: {
210
+ type: "count" | "ratio";
211
+ count?: number | undefined;
212
+ rate?: number | undefined;
213
+ } | undefined;
214
+ }>>>>;
215
+ metadata: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
216
+ }, "strip", import("zod").ZodTypeAny, {
217
+ metadata?: Record<string, unknown> | undefined;
218
+ name?: string | undefined;
219
+ description?: string | undefined;
220
+ model?: Record<string, unknown> | undefined;
221
+ instructions?: string | undefined;
222
+ tools?: string[] | undefined;
223
+ agents?: string[] | undefined;
224
+ workflows?: string[] | undefined;
225
+ inputProcessors?: Record<string, unknown>[] | undefined;
226
+ outputProcessors?: Record<string, unknown>[] | undefined;
227
+ defaultOptions?: Record<string, unknown> | undefined;
228
+ memory?: string | undefined;
229
+ scorers?: Record<string, {
230
+ sampling?: {
231
+ type: "count" | "ratio";
232
+ count?: number | undefined;
233
+ rate?: number | undefined;
234
+ } | undefined;
235
+ }> | undefined;
236
+ }, {
237
+ metadata?: Record<string, unknown> | undefined;
238
+ name?: string | undefined;
239
+ description?: string | undefined;
240
+ model?: Record<string, unknown> | undefined;
241
+ instructions?: string | undefined;
242
+ tools?: string[] | undefined;
243
+ agents?: string[] | undefined;
244
+ workflows?: string[] | undefined;
245
+ inputProcessors?: Record<string, unknown>[] | undefined;
246
+ outputProcessors?: Record<string, unknown>[] | undefined;
247
+ defaultOptions?: Record<string, unknown> | undefined;
248
+ memory?: string | undefined;
249
+ scorers?: Record<string, {
250
+ sampling?: {
251
+ type: "count" | "ratio";
252
+ count?: number | undefined;
253
+ rate?: number | undefined;
254
+ } | undefined;
255
+ }> | undefined;
256
+ }>>, {
257
+ name: string;
258
+ id: string;
259
+ createdAt: Date;
260
+ updatedAt: Date;
261
+ model: Record<string, unknown>;
262
+ instructions: string;
263
+ metadata?: Record<string, unknown> | undefined;
264
+ description?: string | undefined;
265
+ tools?: string[] | undefined;
266
+ agents?: string[] | undefined;
267
+ workflows?: string[] | undefined;
268
+ inputProcessors?: Record<string, unknown>[] | undefined;
269
+ outputProcessors?: Record<string, unknown>[] | undefined;
270
+ defaultOptions?: Record<string, unknown> | undefined;
271
+ memory?: string | undefined;
272
+ scorers?: Record<string, {
273
+ sampling?: {
274
+ type: "count" | "ratio";
275
+ count?: number | undefined;
276
+ rate?: number | undefined;
277
+ } | undefined;
278
+ }> | undefined;
279
+ }, "json">;
280
+ /**
281
+ * DELETE /api/stored/agents/:storedAgentId - Delete a stored agent
282
+ */
283
+ export declare const DELETE_STORED_AGENT_ROUTE: import("../server-adapter").ServerRoute<{
284
+ storedAgentId: string;
285
+ }, {
286
+ message: string;
287
+ success: boolean;
288
+ }, "json">;
289
+ //# sourceMappingURL=stored-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stored-agents.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/stored-agents.ts"],"names":[],"mappings":"AAoBA;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgCnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;UAgCjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsEpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqEpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;UAkCpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CREATE_STORED_AGENT_ROUTE, DELETE_STORED_AGENT_ROUTE, GET_STORED_AGENT_ROUTE, LIST_STORED_AGENTS_ROUTE, UPDATE_STORED_AGENT_ROUTE } from '../../chunk-HAJOEDNB.js';
2
+ //# sourceMappingURL=stored-agents.js.map
3
+ //# sourceMappingURL=stored-agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"stored-agents.js"}
@@ -1,28 +1,28 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ4GN2JAO_cjs = require('../../chunk-Z4GN2JAO.cjs');
3
+ var chunkDHWPHLGF_cjs = require('../../chunk-DHWPHLGF.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "EXECUTE_AGENT_TOOL_ROUTE", {
8
8
  enumerable: true,
9
- get: function () { return chunkZ4GN2JAO_cjs.EXECUTE_AGENT_TOOL_ROUTE; }
9
+ get: function () { return chunkDHWPHLGF_cjs.EXECUTE_AGENT_TOOL_ROUTE; }
10
10
  });
11
11
  Object.defineProperty(exports, "EXECUTE_TOOL_ROUTE", {
12
12
  enumerable: true,
13
- get: function () { return chunkZ4GN2JAO_cjs.EXECUTE_TOOL_ROUTE; }
13
+ get: function () { return chunkDHWPHLGF_cjs.EXECUTE_TOOL_ROUTE; }
14
14
  });
15
15
  Object.defineProperty(exports, "GET_AGENT_TOOL_ROUTE", {
16
16
  enumerable: true,
17
- get: function () { return chunkZ4GN2JAO_cjs.GET_AGENT_TOOL_ROUTE; }
17
+ get: function () { return chunkDHWPHLGF_cjs.GET_AGENT_TOOL_ROUTE; }
18
18
  });
19
19
  Object.defineProperty(exports, "GET_TOOL_BY_ID_ROUTE", {
20
20
  enumerable: true,
21
- get: function () { return chunkZ4GN2JAO_cjs.GET_TOOL_BY_ID_ROUTE; }
21
+ get: function () { return chunkDHWPHLGF_cjs.GET_TOOL_BY_ID_ROUTE; }
22
22
  });
23
23
  Object.defineProperty(exports, "LIST_TOOLS_ROUTE", {
24
24
  enumerable: true,
25
- get: function () { return chunkZ4GN2JAO_cjs.LIST_TOOLS_ROUTE; }
25
+ get: function () { return chunkDHWPHLGF_cjs.LIST_TOOLS_ROUTE; }
26
26
  });
27
27
  //# sourceMappingURL=tools.cjs.map
28
28
  //# sourceMappingURL=tools.cjs.map
@@ -1,3 +1,3 @@
1
- export { EXECUTE_AGENT_TOOL_ROUTE, EXECUTE_TOOL_ROUTE, GET_AGENT_TOOL_ROUTE, GET_TOOL_BY_ID_ROUTE, LIST_TOOLS_ROUTE } from '../../chunk-XMKZWHVG.js';
1
+ export { EXECUTE_AGENT_TOOL_ROUTE, EXECUTE_TOOL_ROUTE, GET_AGENT_TOOL_ROUTE, GET_TOOL_BY_ID_ROUTE, LIST_TOOLS_ROUTE } from '../../chunk-QNVYGEJ4.js';
2
2
  //# sourceMappingURL=tools.js.map
3
3
  //# sourceMappingURL=tools.js.map
@@ -1,56 +1,56 @@
1
1
  'use strict';
2
2
 
3
- var chunkSWIK2QSP_cjs = require('../../chunk-SWIK2QSP.cjs');
3
+ var chunkX43DWDXB_cjs = require('../../chunk-X43DWDXB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CREATE_INDEX_ROUTE", {
8
8
  enumerable: true,
9
- get: function () { return chunkSWIK2QSP_cjs.CREATE_INDEX_ROUTE; }
9
+ get: function () { return chunkX43DWDXB_cjs.CREATE_INDEX_ROUTE; }
10
10
  });
11
11
  Object.defineProperty(exports, "DELETE_INDEX_ROUTE", {
12
12
  enumerable: true,
13
- get: function () { return chunkSWIK2QSP_cjs.DELETE_INDEX_ROUTE; }
13
+ get: function () { return chunkX43DWDXB_cjs.DELETE_INDEX_ROUTE; }
14
14
  });
15
15
  Object.defineProperty(exports, "DESCRIBE_INDEX_ROUTE", {
16
16
  enumerable: true,
17
- get: function () { return chunkSWIK2QSP_cjs.DESCRIBE_INDEX_ROUTE; }
17
+ get: function () { return chunkX43DWDXB_cjs.DESCRIBE_INDEX_ROUTE; }
18
18
  });
19
19
  Object.defineProperty(exports, "LIST_INDEXES_ROUTE", {
20
20
  enumerable: true,
21
- get: function () { return chunkSWIK2QSP_cjs.LIST_INDEXES_ROUTE; }
21
+ get: function () { return chunkX43DWDXB_cjs.LIST_INDEXES_ROUTE; }
22
22
  });
23
23
  Object.defineProperty(exports, "QUERY_VECTORS_ROUTE", {
24
24
  enumerable: true,
25
- get: function () { return chunkSWIK2QSP_cjs.QUERY_VECTORS_ROUTE; }
25
+ get: function () { return chunkX43DWDXB_cjs.QUERY_VECTORS_ROUTE; }
26
26
  });
27
27
  Object.defineProperty(exports, "UPSERT_VECTORS_ROUTE", {
28
28
  enumerable: true,
29
- get: function () { return chunkSWIK2QSP_cjs.UPSERT_VECTORS_ROUTE; }
29
+ get: function () { return chunkX43DWDXB_cjs.UPSERT_VECTORS_ROUTE; }
30
30
  });
31
31
  Object.defineProperty(exports, "createIndex", {
32
32
  enumerable: true,
33
- get: function () { return chunkSWIK2QSP_cjs.createIndex; }
33
+ get: function () { return chunkX43DWDXB_cjs.createIndex; }
34
34
  });
35
35
  Object.defineProperty(exports, "deleteIndex", {
36
36
  enumerable: true,
37
- get: function () { return chunkSWIK2QSP_cjs.deleteIndex; }
37
+ get: function () { return chunkX43DWDXB_cjs.deleteIndex; }
38
38
  });
39
39
  Object.defineProperty(exports, "describeIndex", {
40
40
  enumerable: true,
41
- get: function () { return chunkSWIK2QSP_cjs.describeIndex; }
41
+ get: function () { return chunkX43DWDXB_cjs.describeIndex; }
42
42
  });
43
43
  Object.defineProperty(exports, "listIndexes", {
44
44
  enumerable: true,
45
- get: function () { return chunkSWIK2QSP_cjs.listIndexes; }
45
+ get: function () { return chunkX43DWDXB_cjs.listIndexes; }
46
46
  });
47
47
  Object.defineProperty(exports, "queryVectors", {
48
48
  enumerable: true,
49
- get: function () { return chunkSWIK2QSP_cjs.queryVectors; }
49
+ get: function () { return chunkX43DWDXB_cjs.queryVectors; }
50
50
  });
51
51
  Object.defineProperty(exports, "upsertVectors", {
52
52
  enumerable: true,
53
- get: function () { return chunkSWIK2QSP_cjs.upsertVectors; }
53
+ get: function () { return chunkX43DWDXB_cjs.upsertVectors; }
54
54
  });
55
55
  //# sourceMappingURL=vector.cjs.map
56
56
  //# sourceMappingURL=vector.cjs.map
@@ -1,3 +1,3 @@
1
- export { CREATE_INDEX_ROUTE, DELETE_INDEX_ROUTE, DESCRIBE_INDEX_ROUTE, LIST_INDEXES_ROUTE, QUERY_VECTORS_ROUTE, UPSERT_VECTORS_ROUTE, createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-7MKJBWFB.js';
1
+ export { CREATE_INDEX_ROUTE, DELETE_INDEX_ROUTE, DESCRIBE_INDEX_ROUTE, LIST_INDEXES_ROUTE, QUERY_VECTORS_ROUTE, UPSERT_VECTORS_ROUTE, createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-DRUNNM4C.js';
2
2
  //# sourceMappingURL=vector.js.map
3
3
  //# sourceMappingURL=vector.js.map
@@ -1,36 +1,36 @@
1
1
  'use strict';
2
2
 
3
- var chunkUPY7WWRA_cjs = require('../../chunk-UPY7WWRA.cjs');
3
+ var chunkUS6Y5RLR_cjs = require('../../chunk-US6Y5RLR.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "GENERATE_SPEECH_DEPRECATED_ROUTE", {
8
8
  enumerable: true,
9
- get: function () { return chunkUPY7WWRA_cjs.GENERATE_SPEECH_DEPRECATED_ROUTE; }
9
+ get: function () { return chunkUS6Y5RLR_cjs.GENERATE_SPEECH_DEPRECATED_ROUTE; }
10
10
  });
11
11
  Object.defineProperty(exports, "GENERATE_SPEECH_ROUTE", {
12
12
  enumerable: true,
13
- get: function () { return chunkUPY7WWRA_cjs.GENERATE_SPEECH_ROUTE; }
13
+ get: function () { return chunkUS6Y5RLR_cjs.GENERATE_SPEECH_ROUTE; }
14
14
  });
15
15
  Object.defineProperty(exports, "GET_LISTENER_ROUTE", {
16
16
  enumerable: true,
17
- get: function () { return chunkUPY7WWRA_cjs.GET_LISTENER_ROUTE; }
17
+ get: function () { return chunkUS6Y5RLR_cjs.GET_LISTENER_ROUTE; }
18
18
  });
19
19
  Object.defineProperty(exports, "GET_SPEAKERS_DEPRECATED_ROUTE", {
20
20
  enumerable: true,
21
- get: function () { return chunkUPY7WWRA_cjs.GET_SPEAKERS_DEPRECATED_ROUTE; }
21
+ get: function () { return chunkUS6Y5RLR_cjs.GET_SPEAKERS_DEPRECATED_ROUTE; }
22
22
  });
23
23
  Object.defineProperty(exports, "GET_SPEAKERS_ROUTE", {
24
24
  enumerable: true,
25
- get: function () { return chunkUPY7WWRA_cjs.GET_SPEAKERS_ROUTE; }
25
+ get: function () { return chunkUS6Y5RLR_cjs.GET_SPEAKERS_ROUTE; }
26
26
  });
27
27
  Object.defineProperty(exports, "TRANSCRIBE_SPEECH_DEPRECATED_ROUTE", {
28
28
  enumerable: true,
29
- get: function () { return chunkUPY7WWRA_cjs.TRANSCRIBE_SPEECH_DEPRECATED_ROUTE; }
29
+ get: function () { return chunkUS6Y5RLR_cjs.TRANSCRIBE_SPEECH_DEPRECATED_ROUTE; }
30
30
  });
31
31
  Object.defineProperty(exports, "TRANSCRIBE_SPEECH_ROUTE", {
32
32
  enumerable: true,
33
- get: function () { return chunkUPY7WWRA_cjs.TRANSCRIBE_SPEECH_ROUTE; }
33
+ get: function () { return chunkUS6Y5RLR_cjs.TRANSCRIBE_SPEECH_ROUTE; }
34
34
  });
35
35
  //# sourceMappingURL=voice.cjs.map
36
36
  //# sourceMappingURL=voice.cjs.map
@@ -1,3 +1,3 @@
1
- export { GENERATE_SPEECH_DEPRECATED_ROUTE, GENERATE_SPEECH_ROUTE, GET_LISTENER_ROUTE, GET_SPEAKERS_DEPRECATED_ROUTE, GET_SPEAKERS_ROUTE, TRANSCRIBE_SPEECH_DEPRECATED_ROUTE, TRANSCRIBE_SPEECH_ROUTE } from '../../chunk-ORJBWSYB.js';
1
+ export { GENERATE_SPEECH_DEPRECATED_ROUTE, GENERATE_SPEECH_ROUTE, GET_LISTENER_ROUTE, GET_SPEAKERS_DEPRECATED_ROUTE, GET_SPEAKERS_ROUTE, TRANSCRIBE_SPEECH_DEPRECATED_ROUTE, TRANSCRIBE_SPEECH_ROUTE } from '../../chunk-7N3PD4SV.js';
2
2
  //# sourceMappingURL=voice.js.map
3
3
  //# sourceMappingURL=voice.js.map