dexbot 1.2.7 → 1.3.0
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/README.md +34 -36
- package/claw/README.md +1 -1
- package/claw/skills/launcher-ops/SKILL.md +2 -2
- package/claw/skills/launcher-ops/references/launcher-workflow.md +2 -2
- package/claw/skills/margin-trading/references/honest-assets.md +1 -1
- package/claw/skills/margin-trading/references/position-management.md +3 -3
- package/claw/skills/trend-detection/references/service.md +1 -1
- package/dist/analysis/analyze_kalman.js +1 -1
- package/dist/analysis/analyze_kalman.js.map +1 -1
- package/dist/bot.js +0 -0
- package/dist/credential-daemon.d.ts +1 -1
- package/dist/credential-daemon.js +2 -2
- package/dist/credential-daemon.js.map +1 -1
- package/dist/dexbot.js +4 -4
- package/dist/dexbot.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js +1 -1
- package/dist/market_adapter/lp_chart_runner.js +1 -1
- package/dist/market_adapter/market_adapter.d.ts.map +1 -1
- package/dist/market_adapter/market_adapter.js +1 -3
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/modules/account_bots.d.ts +37 -14
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +37 -14
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +1 -1
- package/dist/modules/account_orders.js +1 -1
- package/dist/modules/bitshares_client.d.ts +4 -3
- package/dist/modules/bitshares_client.d.ts.map +1 -1
- package/dist/modules/bitshares_client.js +4 -3
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/chain_orders.d.ts +37 -24
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +37 -24
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts +19 -0
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +19 -0
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/dexbot_class.js +4 -4
- package/dist/modules/dexbot_class.js.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.js +1 -1
- package/dist/modules/launcher/supervisor_control.js +1 -1
- package/dist/modules/launcher/supervisor_control.js.map +1 -1
- package/dist/modules/order/format.d.ts +1 -1
- package/dist/modules/order/format.js +1 -1
- package/dist/modules/order/utils/order.d.ts +1 -1
- package/dist/modules/order/utils/order.js +1 -1
- package/dist/pm2.d.ts +16 -14
- package/dist/pm2.d.ts.map +1 -1
- package/dist/pm2.js +36 -32
- package/dist/pm2.js.map +1 -1
- package/dist/scripts/update.js +6 -6
- package/dist/scripts/update.js.map +1 -1
- package/dist/unlock.d.ts +16 -14
- package/dist/unlock.d.ts.map +1 -1
- package/dist/unlock.js +22 -20
- package/dist/unlock.js.map +1 -1
- package/package.json +3 -2
- package/scripts/README.md +25 -18
- package/scripts/postinstall.js +8 -1
|
@@ -3575,7 +3575,7 @@ class DEXBot {
|
|
|
3575
3575
|
this._credentialDaemonDown = true;
|
|
3576
3576
|
this._credentialRecoveryNeeded = true;
|
|
3577
3577
|
this._suspendGridPersistenceForCredentialOutage(message);
|
|
3578
|
-
this.manager?.logger?.log?.(`[CREDENTIAL] ${message}. Write operations paused; re-unlock with
|
|
3578
|
+
this.manager?.logger?.log?.(`[CREDENTIAL] ${message}. Write operations paused; re-unlock with dexbot pm2.`, 'error');
|
|
3579
3579
|
const wrapped = new Error(message);
|
|
3580
3580
|
wrapped.code = DAEMON_CODES.CREDENTIAL_DAEMON_UNAVAILABLE;
|
|
3581
3581
|
wrapped.cause = err;
|
|
@@ -3684,16 +3684,16 @@ class DEXBot {
|
|
|
3684
3684
|
const errMsg = String(err.message || '');
|
|
3685
3685
|
let hint = '';
|
|
3686
3686
|
if (errMsg.includes('ENOENT')) {
|
|
3687
|
-
hint = `Socket file missing at ${token.socketPath}. The credential daemon process may have been killed (e.g. by stray Ctrl-C). Restart it with:
|
|
3687
|
+
hint = `Socket file missing at ${token.socketPath}. The credential daemon process may have been killed (e.g. by stray Ctrl-C). Restart it with: dexbot pm2 restart dexbot-cred. If the problem persists, check the daemon log: profiles/logs/dexbot-cred.log`;
|
|
3688
3688
|
}
|
|
3689
3689
|
else if (errMsg.includes('ECONNREFUSED')) {
|
|
3690
|
-
hint = `Connection refused at ${token.socketPath}. The daemon may be in a zombie state or restarting. Try:
|
|
3690
|
+
hint = `Connection refused at ${token.socketPath}. The daemon may be in a zombie state or restarting. Try: dexbot pm2 restart dexbot-cred.`;
|
|
3691
3691
|
}
|
|
3692
3692
|
else if (errMsg.includes('timeout')) {
|
|
3693
3693
|
hint = `Probe timed out. The daemon may be under heavy load or blocked. Check profiles/logs/dexbot-cred.log.`;
|
|
3694
3694
|
}
|
|
3695
3695
|
else {
|
|
3696
|
-
hint = `Write operations will remain paused until re-unlocked with
|
|
3696
|
+
hint = `Write operations will remain paused until re-unlocked with dexbot pm2.`;
|
|
3697
3697
|
}
|
|
3698
3698
|
this.manager?.logger?.log?.(`[CREDENTIAL] Credential daemon watchdog failed: ${err.message}. ${hint}`, 'error');
|
|
3699
3699
|
}
|