MCPcopy
hub / github.com/Fission-AI/OpenSpec / isInteractive

Function isInteractive

src/utils/interactive.ts:22–28  ·  view source on GitHub ↗
(value?: boolean | InteractiveOptions)

Source from the content-addressed store, hash-verified

20}
21
22export function isInteractive(value?: boolean | InteractiveOptions): boolean {
23 if (resolveNoInteractive(value)) return false;
24 if (process.env.OPEN_SPEC_INTERACTIVE === '0') return false;
25 // Respect the standard CI environment variable (set by GitHub Actions, GitLab CI, Travis, etc.)
26 if ('CI' in process.env) return false;
27 return !!process.stdin.isTTY;
28}
29

Callers 15

showMethod · 0.85
registerSpecCommandFunction · 0.85
createMethod · 0.85
openMethod · 0.85
removeMethod · 0.85
resolveSetupInputFunction · 0.85
confirmRemoveFunction · 0.85
setupMethod · 0.85
registerMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85

Calls 1

resolveNoInteractiveFunction · 0.85

Tested by

no test coverage detected