mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-08 00:54:38 +02:00
Add a foreground-only test-drive workflow with isolated data, provider-backed CEO bootstrap, OpenCode/OpenRouter support, worktree execution setup, reuse safeguards, and delayed browser opening. Co-Authored-By: Paperclip <noreply@paperclip.ing>
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
export function shouldLoadWorkingDirectoryEnv(input: {
|
|
cwdEnvExists: boolean;
|
|
isPaperclipEnvFile: boolean;
|
|
env?: NodeJS.ProcessEnv;
|
|
}): boolean {
|
|
const env = input.env ?? process.env;
|
|
return env.PAPERCLIP_DISABLE_CWD_ENV_FILE !== "true"
|
|
&& input.cwdEnvExists
|
|
&& !input.isPaperclipEnvFile;
|
|
}
|