Apple
6297adc0dc
feat: implement Agent Chat Widget for entity pages
...
TASK_PHASE_AGENT_CHAT_WIDGET_MVP.md completed:
Backend:
- Add /api/v1/agents/{agent_id}/chat-room endpoint
- Add /api/v1/nodes/{node_id}/chat-room endpoint
- Add /api/v1/microdaos/{slug}/chat-room endpoint
Frontend:
- Create AgentChatWidget.tsx floating chat component
- Integrate into /agents/:agentId page
- Integrate into /nodes/:nodeId page
- Integrate into /microdao/:slug page
Ontology rule implemented:
'No page without agents' = ability to directly talk to agents on that page
2025-11-30 09:10:45 -08:00
Apple
644edd3f30
feat(mvp): DAGI Integration Fix - gov_level, DAIS, nodes table
...
TASK_PHASE_MVP_DAGI_INTEGRATION_FIX_20251201
A) Agents Layer:
- A1: Added gov_level to API and UI (list + profile)
- A2: Added dais_identity_id to API and UI
- A3: Added home_microdao_id/name/slug for ownership display
B) MicroDAO Layer:
- B1/B2: Already implemented (agents, rooms, citizens, district badge)
C) Nodes Layer:
- C1: Node Dashboard already implemented
- C2: Created nodes table migration with owner_microdao_id
- C3: INSERT NODE1/NODE2 with dao_daarion ownership
D) Backend Fixes:
- D1: Extended /api/agents/* with DAIS/governance fields
- D2/D3: Already implemented
Files changed:
- services/city-service/repo_city.py
- services/city-service/models_city.py
- services/city-service/routes_city.py
- services/city-service/migrations.py
- apps/web/src/lib/types/agents.ts
- apps/web/src/lib/agent-dashboard.ts
- apps/web/src/app/agents/page.tsx
- apps/web/src/components/agent-dashboard/AgentSummaryCard.tsx
Reports:
- docs/debug/mvp_dagi_integration_fix_report_20251201.md
- docs/tasks/TASK_PHASE_MVP_DAGI_INTEGRATION_FIX_20251201.md
2025-11-30 08:45:07 -08:00
Apple
a23deae3c4
feat(node-dashboard): add MVP dashboard API endpoint
...
- services/city-service: add /api/v1/nodes/{id}/dashboard endpoint
- services/city-service: add legacy /api/v1/node/dashboard?nodeId=...
- apps/web: update route.ts to use city-service first
- apps/web: fallback to node-registry if city-service fails
Response structure:
node_id, name, kind, status, tags, agents_total,
agents_online, uptime (null), metrics_available (false)
Closes TASK_PHASE_NODE_DASHBOARD_API_MVP
2025-11-30 06:59:51 -08:00
Apple
7ff426f975
fix: allow node cabinet fallback when dashboard unavailable
2025-11-30 06:40:32 -08:00
Apple
ec9ff3e633
feat(governance): Migrate Governance Engine to Next.js (apps/web)
...
BREAKING: Replace old MicroDAO voting with Agent Governance Engine
## New Files
- apps/web/src/lib/types/governance.ts
- apps/web/src/lib/api/governance.ts
- apps/web/src/lib/api/audit.ts
- apps/web/src/lib/api/incidents.ts
- apps/web/src/components/governance/GovernanceLevelBadge.tsx
- apps/web/src/components/governance/ReportButton.tsx
- apps/web/src/components/governance/CityGovernancePanel.tsx
- apps/web/src/components/governance/AuditDashboard.tsx
- apps/web/src/components/governance/IncidentsList.tsx
- apps/web/src/app/audit/page.tsx
- apps/web/src/app/incidents/page.tsx
## Updated Files
- apps/web/src/app/governance/page.tsx - New City Governance UI
- apps/web/src/components/Navigation.tsx - Shield icon for Governance
## Task
docs/tasks/TASK_PHASE_GOVERNANCE_MIGRATION_NEXTJS.md
2025-11-29 16:41:28 -08:00
Apple
deeaf26b0b
fix: remove unused auth0 import from orchestrator-team route
2025-11-29 05:21:35 -08:00
Apple
a6e531a098
fix: NODE1_REPAIR - healthchecks, dependencies, SSR env, telegram gateway
...
TASK_PHASE_NODE1_REPAIR:
- Fix daarion-web SSR: use CITY_API_BASE_URL instead of 127.0.0.1
- Fix auth API routes: use AUTH_API_URL env var
- Add wget to Dockerfiles for healthchecks (stt, ocr, web-search, swapper, vector-db, rag)
- Update healthchecks to use wget instead of curl
- Fix vector-db-service: update torch==2.4.0, sentence-transformers==2.6.1
- Fix rag-service: correct haystack imports for v2.x
- Fix telegram-gateway: remove msg.ack() for non-JetStream NATS
- Add /health endpoint to nginx mvp-routes.conf
- Add room_role, is_public, sort_order columns to city_rooms migration
- Add TASK_PHASE_NODE1_REPAIR.md and DEPLOY_NODE1_REPAIR.md docs
Previous tasks included:
- TASK 039-044: Orchestrator rooms, Matrix chat cleanup, CrewAI integration
2025-11-29 05:17:08 -08:00
Apple
0bab4bba08
feat: TASK 038 - Node Guardian & Steward Integration
...
- Backend: Added dynamic discovery of node agents in repo_city.py
- Backend: Created seed SQL for agent types
- Frontend: Added NodeGuardianCard component
- Frontend: Integrated NodeGuardianCard into Node Dashboard / Profile
2025-11-29 01:46:38 -08:00
Apple
3ccc0e2d43
feat: TASK 037A/B - MicroDAO Multi-Room Cleanup & UI Polish
...
TASK 037A: Backend Consistency
- Added db/sql/037_microdao_agent_audit.sql
- Added services/city-service/tools/fix_microdao_agent_consistency.py
- Updated repo_city.get_public_citizens with stricter filtering (node_id, microdao_membership)
- Updated PublicCitizenSummary model to include home_microdao and primary_city_room
- Updated NodeProfile model and get_node_by_id to include microdaos list
TASK 037B: UI Polish
- Updated MicrodaoRoomsSection with role-based colors/icons and mini-map
- Updated /microdao/[slug] with new Hero Block (badges, stats, orchestrator)
- Updated /citizens/[slug] with MicroDAO cross-link in DAIS profile
- Updated /nodes/[nodeId] with MicroDAO Presence section
2025-11-29 01:35:54 -08:00
Apple
3f41d0e0a2
feat: TASK 034-036 - MicroDAO Multi-Room Support
...
TASK 034: MicroDAO Multi-Room Backend
- Added migration 031_microdao_multi_room.sql
- Extended city_rooms with microdao_id, room_role, is_public, sort_order
- Added CityRoomSummary, MicrodaoRoomsList, MicrodaoRoomUpdate models
- Added get_microdao_rooms, get_microdao_rooms_by_slug functions
- Added attach_room_to_microdao, update_microdao_room functions
- Added API endpoints: GET/POST/PATCH /city/microdao/{slug}/rooms
TASK 035: MicroDAO Multi-Room UI
- Added proxy routes for rooms API
- Extended CityRoomSummary type with multi-room fields
- Added useMicrodaoRooms hook
- Created MicrodaoRoomsSection component with role labels/icons
TASK 036: MicroDAO Room Orchestrator Panel
- Created MicrodaoRoomsAdminPanel component
- Role selector, visibility toggle, set primary button
- Attach existing room form
- Integrated into /microdao/[slug] page
2025-11-29 01:07:15 -08:00
Apple
773a955ecc
feat: TASK 031-033 - Node Guardian/Steward + Agent & MicroDAO Chat Widgets
...
TASK 031: Node Agents Discovery
- Documented existing Monitor agents (NODE1, NODE2)
- Created NODE_AGENTS_INVENTORY.md
TASK 032: Node Guardian/Steward Formalize
- Added migration 030_node_guardian_steward.sql
- Added is_node_guardian, is_node_steward to agents
- Added guardian_agent_id, steward_agent_id to node_cache
- Updated repo_city.py for guardian/steward in node queries
- Added NodeAgentsPanel component for Node Dashboard
TASK 033: Agent & MicroDAO Chat Widgets
- Added CityRoomSummary model
- Added primary_city_room to AgentDashboard API
- Added primary_city_room to MicrodaoDetail API
- Added get_microdao_primary_room() function
- Updated Agent Console with Matrix chat section
- Updated MicroDAO page with public chat section
- Reused existing CityChatWidget component
2025-11-28 13:51:51 -08:00
Apple
9a74096708
fix: add fallback URLs to all proxy routes
2025-11-28 10:53:28 -08:00
Apple
3426604209
fix: update proxy routes to use correct internal API URL
2025-11-28 10:48:11 -08:00
Apple
cbd5b2f731
fix: resolve Next.js route conflict in microdao api
2025-11-28 10:23:15 -08:00
Apple
69cc76fe00
feat: implement Task 029 (Agent Orchestrator & Visibility Flow)
2025-11-28 10:19:13 -08:00
Apple
acc06f41d3
feat: UI alignment - Agent Console, Citizens, MicroDAO Dashboard (TASK 2)
2025-11-28 09:09:00 -08:00
Apple
a445ba7d9a
fix: use new AgentSummary fields (title, primary_microdao_name)
2025-11-28 08:02:40 -08:00
Apple
616186824c
fix: Next.js 15 route handler params type
2025-11-28 07:58:46 -08:00
Apple
15714fb170
feat: unified Agent/Citizen model with visibility controls
...
- Add visibility_scope, is_listed_in_directory, is_system, primary_microdao_id to agents
- Create unified list_agent_summaries method
- Add PUT /city/agents/{id}/visibility endpoint
- Add AgentVisibilityCard component
- Update AgentSummary types for frontend
2025-11-28 07:56:33 -08:00
Apple
e7aff95408
fix: Next.js 15 params type in nodes route
2025-11-28 05:11:59 -08:00
Apple
7b9590da01
feat: add Node Directory with multi-node support (TASK 3)
2025-11-28 05:08:55 -08:00
Apple
e95673a6e7
feat: update /agents page with home_node badges and new API
2025-11-28 04:54:27 -08:00
Apple
7e55b72027
fix: show НОДА1/НОДА2 badge instead of node name
2025-11-28 04:46:11 -08:00
Apple
35768f1180
feat: add home_node support to Citizens API and UI
...
- Add HomeNodeView model to city-service
- Update get_public_citizens and get_public_citizen_by_slug to JOIN node_cache
- Add HomeNode interface to frontend types
- Display node badge on citizen cards
- Show full home_node info on citizen profile page
2025-11-28 04:34:25 -08:00
Apple
cd48b32bb7
fix: add city rooms proxy route
2025-11-28 03:37:05 -08:00
Apple
e853b29126
fix: typescript error in citizens page
2025-11-28 03:33:07 -08:00
Apple
3693611447
fix: update route params to Promise for Next.js 15
2025-11-28 03:31:51 -08:00
Apple
c2becd1314
fix: remove duplicate code in citizens page
2025-11-28 03:12:17 -08:00
Apple
06d0cba7d4
feat: Citizens Layer + Citizen Interact Layer + CityChatWidget
2025-11-28 03:10:47 -08:00
Apple
88375d441f
feat: MicroDAO Dashboard Frontend - list + detail pages
2025-11-28 01:39:27 -08:00
Apple
6bd769ef40
feat(city-map): Add 2D City Map with coordinates and agent presence
...
- Add migration 013_city_map_coordinates.sql with map coordinates, zones, and agents table
- Add /city/map API endpoint in city-service
- Add /city/agents and /city/agents/online endpoints
- Extend presence aggregator to include agents[] in snapshot
- Add AgentsSource for fetching agent data from DB
- Create CityMap component with interactive room tiles
- Add useCityMap hook for fetching map data
- Update useGlobalPresence to include agents
- Add map/list view toggle on /city page
- Add agent badges to room cards and map tiles
2025-11-27 07:00:47 -08:00
Apple
3de3c8cb36
feat: Add presence heartbeat for Matrix online status
...
- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
2025-11-27 00:19:40 -08:00
Apple
5bed515852
feat: Upgrade Global Presence to SSE architecture
...
- matrix-presence-aggregator v2 with SSE endpoint
- Created @presence_daemon Matrix user
- SSE proxy in Next.js /api/presence/stream
- Updated frontend to use SSE instead of WebSocket
- Real-time city online count and room presence
2025-11-26 14:43:46 -08:00
Apple
78849cc108
feat: Add Global Presence Aggregator system
...
- GLOBAL_PRESENCE_AGGREGATOR_SPEC.md documentation
- matrix-presence-aggregator service (Python/FastAPI)
- Matrix sync loop for presence/typing
- NATS publishing for room presence
- city-service: presence_gateway for WS broadcast
- Frontend: real-time online count in room list
- useGlobalPresence hook
- Live typing indicators
- Active room highlighting
2025-11-26 14:22:34 -08:00
Apple
a3e632b9e7
feat: Add PWA support
...
- PWA_MOBILE_SPEC.md documentation
- manifest.json with app metadata
- Service Worker with caching strategies
- Offline page
- PWA registration in layout
- App icons (placeholder)
2025-11-26 13:56:22 -08:00
Apple
e0d534ea87
fix: Remove HTML5 validation from auth forms
...
- Add noValidate to forms
- Move validation to JS
- Add proper autoComplete attributes
- Better error messages in Ukrainian
2025-11-26 13:50:13 -08:00
Apple
e9c04f6bcd
feat: Implement Matrix Chat Client
2025-11-26 13:15:01 -08:00
Apple
5aaf6cbf21
feat: Add Auth Service with JWT authentication
2025-11-26 11:47:00 -08:00
Apple
2c4eb7d432
feat: Add Chat, Agent Console, and Governance UI
...
- WebSocket chat client for city rooms
- Chat UI components (ChatMessage, ChatInput, ChatRoom)
- Agent Console with agent list and invoke functionality
- Governance/DAO page with proposals and voting
- Updated navigation with new routes
- Extended API client for agents and microdao
2025-11-26 09:57:50 -08:00
Apple
2f30f40c0b
feat: Add Next.js 15 glassmorphism frontend for DAARION MVP
2025-11-26 09:20:33 -08:00