@haposoft/cafekit 0.5.2 → 0.5.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.
Files changed (2) hide show
  1. package/bin/install.js +8 -38
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -816,34 +816,13 @@ async function promptInstallGemini() {
816
816
  });
817
817
  }
818
818
 
819
- async function promptGeminiAPIKey() {
820
- const rl = readline.createInterface({
821
- input: process.stdin,
822
- output: process.stdout
823
- });
824
-
825
- console.log('\nšŸ“ Gemini API Key Configuration');
826
- console.log(' Get your API key: https://aistudio.google.com/apikey');
819
+ function showGeminiKeyInstructions() {
820
+ console.log('\nšŸ“ Gemini API Key Setup');
821
+ console.log(' 1. Get your API key: https://aistudio.google.com/apikey');
822
+ console.log(' 2. Set environment variable:');
823
+ console.log(' export GEMINI_API_KEY="your-api-key-here"');
824
+ console.log(' 3. Add to your shell profile (~/.zshrc or ~/.bashrc) to persist');
827
825
  console.log();
828
-
829
- return new Promise((resolve) => {
830
- rl.question('Enter your Gemini API key (or press Enter to skip): ', (answer) => {
831
- rl.close();
832
- resolve(answer.trim());
833
- });
834
- });
835
- }
836
-
837
- function configureGeminiKey(apiKey) {
838
- try {
839
- execSync(`gemini config set-key ${apiKey}`, { stdio: 'inherit' });
840
- console.log(' āœ“ Gemini API key configured successfully');
841
- return true;
842
- } catch (error) {
843
- console.log(' āœ— Failed to configure Gemini API key');
844
- console.log(' Please run manually: gemini config set-key YOUR_API_KEY');
845
- return false;
846
- }
847
826
  }
848
827
 
849
828
  async function setupGeminiCLI() {
@@ -863,23 +842,14 @@ async function setupGeminiCLI() {
863
842
  return;
864
843
  }
865
844
 
866
- console.log('\nāš™ Installing gemini-cli...');
867
845
  const installed = installGeminiCLI();
868
846
 
869
847
  if (installed) {
870
- const apiKey = await promptGeminiAPIKey();
871
-
872
- if (apiKey) {
873
- configureGeminiKey(apiKey);
874
- } else {
875
- console.log('\nšŸ“ Skipped API key configuration');
876
- console.log(' Configure later with: gemini config set-key YOUR_API_KEY');
877
- }
848
+ showGeminiKeyInstructions();
878
849
  } else {
879
850
  console.log('\nšŸ“ Manual installation steps:');
880
851
  console.log(' 1. npm install -g @google/gemini-cli');
881
- console.log(' 2. Get API key: https://aistudio.google.com/apikey');
882
- console.log(' 3. gemini config set-key YOUR_API_KEY');
852
+ showGeminiKeyInstructions();
883
853
  }
884
854
  }
885
855
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haposoft/cafekit",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Spec-Driven Development workflow for AI coding assistants. Supports Claude Code and Antigravity with spec-first workflows plus Claude Code hapo: skills.",
5
5
  "author": "Haposoft <nghialt@haposoft.com>",
6
6
  "license": "MIT",