@ghl-ai/aw 0.1.36-beta.55 → 0.1.36-beta.57
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/ecc.mjs +7 -6
- package/package.json +1 -1
package/ecc.mjs
CHANGED
|
@@ -16,7 +16,7 @@ const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
|
|
|
16
16
|
|
|
17
17
|
function eccDir() { return join(homedir(), ".aw-ecc"); }
|
|
18
18
|
|
|
19
|
-
const FILE_COPY_TARGETS = ["cursor", "codex"];
|
|
19
|
+
const FILE_COPY_TARGETS = ["claude", "cursor", "codex"];
|
|
20
20
|
|
|
21
21
|
const TARGET_STATE = {
|
|
22
22
|
cursor: { state: ".cursor/ecc-install-state.json" },
|
|
@@ -44,11 +44,12 @@ function cloneOrUpdate(tag, dest) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
function installClaudePlugin(repoDir) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
47
|
+
// Always remove first so we re-register from the correct repoDir.
|
|
48
|
+
// Falling back to `marketplace update` is unsafe — it updates from the
|
|
49
|
+
// previously-registered path, which may point to a stale/wrong directory.
|
|
50
|
+
try { run(`claude plugin uninstall ${PLUGIN_KEY} --scope user`); } catch { /* not installed */ }
|
|
51
|
+
try { run(`claude plugin marketplace remove ${MARKETPLACE_NAME}`); } catch { /* not registered */ }
|
|
52
|
+
run(`claude plugin marketplace add ${repoDir} --scope user`);
|
|
52
53
|
run(`claude plugin install ${PLUGIN_KEY} --scope user`);
|
|
53
54
|
}
|
|
54
55
|
|