Apple
cc1704b70c
fix(agents): Wrap NewAgentPage in Suspense for useSearchParams
2025-12-01 09:32:16 -08:00
Apple
6cd8148872
feat(agents): Add Create/Delete Agent functionality
...
Backend:
- Added POST /city/agents endpoint for creating agents
- Added DELETE /city/agents/{id} endpoint for soft-deleting agents
- Added CreateAgentRequest, CreateAgentResponse, DeleteAgentResponse models
Frontend:
- Added '+ Новий агент' button on /agents page
- Created /agents/new page with full agent creation form
- Added 'Видалити агента' button in agent Identity tab (Danger Zone)
Features:
- Auto-generate slug from display_name
- Support for all agent fields: kind, role, model, node, district, microdao
- Color picker for agent color
- Visibility toggles (is_public, is_orchestrator)
- Soft delete with confirmation dialog
2025-12-01 09:29:42 -08:00
Apple
649d07ee29
feat(rooms): Fix NaN online stats + Add DAARWIZZ CTA on homepage
...
- Fixed NaN in online stats by using nullish coalescing (?? 0)
- Added members_online, zone, room_type to /api/v1/city/rooms response
- Added DAARWIZZ chat CTA section on homepage with link to city-lobby
- Created task files for next phases:
- TASK_PHASE_CITY_ROOMS_FINISH_v2.md
- TASK_PHASE_AGENT_MANAGEMENT_v1.md
- TASK_PHASE_CITIZENS_DIRECTORY_v1.md
2025-12-01 09:19:07 -08:00
Apple
a563ec86a0
fix(rooms): Use rewrite for /api/city/rooms instead of API route
...
- Removed API route that was conflicting with rewrite
- Added explicit rewrite for /api/city/rooms -> /api/v1/city/rooms
- Rewrite order matters: specific routes before wildcard
2025-12-01 08:52:59 -08:00
Apple
0039be5dc0
feat(rooms): Add city-lobby with DAARWIZZ + fix API proxy
...
- Created city-lobby room as main public chat with DAARWIZZ
- Fixed /api/city/rooms proxy to use correct backend path (/api/v1/city/rooms)
- Updated district rooms with zone keys (leadership, system, engineering, etc.)
- Set MicroDAO lobbies as primary rooms
- Created seed_city_rooms.py script
- Created TASK_PHASE_CITY_ROOMS_AND_PUBLIC_CHAT_v1.md
Total: 35 rooms, 31 public, 10 districts
2025-12-01 08:47:37 -08:00
Apple
092346f057
fix: use normalizeAssetUrl for banner
2025-12-01 07:09:55 -08:00
Apple
9e7b1f25ef
fix: add node button visibility, fix node-guardian swapper health check, fix banner URL transform
2025-12-01 07:08:36 -08:00
Apple
f5c58358a0
feat: add 'Додати ноду' button to Node Directory, create /nodes/register page, add node discovery script
2025-12-01 06:47:27 -08:00
Apple
d5aae67b50
fix: remove duplicate API route, add dynamic export to swapper route
2025-12-01 06:26:57 -08:00
Apple
fbf17be668
fix: normalize MicroDAO logo URLs using helper function
2025-12-01 06:23:54 -08:00
Apple
909258fdcb
fix: DAGI Router agents logic, MicroDAO logo URL handling
2025-12-01 06:03:08 -08:00
Apple
e3accd4df0
feat: DAGI Router v2 - new endpoints, hooks, and UI card
2025-12-01 05:21:43 -08:00
Apple
53f31adbf0
feat: add logo display in MicroDAO cards and hero section, add banner background support
2025-12-01 04:34:26 -08:00
Apple
d8ab32b59f
fix: add beforeFiles to rewrites config
2025-12-01 04:07:59 -08:00
Apple
6ebdaac25d
fix: use afterFiles/fallback rewrites to allow Next.js API routes to work
2025-12-01 04:06:51 -08:00
Apple
2589f2d99d
fix: rename /api/internal/ to /api/node-internal/ to avoid routing issues
2025-12-01 04:00:38 -08:00
Apple
b55c59b9d1
fix: rename _debug to debug (Next.js ignores underscore prefixes)
2025-12-01 03:45:30 -08:00
Apple
1a81cf75f1
feat: add unified API proxy layer, debug endpoint, and systemd service for node-guardian
2025-12-01 03:43:06 -08:00
Apple
b3e3c6417d
fix: update Swapper endpoints (/health, /models), remove upload size limits, auto-convert images
2025-12-01 03:03:27 -08:00
Apple
9c79b6e526
fix: add static files proxy and improve upload URL handling
2025-12-01 02:45:07 -08:00
Apple
7843ff3d86
fix: improve error handling for swapper and upload APIs
2025-12-01 02:41:35 -08:00
Apple
d4e20ea513
feat: add MicroDAO branding and Agent avatar upload UI
2025-12-01 02:26:02 -08:00
Apple
95b75d5897
fix: export StatusBadge from node-dashboard
2025-12-01 02:21:07 -08:00
Apple
dcc9ec0b39
fix: next15 api route params must be Promise
2025-12-01 02:19:57 -08:00
Apple
394dd62980
feat: add swapper api proxy and improved card
2025-12-01 02:18:14 -08:00
Apple
281c79f916
feat: implement swapper metrics and node cabinet ui
2025-11-30 15:40:41 -08:00
Apple
fd814b2059
feat: implement Swapper metrics collection and UI
2025-11-30 15:12:49 -08:00
Apple
1830109a95
feat: Agent System Prompts MVP (B) - database, backend API, and frontend integration
2025-11-30 14:04:48 -08:00
Apple
bca81dc719
feat: Node Self-Healing, DAGI Audit, Agent Prompts, Infra Invariants
...
### Backend (city-service)
- Node Registry + Self-Healing API (migration 039)
- Improved get_all_nodes() with robust fallback for node_registry/node_cache
- Agent Prompts Runtime API for DAGI Router integration
- DAGI Router Audit endpoints (phantom/stale detection)
- Node Agents API (Guardian/Steward)
- Node metrics extended (CPU/GPU/RAM/Disk)
### Frontend (apps/web)
- Node Directory with improved error handling
- Node Cabinet with metrics cards
- DAGI Router Card component
- Node Metrics Card component
- useDAGIAudit hook
### Scripts
- check-invariants.py - deploy verification
- node-bootstrap.sh - node self-registration
- node-guardian-loop.py - continuous self-healing
- dagi_agent_audit.py - DAGI audit utility
### Migrations
- 034: Agent prompts seed
- 035: Agent DAGI audit
- 036: Node metrics extended
- 037: Node agents complete
- 038: Agent prompts full coverage
- 039: Node registry self-healing
### Tests
- test_infra_smoke.py
- test_agent_prompts_runtime.py
- test_dagi_router_api.py
### Documentation
- DEPLOY_CHECKLIST_2024_11_30.md
- Multiple TASK_PHASE docs
2025-11-30 13:52:01 -08:00
Apple
1ca4800202
fix: Dockerfile copies only apps/web, not root Vite project
2025-11-30 11:59:58 -08:00
Apple
7b61786c96
feat: MicroDAO Agents Section + Room roles
...
Frontend:
- MicrodaoAgentsSection component with role badges
- useMicrodaoAgents hook
- Extended room_role mapping (operations, knowledge, treasury, ai-core, etc.)
- API route for /api/microdao/[slug]/agents
Matrix: All 13 new rooms synced with Matrix
2025-11-30 11:57:24 -08:00
Apple
c9d7681627
feat: District Portals Frontend
...
Pages:
- /districts - list of all districts with cards
- /districts/[slug] - district detail page
- /soul, /greenfood, /energy-union - shortcut redirects
UI Features:
- District-specific colors and icons
- Lead agent + core team display
- District rooms list with Matrix status
- District nodes list
- Chat widget for lobby room
- Stats (agents, rooms, nodes count)
2025-11-30 11:40:30 -08:00
Apple
85fdcdf0be
feat: City Rooms routing implementation
...
Backend:
- GET /api/v1/city/rooms - list all city rooms
- GET /api/v1/city/rooms/{slug} - get room by slug with host agents
Frontend:
- Updated /city/[slug] page with host agents section
- Added breadcrumb navigation
- Updated API client to fetch room by slug
- Added rewrite for /api/city/rooms/:slug
Task doc: TASK_PHASE_CITY_ROOMS_ROUTING_v1.md
2025-11-30 10:54:39 -08:00
Apple
fcdac0f33c
feat: implement Agent Presence Indicators (MVP)
...
Backend:
- Add /api/v1/agents/presence endpoint
- Integrate with matrix-presence-aggregator
- Add DAGI router health checks
Frontend:
- Create useAgentPresence hook
- Create AgentPresenceBadge component
- Integrate into /agents list page
- Integrate into /agents/:agentId cabinet
Shows real-time online/offline status for all agents.
2025-11-30 09:41:57 -08:00
Apple
c4d7eb4493
fix: correct JSX structure in node page for chat widget
2025-11-30 09:15:17 -08:00
Apple
38e49adeba
fix: syntax error in node page - missing closing div
2025-11-30 09:13:01 -08:00
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
39f76912ae
fix: proxy /api/nodes/* to city-service public endpoints
2025-11-30 06:22:24 -08:00
Apple
dd3624018a
fix: Add proper Next.js rewrites for agent/microdao API
...
- /api/agents/:agentId/dashboard -> /city/agents/:agentId/dashboard
- /api/microdao/* -> /city/microdao/*
- /api/public/* -> /public/*
- /api/city/* -> /city/*
Fixes 404 errors on agent/microdao cabinet pages
2025-11-30 06:17:25 -08:00
Apple
e5bfb19e71
fix(web): handle undefined values in incident transform
2025-11-29 17:17:01 -08:00
Apple
fc0a9b3189
fix(web): transform snake_case API response to camelCase for governance/incidents
2025-11-29 17:14:59 -08:00
Apple
4a30f6c1a9
fix(web): use Docker service name as default for API proxy
2025-11-29 17:12:03 -08:00
Apple
c68b81fad1
fix(web): use INTERNAL_API_URL for API rewrites proxy
2025-11-29 17:09:50 -08:00
Apple
beed5308f1
fix(governance): Rename AgentStatus to AgentGovStatus to avoid conflict
...
Conflicts with existing AgentStatus from agents.ts
2025-11-29 16:43:07 -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
31778a2977
fix: add crew_info to AgentProfile type
2025-11-29 05:20:30 -08:00