Repository navigation
chore: support DSH 0.2.2-rc.2 - #2
Merged
Merged
Conversation
Pin devDependencies to the 0.2.2-rc.2 release (npm `next`), add it to the contract matrix in front of 0.2.2-rc.1 and 0.2.1-rc.5, and record pnpm 11's version-pinned minimumReleaseAge exemptions so --frozen-lockfile installs resolve those packages locally and in CI. No source change: the keyed `tool.call.toolview` slot declaration, its ToolCallOwnerProps/ToolCallCommonProps fields, ToolResultNode, useCodeHighlighter and languageForPath are identical in rc.1 and rc.2. peerDependencies and engines.dsh keep `>=0.2.1-rc.5 <0.3.0-0` so the plugin still installs on either release. Bump to 0.1.1 and add release notes for the tag-driven publish.
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.
改了什么
devDependencies里 6 个@deepseek-ai/dsh-*从0.2.2-rc.1钉到0.2.2-rc.2(npmnext标签指向的发行版),pnpm-lock.yaml同步更新(只有这 6 个包变,其余 208 个条目不动)。scripts/contract.mjs默认版本矩阵从['0.2.2-rc.1', '0.2.1-rc.5']改为['0.2.2-rc.2', '0.2.2-rc.1', '0.2.1-rc.5'];.github/workflows/ci.yml的注释同步。peerDependencies与engines.dsh保持>=0.2.1-rc.5 <0.3.0-0:这个区间同时覆盖 0.2.2-rc.1 和 0.2.2-rc.2,本机 Desktop(仍是 rc.1)加载插件不会被版本检查拒绝。pnpm-workspace.yaml增加 6 条minimumReleaseAgeExclude(版本精确钉死)。pnpm 11 默认有 24hminimumReleaseAge策略,rc.2 包发布于 2026-11-12T02:0xZ,不做豁免时pnpm install --frozen-lockfile会直接报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION(本地和 CI 都会)。这批条目等 rc.2 过 24h 后可以删掉。README.md:兼容表加 0.2.2-rc.2 一行;补充一条与 stock 卡的已知差异说明(见下文「上游差异结论」最后一条)。0.1.0→0.1.1,新增.github/release-notes/v0.1.1.md(四个标题齐全,供 tag 驱动发布使用)。src/、test/、locale/一行没改:rc.2 对本插件没有破坏性变化,dist/与 0.1.0 同源同产物。上游差异结论(0.2.2-rc.1 → 0.2.2-rc.2)
用
npm pack拉两个版本,逐文件比对lib/types/**/*.d.ts(忽略 rc.2 新加的.d.ts.map/.js.mapsourcemap 与sourceMappingURL行):tool.call.toolview槽声明 +ToolCallOwnerProps/ToolCallCommonPropsdsh-client-ui-tool/lib/types/client/contract/slots.d.ts无 diffToolResultNode/StartedToolCall字段dsh-client-ui-conversation/lib/types/client/contract/records.d.ts无 diffuseCodeHighlighter/CodeHighlighter/languageForPathdsh-client-ui-primitives/lib/types/code-highlighting.d.ts无 difflanguageForPath行为dsh-util-code-language/lib/types无 diff;契约脚本对 11 个路径断言全过DisclosureRowprops、6 个图标、TextShimmer/Tooltip/writeClipboard导出.d.ts无 diff;icons/index.d.ts只有新增(IconLayers/IconEye),未删任何既有图标register/inject/entries/StoredEntry/keyed 遮蔽顺序)StoredEntry只新增id/order/label/locale/registrant/children/store可选字段;SlotKind新增'hoc'markdown/highlight.d.tspatchPerlGrammar,HighlightSpan不变index.d.tsuseAnchoredPosition/AnchoredPositionOptions;Menu的getAnchorRect换成anchorRef/anchorPoint;新增usePointerGrace、FenceBlocks、diff-fence等MutationView.tsx只 importDisclosureRow、6 个 Icon、TextShimmer、Tooltip、languageForPath、useCodeHighlighter、writeClipboarddsh-client-ui-tool的ToolRow/ToolDetailsfileTargets/fileTargetContextMenuProps(多文件 patch 逐文件链接)、compact、subagentDetails、office 行ToolRow,仅注册tool.call.toolview,无影响dsh-client-ui-conversationconversation.hero.framehoc 槽、Session Header 菜单等window-drag-regionsTooltip用共享原语自带排除attachment-error-codesdsh-client-ui-primitives的CodeBlock新增diffprop一个已知的 stock 卡差异(不是破坏,写进了 README):rc.2 的 file-mutation 行对多文件/移动 patch 会逐文件渲染链接(
fileTargets),本插件的折叠行仍只显示+N −M,文件名在展开后的 body 里给出。这是 0.1.0 就有的取舍,rc.2 把它放大了;本次按最小改动处理,没有自己造 patch 解析。验证(全部真跑,
npm_config_cache=/tmp/npmcache-rinai)注:
pnpm test需NODE_ENV=test(本机 shell 默认NODE_ENV=production,React 18 的act()在 production build 下不支持,与本改动无关)。版本号:0.1.0 → 0.1.1(patch)
peerDependencies/engines.dsh区间没变、src/没变、dist/产物没变——对使用者而言 0.1.1 与 0.1.0 行为完全一致,只是「对 0.2.2-rc.2 的契约重新验证过 + 工具链刷新」。按 semver 这属于补丁级;宣称「新增支持」会夸大(rc.2 本来就在>=0.2.1-rc.5 <0.3.0-0区间内)。若更希望对外强调「支持了新的 DSH 发行版」,改成 0.2.0 + 重命名 release notes 也是一行的事。