@timurproko/a1 0.2.7-dev.1228 → 0.2.7-dev.1230

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.
@@ -1,4 +1,4 @@
1
- import { unwatchFile, watchFile } from "node:fs";
1
+ import { statSync } from "node:fs";
2
2
  import { resolveLaunchProfilePaths } from "../features/launch/profile-paths.js";
3
3
  import { resolveProductPaths } from "../foundation/lifecycle/paths.js";
4
4
  import { PRODUCT_IDENTITY } from "../product-identity.js";
@@ -19,18 +19,20 @@ export function createOwnedSettingsManager(options) {
19
19
  agentSettingLabelOverrides: { fullscreenCopyOnSelect: "Copy on select" },
20
20
  });
21
21
  }
22
- const SHARED_SETTINGS_POLL_MS = 250;
23
22
  /** Rereads the shared settings document whenever its stat changes; returns the stop. */
24
23
  export function watchSharedSettings(settings) {
25
- const file = settings.file;
26
- const listener = () => {
24
+ let last = "";
25
+ const poll = () => {
27
26
  try {
28
- settings.refresh();
27
+ const s = statSync(settings.file);
28
+ if (last !== (last = `${s.ino}:${s.mtimeMs}`))
29
+ settings.refresh();
29
30
  }
30
31
  catch {
31
32
  // Compatibility: an unreadable peer write resolves on the next stat change.
32
33
  }
33
34
  };
34
- watchFile(file, { interval: SHARED_SETTINGS_POLL_MS, persistent: false }, listener);
35
- return () => unwatchFile(file, listener);
35
+ poll();
36
+ const timer = setInterval(poll, 250).unref();
37
+ return () => clearInterval(timer);
36
38
  }
@@ -7,7 +7,7 @@
7
7
  "platform": "darwin",
8
8
  "architecture": "arm64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-30T07:58:45.715Z",
10
+ "builtAt": "2026-10-31T17:04:19.753Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
13
  "sha256": "a87eaaffcd986b624c8b044b756446cc1bdaf4334a1775b97820542fe34f9fb7",
@@ -9,7 +9,7 @@
9
9
  "architecture": "arm64",
10
10
  "target": "aarch64-apple-darwin",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-30T08:01:30.327Z",
12
+ "builtAt": "2026-10-31T17:06:07.880Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
15
  "sha256": "4e35835f3af4c0d9ae9582886f3a1f66d8a8bd306014d24af29e979ca504aed6",
@@ -7,7 +7,7 @@
7
7
  "platform": "darwin",
8
8
  "architecture": "x64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-30T07:58:54.109Z",
10
+ "builtAt": "2026-10-31T17:04:33.467Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
13
  "sha256": "783a65f0de287a1c02cd5429dbe97bc8633f4cc8a7b92e3e961180b9bdcff814",
@@ -9,7 +9,7 @@
9
9
  "architecture": "x64",
10
10
  "target": "x86_64-apple-darwin",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-30T08:03:39.902Z",
12
+ "builtAt": "2026-10-31T17:07:58.103Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
15
  "sha256": "7161d3bde5cf9d1caf2978fe623b6d26dbdc257093a48b2870d510804563a1b3",
@@ -7,7 +7,7 @@
7
7
  "platform": "linux",
8
8
  "architecture": "x64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-30T07:58:30.937Z",
10
+ "builtAt": "2026-10-31T17:03:56.410Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
13
  "sha256": "118e5954e3864672bd8482ab7edf419cb27dcdf2533720316979b7f5cc5a53a5",
@@ -9,7 +9,7 @@
9
9
  "architecture": "x64",
10
10
  "target": "x86_64-unknown-linux-gnu",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-30T08:01:43.730Z",
12
+ "builtAt": "2026-10-31T17:06:59.851Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
15
  "sha256": "41212856c811ddef6e918e96b49dc957b2d49946d7ef5494962db8d70937d760",
@@ -7,10 +7,10 @@
7
7
  "platform": "win32",
8
8
  "architecture": "x64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-30T07:59:01.471Z",
10
+ "builtAt": "2026-10-31T17:04:36.928Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
- "sha256": "875865ad5b3bd80793a394573029d0388f54becf6a8ecb225b9e67845684b693",
13
+ "sha256": "a032ca679b335c66cef97c80b084e457e9bf3adb0f4fc93f338ace98ad955b23",
14
14
  "size": 402432
15
15
  },
16
16
  "provenance": {
@@ -9,10 +9,10 @@
9
9
  "architecture": "x64",
10
10
  "target": "x86_64-pc-windows-msvc",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-30T08:02:29.690Z",
12
+ "builtAt": "2026-10-31T17:07:00.170Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
- "sha256": "c25f492b5e735f453e0207bdfd6f43fd36ade4ba7cf86d8e69c2184cf751a873",
15
+ "sha256": "f352de0bb4dc23588d870e500e9e593f1928b1d0291a7b60f92425706b3c7015",
16
16
  "size": 6397440
17
17
  },
18
18
  "entry": {