Merge branch 'develop' into release

This commit is contained in:
2026-07-06 14:32:50 +09:00
7 changed files with 208 additions and 53 deletions
+21
View File
@@ -487,6 +487,26 @@ function tailscaleCommandEnv(loginServer: string): NodeJS.ProcessEnv | undefined
return /^http:\/\//i.test(loginServer.trim()) ? { TS_DEBUG_ALLOW_HTTP: '1' } : undefined
}
async function installTailscale(): Promise<CommandResult> {
const installScript = [
'set -e',
'if command -v tailscale >/dev/null 2>&1; then exit 0; fi',
'curl -fsSL https://tailscale.com/install.sh | sh',
'mkdir -p /var/lib/autonomy-studio',
"printf '%s\\n' installed_by=autonomy-studio-launcher > /var/lib/autonomy-studio/managed-tailscale",
].join('; ')
try {
await runCommand('pkexec', ['/bin/sh', '-c', installScript], 120000)
return { ok: true, message: 'Tailscale 설치 완료' }
} catch (error) {
return {
ok: false,
message: commandErrorMessage(error, 'Tailscale 설치 실패'),
}
}
}
function hasTailscaleCoordinationIssue(health?: string[]): boolean {
return Boolean(
health?.some((message) =>
@@ -935,6 +955,7 @@ function createWindow(): void {
ipcMain.handle('clear-launcher-cache', () => clearLauncherCache())
ipcMain.handle('start-google-login', (_, url: string) => shell.openExternal(url))
ipcMain.handle('launcher-tailscale-status', () => readTailscaleStatus())
ipcMain.handle('launcher-tailscale-install', () => installTailscale())
ipcMain.handle('launcher-ssh-key-ensure', () => ensureLauncherSshKey())
ipcMain.handle(
'launcher-tailscale-login',