MCPcopy
hub / github.com/modstart-lib/aigcpanel / writeCliAuthFile

Function writeCliAuthFile

electron/mapi/httpserver/main.ts:40–47  ·  view source on GitHub ↗
(port: number, token: string)

Source from the content-addressed store, hash-verified

38};
39
40const 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
49const functionArgsMap: Record<string, string[]> = {
50 soundTts: ["text"],

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected