@ait-co/console-cli 0.1.25 → 0.1.26

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/dist/cli.mjs CHANGED
@@ -13,6 +13,10 @@ import { promisify } from "node:util";
13
13
  import { createHash } from "node:crypto";
14
14
  //#region src/api/http.ts
15
15
  var TossApiError = class extends Error {
16
+ status;
17
+ errorCode;
18
+ reason;
19
+ errorType;
16
20
  constructor(status, errorCode, reason, errorType) {
17
21
  super(`Toss API error ${errorCode}: ${reason} (HTTP ${status})`);
18
22
  this.status = status;
@@ -27,6 +31,7 @@ var TossApiError = class extends Error {
27
31
  }
28
32
  };
29
33
  var NetworkError = class extends Error {
34
+ url;
30
35
  constructor(url, cause) {
31
36
  super(`Network request to ${url} failed: ${cause.message}`);
32
37
  this.url = url;
@@ -35,6 +40,9 @@ var NetworkError = class extends Error {
35
40
  }
36
41
  };
37
42
  var MalformedResponseError = class extends Error {
43
+ url;
44
+ status;
45
+ bodyPreview;
38
46
  constructor(url, status, message, bodyPreview) {
39
47
  const suffix = bodyPreview ? ` (body: ${bodyPreview})` : "";
40
48
  super(`Malformed response from ${url} (HTTP ${status}): ${message}${suffix}`);
@@ -5810,6 +5818,8 @@ const appCommand = defineCommand({
5810
5818
  //#region src/auth/backend.ts
5811
5819
  const CREDENTIAL_SERVICE = "aitcc.credentials";
5812
5820
  var CredentialBackendUnsupportedError = class extends Error {
5821
+ platform;
5822
+ hint;
5813
5823
  constructor(platform, hint) {
5814
5824
  super(`No supported credential backend for platform "${platform}". ${hint}`);
5815
5825
  this.platform = platform;
@@ -5818,6 +5828,9 @@ var CredentialBackendUnsupportedError = class extends Error {
5818
5828
  }
5819
5829
  };
5820
5830
  var CredentialBackendCommandError = class extends Error {
5831
+ command;
5832
+ exitCode;
5833
+ redactedStderr;
5821
5834
  constructor(command, exitCode, redactedStderr) {
5822
5835
  super(`Credential backend command "${command}" failed (exit=${exitCode ?? "null"}): ${redactedStderr}`);
5823
5836
  this.command = command;
@@ -7232,6 +7245,8 @@ function isResponse(m) {
7232
7245
  return "id" in m;
7233
7246
  }
7234
7247
  var CdpProtocolError = class extends Error {
7248
+ method;
7249
+ code;
7235
7250
  constructor(method, code, message) {
7236
7251
  super(`CDP error for ${method}: ${message} (code=${code})`);
7237
7252
  this.method = method;
@@ -7476,6 +7491,7 @@ function validateCookie(raw, index) {
7476
7491
  //#endregion
7477
7492
  //#region src/chrome.ts
7478
7493
  var ChromeNotFoundError = class extends Error {
7494
+ candidates;
7479
7495
  constructor(candidates) {
7480
7496
  super(`Could not find Chrome or a Chromium-family browser. Tried: ${candidates.join(", ")}.\nInstall Chrome, or set AITCC_BROWSER to an executable path.`);
7481
7497
  this.candidates = candidates;
@@ -7483,6 +7499,7 @@ var ChromeNotFoundError = class extends Error {
7483
7499
  }
7484
7500
  };
7485
7501
  var ChromeLaunchError = class extends Error {
7502
+ executable;
7486
7503
  constructor(executable, cause) {
7487
7504
  super(`Failed to launch ${executable}: ${cause.message}`);
7488
7505
  this.executable = executable;
@@ -7491,6 +7508,7 @@ var ChromeLaunchError = class extends Error {
7491
7508
  }
7492
7509
  };
7493
7510
  var ChromeEndpointTimeoutError = class extends Error {
7511
+ executable;
7494
7512
  constructor(executable) {
7495
7513
  super(`${executable} did not print a DevTools endpoint within the timeout. It may have been blocked by the OS or launched a GUI-less variant.`);
7496
7514
  this.executable = executable;
@@ -9133,7 +9151,7 @@ function resolveVersion() {
9133
9151
  if (typeof injected === "string" && injected.length > 0) return injected;
9134
9152
  } catch {}
9135
9153
  try {
9136
- return "0.1.25";
9154
+ return "0.1.26";
9137
9155
  } catch {}
9138
9156
  return "0.0.0-dev";
9139
9157
  }