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

Function resolveNoInteractive

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

Source from the content-addressed store, hash-verified

15 * Use this helper instead of manually checking options.noInteractive to avoid bugs.
16 */
17export function resolveNoInteractive(value?: boolean | InteractiveOptions): boolean {
18 if (typeof value === 'boolean') return value;
19 return value?.noInteractive === true || value?.interactive === false;
20}
21
22export function isInteractive(value?: boolean | InteractiveOptions): boolean {
23 if (resolveNoInteractive(value)) return false;

Callers 3

isInteractiveFunction · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected