coderev-cli 1.0.9 → 1.0.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coderev-cli",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Multi-agent AI code review for git -- parallel agents with confidence scoring",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -567,6 +567,9 @@ program
567
567
  model: 'deepseek-chat',
568
568
  temperature: 0.3,
569
569
  maxTokens: 4096,
570
+ // 填入你的 API Key 或通过环境变量设置
571
+ // apiKey: "sk-xxx",
572
+ // apiKeyEnv: "DEEPSEEK_API_KEY",
570
573
  },
571
574
  rules: {
572
575
  maxLineLength: 100,
package/src/config.js CHANGED
@@ -80,8 +80,7 @@ function getApiKey(config) {
80
80
  const key = process.env[envVar];
81
81
  if (!key) {
82
82
  throw new Error(
83
- `API key not found. Set ${envVar} environment variable ` +
84
- `or add "apiKey" to your config file.`
83
+ `API key not found.`
85
84
  );
86
85
  }
87
86
  return key;