MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getStats

Method getStats

services/app-builder/src/git-repository-do.ts:212–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 return withLogTags(
211 { source: 'GitRepositoryDO', tags: { appId: this.ctx.id.name } },
212 async () => {
213 if (!this.fs) {
214 await this.initializeFS();
215 }
216
217 if (!this.fs) {
218 return { totalObjects: 0, totalBytes: 0, largestObject: null, initialized: false };
219 }
220
221 const stats = this.fs.getStorageStats();
222 return { ...stats, initialized: this._initialized };
223 }
224 );
225 }
226
227 // Legacy auth token verification (for transition period, read-only)
228 // Only used to support existing repositories with stored tokens
229 // New repositories should use JWT authentication instead
230 async verifyAuthToken(token: string): Promise<boolean> {
231 return withLogTags(

Callers 5

PUTFunction · 0.80
startControllerFunction · 0.80
supervisor.test.tsFile · 0.80
registerHealthRouteFunction · 0.80
registerGatewayRoutesFunction · 0.80

Calls 2

initializeFSMethod · 0.95
getStorageStatsMethod · 0.45

Tested by

no test coverage detected