hedgequantx 2.6.104 → 2.6.106

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.6.104",
3
+ "version": "2.6.106",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -48,19 +48,19 @@ const LOG_ICONS = {
48
48
  win: '✔ WIN ',
49
49
  loss: '✘ LOSS ',
50
50
  be: '★ BE ',
51
- entry: '➡ ENTRY ',
51
+ entry: '➡ ENTRY',
52
52
  filled: '✔ FILL ',
53
53
  connected: '✔ CONN ',
54
- ready: '✔ READY ',
55
- error: '✘ ERR ',
56
- reject: '✘ REJ ',
54
+ ready: '✔ READY',
55
+ error: '✘ ERROR',
56
+ reject: '✘ REJCT',
57
57
  info: '➡ INFO ',
58
- system: '★ SYS ',
59
- signal: '★ SIG ',
60
- trade: '✔ TRADE ',
61
- success: '✔ OK ',
62
- warning: '⬅ WARN ',
63
- analysis: '★ ANLYS '
58
+ system: '★ SYSTM',
59
+ signal: '★ SIGNL',
60
+ trade: '✔ TRADE',
61
+ success: '✔ SUCCS',
62
+ warning: '⬅ WARNG',
63
+ analysis: '★ ANLYS'
64
64
  };
65
65
 
66
66
  /**
@@ -365,12 +365,12 @@ class AlgoUI {
365
365
  } else {
366
366
  visible.forEach(log => {
367
367
  const color = LOG_COLORS[log.type] || chalk.gray;
368
- const icon = LOG_ICONS[log.type] || 'INFO ';
368
+ const icon = LOG_ICONS[log.type] || 'INFO ';
369
369
  // HF style: TIME | COLORED TYPE | MESSAGE with colored numbers
370
370
  const coloredIcon = color.bold(icon);
371
371
  // Color numbers: positive=cyan, negative=red, symbols=yellow
372
372
  const coloredMessage = colorizeMessage(log.message);
373
- const line = ` ${chalk.gray(log.timestamp)} ${coloredIcon}${coloredMessage}`;
373
+ const line = ` ${chalk.gray(log.timestamp)} ${coloredIcon} ${coloredMessage}`;
374
374
  this._line(chalk.cyan(BOX.V) + fitToWidth(line, W) + chalk.cyan(BOX.V));
375
375
  });
376
376
  for (let i = visible.length; i < maxLogs; i++) {
@@ -467,12 +467,14 @@ const managementRequest = (method, endpoint, body = null) => {
467
467
  const getAuthUrl = async (provider) => {
468
468
  await ensureRunning();
469
469
 
470
+ // Use is_webui=true to start the callback server on port 54545
471
+ // Without this, CLIProxyAPI generates the URL but doesn't listen for callbacks
470
472
  const endpoints = {
471
- anthropic: '/v0/management/anthropic-auth-url',
472
- openai: '/v0/management/codex-auth-url',
473
- gemini: '/v0/management/gemini-cli-auth-url',
474
- qwen: '/v0/management/qwen-auth-url',
475
- iflow: '/v0/management/iflow-auth-url'
473
+ anthropic: '/v0/management/anthropic-auth-url?is_webui=true',
474
+ openai: '/v0/management/codex-auth-url?is_webui=true',
475
+ gemini: '/v0/management/gemini-cli-auth-url?is_webui=true',
476
+ qwen: '/v0/management/qwen-auth-url?is_webui=true',
477
+ iflow: '/v0/management/iflow-auth-url?is_webui=true'
476
478
  };
477
479
 
478
480
  const endpoint = endpoints[provider];