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.
@@ -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 SESSIONS_URL = process.env.AI_USAGE_SESSIONS_URL || 'http://localhost:8100/api/v1/ai-usage/sessions';
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ronds_ai",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "CLI for reporting AI code edit events.",
5
5
  "bin": {
6
6
  "ronds_ai": "bin/ronds_ai.js"