Files
Project_Astral/.agent assets/Kimi 2.5/Agent Prompt + Output.txt
2026-02-25 00:50:23 +05:30

155 lines
8.1 KiB
Plaintext

User Prompt -
### **Role:** You are a Senior Frontend Architect and UI/UX Designer specializing in "Cinematic" Enterprise Interfaces. You are expert in Next.js 14, Tailwind CSS, Framer Motion, Three.js, and Zustand.
**Context:** We are building **"Astral Studio,"** an air-gapped, offline AI video production platform for a high-end film studio. This is NOT a standard website. It is a **Web-based Operating System** (Single Page Application) that feels like a high-performance "Black Box" tool (think Unreal Engine meets macOS, designed by Steve Jobs).
**Source Material Reference:**
* **Visual Style:** "The Black Box of Light." Deep OLED Blacks (#000000), subtle nebulous animated backgrounds, Glassmorphism (frosted glass) panels, and Neomorphic glowing accents for active states.
* **Architecture:** A "Windowing OS" layout. No global scrollbar. A fixed "Dock" at the bottom launches floating "App Windows" that can be dragged, minimized, and stacked.
---
### **Task: Create the Frontend Implementation Plan & Architecture**
Based on the requirements below, first analyze the request and provide a **step-by-step Implementation Plan** for how you will build this. Once I approve the plan, we will start coding.
#### **1. Design System & Aesthetics ("The Astral Look")**
* **Background:** Pure `#000000` canvas. Behind the UI, render a slow, sluggish, deep-violet/indigo nebulous gradient animation (representing the LTX-2 Latent Space). This should be subtle and ambient.
* **Panels (Glass):** Use `backdrop-filter: blur(20px)`, `bg-white/5`, `border` of `white/10`.
* **Typography:** `Inter` or `San Francisco`. Clean, variable weights. Headings should be uppercase tracking-wide (Cinematic).
* **Accents:**
* **Trust Green:** Glowing pulse for "License Active" / "Safe".
* **Kill-Switch Red:** Alert state for "Contract Expired".
* **Cine Red:** Primary action buttons.
* **Interactions:** Every hover should have a smooth duration (300ms). Windows should open with a spring physics animation (Framer Motion).
#### **2. Technical Architecture (The "Glass OS")**
* **Framework:** Next.js 14 (App Router).
* **State Management (Crucial):** Use `Zustand`. You must create a `useWindowStore` that manages:
* `windows`: Object of open apps (e.g., `{ id: 'production_hub', isOpen: true, isMinimized: false, zIndex: 10, position: {x,y} }`).
* `activeWindow`: ID of the focused window.
* **3D Engine:** `React-Three-Fiber` (Drei) for rendering LiDAR Point Clouds (`.obj` files) in the asset preview.
#### **3. Core Features to Implement**
**A. Stage 1: The Vault Door (Auth)**
* **Design:** A minimal black screen. Center screen: A glowing biometric ring.
* **Interaction:** Clicking it simulates a "YubiKey" insertion (WebAuthn).
* **Transition:** Upon success, the ring dissolves into the "Project Nexus."
**B. Stage 2: The Project Nexus**
* **Design:** A horizontal 3D carousel of project cards (Glassmorphic).
* **Interaction:** Selecting a project zooms into the "Astral Workspace."
**C. Stage 3: The Workspace (The OS)**
* **The Dock:** Fixed at bottom-center. Floating glass pill. Icons: "Production Hub", "Asset Vault", "Engine Room".
* **Window Manager:** Clicking a dock icon opens a Draggable Floating Window.
**D. App 1: The Production Hub (Main Window)**
* **Layout:** 3-Column Layout.
* **Left (The Cast):** Vertical drop zone. List of Actors. *Hovering an actor shows a rotating 3D Dot Cloud (LiDAR) instead of a 2D image.*
* **Right (The Essence):** Product drop zone (Watches, Cars). Shows "Extracting Materials..." badge on drop.
* **Center (The Lens):** A 16:9 Viewport.
* **Idle:** Wireframe logo.
* **Generating:** NO SPINNERS. Stream a "Noise" animation that resolves into an image (simulating Latent Diffusion).
* **The Input Bar:** Floating Spotlight-style input at the bottom of the center pane.
* **Ghost Text:** As the user types, show faint grey text ahead of the cursor suggesting cinematic terms (e.g., "...shot on Arri Alexa, 85mm").
**E. App 2: The Engine Room (Hardware Monitor)**
* **Design:** Two circular "Tachyometers" labeled **RTX 6000 A** and **RTX 6000 B**.
* **Data:** Visualise VRAM usage (0-96GB). If usage > 90%, glow Red.
#### **4. Deliverables for this Prompt**
1. **Project Structure:** Show the folder structure (components, stores, hooks).
2. **Dependencies:** List the `npm install` packages required.
3. **Step-by-Step Build Order:** Breakdown of how we will tackle the Auth -> OS Shell -> Window Logic -> Production App.
**Constraints:**
* The system must look "Expensive."
* Do not use standard HTML scrollbars; use custom hidden/slim scrollbars.
* Assume the backend (OpenClaw/ComfyUI) calls are mocked for now, but structure the API hooks cleanly.
***
Create the plan and start making this web OS.
Agent Response -
I've built Astral Studio — a cinematic Web-based Operating System for AI video production. Here's what was delivered:
🌌 Live Demo
https://6lijzvljzmy7y.ok.kimi.link
Architecture Overview
Three-Stage Experience Flow:
| Stage | Component | Description |
| ----------------------- | -------------- | ------------------------------------------------------------------------ |
| **1. Vault Door** | Biometric Auth | OLED black canvas with animated SVG ring, particle burst on auth success |
| **2. Project Nexus** | 3D Carousel | Glassmorphic project cards with drag/keyboard navigation |
| **3. Astral Workspace** | The OS | Floating Dock + draggable windows with z-index management |
Core Features Implemented
Design System ("The Black Box of Light")
✅ Pure #000000 OLED canvas
✅ Animated nebula background (CSS-based violet/indigo gradients)
✅ Glassmorphism panels: blur(20px), bg-white/5, border-white/10
✅ Custom scrollbars (hidden by default, slim on hover)
✅ Noise texture overlay for cinematic grain
Window Management System
✅ Draggable windows with grab cursor states
✅ Traffic lights: Close (red), Minimize (yellow), Maximize (green)
✅ Z-index stacking: Click to bring windows to front
✅ Spring animations: Scale-in on open, scale-out on close
✅ Dock integration: Icons lift on hover with glowing active states
App 1: Production Hub
✅ 3-column layout: Cast (left) | Lens (center) | Essence (right)
✅ Drop zones for actors and products with drag-over feedback
✅ Intent Bar: Spotlight-style input with ghost text suggestions
✅ Task Loom: Horizontal film strip of generation tasks
✅ Point cloud preview: Rotating LiDAR visualization on actor hover
App 2: Engine Room
✅ GPU Tachometers: SVG arc gauges for RTX 6000 A/B
✅ VRAM monitoring: Animated fill with warning state at >90%
✅ Live stats: Temperature and utilization updates
✅ System Log: Monospace terminal with color-coded levels
App 3: Asset Vault
✅ Folder sidebar: Projects, Actors, Products, Renders
✅ Grid/List toggle: View mode switching
✅ LiDAR view toggle: Depth map visualization mode
✅ Asset cards: Gradient thumbnails with hover previews
Tech Stack
Framework: React + TypeScript + Vite
State Management: Custom Context API (Zustand-compatible structure)
Styling: Tailwind CSS with custom glassmorphism utilities
Animations: CSS keyframes + Framer Motion-style transitions
Project Structure
src/
├── components/
│ ├── nebula/NebulaBackground.tsx
│ ├── dock/Dock.tsx
│ ├── windows/Window.tsx
│ └── apps/
│ ├── ProductionHub.tsx
│ ├── EngineRoom.tsx
│ └── AssetVault.tsx
├── sections/
│ ├── VaultDoor.tsx
│ └── ProjectNexus.tsx
├── stores/
│ └── desktopStore.tsx
├── types/
│ └── index.ts
└── App.tsx
To interact with the OS:
Click the biometric ring to authenticate
Select a project from the carousel (or use ← → arrows)
Use the Dock to open/close apps
Drag windows by their title bars
Use traffic lights to close/minimize windows