@ch4acko3/dsh-turn-fold 0.6.0 → 0.6.2
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 +5 -3
- package/README.zh-CN.md +4 -2
- package/inline-source.cjs +1 -1
- package/package.json +7 -7
- package/patch.cjs +4 -4
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ short open/close transition that unmounts the activity after it closes.
|
|
|
37
37
|
Three shape-guarded Source Patches run in memory against the compiled browser
|
|
38
38
|
bundle. For DSH `0.1.0-rc.8` through `0.1.1-rc.2`, they target
|
|
39
39
|
`@deepseek-ai/dsh-client-ui-conversation`; for DSH `0.1.2-alpha.5` through the
|
|
40
|
-
`0.1.
|
|
40
|
+
`0.1.6` line (including prereleases), they follow the renderer into `@deepseek-ai/dsh-client-ui-chat`.
|
|
41
41
|
Installed DSH files are never modified. Every selector must still match exactly
|
|
42
42
|
once, so an incompatible compiled shape fails closed instead of modifying an
|
|
43
43
|
uncertain target.
|
|
@@ -51,7 +51,7 @@ uncertain target.
|
|
|
51
51
|
## Install
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
dsh plugin --profile web add github:
|
|
54
|
+
dsh plugin --profile web add github:memorax-ai/dsh-turn-fold
|
|
55
55
|
dsh harmony status --profile web # all three patches must be `bound`
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -78,7 +78,7 @@ Configure the npm trusted publisher once:
|
|
|
78
78
|
|
|
79
79
|
```sh
|
|
80
80
|
npx npm@^11.15.0 trust github @ch4acko3/dsh-turn-fold \
|
|
81
|
-
--repo
|
|
81
|
+
--repo memorax-ai/dsh-turn-fold \
|
|
82
82
|
--file release.yml \
|
|
83
83
|
--allow-publish
|
|
84
84
|
```
|
|
@@ -89,3 +89,5 @@ Then create and push a version tag whose value matches `package.json`:
|
|
|
89
89
|
npm version patch
|
|
90
90
|
git push --follow-tags
|
|
91
91
|
```
|
|
92
|
+
|
|
93
|
+
Compatibility checks cover the real `0.1.5-rc.2` and `0.1.6-alpha.2` bundles. Run `npm test` with `DSH_TURN_FOLD_UPSTREAM_ROOT` pointing to an isolated DSH installation to exercise that chat bundle. Exact selector counts remain required.
|
package/README.zh-CN.md
CHANGED
|
@@ -16,7 +16,7 @@ https://github.com/user-attachments/assets/3c9dfdcf-a454-4750-9edf-76771ed5a9a6
|
|
|
16
16
|
|
|
17
17
|
## 工作原理
|
|
18
18
|
|
|
19
|
-
三个带形状校验的 Source Patch 会在内存中修改编译后的浏览器包:DSH `0.1.0-rc.8` 至 `0.1.1-rc.2` 使用 `@deepseek-ai/dsh-client-ui-conversation`,DSH `0.1.2-alpha.5`
|
|
19
|
+
三个带形状校验的 Source Patch 会在内存中修改编译后的浏览器包:DSH `0.1.0-rc.8` 至 `0.1.1-rc.2` 使用 `@deepseek-ai/dsh-client-ui-conversation`,DSH `0.1.2-alpha.5` 至 `0.1.6` 版本线(含预发布版)则跟随渲染器迁移到 `@deepseek-ai/dsh-client-ui-chat`。它们不会修改已安装的 DSH 文件。每条选择器仍必须恰好命中一次,因此遇到不兼容的编译形状时会停止应用,而不会修改不确定的目标。
|
|
20
20
|
|
|
21
21
|
| Patch | 选择器(预期命中 1 次) | 作用 |
|
|
22
22
|
| --- | --- | --- |
|
|
@@ -27,7 +27,7 @@ https://github.com/user-attachments/assets/3c9dfdcf-a454-4750-9edf-76771ed5a9a6
|
|
|
27
27
|
## 安装
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
dsh plugin --profile web add github:
|
|
30
|
+
dsh plugin --profile web add github:memorax-ai/dsh-turn-fold
|
|
31
31
|
dsh harmony status --profile web # 三个 Patch 都必须为 `bound`
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -60,3 +60,5 @@ npx npm@^11.15.0 trust github @ch4acko3/dsh-turn-fold \
|
|
|
60
60
|
npm version patch
|
|
61
61
|
git push --follow-tags
|
|
62
62
|
```
|
|
63
|
+
|
|
64
|
+
已使用真实 `0.1.5-rc.2` 和 `0.1.6-alpha.2` 包验证。设置 `DSH_TURN_FOLD_UPSTREAM_ROOT` 指向隔离的 DSH 安装后运行 `npm test`,可对该版本的聊天包执行测试。选择器仍要求精确命中。
|
package/inline-source.cjs
CHANGED
|
@@ -623,7 +623,7 @@ function __ch4acko3DshTurnFoldSettingsCard() {
|
|
|
623
623
|
react_jsx_runtime.jsx("span", { className: "__ch4acko3-dsh-turn-fold-settings__title", children: title }),
|
|
624
624
|
react_jsx_runtime.jsx("a", {
|
|
625
625
|
className: "__ch4acko3-dsh-turn-fold-settings__pluginName",
|
|
626
|
-
href: "https://github.com/
|
|
626
|
+
href: "https://github.com/memorax-ai/dsh-turn-fold",
|
|
627
627
|
target: "_blank",
|
|
628
628
|
rel: "noreferrer",
|
|
629
629
|
"data-ready": ownerLinkReady ? "true" : "false",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ch4acko3/dsh-turn-fold",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Codex-style turn folding for the DSH WebUI conversation, implemented as a dsh-harmony provider.",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"engines": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/memorax-ai/dsh-turn-fold"
|
|
27
27
|
},
|
|
28
28
|
"dsh": {
|
|
29
29
|
"bundle": {
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-chat": ">=0.1.2-alpha.5 <0.1.3-0",
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.8 <=0.1.1-rc.2 || >=0.1.2-alpha.5 <0.1.3-0",
|
|
60
|
-
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.8 <=0.1.1-rc.2 || >=0.1.2-alpha.5 <0.1.3-0",
|
|
61
|
-
"dsh-harmony": "^0.8.
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-chat": ">=0.1.2-alpha.5 <0.1.3-0 || >=0.1.3-0 <0.1.4-0 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-0 <0.1.6-0 || >=0.1.6-0 <0.1.7-0",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.8 <=0.1.1-rc.2 || >=0.1.2-alpha.5 <0.1.3-0 || >=0.1.3-0 <0.1.4-0 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-0 <0.1.6-0 || >=0.1.6-0 <0.1.7-0",
|
|
60
|
+
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.8 <=0.1.1-rc.2 || >=0.1.2-alpha.5 <0.1.3-0 || >=0.1.3-0 <0.1.4-0 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-0 <0.1.6-0 || >=0.1.6-0 <0.1.7-0",
|
|
61
|
+
"dsh-harmony": "^0.8.11"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"@deepseek-ai/dsh-client-ui-chat": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@deepseek-ai/dsh-client-ui-conversation": "0.1.1-rc.2",
|
|
80
80
|
"@deepseek-ai/dsh-settings": "0.1.1-rc.2",
|
|
81
81
|
"@phenomnomnominal/tsquery": "^6.2.0",
|
|
82
|
-
"dsh-harmony": "^0.8.
|
|
82
|
+
"dsh-harmony": "^0.8.11",
|
|
83
83
|
"react": "18.3.1",
|
|
84
84
|
"react-test-renderer": "18.3.1",
|
|
85
85
|
"semver": "^7.8.5",
|
package/patch.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
//
|
|
3
3
|
// DSH 0.1.2 split the visual chat renderer out of ui-conversation and into
|
|
4
4
|
// ui-chat. Keep the old compiled shape bounded through 0.1.1-rc.2, then select
|
|
5
|
-
// the new target and render seam for the
|
|
5
|
+
// the new target and render seam for the modern chat line.
|
|
6
6
|
|
|
7
7
|
const fs = require('node:fs')
|
|
8
8
|
const path = require('node:path')
|
|
@@ -11,7 +11,7 @@ const { pathToFileURL } = require('node:url')
|
|
|
11
11
|
const INLINE = require('./inline-source.cjs')
|
|
12
12
|
|
|
13
13
|
const LEGACY_RANGE = '>=0.1.0-rc.8 <=0.1.1-rc.2'
|
|
14
|
-
const
|
|
14
|
+
const DSH_MODERN_RANGE = '>=0.1.2-alpha.5 <0.1.7-0'
|
|
15
15
|
|
|
16
16
|
function manifestVersion(filename) {
|
|
17
17
|
return JSON.parse(fs.readFileSync(filename, 'utf8')).version
|
|
@@ -96,7 +96,7 @@ function legacyPatches() {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
function dsh012Patches() {
|
|
99
|
-
return commonPatches(target('@deepseek-ai/dsh-client-ui-chat',
|
|
99
|
+
return commonPatches(target('@deepseek-ai/dsh-client-ui-chat', DSH_MODERN_RANGE), {
|
|
100
100
|
select: 'CallExpression[arguments.0.name="ChatNodeList"]',
|
|
101
101
|
apply({ node, sourceFile, edit }) {
|
|
102
102
|
const props = node.arguments[1]
|
|
@@ -121,7 +121,7 @@ Object.defineProperties(patches, {
|
|
|
121
121
|
createPatches: { value: createPatches },
|
|
122
122
|
activeDshVersion: { value: activeDshVersion },
|
|
123
123
|
LEGACY_RANGE: { value: LEGACY_RANGE },
|
|
124
|
-
|
|
124
|
+
DSH_MODERN_RANGE: { value: DSH_MODERN_RANGE },
|
|
125
125
|
})
|
|
126
126
|
|
|
127
127
|
module.exports = patches
|