creditdaddy 1.7.1 → 1.7.2
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/build.json +3 -3
- package/package.json +1 -1
- package/src/authDevice.js +3 -1
- package/src/buildInfo.js +33 -0
- package/src/checkin.js +6 -2
- package/src/constants.js +3 -2
- package/src/cookieSites.js +1 -1
- package/src/daemon.js +43 -15
- package/src/i18n/en.json +2002 -1980
- package/src/i18n/ja.json +2002 -1980
- package/src/i18n/ko.json +2002 -1980
- package/src/i18n/zh-TW.json +2002 -1980
- package/src/lingxiClient.js +46 -5
- package/src/minimaxClient.js +86 -28
- package/src/minimaxLocal.js +22 -0
- package/src/panel.html +5638 -5528
- package/src/providers.js +18 -4
- package/src/riverClient.js +55 -12
- package/src/store.js +1 -0
- package/src/tenrouterAccounts.js +232 -222
- package/src/traeAuth.js +127 -58
- package/src/traeClient.js +25 -2
- package/src/traeGateway.js +100 -37
- package/src/transfer.js +20 -1
- package/src/workbuddyLocal.js +35 -4
package/build.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creditdaddy",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "CreditDaddy — Qoder / WorkBuddy / ZCode / mirasim / 妙手 / Trae / MiniMax / ModelScope / 豆包 Doubao / 讯飞 Loomy / WPS 灵犀多账号本地管理与每日积分自动签到助手,及 10Router 供应商 Cookie 会话捕获与外部配额(Token Harbor / 小米 MiMo / River / ModelScope 魔搭 / LongCat)",
|
|
5
5
|
"homepage": "https://github.com/techysy/CreditDaddy",
|
|
6
6
|
"repository": {
|
package/src/authDevice.js
CHANGED
|
@@ -132,8 +132,10 @@ const FLOWS = {
|
|
|
132
132
|
'zcode-zai': { start: startZcodeLogin, poll: pollZcodeLogin },
|
|
133
133
|
minimax: { start: startMiniMaxLogin, poll: pollMiniMaxLogin },
|
|
134
134
|
'minimax-global': { start: (kind) => startMiniMaxLogin('global'), poll: pollMiniMaxLogin },
|
|
135
|
-
// Trae:授权码 + PKCE 的本地回调流(与设备码轮询不同,poll
|
|
135
|
+
// Trae:授权码 + PKCE 的本地回调流(与设备码轮询不同,poll 查的是本机回调监听抓没抓到);
|
|
136
|
+
// trae-intl 走国际站(www.trae.ai,同协议同 client_id,#99 10R 侧全链验证)
|
|
136
137
|
trae: { start: startTraeLogin, poll: pollTraeLogin },
|
|
138
|
+
'trae-intl': { start: startTraeLogin, poll: pollTraeLogin },
|
|
137
139
|
};
|
|
138
140
|
export const LOGIN_KINDS = Object.keys(FLOWS);
|
|
139
141
|
const KIND_LABEL = { 'zcode-bigmodel': 'ZCode(BigModel)', 'zcode-zai': 'ZCode(Z.ai)' };
|
package/src/buildInfo.js
CHANGED
|
@@ -30,3 +30,36 @@ export function isNewerRebuild(installed, released) {
|
|
|
30
30
|
const tOld = Date.parse(installed.builtAt || '');
|
|
31
31
|
return Number.isFinite(tNew) && Number.isFinite(tOld) && tNew > tOld;
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 版本号比较(semver 口径):主 / 次 / 补丁逐段比较,其次预发布——**预发布 < 正式版**
|
|
36
|
+
* (1.7.1-test.4 < 1.7.1),预发布标识符逐个比、纯数字按数值(test.2 < test.10)。
|
|
37
|
+
* 旧实现 parseInt('1-test')===1 把预发布段整段丢掉,测试包被当成同号正式版,
|
|
38
|
+
* 「检查更新」永远说已是最新,测试包用户升不上同号正式版(1.7.1-test.4 → 1.7.1 用户实测)。
|
|
39
|
+
* 解析不了的一律 false:宁可不报新版本,不误报。
|
|
40
|
+
*/
|
|
41
|
+
export function isNewerVersion(next, cur) {
|
|
42
|
+
const parse = (s) => {
|
|
43
|
+
const m = /^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/.exec(String(s ?? '').trim());
|
|
44
|
+
return m ? { nums: [Number(m[1]), Number(m[2]), Number(m[3])], pre: m[4] === undefined ? null : m[4].split('.') } : null;
|
|
45
|
+
};
|
|
46
|
+
const a = parse(next);
|
|
47
|
+
const b = parse(cur);
|
|
48
|
+
if (!a || !b) return false;
|
|
49
|
+
for (let i = 0; i < 3; i++) {
|
|
50
|
+
if (a.nums[i] !== b.nums[i]) return a.nums[i] > b.nums[i];
|
|
51
|
+
}
|
|
52
|
+
if (!a.pre && !b.pre) return false; // 同号正式版
|
|
53
|
+
if (!a.pre) return true; // next 是正式版、cur 是预发布 → 新
|
|
54
|
+
if (!b.pre) return false; // next 是预发布、cur 是正式版 → 不更新(预发布 < 正式版)
|
|
55
|
+
for (let i = 0; i < a.pre.length || i < b.pre.length; i++) {
|
|
56
|
+
const x = a.pre[i], y = b.pre[i];
|
|
57
|
+
if (x === undefined) return false; // 前缀相同,短的一方更小(semver: alpha < alpha.1)
|
|
58
|
+
if (y === undefined) return true;
|
|
59
|
+
const nx = /^\d+$/.test(x), ny = /^\d+$/.test(y);
|
|
60
|
+
if (nx && ny) { if (Number(x) !== Number(y)) return Number(x) > Number(y); }
|
|
61
|
+
else if (nx !== ny) return nx; // semver:数字标识符 < 字母标识符
|
|
62
|
+
else if (x !== y) return x > y;
|
|
63
|
+
}
|
|
64
|
+
return false;
|
|
65
|
+
}
|
package/src/checkin.js
CHANGED
|
@@ -34,6 +34,8 @@ const ZCODE_FIRST_DELAY_MS = 2 * 60 * 1000;
|
|
|
34
34
|
// 各产品「业务日」刷新时点(UTC+8):Qoder 每日 10:00 放出/重置领取资格,其余产品按 00:00。
|
|
35
35
|
// 签到日 = 对应时点起的日历日:dayKey(now, provider) = (now + (8 - 刷新小时)h) 的 UTC 日期
|
|
36
36
|
const DAY_REFRESH_HOUR_UTC8 = { qoder: 10, 'qoder-cn': 10 };
|
|
37
|
+
// 领取日志的积分单位:默认 Credits(Qoder/WorkBuddy 系),网页会话线各自带单位
|
|
38
|
+
const CHECKIN_UNIT = { lingxi: '灵点', doubao: '额度' };
|
|
37
39
|
|
|
38
40
|
let timerHandle = null;
|
|
39
41
|
let zcodeTimerHandle = null;
|
|
@@ -231,9 +233,11 @@ async function runTickNow(opts) {
|
|
|
231
233
|
async function runTickInner(opts) {
|
|
232
234
|
const allAccounts = await loadAccounts();
|
|
233
235
|
// workbuddy-intl 无 checkin 动作(providers.js 的 intl 分支已删),providers 过滤天然跳过;
|
|
236
|
+
// trae-intl 同理(ug 签到接口只在国内站注册,国际号连排程都不进——10R traeCheckin 同口径)。
|
|
234
237
|
// 「活跃请求」全局开关随该机制一并删除(设置项不再读写)
|
|
235
238
|
const accounts = allAccounts.filter(
|
|
236
|
-
(a) =>
|
|
239
|
+
(a) => a.provider !== 'trae-intl'
|
|
240
|
+
&& (!opts.provider || a.provider === opts.provider)
|
|
237
241
|
&& (!opts.product || productOf(a.provider) === opts.product)
|
|
238
242
|
&& (!opts.onlyAccountId || a.id === opts.onlyAccountId)
|
|
239
243
|
&& typeof productImpl(a.provider)?.checkin === 'function'
|
|
@@ -291,7 +295,7 @@ async function runTickInner(opts) {
|
|
|
291
295
|
if (outcome.status === 'checked-in') {
|
|
292
296
|
memo[account.id] = todayFor;
|
|
293
297
|
account.lastCheckin = new Date().toISOString();
|
|
294
|
-
logger.info('CHECKIN', '{label} 领取成功 +{amount}
|
|
298
|
+
logger.info('CHECKIN', '{label} 领取成功 +{amount} {unit}', { label, amount: outcome.claimedAmount, unit: CHECKIN_UNIT[account.provider] || 'Credits' });
|
|
295
299
|
} else if (outcome.status === 'already') {
|
|
296
300
|
memo[account.id] = todayFor;
|
|
297
301
|
account.lastCheckin = account.lastCheckin || new Date().toISOString();
|
package/src/constants.js
CHANGED
|
@@ -35,7 +35,7 @@ export const WEB_USAGE_PATH = '/api/v2/me/usages/big_model_credits';
|
|
|
35
35
|
export const JOB_TOKEN_EXCHANGE_PATH = '/api/v1/jobToken/exchange';
|
|
36
36
|
|
|
37
37
|
// 账号的 provider = 产品 + 区域。新增产品时在此登记,并在 providers.js 挂上对应实现。
|
|
38
|
-
export const PROVIDERS = ['qoder', 'qoder-cn', 'workbuddy', 'workbuddy-intl', 'zcode', 'mirasim', 'catpaw', 'trae', 'minimax', 'minimax-global', 'tokenharbor', 'xiaomi-mimo', 'river', 'modelscope', 'longcat', 'doubao', 'loomy', 'lingxi'];
|
|
38
|
+
export const PROVIDERS = ['qoder', 'qoder-cn', 'workbuddy', 'workbuddy-intl', 'zcode', 'mirasim', 'catpaw', 'trae', 'trae-intl', 'minimax', 'minimax-global', 'tokenharbor', 'xiaomi-mimo', 'river', 'modelscope', 'longcat', 'doubao', 'loomy', 'lingxi'];
|
|
39
39
|
export const PROVIDER_LABEL = {
|
|
40
40
|
qoder: 'Qoder 国际版',
|
|
41
41
|
'qoder-cn': 'Qoder 国内版',
|
|
@@ -44,7 +44,8 @@ export const PROVIDER_LABEL = {
|
|
|
44
44
|
zcode: 'ZCode',
|
|
45
45
|
mirasim: 'mirasim',
|
|
46
46
|
catpaw: '妙手',
|
|
47
|
-
trae: 'Trae',
|
|
47
|
+
trae: 'Trae 国内版',
|
|
48
|
+
'trae-intl': 'Trae 国际版',
|
|
48
49
|
minimax: 'MiniMax 国内版',
|
|
49
50
|
'minimax-global': 'MiniMax 国际版',
|
|
50
51
|
tokenharbor: 'Token Harbor',
|
package/src/cookieSites.js
CHANGED
|
@@ -182,7 +182,7 @@ export const COOKIE_SITES = [
|
|
|
182
182
|
verify: 'api',
|
|
183
183
|
cookieUrls: ['https://lingxi.kdocs.cn', 'https://www.kdocs.cn'],
|
|
184
184
|
accountName: 'WPS 灵犀',
|
|
185
|
-
hint: '登录 lingxi.kdocs.cn 后自动抓取每日签到状态与灵点余额(每天 100 灵点,七天一轮第七天 200);CD 每日自动签到 + 推送 10Router 出余额卡,Cookie 只存本机(约 300+
|
|
185
|
+
hint: '登录 lingxi.kdocs.cn 后自动抓取每日签到状态与灵点余额(每天 100 灵点,七天一轮第七天 200);CD 每日自动签到 + 推送 10Router 出余额卡,Cookie 只存本机(约 300+ 天有效期)。多号:各号走「网页版 / 粘贴捕获」分别登录捕获,按 WPS 账号 uid 分行并存;同一登录分区换号前先「清除已存会话」。',
|
|
186
186
|
},
|
|
187
187
|
// ⚠ 码道 CodeArts(issue #40)已于 2026-10-30 撤下,不再提供:
|
|
188
188
|
// 华为云控制台会话受闲置超时 + WAF 指印(HWWAFSESID / browserCheckResult)绑定,
|
package/src/daemon.js
CHANGED
|
@@ -66,7 +66,7 @@ import { liveToAccount as zcodeLiveAccount, switchTo as zcodeSwitchTo, currentZc
|
|
|
66
66
|
import { liveToAccount as mirasimLiveAccount, switchTo as mirasimSwitchTo, currentMirasimUid, detectMirasim, terminateMirasim, mirasimRunning } from './mirasimLocal.js';
|
|
67
67
|
import { liveToAccount as catpawLiveAccount, switchTo as catpawSwitchTo, currentCatpawToken, detectCatpaw, terminateCatpaw } from './catpawLocal.js';
|
|
68
68
|
import { liveToAccount as traeLiveAccount, detectTrae, switchTo as traeSwitchTo, snapshotLive as traeSnapshotLive } from './traeLocal.js';
|
|
69
|
-
import { liveToAccount as minimaxLiveAccount, detectMiniMax, currentMiniMaxUid, currentMiniMaxToken, currentMiniMaxRecordKey } from './minimaxLocal.js';
|
|
69
|
+
import { liveToAccount as minimaxLiveAccount, detectMiniMax, detectMiniMaxBuildLang, currentMiniMaxUid, currentMiniMaxToken, currentMiniMaxRecordKey } from './minimaxLocal.js';
|
|
70
70
|
import { liveToAccount as loomyLiveAccount, hardSwitchLoomy, currentLoomyUid, detectLoomy } from './loomyLocal.js';
|
|
71
71
|
import * as minimaxGateway from './minimaxGateway.js';
|
|
72
72
|
import * as traeGateway from './traeGateway.js';
|
|
@@ -345,6 +345,7 @@ async function reprobeCookieAccount(site, a) {
|
|
|
345
345
|
if (!hit) return;
|
|
346
346
|
const sess = hit.meta?.workosSession || {};
|
|
347
347
|
if (bal.session) Object.assign(sess, bal.session); // 刷新兑换到的新链一并落盘(单次轮换)
|
|
348
|
+
if (sess.expiresAt) hit.expiresAt = sess.expiresAt;
|
|
348
349
|
hit.meta = {
|
|
349
350
|
...(hit.meta || {}),
|
|
350
351
|
cookieSiteSession: { cookie, capturedAt: hit.meta?.cookieSiteSession?.capturedAt || now },
|
|
@@ -361,22 +362,30 @@ async function reprobeCookieAccount(site, a) {
|
|
|
361
362
|
return finish({ id: a.id, name: a.name, ok: true, identity: null, balance: bal.balance, quotaSnapshot: { used: 0, total: bal.balance, isCreditBalance: true, at: now } });
|
|
362
363
|
}
|
|
363
364
|
if (site.id === 'lingxi') {
|
|
364
|
-
// 灵犀(issue #53):任务列表 + 余额一次拿全,重探 =
|
|
365
|
-
|
|
365
|
+
// 灵犀(issue #53):任务列表 + 余额一次拿全,重探 = 刷新签到状态与灵点快照;
|
|
366
|
+
// 顺带从会话罐解析 uid(多号归户身份,2026-11-09 起)——老行缺失时回填 + 名字升级
|
|
367
|
+
const { fetchLingxiStatus, lingxiIdentityFromCookie, maskLingxiUid } = await import('./lingxiClient.js');
|
|
366
368
|
const st = await fetchLingxiStatus(cookie).catch((e) => ({ auth: false, code: e?.message || 'network' }));
|
|
367
369
|
if (!st.auth) return finish({ id: a.id, name: a.name, ok: false, error: '灵犀会话已失效,请重新登录捕获' });
|
|
370
|
+
const uid = lingxiIdentityFromCookie(cookie);
|
|
371
|
+
const uidMasked = uid ? maskLingxiUid(uid) : null;
|
|
368
372
|
await withAccounts((list) => {
|
|
369
373
|
const hit = list.find((x) => x.id === a.id);
|
|
370
374
|
if (!hit) return;
|
|
371
375
|
hit.meta = {
|
|
372
376
|
...(hit.meta || {}),
|
|
373
377
|
cookieSiteSession: { cookie, capturedAt: hit.meta?.cookieSiteSession?.capturedAt || now },
|
|
378
|
+
...(uid && !hit.meta?.identityHash ? { identityHash: identityHashOf(`uid:${uid}`) } : {}),
|
|
374
379
|
...(Number.isFinite(st.balance) ? { quotaSnapshot: { used: 0, total: st.balance, isCreditBalance: true, at: now } } : {}),
|
|
375
380
|
};
|
|
381
|
+
if (uid) {
|
|
382
|
+
hit.uid = String(uid);
|
|
383
|
+
if (canAutoRename(site, hit) && !/\(\d+\*{4}\d+\)$/.test(hit.name || '')) hit.name = `WPS 灵犀(${uidMasked})`;
|
|
384
|
+
}
|
|
376
385
|
hit.updatedAt = now;
|
|
377
386
|
});
|
|
378
|
-
logger.info('COOKIE-SITE', '{name}
|
|
379
|
-
return finish({ id: a.id, name: a.name, ok: true, identity: null, balance: Number.isFinite(st.balance) ? st.balance : null, quotaSnapshot: Number.isFinite(st.balance) ? { used: 0, total: st.balance, isCreditBalance: true, at: now } : null });
|
|
387
|
+
logger.info('COOKIE-SITE', '{name} 就地重探通过({identity},签到{signed},灵点 {balance})', { name: site.name, identity: uid ? 'uid ' + uidMasked : '无 uid', signed: st.checkedIn ? '已签' : '未签', balance: Number.isFinite(st.balance) ? st.balance : '—' });
|
|
388
|
+
return finish({ id: a.id, name: a.name, ok: true, identity: uid ? `uid:${uidMasked}` : null, balance: Number.isFinite(st.balance) ? st.balance : null, quotaSnapshot: Number.isFinite(st.balance) ? { used: 0, total: st.balance, isCreditBalance: true, at: now } : null });
|
|
380
389
|
}
|
|
381
390
|
if (site.id === 'doubao') {
|
|
382
391
|
// 豆包(issue #32):detail 接口一次拿全(会话有效性 + 签到状态 + 累计点数),
|
|
@@ -1456,24 +1465,30 @@ async function handleApi(req, res, url) {
|
|
|
1456
1465
|
}
|
|
1457
1466
|
|
|
1458
1467
|
// WPS 灵犀(issue #53):任务列表接口即探测(带 cookie 返 200 data.tasks[],未登录 401)。
|
|
1459
|
-
// 签到状态 +
|
|
1468
|
+
// 签到状态 + 灵点余额一步拿全。身份 = 会话罐里的 `uid` cookie(WPS 账号 uid)——
|
|
1469
|
+
// tasks/balance 无身份字段、user 系端点 404(2026-11-09 实测),cookie 罐是唯一身份源;
|
|
1470
|
+
// 多号捕获按 uid 归户各行并存,罐里无 uid(异常老罐)才退单例。
|
|
1460
1471
|
let lxStatus = null;
|
|
1461
1472
|
let lxSnapshot = null;
|
|
1473
|
+
let lxUid = null;
|
|
1474
|
+
let lxUidMasked = null;
|
|
1462
1475
|
if (site.id === 'lingxi') {
|
|
1463
1476
|
try {
|
|
1464
|
-
const { fetchLingxiStatus, lingxiSnapshot } = await import('./lingxiClient.js');
|
|
1477
|
+
const { fetchLingxiStatus, lingxiSnapshot, lingxiIdentityFromCookie, maskLingxiUid } = await import('./lingxiClient.js');
|
|
1465
1478
|
if (!cookie) {
|
|
1466
1479
|
logger.warn('COOKIE-SITE', '{name} 未读到会话 cookie', { name: site.name });
|
|
1467
1480
|
return json(res, 400, { error: '未读到 WPS 灵犀登录会话,请在登录窗完成登录后再关闭' });
|
|
1468
1481
|
}
|
|
1482
|
+
lxUid = lingxiIdentityFromCookie(cookie);
|
|
1483
|
+
lxUidMasked = lxUid ? maskLingxiUid(lxUid) : null;
|
|
1469
1484
|
lxStatus = await fetchLingxiStatus(cookie);
|
|
1470
1485
|
if (!lxStatus.auth) {
|
|
1471
1486
|
logger.warn('COOKIE-SITE', '{name} 任务列表探测被拒:{code}', { name: site.name, code: lxStatus.code });
|
|
1472
1487
|
return json(res, 401, { error: '会话不可用,请重新登录该站点后再捕获(探测 401/403)' });
|
|
1473
1488
|
}
|
|
1474
|
-
identity = null; //
|
|
1489
|
+
identity = lxUid ? `uid:${lxUid}` : null; // 有 uid → 哈希归户;无 → 单例兜底
|
|
1475
1490
|
quotaSnapshot = { used: 0, total: Number(lxStatus.balance) || 0, isCreditBalance: true };
|
|
1476
|
-
logger.info('COOKIE-SITE', '{name}
|
|
1491
|
+
logger.info('COOKIE-SITE', '{name} 探测通过({identity},签到{signed},灵点 {balance})', { name: site.name, identity: lxUid ? 'uid ' + lxUidMasked : '无 uid(单例)', signed: lxStatus.checkedIn ? '已签' : '未签', balance: Number.isFinite(lxStatus.balance) ? lxStatus.balance : '—' });
|
|
1477
1492
|
} catch (lxErr) {
|
|
1478
1493
|
logger.warn('COOKIE-SITE', '{name} 任务列表抓取异常:{err}', { name: site.name, err: lxErr.message });
|
|
1479
1494
|
return json(res, 502, { error: '探测站点失败:' + (lxErr.message || '') });
|
|
@@ -1495,6 +1510,7 @@ async function handleApi(req, res, url) {
|
|
|
1495
1510
|
else if (site.id === 'river') accName = `River AI (${identity || '会话'})`;
|
|
1496
1511
|
else if (site.id === 'modelscope') accName = `ModelScope (${identity || '会话'})`;
|
|
1497
1512
|
else if (site.id === 'longcat') accName = `LongCat (${identity || '会话'})`;
|
|
1513
|
+
else if (site.id === 'lingxi') accName = site.accountName + (lxUidMasked ? `(${lxUidMasked})` : ''); // uid 后缀脱敏(前3后3),归户仍用原始 uid
|
|
1498
1514
|
else accName = site.accountName + (identity ? `(${identity})` : '');
|
|
1499
1515
|
// 自动行名只在「没手改过且现名属自动名家族」时写入(meta.renamed + isAutoGeneratedName 双闸)
|
|
1500
1516
|
const autoName = (row) => { if (canAutoRename(site, row)) row.name = accName; };
|
|
@@ -1502,6 +1518,7 @@ async function handleApi(req, res, url) {
|
|
|
1502
1518
|
hit.token = cred;
|
|
1503
1519
|
if (mimoUserId) { hit.uid = mimoUserId; autoName(hit); }
|
|
1504
1520
|
if (riverUid) { hit.uid = riverUid; autoName(hit); }
|
|
1521
|
+
if (riverSession?.expiresAt) hit.expiresAt = riverSession.expiresAt;
|
|
1505
1522
|
if (msSession && (msSession.id || msSession.email || msSession.name)) {
|
|
1506
1523
|
if (msSession.id) hit.uid = String(msSession.id);
|
|
1507
1524
|
autoName(hit);
|
|
@@ -1528,7 +1545,8 @@ async function handleApi(req, res, url) {
|
|
|
1528
1545
|
name: accName,
|
|
1529
1546
|
provider: site.provider,
|
|
1530
1547
|
token: cred,
|
|
1531
|
-
|
|
1548
|
+
expiresAt: site.id === 'river' ? (riverSession?.expiresAt || undefined) : undefined,
|
|
1549
|
+
uid: mimoUserId || riverUid || (msSession?.id ? String(msSession.id) : undefined) || (lcSession?.userId ? String(lcSession.userId) : undefined) || (lxUid ? String(lxUid) : undefined) || undefined,
|
|
1532
1550
|
source: 'web-session',
|
|
1533
1551
|
meta: {
|
|
1534
1552
|
cookieSiteId: site.id,
|
|
@@ -1747,18 +1765,27 @@ async function handleApi(req, res, url) {
|
|
|
1747
1765
|
const tr = await traeLiveAccount();
|
|
1748
1766
|
// 国际版客户端(信封 host 为 *.trae.ai):CD 的 Trae 线只打 api.trae.cn,导入只会有
|
|
1749
1767
|
// 一张空额度卡——照常列出让用户可见,但带 intlWarning 由前端明确提示,不静默。
|
|
1750
|
-
if (tr) addRecord(tr, { source: 'Trae 当前登录', current: true, ...(tr.meta?.isIntl ? { intlWarning: '检测到 Trae 国际版客户端(trae.ai
|
|
1768
|
+
if (tr) addRecord(tr, { source: 'Trae 当前登录', current: true, ...(tr.meta?.isIntl ? { intlWarning: '检测到 Trae 国际版客户端(trae.ai)——国际账号可导入并同步 10Router,但额度与签到无 API 口径(Dollar Usage 只在官网 Usage 页可见)' } : {}) });
|
|
1751
1769
|
} catch (e) { errors.push({ file: 'TRAE/User/globalStorage/storage.json', error: e.message }); }
|
|
1752
1770
|
// 7) MiniMax 客户端:读取 ~/.minimax 凭据当前登录
|
|
1753
1771
|
// 7) MiniMax 客户端:读取 ~/.minimax 凭据当前登录(国内 cn / 国际 en 两目录独立,#54——
|
|
1754
|
-
// 各自可能登录不同账号,都要收割;没有对应目录时 liveToAccount 返回 null
|
|
1772
|
+
// 各自可能登录不同账号,都要收割;没有对应目录时 liveToAccount 返回 null)。
|
|
1773
|
+
// 构建语言版与账号线不一致时带 intlWarning:exe 只有一个「当前装的语言版」,
|
|
1774
|
+
// 错口凭据在本客户端里登录不上(两套安装包同名同路径、后装覆盖先装,凭据目录互不干扰)
|
|
1775
|
+
const mmBuild = detectMiniMaxBuildLang();
|
|
1755
1776
|
try {
|
|
1756
1777
|
const mm = await minimaxLiveAccount('cn');
|
|
1757
|
-
if (mm) addRecord(mm, {
|
|
1778
|
+
if (mm) addRecord(mm, {
|
|
1779
|
+
source: 'MiniMax 当前登录', current: true,
|
|
1780
|
+
...(mmBuild === 'en' ? { intlWarning: '当前安装的 MiniMax Code 是国际版构建(更新源 minimax.io),国内版账号在该客户端里无法登录——请到国内站安装中文版客户端(覆盖安装即可,两套凭据互不干扰)' } : {}),
|
|
1781
|
+
});
|
|
1758
1782
|
} catch (e) { errors.push({ file: '~/.minimax/auth/prod/cn/.../auth.json', error: e.message }); }
|
|
1759
1783
|
try {
|
|
1760
1784
|
const mmg = await minimaxLiveAccount('global');
|
|
1761
|
-
if (mmg) addRecord(mmg, {
|
|
1785
|
+
if (mmg) addRecord(mmg, {
|
|
1786
|
+
source: 'MiniMax 国际版当前登录', current: true,
|
|
1787
|
+
...(mmBuild === 'cn' ? { intlWarning: '当前安装的 MiniMax Code 是国内版构建(更新源 minimax.chat),国际版账号在该客户端里无法登录——请到国际站 agent.minimax.io 安装英文版客户端(覆盖安装即可,两套凭据互不干扰)' } : {}),
|
|
1788
|
+
});
|
|
1762
1789
|
} catch (e) { errors.push({ file: '~/.minimax/auth/prod/en/.../auth.json', error: e.message }); }
|
|
1763
1790
|
// 8) 讯飞 Loomy 客户端:读取 Public\Loomy\userData\auth-session.json 当前登录
|
|
1764
1791
|
try {
|
|
@@ -2037,6 +2064,7 @@ async function handleApi(req, res, url) {
|
|
|
2037
2064
|
workbuddy: dayKey(Date.now(), 'workbuddy'),
|
|
2038
2065
|
trae: dayKey(Date.now(), 'trae'),
|
|
2039
2066
|
minimax: dayKey(Date.now(), 'minimax'),
|
|
2067
|
+
lingxi: dayKey(Date.now(), 'lingxi'), // 网页会话签到线(#53):0 点翻日,徽标/isDone 的日界比对用
|
|
2040
2068
|
},
|
|
2041
2069
|
scheduler: await getSchedulerInfo(),
|
|
2042
2070
|
riskIdentity: riskIdentityAvailable(),
|
|
@@ -2073,7 +2101,7 @@ async function handleApi(req, res, url) {
|
|
|
2073
2101
|
},
|
|
2074
2102
|
minimaxCurrentUid: mmLiveUid,
|
|
2075
2103
|
minimaxGlobalCurrentUid: mmgLiveUid,
|
|
2076
|
-
minimaxClient: (() => { const d = detectMiniMax('cn'); return { installed: d.installed, signedIn: d.signedIn, running: d.running }; })(),
|
|
2104
|
+
minimaxClient: (() => { const d = detectMiniMax('cn'); return { installed: d.installed, signedIn: d.signedIn, running: d.running, buildLang: d.buildLang }; })(),
|
|
2077
2105
|
loomyCurrentUid: currentLoomyUid(),
|
|
2078
2106
|
loomyClient: (() => { const d = detectLoomy(); return { installed: d.clientInstalled, signedIn: d.signedIn, running: d.running }; })(),
|
|
2079
2107
|
keyRequired: panelKeyRequired(),
|