@jetcrab/pi-desk-ctx 1.0.0 → 1.0.1-dev.9002
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 +10 -4
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/JetCrab/pi-desk.git",
|
|
6
6
|
"directory": "plugins/pi-desk-ctx"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.1-dev.9002",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"registry": "https://registry.npmjs.org",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@jetcrab/pi-desk-sdk": "^1.0.
|
|
25
|
+
"@jetcrab/pi-desk-sdk": "^1.0.1-dev.9002"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@earendil-works/pi-agent-core": "*",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"typescript": "^5"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
|
-
"pi-package"
|
|
45
|
+
"pi-package",
|
|
46
|
+
"pi-desk-plugin"
|
|
46
47
|
],
|
|
47
48
|
"pi": {
|
|
48
49
|
"extensions": [
|
|
@@ -50,7 +51,12 @@
|
|
|
50
51
|
]
|
|
51
52
|
},
|
|
52
53
|
"piDesk": {
|
|
53
|
-
"entry": "./dist/pi-desk.js"
|
|
54
|
+
"entry": "./dist/pi-desk.js",
|
|
55
|
+
"i18n": {
|
|
56
|
+
"zh-CN": {
|
|
57
|
+
"description": "管理会话上下文,查看占用并按需忽略消息,减少不必要的上下文消耗。"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
54
60
|
},
|
|
55
61
|
"scripts": {
|
|
56
62
|
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && node -e \"const fs=require('node:fs');for(const name of fs.readdirSync('dist'))if(name.startsWith('browser')&&['.js','.d.ts','.js.map'].some(ext=>name.endsWith(ext)))fs.rmSync('dist/'+name,{force:true})\" && esbuild src/browser-entry.ts --bundle --splitting --format=esm --platform=browser --target=es2022 --minify --define:process.env.NODE_ENV='production' --external:react --external:react/jsx-runtime --external:react/jsx-dev-runtime --external:react-dom --external:react-dom/client --external:@jetcrab/pi-desk-sdk/react/base --external:@jetcrab/pi-desk-sdk/react/markdown --outdir=dist/browser --entry-names=entry --chunk-names=chunks/[name]-[hash]",
|