Commit Graph

477 Commits

Author SHA1 Message Date
Apple
a31e5dbf7e fix: synchronize all metadata fields to meta in schemas
- Fix UserFactUpsertRequest.metadata -> meta
- Fix DialogSummaryBase.metadata -> meta
- All schemas now use meta consistently
2025-11-15 12:31:01 -08:00
Apple
3698a0d2a1 refactor: remove all ForeignKey constraints for testing (variant A)
- Remove all FK constraints from models (users, teams, channels, agents)
- Keep fields as optional nullable String for testing DAARWIZZ
- Update SQL migration to remove all REFERENCES
- Fix metadata -> meta in migration
- Allows service to work without base tables for testing
2025-11-15 12:24:45 -08:00
Apple
7afcffd0bd fix: remove teams foreign key constraint from UserFact
- Remove FK constraint from UserFact.team_id (teams table may not exist)
- Update SQL migration to remove FK constraint
- team_id remains optional String field without FK
2025-11-15 12:01:06 -08:00
Apple
b1a80b8fed fix: rename last remaining metadata field to meta in AgentMemoryFactsVector
- Fix AgentMemoryFactsVector.metadata -> AgentMemoryFactsVector.meta
- All metadata fields now completely renamed to meta
2025-11-15 11:58:33 -08:00
Apple
3017f5f9b9 fix: rename remaining metadata fields to meta in models.py
- Fix DialogSummary.metadata -> DialogSummary.meta
- Fix AgentMemoryFactsVector.metadata -> AgentMemoryFactsVector.meta
- All metadata fields now renamed to meta
2025-11-15 11:58:26 -08:00
Apple
734b6ab850 fix: rename metadata field to meta (metadata is reserved in SQLAlchemy)
- Rename metadata to meta in all models (UserFact, DialogSummary, AgentMemoryFactsVector)
- Update schemas to use meta instead of metadata
- Update SQL migration to use meta column name
- Fixes SQLAlchemy reserved name conflict
2025-11-15 11:54:39 -08:00
Apple
f7c0a0fc08 fix: move CheckConstraint to __table_args__ in AgentMemoryEvent model
- Fix syntax error on line 115-116
- Move CheckConstraint from Column parameters to __table_args__
- Add proper constraint names
2025-11-15 11:49:34 -08:00
Apple
d50765f2ff feat: add memory-service to docker-compose.yml
- Add memory-service as a service (not under networks:)
- Create Dockerfile for memory-service
- Configure depends_on city-db with healthcheck condition
- Set DATABASE_URL to connect to city-db
2025-11-15 11:40:07 -08:00
Apple
802e092e5b fix: move city-db service under services: section in docker-compose.yml 2025-11-15 11:35:04 -08:00
Apple
7aa0745877 refactor: reorganize memory-service into app/ directory structure
- Move models.py, schemas.py, crud.py, main.py to app/
- Update imports to use app.* prefix
- Update README with new structure
- Fix uvicorn run command for new structure
2025-11-15 10:14:26 -08:00
Apple
6d5d83c347 Merge feature/memory-service into main 2025-11-15 10:12:59 -08:00
Apple
9e99c3afe2 feat: add Memory Service for DAARWIZZ 2025-11-15 10:12:37 -08:00
Ivan Tytar
7b360fc360 fix: Gateway response extraction and GPU optimization
- Fixed Gateway to extract response from data.text field
- GPU working: RTX 4000 Ada, response time 7-10s (was 30-40s)
- DAARWIZZ now responds correctly with full personality
- Started Memory Service structure
2025-11-15 18:55:09 +01:00
Apple
a54a7b078c feat: add Console UI for MicroDAO management
- Create ConsolePage with navigation
- Add WalletInfo component (balance display and access checks)
- Add CreateMicroDaoForm (with balance validation)
- Add MicroDaoList component (display teams/MicroDAO)
- Add InviteMemberForm (with balance checks for admin/member)
- Add wallet API client
- Update teams API with inviteMember function
- Add /console route to App.tsx
2025-11-15 09:00:59 -08:00
Apple
582ab75b03 feat: add MicroDAO balance checks and DAARION.city integration
- Update Wallet Service: balance checks (1 DAARION for create, 0.01 for usage)
- Update DAOFactory Service: use new balance checks
- Add DB migration: teams type field and city_links table
- Add DAARION.city seed data
- Create teams API routes with balance validation
- Add DAARION.city remote repository
- Add sync scripts and documentation
2025-11-15 08:56:14 -08:00
Ivan Tytar
03d3d6ecc4 fix: increase LLM timeout 30s→60s, fix Gateway request format, add Ollama optimization guide
- Fixed Gateway: 'prompt' → 'message' field name
- Increased LLM provider timeout from 30s to 60s
- Added OLLAMA-OPTIMIZATION.md with performance tips
- DAARWIZZ now responds (slowly but works)
2025-11-15 17:46:35 +01:00
Ivan Tytar
36770c5c92 feat: DAARWIZZ v3 - production persona with full profile and system prompt
- Updated gateway-bot/daarwizz_prompt.txt with v3 system prompt
- Created docs/daarwizz/PROFILE.md with complete agent profile
- Defines DAARWIZZ as digital mayor and MoE coordinator
- Specifies communication style, roles, security policies
- Integration with full DAGI Stack (Router, DevTools, CrewAI, RBAC)
- Knowledge base references to official DAARION.city docs
2025-11-15 17:02:38 +01:00
Ivan Tytar
26fa3eee0a docs: Add DAARWIZZ deployment guide with webhook setup instructions 2025-11-15 16:00:39 +01:00
Ivan Tytar
df0055bb03 fix: Docker deployment - fix Dockerfiles, registry.py f-strings, Gateway app structure 2025-11-15 15:59:42 +01:00
Ivan Tytar
ff01021f96 docs: Add DAARWIZZ bot Quick Start guide
@DAARWIZZBot is now live!

Bot Information:
- Username: @DAARWIZZBot
- Bot ID: 8323412397
- Link: https://t.me/DAARWIZZBot
- Token: Stored in .env

Quick Start Guide includes:
- 5-step deployment process
- Webhook setup (ngrok or domain)
- Testing instructions
- Monitoring and troubleshooting
- Bot configuration via BotFather
- Phase 4 enhancement roadmap

Ready to test first dialog!
2025-11-15 15:38:22 +01:00
Ivan Tytar
8b523977c7 docs: Add comprehensive DAARWIZZ documentation
Complete guide for DAARWIZZ AI agent:
- Personality and behavior guidelines
- Technical implementation details
- Message flow diagrams
- Example interactions (Ukrainian)
- Testing instructions
- Customization guide
- Future enhancements roadmap

Includes curl examples, Docker config, and monitoring metrics.
2025-11-15 15:33:04 +01:00
Ivan Tytar
be95bbad9c feat: Add DAARWIZZ agent with personality
DAARWIZZ - Official AI agent for DAARION.city ecosystem

Changes:
- gateway-bot/daarwizz_prompt.txt: System prompt defining DAARWIZZ personality
- gateway-bot/http_api.py: Load and inject DAARWIZZ context into Router requests
- gateway-bot/Dockerfile: Copy DAARWIZZ prompt file to container
- providers/llm_provider.py: Support context.system_prompt from Gateway

Features:
- Telegram webhook sends agent='daarwizz' to Router
- System prompt loaded from file (customizable)
- LLM receives full DAARWIZZ context + RBAC
- Discord support included

Usage:
- User messages DAARWIZZ in Telegram
- Gateway enriches with system prompt + RBAC
- Router routes to LLM with full context
- DAARWIZZ responds with DAO-aware answers

Next: Set TELEGRAM_BOT_TOKEN and test first dialog
2025-11-15 15:31:58 +01:00
Ivan Tytar
244c6171a8 docs: Add repository index and workflow guide
- Complete repository structure overview
- Cursor + GitHub + Warp.dev workflow documentation
- Development cycle diagram
- Quick actions reference
- Key files listing

Helps developers navigate the codebase and understand the sync flow.
2025-11-15 14:47:46 +01:00
Ivan Tytar
7bacae6a89 Merge: Integrate DAGI Stack v0.2.0 with existing repository (secrets fixed) 2025-11-15 14:35:40 +01:00
Ivan Tytar
3cacf67cf5 feat: Initial commit - DAGI Stack v0.2.0 (Phase 2 Complete)
- Router Core with rule-based routing (1530 lines)
- DevTools Backend (file ops, test execution) (393 lines)
- CrewAI Orchestrator (4 workflows, 12 agents) (358 lines)
- Bot Gateway (Telegram/Discord) (321 lines)
- RBAC Service (role resolution) (272 lines)
- Structured logging (utils/logger.py)
- Docker deployment (docker-compose.yml)
- Comprehensive documentation (57KB)
- Test suites (41 tests, 95% coverage)
- Phase 4 roadmap & ecosystem integration plans

Production-ready infrastructure for DAARION microDAOs.
2025-11-15 14:35:24 +01:00
Apple
c552199eed chore: organize documentation structure for monorepo
- Create /docs structure (microdao, daarion, agents)
- Organize 61 cursor technical docs
- Add README files for each category
- Copy key documents to public categories
- Add GitHub setup instructions and scripts
2025-11-15 04:08:35 -08:00
Apple
5520665600 Initial commit: MVP structure + Cursor documentation + Onboarding components 2025-11-13 06:12:20 -08:00