@vibedev-si/dsh-vibedev 0.3.4 → 0.3.6
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 +42 -3
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.js +1328 -75
- package/lib/account/index.d.ts +40 -6
- package/lib/account/latency.d.ts +81 -0
- package/lib/{anthropic-messages-KOS0z8Fy.js → anthropic-messages-BgIfgjNt.js} +11 -11
- package/lib/audio/request.d.ts +5 -0
- package/lib/feedback/client-info.d.ts +51 -0
- package/lib/feedback/index.d.ts +46 -0
- package/lib/feedback/observe.d.ts +43 -0
- package/lib/feedback/queue.d.ts +110 -0
- package/lib/feedback/recent-errors.d.ts +59 -0
- package/lib/feedback/routes.d.ts +31 -0
- package/lib/feedback/uploader.d.ts +131 -0
- package/lib/feedback/wire.d.ts +128 -0
- package/lib/gateway/assets.d.ts +38 -5
- package/lib/gateway/catalog.d.ts +11 -0
- package/lib/gateway/errors.d.ts +10 -3
- package/lib/gateway/http.d.ts +12 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +2008 -373
- package/lib/{node-vkDR3GtK.js → node-Br-0fshF.js} +2 -2
- package/lib/{node-Cujw_a4_.js → node-D58f7Ea6.js} +5 -5
- package/lib/video/plan.d.ts +17 -2
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -37,6 +37,30 @@
|
|
|
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
|
+
|
|
48
|
+
### 意见反馈
|
|
49
|
+
|
|
50
|
+
0.3.6 起,你对某条回答点的赞或踩(以及附带的分类和说明)、`/feedback` 命令,和账号菜单里「意见反馈」对话框提交的内容,都会随你的 VibeDev 账号发送给 VibeDev 团队。VibeDev 关闭了 DeepSeek Harness 自带的反馈上传,此前这些反馈只留在本机的会话日志里。
|
|
51
|
+
|
|
52
|
+
- 只发送插件启动之后新给出的反馈,不会扫描或补传以前的会话日志。修改评价算作一条新反馈,删除评价不发送。
|
|
53
|
+
- 「意见反馈」对话框:选一个分类,写下说明(最多 4000 字)。「附上最近的报错信息(可能包含文件路径或代码片段)」默认不勾选;勾选后先显示将要附上的完整内容和大小,点「发送」才会发出。这些报错只保存在内存里(最近 50 条),不写入磁盘。
|
|
54
|
+
- 发不出去时(没联网、网关繁忙或还没开放此功能),反馈保存在本机,之后自动重发;重发的内容和编号与第一次完全相同,网关不会重复记录。保存在插件数据目录下的 `gateways/<网关编号>/feedback-queue.json`(与登录信息同目录,仅本人可读),最多 200 条、保留 30 天。
|
|
55
|
+
- 每条反馈只会以给出它时登录的 VibeDev 账号发送(记下的是该账号的用户 ID):换成别的账号登录时,原账号的反馈留在本机等它重新登录(仍受 200 条、30 天的上限),绝不会以别的账号发出。未登录时给出的评价和 `/feedback` 随下一个登录的账号发送,第一次发送后就归属这个账号。
|
|
56
|
+
- 不会匿名发送:未登录时对话框会提示先登录 VibeDev。
|
|
57
|
+
|
|
58
|
+
0.3.6 还修复了三处生成失败:
|
|
59
|
+
|
|
60
|
+
- **Seed 语音(seed-audio-1.0)的参考音频**:按网关目录实际的声明读取参考音频的上限(最多 3 段、每段不超过 30 秒和 10 MiB),以及文本长度上限(3000 字)和各输出格式的采样率;每段参考音频按 Seed 文档的写法以 `{"audio_url": "…"}` 发送,水印以 `{"aigc_watermark": true}` 发送。此前带参考音频的语音请求会被本地拒绝(「不接受参考音频」),带水印的请求会被网关以 400 INVALID_SEED_AUDIO_REQUEST 拒绝。没有这类声明的其他音频模型,参考音频仍按链接发送。
|
|
61
|
+
- **几段视频同时用同一张参考图**:同一份文件同时只上传一次,几段视频共用这次上传;某一段取消不影响其他段,所有段都取消时上传才会停止。如果另一个窗口或程序正在上传同一份文件,网关回 409 时会等它传完(最多等 2 分钟,按网关的 Retry-After 或从 1 秒起逐步拉长间隔)再使用;对方没传成功时自己再上传一次。
|
|
62
|
+
- **参考视频过长**:模型没有声明单段参考视频的上限时(目前线上的视频模型都是这样),以这个模型在所选模式下能生成的最长时长为上限(例如 4–15 秒的模型,参考视频最多 15 秒)。超出时在上传测出时长之后、确认费用和提交之前就提示,写明实际时长、上限和「剪到 N 秒以内」,不会提交后才在上游失败、也不会扣费;`media_models` 会写出这个上限。
|
|
63
|
+
|
|
40
64
|
0.2.3 起修复了重启后再次要求登录的问题:启动时凭据服务未就绪或临时读取失败,会在服务就绪后恢复,不把空结果永久缓存;正常关闭应用保留登录。过去写到本地备用文件的会话在宿主凭据服务可用后迁入,宿主已有记录优先,显式退出会清理备用会话。VibeDev 应用内置的插件需要随应用升级到修复版;单独安装在 DeepSeek Harness 中的插件可直接升级。
|
|
41
65
|
|
|
42
66
|
0.2.5 起撤回了 0.2.4 加在「设置 → VibeDev 账号」页尾的「创作工具」推荐行:那一行属于插件之间的推荐位,放在设置页会影响观感,等重新设计后再考虑。撤销只涉及这一处界面,账号、余额、模型列表、登录与已保存的剧本分镜作品都不受影响。
|
|
@@ -99,6 +123,7 @@
|
|
|
99
123
|
- 视频和音频只在成功时扣费,失败和取消的任务不扣。视频提交后无法取消。
|
|
100
124
|
- 同一次操作只会生成一次:提交没有得到确认时,会用同一个请求键向网关确认结果;查询或下载失败只会重新查询、刷新链接,不会重新提交。结果已经生成、但费用还在结算(`settlement_pending`)时,结果照常保存,不会重新生成。
|
|
101
125
|
- 余额在每次付费请求结束后(对话回复、生成、转写)马上重新读取,侧栏和设置页几秒内就能看到扣费后的余额。
|
|
126
|
+
- 视频、批量生图任务提交时,网关先把预估金额从可用余额转为冻结金额,任务结束后结算。余额卡片分别显示可用、冻结中与合计,设置页在有冻结金额时多显示一行;冻结金额的变化也会让页面及时更新。
|
|
102
127
|
- 插件设置里的「每次付费生成前先询问」默认关闭。打开后,每次付费的媒体请求之前都会先弹出确认,并显示预估金额。
|
|
103
128
|
|
|
104
129
|
## 设置
|
|
@@ -166,6 +191,12 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
|
|
|
166
191
|
|
|
167
192
|
**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.
|
|
168
193
|
|
|
194
|
+
**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 }`.
|
|
195
|
+
|
|
196
|
+
**Feedback reaches VibeDev (0.3.6)**: VibeDev turns off DeepSeek Harness's own feedback upload, so a thumbs up or down on an answer (with its category and note) and `/feedback` stayed in the local session log. They are now sent to the VibeDev team with the VibeDev account (`POST {gateway}/v1/account/feedback`), as is what the new **Feedback** entry in the VibeDev account menus sends: a category, up to 4,000 characters, and — only when its box is ticked, after the exact text and its size are shown — the recent error messages (failed tool calls and model errors this app saw, the last 50, kept in memory only). Only feedback given after the plugin started is sent (DeepSeek Harness's `session/event` for open Sessions and `feedback/committed` for a rating written to a closed one; no log is ever scanned); an edited rating is a new upload, a removed one is not sent. What cannot go now (offline, the gateway busy or not taking feedback yet, nobody signed in) waits in `gateways/<gateway id>/feedback-queue.json` in the plugin's data folder (owner-only, at most 200 items for 30 days) and is resent later, one at a time, byte for byte under the same idempotency id; the dialog says whether it was sent, kept to send later, or refused. Each entry goes out only under the VibeDev account that was signed in when it was given (its user id from `/v1/account/auth/me` is stored with it): another account's entries wait for it, within the caps, and are never sent under a different user; entries given while signed out go with the next account that signs in and belong to it from their first attempt. Nothing is sent anonymously. The Host routes are `GET /api/dsh-vibedev/feedback/attachment` and `POST /api/dsh-vibedev/feedback`.
|
|
197
|
+
|
|
198
|
+
**Generation fixes (0.3.6)**: *Seed speech* (`seed-audio-1.0`): its reference audio is read from the catalog as the gateway declares it — the inputs of Seed's reference union (`reference_audio_input`, `max_reference_audios` 3, `max_reference_audio_duration_seconds` 30, `max_reference_audio_bytes` 10 MiB), with `max_prompt_characters` (3,000) and each format's `output_sample_rates` — and each reference is sent as `{"audio_url": "<url>"}` and the watermark as `{"aigc_watermark": true}`, the documented forms Seed's strict parser takes; before, a voice reference was refused locally ("does not take reference audio") and a watermark with 400 INVALID_SEED_AUDIO_REQUEST. A model that does not declare the union keeps plain links and a boolean watermark. *Uploads*: callers that need the same file (purpose and digest) at the same time share one upload, each keeping its own cancellation (the upload stops only when every caller gave up); a 409 `MEDIA_ASSET_NOT_READY` or `MEDIA_ASSET_UPLOAD_IN_PROGRESS` — another upload of the same bytes on the account — is waited out (Retry-After, else 1 s doubling to 10 s, two minutes at most) by declaring the upload again, which hands back the ready asset or, when the other upload ended without the file, a fresh upload the plugin does once more itself. *Reference video length*: a model that declares no per-clip limit (the production lanes) takes reference videos up to the longest video it makes in the chosen mode (15 s on a 4–15 s model); a longer clip is refused after the gateway measured it and before the price is confirmed or anything is submitted, with its length, the limit and "Trim it to N s or less"; `media_models` shows the limit. A declared limit always wins.
|
|
199
|
+
|
|
169
200
|
**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.
|
|
170
201
|
|
|
171
202
|
**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.
|
|
@@ -192,11 +223,19 @@ Everything is paid from your VibeDev balance; the DeepSeek account stays DeepSee
|
|
|
192
223
|
|
|
193
224
|
Login distinguishes waiting for the browser, exchanging credentials, saving credentials, and successful, failed, cancelled or expired outcomes. Settings and the updated VibeDev Next welcome page show classified failures. Collapsible support details and Host logs contain only the attempt reference, phase, origin, HTTP status and allowlisted network codes. Passwords, authorization codes, PKCE verifiers, tokens, response bodies and full callback URLs are excluded. PKCE, state and the random localhost callback remain; a failed exchange is never automatically repeated or sent to another gateway. The gateway operator must separately verify the American web page's public configuration.
|
|
194
225
|
|
|
195
|
-
## Maintainer releases
|
|
226
|
+
## Maintainer releases · 维护者发布
|
|
227
|
+
|
|
228
|
+
Build, typecheck and test locally, pack the tested archive, tag the matching source version, and publish a GitHub Release with `vibedev-si-dsh-vibedev-<version>.tgz` attached. `.github/workflows/publish.yml` publishes that exact archive through npm trusted publishing (OIDC); it does not rebuild the package. The source repository is private and npm takes provenance attestations only from public repositories, so the package is published **without a provenance attestation** (`npm publish` runs without `--provenance`). The job's own checks stand in for it: it checks the source/tag/archive identities and the Release asset digest, refuses an existing version with different bytes, skips an identical already-published version, and after publication downloads the npm tarball and compares it byte for byte with the archive. For a manual retry of an unpublished version, run the workflow on the version's tag ref.
|
|
229
|
+
|
|
230
|
+
Before a release, run the workflow by hand with `operation: verify-oidc` on the tag of the latest published version: it sets and removes a temporary dist-tag through OIDC and publishes nothing, showing that npm trusted publishing still authorizes this workflow.
|
|
231
|
+
|
|
232
|
+
本地完成构建、类型检查和测试后打包,为对应的源码版本打 tag,再发布附带 `vibedev-si-dsh-vibedev-<版本>.tgz` 的 GitHub Release。`.github/workflows/publish.yml` 通过 npm 可信发布(OIDC)发布这个归档本身,不重新构建。源码仓库是私有的,而 npm 只接受公开仓库的来源证明(provenance),所以发布时**不带来源证明**(`npm publish` 不加 `--provenance`)。完整性由工作流自己的检查保证:核对源码、tag 与归档的包名和版本以及 Release 附件摘要,不覆盖内容不同的已发布版本,跳过内容相同的已发布版本,发布后下载 npm 上的包与归档逐字节比对。未发布成功的版本要重试时,在该版本的 tag 上手动运行工作流。
|
|
233
|
+
|
|
234
|
+
发布之前,先在最近一个已发布版本的 tag 上手动运行工作流并选 `operation: verify-oidc`:它通过 OIDC 设置再删除一个临时 dist-tag,不发布任何东西,用来确认 npm 可信发布仍然授权这个工作流。
|
|
196
235
|
|
|
197
|
-
|
|
236
|
+
Configure npm Trusted Publisher with GitHub owner `VibeDev-Si`, repository `dsh-vibedev`, workflow `publish.yml`, no environment, and **Allow npm publish**. Enable **Allow npm dist-tag** as well to use the manual `dist-tag` operation for `latest` or `next` (and for `verify-oidc`). No npm token is stored in this repository. Trusted publishing does not authorize `npm deprecate`; that maintenance operation still uses interactive authentication.
|
|
198
237
|
|
|
199
|
-
|
|
238
|
+
npm 的 Trusted Publisher 配置为:GitHub 所有者 `VibeDev-Si`、仓库 `dsh-vibedev`、工作流 `publish.yml`、不设 environment,勾选 **Allow npm publish**;要用手动的 `dist-tag`(`latest` 或 `next`)和 `verify-oidc`,再勾选 **Allow npm dist-tag**。仓库里不保存 npm token。可信发布不能执行 `npm deprecate`,这项维护操作仍需交互式登录。
|
|
200
239
|
|
|
201
240
|
## License
|
|
202
241
|
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.3.
|
|
1
|
+
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.3.6
|
|
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.
|