nextclaw 0.8.4 → 0.8.5

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/dist/cli/index.js +18 -5
  2. package/package.json +3 -3
package/dist/cli/index.js CHANGED
@@ -2698,14 +2698,27 @@ var ServiceCommands = class {
2698
2698
  console.log(`\u2713 Cron: ${cronStatus.jobs} scheduled jobs`);
2699
2699
  }
2700
2700
  console.log("\u2713 Heartbeat: every 30m");
2701
- const configPath = getConfigPath2();
2702
- const watcher = chokidar.watch(configPath, {
2701
+ const configPath = resolve7(getConfigPath2());
2702
+ const watcher = chokidar.watch(dirname(configPath), {
2703
2703
  ignoreInitial: true,
2704
2704
  awaitWriteFinish: { stabilityThreshold: 200, pollInterval: 50 }
2705
2705
  });
2706
- watcher.on("add", () => reloader.scheduleReload("config add"));
2707
- watcher.on("change", () => reloader.scheduleReload("config change"));
2708
- watcher.on("unlink", () => reloader.scheduleReload("config unlink"));
2706
+ watcher.on("all", (event, changedPath) => {
2707
+ if (resolve7(changedPath) !== configPath) {
2708
+ return;
2709
+ }
2710
+ if (event === "add") {
2711
+ reloader.scheduleReload("config add");
2712
+ return;
2713
+ }
2714
+ if (event === "change") {
2715
+ reloader.scheduleReload("config change");
2716
+ return;
2717
+ }
2718
+ if (event === "unlink") {
2719
+ reloader.scheduleReload("config unlink");
2720
+ }
2721
+ });
2709
2722
  await cron2.start();
2710
2723
  await heartbeat.start();
2711
2724
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextclaw",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "chokidar": "^3.6.0",
40
40
  "commander": "^12.1.0",
41
41
  "@nextclaw/core": "^0.6.28",
42
- "@nextclaw/server": "^0.5.2",
43
- "@nextclaw/openclaw-compat": "^0.1.20"
42
+ "@nextclaw/server": "^0.5.3",
43
+ "@nextclaw/openclaw-compat": "^0.1.21"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^20.17.6",