@markus-global/cli 0.4.11 → 0.4.13

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 (52) hide show
  1. package/dist/commands/auth.d.ts +3 -0
  2. package/dist/commands/auth.d.ts.map +1 -0
  3. package/dist/commands/auth.js +420 -0
  4. package/dist/commands/auth.js.map +1 -0
  5. package/dist/commands/channel.d.ts +3 -0
  6. package/dist/commands/channel.d.ts.map +1 -0
  7. package/dist/commands/channel.js +259 -0
  8. package/dist/commands/channel.js.map +1 -0
  9. package/dist/commands/doctor.d.ts +9 -0
  10. package/dist/commands/doctor.d.ts.map +1 -0
  11. package/dist/commands/doctor.js +335 -0
  12. package/dist/commands/doctor.js.map +1 -0
  13. package/dist/commands/gateway.d.ts +1 -1
  14. package/dist/commands/gateway.d.ts.map +1 -1
  15. package/dist/commands/gateway.js +75 -139
  16. package/dist/commands/gateway.js.map +1 -1
  17. package/dist/commands/init.d.ts.map +1 -1
  18. package/dist/commands/init.js +6 -2
  19. package/dist/commands/init.js.map +1 -1
  20. package/dist/commands/model.d.ts +11 -0
  21. package/dist/commands/model.d.ts.map +1 -0
  22. package/dist/commands/model.js +485 -0
  23. package/dist/commands/model.js.map +1 -0
  24. package/dist/commands/models.d.ts +3 -0
  25. package/dist/commands/models.d.ts.map +1 -0
  26. package/dist/commands/models.js +43 -0
  27. package/dist/commands/models.js.map +1 -0
  28. package/dist/commands/start.d.ts.map +1 -1
  29. package/dist/commands/start.js +232 -30
  30. package/dist/commands/start.js.map +1 -1
  31. package/dist/index.js +27 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/markus.mjs +5927 -2040
  34. package/dist/utils/browser.d.ts +6 -0
  35. package/dist/utils/browser.d.ts.map +1 -0
  36. package/dist/utils/browser.js +18 -0
  37. package/dist/utils/browser.js.map +1 -0
  38. package/dist/utils/logger.d.ts +41 -0
  39. package/dist/utils/logger.d.ts.map +1 -0
  40. package/dist/utils/logger.js +103 -0
  41. package/dist/utils/logger.js.map +1 -0
  42. package/dist/utils/startupProgress.d.ts +61 -0
  43. package/dist/utils/startupProgress.d.ts.map +1 -0
  44. package/dist/utils/startupProgress.js +320 -0
  45. package/dist/utils/startupProgress.js.map +1 -0
  46. package/dist/web-ui/assets/index-OE34_qh_.css +1 -0
  47. package/dist/web-ui/assets/index-nuQoO_K8.js +63 -0
  48. package/dist/web-ui/index.html +2 -2
  49. package/package.json +1 -1
  50. package/templates/skills/chrome-devtools/SKILL.md +23 -4
  51. package/dist/web-ui/assets/index-Cc0Wqkrw.js +0 -63
  52. package/dist/web-ui/assets/index-d4taGsNz.css +0 -1
@@ -11,8 +11,8 @@
11
11
  <script>
12
12
  (function(){var t=localStorage.getItem('markus-theme');if(t==='light')document.documentElement.classList.add('light');else if(t==='dark')document.documentElement.classList.add('dark')})();
13
13
  </script>
14
- <script type="module" crossorigin src="/assets/index-Cc0Wqkrw.js"></script>
15
- <link rel="stylesheet" crossorigin href="/assets/index-d4taGsNz.css">
14
+ <script type="module" crossorigin src="/assets/index-nuQoO_K8.js"></script>
15
+ <link rel="stylesheet" crossorigin href="/assets/index-OE34_qh_.css">
16
16
  </head>
17
17
  <body>
18
18
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markus-global/cli",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "description": "Markus — AI Digital Workforce Platform",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-or-later",
@@ -44,9 +44,9 @@ tabs to wake them, or use a dedicated Chrome profile with few tabs.
44
44
  |------|---------|
45
45
  | `chrome-devtools__navigate_page` | Navigate current tab to a URL (**replaces** current page — see warning above). Auto-creates a new tab if you have none. |
46
46
  | `chrome-devtools__list_pages` | List your open tabs (only shows tabs you own) |
47
- | `chrome-devtools__new_page` | Open a new tab without affecting existing tabs. Use this when you need to keep the current page open. |
47
+ | `chrome-devtools__new_page` | Open a new tab. **Always pass `background: true`** to avoid stealing user focus. |
48
48
  | `chrome-devtools__close_page` | Close a tab you own |
49
- | `chrome-devtools__select_page` | Switch to one of your tabs |
49
+ | `chrome-devtools__select_page` | Switch to one of your tabs. **Never pass `bringToFront: true`** unless user requests it. |
50
50
  | `chrome-devtools__wait_for` | Wait for selector, navigation, or network idle |
51
51
 
52
52
  ### Input (9 tools)
@@ -133,14 +133,33 @@ select_page → switch back to first tab if needed
133
133
  **Rule of thumb:** Before calling `navigate_page`, ask yourself: "Do I still need what's
134
134
  on the current page?" If yes, call `new_page` first.
135
135
 
136
+ ## CRITICAL: operate in the background — never steal user focus
137
+
138
+ The user may be working in another application (IDE, terminal, another browser tab) while
139
+ you interact with Chrome. **You must never cause Chrome to steal window focus.**
140
+
141
+ The system enforces this automatically for internal operations, but you must also follow
142
+ these rules for your own tool calls:
143
+
144
+ - **`new_page`**: Always pass `background: true`. This opens the tab without bringing
145
+ Chrome to the foreground. Example: `new_page({ url: "...", background: true })`
146
+ - **`select_page`**: Always pass `bringToFront: false` (or omit `bringToFront` — the
147
+ system defaults it to `false`). Never pass `bringToFront: true` unless the user
148
+ explicitly asks you to show them a page.
149
+ - **`navigate_page`**: This navigates the current tab in-place and does not have a
150
+ focus parameter. The system handles background selection automatically.
151
+ - **Do NOT call `select_page` unnecessarily.** The system auto-selects your current
152
+ tab before each operation. Only call `select_page` when you need to switch between
153
+ multiple tabs you own.
154
+
136
155
  ## Best practices
137
156
 
138
157
  1. **Start with `navigate_page`**: Just call `navigate_page` with your target URL.
139
158
  The system auto-creates a fresh tab for you if you don't have one yet.
140
159
 
141
160
  2. **Preserve important pages**: If the current tab has useful content (results, data,
142
- a page you may need to revisit), call `new_page` before navigating to a new URL.
143
- Otherwise `navigate_page` will destroy the current page's content.
161
+ a page you may need to revisit), call `new_page` (with `background: true`) before
162
+ navigating to a new URL. Otherwise `navigate_page` will destroy the current page's content.
144
163
 
145
164
  3. **Snapshot before interaction**: Always call `take_snapshot` before clicking or filling.
146
165
  The snapshot returns the accessibility tree with element identifiers you can target.