@eum-agent/keyboard-shortcuts 0.0.0-stage → 1.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/dist/index.js +13 -0
- package/package.json +51 -3
- package/ui/ui.js +1461 -0
- package/README.md +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
/** Owns this optional client feature and its browser activation. */
|
|
5
|
+
const plugin = {
|
|
6
|
+
name: "@eum-agent/keyboard-shortcuts",
|
|
7
|
+
apply(ctx) {
|
|
8
|
+
const module = fileURLToPath(new URL("../ui/ui.js", import.meta.url));
|
|
9
|
+
if (existsSync(module)) ctx.client.registerUi({ module });
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { plugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eum-agent/keyboard-shortcuts",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
"displayName": {
|
|
4
|
+
"en-US": "Keyboard Shortcuts",
|
|
5
|
+
"zh-CN": "快捷键"
|
|
6
|
+
},
|
|
7
|
+
"version": "1.1.0",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"description": "Application shortcuts and global keybinding management",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"ui"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"zod": "^4.4.3",
|
|
22
|
+
"i18next": "^26.4.1"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@eum-agent/plugin": "1.1.0",
|
|
26
|
+
"@types/react": "^19.2.18",
|
|
27
|
+
"@types/react-dom": "^19.2.5",
|
|
28
|
+
"react": "^19.2.0",
|
|
29
|
+
"react-dom": "^19.2.0",
|
|
30
|
+
"vite": "^8.2.2",
|
|
31
|
+
"@eum-agent/protocol": "1.0.0",
|
|
32
|
+
"@eum-agent/kernel": "1.0.0",
|
|
33
|
+
"@types/ws": "^8.18.1",
|
|
34
|
+
"@testing-library/react": "^16.3.3",
|
|
35
|
+
"@testing-library/user-event": "^14.6.6",
|
|
36
|
+
"zustand": "^5.0.15",
|
|
37
|
+
"react-i18next": "^17.0.13",
|
|
38
|
+
"lucide-react": "^1.40.0",
|
|
39
|
+
"@types/semver": "7.8.0"
|
|
40
|
+
},
|
|
41
|
+
"yaoguang": {
|
|
42
|
+
"kind": "extension",
|
|
43
|
+
"description": {
|
|
44
|
+
"en-US": "Application shortcuts and global keybinding management",
|
|
45
|
+
"zh-CN": "应用快捷键配置与全局按键管理"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {}
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsdown && vite build",
|
|
51
|
+
"test": "vitest run",
|
|
52
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.ui.json"
|
|
53
|
+
}
|
|
6
54
|
}
|