@cli4ai/chrome 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -1,19 +1,38 @@
1
- # Chrome
1
+ # @cli4ai/chrome
2
2
 
3
- Browser automation with your profile.
3
+ > Official @cli4ai package • https://cli4ai.com • Install cli4ai: `npm i -g cli4ai`
4
4
 
5
- ## Start
5
+ Chrome profile automation via Puppeteer (connects to a running Chrome with remote debugging enabled).
6
+
7
+ ## Setup
6
8
 
7
9
  ```bash
8
- ./start.sh # Launch Chrome (quit Chrome first)
9
- ./run.js connect # Connect puppeteer
10
+ npm i -g cli4ai
11
+ cli4ai add -g chrome
10
12
  ```
11
13
 
14
+ 1) Quit all running Chrome instances.
15
+
16
+ 2) Start Chrome with remote debugging enabled (port `9222`):
17
+
18
+ - macOS: `open -na "Google Chrome" --args --remote-debugging-port=9222`
19
+ - Linux: `google-chrome --remote-debugging-port=9222`
20
+
21
+ 3) Connect:
22
+
23
+ ```bash
24
+ cli4ai run chrome connect # default port 9222
25
+ # or
26
+ cli4ai run chrome connect 9222
27
+ ```
28
+
29
+ Other browser tools (e.g. `@cli4ai/twitter`, `@cli4ai/linkedin`) reuse this connection.
30
+
12
31
  ## Commands
13
32
 
14
33
  ```bash
15
- ./run.js navigate <url> [--new-tab]
16
- ./run.js eval "<js>"
17
- ./run.js screenshot [file] [--full-page]
18
- ./run.js cookies [domain]
34
+ cli4ai run chrome navigate <url> [--new-tab]
35
+ cli4ai run chrome eval "<js>"
36
+ cli4ai run chrome screenshot [file] [--full-page]
37
+ cli4ai run chrome cookies [domain]
19
38
  ```
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome",
3
- "version": "1.0.0",
3
+ "version": "1.0.4",
4
4
  "description": "Chrome browser automation (foundation for browser tools)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cli4ai/chrome",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Chrome browser automation (foundation for browser tools)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "type": "module",
12
12
  "keywords": [
13
- "c4ai",
13
+ "cli4ai",
14
14
  "cli",
15
15
  "ai-tools",
16
16
  "chrome",
@@ -20,27 +20,23 @@
20
20
  ],
21
21
  "repository": {
22
22
  "type": "git",
23
- "url": "https://github.com/cli4ai/packages",
23
+ "url": "https://github.com/cliforai/packages",
24
24
  "directory": "packages/chrome"
25
25
  },
26
- "homepage": "https://github.com/cli4ai/packages/tree/main/packages/chrome",
26
+ "homepage": "https://github.com/cliforai/packages/tree/main/packages/chrome",
27
27
  "bugs": {
28
- "url": "https://github.com/cli4ai/packages/issues"
28
+ "url": "https://github.com/cliforai/packages/issues"
29
29
  },
30
30
  "dependencies": {
31
- "@cli4ai/lib": "^1.0.0",
32
- "commander": "^14.0.0",
33
- "puppeteer": "^23.0.0"
31
+ "puppeteer": "^24.0.0",
32
+ "commander": "^14.0.0"
34
33
  },
35
34
  "files": [
36
35
  "run.ts",
37
- "c4ai.json",
36
+ "cli4ai.json",
38
37
  "README.md",
39
38
  "LICENSE"
40
39
  ],
41
- "scripts": {
42
- "test": "bun test"
43
- },
44
40
  "publishConfig": {
45
41
  "access": "public"
46
42
  }