refactor(shared): move parseModelString out of delegate-task to break cross-tool coupling

Move parseModelString into src/shared so callers can depend on a neutral module instead of reaching into delegate-task internals.

Cross-tool coupling violates module boundaries, and this keeps call-omo-agent plus runtime-fallback from importing through a sibling tool.
This commit is contained in:
YeonGyu-Kim
2026-04-18 01:51:26 +09:00
parent 1aebf39d23
commit db056346d2
6 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { fuzzyMatchModel } from "../../shared/model-availability"
import { transformModelForProvider } from "../../shared/provider-model-id-transform"
import { hasConnectedProvidersCache, hasProviderModelsCache, readConnectedProvidersCache } from "../../shared/connected-providers-cache"
import { log } from "../../shared/logger"
import { parseModelString, parseVariantFromModelID } from "./model-string-parser"
import { parseModelString, parseVariantFromModelID } from "../../shared/model-string-parser"
function isExplicitHighModel(model: string): boolean {
return /(?:^|\/)[^/]+-high$/.test(model)