MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / createStore

Function createStore

src/services/SessionMemory/multiStore.ts:141–148  ·  view source on GitHub ↗
(store: string)

Source from the content-addressed store, hash-verified

139
140/** Create a new store directory. */
141export function createStore(store: string): void {
142 validateStoreName(store)
143 const storeDir = getStoreDir(store)
144 if (existsSync(storeDir)) {
145 throw new Error(`Store "${store}" already exists`)
146 }
147 mkdirSync(storeDir, { recursive: true })
148}
149
150/** Archive a store by renaming it to <store>.archived */
151export function archiveStore(store: string): void {

Callers 2

multiStore.test.tsFile · 0.50

Calls 4

validateStoreNameFunction · 0.85
getStoreDirFunction · 0.85
existsSyncFunction · 0.85
mkdirSyncFunction · 0.85

Tested by

no test coverage detected