desky-agent 0.3.9 → 0.3.10

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/electron/main.js CHANGED
@@ -17,6 +17,32 @@ const { Daemon, log } = require('../src/daemon');
17
17
  const autostart = require('../src/autostart');
18
18
  const { trayPngs, trayKind } = require('./icons');
19
19
  const ICO = path.join(__dirname, '..', 'assets', 'clawd.ico');
20
+ /** Windows draws a window's taskbar icon from the Start menu shortcut that carries the window's AppUserModelID.
21
+ * An old install left "Electron.lnk" with our ID and no icon, so the taskbar showed Electron: drop shortcuts with
22
+ * our ID that are not ours, and give ours the ID and the head. */
23
+ function winShortcuts() {
24
+ if (process.platform !== 'win32') return;
25
+ try {
26
+ const dir = path.join(process.env.APPDATA || '', 'Microsoft', 'Windows', 'Start Menu', 'Programs');
27
+ const ours = path.join(dir, 'Desky Agent.lnk');
28
+ for (const name of fs.readdirSync(dir)) {
29
+ const f = path.join(dir, name);
30
+ if (!name.toLowerCase().endsWith('.lnk') || f === ours) continue;
31
+ let l;
32
+ try { l = shell.readShortcutLink(f); } catch (e) { continue; }
33
+ if (l.appUserModelId === 'desk.clawd.app') { fs.rmSync(f, { force: true }); log('прибрав старий ярлик ' + name); }
34
+ }
35
+ const want = { target: process.execPath, cwd: path.dirname(process.execPath), icon: ICO, iconIndex: 0,
36
+ appUserModelId: 'desk.clawd.app', description: 'Desky Agent' };
37
+ let have = null;
38
+ try { have = shell.readShortcutLink(ours); } catch (e) {}
39
+ if (!have || have.appUserModelId !== want.appUserModelId || have.icon !== ICO
40
+ || path.resolve(have.target) !== path.resolve(want.target)) {
41
+ shell.writeShortcutLink(ours, have ? 'replace' : 'create', want);
42
+ }
43
+ } catch (e) { log('ярлик у меню «Пуск»: ' + e.message); }
44
+ }
45
+
20
46
  /** The app's own icon for the window and the taskbar (the head, all sizes); the tray keeps its live state icons. */
21
47
  function appIcon() {
22
48
  const img = nativeImage.createFromPath(process.platform === 'win32' ? ICO : path.join(__dirname, '..', 'assets', 'clawd.png'));
@@ -58,6 +84,7 @@ if (!app.requestSingleInstanceLock()) {
58
84
 
59
85
  async function boot() {
60
86
  if (MAC && app.dock) app.dock.hide();
87
+ winShortcuts();
61
88
  if (!quietLaunch(process.argv) || process.argv.includes('--login')) paths.markStopped(false);
62
89
  menu();
63
90
 
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawd-desk",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "chip": "esp32s3",
5
5
  "board": "waveshare-esp32-s3-zero",
6
6
  "flash_size": "4MB",
@@ -27,7 +27,7 @@
27
27
  "file": "firmware.bin",
28
28
  "address": "0x10000",
29
29
  "size": 339200,
30
- "sha256": "fb4ad11378b8599b03013f1f1582ea3168d40e1722d2d9045116b9cfe1443add"
30
+ "sha256": "967dcce750a045b7619ce8d190ff559907b81a333a9df6a9f372547c04860d0a"
31
31
  }
32
32
  ]
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desky-agent",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Desky Agent: Desky, a desk robot that acts out what Claude Code or Codex is doing. Tray app, hooks and installer in one npx command",
5
5
  "keywords": [
6
6
  "claude-code",