@okx_ai/okx-trade-cli 1.3.1-beta.6 → 1.3.1-beta.7

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.js CHANGED
@@ -10990,7 +10990,7 @@ async function cmdDiagnoseMcp(options = {}) {
10990
10990
 
10991
10991
  // src/commands/diagnose.ts
10992
10992
  var CLI_VERSION = readCliVersion();
10993
- var GIT_HASH = true ? "7458dd1" : "dev";
10993
+ var GIT_HASH = true ? "006f75a" : "dev";
10994
10994
  function maskKey2(key) {
10995
10995
  if (!key) return "(not set)";
10996
10996
  if (key.length <= 8) return "****";
@@ -16882,7 +16882,7 @@ async function cmdEventCancel(run, opts) {
16882
16882
  // src/index.ts
16883
16883
  var _require3 = createRequire3(import.meta.url);
16884
16884
  var CLI_VERSION2 = _require3("../package.json").version;
16885
- var GIT_HASH2 = true ? "7458dd1" : "dev";
16885
+ var GIT_HASH2 = true ? "006f75a" : "dev";
16886
16886
  function handleDohCommand(action, json, force, binaryPath) {
16887
16887
  if (action === "status") return cmdDohStatus(json, binaryPath);
16888
16888
  if (action === "install") return cmdDohInstall(json, binaryPath);
@@ -17872,12 +17872,24 @@ function printVersion() {
17872
17872
  }
17873
17873
  }
17874
17874
  function routeManagementCommand(module, action, rest, json, v) {
17875
- if (module === "config") return handleConfigCommand(action, rest, json, v.lang, v.force);
17876
- if (module === "setup") return handleSetupCommand(v);
17875
+ if (module === "config") {
17876
+ const r = handleConfigCommand(action, rest, json, v.lang, v.force);
17877
+ return r ?? true;
17878
+ }
17879
+ if (module === "setup") {
17880
+ handleSetupCommand(v);
17881
+ return true;
17882
+ }
17877
17883
  if (module === "upgrade") return cmdUpgrade(CLI_VERSION2, { beta: v.beta, check: v.check, force: v.force }, json);
17878
- if (module === "doh") return handleDohCommand(action, json, v.force ?? false);
17884
+ if (module === "doh") {
17885
+ const r = handleDohCommand(action, json, v.force ?? false);
17886
+ return r ?? true;
17887
+ }
17879
17888
  if (module === "diagnose") return runDiagnose(v);
17880
- if (module === "list-tools") return cmdListTools(json);
17889
+ if (module === "list-tools") {
17890
+ cmdListTools(json);
17891
+ return true;
17892
+ }
17881
17893
  return void 0;
17882
17894
  }
17883
17895
  async function main() {
@@ -17899,7 +17911,7 @@ async function main() {
17899
17911
  const v = values;
17900
17912
  const json = v.json ?? false;
17901
17913
  const mgmt = routeManagementCommand(module, action, rest, json, v);
17902
- if (mgmt) return mgmt;
17914
+ if (mgmt !== void 0) return mgmt === true ? void 0 : mgmt;
17903
17915
  const config = loadProfileConfig({ profile: v.profile, demo: v.demo, live: v.live, verbose: v.verbose, userAgent: `okx-trade-cli/${CLI_VERSION2}`, sourceTag: "CLI" });
17904
17916
  setEnvContext({ demo: config.demo, profile: v.profile ?? "default" });
17905
17917
  setJsonEnvEnabled(v.env ?? false);