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

Function getCurrentMetadata

src/node/services/workspaceService.test.ts:8112–8128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8110 const managedPath = path.join(tempSrcBaseDir, "_workspaces", workspaceName);
8111
8112 const getCurrentMetadata = async (): Promise<FrontendWorkspaceMetadata> => {
8113 const transcriptOnly = await fsPromises
8114 .access(managedPath)
8115 .then(() => false)
8116 .catch(() => true);
8117
8118 return {
8119 id: workspaceId,
8120 name: workspaceName,
8121 projectName,
8122 projectPath,
8123 runtimeConfig,
8124 archivedAt: options?.archivedAt,
8125 transcriptOnly,
8126 namedWorkspacePath: managedPath,
8127 };
8128 };
8129
8130 const mockConfig: Partial<Config> = {
8131 srcDir: tempSrcBaseDir,

Callers 1

createHarnessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected