glidercli 0.4.18 → 0.4.31
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 +18 -6
- package/bin/glider.js +388 -71
- package/docs/setup.json +6 -2
- package/docs/tab-identity.scorched.json +2042 -0
- package/lib/bexplore.js +6 -5
- package/lib/bfavicon.js +3 -2
- package/lib/bwindow.js +8 -6
- package/lib/cdp-direct.js +1 -1
- package/lib/cookie-jar.js +233 -0
- package/lib/paths.js +48 -0
- package/lib/tab-catalog.js +67 -10
- package/lib/tab-map.js +282 -0
- package/lib/tab-tui.js +179 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<img src="https://raw.githubusercontent.com/vdutts7/squircle/main/webp/ralph-wiggum.webp?v=1791987543" alt="ralph" width="80" height="80" />
|
|
7
7
|
|
|
8
8
|
<h1 align="center">glider CLI</h1>
|
|
9
|
-
<p align="center"><i>
|
|
9
|
+
<p align="center"><i><b>Browser automation CLI- directly drive authenticated tabs via CDP + WebSocket relay (agent-native)</b></i></p>
|
|
10
10
|
|
|
11
11
|
<a href="https://github.com/vdutts7/glidercli"><img src="./assets/badges/github.badge.svg?v=1791987543" alt="GitHub" height="40" /></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/glidercli"><img src="./assets/badges/npm.badge.svg?v=1791987543" alt="glidercli on npm" height="40" /></a>
|
|
@@ -91,15 +91,17 @@ Not supported today: Firefox/Safari/WebKit/Gecko, DuckDuckGo, browsers without C
|
|
|
91
91
|
|
|
92
92
|
### Browser config
|
|
93
93
|
|
|
94
|
-
CLI
|
|
94
|
+
via CLI:
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
97
|
glider config browser chrome
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
via `$GLIDER/config/browser.json`:
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
```json
|
|
103
|
+
{ "use": "chrome" }
|
|
104
|
+
```
|
|
103
105
|
|
|
104
106
|
---
|
|
105
107
|
|
|
@@ -133,6 +135,16 @@ glider loop hn-scrape.yaml
|
|
|
133
135
|
| domain index | `~/.glider/config/domains.json` |
|
|
134
136
|
| per-host intel | `~/.glider/warch/HOST/glider.json` |
|
|
135
137
|
| explore cache | `~/.glider/bexplore/HOST/` |
|
|
138
|
+
| cookie jar | `~/.glider/cookies/HOST/header.txt` (+ `domains.json` index) |
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
glider connect
|
|
142
|
+
glider cookie-jar add chat.example.com
|
|
143
|
+
glider cookie-jar sync chat.example.com
|
|
144
|
+
glider cookie-jar read chat.example.com
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Offline curl: `COOKIE_FILE=~/.glider/cookies/HOST/header.txt`. Index: `glider cookie-jar rebuild` scans `$GLIDER/warch/**/glider.json` for `cookie_jar.enabled`. Optional extra tree: set `GLIDER_EXTRA_WARCH_ROOT` (path-separated).
|
|
136
148
|
|
|
137
149
|
| Env | Default | Role |
|
|
138
150
|
|-----|---------|------|
|
|
@@ -144,14 +156,14 @@ Copy `config/domains.template.json` into `~/.glider/config/domains.json` to seed
|
|
|
144
156
|
|
|
145
157
|
## Tabs
|
|
146
158
|
|
|
147
|
-
`glider tabs` is the visible Helium rail, not the debugger map.
|
|
159
|
+
`glider tabs` is the visible Helium rail, not the debugger map. TUI (0.4.28): `[n]` is the handle. One field per line under each tab (`url:`, `status:`, `tabId:`, `active:`, `sessionId:`, `targetId:`, …). Empty identity values print `-`. `glider tabs` writes `$GLIDER/state/tab-map.json`. Chain: `--current` `--incognito` `--window` `--index` `--handle` `--tab` `--target` `--session` `--iframe` `--context` then `pin` (or `use-session <id>`). `--json tabs` is the full catalog.
|
|
148
160
|
|
|
149
161
|
1. current window `chrome.tabs` (live title/url, including `chrome://newtab`)
|
|
150
162
|
2. other windows
|
|
151
163
|
3. attached: CDP session not in `chrome.tabs`
|
|
152
164
|
4. stale: `tabId` gone from `chrome.tabs`; dropped from the relay map
|
|
153
165
|
|
|
154
|
-
Incognito is Chromium `windows.Window.incognito` and `tabs.Tab.incognito` only. TUI: `window N
|
|
166
|
+
Incognito is Chromium `windows.Window.incognito` and `tabs.Tab.incognito` only. TUI: `window N [current] [incognito]`. Enable Allow in Incognito on the extension. CDP `browserContextId` is not that flag.
|
|
155
167
|
|
|
156
168
|
`glider targets` stays the raw CDP session list.
|
|
157
169
|
|