mindvest-atlas 0.64.0 → 0.65.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/package.json +1 -1
- package/src/commands/dashboard.js +9 -1
- package/src/commands/tools.js +1 -1
- package/src/config.js +1 -1
- package/src/helpers/atlas_env.js +6 -0
- package/src/helpers/atlas_env.py +30 -0
package/package.json
CHANGED
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
// IT IS NOT THE COMPUTER. This drives the project's own window, so the real
|
|
9
9
|
// pointer never moves, nothing is claimed, no switch is needed, and a click at
|
|
10
10
|
// the wrong coordinates lands somewhere else in your own page rather than in
|
|
11
|
-
// whatever was behind it.
|
|
11
|
+
// whatever was behind it. That is the FIRST pass (styling, measured). `expand`
|
|
12
|
+
// opens the SECOND: the dashboard in its own window on the real screen, in front
|
|
13
|
+
// and in the picture, to be pressed with `atlas computer-use` so every tab and
|
|
14
|
+
// button is seen to react (owner, 2026-09-10). `collapse` takes it down.
|
|
12
15
|
import { color, println, eprintln } from '../util/ui.js';
|
|
13
16
|
import { runInProject } from './computer-use.js';
|
|
14
17
|
|
|
@@ -24,6 +27,8 @@ const OPS = {
|
|
|
24
27
|
shot: ['shot', 0],
|
|
25
28
|
check: ['check', 0],
|
|
26
29
|
close: ['close', 0],
|
|
30
|
+
expand: ['expand', 0],
|
|
31
|
+
collapse: ['collapse', 0],
|
|
27
32
|
};
|
|
28
33
|
const NUMERIC = new Set(['click', 'double-click', 'move', 'scroll']);
|
|
29
34
|
|
|
@@ -39,6 +44,9 @@ const HELP = `atlas dashboard <command>
|
|
|
39
44
|
shot a picture, AND what is wrong with it in words
|
|
40
45
|
check all four views, each measured
|
|
41
46
|
close
|
|
47
|
+
expand its own window ON the screen, in front: then
|
|
48
|
+
press it with \`atlas computer-use\`
|
|
49
|
+
collapse take that window down
|
|
42
50
|
|
|
43
51
|
--job <project> which project (defaults to $ATLAS_JOB, which a chat sets)
|
|
44
52
|
|
package/src/commands/tools.js
CHANGED
|
@@ -42,7 +42,7 @@ const HELPER_FUNCTIONS = {
|
|
|
42
42
|
atlas: 'atlas(tool, params) any cloud tool, as a call instead of a process',
|
|
43
43
|
ask: 'ask(prompt) the model on this computer, with its own tools',
|
|
44
44
|
mcp: 'mcp(server, tool, args) a connected MCP server',
|
|
45
|
-
dashboard: "dashboard.open/find/click/
|
|
45
|
+
dashboard: "dashboard.open/find/click/shot/expand work this project's own page; expand = on the real screen",
|
|
46
46
|
computer: 'computer: screen, click, type, key see and use the whole machine',
|
|
47
47
|
screen: 'screen(), click(x,y), type(text) see and use the whole machine',
|
|
48
48
|
click: 'click(x, y), double_click, drag use the mouse on this computer',
|
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.
|
|
5
|
+
export const VERSION = '0.65.0';
|
|
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';
|
package/src/helpers/atlas_env.js
CHANGED
|
@@ -324,6 +324,12 @@ export const dashboard = {
|
|
|
324
324
|
/** All four views, each measured: computer and phone, dark and light. */
|
|
325
325
|
check: async () => (await driveDashboard("check")).views || [],
|
|
326
326
|
close: () => driveDashboard("close"),
|
|
327
|
+
/** The second pass: the dashboard in its own full-screen window ON the screen,
|
|
328
|
+
* in front and in the picture, so it can be pressed with the real pointer
|
|
329
|
+
* (computer.screen / computer.click). Answers with its bounds and whether
|
|
330
|
+
* computer use is on. collapse() takes it down again. */
|
|
331
|
+
expand: () => driveDashboard("expand"),
|
|
332
|
+
collapse: () => driveDashboard("collapse"),
|
|
327
333
|
};
|
|
328
334
|
|
|
329
335
|
/**
|
package/src/helpers/atlas_env.py
CHANGED
|
@@ -395,6 +395,14 @@ class _Dashboard(object):
|
|
|
395
395
|
atlas.dashboard.close()
|
|
396
396
|
|
|
397
397
|
Coordinates are inside the dashboard, from its top left, not the screen's.
|
|
398
|
+
|
|
399
|
+
THAT IS THE FIRST PASS: styling, offscreen, measured. The second pass is
|
|
400
|
+
the real screen (owner, 2026-09-10: "use the user's computer and navigate
|
|
401
|
+
and press the buttons ... test the sensitivity"): once check() is clean,
|
|
402
|
+
expand() puts the dashboard in its own full-screen window IN FRONT and in
|
|
403
|
+
the picture, and you press its tabs and buttons with the real pointer
|
|
404
|
+
through screen()/click()/do(), reading `changed` after each. Then
|
|
405
|
+
collapse(). Computer view only; the phone reacts the same way.
|
|
398
406
|
"""
|
|
399
407
|
|
|
400
408
|
@staticmethod
|
|
@@ -526,6 +534,28 @@ class _Dashboard(object):
|
|
|
526
534
|
_log_action("dashboard_close")
|
|
527
535
|
return out
|
|
528
536
|
|
|
537
|
+
def expand(self):
|
|
538
|
+
"""The dashboard in its own full-screen window, ON THE SCREEN, in front.
|
|
539
|
+
|
|
540
|
+
For the second pass: pressing it with the real pointer. This is the one
|
|
541
|
+
Atlas window a run may photograph, so `screen()` will show it and
|
|
542
|
+
`windows(title)` will find it under this project's name. Answers with
|
|
543
|
+
where it sits (`bounds`, in desktop points, and that display's `scale`)
|
|
544
|
+
and `computer_use_on`, which says whether the real-screen pass is open
|
|
545
|
+
to you at all. LOOK before you click: the bounds are where to look, not
|
|
546
|
+
a coordinate to press.
|
|
547
|
+
"""
|
|
548
|
+
out = self._call("expand", timeout=90)
|
|
549
|
+
_log_action("dashboard_expand", {"bounds": out.get("bounds"),
|
|
550
|
+
"computer_use_on": bool(out.get("computer_use_on"))})
|
|
551
|
+
return out
|
|
552
|
+
|
|
553
|
+
def collapse(self):
|
|
554
|
+
"""Take the expanded window down again. Do this when the pass is done."""
|
|
555
|
+
out = self._call("collapse")
|
|
556
|
+
_log_action("dashboard_collapse")
|
|
557
|
+
return out
|
|
558
|
+
|
|
529
559
|
|
|
530
560
|
dashboard = _Dashboard()
|
|
531
561
|
|