MCPcopy Create free account
hub / github.com/backnotprop/plannotator / normalizeRuntime

Function normalizeRuntime

apps/opencode-plugin/workflow.ts:61–66  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

59}
60
61function normalizeRuntime(value: unknown): RuntimeMode {
62 const rawRuntime = typeof value === "string" ? value.trim() : "";
63 return RUNTIMES.has(rawRuntime as RuntimeMode)
64 ? rawRuntime as RuntimeMode
65 : DEFAULT_RUNTIME;
66}
67
68function normalizePlanningAgents(value: unknown): string[] {
69 const seen = new Set<string>();

Callers 1

normalizeWorkflowOptionsFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected