@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 +5 -6
- package/git.mjs +2 -2
- package/package.json +1 -1
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
|
-
//
|
|
431
|
-
//
|
|
432
|
-
|
|
433
|
-
const
|
|
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 =
|
|
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
|
|
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
|
|
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
|
}
|