gazesight 0.3.5 → 0.4.0
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 +19 -11
- package/dist/chrome/background.js +1 -1
- package/dist/chrome/manifest.json +2 -2
- package/dist/chrome/options.css +9 -0
- package/dist/chrome/options.html +14 -0
- package/dist/chrome/options.js +13 -13
- package/dist/chrome/popup.css +5 -0
- package/dist/chrome/popup.html +6 -1
- package/dist/chrome/popup.js +1 -1
- package/dist/cli/index.js +1240 -17
- package/dist/firefox/background.js +1 -1
- package/dist/firefox/manifest.json +2 -2
- package/dist/firefox/options.css +9 -0
- package/dist/firefox/options.html +14 -0
- package/dist/firefox/options.js +29 -29
- package/dist/firefox/popup.css +5 -0
- package/dist/firefox/popup.html +6 -1
- package/dist/firefox/popup.js +1 -1
- package/dist/gazesight-firefox.xpi +0 -0
- package/dist/mcp/index.js +243 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,23 +12,29 @@ GazeSight lets coding agents inspect the browser tab you're already using, witho
|
|
|
12
12
|
npx gazesight setup
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Published on the public npm registry: https://www.npmjs.com/package/gazesight. `npx gazesight setup` and `npm install -g gazesight && gazesight setup` are equivalent entrypoints.
|
|
16
|
+
|
|
17
|
+
To configure a specific coding agent non-interactively (`setup` otherwise prompts when run in a real terminal):
|
|
16
18
|
|
|
17
19
|
```sh
|
|
18
|
-
|
|
19
|
-
gazesight setup
|
|
20
|
+
npx gazesight setup --client claude
|
|
21
|
+
npx gazesight setup --client codex
|
|
22
|
+
npx gazesight setup --client both
|
|
20
23
|
```
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
```sh
|
|
26
|
+
npx gazesight doctor
|
|
27
|
+
```
|
|
23
28
|
|
|
24
|
-
1.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
5. Run `gazesight doctor`. Run it **while your coding agent's MCP connection to GazeSight is active** — the health checks it reports depend on that session being live, the same way any MCP tool call would.
|
|
29
|
+
1. Run `gazesight setup` in a real terminal. It configures Claude Code, Codex, or both, then keeps a temporary loopback pairing listener open. Re-running setup is safe and leaves existing client registrations unchanged.
|
|
30
|
+
2. Install a compatible extension: **Firefox 0.4.0+** or **Chrome 0.2.0+**. These versions are development candidates and are not publicly distributed yet; the public npm 0.3.5 and Firefox 0.3.4 releases still use manual import.
|
|
31
|
+
3. Open GazeSight and click **Connect to GazeSight**. Confirm that the six-digit verification code matches the terminal, then explicitly approve it there. The code expires and is not the permanent credential.
|
|
32
|
+
4. Open your local project in your browser, keep its tab active, and click **Use this tab**. Pairing never selects or authorizes a tab automatically.
|
|
33
|
+
5. Restart your coding agent to load MCP, then run `gazesight doctor` while its GazeSight connection is active.
|
|
30
34
|
6. Ask your agent: "Use GazeSight visual_capture to inspect my active preview tab." The image arrives directly as MCP image content.
|
|
31
35
|
|
|
36
|
+
Compatibility: npm/MCP 0.4.x pairs with Firefox 0.4.x and Chrome 0.2.x. The published npm 0.3.5 runtime remains compatible with the published Firefox 0.3.4 extension through Advanced manual configuration; zero-friction pairing is not available in those older builds. New and legacy browser credentials are scoped independently, and importing a legacy JSON configuration remains a recovery fallback rather than a pairing prerequisite.
|
|
37
|
+
|
|
32
38
|
Claude Code stores user-scope servers in `~/.claude.json`; Codex uses `~/.codex/config.toml` with `[mcp_servers.gazesight]`. Setup generates installation-specific Node/CLI paths; it never relies on a developer's source checkout. See [Claude Code MCP docs](https://code.claude.com/docs/en/mcp-quickstart) and [Codex MCP docs](https://developers.openai.com/codex/mcp/).
|
|
33
39
|
|
|
34
40
|
## Capture and permissions
|
|
@@ -46,6 +52,8 @@ gazesight --help
|
|
|
46
52
|
|
|
47
53
|
Doctor is read-only and reports corrective actions for Node/build, MCP/port, connection/pairing, target and capture permission. **Run it while your coding agent's MCP session is active** — the MCP server's own health-check endpoint only stays reachable while a real MCP client holds its stdio connection open (this is intentional: the same signal that tells GazeSight a session ended). Only one GazeSight server can own a port; stop a competing agent or configure a different port with `gazesight setup --config PATH --port PORT` and import that config into the extension. Existing config is reused without overwriting its token or port. `GS_NO_TARGET_TAB`: select a local preview with the icon. `GS_NOT_CONNECTED`: check extension options and agent MCP startup. An inactive target is refused; return to that tab. Nothing launches a browser for you.
|
|
48
54
|
|
|
55
|
+
Use `gazesight pair` to pair a second browser or recover after reinstalling an extension. Use `gazesight pair --revoke ID` (or `--revoke all`) to revoke stored extension credentials. Manual JSON import remains available under **Advanced manual configuration** for legacy recovery only.
|
|
56
|
+
|
|
49
57
|
## Local configuration
|
|
50
58
|
|
|
51
59
|
Windows: `%APPDATA%/GazeSight/config.json`. macOS: `~/Library/Application Support/GazeSight/config.json`. Linux: `$XDG_CONFIG_HOME/gazesight/config.json`, or `~/.config/gazesight/config.json`. Override with `--config PATH` or `GAZESIGHT_CONFIG_FILE`. Run GazeSight setup to create a fresh pairing configuration. No previous configuration or token is copied or deleted. Files are created exclusively with mode 0600 where supported; Windows uses inherited directory ACLs. Keep the private config in your own user directory.
|
|
@@ -84,7 +92,7 @@ Root `package.json` is the canonical version; `npm run build` synchronizes inter
|
|
|
84
92
|
|
|
85
93
|
### npm publication
|
|
86
94
|
|
|
87
|
-
|
|
95
|
+
Published: https://www.npmjs.com/package/gazesight — first public release, `gazesight@0.3.5`, `latest` dist-tag. Published from a trusted local machine using a granular npm access token (bypass-2FA, revoked immediately after use; the account's normal interactive OTP/2FA prompt did not trigger reliably from the CLI in this environment). Root `package.json`'s `"private": true` guard was removed as the one deliberate, explicit step immediately preceding the real publish — never something a build/release script does automatically. Verified independently after publishing: `npm view gazesight@0.3.5` against the live registry, the published tarball downloaded and compared byte-for-byte (SHA-256) against the locally-built one, and a real `@modelcontextprotocol/client` connection through a fresh `npx --yes gazesight@0.3.5 mcp` confirming all 25 tools. For future releases, prefer npm's Trusted Publishing (OIDC from a GitHub Actions workflow, no long-lived token stored anywhere) if CI is set up for this project; otherwise a local publish with a short-lived granular token remains the fallback. Never commit an npm token to this repository. Verify any future publish from a clean environment:
|
|
88
96
|
|
|
89
97
|
```sh
|
|
90
98
|
npx --yes gazesight@latest setup
|