@taj-special/dravix-code 1.1.19 → 1.1.21
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/index.js +22 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -127,6 +127,15 @@ async function browserAuth() {
|
|
|
127
127
|
const cols = process.stdout.columns ?? 80;
|
|
128
128
|
const line = DIM(' ' + '─'.repeat(Math.min(cols - 4, 51)));
|
|
129
129
|
console.clear();
|
|
130
|
+
console.log(chalk.hex('#6366f1').bold(`
|
|
131
|
+
██████╗ ██████╗ █████╗ ██╗ ██╗██╗██╗ ██╗
|
|
132
|
+
██╔══██╗██╔══██╗██╔══██╗██║ ██║██║╚██╗██╔╝
|
|
133
|
+
██║ ██║██████╔╝███████║██║ ██║██║ ╚███╔╝
|
|
134
|
+
██║ ██║██╔══██╗██╔══██║╚██╗ ██╔╝██║ ██╔██╗
|
|
135
|
+
██████╔╝██║ ██║██║ ██║ ╚████╔╝ ██║██╔╝ ██╗
|
|
136
|
+
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝`));
|
|
137
|
+
console.log(chalk.hex('#6366f1').bold(' Code') + DIM(` v${VERSION} · `) + P('AI-powered coding assistant'));
|
|
138
|
+
console.log(line + '\n');
|
|
130
139
|
console.log(line);
|
|
131
140
|
console.log('\n ' + DIM('Step 1 — ') + W('Open this link in your browser:') + '\n');
|
|
132
141
|
console.log(' ' + colors.primary(link(authUrl)) + '\n');
|
|
@@ -210,8 +219,20 @@ async function main() {
|
|
|
210
219
|
banner();
|
|
211
220
|
}
|
|
212
221
|
if (justAuthenticated) {
|
|
222
|
+
const _DIM = chalk.hex('#4b5563');
|
|
223
|
+
const _P = chalk.hex('#818cf8');
|
|
224
|
+
const _cols = process.stdout.columns ?? 80;
|
|
225
|
+
const _line = _DIM(' ' + '─'.repeat(Math.min(_cols - 4, 51)));
|
|
213
226
|
console.clear();
|
|
214
|
-
console.log(
|
|
227
|
+
console.log(chalk.hex('#6366f1').bold(`
|
|
228
|
+
██████╗ ██████╗ █████╗ ██╗ ██╗██╗██╗ ██╗
|
|
229
|
+
██╔══██╗██╔══██╗██╔══██╗██║ ██║██║╚██╗██╔╝
|
|
230
|
+
██║ ██║██████╔╝███████║██║ ██║██║ ╚███╔╝
|
|
231
|
+
██║ ██║██╔══██╗██╔══██║╚██╗ ██╔╝██║ ██╔██╗
|
|
232
|
+
██████╔╝██║ ██║██║ ██║ ╚████╔╝ ██║██╔╝ ██╗
|
|
233
|
+
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝`));
|
|
234
|
+
console.log(chalk.hex('#6366f1').bold(' Code') + _DIM(` v${VERSION} · `) + _P('AI-powered coding assistant'));
|
|
235
|
+
console.log(_line + '\n');
|
|
215
236
|
}
|
|
216
237
|
const { name, email } = getSavedUser();
|
|
217
238
|
const cwd = (arg && !arg.startsWith('--')) ? path.resolve(arg) : process.cwd();
|