@a2hmarket/a2hmarket 1.0.8 → 1.0.9
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 +2 -2
- package/package.json +2 -2
- package/scripts/install.mjs +12 -0
package/openclaw.plugin.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "a2hmarket",
|
|
3
3
|
"name": "A2H Market",
|
|
4
|
-
"description": "A2H Market
|
|
5
|
-
"version": "1.0.
|
|
4
|
+
"description": "A2H Market — AI agent marketplace with self-managed A2A messaging via MQTT.",
|
|
5
|
+
"version": "1.0.9",
|
|
6
6
|
"hosts": [
|
|
7
7
|
"openclaw"
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2hmarket/a2hmarket",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"skills/",
|
|
10
10
|
"src/"
|
|
11
11
|
],
|
|
12
|
-
"description": "A2H Market OpenClaw plugin
|
|
12
|
+
"description": "A2H Market OpenClaw plugin — AI agent marketplace with A2A messaging via MQTT.",
|
|
13
13
|
"license": "MIT-0",
|
|
14
14
|
"main": "index.ts",
|
|
15
15
|
"bin": {
|
package/scripts/install.mjs
CHANGED
|
@@ -531,6 +531,10 @@ async function runUninstall() {
|
|
|
531
531
|
if (entry) {
|
|
532
532
|
// Reset to minimal — keep enabled:false so openclaw knows it was uninstalled
|
|
533
533
|
cfg.plugins.entries.a2hmarket = { enabled: false };
|
|
534
|
+
// Remove from allowlist
|
|
535
|
+
if (Array.isArray(cfg.plugins?.allow)) {
|
|
536
|
+
cfg.plugins.allow = cfg.plugins.allow.filter(p => p !== "a2hmarket");
|
|
537
|
+
}
|
|
534
538
|
writeFileSync(configPath, JSON.stringify(cfg, null, 2) + "\n");
|
|
535
539
|
log(` ${CHECK} openclaw.json cleaned`);
|
|
536
540
|
}
|
|
@@ -860,6 +864,12 @@ async function main() {
|
|
|
860
864
|
if (credsData.notify) {
|
|
861
865
|
cfg.plugins.entries.a2hmarket.config.notify = credsData.notify;
|
|
862
866
|
}
|
|
867
|
+
// Ensure plugin is in allowlist and enabled
|
|
868
|
+
if (!cfg.plugins.allow) cfg.plugins.allow = [];
|
|
869
|
+
if (!cfg.plugins.allow.includes("a2hmarket")) {
|
|
870
|
+
cfg.plugins.allow.push("a2hmarket");
|
|
871
|
+
}
|
|
872
|
+
cfg.plugins.entries.a2hmarket.enabled = true;
|
|
863
873
|
writeFileSync(OPENCLAW_CONFIG, JSON.stringify(cfg, null, 2) + "\n");
|
|
864
874
|
log(` ${CHECK} Credentials saved to openclaw.json`);
|
|
865
875
|
} catch (err) {
|
|
@@ -905,7 +915,9 @@ async function main() {
|
|
|
905
915
|
const cfg = JSON.parse(readFileSync(configPath, "utf-8"));
|
|
906
916
|
const entry = cfg?.plugins?.entries?.a2hmarket;
|
|
907
917
|
if (entry && (entry.agentId || entry.agentKey)) {
|
|
918
|
+
const existingConfig = entry.config;
|
|
908
919
|
cfg.plugins.entries.a2hmarket = { enabled: true };
|
|
920
|
+
if (existingConfig) cfg.plugins.entries.a2hmarket.config = existingConfig;
|
|
909
921
|
writeFileSync(configPath, JSON.stringify(cfg, null, 2) + "\n");
|
|
910
922
|
log(` ${CHECK} Cleaned stale credentials from openclaw.json`);
|
|
911
923
|
}
|