MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / toInputId

Function toInputId

scripts/sync-workflow-inputs.ts:25–27  ·  view source on GitHub ↗
(agent: string, model: string)

Source from the content-addressed store, hash-verified

23
24// Convert agent:model to workflow input ID
25function toInputId(agent: string, model: string): string {
26 return `${agent}_${model}`.replace(/\//g, "_").replace(/-/g, "_");
27}
28
29// Convert agent:model to display description
30function toDescription(agent: string, model: string): string {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected