refactor: mutat kb/ -> memory/kb/ pentru memory search
- Mutat toate fișierele din kb/ în memory/kb/ - Actualizat toate referințele în fișiere (.md, .py, .html) - Actualizat 10 joburi cron cu noi căi - Memory search indexează acum 58 fișiere din memory/ - TOOLS.md actualizat cu documentație completă
This commit is contained in:
@@ -32,7 +32,7 @@ class TaskBoardHandler(SimpleHTTPRequestHandler):
|
||||
self.send_error(404)
|
||||
|
||||
def handle_refresh_index(self):
|
||||
"""Regenerate kb/index.json"""
|
||||
"""Regenerate memory/kb/index.json"""
|
||||
try:
|
||||
script = TOOLS_DIR / 'update_notes_index.py'
|
||||
result = subprocess.run(
|
||||
@@ -464,7 +464,7 @@ class TaskBoardHandler(SimpleHTTPRequestHandler):
|
||||
except:
|
||||
pass
|
||||
|
||||
# 3. Recent files in kb/ (last 24h)
|
||||
# 3. Recent files in memory/kb/ (last 24h)
|
||||
try:
|
||||
kb_dir = workspace / 'kb'
|
||||
cutoff = datetime.now().timestamp() - (24 * 3600)
|
||||
|
||||
@@ -1164,7 +1164,7 @@
|
||||
].filter(Boolean).join('');
|
||||
|
||||
// Convert notes-data/ to kb/ for files.html links
|
||||
const filesPath = note.file.replace(/^notes-data\//, 'kb/');
|
||||
const filesPath = note.file.replace(/^notes-data\//, 'memory/kb/');
|
||||
return `
|
||||
<div class="note-card" onclick="openNote('${note.file}')">
|
||||
<div class="note-title">
|
||||
@@ -1190,7 +1190,7 @@
|
||||
document.getElementById('viewerTitle').textContent = note.title;
|
||||
const pathEl = document.getElementById('viewerPath');
|
||||
// Convert notes-data/ to kb/ for display and links
|
||||
const filesPath = note.file.replace(/^notes-data\//, 'kb/');
|
||||
const filesPath = note.file.replace(/^notes-data\//, 'memory/kb/');
|
||||
pathEl.textContent = filesPath;
|
||||
pathEl.href = 'files.html#' + filesPath;
|
||||
document.getElementById('viewerContent').innerHTML = '<p style="color: var(--text-muted)">Se încarcă...</p>';
|
||||
|
||||
Reference in New Issue
Block a user