dsh-code-ui 1.1.4 → 1.2.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.
Files changed (5) hide show
  1. package/README.md +120 -94
  2. package/lib/client.js +1780 -1319
  3. package/lib/index.js +746 -618
  4. package/package.json +81 -77
  5. package/README.en.md +0 -38
package/package.json CHANGED
@@ -1,77 +1,81 @@
1
- {
2
- "name": "dsh-code-ui",
3
- "version": "1.1.4",
4
- "description": "Cursor 风格的 AI 代码编辑器工作台插件(DSH):文件树、多标签页编辑、引用/备注/翻译、内嵌 AI 输入框、语法高亮",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "types": "lib/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./lib/types/index.d.ts",
11
- "default": "./lib/index.js"
12
- },
13
- "./client": {
14
- "types": "./lib/types/client/index.d.ts",
15
- "default": "./lib/client.js"
16
- },
17
- "./cordis.patch.yml": "./cordis.patch.yml",
18
- "./package.json": "./package.json"
19
- },
20
- "files": [
21
- "lib",
22
- "cordis.patch.yml",
23
- "README.md",
24
- "README.en.md",
25
- "LICENSE"
26
- ],
27
- "dsh": {
28
- "bundle": {
29
- "patch": "./cordis.patch.yml"
30
- },
31
- "client": {
32
- "inject": [
33
- "@deepseek-ai/dsh-client-runtime",
34
- "@deepseek-ai/dsh-client-ui-slots",
35
- "@deepseek-ai/dsh-client-ui-conversation",
36
- "@deepseek-ai/dsh-client-ui-settings",
37
- "@deepseek-ai/dsh-client-ui-theme"
38
- ],
39
- "platform": "web"
40
- }
41
- },
42
- "peerDependencies": {
43
- "@deepseek-ai/cordis": "^4.0.1",
44
- "@deepseek-ai/dsh-settings": "^0.1.0-rc.7",
45
- "react": "^18.2.0"
46
- },
47
- "peerDependenciesMeta": {
48
- "@deepseek-ai/dsh-settings": {
49
- "optional": true
50
- }
51
- },
52
- "dependencies": {
53
- "@deepseek-ai/schemastery": "^3.18.1"
54
- },
55
- "devDependencies": {
56
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.7",
57
- "@types/node": "^26.2.0",
58
- "@types/react": "~18.3.1",
59
- "react": "^18.3.1",
60
- "tsdown": "^0.22.14",
61
- "typescript": "^7.0.2"
62
- },
63
- "scripts": {},
64
- "publishConfig": {
65
- "registry": "https://registry.npmjs.org/"
66
- },
67
- "license": "MIT",
68
- "keywords": [
69
- "dsh",
70
- "deepseek-harness",
71
- "cursor",
72
- "editor",
73
- "code-ui",
74
- "plugin"
75
- ],
76
- "packageManager": "pnpm@11.23.0+sha512.f00082e5b283a199b74e079da28d155c008fe232f44c8a06ea7ddfa014ecf719fc362f790ecc67b28106ddac2afb24c49a9a079159da560b2ce7d1e98efd11af"
77
- }
1
+ {
2
+ "name": "dsh-code-ui",
3
+ "version": "1.2.0",
4
+ "description": "Cursor 风格的 AI 代码编辑器工作台插件(DSH):文件树、多标签页编辑、语法高亮、引用/翻译给 AI、右侧停靠/悬浮窗口双布局",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/soGoodayo/dsh-code-ui.git"
10
+ },
11
+ "homepage": "https://github.com/soGoodayo/dsh-code-ui#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/soGoodayo/dsh-code-ui/issues"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "default": "./lib/index.js"
18
+ },
19
+ "./client": {
20
+ "default": "./lib/client.js"
21
+ },
22
+ "./cordis.patch.yml": "./cordis.patch.yml",
23
+ "./package.json": "./package.json"
24
+ },
25
+ "files": [
26
+ "lib",
27
+ "cordis.patch.yml",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "dsh": {
32
+ "bundle": {
33
+ "patch": "./cordis.patch.yml"
34
+ },
35
+ "client": {
36
+ "inject": [
37
+ "@deepseek-ai/dsh-client-runtime",
38
+ "@deepseek-ai/dsh-client-ui-slots",
39
+ "@deepseek-ai/dsh-client-ui-conversation",
40
+ "@deepseek-ai/dsh-client-ui-settings",
41
+ "@deepseek-ai/dsh-client-ui-theme"
42
+ ],
43
+ "platform": "web"
44
+ }
45
+ },
46
+ "peerDependencies": {
47
+ "@deepseek-ai/cordis": "^4.0.1",
48
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.7",
49
+ "react": "^18.2.0"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "@deepseek-ai/dsh-settings": {
53
+ "optional": true
54
+ }
55
+ },
56
+ "dependencies": {
57
+ "@deepseek-ai/schemastery": "^3.18.1"
58
+ },
59
+ "devDependencies": {
60
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.7",
61
+ "@types/node": "^26.2.0",
62
+ "@types/react": "~18.3.1",
63
+ "react": "^18.3.1",
64
+ "tsdown": "^0.22.14",
65
+ "typescript": "^7.0.2"
66
+ },
67
+ "scripts": {},
68
+ "publishConfig": {
69
+ "registry": "https://registry.npmjs.org/"
70
+ },
71
+ "license": "MIT",
72
+ "keywords": [
73
+ "dsh",
74
+ "deepseek-harness",
75
+ "cursor",
76
+ "editor",
77
+ "code-ui",
78
+ "plugin"
79
+ ],
80
+ "packageManager": "pnpm@11.23.0+sha512.f00082e5b283a199b74e079da28d155c008fe232f44c8a06ea7ddfa014ecf719fc362f790ecc67b28106ddac2afb24c49a9a079159da560b2ce7d1e98efd11af"
81
+ }
package/README.en.md DELETED
@@ -1,38 +0,0 @@
1
- # dsh-code-ui
2
-
3
- A **Cursor-style AI code editor** inside DeepSeek Harness (DSH): file tree, multi-tab editing, syntax highlighting, and "cite/translate a selection to AI".
4
-
5
- Bring the "read code, chat with AI" flow into DSH: a code workspace with an activity bar, file-tree sidebar, multi-tab editor, and an embedded AI input at the bottom.
6
-
7
- ## Install
8
-
9
- ```bash
10
- dsh plugin --profile web add dsh-code-ui
11
- ```
12
-
13
- Restart DSH, then click the floating **`Code UI`** / `default-ui` toggle at the top to enter the editor.
14
-
15
- ## Usage
16
-
17
- 1. Open the editor via the top `Code UI` toggle.
18
- 2. Open a file from the tree or the file picker.
19
- 3. Right-click a selection: copy / add note / translate / cite to AI.
20
- 4. Type in the bottom input (Ctrl+Enter to send); cited code is attached automatically.
21
- 5. Or say "read my cited code" and the AI will call the `get_referenced_snippets` tool.
22
-
23
- ## Layout
24
-
25
- ```
26
- dsh-code-ui/
27
- ├── package.json # dsh.bundle.patch / dsh.client manifest
28
- ├── lib/
29
- │ ├── index.js # Host: connection.rpc file/reference/note endpoints + tool
30
- │ └── client.js # Client: __ModuleLoader__ + editor UI
31
- └── cordis.patch.yml # bundle patch layer
32
- ```
33
-
34
- Hand-written JavaScript — no build step, `npm publish` directly.
35
-
36
- ## License
37
-
38
- MIT