mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:04:59 +00:00
refactor(daemon): share service arg types across backends
This commit is contained in:
38
src/daemon/service-types.ts
Normal file
38
src/daemon/service-types.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
export type GatewayServiceEnv = Record<string, string | undefined>;
|
||||
|
||||
export type GatewayServiceInstallArgs = {
|
||||
env: GatewayServiceEnv;
|
||||
stdout: NodeJS.WritableStream;
|
||||
programArguments: string[];
|
||||
workingDirectory?: string;
|
||||
environment?: GatewayServiceEnv;
|
||||
description?: string;
|
||||
};
|
||||
|
||||
export type GatewayServiceManageArgs = {
|
||||
env: GatewayServiceEnv;
|
||||
stdout: NodeJS.WritableStream;
|
||||
};
|
||||
|
||||
export type GatewayServiceControlArgs = {
|
||||
stdout: NodeJS.WritableStream;
|
||||
env?: GatewayServiceEnv;
|
||||
};
|
||||
|
||||
export type GatewayServiceEnvArgs = {
|
||||
env?: GatewayServiceEnv;
|
||||
};
|
||||
|
||||
export type GatewayServiceCommandConfig = {
|
||||
programArguments: string[];
|
||||
workingDirectory?: string;
|
||||
environment?: Record<string, string>;
|
||||
sourcePath?: string;
|
||||
};
|
||||
|
||||
export type GatewayServiceRenderArgs = {
|
||||
description?: string;
|
||||
programArguments: string[];
|
||||
workingDirectory?: string;
|
||||
environment?: GatewayServiceEnv;
|
||||
};
|
||||
Reference in New Issue
Block a user