@vibedev-si/dsh-vibedev 0.7.2 → 0.7.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.
- package/README.md +12 -0
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +15 -1
- package/client/client.js +24 -7
- package/lib/announcements/routes.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
本插件由 `dsh-media` 改名而来,见下面的「从 dsh-media 升级」。
|
|
12
12
|
|
|
13
|
+
## 0.7.3 用户可见更新
|
|
14
|
+
|
|
15
|
+
「消息」页和账户中心其他页面一样居中显示,宽窗口里不再贴着左边。
|
|
16
|
+
|
|
17
|
+
VibeDev 开着时发布的 `popup` 公告,现在会在下一次读取消息时弹出:每 5 分钟读一次,窗口回到前台时也会读,不用等下次重启。仍然是一次启动最多弹一次:关掉一条后,之后的 `popup` 公告留到下次启动。
|
|
18
|
+
|
|
13
19
|
## 0.7.2 用户可见更新
|
|
14
20
|
|
|
15
21
|
上下文窗口现在就是网关下发的输入上限(`max_input_tokens`):1M 的模型显示 1M,不再显示 1.34M。宿主的自动压缩仍然落在窗口的 80%(宿主自己的 0.8 阈值),所以看到 80% 就是该压缩的时候,不会再出现「表上还剩四分之一、请求却被网关拒掉」的情况。
|
|
@@ -342,6 +348,12 @@ npm run build
|
|
|
342
348
|
|
|
343
349
|
## English
|
|
344
350
|
|
|
351
|
+
### What changes in 0.7.3
|
|
352
|
+
|
|
353
|
+
The Messages page is centred like the other account-center pages instead of hugging the left edge of a wide window.
|
|
354
|
+
|
|
355
|
+
A `popup` announcement published while VibeDev is open now pops on the next read of the mailbox — every five minutes, and whenever the window comes back — instead of waiting for the next launch. It still interrupts at most once per launch: after one is closed, any further `popup` message waits for the next launch.
|
|
356
|
+
|
|
345
357
|
### What changes in 0.7.2
|
|
346
358
|
|
|
347
359
|
The context window is now exactly the input cap the gateway states (`max_input_tokens`): a 1M model reads 1M, not 1.34M. The host still compacts at 80% of that window — its own 0.8 ratio — so 80% on the meter is where compaction happens, and a request no longer gets refused while the meter still shows a third of the window free.
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.7.
|
|
1
|
+
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.7.3
|
|
2
2
|
|
|
3
3
|
This package bundles code from the projects below. Each is used under the licence that
|
|
4
4
|
follows its name; the licence texts are reproduced as the projects ship them.
|
|
@@ -2655,7 +2655,7 @@ window.__ModuleLoader__.load({
|
|
|
2655
2655
|
//#region src/client/AccountCenter/announcement-styles.ts
|
|
2656
2656
|
/** Presentation for the 消息 page, scoped to the account-center container like its siblings. */
|
|
2657
2657
|
const ANNOUNCEMENT_STYLES = `
|
|
2658
|
-
.vibedev-center .center-announcements{display:flex;flex-direction:column;gap:14px;max-width:960px}
|
|
2658
|
+
.vibedev-center .center-announcements{display:flex;flex-direction:column;gap:14px;width:100%;max-width:960px;margin-inline:auto}
|
|
2659
2659
|
.vibedev-center .center-announcements-filters{display:flex;align-items:center;gap:8px}
|
|
2660
2660
|
.vibedev-center .center-announcements-filter{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border:1px solid var(--center-border);border-radius:6px;background:transparent;color:var(--center-muted);font:inherit;cursor:pointer}
|
|
2661
2661
|
.vibedev-center .center-announcements-filter:hover{border-color:var(--dsw-alias-border-l3,#d0d5dd);color:var(--dsw-alias-label-primary,#202124)}
|
|
@@ -3824,6 +3824,8 @@ window.__ModuleLoader__.load({
|
|
|
3824
3824
|
timer;
|
|
3825
3825
|
/** Dialogs shown in this launch, so one announcement cannot interrupt twice. */
|
|
3826
3826
|
shown = /* @__PURE__ */ new Set();
|
|
3827
|
+
/** Whether this launch has already interrupted once; see {@link takeLaunchPopup}. */
|
|
3828
|
+
interrupted = false;
|
|
3827
3829
|
pending;
|
|
3828
3830
|
constructor(options = {}) {
|
|
3829
3831
|
this.options = options;
|
|
@@ -3934,6 +3936,18 @@ window.__ModuleLoader__.load({
|
|
|
3934
3936
|
return found;
|
|
3935
3937
|
}
|
|
3936
3938
|
/**
|
|
3939
|
+
* The one interruption this launch may make: the first unread `popup` message any read finds — at start-up, or on a
|
|
3940
|
+
* later poll when VibeDev published it while the app was open. After one has been handed out, nothing else
|
|
3941
|
+
* interrupts until the next launch, so closing one dialog never chains a second behind it.
|
|
3942
|
+
* @returns the message to show now, or undefined.
|
|
3943
|
+
*/
|
|
3944
|
+
takeLaunchPopup() {
|
|
3945
|
+
if (this.interrupted) return void 0;
|
|
3946
|
+
const found = this.takePopup();
|
|
3947
|
+
if (found !== void 0) this.interrupted = true;
|
|
3948
|
+
return found;
|
|
3949
|
+
}
|
|
3950
|
+
/**
|
|
3937
3951
|
* Remember that a person waved a dialog away, so it does not come back on the next launch.
|
|
3938
3952
|
* @param id - the announcement whose dialog was dismissed.
|
|
3939
3953
|
*/
|
package/client/client.js
CHANGED
|
@@ -3962,6 +3962,8 @@ window.__ModuleLoader__.load({ id: "@vibedev-si/dsh-vibedev", factory: (require)
|
|
|
3962
3962
|
timer;
|
|
3963
3963
|
/** Dialogs shown in this launch, so one announcement cannot interrupt twice. */
|
|
3964
3964
|
shown = /* @__PURE__ */ new Set();
|
|
3965
|
+
/** Whether this launch has already interrupted once; see {@link takeLaunchPopup}. */
|
|
3966
|
+
interrupted = false;
|
|
3965
3967
|
pending;
|
|
3966
3968
|
constructor(options = {}) {
|
|
3967
3969
|
this.options = options;
|
|
@@ -4072,6 +4074,18 @@ window.__ModuleLoader__.load({ id: "@vibedev-si/dsh-vibedev", factory: (require)
|
|
|
4072
4074
|
return found;
|
|
4073
4075
|
}
|
|
4074
4076
|
/**
|
|
4077
|
+
* The one interruption this launch may make: the first unread `popup` message any read finds — at start-up, or on a
|
|
4078
|
+
* later poll when VibeDev published it while the app was open. After one has been handed out, nothing else
|
|
4079
|
+
* interrupts until the next launch, so closing one dialog never chains a second behind it.
|
|
4080
|
+
* @returns the message to show now, or undefined.
|
|
4081
|
+
*/
|
|
4082
|
+
takeLaunchPopup() {
|
|
4083
|
+
if (this.interrupted) return void 0;
|
|
4084
|
+
const found = this.takePopup();
|
|
4085
|
+
if (found !== void 0) this.interrupted = true;
|
|
4086
|
+
return found;
|
|
4087
|
+
}
|
|
4088
|
+
/**
|
|
4075
4089
|
* Remember that a person waved a dialog away, so it does not come back on the next launch.
|
|
4076
4090
|
* @param id - the announcement whose dialog was dismissed.
|
|
4077
4091
|
*/
|
|
@@ -4527,8 +4541,9 @@ window.__ModuleLoader__.load({ id: "@vibedev-si/dsh-vibedev", factory: (require)
|
|
|
4527
4541
|
//#endregion
|
|
4528
4542
|
//#region src/client/AnnouncementDialog.tsx
|
|
4529
4543
|
/**
|
|
4530
|
-
* The
|
|
4531
|
-
*
|
|
4544
|
+
* The announcement dialog: at most one `popup` message per launch, shown on the first read that finds one — at
|
|
4545
|
+
* start-up, or on a later poll when the message was published while the app was open (the store decides which;
|
|
4546
|
+
* `silent` messages never interrupt).
|
|
4532
4547
|
*
|
|
4533
4548
|
* 知道了 sends the read receipt. 稍后 and 查看全部消息 close it and remember the id, so the
|
|
4534
4549
|
* same message never interrupts again — neither marks it read, so the badge keeps its dot and
|
|
@@ -4622,13 +4637,15 @@ window.__ModuleLoader__.load({ id: "@vibedev-si/dsh-vibedev", factory: (require)
|
|
|
4622
4637
|
useAnnouncementStyles();
|
|
4623
4638
|
const snapshot = (0, react.useSyncExternalStore)(store.subscribe, store.getSnapshot, store.getSnapshot);
|
|
4624
4639
|
const [item, setItem] = (0, react.useState)(void 0);
|
|
4625
|
-
const took = (0, react.useRef)(false);
|
|
4626
4640
|
(0, react.useEffect)(() => {
|
|
4627
|
-
if (
|
|
4628
|
-
|
|
4629
|
-
const next = store.takePopup();
|
|
4641
|
+
if (item !== void 0 || !snapshot.loaded) return;
|
|
4642
|
+
const next = store.takeLaunchPopup();
|
|
4630
4643
|
if (next !== void 0) setItem(next);
|
|
4631
|
-
}, [
|
|
4644
|
+
}, [
|
|
4645
|
+
snapshot,
|
|
4646
|
+
store,
|
|
4647
|
+
item
|
|
4648
|
+
]);
|
|
4632
4649
|
if (item === void 0) return null;
|
|
4633
4650
|
return announcementModal({
|
|
4634
4651
|
item,
|
|
@@ -37,7 +37,7 @@ export interface Announcement {
|
|
|
37
37
|
readonly id: number;
|
|
38
38
|
readonly title: string;
|
|
39
39
|
readonly content: string;
|
|
40
|
-
/** `popup` may interrupt
|
|
40
|
+
/** `popup` may interrupt once per launch; `silent` only ever appears in the list. */
|
|
41
41
|
readonly notifyMode: 'popup' | 'silent';
|
|
42
42
|
readonly startsAt?: string;
|
|
43
43
|
readonly endsAt?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibedev-si/dsh-vibedev",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "VibeDev 账号与模型:在 DeepSeek Harness 里登录 VibeDev,与 DeepSeek 账号并存,使用 VibeDev 网关的模型(Claude、GPT 等),并生成图片、视频、音乐和播客 · VibeDev account and models for DeepSeek Harness: sign in to VibeDev next to the DeepSeek account and use the VibeDev gateway's models (Claude, GPT and more), plus image, video, music and podcast generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|