@ghl-ai/aw 0.1.36-beta.71 → 0.1.36-beta.72

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/commands/push.mjs CHANGED
@@ -427,15 +427,14 @@ export async function pushCommand(args) {
427
427
  const HOME = homedir();
428
428
  const globalAw = join(HOME, '.aw');
429
429
 
430
- // If the project has a local worktree (.aw/ with a .git file), use it so
431
- // changes made inside the project are correctly detected and committed.
432
- const localAw = findNearestWorktree(cwd, HOME);
433
- const hasWorktree = localAw !== null;
434
- const awHome = hasWorktree ? localAw : globalAw;
430
+ // Always push from the global clone (~/.aw), same as aw pull.
431
+ // All agent/skill edits via IDE symlinks land in ~/.aw/.aw_registry/ directly —
432
+ // project worktrees are just local views for IDE visibility, not the source of truth.
433
+ const awHome = globalAw;
435
434
  const registrySubDir = join(awHome, REGISTRY_DIR);
436
435
  const workspaceDir = getLocalRegistryDir(cwd, join(HOME, '.aw_registry'));
437
436
 
438
- const worktreeFlow = hasWorktree;
437
+ const worktreeFlow = false;
439
438
 
440
439
  fmt.intro('aw push');
441
440
 
package/git.mjs CHANGED
@@ -323,7 +323,7 @@ export function commitToCurrentBranch(awHome, files, commitMsg, preStaged = fals
323
323
  if (!preStaged) {
324
324
  try {
325
325
  const quotedFiles = files.map(f => `"${f}"`).join(' ');
326
- execSync(`git -C "${awHome}" add --sparse ${quotedFiles}`, { stdio: 'pipe' });
326
+ execSync(`git -C "${awHome}" add ${quotedFiles}`, { stdio: 'pipe' });
327
327
  } catch (e) {
328
328
  throw new Error(`Failed to stage files: ${e.message}`);
329
329
  }
@@ -379,7 +379,7 @@ export async function createPushBranch(awHome, branchName, files, commitMsg, pre
379
379
  if (!preStaged) {
380
380
  try {
381
381
  const quotedFiles = files.map(f => `"${f}"`).join(' ');
382
- await exec(`git -C "${awHome}" add --sparse ${quotedFiles}`);
382
+ await exec(`git -C "${awHome}" add ${quotedFiles}`);
383
383
  } catch (e) {
384
384
  throw new Error(`Failed to stage files: ${e.message}`);
385
385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.36-beta.71",
3
+ "version": "0.1.36-beta.72",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": "bin.js",