feat(coding-agent): add API key validation in entry point
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { createApp } from "@vue-tui/runtime";
|
||||
import App from "./App";
|
||||
|
||||
if (!process.env["DEEPSEEK_API_KEY"]) {
|
||||
console.error("Error: DEEPSEEK_API_KEY environment variable is required.");
|
||||
console.error("Usage: DEEPSEEK_API_KEY=sk-xxx node dist/agent.mjs [--yolo]");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
createApp(App).mount();
|
||||
|
||||
Reference in New Issue
Block a user