archive-labs 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -23,10 +23,10 @@ npx archive-labs
23
23
 
24
24
  ### Auth and setup
25
25
 
26
- - `archive init` Set the API and app targets for this workspace.
27
- - `archive login` Sign in and store credentials for later commands.
28
- - `archive auth login` Alias for browser-based sign-in from onboarding flows.
29
- - `archive logout` Remove stored credentials from this machine.
26
+ - `archive init` Set the API and app targets for this workspace.
27
+ - `archive login` Sign in and store credentials for later commands.
28
+ - `archive auth login` Alias for browser-based sign-in from onboarding flows.
29
+ - `archive logout` Remove stored credentials from this machine.
30
30
 
31
31
  ### Repository checks
32
32
 
package/dist/cli.js CHANGED
@@ -5985,7 +5985,15 @@ const createCliCallbackServer = async (expectedState, allowedOrigin, apiUrl) =>
5985
5985
  try {
5986
5986
  return await new Promise((resolve, reject) => {
5987
5987
  timer = setTimeout(() => {
5988
- reject(new Error("Timed out waiting for browser login to complete."));
5988
+ reject(createCliError({
5989
+ category: "timeout",
5990
+ code: "timeout",
5991
+ command: primaryCommand,
5992
+ exitCode: exitCodeTimeout,
5993
+ hint: "Open the login URL again, or increase --timeout if browser sign-in needs longer.",
5994
+ message: "Archive timed out waiting for browser login to complete.",
5995
+ retryable: true,
5996
+ }));
5989
5997
  }, timeoutMs);
5990
5998
  void result.then(resolve, reject);
5991
5999
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archive-labs",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Terminal CLI for Archive that manages login, repository status, sync, checks, impact analysis, and release risk.",
5
5
  "license": "Apache-2.0",
6
6
  "preferGlobal": true,