@a2hmarket/a2hmarket 1.0.0 → 1.0.1
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/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/install.mjs +4 -3
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/scripts/install.mjs
CHANGED
|
@@ -26,7 +26,8 @@ const CREDS_FILE = join(CREDS_DIR, "credentials.json");
|
|
|
26
26
|
const A2H_STORE_DIR = join(homedir(), ".a2h_store");
|
|
27
27
|
const A2H_CONFIG_DIR = join(A2H_STORE_DIR, "a2h_config");
|
|
28
28
|
const A2H_DATA_DIR = join(A2H_STORE_DIR, "a2h_data");
|
|
29
|
-
const NPM_SPEC = "@a2hmarket/a2hmarket";
|
|
29
|
+
const NPM_SPEC = "@a2hmarket/a2hmarket"; // npm package name (for npx entry point)
|
|
30
|
+
const CLAWHUB_SPEC = "clawhub:a2hmarket"; // clawhub package name (for openclaw install)
|
|
30
31
|
|
|
31
32
|
const AUTH_API_URL = "https://web.a2hmarket.ai";
|
|
32
33
|
const LOGIN_URL = "https://a2hmarket.ai";
|
|
@@ -366,7 +367,7 @@ async function runUpdate() {
|
|
|
366
367
|
execSync(`rm -rf "${extDir}"`, { stdio: "pipe" });
|
|
367
368
|
}
|
|
368
369
|
log(` Installing new version...`);
|
|
369
|
-
execSync(`yes 2>/dev/null | openclaw plugins install ${
|
|
370
|
+
execSync(`yes 2>/dev/null | openclaw plugins install ${CLAWHUB_SPEC} 2>&1`, { encoding: "utf-8", stdio: "pipe" });
|
|
370
371
|
log(` ${CHECK} Update complete`);
|
|
371
372
|
} catch (err) {
|
|
372
373
|
log(` ${CROSS} Update failed: ${err.message}`);
|
|
@@ -684,7 +685,7 @@ async function main() {
|
|
|
684
685
|
execSync(`rm -rf "${extDir}"`, { stdio: "pipe" });
|
|
685
686
|
}
|
|
686
687
|
log(` Installing...`);
|
|
687
|
-
execSync(`yes 2>/dev/null | openclaw plugins install ${
|
|
688
|
+
execSync(`yes 2>/dev/null | openclaw plugins install ${CLAWHUB_SPEC} 2>&1`, {
|
|
688
689
|
encoding: "utf-8",
|
|
689
690
|
stdio: "pipe",
|
|
690
691
|
});
|