chati-dev 4.0.5 → 4.0.6
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/package.json +1 -1
- package/src/wizard/index.js +5 -8
package/package.json
CHANGED
package/src/wizard/index.js
CHANGED
|
@@ -30,11 +30,14 @@ export async function runWizard(targetDir, options = {}) {
|
|
|
30
30
|
logoText = 'chati.dev';
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
// Step 1: Logo +
|
|
33
|
+
// Step 1: Logo + License Activation (first thing, before anything else)
|
|
34
34
|
logBanner(logoText, VERSION);
|
|
35
35
|
|
|
36
36
|
p.intro('Setting up chati.dev');
|
|
37
37
|
|
|
38
|
+
await runLicenseActivationStep();
|
|
39
|
+
|
|
40
|
+
// Step 2: Language Selection
|
|
38
41
|
const language = options.language || await stepLanguage();
|
|
39
42
|
|
|
40
43
|
// Step 2: Terms of Use (must accept to continue)
|
|
@@ -154,9 +157,6 @@ export async function runWizard(targetDir, options = {}) {
|
|
|
154
157
|
console.log();
|
|
155
158
|
p.outro(t('installer.success'));
|
|
156
159
|
|
|
157
|
-
// License activation step
|
|
158
|
-
await runLicenseActivationStep();
|
|
159
|
-
|
|
160
160
|
// Show quick start — same experience across all providers
|
|
161
161
|
const invokeCmdMap = {
|
|
162
162
|
'codex-cli': '$chati',
|
|
@@ -202,10 +202,7 @@ export async function runWizard(targetDir, options = {}) {
|
|
|
202
202
|
|
|
203
203
|
async function runLicenseActivationStep() {
|
|
204
204
|
const existingKey = getLicenseKey();
|
|
205
|
-
if (existingKey)
|
|
206
|
-
console.log(`\n ✓ License already active on this machine (${existingKey.substring(0, 12)}...)\n`);
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
205
|
+
if (existingKey) return; // already activated, proceed silently
|
|
209
206
|
|
|
210
207
|
console.log('\n ┌─ License Activation ─────────────────────────────────────────┐');
|
|
211
208
|
console.log(' │ Your license key works across ALL projects on this machine. │');
|