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

Method getTaskMode

src/core/task/Task.ts:770–773  ·  view source on GitHub ↗

* Get the task mode asynchronously, ensuring it's properly initialized. * This is the recommended way to access the task mode as it guarantees * the mode is available before returning. * * ## Async behavior * - Internally waits for `taskModeReady` promise to resolve * - Returns the initi

()

Source from the content-addressed store, hash-verified

768 * @public
769 */
770 public async getTaskMode(): Promise<string> {
771 await this.taskModeReady
772 return this._taskMode || defaultModeSlug
773 }
774
775 /**
776 * Get the task mode synchronously. This should only be used when you're certain

Callers 1

getCurrentModeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected