chore: initialize recovered claude workspace

This commit is contained in:
2026-04-02 15:29:01 +08:00
commit a10efa3b4b
1940 changed files with 506426 additions and 0 deletions

12
src/utils/memory/types.ts Normal file
View 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]

View 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
}