@konnga/dsh-hud 0.9.0 → 0.9.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.en.md +179 -0
- package/README.md +105 -68
- package/cordis.patch.yml +1 -1
- package/docs/images/capsules.webp +0 -0
- package/docs/images/image-diff.webp +0 -0
- package/docs/images/pill-tip.webp +0 -0
- package/lib/client.js +5059 -4365
- package/lib/client.js.map +1 -0
- package/lib/host/git.js +188 -0
- package/lib/host/image.js +265 -0
- package/lib/host/index.js +90 -0
- package/lib/host/parse.js +297 -0
- package/lib/host/readers.js +458 -0
- package/lib/host/rpc.js +317 -0
- package/lib/host/services.js +124 -0
- package/lib/host/session.js +1009 -0
- package/lib/host/types.js +12 -0
- package/package.json +30 -9
- package/lib/index.js +0 -2169
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 宿主半的**线路契约**:这些 interface 描述 `src/host` 各模块之间、以及宿主半与
|
|
3
|
+
* 浏览器半之间传递的数据形状。
|
|
4
|
+
*
|
|
5
|
+
* 为什么集中在一个文件:`parse`(解析)、`git`(调用)、`image`、`readers`、`rpc`
|
|
6
|
+
* 与 `session` 交叉引用同一批形状(status / diff / 提交 / 会话条目),分散定义会让
|
|
7
|
+
* “浏览器半读到的字段”散落在六个文件里;集中之后,字段漂移一眼可见。
|
|
8
|
+
*
|
|
9
|
+
* 本文件**只有类型、没有运行时值**:`import type` 会被 tsc 完全抹掉,产物只是一个
|
|
10
|
+
* 空的 `lib/host/types.js`,不引入任何运行时依赖。
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnga/dsh-hud",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "DeepSeek Harness 的只读工作区 Git 面板:分支、ahead/behind、改动清单与差异,外加「这个会话改过哪些文件、审到哪了、跑了什么工具」。A read-only workspace Git panel for DeepSeek Harness — branch, changed files, diffs, plus per-session change attribution, review progress, and tool activity.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
6
|
+
"packageManager": "pnpm@11.28.5",
|
|
7
|
+
"main": "lib/host/index.js",
|
|
7
8
|
"exports": {
|
|
8
|
-
".": "./lib/index.js",
|
|
9
|
+
".": "./lib/host/index.js",
|
|
9
10
|
"./client": "./lib/client.js",
|
|
10
11
|
"./package.json": "./package.json"
|
|
11
12
|
},
|
|
@@ -13,13 +14,18 @@
|
|
|
13
14
|
"lib",
|
|
14
15
|
"cordis.patch.yml",
|
|
15
16
|
"README.md",
|
|
17
|
+
"README.en.md",
|
|
16
18
|
"LICENSE",
|
|
17
19
|
"docs/images"
|
|
18
20
|
],
|
|
19
21
|
"scripts": {
|
|
20
|
-
"test": "node --test test/*.test.mjs",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
22
|
+
"test": "tsc -p tsconfig.json && tsc -p tsconfig.host.json --noEmit && node --test test/*.test.mjs",
|
|
23
|
+
"build": "tsc -p tsconfig.host.json && rolldown -c rolldown.config.mjs",
|
|
24
|
+
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.host.json --noEmit",
|
|
25
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.mjs\" \"scripts/**/*.mjs\" \"rolldown.config.mjs\"",
|
|
26
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.mjs\" \"scripts/**/*.mjs\" \"rolldown.config.mjs\"",
|
|
27
|
+
"tag": "node scripts/check-release.mjs --create",
|
|
28
|
+
"prepublishOnly": "pnpm run build && pnpm test && node scripts/check-release.mjs"
|
|
23
29
|
},
|
|
24
30
|
"keywords": [
|
|
25
31
|
"dsh",
|
|
@@ -33,7 +39,15 @@
|
|
|
33
39
|
"review",
|
|
34
40
|
"sidebar",
|
|
35
41
|
"floating-panel",
|
|
36
|
-
"web-gui"
|
|
42
|
+
"web-gui",
|
|
43
|
+
"deepseek",
|
|
44
|
+
"diff",
|
|
45
|
+
"image-diff",
|
|
46
|
+
"session-timer",
|
|
47
|
+
"prompt-history",
|
|
48
|
+
"review-progress",
|
|
49
|
+
"tool-activity",
|
|
50
|
+
"dock"
|
|
37
51
|
],
|
|
38
52
|
"license": "MIT",
|
|
39
53
|
"author": "konnga",
|
|
@@ -69,13 +83,13 @@
|
|
|
69
83
|
},
|
|
70
84
|
"peerDependencies": {
|
|
71
85
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
72
|
-
"react": "^18.2.0",
|
|
73
86
|
"@deepseek-ai/dsh-client-connection": "*",
|
|
74
87
|
"@deepseek-ai/dsh-client-locale": "*",
|
|
75
88
|
"@deepseek-ai/dsh-client-ui-conversation": "*",
|
|
76
89
|
"@deepseek-ai/dsh-client-ui-layout": "*",
|
|
77
90
|
"@deepseek-ai/dsh-client-ui-renderer": "*",
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-session": "*"
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-session": "*",
|
|
92
|
+
"react": "^18.2.0"
|
|
79
93
|
},
|
|
80
94
|
"peerDependenciesMeta": {
|
|
81
95
|
"@deepseek-ai/dsh-client-connection": {
|
|
@@ -96,5 +110,12 @@
|
|
|
96
110
|
"@deepseek-ai/dsh-client-ui-session": {
|
|
97
111
|
"optional": true
|
|
98
112
|
}
|
|
113
|
+
},
|
|
114
|
+
"devDependencies": {
|
|
115
|
+
"@types/node": "^22.20.5",
|
|
116
|
+
"@types/react": "^18.3.31",
|
|
117
|
+
"prettier": "^3.9.10",
|
|
118
|
+
"rolldown": "^1.2.14",
|
|
119
|
+
"typescript": "^7.0.2"
|
|
99
120
|
}
|
|
100
121
|
}
|