engine7 7.1.0 → 7.1.2

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/dist/cli.mjs CHANGED
@@ -529,7 +529,7 @@ engine7 start \u2014 \u542F\u52A8 Engine
529
529
  } catch {
530
530
  }
531
531
  console.log("");
532
- const child = spawn("node", [enginePath, "--engine-config", configPath2], {
532
+ const child = spawn(process.execPath, [enginePath, "--engine-config", configPath2], {
533
533
  stdio: "inherit",
534
534
  shell: false
535
535
  });
package/dist/main.mjs CHANGED
@@ -23347,9 +23347,9 @@ var init_handler = __esm({
23347
23347
  if (this.fsw.closed) {
23348
23348
  return;
23349
23349
  }
23350
- const dirname10 = sp.dirname(file);
23350
+ const dirname11 = sp.dirname(file);
23351
23351
  const basename9 = sp.basename(file);
23352
- const parent = this.fsw._getWatchedDir(dirname10);
23352
+ const parent = this.fsw._getWatchedDir(dirname11);
23353
23353
  let prevStats = stats2;
23354
23354
  if (parent.has(basename9))
23355
23355
  return;
@@ -23376,7 +23376,7 @@ var init_handler = __esm({
23376
23376
  prevStats = newStats2;
23377
23377
  }
23378
23378
  } catch (error) {
23379
- this.fsw._remove(dirname10, basename9);
23379
+ this.fsw._remove(dirname11, basename9);
23380
23380
  }
23381
23381
  } else if (parent.has(basename9)) {
23382
23382
  const at = newStats.atimeMs;
@@ -35974,8 +35974,8 @@ ${text}` : text });
35974
35974
  console.log(`[${sessionId}] >>> query start (${messages.length} msgs in history)`);
35975
35975
  try {
35976
35976
  const { writeFileSync: writeFileSync17 } = await import("node:fs");
35977
- const { join: join41 } = await import("node:path");
35978
- const contextPath = join41(workspace, ".context-debug.txt");
35977
+ const { join: join42 } = await import("node:path");
35978
+ const contextPath = join42(workspace, ".context-debug.txt");
35979
35979
  const lines = [
35980
35980
  "=== Context Debug ===",
35981
35981
  `Time: ${(/* @__PURE__ */ new Date()).toISOString()}`,
@@ -45934,8 +45934,8 @@ function startConfigWatcher(config2, deps, provider) {
45934
45934
  }
45935
45935
  if (!fs53.existsSync(configPath2)) {
45936
45936
  const __filename2 = fileURLToPath(import.meta.url);
45937
- const __dirname2 = path54.dirname(__filename2);
45938
- configPath2 = path54.resolve(__dirname2, "..", raw);
45937
+ const __dirname22 = path54.dirname(__filename2);
45938
+ configPath2 = path54.resolve(__dirname22, "..", raw);
45939
45939
  }
45940
45940
  if (!fs53.existsSync(configPath2)) {
45941
45941
  console.warn(`[config-watch] config path invalid: ${configPath2}, watcher disabled`);
@@ -45982,6 +45982,11 @@ function startConfigWatcher(config2, deps, provider) {
45982
45982
  }
45983
45983
 
45984
45984
  // src/main.ts
45985
+ import { readFileSync as readFileSync28 } from "node:fs";
45986
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
45987
+ import { dirname as dirname10, join as join41 } from "node:path";
45988
+ var __dirname2 = dirname10(fileURLToPath2(import.meta.url));
45989
+ var pkg = JSON.parse(readFileSync28(join41(__dirname2, "..", "package.json"), "utf-8"));
45985
45990
  var epipeSeen = false;
45986
45991
  process.on("uncaughtException", (err) => {
45987
45992
  const code = err?.code ?? "";
@@ -46055,7 +46060,7 @@ if (args[0] === "features") {
46055
46060
  process.exit(0);
46056
46061
  }
46057
46062
  var config = loadConfig(configPath);
46058
- console.log("=== OpenClaw Engine v0.1 ===");
46063
+ console.log(`=== Engine 7 v${pkg.version} ===`);
46059
46064
  console.log(`PID: ${process.pid}`);
46060
46065
  console.log(configSummary(config));
46061
46066
  startEngine(config, { cliMode: true }).catch((err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine7",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "type": "module",
5
5
  "description": "Engine 7 — Self-hosted AI agent engine",
6
6
  "main": "dist/main.mjs",