Table of Contents

Class BridgeCommandService

Namespace
JD.AI.Daemon.Services
Assembly
JD.AI.Daemon.dll

Handles jdai-daemon bridge command actions and runtime cleanup orchestration.

public class BridgeCommandService
Inheritance
BridgeCommandService
Inherited Members

Constructors

BridgeCommandService(string, Func<IServiceManager>)

public BridgeCommandService(string appSettingsPath, Func<IServiceManager> serviceManagerFactory)

Parameters

appSettingsPath string
serviceManagerFactory Func<IServiceManager>

Methods

DisableBridgeRuntimeAsync(string)

protected virtual Task DisableBridgeRuntimeAsync(string appSettingsPath)

Parameters

appSettingsPath string

Returns

Task

DisableBridgeRuntimeDirectAsync(IConfiguration)

protected virtual Task DisableBridgeRuntimeDirectAsync(IConfiguration config)

Parameters

config IConfiguration

Returns

Task

ExecuteAsync(string?)

public Task<int> ExecuteAsync(string? action)

Parameters

action string

Returns

Task<int>

ReadState(string)

protected virtual OpenClawBridgeState ReadState(string appSettingsPath)

Parameters

appSettingsPath string

Returns

OpenClawBridgeState

RestartInstalledServiceAsync()

protected virtual Task RestartInstalledServiceAsync()

Returns

Task

SetEnabled(string, bool)

protected virtual OpenClawBridgeState SetEnabled(string appSettingsPath, bool enabled)

Parameters

appSettingsPath string
enabled bool

Returns

OpenClawBridgeState

SetOpenClawGatewayTasksEnabledAsync(bool)

protected virtual Task SetOpenClawGatewayTasksEnabledAsync(bool enabled)

Parameters

enabled bool

Returns

Task

SetPassthrough(string)

protected virtual OpenClawBridgeState SetPassthrough(string appSettingsPath)

Parameters

appSettingsPath string

Returns

OpenClawBridgeState

StopOpenClawGatewayTaskAsync()

protected virtual Task StopOpenClawGatewayTaskAsync()

Returns

Task

WriteStatus(OpenClawBridgeState, string)

protected virtual void WriteStatus(OpenClawBridgeState state, string appSettingsPath)

Parameters

state OpenClawBridgeState
appSettingsPath string