chore(deps): 将 dsh peers 升级到 0.1.2-alpha.2 / upgrade dsh peers to 0.1.2-alpha.2 - #69
Merged
Conversation
…nstallSection (dsh 0.1.2-alpha.2)
alpha.2 replaced the installSettingsSection free function with the
SettingsProvider.installSection service method, whose runtime body is
line-by-line equivalent to the hand-mirrored contract this module carried:
register({ base: entry }) -> setSource(scope thunk) -> detach effect with
isUnloading guard -> onChange -> scope.watch with the same guard.
Delegate to the library and delete the vendored mirror:
- The inject child now makes ONE installSection(ctx, ns, Config, entry,
{ setSource, onChange }) call; the library owns the source-thunk swap,
onChange timing, detach fallback (setSource(entry) + onChange), and the
unload guard.
- Delete the isUnloading FiberState 4/5 vendor mirror and the now-unused
SettingsScope import.
- Multi-fiber dedupe (qc1 W-5) is unchanged in behavior but now
synchronous: installSection runs inside the inject child, so the
try/catch wraps the call directly and catches the duplicate-namespace
error (the old comment about the async error escaping an outer
try/catch is obsolete; docstrings re-anchored to current facts,
circular-verification warning preserved).
- Test files: comment-only updates describing installSection; zero
assertion or behavior changes.
Verified: pnpm typecheck (3 tsconfigs), pnpm test (376/376), pnpm build
all exit 0; grep 'installSettingsSection' src tests -> zero hits.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
将
@deepseek-ai/dsh-*peer 对齐到^0.1.2-alpha.2,并完成 0.1.2 客户端 seam 迁移(dsh-client-runtime已从该线移除),以兼容 deepseek-harnessdsh-v0.1.2-alpha.2(pre-release)。Bump
@deepseek-ai/dsh-*peers to^0.1.2-alpha.2and migrate the client half off the removeddsh-client-runtimeline for deepseek-harnessdsh-v0.1.2-alpha.2(pre-release).dsh-v0.1.2-alpha.2dsh-v0.1.2-alpha.1变更 / Changes
package.json:
@deepseek-ai/dsh-*peers^0.1.1-rc.2→^0.1.2-alpha.2;dsh-client-runtime替换为dsh-client-store;补上实际导入的dsh-api-remotes/dsh-api-settings-controller/dsh-api-session-controller/dsh-client-ui-renderer。cordis^4.0.1→^4.0.2,schemastery^3.18.1→^3.18.2。workspace yaml + lockfile: 刷新到已发布的
0.1.2-alpha.2线。README.md / README.zh.md: dsh badge →
0.1.2-alpha.2。Client:
connection.api改为ctx.remote(llm.listConfigurableProviders/settings.describe/session.modelCatalog);createSnapshotStore改从dsh-client-store导入。Host:
settingsNamespace()改为 branded string;gateway 在 settings 不可用时抛RemoteError。package.json:
@deepseek-ai/dsh-*peers^0.1.1-rc.2→^0.1.2-alpha.2; replacedsh-client-runtimewithdsh-client-store; add actually-importeddsh-api-remotes/dsh-api-settings-controller/dsh-api-session-controller/dsh-client-ui-renderer. cordis^4.0.1→^4.0.2, schemastery^3.18.1→^3.18.2.workspace yaml + lockfile refreshed onto the published
0.1.2-alpha.2line.README badges →
0.1.2-alpha.2.Client:
connection.api→ctx.remote(llm.listConfigurableProviders/settings.describe/session.modelCatalog);createSnapshotStorefromdsh-client-store.Host:
settingsNamespace()→ branded string; gateway throwsRemoteErrorwhen settings are unavailable.Test plan