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

Method init

services/app-builder/src/git/fs-adapter.ts:26–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 init() {
27 // Ensure root directory exists
28 this.db
29 .insert(gitObjects)
30 .values({
31 path: '',
32 parent_path: '',
33 data: '',
34 is_dir: 1,
35 mtime: Date.now(),
36 })
37 .onConflictDoNothing()
38 .run();
39
40 // promises property required by isomorphic-git
41 Object.defineProperty(this, 'promises', {
42 value: this,
43 enumerable: true,
44 writable: false,
45 configurable: false,
46 });
47 }
48
49 getStorageStats(): {
50 totalObjects: number;

Callers 7

PostHogProviderFunction · 0.45
showCancelFlowFunction · 0.45
_layout.tsxFile · 0.45
initializeFSMethod · 0.45
initializeMethod · 0.45
pushToRemoteMethod · 0.45
buildRepositoryMethod · 0.45

Calls 2

runMethod · 0.80
valuesMethod · 0.65

Tested by

no test coverage detected