@mercuryo-ai/agentbrowse 0.2.54 → 0.2.56

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 +1 @@
1
- {"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../src/commands/close.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAWvF,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,mCAAoC,CAAC;AAEnE,yDAAyD;AACzD,eAAO,MAAM,mBAAmB,gEAAiE,CAAC;AAElG,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,uCAAuC;AACvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAClD,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAsClE,sFAAsF;AACtF,wBAAsB,KAAK,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAwErF"}
1
+ {"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../src/commands/close.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAWvF,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,mCAAoC,CAAC;AAEnE,yDAAyD;AACzD,eAAO,MAAM,mBAAmB,gEAAiE,CAAC;AAElG,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,uCAAuC;AACvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAClD,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAsClE,sFAAsF;AACtF,wBAAsB,KAAK,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAsErF"}
@@ -89,7 +89,6 @@ export async function close(session) {
89
89
  reason: closeResult.reason,
90
90
  };
91
91
  }
92
- info(`Closed owned browser via ${closeResult.method}`);
93
92
  }
94
93
  recordCommandLifecycleEventBestEffort({
95
94
  step: closeStep,
@@ -50,7 +50,7 @@ async function launchManaged(url, profileName, headless, compact, useProxy = fal
50
50
  if (runtimeProxy) {
51
51
  info(`[launch] starting browser with proxy ${runtimeProxy.server}`);
52
52
  }
53
- const resolvedHeadless = headless ?? config.defaults?.headless ?? false;
53
+ const resolvedHeadless = headless ?? config.defaults?.headless ?? true;
54
54
  session = await launchSolver(profile, {
55
55
  headless: resolvedHeadless,
56
56
  url,
package/dist/index.js CHANGED
@@ -27,8 +27,8 @@ Options:
27
27
  --profile <name> Solver profile name for launch (default: "default")
28
28
  --proxy [url] Launch through configured proxy, or use one-off override URL
29
29
  --provider <name> Optional provider label for attach (for example "browserbase")
30
- --headful Explicit alias for headful browser mode (default)
31
- --headless Launch browser in headless mode
30
+ --headful Explicit alias for visible browser mode
31
+ --headless Explicit alias for headless browser mode (default)
32
32
  --path <file> Output path for screenshot
33
33
  --help Show this help message`;
34
34
  }
@@ -97,7 +97,7 @@ function parseLaunchArgs(args) {
97
97
  let url;
98
98
  let compact = true;
99
99
  let profile;
100
- let headless = false;
100
+ let headless;
101
101
  let useProxy = false;
102
102
  let proxy;
103
103
  for (let i = 0; i < args.length; i++) {
@@ -227,10 +227,10 @@ async function main(argv = process.argv) {
227
227
  deleteWorkflowContext();
228
228
  const launchResult = await launch(launchArgs.url, {
229
229
  compact: launchArgs.compact,
230
- profile: launchArgs.profile,
231
- headless: launchArgs.headless,
230
+ ...(launchArgs.profile ? { profile: launchArgs.profile } : {}),
231
+ ...(typeof launchArgs.headless === 'boolean' ? { headless: launchArgs.headless } : {}),
232
232
  useProxy: launchArgs.useProxy,
233
- proxy: launchArgs.proxy,
233
+ ...(launchArgs.proxy ? { proxy: launchArgs.proxy } : {}),
234
234
  });
235
235
  if (launchResult.success) {
236
236
  saveBrowserSession(launchResult.session);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercuryo-ai/agentbrowse",
3
- "version": "0.2.54",
3
+ "version": "0.2.56",
4
4
  "type": "module",
5
5
  "description": "Browser automation primitives library for AI agents",
6
6
  "license": "MIT",