archive-labs 1.0.6 → 1.0.8
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 +4 -4
- package/dist/cli.js +11 -3
- package/package.json +1 -1
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
|
@@ -51,7 +51,7 @@ const defaultStatusWindowDays = 14;
|
|
|
51
51
|
const systemCheckStaleSyncThresholdMs = 72 * 60 * 60 * 1000;
|
|
52
52
|
const impactPollIntervalMs = 1500;
|
|
53
53
|
const defaultApiUrl = "https://api.archivelabs.dev";
|
|
54
|
-
const defaultAppUrl = "https://
|
|
54
|
+
const defaultAppUrl = "https://archivelabs.dev";
|
|
55
55
|
const defaultLocalAppUrl = "http://localhost:8080";
|
|
56
56
|
const legacyApiUrl = "http://localhost:3000";
|
|
57
57
|
const legacyAppUrl = "http://localhost:5173";
|
|
@@ -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(
|
|
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
|
});
|
|
@@ -6310,7 +6318,7 @@ const runInit = async (options = {}) => {
|
|
|
6310
6318
|
const response = await clack.text({
|
|
6311
6319
|
defaultValue: resolvedAppUrl,
|
|
6312
6320
|
message: "Archive Labs app URL",
|
|
6313
|
-
placeholder: "https://
|
|
6321
|
+
placeholder: "https://archivelabs.dev",
|
|
6314
6322
|
validate(value) {
|
|
6315
6323
|
try {
|
|
6316
6324
|
if (typeof value !== "string") {
|
package/package.json
CHANGED