Skip to content

Commit 05c84df

Browse files
authored
fix(contract): remove workspace testbed public surfaces (#1680)
* fix(contract): remove workspace testbed public surfaces * fix(contract): reject legacy workspace fields in validator
1 parent 793086b commit 05c84df

24 files changed

Lines changed: 389 additions & 1211 deletions

File tree

apps/cli/src/commands/workspace/deps.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

apps/cli/src/commands/workspace/index.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

apps/cli/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { transpileCommand } from './commands/transpile/index.js';
2424
import { trendCommand } from './commands/trend/index.js';
2525
import { trimCommand } from './commands/trim/index.js';
2626
import { validateCommand } from './commands/validate/index.js';
27-
import { workspaceCommand } from './commands/workspace/index.js';
2827
import { getUpdateNotice } from './update-check.js';
2928

3029
export const app = subcommands({
@@ -53,7 +52,6 @@ export const app = subcommands({
5352
transpile: transpileCommand,
5453
trim: trimCommand,
5554
validate: validateCommand,
56-
workspace: workspaceCommand,
5755
},
5856
});
5957

@@ -90,7 +88,6 @@ const TOP_LEVEL_COMMANDS = new Set([
9088
'transpile',
9189
'trim',
9290
'validate',
93-
'workspace',
9491
]);
9592

9693
export function usesDeprecatedStudioAlias(argv: string[]): boolean {

apps/cli/test/commands/workspace/deps.test.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

packages/core/scripts/generate-eval-schema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { spawn } from 'node:child_process';
88
import { writeFile } from 'node:fs/promises';
99
import path from 'node:path';
1010
import { zodToJsonSchema } from 'zod-to-json-schema';
11-
import { EvalFileSchema } from '../src/evaluation/validation/eval-file.schema.js';
11+
import { EvalFileSchemaInput } from '../src/evaluation/validation/eval-file.schema.js';
1212

1313
async function formatWithBiome(filePath: string): Promise<void> {
1414
await new Promise<void>((resolve, reject) => {
@@ -38,6 +38,7 @@ async function writeSchema(options: {
3838
const jsonSchema = zodToJsonSchema(options.schema, {
3939
name: options.name,
4040
$refStrategy: 'none',
41+
effectStrategy: 'input',
4142
target: 'jsonSchema2019-09',
4243
});
4344

@@ -60,7 +61,7 @@ async function writeSchema(options: {
6061
}
6162

6263
await writeSchema({
63-
schema: EvalFileSchema,
64+
schema: EvalFileSchemaInput,
6465
name: 'EvalFile',
6566
title: 'AgentV Eval File',
6667
description: 'Schema for AgentV evaluation YAML files (.eval.yaml)',

packages/core/src/evaluation/experiment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function rejectExperimentWorkspace(raw: unknown): void {
395395
return;
396396
}
397397
throw new Error(
398-
'Experiment workspace has been removed from eval YAML. Put machine-local workspace_path in .agentv/config.local.yaml under execution, or pass --workspace-path. Keep portable task setup in top-level workspace.',
398+
'Experiment workspace has been removed from eval YAML. Put machine-local workspace_path in .agentv/config.local.yaml under execution, or pass --workspace-path. Keep portable coding-agent testbed setup in environment.',
399399
);
400400
}
401401

0 commit comments

Comments
 (0)