hedgequantx 2.9.10 → 2.9.12

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.10",
3
+ "version": "2.9.12",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -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
  });
package/src/ui/index.js CHANGED
@@ -81,8 +81,8 @@ const displayBanner = () => {
81
81
  * Uses ANSI escape codes directly to avoid terminal state issues
82
82
  */
83
83
  const clearScreen = () => {
84
- // ESC[2J = clear entire screen, ESC[H = move cursor to home
85
- process.stdout.write('\x1B[2J\x1B[H');
84
+ // ESC[H = home, ESC[2J = clear screen, ESC[3J = clear scrollback
85
+ process.stdout.write('\x1B[H\x1B[2J\x1B[3J');
86
86
  };
87
87
 
88
88
  /**