CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.
TypeScript ai-agentsai-diagramai-presentationbomcadcanvasdiagramdiagram-generatordrawioflowchartinfographicspptppt-generatorpresentation-generatorreactsvgedittext-to-diagramtypescriptworkflow
readme_update_about_language_and_gif
codingFeng1010344d98c7409
diff --git a/README.fr-FR.md b/README.fr-FR.mdnew file mode 100644index 0000000..735ddc9--- /dev/null+++ b/README.fr-FR.md@@ -0,0 +1,146 @@+<p align="center">+ <img src="public/logo.png" alt="CanvasAnvil logo" width="100%" />+</p>++<h1 align="center">CanvasAnvil</h1>++<p align="center">+ <a href="README.md">English</a> |+ <a href="README.zh-CN.md">简体中文</a> |+ <a href="README.zh-TW.md">繁體中文</a> |+ <a href="README.ja-JP.md">日本語</a> |+ <a href="README.ko-KR.md">한국어</a> |+ <a href="README.fr-FR.md">Français</a>+</p>++CanvasAnvil est une plateforme IA multi-canvas qui transforme une exigence unique en livrables itérables.++## Aperçu des canvas++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Canvas Flow</h3>+ <img src="public/demos/flow.gif" alt="Canvas Flow" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Canvas CAD</h3>+ <img src="public/demos/cad.gif" alt="Canvas CAD" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Canvas PPT</h3>+ <img src="public/demos/ppt.gif" alt="Canvas PPT" width="680" />+ </div>+</div>++## Tutoriels vidéo++- [Regarder sur Bilibili](https://www.bilibili.com/video/BV1jzZ3BBEHc?vd_source=b6b031f92061ae667eba1185f4782a1c)+- [Regarder sur YouTube](https://youtu.be/n3Otj--aLRo)+- [Regarder sur Douyin](https://v.douyin.com/JwlwhmE6R40/)++## Essayer CanvasAnvil++- [Ouvrir CanvasAnvil](https://canvasanvil.codingfgd.asia)+- Remarque : la configuration serveur actuelle est modeste, le service peut parfois être lent.++## Vue d'ensemble des capacités (côté utilisateur)++- `Flow` : génération de diagrammes de flux et éditions partielles (draw.io XML)+- `CAD` : planification d'aménagement intérieur, tableaux d'analyse, plans 2D, tâches de rendu, BOM+- `PPT` : génération de brouillons de présentation et édition itérative++## Workflow type++1. Saisir le besoin+2. Générer/itérer le plan de conception+3. Générer les tableaux d'analyse et valider la stratégie+4. Générer et éditer le plan 2D+5. Exporter les livrables (diagrammes / listes / diapositives)++## Démarrage rapide++1. Installer les dépendances+```bash+npm install+```+2. Lancer le mode développement+```bash+npm run dev+```+URL par défaut : `http://localhost:5173`++3. Vérification de types+```bash+npm run check+```+4. Build de production+```bash+npm run build+```++## Origines et intégrations++- Canvas Flow : intégré et amélioré depuis [next-ai-draw-io](https://github.com/DayuanJiang/next-ai-draw-io)+- Canvas PPT : intégré et amélioré depuis [banana-slides](https://github.com/Anionex/banana-slides.git)+- Canvas CAD : implémentation interne (architecture, workflow Agent, pipeline d'édition 2D SVG, pipeline BOM/rendu)++Améliorations clés :++- UX unifiée entre les canvas (chat, blocs de code, application en un clic)+- Routage Agent et mécanismes de retry plus stables+- Capacités spécifiques CAD (patch / replace / BOM / workflow de rendu à 7 slots)+- Pipelines transverses d'état/version/export++## Capacités principales (côté développeur)++- Flow : génération de diagrammes pilotée par chat, patch/replace, application en un clic, restauration de snapshots+- CAD : sortie `cad_plan`, génération parallèle de tableaux d'analyse, mises à jour partielles 2D SVG avec références d'images d'analyse, rendus concurrents, export BOM+- PPT : génération de contenu structuré, éditions incrémentales par page, itérations en streaming++## Stack technique++- Frontend : React 18 + TypeScript + Vite+- UI : Tailwind CSS + Radix UI + Lucide+- Moteurs de diagrammes : draw.io/diagrams.net pour Flow, SVG-Edit pour CAD+- Intégration de modèles : accès multi-modèles configurable (chat / image)++## Scripts utiles++- `npm run dev` : démarrer le serveur de développement+- `npm start` : démarrage production (site statique + API)+- `npm run build` : build de production+- `npm run check` : vérification TypeScript+- `npm run lint` : ESLint++## Structure du projet (chemins clés)++```text+.+|- agent/ # Prompts et specs de sous-agents CAD/Flow/PPT+|- public/ # Ressources statiques (incluant SVG-Edit)+|- src/+| |- workspaces/+| | |- flow/ # Canvas Flow+| | |- cad/ # Canvas CAD (cœur interne)+| | |- ppt/ # Canvas PPT+|- api/ # Logique API+|- README.md+```++## Documentation++- Guide de déploiement : [Ouvrir le guide de déploiement](deploy/README.md)+++Mon QR code WeChat est ci-dessous, n'hésitez pas à me contacter.++<p align="left">+ <img src="public/wechat.jpg" alt="WeChat QR code" width="280" />+</p>diff --git a/README.ja-JP.md b/README.ja-JP.mdnew file mode 100644index 0000000..7f20ee8--- /dev/null+++ b/README.ja-JP.md@@ -0,0 +1,146 @@+<p align="center">+ <img src="public/logo.png" alt="CanvasAnvil logo" width="100%" />+</p>++<h1 align="center">CanvasAnvil</h1>++<p align="center">+ <a href="README.md">English</a> |+ <a href="README.zh-CN.md">简体中文</a> |+ <a href="README.zh-TW.md">繁體中文</a> |+ <a href="README.ja-JP.md">日本語</a> |+ <a href="README.ko-KR.md">한국어</a> |+ <a href="README.fr-FR.md">Français</a>+</p>++CanvasAnvil は、1つの要件を反復可能な成果物へ変換するマルチキャンバス AI 制作プラットフォームです。++## キャンバスプレビュー++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Flow キャンバス</h3>+ <img src="public/demos/flow.gif" alt="Flow キャンバス" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">CAD キャンバス</h3>+ <img src="public/demos/cad.gif" alt="CAD キャンバス" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">PPT キャンバス</h3>+ <img src="public/demos/ppt.gif" alt="PPT キャンバス" width="680" />+ </div>+</div>++## 動画チュートリアル++- [Bilibili で見る](https://www.bilibili.com/video/BV1jzZ3BBEHc?vd_source=b6b031f92061ae667eba1185f4782a1c)+- [YouTube で見る](https://youtu.be/n3Otj--aLRo)+- [Douyin で見る](https://v.douyin.com/JwlwhmE6R40/)++## CanvasAnvil を試す++- [CanvasAnvil を開く](https://canvasanvil.codingfgd.asia)+- 注: 現在のサーバー構成は控えめなため、動作が遅く感じる場合があります。ご了承ください。++## 機能概要(ユーザー視点)++- `Flow`: フローチャート生成と部分編集(draw.io XML)+- `CAD`: 室内設計計画、分析ボード、2D 平面図、レンダータスク、BOM+- `PPT`: プレゼン草案の生成と反復編集++## 典型的なワークフロー++1. 要件を入力+2. 設計プランを生成・反復+3. 分析ボードを生成して方針を確認+4. 2D 平面図を生成・編集+5. 成果物をエクスポート(図 / リスト / スライド)++## クイックスタート++1. 依存関係をインストール+```bash+npm install+```+2. 開発サーバーを起動+```bash+npm run dev+```+既定 URL: `http://localhost:5173`++3. 型チェック+```bash+npm run check+```+4. 本番ビルド+```bash+npm run build+```++## 起源と統合++- Flow キャンバス: [next-ai-draw-io](https://github.com/DayuanJiang/next-ai-draw-io) を統合・拡張+- PPT キャンバス: [banana-slides](https://github.com/Anionex/banana-slides.git) を統合・拡張+- CAD キャンバス: 自社実装(アーキテクチャ、Agent ワークフロー、2D SVG 編集パイプライン、BOM/レンダーパイプライン)++主な改善点:++- キャンバス横断で統一された UX(チャット、コードブロック、ワンクリック適用)+- より安定した Agent ルーティングとリトライ機構+- CAD 専用機能(patch / replace / BOM / 7スロットレンダーフロー)+- キャンバス横断の状態/バージョン/エクスポートパイプライン++## コア機能(開発者視点)++- Flow: チャット駆動のフローチャート生成、patch/replace、ワンクリック適用、スナップショット復元+- CAD: `cad_plan` 出力、分析ボード並列生成、分析画像参照付き 2D SVG 部分更新、レンダー同時実行、BOM エクスポート+- PPT: 構造化コンテンツ生成、ページ単位の増分編集、ストリーミング反復++## 技術スタック++- フロントエンド: React 18 + TypeScript + Vite+- UI: Tailwind CSS + Radix UI + Lucide+- 図形エンジン: Flow は draw.io/diagrams.net、CAD は SVG-Edit+- モデル連携: 設定可能なマルチモデル接続(チャット / 画像)++## 便利なスクリプト++- `npm run dev`: 開発サーバー起動+- `npm start`: 本番起動(静的サイト + API)+- `npm run build`: 本番ビルド+- `npm run check`: TypeScript チェック+- `npm run lint`: ESLint++## プロジェクト構成(主要パス)++```text+.+|- agent/ # CAD/Flow/PPT 向けプロンプトとサブ Agent 仕様+|- public/ # 静的アセット(SVG-Edit を含む)+|- src/+| |- workspaces/+| | |- flow/ # Flow キャンバス+| | |- cad/ # CAD キャンバス(自社コア)+| | |- ppt/ # PPT キャンバス+|- api/ # API ロジック+|- README.md+```++## ドキュメント++- デプロイガイド: [デプロイガイドを開く](deploy/README.md)+++私の WeChat QR コードはこちらです。お気軽にご連絡ください。++<p align="left">+ <img src="public/wechat.jpg" alt="WeChat QR code" width="280" />+</p>diff --git a/README.ko-KR.md b/README.ko-KR.mdnew file mode 100644index 0000000..11b5a87--- /dev/null+++ b/README.ko-KR.md@@ -0,0 +1,146 @@+<p align="center">+ <img src="public/logo.png" alt="CanvasAnvil logo" width="100%" />+</p>++<h1 align="center">CanvasAnvil</h1>++<p align="center">+ <a href="README.md">English</a> |+ <a href="README.zh-CN.md">简体中文</a> |+ <a href="README.zh-TW.md">繁體中文</a> |+ <a href="README.ja-JP.md">日本語</a> |+ <a href="README.ko-KR.md">한국어</a> |+ <a href="README.fr-FR.md">Français</a>+</p>++CanvasAnvil은 하나의 요구사항을 반복 가능한 결과물로 전환하는 멀티 캔버스 AI 제작 플랫폼입니다.++## 캔버스 미리보기++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Flow 캔버스</h3>+ <img src="public/demos/flow.gif" alt="Flow 캔버스" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">CAD 캔버스</h3>+ <img src="public/demos/cad.gif" alt="CAD 캔버스" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">PPT 캔버스</h3>+ <img src="public/demos/ppt.gif" alt="PPT 캔버스" width="680" />+ </div>+</div>++## 동영상 튜토리얼++- [Bilibili에서 보기](https://www.bilibili.com/video/BV1jzZ3BBEHc?vd_source=b6b031f92061ae667eba1185f4782a1c)+- [YouTube에서 보기](https://youtu.be/n3Otj--aLRo)+- [Douyin에서 보기](https://v.douyin.com/JwlwhmE6R40/)++## CanvasAnvil 사용해보기++- [CanvasAnvil 열기](https://canvasanvil.codingfgd.asia)+- 참고: 현재 서버 사양이 높지 않아 간헐적으로 지연이 발생할 수 있습니다.++## 기능 개요 (사용자 관점)++- `Flow`: 플로우차트 생성 및 부분 편집 (draw.io XML)+- `CAD`: 실내 설계 계획, 분석 보드, 2D 평면도, 렌더 작업, BOM+- `PPT`: 프레젠테이션 초안 생성 및 반복 편집++## 일반 워크플로++1. 요구사항 입력+2. 설계안 생성 및 반복 개선+3. 분석 보드 생성 후 전략 확인+4. 2D 평면도 생성 및 편집+5. 결과물 내보내기 (다이어그램 / 목록 / 슬라이드)++## 빠른 시작++1. 의존성 설치+```bash+npm install+```+2. 개발 서버 시작+```bash+npm run dev+```+기본 URL: `http://localhost:5173`++3. 타입 검사+```bash+npm run check+```+4. 프로덕션 빌드+```bash+npm run build+```++## 출처 및 통합++- Flow 캔버스: [next-ai-draw-io](https://github.com/DayuanJiang/next-ai-draw-io) 기반 통합/개선+- PPT 캔버스: [banana-slides](https://github.com/Anionex/banana-slides.git) 기반 통합/개선+- CAD 캔버스: 자체 구현 (아키텍처, Agent 워크플로, 2D SVG 편집 파이프라인, BOM/렌더 파이프라인)++핵심 개선 사항:++- 캔버스 전반의 통합 UX (채팅, 코드 블록, 원클릭 적용)+- 더 안정적인 Agent 라우팅 및 재시도 메커니즘+- CAD 전용 기능 (patch / replace / BOM / 7-슬롯 렌더 워크플로)+- 캔버스 간 상태/버전/내보내기 파이프라인++## 핵심 기능 (개발자 관점)++- Flow: 채팅 기반 플로우차트 생성, patch/replace, 원클릭 적용, 스냅샷 복원+- CAD: `cad_plan` 출력, 분석 보드 병렬 생성, 분석 이미지 참조 기반 2D SVG 부분 업데이트, 렌더 작업 동시 실행, BOM 내보내기+- PPT: 구조화된 콘텐츠 생성, 페이지 단위 증분 편집, 스트리밍 반복++## 기술 스택++- 프론트엔드: React 18 + TypeScript + Vite+- UI: Tailwind CSS + Radix UI + Lucide+- 다이어그램 엔진: Flow는 draw.io/diagrams.net, CAD는 SVG-Edit+- 모델 통합: 구성 가능한 멀티 모델 접근 (채팅 / 이미지)++## 유용한 스크립트++- `npm run dev`: 개발 서버 시작+- `npm start`: 프로덕션 시작 (정적 사이트 + API)+- `npm run build`: 프로덕션 빌드+- `npm run check`: TypeScript 검사+- `npm run lint`: ESLint++## 프로젝트 구조 (핵심 경로)++```text+.+|- agent/ # CAD/Flow/PPT 프롬프트 및 서브 Agent 명세+|- public/ # 정적 자산 (SVG-Edit 포함)+|- src/+| |- workspaces/+| | |- flow/ # Flow 캔버스+| | |- cad/ # CAD 캔버스 (자체 코어)+| | |- ppt/ # PPT 캔버스+|- api/ # API 로직+|- README.md+```++## 문서++- 배포 가이드: [배포 가이드 열기](deploy/README.md)+++제 WeChat QR 코드는 아래에 있습니다. 편하게 연락해 주세요.++<p align="left">+ <img src="public/wechat.jpg" alt="WeChat QR code" width="280" />+</p>diff --git a/README.md b/README.mdindex 90010c1..d691307 100644--- a/README.md+++ b/README.md@@ -1,26 +1,43 @@-# CanvasAnvil--中文版本: [查看中文文档](README.zh-CN.md)--CanvasAnvil is a multi-canvas AI creation platform that turns a single requirement into deliverables you can iterate on.--## Canvas Previews--<h3 align="center">Flow Canvas</h3><p align="center">- <img src="public/demos/flow.gif" alt="Flow canvas" width="960" />+ <img src="public/logo.png" alt="CanvasAnvil logo" width="100%" /></p>-<h3 align="center">CAD Canvas</h3>-<p align="center">- <img src="public/demos/cad.gif" alt="CAD canvas" width="960" />-</p>+<h1 align="center">CanvasAnvil</h1>-<h3 align="center">PPT Canvas</h3><p align="center">- <img src="public/demos/ppt.gif" alt="PPT canvas" width="960" />+ <a href="README.md">English</a> |+ <a href="README.zh-CN.md">简体中文</a> |+ <a href="README.zh-TW.md">繁體中文</a> |+ <a href="README.ja-JP.md">日本語</a> |+ <a href="README.ko-KR.md">한국어</a> |+ <a href="README.fr-FR.md">Français</a></p>+CanvasAnvil is a multi-canvas AI creation platform that turns a single requirement into deliverables you can iterate on.++## Canvas Previews++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Flow Canvas</h3>+ <img src="public/demos/flow.gif" alt="Flow canvas" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">CAD Canvas</h3>+ <img src="public/demos/cad.gif" alt="CAD canvas" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">PPT Canvas</h3>+ <img src="public/demos/ppt.gif" alt="PPT canvas" width="680" />+ </div>+</div>+## Video Tutorials- [Watch on Bilibili](https://www.bilibili.com/video/BV1jzZ3BBEHc?vd_source=b6b031f92061ae667eba1185f4782a1c)@@ -119,3 +136,11 @@ Key improvements:## Docs- Deployment guide: [Open deployment guide](deploy/README.md)+++我的微信二维码如下,欢迎联系我。++<p align="left">+ <img src="public/wechat.jpg" alt="WeChat QR code" width="280" />+</p>diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 7a317e2..f7153c5 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -1,26 +1,43 @@-# CanvasAnvil--English version: [View English document](README.md)--CanvasAnvil 是一个多画布 AI 创作平台,用一句需求就能完成从方案到可交付物的生成与迭代。--## 画布预览--<h3 align="center">Flow 画布</h3><p align="center">- <img src="public/demos/flow.gif" alt="Flow 画布" width="960" />+ <img src="public/logo.png" alt="CanvasAnvil logo" width="100%" /></p>-<h3 align="center">CAD 画布</h3>-<p align="center">- <img src="public/demos/cad.gif" alt="CAD 画布" width="960" />-</p>+<h1 align="center">CanvasAnvil</h1>-<h3 align="center">PPT 画布</h3><p align="center">- <img src="public/demos/ppt.gif" alt="PPT 画布" width="960" />+ <a href="README.md">English</a> |+ <a href="README.zh-CN.md">简体中文</a> |+ <a href="README.zh-TW.md">繁體中文</a> |+ <a href="README.ja-JP.md">日本語</a> |+ <a href="README.ko-KR.md">한국어</a> |+ <a href="README.fr-FR.md">Français</a></p>+CanvasAnvil 是一个多画布 AI 创作平台,用一句需求就能完成从方案到可交付物的生成与迭代。++## 画布预览++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Flow 画布</h3>+ <img src="public/demos/flow.gif" alt="Flow 画布" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">CAD 画布</h3>+ <img src="public/demos/cad.gif" alt="CAD 画布" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">PPT 画布</h3>+ <img src="public/demos/ppt.gif" alt="PPT 画布" width="680" />+ </div>+</div>+## 视频教程- [Bilibili 教程视频](https://www.bilibili.com/video/BV1jzZ3BBEHc?vd_source=b6b031f92061ae667eba1185f4782a1c)@@ -119,3 +136,11 @@ npm run build## 文档导航- 部署说明:[查看部署说明](deploy/README.zh-CN.md)++## 微信++我的微信二维码如下,欢迎联系我。++<p align="left">+ <img src="public/wechat.jpg" alt="WeChat QR code" width="280" />+</p>diff --git a/README.zh-TW.md b/README.zh-TW.mdnew file mode 100644index 0000000..fa30260--- /dev/null+++ b/README.zh-TW.md@@ -0,0 +1,146 @@+<p align="center">+ <img src="public/logo.png" alt="CanvasAnvil logo" width="100%" />+</p>++<h1 align="center">CanvasAnvil</h1>++<p align="center">+ <a href="README.md">English</a> |+ <a href="README.zh-CN.md">简体中文</a> |+ <a href="README.zh-TW.md">繁體中文</a> |+ <a href="README.ja-JP.md">日本語</a> |+ <a href="README.ko-KR.md">한국어</a> |+ <a href="README.fr-FR.md">Français</a>+</p>++CanvasAnvil 是一個多畫布 AI 創作平台,能把單一需求轉換為可持續迭代的交付成果。++## 畫布預覽++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">Flow 畫布</h3>+ <img src="public/demos/flow.gif" alt="Flow 畫布" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">CAD 畫布</h3>+ <img src="public/demos/cad.gif" alt="CAD 畫布" width="680" />+ </div>+</div>++<div align="left">+ <div style="width: 680px;">+ <h3 align="center">PPT 畫布</h3>+ <img src="public/demos/ppt.gif" alt="PPT 畫布" width="680" />+ </div>+</div>++## 影片教學++- [在 Bilibili 觀看](https://www.bilibili.com/video/BV1jzZ3BBEHc?vd_source=b6b031f92061ae667eba1185f4782a1c)+- [在 YouTube 觀看](https://youtu.be/n3Otj--aLRo)+- [在抖音觀看](https://v.douyin.com/JwlwhmE6R40/)++## 線上試用 CanvasAnvil++- [開啟 CanvasAnvil](https://canvasanvil.codingfgd.asia)+- 注意:目前伺服器配置較低,服務偶爾可能有延遲或卡頓,感謝理解。++## 功能概覽(使用者視角)++- `Flow`:流程圖生成與局部編輯(draw.io XML)+- `CAD`:室內設計規劃、分析看板、2D 平面圖、渲染任務與 BOM+- `PPT`:簡報草稿生成與迭代編輯++## 典型工作流程++1. 輸入需求+2. 生成並迭代設計方案+3. 生成分析看板並確認策略+4. 生成並編輯 2D 平面圖+5. 匯出成果(圖表 / 清單 / 簡報)++## 快速開始++1. 安裝依賴+```bash+npm install+```+2. 啟動開發模式+```bash+npm run dev+```+預設網址:`http://localhost:5173`++3. 型別檢查+```bash+npm run check+```+4. 生產建置+```bash+npm run build+```++## 來源與整合++- Flow 畫布:整合並增強自 [next-ai-draw-io](https://github.com/DayuanJiang/next-ai-draw-io)+- PPT 畫布:整合並增強自 [banana-slides](https://github.com/Anionex/banana-slides.git)+- CAD 畫布:內部自研(架構、Agent 工作流、2D SVG 編輯管線、BOM/渲染管線)++主要改進:++- 跨畫布統一體驗(對話、程式碼區塊、一鍵套用到畫布)+- 更穩定的 Agent 路由與重試機制+- CAD 專屬能力(patch / replace / BOM / 7 槽位渲染流程)+- 跨畫布狀態/版本/匯出管線++## 核心能力(開發者視角)++- Flow:對話驅動流程圖生成、patch/replace、一鍵套用、快照回復+- CAD:`cad_plan` 輸出、分析看板並行生成、引用分析圖的 2D SVG 局部更新、渲染任務併發、BOM 匯出+- PPT:結構化內容生成、頁面級增量編輯、串流式迭代++## 技術棧++- 前端:React 18 + TypeScript + Vite+- UI:Tailwind CSS + Radix UI + Lucide+- 圖形引擎:Flow 使用 draw.io/diagrams.net,CAD 使用 SVG-Edit+- 模型整合:可配置多模型接入(聊天 / 圖像)++## 常用腳本++- `npm run dev`:啟動開發伺服器+- `npm start`:生產啟動(靜態站點 + API)+- `npm run build`:生產建置+- `npm run check`:TypeScript 檢查+- `npm run lint`:ESLint++## 專案結構(關鍵路徑)++```text+.+|- agent/ # CAD/Flow/PPT 的提示詞與子 Agent 規格+|- public/ # 靜態資產(含 SVG-Edit)+|- src/+| |- workspaces/+| | |- flow/ # Flow 畫布+| | |- cad/ # CAD 畫布(自研核心)+| | |- ppt/ # PPT 畫布+|- api/ # API 邏輯+|- README.md+```++## 文件++- 部署指南:[開啟部署指南](deploy/README.md)+++我的微信二維碼如下,歡迎聯繫我。++<p align="left">+ <img src="public/wechat.jpg" alt="WeChat QR code" width="280" />+</p>diff --git a/public/cad/2D.png b/public/cad/2D.pngindex aad03d9..cdceec6 100644Binary files a/public/cad/2D.png and b/public/cad/2D.png differdiff --git a/public/cad/bom.png b/public/cad/bom.pngindex 3c83962..c3c84f3 100644Binary files a/public/cad/bom.png and b/public/cad/bom.png differdiff --git a/public/cad/key_strategy_ chart.png b/public/cad/key_strategy_ chart.pngnew file mode 100644index 0000000..f9c602dBinary files /dev/null and b/public/cad/key_strategy_ chart.png differdiff --git a/public/cad/key_strategy_chart.png b/public/cad/key_strategy_chart.pngnew file mode 100644index 0000000..f9c602dBinary files /dev/null and b/public/cad/key_strategy_chart.png differdiff --git a/public/cad/overall_solution_diagram.png b/public/cad/overall_solution_diagram.pngnew file mode 100644index 0000000..6d1c641Binary files /dev/null and b/public/cad/overall_solution_diagram.png differdiff --git a/public/cad/render.png b/public/cad/render.pngindex 545e96b..7348d19 100644Binary files a/public/cad/render.png and b/public/cad/render.png differdiff --git a/public/demos/cad.gif b/public/demos/cad.gifindex fc2efdd..73fe0eb 100644Binary files a/public/demos/cad.gif and b/public/demos/cad.gif differdiff --git a/public/logo.png b/public/logo.pngnew file mode 100644index 0000000..198857bBinary files /dev/null and b/public/logo.png differdiff --git a/public/wechat.jpg b/public/wechat.jpgnew file mode 100644index 0000000..f2deacfBinary files /dev/null and b/public/wechat.jpg differdiff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsxindex 22eac30..4139ea9 100644--- a/src/pages/LandingPage.tsx+++ b/src/pages/LandingPage.tsx@@ -208,11 +208,11 @@ export function LandingPage({ onStart }: LandingPageProps) {</div><div><div className="text-white/90 font-semibold">{uiLang === "zh" ? "智能室内设计" : "Interior Design"}</div>- <div className="text-white/45 text-sm mt-0.5">{uiLang === "zh" ? "输入需求 → 2D 平面 → 装修图 / 物料清单" : "Describe → 2D Plan → Renders / BOM"}</div>+ <div className="text-white/45 text-sm mt-0.5">{uiLang === "zh" ? "输入需求 → 总体方案图 / 关键策略图 → 2D 平面 → 装修图 / 物料清单" : "Describe → Overall / Strategy Charts → 2D Plan → Renders / BOM"}</div></div></div><div className="mt-2 text-sm text-white/55 space-y-1">- <div>{uiLang === "zh" ? "· 全流程覆盖:需求→方案→2D→出图/清单" : "· End-to-End: Brief → Plan → 2D → Outputs"}</div>+ <div>{uiLang === "zh" ? "· 全流程覆盖:需求→总体方案图/关键策略图→2D→出图/清单" : "· End-to-End: Brief → Overall/Strategy Charts → 2D → Outputs"}</div><div>{uiLang === "zh" ? "· 2D 支持原子修改" : "· 2D supports atomic edits"}</div></div></button>@@ -691,26 +691,38 @@ function DemoCAD({ uiLang }: { uiLang: UiLanguage }) {// 0s: Display Input Prompt (Wait 2s)- // 2s: Start Generating 2D (Duration 2s)+ // 2s: Start Generating Overall Solution Diagram (Duration 2s)timeouts.push(setTimeout(() => setIsGenerating(true), promptHoldMs));-- // 4s: Show 2D Plan (Duration 3s)++ // 4s: Show Overall Solution Diagram (Duration 3s)timeouts.push(setTimeout(() => { setIsGenerating(false); setStep(1); }, promptHoldMs + 2000));-- // 7s: Start Generating Render (Duration 2s)++ // 7s: Start Generating Key Strategy Chart (Duration 2s)timeouts.push(setTimeout(() => setIsGenerating(true), promptHoldMs + 5000));-- // 9s: Show Render (Duration 3s)++ // 9s: Show Key Strategy Chart (Duration 3s)timeouts.push(setTimeout(() => { setIsGenerating(false); setStep(2); }, promptHoldMs + 7000));- // 12s: Start Generating BOM (Duration 2s)+ // 12s: Start Generating 2D Plan (Duration 2s)timeouts.push(setTimeout(() => setIsGenerating(true), promptHoldMs + 10000));- // 14s: Show Final BOM (Duration 3s)+ // 14s: Show 2D Plan (Duration 3s)timeouts.push(setTimeout(() => { setIsGenerating(false); setStep(3); }, promptHoldMs + 12000));-- // 17s: Loop- timeouts.push(setTimeout(() => runSequence(), promptHoldMs + 15000));++ // 17s: Start Generating Render (Duration 2s)+ timeouts.push(setTimeout(() => setIsGenerating(true), promptHoldMs + 15000));++ // 19s: Show Render (Duration 3s)+ timeouts.push(setTimeout(() => { setIsGenerating(false); setStep(4); }, promptHoldMs + 17000));++ // 22s: Start Generating BOM (Duration 2s)+ timeouts.push(setTimeout(() => setIsGenerating(true), promptHoldMs + 20000));++ // 24s: Show Final BOM (Duration 3s)+ timeouts.push(setTimeout(() => { setIsGenerating(false); setStep(5); }, promptHoldMs + 22000));++ // 27s: Loop+ timeouts.push(setTimeout(() => runSequence(), promptHoldMs + 25000));};runSequence();@@ -719,9 +731,36 @@ function DemoCAD({ uiLang }: { uiLang: UiLanguage }) {// Helper to get generating textconst getGenState = () => {- if (step === 0) return { title: tr("正在生成平面方案...", "Generating floor plan..."), sub: tr("AI 布局规划 · 动线分析 · 空间划分", "Layout planning · circulation · zoning") };- if (step === 1) return { title: tr("正在渲染装修效果...", "Rendering design..."), sub: tr("风格匹配 · 材质建议 · 灯光氛围", "Style match · materials · lighting mood") };- if (step === 2) return { title: tr("正在生成物料清单...", "Generating BOM..."), sub: tr("空间拆解 · 材料归类 · 数量估算", "Decompose spaces · classify materials · estimate quantities") };+ if (step === 0) {+ return {+ title: tr("正在生成总体方案图...", "Generating overall solution diagram..."),+ sub: tr("功能分区 · 流线组织 · 方案表达", "Functional zoning · flow organization · concept framing"),+ };+ }+ if (step === 1) {+ return {+ title: tr("正在生成关键策略图...", "Generating key strategy chart..."),+ sub: tr("重点节点 · 材料策略 · 设计亮点", "Key nodes · material strategy · design highlights"),+ };+ }+ if (step === 2) {+ return {+ title: tr("正在生成平面方案...", "Generating floor plan..."),+ sub: tr("AI 布局规划 · 动线分析 · 空间划分", "Layout planning · circulation · zoning"),+ };+ }+ if (step === 3) {+ return {+ title: tr("正在渲染效果图...", "Rendering design..."),+ sub: tr("风格匹配 · 材质建议 · 灯光氛围", "Style match · materials · lighting mood"),+ };+ }+ if (step === 4) {+ return {+ title: tr("正在生成物料清单...", "Generating BOM..."),+ sub: tr("空间拆解 · 材料归类 · 数量估算", "Decompose spaces · classify materials · estimate quantities"),+ };+ }return { title: tr("处理中...", "Processing..."), sub: tr("请稍候", "Please wait") };};@@ -768,7 +807,7 @@ function DemoCAD({ uiLang }: { uiLang: UiLanguage }) {)}</AnimatePresence>- <div className={`transition-all duration-1000 w-full h-full flex items-center justify-center ${(step === 0 || isGenerating) ? 'opacity-20 blur-sm' : 'opacity-100'}`}>+ <div className={`transition-opacity duration-300 w-full h-full flex items-center justify-center ${(step === 0 || isGenerating) ? 'opacity-20' : 'opacity-100'}`}><div className="w-full h-full flex items-center justify-center"><motion.divclassName="relative w-[720px] h-[540px] bg-zinc-800/80 border-4 border-white/20 shadow-2xl"@@ -792,14 +831,18 @@ function DemoCAD({ uiLang }: { uiLang: UiLanguage }) {}function CadPlan({ step, uiLang }: { step: number; uiLang: UiLanguage }) {- if (step === 1) return <CadStage2DImage uiLang={uiLang} />;- if (step === 2) return <CadStageRenderImage uiLang={uiLang} />;- if (step === 3) return <CadStageBomImage uiLang={uiLang} />;+ if (step === 1) return <CadStageOverallSolutionImage uiLang={uiLang} />;+ if (step === 2) return <CadStageKeyStrategyImage uiLang={uiLang} />;+ if (step === 3) return <CadStage2DImage uiLang={uiLang} />;+ if (step === 4) return <CadStageRenderImage uiLang={uiLang} />;+ if (step === 5) return <CadStageBomImage uiLang={uiLang} />;return null;}const CAD_DEMO_IMAGES = {plan2d: "/cad/2D.png",+ overallSolution: "/cad/overall_solution_diagram.png",+ keyStrategy: "/cad/key_strategy_chart.png",render: "/cad/render.png",bom: "/cad/bom.png",};@@ -818,8 +861,8 @@ function CadStageImageCard({const tr = (zh: string, en: string) => (uiLang === "zh" ? zh : en);return (<motion.div- initial={{ opacity: 0, scale: 0.985 }}- animate={{ opacity: 1, scale: 1 }}+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}transition={{ duration: 0.45, ease: "easeOut" }}className="absolute inset-4 rounded-2xl border border-white/10 bg-white/95 overflow-hidden shadow-[0_20px_80px_rgba(0,0,0,0.45)]">@@ -849,18 +892,40 @@ function CadStage2DImage({ uiLang }: { uiLang: UiLanguage }) {uiLang={uiLang}src={CAD_DEMO_IMAGES.plan2d}title={uiLang === "zh" ? "2D 平面图" : "2D Floor Plan"}+ subtitle={uiLang === "zh" ? "策略确认后生成" : "Generated after strategy confirmation"}+ />+ );+}++function CadStageOverallSolutionImage({ uiLang }: { uiLang: UiLanguage }) {+ return (+ <CadStageImageCard+ uiLang={uiLang}+ src={CAD_DEMO_IMAGES.overallSolution}+ title={uiLang === "zh" ? "总体方案图" : "Overall Solution Diagram"}subtitle={uiLang === "zh" ? "需求输入后生成" : "Generated from requirement input"}/>);}+function CadStageKeyStrategyImage({ uiLang }: { uiLang: UiLanguage }) {+ return (+ <CadStageImageCard+ uiLang={uiLang}+ src={CAD_DEMO_IMAGES.keyStrategy}+ title={uiLang === "zh" ? "关键策略图" : "Key Strategy Chart"}+ subtitle={uiLang === "zh" ? "总体方案后生成" : "Generated after overall solution"}+ />+ );+}+function CadStageRenderImage({ uiLang }: { uiLang: UiLanguage }) {return (<CadStageImageCarduiLang={uiLang}src={CAD_DEMO_IMAGES.render}- title={uiLang === "zh" ? "装修图" : "Render"}- subtitle={uiLang === "zh" ? "2D 结束后生成" : "Generated after 2D completion"}+ title={uiLang === "zh" ? "装修效果图" : "Render"}+ subtitle={uiLang === "zh" ? "2D 方案后生成" : "Generated after 2D planning"}/>);}@@ -875,7 +940,6 @@ function CadStageBomImage({ uiLang }: { uiLang: UiLanguage }) {/>);}-function CadPlan2D({ uiLang }: { uiLang: UiLanguage }) {const tr = (zh: string, en: string) => (uiLang === "zh" ? zh : en);return (