| const version = process.env.CLAUDE_CODE_LOCAL_VERSION ?? '999.0.0-local'; |
| const packageUrl = process.env.CLAUDE_CODE_LOCAL_PACKAGE_URL ?? 'claude-code-local'; |
| const buildTime = process.env.CLAUDE_CODE_LOCAL_BUILD_TIME ?? new Date().toISOString(); |
|
|
| process.env.CLAUDE_CODE_LOCAL_SKIP_REMOTE_PREFETCH ??= '1'; |
|
|
| Object.assign(globalThis, { |
| MACRO: { |
| VERSION: version, |
| PACKAGE_URL: packageUrl, |
| NATIVE_PACKAGE_URL: packageUrl, |
| BUILD_TIME: buildTime, |
| FEEDBACK_CHANNEL: 'local', |
| VERSION_CHANGELOG: '', |
| ISSUES_EXPLAINER: '', |
| }, |
| }); |
| |
| if (process.env.CALLER_DIR) { |
| process.chdir(process.env.CALLER_DIR); |
| } |