closeclaw 3.0.1 → 3.0.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.
File without changes
package/dist/cli.cjs CHANGED
@@ -7801,14 +7801,22 @@ var import_node_fs7 = require("fs");
7801
7801
  var import_node_path6 = require("path");
7802
7802
  var import_node_child_process3 = require("child_process");
7803
7803
  var import_node_readline = require("readline");
7804
- var import_meta3 = {};
7805
7804
  var HOME = process.env.HOME || process.env.USERPROFILE || "~";
7806
7805
  var PID_FILE = (0, import_node_path6.join)(HOME, ".closeclaw", "platform.pid");
7807
- var PKG_PATH = new URL("../package.json", import_meta3.url);
7808
7806
  function readPkgVersion() {
7809
7807
  try {
7810
- const pkg = JSON.parse((0, import_node_fs7.readFileSync)(PKG_PATH, "utf-8"));
7811
- return pkg.version ?? "unknown";
7808
+ const candidates = [
7809
+ (0, import_node_path6.join)(__dirname, "..", "package.json"),
7810
+ (0, import_node_path6.join)(__dirname, "package.json"),
7811
+ (0, import_node_path6.join)(process.cwd(), "package.json")
7812
+ ];
7813
+ for (const p of candidates) {
7814
+ if ((0, import_node_fs7.existsSync)(p)) {
7815
+ const pkg = JSON.parse((0, import_node_fs7.readFileSync)(p, "utf-8"));
7816
+ return pkg.version ?? "unknown";
7817
+ }
7818
+ }
7819
+ return "unknown";
7812
7820
  } catch {
7813
7821
  return "unknown";
7814
7822
  }
@@ -7954,8 +7962,8 @@ async function commandStart(args) {
7954
7962
  const openclawPath = whichSync("openclaw");
7955
7963
  if (openclawPath) {
7956
7964
  try {
7957
- const pluginDir = (0, import_node_path6.join)(import_meta3.dirname || __dirname, "..", "packages", "platform-tools");
7958
- const altPluginDir = (0, import_node_path6.join)(import_meta3.dirname || __dirname, "..", "..", "platform-tools");
7965
+ const pluginDir = (0, import_node_path6.join)(__dirname, "..", "packages", "platform-tools");
7966
+ const altPluginDir = (0, import_node_path6.join)(__dirname, "..", "..", "platform-tools");
7959
7967
  const resolvedPluginDir = (0, import_node_fs7.existsSync)((0, import_node_path6.join)(pluginDir, "package.json")) ? pluginDir : (0, import_node_fs7.existsSync)((0, import_node_path6.join)(altPluginDir, "package.json")) ? altPluginDir : null;
7960
7968
  if (resolvedPluginDir) {
7961
7969
  const pluginCheck = (0, import_node_child_process3.execSync)(`${openclawPath} plugins list 2>/dev/null || true`, { encoding: "utf-8" });
package/dist/cli.jsc CHANGED
Binary file
package/dist/index.jsc CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "closeclaw",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "CloseClaw — AI-powered project management platform. One command, full stack.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",