vibium 0.1.5 → 0.1.7

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.
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // Find clicker binary from platform package and run it.
3
- // Default: `vibium` → `clicker mcp` (MCP server mode)
4
- // Known subcommands pass through directly.
3
+ // `vibium` (no args) → `clicker` (shows help)
4
+ // `vibium mcp` `clicker mcp` (MCP server mode)
5
+ // Unknown first arg → prepends `mcp` (e.g. `vibium --headless` → `clicker mcp --headless`)
5
6
 
6
7
  const { execFileSync } = require('child_process');
7
8
  const path = require('path');
@@ -35,9 +36,10 @@ function getClickerPath() {
35
36
  const clickerPath = getClickerPath();
36
37
  const userArgs = process.argv.slice(2);
37
38
 
38
- // If no args or first arg is not a known subcommand, default to 'mcp'
39
- const args = (userArgs.length === 0 || !KNOWN_SUBCOMMANDS.has(userArgs[0]))
39
+ // If first arg is not a known subcommand, default to 'mcp'
40
+ const args = (userArgs.length > 0 && !KNOWN_SUBCOMMANDS.has(userArgs[0]))
40
41
  ? ['mcp', ...userArgs]
41
42
  : userArgs;
42
43
 
43
- execFileSync(clickerPath, args, { stdio: 'inherit' });
44
+ const binName = path.basename(process.argv[1] || 'vibe-check', path.extname(process.argv[1] || ''));
45
+ execFileSync(clickerPath, args, { stdio: 'inherit', argv0: binName });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibium",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Browser automation for AI agents and humans",
5
5
  "keywords": [
6
6
  "browser",
@@ -36,18 +36,24 @@
36
36
  }
37
37
  },
38
38
  "bin": {
39
- "vibe-check": "./bin.js"
39
+ "vibe-check": "bin/cli.js"
40
40
  },
41
41
  "scripts": {
42
42
  "postinstall": "node postinstall.js"
43
43
  },
44
- "files": ["dist", "bin.js", "postinstall.js", "LICENSE", "NOTICE"],
44
+ "files": [
45
+ "dist",
46
+ "bin",
47
+ "postinstall.js",
48
+ "LICENSE",
49
+ "NOTICE"
50
+ ],
45
51
  "optionalDependencies": {
46
- "@vibium/linux-x64": "0.1.5",
47
- "@vibium/linux-arm64": "0.1.5",
48
- "@vibium/darwin-x64": "0.1.5",
49
- "@vibium/darwin-arm64": "0.1.5",
50
- "@vibium/win32-x64": "0.1.5"
52
+ "@vibium/linux-x64": "0.1.7",
53
+ "@vibium/linux-arm64": "0.1.7",
54
+ "@vibium/darwin-x64": "0.1.7",
55
+ "@vibium/darwin-arm64": "0.1.7",
56
+ "@vibium/win32-x64": "0.1.7"
51
57
  },
52
58
  "dependencies": {
53
59
  "ws": "^8.18.3"