mindvest-atlas 0.4.0 → 0.4.1
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/package.json +1 -1
- package/src/auth/loopback.js +10 -13
- package/src/config.js +1 -1
package/package.json
CHANGED
package/src/auth/loopback.js
CHANGED
|
@@ -5,39 +5,36 @@ import { LOGO_DATA_URI } from '../brand.js';
|
|
|
5
5
|
import http from 'node:http';
|
|
6
6
|
import { REDIRECT_PATH } from '../config.js';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// The page is the mark and the sentence, nothing else — no tick, no accent.
|
|
9
|
+
const PAGE = (title, body) => `<!doctype html>
|
|
9
10
|
<html lang="en"><head><meta charset="utf-8">
|
|
10
11
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
11
12
|
<title>${title}</title>
|
|
12
13
|
<style>
|
|
13
14
|
:root { color-scheme: dark; }
|
|
14
15
|
body { margin:0; min-height:100vh; display:flex; flex-direction:column;
|
|
15
|
-
align-items:center; justify-content:center; text-align:center; gap:
|
|
16
|
+
align-items:center; justify-content:center; text-align:center; gap:30px;
|
|
16
17
|
font-family:'Roboto',-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
|
|
17
18
|
background:#0e151d; color:#ffffff; padding:24px; }
|
|
18
|
-
img { width:
|
|
19
|
-
h1 { font-size:
|
|
20
|
-
p { font-size:
|
|
21
|
-
.tick { font-size:22px; color:${accent}; }
|
|
19
|
+
img { width:180px; height:auto; display:block; }
|
|
20
|
+
h1 { font-size:44px; font-weight:700; letter-spacing:-.6px; margin:0; color:#ffffff; }
|
|
21
|
+
p { font-size:22px; line-height:1.6; margin:0; max-width:38ch; color:#ffffff; }
|
|
22
22
|
code { background:rgba(255,255,255,.08); padding:2px 7px; border-radius:6px; color:#ffffff; }
|
|
23
23
|
</style></head>
|
|
24
24
|
<body>
|
|
25
25
|
<img src="${LOGO_DATA_URI}" alt="Atlas">
|
|
26
|
-
<div class="tick">${heading}</div>
|
|
27
26
|
${body}
|
|
28
27
|
<script>setTimeout(function(){ try { window.close(); } catch (e) {} }, 1600);</script>
|
|
29
28
|
</body></html>`;
|
|
30
29
|
|
|
31
30
|
const SUCCESS_HTML = PAGE(
|
|
32
|
-
'Atlas — signed in',
|
|
33
|
-
'<h1>You are signed in</h1><p>
|
|
34
|
-
'#4ade80',
|
|
31
|
+
'Atlas — signed in',
|
|
32
|
+
'<h1>You are signed in</h1><p>You can close this window.</p>',
|
|
35
33
|
);
|
|
36
34
|
|
|
37
35
|
const ERROR_HTML = (msg) => PAGE(
|
|
38
|
-
'Atlas — sign-in failed',
|
|
39
|
-
`<h1>Sign-in failed</h1><p>${escapeHtml(msg)}</p><p
|
|
40
|
-
'#f87171',
|
|
36
|
+
'Atlas — sign-in failed',
|
|
37
|
+
`<h1>Sign-in failed</h1><p>${escapeHtml(msg)}</p><p>Close this window and try signing in again.</p>`,
|
|
41
38
|
);
|
|
42
39
|
|
|
43
40
|
function escapeHtml(s) {
|
package/src/config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
|
|
5
|
-
export const VERSION = '0.4.
|
|
5
|
+
export const VERSION = '0.4.1';
|
|
6
6
|
export const DEFAULT_BASE_URL = 'https://atlasmcp.finmanagerai.com';
|
|
7
7
|
export const DEFAULT_SCOPE = 'atlas broker';
|
|
8
8
|
export const CLIENT_NAME = 'Atlas CLI';
|