@cxyhhhhh/openclaw-qqbot 2.0.0-dev.202607082155 → 2.0.0-dev.202607082305

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/index.cjs CHANGED
@@ -9091,38 +9091,9 @@ function formatError(err) {
9091
9091
  // src/utils/pkg-version.ts
9092
9092
  var import_node_path2 = __toESM(require("path"), 1);
9093
9093
  var import_node_fs2 = __toESM(require("fs"), 1);
9094
- var _resolvedPkgPath = null;
9095
9094
  var _cachedOpenclawVersion;
9096
9095
  function getPackageVersion() {
9097
- if (_resolvedPkgPath) {
9098
- try {
9099
- const pkg = JSON.parse(import_node_fs2.default.readFileSync(_resolvedPkgPath, "utf8"));
9100
- if (pkg.name === "@tencent-connect/openclaw-qqbot" && pkg.version) {
9101
- return pkg.version;
9102
- }
9103
- } catch {
9104
- _resolvedPkgPath = null;
9105
- }
9106
- }
9107
- if (typeof __filename === "string") {
9108
- let dir = import_node_path2.default.dirname(__filename);
9109
- const root = import_node_path2.default.parse(dir).root;
9110
- while (dir !== root) {
9111
- const candidate = import_node_path2.default.join(dir, "package.json");
9112
- try {
9113
- if (import_node_fs2.default.existsSync(candidate)) {
9114
- const pkg = JSON.parse(import_node_fs2.default.readFileSync(candidate, "utf8"));
9115
- if (pkg.name === "@tencent-connect/openclaw-qqbot" && pkg.version) {
9116
- _resolvedPkgPath = candidate;
9117
- return pkg.version;
9118
- }
9119
- }
9120
- } catch {
9121
- }
9122
- dir = import_node_path2.default.dirname(dir);
9123
- }
9124
- }
9125
- return "unknown";
9096
+ return true ? "2.0.0-dev.202607082305" : "unknown";
9126
9097
  }
9127
9098
  function getOpenclawVersion(runtimeVersion) {
9128
9099
  if (_cachedOpenclawVersion) return _cachedOpenclawVersion;
@@ -9619,6 +9590,8 @@ function resolveRuntimeAdapters(rt, log4) {
9619
9590
  ["config", "current"]
9620
9591
  ]) ?? probeFunction(rt, [
9621
9592
  ["getConfig"]
9593
+ ]) ?? probeFunction(rt, [
9594
+ ["config", "loadConfig"]
9622
9595
  ]);
9623
9596
  const rawMutateConfig = probeFunction(rt, [["config", "mutateConfigFile"]]);
9624
9597
  const rawWriteConfig = probeFunction(rt, [["config", "writeConfigFile"]]);