MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / createTaskStateBase

Function createTaskStateBase

source code/Task.ts:110–127  ·  view source on GitHub ↗
(
  id: string,
  type: TaskType,
  description: string,
  toolUseId?: string,
)

Source from the content-addressed store, hash-verified

108}
109
110export function createTaskStateBase(
111 id: string,
112 type: TaskType,
113 description: string,
114 toolUseId?: string,
115): TaskStateBase {
116 return {
117 id,
118 type,
119 status: 'pending',
120 description,
121 toolUseId,
122 startTime: Date.now(),
123 outputFile: getTaskOutputPath(id),
124 outputOffset: 0,
125 notified: false,
126 }
127}

Callers 10

spawnInProcessTeammateFunction · 0.85
registerMainSessionTaskFunction · 0.85
registerRemoteAgentTaskFunction · 0.85
registerDreamTaskFunction · 0.85
spawnShellTaskFunction · 0.85
registerForegroundFunction · 0.85
registerAsyncAgentFunction · 0.85
registerAgentForegroundFunction · 0.85

Calls 1

getTaskOutputPathFunction · 0.85

Tested by

no test coverage detected