hedgequantx 2.9.11 → 2.9.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.9.11",
3
+ "version": "2.9.13",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -101,6 +101,7 @@ const refreshStats = async () => {
101
101
  balance: hasBalanceData ? totalBalance : null,
102
102
  pnl: hasPnlData ? totalPnl : null,
103
103
  pnlPercent: null,
104
+ agents: getActiveAgentCount(),
104
105
  });
105
106
  } catch (err) {
106
107
  log.warn('Failed to refresh stats', { error: err.message });
@@ -70,7 +70,8 @@ const testApiKeyConnection = (agent) => {
70
70
  const body = JSON.stringify({
71
71
  model: agent.modelId,
72
72
  messages: [{ role: 'user', content: TEST_PROMPT }],
73
- max_tokens: 100
73
+ max_tokens: 100,
74
+ stream: false
74
75
  });
75
76
 
76
77
  const options = {
@@ -107,7 +108,7 @@ const testApiKeyConnection = (agent) => {
107
108
  error: parsed.error?.message || `HTTP ${res.statusCode}` });
108
109
  }
109
110
  } catch (e) {
110
- resolve({ success: false, latency, formatValid: false, error: 'Invalid response' });
111
+ resolve({ success: false, latency, formatValid: false, error: `Parse error: ${e.message}` });
111
112
  }
112
113
  });
113
114
  });