polydev-ai 1.8.99 → 1.9.0

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.
@@ -438,16 +438,14 @@ Token will be saved automatically after login.`
438
438
  result: {
439
439
  content: [{
440
440
  type: 'text',
441
- text: `╭─────────────────────────────────────────╮
442
- │ ALREADY AUTHENTICATED ✓ │
443
- ╰─────────────────────────────────────────╯
441
+ text: `ALREADY AUTHENTICATED
442
+ =====================
444
443
 
445
- 🔐 Your token is configured and ready.
444
+ Your token is configured and ready.
446
445
 
447
- 🤖 Available commands:
448
- /polydev:ask - Query multiple AI models
449
- /polydev:auth - Check status & credits
450
- • get_perspectives - Direct tool call
446
+ Available commands:
447
+ /polydev:ask Query multiple AI models
448
+ /polydev:auth Check status & credits
451
449
 
452
450
  To re-login: npx polydev-ai`
453
451
  }]
@@ -507,19 +505,20 @@ To re-login: npx polydev-ai`
507
505
  result: {
508
506
  content: [{
509
507
  type: 'text',
510
- text: `╭─────────────────────────────────────────╮
511
- │ BROWSER OPENED FOR LOGIN 🌐 │
512
- ╰─────────────────────────────────────────╯
508
+ text: `LOGIN SUCCESSFUL
509
+ ================
513
510
 
514
- 📱 Complete authentication in your browser.
511
+ Token saved to:
512
+ ~/.polydev.env
513
+ ~/.zshrc
515
514
 
516
- After login:
517
- • Token will be saved automatically
518
- • You can safely reconnect MCP or restart IDE
519
- • Use /polydev:auth to check status
515
+ IMPORTANT: Restart your IDE to activate.
520
516
 
521
- Polling for authentication completion...
522
- (Session expires in 10 minutes)`
517
+ After restart, you can:
518
+ /polydev:ask Query multiple AI models
519
+ /polydev:auth Check status & credits
520
+
521
+ Dashboard: https://polydev.ai/dashboard`
523
522
  }]
524
523
  }
525
524
  };
@@ -569,7 +568,7 @@ After login:
569
568
  this.isAuthenticated = true;
570
569
  this._freshLogin = true;
571
570
 
572
- console.error('[Polydev] Login successful! Token saved.');
571
+ console.error('[Polydev] Login successful! Token saved.');
573
572
  console.error('[Polydev] You can now use Polydev tools.');
574
573
  console.error('[Polydev] No restart required - token is active immediately.');
575
574
  return; // Stop polling
@@ -1096,7 +1095,7 @@ Error: ${error.message}`
1096
1095
  </a>
1097
1096
  <button onclick="window.close()" class="secondary-btn">Close Window</button>
1098
1097
 
1099
- <p class="note">✓ Token saved. Restart your IDE to activate.</p>
1098
+ <p class="note">Token saved. Restart your IDE to activate.</p>
1100
1099
  <div class="countdown" id="countdown">
1101
1100
  <div class="countdown-spinner"></div>
1102
1101
  <span>Closing in <strong id="seconds">5</strong>s...</span>
@@ -1957,16 +1956,16 @@ Error: ${error.message}`
1957
1956
  const modelDisplay = cliResult.model_used && cliResult.model_used !== 'cli_default' && cliResult.model_used !== 'cli_default_fallback'
1958
1957
  ? cliResult.model_used
1959
1958
  : cliResult.provider_id;
1960
- formatted += `🟢 **Local CLI Response** (${modelDisplay})\n\n`;
1959
+ formatted += `Local CLI Response (${modelDisplay})\n\n`;
1961
1960
  formatted += `${cleanCliResponse(cliResult.content)}\n\n`;
1962
- formatted += `*Latency: ${cliResult.latency_ms || 0}ms | Tokens: ${cliResult.tokens_used || 0}*\n\n`;
1961
+ formatted += `Latency: ${cliResult.latency_ms || 0}ms | Tokens: ${cliResult.tokens_used || 0}\n\n`;
1963
1962
  formatted += `---\n\n`;
1964
1963
  }
1965
1964
  }
1966
1965
 
1967
1966
  if (failedClis.length > 0 && successfulClis.length === 0) {
1968
1967
  // All local CLIs failed
1969
- formatted += `⚠️ **All Local CLIs Unavailable**\n`;
1968
+ formatted += `[Warning] All Local CLIs Unavailable\n`;
1970
1969
  for (const cliResult of failedClis) {
1971
1970
  formatted += `- ${cliResult.provider_id}: ${cliResult.error}\n`;
1972
1971
  }
@@ -1974,7 +1973,7 @@ Error: ${error.message}`
1974
1973
  formatted += `---\n\n`;
1975
1974
  } else if (failedClis.length > 0) {
1976
1975
  // Some CLIs failed, some succeeded
1977
- formatted += `⚠️ **Some CLIs Failed**\n`;
1976
+ formatted += `[Warning] Some CLIs Failed\n`;
1978
1977
  for (const cliResult of failedClis) {
1979
1978
  formatted += `- ${cliResult.provider_id}: ${cliResult.error}\n`;
1980
1979
  }
@@ -1988,13 +1987,13 @@ Error: ${error.message}`
1988
1987
  formatted += `${safePersp.content}\n\n`;
1989
1988
  } else {
1990
1989
  // Legacy formatting
1991
- const title = (successfulClis.length === 0) ? '🧠 **Perspectives Fallback**' : '🧠 **Supplemental Multi-Model Perspectives**';
1990
+ const title = (successfulClis.length === 0) ? 'Perspectives Fallback' : 'Supplemental Multi-Model Perspectives';
1992
1991
  formatted += `${title}\n\n`;
1993
1992
  formatted += `${safePersp.content}\n\n`;
1994
1993
  }
1995
1994
  } else if (successfulClis.length > 0) {
1996
1995
  // Show remote error only if we have local success
1997
- formatted += `❌ **Perspectives request failed**: ${safePersp.error || 'Unknown error'}\n\n`;
1996
+ formatted += `❌ Perspectives request failed: ${safePersp.error || 'Unknown error'}\n\n`;
1998
1997
  }
1999
1998
 
2000
1999
  return formatted.trim();
@@ -2257,28 +2256,28 @@ Error: ${error.message}`
2257
2256
  const cliCount = result.local_cli_count || 1;
2258
2257
 
2259
2258
  if (cliCount > 1) {
2260
- return `✅ **Multi-CLI Response** (${cliCount} local CLIs + perspectives)\n\n${result.content}\n\n*Total Latency: ${result.latency_ms || 0}ms | Total Tokens: ${result.tokens_used || 0} | ${result.timestamp}*`;
2259
+ return `Multi-CLI Response (${cliCount} local CLIs + perspectives)\n\n${result.content}\n\nTotal Latency: ${result.latency_ms || 0}ms | Total Tokens: ${result.tokens_used || 0} | ${result.timestamp}`;
2261
2260
  } else {
2262
- return `✅ **CLI Response** (${result.provider || 'Unknown'} - ${result.mode || 'unknown'} mode)\n\n${result.content}\n\n*Latency: ${result.latency_ms || 0}ms | Tokens: ${result.tokens_used || 0} | ${result.timestamp}*`;
2261
+ return `CLI Response (${result.provider || 'Unknown'} - ${result.mode || 'unknown'} mode)\n\n${result.content}\n\nLatency: ${result.latency_ms || 0}ms | Tokens: ${result.tokens_used || 0} | ${result.timestamp}`;
2263
2262
  }
2264
2263
  } else {
2265
2264
  // Status/detection response
2266
- let formatted = `✅ **CLI Operation Success**\n\n`;
2265
+ let formatted = `CLI Operation Success\n\n`;
2267
2266
  formatted += `${result.message}\n\n`;
2268
2267
 
2269
2268
  if (result.results) {
2270
- formatted += `**Results:**\n`;
2269
+ formatted += `Results:\n`;
2271
2270
  for (const [providerId, status] of Object.entries(result.results)) {
2272
- const icon = status.available ? '🟢' : '🔴';
2273
- const authIcon = status.authenticated ? '🔐' : '🔓';
2274
- formatted += `- ${icon} ${authIcon} **${providerId}**: ${status.available ? 'Available' : 'Not Available'}`;
2271
+ const icon = status.available ? '[+]' : '[-]';
2272
+ const authStatus = status.authenticated ? '[auth]' : '[no-auth]';
2273
+ formatted += `- ${icon} ${authStatus} ${providerId}: ${status.available ? 'Available' : 'Not Available'}`;
2275
2274
  if (status.version) formatted += ` (${status.version})`;
2276
2275
  if (status.error) formatted += ` - ${status.error}`;
2277
2276
  formatted += `\n`;
2278
2277
  }
2279
2278
  }
2280
2279
 
2281
- formatted += `\n*${result.local_only ? 'Local execution' : 'Remote execution'} | ${result.timestamp}*`;
2280
+ formatted += `\n${result.local_only ? 'Local execution' : 'Remote execution'} | ${result.timestamp}`;
2282
2281
  return formatted;
2283
2282
  }
2284
2283
  }
@@ -2544,22 +2543,20 @@ Error: ${error.message}`
2544
2543
  result: {
2545
2544
  content: [{
2546
2545
  type: 'text',
2547
- text: `╭─────────────────────────────────────────╮
2548
- │ LOGIN SUCCESSFUL! ✓ │
2549
- ╰─────────────────────────────────────────╯
2546
+ text: `LOGIN SUCCESSFUL
2547
+ ================
2550
2548
 
2551
- 🔐 Token saved to:
2552
- ~/.polydev.env
2553
- ~/.zshrc
2549
+ Token saved to:
2550
+ ~/.polydev.env
2551
+ ~/.zshrc
2554
2552
 
2555
- ⚠️ IMPORTANT: Restart your IDE to activate.
2553
+ IMPORTANT: Restart your IDE to activate.
2556
2554
 
2557
- 🤖 After restart, you can:
2558
- • Use /polydev:ask to query multiple AI models
2559
- • Use /polydev:auth to check status & credits
2560
- • Use get_perspectives tool directly
2555
+ After restart, you can:
2556
+ /polydev:ask Query multiple AI models
2557
+ /polydev:auth Check status & credits
2561
2558
 
2562
- 📊 Dashboard: https://polydev.ai/dashboard`
2559
+ Dashboard: https://polydev.ai/dashboard`
2563
2560
  }]
2564
2561
  }
2565
2562
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.99",
3
+ "version": "1.9.0",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },