MCPcopy
hub / github.com/coder/mux / getTaskDepth

Method getTaskDepth

src/node/services/taskService.ts:6947–6957  ·  view source on GitHub ↗
(
    config: ReturnType<Config["loadConfigOrDefault"]>,
    workspaceId: string
  )

Source from the content-addressed store, hash-verified

6945 }
6946
6947 private getTaskDepth(
6948 config: ReturnType<Config["loadConfigOrDefault"]>,
6949 workspaceId: string
6950 ): number {
6951 assert(workspaceId.length > 0, "getTaskDepth: workspaceId must be non-empty");
6952
6953 return this.getTaskDepthFromParentById(
6954 this.buildAgentTaskIndex(config).parentById,
6955 workspaceId
6956 );
6957 }
6958
6959 private getTaskDepthFromParentById(parentById: Map<string, string>, workspaceId: string): number {
6960 let depth = 0;

Callers 2

createManyMethod · 0.95
createMethod · 0.95

Calls 3

buildAgentTaskIndexMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected