@cmdless/ui-runtime 0.0.0 → 0.0.4
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/LICENSE +21 -0
- package/README.md +11 -34
- package/out/main/bin.js +57 -0
- package/out/main/index.js +3369 -0
- package/out/preload/index.mjs +6 -0
- package/package.json +37 -7
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { cmdlessIPC, createElectronIPC } from "@cmdless/ui-sdk";
|
|
2
|
+
import { ipcRenderer, contextBridge } from "electron";
|
|
3
|
+
const ipc = cmdlessIPC.createClient(createElectronIPC(ipcRenderer));
|
|
4
|
+
const cmdless = { ipc };
|
|
5
|
+
contextBridge.exposeInMainWorld("cmdless", cmdless);
|
|
6
|
+
ipc.listen();
|
package/package.json
CHANGED
|
@@ -1,10 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmdless/ui-runtime",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
3
|
+
"description": "Runtime that wraps Electron convenience UI.",
|
|
4
|
+
"version": "0.0.4",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Fluttershy",
|
|
9
|
+
"url": "https://github.com/Fluttershy"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/cmdless/electron.git"
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"ui-runtime": "./out/main/bin.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"out/",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"prebuild": "rimraf dist node_modules/.tmp",
|
|
25
|
+
"build": "electron-vite build",
|
|
26
|
+
"test": "node ../../scripts/run-tests.mjs"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@modelcontextprotocol/sdk": "1.30.0",
|
|
30
|
+
"commander": "15.0.0",
|
|
31
|
+
"@electron-toolkit/utils": "4.0.0",
|
|
32
|
+
"@cmdless/ui-sdk": "0.0.4",
|
|
33
|
+
"@cmdless/ensure-electron": "0.0.6"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"electron": "43.3.0",
|
|
37
|
+
"electron-vite": "^5.0.0",
|
|
38
|
+
"vite": "^7.3.6"
|
|
39
|
+
}
|
|
10
40
|
}
|