kimi-code / packages /agent-core-v2 /src /os /interface /hostEnvironment.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw History Blame Contribute Delete
713 Bytes
import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';
import type {
HostEnvironmentInfo,
OsKind,
PathClass,
ShellName,
} from '#/_base/execEnv/environmentProbe';
export type { HostEnvironmentInfo, OsKind, PathClass, ShellName };
export interface IHostEnvironment {
readonly _serviceBrand: undefined;
readonly osKind: OsKind;
readonly osArch: string;
readonly osVersion: string;
readonly shellName: ShellName;
readonly shellPath: string;
readonly pathClass: PathClass;
readonly homeDir: string;
readonly ready: Promise<void>;
}
export const IHostEnvironment: ServiceIdentifier<IHostEnvironment> =
createDecorator<IHostEnvironment>('hostEnvironment');