(port: number, token: string)
| 38 | }; |
| 39 | |
| 40 | const writeCliAuthFile = (port: number, token: string): void => { |
| 41 | try { |
| 42 | const filePath = path.join(AppEnv.userData, "cli-auth.json"); |
| 43 | fs.writeFileSync(filePath, JSON.stringify({ port, token }), "utf-8"); |
| 44 | } catch (e) { |
| 45 | Log.error("httpserver.writeCliAuthFile.error", e); |
| 46 | } |
| 47 | }; |
| 48 | |
| 49 | const functionArgsMap: Record<string, string[]> = { |
| 50 | soundTts: ["text"], |