( sandbox: SandboxInstance, session: ExecutionSession, sessionHome: string, kilocodeToken: string )
| 817 | .withFields({ |
| 818 | setupEnvFilePath, |
| 819 | error: error instanceof Error ? error.message : String(error), |
| 820 | }) |
| 821 | .warn('Failed to clean up setup command env file'); |
| 822 | } |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | logger.info('Setup commands completed'); |
| 827 | } |
| 828 | |
| 829 | // Persist Kilo auth for workspace preparation paths that do not receive the |
| 830 | // wrapper process environment; wrapper-launched Kilo receives the same auth |
| 831 | // shape through KILO_AUTH_CONTENT. |
| 832 | export async function writeAuthFile( |
| 833 | sandbox: SandboxInstance, |
| 834 | sessionHome: string, |
| 835 | kilocodeToken: string |
| 836 | ): Promise<void> { |
no test coverage detected