@bastani/atomic 0.8.31-alpha.1 → 0.8.31-alpha.3
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/CHANGELOG.md +17 -5
- package/README.md +12 -10
- package/dist/builtin/cursor/CHANGELOG.md +1 -1
- package/dist/builtin/cursor/package.json +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +1 -1
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/mcp/CHANGELOG.md +1 -1
- package/dist/builtin/mcp/package.json +3 -3
- package/dist/builtin/subagents/CHANGELOG.md +10 -1
- package/dist/builtin/subagents/agents/codebase-online-researcher.md +8 -8
- package/dist/builtin/subagents/agents/debugger.md +6 -6
- package/dist/builtin/subagents/package.json +4 -4
- package/dist/builtin/subagents/skills/effective-liteparse/SKILL.md +118 -0
- package/dist/builtin/subagents/skills/effective-liteparse/scripts/search.py +128 -0
- package/dist/builtin/subagents/skills/playwright-cli/SKILL.md +404 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/element-attributes.md +23 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/request-mocking.md +87 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/running-code.md +241 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/session-management.md +225 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/spec-driven-testing.md +305 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/storage-state.md +275 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/test-generation.md +134 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/tracing.md +139 -0
- package/dist/builtin/subagents/skills/playwright-cli/references/video-recording.md +143 -0
- package/dist/builtin/web-access/CHANGELOG.md +1 -1
- package/dist/builtin/web-access/package.json +2 -2
- package/dist/builtin/workflows/CHANGELOG.md +7 -1
- package/dist/builtin/workflows/README.md +4 -4
- package/dist/builtin/workflows/builtin/open-claude-design.ts +59 -56
- package/dist/builtin/workflows/builtin/ralph.ts +56 -3
- package/dist/builtin/workflows/builtin/shared-prompts.ts +1 -1
- package/dist/builtin/workflows/package.json +2 -2
- package/dist/builtin/workflows/skills/research-codebase/SKILL.md +1 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +49 -21
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/context-window.d.ts +26 -1
- package/dist/core/context-window.d.ts.map +1 -1
- package/dist/core/context-window.js +30 -6
- package/dist/core/context-window.js.map +1 -1
- package/dist/core/copilot-model-catalog.d.ts +39 -21
- package/dist/core/copilot-model-catalog.d.ts.map +1 -1
- package/dist/core/copilot-model-catalog.js +44 -16
- package/dist/core/copilot-model-catalog.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +6 -4
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +2 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +18 -7
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-manager.d.ts +11 -2
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +62 -8
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +1 -0
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +1 -2
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +1 -2
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +5 -7
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +2 -1
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +4 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +165 -15
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +44 -4
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +24 -54
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/model-search.d.ts +7 -0
- package/dist/modes/interactive/model-search.d.ts.map +1 -0
- package/dist/modes/interactive/model-search.js +6 -0
- package/dist/modes/interactive/model-search.js.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts +30 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.js +108 -0
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.json +2 -1
- package/dist/modes/interactive/theme/theme.d.ts +5 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +70 -29
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +1 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +1 -1
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +1 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +39 -9
- package/dist/package-manager-cli.js.map +1 -1
- package/docs/extensions.md +21 -0
- package/docs/models.md +3 -3
- package/docs/packages.md +13 -9
- package/docs/providers.md +3 -3
- package/docs/quickstart.md +14 -0
- package/docs/rpc.md +3 -3
- package/docs/sdk.md +15 -11
- package/docs/session-format.md +1 -1
- package/docs/settings.md +8 -3
- package/docs/themes.md +3 -1
- package/docs/tui.md +1 -1
- package/docs/usage.md +12 -9
- package/docs/workflows.md +9 -7
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/preset.ts +10 -4
- package/examples/extensions/provider-payload.ts +5 -5
- package/examples/extensions/sandbox/index.ts +2 -2
- package/examples/extensions/sandbox/package-lock.json +3 -3
- package/examples/extensions/sandbox/package.json +2 -2
- package/examples/extensions/subagent/agents.ts +2 -2
- package/examples/extensions/subagent/index.ts +4 -2
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +5 -5
- package/dist/builtin/subagents/skills/browser/EXAMPLES.md +0 -151
- package/dist/builtin/subagents/skills/browser/LICENSE.txt +0 -21
- package/dist/builtin/subagents/skills/browser/REFERENCE.md +0 -451
- package/dist/builtin/subagents/skills/browser/SKILL.md +0 -170
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: browser
|
|
3
|
-
description: Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Supports remote Browserbase sessions with Browserbase Identity, Verified browsers, automatic CAPTCHA solving, and residential proxies — ideal for protected websites and JavaScript-heavy pages.
|
|
4
|
-
compatibility: "Requires the browse CLI (`npm install -g browse`). Remote Browserbase sessions need `BROWSERBASE_API_KEY`. Local mode uses Chrome/Chromium on your machine."
|
|
5
|
-
license: MIT
|
|
6
|
-
allowed-tools: Bash
|
|
7
|
-
metadata:
|
|
8
|
-
openclaw:
|
|
9
|
-
requires:
|
|
10
|
-
bins:
|
|
11
|
-
- browse
|
|
12
|
-
install:
|
|
13
|
-
- kind: node
|
|
14
|
-
package: "browse"
|
|
15
|
-
bins: [browse]
|
|
16
|
-
homepage: https://github.com/browserbase/skills
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Browser Automation
|
|
20
|
-
|
|
21
|
-
Automate browser interactions using the browse CLI with Claude.
|
|
22
|
-
|
|
23
|
-
## Setup check
|
|
24
|
-
|
|
25
|
-
Before running any browser commands, verify the CLI is available:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
which browse || npm install -g browse
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Environment Selection (Local vs Remote)
|
|
32
|
-
|
|
33
|
-
The CLI supports explicit per-command environment flags. If you do nothing, the next session defaults to Browserbase when `BROWSERBASE_API_KEY` is set and to local otherwise.
|
|
34
|
-
|
|
35
|
-
### Local mode
|
|
36
|
-
- `browse open <url> --local` starts a clean isolated local browser
|
|
37
|
-
- `browse open <url> --auto-connect` attaches to an already-running debuggable Chrome; use `--local` when no debuggable Chrome is available
|
|
38
|
-
- `browse open <url> --cdp <port|url>` attaches to a specific CDP target
|
|
39
|
-
- Best for: development, localhost, trusted sites, and reproducible runs
|
|
40
|
-
|
|
41
|
-
### Remote mode (Browserbase)
|
|
42
|
-
- `browse open <url> --remote` starts a Browserbase session
|
|
43
|
-
- Without a local flag, Browserbase is also the default when `BROWSERBASE_API_KEY` is set
|
|
44
|
-
- Provides: Browserbase Identity, Verified browsers, automatic CAPTCHA solving, residential proxies, session persistence
|
|
45
|
-
- **Use remote mode when:** the target site has bot detection, CAPTCHAs, IP rate limiting, Cloudflare protection, or requires geo-specific access
|
|
46
|
-
- Get credentials at https://browserbase.com/settings
|
|
47
|
-
|
|
48
|
-
### When to choose which
|
|
49
|
-
- **Repeatable local testing / clean state**: `browse open <url> --local`
|
|
50
|
-
- **Reuse your local login/cookies**: `browse open <url> --auto-connect`
|
|
51
|
-
- **Simple browsing** (docs, wikis, public APIs): local mode is fine
|
|
52
|
-
- **Protected sites** (login walls, CAPTCHAs, anti-scraping): use remote mode
|
|
53
|
-
- **If local mode fails** with bot detection or access denied: switch to remote mode
|
|
54
|
-
|
|
55
|
-
## Commands
|
|
56
|
-
|
|
57
|
-
Most driver commands work across local, remote, and CDP sessions after the daemon starts.
|
|
58
|
-
|
|
59
|
-
### Navigation
|
|
60
|
-
```bash
|
|
61
|
-
browse open <url> # Go to URL
|
|
62
|
-
browse open <url> --local # Go to URL in a clean local browser
|
|
63
|
-
browse open <url> --remote # Go to URL in a Browserbase session
|
|
64
|
-
browse reload # Reload current page
|
|
65
|
-
browse back # Go back in history
|
|
66
|
-
browse forward # Go forward in history
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Page state (prefer snapshot over screenshot)
|
|
70
|
-
```bash
|
|
71
|
-
browse snapshot # Get accessibility tree with element refs (fast, structured)
|
|
72
|
-
browse screenshot --path <path> # Take visual screenshot (slow, uses vision tokens)
|
|
73
|
-
browse get url # Get current URL
|
|
74
|
-
browse get title # Get page title
|
|
75
|
-
browse get text <selector> # Get text content (use "body" for all text)
|
|
76
|
-
browse get html <selector> # Get HTML content of element
|
|
77
|
-
browse get value <selector> # Get form field value
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Use `browse snapshot` as your default for understanding page state — it returns the accessibility tree with element refs you can use to interact. Only use `browse screenshot` when you need visual context (layout, images, debugging).
|
|
81
|
-
|
|
82
|
-
### Interaction
|
|
83
|
-
```bash
|
|
84
|
-
browse click <ref> # Click element by ref from snapshot (e.g., @0-5)
|
|
85
|
-
browse type <text> # Type text into focused element
|
|
86
|
-
browse fill <selector> <value> # Fill input; add --press-enter if Enter is needed
|
|
87
|
-
browse select <selector> <values...> # Select dropdown option(s)
|
|
88
|
-
browse press <key> # Press key (Enter, Tab, Escape, Cmd+A, etc.)
|
|
89
|
-
browse mouse drag <fromX> <fromY> <toX> <toY> # Drag from one point to another
|
|
90
|
-
browse mouse scroll <x> <y> <deltaX> <deltaY> # Scroll at coordinates
|
|
91
|
-
browse highlight <selector> # Highlight element on page
|
|
92
|
-
browse is visible <selector> # Check if element is visible
|
|
93
|
-
browse is checked <selector> # Check if element is checked
|
|
94
|
-
browse wait <type> [arg] # Wait for: load, selector, timeout
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Session management
|
|
98
|
-
```bash
|
|
99
|
-
browse stop # Stop the browser daemon
|
|
100
|
-
browse status # Check daemon status and resolved mode
|
|
101
|
-
browse tab list # List all open tabs
|
|
102
|
-
browse tab switch <index-or-target-id> # Switch to tab by index or target ID
|
|
103
|
-
browse tab close [index-or-target-id] # Close tab
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Typical workflow
|
|
107
|
-
If the environment matters, put `--local`, `--remote`, `--auto-connect`, or `--cdp <port|url>` on the first browser command.
|
|
108
|
-
|
|
109
|
-
1. `browse open <url> --local` or `browse open <url> --remote` — navigate to the page
|
|
110
|
-
2. `browse snapshot` — read the accessibility tree to understand page structure and get element refs
|
|
111
|
-
3. `browse click <ref>` / `browse type <text>` / `browse fill <selector> <value>` — interact using refs from snapshot
|
|
112
|
-
4. `browse snapshot` — confirm the action worked
|
|
113
|
-
5. Repeat 3-4 as needed
|
|
114
|
-
6. `browse stop` — close the browser when done
|
|
115
|
-
|
|
116
|
-
## Quick Example
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
browse open https://example.com
|
|
120
|
-
browse snapshot # see page structure + element refs
|
|
121
|
-
browse click @0-5 # click element with ref 0-5
|
|
122
|
-
browse get title
|
|
123
|
-
browse stop
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
## Mode Comparison
|
|
127
|
-
|
|
128
|
-
| Feature | Local | Browserbase |
|
|
129
|
-
|---------|-------|-------------|
|
|
130
|
-
| Speed | Faster | Slightly slower |
|
|
131
|
-
| Setup | Chrome required | API key required |
|
|
132
|
-
| Reuse existing local cookies | With `browse open <url> --auto-connect` | N/A |
|
|
133
|
-
| Verified browser | No | Yes (Browserbase Verified browser via Identity) |
|
|
134
|
-
| CAPTCHA solving | No | Yes (automatic reCAPTCHA/hCaptcha) |
|
|
135
|
-
| Residential proxies | No | Yes (201 countries, geo-targeting) |
|
|
136
|
-
| Session persistence | No | Yes (cookies/auth persist via contexts) |
|
|
137
|
-
| Best for | Development/simple pages | Protected sites, Browserbase Identity + Verified access, production scraping |
|
|
138
|
-
|
|
139
|
-
## Best Practices
|
|
140
|
-
|
|
141
|
-
1. **Choose the local strategy deliberately**: use `browse open <url> --local` for clean state, `browse open <url> --auto-connect` for existing local credentials, and `browse open <url> --remote` for protected sites
|
|
142
|
-
2. **Always `browse open` first** before interacting
|
|
143
|
-
3. **Use `browse snapshot`** to check page state — it's fast and gives you element refs
|
|
144
|
-
4. **Only screenshot when visual context is needed** (layout checks, images, debugging)
|
|
145
|
-
5. **Use refs from snapshot** to click/interact — e.g., `browse click @0-5`
|
|
146
|
-
6. **`browse stop`** when done to clean up the browser session and clear the env override
|
|
147
|
-
|
|
148
|
-
## Troubleshooting
|
|
149
|
-
|
|
150
|
-
- **"No active page"**: Run `browse stop`, then check `browse status`. If it still says running, kill the zombie daemon with `pkill -f "browse.*daemon"`, then retry `browse open`
|
|
151
|
-
- **Chrome not found**: Install Chrome, use `browse open <url> --auto-connect` if you already have a debuggable Chrome running, or switch to `browse open <url> --remote`
|
|
152
|
-
- **Action fails**: Run `browse snapshot` to see available elements and their refs
|
|
153
|
-
- **Browserbase fails**: Verify API key is set
|
|
154
|
-
|
|
155
|
-
## Switching to Remote Mode
|
|
156
|
-
|
|
157
|
-
Switch to remote when you detect: CAPTCHAs (reCAPTCHA, hCaptcha, Turnstile), bot detection pages ("Checking your browser..."), HTTP 403/429, empty pages on sites that should have content, or the user asks for it.
|
|
158
|
-
|
|
159
|
-
Don't switch for simple sites (docs, wikis, public APIs, localhost).
|
|
160
|
-
|
|
161
|
-
```bash
|
|
162
|
-
browse open <url> --local # clean isolated local browser
|
|
163
|
-
browse open <url> --auto-connect # attach to existing debuggable Chrome
|
|
164
|
-
browse open <url> --remote # Browserbase session
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
Mode flags are applied when a session starts. After `browse stop`, the next start falls back to env-var-based auto detection. Use `browse status` to inspect the resolved mode and target while the daemon is running.
|
|
168
|
-
|
|
169
|
-
For detailed examples, see [EXAMPLES.md](EXAMPLES.md).
|
|
170
|
-
For API reference, see [REFERENCE.md](REFERENCE.md).
|