MCPcopy
hub / github.com/stravu/crystal / getOrCreateMainRepoSession

Method getOrCreateMainRepoSession

frontend/src/utils/api.ts:143–146  ·  view source on GitHub ↗
(projectId: number)

Source from the content-addressed store, hash-verified

141
142 // Main repo session
143 async getOrCreateMainRepoSession(projectId: number) {
144 if (!isElectron()) throw new Error('Electron API not available');
145 return window.electronAPI.sessions.getOrCreateMainRepoSession(projectId);
146 },
147
148 // Script operations
149 async hasRunScript(sessionId: string) {

Callers 4

openMainRepoSessionFunction · 0.45
getMainRepoSessionFunction · 0.45
handleProjectGitPullFunction · 0.45
handleProjectGitPushFunction · 0.45

Calls 1

isElectronFunction · 0.85

Tested by

no test coverage detected