mosey-browser 1.0.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/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ Copyright (c) 2026 Jesse. All rights reserved.
2
+
3
+ This software is proprietary. No license is granted to use, copy, modify,
4
+ merge, publish, distribute, sublicense, or sell this software except as
5
+ explicitly authorized in writing by the copyright holder.
6
+
7
+ The published npm package contains a compiled binary only. Source code is
8
+ not distributed. Reverse engineering of the compiled binary is prohibited.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # mosey-browser
2
+
3
+ Web CLI for AI agents — navigate and interact with pages via snapshots.
4
+
5
+ The installed command is `mosey`.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npx mosey-browser
11
+ ```
12
+
13
+ or for repeated use:
14
+
15
+ ```sh
16
+ npm install -g mosey-browser
17
+ mosey https://example.com
18
+ ```
19
+
20
+ First run also installs Chromium (~170 MB via Playwright's postinstall) and prompts once to add a short block to `~/.claude/CLAUDE.md` so Claude Code uses `mosey` automatically.
21
+
22
+ macOS Apple Silicon only for now (darwin-arm64). Other platforms TBD.
23
+
24
+ ## Quick start
25
+
26
+ ```sh
27
+ mosey https://example.com # navigate, print snapshot
28
+ mosey do e5 # click element [e5]
29
+ mosey do e7 --value "hello" # type into a field
30
+ mosey state # re-read current page
31
+ mosey session save my_session # persist cookies
32
+ mosey stop # kill the daemon
33
+ ```
34
+
35
+ ## License
36
+
37
+ Proprietary. See LICENSE. Published as a compiled binary only; source code is not distributed.
package/bin/mosey ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ // Tiny launcher: exec the vendored compiled binary.
3
+ const { spawnSync } = require("child_process");
4
+ const path = require("path");
5
+ const fs = require("fs");
6
+
7
+ const BIN_NAME = "mosey";
8
+ const bin = path.join(__dirname, "..", "vendor", BIN_NAME + (process.platform === "win32" ? ".exe" : ""));
9
+
10
+ if (!fs.existsSync(bin)) {
11
+ console.error(`[mosey] binary not found at ${bin}`);
12
+ console.error(`[mosey] try: npm install -g mosey-browser`);
13
+ process.exit(1);
14
+ }
15
+
16
+ const res = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
17
+ process.exit(res.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "mosey-browser",
3
+ "version": "1.0.0",
4
+ "description": "Web CLI for AI agents — navigate and interact with pages via snapshots",
5
+ "license": "UNLICENSED",
6
+ "private": false,
7
+ "bin": {
8
+ "mosey": "./bin/mosey"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "vendor",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "keywords": [
17
+ "ai",
18
+ "agent",
19
+ "browser",
20
+ "cli",
21
+ "automation"
22
+ ],
23
+ "os": [
24
+ "darwin"
25
+ ],
26
+ "cpu": [
27
+ "arm64"
28
+ ],
29
+ "devDependencies": {
30
+ "@types/bun": "^1.3.0",
31
+ "@types/node": "^25.6.0",
32
+ "typescript": "^5"
33
+ }
34
+ }
package/vendor/mosey ADDED
Binary file