@ghl-ai/aw 0.1.34-beta.21 → 0.1.34-beta.22

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/link.mjs +5 -11
  2. package/package.json +1 -1
package/link.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // link.mjs — Create symlinks from IDE dirs → .aw_registry/
2
2
 
3
- import { existsSync, lstatSync, mkdirSync, readdirSync, unlinkSync, symlinkSync, rmdirSync, utimesSync } from 'node:fs';
3
+ import { existsSync, lstatSync, mkdirSync, readdirSync, unlinkSync, symlinkSync, rmdirSync, writeFileSync } from 'node:fs';
4
4
  import { join, relative } from 'node:path';
5
5
  import { homedir } from 'node:os';
6
6
  import * as fmt from './fmt.mjs';
@@ -250,18 +250,12 @@ export function linkWorkspace(cwd) {
250
250
  }
251
251
  }
252
252
 
253
- // Touch IDE dirs so the file watcher picks up symlink changes
253
+ // Nudge IDE file watchers by creating+deleting a sentinel in each IDE dir.
254
+ // Symlink changes alone aren't reliably detected; a structural file change is.
254
255
  if (created > 0) {
255
- const now = new Date();
256
256
  for (const ide of IDE_DIRS) {
257
- const ideDir = join(cwd, ide);
258
- if (!existsSync(ideDir)) continue;
259
- try {
260
- utimesSync(ideDir, now, now);
261
- for (const sub of readdirSync(ideDir, { withFileTypes: true })) {
262
- if (sub.isDirectory()) utimesSync(join(ideDir, sub.name), now, now);
263
- }
264
- } catch { /* best effort */ }
257
+ const sentinel = join(cwd, ide, '.aw-sync');
258
+ try { writeFileSync(sentinel, ''); unlinkSync(sentinel); } catch { /* best effort */ }
265
259
  }
266
260
  fmt.logSuccess(`Linked ${created} IDE symlink${created > 1 ? 's' : ''}`);
267
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.34-beta.21",
3
+ "version": "0.1.34-beta.22",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {