@jayyuen66/dsh-plugin-shared 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/package.json ADDED
@@ -0,0 +1,146 @@
1
+ {
2
+ "name": "@jayyuen66/dsh-plugin-shared",
3
+ "version": "0.1.0",
4
+ "description": "dsh 自研插件的共享工具库:tool 事件流记账扫描 + webServer HTTP 样板(sendJson/CORS/CSRF/body 限制)+ 卡片 apply 骨架 + 项目键派生 + 代理对安全截断。作为库包被 import,不由用户启用",
5
+ "license": "MIT",
6
+ "author": "JayYuen",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/JayYuen666/dsh-plugin-shared.git"
10
+ },
11
+ "files": [
12
+ "icon.svg",
13
+ "dist",
14
+ "config/*.json",
15
+ "config/*.ts"
16
+ ],
17
+ "type": "module",
18
+ "main": "dist/index.js",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ },
24
+ "./lib/http": {
25
+ "types": "./dist/types/http.d.ts",
26
+ "default": "./dist/http.js"
27
+ },
28
+ "./lib/tool-events": {
29
+ "types": "./dist/types/tool-events.d.ts",
30
+ "default": "./dist/tool-events.js"
31
+ },
32
+ "./lib/card-apply": {
33
+ "types": "./dist/types/card-apply.d.ts",
34
+ "default": "./dist/card-apply.js"
35
+ },
36
+ "./lib/project-key": {
37
+ "types": "./dist/types/project-key.d.ts",
38
+ "default": "./dist/project-key.js"
39
+ },
40
+ "./package.json": "./package.json",
41
+ "./lib/locale": {
42
+ "types": "./dist/types/locale.d.ts",
43
+ "default": "./dist/locale.js"
44
+ },
45
+ "./lib/lesson-bus": {
46
+ "types": "./dist/types/lesson-bus.d.ts",
47
+ "default": "./dist/lesson-bus.js"
48
+ },
49
+ "./lib/text": {
50
+ "types": "./dist/types/text.d.ts",
51
+ "default": "./dist/text.js"
52
+ },
53
+ "./lib/record": {
54
+ "types": "./dist/types/record.d.ts",
55
+ "default": "./dist/record.js"
56
+ },
57
+ "./lib/errors": {
58
+ "types": "./dist/types/errors.d.ts",
59
+ "default": "./dist/errors.js"
60
+ },
61
+ "./lib/jsonl": {
62
+ "types": "./dist/types/jsonl.d.ts",
63
+ "default": "./dist/jsonl.js"
64
+ },
65
+ "./lib/trust": {
66
+ "types": "./dist/types/trust.d.ts",
67
+ "default": "./dist/trust.js"
68
+ },
69
+ "./lib/job-outcome": {
70
+ "types": "./dist/types/job-outcome.d.ts",
71
+ "default": "./dist/job-outcome.js"
72
+ },
73
+ "./lib/canonicalize-region-paths": {
74
+ "types": "./dist/types/canonicalize-region-paths.d.ts",
75
+ "default": "./dist/canonicalize-region-paths.js"
76
+ },
77
+ "./config/oxlint": {
78
+ "types": "./dist/types/config/oxlint.base.d.ts",
79
+ "default": "./dist/config/oxlint.base.js"
80
+ },
81
+ "./config/vitest.base": {
82
+ "types": "./dist/types/config/vitest.base.d.ts",
83
+ "default": "./dist/config/vitest.base.js"
84
+ },
85
+ "./config/*": "./config/*"
86
+ },
87
+ "publishConfig": {
88
+ "access": "public",
89
+ "registry": "https://registry.npmjs.org"
90
+ },
91
+ "dependencies": {
92
+ "@deepseek-ai/dsh-output-retention": "0.2.0-rc.2"
93
+ },
94
+ "devDependencies": {
95
+ "@deepseek-ai/cordis": "4.0.4",
96
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.2",
97
+ "@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
98
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
99
+ "@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
+ "@types/node": "26.6.3",
104
+ "@vitest/coverage-v8": "5.0.2",
105
+ "eslint-plugin-sonarjs": "4.2.2",
106
+ "oxfmt": "0.71.0",
107
+ "oxlint": "1.86.0",
108
+ "oxlint-tsgolint": "7.0.2003",
109
+ "rolldown": "1.2.11",
110
+ "typescript": "7.0.2",
111
+ "vite": "8.3.1",
112
+ "vitest": "5.0.2"
113
+ },
114
+ "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"
119
+ },
120
+ "peerDependenciesMeta": {
121
+ "eslint-plugin-sonarjs": {
122
+ "optional": true
123
+ },
124
+ "oxlint": {
125
+ "optional": true
126
+ },
127
+ "vitest": {
128
+ "optional": true
129
+ },
130
+ "@deepseek-ai/dsh": {
131
+ "optional": true
132
+ }
133
+ },
134
+ "icon": "icon.svg",
135
+ "engines": {
136
+ "dsh": ">=0.2.0-rc.2"
137
+ },
138
+ "scripts": {
139
+ "build": "node build-host.mjs && node build-config.mjs && tsc -p tsconfig.build.json && tsc -p tsconfig.build.config.json",
140
+ "typecheck": "tsc --noEmit -p tsconfig.json",
141
+ "lint": "oxlint .",
142
+ "test": "vitest run --coverage",
143
+ "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 ."
145
+ }
146
+ }