dsh-model 0.27.0 → 0.27.1
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/dist/checkin/doubao.js +1 -1
- package/dist/daemon/core.js +1 -1
- package/package.json +1 -1
- package/plugin/client.js +2 -3
package/dist/checkin/doubao.js
CHANGED
|
@@ -95,7 +95,7 @@ export async function doubaoStatus(cookie, seed) {
|
|
|
95
95
|
export async function doubaoCheckin(cookie, seed) {
|
|
96
96
|
const st = await doubaoStatus(cookie, seed);
|
|
97
97
|
if (st.checkedIn === null)
|
|
98
|
-
throw new Error('
|
|
98
|
+
throw new Error('这个豆包账号的任务面板里没有「每日签到」(飞书企业账号、或豆包没给这个账号开签到时都是这样)');
|
|
99
99
|
if (st.checkedIn)
|
|
100
100
|
return { state: 'already' };
|
|
101
101
|
const body = await post(apiUrl(CHECKIN_URL, seed), cookie, { scene: CAMPAIGN_GROUP });
|
package/dist/daemon/core.js
CHANGED
|
@@ -883,7 +883,7 @@ export class Daemon {
|
|
|
883
883
|
try {
|
|
884
884
|
const st = await doubaoStatus(cookie, seed);
|
|
885
885
|
if (st.checkedIn === null) {
|
|
886
|
-
skipped.push({ label: login.label, reason: L('
|
|
886
|
+
skipped.push({ label: login.label, reason: L('读到了登录,但豆包没给这个账号开「每日签到」:它的任务面板里只有一次性的新手任务(选工作领域、生成文档 / PPT 等,要在豆包里自己做)。飞书企业账号也是这样。打开豆包电脑版看看有没有「每日签到」,有的话告诉开发者', 'Signed in, but Doubao has not given this account a daily check-in: its task panel only has one-off starter tasks (pick a work field, make a document / slides…, done inside Doubao). Feishu enterprise accounts look like this too. Check whether the Doubao app shows a daily check-in, and tell the developer if it does') });
|
|
887
887
|
continue;
|
|
888
888
|
}
|
|
889
889
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-model",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Daily check-in credits claimed for you (Trae, Qoder, WorkBuddy China), one OpenAI-compatible address that relays every model, and free or subscription model sources (SiliconFlow, Gemini, Codex, Kimi, Ollama…). For DeepSeek Harness (dsh) and any OpenAI-compatible tool. 每天自动签到领积分 · 一个地址中转所有模型 · 免费和订阅模型随你接。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"siliconflow",
|
package/plugin/client.js
CHANGED
|
@@ -1031,8 +1031,7 @@ window.__ModuleLoader__.load({
|
|
|
1031
1031
|
const r = await api('POST', '/checkin/doubao/scan')
|
|
1032
1032
|
if (r.added.length) { onDone(r.status, scanText(r)); return }
|
|
1033
1033
|
setMsg(scanText(r) || L('没读到能用的豆包登录', 'No usable Doubao sign-in found'))
|
|
1034
|
-
|
|
1035
|
-
} catch (e) { setMsg(e.message); setManual(true) }
|
|
1034
|
+
} catch (e) { setMsg(e.message) }
|
|
1036
1035
|
setBusy(false)
|
|
1037
1036
|
}
|
|
1038
1037
|
const save = async () => {
|
|
@@ -1049,9 +1048,9 @@ window.__ModuleLoader__.load({
|
|
|
1049
1048
|
? L(`这台电脑上 ${found.join('、')} 登录着豆包,直接读它的登录就行:`, `Doubao is signed in here (${found.join(', ')}); just read that sign-in:`)
|
|
1050
1049
|
: L('在豆包电脑版、Chrome、Edge 或 Brave 里登录过 doubao.com 的话,直接读它的登录:', 'If you are signed in to doubao.com in the Doubao app, Chrome, Edge or Brave, read that sign-in:')),
|
|
1051
1050
|
h('button', { type: 'button', style: S.btnPrimary, disabled: busy, onClick: () => void scan() }, busy ? L('读取中…', 'Reading…') : L('从本机自动读取', 'Read from this computer')),
|
|
1051
|
+
msg && !manual ? h('div', { style: { fontSize: 12, color: busy ? C.sub : C.warn, marginTop: 8, lineHeight: 1.6 } }, msg) : null,
|
|
1052
1052
|
h('div', { style: { ...S.meta, marginTop: 6, color: C.faint } }, L('只读 doubao.com 的登录,保存在本机;豆包里退出登录或过期后,再点一次就会换成新的。', 'Only the doubao.com sign-in is read, and it stays on this machine; after it expires, click again to replace it.'))) : null,
|
|
1053
1053
|
canScan && !manual ? h('button', { type: 'button', style: { ...S.btn, padding: '2px 8px', fontSize: 12 }, onClick: () => setManual(true) }, L('▸ 手动粘贴 Cookie', '▸ Paste the cookie by hand')) : null,
|
|
1054
|
-
msg && !manual ? h('div', { style: { ...S.meta, marginTop: 8 } }, msg) : null,
|
|
1055
1054
|
!canScan || manual ? h('div', null,
|
|
1056
1055
|
h('p', { style: S.note }, L('手动:从浏览器复制一次登录 Cookie:', 'By hand: copy the sign-in cookie from the browser once:')),
|
|
1057
1056
|
step(1, h('span', null, L('用电脑浏览器打开 ', 'Open '), h('a', { href: 'https://www.doubao.com/', target: '_blank', rel: 'noopener noreferrer', style: { color: C.accent } }, 'doubao.com ↗'), L(' 并登录', ' in a desktop browser and sign in'))),
|