ronds_ai 0.1.26 → 0.1.27
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/lib/analyze_config.js +4 -2
- package/package.json +1 -1
package/lib/analyze_config.js
CHANGED
|
@@ -3,8 +3,9 @@ const os = require('os');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const { runGit } = require('./git');
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
const
|
|
6
|
+
// 默认上报地址与 hook record 保持一致,打到正式 aihub 服务入口,地址可由环境变量覆盖。
|
|
7
|
+
const DEFAULT_SESSIONS_URL = 'https://aihub.ronds.com/api/api/v1/ai-usage/sessions';
|
|
8
|
+
const SESSIONS_URL = process.env.AI_USAGE_SESSIONS_URL || DEFAULT_SESSIONS_URL;
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* 按原插件优先级读取用户选项。
|
|
@@ -102,6 +103,7 @@ function getAnalyzeConfig(projectDir) {
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
module.exports = {
|
|
106
|
+
DEFAULT_SESSIONS_URL,
|
|
105
107
|
getAnalyzeConfig,
|
|
106
108
|
resolveAnalyzeUserId,
|
|
107
109
|
resolveAnalyzeWorkerId,
|