creditdaddy 1.4.1 → 1.5.0
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 +2 -2
- package/src/accounts.js +3 -1
- package/src/checkin.js +443 -393
- package/src/constants.js +109 -99
- package/src/cookieSites.js +261 -0
- package/src/daemon.js +602 -10
- package/src/externalQuota.js +397 -0
- package/src/i18n/en.json +251 -2
- package/src/i18n/ja.json +251 -2
- package/src/i18n/ko.json +251 -2
- package/src/i18n/zh-TW.json +251 -2
- package/src/longcatClient.js +251 -0
- package/src/minimaxClient.js +25 -1
- package/src/minimaxGateway.js +27 -36
- package/src/mirasimClient.js +14 -0
- package/src/modelscopeClient.js +275 -0
- package/src/panel.html +4542 -4070
- package/src/quotaRefresh.js +114 -0
- package/src/refreshGuard.js +6 -0
- package/src/riverClient.js +329 -0
- package/src/store.js +5 -0
- package/src/tenrouter.js +62 -8
- package/src/tenrouterAccounts.js +16 -8
- package/src/traeClient.js +6 -3
- package/src/workbuddyClient.js +14 -0
- package/src/xiaomiMimoClient.js +206 -0
package/build.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creditdaddy",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "CreditDaddy — Qoder / WorkBuddy / ZCode / mirasim / 妙手 / Trae / MiniMax
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "CreditDaddy — Qoder / WorkBuddy / ZCode / mirasim / 妙手 / Trae / MiniMax / ModelScope 多账号本地管理与每日积分自动签到助手,及 10Router 供应商 Cookie 会话捕获与外部配额(Token Harbor / 小米 MiMo / River / ModelScope 魔搭 / LongCat)",
|
|
5
5
|
"homepage": "https://github.com/techysy/CreditDaddy",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/src/accounts.js
CHANGED
|
@@ -17,7 +17,6 @@ export { displayNameFrom };
|
|
|
17
17
|
*/
|
|
18
18
|
async function attachPendingWebSession(target) {
|
|
19
19
|
if (!String(target.provider || '').startsWith('qoder') || !target.uid) return false;
|
|
20
|
-
if (target.meta?.qoderWebSession) return false;
|
|
21
20
|
// 与 daemon 写入暂存会话(/api/auth/qoder-web-session)共用 withSettings 队列,
|
|
22
21
|
// 否则两边同时「读 pending → 改 → 写回」会把对方的暂存项冲掉
|
|
23
22
|
const item = await withSettings((settings) => {
|
|
@@ -28,6 +27,9 @@ async function attachPendingWebSession(target) {
|
|
|
28
27
|
return found;
|
|
29
28
|
});
|
|
30
29
|
if (!item) return false;
|
|
30
|
+
// 新收割的会话**无条件替换**旧会话(刷新语义):旧守卫「已有会话就 return false」让
|
|
31
|
+
// 重新登录永远挂不上新 cookie(会话过期的账号走「浏览器登录」更新 = 死路——10R 卡上
|
|
32
|
+
// 「网页会话已失效」的账号因此无法在 CD 侧自愈)。与 cookie-site 捕获的原位更新对齐。
|
|
31
33
|
target.meta = { ...(target.meta || {}), qoderWebSession: { cookie: item.cookie, capturedAt: item.capturedAt || new Date().toISOString() } };
|
|
32
34
|
return true;
|
|
33
35
|
}
|