tabctl 0.5.2 → 0.5.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/README.md CHANGED
@@ -1,16 +1,66 @@
1
1
  # tabctl
2
2
 
3
- `tabctl` is a command-line tool that gives you terminal control over your browser tabs. List, search, group, move, close, deduplicate, inspect, and report on tabs without leaving your terminal — across Chrome and Edge.
3
+ Every open tab is a thread you forgot to pull. Tabctl finds them all.
4
4
 
5
- It works through a lightweight local stack: the CLI talks to a native messaging host, which proxies requests to a browser extension. A policy file can protect pinned tabs or specific groups from automated actions, and every mutation is undoable.
5
+ A command-line instrument for browser tab orchestration list, search, group, archive, close, undo wired into Edge or Chrome through a native messaging bridge. Built for humans who hoard tabs and the AI agents who clean up after them.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g tabctl
11
+ tabctl setup --browser chrome
12
+ # Load the extension: chrome://extensions → Developer mode → Load unpacked → paste: ~/.local/state/tabctl/extension/
13
+ tabctl ping
14
+ ```
15
+
16
+ If it pings back, the wire is live. You're connected.
17
+
18
+ ## Agent Skill
19
+
20
+ Give your coding agent eyes into the browser. One command and it learns the protocol.
21
+
22
+ ```bash
23
+ tabctl skill
24
+ # or: npx skills add https://github.com/ekroon/tabctl --skill tabctl -a opencode -a github-copilot -a claude-code
25
+ ```
26
+
27
+ ## Safety
28
+
29
+ Nothing leaves your machine. No cloud. No telemetry. Just a socket between your terminal and your browser, quiet as rain on neon.
30
+
31
+ Every mutation is undoable — `tabctl undo` rewinds closes, archives, and group changes like they never happened. A configurable policy layer shields pinned tabs and protected domains from accidental destruction. You pull the trigger; tabctl keeps the safety on until you mean it.
32
+
33
+ ## What You Can Say
34
+
35
+ When tabctl is installed as a skill, your agent sees what you see. Just talk to it.
36
+
37
+ > *"Which of my tabs can I close?"*
38
+ > The agent scans for duplicates, stale pages, and tabs you haven't touched in days — then offers to clean house.
39
+
40
+ > *"Are any of my open tabs relevant to my note on Project Helios?"*
41
+ > When connected to Obsidian, your agent cross-references every open tab against your notes and surfaces the ones that matter.
42
+
43
+ > *"I just finished researching service mesh architectures. Organize what I found."*
44
+ > Groups your tabs by theme, extracts key URLs, and drops a summary into your notes — before you forget what you were looking at.
45
+
46
+ > *"Where's that AWS pricing page I had open somewhere?"*
47
+ > The agent searches your open tabs and groups by title and URL — and brings it back into focus.
48
+
49
+ > *"Pull every error message from my open Sentry tabs into a markdown table."*
50
+ > The agent reads each tab, extracts what you need, and formats it — no copy-paste, no context switching.
51
+
52
+ > *"Group everything by project. You know which ones."*
53
+ > Your agent infers context from URLs, titles, and your workspace — then sorts ninety tabs into five groups with names that actually make sense.
54
+
55
+ ---
56
+
57
+ `tabctl` works through a lightweight local stack: the CLI talks to a native messaging host, which proxies requests to a browser extension. The host only runs while the browser is open and the extension is connected.
6
58
 
7
59
  This repo contains:
8
60
  - Chrome/Edge extension (tab/group inspection + actions)
9
61
  - Native messaging host (Node)
10
62
  - CLI (`tabctl`) for on-demand workflows
11
63
 
12
- The host only runs while the browser is open and the extension is connected.
13
-
14
64
  ## Quick Start
15
65
 
16
66
  ### 1. Build and install
@@ -275,9 +275,20 @@ function runSetup(options, prettyOutput) {
275
275
  "",
276
276
  ].join("\n"));
277
277
  }
278
+ const extensionsUrl = browser === "edge" ? "edge://extensions" : "chrome://extensions";
279
+ const browserName = browser === "edge" ? "Edge" : "Chrome";
280
+ const extensionDir = extensionSync?.extensionDir || null;
281
+ const loadSteps = extensionDir
282
+ ? [
283
+ `Load the extension: ${extensionsUrl} → Developer mode → Load unpacked`,
284
+ ` Path: ${extensionDir}`,
285
+ process.platform === "darwin" ? " Tip: press Cmd+Shift+G in the file dialog to paste the path" : null,
286
+ ].filter(Boolean).join("\n")
287
+ : `Load the extension: ${extensionsUrl} → Developer mode → Load unpacked`;
278
288
  process.stderr.write([
289
+ loadSteps,
279
290
  `Verify connection: tabctl --profile ${profileName} ping`,
280
- `If ping fails, ensure the ${browser === "edge" ? "Edge" : "Chrome"} extension is active.`,
291
+ `If ping fails, ensure the ${browserName} extension is active.`,
281
292
  "",
282
293
  ].join("\n"));
283
294
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Tab Control",
4
- "version": "0.5.2",
4
+ "version": "0.5.3",
5
5
  "description": "Archive and manage browser tabs with CLI support",
6
6
  "permissions": [
7
7
  "tabs",
@@ -19,5 +19,5 @@
19
19
  "background": {
20
20
  "service_worker": "background.js"
21
21
  },
22
- "version_name": "0.5.2"
22
+ "version_name": "0.5.3"
23
23
  }
@@ -129,9 +129,9 @@ var require_version = __commonJS({
129
129
  "use strict";
130
130
  Object.defineProperty(exports2, "__esModule", { value: true });
131
131
  exports2.DEV_BUILD = exports2.DIRTY = exports2.GIT_SHA = exports2.VERSION = exports2.BASE_VERSION = void 0;
132
- exports2.BASE_VERSION = "0.5.2";
133
- exports2.VERSION = "0.5.2";
134
- exports2.GIT_SHA = "c90b26ba";
132
+ exports2.BASE_VERSION = "0.5.3";
133
+ exports2.VERSION = "0.5.3";
134
+ exports2.GIT_SHA = "7d279446";
135
135
  exports2.DIRTY = false;
136
136
  exports2.DEV_BUILD = false;
137
137
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEV_BUILD = exports.DIRTY = exports.GIT_SHA = exports.VERSION = exports.BASE_VERSION = void 0;
4
- exports.BASE_VERSION = "0.5.2";
5
- exports.VERSION = "0.5.2";
6
- exports.GIT_SHA = "c90b26ba";
4
+ exports.BASE_VERSION = "0.5.3";
5
+ exports.VERSION = "0.5.3";
6
+ exports.GIT_SHA = "7d279446";
7
7
  exports.DIRTY = false;
8
8
  exports.DEV_BUILD = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabctl",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "CLI tool to manage and analyze browser tabs",
5
5
  "license": "MIT",
6
6
  "repository": {