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

Function createWorkspaceMetadata

src/node/services/streamContextBuilder.test.ts:31–46  ·  view source on GitHub ↗
(args: {
  id: string;
  name: string;
  projectName: string;
  projectPath: string;
  parentWorkspaceId?: string;
})

Source from the content-addressed store, hash-verified

29}
30
31function createWorkspaceMetadata(args: {
32 id: string;
33 name: string;
34 projectName: string;
35 projectPath: string;
36 parentWorkspaceId?: string;
37}): WorkspaceMetadata {
38 return {
39 id: args.id,
40 name: args.name,
41 projectName: args.projectName,
42 projectPath: args.projectPath,
43 runtimeConfig: DEFAULT_RUNTIME_CONFIG,
44 parentWorkspaceId: args.parentWorkspaceId,
45 };
46}
47
48function createProjectsConfig(args: {
49 projectPath: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected