@workbench-ai/workbench-built-in-adapters 0.0.50 → 0.0.51

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 (2) hide show
  1. package/dist/execute.js +5 -1
  2. package/package.json +5 -5
package/dist/execute.js CHANGED
@@ -504,10 +504,13 @@ async function readWorkbenchEngineCase(args) {
504
504
  throw new Error(`Task ${args.id} ${TASK_CONTROL_FILE} must include a task string.`);
505
505
  }
506
506
  const unsupportedTaskFields = Object.keys(taskRecord)
507
- .filter((key) => !["version", "task", "files", "tests", "solution", "environment"].includes(key));
507
+ .filter((key) => !["version", "task", "split", "files", "tests", "solution", "environment"].includes(key));
508
508
  if (unsupportedTaskFields.length > 0) {
509
509
  throw new Error(`Task ${args.id} ${TASK_CONTROL_FILE} has unsupported field${unsupportedTaskFields.length === 1 ? "" : "s"}: ${unsupportedTaskFields.join(", ")}.`);
510
510
  }
511
+ if (taskRecord.split !== undefined && (typeof taskRecord.split !== "string" || taskRecord.split.trim().length === 0)) {
512
+ throw new Error(`Task ${args.id} ${TASK_CONTROL_FILE} split must be a non-empty string when provided.`);
513
+ }
511
514
  const publicPrefix = taskDirectoryPrefix(taskRecord.files, "files", args.id);
512
515
  const testsPrefix = taskDirectoryPrefix(taskRecord.tests, "tests", args.id);
513
516
  const solutionPrefix = taskDirectoryPrefix(taskRecord.solution, "solution", args.id);
@@ -527,6 +530,7 @@ async function readWorkbenchEngineCase(args) {
527
530
  case: {
528
531
  version: 3,
529
532
  prompt: taskRecord.task,
533
+ ...(typeof taskRecord.split === "string" ? { split: taskRecord.split.trim() } : {}),
530
534
  ...(taskRecord.environment !== undefined
531
535
  ? { environment: taskRecord.environment }
532
536
  : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbench-ai/workbench-built-in-adapters",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,12 +32,12 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "yaml": "^2.8.2",
35
- "@workbench-ai/agent-driver-anthropic-claude-code": "0.0.45",
36
35
  "@workbench-ai/agent-driver-openai-codex": "0.0.45",
36
+ "@workbench-ai/workbench-contract": "0.0.51",
37
37
  "@workbench-ai/agent-driver": "0.0.45",
38
- "@workbench-ai/workbench-contract": "0.0.50",
39
- "@workbench-ai/workbench-protocol": "0.0.50",
40
- "@workbench-ai/workbench-core": "0.0.50"
38
+ "@workbench-ai/workbench-core": "0.0.51",
39
+ "@workbench-ai/agent-driver-anthropic-claude-code": "0.0.45",
40
+ "@workbench-ai/workbench-protocol": "0.0.51"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^24.3.1",