MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / isValidStoreName

Function isValidStoreName

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

Source from the content-addressed store, hash-verified

76 * E1 fix: hardened against path traversal on Windows and POSIX.
77 */
78export function isValidStoreName(store: string): boolean {
79 try {
80 validateStoreName(store)
81 return true
82 } catch {
83 return false
84 }
85}
86
87function validateStoreName(store: string): void {
88 if (!store) {

Callers 2

checkPermissionsFunction · 0.85
validateAndAdvanceFunction · 0.85

Calls 1

validateStoreNameFunction · 0.85

Tested by

no test coverage detected