crawlio-browser 1.4.5 → 1.4.6

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,7 +1,7 @@
1
1
  // src/shared/constants.ts
2
2
  import { homedir } from "os";
3
3
  import { join } from "path";
4
- var PKG_VERSION = "1.4.5";
4
+ var PKG_VERSION = "1.4.6";
5
5
  var WS_PORT = 9333;
6
6
  var WS_HOST = "127.0.0.1";
7
7
  var CRAWLIO_PORT_FILE = join(
@@ -7,7 +7,7 @@ import {
7
7
  WS_PORT,
8
8
  WS_RECONNECT_GRACE,
9
9
  WS_STALE_THRESHOLD
10
- } from "./chunk-3UA6NXNB.js";
10
+ } from "./chunk-WJU4IGLN.js";
11
11
 
12
12
  // src/mcp-server/index.ts
13
13
  import { randomBytes as randomBytes2 } from "crypto";
@@ -1266,7 +1266,7 @@ var TOOL_TIMEOUTS = {
1266
1266
  get_frame_tree: 1e4,
1267
1267
  switch_to_frame: 5e3,
1268
1268
  switch_to_main_frame: 5e3,
1269
- create_tab: 1e4,
1269
+ create_tab: 2e4,
1270
1270
  close_tab: 5e3,
1271
1271
  switch_tab: 5e3,
1272
1272
  set_cookie: 5e3,
@@ -2156,25 +2156,28 @@ function createTools(bridge2, crawlio2) {
2156
2156
  // --- Tab management tools (AC-3) ---
2157
2157
  {
2158
2158
  name: "create_tab",
2159
- description: "Create a new browser tab with the given URL. Returns the new tab's ID, URL, and title. The tab is created but not automatically connected \u2014 use connect_tab to attach CDP.",
2159
+ description: "Create a new browser tab with the given URL. Pass connect:true to auto-attach CDP and start capturing \u2014 the tab is immediately ready for interaction (screenshot, evaluate, navigate, etc).",
2160
2160
  inputSchema: {
2161
2161
  type: "object",
2162
2162
  properties: {
2163
2163
  url: { type: "string", description: "URL to open in the new tab" },
2164
- active: { type: "boolean", description: "Whether to make the new tab active/focused (default: true)" }
2164
+ active: { type: "boolean", description: "Whether to make the new tab active/focused (default: true)" },
2165
+ connect: { type: "boolean", description: "Auto-connect CDP debugger after creation \u2014 tab is ready for interaction immediately (default: false)" }
2165
2166
  },
2166
2167
  required: ["url"]
2167
2168
  },
2168
2169
  handler: async (args) => {
2169
2170
  const schema = z.object({
2170
2171
  url: urlSchema,
2171
- active: z.boolean().default(true)
2172
+ active: z.boolean().default(true),
2173
+ connect: z.boolean().default(false)
2172
2174
  });
2173
2175
  const parsed = schema.parse(args);
2174
2176
  const data = await bridge2.send({
2175
2177
  type: "create_tab",
2176
2178
  url: parsed.url,
2177
- active: parsed.active
2179
+ active: parsed.active,
2180
+ connect: parsed.connect
2178
2181
  }, TOOL_TIMEOUTS.create_tab);
2179
2182
  return toolSuccess(data);
2180
2183
  }
@@ -4027,7 +4030,7 @@ function createCodeModeTools(bridge2, crawlio2) {
4027
4030
  process.title = "Crawlio Agent";
4028
4031
  var initMode = process.argv.includes("init") || process.argv.includes("--setup") || process.argv.includes("setup");
4029
4032
  if (initMode) {
4030
- const { runInit } = await import("./init-AJOP2HY7.js");
4033
+ const { runInit } = await import("./init-E233DCMN.js");
4031
4034
  await runInit(process.argv.slice(2));
4032
4035
  process.exit(0);
4033
4036
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PKG_VERSION
3
- } from "./chunk-3UA6NXNB.js";
3
+ } from "./chunk-WJU4IGLN.js";
4
4
 
5
5
  // src/mcp-server/init.ts
6
6
  import { execFileSync, spawn } from "child_process";
@@ -290,7 +290,7 @@ function buildStdioEntry(options) {
290
290
  if (options?.full) args2.push("--full");
291
291
  return { command: nodePath, args: args2 };
292
292
  }
293
- const args = ["-y", `crawlio-browser@${PKG_VERSION}`];
293
+ const args = ["-y", "crawlio-browser"];
294
294
  if (options?.full) args.push("--full");
295
295
  return { command: "npx", args };
296
296
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crawlio-browser",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "MCP server with 96 CDP-backed tools for browser automation — screenshots, DOM, network capture, framework detection, cookies, storage, session recording, performance metrics via Chrome",
5
5
  "type": "module",
6
6
  "main": "dist/mcp-server/index.js",