dsh-worktree-switch 0.3.0 → 0.3.1
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/LICENSE +21 -0
- package/README.md +8 -0
- package/cordis.patch.yml +8 -0
- package/package.json +56 -57
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 deepseek-plugins contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -91,6 +91,14 @@ worktree 服务自己的 `directory` 选项——本插件不另存一份设置
|
|
|
91
91
|
- 目录对每个项目都生效(是相对路径,不是在某个绝对位置开池)。若想按项目不同,只能
|
|
92
92
|
在项目里放不同的 profile——目前没做这种粒度。
|
|
93
93
|
|
|
94
|
+
**行 id 撞车**:dsh 0.2.2 的 Forge bundle(`@deepseek-ai/dsh-experimental-forge-bundle`)
|
|
95
|
+
也插入一行 `id: worktree`。Loader 按行 id 只留一条、后层覆盖,所以本包的
|
|
96
|
+
`directory: '.dsh/worktrees'` 只在**本包的层排在那份 bundle 之后**时才生效——默认情况正是
|
|
97
|
+
如此(profile 先列宿主 bundle,再列装进来的插件)。如果你手动调整了 bundle 顺序,请在
|
|
98
|
+
profile 的 patch 层里按上面的写法重新声明 `directory`,否则池会静默退回 harness 的默认
|
|
99
|
+
目录(`.agents/worktrees`)。这条只影响目录位置,开关、面板与丢弃逻辑都按服务实际用的
|
|
100
|
+
池子工作。
|
|
101
|
+
|
|
94
102
|
改完重启 profile 生效。已经在旧目录里的副本不会消失:面板列的是仓库的所有 linked
|
|
95
103
|
worktree,所以新旧目录的副本都会出现,可以照常丢弃。
|
|
96
104
|
|
package/cordis.patch.yml
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
# bundle uses: a profile that already mounts the model-facing worktree tool
|
|
6
6
|
# overrides this row instead of registering the `worktrees` service twice
|
|
7
7
|
# (Cordis throws on a duplicate service name).
|
|
8
|
+
#
|
|
9
|
+
# dsh 0.2.2's @deepseek-ai/dsh-experimental-forge-bundle inserts that same
|
|
10
|
+
# `worktree` id too. Loader keeps one row per id and the last layer wins, so
|
|
11
|
+
# this row's `config` (including `directory`) survives only while this bundle's
|
|
12
|
+
# layer is applied after the bundle that owns the other `worktree` row — which
|
|
13
|
+
# is the normal case, because a profile lists host bundles before installed
|
|
14
|
+
# plugins. If you reorder bundles, restate `directory` in the profile's own
|
|
15
|
+
# patch layer, or the pool silently falls back to the service default.
|
|
8
16
|
- insert:
|
|
9
17
|
- id: worktree
|
|
10
18
|
name: '@deepseek-ai/dsh-experimental-worktree'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-worktree-switch",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A New Session switch that puts the conversation into a throwaway Git worktree under the project's worktree pool (`<project>/.dsh/worktrees` by default), plus a panel to inspect and discard the copies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": "^22.19.0 || >=24.0.0",
|
|
37
|
-
"dsh": ">=0.2.
|
|
37
|
+
"dsh": ">=0.2.2-rc.1 <0.2.3-0"
|
|
38
38
|
},
|
|
39
39
|
"dsh": {
|
|
40
40
|
"manifestVersion": 1,
|
|
@@ -58,55 +58,55 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@deepseek-ai/cordis": "^4.0
|
|
62
|
-
"@deepseek-ai/dsh-api-session-controller": ">=0.2.
|
|
63
|
-
"@deepseek-ai/dsh-api-workspace-controller": ">=0.2.
|
|
64
|
-
"@deepseek-ai/dsh-client-connection": ">=0.2.
|
|
65
|
-
"@deepseek-ai/dsh-client-locale": ">=0.2.
|
|
66
|
-
"@deepseek-ai/dsh-client-store": ">=0.2.
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-conversation": ">=0.2.
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-layout": ">=0.2.
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-session": ">=0.2.
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-workspace": ">=0.2.
|
|
75
|
-
"@deepseek-ai/dsh-experimental-worktree": ">=0.2.
|
|
76
|
-
"@deepseek-ai/dsh-tools": ">=0.2.
|
|
77
|
-
"@deepseek-ai/schemastery": "^3.
|
|
61
|
+
"@deepseek-ai/cordis": "^4.1.0",
|
|
62
|
+
"@deepseek-ai/dsh-api-session-controller": ">=0.2.2-rc.1 <0.2.3-0",
|
|
63
|
+
"@deepseek-ai/dsh-api-workspace-controller": ">=0.2.2-rc.1 <0.2.3-0",
|
|
64
|
+
"@deepseek-ai/dsh-client-connection": ">=0.2.2-rc.1 <0.2.3-0",
|
|
65
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1 <0.2.3-0",
|
|
66
|
+
"@deepseek-ai/dsh-client-store": ">=0.2.2-rc.1 <0.2.3-0",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.1 <0.2.3-0",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.2.2-rc.1 <0.2.3-0",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.2-rc.1 <0.2.3-0",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.1 <0.2.3-0",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-session": ">=0.2.2-rc.1 <0.2.3-0",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.2-rc.1 <0.2.3-0",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1 <0.2.3-0",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-workspace": ">=0.2.2-rc.1 <0.2.3-0",
|
|
75
|
+
"@deepseek-ai/dsh-experimental-worktree": ">=0.2.2-rc.1 <0.2.3-0",
|
|
76
|
+
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.2.3-0",
|
|
77
|
+
"@deepseek-ai/schemastery": "^3.19.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@deepseek-ai/cordis": "4.0
|
|
81
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
82
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.
|
|
83
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.
|
|
84
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.
|
|
85
|
-
"@deepseek-ai/dsh-client-connection": "0.2.
|
|
86
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
87
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.
|
|
96
|
-
"@deepseek-ai/dsh-experimental-worktree": "0.2.
|
|
97
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
98
|
-
"@deepseek-ai/dsh-fs-local": "0.2.
|
|
99
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
100
|
-
"@deepseek-ai/dsh-sandbox-local": "0.2.
|
|
101
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.
|
|
102
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
103
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
104
|
-
"@deepseek-ai/dsh-subprocess": "0.2.
|
|
105
|
-
"@deepseek-ai/dsh-subprocess-local": "0.2.
|
|
106
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
108
|
-
"@deepseek-ai/dsh-working-directory": "0.2.
|
|
109
|
-
"@deepseek-ai/schemastery": "3.
|
|
80
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
81
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.2-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-experimental-worktree": "0.2.2-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-sandbox-local": "0.2.2-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-subprocess": "0.2.2-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
|
|
109
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
110
110
|
"@testing-library/react": "^16.3.3",
|
|
111
111
|
"@types/node": "^26.6.6",
|
|
112
112
|
"@types/react": "~18.3.1",
|
|
@@ -120,18 +120,17 @@
|
|
|
120
120
|
"vitest": "^5.0.5",
|
|
121
121
|
"zustand": "~4.5.7"
|
|
122
122
|
},
|
|
123
|
-
"scripts": {
|
|
124
|
-
"build": "tsdown",
|
|
125
|
-
"watch": "tsdown --watch",
|
|
126
|
-
"typecheck": "tsc --noEmit",
|
|
127
|
-
"test": "vitest run",
|
|
128
|
-
"prepare": "tsdown"
|
|
129
|
-
},
|
|
130
123
|
"author": "mxn404",
|
|
131
124
|
"homepage": "https://github.com/mxn404/deepseek-plugins/tree/main/packages/dsh-worktree-switch",
|
|
132
125
|
"repository": {
|
|
133
126
|
"type": "git",
|
|
134
127
|
"url": "git+https://github.com/mxn404/deepseek-plugins.git",
|
|
135
128
|
"directory": "packages/dsh-worktree-switch"
|
|
129
|
+
},
|
|
130
|
+
"scripts": {
|
|
131
|
+
"build": "tsdown",
|
|
132
|
+
"watch": "tsdown --watch",
|
|
133
|
+
"typecheck": "tsc --noEmit",
|
|
134
|
+
"test": "vitest run"
|
|
136
135
|
}
|
|
137
|
-
}
|
|
136
|
+
}
|