dsh-session-editor 0.0.0-stage → 0.1.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 shawenbin
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.
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: session-editor
3
+ name: '@local/session-editor'
package/package.json CHANGED
@@ -1,6 +1,63 @@
1
1
  {
2
2
  "name": "dsh-session-editor",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "对话编辑:在 DSH 会话界面上删除或改写某一轮对话并立即用新内容重新提问,或把整个会话从侧栏与磁盘删掉、移动到其它工作区。",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./宿主.js",
8
+ "./client": "./界面.js",
9
+ "./icon": "./图标.svg",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "files": [
13
+ "宿主.js",
14
+ "界面.js",
15
+ "cordis.patch.yml",
16
+ "读我.md",
17
+ "LICENSE",
18
+ "图标.svg"
19
+ ],
20
+ "scripts": {
21
+ "check": "node --check 宿主.js && node --check 界面.js"
22
+ },
23
+ "license": "MIT",
24
+ "author": "shawenbin",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/shawenbin/dsh-plugins.git",
28
+ "directory": "修改会话"
29
+ },
30
+ "homepage": "https://github.com/shawenbin/dsh-plugins#readme",
31
+ "bugs": {
32
+ "url": "https://github.com/shawenbin/dsh-plugins/issues"
33
+ },
34
+ "keywords": [
35
+ "dsh",
36
+ "dsh-plugin",
37
+ "deepseek-harness",
38
+ "plugin",
39
+ "session",
40
+ "conversation",
41
+ "edit",
42
+ "delete"
43
+ ],
44
+ "engines": {
45
+ "node": ">=22",
46
+ "dsh": "^0.2.2-rc.5"
47
+ },
48
+ "dsh": {
49
+ "bundle": {
50
+ "patch": "./cordis.patch.yml"
51
+ },
52
+ "client": {
53
+ "platform": "web",
54
+ "immediately": true,
55
+ "inject": [
56
+ "@deepseek-ai/dsh-client-ui-conversation"
57
+ ]
58
+ }
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ }
63
+ }
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="对话编辑">
2
+ <rect x="4" y="4" width="56" height="56" rx="14" fill="#2f6fed"/>
3
+ <path d="M16 22h32" stroke="#ffffff" stroke-width="4" stroke-linecap="round"/>
4
+ <path d="M16 32h20" stroke="#ffffff" stroke-width="4" stroke-linecap="round" opacity="0.85"/>
5
+ <path d="M16 42h14" stroke="#ffffff" stroke-width="4" stroke-linecap="round" opacity="0.7"/>
6
+ <circle cx="45" cy="42" r="11" fill="#2f6fed" stroke="#ffffff" stroke-width="3.5"/>
7
+ <path d="M40 42h10" stroke="#ffffff" stroke-width="3.5" stroke-linecap="round"/>
8
+ </svg>