@cli4ai/chrome 1.0.7 → 1.0.8
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/cli4ai.json +2 -2
- package/package.json +1 -1
- package/run.ts +2 -2
package/cli4ai.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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": "
|
|
8
|
+
"runtime": "node",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"chrome",
|
|
11
11
|
"browser",
|
package/package.json
CHANGED
package/run.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
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.
|
|
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;
|