solana-traderclaw 1.0.136 → 1.0.138

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,6 +1,6 @@
1
1
  // OpenClaw Gateway Configuration — TraderClaw V1-Upgraded (Single Agent)
2
- // Single "main" agent with 5-minute heartbeat + 11 preset TraderClaw cron jobs.
3
- // alpha-stream-resubscribe (every 20m WS keepalive); portfolio-health (dead-money+whale+risk-audit);
2
+ // Single "main" agent with 5-minute heartbeat + 10 consolidated cron jobs.
3
+ // Consolidated from 13 10: portfolio-health (dead-money+whale+risk-audit),
4
4
  // trust-refresh (source-reputation+deployer-trust). Shortened prompts.
5
5
  {
6
6
  agents: {
@@ -22,17 +22,6 @@
22
22
  keepLines: 2000
23
23
  },
24
24
  jobs: [
25
- // ── Alpha stream keepalive ────────────────────────────────────────
26
- {
27
- id: "alpha-stream-resubscribe",
28
- schedule: "*/20 * * * *",
29
- agentId: "main",
30
- sessionTarget: "isolated",
31
- delivery: { mode: "none" },
32
- message: "CRON_JOB: alpha_stream_resubscribe\n\nKeep alpha WebSocket subscription healthy. solana_runtime_status — if subscribed is false: solana_alpha_subscribe. If subscribed but ingestionStale: solana_alpha_subscribe force:true (zombie heal). Else: reply ALPHA_KEEPALIVE_OK.",
33
- enabled: true
34
- },
35
-
36
25
  // ── Strategy & Learning ───────────────────────────────────────
37
26
  {
38
27
  id: "strategy-evolution",
@@ -1,6 +1,6 @@
1
1
  // OpenClaw Gateway Configuration — TraderClaw V1 (Single Agent)
2
- // Single "main" agent with 5-minute heartbeat + 11 preset TraderClaw cron jobs.
3
- // alpha-stream-resubscribe (every 20m WS keepalive); portfolio-health (dead-money+whale+risk-audit);
2
+ // Single "main" agent with 5-minute heartbeat + 10 consolidated cron jobs.
3
+ // Consolidated from 13 10: portfolio-health (dead-money+whale+risk-audit),
4
4
  // trust-refresh (source-reputation+deployer-trust). Shortened prompts.
5
5
  {
6
6
  agents: {
@@ -22,17 +22,6 @@
22
22
  keepLines: 2000
23
23
  },
24
24
  jobs: [
25
- // ── Alpha stream keepalive ────────────────────────────────────────
26
- {
27
- id: "alpha-stream-resubscribe",
28
- schedule: "*/20 * * * *",
29
- agentId: "main",
30
- sessionTarget: "isolated",
31
- delivery: { mode: "none" },
32
- message: "CRON_JOB: alpha_stream_resubscribe\n\nKeep alpha WebSocket subscription healthy. solana_runtime_status — if subscribed is false: solana_alpha_subscribe. If subscribed but ingestionStale: solana_alpha_subscribe force:true (zombie heal). Else: reply ALPHA_KEEPALIVE_OK.",
33
- enabled: true
34
- },
35
-
36
25
  // ── Portfolio Health (combined dead-money + whale + risk audit) ──
37
26
  {
38
27
  id: "portfolio-health",
package/dist/index.js CHANGED
@@ -4349,7 +4349,7 @@ Context compaction triggered. STATE.md synced from last persisted state. Decisio
4349
4349
  } catch (err) {
4350
4350
  api.logger.warn(`[solana-trader] Forward probe failed: ${err instanceof Error ? err.message : String(err)}`);
4351
4351
  }
4352
- const WATCHDOG_INTERVAL_MS = 9e4;
4352
+ const WATCHDOG_INTERVAL_MS = 20 * 60 * 1e3;
4353
4353
  const FORWARD_PROBE_WATCHDOG_MS = 7 * 60 * 1e3;
4354
4354
  const STARTUP_GATE_AFTER_PROBE_FAIL_COOLDOWN_MS = 10 * 60 * 1e3;
4355
4355
  let alphaStalePhase = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solana-traderclaw",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
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",
@@ -60,7 +60,7 @@ Call `solana_scan_launches` for new launches and `solana_scan_hot_pairs` for hot
60
60
 
61
61
  ## STEP 1.5: ALPHA SIGNALS
62
62
 
63
- Call `solana_alpha_signals` to poll the buffer. Score and classify each signal by priority. Check `calledAgainCount` — multiple independent callers on same token = high conviction. If buffer stays empty while live, `solana_runtime_status` then `solana_alpha_subscribe({ force: true })` or unsub+subscribe.
63
+ Call `solana_alpha_signals` to poll the buffer. Score and classify each signal by priority. Check `calledAgainCount` — multiple independent callers on same token = high conviction. If buffer stays empty while live, call `solana_runtime_status` and note the status in the cycle report. The plugin watchdog manages reconnection automatically — do NOT call `solana_alpha_subscribe` manually.
64
64
 
65
65
  **Source trust check (mandatory before acting on any signal):**
66
66
  ```
@@ -365,5 +365,5 @@ NEXT CYCLE: [1 sentence — what you're watching for]
365
365
  | API endpoint reference | refs/api-reference.md |
366
366
  | Wallet proof vs signup | SKILL.md § Wallet proof vs signup |
367
367
  | Strategy evolution details | refs/strategy-evolution.md |
368
- | Cron job definitions | refs/cron-jobs.md (11 preset jobs; see Schedule Summary for runs/day) |
368
+ | Cron job definitions | refs/cron-jobs.md (10 preset jobs; see Schedule Summary for runs/day) |
369
369
  | Position management details | refs/position-management.md |
@@ -22,8 +22,6 @@ Subsequent heartbeats:
22
22
  → Returns only new signals since last check
23
23
  ```
24
24
 
25
- Installer / Gateway preset **`alpha_stream_resubscribe`** (every 20 minutes) calls `solana_runtime_status` and re-invokes `solana_alpha_subscribe` when the subscription dropped or ingestion is stale. See refs/cron-jobs.md.
26
-
27
25
  If buffered signals stay empty for multiple cycles:
28
26
  ```
29
27
  solana_gateway_forward_probe({ agentId: "main", source: "heartbeat_recovery" })
@@ -19,24 +19,6 @@ At start of every cron job, check whether sufficient new data exists since last
19
19
 
20
20
  ---
21
21
 
22
- ## Job: `alpha_stream_resubscribe`
23
-
24
- **Schedule:** Every 20 minutes (`*/20 * * * *`) — 72 runs/day
25
-
26
- **Purpose:** Recover from dropped or zombie alpha WebSocket subscriptions (signals stop buffering). Complements plugin watchdog; explicit cron ensures reconnect even across process edge cases.
27
-
28
- **Tools:** `solana_runtime_status`, `solana_alpha_subscribe`
29
-
30
- **Workflow:** Call `solana_runtime_status`. If `alphaStream.subscribed` is false, call `solana_alpha_subscribe`. If subscribed but `alphaStream.ingestionStale`, call `solana_alpha_subscribe` with `force: true`. Otherwise reply `ALPHA_KEEPALIVE_OK`.
31
-
32
- **Configuration:**
33
- - Model: Haiku (branch on flags, single tool calls)
34
- - Thinking: off
35
- - lightContext: on
36
- - Delivery: none
37
-
38
- ---
39
-
40
22
  ## Job: `portfolio_health`
41
23
 
42
24
  **Schedule:** Every 4 hours (`0 */4 * * *`) — 6 runs/day
@@ -222,15 +204,14 @@ At start of every cron job, check whether sufficient new data exists since last
222
204
  ## Schedule Summary
223
205
 
224
206
  | # | Job ID | Cron Expression | Runs/Day | Model | Thinking | lightContext | Delivery |
225
- |---|--------|-----------------|----------|-------|----------|-------------|----------|
226
- | 1 | `alpha-stream-resubscribe` | `*/20 * * * *` | 72 | Haiku | off | on | none |
227
- | 2 | `portfolio-health` | `0 */4 * * *` | 6 | Sonnet | off | on | announce/last |
228
- | 3 | `trust-refresh` | `0 */8 * * *` | 3 | Haiku | off | on | none |
229
- | 4 | `meta-rotation` | `30 */8 * * *` | 3 | Sonnet | off | on | announce/last |
230
- | 5 | `strategy-evolution` | `0 6 * * *` | 1 | Sonnet | **on** | **off** | announce/last |
231
- | 6 | `subscription-cleanup` | `15 */8 * * *` | 3 | Haiku | off | on | announce/last |
232
- | 7 | `daily-performance-report` | `0 4 * * *` | 1 | Sonnet | off | **off** | announce/telegram |
233
- | 8 | `intelligence-lab-eval` | `0 16 * * *` | 1 | Sonnet | **on** | **off** | none |
234
- | 9 | `memory-trim` | `0 3 * * *` | 1 | Haiku | off | on | none |
235
- | 10 | `balance-watchdog` | `0 */2 * * *` | 12 | Haiku | off | on | announce/telegram |
236
- | | **Total** | | **103** | | | | |
207
+ |---|--------|----------------|----------|-------|----------|-------------|----------|
208
+ | 1 | `portfolio-health` | `0 */4 * * *` | 6 | Sonnet | off | on | announce/last |
209
+ | 2 | `trust-refresh` | `0 */8 * * *` | 3 | Haiku | off | on | none |
210
+ | 3 | `meta-rotation` | `30 */8 * * *` | 3 | Sonnet | off | on | announce/last |
211
+ | 4 | `strategy-evolution` | `0 6 * * *` | 1 | Sonnet | **on** | **off** | announce/last |
212
+ | 5 | `subscription-cleanup` | `15 */8 * * *` | 3 | Haiku | off | on | announce/last |
213
+ | 6 | `daily-performance-report` | `0 4 * * *` | 1 | Sonnet | off | **off** | announce/telegram |
214
+ | 7 | `intelligence-lab-eval` | `0 16 * * *` | 1 | Sonnet | **on** | **off** | none |
215
+ | 8 | `memory-trim` | `0 3 * * *` | 1 | Haiku | off | on | none |
216
+ | 9 | `balance-watchdog` | `0 */2 * * *` | 12 | Haiku | off | on | announce/telegram |
217
+ | | **Total** | | **31** | | | | |
@@ -101,7 +101,7 @@ Every tool has a mandatory trigger — when the trigger condition is met, you MU
101
101
  ### Alpha Signals (5)
102
102
  | Tool | Purpose | When to Call |
103
103
  |---|---|---|
104
- | `solana_alpha_subscribe` | Subscribe to alpha stream (`force: true` forces reconnect) | Startup sequence; `alpha_stream_resubscribe` cron (every 20m); when stream disconnects or ingestion stalls |
104
+ | `solana_alpha_subscribe` | Subscribe to alpha stream (`force: true` forces reconnect) | Startup sequence; when stream disconnects or ingestion stalls |
105
105
  | `solana_alpha_signals` | Poll buffered signals | Step 1.5 every heartbeat |
106
106
  | `solana_alpha_history` | Historical signal data | Step 1.5 to check prior calls on a token; Step 7 to check source accuracy after exit |
107
107
  | `solana_alpha_sources` | Per-source performance stats | Step 1.5 to check source win rates; `source_reputation_recalc` cron |
@@ -191,7 +191,7 @@ Every tool has a mandatory trigger — when the trigger condition is met, you MU
191
191
  ### Runtime (3)
192
192
  | Tool | Purpose | When to Call |
193
193
  |---|---|---|
194
- | `solana_runtime_status` | Plugin runtime health (startup gate cache, alpha stream subscription + ingestionStale) | `alpha_stream_resubscribe` cron; diagnostics when tools behave unexpectedly |
194
+ | `solana_runtime_status` | Plugin runtime health | Diagnostics; when tools behave unexpectedly |
195
195
  | `solana_agent_sessions` | List agent sessions | Diagnostics; when checking session state |
196
196
  | `solana_classify_deployer_risk` | Deployer risk (alias) | Same as `solana_compute_deployer_risk` — use either |
197
197