@vibedev-si/dsh-vibedev 0.3.10 → 0.5.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 +141 -7
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +13151 -0
- package/client/client.js +3417 -878
- package/cordis.patch.yml +5 -0
- package/lib/account/center-business-contract.d.ts +22 -0
- package/lib/account/center-business.d.ts +6 -0
- package/lib/account/center-contract.d.ts +12 -0
- package/lib/account/center-monitor-contract.d.ts +10 -0
- package/lib/account/center-price-contract.d.ts +5 -0
- package/lib/account/center.d.ts +7 -0
- package/lib/account/index.d.ts +14 -0
- package/lib/{anthropic-messages-BgIfgjNt.js → anthropic-messages-QcnVMGaA.js} +11 -11
- package/lib/contract-v1.types.d.ts +134 -0
- package/lib/contracts.d.ts +34 -0
- package/lib/gateway/errors.d.ts +29 -1
- package/lib/gateway/http.d.ts +6 -0
- package/lib/host-locales.d.ts +4 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.js +4619 -1976
- package/lib/{node-D58f7Ea6.js → node-CcLPV4RA.js} +4 -4
- package/lib/{node-Br-0fshF.js → node-vkDR3GtK.js} +2 -2
- package/lib/pricing.d.ts +21 -1
- package/lib/service.d.ts +51 -9
- package/lib/tasks/progress.d.ts +96 -0
- package/lib/tasks/remote.d.ts +15 -8
- package/lib/tasks/store.d.ts +59 -9
- package/lib/tasks/tracker.d.ts +51 -45
- package/lib/tools/image.d.ts +1 -0
- package/lib/tools/video.d.ts +3 -0
- package/lib/util/files.d.ts +2 -0
- package/locale/en.json +13 -0
- package/locale/zh.json +13 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/LICENSE +22 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/README.md +154 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/catalog/catalog.json +167 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/catalog-updates.js +326 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/catalog-validator.js +263 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/client.js +2816 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/cordis.patch.yml +5 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/icon.svg +5 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/index.js +169 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/locale/en.json +6 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/locale/zh.json +6 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/package.json +75 -0
- package/node_modules/@vibedev-si/dsh-ecosystem/remote-catalog.js +212 -0
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -6,10 +6,60 @@
|
|
|
6
6
|
- **媒体生成**:Agent 可以生成图片、视频、音乐、播客和语音,并把语音转成文字,结果保存在工作区的 `media/` 目录下;
|
|
7
7
|
- **网页搜索**:提供走 VibeDev 网关的网页搜索,见下面的「网页搜索」。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
费用与可用计费方式以 VibeDev 网关回执为准,DeepSeek 账号照常由 DeepSeek Harness 自己管理,两边互不影响。还没有 VibeDev 账号的话,可以在 [VibeDev](https://api.vibedev.studio) 注册。
|
|
10
10
|
|
|
11
11
|
本插件由 `dsh-media` 改名而来,见下面的「从 dsh-media 升级」。
|
|
12
12
|
|
|
13
|
+
## 0.5.0 用户可见更新
|
|
14
|
+
|
|
15
|
+
侧边栏的「VibeDev」集中提供「账户」和「插件」两个分区。账户页保留仪表盘、使用记录、订阅和原有服务;生态 0.2.0 加入插件分区后不再单独占用侧边栏入口,更新数量会同时提示在插件分区和 VibeDev 入口上。插件分区未打开时不加载其页面内容,未登录也能浏览插件。
|
|
16
|
+
|
|
17
|
+
登录、充值、用量和 Film 的账户入口仍回到账户分区;插件页与更新页使用浏览器内导航,不改变网关或 Film 的账户页面枚举。两个分区共用现有账号状态,提供中英文、深浅主题和窄窗口选择器。搭配旧生态时继续保留独立生态入口。
|
|
18
|
+
|
|
19
|
+
生态 0.2.0 的精确副本随账号包提供,安装时无需单独从 registry 下载配套副本。没有独立生态配置时,配套行自动启用;已有独立安装或桌面内置生态时沿用其配置,不重复加载,也不覆盖用户主动禁用的选择。独立生态可按自己的版本更新;配套副本随账号插件更新。单独安装生态不会反向创建依赖,页面会提供确认后补装账号插件的入口。
|
|
20
|
+
|
|
21
|
+
## 0.4.4 用户可见更新
|
|
22
|
+
|
|
23
|
+
账户中心补齐原生充值、我的订单、兑换、邀请返利和个人资料,与仪表盘、使用记录、订阅、渠道状态及模型价格使用同一套紧凑布局。充值可点选快捷金额或填写自定义金额,选择支付方式后,点击带实付金额的确认按钮即可创建订单。付款页直接显示二维码或收银台入口,并自动查询订单状态;仅在确认入账后刷新余额。手续费、活动和限额按网关配置展示,详细计算可展开查看。支付二维码在本机生成,支付认证及密码、邮箱和二次验证等安全设置继续在官网完成。
|
|
24
|
+
|
|
25
|
+
订单支持常用筛选、原位详情和窄窗口卡片;兑换提供明确权益回执和继续兑换入口;邀请页集中展示返利、复制链接与全额转入确认;个人资料按账号概况、基本资料、余额提醒及官网安全设置分区。页面只使用服务端提供的数据,未知或未配置的金额与状态不会显示成零。
|
|
26
|
+
|
|
27
|
+
渠道状态只展示有真实观测数据的渠道和模型;失败请求及健康状态未知但有历史样本的条目仍保留,没有请求记录的目录占位不再逐项展示。
|
|
28
|
+
|
|
29
|
+
订单可筛选、分页、查看明细,并按网关权限取消、查询支付或申请退款;兑换、返利转入及资料保存均显示可恢复的操作回执。连接中断或结果未确认时只查询原操作,不自动重复提交;多个窗口共享操作保护,刷新后仍能继续查询。旧网关未提供接口时给出官网入口,权限拒绝不会绕过。
|
|
30
|
+
|
|
31
|
+
渠道状态按“筛选、三项摘要、趋势、底部模型列表”整理,不再显示错误原因或无效的详情按钮。页面继续支持中英文、深浅主题和窄窗口;人民币余额与实际支付币种分别标注,未知限额及金额保持未知。媒体调用、定价、路由和扣费逻辑保持现有方式。
|
|
32
|
+
|
|
33
|
+
## 0.4.3 用户可见更新
|
|
34
|
+
|
|
35
|
+
账户中心新增原生「渠道状态」与「模型价格」页面,沿用仪表盘、使用记录和订阅的紧凑布局。窄窗口用页面选择器切换,不再显示「可用渠道」入口;旧版调用该入口会打开模型价格。
|
|
36
|
+
|
|
37
|
+
模型价格直接读取网关当前发布目录和分组售价,提供搜索、类型与分组筛选、分页、能力详情,完整保留上下文区间和 5 分钟/1 小时缓存创建价格。图片、视频和音频显示各自的规格、费用单位及预估条件;官方参考价仅在已确认的相同条件下比较,未绑定或不匹配时给出原因。
|
|
38
|
+
|
|
39
|
+
渠道状态显示权限范围内的健康、成功率、延迟、缓存率、趋势与安全错误分类;兼容旧版监控,区分历史覆盖不足、未知状态和权限限制。尚未原生接入的其他服务继续明确打开官网。
|
|
40
|
+
|
|
41
|
+
## 0.4.2 用户可见更新
|
|
42
|
+
|
|
43
|
+
账户中心按 Sub2 的信息层级重新整理:顶部切换仪表盘、使用记录和订阅,官网服务单独标明外链。仪表盘突出余额、请求与消费,趋势、模型与最近记录更紧凑;图表可选择数据点查看精确值。
|
|
44
|
+
|
|
45
|
+
使用记录优先展示筛选、汇总与列表,分析图按需展开。缓存读取、创建及 5 分钟/1 小时拆分分层展示,实际扣款与标准计费分别保留。详情按概览、Token/缓存、费用与技术信息分区,支持复制安全的请求 ID;列设置可恢复推荐列,已有偏好仍保留。订阅突出状态、真实额度窗口与恢复时间,读取失败时明确标注旧数据。
|
|
46
|
+
|
|
47
|
+
支持中英文、深浅主题和窄窗;刷新期间避免重复刷新。费用和可用性仍以网关回执为准,未提供的字段保持未知。本版本未增加原生支付或改变媒体生成与扣费方式。
|
|
48
|
+
|
|
49
|
+
## 0.4.1 用户可见更新
|
|
50
|
+
|
|
51
|
+
账户中心完整扩充前三页:仪表盘展示实际/标准费用、Token 缓存、RPM/TPM、日期趋势、模型与平台用量;使用记录提供同条件统计、筛选、排序、列显隐、分页和安全详情。CSV 明确只导出当前页;本条金额折算的单价不会冒充历史价卡。缺失数据保持未知,刷新失败会标记同一账号和查询的旧快照。订阅主页面补充真实计划元数据和官网续费入口,仅显示网关提供的真实 5 小时/7 天窗口比例。其余七页仍使用官网入口,新订阅扣费与支付写入保持未启用。
|
|
52
|
+
|
|
53
|
+
从仪表盘查看使用记录会保留已选日期与时区。订阅按网关给出的完整恢复时刻刷新,安全错误详情提供分类、阶段和请求/任务标识,不展示原始请求或上游响应。详情在桌面、窄屏及深浅主题中保持标题和关闭按钮可见,内容内部滚动。新增接口尚未开放时按页面提供官网入口;权限拒绝保持拒绝,不自动降级。
|
|
54
|
+
|
|
55
|
+
## 0.4.0 用户可见更新
|
|
56
|
+
|
|
57
|
+
- 新增账户中心:仪表盘、用量、订阅与门户快捷入口;充值直接打开原充值页。旧网关继续使用已有只读接口。
|
|
58
|
+
- 余额卡与设置展示订阅比例、恢复时间和读取失败;支持中英文、深浅主题与窄屏。新订阅功能仅在网关实际提供时显示真实快照。
|
|
59
|
+
- 升级保留旧任务;任务按网关与账号隔离。查询或下载失败只恢复原任务,图片提交结果不明时不会自动重复生成。
|
|
60
|
+
- 具体参数原因保留并净化敏感信息。生成、提交和计费状态分别按网关回执显示;超时不代表未扣费。
|
|
61
|
+
- 新报价可用时绑定原operationId;旧网关仍为目录预估。新写账、支付写入及图片持久恢复尚未启用。
|
|
62
|
+
|
|
13
63
|
[English](#english)
|
|
14
64
|
|
|
15
65
|
## 安装
|
|
@@ -98,6 +148,23 @@
|
|
|
98
148
|
|
|
99
149
|
这是独立账号插件更新,无需重新打包桌面版。首次从桌面内置的账号插件升级时,需要完全退出并重新启动 VibeDev 一次(包括托盘);之后修改并保存该 TTL 设置即时用于后续请求,不需要再重启。
|
|
100
150
|
|
|
151
|
+
## 生成进度(0.3.11)
|
|
152
|
+
|
|
153
|
+
网关在视频、音频任务的查询回包(以及提交回包)里给出进度信息时,插件会读取并转交给影视工作台和对话 Agent:
|
|
154
|
+
|
|
155
|
+
| 网关字段 | 插件的处理 |
|
|
156
|
+
| --- | --- |
|
|
157
|
+
| `timing.phase` | 归一为 `pending_submit / queued / generating / archiving / done`;兼容 `submitting`、`waiting`、`running`、`processing`、`in_progress`、`uploading`、`finalizing`、`completed`、`succeeded` 等别名 |
|
|
158
|
+
| `timing.estimated_remaining_seconds`、`remaining_p90_seconds` | 以收到回包的本机时间为起点,换算成预计完成时刻 `estimatedCompletionAt`、`p90CompletionAt` |
|
|
159
|
+
| `timing.started_at`、`phase_started_at` | 按 `server_time` 与本机时间的差值换算到本机时钟;没有 `server_time` 时按零偏差 |
|
|
160
|
+
| `timing.estimate_source`、`confidence`、`progress` | 原样保留;`progress` 接受 0–1,大于 1 且不超过 100 时按百分比换算 |
|
|
161
|
+
| `queue` | 排队位置 `position`,或只知道范围时的 `position_min`、`position_max` |
|
|
162
|
+
| `next_poll_after_seconds` | 下次查询的间隔,限制在 2–30 秒;没有时沿用原来的查询节奏 |
|
|
163
|
+
|
|
164
|
+
任一字段类型不对、为负数或是不认识的取值,只丢弃该字段,任务照常进行。`vibedevMedia` 的任务视图新增 `stage`(`submitting / queued / generating / saving`)、`timing`、`queue`;任务结束(完成、失败、丢失)后不再带这三项。`media_tasks` 和后台任务的结果文字会写出阶段、排队位置和粗略的剩余时间(“不到 1 分钟”“约 N 分钟”,超过预计时写“比预计慢”;网关标为低可信度的估算不写)。
|
|
165
|
+
|
|
166
|
+
网关没有这些字段时,插件的查询节奏、记录和文字输出都和 0.3.10 一样。这是独立的账号插件更新,不需要重新打包桌面版。
|
|
167
|
+
|
|
101
168
|
## 网页搜索
|
|
102
169
|
|
|
103
170
|
插件注册了一个网页搜索提供方 `vibedev-gateway`,用你的 VibeDev 登录调用网关的搜索。注册不等于启用:DeepSeek Harness 默认仍用自己的搜索;想改用 VibeDev 的,在配置文件里把 `web` 一行的 `searchProvider` 设为 `vibedev-gateway`(VibeDev 应用默认就是这样)。搜索本身不收费,但余额为零时网关会拒绝所有请求,包括搜索。
|
|
@@ -139,8 +206,8 @@
|
|
|
139
206
|
- VibeDev 的聊天模型按用量计费,价格以 VibeDev 网关为准。
|
|
140
207
|
- 图片按张计费,视频按秒计费(参考视频的时长也计入),音乐和播客按次计费,语音按原始秒计费(按服务商返回的原始时长,可能和播放时长不同),转写按分钟计费。`media_models` 会列出当前价格;目录没有给出价格的模型显示「未定价」,不代表免费。
|
|
141
208
|
- 按视频 Token 计价的模型(目录里的 `video_pricing`)按分辨率和有无参考视频、参考音频、参考图(含首尾帧)分档,例如「480p 无参考视频 ¥60.06/百万 Token(预计 ¥0.5819/秒)」。生成前的金额只是预估:每秒预估价 ×(输出时长 + 所有参考视频时长),最终按实际视频 Token 结算。参考视频时长未知、目录没有每秒预估价或计价方式当前版本不支持时,显示「无法预估;按实际视频 Token 用量结算」,不会当成免费或未定价。视频生成后费用仍在确认(`billing_status: pending`)时,视频照常保存,只是费用待确认,不会重新生成。
|
|
142
|
-
-
|
|
143
|
-
-
|
|
209
|
+
- 视频和音频的扣费、释放及未知状态只按网关明确的账务回执展示;失败或取消本身不能证明未扣费。视频提交后无法取消。
|
|
210
|
+
- 视频和音频提交结果待确认时,保留原操作编号与已落盘请求,只用原 Key 和原请求核对,不自动创建新编号。默认首轮总计最多 3 次尝试,之后最多 30 次后台核对,核对窗口从原任务创建起共 5 分钟;这些默认值沿用 0.3.11。次数、上限、截止时间和退避时间均落盘,刷新、同号调用或重启不会重置预算;429 本身不证明未提交,等待网关的 Retry-After 后才核对。网关明确永久歧义时停止同键核对并保留 unknown;没有任务 ID 的记录也受默认 3 小时最长跟踪时间约束,最终为 lost/unknown,不表示可以自动换新编号。已取得任务 ID 后只查询和下载原任务。结果已生成但费用仍在结算(`settlement_pending`)时照常保存,不会重新生成。
|
|
144
211
|
- 余额在每次付费请求结束后(对话回复、生成、转写)马上重新读取,侧栏和设置页几秒内就能看到扣费后的余额。
|
|
145
212
|
- 视频、批量生图任务提交时,网关先把预估金额从可用余额转为冻结金额,任务结束后结算。余额卡片分别显示可用、冻结中与合计,设置页在有冻结金额时多显示一行;冻结金额的变化也会让页面及时更新。
|
|
146
213
|
- 插件设置里的「每次付费生成前先询问」默认关闭。打开后,每次付费的媒体请求之前都会先弹出确认,并显示预估金额。
|
|
@@ -190,8 +257,61 @@ npm run build
|
|
|
190
257
|
|
|
191
258
|
---
|
|
192
259
|
|
|
260
|
+
启动配置 `resendWindowMs`(1000–10800000 毫秒,默认 300000)、`submitAttempts`(1–30,默认 3)、`reconcileAttempts`(0–30,默认 30,0 关闭后台核对)会实际传入任务跟踪器;只对新操作生效,已有操作保留落盘的原预算。
|
|
261
|
+
|
|
193
262
|
## English
|
|
194
263
|
|
|
264
|
+
### What changes in 0.5.0
|
|
265
|
+
|
|
266
|
+
The VibeDev sidebar entry brings Account and Plugins into one page. Existing account services remain available. Ecosystem 0.2.0 contributes its plugin pages here instead of adding a second sidebar entry; its update count appears on both the section tab and the VibeDev entry. Plugin content mounts only while selected, and can be browsed while signed out.
|
|
267
|
+
|
|
268
|
+
Sign-in, top-up, usage and Film account actions still select Account. Plugin navigation stays inside the Client and does not extend gateway or Film account page values. Both sections use the existing account state and support Chinese, English, light and dark themes, and a narrow-window selector. Older ecosystem releases keep their independent entry.
|
|
269
|
+
|
|
270
|
+
The account package includes an exact Ecosystem 0.2.0 copy, so installation needs no separate registry download for the companion. Its companion entry runs only when no explicit ecosystem entry exists. A standalone or application-owned ecosystem keeps its own configuration, including an intentional disable choice, without loading twice. Standalone ecosystem updates remain independent; the companion copy follows account-plugin updates. Installing the ecosystem alone creates no reverse dependency and offers a confirmed account-plugin installation action.
|
|
271
|
+
|
|
272
|
+
### What changes in 0.4.4
|
|
273
|
+
|
|
274
|
+
The account center now includes native top-up, orders, redemption, referrals and profile pages in the same compact layout as the dashboard, usage, subscriptions, channel status and model prices. Pick a quick amount or enter a custom one, choose a payment method, then confirm the displayed total to create an order. The payment view shows the QR code or checkout link immediately and checks order status automatically; balances refresh only after crediting is confirmed. Fees, offers and limits follow gateway configuration, with an expandable breakdown. Payment QR codes are generated locally; provider authentication and security settings such as passwords, email and two-factor authentication continue on the official website.
|
|
275
|
+
|
|
276
|
+
Orders offer common filters, in-place details and narrow-window cards. Redemption shows benefit receipts and a clear way to redeem another code. The affiliate page groups rebate metrics, copying invitation links and confirmed full-balance transfers. Profile separates account information, basic edits, balance notifications and official website security settings. Missing amounts and states remain unknown rather than being displayed as zero.
|
|
277
|
+
|
|
278
|
+
Channel status lists only channels and models with observed data. Failed requests and historical observations with unknown current health remain visible; catalogue placeholders with no observations are omitted.
|
|
279
|
+
|
|
280
|
+
Filter and inspect your own orders, and cancel, check payment or request a refund when the gateway permits. Redemption, rebate transfer and profile changes return recoverable operation receipts. An interrupted or unconfirmed action is queried using its original identity rather than automatically submitted again. Multiple windows share action protection and pending receipts survive refresh. Unsupported gateways offer website links; access denials remain denials.
|
|
281
|
+
|
|
282
|
+
Channel status now follows filters, three summary metrics, availability trends and a bottom model table, with error-reason and inactive detail controls removed. Chinese and English, light and dark themes and narrow windows remain supported. CNY account balances and actual payment currencies are labeled separately, and missing limits or amounts remain unknown. Existing media calls, pricing, routing and billing are unchanged.
|
|
283
|
+
|
|
284
|
+
### What changes in 0.4.3
|
|
285
|
+
|
|
286
|
+
The account center adds native Channel status and Model prices using the compact dashboard, usage and subscription layout. Narrow windows use a page selector. Available channels is no longer listed; older callers are directed to Model prices.
|
|
287
|
+
|
|
288
|
+
Model prices reads the gateway's current published catalog and group retail prices, with search, kind/group filters, pagination and capability details. Context tiers and separate 5-minute/1-hour cache creation rates remain visible. Image, video and audio conditions distinguish final rates from estimates. Official references are compared only when confirmed conditions match; missing mappings and mismatches explain why no comparison is shown.
|
|
289
|
+
|
|
290
|
+
Channel status shows authorized health, success, latency, cache, trends and safe error categories. It supports legacy monitoring and distinguishes partial history, unknown states and access restrictions. Services not yet implemented natively remain clearly labeled website actions.
|
|
291
|
+
|
|
292
|
+
### What changes in 0.4.2
|
|
293
|
+
|
|
294
|
+
The account center follows Sub2's information hierarchy with native Dashboard, Usage and Subscriptions tabs, plus separately labeled website links. The dashboard emphasizes balance, requests and spending, with compact charts, recent activity and selectable exact chart values.
|
|
295
|
+
|
|
296
|
+
Usage puts filters, summaries and records first, with optional analytics. Cache reads, creation and 5-minute / 1-hour creation splits are distinguished; actual and standard charges remain separate. Grouped details provide a safe request-ID copy action. Existing column preferences are retained, with an explicit recommended-column reset. Subscription cards emphasize availability, real quota windows and recovery times, and identify retained data after a failed refresh.
|
|
297
|
+
|
|
298
|
+
English and Chinese, light and dark themes, and narrow layouts are supported. Refresh controls wait for related reads. Unknown fields stay unknown, while charges and availability follow the gateway receipt. This version adds no native payment flow and does not change media generation or billing.
|
|
299
|
+
|
|
300
|
+
### What changes in 0.4.1
|
|
301
|
+
|
|
302
|
+
The first three account pages now include actual and standard costs, cache tokens, RPM/TPM, date trends, model and platform usage, matching usage filters, sorting, visible columns, pagination and safe details. CSV exports the current page only. Observed unit prices are calculated from that record’s amounts, never a historical tariff. Missing facts stay unknown; failed refreshes label the last successful snapshot for the same account and query. Subscription metadata and official renewal links accompany only gateway-provided 5-hour/7-day percentages. The other seven pages retain website links; new subscription billing and payment writes remain disabled.
|
|
303
|
+
|
|
304
|
+
Opening usage from the dashboard retains the selected dates and time zone. Subscription pages refresh at the gateway’s complete reset instant. Safe error details include local explanations and request/task identifiers, without raw requests or upstream responses. Detail dialogs keep their title and close controls visible with internal scrolling on desktop and narrow screens in both themes. Unavailable routes offer the official website; permission refusals remain refusals.
|
|
305
|
+
|
|
306
|
+
### What changes in 0.4.0
|
|
307
|
+
|
|
308
|
+
Video/audio recovery retains the original key and saved wire body. Historical 0.3.11 defaults are 3 initial attempts in total, up to 30 additional background checks, and one 5-minute recovery window from task creation. Attempts, limits, deadline and Retry-After backoff survive refresh and restart. Permanent submission ambiguity stops further POST checks; expired tracking becomes lost/unknown after at most 3 hours, including tasks without a gateway ID. Lost does not authorize a new operation. Once an ID is known, recovery only polls/downloads that task. Plugin Config exposes resendWindowMs (1000–10800000 milliseconds, default 300000), submitAttempts (1–30, default 3) and reconcileAttempts (0–30, default 30; 0 disables background POST checks), and passes them to TaskTracker. These startup settings affect new operations only; changing them does not reset a stored operation's limits. TrackerOptions also exposes maxAgeMs for Host integrations.
|
|
309
|
+
|
|
310
|
+
Account center adds dashboard, usage, subscriptions and portal shortcuts; top-up opens the original checkout page directly. Older gateways retain their existing read-only routes. Subscription cards show quota percentages, reset times and read failures in Chinese or English, with light, dark and narrow layouts. New subscription facts appear only when supplied by the gateway.
|
|
311
|
+
|
|
312
|
+
Upgrades retain old tasks and isolate recovery by gateway and account. Query and download failures recover the original task. An uncertain image submission is not automatically generated again. Safe parameter reasons are preserved, while submission, generation and billing states follow separate gateway facts; a timeout does not mean no charge. New quotes bind the original operation ID when available; old gateways keep catalog estimates. New billing writes, payment writes and durable image recovery remain unavailable.
|
|
313
|
+
|
|
314
|
+
|
|
195
315
|
**American API default**: production defaults to `https://api.vibedev.studio`. Upgrades from unscoped historical state require a new app-token login before listing models. Every origin has separate credentials, devices and durable media tasks; grants must carry a matching origin. Historical unmarked files and the old credential record stay intact but are never read, imported, resumed or resubmitted. Existing American-origin grants remain usable. Other accounts, chats, workspaces and historical media URLs are unchanged. API control requests, account web links and web search follow the selected origin; uploads/downloads preserve the server's complete signed URL without an app token. Redirects and cross-region fallback are refused. S256 PKCE, state, random localhost callback, SSE, heartbeats, cancellation and same-origin idempotency remain. Developer-key fallback is disabled by default and the old shared environment variable is ignored; development requires an explicitly named gateway-specific variable. Local verification neither removes the server's 503 gate nor sends real model or paid media tests.
|
|
196
316
|
|
|
197
317
|
Sign in to VibeDev in DeepSeek Harness, next to the DeepSeek account:
|
|
@@ -199,7 +319,7 @@ Sign in to VibeDev in DeepSeek Harness, next to the DeepSeek account:
|
|
|
199
319
|
- **VibeDev models**: once signed in, the model picker gains a "VibeDev" group for ordinary gateway models and a separate 中转 (Relay) group for `relay-` chat models, next to DeepSeek's;
|
|
200
320
|
- **Media generation**: the agent generates images, videos, music, podcasts and speech, and transcribes speech; results are saved in the workspace under `media/`.
|
|
201
321
|
|
|
202
|
-
|
|
322
|
+
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`.
|
|
203
323
|
|
|
204
324
|
**Install**: install `@vibedev-si/dsh-vibedev` by package name on the Plugins page (the `@vibedev-si/` scope is required), or from the [VibeDev Plugin Center](https://github.com/VibeDev-Si/dsh-ecosystem); 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.
|
|
205
325
|
|
|
@@ -229,13 +349,15 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
|
|
|
229
349
|
|
|
230
350
|
**Claude prompt cache lifetime (0.3.10)**: on Plugins → VibeDev Account & Models, the separate Claude prompt caching section offers Default, 5 minutes and 1 hour. Save stages this as the live `claudeCacheTtl` setting (`default`, `5m`, `1h`). Default preserves the 0.3.9 request: existing ephemeral markers omit `ttl`; it does not disable caching. Explicit choices add `ttl: "5m"` or `ttl: "1h"` only to existing Anthropic cache breakpoints for Claude over Messages, in both the VibeDev and Relay groups. No new breakpoint is created. Tool inputs, JSON schemas, historical messages, thinking signatures, exact model IDs and non-Anthropic caching are unchanged. Saved changes apply to future requests; a prepared or started request and its credential-renewal retry keep the captured choice. Unsaved changes are discarded when the page closes. Model and gateway support for standard Anthropic `cache_control.ttl` is required, including correct forwarding and billing; no new catalog field is needed. The lifetime requests retention rather than guaranteeing a hit. One-hour writes may cost more; usage and actual charges come from the gateway, with no local repricing. A rejected lifetime keeps the original request error, with no silent fallback or resubmission at a shorter TTL; select Default or 5 minutes in settings. This is a plugin-only update. Upgrading the application's built-in account plugin requires one complete app restart (including the tray); subsequent TTL saves do not require a restart.
|
|
231
351
|
|
|
232
|
-
**
|
|
352
|
+
**Generation progress (0.3.11)**: when a video or audio task answer (polls, and the submission's answer) carries progress facts, the plugin reads them and hands them to the film workbench and the agent. `timing.phase` is normalized to `pending_submit`, `queued`, `generating`, `archiving` or `done`, accepting the aliases `submitting`, `waiting`, `running`, `processing`, `in_progress`, `uploading`, `finalizing`, `completed` and `succeeded`. `estimated_remaining_seconds` and `remaining_p90_seconds` become the completion times `estimatedCompletionAt` and `p90CompletionAt`, anchored to the local time the answer arrived; `started_at` and `phase_started_at` are moved onto the local clock by the difference to `server_time` (none when it is missing). `estimate_source`, `confidence` and `progress` are kept (`progress` 0–1, a value above 1 up to 100 read as a percentage); `queue` gives `position`, or `position_min`/`position_max` when only a range is known; `next_poll_after_seconds` sets the next query, kept within 2–30 s, and without it the usual rhythm applies. A field of the wrong type, a negative number or an unknown value is dropped on its own and never fails the task. `vibedevMedia` task views gain `stage` (`submitting`, `queued`, `generating`, `saving`), `timing` (epoch milliseconds on the local clock) and `queue`; finished tasks (completed, failed, lost) carry none of them. `media_tasks` and background job results state the stage, queue position and coarse time left ("under 1 min", "about N min", "slower than estimated" once the estimate has passed; low-confidence estimates are not stated), in English with the Chinese wording. Without these fields, polling, records and text are exactly as in 0.3.10. Plugin-only update; the desktop app is not rebuilt.
|
|
353
|
+
|
|
354
|
+
**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). Search availability and billing follow the gateway response; the plugin does not pre-block requests based on the displayed balance.
|
|
233
355
|
|
|
234
356
|
**Media tools**: `image_generate`, `video_generate` (runs as a background job), `audio_generate` (music, a podcast or speech), `audio_transcribe` (a multipart file upload; languages and limits as each model declares), `media_models`, `media_tasks` and `media_account`. Reference images, videos and audio, and first and last frames, can each be a workspace path, an http(s) link, or `chat:1` for the most recent matching file you attached. A request the model cannot serve is refused before anything is uploaded or charged.
|
|
235
357
|
|
|
236
358
|
**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.
|
|
237
359
|
|
|
238
|
-
**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.
|
|
360
|
+
**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. Charges, releases and unknown outcomes follow explicit gateway billing receipts; failure or cancellation alone does not prove no charge. A submitted video cannot be cancelled. One operation generates once: an unconfirmed submission keeps its original operation and unknown state without another automatic creation POST; only a declared read-only lookup capability can reconcile it, 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.
|
|
239
361
|
|
|
240
362
|
**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`) 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`.
|
|
241
363
|
|
|
@@ -243,7 +365,7 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
|
|
|
243
365
|
|
|
244
366
|
**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).
|
|
245
367
|
|
|
246
|
-
**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. `models()` lists the account's media models; an image model carries the size tiers and ratios it declares (`imageSizes`, `imageRatios`). `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;
|
|
368
|
+
**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. `models()` lists the account's media models; an image model carries the size tiers and ratios it declares (`imageSizes`, `imageRatios`). `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; same-key recovery while unconfirmed; query only after a task ID is known), `onTask` (each change) and `result` (the files to play or download). Pass the same `operationId` when one click is retried: the recorded task is returned or checked under its original key and saved body; no new operation is created.
|
|
247
369
|
|
|
248
370
|
**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`.
|
|
249
371
|
|
|
@@ -270,3 +392,15 @@ npm 的 Trusted Publisher 配置为:GitHub 所有者 `VibeDev-Si`、仓库 `ds
|
|
|
270
392
|
## License
|
|
271
393
|
|
|
272
394
|
MIT
|
|
395
|
+
|
|
396
|
+
### Durable local task lookup
|
|
397
|
+
|
|
398
|
+
The optional `supportsDurableTaskLookup(kind: 'video' | 'audio'): boolean` is true only after an awaited lookup has initialized the current stable gateway/account partition and legacy ownership. Check the current scope, check this capability, then await `task(operationId)`. Only a successful local lookup returning undefined means this plugin did not send a creation POST for that operation in that partition. A lookup failure, unknown identity, another account, remote polling 403/404, an older plugin without this method, or an image operation does not provide that guarantee. Every video/audio POST has a durable draft first; rejected and pruned terminal records retain queryable receipts. Switching credentials invalidates the synchronous capability until identity and storage are initialized again.
|
|
399
|
+
|
|
400
|
+
可选 `supportsDurableTaskLookup(kind: 'video' | 'audio'): boolean` 仅在当前稳定账号与网关分区完成旧任务归属和初始化后声明。先核对 scope 与能力,再 await `task(operationId)`;仅成功的本地查找返回不存在时,才说明本插件未为该分区下的操作发送创建 POST。查找失败、未知身份、其他账号、远端查询403/404、没有该方法的旧插件及图片均不具备此保证。明确拒绝和被列表裁剪的终态保留可查询收据;切换凭证后重新初始化前不声明。
|
|
401
|
+
|
|
402
|
+
### Host method and gateway capability detection
|
|
403
|
+
|
|
404
|
+
`account`, `openAccountCenter`, `refreshAccount`, `quoteVideo`, `startVideo`, `startAudio`, `task`, `refreshTask`, `result` and `onTask` are Host SDK methods; integrations must detect optional methods when supporting older plugins. `capabilities` lists the wire protocols this plugin understands (`errors-v1`, `media-quotes-v1`); it does not promise that the connected gateway has enabled them. Gateway support comes from the shared account entitlements snapshot. Quotes without an operation ID remain catalog estimates. A quote ID is accepted only with the same operation and account that obtained it. Image recovery and durable image deduplication are not advertised.
|
|
405
|
+
|
|
406
|
+
这些是Host SDK方法,兼容旧插件时按方法是否存在检测。插件capabilities仅说明可解析的协议,网关实际启用情况由账户权益快照声明,不能据插件字段假定新报价或订阅可用。没有operationId的价格标签是目录预估;quoteId仅随原操作和原账号提交。图片不声明持久恢复或幂等保证。
|
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.5.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.
|