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.
Files changed (2) hide show
  1. package/bin/agi-cli.js +10 -4
  2. 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
- console.log('⚠️ Invalid activation code. Continuing with standard setup.');
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sam-coder-cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "SAM-CODER: An animated command-line AI assistant with agency capabilities.",
5
5
  "main": "bin/agi-cli.js",
6
6
  "bin": {