ropilot 0.1.42 → 0.1.43
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/lib/proxy.js +0 -34
- package/package.json +1 -1
package/lib/proxy.js
CHANGED
|
@@ -269,37 +269,6 @@ async function checkPluginUpdate() {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
/**
|
|
273
|
-
* Try to start rojo serve in background (non-blocking, silent on failure)
|
|
274
|
-
*/
|
|
275
|
-
function tryStartRojoServe() {
|
|
276
|
-
try {
|
|
277
|
-
// Check if default.project.json exists (indicates a Rojo project)
|
|
278
|
-
if (!existsSync(join(process.cwd(), 'default.project.json'))) {
|
|
279
|
-
return; // Not a Rojo project
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// Check if rojo serve is already running
|
|
283
|
-
const check = spawn('pgrep', ['-f', 'rojo serve'], { stdio: 'pipe' });
|
|
284
|
-
check.on('close', (code) => {
|
|
285
|
-
// code 0 = found running process, code 1 = not found
|
|
286
|
-
if (code === 0) {
|
|
287
|
-
return; // Rojo already running
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// Start rojo serve in background
|
|
291
|
-
const child = spawn('rojo', ['serve'], {
|
|
292
|
-
cwd: process.cwd(),
|
|
293
|
-
detached: true,
|
|
294
|
-
stdio: 'ignore',
|
|
295
|
-
shell: true
|
|
296
|
-
});
|
|
297
|
-
child.unref();
|
|
298
|
-
});
|
|
299
|
-
} catch {
|
|
300
|
-
// Silently ignore
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
272
|
|
|
304
273
|
/**
|
|
305
274
|
* Run the stdio MCP server
|
|
@@ -319,9 +288,6 @@ export async function serve() {
|
|
|
319
288
|
// Check for plugin updates in background (non-blocking)
|
|
320
289
|
checkPluginUpdate();
|
|
321
290
|
|
|
322
|
-
// Start rojo serve in background if available (non-blocking, silent on failure)
|
|
323
|
-
tryStartRojoServe();
|
|
324
|
-
|
|
325
291
|
// Read JSON-RPC messages from stdin
|
|
326
292
|
// Supports both Content-Length framing (LSP-style) and newline-delimited JSON
|
|
327
293
|
let buffer = '';
|