@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.
- package/bin/install.js +8 -38
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -816,34 +816,13 @@ async function promptInstallGemini() {
|
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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",
|