tabctl 0.6.0-rc.4 → 0.6.0-rc.6
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 +13 -1
- package/dist/extension/background.js +3900 -435
- package/dist/extension/lib/content.js +94 -30
- package/dist/extension/manifest.json +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -147,6 +147,11 @@ tabctl schema
|
|
|
147
147
|
| `tabctl history` | Show recent undo history entries |
|
|
148
148
|
| `tabctl setup`, `doctor`, `policy`, `profile-*` | Local/admin profile management |
|
|
149
149
|
|
|
150
|
+
Read-only browser features include:
|
|
151
|
+
- `inspectTabs` for page metadata and selector-based reads
|
|
152
|
+
- `readTabs` for page HTML → Markdown conversion with best-effort extraction
|
|
153
|
+
- `reportTabs`, `captureScreenshots`, and browser-state history queries for summaries and context
|
|
154
|
+
|
|
150
155
|
See [CLI.md](CLI.md) for the full command reference, options, and examples.
|
|
151
156
|
|
|
152
157
|
## GraphQL examples
|
|
@@ -161,6 +166,12 @@ tabctl query '{ analyze(windowId: 123, staleDays: 30) { totalTabs duplicateTabs
|
|
|
161
166
|
# Inspect page metadata
|
|
162
167
|
tabctl query 'query { inspectTabs(tabIds: [456], signals: ["page-meta"]) { entries { tabId signals { name valueJson } } } }'
|
|
163
168
|
|
|
169
|
+
# Inspect selectors with typed attrs and filters
|
|
170
|
+
tabctl query 'query { inspectTabs(windowId: 123, selectors: [{ name: "prices", selector: ".price", attr: "text", all: true }, { name: "buy_now_visible", selector: "button.buy-now", attr: "visible" }, { name: "buy_now_style", selector: "button.buy-now", attr: "styles", styleProps: ["color", "background-color"] }, { name: "review_count", selector: ".review", attr: "count" }, { name: "email_value", selector: "input[type=email]", attr: "value" }]) { entries { tabId url signals { name valueJson } } } }'
|
|
171
|
+
|
|
172
|
+
# Read tab content as Markdown (best-effort extraction by default)
|
|
173
|
+
tabctl query 'query { readTabs(windowId: 123, extract: true, maxChars: 30000) { entries { tabId title url markdown chars truncated extracted error } } }'
|
|
174
|
+
|
|
164
175
|
# Generate reports
|
|
165
176
|
tabctl query '{ reportTabs(windowId: 123) { entries { tabId title url description } } }'
|
|
166
177
|
|
|
@@ -415,7 +426,8 @@ TABCTL_VERSION_MODE=release npm run build
|
|
|
415
426
|
Notes:
|
|
416
427
|
- Browser reads and mutations now go through GraphQL via `tabctl query`.
|
|
417
428
|
- Reports include short descriptions from page metadata and a fallback snippet.
|
|
418
|
-
- `inspectTabs` supports `page-meta` and `
|
|
429
|
+
- `inspectTabs` supports `page-meta` plus selector reads with `all`, `text`, `textMode`, `styleProps`, and attrs such as `html`, `value`, `count`, `box`, `styles`, `visible`, `enabled`, and `checked`.
|
|
430
|
+
- `readTabs` converts main-frame page HTML to Markdown, with best-effort content extraction enabled by default and status surfaced through `extracted`/`error` fields.
|
|
419
431
|
- `captureScreenshots` returns tile metadata and image data from GraphQL.
|
|
420
432
|
- `undoAction` accepts either an explicit `txid` or `latest: true`.
|
|
421
433
|
- `tabctl history --json` returns a top-level JSON array.
|