MCPcopy Index your code
hub / github.com/anomalyco/opencode / exec

Function exec

packages/opencode/test/tool/task.test.ts:266–286  ·  view source on GitHub ↗
(extra?: Record<string, any>)

Source from the content-addressed store, hash-verified

264 const promptOps = stubOps()
265
266 const exec = (extra?: Record<string, any>) =>
267 def.execute(
268 {
269 description: "inspect bug",
270 prompt: "look into the cache key path",
271 subagent_type: "general",
272 },
273 {
274 sessionID: chat.id,
275 messageID: assistant.id,
276 agent: "build",
277 abort: new AbortController().signal,
278 extra: { promptOps, ...extra },
279 messages: [],
280 metadata: () => Effect.void,
281 ask: (input) =>
282 Effect.sync(() => {
283 calls.push(input)
284 }),
285 },
286 )
287
288 yield* exec()
289 yield* exec({ bypassAgentCheck: true })

Callers 6

read.test.tsFile · 0.70
webfetch.test.tsFile · 0.70
task.test.tsFile · 0.70
readFunction · 0.50
gitFunction · 0.50
installGitHubAppFunction · 0.50

Calls 3

syncMethod · 0.80
pushMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected