forge-memory 0.2.110 → 0.2.111

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.
@@ -1451,12 +1451,34 @@ async function removeHermesAdapterConfig() {
1451
1451
  "forge",
1452
1452
  "config.json"
1453
1453
  );
1454
- const changed = fs.existsSync(forgeConfigPath);
1455
- if (changed) {
1454
+ let changed = false;
1455
+ if (fs.existsSync(forgeConfigPath)) {
1456
1456
  await backupIfExists(forgeConfigPath);
1457
1457
  await fsp.rm(forgeConfigPath, { force: true });
1458
+ changed = true;
1458
1459
  }
1459
- return { filePath: forgeConfigPath, changed };
1460
+ const forgeConfigDir = path.dirname(forgeConfigPath);
1461
+ if (fs.existsSync(forgeConfigDir)) {
1462
+ await fsp.rm(forgeConfigDir, { recursive: false, force: true }).catch(() => {});
1463
+ }
1464
+
1465
+ const hermesYamlPath = path.join(homeDir(), ".hermes", "config.yaml");
1466
+ if (fs.existsSync(hermesYamlPath)) {
1467
+ const raw = await fsp.readFile(hermesYamlPath, "utf8");
1468
+ const doc = YAML.parseDocument(raw);
1469
+ const root = doc.toJSON() ?? {};
1470
+ const enabled = Array.isArray(root.plugins?.enabled)
1471
+ ? root.plugins.enabled
1472
+ : null;
1473
+ if (enabled?.includes("forge")) {
1474
+ root.plugins.enabled = enabled.filter((entry) => entry !== "forge");
1475
+ doc.contents = doc.createNode(root);
1476
+ await backupIfExists(hermesYamlPath);
1477
+ await fsp.writeFile(hermesYamlPath, String(doc), "utf8");
1478
+ changed = true;
1479
+ }
1480
+ }
1481
+ return { filePath: forgeConfigPath, yamlPath: hermesYamlPath, changed };
1460
1482
  }
1461
1483
 
1462
1484
  async function removeCodexAdapterConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-memory",
3
- "version": "0.2.110",
3
+ "version": "0.2.111",
4
4
  "description": "Guided Forge installer and local runtime manager for the Forge UI, OpenClaw, Hermes, Codex, and iOS pairing.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",