aixxai 1.7.23 → 1.7.25

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/bin/aixx.js CHANGED
@@ -18,6 +18,7 @@
18
18
  */
19
19
 
20
20
  import { readFileSync } from 'fs';
21
+ import { homedir } from 'os';
21
22
  import { fileURLToPath } from 'url';
22
23
  import { dirname, join } from 'path';
23
24
  import { install } from '../src/commands/install.js';
@@ -116,6 +117,20 @@ async function main() {
116
117
 
117
118
  const entry = COMMANDS.find(c => c.name === command || c.aliases?.includes(command));
118
119
  if (entry) {
120
+ // B方案(1202 K哥拍板): 每条命令检测本机skill版本——旧则醒目提示升级(只提示不动用户文件·install自身免提示)
121
+ if (command !== 'install') try {
122
+ const rd = (p) => { try { const m = readFileSync(p, 'utf8').match(/^version:\s*(.+)$/m); return m ? m[1].trim() : null; } catch { return null; } };
123
+ const packVer = rd(join(dirname(fileURLToPath(import.meta.url)), '..', 'templates', 'SKILL.md'));
124
+ let local = null;
125
+ for (const d of [join(homedir(), '.agents', 'skills', 'aixx'), join(homedir(), '.claude', 'skills', 'aixx'), join(homedir(), '.zcode', 'skills', 'aixx'), join(homedir(), '.aixx', 'skills', 'aixx')]) {
126
+ local = rd(join(d, 'SKILL.md'));
127
+ if (local) break;
128
+ }
129
+ if (packVer && local && local !== packVer) {
130
+ console.error('⬆️ [萬安云] 技能有新版 v' + local + ' → v' + packVer + '(行情全貌+主动推荐)');
131
+ console.error(' 跑一次 npx aixxai install 即升级——身份/key/余额全不动。\n');
132
+ }
133
+ } catch { /* 版本检测失败不阻塞命令 */ }
119
134
  await entry.run(subArgs);
120
135
  return;
121
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aixxai",
3
- "version": "1.7.23",
3
+ "version": "1.7.25",
4
4
  "description": "AIXX CLI - 让你的AI调用万物。查全球算力行情(B300/H100价格租价·答案带数据时间)+调用全球AI模型。By AIXX (Wanan Exchange). 安装:npx aixxai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -131,7 +131,7 @@ function buildClaudeModels() {
131
131
  }
132
132
 
133
133
  /**
134
- * AIXX-OpenAI 供应商的模型清单(OpenAI协议,调国产/DeepSeek/GLM/Kimi)
134
+ * AIXX-OpenAI 供应商的模型清单(OpenAI协议,调GLM/Kimi等多模型)
135
135
  */
136
136
  function buildOpenaiModels() {
137
137
  return {
@@ -165,7 +165,7 @@ function buildClaudeProvider(apiKey) {
165
165
  */
166
166
  function buildOpenaiProvider(apiKey) {
167
167
  return {
168
- name: 'AIXX(国产/DeepSeek)',
168
+ name: 'AIXX(国产·多模型)',
169
169
  kind: 'openai',
170
170
  options: {
171
171
  apiKey,
@@ -257,12 +257,12 @@ export function configureZCode(apiKey) {
257
257
  existing.models = buildOpenaiModels();
258
258
  existing.kind = 'openai';
259
259
  existing[MANAGED_FLAG] = 'openai';
260
- console.log(' ✏️ 更新已有AIXX(国产/DeepSeek)供应商(key已刷新)');
260
+ console.log(' ✏️ 更新已有AIXX(国产·多模型)供应商(key已刷新)');
261
261
  updated++;
262
262
  } else {
263
263
  const newKey = `aixx-openai-${randomUUID()}`;
264
264
  config.provider[newKey] = buildOpenaiProvider(apiKey);
265
- console.log(' ➕ 新增AIXX(国产/DeepSeek)供应商');
265
+ console.log(' ➕ 新增AIXX(国产·多模型)供应商');
266
266
  updated++;
267
267
  }
268
268