crawlio-browser 1.3.0 → 1.4.0

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,10 +1,10 @@
1
1
  {
2
2
  "name": "crawlio-browser",
3
3
  "description": "AI skills for browser automation — screenshots, clicks, network capture, framework detection via Chrome",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "author": { "name": "Crawlio" },
6
6
  "homepage": "https://crawlio.app/agent",
7
7
  "repository": "https://github.com/Crawlio-app/crawlio-browser-mcp",
8
8
  "license": "MIT",
9
- "keywords": ["browser-automation", "chrome", "cdp", "mcp", "agent-skills", "screenshots"]
9
+ "keywords": ["browser-automation", "chrome", "cdp", "mcp", "agent-skills", "screenshots", "ocr", "text-extraction"]
10
10
  }
@@ -0,0 +1,39 @@
1
+ // src/shared/constants.ts
2
+ import { homedir } from "os";
3
+ import { join } from "path";
4
+ var PKG_VERSION = "1.4.0";
5
+ var WS_PORT = 9333;
6
+ var WS_HOST = "127.0.0.1";
7
+ var CRAWLIO_PORT_FILE = join(
8
+ homedir(),
9
+ "Library",
10
+ "Logs",
11
+ "Crawlio",
12
+ "control.port"
13
+ );
14
+ var TIMEOUTS = {
15
+ WS_COMMAND: 3e4,
16
+ // 30s for most commands
17
+ NETWORK_CAPTURE: 12e4,
18
+ // 2min for network capture
19
+ SCREENSHOT: 1e4,
20
+ // 10s
21
+ RECONNECT: 3e3,
22
+ // 3s reconnect delay
23
+ CODE_EXECUTE: 12e4
24
+ // 2min for code-mode execute()
25
+ };
26
+ var WS_HEARTBEAT_INTERVAL = 2e4;
27
+ var WS_STALE_THRESHOLD = 9e4;
28
+ var WS_RECONNECT_GRACE = 5e3;
29
+
30
+ export {
31
+ PKG_VERSION,
32
+ WS_PORT,
33
+ WS_HOST,
34
+ CRAWLIO_PORT_FILE,
35
+ TIMEOUTS,
36
+ WS_HEARTBEAT_INTERVAL,
37
+ WS_STALE_THRESHOLD,
38
+ WS_RECONNECT_GRACE
39
+ };