gm-gc 1.0.0 → 1.0.1
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/gm-gc.js +2 -15
- package/package.json +1 -1
package/bin/gm-gc.js
CHANGED
|
@@ -11,21 +11,8 @@ const geminiConfigPath = path.join(homeDir, '.gemini-cli', 'config.json');
|
|
|
11
11
|
async function setup() {
|
|
12
12
|
console.log('🚀 Setting up gm-gc (Gemini CLI)...\n');
|
|
13
13
|
|
|
14
|
-
//
|
|
15
|
-
console.log('
|
|
16
|
-
try {
|
|
17
|
-
const plugkitCmd = process.platform === 'win32'
|
|
18
|
-
? `bun x gm-plugkit@latest spool > /dev/null 2>&1 &`
|
|
19
|
-
: `bun x gm-plugkit@latest spool > /dev/null 2>&1 &`;
|
|
20
|
-
execSync(plugkitCmd, { stdio: 'inherit' });
|
|
21
|
-
await new Promise(r => setTimeout(r, 2000));
|
|
22
|
-
console.log('✅ plugkit started\n');
|
|
23
|
-
} catch (e) {
|
|
24
|
-
console.log('⚠️ plugkit may already be running\n');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Step 2: Create Gemini CLI config if needed
|
|
28
|
-
console.log('2️⃣ Configuring Gemini CLI...');
|
|
14
|
+
// Configure Gemini CLI
|
|
15
|
+
console.log('Configuring Gemini CLI...');
|
|
29
16
|
try {
|
|
30
17
|
const configDir = path.dirname(geminiConfigPath);
|
|
31
18
|
if (!fs.existsSync(configDir)) {
|