MCPcopy
hub / github.com/anomalyco/opencode / useSync

Function useSync

packages/app/src/context/sync.tsx:112–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112export const useSync = () => {
113 const serverSync = useServerSync()
114 const sdk = useSDK()
115
116 return createMemo(() => serverSync().ensureDirSyncContext(sdk().directory))
117}
118
119export type DirectorySync = ReturnType<ReturnType<typeof useSync>>

Callers 15

ProbeFunction · 0.90
AppFunction · 0.90
DialogModelFunction · 0.90
AutoMethodFunction · 0.90
CodeMethodFunction · 0.90
ApiMethodFunction · 0.90
useConnectedFunction · 0.90
DialogSessionListFunction · 0.90
DialogStatusFunction · 0.90
DialogMoveSessionFunction · 0.90
DialogMcpFunction · 0.90

Calls 2

sdkFunction · 0.85
serverSyncFunction · 0.70

Tested by

no test coverage detected