mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 00:03:08 +00:00
17 lines
376 B
TypeScript
17 lines
376 B
TypeScript
export function pickRemoteCliEnv(env: NodeJS.ProcessEnv): Record<string, string> {
|
|
const picked: Record<string, string> = {}
|
|
for (const key of [
|
|
'ORCA_TERMINAL_HANDLE',
|
|
'ORCA_WORKTREE_ID',
|
|
'ORCA_USER_DATA_PATH',
|
|
'PATH',
|
|
'Path'
|
|
]) {
|
|
const value = env[key]
|
|
if (typeof value === 'string') {
|
|
picked[key] = value
|
|
}
|
|
}
|
|
return picked
|
|
}
|