Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.29.2",
"version": "0.29.3",
"type": "module",
"bin": {
"spawn": "cli.js"
Expand Down
17 changes: 0 additions & 17 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1070,23 +1070,6 @@ async function main(): Promise<void> {
process.exit(3);
}

// Validate headless-incompatible flags
if (effectiveHeadless && dryRun) {
if (outputFormat === "json") {
console.log(
JSON.stringify({
status: "error",
error_code: "VALIDATION_ERROR",
error_message: "--headless and --dry-run cannot be used together",
}),
);
} else {
console.error(pc.red("Error: --headless and --dry-run cannot be used together"));
console.error(`\nUse ${pc.cyan("--dry-run")} for previewing, or ${pc.cyan("--headless")} for execution.`);
}
process.exit(3);
}

checkUnknownFlags(filteredArgs);

const cmd = filteredArgs[0];
Expand Down
Loading