traderclaw-cli 1.0.122 → 1.0.123

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.
@@ -1378,8 +1378,16 @@ function configureGatewayScheduling(modeConfig, configPath = CONFIG_FILE) {
1378
1378
  if (!config.channels.telegram || typeof config.channels.telegram !== "object") {
1379
1379
  config.channels.telegram = {};
1380
1380
  }
1381
- if (config.channels.telegram.streaming === undefined) {
1382
- config.channels.telegram.streaming = "partial";
1381
+ // OpenClaw ≥2026.5 expects channels.telegram.streaming as an object ({ mode, chunkMode, preview, block }).
1382
+ // Legacy scalar ("partial"|"off"|...) was valid briefly but now fails validation ("must be object").
1383
+ const tgStream = config.channels.telegram.streaming;
1384
+ const telegramStreamingModes = new Set(["off", "partial", "block", "progress"]);
1385
+ if (tgStream === undefined) {
1386
+ config.channels.telegram.streaming = { mode: "partial" };
1387
+ } else if (typeof tgStream === "string") {
1388
+ config.channels.telegram.streaming = telegramStreamingModes.has(tgStream)
1389
+ ? { mode: tgStream }
1390
+ : { mode: "partial" };
1383
1391
  }
1384
1392
 
1385
1393
  if (!config.commands || typeof config.commands !== "object") config.commands = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "traderclaw-cli",
3
- "version": "1.0.122",
3
+ "version": "1.0.123",
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.122"
20
+ "solana-traderclaw": "^1.0.123"
21
21
  },
22
22
  "keywords": [
23
23
  "traderclaw",