@vibedev-si/dsh-vibedev 0.3.3 → 0.3.5

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 CHANGED
@@ -37,6 +37,14 @@
37
37
 
38
38
  「设置 → VibeDev 账号」里能看到当前账号、余额和 VibeDev 模型的数量,可以充值、查看用量明细、退出登录。登录会自动续期;退出后 VibeDev 的模型会从选择器里消失,DeepSeek 账号不受影响。
39
39
 
40
+ 0.3.5 起,指针在侧边栏的 VibeDev 账号行上停留约半秒,会弹出余额卡片:
41
+
42
+ - **可用、冻结中、合计**:金额和 VibeDev 网关控制台的写法一致(两位小数,加千分位,例如 `¥99,976,091.91`)。视频、批量生图等任务提交时先把预估金额从可用余额转为「冻结中」,任务结束后结算;只有存在冻结金额时才显示这一行。
43
+ - **更新时间**:「12 秒前更新」,旁边有「刷新」。读取失败时写明「读取失败,显示的是 3 分钟前的余额」,不会把旧余额当成最新的。打开卡片或账号菜单时,如果显示的余额是 10 秒以前读到的,会重新读取一次。
44
+ - **网络延迟**:从本机到 VibeDev 网关的网络往返(例如「网络延迟 162 ms · 正常」:低于 150 ms 很快,150–300 ms 正常,300–800 ms 较慢,800 ms 以上很慢;连不上时写明超时、网络错误或 HTTP 状态),可以「重新测速」。测的是网络,不是模型的速度。只在打开卡片且上次测速已超过一分钟、或点「重新测速」时测量,不会定时运行。
45
+
46
+ 侧边栏那一行改用简短写法:一万以上写成「¥9,997.6万」「¥1.23亿」(英文界面为 K / M / B),只舍不入;菜单和设置页仍显示完整金额。
47
+
40
48
  0.2.3 起修复了重启后再次要求登录的问题:启动时凭据服务未就绪或临时读取失败,会在服务就绪后恢复,不把空结果永久缓存;正常关闭应用保留登录。过去写到本地备用文件的会话在宿主凭据服务可用后迁入,宿主已有记录优先,显式退出会清理备用会话。VibeDev 应用内置的插件需要随应用升级到修复版;单独安装在 DeepSeek Harness 中的插件可直接升级。
41
49
 
42
50
  0.2.5 起撤回了 0.2.4 加在「设置 → VibeDev 账号」页尾的「创作工具」推荐行:那一行属于插件之间的推荐位,放在设置页会影响观感,等重新设计后再考虑。撤销只涉及这一处界面,账号、余额、模型列表、登录与已保存的剧本分镜作品都不受影响。
@@ -95,9 +103,11 @@
95
103
 
96
104
  - VibeDev 的聊天模型按用量计费,价格以 VibeDev 网关为准。
97
105
  - 图片按张计费,视频按秒计费(参考视频的时长也计入),音乐和播客按次计费,语音按原始秒计费(按服务商返回的原始时长,可能和播放时长不同),转写按分钟计费。`media_models` 会列出当前价格;目录没有给出价格的模型显示「未定价」,不代表免费。
106
+ - 按视频 Token 计价的模型(目录里的 `video_pricing`)按分辨率和有无参考视频、参考音频、参考图(含首尾帧)分档,例如「480p 无参考视频 ¥60.06/百万 Token(预计 ¥0.5819/秒)」。生成前的金额只是预估:每秒预估价 ×(输出时长 + 所有参考视频时长),最终按实际视频 Token 结算。参考视频时长未知、目录没有每秒预估价或计价方式当前版本不支持时,显示「无法预估;按实际视频 Token 用量结算」,不会当成免费或未定价。视频生成后费用仍在确认(`billing_status: pending`)时,视频照常保存,只是费用待确认,不会重新生成。
98
107
  - 视频和音频只在成功时扣费,失败和取消的任务不扣。视频提交后无法取消。
99
108
  - 同一次操作只会生成一次:提交没有得到确认时,会用同一个请求键向网关确认结果;查询或下载失败只会重新查询、刷新链接,不会重新提交。结果已经生成、但费用还在结算(`settlement_pending`)时,结果照常保存,不会重新生成。
100
109
  - 余额在每次付费请求结束后(对话回复、生成、转写)马上重新读取,侧栏和设置页几秒内就能看到扣费后的余额。
110
+ - 视频、批量生图任务提交时,网关先把预估金额从可用余额转为冻结金额,任务结束后结算。余额卡片分别显示可用、冻结中与合计,设置页在有冻结金额时多显示一行;冻结金额的变化也会让页面及时更新。
101
111
  - 插件设置里的「每次付费生成前先询问」默认关闭。打开后,每次付费的媒体请求之前都会先弹出确认,并显示预估金额。
102
112
 
103
113
  ## 设置
@@ -165,6 +175,8 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
165
175
 
166
176
  **Balance without the wait (0.3.2)**: the balance is read again right after a paid request ends (a chat reply, a generation, a transcription) and the account pages hear it through a long poll, so a charge shows within seconds instead of after up to two minutes. A page that already has a balance is answered at once while a newer one is read behind it; reads after charges are at least five seconds apart.
167
177
 
178
+ **Balance card (0.3.5)**: resting the pointer on the sidebar's VibeDev account row for half a second opens a card with the available balance, the amount on hold (a video or batch-image task holds its estimate from submission until it settles; shown only while something is held) and the total, written as the gateway console writes them (`Number(x).toFixed(2)` with thousands separators: `¥99,976,091.91`); when that balance was read, with Refresh — a read that fails says so and how old the balance shown is, never passing it off as fresh; and the network latency from the app to the VibeDev gateway (from the Host, the median of four timed `GET /health` requests after a warm-up one: under 150 ms fast, 150–300 normal, 300–800 slow, then very slow, or unreachable with the reason), with Test again — network distance, not model speed. Opening the card or the row's menu reads the balance again when the one shown is more than 10 s old; the latency is measured when the card opens and the last measurement is more than a minute old, or on request, never on a timer. The sidebar row shortens large balances (`¥9,997.6万`, `¥1.23亿`; `¥99.97M`, `¥12.34K` in English, cut rather than rounded up); the menu and Settings keep the full amount, and Settings adds a line for a hold. The account route gains `balance.frozen`, `readAt` and `readFailedAt` (a change in the hold wakes the long poll like a change in the balance), and `POST /api/dsh-vibedev/latency` (`?fresh=1` measures within the minute a result is kept) answers `medianMs`, `samplesMs`, `warmupMs` and `measuredAt`, or `error: { kind: 'timeout' | 'network' | 'http', status }`.
179
+
168
180
  **Models**: the list comes from the VibeDev gateway for your account, so nothing is listed before you sign in; models appear right after, without a restart. Using a VibeDev model while signed out, or after the sign-in has ended, asks you to sign in; a used-up balance says so with the top-up link. These messages are separate from the DeepSeek account's. An expired access token is renewed and the request sent again, without repeating any output.
169
181
 
170
182
  **Web search**: the plugin registers the web search provider `vibedev-gateway`, signed in with your VibeDev account. Registering does not select it: DeepSeek Harness keeps its own search unless the profile sets `searchProvider: vibedev-gateway` on the `web` row (the VibeDev app does). Searching is free, but the gateway refuses every request, searches included, while the balance is zero.
@@ -173,7 +185,7 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
173
185
 
174
186
  **Audio models**: whether an audio model makes music, a podcast, speech or a transcription comes from its catalog declaration (`audio.generation_kind`), never from its name; a model that declares no kind is listed but cannot generate. Each model is sent only the fields it declares in `request_fields`, with the text in its `prompt_field`: music takes `prompt`, `lyrics`, `genre`, `mood` and `gender`; a podcast `prompt` and `source_url`; speech what it declares (Seed: `text_prompt`, `references`, `audio_config`, `watermark`). Speech reference limits (count, size, length, exclusions) and the sample rates of each output format come from the gateway. Music and podcasts take no references, format, sample rate or duration.
175
187
 
176
- **Cost**: chat models are billed by usage at the gateway's prices; images per image, video per second (reference video length counts), music and podcasts per request, speech per second of original audio (the length the provider reports, which can differ from playback), transcription per minute. A model without a catalog price is shown as "not priced" (未定价), never as free. Failed and cancelled video and audio tasks are not charged, and a submitted video cannot be cancelled. One operation generates once: an unconfirmed submission is settled under the same key, a failed query or download only queries again or renews the link, and a result whose charge is still settling (`settlement_pending`) is kept, never generated again. "Ask before each paid generation" is off by default.
188
+ **Cost**: chat models are billed by usage at the gateway's prices; images per image, video per second (reference video length counts), music and podcasts per request, speech per second of original audio (the length the provider reports, which can differ from playback), transcription per minute. A model without a catalog price is shown as "not priced" (未定价), never as free. Video models priced per video Token (`video_pricing` in the catalog) have one Token price per resolution and presence of reference video, audio and images (first and last frames count as images); before a run the plugin estimates the matching rule's per-second price times the output length plus every reference video's length, and the final charge is the actual video Tokens. When that cannot be estimated (an unmeasured reference video, no per-second estimate, a pricing mode this version does not read) it says "estimate unavailable; billed by actual video Token usage" — never free, never "not priced". A finished video whose billing is still pending (`billing_status: pending`) is saved as usual and never generated again; only the charge is still to be confirmed. Failed and cancelled video and audio tasks are not charged, and a submitted video cannot be cancelled. One operation generates once: an unconfirmed submission is settled under the same key, a failed query or download only queries again or renews the link, and a result whose charge is still settling (`settlement_pending`) is kept, never generated again. "Ask before each paid generation" is off by default.
177
189
 
178
190
  **Settings**: open "VibeDev Account & Models" on the Plugins page for the spending confirmation, the output folder and the default media models. `displayName`, `preferredModels`, `openBrowserOnSignIn`, `catalogRefreshMinutes`, `client` (the client name sent with the sign-in, default `vibedev-plugin`) and `primary` (show the account as the app's main account; off by default, on in the VibeDev app) are set in the profile's `cordis.patch.yml` row `dsh-vibedev`.
179
191
 
@@ -181,7 +193,7 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
181
193
 
182
194
  **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).
183
195
 
184
- **For other plugins**: the `vibedevMedia` service generates images, videos and audio (`startAudio`: music, podcasts and speech) through the same model choice, reference checks, idempotent submission and background saving; the film workbench ([dsh-film](https://github.com/VibeDev-Si/dsh-film)) storyboard uses it. `audioForms()` describes the form of each audio model (only its declared fields, choices and limits, and its price). Every task is read the same way: `task` (as recorded), `refreshTask` (ask the gateway again — fresh links, settlement; a query, never a submission), `onTask` (each change) and `result` (the files to play or download). Pass the same `operationId` when one click is retried: its task is returned and nothing is submitted twice.
196
+ **For other plugins**: the `vibedevMedia` service generates images, videos and audio (`startAudio`: music, podcasts and speech) through the same model choice, reference checks, idempotent submission and background saving; the film workbench ([dsh-film](https://github.com/VibeDev-Si/dsh-film)) storyboard uses it. `audioForms()` describes the form of each audio model (only its declared fields, choices and limits, and its price). `videoQuote(request)` quotes a video request from the cached catalog alone (no upload, no submission): a video Token estimate with its rule and basis, a legacy estimate, or why there is none. Task views carry `settlement`, `settlementPendingReason`, `chargedCny` (only once settled, exactly as the gateway wrote it) and `billing.tokens`. Every task is read the same way: `task` (as recorded), `refreshTask` (ask the gateway again — fresh links, settlement; a query, never a submission), `onTask` (each change) and `result` (the files to play or download). Pass the same `operationId` when one click is retried: its task is returned and nothing is submitted twice.
185
197
 
186
198
  **Third-party code**: the model route in `src/llm/` is ported from the VibeDev app; `context.ts`, `replay.ts` and `stream.ts` are copied from DeepSeek Harness's `@deepseek-ai/dsh-llm-pi-ai` (MIT). The licences of the bundled pi-ai, Anthropic SDK, OpenAI SDK and their dependencies are in `THIRD-PARTY-NOTICES.txt`.
187
199
 
@@ -1,4 +1,4 @@
1
- THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.3.3
1
+ THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.3.5
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.