harness-for-rea 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/dist/main.js +14 -6
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -95782,8 +95782,8 @@ function lockDataFolder(dataDir, app, pid = process.pid, isAlive = alive) {
95782
95782
  }
95783
95783
  var ATTEMPTS = 20;
95784
95784
  var PAUSE_MS = 50;
95785
- var UNREADABLE_STALE_MS = 2000;
95786
- var GUARD_STALE_MS = 5000;
95785
+ var UNREADABLE_STALE_MS = 5000;
95786
+ var GUARD_STALE_MS = 1e4;
95787
95787
  function pause() {
95788
95788
  Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, PAUSE_MS);
95789
95789
  }
@@ -129436,8 +129436,11 @@ class SandboxService {
129436
129436
  this.onChange = onChange;
129437
129437
  }
129438
129438
  set(patch) {
129439
- this.current = { ...this.current, ...patch };
129440
- this.onChange(this.current);
129439
+ const next = { ...this.current, ...patch };
129440
+ const changed = JSON.stringify(next) !== JSON.stringify(this.current);
129441
+ this.current = next;
129442
+ if (changed)
129443
+ this.onChange(this.current);
129441
129444
  return this.current;
129442
129445
  }
129443
129446
  async status() {
@@ -129489,9 +129492,14 @@ class LoginService {
129489
129492
  error: this.error
129490
129493
  };
129491
129494
  }
129495
+ pushed = "";
129492
129496
  changed() {
129493
129497
  const s = this.current();
129494
- this.onChange(s);
129498
+ const key = JSON.stringify(s);
129499
+ if (key !== this.pushed) {
129500
+ this.pushed = key;
129501
+ this.onChange(s);
129502
+ }
129495
129503
  return s;
129496
129504
  }
129497
129505
  async refresh() {
@@ -130363,7 +130371,7 @@ var package_default = {
130363
130371
  name: "harness-for-rea",
130364
130372
  productName: "Harness for REA",
130365
130373
  private: true,
130366
- version: "0.1.1",
130374
+ version: "0.1.2",
130367
130375
  description: "Desktop app where an OpenRouter orchestrator delegates deep analysis to a sandboxed Claude Code specialist.",
130368
130376
  license: "MIT",
130369
130377
  main: "./out/main/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-for-rea",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Terminal UI of Harness for REA: an orchestrator that delegates deep analysis to a sandboxed Claude Code specialist.",
5
5
  "license": "MIT",
6
6
  "type": "module",