@ghl-ai/aw 0.1.39-beta.6 → 0.1.39-beta.8

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/ecc.mjs +25 -1
  2. package/package.json +1 -1
package/ecc.mjs CHANGED
@@ -9,7 +9,7 @@ import * as fmt from "./fmt.mjs";
9
9
 
10
10
  const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
11
11
  const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
12
- const AW_ECC_TAG = "v1.4.31";
12
+ const AW_ECC_TAG = "v1.4.32";
13
13
 
14
14
  const MARKETPLACE_NAME = "aw-marketplace";
15
15
  const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
@@ -185,6 +185,25 @@ function syncEccToCodex(repoDir) {
185
185
  } catch { /* best effort — codex sync failure is non-blocking */ }
186
186
  }
187
187
 
188
+ /**
189
+ * Run ECC repair after install so managed home manifests self-heal when local
190
+ * hook/config files have drifted. This is especially important for Codex where
191
+ * hook registration and wrapper scripts can get out of sync with ~/.aw-ecc.
192
+ */
193
+ function repairEccInstall(repoDir, targets) {
194
+ const repairScript = join(repoDir, "scripts", "repair.js");
195
+ if (!existsSync(repairScript) || !Array.isArray(targets) || targets.length === 0) return;
196
+
197
+ const targetArgs = targets
198
+ .filter(Boolean)
199
+ .map((target) => ` --target ${target}`)
200
+ .join("");
201
+
202
+ try {
203
+ run(`node "${repairScript}"${targetArgs}`, { cwd: homedir() });
204
+ } catch { /* best effort — repair failure is non-blocking */ }
205
+ }
206
+
188
207
  export async function installAwEcc(
189
208
  cwd,
190
209
  { targets = ["cursor", "claude", "codex"], silent = false } = {},
@@ -243,6 +262,11 @@ export async function installAwEcc(
243
262
  restoreProtectedConfigs(snapshot);
244
263
  } catch { /* target not supported — skip */ }
245
264
  }
265
+
266
+ // Enforce post-install parity for managed home files after all target-
267
+ // specific steps have run. This catches drifted local manifests that the
268
+ // initial install/sync path may otherwise leave partially updated.
269
+ repairEccInstall(repoDir, fileCopyTargets);
246
270
  }
247
271
 
248
272
  if (!silent) fmt.logSuccess("aw-ecc engine installed");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.39-beta.6",
3
+ "version": "0.1.39-beta.8",
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",