tabctl 0.6.0-rc.5 → 0.6.0-rc.7

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
@@ -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 Kreuzberg preprocessing and per-tab diagnostics
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 (Kreuzberg preprocessing by default)
173
+ tabctl query 'query { readTabs(windowId: 123, extract: true, maxChars: 30000) { entries { tabId title url markdown chars truncated extracted status emptyReason diagnostics { sourceHtmlChars sourceTextChars documentReadyState truncatedHtml } 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 `selector` signals.
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 Kreuzberg `html-to-markdown`; per-tab `status`, `emptyReason`, `diagnostics`, and `error` distinguish empty pages, unsupported URLs, injection failures, conversion failures, and timeouts.
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.