()
| 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( |
no test coverage detected