@ghl-ai/aw 0.1.36-beta.21 → 0.1.36-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/commands/pull.mjs +14 -7
  2. package/package.json +1 -1
package/commands/pull.mjs CHANGED
@@ -80,9 +80,13 @@ export async function pullCommand(args) {
80
80
  rebaseOntoOriginMain(localAw);
81
81
  if (!silent) log.logStep('Local branch rebased onto latest');
82
82
  } catch (e) {
83
- // Check if the failure was due to merge conflicts
84
83
  const isConflict = e.message?.includes('could not apply') || e.message?.includes('CONFLICT');
85
- if (isConflict) {
84
+ const isAlreadyInProgress = e.message?.includes('rebase-merge') || e.message?.includes('rebase-apply') || e.message?.includes('already in progress');
85
+
86
+ if (isAlreadyInProgress) {
87
+ // A previous conflict is still unresolved — leave it alone, user is working on it
88
+ if (!silent) log.logWarn('Rebase paused — resolve conflicts in your IDE, then run `aw pull` again.');
89
+ } else if (isConflict) {
86
90
  // Get list of conflicted files
87
91
  let conflictedFiles = [];
88
92
  try {
@@ -92,12 +96,15 @@ export async function pullCommand(args) {
92
96
  conflictedFiles = out.trim().split('\n').filter(Boolean);
93
97
  } catch { /* best effort */ }
94
98
 
95
- // Abort rebase to restore clean state
96
- try {
97
- execSync(`git -C "${localAw}" rebase --abort`, { stdio: 'pipe' });
98
- } catch { /* best effort */ }
99
+ if (silent) {
100
+ // Silent mode: do NOT abort — leave conflict markers in files so IDE shows them visually
101
+ // The user will see the conflict markers in their editor and can resolve from there
102
+ } else {
103
+ // Interactive mode: abort and show clear terminal warning
104
+ try {
105
+ execSync(`git -C "${localAw}" rebase --abort`, { stdio: 'pipe' });
106
+ } catch { /* best effort */ }
99
107
 
100
- if (!silent) {
101
108
  log.logWarn('Merge conflict detected — rebase aborted, your branch is unchanged.');
102
109
  if (conflictedFiles.length > 0) {
103
110
  log.logWarn(`Conflicting file${conflictedFiles.length > 1 ? 's' : ''}:`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.36-beta.21",
3
+ "version": "0.1.36-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": {