@pixelbyte-software/pixcode 1.38.1 → 1.38.2
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.html
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<!-- Prevent zoom on iOS -->
|
|
37
37
|
<meta name="format-detection" content="telephone=no" />
|
|
38
|
-
<script type="module" crossorigin src="/assets/index-
|
|
38
|
+
<script type="module" crossorigin src="/assets/index-BJiAbLzU.js"></script>
|
|
39
39
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-D7WwDXvu.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="/assets/vendor-codemirror-CzYAOTxS.js">
|
|
41
41
|
<link rel="modulepreload" crossorigin href="/assets/vendor-xterm-CJZjLICi.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelbyte-software/pixcode",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.2",
|
|
4
4
|
"description": "Self-hosted AI coding agent control room for Claude Code, Cursor CLI, OpenAI Codex, Gemini CLI, Qwen Code, and OpenCode with chat, files, shell, Git, orchestration, API keys, Telegram, MCP, plugins, themes, and desktop/server deployment.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist-server/server/index.js",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
|
|
3
|
+
const mainPath = 'desktop/electron/main.cjs';
|
|
4
|
+
const preloadPath = 'desktop/electron/preload.cjs';
|
|
5
|
+
const localNotificationsPath = 'src/utils/localNotifications.ts';
|
|
6
|
+
const globalsPath = 'src/types/global.d.ts';
|
|
7
|
+
|
|
8
|
+
function assert(condition, message) {
|
|
9
|
+
if (!condition) {
|
|
10
|
+
console.error(`FAIL: ${message}`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const main = fs.readFileSync(mainPath, 'utf8');
|
|
16
|
+
const localNotifications = fs.readFileSync(localNotificationsPath, 'utf8');
|
|
17
|
+
const globals = fs.readFileSync(globalsPath, 'utf8');
|
|
18
|
+
|
|
19
|
+
assert(fs.existsSync(preloadPath), 'desktop preload bridge exists');
|
|
20
|
+
const preload = fs.readFileSync(preloadPath, 'utf8');
|
|
21
|
+
|
|
22
|
+
assert(main.includes("preload: path.join(__dirname, 'preload.cjs')"), 'BrowserWindow loads the desktop preload');
|
|
23
|
+
assert(main.includes("ipcMain.handle('pixcode:desktop-notification'"), 'main process handles desktop notification IPC');
|
|
24
|
+
assert(preload.includes('contextBridge.exposeInMainWorld'), 'preload exposes a safe renderer bridge');
|
|
25
|
+
assert(preload.includes('pixcodeDesktop'), 'preload exposes window.pixcodeDesktop');
|
|
26
|
+
assert(preload.includes("ipcRenderer.invoke('pixcode:desktop-notification'"), 'preload invokes desktop notification IPC');
|
|
27
|
+
assert(localNotifications.includes('window.pixcodeDesktop?.notify'), 'local notifications try the desktop native bridge first');
|
|
28
|
+
assert(globals.includes('pixcodeDesktop?:'), 'global window type declares the desktop bridge');
|
|
29
|
+
|
|
30
|
+
console.log('desktop native notification bridge smoke passed');
|