sam-coder-cli 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/bin/agi-cli.js +10 -4
- package/package.json +1 -1
package/bin/agi-cli.js
CHANGED
|
@@ -784,13 +784,19 @@ async function runSetup(isReconfig = false) {
|
|
|
784
784
|
const customEndpoint = await askQuestion('Enter custom OpenAI-compatible API endpoint: ');
|
|
785
785
|
config.isPro = true;
|
|
786
786
|
config.customApiBase = customEndpoint;
|
|
787
|
+
await writeConfig(config);
|
|
788
|
+
console.log('✅ Configuration saved successfully!');
|
|
787
789
|
} else if (proCode) {
|
|
788
|
-
|
|
790
|
+
await writeConfig(config);
|
|
791
|
+
console.log('⚠️ Invalid activation code. Standard plan configured.');
|
|
792
|
+
console.log('\nPlease restart the application to continue.');
|
|
793
|
+
rl.close();
|
|
794
|
+
process.exit(0);
|
|
795
|
+
} else {
|
|
796
|
+
await writeConfig(config);
|
|
797
|
+
console.log('✅ Configuration saved successfully!');
|
|
789
798
|
}
|
|
790
799
|
|
|
791
|
-
await writeConfig(config);
|
|
792
|
-
|
|
793
|
-
console.log('✅ Configuration saved successfully!');
|
|
794
800
|
rl.close();
|
|
795
801
|
return config;
|
|
796
802
|
}
|