@jayyuen66/dsh-plugin-shared 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "name": "@jayyuen66/dsh-plugin-shared",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "dsh 自研插件的共享工具库:tool 事件流记账扫描 + webServer HTTP 样板(sendJson/CORS/CSRF/body 限制)+ 卡片 apply 骨架 + 项目键派生 + 代理对安全截断。作为库包被 import,不由用户启用",
5
+ "keywords": [
6
+ "cordis",
7
+ "csrf",
8
+ "dsh",
9
+ "plugin",
10
+ "tool-events",
11
+ "webserver"
12
+ ],
13
+ "homepage": "https://github.com/JayYuen666/dsh-plugin-shared#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/JayYuen666/dsh-plugin-shared/issues"
16
+ },
5
17
  "license": "MIT",
6
18
  "author": "JayYuen",
7
19
  "repository": {
@@ -12,10 +24,12 @@
12
24
  "icon.svg",
13
25
  "dist",
14
26
  "config/*.json",
15
- "config/*.ts"
27
+ "README.zh.md"
16
28
  ],
17
29
  "type": "module",
18
- "main": "dist/index.js",
30
+ "sideEffects": false,
31
+ "main": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
19
33
  "exports": {
20
34
  ".": {
21
35
  "types": "./dist/index.d.ts",
@@ -37,7 +51,6 @@
37
51
  "types": "./dist/types/project-key.d.ts",
38
52
  "default": "./dist/project-key.js"
39
53
  },
40
- "./package.json": "./package.json",
41
54
  "./lib/locale": {
42
55
  "types": "./dist/types/locale.d.ts",
43
56
  "default": "./dist/locale.js"
@@ -82,24 +95,27 @@
82
95
  "types": "./dist/types/config/vitest.base.d.ts",
83
96
  "default": "./dist/config/vitest.base.js"
84
97
  },
85
- "./config/*": "./config/*"
98
+ "./config/tsconfig.base.json": "./config/tsconfig.base.json",
99
+ "./config/tsconfig.client.base.json": "./config/tsconfig.client.base.json",
100
+ "./package.json": "./package.json"
86
101
  },
87
102
  "publishConfig": {
88
103
  "access": "public",
89
104
  "registry": "https://registry.npmjs.org"
90
105
  },
91
106
  "dependencies": {
92
- "@deepseek-ai/dsh-output-retention": "0.2.0-rc.2"
107
+ "@deepseek-ai/cordis": "~4.0.4",
108
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
109
+ "@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
110
+ "@deepseek-ai/dsh-output-retention": "0.2.0-rc.2",
111
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2",
112
+ "@deepseek-ai/dsh-shell": "0.2.0-rc.2",
113
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.2"
93
114
  },
94
115
  "devDependencies": {
95
- "@deepseek-ai/cordis": "4.0.4",
96
116
  "@deepseek-ai/dsh-brand": "0.2.0-rc.2",
97
- "@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
98
117
  "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
99
118
  "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
100
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
101
- "@deepseek-ai/dsh-shell": "0.2.0-rc.2",
102
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
103
119
  "@types/node": "26.6.3",
104
120
  "@vitest/coverage-v8": "5.0.2",
105
121
  "eslint-plugin-sonarjs": "4.2.2",
@@ -112,35 +128,26 @@
112
128
  "vitest": "5.0.2"
113
129
  },
114
130
  "peerDependencies": {
115
- "@deepseek-ai/dsh": "^0.2.0-rc.2",
116
- "eslint-plugin-sonarjs": ">=4.2.2",
117
- "oxlint": ">=1.86.0",
118
- "vitest": ">=5.0.2"
131
+ "@deepseek-ai/dsh": "^0.2.0-rc.2"
119
132
  },
120
133
  "peerDependenciesMeta": {
121
- "eslint-plugin-sonarjs": {
122
- "optional": true
123
- },
124
- "oxlint": {
125
- "optional": true
126
- },
127
- "vitest": {
128
- "optional": true
129
- },
130
134
  "@deepseek-ai/dsh": {
131
135
  "optional": true
132
136
  }
133
137
  },
134
138
  "icon": "icon.svg",
135
139
  "engines": {
136
- "dsh": ">=0.2.0-rc.2"
140
+ "dsh": ">=0.2.0-rc.2",
141
+ "node": "^22.19.0 || >=24.0.0"
137
142
  },
138
143
  "scripts": {
144
+ "prebuild": "node build-clean.mjs",
139
145
  "build": "node build-host.mjs && node build-config.mjs && tsc -p tsconfig.build.json && tsc -p tsconfig.build.config.json",
140
146
  "typecheck": "tsc --noEmit -p tsconfig.json",
141
147
  "lint": "oxlint .",
142
148
  "test": "vitest run --coverage",
143
149
  "check": "npm run --loglevel=warn typecheck && npm run --loglevel=warn lint && npm run --loglevel=warn build && npm run --loglevel=warn test && npm run --loglevel=warn fmt:check",
144
- "fmt:check": "oxfmt --check ."
150
+ "fmt:check": "oxfmt --check .",
151
+ "fmt": "oxfmt ."
145
152
  }
146
153
  }