scorecard-ai-mcp 1.0.0-alpha.7 → 1.0.0-alpha.9

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 (263) hide show
  1. package/README.md +31 -30
  2. package/compat.d.mts +2 -0
  3. package/compat.d.mts.map +1 -1
  4. package/compat.d.ts +2 -0
  5. package/compat.d.ts.map +1 -1
  6. package/compat.js +7 -4
  7. package/compat.js.map +1 -1
  8. package/compat.mjs +8 -4
  9. package/compat.mjs.map +1 -1
  10. package/dynamic-tools.d.mts +1 -1
  11. package/dynamic-tools.d.mts.map +1 -1
  12. package/dynamic-tools.d.ts +1 -1
  13. package/dynamic-tools.d.ts.map +1 -1
  14. package/dynamic-tools.js +7 -5
  15. package/dynamic-tools.js.map +1 -1
  16. package/dynamic-tools.mjs +7 -5
  17. package/dynamic-tools.mjs.map +1 -1
  18. package/package.json +2 -2
  19. package/server.d.mts +1 -6
  20. package/server.d.mts.map +1 -1
  21. package/server.d.ts +1 -6
  22. package/server.d.ts.map +1 -1
  23. package/server.js +4 -12
  24. package/server.js.map +1 -1
  25. package/server.mjs +4 -12
  26. package/server.mjs.map +1 -1
  27. package/src/compat.ts +13 -4
  28. package/src/dynamic-tools.ts +15 -8
  29. package/src/server.ts +5 -12
  30. package/src/tools/index.ts +3 -18
  31. package/src/tools/projects/create-projects.ts +7 -2
  32. package/src/tools/projects/list-projects.ts +7 -2
  33. package/src/tools/records/create-records.ts +11 -6
  34. package/src/tools/runs/create-runs.ts +11 -6
  35. package/src/tools/scores/upsert-scores.ts +7 -2
  36. package/src/tools/system-configs/create-system-configs.ts +7 -2
  37. package/src/tools/system-configs/get-system-configs.ts +7 -5
  38. package/src/tools/system-configs/list-system-configs.ts +7 -2
  39. package/src/tools/systems/create-systems.ts +7 -2
  40. package/src/tools/systems/delete-systems.ts +7 -2
  41. package/src/tools/systems/get-systems.ts +7 -2
  42. package/src/tools/systems/list-systems.ts +7 -2
  43. package/src/tools/systems/update-systems.ts +7 -2
  44. package/src/tools/testcases/create-testcases.ts +7 -4
  45. package/src/tools/testcases/delete-testcases.ts +7 -2
  46. package/src/tools/testcases/get-testcases.ts +7 -2
  47. package/src/tools/testcases/list-testcases.ts +7 -2
  48. package/src/tools/testcases/update-testcases.ts +7 -2
  49. package/src/tools/testsets/create-testsets.ts +14 -9
  50. package/src/tools/testsets/delete-testsets.ts +7 -2
  51. package/src/tools/testsets/get-testsets.ts +7 -2
  52. package/src/tools/testsets/list-testsets.ts +7 -2
  53. package/src/tools/testsets/update-testsets.ts +14 -9
  54. package/src/tools/types.ts +104 -0
  55. package/tools/index.d.mts +2 -13
  56. package/tools/index.d.mts.map +1 -1
  57. package/tools/index.d.ts +2 -13
  58. package/tools/index.d.ts.map +1 -1
  59. package/tools/index.js +0 -2
  60. package/tools/index.js.map +1 -1
  61. package/tools/index.mjs +0 -2
  62. package/tools/index.mjs.map +1 -1
  63. package/tools/projects/create-projects.d.mts +2 -2
  64. package/tools/projects/create-projects.d.mts.map +1 -1
  65. package/tools/projects/create-projects.d.ts +2 -2
  66. package/tools/projects/create-projects.d.ts.map +1 -1
  67. package/tools/projects/create-projects.js +6 -2
  68. package/tools/projects/create-projects.js.map +1 -1
  69. package/tools/projects/create-projects.mjs +6 -2
  70. package/tools/projects/create-projects.mjs.map +1 -1
  71. package/tools/projects/list-projects.d.mts +2 -2
  72. package/tools/projects/list-projects.d.mts.map +1 -1
  73. package/tools/projects/list-projects.d.ts +2 -2
  74. package/tools/projects/list-projects.d.ts.map +1 -1
  75. package/tools/projects/list-projects.js +6 -2
  76. package/tools/projects/list-projects.js.map +1 -1
  77. package/tools/projects/list-projects.mjs +6 -2
  78. package/tools/projects/list-projects.mjs.map +1 -1
  79. package/tools/records/create-records.d.mts +2 -2
  80. package/tools/records/create-records.d.mts.map +1 -1
  81. package/tools/records/create-records.d.ts +2 -2
  82. package/tools/records/create-records.d.ts.map +1 -1
  83. package/tools/records/create-records.js +10 -6
  84. package/tools/records/create-records.js.map +1 -1
  85. package/tools/records/create-records.mjs +10 -6
  86. package/tools/records/create-records.mjs.map +1 -1
  87. package/tools/runs/create-runs.d.mts +2 -2
  88. package/tools/runs/create-runs.d.mts.map +1 -1
  89. package/tools/runs/create-runs.d.ts +2 -2
  90. package/tools/runs/create-runs.d.ts.map +1 -1
  91. package/tools/runs/create-runs.js +10 -6
  92. package/tools/runs/create-runs.js.map +1 -1
  93. package/tools/runs/create-runs.mjs +10 -6
  94. package/tools/runs/create-runs.mjs.map +1 -1
  95. package/tools/scores/upsert-scores.d.mts +2 -2
  96. package/tools/scores/upsert-scores.d.mts.map +1 -1
  97. package/tools/scores/upsert-scores.d.ts +2 -2
  98. package/tools/scores/upsert-scores.d.ts.map +1 -1
  99. package/tools/scores/upsert-scores.js +6 -2
  100. package/tools/scores/upsert-scores.js.map +1 -1
  101. package/tools/scores/upsert-scores.mjs +6 -2
  102. package/tools/scores/upsert-scores.mjs.map +1 -1
  103. package/tools/system-configs/create-system-configs.d.mts +2 -2
  104. package/tools/system-configs/create-system-configs.d.mts.map +1 -1
  105. package/tools/system-configs/create-system-configs.d.ts +2 -2
  106. package/tools/system-configs/create-system-configs.d.ts.map +1 -1
  107. package/tools/system-configs/create-system-configs.js +6 -2
  108. package/tools/system-configs/create-system-configs.js.map +1 -1
  109. package/tools/system-configs/create-system-configs.mjs +6 -2
  110. package/tools/system-configs/create-system-configs.mjs.map +1 -1
  111. package/tools/system-configs/get-system-configs.d.mts +2 -2
  112. package/tools/system-configs/get-system-configs.d.mts.map +1 -1
  113. package/tools/system-configs/get-system-configs.d.ts +2 -2
  114. package/tools/system-configs/get-system-configs.d.ts.map +1 -1
  115. package/tools/system-configs/get-system-configs.js +6 -5
  116. package/tools/system-configs/get-system-configs.js.map +1 -1
  117. package/tools/system-configs/get-system-configs.mjs +6 -5
  118. package/tools/system-configs/get-system-configs.mjs.map +1 -1
  119. package/tools/system-configs/list-system-configs.d.mts +2 -2
  120. package/tools/system-configs/list-system-configs.d.mts.map +1 -1
  121. package/tools/system-configs/list-system-configs.d.ts +2 -2
  122. package/tools/system-configs/list-system-configs.d.ts.map +1 -1
  123. package/tools/system-configs/list-system-configs.js +6 -2
  124. package/tools/system-configs/list-system-configs.js.map +1 -1
  125. package/tools/system-configs/list-system-configs.mjs +6 -2
  126. package/tools/system-configs/list-system-configs.mjs.map +1 -1
  127. package/tools/systems/create-systems.d.mts +2 -2
  128. package/tools/systems/create-systems.d.mts.map +1 -1
  129. package/tools/systems/create-systems.d.ts +2 -2
  130. package/tools/systems/create-systems.d.ts.map +1 -1
  131. package/tools/systems/create-systems.js +6 -2
  132. package/tools/systems/create-systems.js.map +1 -1
  133. package/tools/systems/create-systems.mjs +6 -2
  134. package/tools/systems/create-systems.mjs.map +1 -1
  135. package/tools/systems/delete-systems.d.mts +2 -2
  136. package/tools/systems/delete-systems.d.mts.map +1 -1
  137. package/tools/systems/delete-systems.d.ts +2 -2
  138. package/tools/systems/delete-systems.d.ts.map +1 -1
  139. package/tools/systems/delete-systems.js +6 -2
  140. package/tools/systems/delete-systems.js.map +1 -1
  141. package/tools/systems/delete-systems.mjs +6 -2
  142. package/tools/systems/delete-systems.mjs.map +1 -1
  143. package/tools/systems/get-systems.d.mts +2 -2
  144. package/tools/systems/get-systems.d.mts.map +1 -1
  145. package/tools/systems/get-systems.d.ts +2 -2
  146. package/tools/systems/get-systems.d.ts.map +1 -1
  147. package/tools/systems/get-systems.js +6 -2
  148. package/tools/systems/get-systems.js.map +1 -1
  149. package/tools/systems/get-systems.mjs +6 -2
  150. package/tools/systems/get-systems.mjs.map +1 -1
  151. package/tools/systems/list-systems.d.mts +2 -2
  152. package/tools/systems/list-systems.d.mts.map +1 -1
  153. package/tools/systems/list-systems.d.ts +2 -2
  154. package/tools/systems/list-systems.d.ts.map +1 -1
  155. package/tools/systems/list-systems.js +6 -2
  156. package/tools/systems/list-systems.js.map +1 -1
  157. package/tools/systems/list-systems.mjs +6 -2
  158. package/tools/systems/list-systems.mjs.map +1 -1
  159. package/tools/systems/update-systems.d.mts +2 -2
  160. package/tools/systems/update-systems.d.mts.map +1 -1
  161. package/tools/systems/update-systems.d.ts +2 -2
  162. package/tools/systems/update-systems.d.ts.map +1 -1
  163. package/tools/systems/update-systems.js +6 -2
  164. package/tools/systems/update-systems.js.map +1 -1
  165. package/tools/systems/update-systems.mjs +6 -2
  166. package/tools/systems/update-systems.mjs.map +1 -1
  167. package/tools/testcases/create-testcases.d.mts +2 -2
  168. package/tools/testcases/create-testcases.d.mts.map +1 -1
  169. package/tools/testcases/create-testcases.d.ts +2 -2
  170. package/tools/testcases/create-testcases.d.ts.map +1 -1
  171. package/tools/testcases/create-testcases.js +6 -3
  172. package/tools/testcases/create-testcases.js.map +1 -1
  173. package/tools/testcases/create-testcases.mjs +6 -3
  174. package/tools/testcases/create-testcases.mjs.map +1 -1
  175. package/tools/testcases/delete-testcases.d.mts +2 -2
  176. package/tools/testcases/delete-testcases.d.mts.map +1 -1
  177. package/tools/testcases/delete-testcases.d.ts +2 -2
  178. package/tools/testcases/delete-testcases.d.ts.map +1 -1
  179. package/tools/testcases/delete-testcases.js +6 -2
  180. package/tools/testcases/delete-testcases.js.map +1 -1
  181. package/tools/testcases/delete-testcases.mjs +6 -2
  182. package/tools/testcases/delete-testcases.mjs.map +1 -1
  183. package/tools/testcases/get-testcases.d.mts +2 -2
  184. package/tools/testcases/get-testcases.d.mts.map +1 -1
  185. package/tools/testcases/get-testcases.d.ts +2 -2
  186. package/tools/testcases/get-testcases.d.ts.map +1 -1
  187. package/tools/testcases/get-testcases.js +6 -2
  188. package/tools/testcases/get-testcases.js.map +1 -1
  189. package/tools/testcases/get-testcases.mjs +6 -2
  190. package/tools/testcases/get-testcases.mjs.map +1 -1
  191. package/tools/testcases/list-testcases.d.mts +2 -2
  192. package/tools/testcases/list-testcases.d.mts.map +1 -1
  193. package/tools/testcases/list-testcases.d.ts +2 -2
  194. package/tools/testcases/list-testcases.d.ts.map +1 -1
  195. package/tools/testcases/list-testcases.js +6 -2
  196. package/tools/testcases/list-testcases.js.map +1 -1
  197. package/tools/testcases/list-testcases.mjs +6 -2
  198. package/tools/testcases/list-testcases.mjs.map +1 -1
  199. package/tools/testcases/update-testcases.d.mts +2 -2
  200. package/tools/testcases/update-testcases.d.mts.map +1 -1
  201. package/tools/testcases/update-testcases.d.ts +2 -2
  202. package/tools/testcases/update-testcases.d.ts.map +1 -1
  203. package/tools/testcases/update-testcases.js +6 -2
  204. package/tools/testcases/update-testcases.js.map +1 -1
  205. package/tools/testcases/update-testcases.mjs +6 -2
  206. package/tools/testcases/update-testcases.mjs.map +1 -1
  207. package/tools/testsets/create-testsets.d.mts +2 -2
  208. package/tools/testsets/create-testsets.d.mts.map +1 -1
  209. package/tools/testsets/create-testsets.d.ts +2 -2
  210. package/tools/testsets/create-testsets.d.ts.map +1 -1
  211. package/tools/testsets/create-testsets.js +13 -9
  212. package/tools/testsets/create-testsets.js.map +1 -1
  213. package/tools/testsets/create-testsets.mjs +13 -9
  214. package/tools/testsets/create-testsets.mjs.map +1 -1
  215. package/tools/testsets/delete-testsets.d.mts +2 -2
  216. package/tools/testsets/delete-testsets.d.mts.map +1 -1
  217. package/tools/testsets/delete-testsets.d.ts +2 -2
  218. package/tools/testsets/delete-testsets.d.ts.map +1 -1
  219. package/tools/testsets/delete-testsets.js +6 -2
  220. package/tools/testsets/delete-testsets.js.map +1 -1
  221. package/tools/testsets/delete-testsets.mjs +6 -2
  222. package/tools/testsets/delete-testsets.mjs.map +1 -1
  223. package/tools/testsets/get-testsets.d.mts +2 -2
  224. package/tools/testsets/get-testsets.d.mts.map +1 -1
  225. package/tools/testsets/get-testsets.d.ts +2 -2
  226. package/tools/testsets/get-testsets.d.ts.map +1 -1
  227. package/tools/testsets/get-testsets.js +6 -2
  228. package/tools/testsets/get-testsets.js.map +1 -1
  229. package/tools/testsets/get-testsets.mjs +6 -2
  230. package/tools/testsets/get-testsets.mjs.map +1 -1
  231. package/tools/testsets/list-testsets.d.mts +2 -2
  232. package/tools/testsets/list-testsets.d.mts.map +1 -1
  233. package/tools/testsets/list-testsets.d.ts +2 -2
  234. package/tools/testsets/list-testsets.d.ts.map +1 -1
  235. package/tools/testsets/list-testsets.js +6 -2
  236. package/tools/testsets/list-testsets.js.map +1 -1
  237. package/tools/testsets/list-testsets.mjs +6 -2
  238. package/tools/testsets/list-testsets.mjs.map +1 -1
  239. package/tools/testsets/update-testsets.d.mts +2 -2
  240. package/tools/testsets/update-testsets.d.mts.map +1 -1
  241. package/tools/testsets/update-testsets.d.ts +2 -2
  242. package/tools/testsets/update-testsets.d.ts.map +1 -1
  243. package/tools/testsets/update-testsets.js +13 -9
  244. package/tools/testsets/update-testsets.js.map +1 -1
  245. package/tools/testsets/update-testsets.mjs +13 -9
  246. package/tools/testsets/update-testsets.mjs.map +1 -1
  247. package/tools/types.d.mts +51 -0
  248. package/tools/types.d.mts.map +1 -0
  249. package/tools/types.d.ts +51 -0
  250. package/tools/types.d.ts.map +1 -0
  251. package/tools/types.js +46 -0
  252. package/tools/types.js.map +1 -0
  253. package/tools/types.mjs +42 -0
  254. package/tools/types.mjs.map +1 -0
  255. package/src/tools/runs/update-runs.ts +0 -44
  256. package/tools/runs/update-runs.d.mts +0 -32
  257. package/tools/runs/update-runs.d.mts.map +0 -1
  258. package/tools/runs/update-runs.d.ts +0 -32
  259. package/tools/runs/update-runs.d.ts.map +0 -1
  260. package/tools/runs/update-runs.js +0 -41
  261. package/tools/runs/update-runs.js.map +0 -1
  262. package/tools/runs/update-runs.mjs +0 -37
  263. package/tools/runs/update-runs.mjs.map +0 -1
@@ -1,8 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
2
3
  export const metadata = {
3
4
  resource: 'testsets',
4
5
  operation: 'write',
5
6
  tags: [],
7
+ httpMethod: 'patch',
8
+ httpPath: '/testsets/{testsetId}',
9
+ operationId: 'updateTestset',
6
10
  };
7
11
  export const tool = {
8
12
  name: 'update_testsets',
@@ -19,31 +23,31 @@ export const tool = {
19
23
  },
20
24
  fieldMapping: {
21
25
  type: 'object',
22
- description: 'Maps top-level keys of the Testcase schema to their roles (input/label). Unmapped fields are treated as metadata.',
26
+ description: 'Maps top-level keys of the Testcase schema to their roles (input/expected output). Unmapped fields are treated as metadata.',
23
27
  properties: {
24
- inputs: {
28
+ expected: {
25
29
  type: 'array',
26
- description: 'Fields that represent inputs to the AI system.',
30
+ description: 'Fields that represent expected outputs.',
27
31
  items: {
28
32
  type: 'string',
29
33
  },
30
34
  },
31
- labels: {
35
+ inputs: {
32
36
  type: 'array',
33
- description: 'Fields that represent expected outputs/labels.',
37
+ description: 'Fields that represent inputs to the AI system.',
34
38
  items: {
35
39
  type: 'string',
36
40
  },
37
41
  },
38
42
  metadata: {
39
43
  type: 'array',
40
- description: 'Fields that are not inputs or labels.',
44
+ description: 'Fields that are not inputs or expected outputs.',
41
45
  items: {
42
46
  type: 'string',
43
47
  },
44
48
  },
45
49
  },
46
- required: ['inputs', 'labels', 'metadata'],
50
+ required: ['expected', 'inputs', 'metadata'],
47
51
  },
48
52
  jsonSchema: {
49
53
  type: 'object',
@@ -56,9 +60,9 @@ export const tool = {
56
60
  },
57
61
  },
58
62
  };
59
- export const handler = (client, args) => {
63
+ export const handler = async (client, args) => {
60
64
  const { testsetId, ...body } = args;
61
- return client.testsets.update(testsetId, body);
65
+ return asTextContentResult(await client.testsets.update(testsetId, body));
62
66
  };
63
67
  export default { metadata, tool, handler };
64
68
  //# sourceMappingURL=update-testsets.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,0kBAA0kB;IAC5kB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mHAAmH;gBACrH,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,gDAAgD;wBAC7D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,gDAAgD;wBAC7D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,uCAAuC;wBACpD,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC;aAC3C;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"update-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,0kBAA0kB;IAC5kB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,6HAA6H;gBAC/H,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,yCAAyC;wBACtD,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,gDAAgD;wBAC7D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,iDAAiD;wBAC9D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC;aAC7C;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,51 @@
1
+ import Scorecard from 'scorecard-ai';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ type TextContentBlock = {
4
+ type: 'text';
5
+ text: string;
6
+ };
7
+ type ImageContentBlock = {
8
+ type: 'image';
9
+ data: string;
10
+ mimeType: string;
11
+ };
12
+ type AudioContentBlock = {
13
+ type: 'audio';
14
+ data: string;
15
+ mimeType: string;
16
+ };
17
+ type ResourceContentBlock = {
18
+ type: 'resource';
19
+ resource: {
20
+ uri: string;
21
+ mimeType: string;
22
+ text: string;
23
+ } | {
24
+ uri: string;
25
+ mimeType: string;
26
+ blob: string;
27
+ };
28
+ };
29
+ export type ContentBlock = TextContentBlock | ImageContentBlock | AudioContentBlock | ResourceContentBlock;
30
+ export type ToolCallResult = {
31
+ content: ContentBlock[];
32
+ isError?: boolean;
33
+ };
34
+ export type HandlerFunction = (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
35
+ export declare function asTextContentResult(result: Object): ToolCallResult;
36
+ export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
37
+ export type Metadata = {
38
+ resource: string;
39
+ operation: 'read' | 'write';
40
+ tags: string[];
41
+ httpMethod?: string;
42
+ httpPath?: string;
43
+ operationId?: string;
44
+ };
45
+ export type Endpoint = {
46
+ metadata: Metadata;
47
+ tool: Tool;
48
+ handler: HandlerFunction;
49
+ };
50
+ export {};
51
+ //# sourceMappingURL=types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACP,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAE3G,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAC5B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACtC,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CASlE;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CA2BvF;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,51 @@
1
+ import Scorecard from 'scorecard-ai';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ type TextContentBlock = {
4
+ type: 'text';
5
+ text: string;
6
+ };
7
+ type ImageContentBlock = {
8
+ type: 'image';
9
+ data: string;
10
+ mimeType: string;
11
+ };
12
+ type AudioContentBlock = {
13
+ type: 'audio';
14
+ data: string;
15
+ mimeType: string;
16
+ };
17
+ type ResourceContentBlock = {
18
+ type: 'resource';
19
+ resource: {
20
+ uri: string;
21
+ mimeType: string;
22
+ text: string;
23
+ } | {
24
+ uri: string;
25
+ mimeType: string;
26
+ blob: string;
27
+ };
28
+ };
29
+ export type ContentBlock = TextContentBlock | ImageContentBlock | AudioContentBlock | ResourceContentBlock;
30
+ export type ToolCallResult = {
31
+ content: ContentBlock[];
32
+ isError?: boolean;
33
+ };
34
+ export type HandlerFunction = (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
35
+ export declare function asTextContentResult(result: Object): ToolCallResult;
36
+ export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
37
+ export type Metadata = {
38
+ resource: string;
39
+ operation: 'read' | 'write';
40
+ tags: string[];
41
+ httpMethod?: string;
42
+ httpPath?: string;
43
+ operationId?: string;
44
+ };
45
+ export type Endpoint = {
46
+ metadata: Metadata;
47
+ tool: Tool;
48
+ handler: HandlerFunction;
49
+ };
50
+ export {};
51
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACP,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAE3G,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAC5B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACtC,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CASlE;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CA2BvF;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
package/tools/types.js ADDED
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.asTextContentResult = asTextContentResult;
5
+ exports.asBinaryContentResult = asBinaryContentResult;
6
+ function asTextContentResult(result) {
7
+ return {
8
+ content: [
9
+ {
10
+ type: 'text',
11
+ text: JSON.stringify(result, null, 2),
12
+ },
13
+ ],
14
+ };
15
+ }
16
+ async function asBinaryContentResult(response) {
17
+ const blob = await response.blob();
18
+ const mimeType = blob.type;
19
+ const data = Buffer.from(await blob.arrayBuffer()).toString('base64');
20
+ if (mimeType.startsWith('image/')) {
21
+ return {
22
+ content: [{ type: 'image', mimeType, data }],
23
+ };
24
+ }
25
+ else if (mimeType.startsWith('audio/')) {
26
+ return {
27
+ content: [{ type: 'audio', mimeType, data }],
28
+ };
29
+ }
30
+ else {
31
+ return {
32
+ content: [
33
+ {
34
+ type: 'resource',
35
+ resource: {
36
+ // We must give a URI, even though this isn't actually an MCP resource.
37
+ uri: 'resource://tool-response',
38
+ mimeType,
39
+ blob: data,
40
+ },
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ }
46
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAiDtF,kDASC;AAED,sDA2BC;AAtCD,SAAgB,mBAAmB,CAAC,MAAc;IAChD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACtC;SACF;KACF,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,QAAkB;IAC5D,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE;wBACR,uEAAuE;wBACvE,GAAG,EAAE,0BAA0B;wBAC/B,QAAQ;wBACR,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,42 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export function asTextContentResult(result) {
3
+ return {
4
+ content: [
5
+ {
6
+ type: 'text',
7
+ text: JSON.stringify(result, null, 2),
8
+ },
9
+ ],
10
+ };
11
+ }
12
+ export async function asBinaryContentResult(response) {
13
+ const blob = await response.blob();
14
+ const mimeType = blob.type;
15
+ const data = Buffer.from(await blob.arrayBuffer()).toString('base64');
16
+ if (mimeType.startsWith('image/')) {
17
+ return {
18
+ content: [{ type: 'image', mimeType, data }],
19
+ };
20
+ }
21
+ else if (mimeType.startsWith('audio/')) {
22
+ return {
23
+ content: [{ type: 'audio', mimeType, data }],
24
+ };
25
+ }
26
+ else {
27
+ return {
28
+ content: [
29
+ {
30
+ type: 'resource',
31
+ resource: {
32
+ // We must give a URI, even though this isn't actually an MCP resource.
33
+ uri: 'resource://tool-response',
34
+ mimeType,
35
+ blob: data,
36
+ },
37
+ },
38
+ ],
39
+ };
40
+ }
41
+ }
42
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAiDtF,MAAM,UAAU,mBAAmB,CAAC,MAAc;IAChD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACtC;SACF;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,QAAkB;IAC5D,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE;wBACR,uEAAuE;wBACvE,GAAG,EAAE,0BAA0B;wBAC/B,QAAQ;wBACR,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,44 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
- import type { Metadata } from '../';
5
- import Scorecard from 'scorecard-ai';
6
-
7
- export const metadata: Metadata = {
8
- resource: 'runs',
9
- operation: 'write',
10
- tags: [],
11
- };
12
-
13
- export const tool: Tool = {
14
- name: 'update_runs',
15
- description: 'Update the status of a Run.',
16
- inputSchema: {
17
- type: 'object',
18
- properties: {
19
- runId: {
20
- type: 'string',
21
- },
22
- status: {
23
- type: 'string',
24
- description: 'The status of the Run.',
25
- enum: [
26
- 'pending',
27
- 'awaiting_execution',
28
- 'running_execution',
29
- 'awaiting_scoring',
30
- 'running_scoring',
31
- 'awaiting_human_scoring',
32
- 'completed',
33
- ],
34
- },
35
- },
36
- },
37
- };
38
-
39
- export const handler = (client: Scorecard, args: Record<string, unknown> | undefined) => {
40
- const { runId, ...body } = args as any;
41
- return client.runs.update(runId, body);
42
- };
43
-
44
- export default { metadata, tool, handler };
@@ -1,32 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.mjs";
3
- import Scorecard from 'scorecard-ai';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.RunUpdateResponse>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- };
19
- description?: string | undefined;
20
- annotations?: {
21
- [x: string]: unknown;
22
- title?: string | undefined;
23
- readOnlyHint?: boolean | undefined;
24
- destructiveHint?: boolean | undefined;
25
- idempotentHint?: boolean | undefined;
26
- openWorldHint?: boolean | undefined;
27
- } | undefined;
28
- };
29
- handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.RunUpdateResponse>;
30
- };
31
- export default _default;
32
- //# sourceMappingURL=update-runs.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-runs.d.mts","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,wEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
@@ -1,32 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.js";
3
- import Scorecard from 'scorecard-ai';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.RunUpdateResponse>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- };
19
- description?: string | undefined;
20
- annotations?: {
21
- [x: string]: unknown;
22
- title?: string | undefined;
23
- readOnlyHint?: boolean | undefined;
24
- destructiveHint?: boolean | undefined;
25
- idempotentHint?: boolean | undefined;
26
- openWorldHint?: boolean | undefined;
27
- } | undefined;
28
- };
29
- handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.RunUpdateResponse>;
30
- };
31
- export default _default;
32
- //# sourceMappingURL=update-runs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-runs.d.ts","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,wEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.handler = exports.tool = exports.metadata = void 0;
5
- exports.metadata = {
6
- resource: 'runs',
7
- operation: 'write',
8
- tags: [],
9
- };
10
- exports.tool = {
11
- name: 'update_runs',
12
- description: 'Update the status of a Run.',
13
- inputSchema: {
14
- type: 'object',
15
- properties: {
16
- runId: {
17
- type: 'string',
18
- },
19
- status: {
20
- type: 'string',
21
- description: 'The status of the Run.',
22
- enum: [
23
- 'pending',
24
- 'awaiting_execution',
25
- 'running_execution',
26
- 'awaiting_scoring',
27
- 'running_scoring',
28
- 'awaiting_human_scoring',
29
- 'completed',
30
- ],
31
- },
32
- },
33
- },
34
- };
35
- const handler = (client, args) => {
36
- const { runId, ...body } = args;
37
- return client.runs.update(runId, body);
38
- };
39
- exports.handler = handler;
40
- exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
41
- //# sourceMappingURL=update-runs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-runs.js","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE;oBACJ,SAAS;oBACT,oBAAoB;oBACpB,mBAAmB;oBACnB,kBAAkB;oBAClB,iBAAiB;oBACjB,wBAAwB;oBACxB,WAAW;iBACZ;aACF;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,37 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export const metadata = {
3
- resource: 'runs',
4
- operation: 'write',
5
- tags: [],
6
- };
7
- export const tool = {
8
- name: 'update_runs',
9
- description: 'Update the status of a Run.',
10
- inputSchema: {
11
- type: 'object',
12
- properties: {
13
- runId: {
14
- type: 'string',
15
- },
16
- status: {
17
- type: 'string',
18
- description: 'The status of the Run.',
19
- enum: [
20
- 'pending',
21
- 'awaiting_execution',
22
- 'running_execution',
23
- 'awaiting_scoring',
24
- 'running_scoring',
25
- 'awaiting_human_scoring',
26
- 'completed',
27
- ],
28
- },
29
- },
30
- },
31
- };
32
- export const handler = (client, args) => {
33
- const { runId, ...body } = args;
34
- return client.runs.update(runId, body);
35
- };
36
- export default { metadata, tool, handler };
37
- //# sourceMappingURL=update-runs.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-runs.mjs","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE;oBACJ,SAAS;oBACT,oBAAoB;oBACpB,mBAAmB;oBACnB,kBAAkB;oBAClB,iBAAiB;oBACjB,wBAAwB;oBACxB,WAAW;iBACZ;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}