@vibedev-si/dsh-vibedev 0.7.2 → 0.8.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/README.md +39 -5
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +21 -10
- package/client/client.js +2724 -2996
- package/cordis.patch.yml +0 -5
- package/lib/announcements/routes.d.ts +1 -1
- package/lib/fetch/wiring.d.ts +2 -0
- package/lib/index.js +4 -0
- package/lib/search/provider.d.ts +2 -0
- package/package.json +1 -7
- package/node_modules/@vibedev-si/dsh-ecosystem/LICENSE +0 -22
- package/node_modules/@vibedev-si/dsh-ecosystem/README.md +0 -154
- package/node_modules/@vibedev-si/dsh-ecosystem/catalog/catalog.json +0 -167
- package/node_modules/@vibedev-si/dsh-ecosystem/catalog-updates.js +0 -326
- package/node_modules/@vibedev-si/dsh-ecosystem/catalog-validator.js +0 -263
- package/node_modules/@vibedev-si/dsh-ecosystem/client.js +0 -2816
- package/node_modules/@vibedev-si/dsh-ecosystem/cordis.patch.yml +0 -5
- package/node_modules/@vibedev-si/dsh-ecosystem/icon.svg +0 -5
- package/node_modules/@vibedev-si/dsh-ecosystem/index.js +0 -169
- package/node_modules/@vibedev-si/dsh-ecosystem/locale/en.json +0 -6
- package/node_modules/@vibedev-si/dsh-ecosystem/locale/zh.json +0 -6
- package/node_modules/@vibedev-si/dsh-ecosystem/package.json +0 -75
- package/node_modules/@vibedev-si/dsh-ecosystem/remote-catalog.js +0 -212
package/README.md
CHANGED
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
|
|
11
11
|
本插件由 `dsh-media` 改名而来,见下面的「从 dsh-media 升级」。
|
|
12
12
|
|
|
13
|
+
## 0.8.0 用户可见更新
|
|
14
|
+
|
|
15
|
+
侧边栏的「VibeDev」现在只有账户页面,不再有「插件」分区。浏览、安装和更新插件请到侧边栏的「插件」页,已安装的插件在那里更新。在 VibeDev 应用里,VibeDev 出品的插件列在「发现」里;在 DeepSeek Harness 里按包名安装。
|
|
16
|
+
|
|
17
|
+
本插件不再附带 VibeDev 生态。0.6.0 到 0.7.3 的安装包里带有一份生态 0.2.0,并在没有单独安装生态时自动启用它;从 0.8.0 起,安装本插件只安装本插件。你单独安装过的生态仍然可用:它不再出现在 VibeDev 页面里,而是回到自己的侧栏入口「VibeDev 生态」,也可以在「插件」页卸载。
|
|
18
|
+
|
|
19
|
+
登录、充值、用量和影视工作台里的账户入口不变。
|
|
20
|
+
|
|
21
|
+
在列出搜索和抓取提供方的设置页里,本插件的提供方显示为「VibeDev」,不再显示内部标识 `vibedev-gateway`。
|
|
22
|
+
|
|
23
|
+
**给其他插件的作者**:浏览器端的 `vibedevCenter` 服务和 `vibedev.center.section` 插槽已移除,不能再往 VibeDev 页面里挂分区。Host 端打开账户页面的 `vibedevMedia.openAccountCenter({ page })` 不变。
|
|
24
|
+
|
|
25
|
+
## 0.7.3 用户可见更新
|
|
26
|
+
「消息」页和账户中心其他页面一样居中显示,宽窗口里不再贴着左边。
|
|
27
|
+
|
|
28
|
+
VibeDev 开着时发布的 `popup` 公告,现在会在下一次读取消息时弹出:每 5 分钟读一次,窗口回到前台时也会读,不用等下次重启。仍然是一次启动最多弹一次:关掉一条后,之后的 `popup` 公告留到下次启动。
|
|
29
|
+
|
|
13
30
|
## 0.7.2 用户可见更新
|
|
14
31
|
|
|
15
32
|
上下文窗口现在就是网关下发的输入上限(`max_input_tokens`):1M 的模型显示 1M,不再显示 1.34M。宿主的自动压缩仍然落在窗口的 80%(宿主自己的 0.8 阈值),所以看到 80% 就是该压缩的时候,不会再出现「表上还剩四分之一、请求却被网关拒掉」的情况。
|
|
@@ -96,7 +113,7 @@
|
|
|
96
113
|
|
|
97
114
|
## 安装
|
|
98
115
|
|
|
99
|
-
- **插件页**:在 DeepSeek Harness 的插件页按包名安装 `@vibedev-si/dsh-vibedev`(包名要带 `@vibedev-si/`
|
|
116
|
+
- **插件页**:在 DeepSeek Harness 的插件页按包名安装 `@vibedev-si/dsh-vibedev`(包名要带 `@vibedev-si/` 前缀)。
|
|
100
117
|
- **命令行**:
|
|
101
118
|
|
|
102
119
|
```bash
|
|
@@ -292,8 +309,8 @@
|
|
|
292
309
|
|
|
293
310
|
## 从 dsh-media 升级
|
|
294
311
|
|
|
295
|
-
-
|
|
296
|
-
-
|
|
312
|
+
- 先在插件页停用 `dsh-media`,再安装 `@vibedev-si/dsh-vibedev`,然后卸载 `dsh-media`,完全退出再打开应用。两个不能同时启用:它们注册同名的工具,后加载的那个会启动失败。
|
|
313
|
+
- 以前由 VibeDev 插件中心代做的「一键切换」随插件中心一起退役了,现在需要按上面的顺序手动做。
|
|
297
314
|
- 登录状态、进行中的视频和音频任务都会保留,不用重新登录。插件页里的媒体设置(花费确认、保存目录、默认模型)会回到默认值,需要的话重新设一下。
|
|
298
315
|
|
|
299
316
|
## 隐私
|
|
@@ -342,6 +359,23 @@ npm run build
|
|
|
342
359
|
|
|
343
360
|
## English
|
|
344
361
|
|
|
362
|
+
### What changes in 0.8.0
|
|
363
|
+
|
|
364
|
+
The VibeDev sidebar entry now holds the account pages only; its Plugins section is gone. Browse, install and update plugins on the sidebar's Plugins page, where installed plugins update. In the VibeDev app, VibeDev's own plugins are listed under Discover; in DeepSeek Harness they are installed by package name.
|
|
365
|
+
|
|
366
|
+
This plugin no longer brings the VibeDev Ecosystem with it. Releases 0.6.0 to 0.7.3 carried a copy of Ecosystem 0.2.0 and switched it on when no separately installed ecosystem was present; from 0.8.0, installing this plugin installs this plugin alone. An ecosystem you installed yourself keeps working: it no longer appears inside the VibeDev page and returns to its own sidebar entry, VibeDev Ecosystem. It can be removed on the Plugins page.
|
|
367
|
+
|
|
368
|
+
Sign-in, top-up, usage and the account entries in the film workbench are unchanged.
|
|
369
|
+
|
|
370
|
+
On a settings page that lists search and fetch providers, this plugin's providers appear as "VibeDev" instead of the internal id `vibedev-gateway`.
|
|
371
|
+
|
|
372
|
+
**For authors of other plugins**: the browser-side `vibedevCenter` service and the `vibedev.center.section` slot are removed, so a section can no longer be mounted into the VibeDev page. The Host-side `vibedevMedia.openAccountCenter({ page })` that opens an account page is unchanged.
|
|
373
|
+
|
|
374
|
+
### What changes in 0.7.3
|
|
375
|
+
The Messages page is centred like the other account-center pages instead of hugging the left edge of a wide window.
|
|
376
|
+
|
|
377
|
+
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.
|
|
378
|
+
|
|
345
379
|
### What changes in 0.7.2
|
|
346
380
|
|
|
347
381
|
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.
|
|
@@ -434,7 +468,7 @@ Sign in to VibeDev in DeepSeek Harness, next to the DeepSeek account:
|
|
|
434
468
|
|
|
435
469
|
Billing and available payment sources follow the VibeDev gateway receipt; the DeepSeek account stays DeepSeek Harness's own, and the two do not affect each other. To create an account, register at [VibeDev](https://api.vibedev.studio). This plugin was renamed from `dsh-media`.
|
|
436
470
|
|
|
437
|
-
**Install**: install `@vibedev-si/dsh-vibedev` by package name on the Plugins page (the `@vibedev-si/` scope is required)
|
|
471
|
+
**Install**: install `@vibedev-si/dsh-vibedev` by package name on the Plugins page (the `@vibedev-si/` scope is required); from the command line, `dsh plugin add @vibedev-si/dsh-vibedev`, or `dsh plugin --profile desktop add @vibedev-si/dsh-vibedev` for the desktop app (quit it fully first). The VibeDev app ships with the plugin built in, and there the VibeDev account is the main account (the bottom row of the sidebar and the first Settings section), with the DeepSeek account as the second one. Within 24 hours of a release, name the version (e.g. `@vibedev-si/dsh-vibedev@0.2.5`): pnpm does not install versions younger than a day by default.
|
|
438
472
|
|
|
439
473
|
**Signing in**: choose "Sign in to VibeDev" at the bottom of the sidebar or in Settings → VibeDev account. The VibeDev sign-in page opens in your system browser: you type your password on VibeDev's own page, never in the plugin. Settings → VibeDev account shows the account, the balance and how many VibeDev models are listed, and lets you top up, see usage and sign out.
|
|
440
474
|
|
|
@@ -498,7 +532,7 @@ For explicit joint acceptance, run node scripts/verify-fetch-joint.mjs with one
|
|
|
498
532
|
|
|
499
533
|
**Settings**: open "VibeDev Account & Models" on the Plugins page for the spending confirmation, the output folder and the default media models. `displayName`, `relayDisplayName` (the relay group label, default 中转), `preferredModels`, `openBrowserOnSignIn`, `catalogRefreshMinutes`, `client` (the client name sent with the sign-in, default `vibedev-plugin`), `primary` (show the account as the app's main account; off by default, on in the VibeDev app) and `gatewayFetch` (register the gateway fetch provider `vibedev-gateway`; off by default, and the `web` row's `fetchProvider` still selects it) are set in the profile's `cordis.patch.yml` row `dsh-vibedev`.
|
|
500
534
|
|
|
501
|
-
**Upgrading from dsh-media**:
|
|
535
|
+
**Upgrading from dsh-media**: disable `dsh-media` first, install `@vibedev-si/dsh-vibedev`, uninstall `dsh-media` and restart the app fully. The VibeDev Plugin Center used to do this switch for you; it is retired, so the steps are now done by hand. The two cannot both be enabled: they register the same tool names, and whichever loads second fails to start. The sign-in and running video and audio tasks carry over; the media settings go back to their defaults.
|
|
502
536
|
|
|
503
537
|
**Privacy**: prompts and reference media are sent to the VibeDev gateway, which forwards them to the model provider. The plugin's own sign-in is kept in the DeepSeek Harness credential store, and task records under `dsh-media/` in the DeepSeek Harness data folder (the former name, kept so an upgrade loses nothing).
|
|
504
538
|
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.
|
|
1
|
+
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.8.0
|
|
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.
|
|
@@ -1967,9 +1967,6 @@ window.__ModuleLoader__.load({
|
|
|
1967
1967
|
const zh = {
|
|
1968
1968
|
...accountZh,
|
|
1969
1969
|
unifiedTitle: "VibeDev",
|
|
1970
|
-
unifiedAccount: "账户",
|
|
1971
|
-
unifiedSections: "VibeDev 分区",
|
|
1972
|
-
unifiedUpdatesCount: "{count} 项更新",
|
|
1973
1970
|
spending: "花费",
|
|
1974
1971
|
confirmSpending: "每次付费生成前先询问",
|
|
1975
1972
|
confirmSpendingHint: "开启后,生成图片、视频、音乐或播客之前会先请你确认,并显示模型和预估金额。默认关闭。",
|
|
@@ -2655,7 +2652,7 @@ window.__ModuleLoader__.load({
|
|
|
2655
2652
|
//#region src/client/AccountCenter/announcement-styles.ts
|
|
2656
2653
|
/** Presentation for the 消息 page, scoped to the account-center container like its siblings. */
|
|
2657
2654
|
const ANNOUNCEMENT_STYLES = `
|
|
2658
|
-
.vibedev-center .center-announcements{display:flex;flex-direction:column;gap:14px;max-width:960px}
|
|
2655
|
+
.vibedev-center .center-announcements{display:flex;flex-direction:column;gap:14px;width:100%;max-width:960px;margin-inline:auto}
|
|
2659
2656
|
.vibedev-center .center-announcements-filters{display:flex;align-items:center;gap:8px}
|
|
2660
2657
|
.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
2658
|
.vibedev-center .center-announcements-filter:hover{border-color:var(--dsw-alias-border-l3,#d0d5dd);color:var(--dsw-alias-label-primary,#202124)}
|
|
@@ -2705,9 +2702,9 @@ window.__ModuleLoader__.load({
|
|
|
2705
2702
|
//#region src/client/AccountCenter/center-shell-styles.ts
|
|
2706
2703
|
const CENTER_SHELL_STYLES = `
|
|
2707
2704
|
.vibedev-center.center-ui-v2{height:100%;min-height:420px;min-width:0;color:var(--dsw-alias-label-primary,#202124);background:var(--dsw-alias-bg-layer-1,#fff);font-size:13px;line-height:1.5;container-type:inline-size;--center-accent:var(--dsw-alias-state-business-primary,#416fe2);--center-border:var(--dsw-alias-border-l2,#e4e7ec);--center-surface:var(--dsw-alias-bg-layer-2,#fff);--center-muted:var(--dsw-alias-label-secondary,#667085)}
|
|
2708
|
-
.center-ui-v2 *{box-sizing:border-box}.center-main{height:100%;min-width:0;overflow:auto;scrollbar-gutter:stable}.center-page-header{position:sticky;top:0;z-index:3;padding:20px 28px 0;background:var(--dsw-alias-bg-layer-1,#fff);border-bottom:1px solid var(--center-border)}.center-title-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.center-page-heading{min-width:0}.center-page-heading h1{font-size:23px;line-height:1.25;font-weight:650;margin:3px 0 5px;letter-spacing:-.025em}.center-eyebrow{font-size:11px;color:var(--center-muted);letter-spacing:.02em}.center-page-description{font-size:12px;color:var(--center-muted);margin:0}.center-navigation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.center-native-nav{display:flex;gap:4px;min-width:0;overflow:auto;scrollbar-width:none}.center-native-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:6px 6px 0 0;padding:10px 15px 13px;font:inherit;font-weight:500;color:var(--center-muted);background:transparent;white-space:nowrap;cursor:pointer}.center-native-nav button[aria-current=page]{color:var(--center-accent);font-weight:650;background:color-mix(in srgb,var(--center-accent) 6%,transparent)}.center-native-nav button[aria-current=page]:after{position:absolute;bottom:0;left:12px;right:12px;height:2px;border-radius:2px;background:var(--center-accent);content:''}.center-native-nav button:hover{background:var(--dsw-alias-bg-layer-3,#f5f6f8)}.center-ui-v2 :focus-visible{outline:2px solid var(--center-accent);outline-offset:3px}.center-page-content{padding:22px 28px 32px;max-width:1540px;margin:auto;min-width:0}.center-ui-v2 .center-stack{gap:18px}.center-ui-v2 .center-section{border-radius:10px;padding:18px;border-color:var(--center-border);background:var(--center-surface)}.center-ui-v2 .center-section-head{margin-bottom:14px}.center-ui-v2 .center-section h2{font-size:14px;font-weight:650}.center-ui-v2 .center-section h3{font-size:13px}.center-ui-v2 .center-metric{border-color:var(--center-border);background:var(--center-surface);border-radius:9px}.center-ui-v2 .center-field{min-width:108px;gap:4px}.center-ui-v2 .center-field select{min-height:32px;padding:5px 9px;border-radius:6px;border-color:var(--center-border);background:var(--dsw-alias-bg-layer-1,#fff)}.center-ui-v2 .center-range{gap:12px}.center-ui-v2 .center-range>.center-filters{flex:1;min-width:0;gap:10px}.center-ui-v2 .center-range>.center-actions{align-items:center;gap:6px}.center-ui-v2 .center-range .center-field{flex:1;min-width:116px}.center-ui-v2 .center-table th{background:var(--dsw-alias-bg-layer-3,#f7f8fa);font-size:11px}.center-ui-v2 .center-table td{font-size:12px}.center-ui-v2 .center-table tbody tr:hover{background:color-mix(in srgb,var(--center-accent) 3%,transparent)}.center-ui-v2 .center-muted{color:var(--center-muted)}.center-ui-v2 .center-status{padding:10px 12px;border-radius:7px;background:var(--dsw-alias-bg-layer-3,#f7f8fa)}.center-ui-v2 .center-warning{padding:10px 12px;border:1px solid color-mix(in srgb,var(--dsw-alias-state-warn-primary,#b77700) 25%,transparent);background:color-mix(in srgb,var(--dsw-alias-state-warn-primary,#b77700) 6%,transparent);border-radius:7px;font-size:12px}.center-empty-state{text-align:center;padding:40px 20px!important}.center-empty-state>svg{margin:0 auto;color:var(--center-muted)}.center-ui-v2 .center-inline-button{text-decoration:none}.center-ui-v2 .center-inline-button:hover{text-decoration:underline}
|
|
2709
|
-
@container(max-width:760px){.center-page-header{padding:16px 16px 0}.center-page-content{padding:16px}.center-page-heading h1{font-size:21px}.center-title-row{margin-bottom:12px}.center-page-description{font-size:11px}.center-native-nav button{padding:9px 10px 11px;gap:5px}.center-navigation-row{gap:4px}.center-ui-v2 .center-section{padding:14px}.center-ui-v2 .center-range>.center-actions{width:100%}}
|
|
2710
|
-
@container(max-width:430px){.center-page-header{padding:12px 12px 0}.center-page-content{padding:12px}.center-eyebrow{font-size:10px}.center-page-description{display:none}.center-page-heading h1{font-size:20px;margin-bottom:0}.center-native-nav{gap:0}.center-native-nav button{padding:10px 8px 12px;font-size:12px}.center-native-nav button svg{display:none}.center-navigation-row>button{font-size:11px;padding-left:7px;padding-right:7px}.center-ui-v2 .center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.center-ui-v2 .center-metric{padding:12px}.center-ui-v2 .center-range .center-field{min-width:120px}.center-ui-v2 .center-section{padding:12px}.center-ui-v2 .center-stack{gap:14px}}
|
|
2705
|
+
.center-ui-v2 *{box-sizing:border-box}.center-main{height:100%;min-width:0;overflow:auto;scrollbar-gutter:stable}.center-page-header{position:sticky;top:0;z-index:3;padding:20px 28px 0;background:var(--dsw-alias-bg-layer-1,#fff);border-bottom:1px solid var(--center-border)}[data-platform='darwin'] .vibedev-center .center-page-header{padding-top:calc(20px + var(--dsh-frame-top-clearance,0px))}.center-title-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.center-page-heading{min-width:0}.center-page-heading h1{font-size:23px;line-height:1.25;font-weight:650;margin:3px 0 5px;letter-spacing:-.025em}.center-eyebrow{font-size:11px;color:var(--center-muted);letter-spacing:.02em}.center-page-description{font-size:12px;color:var(--center-muted);margin:0}.center-navigation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.center-native-nav{display:flex;gap:4px;min-width:0;overflow:auto;scrollbar-width:none}.center-native-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:6px 6px 0 0;padding:10px 15px 13px;font:inherit;font-weight:500;color:var(--center-muted);background:transparent;white-space:nowrap;cursor:pointer}.center-native-nav button[aria-current=page]{color:var(--center-accent);font-weight:650;background:color-mix(in srgb,var(--center-accent) 6%,transparent)}.center-native-nav button[aria-current=page]:after{position:absolute;bottom:0;left:12px;right:12px;height:2px;border-radius:2px;background:var(--center-accent);content:''}.center-native-nav button:hover{background:var(--dsw-alias-bg-layer-3,#f5f6f8)}.center-ui-v2 :focus-visible{outline:2px solid var(--center-accent);outline-offset:3px}.center-page-content{padding:22px 28px 32px;max-width:1540px;margin:auto;min-width:0}.center-ui-v2 .center-stack{gap:18px}.center-ui-v2 .center-section{border-radius:10px;padding:18px;border-color:var(--center-border);background:var(--center-surface)}.center-ui-v2 .center-section-head{margin-bottom:14px}.center-ui-v2 .center-section h2{font-size:14px;font-weight:650}.center-ui-v2 .center-section h3{font-size:13px}.center-ui-v2 .center-metric{border-color:var(--center-border);background:var(--center-surface);border-radius:9px}.center-ui-v2 .center-field{min-width:108px;gap:4px}.center-ui-v2 .center-field select{min-height:32px;padding:5px 9px;border-radius:6px;border-color:var(--center-border);background:var(--dsw-alias-bg-layer-1,#fff)}.center-ui-v2 .center-range{gap:12px}.center-ui-v2 .center-range>.center-filters{flex:1;min-width:0;gap:10px}.center-ui-v2 .center-range>.center-actions{align-items:center;gap:6px}.center-ui-v2 .center-range .center-field{flex:1;min-width:116px}.center-ui-v2 .center-table th{background:var(--dsw-alias-bg-layer-3,#f7f8fa);font-size:11px}.center-ui-v2 .center-table td{font-size:12px}.center-ui-v2 .center-table tbody tr:hover{background:color-mix(in srgb,var(--center-accent) 3%,transparent)}.center-ui-v2 .center-muted{color:var(--center-muted)}.center-ui-v2 .center-status{padding:10px 12px;border-radius:7px;background:var(--dsw-alias-bg-layer-3,#f7f8fa)}.center-ui-v2 .center-warning{padding:10px 12px;border:1px solid color-mix(in srgb,var(--dsw-alias-state-warn-primary,#b77700) 25%,transparent);background:color-mix(in srgb,var(--dsw-alias-state-warn-primary,#b77700) 6%,transparent);border-radius:7px;font-size:12px}.center-empty-state{text-align:center;padding:40px 20px!important}.center-empty-state>svg{margin:0 auto;color:var(--center-muted)}.center-ui-v2 .center-inline-button{text-decoration:none}.center-ui-v2 .center-inline-button:hover{text-decoration:underline}
|
|
2706
|
+
@container(max-width:760px){.center-page-header{padding:16px 16px 0}[data-platform='darwin'] .vibedev-center .center-page-header{padding-top:calc(16px + var(--dsh-frame-top-clearance,0px))}.center-page-content{padding:16px}.center-page-heading h1{font-size:21px}.center-title-row{margin-bottom:12px}.center-page-description{font-size:11px}.center-native-nav button{padding:9px 10px 11px;gap:5px}.center-navigation-row{gap:4px}.center-ui-v2 .center-section{padding:14px}.center-ui-v2 .center-range>.center-actions{width:100%}}
|
|
2707
|
+
@container(max-width:430px){.center-page-header{padding:12px 12px 0}[data-platform='darwin'] .vibedev-center .center-page-header{padding-top:calc(12px + var(--dsh-frame-top-clearance,0px))}.center-page-content{padding:12px}.center-eyebrow{font-size:10px}.center-page-description{display:none}.center-page-heading h1{font-size:20px;margin-bottom:0}.center-native-nav{gap:0}.center-native-nav button{padding:10px 8px 12px;font-size:12px}.center-native-nav button svg{display:none}.center-navigation-row>button{font-size:11px;padding-left:7px;padding-right:7px}.center-ui-v2 .center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.center-ui-v2 .center-metric{padding:12px}.center-ui-v2 .center-range .center-field{min-width:120px}.center-ui-v2 .center-section{padding:12px}.center-ui-v2 .center-stack{gap:14px}}
|
|
2711
2708
|
.center-page-picker{display:none;color:var(--dsw-alias-label-primary,#1f2937);background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--center-border);border-radius:6px;padding:7px 10px;font:inherit;min-width:0;max-width:100%}
|
|
2712
2709
|
@container(max-width:640px){.center-native-nav{display:none}.center-page-picker{display:block;flex:1}.center-navigation-row{padding-bottom:10px}}
|
|
2713
2710
|
@media(prefers-reduced-motion:reduce){.center-ui-v2 *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
|
|
@@ -3824,6 +3821,8 @@ window.__ModuleLoader__.load({
|
|
|
3824
3821
|
timer;
|
|
3825
3822
|
/** Dialogs shown in this launch, so one announcement cannot interrupt twice. */
|
|
3826
3823
|
shown = /* @__PURE__ */ new Set();
|
|
3824
|
+
/** Whether this launch has already interrupted once; see {@link takeLaunchPopup}. */
|
|
3825
|
+
interrupted = false;
|
|
3827
3826
|
pending;
|
|
3828
3827
|
constructor(options = {}) {
|
|
3829
3828
|
this.options = options;
|
|
@@ -3934,6 +3933,18 @@ window.__ModuleLoader__.load({
|
|
|
3934
3933
|
return found;
|
|
3935
3934
|
}
|
|
3936
3935
|
/**
|
|
3936
|
+
* The one interruption this launch may make: the first unread `popup` message any read finds — at start-up, or on a
|
|
3937
|
+
* later poll when VibeDev published it while the app was open. After one has been handed out, nothing else
|
|
3938
|
+
* interrupts until the next launch, so closing one dialog never chains a second behind it.
|
|
3939
|
+
* @returns the message to show now, or undefined.
|
|
3940
|
+
*/
|
|
3941
|
+
takeLaunchPopup() {
|
|
3942
|
+
if (this.interrupted) return void 0;
|
|
3943
|
+
const found = this.takePopup();
|
|
3944
|
+
if (found !== void 0) this.interrupted = true;
|
|
3945
|
+
return found;
|
|
3946
|
+
}
|
|
3947
|
+
/**
|
|
3937
3948
|
* Remember that a person waved a dialog away, so it does not come back on the next launch.
|
|
3938
3949
|
* @param id - the announcement whose dialog was dismissed.
|
|
3939
3950
|
*/
|
|
@@ -13710,7 +13721,7 @@ window.__ModuleLoader__.load({
|
|
|
13710
13721
|
});
|
|
13711
13722
|
}
|
|
13712
13723
|
/** Native pages and explicitly labeled website actions share the same identity. */
|
|
13713
|
-
function AccountCenter({ store, announcements = NO_MAILBOX, t = (key) => zh[key]
|
|
13724
|
+
function AccountCenter({ store, announcements = NO_MAILBOX, t = (key) => zh[key] }) {
|
|
13714
13725
|
const [menuOpen, setMenuOpen] = (0, react.useState)(false);
|
|
13715
13726
|
const account = (0, react.useSyncExternalStore)(store.subscribe, store.getSnapshot, store.getSnapshot);
|
|
13716
13727
|
const [page, setPage] = (0, react.useState)(() => normalizeAccountPage(account.accountCenterPage?.page ?? "dashboard"));
|
|
@@ -13770,7 +13781,7 @@ window.__ModuleLoader__.load({
|
|
|
13770
13781
|
if (origin !== void 0) store.openLink(centerWebUrl(origin, "profile"));
|
|
13771
13782
|
};
|
|
13772
13783
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13773
|
-
className: "vibedev-center center-ui-v2"
|
|
13784
|
+
className: "vibedev-center center-ui-v2",
|
|
13774
13785
|
"data-dsh-vibedev-account-center": true,
|
|
13775
13786
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", { children: CENTER_STYLES }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("main", {
|
|
13776
13787
|
className: "center-main",
|
|
@@ -13781,7 +13792,7 @@ window.__ModuleLoader__.load({
|
|
|
13781
13792
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13782
13793
|
className: "center-page-heading",
|
|
13783
13794
|
children: [
|
|
13784
|
-
|
|
13795
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
13785
13796
|
className: "center-eyebrow",
|
|
13786
13797
|
children: ["VibeDev · ", t("centerAccountWorkspace")]
|
|
13787
13798
|
}),
|