MCPcopy
hub / github.com/codeaashu/claude-code / createTaskStateBase

Function createTaskStateBase

src/Task.ts:108–125  ·  view source on GitHub ↗
(
  id: string,
  type: TaskType,
  description: string,
  toolUseId?: string,
)

Source from the content-addressed store, hash-verified

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