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

Method clone

src/node/services/projectService.ts:919–933  ·  view source on GitHub ↗
(
    input: CloneProjectParams
  )

Source from the content-addressed store, hash-verified

917 }
918
919 async clone(
920 input: CloneProjectParams
921 ): Promise<Result<{ projectConfig: ProjectConfig; normalizedPath: string }>> {
922 for await (const event of this.cloneWithProgress(input)) {
923 if (event.type === "success") {
924 return Ok({ projectConfig: event.projectConfig, normalizedPath: event.normalizedPath });
925 }
926
927 if (event.type === "error") {
928 return Err(event.error);
929 }
930 }
931
932 return Err("Clone did not return a completion event");
933 }
934
935 async remove(projectPath: string, force = false): Promise<Result<void, ProjectRemoveError>> {
936 try {

Callers 6

service-worker.jsFile · 0.80
copilotFetchFnMethod · 0.80
cloneWithFakeGitFunction · 0.80

Calls 3

cloneWithProgressMethod · 0.95
OkFunction · 0.90
ErrFunction · 0.90

Tested by 1

cloneWithFakeGitFunction · 0.64