MCPcopy
hub / github.com/MiniMax-AI/cli / isInteractive

Function isInteractive

src/utils/env.ts:20–24  ·  view source on GitHub ↗
(options?: { nonInteractive?: boolean })

Source from the content-addressed store, hash-verified

18 * was not passed.
19 */
20export function isInteractive(options?: { nonInteractive?: boolean }): boolean {
21 if (options?.nonInteractive === true) return false;
22 if (process.env.CI) return false;
23 return process.stdout.isTTY === true && process.stdin.isTTY === true;
24}
25
26/**
27 * Detects whether the current process is running in a CI environment.

Callers 11

env.test.tsFile · 0.90
ensureAuthFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
promptTextFunction · 0.85
promptConfirmFunction · 0.85
promptOrFailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected