@adkit/cli 1.13.15 → 1.13.16

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1003,9 +1003,14 @@ async function login({ baseUrl, scope }) {
1003
1003
  const spinner = createSpinner();
1004
1004
  spinner.start("Connecting to AdKit...");
1005
1005
  const session = await createSetupSession(baseUrl, scope);
1006
- await open_default(session.sessionUrl);
1007
- spinner.stop("\u2713 Browser opened \u2014 complete setup there");
1006
+ spinner.stop("Open this URL to complete setup:");
1008
1007
  console.log(` \x1B[2m${session.sessionUrl}\x1B[0m`);
1008
+ try {
1009
+ await open_default(session.sessionUrl);
1010
+ console.log("\u2713 Browser opened automatically");
1011
+ } catch {
1012
+ console.log("Could not open a browser automatically \u2014 use the URL above.");
1013
+ }
1009
1014
  spinner.start("Waiting for setup to complete...");
1010
1015
  const setup = await waitForSetupConfig(baseUrl, session.sessionId);
1011
1016
  spinner.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adkit/cli",
3
- "version": "1.13.15",
3
+ "version": "1.13.16",
4
4
  "description": "The Ads CLI for AI agents — manage Meta & Google ad campaigns, browse the ad library, and generate creatives from your terminal.",
5
5
  "keywords": [
6
6
  "ads cli",