tabctl 0.2.0 → 0.2.1

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.
@@ -23,7 +23,7 @@ function printJson(payload, pretty = true) {
23
23
  function errorOut(message) {
24
24
  const hints = {
25
25
  "Unknown option: --format": "Use --json for JSON output. --format is only for report.",
26
- "ENOENT": "Native host not running. Ensure the browser extension is loaded and active.",
26
+ "ENOENT": "Native host not running. Ensure the browser extension is loaded and active. If you recently upgraded, run: tabctl setup",
27
27
  };
28
28
  const hint = Object.entries(hints).find(([key]) => message.includes(key))?.[1];
29
29
  if (hint) {
@@ -46,13 +46,13 @@ function setupStdoutErrorHandling() {
46
46
  function emitVersionWarnings(response, fallbackAction) {
47
47
  const hostVersion = typeof response.version === "string" ? response.version : null;
48
48
  if (hostVersion && hostVersion !== version_1.VERSION) {
49
- process.stderr.write(`[tabctl] version mismatch: cli ${version_1.VERSION}, host ${hostVersion}\n`);
49
+ process.stderr.write(`[tabctl] version mismatch: cli ${version_1.VERSION}, host ${hostVersion}. Run: tabctl setup\n`);
50
50
  }
51
51
  const data = response.data;
52
52
  const extensionVersion = data && typeof data.extensionVersion === "string" ? data.extensionVersion : null;
53
53
  const extensionComponent = data && typeof data.extensionComponent === "string" ? data.extensionComponent : null;
54
54
  if (extensionVersion && hostVersion && extensionVersion !== hostVersion) {
55
- process.stderr.write(`[tabctl] version mismatch: host ${hostVersion}, extension ${extensionVersion}\n`);
55
+ process.stderr.write(`[tabctl] version mismatch: host ${hostVersion}, extension ${extensionVersion}. Reload the extension in your browser\n`);
56
56
  }
57
57
  if (extensionComponent && extensionComponent !== "extension") {
58
58
  process.stderr.write(`[tabctl] unexpected extension component: ${extensionComponent}\n`);
@@ -60,6 +60,6 @@ function emitVersionWarnings(response, fallbackAction) {
60
60
  const action = response.action || fallbackAction;
61
61
  const extensionExpected = !["history", "version"].includes(action);
62
62
  if (extensionExpected && !extensionVersion) {
63
- process.stderr.write("[tabctl] extension version unavailable; reload the extension to validate version match\n");
63
+ process.stderr.write("[tabctl] extension version unavailable. Reload the extension in your browser\n");
64
64
  }
65
65
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Tab Control",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
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.2.0"
22
+ "version_name": "0.2.1"
23
23
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DIRTY = exports.GIT_SHA = exports.VERSION = exports.BASE_VERSION = void 0;
4
- exports.BASE_VERSION = "0.2.0";
5
- exports.VERSION = "0.2.0";
4
+ exports.BASE_VERSION = "0.2.1";
5
+ exports.VERSION = "0.2.1";
6
6
  exports.GIT_SHA = null;
7
7
  exports.DIRTY = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabctl",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI tool to manage and analyze browser tabs",
5
5
  "license": "MIT",
6
6
  "repository": {