MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / resolveOsKind

Function resolveOsKind

packages/kaos/src/environment.ts:54–65  ·  view source on GitHub ↗
(platform: string)

Source from the content-addressed store, hash-verified

52const GIT_EXEC_PATH_TIMEOUT_MS = 5_000;
53
54function resolveOsKind(platform: string): OsKind {
55 switch (platform) {
56 case 'darwin':
57 return 'macOS';
58 case 'linux':
59 return 'Linux';
60 case 'win32':
61 return 'Windows';
62 default:
63 return platform;
64 }
65}
66
67export async function detectEnvironment(deps: EnvironmentDeps): Promise<Environment> {
68 const osKind = resolveOsKind(deps.platform);

Callers 1

detectEnvironmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected