dsh-nav-fold 0.0.0-stage → 0.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.
package/lib/index.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * dsh-nav-fold · 宿主半
3
+ *
4
+ * 本插件没有任何 Host 侧行为:折叠完全发生在浏览器端。
5
+ * 这个入口存在的意义只有一个——让包能被 cordis 挂载,从而让
6
+ * dsh-client-modules 的 dsh.client 扫描收录我们的浏览器半。
7
+ */
8
+ export const name = "nav-fold";
9
+
10
+ /** 挂载即完成,不注册任何 Host 服务、不写任何文件。 */
11
+ export function apply() {}
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
2
  "name": "dsh-nav-fold",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "nav-fold 导航折叠 · 把 DSH 左侧栏顶部的功能入口折叠成图标网格或收起(三态 + 三种控件模型,兼容 rc.1 扁平行与 rc.2+ 包裹行)",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": {
9
+ "default": "./lib/index.js"
10
+ },
11
+ "./client": {
12
+ "default": "./lib/client.js"
13
+ },
14
+ "./package.json": "./package.json",
15
+ "./icon": "./icon.svg"
16
+ },
17
+ "files": [
18
+ "lib",
19
+ "cordis.patch.yml",
20
+ "README.md",
21
+ "LICENSE",
22
+ "CHANGELOG.md",
23
+ "icon.svg"
24
+ ],
25
+ "dsh": {
26
+ "engines": {
27
+ "dsh": ">=0.2.2-rc.1 <0.3.0"
28
+ },
29
+ "bundle": {
30
+ "patch": "./cordis.patch.yml"
31
+ },
32
+ "client": {
33
+ "platform": "web",
34
+ "inject": [
35
+ "@deepseek-ai/dsh-client-ui-renderer",
36
+ "@deepseek-ai/dsh-client-ui-sidebar"
37
+ ]
38
+ }
39
+ },
40
+ "peerDependencies": {
41
+ "@deepseek-ai/dsh": ">=0.2.2-rc.1 <0.3.0",
42
+ "react": "^18.2.0"
43
+ },
44
+ "scripts": {
45
+ "test": "node --test test/*.test.mjs",
46
+ "prepublishOnly": "npm test"
47
+ },
48
+ "license": "MIT",
49
+ "author": "TIPE <tipe2587@gmail.com>",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "git+https://github.com/TIPE2587/dsh-nav-fold.git"
53
+ },
54
+ "homepage": "https://github.com/TIPE2587/dsh-nav-fold#readme",
55
+ "bugs": {
56
+ "url": "https://github.com/TIPE2587/dsh-nav-fold/issues"
57
+ },
58
+ "keywords": [
59
+ "dsh",
60
+ "dsh-plugin",
61
+ "deepseek-harness",
62
+ "sidebar",
63
+ "navigation",
64
+ "fold"
65
+ ],
66
+ "engines": {
67
+ "node": ">=22"
68
+ }
69
+ }