tryharness 0.7.2 → 0.7.3

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/lib/desktop.mjs +6 -1
  2. package/package.json +5 -5
package/lib/desktop.mjs CHANGED
@@ -80,7 +80,12 @@ export function canShowDesktop({ env = process.env, platform = process.platform
80
80
 
81
81
  export function openDesktop({ target, platform = process.platform, execute = run }) {
82
82
  if (platform === "darwin") {
83
- const opened = execute("open", [target]);
83
+ // Just after the old copy quits, LaunchServices can still refuse (error -600) for a moment.
84
+ let opened = execute("open", [target]);
85
+ for (let i = 0; i < 20 && !opened.ok && /-600/.test(opened.stderr); i++) {
86
+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 250);
87
+ opened = execute("open", [target]);
88
+ }
84
89
  if (!opened.ok) throw new Error(opened.stderr.trim() || opened.error || "open failed");
85
90
  return;
86
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tryharness",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Harness Relay: the daemon that turns the agents on this machine into your personal swarm. Memory, history, and work handed between any of them.",
5
5
  "bin": {
6
6
  "tryharness": "cli.mjs"
@@ -35,9 +35,9 @@
35
35
  "onnxruntime-web": "1.26.0-dev.20260416-b7804b056c"
36
36
  },
37
37
  "optionalDependencies": {
38
- "tryharness-desktop-darwin-arm64": "0.7.2",
39
- "tryharness-desktop-darwin-x64": "0.7.2",
40
- "tryharness-desktop-linux-x64": "0.7.2",
41
- "tryharness-desktop-win32-x64": "0.7.2"
38
+ "tryharness-desktop-darwin-arm64": "0.7.3",
39
+ "tryharness-desktop-darwin-x64": "0.7.3",
40
+ "tryharness-desktop-linux-x64": "0.7.3",
41
+ "tryharness-desktop-win32-x64": "0.7.3"
42
42
  }
43
43
  }