MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / writeRestoreTokenFile

Function writeRestoreTokenFile

services/cloud-agent-next/src/session-service.ts:819–833  ·  view source on GitHub ↗
(
  sandbox: SandboxInstance,
  session: ExecutionSession,
  sessionHome: string,
  kilocodeToken: string
)

Source from the content-addressed store, hash-verified

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.
832export async function writeAuthFile(
833 sandbox: SandboxInstance,
834 sessionHome: string,
835 kilocodeToken: string
836): Promise<void> {

Callers 2

bootstrapKiloSessionMethod · 0.85

Calls 4

shellQuoteFunction · 0.90
getRestoreTokenFilePathFunction · 0.85
timedExecFunction · 0.85
writeFileMethod · 0.45

Tested by

no test coverage detected