superbased 2.0.0 → 2.0.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/README.md CHANGED
@@ -134,46 +134,47 @@ superbased --version Show version
134
134
  superbased --help Show all commands
135
135
  ```
136
136
 
137
- The API server runs on `http://127.0.0.1:47592` and exposes 28 MCP tools + 10 resources. See [SUPERBASED_SKILL.md](./SUPERBASED_SKILL.md) for the full per-tool reference.
137
+ The API server runs on `http://127.0.0.1:47592` and exposes **70 MCP tools + 13 resources** (as of v2.0.0). See [SUPERBASED_SKILL.md](./SUPERBASED_SKILL.md) for the full per-tool reference (parameters, return shapes, examples, error codes, decision guide, plus a CAPTCHA-solving Common Workflows section).
138
138
 
139
139
  ---
140
140
 
141
- ## All 28 tools
141
+ ## All 70 tools
142
142
 
143
143
  <details>
144
- <summary>Capture & View (4)</summary>
144
+ <summary>Capture & View (8)</summary>
145
145
 
146
+ - `superbased_screenshot` — preferred screenshot (window targeting + resolution control in one call)
147
+ - `superbased_capture_image` — advanced screenshot (region / explicit mode)
146
148
  - `superbased_capture` — screenshot (metadata-only response)
147
- - `superbased_capture_image` — screenshot with image inline (so the agent can see it)
149
+ - `superbased_gallery_image` — retrieve a saved image inline
148
150
  - `superbased_window_list` — list all open windows with active/minimized state
149
- - `superbased_clipboard` — read or write the system clipboard (text + images)
151
+ - `superbased_display_list` — enumerate all connected displays (virtual-screen bounds, DPI, color space)
152
+ - `superbased_find_image` — visual template match (locate a small PNG on screen)
153
+ - `superbased_capture_template` — capture a region as a reusable template (with DPI + theme metadata sidecar)
150
154
  </details>
151
155
 
152
156
  <details>
153
- <summary>Analyze (6)</summary>
157
+ <summary>AI & OCR (5)</summary>
154
158
 
155
- - `superbased_ai` — AI vision analysis (Claude/GPT/Gemini via backend, requires sign-in)
156
- - `superbased_ocr` — local Tesseract OCR
159
+ - `superbased_ai` — AI vision analysis (Claude/GPT/Gemini via backend; slash commands `/extract`, `/summarize`, `/code`, `/explain`, `/translate`, `/table`, `/edit`, `/reformat`)
160
+ - `superbased_ocr` — local Tesseract OCR (no data leaves the machine)
157
161
  - `superbased_compress_text` — text → token-efficient images
158
- - `superbased_redact` — auto-redact secrets / PII
159
- - `superbased_annotate` — rectangles, highlights, blur, text labels, arrows
160
- - `superbased_ai_usage` — daily AI quota status
162
+ - `superbased_describe_frames` — AI description per recording frame (sign-in)
163
+ - `superbased_narrate` — prose narrative summary of a session (sign-in)
161
164
  </details>
162
165
 
163
166
  <details>
164
- <summary>Record (7)</summary>
167
+ <summary>Recording & Visual QA (5)</summary>
165
168
 
166
- - `superbased_recording` — start / stop / pause / monitor
169
+ - `superbased_recording` — start / stop / pause / monitor (4 modes: interaction / periodic / smart change-detect / monitor with AI alerts)
167
170
  - `superbased_sessions` — list past sessions, get frames
168
171
  - `superbased_export` — ZIP / Markdown / PDF / HTML / GIF
169
172
  - `superbased_diff` — visual regression between two sessions
170
- - `superbased_describe_frames` — AI description per frame (sign-in)
171
- - `superbased_narrate` — prose narrative summary (sign-in)
172
173
  - `superbased_baseline` — set / get / history of workflow baselines
173
174
  </details>
174
175
 
175
176
  <details>
176
- <summary>Dictate (3)</summary>
177
+ <summary>Dictation & Voice (3)</summary>
177
178
 
178
179
  - `superbased_dictate` — transcribe with cleanup (file, base64, or live mic; sign-in)
179
180
  - `superbased_transcribe` — raw Whisper transcription (sign-in)
@@ -181,24 +182,84 @@ The API server runs on `http://127.0.0.1:47592` and exposes 28 MCP tools + 10 re
181
182
  </details>
182
183
 
183
184
  <details>
184
- <summary>Gallery & Manage (5)</summary>
185
+ <summary>GUI Automation — Primitives (12)</summary>
186
+
187
+ The agent's hands. All write tools accept `humanize: 'off' | 'light' | 'human' | 'paranoid'` per call (default `'light'` via `humanInputDefault` setting). All gated behind `guiAutomation.enabled` (master toggle, default OFF) + per-action toggles + `confirm: true` flag.
188
+
189
+ - `superbased_click` — click at coords OR resolved element (label / automationId / role+name); modifiers + clickCount (1/2/3) + button (left/right/middle); per-call humanization
190
+ - `superbased_type` — type text into focused field (clearFirst, delayMs, ime for JKC, label-resolved targeting)
191
+ - `superbased_hotkey` — keyboard shortcut (auto-classifies PostMessage vs SendInput delivery)
192
+ - `superbased_scroll` — wheel / keys / auto; vertical or horizontal axis; per-page or per-tick
193
+ - `superbased_drag` — press → interpolate → release with modifier wrap; multi-waypoint paths
194
+ - `superbased_hover` — move + dwell for tooltips and hover-reveal UIs
195
+ - `superbased_pixel_color` — read RGBA at coords with optional expected+tolerance match
196
+ - `superbased_mouse_position` — current cursor coords (no synthesis)
197
+ - `superbased_wait` — sleep N ms server-side (no per-iteration approval cost)
198
+ - `superbased_wait_for` — server-side polling for window appearance, pixel match, AX state
199
+ - `superbased_locate` — resolve label/AX/template to screen coords without acting
200
+ - `superbased_ui_dump` — screenshot + OCR text elements + AX tree merged (every visible element with center coords)
201
+ </details>
185
202
 
186
- - `superbased_gallery` — list / get / search / stats
187
- - `superbased_gallery_update` — update tags or notes
188
- - `superbased_gallery_image` — retrieve a saved image inline
189
- - `superbased_settings` — view or change settings
190
- - `superbased_presets` — manage AI instruction presets
203
+ <details>
204
+ <summary>GUI Automation — Orchestration (4)</summary>
205
+
206
+ - `superbased_sequence` — **preferred for any multi-step flow.** ONE approval, ONE activation, N steps. Step types: click, type, hotkey, scroll, drag, hover, screenshot, wait, wait_for, assert, locate, ax_invoke, find_image, form_fill, dialog_handle, find_in_page, tab_management, virtual_desktop, tray_click. Always end with a `screenshot` step.
207
+ - `superbased_scroll_to` — scroll-until-found loop (one call; up to maxPages PageDown iterations)
208
+ - `superbased_scroll_capture` — multi-page scroll + frame stitching with calibration (Windows; the MCP equivalent of Cmd+Shift+A)
209
+ - `superbased_find_title_bar_drag_region` — pickup-safety helper for window-drag scenarios
191
210
  </details>
192
211
 
193
212
  <details>
194
- <summary>Status (3)</summary>
213
+ <summary>GUI Automation — Semantic + Macros (5)</summary>
195
214
 
215
+ - `superbased_ax_invoke` — UIA pattern invocation (Invoke / Toggle / SelectionItem.Select / Value.SetValue / ExpandCollapse). Top of the AX reliability pyramid; bypasses synthesized clicks.
216
+ - `superbased_form_fill` — one-call macro over AX-resolve + ValuePattern.SetValue (fast path) or click + clearFirst + type (fallback). Optional Tab-between, optional Submit. Shared sessionId audit trail.
217
+ - `superbased_dialog_handle` — auto-detect modal foreground; confirm / dismiss / fill_path
218
+ - `superbased_context_menu_select` — right-click + popup-detect + click matched menu item (one approval for the 4-call dance)
219
+ - `superbased_drag_file` — Windows scaffold (full OLE DoDragDrop deferred)
220
+ </details>
221
+
222
+ <details>
223
+ <summary>GUI Automation — Window + Launch + Browser (7)</summary>
224
+
225
+ - `superbased_window_state` — minimize / maximize / restore / close / always_on_top_on/off/toggle / move_to_display
226
+ - `superbased_resize_window` — device presets (iphone-se / ipad-pro-13 / desktop-hd / etc.) + custom W×H + optional X/Y reposition; `contentArea: true` for browser device-emulation
227
+ - `superbased_focus_window` — standalone focus (rare — never as setup before another tool; per-tool window targeting handles this in one approval)
228
+ - `superbased_launch_app` — spawn process with `launchAllowlist` gate (substring or sha256:hex pin)
229
+ - `superbased_open_url` — open URL in default or specific browser; optional `waitForLoad`
230
+ - `superbased_tab_management` — new / close / next / prev / switch_to (browser tab control via Ctrl+T/W/Tab/Shift+Tab/N)
231
+ - `superbased_find_in_page` — Ctrl+F + query + Enter / Shift+Enter + optional Escape (close-after)
232
+ </details>
233
+
234
+ <details>
235
+ <summary>GUI Automation — Specialized + Meta (5)</summary>
236
+
237
+ - `superbased_tray_click` — click a Windows system-tray icon by tooltip match (walks Shell_TrayWnd cross-process via VirtualAllocEx + ReadProcessMemory; optional `includeOverflow`)
238
+ - `superbased_virtual_desktop` — switch desktops (Win+Ctrl+Left/Right on Windows; Ctrl+Left/Right on macOS Spaces)
239
+ - `superbased_doctor_gui_automation` — hermetic probe (launches Notepad/TextEdit and runs every primitive, reports per-tool {ok, durationMs, errorCode})
240
+ - `superbased_dry_run` — cross-tool preview wrapper (`{tool, args}` returns `{errorCode: 'DRYRUN'}` without dispatching)
241
+ - `superbased_replay` — replay a range of `~/.superbased/audit.log` entries via `superbased_sequence` (default-safe `dryRun: true`)
242
+ </details>
243
+
244
+ <details>
245
+ <summary>Settings, Gallery, Auth, System (rest)</summary>
246
+
247
+ - `superbased_gallery` — list / get / search / stats
248
+ - `superbased_gallery_update` — update tags or notes
249
+ - `superbased_settings` — view or change settings
250
+ - `superbased_presets` — manage AI instruction presets
196
251
  - `superbased_health` — server status + capabilities
197
252
  - `superbased_auth` — sign-in state
198
253
  - `superbased_license` — plan limits + device info
254
+ - `superbased_ai_usage` — daily AI quota status
255
+ - `superbased_redact` — auto-redact secrets / PII
256
+ - `superbased_annotate` — rectangles, highlights, blur, text labels, arrows
257
+ - `superbased_clipboard` — read or write the system clipboard (text + images)
199
258
  </details>
200
259
 
201
- Plus 10 MCP resources for live status: `superbased://status`, `settings`, `presets`, `captures/recent`, `auth`, `license`, `recording`, `recording/monitor`, `analytics/summary`, `ai/usage`.
260
+ **Plus 13 MCP resources** for live status + subscribable event streams: `superbased://status`, `settings`, `presets`, `captures/recent`, `auth`, `license`, `recording`, `recording/monitor`, `analytics/summary`, `ai/usage`, plus three subscribable watcher streams (clipboard, active-window, file-watcher, screen-region).
261
+
262
+ **Humanization v2** (default `'light'`, opt out via `humanInputDefault: 'off'`) — Bezier-curved cursor approaches with sin-shaped velocity envelope, gaussian click-target jitter, gamma-distributed inter-key timing, click + key hold variation (50–110ms vs ~5ms atomic), pre-click settle dwell + tremor, optional typo+correct sequences (paranoid only), per-process cross-session salt mixed into seeds, inter-action catch-up pause. Defeats CAPTCHA-style trajectory and timing classifiers. Opt-in idle cursor drift via `humanInputIdleDrift` setting. CAPTCHA-solving workflow patterns documented in [SUPERBASED_SKILL.md](./SUPERBASED_SKILL.md) Common Workflows section.
202
263
 
203
264
  ---
204
265
 
@@ -251,7 +251,12 @@ MCP integration (recommended):
251
251
 
252
252
  Without auth (free):
253
253
  - Screen capture, OCR, gallery, token compression
254
- - 28 MCP tools for AI coding assistants
254
+ - Full GUI automation (click, type, hotkey, scroll, drag, hover,
255
+ AX-invoke, form-fill, dialog-handle, find-image, tab-management,
256
+ find-in-page, virtual-desktop, tray-click, sequence)
257
+ - Humanization v2 (Bezier cursor approaches, gamma keystroke timing,
258
+ click-target jitter, click + key hold variation)
259
+ - 70 MCP tools + 13 resources for AI coding assistants
255
260
 
256
261
  With auth (sign in for):
257
262
  - AI analysis (vision, code review, etc.)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superbased-mcp-server",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "MCP server for SuperBased desktop app — exposes capture, AI, gallery, settings, and recording tools",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superbased",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "dist/electron/main.js",
5
5
  "bin": {
6
6
  "superbased": "./dist/headless/headless/cli.js"