hedgequantx 2.9.0 → 2.9.1

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.0",
3
+ "version": "2.9.1",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -111,9 +111,9 @@ const drawProvidersTable = (providers, config, boxWidth, showTest = false) => {
111
111
  // Find max name length across ALL providers for consistent alignment
112
112
  const maxNameLen = Math.max(...providers.map(p => p.name.length));
113
113
 
114
- // Fixed format: "● [N] NAME" where is yellow if connected (has auth file)
115
- // Total content width = 2 (● ) + 3 ([N]) + 1 (space) + maxNameLen
116
- const contentWidth = 2 + 3 + 1 + maxNameLen;
114
+ // Fixed format: "● [XX] NAME" where XX is 2-digit padded number
115
+ // Total content width = 2 (● ) + 4 ([XX]) + 1 (space) + maxNameLen
116
+ const contentWidth = 2 + 4 + 1 + maxNameLen;
117
117
  const leftPad = Math.floor((colWidth - contentWidth) / 2);
118
118
  const rightPad = Math.floor(((W - colWidth) - contentWidth) / 2);
119
119
 
@@ -124,14 +124,14 @@ const drawProvidersTable = (providers, config, boxWidth, showTest = false) => {
124
124
  // Left column
125
125
  let leftCol = '';
126
126
  if (leftP) {
127
- const num = row + 1;
127
+ const num = String(row + 1).padStart(2);
128
128
  // Show cyan dot if provider has auth file (connected via OAuth)
129
129
  const isConnected = connected[leftP.id] || config.providers[leftP.id]?.active;
130
130
  const status = isConnected ? chalk.cyan('● ') : ' ';
131
131
  const name = leftP.provider ? leftP.provider.name : leftP.name;
132
132
  const namePadded = name.toUpperCase().padEnd(maxNameLen);
133
133
  const content = status + chalk.yellow(`[${num}]`) + ' ' + chalk.cyan(namePadded);
134
- const contentLen = 2 + 3 + 1 + maxNameLen;
134
+ const contentLen = 2 + 4 + 1 + maxNameLen;
135
135
  const padR = colWidth - leftPad - contentLen;
136
136
  leftCol = ' '.repeat(leftPad) + content + ' '.repeat(Math.max(0, padR));
137
137
  } else {
@@ -142,14 +142,14 @@ const drawProvidersTable = (providers, config, boxWidth, showTest = false) => {
142
142
  let rightCol = '';
143
143
  const rightColWidth = W - colWidth;
144
144
  if (rightP) {
145
- const num = row + rows + 1;
145
+ const num = String(row + rows + 1).padStart(2);
146
146
  // Show cyan dot if provider has auth file (connected via OAuth)
147
147
  const isConnected = connected[rightP.id] || config.providers[rightP.id]?.active;
148
148
  const status = isConnected ? chalk.cyan('● ') : ' ';
149
149
  const name = rightP.provider ? rightP.provider.name : rightP.name;
150
150
  const namePadded = name.toUpperCase().padEnd(maxNameLen);
151
151
  const content = status + chalk.yellow(`[${num}]`) + ' ' + chalk.cyan(namePadded);
152
- const contentLen = 2 + 3 + 1 + maxNameLen;
152
+ const contentLen = 2 + 4 + 1 + maxNameLen;
153
153
  const padR2 = rightColWidth - rightPad - contentLen;
154
154
  rightCol = ' '.repeat(rightPad) + content + ' '.repeat(Math.max(0, padR2));
155
155
  } else {