antri_cli 1.40.0 → 1.42.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.
- package/dist/cloud/browserAuth.d.ts.map +1 -1
- package/dist/cloud/browserAuth.js +9 -134
- package/dist/cloud/browserAuth.js.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/updater.d.ts +1 -1
- package/dist/core/updater.js +1 -1
- package/dist/desktop/public/index.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAuth.d.ts","sourceRoot":"","sources":["../../src/cloud/browserAuth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,WAAW,EAAE,MAAM,WAAW,CAAC;AAErD,qBAAa,iBAAiB;IAC5B;;OAEG;WACiB,cAAc,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAsJjE,OAAO,CAAC,MAAM,CAAC,WAAW;IAe1B,OAAO,CAAC,MAAM,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"browserAuth.d.ts","sourceRoot":"","sources":["../../src/cloud/browserAuth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,WAAW,EAAE,MAAM,WAAW,CAAC;AAErD,qBAAa,iBAAiB;IAC5B;;OAEG;WACiB,cAAc,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAsJjE,OAAO,CAAC,MAAM,CAAC,WAAW;IAe1B,OAAO,CAAC,MAAM,CAAC,eAAe;CAsN/B"}
|
|
@@ -20,7 +20,7 @@ export class BrowserAuthServer {
|
|
|
20
20
|
const apiKey = syncCfg.apiKey || process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY || '';
|
|
21
21
|
const googleClientId = process.env.GOOGLE_CLIENT_ID || syncCfg.googleClientId || '';
|
|
22
22
|
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
|
|
23
|
-
res.end(this.renderLoginPage(port
|
|
23
|
+
res.end(this.renderLoginPage(port));
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
// 2. Google OAuth Popup Callback Endpoint
|
|
@@ -164,7 +164,7 @@ export class BrowserAuthServer {
|
|
|
164
164
|
exec(`xdg-open "${targetUrl}"`);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
static renderLoginPage(port
|
|
167
|
+
static renderLoginPage(port) {
|
|
168
168
|
return `<!DOCTYPE html>
|
|
169
169
|
<html lang="en">
|
|
170
170
|
<head>
|
|
@@ -174,7 +174,6 @@ export class BrowserAuthServer {
|
|
|
174
174
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
175
175
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
176
176
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
|
|
177
|
-
${googleClientId ? '<script src="https://accounts.google.com/gsi/client" async defer></script>' : ''}
|
|
178
177
|
<style>
|
|
179
178
|
:root {
|
|
180
179
|
--bg: #fcfbf9;
|
|
@@ -200,7 +199,7 @@ export class BrowserAuthServer {
|
|
|
200
199
|
border: 1px solid var(--border);
|
|
201
200
|
border-radius: 16px;
|
|
202
201
|
width: 100%;
|
|
203
|
-
max-width:
|
|
202
|
+
max-width: 420px;
|
|
204
203
|
padding: 36px 32px;
|
|
205
204
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
|
|
206
205
|
text-align: center;
|
|
@@ -227,52 +226,11 @@ export class BrowserAuthServer {
|
|
|
227
226
|
p.subtitle {
|
|
228
227
|
font-size: 13px;
|
|
229
228
|
color: var(--subtext);
|
|
230
|
-
margin-bottom:
|
|
229
|
+
margin-bottom: 24px;
|
|
231
230
|
}
|
|
232
|
-
.google-container {
|
|
233
|
-
margin-bottom: 6px;
|
|
234
|
-
display: flex;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
}
|
|
237
|
-
.btn-google {
|
|
238
|
-
width: 100%;
|
|
239
|
-
background: var(--subtle);
|
|
240
|
-
border: 1px solid var(--border);
|
|
241
|
-
color: var(--text);
|
|
242
|
-
font-size: 14px;
|
|
243
|
-
font-weight: 700;
|
|
244
|
-
padding: 13px 16px;
|
|
245
|
-
border-radius: 8px;
|
|
246
|
-
display: flex;
|
|
247
|
-
align-items: center;
|
|
248
|
-
justify-content: center;
|
|
249
|
-
gap: 10px;
|
|
250
|
-
cursor: pointer;
|
|
251
|
-
transition: all 0.15s ease;
|
|
252
|
-
}
|
|
253
|
-
.btn-google:hover {
|
|
254
|
-
background: #eeeae0;
|
|
255
|
-
border-color: #d6cfbf;
|
|
256
|
-
}
|
|
257
|
-
.divider {
|
|
258
|
-
display: flex;
|
|
259
|
-
align-items: center;
|
|
260
|
-
margin: 20px 0;
|
|
261
|
-
color: #a8a29e;
|
|
262
|
-
font-size: 11px;
|
|
263
|
-
font-weight: 700;
|
|
264
|
-
letter-spacing: 0.8px;
|
|
265
|
-
}
|
|
266
|
-
.divider::before, .divider::after {
|
|
267
|
-
content: '';
|
|
268
|
-
flex: 1;
|
|
269
|
-
height: 1px;
|
|
270
|
-
background: var(--border);
|
|
271
|
-
}
|
|
272
|
-
.divider span { padding: 0 12px; }
|
|
273
231
|
.input-group {
|
|
274
232
|
text-align: left;
|
|
275
|
-
margin-bottom:
|
|
233
|
+
margin-bottom: 16px;
|
|
276
234
|
}
|
|
277
235
|
label {
|
|
278
236
|
display: block;
|
|
@@ -307,7 +265,7 @@ export class BrowserAuthServer {
|
|
|
307
265
|
border-radius: 8px;
|
|
308
266
|
cursor: pointer;
|
|
309
267
|
transition: opacity 0.15s;
|
|
310
|
-
margin-top:
|
|
268
|
+
margin-top: 8px;
|
|
311
269
|
}
|
|
312
270
|
.btn-submit:hover { opacity: 0.92; }
|
|
313
271
|
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
|
|
@@ -350,21 +308,6 @@ export class BrowserAuthServer {
|
|
|
350
308
|
<h1>ANTRI CODE</h1>
|
|
351
309
|
<p class="subtitle">Secure authentication for terminal and cloud partition</p>
|
|
352
310
|
|
|
353
|
-
<!-- Google Sign In Button -->
|
|
354
|
-
<div class="google-container">
|
|
355
|
-
<button class="btn-google" id="google-btn" type="button">
|
|
356
|
-
<svg width="18" height="18" viewBox="0 0 24 24">
|
|
357
|
-
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
|
|
358
|
-
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
|
|
359
|
-
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z"/>
|
|
360
|
-
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z"/>
|
|
361
|
-
</svg>
|
|
362
|
-
<span id="google-btn-text">Sign in with Google</span>
|
|
363
|
-
</button>
|
|
364
|
-
</div>
|
|
365
|
-
|
|
366
|
-
<div class="divider"><span>OR PASSWORD LOGIN / REGISTER</span></div>
|
|
367
|
-
|
|
368
311
|
<form id="auth-form">
|
|
369
312
|
<div class="input-group">
|
|
370
313
|
<label for="email">Account Email</label>
|
|
@@ -388,36 +331,19 @@ export class BrowserAuthServer {
|
|
|
388
331
|
</div>
|
|
389
332
|
|
|
390
333
|
<script>
|
|
391
|
-
function
|
|
392
|
-
try {
|
|
393
|
-
var base64Url = token.split('.')[1];
|
|
394
|
-
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
395
|
-
var jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) {
|
|
396
|
-
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
397
|
-
}).join(''));
|
|
398
|
-
return JSON.parse(jsonPayload);
|
|
399
|
-
} catch (e) {
|
|
400
|
-
return null;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
async function authenticate(email, password = '', provider = 'email', googleToken = '') {
|
|
334
|
+
async function authenticate(email, password) {
|
|
405
335
|
const statusMsg = document.getElementById('status-msg');
|
|
406
336
|
const submitBtn = document.getElementById('submit-btn');
|
|
407
|
-
const googleBtnText = document.getElementById('google-btn-text');
|
|
408
337
|
|
|
409
338
|
statusMsg.style.display = 'none';
|
|
410
339
|
submitBtn.disabled = true;
|
|
411
340
|
submitBtn.innerText = 'Verifying credentials...';
|
|
412
|
-
if (provider === 'google') {
|
|
413
|
-
googleBtnText.innerText = 'Linking Google Account...';
|
|
414
|
-
}
|
|
415
341
|
|
|
416
342
|
try {
|
|
417
343
|
const res = await fetch('/api/callback', {
|
|
418
344
|
method: 'POST',
|
|
419
345
|
headers: { 'Content-Type': 'application/json' },
|
|
420
|
-
body: JSON.stringify({ email, password, provider
|
|
346
|
+
body: JSON.stringify({ email, password, provider: 'email' })
|
|
421
347
|
});
|
|
422
348
|
const data = await res.json();
|
|
423
349
|
if (data.success) {
|
|
@@ -430,7 +356,6 @@ export class BrowserAuthServer {
|
|
|
430
356
|
statusMsg.style.display = 'block';
|
|
431
357
|
submitBtn.disabled = false;
|
|
432
358
|
submitBtn.innerText = 'Login / Register & Unlock CLI';
|
|
433
|
-
googleBtnText.innerText = 'Sign in with Google';
|
|
434
359
|
}
|
|
435
360
|
} catch (err) {
|
|
436
361
|
statusMsg.innerText = 'Connection error: ' + err.message;
|
|
@@ -438,7 +363,6 @@ export class BrowserAuthServer {
|
|
|
438
363
|
statusMsg.style.display = 'block';
|
|
439
364
|
submitBtn.disabled = false;
|
|
440
365
|
submitBtn.innerText = 'Login / Register & Unlock CLI';
|
|
441
|
-
googleBtnText.innerText = 'Sign in with Google';
|
|
442
366
|
}
|
|
443
367
|
}
|
|
444
368
|
|
|
@@ -447,58 +371,9 @@ export class BrowserAuthServer {
|
|
|
447
371
|
const email = document.getElementById('email').value.trim();
|
|
448
372
|
const password = document.getElementById('password').value;
|
|
449
373
|
if (email && password) {
|
|
450
|
-
authenticate(email, password
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
window.addEventListener('message', (event) => {
|
|
455
|
-
if (event.data && event.data.type === 'ANTRI_AUTH_SUCCESS') {
|
|
456
|
-
document.getElementById('auth-form-container').style.display = 'none';
|
|
457
|
-
document.getElementById('success-view').style.display = 'block';
|
|
458
|
-
document.getElementById('success-desc').innerText = 'Authenticated with Google as ' + event.data.email + '. Return to your terminal now.';
|
|
374
|
+
authenticate(email, password);
|
|
459
375
|
}
|
|
460
376
|
});
|
|
461
|
-
|
|
462
|
-
const googleClientId = "${googleClientId}";
|
|
463
|
-
|
|
464
|
-
function openGooglePopup() {
|
|
465
|
-
if (!googleClientId) {
|
|
466
|
-
const emailInput = document.getElementById('email');
|
|
467
|
-
const passwordInput = document.getElementById('password');
|
|
468
|
-
const statusMsg = document.getElementById('status-msg');
|
|
469
|
-
emailInput.placeholder = 'e.g. ashuishan9090@gmail.com';
|
|
470
|
-
emailInput.focus();
|
|
471
|
-
statusMsg.style.display = 'block';
|
|
472
|
-
statusMsg.style.color = '#78716c';
|
|
473
|
-
statusMsg.innerText = '🔒 Enter your Google email and password below to secure your private cloud partition.';
|
|
474
|
-
return;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
const googleBtnText = document.getElementById('google-btn-text');
|
|
478
|
-
googleBtnText.innerText = 'Opening Google...';
|
|
479
|
-
|
|
480
|
-
const authUrl = 'https://accounts.google.com/o/oauth2/v2/auth?' + new URLSearchParams({
|
|
481
|
-
client_id: googleClientId,
|
|
482
|
-
redirect_uri: window.location.origin + '/api/google/callback',
|
|
483
|
-
response_type: 'token id_token',
|
|
484
|
-
scope: 'openid email profile',
|
|
485
|
-
nonce: Math.random().toString(36).substring(2),
|
|
486
|
-
prompt: 'select_account'
|
|
487
|
-
});
|
|
488
|
-
|
|
489
|
-
const width = 500, height = 640;
|
|
490
|
-
const left = (window.screen.width / 2) - (width / 2);
|
|
491
|
-
const top = (window.screen.height / 2) - (height / 2);
|
|
492
|
-
const popup = window.open(authUrl, 'google_signin_popup', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
|
|
493
|
-
|
|
494
|
-
if (!popup || popup.closed || typeof popup.closed === 'undefined') {
|
|
495
|
-
window.location.href = authUrl;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
document.getElementById('google-btn').addEventListener('click', () => {
|
|
500
|
-
openGooglePopup();
|
|
501
|
-
});
|
|
502
377
|
</script>
|
|
503
378
|
</body>
|
|
504
379
|
</html>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAuth.js","sourceRoot":"","sources":["../../src/cloud/browserAuth.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAe,MAAM,WAAW,CAAC;AAErD,MAAM,OAAO,iBAAiB;IAC5B;;OAEG;IACI,MAAM,CAAC,KAAK,CAAC,cAAc;QAChC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,IAAI,MAAM,GAAuB,IAAI,CAAC;YACtC,IAAI,IAAI,GAAG,KAAK,CAAC;YAEjB,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;gBAC5C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC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I,GAAG,EAAE,CAAC;oBACR,IAAI,CAAC,kDAAkD,SAAS,IAAI,CAAC,CAAC;gBACxE,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;YACjC,IAAI,CAAC,SAAS,SAAS,GAAG,CAAC,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,aAAa,SAAS,GAAG,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,eAAe,CAAC,IAAY;QACzC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmNH,CAAC;IACP,CAAC;CACF"}
|
package/dist/core/config.js
CHANGED
package/dist/core/updater.d.ts
CHANGED
package/dist/core/updater.js
CHANGED
|
@@ -4,7 +4,7 @@ import chalk from 'chalk';
|
|
|
4
4
|
import ora from 'ora';
|
|
5
5
|
const execPromise = util.promisify(exec);
|
|
6
6
|
export class Updater {
|
|
7
|
-
static CURRENT_VERSION = '1.
|
|
7
|
+
static CURRENT_VERSION = '1.42.0';
|
|
8
8
|
static PACKAGE_NAME = 'antri_cli';
|
|
9
9
|
/**
|
|
10
10
|
* Fetches latest release version directly from registry.npmjs.org (cache-free)
|