@vibedev-si/dsh-vibedev 0.5.0 → 0.5.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 +80 -4
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +449 -32
- package/client/client.js +96 -8
- package/lib/account/center-business-contract.d.ts +1 -1
- package/lib/account/center-contract.d.ts +1 -1
- package/lib/fetch/host-web.d.ts +34 -0
- package/lib/fetch/provider.d.ts +125 -0
- package/lib/fetch/wiring.d.ts +124 -0
- package/lib/gateway/http.d.ts +20 -2
- package/lib/index.d.ts +10 -0
- package/lib/index.js +834 -105
- package/lib/search/provider.d.ts +28 -5
- package/package.json +32 -26
- package/scripts/verify-fetch-joint.mjs +72 -0
package/README.md
CHANGED
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
|
|
11
11
|
本插件由 `dsh-media` 改名而来,见下面的「从 dsh-media 升级」。
|
|
12
12
|
|
|
13
|
+
## 0.5.3 用户可见更新
|
|
14
|
+
|
|
15
|
+
旧充值返利比例为 0 时,邀请返利页对旧充值模式的好友写明“旧充值返利已停止,目前不产生返利”,不再显示“按 0% 返利”;读不到比例时写明暂时无法读取,不再说按充值金额返利。
|
|
16
|
+
|
|
17
|
+
## 0.5.2 用户可见更新
|
|
18
|
+
|
|
19
|
+
账户中心的邀请返利页适配网关的消费返利。页面说明你邀请的好友分别按旧充值模式还是消费返利获得返利,混合时分别给出人数,消费返利已暂停的人数单独说明,并说明新邀请的好友按哪种方式返利。页面新增各模型消费返利比例(含比例来源:模型默认或你的专属比例)和返利记录(计入本金、当时确定的比例、返利或退款冲回、状态和冻结到期时间,可加载更早的记录)。旧充值返利比例不再作为页面的“返利比例”显示,只在说明旧充值模式的好友时标明。「刷新返利」改为「更新并解冻到期返利」。网关尚未提供这些读取接口时,页面提示“网关暂不支持消费返利详情”,其余功能照常。见[返利读取契约](docs/account-affiliate-rebates-contract.md)。
|
|
20
|
+
|
|
21
|
+
网页搜索按已部署的 DeepSeek Search 网关契约处理查询长度、结构化诊断和重试,Agent 使用说明随之更新,详见[网页搜索](#网页搜索)。
|
|
22
|
+
|
|
23
|
+
兼容 DeepSeek Harness 0.2.2:插件按官方 npm SDK `0.2.2-alpha.2` 编译;在 DSH 0.2.2 中,VibeDev 搜索说明只在本步骤可以使用 `web_search` 时出现。DSH 0.2.1 宿主行为不变。
|
|
24
|
+
|
|
25
|
+
新增可选的网页正文提取 `gatewayFetch`,默认关闭,默认仍用本地 HTTP 抓取,见下文「网页正文提取」。
|
|
26
|
+
|
|
13
27
|
## 0.5.0 用户可见更新
|
|
14
28
|
|
|
15
29
|
侧边栏的「VibeDev」集中提供「账户」和「插件」两个分区。账户页保留仪表盘、使用记录、订阅和原有服务;生态 0.2.0 加入插件分区后不再单独占用侧边栏入口,更新数量会同时提示在插件分区和 VibeDev 入口上。插件分区未打开时不加载其页面内容,未登录也能浏览插件。
|
|
@@ -167,7 +181,31 @@
|
|
|
167
181
|
|
|
168
182
|
## 网页搜索
|
|
169
183
|
|
|
170
|
-
|
|
184
|
+
插件注册网页搜索提供方 `vibedev-gateway`,用现有 VibeDev 登录调用 `POST /v1/vibedev/web-search`,保持 `query` / `max_results` 请求及 `results` 响应兼容。注册不等于启用:DeepSeek Harness 默认仍用自己的搜索;想改用 VibeDev,在配置文件的 `web` 行把 `searchProvider` 设为 `vibedev-gateway`(VibeDev 应用默认如此)。供应商 Key 只保存在网关,客户端不直连供应商。
|
|
185
|
+
|
|
186
|
+
完整搜索表达式最多 **128 个 Unicode 字符(码点)**,包括 `site:`、`lang:`、`after:`、`before:` 等条件。建议使用短关键词。超长在发送前拒绝,不截断或自动拆成多次搜索;网关报 `WEB_SEARCH_QUERY_TOO_LONG` 时保留 message、field 与 max_characters。`max_results` 为 1–20,省略时由网关默认 10。分类只支持 `general`,新闻、地区或官方资料需求用关键词和支持的站点、语言、时间条件表达;语言筛选不表示限制地区。本 provider 不额外发送分类或筛选字段。
|
|
187
|
+
|
|
188
|
+
搜索错误保留实际 code、category、retryable、field、maxCharacters 与有效 Retry-After;这些安全诊断也随工具错误正文返回给 Agent,原始提示会移除凭据、链接和本地路径。只有明确 `retryable: true` 的 429/503 且单次等待不超过 10 秒才自动重试,最多两次。预算耗尽及平台供应商账号/凭据错误始终停止;不会要求用户为平台供应商充值、刷新登录或退出账号。真正的用户 Token 拒绝继续走现有的一次续期机制,400 参数错误不原样重试。
|
|
189
|
+
|
|
190
|
+
200 空结果有效。URL、标题、摘要和可选发布时间按网关返回保留,不补造全文或日期。搜索摘要不等于全文,也不保证最新或事实正确;关键结论应打开可靠来源核对,网页内容按不可信数据处理。`web_search` 可见且宿主提供 systemPrompt 时,账号插件增加明确限定于 VibeDev 网关的使用说明;隐藏工具或卸载插件后不保留该说明,不改其他 provider 的工具参数。
|
|
191
|
+
|
|
192
|
+
搜索成本和鉴权资格以网关为准,本版不改变余额或订阅规则,也不按界面余额预先拦截。共享鉴权仍可能对余额为零的父级分组返回 `INSUFFICIENT_BALANCE`,即使用户另有订阅,也不能据本次更新承诺零余额可用。
|
|
193
|
+
|
|
194
|
+
## 网页正文提取(`gatewayFetch`,默认关闭)
|
|
195
|
+
|
|
196
|
+
默认 Fetch 仍使用现有 HTTP provider。网关已有 [Web Fetch V1 契约](https://github.com/CrisLIUning/sub2-vibedev/blob/main/docs/vibedev/web-fetch-v1.md)(revision `2026-10-30.1`)。把插件配置 `gatewayFetch` 设为 `true` 后,`apply` 在 `ctx.inject(['web'])` 内注册抓取提供方 `vibedev-gateway`(与搜索同一 id,两个注册表独立);注册不等于启用:只有 profile 把 `web.fetchProvider` 设为 `vibedev-gateway` 才会被选中。宿主固定为 `http` 时网关路径不会被使用;宿主固定为 `vibedev-gateway` 而账号没有该能力时,注册项改用宿主自己挂载的 `http` 提供方。
|
|
197
|
+
|
|
198
|
+
注册项每次抓取先读真实的 `/v1/account/entitlements`,复用 `GatewayHttp.entitlements` 以 `${gatewayOrigin}\nuser:${userId}` 为键的 30 秒账号/网关隔离缓存;登录、账号切换和插件登录变化沿用现有的 `identityInvalidated` 钩子清空快照。仅当 `capabilities` 含 `web-fetch-v1` 且 `web_fetch` 元数据有效时才用 `GatewayFetchProvider`;只有确定没有该能力才委派给宿主已挂载的本地 `http` 提供方(沿用宿主那一行配置的限额与 User-Agent),不递归调用已选中的网关 provider,也不调用 `ctx.web.fetch`。能力读取失败或被拒绝、元数据无效、请求被拒绝、限流、超时、供应商或预算错误都明确报错:不降级、不自动重发,也不清登录;只有 401 且确属真实用户鉴权失败时才经现有凭据链 reject 并重新 resolve 一次,开发密钥不续期。
|
|
199
|
+
|
|
200
|
+
一次抓取绑定开始时的账号身份(VibeDev `userId`)与网关 origin:能力读取返回后、取得网关凭据时、发 POST 前、以及 401 续期后重发前都会重新读取身份。**凭据只取自同一次已验证 `userId` 与 origin 的身份读取**(`AccountIdentity` 同时给出凭据与用户),能力读取的凭据也由该操作绑定而不是共享凭据平面;401 响应在 reject 之前再次核对身份,因此切号后不会 reject 新账号的登录,另一账号的 token 也不会与本操作配对。任一变化(切号、退出登录、网关 origin 改动)立即以 `ACCOUNT_CHANGED`(`retryable: false`)终止本次抓取,既不把原操作交给新账号,也不回退本地;同账号续期只换 token、不换用户,因此仍只续期一次并重发一次。整个抓取共用一个 40 秒总预算,贯穿身份读取、能力读取、凭据取得、网关 POST、401 续期与重发以及能力缺失后的本地后备,各阶段不会各自重新计时;调用方取消与总超时分别报 `WEB_ABORTED` 与 `WEB_FETCH_TIMEOUT`,超时后不再重发。
|
|
201
|
+
|
|
202
|
+
本地后备不复制、不重建:宿主 `ctx.web` 提供 `getFetchProvider` 时(VibeDev 桌面端),`src/index.ts` 注册时传入 `resolveLocal: () => webCtx.web.getFetchProvider?.('http')`,只有在账号确定没有该能力的那一刻才向宿主取当前挂载的 `http` 提供方,因此下一次 HMR 或配置改动会被跟随。宿主没有挂载该提供方时报 `WEB_FETCH_LOCAL_PROVIDER_MISSING`,挂载了但自称不可用时报 `WEB_FETCH_LOCAL_PROVIDER_UNAVAILABLE`;官方 DSH 宿主没有 `getFetchProvider`,此时报 `WEB_FETCH_LOCAL_PROVIDER_UNREACHABLE`。这些情况下都不构造默认副本、也不把缺失当成“没有能力”。`GatewayFetchWiring` 仍接受显式 `local`(测试与直接使用方),它优先于 `resolveLocal`。
|
|
203
|
+
|
|
204
|
+
该接口是正文提取,结果保持官方 SDK 的 `WebFetchResult` 类型:网关不报告最终地址与目标状态,`url` 填请求地址、`statusCode` 填 200(与官方 DeepSeek Fetch 提供方相同),并标记 `contentSource: extracted`,VibeDev 宿主据此把两者显示为未知;请求地址另存于 `requestedUrl`,Markdown 是 `body.kind: text` 加 `bodyFormat: markdown`,供应商正文完整性固定 `sourceCompleteness: unknown`,不从 `truncated: false` 推断完整。SDK 的 `gateway` 回执保留真实缓存标志和安全请求编号;该编号不是持久任务或幂等键。取消只保证客户端停止等待,不证明供应商取消或未计费。
|
|
205
|
+
|
|
206
|
+
本插件按官方 npm SDK 编译。VibeDev 宿主新增的 `WebFetchResult` 字段与 `WebRuntime.getFetchProvider` 在 `src/fetch/host-web.ts` 中以模块扩充声明为可选,使用前先检测。网关安全范围仅为初始 URL/DNS 预检及供应商管理抓取,不声明全程 DNS 固定、同源跳转或原网页编码保证。
|
|
207
|
+
|
|
208
|
+
显式联合验收入口为 `node scripts/verify-fetch-joint.mjs <一至两个已授权公开URL>`。由受控运行方把短效、具备权限的 VibeDevAppToken 注入单个进程的 `VIBEDEV_FETCH_TEST_APP_TOKEN`,不要贴到聊天、保存到仓库或使用 DeepSeek Key。该入口最多两个 POST、总等待 80 秒、没有自动重试,只输出脱敏回执;缺少凭据直接报告阻断且零请求。手动验收使用契约快照,不等于能力已经公告或自动选择已验收。
|
|
171
209
|
|
|
172
210
|
## 媒体工具
|
|
173
211
|
|
|
@@ -223,7 +261,7 @@
|
|
|
223
261
|
| Claude 提示词缓存保留时间 | 默认 | 可选默认、5分钟、1小时;保存后用于后续 Claude Messages 请求,默认不是关闭缓存。 |
|
|
224
262
|
| 默认生图 / 视频 / 音乐 / 播客 / 语音合成 / 转写模型 | 空 | 留空时由 Agent 按模型目录选择;可以填模型 id 或别名。 |
|
|
225
263
|
|
|
226
|
-
另有几项只能在配置文件(`cordis.patch.yml` 中 `dsh-vibedev` 一行)里改:`displayName`(普通模型分组名,默认 `VibeDev`)、`relayDisplayName`(中转模型分组名,默认「中转」)、`preferredModels`(排在最前的 VibeDev 模型)、`openBrowserOnSignIn`(登录时是否自动打开系统浏览器,默认开)、`catalogRefreshMinutes`(模型目录定时刷新间隔,默认 30 分钟;是没人打开余额卡片、账号菜单或设置时的兜底)、`client`(登录时报给网关的客户端名称,默认 `vibedev-plugin`)、`primary`(作为应用的主账号显示,默认关,VibeDev
|
|
264
|
+
另有几项只能在配置文件(`cordis.patch.yml` 中 `dsh-vibedev` 一行)里改:`displayName`(普通模型分组名,默认 `VibeDev`)、`relayDisplayName`(中转模型分组名,默认「中转」)、`preferredModels`(排在最前的 VibeDev 模型)、`openBrowserOnSignIn`(登录时是否自动打开系统浏览器,默认开)、`catalogRefreshMinutes`(模型目录定时刷新间隔,默认 30 分钟;是没人打开余额卡片、账号菜单或设置时的兜底)、`client`(登录时报给网关的客户端名称,默认 `vibedev-plugin`)、`primary`(作为应用的主账号显示,默认关,VibeDev 应用里开)、`gatewayFetch`(注册网关抓取提供方 `vibedev-gateway`,默认关;仍由 `web` 行的 `fetchProvider` 决定是否选中)。
|
|
227
265
|
|
|
228
266
|
## 从 dsh-media 升级
|
|
229
267
|
|
|
@@ -261,6 +299,20 @@ npm run build
|
|
|
261
299
|
|
|
262
300
|
## English
|
|
263
301
|
|
|
302
|
+
### What changes in 0.5.3
|
|
303
|
+
|
|
304
|
+
When the old top-up rate is 0, the affiliate page says old top-up rebates have stopped and nothing is earned now for invitees on the old top-up rule, instead of showing a 0% rate. When the rate cannot be read, it says so instead of describing top-up rebates.
|
|
305
|
+
|
|
306
|
+
### What changes in 0.5.2
|
|
307
|
+
|
|
308
|
+
The account center's affiliate page follows the gateway's consumption rebates. It explains whether the people you invited are on the old top-up rebate or consumption rebates, with the count of each for a mix and a separate count of those whose consumption rebates are paused, and which type new invitations get. The page adds the consumption rebate rate for each model with its source (the model default or your custom rate) and rebate records: counted principal, the rate fixed at the time, the rebate or refund reversal, the state and the freeze end, with older records on request. The old top-up rate is no longer shown as the page's rebate rate; it appears only when describing invitees on the old top-up rebate. "Refresh rebates" becomes "Update and release matured rebates". Without these gateway reads the page says the gateway does not provide consumption rebate details yet, and everything else keeps working. See the [rebate read contract](docs/account-affiliate-rebates-contract.md).
|
|
309
|
+
|
|
310
|
+
Web search follows the deployed DeepSeek Search gateway contract for query limits, structured diagnostics and retries, with updated Agent guidance; see Web search below.
|
|
311
|
+
|
|
312
|
+
DeepSeek Harness 0.2.2 compatibility: the plugin compiles against the official npm SDK `0.2.2-alpha.2`, and on DSH 0.2.2 the VibeDev search guidance appears only in steps where `web_search` is available. DSH 0.2.1 hosts behave as before.
|
|
313
|
+
|
|
314
|
+
Adds optional extracted-content Fetch (`gatewayFetch`), off by default; the default stays local HTTP. See "Extracted-content Fetch" below.
|
|
315
|
+
|
|
264
316
|
### What changes in 0.5.0
|
|
265
317
|
|
|
266
318
|
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.
|
|
@@ -351,7 +403,31 @@ Billing and available payment sources follow the VibeDev gateway receipt; the De
|
|
|
351
403
|
|
|
352
404
|
**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
405
|
|
|
354
|
-
**Web search**:
|
|
406
|
+
**Web search**: `vibedev-gateway` uses the existing VibeDev sign-in for `POST /v1/vibedev/web-search`, retaining the `query` / `max_results` request and `results` response. Registering does not select it: DeepSeek Harness keeps its own provider unless the profile selects `searchProvider: vibedev-gateway` on the `web` row (the VibeDev app does). Provider keys stay on the gateway; the client never calls the supplier directly.
|
|
407
|
+
|
|
408
|
+
The complete expression is limited to **128 Unicode code points**, including `site:`, `lang:`, `after:` and `before:` filters. Prefer short keywords. Oversized queries are rejected before dispatch, never truncated or automatically split into extra searches. A gateway `WEB_SEARCH_QUERY_TOO_LONG` retains its message, field and max_characters. Result counts are 1–20; an omitted count uses the gateway's default 10. Only `general` search is supported: express news, location or official-source needs through keywords and supported filters. Language does not enforce geography, and this provider adds no category or structured-filter fields.
|
|
409
|
+
|
|
410
|
+
Errors retain their code, category, retryable flag, field, maxCharacters and valid Retry-After. These safe facts also reach the Agent in the tool's error text; displayed gateway messages remove credentials, URLs and local paths. Only explicitly retryable 429/503 responses with a wait of at most 10 seconds are retried, at most twice. Budget exhaustion and platform-provider account/credential failures stop immediately and do not trigger a user top-up or sign-in refresh. Genuine user-token rejections retain the existing single renewal; parameter errors are not repeated unchanged.
|
|
411
|
+
|
|
412
|
+
Empty 200 results are valid. URLs, titles, snippets and optional publication dates are retained without invented bodies or dates. Snippets are not full pages, verified facts or a freshness guarantee: check reliable sources for important claims and treat web content as untrusted. When web_search is visible and systemPrompt exists, the plugin adds explicitly VibeDev-conditional guidance. Hiding the tool or unloading the plugin removes the guidance without altering other providers' tool parameters.
|
|
413
|
+
|
|
414
|
+
Search eligibility and cost follow the gateway. This version changes no balance or subscription rules and does not pre-block from the displayed balance. Shared authorization can still return INSUFFICIENT_BALANCE for a zero-balance parent group even when the user has another subscription; zero-balance eligibility is not promised.
|
|
415
|
+
|
|
416
|
+
### Extracted-content Fetch (`gatewayFetch`, off by default)
|
|
417
|
+
|
|
418
|
+
The default Fetch provider remains local HTTP. The gateway implements [Web Fetch V1](https://github.com/CrisLIUning/sub2-vibedev/blob/main/docs/vibedev/web-fetch-v1.md), revision `2026-10-30.1`. Setting the plugin's `gatewayFetch` config to `true` makes apply register the fetch provider `vibedev-gateway` inside `ctx.inject(['web'])` (the same id as search; the two registries are separate). Registering does not select it: only a profile that sets `web.fetchProvider: vibedev-gateway` uses it. With the host pinned to `http` the gateway path is never used; with the host pinned to `vibedev-gateway` and no advertised capability, the registration serves the `http` provider the host itself mounted.
|
|
419
|
+
|
|
420
|
+
Each fetch first reads the real `/v1/account/entitlements`, reusing `GatewayHttp.entitlements` and its 30-second account/gateway-scoped cache keyed by `${gatewayOrigin}\nuser:${userId}`; the existing `identityInvalidated` hooks clear that snapshot on sign-in, account switch and plugin sign-in changes. Only `capabilities` containing `web-fetch-v1` with valid `web_fetch` metadata selects `GatewayFetchProvider`; only a capability that is definitely absent delegates to the `http` provider the host mounted (with that row's own limits and User-Agent), never to the selected gateway provider again and never to `ctx.web.fetch`. Failed or refused capability reads, invalid metadata, refusals, rate limits, timeouts and supplier/budget errors are named errors: no fallback, no automatic resend, no sign-out. A 401 renews through the existing credential chain at most once and only for a real user authentication failure; a development key is never renewed.
|
|
421
|
+
|
|
422
|
+
One fetch is bound to the account identity (VibeDev `userId`) and gateway origin it started under: the identity is read again after the capability returns, when the gateway credential is taken, before the POST, and after a 401 renewal before the resend. A credential is only ever taken from the same identity read that verified the `userId` and origin (`AccountIdentity` supplies both), and the capability read carries that operation-bound credential instead of the shared credential plane; a 401 is checked against the account again before anything is rejected, so a switch neither rejects the replacing account's sign-in nor pairs another account's token with this operation. A change — an account switch, a sign-out, or a different gateway origin — ends the fetch with `ACCOUNT_CHANGED` (`retryable: false`): the operation is never handed to the new account and never falls back locally. A same-account renewal only rotates the token, so it still renews once and resends once. The whole fetch spends one 40-second budget across the identity read, the capability read, the credential, the gateway POST, a renewal and resend, and the local fallback; no stage restarts it, a caller cancellation is `WEB_ABORTED` while the budget expiring is `WEB_FETCH_TIMEOUT`, and an expired budget never resends.
|
|
423
|
+
|
|
424
|
+
The fallback is neither copied nor rebuilt: when the host's `ctx.web` offers `getFetchProvider` (the VibeDev desktop), `src/index.ts` registers the provider with `resolveLocal: () => webCtx.web.getFetchProvider?.('http')`, so the plugin asks the host for the instance mounted at the moment the capability is found absent, and a later reload or configuration change is followed. A host that mounted no such provider gets `WEB_FETCH_LOCAL_PROVIDER_MISSING`; one that reports itself unavailable gets `WEB_FETCH_LOCAL_PROVIDER_UNAVAILABLE`; an official DSH host, which has no `getFetchProvider`, gets `WEB_FETCH_LOCAL_PROVIDER_UNREACHABLE`. No case builds a default copy, and none is read as absent capability. `GatewayFetchWiring` still accepts an explicit `local` provider (tests and direct consumers), which wins over `resolveLocal`.
|
|
425
|
+
|
|
426
|
+
An extraction keeps the official SDK's `WebFetchResult` types: the gateway reports no final URL or target status, so `url` holds the requested URL and `statusCode` is 200 (as in the official DeepSeek Fetch provider), marked `contentSource: extracted`, and VibeDev hosts show both as unknown. `requestedUrl` keeps the request, the body is text with `bodyFormat: markdown`, and sourceCompleteness stays unknown independently of explicit truncation. SDK-only gateway receipt facts retain cached and a safe request ID, which is not a durable operation or idempotency key. Cancellation stops client waiting without promising supplier cancellation or a billing outcome.
|
|
427
|
+
|
|
428
|
+
The plugin compiles against the official npm SDK. The `WebFetchResult` facts and `WebRuntime.getFetchProvider` that VibeDev hosts add are declared as optional module augmentations in `src/fetch/host-web.ts` and checked before use. The gateway advertises only an initial URL/DNS precheck and provider-managed retrieval, without target DNS-pinning, redirect or original-charset guarantees.
|
|
429
|
+
|
|
430
|
+
For explicit joint acceptance, run node scripts/verify-fetch-joint.mjs with one or two authorized public URLs and a short-lived authorized VibeDevAppToken injected into the single process as VIBEDEV_FETCH_TEST_APP_TOKEN. Never paste it into chat, store it in the repository or substitute a supplier Key. The runner makes at most two POSTs within an 80-second total budget, never retries, and emits only sanitized receipts. Missing credentials produce a blocked result with zero requests. Its contract snapshot is not an advertised capability or proof of automatic selection.
|
|
355
431
|
|
|
356
432
|
**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.
|
|
357
433
|
|
|
@@ -359,7 +435,7 @@ Billing and available payment sources follow the VibeDev gateway receipt; the De
|
|
|
359
435
|
|
|
360
436
|
**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.
|
|
361
437
|
|
|
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`)
|
|
438
|
+
**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`.
|
|
363
439
|
|
|
364
440
|
**Upgrading from dsh-media**: the VibeDev Plugin Center (0.1.5 or later) switches it over for you, from its banner or when you install this plugin, the film workbench or the AI Creator Suite: the new package is installed disabled, `dsh-media` is disabled, the new one enabled, and `dsh-media` removed only after that worked. By hand, disable `dsh-media` first, install `@vibedev-si/dsh-vibedev`, uninstall `dsh-media` and restart the app fully. 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.
|
|
365
441
|
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.5.
|
|
1
|
+
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.5.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.
|