saeeol 1.4.8 → 1.4.9

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.
Files changed (2) hide show
  1. package/desktop.js +9 -4
  2. package/package.json +2 -2
package/desktop.js CHANGED
@@ -127,17 +127,22 @@ async function main() {
127
127
  writeFileSync(join(appDir, "package.json"), '{"name":"fabulist-desktop"}')
128
128
  writeFileSync(join(appDir, "main.js"), `
129
129
  const { app, BrowserWindow } = require("electron")
130
+ let mainWindow = null
130
131
  function createWindow() {
131
- const win = new BrowserWindow({
132
+ mainWindow = new BrowserWindow({
132
133
  width: 1400, height: 900, minWidth: 800, minHeight: 600,
133
134
  title: "\uD30C\uBD88\uB9AC\uC2A4\uD2B8 \u2014 FABULIST",
134
135
  autoHideMenuBar: true,
136
+ show: false,
135
137
  webPreferences: { nodeIntegration: false, contextIsolation: true },
136
138
  })
137
- win.loadURL("http://127.0.0.1:${webPort}")
139
+ mainWindow.once("ready-to-show", () => mainWindow.show())
140
+ mainWindow.loadURL("http://127.0.0.1:${webPort}")
141
+ mainWindow.on("closed", () => { mainWindow = null })
138
142
  }
139
- app.whenReady().then(createWindow)
140
- app.on("window-all-closed", () => app.quit())
143
+ app.on("ready", createWindow)
144
+ app.on("window-all-closed", () => { /* keep running */ })
145
+ app.on("activate", () => { if (!mainWindow) createWindow() })
141
146
  `)
142
147
 
143
148
  // Remove ELECTRON_RUN_AS_NODE if set (prevents Electron from running as Node)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saeeol",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "AI agent engine for SAEEOL — CLI + Desktop in one package",
5
5
  "author": "byfabulist",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
22
22
  "postinstall": "node postinstall.js"
23
23
  },
24
24
  "optionalDependencies": {
25
- "saeeol-windows-x64": "1.4.5",
25
+ "saeeol-windows-x64": "1.4.8",
26
26
  "saeeol-windows-x64-baseline": "1.4.5",
27
27
  "saeeol-darwin-x64": "1.4.5",
28
28
  "saeeol-darwin-x64-baseline": "1.4.5",