chore: rebrand to StoriAI and update logo
3 files added
5 files modified
| New file |
| | |
| | | import json |
| | | import os |
| | | import glob |
| | | |
| | | session_file = '/Users/logchen/Documents/github/VideoClaw/video-claw/video-claw/backend/code/data/sessions/1782135655622.json' |
| | | |
| | | with open(session_file, 'r', encoding='utf-8') as f: |
| | | data = json.load(f) |
| | | |
| | | changed = False |
| | | |
| | | # Fix reference_generation |
| | | if "reference_generation" in data.get("artifacts", {}): |
| | | scenes = data["artifacts"]["reference_generation"].get("scenes", []) |
| | | for scene in scenes: |
| | | if scene.get("status") == "running": |
| | | # Check if there are files |
| | | shot_id = scene["id"] |
| | | scenes_dir = os.path.join('/Users/logchen/Documents/github/VideoClaw/video-claw/video-claw/backend/code/result/image/1782135655622/Scenes') |
| | | pattern = os.path.join(scenes_dir, f"{shot_id}*.*") |
| | | files = [] |
| | | for ext in ("jpg", "jpeg", "png", "webp", "bmp"): |
| | | pattern = os.path.join(scenes_dir, f"{shot_id}*.{ext}") |
| | | files.extend(glob.glob(pattern)) |
| | | |
| | | if files: |
| | | files = sorted(set(files), key=os.path.getmtime) |
| | | # Map paths to relative or absolute as they are normally stored |
| | | # reference_agent stores absolute paths? No, it uses os.path.join which might be relative |
| | | # Let's see what is stored in selected: |
| | | # 'code/result/image/1782135655622/Scenes/seg_02_01.jpg' |
| | | |
| | | # We need to construct relative path |
| | | rel_files = [] |
| | | for f in files: |
| | | rel_files.append(f.replace('/Users/logchen/Documents/github/VideoClaw/video-claw/video-claw/backend/', '')) |
| | | |
| | | scene["versions"] = rel_files |
| | | scene["selected"] = rel_files[-1] |
| | | scene["status"] = "done" |
| | | else: |
| | | scene["status"] = "failed" |
| | | changed = True |
| | | |
| | | if changed: |
| | | with open(session_file, 'w', encoding='utf-8') as f: |
| | | json.dump(data, f, ensure_ascii=False, indent=2) |
| | | print("Fixed!") |
| | | else: |
| | | print("No changes needed.") |
| New file |
| | |
| | | import json |
| | | import os |
| | | from backend.core.orchestrator import WorkflowEngine |
| | | |
| | | engine = WorkflowEngine() |
| | | state = engine.get_state("1782288853725") |
| | | print(state.status) |
| | |
| | | import "./globals.css"; |
| | | |
| | | export const metadata: Metadata = { |
| | | title: "Video-Claw", |
| | | title: "StoriAI", |
| | | description: "AI视频生成工具", |
| | | }; |
| | | |
| | |
| | | import { clearTempCache, fetchPipelineTasks, fetchSandboxTasks, fetchSessions, type PipelineTask, type SandboxTask } from '@/lib/workflowApi'; |
| | | |
| | | const NAV_ITEMS = [ |
| | | { href: '/', label: 'Video-Claw', icon: Home }, |
| | | { href: '/', label: 'StoriAI', icon: Home }, |
| | | { href: '/sandbox', label: '临时工作台', icon: Hexagon }, |
| | | { href: '/pipelines/standard', label: '文艺短视频', icon: Clapperboard }, |
| | | { href: '/pipelines/action-transfer', label: '动作迁移', icon: Repeat2 }, |
| | |
| | | }; |
| | | |
| | | const WORKFLOW_STAGE_COUNT = 7; |
| | | const COMPLETED_TASK_DISMISS_KEY = 'video-claw.dismissed-completed-tasks'; |
| | | const SIDEBAR_OPEN_KEY = 'video-claw.sidebar-open'; |
| | | const COMPLETED_TASK_DISMISS_KEY = 'storiai.dismissed-completed-tasks'; |
| | | const SIDEBAR_OPEN_KEY = 'storiai.sidebar-open'; |
| | | |
| | | function projectTaskFromSession(session: any): RunningTaskItem | null { |
| | | const statusMap = session.status || {}; |
| | |
| | | <div className={clsx('flex h-full flex-col overflow-hidden transition-opacity duration-200', open ? 'opacity-100' : 'opacity-0')}> |
| | | <div className="flex h-16 items-center px-4 border-b border-gray-100"> |
| | | <div className="flex items-center gap-2 min-w-0"> |
| | | <PanelLeftOpen className="w-4 h-4 text-blue-500 flex-shrink-0" /> |
| | | <span className="text-sm font-semibold text-gray-800 truncate">Video-Claw</span> |
| | | <img src="/logo.png" alt="Logo" className="w-5 h-5 flex-shrink-0 object-contain rounded" /> |
| | | <span className="text-sm font-semibold text-gray-800 truncate">StoriAI</span> |
| | | </div> |
| | | </div> |
| | | <nav className="min-h-0 flex-1 overflow-y-auto p-3 space-y-1"> |
| | |
| | | <header className="fixed top-0 right-0 left-[var(--app-sidebar-width)] z-30 h-14 bg-white border-b border-gray-200 flex items-center px-4 min-w-0 transition-[left] duration-300"> |
| | | <Link href="/" className="flex items-center gap-2 hover:opacity-80 transition-opacity flex-shrink-0"> |
| | | <img |
| | | src="/logo.jpg" |
| | | src="/logo.png" |
| | | alt="Logo" |
| | | className="w-8 h-8 rounded-lg object-contain" |
| | | className="w-8 h-8 rounded-lg object-contain bg-black" |
| | | /> |
| | | <span className="font-bold text-sm text-gray-800 tracking-tight"> |
| | | Video-Claw |
| | | StoriAI |
| | | </span> |
| | | </Link> |
| | | </header> |
| | |
| | | <div className="w-full max-w-6xl px-6 pt-16 pb-8 flex-shrink-0"> |
| | | {/* 标题 */} |
| | | <div className="text-center mb-10"> |
| | | <div className="inline-flex items-center gap-2 mb-3"> |
| | | <Sparkles className="w-7 h-7 text-blue-500" /> |
| | | <h1 className="text-2xl font-bold text-gray-800">Video-Claw</h1> |
| | | <div className="inline-flex items-center gap-3 mb-3"> |
| | | <img src="/logo.png" alt="StoriAI" className="w-10 h-10 object-contain rounded-xl shadow-sm bg-black p-1" /> |
| | | <h1 className="text-3xl font-bold text-gray-800 tracking-tight">StoriAI</h1> |
| | | </div> |
| | | <p className="text-sm text-gray-500"> |
| | | 输入你的创意,AI 将为你分步生成完整短片 |
| | |
| | | 'use client'; |
| | | 'use client'; |
| | | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { CheckCircle, Circle, Loader, Edit3, AlertCircle, Square, Zap, Settings2, ChevronDown } from 'lucide-react'; |
| | |
| | | className="flex items-center gap-2 mr-6 hover:opacity-80 transition-opacity flex-shrink-0" |
| | | > |
| | | <img |
| | | src="/logo.jpg" |
| | | src="/logo.png" |
| | | alt="Logo" |
| | | className="w-8 h-8 rounded-lg object-contain" |
| | | className="w-8 h-8 rounded-lg object-contain bg-black" |
| | | /> |
| | | <div className="flex flex-col leading-tight"> |
| | | <span className="font-bold text-sm text-gray-800 tracking-tight"> |
| | | Video-Claw |
| | | StoriAI |
| | | </span> |
| | | </div> |
| | | </button> |