MCPcopy Create free account
hub / github.com/0xcaff/codex-web / constructor

Method constructor

src/server/electron/index.ts:344–403  ·  view source on GitHub ↗
(...args: unknown[])

Source from the content-addressed store, hash-verified

342 return { gpuDevice: [] };
343 },
344 setName(name: string): void {
345 log("app.setName", [name]);
346 },
347 setPath(name: string, value: string): void {
348 log("app.setPath", [name, value]);
349 },
350 setAppUserModelId(value: string): void {
351 log("app.setAppUserModelId", [value]);
352 },
353 requestSingleInstanceLock(): boolean {
354 log("app.requestSingleInstanceLock", []);
355 return true;
356 },
357 isReady(): boolean {
358 log("app.isReady", []);
359 return appReady;
360 },
361 whenReady(): Promise<void> {
362 log("app.whenReady", []);
363 appReady = true;
364 return Promise.resolve();
365 },
366 commandLine: {
367 appendSwitch(name: string, value?: string): void {
368 log("app.commandLine.appendSwitch", [name, value]);
369 commandLineSwitches.set(name, value ?? "");
370 },
371 appendArgument(value: string): void {
372 log("app.commandLine.appendArgument", [value]);
373 commandLineArguments.push(value);
374 },
375 getSwitchValue(name: string): string {
376 log("app.commandLine.getSwitchValue", [name]);
377 return commandLineSwitches.get(name) ?? "";
378 },
379 hasSwitch(name: string): boolean {
380 log("app.commandLine.hasSwitch", [name]);
381 return commandLineSwitches.has(name);
382 },
383 removeSwitch(name: string): void {
384 log("app.commandLine.removeSwitch", [name]);
385 commandLineSwitches.delete(name);
386 },
387 },
388 on(event: string, listener: (...args: unknown[]) => void): unknown {
389 log("app.on", [event, listener]);
390 return app;
391 },
392 once(event: string, listener: (...args: unknown[]) => void): unknown {
393 log("app.once", [event, listener]);
394 return app;
395 },
396 quit(): void {
397 log("app.quit", []);
398 },
399 exit(code?: number): void {
400 log("app.exit", [code]);
401 },

Callers

nothing calls this directly

Calls 4

logFunction · 0.85
createEmitterStubFunction · 0.85
createDeepStubFunction · 0.85
getIpcMainBridgeStateFunction · 0.70

Tested by

no test coverage detected