creditdaddy 1.8.1 → 1.8.3
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/README.md +7 -8
- package/bin/creditdaddy.js +55 -1
- package/build.json +3 -3
- package/package.json +2 -2
- package/src/assets/providers/croli.png +0 -0
- package/src/authDevice.js +4 -0
- package/src/checkin.js +19 -2
- package/src/constants.js +5 -1
- package/src/cookieSites.js +408 -340
- package/src/croliAuth.js +268 -0
- package/src/croliClient.js +276 -0
- package/src/croliLocal.js +249 -0
- package/src/crowllmClient.js +178 -0
- package/src/daemon.js +165 -18
- package/src/externalQuota.js +78 -2
- package/src/i18n/en.json +149 -1
- package/src/i18n/ja.json +149 -1
- package/src/i18n/ko.json +149 -1
- package/src/i18n/zh-TW.json +149 -1
- package/src/panel.html +503 -68
- package/src/prodIcons.json +2 -1
- package/src/providers.js +17 -0
- package/src/store.js +60 -5
- package/src/tenrouter.js +1 -1
- package/src/tenrouterAccounts.js +102 -4
- package/src/tray/autostart.js +199 -0
- package/src/tray/icon-brand.png +0 -0
- package/src/tray/icon-mono-black.ico +0 -0
- package/src/tray/icon-mono-white.ico +0 -0
- package/src/tray/icon-template.png +0 -0
- package/src/tray/icon.ico +0 -0
- package/src/tray/icon.png +0 -0
- package/src/tray/tray.js +249 -0
- package/src/tray/tray.ps1 +130 -0
- package/src/tray/trayRuntime.js +90 -0
- package/src/tray/trayWin.js +121 -0
- package/src/usageSync.js +78 -6
- package/src/zcodeClient.js +17 -1
package/src/daemon.js
CHANGED
|
@@ -69,6 +69,7 @@ import { liveToAccount as traeLiveAccount, detectTrae, switchTo as traeSwitchTo,
|
|
|
69
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 { liveToAccount as dumateLiveAccount, detectDumate, readDumateCredential, hardSwitchDumate } from './dumateLocal.js';
|
|
72
|
+
import { liveToAccount as croliLiveAccount, detectCroli, readCroliCredential, hardSwitchCroli, croliSubOf as croliUidOf } from './croliLocal.js';
|
|
72
73
|
import * as minimaxGateway from './minimaxGateway.js';
|
|
73
74
|
import * as traeGateway from './traeGateway.js';
|
|
74
75
|
import { fetchClaimPlans, claimPlan, fetchCaptchaConfig, proxyFirst, setProxyFirst, proxyUrl, setProxyUrl, autoClaimEnabled, autoClaimUntil, setAutoClaimEnabled, claimIntervalMin, setClaimIntervalMin, claimWindowMin, setClaimWindowMin, dailyClaimPlan, setDailyClaimPlan } from './zcodeClient.js';
|
|
@@ -87,7 +88,7 @@ import { detectInstalls, scanLocalTokens, putCandidate, peekCandidate } from './
|
|
|
87
88
|
import { PROVIDER_LABEL, APP_VERSION, PROVIDERS, PROJECT_URL } from './constants.js';
|
|
88
89
|
import { getLocale, setLocale, normalizeLocale, loadDict, t as tr } from './i18n.js';
|
|
89
90
|
|
|
90
|
-
const PRODUCT_IDS = ['qoder', 'workbuddy', 'zcode', 'mirasim', 'catpaw', 'trae', 'minimax', 'loomy', 'dumate'];
|
|
91
|
+
const PRODUCT_IDS = ['qoder', 'workbuddy', 'zcode', 'mirasim', 'catpaw', 'trae', 'minimax', 'loomy', 'dumate', 'croli'];
|
|
91
92
|
|
|
92
93
|
/** 面板访问密码:面板「设置」写入的 settings.json.panelKey 优先(可设 / 可关);
|
|
93
94
|
* 未设置(或被面板关闭)时回退环境变量 CREDITDADDY_PASSWORD(fnOS / 命令行部署注入),
|
|
@@ -812,6 +813,8 @@ async function handleApi(req, res, url) {
|
|
|
812
813
|
const site = getSite(account.meta.cookieSiteId);
|
|
813
814
|
if (!site) return json(res, 404, { error: `站点 ${account.meta.cookieSiteId} 未配置` });
|
|
814
815
|
if (site.disabled === true) return json(res, 410, { error: '该站点已停用(issue #35),不再探测上游' });
|
|
816
|
+
// noReprobe 站点(crowllm):Node 探针进 CF 盾必假阴性——重探不落痕迹,续期走登录窗
|
|
817
|
+
if (site.noReprobe === true) return json(res, 409, { error: '该站点走登录窗静默续期(点「网页版」打开即自动完成),无需重探' });
|
|
815
818
|
// 频率治理(面板 2 分钟自动轮询曾把五家上游全轰一遍):默认读缓存快照零网络,
|
|
816
819
|
// 仅 ?live=1(手动「刷新积分」按钮 / 单卡回调)才真探上游并回填快照。缓存保鲜交给
|
|
817
820
|
// 后台推送循环(default 60 分钟)——它 live 拉到的余额本就该落库,顺手把这条链补上。
|
|
@@ -846,7 +849,10 @@ async function handleApi(req, res, url) {
|
|
|
846
849
|
const ctx = { log, ...refreshContext(account, log) };
|
|
847
850
|
return json(res, 200, { quota: await productImpl(account.provider).quota(account, ctx) });
|
|
848
851
|
} catch (e) {
|
|
849
|
-
|
|
852
|
+
// err.auth(croliClient 等抛的凭据失效标记)随 502 带出——面板 expiryCell 据此把
|
|
853
|
+
// 「凭据有效·自动续期」假绿灯改写成「续期失败·请重新授权」(refresh 轮换制下
|
|
854
|
+
// 客户端退出即作废快照 rt,光有 expiresAt 的预期值会误导)
|
|
855
|
+
return json(res, 502, { error: e.message, auth: e.auth === true });
|
|
850
856
|
}
|
|
851
857
|
}
|
|
852
858
|
|
|
@@ -1014,6 +1020,32 @@ async function handleApi(req, res, url) {
|
|
|
1014
1020
|
if (!r.ok) return json(res, r.auth === false ? 401 : 502, { error: r.error });
|
|
1015
1021
|
return json(res, 200, { ok: true, code: r.code, type: r.type, activityId: r.activityId });
|
|
1016
1022
|
}
|
|
1023
|
+
// Croli 邀请码兑换:POST /v1/invite/redeem {inviteCode, source}(好友安装 Croli 并完成首个任务后双方得积分)
|
|
1024
|
+
const croliInviteMatch = p.match(/^\/api\/accounts\/([\w-]+)\/croli\/invite$/);
|
|
1025
|
+
if (croliInviteMatch && method === 'POST') {
|
|
1026
|
+
const body = await readBody(req).catch(() => ({}));
|
|
1027
|
+
const code = String(body?.code || '').trim();
|
|
1028
|
+
if (!code) return json(res, 400, { error: '邀请码不能为空' });
|
|
1029
|
+
const accounts = await loadAccounts();
|
|
1030
|
+
const account = accounts.find((a) => a.id === croliInviteMatch[1] && a.provider === 'croli');
|
|
1031
|
+
if (!account) return json(res, 404, { error: 'Croli 账号不存在' });
|
|
1032
|
+
const { redeemCroliInviteCode } = await import('./croliClient.js');
|
|
1033
|
+
const r = await redeemCroliInviteCode(account.token, code);
|
|
1034
|
+
if (!r.ok) return json(res, r.authExpired ? 401 : 400, { error: r.error });
|
|
1035
|
+
logger.info('DAEMON', 'Croli {name} 邀请码已兑换:{code}', { name: account.name, code });
|
|
1036
|
+
return json(res, 200, { ok: true, message: r.message, result: r.result });
|
|
1037
|
+
}
|
|
1038
|
+
// Croli 我的邀请码:POST /v1/invite/code {rotate:false}(只读不轮换)
|
|
1039
|
+
const croliMyInviteMatch = p.match(/^\/api\/accounts\/([\w-]+)\/croli\/my-invite-code$/);
|
|
1040
|
+
if (croliMyInviteMatch && method === 'GET') {
|
|
1041
|
+
const accounts = await loadAccounts();
|
|
1042
|
+
const account = accounts.find((a) => a.id === croliMyInviteMatch[1] && a.provider === 'croli');
|
|
1043
|
+
if (!account) return json(res, 404, { error: 'Croli 账号不存在' });
|
|
1044
|
+
const { fetchCroliMyInviteCode } = await import('./croliClient.js');
|
|
1045
|
+
const r = await fetchCroliMyInviteCode(account.token);
|
|
1046
|
+
if (!r.ok) return json(res, r.auth === false ? 401 : 502, { error: r.error });
|
|
1047
|
+
return json(res, 200, { ok: true, code: r.code, inviterRewardCredits: r.inviterRewardCredits, inviteeRewardCredits: r.inviteeRewardCredits });
|
|
1048
|
+
}
|
|
1017
1049
|
// 网络出口偏好(全局——Qoder/ZCode/cookie 探测等全部出口都走它):默认「直连优先、代理兜底」,
|
|
1018
1050
|
// 可切「代理优先、直连兜底」;代理地址可面板配置(存 zcode-net.json,0600;键名 zcode 前缀是历史遗留)
|
|
1019
1051
|
// 自动领取开启时附带 1 小时时限(autoClaimUntil),到期调度器自动关闭并停止轮询
|
|
@@ -1118,16 +1150,12 @@ async function handleApi(req, res, url) {
|
|
|
1118
1150
|
if (body?.autoClaim !== undefined) {
|
|
1119
1151
|
if (body.autoClaim === true) enableZcodeAutoClaimWindow(); // 开 = 按「自动领取计划」启动(2 分钟后首轮)
|
|
1120
1152
|
else {
|
|
1121
|
-
// 关 =
|
|
1122
|
-
//
|
|
1123
|
-
//
|
|
1153
|
+
// 关 = 只停单次窗口,**每日定时计划保留**(2026-11-20 用户实测推翻 11-17 的
|
|
1154
|
+
// 「防隔夜复活」联动:弹窗明确写着「单次窗口与每日定时互不影响」,停止把
|
|
1155
|
+
// 定时也连坐关闭与文案自相矛盾——用户排好 20:00 的计划被一次手动停用抹掉)。
|
|
1156
|
+
// 每日计划的启停只由「每日定时」开关自己控制,两者真正解耦。
|
|
1124
1157
|
setAutoClaimEnabled(false);
|
|
1125
1158
|
refreshZcodeScheduler();
|
|
1126
|
-
if (body?.dailyPlan === undefined && dailyClaimPlan().enabled) {
|
|
1127
|
-
setDailyClaimPlan({ enabled: false });
|
|
1128
|
-
refreshZcodeDailyPlan();
|
|
1129
|
-
logger.info('DAEMON', 'ZCode 每日定时计划已随手动停用一并关闭(防隔夜复活继续撞接口)', {});
|
|
1130
|
-
}
|
|
1131
1159
|
}
|
|
1132
1160
|
}
|
|
1133
1161
|
} catch (e) { return json(res, 400, { error: e.message }); }
|
|
@@ -1255,6 +1283,26 @@ async function handleApi(req, res, url) {
|
|
|
1255
1283
|
return json(res, e.dumateNotInstalled ? 409 : 400, { error: e.message, code: e.dumateNotInstalled ? 'DUMATE_NOT_INSTALLED' : undefined });
|
|
1256
1284
|
}
|
|
1257
1285
|
}
|
|
1286
|
+
if (target.provider === 'croli') {
|
|
1287
|
+
try {
|
|
1288
|
+
// 防丢号:切前把本机当前登录的最新凭据快照回写账号库(sidecar 会自动轮换
|
|
1289
|
+
// refresh token,账号库里的旧快照可能已被作废),再覆盖
|
|
1290
|
+
const live = await croliLiveAccount();
|
|
1291
|
+
if (live && live.token && live.token !== target.token) {
|
|
1292
|
+
await addAccount(live, { trusted: true }).catch((e) => logger.warn('DAEMON', '同步 Croli 当前登录失败:{err}', { err: e.message }));
|
|
1293
|
+
}
|
|
1294
|
+
} catch (e) {}
|
|
1295
|
+
try {
|
|
1296
|
+
// 硬切换:杀壳 + croli-server sidecar → 原子写 auth.json → 延时复核;面板收到 closedClient 后重开客户端。
|
|
1297
|
+
// refresh 轮换制:写入的 rt 快照可能已被客户端刷过作废——失效时用户在客户端重登该账号再导入
|
|
1298
|
+
const r = await hardSwitchCroli(target);
|
|
1299
|
+
logger.info('DAEMON', r.alreadyActive ? 'Croli 当前已是 {name}' : r.verified ? 'Croli 已切换到 {name}(凭据已写入并重开客户端)' : 'Croli 已切换到 {name},但凭据复核未落定(疑似有进程回写)', { name: target.name || target.id });
|
|
1300
|
+
return json(res, 200, { ok: true, ...r });
|
|
1301
|
+
} catch (e) {
|
|
1302
|
+
logger.warn('DAEMON', 'Croli 切换到 {name} 失败:{err}', { name: target.name || target.id, err: e.message });
|
|
1303
|
+
return json(res, e.croliNotInstalled ? 409 : 400, { error: e.message, code: e.croliNotInstalled ? 'CROLI_NOT_INSTALLED' : undefined });
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1258
1306
|
if (target.provider === 'qoder' || target.provider === 'qoder-cn') {
|
|
1259
1307
|
// 防丢号:先把本机当前登录的最新 auth 快照回写账号库(客户端会静默刷新 token,旧快照可能已失效),再覆盖
|
|
1260
1308
|
try {
|
|
@@ -1441,6 +1489,21 @@ async function handleApi(req, res, url) {
|
|
|
1441
1489
|
return json(res, 200, { ok: true, bound });
|
|
1442
1490
|
}
|
|
1443
1491
|
|
|
1492
|
+
// ── CrowLLM 自动续期(B 方案):desktop 侧定时器每 14 分钟查活跃槽位清单,
|
|
1493
|
+
// 对每槽的 persist 分区开隐藏窗静默重登(GitHub 会话 → SPA 静默 OAuth → CDP
|
|
1494
|
+
// 摘新 JWT)→ POST capture 走既有流程。无 crowllm 账号时返回空清单,定时器跳过。
|
|
1495
|
+
if (p === '/api/cookie-sites/crowllm/slots' && method === 'GET') {
|
|
1496
|
+
try {
|
|
1497
|
+
const accounts = await loadAccounts();
|
|
1498
|
+
const slots = [...new Set(accounts
|
|
1499
|
+
.filter((a) => a.provider === 'crowllm' && (a.meta?.crowllmSession?.jwt || a.token))
|
|
1500
|
+
.map((a) => (Number(a.meta?.cookieSlot) > 1 ? Math.trunc(Number(a.meta.cookieSlot)) : 1)))];
|
|
1501
|
+
return json(res, 200, { slots });
|
|
1502
|
+
} catch (e) {
|
|
1503
|
+
return json(res, 500, { error: e.message });
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1444
1507
|
// ── 通用 cookie 站点捕获(issue #23):登录窗口收割 → 探测 → 入账号库(provider=site.provider)
|
|
1445
1508
|
if (p === '/api/cookie-sites' && method === 'GET') {
|
|
1446
1509
|
const accounts = await loadAccounts();
|
|
@@ -1466,6 +1529,7 @@ async function handleApi(req, res, url) {
|
|
|
1466
1529
|
return {
|
|
1467
1530
|
id: site.id, name: site.name, label: site.label, loginUrl: site.loginUrl, hint: site.hint,
|
|
1468
1531
|
...(site.no10rSync === true ? { no10rSync: true } : {}),
|
|
1532
|
+
...(site.noReprobe === true ? { noReprobe: true } : {}), // 面板重探按钮 → 登录窗静默续期
|
|
1469
1533
|
...(site.hideFromWebPage === true ? { hideFromWebPage: true } : {}),
|
|
1470
1534
|
accountId: rows[0]?.id || null, capturedAt: latest, accounts: rows,
|
|
1471
1535
|
};
|
|
@@ -1481,7 +1545,7 @@ async function handleApi(req, res, url) {
|
|
|
1481
1545
|
// 会话槽(Chrome 多 profile 等价物):槽 1 = 既有分区 cookie-site-<id>(存量登录态零迁移),
|
|
1482
1546
|
// 槽 N≥2 = cookie-site-<id>-sN。捕获窗登录在哪个槽,收割上报就带哪个 slot——落账号
|
|
1483
1547
|
// meta.cookieSlot,行上显示「会话 N」徽章;不同槽各自是独立的持久登录分区(多池并存)。
|
|
1484
|
-
const cookieSlot = Number(body?.slot) === Number(body?.slot) && Number(body?.slot) >= 1 && Number(body?.slot) <=
|
|
1548
|
+
const cookieSlot = Number(body?.slot) === Number(body?.slot) && Number(body?.slot) >= 1 && Number(body?.slot) <= 6
|
|
1485
1549
|
? Math.trunc(Number(body?.slot)) : 1;
|
|
1486
1550
|
const cookie = String(body?.cookie || '').trim();
|
|
1487
1551
|
// localStorage 凭据线(river = WorkOS SPA 会话):cookie 无关,探测走站点自有 API
|
|
@@ -1546,6 +1610,8 @@ async function handleApi(req, res, url) {
|
|
|
1546
1610
|
// 实测(2026-10-14):SPA token 只在内存,localStorage 通常空——cookie 是主通道。
|
|
1547
1611
|
let riverSession = null;
|
|
1548
1612
|
let riverBalance = null;
|
|
1613
|
+
// CrowLLM 会话 JWT(CDP 嗅探所得,15 分钟寿命)——crowllm 专属段赋值,账号写入段落 meta
|
|
1614
|
+
let crowllmJwt = null;
|
|
1549
1615
|
if (site.id === 'river') {
|
|
1550
1616
|
try {
|
|
1551
1617
|
const { parseRiverSession, fetchRiverBalance } = await import('./riverClient.js');
|
|
@@ -1581,6 +1647,35 @@ async function handleApi(req, res, url) {
|
|
|
1581
1647
|
}
|
|
1582
1648
|
}
|
|
1583
1649
|
|
|
1650
|
+
// CrowLLM:钱包数据在 /api/user/self,凭据是登录窗 CDP 嗅探的 15 分钟 JWT
|
|
1651
|
+
//(storage 同形键 crowllm:access-jwt,desktop 侧从 XHR Authorization 头摘取——
|
|
1652
|
+
// 这个 fork 无 session Cookie、密码登录带 Turnstile,服务端持有式凭据全线不通)。
|
|
1653
|
+
// JWT 过期后重开登录窗即可(GitHub 会话持久分区静默重跑 OAuth)。
|
|
1654
|
+
if (site.id === 'crowllm') {
|
|
1655
|
+
try {
|
|
1656
|
+
const { fetchCrowllmWallet } = await import('./crowllmClient.js');
|
|
1657
|
+
const jwt = storage['crowllm:access-jwt'] || null;
|
|
1658
|
+
if (!jwt) {
|
|
1659
|
+
logger.warn('COOKIE-SITE', '{name} 未嗅探到访问 JWT', { name: site.name });
|
|
1660
|
+
return json(res, 400, { error: '未读到 CrowLLM 访问令牌——请在登录窗登录 crowllm.com 并进入钱包页后关闭(CDP 需在页面请求发生时嗅探)' });
|
|
1661
|
+
}
|
|
1662
|
+
const w = await fetchCrowllmWallet(jwt);
|
|
1663
|
+
if (!w.auth) {
|
|
1664
|
+
logger.warn('COOKIE-SITE', '{name} 钱包探测被拒:{code}', { name: site.name, code: w.code });
|
|
1665
|
+
return json(res, 401, { error: '会话不可用,请重新登录 crowllm.com 后再捕获(' + (w.code || '探测失败') + ')' });
|
|
1666
|
+
}
|
|
1667
|
+
identity = w.username || w.email || null;
|
|
1668
|
+
quotaSnapshot = { used: 0, total: w.balanceUsd, isCreditBalance: true, giftUsd: w.giftUsd ?? null, paidUsd: w.paidUsd ?? 0, at: now };
|
|
1669
|
+
// JWT 存进账号 meta:推卡轮实时续查用(15 分钟寿命,过期则下轮 live 401 →
|
|
1670
|
+
// 快照兜底 + dead 标记,用户重开登录窗即恢复全自动)
|
|
1671
|
+
crowllmJwt = jwt;
|
|
1672
|
+
logger.info('COOKIE-SITE', '{name} 钱包探测通过(余额 ${balance},赠送 {gift},身份 {identity})', { name: site.name, balance: w.balanceUsd, gift: w.giftUsd ?? '—', identity: identity || '—' });
|
|
1673
|
+
} catch (cwErr) {
|
|
1674
|
+
logger.warn('COOKIE-SITE', '{name} 钱包抓取异常:{err}', { name: site.name, err: cwErr.message });
|
|
1675
|
+
return json(res, 502, { error: '探测站点失败:' + (cwErr.message || '') });
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1584
1679
|
// modelsscope(CD#25):魔粒余额 API 即探测;每日额度自动发放(无签到动作端点),只读余额
|
|
1585
1680
|
let msSession = null;
|
|
1586
1681
|
let msBalance = null;
|
|
@@ -1748,7 +1843,9 @@ async function handleApi(req, res, url) {
|
|
|
1748
1843
|
|
|
1749
1844
|
const ih = identityHashOf(mimoUserId || riverSession?.user?.id || msSession?.id || lcSession?.userId || identity);
|
|
1750
1845
|
const quotaMeta = quotaSnapshot ? { quotaSnapshot: { ...quotaSnapshot, at: now } } : {};
|
|
1751
|
-
|
|
1846
|
+
// 落盘的凭据主体:river 存 WorkOS access token;crowllm 存嗅探 JWT(推卡轮 Bearer 续查);
|
|
1847
|
+
// 其余站点存 Cookie 串
|
|
1848
|
+
const cred = riverSession ? riverSession.accessToken : (crowllmJwt || cookie);
|
|
1752
1849
|
const riverUid = riverSession?.user?.id || null;
|
|
1753
1850
|
let accountId = null;
|
|
1754
1851
|
await withAccounts((list) => {
|
|
@@ -1791,6 +1888,8 @@ async function handleApi(req, res, url) {
|
|
|
1791
1888
|
...(lcPacks ? { longcatPacks: longcatSnapshot(lcPacks) } : {}),
|
|
1792
1889
|
...(lcSession ? { longcatSession: lcSession } : {}),
|
|
1793
1890
|
...(lxSnapshot ? { lingxiPacks: lxSnapshot } : {}),
|
|
1891
|
+
...(crowllmJwt ? { crowllmSession: { jwt: crowllmJwt, capturedAt: now } } : {}),
|
|
1892
|
+
lastProbe: { ok: true, status: 'ok', error: null, at: now }, // 探测已通过——上次 dead/warn 翻绿(自动重放成功后红点不残留)
|
|
1794
1893
|
};
|
|
1795
1894
|
if (meooUserId) { hit.uid = String(meooUserId); autoName(hit); }
|
|
1796
1895
|
if (meooGrants) hit.meta.meooGrants = meooGrants;
|
|
@@ -1816,6 +1915,8 @@ async function handleApi(req, res, url) {
|
|
|
1816
1915
|
...(mimoBalance ? { mimoBalance } : {}),
|
|
1817
1916
|
...(riverSession ? { workosSession: riverSession, workosUser: riverSession.user || {} } : {}),
|
|
1818
1917
|
...(riverBalance ? { riverBalance } : {}),
|
|
1918
|
+
...(crowllmJwt ? { crowllmSession: { jwt: crowllmJwt, capturedAt: now } } : {}),
|
|
1919
|
+
lastProbe: { ok: true, status: 'ok', error: null, at: now }, // 探测已通过——上次 dead/warn 翻绿(自动重放成功后红点不残留)
|
|
1819
1920
|
...(msSession ? { msSession, msBalance } : {}),
|
|
1820
1921
|
...(lcPacks ? { longcatPacks: longcatSnapshot(lcPacks) } : {}),
|
|
1821
1922
|
...(lcSession ? { longcatSession: lcSession } : {}),
|
|
@@ -1965,7 +2066,7 @@ async function handleApi(req, res, url) {
|
|
|
1965
2066
|
|
|
1966
2067
|
// ── 本机检测 / 凭据扫描 ──
|
|
1967
2068
|
if (p === '/api/local/detect' && method === 'GET') {
|
|
1968
|
-
return json(res, 200, { apps: detectQoderApps(), workbuddyDir: workbuddyAuthDir(), zcode: detectZcode(), mirasim: detectMirasim(), catpaw: detectCatpaw(), trae: detectTrae(), minimax: detectMiniMax(), loomy: detectLoomy(), dumate: detectDumate(), legacy: detectInstalls() });
|
|
2069
|
+
return json(res, 200, { apps: detectQoderApps(), workbuddyDir: workbuddyAuthDir(), zcode: detectZcode(), mirasim: detectMirasim(), catpaw: detectCatpaw(), trae: detectTrae(), minimax: detectMiniMax(), loomy: detectLoomy(), dumate: detectDumate(), croli: detectCroli(), legacy: detectInstalls() });
|
|
1969
2070
|
}
|
|
1970
2071
|
if (p === '/api/local/scan' && method === 'POST') {
|
|
1971
2072
|
const existing = await loadAccounts();
|
|
@@ -2057,6 +2158,11 @@ async function handleApi(req, res, url) {
|
|
|
2057
2158
|
const dm = await dumateLiveAccount();
|
|
2058
2159
|
if (dm) addRecord(dm, { source: 'DuMate 当前登录', current: true });
|
|
2059
2160
|
} catch (e) { errors.push({ file: 'qianfan-desktop-app/auth.json', error: e.message }); }
|
|
2161
|
+
// 8.6) Croli 客户端:直读 %APPDATA%\Croli\auth.json(明文 Clerk JWT,sidecar 自动续期)
|
|
2162
|
+
try {
|
|
2163
|
+
const cl = await croliLiveAccount();
|
|
2164
|
+
if (cl) addRecord(cl, { source: 'Croli 当前登录', current: true });
|
|
2165
|
+
} catch (e) { errors.push({ file: 'Croli/auth.json', error: e.message }); }
|
|
2060
2166
|
// 9) CodeBuddy IDE 桌面客户端(issue #51):state.vscdb + Chromium Safe Storage。
|
|
2061
2167
|
// 与 WorkBuddy 账号体系同源(token 由同一 realm 签发),provider 由 inspectToken 决定;
|
|
2062
2168
|
// 存储却完全不同(SQLite + DPAPI 加密),所以单列一条线。国内版 / 国际版各试一次。
|
|
@@ -2332,6 +2438,8 @@ async function handleApi(req, res, url) {
|
|
|
2332
2438
|
lingxi: dayKey(Date.now(), 'lingxi'), // 网页会话签到线(#53):0 点翻日,徽标/isDone 的日界比对用
|
|
2333
2439
|
meoo: dayKey(Date.now(), 'meoo'), // Meoo 首登积分线:同为 0 点翻日
|
|
2334
2440
|
dumate: dayKey(Date.now(), 'dumate'), // DuMate 每日登录赠送积分:0 点翻日
|
|
2441
|
+
croli: dayKey(Date.now(), 'croli'), // Croli 每日签到:0 点翻日
|
|
2442
|
+
zcode: dayKey(Date.now(), 'zcode'), // ZCode 活动领取:单日活动 0 点刷新——徽标按日界而非 26h 窗口(2026-11-20 用户实测「还有前一天的领取记录」)
|
|
2335
2443
|
},
|
|
2336
2444
|
scheduler: await getSchedulerInfo(),
|
|
2337
2445
|
riskIdentity: riskIdentityAvailable(),
|
|
@@ -2373,6 +2481,8 @@ async function handleApi(req, res, url) {
|
|
|
2373
2481
|
loomyClient: (() => { const d = detectLoomy(); return { installed: d.clientInstalled, signedIn: d.signedIn, running: d.running }; })(),
|
|
2374
2482
|
dumateClient: (() => { const d = detectDumate(); return { installed: d.clientInstalled, signedIn: d.signedIn, running: d.running }; })(),
|
|
2375
2483
|
dumateCurrentUid: readDumateCredential()?.uid || null,
|
|
2484
|
+
croliClient: (() => { const d = detectCroli(); return { installed: d.installed, signedIn: d.signedIn, running: d.running, expired: d.expired }; })(),
|
|
2485
|
+
croliCurrentUid: (() => { const c = readCroliCredential(); return c ? (croliUidOf(c.accessToken) || null) : null; })(),
|
|
2376
2486
|
keyRequired: panelKeyRequired(),
|
|
2377
2487
|
});
|
|
2378
2488
|
}
|
|
@@ -2705,11 +2815,48 @@ export async function startDaemon(port = DEFAULT_PORT, host = '127.0.0.1') {
|
|
|
2705
2815
|
const onListening = () => {
|
|
2706
2816
|
server.off('error', onError);
|
|
2707
2817
|
const bound = server.address().port;
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2818
|
+
// 自探防线(2026-11-19 双实例事故,结构修复):Windows 上 0.0.0.0 通配绑定会与已存在的
|
|
2819
|
+
// 127.0.0.1 精确绑定【共存】(EADDRINUSE 不触发)——本机 0.9.1 旧 daemon 与新版同端口
|
|
2820
|
+
// 双服务、数据目录混写的事故即此成因。listen 成功后立刻探 127.0.0.1 的回环:应答方
|
|
2821
|
+
// version 与自己不一致 = 端口被旧版本占着,断开自换下个端口,绝不与它共端口的混写。
|
|
2822
|
+
const selfProbe = () => new Promise((done) => {
|
|
2823
|
+
const probeHost = LOOPBACK_HOSTS.has(host) ? host : '127.0.0.1';
|
|
2824
|
+
const req = http.request(
|
|
2825
|
+
{ host: probeHost, port: bound, path: '/api/status', method: 'GET', headers: { Host: `${probeHost}:${bound}` } },
|
|
2826
|
+
(res) => {
|
|
2827
|
+
const chunks = [];
|
|
2828
|
+
res.on('data', (c) => chunks.push(c));
|
|
2829
|
+
res.on('end', () => {
|
|
2830
|
+
let version = null;
|
|
2831
|
+
try { version = JSON.parse(Buffer.concat(chunks).toString('utf8'))?.version || null; } catch {}
|
|
2832
|
+
done(version);
|
|
2833
|
+
});
|
|
2834
|
+
},
|
|
2835
|
+
);
|
|
2836
|
+
req.on('error', () => done(null));
|
|
2837
|
+
req.setTimeout(2000, () => { req.destroy(); done(null); });
|
|
2838
|
+
req.end();
|
|
2839
|
+
});
|
|
2840
|
+
selfProbe().then((servingVersion) => {
|
|
2841
|
+
if (servingVersion && servingVersion !== APP_VERSION) {
|
|
2842
|
+
server.close();
|
|
2843
|
+
attempts += 1;
|
|
2844
|
+
if (attempts < 100 && !triedFallback) {
|
|
2845
|
+
logger.error('DAEMON', '端口 {port} 被旧版本实例(v{serving})占用——双服务会混写数据目录,换试 {next}。请卸载旧版(如 npm uninstall -g creditdaddy)或 creditdaddy stop', { port: bound, serving: servingVersion, next: bound + 1 });
|
|
2846
|
+
setTimeout(() => bind(bound + 1), 30);
|
|
2847
|
+
} else {
|
|
2848
|
+
logger.error('DAEMON', '连续多个端口都有异版本实例在响应——疑似系统异常,回退随机端口', {});
|
|
2849
|
+
triedFallback = true;
|
|
2850
|
+
setTimeout(() => bind(0), 30);
|
|
2851
|
+
}
|
|
2852
|
+
return;
|
|
2853
|
+
}
|
|
2854
|
+
logger.info('DAEMON', 'CreditDaddy 守护进程已启动:http://{host}:{port}', { host, port: bound });
|
|
2855
|
+
if ((host === '0.0.0.0' || host === '::') && !panelKeyRequired()) {
|
|
2856
|
+
logger.warn('DAEMON', '监听 0.0.0.0 且未设置 CREDITDADDY_PASSWORD —— 局域网内任何人可访问账号 API,建议设置访问密钥', {});
|
|
2857
|
+
}
|
|
2858
|
+
resolve({ server, port: bound });
|
|
2859
|
+
});
|
|
2713
2860
|
};
|
|
2714
2861
|
server.once('error', onError);
|
|
2715
2862
|
server.once('listening', onListening);
|
package/src/externalQuota.js
CHANGED
|
@@ -570,8 +570,84 @@ export async function runQuotaPush({ endpoint, key, accounts, fetchImpl, onlySou
|
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
|
|
573
|
-
//
|
|
573
|
+
// CrowLLM 钱包余额卡:凭据是登录窗 CDP 嗅探的 15 分钟 JWT(meta.crowllmSession.jwt,
|
|
574
|
+
// token 字段同存一份)——chat key 读不到钱包(subscription 恒回假上限),服务端持有式
|
|
575
|
+
// 凭据全线不通(2026-11-21 实测)。JWT 过期 → live 401 → 快照兜底 + dead 标记,用户
|
|
576
|
+
// 重开一次登录窗(GitHub 会话静默)即恢复。lingxi 同款:live 优先、快照兜底、probeMark。
|
|
577
|
+
const cwAccounts = (accounts || []).filter((a) => (a.provider === 'crowllm' || a.meta?.cookieSiteId === 'crowllm') && (a.meta?.crowllmSession?.jwt || a.token));
|
|
578
|
+
if (cwAccounts.length) {
|
|
579
|
+
const { fetchCrowllmWallet, buildCrowllmQuotaPayload } = await import('./crowllmClient.js');
|
|
580
|
+
for (const a of cwAccounts) {
|
|
581
|
+
const { source } = buildCrowllmQuotaPayload(a);
|
|
582
|
+
if (only && !only.includes(source)) continue;
|
|
583
|
+
const skipDead = !only && deadSkip(a);
|
|
584
|
+
let liveData = null;
|
|
585
|
+
if (skipDead) {
|
|
586
|
+
liveData = { auth: false, code: 'dead-skip' };
|
|
587
|
+
} else {
|
|
588
|
+
try {
|
|
589
|
+
const jwt = a.meta?.crowllmSession?.jwt || a.token;
|
|
590
|
+
liveData = await fetchCrowllmWallet(jwt, { fetchImpl });
|
|
591
|
+
if (liveData.auth) {
|
|
592
|
+
if (Number.isFinite(liveData.balanceUsd)) {
|
|
593
|
+
persistLive(a, { quotaSnapshot: { used: 0, total: liveData.balanceUsd, isCreditBalance: true, giftUsd: liveData.giftUsd ?? null, at: new Date().toISOString() } });
|
|
594
|
+
}
|
|
595
|
+
} else {
|
|
596
|
+
liveData = { auth: false };
|
|
597
|
+
}
|
|
598
|
+
probeMark(a, liveData.auth, liveData.auth ? null : 'CrowLLM 会话已失效');
|
|
599
|
+
} catch (err) {
|
|
600
|
+
liveData = { auth: false };
|
|
601
|
+
probeMark(a, false, err.message);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
const { payload } = buildCrowllmQuotaPayload(a, liveData);
|
|
605
|
+
try {
|
|
606
|
+
assertScalarOnly(payload, source);
|
|
607
|
+
const r = await pushOne({ endpoint, key, source, payload, fetchImpl, refreshUrl: await rurl(source) });
|
|
608
|
+
results.push({ source, status: 'ok', entries: r.entries });
|
|
609
|
+
logger.info('10R', '额度卡已推送:{source}({n} 行)', { source, n: r.entries ?? (Object.keys(payload.quotas || {}).length || 0) });
|
|
610
|
+
} catch (e) {
|
|
611
|
+
results.push({ source, status: 'failed', error: e.message });
|
|
612
|
+
logger.warn('10R', '额度卡推送失败 {source}:{err}', { source, err: e.message });
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
// Meoo 快照保鲜(2026-11-19 用户实测「都是手动领取+手动刷新,没有定时刷新」):
|
|
618
|
+
// meoo 不推卡(no10rSync,10R 侧自消费出卡),被推送循环排除后快照只在捕获时与手动
|
|
619
|
+
// ?live=1 两个时点更新——余额数字永远停在捕获那一刻,定时轮领到的积分不反映到显示上,
|
|
620
|
+
// 用户只能手动刷新。灵犀有推送循环顺手的 persistLive 保鲜,meoo 对等补一条:
|
|
621
|
+
// 只拉余额落快照 + 探活痕迹,不 build payload、不推卡(保持 no10rSync 口径不变)。
|
|
622
|
+
const meooAccounts = (accounts || []).filter((a) => a.provider === 'meoo' && (a.meta?.cookieSiteSession?.cookie || a.token));
|
|
623
|
+
for (const a of meooAccounts) {
|
|
624
|
+
const skipDead = !only && deadSkip(a);
|
|
625
|
+
if (skipDead) continue; // dead 低频重试期间不空打(与灵犀同口径)
|
|
626
|
+
try {
|
|
627
|
+
const { fetchMeooEntitlement } = await import('./meooClient.js');
|
|
628
|
+
const cookie = a.meta?.cookieSiteSession?.cookie || a.token;
|
|
629
|
+
const ent = await fetchMeooEntitlement(cookie, { fetchImpl });
|
|
630
|
+
// auth:false = 会话失效(NEED_LOGIN);auth:true = 会话有效(ok 可能 false = 探测失败)
|
|
631
|
+
if (!ent.auth) {
|
|
632
|
+
probeMark(a, false, 'Meoo 会话已失效(NEED_LOGIN)');
|
|
633
|
+
continue;
|
|
634
|
+
}
|
|
635
|
+
probeMark(a, ent.ok, ent.ok ? null : (ent.code || '探测失败'));
|
|
636
|
+
const bal = Number.isFinite(ent.balance) ? ent.balance : null;
|
|
637
|
+
if (ent.ok && bal !== null) {
|
|
638
|
+
persistLive(a, {
|
|
639
|
+
quotaSnapshot: { used: 0, total: bal, isCreditBalance: true, at: new Date().toISOString() },
|
|
640
|
+
...(Array.isArray(ent.grants) ? { meooGrants: { grants: ent.grants, at: new Date().toISOString() } } : {}),
|
|
641
|
+
});
|
|
642
|
+
logger.debug('10R', 'Meoo 快照保鲜:{name} 积分 {balance}', { name: a.name || a.id, balance: bal });
|
|
643
|
+
}
|
|
644
|
+
} catch (err) {
|
|
645
|
+
probeMark(a, false, err.message);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
// Meoo 不推卡:10R 已原生支持 meoo 连接、额度由连接凭据自身出卡(自消费口径),
|
|
574
650
|
// CD 再推 meoo-free 会对同一账号出两张同数值卡——与 DuMate「仅连接」同口径。
|
|
575
|
-
// 面板侧 meoo live 数据走 providers 路径(fetchMeooQuota
|
|
651
|
+
// 面板侧 meoo live 数据走 providers 路径(fetchMeooQuota),快照保鲜走上方循环。
|
|
576
652
|
return { results };
|
|
577
653
|
}
|
package/src/i18n/en.json
CHANGED
|
@@ -2248,5 +2248,153 @@
|
|
|
2248
2248
|
"开关即时生效:开=按当前时间排计划;关=取消计划": "Toggle saves instantly: on = schedule with the current time; off = cancel the plan",
|
|
2249
2249
|
"停止单次窗口;每日定时计划一并停用": "Stops the one-off window; the daily schedule is disabled along with it",
|
|
2250
2250
|
"开关即保存:开=按当前时间排上计划,关=取消计划。改时间后点「保存定时」;到点自动开跑一轮(按下面单次窗口的参数),无需再点其他按钮。": "The switch saves instantly: on = schedule with the current time, off = cancel. Click \"Save schedule\" after changing the time; a round auto-runs at the set time (with the one-off window parameters below) — no other button needed.",
|
|
2251
|
-
"马上按上面参数开跑一轮;只影响本次,不改每日定时。": "Starts one round right away with the parameters above; affects this run only — never touches the daily schedule."
|
|
2251
|
+
"马上按上面参数开跑一轮;只影响本次,不改每日定时。": "Starts one round right away with the parameters above; affects this run only — never touches the daily schedule.",
|
|
2252
|
+
"Meoo 会话已失效(NEED_LOGIN)": "Meoo session expired (NEED_LOGIN)",
|
|
2253
|
+
"Meoo 快照保鲜:{name} 积分 {balance}": "Meoo snapshot refresh: {name} points {balance}",
|
|
2254
|
+
"会话槽已满(1~6)——请到「会话池」清除不用的槽后再试": "Session slots are full (1-6) — clear an unused slot in \"Session pool\" and try again",
|
|
2255
|
+
"accounts.json 是加密形态但本进程没有解密密钥(桌面壳未注入)——请用桌面版启动,或先备份 accounts.json 后联系支持": "accounts.json is encrypted but this process has no decryption key (desktop shell not injected) — start via the desktop app, or back up accounts.json first and contact support",
|
|
2256
|
+
"accounts.json 形态无法识别(既非明文数组也非加密信封)": "accounts.json format unrecognized (neither a plain array nor an encrypted envelope)",
|
|
2257
|
+
"loadAccounts: 主文件损坏/解密失败,已用备份恢复 ": "loadAccounts: main file corrupt/decryption failed, restored from backup ",
|
|
2258
|
+
"[secret] accounts.json 静态加密已启用(safeStorage/DPAPI)": "[secret] accounts.json at-rest encryption enabled (safeStorage/DPAPI)",
|
|
2259
|
+
"[secret] safeStorage 不可用——accounts.json 保持 0600 明文(现状回退)": "[secret] safeStorage unavailable — accounts.json stays plaintext 0600 (status-quo fallback)",
|
|
2260
|
+
"[secret] 密钥初始化失败,回退明文:": "[secret] key init failed, falling back to plaintext: ",
|
|
2261
|
+
"托盘:CreditDaddy(端口 {port})": "CreditDaddy (port {port})",
|
|
2262
|
+
"服务运行中": "Service running",
|
|
2263
|
+
"在浏览器中打开": "Open in browser",
|
|
2264
|
+
"立即领取全部": "Claim all now",
|
|
2265
|
+
"对所有账号跑一轮签到与活动领取": "Run one check-in & claim round for all accounts",
|
|
2266
|
+
"✓ 已开启开机自启": "✓ Auto-start on boot enabled",
|
|
2267
|
+
"开启开机自启": "Enable auto-start on boot",
|
|
2268
|
+
"系统启动时自动运行": "Run automatically at system startup",
|
|
2269
|
+
"退出": "Quit",
|
|
2270
|
+
"停止守护进程并退出": "Stop the daemon and quit",
|
|
2271
|
+
"CreditDaddy - 端口 {port}": "CreditDaddy - port {port}",
|
|
2272
|
+
"\n正在停止 CreditDaddy…": "\nStopping CreditDaddy…",
|
|
2273
|
+
"系统托盘已挂载(右键:打开面板 / 立即领取 / 开机自启 / 退出)": "System tray mounted (right-click: open panel / claim all / auto-start / quit)",
|
|
2274
|
+
"托盘初始化失败(不影响守护进程):{err}": "Tray init failed (daemon unaffected): {err}",
|
|
2275
|
+
"托盘立即领取:{summary}": "Tray claim-all: {summary}",
|
|
2276
|
+
"托盘立即领取失败:{err}": "Tray claim-all failed: {err}",
|
|
2277
|
+
"CreditDaddy daemon": "CreditDaddy daemon",
|
|
2278
|
+
"端口 {port} 被旧版本实例(v{serving})占用——双服务会混写数据目录,换试 {next}。请卸载旧版(如 npm uninstall -g creditdaddy)或 creditdaddy stop": "Port {port} is held by an old-version instance (v{serving}) — dual-serving would corrupt the data dir; trying {next}. Please uninstall the old one (e.g. npm uninstall -g creditdaddy) or run creditdaddy stop",
|
|
2279
|
+
"连续多个端口都有异版本实例在响应——疑似系统异常,回退随机端口": "Multiple consecutive ports answered from a mismatched version — suspected system anomaly, falling back to a random port",
|
|
2280
|
+
"CreditDaddy 端口已漂移": "CreditDaddy port drifted",
|
|
2281
|
+
"默认端口被占用(疑似旧版本实例仍在运行),面板已改用 {port}。建议卸载旧版(如 npm uninstall -g creditdaddy)后重启。": "The default port is occupied (an old-version instance is likely still running); the panel switched to {port}. Uninstall the old one (e.g. npm uninstall -g creditdaddy) and restart.",
|
|
2282
|
+
"[main] 端口漂移:": "[main] port drifted: ",
|
|
2283
|
+
"(默认被占,疑似旧版本实例共存)": " (default occupied, suspected coexisting old-version instance)",
|
|
2284
|
+
"Croli (本机)": "Croli (local)",
|
|
2285
|
+
"Croli OAuth Token 响应格式无效": "Invalid Croli OAuth token response",
|
|
2286
|
+
"Croli 任务中心读取失败:{err}": "Failed to read Croli task center: {err}",
|
|
2287
|
+
"Croli 余额读取失败:{err}": "Failed to read Croli balance: {err}",
|
|
2288
|
+
"Croli 凭据已失效({code}),请重新本机导入或浏览器登录": "Croli credential expired ({code}) — re-import from local client or sign in via browser",
|
|
2289
|
+
"Croli 凭据已失效,请重新本机导入或浏览器登录": "Croli credential expired — re-import from local client or sign in via browser",
|
|
2290
|
+
"Croli 凭据缺失,请重新本机导入或浏览器登录": "Croli credential missing — import from local client or sign in via browser",
|
|
2291
|
+
"Croli 切换到 {name} 失败:{err}": "Failed to switch Croli to {name}: {err}",
|
|
2292
|
+
"Croli 客户端仅支持 Windows,本平台无法切换": "The Croli client is Windows-only; switching is unavailable on this platform",
|
|
2293
|
+
"Croli 客户端未运行,点我启动": "Croli client not running — click to launch",
|
|
2294
|
+
"Croli 客户端运行中,点我唤到前台": "Croli client is running — click to bring it to the front",
|
|
2295
|
+
"Croli 已切换到 {name}(凭据已写入并重开客户端)": "Croli switched to {name} (credentials written; client relaunched)",
|
|
2296
|
+
"Croli 已切换到 {name},但凭据复核未落定(疑似有进程回写)": "Croli switched to {name}, but verification did not settle (a process may have written back)",
|
|
2297
|
+
"Croli 当前已是 {name}": "Croli is already on {name}",
|
|
2298
|
+
"Croli 当前登录": "Croli current sign-in",
|
|
2299
|
+
"Croli 授权超时(5 分钟未完成),请重新发起": "Croli authorization timed out (not completed in 5 minutes) — please retry",
|
|
2300
|
+
"Croli 登录会话不存在或已超时,请重新发起": "Croli login session missing or expired — please retry",
|
|
2301
|
+
"Croli 签到失败:{err}": "Croli check-in failed: {err}",
|
|
2302
|
+
"Croli 签到成功": "Croli check-in succeeded",
|
|
2303
|
+
"Croli 身份验证失败": "Croli identity verification failed",
|
|
2304
|
+
"今日免费额度": "Today's free allowance",
|
|
2305
|
+
"今日已签到": "Already checked in today",
|
|
2306
|
+
"任务中心无每日签到活动(可能已下线)": "No daily check-in activity in the task center (it may have ended)",
|
|
2307
|
+
"同步 Croli 当前登录失败:{err}": "Failed to sync Croli current sign-in: {err}",
|
|
2308
|
+
"已启动 Croli 客户端": "Croli client launched",
|
|
2309
|
+
"已重新打开 Croli 客户端": "Croli client reopened",
|
|
2310
|
+
"无法打开 Croli 客户端": "Cannot open the Croli client",
|
|
2311
|
+
"未找到 Croli 客户端可执行文件": "Croli client executable not found",
|
|
2312
|
+
"未读到 Croli 客户端凭据库(%APPDATA%\\Croli\\auth.json)——请先安装客户端并登录任一账号": "No Croli client credential store found (%APPDATA%\\Croli\\auth.json) — install the client and sign in to any account first",
|
|
2313
|
+
"桌面会话已就绪,现在可以回到 CreditDaddy。": "Desktop session is ready; you can return to CreditDaddy now.",
|
|
2314
|
+
"目标账号缺少 Croli 凭据": "Target account has no Croli credential",
|
|
2315
|
+
"签到成功(+{n} 积分)": "Checked in (+{n} credits)",
|
|
2316
|
+
"缺少 Croli 凭据": "Missing Croli credential",
|
|
2317
|
+
"读取本机 Croli 客户端当前登录的账号(直读 %APPDATA%\\Croli\\auth.json 明文凭据,凭据不出本机),支持多账号保存切换。": "Read the account currently signed in to the local Croli client (reads %APPDATA%\\Croli\\auth.json plaintext credentials; credentials never leave this machine). Supports saving and switching multiple accounts.",
|
|
2318
|
+
"还没有 Croli 账号。<br>点「添加账号 → 本机导入」可读取本机 Croli 客户端当前登录的账号(直读 %APPDATA%\\Croli\\auth.json,凭据不出本机);或用「浏览器登录」走 Clerk 授权(Google / GitHub / 邮箱任选)。每日自动签到(+100 积分,连续 3 天起额外 +20)。": "No Croli accounts yet.<br>Use \"Add account → Local import\" to read the account currently signed in to the local Croli client (reads %APPDATA%\\Croli\\auth.json; credentials never leave this machine), or use \"Browser sign-in\" via Clerk authorization (Google / GitHub / email). Daily automatic check-in (+100 credits, plus +20 from day 3 of a streak).",
|
|
2319
|
+
"<button class=\"icon-btn\" data-act=\"invite\" title=\"填写邀请码(好友安装 Croli 并完成首个任务后,你得 2500 / 好友得 3000 积分)\">": "<button class=\"icon-btn\" data-act=\"invite\" title=\"Enter an invite code (after your friend installs Croli and completes their first task, you get 2,500 and they get 3,000 credits)\">",
|
|
2320
|
+
"<button class=\"icon-btn\" data-act=\"my-invite\" title=\"我的邀请码(查看本账号的专属邀请码与邀请链接,复制分享)\">": "<button class=\"icon-btn\" data-act=\"my-invite\" title=\"My invite code (view this account's own invite code and invite link, copy to share)\">",
|
|
2321
|
+
"Croli {name} 邀请码已兑换:{code}": "Croli {name} invite code redeemed: {code}",
|
|
2322
|
+
"Croli 账号不存在": "Croli account not found",
|
|
2323
|
+
"复制邀请链接": "Copy invite link",
|
|
2324
|
+
"好友安装 Croli 并完成首个任务后,你得 {a} / 好友得 {b} 积分": "After your friend installs Croli and completes their first task, you get {a} and they get {b} credits",
|
|
2325
|
+
"推荐使用邀请码 {code}(复制到下方即可;好友安装 Croli 并完成首个任务后,你得 2500 / 好友得 3000 积分)": "Recommended invite code {code} (copy it below; after your friend installs Croli and completes their first task, you get 2,500 and they get 3,000 credits)",
|
|
2326
|
+
"最近在用 Croli(AI 桌面助手),走我的专属链接注册完成任务,咱俩各得积分:{link}(我的邀请码:{code})": "I've been using Croli (an AI desktop assistant). Sign up via my link and complete a task — we both earn credits: {link} (my invite code: {code})",
|
|
2327
|
+
"邀 {a} / 被邀 {b}": "invites {a} / invited {b}",
|
|
2328
|
+
"邀请链接已复制": "Invite link copied",
|
|
2329
|
+
"该账号已兑换过邀请码(每号仅一次)": "This account has already redeemed an invite code (once per account)",
|
|
2330
|
+
"邀请码不存在(区分大小写)": "Invite code not found (case-sensitive)",
|
|
2331
|
+
"不能兑换自己的邀请码": "You cannot redeem your own invite code",
|
|
2332
|
+
"受邀人 +{n}": "Invitee +{n}",
|
|
2333
|
+
"好友安装 Croli 并完成首个任务后双方得积分;每个账号只能被邀请一次。": "Both sides earn credits after your friend installs Croli and completes their first task; each account can be invited only once.",
|
|
2334
|
+
"邀请人 +{n}": "Inviter +{n}",
|
|
2335
|
+
"已停止": "Stopped",
|
|
2336
|
+
"当前没有运行中的单次窗口;每日定时计划照常生效。": "No single-run window is active; the daily schedule still applies as configured.",
|
|
2337
|
+
"窗口为「一直运行」模式,直到手动停止。": "The window is in \"run until stopped\" mode.",
|
|
2338
|
+
"窗口于 {t} 自动关闭(到点后自动领取停轮,每日定时计划不受影响)。": "The window auto-closes at {t} (auto-claim stops then; the daily schedule is unaffected).",
|
|
2339
|
+
"运行中 · 一直运行": "Running · until stopped",
|
|
2340
|
+
"运行中 · 剩余约 {n} 分钟": "Running · ~{n} min left",
|
|
2341
|
+
"Google 登录槽": "Google sign-in slot",
|
|
2342
|
+
"槽 1(记住此窗口登录的 Google 账号)": "Slot 1 (remembers the Google account signed in via this window)",
|
|
2343
|
+
"槽 2(另一个 Google 账号)": "Slot 2 (another Google account)",
|
|
2344
|
+
"槽 3(另一个 Google 账号)": "Slot 3 (another Google account)",
|
|
2345
|
+
"每个槽记住一个 Google 账号的登录态(不是 Croli 账号):同槽再次授权时 Google 免重登,点授权页的 Google 直接过;每次授权换到的 Croli 凭据照常入库为新/更新账号。想用另一个 Google 账号就换槽。": "Each slot remembers one Google account's session (not the Croli account): re-authorizing in the same slot skips the Google sign-in — just click Google on the authorize page. Croli credentials from each authorization are still stored as a new/updated account. Use a different slot for another Google account.",
|
|
2346
|
+
"Google 会话槽": "Google session slots",
|
|
2347
|
+
"Google 会话槽:四条 Google SSO 线共享的登录态池,查看/清除": "Google session slots: the shared sign-in pool for the four Google SSO lines — view / clear",
|
|
2348
|
+
"无效的槽号": "Invalid slot number",
|
|
2349
|
+
"有 Google 登录态(cookie {n} 条)": "Google session present ({n} cookies)",
|
|
2350
|
+
"槽 {n} 的 Google 登录态已清除": "Slot {n}'s Google session cleared",
|
|
2351
|
+
"清除失败": "Failed to clear",
|
|
2352
|
+
"用 Google 账号槽打开": "Open with Google account slot",
|
|
2353
|
+
"每个槽记住一个 Google 账号的登录态(不是产品账号):同槽再次授权时 Google 免重登,点授权页的 Google 直接过;每次授权换到的凭据照常入库为新/更新账号。四条 Google SSO 线(Croli / Trae 国际版 / MiniMax 国际版 / Qoder)共享同一组槽;想用另一个 Google 账号就换槽。": "Each slot remembers one Google account's session (not the product account): re-authorizing in the same slot skips the Google sign-in — just click Google on the authorize page. Credentials from each authorization are still stored as a new/updated account. Four Google SSO lines (Croli / Trae Intl / MiniMax Intl / Qoder) share the same slot pool; use a different slot for another Google account.",
|
|
2354
|
+
"这些槽记住的是各授权窗里登录过的 Google 账号会话(Croli / Trae 国际版 / MiniMax 国际版 / Qoder 四线共享):同槽再次授权 Google 免重登。清除某个槽 = 抹掉该槽的 Google 登录态,下次授权需重新登录 Google(产品账号库不受影响)。": "These slots remember the Google account sessions signed in via the authorization windows (shared by Croli / Trae Intl / MiniMax Intl / Qoder): re-authorizing in the same slot skips the Google sign-in. Clearing a slot wipes its Google session — the next authorization will need a fresh Google sign-in (the product account library is unaffected).",
|
|
2355
|
+
"槽 {n}": "Slot {n}",
|
|
2356
|
+
"refreshToken 已被上游轮换作废(客户端退出登录也会作废)——请重新「本机导入」或走「浏览器登录」授权": "The refresh token was rotated/invalidated upstream (signing out of the client also invalidates it) — re-import from the local client or authorize via browser sign-in",
|
|
2357
|
+
"槽 1": "Slot 1",
|
|
2358
|
+
"槽 2": "Slot 2",
|
|
2359
|
+
"槽 3": "Slot 3",
|
|
2360
|
+
"槽 4": "Slot 4",
|
|
2361
|
+
"槽 5": "Slot 5",
|
|
2362
|
+
"槽 6": "Slot 6",
|
|
2363
|
+
"槽 {n} 备注": "Slot {n} note",
|
|
2364
|
+
"槽位备注": "Slot note",
|
|
2365
|
+
"给这个 Google 账号起个名(如「师洋」「AI」),弹窗与授权窗槽位选择器同步显示;留空删除备注。": "Name this Google account (e.g. \"Yang\", \"AI\"); shown in both this dialog and the slot picker on the authorize window. Leave empty to remove the note.",
|
|
2366
|
+
"续期失败 · 请重新授权": "Renewal failed · re-authorize",
|
|
2367
|
+
"重命名槽位(本机备注,不进账号库)": "Rename slot (local note only, never enters the account library)",
|
|
2368
|
+
"授权窗口会话": "Authorize window session",
|
|
2369
|
+
"无痕": "Incognito",
|
|
2370
|
+
"无痕(默认)= 关窗即清,每次全新会话;槽 1-6 = 记住一个 Google 账号的登录态(不是产品账号),同槽再次授权时 Google 免重登,四条 Google SSO 线(Croli / Trae 国际版 / MiniMax 国际版 / Qoder)共享同一组槽。": "Incognito (default) = storage wiped on close, a fresh session every time; Slots 1-6 remember one Google account's session (not the product account) — re-authorizing in the same slot skips the Google sign-in, shared across the four Google SSO lines (Croli / Trae Intl / MiniMax Intl / Qoder).",
|
|
2371
|
+
"停止单次窗口(每日定时计划不受影响)": "Stop the single-run window (the daily schedule is unaffected)",
|
|
2372
|
+
"单次窗口已停止": "Single-run window stopped",
|
|
2373
|
+
"单次窗口已停止;每日定时计划保留(明天到点照常开跑)": "Single-run window stopped; the daily schedule is kept (it will fire at its time tomorrow as usual)",
|
|
2374
|
+
"有 Google 登录痕迹(cookie {n} 条)——不代表授权已完成,仅表示该槽存有 Google 会话": "Google sign-in traces present ({n} cookies) — does NOT mean authorization completed; the slot merely holds a Google session",
|
|
2375
|
+
"这些槽记住的是各授权窗里登录过的 Google 账号会话(Croli / Trae 国际版 / MiniMax 国际版 / Qoder 四线共享):同槽再次授权 Google 免重登。注意:槽里有会话只说明「Google 登录过」,不代表 Croli 等产品授权已完成——授权结果以账号库为准。清除某个槽 = 抹掉该槽的 Google 登录态,下次授权需重新登录 Google(产品账号库不受影响)。": "These slots remember the Google account sessions signed in via the authorization windows (shared by Croli / Trae Intl / MiniMax Intl / Qoder): re-authorizing in the same slot skips the Google sign-in. Note: a session in a slot only means \"Google was signed in\" — it does NOT mean the Croli etc. authorization completed; authorization results live in the account library. Clearing a slot wipes its Google session — the next authorization will need a fresh Google sign-in (the product account library is unaffected).",
|
|
2376
|
+
"登录 crowllm.com(GitHub/Google/Discord/邮箱)后自动抓取钱包余额与赠送额度;GitHub 会话记住后,后续登录窗打开即静默完成。推 10Router 免费额度页出卡,聊天连接仍用 10R 侧的 API key。": "Log in to crowllm.com (GitHub/Google/Discord/email) to capture wallet balance and gift credits; once the GitHub session is remembered, reopening the login window completes silently. Pushes a card to the 10Router free-quota page; chat connections still use the 10R-side API key.",
|
|
2377
|
+
"CrowLLM 会话已失效,请在 CreditDaddy「网页会话」页重新登录捕获": "CrowLLM session expired — please log in again on the CreditDaddy \"Web Sessions\" page",
|
|
2378
|
+
"CrowLLM 余额未知(尚未成功捕获会话)": "CrowLLM balance unknown (session not captured yet)",
|
|
2379
|
+
"钱包余额": "Wallet balance",
|
|
2380
|
+
"余额 (USD)": "Balance (USD)",
|
|
2381
|
+
"赠送额度 (USD)": "Gift credits (USD)",
|
|
2382
|
+
"该站点走登录窗静默续期(点「网页版」打开即自动完成),无需重探": "This site renews silently via the login window (open it from \"Web\" — done automatically); no reprobe needed",
|
|
2383
|
+
"{name} 未嗅探到访问 JWT": "{name} no access JWT sniffed",
|
|
2384
|
+
"未读到 CrowLLM 访问令牌——请在登录窗登录 crowllm.com 并进入钱包页后关闭(CDP 需在页面请求发生时嗅探)": "No CrowLLM access token captured — log in to crowllm.com in the login window, reach the wallet page, then close it (CDP sniffs while page requests happen)",
|
|
2385
|
+
"{name} 钱包探测被拒:{code}": "{name} wallet probe rejected: {code}",
|
|
2386
|
+
"会话不可用,请重新登录 crowllm.com 后再捕获(": "Session unavailable — log in to crowllm.com again and recapture (",
|
|
2387
|
+
"{name} 钱包探测通过(余额 ${balance},赠送 {gift},身份 {identity})": "{name} wallet probe ok (balance ${balance}, gift {gift}, identity {identity})",
|
|
2388
|
+
"{name} 钱包抓取异常:{err}": "{name} wallet fetch error: {err}",
|
|
2389
|
+
"CrowLLM 会话已失效": "CrowLLM session expired",
|
|
2390
|
+
"没有可同步的账号(qoder / WorkBuddy / MiniMax / Loomy / Trae / DuMate / 灵犀 / Croli 系列);zcode 待反代就绪后支持": "No syncable accounts (qoder / WorkBuddy / MiniMax / Loomy / Trae / DuMate / lingxi / Croli families); zcode pending its reverse proxy",
|
|
2391
|
+
"croli access 已重推:{summary}": "croli access re-pushed: {summary}",
|
|
2392
|
+
"croli access 重推失败(下轮 token 再变时重试):{err}": "croli access re-push failed (will retry when the token changes): {err}",
|
|
2393
|
+
"croli 重推轮异常:{err}": "croli re-push round error: {err}",
|
|
2394
|
+
"croli access 自动重推已启动(每 30 分钟比对一次)": "croli access auto re-push started (compared every 30 minutes)",
|
|
2395
|
+
"(赠送 $": " (gift $",
|
|
2396
|
+
" · 付费 $": " · paid $",
|
|
2397
|
+
"钱包余额 $": "Wallet balance $",
|
|
2398
|
+
"该站点走登录窗静默续期(点此打开登录窗,GitHub 会话自动完成)": "This site renews via the login window (click to open — the GitHub session completes automatically)",
|
|
2399
|
+
"打开登录窗静默续期中——进入钱包页后关闭即可": "Opening the login window for silent renewal — close it after reaching the wallet page"
|
|
2252
2400
|
}
|