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

Function buildPendingPatchArtifact

src/node/services/gitPatchArtifactService.ts:228–247  ·  view source on GitHub ↗
(params: {
  childTaskId: string;
  parentWorkspaceId: string;
  createdAtMs: number;
  updatedAtMs: number;
  projectArtifacts: SubagentGitProjectPatchArtifact[];
})

Source from the content-addressed store, hash-verified

226}
227
228function buildPendingPatchArtifact(params: {
229 childTaskId: string;
230 parentWorkspaceId: string;
231 createdAtMs: number;
232 updatedAtMs: number;
233 projectArtifacts: SubagentGitProjectPatchArtifact[];
234}): SubagentGitPatchArtifact {
235 return {
236 childTaskId: params.childTaskId,
237 parentWorkspaceId: params.parentWorkspaceId,
238 createdAtMs: params.createdAtMs,
239 updatedAtMs: params.updatedAtMs,
240 status: "pending",
241 projectArtifacts: params.projectArtifacts,
242 readyProjectCount: 0,
243 failedProjectCount: 0,
244 skippedProjectCount: 0,
245 totalCommitCount: 0,
246 };
247}
248
249export function upsertProjectArtifact(params: {
250 artifact: SubagentGitPatchArtifact;

Callers 3

maybeStartGenerationMethod · 0.85
generateMethod · 0.85
ensureProjectArtifactMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected