diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 853f6c2..0000000 --- a/.bashrc +++ /dev/null @@ -1 +0,0 @@ -export NGROK_AUTHTOKEN=2f3uA0WXL3aDxjABuSWpYTWjjh5_2pqnDyrc7CU4o92UzocEt diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml deleted file mode 100644 index f6f15d3..0000000 --- a/.forgejo/workflows/botserver.yaml +++ /dev/null @@ -1,106 +0,0 @@ -name: BotServer CI - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -env: - CARGO_BUILD_JOBS: 4 - CARGO_NET_RETRY: 10 - -jobs: - build: - runs-on: gbo - - steps: - - name: Disable SSL verification - run: git config --global http.sslVerify false - - - name: Checkout BotServer Code - uses: actions/checkout@v4 - with: - path: botserver - - - name: Setup Workspace - run: | - git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git workspace - cd workspace - git submodule update --init --depth 1 botlib - git submodule update --init --depth 1 botui - - # Remove all members except botserver and botlib from workspace - sed -i '/"botapp",/d' Cargo.toml - sed -i '/"botdevice",/d' Cargo.toml - sed -i '/"bottest",/d' Cargo.toml - sed -i '/"botui",/d' Cargo.toml - sed -i '/"botbook",/d' Cargo.toml - sed -i '/"botmodels",/d' Cargo.toml - sed -i '/"botplugin",/d' Cargo.toml - sed -i '/"bottemplates",/d' Cargo.toml - - cd .. - rm -rf workspace/botserver - mv botserver workspace/botserver - - - name: Cache Busting - run: | - TS=$(date +%s) - cd workspace/botui/ui/suite/chat - mv chat.css chat.$TS.css - mv chat.js chat.$TS.js - sed -i "s/chat.css/chat.$TS.css/g" chat.html - sed -i "s/chat.js/chat.$TS.js/g" chat.html - - - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y libpq-dev libssl-dev liblzma-dev pkg-config - - - name: Install Rust - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - - name: Install sccache - run: | - wget https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz - tar xzf sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz - mv sccache-v0.8.2-x86_64-unknown-linux-musl/sccache $HOME/.cargo/bin/sccache - chmod +x $HOME/.cargo/bin/sccache - echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV - $HOME/.cargo/bin/sccache --start-server || true - - - name: Setup environment - run: sudo cp /opt/gbo/bin/system/.env . 2>/dev/null || true - - - name: Build BotServer - working-directory: workspace - run: | - cargo build -p botserver -j 8 2>&1 | tee /tmp/build.log - ls -lh target/debug/botserver - sccache --show-stats || true - - - name: Save build log - if: always() - run: | - sudo mkdir -p /opt/gbo/logs - sudo cp /tmp/build.log /opt/gbo/logs/botserver-$(date +%Y%m%d-%H%M%S).log || true - - - name: Deploy - working-directory: workspace - run: | - lxc exec bot:pragmatismo-system -- systemctl stop system || true - - # Deploy Binary - sudo cp target/debug/botserver /opt/gbo/bin/system/ - sudo chmod +x /opt/gbo/bin/system/botserver - - # Deploy UI Assets (botui) - sudo mkdir -p /opt/gbo/bin/system/botui/ui - sudo cp -r botui/ui/suite /opt/gbo/bin/system/botui/ui/ - sudo cp -r botui/ui/themes /opt/gbo/bin/system/botui/ui/ || true - - lxc exec bot:pragmatismo-system -- systemctl start system || true - \ No newline at end of file diff --git a/.gemini/tasks/multiagent-task-ui-plan.md b/.gemini/tasks/multiagent-task-ui-plan.md deleted file mode 100644 index 134a375..0000000 --- a/.gemini/tasks/multiagent-task-ui-plan.md +++ /dev/null @@ -1,931 +0,0 @@ -# Multi-Agent Task Management UI — Implementation Plan - -> **Unifying `auto_task`, `tasks`, `designer` → Draggable Multi-Agent Windows** - ---- - -## 1. High-Level Vision (from Screenshots) - -The user wants a **desktop-like environment** with these elements: - -### Layout Components - -``` -┌──────┬──────────────────────────────────────────────────────┐ -│ │ [Tasks ⚙ 👤] ← Top Left Mini Bar (fixed) │ -│ SIDE │ │ -│ BAR │ ┌─────────────────────┐ ┌────────────────────────┐ │ -│ │ │ PRIMARY WINDOW │ │ SECONDARY WINDOW │ │ -│ (far │ │ "Tasks" │ │ "Agents & Workspaces" │ │ -│ left)│ │ Tabs: │ │ (can be minimized) │ │ -│ │ │ - // DASHBOARD │ │ │ │ -│ /chat│ │ - // TASK #N │ │ Agent cards, quota │ │ -│/drive│ │ │ │ monitors, workspace │ │ -│ etc. │ │ PLAN|BUILD|REVIEW| │ │ assignment │ │ -│ │ │ DEPLOY|MONITOR tabs │ │ │ │ -│ │ │ │ │ │ │ -│ │ │ Draggable task cards│ │ │ │ -│ │ │ with sub-tasks, │ │ │ │ -│ │ │ logs, output, chat │ │ │ │ -│ │ └─────────────────────┘ └────────────────────────┘ │ -│ │ │ -│ │ ┌───────────────────────────────────────────────┐ │ -│ │ │ // Chat (shared chat at bottom) │ │ -│ │ │ TIP: Describe your project... │ │ -│ │ └───────────────────────────────────────────────┘ │ -│ ├──────────────────────────────────────────────────────┤ -│ │ [Taskbar: open windows] [Clock] [Date] │ -└──────┴──────────────────────────────────────────────────────┘ -``` - -### Key Rules from User Request - -1. **Sidebar** → Far left (already exists in `desktop.html`, keep it) -2. **Top-left mini bar** → Fixed bar with "Tasks" label, ⚙ Settings icon, 👤 Account icon. **Remove Mantis logo**. -3. **Where it reads "Mantis" → read "Tasks"** (generic rename throughout) -4. **Primary Window: "Tasks"** → Two tabs: - - **// DASHBOARD** — Overview with Task #N agent card, DNA info, tokens, activity - - **// TASK #N** (project view) — PLAN | BUILD | REVIEW | DEPLOY | MONITOR pipeline tabs, with draggable task cards showing sub-tasks, logs, output -5. **Secondary Window: "Agents & Workspaces"** → Shows agent roster, quota monitors, workspace assignments. Can be minimized. -6. **Chat panel** → Shared at bottom of task view, project-scoped -7. **All windows** → Draggable, resizable, use existing `WindowManager` -8. **VibCode integration** → Multi-draggable agents like the designer canvas - ---- - -## 2. Codebase Inventory & Current State - -### Frontend (botui/ui/suite) - -| File/Dir | Purpose | Lines | Status | -|----------|---------|-------|--------| -| `desktop.html` | Main desktop shell, sidebar, tabs, workspace | 281 | ✅ Keep as shell | -| `js/window-manager.js` | Window open/close/drag/minimize/maximize | 296 | 🔧 Extend | -| `tasks/tasks.html` | Current task list + detail panel | 318 | 🔄 Refactor into new primary window | -| `tasks/tasks.js` | Task JS (3297 lines) | 3297 | 🔄 Refactor (heavy) | -| `tasks/tasks.css` | Task styles (70k+) | ~2400 | 🔄 Refactor/extend | -| `tasks/autotask.html` | AutoTask standalone UI | 484 | 🔄 Merge into primary window | -| `tasks/autotask.js` | AutoTask JS (2201 lines) | 2201 | 🔄 Merge | -| `tasks/autotask.css` | AutoTask styles | ~1200 | 🔄 Merge | -| `tasks/progress-panel.html` | Floating progress panel | 133 | 🔄 Keep as sub-component | -| `tasks/progress-panel.js` | Progress panel JS | ~550 | ✅ Keep | -| `tasks/intents.html` | Intents listing | ~400 | 🔄 Merge | -| `designer.html` | Visual .bas designer (node canvas) | 2718 | 📎 Reference for drag patterns | -| `designer.js` | Designer JS (nodes, connections, drag) | 921 | 📎 Reference for drag | -| `designer.css` | Designer styles | 500 | 📎 Reference | -| `partials/tasks.html` | Alternative tasks partial | 318 | 🔄 Will be replaced by new entry | - -### Backend (botserver/src) - -| File/Dir | Purpose | Lines | Status | -|----------|---------|-------|--------| -| `auto_task/autotask_api.rs` | AutoTask CRUD + execution API | 2302 | ✅ Keep (API stable) | -| `auto_task/task_types.rs` | AutoTask data types | 423 | ✅ Keep | -| `auto_task/task_manifest.rs` | Manifest tracking (progress tree) | 977 | ✅ Keep | -| `auto_task/app_generator.rs` | App generation from LLM | 3587 | ✅ Keep | -| `auto_task/intent_classifier.rs` | Intent classification | 1200+ | ✅ Keep | -| `auto_task/intent_compiler.rs` | Intent → plan compilation | 900+ | ✅ Keep | -| `auto_task/mod.rs` | Routes + WebSocket handlers | 293 | 🔧 Add new agent/workspace endpoints | -| `tasks/task_api/handlers.rs` | Task CRUD handlers | 393 | 🔧 Extend with agent-aware responses | -| `tasks/task_api/html_renderers.rs` | HTML card rendering | 700+ | 🔧 Update HTML to new design | -| `tasks/types.rs` | Task data types | 223 | 🔧 Add agent fields | -| `tasks/scheduler.rs` | Task scheduler (cron etc.) | 503 | ✅ Keep | -| `designer/workflow_canvas.rs` | Workflow design types | 421 | 📎 Reference | -| `designer/designer_api/` | Designer API handlers | ~200 | 📎 Reference | - ---- - -## 3. Implementation Phases - -### Phase 0: Terminology Rename (Mantis → Tasks/Agent) - -**Scope**: All UI references -**Effort**: ~30 min - -| What | Where | Change | -|------|-------|--------| -| "Mantis #1" | All HTML templates | → "Agent #1" | -| "MANTIS MANAGER" | Task cards | → "AGENT MANAGER" | -| Mantis logo/icon | Top bar, cards | → Remove, use ⚡ or 🤖 icon | -| "mantis" CSS classes | tasks CSS | → Rename to `agent-*` | -| Variable names | tasks.js, autotask.js | → `agent*` where needed | - -**Files to modify**: -- `botui/ui/suite/tasks/tasks.html` — template references -- `botui/ui/suite/tasks/tasks.js` — variable names -- `botui/ui/suite/tasks/tasks.css` — class names -- `botui/ui/suite/tasks/autotask.html` — template references -- `botui/ui/suite/tasks/autotask.js` — variable names -- `botserver/src/tasks/task_api/html_renderers.rs` — server-rendered HTML - ---- - -### Phase 1: Top-Left Mini Bar (Fixed) - -**Scope**: New component added to `desktop.html` -**Effort**: ~45 min - -Create a fixed top-left panel (anchored above sidebar) matching screenshot: - -``` -┌──────────────────────┐ -│ Tasks ⚙️ 👤 │ -└──────────────────────┘ -``` - -#### 1.1 New file: `botui/ui/suite/partials/minibar.html` - -```html -
- Tasks -
- - -
-
-``` - -#### 1.2 CSS additions in `desktop.html