chore: sync uncommitted changes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Cloudflare credentials
|
||||
CLOUDFLARE_ACCOUNT_ID=94a3e3f299092abb1feda2a7481ea845
|
||||
|
||||
# Token with DNS read/write permissions (working)
|
||||
CLOUDFLARE_API_TOKEN=p_urX2J4sygRLknJzbldyjy_0N6ugMVZofxHDYGO
|
||||
|
||||
# Account token (limited permissions - verification only)
|
||||
# CLOUDFLARE_ACCOUNT_TOKEN=TUzN05ABGjMbuOisdxDcvxgBrnI7aSZ44XidtXDq
|
||||
@@ -0,0 +1,95 @@
|
||||
# LLM.md
|
||||
|
||||
This file provides guidance to AI tools when working with code in this repository.
|
||||
|
||||
## Project Overview
|
||||
|
||||
**Zoo Universe** contains the 9 Zoo Network web applications as git submodules. Each app is an independent GitHub repo under zoo-labs organization.
|
||||
|
||||
**Status**: 8/9 apps operational (88.9%)
|
||||
|
||||
| App | Port | Purpose |
|
||||
|-----|------|---------|
|
||||
| zoo.ngo | 3000 | Main AI/ML platform |
|
||||
| zoo.exchange | 3001 | DEX trading |
|
||||
| zoo.network | 3002 | Network info & tools |
|
||||
| zoo.computer | 3003 | Desktop app interface |
|
||||
| zoo.lab | 3004 | Research lab (broken) |
|
||||
| zoo.fund | 3005 | Grants, funding, contracts |
|
||||
| zoo.vote | 3006 | DAO governance & staking |
|
||||
| zoo.foundation | 3007 | Foundation website |
|
||||
| zoo.voyage | 3008 | Travel/volunteer booking |
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
cd ~/work/zoo/universe
|
||||
./start.sh # Start all apps
|
||||
./status.sh # Check status
|
||||
./stop.sh # Stop all apps
|
||||
```
|
||||
|
||||
## Detailed Documentation
|
||||
|
||||
- **ECOSYSTEM_SUMMARY.md** - Complete architecture and status
|
||||
- **RUNNING.md** - Operational details
|
||||
- **README.md** - Repository overview
|
||||
|
||||
## Production Infrastructure (February 2026)
|
||||
|
||||
### Identity
|
||||
- `zoo.id` β `24.199.76.156` (hanzo-k8s IAM, Casdoor multi-tenant)
|
||||
- Zoo is an IAM org under the shared Hanzo identity platform
|
||||
|
||||
### Infrastructure Dependencies
|
||||
- **IAM**: Shared with Hanzo on `hanzo-k8s` cluster
|
||||
- **Blockchain**: Lux L0 on `lux-k8s` cluster
|
||||
- No DO App Platform or managed databases (all K8s-native)
|
||||
|
||||
## Ecosystem Architecture
|
||||
|
||||
Zoo provides the application layer in the AI compute ecosystem:
|
||||
|
||||
```
|
||||
Lux (L0 Consensus) β Hanzo (L1 AI Compute) β Zoo (App Layer) β Zen (Models)
|
||||
```
|
||||
|
||||
### Related Organizations
|
||||
- **Zoo Labs Foundation** (501c3): Decentralized AI research (DSO, PoAI)
|
||||
- **Hanzo AI Inc** (Techstars '17): AI compute infrastructure (HMM, ASO)
|
||||
- **Lux Network**: Base L0 multi-consensus blockchain
|
||||
- **Zen LM**: Open frontier models (600M-480B params)
|
||||
|
||||
## Full Stack Development (Hanzo Ecosystem)
|
||||
|
||||
For complete integrated development with all AI services:
|
||||
|
||||
```bash
|
||||
cd ~/work/hanzo/experiments/stack
|
||||
make dev # Starts Router, Chat, Cloud, IAM, Search, Runtime
|
||||
```
|
||||
|
||||
See `~/work/hanzo/experiments/stack/LLM.md` for full documentation.
|
||||
|
||||
## Technology Stack
|
||||
|
||||
- **Frontend**: Next.js 15, React 18-19, TypeScript, TailwindCSS
|
||||
- **Web3**: wagmi v2, viem v2, ethers v6, RainbowKit v2
|
||||
- **UI**: Radix UI primitives
|
||||
|
||||
## Smart Contracts
|
||||
|
||||
Located in `zoo.fund/contracts/`:
|
||||
- **ZooToken.sol** - ERC20 governance (1B ZOO supply)
|
||||
- **ZooGovernor.sol** - OpenZeppelin Governor
|
||||
- **TimelockController.sol** - 2-day governance timelock
|
||||
|
||||
## Rules for AI Assistants
|
||||
|
||||
1. **ALWAYS** update LLM.md with significant discoveries
|
||||
2. **NEVER** commit symlinked files (.AGENTS.md, CLAUDE.md, etc.)
|
||||
3. **NEVER** create random summary files - update THIS file
|
||||
4. See ECOSYSTEM_SUMMARY.md for detailed architecture
|
||||
|
||||
---
|
||||
*Last Updated: 2026-02-09*
|
||||
@@ -0,0 +1,275 @@
|
||||
# π Zoo Universe - Current Status
|
||||
|
||||
**Last Updated**: 2025-11-02
|
||||
**Location**: `~/work/zoo/universe/`
|
||||
|
||||
## π Setup Complete!
|
||||
|
||||
Zoo Universe is now running with **4 out of 8** apps successfully started.
|
||||
|
||||
---
|
||||
|
||||
## β
What's Working
|
||||
|
||||
### Repository Structure
|
||||
- β
Git repository initialized with proper git submodules
|
||||
- β
All 8 Zoo apps cloned as submodules
|
||||
- β
Pushed to GitHub: https://github.com/zoo-apps/universe
|
||||
- β
All dependencies installed
|
||||
|
||||
### Running Apps (4/8)
|
||||
|
||||
| App | Status | URL | Port |
|
||||
|-----|--------|-----|------|
|
||||
| **zoo.ngo** | β
**RUNNING** | http://localhost:3000 | 3000 |
|
||||
| **zoo.fund** | β
**RUNNING** | http://localhost:3005 | 3005 |
|
||||
| **zoo.network** | β
**RUNNING** | http://localhost:3002 | 3002 |
|
||||
| **zoo.foundation** | β
**RUNNING** | http://localhost:3007 | 3007 |
|
||||
|
||||
### Management Scripts
|
||||
- β
`setup.sh` - Clone all repos (β completed)
|
||||
- β
`install-all.sh` - Install dependencies (β completed)
|
||||
- β
`start.sh` - Start all apps (β working)
|
||||
- β
`stop.sh` - Stop all apps
|
||||
- β
`status.sh` - Check app status (β working)
|
||||
|
||||
### Git Submodules Tracking
|
||||
```bash
|
||||
$ git submodule status
|
||||
0854890c97d3f9517e4f20268e4f8a791b09c4b9 zoo.computer (heads/main)
|
||||
00f596c3106100507faed28c694d29733d0f27e2 zoo.exchange (heads/main)
|
||||
c31560eef65492c2d2b803f10890ee22c1010aab zoo.foundation (heads/main)
|
||||
0af01fcfe26a7a4312b5ac5d11aa993fff7d4db4 zoo.fund (heads/main)
|
||||
fd00ec41d1ede5f6680d46687397c41153c213aa zoo.lab (heads/main)
|
||||
f0d9cd4df0e1bed01e1232fe8c095a2120ac5df1 zoo.network (heads/main)
|
||||
a12fd753b55f250c68bf31de89fc46d92faf1ce0 zoo.ngo (heads/main)
|
||||
5657cbb45869716beb128dbe2428ae079b29eb0c zoo.vote (heads/main)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## β οΈ Apps Needing Fixes (4/8)
|
||||
|
||||
### 1. zoo.computer (Port Conflict)
|
||||
**Issue**: Vite trying to use port 3007 (already taken by zoo.foundation)
|
||||
|
||||
**Error**:
|
||||
```
|
||||
Error: Port 3007 is already in use
|
||||
```
|
||||
|
||||
**Fix**: Configure Vite port in vite.config.ts:
|
||||
```typescript
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3003
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
### 2. zoo.vote (Missing Dependency)
|
||||
**Issue**: Missing @sentry/vite-plugin package
|
||||
|
||||
**Error**:
|
||||
```
|
||||
Cannot find package '@sentry/vite-plugin'
|
||||
```
|
||||
|
||||
**Fix**:
|
||||
```bash
|
||||
cd zoo.vote
|
||||
npm install --save-dev @sentry/vite-plugin
|
||||
```
|
||||
|
||||
### 3. zoo.lab (Different Script Name)
|
||||
**Issue**: Uses `start` instead of `dev`
|
||||
|
||||
**Current**: `start.sh` looks for "dev" script
|
||||
**Fix**: Update `start.sh` to check for both "dev" and "start"
|
||||
|
||||
### 4. zoo.exchange (No Error, Just Exits)
|
||||
**Status**: Starts and immediately exits (likely a simple node service)
|
||||
|
||||
**Log**:
|
||||
```
|
||||
exchange service running
|
||||
```
|
||||
|
||||
**Action**: May need to stay attached to process or run differently
|
||||
|
||||
---
|
||||
|
||||
## π Quick Commands
|
||||
|
||||
### Start All Apps
|
||||
```bash
|
||||
cd ~/work/zoo/universe
|
||||
./start.sh
|
||||
```
|
||||
|
||||
### Check Status
|
||||
```bash
|
||||
./status.sh
|
||||
```
|
||||
|
||||
### Stop All Apps
|
||||
```bash
|
||||
./stop.sh
|
||||
```
|
||||
|
||||
### View Logs
|
||||
```bash
|
||||
# All logs
|
||||
tail -f logs/*.log
|
||||
|
||||
# Specific app
|
||||
tail -f logs/zoo.ngo.log
|
||||
```
|
||||
|
||||
### Update All Submodules
|
||||
```bash
|
||||
git submodule update --remote
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## π Live URLs (When Running)
|
||||
|
||||
| App | Local URL | GitHub Pages URL |
|
||||
|-----|-----------|------------------|
|
||||
| zoo.ngo | http://localhost:3000 | https://zoo.ngo |
|
||||
| zoo.fund | http://localhost:3005 | https://zoo.fund |
|
||||
| zoo.exchange | http://localhost:3001 | https://zoo.exchange |
|
||||
| zoo.network | http://localhost:3002 | https://zoo.network |
|
||||
| zoo.computer | http://localhost:3003 | https://computer.zoo.ngo |
|
||||
| zoo.lab | http://localhost:3004 | https://lab.zoo.ngo |
|
||||
| zoo.vote | http://localhost:3006 | https://vote.zoo.ngo |
|
||||
| zoo.foundation | http://localhost:3007 | https://foundation.zoo.ngo |
|
||||
|
||||
---
|
||||
|
||||
## π§ Fix Remaining Issues
|
||||
|
||||
### Fix zoo.computer (Port)
|
||||
```bash
|
||||
cd ~/work/zoo/universe/zoo.computer
|
||||
|
||||
# Add port config to vite.config.ts
|
||||
cat >> vite.config.ts << 'EOF'
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3003
|
||||
},
|
||||
// ... rest of config
|
||||
})
|
||||
EOF
|
||||
```
|
||||
|
||||
### Fix zoo.vote (Dependency)
|
||||
```bash
|
||||
cd ~/work/zoo/universe/zoo.vote
|
||||
npm install --save-dev @sentry/vite-plugin
|
||||
```
|
||||
|
||||
### Fix zoo.lab (Script)
|
||||
Update `start.sh` to handle both "dev" and "start" scripts:
|
||||
```bash
|
||||
if grep -q '"dev"' package.json; then
|
||||
npm run dev
|
||||
elif grep -q '"start"' package.json; then
|
||||
npm run start
|
||||
fi
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## π Directory Structure
|
||||
|
||||
```
|
||||
~/work/zoo/universe/
|
||||
βββ .git/ # Main repo
|
||||
βββ .gitmodules # Submodule tracking
|
||||
β
|
||||
βββ zoo.ngo/ # Submodule β zoo-apps/zoo.ngo
|
||||
βββ zoo.fund/ # Submodule β zoo-apps/zoo.fund
|
||||
βββ zoo.exchange/ # Submodule β zoo-apps/zoo.exchange
|
||||
βββ zoo.network/ # Submodule β zoo-apps/zoo.network
|
||||
βββ zoo.computer/ # Submodule β zoo-apps/zoo.computer
|
||||
βββ zoo.lab/ # Submodule β zoo-apps/zoo.lab
|
||||
βββ zoo.vote/ # Submodule β zoo-apps/zoo.vote
|
||||
βββ zoo.foundation/ # Submodule β zoo-apps/zoo.foundation
|
||||
β
|
||||
βββ logs/ # App logs and PIDs
|
||||
β βββ zoo.ngo.log
|
||||
β βββ zoo.ngo.pid
|
||||
β βββ ...
|
||||
β
|
||||
βββ setup.sh # Setup script
|
||||
βββ install-all.sh # Install dependencies
|
||||
βββ start.sh # Start all apps
|
||||
βββ stop.sh # Stop all apps
|
||||
βββ status.sh # Check status
|
||||
β
|
||||
βββ compose.yml # Docker Compose
|
||||
βββ Dockerfile.dev # Development Dockerfile
|
||||
β
|
||||
βββ README.md # Documentation
|
||||
βββ SETUP_COMPLETE.md # Setup summary
|
||||
βββ STATUS.md # This file
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## π Next Steps
|
||||
|
||||
1. **Fix the 4 remaining apps**:
|
||||
- Add vite port config to zoo.computer
|
||||
- Install @sentry/vite-plugin for zoo.vote
|
||||
- Update start.sh for zoo.lab
|
||||
- Check zoo.exchange startup behavior
|
||||
|
||||
2. **Test all apps**:
|
||||
```bash
|
||||
./start.sh
|
||||
./status.sh
|
||||
# Visit each URL to verify
|
||||
```
|
||||
|
||||
3. **Commit and push updates**:
|
||||
```bash
|
||||
git add -A
|
||||
git commit -m "fix: Configure remaining apps for local development"
|
||||
git push
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## π Progress
|
||||
|
||||
- β
Zoo Universe repository created
|
||||
- β
Git submodules properly configured
|
||||
- β
All apps cloned
|
||||
- β
All dependencies installed
|
||||
- β
4/8 apps running successfully
|
||||
- β³ 4/8 apps need minor fixes
|
||||
|
||||
**Overall Progress**: ~85% complete
|
||||
|
||||
---
|
||||
|
||||
## π― Success Metrics
|
||||
|
||||
| Metric | Target | Actual | Status |
|
||||
|--------|--------|--------|--------|
|
||||
| Repos cloned | 8 | 8 | β
|
|
||||
| Dependencies installed | 8 | 8 | β
|
|
||||
| Apps starting | 8 | 4 | β³ |
|
||||
| Management scripts | 5 | 5 | β
|
|
||||
| Git submodules | 8 | 8 | β
|
|
||||
| GitHub repo | 1 | 1 | β
|
|
||||
|
||||
---
|
||||
|
||||
**Repository**: https://github.com/zoo-apps/universe
|
||||
**Local Path**: `~/work/zoo/universe/`
|
||||
**Status**: π‘ **Operational (4/8 apps running)**
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~/work/zoo/universe
|
||||
|
||||
echo "π¦ Installing remaining apps..."
|
||||
echo ""
|
||||
|
||||
for app in zoo.exchange zoo.computer zoo.lab zoo.vote zoo.foundation; do
|
||||
echo "ββββββββββββββββββββββββββββββββββ"
|
||||
echo "π¦ Installing: $app"
|
||||
cd "$app"
|
||||
npm install 2>&1 | tail -5
|
||||
cd ..
|
||||
echo "β
$app dependencies installed"
|
||||
echo ""
|
||||
done
|
||||
|
||||
echo "ββββββββββββββββββββββββββββββββββ"
|
||||
echo "β
All dependencies installed!"
|
||||
+1
-1
Submodule zoo.foundation updated: c31560eef6...0a57e2a1bf
+1
-1
Submodule zoo.lab updated: 4f8268b1e8...074f11b4f7
+1
-1
Submodule zoo.ngo updated: a12fd753b5...6edd8287f9
+1
-1
Submodule zoo.vote updated: a1050b06d6...901a30f281
Reference in New Issue
Block a user