MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / electronWorkspaceBridge

Function electronWorkspaceBridge

ui/src/components/workspace/api.ts:491–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

489}
490
491function electronWorkspaceBridge(): NonNullable<Window['openAlice']>['workspace'] | undefined {
492 return typeof window !== 'undefined' ? window.openAlice?.workspace : undefined;
493}
494
495export async function listFiles(id: string, relPath: string): Promise<DirListing> {
496 // Electron app mode has a native file transport. Browser/dev/Docker keep the

Callers 2

listFilesFunction · 0.85
readWorkspaceFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected