MCPcopy Create free account
hub / github.com/block/buzz / applyWorkspace

Function applyWorkspace

desktop/src/shared/api/tauri.ts:1318–1330  ·  view source on GitHub ↗
(
  relayUrl: string,
  nsec?: string,
  token?: string,
  reposDir?: string,
)

Source from the content-addressed store, hash-verified

1316}
1317
1318export async function applyWorkspace(
1319 relayUrl: string,
1320 nsec?: string,
1321 token?: string,
1322 reposDir?: string,
1323): Promise<void> {
1324 await invokeTauri("apply_workspace", {
1325 relayUrl,
1326 nsec: nsec ?? null,
1327 token: token ?? null,
1328 reposDir: reposDir ?? null,
1329 });
1330}
1331
1332// Validate a candidate repos dir without mutating the filesystem. Rejects
1333// with a human-readable reason; resolves for a valid or empty path.

Callers 1

initFunction · 0.90

Calls 1

invokeTauriFunction · 0.70

Tested by

no test coverage detected