@pablovitasso/szkrabok 1.0.21 → 1.0.23

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,6 @@
1
+ #!/usr/bin/env node
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname, join } from 'path';
4
+
5
+ const __dirname = dirname(fileURLToPath(import.meta.url));
6
+ await import(join(__dirname, '..', 'src', 'index.js'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pablovitasso/szkrabok",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Production-grade MCP browser automation layer with persistent sessions and stealth capabilities",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -12,13 +12,14 @@
12
12
  "#runtime": "./packages/runtime/index.js"
13
13
  },
14
14
  "files": [
15
+ "bin",
15
16
  "src",
16
17
  "packages/runtime",
17
18
  "scripts",
18
19
  "README.md"
19
20
  ],
20
21
  "bin": {
21
- "szkrabok": "src/index.js"
22
+ "szkrabok": "bin/szkrabok.js"
22
23
  },
23
24
  "engines": {
24
25
  "node": ">=20.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szkrabok/runtime",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "szkrabok — browser bootstrap, stealth, session pool, MCP client.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -83,6 +83,24 @@ export function register(program) {
83
83
  if (existsSync(logFile)) pass('startup log exists', logFile);
84
84
  else pass('startup log', `will be created at ${logFile}`);
85
85
 
86
+ // 7. Dev MCP config hint (only when running from source repo)
87
+ // Note: Claude Code does NOT honor the `cwd` field in MCP server config.
88
+ // Use `bash -c "cd <testNpxDir> && npx ..."` to force npx to resolve the
89
+ // published package from test/npx (which has no local workspace) instead
90
+ // of the repo root (where local bin is not linked, causing exit 127).
91
+ const testNpxDir = join(pkgRoot, 'test', 'npx');
92
+ if (existsSync(testNpxDir)) {
93
+ console.log('\n--- Dev MCP config (for developing szkrabok itself) ---');
94
+ console.log(JSON.stringify({
95
+ szkrabok: {
96
+ type: 'stdio',
97
+ command: 'bash',
98
+ args: ['-c', `cd ${testNpxDir} && npx -y @pablovitasso/szkrabok`],
99
+ env: {},
100
+ }
101
+ }, null, 2));
102
+ }
103
+
86
104
  console.log(`\n${failed ? 'Some checks failed.' : 'All checks passed.'}`);
87
105
  process.exit(failed ? 1 : 0);
88
106
  });