polydev-ai 1.8.74 → 1.8.75

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.
Files changed (2) hide show
  1. package/mcp/login.js +28 -8
  2. package/package.json +1 -1
package/mcp/login.js CHANGED
@@ -95,31 +95,51 @@ async function runLogin() {
95
95
  const savedTo = saveToken(token);
96
96
 
97
97
  res.writeHead(200, {
98
- 'Content-Type': 'text/html',
98
+ 'Content-Type': 'text/html; charset=utf-8',
99
99
  'Access-Control-Allow-Origin': '*'
100
100
  });
101
101
  res.end(`
102
102
  <!DOCTYPE html>
103
103
  <html>
104
104
  <head>
105
- <title>Polydev - Success</title>
105
+ <meta charset="utf-8">
106
+ <title>Polydev - Authenticated</title>
106
107
  <style>
107
108
  body { font-family: system-ui, -apple-system, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #fff; }
108
109
  .container { text-align: center; padding: 40px; max-width: 400px; }
109
- h1 { color: #000; margin-bottom: 16px; font-size: 24px; }
110
- p { color: #666; margin: 8px 0; }
111
- .success { color: #16a34a; font-size: 48px; margin-bottom: 16px; }
112
- code { background: #f5f5f5; padding: 2px 8px; border-radius: 4px; font-size: 14px; }
110
+ .logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
111
+ .logo svg { width: 48px; height: 48px; }
112
+ .logo span { font-size: 32px; font-weight: 700; color: #000; }
113
+ .success-icon { width: 64px; height: 64px; background: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
114
+ .success-icon svg { width: 32px; height: 32px; }
115
+ h1 { color: #000; margin-bottom: 16px; font-size: 24px; font-weight: 600; }
116
+ p { color: #666; margin: 8px 0; font-size: 14px; }
117
+ code { background: #f5f5f5; padding: 4px 12px; border-radius: 6px; font-size: 13px; color: #000; }
118
+ .close-msg { margin-top: 32px; color: #999; font-size: 13px; }
113
119
  </style>
114
120
  </head>
115
121
  <body>
116
122
  <div class="container">
117
- <div class="success">✓</div>
123
+ <div class="logo">
124
+ <svg viewBox="0 0 600 600" fill="#000">
125
+ <g transform="translate(0,600) scale(0.1,-0.1)">
126
+ <path d="M2938 4023 c-31 -54 -97 -169 -148 -257 -50 -87 -96 -168 -102 -180 -8 -20 7 -52 112 -232 67 -115 149 -256 182 -314 34 -58 75 -130 93 -160 18 -30 76 -131 130 -225 134 -235 124 -221 140 -198 45 65 306 547 301 558 -13 34 -642 1105 -649 1105 -2 0 -28 -44 -59 -97z"/>
127
+ <path d="M2305 2933 c-164 -285 -605 -1057 -605 -1059 0 -2 144 -4 320 -4 l320 0 24 38 c13 20 85 143 159 272 74 129 204 357 289 505 85 149 160 280 167 293 l12 22 -324 0 -323 0 -39 -67z"/>
128
+ <path d="M2678 2418 c5 -7 36 -60 67 -118 32 -58 79 -141 105 -185 26 -44 69 -117 95 -162 l48 -83 653 0 c360 0 654 2 654 3 0 2 -71 127 -159 278 l-159 274 -657 3 c-527 2 -656 0 -647 -10z"/>
129
+ </g>
130
+ </svg>
131
+ <span>Polydev</span>
132
+ </div>
133
+ <div class="success-icon">
134
+ <svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
135
+ <polyline points="20 6 9 17 4 12"></polyline>
136
+ </svg>
137
+ </div>
118
138
  <h1>Authenticated!</h1>
119
139
  <p>Token saved to your shell config.</p>
120
140
  <p>Restart your terminal or run:</p>
121
141
  <p><code>source ~/.zshrc</code></p>
122
- <p style="margin-top: 24px; font-size: 14px;">You can close this window.</p>
142
+ <p class="close-msg">You can close this window.</p>
123
143
  </div>
124
144
  </body>
125
145
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.74",
3
+ "version": "1.8.75",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },