Skip to content

feat: adapt the SDK to dsh 0.2.1-rc.1 (new wire wrappers + verified baseline) - #26

Merged
btspoony merged 6 commits into
mainfrom
upgrade/12-dsh-0.2.1-rc1-adaptation
Oct 17, 2026
Merged

btspoony merged 6 commits into
mainfrom
upgrade/12-dsh-0.2.1-rc1-adaptation

Conversation

@btspoony

Copy link
Copy Markdown
Member

Re-aligns the crate to @deepseek-ai/dsh@0.2.1-rc.1 and adapts the new wire capabilities the reference SDKs expose.

What changed

  • New API — DeepSeekHarness::resume_session, Session::get_working_directory, Session::set_working_directory, plus the matching HarnessClient methods (session/resume, session/working-directory/get|set). session/wait is deliberately not wrapped: neither the Python nor the TypeScript SDK exposes it.
  • Verified runtime baseline — the CI keyless-runtime-handshake pin moves to 0.2.1-rc.1; both frozen specs re-baselined to that tag (41-row re-verification, 39 PASS / 2 FAIL, both stale citations corrected).
  • Docs truth — the README pair documents the new API and now states the stored-credential precedence is unverified rather than implying the injected key wins.

Evidence

  • cargo test 197 passed; cargo fmt --check and cargo clippy --all-targets -- -D warnings clean.
  • New tests assert the emitted method and params shape per wrapper, plus the SdkProtocol / JsonRpc error mapping.
  • Plan QC tri-review: 3 x Approve, 0 Critical / 0 Warning / 1 Suggestion (fixed).
  • CI on this PR runs the keyless handshake against the newly pinned version.

Known unverified

Whether a stored $DSH_HOME/.credentials.yaml entry pre-empts an injected DEEPSEEK_API_KEY is an open question, recorded in the spec, both READMEs and the rustdoc — no outcome is asserted.

Plan 12 Task 2: bump the exact pin at all three sites (install step, npm
cache-key suffix, fail-loud PATH check) to the runtime baseline re-verified at
deepseek-harness `dsh-v0.2.1` rc.1 (1600d8a1, 2026-10-16), and rewrite the pin
rationale for that baseline (wire core unchanged, request map additive, session
events still opaque).

Registry probe: `npm view @deepseek-ai/dsh@0.2.1-rc.1 version` -> 0.2.1-rc.1.
Gates: cargo fmt --check, cargo clippy --all-targets -- -D warnings.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T08:18:47.262723Z 713d9cb PR opened
🔒 Security Review ✅ Completed 2026-10-17T08:19:00.675799Z 713d9cb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@btspoony
btspoony merged commit 401374e into main Oct 17, 2026
6 checks passed
@btspoony
btspoony deleted the upgrade/12-dsh-0.2.1-rc1-adaptation branch October 17, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant