INNER CODE UNIT · TypeScript
MAX_MEMORY_SIZE
vibeeval/vibecosystem · hooks/src/agent-memory-loader.ts:32
const MAX_MEMORY_SIZE = 8000; // karakterde max inject boyutu
const MAX_FILES = 10; // max memory dosyasi
/**
* Agent type'i dizin adi icin sanitize et
*/
function sanitizeAgentType(agentType: string): string {
return agentType.replace(/[:/\\]/g, '-').replace(/\s+/g, '-').toLowerCase();
}
/**
* Agent memory dizinini dondur
*/
function getAgentMemoryDir(agentType: string, scope: AgentMemoryScope): string {
const dirName = sanitizeAgentType(agentType);
switch (scope) {
case 'user':
return join(CLAUDE_HOME, 'agent-memory', dirName);