@boostyourleads/antigravity-sdk 1.0.3 → 1.0.4

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/dist/cli.js +138 -15
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -66,21 +66,144 @@ const handleLogin = async () => {
66
66
  });
67
67
  res.writeHead(200, { 'Content-Type': 'text/html' });
68
68
  res.end(`
69
- <div style="font-family: Outfit, sans-serif; background-color: #09090b; color: white; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;">
70
- <h2 style="color: #10b981; margin-bottom: 8px;">Authentication Successful!</h2>
71
- <p style="color: #a1a1aa; font-size: 14px; margin-bottom: 24px;">The Antigravity SDK has been configured on your local machine.</p>
72
- <p style="color: #71717a; font-size: 11px;">Redirecting back to BoostYourLeads...</p>
73
- </div>
74
- <script>
75
- setTimeout(() => {
76
- // Try closing the tab/window
77
- window.close();
78
- // Fallback to portal redirection if close is blocked by the browser
79
- setTimeout(() => {
80
- window.location.href = "${PORTAL_URL}";
81
- }, 500);
82
- }, 1500);
83
- </script>
69
+ <!DOCTYPE html>
70
+ <html>
71
+ <head>
72
+ <meta charset="utf-8">
73
+ <title>Authentication Successful - BYL</title>
74
+ <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap" rel="stylesheet">
75
+ <style>
76
+ body {
77
+ background-color: #030303;
78
+ color: #ffffff;
79
+ font-family: 'Outfit', sans-serif;
80
+ min-height: 100vh;
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ margin: 0;
85
+ overflow: hidden;
86
+ position: relative;
87
+ }
88
+ .glow-1 {
89
+ position: absolute;
90
+ top: -20%;
91
+ left: 20%;
92
+ width: 400px;
93
+ height: 400px;
94
+ background: rgba(99, 102, 241, 0.05);
95
+ filter: blur(100px);
96
+ border-radius: 50%;
97
+ pointer-events: none;
98
+ }
99
+ .glow-2 {
100
+ position: absolute;
101
+ bottom: -20%;
102
+ right: 20%;
103
+ width: 400px;
104
+ height: 400px;
105
+ background: rgba(168, 85, 247, 0.05);
106
+ filter: blur(100px);
107
+ border-radius: 50%;
108
+ pointer-events: none;
109
+ }
110
+ .card {
111
+ background: rgba(12, 12, 14, 0.85);
112
+ backdrop-filter: blur(20px);
113
+ -webkit-backdrop-filter: blur(20px);
114
+ border: 1px solid rgba(255, 255, 255, 0.08);
115
+ border-radius: 32px;
116
+ padding: 40px 32px;
117
+ max-width: 380px;
118
+ width: 90%;
119
+ text-align: center;
120
+ box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(255,255,255,0.02);
121
+ z-index: 10;
122
+ }
123
+ .logo-container {
124
+ width: 56px;
125
+ height: 56px;
126
+ border-radius: 16px;
127
+ background: #030303;
128
+ border: 1px solid rgba(255, 255, 255, 0.15);
129
+ display: flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ margin: 0 auto 24px auto;
133
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
134
+ }
135
+ .logo-text {
136
+ fill: #ffffff;
137
+ font-size: 195px;
138
+ font-family: -apple-system, BlinkMacSystemFont, sans-serif;
139
+ font-weight: 900;
140
+ letter-spacing: -10px;
141
+ }
142
+ h2 {
143
+ font-size: 20px;
144
+ font-weight: 900;
145
+ text-transform: uppercase;
146
+ letter-spacing: 2px;
147
+ margin: 0 0 8px 0;
148
+ color: #ffffff;
149
+ }
150
+ p {
151
+ font-size: 13px;
152
+ color: #a1a1aa;
153
+ line-height: 1.6;
154
+ margin: 0 0 24px 0;
155
+ }
156
+ .redirect-status {
157
+ font-size: 10px;
158
+ font-weight: 700;
159
+ color: #71717a;
160
+ text-transform: uppercase;
161
+ letter-spacing: 1px;
162
+ display: flex;
163
+ align-items: center;
164
+ justify-content: center;
165
+ gap: 8px;
166
+ }
167
+ .spinner {
168
+ width: 12px;
169
+ height: 12px;
170
+ border: 2px solid rgba(255, 255, 255, 0.1);
171
+ border-top: 2px solid #ffffff;
172
+ border-radius: 50%;
173
+ animation: spin 1s linear infinite;
174
+ }
175
+ @keyframes spin {
176
+ 0% { transform: rotate(0deg); }
177
+ 100% { transform: rotate(360deg); }
178
+ }
179
+ </style>
180
+ </head>
181
+ <body>
182
+ <div class="glow-1"></div>
183
+ <div class="glow-2"></div>
184
+ <div class="card">
185
+ <div class="logo-container">
186
+ <svg viewBox="0 0 512 512" width="100%" height="100%" style="padding: 10px;">
187
+ <text x="256" y="280" class="logo-text" text-anchor="middle" dominant-baseline="middle">BYL.</text>
188
+ </svg>
189
+ </div>
190
+ <h2>Success!</h2>
191
+ <p>The Antigravity SDK has been successfully authenticated on your local machine.</p>
192
+ <div class="redirect-status">
193
+ <div class="spinner"></div>
194
+ <span>Redirecting back to BoostYourLeads...</span>
195
+ </div>
196
+ </div>
197
+ <script>
198
+ setTimeout(() => {
199
+ window.close();
200
+ setTimeout(() => {
201
+ window.location.href = "${PORTAL_URL}";
202
+ }, 500);
203
+ }, 2000);
204
+ </script>
205
+ </body>
206
+ </html>
84
207
  `);
85
208
  console.log("✅ Successfully authenticated! Config saved to ~/.boostyourleads/config.json");
86
209
  // Graceful shut down
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostyourleads/antigravity-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "BoostYourLeads SDK integration for custom AI agents and Antigravity.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",