MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / remoteAssetUrl

Function remoteAssetUrl

apps/desktop/src/preload/index.ts:156–163  ·  view source on GitHub ↗
(assetPath: string)

Source from the content-addressed store, hash-verified

154}
155
156function remoteAssetUrl(assetPath: string): string | null {
157 if (remoteWorkspaceInfo?.mode !== 'remote' || !remoteWorkspaceInfo.baseUrl) return null
158 const trimmed = assetPath.trim()
159 if (!trimmed) return null
160 return `zen-asset://remote?baseUrl=${encodeURIComponent(
161 remoteWorkspaceInfo.baseUrl.replace(/\/+$/, '')
162 )}&path=${encodeURIComponent(trimmed)}`
163}
164
165const api: ZenBridge = {
166 getCapabilities: (): ZenCapabilities => DESKTOP_CAPABILITIES,

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected