MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / asMode

Function asMode

masfactory-visualizer/src/runtime/runtimeHub.ts:37–42  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

35}
36
37function asMode(value: unknown): VisualizerMode {
38 const s = typeof value === 'string' ? value.toLowerCase() : '';
39 if (s === 'debug') {return 'debug';}
40 if (s === 'run') {return 'run';}
41 return 'unknown';
42}
43
44function asView(value: unknown): 'auto' | 'preview' | 'vibe' {
45 const s = typeof value === 'string' ? value.toLowerCase() : '';

Callers 1

onTextMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected