MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / runTask

Method runTask

apps/cli/src/agent/extension-host.ts:519–533  ·  view source on GitHub ↗
(
		prompt: string,
		taskId?: string,
		configuration?: RooCodeSettings,
		images?: string[],
	)

Source from the content-addressed store, hash-verified

517 }
518
519 public async runTask(
520 prompt: string,
521 taskId?: string,
522 configuration?: RooCodeSettings,
523 images?: string[],
524 ): Promise<void> {
525 this.sendToExtension({
526 type: "newTask",
527 text: prompt,
528 taskId,
529 taskConfiguration: configuration,
530 ...(images !== undefined ? { images } : {}),
531 })
532 return this.waitForTaskCompletion()
533 }
534
535 public async resumeTask(taskId: string): Promise<void> {
536 this.sendToExtension({ type: "showTaskWithId", text: taskId })

Callers 1

runFunction · 0.95

Calls 2

sendToExtensionMethod · 0.95
waitForTaskCompletionMethod · 0.95

Tested by

no test coverage detected