mindvest-atlas 0.4.0 → 0.4.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindvest-atlas",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Atlas CLI \u2014 OAuth login, tool calls, and live alert/flow streaming for the Atlas trading API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- const PAGE = (title, heading, body, accent) => `<!doctype html>
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:22px;
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:72px; height:auto; display:block; }
19
- h1 { font-size:26px; font-weight:700; letter-spacing:-.3px; margin:0; color:#ffffff; }
20
- p { font-size:16px; line-height:1.6; margin:0; max-width:44ch; color:#ffffff; }
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>Authentication complete. You can close this window and return to your terminal.</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 style="margin-top:10px">Return to your terminal and try <code>atlas login</code> again.</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) {
@@ -126,7 +126,8 @@ export async function remoteControlCommand(args) {
126
126
  eprintln(color.dim(`${computerName()} — Atlas can run jobs here. Workspace: ${workspaceRoot(root)}`));
127
127
  eprintln(color.dim('Nothing runs while this is closed. Ctrl-C to stop.'));
128
128
 
129
- return runStream(API.remoteJobs, {
129
+ const jobsPath = `${API.remoteJobs}?computer=${encodeURIComponent(computerName())}`;
130
+ return runStream(jobsPath, {
130
131
  label: 'remote-control',
131
132
  reconnect: flags.reconnect !== false,
132
133
  // On (re)connect, take anything queued while this computer was away. The
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.0';
5
+ export const VERSION = '0.4.2';
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';