creditdaddy 1.6.7 → 1.7.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 +4 -4
- package/package.json +34 -34
- package/src/accounts.js +4 -2
- package/src/assets/providers/catpaw.png +0 -0
- package/src/assets/providers/codebuddy-ide.png +0 -0
- package/src/assets/providers/loomy.png +0 -0
- package/src/assets/providers/minimax.png +0 -0
- package/src/assets/providers/mirasim.png +0 -0
- package/src/assets/providers/qoder.png +0 -0
- package/src/assets/providers/trae.png +0 -0
- package/src/assets/providers/workbuddy.png +0 -0
- package/src/assets/providers/zcode.png +0 -0
- package/src/checkin.js +455 -451
- package/src/codebuddyIdeLocal.js +381 -0
- package/src/daemon.js +2311 -2255
- package/src/i18n/en.json +87 -4
- package/src/i18n/ja.json +87 -4
- package/src/i18n/ko.json +87 -4
- package/src/i18n/zh-TW.json +87 -4
- package/src/panel.html +5355 -5143
- package/src/prodIcons.json +11 -0
- package/src/store.js +13 -1
- package/src/tenrouterAccounts.js +6 -2
- package/src/transfer.js +2 -0
- package/src/workbuddyLocal.js +565 -395
- package/src/zcodeAutoClaim.js +167 -167
- package/src/zcodeClient.js +258 -18
package/build.json
CHANGED
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "creditdaddy",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "CreditDaddy — Qoder / WorkBuddy / ZCode / mirasim / 妙手 / Trae / MiniMax / ModelScope / 豆包 Doubao / 讯飞 Loomy 多账号本地管理与每日积分自动签到助手,及 10Router 供应商 Cookie 会话捕获与外部配额(Token Harbor / 小米 MiMo / River / ModelScope 魔搭 / LongCat)",
|
|
5
|
-
"homepage": "https://github.com/techysy/CreditDaddy",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/techysy/CreditDaddy.git"
|
|
9
|
-
},
|
|
10
|
-
"type": "module",
|
|
11
|
-
"bin": {
|
|
12
|
-
"creditdaddy": "bin/creditdaddy.js"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"bin",
|
|
16
|
-
"src",
|
|
17
|
-
"README.md",
|
|
18
|
-
"LICENSE",
|
|
19
|
-
"build.json"
|
|
20
|
-
],
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=20"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"start": "node bin/creditdaddy.js daemon",
|
|
26
|
-
"test": "node --test",
|
|
27
|
-
"release-check": "bash scripts/release-check.sh",
|
|
28
|
-
"prepack": "node scripts/gen-build-info.js build.json"
|
|
29
|
-
},
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"opencc-js": "1.4.2"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "creditdaddy",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"description": "CreditDaddy — Qoder / WorkBuddy / ZCode / mirasim / 妙手 / Trae / MiniMax / ModelScope / 豆包 Doubao / 讯飞 Loomy 多账号本地管理与每日积分自动签到助手,及 10Router 供应商 Cookie 会话捕获与外部配额(Token Harbor / 小米 MiMo / River / ModelScope 魔搭 / LongCat)",
|
|
5
|
+
"homepage": "https://github.com/techysy/CreditDaddy",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/techysy/CreditDaddy.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"bin": {
|
|
12
|
+
"creditdaddy": "bin/creditdaddy.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin",
|
|
16
|
+
"src",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"build.json"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"start": "node bin/creditdaddy.js daemon",
|
|
26
|
+
"test": "node --test",
|
|
27
|
+
"release-check": "bash scripts/release-check.sh",
|
|
28
|
+
"prepack": "node scripts/gen-build-info.js build.json"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"opencc-js": "1.4.2"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/accounts.js
CHANGED
|
@@ -171,9 +171,11 @@ export function refreshContext(account, log) {
|
|
|
171
171
|
});
|
|
172
172
|
log?.('token 已刷新');
|
|
173
173
|
if (account.provider.startsWith('workbuddy')) {
|
|
174
|
-
const {
|
|
174
|
+
const { currentWorkbuddyUids, writeWorkbuddySession } = await import('./workbuddyLocal.js');
|
|
175
175
|
try {
|
|
176
|
-
|
|
176
|
+
// 国内/国际桌面端是两个独立会话文件,任一侧正在登录该账号都要同步新 token
|
|
177
|
+
const uids = await currentWorkbuddyUids();
|
|
178
|
+
if (account.uid && (uids.cn === account.uid || uids.intl === account.uid)) {
|
|
177
179
|
await writeWorkbuddySession(account);
|
|
178
180
|
log?.('已同步新 token 到 WorkBuddy 客户端');
|
|
179
181
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|