@cli4ai/chrome 1.0.7 → 1.0.9

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.
Files changed (3) hide show
  1. package/cli4ai.json +3 -2
  2. package/package.json +2 -1
  3. package/run.ts +2 -2
package/cli4ai.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "chrome",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Chrome browser automation (foundation for browser tools)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
7
7
  "entry": "run.ts",
8
- "runtime": "bun",
8
+ "runtime": "node",
9
9
  "keywords": [
10
10
  "chrome",
11
11
  "browser",
@@ -61,6 +61,7 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
+ "@cli4ai/lib": "^1.0.0",
64
65
  "puppeteer": "^24.0.0",
65
66
  "commander": "^14.0.0"
66
67
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cli4ai/chrome",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Chrome browser automation (foundation for browser tools)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
@@ -28,6 +28,7 @@
28
28
  "url": "https://github.com/cliforai/packages/issues"
29
29
  },
30
30
  "dependencies": {
31
+ "@cli4ai/lib": "^1.0.0",
31
32
  "puppeteer": "^24.0.0",
32
33
  "commander": "^14.0.0"
33
34
  },
package/run.ts CHANGED
@@ -1,10 +1,10 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env npx tsx
2
2
  import puppeteer from 'puppeteer';
3
3
  import { readFileSync, writeFileSync } from 'fs';
4
4
  import { join, resolve } from 'path';
5
5
  import { cli, log, output, outputError, withErrorHandling } from '@cli4ai/lib/cli.ts';
6
6
 
7
- const WS_FILE = join(import.meta.dir, '.ws-endpoint');
7
+ const WS_FILE = join(new URL('.', import.meta.url).pathname, '.ws-endpoint');
8
8
 
9
9
  async function getPage(newTab = false) {
10
10
  let ws: string;