gm-oc 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-oc.js +2 -15
- package/package.json +1 -1
package/bin/gm-oc.js
CHANGED
|
@@ -11,21 +11,8 @@ const opencodeConfigPath = path.join(homeDir, '.opencode', 'config.json');
|
|
|
11
11
|
async function setup() {
|
|
12
12
|
console.log('🚀 Setting up gm-oc (OpenCode)...\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 OpenCode config if needed
|
|
28
|
-
console.log('2️⃣ Configuring OpenCode...');
|
|
14
|
+
// Configure OpenCode
|
|
15
|
+
console.log('Configuring OpenCode...');
|
|
29
16
|
try {
|
|
30
17
|
const configDir = path.dirname(opencodeConfigPath);
|
|
31
18
|
if (!fs.existsSync(configDir)) {
|