chore: initialize recovered claude workspace
This commit is contained in:
12
src/utils/memory/types.ts
Normal file
12
src/utils/memory/types.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { feature } from 'bun:bundle'
|
||||
|
||||
export const MEMORY_TYPE_VALUES = [
|
||||
'User',
|
||||
'Project',
|
||||
'Local',
|
||||
'Managed',
|
||||
'AutoMem',
|
||||
...(feature('TEAMMEM') ? (['TeamMem'] as const) : []),
|
||||
] as const
|
||||
|
||||
export type MemoryType = (typeof MEMORY_TYPE_VALUES)[number]
|
||||
8
src/utils/memory/versions.ts
Normal file
8
src/utils/memory/versions.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { findGitRoot } from '../git.js'
|
||||
|
||||
// Note: This is used to check git repo status synchronously
|
||||
// Uses findGitRoot which walks the filesystem (no subprocess)
|
||||
// Prefer `dirIsInGitRepo()` for async checks
|
||||
export function projectIsInGitRepo(cwd: string): boolean {
|
||||
return findGitRoot(cwd) !== null
|
||||
}
|
||||
Reference in New Issue
Block a user