refactor(plugin): remove fallback sidecar autostart
This commit is contained in:
@@ -162,13 +162,6 @@ export default function register(api: PluginAPI, rawConfig: PluginConfig | Plugi
|
|||||||
process.on('SIGTERM', stopSidecar);
|
process.on('SIGTERM', stopSidecar);
|
||||||
process.on('SIGINT', stopSidecar);
|
process.on('SIGINT', stopSidecar);
|
||||||
|
|
||||||
// Start immediately if Gateway is already running
|
|
||||||
if (api.isRunning?.()) {
|
|
||||||
startSidecar();
|
|
||||||
} else {
|
|
||||||
setTimeout(() => startSidecar(), 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Register status tool
|
// Register status tool
|
||||||
api.registerTool(() => ({
|
api.registerTool(() => ({
|
||||||
name: 'harborforge_monitor_status',
|
name: 'harborforge_monitor_status',
|
||||||
|
|||||||
Reference in New Issue
Block a user