Spaces:
Configuration error

Yash030 commited on
Commit
4d5727a
·
1 Parent(s): fbcb300

feat: upscale & UX overhaul — blueprint split, debounce, tests, viewer enhancements, DX improvements

Browse files

Track A — Backend Structure:
- Split app.py into 7 Flask blueprints (src/routes/)
- Create src/memory/ package and src/storage/ package
- Per-thread SQLite connections, WAL checkpoint, db.stats()
- IndexPersistence debounce queue with threading.Timer + dirty flags
- Workers: SIGTERM/SIGINT graceful shutdown

Track B — Viewer UX:
- Command palette (Ctrl+K/Cmd+K) with fuzzy search
- D3 v7 force-directed graph replacing canvas
- VirtualList for Timeline/Folders
- Onboarding card for empty state
- MCP Tool Tester tab
- Tab keyboard navigation (ARIA roles, arrow keys)
- Skeleton loading states (@keyframes shimmer)

Track C — Reliability & Testing:
- test_search.py, test_remember.py, test_context.py, test_debounce.py
- test_properties.py (8 Hypothesis property tests)
- test_api.py (Flask test client integration tests)
- test_route_regressions.py (blueprint regression suite)
- sync.py: audit log HWM replaces mtime change detection
- /health: syncStatus, lastSyncAt, dbSizeBytes fields

Track D — Integrations & DX:
- hooks/: claude-code-hook.sh, cursor-hook.js, powershell-hook.ps1
- INSTALL_FOR_AGENTS.md: hook setup section added
- pyproject.toml + src/cli.py (serve/migrate/export commands)
- CI: Python 3.10/3.11/3.12 matrix, pip install + pytest + build
- OpenAIEmbeddingProvider + SentenceTransformerProvider
- Auto-select embedding provider priority chain
- CORS via AGENTMEMORY_CORS_ORIGINS env var
- Stop injecting AGENTMEMORY_SECRET into viewer HTML
- mcp_stdio.py: antigravity moved to examples/
- ARCHITECTURE.md, docs/viewer-design-system.md, cleaned scratch files

This view is limited to 50 files because it contains too many changes.   See raw diff
53 files changed +6481 -3841
Files changed (50)
.github/workflows/ci.yml+13-24
.kiro/specs/folder-based-memory/tasks.md+367-298
ARCHITECTURE.mdAdded+144
INSTALL_FOR_AGENTS.md+79-1
migrate_dolt_to_sqlite.py → docs/migration/migrate_dolt_to_sqlite.pyRenamed
File without content changes
DESIGN.md → docs/viewer-design-system.mdRenamed
File without content changes
examples/antigravity_sync.pyAdded+240
hooks/claude-code-hook.shAdded+48
hooks/cursor-hook.jsAdded+59
hooks/powershell-hook.ps1Added+77
push_local_data.pyDeleted-96
push_second_brain.pyDeleted-38
pyproject.tomlAdded+42
scratch_diff.txtDeleted-689
scratch_test_import.pyDeleted-27
src/app.py+143-2167
src/cli.pyAdded+99
src/db.py+173-109
src/functions.py+150-57
src/mcp_stdio.py+18-299
src/memory/__init__.pyAdded+72
src/memory/context.pyAdded+30
src/memory/graph.pyAdded+18
src/memory/health.pyAdded+24
src/memory/observe.pyAdded+35
src/memory/remember.pyAdded+30
src/memory/timeline.pyAdded+37
src/routes/__init__.pyAdded+24
src/routes/graph.pyAdded+146
src/routes/health.pyAdded+137
src/routes/mcp.pyAdded+371
src/routes/memories.pyAdded+134
src/routes/migration.pyAdded+49
src/routes/observations.pyAdded+140
src/routes/search.pyAdded+80
src/search.py+100-1
src/storage/__init__.pyAdded+23
src/storage/images.pyAdded+98
src/storage/paths.pyAdded+120
src/storage/scopes.pyAdded+68
src/viewer/index.html+630-13
src/viewer_helpers.pyAdded+57
src/workers.pyAdded+146
sync.py+75-21
tests/test_api.pyAdded+254
tests/test_context.pyAdded+169
tests/test_debounce.pyAdded+169
tests/test_folder_graph_build.py+1-1
tests/test_observe_core.pyAdded+207
tests/test_properties.pyAdded+310