Simplify workspace to path-based storage, remove legacy code

- Consolidate all migrations into V1__initial.sql
- Replace DocType enum with flexible path-based file storage
- Add list_workspace_files SQL function for directory listing
- Update memory tools for path-based API (memory_read, memory_write,
  memory_search, memory_list)
- Remove unused OpenAI/Anthropic providers (NEAR AI only)
- Simplify config to remove multi-provider support
- Update CLAUDE.md documentation

Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
Illia Polosukhin
2026-02-02 21:38:53 -08:00
co-authored by Claude Opus 4.5
parent f29892b3fb
commit 3718cfa767
13 changed files with 877 additions and 1427 deletions
+2 -15
View File
@@ -2,25 +2,12 @@
DATABASE_URL=postgres://near_agent:password@localhost:5432/near_agent
DATABASE_POOL_SIZE=10
# LLM Providers
# Default is NEAR AI which provides a unified interface to all models
# NEAR AI (recommended - unified API with user authentication)
# LLM Provider (NEAR AI)
# NEAR AI provides a unified interface to all models with user authentication
NEARAI_SESSION_TOKEN=sess_...
NEARAI_MODEL=claude-3-5-sonnet-20241022
NEARAI_BASE_URL=https://api.near.ai
# OpenAI (alternative)
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-4-turbo-preview
# Anthropic (alternative)
ANTHROPIC_API_KEY=sk-ant-...
ANTHROPIC_MODEL=claude-3-opus-20240229
# Default LLM provider: nearai, openai, or anthropic
LLM_PROVIDER=nearai
# Channel Configuration
# CLI is always enabled