polydev-ai 1.8.82 → 1.8.83
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/mcp/login.js +35 -36
- package/mcp/manifest.json +2 -2
- package/mcp/stdio-wrapper.js +36 -40
- package/package.json +1 -1
package/mcp/login.js
CHANGED
|
@@ -450,65 +450,64 @@ function getSuccessHTML() {
|
|
|
450
450
|
body {
|
|
451
451
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
452
452
|
display: flex; justify-content: center; align-items: center;
|
|
453
|
-
min-height: 100vh; background:
|
|
453
|
+
min-height: 100vh; background: #fafafa;
|
|
454
454
|
padding: 20px;
|
|
455
455
|
}
|
|
456
456
|
.container {
|
|
457
457
|
text-align: center; padding: 40px; max-width: 480px; width: 100%;
|
|
458
|
-
background: white; border-radius:
|
|
459
|
-
|
|
458
|
+
background: white; border-radius: 12px;
|
|
459
|
+
border: 1px solid #e5e5e5;
|
|
460
460
|
}
|
|
461
461
|
.logo {
|
|
462
|
-
width:
|
|
463
|
-
background:
|
|
464
|
-
|
|
465
|
-
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
|
|
462
|
+
width: 64px; height: 64px; margin: 0 auto 16px;
|
|
463
|
+
background: #111; border-radius: 14px;
|
|
464
|
+
display: flex; align-items: center; justify-content: center;
|
|
466
465
|
}
|
|
467
|
-
.logo svg { width:
|
|
468
|
-
.brand { font-size:
|
|
469
|
-
.tagline { color: #666; font-size:
|
|
466
|
+
.logo svg { width: 36px; height: 36px; }
|
|
467
|
+
.brand { font-size: 24px; font-weight: 700; color: #111; margin-bottom: 4px; letter-spacing: -0.5px; }
|
|
468
|
+
.tagline { color: #666; font-size: 13px; margin-bottom: 24px; }
|
|
470
469
|
.success-badge {
|
|
471
470
|
display: inline-flex; align-items: center; gap: 8px;
|
|
472
|
-
background: #
|
|
473
|
-
border-radius:
|
|
474
|
-
margin-bottom: 28px;
|
|
471
|
+
background: #f0fdf4; color: #166534; padding: 10px 20px;
|
|
472
|
+
border-radius: 6px; font-weight: 600; font-size: 14px;
|
|
473
|
+
margin-bottom: 28px; border: 1px solid #bbf7d0;
|
|
475
474
|
}
|
|
476
|
-
.success-badge svg { width:
|
|
475
|
+
.success-badge svg { width: 18px; height: 18px; }
|
|
477
476
|
.section { text-align: left; margin-bottom: 20px; }
|
|
478
|
-
.section-title { font-size:
|
|
479
|
-
.api-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap:
|
|
477
|
+
.section-title { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
|
|
478
|
+
.api-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
|
|
480
479
|
.api-item {
|
|
481
|
-
padding:
|
|
482
|
-
font-size:
|
|
480
|
+
padding: 10px; background: #fafafa; border-radius: 6px;
|
|
481
|
+
font-size: 12px; color: #333; text-align: center; border: 1px solid #eee;
|
|
483
482
|
}
|
|
484
483
|
.steps {
|
|
485
|
-
background: #
|
|
486
|
-
margin-bottom: 20px; text-align: left;
|
|
484
|
+
background: #fafafa; border-radius: 8px; padding: 14px;
|
|
485
|
+
margin-bottom: 20px; text-align: left; border: 1px solid #eee;
|
|
487
486
|
}
|
|
488
|
-
.step { color: #
|
|
487
|
+
.step { color: #333; font-size: 12px; margin-bottom: 8px; display: flex; gap: 10px; }
|
|
489
488
|
.step:last-child { margin-bottom: 0; }
|
|
490
489
|
.step-num {
|
|
491
|
-
width:
|
|
492
|
-
border-radius: 50%; font-size:
|
|
490
|
+
width: 18px; height: 18px; background: #111; color: white;
|
|
491
|
+
border-radius: 50%; font-size: 10px; font-weight: 600;
|
|
493
492
|
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
494
493
|
}
|
|
495
|
-
code { background: #
|
|
496
|
-
.divider { height: 1px; background: #
|
|
494
|
+
code { background: #eee; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
|
|
495
|
+
.divider { height: 1px; background: #eee; margin: 24px 0; }
|
|
497
496
|
.action-btn {
|
|
498
|
-
display: block; width: 100%; padding:
|
|
499
|
-
background:
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
transition: transform 0.2s, box-shadow 0.2s;
|
|
497
|
+
display: block; width: 100%; padding: 12px 20px;
|
|
498
|
+
background: #111; color: white; border: none; border-radius: 8px;
|
|
499
|
+
font-size: 14px; font-weight: 600; cursor: pointer;
|
|
500
|
+
text-decoration: none; margin-bottom: 10px;
|
|
501
|
+
transition: background 0.2s;
|
|
504
502
|
}
|
|
505
|
-
.action-btn:hover {
|
|
503
|
+
.action-btn:hover { background: #333; }
|
|
506
504
|
.secondary-btn {
|
|
507
|
-
display: block; width: 100%; padding:
|
|
508
|
-
background:
|
|
509
|
-
font-size:
|
|
505
|
+
display: block; width: 100%; padding: 10px 20px;
|
|
506
|
+
background: white; color: #333; border: 1px solid #ddd; border-radius: 8px;
|
|
507
|
+
font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
|
|
510
508
|
}
|
|
511
|
-
.
|
|
509
|
+
.secondary-btn:hover { background: #fafafa; }
|
|
510
|
+
.note { color: #999; font-size: 11px; margin-top: 16px; }
|
|
512
511
|
</style>
|
|
513
512
|
</head>
|
|
514
513
|
<body>
|
package/mcp/manifest.json
CHANGED
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -707,64 +707,61 @@ class StdioMCPWrapper {
|
|
|
707
707
|
body {
|
|
708
708
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
709
709
|
display: flex; justify-content: center; align-items: center;
|
|
710
|
-
min-height: 100vh; background:
|
|
710
|
+
min-height: 100vh; background: #fafafa;
|
|
711
711
|
padding: 20px;
|
|
712
712
|
}
|
|
713
713
|
.container {
|
|
714
714
|
text-align: center; padding: 40px; max-width: 480px; width: 100%;
|
|
715
|
-
background: white; border-radius:
|
|
716
|
-
|
|
715
|
+
background: white; border-radius: 12px;
|
|
716
|
+
border: 1px solid #e5e5e5;
|
|
717
717
|
}
|
|
718
718
|
.logo {
|
|
719
|
-
width:
|
|
720
|
-
background:
|
|
721
|
-
|
|
722
|
-
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
|
|
719
|
+
width: 64px; height: 64px; margin: 0 auto 16px;
|
|
720
|
+
background: #111; border-radius: 14px;
|
|
721
|
+
display: flex; align-items: center; justify-content: center;
|
|
723
722
|
}
|
|
724
|
-
.logo svg { width:
|
|
725
|
-
.brand { font-size:
|
|
726
|
-
.tagline { color: #666; font-size:
|
|
723
|
+
.logo svg { width: 36px; height: 36px; }
|
|
724
|
+
.brand { font-size: 24px; font-weight: 700; color: #111; margin-bottom: 4px; letter-spacing: -0.5px; }
|
|
725
|
+
.tagline { color: #666; font-size: 13px; margin-bottom: 24px; }
|
|
727
726
|
.success-badge {
|
|
728
727
|
display: inline-flex; align-items: center; gap: 8px;
|
|
729
|
-
background: #
|
|
730
|
-
border-radius:
|
|
731
|
-
margin-bottom: 28px;
|
|
728
|
+
background: #f0fdf4; color: #166534; padding: 10px 20px;
|
|
729
|
+
border-radius: 6px; font-weight: 600; font-size: 14px;
|
|
730
|
+
margin-bottom: 28px; border: 1px solid #bbf7d0;
|
|
732
731
|
}
|
|
733
|
-
.success-badge svg { width:
|
|
734
|
-
.section {
|
|
735
|
-
|
|
736
|
-
}
|
|
737
|
-
.section-title { font-size: 12px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
|
|
732
|
+
.success-badge svg { width: 18px; height: 18px; }
|
|
733
|
+
.section { text-align: left; margin-bottom: 20px; }
|
|
734
|
+
.section-title { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
|
|
738
735
|
.cli-item {
|
|
739
736
|
display: flex; align-items: center; gap: 10px;
|
|
740
|
-
padding: 10px
|
|
741
|
-
margin-bottom:
|
|
737
|
+
padding: 10px 12px; background: #fafafa; border-radius: 6px;
|
|
738
|
+
margin-bottom: 6px; font-size: 13px; color: #333; border: 1px solid #eee;
|
|
742
739
|
}
|
|
743
740
|
.cli-dot { width: 8px; height: 8px; border-radius: 50%; }
|
|
744
|
-
.cli-dot.green { background: #
|
|
745
|
-
.cli-dot.yellow { background: #
|
|
746
|
-
.cli-dot.gray { background: #
|
|
747
|
-
.api-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap:
|
|
741
|
+
.cli-dot.green { background: #22c55e; }
|
|
742
|
+
.cli-dot.yellow { background: #eab308; }
|
|
743
|
+
.cli-dot.gray { background: #d4d4d4; }
|
|
744
|
+
.api-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
|
|
748
745
|
.api-item {
|
|
749
|
-
padding:
|
|
750
|
-
font-size:
|
|
746
|
+
padding: 10px; background: #fafafa; border-radius: 6px;
|
|
747
|
+
font-size: 12px; color: #333; text-align: center; border: 1px solid #eee;
|
|
751
748
|
}
|
|
752
|
-
.divider { height: 1px; background: #
|
|
749
|
+
.divider { height: 1px; background: #eee; margin: 24px 0; }
|
|
753
750
|
.action-btn {
|
|
754
|
-
display: block; width: 100%; padding:
|
|
755
|
-
background:
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
transition: transform 0.2s, box-shadow 0.2s;
|
|
751
|
+
display: block; width: 100%; padding: 12px 20px;
|
|
752
|
+
background: #111; color: white; border: none; border-radius: 8px;
|
|
753
|
+
font-size: 14px; font-weight: 600; cursor: pointer;
|
|
754
|
+
text-decoration: none; margin-bottom: 10px;
|
|
755
|
+
transition: background 0.2s;
|
|
760
756
|
}
|
|
761
|
-
.action-btn:hover {
|
|
757
|
+
.action-btn:hover { background: #333; }
|
|
762
758
|
.secondary-btn {
|
|
763
|
-
display: block; width: 100%; padding:
|
|
764
|
-
background:
|
|
765
|
-
font-size:
|
|
759
|
+
display: block; width: 100%; padding: 10px 20px;
|
|
760
|
+
background: white; color: #333; border: 1px solid #ddd; border-radius: 8px;
|
|
761
|
+
font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
|
|
766
762
|
}
|
|
767
|
-
.
|
|
763
|
+
.secondary-btn:hover { background: #fafafa; }
|
|
764
|
+
.note { color: #999; font-size: 11px; margin-top: 16px; }
|
|
768
765
|
</style>
|
|
769
766
|
</head>
|
|
770
767
|
<body>
|
|
@@ -789,7 +786,7 @@ class StdioMCPWrapper {
|
|
|
789
786
|
|
|
790
787
|
<div class="section">
|
|
791
788
|
<div class="section-title">Local CLI Tools (Free)</div>
|
|
792
|
-
|
|
789
|
+
\${cliListHTML}
|
|
793
790
|
</div>
|
|
794
791
|
|
|
795
792
|
<div class="section">
|
|
@@ -2299,7 +2296,6 @@ class StdioMCPWrapper {
|
|
|
2299
2296
|
|
|
2300
2297
|
if (response.ok) {
|
|
2301
2298
|
const data = await response.json();
|
|
2302
|
-
this.isAuthenticated = true;
|
|
2303
2299
|
const credits = data.credits_remaining?.toLocaleString() || 0;
|
|
2304
2300
|
const tier = data.subscription_tier || 'Free';
|
|
2305
2301
|
|