diff --git a/frontend/internal-packages/schema-bench/package.json b/frontend/internal-packages/schema-bench/package.json index 7c8056f962..ce5077cf17 100644 --- a/frontend/internal-packages/schema-bench/package.json +++ b/frontend/internal-packages/schema-bench/package.json @@ -21,7 +21,6 @@ "vitest": "3.2.4" }, "scripts": { - "evaluateSchema": "tsx src/cli/evaluateSchema.ts", "evaluateSchemaMulti": "tsx src/cli/evaluateSchemaMulti.ts", "executeLiamDB": "tsx src/cli/executeLiamDbUnified.ts", "executeLiamDB:default": "tsx src/cli/executeLiamDbDefault.ts", diff --git a/frontend/internal-packages/schema-bench/src/cli/evaluateSchema.ts b/frontend/internal-packages/schema-bench/src/cli/evaluateSchema.ts deleted file mode 100644 index d1e8515530..0000000000 --- a/frontend/internal-packages/schema-bench/src/cli/evaluateSchema.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { evaluateSchema } from '../workspace/evaluation/evaluation.ts' -import type { EvaluationConfig } from '../workspace/types' -import { - getWorkspacePath, - handleCliError, - handleUnexpectedError, -} from './utils/index.ts' - -// Right now, the script processes process.argv directly and lives in this package since it's still rough and only meant for internal (Liam team) use. -// In the future, once things are more stable, we'd like to move this feature to the CLI package and rely on something like commander for argument parsing. - -const runEvaluateSchema = async (): Promise => { - const workspacePath = getWorkspacePath() - const args = process.argv.slice(2) - - let caseId: string | undefined - const caseArg = args.find((arg) => arg.startsWith('--case=')) - if (caseArg) { - caseId = caseArg.split('=')[1] - } - - const casesArg = args.find((arg) => arg.startsWith('--cases=')) - if (casesArg && !caseId) { - const cases = casesArg.split('=')[1]?.split(',') - if (cases?.length === 1) { - caseId = cases[0] - } - } - - const config: EvaluationConfig = { - workspacePath, - ...(caseId && { caseId }), - outputFormat: 'json', - } - - const result = await evaluateSchema(config) - - if (result.isErr()) { - handleCliError('Schema evaluation failed', result.error) - } -} - -runEvaluateSchema().catch(handleUnexpectedError)