@lightsage/mcp 0.3.0 → 0.3.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 (118) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +198 -81
  3. package/bin/mcp-server.js.map +32 -29
  4. package/esm/funcs/evalsRun.d.ts +3 -3
  5. package/esm/funcs/evalsRun.js +3 -3
  6. package/esm/funcs/evalsV2EvalsCreate.d.ts +1 -1
  7. package/esm/funcs/evalsV2EvalsCreate.js +1 -1
  8. package/esm/funcs/evalsV2EvalsList.d.ts +1 -1
  9. package/esm/funcs/evalsV2EvalsList.js +1 -1
  10. package/esm/funcs/evalsV2EvalsRetrieve.d.ts +1 -1
  11. package/esm/funcs/evalsV2EvalsRetrieve.js +1 -1
  12. package/esm/funcs/evalsV2EvalsUpdate.d.ts +1 -1
  13. package/esm/funcs/evalsV2EvalsUpdate.js +1 -1
  14. package/esm/landing-page.js +1 -1
  15. package/esm/lib/config.d.ts +3 -3
  16. package/esm/lib/config.js +3 -3
  17. package/esm/lib/config.js.map +1 -1
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/server.js +1 -1
  20. package/esm/mcp-server/tools/evalsRun.js +3 -3
  21. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  22. package/esm/mcp-server/tools/evalsV2EvalsCreate.js +1 -1
  23. package/esm/mcp-server/tools/evalsV2EvalsCreate.js.map +1 -1
  24. package/esm/mcp-server/tools/evalsV2EvalsList.js +1 -1
  25. package/esm/mcp-server/tools/evalsV2EvalsList.js.map +1 -1
  26. package/esm/mcp-server/tools/evalsV2EvalsRetrieve.js +1 -1
  27. package/esm/mcp-server/tools/evalsV2EvalsRetrieve.js.map +1 -1
  28. package/esm/mcp-server/tools/evalsV2EvalsUpdate.js +1 -1
  29. package/esm/mcp-server/tools/evalsV2EvalsUpdate.js.map +1 -1
  30. package/esm/models/createv2evalrequest.d.ts +16 -20
  31. package/esm/models/createv2evalrequest.d.ts.map +1 -1
  32. package/esm/models/createv2evalrequest.js +25 -17
  33. package/esm/models/createv2evalrequest.js.map +1 -1
  34. package/esm/models/createv2evalrunrequest.d.ts +19 -4
  35. package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
  36. package/esm/models/createv2evalrunrequest.js +31 -6
  37. package/esm/models/createv2evalrunrequest.js.map +1 -1
  38. package/esm/models/updatev2evalrequest.d.ts +16 -20
  39. package/esm/models/updatev2evalrequest.d.ts.map +1 -1
  40. package/esm/models/updatev2evalrequest.js +25 -17
  41. package/esm/models/updatev2evalrequest.js.map +1 -1
  42. package/esm/models/v2eval.d.ts +16 -21
  43. package/esm/models/v2eval.d.ts.map +1 -1
  44. package/esm/models/v2eval.js +25 -18
  45. package/esm/models/v2eval.js.map +1 -1
  46. package/esm/models/v2evalresult.d.ts +4 -2
  47. package/esm/models/v2evalresult.d.ts.map +1 -1
  48. package/esm/models/v2evalresult.js +3 -1
  49. package/esm/models/v2evalresult.js.map +1 -1
  50. package/esm/models/v2evalresultsummary.d.ts +4 -1
  51. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  52. package/esm/models/v2evalresultsummary.js +4 -1
  53. package/esm/models/v2evalresultsummary.js.map +1 -1
  54. package/esm/models/v2evalrun.d.ts +5 -2
  55. package/esm/models/v2evalrun.d.ts.map +1 -1
  56. package/esm/models/v2evalrun.js +5 -2
  57. package/esm/models/v2evalrun.js.map +1 -1
  58. package/esm/models/v2evalrunanalysis.d.ts +3 -1
  59. package/esm/models/v2evalrunanalysis.d.ts.map +1 -1
  60. package/esm/models/v2evalrunanalysis.js +3 -1
  61. package/esm/models/v2evalrunanalysis.js.map +1 -1
  62. package/esm/models/v2evalruntraceevent.d.ts +3 -2
  63. package/esm/models/v2evalruntraceevent.d.ts.map +1 -1
  64. package/esm/models/v2evalruntraceevent.js +3 -2
  65. package/esm/models/v2evalruntraceevent.js.map +1 -1
  66. package/esm/models/v2inlineclireference.d.ts +6 -0
  67. package/esm/models/v2inlineclireference.d.ts.map +1 -0
  68. package/esm/models/v2inlineclireference.js +10 -0
  69. package/esm/models/v2inlineclireference.js.map +1 -0
  70. package/esm/models/v2inlinemcpdefinition.d.ts +28 -0
  71. package/esm/models/v2inlinemcpdefinition.d.ts.map +1 -0
  72. package/esm/models/v2inlinemcpdefinition.js +25 -0
  73. package/esm/models/v2inlinemcpdefinition.js.map +1 -0
  74. package/esm/models/v2savedclireference.d.ts +6 -0
  75. package/esm/models/v2savedclireference.d.ts.map +1 -0
  76. package/esm/models/v2savedclireference.js +10 -0
  77. package/esm/models/v2savedclireference.js.map +1 -0
  78. package/esm/models/v2savedmcpreference.d.ts +6 -0
  79. package/esm/models/v2savedmcpreference.d.ts.map +1 -0
  80. package/esm/models/v2savedmcpreference.js +10 -0
  81. package/esm/models/v2savedmcpreference.js.map +1 -0
  82. package/esm/tool-names.js +5 -5
  83. package/esm/tool-names.js.map +1 -1
  84. package/package.json +1 -1
  85. package/src/funcs/evalsRun.ts +3 -3
  86. package/src/funcs/evalsV2EvalsCreate.ts +1 -1
  87. package/src/funcs/evalsV2EvalsList.ts +1 -1
  88. package/src/funcs/evalsV2EvalsRetrieve.ts +1 -1
  89. package/src/funcs/evalsV2EvalsUpdate.ts +1 -1
  90. package/src/landing-page.ts +1 -1
  91. package/src/lib/config.ts +3 -3
  92. package/src/mcp-server/mcp-server.ts +1 -1
  93. package/src/mcp-server/server.ts +1 -1
  94. package/src/mcp-server/tools/evalsRun.ts +3 -3
  95. package/src/mcp-server/tools/evalsV2EvalsCreate.ts +1 -1
  96. package/src/mcp-server/tools/evalsV2EvalsList.ts +1 -1
  97. package/src/mcp-server/tools/evalsV2EvalsRetrieve.ts +1 -1
  98. package/src/mcp-server/tools/evalsV2EvalsUpdate.ts +1 -1
  99. package/src/models/createv2evalrequest.ts +71 -27
  100. package/src/models/createv2evalrunrequest.ts +85 -13
  101. package/src/models/updatev2evalrequest.ts +60 -28
  102. package/src/models/v2eval.ts +49 -26
  103. package/src/models/v2evalresult.ts +8 -4
  104. package/src/models/v2evalresultsummary.ts +9 -3
  105. package/src/models/v2evalrun.ts +18 -6
  106. package/src/models/v2evalrunanalysis.ts +11 -3
  107. package/src/models/v2evalruntraceevent.ts +6 -4
  108. package/src/models/v2inlineclireference.ts +15 -0
  109. package/src/models/v2inlinemcpdefinition.ts +51 -0
  110. package/src/models/v2savedclireference.ts +13 -0
  111. package/src/models/v2savedmcpreference.ts +13 -0
  112. package/src/tool-names.ts +5 -5
  113. package/test/simulations.test.js +162 -0
  114. package/esm/models/v2evaljudge.d.ts +0 -6
  115. package/esm/models/v2evaljudge.d.ts.map +0 -1
  116. package/esm/models/v2evaljudge.js +0 -9
  117. package/esm/models/v2evaljudge.js.map +0 -1
  118. package/src/models/v2evaljudge.ts +0 -12
package/esm/tool-names.js CHANGED
@@ -110,19 +110,19 @@ export const toolNames = [
110
110
  },
111
111
  {
112
112
  "name": "evals-v2-evals-list",
113
- "description": "List Evals\n\nReturns all active evals including workflow, MCP, CLI, and skill evals owned by the organization."
113
+ "description": "List Evals\n\nReturns all active eval definitions owned by the organization."
114
114
  },
115
115
  {
116
116
  "name": "evals-v2-evals-create",
117
- "description": "Create Eval\n\nCreates an eval with a task prompt, subject, and plain-text success criterion in `judge`. The eval can then be run through eval runs."
117
+ "description": "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, repeat count, and tags are saved with the eval. Creating the eval does not start a run and does not accept secret environment values."
118
118
  },
119
119
  {
120
120
  "name": "evals-v2-evals-retrieve",
121
- "description": "Retrieve Eval\n\nReturns one eval and its judge configuration."
121
+ "description": "Retrieve Eval\n\nReturns one reusable eval simulation definition."
122
122
  },
123
123
  {
124
124
  "name": "evals-v2-evals-update",
125
- "description": "Update Eval\n\nUpdates an eval's task prompt, subject, plain-text `judge`, or name. Omitted fields remain unchanged."
125
+ "description": "Update Eval\n\nUpdates a reusable eval simulation definition. Omitted fields remain unchanged. Empty `agent`, `clis`, `mcps`, or `tags` arrays clear those collections, and `persona: null` clears the saved persona."
126
126
  },
127
127
  {
128
128
  "name": "evals-v2-evals-delete",
@@ -150,7 +150,7 @@ export const toolNames = [
150
150
  },
151
151
  {
152
152
  "name": "evals-run",
153
- "description": "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`, `configuration_id`, and `agent_id`.\n- **Direct create-and-run:** provide `prompt`, `judges`, and `agent_id`. You may also provide a repository, write-only environment variables, and public skill packages.\n\nDo not combine saved-run and direct-run fields. No separate `mode` field is required."
153
+ "description": "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, and skills.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required."
154
154
  },
155
155
  {
156
156
  "name": "evals-analysis",
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,oOAAoO;KACpP;IACD;QACE,MAAM,EAAE,4CAA4C;QACpD,aAAa,EAAE,oKAAoK;KACpL;IACD;QACE,MAAM,EAAE,yCAA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EAAE,uCAAuC;QAC/C,aAAa,EAAE,qGAAqG;KACrH;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,8GAA8G;KAC9H;IACD;QACE,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,6OAA6O;KAC7P;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,wFAAwF;KACxG;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,mEAAmE;KACnF;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,uFAAuF;KACvG;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,mGAAmG;KACnH;IACD;QACE,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
1
+ {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,oOAAoO;KACpP;IACD;QACE,MAAM,EAAE,4CAA4C;QACpD,aAAa,EAAE,oKAAoK;KACpL;IACD;QACE,MAAM,EAAE,yCAAyC;QACjD,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,wKAAwK;KACxL;IACD;QACE,MAAM,EAAE,yBAAyB;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,EAAE,mCAAmC;QAC3C,aAAa,EAAE,6OAA6O;KAC7P;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,wFAAwF;KACxG;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,mEAAmE;KACnF;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,uFAAuF;KACvG;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,mGAAmG;KACnH;IACD;QACE,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsage/mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -34,10 +34,10 @@ import { Result } from "../types/fp.js";
34
34
  *
35
35
  * Send one of these flat request forms:
36
36
  *
37
- * - **Saved eval:** provide `eval_id`, `configuration_id`, and `agent_id`.
38
- * - **Direct create-and-run:** provide `prompt`, `judges`, and `agent_id`. You may also provide a repository, write-only environment variables, and public skill packages.
37
+ * - **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
38
+ * - **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, and skills.
39
39
  *
40
- * Do not combine saved-run and direct-run fields. No separate `mode` field is required.
40
+ * The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required.
41
41
  */
42
42
  export function evalsRun(
43
43
  client$: LightsageMcpCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Create Eval
31
31
  *
32
32
  * @remarks
33
- * Creates an eval with a task prompt, subject, and plain-text success criterion in `judge`. The eval can then be run through eval runs.
33
+ * Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, repeat count, and tags are saved with the eval. Creating the eval does not start a run and does not accept secret environment values.
34
34
  */
35
35
  export function evalsV2EvalsCreate(
36
36
  client$: LightsageMcpCore,
@@ -24,7 +24,7 @@ import { Result } from "../types/fp.js";
24
24
  * List Evals
25
25
  *
26
26
  * @remarks
27
- * Returns all active evals including workflow, MCP, CLI, and skill evals owned by the organization.
27
+ * Returns all active eval definitions owned by the organization.
28
28
  */
29
29
  export function evalsV2EvalsList(
30
30
  client$: LightsageMcpCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve Eval
31
31
  *
32
32
  * @remarks
33
- * Returns one eval and its judge configuration.
33
+ * Returns one reusable eval simulation definition.
34
34
  */
35
35
  export function evalsV2EvalsRetrieve(
36
36
  client$: LightsageMcpCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update Eval
31
31
  *
32
32
  * @remarks
33
- * Updates an eval's task prompt, subject, plain-text `judge`, or name. Omitted fields remain unchanged.
33
+ * Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty `agent`, `clis`, `mcps`, or `tags` arrays clear those collections, and `persona: null` clears the saved persona.
34
34
  */
35
35
  export function evalsV2EvalsUpdate(
36
36
  client$: LightsageMcpCore,
@@ -931,7 +931,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
931
931
  <h1>Instructions</h1>
932
932
  <p>One-click installation for Claude Desktop users</p>
933
933
  <div class="instruction-item">
934
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.3.0/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
934
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.3.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
935
935
  📥 Download MCP Bundle
936
936
  </a>
937
937
  </div>
package/src/lib/config.ts CHANGED
@@ -66,7 +66,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
66
66
  export const SDK_METADATA = {
67
67
  language: "typescript",
68
68
  openapiDocVersion: "1.0.0",
69
- sdkVersion: "0.3.0",
70
- genVersion: "2.935.1",
71
- userAgent: "speakeasy-sdk/mcp-typescript 0.3.0 2.935.1 1.0.0 @lightsage/mcp",
69
+ sdkVersion: "0.3.1",
70
+ genVersion: "2.937.18",
71
+ userAgent: "speakeasy-sdk/mcp-typescript 0.3.1 2.937.18 1.0.0 @lightsage/mcp",
72
72
  } as const;
@@ -22,7 +22,7 @@ const routes = buildRouteMap({
22
22
  export const app = buildApplication(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "0.3.0",
25
+ currentVersion: "0.3.1",
26
26
  },
27
27
  });
28
28
 
@@ -92,7 +92,7 @@ export function createMCPServer(deps: {
92
92
  sizes: ["any"],
93
93
  }],
94
94
  name: "LightsageMcp",
95
- version: "0.3.0",
95
+ version: "0.3.1",
96
96
  });
97
97
 
98
98
  const getClient = deps.getSDK || (() =>
@@ -19,10 +19,10 @@ Queues a durable eval job and returns immediately with a polling ID. Poll \`GET
19
19
 
20
20
  Send one of these flat request forms:
21
21
 
22
- - **Saved eval:** provide \`eval_id\`, \`configuration_id\`, and \`agent_id\`.
23
- - **Direct create-and-run:** provide \`prompt\`, \`judges\`, and \`agent_id\`. You may also provide a repository, write-only environment variables, and public skill packages.
22
+ - **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
23
+ - **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, and skills.
24
24
 
25
- Do not combine saved-run and direct-run fields. No separate \`mode\` field is required.`,
25
+ The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate \`mode\` field is required.`,
26
26
  annotations: {
27
27
  "title": "",
28
28
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsCreate: ToolDefinition<typeof args> = {
15
15
  name: "evals-v2-evals-create",
16
16
  description: `Create Eval
17
17
 
18
- Creates an eval with a task prompt, subject, and plain-text success criterion in \`judge\`. The eval can then be run through eval runs.`,
18
+ Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, repeat count, and tags are saved with the eval. Creating the eval does not start a run and does not accept secret environment values.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -10,7 +10,7 @@ export const tool$evalsV2EvalsList: ToolDefinition = {
10
10
  name: "evals-v2-evals-list",
11
11
  description: `List Evals
12
12
 
13
- Returns all active evals including workflow, MCP, CLI, and skill evals owned by the organization.`,
13
+ Returns all active eval definitions owned by the organization.`,
14
14
  annotations: {
15
15
  "title": "",
16
16
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "evals-v2-evals-retrieve",
16
16
  description: `Retrieve Eval
17
17
 
18
- Returns one eval and its judge configuration.`,
18
+ Returns one reusable eval simulation definition.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsUpdate: ToolDefinition<typeof args> = {
15
15
  name: "evals-v2-evals-update",
16
16
  description: `Update Eval
17
17
 
18
- Updates an eval's task prompt, subject, plain-text \`judge\`, or name. Omitted fields remain unchanged.`,
18
+ Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -4,42 +4,86 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
- import { ClosedEnum } from "../types/enums.js";
7
+ import {
8
+ V2InlineCliReference,
9
+ V2InlineCliReference$zodSchema,
10
+ } from "./v2inlineclireference.js";
11
+ import {
12
+ V2InlineMcpDefinition,
13
+ V2InlineMcpDefinition$zodSchema,
14
+ } from "./v2inlinemcpdefinition.js";
15
+ import {
16
+ V2SavedCliReference,
17
+ V2SavedCliReference$zodSchema,
18
+ } from "./v2savedclireference.js";
19
+ import {
20
+ V2SavedMcpReference,
21
+ V2SavedMcpReference$zodSchema,
22
+ } from "./v2savedmcpreference.js";
8
23
 
9
- export const CreateV2EvalRequestType = {
10
- Workflow: "workflow",
11
- Mcp: "mcp",
12
- Cli: "cli",
13
- Skill: "skill",
14
- } as const;
15
- export type CreateV2EvalRequestType = ClosedEnum<
16
- typeof CreateV2EvalRequestType
17
- >;
24
+ export type CreateV2EvalRequestCli = V2SavedCliReference | V2InlineCliReference;
18
25
 
19
- export const CreateV2EvalRequestType$zodSchema = z.enum([
20
- "workflow",
21
- "mcp",
22
- "cli",
23
- "skill",
26
+ export const CreateV2EvalRequestCli$zodSchema: z.ZodType<
27
+ CreateV2EvalRequestCli
28
+ > = z.union([
29
+ V2SavedCliReference$zodSchema,
30
+ V2InlineCliReference$zodSchema,
31
+ ]);
32
+
33
+ export type CreateV2EvalRequestMcp =
34
+ | V2InlineMcpDefinition
35
+ | V2SavedMcpReference;
36
+
37
+ export const CreateV2EvalRequestMcp$zodSchema: z.ZodType<
38
+ CreateV2EvalRequestMcp
39
+ > = z.union([
40
+ V2InlineMcpDefinition$zodSchema,
41
+ V2SavedMcpReference$zodSchema,
24
42
  ]);
25
43
 
26
44
  export type CreateV2EvalRequest = {
27
45
  name: string;
28
- type: CreateV2EvalRequestType;
29
- prompt: string;
30
- judge: string;
31
- mcp_server_id?: string | undefined;
32
- cli_id?: string | undefined;
33
- skill_id?: string | undefined;
46
+ prompts: Array<string>;
47
+ judges: Array<string>;
48
+ agent?: Array<string> | undefined;
49
+ persona?: string | undefined;
50
+ clis?: Array<V2SavedCliReference | V2InlineCliReference> | undefined;
51
+ mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | undefined;
52
+ runs?: number | undefined;
53
+ tags?: Array<string> | undefined;
34
54
  };
35
55
 
36
56
  export const CreateV2EvalRequest$zodSchema: z.ZodType<CreateV2EvalRequest> = z
37
57
  .object({
38
- cli_id: z.string().optional(),
39
- judge: z.string().describe("Plain-text outcome that counts as success."),
40
- mcp_server_id: z.string().optional(),
58
+ agent: z.array(z.string()).optional().describe(
59
+ "Runnable agents from `GET /v2/agents`. An empty array saves the eval without default agents. CLI clients expose repeatable `--agent`.",
60
+ ),
61
+ clis: z.array(z.union([
62
+ V2SavedCliReference$zodSchema,
63
+ V2InlineCliReference$zodSchema,
64
+ ])).optional().describe(
65
+ "Saved CLI references or inline installation commands.",
66
+ ),
67
+ judges: z.array(z.string()).describe(
68
+ "Plain-text success criteria. CLI clients expose this as repeatable `--judge`.",
69
+ ),
70
+ mcps: z.array(z.union([
71
+ V2InlineMcpDefinition$zodSchema,
72
+ V2SavedMcpReference$zodSchema,
73
+ ])).optional().describe(
74
+ "Saved MCP references or inline portable MCP definitions.",
75
+ ),
41
76
  name: z.string(),
42
- prompt: z.string(),
43
- skill_id: z.string().optional(),
44
- type: CreateV2EvalRequestType$zodSchema,
77
+ persona: z.string().optional().describe(
78
+ "Optional perspective applied to the whole eval. It is stored as metadata and does not change prompts or multiply attempts.",
79
+ ),
80
+ prompts: z.array(z.string()).describe(
81
+ "Task prompts. CLI clients expose this as repeatable `--prompt`.",
82
+ ),
83
+ runs: z.int().default(1).describe(
84
+ "Independent attempts for every prompt-agent pair.",
85
+ ),
86
+ tags: z.array(z.string()).optional().describe(
87
+ "Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.",
88
+ ),
45
89
  });
@@ -4,48 +4,120 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
+ import {
8
+ V2InlineCliReference,
9
+ V2InlineCliReference$zodSchema,
10
+ } from "./v2inlineclireference.js";
11
+ import {
12
+ V2InlineMcpDefinition,
13
+ V2InlineMcpDefinition$zodSchema,
14
+ } from "./v2inlinemcpdefinition.js";
15
+ import {
16
+ V2SavedCliReference,
17
+ V2SavedCliReference$zodSchema,
18
+ } from "./v2savedclireference.js";
19
+ import {
20
+ V2SavedMcpReference,
21
+ V2SavedMcpReference$zodSchema,
22
+ } from "./v2savedmcpreference.js";
23
+
24
+ export type CreateV2EvalRunRequestCli =
25
+ | V2SavedCliReference
26
+ | V2InlineCliReference;
27
+
28
+ export const CreateV2EvalRunRequestCli$zodSchema: z.ZodType<
29
+ CreateV2EvalRunRequestCli
30
+ > = z.union([
31
+ V2SavedCliReference$zodSchema,
32
+ V2InlineCliReference$zodSchema,
33
+ ]);
34
+
35
+ export type CreateV2EvalRunRequestMcp =
36
+ | V2InlineMcpDefinition
37
+ | V2SavedMcpReference;
38
+
39
+ export const CreateV2EvalRunRequestMcp$zodSchema: z.ZodType<
40
+ CreateV2EvalRunRequestMcp
41
+ > = z.union([
42
+ V2InlineMcpDefinition$zodSchema,
43
+ V2SavedMcpReference$zodSchema,
44
+ ]);
7
45
 
8
46
  /**
9
- * Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.
47
+ * Start an eval run using one of two flat request forms. Saved runs require `eval_id` and use saved simulation defaults unless the request replaces them. Direct create-and-run requests require `prompts`, `judges`, and `agent`. No separate mode field is required.
10
48
  */
11
49
  export type CreateV2EvalRunRequest = {
12
50
  eval_id?: string | undefined;
13
51
  configuration_id?: string | undefined;
14
- agent_id: string;
15
- prompt?: string | undefined;
16
- judges?: Array<string> | undefined;
52
+ name?: string | undefined;
53
+ prompts?: Array<string> | null | undefined;
54
+ judges?: Array<string> | null | undefined;
55
+ agent?: Array<string> | null | undefined;
56
+ persona?: string | undefined;
57
+ clis?: Array<V2SavedCliReference | V2InlineCliReference> | null | undefined;
58
+ mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | null | undefined;
59
+ runs?: number | undefined;
60
+ tags?: Array<string> | undefined;
17
61
  repository?: string | undefined;
18
62
  env?: { [k: string]: string } | undefined;
19
63
  skills?: Array<string> | undefined;
64
+ skill_ids?: Array<string> | undefined;
20
65
  };
21
66
 
22
67
  export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
23
68
  CreateV2EvalRunRequest
24
69
  > = z.object({
25
- agent_id: z.string().describe(
26
- "Required in both request forms. Runnable agent ID from `GET /v2/agents`.",
70
+ agent: z.array(z.string()).nullable().optional().describe(
71
+ "Runnable agents from `GET /v2/agents`. Required unless the saved eval already has agents. CLI clients expose repeatable `--agent`.",
72
+ ),
73
+ clis: z.array(z.union([
74
+ V2SavedCliReference$zodSchema,
75
+ V2InlineCliReference$zodSchema,
76
+ ])).nullable().optional().describe(
77
+ "Saved CLI references or inline installation commands. In saved mode, an explicit empty array disables saved CLIs for this launch.",
27
78
  ),
28
79
  configuration_id: z.string().optional().describe(
29
- "Saved-run form only. Saved runtime configuration; required when `eval_id` is provided.",
80
+ "Saved-run form only. Optional saved repository, environment, skills, and legacy tool configuration.",
30
81
  ),
31
82
  env: z.record(z.string(), z.string()).optional().describe(
32
- "Direct create-and-run form only. Write-only environment variables; values are stored only in the queued job's private configuration.",
83
+ "Write-only environment variables for this launch. Values are stored only in the queued job's private configuration.",
33
84
  ),
34
85
  eval_id: z.string().optional().describe(
35
86
  "Saved-run form only. Existing eval definition to run. Omit this field to use the direct create-and-run form.",
36
87
  ),
37
- judges: z.array(z.string()).optional().describe(
38
- "Direct create-and-run form only. Provide at least one success criterion. CLI clients may expose this string array as a repeatable `--judge` flag.",
88
+ judges: z.array(z.string()).nullable().optional().describe(
89
+ "Success criteria. Required in direct mode; in saved mode, replaces saved judges for this launch. CLI clients expose repeatable `--judge`.",
90
+ ),
91
+ mcps: z.array(z.union([
92
+ V2InlineMcpDefinition$zodSchema,
93
+ V2SavedMcpReference$zodSchema,
94
+ ])).nullable().optional().describe(
95
+ "Saved MCP references or inline portable definitions. In saved mode, an explicit empty array disables saved MCPs for this launch.",
39
96
  ),
40
- prompt: z.string().optional().describe(
41
- "Direct create-and-run form only. Task prompt; required when `eval_id` is omitted.",
97
+ name: z.string().optional().describe(
98
+ "Direct create-and-run form only. Display name for the durable eval. Defaults to the first prompt.",
99
+ ),
100
+ persona: z.string().optional().describe(
101
+ "Optional perspective for every attempt in this launch. It does not modify prompts or add a fan-out dimension.",
102
+ ),
103
+ prompts: z.array(z.string()).nullable().optional().describe(
104
+ "Task prompts. Required in direct mode; in saved mode, replaces saved prompts for this launch. CLI clients expose repeatable `--prompt`.",
42
105
  ),
43
106
  repository: z.string().optional().describe(
44
107
  "Direct create-and-run form only. A saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL.",
45
108
  ),
109
+ runs: z.int().optional().describe(
110
+ "Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run.",
111
+ ),
112
+ skill_ids: z.array(z.string()).optional().describe(
113
+ "Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts.",
114
+ ),
46
115
  skills: z.array(z.string()).optional().describe(
47
116
  "Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag.",
48
117
  ),
118
+ tags: z.array(z.string()).optional().describe(
119
+ "Direct create-and-run form only. Optional labels saved on the created eval. CLI clients may expose this string array as a repeatable `--tag` flag.",
120
+ ),
49
121
  }).describe(
50
- "Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.",
122
+ "Start an eval run using one of two flat request forms. Saved runs require `eval_id` and use saved simulation defaults unless the request replaces them. Direct create-and-run requests require `prompts`, `judges`, and `agent`. No separate mode field is required.",
51
123
  );
@@ -4,44 +4,76 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
- import { ClosedEnum } from "../types/enums.js";
7
+ import {
8
+ V2InlineCliReference,
9
+ V2InlineCliReference$zodSchema,
10
+ } from "./v2inlineclireference.js";
11
+ import {
12
+ V2InlineMcpDefinition,
13
+ V2InlineMcpDefinition$zodSchema,
14
+ } from "./v2inlinemcpdefinition.js";
15
+ import {
16
+ V2SavedCliReference,
17
+ V2SavedCliReference$zodSchema,
18
+ } from "./v2savedclireference.js";
19
+ import {
20
+ V2SavedMcpReference,
21
+ V2SavedMcpReference$zodSchema,
22
+ } from "./v2savedmcpreference.js";
8
23
 
9
- export const UpdateV2EvalRequestType = {
10
- Workflow: "workflow",
11
- Mcp: "mcp",
12
- Cli: "cli",
13
- Skill: "skill",
14
- } as const;
15
- export type UpdateV2EvalRequestType = ClosedEnum<
16
- typeof UpdateV2EvalRequestType
17
- >;
24
+ export type UpdateV2EvalRequestCli = V2SavedCliReference | V2InlineCliReference;
18
25
 
19
- export const UpdateV2EvalRequestType$zodSchema = z.enum([
20
- "workflow",
21
- "mcp",
22
- "cli",
23
- "skill",
26
+ export const UpdateV2EvalRequestCli$zodSchema: z.ZodType<
27
+ UpdateV2EvalRequestCli
28
+ > = z.union([
29
+ V2SavedCliReference$zodSchema,
30
+ V2InlineCliReference$zodSchema,
31
+ ]);
32
+
33
+ export type UpdateV2EvalRequestMcp =
34
+ | V2InlineMcpDefinition
35
+ | V2SavedMcpReference;
36
+
37
+ export const UpdateV2EvalRequestMcp$zodSchema: z.ZodType<
38
+ UpdateV2EvalRequestMcp
39
+ > = z.union([
40
+ V2InlineMcpDefinition$zodSchema,
41
+ V2SavedMcpReference$zodSchema,
24
42
  ]);
25
43
 
26
44
  export type UpdateV2EvalRequest = {
27
45
  name?: string | undefined;
28
- type?: UpdateV2EvalRequestType | undefined;
29
- prompt?: string | undefined;
30
- judge?: string | undefined;
31
- mcp_server_id?: string | undefined;
32
- cli_id?: string | undefined;
33
- skill_id?: string | undefined;
46
+ prompts?: Array<string> | null | undefined;
47
+ judges?: Array<string> | null | undefined;
48
+ agent?: Array<string> | null | undefined;
49
+ persona?: string | undefined;
50
+ clis?: Array<V2SavedCliReference | V2InlineCliReference> | null | undefined;
51
+ mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | null | undefined;
52
+ runs?: number | undefined;
53
+ tags?: Array<string> | null | undefined;
34
54
  };
35
55
 
36
56
  export const UpdateV2EvalRequest$zodSchema: z.ZodType<UpdateV2EvalRequest> = z
37
57
  .object({
38
- cli_id: z.string().optional(),
39
- judge: z.string().optional().describe(
40
- "Plain-text outcome that counts as success.",
58
+ agent: z.array(z.string()).nullable().optional(),
59
+ clis: z.array(z.union([
60
+ V2SavedCliReference$zodSchema,
61
+ V2InlineCliReference$zodSchema,
62
+ ])).nullable().optional(),
63
+ judges: z.array(z.string()).nullable().optional().describe(
64
+ "Replacement success criteria for the eval.",
41
65
  ),
42
- mcp_server_id: z.string().optional(),
66
+ mcps: z.array(z.union([
67
+ V2InlineMcpDefinition$zodSchema,
68
+ V2SavedMcpReference$zodSchema,
69
+ ])).nullable().optional(),
43
70
  name: z.string().optional(),
44
- prompt: z.string().optional(),
45
- skill_id: z.string().optional(),
46
- type: UpdateV2EvalRequestType$zodSchema.optional(),
71
+ persona: z.string().optional().describe(
72
+ "Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged.",
73
+ ),
74
+ prompts: z.array(z.string()).nullable().optional(),
75
+ runs: z.int().optional(),
76
+ tags: z.array(z.string()).nullable().optional().describe(
77
+ "Replacement labels for the eval. Pass an empty array to clear all tags.",
78
+ ),
47
79
  });