github-router 0.3.32 → 0.3.33

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.
@@ -0,0 +1,24 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "name": "github-router browser bridge",
4
+ "short_name": "gh-router-browser",
5
+ "version": "0.0.1",
6
+ "description": "Bridge between Claude (via github-router /mcp) and the browser. Implements tab control, navigation, clicks, form fill, downloads, screenshots, devtools eval. Blocks navigation to chrome://settings.",
7
+ "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqJElxuBlonBS3TVW9FJN0mGTtShB3L1hoaYf6k39SOr1ogGYmF90EjRxy1i21k9wQQjPf26bcBu/9X67KrQjQV0uB38CaNukgiSeoLjfptN811u+PJHx6BP+jx3Qa6/3VenNPxHC8WEU0GXql8QSjIHEyCwKb6fMASXOK94JyB5Ywov2x8mt/+9ncqBBBMVzf6r5Sagy4PL1XnryLsuADD/vOEkPet8wXgH/Oj7v5tTsQQZ7U1JT51PoDs2BFnXc5v3TkVgZwd32k3ONh+nkDw1Hof+4zwUGOyJE6eMrlYzRlKM4Qxdf9JpavQvqfieAbTRWcyKeclnHeoIfE7cDBQIDAQAB",
8
+ "background": {
9
+ "service_worker": "background.js",
10
+ "type": "module"
11
+ },
12
+ "permissions": [
13
+ "nativeMessaging",
14
+ "tabs",
15
+ "activeTab",
16
+ "scripting",
17
+ "downloads",
18
+ "webNavigation",
19
+ "debugger",
20
+ "storage",
21
+ "alarms"
22
+ ],
23
+ "host_permissions": ["<all_urls>"]
24
+ }
package/dist/main.js CHANGED
@@ -2660,13 +2660,28 @@ function packageRoot() {
2660
2660
  return process$1?.cwd?.() ?? ".";
2661
2661
  }
2662
2662
  /**
2663
- * Absolute path to the extension's source directory. Extension is
2664
- * plain JS / JSON (no build pipeline) so `src/browser-ext/` is the
2665
- * canonical location whether installed via npm or running from a
2666
- * checkout.
2663
+ * Absolute path to the extension's source directory. Layouts:
2664
+ *
2665
+ * - Installed via npm: `<package>/dist/browser-ext/` (the published
2666
+ * tarball ships only `dist/`, see package.json "files"). The build
2667
+ * step copies `src/browser-ext/` → `dist/browser-ext/` so the
2668
+ * unpacked extension is available to users.
2669
+ * - Running from this repo: dist/browser-ext/ if it exists (after
2670
+ * `bun run build`), else src/browser-ext/ for fresh-clone-pre-build.
2671
+ *
2672
+ * Override with `GH_ROUTER_BROWSER_EXT_DIR=<abs path>` for development
2673
+ * (lets you point at a working copy of the extension you're editing
2674
+ * without rebuilding between iterations).
2667
2675
  */
2668
2676
  function extensionDir() {
2669
- return path.join(packageRoot(), "src", "browser-ext");
2677
+ const override = process$1.env.GH_ROUTER_BROWSER_EXT_DIR;
2678
+ if (override && override.length > 0) return override;
2679
+ const root = packageRoot();
2680
+ const distExt = path.join(root, "dist", "browser-ext");
2681
+ try {
2682
+ if (readFileSync(path.join(distExt, "manifest.json")).length > 0) return distExt;
2683
+ } catch {}
2684
+ return path.join(root, "src", "browser-ext");
2670
2685
  }
2671
2686
  /** Absolute path to the bundled bridge entrypoint. */
2672
2687
  function bridgeBundlePath() {
@@ -10864,7 +10879,7 @@ function initProxyFromEnv() {
10864
10879
  //#endregion
10865
10880
  //#region package.json
10866
10881
  var name = "github-router";
10867
- var version = "0.3.32";
10882
+ var version = "0.3.33";
10868
10883
 
10869
10884
  //#endregion
10870
10885
  //#region src/lib/approval.ts