dsh-plugin-greeting-bubble 1.4.0-beta.1 → 1.4.0-beta.2
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 +1 -2
- package/client.js +1 -4
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
- 页面加载约 0.35 秒后,右下角(距右 20px、距底 84px,即输入框发送按钮上方)淡入气泡:👋 早上好/中午好/下午好/晚上好,腾盛 ×(按当前时间变化)
|
|
32
32
|
- **第二行显示账号余额**:`余额 ¥12.34`,来自当前登录的 DeepSeek 账号;每 60 秒刷新一次。
|
|
33
33
|
- **余额低于 3 元**时,这一行变橙并显示「余额不足」提醒。
|
|
34
|
-
-
|
|
34
|
+
- **点余额这一行展开详情**:账户名/联系方式、**当前会话标题与模型**、**连接状态(断开时可一键重连)**、**今日消耗估算(标注“估算”)**、充值余额、赠送余额、最近更新时间,以及「用量」「充值」快捷入口;再点一次收起。
|
|
35
35
|
- 今日估算的基准:优先用**昨天最后一次读到的余额**(≈ 0 点余额),没有昨天数据则用**今天第一次读到的余额**;充值会使基准同步抬高,不计入消费;详情里会显示基准时间。
|
|
36
36
|
- 详情里可以**隐藏金额(隐私模式)**:金额变为 `••••` 并记住,适合截图/录屏。
|
|
37
37
|
- 未登录、账号服务不可用或请求失败时显示 `余额 --`,不影响气泡的其他功能。
|
|
@@ -163,7 +163,6 @@ const BALANCE_MAX_BACKOFF_MS = 300_000; // 连续失败后的最大退避
|
|
|
163
163
|
|
|
164
164
|
```js
|
|
165
165
|
const LOW_BALANCE_CNY = 3; // 低于这个金额显示“余额不足”
|
|
166
|
-
const PLUGIN_VERSION = '1.3.0'; // 每次发版同步修改
|
|
167
166
|
```
|
|
168
167
|
|
|
169
168
|
隐私模式的状态保存在 localStorage 的 `dsh-greeting-bubble:privacy:v1`;想强制恢复“显示金额”,在控制台执行:
|
package/client.js
CHANGED
|
@@ -30,9 +30,6 @@ window.__ModuleLoader__.load({
|
|
|
30
30
|
/** Locale namespace owned by this plugin (registered in `apply`). */
|
|
31
31
|
const NS = 'greetingBubble';
|
|
32
32
|
|
|
33
|
-
/** Keep in sync with package.json's version on every release. */
|
|
34
|
-
const PLUGIN_VERSION = '1.3.0';
|
|
35
|
-
|
|
36
33
|
/** Where the reader last dropped the bubble, as viewport px. */
|
|
37
34
|
const POSITION_KEY = 'dsh-greeting-bubble:position:v1';
|
|
38
35
|
|
|
@@ -784,7 +781,7 @@ window.__ModuleLoader__.load({
|
|
|
784
781
|
'div',
|
|
785
782
|
{ className: 'dsh-greeting-row' },
|
|
786
783
|
h('span', { className: 'dsh-greeting-row-label' }, label('updated', '更新')),
|
|
787
|
-
h('span', { className: 'dsh-greeting-row-value' }, formatTime(updatedAt)
|
|
784
|
+
h('span', { className: 'dsh-greeting-row-value' }, formatTime(updatedAt)),
|
|
788
785
|
),
|
|
789
786
|
h(
|
|
790
787
|
'div',
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"description": "Shows a time-aware “你好,腾盛” speech bubble near the bottom-right corner of the window, just above the message composer (morning/noon/afternoon/evening variants), plus the signed-in DeepSeek account balance refreshed every 60 seconds. A balance below 3 CNY is flagged. Click the balance line to expand details: account, current session title and model, connection state with a one-click reconnect, today's spending estimate (marked as an estimate; baseline is the last balance seen yesterday or the first seen today, ignoring top-ups), wallet breakdown, last update,
|
|
3
|
+
"description": "Shows a time-aware “你好,腾盛” speech bubble near the bottom-right corner of the window, just above the message composer (morning/noon/afternoon/evening variants), plus the signed-in DeepSeek account balance refreshed every 60 seconds. A balance below 3 CNY is flagged. Click the balance line to expand details: account, current session title and model, connection state with a one-click reconnect, today's spending estimate (marked as an estimate; baseline is the last balance seen yesterday or the first seen today, ignoring top-ups), wallet breakdown, last update, and shortcuts to the Platform usage/top-up pages; a privacy toggle hides amounts, and drag remembers the bubble position. Click × to dismiss it; it appears again on the next page load. Control labels are localized; the greeting stays Chinese. Balance is read through the DSH account service, so the browser never sees the account token; a signed-out or failed read shows “--”. The plugin makes no network requests of its own and collects no data. Disable or remove the bundle under Plugins to remove it.",
|
|
4
4
|
"detail": "docs/DETAIL.md"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"description": "页面加载后,在窗口右下角、输入框上方弹出按时间变化的问候气泡(早上好/中午好/下午好/晚上好,腾盛),并显示当前 DeepSeek 账号余额(充值 + 赠送),每 60 秒刷新一次。余额低于 3
|
|
3
|
+
"description": "页面加载后,在窗口右下角、输入框上方弹出按时间变化的问候气泡(早上好/中午好/下午好/晚上好,腾盛),并显示当前 DeepSeek 账号余额(充值 + 赠送),每 60 秒刷新一次。余额低于 3 元会显示提醒;点击余额行展开详情:账户信息、当前会话标题与模型、连接状态(断开时可一键重连)、今日消耗估算(标注估算,基准取昨日最后一次或今日首次读到的余额,忽略充值)、充值/赠送明细、更新时间,以及「用量」「充值」快捷入口。支持隐藏金额(隐私模式),按住气泡可拖动并记住位置。点 × 关闭,下次页面加载会再次出现。界面文案跟随语言,问候语保持中文。余额通过 DSH 账号服务读取,浏览器不接触账号令牌;未登录或读取失败时显示「--」。插件不联网、不收集数据。在「插件」页停用或移除本插件即可彻底去掉。",
|
|
4
4
|
"detail": "docs/DETAIL.zh.md"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/package.json
CHANGED