Repository navigation
添加 dsh 0.2.x 版本的支持 - #19
Conversation
- Widen client peer ranges to >=0.1.0-rc.6 <0.3.0-0 and remove the retired @deepseek-ai/dsh-client-runtime peer/inject entry, so DSH 0.2.x's plugin admission gate accepts the plugin while DSH 0.1.x remains supported. - Make client context types self-contained: emitted client .d.ts no longer imports the retired runtime package, and build externals cover both the 0.1.x and 0.2.x browser shared-module tables. - Read assistant providerMetadata (0.2.x) for model attribution, keeping provenance (0.1.x) first and requestConfig as the last fallback. - Fold DSH 0.2.x session logs: derive TTFT/TPS from assistant/message.stream and normalize object user/message.source; keep the assistant/chunk path for 0.1.x logs. - Add manifest/fold regression tests (49 passing), bump to 1.1.8, sync the lockfile, and update bilingual changelogs, README, and CONTRIBUTING. Co-authored-by: DeepSeek V4.1 Flash 1017 <deepseek-flash@deepseek.com>
|
@Max-Samson 速速review然后发新版,我们不能落后于人 💪 |
There was a problem hiding this comment.
🔁 This review has been superseded. See the latest review.
Address PR #19 review: skip structural block-start/usage/finish records and empty leading fragments in packed runs, place fragment i at time0 + sum(dt[0..i-1]), and end the TPS window at the last token. Add a regression for the reviewer sequence and a client test for the provenance -> providerMetadata -> requestConfig model fallback.
|
这版在 DSH Desktop 0.2.1-rc.2 测试过 |
There was a problem hiding this comment.
🔁 This review has been superseded. See the latest review.
Address PR #19 review round 2 and a self-review pass: - Count assistant/attempt usage from its stream and bill each settled attempt separately across retry boundaries (P1). - Treat name-bearing tool-call fragments and raw *-delta chunks as tokens for TTFT (P2), and fall back to the stream usage record when an assistant/message has no data.usage. - Measure 0.2.x output TPS over the summed streaming time of each message/attempt instead of the turn wall clock, so tool execution and step gaps no longer depress it. - Normalize object user/message.source kinds (user/user-* -> human, other runtime injections -> agent.<kind>). - Scan every published client .d.ts for the retired runtime import. - Add regressions for each case and correct the changelog wording.
|
这AI能不能问题一次说完?怎么改完又说之前一版的其他问题呢 |
Max-Samson
left a comment
There was a problem hiding this comment.
Code Review: ✅ APPROVE
Adds DSH 0.2.x support while retaining the 0.1.x paths. Reviewed the changed implementations, callers, tests, and relevant DSH contracts.
Typecheck, build, all 55 tests, and package dry-run passed. Live clean-profile installation was not independently rerun.
Verdict: APPROVE — The compatibility changes fit the existing architecture, and no actionable defects were found.
No issues found. Code looks good!
|
@ChthoIly 感谢pr贡献,已经合并更新了,npm v1.1.8已经发布 |
|
@al-alsace /review |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
DSH更新到 0.2.x 后有破坏性更新改动,目前v1.1.7没法安装了。这次添加新版的支持
这次的 Flash 很好用 😄
Summary
Describe the user-visible change and why it belongs in this plugin.
Verification
npm run verifynpm pack --dry-runlib/files includedCHANGELOG.mdupdated for user-visible changes