diff --git a/designer/src/codex-pcb/CodexPcbDock.tsx b/designer/src/codex-pcb/CodexPcbDock.tsx index 6d7db7a..001b8fa 100644 --- a/designer/src/codex-pcb/CodexPcbDock.tsx +++ b/designer/src/codex-pcb/CodexPcbDock.tsx @@ -2,10 +2,11 @@ import { useEffect, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; import './codex-pcb.css'; import { DeliveryModel3D } from './DeliveryModel3D.js'; +import { TaskProgress } from './TaskProgress.js'; import { Markdown as RichMarkdown } from '@ziroeda/ai/markdown.js'; type Artifact = { name: string; kind: string; label: string; bytes: number; sha256: string }; -type Session = { id: string; request: string; state: string; busy: boolean; thread_id?: string; error?: string; cursor: number; created_at: number; proposal?: { title: string; markdown: string; revision: number; hash: string }; approval?: { revision: number }; delivery?: { files: Artifact[]; notes: string }; }; +type Session = { id: string; request: string; state: string; busy: boolean; thread_id?: string; error?: string; cursor: number; created_at: number; updated_at?: number; proposal?: { title: string; markdown: string; revision: number; hash: string; at?: number }; approval?: { revision: number; at?: number }; delivery?: { files: Artifact[]; notes: string }; }; type Entry = { seq: number; at: number; type: string; data: Record }; const BASE = `${import.meta.env.BASE_URL}pcb-api`; const ACTIVE = 'vibemake.pcb2.persistent-session'; @@ -64,6 +65,7 @@ export function CodexPcbDock(): JSX.Element { {!open ? :
Codex PCB 工作台从方案到真实电路板
+
{active && task && }
{error &&
{error}
} {!active ?
让需求成为电路板

你想设计什么?

描述用途、供电、接口和尺寸要求。AI 会先提出方案,由你审核后再开始绘制。