archbyte 0.3.2 → 0.3.3
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/bin/archbyte.js +4 -3
- package/dist/cli/auth.js +3 -2
- package/package.json +1 -1
package/bin/archbyte.js
CHANGED
|
@@ -36,9 +36,10 @@ program
|
|
|
36
36
|
.version(PKG_VERSION)
|
|
37
37
|
.addHelpText('after', `
|
|
38
38
|
Quick start:
|
|
39
|
-
|
|
40
|
-
$ archbyte
|
|
41
|
-
$ archbyte
|
|
39
|
+
1. Sign up at https://archbyte.heartbyte.io
|
|
40
|
+
2. $ archbyte login Sign in from the CLI
|
|
41
|
+
3. $ archbyte init Configure your model provider
|
|
42
|
+
4. $ archbyte run Analyze → generate → serve
|
|
42
43
|
|
|
43
44
|
https://archbyte.heartbyte.io
|
|
44
45
|
Support: archbyte@heartbyte.io
|
package/dist/cli/auth.js
CHANGED
|
@@ -7,7 +7,9 @@ import { CONFIG_DIR, CREDENTIALS_PATH, API_BASE, CLI_CALLBACK_PORT, OAUTH_TIMEOU
|
|
|
7
7
|
export async function handleLogin(provider) {
|
|
8
8
|
console.log();
|
|
9
9
|
console.log(chalk.bold.cyan("ArchByte Login"));
|
|
10
|
-
console.log(
|
|
10
|
+
console.log();
|
|
11
|
+
console.log(chalk.gray(" Don't have an account yet? Sign up first:"));
|
|
12
|
+
console.log(` ${chalk.bold.cyan("https://archbyte.heartbyte.io")}`);
|
|
11
13
|
console.log();
|
|
12
14
|
const existing = loadCredentials();
|
|
13
15
|
if (existing && !isExpired(existing)) {
|
|
@@ -35,7 +37,6 @@ export async function handleLogin(provider) {
|
|
|
35
37
|
}
|
|
36
38
|
const selectedProvider = provider ?? "github";
|
|
37
39
|
console.log(chalk.gray(`Opening browser for ${selectedProvider} sign-in...`));
|
|
38
|
-
console.log(chalk.gray("Don't have an account? One will be created automatically."));
|
|
39
40
|
console.log();
|
|
40
41
|
try {
|
|
41
42
|
const credentials = await startOAuthFlow(selectedProvider);
|