(plan: CodexNativeApiDaemonInstallPlan)
| 1267 | } |
| 1268 | |
| 1269 | function printInstallSuccess(plan: CodexNativeApiDaemonInstallPlan): void { |
| 1270 | process.stdout.write(`daemon installed for ${plan.layout.platform}\n`); |
| 1271 | process.stdout.write(`env_file: ${plan.layout.envFile}\n`); |
| 1272 | if (plan.artifactPath) { |
| 1273 | process.stdout.write(`service_artifact: ${plan.artifactPath}\n`); |
| 1274 | } |
| 1275 | process.stdout.write(`stdout_log: ${plan.layout.stdoutLog}\n`); |
| 1276 | process.stdout.write(`stderr_log: ${plan.layout.stderrLog}\n`); |
| 1277 | if (plan.generatedAuthToken) { |
| 1278 | process.stdout.write(`auth_token: ${plan.generatedAuthToken}\n`); |
| 1279 | } |
| 1280 | } |
| 1281 | |
| 1282 | function writeLogChunk(filePath: string, streamName: 'stdout' | 'stderr', chunk: unknown): void { |
| 1283 | const text = Buffer.isBuffer(chunk) ? chunk.toString('utf8') : String(chunk); |
no test coverage detected