MCPcopy Create free account
hub / github.com/Stevenic/codepilot / hasKeys

Method hasKeys

src/CodeIndex.ts:217–219  ·  view source on GitHub ↗

* Returns whether a `vectra.keys` file exists for the index.

()

Source from the content-addressed store, hash-verified

215 * Returns whether a `vectra.keys` file exists for the index.
216 */
217 public async hasKeys(): Promise<boolean> {
218 return await fs.stat(path.join(this.folderPath, 'vectra.keys')).then(() => true).catch(() => false);
219 }
220
221 /**
222 * Returns true if the index has been created.

Callers 4

runFunction · 0.95
queryMethod · 0.95
rebuildMethod · 0.95
upsertDocumentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected