traderclaw-cli 1.0.112 → 1.0.114

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.
@@ -1843,7 +1843,10 @@ export function spawnOpenClawCodexAuthLoginChild() {
1843
1843
  const cmdline = "openclaw models auth login --provider openai-codex";
1844
1844
  // --return propagates the inner command's exit code (util-linux 2.38+).
1845
1845
  // Without it, script may exit 0 even if openclaw fails.
1846
- return spawn("script", ["--return", "-q", "-c", cmdline, "/dev/null"], {
1846
+ // -f/--flush: when the wizard reads script's stdout via a pipe, default
1847
+ // block buffering can delay OAuth URLs until the buffer fills (e.g. 4KiB+),
1848
+ // tripping the install wizard's URL detection timeout (OpenClaw 2026.4.x+).
1849
+ return spawn("script", ["--return", "-f", "-q", "-c", cmdline, "/dev/null"], {
1847
1850
  stdio: ["pipe", "pipe", "pipe"],
1848
1851
  shell: false,
1849
1852
  });
@@ -67,6 +67,7 @@ const VERSION = CLI_VERSION || PLUGIN_VERSION;
67
67
  const PLUGIN_ID = "solana-trader";
68
68
  const LEGACY_PLUGIN_IDS = ["traderclaw-v1", "solana-traderclaw-v1", "solana-traderclaw"];
69
69
  const KAYBA_TRACING_PLUGIN_ID = "kayba-tracing";
70
+ const OPENAI_PLUGIN_ALLOW_ID = "openai";
70
71
  const KAYBA_TRACING_NPM_PACKAGE = "@kayba_ai/openclaw-tracing";
71
72
  const KAYBA_TRACING_FOLDER_DEFAULT = "traderclaw-agent";
72
73
  const CONFIG_DIR = join(homedir(), ".openclaw");
@@ -463,6 +464,16 @@ function getPluginConfig(config) {
463
464
  return plugin.config || null;
464
465
  }
465
466
 
467
+ function ensurePluginAllowId(config, pluginId) {
468
+ if (typeof pluginId !== "string" || !pluginId.trim()) return;
469
+ normalizePluginConfigShape(config);
470
+ if (!config.plugins) config.plugins = {};
471
+ if (!Array.isArray(config.plugins.allow)) config.plugins.allow = [];
472
+ if (!config.plugins.allow.includes(pluginId)) {
473
+ config.plugins.allow.push(pluginId);
474
+ }
475
+ }
476
+
466
477
  function setPluginConfig(config, pluginConfig) {
467
478
  normalizePluginConfigShape(config);
468
479
  if (!config.plugins) config.plugins = {};
@@ -471,16 +482,15 @@ function setPluginConfig(config, pluginConfig) {
471
482
  enabled: true,
472
483
  config: pluginConfig,
473
484
  };
485
+ ensurePluginAllowId(config, OPENAI_PLUGIN_ALLOW_ID);
474
486
  }
475
487
 
476
488
  function setKaybaTracingPluginConfig(config, kaybaApiKey, folder) {
477
489
  normalizePluginConfigShape(config);
478
490
  if (!config.plugins) config.plugins = {};
479
491
  if (!config.plugins.entries) config.plugins.entries = {};
480
- if (!Array.isArray(config.plugins.allow)) config.plugins.allow = [];
481
- if (!config.plugins.allow.includes(KAYBA_TRACING_PLUGIN_ID)) {
482
- config.plugins.allow.push(KAYBA_TRACING_PLUGIN_ID);
483
- }
492
+ ensurePluginAllowId(config, KAYBA_TRACING_PLUGIN_ID);
493
+ ensurePluginAllowId(config, OPENAI_PLUGIN_ALLOW_ID);
484
494
  const prev = config.plugins.entries[KAYBA_TRACING_PLUGIN_ID];
485
495
  const prevConfig = prev && typeof prev.config === "object" && prev.config !== null ? prev.config : {};
486
496
  config.plugins.entries[KAYBA_TRACING_PLUGIN_ID] = {
@@ -3859,7 +3869,7 @@ async function cmdInstall(args) {
3859
3869
  message:
3860
3870
  "OpenClaw did not provide a ChatGPT sign-in URL in time. Try again.",
3861
3871
  });
3862
- }, 75_000);
3872
+ }, 120_000);
3863
3873
 
3864
3874
  const trySendUrl = () => {
3865
3875
  if (responded) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "traderclaw-cli",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "Global TraderClaw CLI (install --wizard, setup, precheck). Installs solana-traderclaw as a dependency for OpenClaw plugin files.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,7 +17,7 @@
17
17
  "node": ">=22"
18
18
  },
19
19
  "dependencies": {
20
- "solana-traderclaw": "^1.0.112"
20
+ "solana-traderclaw": "^1.0.114"
21
21
  },
22
22
  "keywords": [
23
23
  "traderclaw",