creditdaddy 1.8.2 → 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.
@@ -0,0 +1,178 @@
1
+ /**
2
+ * CrowLLM(crowllm.com)钱包余额线 —— 会话槽 + JWT Bearer 渠道。
3
+ *
4
+ * 凭据现实(2026-11-21 全部实测):钱包端点 /api/user/self 只认登录签发的 **15 分钟
5
+ * JWT**(Authorization Bearer,iss=new-api)。这个 fork 没有 session Cookie(浏览器
6
+ * 请求只有 cf_clearance)、没有刷新端点、没有系统访问令牌 UI/端点、密码登录带
7
+ * Turnstile——服务端持有式凭据全线不通。唯一自动路 = 真浏览器:persist 分区的
8
+ * GitHub 会话让 SPA 静默重跑 OAuth 签发新 JWT,desktop 侧 CDP 拦 XHR 的
9
+ * Authorization 头摘取(river 的 ses._workosAuth 同款),以 storage 同形键
10
+ * `crowllm:access-jwt` 交给 daemon。过期后 401 → 重新走一次登录窗即可。
11
+ *
12
+ * 协议形态(真实会话实锤):Bearer JWT GET /api/user/self →
13
+ * { success:true, data:{ earned_quota, quota, used_quota, aff_history_quota, … } };
14
+ * one-api 计数单位 quota_per_unit=500000 → $1 = 500000 quota。
15
+ * 字段语义:earned_quota=赠送(免费目录专用)、quota=付费、可用总数 = 两者之和。
16
+ */
17
+
18
+ export const CROWLLM_BASE = 'https://crowllm.com';
19
+ export const CROWLLM_SELF_URL = `${CROWLLM_BASE}/api/user/self`;
20
+ /** one-api 家族计数单位:$1 = 500000 quota(crowllm /api/status 的 quota_per_unit 实测值) */
21
+ export const CROWLLM_QUOTA_PER_UNIT = 500000;
22
+
23
+ import { fetchJsonRace } from './zcodeClient.js';
24
+
25
+ const FETCH_TIMEOUT_MS = 20000;
26
+
27
+ /** JWT payload 的 sub = new-api 用户数字 id —— 用户端点的 New-Api-User 头取这里。
28
+ * 实测请求都带这个头(值与 sub 同源);服务端对它的校验宽度未考,带上不吃亏。 */
29
+ function jwtUser(jwt) {
30
+ try {
31
+ const p = JSON.parse(Buffer.from(String(jwt).split('.')[1].replace(/-/g, '+').replace(/_/g, '/'), 'base64').toString('utf8'));
32
+ return String(p.sub || '');
33
+ } catch { return ''; }
34
+ }
35
+
36
+ function jwtHeaders(jwt) {
37
+ const h = {
38
+ Authorization: 'Bearer ' + jwt,
39
+ Accept: 'application/json, text/plain, */*',
40
+ Referer: CROWLLM_BASE + '/wallet',
41
+ // new-api 系 SPA 的 XHR 形头;自定义 UA 不需要(/api/* 裸 curl 直通,2026-11-21 实测)
42
+ 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36',
43
+ };
44
+ const user = jwtUser(jwt);
45
+ if (user) h['New-Api-User'] = user;
46
+ return h;
47
+ }
48
+
49
+ /**
50
+ * 会话 JWT 查钱包。@param {string} jwt 登录签发的 access JWT(CDP 嗅探所得,15 分钟寿命)。
51
+ * @returns {{ auth: boolean, ok?: boolean, balanceUsd?: number, paidUsd?: number,
52
+ * giftUsd?: number, usedUsd?: number, affUsd?: number, username?: string|null,
53
+ * email?: string|null, code?: string }}
54
+ * auth:false = JWT 失效/缺失(AUTH_TOKEN_EXPIRED 判 NEED_LOGIN,重新走登录窗即可)。
55
+ */
56
+ export async function fetchCrowllmWallet(jwt, { fetchImpl } = {}) {
57
+ if (!jwt) return { auth: false, code: 'no-jwt' };
58
+ const doIt = fetchImpl || ((u, init) => fetchJsonRace(u, { ...init, timeoutMs: FETCH_TIMEOUT_MS }));
59
+ let res;
60
+ try {
61
+ res = await doIt(CROWLLM_SELF_URL, { method: 'GET', headers: jwtHeaders(jwt) });
62
+ } catch (e) {
63
+ return { auth: false, code: e?.message || 'network' };
64
+ }
65
+ if (res.status === 401 || res.status === 403) return { auth: false, code: 'NEED_LOGIN' };
66
+ if (!res.ok) return { auth: false, code: `HTTP ${res.status}` };
67
+ const text = await res.text().catch(() => '');
68
+ let data = null;
69
+ try { data = JSON.parse(text); } catch { return { auth: false, code: 'non-json' }; }
70
+ // new-api 形态 { success, data };data.quota 缺失视为会话失效(半登录态防误报余额 0)
71
+ const d = data?.data;
72
+ if (!data?.success || !d || (!Number.isFinite(Number(d.quota)) && !Number.isFinite(Number(d.earned_quota)))) return { auth: false, code: 'no-quota' };
73
+ // 2026-11-21 真实会话实锤的字段语义(对照钱包页截图):
74
+ // earned_quota = 活动/签到赠送(只能在免费目录用,截图 $110)
75
+ // quota = 充值/付费额度(截图「每个模型可用 $0」)
76
+ // used_quota = 累计消费;aff_history_quota = 邀请返佣(独立积累池)
77
+ const earned = Number(d.earned_quota) || 0;
78
+ const paid = Number(d.quota) || 0;
79
+ const usedQuota = Number(d.used_quota) || 0;
80
+ const toUsd = (q) => Math.round((q / CROWLLM_QUOTA_PER_UNIT) * 100) / 100;
81
+ return {
82
+ auth: true,
83
+ ok: true,
84
+ // 总可用 = 付费 + 赠送(钱包页「可用总数」口径)
85
+ balanceUsd: toUsd(paid + earned),
86
+ paidUsd: toUsd(paid),
87
+ giftUsd: toUsd(earned),
88
+ usedUsd: toUsd(usedQuota),
89
+ affUsd: toUsd(Number(d.aff_history_quota) || 0),
90
+ // 捕获身份(多号归户/账号命名)
91
+ username: String(d.display_name || d.username || '').trim() || null,
92
+ email: String(d.email || '').trim() || null,
93
+ };
94
+ }
95
+
96
+ /**
97
+ * 额度卡 payload(10R 免费额度页直接消费;source 形态与 lingxi/tokenharbor 同口径)。
98
+ * liveData = fetchCrowllmWallet 的实时结果;缺省回退 meta.quotaSnapshot 快照。
99
+ */
100
+ export function buildCrowllmQuotaPayload(account, liveData = null) {
101
+ const uid = account.uid || 'default';
102
+ const cleanSource = `crowllm-${String(uid).toLowerCase().replace(/[^a-z0-9-]/g, '')}`.slice(0, 32);
103
+ const label = String(account?.name || '').trim() || 'CrowLLM';
104
+
105
+ if (liveData && liveData.auth === false) {
106
+ return {
107
+ source: cleanSource,
108
+ payload: {
109
+ provider: 'crowllm',
110
+ label,
111
+ message: 'CrowLLM 会话已失效,请在 CreditDaddy「网页会话」页重新登录捕获',
112
+ },
113
+ };
114
+ }
115
+
116
+ let snap = liveData?.ok ? { balanceUsd: liveData.balanceUsd, usedUsd: liveData.usedUsd, giftUsd: liveData.giftUsd } : null;
117
+ let ageTag = '';
118
+ if (!snap) {
119
+ const s = account.meta?.quotaSnapshot;
120
+ if (s && Number.isFinite(Number(s.total))) {
121
+ snap = { balanceUsd: Number(s.total), usedUsd: Number(s.used) || 0, giftUsd: Number(s.giftUsd ?? null) };
122
+ ageTag = snapshotAgeTag(s);
123
+ }
124
+ }
125
+ if (!snap || !Number.isFinite(Number(snap.balanceUsd))) {
126
+ return {
127
+ source: cleanSource,
128
+ payload: { provider: 'crowllm', label, message: 'CrowLLM 余额未知(尚未成功捕获会话)' },
129
+ };
130
+ }
131
+
132
+ const balance = Math.max(0, Number(snap.balanceUsd));
133
+ const used = Math.max(0, Number(snap.usedUsd) || 0);
134
+ const total = balance + used;
135
+ const pct = total > 0 ? Math.max(0, Math.min(100, Math.round((balance / total) * 1000) / 10)) : 0;
136
+
137
+ const payload = {
138
+ provider: 'crowllm',
139
+ label,
140
+ plan: '钱包余额' + ageTag,
141
+ };
142
+ // 行名带 (USD) 尾括号:10R 的 quotaUnitOf 从尾部括号提单位小字(Loomy 的
143
+ // Balance (CNY) 同款约定),头部数字才会渲染成「110(USD)」而不是裸 110。
144
+ // 「免费目录」的语义说明在 CD 面板 hint 与 10R 卡 tooltip 里,不挤行名。
145
+ payload.quotas = {
146
+ Balance: {
147
+ name: '余额 (USD)',
148
+ used,
149
+ total,
150
+ remainingPercentage: pct,
151
+ displayRemaining: true,
152
+ isCreditBalance: true,
153
+ summarizesDetail: true,
154
+ },
155
+ };
156
+ // 赠送额度拆分行:earned_quota 只能在免费目录使用。站点不出拆分时整行省略,
157
+ // 总数行已覆盖。
158
+ if (Number.isFinite(Number(snap.giftUsd)) && snap.giftUsd > 0) {
159
+ payload.quotas.Gift = {
160
+ name: '赠送额度 (USD)',
161
+ used: 0,
162
+ total: Number(snap.giftUsd),
163
+ remainingPercentage: 100,
164
+ displayRemaining: true,
165
+ isCreditBalance: true,
166
+ giftPack: true,
167
+ };
168
+ }
169
+ return { source: cleanSource, payload };
170
+ }
171
+
172
+ function snapshotAgeTag(snap) {
173
+ const at = Date.parse(snap?.at || '');
174
+ if (!Number.isFinite(at)) return '';
175
+ const age = Date.now() - at;
176
+ if (age < 24 * 3600e3) return '';
177
+ return `(快照 ${Math.floor(age / 86400e3)} 天前)`;
178
+ }
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
- return json(res, 502, { error: e.message });
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
- // 关 = 立即停表。用户手动停用的意图是「别再撞了」(2026-11-17 实测:账号无法
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
  };
@@ -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
- const cred = riverSession ? riverSession.accessToken : cookie; // 落盘的凭据主体
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
  }
@@ -570,6 +570,50 @@ export async function runQuotaPush({ endpoint, key, accounts, fetchImpl, onlySou
570
570
  }
571
571
  }
572
572
 
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
+
573
617
  // Meoo 快照保鲜(2026-11-19 用户实测「都是手动领取+手动刷新,没有定时刷新」):
574
618
  // meoo 不推卡(no10rSync,10R 侧自消费出卡),被推送循环排除后快照只在捕获时与手动
575
619
  // ?live=1 两个时点更新——余额数字永远停在捕获那一刻,定时轮领到的积分不反映到显示上,
package/src/i18n/en.json CHANGED
@@ -2280,5 +2280,121 @@
2280
2280
  "CreditDaddy 端口已漂移": "CreditDaddy port drifted",
2281
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
2282
  "[main] 端口漂移:": "[main] port drifted: ",
2283
- "(默认被占,疑似旧版本实例共存)": " (default occupied, suspected coexisting old-version instance)"
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"
2284
2400
  }