solana-traderclaw 1.0.139 → 1.0.140
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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// src/session-manager.ts
|
|
2
2
|
var TRADERCLAW_SESSION_TROUBLESHOOTING = "https://docs.traderclaw.ai/docs/installation#troubleshooting-session-expired-auth-errors-or-the-agent-logged-out";
|
|
3
|
+
var TRADERCLAW_MANAGED_INSTALL_CONSOLE_PANEL_URL = "https://install.traderclaw.ai/panel";
|
|
4
|
+
var TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT = `If you installed via install.traderclaw.ai's managed VPS console, re-authenticate in Panel \u2192 TraderClaw login (${TRADERCLAW_MANAGED_INSTALL_CONSOLE_PANEL_URL}), then openclaw gateway restart when convenient.`;
|
|
3
5
|
var BS58_CHARS = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
4
6
|
function b58Decode(str) {
|
|
5
7
|
let num = BigInt(0);
|
|
@@ -357,7 +359,7 @@ var SessionManager = class _SessionManager {
|
|
|
357
359
|
const walletPrivateKey = (await this.walletPrivateKeyProvider?.())?.trim();
|
|
358
360
|
if (!walletPrivateKey) {
|
|
359
361
|
throw new Error(
|
|
360
|
-
`Wallet proof required but the gateway cannot sign interactively \u2014 no wallet key is wired into this process. This account already has a wallet. On the host that runs OpenClaw (with a normal terminal / TTY), run: traderclaw login \u2014 complete wallet proof when prompted \u2014 then openclaw gateway restart. That persists new session tokens without putting a private key in the gateway configuration. Do not paste private keys into openclaw.json. Troubleshooting: ${TRADERCLAW_SESSION_TROUBLESHOOTING}`
|
|
362
|
+
`Wallet proof required but the gateway cannot sign interactively \u2014 no wallet key is wired into this process. This account already has a wallet. On the host that runs OpenClaw (with a normal terminal / TTY), run: traderclaw login \u2014 complete wallet proof when prompted \u2014 then openclaw gateway restart. That persists new session tokens without putting a private key in the gateway configuration. Do not paste private keys into openclaw.json. Troubleshooting: ${TRADERCLAW_SESSION_TROUBLESHOOTING} ${TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT}`
|
|
361
363
|
);
|
|
362
364
|
}
|
|
363
365
|
walletPubKey = challenge.walletPublicKey || this.walletPublicKey || void 0;
|
|
@@ -387,7 +389,7 @@ var SessionManager = class _SessionManager {
|
|
|
387
389
|
await this.unifiedRefresh();
|
|
388
390
|
if (!this.accessToken) {
|
|
389
391
|
throw new Error(
|
|
390
|
-
`Session expired and could not be refreshed. Re-authentication required. On the gateway host try: traderclaw login \u2014 then openclaw gateway restart. Troubleshooting: ${TRADERCLAW_SESSION_TROUBLESHOOTING}`
|
|
392
|
+
`Session expired and could not be refreshed. Re-authentication required. On the gateway host try: traderclaw login \u2014 then openclaw gateway restart. Troubleshooting: ${TRADERCLAW_SESSION_TROUBLESHOOTING} ${TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT}`
|
|
391
393
|
);
|
|
392
394
|
}
|
|
393
395
|
return this.accessToken;
|
|
@@ -398,7 +400,7 @@ var SessionManager = class _SessionManager {
|
|
|
398
400
|
await this.unifiedRefresh();
|
|
399
401
|
if (!this.accessToken) {
|
|
400
402
|
throw new Error(
|
|
401
|
-
`Session expired and could not be refreshed. Re-authentication required. On the gateway host try: traderclaw login \u2014 then openclaw gateway restart. Troubleshooting: ${TRADERCLAW_SESSION_TROUBLESHOOTING}`
|
|
403
|
+
`Session expired and could not be refreshed. Re-authentication required. On the gateway host try: traderclaw login \u2014 then openclaw gateway restart. Troubleshooting: ${TRADERCLAW_SESSION_TROUBLESHOOTING} ${TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT}`
|
|
402
404
|
);
|
|
403
405
|
}
|
|
404
406
|
return this.accessToken;
|
|
@@ -541,5 +543,7 @@ var SessionManager = class _SessionManager {
|
|
|
541
543
|
};
|
|
542
544
|
|
|
543
545
|
export {
|
|
546
|
+
TRADERCLAW_MANAGED_INSTALL_CONSOLE_PANEL_URL,
|
|
547
|
+
TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT,
|
|
544
548
|
SessionManager
|
|
545
549
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
writeRefreshTokenToOpenclawAtomic
|
|
5
5
|
} from "./chunk-IAQC34O7.js";
|
|
6
6
|
import {
|
|
7
|
-
SessionManager
|
|
8
|
-
|
|
7
|
+
SessionManager,
|
|
8
|
+
TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT
|
|
9
|
+
} from "./chunk-OKBHBUZ7.js";
|
|
9
10
|
import {
|
|
10
11
|
looksLikeTelegramChatId,
|
|
11
12
|
resolveTelegramRecipientToChatId
|
|
@@ -932,7 +933,7 @@ var solanaTraderPlugin = {
|
|
|
932
933
|
}
|
|
933
934
|
if (!apiKey && !config.refreshToken) {
|
|
934
935
|
api.logger.error(
|
|
935
|
-
|
|
936
|
+
`[solana-trader] apiKey or refreshToken is required. Tell the user to run on their machine: traderclaw setup --signup (or traderclaw signup) for a new account, or traderclaw setup / traderclaw login if they already have an API key. The agent cannot sign up or edit credentials. ${TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT}`
|
|
936
937
|
);
|
|
937
938
|
return;
|
|
938
939
|
}
|
|
@@ -4310,7 +4311,7 @@ Context compaction triggered. STATE.md synced from last persisted state. Decisio
|
|
|
4310
4311
|
`[solana-trader] Session initialization failed: ${err instanceof Error ? err.message : String(err)}`
|
|
4311
4312
|
);
|
|
4312
4313
|
api.logger.error(
|
|
4313
|
-
|
|
4314
|
+
`[solana-trader] Trading tools will fail until session is established. User should run on this machine: traderclaw login (after logout) or traderclaw setup / traderclaw signup for a new account. Wallet proof uses local signing only \u2014 private key never leaves this system. ${TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT}`
|
|
4314
4315
|
);
|
|
4315
4316
|
return;
|
|
4316
4317
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
SessionManager
|
|
3
|
-
|
|
2
|
+
SessionManager,
|
|
3
|
+
TRADERCLAW_MANAGED_INSTALL_CONSOLE_PANEL_URL,
|
|
4
|
+
TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT
|
|
5
|
+
} from "../chunk-OKBHBUZ7.js";
|
|
4
6
|
export {
|
|
5
|
-
SessionManager
|
|
7
|
+
SessionManager,
|
|
8
|
+
TRADERCLAW_MANAGED_INSTALL_CONSOLE_PANEL_URL,
|
|
9
|
+
TRADERCLAW_MANAGED_INSTALL_LOGIN_HINT
|
|
6
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solana-traderclaw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.140",
|
|
4
4
|
"description": "TraderClaw V1-Upgraded — Solana trading for OpenClaw with intelligence lab, tool envelopes, prompt scrubbing, read-only X social intel, and split skill docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|