traderclaw-cli 1.0.61 → 1.0.62
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.
|
@@ -941,6 +941,11 @@ function configureGatewayScheduling(modeConfig, configPath = CONFIG_FILE) {
|
|
|
941
941
|
config.channels.defaults.heartbeat.showOk = true;
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
+
if (!config.agents.defaults || typeof config.agents.defaults !== "object") {
|
|
945
|
+
config.agents.defaults = {};
|
|
946
|
+
}
|
|
947
|
+
config.agents.defaults.heartbeat = { ...defaultHeartbeat };
|
|
948
|
+
|
|
944
949
|
ensureAgentsDefaultsSchemaCompat(config);
|
|
945
950
|
mkdirSync(CONFIG_DIR, { recursive: true });
|
|
946
951
|
writeFileSync(configPath, JSON.stringify(config, null, 2) + "\n", "utf-8");
|
package/bin/openclaw-trader.mjs
CHANGED
|
@@ -3227,7 +3227,14 @@ async function cmdTestSession(args) {
|
|
|
3227
3227
|
try {
|
|
3228
3228
|
if (currentRefreshToken && currentAccessToken) {
|
|
3229
3229
|
mkdirSync(dataDir, { recursive: true });
|
|
3230
|
+
let existingSidecar = {};
|
|
3231
|
+
try {
|
|
3232
|
+
if (existsSync(sessionTokensPath)) {
|
|
3233
|
+
existingSidecar = JSON.parse(readFileSync(sessionTokensPath, "utf-8")) || {};
|
|
3234
|
+
}
|
|
3235
|
+
} catch { /* ignore */ }
|
|
3230
3236
|
const payload = {
|
|
3237
|
+
...existingSidecar,
|
|
3231
3238
|
refreshToken: currentRefreshToken,
|
|
3232
3239
|
accessToken: currentAccessToken,
|
|
3233
3240
|
accessTokenExpiresAt: Date.now() + 900_000,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "traderclaw-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
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.
|
|
20
|
+
"solana-traderclaw": "^1.0.62"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"traderclaw",
|