MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / buildEvalScript

Function buildEvalScript

src/agent-backend.ts:167–169  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

165}
166
167function buildEvalScript(body: string): string {
168 return `(() => { ${body} })()`;
169}
170
171function buildAgentTypeScript(selector: string, indexValue: number, text: string, clear: boolean): string {
172 const payload = { selector, index: indexValue, text, clear };

Callers 8

buildAgentTypeScriptFunction · 0.85
buildAgentSelectScriptFunction · 0.85
buildAgentPageTextScriptFunction · 0.85
buildAgentListScriptFunction · 0.85
buildAgentNthValueScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected