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
flow_fin
codingFeng101e93b01901ee6
diff --git a/.tmp-superpowers b/.tmp-superpowersnew file mode 160000index 0000000..06b92f3--- /dev/null+++ b/.tmp-superpowers@@ -0,0 +1 @@+Subproject commit 06b92f36820f38175b2ed6ff3f8df45157d54731diff --git a/api/routes/chat.ts b/api/routes/chat.tsnew file mode 100644index 0000000..887f49f--- /dev/null+++ b/api/routes/chat.ts@@ -0,0 +1,1233 @@+import {+ APICallError,+ convertToModelMessages,+ createUIMessageStream,+ createUIMessageStreamResponse,+ generateText,+ LoadAPIKeyError,+ stepCountIs,+ streamText,+} from "ai"+import { appendFile } from "fs/promises"+import path from "path"+import { z } from "zod"+import { extractText, getDocumentProxy } from "unpdf"+import mammoth from "mammoth"+import {+ getAIModel,+ supportsPromptCaching,+} from "../../src/workspaces/flow/next/lib/ai-providers"+import {+ getTelemetryConfig,+ setTraceInput,+ setTraceOutput,+ wrapWithObserve,+} from "../../src/workspaces/flow/next/lib/langfuse"+import { getSystemPrompt } from "../../src/workspaces/flow/next/lib/system-prompts"++export const maxDuration = 300++// File upload limits (must match client-side)+const MAX_FILE_SIZE = 2 * 1024 * 1024 // 2MB+const MAX_FILES = 5++const SUMMARY_CONCURRENCY = 50+const CHUNK_TOKEN_TARGET = 2500+const RECURSIVE_THRESHOLD_TOKENS = 50000++type UploadedFilePayload = {+ name: string+ mediaType?: string+ dataUrl: string+ extractedText?: string+}++function estimateTokens(text: string): number {+ return Math.ceil(String(text || "").length / 4)+}++function cleanExtractedText(input: string): string {+ const text = String(input || "")+ .replace(/\r/g, "\n")+ .replace(/[ \t]+\n/g, "\n")+ .replace(/\n{3,}/g, "\n\n")+ .replace(/[ \t]{2,}/g, " ")+ .trim()+ return text+ .split("\n")+ .filter((line) => {+ const l = line.trim()+ if (!l) return false+ if (/^arXiv:\d{4}\.\d{4,5}/i.test(l)) return false+ if (/^\[\d+\]\s*$/.test(l)) return false+ if (/^Page\s+\d+(\s+of\s+\d+)?$/i.test(l)) return false+ return true+ })+ .join("\n")+ .trim()+}++function splitByApproxTokens(text: string, chunkTokens: number): string[] {+ const chunkChars = Math.max(2000, chunkTokens * 4)+ const overlapChars = Math.floor(chunkChars * 0.1)+ const normalized = String(text || "").trim()+ if (!normalized) return []+ const chunks: string[] = []+ let start = 0+ while (start < normalized.length) {+ const end = Math.min(start + chunkChars, normalized.length)+ chunks.push(normalized.slice(start, end))+ if (end >= normalized.length) break+ start = Math.max(0, end - overlapChars)+ }+ return chunks+}++async function runWithConcurrency<T, R>(+ items: T[],+ limit: number,+ worker: (item: T, index: number) => Promise<R>,+): Promise<R[]> {+ if (items.length === 0) return []+ const results = new Array<R>(items.length)+ let cursor = 0+ const runners = Array.from({ length: Math.min(limit, items.length) }).map(+ async () => {+ while (true) {+ const idx = cursor+ cursor += 1+ if (idx >= items.length) return+ results[idx] = await worker(items[idx], idx)+ }+ },+ )+ await Promise.all(runners)+ return results+}++function getFileExtension(name: string): string {+ const n = String(name || "")+ const i = n.lastIndexOf(".")+ return i >= 0 ? n.slice(i).toLowerCase() : ""+}++function parseDataUrl(dataUrl: string): { mediaType: string; base64: string } {+ const raw = String(dataUrl || "")+ const m = raw.match(/^data:([^;]+);base64,(.*)$/)+ if (!m) throw new Error("Invalid data URL")+ return { mediaType: m[1], base64: m[2] }+}++async function extractUploadedFileText(file: UploadedFilePayload): Promise<string> {+ const providedText =+ typeof file.extractedText === "string"+ ? cleanExtractedText(file.extractedText)+ : ""++ const { mediaType, base64 } = parseDataUrl(file.dataUrl)+ const buffer = Buffer.from(base64, "base64")+ const ext = getFileExtension(file.name)+ const mt = String(file.mediaType || mediaType || "").toLowerCase()++ if (mt.includes("pdf") || ext === ".pdf") {+ // If client already extracted enough text, trust it.+ if (providedText.length >= 200) return providedText++ const pdf = await getDocumentProxy(new Uint8Array(buffer))+ const { text } = await extractText(pdf, { mergePages: true })+ const parsed = cleanExtractedText(String(text || ""))+ return parsed.length >= providedText.length ? parsed : providedText+ }++ if (mt.includes("wordprocessingml.document") || ext === ".docx") {+ if (providedText) return providedText+ const result = await mammoth.extractRawText({ buffer })+ return cleanExtractedText(String(result.value || ""))+ }++ if (+ mt.startsWith("text/") ||+ [".txt", ".md", ".markdown", ".json", ".csv", ".xml", ".yaml", ".yml", ".toml", ".py", ".js", ".ts"].includes(ext)+ ) {+ if (providedText) return providedText+ return cleanExtractedText(buffer.toString("utf8"))+ }++ return providedText || cleanExtractedText(buffer.toString("utf8"))+}++async function summarizeChunk(+ model: any,+ providerOptions: any,+ headers: any,+ chunk: string,+): Promise<string> {+ return generateSummaryWithRetry({+ model,+ providerOptions,+ headers,+ system:+ "You are a strict summarizer. Output only direct summary text, no questions, no instructions.",+ user: `任务:仅根据下述文本输出摘要(<=300字)。禁止提问、禁止让用户补充内容、禁止输出模板化客套。\n\n文本:\n${chunk}`,+ maxOutputTokens: 600,+ maxChars: 300,+ fallbackSource: chunk,+ })+}++function extractiveFallbackSummary(source: string, maxChars: number): string {+ const cleaned = cleanExtractedText(String(source || ""))+ .replace(/\s+/g, " ")+ .trim()+ if (!cleaned) return ""+ const sentences = cleaned+ .split(/(?<=[。!?.!?])\s+/)+ .map((s) => s.trim())+ .filter(Boolean)+ const out: string[] = []+ let total = 0+ for (const s of sentences) {+ if (s.length < 10) continue+ if (total + s.length > maxChars) break+ out.push(s)+ total += s.length + 1+ if (out.length >= 6) break+ }+ if (out.length > 0) return out.join(" ")+ return cleaned.slice(0, maxChars)+}++function sanitizeSummaryText(summary: string, fallbackSource: string, maxChars: number): string {+ const text = String(summary || "").trim()+ if (!text) return extractiveFallbackSummary(fallbackSource, maxChars)+ const bannedPatterns = [+ /请提供/i,+ /请粘贴/i,+ /需要合并/i,+ /如有偏好/i,+ /目标读者/i,+ /是否保留术语/i,+ /是否需要强调/i,+ /I can|please provide|paste|preference/i,+ ]+ if (bannedPatterns.some((p) => p.test(text))) {+ return extractiveFallbackSummary(fallbackSource, maxChars)+ }+ return text.slice(0, Math.max(120, maxChars))+}++function isBadSummaryText(text: string): boolean {+ const t = String(text || "").trim()+ if (!t) return true+ return [+ /请提供/i,+ /请粘贴/i,+ /需要合并/i,+ /如有偏好/i,+ /是否保留术语/i,+ /please provide|paste/i,+ ].some((p) => p.test(t))+}++async function generateSummaryWithRetry(args: {+ model: any+ providerOptions: any+ headers: any+ system: string+ user: string+ maxOutputTokens: number+ maxChars: number+ fallbackSource: string+}): Promise<string> {+ for (let i = 0; i < 2; i++) {+ const r = await generateText({+ model: args.model,+ messages: [+ { role: "system" as const, content: args.system },+ { role: "user" as const, content: args.user },+ ],+ ...(args.providerOptions && { providerOptions: args.providerOptions }),+ ...(args.headers && { headers: args.headers }),+ maxOutputTokens: args.maxOutputTokens,+ })+ const text = sanitizeSummaryText(+ String(r.text || "").trim(),+ args.fallbackSource,+ args.maxChars,+ )+ if (!isBadSummaryText(text)) return text+ }+ return extractiveFallbackSummary(args.fallbackSource, args.maxChars)+}++async function summarizeBlockMethod(args: {+ model: any+ providerOptions: any+ headers: any+ text: string+}): Promise<string> {+ const chunks = splitByApproxTokens(args.text, CHUNK_TOKEN_TARGET)+ const partial = await runWithConcurrency(+ chunks,+ SUMMARY_CONCURRENCY,+ (chunk) => summarizeChunk(args.model, args.providerOptions, args.headers, chunk),+ )+ const merged = partial.filter(Boolean).join("\n")+ return generateSummaryWithRetry({+ model: args.model,+ providerOptions: args.providerOptions,+ headers: args.headers,+ system:+ "You produce concise, faithful merged summaries. Output only summary text.",+ user: `任务:将以下分块摘要合并为完整摘要(<=1000字)。禁止提问、禁止请求补充材料,仅输出摘要正文。\n\n${merged}`,+ maxOutputTokens: 1800,+ maxChars: 1000,+ fallbackSource: merged,+ })+}++async function summarizeRecursiveMethod(args: {+ model: any+ providerOptions: any+ headers: any+ text: string+}): Promise<string> {+ const baseChunks = splitByApproxTokens(args.text, 3000)+ let level = await runWithConcurrency(+ baseChunks,+ SUMMARY_CONCURRENCY,+ (chunk) => summarizeChunk(args.model, args.providerOptions, args.headers, chunk),+ )+ level = level.filter(Boolean)++ while (level.length > 2) {+ const groups: string[] = []+ for (let i = 0; i < level.length; i += 5) {+ groups.push(level.slice(i, i + 5).join("\n"))+ }+ level = await runWithConcurrency(+ groups,+ SUMMARY_CONCURRENCY,+ async (group) =>+ generateSummaryWithRetry({+ model: args.model,+ providerOptions: args.providerOptions,+ headers: args.headers,+ system:+ "You merge summaries into a higher-level summary. Output only summary text.",+ user: `任务:把这组摘要提炼成更高层摘要(<=350字)。禁止提问、禁止让用户补充,只输出摘要。\n\n${group}`,+ maxOutputTokens: 800,+ maxChars: 350,+ fallbackSource: group,+ }),+ )+ level = level.filter(Boolean)+ }++ return generateSummaryWithRetry({+ model: args.model,+ providerOptions: args.providerOptions,+ headers: args.headers,+ system:+ "You produce final executive summaries with hierarchical fidelity and no hallucination. Output only summary text.",+ user: `任务:输出最终摘要(<=1000字)。禁止提问、禁止请求更多信息,仅输出摘要正文。\n\n${level.join("\n")}`,+ maxOutputTokens: 1800,+ maxChars: 1000,+ fallbackSource: level.join("\n"),+ })+}++function validateUploadedFiles(uploadedFiles: UploadedFilePayload[]): {+ valid: boolean+ error?: string+} {+ if (uploadedFiles.length > MAX_FILES) {+ return {+ valid: false,+ error: `Too many files. Maximum ${MAX_FILES} allowed.`,+ }+ }+ for (const f of uploadedFiles) {+ try {+ const { base64 } = parseDataUrl(f.dataUrl)+ const sizeInBytes = Math.ceil((base64.length * 3) / 4)+ if (sizeInBytes > MAX_FILE_SIZE) {+ return {+ valid: false,+ error: `File exceeds ${MAX_FILE_SIZE / 1024 / 1024}MB limit.`,+ }+ }+ } catch {+ return {+ valid: false,+ error: `Invalid uploaded file payload: ${f.name || "unknown"}`,+ }+ }+ }+ return { valid: true }+}++// Helper function to validate file parts in messages+function validateFileParts(messages: any[]): {+ valid: boolean+ error?: string+} {+ const lastMessage = messages[messages.length - 1]+ const fileParts =+ lastMessage?.parts?.filter((p: any) => p.type === "file") || []++ if (fileParts.length > MAX_FILES) {+ return {+ valid: false,+ error: `Too many files. Maximum ${MAX_FILES} allowed.`,+ }+ }++ for (const filePart of fileParts) {+ // Data URLs format: data:image/png;base64,<data>+ // Base64 increases size by ~33%, so we check the decoded size+ if (filePart.url?.startsWith("data:")) {+ const base64Data = filePart.url.split(",")[1]+ if (base64Data) {+ const sizeInBytes = Math.ceil((base64Data.length * 3) / 4)+ if (sizeInBytes > MAX_FILE_SIZE) {+ return {+ valid: false,+ error: `File exceeds ${MAX_FILE_SIZE / 1024 / 1024}MB limit.`,+ }+ }+ }+ }+ }++ return { valid: true }+}++// Helper function to check if diagram is minimal/empty+function isMinimalDiagram(xml: string): boolean {+ const stripped = xml.replace(/\s/g, "")+ return !stripped.includes('id="2"')+}++// Helper function to replace historical tool call XML with placeholders+// This reduces token usage and forces LLM to rely on the current diagram XML (source of truth)+function replaceHistoricalToolInputs(messages: any[]): any[] {+ return messages.map((msg) => {+ if (msg.role !== "assistant" || !Array.isArray(msg.content)) {+ return msg+ }+ const replacedContent = msg.content.map((part: any) => {+ if (part.type === "tool-call") {+ const toolName = part.toolName+ if (+ toolName === "display_diagram" ||+ toolName === "edit_diagram"+ ) {+ return {+ ...part,+ input: {+ placeholder:+ "[XML content replaced - see current diagram XML in system context]",+ },+ }+ }+ }+ return part+ })+ return { ...msg, content: replacedContent }+ })+}++// Helper function to fix tool call inputs for Bedrock API+// Bedrock requires toolUse.input to be a JSON object, not a string+function fixToolCallInputs(messages: any[]): any[] {+ return messages.map((msg) => {+ if (msg.role !== "assistant" || !Array.isArray(msg.content)) {+ return msg+ }+ const fixedContent = msg.content.map((part: any) => {+ if (part.type === "tool-call") {+ if (typeof part.input === "string") {+ try {+ const parsed = JSON.parse(part.input)+ return { ...part, input: parsed }+ } catch {+ // If parsing fails, wrap the string in an object+ return { ...part, input: { rawInput: part.input } }+ }+ }+ // Input is already an object, but verify it's not null/undefined+ if (part.input === null || part.input === undefined) {+ return { ...part, input: {} }+ }+ }+ return part+ })+ return { ...msg, content: fixedContent }+ })+}++// Inner handler function+async function handleChatRequest(req: Request): Promise<Response> {+ console.log('[EARLY DEBUG] handleChatRequest executed')+ // Check for access code+ const accessCodes =+ process.env.ACCESS_CODE_LIST?.split(",")+ .map((code) => code.trim())+ .filter(Boolean) || []+ if (accessCodes.length > 0) {+ const accessCodeHeader = req.headers.get("x-access-code")+ if (!accessCodeHeader || !accessCodes.includes(accessCodeHeader)) {+ return Response.json(+ {+ error: "Invalid or missing access code. Please configure it in Settings.",+ },+ { status: 401 },+ )+ }+ }++ const payload = await req.json()+ const { messages, xml, previousXml, sessionId } = payload || {}+ const uploadedFiles: UploadedFilePayload[] = Array.isArray(payload?.uploadedFiles)+ ? payload.uploadedFiles+ : []+ const bodyAIConfig = payload?.aiConfig || {}++ // Debug: log the actual message structure received+ console.log("[DEBUG] Received messages:", JSON.stringify(messages, null, 2))+ console.log("[DEBUG] First message structure:", messages?.[0] ? JSON.stringify(messages[0], null, 2) : "No messages")++ // Validate messages array+ if (!messages || !Array.isArray(messages)) {+ return Response.json(+ { error: "Messages must be an array" },+ { status: 400 }+ )+ }++ // Get user IP for Langfuse tracking+ const forwardedFor = req.headers.get("x-forwarded-for")+ const userId = forwardedFor?.split(",")[0]?.trim() || "anonymous"++ // Validate sessionId for Langfuse (must be string, max 200 chars)+ const validSessionId =+ sessionId && typeof sessionId === "string" && sessionId.length <= 200+ ? sessionId+ : undefined++ // Extract user input text for Langfuse trace+ const currentMessage = messages[messages.length - 1]+ const userInputText =+ currentMessage?.parts?.find((p: any) => p.type === "text")?.text || ""++ // Update Langfuse trace with input, session, and user+ setTraceInput({+ input: userInputText,+ sessionId: validSessionId,+ userId: userId,+ })++ // === FILE VALIDATION START ===+ const fileValidation = validateFileParts(messages)+ if (!fileValidation.valid) {+ return Response.json({ error: fileValidation.error }, { status: 400 })+ }+ const uploadedValidation = validateUploadedFiles(uploadedFiles)+ if (!uploadedValidation.valid) {+ return Response.json({ error: uploadedValidation.error }, { status: 400 })+ }+ // === FILE VALIDATION END ===++ // Read client AI provider overrides from headers first, then body fallback.+ const clientOverrides = {+ provider:+ req.headers.get("x-ai-provider") ||+ (typeof bodyAIConfig.provider === "string"+ ? bodyAIConfig.provider+ : null),+ baseUrl:+ req.headers.get("x-ai-base-url") ||+ (typeof bodyAIConfig.baseUrl === "string"+ ? bodyAIConfig.baseUrl+ : null),+ apiKey:+ req.headers.get("x-ai-api-key") ||+ (typeof bodyAIConfig.apiKey === "string"+ ? bodyAIConfig.apiKey+ : null),+ modelId:+ req.headers.get("x-ai-model") ||+ req.headers.get("x-ai-chat-model") ||+ (typeof bodyAIConfig.chatModel === "string"+ ? bodyAIConfig.chatModel+ : typeof bodyAIConfig.modelId === "string"+ ? bodyAIConfig.modelId+ : null),+ }++ // Get AI model with optional client overrides+ const { model, providerOptions, headers, modelId } =+ getAIModel(clientOverrides)++ // Check if model supports prompt caching+ const shouldCache = supportsPromptCaching(modelId)+ console.log(+ `[Prompt Caching] ${shouldCache ? "ENABLED" : "DISABLED"} for model: ${modelId}`,+ )++ let parsedFilesContext = ""+ if (uploadedFiles.length > 0) {+ const fileSummaries = await runWithConcurrency(+ uploadedFiles,+ SUMMARY_CONCURRENCY,+ async (file) => {+ const extracted = await extractUploadedFileText(file)+ const tokens = estimateTokens(extracted)+ const method =+ tokens >= RECURSIVE_THRESHOLD_TOKENS ? "recursive" : "chunk"+ const summary =+ method === "recursive"+ ? await summarizeRecursiveMethod({+ model,+ providerOptions,+ headers,+ text: extracted,+ })+ : await summarizeBlockMethod({+ model,+ providerOptions,+ headers,+ text: extracted,+ })+ return { name: file.name, tokens, method, summary }+ },+ )++ parsedFilesContext = fileSummaries+ .map(+ (item, idx) =>+ `[Parsed File ${idx + 1}: ${item.name}]\nmethod=${item.method}; estimated_tokens=${item.tokens}\n${item.summary}`,+ )+ .join("\n\n")+ }++ // Get the appropriate system prompt based on model (extended for Opus/Haiku 4.5)+ let systemMessage = getSystemPrompt(modelId)++ // Append global constraints if present+ const globalConstraintsHeader = req.headers.get("x-ai-constraints")+ const globalConstraintsBody =+ typeof payload?.aiConstraints === "string"+ ? payload.aiConstraints+ : ""+ const globalConstraintsRaw =+ globalConstraintsHeader || globalConstraintsBody+ if (globalConstraintsRaw) {+ const globalConstraints = globalConstraintsHeader+ ? decodeURIComponent(globalConstraintsRaw)+ : globalConstraintsRaw+ systemMessage += `\n\n=== GLOBAL CONSTRAINTS ===\nThe user has set the following global constraints which MUST be followed for every response:\n${globalConstraints}\n==========================\n`+ }++ const lastMessage = messages[messages.length - 1]++ // Handle case where messages array is empty+ if (!lastMessage) {+ return Response.json(+ { error: "No messages provided" },+ { status: 400 }+ )+ }++ // Extract text from the last message parts or content+ let lastMessageText = ""+ if (lastMessage.content && typeof lastMessage.content === "string") {+ lastMessageText = lastMessage.content+ } else if (Array.isArray(lastMessage.content)) {+ lastMessageText = lastMessage.content+ .filter((part: any) => part.type === "text" || typeof part === "string")+ .map((part: any) => (typeof part === "string" ? part : part.text || ""))+ .join("")+ } else {+ lastMessageText =+ lastMessage.parts?.find((part: any) => part.type === "text")?.text || ""+ }++ // Extract file parts (images) from the last message+ // Note: If using standard 'content' array with images, they might need different handling+ // but for now we primarily support our custom 'parts' format for files+ const partsFileParts =+ lastMessage.parts?.filter((part: any) => part.type === "file") || []+ const contentImageParts = Array.isArray(lastMessage.content)+ ? lastMessage.content.filter(+ (part: any) =>+ part?.type === "image_url" ||+ part?.type === "image" ||+ part?.type === "file",+ )+ : []+ const fileParts = [...partsFileParts, ...contentImageParts]++ // User input only - XML is now in a separate cached system message+ const formattedUserInput = `User input:+"""md+${lastMessageText}+"""+${parsedFilesContext ? `\n\nParsed file summaries:\n"""md\n${parsedFilesContext}\n"""` : ""}`++ // Validate messages structure before conversion+ if (!messages || !Array.isArray(messages)) {+ return Response.json(+ { error: "Invalid messages format: expected array" },+ { status: 400 }+ )+ }++ // Validate each message has required structure+ for (let i = 0; i < messages.length; i++) {+ const message = messages[i]+ console.log(`[DEBUG] Validating message ${i}:`, JSON.stringify(message, null, 2))++ if (!message || typeof message !== 'object') {+ return Response.json(+ { error: `Invalid message format: expected object at index ${i}` },+ { status: 400 }+ )+ }+ if (!message.role || typeof message.role !== 'string') {+ return Response.json(+ { error: `Invalid message format: missing role at index ${i}` },+ { status: 400 }+ )+ }+ // Vercel AI SDK can send messages with different content formats+ // - messages with parts array (our custom format)+ // - messages with content array (standard format)+ // - messages with content string (standard format)+ if (!message.parts && !message.content) {+ return Response.json(+ { error: `Invalid message format: missing content or parts at index ${i}, message: ${JSON.stringify(message)}` },+ { status: 400 }+ )+ }+ if (message.parts && !Array.isArray(message.parts)) {+ return Response.json(+ { error: `Invalid message format: parts must be array at index ${i}` },+ { status: 400 }+ )+ }+ if (message.content && typeof message.content !== 'string' && !Array.isArray(message.content)) {+ return Response.json(+ { error: `Invalid message format: content must be string or array at index ${i}` },+ { status: 400 }+ )+ }+ }++ // Normalize messages to expected format (convert content to parts if needed)+ const normalizedMessages = messages.map((message: any, index: number) => {+ // Handle completely malformed messages+ if (!message) {+ console.log(`[DEBUG] Message ${index} is null/undefined, creating default structure`)+ return { role: 'user', parts: [{ type: 'text', text: '' }] }+ }++ // If message already has parts, keep it as is+ if (message.parts && Array.isArray(message.parts)) {+ return message+ }++ // If message has content, convert to parts format+ if (message.content) {+ let parts: any[] = []++ if (typeof message.content === 'string') {+ // Convert string content to text part+ parts = [{ type: 'text', text: message.content }]+ } else if (Array.isArray(message.content)) {+ // Convert content array to parts array+ parts = message.content.map((item: any) => {+ if (typeof item === 'string') {+ return { type: 'text', text: item }+ } else if (item.type === 'text') {+ return { type: 'text', text: item.text || '' }+ } else if (item.type === 'image') {+ return { type: 'image', image: item.image || item.url, mimeType: item.mimeType }+ } else if (item.type === "image_url") {+ return {+ type: "image",+ image: item.image_url?.url || item.url || "",+ mimeType: item.mimeType,+ }+ } else if (item.type === "file") {+ return {+ type: "image",+ image: item.url || item.image || "",+ mimeType: item.mediaType || item.mimeType,+ }+ }+ return { type: 'text', text: String(item) }+ })+ }++ return { ...message, parts, content: undefined }+ }++ // Handle messages with no content and no parts but have role+ if (message.role) {+ console.log(`[DEBUG] Message ${index} has role but no content/parts, adding empty parts`)+ return { ...message, parts: [] }+ }++ // Fallback: create default message structure+ console.log(`[DEBUG] Message ${index} is malformed, creating default structure:`, JSON.stringify(message))+ return { role: 'user', parts: [{ type: 'text', text: '' }] }+ })++ // Convert UIMessages to ModelMessages and add system message+ console.log('[DEBUG] Before convertToModelMessages - normalizedMessages:', JSON.stringify(normalizedMessages, null, 2))+ const modelMessages = convertToModelMessages(normalizedMessages)+ console.log('[DEBUG] After convertToModelMessages - modelMessages:', JSON.stringify(modelMessages, null, 2))++ // Fix tool call inputs for Bedrock API (requires JSON objects, not strings)+ console.log('[DEBUG] Before fixToolCallInputs - modelMessages:', JSON.stringify(modelMessages, null, 2))+ const fixedMessages = fixToolCallInputs(modelMessages)+ console.log('[DEBUG] After fixToolCallInputs - fixedMessages:', JSON.stringify(fixedMessages, null, 2))++ // Replace historical tool call XML with placeholders to reduce tokens+ // Disabled by default - some models (e.g. minimax) copy placeholders instead of generating XML+ const enableHistoryReplace =+ process.env.ENABLE_HISTORY_XML_REPLACE === "true"+ const placeholderMessages = enableHistoryReplace+ ? replaceHistoricalToolInputs(fixedMessages)+ : fixedMessages++ // Filter out messages with empty content arrays (Bedrock API rejects these)+ // This is a safety measure - ideally convertToModelMessages should handle all cases+ console.log('[DEBUG] Before filtering - placeholderMessages:', JSON.stringify(placeholderMessages, null, 2))+ let enhancedMessages = placeholderMessages.filter(+ (msg: any) => {+ // Check for both content and parts arrays since messages can have either format+ const hasValidContent = (msg.content && Array.isArray(msg.content) && msg.content.length > 0) ||+ (msg.parts && Array.isArray(msg.parts) && msg.parts.length > 0)++ if (!hasValidContent) {+ console.log(`[DEBUG] Message filtered (empty content/parts): role=${msg.role}`)+ return false+ }++ // Additional check for empty text-only messages from user+ // This prevents wrapping empty user input in the "User input: ..." block+ if (msg.role === 'user') {+ let parts: any[] = []+ if (msg.parts) {+ parts = msg.parts+ } else if (Array.isArray(msg.content)) {+ parts = msg.content+ } else if (typeof msg.content === 'string') {+ // If content is a non-empty string, it's valid+ if (msg.content.trim() !== '') {+ return true+ }+ // If empty string, fall through to check logic (parts=[])+ }++ // Check if there is any non-empty text part+ const hasNonEmptyText = parts.some((p: any) => p.type === 'text' && p.text && p.text.trim() !== '')+ // Check if there are any non-text parts (like images, files)+ const hasOtherParts = parts.some((p: any) => p.type !== 'text')++ // If it has only text parts and all are empty, filter it out+ if (!hasNonEmptyText && !hasOtherParts) {+ console.log(`[DEBUG] Message filtered (empty user text): role=${msg.role}`)+ return false+ }+ }++ return true+ }+ )+ console.log('[DEBUG] After filtering - enhancedMessages:', JSON.stringify(enhancedMessages, null, 2))++ // Update the last message with user input only (XML moved to separate cached system message)+ if (enhancedMessages.length >= 1) {+ const lastModelMessage = enhancedMessages[enhancedMessages.length - 1]+ if (lastModelMessage.role === "user") {+ // Check if this user message is effectively empty (no text content and no files)+ // This acts as a final safety net if the filter above missed it+ const isTextEmpty = !lastMessageText || lastMessageText.trim() === ''+ const hasFiles = fileParts.length > 0++ if (isTextEmpty && !hasFiles) {+ console.log('[DEBUG] Dropping empty user message from final payload (safety net)')+ enhancedMessages = enhancedMessages.slice(0, -1)+ } else {+ // Build content array with user input text and file parts+ const contentParts: any[] = [+ { type: "text", text: formattedUserInput },+ ]++ // Add image parts back+ for (const filePart of fileParts) {+ const imageUrl =+ filePart?.url ||+ filePart?.image ||+ filePart?.image_url?.url+ if (!imageUrl) continue+ contentParts.push({+ type: "image",+ image: imageUrl,+ mimeType: filePart.mediaType || filePart.mimeType,+ })+ }++ enhancedMessages = [+ ...enhancedMessages.slice(0, -1),+ { ...lastModelMessage, content: contentParts },+ ]+ }+ }+ }++ // Add cache point to the last assistant message in conversation history+ // This caches the entire conversation prefix for subsequent requests+ // Strategy: system (cached) + history with last assistant (cached) + new user message+ if (shouldCache && enhancedMessages.length >= 2) {+ // Find the last assistant message (should be second-to-last, before current user message)+ for (let i = enhancedMessages.length - 2; i >= 0; i--) {+ if (enhancedMessages[i].role === "assistant") {+ enhancedMessages[i] = {+ ...enhancedMessages[i],+ providerOptions: {+ bedrock: { cachePoint: { type: "default" } },+ },+ }+ break // Only cache the last assistant message+ }+ }+ }++ // System messages with multiple cache breakpoints for optimal caching:+ // - Breakpoint 1: Static instructions (~1500 tokens) - rarely changes+ // - Breakpoint 2: Current XML context - changes per diagram, but constant within a conversation turn+ // This allows: if only user message changes, both system caches are reused+ // if XML changes, instruction cache is still reused+ const systemMessages = [+ {+ role: "system" as const,+ content: systemMessage,+ ...(shouldCache && {+ providerOptions: {+ bedrock: { cachePoint: { type: "default" } },+ },+ }),+ },+ {+ role: "system" as const,+ content: `${previousXml ? `Previous diagram XML (before user's last message):\n"""xml\n${previousXml}\n"""\n\n` : ""}Current diagram XML (AUTHORITATIVE - the source of truth):\n"""xml\n${xml || ""}\n"""\n\nIMPORTANT: The "Current diagram XML" is the SINGLE SOURCE OF TRUTH for what's on the canvas right now. The user can manually add, delete, or modify shapes directly in draw.io. Always count and describe elements based on the CURRENT XML, not on what you previously generated. If both previous and current XML are shown, compare them to understand what the user changed. When using edit_diagram, COPY search patterns exactly from the CURRENT XML - attribute order matters!`,+ ...(shouldCache && {+ providerOptions: {+ bedrock: { cachePoint: { type: "default" } },+ },+ }),+ },+ ]++ const allMessages = [...systemMessages, ...enhancedMessages]++ const promptPayload = {+ timestamp: new Date().toISOString(),+ modelId,+ sessionId: validSessionId,+ userId,+ messages: allMessages,+ }++ const promptLog = JSON.stringify(promptPayload, null, 2)++ console.log("[PROMPT]", promptLog)++ try {+ const logDir = process.env.PROMPT_LOG_DIR || process.cwd()+ const logPath = path.join(logDir, "llm-prompts.log")+ await appendFile(logPath, `${promptLog}\n`)+ } catch (error) {+ console.error("[PROMPT] Failed to write prompt log:", error)+ }++ const stream = createUIMessageStream({+ execute: async ({ writer }) => {+ try {+ const maxTokensEnv = process.env.MAX_OUTPUT_TOKENS+ const parsedMaxTokens = maxTokensEnv+ ? Number.parseInt(maxTokensEnv, 10)+ : undefined+ const safeMaxTokens =+ parsedMaxTokens && parsedMaxTokens > 0+ ? parsedMaxTokens+ : 8192++ const result = await streamText({+ model,+ stopWhen: stepCountIs(5),+ messages: allMessages,+ ...(safeMaxTokens && { maxTokens: safeMaxTokens }),+ ...(providerOptions && { providerOptions }),+ ...(headers && { headers }),+ ...(getTelemetryConfig({ sessionId: validSessionId, userId }) && {+ experimental_telemetry: getTelemetryConfig({+ sessionId: validSessionId,+ userId,+ }),+ }),+ experimental_repairToolCall: async ({ toolCall }) => {+ const rawJson =+ typeof toolCall.input === "string"+ ? toolCall.input+ : null+ if (rawJson) {+ try {+ const fixed = rawJson.replace(+ /([a-zA-Z])="(\d+)"/g,+ '$1=\\"$2\\"',+ )+ const parsed = JSON.parse(fixed)+ return {+ type: "tool-call" as const,+ toolCallId: toolCall.toolCallId,+ toolName: toolCall.toolName,+ input: JSON.stringify(parsed),+ }+ } catch {+ // Ignore repair failure and fall through+ }+ }+ return null+ },+ onFinish: ({ text, usage }) => {+ setTraceOutput(text, {+ promptTokens: usage?.inputTokens,+ completionTokens: usage?.outputTokens,+ })+ },+ tools: {+ display_diagram: {+ description: `Display a diagram on draw.io. Pass the XML content inside <root> tags.++VALIDATION RULES (XML will be rejected if violated):+1. All mxCell elements must be DIRECT children of <root> - never nested+2. Every mxCell needs a unique id+3. Every mxCell (except id="0") needs a valid parent attribute+4. Edge source/target must reference existing cell IDs+5. Escape special chars in values: < > & "+6. Always start with: <mxCell id="0"/><mxCell id="1" parent="0"/>++Example with swimlanes and edges (note: all mxCells are siblings):+<root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+ <mxCell id="lane1" value="Frontend" style="swimlane;" vertex="1" parent="1">+ <mxGeometry x="40" y="40" width="200" height="200" as="geometry"/>+ </mxCell>+ <mxCell id="step1" value="Step 1" style="rounded=1;" vertex="1" parent="lane1">+ <mxGeometry x="20" y="60" width="160" height="40" as="geometry"/>+ </mxCell>+ <mxCell id="lane2" value="Backend" style="swimlane;" vertex="1" parent="1">+ <mxGeometry x="280" y="40" width="200" height="200" as="geometry"/>+ </mxCell>+ <mxCell id="step2" value="Step 2" style="rounded=1;" vertex="1" parent="lane2">+ <mxGeometry x="20" y="60" width="160" height="40" as="geometry"/>+ </mxCell>+ <mxCell id="edge1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;" edge="1" parent="1" source="step1" target="step2">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+</root>++Notes:+- For AWS diagrams, use **AWS 2025 icons**.+- For animated connectors, add "flowAnimation=1" to edge style.+`,+ inputSchema: z.object({+ xml: z+ .string()+ .describe(+ "XML string to be displayed on draw.io",+ ),+ }),+ },+ edit_diagram: {+ description: `Edit specific parts of the current diagram by replacing exact line matches. Use this tool to make targeted fixes without regenerating the entire XML.+CRITICAL: Copy-paste the EXACT search pattern from the "Current diagram XML" in system context. Do NOT reorder attributes or reformat - the attribute order in draw.io XML varies and you MUST match it exactly.+IMPORTANT: Keep edits concise:+- COPY the exact mxCell line from the current XML (attribute order matters!)+- Only include the lines that are changing, plus 1-2 surrounding lines for context if needed+- Break large changes into multiple smaller edits+- Each search must contain complete lines (never truncate mid-line)+- First match only - be specific enough to target the right element++鈿狅笍 JSON ESCAPING: Every " inside string values MUST be escaped as \\". Example: x=\\"100\\" y=\\"200\\" - BOTH quotes need backslashes!`,+ inputSchema: z.object({+ edits: z+ .array(+ z.object({+ search: z+ .string()+ .describe(+ "EXACT lines copied from current XML (preserve attribute order!)",+ ),+ replace: z+ .string()+ .describe("Replacement lines"),+ }),+ )+ .describe(+ "Array of search/replace pairs to apply sequentially",+ ),+ }),+ },+ },+ ...(process.env.TEMPERATURE !== undefined && {+ temperature: parseFloat(process.env.TEMPERATURE),+ }),+ })++ const uiStream = result.toUIMessageStream()++ for await (const message of uiStream as any) {+ const hasToolName =+ (message as any)?.toolName ||+ (Array.isArray((message as any)?.parts) &&+ (message as any).parts.some(+ (part: any) =>+ part.toolName ||+ (part.type &&+ String(part.type).includes("tool")),+ ))++ if (hasToolName) {+ console.log(+ "[TOOL EVENT]",+ JSON.stringify(message, null, 2),+ )+ }++ writer.write(message)+ }+ } catch (error) {+ console.error("[CRITICAL] streamText failed:", error)+ writer.write({+ type: "error",+ errorText:+ error instanceof Error+ ? error.message+ : String(error),+ })+ }+ },+ })++ return createUIMessageStreamResponse({ stream })++}++// Helper to categorize errors and return appropriate response+function handleError(error: unknown): Response {+ console.error("Error in chat route:", error)++ const isDev = process.env.NODE_ENV === "development"++ // Check for specific AI SDK error types+ if (APICallError.isInstance(error)) {+ return Response.json(+ {+ error: error.message,+ ...(isDev && {+ details: error.responseBody,+ stack: error.stack,+ }),+ },+ { status: error.statusCode || 500 },+ )+ }++ if (LoadAPIKeyError.isInstance(error)) {+ return Response.json(+ {+ error: "Authentication failed. Please check your API key.",+ ...(isDev && {+ stack: error.stack,+ }),+ },+ { status: 401 },+ )+ }++ // Fallback for other errors with safety filter+ const message =+ error instanceof Error ? error.message : "An unexpected error occurred"+ const status = (error as any)?.statusCode || (error as any)?.status || 500++ // Configuration errors should be explicit so users can fix settings quickly.+ if (+ message.includes("AI_MODEL environment variable is required") ||+ message.includes("API Key is missing")+ ) {+ return Response.json(+ {+ error: "AI configuration is missing. Please fill API Key and Chat Model in top settings.",+ ...(isDev && {+ details: message,+ stack: error instanceof Error ? error.stack : undefined,+ }),+ },+ { status: 400 },+ )+ }++ // Prevent leaking API keys, tokens, or other sensitive data+ const lowerMessage = message.toLowerCase()+ const safeMessage =+ lowerMessage.includes("key") ||+ lowerMessage.includes("token") ||+ lowerMessage.includes("sig") ||+ lowerMessage.includes("signature") ||+ lowerMessage.includes("secret") ||+ lowerMessage.includes("password") ||+ lowerMessage.includes("credential")+ ? "Authentication failed. Please check your credentials."+ : message++ return Response.json(+ {+ error: safeMessage,+ ...(isDev && {+ details: message,+ stack: error instanceof Error ? error.stack : undefined,+ }),+ },+ { status },+ )+}++// Wrap handler with error handling+async function safeHandler(req: Request): Promise<Response> {+ try {+ return await handleChatRequest(req)+ } catch (error) {+ return handleError(error)+ }+}++// Wrap with Langfuse observe (if configured)+const observedHandler = wrapWithObserve(safeHandler)++export async function POST(req: Request) {+ return observedHandler(req)+}++++++diff --git a/api/routes/config.ts b/api/routes/config.tsnew file mode 100644index 0000000..9db6f4a--- /dev/null+++ b/api/routes/config.ts@@ -0,0 +1,13 @@+export async function GET() {+ return Response.json({+ accessCodeRequired: !!process.env.ACCESS_CODE_LIST,+ dailyRequestLimit: Number(process.env.DAILY_REQUEST_LIMIT) || 0,+ dailyTokenLimit: Number(process.env.DAILY_TOKEN_LIMIT) || 0,+ tpmLimit: Number(process.env.TPM_LIMIT) || 0,+ // Expose safe AI config for frontend defaults+ defaultProvider: process.env.AI_PROVIDER || "openai",+ defaultModel: process.env.AI_MODEL || "gpt-4o",+ defaultBaseUrl: process.env.AI_BASE_URL || "",+ })+}+diff --git a/api/routes/log-feedback.ts b/api/routes/log-feedback.tsnew file mode 100644index 0000000..3add99a--- /dev/null+++ b/api/routes/log-feedback.ts@@ -0,0 +1,113 @@+import { randomUUID } from "crypto"+import { z } from "zod"+import { getLangfuseClient } from "../../src/workspaces/flow/next/lib/langfuse"++const feedbackSchema = z.object({+ messageId: z.string().min(1).max(200),+ feedback: z.enum(["good", "bad"]),+ sessionId: z.string().min(1).max(200).optional(),+})++export async function POST(req: Request) {+ const langfuse = getLangfuseClient()+ if (!langfuse) {+ return Response.json({ success: true, logged: false })+ }++ // Validate input+ let data+ try {+ data = feedbackSchema.parse(await req.json())+ } catch {+ return Response.json(+ { success: false, error: "Invalid input" },+ { status: 400 },+ )+ }++ const { messageId, feedback, sessionId } = data++ // Get user IP for tracking+ const forwardedFor = req.headers.get("x-forwarded-for")+ const userId = forwardedFor?.split(",")[0]?.trim() || "anonymous"++ try {+ // Find the most recent chat trace for this session to attach the score to+ const tracesResponse = await langfuse.api.trace.list({+ sessionId,+ limit: 1,+ })++ const traces = tracesResponse.data || []+ const latestTrace = traces[0]++ if (!latestTrace) {+ // No trace found for this session - create a standalone feedback trace+ const traceId = randomUUID()+ const timestamp = new Date().toISOString()++ await langfuse.api.ingestion.batch({+ batch: [+ {+ type: "trace-create",+ id: randomUUID(),+ timestamp,+ body: {+ id: traceId,+ name: "user-feedback",+ sessionId,+ userId,+ input: { messageId, feedback },+ metadata: {+ source: "feedback-button",+ note: "standalone - no chat trace found",+ },+ timestamp,+ },+ },+ {+ type: "score-create",+ id: randomUUID(),+ timestamp,+ body: {+ id: randomUUID(),+ traceId,+ name: "user-feedback",+ value: feedback === "good" ? 1 : 0,+ comment: `User gave ${feedback} feedback`,+ },+ },+ ],+ })+ } else {+ // Attach score to the existing chat trace+ const timestamp = new Date().toISOString()++ await langfuse.api.ingestion.batch({+ batch: [+ {+ type: "score-create",+ id: randomUUID(),+ timestamp,+ body: {+ id: randomUUID(),+ traceId: latestTrace.id,+ name: "user-feedback",+ value: feedback === "good" ? 1 : 0,+ comment: `User gave ${feedback} feedback`,+ },+ },+ ],+ })+ }++ return Response.json({ success: true, logged: true })+ } catch (error) {+ console.error("Langfuse feedback error:", error)+ return Response.json(+ { success: false, error: "Failed to log feedback" },+ { status: 500 },+ )+ }+}+diff --git a/api/routes/log-save.ts b/api/routes/log-save.tsnew file mode 100644index 0000000..c713e16--- /dev/null+++ b/api/routes/log-save.ts@@ -0,0 +1,72 @@+import { randomUUID } from "crypto"+import { z } from "zod"+import { getLangfuseClient } from "../../src/workspaces/flow/next/lib/langfuse"++const saveSchema = z.object({+ filename: z.string().min(1).max(255),+ format: z.enum(["drawio", "png", "svg"]),+ sessionId: z.string().min(1).max(200).optional(),+})++export async function POST(req: Request) {+ const langfuse = getLangfuseClient()+ if (!langfuse) {+ return Response.json({ success: true, logged: false })+ }++ // Validate input+ let data+ try {+ data = saveSchema.parse(await req.json())+ } catch {+ return Response.json(+ { success: false, error: "Invalid input" },+ { status: 400 },+ )+ }++ const { filename, format, sessionId } = data++ try {+ const timestamp = new Date().toISOString()++ // Find the most recent chat trace for this session to attach the save flag+ const tracesResponse = await langfuse.api.trace.list({+ sessionId,+ limit: 1,+ })++ const traces = tracesResponse.data || []+ const latestTrace = traces[0]++ if (latestTrace) {+ // Add a score to the existing trace to flag that user saved+ await langfuse.api.ingestion.batch({+ batch: [+ {+ type: "score-create",+ id: randomUUID(),+ timestamp,+ body: {+ id: randomUUID(),+ traceId: latestTrace.id,+ name: "diagram-saved",+ value: 1,+ comment: `User saved diagram as ${filename}.${format}`,+ },+ },+ ],+ })+ }+ // If no trace found, skip logging (user hasn't chatted yet)++ return Response.json({ success: true, logged: !!latestTrace })+ } catch (error) {+ console.error("Langfuse save error:", error)+ return Response.json(+ { success: false, error: "Failed to log save" },+ { status: 500 },+ )+ }+}+diff --git a/api/routes/verify-access-code.ts b/api/routes/verify-access-code.tsnew file mode 100644index 0000000..eb2dc80--- /dev/null+++ b/api/routes/verify-access-code.ts@@ -0,0 +1,33 @@+export async function POST(req: Request) {+ const accessCodes =+ process.env.ACCESS_CODE_LIST?.split(",")+ .map((code) => code.trim())+ .filter(Boolean) || []++ // If no access codes configured, verification always passes+ if (accessCodes.length === 0) {+ return Response.json({+ valid: true,+ message: "No access code required",+ })+ }++ const accessCodeHeader = req.headers.get("x-access-code")++ if (!accessCodeHeader) {+ return Response.json(+ { valid: false, message: "Access code is required" },+ { status: 401 },+ )+ }++ if (!accessCodes.includes(accessCodeHeader)) {+ return Response.json(+ { valid: false, message: "Invalid access code" },+ { status: 401 },+ )+ }++ return Response.json({ valid: true, message: "Access code is valid" })+}+diff --git a/api/server.ts b/api/server.tsnew file mode 100644index 0000000..21d2d84--- /dev/null+++ b/api/server.ts@@ -0,0 +1,108 @@+import express from "express";+import type { Response as ExpressResponse } from "express";+import { GET as getConfig } from "./routes/config";+import { POST as postVerifyAccessCode } from "./routes/verify-access-code";+import { POST as postLogFeedback } from "./routes/log-feedback";+import { POST as postLogSave } from "./routes/log-save";+import { POST as postChat } from "./routes/chat";++const PORT = Number(process.env.API_PORT || 8787);+const BODY_LIMIT = process.env.API_BODY_LIMIT || "25mb";++const app = express();+app.use(express.json({ limit: BODY_LIMIT }));++function toWebRequest(req: express.Request): Request {+ const origin = `${req.protocol || "http"}://${req.get("host") || "localhost"}`;+ const url = new URL(req.originalUrl || req.url, origin);+ const headers = new Headers();++ for (const [key, value] of Object.entries(req.headers)) {+ if (Array.isArray(value)) {+ for (const v of value) headers.append(key, v);+ } else if (typeof value === "string") {+ headers.set(key, value);+ }+ }++ let body: BodyInit | undefined;+ if (req.method !== "GET" && req.method !== "HEAD") {+ if (typeof req.body === "string") {+ body = req.body;+ } else if (Buffer.isBuffer(req.body)) {+ body = req.body;+ } else if (req.body !== undefined) {+ body = JSON.stringify(req.body);+ if (!headers.has("content-type")) {+ headers.set("content-type", "application/json");+ }+ }+ }++ return new Request(url.toString(), {+ method: req.method,+ headers,+ body,+ });+}++async function sendWebResponse(webResponse: Response, res: ExpressResponse) {+ res.status(webResponse.status);+ webResponse.headers.forEach((value, key) => {+ if (key.toLowerCase() === "transfer-encoding") return;+ res.setHeader(key, value);+ });++ if (!webResponse.body) {+ res.end();+ return;+ }++ res.flushHeaders?.();+ const reader = webResponse.body.getReader();+ while (true) {+ const { done, value } = await reader.read();+ if (done) break;+ if (value) res.write(Buffer.from(value));+ }+ res.end();+}++function withHandler(+ handler: (request: Request) => Promise<Response>,+): express.RequestHandler {+ return async (req, res) => {+ try {+ const request = toWebRequest(req);+ const response = await handler(request);+ await sendWebResponse(response, res);+ } catch (error) {+ console.error("API route failed:", error);+ const message = error instanceof Error ? error.message : "Internal Server Error";+ res.status(500).json({ error: message });+ }+ };+}++app.get("/api/config", async (_req, res) => {+ try {+ const response = await getConfig();+ await sendWebResponse(response, res);+ } catch (error) {+ console.error("Config route failed:", error);+ res.status(500).json({ error: "Internal Server Error" });+ }+});++app.post("/api/verify-access-code", withHandler(postVerifyAccessCode));+app.post("/api/log-feedback", withHandler(postLogFeedback));+app.post("/api/log-save", withHandler(postLogSave));+app.post("/api/chat", withHandler(postChat));++app.get("/healthz", (_req, res) => {+ res.json({ ok: true, ts: new Date().toISOString() });+});++app.listen(PORT, () => {+ console.log(`[api] listening on http://localhost:${PORT}`);+});diff --git a/package-lock.json b/package-lock.jsonindex e17e573..d5c472b 100644--- a/package-lock.json+++ b/package-lock.json@@ -8,7 +8,12 @@"name": "unified-ai-workspace","version": "0.0.0","dependencies": {+ "@ai-sdk/openai": "^2.0.19",+ "@ai-sdk/react": "^2.0.107","@jvmr/pptx-to-html": "^1.0.0",+ "@langfuse/client": "^4.6.0",+ "@langfuse/tracing": "^4.6.0",+ "@opentelemetry/api": "^1.9.0","@radix-ui/react-collapsible": "^1.1.12","@radix-ui/react-context-menu": "^2.2.16","@radix-ui/react-dialog": "^1.1.15",@@ -16,21 +21,30 @@"@radix-ui/react-scroll-area": "^1.2.10","@radix-ui/react-select": "^2.2.6","@radix-ui/react-slot": "^1.2.4",+ "@radix-ui/react-switch": "^1.2.6","@radix-ui/react-tooltip": "^1.2.8","@radix-ui/react-use-controllable-state": "^1.2.2",+ "ai": "^5.0.89","class-variance-authority": "^0.7.1","clsx": "^2.1.1",+ "express": "^5.2.1","framer-motion": "^12.28.1",+ "js-tiktoken": "^1.0.21","lucide-react": "^0.511.0",+ "mammoth": "^1.11.0","motion": "^12.28.1","openai": "^6.16.0",+ "pako": "^2.1.0","pdf-lib": "^1.17.1","pptxgenjs": "^4.0.1","prism-react-renderer": "^2.4.1","react": "^18.3.1","react-dom": "^18.3.1",+ "react-drawio": "^1.0.7",+ "react-icons": "^5.5.0","react-markdown": "^10.1.0","react-resizable-panels": "^4.4.1",+ "react-resizable-panels-v3": "npm:react-resizable-panels@^3.0.6","react-router-dom": "^7.3.0","remark-gfm": "^4.0.1","sonner": "^2.0.7",@@ -38,24 +52,29 @@"tailwindcss-animate": "^1.0.7","three": "^0.161.0","unpdf": "^1.4.0",+ "zod": "^4.3.6","zustand": "^5.0.3"},"devDependencies": {"@eslint/js": "^9.25.0","@tailwindcss/typography": "^0.5.19",+ "@types/express": "^5.0.6","@types/node": "^22.15.30",+ "@types/pako": "^2.0.4","@types/react": "^18.3.12","@types/react-dom": "^18.3.1","@types/three": "^0.182.0","@vitejs/plugin-react": "^4.4.1","autoprefixer": "^10.4.23","babel-plugin-react-dev-locator": "^1.0.0",+ "concurrently": "^9.2.1","eslint": "^9.25.0","eslint-plugin-react-hooks": "^5.2.0","eslint-plugin-react-refresh": "^0.4.19","globals": "^16.0.0","postcss": "^8.5.6","tailwindcss": "^3.4.19",+ "tsx": "^4.21.0","typescript": "~5.8.3","typescript-eslint": "^8.30.1","vite": "^6.3.5",@@ -63,6 +82,92 @@"vite-tsconfig-paths": "^5.1.4"}},+ "node_modules/@ai-sdk/gateway": {+ "version": "2.0.35",+ "resolved": "https://registry.npmmirror.com/@ai-sdk/gateway/-/gateway-2.0.35.tgz",+ "integrity": "sha512-fMzhC9artgY2s2GgXEWB+cECRJEHHoFJKzDpzsuneguNQ656vydPHhvDdoMjbWW+UtLc4nGf3VwlqG0t4FeQ/w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "2.0.1",+ "@ai-sdk/provider-utils": "3.0.20",+ "@vercel/oidc": "3.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.25.76 || ^4.1.8"+ }+ },+ "node_modules/@ai-sdk/openai": {+ "version": "2.0.89",+ "resolved": "https://registry.npmmirror.com/@ai-sdk/openai/-/openai-2.0.89.tgz",+ "integrity": "sha512-4+qWkBCbL9HPKbgrUO/F2uXZ8GqrYxHa8SWEYIzxEJ9zvWw3ISr3t1/27O1i8MGSym+PzEyHBT48EV4LAwWaEw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "2.0.1",+ "@ai-sdk/provider-utils": "3.0.20"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.25.76 || ^4.1.8"+ }+ },+ "node_modules/@ai-sdk/provider": {+ "version": "2.0.1",+ "resolved": "https://registry.npmmirror.com/@ai-sdk/provider/-/provider-2.0.1.tgz",+ "integrity": "sha512-KCUwswvsC5VsW2PWFqF8eJgSCu5Ysj7m1TxiHTVA6g7k360bk0RNQENT8KTMAYEs+8fWPD3Uu4dEmzGHc+jGng==",+ "license": "Apache-2.0",+ "dependencies": {+ "json-schema": "^0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/provider-utils": {+ "version": "3.0.20",+ "resolved": "https://registry.npmmirror.com/@ai-sdk/provider-utils/-/provider-utils-3.0.20.tgz",+ "integrity": "sha512-iXHVe0apM2zUEzauqJwqmpC37A5rihrStAih5Ks+JE32iTe4LZ58y17UGBjpQQTCRw9YxMeo2UFLxLpBluyvLQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "2.0.1",+ "@standard-schema/spec": "^1.0.0",+ "eventsource-parser": "^3.0.6"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.25.76 || ^4.1.8"+ }+ },+ "node_modules/@ai-sdk/react": {+ "version": "2.0.131",+ "resolved": "https://registry.npmmirror.com/@ai-sdk/react/-/react-2.0.131.tgz",+ "integrity": "sha512-MhF0BOQ3oeKgTaPGl/axi+LPjn9P/Io3Ox8/HryeXUZ48qZDB54stnioIwVlyt7ry4dWuRf72GG8EHM+dLjdvQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider-utils": "3.0.20",+ "ai": "5.0.129",+ "swr": "^2.2.5",+ "throttleit": "2.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "react": "^18 || ~19.0.1 || ~19.1.2 || ^19.2.1",+ "zod": "^3.25.76 || ^4.1.8"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },"node_modules/@alloc/quick-lru": {"version": "5.2.0","resolved": "https://registry.npmmirror.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",@@ -1108,6 +1213,44 @@"jszip": "^3.10.1"}},+ "node_modules/@langfuse/client": {+ "version": "4.6.0",+ "resolved": "https://registry.npmmirror.com/@langfuse/client/-/client-4.6.0.tgz",+ "integrity": "sha512-dVMkSwHelORpW16i1kzHwKL/Pw711Rq8dMFOZ32NOaYzi2ta9M/V/v457+z55rC8Q6O61GvQJe4hLfLv1GTr1w==",+ "license": "MIT",+ "dependencies": {+ "@langfuse/core": "^4.6.0",+ "@langfuse/tracing": "^4.6.0",+ "mustache": "^4.2.0"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.9.0"+ }+ },+ "node_modules/@langfuse/core": {+ "version": "4.6.0",+ "resolved": "https://registry.npmmirror.com/@langfuse/core/-/core-4.6.0.tgz",+ "integrity": "sha512-guy2ipXl8F3GixSvUdfVujkAoWR+4NoS4W/XpalAS6BxBtiVe3aJbIe+wYdIY9BNB9FX02ocfyChoEb9mZItvA==",+ "license": "MIT",+ "peerDependencies": {+ "@opentelemetry/api": "^1.9.0"+ }+ },+ "node_modules/@langfuse/tracing": {+ "version": "4.6.0",+ "resolved": "https://registry.npmmirror.com/@langfuse/tracing/-/tracing-4.6.0.tgz",+ "integrity": "sha512-ReXLD3RMBKLj2HKOkaRWNCiUTHmG6j5HhcCgsOsBR85kBzzSL11QqoOej3iD9eFr6nA8M5Mhz3JUPdl9NiZYNQ==",+ "license": "MIT",+ "dependencies": {+ "@langfuse/core": "^4.6.0"+ },+ "engines": {+ "node": ">=20"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.9.0"+ }+ },"node_modules/@nodelib/fs.scandir": {"version": "2.1.5","resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",@@ -1143,6 +1286,15 @@"node": ">= 8"}},+ "node_modules/@opentelemetry/api": {+ "version": "1.9.0",+ "resolved": "https://registry.npmmirror.com/@opentelemetry/api/-/api-1.9.0.tgz",+ "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8.0.0"+ }+ },"node_modules/@pdf-lib/standard-fonts": {"version": "1.0.0","resolved": "https://registry.npmmirror.com/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz",@@ -1152,6 +1304,12 @@"pako": "^1.0.6"}},+ "node_modules/@pdf-lib/standard-fonts/node_modules/pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",+ "license": "(MIT AND Zlib)"+ },"node_modules/@pdf-lib/upng": {"version": "1.0.1","resolved": "https://registry.npmmirror.com/@pdf-lib/upng/-/upng-1.0.1.tgz",@@ -1161,6 +1319,12 @@"pako": "^1.0.10"}},+ "node_modules/@pdf-lib/upng/node_modules/pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",+ "license": "(MIT AND Zlib)"+ },"node_modules/@radix-ui/number": {"version": "1.1.1","resolved": "https://registry.npmmirror.com/@radix-ui/number/-/number-1.1.1.tgz",@@ -1848,6 +2012,35 @@}}},+ "node_modules/@radix-ui/react-switch": {+ "version": "1.2.6",+ "resolved": "https://registry.npmmirror.com/@radix-ui/react-switch/-/react-switch-1.2.6.tgz",+ "integrity": "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-tooltip": {"version": "1.2.8","resolved": "https://registry.npmmirror.com/@radix-ui/react-tooltip/-/react-tooltip-1.2.8.tgz",@@ -2422,6 +2615,12 @@"win32"]},+ "node_modules/@standard-schema/spec": {+ "version": "1.1.0",+ "resolved": "https://registry.npmmirror.com/@standard-schema/spec/-/spec-1.1.0.tgz",+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",+ "license": "MIT"+ },"node_modules/@tailwindcss/typography": {"version": "0.5.19","resolved": "https://registry.npmmirror.com/@tailwindcss/typography/-/typography-0.5.19.tgz",@@ -2501,6 +2700,27 @@"@babel/types": "^7.28.2"}},+ "node_modules/@types/body-parser": {+ "version": "1.19.6",+ "resolved": "https://registry.npmmirror.com/@types/body-parser/-/body-parser-1.19.6.tgz",+ "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/connect": "*",+ "@types/node": "*"+ }+ },+ "node_modules/@types/connect": {+ "version": "3.4.38",+ "resolved": "https://registry.npmmirror.com/@types/connect/-/connect-3.4.38.tgz",+ "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },"node_modules/@types/debug": {"version": "4.1.12","resolved": "https://registry.npmmirror.com/@types/debug/-/debug-4.1.12.tgz",@@ -2525,6 +2745,31 @@"@types/estree": "*"}},+ "node_modules/@types/express": {+ "version": "5.0.6",+ "resolved": "https://registry.npmmirror.com/@types/express/-/express-5.0.6.tgz",+ "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/body-parser": "*",+ "@types/express-serve-static-core": "^5.0.0",+ "@types/serve-static": "^2"+ }+ },+ "node_modules/@types/express-serve-static-core": {+ "version": "5.1.1",+ "resolved": "https://registry.npmmirror.com/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz",+ "integrity": "sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "@types/qs": "*",+ "@types/range-parser": "*",+ "@types/send": "*"+ }+ },"node_modules/@types/hast": {"version": "3.0.4","resolved": "https://registry.npmmirror.com/@types/hast/-/hast-3.0.4.tgz",@@ -2534,6 +2779,13 @@"@types/unist": "*"}},+ "node_modules/@types/http-errors": {+ "version": "2.0.5",+ "resolved": "https://registry.npmmirror.com/@types/http-errors/-/http-errors-2.0.5.tgz",+ "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/json-schema": {"version": "7.0.15","resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz",@@ -2565,6 +2817,13 @@"undici-types": "~6.21.0"}},+ "node_modules/@types/pako": {+ "version": "2.0.4",+ "resolved": "https://registry.npmmirror.com/@types/pako/-/pako-2.0.4.tgz",+ "integrity": "sha512-VWDCbrLeVXJM9fihYodcLiIv0ku+AlOa/TQ1SvYOaBuyrSKgEcro95LJyIsJ4vSo6BXIxOKxiJAat04CmST9Fw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/prismjs": {"version": "1.26.5","resolved": "https://registry.npmmirror.com/@types/prismjs/-/prismjs-1.26.5.tgz",@@ -2577,6 +2836,20 @@"integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==","license": "MIT"},+ "node_modules/@types/qs": {+ "version": "6.14.0",+ "resolved": "https://registry.npmmirror.com/@types/qs/-/qs-6.14.0.tgz",+ "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/range-parser": {+ "version": "1.2.7",+ "resolved": "https://registry.npmmirror.com/@types/range-parser/-/range-parser-1.2.7.tgz",+ "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/react": {"version": "18.3.27","resolved": "https://registry.npmmirror.com/@types/react/-/react-18.3.27.tgz",@@ -2597,6 +2870,27 @@"@types/react": "^18.0.0"}},+ "node_modules/@types/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmmirror.com/@types/send/-/send-1.2.1.tgz",+ "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/serve-static": {+ "version": "2.2.0",+ "resolved": "https://registry.npmmirror.com/@types/serve-static/-/serve-static-2.2.0.tgz",+ "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-errors": "*",+ "@types/node": "*"+ }+ },"node_modules/@types/stats.js": {"version": "0.17.4","resolved": "https://registry.npmmirror.com/@types/stats.js/-/stats.js-0.17.4.tgz",@@ -2908,6 +3202,15 @@"integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==","license": "ISC"},+ "node_modules/@vercel/oidc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/@vercel/oidc/-/oidc-3.1.0.tgz",+ "integrity": "sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 20"+ }+ },"node_modules/@vitejs/plugin-react": {"version": "4.7.0","resolved": "https://registry.npmmirror.com/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",@@ -2936,6 +3239,28 @@"dev": true,"license": "BSD-3-Clause"},+ "node_modules/@xmldom/xmldom": {+ "version": "0.8.11",+ "resolved": "https://registry.npmmirror.com/@xmldom/xmldom/-/xmldom-0.8.11.tgz",+ "integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==",+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/acorn": {"version": "8.15.0","resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.15.0.tgz",@@ -2959,6 +3284,24 @@"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"}},+ "node_modules/ai": {+ "version": "5.0.129",+ "resolved": "https://registry.npmmirror.com/ai/-/ai-5.0.129.tgz",+ "integrity": "sha512-IARdFetNTedDfqpByNMm9p0oHj7JS+SpOrbgLdQdyCiDe70Xk07wnKP4Lub1ckCrxkhAxY3yxOHllGEjbpXgpQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/gateway": "2.0.35",+ "@ai-sdk/provider": "2.0.1",+ "@ai-sdk/provider-utils": "3.0.20",+ "@opentelemetry/api": "1.9.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.25.76 || ^4.1.8"+ }+ },"node_modules/ajv": {"version": "6.12.6","resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz",@@ -2976,6 +3319,16 @@"url": "https://github.com/sponsors/epoberezkin"}},+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/ansi-styles": {"version": "4.3.0","resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",@@ -3107,6 +3460,26 @@"dev": true,"license": "MIT"},+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },"node_modules/baseline-browser-mapping": {"version": "2.9.16","resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.16.tgz",@@ -3129,6 +3502,36 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/bluebird": {+ "version": "3.4.7",+ "resolved": "https://registry.npmmirror.com/bluebird/-/bluebird-3.4.7.tgz",+ "integrity": "sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA==",+ "license": "MIT"+ },+ "node_modules/body-parser": {+ "version": "2.2.2",+ "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-2.2.2.tgz",+ "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^1.0.5",+ "debug": "^4.4.3",+ "http-errors": "^2.0.0",+ "iconv-lite": "^0.7.0",+ "on-finished": "^2.4.1",+ "qs": "^6.14.1",+ "raw-body": "^3.0.1",+ "type-is": "^2.0.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/brace-expansion": {"version": "1.1.12","resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.12.tgz",@@ -3186,6 +3589,44 @@"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"}},+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/callsites": {"version": "3.1.0","resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz",@@ -3341,6 +3782,21 @@"url": "https://polar.sh/cva"}},+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },"node_modules/clsx": {"version": "2.1.1","resolved": "https://registry.npmmirror.com/clsx/-/clsx-2.1.1.tgz",@@ -3396,13 +3852,76 @@"dev": true,"license": "MIT"},- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "node_modules/concurrently": {+ "version": "9.2.1",+ "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-9.2.1.tgz",+ "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==","dev": true,- "license": "MIT"- },+ "license": "MIT",+ "dependencies": {+ "chalk": "4.1.2",+ "rxjs": "7.8.2",+ "shell-quote": "1.8.3",+ "supports-color": "8.1.1",+ "tree-kill": "1.2.2",+ "yargs": "17.7.2"+ },+ "bin": {+ "conc": "dist/bin/concurrently.js",+ "concurrently": "dist/bin/concurrently.js"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/open-cli-tools/concurrently?sponsor=1"+ }+ },+ "node_modules/concurrently/node_modules/supports-color": {+ "version": "8.1.1",+ "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-8.1.1.tgz",+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/supports-color?sponsor=1"+ }+ },+ "node_modules/content-disposition": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-1.0.1.tgz",+ "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/cookie": {"version": "1.1.1","resolved": "https://registry.npmmirror.com/cookie/-/cookie-1.1.1.tgz",@@ -3416,6 +3935,15 @@"url": "https://opencollective.com/express"}},+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.6.0"+ }+ },"node_modules/core-util-is": {"version": "1.0.3","resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz",@@ -3492,6 +4020,15 @@"dev": true,"license": "MIT"},+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/dequal": {"version": "2.0.3","resolved": "https://registry.npmmirror.com/dequal/-/dequal-2.0.3.tgz",@@ -3526,12 +4063,47 @@"integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==","license": "Apache-2.0"},+ "node_modules/dingbat-to-unicode": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz",+ "integrity": "sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w==",+ "license": "BSD-2-Clause"+ },"node_modules/dlv": {"version": "1.1.3","resolved": "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz","integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==","license": "MIT"},+ "node_modules/duck": {+ "version": "0.1.12",+ "resolved": "https://registry.npmmirror.com/duck/-/duck-0.1.12.tgz",+ "integrity": "sha512-wkctla1O6VfP89gQ+J/yDesM0S7B7XLXjKGzXxMDVFg7uEn706niAtyYovKbyq1oT9YwDcly721/iUWoc8MVRg==",+ "license": "BSD",+ "dependencies": {+ "underscore": "^1.13.1"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT"+ },"node_modules/electron-to-chromium": {"version": "1.5.267","resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz",@@ -3539,6 +4111,52 @@"dev": true,"license": "ISC"},+ "node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },"node_modules/esbuild": {"version": "0.25.12","resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.25.12.tgz",@@ -3591,6 +4209,12 @@"node": ">=6"}},+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },"node_modules/escape-string-regexp": {"version": "4.0.0","resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",@@ -3791,6 +4415,76 @@"node": ">=0.10.0"}},+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/eventsource-parser": {+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/eventsource-parser/-/eventsource-parser-3.0.6.tgz",+ "integrity": "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==",+ "license": "MIT",+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://registry.npmmirror.com/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/express/node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/extend": {"version": "3.0.2","resolved": "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz",@@ -3887,6 +4581,27 @@"node": ">=8"}},+ "node_modules/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/find-up": {"version": "5.0.0","resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz",@@ -3925,6 +4640,15 @@"dev": true,"license": "ISC"},+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/fraction.js": {"version": "5.3.4","resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-5.3.4.tgz",@@ -3966,6 +4690,15 @@}}},+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/fsevents": {"version": "2.3.3","resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",@@ -3999,6 +4732,40 @@"node": ">=6.9.0"}},+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/get-nonce": {"version": "1.0.1","resolved": "https://registry.npmmirror.com/get-nonce/-/get-nonce-1.0.1.tgz",@@ -4008,6 +4775,32 @@"node": ">=6"}},+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-tsconfig": {+ "version": "4.13.6",+ "resolved": "https://registry.npmmirror.com/get-tsconfig/-/get-tsconfig-4.13.6.tgz",+ "integrity": "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },"node_modules/glob-parent": {"version": "6.0.2","resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz",@@ -4040,6 +4833,18 @@"dev": true,"license": "MIT"},+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/has-flag": {"version": "4.0.0","resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",@@ -4050,6 +4855,18 @@"node": ">=8"}},+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/hasown": {"version": "2.0.2","resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz",@@ -4112,12 +4929,48 @@"url": "https://opencollective.com/unified"}},+ "node_modules/http-errors": {+ "version": "2.0.1",+ "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/https": {"version": "1.0.0","resolved": "https://registry.npmmirror.com/https/-/https-1.0.0.tgz","integrity": "sha512-4EC57ddXrkaF0x83Oj8sM6SLQHAWXw90Skqu2M4AEWENZ3F02dFJE/GARA8igO79tcgYqGrD7ae4f5L3um2lgg==","license": "ISC"},+ "node_modules/iconv-lite": {+ "version": "0.7.2",+ "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.7.2.tgz",+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/ignore": {"version": "5.3.2","resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz",@@ -4188,6 +5041,15 @@"integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==","license": "MIT"},+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },"node_modules/is-alphabetical": {"version": "2.0.1","resolved": "https://registry.npmmirror.com/is-alphabetical/-/is-alphabetical-2.0.1.tgz",@@ -4258,6 +5120,16 @@"node": ">=0.10.0"}},+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-glob": {"version": "4.0.3","resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz",@@ -4301,6 +5173,12 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/is-promise": {+ "version": "4.0.0",+ "resolved": "https://registry.npmmirror.com/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT"+ },"node_modules/isarray": {"version": "1.0.0","resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",@@ -4323,6 +5201,15 @@"jiti": "bin/jiti.js"}},+ "node_modules/js-tiktoken": {+ "version": "1.0.21",+ "resolved": "https://registry.npmmirror.com/js-tiktoken/-/js-tiktoken-1.0.21.tgz",+ "integrity": "sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g==",+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.5.1"+ }+ },"node_modules/js-tokens": {"version": "4.0.0","resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz",@@ -4362,6 +5249,12 @@"dev": true,"license": "MIT"},+ "node_modules/json-schema": {+ "version": "0.4.0",+ "resolved": "https://registry.npmmirror.com/json-schema/-/json-schema-0.4.0.tgz",+ "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",+ "license": "(AFL-2.1 OR BSD-3-Clause)"+ },"node_modules/json-schema-traverse": {"version": "0.4.1","resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",@@ -4401,6 +5294,12 @@"setimmediate": "^1.0.5"}},+ "node_modules/jszip/node_modules/pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",+ "license": "(MIT AND Zlib)"+ },"node_modules/keyv": {"version": "4.5.4","resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz",@@ -4497,6 +5396,17 @@"loose-envify": "cli.js"}},+ "node_modules/lop": {+ "version": "0.4.2",+ "resolved": "https://registry.npmmirror.com/lop/-/lop-0.4.2.tgz",+ "integrity": "sha512-RefILVDQ4DKoRZsJ4Pj22TxE3omDO47yFpkIBoDKzkqPRISs5U1cnAdg/5583YPkWPaLIYHOKRMQSvjFsO26cw==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "duck": "^0.1.12",+ "option": "~0.2.1",+ "underscore": "^1.13.1"+ }+ },"node_modules/lru-cache": {"version": "5.1.1","resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz",@@ -4516,6 +5426,39 @@"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},+ "node_modules/mammoth": {+ "version": "1.11.0",+ "resolved": "https://registry.npmmirror.com/mammoth/-/mammoth-1.11.0.tgz",+ "integrity": "sha512-BcEqqY/BOwIcI1iR5tqyVlqc3KIaMRa4egSoK83YAVrBf6+yqdAAbtUcFDCWX8Zef8/fgNZ6rl4VUv+vVX8ddQ==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "@xmldom/xmldom": "^0.8.6",+ "argparse": "~1.0.3",+ "base64-js": "^1.5.1",+ "bluebird": "~3.4.0",+ "dingbat-to-unicode": "^1.0.1",+ "jszip": "^3.7.1",+ "lop": "^0.4.2",+ "path-is-absolute": "^1.0.0",+ "underscore": "^1.13.1",+ "xmlbuilder": "^10.0.0"+ },+ "bin": {+ "mammoth": "bin/mammoth"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/mammoth/node_modules/argparse": {+ "version": "1.0.10",+ "resolved": "https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz",+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",+ "license": "MIT",+ "dependencies": {+ "sprintf-js": "~1.0.2"+ }+ },"node_modules/markdown-table": {"version": "3.0.4","resolved": "https://registry.npmmirror.com/markdown-table/-/markdown-table-3.0.4.tgz",@@ -4526,7 +5469,16 @@"url": "https://github.com/sponsors/wooorm"}},- "node_modules/mdast-util-find-and-replace": {+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/mdast-util-find-and-replace": {"version": "3.0.2","resolved": "https://registry.npmmirror.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz","integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==",@@ -4808,6 +5760,27 @@"url": "https://opencollective.com/unified"}},+ "node_modules/media-typer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-1.1.0.tgz",+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/merge2": {"version": "1.4.1","resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz",@@ -5400,6 +6373,31 @@"node": ">=8.6"}},+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/minimatch": {"version": "3.1.2","resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",@@ -5460,6 +6458,15 @@"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==","license": "MIT"},+ "node_modules/mustache": {+ "version": "4.2.0",+ "resolved": "https://registry.npmmirror.com/mustache/-/mustache-4.2.0.tgz",+ "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",+ "license": "MIT",+ "bin": {+ "mustache": "bin/mustache"+ }+ },"node_modules/mz": {"version": "2.7.0","resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz",@@ -5496,6 +6503,15 @@"dev": true,"license": "MIT"},+ "node_modules/negotiator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/node-releases": {"version": "2.0.27","resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.27.tgz",@@ -5530,6 +6546,39 @@"node": ">= 6"}},+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },"node_modules/openai": {"version": "6.16.0","resolved": "https://registry.npmmirror.com/openai/-/openai-6.16.0.tgz",@@ -5551,6 +6600,12 @@}}},+ "node_modules/option": {+ "version": "0.2.4",+ "resolved": "https://registry.npmmirror.com/option/-/option-0.2.4.tgz",+ "integrity": "sha512-pkEqbDyl8ou5cpq+VsnQbe/WlEy5qS7xPzMS1U55OCG9KPvwFD46zDbxQIj3egJSFc3D+XhYOPUzz49zQAVy7A==",+ "license": "BSD-2-Clause"+ },"node_modules/optionator": {"version": "0.9.4","resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz",@@ -5602,9 +6657,9 @@}},"node_modules/pako": {- "version": "1.0.11",- "resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz",- "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",+ "version": "2.1.0",+ "resolved": "https://registry.npmmirror.com/pako/-/pako-2.1.0.tgz",+ "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==","license": "(MIT AND Zlib)"},"node_modules/parent-module": {@@ -5645,6 +6700,15 @@"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==","license": "MIT"},+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/path-exists": {"version": "4.0.0","resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz",@@ -5655,6 +6719,15 @@"node": ">=8"}},+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/path-key": {"version": "3.1.1","resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",@@ -5671,6 +6744,16 @@"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==","license": "MIT"},+ "node_modules/path-to-regexp": {+ "version": "8.3.0",+ "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-8.3.0.tgz",+ "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/pdf-lib": {"version": "1.17.1","resolved": "https://registry.npmmirror.com/pdf-lib/-/pdf-lib-1.17.1.tgz",@@ -5683,6 +6766,12 @@"tslib": "^1.11.1"}},+ "node_modules/pdf-lib/node_modules/pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",+ "license": "(MIT AND Zlib)"+ },"node_modules/pdf-lib/node_modules/tslib": {"version": "1.14.1","resolved": "https://registry.npmmirror.com/tslib/-/tslib-1.14.1.tgz",@@ -5932,6 +7021,19 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },"node_modules/punycode": {"version": "2.3.1","resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz",@@ -5942,6 +7044,21 @@"node": ">=6"}},+ "node_modules/qs": {+ "version": "6.14.1",+ "resolved": "https://registry.npmmirror.com/qs/-/qs-6.14.1.tgz",+ "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/queue": {"version": "6.0.2","resolved": "https://registry.npmmirror.com/queue/-/queue-6.0.2.tgz",@@ -5971,6 +7088,30 @@],"license": "MIT"},+ "node_modules/range-parser": {+ "version": "1.2.1",+ "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },"node_modules/react": {"version": "18.3.1","resolved": "https://registry.npmmirror.com/react/-/react-18.3.1.tgz",@@ -5996,6 +7137,24 @@"react": "^18.3.1"}},+ "node_modules/react-drawio": {+ "version": "1.0.7",+ "resolved": "https://registry.npmmirror.com/react-drawio/-/react-drawio-1.0.7.tgz",+ "integrity": "sha512-Vl3Bk7hLOl3k2i317CtxlG8axqBsLJMsuY6Sw5sT1wpvaT48L7o0JZQ1TW65+YF1GA1PuYeI3W2xpSggcB//wg==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/react-icons": {+ "version": "5.5.0",+ "resolved": "https://registry.npmmirror.com/react-icons/-/react-icons-5.5.0.tgz",+ "integrity": "sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw==",+ "license": "MIT",+ "peerDependencies": {+ "react": "*"+ }+ },"node_modules/react-markdown": {"version": "10.1.0","resolved": "https://registry.npmmirror.com/react-markdown/-/react-markdown-10.1.0.tgz",@@ -6090,6 +7249,17 @@"react-dom": "^18.0.0 || ^19.0.0"}},+ "node_modules/react-resizable-panels-v3": {+ "name": "react-resizable-panels",+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/react-resizable-panels/-/react-resizable-panels-3.0.6.tgz",+ "integrity": "sha512-b3qKHQ3MLqOgSS+FRYKapNkJZf5EQzuf6+RLiq1/IlTHw99YrZ2NJZLk4hQIzTnnIkRg2LUqyVinu6YWWpUYew==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ }+ },"node_modules/react-router": {"version": "7.12.0","resolved": "https://registry.npmmirror.com/react-router/-/react-router-7.12.0.tgz",@@ -6252,6 +7422,16 @@"url": "https://opencollective.com/unified"}},+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/resolve": {"version": "1.22.11","resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.11.tgz",@@ -6282,6 +7462,16 @@"node": ">=4"}},+ "node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "resolved": "https://registry.npmmirror.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",+ "devOptional": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },"node_modules/reusify": {"version": "1.1.0","resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz",@@ -6337,6 +7527,22 @@"fsevents": "~2.3.2"}},+ "node_modules/router": {+ "version": "2.2.0",+ "resolved": "https://registry.npmmirror.com/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },"node_modules/run-parallel": {"version": "1.2.0","resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz",@@ -6360,12 +7566,28 @@"queue-microtask": "^1.2.2"}},+ "node_modules/rxjs": {+ "version": "7.8.2",+ "resolved": "https://registry.npmmirror.com/rxjs/-/rxjs-7.8.2.tgz",+ "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.1.0"+ }+ },"node_modules/safe-buffer": {"version": "5.1.2","resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz","integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==","license": "MIT"},+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },"node_modules/scheduler": {"version": "0.23.2","resolved": "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.2.tgz",@@ -6385,6 +7607,51 @@"semver": "bin/semver.js"}},+ "node_modules/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmmirror.com/send/-/send-1.2.1.tgz",+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.3",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.1",+ "mime-types": "^3.0.2",+ "ms": "^2.1.3",+ "on-finished": "^2.4.1",+ "range-parser": "^1.2.1",+ "statuses": "^2.0.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.1",+ "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-2.2.1.tgz",+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",+ "license": "MIT",+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/set-cookie-parser": {"version": "2.7.2","resolved": "https://registry.npmmirror.com/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",@@ -6397,6 +7664,12 @@"integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==","license": "MIT"},+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC"+ },"node_modules/shebang-command": {"version": "2.0.0","resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",@@ -6420,6 +7693,91 @@"node": ">=8"}},+ "node_modules/shell-quote": {+ "version": "1.8.3",+ "resolved": "https://registry.npmmirror.com/shell-quote/-/shell-quote-1.8.3.tgz",+ "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.0",+ "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.0.tgz",+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3",+ "side-channel-list": "^1.0.0",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.0",+ "resolved": "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.0.tgz",+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/sonner": {"version": "2.0.7","resolved": "https://registry.npmmirror.com/sonner/-/sonner-2.0.7.tgz",@@ -6449,6 +7807,21 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/sprintf-js": {+ "version": "1.0.3",+ "resolved": "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.0.3.tgz",+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",+ "license": "BSD-3-Clause"+ },+ "node_modules/statuses": {+ "version": "2.0.2",+ "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/string_decoder": {"version": "1.1.1","resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",@@ -6458,8 +7831,23 @@"safe-buffer": "~5.1.0"}},- "node_modules/stringify-entities": {- "version": "4.0.4",+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/stringify-entities": {+ "version": "4.0.4","resolved": "https://registry.npmmirror.com/stringify-entities/-/stringify-entities-4.0.4.tgz","integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==","license": "MIT",@@ -6472,6 +7860,19 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/strip-json-comments": {"version": "3.1.1","resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz",@@ -6550,6 +7951,19 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/swr": {+ "version": "2.4.0",+ "resolved": "https://registry.npmmirror.com/swr/-/swr-2.4.0.tgz",+ "integrity": "sha512-sUlC20T8EOt1pHmDiqueUWMmRRX03W7w5YxovWX7VR2KHEPCTMly85x05vpkP5i6Bu4h44ePSMD9Tc+G2MItFw==",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.3",+ "use-sync-external-store": "^1.6.0"+ },+ "peerDependencies": {+ "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },"node_modules/tailwind-merge": {"version": "3.4.0","resolved": "https://registry.npmmirror.com/tailwind-merge/-/tailwind-merge-3.4.0.tgz",@@ -6633,6 +8047,18 @@"integrity": "sha512-LC28VFtjbOyEu5b93K0bNRLw1rQlMJ85lilKsYj6dgTu+7i17W+JCCEbvrpmNHF1F3NAUqDSWq50UD7w9H2xQw==","license": "MIT"},+ "node_modules/throttleit": {+ "version": "2.1.0",+ "resolved": "https://registry.npmmirror.com/throttleit/-/throttleit-2.1.0.tgz",+ "integrity": "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/tinyglobby": {"version": "0.2.15","resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.15.tgz",@@ -6690,6 +8116,25 @@"node": ">=8.0"}},+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/tree-kill": {+ "version": "1.2.2",+ "resolved": "https://registry.npmmirror.com/tree-kill/-/tree-kill-1.2.2.tgz",+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "tree-kill": "cli.js"+ }+ },"node_modules/trim-lines": {"version": "3.0.1","resolved": "https://registry.npmmirror.com/trim-lines/-/trim-lines-3.0.1.tgz",@@ -6756,6 +8201,510 @@"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","license": "0BSD"},+ "node_modules/tsx": {+ "version": "4.21.0",+ "resolved": "https://registry.npmmirror.com/tsx/-/tsx-4.21.0.tgz",+ "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.27.0",+ "get-tsconfig": "^4.7.5"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz",+ "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.27.3.tgz",+ "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz",+ "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.27.3.tgz",+ "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz",+ "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz",+ "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz",+ "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz",+ "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-arm": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz",+ "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz",+ "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-ia32": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz",+ "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-loong64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz",+ "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz",+ "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz",+ "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz",+ "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-s390x": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz",+ "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz",+ "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz",+ "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz",+ "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz",+ "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz",+ "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz",+ "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/sunos-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz",+ "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz",+ "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-ia32": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz",+ "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz",+ "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/esbuild": {+ "version": "0.27.3",+ "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.27.3.tgz",+ "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==",+ "devOptional": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.3",+ "@esbuild/android-arm": "0.27.3",+ "@esbuild/android-arm64": "0.27.3",+ "@esbuild/android-x64": "0.27.3",+ "@esbuild/darwin-arm64": "0.27.3",+ "@esbuild/darwin-x64": "0.27.3",+ "@esbuild/freebsd-arm64": "0.27.3",+ "@esbuild/freebsd-x64": "0.27.3",+ "@esbuild/linux-arm": "0.27.3",+ "@esbuild/linux-arm64": "0.27.3",+ "@esbuild/linux-ia32": "0.27.3",+ "@esbuild/linux-loong64": "0.27.3",+ "@esbuild/linux-mips64el": "0.27.3",+ "@esbuild/linux-ppc64": "0.27.3",+ "@esbuild/linux-riscv64": "0.27.3",+ "@esbuild/linux-s390x": "0.27.3",+ "@esbuild/linux-x64": "0.27.3",+ "@esbuild/netbsd-arm64": "0.27.3",+ "@esbuild/netbsd-x64": "0.27.3",+ "@esbuild/openbsd-arm64": "0.27.3",+ "@esbuild/openbsd-x64": "0.27.3",+ "@esbuild/openharmony-arm64": "0.27.3",+ "@esbuild/sunos-x64": "0.27.3",+ "@esbuild/win32-arm64": "0.27.3",+ "@esbuild/win32-ia32": "0.27.3",+ "@esbuild/win32-x64": "0.27.3"+ }+ },"node_modules/type-check": {"version": "0.4.0","resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz",@@ -6769,6 +8718,20 @@"node": ">= 0.8.0"}},+ "node_modules/type-is": {+ "version": "2.0.1",+ "resolved": "https://registry.npmmirror.com/type-is/-/type-is-2.0.1.tgz",+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",+ "license": "MIT",+ "dependencies": {+ "content-type": "^1.0.5",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/typescript": {"version": "5.8.3","resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.8.3.tgz",@@ -6807,6 +8770,12 @@"typescript": ">=4.8.4 <6.0.0"}},+ "node_modules/underscore": {+ "version": "1.13.7",+ "resolved": "https://registry.npmmirror.com/underscore/-/underscore-1.13.7.tgz",+ "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==",+ "license": "MIT"+ },"node_modules/undici-types": {"version": "6.21.0","resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.21.0.tgz",@@ -6914,6 +8883,15 @@}}},+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/update-browserslist-db": {"version": "1.2.3","resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",@@ -6998,12 +8976,30 @@}}},+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },"node_modules/util-deprecate": {"version": "1.0.2","resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz","integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==","license": "MIT"},+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/vfile": {"version": "6.0.3","resolved": "https://registry.npmmirror.com/vfile/-/vfile-6.0.3.tgz",@@ -7197,6 +9193,49 @@"node": ">=0.10.0"}},+ "node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/xmlbuilder": {+ "version": "10.1.1",+ "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-10.1.1.tgz",+ "integrity": "sha512-OyzrcFLL/nb6fMGHbiRDuPup9ljBycsdCypwuyg5AAHvyWzGfChJpCXMG88AGTIMFhGZ9RccFN1e6lhg3hkwKg==",+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },"node_modules/yallist": {"version": "3.1.1","resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz",@@ -7204,6 +9243,35 @@"dev": true,"license": "ISC"},+ "node_modules/yargs": {+ "version": "17.7.2",+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz",+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },"node_modules/yocto-queue": {"version": "0.1.0","resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",@@ -7217,6 +9285,15 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/zod": {+ "version": "4.3.6",+ "resolved": "https://registry.npmmirror.com/zod/-/zod-4.3.6.tgz",+ "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },"node_modules/zustand": {"version": "5.0.10","resolved": "https://registry.npmmirror.com/zustand/-/zustand-5.0.10.tgz",diff --git a/package.json b/package.jsonindex 1daf6cd..5b0a5c6 100644--- a/package.json+++ b/package.json@@ -5,12 +5,22 @@"type": "module","scripts": {"dev": "vite",+ "dev:full": "concurrently -k -n WEB,API -c cyan,magenta \"npm:dev:web\" \"npm:dev:api\"",+ "dev:web": "vite",+ "dev:api": "tsx watch api/server.ts",+ "start:api": "tsx api/server.ts","build": "tsc -b && vite build","lint": "eslint .","preview": "vite preview","check": "tsc -b --noEmit"},"dependencies": {+ "@ai-sdk/openai": "^2.0.19",+ "@ai-sdk/react": "^2.0.107",+ "@jvmr/pptx-to-html": "^1.0.0",+ "@langfuse/client": "^4.6.0",+ "@langfuse/tracing": "^4.6.0",+ "@opentelemetry/api": "^1.9.0","@radix-ui/react-collapsible": "^1.1.12","@radix-ui/react-context-menu": "^2.2.16","@radix-ui/react-dialog": "^1.1.15",@@ -18,22 +28,30 @@"@radix-ui/react-scroll-area": "^1.2.10","@radix-ui/react-select": "^2.2.6","@radix-ui/react-slot": "^1.2.4",+ "@radix-ui/react-switch": "^1.2.6","@radix-ui/react-tooltip": "^1.2.8","@radix-ui/react-use-controllable-state": "^1.2.2",+ "ai": "^5.0.89","class-variance-authority": "^0.7.1","clsx": "^2.1.1",+ "express": "^5.2.1","framer-motion": "^12.28.1",+ "js-tiktoken": "^1.0.21","lucide-react": "^0.511.0",+ "mammoth": "^1.11.0","motion": "^12.28.1","openai": "^6.16.0",+ "pako": "^2.1.0","pdf-lib": "^1.17.1",- "@jvmr/pptx-to-html": "^1.0.0","pptxgenjs": "^4.0.1","prism-react-renderer": "^2.4.1","react": "^18.3.1","react-dom": "^18.3.1",+ "react-drawio": "^1.0.7",+ "react-icons": "^5.5.0","react-markdown": "^10.1.0","react-resizable-panels": "^4.4.1",+ "react-resizable-panels-v3": "npm:react-resizable-panels@^3.0.6","react-router-dom": "^7.3.0","remark-gfm": "^4.0.1","sonner": "^2.0.7",@@ -41,24 +59,29 @@"tailwindcss-animate": "^1.0.7","three": "^0.161.0","unpdf": "^1.4.0",+ "zod": "^4.3.6","zustand": "^5.0.3"},"devDependencies": {"@eslint/js": "^9.25.0","@tailwindcss/typography": "^0.5.19",+ "@types/express": "^5.0.6","@types/node": "^22.15.30",+ "@types/pako": "^2.0.4","@types/react": "^18.3.12","@types/react-dom": "^18.3.1","@types/three": "^0.182.0","@vitejs/plugin-react": "^4.4.1","autoprefixer": "^10.4.23","babel-plugin-react-dev-locator": "^1.0.0",+ "concurrently": "^9.2.1","eslint": "^9.25.0","eslint-plugin-react-hooks": "^5.2.0","eslint-plugin-react-refresh": "^0.4.19","globals": "^16.0.0","postcss": "^8.5.6","tailwindcss": "^3.4.19",+ "tsx": "^4.21.0","typescript": "~5.8.3","typescript-eslint": "^8.30.1","vite": "^6.3.5",diff --git a/public/animated_connectors.svg b/public/animated_connectors.svgnew file mode 100644index 0000000..5141cd1--- /dev/null+++ b/public/animated_connectors.svg@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?>+<!-- Do not edit this file with editors other than draw.io -->+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">+<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="768px" height="690px" viewBox="0 0 768 690" content="<mxfile host="embed.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36" version="29.0.3" scale="1" border="0"> <diagram id="eaik5y50dQ0O8iVm0mOH" name="Page-1"> <mxGraphModel dx="1024" dy="739" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" /> <mxCell id="title" value="Transformer Architecture" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="314" y="20" width="200" height="30" as="geometry" /> </mxCell> <mxCell id="input_embed" value="Input Embedding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="80" y="80" width="120" height="40" as="geometry" /> </mxCell> <mxCell id="pos_enc_left" value="Positional Encoding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="80" y="140" width="120" height="40" as="geometry" /> </mxCell> <mxCell id="encoder_box" value="ENCODER" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;verticalAlign=top;fontSize=12;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="60" y="200" width="160" height="280" as="geometry" /> </mxCell> <mxCell id="mha_enc" value="Multi-Head&#xa;Attention" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="80" y="230" width="120" height="50" as="geometry" /> </mxCell> <mxCell id="add_norm1_enc" value="Add &amp; Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="80" y="300" width="120" height="35" as="geometry" /> </mxCell> <mxCell id="ff_enc" value="Feed Forward&#xa;Network" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="80" y="355" width="120" height="50" as="geometry" /> </mxCell> <mxCell id="add_norm2_enc" value="Add &amp; Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="80" y="425" width="120" height="35" as="geometry" /> </mxCell> <mxCell id="output_embed" value="Output Embedding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="80" width="120" height="40" as="geometry" /> </mxCell> <mxCell id="pos_enc_right" value="Positional Encoding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="140" width="120" height="40" as="geometry" /> </mxCell> <mxCell id="decoder_box" value="DECODER" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;verticalAlign=top;fontSize=12;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="608" y="200" width="160" height="360" as="geometry" /> </mxCell> <mxCell id="masked_mha_dec" value="Masked Multi-Head&#xa;Attention" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="230" width="120" height="50" as="geometry" /> </mxCell> <mxCell id="add_norm1_dec" value="Add &amp; Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="300" width="120" height="35" as="geometry" /> </mxCell> <mxCell id="cross_attn" value="Multi-Head&#xa;Cross-Attention" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="355" width="120" height="50" as="geometry" /> </mxCell> <mxCell id="add_norm2_dec" value="Add &amp; Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="425" width="120" height="35" as="geometry" /> </mxCell> <mxCell id="ff_dec" value="Feed Forward&#xa;Network" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="480" width="120" height="50" as="geometry" /> </mxCell> <mxCell id="add_norm3_dec" value="Add &amp; Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="550" width="120" height="35" as="geometry" /> </mxCell> <mxCell id="linear_softmax" value="Linear &amp; Softmax" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#b0e3e6;strokeColor=#0e8088;fontSize=11;" parent="1" vertex="1"> <mxGeometry x="628" y="600" width="120" height="40" as="geometry" /> </mxCell> <mxCell id="output_prob" value="Output Probabilities" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontSize=11;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="628" y="660" width="120" height="40" as="geometry" /> </mxCell> <mxCell id="nx_enc" value="Nx" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1;fontColor=#9673a6;" parent="1" vertex="1"> <mxGeometry x="30" y="325" width="30" height="30" as="geometry" /> </mxCell> <mxCell id="nx_dec" value="Nx" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1;fontColor=#d79b00;" parent="1" vertex="1"> <mxGeometry x="768" y="380" width="30" height="30" as="geometry" /> </mxCell> <mxCell id="conn1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#6c8ebf;flowAnimation=1;" parent="1" source="input_embed" target="pos_enc_left" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#9673a6;flowAnimation=1;" parent="1" source="pos_enc_left" target="mha_enc" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" parent="1" source="mha_enc" target="add_norm1_enc" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" parent="1" source="add_norm1_enc" target="ff_enc" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" parent="1" source="ff_enc" target="add_norm2_enc" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="res1_enc" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" parent="1" source="mha_enc" target="add_norm1_enc" edge="1"> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="50" y="255" /> <mxPoint x="50" y="318" /> </Array> </mxGeometry> </mxCell> <mxCell id="res2_enc" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" parent="1" source="ff_enc" target="add_norm2_enc" edge="1"> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="50" y="380" /> <mxPoint x="50" y="443" /> </Array> </mxGeometry> </mxCell> <mxCell id="conn6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#6c8ebf;flowAnimation=1;" parent="1" source="output_embed" target="pos_enc_right" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#d79b00;flowAnimation=1;" parent="1" source="pos_enc_right" target="masked_mha_dec" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" parent="1" source="masked_mha_dec" target="add_norm1_dec" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" parent="1" source="add_norm1_dec" target="cross_attn" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" parent="1" source="cross_attn" target="add_norm2_dec" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" parent="1" source="add_norm2_dec" target="ff_dec" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" parent="1" source="ff_dec" target="add_norm3_dec" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#0e8088;flowAnimation=1;" parent="1" source="add_norm3_dec" target="linear_softmax" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="conn14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#10739e;flowAnimation=1;" parent="1" source="linear_softmax" target="output_prob" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="res1_dec" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" parent="1" source="masked_mha_dec" target="add_norm1_dec" edge="1"> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="778" y="255" /> <mxPoint x="778" y="318" /> </Array> </mxGeometry> </mxCell> <mxCell id="res2_dec" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" parent="1" source="cross_attn" target="add_norm2_dec" edge="1"> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="778" y="380" /> <mxPoint x="778" y="443" /> </Array> </mxGeometry> </mxCell> <mxCell id="res3_dec" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" parent="1" source="ff_dec" target="add_norm3_dec" edge="1"> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="778" y="505" /> <mxPoint x="778" y="568" /> </Array> </mxGeometry> </mxCell> <mxCell id="cross_conn" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=3;strokeColor=#FF6B6B;flowAnimation=1;" parent="1" source="add_norm2_enc" target="cross_attn" edge="1"> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="400" y="443" /> <mxPoint x="400" y="380" /> </Array> </mxGeometry> </mxCell> <mxCell id="cross_label" value="Encoder Output" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;fontColor=#FF6B6B;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="340" y="360" width="100" height="20" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> </mxfile> "><defs><style>@keyframes ge-flow-animation-ovZuRisJHGu6I_LNZolY {
 to {
 stroke-dashoffset: 0;
 }
}</style></defs><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(#ffffff, var(--ge-dark-color, #121212));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="title"><g transform="translate(0.5,0.5)"><rect x="284" y="9" width="200" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 198px; height: 1px; padding-top: 24px; margin-left: 285px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 20px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Transformer Architecture</div></div></div></foreignObject><image x="285" y="0.5" width="198" height="53" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxgAAADUCAYAAAAfv4U2AAAQAElEQVR4AeydBbw8SXW2LwGCLMHdgy9uwRe3QIAgG9zdHRZncZfgTnCXxd3dnUU/IFhwgm9Yvve53P7v3LndPXWqq23mvb9Tt1qqTlU93TNTp/QftvxnAiZg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qUzABEzABExgYAI2MAYG7uRMwARMwARMwARMAAJ2JrCuBGxgrOuTdblMwARMwARMwARMwARMYAQCa2BgjEDNSZqACZiACZiACZiACZiACdQSsIFRi8UXTcAEihCwEhMwARMwARMwgY0jYANj4x65C2wCJmACJmACW1tmYAImYAJ9EbCB0RdZ6zUBEzABEzABEzABEzCBOIHZx7CBMftH6AKYgAmYgAmYgAmYgAmYwHQI2MCYzrNwTkoTsD4TMAETMAETMAETMIHBCdjAGBy5EzQBEzABEzABEzABEzCB9SVgA2N9n61LZgImYAImYAImYAJRAg5vAp0J2MDojNAKTMAETMAETMAETMAETMAEKgI2MCoSpX3rMwETMAETMAETMAETMIENJGADYwMfuotsAptOwOU3ARMwARMwARPoj4ANjP7YWrMJmIAJmIAJmECMgEObgAmsAQEbGGvwEF0EEzABEzABEzABEzABE+iXQLp2GxjprBzSBEzABEzABEzABEzABExgBQEbGCsA+bYJlCZgfSZgAiZgAiZgAiawzgRsYKzz03XZTMAETMAEIgQc1gRMwARMoAABGxgFIFrFJAkcU7k6S6ZTNIsJFCdwbGl8gNwDE92VFc5iAiZgAiawTcD/5kTABsacnpbzGiFwSwX+WqY7j+JZpkXg/MrO3wLuQIWdmpxGGXqI3MGJ7kYKZzEBEzABEzCB2RGwgTG7R9YtwxsUu0vl7NobxGkuRd0vmNFjBcM7uAmYgAmYgAmYQCECNjAKgbSaSRE4q3JzXrlcuakiHlnOYgJDEnBaJmACJmACJrAWBGxgrMVjdCGWCHQdHnNi6TtAzmICcyJwV2X2hYnu3gpnmS6Boyhrz5BLfZ5XUVhLrwSs3ARMIELABkaElsPOgQDv9C0KZNTDpApAtIpBCVxTqd040f2HwlmmS+Coytpt5FKf50UV1mICJmACkyFAZWywzDghExiAwIWUxinlusr1peDochYTMAETMAETMAETMIEAARsYAVgOOgsC1ymUy3+SnivIbYq4nCZgAiZgAiZgAiZQhIANjCIYrWQiBP5R+biJXCm5XilF1mMCJmAC+QQc0wRMwATmRcAGxryel3PbTuByuk3P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EzABEzCBgQg4mXQCNjDSWTmkCZiACZiACZiACZiACZjACgI2MFYA8u3SBKzPBEzABEzABEzABExgnQnYwFjnp+uymYAJmECEgMOagAmYgAmYQAECNjAKQLQKEzABEzABEzABE+iTgHWbwJwI2MCY09NyXk3ABEzABEzABEzABExg4gQ2zMCY+NNw9kzABEzABEzABEzABExg5gRsYMz8ATr7JrA2BFwQEzABEzABEzCBtSBgA2MtHqMLYQImYAImYAL9EbBmEzABE4gQsIERoeWwJmACJmACJmACJmACJjAdApPMiQ2MST4WZ8oETMAETMAETMAETMAE5knABsY8n5tzXZqA9ZmACZiACZiACZiACRQhYAOjCEYrMQETMAET6IuA9ZqACZiACcyLgA2MeT0v59YETMAETMAETMAEpkLA+TCBWgI2MGqx+KIJmIAJmIAJmIAJmIAJmEAOARsYOdRKx7E+EzABEzABEzABEzABE1gTAjYw1uRBuhgmYAL9ELBWEzABEzABEzCBGAEbGDFeDm0CJmACJmACJjANAs6FCZjARAnYwJjog3G2TMAETMAETMAETMAETGCOBP5ha465dp5NwARMwARMwARMwARMwAQmScA9GJN8LM6UCfydgP+bgAmYgAmYgAmYwNwI2MCY2xNzfk3ABEzABKZAwHkwARMwARNoIGADowGML5uACZiACZiACZiACcyRgPM8NgEbGGM/AadvAiZgAiZgAiZgAiZgAmtEwAbGGj3M0kWxPhMwARMwARMwARMwAROIErCBESXm8CZgAiYwPgHnwARMwARMwAQmS8AGxmQfjTNmAiZgAiZgAiYwPwLOsQmYgA0MvwMmYAImYAImYAImYAImYALFCEzWwChWQisyARMwARMwARMwARMwARMYjIANjMFQOyETWBsCLogJmIAJmIAJmIAJNBKwgdGIxjdMwARMwARMYG4EnF8TMAETGJ+ADYzxn4FzYAImYAImYAImYAImsO4ENqh8NjA26GG7qCZgAiZgAiZgAiZgAibQNwEbGH0Ttv7SBKzPBEzABEzABEzABExgwgRsYEz44ThrJmACJjAvAs6tCZiACZiACWxt2cDwW2ACJmACJmACJmAC607A5TOBAQnYwBgQtpMyARMwARMwARMwARMwgXUnYAMj9oQd2gRMwARMwARMwARMwARMoIWADYwWOL5lAiYwJwLOqwmYgAmYgAmYwBQI2MCYwlNwHkzABEzABExgnQm4bCZgAhtFwAbGRj1uF9YETMAETMAETMAETMAEjiDQx9H/BwAA///xFPMnAAAABklEQVQDADB2dD/rABbiAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="input_embed"><g transform="translate(0.5,0.5)"><rect x="50" y="69" width="120" height="40" rx="6" ry="6" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 89px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Input Embedding</div></div></div></foreignObject><image x="51" y="83" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AeydBbg0v1XGBy9e3LU4f6xQKNoWKS1SoIJTeHApBdri7oW6u7dP3d3d3d3d3fX93d7sc+65mZnM7uz3ze6+90lu7CSbvMnkRE6ST+z8ZwSMgBEwAkbACMyOgBns7JA6QSNgBIyAETACXWcGu0krcFwjYASMgBEwAj0ImMH2AGNvI2AEjIARMAKbIGAGuwl6jrsJAo5rBIyAEdhrBMxg97p6XTgjYASMgBE4WwiYwZ4t5P27RmATBBzXCBiBxSNgBtteRZ8r0nMH/amyWy0bgXMpe7HO5rR/utLeBfW1yuS3BP0psh+S+n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5SacD42QcBxjYARMAKLQ8AMdnFV4gwZASNgBIzAPiBgBrsPtegyGIFNEHBcI2AEtoKAGexWYHWiRsAIGAEjcOgImMEeegtw+Y2AEdgEAcc1Ar0ImMH2QuMAI2AEjIARMALrI2AGuz52jmkEjIARMAKbILDncT8GAAD//0GoSygAAAAGSURBVAMAIp3arO0l5S4AAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="pos_enc_left"><g transform="translate(0.5,0.5)"><rect x="50" y="129" width="120" height="40" rx="6" ry="6" fill="#fff2cc" stroke="#d6b656" pointer-events="all" style="fill: light-dark(rgb(255, 242, 204), rgb(40, 29, 0)); stroke: light-dark(rgb(214, 182, 86), rgb(109, 81, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 149px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Positional Encoding</div></div></div></foreignObject><image x="51" y="143" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AezdBZh9QVUA8KdiImB3YOcnBgYqChYGdqBiK6JiCyLY2NhdYIKJiIoBit2Kjd3d3QXnt7t3//POzr3v3t33dt/bPfvN2alz5849E+fMmTPznnpVf0WBokBRoChQFCgKbJ0CxWC3TtIqsChQFCgKFAWKAqtVMdiL9IJ6tihQFCgKFAWKAiMUKAY7QphKLgoUBYoCRYGiwEUoUAz2ItSrZy9CgXq2KFAUKApcawoUg73WzVsfVxQoChQFigJXRYFisFdF+XpvUeAiFKhniwJFgb2nwCEz2GcI6j7LOe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z6u1XvQhhQ/n6FJsDqubz1lvZ+wpsKdhcWJAA30igGerL2puNwxDn1woWFQqKAkWBokBR4MZTwKqcBmAAWjfnhecQhrYs423amsn4exGvFexeNENVYgkFCrcoUBTYewrYFrClNID9bBqrTRWnkqfab/Fo8qjI27SDCBeDPYhmqkoWBYoCRYGDooDz0bnC7BaePSc2cbYZzgO3R5NkO77HPzgoBntwTVYVLgpchAL1bFHgUijAXgOzbF9mX9WPnDAMdVrC7U3sShhSPjQQGTraf43gqbNH27uw5xRhnwPFYPe5dapuRYGiQFHgcCngZrNshInJMgxj9Of2JoaibslzhMdtbvlrGRIyLMzpBxEvBnsQzVSVLAoUBfaBAlWHRRRgXX23RU/cQnaKwHWRjjLdSj2wUDHYA2uwqm5RoChQFDggCjgzzHCJCjivZnufAcedzO4szj9518Pf67RisHvdPFW5okBRoChw8BTwi1QPXK1W7oR26Ylfo3Jvt/Pk1MPCLhhxoQ0DJ3c1H+S519xSxWAzRSpeFCgKFAWKAruggJvcMFUMFZPFbN37LOzSfxfaHOx+a49gxWB7VKm0okBRoChQFCgKXJAC22SwF6xKPV4UKAoUBYoCRYHrQ4FisNenLetLigJFgaJAUWCPKFAMdl8ao+pRFCgKFAWKAteKAsVgr1Vz1scUBYoCRYGiwL5QoBjsvrRE1eMiFKhniwJFgaLA3lGgGOzeNUlVqChQFCgKFAWuAwWKwV6HVqxvKApchAL1bFGgKLATChSD3QlZq9CiQFGgKFAUuOkUKAZ703tAfX9RoChwEQrUs0WBUQoUgx0lTWUUBYoCRYGiQFHg/BQoBnt+2tWTRYGiQFGgKHARClzzZ58CAAD//1G8n/QAAAAGSURBVAMAr3TouzqGsVEAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="encoder_box"><g transform="translate(0.5,0.5)"><rect x="30" y="189" width="160" height="280" rx="24" ry="24" fill="#e1d5e7" stroke="#9673a6" pointer-events="all" style="fill: light-dark(rgb(225, 213, 231), rgb(57, 47, 63)); stroke: light-dark(rgb(150, 115, 166), rgb(149, 119, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 196px; margin-left: 31px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">ENCODER</div></div></div></foreignObject><image x="31" y="196.5" width="158" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAngAAABECAYAAAASsEjFAAAQAElEQVR4AeydC9R1QxnH39LNpZQUCiW3IkqrLKVSKpdQSi6FqCRqEbWSECG5dCOWQsg9pYXcipVUpKWQslqiKLq4VhQVRf/f13te5zv2zOy9z5x9ztn7bz3PO/vMM/PMzG8f7/t8s2dmP37G/5mACZiACZiACZiACbSKgAO8Vt1OD8YETMAEchGwHxMwgWkm4ABvmu+e+24CJmACJmACJmACBQQc4BVAcVYeAvZiAiZgAiZgAiYwHgIO8MbD3a2agAmYgAmYQFcJeNwNEHCA1wBkN2ECJmACJmACJmACTRJwgNckbbdlAiaQh4C9mIAJmIAJRAk4wIvisdEETKAlBBbROJaWLiddTPoEqcUETMAEWkugqwFea2+oB5aVAEHAEvI4an2i2iiShZUZa3sh2atKbEyLVnU2UP45+ryN9ADpMdJzpN+RniL9vHQPKfbnKh2lrCjnO0hPk94mfUT6dynXNyu9R/qQ9D7p96X7SNeRwkZJLVlctWL3Kmaj7oKqn0ueJUex9nLY+G6qmUJ5tnKHbYMgfAH5sZiACdQk4ACvJjhX6wSBrTTK2xvQndRGkZyhzFj735C9qsTGdFVVZypPcPpepddJ/yglmPuk0h2lb5WuLyWo+4jSQ6XY/6CUtvZUupQ0l6wlR9+W3ig9TvouKbN2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nmYAJmIAJmIAJmMA0E3CAN813z33PQ8BeTMAETMAETKBlBBzgteyGejgmYAImYAImYAJ5CEyzFwd403z33HcTMAETMAETMAETKCDgAK8AirNMwARMIA8BezEBEzCB8RBwgDce7m7VBEzABEzABEzABEZGwAHeyNDmcWwvJmACJmACJmACJlCVgAO8qsRc3gRMwARMwATGT8A9MIEoAQd4UTw2moAJmIAJmIAJmMD0EXCAN333zD02gTwE7MUETMAETKC1BBzgtfbWemAmYAImYAImYAJdJfA/AAAA//8BW4ucAAAABklEQVQDAIFR5Kf8Wf4UAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="mha_enc"><g transform="translate(0.5,0.5)"><rect x="50" y="219" width="120" height="50" rx="7.5" ry="7.5" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 244px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Multi-Head<br />Attention</div></div></div></foreignObject><image x="51" y="231.5" width="118" height="28.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAABzCAYAAAA7dRMAAAAQAElEQVR4AeydB9R0VXWGP2OvscSKBbvRJYggWBALYkmsYEOwBQsqIYBKFEEFsa9AXOASiUFAwQpYIqISYkFRBCyL2EsESzQqWBERzft8/3eHM3vOuXNn7rQ78/5r7++cs09/7/x337NP+6s1/zMCRsAIGAEjYAQmjoAV7MQhdYFGw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W31dFdS0zycoQ1om/mHK6VPKs5WY+dZXyMX0Cy4o3TMU5iMI+X3k30xM/LAFXxw8Qd0pf0N5mxA4pPnwg1eTvE5jBEZGwAp2ZMgWLYPbMwQBDovnZX6S0rGXlhd83UiaUQ77OTlXmFH36crHS33Yi598zGkeq/R7i1HkHCCBqZxVx8wpDlNIyjYXou3j9LlJY/nQYRsSi58YoYILFg4+enZTAcj5IFtUbNREkxEYDwEr2PFwcy4jYASMgBEwArUIWMHWwuPIZUfA/TMCRsAITAsBK9hpIetyjYARMAJGYKURsIJd6cfvzhuBNgg4rxEwAnUIWMHWoeM4I2AEjIARMAJjImAFOyZwzmYEjIARaIOA8y4/Alawy/+M3UMjYASMgBGYAwJWsHMA3VUaASNgBIxAGwS6kdcKthvPya00AkbACBiBjiFgBduxB+bmGgEjYASMQDcQWFQF2w303EojYASMgBEwAgUErGALwFhsBIyAETACRqANAlawbdBb1LxulxEwAkbACMwdASvYuT8CN8AIGAEjYASWEQEr2GV8qu5TGwSc1wgYASMwEQSsYCcCowsxAkbACBgBI9CPgBVsPx4OGQEj0AYB5zUCRqCHgBVsDwp7jIARMAJGwAhMDgEr2Mlh6ZKMgBEwAm0QcN4lQ8AKdskeqLtjBIyAETACi4GAFexiPAe3wggYASNgBNogsIB5/x8AAP//nwLpBAAAAAZJREFUAwAlJ3kjQBbXygAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="add_norm1_enc"><g transform="translate(0.5,0.5)"><rect x="50" y="289" width="120" height="35" rx="5.25" ry="5.25" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 307px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Add & Norm</div></div></div></foreignObject><image x="51" y="301" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AeydB7QsRRGG14xixow5ZxEjmLNiFhPmrGAW9ZgQUTGncxSzGDEDRlTEgAmFY8accxYwY/6/e97c11u3ZndmZ8Ps7v9O1+3u6jTzz7yprurq3lMO/M8IGAEjYASMgBGYOgIWsFOH1B0aASNgBIyAERgMLGC7vAVuawSMgBEwAkagBgEL2BpgzDYCRsAIGAEj0AUBC9gu6LltFwTc1ggYASOw0ghYwK704/XNGQEjYASMwKIQsIBdFPIe1wh0QcBtjYAR6D0CFrC9f0Qzv8AdNMJZA51Z+UWE82vQSxd0OqWnGbjXsv+dp9l5g774/wY1qDqTKqdVr9N+1jyjss8zaAwHI2AEhMAi/7NreIceIPAmXcMJgU5SfifRvMPRGvBbBd1C6WmG26mzsv8jlZ9l4P/XPTTAG0RfFP1nG31V8ZtFdxLNM7xMg2XP+jriTxoOUsOyz+8o3/fg6zMCc0GAD8BcBvIgvUTgnLqquo/8nipzmByBy6npp0QI0nsr3lVUhSsqgeB9p+IjRBcQzSOcpmaQ14qPJqqodTh1aIGWHFjOGoH1RMACdj2fe3XXdcKV8vvyxzQRAhdVq+NF1xKNC2jpH1ClRQqmS2r8x4gcjMB4BFyjMQIWsI2hWsmK9x9xV9dU2cVFDu0QOJWqYxJWtCV8V5xvimJAo31iZM45/yyN5+ctEByMwLQQsICdFpLL1w8f9dJsmd3BXhnTvJEI3FylcU3zQ+KdTXQpEabjqyr+uagM+5SZBaVZo13Q0B7WCKweAomAXb2b9B2lCLAGmBYUzPsofQqRQ3MErhKqIkhxrjqx4O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hKva66hIn4RSM3HBtb1qzbEeJ2PbaQKnAxG/Yq4ZrFHBtaWq/pVnAndkZ24cDkQsIBdyHNaq0H5GTrWRTFbcwD+brp7tDy0Wz6qCGKxJg6YpNnbyzoep0shNHGkwtsVZxyE6sSdT9gQDR5zL17baKNsmUKgPFb9oamjxbGWrOxaB5zuwAPNn8kW1heEJFjxfjDBAsu1Bsk3v7wIWMAu77PzlRsBI2AEjECPEbCA7fHD8aXlCJhrBIyAEVgGBCxgl+Ep+RqNgBEwAkZg6RCwgF26R+YLNgJdEHBbI2AE5oWABey8kPY4RsAIGAEjsFYIWMCu1eP2zRoBI9AFAbc1Am0QsIBtg5brGgEjYASMgBFoiIAFbEOgXM0IGAEjYAS6ILB+bS1g1++Z+46NgBEwAkZgDghYwM4BZA9hBIyAETAC64fANAXs+qHnOzYCRsAIGAEjUIOABWwNMGYbASNgBIyAEeiCgAVsF/Sm2dZ9GQEjYASMwEohYAG7Uo/TN2MEjIARMAJ9QcACti9PwtfRBQG3NQJGwAj0DgEL2N49El+QETACRsAIrAICFrCr8BR9D0agCwJuawSMwEwQsICdCazu1AgYASNgBNYdAQvYdX8DfP9GwAh0QcBtjUAtAhawtdC4wAgYASNgBIzA5AhYwE6OnVsaASNgBIxAFwRWvO3/AQAA//9En9ZjAAAABklEQVQDAG2wop2o/4syAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="ff_enc"><g transform="translate(0.5,0.5)"><rect x="50" y="344" width="120" height="50" rx="7.5" ry="7.5" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 369px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Feed Forward<br />Network</div></div></div></foreignObject><image x="51" y="356.5" width="118" height="28.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAABzCAYAAAA7dRMAAAAQAElEQVR4AeydBbg0SXWGhyCLa9DgENjgwd3dXYK7Q3BbFnd3dx6Cu7smuDtBggZncVjse+9/a/bM+aunu0d75n73qXOr6tSp6uqvevpUnZL+p5H/jIARMAJGwAgYgYUjYAW7cEhdoBEwAkbACBiB0cgKdp6nwHmNgBEwAkbACDQgYAXbAIzZRsAIGAEjYATmQcAKdh70nHceBJzXCBgBI7DVCFjBbnXz+uaMgBEwAkZgXQhYwa4LeV/XCMyDgPMaASMweASsYIfbREdQ1Y69BDqqyrQ7DIHjKnhgoOMovCh3dBW0jDY8vMq129sInFS3H5/bAxS3GxgCVrADa5BQnTsq/Msl0NdUpt1hCDxMwa8Eur/Ci3K/UUHLaMPrqVy72RHYhpwf0E3E5/ZyitsNDAEr2IE1SKgOI9gQXVjwSAsryQWtC4FlPRvruh9f1whsJQJWsFvZrL4pI2AEjMCSEHCxnRGwgu0MlQWNgBEwAkbACHRHwAq2O1ZDkHyQKnGZOekqym+3HgS+r8vO237kf7PKsTMCRmDgCFQU7MBrvLer9yHd/jvnpI8qv916EPg/XXbe9iP/z1SOnREwAgNHwAp24A3k6hkBI2AEjMBmImAFu+B22+Lilv2sLLv8LW6aqbfGiuMTSeLUIvbkyluaO6JKPpxok9yRVVn2K8tbqttEbJYKyF4o3C+1vdDK/e+RF/ENle21om+K/i76lejXok+JHi86p2hWx0v/Csr8DBH7cimX8rnOl8R7iYh9fbyUFOztSv1fqZwfF3EP35P/HtHTRecVbbPjEIL76Aa590Pl/0gEBuzJBQfa9WDxTinq4i4goYMCXULh4k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k1xdB21i3zpJg7+TRcl5EXMpiW2SeKebitjhztyCfZ2uRyOnO6+es6yNRG3PAL1RTwm0tiB582YIU0o72agq8VAQ5sc2ozwXIgRs5PJyfzusRZ0DRNjlH+bSoCmLivX+GbZQSWgoAV7FJgdaEdEGBej1WqhU7YIc80EQ4fKGUVv+tWExQXR+th9mQ1Mecbw+NAC0ZDmERZjco5xqyQZSHStLqUNF70zLeyMIq5y2sqgTldFHr+Io+SJhynS5X7KP5XJyT2j7xcrCJbfA6/F7uzQ+kx0uOwfo5aZBTOKJiV0pi8Wa3M9185UetAlcoHBTCnKzjVgWWpU/G7bG+is1Hki/+lqVfal4h5v8hHn0Vp+yT83wgsGQEr2CUDvPzifYUFIcCo6DMqqygPlCCHNbDQh1XHjJKZV5VIb8dImtElh+2zgAnlzUKr3gWtMAOjWeaCWfx0VV2XowlZBX15hUsnZNrWH4nZGYG9jYAV7N5uf9+9ETACRsAILAkBK9glAetiNwMB19IIGAEjsCwErGCXhazLNQJGwAgYgT2NgBXsnm5+37wRmAcB5zUCRmAaAlaw09BxmhEwAkbACBiBGRGwgp0ROGczAkbACMyDgPNuPwJWsNvfxr5DI2AEjIARWAMCVrBrAN2XNAJGwAgYgXkQ2Iy8VrCb0U6upREwAkbACGwYAlawG9Zgrq4RMAJGwAhsBgJDVbCbgZ5raQSMgBEwAkagAQEr2AZgzDYCRsAIGAEjMA8CVrDzoDfUvK6XETACRsAIrB0BK9i1N4ErYASMgBEwAtuIgBXsNraq72keBJzXCBgBI7AQBKxgFwKjCzECRsAIGAEjMImAFewkHo4ZASMwDwLOawSMwBgBK9gxFA4YASNgBIyAEVgcAlawi8PSJRkBI2AE5kHAebcMASvYLWtQ344RMAJGwAgMAwEr2GG0g2thBIyAETAC8yAwwLz/AAAA//+0ErGRAAAABklEQVQDAMIRxDIQg8duAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="add_norm2_enc"><g transform="translate(0.5,0.5)"><rect x="50" y="414" width="120" height="35" rx="5.25" ry="5.25" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 432px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Add & Norm</div></div></div></foreignObject><image x="51" y="426" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AeydB7QsRRGG14xixow5ZxEjmLNiFhPmrGAW9ZgQUTGncxSzGDEDRlTEgAmFY8accxYwY/6/e97c11u3ZndmZ8Ps7v9O1+3u6jTzz7yprurq3lMO/M8IGAEjYASMgBGYOgIWsFOH1B0aASNgBIyAERgMLGC7vAVuawSMgBEwAkagBgEL2BpgzDYCRsAIGAEj0AUBC9gu6LltFwTc1ggYASOw0ghYwK704/XNGQEjYASMwKIQsIBdFPIe1wh0QcBtjYAR6D0CFrC9f0Qzv8AdNMJZA51Z+UWE82vQSxd0OqWnGbjXsv+dp9l5g774/wY1qDqTKqdVr9N+1jyjss8zaAwHI2AEhMAi/7NreIceIPAmXcMJgU5SfifRvMPRGvBbBd1C6WmG26mzsv8jlZ9l4P/XPTTAG0RfFP1nG31V8ZtFdxLNM7xMg2XP+jriTxoOUsOyz+8o3/fg6zMCc0GAD8BcBvIgvUTgnLqquo/8nipzmByBy6npp0QI0nsr3lVUhSsqgeB9p+IjRBcQzSOcpmaQ14qPJqqodTh1aIGWHFjOGoH1RM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awK/Igi9tAS+DwhZKyfYRFk8ZJPihlv1Uak2/shLXJF4nJz7HhMYrZD7Mt13eo+JSxhxInnqOVJ/BLLVWfxOO0YDxa2S6EFzFOQ5inEVZ4rR6sDulvZ8V7ixCmHF9IvxWhOapoqoF74+cBEeiYz9E80cwRKDjnoKmjxbHFid8qBdN4AbSprrGMs7Xn2HZUHtN62V/XoyN5r8r+SCM8R10DZTjCoanzKzvggebPDxtwf6zVgxXvxx6qvKOIpYUmwhKva66hIn4RSM3HBtb1qzbEeJ2PbaQKnAxG/Yq4ZrFHBtaWq/pVnAndkZ24cDkQsIBdyHNaq0H5GTrWRTFbcwD+brp7tDy0Wz6qCGKxJg6YpNnbyzoep0shNHGkwtsVZxyE6sSdT9gQDR5zL17baKNsmUKgPFb9oamjxbGWrOxaB5zuwAPNn8kW1heEJFjxfjDBAsu1Bsk3v7wIWMAu77PzlRsBI2AEjECPEbCA7fHD8aXlCJhrBIyAEVgGBCxgl+Ep+RqNgBEwAkZg6RCwgF26R+YLNgJdEHBbI2AE5oWABey8kPY4RsAIGAEjsFYIWMCu1eP2zRoBI9AFAbc1Am0QsIBtg5brGgEjYASMgBFoiIAFbEOgXM0IGAEjYAS6ILB+bS1g1++Z+46NgBEwAkZgDghYwM4BZA9hBIyAETAC64fANAXs+qHnOzYCRsAIGAEjUIOABWwNMGYbASNgBIyAEeiCgAVsF/Sm2dZ9GQEjYASMwEohYAG7Uo/TN2MEjIARMAJ9QcACti9PwtfRBQG3NQJGwAj0DgEL2N49El+QETACRsAIrAICFrCr8BR9D0agCwJuawSMwEwQsICdCazu1AgYASNgBNYdAQvYdX8DfP9GwAh0QcBtjUAtAhawtdC4wAgYASNgBIzA5AhYwE6OnVsaASNgBIxAFwRWvO3/AQAA//9En9ZjAAAABklEQVQDAG2wop2o/4syAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="output_embed"><g transform="translate(0.5,0.5)"><rect x="598" y="69" width="120" height="40" rx="6" ry="6" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 89px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Output Embedding</div></div></div></foreignObject><image x="599" y="83" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AezdB7hsMVEA4LV3bCj2rtgbdkGxoaICil0BsWAXEEFU7CIoFlQsiFhQ7GLHhmJBVOwFe++99z7/fS+X3Lycdnf3vt2zs19mk0zKSeYkmWQyyXn6Tf6SAkmBpEBSICmQFNg5BZLB7pykmWFSICmQFEgKJAU2m2Sw27SCTJsUSAokBZICSYEBCiSDHSBMopMCSYGkQFIgKbANBZLBbkO9TLsNBTJtUiApkBRYNQWSwa769WblkgJJgaRAUuBmUSAZ7M2ifD43KbANBTJtUiApcPAUOHUGq/6vH2/pkwIeE/CDAb9RwY+G+xsCPifgTgHPFZDmtCjwrFHd59kTPFvkewzmpaKQr1jBM4X7lMzzRWXr+j9v+Hdtbh0Zlme8fLh75lkCWbfFY2k/UezTNBjMKdb8+aPSDwn4g4CfDPjEgLsFvHnAK1Rwu3C/a8B9A7494B8DvivgLQLSnAYFvjGq+Xd7Am0qsj5483tRwl+r4E3DfcxmadkfHAnq+n98+HdpXiwy+/WA8ozfDPcLBLTmSwJRt8VjaT9R7NM0p8hg3zFe9a8GPDBAww5rkXm7iP2EA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></switch></g></g></g><g data-cell-id="pos_enc_right"><g transform="translate(0.5,0.5)"><rect x="598" y="129" width="120" height="40" rx="6" ry="6" fill="#fff2cc" stroke="#d6b656" pointer-events="all" style="fill: light-dark(rgb(255, 242, 204), rgb(40, 29, 0)); stroke: light-dark(rgb(214, 182, 86), rgb(109, 81, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 149px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Positional Encoding</div></div></div></foreignObject><image x="599" y="143" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AezdBZh9QVUA8KdiImB3YOcnBgYqChYGdqBiK6JiCyLY2NhdYIKJiIoBit2Kjd3d3QXnt7t3//POzr3v3t33dt/bPfvN2alz5849E+fMmTPznnpVf0WBokBRoChQFCgKbJ0CxWC3TtIqsChQFCgKFAWKAqtVMdiL9IJ6tihQFCgKFAWKAiMUKAY7QphKLgoUBYoCRYGiwEUoUAz2ItSrZy9CgXq2KFAUKApcawoUg73WzVsfVxQoChQFigJXRYFisFdF+XpvUeAiFKhniwJFgb2nwCEz2GcI6j7LOeFp4rmb5J4pPral1W0ivg23q3K3UbdDK+Npo8JtGz1jxLflLjJW2jr1wtus57a+97qWox1fOj5ugOePcM/VuOxR5QrSDpnBfkvQ6x/OCf8bz/1ywCMDHhTwnAHX2f1BfFxLq/tHfBtuV+Vuo26HVsbHRIXbNvrBiG/LXWSstHXqhb9jW5W8xHIO9VVvFRX/jQYeH+Geq3HZo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PzgoBntwTVYVLgpchAL1bFHgUijAXgOzbF9mX9WPnDAMdVrC7U3sShhSPjQQGTraf43gqbNH27uw5xRhnwPFYPe5dapuRYGiQFHgcCngZrNshInJMgxj9Of2JoaibslzhMdtbvlrGRIyLMzpBxEvBnsQzVSVLAoUBfaBAlWHRRRgXX23RU/cQnaKwHWRjjLdSj2wUDHYA2uwqm5RoChQFDggCjgzzHCJCjivZnufAcedzO4szj9518Pf67RisHvdPFW5okBRoChw8BTwi1QPXK1W7oR26Ylfo3Jvt/Pk1MPCLhhxoQ0DJ3c1H+S519xSxWAzRSpeFCgKFAWKAruggJvcMFUMFZPFbN37LOzSfxfaHOx+a49gxWB7VKm0okBRoChQFCgKXJAC22SwF6xKPV4UKAoUBYoCRYHrQ4FisNenLetLigJFgaJAUWCPKFAMdl8ao+pRFCgKFAWKAteKAsVgr1Vz1scUBYoCRYGiwL5QoBjsvrRE1eMiFKhniwJFgaLA3lGgGOzeNUlVqChQFCgKFAWuAwWKwV6HVqxvKApchAL1bFGgKLATChSD3QlZq9CiQFGgKFAUuOkUKAZ703tAfX9RoChwEQrUs0WBUQoUgx0lTWUUBYoCRYGiQFHg/BQoBnt+2tWTRYGiQFGgKHARClzzZ58CAAD//1G8n/QAAAAGSURBVAMAr3TouzqGsVEAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="decoder_box"><g transform="translate(0.5,0.5)"><rect x="578" y="189" width="160" height="360" rx="24" ry="24" fill="#ffe6cc" stroke="#d79b00" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 196px; margin-left: 579px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">DECODER</div></div></div></foreignObject><image x="579" y="196.5" width="158" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAngAAABECAYAAAASsEjFAAAQAElEQVR4AeydCbR2UxnHb0mZmqRQKBkqQkWWUikNEqIkCokktFQ0GBIZMjQYIoXMQ6MVGWMlJbEUKlZLVCoNhihCRan/7/Le7vfec/Y+wz7nfd9z/t96nnefs4dn7/0773fvc/d0HjvlfyZgAiZgAiZgAiZgAp0iYAevU4/TnTEBEzCBVARsxwRMYJIJ2MGb5KfntpuACZiACZiACZhABgE7eBlQHJWGgK2YgAmYgAmYgAmMhoAdvNFwd60mYAImYAIm0FcC7ncLBOzgtQDZVZiACZiACZiACZhAmwTs4LVJ23WZgAmkIWArJmACJmACQQJ28IJ4nGgCJtARAouoH0tJl5UuKn2c1GICJmACnSXQVwevsw/UHUtKYEFZW7yG4lSoeBJ5iqzUaUuRsk9VHXXkmSq8lXR/6bHSs6UXSU+Tfk76MSnpz1LYpKwg49tLz5DeKv2v9O9Srn+j8C7pQ9J7pd+T7i1dR1rH6VtM5YswzspDWb5rMpFEni4rWfWkjFtYdeTJM5RQty6c8Plkx2ICJlCRgB28iuBcrBcEDlUvb6uhOBU4F7fLxrelu0tfIK0i16tQnbYUKXu36igr86vAdtKfSf8oxZn7hMIdpBtL15Pi1O2mEJ6k/0HXV0v3kC4pTSVryRCcb1J4vPSdUkbtFGTKExX7aukB0sukt0hxDBdQWEaWUOY7pUUYZ+Wh7AMqz3flBwo/K91M+nhpWWGE8g4VyqonZRzOs6qZIy9UDN/3unXhhP9btnDCr1EIk/UVtvA7S7VYTKADBPyfpQMP0V1ojECdEZ3ZjWJEYyNFHCL9hfRk6fLSMlLll30Z+1XyvlmFbpSeIF1VWkZeqswHS38p3Ula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+e224CJmACJmACJmACGQTs4GVAcZQJmIAJpCFgKyZgAiYwGgJ28EbD3bWagAmYgAmYgAmYQGME7OA1hjaNYVsxARMwARMwARMwgbIE7OCVJeb8JmACJmACJjB6Am6BCQQJ2MEL4nGiCZiACZiACZiACUweATt4k/fM3GITSEPAVkzABEzABDpLwA5eZx+tO2YCJmACJmACJtBXAv8DAAD//2M9/v8AAAAGSURBVAMAYL0LtoE0PlwAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="masked_mha_dec"><g transform="translate(0.5,0.5)"><rect x="598" y="219" width="120" height="50" rx="7.5" ry="7.5" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 244px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Masked Multi-Head<br />Attention</div></div></div></foreignObject><image x="599" y="231.5" width="118" height="28.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAABzCAYAAAA7dRMAAAAQAElEQVR4AeydBbg0SXWGh+BuQRf3QHAPzuLB3d0hBJfF3RLkWQgSgizu7hKC22IP7k5wW2RZFvje+9+a/8y5Vd3VPT3SM+c+dW5VnfKvu/pUnZL5h0n8BQKBQCAQCAQCgcDgCISAHRzSyDAQCAQCgUAgEJhMQsDO8xZE2kAgEAgEAoFAoIBACNgCMMEOBAKBQCAQCATmQSAE7DzoRdp5EIi0gUAgEAhsNAIhYD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BwCYiEAJ2E59qtGkeBCJtIBAIBAKDIBACdhAYI5NAIBAIBAKBQGAWgRCws3iELxAIBOZBINIGAoHAFIEQsFMowhEIBAKBQCAQCAyHQAjY4bCMnAKBQCAQmAeBSLthCISA3bAHGs0JBAKBQCAQWA8EQsCux3OIWgQCgUAgEAjMg8Aapv07AAAA//9yFaf+AAAABklEQVQDAHPWxUHxun+TAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="add_norm1_dec"><g transform="translate(0.5,0.5)"><rect x="598" y="289" width="120" height="35" rx="5.25" ry="5.25" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 307px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Add & Norm</div></div></div></foreignObject><image x="599" y="301" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AeydB7QsRRGG14xixow5ZxEjmLNiFhPmrGAW9ZgQUTGncxSzGDEDRlTEgAmFY8accxYwY/6/e97c11u3ZndmZ8Ps7v9O1+3u6jTzz7yprurq3lMO/M8IGAEjYASMgBGYOgIWsFOH1B0aASNgBIyAERgMLGC7vAVuawSMgBEwAkagBgEL2BpgzDYCRsAIGAEj0AUBC9gu6LltFwTc1ggYASOw0ghYwK704/XNGQEjYASMwKIQsIBdFPIe1wh0QcBtjYAR6D0C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EjIARMAJ9QcACti9PwtfRBQG3NQJGwAj0DgEL2N49El+QETACRsAIrAICFrCr8BR9D0agCwJuawSMwEwQsICdCazu1AgYASNgBNYdAQvYdX8DfP9GwAh0QcBtjUAtAhawtdC4wAgYASNgBIzA5AhYwE6OnVsaASNgBIxAFwRWvO3/AQAA//9En9ZjAAAABklEQVQDAG2wop2o/4syAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="cross_attn"><g transform="translate(0.5,0.5)"><rect x="598" y="344" width="120" height="50" rx="7.5" ry="7.5" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 369px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Multi-Head<br />Cross-Attention</div></div></div></foreignObject><image x="599" y="356.5" width="118" height="28.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAABzCAYAAAA7dRMAAAAQAElEQVR4AeydBbw8SXHHl6AHB8HdOdzd9XB31+DuBDncIUGCu7tDcA9yuAeXwOHB3Q74fff/Zq+3Xo3szs6+ld/7VL3urpbp/s3sVEt1z7+M/GcEjIARMAJGwAgsHAEr2IVD6gKNgBEwAkbACIxGVrB9ngLnNQJGwAgYASNQg4AVbA0wFhsBI2AEjIAR6IOAFWwf9Jy3DwLOawSMgBHYaASsYDf69rpxRsAIGAEjsFcIWMHuFfK+rhHog4DzGgEjsPIIWMGu/C3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MaxX0gG6k/x8po17yT1klEi5PCPcQ4z22kauHE5Stg9/1yURrkn6kjlkRNVKid/V8RSDlTr4sH7M75JDVjBaUtSYWEcuy8TfppyG+P0sE5txw/1vPgSsYOfDbVG5OASflyUvH7bhXF4F8wLi5YZhCOugTAc29PSVY3jixYviZ+2OESovXA4WqOqJnJdp28smqykvZzbncygHbeYljEUxjFKgI/IkZeSlmY3KFZXSUOWmF1txIWuC4IeREcZ2GKvRAaurNs8lnSfWUTkIgg7Vz+oSF3IUOh0gjPUwwONecg9Zi6YTyTNSJF8pLyM79rCCD0sc/C5RZDxHfSs65O+nb92cf0AErGAHBNdFGwEjYASMwPYiYAW7vffeLR+NRgbBCBgBIzAUAlawQyHrco2AETACRmCrEbCC3erb78YbgT4IOK8RMAJNCFjBNqHjOCNgBIyAETACcyJgBTsncM5mBIyAEeiDgPNuPgJWsJt/j91CI2AEjIAR2AMErGD3AHRf0ggYASNgBPogsB55rWDX4z65lkbACBgBI7BmCFjBrtkNc3WNgBEwAkZgPRBYVQW7Hui5lkbACBgBI2AEahCwgq0BxmIjYASMgBEwAn0QsILtg96q5nW9jIARMAJGYM8RsILd81vgChgBI2AEjMAmImAFu4l31W3qg4DzGgEjYAQWgoAV7EJgdCFGwAgYASNgBKYRsIKdxsMhI2AE+iDgvEbACEwQsIKdQGGPETACRsAIGIHFIWAFuzgsXZIRMAJGoA8CzrthCFjBbtgNdXOMgBEwAkZgNRCwgl2N++BaGAEjYASMQB8EVjDvPwEAAP//9LffjAAAAAZJREFUAwCWNoVBSYBRPAAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="add_norm2_dec"><g transform="translate(0.5,0.5)"><rect x="598" y="414" width="120" height="35" rx="5.25" ry="5.25" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 432px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Add & Norm</div></div></div></foreignObject><image x="599" y="426" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AeydB7QsRRGG14xixow5ZxEjmLNiFhPmrGAW9ZgQUTGncxSzGDEDRlTEgAmFY8accxYwY/6/e97c11u3ZndmZ8Ps7v9O1+3u6jTzz7yprurq3lMO/M8IGAEjYASMgBGYOgIWsFOH1B0aASNgBIyAERgMLGC7vAVuawSMgBEwAkagBgEL2BpgzDYCRsAIGAEj0AUBC9gu6LltFwTc1ggYASOw0ghYwK704/XNGQEjYASMwKIQsIBdFPIe1wh0QcBtjYAR6D0CFrC9f0Qzv8AdNMJZA51Z+UWE82vQSxd0OqWnGbjXsv+dp9l5g774/wY1qDqTKqdVr9N+1jyjss8zaAwHI2AEhMAi/7NreIceIPAmXcMJgU5SfifRvMPRGvBbBd1C6WmG26mzsv8jlZ9l4P/XPTTAG0RfFP1nG31V8ZtFdxLNM7xMg2XP+jriTxoOUsOyz+8o3/fg6zMCc0GAD8BcBvIgvUTgnLqquo/8nipzmByBy6npp0QI0nsr3lVUhSsqgeB9p+IjRBcQzSOcpmaQ14qPJqqodTh1aIGWHFjOGoH1RMACdj2fe3XXdcKV8vvyxzQRAhdVq+NF1xKNC2jpH1ClRQqmS2r8x4gcjMB4BFyjMQIWsI2hWsmK9x9xV9dU2cVFDu0QOJWqYxJWtCV8V5xvimJAo31iZM45/yyN5+ctEByMwLQQsICdFpLL1w8f9dJ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z9E80cwRKDjnoKmjxbHFid8qBdN4AbSprrGMs7Xn2HZUHtN62V/XoyN5r8r+SCM8R10DZTjCoanzKzvggebPDxtwf6zVgxXvxx6qvKOIpYUmwhKva66hIn4RSM3HBtb1qzbEeJ2PbaQKnAxG/Yq4ZrFHBtaWq/pVnAndkZ24cDkQsIBdyHNaq0H5GTrWRTFbcwD+brp7tDy0Wz6qCGKxJg6YpNnbyzoep0shNHGkwtsVZxyE6sSdT9gQDR5zL17baKNsmUKgPFb9oamjxbGWrOxaB5zuwAPNn8kW1heEJFjxfjDBAsu1Bsk3v7wIWMAu77PzlRsBI2AEjECPEbCA7fHD8aXlCJhrBIyAEVgGBCxgl+Ep+RqNgBEwAkZg6RCwgF26R+YLNgJdEHBbI2AE5oWABey8kPY4RsAIGAEjsFYIWMCu1eP2zRoBI9AFAbc1Am0QsIBtg5brGgEjYASMgBFoiIAFbEOgXM0IGAEjYAS6ILB+bS1g1++Z+46NgBEwAkZgDghYwM4BZA9hBIyAETAC64fANAXs+qHnOzYCRsAIGAEjUIOABWwNMGYbASNgBIyAEeiCgAVsF/Sm2dZ9GQEjYASMwEohYAG7Uo/TN2MEjIARMAJ9QcACti9PwtfRBQG3NQJGwAj0DgEL2N49El+QETACRsAIrAICFrCr8BR9D0agCwJuawSMwEwQsICdCazu1AgYASNgBNYdAQvYdX8DfP9GwAh0QcBtjUAtAhawtdC4wAgYASNgBIzA5AhYwE6OnVsaASNgBIxAFwRWvO3/AQAA//9En9ZjAAAABklEQVQDAG2wop2o/4syAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="ff_dec"><g transform="translate(0.5,0.5)"><rect x="598" y="469" width="120" height="50" rx="7.5" ry="7.5" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 494px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Feed Forward<br />Network</div></div></div></foreignObject><image x="599" y="481.5" width="118" height="28.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAABzCAYAAAA7dRMAAAAQAElEQVR4AeydBbg0SXWGhyCLa9DgENjgwd3dXYK7Q3BbFnd3dx6Cu7smuDtBggZncVjse+9/a/bM+aunu0d75n73qXOr6tSp6uqvevpUnZL+p5H/jIARMAJGwAgYgYUjYAW7cEhdoBEwAkbACBiB0cgKdp6nwHmNgBEwAkbACDQgYAXbAIzZRsAIGAEjYATmQcAKdh70nHceBJzXCBgBI7DVCFjBbnXz+uaMgBEwAkZgXQhYwa4LeV/XCMyDgPMaASMweASsYIfbREdQ1Y69BDqqyrQ7DIHjKnhgoOMovCh3dBW0jDY8vMq129sInFS3H5/bAxS3GxgCVrADa5BQnTsq/Msl0NdUpt1hCDxMwa8Eur/Ci3K/UUHLaMPrqVy72RHYhpwf0E3E5/ZyitsNDAEr2IE1SKgOI9gQXVjwSAsryQWtC4FlPRvruh9f1whsJQJWsFvZrL4pI2AEjMCSEHCxnRGwgu0MlQWNgBEwAkbACHRHwAq2O1ZDkHyQKnGZOekqym+3HgS+r8vO237kf7PKsTMCRmDgCFQU7MBrvLer9yHd/jvnpI8qv916EPg/XXbe9iP/z1SOnREwAgNHwAp24A3k6hkBI2AEjMBmImAFu+B22+Lilv2sLLv8LW6aqbfGiuMTSeLUIvbkyluaO6JKPpxok9yRVVn2K8tbqttEbJYKyF4o3C+1vdDK/e+RF/ENle21om+K/i76lejXok+JHi86p2hW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EQVQDAMIRxDIQg8duAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="add_norm3_dec"><g transform="translate(0.5,0.5)"><rect x="598" y="539" width="120" height="35" rx="5.25" ry="5.25" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 557px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Add & Norm</div></div></div></foreignObject><image x="599" y="551" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AeydB7QsRRGG14xixow5ZxEjmLNiFhPmrGAW9ZgQUTGncxSzGDEDRlTEgAmFY8accxYwY/6/e97c11u3ZndmZ8Ps7v9O1+3u6jTzz7yprurq3lMO/M8IGAEjYASMgBGYOgIWsFOH1B0aASNgBIyAERgMLGC7vAVuawSMgBEwAkagBgEL2BpgzDYCRsAIGAEj0AUBC9gu6LltFwTc1ggYASOw0ghYwK704/XNGQEjYASMwKIQsIBdFPIe1wh0QcBtjYAR6D0CFrC9f0Qzv8AdNMJZA51Z+UWE82vQSxd0OqWnGbjXsv+dp9l5g774/wY1qDqTKqdVr9N+1jyjss8zaAwHI2AEhMAi/7NreIceIPAmXcMJgU5SfifRvMPRGvBbBd1C6WmG26mzsv8jlZ9l4P/XPTTAG0RfFP1nG31V8ZtFdxLNM7xMg2XP+jriTxoOUsOyz+8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2o/4syAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="linear_softmax"><g transform="translate(0.5,0.5)"><rect x="598" y="589" width="120" height="40" rx="6" ry="6" fill="#b0e3e6" stroke="#0e8088" pointer-events="all" style="fill: light-dark(rgb(176, 227, 230), rgb(16, 60, 63)); stroke: light-dark(rgb(14, 128, 136), rgb(70, 168, 175));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 609px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Linear & Softmax</div></div></div></foreignObject><image x="599" y="603" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AezdBZx8v1EA8MUd2uJapLg7xaG4eykt7lqsuLtb8eJQ3KHQ4u7FpbjT4g7Fme//f9lfdi5v963c7d5v5z6Zi+flzUsyGUn2MRf1VxgoDBQGCgOFgcLAwTFQBPbgKK0GCwOFgcJAYaAwsFgUgd1nFFTdwkBhoDBQGCgMTGCgCOwEYiq5MFAYKAwUBgoD+2CgCOw+2Ku6+2Cg6hYGCgOFgdsaA0Vgb+vPWy9XGCgMFAYKA8fCQBHYY2G+nlsY2AcDVbcwUBg4eQwUgZ3+RI8bWXfp4EkjfEj3eNFY3/4TRLzc7YMBcwuc2hs9ZXTo1QLeJeDTA74z4DcCfiLgqwI+MuCtAl4y4NTdY0cH7xHwmgHvGfChAfcPKFcYOAkMnOICcBKIiU58bsDfd/CPEX66gEO5L4yG+va/I+Llbi4GzKX7Rfe/IuDhAf9zAb8S/lcHv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OoWBgoDhYGTw0AR2JP7JNWhwkBhoDBQGLgdMFAE9nb4ivUOhYF9MFB1CwOFgSvBQBHYK0FrNVoYKAwUBgoD546BIrDnPgLq/QsDhYF9MFB1CwOTGCgCO4mayigMFAYKA4WBwsDuGCgCuzvuqmZhoDBQGCgM7IOB27zu/wMAAP//qnacmwAAAAZJREFUAwDvGUu7ZLdeNQAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="output_prob"><g transform="translate(0.5,0.5)"><rect x="598" y="649" width="120" height="40" rx="6" ry="6" fill="#b1ddf0" stroke="#10739e" pointer-events="all" style="fill: light-dark(rgb(177, 221, 240), rgb(23, 61, 77)); stroke: light-dark(rgb(16, 115, 158), rgb(84, 169, 206));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 669px; margin-left: 599px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Output Probabilities</div></div></div></foreignObject><image x="599" y="663" width="118" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAAA/CAYAAABD79kXAAAQAElEQVR4AezdBdguQVUA4N9u7HhU7E4wsANMLMROVFRUDLA7MFFUVBTBwO6uRwUMFEXxMVGxO7C787z33vnv3r0zs7vft1/93/mfOf/snjkTe3Z2zpkzZ+Z78ov8Sw4kB5IDyYHkQHJgdQ6kgF2dpVlgciA5kBxIDiQHLi5SwG7TCzJvciA5kBxIDiQHGhxIAdtgTKKTA8mB5EByIDmwDQdSwG7Dvcy7DQcyb3IgOZAcuNIcSAF7pV9vPlxyIDmQHEgOHIoDpyJg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form="translate(0.5,0.5)"><rect x="0" y="314" width="30" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 28px; height: 1px; padding-top: 329px; margin-left: 1px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #9673a6; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: light-dark(#9673a6, #9577a3); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Nx</div></div></div></foreignObject><image x="1" y="321" width="28" height="20.5" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABSCAYAAACMhFB2AAAHvUlEQVR4Aexb63MTVRQ/d7OtVVpRkTo+vjDjjF8cnfH5BRz86hfBR20bHoMg0LRF24SCo45hlFFp2jJAG1pBeZi2E3XEUdFhfIz6xfEvUNTx8UHwgQIp04Qmez0nE2Jasns32d3sLtzOOb2Pc+65555f9uY+NgrIP19HQALoa/gAJIASQJ9HwOfuyydQAujzCPjcffkESgB9HgGfuy+fwMsTQJ+P+hJyXz6BPgfTcQBHwhM/jITHpw25d/yrauOYjCbr0fZpZN0+4pFEa7X2vd7OcQAB+C0YhAZDZrBkpDfxOOpUTP/ClSo2mo+s24fG4QaUX5JUAwBNxo2xOD1NJrWlWiEC3gEQYMHfqVxfwS+ZmIyAlwBEl/mL8cihZsxIMhkBjwEIqsbVQZO+SzWMgNcABAYQ3Ns7eSf6JslEBGoLoAmHSEVj2n5KJYsj4EkA0e27h8OJRzCVJIiAVwHEqZSNja4frRP4f9mLPQsgIrMg19S4GVPbaV9P8jo8uVkt4j2RxMOizvsjh+aJ7JB8ODy+WGSrGrmXAcTxsG27upMLMWMrzcDMrWjwgIgVzo7sCSceQD1dmqfVvYBCoS1cnG1FPdvJ4wCC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30" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 28px; height: 1px; padding-top: 384px; margin-left: 739px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #d79b00; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: light-dark(#d79b00, #996500); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Nx</div></div></div></foreignObject><image x="739" y="376" width="28" height="20.5" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABSCAYAAACMhFB2AAAHMUlEQVR4AexbW4hVVRj+9jlnjo6OaEjRBcHK8MxoD71ETWQQBUUYRGVZlqlz0SzKeimKggILCQ0pbC5qdrE0KrGIIKmHoIcwtLC5ZFDUQ2GIt9JBz5zd959j20Mze699PXsvXZv/P2vN/i9rrf/ba+112ZODubSOgAFQa/gAA6ABUPMIaF590wMNgJpHQPPqmx5oANQ8AppX3/TAcxNAzVt9FlXf9EDNwUwcwME+HCCfUvBg2Dj+shkT6fsE2bWMgV48HNZ/1u0SB5ABOI9cUHCJAHRRJzD9cxzieyINJR2fLVxM+VlJjQDQb+DWSW/yq2z0ahHIEoCTRspYU6uW+fUbgSwBKHVeObwBl0jGsL8IZA3AXKWAN2Eu3xHIGoBS8ZsGe9EuGcPqCDQWQHV9aho5vFvLmF9VBLIJoI2ZA31Ypqq8kWf4RN4C1u/bjqIByTsC2eyBtTpPyh1FIsuKnzfggoF+rFIx38UP1ari/ju0EVNUfkQ+3Itb3b2El2QZQFg2Hh3owUXhmze+ZbmAufS9VsWwsJnBv218L7W7to31Kj8ir1h4oWYR72+mAWRTc1YOW5jGSqVOfMkh+jM/Thn8LfZ25MfTHerDpbCh7KUAyqMV3Mk0dsoCgBVFq27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y+Fs08fK17b7naltGEpbOnQmbFB121zgja+WCE2ZI748FHTisApT1tHVjH9E9yLPT3FMiwPEXpzMZq2aiubrZz01qpTwU+GG/IR8TMJkbaASiR4LriAUmj8umvpf3sYR4qTYMcc1WL5Kb1J8x8R1ZRkTs6iS7wtQSQm827GLlvyKFp3+toqVjY7scBh+2l1Z5Xr2zD76y4faAPif2jjpYAVuNYhnzTWanmQ/zki9hKsxayJ3HSspfD9ph3JE/df+Kyw8+nhZz7ILGhVFsAW1fgVwD95MA01IvbaTSfrCSr4vG1XB4r6cDPrLjAoXTMQ0DbyNQIAL1OE6QBnl9li4IbtxzD4wDUHyJZOEo9hzi58HWOSL13ZnfD9XtVmRWzez3jOPbOXDu4ATMR85U4gDxdbyZbblzqhHyJFqpZM57ACfr19E+5xSFwTX0BHP7myH0VcwtPOVnihOYVlR9HXhs16qsSOZ84gJFraBx4RsAA6BmeAMKUVA2AKQU+rmINgHFFMiU/BsCUAh9XsQbAuCKZkh8DYEqBj6tYA2BckUzJjwEwpcDHVawBMK5IpuTHAJhS4P8rNmpqAIwawZTtDYApAxC1eANg1AimbG8ATBmAqMUbAKNGMGV7A2DKAEQt3gAYNYIp2xsAUwYgavEGwKgRTMfeKdUA6IRCz4wBUE/cnFobAJ1Q6JkxAOqJm1NrA6ATCj0zBkA9cXNqbQB0QqFnxgCoJ25OrQ2ATij0zPwLAAD//wo3A1UAAAAGSURBVAMA0am/tFFyFp8AAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="conn1"><g><path d="M 110 109 L 110 120.76" fill="none" stroke="#6c8ebf" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 110 126.76 L 106 118.76 L 110 120.76 L 114 118.76 Z" fill="#6c8ebf" stroke="#6c8ebf" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(108, 142, 191), rgb(92, 121, 163)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g></g><g data-cell-id="conn2"><g><path d="M 110 169 L 110 210.76" fill="none" stroke="#9673a6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(150, 115, 166), rgb(149, 119, 163)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 110 216.76 L 106 208.76 L 110 210.76 L 114 208.76 Z" fill="#9673a6" stroke="#9673a6" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(150, 115, 166), rgb(149, 119, 163)); stroke: light-dark(rgb(150, 115, 166), rgb(149, 119, 163));"/></g></g><g data-cell-id="conn3"><g><path d="M 110 269 L 110 280.76" fill="none" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 110 286.76 L 106 278.76 L 110 280.76 L 114 278.76 Z" fill="#b85450" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g></g><g data-cell-id="conn4"><g><path d="M 110 324 L 110 335.76" fill="none" stroke="#82b366" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 110 341.76 L 106 333.76 L 110 335.76 L 114 333.76 Z" fill="#82b366" stroke="#82b366" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(130, 179, 102), rgb(68, 110, 44)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g></g><g data-cell-id="conn5"><g><path d="M 110 394 L 110 405.76" fill="none" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 110 411.76 L 106 403.76 L 110 405.76 L 114 403.76 Z" fill="#b85450" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g></g><g data-cell-id="res1_enc"><g transform="translate(0.5,0.5)"><path d="M 50 244 L 30 244 Q 20 244 20 254 L 20 296.56 Q 20 306.56 30 306.54 L 42.7 306.51" fill="none" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" stroke-dasharray="4.5 4.5" pointer-events="stroke" style="stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); animation: 281ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 9;"/><path d="M 48.32 306.5 L 40.83 310.27 L 42.7 306.51 L 40.82 302.77 Z" fill="#999999" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106));"/></g></g><g data-cell-id="res2_enc"><g transform="translate(0.5,0.5)"><path d="M 50 369 L 30 369 Q 20 369 20 379 L 20 421.56 Q 20 431.56 30 431.54 L 42.7 431.51" fill="none" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" stroke-dasharray="4.5 4.5" pointer-events="stroke" style="stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); animation: 281ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 9;"/><path d="M 48.32 431.5 L 40.83 435.27 L 42.7 431.51 L 40.82 427.77 Z" fill="#999999" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106));"/></g></g><g data-cell-id="conn6"><g><path d="M 658 109 L 658 120.76" fill="none" stroke="#6c8ebf" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 126.76 L 654 118.76 L 658 120.76 L 662 118.76 Z" fill="#6c8ebf" stroke="#6c8ebf" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(108, 142, 191), rgb(92, 121, 163)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g></g><g data-cell-id="conn7"><g><path d="M 658 169 L 658 210.76" fill="none" stroke="#d79b00" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 216.76 L 654 208.76 L 658 210.76 L 662 208.76 Z" fill="#d79b00" stroke="#d79b00" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(215, 155, 0), rgb(153, 101, 0)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="conn8"><g><path d="M 658 269 L 658 280.76" fill="none" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 286.76 L 654 278.76 L 658 280.76 L 662 278.76 Z" fill="#b85450" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g></g><g data-cell-id="conn9"><g><path d="M 658 324 L 658 335.76" fill="none" stroke="#82b366" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 341.76 L 654 333.76 L 658 335.76 L 662 333.76 Z" fill="#82b366" stroke="#82b366" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(130, 179, 102), rgb(68, 110, 44)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g></g><g data-cell-id="conn10"><g><path d="M 658 394 L 658 405.76" fill="none" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 411.76 L 654 403.76 L 658 405.76 L 662 403.76 Z" fill="#b85450" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g></g><g data-cell-id="conn11"><g><path d="M 658 449 L 658 460.76" fill="none" stroke="#82b366" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 466.76 L 654 458.76 L 658 460.76 L 662 458.76 Z" fill="#82b366" stroke="#82b366" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(130, 179, 102), rgb(68, 110, 44)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g></g><g data-cell-id="conn12"><g><path d="M 658 519 L 658 530.76" fill="none" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 536.76 L 654 528.76 L 658 530.76 L 662 528.76 Z" fill="#b85450" stroke="#b85450" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(184, 84, 80), rgb(215, 129, 126)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g></g><g data-cell-id="conn13"><g><path d="M 658 574 L 658 580.76" fill="none" stroke="#0e8088" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(14, 128, 136), rgb(70, 168, 175)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 586.76 L 654 578.76 L 658 580.76 L 662 578.76 Z" fill="#0e8088" stroke="#0e8088" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(14, 128, 136), rgb(70, 168, 175)); stroke: light-dark(rgb(14, 128, 136), rgb(70, 168, 175));"/></g></g><g data-cell-id="conn14"><g><path d="M 658 629 L 658 640.76" fill="none" stroke="#10739e" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(16, 115, 158), rgb(84, 169, 206)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 658 646.76 L 654 638.76 L 658 640.76 L 662 638.76 Z" fill="#10739e" stroke="#10739e" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(16, 115, 158), rgb(84, 169, 206)); stroke: light-dark(rgb(16, 115, 158), rgb(84, 169, 206));"/></g></g><g data-cell-id="res1_dec"><g transform="translate(0.5,0.5)"><path d="M 718 244 L 738 244 Q 748 244 748 254 L 748 296.56 Q 748 306.56 738 306.54 L 725.3 306.51" fill="none" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" stroke-dasharray="4.5 4.5" pointer-events="stroke" style="stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); animation: 281ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 9;"/><path d="M 719.68 306.5 L 727.18 302.77 L 725.3 306.51 L 727.17 310.27 Z" fill="#999999" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106));"/></g></g><g data-cell-id="res2_dec"><g transform="translate(0.5,0.5)"><path d="M 718 369 L 738 369 Q 748 369 748 379 L 748 421.56 Q 748 431.56 738 431.54 L 725.3 431.51" fill="none" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" stroke-dasharray="4.5 4.5" pointer-events="stroke" style="stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); animation: 281ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 9;"/><path d="M 719.68 431.5 L 727.18 427.77 L 725.3 431.51 L 727.17 435.27 Z" fill="#999999" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106));"/></g></g><g data-cell-id="res3_dec"><g transform="translate(0.5,0.5)"><path d="M 718 494 L 738 494 Q 748 494 748 504 L 748 546.56 Q 748 556.56 738 556.54 L 725.3 556.51" fill="none" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" stroke-dasharray="4.5 4.5" pointer-events="stroke" style="stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); animation: 281ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 9;"/><path d="M 719.68 556.5 L 727.18 552.77 L 725.3 556.51 L 727.17 560.27 Z" fill="#999999" stroke="#999999" stroke-width="1.5" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(153, 153, 153), rgb(106, 106, 106)); stroke: light-dark(rgb(153, 153, 153), rgb(106, 106, 106));"/></g></g><g data-cell-id="cross_conn"><g transform="translate(0.5,0.5)"><path d="M 170 431.5 L 360 431.55 Q 370 431.56 370 421.56 L 370 379 Q 370 369 380 369 L 587.9 369" fill="none" stroke="#ff6b6b" stroke-width="3" stroke-miterlimit="10" pointer-events="stroke" stroke-dasharray="8" style="stroke: light-dark(rgb(255, 107, 107), rgb(218, 91, 91)); animation: 500ms linear 0s infinite normal none running ge-flow-animation-ovZuRisJHGu6I_LNZolY; stroke-dashoffset: 16;"/><path d="M 594.65 369 L 585.65 373.5 L 587.9 369 L 585.65 364.5 Z" fill="#ff6b6b" stroke="#ff6b6b" stroke-width="3" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(255, 107, 107), rgb(218, 91, 91)); stroke: light-dark(rgb(255, 107, 107), rgb(218, 91, 91));"/></g></g><g data-cell-id="cross_label"><g transform="translate(0.5,0.5)"><rect x="310" y="349" width="100" height="20" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 359px; margin-left: 311px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #FF6B6B; "><div style="display: inline-block; font-size: 10px; font-family: Helvetica; color: light-dark(#FF6B6B, #da5b5b); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Encoder Output</div></div></div></foreignObject><image x="311" y="353.5" width="98" height="14.5" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYgAAAA6CAYAAACqNs7sAAAQAElEQVR4AeydCZwdRZ3Hq3qORAMGNhkCkVNgI2eQcGUVkEsQFghEEAUhIhuSOSAxCrJhYRaEBTYSkjkSw4KARESuxAVZ2SCnUZBTDmUTFARBJxkkSEgymXm133+/N2/eUdXvmHmZ9yY1n/q/6v7///Wvf/26u/7VVd09gfJ/HgGPgEfAI+ARsCDgA4QFFM/yCHgEPAIeAaV8gPBngUegUhHwfnsESoyADxAlBtib9wh4BDwClYqADxCVeuS83x4Bj4BHoMQI+ABRMoC9YY+AR8AjUNkI+ABR2cfPe+8R8Ah4BEqGgA8QJYPWG/YIeAQqFQHvdxwBHyDiOPhfj4BHwCPgEchAwAeIDED8rkegHBAwTU2fMNOm7WymTt3ONDfXloNP3ofND4GKDxBcSIeahoajBpQuuGDHze9U2LQtptMLOGYTs6ipaXxOT4aYgpkxYytTX18PFkuh9yGjYrE1qqrqj6qm5h21atUGeBuh16D5prHxyCEGgW9OmSJQ0QFCOhkupMfBdtmAUk/P5djzqZQIdHSMw/zyLIrFXoC3WSQGN5+gs79ebdy4SmndRqNPgkZCtlQN8x+hJmXMwwSKFQSVE9n3ySNQMgQqOkCUDBVv2CNQYgTM9Onj6Oh/D82kKun8yQpKuxFUfkqgaA0HSgUVHXhla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4QVFs/0CHgEPAIeAR8g/DngEfAIeAQ8AlYEfICwwuKZ5YWA98Yj4BEYDAT+HwAA//9CFiRhAAAABklEQVQDACTe8fyniSX2AAAAAElFTkSuQmCC"/></switch></g></g></g></g></g></g></svg>\ No newline at end of filediff --git a/public/architecture.png b/public/architecture.pngnew file mode 100644index 0000000..cf66cfaBinary files /dev/null and b/public/architecture.png differdiff --git a/public/aws_demo.svg b/public/aws_demo.svgnew file mode 100644index 0000000..428d6d5--- /dev/null+++ b/public/aws_demo.svg@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?>+<!-- Do not edit this file with editors other than draw.io -->+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">+<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="681px" height="361px" viewBox="0 0 681 361" content="<mxfile host="embed.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36" version="29.0.3" scale="1" border="0"> <diagram id="jtIjjFXGTxdaRy8SYPkO" name="Page-1"> <mxGraphModel dx="703" dy="665" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" /> <mxCell id="2" value="AWS Cloud" style="sketch=0;outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=12;fontStyle=0;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_aws_cloud;strokeColor=#AAB7B8;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#AAB7B8;dashed=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;" parent="1" vertex="1"> <mxGeometry x="280" y="120" width="480" height="360" as="geometry" /> </mxCell> <mxCell id="3" value="VPC" style="sketch=0;outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=12;fontStyle=0;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_vpc;strokeColor=#879196;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#879196;dashed=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;" parent="2" vertex="1"> <mxGeometry x="40" y="60" width="400" height="260" as="geometry" /> </mxCell> <mxCell id="4" value="Public Subnet" style="sketch=0;outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=12;fontStyle=0;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_security_group;grStroke=0;strokeColor=#7AA116;fillColor=#F2F6E8;verticalAlign=top;align=left;spacingLeft=30;fontColor=#248814;dashed=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;" parent="3" vertex="1"> <mxGeometry x="40" y="60" width="320" height="160" as="geometry" /> </mxCell> <mxCell id="5" value="EC2 Instance&lt;br&gt;(Frontend)" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#ED7100;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.ec2_instance;" parent="4" vertex="1"> <mxGeometry x="126" y="50" width="68" height="68" as="geometry" /> </mxCell> <mxCell id="6" value="Internet&lt;br&gt;Gateway" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#8C4FFF;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.internet_gateway;" parent="2" vertex="1"> <mxGeometry x="206" y="10" width="68" height="68" as="geometry" /> </mxCell> <mxCell id="7" value="Users" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#232F3D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.users;" parent="1" vertex="1"> <mxGeometry x="80" y="240" width="68" height="68" as="geometry" /> </mxCell> <mxCell id="8" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=classic;elbow=vertical;curved=0;rounded=0;endSize=8;startSize=8;strokeWidth=2;strokeColor=#545B64;" parent="1" source="7" target="6" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="9" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=classic;elbow=vertical;curved=0;rounded=0;endSize=8;startSize=8;strokeWidth=2;strokeColor=#545B64;" parent="1" source="6" target="5" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="10" value="HTTPS/HTTP" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontColor=#545B64;" parent="1" vertex="1"> <mxGeometry x="170" y="250" width="80" height="20" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> </mxfile> "><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(#ffffff, var(--ge-dark-color, #121212));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><path d="M 200 0 L 680 0 L 680 360 L 200 360 Z" fill="none" stroke="#aab7b8" stroke-miterlimit="10" pointer-events="none" style="stroke: light-dark(rgb(170, 183, 184), rgb(74, 85, 86));"/><path d="M 210.73 6.89 C 208.19 6.86 206.05 9.34 206.28 11.84 C 204.63 12.3 203.58 14.09 203.93 15.76 C 204.17 17.45 205.84 18.8 207.55 18.58 C 211.3 18.56 215.04 18.61 218.79 18.55 C 220.71 18.38 222.05 16.29 221.58 14.45 C 221.34 13.13 220.21 11.98 218.87 11.81 C 218.86 10.3 217.26 8.82 215.79 9.6 C 214.97 10.39 214.82 8.44 214.02 8.13 C 213.14 7.28 211.95 6.82 210.73 6.89 Z M 210.75 7.63 C 212.68 7.51 214.32 9.05 214.91 10.79 C 215.31 11.19 215.67 10.52 215.97 10.34 C 217.25 9.57 218.21 11.17 218.23 12.29 C 218.58 12.77 219.39 12.38 219.77 12.91 C 221.21 13.93 221.3 16.3 219.88 17.37 C 218.9 18.09 217.63 17.75 216.5 17.83 C 213.28 17.82 210.06 17.84 206.84 17.82 C 205.2 17.58 204.19 15.69 204.79 14.17 C 205.07 13.16 206.05 12.67 206.94 12.36 C 207.19 11.62 206.85 10.71 207.33 9.99 C 207.92 8.65 209.25 7.61 210.75 7.63 Z M 200 25 C 200 16.67 200 8.33 200 0 C 208.33 0 216.67 0 225 0 C 225 8.33 225 16.67 225 25 C 216.67 25 208.33 25 200 25 Z" fill="#aab7b8" stroke="none" pointer-events="all" style="fill: light-dark(rgb(170, 183, 184), rgb(74, 85, 86));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 448px; height: 1px; padding-top: 7px; margin-left: 232px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #AAB7B8; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#AAB7B8, #4a5556); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">AWS Cloud</div></div></div></foreignObject><image x="232" y="7.5" width="448" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABwAAAABECAYAAACGeSHrAAAQAElEQVR4Aezde5RcVZ3o8d8+1ek0mE4EjIyigA/wweD4iM5VFI2TdFdVk1GT7uqo6PgYRVF0FLyz9LrGxyy9s/Q6Lh3HB3IHHRHS1QmIMfVIoi0jeNXBCzqiKD5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HQIcBcIIIAAAggggAACCCCAAAIIIND9AuwQAQQQmKcACcB5wjENAQQQQAABBBBAAIEjIcA1EUAAAQQQQAABBBBAAAEEEECg+wUWukMSgAsVZD4CCCCAAAIIIIAAAggggAACD70AV0AAAQQQQAABBBBAAAEEEguQAExMxUAEjjYB7gcBBBBAAAEEEEAAAQQQQAABBLpfgB0igAACCCCAAAKdC5AA7NyMGQgggAACCBxZAa6OAAIIIIAAAggggAACCCCAAALdL8AOEUAAgQUIkABcAB5TEUAAAQQQQAABBBA4nAJcCwEEEEAAAQQQQAABBBBAAAEEul9gMXb43wAAAP//37vm/wAAAAZJREFUAwDHVe0QwejMTwAAAABJRU5ErkJggg=="/></switch></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><path d="M 240 60 L 640 60 L 640 320 L 240 320 Z" fill="none" stroke="#879196" stroke-miterlimit="10" pointer-events="none" style="stroke: light-dark(rgb(135, 145, 150), rgb(106, 115, 119));"/><path d="M 250.59 66.65 C 250.53 66.65 250.48 66.65 250.42 66.65 L 250.42 66.65 C 249.11 66.68 248.03 67.24 247.14 68.25 C 247.13 68.25 247.13 68.25 247.13 68.25 C 246.2 69.36 245.87 70.52 245.96 71.73 C 244.81 72.06 244.12 72.92 243.76 73.74 C 243.75 73.75 243.75 73.76 243.74 73.78 C 243.33 75.05 243.68 76.36 244.24 77.16 C 244.25 77.17 244.25 77.17 244.26 77.18 C 244.94 78.05 245.97 78.53 247.02 78.53 L 258.17 78.53 C 259.19 78.53 260.07 78.16 260.8 77.37 C 261.25 76.94 261.49 76.29 261.58 75.59 C 261.67 74.9 261.61 74.16 261.32 73.55 C 261.31 73.54 261.31 73.53 261.31 73.52 C 260.8 72.62 259.95 71.81 258.76 71.64 C 258.74 70.79 258.28 69.99 257.68 69.56 C 257.67 69.55 257.66 69.55 257.65 69.54 C 257.01 69.18 256.4 69.14 255.91 69.3 C 255.6 69.4 255.36 69.56 255.14 69.74 C 254.51 68.36 253.43 67.18 251.81 66.79 C 251.81 66.79 251.81 66.79 251.81 66.79 C 251.38 66.7 250.97 66.65 250.59 66.65 Z M 250.43 67.38 C 250.8 67.38 251.2 67.43 251.64 67.53 C 253.16 67.89 254.15 69.07 254.66 70.48 C 254.71 70.6 254.81 70.69 254.94 70.72 C 255.07 70.74 255.2 70.7 255.29 70.61 C 255.54 70.34 255.83 70.11 256.14 70.01 C 256.44 69.91 256.78 69.92 257.26 70.18 C 257.67 70.49 258.11 71.31 258.03 71.9 C 258.01 72.01 258.05 72.12 258.12 72.2 C 258.19 72.28 258.29 72.33 258.39 72.33 C 259.46 72.34 260.16 73.02 260.64 73.88 C 260.85 74.3 260.91 74.92 260.84 75.5 C 260.76 76.07 260.53 76.59 260.28 76.83 C 260.27 76.84 260.27 76.85 260.26 76.85 C 259.65 77.53 259.03 77.78 258.17 77.78 L 247.02 77.78 C 246.2 77.78 245.39 77.41 244.85 76.73 C 244.44 76.13 244.14 75.02 244.46 74.02 C 244.79 73.27 245.36 72.55 246.41 72.36 C 246.6 72.32 246.74 72.14 246.71 71.94 C 246.56 70.79 246.8 69.81 247.7 68.74 C 248.49 67.85 249.33 67.39 250.43 67.38 Z M 252.2 70.7 C 251.77 70.7 251.4 70.93 251.13 71.21 C 250.85 71.5 250.64 71.85 250.64 72.25 L 250.64 72.71 L 250.14 72.71 C 250.04 72.71 249.94 72.75 249.87 72.82 C 249.8 72.89 249.76 72.98 249.76 73.08 L 249.76 75.7 C 249.76 75.8 249.8 75.89 249.87 75.96 C 249.94 76.03 250.04 76.07 250.14 76.07 L 254.16 76.07 C 254.26 76.07 254.35 76.03 254.42 75.96 C 254.49 75.89 254.53 75.8 254.53 75.7 L 254.53 73.08 C 254.53 72.98 254.49 72.89 254.42 72.82 C 254.35 72.75 254.26 72.71 254.16 72.71 L 253.68 72.71 L 253.68 72.25 C 253.68 71.84 253.47 71.47 253.21 71.2 C 252.94 70.92 252.61 70.7 252.2 70.7 Z M 252.2 71.45 C 252.29 71.45 252.5 71.54 252.67 71.72 C 252.83 71.89 252.93 72.11 252.93 72.25 L 252.93 72.71 L 251.39 72.71 L 251.39 72.25 C 251.39 72.15 251.49 71.91 251.66 71.74 C 251.83 71.56 252.06 71.45 252.2 71.45 Z M 250.51 73.46 L 253.78 73.46 L 253.78 75.32 L 250.51 75.32 Z M 240 85 L 240 60 L 265 60 L 265 85 Z" fill="#879196" stroke="none" pointer-events="all" style="fill: light-dark(rgb(135, 145, 150), rgb(106, 115, 119));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 368px; height: 1px; padding-top: 67px; margin-left: 272px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #879196; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#879196, #6a7377); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">VPC</div></div></div></foreignObject><image x="272" y="67.5" width="368" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABcAAAABECAYAAACmqpaLAAAQAElEQVR4Aezdf4xcR30A8Jldx2enSUpKoHJoS2gEpVAhQZFQmwraSuVnKCpQUyoRNUXBubO9ZwfE+RykLD9y50Cx786+uxhCES2l1LQoVAVaqkJFCwSU8qMF1Iq0TQotJCTExFFyZ3n3dfbOP/bH27vdtc++2/usZva9+b6ZeTMf+6+vVnOF4EOAAAECBAgQIECAAAECBAj0u4D9ESBAgACBdSkgAb4u/9ltmgABAgQIrGcBeydAgAABAgQIECBAgACB9SIgAb5e/qXz9ilGgAABAgQIECBAgAABAgQI9L+AHRIgQGAdC0iAr+N/fFsnQIAAAQIECKw3AfslQIAAAQIECBAgQGB9CUiAr69/b7slcErAlQABAgQIECBAgAABAgQIEOh/ATsksO4FJMDX/X8BAAQIECBAgAABAgTWg4A9EiBAgAABAgQIrEcBCfD1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QIECAAIHVJWA1BAgQIECAAAECSwpIgC/J4yEBAgQIrBUB6yRAgAABAgQIECBAgAABAgT6X6DbHUqAdyumPwECBAgQIECAAAECBAgQuPACVkCAAAECBAh0ICAB3gGSLgQIECBAgMBqFrA2AgQIECBAgAABAgQIECCQLyABnu+yNqNWTYAAAQIECBAgQIAAAQIECPS/gB0SIECAQMcCEuAdU+lIgAABAgQIECCw2gSshwABAgQIECBAgAABAksJSIAvpeMZgbUjYKUECBAgQIAAAQIECBAgQIBA/wvYIQECXQpIgHcJpjsBAgQIECBAgAABAqtBwBoIECBAgAABAgQILC8gAb68kR4ECBBY3QJWR4AAAQIECBAgQIAAAQIECPS/gB32JCAB3hObQQQIECBAgAABAgQIECBwoQS8lwABAgQIECDQqYAEeKdS+hEgQIAAgdUnYEUECBAgQIAAAQIECBAgQIDAEgJ9kgBfYoceESBAgAABAgQIECBAgAABAn0iYBsECBAgQKA7AQnw7rz0JkCAAAECBAisDgGrIECAAAECBAgQIECAAIFlBSTAlyXSYbULWB8BAgQIECBAgAABAgQIECDQ/wJ2SIAAgV4EJMB7UTOGAAECBAgQIECAwIUT8GYCBAgQIECAAAECBDoUkADvEEo3AgRWo4A1ESBAgAABAgQIECBAgAABAv0vYIcEeheQAO/dzkgCBAgQIECAAAECBAicXwFvI0CAAAECBAgQ6EpAArwrLp0JECBAYLUIWAcBAgQIECBAgAABAgQIECDQ/wJnu0MJ8LMVNJ4AAQIECBAgQIAAAQIECKy8gDcQIECAAAECPQhIgPeAZggBAgQIECBwIQW8mwABAgQIECBAgAABAgQIdCYgAd6Z0+rsZVUECBAgQIAAAQIECBAgQIBA/wvYIQECBAj0LCAB3jOdgQQIECBAgAABAudbwPsIECBAgAABAgQIECDQjcD/AwAA//8OS5WKAAAABklEQVQDACPM/rY0bd4QAAAAAElFTkSuQmCC"/></switch></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><path d="M 280 120 L 600 120 L 600 280 L 280 280 Z" fill="#f2f6e8" stroke="none" pointer-events="none" style="fill: light-dark(rgb(242, 246, 232), rgb(26, 29, 17));"/><path d="M 280 120 L 305 120 L 305 145 L 280 145 Z M 292.52 123.21 C 291.4 123.21 290.31 123.63 289.49 124.39 C 288.67 125.11 288.2 126.15 288.2 127.24 L 288.2 129.78 L 285.89 129.78 C 285.8 129.78 285.7 129.82 285.64 129.89 C 285.57 129.95 285.54 130.04 285.54 130.13 L 285.54 141.43 C 285.54 141.63 285.7 141.79 285.89 141.79 L 299.11 141.79 C 299.3 141.79 299.46 141.63 299.46 141.43 L 299.46 130.15 C 299.47 130.06 299.43 129.97 299.36 129.9 C 299.3 129.83 299.21 129.79 299.11 129.79 L 296.81 129.79 L 296.81 127.29 C 296.8 126.21 296.35 125.18 295.56 124.44 C 294.74 123.65 293.65 123.22 292.52 123.21 Z M 292.51 123.93 C 293.46 123.92 294.37 124.28 295.06 124.93 C 295.72 125.54 296.1 126.4 296.1 127.29 L 296.1 129.79 L 288.88 129.79 L 288.89 127.26 C 288.9 126.36 289.28 125.51 289.95 124.91 C 290.65 124.27 291.57 123.92 292.51 123.93 Z M 286.24 130.5 L 298.76 130.5 L 298.75 141.07 L 286.24 141.07 Z M 292.51 132.74 C 291.48 132.73 290.61 133.51 290.51 134.53 C 290.42 135.56 291.13 136.48 292.14 136.66 L 292.14 139.44 L 292.86 139.44 L 292.86 136.66 C 293.79 136.49 294.47 135.67 294.48 134.72 C 294.48 133.63 293.6 132.75 292.51 132.74 Z M 292.39 133.45 C 292.43 133.45 292.47 133.45 292.51 133.46 C 292.84 133.46 293.16 133.59 293.4 133.83 C 293.64 134.07 293.77 134.39 293.76 134.72 C 293.77 135.06 293.64 135.38 293.4 135.61 C 293.16 135.85 292.84 135.98 292.51 135.98 C 292.04 136.02 291.6 135.8 291.34 135.42 C 291.08 135.03 291.06 134.53 291.28 134.12 C 291.5 133.71 291.93 133.46 292.39 133.45 Z" fill="#7aa116" stroke="none" pointer-events="all" style="fill: light-dark(rgb(122, 161, 22), rgb(97, 130, 11));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 288px; height: 1px; padding-top: 127px; margin-left: 312px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #248814; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#248814, #55ab47); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Public Subnet</div></div></div></foreignObject><image x="312" y="127.5" width="288" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABIAAAABECAYAAAD5nk7rAAAQAElEQVR4Aezde5wbZbkH8OeZpNulFHpJsoVya3dnt1DhCKJ45ICiIAhWRDzCAfFwE1QuFbA02aKcKNDNtggKRQFFxQ94tAcFBERQLsJBjgoIKoV2J9tSkUoz6QVKu91u5j3Pu+22m5nJZpJNtunmN595d/Je551vJn/M85mZNQgLBCAAAQhAAAIQgAAEIAABCEAAAqNdAMdX5wIIANX5CYDDhwAEIAABCEAAAhCAAATqRQDHCQEI1LMAAkD1/O3j2CEAAQhAAAIQgAAE6ksARwsBCEAAAnUrgABQ3X71OHAIQAACEIAABOpRAMcMAQhAAAIQgEB9CiAAVJ/fO44aAhCAAATqVwBHDgEIQAACEIAABCBQhwIIANXhl45DhgAE6l0Axw8BCEAAAhCAAAQgAAEI1JsAAkD19o3jeCGgBZAgAAEIQAACEIAABCAAAQhAoK4EEACqq697x8HiEwQgAAEIQAACEIAABCAAAQhAAAKjX2DgCOsyAGQmJ+/Zdm1kn4E084Y9Jw+AYFsdgRkLp0xvXRCd1ZKKzjFTkTvMztjv5fMbZiraZaZij7SmIje1pGKXNs+PnaS/n+rMojKj6vkNnDt6i/OnMq4YBQIQgAAEIAABCEAAAhCoigAGhUC/QF4AqHl+tM1MRdUw09vS/zm5yP+BbK/QF8j9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AACEIAABCAQTAABoGBOaAWB2hTArCAAAQhAAAIQgAAEIAABCEAAAgEEEAAKgFTLTTA3CEAAAhCAAAQgAAEIQAACEIAABEa/wHCPEAGg4QqiPwQgAAEIQAACEIAABCAAAQhAoPoC2AMEhiWAANCw+NAZAhCAAAQgAAEIQAACEIDASAlgPxCAAATKF0AAqHw79IQABCAAAQhAAAIQgMDICmBvEIAABCAAgTIFEAAqEw7dIAABCEAAAhCAwM4QwD4hAAEIQAACEIBAOQL/DwAA//+yhPnZAAAABklEQVQDAAbt7R9U6/cVAAAAAElFTkSuQmCC"/></switch></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="406" y="170" width="68" height="68" fill="#ed7100" stroke="none" pointer-events="all" style="fill: light-dark(rgb(237, 113, 0), rgb(216, 109, 12));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 245px; margin-left: 440px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #232F3E; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#232F3E, #bdc7d4); line-height: 1.2; pointer-events: all; white-space: nowrap; ">EC2 Instance<br />(Frontend)</div></div></div></foreignObject><image x="404" y="245.5" width="72" height="32" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAACACAYAAACr6LTaAAAQAElEQVR4Aex9CZgbxbFw1UhrG4wBQ2IgGLOWZJsstrT2cpldaYUhAeeCkBDySMhvCGeul5CDQEJMDs7cyUvI4wgkIadzwEvAnEYrrTmz9koGJ9iSbMDPAYcHBuNzpam/SlrtaqZH0mgvzeKZr0vdXV191XRXVx/T0sB9XA64HHA50CAOuAKoQYx3s3U54HIAwBVAbitwOeByoGEccAVQw1jvZuxywOWAK4DcNuBywOVAw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zItEXxN9ge1xYZwngCqwLb068e9MMnFSJhmXw2gMXcoFVhWiumiXA29qDqSLJ7u5TxT6RuS5nsS/xkuFx40AGi8MdcvpcsDlgH0OuALIPq9cSpcDLgdGmAOuABphhrrJjWcOuGUfaw64AmisOe7m53LA5cAAB1wBNMAK1+FywOXAWHPAFUBjzXE3P5cDLgcGOOAKoAFWuA6XAy4HxpoDrgAaa467+bkccDkwwAFXAA2wwnW4HHA5MNYccAXQWHPczc/lgMqBvRbjCqC99tW7FXc50HgOuAKo8e/ALYHLgb2WA64A2mtfvVtxlwON54ArgBr/DtwSuBzYazngCqC99tW7FXc50HgOuAKo8e/ALYHLgb2WA64A2mtfvVtxlwMAjebB/wcAAP//IdyLTwAAAAZJREFUAwBTnc484AdmxgAAAABJRU5ErkJggg=="/></switch></g></g></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="406" y="10" width="68" height="68" fill="none" stroke="none" pointer-events="all"/><path d="M 454.68 61.38 L 452.36 61.38 L 452.36 34.01 C 452.36 33.4 452 32.85 451.44 32.6 L 451.3 32.53 C 448.19 31.13 444.97 29.67 440.34 29.67 C 435.51 29.67 431.96 31.24 428.45 32.98 C 427.92 33.24 427.59 33.78 427.59 34.37 L 427.59 61.38 L 425.32 61.38 L 425.32 32.16 C 429.09 29.1 434.53 27.35 440.36 27.35 C 445.78 27.35 450.95 28.9 454.68 31.61 Z M 440.36 24.26 C 433.51 24.26 427.09 26.45 422.75 30.29 C 422.42 30.58 422.23 31 422.23 31.45 L 422.23 62.93 C 422.23 63.79 422.92 64.48 423.78 64.48 L 429.14 64.48 C 429.99 64.48 430.69 63.79 430.69 62.93 L 430.69 35.33 C 433.66 33.89 436.54 32.77 440.34 32.77 C 443.96 32.77 446.59 33.82 449.26 35.01 L 449.26 62.93 C 449.26 63.79 449.95 64.48 450.81 64.48 L 456.22 64.48 C 457.08 64.48 457.77 63.79 457.77 62.93 L 457.77 30.84 C 457.77 30.37 457.56 29.93 457.19 29.63 C 452.89 26.21 446.76 24.26 440.36 24.26 Z M 440 74.9 C 422.96 74.9 409.1 61.04 409.1 44 C 409.1 26.96 422.96 13.1 440 13.1 C 457.04 13.1 470.9 26.96 470.9 44 C 470.9 61.04 457.04 74.9 440 74.9 Z M 440 10 C 421.25 10 406 25.25 406 44 C 406 62.75 421.25 78 440 78 C 458.75 78 474 62.75 474 44 C 474 25.25 458.75 10 440 10 Z" fill="#8c4fff" stroke="none" pointer-events="all" style="fill: light-dark(rgb(140, 79, 255), rgb(177, 125, 255));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 85px; margin-left: 440px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #232F3E; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#232F3E, #bdc7d4); line-height: 1.2; pointer-events: all; white-space: nowrap; ">Internet<br />Gateway</div></div></div></foreignObject><image x="416.5" y="85.5" width="47" height="32" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAACACAYAAACx8QN9AAAQAElEQVR4Aex9CZxcRbX3qds9mSwkEMAgEmDS3SQ4JNOdjCxxMt1N8KmoKKJ5KorGBREUP8UdnwsqsujTp6Ig6gMFQQgPRUBFIPR0J6xfkulOiCTp7hkI8D4iW4ghy3Tf8/1Pb3O33jIzySy3f3VuVZ1zajt1qurcqntva+T+XAlMIAm4Cj+BOtttKpGr8K4WTCgJuAo/obrbbayr8K4OTCgJuAo/bN3tZjQWJOAq/FjoJbeOwyYBV+GHTZRuRmNBAq7Cj4Vecus4bBIYFoUPLOyO+INhtsBzw1ZLNyNXAsMkgWFReM5pUx3qM8UB56JcCdSXwAhyDIvCj2D9hpz17MWLpwSC4d/4g92/K4OvI3L+kDN2MxhRCfiC4bP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0FeEqvFUibnxUSSAQ6n7XnIVLgj6c6vtCkRO356bdjArKVjm8osMGwU2ZtbF0MVb76ip8bfm41AMpgWXLPMzqT5qu9cqpvmJ+lIls76zmPfqV1OBPa5DPZXMlMColgK3j/+5btyrZaOVchW9UUi5foxLYn3z37NX1LzZToKvwzUjL5R0tEpBDvG9m5h7x9qeKL8Q0XC9X4RsWlcu43yWwYkV+QNcPlVNpIrUUNnxn64A2PZOMyyHed2u+qELOP1fhneXiYkeJBGQGl1PpTLLngXQqsXbjxljjH/h1aIOr8A5CcVHjVwKuwo/fvnVb5iCBsaXwDg1wUa4EmpGAq/DNSMvlHfMScBV+zHeh24BmJOAqfDPScnnHvARchR/zXeg2oBkJuArfjLTGEe9EbYqr8BO15ydou12Fn6AdP1Gb7Sr8RO35CdpuV+EnaMdP1Ga7Cj9Re36CtnsEFH6CStJt9piQgKvwY6Kb3EoOlwRchR8uSbr5jAkJ/H8AAAD//w3ha2kAAAAGSURBVAMADjDu4vwvpPsAAAAASUVORK5CYII="/></switch></g></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="0" y="120" width="68" height="68" fill="none" stroke="none" pointer-events="all"/><path d="M 41.17 131.26 C 41.17 126.76 44.9 123.09 49.48 123.09 C 54.07 123.09 57.8 126.76 57.8 131.26 C 57.8 135.77 54.07 139.43 49.48 139.43 C 44.9 139.43 41.17 135.77 41.17 131.26 Z M 58.98 142.15 C 57.98 141.53 56.92 141.02 55.83 140.61 C 58.88 138.58 60.89 135.15 60.89 131.26 C 60.89 125.05 55.77 120 49.48 120 C 43.2 120 38.08 125.05 38.08 131.26 C 38.08 135.14 40.08 138.57 43.11 140.59 C 41.13 141.34 39.27 142.43 37.63 143.84 L 39.64 146.18 C 42.4 143.82 45.88 142.52 49.45 142.52 C 52.24 142.52 54.97 143.3 57.35 144.78 C 61.58 147.41 64.36 152.03 64.84 157.09 L 49.45 157.09 L 49.45 160.18 L 66.45 160.18 C 67.31 160.18 68 159.49 68 158.64 C 68 151.92 64.54 145.61 58.98 142.15 Z M 10.26 131.26 C 10.26 126.76 13.99 123.09 18.57 123.09 C 23.16 123.09 26.89 126.76 26.89 131.26 C 26.89 135.77 23.16 139.43 18.57 139.43 C 13.99 139.43 10.26 135.77 10.26 131.26 Z M 18.55 157.09 L 3.16 157.09 C 3.91 148.93 10.52 142.52 18.55 142.52 C 21.33 142.52 24.06 143.3 26.44 144.78 C 27.11 145.19 27.75 145.67 28.36 146.18 L 30.37 143.84 C 29.65 143.22 28.88 142.65 28.07 142.15 C 27.07 141.53 26.01 141.02 24.93 140.61 C 27.97 138.58 29.98 135.15 29.98 131.26 C 29.98 125.05 24.86 120 18.57 120 C 12.29 120 7.17 125.05 7.17 131.26 C 7.17 135.15 9.18 138.58 12.22 140.6 C 5.1 143.29 0 150.35 0 158.64 C 0 159.49 0.69 160.18 1.55 160.18 L 18.55 160.18 Z M 18.62 184.91 C 19.36 176.74 25.98 170.34 34 170.34 C 36.78 170.34 39.52 171.12 41.9 172.6 C 46.13 175.23 48.91 179.85 49.38 184.91 Z M 25.71 159.08 C 25.71 154.57 29.44 150.91 34.03 150.91 C 38.61 150.91 42.34 154.57 42.34 159.08 C 42.34 163.58 38.61 167.25 34.03 167.25 C 29.44 167.25 25.71 163.58 25.71 159.08 Z M 43.52 169.97 C 42.52 169.35 41.47 168.84 40.38 168.42 C 43.42 166.4 45.43 162.97 45.43 159.08 C 45.43 152.87 40.32 147.82 34.03 147.82 C 27.74 147.82 22.62 152.87 22.62 159.08 C 22.62 162.97 24.63 166.4 27.67 168.42 C 20.56 171.11 15.45 178.17 15.45 186.45 C 15.45 187.31 16.15 188 17 188 L 51 188 C 51.85 188 52.55 187.31 52.55 186.45 C 52.55 179.74 49.09 173.43 43.52 169.97 Z" fill="#232f3d" stroke="none" pointer-events="all" style="fill: light-dark(rgb(35, 47, 61), rgb(190, 200, 212));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 195px; margin-left: 34px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #232F3E; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#232F3E, #bdc7d4); line-height: 1.2; pointer-events: all; white-space: nowrap; ">Users</div></div></div></foreignObject><image x="18.5" y="195.5" width="31" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAABECAYAAABDN1F+AAAPdElEQVR4AexbC5hbRRU+M0m6FWxLUUGgLW1uusXSTVLWFso2D0F5iIKoCOILlX4UlU8F5aHyKYoICKK8QSvyUJAKiIAgjzab3UJBtt0EWFpIUh6lnxQoj9JSms0d/3O7d5v7SDb7JGVvvjl37pw5c2bm/DNzZ869keT9RpUFPMBHFdxEHuAe4KPMAqOsu94M9wAfZRYYZd31ZrgH+CizwCjr7ns1w0eZmeunuxbAtWj8QC0SVzZ6ayiaC52rQRbdoXD8yKHQ7emo3QIWwJWQO7kUHefCGwhrF3shRcqtPruYlx5CC1gAH0K9nqo6tYAHeJ0CM1zN8gAfLsvWqV4P8DoFZria5QE+XJatU72jDfA6hWHkmrXDAT6laf7EUCQ+WwsnD2O/wdSm5D7B5k9OGGKTiSmoZ1q4ZUawuWXK3s2xPaB/WG01Y3bLntyvqdHkVKrhl0wm/TPC8WmhaDIZDMcO5rLcVhSt2s6qmShcFyEYjR2hRWJL4bh5KyDlBkW0goR+Lyla5pP606J76xvIe0SLJk4P7b//+IE0mg0Iw30hGEncCF1vcj1S+FaJbt/z/m6xDrwSqB11LJg0c96utdYB+dO1SOI6k0LR+HfNsjyotEj8KtBb3brvJe6XT+lZM98eh2bHPoL2/Q7yq198XS92CyoopS8VQjzIZbmtyIMtEtdNb4rH7eU5XdeAa03zmzUALZS4m0gkiaiaE+gAUuoCtaVhLTp9LGRrDtP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YXcDcdHm8HsoAH+A4E1lA01QN8KKy4A+l4nwO+AyExQk31AB8hQ9dLNR7g9YLECLXDA3yEDF0v1XiA1wsSI9QOD/ARMnS9VOMBXi9IjFA7PMBHyND1Uo0H+LAgUb9KPcDrF5thaZkH+LCYtX6VeoDXLzbD0jIP8GExa/0q9QCvX2yGpWUe4MNi1vpV6gFev9gMS8s8wIfFrO+V0r7r9QDv20bvKwkP8PcVnH135v8AAAD//3Y5xH4AAAAGSURBVAMA8kXb1A8u8HAAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="8"><g><path d="M 68 154 L 440 154 L 440 87.74" fill="none" stroke="#545b64" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(84, 91, 100), rgb(154, 160, 168));"/><path d="M 440 80.24 L 445 90.24 L 440 87.74 L 435 90.24 Z" fill="#545b64" stroke="#545b64" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(84, 91, 100), rgb(154, 160, 168)); stroke: light-dark(rgb(84, 91, 100), rgb(154, 160, 168));"/></g></g><g data-cell-id="9"><g><path d="M 440 78 L 440 160.26" fill="none" stroke="#545b64" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(84, 91, 100), rgb(154, 160, 168));"/><path d="M 440 167.76 L 435 157.76 L 440 160.26 L 445 157.76 Z" fill="#545b64" stroke="#545b64" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(84, 91, 100), rgb(154, 160, 168)); stroke: light-dark(rgb(84, 91, 100), rgb(154, 160, 168));"/></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><rect x="90" y="130" width="80" height="20" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 78px; height: 1px; padding-top: 140px; margin-left: 91px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #545B64; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#545B64, #9aa0a8); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">HTTPS/HTTP</div></div></div></foreignObject><image x="91" y="134" width="78" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATgAAAA/CAYAAAB0DdRmAAAPoElEQVR4AexdDXAbxRV+72Q7CZA6/CQzkPCTmUz5CSmE/tAy/KRAS8NfSCyVRLJDsGQPdCAzadpSSlNCJ2WmbUqBTJlgS45JLNtBMk75C+1A8ZS2DHRaSvhpIIXpBJMQ6gQ8+bNj6bZvbUtZ3Z0s3VmSLflp9ul23759+/bb1fPu3t1aA/4wAowAI1CiCLCDK9GO5WYxAowAADs4HgWMACNQsgiwg8tj17JqRoARGFsE2MGNLf5cOyPACOQRAXZweQSXVTMCjMDYIsAObmzx59qdIsDlGIEsEMirg/N4PBWLly8/VSWyCYkch5qamhNVfT6f7wuqMqs6VflcxWU9knKlbyQ9sh61jTfV158wkvxIeaTLpeoabXxJdf3pbm9gidvnv7fKV7fZ4wu87vYF9hHtcvvq/lDlrdtA17vd1YEFo61LLX9zbe3URDvVMXDLihXTEnx5leNFLecgjlKPSvX19eWqHmOdqmyu4rIOWae85kpnOj2yDlmXSulkM/E9nu+dpOopdDyvDk5UVK53xSt6VPJU+68bTSOP6pPeUvX1w5Re9UdrVacqn6u4PqlyQyHrUjGbfFjvctoOsjnm9gX2EL1ItF46KFV3tnHpOGR5Teh7AKEDAB9EEDUC4KsAMINoDoD4NqK4i66PgoCXSf4jcnS3L1iwtgxG8ZH9XdGvfeoaHls0BvZLddKmsoGyzxJ8eaXx8prMc0pV1f5FUo9KBw6LdQl9VnWqsrmKy3Z5lt8xU15zpTOdHlmH13vnyYk2Up9dkU42E19UHDtI/X6UaEeVLxB2e+uWJvQW4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wAmOOADu4Me+CkjGAG8IIjDsE2MGNuy5hgxgBRiBXCLCDyxWSrIcRYATGHQLs4MZdl7BBjIAZAeY4Q4AdnDPcuBQjwAgUAQLs4Iqgk9hERoARcIYAOzhnuHEpRoARKAIEsnJwRdAONpERYAQYARMC7OBMkDCDEWAESgUBdnCl0pPcDkaAETAhwA7OBEmBGVwdI8AI5A2B/wMAAP//QwR5nwAAAAZJREFUAwDdXCMGUDAPqgAAAABJRU5ErkJggg=="/></switch></g></g></g></g></g></g></svg>\ No newline at end of filediff --git a/public/azure_demo.svg b/public/azure_demo.svgnew file mode 100644index 0000000..cff56a8--- /dev/null+++ b/public/azure_demo.svg@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?>+<!-- Do not edit this file with editors other than draw.io -->+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">+<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="661px" height="351px" viewBox="0 0 661 351" content="<mxfile host="embed.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36" version="29.0.3" scale="1" border="0"> <diagram id="gKZJNrPshzLRt4EOI82q" name="Page-1"> <mxGraphModel dx="703" dy="665" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" /> <mxCell id="2" value="Azure Cloud" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#0078D4;strokeColor=#0078D4;fontColor=#FFFFFF;fontSize=16;fontStyle=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=5;" parent="1" vertex="1"> <mxGeometry x="200" y="150" width="500" height="350" as="geometry" /> </mxCell> <mxCell id="3" value="Resource Group" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#4CAF50;fontSize=12;fontStyle=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=5;dashed=1;dashPattern=5 5;" parent="1" vertex="1"> <mxGeometry x="230" y="200" width="440" height="270" as="geometry" /> </mxCell> <mxCell id="4" value="Virtual Network" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#2196F3;fontSize=11;fontStyle=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=5;dashed=1;dashPattern=3 3;" parent="1" vertex="1"> <mxGeometry x="260" y="240" width="380" height="200" as="geometry" /> </mxCell> <mxCell id="5" value="" style="aspect=fixed;html=1;points=[];align=center;image;fontSize=12;image=img/lib/azure2/compute/Virtual_Machine.svg;" parent="1" vertex="1"> <mxGeometry x="410" y="310" width="68" height="64" as="geometry" /> </mxCell> <mxCell id="6" value="Frontend Instance&lt;br&gt;(Azure VM)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="394" y="380" width="100" height="40" as="geometry" /> </mxCell> <mxCell id="7" value="" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#232F3D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.users;" parent="1" vertex="1"> <mxGeometry x="40" y="308" width="68" height="68" as="geometry" /> </mxCell> <mxCell id="8" value="Users" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="44" y="380" width="60" height="30" as="geometry" /> </mxCell> <mxCell id="9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#0078D4;endArrow=classic;endFill=1;" parent="1" source="7" target="5" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="10" value="HTTPS" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=11;fontStyle=1;backgroundColor=#FFFFFF;" parent="9" vertex="1" connectable="0"> <mxGeometry x="-0.1" y="2" relative="1" as="geometry"> <mxPoint x="5" y="-8" as="offset" /> </mxGeometry> </mxCell> <mxCell id="11" value="" style="aspect=fixed;html=1;points=[];align=center;image;fontSize=12;image=img/lib/azure2/networking/Public_IP_Addresses.svg;" parent="1" vertex="1"> <mxGeometry x="300" y="310" width="65" height="52" as="geometry" /> </mxCell> <mxCell id="12" value="Public IP" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=10;" parent="1" vertex="1"> <mxGeometry x="297.5" y="365" width="70" height="20" as="geometry" /> </mxCell> <mxCell id="13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=1.5;strokeColor=#666666;endArrow=none;endFill=0;dashed=1;dashPattern=3 3;" parent="1" source="11" target="5" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> </mxfile> "><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(#ffffff, var(--ge-dark-color, #121212));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="160" y="0" width="500" height="350" rx="52.5" ry="52.5" fill="#0078d4" stroke="#0078d4" pointer-events="all" style="fill: light-dark(rgb(0, 120, 212), rgb(63, 166, 245)); stroke: light-dark(rgb(0, 120, 212), rgb(63, 166, 245));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 488px; height: 1px; padding-top: 12px; margin-left: 172px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #FFFFFF; "><div style="display: inline-block; font-size: 16px; font-family: Helvetica; color: light-dark(#FFFFFF, #121212); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Azure Cloud</div></div></div></foreignObject><image x="172" y="12.5" width="488" height="23" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB6AAAABcCAYAAADApKvMAAAQAElEQVR4AezdebhkVXkv4G6RQRFBRdE4oQFEjQgxEY0zDnBR43DlgopXcZ4icYqK+lw1zjPmOl+IwxNRIxpHEBVznYeoqFcDTjgjQSUgIoPY9/cd+3S6q09VrV3DOVXVbz/rq12197fWXuutOv3PV3vX5db5R4AAAQIECBAgQIAAAQIECCy6gPURIECAAAECBAgQIECAAIFVEVCAXhXmfiexnwABAgQIECBAgAABAgQIEFh8ASskQIAAAQIECBAgQIDAtiOgAL3tvNdW2ivgNQECBAgQIECAAAECBAgQILD4AlZIgAABAgQIECBAgMCqCihAryq3kxEgsCxgS4AAAQIECBAgQIAAAQIECCy+gBUSIECAAAECBAhsewIK0Nvee27FBAgQIECAAAECBAgQIECAAAECBAgsvoAVEiBAgAABAgTWREABek3YnZQAAQIEtl0BKydAgAABAgQIECBAgAABAgQWX8AKCRAgQIDAtiugAL3tvvdWToAAAQIEtj0BKyZAgAABAgQIECBAgAABAgQWX8AKCRAgQGBNBRSg15TfyQkQIECAAAEC246AlRIgQIAAAQIECBAgQIAAAQKLL2CFBAgQUID2GSAwBYENGzbsn3hE4nmJ4xMnJz6ROCHx0sTjE4cm9pnC6Q1JgAABAgQIEOgV8JoAAQIECBAgQIAAAQIECBBYfAErJDATAhMpQKeI9pDE9zvEg2di9SZBYEIC+ezvlHhC4nOJizLs1xJvSjw7c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UFf5Go342uYnx92aCKn3VL5Z2SU0XGv8r2xYlzkjc3LfM9P/GaRH2BZXm99b7eKIuoNd8q21pnva/1JYhaa33m35A+VWjN4cm3jF1ffHhStlVM3j/b6yTqb26/bO+XeH6iivRVAJ7ABNqHyHl/mfi7xPUT9f7XZ6Sujl76u8i+cqwrnp+T51Mzap+xTAIECBAgQIAAAQIECBAgQOCPAh4JECBAgAABAgRaBar40Zorj8DEBFJcq9s5n57tNxKdbgU9sUmswkC1tsRXEicmPpyoLxtU8bNu373qBdBpLznrq/f1O9nWmr+Yba2zrmyf9qnndvwY/SpRdwaY2zWs6cSdnAABAgQIECBAgAABAgQIEFh8ASskQIAAAQIE5kpAAXqu3i6TJUCAAAECsyNgJgQIECBAgAABAgQIECBAgMDiC1ghAQIECBDoKqAA3VVMPgECBAgQIEBg7QXMgAABAgQIECBAgAABAgQIEFh8ASskQIDAXAooQM/l22bSBAgQIECAAAECayfgzAQIECBAgAABAgQIECBAgMDiC1ghAQKjCihAjyqnHwECBAgQIECAAAECqy/gjAQIECBAgAABAgQIECBAgMDiC1jhXAsoQM/122fyBAgQIECAAAECBAgQWD0BZyJAgAABAgQIECBAgAABAgQWX2DcFSpAjyuoPwECBAgQIECAAAECBAgQmL6AMxAgQIAAAQIECBAgQIAAgbkQUIAe623SmQABAgQIECBAgAABAgQIEFh8ASskQIAAAQIECBAgQIAAgVYBBehWKXmzJ2BGBAgQIECAAAECBAgQIECAwOILWCEBAgQIECBAgAABAnMloAA9V2+XyRKYHQEzIUCAAAECBAgQIECAAAECBBZfwAoJECBAgAABAgQIdBVQgO4qJp8AAQJrL2AGBAgQIECAAAECBAgQIECAwOILWCEBAgQIECBAYC4FFKDn8m0zaQIECBBYOwFnJkCAAAECBAgQIECAAAECBBZfwAoJECBAgACBUQUUoEeV048AAQIECBBYfQFnJECAAAECBAgQIECAAAECBBZfwAoJECBAYK4FFKDn+u0zeQIECBAgQIDA6gk4EwECBAgQIECAAAECBAgQILD4AlZIgACBcQUUoMcV1J8AAQIECBAgQIDA9AWcgQABAgQIECBAgAABAgQIEFh8ASsksBACCtAL8TZaBAECBAgQIECAAAEC0xMwMgECBAgQIECAAAECBAgQILD4AlY4KQEF6ElJGocAAQIECBAgQIAAAQIEJi9gRAIECBAgQIAAAQIECBAgQGCuBEYqQM/VCk2WAAECBAgQIECAAAECBAgQGElAJwIECBAgQIAAAQIECBAg0FVAAbqr2NrnmwEBAgQIECBAgAABAgQIECCw+AJWSIAAAQIECBAgQIAAgbkUUICey7fNpNdOwJkJECBAgAABAgQIECBAgACBxRewQgIECBAgQIAAAQIERhVQgB5VTj8CBFZfwBkJECBAgAABAgQIECBAgACBxRewQgIECBAgQIAAgbkWUICe67fP5AkQILB6As5EgAABAgQIECBAgAABAgQILL6AFRIgQIAAAQIExhVQgB5XUH8CBAgQIDB9AWcgQIAAAQIECBAgQIAAAQIEFl/ACgkQIECAwEIIKEAvxNtoEQQIECBAgMD0BIxMgAABAgQIECBAgAABAgQILL6AFRIgQIDApAQUoCclaRwCBAgQIECAAIHJCxiRAAECBAgQIECAAAECBAgQWHwBKyRAYKEEFKAX6u20GAIECBAgQIAAAQKTEzASAQIECBAgQIAAAQIECBAgsPgCVkhg0gIK0JMWNR4BAgQIECBAgAABAgTGFzACAQIECBAgQIAAAQIECBAgsPgCC7lCBeiFfFstigABAgQIECBAgAABAgRGF9CTAAECBAgQIECAAAECBAgQGFVgfgrQo65QPwIECBAgQIAAAQIECBAgQGB+BMyUAAECBAgQIECAAAECBOZaQAF6rt++1Zu8MxEgQIAAAQIECBAgQIAAAQKLL2CFBAgQIECAAAECBAgQGFdAAXpcQf0JTF/AGQgQIECAAAECBAgQIECAAIHFF7BCAgQIECBAgAABAgshoAC9EG+jRRAgMD0BIxMgQIAAAQIECBAgQIAAAQKLL2CFBAgQIECAAAECkxJQgJ6UpHEIECBAYPICRiRAgAABAgQIECBAgAABAgQWX8AKCRAgQIAAgYUSUIBeqLfTYggQIECAwOQEjESAAAECBAgQIECAAAECBAgsvoAVEiBAgACBSQv8fwAAAP//jOxwnQAAAAZJREFUAwB562BAFsORDgAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="190" y="50" width="440" height="270" fill="#e8f5e9" stroke="#4caf50" stroke-dasharray="5 5" pointer-events="all" style="fill: light-dark(rgb(232, 245, 233), rgb(21, 33, 22)); stroke: light-dark(rgb(76, 175, 80), rgb(50, 135, 54));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 428px; height: 1px; padding-top: 62px; margin-left: 202px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Resource Group</div></div></div></foreignObject><image x="202" y="62.5" width="428" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABrAAAABECAYAAADJAXUSAAAQAElEQVR4Aeydedx+5ZzH74asjZ2QLImEsTWqEQajEImSrbLUSCYNWixJNJqE8BKy0xAaW4kWayGEMJmxJUm2FkKTmZjSfN5Pv/v3O895znY/930/9/K8f6/v976u8/1e13XO9T7nPH+c7+97XX/V858EJCABCUhAAhKQgAQkIAEJSEAC807A+UlAAhKQgAQkIAEJSGCmCBjAmqnb5cVKQALTQ8ArkYAEJCABCUhAAhKQgAQkIAEJSGD+CThDCUhAAhKYFAEDWJMi73klIAEJSEACEpDAaiTgnCUgAQlIQAISkIAEJCABCUhAAhKYfwIjmKEBrBFAdAgJSEACEpCABCQgAQlIQAISkMA4CTi2BCQgAQlIQAISkIAEVhsBA1ir7Y47XwlIAAKqBCQgAQlIQAISkIAEJCABCUhAAvNPwBlKQAISkM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gAQkIAEJSEAC80/AGUpAAhKQwEQIGMCaCHZPKgEJSEACEpCABFYvAWcuAQlIQAISkIAEJCABCUhAAhKQwPwTGHaGBrCGJWh/CUhAAhKQgAQkIAEJSEACEpDA+Al4BglIQAISkIAEJCABCawqAgawVtXtdrISkMA6AtYkIAEJSEACEpCABCQgAQlIQAISmH8CzlACEpCABGaVgAGsWb1zXrcEJCABCUhAAhKYBAHPKQEJSEACEpCABCQgAQlIQAISkMD8E5iCGRrAmoKb4CVIQAISkIAEJCABCUhAAhKQwHwTcHYSkIAEJCABCUhAAhKQwGAE/h8AAP//FXSAdwAAAAZJREFUAwC0usvFL7vx3wAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="220" y="90" width="380" height="200" fill="#e3f2fd" stroke="#2196f3" stroke-dasharray="3 3" pointer-events="all" style="fill: light-dark(rgb(227, 242, 253), rgb(20, 33, 42)); stroke: light-dark(rgb(33, 150, 243), rgb(38, 139, 219));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 368px; height: 1px; padding-top: 102px; margin-left: 232px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Virtual Network</div></div></div></foreignObject><image x="232" y="102.5" width="368" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABcAAAAA/CAYAAADHT2uJAAAQAElEQVR4Aeydd5QsR3WHB4MwySKZYIHI2CSTs0EGDMJkEDlHH8AEE2ySTc5BGIPJB2MyAkQyGAyYKHIy2UQhgmTBEWCMiBL49612nnp7qrp7Znd2J3z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ABCUhAAhKQwOIScGYSkIAEJCABCUhAAhKQQIWAAfAKGM0SkMAyEnDOEpCABCQgAQlIQAISkIAEJCABCaw+AVcogeEEDIAPZ6WnBCQgAQlIQAISkIAEJCCBxSLgbCQgAQlIQAISkIAEOgkYAO/EY6MEJCABCSwLAecpAQlIQAISkIAEJCABCUhAAhKQwOoTmHaFBsCnJaa/BCQgAQlIQAISkIAEJCABCUhg7wk4AwlIQAISkIAEBhAwAD4Aki4SkIAEJCABCSwyAecmAQlIQAISkIAEJCABCUhAAhIoEzAAXuaynFZnLQEJSEACEpCABCQgAQlIQAISkMDqE3CFEpCABCQwmIAB8MGodJSABCQgAQlIQAISWDQCzkcCEpCABCQgAQlIQAISkEAXAQPgXXRsk8DyEHCmEpCABCQgAQlIQAISkIAEJCABCaw+AVcoAQlMScAA+JTAdJeABCQgAQlIQAISkIAEFoGAc5CABCQgAQlIQAISkEA/AQPg/Yz0kIAEJLDYBJydBCQgAQlIQAISkIAEJCABCUhAAqtPwBXORMAA+EzY7CQBCUhAAhKQgAQkIAEJSEACe0XA+0pAAhKQgAQkIIGhBAyADyWlnwQkIAEJSGDxCDgjCUhAAhKQgAQkIAEJSEACEpCABDoIrEgAvGOFNklAAhKQgAQkIAEJSEACEpCABCSwIgRchgQkIAEJSGA6AgbAp+OltwQkIAEJSEACElgMAs5CAhKQgAQkIAEJSEACEpCABHoJGADvRaTDohNwfhKQgAQkIAEJSEACEpCABCQgAQmsPgFXKAEJSGAWAgbAZ6FmHwlIQAISkIAEJCABCewdAe8sAQlIQAISkIAEJCABCQwkYAB8ICjdJCCBRSTgnCQgAQlIQAISkIAEJCABCUhAAhJYfQKuUAKzEzAAPjs7e0pAAhKQgAQkIAEJSEACEthdAt5NAhKQgAQkIAEJSGAqAv8PAAD///UHuwwAAAAGSURBVAMADIlVrAr8sgsAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="5"><g><image x="370" y="160" width="68" height="64" xlink:href="data:image/svg+xml;base64,PD94bWwgdmV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EgMSwxIDAgMCAwIC0wLjg5LC0xIHoiCiAgICAgaWQ9InBhdGg5NjA2IgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc3R5bGU9ImZpbGw6dXJsKCNiZGI0NWEwYi1lYjU4LTQ5NzAtYTYwYS1mYjJjZTMxNGY4NjYpIiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTk2MDgiPgogICAgPHJkZjpSREY+CiAgICAgIDxyZGY6bGk+cHVibGljOnRydWU8L3JkZjpsaT4KICAgICAgPHJkZjpsaT5zZGs6TXNQb3J0YWxGeC5CYXNlLkltYWdlcy5Qb2x5Y2hyb21hdGljLlZpcnR1YWxNYWNoaW5lKCk8L3JkZjpsaT4KICAgICAgPHJkZjpsaT5jYXRlZ29yeTogQ29tcHV0ZTwvcmRmOmxpPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICAgIDxkYzp0aXRsZT5JY29uLWNvbXB1dGUtMjE8L2RjOnRpdGxlPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KPC9zdmc+Cg=="/></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="354" y="230" width="100" height="40" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 237px; margin-left: 355px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Frontend Instance<br />(Azure VM)</div></div></div></foreignObject><image x="355" y="237.5" width="98" height="46" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYgAAAC4CAYAAAD5Tns/AAAQAElEQVR4AeydBbwsS3Xuh4e7a4DgvBCc4O7BIbi720OC+8Vd8oLeCwQIfoHgDsE9QIIGuLgEdyff/9zd+/buXauqeqZ7pmfmO7+1TlXXWiX91exa5f1/Zv5nBIyAETACRiCBgA1EAhQHGQEjYASMwGxmA+FfgRFYVwRcbiMwMgI2ECMD7OSNgBEwAuuKgA3Eutacy20EjIARGBkBG4jRAHbCRsAIGIH1RsAGYr3rz6U3AkbACIyGgA3EaNA6YSNgBNYVAZf7cARsIA7HYVX/H0UZH2dkdh0LYNPkETimShj9Lfg3LHBWQQZ+FagfkecT5P3FyHwTpW8yAlNH4DAVMPpbuK5kphUgYAOxAtBbWR695R/Le7SxEl5Zus54ExFgBBG911EjgcPHRcAGYlx8nfrmIHBbvcpfAj5Y4SYjsHEI2EBsXJX6hUZC4NiZdJk7z4gtMgLricAIBmI9gXCpjYARMAJGYC8CNhB78fCTETACRsAI7CBgA7EDxESd56pcj1uQP6r4JiNQhYCVjEAbARuINhrT8z9ERbrfgvwZxTcZASNgBHojYAPRG7K1j3BCvcHJE0y4gneJLbjX1NN9xc8THyq+lLiGziqlO4tfKn63+Ivi74u/In6/mLQeKPf84iOL+9AxpMyicJePpfA2cQjxKgq4h/gZ4leJce8ul/BTy101UQ83ViGeLH6J+J3it4mfL360mDMsJ5Lbh6aEz6lU8FuLHyN+gfgV4qeJ7yk+s9g0cQRsICZeQXuKN8zDj5XM9xL8dYU1xMGkz+nhNeLHivkjv5bc04lzdAUJ/0v8BfE/iW8gxqicRe7JxGcQX1RMWo+U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1O1+UdU3kRlrt3irKgY65AwAaiAqSWSm6aicNlLVV7WwhwcRufUaVx4QoPGm2mbzBcHERsqU7Sy62gX1DJ2Eb6KLkYJIwGozMaI+qeQ4i8p8SmFSKAIYmmN5nGxKAPVLzNT8YGol8dc0bgcUEUtj9yCV4gdrARMAJLQIANI5znSWV1kALnnXJU1O0jG4j+df6UTJTbZGQWGQEjMD4CdwiyYPRwSCBzcICADUQATCaYufLHB3KmGkpXDAdRHTwwAk5u+xBgBM/OsdSbP1KB0SK6RKYUAjYQKVTKYY+RCj0SOXuI08v32BPiByNgBJaFABsIUnmxC+3ZKYHD8gjYQOTxiaRsTb11IORHyja7QOxgI2AERkCAdQfuH0slTXjtlwVT8bc2bGUGYgMQf4Pegfts5Oyj++wLcYARMAJjIsDuuFT67Jirve4jFX+rw2wgFqt+ttOlDs/dU8lyIZ2Nycy+AAABLElEQVQckxEwAiMjcB6ln7rzjHMqkeFQFFMJARuIEkJ5OXv4+WFydL/LuY+V5FO11AhMGoHJFe4EKlH3749nFqz5JoXEpnkQsIGYB7W9cbjq4sYK6vKqT9OqSCYjsBUIcO169++P569txduP+JI2ECOC66SNgBEwAuuMgA3EOtdeuuwONQJGwAgMgoANxCAwOhEjYASMwOYhYAOxeXXqNzICRmBdEZhYuW0gJlYhLo4RMAJGYCoI2EBMpSZcDiNgBIzAxBCwgZhYhbg4U0bAZTMC24WADcR21bff1ggYASNQjYANRDVUVjQCRsAIbBcCm2Qgtqvm/LZGwAgYgZERsIEYGWAnbwSMgBFYVwRsINa15lxuI7BJCPhdJomADcQkq8WFMgJGwAisHoH/BQAA//8Q2u3XAAAABklEQVQDAMoUhdqUTzlkAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="0" y="158" width="68" height="68" fill="none" stroke="none" pointer-events="all"/><path d="M 41.17 169.26 C 41.17 164.76 44.9 161.09 49.48 161.09 C 54.07 161.09 57.8 164.76 57.8 169.26 C 57.8 173.77 54.07 177.43 49.48 177.43 C 44.9 177.43 41.17 173.77 41.17 169.26 Z M 58.98 180.15 C 57.98 179.53 56.92 179.02 55.83 178.61 C 58.88 176.58 60.89 173.15 60.89 169.26 C 60.89 163.05 55.77 158 49.48 158 C 43.2 158 38.08 163.05 38.08 169.26 C 38.08 173.14 40.08 176.57 43.11 178.59 C 41.13 179.34 39.27 180.43 37.63 181.84 L 39.64 184.18 C 42.4 181.82 45.88 180.52 49.45 180.52 C 52.24 180.52 54.97 181.3 57.35 182.78 C 61.58 185.41 64.36 190.03 64.84 195.09 L 49.45 195.09 L 49.45 198.18 L 66.45 198.18 C 67.31 198.18 68 197.49 68 196.64 C 68 189.92 64.54 183.61 58.98 180.15 Z M 10.26 169.26 C 10.26 164.76 13.99 161.09 18.57 161.09 C 23.16 161.09 26.89 164.76 26.89 169.26 C 26.89 173.77 23.16 177.43 18.57 177.43 C 13.99 177.43 10.26 173.77 10.26 169.26 Z M 18.55 195.09 L 3.16 195.09 C 3.91 186.93 10.52 180.52 18.55 180.52 C 21.33 180.52 24.06 181.3 26.44 182.78 C 27.11 183.19 27.75 183.67 28.36 184.18 L 30.37 181.84 C 29.65 181.22 28.88 180.65 28.07 180.15 C 27.07 179.53 26.01 179.02 24.93 178.61 C 27.97 176.58 29.98 173.15 29.98 169.26 C 29.98 163.05 24.86 158 18.57 158 C 12.29 158 7.17 163.05 7.17 169.26 C 7.17 173.15 9.18 176.58 12.22 178.6 C 5.1 181.29 0 188.35 0 196.64 C 0 197.49 0.69 198.18 1.55 198.18 L 18.55 198.18 Z M 18.62 222.91 C 19.36 214.74 25.98 208.34 34 208.34 C 36.78 208.34 39.52 209.12 41.9 210.6 C 46.13 213.23 48.91 217.85 49.38 222.91 Z M 25.71 197.08 C 25.71 192.57 29.44 188.91 34.03 188.91 C 38.61 188.91 42.34 192.57 42.34 197.08 C 42.34 201.58 38.61 205.25 34.03 205.25 C 29.44 205.25 25.71 201.58 25.71 197.08 Z M 43.52 207.97 C 42.52 207.35 41.47 206.84 40.38 206.42 C 43.42 204.4 45.43 200.97 45.43 197.08 C 45.43 190.87 40.32 185.82 34.03 185.82 C 27.74 185.82 22.62 190.87 22.62 197.08 C 22.62 200.97 24.63 204.4 27.67 206.42 C 20.56 209.11 15.45 216.17 15.45 224.45 C 15.45 225.31 16.15 226 17 226 L 51 226 C 51.85 226 52.55 225.31 52.55 224.45 C 52.55 217.74 49.09 211.43 43.52 207.97 Z" fill="#232f3d" stroke="none" pointer-events="all" style="fill: light-dark(rgb(35, 47, 61), rgb(190, 200, 212));"/></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="4" y="230" width="60" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 58px; height: 1px; padding-top: 237px; margin-left: 5px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Users</div></div></div></foreignObject><image x="5" y="237.5" width="58" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOgAAABECAYAAACLd3ntAAAKfElEQVR4AeycBcgtRRTHr92JqPhUbEVBRbFQ7G4RBQtsLOyWZ7cgit2BioVio4LdimI+C8XuTuz/7/PtY+8yOzt77/Y9H+d8MzvnTOx/9tzZnTkzk/fszxAwBBqLgBloY7vGGmYI9HpmoPYUGAINRsAMtMGdY00zBMxA63sGrGZDIBMBM9BMiEzBEKgPATPQ+rC3mg2BTATMQDMhMgVDoD4EumigUwjOuTw8tWR5aVZlSCtzNsmM2oVAa1rbRQPdUuh/7uGDJctLbylDWpkfSGZkCJSCQBcNdMoMpLLkruzT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G46AGWjDO8iaN9oI1Gugo4293b0hkImAGWgmRKZgCNSHwH8AAAD//5bF41oAAAAGSURBVAMAUfzsmHUSLosAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="9"><g><path d="M 68 192 L 361.76 192" fill="none" stroke="#0078d4" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 120, 212), rgb(63, 166, 245));"/><path d="M 367.76 192 L 359.76 196 L 361.76 192 L 359.76 188 Z" fill="#0078d4" stroke="#0078d4" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 120, 212), rgb(63, 166, 245)); stroke: light-dark(rgb(0, 120, 212), rgb(63, 166, 245));"/></g><g data-cell-id="10"><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 183px; margin-left: 210px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; background-color: #ffffff; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); white-space: nowrap; ">HTTPS</div></div></div></foreignObject><image x="192" y="177" width="36" height="15.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAA/CAYAAAAPDEGDAAAIiUlEQVR4AexcV4gWPxCfPQt2VFRsIIjlVNRDUUR9ONQHe69YUCwIFlCwgCIIgu1BRdEXCxbs2H1QsWFXVBQVuwj2gte4u4e7+//vF8y6Lbv79f32m8Nhk5lkkkx+XzbJzJr1H/+xBWKwQBbxH1sgBgswgGIwHlclYgAxCmKyAAMoJvNxZQYQYyAmCzCAYjJf+lcuKyujnz9/Ep7RjMYEoI8fP9LLly9t9OrVK5t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ByC1wG2d+Y0W3tKZpbmLxMZtrAYuwRo0aFs6/bK1atf5l4pCKd1vx1hfpEHEqw60yjvCIEYq0PlwncKFgw92sWTNbdROAEDSP450TIRDbVlvBwNeOTjokz++3SVI9rvJlXesTvwpZLh7PeLeFDaq1zzIPH1c8+uxHBza9R48eFZ8z48NA7GPWrFlDCK7Pzc0lGTAG9wUCyBB8D9cHnLfWVcfYnglARgGnw2kBXDQCLJMnT6YVK1bQzp07CZ+OA1QI8cAXqYjB7tu3r/j02csKDCAvC0Ujz6A6DKAMmuxEDJUBlAirZpBOBlAGTXYihsoASoRVM0gnAyiDJjsRQ2UAJcKqGaSTARSoyU6/zjCA0m/OAtVjBlCgpiP9OpOl8R9bIAYL8AqUfj/6QPWYARSo6Ui/zjCA0m/OAtVjBlCgpiPqzqSsIgMoZaYPR8MMoHDMY8pGwQBKmenD0TADKBzzmLJRMIBSZvpwNMwACsc8pmwU/wMAAP//PAC5iAAAAAZJREFUAwCluO3ZE0XKIAAAAABJRU5ErkJggg=="/></switch></g></g></g></g><g data-cell-id="11"><g><image x="260" y="160" width="65" height="52" xlink:href="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQ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MiCiAgICAgaGVpZ2h0PSIxLjQ2IgogICAgIHJ4PSIwLjI4IgogICAgIGlkPSJyZWN0Njc2MTIiCiAgICAgc3R5bGU9ImZpbGw6I2YyZjJmMiIgLz4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGE2NzYxNCI+CiAgICA8cmRmOlJERj4KICAgICAgPHJkZjpsaT5wdWJsaWM6dHJ1ZTwvcmRmOmxpPgogICAgICA8cmRmOmxpPnNkazpNc1BvcnRhbEZ4LkJhc2UuSW1hZ2VzLlBvbHljaHJvbWF0aWMuSXBBZGRyZXNzKCk8L3JkZjpsaT4KICAgICAgPHJkZjpsaT5jYXRlZ29yeTogTmV0d29ya2luZzwvcmRmOmxpPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICAgIDxkYzp0aXRsZT5JY29uLW5ldHdvcmtpbmctNjk8L2RjOnRpdGxlPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KPC9zdmc+Cg=="/></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><rect x="257.5" y="215" width="70" height="20" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 68px; height: 1px; padding-top: 222px; margin-left: 259px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 10px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Public IP</div></div></div></foreignObject><image x="259" y="222.5" width="68" height="14.5" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAA6CAYAAAB4SgbxAAAKU0lEQVR4AeydBaw0RRLH9+5ynnPl7pJzd8td7vDg7hAgkGCBoMHdJUjw4BCCuwR3gksCQYM7BAnuzv/HezPpr77pmdmd3Z3ZmXqpet1V7dUzNS3VvZ/t+Z9LwCXgEhhQAq5ABhScJ3MJuAR6PVcg/hS4BFwCA0vAFcjAovOEXZeAt99HIP4MuARcAhUk4COQCsLzpC6BrkvAFUjXnwBvv0ugggRcgVQQXpeTettdAkjAFQhScHQJuAQGkoArkIHE5olcAi4BJNBFBfIDNfyXfeLPFP/zwibAX1WJ/03j3+UOC2hfKJdvZWQML4zzpYw4dbNsO36eU6GvKyxsT1n/V5XOQRLoogI5T+1+qE98VPHfE94vPE24iLAuuFYFXz+Nt8kdFsyljEK5HCDawj5ihHGWEN00sO14RBVE8cmZCbYUJ2xPWf8bSvek8HzhekKUlpzuQRcVSJVe/o0SLytECfHw/Er+tsJnMhpmn5esOBnJamfF6hnjl6nwTxRpYeFBwruFKC453QL7QHSr9dVay8PDCODH1bLx1C2QAB+WK9WOBYWdAlcgvd4D6vGjI3iM+KcLmTbImQm+Js6RwipfMiV3aIgEXlc9Ys8C/JMUfpnweWEWHCvmt4Wdgb4VSAslw0OxhtqVhauLv5xwduFXhGsLLfDVWd4yW0rvrnbNE+Al8rcJ7lRjsp6DhLeSwucTziJkyoLCkTeF78u3m7Az4AqkfFe/raiHC5cUWuClsrw20g+qUVcE+JL8XYSP1Oirhf8W2tFInQvsqs54wRVI//I+R0mY78pJ4S+pzz1dkgC7cgeaBrO4ytTWsNtJugIZrF+vM8n4En3O8BiprCAeyM6NDVfQTPBPcYif4PdEl4XfKyJTLubqD8vPw32i3E2FcwqHAew6MXRPsMx8nxdqZRW+n/BG4XPTeJVcRnRsBU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bYUyWHO5VHHygK8/eSbIjynZ+KxbJOG4Z9oIhr5cNPXFoGwh+RkB7SCXfFAu1Isf5eJHrcUeCth2UM+YyT+yIjxBzrgMpRJdyaSLCqSuvn1FBV8j5P4QXiJ2J24QHY4oRAIDIedO2G3hgiQOenFCdC/lRBkoJ3lrg2S9hxEQyvMw1QTlYneqxHaYJAm4Apmk3vK6ugQaJgFXIA3rEK+OS2CSJOAKZJJ6y+vqEmiYBBqoQBomIa+OS8AlEJWAK5CoaDzAJeASKJKAK5AiCXm4S8AlEJWAK5CoaDzAJTBxEhh7hV2BjF3kXqBLoD0ScAXSnr70lrgExi4BVyBjF7kX6BJojwRcgbSnL7veEm9/DRJwBVKD0L1Il0BbJOAKpC096e1wCdQgAVcgNQjdi3QJtEUCrkDa0ZPeCpdALRJwBVKL2L1Ql0A7JPAJAAAA//8a9Cg5AAAABklEQVQDAHgSjoRInmb/AAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="13"><g><path d="M 325 186 L 347.5 186 L 347.5 192 L 370 192" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" stroke-dasharray="4.5 4.5" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g></g></g></g></svg>\ No newline at end of filediff --git a/public/cat_demo.svg b/public/cat_demo.svgnew file mode 100644index 0000000..a01a60a--- /dev/null+++ b/public/cat_demo.svg@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?>+<!-- Do not edit this file with editors other than draw.io -->+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">+<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="229px" height="359px" viewBox="0 0 229 359" content="<mxfile host="embed.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36" version="29.0.3" scale="1" border="0"> <diagram id="XRVL8YUusKZ-GLAntJ4K" name="Page-1"> <mxGraphModel dx="703" dy="665" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" /> <mxCell id="2" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;" parent="1" vertex="1"> <mxGeometry x="300" y="200" width="120" height="120" as="geometry" /> </mxCell> <mxCell id="3" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;rotation=30;" parent="1" vertex="1"> <mxGeometry x="280" y="170" width="40" height="50" as="geometry" /> </mxCell> <mxCell id="4" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;rotation=-30;" parent="1" vertex="1"> <mxGeometry x="400" y="170" width="40" height="50" as="geometry" /> </mxCell> <mxCell id="5" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#000000;strokeColor=#000000;" parent="1" vertex="1"> <mxGeometry x="325" y="235" width="15" height="15" as="geometry" /> </mxCell> <mxCell id="6" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#000000;strokeColor=#000000;" parent="1" vertex="1"> <mxGeometry x="380" y="235" width="15" height="15" as="geometry" /> </mxCell> <mxCell id="7" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FF99CC;strokeColor=#FF99CC;rotation=180;" parent="1" vertex="1"> <mxGeometry x="350" y="260" width="20" height="15" as="geometry" /> </mxCell> <mxCell id="8" value="" style="curved=1;endArrow=none;html=1;strokeColor=#000000;strokeWidth=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="360" y="275" as="sourcePoint" /> <mxPoint x="340" y="290" as="targetPoint" /> <Array as="points"> <mxPoint x="350" y="285" /> </Array> </mxGeometry> </mxCell> <mxCell id="9" value="" style="curved=1;endArrow=none;html=1;strokeColor=#000000;strokeWidth=2;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="360" y="275" as="sourcePoint" /> <mxPoint x="380" y="290" as="targetPoint" /> <Array as="points"> <mxPoint x="370" y="285" /> </Array> </mxGeometry> </mxCell> <mxCell id="10" value="" style="endArrow=none;html=1;strokeColor=#666666;strokeWidth=1.5;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="310" y="260" as="sourcePoint" /> <mxPoint x="260" y="250" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="11" value="" style="endArrow=none;html=1;strokeColor=#666666;strokeWidth=1.5;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="310" y="270" as="sourcePoint" /> <mxPoint x="260" y="270" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="12" value="" style="endArrow=none;html=1;strokeColor=#666666;strokeWidth=1.5;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="310" y="280" as="sourcePoint" /> <mxPoint x="260" y="290" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="13" value="" style="endArrow=none;html=1;strokeColor=#666666;strokeWidth=1.5;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="410" y="260" as="sourcePoint" /> <mxPoint x="460" y="250" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="14" value="" style="endArrow=none;html=1;strokeColor=#666666;strokeWidth=1.5;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="410" y="270" as="sourcePoint" /> <mxPoint x="460" y="270" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="15" value="" style="endArrow=none;html=1;strokeColor=#666666;strokeWidth=1.5;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="410" y="280" as="sourcePoint" /> <mxPoint x="460" y="290" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="16" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;" parent="1" vertex="1"> <mxGeometry x="290" y="300" width="140" height="160" as="geometry" /> </mxCell> <mxCell id="17" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;" parent="1" vertex="1"> <mxGeometry x="300" y="440" width="35" height="35" as="geometry" /> </mxCell> <mxCell id="18" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#FFE6CC;strokeColor=#D79B00;strokeWidth=2;" parent="1" vertex="1"> <mxGeometry x="385" y="440" width="35" height="35" as="geometry" /> </mxCell> <mxCell id="19" value="" style="curved=1;endArrow=none;html=1;strokeColor=#D79B00;strokeWidth=8;fillColor=#FFE6CC;" parent="1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="430" y="380" as="sourcePoint" /> <mxPoint x="480" y="320" as="targetPoint" /> <Array as="points"> <mxPoint x="460" y="390" /> <mxPoint x="490" y="360" /> </Array> </mxGeometry> </mxCell> <mxCell id="20" value="🐱 Meow!" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#FF6B9D;" parent="1" vertex="1"> <mxGeometry x="310" y="490" width="100" height="30" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> </mxfile> "><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(#ffffff, var(--ge-dark-color, #121212));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g><ellipse cx="100" cy="98" rx="60" ry="60" fill="#ffe6cc" stroke="#d79b00" stroke-width="2" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="3"><g><path d="M 20 8 L 60 33 L 20 58 Z" fill="#ffe6cc" stroke="#d79b00" stroke-width="2" stroke-miterlimit="10" transform="rotate(30,40,33)" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="4"><g><path d="M 140 8 L 180 33 L 140 58 Z" fill="#ffe6cc" stroke="#d79b00" stroke-width="2" stroke-miterlimit="10" transform="rotate(-30,160,33)" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><ellipse cx="72.5" cy="80.5" rx="7.5" ry="7.5" fill="#000000" stroke="#000000" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(237, 237, 237)); stroke: light-dark(rgb(0, 0, 0), rgb(237, 237, 237));"/></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><ellipse cx="127.5" cy="80.5" rx="7.5" ry="7.5" fill="#000000" stroke="#000000" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(237, 237, 237)); stroke: light-dark(rgb(0, 0, 0), rgb(237, 237, 237));"/></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><path d="M 90 98 L 110 105.5 L 90 113 Z" fill="#ff99cc" stroke="#ff99cc" stroke-miterlimit="10" transform="rotate(180,100,105.5)" pointer-events="all" style="fill: light-dark(rgb(255, 153, 204), rgb(150, 62, 106)); stroke: light-dark(rgb(255, 153, 204), rgb(150, 62, 106));"/></g></g><g data-cell-id="8"><g><path d="M 100 113 Q 90 123 80 128" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(237, 237, 237));"/></g></g><g data-cell-id="9"><g><path d="M 100 113 Q 110 123 120 128" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(237, 237, 237));"/></g></g><g data-cell-id="10"><g><path d="M 50 98 L 0 88" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g><g data-cell-id="11"><g><path d="M 50 108 L 0 108" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g><g data-cell-id="12"><g><path d="M 50 118 L 0 128" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g><g data-cell-id="13"><g><path d="M 150 98 L 200 88" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g><g data-cell-id="14"><g><path d="M 150 108 L 200 108" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g><g data-cell-id="15"><g><path d="M 150 118 L 200 128" fill="none" stroke="#666666" stroke-width="1.5" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(102, 102, 102), rgb(149, 149, 149));"/></g></g><g data-cell-id="16"><g><ellipse cx="100" cy="218" rx="70" ry="80" fill="#ffe6cc" stroke="#d79b00" stroke-width="2" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="17"><g><ellipse cx="57.5" cy="295.5" rx="17.5" ry="17.5" fill="#ffe6cc" stroke="#d79b00" stroke-width="2" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="18"><g><ellipse cx="142.5" cy="295.5" rx="17.5" ry="17.5" fill="#ffe6cc" stroke="#d79b00" stroke-width="2" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="19"><g><path d="M 170 218 Q 200 228 215 213 Q 230 198 220 158" fill="none" stroke="#d79b00" stroke-width="8" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g></g><g data-cell-id="20"><g transform="translate(0.5,0.5)"><rect x="50" y="328" width="100" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 343px; margin-left: 51px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #FF6B9D; "><div style="display: inline-block; font-size: 16px; font-family: Helvetica; color: light-dark(#FF6B9D, #d45580); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">🐱 Meow!</div></div></div></foreignObject><image x="51" y="334" width="98" height="23" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYgAAABcCAYAAAB0myKrAAAQAElEQVR4Aex9B4AcxZX296q7Z2aTVqtVlsgiR4NtzgkTzhnjcGfw2Xe2JWHwSYLf9jmcD2PvnbHvzuaMfSA5IA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qINBBpYLRpYOwAxGi7ctH5RBqINBBpYIg1EAHEECs4Eh9pINJApIGRqoEIIEbqlYvGHWlg7GggOtPDpIEIIA6T4qNuIw1EGog0MNw1EAHEcL9C0fgiDUQaiDRwmDQQAcRhUvxo6jY6l0gDkQZGpwb+PwAAAP//nYTmLgAAAAZJREFUAwADGqrlMe6gsgAAAABJRU5ErkJggg=="/></switch></g></g></g></g></g></g></svg>\ No newline at end of filediff --git a/public/chain-of-thought.txt b/public/chain-of-thought.txtnew file mode 100644index 0000000..926faec--- /dev/null+++ b/public/chain-of-thought.txt@@ -0,0 +1,65 @@+Here is an extended summary of the paper **"Chain-of-Thought Prompting Elicits Reasoning in Large Language Models"** by Jason Wei, et al. This detailed overview covers the background, methodology, extensive experimental results, emergent properties, and qualitative analysis found in the study.++### **1. Introduction and Motivation**+The paper addresses a significant limitation in Large Language Models (LLMs): while scaling up model size (increasing parameters) has revolutionized performance on standard NLP tasks, it has not proven sufficient for challenging logical tasks such as arithmetic, commonsense, and symbolic reasoning.++Traditional techniques to solve these problems fell into two camps:+1. **Finetuning:** Training models manually with large datasets of explanations (expensive and task-specific).+2. **Standard Few-Shot Prompting:** Providing input-output pairs (e.g., Question $\rightarrow$ Answer) without explaining *how* the answer was derived. This often fails on multi-step problems.++The authors introduce **Chain-of-Thought (CoT) Prompting**, a simple method that combines the strengths of both approaches. It leverages the model's existing capabilities to generate natural language rationales without requiring any model parameter updates (finetuning).++### **2. Methodology: What is Chain-of-Thought?**+The core innovation is changing the structure of the "exemplars" (the few-shot examples included in the prompt).+* **Standard Prompting:** The model is shown a question and an immediate answer.+ * *Q: Roger has 5 balls. He buys 2 cans of 3 balls. How many now?*+ * *A: 11.*+* **Chain-of-Thought Prompting:** The model is shown a question, followed by a series of intermediate natural language reasoning steps that lead to the answer.+ * *A: Roger started with 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.*++By interacting with the model using this format, the LLM learns to generate its own "thought process" for new, unseen questions. This allows the model to decompose complex problems into manageable intermediate steps.++### **3. Experimental Setup**+The researchers evaluated CoT prompting on several large language models, including **GPT-3 (175B)**, **LaMDA (137B)**, **PaLM (540B)**, **UL2 (20B)**, and **Codex**. They tested across three distinct domains of reasoning:+* **Arithmetic Reasoning:** Using benchmarks like **GSM8K** (math word problems), **SVAMP**, **ASDiv**, **AQuA**, and **MAWPS**.+* **Commonsense Reasoning:** Using datasets like **CSQA**, **StrategyQA**, **Date Understanding**, and **Sports Understanding**.+* **Symbolic Reasoning:** Using tasks like **Last Letter Concatenation** and **Coin Flip** tracking (determining if a coin is heads or tails after a sequence of flips).++### **4. Key Findings and Results**++#### **Arithmetic Reasoning**+The results on math word problems were striking. Standard prompting struggled significantly, often exhibiting a flat scaling curve (performance didn't improve much even as models got bigger).+* **Performance Jump:** On the difficult **GSM8K** benchmark, **PaLM 540B** with CoT prompting achieved **56.9%** accuracy, compared to just 17.9% with standard prompting.+* **Surpassing State-of-the-Art:** PaLM 540B with CoT outperformed a previously finetuned GPT-3 model (55%), establishing a new state-of-the-art without needing a training set.+* **Calculator Integration:** The authors noted that some errors were simple calculation mistakes in otherwise correct logic. By hooking the CoT output into an external Python calculator, accuracy on GSM8K rose further to **58.6%**.++#### **Commonsense Reasoning**+CoT prompting improved performance on tasks requiring background knowledge and physical intuition.+* **StrategyQA:** PaLM 540B achieved **75.6%** accuracy via CoT, beating the prior state-of-the-art (69.4%).+* **Sports Understanding:** The model achieved **95.4%** accuracy, surpassing the performance of an unaided sports enthusiast (84%).+* The gains were minimal on CSQA, likely because many questions in that dataset did not require multi-step logic.++#### **Symbolic Reasoning and Generalization**+A unique strength of CoT was enabling **Out-of-Domain (OOD) Generalization**.+* In the **Coin Flip** task, the models were given examples with only 2 flips. However, using CoT, the models could successfully track coins flipped 3 or 4 times.+* Standard prompting failed completely on these longer sequences, while CoT allowed the model to repeat the logical steps as many times as necessary to reach the solution.++### **5. Emergent Ability of Scale**+One of the paper's most critical insights is that CoT reasoning is an **emergent ability** that depends on model size.+* **Small Models (<10B parameters):** CoT prompting provided **no benefit** and often hurt performance. Small models produced fluent but illogical chains of thought (hallucinations) or suffered from repetition.+* **Large Models (~100B+ parameters):** The ability to reason sequentially emerges at this scale. The performance gains from CoT are negligible for small models but increase dramatically for models like GPT-3 (175B) and PaLM (540B).++### **6. Why Does It Work? (Ablation Studies)**+To ensure the improvement was due to the reasoning steps and not other factors, the authors conducted three specific ablations:+1. **Equation Only:** They prompted the model to output just the math equation without words. This performed worse than CoT, suggesting that natural language helps the model "understand" the question semantics.+2. **Variable Compute:** They prompted the model to output dots (...) to consume compute time before answering. This yielded no improvement, proving that the *content* of the reasoning steps matters, not just the extra tokens.+3. **Reasoning After Answer:** They asked the model to give the answer first, then the explanation. This performed about the same as the baseline, proving that the chain of thought must come *before* the answer to guide the model's inference process.++### **7. Error Analysis and Robustness**+The authors manually analyzed errors made by the models.+* **Error Types:** In math problems, errors were categorized as **Semantic Understanding** (misunderstanding the question), **One-Step Missing** (skipping a logical step), or **Calculation Errors**.+* **Impact of Scale:** Scaling from PaLM 62B to PaLM 540B significantly reduced semantic and missing-step errors, confirming that larger models are better at logic, not just memorization.+* **Robustness:** The method proved robust to different annotators (different people writing the prompts) and different specific examples, though, like all prompting, different prompt styles did result in some variance.++### **Conclusion**+The paper establishes Chain-of-Thought prompting as a powerful paradigm for unlocking the reasoning potential of Large Language Models. By simply asking the model to "show its work," researchers can elicit complex logical behaviors that were previously thought to require specialized architectures or extensive finetuning. The work highlights that reasoning is an emergent capability of sufficiently large language models.\ No newline at end of filediff --git a/public/example.png b/public/example.pngnew file mode 100644index 0000000..7fdfacbBinary files /dev/null and b/public/example.png differdiff --git a/public/favicon.ico b/public/favicon.iconew file mode 100644index 0000000..869186aBinary files /dev/null and b/public/favicon.ico differdiff --git a/public/gcp_demo.svg b/public/gcp_demo.svgnew file mode 100644index 0000000..c51841f--- /dev/null+++ b/public/gcp_demo.svg@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?>+<!-- Do not edit this file with editors other than draw.io -->+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">+<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="631px" height="382px" viewBox="0 0 631 382" content="<mxfile host="embed.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36" version="29.0.3" scale="1" border="0"> <diagram id="6NgZapAXeGRToR7KKYPj" name="Page-1"> <mxGraphModel dx="703" dy="665" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" /> <mxCell id="2" value="" style="sketch=0;fillColor=#F4F4F4;strokeColor=#5C85DE;dashed=1;verticalAlign=top;fontStyle=0;fontColor=#5C85DE;whiteSpace=wrap;html=1;strokeWidth=2;spacingTop=10;" parent="1" vertex="1"> <mxGeometry x="200" y="120" width="480" height="380" as="geometry" /> </mxCell> <mxCell id="3" value="Google Cloud Platform" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#5C85DE;" parent="1" vertex="1"> <mxGeometry x="220" y="130" width="200" height="30" as="geometry" /> </mxCell> <mxCell id="4" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F0FE;strokeColor=#4285F4;strokeWidth=2;dashed=1;verticalAlign=top;" parent="1" vertex="1"> <mxGeometry x="240" y="220" width="400" height="240" as="geometry" /> </mxCell> <mxCell id="5" value="VPC Network" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=13;fontStyle=1;fontColor=#4285F4;" parent="1" vertex="1"> <mxGeometry x="260" y="230" width="120" height="25" as="geometry" /> </mxCell> <mxCell id="6" value="" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#232F3D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.users;" parent="1" vertex="1"> <mxGeometry x="50" y="310" width="78" height="78" as="geometry" /> </mxCell> <mxCell id="7" value="Users" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="54" y="395" width="70" height="20" as="geometry" /> </mxCell> <mxCell id="8" value="" style="sketch=0;html=1;verticalAlign=top;labelPosition=center;verticalLabelPosition=bottom;align=center;spacingTop=-6;fontSize=11;fontStyle=1;fontColor=#999999;shape=image;aspect=fixed;imageAspect=0;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnY9Imh0dHBzOi8vdmVjdGEuaW8vbmFubyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAgMjAiPiYjeGE7CTxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+JiN4YTsJLnN0MHtmaWxsOiM0Mjg1ZjQ7fSYjeGE7CS5zdDF7ZmlsbDojNjY5ZGY2O30mI3hhOwk8L3N0eWxlPiYjeGE7CTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zLjMzIDEzLjMzdjMuMzRoMy4zNHYtMy4zNHptMTMuMzQgMHYzLjM0aDMuMzN2LTMuMzR6bS02LjY3IDB2My4zNGgzLjMzdi0zLjM0em0tNi42Ny02LjY2djMuMzNoMy4zNFY2LjY3em0xMy4zNCAwdjMuMzNoMy4zM1Y2LjY3em0tNi42NyAwdjMuMzNoMy4zM1Y2LjY3ek0zLjMzIDB2My4zM2gzLjM0VjB6bTEzLjM0IDB2My4zM2gzLjMzVjB6bS02LjY3IDB2My4zM2gzLjMzVjB6Ii8+JiN4YTsJPHBhdGggY2xhc3M9InN0MSIgZD0iTTAgMTMuMzNoMy4zM3YzLjM0SDB6bTAgNi42N2gzLjMzVjIwSDB6bTAgNi42N2gzLjMzdi0zLjM0SDB6bTAgNi42N2gzLjMzVjYuNjdIMHptMCAwaDMuMzNWMEgweiIvPiYjeGE7PC9zdmc+;" parent="1" vertex="1"> <mxGeometry x="280" y="319" width="60" height="60" as="geometry" /> </mxCell> <mxCell id="9" value="Cloud Load&lt;br&gt;Balancer" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="270" y="385" width="80" height="30" as="geometry" /> </mxCell> <mxCell id="10" value="" style="sketch=0;html=1;verticalAlign=top;labelPosition=center;verticalLabelPosition=bottom;align=center;spacingTop=-6;fontSize=11;fontStyle=1;fontColor=#999999;shape=image;aspect=fixed;imageAspect=0;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnY9Imh0dHBzOi8vdmVjdGEuaW8vbmFubyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAgMjAiPiYjeGE7CTxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+JiN4YTsJLnN0MHtmaWxsOiM0Mjg1ZjQ7fSYjeGE7CS5zdDF7ZmlsbDojNjY5ZGY2O30mI3hhOwk8L3N0eWxlPiYjeGE7CTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMCAwbDcuNSA0LjMzdjguNjdMMTcuNSAxNSAxMCAxOS4zMyAwIDEzLjMzdi04LjY2ek0yLjUgMTEuNjdMNy41IDE0LjMzVjE3TDIuNSAxNC4zM3ptMTUgMEwxMi41IDE0LjMzVjE3bDUtMi42N3oiLz4mI3hhOwk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTAgNS42N0w3LjUgNy4xNyAyLjUgNC41bDcuNS00LjMzIDcuNSA0LjMzLTUgMi42N3ptMCA4LjY2TDcuNSAxMi42N1Y3LjE3TDEwIDUuNjdsNS4wMDEgMi42N3Y1LjV6Ii8+JiN4YTsJPHBhdGggY2xhc3M9InN0MCIgZD0iTTEyLjUgMTIuNjdMMTAgMTQuMzNsLTIuNS0xLjY2djIuNjZsMi41IDEuNjcgMi41LTEuNjd6Ii8+JiN4YTs8L3N2Zz4=;" parent="1" vertex="1"> <mxGeometry x="490" y="319" width="60" height="60" as="geometry" /> </mxCell> <mxCell id="11" value="Compute Engine&lt;br&gt;Instance&lt;br&gt;(Frontend)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="470" y="385" width="100" height="45" as="geometry" /> </mxCell> <mxCell id="12" value="" style="sketch=0;html=1;verticalAlign=top;labelPosition=center;verticalLabelPosition=bottom;align=center;spacingTop=-6;fontSize=11;fontStyle=1;fontColor=#999999;shape=image;aspect=fixed;imageAspect=0;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnY9Imh0dHBzOi8vdmVjdGEuaW8vbmFubyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjE5Ljk5OTk5OTk5OTk5OTk5OCIgdmlld0JveD0iMCAwIDIwIDE5Ljk5OTk5OTk5OTk5OTk5OCI+JiN4YTsJPHN0eWxlIHR5cGU9InRleHQvY3NzIj4mI3hhOwkuc3Qwe2ZpbGw6I2U4NDMzNTt9JiN4YTsJLnN0MXtmaWxsOiNmZmY7fSYjeGE7CTwvc3R5bGU+JiN4YTsJPHBhdGggY2xhc3M9InN0MCIgZD0iTTEwIDBsNy41IDQuMzN2OC42N0wxNyAxNSAxMCAxOS4zMyAwIDEzLjMzdi04LjY2eiIvPiYjeGE7CTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xMCAzLjMzbC01IDIuOXY1LjhsNSAyLjkgNS0yLjl2LTUuOHptMCA5LjE3bC0yLjUtMS40NXYtMi45bDIuNS0xLjQ1IDIuNSAxLjQ1djIuOXoiLz4mI3hhOzwvc3ZnPg==;" parent="1" vertex="1"> <mxGeometry x="380" y="270" width="50" height="50" as="geometry" /> </mxCell> <mxCell id="13" value="Firewall" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=10;fontStyle=1;" parent="1" vertex="1"> <mxGeometry x="370" y="325" width="70" height="20" as="geometry" /> </mxCell> <mxCell id="14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#4285F4;endArrow=classic;endFill=1;" parent="1" source="6" target="8" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="15" value="HTTPS" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=10;fontStyle=1;fontColor=#4285F4;backgroundColor=#FFFFFF;" parent="14" vertex="1" connectable="0"> <mxGeometry x="-0.1" y="1" relative="1" as="geometry"> <mxPoint x="5" y="-9" as="offset" /> </mxGeometry> </mxCell> <mxCell id="16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#4285F4;endArrow=classic;endFill=1;" parent="1" source="8" target="10" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="17" value="HTTP/HTTPS" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=10;fontStyle=1;fontColor=#4285F4;backgroundColor=#FFFFFF;" parent="16" vertex="1" connectable="0"> <mxGeometry x="-0.1" y="1" relative="1" as="geometry"> <mxPoint x="5" y="-9" as="offset" /> </mxGeometry> </mxCell> </root> </mxGraphModel> </diagram> </mxfile> "><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(#ffffff, var(--ge-dark-color, #121212));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g><rect x="150" y="1" width="480" height="380" fill="#f4f4f4" stroke="#5c85de" stroke-width="2" stroke-dasharray="6 6" pointer-events="all" style="fill: light-dark(rgb(244, 244, 244), rgb(27, 27, 27)); stroke: light-dark(rgb(92, 133, 222), rgb(92, 127, 204));"/></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="170" y="11" width="200" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 198px; height: 1px; padding-top: 26px; margin-left: 172px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #5C85DE; "><div style="display: inline-block; font-size: 16px; font-family: Helvetica; color: light-dark(#5C85DE, #5c7fcc); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Google Cloud Platform</div></div></div></foreignObject><image x="172" y="17" width="198" height="23" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxgAAABcCAYAAADtXBODAAAQAElEQVR4Aex9CZxcVZX3Oa+6Op1mCSCgLCGp6gRhQBRFUHFGYNzQEdeopKtCkBlQR5FFxXR1sCBVBbiw6OAIbiRdHYQMjuCnOCqCqCiIG4IgSVUlhEVWxZCll3r3+59Kd6e7uqrefbV1dfep37313rv33HPP/b937z3nLu85pD9FQBFQBBQBRUARUAQUAUVAEVAE6oSAGhh1AlLZKAL1R0A5KgKKgCKgCCgCioAiMP0QUANj+t0zlVgRUAQUAUV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KKgCCgXhGYqQj8fwAAAP//lDhTYwAAAAZJREFUAwDHji8wgpaDmgAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="4"><g><rect x="190" y="101" width="400" height="240" rx="36" ry="36" fill="#e8f0fe" stroke="#4285f4" stroke-width="2" stroke-dasharray="6 6" pointer-events="all" style="fill: light-dark(rgb(232, 240, 254), rgb(25, 32, 44)); stroke: light-dark(rgb(66, 133, 244), rgb(76, 133, 229));"/></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="210" y="111" width="120" height="25" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 118px; height: 1px; padding-top: 124px; margin-left: 212px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #4285F4; "><div style="display: inline-block; font-size: 13px; font-family: Helvetica; color: light-dark(#4285F4, #4c85e5); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">VPC Network</div></div></div></foreignObject><image x="212" y="116.5" width="118" height="19.25" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdgAAABNCAYAAAAFBXXdAAAQAElEQVR4AexdCZxjRZn/vpdOz3SSngEa5BTBZfBgRRHFY0S70+MorroeiCverscKgsp6QHePBKbTgKwiCriIeIK4jHgsl8h0upVDWQQR5JD7EEGGAWY66Z7pJO/b70sn3Tneq3rpJH3x5VeVV1XfUVX/9/K+uuOAfhQBRUARUAQUAUWg6QiogW06pKpQEVAEFAFFQBEAUAPbyFOgsoqAIqAIKAKKgA8CamB9gNFkRUARUAQUAUWgEQTUwDaCnso2goDKKgKKgCKwpBFQA7ukb69WThFQBBQBRWC+EFADO1/Ia76KQCMIqKwioAgseATUwC74W6QFVAQUAUVAEViMCKiBXYx3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ZRUARUATmFwE1sPOLv+auCCgCioAisEQRUAO7RG+sVksRaAQBlVUEFIHGEVAD2ziGqkERUAQUAUVAEahBQA1sDSSaoAgoAopAIwiorCIwhYAa2Ckc9FsRUAQUAUVAEWgqAmpgmwqnKlMEFAFFQBFoBIGlJKsGdindTa2LIqAIKAKKwIJB4P8BAAD//8rimqIAAAAGSURBVAMAm1TKQPBf9fMAAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="0" y="191" width="78" height="78" fill="none" stroke="none" pointer-events="all"/><path d="M 47.22 203.92 C 47.22 198.75 51.5 194.55 56.76 194.55 C 62.02 194.55 66.29 198.75 66.29 203.92 C 66.29 209.08 62.02 213.29 56.76 213.29 C 51.5 213.29 47.22 209.08 47.22 203.92 Z M 67.65 216.41 C 66.51 215.7 65.29 215.11 64.05 214.64 C 67.54 212.31 69.84 208.38 69.84 203.92 C 69.84 196.8 63.97 191 56.76 191 C 49.55 191 43.68 196.8 43.68 203.92 C 43.68 208.37 45.97 212.3 49.45 214.62 C 47.18 215.48 45.04 216.73 43.16 218.34 L 45.47 221.04 C 48.63 218.32 52.63 216.83 56.73 216.83 C 59.92 216.83 63.05 217.73 65.78 219.42 C 70.64 222.44 73.83 227.74 74.37 233.55 L 56.73 233.55 L 56.73 237.09 L 76.23 237.09 C 77.21 237.09 78 236.3 78 235.32 C 78 227.62 74.04 220.37 67.65 216.41 Z M 11.77 203.92 C 11.77 198.75 16.05 194.55 21.31 194.55 C 26.56 194.55 30.84 198.75 30.84 203.92 C 30.84 209.08 26.56 213.29 21.31 213.29 C 16.05 213.29 11.77 209.08 11.77 203.92 Z M 21.27 233.55 L 3.63 233.55 C 4.49 224.18 12.07 216.83 21.27 216.83 C 24.47 216.83 27.6 217.73 30.33 219.42 C 31.1 219.9 31.83 220.44 32.53 221.04 L 34.84 218.35 C 34.01 217.63 33.12 216.98 32.2 216.41 C 31.05 215.7 29.84 215.11 28.59 214.64 C 32.08 212.31 34.39 208.38 34.39 203.92 C 34.39 196.8 28.52 191 21.31 191 C 14.09 191 8.22 196.8 8.22 203.92 C 8.22 208.37 10.52 212.31 14.02 214.63 C 5.85 217.72 0 225.81 0 235.32 C 0 236.3 0.79 237.09 1.77 237.09 L 21.27 237.09 Z M 21.35 265.45 C 22.21 256.09 29.8 248.74 39 248.74 C 42.19 248.74 45.33 249.64 48.06 251.33 C 52.91 254.35 56.1 259.65 56.64 265.45 Z M 29.5 235.83 C 29.5 230.66 33.77 226.45 39.03 226.45 C 44.29 226.45 48.57 230.66 48.57 235.83 C 48.57 240.99 44.29 245.2 39.03 245.2 C 33.77 245.2 29.5 240.99 29.5 235.83 Z M 49.93 248.32 C 48.78 247.61 47.57 247.02 46.32 246.54 C 49.81 244.22 52.11 240.29 52.11 235.83 C 52.11 228.7 46.25 222.91 39.03 222.91 C 31.82 222.91 25.95 228.7 25.95 235.83 C 25.95 240.28 28.25 244.22 31.74 246.54 C 23.58 249.63 17.73 257.72 17.73 267.23 C 17.73 268.21 18.52 269 19.5 269 L 58.5 269 C 59.48 269 60.27 268.21 60.27 267.23 C 60.27 259.53 56.31 252.28 49.93 248.32 Z" fill="#232f3d" stroke="none" pointer-events="all" style="fill: light-dark(rgb(35, 47, 61), rgb(190, 200, 212));"/></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="4" y="276" width="70" height="20" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 68px; height: 1px; padding-top: 283px; margin-left: 5px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Users</div></div></div></foreignObject><image x="5" y="283.5" width="68" height="17" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAABECAYAAABJYmpAAAAK6UlEQVR4AeydB8gtRxXHr73GhqjYsCsKKooNg713EQUb2LFh7xJ7F0SxpyckIY2EdJJAek9ISK8kpPdeSf//vvfty977Zmd3du+d7+7u/3HON7NzzrT/vDl37szZuQ+e+J8RMAJGoCUCNiAtgXM2I2AEJhMbEP8vMAJGoDUCNiCtoXPGsSPg/nsF4v8DRsAIdEDAK5AO4DmrERg7AjYgY/8f4P4bgQ4I2IB0AG/MWd13IwACNiCgEOeHSPzUCD9cslR6gjJUlflEyUxGoBcI2IDUD9NHpHJFhL8nWSqdrQxVZV4omckI9AIBG5D6YXpojUqdPJT9UaHE1bSNVkMHRmDpEbABaTFEzmIEjMA6BGxA1uHgv0bACLRAwAakBWjOYgSMwDoEbEDW4eC/RsAItEAg2YC0qMNZjIARGCgCNiADHVh3ywjkQMAGJAfKi6uD8Xutiv+keBPxtuKjxUeIdxL/Rfxt8fvFjxB3pRergG+I/y3eVXyweG/x/8W/EFPPIxWmEI5zIac60svl0H58cn6sxM3Fu4nfIo5RbnxibRmkDIAH2bERdOr16uMx4mPFO4h/I/6smPQ3KvyE+Ifiv4uZ5FcrROc5ClPoQVL+oPh08Vnif4m/Lv6YmAmM0fiK4r8WU8/tCpngz1DYhK6TUsipruxQ93HpnCHeXfwn8RfFHxXH+gIOOfBRMxrSANVsQPo3qE9Wk7cXs9J4jcKmhIMaq5QLlOHT4ibEKmA/Ke4pfqm4KTHBz5Ty58QYIAWt6afKubP4eeImlBOfJu0ZtI4NSL+Gl/dyWG18qmOzt1P+d4ljxKc7n+DvjilFZBisrST/ibgtscr5Q0LmnPgkNGu4qjYg/Rpbvv+/c05N3l/lvFwcIlzt95DgReKuhAHAEKSWUxiglHy58Elp06B1bUD6M7xM9t83aO5VDXQKlc8UkZmQzVfqm0lu/bjrZDJ5eovcGyXkob258Elo1rBVbUD6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f6uECZC3dwpPqjSmGPhq9Y1Hugntnc/KXCz4vfKsZw0Ja7FU8hrgH4kDJwXwi/E8NXKcpmb4O+crrCBjB3s1IHp0H8LAQTWtmi9DhJecEuxJx+SZxMufFJbuBQMiyhAekdtExGbuFiRcCdoEw07tvgnlImEhOXT30mHSsWHK3m1Un2KPDb4Jj2ZyqUX5x7g0Lq5YejcCDj9IjJjSGjrRK3Jr7yHKDcGEPKxtuVvnJHKUbqn5Kx56FgKSg3PkvR6ZyNsAHJibbrMgIDQ8AGZGAD6u4YgZwI2IDkRNt1GYHFIpC9dBuQ7JC7QiMwHARsQIYzlu6JEciOgA1IdshdoREYDgI2IMMZy7H3xP1fAwRsQNYAdFdpBIaCgA3IUEbS/TACa4CADcgagO4qjcBQELABGcZIuhdGYE0QsAFZE9hdqREYBgI2IMMYR/fCCKwJAjYgawK7KzUCw0BgCAZkGCPhXhiBHiJgA9LDQXOTjcCyIGADsiwj4XYYgR4iYAPSw0Fzk43AvBDoWo4NSFcEnd8IjBgBG5ARD767bgS6ImAD0hVB5zcCI0bABmTEgz/2rrv/3RG4HwAA//8EyKVIAAAABklEQVQDABzZ7Jgi6ipgAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="8"><g><g><svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 20 20" id="svg-image-JS17CqwWCBCZh2bu8s5b" x="230" y="200" style="font-family: initial;">
 <style type="text/css">#svg-image-JS17CqwWCBCZh2bu8s5b .st0 { fill: rgb(66, 133, 244); }
#svg-image-JS17CqwWCBCZh2bu8s5b .st1 { fill: rgb(102, 157, 246); }
</style>
 <path class="st0" d="M3.33 13.33v3.34h3.34v-3.34zm13.34 0v3.34h3.33v-3.34zm-6.67 0v3.34h3.33v-3.34zm-6.67-6.66v3.33h3.34V6.67zm13.34 0v3.33h3.33V6.67zm-6.67 0v3.33h3.33V6.67zM3.33 0v3.33h3.34V0zm13.34 0v3.33h3.33V0zm-6.67 0v3.33h3.33V0z"/>
 <path class="st1" d="M0 13.33h3.33v3.34H0zm0 6.67h3.33V20H0zm0 6.67h3.33v-3.34H0zm0 6.67h3.33V6.67H0zm0 0h3.33V0H0z"/>
</svg></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><rect x="220" y="266" width="80" height="30" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 78px; height: 1px; padding-top: 273px; margin-left: 221px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Cloud Load<br />Balancer</div></div></div></foreignObject><image x="221" y="273.5" width="78" height="28.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATgAAABzCAYAAAAMlx5xAAAQAElEQVR4AeydB7wEN3HGjxB6J/QaCB1CLw4YAqE30yFgOjYtQEwgNNMhEKoB003oEHonVNM7GHCA0EIzvfdev//z7bOeTjNbbvdu927eT/MkjUZlZ7UjaTTS/dUs/oIDwYHgwIZyIATchr7YeKzgQHBgNgsBF70gOBAc2FgOhIAb8NVG0cGB4MB6ORACbr38j9qDA8GBATkQAm5A5kbRwYHgwHo5EAJuvfyP2rtyIPIFBxpwYMoC7hR6vusJHin4L8EbBO8UvFTwJMHBghsJoJPXyp1U1OcpwLmFC9eMAycU2VkKcGbh+nK8j9J7+tu+Kohy9nDg2IqV3im44yltdG6KAm4fcfHNgh8JXiW4j+C2gmsKLi+4seCugocLXiaA7q3ybyHgBcmrdeT/rKhy+JxwpxeEq+fAv4vkawU4SjgEk7yl3NmVm/eRvyPiX1FauP458I8qsvROwe2vtNG5KQm4U4l7CLQPyr+q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l8BLo31cUGnds1cqD/3ZeZTARZjyXMdmFHpJbAmbDhAMDvCZ/mLZ1FHpr/lXgLr3U8iyF7XJsRBwx7zdKyrITldXwKqfMljGcJ3QkSqvjWN3FdMArv9mF+8wZeZMK6YnLGOZHSAwESRKmrFB4bWVg/vQASjaLdp7QlAA7itDkGI2wrIJfRvCGz3iIaJn1skJC041sNEg1Iw0qx4O70NTAUfNLNojKiLDf67wVl4ueVSy6RAibJagE+O5sO1DGCH80NOxu8lzs7OKGQ+2bJ6pSakiLl+g7DMqkYGLXW8EJAMg75QwG077KB0a6kM1oKjpMFspPXPOV7OAbUwIATeut04n52JMNhQ4n8pvBHBUiyuTuKp8Ha3lthQEAJcBILxvqEaw5GbWWTphoeRJOG7g4Ln+Va1FGLF85fcs9lOcGRXHzzyTGZHVOn4bloGLpTtLXAZA3ilhjtx9WCUwkMgLNwQHQsANwdUoMzgQHBgFB9Yu4EbBhWhEcCA4sJEcCAG3ka81Hio4EByAAyHg4EJAcCA4sJEcCAG3ka91/lDhBQe2nAMh4La8A8TjBwc2mQMh4Db57cazBQe2nAMh4La8A8Tjd+VA5JsCB0LATeEtRRuDA8GBThwIAdeJbZEpOBAcmAIHQsBN4S1FG4MD28WB3p42BFxvrIyCggPBgbFxIATc2N5ItCc4EBzojQMh4HpjZRQUHAgOjI0DIeAW30hgggPBgQ3hQAi4DXmR8RjBgeDAIgdCwC3yJDDBgeDAhnAgBNyGvMipPEa0MziwSg6EgFslt6Ou4EBwYCOUBB4AAAAlSURBVKUcCAG3UnZHZcGB4MAqORACbpXcjrqCA0NyIMpe4MBfAAAA//8w1v2NAAAABklEQVQDANi32iNMI05qAAAAAElFTkSuQmCC"/></switch></g></g></g><g data-cell-id="10"><g><g><svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 20 20" id="svg-image-Izv8Zv3Zgbs42Mh0a2rI" x="440" y="200" style="font-family: initial;">
 <style type="text/css">#svg-image-Izv8Zv3Zgbs42Mh0a2rI .st0 { fill: rgb(66, 133, 244); }
#svg-image-Izv8Zv3Zgbs42Mh0a2rI .st1 { fill: rgb(102, 157, 246); }
</style>
 <path class="st0" d="M10 0l7.5 4.33v8.67L17.5 15 10 19.33 0 13.33v-8.66zM2.5 11.67L7.5 14.33V17L2.5 14.33zm15 0L12.5 14.33V17l5-2.67z"/>
 <path class="st1" d="M10 5.67L7.5 7.17 2.5 4.5l7.5-4.33 7.5 4.33-5 2.67zm0 8.66L7.5 12.67V7.17L10 5.67l5.001 2.67v5.5z"/>
 <path class="st0" d="M12.5 12.67L10 14.33l-2.5-1.66v2.66l2.5 1.67 2.5-1.67z"/>
</svg></g></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><rect x="420" y="266" width="100" height="45" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 273px; margin-left: 421px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Compute Engine<br />Instance<br />(Frontend)</div></div></div></foreignObject><image x="421" y="273.5" width="98" height="42.75" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYgAAACrCAYAAAB8DAsKAAAQAElEQVR4AeydBdw0SXXuh4u7haDBPbgECS7BF2ex4G5BgssGDYRsYIO7u1u4WNhAkAALFwgQPAkQLLj7ff7vvv19NTV1TvtM98x5f3Xeqj6l/XRPnapTp6r/zyL+AoFAIBAIBAKBAgIhIAqgBCsQCAQCgUBgsQgBEW9BIDBXBKLdgcDICISAGBngKD4QCAQCgbkiEAJirk8u2h0IBAKBwMgIhIAYDeAoOB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+AqD4QCATmisD2tzsExPY/47jDQCAQCAQ6IRACohNskSkQCAQCge1HIATE9j/jXb3DuO9AIBDoiUAIiJ4ARvZAIBAIBLYVgRAQ2/pk474CgUAgEOiJwMYERM92R/ZAIBAIBAKBkREIATEywFF8IBAIBAJzRSAExFyfXLQ7ENgYAlHxriAQAmJXnnTcZyAQCAQCLRH4/wAAAP//nxSQEAAAAAZJREFUAwBzCKbPMn3x6gAAAABJRU5ErkJggg=="/></switch></g></g></g><g data-cell-id="12"><g><g><svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 20 19.999999999999998" id="svg-image-RSCcW3mZsnHlPiPT5Fbn" x="330" y="151" style="font-family: initial;">
 <style type="text/css">#svg-image-RSCcW3mZsnHlPiPT5Fbn .st0 { fill: rgb(232, 67, 53); }
#svg-image-RSCcW3mZsnHlPiPT5Fbn .st1 { fill: rgb(255, 255, 255); }
</style>
 <path class="st0" d="M10 0l7.5 4.33v8.67L17 15 10 19.33 0 13.33v-8.66z"/>
 <path class="st1" d="M10 3.33l-5 2.9v5.8l5 2.9 5-2.9v-5.8zm0 9.17l-2.5-1.45v-2.9l2.5-1.45 2.5 1.45v2.9z"/>
</svg></g></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><rect x="320" y="206" width="70" height="20" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 68px; height: 1px; padding-top: 213px; margin-left: 321px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #000000; "><div style="display: inline-block; font-size: 10px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; ">Firewall</div></div></div></foreignObject><image x="321" y="213.5" width="68" height="14.5" xlink:href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ylo94aZ1i5MJJ5owuOFmNT995aYlicK7IIv9vmqV1cs6G6CvOgZPXPqQ6fOL/dUmiPDhMJU1jI2AHMjbivp4RmBACdiATepi+FSMwNgJ2IGMj7usZgQkhsIYOZELo+laMwMQRsAOZ+AP27RmBIRGwAxkSXbdtBCaOgB3IxB+wb29LITD6zdqBjA65L2gEpoOAHch0nqXvxAiMjoAdyOiQ+4JGYDoI2IFM51lu9Tvx/a8AATuQFYDuSxqBqSBgBzKVJ+n7MAIrQMAOZAWg+5JGYCoI2IFM40n6LozAShCwA1kJ7L6oEZgGAtcCAAD//6ZXW6gAAAAGSURBVAMA4RSzhOaz/N0AAAAASUVORK5CYII="/></switch></g></g></g><g data-cell-id="14"><g><path d="M 78 230 L 221.76 230" fill="none" stroke="#4285f4" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(66, 133, 244), rgb(76, 133, 229));"/><path d="M 227.76 230 L 219.76 234 L 221.76 230 L 219.76 226 Z" fill="#4285f4" stroke="#4285f4" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(66, 133, 244), rgb(76, 133, 229)); stroke: light-dark(rgb(66, 133, 244), rgb(76, 133, 229));"/></g><g data-cell-id="15"><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 221px; margin-left: 152px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #4285F4; background-color: #ffffff; "><div style="display: inline-block; font-size: 10px; font-family: Helvetica; color: light-dark(#4285F4, #4c85e5); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); white-space: nowrap; ">HTTPS</div></div></div></foreignObject><image x="135.5" y="215.5" width="33" height="14.5" xlink:href="data:image/png;base64,iVB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Tew7E14QajU7/S7dYinVzQmhhaJB0ku6w34NaZNOpwcAd2BL42jn6N84fIFuJq8uWbtwQtDQM2Bch3i22Rp3YM/Z5KPupMY5YfdJPwxI9TA/3kloENbNCWHAwac1adCzNpBO7co8+8/6hQ918AOdAR95hA93hhAfRhdiJkeno3SdoCyLbzxiHCeEiITBw3KPm2AQeSvRaibuu8Qv1/DDnZvEy6llJn+jqx3KPBZ+HHFCaCFsoPTRHe3QsX54eo+1aV0aWuGl5jaZGk4IGRxFeBFlVTMTHYC7udG+EKUKQH/I8PY2mEZM3kodeYRAE6gyUby228JTihhHC9VyaX0joNRnZijLrx6lXvHaTpxE4rk0lG4nk8azzlVxK7ibWVY9fmawbZIbXk2wq1ogZYXIBa5BcE/FlglueLm9HWgQm0k+4Y+bPffOiAOaoFdNyKRxQDBp5TEOG6BRXJa8Zzq9Le8SO70sY5QXK0a5qH3dMtGdL42dyBSO/aNJldJ58OZLp57MeMP0b2WDraS9aAkVLZ/t4i1Qk/ieKpYyQZPqFkACoHNyIXGbY17cU6E2uxRei/X0iueJGQG8CdFXgm8K6BuZk+SE1WNc8OU4N3w4xAlIgD7P2KBpDQtI92iyKuaEYCFTTOM5IYrpwLO6zQnBQqaYxnNCFNOBZ3W7+BGChQSPFxDghBBg4AcRAbOJ/zgCEgT4DCHeGjwUEOCEEGDgBxEBTggRCR4KCHBCCDDwg4gAJ4SIBA8FBIqOEEJ1/GB0BDghjD5CRdw+TogiBtzo1XFCGH2Eirh9/wEAAP//ALgNVQAAAAZJREFUAwDUHzLP7oUqvQAAAABJRU5ErkJggg=="/></switch></g></g></g></g><g data-cell-id="16"><g><path d="M 290 230 L 431.76 230" fill="none" stroke="#4285f4" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(66, 133, 244), rgb(76, 133, 229));"/><path d="M 437.76 230 L 429.76 234 L 431.76 230 L 429.76 226 Z" fill="#4285f4" stroke="#4285f4" stroke-width="2" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(66, 133, 244), rgb(76, 133, 229)); stroke: light-dark(rgb(66, 133, 244), rgb(76, 133, 229));"/></g><g data-cell-id="17"><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 221px; margin-left: 364px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #4285F4; background-color: #ffffff; "><div style="display: inline-block; font-size: 10px; font-family: Helvetica; color: light-dark(#4285F4, #4c85e5); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); white-space: nowrap; ">HTTP/HTTPS</div></div></div></foreignObject><image x="333" y="215.5" width="62" height="14.5" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPgAAAA6CAYAAACd8ZS0AAANY0lEQVR4AexdCZRUxRV9Mz3T3TMTDYrGBde4IS5ERSUSJCKGIBAGWRVFwS3KCcYAgkjQxEMICCFElhBDzPF42CEQFiOGo4EYohGIHGQRDaJBUDRicHq6Z2vrfqZ76ldX/f97pqf7O/3mTM2vqv/qVdV9/9X6qqYwzj+MACPQYhEoJP5hBBiBFosAK3iLFS1XjBEgYgXnr4ARaMEI5FLBWzCsXDVGwB8IsIL7Qw5cCkagWRBgBW8WWJkpI+APBFjB/SEHLgUj0CwI5KuCNwuYzJQR8BsCrOB+k0gjynPoSJzeO1xnczV1jWDESXyHQGVVnD6riDe6XEkFj9UQbdpTo3VV4p3XHF57t1bL49MvGgr5/qd1WhpT/unGf3I03qz8Dwv+CTwqYunn9erbtbTv4zrKhBJ+EY3TkDkRuvuZSptbs61ai8E7H3nXfDQcOuy37qtNVJ8gVdRHR5eJOJR3xwf6byoT/N+Q6oJK7TyQ/rcJPI40QQmRL9yBz+po2toYjXwuSgN/E6HuUyqo17Q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Ko4LZycEBBADd76Pa+sd+qkHLwK4gA7s6bI/a0m2qHnqg6VtSxbacaw7CCJxDy2VO3931W60KCpZPPisrFaSQCuKQRlmpuhitu7GGZOG94CZ3aKvXQUVLBnVZlg8WpCXWZOlFh3qFLY4ozWQGly8fEP9iwDmEjQUtoi3AJOOJmnw65cLK/3qL8Uzy87Xu1d4bFAb000sHPVLdMYuRmp416u7niIn1dkS7s8dsFLZypPEGHPJCusQ7GSjBcgaLDXDkdPmjsceQUZwfQWOjSJhW8/dkB2jC+TOtgPaNLrMZB8CYed3ZOPUChppfDsMPV8YLVkEzXWP9c0eLp+MPgPx2eN7Qr0mIG3l5vWdHlh3KAh+zS+acGz95foi0XPgZdfro43Pkt55/wvzi2TEdujMPd54m06hOXBhoTenyBgxkq30QY1mUe2VhkuH88kVZ+wpTYImimPzBJRR5LRpZa96DDUg1lh9KfJnpm9NI4iISThhPKQzT/3hLrYAqu5nYqUlLBnYha3juuESPgTwRw2g9XacNSbXTPEEHpn3+w1DrJiX+EgJOG6FS8/nsqVnB/yplLxQhkBAFW8IzAyEwYAX8iwAruT7lwqRiBjCDACp4RGNNhwrSMQPYQYAXPHtacEyOQdQRYwbMOOWfICGQPgcIC/mEEGIEWiwD34NlrTH2QExch3xBgBc83iXN98woBVvC8EjdXNt8QYAXPN4lzffMKAVbwvBJ3LivLeecCAVbwXKDOeTICWUKAFTxLQHM2jEAuEGAFzwXqnCcjkCUEWMGzBDRnk0sE8jfvLwEAAP//XpyDyQAAAAZJREFUAwDsSEIaa2+dawAAAABJRU5ErkJggg=="/></switch></g></g></g></g></g></g></g></svg>\ No newline at end of filediff --git a/public/live-demo-button.svg b/public/live-demo-button.svgnew file mode 100644index 0000000..f24925b--- /dev/null+++ b/public/live-demo-button.svg@@ -0,0 +1,4 @@+<svg xmlns="http://www.w3.org/2000/svg" width="140" height="36" viewBox="0 0 140 36">+ <rect width="140" height="36" rx="8" fill="#6366f1"/>+ <text x="70" y="24" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="15" font-weight="600" fill="white" text-anchor="middle">🚀 Live Demo</text>+</svg>diff --git a/src/App.tsx b/src/App.tsxindex 3356663..927bedc 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1,27 +1,20 @@-import React, { useState, useEffect, useRef } from 'react';-import { ResizableHandle, ResizablePanel, ResizablePanelGroup, type PanelImperativeHandle } from "@/components/ui/resizable";-import { ChatPanel } from '@/components/ChatPanel';-import { FlowchartWorkspace } from '@/components/workspaces/FlowchartWorkspace';-import { CadWorkspace } from '@/components/workspaces/CadWorkspace';-import { PptWorkspace } from '@/components/workspaces/PptWorkspace';-import { SettingsDialog } from '@/components/SettingsDialog';-import { Layers, FileCode, Presentation, Layout } from 'lucide-react';-import { cn } from '@/lib/utils';-import { DRAWIO_SYSTEM_PROMPT, CAD_SYSTEM_PROMPT, PPT_OUTLINE_EDIT_SYSTEM_PROMPT, PPT_SLIDES_EDIT_SYSTEM_PROMPT } from "@/lib/system-prompts";-import { generateImage, getAIConfig, type ChatMessage } from '@/lib/ai-client';-import { Toaster, toast } from 'sonner';-import { LandingPage } from '@/pages/LandingPage';-import { HistoryItem } from '@/components/history-dialog';+import React, { useState } from "react";+import { Toaster } from "sonner";+import { FileCode, Layers, Layout, Presentation } from "lucide-react";import { Button } from "@/components/ui/button";-import { getUiLanguage, setUiLanguage, type UiLanguage } from "@/lib/ui-language";+import { SettingsDialog } from "@/components/SettingsDialog";+import { LandingPage } from "@/pages/LandingPage";+import { cn } from "@/lib/utils";import { t } from "@/lib/i18n";+import { getUiLanguage, type UiLanguage } from "@/lib/ui-language";+import { useUiLanguage } from "@/lib/use-ui-language";+import { FlowWorkspaceShell } from "@/workspaces/flow/FlowWorkspaceShell";+import { CadWorkspaceShell } from "@/workspaces/cad/CadWorkspaceShell";+import { PptWorkspaceShell } from "@/workspaces/ppt/PptWorkspaceShell";-type WorkspaceType = 'flow' | 'cad' | 'ppt';--const HISTORY_STORAGE_KEY = 'unified-ai-workspace-history';-const CAD_WORKSPACE_STORAGE_KEY = 'unified-ai-workspace-cad-state-v1';-const FLOW_WORKSPACE_STORAGE_KEY = 'unified-ai-workspace-flow-state-v1';-const PPT_WORKSPACE_STORAGE_KEY = "unified-ai-workspace-ppt-state-v1";+type WorkspaceType = "flow" | "cad" | "ppt";+const APP_VIEW_STORAGE_KEY = "unified-ai-workspace-app-view-v1";+const APP_WORKSPACE_STORAGE_KEY = "unified-ai-workspace-active-workspace-v1";class ErrorBoundary extends React.Component<{ children: React.ReactNode }, { error: Error | null }> {state: { error: Error | null } = { error: null };@@ -36,19 +29,20 @@ class ErrorBoundary extends React.Component<{ children: React.ReactNode }, { errrender() {if (this.state.error) {+ const uiLang: UiLanguage = getUiLanguage();return (<div className="w-full h-full flex items-center justify-center p-6"><div className="max-w-[720px] w-full rounded-xl border border-border/60 bg-background p-5">- <div className="text-base font-medium mb-2">页面发生错误</div>+ <div className="text-base font-medium mb-2">UI Error</div><div className="text-sm text-muted-foreground whitespace-pre-wrap break-words mb-4">{String(this.state.error?.message || "Unknown error")}</div><div className="flex items-center gap-2"><Button variant="default" onClick={() => window.location.reload()}>- {t(getUiLanguage(), "app.refresh")}+ {t(uiLang, "app.refresh")}</Button><Button variant="outline" onClick={() => this.setState({ error: null })}>- {t(getUiLanguage(), "app.tryContinue")}+ {t(uiLang, "app.tryContinue")}</Button></div></div>@@ -60,520 +54,79 @@ class ErrorBoundary extends React.Component<{ children: React.ReactNode }, { err}function App() {- const [uiLang, setUiLang] = useState<UiLanguage>(() => getUiLanguage());-- useEffect(() => {- setUiLanguage(uiLang);- }, [uiLang]);-- useEffect(() => {- const onLang = () => setUiLang(getUiLanguage());- window.addEventListener("ui-language-changed", onLang as any);- return () => window.removeEventListener("ui-language-changed", onLang as any);- }, []);-- const initialFlowState = (() => {- if (typeof window === "undefined") return null;- try {- const raw = localStorage.getItem(FLOW_WORKSPACE_STORAGE_KEY);- const parsed = raw ? JSON.parse(raw) : null;- if (!parsed || typeof parsed !== "object") return null;- return parsed as any;- } catch {- return null;- }- })();-- const initialCadState = (() => {- if (typeof window === "undefined") return null;- try {- const raw = localStorage.getItem(CAD_WORKSPACE_STORAGE_KEY);- const parsed = raw ? JSON.parse(raw) : null;- if (!parsed || typeof parsed !== "object") return null;- return parsed as any;- } catch {- return null;- }- })();-- const [showLanding, setShowLanding] = useState(true);- const [activeWorkspace, setActiveWorkspace] = useState<WorkspaceType>('flow');- const [attachments, setAttachments] = useState<{ id: string; type: 'xml' | 'python' | 'json'; content: string; name: string }[]>([]);-- // Workspace specific states- const [generatedXml, setGeneratedXml] = useState<string | undefined>(() => {- const v = initialFlowState?.generatedXml;- return typeof v === "string" ? v : undefined;- });- const [cad2dSvg, setCad2dSvg] = useState<string | undefined>(() => {- const v = initialCadState?.cad2dSvg;- return typeof v === "string" ? v : undefined;- });- const [cadPlan, setCadPlan] = useState<any>(() => (initialCadState?.cadPlan ?? null));- const [cadImages, setCadImages] = useState<{ title: string; url: string }[]>(() => {- const v = initialCadState?.cadImages;- return Array.isArray(v)- ? v- .filter((x: any) => x && typeof x.title === "string" && typeof x.url === "string")- .map((x: any) => ({ title: x.title, url: x.url }))- : [];+ const uiLang = useUiLanguage();+ const [showLanding, setShowLanding] = useState(() => {+ if (typeof window === "undefined") return true;+ const saved = localStorage.getItem(APP_VIEW_STORAGE_KEY);+ if (saved === "workspace") return false;+ if (saved === "landing") return true;+ return true;});- const [cadImagesLoading, setCadImagesLoading] = useState(false);- const [cadBom, setCadBom] = useState<{ columns: string[]; rows: any[] } | null>(() => {- const v = initialCadState?.cadBom;- if (!v || typeof v !== "object") return null;- const columns = Array.isArray((v as any).columns) ? (v as any).columns.filter((c: any) => typeof c === "string") : [];- const rows = Array.isArray((v as any).rows) ? (v as any).rows : [];- return { columns, rows };- });- const [cadFocusPanel, setCadFocusPanel] = useState<"2d" | "renders" | "bom" | null>(() => {- const v = initialCadState?.cadFocusPanel;- return v === "2d" || v === "renders" || v === "bom" ? v : null;- });- const [pptIncomingEdit, setPptIncomingEdit] = useState<{ id: string; payload: string } | null>(null);- const [pptDraftSlides, setPptDraftSlides] = useState<Array<{ id: string; slideId: string; title: string; json: string; kind: "outline" | "slide_image"; imageUrl?: string }>>([]);- const [pptResetTick, setPptResetTick] = useState(0);- const cadImageObjectUrlsRef = useRef<string[]>([]);-- // Chat History Management (Per Workspace)- const [chatHistories, setChatHistories] = useState<Record<WorkspaceType, ChatMessage[]>>({- flow: [],- cad: [],- ppt: []+ const [activeWorkspace, setActiveWorkspace] = useState<WorkspaceType>(() => {+ if (typeof window === "undefined") return "flow";+ const saved = localStorage.getItem(APP_WORKSPACE_STORAGE_KEY);+ return saved === "cad" || saved === "ppt" || saved === "flow" ? saved : "flow";});- // Version History Management (Per Workspace)- const [versionHistories, setVersionHistories] = useState<Record<WorkspaceType, HistoryItem[]>>(() => {- if (typeof window !== 'undefined') {- const saved = localStorage.getItem(HISTORY_STORAGE_KEY);- if (saved) {- try {- return JSON.parse(saved);- } catch (e) {- console.error("Failed to parse history", e);- }- }- }- return { flow: [], cad: [], ppt: [] };- });-- // Persist history- useEffect(() => {- localStorage.setItem(HISTORY_STORAGE_KEY, JSON.stringify(versionHistories));- }, [versionHistories]);-- useEffect(() => {+ React.useEffect(() => {if (typeof window === "undefined") return;- try {- localStorage.setItem(- FLOW_WORKSPACE_STORAGE_KEY,- JSON.stringify({- generatedXml: typeof generatedXml === "string" ? generatedXml : null,- updatedAt: Date.now(),- })- );- } catch {- }- }, [generatedXml]);+ localStorage.setItem(APP_VIEW_STORAGE_KEY, showLanding ? "landing" : "workspace");+ }, [showLanding]);- useEffect(() => {+ React.useEffect(() => {if (typeof window === "undefined") return;- try {- localStorage.setItem(- CAD_WORKSPACE_STORAGE_KEY,- JSON.stringify({- cad2dSvg: typeof cad2dSvg === "string" ? cad2dSvg : null,- cadPlan: cadPlan ?? null,- cadImages,- cadBom,- cadFocusPanel,- updatedAt: Date.now(),- })- );- } catch {- }- }, [cad2dSvg, cadPlan, cadImages, cadBom, cadFocusPanel]);-- useEffect(() => {- const nextObjectUrls = cadImages- .map((x) => x?.url)- .filter((u): u is string => typeof u === "string" && u.startsWith("blob:"));- const prevObjectUrls = cadImageObjectUrlsRef.current;- for (const u of prevObjectUrls) {- if (!nextObjectUrls.includes(u)) {- try {- URL.revokeObjectURL(u);- } catch {- }- }- }- cadImageObjectUrlsRef.current = nextObjectUrls;- }, [cadImages]);-- // Layout State- const [isChatCollapsed, setIsChatCollapsed] = useState(false);- const chatPanelRef = useRef<PanelImperativeHandle | null>(null);- const [pptReady, setPptReady] = useState(false);- const [pptStage, setPptStage] = useState<"outline" | "slides">("outline");- const pptChatLocked = activeWorkspace === "ppt" && !pptReady;-- useEffect(() => {- if (pptChatLocked && isChatCollapsed) {- setIsChatCollapsed(false);- }- }, [pptChatLocked, isChatCollapsed]);-- useEffect(() => {- if (activeWorkspace === "ppt" && !pptChatLocked) {- setIsChatCollapsed(false);- }- }, [activeWorkspace, pptChatLocked]);-- const handleToggleCollapse = () => {- if (pptChatLocked) return;- const panel = chatPanelRef.current;- if (panel) {- try {- if (panel.isCollapsed?.() || isChatCollapsed) {- panel.expand();- setIsChatCollapsed(false);- } else {- panel.collapse();- setIsChatCollapsed(true);- }- } catch (e) {- console.error("Failed to toggle chat panel", e);- setIsChatCollapsed(false);- }- }- };-- const chatUi = (() => {- if (activeWorkspace === "flow") {- return {- title: t(uiLang, "workspace.flow.title"),- placeholder: t(uiLang, "workspace.flow.placeholder")- };- }- if (activeWorkspace === "cad") {- return {- title: t(uiLang, "workspace.cad.title"),- placeholder: t(uiLang, "workspace.cad.placeholder")- };- }- if (activeWorkspace === "ppt") {- return {- title: t(uiLang, "workspace.ppt.title"),- placeholder: t(uiLang, "workspace.ppt.placeholder")- };- }- return { title: t(uiLang, "workspace.default.title"), placeholder: undefined as any };- })();-- const handleAddToChat = (code: string, type: 'xml' | 'python' | 'json' = 'xml', name: string = 'attachment') => {- if (activeWorkspace === "ppt" && type === "json") {- const tryAddSlide = (slide: any) => {- if (!slide || typeof slide !== "object") return;- const slideId = typeof slide.id === "string" && slide.id.trim() ? slide.id.trim() : "";- if (!slideId) return;- const title = typeof slide.title === "string" ? slide.title : "";- const imageUrl = typeof slide.imageUrl === "string" ? slide.imageUrl : "";- const kind: "outline" | "slide_image" = imageUrl ? "slide_image" : "outline";- const json = JSON.stringify(slide, null, 2);- setPptDraftSlides((prev) => {- const next = prev.filter((x) => x.slideId !== slideId);- return [...next, { id: `${Date.now()}-${Math.random().toString(16).slice(2)}`, slideId, title, json, kind, imageUrl: imageUrl || undefined }];- });- };-- try {- const parsed = JSON.parse(code);- if (parsed && typeof parsed === "object" && Array.isArray((parsed as any).slides)) {- for (const s of (parsed as any).slides) tryAddSlide(s);- return;- }- tryAddSlide(parsed);- return;- } catch {- const m = String(name || "").match(/^(slide-\d+)\.json$/i);- if (m) {- setPptDraftSlides((prev) => [- ...prev,- { id: `${Date.now()}-${Math.random().toString(16).slice(2)}`, slideId: m[1], title: "", json: String(code || ""), kind: "outline" }- ]);- return;- }- }- }-- setAttachments(prev => [- ...prev,- {- id: Math.random().toString(36).substring(7),- type,- content: code,- name- }- ]);- };-- const getSystemPrompt = (type: WorkspaceType) => {- switch (type) {- case 'flow': return DRAWIO_SYSTEM_PROMPT;- case 'cad': return CAD_SYSTEM_PROMPT;- case 'ppt': {- return pptStage === "slides" ? PPT_SLIDES_EDIT_SYSTEM_PROMPT : PPT_OUTLINE_EDIT_SYSTEM_PROMPT;- }- default: return DRAWIO_SYSTEM_PROMPT;- }- };-- const handleMessagesChange = React.useCallback((msgs: ChatMessage[]) => {- setChatHistories(prev => {- if (prev[activeWorkspace] === msgs) return prev;- return { ...prev, [activeWorkspace]: msgs };- });+ localStorage.setItem(APP_WORKSPACE_STORAGE_KEY, activeWorkspace);}, [activeWorkspace]);- const getChatModel = (type: WorkspaceType) => {- return undefined;- };-- const addToHistory = (content: string, type: HistoryItem["type"]) => {- const newItem: HistoryItem = {- id: Date.now().toString(),- timestamp: Date.now(),- content,- type- };- setVersionHistories(prev => ({- ...prev,- [activeWorkspace]: [...prev[activeWorkspace], newItem]- }));- };-- const handleRestore = (workspace: WorkspaceType, item: HistoryItem) => {- if (workspace === 'flow') {- if (item.type === 'xml') setGeneratedXml(item.content);- return;- }-- if (workspace === 'ppt') {- if (item.type === 'json') setPptIncomingEdit({ id: `${Date.now()}`, payload: item.content });- return;- }-- if (workspace === 'cad') {- if (item.type === 'svg') {- setCad2dSvg(item.content);- return;- }- if (item.type === 'json') {- try {- const parsed = JSON.parse(item.content);- if (parsed?.type === "cad_plan") setCadPlan(parsed);- if (parsed?.type === "cad_bom") setCadBom({ columns: parsed.columns || [], rows: parsed.rows || [] });- if (parsed?.type === "cad_images") {- const next = Array.isArray(parsed.prompts)- ? parsed.prompts- .filter((p: any) => p && typeof p.title === "string" && typeof p.url === "string")- .map((p: any) => ({ title: p.title, url: p.url }))- : [];- if (next.length > 0) setCadImages(next);- }- } catch {- }- }- }- };-- const applyStringEdits = (source: string, edits: { search: string; replace: string }[]) => {- if (!Array.isArray(edits) || edits.length === 0) {- throw new Error("Empty patch edits");- }-- let out = source;-- for (const e of edits) {- if (!e || typeof e.search !== "string" || typeof e.replace !== "string") {- throw new Error("Invalid patch edit item");- }- const search = e.search;- const replace = e.replace;- if (!search) {- throw new Error("Empty search pattern in patch edit");- }- if (!out.includes(search)) {- throw new Error("Search pattern not found in current content");- }- out = out.replace(search, replace);- }-- return out;- };-- const validateDrawioXml = (xml: string): string | null => {- const text = String(xml || "").trim();- if (!text) return "XML 为空";-- let doc: Document;- try {- const parser = new DOMParser();- doc = parser.parseFromString(text, "text/xml");- } catch {- return "XML 解析失败";- }-- const parseError = doc.querySelector("parsererror");- if (parseError) {- return "XML 不合法:包含语法错误或未转义字符(例如 < > & \")";- }-- const rootEl = doc.querySelector("mxGraphModel > root");- if (!rootEl) {- return "XML 结构不正确:缺少 <mxGraphModel><root>...</root></mxGraphModel>";- }-- const allCells = Array.from(rootEl.querySelectorAll("mxCell"));- if (allCells.length === 0) {- return "XML 结构不正确:<root> 下没有 mxCell";- }-- const notDirectChildren = allCells- .filter((c) => c.parentElement !== rootEl)- .map((c) => c.getAttribute("id") || "unknown");- if (notDirectChildren.length > 0) {- return `XML 结构不正确:所有 mxCell 必须是 <root> 的直接子元素(例如 ${notDirectChildren.slice(0, 3).join(", ")})`;- }-- const nestedCells = allCells- .filter((c) => c.parentElement?.tagName === "mxCell")- .map((c) => c.getAttribute("id") || "unknown");- if (nestedCells.length > 0) {- return `XML 结构不正确:mxCell 不能嵌套(例如 ${nestedCells.slice(0, 3).join(", ")})`;- }-- const ids = new Set<string>();- const duplicateIds: string[] = [];- const orphanCells: string[] = [];- const parentRefs: Array<{ id: string; parent: string }> = [];- const edges: Array<{ id: string; source: string | null; target: string | null }> = [];-- for (const cell of allCells) {- const id = cell.getAttribute("id") || "";- const parent = cell.getAttribute("parent");- const isEdge = cell.getAttribute("edge") === "1";-- if (!id) return "XML 结构不正确:mxCell 缺少必需的 id 属性";- if (ids.has(id)) duplicateIds.push(id);- else ids.add(id);-- if (id !== "0") {- if (!parent) orphanCells.push(id);- else parentRefs.push({ id, parent });- }-- if (isEdge) {- edges.push({- id,- source: cell.getAttribute("source"),- target: cell.getAttribute("target"),- });- }- }-- if (duplicateIds.length > 0) {- return `XML 结构不正确:mxCell id 重复(例如 ${duplicateIds.slice(0, 3).join(", ")})`;- }- if (orphanCells.length > 0) {- return `XML 结构不正确:缺少 parent 属性(例如 ${orphanCells.slice(0, 3).join(", ")})`;- }-- const cell0 = allCells.find((c) => c.getAttribute("id") === "0") || null;- const cell1 = allCells.find((c) => c.getAttribute("id") === "1") || null;- if (!cell0 || !cell1) {- return 'XML 结构不正确:必须包含 <mxCell id="0"/> 与 <mxCell id="1" parent="0"/>';- }- if (cell0.getAttribute("parent")) {- return 'XML 结构不正确:<mxCell id="0"/> 不应包含 parent 属性';- }- if (cell1.getAttribute("parent") !== "0") {- return 'XML 结构不正确:<mxCell id="1" parent="0"/> 的 parent 必须为 "0"';- }-- const badParents = parentRefs.filter((p) => !ids.has(p.parent));- if (badParents.length > 0) {- const details = badParents- .slice(0, 3)- .map((p) => `${p.id}(parent:${p.parent})`)- .join(", ");- return `XML 结构不正确:parent 引用不存在(例如 ${details})`;- }-- const invalidConnections: string[] = [];- for (const edge of edges) {- if (edge.source && !ids.has(edge.source)) {- invalidConnections.push(`${edge.id}(source:${edge.source})`);- }- if (edge.target && !ids.has(edge.target)) {- invalidConnections.push(`${edge.id}(target:${edge.target})`);- }- }- if (invalidConnections.length > 0) {- return `XML 结构不正确:连线 source/target 引用不存在(例如 ${invalidConnections.slice(0, 3).join(", ")})`;- }-- return null;- };-- if (showLanding) {- return <LandingPage onStart={() => setShowLanding(false)} />;- }+ if (showLanding) return <LandingPage onStart={() => setShowLanding(false)} />;return (<div className="h-screen w-screen flex flex-col bg-background overflow-hidden font-sans"><Toaster position="top-center" richColors />- {/* Top Navigation Bar */}+<header className="h-14 border-b border-border/40 flex items-center px-6 justify-between bg-background/80 backdrop-blur-md supports-[backdrop-filter]:bg-background/60 z-50 shadow-sm">- <div className="flex items-center gap-2.5 font-semibold text-lg tracking-tight text-foreground/90 cursor-pointer" onClick={() => setShowLanding(true)}>+ <div+ className="flex items-center gap-2.5 font-semibold text-lg tracking-tight text-foreground/90 cursor-pointer"+ onClick={() => setShowLanding(true)}+ ><div className="p-1.5 bg-blue-600/10 rounded-lg shadow-sm ring-1 ring-blue-600/20"><Layout className="w-5 h-5 text-blue-600" /></div><span>Unified AI Workspace</span></div>-+<div className="flex items-center bg-muted/50 p-1 rounded-xl border border-border/50 shadow-inner"><button- onClick={() => setActiveWorkspace('flow')}+ onClick={() => setActiveWorkspace("flow")}className={cn("flex items-center gap-2 px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",- activeWorkspace === 'flow'- ? "bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100"- : "text-muted-foreground hover:text-foreground hover:bg-background/50"+ activeWorkspace === "flow"+ ? "bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100"+ : "text-muted-foreground hover:text-foreground hover:bg-background/50",)}><Layers className="w-4 h-4" />{t(uiLang, "nav.flow")}</button><button- onClick={() => setActiveWorkspace('cad')}+ onClick={() => setActiveWorkspace("cad")}className={cn("flex items-center gap-2 px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",- activeWorkspace === 'cad'- ? "bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100"- : "text-muted-foreground hover:text-foreground hover:bg-background/50"+ activeWorkspace === "cad"+ ? "bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100"+ : "text-muted-foreground hover:text-foreground hover:bg-background/50",)}><FileCode className="w-4 h-4" />{t(uiLang, "nav.cad")}</button><button- onClick={() => setActiveWorkspace('ppt')}+ onClick={() => setActiveWorkspace("ppt")}className={cn("flex items-center gap-2 px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",- activeWorkspace === 'ppt'- ? "bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100"- : "text-muted-foreground hover:text-foreground hover:bg-background/50"+ activeWorkspace === "ppt"+ ? "bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100"+ : "text-muted-foreground hover:text-foreground hover:bg-background/50",)}><Presentation className="w-4 h-4" />@@ -586,374 +139,11 @@ function App() {</div></header>- {/* Main Content Area */}<div className="flex-1 overflow-hidden relative"><ErrorBoundary>- <ResizablePanelGroup orientation="horizontal" className="h-full" style={{ height: '100%' }}>- <ResizablePanel- defaultSize={pptChatLocked ? "100%" : "68%"}- minSize="30%"- className={cn("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]")}- >- <div className="h-full w-full relative bg-muted/20">- {activeWorkspace === 'flow' && (- <FlowchartWorkspace- initialXml={generatedXml}- onXmlChange={setGeneratedXml}- onAddToChat={(code) => handleAddToChat(code, 'xml', 'diagram.xml')}- />- )}- {activeWorkspace === 'cad' && (- <CadWorkspace- svg2d={cad2dSvg}- plan={cadPlan}- images={cadImages}- imagesLoading={cadImagesLoading}- bom={cadBom}- focusPanel={cadFocusPanel}- onAddToChat={(payload) => {- const trimmed = String(payload || "").trim();- if (!trimmed) return;- if (trimmed.startsWith("<svg")) {- handleAddToChat(payload, 'xml', 'plan.svg');- return;- }- if (trimmed.startsWith("{") || trimmed.startsWith("[")) {- handleAddToChat(payload, 'json', 'cad.json');- return;- }- handleAddToChat(payload, 'python', 'script.py');- }}- />- )}- {activeWorkspace === 'ppt' && (- <PptWorkspace- key={`ppt-${pptResetTick}`}- onAddToChat={(code, name) => handleAddToChat(code, 'json', name)}- onPptReadyChange={setPptReady}- onPptStageChange={setPptStage}- incomingEdit={pptIncomingEdit}- onIncomingEditHandled={() => setPptIncomingEdit(null)}- onResetWorkspace={() => {- setPptIncomingEdit(null);- setPptDraftSlides([]);- setPptReady(false);- setPptStage("outline");- try { localStorage.removeItem(PPT_WORKSPACE_STORAGE_KEY); } catch {}- setPptResetTick((x) => x + 1);- }}- />- )}- </div>- </ResizablePanel>-- {!pptChatLocked && (- <>- <ResizableHandle withHandle className="bg-border/50 hover:bg-primary/50 transition-colors w-1.5" />-- <ResizablePanel- id="chat"- panelRef={chatPanelRef}- defaultSize="32%"- minSize="20%"- maxSize="70%"- collapsible={!pptChatLocked}- collapsedSize="56px"- onResize={(panelSize) => setIsChatCollapsed(panelSize.inPixels <= 80)}- className={cn("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]")}- >- <ChatPanel- key={activeWorkspace}- systemPrompt={getSystemPrompt(activeWorkspace)}- initialMessages={chatHistories[activeWorkspace]}- onMessagesChange={handleMessagesChange}- attachments={attachments}- chatModel={getChatModel(activeWorkspace)}- workspaceId={activeWorkspace}- mode={activeWorkspace === 'ppt' ? 'ppt_image' : 'text'}- hideHistoryButton={activeWorkspace === 'ppt'}- collapsed={isChatCollapsed}- collapseLocked={pptChatLocked}- title={chatUi.title}- inputPlaceholder={chatUi.placeholder}- onToggleCollapse={handleToggleCollapse}- onRemoveAttachment={(id) => setAttachments(prev => prev.filter(a => a.id !== id))}- onClearAttachments={() => setAttachments([])}- pptDraftSlides={activeWorkspace === "ppt" ? pptDraftSlides : []}- onRemovePptDraftSlide={(id) => setPptDraftSlides(prev => prev.filter(s => s.id !== id))}- onClearPptDraftSlides={() => setPptDraftSlides([])}- onClearWorkspace={() => {- if (activeWorkspace === "flow") {- setGeneratedXml(undefined);- try { localStorage.removeItem(FLOW_WORKSPACE_STORAGE_KEY); } catch {}- }- if (activeWorkspace === "cad") {- setCad2dSvg(undefined);- setCadPlan(null);- setCadImages([]);- setCadImagesLoading(false);- setCadBom(null);- setCadFocusPanel(null);- try { localStorage.removeItem(CAD_WORKSPACE_STORAGE_KEY); } catch {}- try { localStorage.removeItem("unified-ai-workspace-cad-renders-v1"); } catch {}- }- if (activeWorkspace === "ppt") {- setPptIncomingEdit(null);- setPptDraftSlides([]);- setPptReady(false);- setPptStage("outline");- try { localStorage.removeItem(PPT_WORKSPACE_STORAGE_KEY); } catch {}- setPptResetTick((x) => x + 1);- }- setVersionHistories((prev) => ({ ...prev, [activeWorkspace]: [] }));- }}- history={versionHistories[activeWorkspace]}- onRestore={(item) => handleRestore(activeWorkspace, item)}- onClearVersionHistory={() => {- setVersionHistories(prev => ({ ...prev, [activeWorkspace]: [] }));- }}- cadContext={activeWorkspace === "cad" ? { plan: cadPlan, svg2d: cad2dSvg } : undefined}- flowContext={activeWorkspace === "flow" ? { xml: generatedXml } : undefined}- onCodeAction={(code, type) => {- if (type === 'flow') {- const raw = String(code || "");- const trimmed = raw.trim();- if (!trimmed) return { ok: false, retry: false, error: "Empty input" };-- if (trimmed.startsWith("{")) {- const tryParseJson = (text: string) => {- try {- return JSON.parse(text);- } catch {- const start = text.indexOf("{");- const end = text.lastIndexOf("}");- if (start >= 0 && end > start) {- try {- return JSON.parse(text.slice(start, end + 1));- } catch {- }- }- return null;- }- };-- try {- const parsed = tryParseJson(trimmed);- if (!parsed) return;- if (parsed?.type === "flow_patch" && parsed?.target === "drawio_xml") {- const current = generatedXml || "";- if (parsed?.mode === "replace" && typeof parsed.full === "string") {- const err = validateDrawioXml(parsed.full);- if (err) {- toast.error(`XML 校验失败:${err}。请让 AI 修复后重试,或重新生成 mode=replace。`);- return { ok: false, retry: true, error: err };- }- setGeneratedXml(parsed.full);- addToHistory(parsed.full, "xml");- return { ok: true };- }- if (parsed?.mode === "patch" && Array.isArray(parsed.edits)) {- try {- const next = applyStringEdits(current, parsed.edits);- const err = validateDrawioXml(next);- if (err) {- toast.error(`XML 校验失败:${err}。请让 AI 改用 mode=replace,或修复后重试。`);- return { ok: false, retry: true, error: err };- }- setGeneratedXml(next);- addToHistory(next, "xml");- return { ok: true };- } catch (e) {- const msg = e instanceof Error ? e.message : String(e);- toast.error(`补丁应用失败:${msg}。请让 AI 改用 mode=replace,或从当前 XML 精确复制 search 片段。`);- return { ok: false, retry: true, error: msg };- }- }- }- if (typeof parsed?.type === "string") {- return;- }- } catch {- return;- }- }- const err = validateDrawioXml(raw);- if (err) {- toast.error(`XML 校验失败:${err}。请让 AI 修复后重试。`);- return { ok: false, retry: true, error: err };- }- setGeneratedXml(raw);- addToHistory(raw, 'xml');- return { ok: true };- } else if (type === 'cad') {- const raw = String(code || "");- const trimmed = raw.trim();- if (!trimmed) return;-- if (trimmed.startsWith("<svg")) {- setCad2dSvg(raw);- setCadFocusPanel("2d");- addToHistory(raw, 'svg');- return;- }-- if (trimmed.startsWith("{")) {- const tryParseJson = (text: string) => {- try {- return JSON.parse(text);- } catch {- const start = text.indexOf("{");- const end = text.lastIndexOf("}");- if (start >= 0 && end > start) {- try {- return JSON.parse(text.slice(start, end + 1));- } catch {- }- }- return null;- }- };-- try {- const parsed = tryParseJson(trimmed);- if (!parsed) return;- if (parsed?.type === "cad_plan") {- setCadPlan(parsed);- addToHistory(JSON.stringify(parsed), 'json');- return;- }- if (parsed?.type === "cad_bom") {- const fallbackColumns = ["品类", "名称", "规格", "数量", "单位", "备注"];- const columns = Array.isArray(parsed.columns) && parsed.columns.length > 0- ? parsed.columns.map((x: any) => String(x))- : fallbackColumns;- const rows = Array.isArray(parsed.rows) ? parsed.rows : [];- setCadBom({ columns, rows });- setCadFocusPanel("bom");- addToHistory(JSON.stringify({ type: "cad_bom", columns, rows }), 'json');- return;- }- if (parsed?.type === "cad_images") {- const prompts = Array.isArray(parsed.prompts) ? parsed.prompts : [];- const items = prompts- .map((p: any) => ({- title: typeof p?.title === "string" ? p.title : "视角",- prompt: typeof p?.prompt === "string" ? p.prompt : ""- }))- .filter((p: any) => p.prompt);-- (async () => {- setCadFocusPanel("renders");- setCadImagesLoading(true);- setCadImages([]);- try {- const results: { title: string; url: string; prompt: string }[] = [];-- const presetRenderPrompt = [- "orthographic 2D technical construction drawing sheet, CAD-like linework",- "black and white printing, clean readable annotations, clear dimension text",- "include drawing border/frame and bottom-right title block",- "no perspective, no 3D, no photorealism",- "no watermark, no logo, no decorative typography"- ].join(", ");-- const planText = cadPlan ? JSON.stringify(cadPlan) : "";- const svgText = typeof cad2dSvg === "string" ? cad2dSvg : "";-- const maxPlanChars = 6000;- const maxSvgChars = 6000;-- const planShort = planText.length > maxPlanChars ? planText.slice(0, maxPlanChars) : planText;- const svgShort = svgText.length > maxSvgChars ? svgText.slice(0, maxSvgChars) : svgText;-- const list = items.slice(0, 7);- const batchSize = 3;- for (let i = 0; i < list.length; i += batchSize) {- const batch = list.slice(i, i + batchSize);- const settled = await Promise.allSettled(- batch.map(async (p) => {- const fullPrompt = [- presetRenderPrompt,- "",- "Plan:",- planShort,- "",- "2D SVG:",- svgShort,- "",- "Sheet:",- p.prompt- ].filter(Boolean).join("\n");- const url = await generateImage({ prompt: fullPrompt });- return url ? { title: p.title, url, prompt: p.prompt } : null;- })- );- for (const s of settled) {- if (s.status === "fulfilled" && s.value?.url) results.push(s.value);- }- }-- const final = results.map((r) => ({ title: r.title, url: r.url }));- setCadImages(final);- addToHistory(JSON.stringify({ type: "cad_images", prompts: results }), 'json');- } catch (e) {- console.error("CAD image generation failed", e);- setCadImages([]);- } finally {- setCadImagesLoading(false);- setCadFocusPanel("renders");- }- })();- return;- }- if (parsed?.type === "cad_patch") {- const target = parsed?.target;- const mode = parsed?.mode;- if (target === "2d_svg") {- const current = cad2dSvg || "";- if (mode === "replace" && typeof parsed.full === "string") {- setCad2dSvg(parsed.full);- addToHistory(parsed.full, 'svg');- return;- }- if (mode === "patch" && Array.isArray(parsed.edits)) {- try {- const next = applyStringEdits(current, parsed.edits);- setCad2dSvg(next);- addToHistory(next, 'svg');- } catch (e) {- const msg = e instanceof Error ? e.message : String(e);- toast.error(`补丁应用失败:${msg}。请让 AI 改用 mode=replace,或从当前内容精确复制 search 片段。`);- }- return;- }- }- return;- }-- if (typeof parsed?.type === "string") {- return;- }- } catch (e) {- console.error("Failed to parse CAD JSON", e);- }- }- } else if (type === 'ppt') {- try {- JSON.parse(code);- setPptIncomingEdit({ id: `${Date.now()}`, payload: code });- addToHistory(code, 'json');- } catch (e) {- console.error("Failed to parse PPT JSON", e);- }- }- return { ok: true };- }}- />- </ResizablePanel>- </>- )}- </ResizablePanelGroup>+ {activeWorkspace === "flow" && <FlowWorkspaceShell />}+ {activeWorkspace === "cad" && <CadWorkspaceShell />}+ {activeWorkspace === "ppt" && <PptWorkspaceShell />}</ErrorBoundary></div></div>diff --git a/src/components/workspaces/FlowchartWorkspace.tsx b/src/components/workspaces/FlowchartWorkspace.tsxdeleted file mode 100644index 5640435..0000000--- a/src/components/workspaces/FlowchartWorkspace.tsx+++ /dev/null@@ -1,192 +0,0 @@-import React, { useRef, useEffect, useState } from 'react';-import { Button } from '@/components/ui/button';-import { MessageSquarePlus } from 'lucide-react';-import {- ContextMenu,- ContextMenuContent,- ContextMenuItem,- ContextMenuTrigger,-} from "@/components/ui/context-menu";-import { useUiLanguage } from "@/lib/use-ui-language";-import { t } from "@/lib/i18n";--interface FlowchartWorkspaceProps {- initialXml?: string;- onAddToChat?: (xmlSnippet: string) => void;- onXmlChange?: (xml: string) => void;-}--export function FlowchartWorkspace({ initialXml, onAddToChat, onXmlChange }: FlowchartWorkspaceProps) {- const iframeRef = useRef<HTMLIFrameElement>(null);- const [isLoaded, setIsLoaded] = useState(false);- const [selectedCells, setSelectedCells] = useState<any[]>([]);- const lastEmittedXmlRef = useRef<string>("");- const autosaveInFlightRef = useRef(false);- const uiLang = useUiLanguage();-- // Default empty graph- const emptyXml = '<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';-- useEffect(() => {- const handleMessage = (e: MessageEvent) => {- if (typeof e.data === 'string') {- try {- const msg = JSON.parse(e.data);-- // Init event - draw.io is ready- if (msg.event === 'init') {- setIsLoaded(true);-- // Add "Add to Chat" button to Draw.io menu bar- const iframe = iframeRef.current;- if (iframe?.contentWindow) {- iframe.contentWindow.postMessage(JSON.stringify({- action: 'configure',- config: {- customButtons: [{- action: 'export',- format: 'xml',- callback: true,- label: t(uiLang, "flow.addToChat"),- tooltip: t(uiLang, "flow.addToChat.tooltip"),- icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0yMSAxNWExIDEgMCAwIDEtMSAxSDRhMSAxIDAgMCAxLTEtMVY4YTEgMSAwIDAgMSAxLTFoMTZhMSAxIDAgMCAxIDEgMXY3em0tNC03djEwaC0ydjZoLTJ2LTZoLTJ2LTZIOSIgLz48L3N2Zz4='- }]- }- }), '*');- }- }-- // Listen for auto-save or export events if we were to add them to internal menu- // but for now we drive it externally.- } catch (err) {- // ignore- }- }- };- window.addEventListener('message', handleMessage);- return () => window.removeEventListener('message', handleMessage);- }, []);-- useEffect(() => {- if (!isLoaded) return;- const iframe = iframeRef.current;- if (!iframe?.contentWindow) return;-- const requestExport = () => {- if (autosaveInFlightRef.current) return;- autosaveInFlightRef.current = true;-- const handleExport = (e: MessageEvent) => {- if (typeof e.data !== "string") return;- try {- const msg = JSON.parse(e.data);- if (msg.event !== "export") return;- const xml = String(msg.data || "");- autosaveInFlightRef.current = false;- window.removeEventListener("message", handleExport);- if (!xml) return;- if (xml === lastEmittedXmlRef.current) return;- lastEmittedXmlRef.current = xml;- onXmlChange?.(xml);- } catch {- }- };-- window.addEventListener("message", handleExport);- iframe.contentWindow.postMessage(- JSON.stringify({- action: "export",- format: "xml",- spin: t(uiLang, "flow.saving"),- }),- "*"- );- };-- requestExport();- const id = window.setInterval(requestExport, 2500);- return () => window.clearInterval(id);- }, [isLoaded, onXmlChange]);-- // Separate effect to handle XML loading when either loaded state or xml changes- useEffect(() => {- if (isLoaded && initialXml) {- const iframe = iframeRef.current;- if (iframe?.contentWindow) {- iframe.contentWindow.postMessage(JSON.stringify({- action: 'load',- xml: initialXml,- autosave: false- }), '*');- }- } else if (isLoaded && !initialXml) {- // Load default if no XML provided but loaded- const iframe = iframeRef.current;- if (iframe?.contentWindow) {- iframe.contentWindow.postMessage(JSON.stringify({- action: 'load',- xml: emptyXml,- autosave: false- }), '*');- }- }- }, [isLoaded, initialXml]);--- // Remove the second useEffect that was depending on isLoaded and setTimeout- // to avoid race conditions or double loading.-- const handleAddToChat = () => {- const iframe = iframeRef.current;- if (!iframe?.contentWindow) return;-- // Request export- // We need to set up a listener for the export result- const handleExport = (e: MessageEvent) => {- if (typeof e.data === 'string') {- try {- const msg = JSON.parse(e.data);- if (msg.event === 'export') {- // msg.data contains the XML- // If msg.data is empty or just basic wrapper, it might mean nothing selected/drawn- // But usually export returns the whole graph- if (onAddToChat) {- onAddToChat(msg.data);- }- window.removeEventListener('message', handleExport);- }- } catch (e) {- // ignore non-json- }- }- };- window.addEventListener('message', handleExport);-- // 'xml' format exports the full graph XML- iframe.contentWindow.postMessage(JSON.stringify({- action: 'export',- format: 'xml',- spin: t(uiLang, "flow.updatingChat")- }), '*');- };-- return (- <ContextMenu>- <ContextMenuTrigger className="w-full h-full relative overflow-hidden bg-muted flex">- <iframe- ref={iframeRef}- src={`https://embed.diagrams.net/?embed=1&ui=min&spin=1&noSaveBtn=1&noExitBtn=1&lang=${uiLang === "zh" ? "zh" : "en"}&proto=json`}- className="w-full h-full border-0 block"- title={t(uiLang, "flow.editorTitle")}- />- </ContextMenuTrigger>-- <ContextMenuContent>- <ContextMenuItem onClick={handleAddToChat} className="cursor-pointer gap-2">- <MessageSquarePlus className="w-4 h-4" />- <span>{t(uiLang, "flow.addToChat")}</span>- </ContextMenuItem>- </ContextMenuContent>- </ContextMenu>- );-}diff --git a/src/index.css b/src/index.cssindex ec4e8f7..d986176 100644--- a/src/index.css+++ b/src/index.css@@ -74,3 +74,19 @@@apply bg-background text-foreground;}}++@layer utilities {+ .shadow-soft {+ box-shadow:+ 0 1px 2px rgba(15, 23, 42, 0.05),+ 0 4px 12px rgba(15, 23, 42, 0.08),+ 0 8px 24px rgba(15, 23, 42, 0.06);+ }++ .shadow-soft-lg {+ box-shadow:+ 0 2px 4px rgba(15, 23, 42, 0.06),+ 0 8px 20px rgba(15, 23, 42, 0.1),+ 0 16px 40px rgba(15, 23, 42, 0.08);+ }+}diff --git a/src/lib/ai-client.ts b/src/lib/ai-client.tsindex 554fc6d..f12bef5 100644--- a/src/lib/ai-client.ts+++ b/src/lib/ai-client.ts@@ -14,7 +14,7 @@ export interface AIConfig {// Default Configurationconst DEFAULT_CONFIG: AIConfig = {apiKey: "",- baseUrl: "https://api.rcouyi.com/v1",+ baseUrl: "",chatModel: "gpt-3.5-turbo",imageModel: "gemini-2.5-flash-image-preview",systemPrompt: ""@@ -134,11 +134,19 @@ export function saveAIConfig(config: AIConfig) {// OpenAI Client Factoryfunction getClient() {const config = getAIConfig();- return new OpenAI({+ const baseURL = String(config.baseUrl || "").trim();+ const clientOptions: {+ apiKey: string;+ baseURL?: string;+ dangerouslyAllowBrowser: true;+ } = {apiKey: config.apiKey || "dummy", // Prevent crash if empty, but calls will fail- baseURL: config.baseUrl,dangerouslyAllowBrowser: true- });+ };+ if (baseURL) {+ clientOptions.baseURL = baseURL;+ }+ return new OpenAI(clientOptions);}export interface ChatMessage {diff --git a/src/workspaces/cad/CadWorkspaceShell.tsx b/src/workspaces/cad/CadWorkspaceShell.tsxnew file mode 100644index 0000000..bd8fcfa--- /dev/null+++ b/src/workspaces/cad/CadWorkspaceShell.tsx@@ -0,0 +1,452 @@+import React, { useEffect, useRef, useState } from "react";+import { toast } from "sonner";+import { cn } from "@/lib/utils";+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";+import {+ ResizableHandle,+ ResizablePanel,+ ResizablePanelGroup,+ type PanelImperativeHandle,+} from "@/workspaces/cad/ui/resizable";+import { CAD_SYSTEM_PROMPT } from "@/lib/system-prompts";+import type { ChatMessage } from "@/lib/ai-client";+import { generateImage } from "@/lib/ai-client";+import { CadWorkspace } from "@/workspaces/cad/workspace/CadWorkspace";+import { ChatPanel as CadChatPanel } from "@/workspaces/cad/chat/ChatPanel";+import type { HistoryItem } from "@/workspaces/cad/chat/history-dialog";++type Attachment = {+ id: string;+ type: "xml" | "python" | "json";+ content: string;+ name: string;+};++type CodeActionResult = { ok: boolean; retry?: boolean; error?: string };++const CAD_WORKSPACE_STORAGE_KEY = "unified-ai-workspace-cad-state-v1";+const CAD_RENDERS_STORAGE_KEY = "unified-ai-workspace-cad-renders-v1";+const CAD_HISTORY_STORAGE_KEY = "unified-ai-workspace-history-cad-v1";+const CAD_CHAT_STORAGE_KEY = "chat_history_v2_cad";++const tryParseJson = (text: string) => {+ try {+ return JSON.parse(text);+ } catch {+ const start = text.indexOf("{");+ const end = text.lastIndexOf("}");+ if (start >= 0 && end > start) {+ try {+ return JSON.parse(text.slice(start, end + 1));+ } catch {+ }+ }+ return null;+ }+};++function applyStringEdits(source: string, edits: { search: string; replace: string }[]) {+ if (!Array.isArray(edits) || edits.length === 0) throw new Error("Empty patch edits");+ let out = source;+ for (const edit of edits) {+ if (!edit || typeof edit.search !== "string" || typeof edit.replace !== "string") {+ throw new Error("Invalid patch edit item");+ }+ if (!edit.search) throw new Error("Empty search pattern in patch edit");+ if (!out.includes(edit.search)) throw new Error("Search pattern not found in current content");+ out = out.replace(edit.search, edit.replace);+ }+ return out;+}++export function CadWorkspaceShell() {+ const uiLang = useUiLanguage();+ const initialCadState = (() => {+ if (typeof window === "undefined") return null;+ try {+ const raw = localStorage.getItem(CAD_WORKSPACE_STORAGE_KEY);+ const parsed = raw ? JSON.parse(raw) : null;+ if (!parsed || typeof parsed !== "object") return null;+ return parsed as any;+ } catch {+ return null;+ }+ })();++ const [cad2dSvg, setCad2dSvg] = useState<string | undefined>(() => {+ const v = initialCadState?.cad2dSvg;+ return typeof v === "string" ? v : undefined;+ });+ const [cadPlan, setCadPlan] = useState<any>(() => initialCadState?.cadPlan ?? null);+ const [cadImages, setCadImages] = useState<{ title: string; url: string }[]>(() => {+ const v = initialCadState?.cadImages;+ return Array.isArray(v)+ ? v+ .filter((x: any) => x && typeof x.title === "string" && typeof x.url === "string")+ .map((x: any) => ({ title: x.title, url: x.url }))+ : [];+ });+ const [cadImagesLoading, setCadImagesLoading] = useState(false);+ const [cadBom, setCadBom] = useState<{ columns: string[]; rows: any[] } | null>(() => {+ const v = initialCadState?.cadBom;+ if (!v || typeof v !== "object") return null;+ const columns = Array.isArray((v as any).columns)+ ? (v as any).columns.filter((c: any) => typeof c === "string")+ : [];+ const rows = Array.isArray((v as any).rows) ? (v as any).rows : [];+ return { columns, rows };+ });+ const [cadFocusPanel, setCadFocusPanel] = useState<"2d" | "renders" | "bom" | null>(() => {+ const v = initialCadState?.cadFocusPanel;+ return v === "2d" || v === "renders" || v === "bom" ? v : null;+ });++ const [attachments, setAttachments] = useState<Attachment[]>([]);+ const [chatHistory, setChatHistory] = useState<ChatMessage[]>([]);+ const [versionHistory, setVersionHistory] = useState<HistoryItem[]>(() => {+ if (typeof window === "undefined") return [];+ try {+ const raw = localStorage.getItem(CAD_HISTORY_STORAGE_KEY);+ const parsed = raw ? JSON.parse(raw) : [];+ return Array.isArray(parsed) ? parsed : [];+ } catch {+ return [];+ }+ });++ const cadImageObjectUrlsRef = useRef<string[]>([]);+ const [isChatCollapsed, setIsChatCollapsed] = useState(false);+ const chatPanelRef = useRef<PanelImperativeHandle | null>(null);++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ localStorage.setItem(+ CAD_WORKSPACE_STORAGE_KEY,+ JSON.stringify({+ cad2dSvg: typeof cad2dSvg === "string" ? cad2dSvg : null,+ cadPlan: cadPlan ?? null,+ cadImages,+ cadBom,+ cadFocusPanel,+ updatedAt: Date.now(),+ }),+ );+ } catch {+ }+ }, [cad2dSvg, cadPlan, cadImages, cadBom, cadFocusPanel]);++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ localStorage.setItem(CAD_HISTORY_STORAGE_KEY, JSON.stringify(versionHistory));+ } catch {+ }+ }, [versionHistory]);++ useEffect(() => {+ const nextObjectUrls = cadImages+ .map((x) => x?.url)+ .filter((u): u is string => typeof u === "string" && u.startsWith("blob:"));+ const prevObjectUrls = cadImageObjectUrlsRef.current;+ for (const u of prevObjectUrls) {+ if (!nextObjectUrls.includes(u)) {+ try {+ URL.revokeObjectURL(u);+ } catch {+ }+ }+ }+ cadImageObjectUrlsRef.current = nextObjectUrls;+ }, [cadImages]);++ const toggleCollapse = () => {+ const panel = chatPanelRef.current;+ if (!panel) return;+ try {+ if (panel.isCollapsed?.() || isChatCollapsed) {+ panel.expand();+ setIsChatCollapsed(false);+ } else {+ panel.collapse();+ setIsChatCollapsed(true);+ }+ } catch {+ setIsChatCollapsed(false);+ }+ };++ const addToHistory = (content: string, type: HistoryItem["type"]) => {+ const item: HistoryItem = {+ id: Date.now().toString(),+ timestamp: Date.now(),+ content,+ type,+ };+ setVersionHistory((prev) => [...prev, item]);+ };++ const handleRestore = (item: HistoryItem) => {+ if (item.type === "svg") {+ setCad2dSvg(item.content);+ return;+ }+ if (item.type === "json") {+ try {+ const parsed = JSON.parse(item.content);+ if (parsed?.type === "cad_plan") setCadPlan(parsed);+ if (parsed?.type === "cad_bom") setCadBom({ columns: parsed.columns || [], rows: parsed.rows || [] });+ if (parsed?.type === "cad_images") {+ const next = Array.isArray(parsed.prompts)+ ? parsed.prompts+ .filter((p: any) => p && typeof p.title === "string" && typeof p.url === "string")+ .map((p: any) => ({ title: p.title, url: p.url }))+ : [];+ if (next.length > 0) setCadImages(next);+ }+ } catch {+ }+ }+ };++ const handleAddToChat = (payload: string) => {+ const trimmed = String(payload || "").trim();+ if (!trimmed) return;+ if (trimmed.startsWith("<svg")) {+ setAttachments((prev) => [+ ...prev,+ { id: Math.random().toString(36).slice(2), type: "xml", content: payload, name: "plan.svg" },+ ]);+ return;+ }+ if (trimmed.startsWith("{") || trimmed.startsWith("[")) {+ setAttachments((prev) => [+ ...prev,+ { id: Math.random().toString(36).slice(2), type: "json", content: payload, name: "cad.json" },+ ]);+ return;+ }+ setAttachments((prev) => [+ ...prev,+ { id: Math.random().toString(36).slice(2), type: "python", content: payload, name: "script.py" },+ ]);+ };++ const handleCadCodeAction = async (+ code: string,+ type: "flow" | "cad" | "ppt",+ ): Promise<CodeActionResult> => {+ if (type !== "cad") return { ok: true };++ const raw = String(code || "");+ const trimmed = raw.trim();+ if (!trimmed) return { ok: false, retry: false, error: "Empty input" };++ if (trimmed.startsWith("<svg")) {+ setCad2dSvg(raw);+ setCadFocusPanel("2d");+ addToHistory(raw, "svg");+ return { ok: true };+ }++ if (!trimmed.startsWith("{")) return { ok: true };+ const parsed = tryParseJson(trimmed);+ if (!parsed) return { ok: false, retry: false, error: "Invalid JSON" };++ if (parsed?.type === "cad_plan") {+ setCadPlan(parsed);+ addToHistory(JSON.stringify(parsed), "json");+ return { ok: true };+ }++ if (parsed?.type === "cad_bom") {+ const fallbackColumns = ["Category", "Name", "Spec", "Qty", "Unit", "Note"];+ const columns =+ Array.isArray(parsed.columns) && parsed.columns.length > 0+ ? parsed.columns.map((x: any) => String(x))+ : fallbackColumns;+ const rows = Array.isArray(parsed.rows) ? parsed.rows : [];+ setCadBom({ columns, rows });+ setCadFocusPanel("bom");+ addToHistory(JSON.stringify({ type: "cad_bom", columns, rows }), "json");+ return { ok: true };+ }++ if (parsed?.type === "cad_images") {+ const prompts = Array.isArray(parsed.prompts) ? parsed.prompts : [];+ const items = prompts+ .map((p: any) => ({+ title: typeof p?.title === "string" ? p.title : "View",+ prompt: typeof p?.prompt === "string" ? p.prompt : "",+ }))+ .filter((p: any) => p.prompt);++ setCadFocusPanel("renders");+ setCadImagesLoading(true);+ setCadImages([]);+ try {+ const results: { title: string; url: string; prompt: string }[] = [];+ const presetRenderPrompt = [+ "orthographic 2D technical construction drawing sheet, CAD-like linework",+ "black and white printing, clean readable annotations, clear dimension text",+ "include drawing border/frame and bottom-right title block",+ "no perspective, no 3D, no photorealism",+ "no watermark, no logo, no decorative typography",+ ].join(", ");++ const planText = cadPlan ? JSON.stringify(cadPlan) : "";+ const svgText = typeof cad2dSvg === "string" ? cad2dSvg : "";+ const planShort = planText.length > 6000 ? planText.slice(0, 6000) : planText;+ const svgShort = svgText.length > 6000 ? svgText.slice(0, 6000) : svgText;++ const list = items.slice(0, 7);+ const batchSize = 3;+ for (let i = 0; i < list.length; i += batchSize) {+ const batch = list.slice(i, i + batchSize);+ const settled = await Promise.allSettled(+ batch.map(async (p) => {+ const fullPrompt = [+ presetRenderPrompt,+ "",+ "Plan:",+ planShort,+ "",+ "2D SVG:",+ svgShort,+ "",+ "Sheet:",+ p.prompt,+ ]+ .filter(Boolean)+ .join("\n");+ const url = await generateImage({ prompt: fullPrompt });+ return url ? { title: p.title, url, prompt: p.prompt } : null;+ }),+ );+ for (const s of settled) {+ if (s.status === "fulfilled" && s.value?.url) results.push(s.value);+ }+ }++ const final = results.map((r) => ({ title: r.title, url: r.url }));+ setCadImages(final);+ addToHistory(JSON.stringify({ type: "cad_images", prompts: results }), "json");+ } catch (e) {+ console.error("CAD image generation failed", e);+ toast.error("CAD image generation failed");+ setCadImages([]);+ } finally {+ setCadImagesLoading(false);+ setCadFocusPanel("renders");+ }+ return { ok: true };+ }++ if (parsed?.type === "cad_patch" && parsed?.target === "2d_svg") {+ const mode = parsed?.mode;+ if (mode === "replace" && typeof parsed.full === "string") {+ setCad2dSvg(parsed.full);+ addToHistory(parsed.full, "svg");+ return { ok: true };+ }+ if (mode === "patch" && Array.isArray(parsed.edits)) {+ try {+ const next = applyStringEdits(cad2dSvg || "", parsed.edits);+ setCad2dSvg(next);+ addToHistory(next, "svg");+ return { ok: true };+ } catch (e) {+ const msg = e instanceof Error ? e.message : String(e);+ toast.error(`Patch apply failed: ${msg}`);+ return { ok: false, retry: true, error: msg };+ }+ }+ }++ return { ok: true };+ };++ const clearWorkspace = () => {+ setCad2dSvg(undefined);+ setCadPlan(null);+ setCadImages([]);+ setCadImagesLoading(false);+ setCadBom(null);+ setCadFocusPanel(null);+ setAttachments([]);+ setVersionHistory([]);+ try {+ localStorage.removeItem(CAD_WORKSPACE_STORAGE_KEY);+ } catch {+ }+ try {+ localStorage.removeItem(CAD_RENDERS_STORAGE_KEY);+ } catch {+ }+ try {+ localStorage.removeItem(CAD_CHAT_STORAGE_KEY);+ } catch {+ }+ };++ return (+ <ResizablePanelGroup orientation="horizontal" className="h-full" style={{ height: "100%" }}>+ <ResizablePanel+ defaultSize="68%"+ minSize="30%"+ className={cn("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]")}+ >+ <div className="h-full w-full relative bg-muted/20">+ <CadWorkspace+ svg2d={cad2dSvg}+ plan={cadPlan}+ images={cadImages}+ imagesLoading={cadImagesLoading}+ bom={cadBom}+ focusPanel={cadFocusPanel}+ onAddToChat={handleAddToChat}+ />+ </div>+ </ResizablePanel>++ <>+ <ResizableHandle withHandle className="bg-border/50 hover:bg-primary/50 transition-colors w-1.5" />+ <ResizablePanel+ id="cad-chat"+ panelRef={chatPanelRef}+ defaultSize="32%"+ minSize="20%"+ maxSize="70%"+ collapsible+ collapsedSize="56px"+ onResize={(panelSize) => setIsChatCollapsed(panelSize.inPixels <= 80)}+ className={cn("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]")}+ >+ <CadChatPanel+ key="cad"+ systemPrompt={CAD_SYSTEM_PROMPT}+ initialMessages={chatHistory}+ onMessagesChange={setChatHistory}+ attachments={attachments}+ workspaceId="cad"+ mode="text"+ collapsed={isChatCollapsed}+ title={t(uiLang, "workspace.cad.title")}+ inputPlaceholder={t(uiLang, "workspace.cad.placeholder")}+ onToggleCollapse={toggleCollapse}+ onRemoveAttachment={(id) => setAttachments((prev) => prev.filter((a) => a.id !== id))}+ onClearAttachments={() => setAttachments([])}+ onClearWorkspace={clearWorkspace}+ history={versionHistory}+ onRestore={handleRestore}+ onClearVersionHistory={() => setVersionHistory([])}+ cadContext={{ plan: cadPlan, svg2d: cad2dSvg }}+ onCodeAction={handleCadCodeAction}+ />+ </ResizablePanel>+ </>+ </ResizablePanelGroup>+ );+}+diff --git a/src/workspaces/cad/chat/ChatInput.tsx b/src/workspaces/cad/chat/ChatInput.tsxnew file mode 100644index 0000000..d81eabf--- /dev/null+++ b/src/workspaces/cad/chat/ChatInput.tsx@@ -0,0 +1,640 @@+import React, { useRef, useEffect, useMemo, useState, useCallback } from 'react';+import { Send, FileText, ImageIcon, History, Square, Trash2 } from 'lucide-react';+import { cn } from '@/lib/utils';+import { ButtonWithTooltip } from '@/workspaces/cad/chat/components/button-with-tooltip';+import { FilePreviewList } from '@/workspaces/cad/chat/file-preview-list';+import { useFileProcessor } from '@/lib/use-file-processor';+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";++type RichInputSegment =+ | { type: "text"; text: string }+ | { type: "ppt"; slideId: string; label: string; tag: string };++interface ChatInputProps {+ input: string;+ setInput: (value: string) => void;+ onSubmit: () => void;+ isLoading: boolean;+ onStop?: () => void;+ onClearChat?: () => void;+ onToggleHistory?: () => void;+ historyDisabled?: boolean;+ onFilesChange?: (files: File[]) => void;+ files?: File[]; // Controlled files+ placeholder?: string;+ topChips?: React.ReactNode;+ bottomChips?: React.ReactNode;+ focusKey?: string | number;+ richSegments?: RichInputSegment[];+ onRichSegmentsChange?: (segments: RichInputSegment[]) => void;+ insertPptToken?: { key: number; slideId: string; label: string; tag: string } | null;+ onInsertPptTokenHandled?: () => void;+ clearKey?: string | number;+ uploadMode?: "all" | "imagesOnly" | "filesOnly" | "none";+}++export function ChatInput({+ input,+ setInput,+ onSubmit,+ isLoading,+ onStop,+ onClearChat,+ onToggleHistory,+ historyDisabled = false,+ onFilesChange,+ files: controlledFiles,+ placeholder,+ topChips,+ bottomChips,+ focusKey,+ richSegments,+ onRichSegmentsChange,+ insertPptToken,+ onInsertPptTokenHandled,+ clearKey,+ uploadMode = "all"+}: ChatInputProps) {+ const uiLang = useUiLanguage();+ const textareaRef = useRef<HTMLTextAreaElement>(null);+ const richRef = useRef<HTMLDivElement>(null);+ const richSavedRangeRef = useRef<Range | null>(null);+ const fileInputRef = useRef<HTMLInputElement>(null);+ const imageInputRef = useRef<HTMLInputElement>(null);+ const richAppliedRef = useRef<string>("");+ const [richHasFocus, setRichHasFocus] = useState(false);++ const { files, handleFileChange, setFiles, pdfData } = useFileProcessor();+ const isRich = !!(richSegments && onRichSegmentsChange);++ // Sync controlled files if provided+ useEffect(() => {+ if (controlledFiles) {+ setFiles(controlledFiles);+ }+ }, [controlledFiles, setFiles]);++ // Notify parent when files change+ useEffect(() => {+ onFilesChange?.(files);+ }, [files, onFilesChange]);++ const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {+ if (e.key === 'Enter' && !e.shiftKey) {+ e.preventDefault();+ if (isLoading) onStop?.();+ else onSubmit();+ }+ };++ const autoResizeTextarea = useCallback(() => {+ if (isRich) return;+ const el = textareaRef.current;+ if (!el) return;+ el.style.height = 'auto';+ el.style.height = `${Math.min(el.scrollHeight, 200)}px`;+ }, [isRich]);++ useEffect(() => {+ autoResizeTextarea();+ }, [input, isRich, placeholder, autoResizeTextarea]);++ useEffect(() => {+ if (isRich) return;+ const el = textareaRef.current;+ if (!el) return;++ let raf = 0;+ const schedule = () => {+ if (raf) cancelAnimationFrame(raf);+ raf = requestAnimationFrame(() => {+ raf = 0;+ autoResizeTextarea();+ });+ };++ schedule();++ if (typeof ResizeObserver !== "undefined") {+ const ro = new ResizeObserver(() => schedule());+ ro.observe(el);+ ro.observe(el.parentElement ?? el);+ return () => {+ if (raf) cancelAnimationFrame(raf);+ ro.disconnect();+ };+ }++ window.addEventListener("resize", schedule);+ return () => {+ if (raf) cancelAnimationFrame(raf);+ window.removeEventListener("resize", schedule);+ };+ }, [isRich, autoResizeTextarea]);++ useEffect(() => {+ if (focusKey === undefined) return;+ if (isRich) richRef.current?.focus();+ else textareaRef.current?.focus();+ }, [focusKey]);++ useEffect(() => {+ if (clearKey === undefined) return;+ if (!isRich) return;+ const root = richRef.current;+ if (!root) return;+ richSavedRangeRef.current = null;+ root.innerHTML = "";+ root.appendChild(document.createTextNode(""));+ richAppliedRef.current = "";+ onRichSegmentsChange?.([{ type: "text", text: "" }]);+ }, [clearKey, isRich]);++ const serializeSegments = (segments: RichInputSegment[]) => {+ return segments+ .map((s) => (s.type === "text" ? `t:${s.text}` : `p:${s.slideId}:${s.tag}`))+ .join("|");+ };++ const buildLabelSpan = (segment: Extract<RichInputSegment, { type: "ppt" }>) => {+ const el = document.createElement("span");+ el.setAttribute("data-token", "ppt");+ el.setAttribute("data-slide-id", segment.slideId);+ el.setAttribute("data-label", segment.label);+ el.setAttribute("data-tag", segment.tag);+ el.setAttribute("contenteditable", "false");+ el.className = "inline-flex items-center gap-1.5 rounded-full border border-red-200 bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200 align-middle";+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");+ svg.setAttribute("viewBox", "0 0 24 24");+ svg.setAttribute("fill", "none");+ svg.setAttribute("stroke", "currentColor");+ svg.setAttribute("stroke-width", "2");+ svg.setAttribute("stroke-linecap", "round");+ svg.setAttribute("stroke-linejoin", "round");+ svg.setAttribute("aria-hidden", "true");+ svg.setAttribute("class", "h-3.5 w-3.5 text-red-600 dark:text-red-200");+ const path1 = document.createElementNS("http://www.w3.org/2000/svg", "path");+ // Draw a "P" icon+ path1.setAttribute("d", "M19 7a5 5 0 0 0-5-5H7a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-8h5a5 5 0 0 0 5-5z");+ // Actually a simpler P stroke might be better for 24x24+ // P shape: M8 20V4h6a4 4 0 0 1 0 8H8+ path1.setAttribute("d", "M8 20V4h6a4 4 0 0 1 0 8H8");++ svg.appendChild(path1);+ const text = document.createElement("span");+ text.textContent = segment.label;+ el.appendChild(svg);+ el.appendChild(text);+ return el;+ };++ const setRichContentFromSegments = (segments: RichInputSegment[]) => {+ const root = richRef.current;+ if (!root) return;+ root.innerHTML = "";+ for (const seg of segments) {+ if (seg.type === "text") {+ const parts = String(seg.text || "").split("\n");+ for (let i = 0; i < parts.length; i += 1) {+ if (parts[i]) root.appendChild(document.createTextNode(parts[i]));+ if (i < parts.length - 1) root.appendChild(document.createElement("br"));+ }+ continue;+ }+ root.appendChild(buildLabelSpan(seg));+ root.appendChild(document.createTextNode(" "));+ }+ if (!root.lastChild) root.appendChild(document.createTextNode(""));+ };++ const parseRichSegmentsFromDom = (): RichInputSegment[] => {+ const root = richRef.current;+ if (!root) return [{ type: "text", text: "" }];++ const out: RichInputSegment[] = [];+ const pushText = (t: string) => {+ if (!t) return;+ const last = out[out.length - 1];+ if (last?.type === "text") last.text += t;+ else out.push({ type: "text", text: t });+ };++ for (const node of Array.from(root.childNodes)) {+ if (node.nodeType === Node.TEXT_NODE) {+ pushText(node.textContent || "");+ continue;+ }+ if (node.nodeType !== Node.ELEMENT_NODE) continue;+ const el = node as HTMLElement;+ if (el.tagName === "BR") {+ pushText("\n");+ continue;+ }+ const token = el.getAttribute("data-token");+ if (token === "ppt") {+ const slideId = el.getAttribute("data-slide-id") || "";+ const label = el.getAttribute("data-label") || el.textContent || "";+ const tag = el.getAttribute("data-tag") || "";+ if (slideId && tag) out.push({ type: "ppt", slideId, label, tag });+ continue;+ }+ pushText(el.textContent || "");+ }++ if (out.length === 0) return [{ type: "text", text: "" }];+ return out;+ };++ const syncRichToParent = () => {+ if (!isRich) return;+ const next = parseRichSegmentsFromDom();+ const key = serializeSegments(next);+ if (key === richAppliedRef.current) return;+ richAppliedRef.current = key;+ onRichSegmentsChange?.(next);+ };++ useEffect(() => {+ if (!isRich) return;+ const segments = richSegments || [{ type: "text", text: "" }];+ const key = serializeSegments(segments);+ if (key === richAppliedRef.current) return;+ richAppliedRef.current = key;+ if (richHasFocus) return;+ setRichContentFromSegments(segments);+ }, [isRich, richSegments, richHasFocus]);++ const insertPptTokenAtCursor = (slideId: string, label: string, tag: string) => {+ const root = richRef.current;+ if (!root) return;+ root.focus();+ const sel = window.getSelection();+ let range: Range | null = sel && sel.rangeCount > 0 ? sel.getRangeAt(0) : null;+ if (!range || !root.contains(range.startContainer)) {+ range = richSavedRangeRef.current;+ }+ if (!range || !root.contains(range.startContainer)) {+ range = document.createRange();+ range.selectNodeContents(root);+ range.collapse(false);+ }+ const span = buildLabelSpan({ type: "ppt", slideId, label, tag });+ const space = document.createTextNode(" ");+ range.insertNode(space);+ range.insertNode(span);+ range.setStartAfter(space);+ range.collapse(true);+ if (sel) {+ sel.removeAllRanges();+ sel.addRange(range);+ }+ richSavedRangeRef.current = range;+ syncRichToParent();+ };++ useEffect(() => {+ if (!isRich) return;+ if (!insertPptToken) return;+ insertPptTokenAtCursor(insertPptToken.slideId, insertPptToken.label, insertPptToken.tag);+ onInsertPptTokenHandled?.();+ }, [isRich, insertPptToken?.key]);++ const richPlainText = useMemo(() => {+ const segs = richSegments || [];+ return segs+ .map((s) => (s.type === "text" ? s.text : s.label))+ .join("")+ .replace(/[ \t]+\n/g, "\n");+ }, [richSegments]);++ const showRichPlaceholder = isRich && !richPlainText.trim() && !richHasFocus;++ const filterByUploadMode = (incoming: File[]) => {+ if (uploadMode === "imagesOnly") return incoming.filter((f) => f.type.startsWith("image/"));+ if (uploadMode === "filesOnly") return incoming.filter((f) => !f.type.startsWith("image/"));+ return incoming;+ };++ const handlePaste = (e: React.ClipboardEvent) => {+ if (uploadMode === "none") return;+ const items = e.clipboardData.items;+ const pastedFiles: File[] = [];++ for (let i = 0; i < items.length; i++) {+ if (items[i].kind === 'file') {+ const file = items[i].getAsFile();+ if (file) pastedFiles.push(file);+ }+ }++ if (pastedFiles.length > 0) {+ const filtered = filterByUploadMode(pastedFiles);+ if (filtered.length === 0) return;+ e.preventDefault();+ handleFileChange([...files, ...filtered]);+ }+ };++ const handleDrop = (e: React.DragEvent) => {+ e.preventDefault();+ if (uploadMode === "none") return;+ const droppedFiles = Array.from(e.dataTransfer.files);+ const filtered = filterByUploadMode(droppedFiles);+ if (filtered.length > 0) {+ handleFileChange([...files, ...filtered]);+ }+ };++ const handleImageUpload = () => imageInputRef.current?.click();+ const handleFileUpload = () => fileInputRef.current?.click();++ const onFileInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ if (e.target.files?.length) {+ const incoming = Array.from(e.target.files);+ const filtered = filterByUploadMode(incoming);+ if (filtered.length > 0) handleFileChange([...files, ...filtered]);+ e.target.value = ''; // Reset+ }+ };++ const removeFile = (fileToRemove: File) => {+ setFiles(files.filter(f => f !== fileToRemove));+ };++ return (+ <div+ className="relative rounded-2xl border border-border bg-background shadow-sm focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary/50 transition-all duration-200"+ onDragOver={(e) => e.preventDefault()}+ onDrop={handleDrop}+ >+ {(uploadMode === "all" || uploadMode === "imagesOnly") && (+ <input+ type="file"+ multiple+ accept="image/*"+ className="hidden"+ ref={imageInputRef}+ onChange={onFileInputChange}+ />+ )}+ {(uploadMode === "all" || uploadMode === "filesOnly") && (+ <input+ type="file"+ multiple+ accept={+ uploadMode === "filesOnly"+ ? ".pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml"+ : "image/*,.pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml"+ }+ className="hidden"+ ref={fileInputRef}+ onChange={onFileInputChange}+ />+ )}++ {files.length > 0 && (+ <div className="px-3 pt-3">+ <FilePreviewList+ files={files}+ onRemoveFile={removeFile}+ pdfData={pdfData}+ />+ </div>+ )}++ {topChips && (+ <div className="px-3 pt-3">+ {topChips}+ </div>+ )}++ <div className="px-3 pt-2">+ {isRich ? (+ <div className="relative">+ {showRichPlaceholder && (+ <div className="pointer-events-none absolute left-1 top-2 text-[15px] leading-6 text-muted-foreground/60">+ {placeholder || "Type your message..."}+ </div>+ )}+ <div+ ref={richRef}+ contentEditable+ suppressContentEditableWarning+ onKeyDown={(e) => {+ if (e.key === "Enter" && !e.shiftKey) {+ e.preventDefault();+ if (isLoading) onStop?.();+ else onSubmit();+ return;+ }+ if (e.key === "Backspace" || e.key === "Delete") {+ const root = richRef.current;+ if (!root) return;+ const sel = window.getSelection();+ if (!sel || sel.rangeCount === 0) return;+ const r = sel.getRangeAt(0);+ if (!root.contains(r.startContainer) || !r.collapsed) return;+ const container = r.startContainer;+ const offset = r.startOffset;++ const tryRemoveToken = (el: Element | null) => {+ if (!el) return false;+ const token = (el as HTMLElement).getAttribute("data-token");+ if (token !== "ppt") return false;+ el.remove();+ syncRichToParent();+ return true;+ };++ if (container.nodeType === Node.TEXT_NODE) {+ if (e.key === "Backspace" && offset === 0) {+ const prev = (container as Text).previousSibling;+ if (prev && prev.nodeType === Node.ELEMENT_NODE) {+ if (tryRemoveToken(prev as Element)) {+ e.preventDefault();+ return;+ }+ }+ }+ if (e.key === "Delete" && offset === (container as Text).data.length) {+ const next = (container as Text).nextSibling;+ if (next && next.nodeType === Node.ELEMENT_NODE) {+ if (tryRemoveToken(next as Element)) {+ e.preventDefault();+ return;+ }+ }+ }+ } else if (container.nodeType === Node.ELEMENT_NODE) {+ const el = container as Element;+ const child = el.childNodes[offset + (e.key === "Backspace" ? -1 : 0)];+ if (child && child.nodeType === Node.ELEMENT_NODE) {+ if (tryRemoveToken(child as Element)) {+ e.preventDefault();+ return;+ }+ }+ }+ }+ }}+ onPaste={handlePaste as any}+ onFocus={() => setRichHasFocus(true)}+ onBlur={() => {+ setRichHasFocus(false);+ const sel = window.getSelection();+ if (sel && sel.rangeCount > 0) {+ const r = sel.getRangeAt(0);+ if (richRef.current?.contains(r.startContainer)) {+ richSavedRangeRef.current = r;+ }+ }+ syncRichToParent();+ }}+ onInput={() => syncRichToParent()}+ onKeyUp={() => {+ const sel = window.getSelection();+ if (sel && sel.rangeCount > 0) {+ const r = sel.getRangeAt(0);+ if (richRef.current?.contains(r.startContainer)) {+ richSavedRangeRef.current = r;+ }+ }+ }}+ onMouseUp={() => {+ const sel = window.getSelection();+ if (sel && sel.rangeCount > 0) {+ const r = sel.getRangeAt(0);+ if (richRef.current?.contains(r.startContainer)) {+ richSavedRangeRef.current = r;+ }+ }+ }}+ className={cn(+ "w-full bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px] whitespace-pre-wrap break-words"+ )}+ />+ </div>+ ) : (+ <textarea+ ref={textareaRef}+ value={input}+ onChange={(e) => setInput(e.target.value)}+ onKeyDown={handleKeyDown}+ onPaste={handlePaste}+ placeholder={placeholder || "Type your message..."}+ className={cn(+ "w-full resize-none bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px]"+ )}+ rows={1}+ />+ )}+ </div>++ {bottomChips && (+ <div className="px-3 pb-2">+ {bottomChips}+ </div>+ )}++ <div className="flex items-center justify-between px-3 py-2 border-t border-border/50">+ <div className="flex items-center gap-1">+ {onClearChat && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.clearChatTitle")}+ variant="ghost"+ size="sm"+ onClick={onClearChat}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10"+ >+ <Trash2 className="h-4 w-4" />+ </ButtonWithTooltip>+ )}+ </div>++ <div className="flex items-center gap-1">+ {onToggleHistory && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.historyTitle")}+ variant="ghost"+ size="sm"+ onClick={onToggleHistory}+ disabled={historyDisabled}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <History className="h-4 w-4" />+ </ButtonWithTooltip>+ )}++ {(uploadMode === "all" || uploadMode === "imagesOnly") && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.uploadImage")}+ variant="ghost"+ size="sm"+ onClick={handleImageUpload}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <ImageIcon className="h-4 w-4" />+ </ButtonWithTooltip>+ )}++ {(uploadMode === "all" || uploadMode === "filesOnly") && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.uploadFile")}+ variant="ghost"+ size="sm"+ onClick={handleFileUpload}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <FileText className="h-4 w-4" />+ </ButtonWithTooltip>+ )}++ <div className="w-px h-5 bg-border mx-1" />++ {(() => {+ const hasText = isRich ? richPlainText.trim().length > 0 : input.trim().length > 0;+ const hasFiles = files.length > 0;+ if (isLoading) {+ return (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.stop")}+ variant="default"+ size="sm"+ onClick={(e) => {+ e.preventDefault();+ onStop?.();+ }}+ disabled={!onStop}+ className="h-8 w-8 p-0 rounded-xl shadow-sm"+ aria-label={t(uiLang, "chat.stop")}+ >+ <Square className="h-3.5 w-3.5 fill-current" />+ </ButtonWithTooltip>+ );+ }+ return (+ <ButtonWithTooltip+ type="button"+ onClick={onSubmit}+ tooltipContent={t(uiLang, "chat.send")}+ disabled={!hasText && !hasFiles}+ variant="default"+ size="sm"+ className={cn(+ "h-8 w-8 p-0 rounded-xl shadow-sm",+ (!hasText && !hasFiles) ? "opacity-60" : ""+ )}+ aria-label={t(uiLang, "chat.send")}+ >+ <Send className="h-4 w-4" />+ </ButtonWithTooltip>+ );+ })()}+ </div>+ </div>+ </div>+ );+}++diff --git a/src/workspaces/cad/chat/ChatMessageDisplay.tsx b/src/workspaces/cad/chat/ChatMessageDisplay.tsxnew file mode 100644index 0000000..56157d4--- /dev/null+++ b/src/workspaces/cad/chat/ChatMessageDisplay.tsx@@ -0,0 +1,699 @@+import React, { useRef, useEffect, useState, useCallback } from 'react';+import {+ Check,+ ChevronDown,+ ChevronUp,+ Copy,+ Cpu,+ FileCode,+ FileText,+ Loader2,+ Minus,+ Pencil,+ Plus,+ RotateCcw,+ ThumbsDown,+ ThumbsUp,+ X,+ Presentation, // Import P icon if available, otherwise we use SVG+} from "lucide-react";++// Custom P icon component+const PIcon = ({ className }: { className?: string }) => (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className={className}+ >+ <path d="M8 20V4h6a4 4 0 0 1 0 8H8" />+ </svg>+);+import ReactMarkdown from "react-markdown";+import remarkGfm from 'remark-gfm';+import { Reasoning, ReasoningContent, ReasoningTrigger } from "@/workspaces/cad/chat/components/reasoning";+import { ScrollArea } from "@/workspaces/cad/ui/scroll-area";+import { CodeBlock } from "@/workspaces/cad/ui/code-block";+import { useUiLanguage } from "@/lib/use-ui-language";+import { cn } from "@/lib/utils";++// Types+export interface MessagePart {+ type: 'text' | 'reasoning' | 'tool-call' | 'tool-result' | 'file';+ text?: string;+ toolName?: string;+ toolCallId?: string;+ state?: string;+ input?: any;+ output?: string;+ url?: string; // for images+}++export interface UIMessage {+ id: string;+ role: 'user' | 'assistant' | 'system';+ content: string; // Fallback+ parts?: MessagePart[];+}++interface ChatMessageDisplayProps {+ messages: UIMessage[];+ setInput: (input: string) => void;+ onRegenerate?: (messageIndex: number) => void;+ onEditMessage?: (messageIndex: number, newText: string) => void;+ status?: "streaming" | "submitted" | "idle" | "error" | "ready";+ onDisplayChart?: (xml: string) => void; // Callback for diagram display+}++// Helper to split text content into regular text and file sections+interface TextSection {+ type: "text" | "file";+ content: string;+ filename?: string;+ charCount?: number;+ fileType?: "pdf" | "text";+}++function splitTextIntoFileSections(text: string): TextSection[] {+ const sections: TextSection[] = [];+ const filePattern = /\[(PDF|File):\s*([^\]]+)\]\n([\s\S]*?)(?=\n\n\[(PDF|File):|$)/g;+ let lastIndex = 0;+ let match;++ while ((match = filePattern.exec(text)) !== null) {+ const beforeText = text.slice(lastIndex, match.index).trim();+ if (beforeText) {+ sections.push({ type: "text", content: beforeText });+ }++ const fileType = match[1].toLowerCase() === "pdf" ? "pdf" : "text";+ const filename = match[2].trim();+ const fileContent = match[3].trim();+ sections.push({+ type: "file",+ content: fileContent,+ filename,+ charCount: fileContent.length,+ fileType,+ });++ lastIndex = match.index + match[0].length;+ }++ const remainingText = text.slice(lastIndex).trim();+ if (remainingText) {+ sections.push({ type: "text", content: remainingText });+ }++ if (sections.length === 0) {+ sections.push({ type: "text", content: text });+ }++ return sections;+}++type PptSlideTag = { n: number; title?: string };++function extractPptSlideTags(text: string): { tags: PptSlideTag[]; rest: string } {+ const lines = String(text || "").split(/\r?\n/);+ const tags: PptSlideTag[] = [];+ const restLines: string[] = [];+ for (const line of lines) {+ const m = line.match(/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/);+ if (m) {+ const n = Number(m[1]);+ const title = String(m[2] || "").trim();+ if (!Number.isNaN(n)) tags.push({ n, title: title || undefined });+ continue;+ }+ restLines.push(line);+ }+ const rest = restLines.join("\n").replace(/^\s+|\s+$/g, "");+ return { tags, rest };+}++type ImageTag = { name?: string; url: string };++function extractImageTags(text: string): { images: ImageTag[]; rest: string } {+ const lines = String(text || "").split(/\r?\n/);+ const images: ImageTag[] = [];+ const restLines: string[] = [];+ for (const line of lines) {+ const m = line.match(/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/);+ if (m) {+ const name = String(m[1] || "").trim();+ const url = String(m[2] || "").trim();+ if (url.startsWith("data:image") || url.startsWith("blob:") || url.startsWith("http://") || url.startsWith("https://")) {+ images.push({ name: name || undefined, url });+ continue;+ }+ }+ restLines.push(line);+ }+ const rest = restLines.join("\n").replace(/^\s+|\s+$/g, "");+ return { images, rest };+}++type InlinePptPart =+ | { type: "text"; text: string }+ | { type: "ppt"; n: number; title?: string };++function splitInlinePptTags(text: string): InlinePptPart[] {+ const raw = String(text || "");+ const out: InlinePptPart[] = [];+ const re = /\[\[PPT_SLIDE\|(\d+)\|([\s\S]*?)\]\]/g;+ let lastIndex = 0;+ let m: RegExpExecArray | null;+ while ((m = re.exec(raw))) {+ const before = raw.slice(lastIndex, m.index);+ if (before) out.push({ type: "text", text: before });+ const n = Number(m[1]);+ const title = String(m[2] || "").trim();+ if (!Number.isNaN(n)) out.push({ type: "ppt", n, title: title || undefined });+ else out.push({ type: "text", text: m[0] });+ lastIndex = m.index + m[0].length;+ }+ const rest = raw.slice(lastIndex);+ if (rest) out.push({ type: "text", text: rest });+ if (out.length === 0) out.push({ type: "text", text: raw });+ return out;+}++const getMessageTextContent = (message: UIMessage): string => {+ if (message.parts && message.parts.length > 0) {+ return message.parts+ .filter((part) => part.type === "text")+ .map((part) => part.text || "")+ .join("\n");+ }+ return message.content || "";+};++const getUserOriginalText = (message: UIMessage): string => {+ const fullText = getMessageTextContent(message);+ const withoutTags = fullText+ .split(/\r?\n/)+ .filter((line) => !/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/.test(line))+ .filter((line) => !/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/.test(line))+ .join("\n")+ .trim();+ const filePattern = /\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/;+ return withoutTags.replace(filePattern, "").trim();+};++export function ChatMessageDisplay({+ messages,+ setInput,+ onRegenerate,+ onEditMessage,+ status = "idle",+ onDisplayChart+}: ChatMessageDisplayProps) {+ const uiLang = useUiLanguage();+ const tr = (zh: string, en: string) => (uiLang === "zh" ? zh : en);+ const scrollRootRef = useRef<HTMLDivElement>(null);+ const messagesEndRef = useRef<HTMLDivElement>(null);+ const [copiedMessageId, setCopiedMessageId] = useState<string | null>(null);+ const [editingMessageId, setEditingMessageId] = useState<string | null>(null);+ const editTextareaRef = useRef<HTMLTextAreaElement>(null);+ const [editText, setEditText] = useState<string>("");+ const [expandedPdfSections, setExpandedPdfSections] = useState<Record<string, boolean>>({});+ const [isAtBottom, setIsAtBottom] = useState(true);+ const scrollRafRef = useRef<number | null>(null);++ const copyMessageToClipboard = async (messageId: string, text: string) => {+ try {+ await navigator.clipboard.writeText(text);+ setCopiedMessageId(messageId);+ setTimeout(() => setCopiedMessageId(null), 2000);+ } catch (_err) {+ const textarea = document.createElement("textarea");+ textarea.value = text;+ textarea.style.position = "fixed";+ textarea.style.left = "-9999px";+ textarea.style.opacity = "0";+ document.body.appendChild(textarea);++ try {+ textarea.select();+ const ok = document.execCommand("copy");+ if (!ok) throw new Error("Copy command failed");+ setCopiedMessageId(messageId);+ setTimeout(() => setCopiedMessageId(null), 2000);+ } catch (fallbackErr) {+ console.error("Failed to copy message:", fallbackErr);+ } finally {+ document.body.removeChild(textarea);+ }+ }+ };++ const getViewport = useCallback(() => {+ const root = scrollRootRef.current;+ if (!root) return null;+ return root.querySelector('[data-radix-scroll-area-viewport]') as HTMLElement | null;+ }, []);++ const scrollToBottom = useCallback((behavior: ScrollBehavior = "auto") => {+ const viewport = getViewport();+ if (!viewport) return;+ viewport.scrollTo({ top: viewport.scrollHeight, behavior });+ }, [getViewport]);++ useEffect(() => {+ const viewport = getViewport();+ if (!viewport) return;++ const onScroll = () => {+ const threshold = 48;+ const distanceToBottom = viewport.scrollHeight - viewport.scrollTop - viewport.clientHeight;+ setIsAtBottom(distanceToBottom <= threshold);+ };++ onScroll();+ viewport.addEventListener("scroll", onScroll, { passive: true });+ return () => viewport.removeEventListener("scroll", onScroll as any);+ }, [getViewport]);++ useEffect(() => {+ return () => {+ if (scrollRafRef.current === null) return;+ if (typeof cancelAnimationFrame === "function") cancelAnimationFrame(scrollRafRef.current);+ else if (typeof window !== "undefined") window.clearTimeout(scrollRafRef.current);+ scrollRafRef.current = null;+ };+ }, []);++ useEffect(() => {+ if (!isAtBottom) return;+ if (scrollRafRef.current !== null) return;+ const behavior: ScrollBehavior = status === "streaming" ? "auto" : "smooth";+ const schedule = (cb: () => void) => {+ if (typeof requestAnimationFrame === "function") return requestAnimationFrame(cb);+ if (typeof window !== "undefined") return window.setTimeout(cb, 16);+ return 0;+ };+ scrollRafRef.current = schedule(() => {+ scrollRafRef.current = null;+ scrollToBottom(behavior);+ });+ }, [messages, status, isAtBottom, scrollToBottom]);++ useEffect(() => {+ if (editingMessageId && editTextareaRef.current) {+ editTextareaRef.current.focus();+ }+ }, [editingMessageId]);++ // Handle Diagram Code Blocks+ // We scan messages for XML blocks and trigger onDisplayChart if found+ // This is a simplified version of tool calls for now+ useEffect(() => {+ const lastMessage = messages[messages.length - 1];+ if (lastMessage && lastMessage.role === 'assistant' && onDisplayChart) {+ const content = getMessageTextContent(lastMessage);+ const match = content.match(/```xml\n([\s\S]*?)\n```/);+ if (match && match[1]) {+ // De-duplicate: only call if it's new or stable+ // Since we don't track state here, we rely on parent or idempotency+ // onDisplayChart(match[1]);+ // Actually, let's not auto-call here to avoid loops.+ // The parent (ChatPanel) handles parsing stream.+ }+ }+ }, [messages, onDisplayChart]);++ return (+ <div ref={scrollRootRef} className="h-full w-full relative">+ <ScrollArea className="h-full w-full scrollbar-thin">+ <div className="py-5 px-5 space-y-5">+ {messages.map((message, messageIndex) => {+ const userMessageText = message.role === "user" ? getMessageTextContent(message) : "";+ const isLastAssistantMessage =+ message.role === "assistant" &&+ (messageIndex === messages.length - 1 || messages.slice(messageIndex + 1).every((m) => m.role !== "assistant"));+ const isLastUserMessage =+ message.role === "user" &&+ (messageIndex === messages.length - 1 || messages.slice(messageIndex + 1).every((m) => m.role !== "user"));+ const isEditing = editingMessageId === message.id;++ return (+ <div+ key={message.id}+ className={`flex w-full ${message.role === "user" ? "justify-end" : "justify-start"}`}+ >+ <div className={cn("max-w-[95%] min-w-0 flex flex-col", message.role === "user" ? "items-end" : "items-start")}>+ {/* Role Icon / Header */}+ <div className="flex items-center gap-2 mb-1.5 px-1">+ {message.role === 'assistant' ? (+ <>+ <div className="w-5 h-5 rounded-full bg-blue-600 flex items-center justify-center">+ <Cpu className="w-3 h-3 text-white" />+ </div>+ <span className="text-xs font-medium text-muted-foreground">{tr("AI 助手", "AI Assistant")}</span>+ </>+ ) : (+ <>+ <span className="text-xs font-medium text-muted-foreground">{tr("你", "You")}</span>+ </>+ )}+ </div>++ {/* Content Bubble */}+ <div className={cn(+ "relative px-4 py-3 text-sm leading-relaxed break-words overflow-hidden border border-border/50 bg-background/70 backdrop-blur-md shadow-sm transition-shadow hover:shadow-md",+ message.role === "user"+ ? "text-foreground rounded-2xl rounded-tr-sm w-full"+ : "text-foreground rounded-2xl rounded-tl-sm w-full"+ )}>++ {/* Reasoning Parts */}+ {message.parts?.map((part, partIndex) => {+ if (part.type === 'reasoning') {+ const isLastPart = partIndex === (message.parts?.length ?? 0) - 1;+ const isStreamingReasoning = status === "streaming" && isLastPart && isLastAssistantMessage;+ return (+ <Reasoning+ key={`reasoning-${partIndex}`}+ className="w-full"+ isStreaming={isStreamingReasoning}+ defaultOpen={isStreamingReasoning}+ >+ <ReasoningTrigger />+ <ReasoningContent>{part.text || ''}</ReasoningContent>+ </Reasoning>+ );+ }+ return null;+ })}++ {/* Text Content */}+ {(() => {+ const raw = getMessageTextContent(message);+ const { images, rest: withoutImages } = extractImageTags(raw);+ const { tags: pptTags, rest: text } = extractPptSlideTags(withoutImages);+ if (!text && images.length === 0) return null;++ // Edit Mode+ if (isEditing && message.role === "user") {+ return (+ <div className="flex flex-col gap-2 min-w-[300px]">+ <textarea+ ref={editTextareaRef}+ value={editText}+ onChange={(e) => setEditText(e.target.value)}+ className="w-full px-3 py-2 text-sm rounded-md border border-input bg-background text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary"+ rows={4}+ />+ <div className="flex justify-end gap-2">+ <button+ onClick={() => setEditingMessageId(null)}+ className="px-3 py-1 text-xs rounded bg-muted hover:bg-muted/80 text-foreground"+ >+ {tr("取消", "Cancel")}+ </button>+ <button+ onClick={() => {+ if (editText.trim() && onEditMessage) {+ onEditMessage(messageIndex, editText.trim());+ setEditingMessageId(null);+ }+ }}+ className="px-3 py-1 text-xs rounded bg-primary hover:bg-primary/90 text-primary-foreground"+ >+ {tr("重新发送", "Resend")}+ </button>+ </div>+ </div>+ );+ }++ // Regular Display+ const sections = splitTextIntoFileSections(text);+ return (+ <div className="space-y-3">+ {images.length > 0 && (+ <div className="space-y-2">+ {images.map((img, i) => (+ <div+ key={`${message.id}-img-${i}`}+ className={cn(+ "overflow-hidden rounded-lg border border-border/60 bg-black/5 dark:bg-white/5",+ "max-w-[420px] mx-auto"+ )}+ >+ <img+ src={img.url}+ alt={img.name || "image"}+ className="w-full max-h-[240px] object-contain bg-black/5"+ />+ </div>+ ))}+ </div>+ )}+ {pptTags.length > 0 && (+ <div className="flex flex-wrap gap-1.5">+ {pptTags.map((t, i) => (+ <span+ key={`${message.id}-ppttag-${i}-${t.n}`}+ className={cn(+ "inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] leading-4",+ message.role === "user"+ ? "border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200"+ : "border-border bg-muted/40 text-foreground"+ )}+ >+ <PIcon className="h-3.5 w-3.5 text-red-600 dark:text-red-200 mr-1" />+ {t.title ? tr(`第 ${t.n} 页:${t.title}`, `Slide ${t.n}: ${t.title}`) : tr(`第 ${t.n} 页`, `Slide ${t.n}`)}+ </span>+ ))}+ </div>+ )}+ {sections.map((section, idx) => {+ if (section.type === "text" && !String(section.content || "").trim()) return null;+ if (section.type === 'file') {+ const key = `${message.id}-file-${idx}`;+ const isExpanded = expandedPdfSections[key] || false;+ return (+ <div key={key} className="rounded-lg border border-border/50 bg-background/50 overflow-hidden">+ <button+ onClick={() => setExpandedPdfSections(prev => ({...prev, [key]: !isExpanded}))}+ className="w-full flex items-center justify-between px-3 py-2 hover:bg-muted/50 transition-colors"+ >+ <div className="flex items-center gap-2">+ {section.fileType === 'pdf' ? (+ <FileText className="h-4 w-4 text-red-500" />+ ) : (+ <FileCode className="h-4 w-4 text-blue-500" />+ )}+ <span className="text-xs font-medium truncate max-w-[150px] text-foreground">{section.filename}</span>+ <span className="text-[10px] text-muted-foreground">({section.charCount} chars)</span>+ </div>+ {isExpanded ? <ChevronUp className="h-4 w-4 text-foreground" /> : <ChevronDown className="h-4 w-4 text-foreground" />}+ </button>+ {isExpanded && (+ <div className="px-3 py-2 border-t border-border/50 max-h-48 overflow-y-auto bg-muted/20">+ <pre className="text-[10px] whitespace-pre-wrap text-muted-foreground font-mono">{section.content}</pre>+ </div>+ )}+ </div>+ );+ }++ // Render Markdown+ // We need to handle code blocks specially to use our CodeBlock component+ let codeBlockOrdinal = 0;+ if (message.role === "user") {+ const parts = splitInlinePptTags(section.content);+ return (+ <div+ key={idx}+ className="text-[15px] leading-6 whitespace-pre-wrap break-words text-foreground"+ >+ {parts.map((p, j) => {+ if (p.type === "text") return <span key={`${idx}-t-${j}`}>{p.text}</span>;+ const label = p.title ? tr(`第 ${p.n} 页:${p.title}`, `Slide ${p.n}: ${p.title}`) : tr(`第 ${p.n} 页`, `Slide ${p.n}`);+ return (+ <span+ key={`${idx}-ppt-${j}`}+ className="mx-1 inline-flex items-center gap-1.5 rounded-full border border-red-200 bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200 align-middle"+ title={tr(`幻灯片 · ${label}`, `Slide · ${label}`)}+ >+ <PIcon className="h-3.5 w-3.5 text-red-600 dark:text-red-200" />+ {label}+ </span>+ );+ })}+ </div>+ );+ }+ return (+ <div key={idx} className={cn(+ "prose prose-sm max-w-none break-words",+ "dark:prose-invert"+ )}>+ <ReactMarkdown+ remarkPlugins={[remarkGfm]}+ urlTransform={(url) => {+ const u = String(url || "");+ if (!u) return "";+ if (u.startsWith("http://") || u.startsWith("https://")) return u;+ if (u.startsWith("data:image")) return u;+ if (u.startsWith("blob:")) return u;+ if (u.startsWith("/files/")) return u;+ if (u.startsWith("#")) return u;+ return "";+ }}+ components={{+ table({ children }: any) {+ return <table className="w-full table-fixed">{children}</table>;+ },+ th({ children, ...props }: any) {+ return (+ <th+ {...props}+ className={cn("whitespace-normal break-words", props?.className)}+ >+ {children}+ </th>+ );+ },+ td({ children, ...props }: any) {+ return (+ <td+ {...props}+ className={cn("whitespace-normal break-words", props?.className)}+ >+ {children}+ </td>+ );+ },+ pre({ children }: any) {+ return <>{children}</>;+ },+ code({node, inline, className, children, ...props}: any) {+ const match = /language-(\w+)/.exec(className || '')+ // Check if this is the last message and currently streaming+ // We only show spinner for the last code block of the last message if streaming+ // But technically ReactMarkdown renders progressively.+ // We can check if status is streaming and this is the assistant role.+ const isStreaming = status === "streaming" && isLastAssistantMessage;+ const language = match?.[1] || "text";++ if (!inline) {+ const ordinal = codeBlockOrdinal++;+ return (+ <CodeBlock+ key={`codeblock-${message.id}-${idx}-${language}-${ordinal}`}+ blockId={`${message.id}:${idx}:${language}:${ordinal}`}+ code={String(children).replace(/\n$/, '')}+ language={language as any}+ isStreaming={isStreaming}+ />+ );+ }++ return (+ <code className={className} {...props}>+ {children}+ </code>+ );+ }+ }}+ >+ {section.content}+ </ReactMarkdown>+ </div>+ );+ })}+ </div>+ );+ })()}++ {/* Loading Indicator */}+ {isLastAssistantMessage && status === "streaming" && (+ <div className="mt-2 flex items-center gap-2 text-xs text-muted-foreground">+ <Loader2 className="h-3 w-3 animate-spin" />+ <span>{tr("思考中...", "Thinking...")}</span>+ </div>+ )}+ </div>++ {/* Actions */}+ <div className="flex items-center gap-1 mt-2 px-1">+ {message.role === "user" && !isEditing && userMessageText && (+ <>+ {onEditMessage && isLastUserMessage && (+ <button+ type="button"+ onClick={() => {+ setEditingMessageId(message.id);+ setEditText(getUserOriginalText(message));+ }}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors"+ title={tr("编辑", "Edit")}+ >+ <Pencil className="h-3.5 w-3.5" />+ </button>+ )}+ <button+ type="button"+ onClick={() => copyMessageToClipboard(message.id, getUserOriginalText(message))}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors"+ title={tr("复制", "Copy")}+ >+ {copiedMessageId === message.id ? <Check className="h-3.5 w-3.5 text-green-500" /> : <Copy className="h-3.5 w-3.5" />}+ </button>+ </>+ )}+ {message.role === "assistant" && (+ <>+ <button+ type="button"+ onClick={() => copyMessageToClipboard(message.id, getMessageTextContent(message))}+ className={`p-1.5 rounded-lg transition-colors ${+ copiedMessageId === message.id+ ? "text-green-600 bg-green-100 dark:bg-green-950/30"+ : "text-muted-foreground/60 hover:text-foreground hover:bg-muted"+ }`}+ title={tr("复制", "Copy")}+ >+ {copiedMessageId === message.id ? <Check className="h-3.5 w-3.5" /> : <Copy className="h-3.5 w-3.5" />}+ </button>+ {onRegenerate && isLastAssistantMessage && (+ <button+ type="button"+ onClick={() => onRegenerate(messageIndex)}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors"+ title={tr("重新生成", "Regenerate")}+ >+ <RotateCcw className="h-3.5 w-3.5" />+ </button>+ )}+ </>+ )}+ </div>+ </div>+ </div>+ );+ })}+ <div ref={messagesEndRef} />+ </div>+ </ScrollArea>+ {!isAtBottom && messages.length > 0 && (+ <button+ type="button"+ onClick={() => scrollToBottom("smooth")}+ className="absolute bottom-4 right-4 z-20 inline-flex items-center gap-1 rounded-full border border-border bg-background/90 backdrop-blur px-3 py-1.5 text-xs text-foreground shadow-md hover:bg-background"+ >+ <ChevronDown className="w-3.5 h-3.5" />+ {tr("回到底部", "Back to bottom")}+ </button>+ )}+ </div>+ );+}diff --git a/src/workspaces/cad/chat/ChatPanel.tsx b/src/workspaces/cad/chat/ChatPanel.tsxnew file mode 100644index 0000000..9f2e3f5--- /dev/null+++ b/src/workspaces/cad/chat/ChatPanel.tsx@@ -0,0 +1,1647 @@+import React, { useState, useRef, useEffect } from 'react';+import { PanelRightClose, PanelRightOpen } from 'lucide-react';+import { cn } from '@/lib/utils';+import { streamChatMessage, generateChatMessage, ChatMessage, getAIConfig } from '@/lib/ai-client';+import { DRAWIO_SYSTEM_PROMPT } from '@/lib/system-prompts';+import { ButtonWithTooltip } from '@/workspaces/cad/chat/components/button-with-tooltip';+import { ChatInput } from '@/workspaces/cad/chat/ChatInput';+import { ChatMessageDisplay, UIMessage } from '@/workspaces/cad/chat/ChatMessageDisplay';+import { STORAGE_GLOBAL_CONSTRAINTS_KEY } from '@/workspaces/cad/chat/global-constraints-dialog';+import { HistoryDialog, HistoryItem } from '@/workspaces/cad/chat/history-dialog';+import { ResetWarningModal } from '@/workspaces/cad/chat/reset-warning-modal';+import { useFileProcessor } from '@/lib/use-file-processor';+import { buildCadBomMessages, buildCadImagesMasterMessages, buildCadImagesSheetMessages, buildCadTasksSystemContent } from '@/lib/cad-tasks';+import { CAD_PLAN_AGENT_PROMPT, CAD_SVG_GENERATE_AGENT_PROMPT, CAD_SVG_PATCH_AGENT_PROMPT } from '@/lib/cad-agents';+import flowPatchAgentPrompt from "../../../../agent/flow/patch.md?raw";+import flowReplaceAgentPrompt from "../../../../agent/flow/replace.md?raw";+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";++interface Attachment {+ id: string;+ type: 'xml' | 'python' | 'json' | 'image' | 'text';+ content: string;+ name: string;+}++type CodeActionResult = { ok: boolean; retry?: boolean; error?: string };+type MaybePromise<T> = T | Promise<T>;++interface ChatPanelProps {+ className?: string;+ attachments?: Attachment[];+ onRemoveAttachment?: (id: string) => void;+ pptDraftSlides?: Array<{ id: string; slideId: string; title: string; json: string; kind: "outline" | "slide_image"; imageUrl?: string }>;+ onRemovePptDraftSlide?: (id: string) => void;+ onClearPptDraftSlides?: () => void;+ onCodeAction?: (code: string, type: 'flow' | 'cad' | 'ppt') => MaybePromise<void | CodeActionResult>;+ systemPrompt?: string;+ initialMessages?: ChatMessage[];+ onMessagesChange?: (messages: ChatMessage[]) => void;+ chatModel?: string;+ workspaceId?: string;+ mode?: 'text' | 'ppt_image';+ hideHistoryButton?: boolean;+ collapsed?: boolean;+ onToggleCollapse?: () => void;+ collapseLocked?: boolean;+ title?: string;+ inputPlaceholder?: string;+ // History props+ history?: HistoryItem[];+ onRestore?: (item: HistoryItem) => void;+ onClearVersionHistory?: () => void;+ onClearAttachments?: () => void;+ cadContext?: {+ plan?: any;+ svg2d?: string;+ };+ flowContext?: {+ xml?: string;+ };+ onClearWorkspace?: () => void;+}++const STORAGE_KEY_PREFIX = 'chat_history_v2_';++// Convert internal ChatMessage to UIMessage+const toUIMessage = (msg: ChatMessage, index: number): UIMessage => ({+ id: `msg-${index}-${Date.now()}`,+ role: msg.role as any,+ content: msg.content,+ parts: [{ type: 'text', text: msg.content }]+});++export function ChatPanel({+ className,+ attachments = [],+ onRemoveAttachment,+ pptDraftSlides = [],+ onRemovePptDraftSlide,+ onClearPptDraftSlides,+ onCodeAction,+ systemPrompt = DRAWIO_SYSTEM_PROMPT,+ initialMessages = [],+ onMessagesChange,+ chatModel,+ workspaceId = 'default',+ mode = 'text',+ hideHistoryButton = false,+ collapsed = false,+ onToggleCollapse,+ collapseLocked = false,+ title = "AI 鍔╂墜",+ inputPlaceholder,+ history = [],+ onRestore,+ onClearVersionHistory,+ onClearAttachments,+ cadContext,+ flowContext,+ onClearWorkspace+}: ChatPanelProps) {+ const uiLang = useUiLanguage();+ const trText = (zhText: string, enText: string) => (uiLang === "zh" ? zhText : enText);+ // Persistence key+ const storageKey = `${STORAGE_KEY_PREFIX}${workspaceId}`;++ const [messages, setMessages] = useState<ChatMessage[]>(() => {+ if (typeof window !== 'undefined') {+ const saved = localStorage.getItem(storageKey);+ if (saved) {+ try {+ return JSON.parse(saved);+ } catch (e) {+ console.error("Failed to parse chat history", e);+ }+ }+ }+ return initialMessages.length > 0 ? initialMessages : [+ { role: 'assistant', content: t(uiLang, "chat.hello") }+ ];+ });++ const [input, setInput] = useState('');+ const [pptInputSegments, setPptInputSegments] = useState<Array<{ type: "text"; text: string } | { type: "ppt"; slideId: string; label: string; tag: string }>>([+ { type: "text", text: "" }+ ]);+ const [isLoading, setIsLoading] = useState(false);+ const [showHistory, setShowHistory] = useState(false);+ const [showResetWarning, setShowResetWarning] = useState(false);+ const flowAutoRetryCountRef = useRef(0);+ const MAX_FLOW_AUTO_RETRY = 3;++ const [files, setFiles] = useState<File[]>([]);+ const abortControllerRef = useRef<AbortController | null>(null);+ const [pptInputFocusTick, setPptInputFocusTick] = useState(0);+ const prevPptDraftCountRef = useRef(0);+ const prevPptDraftIdsRef = useRef<Set<string>>(new Set());+ const [pptInsertToken, setPptInsertToken] = useState<{ key: number; slideId: string; label: string; tag: string } | null>(null);+ const pptInsertQueueRef = useRef<Array<{ slideId: string; title: string; label: string }>>([]);+ const pptInsertBusyRef = useRef(false);+ const [pptClearTick, setPptClearTick] = useState(0);+ const lastUploadedImagesRef = useRef<string[]>([]);++ const getPptLabel = (slideId: string, title: string) => {+ const m = String(slideId || "").match(/(\\d+)/);+ const n = m ? Number(m[1]) : NaN;+ if (!Number.isNaN(n)) {+ return title ? `Slide ${n}: ${title}` : `Slide ${n}`;+ }+ return title || slideId;+ };++ const getPptTag = (slideId: string, title: string) => {+ const m = String(slideId || "").match(/(\\d+)/);+ const n = m ? Number(m[1]) : NaN;+ if (Number.isNaN(n)) return "";+ const safeTitle = String(title || "").split("|").join(",").split("]]").join("");+ return `[[PPT_SLIDE|${n}|${safeTitle}]]`;+ };++ const pumpPptInsertQueue = () => {+ if (pptInsertBusyRef.current) return;+ const next = pptInsertQueueRef.current.shift();+ if (!next) return;+ pptInsertBusyRef.current = true;+ const tag = getPptTag(next.slideId, next.title);+ setPptInsertToken({ key: Date.now() + Math.random(), slideId: next.slideId, label: next.label, tag });+ };++ const enqueuePptToken = (slideId: string, title: string) => {+ const label = getPptLabel(slideId, title);+ pptInsertQueueRef.current.push({ slideId, title, label });+ pumpPptInsertQueue();+ };++ useEffect(() => {+ if (workspaceId !== "ppt") return;+ const prev = prevPptDraftCountRef.current;+ const next = pptDraftSlides.length;+ prevPptDraftCountRef.current = next;+ if (next > prev) {+ setPptInputFocusTick((x) => x + 1);+ }+ }, [workspaceId, pptDraftSlides.length]);++ useEffect(() => {+ if (workspaceId !== "ppt") return;+ const prevIds = prevPptDraftIdsRef.current;+ const nextIds = new Set(pptDraftSlides.map((s) => s.id));+ const added = pptDraftSlides.filter((s) => !prevIds.has(s.id));+ prevPptDraftIdsRef.current = nextIds;+ if (added.length === 0) return;+ for (const s of added) enqueuePptToken(s.slideId, s.title);+ }, [workspaceId, pptDraftSlides, setInput]);++ const parseMarkdownBomTable = (text: string) => {+ const normalized = String(text || "");+ const lines = normalized.split(/\r?\n/);+ for (let i = 0; i < lines.length - 2; i += 1) {+ const header = lines[i];+ const sep = lines[i + 1];+ if (!header.includes("|")) continue;+ if (!/^\s*\|?(\s*:?-+:?\s*\|)+\s*:?-+:?\s*\|?\s*$/.test(sep)) continue;++ const parseRow = (line: string) => {+ const trimmed = line+ .trim()+ .replace(/^[-*+]\s+/, "")+ .replace(/^\d+\.\s+/, "");+ const body = trimmed.startsWith("|") ? trimmed.slice(1) : trimmed;+ const body2 = body.endsWith("|") ? body.slice(0, -1) : body;+ return body2.split("|").map((c) => c.trim());+ };++ const columns = parseRow(header).filter((c) => c);+ if (columns.length === 0) continue;++ const rows: any[] = [];+ for (let j = i + 2; j < lines.length; j += 1) {+ const rowLine = lines[j];+ if (!rowLine.includes("|")) break;+ const row = parseRow(rowLine);+ if (row.every((c) => !String(c || "").trim())) break;+ const fixed = row.slice(0, columns.length);+ while (fixed.length < columns.length) fixed.push("");+ rows.push(fixed);+ }++ if (rows.length === 0) continue;+ return { type: "cad_bom", columns, rows };+ }+ return null;+ };++ const sanitizeAssistantContentForDisplay = (content: string) => {+ if (workspaceId !== "cad") return content;+ if (!content) return content;+ let next = content.replace(+ /```(?:python|py|python3)\s*[\s\S]*?```/g,+ trText("锛堝凡鍦ㄥ悗鍙版帹瀵煎畬鎴愶級", "(Processed in the background)")+ );+ next = next+ .split("\n")+ .filter((line) => !/freecad/i.test(line))+ .join("\n");+ next = next.replace(/(?:^|\n)1\.\s*FreeCAD[\s\S]*?(?=\n\d+\.\s|$)/gi, "\n");+ return next.replace(/```json\s*([\s\S]*?)```/g, (full, inner) => {+ const text = String(inner || "").trim();+ if (!text) return full;+ if (text.includes('"type"') && text.includes('"cad_images"')) {+ return trText("锛堝凡鎻愪氦瑁呬慨鍥剧敓鎴愪换鍔★級", "(CAD drawing generation task submitted)");+ }+ if (text.includes('"type"') && text.includes('"cad_plan"')) {+ try {+ const parsed = JSON.parse(text);+ if (parsed?.type !== "cad_plan") return full;+ const plan = parsed?.plan || {};+ const summary = typeof plan?.summary === "string" ? plan.summary : "";+ const style = typeof plan?.style === "string" ? plan.style : "";+ const assumptions = Array.isArray(plan?.assumptions) ? plan.assumptions.map((x: any) => String(x)).filter(Boolean) : [];+ const constraints = Array.isArray(plan?.constraints) ? plan.constraints.map((x: any) => String(x)).filter(Boolean) : [];+ const rooms = Array.isArray(plan?.rooms) ? plan.rooms : [];++ const lines: string[] = [];+ if (summary) lines.push(trText(`Summary: ${summary}`, `Summary: ${summary}`));+ if (style) lines.push(trText(`Style: ${style}`, `Style: ${style}`));+ if (rooms.length > 0) {+ const roomNames = rooms.map((r: any) => String(r?.name || r?.type || "")).filter(Boolean);+ lines.push(trText(`Spaces: ${roomNames.join(", ")}`, `Spaces: ${roomNames.join(", ")}`));+ }+ if (assumptions.length > 0) lines.push(trText(`Assumptions: ${assumptions.join("; ")}`, `Assumptions: ${assumptions.join("; ")}`));+ if (constraints.length > 0) lines.push(trText(`Constraints: ${constraints.join("; ")}`, `Constraints: ${constraints.join("; ")}`));+ return lines.length > 0 ? lines.join("\\n") : trText("(Plan generated)", "(Plan generated)");+ } catch {+ return trText("(Plan generated)", "(Plan generated)");+ }+ }+ return full;+ });+ };++ const scheduleFrame = (cb: () => void) => {+ if (typeof requestAnimationFrame === "function") return requestAnimationFrame(cb);+ if (typeof window !== "undefined") return window.setTimeout(cb, 16);+ return 0;+ };++ const cancelFrame = (id: number) => {+ if (!id) return;+ if (typeof cancelAnimationFrame === "function") cancelAnimationFrame(id);+ else if (typeof window !== "undefined") window.clearTimeout(id);+ };++ const updateLastAssistant = (content: string) => {+ const display = sanitizeAssistantContentForDisplay(content);+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant') {+ return [...prev.slice(0, -1), { role: 'assistant', content: display }];+ }+ return [...prev, { role: 'assistant', content: display }];+ });+ };++ const createThrottledAssistantUpdater = () => {+ let latest = '';+ let frameId: number | null = null;+ return {+ push: (chunk: string) => {+ latest = chunk;+ if (frameId !== null) return;+ frameId = scheduleFrame(() => {+ frameId = null;+ updateLastAssistant(latest);+ });+ },+ flush: () => {+ if (frameId !== null) {+ cancelFrame(frameId);+ frameId = null;+ }+ updateLastAssistant(latest);+ }+ };+ };++ // Persist messages+ useEffect(() => {+ localStorage.setItem(storageKey, JSON.stringify(messages));+ onMessagesChange?.(messages);+ }, [messages, storageKey, onMessagesChange]);++ const clearHistory = () => {+ abortControllerRef.current?.abort();+ abortControllerRef.current = null;+ setIsLoading(false);+ setInput('');+ setPptInputSegments([{ type: "text", text: "" }]);+ setFiles([]);+ onClearAttachments?.();+ onClearPptDraftSlides?.();+ onClearWorkspace?.();+ try {+ localStorage.removeItem(storageKey);+ } catch {+ }+ const newMsgs: ChatMessage[] = [+ { role: 'assistant', content: t(uiLang, "chat.cleared") }+ ];+ setMessages(newMsgs);+ setShowResetWarning(false);+ };++ const startNewChat = () => {+ abortControllerRef.current?.abort();+ abortControllerRef.current = null;+ setIsLoading(false);+ setInput('');+ setPptInputSegments([{ type: "text", text: "" }]);+ setFiles([]);+ onClearAttachments?.();+ const newMsgs: ChatMessage[] = [+ { role: 'assistant', content: t(uiLang, "chat.newChat") }+ ];+ setMessages(newMsgs);+ try {+ localStorage.removeItem(storageKey);+ } catch {+ }+ };++ const runCodeAction = async (code: string, type: 'flow' | 'cad' | 'ppt') => {+ const result = await Promise.resolve(onCodeAction?.(code, type));+ if (!result || typeof result !== "object") return { ok: true } as CodeActionResult;+ const r = result as any;+ if (typeof r.ok === "boolean") {+ return { ok: r.ok, retry: !!r.retry, error: typeof r.error === "string" ? r.error : undefined } as CodeActionResult;+ }+ return { ok: true } as CodeActionResult;+ };++ const handleAssistantResponse = async (fullResponse: string) => {+ if (!fullResponse) return { flowPatchFound: false, flowRetryError: null as string | null };++ const pyMatch = fullResponse.match(/```python\n([\s\S]*?)\n```/);+ if (pyMatch && pyMatch[1] && workspaceId !== "cad") {+ await runCodeAction(pyMatch[1], 'cad');+ }++ if (workspaceId === "cad") {+ const jsMatch = fullResponse.match(/```(javascript|js)\n([\s\S]*?)\n```/);+ if (jsMatch && jsMatch[2]) {+ await runCodeAction(jsMatch[2], 'cad');+ }+ }++ const svgMatch = fullResponse.match(/```svg\n([\s\S]*?)\n```/);+ if (svgMatch && svgMatch[1]) {+ await runCodeAction(svgMatch[1], 'cad');+ }++ let flowPatchFound = false;+ let flowRetryError: string | null = null;++ const jsonRegex = /```json\s*([\s\S]*?)```/g;+ let m: RegExpExecArray | null;+ while ((m = jsonRegex.exec(fullResponse))) {+ const jsonText = String(m[1] || "").trim();+ if (!jsonText) continue;++ if (workspaceId === 'ppt') {+ try {+ const parsed = JSON.parse(jsonText);+ if (lastUploadedImagesRef.current.length > 0) {+ parsed.uploadedImages = lastUploadedImagesRef.current;+ await runCodeAction(JSON.stringify(parsed), 'ppt');+ } else {+ await runCodeAction(jsonText, 'ppt');+ }+ } catch {+ await runCodeAction(jsonText, 'ppt');+ }+ continue;+ }++ if (workspaceId === 'flow') {+ try {+ const parsed = JSON.parse(jsonText);+ if (parsed?.type === "flow_patch") flowPatchFound = true;+ } catch {+ }+ const r = await runCodeAction(jsonText, 'flow');+ if (!r.ok && r.retry) {+ flowRetryError = r.error || "Unknown error";+ }+ continue;+ }++ await runCodeAction(jsonText, workspaceId === "cad" ? 'cad' : 'ppt');+ }++ if (workspaceId === "flow" && !flowPatchFound) {+ const xmlMatch = fullResponse.match(/```xml\n([\s\S]*?)\n```/);+ if (xmlMatch && xmlMatch[1]) {+ const r = await runCodeAction(xmlMatch[1], 'flow');+ if (!r.ok && r.retry) {+ flowRetryError = r.error || "Unknown error";+ }+ }+ }++ return { flowPatchFound, flowRetryError };+ };++ const buildFlowRetryPrompt = (errorText: string, forceReplace: boolean) => {+ const err = String(errorText || "").slice(0, 600);+ if (uiLang === "en") {+ return [+ `The previous flow_patch could not be applied to the current diagram. Reason: ${err}`,+ "",+ "Please retry and strictly follow:",+ "- Output exactly one ```json``` code block with type=flow_patch",+ forceReplace+ ? "- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)"+ : "- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>",+ ].join("\n");+ }+ return [+ `Previous flow_patch could not be applied to current diagram: ${err}`,+ "",+ "Please retry and strictly follow:",+ "- Output exactly one ```json``` code block with type=flow_patch",+ forceReplace+ ? "- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)"+ : "- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>",+ ].join("\\n");+ };++ const handleSend = async () => {+ const isPpt = workspaceId === "ppt";+ const rawInput = isPpt+ ? pptInputSegments+ .map((s) => (s.type === "text" ? s.text : s.tag))+ .join("")+ : input;+ if ((!rawInput.trim() && files.length === 0 && attachments.length === 0 && pptDraftSlides.length === 0) || isLoading) return;+ flowAutoRetryCountRef.current = 0;++ const normalizedInput = rawInput.trim();+ const referencedPptSlideIds = isPpt+ ? new Set(+ pptInputSegments+ .filter((s): s is { type: "ppt"; slideId: string; label: string; tag: string } => s.type === "ppt")+ .map((s) => s.slideId)+ )+ : new Set<string>();+ const pptDraftSlidesSnapshotAll = isPpt ? pptDraftSlides.slice(0, 12) : [];+ const pptDraftSlidesSnapshot =+ isPpt && referencedPptSlideIds.size > 0+ ? pptDraftSlidesSnapshotAll.filter((s) => referencedPptSlideIds.has(s.slideId))+ : [];++ // Process files for prompt+ const fileTexts: string[] = [];+ const currentUploadedImages: string[] = [];+ const currentUploadedImageItems: Array<{ name: string; url: string }> = [];++ // Helper to read file as Data URL+ const fileToDataUrl = (file: File): Promise<string> => {+ return new Promise((resolve, reject) => {+ const reader = new FileReader();+ reader.onload = () => resolve(reader.result as string);+ reader.onerror = reject;+ reader.readAsDataURL(file);+ });+ };++ const displayFileTexts: string[] = [];++ for (const file of files) {+ if (file.type.startsWith('image/')) {+ try {+ const dataUrl = await fileToDataUrl(file);+ // We embed the image directly in the prompt using Markdown syntax.+ // This allows the Agent (if it's a VLM) to see it, or at least we provide the Data URL string+ // which the Agent can echo back in the JSON for the frontend to use.+ fileTexts.push(``);+ fileTexts.push(`[Image Attachment: ${file.name}]`);+ currentUploadedImages.push(dataUrl);+ currentUploadedImageItems.push({ name: file.name, url: dataUrl });+ } catch (e) {+ console.error("Failed to read image", file.name, e);+ fileTexts.push(`[Image: ${file.name}] (Failed to read)`);+ }+ } else {+ // Text/PDF+ const { extractPdfText, extractTextFileContent, isPdfFile } = await import('@/lib/pdf-utils');+ try {+ let content = "";+ if (isPdfFile(file)) {+ try {+ const { getPdfDocumentFromUrl, renderPdfPageToCanvas } = await import("@/lib/pdf-utils");+ const objectUrl = URL.createObjectURL(file);+ try {+ const pdf = await getPdfDocumentFromUrl(objectUrl);+ const canvas = document.createElement("canvas");+ await renderPdfPageToCanvas({ pdf, pageNumber: 1, canvas, targetWidth: 520 });+ const previewUrl = canvas.toDataURL("image/png");+ if (previewUrl && previewUrl.startsWith("data:image")) {+ currentUploadedImageItems.push({ name: file.name, url: previewUrl });+ }+ } finally {+ URL.revokeObjectURL(objectUrl);+ }+ } catch (e) {+ console.error("Failed to render PDF preview", file.name, e);+ }+ content = await extractPdfText(file);+ } else {+ content = await extractTextFileContent(file);+ }+ const block = `[${isPdfFile(file) ? 'PDF' : 'File'}: ${file.name}]\n${content}`;+ fileTexts.push(block);+ displayFileTexts.push(block);+ } catch (e) {+ console.error("Failed to read file", file.name, e);+ const block = `[File: ${file.name}]\n(Failed to read content)`;+ fileTexts.push(block);+ displayFileTexts.push(block);+ }+ }+ }++ const contextAttachmentsText = attachments.length > 0+ ? attachments+ .slice(0, 12)+ .map((a, idx) => {+ const header = `[Context ${idx + 1}: ${a.name} | ${a.type}]`;+ const body = String(a.content || "").slice(0, 12000);+ return `${header}\n\`\`\`${a.type}\n${body}\n\`\`\``;+ })+ .join("\n\n")+ : "";++ const pptDraftContextText =+ workspaceId === "ppt" && pptDraftSlidesSnapshot.length > 0+ ? pptDraftSlidesSnapshot+ .map((s, idx) => {+ const header = `[Context ${idx + 1}: ${s.slideId}.json | json]`;+ const body = String(s.json || "").slice(0, 12000);+ return `${header}\n\`\`\`json\n${body}\n\`\`\``;+ })+ .join("\n\n")+ : "";++ const flowContextText =+ workspaceId === "flow" && typeof flowContext?.xml === "string" && flowContext.xml.trim()+ ? `Current diagram XML:\n\n\`\`\`xml\n${flowContext.xml}\n\`\`\``+ : "";++ const cadContextText =+ workspaceId === "cad"+ ? [+ cadContext?.plan ? `Current CAD plan:\n\n\`\`\`json\n${JSON.stringify(cadContext.plan, null, 2)}\n\`\`\`` : "",+ typeof cadContext?.svg2d === "string" && cadContext.svg2d.trim()+ ? `Current 2D SVG:\n\n\`\`\`svg\n${cadContext.svg2d}\n\`\`\``+ : "",+ ]+ .filter(Boolean)+ .join("\n\n")+ : "";++ const promptParts = [+ rawInput,+ fileTexts.length > 0 ? fileTexts.join("\n\n") : "",+ pptDraftContextText,+ contextAttachmentsText,+ flowContextText,+ cadContextText+ ].filter(Boolean);+ const promptContent = promptParts.join("\n\n");+ lastUploadedImagesRef.current = currentUploadedImages;++ const safeTagText = (text: string) =>+ String(text || "").split("|").join(",").split("]]").join("").replace(/\r?\n/g, " ");+ const imageTags = currentUploadedImageItems+ .map((it) => `[[IMAGE|${safeTagText(it.name)}|${it.url}]]`)+ .join("\n");+ const displayParts = [+ imageTags,+ rawInput,+ displayFileTexts.length > 0 ? displayFileTexts.join("\n\n") : "",+ ].filter(Boolean);+ const displayContent = displayParts.join("\n\n");++ const userMessageForDisplay: ChatMessage = { role: 'user', content: displayContent };+ const displayMessages = [...messages, userMessageForDisplay];+ setMessages(displayMessages);+ if (isPpt) setPptInputSegments([{ type: "text", text: "" }]);+ else setInput('');+ if (isPpt) setPptClearTick((x) => x + 1);+ setFiles([]);+ if (workspaceId === "ppt") onClearPptDraftSlides?.();++ if (workspaceId === "cad" && mode === "text" && /(cad_ready_for_export|涓€閿甛s*(鍑哄浘|鐢熸垚)|one[- ]?click)/i.test(normalizedInput)) {+ const svg2d = cadContext?.svg2d || "";+ const planJson = cadContext?.plan ? JSON.stringify(cadContext.plan) : "";++ let bomEmitted = false;++ const emitCadJson = (text: string) => {+ const match = text.match(/```json\s*([\s\S]*?)```/);+ const jsonText = match ? match[1].trim() : text.trim();+ if (!jsonText.startsWith("{")) return;+ try {+ const parsed = JSON.parse(jsonText);+ if (parsed?.type === "cad_bom") bomEmitted = true;+ } catch {+ }+ onCodeAction?.(jsonText, 'cad');+ };++ const config = getAIConfig();+ const constraintsKey = workspaceId ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}` : STORAGE_GLOBAL_CONSTRAINTS_KEY;+ const globalConstraints = typeof window !== 'undefined' ? localStorage.getItem(constraintsKey) || '' : '';+ const globalSystemPrompt = config.systemPrompt || '';+ const systemContent = [buildCadTasksSystemContent({ globalSystemPrompt, globalConstraints }), `UI language: ${uiLang}`]+ .filter(Boolean)+ .join("\n\n");+ const bomMessages: ChatMessage[] = buildCadBomMessages({ systemContent, planJson, svg2d });+ const masterMessages: ChatMessage[] = buildCadImagesMasterMessages({ systemContent, planJson, svg2d });++ setIsLoading(true);+ abortControllerRef.current?.abort();+ const controller = new AbortController();+ abortControllerRef.current = controller;++ setMessages(prev => [...prev, { role: 'assistant', content: '' }]);++ const updater = createThrottledAssistantUpdater();+ let bomFull = '';+ let imagesFull = '';++ const bomTask = (async () => {+ await streamChatMessage(bomMessages, (chunk) => {+ bomFull = chunk;+ updater.push(chunk);+ }, chatModel, controller.signal);+ updater.flush();+ if (bomFull) {+ emitCadJson(bomFull);+ if (!bomEmitted) {+ const fallback = parseMarkdownBomTable(bomFull);+ if (fallback) {+ bomEmitted = true;+ onCodeAction?.(JSON.stringify(fallback), "cad");+ }+ }+ }+ })();++ const imagesTask = (async () => {+ const extractJsonText = (text: string) => {+ const match = String(text || "").match(/```json\s*([\s\S]*?)```/);+ return match ? match[1].trim() : String(text || "").trim();+ };++ const tryParseJson = (text: string) => {+ const normalized = extractJsonText(text);+ try {+ return JSON.parse(normalized);+ } catch {+ const start = normalized.indexOf("{");+ const end = normalized.lastIndexOf("}");+ if (start >= 0 && end > start) {+ try {+ return JSON.parse(normalized.slice(start, end + 1));+ } catch {+ }+ }+ return null;+ }+ };++ const fallbackTitlesForOutput = [+ trText("Renovation Plan Layout", "Renovation Plan Layout"),+ trText("Floor Finish Plan", "Floor Finish Plan"),+ trText("Reflected Ceiling Plan", "Reflected Ceiling Plan"),+ trText("Wall Setting-Out Plan", "Wall Setting-Out Plan"),+ trText("MEP Plan (Electrical + Low Voltage + Plumbing)", "MEP Plan (Electrical + Low Voltage + Plumbing)"),+ trText("Elevation Index Plan + Interior Elevations", "Elevation Index Plan + Interior Elevations"),+ trText("Detail Drawings", "Detail Drawings"),+ ];+ const fallbackTitlesForPromptEnglish = [+ "Renovation Plan Layout",+ "Floor Finish Plan",+ "Reflected Ceiling Plan",+ "Wall Setting-Out Plan",+ "MEP Plan (Electrical + Low Voltage + Plumbing)",+ "Elevation Index Plan + Interior Elevations",+ "Detail Drawings",+ ];++ let masterSchemeJson = "";+ try {+ const masterText = await generateChatMessage(masterMessages, chatModel, { signal: controller.signal, timeoutMs: 120000 });+ const parsedMaster = tryParseJson(masterText);+ if (parsedMaster?.type === "renovation_scheme_master" && parsedMaster?.global_scheme) {+ masterSchemeJson = JSON.stringify(parsedMaster, null, 2);+ }+ } catch {+ }++ const imagesSheetMessages = buildCadImagesSheetMessages({ systemContent, planJson, svg2d, masterSchemeJson });++ const settled = await Promise.allSettled(+ imagesSheetMessages.map((s) =>+ generateChatMessage(s.messages, chatModel, { signal: controller.signal, timeoutMs: 120000 })+ )+ );++ const prompts = settled.map((r, idx) => {+ const fallbackTitleForOutput = fallbackTitlesForOutput[idx] || trText("Drawing", "Drawing");+ const fallbackTitleForPrompt = fallbackTitlesForPromptEnglish[idx] || "Drawing";+ const onSheetLanguageRule =+ uiLang === "zh"+ ? "All on-sheet labels/notes/title block text must be in Simplified Chinese."+ : "All on-sheet labels/notes/title block text must be in English.";+ const fallbackPrompt = `Generate an orthographic 2D technical construction drawing sheet: ${fallbackTitleForPrompt}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. ${onSheetLanguageRule}`;++ if (r.status !== "fulfilled") return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ const text = String(r.value || "").trim();+ const parsed = tryParseJson(text);++ if (parsed?.type === "cad_images_sheet" && typeof parsed?.title === "string" && typeof parsed?.prompt === "string") {+ const p = parsed.prompt.trim();+ return { title: parsed.title, prompt: p || fallbackPrompt };+ }++ if (parsed?.type === "cad_images" && Array.isArray(parsed?.prompts) && parsed.prompts.length > 0) {+ const first = parsed.prompts[0];+ const title = typeof first?.title === "string" ? first.title : fallbackTitleForOutput;+ const prompt = typeof first?.prompt === "string" ? first.prompt.trim() : "";+ return { title, prompt: prompt || fallbackPrompt };+ }++ return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ });++ imagesFull = JSON.stringify({ type: "cad_images", prompts }, null, 2);+ emitCadJson(imagesFull);+ })();++ try {+ await Promise.allSettled([bomTask, imagesTask]);+ if (controller.signal.aborted) {+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role !== 'assistant') return prev;+ const abortedText = trText("(Aborted)", "(Aborted)");+ const next = last.content ? `${last.content}\n\n${abortedText}` : abortedText;+ return [...prev.slice(0, -1), { role: 'assistant', content: next }];+ });+ }+ } catch {+ } finally {+ setIsLoading(false);+ abortControllerRef.current = null;+ }+ return;+ }++ setIsLoading(true);+ abortControllerRef.current?.abort();+ const controller = new AbortController();+ abortControllerRef.current = controller;++ try {+ // Get Global Config+ const config = getAIConfig();+ // Load global constraints from storage (scoped by workspaceId)+ const constraintsKey = workspaceId ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}` : STORAGE_GLOBAL_CONSTRAINTS_KEY;+ const globalConstraints = typeof window !== 'undefined' ? localStorage.getItem(constraintsKey) || '' : '';+ const globalSystemPrompt = config.systemPrompt || '';++ const systemContent = [systemPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join('\n\n');++ const apiMessages: ChatMessage[] = [+ { role: 'system', content: systemContent },+ ...messages,+ { role: 'user', content: promptContent }+ ];++ setMessages(prev => [...prev, { role: 'assistant', content: '' }]);++ let fullResponse = '';+ const updater = createThrottledAssistantUpdater();+ await streamChatMessage(apiMessages, (chunk) => {+ fullResponse = chunk;+ updater.push(chunk);+ }, chatModel, controller.signal);+ updater.flush();++ let flowRoutedBaseMessages: ChatMessage[] | null = null;+ let flowSelectedAgent: "patch" | "replace" | null = null;++ if (fullResponse && workspaceId === "flow") {+ const resolveFlowAgentFromRouteText = (text: string): "patch" | "replace" | null => {+ const trimmed = String(text || "").trim();+ if (!trimmed) return null;++ let content = trimmed;+ const fenceMatch = content.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);+ if (fenceMatch && fenceMatch[1]) content = fenceMatch[1].trim();+ content = content.replace(/\s+/g, "");++ if (!/^[1-2]$/.test(content)) return null;+ return content === "1" ? "patch" : "replace";+ };++ const agentFromText = resolveFlowAgentFromRouteText(fullResponse);+ if (agentFromText) {+ flowSelectedAgent = agentFromText;++ setMessages((prev) => {+ const last = prev[prev.length - 1];+ if (last?.role === "assistant") return [...prev.slice(0, -1), { role: "assistant", content: "" }];+ return prev;+ });++ const agentPrompt = flowSelectedAgent === "patch" ? flowPatchAgentPrompt : flowReplaceAgentPrompt;+ const routedSystemContent = [agentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ const routedMessages: ChatMessage[] = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];++ let routedFull = "";+ const routedUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(routedMessages, (chunk) => {+ routedFull = chunk;+ routedUpdater.push(chunk);+ }, chatModel, controller.signal);+ routedUpdater.flush();++ flowRoutedBaseMessages = routedMessages;+ fullResponse = routedFull;+ }+ }++ if (fullResponse && workspaceId === "cad") {+ let route: { agent?: string } | null = null;++ const resolveCadAgentFromRouteText = (text: string): string | null => {+ const trimmed = String(text || "").trim();+ if (!trimmed) return null;++ let content = trimmed;+ const fenceMatch = content.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);+ if (fenceMatch && fenceMatch[1]) content = fenceMatch[1].trim();+ content = content.replace(/\s+/g, "");++ if (!/^[1-5]$/.test(content)) return null;++ return content === "1"+ ? "cad_plan_agent"+ : content === "2"+ ? "cad_svg_generate_agent"+ : content === "3"+ ? "cad_svg_patch_agent"+ : content === "4"+ ? "cad_bom_agent"+ : "cad_images_agent";+ };++ const routeJsonRegex = /```json\s*([\s\S]*?)```/g;+ let rm: RegExpExecArray | null;+ while ((rm = routeJsonRegex.exec(fullResponse))) {+ const jsonText = String(rm[1] || "").trim();+ if (!jsonText) continue;+ try {+ const parsed = JSON.parse(jsonText);+ if (parsed?.type === "cad_route" && typeof parsed?.agent === "string") {+ route = { agent: parsed.agent };+ break;+ }+ } catch {+ }+ }++ if (!route?.agent) {+ const agentFromText = resolveCadAgentFromRouteText(fullResponse);+ if (agentFromText) route = { agent: agentFromText };+ }++ if (route?.agent) {+ setMessages((prev) => {+ const last = prev[prev.length - 1];+ if (last?.role === "assistant") return [...prev.slice(0, -1), { role: "assistant", content: "" }];+ return prev;+ });++ const buildCadNextStepGuide = (args: {+ agent: string;+ beforeHasPlan: boolean;+ beforeHasSvg2d: boolean;+ producedHasPlan: boolean;+ producedHasSvg2d: boolean;+ producedHasImages: boolean;+ producedHasBom: boolean;+ }) => {+ if (args.producedHasPlan && !args.beforeHasPlan) {+ return trText(+ "The plan is ready. If it looks good, reply \"Generate 2D floorplan\". If not, tell me what to change.",+ "The plan is ready. If it looks good, reply \"Generate 2D floorplan\". If not, tell me what to change."+ );+ }+ if (args.producedHasSvg2d && !args.beforeHasSvg2d) {+ return trText(+ "The 2D floorplan is generated. Tell me edits if needed; otherwise reply \"Generate renders\".",+ "The 2D floorplan is generated. Tell me edits if needed; otherwise reply \"Generate renders\"."+ );+ }+ if (args.producedHasImages) {+ return trText(+ "Renders are being generated or updated. Next, reply \"Generate BOM\".",+ "Renders are being generated or updated. Next, reply \"Generate BOM\"."+ );+ }+ if (args.producedHasBom) {+ return trText(+ "BOM is generated. You can refine the plan, 2D, or style, or export files.",+ "BOM is generated. You can refine the plan, 2D, or style, or export files."+ );+ }+ if (args.agent === "cad_svg_patch_agent") {+ return trText(+ "2D has been patched. If OK, reply \"Generate renders\"; otherwise describe more edits.",+ "2D has been patched. If OK, reply \"Generate renders\"; otherwise describe more edits."+ );+ }+ return "";+ };++ const runCadTaskMessages = async (taskMessages: ChatMessage[]) => {+ let taskFull = "";+ const taskUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(taskMessages, (chunk) => {+ taskFull = chunk;+ taskUpdater.push(chunk);+ }, chatModel, controller.signal);+ taskUpdater.flush();+ return taskFull;+ };++ const emitCadJson = (text: string) => {+ const match = text.match(/```json\s*([\s\S]*?)```/);+ const jsonText = match ? match[1].trim() : text.trim();+ if (!jsonText.startsWith("{")) return;+ onCodeAction?.(jsonText, "cad");+ };++ const agent = String(route.agent || "").trim();+ const beforeHasPlan = !!cadContext?.plan;+ const beforeHasSvg2d = !!(typeof cadContext?.svg2d === "string" && cadContext.svg2d.trim());+ const planJson = cadContext?.plan ? JSON.stringify(cadContext.plan) : "";+ const svg2d = cadContext?.svg2d || "";++ if (agent === "cad_bom_agent") {+ const systemContentTasks = [buildCadTasksSystemContent({ globalSystemPrompt, globalConstraints }), `UI language: ${uiLang}`]+ .filter(Boolean)+ .join("\n\n");+ const taskMessages = buildCadBomMessages({ systemContent: systemContentTasks, planJson, svg2d });++ const taskFull = await runCadTaskMessages(taskMessages);+ if (taskFull) {+ emitCadJson(taskFull);+ const fallback = parseMarkdownBomTable(taskFull);+ if (fallback) onCodeAction?.(JSON.stringify(fallback), "cad");++ const producedHasPlan = /"type"\s*:\s*"cad_plan"/.test(taskFull);+ const producedHasSvg2d = /```svg[\s\S]*?```/.test(taskFull);+ const producedHasImages = /"type"\s*:\s*"cad_images"/.test(taskFull);+ const producedHasBom = /"type"\s*:\s*"cad_bom"/.test(taskFull);+ const guide = buildCadNextStepGuide({+ agent,+ beforeHasPlan,+ beforeHasSvg2d,+ producedHasPlan,+ producedHasSvg2d,+ producedHasImages,+ producedHasBom,+ });+ if (guide) updateLastAssistant(`${taskFull}\n\n${guide}`);+ }+ return;+ }++ if (agent === "cad_images_agent") {+ const systemContentTasks = [buildCadTasksSystemContent({ globalSystemPrompt, globalConstraints }), `UI language: ${uiLang}`]+ .filter(Boolean)+ .join("\n\n");+ const masterMessages: ChatMessage[] = buildCadImagesMasterMessages({ systemContent: systemContentTasks, planJson, svg2d });++ updateLastAssistant(trText("Generating drawing prompts...", "Generating drawing prompts..."));++ const extractJsonText = (text: string) => {+ const match = String(text || "").match(/```json\s*([\s\S]*?)```/);+ return match ? match[1].trim() : String(text || "").trim();+ };++ const tryParseJson = (text: string) => {+ const normalized = extractJsonText(text);+ try {+ return JSON.parse(normalized);+ } catch {+ const start = normalized.indexOf("{");+ const end = normalized.lastIndexOf("}");+ if (start >= 0 && end > start) {+ try {+ return JSON.parse(normalized.slice(start, end + 1));+ } catch {+ }+ }+ return null;+ }+ };++ const fallbackTitlesForOutput = [+ trText("Renovation Plan Layout", "Renovation Plan Layout"),+ trText("Floor Finish Plan", "Floor Finish Plan"),+ trText("Reflected Ceiling Plan", "Reflected Ceiling Plan"),+ trText("Wall Setting-Out Plan", "Wall Setting-Out Plan"),+ trText("MEP Plan (Electrical + Low Voltage + Plumbing)", "MEP Plan (Electrical + Low Voltage + Plumbing)"),+ trText("Elevation Index Plan + Interior Elevations", "Elevation Index Plan + Interior Elevations"),+ trText("Detail Drawings", "Detail Drawings"),+ ];+ const fallbackTitlesForPromptEnglish = [+ "Renovation Plan Layout",+ "Floor Finish Plan",+ "Reflected Ceiling Plan",+ "Wall Setting-Out Plan",+ "MEP Plan (Electrical + Low Voltage + Plumbing)",+ "Elevation Index Plan + Interior Elevations",+ "Detail Drawings",+ ];++ let masterSchemeJson = "";+ try {+ const masterText = await generateChatMessage(masterMessages, chatModel, { signal: controller.signal, timeoutMs: 120000 });+ const parsedMaster = tryParseJson(masterText);+ if (parsedMaster?.type === "renovation_scheme_master" && parsedMaster?.global_scheme) {+ masterSchemeJson = JSON.stringify(parsedMaster, null, 2);+ }+ } catch {+ }++ const imagesSheetMessages = buildCadImagesSheetMessages({+ systemContent: systemContentTasks,+ planJson,+ svg2d,+ masterSchemeJson,+ });++ const settled = await Promise.allSettled(+ imagesSheetMessages.map((s) =>+ generateChatMessage(s.messages, chatModel, { signal: controller.signal, timeoutMs: 120000 })+ )+ );++ const prompts = settled.map((r, idx) => {+ const fallbackTitleForOutput = fallbackTitlesForOutput[idx] || trText("Drawing", "Drawing");+ const fallbackTitleForPrompt = fallbackTitlesForPromptEnglish[idx] || "Drawing";+ const onSheetLanguageRule =+ uiLang === "zh"+ ? "All on-sheet labels/notes/title block text must be in Simplified Chinese."+ : "All on-sheet labels/notes/title block text must be in English.";+ const fallbackPrompt = `Generate an orthographic 2D technical construction drawing sheet: ${fallbackTitleForPrompt}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. ${onSheetLanguageRule}`;++ if (r.status !== "fulfilled") return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ const text = String(r.value || "").trim();+ const parsed = tryParseJson(text);++ if (parsed?.type === "cad_images_sheet" && typeof parsed?.title === "string" && typeof parsed?.prompt === "string") {+ const p = parsed.prompt.trim();+ return { title: parsed.title, prompt: p || fallbackPrompt };+ }++ if (parsed?.type === "cad_images" && Array.isArray(parsed?.prompts) && parsed.prompts.length > 0) {+ const first = parsed.prompts[0];+ const title = typeof first?.title === "string" ? first.title : fallbackTitleForOutput;+ const prompt = typeof first?.prompt === "string" ? first.prompt.trim() : "";+ return { title, prompt: prompt || fallbackPrompt };+ }++ return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ });++ const payload = JSON.stringify({ type: "cad_images", prompts }, null, 2);+ onCodeAction?.(payload, "cad");++ const guide = buildCadNextStepGuide({+ agent,+ beforeHasPlan,+ beforeHasSvg2d,+ producedHasPlan: false,+ producedHasSvg2d: false,+ producedHasImages: true,+ producedHasBom: false,+ });+ updateLastAssistant(guide || trText("Drawing tasks generated.", "Drawing tasks generated."));+ return;+ }++ const agentPrompt =+ agent === "cad_plan_agent"+ ? CAD_PLAN_AGENT_PROMPT+ : agent === "cad_svg_generate_agent"+ ? CAD_SVG_GENERATE_AGENT_PROMPT+ : agent === "cad_svg_patch_agent"+ ? CAD_SVG_PATCH_AGENT_PROMPT+ : "";++ if (!agentPrompt) {+ updateLastAssistant(trText(`鏈瘑鍒殑 CAD 瀛愭櫤鑳戒綋锛?{agent}`, `Unrecognized CAD sub-agent: ${agent}`));+ return;+ }++ const routedSystemContent = [agentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ const routedMessages: ChatMessage[] = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];++ let routedFull = "";+ const routedUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(routedMessages, (chunk) => {+ routedFull = chunk;+ routedUpdater.push(chunk);+ }, chatModel, controller.signal);+ routedUpdater.flush();++ if (routedFull) {+ const svgMatch = routedFull.match(/```svg\n([\s\S]*?)\n```/);+ if (svgMatch && svgMatch[1]) onCodeAction?.(svgMatch[1], "cad");++ const jsonRegex = /```json\s*([\s\S]*?)```/g;+ let jm: RegExpExecArray | null;+ while ((jm = jsonRegex.exec(routedFull))) {+ const jsonText = String(jm[1] || "").trim();+ if (!jsonText) continue;+ onCodeAction?.(jsonText, "cad");+ }++ const producedHasPlan = /"type"\s*:\s*"cad_plan"/.test(routedFull);+ const producedHasSvg2d = /```svg[\s\S]*?```/.test(routedFull);+ const producedHasImages = /"type"\s*:\s*"cad_images"/.test(routedFull);+ const producedHasBom = /"type"\s*:\s*"cad_bom"/.test(routedFull);+ const guide = buildCadNextStepGuide({+ agent,+ beforeHasPlan,+ beforeHasSvg2d,+ producedHasPlan,+ producedHasSvg2d,+ producedHasImages,+ producedHasBom,+ });+ if (guide) updateLastAssistant(`${routedFull}\n\n${guide}`);+ }+ return;+ }+ }++ if (fullResponse) {+ let { flowPatchFound, flowRetryError } =+ await handleAssistantResponse(fullResponse);++ let flowRetryMessagesBase: ChatMessage[] = flowRoutedBaseMessages ? [...flowRoutedBaseMessages] : apiMessages;+ let flowRetryAgent: "patch" | "replace" | null = flowSelectedAgent;++ while (+ workspaceId === "flow" &&+ flowPatchFound &&+ flowRetryError &&+ !controller.signal.aborted &&+ flowAutoRetryCountRef.current < MAX_FLOW_AUTO_RETRY+ ) {+ flowAutoRetryCountRef.current += 1;+ const forceReplace = flowAutoRetryCountRef.current >= MAX_FLOW_AUTO_RETRY;++ if (forceReplace && flowRetryAgent === "patch") {+ flowRetryAgent = "replace";+ const routedSystemContent = [flowReplaceAgentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ flowRetryMessagesBase = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];+ }++ const retryPrompt = buildFlowRetryPrompt(flowRetryError, forceReplace);+ const retryMessages: ChatMessage[] = [+ ...flowRetryMessagesBase,+ { role: "assistant", content: fullResponse },+ { role: "user", content: retryPrompt },+ ];++ setMessages((prev) => [...prev, { role: "assistant", content: "" }]);++ let retryFull = "";+ const retryUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(+ retryMessages,+ (chunk) => {+ retryFull = chunk;+ retryUpdater.push(chunk);+ },+ chatModel,+ controller.signal,+ );+ retryUpdater.flush();++ fullResponse = retryFull;+ flowRetryMessagesBase = retryMessages;+ const processed = await handleAssistantResponse(fullResponse);+ flowPatchFound = processed.flowPatchFound;+ flowRetryError = processed.flowRetryError;+ }+ }++ } catch (error) {+ if ((error as any)?.name === "AbortError" || (error as any)?.name === "APIUserAbortError") {+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant') {+ const abortedText = trText("(Aborted)", "(Aborted)");+ const next = last.content ? `${last.content}\n\n${abortedText}` : abortedText;+ return [...prev.slice(0, -1), { role: 'assistant', content: next }];+ }+ return [...prev, { role: 'assistant', content: trText("(Aborted)", "(Aborted)") }];+ });+ return;+ }+ setMessages(prev => {+ const last = prev[prev.length - 1];+ const errorText = trText(+ "Sorry, an error occurred. Please check API key settings.",+ "Sorry, an error occurred. Please check API key settings."+ );+ if (last.role === 'assistant' && !last.content) {+ return [...prev.slice(0, -1), { role: 'assistant', content: errorText }];+ }+ return [...prev, { role: 'assistant', content: errorText }];+ });+ } finally {+ setIsLoading(false);+ abortControllerRef.current = null;+ }+ };++ const handleStop = () => {+ if (!isLoading) return;+ abortControllerRef.current?.abort();+ };++ const runTextChat = async (baseMessages: ChatMessage[]) => {+ const config = getAIConfig();+ const constraintsKey = workspaceId ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}` : STORAGE_GLOBAL_CONSTRAINTS_KEY;+ const globalConstraints = typeof window !== 'undefined' ? localStorage.getItem(constraintsKey) || '' : '';+ const globalSystemPrompt = config.systemPrompt || '';+ const systemContent = [systemPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join('\n\n');+ const lastUserText = String(baseMessages[baseMessages.length - 1]?.content || "");+ const flowContextText =+ workspaceId === "flow" && typeof flowContext?.xml === "string" && flowContext.xml.trim()+ ? `Current diagram XML:\n\n\`\`\`xml\n${flowContext.xml}\n\`\`\``+ : "";+ const promptContent = [lastUserText, flowContextText].filter(Boolean).join("\n\n");++ const apiMessages: ChatMessage[] = [+ { role: 'system', content: systemContent },+ ...baseMessages.slice(0, -1),+ { role: "user", content: promptContent }+ ];++ setIsLoading(true);+ abortControllerRef.current?.abort();+ const controller = new AbortController();+ abortControllerRef.current = controller;++ setMessages([...baseMessages, { role: 'assistant', content: '' }]);++ let fullResponse = '';+ const updater = createThrottledAssistantUpdater();+ try {+ await streamChatMessage(apiMessages, (chunk) => {+ fullResponse = chunk;+ updater.push(chunk);+ }, chatModel, controller.signal);+ updater.flush();++ if (fullResponse) {+ let flowRoutedBaseMessages: ChatMessage[] | null = null;+ let flowSelectedAgent: "patch" | "replace" | null = null;++ if (workspaceId === "flow") {+ const resolveFlowAgentFromRouteText = (text: string): "patch" | "replace" | null => {+ const trimmed = String(text || "").trim();+ if (!trimmed) return null;++ let content = trimmed;+ const fenceMatch = content.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);+ if (fenceMatch && fenceMatch[1]) content = fenceMatch[1].trim();+ content = content.replace(/\s+/g, "");++ if (!/^[1-2]$/.test(content)) return null;+ return content === "1" ? "patch" : "replace";+ };++ const agentFromText = resolveFlowAgentFromRouteText(fullResponse);+ if (agentFromText) {+ flowSelectedAgent = agentFromText;++ setMessages((prev) => {+ const last = prev[prev.length - 1];+ if (last?.role === "assistant") return [...prev.slice(0, -1), { role: "assistant", content: "" }];+ return prev;+ });++ const agentPrompt = flowSelectedAgent === "patch" ? flowPatchAgentPrompt : flowReplaceAgentPrompt;+ const routedSystemContent = [agentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ const routedMessages: ChatMessage[] = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];++ let routedFull = "";+ const routedUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(routedMessages, (chunk) => {+ routedFull = chunk;+ routedUpdater.push(chunk);+ }, chatModel, controller.signal);+ routedUpdater.flush();++ flowRoutedBaseMessages = routedMessages;+ fullResponse = routedFull;+ }+ }++ let { flowPatchFound, flowRetryError } =+ await handleAssistantResponse(fullResponse);++ let flowRetryMessagesBase: ChatMessage[] = flowRoutedBaseMessages ? [...flowRoutedBaseMessages] : apiMessages;+ let flowRetryAgent: "patch" | "replace" | null = flowSelectedAgent;++ while (+ workspaceId === "flow" &&+ flowPatchFound &&+ flowRetryError &&+ !controller.signal.aborted &&+ flowAutoRetryCountRef.current < MAX_FLOW_AUTO_RETRY+ ) {+ flowAutoRetryCountRef.current += 1;+ const forceReplace = flowAutoRetryCountRef.current >= MAX_FLOW_AUTO_RETRY;++ if (forceReplace && flowRetryAgent === "patch") {+ flowRetryAgent = "replace";+ const routedSystemContent = [flowReplaceAgentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ flowRetryMessagesBase = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];+ }++ const retryPrompt = buildFlowRetryPrompt(flowRetryError, forceReplace);+ const retryMessages: ChatMessage[] = [+ ...flowRetryMessagesBase,+ { role: "assistant", content: fullResponse },+ { role: "user", content: retryPrompt },+ ];++ setMessages((prev) => [...prev, { role: "assistant", content: "" }]);++ let retryFull = "";+ const retryUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(+ retryMessages,+ (chunk) => {+ retryFull = chunk;+ retryUpdater.push(chunk);+ },+ chatModel,+ controller.signal,+ );+ retryUpdater.flush();++ fullResponse = retryFull;+ flowRetryMessagesBase = retryMessages;+ const processed = await handleAssistantResponse(fullResponse);+ flowPatchFound = processed.flowPatchFound;+ flowRetryError = processed.flowRetryError;+ }+ }+ } catch (error) {+ if ((error as any)?.name === "AbortError" || (error as any)?.name === "APIUserAbortError") {+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant') {+ const next = last.content ? `${last.content}\n\n(Aborted)` : "(Aborted)";+ return [...prev.slice(0, -1), { role: 'assistant', content: next }];+ }+ return [...prev, { role: 'assistant', content: "(Aborted)" }];+ });+ return;+ }++ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant' && !last.content) {+ return [...prev.slice(0, -1), { role: 'assistant', content: "Sorry, an error occurred. Please check API key settings." }];+ }+ return [...prev, { role: 'assistant', content: "Sorry, an error occurred. Please check API key settings." }];+ });+ } finally {+ setIsLoading(false);+ abortControllerRef.current = null;+ }+ };++ const handleRegenerate = async (messageIndex: number) => {+ if (messageIndex < 0 || messageIndex >= messages.length) return;+ if (messages[messageIndex].role !== 'assistant') return;+ const base = messages.slice(0, messageIndex);+ if (base.length === 0) return;+ const last = base[base.length - 1];+ if (last.role !== 'user') return;+ flowAutoRetryCountRef.current = 0;+ await runTextChat(base);+ };++ const handleEditAndResend = async (messageIndex: number, newText: string) => {+ if (messageIndex < 0 || messageIndex >= messages.length) return;+ if (messages[messageIndex].role !== 'user') return;++ const original = messages[messageIndex].content || "";+ const lines = original.split(/\r?\n/);+ const prefixTags: string[] = [];+ let i = 0;+ for (; i < lines.length; i += 1) {+ const line = lines[i];+ if (/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/.test(line) || /^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/.test(line)) {+ prefixTags.push(line);+ continue;+ }+ break;+ }+ const rest = lines.slice(i).join("\n");+ const marker = rest.match(/\n\n\[(PDF|File|Context)\b/);+ const preserved = marker && typeof marker.index === "number" ? rest.slice(marker.index) : "";+ const prefix = prefixTags.length > 0 ? `${prefixTags.join("\n")}\n\n` : "";+ const updatedUser: ChatMessage = { role: 'user', content: `${prefix}${newText}${preserved}` };+ const base = [...messages.slice(0, messageIndex), updatedUser];+ setInput("");+ setFiles([]);+ flowAutoRetryCountRef.current = 0;+ await runTextChat(base);+ };++ const uiMessages: UIMessage[] = messages.map((msg, idx) => ({+ id: `msg-${idx}`,+ role: msg.role as any,+ content: msg.content,+ parts: [{ type: 'text', text: msg.content }]+ }));++ if (collapsed) {+ return (+ <div className={cn("h-full flex flex-col items-center pt-4 bg-card border border-border/30 rounded-xl", className)}>+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.expand")}+ variant="ghost"+ size="icon"+ onClick={onToggleCollapse}+ className="hover:bg-accent transition-colors"+ >+ <PanelRightOpen className="h-5 w-5 text-muted-foreground" />+ </ButtonWithTooltip>+ </div>+ );+ }++ return (+ <div className={cn("h-full flex flex-col bg-card shadow-soft animate-slide-in-right rounded-xl border border-border/30 relative", className)}>+ {/* Header */}+ <div className="px-5 py-4 border-b border-border/50">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <span className="text-base font-semibold tracking-tight whitespace-nowrap">{title}</span>+ </div>+ <div className="flex items-center gap-1">+ {onToggleCollapse && (+ <ButtonWithTooltip+ tooltipContent={collapseLocked ? t(uiLang, "chat.collapseLocked") : t(uiLang, "chat.collapse")}+ variant="ghost"+ size="icon"+ onClick={onToggleCollapse}+ disabled={collapseLocked}+ className="hover:bg-accent transition-colors rounded-md"+ >+ <PanelRightClose className="w-4 h-4 text-muted-foreground" />+ </ButtonWithTooltip>+ )}+ </div>+ </div>+ </div>++ {/* Messages */}+ <div className="flex-1 w-full overflow-hidden">+ <ChatMessageDisplay+ messages={uiMessages}+ setInput={setInput}+ status={isLoading ? "streaming" : "idle"}+ onDisplayChart={(xml) => onCodeAction?.(xml, 'flow')}+ onRegenerate={handleRegenerate}+ onEditMessage={handleEditAndResend}+ />+ </div>++ {/* Input */}+ <div className="p-4 border-t border-border/50 bg-card/50">+ <ChatInput+ input={input}+ setInput={setInput}+ onSubmit={handleSend}+ isLoading={isLoading}+ onStop={handleStop}+ onClearChat={() => setShowResetWarning(true)}+ onToggleHistory={!hideHistoryButton ? () => setShowHistory(true) : undefined}+ historyDisabled={history.length === 0}+ onFilesChange={setFiles}+ files={files}+ uploadMode={workspaceId === "ppt" ? "imagesOnly" : workspaceId === "cad" ? "filesOnly" : "all"}+ placeholder={inputPlaceholder}+ focusKey={workspaceId === "ppt" ? pptInputFocusTick : undefined}+ clearKey={workspaceId === "ppt" ? pptClearTick : undefined}+ richSegments={workspaceId === "ppt" ? pptInputSegments : undefined}+ onRichSegmentsChange={workspaceId === "ppt" ? setPptInputSegments : undefined}+ insertPptToken={workspaceId === "ppt" ? pptInsertToken : null}+ onInsertPptTokenHandled={workspaceId === "ppt" ? () => {+ pptInsertBusyRef.current = false;+ setPptInsertToken(null);+ pumpPptInsertQueue();+ } : undefined}+ bottomChips={+ attachments.length > 0+ ? (+ <div className="space-y-2">+ {attachments.length > 0 && (+ <div className="overflow-x-auto">+ <div className="flex flex-nowrap items-center gap-2">+ {attachments.map((a) => (+ <div+ key={a.id}+ className="flex items-center gap-2 rounded-full border border-border bg-muted/40 px-3 py-1 text-xs text-muted-foreground shrink-0"+ title={a.name}+ >+ <span className="max-w-[240px] truncate">{a.name}</span>+ {onRemoveAttachment && (+ <button+ type="button"+ onClick={() => onRemoveAttachment(a.id)}+ className="text-muted-foreground/80 hover:text-foreground transition-colors"+ title="Remove attachment"+ aria-label="Remove attachment"+ >+ 脳+ </button>+ )}+ </div>+ ))}+ </div>+ </div>+ )}+ </div>+ )+ : null+ }+ />+ </div>++ {/* Dialogs */}+ <HistoryDialog+ showHistory={showHistory}+ onToggleHistory={setShowHistory}+ history={history}+ onRestore={(item) => onRestore && onRestore(item)}+ onClear={() => {+ onClearVersionHistory?.();+ }}+ />+ <ResetWarningModal+ open={showResetWarning}+ onOpenChange={setShowResetWarning}+ onClear={clearHistory}+ />+ </div>+ );+}diff --git a/src/workspaces/cad/chat/components/button-with-tooltip.tsx b/src/workspaces/cad/chat/components/button-with-tooltip.tsxnew file mode 100644index 0000000..00d58ec--- /dev/null+++ b/src/workspaces/cad/chat/components/button-with-tooltip.tsx@@ -0,0 +1,36 @@+import type { VariantProps } from "class-variance-authority"+import type React from "react"+import { Button, type buttonVariants } from "@/workspaces/cad/ui/button"+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/workspaces/cad/ui/tooltip"++interface ButtonWithTooltipProps+ extends React.ComponentProps<"button">,+ VariantProps<typeof buttonVariants> {+ tooltipContent: string+ children: React.ReactNode+ asChild?: boolean+}++export function ButtonWithTooltip({+ tooltipContent,+ children,+ ...buttonProps+}: ButtonWithTooltipProps) {+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button {...buttonProps}>{children}</Button>+ </TooltipTrigger>+ <TooltipContent className="max-w-xs text-wrap">+ {tooltipContent}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ )+}diff --git a/src/workspaces/cad/chat/components/code-block.tsx b/src/workspaces/cad/chat/components/code-block.tsxnew file mode 100644index 0000000..9eab18f--- /dev/null+++ b/src/workspaces/cad/chat/components/code-block.tsx@@ -0,0 +1,131 @@+import React, { useMemo, useRef, useState } from 'react';+import { Highlight, themes, type Language } from "prism-react-renderer";+import { ChevronRight, Loader2 } from 'lucide-react';+import { cn } from '@/lib/utils';++interface CodeBlockProps {+ code: string;+ language?: string;+ isStreaming?: boolean;+ blockId?: string;+}++const openStateById = new Map<string, boolean>();++export function CodeBlock({ code, language = "xml", isStreaming = false, blockId }: CodeBlockProps) {+ const [isOpen, setIsOpen] = useState(() => {+ if (blockId && openStateById.has(blockId)) return Boolean(openStateById.get(blockId));+ return false;+ });+ const preRef = useRef<HTMLPreElement | null>(null);+ const normalizedLanguage = useMemo(() => (language || "text").toLowerCase(), [language]);+ const normalizedCode = useMemo(() => String(code ?? ""), [code]);+ const prismLanguage = useMemo<Language>(() => {+ const lang = normalizedLanguage;+ if (lang === "svg") return "xml";+ if (lang === "yml") return "yaml";+ if (lang === "shell" || lang === "sh" || lang === "zsh") return "bash";+ if (lang === "ts") return "typescript";+ if (lang === "tsx") return "tsx";+ if (lang === "js") return "javascript";+ if (lang === "md") return "markdown";+ const allowed = new Set([+ "text",+ "xml",+ "json",+ "javascript",+ "typescript",+ "tsx",+ "jsx",+ "python",+ "bash",+ "yaml",+ "markdown",+ "css",+ "html",+ ]);+ if (allowed.has(lang)) return lang as Language;+ return "text";+ }, [normalizedLanguage]);++ const setOpen = (open: boolean) => {+ setIsOpen(open);+ if (blockId) openStateById.set(blockId, open);+ };++ return (+ <div className="w-full my-2 border border-border/50 rounded-lg bg-zinc-50 dark:bg-zinc-900/40 overflow-hidden shadow-sm">+ <button+ type="button"+ onClick={() => setOpen(!isOpen)}+ className="flex items-center gap-2 w-full p-2.5 cursor-pointer hover:bg-zinc-100 dark:hover:bg-zinc-800/40 transition-colors text-xs font-medium text-zinc-600 dark:text-zinc-300 select-none bg-zinc-100/70 dark:bg-zinc-900/60"+ >+ <ChevronRight className={cn("w-4 h-4 transition-transform duration-200 text-zinc-600 dark:text-zinc-300", isOpen && "rotate-90")} />++ <span className="uppercase font-semibold tracking-wider text-zinc-700 dark:text-zinc-200">{normalizedLanguage}</span>++ {isStreaming ? (+ <div className="flex items-center gap-2 ml-auto">+ <span className="text-[10px] text-blue-600 animate-pulse">Generating code...</span>+ <Loader2 className="w-3.5 h-3.5 animate-spin text-blue-600" />+ </div>+ ) : (+ <span className="ml-auto text-[10px] opacity-70 font-mono">{normalizedCode.length} chars</span>+ )}+ </button>++ {isOpen && (+ <div className="p-0 border-t border-border/50">+ <div className="overflow-hidden w-full bg-zinc-50 dark:bg-zinc-900/40">+ <Highlight theme={themes.github} code={normalizedCode} language={prismLanguage}>+ {({+ style,+ tokens,+ getLineProps,+ getTokenProps,+ }) => (+ <pre+ ref={preRef}+ className="text-[11px] leading-relaxed overflow-x-hidden overflow-y-auto overscroll-contain max-h-[500px] scrollbar-thin p-3 whitespace-pre-wrap break-words"+ style={{+ ...style,+ fontFamily: "var(--font-mono), ui-monospace, monospace",+ backgroundColor: "transparent",+ margin: 0,+ }}+ onWheelCapture={(e) => {+ const el = preRef.current;+ if (!el) return;+ const atTop = el.scrollTop <= 0;+ const atBottom = el.scrollTop + el.clientHeight >= el.scrollHeight - 1;+ const dy = e.deltaY;+ if (dy > 0 && !atBottom) e.stopPropagation();+ if (dy < 0 && !atTop) e.stopPropagation();+ }}+ >+ {tokens.map((line, i) => {+ const lineProps = getLineProps({ line });+ return (+ <div+ key={i}+ {...lineProps}+ className={cn("grid grid-cols-[3.25rem_1fr] gap-0", lineProps?.className)}+ >+ <span className="select-none text-zinc-400 text-right pr-4">{i + 1}</span>+ <span className="min-w-0 whitespace-pre-wrap break-words">+ {line.map((token, key) => (+ <span key={key} {...getTokenProps({ token })} />+ ))}+ </span>+ </div>+ );+ })}+ </pre>+ )}+ </Highlight>+ </div>+ </div>+ )}+ </div>+ );+}diff --git a/src/workspaces/cad/chat/components/reasoning.tsx b/src/workspaces/cad/chat/components/reasoning.tsxnew file mode 100644index 0000000..2178400--- /dev/null+++ b/src/workspaces/cad/chat/components/reasoning.tsx@@ -0,0 +1,181 @@+import { useControllableState } from "@radix-ui/react-use-controllable-state"+import { BrainIcon, ChevronDownIcon } from "lucide-react"+import type { ComponentProps, ReactNode } from "react"+import { createContext, memo, useContext, useEffect, useState } from "react"+import {+ Collapsible,+ CollapsibleContent,+ CollapsibleTrigger,+} from "@/workspaces/cad/ui/collapsible"+import { cn } from "@/lib/utils"+import { Shimmer } from "./shimmer"++type ReasoningContextValue = {+ isStreaming: boolean+ isOpen: boolean+ setIsOpen: (open: boolean) => void+ duration: number | undefined+}++const ReasoningContext = createContext<ReasoningContextValue | null>(null)++export const useReasoning = () => {+ const context = useContext(ReasoningContext)+ if (!context) {+ throw new Error("Reasoning components must be used within Reasoning")+ }+ return context+}++export type ReasoningProps = ComponentProps<typeof Collapsible> & {+ isStreaming?: boolean+ open?: boolean+ defaultOpen?: boolean+ onOpenChange?: (open: boolean) => void+ duration?: number+}++const AUTO_CLOSE_DELAY = 1000+const MS_IN_S = 1000++export const Reasoning = memo(+ ({+ className,+ isStreaming = false,+ open,+ defaultOpen = true,+ onOpenChange,+ duration: durationProp,+ children,+ ...props+ }: ReasoningProps) => {+ const [isOpen, setIsOpen] = useControllableState({+ prop: open,+ defaultProp: defaultOpen,+ onChange: onOpenChange,+ })+ const [duration, setDuration] = useControllableState({+ prop: durationProp,+ defaultProp: undefined,+ })++ const [hasAutoClosed, setHasAutoClosed] = useState(false)+ const [startTime, setStartTime] = useState<number | null>(null)++ useEffect(() => {+ if (isStreaming) {+ if (startTime === null) {+ setStartTime(Date.now())+ }+ } else if (startTime !== null) {+ setDuration(Math.ceil((Date.now() - startTime) / MS_IN_S))+ setStartTime(null)+ }+ }, [isStreaming, startTime, setDuration])++ useEffect(() => {+ if (defaultOpen && !isStreaming && isOpen && !hasAutoClosed) {+ const timer = setTimeout(() => {+ setIsOpen(false)+ setHasAutoClosed(true)+ }, AUTO_CLOSE_DELAY)++ return () => clearTimeout(timer)+ }+ }, [isStreaming, isOpen, defaultOpen, setIsOpen, hasAutoClosed])++ const handleOpenChange = (newOpen: boolean) => {+ setIsOpen(newOpen)+ }++ return (+ <ReasoningContext.Provider+ value={{ isStreaming, isOpen, setIsOpen, duration }}+ >+ <Collapsible+ className={cn("not-prose mb-4", className)}+ onOpenChange={handleOpenChange}+ open={isOpen}+ {...props}+ >+ {children}+ </Collapsible>+ </ReasoningContext.Provider>+ )+ },+)++export type ReasoningTriggerProps = ComponentProps<+ typeof CollapsibleTrigger+> & {+ getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode+}++const defaultGetThinkingMessage = (isStreaming: boolean, duration?: number) => {+ if (isStreaming || duration === 0) {+ return <Shimmer duration={1}>Thinking...</Shimmer>+ }+ if (duration === undefined) {+ return <p>Thought for a few seconds</p>+ }+ return <p>Thought for {duration} seconds</p>+}++export const ReasoningTrigger = memo(+ ({+ className,+ children,+ getThinkingMessage = defaultGetThinkingMessage,+ ...props+ }: ReasoningTriggerProps) => {+ const { isStreaming, isOpen, duration } = useReasoning()++ return (+ <CollapsibleTrigger+ className={cn(+ "flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",+ className,+ )}+ {...props}+ >+ {children ?? (+ <>+ <BrainIcon className="size-4" />+ {getThinkingMessage(isStreaming, duration)}+ <ChevronDownIcon+ className={cn(+ "size-4 transition-transform",+ isOpen ? "rotate-180" : "rotate-0",+ )}+ />+ </>+ )}+ </CollapsibleTrigger>+ )+ },+)++export type ReasoningContentProps = ComponentProps<+ typeof CollapsibleContent+> & {+ children: string+}++export const ReasoningContent = memo(+ ({ className, children, ...props }: ReasoningContentProps) => (+ <CollapsibleContent+ className={cn(+ "mt-4 text-sm",+ "data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ >+ <div className="whitespace-pre-wrap">{children}</div>+ </CollapsibleContent>+ ),+)++Reasoning.displayName = "Reasoning"+ReasoningTrigger.displayName = "ReasoningTrigger"+ReasoningContent.displayName = "ReasoningContent"diff --git a/src/workspaces/cad/chat/components/scroll-area.tsx b/src/workspaces/cad/chat/components/scroll-area.tsxnew file mode 100644index 0000000..677c344--- /dev/null+++ b/src/workspaces/cad/chat/components/scroll-area.tsx@@ -0,0 +1,58 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/lib/utils"++function ScrollArea({+ className,+ children,+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {+ return (+ <ScrollAreaPrimitive.Root+ data-slot="scroll-area"+ className={cn("relative", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport+ data-slot="scroll-area-viewport"+ className="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden"+ >+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+ )+}++function ScrollBar({+ className,+ orientation = "vertical",+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {+ return (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ data-slot="scroll-area-scrollbar"+ orientation={orientation}+ className={cn(+ "flex touch-none p-px transition-colors select-none",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb+ data-slot="scroll-area-thumb"+ className="bg-border relative flex-1 rounded-full"+ />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+ )+}++export { ScrollArea, ScrollBar }diff --git a/src/workspaces/cad/chat/components/shimmer.tsx b/src/workspaces/cad/chat/components/shimmer.tsxnew file mode 100644index 0000000..e285cd7--- /dev/null+++ b/src/workspaces/cad/chat/components/shimmer.tsx@@ -0,0 +1,62 @@+import { motion } from "framer-motion"+import {+ type CSSProperties,+ type ElementType,+ type JSX,+ memo,+ useMemo,+} from "react"+import { cn } from "@/lib/utils"++export type TextShimmerProps = {+ children: string+ as?: ElementType+ className?: string+ duration?: number+ spread?: number+}++const ShimmerComponent = ({+ children,+ as: Component = "p",+ className,+ duration = 2,+ spread = 2,+}: TextShimmerProps) => {+ const MotionComponent = motion.create(+ Component as keyof JSX.IntrinsicElements,+ )++ const dynamicSpread = useMemo(+ () => (children?.length ?? 0) * spread,+ [children, spread],+ )++ return (+ <MotionComponent+ animate={{ backgroundPosition: "0% center" }}+ className={cn(+ "relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent",+ "[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",+ className,+ )}+ initial={{ backgroundPosition: "100% center" }}+ style={+ {+ "--spread": `${dynamicSpread}px`,+ backgroundImage:+ "var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))",+ } as CSSProperties+ }+ transition={{+ repeat: Number.POSITIVE_INFINITY,+ duration,+ ease: "linear",+ }}+ >+ {children}+ </MotionComponent>+ )+}++export const Shimmer = memo(ShimmerComponent)diff --git a/src/workspaces/cad/chat/file-preview-list.tsx b/src/workspaces/cad/chat/file-preview-list.tsxnew file mode 100644index 0000000..01d625e--- /dev/null+++ b/src/workspaces/cad/chat/file-preview-list.tsx@@ -0,0 +1,179 @@+"use client"++import { FileCode, FileText, Loader2, X } from "lucide-react"+import { useEffect, useRef, useState } from "react"+import { isPdfFile, isTextFile } from "@/lib/pdf-utils"+import { type FileData } from "@/lib/use-file-processor"++function formatCharCount(count: number): string {+ if (count >= 1000) {+ return `${(count / 1000).toFixed(1)}k`+ }+ return String(count)+}++interface FilePreviewListProps {+ files: File[]+ onRemoveFile: (fileToRemove: File) => void+ pdfData?: Map<File, FileData>+}++export function FilePreviewList({+ files,+ onRemoveFile,+ pdfData = new Map(),+}: FilePreviewListProps) {+ const [selectedImage, setSelectedImage] = useState<string | null>(null)+ const [imageUrls, setImageUrls] = useState<Map<File, string>>(new Map())+ const imageUrlsRef = useRef<Map<File, string>>(new Map())++ // Create and cleanup object URLs when files change+ useEffect(() => {+ const currentUrls = imageUrlsRef.current+ const newUrls = new Map<File, string>()++ files.forEach((file) => {+ if (file.type.startsWith("image/")) {+ // Reuse existing URL if file is already tracked+ const existingUrl = currentUrls.get(file)+ if (existingUrl) {+ newUrls.set(file, existingUrl)+ } else {+ newUrls.set(file, URL.createObjectURL(file))+ }+ }+ })++ // Revoke URLs for files that are no longer in the list+ currentUrls.forEach((url, file) => {+ if (!newUrls.has(file)) {+ URL.revokeObjectURL(url)+ }+ })++ imageUrlsRef.current = newUrls+ setImageUrls(newUrls)+ }, [files])++ // Cleanup all URLs on unmount only+ useEffect(() => {+ return () => {+ imageUrlsRef.current.forEach((url) => {+ URL.revokeObjectURL(url)+ })+ // Clear the ref so StrictMode remount creates fresh URLs+ imageUrlsRef.current = new Map()+ }+ }, [])++ // Clear selected image if its URL was revoked+ useEffect(() => {+ if (+ selectedImage &&+ !Array.from(imageUrls.values()).includes(selectedImage)+ ) {+ setSelectedImage(null)+ }+ }, [imageUrls, selectedImage])++ if (files.length === 0) return null++ return (+ <>+ <div className="flex flex-wrap gap-2 mt-2 p-2 bg-muted/50 rounded-md">+ {files.map((file, index) => {+ const imageUrl = imageUrls.get(file) || null+ const pdfInfo = pdfData.get(file)+ const isImage = file.type.startsWith("image/")+ const isPdf = isPdfFile(file)+ const isText = isTextFile(file)+ const secondary = pdfInfo?.isExtracting+ ? "Reading..."+ : pdfInfo?.charCount+ ? `${formatCharCount(pdfInfo.charCount)} chars`+ : isPdf+ ? "PDF"+ : isText+ ? "Text"+ : ""+ return (+ <div key={file.name + index} className="group">+ <div+ className="flex items-center gap-2.5 w-[260px] max-w-full border rounded-lg overflow-hidden bg-background/70 px-3 py-2"+ >+ <div+ className={`h-11 w-11 rounded-md overflow-hidden bg-muted flex items-center justify-center ${+ isImage && imageUrl ? "cursor-pointer" : ""+ }`}+ onClick={() => {+ if (isImage && imageUrl) setSelectedImage(imageUrl)+ }}+ >+ {isImage && imageUrl ? (+ <img+ src={imageUrl}+ alt={file.name}+ className="object-cover w-full h-full"+ />+ ) : (+ <>+ {pdfInfo?.isExtracting ? (+ <Loader2 className="h-5 w-5 text-blue-500 animate-spin" />+ ) : isPdf ? (+ <FileText className="h-5 w-5 text-red-500" />+ ) : (+ <FileCode className="h-5 w-5 text-blue-500" />+ )}+ </>+ )}+ </div>++ <div className="min-w-0 flex-1">+ <div className="text-xs font-medium truncate">{file.name}</div>+ {secondary ? (+ <div className="text-[10px] text-muted-foreground truncate">+ {secondary}+ </div>+ ) : null}+ </div>++ <button+ type="button"+ onClick={() => onRemoveFile(file)}+ className="shrink-0 rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"+ aria-label="Remove file"+ >+ <X className="h-4 w-4" />+ </button>+ </div>+ </div>+ )+ })}+ </div>++ {/* Image Modal/Lightbox */}+ {selectedImage && (+ <div+ className="fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4"+ onClick={() => setSelectedImage(null)}+ >+ <button+ className="absolute top-4 right-4 z-10 bg-white rounded-full p-2 hover:bg-gray-200 transition-colors"+ onClick={() => setSelectedImage(null)}+ aria-label="Close"+ >+ <X className="h-6 w-6" />+ </button>+ <div className="relative w-auto h-auto max-w-[90vw] max-h-[90vh]">+ <img+ src={selectedImage}+ alt="Full size preview of uploaded diagram or image"+ className="object-contain max-w-full max-h-[90vh] w-auto h-auto"+ onClick={(e) => e.stopPropagation()}+ />+ </div>+ </div>+ )}+ </>+ )+}diff --git a/src/workspaces/cad/chat/global-constraints-dialog.tsx b/src/workspaces/cad/chat/global-constraints-dialog.tsxnew file mode 100644index 0000000..7ac0fb8--- /dev/null+++ b/src/workspaces/cad/chat/global-constraints-dialog.tsx@@ -0,0 +1,83 @@+import { useEffect, useState } from "react"+import { Button } from "@/workspaces/cad/ui/button"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/cad/ui/dialog"+import { Textarea } from "@/workspaces/cad/ui/textarea"+import { useUiLanguage } from "@/lib/use-ui-language";+import { t } from "@/lib/i18n";++export const STORAGE_GLOBAL_CONSTRAINTS_KEY = "unified-ai-workspace-global-constraints"++interface GlobalConstraintsDialogProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ workspaceId?: string // Optional workspace ID to scope constraints+}++export function GlobalConstraintsDialog({+ open,+ onOpenChange,+ workspaceId+}: GlobalConstraintsDialogProps) {+ const [constraints, setConstraints] = useState("")+ const uiLang = useUiLanguage();++ // Determine the actual storage key+ const storageKey = workspaceId+ ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}`+ : STORAGE_GLOBAL_CONSTRAINTS_KEY;++ useEffect(() => {+ if (open) {+ const saved = localStorage.getItem(storageKey) || ""+ setConstraints(saved)+ }+ }, [open, storageKey])++ const handleSave = () => {+ localStorage.setItem(storageKey, constraints)+ onOpenChange(false)+ }++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="sm:max-w-[500px]">+ <DialogHeader>+ <DialogTitle>+ {t(uiLang, "constraints.title")} (+ {workspaceId === 'flow'+ ? (uiLang === "zh" ? '流程图' : 'Flow')+ : workspaceId === 'cad'+ ? (uiLang === "zh" ? 'CAD设计' : 'CAD')+ : workspaceId === 'ppt'+ ? (uiLang === "zh" ? 'PPT演示' : 'PPT')+ : (uiLang === "zh" ? '通用' : 'General')}+ )+ </DialogTitle>+ <DialogDescription>+ {t(uiLang, "constraints.desc")}+ </DialogDescription>+ </DialogHeader>+ <div className="grid gap-4 py-4">+ <Textarea+ value={constraints}+ onChange={(e) => setConstraints(e.target.value)}+ placeholder={t(uiLang, "constraints.placeholder")}+ className="min-h-[200px]"+ />+ </div>+ <DialogFooter>+ <Button onClick={handleSave}>+ {t(uiLang, "common.save")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/cad/chat/history-dialog.tsx b/src/workspaces/cad/chat/history-dialog.tsxnew file mode 100644index 0000000..c833cc9--- /dev/null+++ b/src/workspaces/cad/chat/history-dialog.tsx@@ -0,0 +1,112 @@+import React from 'react';+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/cad/ui/dialog"+import { Button } from '@/workspaces/cad/ui/button';+import { Clock, RotateCcw, FileCode, Trash2 } from 'lucide-react';+import { ScrollArea } from '@/workspaces/cad/ui/scroll-area';+import { useUiLanguage } from "@/lib/use-ui-language";+import { t } from "@/lib/i18n";++export interface HistoryItem {+ id: string;+ timestamp: number;+ content: string; // XML or code+ type: 'xml' | 'python' | 'json' | 'svg';+ summary?: string;+}++interface HistoryDialogProps {+ showHistory: boolean;+ onToggleHistory: (show: boolean) => void;+ history: HistoryItem[];+ onRestore: (item: HistoryItem) => void;+ onClear?: () => void;+}++export function HistoryDialog({+ showHistory,+ onToggleHistory,+ history,+ onRestore,+ onClear,+}: HistoryDialogProps) {+ const uiLang = useUiLanguage();+ const formatDate = (ts: number) => {+ return new Date(ts).toLocaleString();+ };++ return (+ <Dialog open={showHistory} onOpenChange={onToggleHistory}>+ <DialogContent className="max-w-md max-h-[80vh] flex flex-col">+ <DialogHeader>+ <div className="flex items-center justify-between gap-3">+ <DialogTitle className="flex items-center gap-2">+ <Clock className="w-5 h-5 text-muted-foreground" />+ {t(uiLang, "history.title")}+ </DialogTitle>+ {history.length > 0 && onClear && (+ <Button+ size="sm"+ variant="ghost"+ onClick={onClear}+ className="gap-1 text-xs"+ >+ <Trash2 className="w-3.5 h-3.5" />+ {t(uiLang, "history.clear")}+ </Button>+ )}+ </div>+ </DialogHeader>++ <div className="flex-1 overflow-hidden mt-2">+ {history.length === 0 ? (+ <div className="text-center p-8 text-muted-foreground text-sm flex flex-col items-center gap-2">+ <Clock className="w-8 h-8 opacity-20" />+ <p>{t(uiLang, "history.empty")}</p>+ </div>+ ) : (+ <ScrollArea className="h-[400px] pr-4">+ <div className="space-y-3">+ {[...history].reverse().map((item, index) => (+ <div key={item.id} className="p-3 rounded-lg border border-border/50 bg-muted/20 hover:bg-muted/40 transition-colors flex items-center justify-between group">+ <div className="flex flex-col gap-1 overflow-hidden">+ <div className="flex items-center gap-2 text-sm font-medium">+ <span className="w-6 h-6 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-600 flex items-center justify-center text-xs">+ {history.length - index}+ </span>+ <span>{formatDate(item.timestamp)}</span>+ </div>+ <div className="text-xs text-muted-foreground truncate pl-8 flex items-center gap-1">+ <FileCode className="w-3 h-3" />+ <span>{item.type.toUpperCase()}</span>+ <span>•</span>+ <span>{t(uiLang, "history.chars", { n: item.content.length })}</span>+ </div>+ </div>++ <Button+ size="sm"+ variant="ghost"+ onClick={() => {+ onRestore(item);+ onToggleHistory(false);+ }}+ className="opacity-0 group-hover:opacity-100 transition-opacity gap-1 text-xs"+ >+ <RotateCcw className="w-3 h-3" />+ {t(uiLang, "history.restore")}+ </Button>+ </div>+ ))}+ </div>+ </ScrollArea>+ )}+ </div>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/cad/chat/reset-warning-modal.tsx b/src/workspaces/cad/chat/reset-warning-modal.tsxnew file mode 100644index 0000000..bf72f50--- /dev/null+++ b/src/workspaces/cad/chat/reset-warning-modal.tsx@@ -0,0 +1,46 @@+import React from 'react';+import { Button } from "@/workspaces/cad/ui/button"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/cad/ui/dialog"+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";++interface ResetWarningModalProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ onClear: () => void+}++export function ResetWarningModal({+ open,+ onOpenChange,+ onClear,+}: ResetWarningModalProps) {+ const uiLang = useUiLanguage();+ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t(uiLang, "reset.title")}</DialogTitle>+ <DialogDescription>+ {t(uiLang, "reset.desc")}+ </DialogDescription>+ </DialogHeader>+ <DialogFooter>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t(uiLang, "common.cancel")}+ </Button>+ <Button variant="destructive" onClick={onClear}>+ {t(uiLang, "common.clear")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/cad/ui/button.tsx b/src/workspaces/cad/ui/button.tsxnew file mode 100644index 0000000..7313f95--- /dev/null+++ b/src/workspaces/cad/ui/button.tsx@@ -0,0 +1,59 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ {+ variants: {+ variant: {+ default:+ "bg-primary text-primary-foreground shadow-xs hover:brightness-75",+ destructive:+ "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",+ secondary:+ "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",+ ghost:+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++function Button({+ className,+ variant,+ size,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean+ }) {+ const Comp = asChild ? Slot : "button"++ return (+ <Comp+ data-slot="button"+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Button, buttonVariants }diff --git a/src/workspaces/cad/ui/code-block.tsx b/src/workspaces/cad/ui/code-block.tsxnew file mode 100644index 0000000..9eab18f--- /dev/null+++ b/src/workspaces/cad/ui/code-block.tsx@@ -0,0 +1,131 @@+import React, { useMemo, useRef, useState } from 'react';+import { Highlight, themes, type Language } from "prism-react-renderer";+import { ChevronRight, Loader2 } from 'lucide-react';+import { cn } from '@/lib/utils';++interface CodeBlockProps {+ code: string;+ language?: string;+ isStreaming?: boolean;+ blockId?: string;+}++const openStateById = new Map<string, boolean>();++export function CodeBlock({ code, language = "xml", isStreaming = false, blockId }: CodeBlockProps) {+ const [isOpen, setIsOpen] = useState(() => {+ if (blockId && openStateById.has(blockId)) return Boolean(openStateById.get(blockId));+ return false;+ });+ const preRef = useRef<HTMLPreElement | null>(null);+ const normalizedLanguage = useMemo(() => (language || "text").toLowerCase(), [language]);+ const normalizedCode = useMemo(() => String(code ?? ""), [code]);+ const prismLanguage = useMemo<Language>(() => {+ const lang = normalizedLanguage;+ if (lang === "svg") return "xml";+ if (lang === "yml") return "yaml";+ if (lang === "shell" || lang === "sh" || lang === "zsh") return "bash";+ if (lang === "ts") return "typescript";+ if (lang === "tsx") return "tsx";+ if (lang === "js") return "javascript";+ if (lang === "md") return "markdown";+ const allowed = new Set([+ "text",+ "xml",+ "json",+ "javascript",+ "typescript",+ "tsx",+ "jsx",+ "python",+ "bash",+ "yaml",+ "markdown",+ "css",+ "html",+ ]);+ if (allowed.has(lang)) return lang as Language;+ return "text";+ }, [normalizedLanguage]);++ const setOpen = (open: boolean) => {+ setIsOpen(open);+ if (blockId) openStateById.set(blockId, open);+ };++ return (+ <div className="w-full my-2 border border-border/50 rounded-lg bg-zinc-50 dark:bg-zinc-900/40 overflow-hidden shadow-sm">+ <button+ type="button"+ onClick={() => setOpen(!isOpen)}+ className="flex items-center gap-2 w-full p-2.5 cursor-pointer hover:bg-zinc-100 dark:hover:bg-zinc-800/40 transition-colors text-xs font-medium text-zinc-600 dark:text-zinc-300 select-none bg-zinc-100/70 dark:bg-zinc-900/60"+ >+ <ChevronRight className={cn("w-4 h-4 transition-transform duration-200 text-zinc-600 dark:text-zinc-300", isOpen && "rotate-90")} />++ <span className="uppercase font-semibold tracking-wider text-zinc-700 dark:text-zinc-200">{normalizedLanguage}</span>++ {isStreaming ? (+ <div className="flex items-center gap-2 ml-auto">+ <span className="text-[10px] text-blue-600 animate-pulse">Generating code...</span>+ <Loader2 className="w-3.5 h-3.5 animate-spin text-blue-600" />+ </div>+ ) : (+ <span className="ml-auto text-[10px] opacity-70 font-mono">{normalizedCode.length} chars</span>+ )}+ </button>++ {isOpen && (+ <div className="p-0 border-t border-border/50">+ <div className="overflow-hidden w-full bg-zinc-50 dark:bg-zinc-900/40">+ <Highlight theme={themes.github} code={normalizedCode} language={prismLanguage}>+ {({+ style,+ tokens,+ getLineProps,+ getTokenProps,+ }) => (+ <pre+ ref={preRef}+ className="text-[11px] leading-relaxed overflow-x-hidden overflow-y-auto overscroll-contain max-h-[500px] scrollbar-thin p-3 whitespace-pre-wrap break-words"+ style={{+ ...style,+ fontFamily: "var(--font-mono), ui-monospace, monospace",+ backgroundColor: "transparent",+ margin: 0,+ }}+ onWheelCapture={(e) => {+ const el = preRef.current;+ if (!el) return;+ const atTop = el.scrollTop <= 0;+ const atBottom = el.scrollTop + el.clientHeight >= el.scrollHeight - 1;+ const dy = e.deltaY;+ if (dy > 0 && !atBottom) e.stopPropagation();+ if (dy < 0 && !atTop) e.stopPropagation();+ }}+ >+ {tokens.map((line, i) => {+ const lineProps = getLineProps({ line });+ return (+ <div+ key={i}+ {...lineProps}+ className={cn("grid grid-cols-[3.25rem_1fr] gap-0", lineProps?.className)}+ >+ <span className="select-none text-zinc-400 text-right pr-4">{i + 1}</span>+ <span className="min-w-0 whitespace-pre-wrap break-words">+ {line.map((token, key) => (+ <span key={key} {...getTokenProps({ token })} />+ ))}+ </span>+ </div>+ );+ })}+ </pre>+ )}+ </Highlight>+ </div>+ </div>+ )}+ </div>+ );+}diff --git a/src/workspaces/cad/ui/collapsible.tsx b/src/workspaces/cad/ui/collapsible.tsxnew file mode 100644index 0000000..9fa4894--- /dev/null+++ b/src/workspaces/cad/ui/collapsible.tsx@@ -0,0 +1,11 @@+"use client"++import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"++const Collapsible = CollapsiblePrimitive.Root++const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger++const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent++export { Collapsible, CollapsibleTrigger, CollapsibleContent }diff --git a/src/workspaces/cad/ui/context-menu.tsx b/src/workspaces/cad/ui/context-menu.tsxnew file mode 100644index 0000000..3e52999--- /dev/null+++ b/src/workspaces/cad/ui/context-menu.tsx@@ -0,0 +1,198 @@+import * as React from "react"+import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"+import { Check, ChevronRight, Circle } from "lucide-react"++import { cn } from "@/lib/utils"++const ContextMenu = ContextMenuPrimitive.Root++const ContextMenuTrigger = ContextMenuPrimitive.Trigger++const ContextMenuGroup = ContextMenuPrimitive.Group++const ContextMenuPortal = ContextMenuPrimitive.Portal++const ContextMenuSub = ContextMenuPrimitive.Sub++const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup++const ContextMenuSubTrigger = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {+ inset?: boolean+ }+>(({ className, inset, children, ...props }, ref) => (+ <ContextMenuPrimitive.SubTrigger+ ref={ref}+ className={cn(+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",+ inset && "pl-8",+ className+ )}+ {...props}+ >+ {children}+ <ChevronRight className="ml-auto h-4 w-4" />+ </ContextMenuPrimitive.SubTrigger>+))+ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName++const ContextMenuSubContent = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.SubContent>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>+>(({ className, ...props }, ref) => (+ <ContextMenuPrimitive.SubContent+ ref={ref}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName++const ContextMenuContent = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>+>(({ className, ...props }, ref) => (+ <ContextMenuPrimitive.Portal>+ <ContextMenuPrimitive.Content+ ref={ref}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+ </ContextMenuPrimitive.Portal>+))+ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName++const ContextMenuItem = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <ContextMenuPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName++const ContextMenuCheckboxItem = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>+>(({ className, children, checked, ...props }, ref) => (+ <ContextMenuPrimitive.CheckboxItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <ContextMenuPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </ContextMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </ContextMenuPrimitive.CheckboxItem>+))+ContextMenuCheckboxItem.displayName =+ ContextMenuPrimitive.CheckboxItem.displayName++const ContextMenuRadioItem = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>+>(({ className, children, ...props }, ref) => (+ <ContextMenuPrimitive.RadioItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <ContextMenuPrimitive.ItemIndicator>+ <Circle className="h-2 w-2 fill-current" />+ </ContextMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </ContextMenuPrimitive.RadioItem>+))+ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName++const ContextMenuLabel = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <ContextMenuPrimitive.Label+ ref={ref}+ className={cn(+ "px-2 py-1.5 text-sm font-semibold text-foreground",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName++const ContextMenuSeparator = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <ContextMenuPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 my-1 h-px bg-border", className)}+ {...props}+ />+))+ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName++const ContextMenuShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn(+ "ml-auto text-xs tracking-widest text-muted-foreground",+ className+ )}+ {...props}+ />+ )+}+ContextMenuShortcut.displayName = "ContextMenuShortcut"++export {+ ContextMenu,+ ContextMenuTrigger,+ ContextMenuContent,+ ContextMenuItem,+ ContextMenuCheckboxItem,+ ContextMenuRadioItem,+ ContextMenuLabel,+ ContextMenuSeparator,+ ContextMenuShortcut,+ ContextMenuGroup,+ ContextMenuPortal,+ ContextMenuSub,+ ContextMenuSubContent,+ ContextMenuSubTrigger,+ ContextMenuRadioGroup,+}diff --git a/src/workspaces/cad/ui/dialog.tsx b/src/workspaces/cad/ui/dialog.tsxnew file mode 100644index 0000000..0245804--- /dev/null+++ b/src/workspaces/cad/ui/dialog.tsx@@ -0,0 +1,135 @@+"use client"++import * as React from "react"+import * as DialogPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className+ )}+ {...props}+ />+ )+}++function DialogContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content>) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",+ className+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+ )+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ )+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className+ )}+ {...props}+ />+ )+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("text-lg leading-none font-semibold", className)}+ {...props}+ />+ )+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+}diff --git a/src/workspaces/cad/ui/input.tsx b/src/workspaces/cad/ui/input.tsxnew file mode 100644index 0000000..9fe885f--- /dev/null+++ b/src/workspaces/cad/ui/input.tsx@@ -0,0 +1,21 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ className+ )}+ {...props}+ />+ )+}++export { Input }diff --git a/src/workspaces/cad/ui/label.tsx b/src/workspaces/cad/ui/label.tsxnew file mode 100644index 0000000..fb5fbc3--- /dev/null+++ b/src/workspaces/cad/ui/label.tsx@@ -0,0 +1,24 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"++import { cn } from "@/lib/utils"++function Label({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",+ className+ )}+ {...props}+ />+ )+}++export { Label }diff --git a/src/workspaces/cad/ui/resizable.tsx b/src/workspaces/cad/ui/resizable.tsxnew file mode 100644index 0000000..73c6e45--- /dev/null+++ b/src/workspaces/cad/ui/resizable.tsx@@ -0,0 +1,44 @@+import { GripVertical } from "lucide-react"+import { Panel, Group, Separator, type PanelImperativeHandle } from "react-resizable-panels"++import { cn } from "@/lib/utils"++const ResizablePanelGroup = ({+ className,+ ...props+}: React.ComponentProps<typeof Group>) => (+ <Group+ className={cn(+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",+ className+ )}+ {...props}+ />+)++const ResizablePanel = Panel++const ResizableHandle = ({+ withHandle,+ className,+ ...props+}: React.ComponentProps<typeof Separator> & {+ withHandle?: boolean+}) => (+ <Separator+ className={cn(+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",+ className+ )}+ {...props}+ >+ {withHandle && (+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">+ <GripVertical className="h-2.5 w-2.5" />+ </div>+ )}+ </Separator>+)++export { ResizablePanelGroup, ResizablePanel, ResizableHandle }+export type { PanelImperativeHandle }diff --git a/src/workspaces/cad/ui/scroll-area.tsx b/src/workspaces/cad/ui/scroll-area.tsxnew file mode 100644index 0000000..677c344--- /dev/null+++ b/src/workspaces/cad/ui/scroll-area.tsx@@ -0,0 +1,58 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/lib/utils"++function ScrollArea({+ className,+ children,+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {+ return (+ <ScrollAreaPrimitive.Root+ data-slot="scroll-area"+ className={cn("relative", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport+ data-slot="scroll-area-viewport"+ className="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden"+ >+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+ )+}++function ScrollBar({+ className,+ orientation = "vertical",+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {+ return (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ data-slot="scroll-area-scrollbar"+ orientation={orientation}+ className={cn(+ "flex touch-none p-px transition-colors select-none",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb+ data-slot="scroll-area-thumb"+ className="bg-border relative flex-1 rounded-full"+ />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+ )+}++export { ScrollArea, ScrollBar }diff --git a/src/workspaces/cad/ui/select.tsx b/src/workspaces/cad/ui/select.tsxnew file mode 100644index 0000000..16f25f9--- /dev/null+++ b/src/workspaces/cad/ui/select.tsx@@ -0,0 +1,187 @@+"use client"++import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Select({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />+}++function SelectGroup({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />+}++function SelectValue({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />+}++function SelectTrigger({+ className,+ size = "default",+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: "sm" | "default"+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ )+}++function SelectContent({+ className,+ children,+ position = "popper",+ align = "center",+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[var(--radix-select-content-available-height)] min-w-[8rem] origin-[var(--radix-select-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className+ )}+ position={position}+ align={align}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ )+}++function SelectLabel({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}+ {...props}+ />+ )+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className+ )}+ {...props}+ >+ <span className="absolute right-2 flex size-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ )+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}+ {...props}+ />+ )+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ )+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ )+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+}diff --git a/src/workspaces/cad/ui/textarea.tsx b/src/workspaces/cad/ui/textarea.tsxnew file mode 100644index 0000000..f2ab8f2--- /dev/null+++ b/src/workspaces/cad/ui/textarea.tsx@@ -0,0 +1,18 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {+ return (+ <textarea+ data-slot="textarea"+ className={cn(+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ className+ )}+ {...props}+ />+ )+}++export { Textarea }diff --git a/src/workspaces/cad/ui/tooltip.tsx b/src/workspaces/cad/ui/tooltip.tsxnew file mode 100644index 0000000..30fc44d--- /dev/null+++ b/src/workspaces/cad/ui/tooltip.tsx@@ -0,0 +1,30 @@+"use client"++import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"++import { cn } from "@/lib/utils"++const TooltipProvider = TooltipPrimitive.Provider++const Tooltip = TooltipPrimitive.Root++const TooltipTrigger = TooltipPrimitive.Trigger++const TooltipContent = React.forwardRef<+ React.ElementRef<typeof TooltipPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <TooltipPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+TooltipContent.displayName = TooltipPrimitive.Content.displayName++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/src/workspaces/cad/workspace/CadWorkspace.tsx b/src/workspaces/cad/workspace/CadWorkspace.tsxnew file mode 100644index 0000000..dc788d0--- /dev/null+++ b/src/workspaces/cad/workspace/CadWorkspace.tsx@@ -0,0 +1,464 @@+import React, { useState, useEffect } from 'react';+import { Loader2, MessageSquarePlus, Box, Image as ImageIcon, Table2, Download } from 'lucide-react';+import {+ ContextMenu,+ ContextMenuContent,+ ContextMenuItem,+ ContextMenuTrigger,+} from "@/workspaces/cad/ui/context-menu";+import { Button } from "@/workspaces/cad/ui/button";+import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/workspaces/cad/ui/dialog";+import { PDFDocument } from "pdf-lib";+import { useUiLanguage } from "@/lib/use-ui-language";++interface CadWorkspaceProps {+ onAddToChat?: (code: string) => void;+ svg2d?: string;+ plan?: any;+ images?: { title: string; url: string }[];+ imagesLoading?: boolean;+ bom?: { columns: string[]; rows: any[] } | null;+ focusPanel?: "2d" | "renders" | "bom" | null;+}++export function CadWorkspace({ onAddToChat, svg2d, plan, images = [], imagesLoading = false, bom, focusPanel }: CadWorkspaceProps) {+ const CAD_RENDERS_STORAGE_KEY = "unified-ai-workspace-cad-renders-v1";+ const [svgContent, setSvgContent] = useState<string | null>(null);+ const [viewMode, setViewMode] = useState<"2d" | "renders" | "bom">("2d");+ const [previewImage, setPreviewImage] = useState<{ title: string; url: string } | null>(null);+ const [isExporting, setIsExporting] = useState(false);+ const [localImages, setLocalImages] = useState<Array<{ title: string; url: string }>>(() => {+ if (typeof window === "undefined") return [];+ try {+ const raw = localStorage.getItem(CAD_RENDERS_STORAGE_KEY);+ const parsed = raw ? JSON.parse(raw) : [];+ if (!Array.isArray(parsed)) return [];+ return parsed+ .filter((x: any) => x && typeof x.url === "string" && !String(x.url).startsWith("blob:"))+ .map((x: any) => ({+ title: typeof x.title === "string" ? x.title : "",+ url: String(x.url),+ }));+ } catch {+ return [];+ }+ });+ const uiLang = useUiLanguage();++ useEffect(() => {+ if (typeof svg2d === "string") {+ setSvgContent(svg2d);+ return;+ }+ setSvgContent(null);+ }, [svg2d]);++ useEffect(() => {+ if (!Array.isArray(images) || images.length === 0) {+ setLocalImages([]);+ setPreviewImage(null);+ return;+ }+ let cancelled = false;++ const blobUrlToDataUrl = async (objectUrl: string) => {+ if (typeof window === "undefined") return "";+ if (!objectUrl || !objectUrl.startsWith("blob:")) return objectUrl;+ try {+ const resp = await fetch(objectUrl);+ const blob = await resp.blob();+ return await new Promise<string>((resolve) => {+ const reader = new FileReader();+ reader.onerror = () => resolve("");+ reader.onloadend = () => resolve(typeof reader.result === "string" ? reader.result : "");+ reader.readAsDataURL(blob);+ });+ } catch {+ return "";+ }+ };++ void (async () => {+ const mapped = await Promise.all(+ images.map(async (it) => {+ const rawUrl = typeof (it as any)?.url === "string" ? String((it as any).url) : "";+ if (!rawUrl) return null;+ const title = typeof (it as any)?.title === "string" ? String((it as any).title) : "";+ if (rawUrl.startsWith("blob:")) {+ const dataUrl = await blobUrlToDataUrl(rawUrl);+ if (!dataUrl) return null;+ return { title, url: dataUrl };+ }+ return { title, url: rawUrl };+ })+ );+ if (cancelled) return;+ const cleaned = mapped.filter(Boolean) as Array<{ title: string; url: string }>;+ setLocalImages(cleaned);+ })();++ return () => {+ cancelled = true;+ };+ }, [images]);++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ const stable = localImages.filter((x) => x && typeof x.url === "string" && !x.url.startsWith("blob:")).slice(0, 30);+ localStorage.setItem(CAD_RENDERS_STORAGE_KEY, JSON.stringify(stable));+ } catch {+ }+ }, [localImages]);++ useEffect(() => {+ if (!focusPanel) return;+ setViewMode(focusPanel);+ }, [focusPanel]);++ useEffect(() => {+ const emptyImages = !Array.isArray(images) || images.length === 0;+ const emptyBom = !bom || !Array.isArray(bom.columns) || bom.columns.length === 0;+ if (!plan && !svg2d && emptyImages && emptyBom && !focusPanel) {+ setViewMode("2d");+ }+ }, [plan, svg2d, images, bom, focusPanel]);++ const downloadBlob = (blob: Blob, filename: string) => {+ const link = document.createElement("a");+ const url = URL.createObjectURL(blob);+ link.href = url;+ link.download = filename;+ document.body.appendChild(link);+ link.click();+ link.remove();+ setTimeout(() => URL.revokeObjectURL(url), 5000);+ };++ const exportSvg = async () => {+ if (!svg2d || isExporting) return;+ setIsExporting(true);+ try {+ const blob = new Blob([svg2d], { type: "image/svg+xml;charset=utf-8" });+ downloadBlob(blob, `floorplan-${Date.now()}.svg`);+ } finally {+ setIsExporting(false);+ }+ };++ const svgToPngDataUrl = async (svg: string, targetWidth = 1600) => {+ const blob = new Blob([svg], { type: "image/svg+xml;charset=utf-8" });+ const url = URL.createObjectURL(blob);+ try {+ const img = new Image();+ const load = new Promise<void>((resolve, reject) => {+ img.onload = () => resolve();+ img.onerror = reject;+ });+ img.src = url;+ await load;++ const vb = svg.match(/viewBox\s*=\s*"([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)"/i);+ const vbW = vb ? Number(vb[3]) : NaN;+ const vbH = vb ? Number(vb[4]) : NaN;+ const ratio =+ Number.isFinite(vbW) && Number.isFinite(vbH) && vbW > 0 && vbH > 0+ ? vbH / vbW+ : img.naturalHeight > 0 && img.naturalWidth > 0+ ? img.naturalHeight / img.naturalWidth+ : 9 / 16;+ const width = targetWidth;+ const height = Math.max(1, Math.round(width * ratio));++ const canvas = document.createElement("canvas");+ canvas.width = width;+ canvas.height = height;+ const ctx = canvas.getContext("2d");+ if (!ctx) return "";+ ctx.clearRect(0, 0, width, height);+ ctx.drawImage(img, 0, 0, width, height);+ return canvas.toDataURL("image/png");+ } finally {+ URL.revokeObjectURL(url);+ }+ };++ const exportSvgAsPdf = async () => {+ if (!svg2d || isExporting) return;+ setIsExporting(true);+ try {+ const pngDataUrl = await svgToPngDataUrl(svg2d, 1600);+ if (!pngDataUrl) return;+ const base64 = pngDataUrl.split(",")[1] || "";+ const bytes = Uint8Array.from(atob(base64), (c) => c.charCodeAt(0));+ const pdfDoc = await PDFDocument.create();+ const img = await pdfDoc.embedPng(bytes);+ const page = pdfDoc.addPage([960, 540]);+ const scale = Math.min(960 / img.width, 540 / img.height);+ const w = img.width * scale;+ const h = img.height * scale;+ page.drawImage(img, { x: (960 - w) / 2, y: (540 - h) / 2, width: w, height: h });+ const pdfBytes = await pdfDoc.save();+ downloadBlob(new Blob([pdfBytes], { type: "application/pdf" }), `floorplan-${Date.now()}.pdf`);+ } catch (e) {+ console.error("Export SVG->PDF failed", e);+ } finally {+ setIsExporting(false);+ }+ };++ const exportRendersPdf = async () => {+ if (localImages.length === 0 || isExporting) return;+ setIsExporting(true);+ try {+ const pdfDoc = await PDFDocument.create();+ for (const it of localImages) {+ const res = await fetch(it.url);+ if (!res.ok) continue;+ const buf = await res.arrayBuffer();+ const bytes = new Uint8Array(buf);+ const contentType = String(res.headers.get("content-type") || "");+ const isJpg = contentType.includes("jpeg") || contentType.includes("jpg");+ const embedded = isJpg ? await pdfDoc.embedJpg(bytes) : await pdfDoc.embedPng(bytes);+ const pageW = 960;+ const pageH = 540;+ const page = pdfDoc.addPage([pageW, pageH]);+ const scale = Math.min(pageW / embedded.width, pageH / embedded.height);+ const w = embedded.width * scale;+ const h = embedded.height * scale;+ page.drawImage(embedded, { x: (pageW - w) / 2, y: (pageH - h) / 2, width: w, height: h });+ }+ const pdfBytes = await pdfDoc.save();+ downloadBlob(new Blob([pdfBytes], { type: "application/pdf" }), `renders-${Date.now()}.pdf`);+ } catch (e) {+ console.error("Export renders PDF failed", e);+ } finally {+ setIsExporting(false);+ }+ };++ const exportBomCsv = async () => {+ if (!bom || isExporting) return;+ setIsExporting(true);+ try {+ const esc = (v: any) => {+ const s = String(v ?? "");+ if (/[",\r\n]/.test(s)) return `"${s.replace(/"/g, '""')}"`;+ return s;+ };+ const rows: string[] = [];+ rows.push((bom.columns || []).map(esc).join(","));+ for (const r of bom.rows || []) {+ const arr = Array.isArray(r) ? r : [];+ const fixed = (bom.columns || []).map((_, i) => esc(arr[i] ?? ""));+ rows.push(fixed.join(","));+ }+ const csv = `\uFEFF${rows.join("\r\n")}`;+ downloadBlob(new Blob([csv], { type: "text/csv;charset=utf-8" }), `bom-${Date.now()}.csv`);+ } finally {+ setIsExporting(false);+ }+ };++ return (+ <ContextMenu>+ <ContextMenuTrigger className="w-full h-full bg-muted/20 relative overflow-hidden">+ <div className="absolute top-4 left-4 z-20 flex items-center gap-2 bg-background/80 backdrop-blur rounded-xl border border-border/50 px-3 py-2 shadow-sm">+ <Button+ size="sm"+ variant={viewMode === "2d" ? "default" : "outline"}+ className="h-7 px-2 text-xs gap-1"+ onClick={() => setViewMode("2d")}+ disabled={!svgContent}+ >+ <Box className="w-3.5 h-3.5" />+ 2D+ </Button>+ <Button+ size="sm"+ variant={viewMode === "renders" ? "default" : "outline"}+ className="h-7 px-2 text-xs gap-1"+ onClick={() => setViewMode("renders")}+ >+ <ImageIcon className="w-3.5 h-3.5" />+ {uiLang === "zh" ? "装修图" : "Renders"}+ </Button>+ <Button+ size="sm"+ variant={viewMode === "bom" ? "default" : "outline"}+ className="h-7 px-2 text-xs gap-1"+ onClick={() => setViewMode("bom")}+ >+ <Table2 className="w-3.5 h-3.5" />+ {uiLang === "zh" ? "物料" : "BOM"}+ </Button>+ <div className="h-4 w-px bg-border/60 mx-1" />+ {viewMode === "2d" && (+ <>+ <Button size="sm" variant="outline" className="h-7 px-2 text-xs gap-1" onClick={exportSvg} disabled={!svg2d || isExporting}>+ <Download className="w-3.5 h-3.5" />+ SVG+ </Button>+ <Button size="sm" variant="outline" className="h-7 px-2 text-xs gap-1" onClick={exportSvgAsPdf} disabled={!svg2d || isExporting}>+ <Download className="w-3.5 h-3.5" />+ </Button>+ </>+ )}+ {viewMode === "renders" && (+ <Button size="sm" variant="outline" className="h-7 px-2 text-xs gap-1" onClick={exportRendersPdf} disabled={localImages.length === 0 || isExporting}>+ <Download className="w-3.5 h-3.5" />+ </Button>+ )}+ {viewMode === "bom" && (+ <Button size="sm" variant="outline" className="h-7 px-2 text-xs gap-1" onClick={exportBomCsv} disabled={!bom || isExporting}>+ <Download className="w-3.5 h-3.5" />+ CSV+ </Button>+ )}+ </div>++ {!svgContent && (+ <div className="w-full h-full flex items-center justify-center">+ <div className="text-center text-muted-foreground">+ <p className="mb-2">{uiLang === "zh" ? "暂无 CAD 内容" : "No CAD content yet"}</p>+ <p className="text-xs">+ {uiLang === "zh"+ ? "在右侧对话里先做需求分析,确认方案后生成 SVG(2D),满意后生成装修图。"+ : "Use the chat on the right to define requirements, generate the 2D SVG, then generate renders."}+ </p>+ </div>+ </div>+ )}++ <div className="w-full h-full pt-16 p-6">+ {viewMode === "2d" && svgContent && (+ <div className="w-full h-full bg-white shadow-sm rounded-xl overflow-hidden border border-border/50 p-6 flex items-center justify-center">+ <div className="w-full h-full overflow-auto" dangerouslySetInnerHTML={{ __html: svgContent }} />+ </div>+ )}++ {viewMode === "renders" && (+ <div className="w-full h-full bg-white dark:bg-zinc-900 shadow-sm rounded-xl overflow-auto border border-border/50 p-4">+ {imagesLoading && localImages.length === 0 ? (+ <div className="h-full w-full flex items-center justify-center text-muted-foreground text-sm gap-2">+ <Loader2 className="w-4 h-4 animate-spin" />+ <span>{uiLang === "zh" ? "正在生成装修图…" : "Generating renders…"}</span>+ </div>+ ) : localImages.length === 0 ? (+ <div className="h-full w-full flex items-center justify-center text-muted-foreground text-sm">+ {uiLang === "zh" ? "暂无装修图" : "No renders yet"}+ </div>+ ) : (+ <div className="grid gap-4 grid-cols-1 md:grid-cols-2 xl:grid-cols-3">+ {localImages.map((img, idx) => (+ <div key={`${img.url}-${idx}`} className="rounded-xl border border-border/50 overflow-hidden bg-background">+ <div className="px-3 py-2 text-xs text-muted-foreground flex items-center justify-between gap-2">+ <ImageIcon className="w-4 h-4" />+ <span className="truncate flex-1">{img.title}</span>+ <div className="flex items-center gap-1">+ <Button+ variant="ghost"+ size="icon"+ className="h-7 w-7"+ onClick={() => setPreviewImage(img)}+ title={uiLang === "zh" ? "查看" : "View"}+ >+ <ImageIcon className="w-4 h-4" />+ </Button>+ <a href={img.url} download={`${img.title || "render"}.png`} className="inline-flex">+ <Button variant="ghost" size="icon" className="h-7 w-7" title={uiLang === "zh" ? "下载" : "Download"}>+ <Download className="w-4 h-4" />+ </Button>+ </a>+ </div>+ </div>+ <div className="aspect-video bg-muted/20 cursor-pointer" onClick={() => setPreviewImage(img)}>+ <img src={img.url} alt={img.title} className="w-full h-full object-cover" />+ </div>+ </div>+ ))}+ </div>+ )}+ </div>+ )}++ {viewMode === "bom" && (+ <div className="w-full h-full bg-white dark:bg-zinc-900 shadow-sm rounded-xl overflow-auto border border-border/50 p-4">+ {!bom || !Array.isArray(bom.columns) || bom.columns.length === 0 ? (+ <div className="h-full w-full flex items-center justify-center text-muted-foreground text-sm">+ {uiLang === "zh" ? "暂无物料清单" : "No BOM yet"}+ </div>+ ) : (+ <div className="w-full overflow-auto">+ <table className="w-full text-sm border-collapse">+ <thead>+ <tr className="text-left border-b border-border/60">+ {bom.columns.map((c, i) => (+ <th key={`${c}-${i}`} className="py-2 px-2 font-medium text-foreground/80 whitespace-normal break-words">{c}</th>+ ))}+ </tr>+ </thead>+ <tbody>+ {(Array.isArray(bom.rows) ? bom.rows : []).map((r, i) => (+ <tr key={i} className="border-b border-border/40">+ {bom.columns.map((_, ci) => (+ <td key={ci} className="py-2 px-2 text-foreground/90 whitespace-normal break-words">+ {Array.isArray(r) ? String(r[ci] ?? "") : String(r?.[bom.columns[ci]] ?? "")}+ </td>+ ))}+ </tr>+ ))}+ </tbody>+ </table>+ </div>+ )}+ </div>+ )}+ </div>+ </ContextMenuTrigger>++ <ContextMenuContent>+ <ContextMenuItem+ onClick={() => {+ if (!onAddToChat) return;+ if (viewMode === "2d" && svgContent) onAddToChat(svgContent);+ else if (viewMode === "renders" && localImages.length > 0) onAddToChat(JSON.stringify({ type: "cad_images", prompts: localImages }, null, 2));+ else if (viewMode === "bom" && bom) onAddToChat(JSON.stringify({ type: "cad_bom", columns: bom.columns, rows: bom.rows }, null, 2));+ else if (plan) onAddToChat(JSON.stringify(plan, null, 2));+ }}+ className="cursor-pointer gap-2"+ >+ <MessageSquarePlus className="w-4 h-4" />+ <span>{uiLang === "zh" ? "添加到对话" : "Add to chat"}</span>+ </ContextMenuItem>+ </ContextMenuContent>++ <Dialog open={!!previewImage} onOpenChange={(open) => { if (!open) setPreviewImage(null); }}>+ <DialogContent className="sm:max-w-[920px] max-w-[calc(100%-2rem)] p-4">+ <DialogHeader className="pr-10">+ <DialogTitle className="text-base">{previewImage?.title || (uiLang === "zh" ? "装修图" : "Render")}</DialogTitle>+ </DialogHeader>+ <div className="w-full">+ {previewImage?.url ? (+ <div className="space-y-3">+ <div className="flex items-center justify-end">+ <a href={previewImage.url} download={`${previewImage.title || "render"}.png`} className="inline-flex">+ <Button variant="outline" size="sm" className="h-8 px-3 text-xs">+ <Download className="w-4 h-4 mr-1" />+ {uiLang === "zh" ? "下载图片" : "Download image"}+ </Button>+ </a>+ </div>+ <div className="rounded-lg border border-border/50 overflow-hidden bg-muted/10">+ <img src={previewImage.url} alt={previewImage.title} className="w-full h-auto max-h-[70vh] object-contain" />+ </div>+ </div>+ ) : null}+ </div>+ </DialogContent>+ </Dialog>+ </ContextMenu>+ );+}diff --git a/src/workspaces/flow/FlowWorkspaceShell.tsx b/src/workspaces/flow/FlowWorkspaceShell.tsxnew file mode 100644index 0000000..b840800--- /dev/null+++ b/src/workspaces/flow/FlowWorkspaceShell.tsx@@ -0,0 +1,6 @@+import React from "react";+import { NextFlowWorkspace } from "@/workspaces/flow/next/NextFlowWorkspace";++export function FlowWorkspaceShell() {+ return <NextFlowWorkspace />;+}diff --git a/src/workspaces/flow/next/NextFlowWorkspace.tsx b/src/workspaces/flow/next/NextFlowWorkspace.tsxnew file mode 100644index 0000000..8a054a2--- /dev/null+++ b/src/workspaces/flow/next/NextFlowWorkspace.tsx@@ -0,0 +1,14 @@+import React from "react";+import FlowPage from "@/workspaces/flow/next/page";+import { DiagramProvider } from "@/workspaces/flow/next/contexts/diagram-context";+import { LanguageProvider } from "@/workspaces/flow/next/contexts/language-context";++export function NextFlowWorkspace() {+ return (+ <LanguageProvider>+ <DiagramProvider>+ <FlowPage />+ </DiagramProvider>+ </LanguageProvider>+ );+}diff --git a/src/workspaces/flow/next/components/ai-elements/reasoning.tsx b/src/workspaces/flow/next/components/ai-elements/reasoning.tsxnew file mode 100644index 0000000..0a63766--- /dev/null+++ b/src/workspaces/flow/next/components/ai-elements/reasoning.tsx@@ -0,0 +1,184 @@+"use client"++import { useControllableState } from "@radix-ui/react-use-controllable-state"+import { BrainIcon, ChevronDownIcon } from "lucide-react"+import type { ComponentProps, ReactNode } from "react"+import { createContext, memo, useContext, useEffect, useState } from "react"+import {+ Collapsible,+ CollapsibleContent,+ CollapsibleTrigger,+} from "@/workspaces/flow/next/components/ui/collapsible"+import { cn } from "@/workspaces/flow/next/lib/utils"+import { Shimmer } from "./shimmer"++type ReasoningContextValue = {+ isStreaming: boolean+ isOpen: boolean+ setIsOpen: (open: boolean) => void+ duration: number | undefined+}++const ReasoningContext = createContext<ReasoningContextValue | null>(null)++export const useReasoning = () => {+ const context = useContext(ReasoningContext)+ if (!context) {+ throw new Error("Reasoning components must be used within Reasoning")+ }+ return context+}++export type ReasoningProps = ComponentProps<typeof Collapsible> & {+ isStreaming?: boolean+ open?: boolean+ defaultOpen?: boolean+ onOpenChange?: (open: boolean) => void+ duration?: number+}++const AUTO_CLOSE_DELAY = 1000+const MS_IN_S = 1000++export const Reasoning = memo(+ ({+ className,+ isStreaming = false,+ open,+ defaultOpen = true,+ onOpenChange,+ duration: durationProp,+ children,+ ...props+ }: ReasoningProps) => {+ const [isOpen, setIsOpen] = useControllableState({+ prop: open,+ defaultProp: defaultOpen,+ onChange: onOpenChange,+ })+ const [duration, setDuration] = useControllableState({+ prop: durationProp,+ defaultProp: undefined,+ })++ const [hasAutoClosed, setHasAutoClosed] = useState(false)+ const [startTime, setStartTime] = useState<number | null>(null)++ useEffect(() => {+ if (isStreaming) {+ if (startTime === null) {+ setStartTime(Date.now())+ }+ } else if (startTime !== null) {+ setDuration(Math.ceil((Date.now() - startTime) / MS_IN_S))+ setStartTime(null)+ }+ }, [isStreaming, startTime, setDuration])++ useEffect(() => {+ if (defaultOpen && !isStreaming && isOpen && !hasAutoClosed) {+ const timer = setTimeout(() => {+ setIsOpen(false)+ setHasAutoClosed(true)+ }, AUTO_CLOSE_DELAY)++ return () => clearTimeout(timer)+ }+ }, [isStreaming, isOpen, defaultOpen, setIsOpen, hasAutoClosed])++ const handleOpenChange = (newOpen: boolean) => {+ setIsOpen(newOpen)+ }++ return (+ <ReasoningContext.Provider+ value={{ isStreaming, isOpen, setIsOpen, duration }}+ >+ <Collapsible+ className={cn("not-prose mb-4", className)}+ onOpenChange={handleOpenChange}+ open={isOpen}+ {...props}+ >+ {children}+ </Collapsible>+ </ReasoningContext.Provider>+ )+ },+)++export type ReasoningTriggerProps = ComponentProps<+ typeof CollapsibleTrigger+> & {+ getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode+}++const defaultGetThinkingMessage = (isStreaming: boolean, duration?: number) => {+ if (isStreaming || duration === 0) {+ return <Shimmer duration={1}>Thinking...</Shimmer>+ }+ if (duration === undefined) {+ return <p>Thought for a few seconds</p>+ }+ return <p>Thought for {duration} seconds</p>+}++export const ReasoningTrigger = memo(+ ({+ className,+ children,+ getThinkingMessage = defaultGetThinkingMessage,+ ...props+ }: ReasoningTriggerProps) => {+ const { isStreaming, isOpen, duration } = useReasoning()++ return (+ <CollapsibleTrigger+ className={cn(+ "flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",+ className,+ )}+ {...props}+ >+ {children ?? (+ <>+ <BrainIcon className="size-4" />+ {getThinkingMessage(isStreaming, duration)}+ <ChevronDownIcon+ className={cn(+ "size-4 transition-transform",+ isOpen ? "rotate-180" : "rotate-0",+ )}+ />+ </>+ )}+ </CollapsibleTrigger>+ )+ },+)++export type ReasoningContentProps = ComponentProps<+ typeof CollapsibleContent+> & {+ children: string+}++export const ReasoningContent = memo(+ ({ className, children, ...props }: ReasoningContentProps) => (+ <CollapsibleContent+ className={cn(+ "mt-4 text-sm",+ "data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ >+ <div className="whitespace-pre-wrap">{children}</div>+ </CollapsibleContent>+ ),+)++Reasoning.displayName = "Reasoning"+ReasoningTrigger.displayName = "ReasoningTrigger"+ReasoningContent.displayName = "ReasoningContent"+diff --git a/src/workspaces/flow/next/components/ai-elements/shimmer.tsx b/src/workspaces/flow/next/components/ai-elements/shimmer.tsxnew file mode 100644index 0000000..036d874--- /dev/null+++ b/src/workspaces/flow/next/components/ai-elements/shimmer.tsx@@ -0,0 +1,65 @@+"use client"++import { motion } from "motion/react"+import {+ type CSSProperties,+ type ElementType,+ type JSX,+ memo,+ useMemo,+} from "react"+import { cn } from "@/workspaces/flow/next/lib/utils"++export type TextShimmerProps = {+ children: string+ as?: ElementType+ className?: string+ duration?: number+ spread?: number+}++const ShimmerComponent = ({+ children,+ as: Component = "p",+ className,+ duration = 2,+ spread = 2,+}: TextShimmerProps) => {+ const MotionComponent = motion.create(+ Component as keyof JSX.IntrinsicElements,+ )++ const dynamicSpread = useMemo(+ () => (children?.length ?? 0) * spread,+ [children, spread],+ )++ return (+ <MotionComponent+ animate={{ backgroundPosition: "0% center" }}+ className={cn(+ "relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent",+ "[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",+ className,+ )}+ initial={{ backgroundPosition: "100% center" }}+ style={+ {+ "--spread": `${dynamicSpread}px`,+ backgroundImage:+ "var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))",+ } as CSSProperties+ }+ transition={{+ repeat: Number.POSITIVE_INFINITY,+ duration,+ ease: "linear",+ }}+ >+ {children}+ </MotionComponent>+ )+}++export const Shimmer = memo(ShimmerComponent)+diff --git a/src/workspaces/flow/next/components/button-with-tooltip.tsx b/src/workspaces/flow/next/components/button-with-tooltip.tsxnew file mode 100644index 0000000..ccc3355--- /dev/null+++ b/src/workspaces/flow/next/components/button-with-tooltip.tsx@@ -0,0 +1,51 @@+import type { VariantProps } from "class-variance-authority"+import type React from "react"+import { Button, type buttonVariants } from "@/workspaces/flow/next/components/ui/button"+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@/workspaces/flow/next/components/ui/tooltip"++interface ButtonWithTooltipProps+ extends React.ComponentProps<"button">,+ VariantProps<typeof buttonVariants> {+ tooltipContent: string+ children: React.ReactNode+ asChild?: boolean+}++export function ButtonWithTooltip({+ tooltipContent,+ children,+ ...buttonProps+}: ButtonWithTooltipProps) {+ const title =+ typeof buttonProps.title === "string"+ ? buttonProps.title+ : tooltipContent++ const button = (+ <Button {...buttonProps} title={title}>+ {children}+ </Button>+ )++ return (+ <Tooltip>+ <TooltipTrigger asChild>+ {buttonProps.disabled ? (+ <span className="inline-flex cursor-not-allowed">+ {button}+ </span>+ ) : (+ button+ )}+ </TooltipTrigger>+ <TooltipContent className="max-w-xs text-wrap">+ {tooltipContent}+ </TooltipContent>+ </Tooltip>+ )+}+diff --git a/src/workspaces/flow/next/components/chat-example-panel.tsx b/src/workspaces/flow/next/components/chat-example-panel.tsxnew file mode 100644index 0000000..5bbaead--- /dev/null+++ b/src/workspaces/flow/next/components/chat-example-panel.tsx@@ -0,0 +1,186 @@+"use client"++import { Cloud, FileText, GitBranch, Palette, Zap } from "lucide-react"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++interface ExampleCardProps {+ icon: React.ReactNode+ title: string+ description: string+ onClick: () => void+ isNew?: boolean+}++function ExampleCard({+ icon,+ title,+ description,+ onClick,+ isNew,+}: ExampleCardProps) {+ const { t } = useLanguage()+ return (+ <button+ onClick={onClick}+ className={`group w-full text-left p-4 rounded-xl border bg-card hover:bg-accent/50 hover:border-primary/30 transition-all duration-200 hover:shadow-sm ${+ isNew+ ? "border-primary/40 ring-1 ring-primary/20"+ : "border-border/60"+ }`}+ >+ <div className="flex items-start gap-3">+ <div+ className={`w-9 h-9 rounded-lg flex items-center justify-center shrink-0 transition-colors ${+ isNew+ ? "bg-primary/20 group-hover:bg-primary/25"+ : "bg-primary/10 group-hover:bg-primary/15"+ }`}+ >+ {icon}+ </div>+ <div className="min-w-0">+ <div className="flex items-center gap-2">+ <h3 className="text-sm font-medium text-foreground group-hover:text-primary transition-colors">+ {title}+ </h3>+ {isNew && (+ <span className="px-1.5 py-0.5 text-[10px] font-semibold bg-primary text-primary-foreground rounded">+ {t("example.new")}+ </span>+ )}+ </div>+ <p className="text-xs text-muted-foreground mt-0.5 line-clamp-2">+ {description}+ </p>+ </div>+ </div>+ </button>+ )+}++interface ExamplePanelProps {+ setInput: (input: string) => void+ setFiles: (files: File[]) => void+}++export default function ExamplePanel({+ setInput,+ setFiles,+}: ExamplePanelProps) {+ const { t } = useLanguage()++ const handleReplicateFlowchart = async () => {+ setInput("Replicate this flowchart.")++ try {+ const response = await fetch("/example.png")+ const blob = await response.blob()+ const file = new File([blob], "example.png", { type: "image/png" })+ setFiles([file])+ } catch (error) {+ console.error("Error loading example image:", error)+ }+ }++ const handleReplicateArchitecture = async () => {+ setInput("Replicate this in aws style")++ try {+ const response = await fetch("/architecture.png")+ const blob = await response.blob()+ const file = new File([blob], "architecture.png", {+ type: "image/png",+ })+ setFiles([file])+ } catch (error) {+ console.error("Error loading architecture image:", error)+ }+ }++ const handlePdfExample = async () => {+ setInput("Summarize this paper as a diagram")++ try {+ const response = await fetch("/chain-of-thought.txt")+ const blob = await response.blob()+ const file = new File([blob], "chain-of-thought.txt", {+ type: "text/plain",+ })+ setFiles([file])+ } catch (error) {+ console.error("Error loading text file:", error)+ }+ }++ return (+ <div className="py-6 px-2 animate-fade-in">+ {/* Welcome section */}+ <div className="text-center mb-6">+ <h2 className="text-lg font-semibold text-foreground mb-2">+ {t("welcome.title")}+ </h2>+ <p className="text-sm text-muted-foreground max-w-xs mx-auto">+ {t("welcome.desc")}+ </p>+ </div>++ {/* Examples grid */}+ <div className="space-y-3">+ <p className="text-xs font-medium text-muted-foreground uppercase tracking-wider px-1">+ {t("examples.title")}+ </p>++ <div className="grid gap-2">+ <ExampleCard+ icon={<FileText className="w-4 h-4 text-primary" />}+ title={t("examples.paper.title")}+ description={t("examples.paper.desc")}+ onClick={handlePdfExample}+ isNew+ />++ <ExampleCard+ icon={<Zap className="w-4 h-4 text-primary" />}+ title={t("examples.animated.title")}+ description={t("examples.animated.desc")}+ onClick={() => {+ setInput(+ "Give me a **animated connector** diagram of transformer's architecture",+ )+ setFiles([])+ }}+ />++ <ExampleCard+ icon={<Cloud className="w-4 h-4 text-primary" />}+ title={t("example.aws.title")}+ description={t("example.aws.desc")}+ onClick={handleReplicateArchitecture}+ />++ <ExampleCard+ icon={<GitBranch className="w-4 h-4 text-primary" />}+ title={t("example.flowchart.title")}+ description={t("example.flowchart.desc")}+ onClick={handleReplicateFlowchart}+ />++ <ExampleCard+ icon={<Palette className="w-4 h-4 text-primary" />}+ title={t("example.creative.title")}+ description={t("example.creative.desc")}+ onClick={() => {+ setInput("Draw a cat for me")+ setFiles([])+ }}+ />+ </div>++ <p className="text-[11px] text-muted-foreground/60 text-center mt-4">+ {t("example.cached")}+ </p>+ </div>+ </div>+ )+}+diff --git a/src/workspaces/flow/next/components/chat-input.tsx b/src/workspaces/flow/next/components/chat-input.tsxnew file mode 100644index 0000000..03fedb4--- /dev/null+++ b/src/workspaces/flow/next/components/chat-input.tsx@@ -0,0 +1,506 @@+"use client"++import {+ FileText,+ History,+ Image as ImageIcon,+ Loader2,+ ScrollText,+ Send,+ Square,+ Trash2,+} from "lucide-react"+import type React from "react"+import { useCallback, useEffect, useRef, useState } from "react"+import { toast } from "sonner"+import { ButtonWithTooltip } from "@/workspaces/flow/next/components/button-with-tooltip"+import { ErrorToast } from "@/workspaces/flow/next/components/error-toast"+import { GlobalConstraintsDialog } from "@/workspaces/flow/next/components/global-constraints-dialog"+import { HistoryDialog } from "@/workspaces/flow/next/components/history-dialog"+import { ResetWarningModal } from "@/workspaces/flow/next/components/reset-warning-modal"+import { Textarea } from "@/workspaces/flow/next/components/ui/textarea"+import { useDiagram } from "@/workspaces/flow/next/contexts/diagram-context"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"+import { isPdfFile, isTextFile } from "@/workspaces/flow/next/lib/pdf-utils"+import { FilePreviewList } from "./file-preview-list"++const MAX_IMAGE_SIZE = 2 * 1024 * 1024 // 2MB+const MAX_FILES = 5++function isWordFile(file: File): boolean {+ const name = file.name.toLowerCase()+ return (+ file.type ===+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||+ name.endsWith(".docx")+ )+}++function isValidFileType(file: File): boolean {+ return (+ file.type.startsWith("image/") ||+ isPdfFile(file) ||+ isTextFile(file) ||+ isWordFile(file)+ )+}++function formatFileSize(bytes: number): string {+ const mb = bytes / 1024 / 1024+ if (mb < 0.01) return `${(bytes / 1024).toFixed(0)}KB`+ return `${mb.toFixed(2)}MB`+}++function showErrorToast(message: React.ReactNode) {+ toast.custom(+ (t) => (+ <ErrorToast message={message} onDismiss={() => toast.dismiss(t)} />+ ),+ { duration: 5000 },+ )+}++interface ValidationResult {+ validFiles: File[]+ errors: string[]+}++function validateFiles(+ newFiles: File[],+ existingCount: number,+): ValidationResult {+ const errors: string[] = []+ const validFiles: File[] = []++ const availableSlots = MAX_FILES - existingCount++ if (availableSlots <= 0) {+ errors.push(`最多只能上传 ${MAX_FILES} 个文件`)+ return { validFiles, errors }+ }++ for (const file of newFiles) {+ if (validFiles.length >= availableSlots) {+ errors.push(`还可再上传 ${availableSlots} 个文件`)+ break+ }+ if (!isValidFileType(file)) {+ errors.push(`"${file.name}" 不是支持的文件类型`)+ continue+ }+ // Only check size for images (PDFs/text files are extracted client-side, so file size doesn't matter)+ const isExtractedFile = isPdfFile(file) || isTextFile(file)+ if (!isExtractedFile && file.size > MAX_IMAGE_SIZE) {+ const maxSizeMB = MAX_IMAGE_SIZE / 1024 / 1024+ errors.push(+ `"${file.name}" 大小为 ${formatFileSize(file.size)}(超过 ${maxSizeMB}MB)`,+ )+ } else {+ validFiles.push(file)+ }+ }++ return { validFiles, errors }+}++function showValidationErrors(errors: string[]) {+ if (errors.length === 0) return++ if (errors.length === 1) {+ showErrorToast(+ <span className="text-muted-foreground">{errors[0]}</span>,+ )+ } else {+ showErrorToast(+ <div className="flex flex-col gap-1">+ <span className="font-medium">+ {errors.length} 个文件校验失败:+ </span>+ <ul className="text-muted-foreground text-xs list-disc list-inside">+ {errors.slice(0, 3).map((err) => (+ <li key={err}>{err}</li>+ ))}+ {errors.length > 3 && (+ <li>...以及另外 {errors.length - 3} 个</li>+ )}+ </ul>+ </div>,+ )+ }+}++interface ChatInputProps {+ input: string+ status: "submitted" | "streaming" | "ready" | "error"+ onSubmit: (e: React.FormEvent<HTMLFormElement>) => void+ onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void+ onClearChat: () => void+ onStop?: () => void+ files?: File[]+ onFileChange?: (files: File[]) => void+ pdfData?: Map<+ File,+ { text: string; charCount: number; isExtracting: boolean }+ >+ showHistory?: boolean+ onToggleHistory?: (show: boolean) => void+ sessionId?: string+ error?: Error | null+}++export function ChatInput({+ input,+ status,+ onSubmit,+ onChange,+ onClearChat,+ onStop,+ files = [],+ onFileChange = () => {},+ pdfData = new Map(),+ showHistory = false,+ onToggleHistory = () => {},+ sessionId,+ error = null,+}: ChatInputProps) {+ const { t } = useLanguage()+ const { diagramHistory } = useDiagram()+ const textareaRef = useRef<HTMLTextAreaElement>(null)+ const imageInputRef = useRef<HTMLInputElement>(null)+ const fileInputRef = useRef<HTMLInputElement>(null)+ const [isDragging, setIsDragging] = useState(false)+ const [showClearDialog, setShowClearDialog] = useState(false)+ const [showConstraintsDialog, setShowConstraintsDialog] = useState(false)++ // Check if system is currently processing+ const isProcessing = status === "streaming" || status === "submitted"++ // Allow input only when not processing (or if there was an error)+ const isDisabled = isProcessing && !error++ const adjustTextareaHeight = useCallback(() => {+ const textarea = textareaRef.current+ if (textarea) {+ textarea.style.height = "auto"+ textarea.style.height = `${Math.min(textarea.scrollHeight, 200)}px`+ }+ }, [])++ // Handle programmatic input changes (e.g., setInput("") after form submission)+ useEffect(() => {+ adjustTextareaHeight()+ }, [input, adjustTextareaHeight])++ const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {+ onChange(e)+ adjustTextareaHeight()+ }++ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === "Enter" && !e.shiftKey) {+ e.preventDefault()+ const form = e.currentTarget.closest("form")+ if (form && input.trim() && !isDisabled) {+ form.requestSubmit()+ }+ return+ }+ }++ const handlePaste = async (e: React.ClipboardEvent) => {+ if (isDisabled) return++ const items = e.clipboardData.items+ const imageItems = Array.from(items).filter((item) =>+ item.type.startsWith("image/"),+ )++ if (imageItems.length > 0) {+ const imageFiles = (+ await Promise.all(+ imageItems.map(async (item, index) => {+ const file = item.getAsFile()+ if (!file) return null+ return new File(+ [file],+ `pasted-image-${Date.now()}-${index}.${file.type.split("/")[1]}`,+ { type: file.type },+ )+ }),+ )+ ).filter((f): f is File => f !== null)++ const { validFiles, errors } = validateFiles(+ imageFiles,+ files.length,+ )+ showValidationErrors(errors)+ if (validFiles.length > 0) {+ onFileChange([...files, ...validFiles])+ }+ }+ }++ const appendValidatedFiles = (incomingFiles: File[]) => {+ const { validFiles, errors } = validateFiles(incomingFiles, files.length)+ showValidationErrors(errors)+ if (validFiles.length > 0) {+ onFileChange([...files, ...validFiles])+ }+ }++ const handleImageInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const newFiles = Array.from(e.target.files || []).filter((file) =>+ file.type.startsWith("image/"),+ )+ appendValidatedFiles(newFiles)+ if (imageInputRef.current) {+ imageInputRef.current.value = ""+ }+ }++ const handleFileInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const newFiles = Array.from(e.target.files || []).filter(+ (file) => isPdfFile(file) || isTextFile(file) || isWordFile(file),+ )+ appendValidatedFiles(newFiles)+ // Reset input so same file can be selected again+ if (fileInputRef.current) {+ fileInputRef.current.value = ""+ }+ }++ const handleRemoveFile = (fileToRemove: File) => {+ onFileChange(files.filter((file) => file !== fileToRemove))+ if (imageInputRef.current) {+ imageInputRef.current.value = ""+ }+ if (fileInputRef.current) {+ fileInputRef.current.value = ""+ }+ }++ const triggerImageInput = () => {+ imageInputRef.current?.click()+ }++ const triggerFileInput = () => {+ fileInputRef.current?.click()+ }++ const handleDragOver = (e: React.DragEvent<HTMLFormElement>) => {+ e.preventDefault()+ e.stopPropagation()+ setIsDragging(true)+ }++ const handleDragLeave = (e: React.DragEvent<HTMLFormElement>) => {+ e.preventDefault()+ e.stopPropagation()+ setIsDragging(false)+ }++ const handleDrop = (e: React.DragEvent<HTMLFormElement>) => {+ e.preventDefault()+ e.stopPropagation()+ setIsDragging(false)++ if (isDisabled) return++ const droppedFiles = e.dataTransfer.files+ const supportedFiles = Array.from(droppedFiles).filter((file) =>+ isValidFileType(file),+ )++ const { validFiles, errors } = validateFiles(+ supportedFiles,+ files.length,+ )+ showValidationErrors(errors)+ if (validFiles.length > 0) {+ onFileChange([...files, ...validFiles])+ }+ }++ const handleClear = () => {+ onClearChat()+ setShowClearDialog(false)+ }++ return (+ <form+ onSubmit={onSubmit}+ className={`w-full transition-all duration-200 ${+ isDragging+ ? "ring-2 ring-primary ring-offset-2 rounded-2xl"+ : ""+ }`}+ onDragOver={handleDragOver}+ onDragLeave={handleDragLeave}+ onDrop={handleDrop}+ >+ {/* File previews */}+ {files.length > 0 && (+ <div className="mb-3">+ <FilePreviewList+ files={files}+ onRemoveFile={handleRemoveFile}+ pdfData={pdfData}+ />+ </div>+ )}++ {/* Input container */}+ <div className="relative rounded-2xl border border-border bg-background shadow-sm focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary/50 transition-all duration-200">+ <Textarea+ ref={textareaRef}+ value={input}+ onChange={handleChange}+ onKeyDown={handleKeyDown}+ onPaste={handlePaste}+ placeholder={t("input.placeholder")}+ disabled={isDisabled}+ aria-label="聊天输入"+ className="min-h-[60px] max-h-[200px] resize-none border-0 bg-transparent px-4 py-3 text-sm focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground/60"+ />++ {/* Action bar */}+ <div className="flex items-center justify-between px-3 py-2 border-t border-border/50">+ {/* Left actions */}+ <div className="flex items-center gap-1">+ <ButtonWithTooltip+ type="button"+ variant="ghost"+ size="sm"+ onClick={() => setShowClearDialog(true)}+ tooltipContent={t("input.clear")}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10"+ >+ <Trash2 className="h-4 w-4" />+ </ButtonWithTooltip>++ <ButtonWithTooltip+ type="button"+ variant="ghost"+ size="sm"+ onClick={() => setShowConstraintsDialog(true)}+ tooltipContent={t("tooltip.global_constraints")}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <ScrollText className="h-4 w-4" />+ </ButtonWithTooltip>++ <ResetWarningModal+ open={showClearDialog}+ onOpenChange={setShowClearDialog}+ onClear={handleClear}+ />++ <GlobalConstraintsDialog+ open={showConstraintsDialog}+ onOpenChange={setShowConstraintsDialog}+ />++ <HistoryDialog+ showHistory={showHistory}+ onToggleHistory={onToggleHistory}+ />+ </div>++ {/* Right actions */}+ <div className="flex items-center gap-1">+ <ButtonWithTooltip+ type="button"+ variant="ghost"+ size="sm"+ onClick={() => onToggleHistory(true)}+ disabled={isDisabled || diagramHistory.length === 0}+ tooltipContent={t("tooltip.history")}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <History className="h-4 w-4" />+ </ButtonWithTooltip>++ <ButtonWithTooltip+ type="button"+ variant="ghost"+ size="sm"+ onClick={triggerImageInput}+ disabled={isDisabled}+ tooltipContent={t("input.upload_image")}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <ImageIcon className="h-4 w-4" />+ </ButtonWithTooltip>++ <ButtonWithTooltip+ type="button"+ variant="ghost"+ size="sm"+ onClick={triggerFileInput}+ disabled={isDisabled}+ tooltipContent={t("input.upload_file_types")}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <FileText className="h-4 w-4" />+ </ButtonWithTooltip>++ <input+ type="file"+ ref={imageInputRef}+ className="hidden"+ onChange={handleImageInputChange}+ accept="image/*"+ multiple+ disabled={isDisabled}+ />++ <input+ type="file"+ ref={fileInputRef}+ className="hidden"+ onChange={handleFileInputChange}+ accept=".pdf,.docx,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/*,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml,.py,.js,.ts"+ multiple+ disabled={isDisabled}+ />++ <div className="w-px h-5 bg-border mx-1" />++ {isProcessing ? (+ <ButtonWithTooltip+ type="button"+ variant="default"+ size="sm"+ tooltipContent={t("input.stop")}+ onClick={(e) => {+ e.preventDefault()+ onStop?.()+ }}+ className="h-8 w-8 p-0 rounded-xl shadow-sm"+ aria-label="停止生成"+ >+ <Square className="h-3.5 w-3.5 fill-current" />+ </ButtonWithTooltip>+ ) : (+ <ButtonWithTooltip+ type="submit"+ variant="default"+ size="sm"+ tooltipContent={t("input.send")}+ disabled={isDisabled || !input.trim()}+ className="h-8 w-8 p-0 rounded-xl shadow-sm"+ aria-label={+ isDisabled ? "发送中..." : "发送消息"+ }+ >+ <Send className="h-4 w-4" />+ </ButtonWithTooltip>+ )}+ </div>+ </div>+ </div>+ </form>+ )+}+diff --git a/src/workspaces/flow/next/components/chat-message-display.tsx b/src/workspaces/flow/next/components/chat-message-display.tsxnew file mode 100644index 0000000..8d8580c--- /dev/null+++ b/src/workspaces/flow/next/components/chat-message-display.tsx@@ -0,0 +1,1216 @@+"use client"++type UIMessage = any++import {+ Check,+ ChevronDown,+ ChevronUp,+ Copy,+ Cpu,+ FileCode,+ FileText,+ Loader2,+ Minus,+ Pencil,+ Plus,+ RotateCcw,+ ThumbsDown,+ ThumbsUp,+ X,+} from "lucide-react"+import Image from "@/workspaces/flow/next/shims/next-image"+import type { MutableRefObject } from "react"+import { Fragment, useCallback, useEffect, useRef, useState } from "react"+import ReactMarkdown from "react-markdown"+import {+ Reasoning,+ ReasoningContent,+ ReasoningTrigger,+} from "@/workspaces/flow/next/components/ai-elements/reasoning"+import { ScrollArea } from "@/workspaces/flow/next/components/ui/scroll-area"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"+import {+ convertToLegalXml,+ replaceNodes,+ validateMxCellStructure,+} from "@/workspaces/flow/next/lib/utils"+import { CodeBlock } from "./code-block"++interface EditPair {+ search: string+ replace: string+}++// Tool part interface for type safety+interface ToolPartLike {+ type: string+ toolCallId: string+ state?: string+ input?: { xml?: string; edits?: EditPair[] } & Record<string, unknown>+ output?: string+}++function EditDiffDisplay({ edits }: { edits: EditPair[] }) {+ return (+ <div className="space-y-3">+ {edits.map((edit, index) => (+ <div+ key={`${(edit.search || "").slice(0, 50)}-${(edit.replace || "").slice(0, 50)}-${index}`}+ className="rounded-lg border border-border/50 overflow-hidden bg-background/50"+ >+ <div className="px-3 py-1.5 bg-muted/40 border-b border-border/30 flex items-center gap-2">+ <span className="text-xs font-medium text-muted-foreground">+ Change {index + 1}+ </span>+ </div>+ <div className="divide-y divide-border/30">+ {/* Search (old) */}+ <div className="px-3 py-2">+ <div className="flex items-center gap-1.5 mb-1.5">+ <Minus className="w-3 h-3 text-red-500" />+ <span className="text-[10px] font-medium text-red-600 uppercase tracking-wide">+ Remove+ </span>+ </div>+ <pre className="text-[11px] font-mono text-red-700 bg-red-50 rounded px-2 py-1.5 overflow-x-auto whitespace-pre-wrap break-all">+ {edit.search}+ </pre>+ </div>+ {/* Replace (new) */}+ <div className="px-3 py-2">+ <div className="flex items-center gap-1.5 mb-1.5">+ <Plus className="w-3 h-3 text-green-500" />+ <span className="text-[10px] font-medium text-green-600 uppercase tracking-wide">+ Add+ </span>+ </div>+ <pre className="text-[11px] font-mono text-green-700 bg-green-50 rounded px-2 py-1.5 overflow-x-auto whitespace-pre-wrap break-all">+ {edit.replace}+ </pre>+ </div>+ </div>+ </div>+ ))}+ </div>+ )+}++import { useDiagram } from "@/workspaces/flow/next/contexts/diagram-context"++// Helper to split text content into regular text and file sections (PDF or text files)+interface TextSection {+ type: "text" | "file"+ content: string+ filename?: string+ charCount?: number+ fileType?: "pdf" | "text"+}++function splitTextIntoFileSections(text: string): TextSection[] {+ const sections: TextSection[] = []+ // Match [PDF: filename] or [File: filename] patterns+ const filePattern =+ /\[(PDF|File):\s*([^\]]+)\]\n([\s\S]*?)(?=\n\n\[(PDF|File):|$)/g+ let lastIndex = 0+ let match++ while ((match = filePattern.exec(text)) !== null) {+ // Add text before this file section+ const beforeText = text.slice(lastIndex, match.index).trim()+ if (beforeText) {+ sections.push({ type: "text", content: beforeText })+ }++ // Add file section+ const fileType = match[1].toLowerCase() === "pdf" ? "pdf" : "text"+ const filename = match[2].trim()+ const fileContent = match[3].trim()+ sections.push({+ type: "file",+ content: fileContent,+ filename,+ charCount: fileContent.length,+ fileType,+ })++ lastIndex = match.index + match[0].length+ }++ // Add remaining text after last file section+ const remainingText = text.slice(lastIndex).trim()+ if (remainingText) {+ sections.push({ type: "text", content: remainingText })+ }++ // If no file sections found, return original text+ if (sections.length === 0) {+ sections.push({ type: "text", content: text })+ }++ return sections+}++const getMessageTextContent = (message: UIMessage): string => {+ if (message.parts && message.parts.length > 0) {+ return message.parts+ .filter((part) => part.type === "text")+ .map((part) => (part as { text: string }).text)+ .join("\n")+ }+ if (Array.isArray(message.content)) {+ return message.content+ .filter((part: any) => part?.type === "text")+ .map((part: any) => String(part?.text || ""))+ .join("\n")+ }+ return message.content || ""+}++function extractFileSectionsFromText(text: string): TextSection[] {+ return splitTextIntoFileSections(text).filter(+ (s) => s.type === "file",+ ) as TextSection[]+}++function stripFileSectionsFromText(text: string): string {+ const sections = splitTextIntoFileSections(text).filter(+ (s) => s.type === "text",+ )+ return sections.map((s) => s.content).join("\n\n").trim()+}++// Get only the user's original text, excluding appended file content+const getUserOriginalText = (message: UIMessage): string => {+ const fullText = getMessageTextContent(message)+ // Strip out [PDF: ...] and [File: ...] sections that were appended+ const filePattern = /\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/+ return fullText.replace(filePattern, "").trim()+}++interface ChatMessageDisplayProps {+ messages: UIMessage[]+ setInput: (input: string) => void+ setFiles: (files: File[]) => void+ processedToolCallsRef: MutableRefObject<Set<string>>+ sessionId?: string+ onRegenerate?: (messageIndex: number) => void+ onEditMessage?: (messageIndex: number, newText: string) => void+ status?: "streaming" | "submitted" | "idle" | "error" | "ready"+ isParsingFiles?: boolean+}++export function ChatMessageDisplay({+ messages,+ setInput,+ setFiles,+ processedToolCallsRef,+ sessionId,+ onRegenerate,+ onEditMessage,+ status = "idle",+ isParsingFiles = false,+}: ChatMessageDisplayProps) {+ const { t } = useLanguage()+ const { chartXML, loadDiagram: onDisplayChart } = useDiagram()+ const messagesEndRef = useRef<HTMLDivElement>(null)+ const previousXML = useRef<string>("")+ const processedToolCalls = processedToolCallsRef+ const [expandedTools, setExpandedTools] = useState<Record<string, boolean>>(+ {},+ )+ const [copiedMessageId, setCopiedMessageId] = useState<string | null>(null)+ const [copyFailedMessageId, setCopyFailedMessageId] = useState<+ string | null+ >(null)+ const [feedback, setFeedback] = useState<Record<string, "good" | "bad">>({})+ const [editingMessageId, setEditingMessageId] = useState<string | null>(+ null,+ )+ const editTextareaRef = useRef<HTMLTextAreaElement>(null)+ const [editText, setEditText] = useState<string>("")+ const copyMessageToClipboard = async (messageId: string, text: string) => {+ try {+ await navigator.clipboard.writeText(text)++ setCopiedMessageId(messageId)+ setTimeout(() => setCopiedMessageId(null), 2000)+ } catch (_err) {+ // Fallback for non-secure contexts (HTTP) or permission denied+ const textarea = document.createElement("textarea")+ textarea.value = text+ textarea.style.position = "fixed"+ textarea.style.left = "-9999px"+ textarea.style.opacity = "0"+ document.body.appendChild(textarea)++ try {+ textarea.select()+ const success = document.execCommand("copy")+ if (!success) {+ throw new Error("Copy command failed")+ }+ setCopiedMessageId(messageId)+ setTimeout(() => setCopiedMessageId(null), 2000)+ } catch (fallbackErr) {+ console.error("Failed to copy message:", fallbackErr)+ setCopyFailedMessageId(messageId)+ setTimeout(() => setCopyFailedMessageId(null), 2000)+ } finally {+ document.body.removeChild(textarea)+ }+ }+ }++ const submitFeedback = async (messageId: string, value: "good" | "bad") => {+ // Toggle off if already selected+ if (feedback[messageId] === value) {+ setFeedback((prev) => {+ const next = { ...prev }+ delete next[messageId]+ return next+ })+ return+ }++ setFeedback((prev) => ({ ...prev, [messageId]: value }))++ try {+ await fetch("/api/log-feedback", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ messageId,+ feedback: value,+ sessionId,+ }),+ })+ } catch (error) {+ console.warn("Failed to log feedback:", error)+ }+ }++ const handleDisplayChart = useCallback(+ (xml: string) => {+ const currentXml = xml || ""+ const convertedXml = convertToLegalXml(currentXml)+ if (convertedXml !== previousXML.current) {+ // If chartXML is empty, create a default mxfile structure to use with replaceNodes+ // This ensures the XML is properly wrapped in mxfile/diagram/mxGraphModel format+ const baseXML =+ chartXML ||+ `<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel></diagram></mxfile>`+ const replacedXML = replaceNodes(baseXML, convertedXml)++ const validationError = validateMxCellStructure(replacedXML)+ if (!validationError) {+ previousXML.current = convertedXml+ // Skip validation in loadDiagram since we already validated above+ onDisplayChart(replacedXML, true)+ } else {+ console.log(+ "[ChatMessageDisplay] XML validation failed:",+ validationError,+ )+ }+ }+ },+ [chartXML, onDisplayChart],+ )++ useEffect(() => {+ if (messagesEndRef.current) {+ messagesEndRef.current.scrollIntoView({ behavior: "smooth" })+ }+ }, [messages])++ useEffect(() => {+ if (editingMessageId && editTextareaRef.current) {+ editTextareaRef.current.focus()+ }+ }, [editingMessageId])++ useEffect(() => {+ messages.forEach((message) => {+ if (message.parts) {+ message.parts.forEach((part) => {+ if (part.type?.startsWith("tool-")) {+ const toolPart = part as ToolPartLike+ const { toolCallId, state, input } = toolPart++ if (state === "output-available") {+ setExpandedTools((prev) => ({+ ...prev,+ [toolCallId]: false,+ }))+ }++ if (+ part.type === "tool-display_diagram" &&+ input?.xml+ ) {+ const xml = input.xml as string+ if (+ state === "input-streaming" ||+ state === "input-available"+ ) {+ handleDisplayChart(xml)+ } else if (+ state === "output-available" &&+ !processedToolCalls.current.has(toolCallId)+ ) {+ handleDisplayChart(xml)+ processedToolCalls.current.add(toolCallId)+ }+ }+ }+ })+ }+ })+ }, [messages, handleDisplayChart])++ const renderToolPart = (part: ToolPartLike) => {+ const callId = part.toolCallId+ const { state, input, output } = part+ const isExpanded = expandedTools[callId] ?? true+ const toolName = part.type?.replace("tool-", "")++ const toggleExpanded = () => {+ setExpandedTools((prev) => ({+ ...prev,+ [callId]: !isExpanded,+ }))+ }++ const getToolDisplayName = (name: string) => {+ switch (name) {+ case "display_diagram":+ return "Generate Diagram"+ case "edit_diagram":+ return "Edit Diagram"+ default:+ return name+ }+ }++ return (+ <div+ key={callId}+ className="my-3 rounded-xl border border-border/60 bg-muted/30 overflow-hidden"+ >+ <div className="flex items-center justify-between px-4 py-3 bg-muted/50">+ <div className="flex items-center gap-2">+ <div className="w-6 h-6 rounded-md bg-primary/10 flex items-center justify-center">+ <Cpu className="w-3.5 h-3.5 text-primary" />+ </div>+ <span className="text-sm font-medium text-foreground/80">+ {getToolDisplayName(toolName)}+ </span>+ </div>+ <div className="flex items-center gap-2">+ {state === "input-streaming" && (+ <div className="h-4 w-4 border-2 border-primary border-t-transparent rounded-full animate-spin" />+ )}+ {state === "output-available" && (+ <span className="text-xs font-medium text-green-600 bg-green-50 px-2 py-0.5 rounded-full">+ Complete+ </span>+ )}+ {state === "output-error" && (+ <span className="text-xs font-medium text-red-600 bg-red-50 px-2 py-0.5 rounded-full">+ Error+ </span>+ )}+ {input && Object.keys(input).length > 0 && (+ <button+ type="button"+ onClick={toggleExpanded}+ className="p-1 rounded hover:bg-muted transition-colors"+ >+ {isExpanded ? (+ <ChevronUp className="w-4 h-4 text-muted-foreground" />+ ) : (+ <ChevronDown className="w-4 h-4 text-muted-foreground" />+ )}+ </button>+ )}+ </div>+ </div>+ {input && isExpanded && (+ <div className="px-4 py-3 border-t border-border/40 bg-muted/20">+ {typeof input === "object" && input.xml ? (+ <CodeBlock code={input.xml} language="xml" />+ ) : typeof input === "object" &&+ input.edits &&+ Array.isArray(input.edits) ? (+ <EditDiffDisplay edits={input.edits} />+ ) : typeof input === "object" &&+ Object.keys(input).length > 0 ? (+ <CodeBlock+ code={JSON.stringify(input, null, 2)}+ language="json"+ />+ ) : null}+ </div>+ )}+ {output && state === "output-error" && (+ <div className="px-4 py-3 border-t border-border/40 text-sm text-red-600">+ {output}+ </div>+ )}+ </div>+ )+ }++ return (+ <ScrollArea className="h-full w-full scrollbar-thin">+ {messages.length === 0 ? (+ <div className="py-4 px-4" />+ ) : (+ <div className="py-4 px-4 space-y-4">+ {messages.map((message, messageIndex) => {+ const userMessageText =+ message.role === "user"+ ? getMessageTextContent(message)+ : ""+ const isLastAssistantMessage =+ message.role === "assistant" &&+ (messageIndex === messages.length - 1 ||+ messages+ .slice(messageIndex + 1)+ .every((m) => m.role !== "assistant"))+ const isLastUserMessage =+ message.role === "user" &&+ (messageIndex === messages.length - 1 ||+ messages+ .slice(messageIndex + 1)+ .every((m) => m.role !== "user"))+ const isEditing = editingMessageId === message.id+ const assistantTextContent = getMessageTextContent(message)+ const showPendingIndicator =+ message.role === "user" &&+ isLastUserMessage &&+ (isParsingFiles ||+ status === "submitted" ||+ status === "streaming")+ return (+ <Fragment key={message.id}>+ <div+ className={`flex w-full ${+ message.role === "user"+ ? "justify-end items-start"+ : "justify-start"+ } animate-message-in`}+ style={{+ animationDelay: `${messageIndex * 50}ms`,+ }}+ >+ <div className="max-w-[85%] min-w-0">+ {/* Reasoning blocks - displayed first for assistant messages */}+ {message.role === "assistant" &&+ message.parts?.map(+ (part, partIndex) => {+ if (part.type === "reasoning") {+ const reasoningPart =+ part as {+ type: "reasoning"+ text: string+ }+ const isLastPart =+ partIndex ===+ (message.parts+ ?.length ?? 0) -+ 1+ const isLastMessage =+ message.id ===+ messages[+ messages.length - 1+ ]?.id+ const isStreamingReasoning =+ status ===+ "streaming" &&+ isLastPart &&+ isLastMessage++ return (+ <Reasoning+ key={`${message.id}-reasoning-${partIndex}`}+ className="w-full"+ isStreaming={+ isStreamingReasoning+ }+ defaultOpen={+ isStreamingReasoning+ }+ >+ <ReasoningTrigger />+ <ReasoningContent>+ {+ reasoningPart.text+ }+ </ReasoningContent>+ </Reasoning>+ )+ }+ return null+ },+ )}+ {/* Edit mode for user messages */}+ {isEditing && message.role === "user" ? (+ <div className="flex flex-col gap-2">+ <textarea+ ref={editTextareaRef}+ value={editText}+ onChange={(e) =>+ setEditText(e.target.value)+ }+ className="w-full min-w-[300px] px-4 py-3 text-sm rounded-2xl border border-primary bg-background text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary"+ rows={Math.min(+ editText.split("\n")+ .length + 1,+ 6,+ )}+ onKeyDown={(e) => {+ if (e.key === "Escape") {+ setEditingMessageId(+ null,+ )+ setEditText("")+ } else if (+ e.key === "Enter" &&+ (e.metaKey || e.ctrlKey)+ ) {+ e.preventDefault()+ if (+ editText.trim() &&+ onEditMessage+ ) {+ onEditMessage(+ messageIndex,+ editText.trim(),+ )+ setEditingMessageId(+ null,+ )+ setEditText("")+ }+ }+ }}+ />+ <div className="flex justify-end gap-2">+ <button+ type="button"+ onClick={() => {+ setEditingMessageId(+ null,+ )+ setEditText("")+ }}+ className="px-3 py-1.5 text-xs rounded-lg bg-muted hover:bg-muted/80 transition-colors"+ >+ {t("message.edit.cancel")}+ </button>+ <button+ type="button"+ onClick={() => {+ if (+ editText.trim() &&+ onEditMessage+ ) {+ onEditMessage(+ messageIndex,+ editText.trim(),+ )+ setEditingMessageId(+ null,+ )+ setEditText("")+ }+ }}+ disabled={!editText.trim()}+ className="px-3 py-1.5 text-xs rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50 transition-colors"+ >+ {t("message.edit.save")}+ </button>+ </div>+ </div>+ ) : (+ /* Render parts in order, grouping consecutive text/file parts into bubbles */+ (() => {+ let parts = message.parts || []+ // Fallback: map content to parts when SDK returns content directly.+ if (parts.length === 0) {+ if (+ typeof message.content ===+ "string" &&+ message.content.trim()+ ) {+ parts = [+ {+ type: "text",+ text: message.content,+ },+ ]+ } else if (+ Array.isArray(+ message.content,+ )+ ) {+ parts = message.content+ .map((item: any) => {+ if (+ item?.type ===+ "text"+ ) {+ return {+ type: "text",+ text: String(+ item.text ||+ "",+ ),+ }+ }+ if (+ item?.type ===+ "image_url" &&+ item?.image_url+ ?.url+ ) {+ return {+ type: "file",+ url: item+ .image_url+ .url,+ }+ }+ if (+ item?.type ===+ "image" &&+ (item?.image ||+ item?.url)+ ) {+ return {+ type: "file",+ url:+ item.image ||+ item.url,+ }+ }+ if (+ item?.type ===+ "file" &&+ item?.url+ ) {+ return {+ type: "file",+ url: item.url,+ }+ }+ return null+ })+ .filter(Boolean)+ }+ }++ // Some tool-call responses include empty text parts.+ // Rendering those creates blank message bubbles.+ parts = parts.filter((part: any) => {+ if (part.type === "text") {+ return (+ typeof part.text ===+ "string" &&+ part.text.trim().length >+ 0+ )+ }+ if (part.type === "file") {+ return Boolean(part.url)+ }+ return true+ })++ const groups: {+ type: "content" | "tool"+ parts: typeof parts+ startIndex: number+ }[] = []++ parts.forEach((part, index) => {+ const isToolPart =+ part.type?.startsWith(+ "tool-",+ )+ const isContentPart =+ part.type === "text" ||+ part.type === "file" ||+ part.type === "image" ||+ part.type === "image_url"++ if (isToolPart) {+ groups.push({+ type: "tool",+ parts: [part],+ startIndex: index,+ })+ } else if (isContentPart) {+ const lastGroup =+ groups[+ groups.length - 1+ ]+ if (+ lastGroup?.type ===+ "content"+ ) {+ lastGroup.parts.push(+ part,+ )+ } else {+ groups.push({+ type: "content",+ parts: [part],+ startIndex: index,+ })+ }+ }+ })++ return groups.map(+ (group, groupIndex) => {+ if (group.type === "tool") {+ return renderToolPart(+ group+ .parts[0] as ToolPartLike,+ )+ }++ const attachmentParts = group.parts.filter(+ (p: any) =>+ p.type === "file" ||+ p.type === "image" ||+ p.type === "image_url",+ )+ const textParts = group.parts.filter(+ (p: any) => p.type === "text",+ )+ const fileSections = textParts.flatMap(+ (p: any) =>+ extractFileSectionsFromText(+ String(+ p.text || "",+ ),+ ),+ )+ const hasTextContent = textParts.some(+ (p: any) =>+ stripFileSectionsFromText(+ String(+ p.text || "",+ ),+ ).length > 0,+ )++ return (+ <div+ key={`${message.id}-content-${group.startIndex}`}+ className={groupIndex > 0 ? "mt-3" : ""}+ >+ {message.role === "user" &&+ (attachmentParts.length > 0 ||+ fileSections.length >+ 0) && (+ <div className="mb-2 flex justify-end">+ <div className="flex flex-wrap gap-2 max-w-[85%]">+ {attachmentParts.map((part, partIndex) => {+ const url =+ (part as any).url ||+ (part as any).image ||+ (part as any).image_url?.url+ if (!url) return null+ return (+ <Image+ key={`${message.id}-att-${group.startIndex}-${partIndex}`}+ src={url}+ width={96}+ height={96}+ alt="Uploaded image"+ className="rounded-md border border-white/20"+ style={{ objectFit: "cover" }}+ />+ )+ })}+ {fileSections.map(+ (+ section,+ idx,+ ) => {+ const charDisplay =+ section.charCount &&+ section.charCount >=+ 1000+ ? `${(section.charCount / 1000).toFixed(1)}k`+ : section.charCount+ return (+ <div+ key={`${message.id}-file-top-${group.startIndex}-${idx}`}+ className="inline-flex items-center gap-2 rounded-md border border-border/60 bg-muted/35 px-2.5 py-1.5"+ >+ {section.fileType ===+ "pdf" ? (+ <FileText className="h-4 w-4 text-red-500" />+ ) : (+ <FileCode className="h-4 w-4 text-blue-500" />+ )}+ <span className="text-xs font-medium leading-none">+ {+ section.filename+ }+ </span>+ {charDisplay ? (+ <span className="text-[10px] text-muted-foreground leading-none">+ {+ charDisplay+ }{" "}+ chars+ </span>+ ) : null}+ </div>+ )+ },+ )}+ </div>+ </div>+ )}++ {hasTextContent || message.role !== "user" ? (+ <div className={message.role === "user" ? "flex items-center justify-end gap-1.5" : ""}>+ {message.role === "user" &&+ !isEditing && (+ <div className="flex items-center gap-1 self-center">+ {onEditMessage &&+ isLastUserMessage && (+ <button+ type="button"+ onClick={() => {+ setEditingMessageId(+ message.id,+ )+ setEditText(+ getUserOriginalText(+ message,+ ),+ )+ }}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-muted-foreground hover:bg-muted transition-colors"+ title={t(+ "message.edit",+ )}+ >+ <Pencil className="h-3.5 w-3.5" />+ </button>+ )}+ <button+ type="button"+ onClick={() =>+ copyMessageToClipboard(+ message.id,+ userMessageText ||+ getUserOriginalText(+ message,+ ),+ )+ }+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-muted-foreground hover:bg-muted transition-colors"+ title={+ copiedMessageId ===+ message.id+ ? t(+ "message.copied",+ )+ : copyFailedMessageId ===+ message.id+ ? t(+ "message.copy.failed",+ )+ : t(+ "message.copy",+ )+ }+ >+ {copiedMessageId ===+ message.id ? (+ <Check className="h-3.5 w-3.5 text-green-500" />+ ) : copyFailedMessageId ===+ message.id ? (+ <X className="h-3.5 w-3.5 text-red-500" />+ ) : (+ <Copy className="h-3.5 w-3.5" />+ )}+ </button>+ </div>+ )}+ <div+ className={`px-4 py-3 text-sm leading-relaxed ${+ message.role ===+ "user"+ ? "bg-primary text-primary-foreground rounded-2xl rounded-br-md shadow-sm"+ : message.role ===+ "system"+ ? "bg-destructive/10 text-destructive border border-destructive/20 rounded-2xl rounded-bl-md"+ : "bg-muted/60 text-foreground rounded-2xl rounded-bl-md"+ } ${message.role === "user" && isLastUserMessage && onEditMessage ? "cursor-pointer hover:opacity-90 transition-opacity" : ""}`}+ role={+ message.role ===+ "user" &&+ isLastUserMessage &&+ onEditMessage+ ? "button"+ : undefined+ }+ tabIndex={+ message.role ===+ "user" &&+ isLastUserMessage &&+ onEditMessage+ ? 0+ : undefined+ }+ onClick={() => {+ if (+ message.role ===+ "user" &&+ isLastUserMessage &&+ onEditMessage+ ) {+ setEditingMessageId(+ message.id,+ )+ setEditText(+ getUserOriginalText(+ message,+ ),+ )+ }+ }}+ onKeyDown={(e) => {+ if (+ (e.key ===+ "Enter" ||+ e.key ===+ " ") &&+ message.role ===+ "user" &&+ isLastUserMessage &&+ onEditMessage+ ) {+ e.preventDefault()+ setEditingMessageId(+ message.id,+ )+ setEditText(+ getUserOriginalText(+ message,+ ),+ )+ }+ }}+ title={+ message.role ===+ "user" &&+ isLastUserMessage &&+ onEditMessage+ ? t("message.edit")+ : undefined+ }+ >+ {textParts.map(+ (+ part,+ partIndex,+ ) => {+ if (+ part.type ===+ "text"+ ) {+ const textContent =+ (+ part as {+ text: string+ }+ )+ .text+ const sections = splitTextIntoFileSections(+ textContent,+ ).filter(+ (s) =>+ s.type ===+ "text",+ )+ return (+ <div+ key={`${message.id}-text-${group.startIndex}-${partIndex}`}+ className="space-y-2"+ >+ {sections.map(+ (+ section,+ sectionIndex,+ ) => {+ // Regular text section+ return (+ <div+ key={`${message.id}-textsection-${partIndex}-${sectionIndex}`}+ className={`prose prose-sm max-w-none break-words [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 ${+ message.role ===+ "user"+ ? "[&_*]:!text-primary-foreground prose-code:bg-white/20"+ : "dark:prose-invert"+ }`}+ >+ <ReactMarkdown>+ {+ section.content+ }+ </ReactMarkdown>+ </div>+ )+ },+ )}+ </div>+ )+ }+ return null+ },+ )}+ </div>+ </div>+ ) : null}+ </div>+ )+ },+ )+ })()+ )}+ {/* Action buttons for assistant messages */}+ {message.role === "assistant" &&+ assistantTextContent.trim().length > 0 && (+ <div className="flex items-center gap-1 mt-2">+ {/* Copy button */}+ <button+ type="button"+ onClick={() =>+ copyMessageToClipboard(+ message.id,+ getMessageTextContent(+ message,+ ),+ )+ }+ className={`p-1.5 rounded-lg transition-colors ${+ copiedMessageId ===+ message.id+ ? "text-green-600 bg-green-100"+ : "text-muted-foreground/60 hover:text-foreground hover:bg-muted"+ }`}+ title={+ copiedMessageId ===+ message.id+ ? t("message.copied")+ : t("message.copy")+ }+ >+ {copiedMessageId ===+ message.id ? (+ <Check className="h-3.5 w-3.5" />+ ) : (+ <Copy className="h-3.5 w-3.5" />+ )}+ </button>+ {/* Regenerate button - only on last assistant message, not for cached examples */}+ {onRegenerate &&+ isLastAssistantMessage &&+ !message.parts?.some((p: any) =>+ p.toolCallId?.startsWith(+ "cached-",+ ),+ ) && (+ <button+ type="button"+ onClick={(e) => {+ e.preventDefault()+ e.stopPropagation()+ onRegenerate(messageIndex)+ }}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors cursor-pointer relative z-10"+ title={t("message.regenerate")}+ >+ <RotateCcw className="h-3.5 w-3.5" />+ </button>+ )}+ {/* Divider */}+ <div className="w-px h-4 bg-border mx-1" />+ {/* Thumbs up */}+ <button+ type="button"+ onClick={() =>+ submitFeedback(+ message.id,+ "good",+ )+ }+ className={`p-1.5 rounded-lg transition-colors ${+ feedback[message.id] ===+ "good"+ ? "text-green-600 bg-green-100"+ : "text-muted-foreground/60 hover:text-green-600 hover:bg-green-50"+ }`}+ title={t("message.good")}+ >+ <ThumbsUp className="h-3.5 w-3.5" />+ </button>+ {/* Thumbs down */}+ <button+ type="button"+ onClick={() =>+ submitFeedback(+ message.id,+ "bad",+ )+ }+ className={`p-1.5 rounded-lg transition-colors ${+ feedback[message.id] ===+ "bad"+ ? "text-red-600 bg-red-100"+ : "text-muted-foreground/60 hover:text-red-600 hover:bg-red-50"+ }`}+ title={t("message.bad")}+ >+ <ThumbsDown className="h-3.5 w-3.5" />+ </button>+ </div>+ )}+ </div>+ </div>+ {showPendingIndicator && (+ <div className="flex w-full justify-start animate-message-in mt-3">+ <div className="max-w-[85%] min-w-0">+ <div className="flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground bg-muted/40 rounded-2xl rounded-bl-md">+ <Loader2 className="h-3 w-3 animate-spin" />+ <span>+ {isParsingFiles+ ? t("message.parsing_files")+ : t("message.thinking")}+ </span>+ </div>+ </div>+ </div>+ )}+ </Fragment>+ )+ })}+ </div>+ )}+ <div ref={messagesEndRef} />+ </ScrollArea>+ )+}+diff --git a/src/workspaces/flow/next/components/chat-panel.tsx b/src/workspaces/flow/next/components/chat-panel.tsxnew file mode 100644index 0000000..15709b8--- /dev/null+++ b/src/workspaces/flow/next/components/chat-panel.tsx@@ -0,0 +1,1206 @@+"use client"++import { useChat } from "@ai-sdk/react"+import {+ PanelRightClose,+ PanelRightOpen,+} from "lucide-react"+import type React from "react"+import { useCallback, useEffect, useRef, useState } from "react"+import { Toaster, toast } from "sonner"+import { ButtonWithTooltip } from "@/workspaces/flow/next/components/button-with-tooltip"+import { ChatInput } from "@/workspaces/flow/next/components/chat-input"+import { STORAGE_GLOBAL_CONSTRAINTS_KEY } from "@/workspaces/flow/next/components/global-constraints-dialog"+import { useDiagram } from "@/workspaces/flow/next/contexts/diagram-context"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"+import { getAIConfig } from "@/workspaces/flow/next/lib/ai-config"+import {+ extractPdfText,+ extractTextFileContent,+ isPdfFile,+ isTextFile,+} from "@/workspaces/flow/next/lib/pdf-utils"+import { type FileData, useFileProcessor } from "@/workspaces/flow/next/lib/use-file-processor"+import { useQuotaManager } from "@/workspaces/flow/next/lib/use-quota-manager"+import { formatXML, wrapWithMxFile } from "@/workspaces/flow/next/lib/utils"+import { ChatMessageDisplay } from "./chat-message-display"++// localStorage keys for persistence+const STORAGE_MESSAGES_KEY = "next-ai-draw-io-messages"+const STORAGE_XML_SNAPSHOTS_KEY = "next-ai-draw-io-xml-snapshots"+const STORAGE_SESSION_ID_KEY = "next-ai-draw-io-session-id"+export const STORAGE_DIAGRAM_XML_KEY = "next-ai-draw-io-diagram-xml"++// Type for message parts (tool calls and their states)+interface MessagePart {+ type: string+ state?: string+ toolName?: string+ [key: string]: unknown+}++interface ChatMessage {+ role: string+ parts?: MessagePart[]+ [key: string]: unknown+}++interface ChatPanelProps {+ isVisible: boolean+ onToggleVisibility: () => void+ drawioUi: "min" | "sketch"+ onToggleDrawioUi: () => void+ darkMode: boolean+ onToggleDarkMode: () => void+ isMobile?: boolean+ onCloseProtectionChange?: (enabled: boolean) => void+}++// Constants for tool states+const TOOL_ERROR_STATE = "output-error" as const+const DEBUG =+ typeof import.meta !== "undefined" &&+ import.meta.env &&+ Boolean(import.meta.env.DEV)+const MAX_AUTO_RETRY_COUNT = 3++/**+ * Check if auto-resubmit should happen based on tool errors.+ * Does NOT handle retry count or quota - those are handled by the caller.+ */+function hasToolErrors(messages: ChatMessage[]): boolean {+ const lastMessage = messages[messages.length - 1]+ if (!lastMessage || lastMessage.role !== "assistant") {+ return false+ }++ const toolParts =+ (lastMessage.parts as MessagePart[] | undefined)?.filter((part) =>+ part.type?.startsWith("tool-"),+ ) || []++ if (toolParts.length === 0) {+ return false+ }++ return toolParts.some((part) => part.state === TOOL_ERROR_STATE)+}++export default function ChatPanel({+ isVisible,+ onToggleVisibility,+ drawioUi,+ onToggleDrawioUi,+ darkMode,+ onToggleDarkMode,+ isMobile = false,+ onCloseProtectionChange,+}: ChatPanelProps) {+ const {+ loadDiagram: onDisplayChart,+ handleExport: onExport,+ handleExportWithoutHistory,+ pushHistorySnapshot,+ resolverRef,+ chartXML,+ clearDiagram,+ isDrawioReady,+ } = useDiagram()++ const { t } = useLanguage()++ const onFetchChart = (saveToHistory = true) => {+ if (!isDrawioReady) {+ return Promise.reject(new Error("Draw.io editor is not ready yet. Please wait for it to load."))+ }++ return Promise.race([+ new Promise<string>((resolve, reject) => {+ if (resolverRef && "current" in resolverRef) {+ resolverRef.current = resolve+ }+ const success = saveToHistory ? onExport() : handleExportWithoutHistory()+ if (!success) {+ if (resolverRef && "current" in resolverRef) {+ resolverRef.current = null+ }+ reject(new Error("Failed to trigger Draw.io export. Editor reference is missing."))+ }+ }),+ new Promise<string>((_, reject) =>+ setTimeout(+ () => {+ if (resolverRef && "current" in resolverRef) {+ resolverRef.current = null+ }+ reject(+ new Error(+ "Chart export timed out after 10 seconds",+ ),+ )+ },+ 10000,+ ),+ ),+ ])+ }++ // File processing using extracted hook+ const { files, pdfData, handleFileChange, setFiles } = useFileProcessor()++ const [showHistory, setShowHistory] = useState(false)+ const [, setAccessCodeRequired] = useState(false)+ const [input, setInput] = useState("")+ const [dailyRequestLimit, setDailyRequestLimit] = useState(0)+ const [dailyTokenLimit, setDailyTokenLimit] = useState(0)+ const [tpmLimit, setTpmLimit] = useState(0)+ const [defaultModel, setDefaultModel] = useState("")+ const [isParsingFiles, setIsParsingFiles] = useState(false)++ // Check config on mount+ useEffect(() => {+ fetch("/api/config")+ .then((res) => res.json())+ .then((data) => {+ setAccessCodeRequired(data.accessCodeRequired)+ setDailyRequestLimit(data.dailyRequestLimit || 0)+ setDailyTokenLimit(data.dailyTokenLimit || 0)+ setTpmLimit(data.tpmLimit || 0)+ setDefaultModel(data.defaultModel || "")+ })+ .catch(() => {+ setAccessCodeRequired(false)+ })+ }, [])++ // Quota management using extracted hook+ const quotaManager = useQuotaManager({+ dailyRequestLimit,+ dailyTokenLimit,+ tpmLimit,+ })++ // Generate a unique session ID for Langfuse tracing (restore from localStorage if available)+ const [sessionId, setSessionId] = useState(() => {+ if (typeof window !== "undefined") {+ const saved = localStorage.getItem(STORAGE_SESSION_ID_KEY)+ if (saved) return saved+ }+ return `session-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`+ })++ // Store XML snapshots for each user message (keyed by message index)+ const xmlSnapshotsRef = useRef<Map<number, string>>(new Map())++ // Flag to track if we've restored from localStorage+ const hasRestoredRef = useRef(false)++ // Ref to track latest chartXML for use in callbacks (avoids stale closure)+ const chartXMLRef = useRef(chartXML)+ useEffect(() => {+ chartXMLRef.current = chartXML+ }, [chartXML])++ // Ref to hold stop function for use in onToolCall (avoids stale closure)+ const stopRef = useRef<(() => void) | null>(null)++ // Ref to track consecutive auto-retry count (reset on user action)+ const autoRetryCountRef = useRef(0)++ // Persist processed tool call IDs so collapsing the chat doesn't replay old tool outputs+ const processedToolCallsRef = useRef<Set<string>>(new Set())++ const chat: any = (useChat as any)({+ api: "/api/chat",+ onError: (error) => {+ setIsParsingFiles(false)+ console.error('[ChatPanel] useChat error:', error)+ const rawDetail =+ (error as any)?.message ||+ (error as any)?.cause?.message ||+ (error as any)?.cause?.error ||+ "未知错误"++ let detail = String(rawDetail)+ try {+ const parsed = JSON.parse(detail)+ if (parsed && typeof parsed.error === "string") {+ detail = parsed.error+ }+ } catch {+ // Keep raw detail text when it is not JSON.+ }++ toast.error(`发送失败:${detail}`)+ },+ async onToolCall({ toolCall }) {+ if (DEBUG) {+ console.log(+ `[onToolCall] Tool: ${toolCall.toolName}, CallId: ${toolCall.toolCallId}`,+ )+ }++ if (toolCall.toolName === "display_diagram") {+ const { xml } = toolCall.input as { xml: string }+ if (DEBUG) {+ console.log(+ `[display_diagram] Received XML length: ${xml.length}`,+ )+ }++ // Wrap raw XML with full mxfile structure for draw.io+ const fullXml = wrapWithMxFile(xml)++ // loadDiagram validates and returns error if invalid+ const validationError = onDisplayChart(fullXml)++ if (validationError) {+ console.warn(+ "[display_diagram] Validation error:",+ validationError,+ )+ // Return error to model - sendAutomaticallyWhen will trigger retry+ if (DEBUG) {+ console.log(+ "[display_diagram] Adding tool output with state: output-error",+ )+ }+ addToolOutput({+ tool: "display_diagram",+ toolCallId: toolCall.toolCallId,+ state: "output-error",+ errorText: `${validationError}++Please fix the XML issues and call display_diagram again with corrected XML.++Your failed XML:+\`\`\`xml+${xml}+\`\`\``,+ })+ } else {+ // Success - diagram will be rendered by chat-message-display+ if (DEBUG) {+ console.log(+ "[display_diagram] Success! Adding tool output with state: output-available",+ )+ }+ addToolOutput({+ tool: "display_diagram",+ toolCallId: toolCall.toolCallId,+ output: "Successfully displayed the diagram.",+ })+ if (DEBUG) {+ console.log(+ "[display_diagram] Tool output added. Diagram should be visible now.",+ )+ }+ }+ } else if (toolCall.toolName === "edit_diagram") {+ // 浠?LLM 鐨勫伐鍏疯皟鐢ㄥ弬鏁颁腑瑙f瀯鍑?edits 鏁扮粍+ // 姣忎釜鍏冪礌閮芥槸 { search: 鍘熸潵鐨?XML 鐗囨, replace: 瑕佹浛鎹㈡垚鐨勬柊鐗囨 }+ const { edits } = toolCall.input as {+ edits: Array<{ search: string; replace: string }>+ }++ let currentXml = ""+ try {+ console.log("[edit_diagram] Starting...")+ // 浼樺厛浣跨敤鍐呭瓨涓紦瀛樼殑 chartXML锛岄伩鍏嶆瘡娆¢兘鍚?draw.io 瀵煎嚭 XML+ // 杩欐牱鏇寸ǔ瀹氾紙灏ゅ叾鏄湪杩滅▼鐜锛屾瘮濡?Vercel 涓?iframe 鍙兘鏈夊欢杩燂級+ const cachedXML = chartXMLRef.current+ if (cachedXML) {+ currentXml = cachedXML+ console.log(+ "[edit_diagram] Using cached chartXML, length:",+ currentXml.length,+ )+ } else {+ // 濡傛灉娌℃湁缂撳瓨锛堜緥濡傞〉闈㈠垰鍒锋柊锛夛紝閫€鍥炲埌浠?draw.io iframe 瀵煎嚭涓€娆″畬鏁?XML+ console.log(+ "[edit_diagram] No cached XML, fetching from DrawIO...",+ )+ currentXml = await onFetchChart(false)+ console.log(+ "[edit_diagram] Got XML from export, length:",+ currentXml.length,+ )+ }++ // 鍔ㄦ€佸紩鍏ュ伐鍏峰嚱鏁帮紝鐢?search/replace 瀵瑰師濮?XML 鍋氬眬閮ㄦ浛鎹?+ const { replaceXMLParts } = await import("@/workspaces/flow/next/lib/utils")+ const editedXml = replaceXMLParts(currentXml, edits)++ // 鎶婃浛鎹㈠悗鐨?XML 閲嶆柊鍔犺浇鍒扮敾甯冧笂锛屽悓鏃跺仛涓€娆$粨鏋勬牎楠?+ const validationError = onDisplayChart(editedXml)+ if (validationError) {+ // 濡傛灉鏂?XML 闈炴硶锛屽氨鍦ㄨ亰澶╅噷缁欏嚭閿欒淇℃伅锛屾彁绀虹敤鎴?/ 妯″瀷閲嶆柊鐢熸垚+ console.warn(+ "[edit_diagram] Validation error:",+ validationError,+ )+ addToolOutput({+ tool: "edit_diagram",+ toolCallId: toolCall.toolCallId,+ state: "output-error",+ errorText: `${validationError}++Please fix the XML issues. Ensure you are editing exact lines from the current XML.`,+ })+ } else {+ // 鎴愬姛锛氭洿鏂扮紦瀛樹腑鐨?XML锛屽苟鍦ㄨ亰澶╅噷璁板綍鈥滅紪杈戞垚鍔熲€?+ chartXMLRef.current = editedXml+ addToolOutput({+ tool: "edit_diagram",+ toolCallId: toolCall.toolCallId,+ output: "Successfully edited the diagram.",+ })+ }+ } catch (error) {+ // 浠讳綍杩愯鏃堕敊璇兘浼氳蛋杩欓噷锛堟瘮濡?search 鏈懡涓€佸瓧绗︿覆鏇挎崲澶辫触绛夛級+ console.error("[edit_diagram] Error:", error)+ addToolOutput({+ tool: "edit_diagram",+ toolCallId: toolCall.toolCallId,+ state: "output-error",+ errorText: `Failed to edit diagram: ${error instanceof Error ? error.message : "Unknown error"}`,+ })+ }+ }+ },+ sendAutomaticallyWhen: ({ messages }) => {+ const shouldRetry = hasToolErrors(+ messages as unknown as ChatMessage[],+ )++ if (!shouldRetry) {+ // No error, reset retry count+ autoRetryCountRef.current = 0+ if (DEBUG) {+ console.log("[sendAutomaticallyWhen] No errors, stopping")+ }+ return false+ }++ // Check retry count limit+ if (autoRetryCountRef.current >= MAX_AUTO_RETRY_COUNT) {+ if (DEBUG) {+ console.log(+ `[sendAutomaticallyWhen] Max retry count (${MAX_AUTO_RETRY_COUNT}) reached, stopping`,+ )+ }+ toast.error(+ `自动重试已达到上限(${MAX_AUTO_RETRY_COUNT} 次),请手动重试。`,+ )+ autoRetryCountRef.current = 0+ return false+ }++ // Check quota limits before auto-retry+ const tokenLimitCheck = quotaManager.checkTokenLimit()+ if (!tokenLimitCheck.allowed) {+ if (DEBUG) {+ console.log(+ "[sendAutomaticallyWhen] Token limit exceeded, stopping",+ )+ }+ quotaManager.showTokenLimitToast(tokenLimitCheck.used)+ autoRetryCountRef.current = 0+ return false+ }++ const tpmCheck = quotaManager.checkTPMLimit()+ if (!tpmCheck.allowed) {+ if (DEBUG) {+ console.log(+ "[sendAutomaticallyWhen] TPM limit exceeded, stopping",+ )+ }+ quotaManager.showTPMLimitToast()+ autoRetryCountRef.current = 0+ return false+ }++ // Increment retry count and allow retry+ autoRetryCountRef.current+++ if (DEBUG) {+ console.log(+ `[sendAutomaticallyWhen] Retrying (${autoRetryCountRef.current}/${MAX_AUTO_RETRY_COUNT})`,+ )+ }+ return true+ },+ } as any)++ const {+ messages,+ addToolOutput,+ stop,+ status,+ error,+ setMessages,+ } = chat as any++ // Runtime compatibility fix: use sendMessage if append is missing+ // The installed version of @ai-sdk/react seems to expose sendMessage instead of append+ const appendMessage = chat.append || (chat as any).sendMessage++ useEffect(() => {+ if (typeof appendMessage !== 'function') {+ console.error('[ChatPanel] appendMessage (append/sendMessage) is not a function!', chat)+ }+ }, [chat, appendMessage])++ // Update stopRef so onToolCall can access it+ stopRef.current = stop++ // Ref to track latest messages for unload persistence+ const messagesRef = useRef(messages)+ useEffect(() => {+ messagesRef.current = messages+ }, [messages])++ const messagesEndRef = useRef<HTMLDivElement>(null)++ // Restore messages and XML snapshots from localStorage on mount+ useEffect(() => {+ if (hasRestoredRef.current) return+ hasRestoredRef.current = true++ try {+ // Restore messages+ const savedMessages = localStorage.getItem(STORAGE_MESSAGES_KEY)+ if (savedMessages) {+ const parsed = JSON.parse(savedMessages)+ if (Array.isArray(parsed) && parsed.length > 0) {+ setMessages(parsed)+ }+ }++ // Restore XML snapshots+ const savedSnapshots = localStorage.getItem(+ STORAGE_XML_SNAPSHOTS_KEY,+ )+ if (savedSnapshots) {+ const parsed = JSON.parse(savedSnapshots)+ xmlSnapshotsRef.current = new Map(parsed)+ }+ } catch (error) {+ console.error("Failed to restore from localStorage:", error)+ }+ }, [setMessages])++ // Restore diagram XML when DrawIO becomes ready+ const hasDiagramRestoredRef = useRef(false)+ const [canSaveDiagram, setCanSaveDiagram] = useState(false)+ useEffect(() => {+ // Reset restore flag when DrawIO is not ready (e.g., theme/UI change remounts it)+ if (!isDrawioReady) {+ hasDiagramRestoredRef.current = false+ setCanSaveDiagram(false)+ return+ }+ if (hasDiagramRestoredRef.current) return+ hasDiagramRestoredRef.current = true++ try {+ const savedDiagramXml = localStorage.getItem(+ STORAGE_DIAGRAM_XML_KEY,+ )+ console.log(+ "[ChatPanel] Restoring diagram, has saved XML:",+ !!savedDiagramXml,+ )+ if (savedDiagramXml) {+ console.log(+ "[ChatPanel] Loading saved diagram XML, length:",+ savedDiagramXml.length,+ )+ // Skip validation for trusted saved diagrams+ onDisplayChart(savedDiagramXml, true)+ chartXMLRef.current = savedDiagramXml+ }+ } catch (error) {+ console.error("Failed to restore diagram from localStorage:", error)+ }++ // Allow saving after restore is complete+ setTimeout(() => {+ console.log("[ChatPanel] Enabling diagram save")+ setCanSaveDiagram(true)+ }, 500)+ }, [isDrawioReady, onDisplayChart])++ // Save messages to localStorage whenever they change+ useEffect(() => {+ if (!hasRestoredRef.current) return+ try {+ localStorage.setItem(STORAGE_MESSAGES_KEY, JSON.stringify(messages))+ } catch (error) {+ console.error("Failed to save messages to localStorage:", error)+ }+ }, [messages])++ // Save diagram XML to localStorage whenever it changes+ useEffect(() => {+ if (!canSaveDiagram) return+ if (chartXML && chartXML.length > 300) {+ localStorage.setItem(STORAGE_DIAGRAM_XML_KEY, chartXML)+ }+ }, [chartXML, canSaveDiagram])++ // Save XML snapshots to localStorage whenever they change+ const saveXmlSnapshots = useCallback(() => {+ try {+ const snapshotsArray = Array.from(xmlSnapshotsRef.current.entries())+ localStorage.setItem(+ STORAGE_XML_SNAPSHOTS_KEY,+ JSON.stringify(snapshotsArray),+ )+ } catch (error) {+ console.error(+ "Failed to save XML snapshots to localStorage:",+ error,+ )+ }+ }, [])++ // Save session ID to localStorage+ useEffect(() => {+ localStorage.setItem(STORAGE_SESSION_ID_KEY, sessionId)+ }, [sessionId])++ useEffect(() => {+ if (messagesEndRef.current) {+ messagesEndRef.current.scrollIntoView({ behavior: "smooth" })+ }+ }, [messages])++ useEffect(() => {+ if (status === "streaming" && isParsingFiles) {+ setIsParsingFiles(false)+ }+ }, [status, isParsingFiles])++ // Save state right before page unload (refresh/close)+ useEffect(() => {+ const handleBeforeUnload = () => {+ try {+ localStorage.setItem(+ STORAGE_MESSAGES_KEY,+ JSON.stringify(messagesRef.current),+ )+ localStorage.setItem(+ STORAGE_XML_SNAPSHOTS_KEY,+ JSON.stringify(+ Array.from(xmlSnapshotsRef.current.entries()),+ ),+ )+ const xml = chartXMLRef.current+ if (xml && xml.length > 300) {+ localStorage.setItem(STORAGE_DIAGRAM_XML_KEY, xml)+ }+ localStorage.setItem(STORAGE_SESSION_ID_KEY, sessionId)+ } catch (error) {+ console.error("Failed to persist state before unload:", error)+ }+ }++ window.addEventListener("beforeunload", handleBeforeUnload)+ return () =>+ window.removeEventListener("beforeunload", handleBeforeUnload)+ }, [sessionId])++ const onFormSubmit = async (e: React.FormEvent<HTMLFormElement>) => {+ e.preventDefault()+ const isProcessing = status === "streaming" || status === "submitted"+ if (input.trim() && !isProcessing) {+ let chartXml = chartXML || ""+ try {+ if (isDrawioReady) {+ try {+ chartXml = await onFetchChart()+ } catch (error) {+ console.warn("Failed to fetch chart data, using current state:", error)+ }+ }++ chartXml = formatXML(chartXml)+ pushHistorySnapshot(chartXml)++ // Update ref directly to avoid race condition with React's async state update+ // This ensures edit_diagram has the correct XML before AI responds+ chartXMLRef.current = chartXml++ // Build user text by concatenating input with pre-extracted text+ // (Backend only reads first text part, so we must combine them)+ setIsParsingFiles(true)+ const parts: any[] = []+ const { userText, uploadedFiles } = await processFilesAndAppendContent(+ input,+ files,+ pdfData,+ parts,+ )++ // Add the combined text as the first part+ parts.unshift({ type: "text", text: userText })++ // Get previous XML from the last snapshot (before this message)+ const snapshotKeys = Array.from(+ xmlSnapshotsRef.current.keys(),+ ).sort((a, b) => b - a)+ const previousXml =+ snapshotKeys.length > 0+ ? xmlSnapshotsRef.current.get(snapshotKeys[0]) || ""+ : ""++ // Save XML snapshot for this message (will be at index = current messages.length)+ const messageIndex = messages.length+ xmlSnapshotsRef.current.set(messageIndex, chartXml)+ saveXmlSnapshots()++ // Check all quota limits+ if (!checkAllQuotaLimits()) {+ setIsParsingFiles(false)+ return+ }++ sendChatMessage(parts, chartXml, previousXml, sessionId, uploadedFiles)++ // Token count is tracked in onFinish with actual server usage+ setInput("")+ setFiles([])+ } catch (error) {+ console.error("Error fetching chart data:", error)+ setIsParsingFiles(false)+ }+ }+ }++ const handleInputChange = (+ e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,+ ) => {+ setInput(e.target.value)+ }++ const normalizeMessageToParts = (message: any): any[] => {+ if (Array.isArray(message?.parts)) return message.parts+ if (typeof message?.content === "string") {+ return [{ type: "text", text: message.content }]+ }+ if (Array.isArray(message?.content)) {+ return message.content+ .map((item: any) => {+ if (typeof item === "string") return { type: "text", text: item }+ if (item?.type === "text") return { type: "text", text: item.text || "" }+ if (item?.type === "image_url" && item?.image_url?.url) {+ return { type: "file", url: item.image_url.url, mediaType: "image/*" }+ }+ if (item?.type === "image" && (item?.url || item?.image)) {+ return {+ type: "file",+ url: item.url || item.image,+ mediaType: item.mediaType || item.mimeType || "image/*",+ }+ }+ if (item?.type === "file" && item?.url) {+ return {+ type: "file",+ url: item.url,+ mediaType: item.mediaType || item.mimeType || "",+ }+ }+ return null+ })+ .filter(Boolean)+ }+ return []+ }++ const extractFileBlocksFromText = (text: string): string[] => {+ const blocks: string[] = []+ const pattern = /\[(PDF|File):\s*[^\]]+\][\s\S]*?(?=\n\n\[(PDF|File):|$)/g+ let m: RegExpExecArray | null+ while ((m = pattern.exec(String(text || ""))) !== null) {+ blocks.push(String(m[0] || "").trim())+ }+ return blocks+ }++ const getMessageTextForEdit = (message: any): string => {+ const parts = normalizeMessageToParts(message)+ return parts+ .filter((p: any) => p?.type === "text")+ .map((p: any) => String(p?.text || ""))+ .join("\n")+ }++ // Helper functions for message actions (regenerate/edit)+ // Extract previous XML snapshot before a given message index+ const getPreviousXml = (beforeIndex: number): string => {+ const snapshotKeys = Array.from(xmlSnapshotsRef.current.keys())+ .filter((k) => k < beforeIndex)+ .sort((a, b) => b - a)+ return snapshotKeys.length > 0+ ? xmlSnapshotsRef.current.get(snapshotKeys[0]) || ""+ : ""+ }++ // Restore diagram from snapshot and update ref+ const restoreDiagramFromSnapshot = (savedXml: string) => {+ onDisplayChart(savedXml, true) // Skip validation for trusted snapshots+ chartXMLRef.current = savedXml+ }++ // Clean up snapshots after a given message index+ const cleanupSnapshotsAfter = (messageIndex: number) => {+ for (const key of xmlSnapshotsRef.current.keys()) {+ if (key > messageIndex) {+ xmlSnapshotsRef.current.delete(key)+ }+ }+ saveXmlSnapshots()+ }++ // Check all quota limits (daily requests, tokens, TPM)+ const checkAllQuotaLimits = (): boolean => {+ const limitCheck = quotaManager.checkDailyLimit()+ if (!limitCheck.allowed) {+ quotaManager.showQuotaLimitToast()+ return false+ }++ const tokenLimitCheck = quotaManager.checkTokenLimit()+ if (!tokenLimitCheck.allowed) {+ quotaManager.showTokenLimitToast(tokenLimitCheck.used)+ return false+ }++ const tpmCheck = quotaManager.checkTPMLimit()+ if (!tpmCheck.allowed) {+ quotaManager.showTPMLimitToast()+ return false+ }++ return true+ }++ // Send chat message with headers and increment quota+ const sendChatMessage = (+ parts: any,+ xml: string,+ previousXml: string,+ sessionId: string,+ uploadedFiles: Array<{+ name: string+ mediaType: string+ dataUrl: string+ extractedText?: string+ }> = [],+ ) => {+ // Reset auto-retry count on user-initiated message+ autoRetryCountRef.current = 0++ const config = getAIConfig()+ const modelToUse = String(config.aiModel || defaultModel || "").trim()+ const imageModelToUse = String(+ (config as { aiImageModel?: string }).aiImageModel || "",+ ).trim()+ const globalConstraints = localStorage.getItem(STORAGE_GLOBAL_CONSTRAINTS_KEY) || ""++ // Safe parts access+ const safeParts = Array.isArray(parts) ? parts : []++ // Extract the text content from parts for sendMessage+ const textPart = safeParts.find((p: any) => p.type === 'text')+ const userInput = textPart?.text || ''++ // Extract image attachments from parts+ const imageAttachments = safeParts+ .map((p: any) => {+ if (p?.type === "file" && p?.url) {+ return { url: p.url, contentType: p.mediaType || p.mimeType || "" }+ }+ if (p?.type === "image" && (p?.url || p?.image)) {+ return { url: p.url || p.image, contentType: p.mediaType || p.mimeType || "" }+ }+ if (p?.type === "image_url" && p?.image_url?.url) {+ return { url: p.image_url.url, contentType: p.mediaType || p.mimeType || "" }+ }+ return null+ })+ .filter((x: any) => x?.url && String(x.url).startsWith("data:image/"))++ const messageContent: any[] = []+ for (const attachment of imageAttachments) {+ messageContent.push({+ type: "image_url",+ image_url: { url: attachment.url },+ })+ }+ messageContent.push({ type: "text", text: userInput })++ const message: any = {+ role: "user",+ content: messageContent,+ }++ console.log('[sendChatMessage] calling appendMessage', { message, appendMessage })++ if (typeof appendMessage !== 'function') {+ console.error('[sendChatMessage] appendMessage is not a function!', appendMessage)+ toast.error("内部错误:聊天初始化失败,请刷新页面后重试。")+ return+ }++ if (!modelToUse) {+ toast.error("未配置模型。请在顶部设置填写模型,或在服务端配置 AI_MODEL。")+ return+ }++ appendMessage(+ message,+ {+ body: {+ xml,+ previousXml,+ sessionId,+ uploadedFiles,+ aiConfig: {+ provider: config.aiProvider,+ baseUrl: config.aiBaseUrl,+ apiKey: config.aiApiKey,+ chatModel: modelToUse,+ imageModel: imageModelToUse,+ },+ aiConstraints: globalConstraints,+ },+ headers: {+ "x-access-code": config.accessCode,+ ...(config.aiProvider && {+ "x-ai-provider": config.aiProvider,+ }),+ ...(config.aiBaseUrl && {+ "x-ai-base-url": config.aiBaseUrl,+ }),+ ...(config.aiApiKey && { "x-ai-api-key": config.aiApiKey }),+ ...(modelToUse && { "x-ai-model": modelToUse }),+ ...(modelToUse && { "x-ai-chat-model": modelToUse }),+ ...(imageModelToUse && {+ "x-ai-image-model": imageModelToUse,+ }),+ ...(globalConstraints && {+ "x-ai-constraints": encodeURIComponent(globalConstraints),+ }),+ },++ },+ )+ quotaManager.incrementRequestCount()+ }++ // Process files and append content to user text (handles PDF, text, and optionally images)+ const processFilesAndAppendContent = async (+ baseText: string,+ files: File[],+ pdfData: Map<File, FileData>,+ imageParts?: any[],+ ): Promise<{+ userText: string+ uploadedFiles: Array<{+ name: string+ mediaType: string+ dataUrl: string+ extractedText?: string+ }>+ }> => {+ let userText = baseText+ const uploadedFiles: Array<{+ name: string+ mediaType: string+ dataUrl: string+ extractedText?: string+ }> = []++ for (const file of files) {+ const reader = new FileReader()+ const dataUrl = await new Promise<string>((resolve) => {+ reader.onload = () => resolve(reader.result as string)+ reader.readAsDataURL(file)+ })+ if (file.type.startsWith("image/") && imageParts) {+ imageParts.push({+ type: "file",+ url: dataUrl,+ mediaType: file.type,+ })+ continue+ }+ if (isPdfFile(file) || isTextFile(file) || file.name.toLowerCase().endsWith(".docx")) {+ const extracted = pdfData.get(file)+ let extractedText =+ extracted && !extracted.isExtracting && extracted.text+ ? extracted.text+ : undefined++ // Ensure PDF/TXT content is available before sending.+ // This avoids relying on backend PDF parsing when client-side extraction is ready.+ if (!extractedText) {+ try {+ if (isPdfFile(file)) {+ extractedText = await extractPdfText(file)+ } else if (isTextFile(file)) {+ extractedText = await extractTextFileContent(file)+ }+ } catch (error) {+ console.warn(+ `[processFilesAndAppendContent] Failed to pre-extract ${file.name}:`,+ error,+ )+ }+ }++ uploadedFiles.push({+ name: file.name,+ mediaType: file.type || "application/octet-stream",+ dataUrl,+ extractedText,+ })+ userText += `\n\n[File: ${file.name}]\n(Uploaded and parsed by backend)`+ }+ }++ return { userText, uploadedFiles }+ }++ const handleRegenerate = async (messageIndex: number) => {+ const isProcessing = status === "streaming" || status === "submitted"+ if (isProcessing) {+ toast.warning(t("common.busy"))+ return+ }++ // Find the user message before this assistant message+ let userMessageIndex = messageIndex - 1+ while (+ userMessageIndex >= 0 &&+ messages[userMessageIndex].role !== "user"+ ) {+ userMessageIndex--+ }++ if (userMessageIndex < 0) {+ console.error("Could not find preceding user message for index:", messageIndex)+ toast.error(t("common.regenerate_error"))+ return+ }++ const userMessage = messages[userMessageIndex]++ // Ensure userParts is a valid array, constructing from content if necessary+ const userParts = normalizeMessageToParts(userMessage)++ // Get the saved XML snapshot for this user message+ const savedXml = xmlSnapshotsRef.current.get(userMessageIndex)+ if (!savedXml) {+ console.error(+ "No saved XML snapshot for message index:",+ userMessageIndex,+ )+ toast.error(t("common.regenerate_error"))+ return+ }++ // Get previous XML and restore diagram state+ const previousXml = getPreviousXml(userMessageIndex)+ restoreDiagramFromSnapshot(savedXml)++ // Clean up snapshots for messages after the user message (they will be removed)+ cleanupSnapshotsAfter(userMessageIndex)++ // Remove the user message AND assistant message onwards (sendMessage will re-add the user message)+ // Use flushSync to ensure state update is processed synchronously before sending+ const newMessages = messages.slice(0, userMessageIndex)+ setMessages(newMessages)++ // Check all quota limits+ if (!checkAllQuotaLimits()) return++ // Wait for state update to settle before sending+ // This avoids race conditions where append uses old state or fails+ setTimeout(() => {+ sendChatMessage(userParts, savedXml, previousXml, sessionId)+ }, 0)++ // Token count is tracked in onFinish with actual server usage+ }++ const handleEditMessage = async (messageIndex: number, newText: string) => {+ const isProcessing = status === "streaming" || status === "submitted"+ if (isProcessing) return++ const message = messages[messageIndex]+ if (!message || message.role !== "user") return++ // Get the saved XML snapshot for this user message+ const savedXml = xmlSnapshotsRef.current.get(messageIndex)+ if (!savedXml) {+ console.error(+ "No saved XML snapshot for message index:",+ messageIndex,+ )+ return+ }++ // Get previous XML and restore diagram state+ const previousXml = getPreviousXml(messageIndex)+ restoreDiagramFromSnapshot(savedXml)++ // Clean up snapshots for messages after the user message (they will be removed)+ cleanupSnapshotsAfter(messageIndex)++ // Create new parts with updated text+ const currentParts = normalizeMessageToParts(message)+ const existingText = getMessageTextForEdit(message as any)+ const preservedFileBlocks = extractFileBlocksFromText(existingText)+ const mergedEditedText =+ preservedFileBlocks.length > 0+ ? `${newText.trim()}\n\n${preservedFileBlocks.join("\n\n")}`+ : newText+ const newParts =+ currentParts.length > 0+ ? currentParts.map((part: any) =>+ part.type === "text"+ ? { ...part, text: mergedEditedText }+ : part,+ )+ : [{ type: "text", text: mergedEditedText }]++ // Remove the user message AND assistant message onwards (sendMessage will re-add the user message)+ // Use flushSync to ensure state update is processed synchronously before sending+ const newMessages = messages.slice(0, messageIndex)+ setMessages(newMessages)++ // Check all quota limits+ if (!checkAllQuotaLimits()) return++ // Wait for state update to settle before sending+ // This avoids race conditions where append uses old state or fails+ setTimeout(() => {+ sendChatMessage(newParts, savedXml, previousXml, sessionId)+ }, 0)+ // Token count is tracked in onFinish with actual server usage+ }++ // Collapsed view (desktop only)+ if (!isVisible && !isMobile) {+ return (+ <div className="h-full flex flex-col items-center pt-4 bg-card border border-border/30 rounded-xl">+ <ButtonWithTooltip+ tooltipContent={t("chat.panel.show")}+ variant="ghost"+ size="icon"+ onClick={onToggleVisibility}+ className="hover:bg-accent transition-colors"+ >+ <PanelRightOpen className="h-5 w-5 text-muted-foreground" />+ </ButtonWithTooltip>+ </div>+ )+ }++ // Full view+ return (+ <div className="h-full flex flex-col bg-card shadow-soft animate-slide-in-right rounded-xl border border-border/30 relative">+ <Toaster+ position="top-center"+ richColors+ expand+ toastOptions={{+ style: {+ maxWidth: "480px",+ },+ }}+ />+ {/* Header */}+ <header+ className={`${isMobile ? "px-3 py-2" : "px-5 py-4"} border-b border-border/50`}+ >+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <span className="text-base font-semibold tracking-tight whitespace-nowrap">+ {t("chat.panel.title")}+ </span>+ </div>+ <div className="flex items-center gap-1">+ {!isMobile && (+ <ButtonWithTooltip+ tooltipContent={t("chat.panel.hide")}+ variant="ghost"+ size="icon"+ onClick={onToggleVisibility}+ className="hover:bg-accent"+ >+ <PanelRightClose className="h-5 w-5 text-muted-foreground" />+ </ButtonWithTooltip>+ )}+ </div>+ </div>+ </header>++ {/* Messages */}+ <main className="flex-1 w-full overflow-hidden">+ <ChatMessageDisplay+ messages={messages}+ setInput={setInput}+ setFiles={handleFileChange}+ processedToolCallsRef={processedToolCallsRef}+ sessionId={sessionId}+ onRegenerate={handleRegenerate}+ status={status}+ isParsingFiles={isParsingFiles}+ onEditMessage={handleEditMessage}+ />+ </main>++ {/* Input */}+ <footer+ className={`${isMobile ? "p-2" : "p-4"} border-t border-border/50 bg-card/50`}+ >+ <ChatInput+ input={input}+ status={status}+ onStop={stop}+ onSubmit={onFormSubmit}+ onChange={handleInputChange}+ onClearChat={() => {+ setMessages([])+ clearDiagram()+ const newSessionId = `session-${Date.now()}-${Math.random()+ .toString(36)+ .slice(2, 9)}`+ setSessionId(newSessionId)+ xmlSnapshotsRef.current.clear()+ // Clear localStorage+ localStorage.removeItem(STORAGE_MESSAGES_KEY)+ localStorage.removeItem(STORAGE_XML_SNAPSHOTS_KEY)+ localStorage.removeItem(STORAGE_DIAGRAM_XML_KEY)+ localStorage.setItem(+ STORAGE_SESSION_ID_KEY,+ newSessionId,+ )+ }}+ files={files}+ onFileChange={handleFileChange}+ pdfData={pdfData}+ showHistory={showHistory}+ onToggleHistory={setShowHistory}+ sessionId={sessionId}+ error={error}+ />+ </footer>+ </div>+ )+}+diff --git a/src/workspaces/flow/next/components/code-block.tsx b/src/workspaces/flow/next/components/code-block.tsxnew file mode 100644index 0000000..45948d0--- /dev/null+++ b/src/workspaces/flow/next/components/code-block.tsx@@ -0,0 +1,94 @@+"use client"++import { Check, Copy, X } from "lucide-react"+import { Highlight, themes } from "prism-react-renderer"+import { useState } from "react"++interface CodeBlockProps {+ code: string+ language?: "xml" | "json"+}++export function CodeBlock({ code, language = "xml" }: CodeBlockProps) {+ const [copied, setCopied] = useState(false)+ const [copyFailed, setCopyFailed] = useState(false)++ const copyCode = async () => {+ try {+ await navigator.clipboard.writeText(code)+ setCopied(true)+ setCopyFailed(false)+ setTimeout(() => setCopied(false), 1500)+ } catch {+ setCopyFailed(true)+ setCopied(false)+ setTimeout(() => setCopyFailed(false), 1500)+ }+ }++ return (+ <div className="overflow-hidden w-full">+ <div className="mb-1 flex justify-end">+ <button+ type="button"+ onClick={copyCode}+ className="inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors"+ title={+ copied+ ? "Copied"+ : copyFailed+ ? "Copy failed"+ : "Copy code"+ }+ >+ {copied ? (+ <Check className="h-3 w-3 text-green-500" />+ ) : copyFailed ? (+ <X className="h-3 w-3 text-red-500" />+ ) : (+ <Copy className="h-3 w-3" />+ )}+ <span>{copied ? "Copied" : "Copy"}</span>+ </button>+ </div>+ <Highlight theme={themes.github} code={code} language={language}>+ {({+ className: _className,+ style,+ tokens,+ getLineProps,+ getTokenProps,+ }) => (+ <pre+ className="text-[11px] leading-relaxed overflow-x-auto overflow-y-auto max-h-48 scrollbar-thin break-all"+ style={{+ ...style,+ fontFamily:+ "var(--font-mono), ui-monospace, monospace",+ backgroundColor: "transparent",+ margin: 0,+ padding: 0,+ wordBreak: "break-all",+ whiteSpace: "pre-wrap",+ }}+ >+ {tokens.map((line, i) => (+ <div+ key={i}+ {...getLineProps({ line })}+ style={{ wordBreak: "break-all" }}+ >+ {line.map((token, key) => (+ <span+ key={key}+ {...getTokenProps({ token })}+ />+ ))}+ </div>+ ))}+ </pre>+ )}+ </Highlight>+ </div>+ )+}diff --git a/src/workspaces/flow/next/components/error-toast.tsx b/src/workspaces/flow/next/components/error-toast.tsxnew file mode 100644index 0000000..c4872dd--- /dev/null+++ b/src/workspaces/flow/next/components/error-toast.tsx@@ -0,0 +1,45 @@+"use client"++import type React from "react"++interface ErrorToastProps {+ message: React.ReactNode+ onDismiss: () => void+}++export function ErrorToast({ message, onDismiss }: ErrorToastProps) {+ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === "Enter" || e.key === " " || e.key === "Escape") {+ e.preventDefault()+ onDismiss()+ }+ }++ return (+ <div+ role="alert"+ aria-live="polite"+ tabIndex={0}+ onClick={onDismiss}+ onKeyDown={handleKeyDown}+ className="flex items-center gap-3 bg-card border border-border/50 px-4 py-3 rounded-xl shadow-sm cursor-pointer hover:bg-muted/50 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-colors"+ >+ <div className="flex items-center justify-center w-8 h-8 rounded-full bg-destructive/10 flex-shrink-0">+ <svg+ className="w-4 h-4 text-destructive"+ viewBox="0 0 20 20"+ fill="currentColor"+ aria-hidden="true"+ >+ <path+ fillRule="evenodd"+ d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"+ clipRule="evenodd"+ />+ </svg>+ </div>+ <span className="text-sm text-foreground">{message}</span>+ </div>+ )+}+diff --git a/src/workspaces/flow/next/components/file-preview-list.tsx b/src/workspaces/flow/next/components/file-preview-list.tsxnew file mode 100644index 0000000..f7ab612--- /dev/null+++ b/src/workspaces/flow/next/components/file-preview-list.tsx@@ -0,0 +1,188 @@+"use client"++import { FileCode, FileText, Loader2, X } from "lucide-react"+import Image from "@/workspaces/flow/next/shims/next-image"+import { useEffect, useRef, useState } from "react"+import { isPdfFile, isTextFile } from "@/workspaces/flow/next/lib/pdf-utils"++function formatCharCount(count: number): string {+ if (count >= 1000) {+ return `${(count / 1000).toFixed(1)}k`+ }+ return String(count)+}++interface FilePreviewListProps {+ files: File[]+ onRemoveFile: (fileToRemove: File) => void+ pdfData?: Map<+ File,+ { text: string; charCount: number; isExtracting: boolean }+ >+}++export function FilePreviewList({+ files,+ onRemoveFile,+ pdfData = new Map(),+}: FilePreviewListProps) {+ const [selectedImage, setSelectedImage] = useState<string | null>(null)+ const [imageUrls, setImageUrls] = useState<Map<File, string>>(new Map())+ const imageUrlsRef = useRef<Map<File, string>>(new Map())++ // Create and cleanup object URLs when files change+ useEffect(() => {+ const currentUrls = imageUrlsRef.current+ const newUrls = new Map<File, string>()++ files.forEach((file) => {+ if (file.type.startsWith("image/")) {+ // Reuse existing URL if file is already tracked+ const existingUrl = currentUrls.get(file)+ if (existingUrl) {+ newUrls.set(file, existingUrl)+ } else {+ newUrls.set(file, URL.createObjectURL(file))+ }+ }+ })++ // Revoke URLs for files that are no longer in the list+ currentUrls.forEach((url, file) => {+ if (!newUrls.has(file)) {+ URL.revokeObjectURL(url)+ }+ })++ imageUrlsRef.current = newUrls+ setImageUrls(newUrls)+ }, [files])++ // Cleanup all URLs on unmount only+ useEffect(() => {+ return () => {+ imageUrlsRef.current.forEach((url) => {+ URL.revokeObjectURL(url)+ })+ // Clear the ref so StrictMode remount creates fresh URLs+ imageUrlsRef.current = new Map()+ }+ }, [])++ // Clear selected image if its URL was revoked+ useEffect(() => {+ if (+ selectedImage &&+ !Array.from(imageUrls.values()).includes(selectedImage)+ ) {+ setSelectedImage(null)+ }+ }, [imageUrls, selectedImage])++ if (files.length === 0) return null++ return (+ <>+ <div className="flex flex-wrap gap-2 mt-2 p-2 bg-muted/50 rounded-md">+ {files.map((file, index) => {+ const imageUrl = imageUrls.get(file) || null+ const pdfInfo = pdfData.get(file)+ return (+ <div key={file.name + index} className="relative group">+ <div+ className={`w-20 h-20 border rounded-md overflow-hidden bg-muted ${+ file.type.startsWith("image/") && imageUrl+ ? "cursor-pointer"+ : ""+ }`}+ onClick={() =>+ file.type.startsWith("image/") &&+ imageUrl &&+ setSelectedImage(imageUrl)+ }+ >+ {file.type.startsWith("image/") && imageUrl ? (+ <Image+ src={imageUrl}+ alt={file.name}+ width={80}+ height={80}+ className="object-cover w-full h-full"+ unoptimized+ />+ ) : isPdfFile(file) || isTextFile(file) ? (+ <div className="flex flex-col items-center justify-center h-full p-1">+ {pdfInfo?.isExtracting ? (+ <Loader2 className="h-6 w-6 text-blue-500 mb-1 animate-spin" />+ ) : isPdfFile(file) ? (+ <FileText className="h-6 w-6 text-red-500 mb-1" />+ ) : (+ <FileCode className="h-6 w-6 text-blue-500 mb-1" />+ )}+ <span className="text-xs text-center truncate w-full px-1">+ {file.name.length > 10+ ? `${file.name.slice(0, 7)}...`+ : file.name}+ </span>+ {pdfInfo?.isExtracting ? (+ <span className="text-[10px] text-muted-foreground">+ Reading...+ </span>+ ) : pdfInfo?.charCount ? (+ <span className="text-[10px] text-green-600 font-medium">+ {formatCharCount(+ pdfInfo.charCount,+ )}{" "}+ chars+ </span>+ ) : null}+ </div>+ ) : (+ <div className="flex items-center justify-center h-full text-xs text-center p-1">+ {file.name}+ </div>+ )}+ </div>+ <button+ type="button"+ onClick={() => onRemoveFile(file)}+ className="absolute -top-2 -right-2 bg-destructive rounded-full p-1 opacity-0 group-hover:opacity-100 transition-opacity"+ aria-label="Remove file"+ >+ <X className="h-3 w-3" />+ </button>+ </div>+ )+ })}+ </div>++ {/* Image Modal/Lightbox */}+ {selectedImage && (+ <div+ className="fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4"+ onClick={() => setSelectedImage(null)}+ >+ <button+ className="absolute top-4 right-4 z-10 bg-white rounded-full p-2 hover:bg-gray-200 transition-colors"+ onClick={() => setSelectedImage(null)}+ aria-label="Close"+ >+ <X className="h-6 w-6" />+ </button>+ <div className="relative w-auto h-auto max-w-[90vw] max-h-[90vh]">+ <Image+ src={selectedImage}+ alt="Full size preview of uploaded diagram or image"+ width={1200}+ height={900}+ className="object-contain max-w-full max-h-[90vh] w-auto h-auto"+ onClick={(e) => e.stopPropagation()}+ unoptimized+ />+ </div>+ </div>+ )}+ </>+ )+}+diff --git a/src/workspaces/flow/next/components/global-constraints-dialog.tsx b/src/workspaces/flow/next/components/global-constraints-dialog.tsxnew file mode 100644index 0000000..2959392--- /dev/null+++ b/src/workspaces/flow/next/components/global-constraints-dialog.tsx@@ -0,0 +1,73 @@+"use client"++import { useEffect, useState } from "react"+import { toast } from "sonner"+import { Button } from "@/workspaces/flow/next/components/ui/button"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/flow/next/components/ui/dialog"+import { Textarea } from "@/workspaces/flow/next/components/ui/textarea"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++export const STORAGE_GLOBAL_CONSTRAINTS_KEY = "next-ai-draw-io-global-constraints"++interface GlobalConstraintsDialogProps {+ open: boolean+ onOpenChange: (open: boolean) => void+}++export function GlobalConstraintsDialog({+ open,+ onOpenChange,+}: GlobalConstraintsDialogProps) {+ const { t } = useLanguage()+ const [constraints, setConstraints] = useState("")++ useEffect(() => {+ if (open) {+ const saved = localStorage.getItem(STORAGE_GLOBAL_CONSTRAINTS_KEY) || ""+ setConstraints(saved)+ }+ }, [open])++ const handleSave = () => {+ localStorage.setItem(STORAGE_GLOBAL_CONSTRAINTS_KEY, constraints)+ toast.success(t("common.saved"), {+ position: "top-center",+ duration: 2000,+ })+ onOpenChange(false)+ }++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="sm:max-w-[500px]">+ <DialogHeader>+ <DialogTitle>{t("global_constraints.title")}</DialogTitle>+ <DialogDescription>+ {t("global_constraints.description")}+ </DialogDescription>+ </DialogHeader>+ <div className="grid gap-4 py-4">+ <Textarea+ value={constraints}+ onChange={(e) => setConstraints(e.target.value)}+ placeholder={t("global_constraints.placeholder")}+ className="min-h-[200px]"+ />+ </div>+ <DialogFooter>+ <Button onClick={handleSave}>+ {t("common.save")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}+diff --git a/src/workspaces/flow/next/components/history-dialog.tsx b/src/workspaces/flow/next/components/history-dialog.tsxnew file mode 100644index 0000000..ad0b6b9--- /dev/null+++ b/src/workspaces/flow/next/components/history-dialog.tsx@@ -0,0 +1,108 @@+"use client"++import Image from "@/workspaces/flow/next/shims/next-image"+import { useState } from "react"+import { Button } from "@/workspaces/flow/next/components/ui/button"+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/flow/next/components/ui/dialog"+import { useDiagram } from "@/workspaces/flow/next/contexts/diagram-context"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++interface HistoryDialogProps {+ showHistory: boolean+ onToggleHistory: (show: boolean) => void+}++export function HistoryDialog({+ showHistory,+ onToggleHistory,+}: HistoryDialogProps) {+ const { diagramHistory, loadDiagram: onDisplayChart } = useDiagram()+ const { t } = useLanguage()+ const [selectedIndex, setSelectedIndex] = useState<number | null>(null)++ const handleClose = () => {+ setSelectedIndex(null)+ onToggleHistory(false)+ }++ const handleConfirmRestore = () => {+ if (selectedIndex !== null) {+ // Skip validation for trusted history snapshots+ onDisplayChart(diagramHistory[selectedIndex].xml, true)+ handleClose()+ }+ }++ return (+ <Dialog open={showHistory} onOpenChange={onToggleHistory}>+ <DialogContent className="max-w-3xl max-h-[80vh] overflow-y-auto">+ <DialogHeader>+ <DialogTitle>{t("history.title")}</DialogTitle>+ </DialogHeader>++ {diagramHistory.length === 0 ? (+ <div className="text-center p-4 text-gray-500">+ {t("history.empty")}+ </div>+ ) : (+ <div className="grid grid-cols-2 md:grid-cols-3 gap-4 py-4">+ {diagramHistory.map((item, index) => (+ <div+ key={index}+ className={`border rounded-md p-2 cursor-pointer hover:border-primary transition-colors ${+ selectedIndex === index+ ? "border-primary ring-2 ring-primary"+ : ""+ }`}+ onClick={() => setSelectedIndex(index)}+ >+ <div className="aspect-video bg-white rounded overflow-hidden flex items-center justify-center">+ <Image+ src={item.svg}+ alt={`Diagram version ${index + 1}`}+ width={200}+ height={100}+ className="object-contain w-full h-full p-1"+ />+ </div>+ <div className="text-xs text-center mt-1 text-gray-500">+ {t("history.version")} {index + 1}+ </div>+ </div>+ ))}+ </div>+ )}++ <DialogFooter>+ {selectedIndex !== null ? (+ <>+ <div className="flex-1 text-sm text-muted-foreground">+ {t("history.restore")} {selectedIndex + 1}?+ </div>+ <Button+ variant="outline"+ onClick={() => setSelectedIndex(null)}+ >+ {t("history.cancel")}+ </Button>+ <Button onClick={handleConfirmRestore}>+ {t("history.confirm")}+ </Button>+ </>+ ) : (+ <Button variant="outline" onClick={handleClose}>+ {t("history.close")}+ </Button>+ )}+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}+diff --git a/src/workspaces/flow/next/components/quota-limit-toast.tsx b/src/workspaces/flow/next/components/quota-limit-toast.tsxnew file mode 100644index 0000000..6fef0d2--- /dev/null+++ b/src/workspaces/flow/next/components/quota-limit-toast.tsx@@ -0,0 +1,66 @@+"use client"++import { FaCoffee } from "react-icons/fa"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++interface QuotaLimitToastProps {+ limit: number+ used: number+}++export function QuotaLimitToast({+ limit,+ used,+}: QuotaLimitToastProps) {+ const { t } = useLanguage()+ const percentage = Math.min((used / limit) * 100, 100)++ return (+ <div className="flex flex-col gap-3 w-full max-w-sm bg-background border border-border shadow-lg rounded-xl p-4 animate-in slide-in-from-bottom-5 duration-300">+ {/* Header */}+ <div className="flex items-start justify-between gap-2">+ <div>+ <h3 className="font-semibold text-foreground">+ {t("quota.limit.reached")}+ </h3>+ <p className="text-xs text-muted-foreground mt-1">+ {t("quota.limit.desc").replace("{limit}", limit.toString())}+ </p>+ </div>+ <div className="flex items-center justify-center w-8 h-8 rounded-full bg-amber-100 text-amber-600 shrink-0">+ <span className="text-xs font-bold">!</span>+ </div>+ </div>++ {/* Progress bar */}+ <div className="w-full h-1.5 bg-secondary rounded-full overflow-hidden">+ <div+ className="h-full bg-amber-500 rounded-full transition-all duration-500 ease-out"+ style={{ width: `${percentage}%` }}+ />+ </div>++ {/* Info text */}+ <div className="text-xs text-muted-foreground space-y-2">+ <p>+ {t("quota.limit.tip")}+ </p>+ <p>{t("quota.limit.reset")}</p>+ </div>++ {/* Action buttons */}+ <div className="flex items-center gap-2">+ <a+ href="https://github.com/sponsors/DayuanJiang"+ target="_blank"+ rel="noopener noreferrer"+ className="inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border border-border text-foreground hover:bg-muted transition-colors"+ >+ <FaCoffee className="w-3.5 h-3.5" />+ {t("quota.sponsor")}+ </a>+ </div>+ </div>+ )+}+diff --git a/src/workspaces/flow/next/components/reset-warning-modal.tsx b/src/workspaces/flow/next/components/reset-warning-modal.tsxnew file mode 100644index 0000000..a3c3d94--- /dev/null+++ b/src/workspaces/flow/next/components/reset-warning-modal.tsx@@ -0,0 +1,51 @@+"use client"++import { Button } from "@/workspaces/flow/next/components/ui/button"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/flow/next/components/ui/dialog"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++interface ResetWarningModalProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ onClear: () => void+}++export function ResetWarningModal({+ open,+ onOpenChange,+ onClear,+}: ResetWarningModalProps) {+ const { t } = useLanguage()++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t("reset.title")}</DialogTitle>+ <DialogDescription>+ {t("reset.desc")}+ </DialogDescription>+ </DialogHeader>+ <DialogFooter>+ <Button+ variant="outline"+ onClick={() => onOpenChange(false)}+ >+ {t("reset.cancel")}+ </Button>+ <Button variant="destructive" onClick={onClear}>+ {t("reset.confirm")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}+diff --git a/src/workspaces/flow/next/components/save-dialog.tsx b/src/workspaces/flow/next/components/save-dialog.tsxnew file mode 100644index 0000000..b0caaae--- /dev/null+++ b/src/workspaces/flow/next/components/save-dialog.tsx@@ -0,0 +1,131 @@+"use client"++import { useEffect, useState } from "react"+import { Button } from "@/workspaces/flow/next/components/ui/button"+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/flow/next/components/ui/dialog"+import { Input } from "@/workspaces/flow/next/components/ui/input"+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/workspaces/flow/next/components/ui/select"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++export type ExportFormat = "drawio" | "png" | "svg"++const FORMAT_OPTIONS: {+ value: ExportFormat+ label: string+ extension: string+}[] = [+ { value: "drawio", label: "Draw.io XML", extension: ".drawio" },+ { value: "png", label: "PNG Image", extension: ".png" },+ { value: "svg", label: "SVG Image", extension: ".svg" },+]++interface SaveDialogProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ onSave: (filename: string, format: ExportFormat) => void+ defaultFilename: string+}++export function SaveDialog({+ open,+ onOpenChange,+ onSave,+ defaultFilename,+}: SaveDialogProps) {+ const { t } = useLanguage()+ const [filename, setFilename] = useState(defaultFilename)+ const [format, setFormat] = useState<ExportFormat>("drawio")++ useEffect(() => {+ if (open) {+ setFilename(defaultFilename)+ }+ }, [open, defaultFilename])++ const handleSave = () => {+ const finalFilename = filename.trim() || defaultFilename+ onSave(finalFilename, format)+ onOpenChange(false)+ }++ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === "Enter") {+ e.preventDefault()+ handleSave()+ }+ }++ const currentFormat = FORMAT_OPTIONS.find((f) => f.value === format)++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="sm:max-w-md">+ <DialogHeader>+ <DialogTitle>{t("save.title")}</DialogTitle>+ </DialogHeader>+ <div className="space-y-4">+ <div className="space-y-2">+ <label className="text-sm font-medium">{t("save.format")}</label>+ <Select+ value={format}+ onValueChange={(v) => setFormat(v as ExportFormat)}+ >+ <SelectTrigger>+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ {FORMAT_OPTIONS.map((opt) => (+ <SelectItem+ key={opt.value}+ value={opt.value}+ >+ {opt.label}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="space-y-2">+ <label className="text-sm font-medium">{t("save.filename")}</label>+ <div className="flex items-stretch">+ <Input+ value={filename}+ onChange={(e) => setFilename(e.target.value)}+ onKeyDown={handleKeyDown}+ placeholder={t("save.filename.placeholder")}+ autoFocus+ onFocus={(e) => e.target.select()}+ className="rounded-r-none border-r-0 focus-visible:z-10"+ />+ <span className="inline-flex items-center px-3 rounded-r-md border border-l-0 border-input bg-muted text-sm text-muted-foreground font-mono">+ {currentFormat?.extension || ".drawio"}+ </span>+ </div>+ </div>+ </div>+ <DialogFooter>+ <Button+ variant="outline"+ onClick={() => onOpenChange(false)}+ >+ {t("history.cancel")}+ </Button>+ <Button onClick={handleSave}>{t("save.download")}</Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}+diff --git a/src/workspaces/flow/next/components/settings-dialog.tsx b/src/workspaces/flow/next/components/settings-dialog.tsxnew file mode 100644index 0000000..543caac--- /dev/null+++ b/src/workspaces/flow/next/components/settings-dialog.tsx@@ -0,0 +1,330 @@+"use client"++import { Moon, Sun } from "lucide-react"+import { useEffect, useState } from "react"+import { getAIConfig as getWorkspaceAIConfig } from "@/lib/ai-client"+import { Button } from "@/workspaces/flow/next/components/ui/button"+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/flow/next/components/ui/dialog"+import { Input } from "@/workspaces/flow/next/components/ui/input"+import { Label } from "@/workspaces/flow/next/components/ui/label"+import { Switch } from "@/workspaces/flow/next/components/ui/switch"+import { useLanguage } from "@/workspaces/flow/next/contexts/language-context"++interface SettingsDialogProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ onCloseProtectionChange?: (enabled: boolean) => void+ drawioUi: "min" | "sketch"+ onToggleDrawioUi: () => void+ darkMode: boolean+ onToggleDarkMode: () => void+}++export const STORAGE_ACCESS_CODE_KEY = "next-ai-draw-io-access-code"+export const STORAGE_CLOSE_PROTECTION_KEY = "next-ai-draw-io-close-protection"+const STORAGE_ACCESS_CODE_REQUIRED_KEY = "next-ai-draw-io-access-code-required"++type TopSettings = {+ apiKey: string+ baseUrl: string+ chatModel: string+ imageModel: string+}++function getStoredAccessCodeRequired(): boolean | null {+ if (typeof window === "undefined") return null+ const stored = localStorage.getItem(STORAGE_ACCESS_CODE_REQUIRED_KEY)+ if (stored === null) return null+ return stored === "true"+}++function maskApiKey(apiKey: string): string {+ const trimmed = String(apiKey || "").trim()+ if (!trimmed) return ""+ if (trimmed.length <= 8) return "********"+ return `${trimmed.slice(0, 4)}********${trimmed.slice(-4)}`+}++export function SettingsDialog({+ open,+ onOpenChange,+ onCloseProtectionChange,+ drawioUi,+ onToggleDrawioUi,+ darkMode,+ onToggleDarkMode,+}: SettingsDialogProps) {+ const { t } = useLanguage()+ const [accessCode, setAccessCode] = useState("")+ const [closeProtection, setCloseProtection] = useState(true)+ const [isVerifying, setIsVerifying] = useState(false)+ const [error, setError] = useState("")+ const [accessCodeRequired, setAccessCodeRequired] = useState(+ () => getStoredAccessCodeRequired() ?? false,+ )+ const [topSettings, setTopSettings] = useState<TopSettings>({+ apiKey: "",+ baseUrl: "",+ chatModel: "",+ imageModel: "",+ })++ useEffect(() => {+ fetch("/api/config")+ .then((res) => {+ if (!res.ok) throw new Error(`HTTP ${res.status}`)+ return res.json()+ })+ .then((data) => {+ const required = data?.accessCodeRequired === true+ if (getStoredAccessCodeRequired() === null) {+ localStorage.setItem(+ STORAGE_ACCESS_CODE_REQUIRED_KEY,+ String(required),+ )+ }+ setAccessCodeRequired(required)+ })+ .catch(() => {+ setAccessCodeRequired(false)+ })+ }, [])++ useEffect(() => {+ if (open) {+ const storedCode = localStorage.getItem(STORAGE_ACCESS_CODE_KEY) || ""+ setAccessCode(storedCode)++ const storedCloseProtection = localStorage.getItem(+ STORAGE_CLOSE_PROTECTION_KEY,+ )+ setCloseProtection(storedCloseProtection !== "false")++ const workspaceConfig = getWorkspaceAIConfig()+ setTopSettings({+ apiKey: String(workspaceConfig.apiKey || ""),+ baseUrl: String(workspaceConfig.baseUrl || ""),+ chatModel: String(workspaceConfig.chatModel || ""),+ imageModel: String(workspaceConfig.imageModel || ""),+ })++ setError("")+ }+ }, [open])++ const handleSave = async () => {+ if (!accessCodeRequired) {+ onOpenChange(false)+ return+ }++ setError("")+ setIsVerifying(true)++ try {+ const response = await fetch("/api/verify-access-code", {+ method: "POST",+ headers: {+ "x-access-code": accessCode.trim(),+ },+ })++ const data = await response.json()++ if (!data.valid) {+ setError(data.message || "Invalid access code")+ return+ }++ localStorage.setItem(STORAGE_ACCESS_CODE_KEY, accessCode.trim())+ onOpenChange(false)+ } catch {+ setError("Failed to verify access code")+ } finally {+ setIsVerifying(false)+ }+ }++ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === "Enter") {+ e.preventDefault()+ handleSave()+ }+ }++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="sm:max-w-[500px] max-h-[85vh] overflow-y-auto">+ <DialogHeader>+ <DialogTitle>{t("settings.title")}</DialogTitle>+ </DialogHeader>+ <div className="grid gap-6 py-4">+ {accessCodeRequired && (+ <div className="space-y-2">+ <Label htmlFor="access-code">{t("settings.access_code")}</Label>+ <div className="flex gap-2">+ <Input+ id="access-code"+ type="password"+ value={accessCode}+ onChange={(e) =>+ setAccessCode(e.target.value)+ }+ onKeyDown={handleKeyDown}+ placeholder="Enter access code"+ autoComplete="off"+ />+ <Button+ onClick={handleSave}+ disabled={isVerifying || !accessCode.trim()}+ >+ {isVerifying ? "..." : "Save"}+ </Button>+ </div>+ <p className="text-[0.8rem] text-muted-foreground">+ Required to use this application.+ </p>+ {error && (+ <p className="text-[0.8rem] text-destructive">+ {error}+ </p>+ )}+ </div>+ )}++ <div className="space-y-4 pt-4 border-t">+ <h3 className="text-sm font-medium text-muted-foreground">+ {t("settings.ai_config")}+ </h3>+ <p className="text-[0.8rem] text-muted-foreground">+ AI key/base URL/model are read from top-bar Settings.+ </p>+ <div className="grid gap-4">+ <div className="space-y-2">+ <Label htmlFor="ai-model">{t("settings.model")}</Label>+ <Input+ id="ai-model"+ value={topSettings.chatModel}+ readOnly+ disabled+ placeholder="-"+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="ai-image-model">{t("settings.image_model")}</Label>+ <Input+ id="ai-image-model"+ value={topSettings.imageModel}+ readOnly+ disabled+ placeholder="-"+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="ai-base-url">{t("settings.base_url")}</Label>+ <Input+ id="ai-base-url"+ value={topSettings.baseUrl}+ readOnly+ disabled+ placeholder="-"+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="ai-api-key">{t("settings.api_key")}</Label>+ <Input+ id="ai-api-key"+ type="text"+ value={maskApiKey(topSettings.apiKey)}+ readOnly+ disabled+ placeholder="-"+ />+ </div>+ </div>+ </div>++ <div className="space-y-4">+ <h3 className="text-sm font-medium text-muted-foreground">+ {t("settings.general")}+ </h3>+ <div className="flex items-center justify-between">+ <div className="space-y-0.5">+ <Label htmlFor="theme-toggle">{t("settings.theme")}</Label>+ <p className="text-[0.8rem] text-muted-foreground">+ {t("settings.theme.desc")}+ </p>+ </div>+ <Button+ id="theme-toggle"+ variant="outline"+ size="icon"+ onClick={onToggleDarkMode}+ >+ {darkMode ? (+ <Sun className="h-4 w-4" />+ ) : (+ <Moon className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>++ <div className="flex items-center justify-between">+ <div className="space-y-0.5">+ <Label htmlFor="drawio-ui">{t("settings.drawio_style")}</Label>+ <p className="text-[0.8rem] text-muted-foreground">+ {t("settings.drawio_style.desc")}+ {drawioUi === "min" ? t("settings.drawio_style.minimal") : t("settings.drawio_style.sketch")}+ </p>+ </div>+ <Button+ id="drawio-ui"+ variant="outline"+ size="sm"+ onClick={onToggleDrawioUi}+ >+ {t("settings.drawio_style.switch")}+ {drawioUi === "min" ? t("settings.drawio_style.sketch") : t("settings.drawio_style.minimal")}+ </Button>+ </div>++ <div className="flex items-center justify-between">+ <div className="space-y-0.5">+ <Label htmlFor="close-protection">+ {t("settings.close_protection")}+ </Label>+ <p className="text-[0.8rem] text-muted-foreground">+ {t("settings.close_protection.desc")}+ </p>+ </div>+ <Switch+ id="close-protection"+ checked={closeProtection}+ onCheckedChange={(checked) => {+ setCloseProtection(checked)+ localStorage.setItem(+ STORAGE_CLOSE_PROTECTION_KEY,+ checked.toString(),+ )+ onCloseProtectionChange?.(checked)+ }}+ />+ </div>+ </div>+ <DialogFooter>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t("settings.close")}+ </Button>+ <Button onClick={handleSave}>{t("settings.save")}</Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/flow/next/components/ui/button.tsx b/src/workspaces/flow/next/components/ui/button.tsxnew file mode 100644index 0000000..90b1d38--- /dev/null+++ b/src/workspaces/flow/next/components/ui/button.tsx@@ -0,0 +1,60 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/workspaces/flow/next/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ {+ variants: {+ variant: {+ default:+ "bg-primary text-primary-foreground shadow-xs hover:brightness-75",+ destructive:+ "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",+ secondary:+ "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",+ ghost:+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++function Button({+ className,+ variant,+ size,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean+ }) {+ const Comp = asChild ? Slot : "button"++ return (+ <Comp+ data-slot="button"+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Button, buttonVariants }+diff --git a/src/workspaces/flow/next/components/ui/card.tsx b/src/workspaces/flow/next/components/ui/card.tsxnew file mode 100644index 0000000..ef3130e--- /dev/null+++ b/src/workspaces/flow/next/components/ui/card.tsx@@ -0,0 +1,93 @@+import * as React from "react"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Card({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card"+ className={cn(+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",+ className+ )}+ {...props}+ />+ )+}++function CardHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-header"+ className={cn(+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[data-slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",+ className+ )}+ {...props}+ />+ )+}++function CardTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-title"+ className={cn("leading-none font-semibold", className)}+ {...props}+ />+ )+}++function CardDescription({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++function CardAction({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-action"+ className={cn(+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",+ className+ )}+ {...props}+ />+ )+}++function CardContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-content"+ className={cn("px-6", className)}+ {...props}+ />+ )+}++function CardFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-footer"+ className={cn("flex items-center px-6 [.border-t]:pt-6", className)}+ {...props}+ />+ )+}++export {+ Card,+ CardHeader,+ CardFooter,+ CardTitle,+ CardAction,+ CardDescription,+ CardContent,+}+diff --git a/src/workspaces/flow/next/components/ui/collapsible.tsx b/src/workspaces/flow/next/components/ui/collapsible.tsxnew file mode 100644index 0000000..6443a91--- /dev/null+++ b/src/workspaces/flow/next/components/ui/collapsible.tsx@@ -0,0 +1,34 @@+"use client"++import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"++function Collapsible({+ ...props+}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {+ return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />+}++function CollapsibleTrigger({+ ...props+}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {+ return (+ <CollapsiblePrimitive.CollapsibleTrigger+ data-slot="collapsible-trigger"+ {...props}+ />+ )+}++function CollapsibleContent({+ ...props+}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {+ return (+ <CollapsiblePrimitive.CollapsibleContent+ data-slot="collapsible-content"+ {...props}+ />+ )+}++export { Collapsible, CollapsibleTrigger, CollapsibleContent }+diff --git a/src/workspaces/flow/next/components/ui/dialog.tsx b/src/workspaces/flow/next/components/ui/dialog.tsxnew file mode 100644index 0000000..68bf3a1--- /dev/null+++ b/src/workspaces/flow/next/components/ui/dialog.tsx@@ -0,0 +1,136 @@+"use client"++import * as React from "react"+import * as DialogPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className+ )}+ {...props}+ />+ )+}++function DialogContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content>) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",+ className+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+ )+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ )+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className+ )}+ {...props}+ />+ )+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("text-lg leading-none font-semibold", className)}+ {...props}+ />+ )+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+}+diff --git a/src/workspaces/flow/next/components/ui/input.tsx b/src/workspaces/flow/next/components/ui/input.tsxnew file mode 100644index 0000000..5d06607--- /dev/null+++ b/src/workspaces/flow/next/components/ui/input.tsx@@ -0,0 +1,22 @@+import * as React from "react"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ className+ )}+ {...props}+ />+ )+}++export { Input }+diff --git a/src/workspaces/flow/next/components/ui/label.tsx b/src/workspaces/flow/next/components/ui/label.tsxnew file mode 100644index 0000000..3da1370--- /dev/null+++ b/src/workspaces/flow/next/components/ui/label.tsx@@ -0,0 +1,25 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Label({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",+ className+ )}+ {...props}+ />+ )+}++export { Label }+diff --git a/src/workspaces/flow/next/components/ui/resizable.tsx b/src/workspaces/flow/next/components/ui/resizable.tsxnew file mode 100644index 0000000..5b74e44--- /dev/null+++ b/src/workspaces/flow/next/components/ui/resizable.tsx@@ -0,0 +1,65 @@+"use client"++import * as React from "react"+import { GripVerticalIcon } from "lucide-react"+import * as ResizablePrimitive from "react-resizable-panels-v3"++import { cn } from "@/workspaces/flow/next/lib/utils"++function ResizablePanelGroup({+ className,+ ...props+}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {+ return (+ <ResizablePrimitive.PanelGroup+ data-slot="resizable-panel-group"+ className={cn(+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",+ className,+ )}+ {...props}+ />+ )+}++const ResizablePanel = React.forwardRef<+ React.ElementRef<typeof ResizablePrimitive.Panel>,+ React.ComponentProps<typeof ResizablePrimitive.Panel>+>(({ ...props }, ref) => {+ return (+ <ResizablePrimitive.Panel+ ref={ref}+ data-slot="resizable-panel"+ {...props}+ />+ )+})++ResizablePanel.displayName = "ResizablePanel"++function ResizableHandle({+ withHandle,+ className,+ ...props+}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {+ withHandle?: boolean+}) {+ return (+ <ResizablePrimitive.PanelResizeHandle+ data-slot="resizable-handle"+ className={cn(+ "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",+ className,+ )}+ {...props}+ >+ {withHandle && (+ <div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">+ <GripVerticalIcon className="size-2.5" />+ </div>+ )}+ </ResizablePrimitive.PanelResizeHandle>+ )+}++export { ResizablePanelGroup, ResizablePanel, ResizableHandle }diff --git a/src/workspaces/flow/next/components/ui/scroll-area.tsx b/src/workspaces/flow/next/components/ui/scroll-area.tsxnew file mode 100644index 0000000..103dea5--- /dev/null+++ b/src/workspaces/flow/next/components/ui/scroll-area.tsx@@ -0,0 +1,59 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/workspaces/flow/next/lib/utils"++function ScrollArea({+ className,+ children,+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {+ return (+ <ScrollAreaPrimitive.Root+ data-slot="scroll-area"+ className={cn("relative", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport+ data-slot="scroll-area-viewport"+ className="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden"+ >+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+ )+}++function ScrollBar({+ className,+ orientation = "vertical",+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {+ return (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ data-slot="scroll-area-scrollbar"+ orientation={orientation}+ className={cn(+ "flex touch-none p-px transition-colors select-none",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb+ data-slot="scroll-area-thumb"+ className="bg-border relative flex-1 rounded-full"+ />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+ )+}++export { ScrollArea, ScrollBar }+diff --git a/src/workspaces/flow/next/components/ui/select.tsx b/src/workspaces/flow/next/components/ui/select.tsxnew file mode 100644index 0000000..518c1d1--- /dev/null+++ b/src/workspaces/flow/next/components/ui/select.tsx@@ -0,0 +1,188 @@+"use client"++import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Select({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />+}++function SelectGroup({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />+}++function SelectValue({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />+}++function SelectTrigger({+ className,+ size = "default",+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: "sm" | "default"+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ )+}++function SelectContent({+ className,+ children,+ position = "popper",+ align = "center",+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className+ )}+ position={position}+ align={align}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ )+}++function SelectLabel({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}+ {...props}+ />+ )+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className+ )}+ {...props}+ >+ <span className="absolute right-2 flex size-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ )+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}+ {...props}+ />+ )+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ )+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ )+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+}+diff --git a/src/workspaces/flow/next/components/ui/switch.tsx b/src/workspaces/flow/next/components/ui/switch.tsxnew file mode 100644index 0000000..cab365c--- /dev/null+++ b/src/workspaces/flow/next/components/ui/switch.tsx@@ -0,0 +1,32 @@+"use client"++import * as React from "react"+import * as SwitchPrimitive from "@radix-ui/react-switch"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Switch({+ className,+ ...props+}: React.ComponentProps<typeof SwitchPrimitive.Root>) {+ return (+ <SwitchPrimitive.Root+ data-slot="switch"+ className={cn(+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ {...props}+ >+ <SwitchPrimitive.Thumb+ data-slot="switch-thumb"+ className={cn(+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"+ )}+ />+ </SwitchPrimitive.Root>+ )+}++export { Switch }+diff --git a/src/workspaces/flow/next/components/ui/textarea.tsx b/src/workspaces/flow/next/components/ui/textarea.tsxnew file mode 100644index 0000000..cdb640d--- /dev/null+++ b/src/workspaces/flow/next/components/ui/textarea.tsx@@ -0,0 +1,19 @@+import * as React from "react"++import { cn } from "@/workspaces/flow/next/lib/utils"++function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {+ return (+ <textarea+ data-slot="textarea"+ className={cn(+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ className+ )}+ {...props}+ />+ )+}++export { Textarea }+diff --git a/src/workspaces/flow/next/components/ui/tooltip.tsx b/src/workspaces/flow/next/components/ui/tooltip.tsxnew file mode 100644index 0000000..7d9eb10--- /dev/null+++ b/src/workspaces/flow/next/components/ui/tooltip.tsx@@ -0,0 +1,62 @@+"use client"++import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"++import { cn } from "@/workspaces/flow/next/lib/utils"++function TooltipProvider({+ delayDuration = 0,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {+ return (+ <TooltipPrimitive.Provider+ data-slot="tooltip-provider"+ delayDuration={delayDuration}+ {...props}+ />+ )+}++function Tooltip({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Root>) {+ return (+ <TooltipProvider>+ <TooltipPrimitive.Root data-slot="tooltip" {...props} />+ </TooltipProvider>+ )+}++function TooltipTrigger({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />+}++function TooltipContent({+ className,+ sideOffset = 0,+ children,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Content>) {+ return (+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Content+ data-slot="tooltip-content"+ sideOffset={sideOffset}+ className={cn(+ "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",+ className+ )}+ {...props}+ >+ {children}+ <TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />+ </TooltipPrimitive.Content>+ </TooltipPrimitive.Portal>+ )+}++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }+diff --git a/src/workspaces/flow/next/contexts/diagram-context.tsx b/src/workspaces/flow/next/contexts/diagram-context.tsxnew file mode 100644index 0000000..59b0553--- /dev/null+++ b/src/workspaces/flow/next/contexts/diagram-context.tsx@@ -0,0 +1,292 @@+"use client"++import type React from "react"+import { createContext, useContext, useRef, useState } from "react"+import type { DrawIoEmbedRef } from "react-drawio"+import { STORAGE_DIAGRAM_XML_KEY } from "@/workspaces/flow/next/components/chat-panel"+import type { ExportFormat } from "@/workspaces/flow/next/components/save-dialog"+import { extractDiagramXML, validateMxCellStructure } from "../lib/utils"++interface DiagramContextType {+ chartXML: string+ latestSvg: string+ diagramHistory: { svg: string; xml: string }[]+ pushHistorySnapshot: (xml: string, svg?: string) => void+ loadDiagram: (chart: string, skipValidation?: boolean) => string | null+ handleExport: () => boolean+ handleExportWithoutHistory: () => boolean+ resolverRef: React.MutableRefObject<((value: string) => void) | null>+ drawioRef: React.MutableRefObject<DrawIoEmbedRef | null>+ handleDiagramExport: (data: any) => void+ clearDiagram: () => void+ saveDiagramToFile: (+ filename: string,+ format: ExportFormat,+ sessionId?: string,+ ) => void+ isDrawioReady: boolean+ onDrawioLoad: () => void+ resetDrawioReady: () => void+}++const DiagramContext = createContext<DiagramContextType | undefined>(undefined)++export function DiagramProvider({ children }: { children: React.ReactNode }) {+ const [chartXML, setChartXML] = useState<string>("")+ const [latestSvg, setLatestSvg] = useState<string>("")+ const [diagramHistory, setDiagramHistory] = useState<+ { svg: string; xml: string }[]+ >([])+ const [isDrawioReady, setIsDrawioReady] = useState(false)+ const hasCalledOnLoadRef = useRef(false)+ const drawioRef = useRef<DrawIoEmbedRef | null>(null)+ const resolverRef = useRef<((value: string) => void) | null>(null)+ // Track if we're expecting an export for history (user-initiated)+ const expectHistoryExportRef = useRef<boolean>(false)++ const pushHistorySnapshot = (xml: string, svg?: string) => {+ const safeXml = String(xml || "").trim()+ if (!safeXml) return+ const safeSvg = typeof svg === "string" ? svg : latestSvg+ setDiagramHistory((prev) => {+ const last = prev[prev.length - 1]+ if (last && last.xml === safeXml) return prev+ return [...prev, { xml: safeXml, svg: safeSvg || "" }]+ })+ }++ const onDrawioLoad = () => {+ // Only set ready state once to prevent infinite loops+ if (hasCalledOnLoadRef.current) return+ hasCalledOnLoadRef.current = true+ // console.log("[DiagramContext] DrawIO loaded, setting ready state")+ setIsDrawioReady(true)+ }++ const resetDrawioReady = () => {+ // console.log("[DiagramContext] Resetting DrawIO ready state")+ hasCalledOnLoadRef.current = false+ setIsDrawioReady(false)+ }++ // Track if we're expecting an export for file save (stores raw export data)+ const saveResolverRef = useRef<{+ resolver: ((data: string) => void) | null+ format: ExportFormat | null+ }>({ resolver: null, format: null })++ const handleExport = () => {+ if (drawioRef.current) {+ // Mark that this export should be saved to history+ expectHistoryExportRef.current = true+ drawioRef.current.exportDiagram({+ format: "xmlsvg",+ })+ return true+ }+ return false+ }++ const handleExportWithoutHistory = () => {+ if (drawioRef.current) {+ // Export without saving to history (for edit_diagram fetching current state)+ drawioRef.current.exportDiagram({+ format: "xmlsvg",+ })+ return true+ }+ return false+ }++ const loadDiagram = (+ chart: string,+ skipValidation?: boolean,+ ): string | null => {+ // Validate XML structure before loading (unless skipped for internal use)+ if (!skipValidation) {+ const validationError = validateMxCellStructure(chart)+ if (validationError) {+ console.warn("[loadDiagram] Validation error:", validationError)+ return validationError+ }+ }++ // Keep chartXML in sync even when diagrams are injected (e.g., display_diagram tool)+ setChartXML(chart)++ if (drawioRef.current) {+ drawioRef.current.load({+ xml: chart,+ })+ }++ return null+ }++ const handleDiagramExport = (data: any) => {+ // Handle save to file if requested (process raw data before extraction)+ if (saveResolverRef.current.resolver) {+ const format = saveResolverRef.current.format+ saveResolverRef.current.resolver(data.data)+ saveResolverRef.current = { resolver: null, format: null }+ // For non-xmlsvg formats, skip XML extraction as it will fail+ // Only drawio (which uses xmlsvg internally) has the content attribute+ if (format === "png" || format === "svg") {+ return+ }+ }++ const extractedXML = extractDiagramXML(data.data)+ setChartXML(extractedXML)+ setLatestSvg(data.data)++ // Only add to history if this was a user-initiated export+ if (expectHistoryExportRef.current) {+ pushHistorySnapshot(extractedXML, data.data)+ expectHistoryExportRef.current = false+ }++ if (resolverRef.current) {+ resolverRef.current(extractedXML)+ resolverRef.current = null+ }+ }++ const clearDiagram = () => {+ const emptyDiagram = `<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel></diagram></mxfile>`+ // Skip validation for trusted internal template (loadDiagram also sets chartXML)+ loadDiagram(emptyDiagram, true)+ setLatestSvg("")+ setDiagramHistory([])+ }++ const saveDiagramToFile = (+ filename: string,+ format: ExportFormat,+ sessionId?: string,+ ) => {+ if (!drawioRef.current) {+ console.warn("Draw.io editor not ready")+ return+ }++ // Map format to draw.io export format+ const drawioFormat = format === "drawio" ? "xmlsvg" : format++ // Set up the resolver before triggering export+ saveResolverRef.current = {+ resolver: (exportData: string) => {+ let fileContent: string | Blob+ let mimeType: string+ let extension: string++ if (format === "drawio") {+ // Extract XML from SVG for .drawio format+ const xml = extractDiagramXML(exportData)+ let xmlContent = xml+ if (!xml.includes("<mxfile")) {+ xmlContent = `<mxfile><diagram name="Page-1" id="page-1">${xml}</diagram></mxfile>`+ }+ fileContent = xmlContent+ mimeType = "application/xml"+ extension = ".drawio"++ // Save to localStorage when user manually saves+ localStorage.setItem(STORAGE_DIAGRAM_XML_KEY, xmlContent)+ } else if (format === "png") {+ // PNG data comes as base64 data URL+ fileContent = exportData+ mimeType = "image/png"+ extension = ".png"+ } else {+ // SVG format+ fileContent = exportData+ mimeType = "image/svg+xml"+ extension = ".svg"+ }++ // Log save event to Langfuse (flags the trace)+ logSaveToLangfuse(filename, format, sessionId)++ // Handle download+ let url: string+ if (+ typeof fileContent === "string" &&+ fileContent.startsWith("data:")+ ) {+ // Already a data URL (PNG)+ url = fileContent+ } else {+ const blob = new Blob([fileContent], { type: mimeType })+ url = URL.createObjectURL(blob)+ }++ const a = document.createElement("a")+ a.href = url+ a.download = `${filename}${extension}`+ document.body.appendChild(a)+ a.click()+ document.body.removeChild(a)++ // Delay URL revocation to ensure download completes+ if (!url.startsWith("data:")) {+ setTimeout(() => URL.revokeObjectURL(url), 100)+ }+ },+ format,+ }++ // Export diagram - callback will be handled in handleDiagramExport+ drawioRef.current.exportDiagram({ format: drawioFormat })+ }++ // Log save event to Langfuse (just flags the trace, doesn't send content)+ const logSaveToLangfuse = async (+ filename: string,+ format: string,+ sessionId?: string,+ ) => {+ try {+ await fetch("/api/log-save", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ filename, format, sessionId }),+ })+ } catch (error) {+ console.warn("Failed to log save to Langfuse:", error)+ }+ }++ return (+ <DiagramContext.Provider+ value={{+ chartXML,+ latestSvg,+ diagramHistory,+ pushHistorySnapshot,+ loadDiagram,+ handleExport,+ handleExportWithoutHistory,+ resolverRef,+ drawioRef,+ handleDiagramExport,+ clearDiagram,+ saveDiagramToFile,+ isDrawioReady,+ onDrawioLoad,+ resetDrawioReady,+ }}+ >+ {children}+ </DiagramContext.Provider>+ )+}++export function useDiagram() {+ const context = useContext(DiagramContext)+ if (context === undefined) {+ throw new Error("useDiagram must be used within a DiagramProvider")+ }+ return context+}+diff --git a/src/workspaces/flow/next/contexts/language-context.tsx b/src/workspaces/flow/next/contexts/language-context.tsxnew file mode 100644index 0000000..bacb124--- /dev/null+++ b/src/workspaces/flow/next/contexts/language-context.tsx@@ -0,0 +1,57 @@+"use client"++import { createContext, useContext, useEffect, useState } from "react"+import type React from "react"+import { getUiLanguage, setUiLanguage } from "@/lib/ui-language"+import { translations, type Language } from "@/workspaces/flow/next/lib/translations"++type LanguageContextType = {+ language: Language+ setLanguage: (lang: Language) => void+ t: (key: keyof typeof translations.en) => string+}++const LanguageContext = createContext<LanguageContextType | null>(null)++export function LanguageProvider({ children }: { children: React.ReactNode }) {+ const [language, setLanguage] = useState<Language>(() => getUiLanguage())++ useEffect(() => {+ const syncFromGlobal = () => {+ setLanguage(getUiLanguage())+ }++ syncFromGlobal()+ window.addEventListener("ui-language-changed", syncFromGlobal as any)+ return () =>+ window.removeEventListener(+ "ui-language-changed",+ syncFromGlobal as any,+ )+ }, [])++ const handleSetLanguage = (lang: Language) => {+ setLanguage(lang)+ setUiLanguage(lang)+ }++ const t = (key: keyof typeof translations.en) => {+ return translations[language][key] || key+ }++ return (+ <LanguageContext.Provider+ value={{ language, setLanguage: handleSetLanguage, t }}+ >+ {children}+ </LanguageContext.Provider>+ )+}++export const useLanguage = () => {+ const context = useContext(LanguageContext)+ if (!context) {+ throw new Error("useLanguage must be used within a LanguageProvider")+ }+ return context+}diff --git a/src/workspaces/flow/next/lib/ai-config.ts b/src/workspaces/flow/next/lib/ai-config.tsnew file mode 100644index 0000000..eaa37de--- /dev/null+++ b/src/workspaces/flow/next/lib/ai-config.ts@@ -0,0 +1,35 @@+import { STORAGE_KEYS } from "./storage"+import { getAIConfig as getWorkspaceAIConfig } from "@/lib/ai-client"++/**+ * Get AI configuration from localStorage.+ * Returns API keys and settings for custom AI providers.+ * Uses top-bar workspace settings as the primary source.+ */+export function getAIConfig() {+ if (typeof window === "undefined") {+ return {+ accessCode: "",+ aiProvider: "openai",+ aiBaseUrl: "",+ aiApiKey: "",+ aiModel: "",+ aiImageModel: "",+ }+ }++ const topConfig = getWorkspaceAIConfig()+ const topApiKey = String(topConfig.apiKey || "").trim()+ const topBaseUrl = String(topConfig.baseUrl || "").trim()+ const topChatModel = String(topConfig.chatModel || "").trim()+ const topImageModel = String(topConfig.imageModel || "").trim()++ return {+ accessCode: localStorage.getItem(STORAGE_KEYS.accessCode) || "",+ aiProvider: "openai",+ aiBaseUrl: topBaseUrl,+ aiApiKey: topApiKey,+ aiModel: topChatModel,+ aiImageModel: topImageModel,+ }+}diff --git a/src/workspaces/flow/next/lib/ai-providers.ts b/src/workspaces/flow/next/lib/ai-providers.tsnew file mode 100644index 0000000..b1ebb62--- /dev/null+++ b/src/workspaces/flow/next/lib/ai-providers.ts@@ -0,0 +1,490 @@+import { createOpenAI } from "@ai-sdk/openai"++export type ProviderName =+ | "bedrock"+ | "openai"+ | "anthropic"+ | "google"+ | "azure"+ | "ollama"+ | "openrouter"+ | "deepseek"+ | "siliconflow"++interface ModelConfig {+ model: any+ providerOptions?: any+ headers?: Record<string, string>+ modelId: string+}++export interface ClientOverrides {+ provider?: string | null+ baseUrl?: string | null+ apiKey?: string | null+ modelId?: string | null+}++// Providers that can be used with client-provided API keys+const _ALLOWED_CLIENT_PROVIDERS: ProviderName[] = [+ "openai",+ "anthropic",+ "google",+ "azure",+ "openrouter",+ "deepseek",+ "siliconflow",+]++// Bedrock provider options for Anthropic beta features+const _BEDROCK_ANTHROPIC_BETA = {+ bedrock: {+ anthropicBeta: ["fine-grained-tool-streaming-2025-05-14"],+ },+}++// Direct Anthropic API headers for beta features+const _ANTHROPIC_BETA_HEADERS = {+ "anthropic-beta": "fine-grained-tool-streaming-2025-05-14",+}++/**+ * Safely parse integer from environment variable with validation+ */+function parseIntSafe(+ value: string | undefined,+ varName: string,+ min?: number,+ max?: number,+): number | undefined {+ if (!value) return undefined+ const parsed = Number.parseInt(value, 10)+ if (Number.isNaN(parsed)) {+ throw new Error(`${varName} must be a valid integer, got: ${value}`)+ }+ if (min !== undefined && parsed < min) {+ throw new Error(`${varName} must be >= ${min}, got: ${parsed}`)+ }+ if (max !== undefined && parsed > max) {+ throw new Error(`${varName} must be <= ${max}, got: ${parsed}`)+ }+ return parsed+}++/**+ * Build provider-specific options from environment variables+ * Supports various AI SDK providers with their unique configuration options+ *+ * Environment variables:+ * - OPENAI_REASONING_EFFORT: OpenAI reasoning effort level (minimal/low/medium/high) - for o1/o3/gpt-5+ * - OPENAI_REASONING_SUMMARY: OpenAI reasoning summary (none/brief/detailed) - auto-enabled for o1/o3/gpt-5+ * - ANTHROPIC_THINKING_BUDGET_TOKENS: Anthropic thinking budget in tokens (1024-64000)+ * - ANTHROPIC_THINKING_TYPE: Anthropic thinking type (enabled)+ * - GOOGLE_THINKING_BUDGET: Google Gemini 2.5 thinking budget in tokens (1024-100000)+ * - GOOGLE_THINKING_LEVEL: Google Gemini 3 thinking level (low/high)+ * - AZURE_REASONING_EFFORT: Azure/OpenAI reasoning effort (low/medium/high)+ * - AZURE_REASONING_SUMMARY: Azure reasoning summary (none/brief/detailed)+ * - BEDROCK_REASONING_BUDGET_TOKENS: Bedrock Claude reasoning budget in tokens (1024-64000)+ * - BEDROCK_REASONING_EFFORT: Bedrock Nova reasoning effort (low/medium/high)+ * - OLLAMA_ENABLE_THINKING: Enable Ollama thinking mode (set to "true")+ */+function _buildProviderOptions(+ provider: ProviderName,+ modelId?: string,+): Record<string, any> | undefined {+ const options: Record<string, any> = {}++ switch (provider) {+ case "openai": {+ const reasoningEffort = process.env.OPENAI_REASONING_EFFORT+ const reasoningSummary = process.env.OPENAI_REASONING_SUMMARY++ // OpenAI reasoning models (o1, o3, gpt-5) need reasoningSummary to return thoughts+ if (+ modelId &&+ (modelId.includes("o1") ||+ modelId.includes("o3") ||+ modelId.includes("gpt-5"))+ ) {+ options.openai = {+ // Auto-enable reasoning summary for reasoning models (default: detailed)+ reasoningSummary:+ (reasoningSummary as "none" | "brief" | "detailed") ||+ "detailed",+ }++ // Optionally configure reasoning effort+ if (reasoningEffort) {+ options.openai.reasoningEffort = reasoningEffort as+ | "minimal"+ | "low"+ | "medium"+ | "high"+ }+ } else if (reasoningEffort || reasoningSummary) {+ // Non-reasoning models: only apply if explicitly configured+ options.openai = {}+ if (reasoningEffort) {+ options.openai.reasoningEffort = reasoningEffort as+ | "minimal"+ | "low"+ | "medium"+ | "high"+ }+ if (reasoningSummary) {+ options.openai.reasoningSummary = reasoningSummary as+ | "none"+ | "brief"+ | "detailed"+ }+ }+ break+ }++ case "anthropic": {+ const thinkingBudget = parseIntSafe(+ process.env.ANTHROPIC_THINKING_BUDGET_TOKENS,+ "ANTHROPIC_THINKING_BUDGET_TOKENS",+ 1024,+ 64000,+ )+ const thinkingType =+ process.env.ANTHROPIC_THINKING_TYPE || "enabled"++ if (thinkingBudget) {+ options.anthropic = {+ thinking: {+ type: thinkingType,+ budgetTokens: thinkingBudget,+ },+ }+ }+ break+ }++ case "google": {+ const reasoningEffort = process.env.GOOGLE_REASONING_EFFORT+ const thinkingBudgetVal = parseIntSafe(+ process.env.GOOGLE_THINKING_BUDGET,+ "GOOGLE_THINKING_BUDGET",+ 1024,+ 100000,+ )+ const thinkingLevel = process.env.GOOGLE_THINKING_LEVEL+ const maxOutputTokens = parseIntSafe(+ process.env.GOOGLE_MAX_OUTPUT_TOKENS,+ "GOOGLE_MAX_OUTPUT_TOKENS",+ 256,+ 65535,+ )++ if (+ modelId &&+ (modelId.includes("gemini-2") ||+ modelId.includes("gemini-3") ||+ modelId.includes("gemini2") ||+ modelId.includes("gemini3"))+ ) {+ const thinkingConfig: Record<string, any> = {+ includeThoughts: true,+ }++ if (+ thinkingBudgetVal &&+ (modelId.includes("2.5") || modelId.includes("2-5"))+ ) {+ thinkingConfig.thinkingBudget = thinkingBudgetVal+ } else if (+ thinkingLevel &&+ (modelId.includes("gemini-3") ||+ modelId.includes("gemini3"))+ ) {+ thinkingConfig.thinkingLevel = thinkingLevel as+ | "low"+ | "high"+ }++ options.google = { thinkingConfig }+ } else if (reasoningEffort) {+ options.google = {+ reasoningEffort: reasoningEffort as+ | "low"+ | "medium"+ | "high",+ }+ }++ const effectiveMaxOutputTokens = maxOutputTokens || 8192++ options.google = {+ ...options.google,+ maxOutputTokens: effectiveMaxOutputTokens,+ responseModalities: ["TEXT"],+ }++ const options_obj: Record<string, any> = {}+ const candidateCount = parseIntSafe(+ process.env.GOOGLE_CANDIDATE_COUNT,+ "GOOGLE_CANDIDATE_COUNT",+ 1,+ 8,+ )+ if (candidateCount) {+ options_obj.candidateCount = candidateCount+ }+ const topK = parseIntSafe(+ process.env.GOOGLE_TOP_K,+ "GOOGLE_TOP_K",+ 1,+ 100,+ )+ if (topK) {+ options_obj.topK = topK+ }+ if (process.env.GOOGLE_TOP_P) {+ const topP = Number.parseFloat(process.env.GOOGLE_TOP_P)+ if (Number.isNaN(topP) || topP < 0 || topP > 1) {+ throw new Error(+ `GOOGLE_TOP_P must be a number between 0 and 1, got: ${process.env.GOOGLE_TOP_P}`,+ )+ }+ options_obj.topP = topP+ }++ if (Object.keys(options_obj).length > 0) {+ options.google = { ...options.google, ...options_obj }+ }++ break+ }++ case "azure": {+ const reasoningEffort = process.env.AZURE_REASONING_EFFORT+ const reasoningSummary = process.env.AZURE_REASONING_SUMMARY++ if (reasoningEffort || reasoningSummary) {+ options.azure = {}+ if (reasoningEffort) {+ options.azure.reasoningEffort = reasoningEffort as+ | "low"+ | "medium"+ | "high"+ }+ if (reasoningSummary) {+ options.azure.reasoningSummary = reasoningSummary as+ | "none"+ | "brief"+ | "detailed"+ }+ }+ break+ }++ case "bedrock": {+ const budgetTokens = parseIntSafe(+ process.env.BEDROCK_REASONING_BUDGET_TOKENS,+ "BEDROCK_REASONING_BUDGET_TOKENS",+ 1024,+ 64000,+ )+ const reasoningEffort = process.env.BEDROCK_REASONING_EFFORT++ // Bedrock reasoning ONLY for Claude and Nova models+ // Other models (MiniMax, etc.) don't support reasoningConfig+ if (+ modelId &&+ (budgetTokens || reasoningEffort) &&+ (modelId.includes("claude") ||+ modelId.includes("anthropic") ||+ modelId.includes("nova") ||+ modelId.includes("amazon"))+ ) {+ const reasoningConfig: Record<string, any> = { type: "enabled" }++ // Claude models: use budgetTokens (1024-64000)+ if (+ budgetTokens &&+ (modelId.includes("claude") ||+ modelId.includes("anthropic"))+ ) {+ reasoningConfig.budgetTokens = budgetTokens+ }+ // Nova models: use maxReasoningEffort (low/medium/high)+ else if (+ reasoningEffort &&+ (modelId.includes("nova") || modelId.includes("amazon"))+ ) {+ reasoningConfig.maxReasoningEffort = reasoningEffort as+ | "low"+ | "medium"+ | "high"+ }++ options.bedrock = { reasoningConfig }+ }+ break+ }++ case "ollama": {+ const enableThinking = process.env.OLLAMA_ENABLE_THINKING+ // Ollama supports reasoning with think: true for models like qwen3+ if (enableThinking === "true") {+ options.ollama = { think: true }+ }+ break+ }++ case "deepseek":+ case "openrouter":+ case "siliconflow": {+ // These providers don't have reasoning configs in AI SDK yet+ break+ }++ default:+ break+ }++ return Object.keys(options).length > 0 ? options : undefined+}++// Map of provider to required environment variable+const PROVIDER_ENV_VARS: Record<ProviderName, string | null> = {+ bedrock: null, // AWS SDK auto-uses IAM role on AWS, or env vars locally+ openai: "OPENAI_API_KEY",+ anthropic: "ANTHROPIC_API_KEY",+ google: "GOOGLE_GENERATIVE_AI_API_KEY",+ azure: "AZURE_API_KEY",+ ollama: null, // No credentials needed for local Ollama+ openrouter: "OPENROUTER_API_KEY",+ deepseek: "DEEPSEEK_API_KEY",+ siliconflow: "SILICONFLOW_API_KEY",+}++/**+ * Auto-detect provider based on available API keys+ * Returns the provider if exactly one is configured, otherwise null+ */+function _detectProvider(): ProviderName | null {+ const configuredProviders: ProviderName[] = []++ for (const [provider, envVar] of Object.entries(PROVIDER_ENV_VARS)) {+ if (envVar === null) {+ // Skip ollama - it doesn't require credentials+ continue+ }+ if (process.env[envVar]) {+ configuredProviders.push(provider as ProviderName)+ }+ }++ if (configuredProviders.length === 1) {+ return configuredProviders[0]+ }++ return null+}++/**+ * Validate that required API keys are present for the selected provider+ */+function _validateProviderCredentials(provider: ProviderName): void {+ const requiredVar = PROVIDER_ENV_VARS[provider]+ if (requiredVar && !process.env[requiredVar]) {+ throw new Error(+ `${requiredVar} environment variable is required for ${provider} provider. ` ++ `Please set it in your .env.local file.`,+ )+ }+}++/**+ * Get the AI model based on environment variables+ *+ * Environment variables:+ * - AI_MODEL: The model ID (e.g. gpt-4, claude-3, gemini-pro)+ * - AI_API_KEY: Universal API key (or specific provider key)+ * - AI_BASE_URL: Universal API base URL (optional)+ */+export function getAIModel(overrides?: ClientOverrides): ModelConfig {+ // 1. Determine Model ID+ const modelId = String(+ overrides?.modelId || process.env.AI_MODEL || "",+ ).trim()++ if (!modelId) {+ throw new Error(+ `AI_MODEL environment variable is required. Example: AI_MODEL=claude-3-5-sonnet-20240620`,+ )+ }++ // 2. Determine API Key+ // Order: Client Override -> AI_API_KEY -> OPENAI_API_KEY -> other provider keys+ let apiKey = String(+ overrides?.apiKey ||+ process.env.AI_API_KEY ||+ process.env.OPENAI_API_KEY ||+ "",+ ).trim()++ if (!apiKey) {+ // Fallback: Check other common provider keys if generic keys are missing+ // This is just a convenience for users migrating from old configs+ apiKey = String(+ process.env.ANTHROPIC_API_KEY ||+ process.env.GOOGLE_GENERATIVE_AI_API_KEY ||+ process.env.AZURE_API_KEY ||+ process.env.DEEPSEEK_API_KEY ||+ process.env.SILICONFLOW_API_KEY ||+ "",+ ).trim()+ }++ if (!apiKey) {+ throw new Error(+ "API Key is missing. Please set AI_API_KEY in your .env.local file.",+ )+ }++ // 3. Determine Base URL+ const baseURL = String(+ overrides?.baseUrl ||+ process.env.AI_BASE_URL ||+ process.env.OPENAI_BASE_URL ||+ "",+ ).trim()++ // 4. Initialize Universal Provider+ const openAIConfig: { apiKey: string; baseURL?: string } = {+ apiKey,+ }+ if (baseURL) {+ openAIConfig.baseURL = baseURL+ }+ const universalOpenAI = createOpenAI(openAIConfig)++ const model = universalOpenAI.chat(modelId)+ const providerOptions = {}+ const headers: Record<string, string> | undefined = undefined++ console.log(+ `[AI Provider] Initializing Universal Provider with model: ${modelId}${baseURL ? ` at ${baseURL}` : ""}`,+ )++ return { model, providerOptions, headers, modelId }+}++/**+ * Check if a model supports prompt caching.+ * Currently only Claude models on Bedrock support prompt caching.+ */+export function supportsPromptCaching(modelId: string): boolean {+ // Bedrock prompt caching is supported for Claude models+ return (+ modelId.includes("claude") ||+ modelId.includes("anthropic") ||+ modelId.startsWith("us.anthropic") ||+ modelId.startsWith("eu.anthropic")+ )+}+diff --git a/src/workspaces/flow/next/lib/cached-responses.ts b/src/workspaces/flow/next/lib/cached-responses.tsnew file mode 100644index 0000000..5cdc5a0--- /dev/null+++ b/src/workspaces/flow/next/lib/cached-responses.ts@@ -0,0 +1,922 @@+export interface CachedResponse {+ promptText: string+ hasImage: boolean+ xml: string+}++export const CACHED_EXAMPLE_RESPONSES: CachedResponse[] = [+ {+ promptText:+ "Give me a **animated connector** diagram of transformer's architecture",+ hasImage: false,+ xml: `<root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+++ <mxCell id="title" value="Transformer Architecture" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="300" y="20" width="250" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="input_embed" value="Input Embedding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">+ <mxGeometry x="80" y="480" width="120" height="40" as="geometry"/>+ </mxCell>+++ <mxCell id="pos_enc_left" value="Positional Encoding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">+ <mxGeometry x="80" y="420" width="120" height="40" as="geometry"/>+ </mxCell>+++ <mxCell id="encoder_box" value="ENCODER" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;verticalAlign=top;fontSize=12;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="60" y="180" width="160" height="220" as="geometry"/>+ </mxCell>+++ <mxCell id="mha_enc" value="Multi-Head
Attention" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="80" y="330" width="120" height="50" as="geometry"/>+ </mxCell>+++ <mxCell id="add_norm1_enc" value="Add & Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="80" y="280" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="ff_enc" value="Feed Forward" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="80" y="240" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="add_norm2_enc" value="Add & Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="80" y="200" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="nx_enc" value="Nx" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=2;" vertex="1" parent="1">+ <mxGeometry x="30" y="275" width="30" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="output_embed" value="Output Embedding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">+ <mxGeometry x="650" y="480" width="120" height="40" as="geometry"/>+ </mxCell>+++ <mxCell id="pos_enc_right" value="Positional Encoding" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">+ <mxGeometry x="650" y="420" width="120" height="40" as="geometry"/>+ </mxCell>+++ <mxCell id="decoder_box" value="DECODER" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;verticalAlign=top;fontSize=12;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="630" y="140" width="160" height="260" as="geometry"/>+ </mxCell>+++ <mxCell id="masked_mha_dec" value="Masked Multi-Head
Attention" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="650" y="340" width="120" height="50" as="geometry"/>+ </mxCell>+++ <mxCell id="add_norm1_dec" value="Add & Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="650" y="290" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="mha_dec" value="Multi-Head
Attention" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="650" y="240" width="120" height="40" as="geometry"/>+ </mxCell>+++ <mxCell id="add_norm2_dec" value="Add & Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="650" y="200" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="ff_dec" value="Feed Forward" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="650" y="160" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="add_norm3_dec" value="Add & Norm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">+ <mxGeometry x="650" y="120" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="nx_dec" value="Nx" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=2;" vertex="1" parent="1">+ <mxGeometry x="790" y="255" width="30" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="linear" value="Linear" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">+ <mxGeometry x="650" y="80" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="softmax" value="Softmax" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">+ <mxGeometry x="650" y="40" width="120" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="output" value="Output Probabilities" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="640" y="0" width="140" height="30" as="geometry"/>+ </mxCell>+++ <mxCell id="conn1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#6c8ebf;flowAnimation=1;" edge="1" parent="1" source="input_embed" target="pos_enc_left">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#6c8ebf;flowAnimation=1;" edge="1" parent="1" source="pos_enc_left" target="mha_enc">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" edge="1" parent="1" source="mha_enc" target="add_norm1_enc">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#d6b656;flowAnimation=1;" edge="1" parent="1" source="add_norm1_enc" target="ff_enc">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" edge="1" parent="1" source="ff_enc" target="add_norm2_enc">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+++ <mxCell id="conn_cross" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=3;strokeColor=#9673a6;flowAnimation=1;dashed=1;" edge="1" parent="1" source="add_norm2_enc" target="mha_dec">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="400" y="215"/>+ <mxPoint x="400" y="260"/>+ </Array>+ </mxGeometry>+ </mxCell>+ <mxCell id="cross_label" value="K, V" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=10;fontStyle=1;fillColor=#ffffff;" vertex="1" connectable="0" parent="conn_cross">+ <mxGeometry x="-0.1" y="1" relative="1" as="geometry">+ <mxPoint x="10" y="-9" as="offset"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="conn6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#d79b00;flowAnimation=1;" edge="1" parent="1" source="output_embed" target="pos_enc_right">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#d79b00;flowAnimation=1;" edge="1" parent="1" source="pos_enc_right" target="masked_mha_dec">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" edge="1" parent="1" source="masked_mha_dec" target="add_norm1_dec">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#d6b656;flowAnimation=1;" edge="1" parent="1" source="add_norm1_dec" target="mha_dec">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" edge="1" parent="1" source="mha_dec" target="add_norm2_dec">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#d6b656;flowAnimation=1;" edge="1" parent="1" source="add_norm2_dec" target="ff_dec">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#82b366;flowAnimation=1;" edge="1" parent="1" source="ff_dec" target="add_norm3_dec">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" edge="1" parent="1" source="add_norm3_dec" target="linear">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#b85450;flowAnimation=1;" edge="1" parent="1" source="linear" target="softmax">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>++ <mxCell id="conn15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=2;strokeColor=#6c8ebf;flowAnimation=1;" edge="1" parent="1" source="softmax" target="output">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+++ <mxCell id="res1_enc" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" edge="1" parent="1" source="mha_enc" target="add_norm1_enc">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="50" y="355"/>+ <mxPoint x="50" y="295"/>+ </Array>+ </mxGeometry>+ </mxCell>++ <mxCell id="res2_enc" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" edge="1" parent="1" source="ff_enc" target="add_norm2_enc">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="50" y="255"/>+ <mxPoint x="50" y="215"/>+ </Array>+ </mxGeometry>+ </mxCell>+++ <mxCell id="res1_dec" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" edge="1" parent="1" source="masked_mha_dec" target="add_norm1_dec">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="800" y="365"/>+ <mxPoint x="800" y="305"/>+ </Array>+ </mxGeometry>+ </mxCell>++ <mxCell id="res2_dec" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" edge="1" parent="1" source="mha_dec" target="add_norm2_dec">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="800" y="260"/>+ <mxPoint x="800" y="215"/>+ </Array>+ </mxGeometry>+ </mxCell>++ <mxCell id="res3_dec" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1.5;strokeColor=#999999;dashed=1;flowAnimation=1;" edge="1" parent="1" source="ff_dec" target="add_norm3_dec">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="800" y="175"/>+ <mxPoint x="800" y="135"/>+ </Array>+ </mxGeometry>+ </mxCell>+++ <mxCell id="input_label" value="Inputs" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="110" y="530" width="60" height="20" as="geometry"/>+ </mxCell>++ <mxCell id="output_label" value="Outputs
(shifted right)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="660" y="530" width="100" height="30" as="geometry"/>+ </mxCell>+</root>`,+ },+ {+ promptText: "Replicate this in aws style",+ hasImage: true,+ xml: `<root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+++ <mxCell id="2" value="AWS" style="sketch=0;outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=12;fontStyle=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_aws_cloud;strokeColor=#232F3E;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#232F3E;dashed=0;rounded=1;arcSize=5;" vertex="1" parent="1">+ <mxGeometry x="340" y="40" width="880" height="520" as="geometry"/>+ </mxCell>+++ <mxCell id="3" value="User" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=#232F3D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=14;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.user;rounded=1;" vertex="1" parent="1">+ <mxGeometry x="80" y="240" width="78" height="78" as="geometry"/>+ </mxCell>+++ <mxCell id="4" value="EC2" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#ED7100;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=14;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.ec2;rounded=1;" vertex="1" parent="1">+ <mxGeometry x="560" y="240" width="78" height="78" as="geometry"/>+ </mxCell>+++ <mxCell id="5" value="S3" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#7AA116;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=14;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.s3;rounded=1;" vertex="1" parent="1">+ <mxGeometry x="960" y="120" width="78" height="78" as="geometry"/>+ </mxCell>+++ <mxCell id="6" value="bedrock" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#01A88D;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=14;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.bedrock;rounded=1;" vertex="1" parent="1">+ <mxGeometry x="960" y="260" width="78" height="78" as="geometry"/>+ </mxCell>+++ <mxCell id="7" value="DynamoDB" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#C925D1;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=14;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.dynamodb;rounded=1;" vertex="1" parent="1">+ <mxGeometry x="960" y="400" width="78" height="78" as="geometry"/>+ </mxCell>+++ <mxCell id="8" value="" style="endArrow=classic;html=1;rounded=0;strokeColor=#232F3E;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="3" target="4">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="400" y="350" as="sourcePoint"/>+ <mxPoint x="450" y="300" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="9" value="" style="endArrow=classic;html=1;rounded=0;strokeColor=#232F3E;strokeWidth=2;exitX=1;exitY=0.25;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="4" target="5">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="700" y="350" as="sourcePoint"/>+ <mxPoint x="750" y="300" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="10" value="" style="endArrow=classic;html=1;rounded=0;strokeColor=#232F3E;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="4" target="6">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="700" y="350" as="sourcePoint"/>+ <mxPoint x="750" y="300" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="11" value="" style="endArrow=classic;html=1;rounded=0;strokeColor=#232F3E;strokeWidth=2;exitX=1;exitY=0.75;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="4" target="7">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="700" y="350" as="sourcePoint"/>+ <mxPoint x="750" y="300" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+</root>`,+ },+ {+ promptText: "Replicate this flowchart.",+ hasImage: true,+ xml: `<root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+++ <mxCell id="2" value="Lamp doesn't work" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffcccc;strokeColor=#000000;strokeWidth=2;fontSize=18;fontStyle=0;" vertex="1" parent="1">+ <mxGeometry x="140" y="40" width="180" height="60" as="geometry"/>+ </mxCell>+++ <mxCell id="3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="2" target="4">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+++ <mxCell id="4" value="Lamp<br>plugged in?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#ffff99;strokeColor=#000000;strokeWidth=2;fontSize=18;fontStyle=0;" vertex="1" parent="1">+ <mxGeometry x="130" y="150" width="200" height="200" as="geometry"/>+ </mxCell>+++ <mxCell id="5" value="No" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;strokeWidth=2;endArrow=block;endFill=1;fontSize=16;" edge="1" parent="1" source="4" target="6">+ <mxGeometry x="-0.2" relative="1" as="geometry">+ <mxPoint as="offset"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="6" value="Plug in lamp" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#99ff99;strokeColor=#000000;strokeWidth=2;fontSize=18;fontStyle=0;" vertex="1" parent="1">+ <mxGeometry x="420" y="220" width="200" height="60" as="geometry"/>+ </mxCell>+++ <mxCell id="7" value="Yes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;strokeWidth=2;endArrow=block;endFill=1;fontSize=16;" edge="1" parent="1" source="4" target="8">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+++ <mxCell id="8" value="Bulb<br>burned out?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#ffff99;strokeColor=#000000;strokeWidth=2;fontSize=18;fontStyle=0;" vertex="1" parent="1">+ <mxGeometry x="130" y="400" width="200" height="200" as="geometry"/>+ </mxCell>+++ <mxCell id="9" value="Yes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;strokeWidth=2;endArrow=block;endFill=1;fontSize=16;" edge="1" parent="1" source="8" target="10">+ <mxGeometry x="-0.2" relative="1" as="geometry">+ <mxPoint as="offset"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="10" value="Replace bulb" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#99ff99;strokeColor=#000000;strokeWidth=2;fontSize=18;fontStyle=0;" vertex="1" parent="1">+ <mxGeometry x="420" y="470" width="200" height="60" as="geometry"/>+ </mxCell>+++ <mxCell id="11" value="No" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#000000;strokeWidth=2;endArrow=block;endFill=1;fontSize=16;" edge="1" parent="1" source="8" target="12">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+++ <mxCell id="12" value="Repair lamp" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#99ff99;strokeColor=#000000;strokeWidth=2;fontSize=18;fontStyle=0;" vertex="1" parent="1">+ <mxGeometry x="130" y="650" width="200" height="60" as="geometry"/>+ </mxCell>+</root>`,+ },+ {+ promptText: "Summarize this paper as a diagram",+ hasImage: true,+ xml: ` <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />+ <mxCell id="title_bg" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1a237e;strokeColor=none;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="80" width="720" x="40" y="20" as="geometry" />+ </mxCell>+ <mxCell id="title" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=22;fontStyle=1;fontColor=#FFFFFF;"+ value="Chain-of-Thought Prompting<br><font style="font-size: 14px;">Elicits Reasoning in Large Language Models</font>"+ vertex="1">+ <mxGeometry height="70" width="720" x="40" y="25" as="geometry" />+ </mxCell>+ <mxCell id="authors" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontColor=#666666;"+ value="Wei et al. (Google Research, Brain Team) | NeurIPS 2022" vertex="1">+ <mxGeometry height="20" width="720" x="40" y="100" as="geometry" />+ </mxCell>+ <mxCell id="core_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃挕 Core Idea" vertex="1">+ <mxGeometry height="30" width="150" x="40" y="125" as="geometry" />+ </mxCell>+ <mxCell id="core_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;align=left;spacingLeft=10;spacingRight=10;fontSize=11;"+ value="<b>Chain of Thought</b> = A series of intermediate reasoning steps that lead to the final answer<br><br>Simply provide a few CoT demonstrations as exemplars in few-shot prompting"+ vertex="1">+ <mxGeometry height="75" width="340" x="40" y="155" as="geometry" />+ </mxCell>+ <mxCell id="compare_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="鈿栵笍 Standard vs Chain-of-Thought Prompting" vertex="1">+ <mxGeometry height="30" width="350" x="40" y="240" as="geometry" />+ </mxCell>+ <mxCell id="std_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="160" width="170" x="40" y="275" as="geometry" />+ </mxCell>+ <mxCell id="std_title" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#C62828;"+ value="Standard Prompting" vertex="1">+ <mxGeometry height="25" width="170" x="40" y="280" as="geometry" />+ </mxCell>+ <mxCell id="std_q" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=9;spacingLeft=5;spacingRight=5;"+ value="Q: Roger has 5 tennis balls. He buys 2 more cans. Each can has 3 balls. How many now?"+ vertex="1">+ <mxGeometry height="55" width="160" x="45" y="305" as="geometry" />+ </mxCell>+ <mxCell id="std_a" parent="1"+ style="text;html=1;strokeColor=none;fillColor=#FFCDD2;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;spacingLeft=5;"+ value="A: The answer is 11." vertex="1">+ <mxGeometry height="25" width="150" x="50" y="365" as="geometry" />+ </mxCell>+ <mxCell id="std_result" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1;fontColor=#C62828;"+ value="鉂?Often Wrong" vertex="1">+ <mxGeometry height="30" width="170" x="40" y="400" as="geometry" />+ </mxCell>+ <mxCell id="cot_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="160" width="170" x="220" y="275" as="geometry" />+ </mxCell>+ <mxCell id="cot_title" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#2E7D32;"+ value="Chain-of-Thought" vertex="1">+ <mxGeometry height="25" width="170" x="220" y="280" as="geometry" />+ </mxCell>+ <mxCell id="cot_q" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=9;spacingLeft=5;spacingRight=5;"+ value="Q: Roger has 5 tennis balls. He buys 2 more cans. Each can has 3 balls. How many now?"+ vertex="1">+ <mxGeometry height="55" width="160" x="225" y="305" as="geometry" />+ </mxCell>+ <mxCell id="cot_a" parent="1"+ style="text;html=1;strokeColor=none;fillColor=#C8E6C9;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=9;fontStyle=1;spacingLeft=5;"+ value="A: 2 cans 脳 3 = 6 balls.<br>5 + 6 = 11. Answer: 11" vertex="1">+ <mxGeometry height="35" width="150" x="230" y="360" as="geometry" />+ </mxCell>+ <mxCell id="cot_result" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1;fontColor=#2E7D32;"+ value="鉁?Correct!" vertex="1">+ <mxGeometry height="30" width="170" x="220" y="400" as="geometry" />+ </mxCell>+ <mxCell id="vs_arrow" edge="1" parent="1"+ style="shape=flexArrow;endArrow=classic;startArrow=classic;html=1;fillColor=#FFC107;strokeColor=none;width=8;endSize=4;startSize=4;"+ value="">+ <mxGeometry relative="1" width="100" as="geometry">+ <mxPoint x="195" y="355" as="sourcePoint" />+ <mxPoint x="235" y="355" as="targetPoint" />+ </mxGeometry>+ </mxCell>+ <mxCell id="props_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃攽 Key Properties" vertex="1">+ <mxGeometry height="30" width="150" x="400" y="125" as="geometry" />+ </mxCell>+ <mxCell id="prop1" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#EF6C00;fontSize=10;align=left;spacingLeft=8;"+ value="1锔忊儯 Decomposes multi-step problems" vertex="1">+ <mxGeometry height="32" width="180" x="400" y="155" as="geometry" />+ </mxCell>+ <mxCell id="prop2" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#EF6C00;fontSize=10;align=left;spacingLeft=8;"+ value="2锔忊儯 Interpretable reasoning window" vertex="1">+ <mxGeometry height="32" width="180" x="400" y="192" as="geometry" />+ </mxCell>+ <mxCell id="prop3" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#EF6C00;fontSize=10;align=left;spacingLeft=8;"+ value="3锔忊儯 Applicable to any language task" vertex="1">+ <mxGeometry height="32" width="180" x="400" y="229" as="geometry" />+ </mxCell>+ <mxCell id="prop4" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#EF6C00;fontSize=10;align=left;spacingLeft=8;"+ value="4锔忊儯 No finetuning required" vertex="1">+ <mxGeometry height="32" width="180" x="400" y="266" as="geometry" />+ </mxCell>+ <mxCell id="emergent_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃搱 Emergent Ability" vertex="1">+ <mxGeometry height="30" width="180" x="400" y="310" as="geometry" />+ </mxCell>+ <mxCell id="emergent_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="95" width="180" x="400" y="340" as="geometry" />+ </mxCell>+ <mxCell id="emergent_text" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;"+ value="CoT only works with<br><b>~100B+ parameters</b><br><br>Small models produce<br>fluent but illogical chains"+ vertex="1">+ <mxGeometry height="85" width="180" x="400" y="345" as="geometry" />+ </mxCell>+ <mxCell id="results_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃搳 Key Results" vertex="1">+ <mxGeometry height="30" width="150" x="600" y="125" as="geometry" />+ </mxCell>+ <mxCell id="gsm_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="100" width="160" x="600" y="155" as="geometry" />+ </mxCell>+ <mxCell id="gsm_title" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#2E7D32;"+ value="GSM8K (Math)" vertex="1">+ <mxGeometry height="20" width="160" x="600" y="160" as="geometry" />+ </mxCell>+ <mxCell id="gsm_bar1" parent="1"+ style="rounded=0;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=none;"+ value="" vertex="1">+ <mxGeometry height="30" width="40" x="615" y="185" as="geometry" />+ </mxCell>+ <mxCell id="gsm_bar2" parent="1"+ style="rounded=0;whiteSpace=wrap;html=1;fillColor=#4CAF50;strokeColor=none;"+ value="" vertex="1">+ <mxGeometry height="30" width="80" x="665" y="185" as="geometry" />+ </mxCell>+ <mxCell id="gsm_label1" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;fontStyle=1;"+ value="18%" vertex="1">+ <mxGeometry height="15" width="40" x="615" y="215" as="geometry" />+ </mxCell>+ <mxCell id="gsm_label2" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;fontStyle=1;fontColor=#2E7D32;"+ value="57%" vertex="1">+ <mxGeometry height="15" width="80" x="665" y="215" as="geometry" />+ </mxCell>+ <mxCell id="gsm_legend" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=9;fontColor=#666666;"+ value="Standard 鈫?CoT (PaLM 540B)" vertex="1">+ <mxGeometry height="20" width="160" x="600" y="232" as="geometry" />+ </mxCell>+ <mxCell id="bench_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃И Benchmarks Tested" vertex="1">+ <mxGeometry height="30" width="180" x="600" y="265" as="geometry" />+ </mxCell>+ <mxCell id="bench_arith" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;fontSize=10;align=center;"+ value="馃敘 Arithmetic<br><font style="font-size: 9px;">GSM8K, SVAMP, ASDiv, AQuA, MAWPS</font>"+ vertex="1">+ <mxGeometry height="45" width="160" x="600" y="295" as="geometry" />+ </mxCell>+ <mxCell id="bench_common" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;fontSize=10;align=center;"+ value="馃 Commonsense<br><font style="font-size: 9px;">CSQA, StrategyQA, Date, Sports, SayCan</font>"+ vertex="1">+ <mxGeometry height="45" width="160" x="600" y="345" as="geometry" />+ </mxCell>+ <mxCell id="bench_symbol" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;fontSize=10;align=center;"+ value="馃敚 Symbolic<br><font style="font-size: 9px;">Last Letter Concat, Coin Flip</font>"+ vertex="1">+ <mxGeometry height="40" width="160" x="600" y="395" as="geometry" />+ </mxCell>+ <mxCell id="task_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃幆 Task Types & Results" vertex="1">+ <mxGeometry height="30" width="200" x="40" y="445" as="geometry" />+ </mxCell>+ <mxCell id="task_arith" parent="1"+ style="ellipse;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;fontStyle=1;"+ value="Arithmetic<br>Reasoning" vertex="1">+ <mxGeometry height="60" width="90" x="40" y="480" as="geometry" />+ </mxCell>+ <mxCell id="task_arith_res" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=9;fontColor=#1565C0;"+ value="SOTA on GSM8K<br>(57% vs 55% prior)" vertex="1">+ <mxGeometry height="30" width="110" x="30" y="540" as="geometry" />+ </mxCell>+ <mxCell id="task_common" parent="1"+ style="ellipse;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=11;fontStyle=1;"+ value="Commonsense<br>Reasoning" vertex="1">+ <mxGeometry height="60" width="90" x="160" y="480" as="geometry" />+ </mxCell>+ <mxCell id="task_common_res" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=9;fontColor=#2E7D32;"+ value="SOTA StrategyQA<br>(75.6% vs 69.4%)" vertex="1">+ <mxGeometry height="30" width="110" x="150" y="540" as="geometry" />+ </mxCell>+ <mxCell id="task_symbol" parent="1"+ style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#EF6C00;fontSize=11;fontStyle=1;"+ value="Symbolic<br>Reasoning" vertex="1">+ <mxGeometry height="60" width="90" x="280" y="480" as="geometry" />+ </mxCell>+ <mxCell id="task_symbol_res" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontSize=9;fontColor=#EF6C00;"+ value="OOD Generalization<br>to longer sequences" vertex="1">+ <mxGeometry height="30" width="110" x="270" y="540" as="geometry" />+ </mxCell>+ <mxCell id="task_arrow1" edge="1" parent="1"+ style="endArrow=classic;html=1;strokeColor=#9E9E9E;strokeWidth=2;" value="">+ <mxGeometry height="50" relative="1" width="50" as="geometry">+ <mxPoint x="130" y="510" as="sourcePoint" />+ <mxPoint x="160" y="510" as="targetPoint" />+ </mxGeometry>+ </mxCell>+ <mxCell id="task_arrow2" edge="1" parent="1"+ style="endArrow=classic;html=1;strokeColor=#9E9E9E;strokeWidth=2;" value="">+ <mxGeometry height="50" relative="1" width="50" as="geometry">+ <mxPoint x="250" y="510" as="sourcePoint" />+ <mxPoint x="280" y="510" as="targetPoint" />+ </mxGeometry>+ </mxCell>+ <mxCell id="models_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="馃 Models Tested" vertex="1">+ <mxGeometry height="30" width="150" x="400" y="445" as="geometry" />+ </mxCell>+ <mxCell id="models_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#607D8B;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="95" width="180" x="400" y="475" as="geometry" />+ </mxCell>+ <mxCell id="model1" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;spacingLeft=10;"+ value="鈥?GPT-3 (175B)" vertex="1">+ <mxGeometry height="20" width="90" x="400" y="480" as="geometry" />+ </mxCell>+ <mxCell id="model2" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;spacingLeft=10;"+ value="鈥?LaMDA (137B)" vertex="1">+ <mxGeometry height="20" width="90" x="400" y="500" as="geometry" />+ </mxCell>+ <mxCell id="model3" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;spacingLeft=10;"+ value="鈥?PaLM (540B)" vertex="1">+ <mxGeometry height="20" width="90" x="400" y="520" as="geometry" />+ </mxCell>+ <mxCell id="model4" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;spacingLeft=10;"+ value="鈥?Codex" vertex="1">+ <mxGeometry height="20" width="80" x="490" y="480" as="geometry" />+ </mxCell>+ <mxCell id="model5" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;spacingLeft=10;"+ value="鈥?UL2 (20B)" vertex="1">+ <mxGeometry height="20" width="80" x="490" y="500" as="geometry" />+ </mxCell>+ <mxCell id="model_note" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;fontStyle=2;fontColor=#607D8B;"+ value="No finetuning - prompting only!" vertex="1">+ <mxGeometry height="20" width="180" x="400" y="545" as="geometry" />+ </mxCell>+ <mxCell id="takeaway_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#1a237e;"+ value="鉁?Key Takeaways" vertex="1">+ <mxGeometry height="30" width="160" x="600" y="445" as="geometry" />+ </mxCell>+ <mxCell id="takeaway_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#FFA000;arcSize=8;"+ value="" vertex="1">+ <mxGeometry height="95" width="160" x="600" y="475" as="geometry" />+ </mxCell>+ <mxCell id="take1" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;spacingLeft=5;"+ value="鉁?Simple yet powerful" vertex="1">+ <mxGeometry height="18" width="150" x="605" y="480" as="geometry" />+ </mxCell>+ <mxCell id="take2" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;spacingLeft=5;"+ value="鉁?Emergent at scale" vertex="1">+ <mxGeometry height="18" width="150" x="605" y="498" as="geometry" />+ </mxCell>+ <mxCell id="take3" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;spacingLeft=5;"+ value="鉁?Broadly applicable" vertex="1">+ <mxGeometry height="18" width="150" x="605" y="516" as="geometry" />+ </mxCell>+ <mxCell id="take4" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;spacingLeft=5;"+ value="鉁?No training needed" vertex="1">+ <mxGeometry height="18" width="150" x="605" y="534" as="geometry" />+ </mxCell>+ <mxCell id="take5" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=10;spacingLeft=5;"+ value="鉁?State-of-the-art results" vertex="1">+ <mxGeometry height="18" width="150" x="605" y="552" as="geometry" />+ </mxCell>+ <mxCell id="format_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1;fontColor=#1a237e;"+ value="馃摑 Prompt Format" vertex="1">+ <mxGeometry height="25" width="150" x="40" y="575" as="geometry" />+ </mxCell>+ <mxCell id="format_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=12;fontStyle=1;"+ value="銆?Input, Chain of Thought, Output 銆? vertex="1">+ <mxGeometry height="35" width="250" x="40" y="600" as="geometry" />+ </mxCell>+ <mxCell id="limit_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1;fontColor=#1a237e;"+ value="鈿狅笍 Limitations" vertex="1">+ <mxGeometry height="25" width="120" x="310" y="575" as="geometry" />+ </mxCell>+ <mxCell id="limit_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=8;"+ value="鈥?Requires large models (~100B+)<br>鈥?No guarantee of correct reasoning<br>鈥?Costly to serve in production"+ vertex="1">+ <mxGeometry height="55" width="200" x="310" y="600" as="geometry" />+ </mxCell>+ <mxCell id="impact_header" parent="1"+ style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1;fontColor=#1a237e;"+ value="馃殌 Impact" vertex="1">+ <mxGeometry height="25" width="100" x="530" y="575" as="geometry" />+ </mxCell>+ <mxCell id="impact_box" parent="1"+ style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;fontSize=10;align=left;spacingLeft=8;spacingRight=8;"+ value="Foundational technique for modern LLM reasoning - inspired many follow-up works including Self-Consistency, Tree-of-Thought, etc."+ vertex="1">+ <mxGeometry height="55" width="230" x="530" y="600" as="geometry" />+ </mxCell>+ </root>`,+ },+ {+ promptText: "Draw a cat for me",+ hasImage: false,+ xml: `<root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+++ <mxCell id="2" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#FFE6CC;strokeColor=#000000;strokeWidth=2;" vertex="1" parent="1">+ <mxGeometry x="300" y="150" width="120" height="120" as="geometry"/>+ </mxCell>+++ <mxCell id="3" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#000000;strokeWidth=2;rotation=30;" vertex="1" parent="1">+ <mxGeometry x="280" y="120" width="50" height="60" as="geometry"/>+ </mxCell>+++ <mxCell id="4" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#000000;strokeWidth=2;rotation=-30;" vertex="1" parent="1">+ <mxGeometry x="390" y="120" width="50" height="60" as="geometry"/>+ </mxCell>+++ <mxCell id="5" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFB6C1;strokeColor=none;rotation=30;" vertex="1" parent="1">+ <mxGeometry x="290" y="135" width="30" height="35" as="geometry"/>+ </mxCell>+++ <mxCell id="6" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFB6C1;strokeColor=none;rotation=-30;" vertex="1" parent="1">+ <mxGeometry x="400" y="135" width="30" height="35" as="geometry"/>+ </mxCell>+++ <mxCell id="7" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#000000;strokeColor=#000000;" vertex="1" parent="1">+ <mxGeometry x="325" y="185" width="15" height="15" as="geometry"/>+ </mxCell>+++ <mxCell id="8" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#000000;strokeColor=#000000;" vertex="1" parent="1">+ <mxGeometry x="380" y="185" width="15" height="15" as="geometry"/>+ </mxCell>+++ <mxCell id="9" value="" style="triangle;whiteSpace=wrap;html=1;fillColor=#FFB6C1;strokeColor=#000000;strokeWidth=1;rotation=180;" vertex="1" parent="1">+ <mxGeometry x="350" y="210" width="20" height="15" as="geometry"/>+ </mxCell>+++ <mxCell id="10" value="" style="curved=1;endArrow=none;html=1;strokeColor=#000000;strokeWidth=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="360" y="220" as="sourcePoint"/>+ <mxPoint x="340" y="235" as="targetPoint"/>+ <Array as="points">+ <mxPoint x="355" y="230"/>+ </Array>+ </mxGeometry>+ </mxCell>+++ <mxCell id="11" value="" style="curved=1;endArrow=none;html=1;strokeColor=#000000;strokeWidth=2;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="360" y="220" as="sourcePoint"/>+ <mxPoint x="380" y="235" as="targetPoint"/>+ <Array as="points">+ <mxPoint x="365" y="230"/>+ </Array>+ </mxGeometry>+ </mxCell>+++ <mxCell id="12" value="" style="endArrow=none;html=1;strokeColor=#000000;strokeWidth=1.5;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="310" y="200" as="sourcePoint"/>+ <mxPoint x="260" y="195" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="13" value="" style="endArrow=none;html=1;strokeColor=#000000;strokeWidth=1.5;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="310" y="210" as="sourcePoint"/>+ <mxPoint x="260" y="210" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="14" value="" style="endArrow=none;html=1;strokeColor=#000000;strokeWidth=1.5;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="310" y="220" as="sourcePoint"/>+ <mxPoint x="260" y="225" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="15" value="" style="endArrow=none;html=1;strokeColor=#000000;strokeWidth=1.5;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="410" y="200" as="sourcePoint"/>+ <mxPoint x="460" y="195" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="16" value="" style="endArrow=none;html=1;strokeColor=#000000;strokeWidth=1.5;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="410" y="210" as="sourcePoint"/>+ <mxPoint x="460" y="210" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="17" value="" style="endArrow=none;html=1;strokeColor=#000000;strokeWidth=1.5;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="410" y="220" as="sourcePoint"/>+ <mxPoint x="460" y="225" as="targetPoint"/>+ </mxGeometry>+ </mxCell>+++ <mxCell id="18" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#000000;strokeWidth=2;" vertex="1" parent="1">+ <mxGeometry x="285" y="250" width="150" height="180" as="geometry"/>+ </mxCell>+++ <mxCell id="19" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=none;" vertex="1" parent="1">+ <mxGeometry x="315" y="280" width="90" height="120" as="geometry"/>+ </mxCell>+++ <mxCell id="20" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#000000;strokeWidth=2;" vertex="1" parent="1">+ <mxGeometry x="300" y="410" width="40" height="50" as="geometry"/>+ </mxCell>+++ <mxCell id="21" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFE6CC;strokeColor=#000000;strokeWidth=2;" vertex="1" parent="1">+ <mxGeometry x="380" y="410" width="40" height="50" as="geometry"/>+ </mxCell>+++ <mxCell id="22" value="" style="curved=1;endArrow=none;html=1;strokeColor=#000000;strokeWidth=3;fillColor=#FFE6CC;" edge="1" parent="1">+ <mxGeometry width="50" height="50" relative="1" as="geometry">+ <mxPoint x="285" y="340" as="sourcePoint"/>+ <mxPoint x="240" y="260" as="targetPoint"/>+ <Array as="points">+ <mxPoint x="260" y="350"/>+ <mxPoint x="240" y="320"/>+ <mxPoint x="235" y="290"/>+ </Array>+ </mxGeometry>+ </mxCell>++</root>`,+ },+]++export function findCachedResponse(+ promptText: string,+ hasImage: boolean,+): CachedResponse | undefined {+ return CACHED_EXAMPLE_RESPONSES.find(+ (c) =>+ c.promptText === promptText &&+ c.hasImage === hasImage &&+ c.xml !== "",+ )+}+diff --git a/src/workspaces/flow/next/lib/langfuse.ts b/src/workspaces/flow/next/lib/langfuse.tsnew file mode 100644index 0000000..241e256--- /dev/null+++ b/src/workspaces/flow/next/lib/langfuse.ts@@ -0,0 +1,106 @@+import { LangfuseClient } from "@langfuse/client"+import { observe, updateActiveTrace } from "@langfuse/tracing"+import * as api from "@opentelemetry/api"++// Singleton LangfuseClient instance for direct API calls+let langfuseClient: LangfuseClient | null = null++export function getLangfuseClient(): LangfuseClient | null {+ if (!process.env.LANGFUSE_PUBLIC_KEY || !process.env.LANGFUSE_SECRET_KEY) {+ return null+ }++ if (!langfuseClient) {+ langfuseClient = new LangfuseClient({+ publicKey: process.env.LANGFUSE_PUBLIC_KEY,+ secretKey: process.env.LANGFUSE_SECRET_KEY,+ baseUrl: process.env.LANGFUSE_BASEURL,+ })+ }++ return langfuseClient+}++// Check if Langfuse is configured+export function isLangfuseEnabled(): boolean {+ return !!process.env.LANGFUSE_PUBLIC_KEY+}++// Update trace with input data at the start of request+export function setTraceInput(params: {+ input: string+ sessionId?: string+ userId?: string+}) {+ if (!isLangfuseEnabled()) return++ updateActiveTrace({+ name: "chat",+ input: params.input,+ sessionId: params.sessionId,+ userId: params.userId,+ })+}++// Update trace with output and end the span+export function setTraceOutput(+ output: string,+ usage?: { promptTokens?: number; completionTokens?: number },+) {+ if (!isLangfuseEnabled()) return++ updateActiveTrace({ output })++ const activeSpan = api.trace.getActiveSpan()+ if (activeSpan) {+ // Manually set usage attributes since AI SDK Bedrock streaming doesn't provide them+ if (usage?.promptTokens) {+ activeSpan.setAttribute("ai.usage.promptTokens", usage.promptTokens)+ activeSpan.setAttribute(+ "gen_ai.usage.input_tokens",+ usage.promptTokens,+ )+ }+ if (usage?.completionTokens) {+ activeSpan.setAttribute(+ "ai.usage.completionTokens",+ usage.completionTokens,+ )+ activeSpan.setAttribute(+ "gen_ai.usage.output_tokens",+ usage.completionTokens,+ )+ }+ activeSpan.end()+ }+}++// Get telemetry config for streamText+export function getTelemetryConfig(params: {+ sessionId?: string+ userId?: string+}) {+ if (!isLangfuseEnabled()) return undefined++ return {+ isEnabled: true,+ recordInputs: true,+ recordOutputs: true,+ metadata: {+ sessionId: params.sessionId,+ userId: params.userId,+ },+ }+}++// Wrap a handler with Langfuse observe+export function wrapWithObserve<T>(+ handler: (req: Request) => Promise<T>,+): (req: Request) => Promise<T> {+ if (!isLangfuseEnabled()) {+ return handler+ }++ return observe(handler, { name: "chat", endOnExit: false })+}+diff --git a/src/workspaces/flow/next/lib/pdf-utils.ts b/src/workspaces/flow/next/lib/pdf-utils.tsnew file mode 100644index 0000000..4ea1f94--- /dev/null+++ b/src/workspaces/flow/next/lib/pdf-utils.ts@@ -0,0 +1,82 @@+import { extractText, getDocumentProxy } from "unpdf"++// Maximum characters allowed for extracted text (configurable via env)+const DEFAULT_MAX_EXTRACTED_CHARS = 150000 // 150k chars+const viteMaxExtractedChars =+ typeof import.meta !== "undefined" &&+ import.meta.env &&+ typeof import.meta.env.VITE_MAX_EXTRACTED_CHARS !== "undefined"+ ? Number(import.meta.env.VITE_MAX_EXTRACTED_CHARS)+ : NaN+export const MAX_EXTRACTED_CHARS =+ (Number.isFinite(viteMaxExtractedChars) ? viteMaxExtractedChars : NaN) ||+ DEFAULT_MAX_EXTRACTED_CHARS++// Text file extensions we support+const TEXT_EXTENSIONS = [+ ".txt",+ ".md",+ ".markdown",+ ".json",+ ".csv",+ ".xml",+ ".html",+ ".css",+ ".js",+ ".ts",+ ".jsx",+ ".tsx",+ ".py",+ ".java",+ ".c",+ ".cpp",+ ".h",+ ".go",+ ".rs",+ ".yaml",+ ".yml",+ ".toml",+ ".ini",+ ".log",+ ".sh",+ ".bash",+ ".zsh",+]++/**+ * Extract text content from a PDF file+ * Uses unpdf library for client-side extraction+ */+export async function extractPdfText(file: File): Promise<string> {+ const buffer = await file.arrayBuffer()+ const pdf = await getDocumentProxy(new Uint8Array(buffer))+ const { text } = await extractText(pdf, { mergePages: true })+ return text as string+}++/**+ * Check if a file is a PDF+ */+export function isPdfFile(file: File): boolean {+ return file.type === "application/pdf" || file.name.endsWith(".pdf")+}++/**+ * Check if a file is a text file+ */+export function isTextFile(file: File): boolean {+ const name = file.name.toLowerCase()+ return (+ file.type.startsWith("text/") ||+ file.type === "application/json" ||+ TEXT_EXTENSIONS.some((ext) => name.endsWith(ext))+ )+}++/**+ * Extract text content from a text file+ */+export async function extractTextFileContent(file: File): Promise<string> {+ return await file.text()+}+diff --git a/src/workspaces/flow/next/lib/storage.ts b/src/workspaces/flow/next/lib/storage.tsnew file mode 100644index 0000000..797495c--- /dev/null+++ b/src/workspaces/flow/next/lib/storage.ts@@ -0,0 +1,28 @@+// Centralized localStorage keys+// Consolidates all storage keys from chat-panel.tsx and settings-dialog.tsx++export const STORAGE_KEYS = {+ // Chat data+ messages: "next-ai-draw-io-messages",+ xmlSnapshots: "next-ai-draw-io-xml-snapshots",+ diagramXml: "next-ai-draw-io-diagram-xml",+ sessionId: "next-ai-draw-io-session-id",++ // Quota tracking+ requestCount: "next-ai-draw-io-request-count",+ requestDate: "next-ai-draw-io-request-date",+ tokenCount: "next-ai-draw-io-token-count",+ tokenDate: "next-ai-draw-io-token-date",+ tpmCount: "next-ai-draw-io-tpm-count",+ tpmMinute: "next-ai-draw-io-tpm-minute",++ // Settings+ accessCode: "next-ai-draw-io-access-code",+ closeProtection: "next-ai-draw-io-close-protection",+ accessCodeRequired: "next-ai-draw-io-access-code-required",+ aiProvider: "next-ai-draw-io-ai-provider",+ aiBaseUrl: "next-ai-draw-io-ai-base-url",+ aiApiKey: "next-ai-draw-io-ai-api-key",+ aiModel: "next-ai-draw-io-ai-model",+} as const+diff --git a/src/workspaces/flow/next/lib/system-prompts.ts b/src/workspaces/flow/next/lib/system-prompts.tsnew file mode 100644index 0000000..6986077--- /dev/null+++ b/src/workspaces/flow/next/lib/system-prompts.ts@@ -0,0 +1,348 @@+/**+ * System prompts for different AI models+ * Extended prompt is used for models with higher cache token minimums (Opus 4.5, Haiku 4.5)+ *+ * Token counting utilities are in a separate file (token-counter.ts) to avoid+ * WebAssembly issues with Next.js server-side rendering.+ */++// Default system prompt (~1900 tokens) - works with all models+export const DEFAULT_SYSTEM_PROMPT = `+You are an expert diagram creation assistant specializing in draw.io XML generation.+Your primary function is chat with user and crafting clear, well-organized visual diagrams through precise XML specifications.+You can see images that users upload, and you can read the text content extracted from PDF documents they upload.++When you are asked to create a diagram, briefly describe your plan about the layout and structure to avoid object overlapping or edge cross the objects. (2-3 sentences max), then use display_diagram tool to generate the XML.+After generating or editing a diagram, you don't need to say anything. The user can see the diagram - no need to describe it.++## App Context+You are an AI agent (powered by {{MODEL_NAME}}) inside a web app. The interface has:+- **Left panel**: Draw.io diagram editor where diagrams are rendered+- **Right panel**: Chat interface where you communicate with the user++You can read and modify diagrams by generating draw.io XML code through tool calls.++## App Features+1. **Diagram History** (clock icon, bottom-left of chat input): The app automatically saves a snapshot before each AI edit. Users can view the history panel and restore any previous version. Feel free to make changes - nothing is permanently lost.+2. **Theme Toggle** (palette icon, bottom-left of chat input): Users can switch between minimal UI and sketch-style UI for the draw.io editor.+3. **Image/PDF Upload** (paperclip icon, bottom-left of chat input): Users can upload images or PDF documents for you to analyze and generate diagrams from.+4. **Export** (via draw.io toolbar): Users can save diagrams as .drawio, .svg, or .png files.+5. **Clear Chat** (trash icon, bottom-right of chat input): Clears the conversation and resets the diagram.++You utilize the following tools:+---Tool1---+tool name: display_diagram+description: Display a NEW diagram on draw.io. Use this when creating a diagram from scratch or when major structural changes are needed.+parameters: {+ xml: string+}+---Tool2---+tool name: edit_diagram+description: Edit specific parts of the EXISTING diagram. Use this when making small targeted changes like adding/removing elements, changing labels, or adjusting properties. This is more efficient than regenerating the entire diagram.+parameters: {+ edits: Array<{search: string, replace: string}>+}+---End of tools---++IMPORTANT: Choose the right tool:+- Use display_diagram for: Creating new diagrams, major restructuring, or when the current diagram XML is empty+- Use edit_diagram for: Small modifications, adding/removing elements, changing text/colors, repositioning items++Core capabilities:+- Generate valid, well-formed XML strings for draw.io diagrams+- Create professional flowcharts, mind maps, entity diagrams, and technical illustrations+- Convert user descriptions into visually appealing diagrams using basic shapes and connectors+- Apply proper spacing, alignment and visual hierarchy in diagram layouts+- Adapt artistic concepts into abstract diagram representations using available shapes+- Optimize element positioning to prevent overlapping and maintain readability+- Structure complex systems into clear, organized visual components++++Layout constraints:+- CRITICAL: Keep all diagram elements within a single page viewport to avoid page breaks+- Position all elements with x coordinates between 0-800 and y coordinates between 0-600+- Maximum width for containers (like AWS cloud boxes): 700 pixels+- Maximum height for containers: 550 pixels+- Use compact, efficient layouts that fit the entire diagram in one view+- Start positioning from reasonable margins (e.g., x=40, y=40) and keep elements grouped closely+- For large diagrams with many elements, use vertical stacking or grid layouts that stay within bounds+- Avoid spreading elements too far apart horizontally - users should see the complete diagram without a page break line++Note that:+- Use proper tool calls to generate or edit diagrams;+ - never return raw XML in text responses,+ - never use display_diagram to generate messages that you want to send user directly. e.g. to generate a "hello" text box when you want to greet user.+- Focus on producing clean, professional diagrams that effectively communicate the intended information through thoughtful layout and design choices.+- When artistic drawings are requested, creatively compose them using standard diagram shapes and connectors while maintaining visual clarity.+- Return XML only via tool calls, never in text responses.+- If user asks you to replicate a diagram based on an image, remember to match the diagram style and layout as closely as possible. Especially, pay attention to the lines and shapes, for example, if the lines are straight or curved, and if the shapes are rounded or square.+- Note that when you need to generate diagram about aws architecture, use **AWS 2025 icons**.+- NEVER include XML comments (<!-- ... -->) in your generated XML. Draw.io strips comments, which breaks edit_diagram patterns.++When using edit_diagram tool:+- CRITICAL: Copy search patterns EXACTLY from the "Current diagram XML" in system context - attribute order matters!+- Always include the element's id attribute for unique targeting: {"search": "<mxCell id=\\"5\\"", ...}+- Include complete elements (mxCell + mxGeometry) for reliable matching+- Preserve exact whitespace, indentation, and line breaks+- BAD: {"search": "value=\\"Label\\"", ...} - too vague, matches multiple elements+- GOOD: {"search": "<mxCell id=\\"3\\" value=\\"Old\\" style=\\"...\\">", "replace": "<mxCell id=\\"3\\" value=\\"New\\" style=\\"...\\">"}+- For multiple changes, use separate edits in array+- RETRY POLICY: If pattern not found, retry up to 3 times with adjusted patterns. After 3 failures, use display_diagram instead.++鈿狅笍 CRITICAL JSON ESCAPING: When outputting edit_diagram tool calls, you MUST escape ALL double quotes inside string values:+- CORRECT: "y=\\"119\\"" (both quotes escaped)+- WRONG: "y="119\\"" (missing backslash before first quote - causes JSON parse error!)+- Every " inside a JSON string value needs \\" - no exceptions!++## Draw.io XML Structure Reference++Basic structure:+\`\`\`xml+<mxGraphModel>+ <root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+ </root>+</mxGraphModel>+\`\`\`+Note: All other mxCell elements go as siblings after id="1".++CRITICAL RULES:+1. Always include the two root cells: <mxCell id="0"/> and <mxCell id="1" parent="0"/>+2. ALL mxCell elements must be DIRECT children of <root> - NEVER nest mxCell inside another mxCell+3. Use unique sequential IDs for all cells (start from "2" for user content)+4. Set parent="1" for top-level shapes, or parent="<container-id>" for grouped elements++Shape (vertex) example:+\`\`\`xml+<mxCell id="2" value="Label" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="100" width="120" height="60" as="geometry"/>+</mxCell>+\`\`\`++Connector (edge) example:+\`\`\`xml+<mxCell id="3" style="endArrow=classic;html=1;" edge="1" parent="1" source="2" target="4">+ <mxGeometry relative="1" as="geometry"/>+</mxCell>+\`\`\`++Common styles:+- Shapes: rounded=1 (rounded corners), fillColor=#hex, strokeColor=#hex+- Edges: endArrow=classic/block/open/none, startArrow=none/classic, curved=1, edgeStyle=orthogonalEdgeStyle+- Text: fontSize=14, fontStyle=1 (bold), align=center/left/right++`++// Extended additions (~2600 tokens) - appended for models with 4000 token cache minimum+// Total EXTENDED_SYSTEM_PROMPT = ~4400 tokens+const EXTENDED_ADDITIONS = `++## Extended Tool Reference++### display_diagram Details++**VALIDATION RULES** (XML will be rejected if violated):+1. All mxCell elements must be DIRECT children of <root> - never nested inside other mxCell elements+2. Every mxCell needs a unique id attribute+3. Every mxCell (except id="0") needs a valid parent attribute referencing an existing cell+4. Edge source/target attributes must reference existing cell IDs+5. Escape special characters in values: < for <, > for >, & for &, " for "+6. Always start with the two root cells: <mxCell id="0"/><mxCell id="1" parent="0"/>++**Example with swimlanes and edges** (note: all mxCells are siblings under <root>):+\`\`\`xml+<root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+ <mxCell id="lane1" value="Frontend" style="swimlane;" vertex="1" parent="1">+ <mxGeometry x="40" y="40" width="200" height="200" as="geometry"/>+ </mxCell>+ <mxCell id="step1" value="Step 1" style="rounded=1;" vertex="1" parent="lane1">+ <mxGeometry x="20" y="60" width="160" height="40" as="geometry"/>+ </mxCell>+ <mxCell id="lane2" value="Backend" style="swimlane;" vertex="1" parent="1">+ <mxGeometry x="280" y="40" width="200" height="200" as="geometry"/>+ </mxCell>+ <mxCell id="step2" value="Step 2" style="rounded=1;" vertex="1" parent="lane2">+ <mxGeometry x="20" y="60" width="160" height="40" as="geometry"/>+ </mxCell>+ <mxCell id="edge1" style="edgeStyle=orthogonalEdgeStyle;endArrow=classic;" edge="1" parent="1" source="step1" target="step2">+ <mxGeometry relative="1" as="geometry"/>+ </mxCell>+</root>+\`\`\`++### edit_diagram Details++**CRITICAL RULES:**+- Copy-paste the EXACT search pattern from the "Current diagram XML" in system context+- Do NOT reorder attributes or reformat - the attribute order in draw.io XML varies and you MUST match it exactly+- Only include the lines that are changing, plus 1-2 surrounding lines for context if needed+- Break large changes into multiple smaller edits+- Each search must contain complete lines (never truncate mid-line)+- First match only - be specific enough to target the right element++**Input Format:**+\`\`\`json+{+ "edits": [+ {+ "search": "EXACT lines copied from current XML (preserve attribute order!)",+ "replace": "Replacement lines"+ }+ ]+}+\`\`\`++## edit_diagram Best Practices++### Core Principle: Unique & Precise Patterns+Your search pattern MUST uniquely identify exactly ONE location in the XML. Before writing a search pattern:+1. Review the "Current diagram XML" in the system context+2. Identify the exact element(s) to modify by their unique id attribute+3. Include enough context to ensure uniqueness++### Pattern Construction Rules++**Rule 1: Always include the element's id attribute**+\`\`\`json+{"search": "<mxCell id=\\"node5\\"", "replace": "<mxCell id=\\"node5\\" value=\\"New Label\\""}+\`\`\`++**Rule 2: Include complete XML elements when possible**+\`\`\`json+{+ "search": "<mxCell id=\\"3\\" value=\\"Old\\" style=\\"rounded=1;\\" vertex=\\"1\\" parent=\\"1\\">\\n <mxGeometry x=\\"100\\" y=\\"100\\" width=\\"120\\" height=\\"60\\" as=\\"geometry\\"/>\\n</mxCell>",+ "replace": "<mxCell id=\\"3\\" value=\\"New\\" style=\\"rounded=1;\\" vertex=\\"1\\" parent=\\"1\\">\\n <mxGeometry x=\\"100\\" y=\\"100\\" width=\\"120\\" height=\\"60\\" as=\\"geometry\\"/>\\n</mxCell>"+}+\`\`\`++**Rule 3: Preserve exact whitespace and formatting**+Copy the search pattern EXACTLY from the current XML, including leading spaces, line breaks (\\n), and attribute order.++### Good vs Bad Patterns++**BAD:** \`{"search": "value=\\"Label\\""}\` - Too vague, matches multiple elements+**BAD:** \`{"search": "<mxCell value=\\"X\\" id=\\"5\\""}\` - Reordered attributes won't match+**GOOD:** \`{"search": "<mxCell id=\\"5\\" parent=\\"1\\" style=\\"...\\" value=\\"Old\\" vertex=\\"1\\">"}\` - Uses unique id with full context++### 鈿狅笍 JSON Escaping (CRITICAL)+Every double quote inside JSON string values MUST be escaped with backslash:+- **CORRECT:** \`"x=\\"100\\" y=\\"200\\""\` - both quotes escaped+- **WRONG:** \`"x=\\"100\\" y="200\\""\` - missing backslash causes JSON parse error!++### Error Recovery+If edit_diagram fails with "pattern not found":+1. **First retry**: Check attribute order - copy EXACTLY from current XML+2. **Second retry**: Expand context - include more surrounding lines+3. **Third retry**: Try matching on just \`<mxCell id="X"\` prefix + full replacement+4. **After 3 failures**: Fall back to display_diagram to regenerate entire diagram+++++### Edge Routing Rules:+When creating edges/connectors, you MUST follow these rules to avoid overlapping lines:++**Rule 1: NEVER let multiple edges share the same path**+- If two edges connect the same pair of nodes, they MUST exit/enter at DIFFERENT positions+- Use exitY=0.3 for first edge, exitY=0.7 for second edge (NOT both 0.5)++**Rule 2: For bidirectional connections (A鈫擝), use OPPOSITE sides**+- A鈫払: exit from RIGHT side of A (exitX=1), enter LEFT side of B (entryX=0)+- B鈫扐: exit from LEFT side of B (exitX=0), enter RIGHT side of A (entryX=1)++**Rule 3: Always specify exitX, exitY, entryX, entryY explicitly**+- Every edge MUST have these 4 attributes set in the style+- Example: style="edgeStyle=orthogonalEdgeStyle;exitX=1;exitY=0.3;entryX=0;entryY=0.3;endArrow=classic;"++**Rule 4: Route edges AROUND intermediate shapes (obstacle avoidance) - CRITICAL!**+- Before creating an edge, identify ALL shapes positioned between source and target+- If any shape is in the direct path, you MUST use waypoints to route around it+- For DIAGONAL connections: route along the PERIMETER (outside edge) of the diagram, NOT through the middle+- Add 20-30px clearance from shape boundaries when calculating waypoint positions+- Route ABOVE (lower y), BELOW (higher y), or to the SIDE of obstacles+- NEVER draw a line that visually crosses over another shape's bounding box++**Rule 5: Plan layout strategically BEFORE generating XML**+- Organize shapes into visual layers/zones (columns or rows) based on diagram flow+- Space shapes 150-200px apart to create clear routing channels for edges+- Mentally trace each edge: "What shapes are between source and target?"+- Prefer layouts where edges naturally flow in one direction (left-to-right or top-to-bottom)++**Rule 6: Use multiple waypoints for complex routing**+- One waypoint is often not enough - use 2-3 waypoints to create proper L-shaped or U-shaped paths+- Each direction change needs a waypoint (corner point)+- Waypoints should form clear horizontal/vertical segments (orthogonal routing)+- Calculate positions by: (1) identify obstacle boundaries, (2) add 20-30px margin++**Rule 7: Choose NATURAL connection points based on flow direction**+- NEVER use corner connections (e.g., entryX=1,entryY=1) - they look unnatural+- For TOP-TO-BOTTOM flow: exit from bottom (exitY=1), enter from top (entryY=0)+- For LEFT-TO-RIGHT flow: exit from right (exitX=1), enter from left (entryX=0)+- For DIAGONAL connections: use the side closest to the target, not corners+- Example: Node below-right of source 鈫?exit from bottom (exitY=1) OR right (exitX=1), not corner++**Before generating XML, mentally verify:**+1. "Do any edges cross over shapes that aren't their source/target?" 鈫?If yes, add waypoints+2. "Do any two edges share the same path?" 鈫?If yes, adjust exit/entry points+3. "Are any connection points at corners (both X and Y are 0 or 1)?" 鈫?If yes, use edge centers instead+4. "Could I rearrange shapes to reduce edge crossings?" 鈫?If yes, revise layout++## Edge Examples++### Two edges between same nodes (CORRECT - no overlap):+\`\`\`xml+<mxCell id="e1" value="A to B" style="edgeStyle=orthogonalEdgeStyle;exitX=1;exitY=0.3;entryX=0;entryY=0.3;endArrow=classic;" edge="1" parent="1" source="a" target="b">+ <mxGeometry relative="1" as="geometry"/>+</mxCell>+<mxCell id="e2" value="B to A" style="edgeStyle=orthogonalEdgeStyle;exitX=0;exitY=0.7;entryX=1;entryY=0.7;endArrow=classic;" edge="1" parent="1" source="b" target="a">+ <mxGeometry relative="1" as="geometry"/>+</mxCell>+\`\`\`++### Edge with single waypoint (simple detour):+\`\`\`xml+<mxCell id="edge1" style="edgeStyle=orthogonalEdgeStyle;exitX=0.5;exitY=1;entryX=0.5;entryY=0;endArrow=classic;" edge="1" parent="1" source="a" target="b">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="300" y="150"/>+ </Array>+ </mxGeometry>+</mxCell>+\`\`\`++### Edge with waypoints (routing AROUND obstacles) - CRITICAL PATTERN:+**Scenario:** Hotfix(right,bottom) 鈫?Main(center,top), but Develop(center,middle) is in between.+**WRONG:** Direct diagonal line crosses over Develop+**CORRECT:** Route around the OUTSIDE (go right first, then up)+\`\`\`xml+<mxCell id="hotfix_to_main" style="edgeStyle=orthogonalEdgeStyle;exitX=0.5;exitY=0;entryX=1;entryY=0.5;endArrow=classic;" edge="1" parent="1" source="hotfix" target="main">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="750" y="80"/>+ <mxPoint x="750" y="150"/>+ </Array>+ </mxGeometry>+</mxCell>+\`\`\`+This routes the edge to the RIGHT of all shapes (x=750), then enters Main from the right side.++**Key principle:** When connecting distant nodes diagonally, route along the PERIMETER of the diagram, not through the middle where other shapes exist.`++// Extended system prompt = DEFAULT + EXTENDED_ADDITIONS+export const EXTENDED_SYSTEM_PROMPT = DEFAULT_SYSTEM_PROMPT + EXTENDED_ADDITIONS++/**+ * Get the system prompt+ * Now always returns the extended prompt for all models+ * @param modelId - The AI model ID (optional, defaults to "AI")+ * @returns The system prompt string+ */+export function getSystemPrompt(modelId?: string): string {+ const modelName = modelId || "AI"+ return EXTENDED_SYSTEM_PROMPT.replace("{{MODEL_NAME}}", modelName)+}+diff --git a/src/workspaces/flow/next/lib/token-counter.ts b/src/workspaces/flow/next/lib/token-counter.tsnew file mode 100644index 0000000..1b180e4--- /dev/null+++ b/src/workspaces/flow/next/lib/token-counter.ts@@ -0,0 +1,40 @@+/**+ * Token counting utilities using js-tiktoken+ *+ * Uses cl100k_base encoding (GPT-4) which is close to Claude's tokenization.+ * This is a pure JavaScript implementation, no WASM required.+ */++import { encodingForModel } from "js-tiktoken"+import { DEFAULT_SYSTEM_PROMPT, EXTENDED_SYSTEM_PROMPT } from "./system-prompts"++const encoder = encodingForModel("gpt-4o")++/**+ * Count the number of tokens in a text string+ * @param text - The text to count tokens for+ * @returns The number of tokens+ */+export function countTextTokens(text: string): number {+ return encoder.encode(text).length+}++/**+ * Get token counts for the system prompts+ * Useful for debugging and optimizing prompt sizes+ * @returns Object with token counts for default and extended prompts+ */+export function getSystemPromptTokenCounts(): {+ default: number+ extended: number+ additions: number+} {+ const defaultTokens = countTextTokens(DEFAULT_SYSTEM_PROMPT)+ const extendedTokens = countTextTokens(EXTENDED_SYSTEM_PROMPT)+ return {+ default: defaultTokens,+ extended: extendedTokens,+ additions: extendedTokens - defaultTokens,+ }+}+diff --git a/src/workspaces/flow/next/lib/translations.ts b/src/workspaces/flow/next/lib/translations.tsnew file mode 100644index 0000000..07f4d90--- /dev/null+++ b/src/workspaces/flow/next/lib/translations.ts@@ -0,0 +1,266 @@+export type Language = "en" | "zh";++const en = {+ // ChatPanel+ "app.title": "Next AI Drawio",+ "welcome.title": "Create diagrams with AI",+ "welcome.desc": "Describe what you want to create or upload an image to replicate",+ "app.about": "About",+ "chat.panel.show": "Show chat panel (Ctrl+B)",+ "chat.panel.hide": "Hide chat panel (Ctrl+B)",+ "chat.panel.title": "Flowchart Assistant",+ "chat.settings": "Settings",+ "chat.vertical.title": "AI Chat",++ // ChatInput+ "input.placeholder": "Describe your diagram or upload a file...",+ "input.clear": "Clear conversation",+ "input.upload": "Upload file (image, PDF, text)",+ "input.upload_image": "Upload image",+ "input.upload_file": "Upload file",+ "input.upload_file_types": "Upload file (.pdf, .docx, .txt)",+ "input.send": "Send message",+ "input.stop": "Stop generation",+ "input.history": "History",+ "input.history.toggle": "Toggle history",++ // ChatMessageDisplay+ "message.sending": "Sending message...",+ "message.parsing_files": "Parsing files...",+ "message.thinking": "AI is thinking and generating response...",+ "message.copy": "Copy message",+ "message.copied": "Copied!",+ "message.copy.failed": "Failed to copy",+ "message.regenerate": "Regenerate response",+ "message.edit": "Edit message",+ "message.good": "Good response",+ "message.bad": "Bad response",+ "message.edit.cancel": "Cancel",+ "message.edit.save": "Save & Submit",++ // SettingsDialog+ "settings.title": "Settings",+ "settings.language": "Language",+ "settings.theme": "Theme",+ "settings.provider": "AI Provider",+ "settings.model": "Model ID",+ "settings.image_model": "Image Model",+ "settings.api_key": "API Key",+ "settings.base_url": "Base URL (optional)",+ "settings.access_code": "Access Code (optional)",+ "settings.close": "Close",+ "settings.save": "Save",+ "settings.general": "General",+ "settings.theme.desc": "Dark/Light mode for interface and DrawIO canvas.",+ "settings.close_protection": "Prevent accidental close",+ "settings.close_protection.desc": "Show confirmation when leaving the page.",+ "settings.ai_config": "AI Configuration",+ "settings.ai_provider.desc": "Use your own API key to bypass usage limits. Your key is stored locally in your browser and is never stored on the server.",+ "settings.provider.placeholder": "Select provider",+ "settings.provider.default": "Default (Server)",+ "settings.api_key.placeholder": "sk-...",+ "settings.api_key.desc": "Leave empty to use default key",+ "settings.base_url.placeholder": "https://api.openai.com/v1",+ "settings.drawio_style": "DrawIO Style",+ "settings.drawio_style.desc": "Canvas style: ",+ "settings.drawio_style.minimal": "Minimal",+ "settings.drawio_style.sketch": "Sketch",+ "settings.drawio_style.switch": "Switch to ",+ "settings.clear": "Clear Settings",++ // QuotaLimitToast+ "quota.limit.reached": "Daily limit reached",+ "quota.limit.desc": "You have reached your daily limit of {limit} requests.",+ "quota.limit.tip": "Tip: You can use your own API key (click the Settings icon) or self-host the project to bypass these limits.",+ "quota.limit.reset": "Your limit resets tomorrow. Thanks for understanding!",+ "quota.sponsor": "Sponsor",+ "quota.learn_more": "Learn more ->",++ // ResetWarningModal+ "reset.title": "Clear Everything?",+ "reset.desc": "This will clear the current conversation and reset the diagram. This action cannot be undone.",+ "reset.confirm": "Clear Everything",+ "reset.cancel": "Cancel",++ // SaveDialog+ "save.title": "Save Diagram",+ "save.desc": "Choose a format to save your diagram.",+ "save.format": "Format",+ "save.filename": "Filename",+ "save.filename.placeholder": "diagram",+ "save.download": "Download",++ // ExamplePanel+ "example.aws.title": "AWS Architecture",+ "example.aws.desc": "Create a cloud architecture diagram with AWS icons",+ "example.flowchart.title": "Replicate Flowchart",+ "example.flowchart.desc": "Upload and replicate an existing flowchart",+ "example.creative.title": "Creative Drawing",+ "example.creative.desc": "Draw something fun and creative",+ "example.cached": "Examples are cached for instant response",+ "example.new": "NEW",+ "examples.title": "Quick Examples",+ "examples.paper.title": "Paper to Diagram",+ "examples.paper.desc": "Upload .pdf, .txt, .md, .json, .csv, .py, .js, .ts and more",+ "examples.animated.title": "Animated Diagram",+ "examples.animated.desc": "Draw a transformer architecture with animated connectors",+ "tooltip.history": "Diagram history",+ "tooltip.save": "Save diagram",++ // HistoryDialog+ "history.title": "Diagram History",+ "history.empty": "No history available yet. Send messages to create diagram history.",+ "history.version": "Version",+ "history.restore": "Restore to Version",+ "history.confirm": "Confirm",+ "history.cancel": "Cancel",+ "history.close": "Close",++ // GlobalConstraintsDialog+ "global_constraints.title": "Global Constraints",+ "global_constraints.description": "Enter instructions that will be applied to every AI response.",+ "global_constraints.placeholder": "e.g., Always use blue for decision nodes...",+ "tooltip.global_constraints": "Global Constraints",++ // Common+ "common.error": "Error",+ "common.loading": "Loading...",+ "common.save": "Save",+ "common.saved": "Saved successfully",+ "common.regenerate_error": "Failed to regenerate: missing history state",+ "common.busy": "System is busy, please wait...",+} as const;++export const translations = {+ en,+ zh: {+ // ChatPanel+ "app.title": "流程图助手",+ "welcome.title": "用 AI 创建流程图",+ "welcome.desc": "描述你想创建的内容,或上传图片进行复刻",+ "app.about": "关于",+ "chat.panel.show": "展开交互区 (Ctrl+B)",+ "chat.panel.hide": "收起交互区 (Ctrl+B)",+ "chat.panel.title": "流程图交互区",+ "chat.settings": "设置",+ "chat.vertical.title": "AI 对话",++ // ChatInput+ "input.placeholder": "描述你的流程图需求,或上传文件...",+ "input.clear": "清空对话",+ "input.upload": "上传文件(图片、PDF、文本)",+ "input.upload_image": "上传图片",+ "input.upload_file": "上传文件",+ "input.upload_file_types": "上传文件(.pdf、.docx、.txt)",+ "input.send": "发送消息",+ "input.stop": "停止生成",+ "input.history": "历史记录",+ "input.history.toggle": "切换历史记录",++ // ChatMessageDisplay+ "message.sending": "正在发送消息...",+ "message.parsing_files": "正在解析文件...",+ "message.thinking": "AI 正在思考并生成结果...",+ "message.copy": "复制消息",+ "message.copied": "已复制",+ "message.copy.failed": "复制失败",+ "message.regenerate": "重新生成",+ "message.edit": "编辑消息",+ "message.good": "回答有帮助",+ "message.bad": "回答不理想",+ "message.edit.cancel": "取消",+ "message.edit.save": "保存并提交",++ // SettingsDialog+ "settings.title": "设置",+ "settings.language": "语言",+ "settings.theme": "主题",+ "settings.provider": "AI 服务商",+ "settings.model": "模型 ID",+ "settings.image_model": "绘图模型",+ "settings.api_key": "API Key",+ "settings.base_url": "Base URL(可选)",+ "settings.access_code": "访问码(可选)",+ "settings.close": "关闭",+ "settings.save": "保存",+ "settings.general": "通用设置",+ "settings.theme.desc": "界面和 DrawIO 画布的深色/浅色模式。",+ "settings.close_protection": "防误关闭",+ "settings.close_protection.desc": "离开页面时弹出确认提示。",+ "settings.ai_config": "AI 配置",+ "settings.ai_provider.desc": "使用你自己的 API Key 可绕过默认额度限制。密钥仅保存在浏览器本地,不会存到服务端。",+ "settings.provider.placeholder": "选择服务商",+ "settings.provider.default": "默认(服务端)",+ "settings.api_key.placeholder": "sk-...",+ "settings.api_key.desc": "留空则使用默认密钥",+ "settings.base_url.placeholder": "https://api.openai.com/v1",+ "settings.drawio_style": "DrawIO 风格",+ "settings.drawio_style.desc": "画布风格:",+ "settings.drawio_style.minimal": "简洁",+ "settings.drawio_style.sketch": "手绘",+ "settings.drawio_style.switch": "切换为 ",+ "settings.clear": "清空设置",++ // QuotaLimitToast+ "quota.limit.reached": "已达到当日额度",+ "quota.limit.desc": "你今天已达到 {limit} 次请求上限。",+ "quota.limit.tip": "提示:你可以使用自己的 API Key(点击设置图标)或自托管项目来绕过限制。",+ "quota.limit.reset": "额度将在明天重置,感谢理解!",+ "quota.sponsor": "赞助",+ "quota.learn_more": "了解更多 ->",++ // ResetWarningModal+ "reset.title": "确认清空?",+ "reset.desc": "这会清空当前对话并重置流程图,且无法撤销。",+ "reset.confirm": "确认清空",+ "reset.cancel": "取消",++ // SaveDialog+ "save.title": "保存流程图",+ "save.desc": "选择保存格式。",+ "save.format": "格式",+ "save.filename": "文件名",+ "save.filename.placeholder": "diagram",+ "save.download": "下载",++ // ExamplePanel+ "example.aws.title": "AWS 架构图",+ "example.aws.desc": "用 AWS 图标生成云架构图",+ "example.flowchart.title": "复刻流程图",+ "example.flowchart.desc": "上传并复刻已有流程图",+ "example.creative.title": "创意绘图",+ "example.creative.desc": "生成有趣的创意图形",+ "example.cached": "示例已缓存,可快速响应",+ "example.new": "新",+ "examples.title": "快速示例",+ "examples.paper.title": "论文转流程图",+ "examples.paper.desc": "支持上传 .pdf、.txt、.md、.json、.csv、.py、.js、.ts 等文件",+ "examples.animated.title": "动画流程图",+ "examples.animated.desc": "绘制带动画连线的 Transformer 架构图",+ "tooltip.history": "流程图历史",+ "tooltip.save": "保存流程图",++ // HistoryDialog+ "history.title": "流程图历史记录",+ "history.empty": "暂无历史记录,发送消息后会生成历史版本。",+ "history.version": "版本",+ "history.restore": "恢复到版本",+ "history.confirm": "确认",+ "history.cancel": "取消",+ "history.close": "关闭",++ // GlobalConstraintsDialog+ "global_constraints.title": "全局约束",+ "global_constraints.description": "填写会应用到每次 AI 回复的约束指令。",+ "global_constraints.placeholder": "例如:决策节点统一使用蓝色...",+ "tooltip.global_constraints": "全局约束",++ // Common+ "common.error": "错误",+ "common.loading": "加载中...",+ "common.save": "保存",+ "common.saved": "保存成功",+ "common.regenerate_error": "重新生成失败:缺少历史状态",+ "common.busy": "系统忙碌中,请稍后...",+ },+};diff --git a/src/workspaces/flow/next/lib/use-file-processor.tsx b/src/workspaces/flow/next/lib/use-file-processor.tsxnew file mode 100644index 0000000..2c9f322--- /dev/null+++ b/src/workspaces/flow/next/lib/use-file-processor.tsx@@ -0,0 +1,111 @@+"use client"++import { useState } from "react"+import { toast } from "sonner"+import {+ extractPdfText,+ extractTextFileContent,+ isPdfFile,+ isTextFile,+ MAX_EXTRACTED_CHARS,+} from "@/workspaces/flow/next/lib/pdf-utils"++export interface FileData {+ text: string+ charCount: number+ isExtracting: boolean+}++/**+ * Hook for processing file uploads, especially PDFs and text files.+ * Handles text extraction, character limit validation, and cleanup.+ */+export function useFileProcessor() {+ const [files, setFiles] = useState<File[]>([])+ const [pdfData, setPdfData] = useState<Map<File, FileData>>(new Map())++ const handleFileChange = async (newFiles: File[]) => {+ setFiles(newFiles)++ // Extract text immediately for new PDF/text files+ for (const file of newFiles) {+ const needsExtraction =+ (isPdfFile(file) || isTextFile(file)) && !pdfData.has(file)+ if (needsExtraction) {+ // Mark as extracting+ setPdfData((prev) => {+ const next = new Map(prev)+ next.set(file, {+ text: "",+ charCount: 0,+ isExtracting: true,+ })+ return next+ })++ // Extract text asynchronously+ try {+ let text: string+ if (isPdfFile(file)) {+ text = await extractPdfText(file)+ } else {+ text = await extractTextFileContent(file)+ }++ // Check character limit+ if (text.length > MAX_EXTRACTED_CHARS) {+ const limitK = MAX_EXTRACTED_CHARS / 1000+ toast.error(+ `${file.name}: Content exceeds ${limitK}k character limit (${(text.length / 1000).toFixed(1)}k chars)`,+ )+ setPdfData((prev) => {+ const next = new Map(prev)+ next.delete(file)+ return next+ })+ // Remove the file from the list+ setFiles((prev) => prev.filter((f) => f !== file))+ continue+ }++ setPdfData((prev) => {+ const next = new Map(prev)+ next.set(file, {+ text,+ charCount: text.length,+ isExtracting: false,+ })+ return next+ })+ } catch (error) {+ console.error("Failed to extract text:", error)+ toast.error(`Failed to read file: ${file.name}`)+ setPdfData((prev) => {+ const next = new Map(prev)+ next.delete(file)+ return next+ })+ }+ }+ }++ // Clean up pdfData for removed files+ setPdfData((prev) => {+ const next = new Map(prev)+ for (const key of prev.keys()) {+ if (!newFiles.includes(key)) {+ next.delete(key)+ }+ }+ return next+ })+ }++ return {+ files,+ pdfData,+ handleFileChange,+ setFiles, // Export for external control (e.g., clearing files)+ }+}+diff --git a/src/workspaces/flow/next/lib/use-quota-manager.tsx b/src/workspaces/flow/next/lib/use-quota-manager.tsxnew file mode 100644index 0000000..dfc398d--- /dev/null+++ b/src/workspaces/flow/next/lib/use-quota-manager.tsx@@ -0,0 +1,256 @@+"use client"++import { useCallback, useMemo } from "react"+import { toast } from "sonner"+import { QuotaLimitToast } from "@/workspaces/flow/next/components/quota-limit-toast"+import { STORAGE_KEYS } from "@/workspaces/flow/next/lib/storage"++export interface QuotaConfig {+ dailyRequestLimit: number+ dailyTokenLimit: number+ tpmLimit: number+}++export interface QuotaCheckResult {+ allowed: boolean+ remaining: number+ used: number+}++/**+ * Hook for managing request/token quotas and rate limiting.+ * Handles three types of limits:+ * - Daily request limit+ * - Daily token limit+ * - Tokens per minute (TPM) rate limit+ *+ * Users with their own API key bypass all limits.+ */+export function useQuotaManager(config: QuotaConfig): {+ hasOwnApiKey: () => boolean+ checkDailyLimit: () => QuotaCheckResult+ checkTokenLimit: () => QuotaCheckResult+ checkTPMLimit: () => QuotaCheckResult+ incrementRequestCount: () => void+ incrementTokenCount: (tokens: number) => void+ incrementTPMCount: (tokens: number) => void+ showQuotaLimitToast: () => void+ showTokenLimitToast: (used: number) => void+ showTPMLimitToast: () => void+} {+ const { dailyRequestLimit, dailyTokenLimit, tpmLimit } = config++ // Check if user has their own API key configured (bypass limits)+ const hasOwnApiKey = useCallback((): boolean => {+ const topConfigRaw = localStorage.getItem("unified_ai_workspace_config")+ if (topConfigRaw) {+ try {+ const topConfig = JSON.parse(topConfigRaw) || {}+ if (String(topConfig.apiKey || "").trim()) {+ return true+ }+ } catch {+ }+ }++ const provider = localStorage.getItem(STORAGE_KEYS.aiProvider)+ const apiKey = localStorage.getItem(STORAGE_KEYS.aiApiKey)+ return !!(provider && apiKey)+ }, [])++ // Generic helper: Parse count from localStorage with NaN guard+ const parseStorageCount = (key: string): number => {+ const count = parseInt(localStorage.getItem(key) || "0", 10)+ return Number.isNaN(count) ? 0 : count+ }++ // Generic helper: Create quota checker factory+ const createQuotaChecker = useCallback(+ (+ getTimeKey: () => string,+ timeStorageKey: string,+ countStorageKey: string,+ limit: number,+ ) => {+ return (): QuotaCheckResult => {+ if (hasOwnApiKey())+ return { allowed: true, remaining: -1, used: 0 }+ if (limit <= 0) return { allowed: true, remaining: -1, used: 0 }++ const currentTime = getTimeKey()+ const storedTime = localStorage.getItem(timeStorageKey)+ let count = parseStorageCount(countStorageKey)++ if (storedTime !== currentTime) {+ count = 0+ localStorage.setItem(timeStorageKey, currentTime)+ localStorage.setItem(countStorageKey, "0")+ }++ return {+ allowed: count < limit,+ remaining: limit - count,+ used: count,+ }+ }+ },+ [hasOwnApiKey],+ )++ // Generic helper: Create quota incrementer factory+ const createQuotaIncrementer = useCallback(+ (+ getTimeKey: () => string,+ timeStorageKey: string,+ countStorageKey: string,+ validateInput: boolean = false,+ ) => {+ return (tokens: number = 1): void => {+ if (validateInput && (!Number.isFinite(tokens) || tokens <= 0))+ return++ const currentTime = getTimeKey()+ const storedTime = localStorage.getItem(timeStorageKey)+ let count = parseStorageCount(countStorageKey)++ if (storedTime !== currentTime) {+ count = 0+ localStorage.setItem(timeStorageKey, currentTime)+ }++ localStorage.setItem(countStorageKey, String(count + tokens))+ }+ },+ [],+ )++ // Check daily request limit+ const checkDailyLimit = useMemo(+ () =>+ createQuotaChecker(+ () => new Date().toDateString(),+ STORAGE_KEYS.requestDate,+ STORAGE_KEYS.requestCount,+ dailyRequestLimit,+ ),+ [createQuotaChecker, dailyRequestLimit],+ )++ // Increment request count+ const incrementRequestCount = useMemo(+ () =>+ createQuotaIncrementer(+ () => new Date().toDateString(),+ STORAGE_KEYS.requestDate,+ STORAGE_KEYS.requestCount,+ false,+ ),+ [createQuotaIncrementer],+ )++ // Show quota limit toast (request-based)+ const showQuotaLimitToast = useCallback(() => {+ toast.custom(+ (_t) => (+ <QuotaLimitToast+ used={dailyRequestLimit}+ limit={dailyRequestLimit}+ />+ ),+ { duration: 15000 },+ )+ }, [dailyRequestLimit])++ // Check daily token limit+ const checkTokenLimit = useMemo(+ () =>+ createQuotaChecker(+ () => new Date().toDateString(),+ STORAGE_KEYS.tokenDate,+ STORAGE_KEYS.tokenCount,+ dailyTokenLimit,+ ),+ [createQuotaChecker, dailyTokenLimit],+ )++ // Increment token count+ const incrementTokenCount = useMemo(+ () =>+ createQuotaIncrementer(+ () => new Date().toDateString(),+ STORAGE_KEYS.tokenDate,+ STORAGE_KEYS.tokenCount,+ true, // Validate input tokens+ ),+ [createQuotaIncrementer],+ )++ // Show token limit toast+ const showTokenLimitToast = useCallback(+ (used: number) => {+ toast.custom(+ (_t) => (+ <QuotaLimitToast+ used={used}+ limit={dailyTokenLimit}+ />+ ),+ { duration: 15000 },+ )+ },+ [dailyTokenLimit],+ )++ // Check TPM (tokens per minute) limit+ const checkTPMLimit = useMemo(+ () =>+ createQuotaChecker(+ () => Math.floor(Date.now() / 60000).toString(),+ STORAGE_KEYS.tpmMinute,+ STORAGE_KEYS.tpmCount,+ tpmLimit,+ ),+ [createQuotaChecker, tpmLimit],+ )++ // Increment TPM count+ const incrementTPMCount = useMemo(+ () =>+ createQuotaIncrementer(+ () => Math.floor(Date.now() / 60000).toString(),+ STORAGE_KEYS.tpmMinute,+ STORAGE_KEYS.tpmCount,+ true, // Validate input tokens+ ),+ [createQuotaIncrementer],+ )++ // Show TPM limit toast+ const showTPMLimitToast = useCallback(() => {+ const limitDisplay =+ tpmLimit >= 1000 ? `${tpmLimit / 1000}k` : String(tpmLimit)+ toast.error(+ `Rate limit reached (${limitDisplay} tokens/min). Please wait 60 seconds before sending another request.`,+ { duration: 8000 },+ )+ }, [tpmLimit])++ return {+ // Check functions+ hasOwnApiKey,+ checkDailyLimit,+ checkTokenLimit,+ checkTPMLimit,++ // Increment functions+ incrementRequestCount,+ incrementTokenCount,+ incrementTPMCount,++ // Toast functions+ showQuotaLimitToast,+ showTokenLimitToast,+ showTPMLimitToast,+ }+}+diff --git a/src/workspaces/flow/next/lib/utils.ts b/src/workspaces/flow/next/lib/utils.tsnew file mode 100644index 0000000..f06da31--- /dev/null+++ b/src/workspaces/flow/next/lib/utils.ts@@ -0,0 +1,563 @@+import { type ClassValue, clsx } from "clsx"+import * as pako from "pako"+import { twMerge } from "tailwind-merge"++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs))+}++/**+ * Format XML string with proper indentation and line breaks+ * @param xml - The XML string to format+ * @param indent - The indentation string (default: ' ')+ * @returns Formatted XML string+ */+export function formatXML(xml: string, indent: string = " "): string {+ let formatted = ""+ let pad = 0++ // Remove existing whitespace between tags+ xml = xml.replace(/>\s*</g, "><").trim()++ // Split on tags+ const tags = xml.split(/(?=<)|(?<=>)/g).filter(Boolean)++ tags.forEach((node) => {+ if (node.match(/^<\/\w/)) {+ // Closing tag - decrease indent+ pad = Math.max(0, pad - 1)+ formatted += indent.repeat(pad) + node + "\n"+ } else if (node.match(/^<\w[^>]*[^/]>.*$/)) {+ // Opening tag+ formatted += indent.repeat(pad) + node+ // Only add newline if next item is a tag+ const nextIndex = tags.indexOf(node) + 1+ if (nextIndex < tags.length && tags[nextIndex].startsWith("<")) {+ formatted += "\n"+ if (!node.match(/^<\w[^>]*\/>$/)) {+ pad+++ }+ }+ } else if (node.match(/^<\w[^>]*\/>$/)) {+ // Self-closing tag+ formatted += indent.repeat(pad) + node + "\n"+ } else if (node.startsWith("<")) {+ // Other tags (like <?xml)+ formatted += indent.repeat(pad) + node + "\n"+ } else {+ // Text content+ formatted += node+ }+ })++ return formatted.trim()+}++/**+ * Efficiently converts a potentially incomplete XML string to a legal XML string by closing any open tags properly.+ * Additionally, if an <mxCell> tag does not have an mxGeometry child (e.g. <mxCell id="3">),+ * it removes that tag from the output.+ * Also removes orphaned <mxPoint> elements that aren't inside <Array> or don't have proper 'as' attribute.+ * @param xmlString The potentially incomplete XML string+ * @returns A legal XML string with properly closed tags and removed incomplete mxCell elements.+ */+export function convertToLegalXml(xmlString: string): string {+ // This regex will match either self-closing <mxCell .../> or a block element+ // <mxCell ...> ... </mxCell>. Unfinished ones are left out because they don't match.+ const regex = /<mxCell\b[^>]*(?:\/>|>([\s\S]*?)<\/mxCell>)/g+ let match: RegExpExecArray | null+ let result = "<root>\n"++ while ((match = regex.exec(xmlString)) !== null) {+ // match[0] contains the entire matched mxCell block+ let cellContent = match[0]++ // Remove orphaned <mxPoint> elements that are directly inside <mxGeometry>+ // without an 'as' attribute (like as="sourcePoint", as="targetPoint")+ // and not inside <Array as="points">+ // These cause "Could not add object mxPoint" errors in draw.io+ // First check if there's an <Array as="points"> - if so, keep all mxPoints inside it+ const hasArrayPoints = /<Array\s+as="points">/.test(cellContent)+ if (!hasArrayPoints) {+ // Remove mxPoint elements without 'as' attribute+ cellContent = cellContent.replace(+ /<mxPoint\b[^>]*\/>/g,+ (pointMatch) => {+ // Keep if it has an 'as' attribute+ if (/\sas=/.test(pointMatch)) {+ return pointMatch+ }+ // Remove orphaned mxPoint+ return ""+ },+ )+ }++ // Indent each line of the matched block for readability.+ const formatted = cellContent+ .split("\n")+ .map((line) => " " + line.trim())+ .filter((line) => line.trim()) // Remove empty lines from removed mxPoints+ .join("\n")+ result += formatted + "\n"+ }+ result += "</root>"++ return result+}++/**+ * Wrap XML content with the full mxfile structure required by draw.io.+ * Handles cases where XML is just <root>, <mxGraphModel>, or already has <mxfile>.+ * @param xml - The XML string (may be partial or complete)+ * @returns Full mxfile-wrapped XML string+ */+export function wrapWithMxFile(xml: string): string {+ if (!xml) {+ return `<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel></diagram></mxfile>`+ }++ // Already has full structure+ if (xml.includes("<mxfile")) {+ return xml+ }++ // Has mxGraphModel but not mxfile+ if (xml.includes("<mxGraphModel")) {+ return `<mxfile><diagram name="Page-1" id="page-1">${xml}</diagram></mxfile>`+ }++ // Just <root> content - extract inner content and wrap fully+ const rootContent = xml.replace(/<\/?root>/g, "").trim()+ return `<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root>${rootContent}</root></mxGraphModel></diagram></mxfile>`+}++/**+ * Replace nodes in a Draw.io XML diagram+ * @param currentXML - The original Draw.io XML string+ * @param nodes - The XML string containing new nodes to replace in the diagram+ * @returns The updated XML string with replaced nodes+ */+export function replaceNodes(currentXML: string, nodes: string): string {+ // Check for valid inputs+ if (!currentXML || !nodes) {+ throw new Error("Both currentXML and nodes must be provided")+ }++ try {+ // Parse the XML strings to create DOM objects+ const parser = new DOMParser()+ const currentDoc = parser.parseFromString(currentXML, "text/xml")++ // Handle nodes input - if it doesn't contain <root>, wrap it+ let nodesString = nodes+ if (!nodes.includes("<root>")) {+ nodesString = `<root>${nodes}</root>`+ }++ const nodesDoc = parser.parseFromString(nodesString, "text/xml")++ // Find the root element in the current document+ let currentRoot = currentDoc.querySelector("mxGraphModel > root")+ if (!currentRoot) {+ // If no root element is found, create the proper structure+ const mxGraphModel =+ currentDoc.querySelector("mxGraphModel") ||+ currentDoc.createElement("mxGraphModel")++ if (!currentDoc.contains(mxGraphModel)) {+ currentDoc.appendChild(mxGraphModel)+ }++ currentRoot = currentDoc.createElement("root")+ mxGraphModel.appendChild(currentRoot)+ }++ // Find the root element in the nodes document+ const nodesRoot = nodesDoc.querySelector("root")+ if (!nodesRoot) {+ throw new Error(+ "Invalid nodes: Could not find or create <root> element",+ )+ }++ // Clear all existing child elements from the current root+ while (currentRoot.firstChild) {+ currentRoot.removeChild(currentRoot.firstChild)+ }++ // Ensure the base cells exist+ const hasCell0 = Array.from(nodesRoot.childNodes).some(+ (node) =>+ node.nodeName === "mxCell" &&+ (node as Element).getAttribute("id") === "0",+ )++ const hasCell1 = Array.from(nodesRoot.childNodes).some(+ (node) =>+ node.nodeName === "mxCell" &&+ (node as Element).getAttribute("id") === "1",+ )++ // Copy all child nodes from the nodes root to the current root+ Array.from(nodesRoot.childNodes).forEach((node) => {+ const importedNode = currentDoc.importNode(node, true)+ currentRoot.appendChild(importedNode)+ })++ // Add default cells if they don't exist+ if (!hasCell0) {+ const cell0 = currentDoc.createElement("mxCell")+ cell0.setAttribute("id", "0")+ currentRoot.insertBefore(cell0, currentRoot.firstChild)+ }++ if (!hasCell1) {+ const cell1 = currentDoc.createElement("mxCell")+ cell1.setAttribute("id", "1")+ cell1.setAttribute("parent", "0")++ // Insert after cell0 if possible+ const cell0 = currentRoot.querySelector('mxCell[id="0"]')+ if (cell0?.nextSibling) {+ currentRoot.insertBefore(cell1, cell0.nextSibling)+ } else {+ currentRoot.appendChild(cell1)+ }+ }++ // Convert the modified DOM back to a string+ const serializer = new XMLSerializer()+ return serializer.serializeToString(currentDoc)+ } catch (error) {+ throw new Error(`Error replacing nodes: ${error}`)+ }+}++/**+ * Create a character count dictionary from a string+ * Used for attribute-order agnostic comparison+ */+function charCountDict(str: string): Map<string, number> {+ const dict = new Map<string, number>()+ for (const char of str) {+ dict.set(char, (dict.get(char) || 0) + 1)+ }+ return dict+}++/**+ * Compare two strings by character frequency (order-agnostic)+ */+function sameCharFrequency(a: string, b: string): boolean {+ const trimmedA = a.trim()+ const trimmedB = b.trim()+ if (trimmedA.length !== trimmedB.length) return false++ const dictA = charCountDict(trimmedA)+ const dictB = charCountDict(trimmedB)++ if (dictA.size !== dictB.size) return false++ for (const [char, count] of dictA) {+ if (dictB.get(char) !== count) return false+ }+ return true+}++/**+ * Replace specific parts of XML content using search and replace pairs+ * @param xmlContent - The original XML string+ * @param searchReplacePairs - Array of {search: string, replace: string} objects+ * @returns The updated XML string with replacements applied+ */+export function replaceXMLParts(+ xmlContent: string,+ searchReplacePairs: Array<{ search: string; replace: string }>,+): string {+ let result = formatXML(xmlContent)++ const normalize = (text: string) =>+ String(text || "")+ .replace(/\s+/g, " ")+ .trim()++ for (const pair of searchReplacePairs) {+ const rawSearch = String(pair?.search || "").trim()+ const rawReplace = String(pair?.replace || "")+ if (!rawSearch) {+ throw new Error("Search pattern cannot be empty")+ }++ const formattedSearch = formatXML(rawSearch)+ const formattedReplace = formatXML(rawReplace)++ // 1) Fast exact replacement on normalized XML.+ if (result.includes(formattedSearch)) {+ result = result.replace(formattedSearch, formattedReplace)+ continue+ }++ // 2) Line-window replacement by whitespace-normalized comparison.+ const resultLines = result.split("\n")+ const searchLines = formattedSearch.split("\n").filter((line) => line !== "")+ const replaceLines = formattedReplace.split("\n").filter((line) => line !== "")+ const normalizedSearch = normalize(searchLines.join(" "))++ let found = false+ for (let i = 0; i <= resultLines.length - searchLines.length; i++) {+ const candidate = normalize(+ resultLines.slice(i, i + searchLines.length).join(" "),+ )+ if (candidate !== normalizedSearch) continue++ const nextLines = [+ ...resultLines.slice(0, i),+ ...replaceLines,+ ...resultLines.slice(i + searchLines.length),+ ]+ result = nextLines.join("\n")+ found = true+ break+ }++ if (found) continue++ // 3) Fallback: attribute-order agnostic line comparison.+ let fallbackStart = -1+ for (let i = 0; i <= resultLines.length - searchLines.length; i++) {+ let ok = true+ for (let j = 0; j < searchLines.length; j++) {+ if (!sameCharFrequency(resultLines[i + j], searchLines[j])) {+ ok = false+ break+ }+ }+ if (ok) {+ fallbackStart = i+ break+ }+ }++ if (fallbackStart >= 0) {+ const nextLines = [+ ...resultLines.slice(0, fallbackStart),+ ...replaceLines,+ ...resultLines.slice(fallbackStart + searchLines.length),+ ]+ result = nextLines.join("\n")+ continue+ }++ throw new Error(+ "Search pattern not found in the diagram. The pattern may not exist in the current structure.",+ )+ }++ return formatXML(result)+}++/**+ * Validates draw.io XML structure for common issues+ * @param xml - The XML string to validate+ * @returns null if valid, error message string if invalid+ */+export function validateMxCellStructure(xml: string): string | null {+ const parser = new DOMParser()+ const doc = parser.parseFromString(xml, "text/xml")++ // Check for XML parsing errors (includes unescaped special characters)+ const parseError = doc.querySelector("parsererror")+ if (parseError) {+ return `Invalid XML: The XML contains syntax errors (likely unescaped special characters like <, >, & in attribute values). Please escape special characters: use < for <, > for >, & for &, " for ". Regenerate the diagram with properly escaped values.`+ }++ // Get all mxCell elements once for all validations+ const allCells = doc.querySelectorAll("mxCell")++ // Single pass: collect IDs, check for duplicates, nesting, orphans, and invalid parents+ const cellIds = new Set<string>()+ const duplicateIds: string[] = []+ const nestedCells: string[] = []+ const orphanCells: string[] = []+ const invalidParents: { id: string; parent: string }[] = []+ const edgesToValidate: {+ id: string+ source: string | null+ target: string | null+ }[] = []++ allCells.forEach((cell) => {+ const id = cell.getAttribute("id")+ const parent = cell.getAttribute("parent")+ const isEdge = cell.getAttribute("edge") === "1"++ // Check for duplicate IDs+ if (id) {+ if (cellIds.has(id)) {+ duplicateIds.push(id)+ } else {+ cellIds.add(id)+ }+ }++ // Check for nested mxCell (parent element is also mxCell)+ if (cell.parentElement?.tagName === "mxCell") {+ nestedCells.push(id || "unknown")+ }++ // Check parent attribute (skip root cell id="0")+ if (id !== "0") {+ if (!parent) {+ if (id) orphanCells.push(id)+ } else {+ // Store for later validation (after all IDs collected)+ invalidParents.push({ id: id || "unknown", parent })+ }+ }++ // Collect edges for connection validation+ if (isEdge) {+ edgesToValidate.push({+ id: id || "unknown",+ source: cell.getAttribute("source"),+ target: cell.getAttribute("target"),+ })+ }+ })++ // Return errors in priority order+ if (nestedCells.length > 0) {+ return `Invalid XML: Found nested mxCell elements (IDs: ${nestedCells.slice(0, 3).join(", ")}). All mxCell elements must be direct children of <root>, never nested inside other mxCell elements. Please regenerate the diagram with correct structure.`+ }++ if (duplicateIds.length > 0) {+ return `Invalid XML: Found duplicate cell IDs (${duplicateIds.slice(0, 3).join(", ")}). Each mxCell must have a unique ID. Please regenerate the diagram with unique IDs for all elements.`+ }++ if (orphanCells.length > 0) {+ return `Invalid XML: Found cells without parent attribute (IDs: ${orphanCells.slice(0, 3).join(", ")}). All mxCell elements (except id="0") must have a parent attribute. Please regenerate the diagram with proper parent references.`+ }++ // Validate parent references (now that all IDs are collected)+ const badParents = invalidParents.filter((p) => !cellIds.has(p.parent))+ if (badParents.length > 0) {+ const details = badParents+ .slice(0, 3)+ .map((p) => `${p.id} (parent: ${p.parent})`)+ .join(", ")+ return `Invalid XML: Found cells with invalid parent references (${details}). Parent IDs must reference existing cells. Please regenerate the diagram with valid parent references.`+ }++ // Validate edge connections+ const invalidConnections: string[] = []+ edgesToValidate.forEach((edge) => {+ if (edge.source && !cellIds.has(edge.source)) {+ invalidConnections.push(`${edge.id} (source: ${edge.source})`)+ }+ if (edge.target && !cellIds.has(edge.target)) {+ invalidConnections.push(`${edge.id} (target: ${edge.target})`)+ }+ })++ if (invalidConnections.length > 0) {+ return `Invalid XML: Found edges with invalid source/target references (${invalidConnections.slice(0, 3).join(", ")}). Edge source and target must reference existing cell IDs. Please regenerate the diagram with valid edge connections.`+ }++ // Check for orphaned mxPoint elements (not inside <Array as="points"> and without 'as' attribute)+ // These cause "Could not add object mxPoint" errors in draw.io+ const allMxPoints = doc.querySelectorAll("mxPoint")+ const orphanedMxPoints: string[] = []+ allMxPoints.forEach((point) => {+ const hasAsAttr = point.hasAttribute("as")+ const parentIsArray =+ point.parentElement?.tagName === "Array" &&+ point.parentElement?.getAttribute("as") === "points"++ if (!hasAsAttr && !parentIsArray) {+ // Find the parent mxCell to report which edge has the problem+ let parent = point.parentElement+ while (parent && parent.tagName !== "mxCell") {+ parent = parent.parentElement+ }+ const cellId = parent?.getAttribute("id") || "unknown"+ if (!orphanedMxPoints.includes(cellId)) {+ orphanedMxPoints.push(cellId)+ }+ }+ })++ if (orphanedMxPoints.length > 0) {+ return `Invalid XML: Found orphaned mxPoint elements in cells (${orphanedMxPoints.slice(0, 3).join(", ")}). mxPoint elements must either have an 'as' attribute (e.g., as="sourcePoint") or be inside <Array as="points">. For edge waypoints, use: <Array as="points"><mxPoint x="..." y="..."/></Array>. Please fix the mxPoint structure.`+ }++ return null+}++export function extractDiagramXML(xml_svg_string: string): string {+ try {+ // 1. Parse the SVG string (using built-in DOMParser in a browser-like environment)+ const svgString = atob(xml_svg_string.slice(26))+ const parser = new DOMParser()+ const svgDoc = parser.parseFromString(svgString, "image/svg+xml")+ const svgElement = svgDoc.querySelector("svg")++ if (!svgElement) {+ throw new Error("No SVG element found in the input string.")+ }+ // 2. Extract the 'content' attribute+ const encodedContent = svgElement.getAttribute("content")++ if (!encodedContent) {+ throw new Error("SVG element does not have a 'content' attribute.")+ }++ // 3. Decode HTML entities (using a minimal function)+ function decodeHtmlEntities(str: string) {+ const textarea = document.createElement("textarea") // Use built-in element+ textarea.innerHTML = str+ return textarea.value+ }+ const xmlContent = decodeHtmlEntities(encodedContent)++ // 4. Parse the XML content+ const xmlDoc = parser.parseFromString(xmlContent, "text/xml")+ const diagramElement = xmlDoc.querySelector("diagram")++ if (!diagramElement) {+ throw new Error("No diagram element found")+ }+ // 5. Extract base64 encoded data+ const base64EncodedData = diagramElement.textContent++ if (!base64EncodedData) {+ throw new Error("No encoded data found in the diagram element")+ }++ // 6. Decode base64 data+ const binaryString = atob(base64EncodedData)++ // 7. Convert binary string to Uint8Array+ const len = binaryString.length+ const bytes = new Uint8Array(len)+ for (let i = 0; i < len; i++) {+ bytes[i] = binaryString.charCodeAt(i)+ }++ // 8. Decompress data using pako (equivalent to zlib.decompress with wbits=-15)+ const decompressedData = pako.inflate(bytes, { windowBits: -15 })++ // 9. Convert the decompressed data to a string+ const decoder = new TextDecoder("utf-8")+ const decodedString = decoder.decode(decompressedData)++ // Decode URL-encoded content (equivalent to Python's urllib.parse.unquote)+ const urlDecodedString = decodeURIComponent(decodedString)++ return urlDecodedString+ } catch (error) {+ console.error("Error extracting diagram XML:", error)+ throw error // Re-throw for caller handling+ }+}+diff --git a/src/workspaces/flow/next/page.tsx b/src/workspaces/flow/next/page.tsxnew file mode 100644index 0000000..a2ed329--- /dev/null+++ b/src/workspaces/flow/next/page.tsx@@ -0,0 +1,206 @@+"use client"+import { useEffect, useRef, useState } from "react"+import { DrawIoEmbed } from "react-drawio"+import type { ImperativePanelHandle } from "react-resizable-panels-v3"+import ChatPanel from "@/workspaces/flow/next/components/chat-panel"+import { STORAGE_CLOSE_PROTECTION_KEY } from "@/workspaces/flow/next/components/settings-dialog"+import {+ ResizableHandle,+ ResizablePanel,+ ResizablePanelGroup,+} from "@/workspaces/flow/next/components/ui/resizable"+import { useDiagram } from "@/workspaces/flow/next/contexts/diagram-context"++const drawioBaseUrl =+ (typeof import.meta !== "undefined" &&+ import.meta.env &&+ import.meta.env.VITE_DRAWIO_BASE_URL+ ? String(import.meta.env.VITE_DRAWIO_BASE_URL)+ : "") || "https://embed.diagrams.net"++export default function Home() {+ const { drawioRef, handleDiagramExport, onDrawioLoad, resetDrawioReady } =+ useDiagram()+ const [isMobile, setIsMobile] = useState(false)+ const [isChatVisible, setIsChatVisible] = useState(true)+ const [drawioUi, setDrawioUi] = useState<"min" | "sketch">("min")+ const [darkMode, setDarkMode] = useState(false)+ const [isLoaded, setIsLoaded] = useState(false)+ const [closeProtection, setCloseProtection] = useState(false)++ const chatPanelRef = useRef<ImperativePanelHandle>(null)++ // Load preferences from localStorage after mount+ useEffect(() => {+ const savedUi = localStorage.getItem("drawio-theme")+ if (savedUi === "min" || savedUi === "sketch") {+ setDrawioUi(savedUi)+ }++ const savedDarkMode = localStorage.getItem("next-ai-draw-io-dark-mode")+ if (savedDarkMode !== null) {+ // Use saved preference+ const isDark = savedDarkMode === "true"+ setDarkMode(isDark)+ document.documentElement.classList.toggle("dark", isDark)+ } else {+ // First visit: match browser preference+ const prefersDark = window.matchMedia(+ "(prefers-color-scheme: dark)",+ ).matches+ setDarkMode(prefersDark)+ document.documentElement.classList.toggle("dark", prefersDark)+ }++ const savedCloseProtection = localStorage.getItem(+ STORAGE_CLOSE_PROTECTION_KEY,+ )+ if (savedCloseProtection === "true") {+ setCloseProtection(true)+ }++ setIsLoaded(true)+ }, [])++ const toggleDarkMode = () => {+ const newValue = !darkMode+ setDarkMode(newValue)+ localStorage.setItem("next-ai-draw-io-dark-mode", String(newValue))+ document.documentElement.classList.toggle("dark", newValue)+ // Reset so onDrawioLoad fires again after remount+ resetDrawioReady()+ }++ // Check mobile+ useEffect(() => {+ const checkMobile = () => {+ setIsMobile(window.innerWidth < 768)+ }++ checkMobile()+ window.addEventListener("resize", checkMobile)+ return () => window.removeEventListener("resize", checkMobile)+ }, [])++ const toggleChatPanel = () => {+ const panel = chatPanelRef.current+ if (panel) {+ if (panel.isCollapsed()) {+ panel.expand()+ setIsChatVisible(true)+ } else {+ panel.collapse()+ setIsChatVisible(false)+ }+ }+ }++ // Keyboard shortcut for toggling chat panel+ useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if ((event.ctrlKey || event.metaKey) && event.key === "b") {+ event.preventDefault()+ toggleChatPanel()+ }+ }++ window.addEventListener("keydown", handleKeyDown)+ return () => window.removeEventListener("keydown", handleKeyDown)+ }, [])++ // Show confirmation dialog when user tries to leave the page+ useEffect(() => {+ if (!closeProtection) return++ const handleBeforeUnload = (event: BeforeUnloadEvent) => {+ event.preventDefault()+ return ""+ }++ window.addEventListener("beforeunload", handleBeforeUnload)+ return () =>+ window.removeEventListener("beforeunload", handleBeforeUnload)+ }, [closeProtection])++ return (+ <div className="h-full bg-background relative overflow-hidden">+ <ResizablePanelGroup+ id="main-panel-group-v3"+ key={isMobile ? "mobile" : "desktop"}+ direction={isMobile ? "vertical" : "horizontal"}+ className="h-full"+ >+ {/* Draw.io Canvas */}+ <ResizablePanel+ id="drawio-panel"+ defaultSize={isMobile ? 50 : 67}+ minSize={20}+ >+ <div+ className={`h-full relative ${+ isMobile ? "p-1" : "p-2"+ }`}+ >+ <div className="h-full rounded-xl overflow-hidden shadow-soft-lg border border-border/30">+ {isLoaded ? (+ <DrawIoEmbed+ key={`${drawioUi}-${darkMode}`}+ ref={drawioRef}+ onExport={handleDiagramExport}+ onLoad={onDrawioLoad}+ baseUrl={drawioBaseUrl}+ urlParameters={{+ ui: drawioUi,+ spin: true,+ libraries: false,+ saveAndExit: false,+ noExitBtn: true,+ dark: darkMode,+ }}+ />+ ) : (+ <div className="h-full w-full flex items-center justify-center bg-background">+ <div className="animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full" />+ </div>+ )}+ </div>+ </div>+ </ResizablePanel>++ <ResizableHandle withHandle id="resize-handle" />++ {/* Chat Panel */}+ <ResizablePanel+ id="chat-panel"+ ref={chatPanelRef}+ defaultSize={isMobile ? 50 : 33}+ minSize={isMobile ? 20 : 15}+ maxSize={isMobile ? 80 : 50}+ collapsible={!isMobile}+ collapsedSize={isMobile ? 0 : 3}+ onCollapse={() => setIsChatVisible(false)}+ onExpand={() => setIsChatVisible(true)}+ >+ <div className={`h-full ${isMobile ? "p-1" : "py-2 pr-2"}`}>+ <ChatPanel+ isVisible={isChatVisible}+ onToggleVisibility={toggleChatPanel}+ drawioUi={drawioUi}+ onToggleDrawioUi={() => {+ const newUi =+ drawioUi === "min" ? "sketch" : "min"+ localStorage.setItem("drawio-theme", newUi)+ setDrawioUi(newUi)+ resetDrawioReady()+ }}+ darkMode={darkMode}+ onToggleDarkMode={toggleDarkMode}+ isMobile={isMobile}+ onCloseProtectionChange={setCloseProtection}+ />+ </div>+ </ResizablePanel>+ </ResizablePanelGroup>+ </div>+ )+}diff --git a/src/workspaces/flow/next/shims/next-image.tsx b/src/workspaces/flow/next/shims/next-image.tsxnew file mode 100644index 0000000..0b8f642--- /dev/null+++ b/src/workspaces/flow/next/shims/next-image.tsx@@ -0,0 +1,19 @@+import React from "react";++type ImageProps = React.ImgHTMLAttributes<HTMLImageElement> & {+ src: string;+ alt: string;+ width?: number;+ height?: number;+ fill?: boolean;+ priority?: boolean;+ unoptimized?: boolean;+ quality?: number;+};++export default function Image({ fill, style, ...rest }: ImageProps) {+ if (fill) {+ return <img {...rest} style={{ position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: (rest as any).objectFit || "cover", ...style }} />;+ }+ return <img {...rest} style={style} />;+}diff --git a/src/workspaces/ppt/PptWorkspaceShell.tsx b/src/workspaces/ppt/PptWorkspaceShell.tsxnew file mode 100644index 0000000..6803eb8--- /dev/null+++ b/src/workspaces/ppt/PptWorkspaceShell.tsx@@ -0,0 +1,260 @@+import React, { useEffect, useRef, useState } from "react";+import { cn } from "@/lib/utils";+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";+import {+ ResizableHandle,+ ResizablePanel,+ ResizablePanelGroup,+ type PanelImperativeHandle,+} from "@/workspaces/ppt/ui/resizable";+import {+ PPT_OUTLINE_EDIT_SYSTEM_PROMPT,+ PPT_SLIDES_EDIT_SYSTEM_PROMPT,+} from "@/lib/system-prompts";+import type { ChatMessage } from "@/lib/ai-client";+import { PptWorkspace } from "@/workspaces/ppt/workspace/PptWorkspace";+import { ChatPanel as PptChatPanel } from "@/workspaces/ppt/chat/ChatPanel";+import type { HistoryItem } from "@/workspaces/ppt/chat/history-dialog";++type Attachment = {+ id: string;+ type: "xml" | "python" | "json";+ content: string;+ name: string;+};++type CodeActionResult = { ok: boolean; retry?: boolean; error?: string };++const PPT_WORKSPACE_STORAGE_KEY = "unified-ai-workspace-ppt-state-v1";+const PPT_HISTORY_STORAGE_KEY = "unified-ai-workspace-history-ppt-v1";+const PPT_CHAT_STORAGE_KEY = "chat_history_v2_ppt";++export function PptWorkspaceShell() {+ const uiLang = useUiLanguage();+ const [attachments, setAttachments] = useState<Attachment[]>([]);+ const [pptIncomingEdit, setPptIncomingEdit] = useState<{ id: string; payload: string } | null>(null);+ const [pptDraftSlides, setPptDraftSlides] = useState<+ Array<{ id: string; slideId: string; title: string; json: string; kind: "outline" | "slide_image"; imageUrl?: string }>+ >([]);+ const [pptResetTick, setPptResetTick] = useState(0);+ const [pptReady, setPptReady] = useState(false);+ const [pptStage, setPptStage] = useState<"outline" | "slides">("outline");++ const [chatHistory, setChatHistory] = useState<ChatMessage[]>([]);+ const [versionHistory, setVersionHistory] = useState<HistoryItem[]>(() => {+ if (typeof window === "undefined") return [];+ try {+ const raw = localStorage.getItem(PPT_HISTORY_STORAGE_KEY);+ const parsed = raw ? JSON.parse(raw) : [];+ return Array.isArray(parsed) ? parsed : [];+ } catch {+ return [];+ }+ });++ const [isChatCollapsed, setIsChatCollapsed] = useState(false);+ const chatPanelRef = useRef<PanelImperativeHandle | null>(null);+ const pptChatLocked = !pptReady;++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ localStorage.setItem(PPT_HISTORY_STORAGE_KEY, JSON.stringify(versionHistory));+ } catch {+ }+ }, [versionHistory]);++ useEffect(() => {+ if (pptChatLocked && isChatCollapsed) {+ setIsChatCollapsed(false);+ }+ }, [pptChatLocked, isChatCollapsed]);++ const toggleCollapse = () => {+ if (pptChatLocked) return;+ const panel = chatPanelRef.current;+ if (!panel) return;+ try {+ if (panel.isCollapsed?.() || isChatCollapsed) {+ panel.expand();+ setIsChatCollapsed(false);+ } else {+ panel.collapse();+ setIsChatCollapsed(true);+ }+ } catch {+ setIsChatCollapsed(false);+ }+ };++ const addToHistory = (content: string, type: HistoryItem["type"]) => {+ const item: HistoryItem = {+ id: Date.now().toString(),+ timestamp: Date.now(),+ content,+ type,+ };+ setVersionHistory((prev) => [...prev, item]);+ };++ const handleRestore = (item: HistoryItem) => {+ if (item.type === "json") {+ setPptIncomingEdit({ id: `${Date.now()}`, payload: item.content });+ }+ };++ const handleAddToChat = (code: string, name: string) => {+ const tryAddSlide = (slide: any) => {+ if (!slide || typeof slide !== "object") return;+ const slideId = typeof slide.id === "string" && slide.id.trim() ? slide.id.trim() : "";+ if (!slideId) return;+ const title = typeof slide.title === "string" ? slide.title : "";+ const imageUrl = typeof slide.imageUrl === "string" ? slide.imageUrl : "";+ const kind: "outline" | "slide_image" = imageUrl ? "slide_image" : "outline";+ const json = JSON.stringify(slide, null, 2);+ setPptDraftSlides((prev) => {+ const next = prev.filter((x) => x.slideId !== slideId);+ return [+ ...next,+ {+ id: `${Date.now()}-${Math.random().toString(16).slice(2)}`,+ slideId,+ title,+ json,+ kind,+ imageUrl: imageUrl || undefined,+ },+ ];+ });+ };++ try {+ const parsed = JSON.parse(code);+ if (parsed && typeof parsed === "object" && Array.isArray((parsed as any).slides)) {+ for (const s of (parsed as any).slides) tryAddSlide(s);+ return;+ }+ tryAddSlide(parsed);+ return;+ } catch {+ const m = String(name || "").match(/^(slide-\d+)\.json$/i);+ if (m) {+ setPptDraftSlides((prev) => [+ ...prev,+ { id: `${Date.now()}-${Math.random().toString(16).slice(2)}`, slideId: m[1], title: "", json: String(code || ""), kind: "outline" },+ ]);+ return;+ }+ }++ setAttachments((prev) => [+ ...prev,+ {+ id: Math.random().toString(36).slice(2),+ type: "json",+ content: code,+ name,+ },+ ]);+ };++ const handlePptCodeAction = async (+ code: string,+ type: "flow" | "cad" | "ppt",+ ): Promise<CodeActionResult> => {+ if (type !== "ppt") return { ok: true };+ try {+ JSON.parse(code);+ setPptIncomingEdit({ id: `${Date.now()}`, payload: code });+ addToHistory(code, "json");+ return { ok: true };+ } catch {+ return { ok: false, retry: false, error: "Invalid PPT JSON" };+ }+ };++ const clearWorkspace = () => {+ setPptIncomingEdit(null);+ setPptDraftSlides([]);+ setPptReady(false);+ setPptStage("outline");+ setAttachments([]);+ setVersionHistory([]);+ try {+ localStorage.removeItem(PPT_WORKSPACE_STORAGE_KEY);+ } catch {+ }+ try {+ localStorage.removeItem(PPT_CHAT_STORAGE_KEY);+ } catch {+ }+ setPptResetTick((x) => x + 1);+ };++ return (+ <ResizablePanelGroup orientation="horizontal" className="h-full" style={{ height: "100%" }}>+ <ResizablePanel+ defaultSize={pptChatLocked ? "100%" : "68%"}+ minSize="30%"+ className={cn("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]")}+ >+ <div className="h-full w-full relative bg-muted/20">+ <PptWorkspace+ key={`ppt-${pptResetTick}`}+ onAddToChat={handleAddToChat}+ onPptReadyChange={setPptReady}+ onPptStageChange={setPptStage}+ incomingEdit={pptIncomingEdit}+ onIncomingEditHandled={() => setPptIncomingEdit(null)}+ onResetWorkspace={clearWorkspace}+ />+ </div>+ </ResizablePanel>++ {!pptChatLocked && (+ <>+ <ResizableHandle withHandle className="bg-border/50 hover:bg-primary/50 transition-colors w-1.5" />+ <ResizablePanel+ id="ppt-chat"+ panelRef={chatPanelRef}+ defaultSize="32%"+ minSize="20%"+ maxSize="70%"+ collapsible+ collapsedSize="56px"+ onResize={(panelSize) => setIsChatCollapsed(panelSize.inPixels <= 80)}+ className={cn("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]")}+ >+ <PptChatPanel+ key="ppt"+ systemPrompt={pptStage === "slides" ? PPT_SLIDES_EDIT_SYSTEM_PROMPT : PPT_OUTLINE_EDIT_SYSTEM_PROMPT}+ initialMessages={chatHistory}+ onMessagesChange={setChatHistory}+ attachments={attachments}+ workspaceId="ppt"+ mode="ppt_image"+ hideHistoryButton+ collapsed={isChatCollapsed}+ collapseLocked={pptChatLocked}+ title={t(uiLang, "workspace.ppt.title")}+ inputPlaceholder={t(uiLang, "workspace.ppt.placeholder")}+ onToggleCollapse={toggleCollapse}+ onRemoveAttachment={(id) => setAttachments((prev) => prev.filter((a) => a.id !== id))}+ onClearAttachments={() => setAttachments([])}+ pptDraftSlides={pptDraftSlides}+ onRemovePptDraftSlide={(id) => setPptDraftSlides((prev) => prev.filter((s) => s.id !== id))}+ onClearPptDraftSlides={() => setPptDraftSlides([])}+ onClearWorkspace={clearWorkspace}+ history={versionHistory}+ onRestore={handleRestore}+ onClearVersionHistory={() => setVersionHistory([])}+ onCodeAction={handlePptCodeAction}+ />+ </ResizablePanel>+ </>+ )}+ </ResizablePanelGroup>+ );+}+diff --git a/src/workspaces/ppt/chat/ChatInput.tsx b/src/workspaces/ppt/chat/ChatInput.tsxnew file mode 100644index 0000000..7e31d64--- /dev/null+++ b/src/workspaces/ppt/chat/ChatInput.tsx@@ -0,0 +1,640 @@+import React, { useRef, useEffect, useMemo, useState, useCallback } from 'react';+import { Send, FileText, ImageIcon, History, Square, Trash2 } from 'lucide-react';+import { cn } from '@/lib/utils';+import { ButtonWithTooltip } from '@/workspaces/ppt/chat/components/button-with-tooltip';+import { FilePreviewList } from '@/workspaces/ppt/chat/file-preview-list';+import { useFileProcessor } from '@/lib/use-file-processor';+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";++type RichInputSegment =+ | { type: "text"; text: string }+ | { type: "ppt"; slideId: string; label: string; tag: string };++interface ChatInputProps {+ input: string;+ setInput: (value: string) => void;+ onSubmit: () => void;+ isLoading: boolean;+ onStop?: () => void;+ onClearChat?: () => void;+ onToggleHistory?: () => void;+ historyDisabled?: boolean;+ onFilesChange?: (files: File[]) => void;+ files?: File[]; // Controlled files+ placeholder?: string;+ topChips?: React.ReactNode;+ bottomChips?: React.ReactNode;+ focusKey?: string | number;+ richSegments?: RichInputSegment[];+ onRichSegmentsChange?: (segments: RichInputSegment[]) => void;+ insertPptToken?: { key: number; slideId: string; label: string; tag: string } | null;+ onInsertPptTokenHandled?: () => void;+ clearKey?: string | number;+ uploadMode?: "all" | "imagesOnly" | "filesOnly" | "none";+}++export function ChatInput({+ input,+ setInput,+ onSubmit,+ isLoading,+ onStop,+ onClearChat,+ onToggleHistory,+ historyDisabled = false,+ onFilesChange,+ files: controlledFiles,+ placeholder,+ topChips,+ bottomChips,+ focusKey,+ richSegments,+ onRichSegmentsChange,+ insertPptToken,+ onInsertPptTokenHandled,+ clearKey,+ uploadMode = "all"+}: ChatInputProps) {+ const uiLang = useUiLanguage();+ const textareaRef = useRef<HTMLTextAreaElement>(null);+ const richRef = useRef<HTMLDivElement>(null);+ const richSavedRangeRef = useRef<Range | null>(null);+ const fileInputRef = useRef<HTMLInputElement>(null);+ const imageInputRef = useRef<HTMLInputElement>(null);+ const richAppliedRef = useRef<string>("");+ const [richHasFocus, setRichHasFocus] = useState(false);++ const { files, handleFileChange, setFiles, pdfData } = useFileProcessor();+ const isRich = !!(richSegments && onRichSegmentsChange);++ // Sync controlled files if provided+ useEffect(() => {+ if (controlledFiles) {+ setFiles(controlledFiles);+ }+ }, [controlledFiles, setFiles]);++ // Notify parent when files change+ useEffect(() => {+ onFilesChange?.(files);+ }, [files, onFilesChange]);++ const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {+ if (e.key === 'Enter' && !e.shiftKey) {+ e.preventDefault();+ if (isLoading) onStop?.();+ else onSubmit();+ }+ };++ const autoResizeTextarea = useCallback(() => {+ if (isRich) return;+ const el = textareaRef.current;+ if (!el) return;+ el.style.height = 'auto';+ el.style.height = `${Math.min(el.scrollHeight, 200)}px`;+ }, [isRich]);++ useEffect(() => {+ autoResizeTextarea();+ }, [input, isRich, placeholder, autoResizeTextarea]);++ useEffect(() => {+ if (isRich) return;+ const el = textareaRef.current;+ if (!el) return;++ let raf = 0;+ const schedule = () => {+ if (raf) cancelAnimationFrame(raf);+ raf = requestAnimationFrame(() => {+ raf = 0;+ autoResizeTextarea();+ });+ };++ schedule();++ if (typeof ResizeObserver !== "undefined") {+ const ro = new ResizeObserver(() => schedule());+ ro.observe(el);+ ro.observe(el.parentElement ?? el);+ return () => {+ if (raf) cancelAnimationFrame(raf);+ ro.disconnect();+ };+ }++ window.addEventListener("resize", schedule);+ return () => {+ if (raf) cancelAnimationFrame(raf);+ window.removeEventListener("resize", schedule);+ };+ }, [isRich, autoResizeTextarea]);++ useEffect(() => {+ if (focusKey === undefined) return;+ if (isRich) richRef.current?.focus();+ else textareaRef.current?.focus();+ }, [focusKey]);++ useEffect(() => {+ if (clearKey === undefined) return;+ if (!isRich) return;+ const root = richRef.current;+ if (!root) return;+ richSavedRangeRef.current = null;+ root.innerHTML = "";+ root.appendChild(document.createTextNode(""));+ richAppliedRef.current = "";+ onRichSegmentsChange?.([{ type: "text", text: "" }]);+ }, [clearKey, isRich]);++ const serializeSegments = (segments: RichInputSegment[]) => {+ return segments+ .map((s) => (s.type === "text" ? `t:${s.text}` : `p:${s.slideId}:${s.tag}`))+ .join("|");+ };++ const buildLabelSpan = (segment: Extract<RichInputSegment, { type: "ppt" }>) => {+ const el = document.createElement("span");+ el.setAttribute("data-token", "ppt");+ el.setAttribute("data-slide-id", segment.slideId);+ el.setAttribute("data-label", segment.label);+ el.setAttribute("data-tag", segment.tag);+ el.setAttribute("contenteditable", "false");+ el.className = "inline-flex items-center gap-1.5 rounded-full border border-red-200 bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200 align-middle";+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");+ svg.setAttribute("viewBox", "0 0 24 24");+ svg.setAttribute("fill", "none");+ svg.setAttribute("stroke", "currentColor");+ svg.setAttribute("stroke-width", "2");+ svg.setAttribute("stroke-linecap", "round");+ svg.setAttribute("stroke-linejoin", "round");+ svg.setAttribute("aria-hidden", "true");+ svg.setAttribute("class", "h-3.5 w-3.5 text-red-600 dark:text-red-200");+ const path1 = document.createElementNS("http://www.w3.org/2000/svg", "path");+ // Draw a "P" icon+ path1.setAttribute("d", "M19 7a5 5 0 0 0-5-5H7a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-8h5a5 5 0 0 0 5-5z");+ // Actually a simpler P stroke might be better for 24x24+ // P shape: M8 20V4h6a4 4 0 0 1 0 8H8+ path1.setAttribute("d", "M8 20V4h6a4 4 0 0 1 0 8H8");++ svg.appendChild(path1);+ const text = document.createElement("span");+ text.textContent = segment.label;+ el.appendChild(svg);+ el.appendChild(text);+ return el;+ };++ const setRichContentFromSegments = (segments: RichInputSegment[]) => {+ const root = richRef.current;+ if (!root) return;+ root.innerHTML = "";+ for (const seg of segments) {+ if (seg.type === "text") {+ const parts = String(seg.text || "").split("\n");+ for (let i = 0; i < parts.length; i += 1) {+ if (parts[i]) root.appendChild(document.createTextNode(parts[i]));+ if (i < parts.length - 1) root.appendChild(document.createElement("br"));+ }+ continue;+ }+ root.appendChild(buildLabelSpan(seg));+ root.appendChild(document.createTextNode(" "));+ }+ if (!root.lastChild) root.appendChild(document.createTextNode(""));+ };++ const parseRichSegmentsFromDom = (): RichInputSegment[] => {+ const root = richRef.current;+ if (!root) return [{ type: "text", text: "" }];++ const out: RichInputSegment[] = [];+ const pushText = (t: string) => {+ if (!t) return;+ const last = out[out.length - 1];+ if (last?.type === "text") last.text += t;+ else out.push({ type: "text", text: t });+ };++ for (const node of Array.from(root.childNodes)) {+ if (node.nodeType === Node.TEXT_NODE) {+ pushText(node.textContent || "");+ continue;+ }+ if (node.nodeType !== Node.ELEMENT_NODE) continue;+ const el = node as HTMLElement;+ if (el.tagName === "BR") {+ pushText("\n");+ continue;+ }+ const token = el.getAttribute("data-token");+ if (token === "ppt") {+ const slideId = el.getAttribute("data-slide-id") || "";+ const label = el.getAttribute("data-label") || el.textContent || "";+ const tag = el.getAttribute("data-tag") || "";+ if (slideId && tag) out.push({ type: "ppt", slideId, label, tag });+ continue;+ }+ pushText(el.textContent || "");+ }++ if (out.length === 0) return [{ type: "text", text: "" }];+ return out;+ };++ const syncRichToParent = () => {+ if (!isRich) return;+ const next = parseRichSegmentsFromDom();+ const key = serializeSegments(next);+ if (key === richAppliedRef.current) return;+ richAppliedRef.current = key;+ onRichSegmentsChange?.(next);+ };++ useEffect(() => {+ if (!isRich) return;+ const segments = richSegments || [{ type: "text", text: "" }];+ const key = serializeSegments(segments);+ if (key === richAppliedRef.current) return;+ richAppliedRef.current = key;+ if (richHasFocus) return;+ setRichContentFromSegments(segments);+ }, [isRich, richSegments, richHasFocus]);++ const insertPptTokenAtCursor = (slideId: string, label: string, tag: string) => {+ const root = richRef.current;+ if (!root) return;+ root.focus();+ const sel = window.getSelection();+ let range: Range | null = sel && sel.rangeCount > 0 ? sel.getRangeAt(0) : null;+ if (!range || !root.contains(range.startContainer)) {+ range = richSavedRangeRef.current;+ }+ if (!range || !root.contains(range.startContainer)) {+ range = document.createRange();+ range.selectNodeContents(root);+ range.collapse(false);+ }+ const span = buildLabelSpan({ type: "ppt", slideId, label, tag });+ const space = document.createTextNode(" ");+ range.insertNode(space);+ range.insertNode(span);+ range.setStartAfter(space);+ range.collapse(true);+ if (sel) {+ sel.removeAllRanges();+ sel.addRange(range);+ }+ richSavedRangeRef.current = range;+ syncRichToParent();+ };++ useEffect(() => {+ if (!isRich) return;+ if (!insertPptToken) return;+ insertPptTokenAtCursor(insertPptToken.slideId, insertPptToken.label, insertPptToken.tag);+ onInsertPptTokenHandled?.();+ }, [isRich, insertPptToken?.key]);++ const richPlainText = useMemo(() => {+ const segs = richSegments || [];+ return segs+ .map((s) => (s.type === "text" ? s.text : s.label))+ .join("")+ .replace(/[ \t]+\n/g, "\n");+ }, [richSegments]);++ const showRichPlaceholder = isRich && !richPlainText.trim() && !richHasFocus;++ const filterByUploadMode = (incoming: File[]) => {+ if (uploadMode === "imagesOnly") return incoming.filter((f) => f.type.startsWith("image/"));+ if (uploadMode === "filesOnly") return incoming.filter((f) => !f.type.startsWith("image/"));+ return incoming;+ };++ const handlePaste = (e: React.ClipboardEvent) => {+ if (uploadMode === "none") return;+ const items = e.clipboardData.items;+ const pastedFiles: File[] = [];++ for (let i = 0; i < items.length; i++) {+ if (items[i].kind === 'file') {+ const file = items[i].getAsFile();+ if (file) pastedFiles.push(file);+ }+ }++ if (pastedFiles.length > 0) {+ const filtered = filterByUploadMode(pastedFiles);+ if (filtered.length === 0) return;+ e.preventDefault();+ handleFileChange([...files, ...filtered]);+ }+ };++ const handleDrop = (e: React.DragEvent) => {+ e.preventDefault();+ if (uploadMode === "none") return;+ const droppedFiles = Array.from(e.dataTransfer.files);+ const filtered = filterByUploadMode(droppedFiles);+ if (filtered.length > 0) {+ handleFileChange([...files, ...filtered]);+ }+ };++ const handleImageUpload = () => imageInputRef.current?.click();+ const handleFileUpload = () => fileInputRef.current?.click();++ const onFileInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ if (e.target.files?.length) {+ const incoming = Array.from(e.target.files);+ const filtered = filterByUploadMode(incoming);+ if (filtered.length > 0) handleFileChange([...files, ...filtered]);+ e.target.value = ''; // Reset+ }+ };++ const removeFile = (fileToRemove: File) => {+ setFiles(files.filter(f => f !== fileToRemove));+ };++ return (+ <div+ className="relative rounded-2xl border border-border bg-background shadow-sm focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary/50 transition-all duration-200"+ onDragOver={(e) => e.preventDefault()}+ onDrop={handleDrop}+ >+ {(uploadMode === "all" || uploadMode === "imagesOnly") && (+ <input+ type="file"+ multiple+ accept="image/*"+ className="hidden"+ ref={imageInputRef}+ onChange={onFileInputChange}+ />+ )}+ {(uploadMode === "all" || uploadMode === "filesOnly") && (+ <input+ type="file"+ multiple+ accept={+ uploadMode === "filesOnly"+ ? ".pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml"+ : "image/*,.pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml"+ }+ className="hidden"+ ref={fileInputRef}+ onChange={onFileInputChange}+ />+ )}++ {files.length > 0 && (+ <div className="px-3 pt-3">+ <FilePreviewList+ files={files}+ onRemoveFile={removeFile}+ pdfData={pdfData}+ />+ </div>+ )}++ {topChips && (+ <div className="px-3 pt-3">+ {topChips}+ </div>+ )}++ <div className="px-3 pt-2">+ {isRich ? (+ <div className="relative">+ {showRichPlaceholder && (+ <div className="pointer-events-none absolute left-1 top-2 text-[15px] leading-6 text-muted-foreground/60">+ {placeholder || "Type your message..."}+ </div>+ )}+ <div+ ref={richRef}+ contentEditable+ suppressContentEditableWarning+ onKeyDown={(e) => {+ if (e.key === "Enter" && !e.shiftKey) {+ e.preventDefault();+ if (isLoading) onStop?.();+ else onSubmit();+ return;+ }+ if (e.key === "Backspace" || e.key === "Delete") {+ const root = richRef.current;+ if (!root) return;+ const sel = window.getSelection();+ if (!sel || sel.rangeCount === 0) return;+ const r = sel.getRangeAt(0);+ if (!root.contains(r.startContainer) || !r.collapsed) return;+ const container = r.startContainer;+ const offset = r.startOffset;++ const tryRemoveToken = (el: Element | null) => {+ if (!el) return false;+ const token = (el as HTMLElement).getAttribute("data-token");+ if (token !== "ppt") return false;+ el.remove();+ syncRichToParent();+ return true;+ };++ if (container.nodeType === Node.TEXT_NODE) {+ if (e.key === "Backspace" && offset === 0) {+ const prev = (container as Text).previousSibling;+ if (prev && prev.nodeType === Node.ELEMENT_NODE) {+ if (tryRemoveToken(prev as Element)) {+ e.preventDefault();+ return;+ }+ }+ }+ if (e.key === "Delete" && offset === (container as Text).data.length) {+ const next = (container as Text).nextSibling;+ if (next && next.nodeType === Node.ELEMENT_NODE) {+ if (tryRemoveToken(next as Element)) {+ e.preventDefault();+ return;+ }+ }+ }+ } else if (container.nodeType === Node.ELEMENT_NODE) {+ const el = container as Element;+ const child = el.childNodes[offset + (e.key === "Backspace" ? -1 : 0)];+ if (child && child.nodeType === Node.ELEMENT_NODE) {+ if (tryRemoveToken(child as Element)) {+ e.preventDefault();+ return;+ }+ }+ }+ }+ }}+ onPaste={handlePaste as any}+ onFocus={() => setRichHasFocus(true)}+ onBlur={() => {+ setRichHasFocus(false);+ const sel = window.getSelection();+ if (sel && sel.rangeCount > 0) {+ const r = sel.getRangeAt(0);+ if (richRef.current?.contains(r.startContainer)) {+ richSavedRangeRef.current = r;+ }+ }+ syncRichToParent();+ }}+ onInput={() => syncRichToParent()}+ onKeyUp={() => {+ const sel = window.getSelection();+ if (sel && sel.rangeCount > 0) {+ const r = sel.getRangeAt(0);+ if (richRef.current?.contains(r.startContainer)) {+ richSavedRangeRef.current = r;+ }+ }+ }}+ onMouseUp={() => {+ const sel = window.getSelection();+ if (sel && sel.rangeCount > 0) {+ const r = sel.getRangeAt(0);+ if (richRef.current?.contains(r.startContainer)) {+ richSavedRangeRef.current = r;+ }+ }+ }}+ className={cn(+ "w-full bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px] whitespace-pre-wrap break-words"+ )}+ />+ </div>+ ) : (+ <textarea+ ref={textareaRef}+ value={input}+ onChange={(e) => setInput(e.target.value)}+ onKeyDown={handleKeyDown}+ onPaste={handlePaste}+ placeholder={placeholder || "Type your message..."}+ className={cn(+ "w-full resize-none bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px]"+ )}+ rows={1}+ />+ )}+ </div>++ {bottomChips && (+ <div className="px-3 pb-2">+ {bottomChips}+ </div>+ )}++ <div className="flex items-center justify-between px-3 py-2 border-t border-border/50">+ <div className="flex items-center gap-1">+ {onClearChat && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.clearChatTitle")}+ variant="ghost"+ size="sm"+ onClick={onClearChat}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10"+ >+ <Trash2 className="h-4 w-4" />+ </ButtonWithTooltip>+ )}+ </div>++ <div className="flex items-center gap-1">+ {onToggleHistory && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.historyTitle")}+ variant="ghost"+ size="sm"+ onClick={onToggleHistory}+ disabled={historyDisabled}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <History className="h-4 w-4" />+ </ButtonWithTooltip>+ )}++ {(uploadMode === "all" || uploadMode === "imagesOnly") && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.uploadImage")}+ variant="ghost"+ size="sm"+ onClick={handleImageUpload}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <ImageIcon className="h-4 w-4" />+ </ButtonWithTooltip>+ )}++ {(uploadMode === "all" || uploadMode === "filesOnly") && (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.uploadFile")}+ variant="ghost"+ size="sm"+ onClick={handleFileUpload}+ className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"+ >+ <FileText className="h-4 w-4" />+ </ButtonWithTooltip>+ )}++ <div className="w-px h-5 bg-border mx-1" />++ {(() => {+ const hasText = isRich ? richPlainText.trim().length > 0 : input.trim().length > 0;+ const hasFiles = files.length > 0;+ if (isLoading) {+ return (+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.stop")}+ variant="default"+ size="sm"+ onClick={(e) => {+ e.preventDefault();+ onStop?.();+ }}+ disabled={!onStop}+ className="h-8 w-8 p-0 rounded-xl shadow-sm"+ aria-label={t(uiLang, "chat.stop")}+ >+ <Square className="h-3.5 w-3.5 fill-current" />+ </ButtonWithTooltip>+ );+ }+ return (+ <ButtonWithTooltip+ type="button"+ onClick={onSubmit}+ tooltipContent={t(uiLang, "chat.send")}+ disabled={!hasText && !hasFiles}+ variant="default"+ size="sm"+ className={cn(+ "h-8 w-8 p-0 rounded-xl shadow-sm",+ (!hasText && !hasFiles) ? "opacity-60" : ""+ )}+ aria-label={t(uiLang, "chat.send")}+ >+ <Send className="h-4 w-4" />+ </ButtonWithTooltip>+ );+ })()}+ </div>+ </div>+ </div>+ );+}++diff --git a/src/workspaces/ppt/chat/ChatMessageDisplay.tsx b/src/workspaces/ppt/chat/ChatMessageDisplay.tsxnew file mode 100644index 0000000..ceb71ce--- /dev/null+++ b/src/workspaces/ppt/chat/ChatMessageDisplay.tsx@@ -0,0 +1,699 @@+import React, { useRef, useEffect, useState, useCallback } from 'react';+import {+ Check,+ ChevronDown,+ ChevronUp,+ Copy,+ Cpu,+ FileCode,+ FileText,+ Loader2,+ Minus,+ Pencil,+ Plus,+ RotateCcw,+ ThumbsDown,+ ThumbsUp,+ X,+ Presentation, // Import P icon if available, otherwise we use SVG+} from "lucide-react";++// Custom P icon component+const PIcon = ({ className }: { className?: string }) => (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className={className}+ >+ <path d="M8 20V4h6a4 4 0 0 1 0 8H8" />+ </svg>+);+import ReactMarkdown from "react-markdown";+import remarkGfm from 'remark-gfm';+import { Reasoning, ReasoningContent, ReasoningTrigger } from "@/workspaces/ppt/chat/components/reasoning";+import { ScrollArea } from "@/workspaces/ppt/ui/scroll-area";+import { CodeBlock } from "@/workspaces/ppt/ui/code-block";+import { useUiLanguage } from "@/lib/use-ui-language";+import { cn } from "@/lib/utils";++// Types+export interface MessagePart {+ type: 'text' | 'reasoning' | 'tool-call' | 'tool-result' | 'file';+ text?: string;+ toolName?: string;+ toolCallId?: string;+ state?: string;+ input?: any;+ output?: string;+ url?: string; // for images+}++export interface UIMessage {+ id: string;+ role: 'user' | 'assistant' | 'system';+ content: string; // Fallback+ parts?: MessagePart[];+}++interface ChatMessageDisplayProps {+ messages: UIMessage[];+ setInput: (input: string) => void;+ onRegenerate?: (messageIndex: number) => void;+ onEditMessage?: (messageIndex: number, newText: string) => void;+ status?: "streaming" | "submitted" | "idle" | "error" | "ready";+ onDisplayChart?: (xml: string) => void; // Callback for diagram display+}++// Helper to split text content into regular text and file sections+interface TextSection {+ type: "text" | "file";+ content: string;+ filename?: string;+ charCount?: number;+ fileType?: "pdf" | "text";+}++function splitTextIntoFileSections(text: string): TextSection[] {+ const sections: TextSection[] = [];+ const filePattern = /\[(PDF|File):\s*([^\]]+)\]\n([\s\S]*?)(?=\n\n\[(PDF|File):|$)/g;+ let lastIndex = 0;+ let match;++ while ((match = filePattern.exec(text)) !== null) {+ const beforeText = text.slice(lastIndex, match.index).trim();+ if (beforeText) {+ sections.push({ type: "text", content: beforeText });+ }++ const fileType = match[1].toLowerCase() === "pdf" ? "pdf" : "text";+ const filename = match[2].trim();+ const fileContent = match[3].trim();+ sections.push({+ type: "file",+ content: fileContent,+ filename,+ charCount: fileContent.length,+ fileType,+ });++ lastIndex = match.index + match[0].length;+ }++ const remainingText = text.slice(lastIndex).trim();+ if (remainingText) {+ sections.push({ type: "text", content: remainingText });+ }++ if (sections.length === 0) {+ sections.push({ type: "text", content: text });+ }++ return sections;+}++type PptSlideTag = { n: number; title?: string };++function extractPptSlideTags(text: string): { tags: PptSlideTag[]; rest: string } {+ const lines = String(text || "").split(/\r?\n/);+ const tags: PptSlideTag[] = [];+ const restLines: string[] = [];+ for (const line of lines) {+ const m = line.match(/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/);+ if (m) {+ const n = Number(m[1]);+ const title = String(m[2] || "").trim();+ if (!Number.isNaN(n)) tags.push({ n, title: title || undefined });+ continue;+ }+ restLines.push(line);+ }+ const rest = restLines.join("\n").replace(/^\s+|\s+$/g, "");+ return { tags, rest };+}++type ImageTag = { name?: string; url: string };++function extractImageTags(text: string): { images: ImageTag[]; rest: string } {+ const lines = String(text || "").split(/\r?\n/);+ const images: ImageTag[] = [];+ const restLines: string[] = [];+ for (const line of lines) {+ const m = line.match(/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/);+ if (m) {+ const name = String(m[1] || "").trim();+ const url = String(m[2] || "").trim();+ if (url.startsWith("data:image") || url.startsWith("blob:") || url.startsWith("http://") || url.startsWith("https://")) {+ images.push({ name: name || undefined, url });+ continue;+ }+ }+ restLines.push(line);+ }+ const rest = restLines.join("\n").replace(/^\s+|\s+$/g, "");+ return { images, rest };+}++type InlinePptPart =+ | { type: "text"; text: string }+ | { type: "ppt"; n: number; title?: string };++function splitInlinePptTags(text: string): InlinePptPart[] {+ const raw = String(text || "");+ const out: InlinePptPart[] = [];+ const re = /\[\[PPT_SLIDE\|(\d+)\|([\s\S]*?)\]\]/g;+ let lastIndex = 0;+ let m: RegExpExecArray | null;+ while ((m = re.exec(raw))) {+ const before = raw.slice(lastIndex, m.index);+ if (before) out.push({ type: "text", text: before });+ const n = Number(m[1]);+ const title = String(m[2] || "").trim();+ if (!Number.isNaN(n)) out.push({ type: "ppt", n, title: title || undefined });+ else out.push({ type: "text", text: m[0] });+ lastIndex = m.index + m[0].length;+ }+ const rest = raw.slice(lastIndex);+ if (rest) out.push({ type: "text", text: rest });+ if (out.length === 0) out.push({ type: "text", text: raw });+ return out;+}++const getMessageTextContent = (message: UIMessage): string => {+ if (message.parts && message.parts.length > 0) {+ return message.parts+ .filter((part) => part.type === "text")+ .map((part) => part.text || "")+ .join("\n");+ }+ return message.content || "";+};++const getUserOriginalText = (message: UIMessage): string => {+ const fullText = getMessageTextContent(message);+ const withoutTags = fullText+ .split(/\r?\n/)+ .filter((line) => !/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/.test(line))+ .filter((line) => !/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/.test(line))+ .join("\n")+ .trim();+ const filePattern = /\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/;+ return withoutTags.replace(filePattern, "").trim();+};++export function ChatMessageDisplay({+ messages,+ setInput,+ onRegenerate,+ onEditMessage,+ status = "idle",+ onDisplayChart+}: ChatMessageDisplayProps) {+ const uiLang = useUiLanguage();+ const tr = (zh: string, en: string) => (uiLang === "zh" ? zh : en);+ const scrollRootRef = useRef<HTMLDivElement>(null);+ const messagesEndRef = useRef<HTMLDivElement>(null);+ const [copiedMessageId, setCopiedMessageId] = useState<string | null>(null);+ const [editingMessageId, setEditingMessageId] = useState<string | null>(null);+ const editTextareaRef = useRef<HTMLTextAreaElement>(null);+ const [editText, setEditText] = useState<string>("");+ const [expandedPdfSections, setExpandedPdfSections] = useState<Record<string, boolean>>({});+ const [isAtBottom, setIsAtBottom] = useState(true);+ const scrollRafRef = useRef<number | null>(null);++ const copyMessageToClipboard = async (messageId: string, text: string) => {+ try {+ await navigator.clipboard.writeText(text);+ setCopiedMessageId(messageId);+ setTimeout(() => setCopiedMessageId(null), 2000);+ } catch (_err) {+ const textarea = document.createElement("textarea");+ textarea.value = text;+ textarea.style.position = "fixed";+ textarea.style.left = "-9999px";+ textarea.style.opacity = "0";+ document.body.appendChild(textarea);++ try {+ textarea.select();+ const ok = document.execCommand("copy");+ if (!ok) throw new Error("Copy command failed");+ setCopiedMessageId(messageId);+ setTimeout(() => setCopiedMessageId(null), 2000);+ } catch (fallbackErr) {+ console.error("Failed to copy message:", fallbackErr);+ } finally {+ document.body.removeChild(textarea);+ }+ }+ };++ const getViewport = useCallback(() => {+ const root = scrollRootRef.current;+ if (!root) return null;+ return root.querySelector('[data-radix-scroll-area-viewport]') as HTMLElement | null;+ }, []);++ const scrollToBottom = useCallback((behavior: ScrollBehavior = "auto") => {+ const viewport = getViewport();+ if (!viewport) return;+ viewport.scrollTo({ top: viewport.scrollHeight, behavior });+ }, [getViewport]);++ useEffect(() => {+ const viewport = getViewport();+ if (!viewport) return;++ const onScroll = () => {+ const threshold = 48;+ const distanceToBottom = viewport.scrollHeight - viewport.scrollTop - viewport.clientHeight;+ setIsAtBottom(distanceToBottom <= threshold);+ };++ onScroll();+ viewport.addEventListener("scroll", onScroll, { passive: true });+ return () => viewport.removeEventListener("scroll", onScroll as any);+ }, [getViewport]);++ useEffect(() => {+ return () => {+ if (scrollRafRef.current === null) return;+ if (typeof cancelAnimationFrame === "function") cancelAnimationFrame(scrollRafRef.current);+ else if (typeof window !== "undefined") window.clearTimeout(scrollRafRef.current);+ scrollRafRef.current = null;+ };+ }, []);++ useEffect(() => {+ if (!isAtBottom) return;+ if (scrollRafRef.current !== null) return;+ const behavior: ScrollBehavior = status === "streaming" ? "auto" : "smooth";+ const schedule = (cb: () => void) => {+ if (typeof requestAnimationFrame === "function") return requestAnimationFrame(cb);+ if (typeof window !== "undefined") return window.setTimeout(cb, 16);+ return 0;+ };+ scrollRafRef.current = schedule(() => {+ scrollRafRef.current = null;+ scrollToBottom(behavior);+ });+ }, [messages, status, isAtBottom, scrollToBottom]);++ useEffect(() => {+ if (editingMessageId && editTextareaRef.current) {+ editTextareaRef.current.focus();+ }+ }, [editingMessageId]);++ // Handle Diagram Code Blocks+ // We scan messages for XML blocks and trigger onDisplayChart if found+ // This is a simplified version of tool calls for now+ useEffect(() => {+ const lastMessage = messages[messages.length - 1];+ if (lastMessage && lastMessage.role === 'assistant' && onDisplayChart) {+ const content = getMessageTextContent(lastMessage);+ const match = content.match(/```xml\n([\s\S]*?)\n```/);+ if (match && match[1]) {+ // De-duplicate: only call if it's new or stable+ // Since we don't track state here, we rely on parent or idempotency+ // onDisplayChart(match[1]);+ // Actually, let's not auto-call here to avoid loops.+ // The parent (ChatPanel) handles parsing stream.+ }+ }+ }, [messages, onDisplayChart]);++ return (+ <div ref={scrollRootRef} className="h-full w-full relative">+ <ScrollArea className="h-full w-full scrollbar-thin">+ <div className="py-5 px-5 space-y-5">+ {messages.map((message, messageIndex) => {+ const userMessageText = message.role === "user" ? getMessageTextContent(message) : "";+ const isLastAssistantMessage =+ message.role === "assistant" &&+ (messageIndex === messages.length - 1 || messages.slice(messageIndex + 1).every((m) => m.role !== "assistant"));+ const isLastUserMessage =+ message.role === "user" &&+ (messageIndex === messages.length - 1 || messages.slice(messageIndex + 1).every((m) => m.role !== "user"));+ const isEditing = editingMessageId === message.id;++ return (+ <div+ key={message.id}+ className={`flex w-full ${message.role === "user" ? "justify-end" : "justify-start"}`}+ >+ <div className={cn("max-w-[95%] min-w-0 flex flex-col", message.role === "user" ? "items-end" : "items-start")}>+ {/* Role Icon / Header */}+ <div className="flex items-center gap-2 mb-1.5 px-1">+ {message.role === 'assistant' ? (+ <>+ <div className="w-5 h-5 rounded-full bg-blue-600 flex items-center justify-center">+ <Cpu className="w-3 h-3 text-white" />+ </div>+ <span className="text-xs font-medium text-muted-foreground">{tr("AI 助手", "AI Assistant")}</span>+ </>+ ) : (+ <>+ <span className="text-xs font-medium text-muted-foreground">{tr("你", "You")}</span>+ </>+ )}+ </div>++ {/* Content Bubble */}+ <div className={cn(+ "relative px-4 py-3 text-sm leading-relaxed break-words overflow-hidden border border-border/50 bg-background/70 backdrop-blur-md shadow-sm transition-shadow hover:shadow-md",+ message.role === "user"+ ? "text-foreground rounded-2xl rounded-tr-sm w-full"+ : "text-foreground rounded-2xl rounded-tl-sm w-full"+ )}>++ {/* Reasoning Parts */}+ {message.parts?.map((part, partIndex) => {+ if (part.type === 'reasoning') {+ const isLastPart = partIndex === (message.parts?.length ?? 0) - 1;+ const isStreamingReasoning = status === "streaming" && isLastPart && isLastAssistantMessage;+ return (+ <Reasoning+ key={`reasoning-${partIndex}`}+ className="w-full"+ isStreaming={isStreamingReasoning}+ defaultOpen={isStreamingReasoning}+ >+ <ReasoningTrigger />+ <ReasoningContent>{part.text || ''}</ReasoningContent>+ </Reasoning>+ );+ }+ return null;+ })}++ {/* Text Content */}+ {(() => {+ const raw = getMessageTextContent(message);+ const { images, rest: withoutImages } = extractImageTags(raw);+ const { tags: pptTags, rest: text } = extractPptSlideTags(withoutImages);+ if (!text && images.length === 0) return null;++ // Edit Mode+ if (isEditing && message.role === "user") {+ return (+ <div className="flex flex-col gap-2 min-w-[300px]">+ <textarea+ ref={editTextareaRef}+ value={editText}+ onChange={(e) => setEditText(e.target.value)}+ className="w-full px-3 py-2 text-sm rounded-md border border-input bg-background text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary"+ rows={4}+ />+ <div className="flex justify-end gap-2">+ <button+ onClick={() => setEditingMessageId(null)}+ className="px-3 py-1 text-xs rounded bg-muted hover:bg-muted/80 text-foreground"+ >+ {tr("取消", "Cancel")}+ </button>+ <button+ onClick={() => {+ if (editText.trim() && onEditMessage) {+ onEditMessage(messageIndex, editText.trim());+ setEditingMessageId(null);+ }+ }}+ className="px-3 py-1 text-xs rounded bg-primary hover:bg-primary/90 text-primary-foreground"+ >+ {tr("重新发送", "Resend")}+ </button>+ </div>+ </div>+ );+ }++ // Regular Display+ const sections = splitTextIntoFileSections(text);+ return (+ <div className="space-y-3">+ {images.length > 0 && (+ <div className="space-y-2">+ {images.map((img, i) => (+ <div+ key={`${message.id}-img-${i}`}+ className={cn(+ "overflow-hidden rounded-lg border border-border/60 bg-black/5 dark:bg-white/5",+ "max-w-[420px] mx-auto"+ )}+ >+ <img+ src={img.url}+ alt={img.name || "image"}+ className="w-full max-h-[240px] object-contain bg-black/5"+ />+ </div>+ ))}+ </div>+ )}+ {pptTags.length > 0 && (+ <div className="flex flex-wrap gap-1.5">+ {pptTags.map((t, i) => (+ <span+ key={`${message.id}-ppttag-${i}-${t.n}`}+ className={cn(+ "inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] leading-4",+ message.role === "user"+ ? "border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200"+ : "border-border bg-muted/40 text-foreground"+ )}+ >+ <PIcon className="h-3.5 w-3.5 text-red-600 dark:text-red-200 mr-1" />+ {t.title ? tr(`第 ${t.n} 页:${t.title}`, `Slide ${t.n}: ${t.title}`) : tr(`第 ${t.n} 页`, `Slide ${t.n}`)}+ </span>+ ))}+ </div>+ )}+ {sections.map((section, idx) => {+ if (section.type === "text" && !String(section.content || "").trim()) return null;+ if (section.type === 'file') {+ const key = `${message.id}-file-${idx}`;+ const isExpanded = expandedPdfSections[key] || false;+ return (+ <div key={key} className="rounded-lg border border-border/50 bg-background/50 overflow-hidden">+ <button+ onClick={() => setExpandedPdfSections(prev => ({...prev, [key]: !isExpanded}))}+ className="w-full flex items-center justify-between px-3 py-2 hover:bg-muted/50 transition-colors"+ >+ <div className="flex items-center gap-2">+ {section.fileType === 'pdf' ? (+ <FileText className="h-4 w-4 text-red-500" />+ ) : (+ <FileCode className="h-4 w-4 text-blue-500" />+ )}+ <span className="text-xs font-medium truncate max-w-[150px] text-foreground">{section.filename}</span>+ <span className="text-[10px] text-muted-foreground">({section.charCount} chars)</span>+ </div>+ {isExpanded ? <ChevronUp className="h-4 w-4 text-foreground" /> : <ChevronDown className="h-4 w-4 text-foreground" />}+ </button>+ {isExpanded && (+ <div className="px-3 py-2 border-t border-border/50 max-h-48 overflow-y-auto bg-muted/20">+ <pre className="text-[10px] whitespace-pre-wrap text-muted-foreground font-mono">{section.content}</pre>+ </div>+ )}+ </div>+ );+ }++ // Render Markdown+ // We need to handle code blocks specially to use our CodeBlock component+ let codeBlockOrdinal = 0;+ if (message.role === "user") {+ const parts = splitInlinePptTags(section.content);+ return (+ <div+ key={idx}+ className="text-[15px] leading-6 whitespace-pre-wrap break-words text-foreground"+ >+ {parts.map((p, j) => {+ if (p.type === "text") return <span key={`${idx}-t-${j}`}>{p.text}</span>;+ const label = p.title ? tr(`第 ${p.n} 页:${p.title}`, `Slide ${p.n}: ${p.title}`) : tr(`第 ${p.n} 页`, `Slide ${p.n}`);+ return (+ <span+ key={`${idx}-ppt-${j}`}+ className="mx-1 inline-flex items-center gap-1.5 rounded-full border border-red-200 bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200 align-middle"+ title={tr(`幻灯片 · ${label}`, `Slide · ${label}`)}+ >+ <PIcon className="h-3.5 w-3.5 text-red-600 dark:text-red-200" />+ {label}+ </span>+ );+ })}+ </div>+ );+ }+ return (+ <div key={idx} className={cn(+ "prose prose-sm max-w-none break-words",+ "dark:prose-invert"+ )}>+ <ReactMarkdown+ remarkPlugins={[remarkGfm]}+ urlTransform={(url) => {+ const u = String(url || "");+ if (!u) return "";+ if (u.startsWith("http://") || u.startsWith("https://")) return u;+ if (u.startsWith("data:image")) return u;+ if (u.startsWith("blob:")) return u;+ if (u.startsWith("/files/")) return u;+ if (u.startsWith("#")) return u;+ return "";+ }}+ components={{+ table({ children }: any) {+ return <table className="w-full table-fixed">{children}</table>;+ },+ th({ children, ...props }: any) {+ return (+ <th+ {...props}+ className={cn("whitespace-normal break-words", props?.className)}+ >+ {children}+ </th>+ );+ },+ td({ children, ...props }: any) {+ return (+ <td+ {...props}+ className={cn("whitespace-normal break-words", props?.className)}+ >+ {children}+ </td>+ );+ },+ pre({ children }: any) {+ return <>{children}</>;+ },+ code({node, inline, className, children, ...props}: any) {+ const match = /language-(\w+)/.exec(className || '')+ // Check if this is the last message and currently streaming+ // We only show spinner for the last code block of the last message if streaming+ // But technically ReactMarkdown renders progressively.+ // We can check if status is streaming and this is the assistant role.+ const isStreaming = status === "streaming" && isLastAssistantMessage;+ const language = match?.[1] || "text";++ if (!inline) {+ const ordinal = codeBlockOrdinal++;+ return (+ <CodeBlock+ key={`codeblock-${message.id}-${idx}-${language}-${ordinal}`}+ blockId={`${message.id}:${idx}:${language}:${ordinal}`}+ code={String(children).replace(/\n$/, '')}+ language={language as any}+ isStreaming={isStreaming}+ />+ );+ }++ return (+ <code className={className} {...props}>+ {children}+ </code>+ );+ }+ }}+ >+ {section.content}+ </ReactMarkdown>+ </div>+ );+ })}+ </div>+ );+ })()}++ {/* Loading Indicator */}+ {isLastAssistantMessage && status === "streaming" && (+ <div className="mt-2 flex items-center gap-2 text-xs text-muted-foreground">+ <Loader2 className="h-3 w-3 animate-spin" />+ <span>{tr("思考中...", "Thinking...")}</span>+ </div>+ )}+ </div>++ {/* Actions */}+ <div className="flex items-center gap-1 mt-2 px-1">+ {message.role === "user" && !isEditing && userMessageText && (+ <>+ {onEditMessage && isLastUserMessage && (+ <button+ type="button"+ onClick={() => {+ setEditingMessageId(message.id);+ setEditText(getUserOriginalText(message));+ }}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors"+ title={tr("编辑", "Edit")}+ >+ <Pencil className="h-3.5 w-3.5" />+ </button>+ )}+ <button+ type="button"+ onClick={() => copyMessageToClipboard(message.id, getUserOriginalText(message))}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors"+ title={tr("复制", "Copy")}+ >+ {copiedMessageId === message.id ? <Check className="h-3.5 w-3.5 text-green-500" /> : <Copy className="h-3.5 w-3.5" />}+ </button>+ </>+ )}+ {message.role === "assistant" && (+ <>+ <button+ type="button"+ onClick={() => copyMessageToClipboard(message.id, getMessageTextContent(message))}+ className={`p-1.5 rounded-lg transition-colors ${+ copiedMessageId === message.id+ ? "text-green-600 bg-green-100 dark:bg-green-950/30"+ : "text-muted-foreground/60 hover:text-foreground hover:bg-muted"+ }`}+ title={tr("复制", "Copy")}+ >+ {copiedMessageId === message.id ? <Check className="h-3.5 w-3.5" /> : <Copy className="h-3.5 w-3.5" />}+ </button>+ {onRegenerate && isLastAssistantMessage && (+ <button+ type="button"+ onClick={() => onRegenerate(messageIndex)}+ className="p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors"+ title={tr("重新生成", "Regenerate")}+ >+ <RotateCcw className="h-3.5 w-3.5" />+ </button>+ )}+ </>+ )}+ </div>+ </div>+ </div>+ );+ })}+ <div ref={messagesEndRef} />+ </div>+ </ScrollArea>+ {!isAtBottom && messages.length > 0 && (+ <button+ type="button"+ onClick={() => scrollToBottom("smooth")}+ className="absolute bottom-4 right-4 z-20 inline-flex items-center gap-1 rounded-full border border-border bg-background/90 backdrop-blur px-3 py-1.5 text-xs text-foreground shadow-md hover:bg-background"+ >+ <ChevronDown className="w-3.5 h-3.5" />+ {tr("回到底部", "Back to bottom")}+ </button>+ )}+ </div>+ );+}diff --git a/src/workspaces/ppt/chat/ChatPanel.tsx b/src/workspaces/ppt/chat/ChatPanel.tsxnew file mode 100644index 0000000..033f72c--- /dev/null+++ b/src/workspaces/ppt/chat/ChatPanel.tsx@@ -0,0 +1,1647 @@+import React, { useState, useRef, useEffect } from 'react';+import { PanelRightClose, PanelRightOpen } from 'lucide-react';+import { cn } from '@/lib/utils';+import { streamChatMessage, generateChatMessage, ChatMessage, getAIConfig } from '@/lib/ai-client';+import { DRAWIO_SYSTEM_PROMPT } from '@/lib/system-prompts';+import { ButtonWithTooltip } from '@/workspaces/ppt/chat/components/button-with-tooltip';+import { ChatInput } from '@/workspaces/ppt/chat/ChatInput';+import { ChatMessageDisplay, UIMessage } from '@/workspaces/ppt/chat/ChatMessageDisplay';+import { STORAGE_GLOBAL_CONSTRAINTS_KEY } from '@/workspaces/ppt/chat/global-constraints-dialog';+import { HistoryDialog, HistoryItem } from '@/workspaces/ppt/chat/history-dialog';+import { ResetWarningModal } from '@/workspaces/ppt/chat/reset-warning-modal';+import { useFileProcessor } from '@/lib/use-file-processor';+import { buildCadBomMessages, buildCadImagesMasterMessages, buildCadImagesSheetMessages, buildCadTasksSystemContent } from '@/lib/cad-tasks';+import { CAD_PLAN_AGENT_PROMPT, CAD_SVG_GENERATE_AGENT_PROMPT, CAD_SVG_PATCH_AGENT_PROMPT } from '@/lib/cad-agents';+import flowPatchAgentPrompt from "../../../../agent/flow/patch.md?raw";+import flowReplaceAgentPrompt from "../../../../agent/flow/replace.md?raw";+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";++interface Attachment {+ id: string;+ type: 'xml' | 'python' | 'json' | 'image' | 'text';+ content: string;+ name: string;+}++type CodeActionResult = { ok: boolean; retry?: boolean; error?: string };+type MaybePromise<T> = T | Promise<T>;++interface ChatPanelProps {+ className?: string;+ attachments?: Attachment[];+ onRemoveAttachment?: (id: string) => void;+ pptDraftSlides?: Array<{ id: string; slideId: string; title: string; json: string; kind: "outline" | "slide_image"; imageUrl?: string }>;+ onRemovePptDraftSlide?: (id: string) => void;+ onClearPptDraftSlides?: () => void;+ onCodeAction?: (code: string, type: 'flow' | 'cad' | 'ppt') => MaybePromise<void | CodeActionResult>;+ systemPrompt?: string;+ initialMessages?: ChatMessage[];+ onMessagesChange?: (messages: ChatMessage[]) => void;+ chatModel?: string;+ workspaceId?: string;+ mode?: 'text' | 'ppt_image';+ hideHistoryButton?: boolean;+ collapsed?: boolean;+ onToggleCollapse?: () => void;+ collapseLocked?: boolean;+ title?: string;+ inputPlaceholder?: string;+ // History props+ history?: HistoryItem[];+ onRestore?: (item: HistoryItem) => void;+ onClearVersionHistory?: () => void;+ onClearAttachments?: () => void;+ cadContext?: {+ plan?: any;+ svg2d?: string;+ };+ flowContext?: {+ xml?: string;+ };+ onClearWorkspace?: () => void;+}++const STORAGE_KEY_PREFIX = 'chat_history_v2_';++// Convert internal ChatMessage to UIMessage+const toUIMessage = (msg: ChatMessage, index: number): UIMessage => ({+ id: `msg-${index}-${Date.now()}`,+ role: msg.role as any,+ content: msg.content,+ parts: [{ type: 'text', text: msg.content }]+});++export function ChatPanel({+ className,+ attachments = [],+ onRemoveAttachment,+ pptDraftSlides = [],+ onRemovePptDraftSlide,+ onClearPptDraftSlides,+ onCodeAction,+ systemPrompt = DRAWIO_SYSTEM_PROMPT,+ initialMessages = [],+ onMessagesChange,+ chatModel,+ workspaceId = 'default',+ mode = 'text',+ hideHistoryButton = false,+ collapsed = false,+ onToggleCollapse,+ collapseLocked = false,+ title = "AI 鍔╂墜",+ inputPlaceholder,+ history = [],+ onRestore,+ onClearVersionHistory,+ onClearAttachments,+ cadContext,+ flowContext,+ onClearWorkspace+}: ChatPanelProps) {+ const uiLang = useUiLanguage();+ const trText = (zhText: string, enText: string) => (uiLang === "zh" ? zhText : enText);+ // Persistence key+ const storageKey = `${STORAGE_KEY_PREFIX}${workspaceId}`;++ const [messages, setMessages] = useState<ChatMessage[]>(() => {+ if (typeof window !== 'undefined') {+ const saved = localStorage.getItem(storageKey);+ if (saved) {+ try {+ return JSON.parse(saved);+ } catch (e) {+ console.error("Failed to parse chat history", e);+ }+ }+ }+ return initialMessages.length > 0 ? initialMessages : [+ { role: 'assistant', content: t(uiLang, "chat.hello") }+ ];+ });++ const [input, setInput] = useState('');+ const [pptInputSegments, setPptInputSegments] = useState<Array<{ type: "text"; text: string } | { type: "ppt"; slideId: string; label: string; tag: string }>>([+ { type: "text", text: "" }+ ]);+ const [isLoading, setIsLoading] = useState(false);+ const [showHistory, setShowHistory] = useState(false);+ const [showResetWarning, setShowResetWarning] = useState(false);+ const flowAutoRetryCountRef = useRef(0);+ const MAX_FLOW_AUTO_RETRY = 3;++ const [files, setFiles] = useState<File[]>([]);+ const abortControllerRef = useRef<AbortController | null>(null);+ const [pptInputFocusTick, setPptInputFocusTick] = useState(0);+ const prevPptDraftCountRef = useRef(0);+ const prevPptDraftIdsRef = useRef<Set<string>>(new Set());+ const [pptInsertToken, setPptInsertToken] = useState<{ key: number; slideId: string; label: string; tag: string } | null>(null);+ const pptInsertQueueRef = useRef<Array<{ slideId: string; title: string; label: string }>>([]);+ const pptInsertBusyRef = useRef(false);+ const [pptClearTick, setPptClearTick] = useState(0);+ const lastUploadedImagesRef = useRef<string[]>([]);++ const getPptLabel = (slideId: string, title: string) => {+ const m = String(slideId || "").match(/(\\d+)/);+ const n = m ? Number(m[1]) : NaN;+ if (!Number.isNaN(n)) {+ return title ? `Slide ${n}: ${title}` : `Slide ${n}`;+ }+ return title || slideId;+ };++ const getPptTag = (slideId: string, title: string) => {+ const m = String(slideId || "").match(/(\\d+)/);+ const n = m ? Number(m[1]) : NaN;+ if (Number.isNaN(n)) return "";+ const safeTitle = String(title || "").split("|").join(",").split("]]").join("");+ return `[[PPT_SLIDE|${n}|${safeTitle}]]`;+ };++ const pumpPptInsertQueue = () => {+ if (pptInsertBusyRef.current) return;+ const next = pptInsertQueueRef.current.shift();+ if (!next) return;+ pptInsertBusyRef.current = true;+ const tag = getPptTag(next.slideId, next.title);+ setPptInsertToken({ key: Date.now() + Math.random(), slideId: next.slideId, label: next.label, tag });+ };++ const enqueuePptToken = (slideId: string, title: string) => {+ const label = getPptLabel(slideId, title);+ pptInsertQueueRef.current.push({ slideId, title, label });+ pumpPptInsertQueue();+ };++ useEffect(() => {+ if (workspaceId !== "ppt") return;+ const prev = prevPptDraftCountRef.current;+ const next = pptDraftSlides.length;+ prevPptDraftCountRef.current = next;+ if (next > prev) {+ setPptInputFocusTick((x) => x + 1);+ }+ }, [workspaceId, pptDraftSlides.length]);++ useEffect(() => {+ if (workspaceId !== "ppt") return;+ const prevIds = prevPptDraftIdsRef.current;+ const nextIds = new Set(pptDraftSlides.map((s) => s.id));+ const added = pptDraftSlides.filter((s) => !prevIds.has(s.id));+ prevPptDraftIdsRef.current = nextIds;+ if (added.length === 0) return;+ for (const s of added) enqueuePptToken(s.slideId, s.title);+ }, [workspaceId, pptDraftSlides, setInput]);++ const parseMarkdownBomTable = (text: string) => {+ const normalized = String(text || "");+ const lines = normalized.split(/\r?\n/);+ for (let i = 0; i < lines.length - 2; i += 1) {+ const header = lines[i];+ const sep = lines[i + 1];+ if (!header.includes("|")) continue;+ if (!/^\s*\|?(\s*:?-+:?\s*\|)+\s*:?-+:?\s*\|?\s*$/.test(sep)) continue;++ const parseRow = (line: string) => {+ const trimmed = line+ .trim()+ .replace(/^[-*+]\s+/, "")+ .replace(/^\d+\.\s+/, "");+ const body = trimmed.startsWith("|") ? trimmed.slice(1) : trimmed;+ const body2 = body.endsWith("|") ? body.slice(0, -1) : body;+ return body2.split("|").map((c) => c.trim());+ };++ const columns = parseRow(header).filter((c) => c);+ if (columns.length === 0) continue;++ const rows: any[] = [];+ for (let j = i + 2; j < lines.length; j += 1) {+ const rowLine = lines[j];+ if (!rowLine.includes("|")) break;+ const row = parseRow(rowLine);+ if (row.every((c) => !String(c || "").trim())) break;+ const fixed = row.slice(0, columns.length);+ while (fixed.length < columns.length) fixed.push("");+ rows.push(fixed);+ }++ if (rows.length === 0) continue;+ return { type: "cad_bom", columns, rows };+ }+ return null;+ };++ const sanitizeAssistantContentForDisplay = (content: string) => {+ if (workspaceId !== "cad") return content;+ if (!content) return content;+ let next = content.replace(+ /```(?:python|py|python3)\s*[\s\S]*?```/g,+ trText("锛堝凡鍦ㄥ悗鍙版帹瀵煎畬鎴愶級", "(Processed in the background)")+ );+ next = next+ .split("\n")+ .filter((line) => !/freecad/i.test(line))+ .join("\n");+ next = next.replace(/(?:^|\n)1\.\s*FreeCAD[\s\S]*?(?=\n\d+\.\s|$)/gi, "\n");+ return next.replace(/```json\s*([\s\S]*?)```/g, (full, inner) => {+ const text = String(inner || "").trim();+ if (!text) return full;+ if (text.includes('"type"') && text.includes('"cad_images"')) {+ return trText("锛堝凡鎻愪氦瑁呬慨鍥剧敓鎴愪换鍔★級", "(CAD drawing generation task submitted)");+ }+ if (text.includes('"type"') && text.includes('"cad_plan"')) {+ try {+ const parsed = JSON.parse(text);+ if (parsed?.type !== "cad_plan") return full;+ const plan = parsed?.plan || {};+ const summary = typeof plan?.summary === "string" ? plan.summary : "";+ const style = typeof plan?.style === "string" ? plan.style : "";+ const assumptions = Array.isArray(plan?.assumptions) ? plan.assumptions.map((x: any) => String(x)).filter(Boolean) : [];+ const constraints = Array.isArray(plan?.constraints) ? plan.constraints.map((x: any) => String(x)).filter(Boolean) : [];+ const rooms = Array.isArray(plan?.rooms) ? plan.rooms : [];++ const lines: string[] = [];+ if (summary) lines.push(trText(`Summary: ${summary}`, `Summary: ${summary}`));+ if (style) lines.push(trText(`Style: ${style}`, `Style: ${style}`));+ if (rooms.length > 0) {+ const roomNames = rooms.map((r: any) => String(r?.name || r?.type || "")).filter(Boolean);+ lines.push(trText(`Spaces: ${roomNames.join(", ")}`, `Spaces: ${roomNames.join(", ")}`));+ }+ if (assumptions.length > 0) lines.push(trText(`Assumptions: ${assumptions.join("; ")}`, `Assumptions: ${assumptions.join("; ")}`));+ if (constraints.length > 0) lines.push(trText(`Constraints: ${constraints.join("; ")}`, `Constraints: ${constraints.join("; ")}`));+ return lines.length > 0 ? lines.join("\\n") : trText("(Plan generated)", "(Plan generated)");+ } catch {+ return trText("(Plan generated)", "(Plan generated)");+ }+ }+ return full;+ });+ };++ const scheduleFrame = (cb: () => void) => {+ if (typeof requestAnimationFrame === "function") return requestAnimationFrame(cb);+ if (typeof window !== "undefined") return window.setTimeout(cb, 16);+ return 0;+ };++ const cancelFrame = (id: number) => {+ if (!id) return;+ if (typeof cancelAnimationFrame === "function") cancelAnimationFrame(id);+ else if (typeof window !== "undefined") window.clearTimeout(id);+ };++ const updateLastAssistant = (content: string) => {+ const display = sanitizeAssistantContentForDisplay(content);+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant') {+ return [...prev.slice(0, -1), { role: 'assistant', content: display }];+ }+ return [...prev, { role: 'assistant', content: display }];+ });+ };++ const createThrottledAssistantUpdater = () => {+ let latest = '';+ let frameId: number | null = null;+ return {+ push: (chunk: string) => {+ latest = chunk;+ if (frameId !== null) return;+ frameId = scheduleFrame(() => {+ frameId = null;+ updateLastAssistant(latest);+ });+ },+ flush: () => {+ if (frameId !== null) {+ cancelFrame(frameId);+ frameId = null;+ }+ updateLastAssistant(latest);+ }+ };+ };++ // Persist messages+ useEffect(() => {+ localStorage.setItem(storageKey, JSON.stringify(messages));+ onMessagesChange?.(messages);+ }, [messages, storageKey, onMessagesChange]);++ const clearHistory = () => {+ abortControllerRef.current?.abort();+ abortControllerRef.current = null;+ setIsLoading(false);+ setInput('');+ setPptInputSegments([{ type: "text", text: "" }]);+ setFiles([]);+ onClearAttachments?.();+ onClearPptDraftSlides?.();+ onClearWorkspace?.();+ try {+ localStorage.removeItem(storageKey);+ } catch {+ }+ const newMsgs: ChatMessage[] = [+ { role: 'assistant', content: t(uiLang, "chat.cleared") }+ ];+ setMessages(newMsgs);+ setShowResetWarning(false);+ };++ const startNewChat = () => {+ abortControllerRef.current?.abort();+ abortControllerRef.current = null;+ setIsLoading(false);+ setInput('');+ setPptInputSegments([{ type: "text", text: "" }]);+ setFiles([]);+ onClearAttachments?.();+ const newMsgs: ChatMessage[] = [+ { role: 'assistant', content: t(uiLang, "chat.newChat") }+ ];+ setMessages(newMsgs);+ try {+ localStorage.removeItem(storageKey);+ } catch {+ }+ };++ const runCodeAction = async (code: string, type: 'flow' | 'cad' | 'ppt') => {+ const result = await Promise.resolve(onCodeAction?.(code, type));+ if (!result || typeof result !== "object") return { ok: true } as CodeActionResult;+ const r = result as any;+ if (typeof r.ok === "boolean") {+ return { ok: r.ok, retry: !!r.retry, error: typeof r.error === "string" ? r.error : undefined } as CodeActionResult;+ }+ return { ok: true } as CodeActionResult;+ };++ const handleAssistantResponse = async (fullResponse: string) => {+ if (!fullResponse) return { flowPatchFound: false, flowRetryError: null as string | null };++ const pyMatch = fullResponse.match(/```python\n([\s\S]*?)\n```/);+ if (pyMatch && pyMatch[1] && workspaceId !== "cad") {+ await runCodeAction(pyMatch[1], 'cad');+ }++ if (workspaceId === "cad") {+ const jsMatch = fullResponse.match(/```(javascript|js)\n([\s\S]*?)\n```/);+ if (jsMatch && jsMatch[2]) {+ await runCodeAction(jsMatch[2], 'cad');+ }+ }++ const svgMatch = fullResponse.match(/```svg\n([\s\S]*?)\n```/);+ if (svgMatch && svgMatch[1]) {+ await runCodeAction(svgMatch[1], 'cad');+ }++ let flowPatchFound = false;+ let flowRetryError: string | null = null;++ const jsonRegex = /```json\s*([\s\S]*?)```/g;+ let m: RegExpExecArray | null;+ while ((m = jsonRegex.exec(fullResponse))) {+ const jsonText = String(m[1] || "").trim();+ if (!jsonText) continue;++ if (workspaceId === 'ppt') {+ try {+ const parsed = JSON.parse(jsonText);+ if (lastUploadedImagesRef.current.length > 0) {+ parsed.uploadedImages = lastUploadedImagesRef.current;+ await runCodeAction(JSON.stringify(parsed), 'ppt');+ } else {+ await runCodeAction(jsonText, 'ppt');+ }+ } catch {+ await runCodeAction(jsonText, 'ppt');+ }+ continue;+ }++ if (workspaceId === 'flow') {+ try {+ const parsed = JSON.parse(jsonText);+ if (parsed?.type === "flow_patch") flowPatchFound = true;+ } catch {+ }+ const r = await runCodeAction(jsonText, 'flow');+ if (!r.ok && r.retry) {+ flowRetryError = r.error || "Unknown error";+ }+ continue;+ }++ await runCodeAction(jsonText, workspaceId === "cad" ? 'cad' : 'ppt');+ }++ if (workspaceId === "flow" && !flowPatchFound) {+ const xmlMatch = fullResponse.match(/```xml\n([\s\S]*?)\n```/);+ if (xmlMatch && xmlMatch[1]) {+ const r = await runCodeAction(xmlMatch[1], 'flow');+ if (!r.ok && r.retry) {+ flowRetryError = r.error || "Unknown error";+ }+ }+ }++ return { flowPatchFound, flowRetryError };+ };++ const buildFlowRetryPrompt = (errorText: string, forceReplace: boolean) => {+ const err = String(errorText || "").slice(0, 600);+ if (uiLang === "en") {+ return [+ `The previous flow_patch could not be applied to the current diagram. Reason: ${err}`,+ "",+ "Please retry and strictly follow:",+ "- Output exactly one ```json``` code block with type=flow_patch",+ forceReplace+ ? "- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)"+ : "- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>",+ ].join("\n");+ }+ return [+ `Previous flow_patch could not be applied to current diagram: ${err}`,+ "",+ "Please retry and strictly follow:",+ "- Output exactly one ```json``` code block with type=flow_patch",+ forceReplace+ ? "- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)"+ : "- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>",+ ].join("\\n");+ };++ const handleSend = async () => {+ const isPpt = workspaceId === "ppt";+ const rawInput = isPpt+ ? pptInputSegments+ .map((s) => (s.type === "text" ? s.text : s.tag))+ .join("")+ : input;+ if ((!rawInput.trim() && files.length === 0 && attachments.length === 0 && pptDraftSlides.length === 0) || isLoading) return;+ flowAutoRetryCountRef.current = 0;++ const normalizedInput = rawInput.trim();+ const referencedPptSlideIds = isPpt+ ? new Set(+ pptInputSegments+ .filter((s): s is { type: "ppt"; slideId: string; label: string; tag: string } => s.type === "ppt")+ .map((s) => s.slideId)+ )+ : new Set<string>();+ const pptDraftSlidesSnapshotAll = isPpt ? pptDraftSlides.slice(0, 12) : [];+ const pptDraftSlidesSnapshot =+ isPpt && referencedPptSlideIds.size > 0+ ? pptDraftSlidesSnapshotAll.filter((s) => referencedPptSlideIds.has(s.slideId))+ : [];++ // Process files for prompt+ const fileTexts: string[] = [];+ const currentUploadedImages: string[] = [];+ const currentUploadedImageItems: Array<{ name: string; url: string }> = [];++ // Helper to read file as Data URL+ const fileToDataUrl = (file: File): Promise<string> => {+ return new Promise((resolve, reject) => {+ const reader = new FileReader();+ reader.onload = () => resolve(reader.result as string);+ reader.onerror = reject;+ reader.readAsDataURL(file);+ });+ };++ const displayFileTexts: string[] = [];++ for (const file of files) {+ if (file.type.startsWith('image/')) {+ try {+ const dataUrl = await fileToDataUrl(file);+ // We embed the image directly in the prompt using Markdown syntax.+ // This allows the Agent (if it's a VLM) to see it, or at least we provide the Data URL string+ // which the Agent can echo back in the JSON for the frontend to use.+ fileTexts.push(``);+ fileTexts.push(`[Image Attachment: ${file.name}]`);+ currentUploadedImages.push(dataUrl);+ currentUploadedImageItems.push({ name: file.name, url: dataUrl });+ } catch (e) {+ console.error("Failed to read image", file.name, e);+ fileTexts.push(`[Image: ${file.name}] (Failed to read)`);+ }+ } else {+ // Text/PDF+ const { extractPdfText, extractTextFileContent, isPdfFile } = await import('@/lib/pdf-utils');+ try {+ let content = "";+ if (isPdfFile(file)) {+ try {+ const { getPdfDocumentFromUrl, renderPdfPageToCanvas } = await import("@/lib/pdf-utils");+ const objectUrl = URL.createObjectURL(file);+ try {+ const pdf = await getPdfDocumentFromUrl(objectUrl);+ const canvas = document.createElement("canvas");+ await renderPdfPageToCanvas({ pdf, pageNumber: 1, canvas, targetWidth: 520 });+ const previewUrl = canvas.toDataURL("image/png");+ if (previewUrl && previewUrl.startsWith("data:image")) {+ currentUploadedImageItems.push({ name: file.name, url: previewUrl });+ }+ } finally {+ URL.revokeObjectURL(objectUrl);+ }+ } catch (e) {+ console.error("Failed to render PDF preview", file.name, e);+ }+ content = await extractPdfText(file);+ } else {+ content = await extractTextFileContent(file);+ }+ const block = `[${isPdfFile(file) ? 'PDF' : 'File'}: ${file.name}]\n${content}`;+ fileTexts.push(block);+ displayFileTexts.push(block);+ } catch (e) {+ console.error("Failed to read file", file.name, e);+ const block = `[File: ${file.name}]\n(Failed to read content)`;+ fileTexts.push(block);+ displayFileTexts.push(block);+ }+ }+ }++ const contextAttachmentsText = attachments.length > 0+ ? attachments+ .slice(0, 12)+ .map((a, idx) => {+ const header = `[Context ${idx + 1}: ${a.name} | ${a.type}]`;+ const body = String(a.content || "").slice(0, 12000);+ return `${header}\n\`\`\`${a.type}\n${body}\n\`\`\``;+ })+ .join("\n\n")+ : "";++ const pptDraftContextText =+ workspaceId === "ppt" && pptDraftSlidesSnapshot.length > 0+ ? pptDraftSlidesSnapshot+ .map((s, idx) => {+ const header = `[Context ${idx + 1}: ${s.slideId}.json | json]`;+ const body = String(s.json || "").slice(0, 12000);+ return `${header}\n\`\`\`json\n${body}\n\`\`\``;+ })+ .join("\n\n")+ : "";++ const flowContextText =+ workspaceId === "flow" && typeof flowContext?.xml === "string" && flowContext.xml.trim()+ ? `Current diagram XML:\n\n\`\`\`xml\n${flowContext.xml}\n\`\`\``+ : "";++ const cadContextText =+ workspaceId === "cad"+ ? [+ cadContext?.plan ? `Current CAD plan:\n\n\`\`\`json\n${JSON.stringify(cadContext.plan, null, 2)}\n\`\`\`` : "",+ typeof cadContext?.svg2d === "string" && cadContext.svg2d.trim()+ ? `Current 2D SVG:\n\n\`\`\`svg\n${cadContext.svg2d}\n\`\`\``+ : "",+ ]+ .filter(Boolean)+ .join("\n\n")+ : "";++ const promptParts = [+ rawInput,+ fileTexts.length > 0 ? fileTexts.join("\n\n") : "",+ pptDraftContextText,+ contextAttachmentsText,+ flowContextText,+ cadContextText+ ].filter(Boolean);+ const promptContent = promptParts.join("\n\n");+ lastUploadedImagesRef.current = currentUploadedImages;++ const safeTagText = (text: string) =>+ String(text || "").split("|").join(",").split("]]").join("").replace(/\r?\n/g, " ");+ const imageTags = currentUploadedImageItems+ .map((it) => `[[IMAGE|${safeTagText(it.name)}|${it.url}]]`)+ .join("\n");+ const displayParts = [+ imageTags,+ rawInput,+ displayFileTexts.length > 0 ? displayFileTexts.join("\n\n") : "",+ ].filter(Boolean);+ const displayContent = displayParts.join("\n\n");++ const userMessageForDisplay: ChatMessage = { role: 'user', content: displayContent };+ const displayMessages = [...messages, userMessageForDisplay];+ setMessages(displayMessages);+ if (isPpt) setPptInputSegments([{ type: "text", text: "" }]);+ else setInput('');+ if (isPpt) setPptClearTick((x) => x + 1);+ setFiles([]);+ if (workspaceId === "ppt") onClearPptDraftSlides?.();++ if (workspaceId === "cad" && mode === "text" && /(cad_ready_for_export|涓€閿甛s*(鍑哄浘|鐢熸垚)|one[- ]?click)/i.test(normalizedInput)) {+ const svg2d = cadContext?.svg2d || "";+ const planJson = cadContext?.plan ? JSON.stringify(cadContext.plan) : "";++ let bomEmitted = false;++ const emitCadJson = (text: string) => {+ const match = text.match(/```json\s*([\s\S]*?)```/);+ const jsonText = match ? match[1].trim() : text.trim();+ if (!jsonText.startsWith("{")) return;+ try {+ const parsed = JSON.parse(jsonText);+ if (parsed?.type === "cad_bom") bomEmitted = true;+ } catch {+ }+ onCodeAction?.(jsonText, 'cad');+ };++ const config = getAIConfig();+ const constraintsKey = workspaceId ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}` : STORAGE_GLOBAL_CONSTRAINTS_KEY;+ const globalConstraints = typeof window !== 'undefined' ? localStorage.getItem(constraintsKey) || '' : '';+ const globalSystemPrompt = config.systemPrompt || '';+ const systemContent = [buildCadTasksSystemContent({ globalSystemPrompt, globalConstraints }), `UI language: ${uiLang}`]+ .filter(Boolean)+ .join("\n\n");+ const bomMessages: ChatMessage[] = buildCadBomMessages({ systemContent, planJson, svg2d });+ const masterMessages: ChatMessage[] = buildCadImagesMasterMessages({ systemContent, planJson, svg2d });++ setIsLoading(true);+ abortControllerRef.current?.abort();+ const controller = new AbortController();+ abortControllerRef.current = controller;++ setMessages(prev => [...prev, { role: 'assistant', content: '' }]);++ const updater = createThrottledAssistantUpdater();+ let bomFull = '';+ let imagesFull = '';++ const bomTask = (async () => {+ await streamChatMessage(bomMessages, (chunk) => {+ bomFull = chunk;+ updater.push(chunk);+ }, chatModel, controller.signal);+ updater.flush();+ if (bomFull) {+ emitCadJson(bomFull);+ if (!bomEmitted) {+ const fallback = parseMarkdownBomTable(bomFull);+ if (fallback) {+ bomEmitted = true;+ onCodeAction?.(JSON.stringify(fallback), "cad");+ }+ }+ }+ })();++ const imagesTask = (async () => {+ const extractJsonText = (text: string) => {+ const match = String(text || "").match(/```json\s*([\s\S]*?)```/);+ return match ? match[1].trim() : String(text || "").trim();+ };++ const tryParseJson = (text: string) => {+ const normalized = extractJsonText(text);+ try {+ return JSON.parse(normalized);+ } catch {+ const start = normalized.indexOf("{");+ const end = normalized.lastIndexOf("}");+ if (start >= 0 && end > start) {+ try {+ return JSON.parse(normalized.slice(start, end + 1));+ } catch {+ }+ }+ return null;+ }+ };++ const fallbackTitlesForOutput = [+ trText("Renovation Plan Layout", "Renovation Plan Layout"),+ trText("Floor Finish Plan", "Floor Finish Plan"),+ trText("Reflected Ceiling Plan", "Reflected Ceiling Plan"),+ trText("Wall Setting-Out Plan", "Wall Setting-Out Plan"),+ trText("MEP Plan (Electrical + Low Voltage + Plumbing)", "MEP Plan (Electrical + Low Voltage + Plumbing)"),+ trText("Elevation Index Plan + Interior Elevations", "Elevation Index Plan + Interior Elevations"),+ trText("Detail Drawings", "Detail Drawings"),+ ];+ const fallbackTitlesForPromptEnglish = [+ "Renovation Plan Layout",+ "Floor Finish Plan",+ "Reflected Ceiling Plan",+ "Wall Setting-Out Plan",+ "MEP Plan (Electrical + Low Voltage + Plumbing)",+ "Elevation Index Plan + Interior Elevations",+ "Detail Drawings",+ ];++ let masterSchemeJson = "";+ try {+ const masterText = await generateChatMessage(masterMessages, chatModel, { signal: controller.signal, timeoutMs: 120000 });+ const parsedMaster = tryParseJson(masterText);+ if (parsedMaster?.type === "renovation_scheme_master" && parsedMaster?.global_scheme) {+ masterSchemeJson = JSON.stringify(parsedMaster, null, 2);+ }+ } catch {+ }++ const imagesSheetMessages = buildCadImagesSheetMessages({ systemContent, planJson, svg2d, masterSchemeJson });++ const settled = await Promise.allSettled(+ imagesSheetMessages.map((s) =>+ generateChatMessage(s.messages, chatModel, { signal: controller.signal, timeoutMs: 120000 })+ )+ );++ const prompts = settled.map((r, idx) => {+ const fallbackTitleForOutput = fallbackTitlesForOutput[idx] || trText("Drawing", "Drawing");+ const fallbackTitleForPrompt = fallbackTitlesForPromptEnglish[idx] || "Drawing";+ const onSheetLanguageRule =+ uiLang === "zh"+ ? "All on-sheet labels/notes/title block text must be in Simplified Chinese."+ : "All on-sheet labels/notes/title block text must be in English.";+ const fallbackPrompt = `Generate an orthographic 2D technical construction drawing sheet: ${fallbackTitleForPrompt}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. ${onSheetLanguageRule}`;++ if (r.status !== "fulfilled") return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ const text = String(r.value || "").trim();+ const parsed = tryParseJson(text);++ if (parsed?.type === "cad_images_sheet" && typeof parsed?.title === "string" && typeof parsed?.prompt === "string") {+ const p = parsed.prompt.trim();+ return { title: parsed.title, prompt: p || fallbackPrompt };+ }++ if (parsed?.type === "cad_images" && Array.isArray(parsed?.prompts) && parsed.prompts.length > 0) {+ const first = parsed.prompts[0];+ const title = typeof first?.title === "string" ? first.title : fallbackTitleForOutput;+ const prompt = typeof first?.prompt === "string" ? first.prompt.trim() : "";+ return { title, prompt: prompt || fallbackPrompt };+ }++ return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ });++ imagesFull = JSON.stringify({ type: "cad_images", prompts }, null, 2);+ emitCadJson(imagesFull);+ })();++ try {+ await Promise.allSettled([bomTask, imagesTask]);+ if (controller.signal.aborted) {+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role !== 'assistant') return prev;+ const abortedText = trText("(Aborted)", "(Aborted)");+ const next = last.content ? `${last.content}\n\n${abortedText}` : abortedText;+ return [...prev.slice(0, -1), { role: 'assistant', content: next }];+ });+ }+ } catch {+ } finally {+ setIsLoading(false);+ abortControllerRef.current = null;+ }+ return;+ }++ setIsLoading(true);+ abortControllerRef.current?.abort();+ const controller = new AbortController();+ abortControllerRef.current = controller;++ try {+ // Get Global Config+ const config = getAIConfig();+ // Load global constraints from storage (scoped by workspaceId)+ const constraintsKey = workspaceId ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}` : STORAGE_GLOBAL_CONSTRAINTS_KEY;+ const globalConstraints = typeof window !== 'undefined' ? localStorage.getItem(constraintsKey) || '' : '';+ const globalSystemPrompt = config.systemPrompt || '';++ const systemContent = [systemPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join('\n\n');++ const apiMessages: ChatMessage[] = [+ { role: 'system', content: systemContent },+ ...messages,+ { role: 'user', content: promptContent }+ ];++ setMessages(prev => [...prev, { role: 'assistant', content: '' }]);++ let fullResponse = '';+ const updater = createThrottledAssistantUpdater();+ await streamChatMessage(apiMessages, (chunk) => {+ fullResponse = chunk;+ updater.push(chunk);+ }, chatModel, controller.signal);+ updater.flush();++ let flowRoutedBaseMessages: ChatMessage[] | null = null;+ let flowSelectedAgent: "patch" | "replace" | null = null;++ if (fullResponse && workspaceId === "flow") {+ const resolveFlowAgentFromRouteText = (text: string): "patch" | "replace" | null => {+ const trimmed = String(text || "").trim();+ if (!trimmed) return null;++ let content = trimmed;+ const fenceMatch = content.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);+ if (fenceMatch && fenceMatch[1]) content = fenceMatch[1].trim();+ content = content.replace(/\s+/g, "");++ if (!/^[1-2]$/.test(content)) return null;+ return content === "1" ? "patch" : "replace";+ };++ const agentFromText = resolveFlowAgentFromRouteText(fullResponse);+ if (agentFromText) {+ flowSelectedAgent = agentFromText;++ setMessages((prev) => {+ const last = prev[prev.length - 1];+ if (last?.role === "assistant") return [...prev.slice(0, -1), { role: "assistant", content: "" }];+ return prev;+ });++ const agentPrompt = flowSelectedAgent === "patch" ? flowPatchAgentPrompt : flowReplaceAgentPrompt;+ const routedSystemContent = [agentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ const routedMessages: ChatMessage[] = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];++ let routedFull = "";+ const routedUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(routedMessages, (chunk) => {+ routedFull = chunk;+ routedUpdater.push(chunk);+ }, chatModel, controller.signal);+ routedUpdater.flush();++ flowRoutedBaseMessages = routedMessages;+ fullResponse = routedFull;+ }+ }++ if (fullResponse && workspaceId === "cad") {+ let route: { agent?: string } | null = null;++ const resolveCadAgentFromRouteText = (text: string): string | null => {+ const trimmed = String(text || "").trim();+ if (!trimmed) return null;++ let content = trimmed;+ const fenceMatch = content.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);+ if (fenceMatch && fenceMatch[1]) content = fenceMatch[1].trim();+ content = content.replace(/\s+/g, "");++ if (!/^[1-5]$/.test(content)) return null;++ return content === "1"+ ? "cad_plan_agent"+ : content === "2"+ ? "cad_svg_generate_agent"+ : content === "3"+ ? "cad_svg_patch_agent"+ : content === "4"+ ? "cad_bom_agent"+ : "cad_images_agent";+ };++ const routeJsonRegex = /```json\s*([\s\S]*?)```/g;+ let rm: RegExpExecArray | null;+ while ((rm = routeJsonRegex.exec(fullResponse))) {+ const jsonText = String(rm[1] || "").trim();+ if (!jsonText) continue;+ try {+ const parsed = JSON.parse(jsonText);+ if (parsed?.type === "cad_route" && typeof parsed?.agent === "string") {+ route = { agent: parsed.agent };+ break;+ }+ } catch {+ }+ }++ if (!route?.agent) {+ const agentFromText = resolveCadAgentFromRouteText(fullResponse);+ if (agentFromText) route = { agent: agentFromText };+ }++ if (route?.agent) {+ setMessages((prev) => {+ const last = prev[prev.length - 1];+ if (last?.role === "assistant") return [...prev.slice(0, -1), { role: "assistant", content: "" }];+ return prev;+ });++ const buildCadNextStepGuide = (args: {+ agent: string;+ beforeHasPlan: boolean;+ beforeHasSvg2d: boolean;+ producedHasPlan: boolean;+ producedHasSvg2d: boolean;+ producedHasImages: boolean;+ producedHasBom: boolean;+ }) => {+ if (args.producedHasPlan && !args.beforeHasPlan) {+ return trText(+ "The plan is ready. If it looks good, reply \"Generate 2D floorplan\". If not, tell me what to change.",+ "The plan is ready. If it looks good, reply \"Generate 2D floorplan\". If not, tell me what to change."+ );+ }+ if (args.producedHasSvg2d && !args.beforeHasSvg2d) {+ return trText(+ "The 2D floorplan is generated. Tell me edits if needed; otherwise reply \"Generate renders\".",+ "The 2D floorplan is generated. Tell me edits if needed; otherwise reply \"Generate renders\"."+ );+ }+ if (args.producedHasImages) {+ return trText(+ "Renders are being generated or updated. Next, reply \"Generate BOM\".",+ "Renders are being generated or updated. Next, reply \"Generate BOM\"."+ );+ }+ if (args.producedHasBom) {+ return trText(+ "BOM is generated. You can refine the plan, 2D, or style, or export files.",+ "BOM is generated. You can refine the plan, 2D, or style, or export files."+ );+ }+ if (args.agent === "cad_svg_patch_agent") {+ return trText(+ "2D has been patched. If OK, reply \"Generate renders\"; otherwise describe more edits.",+ "2D has been patched. If OK, reply \"Generate renders\"; otherwise describe more edits."+ );+ }+ return "";+ };++ const runCadTaskMessages = async (taskMessages: ChatMessage[]) => {+ let taskFull = "";+ const taskUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(taskMessages, (chunk) => {+ taskFull = chunk;+ taskUpdater.push(chunk);+ }, chatModel, controller.signal);+ taskUpdater.flush();+ return taskFull;+ };++ const emitCadJson = (text: string) => {+ const match = text.match(/```json\s*([\s\S]*?)```/);+ const jsonText = match ? match[1].trim() : text.trim();+ if (!jsonText.startsWith("{")) return;+ onCodeAction?.(jsonText, "cad");+ };++ const agent = String(route.agent || "").trim();+ const beforeHasPlan = !!cadContext?.plan;+ const beforeHasSvg2d = !!(typeof cadContext?.svg2d === "string" && cadContext.svg2d.trim());+ const planJson = cadContext?.plan ? JSON.stringify(cadContext.plan) : "";+ const svg2d = cadContext?.svg2d || "";++ if (agent === "cad_bom_agent") {+ const systemContentTasks = [buildCadTasksSystemContent({ globalSystemPrompt, globalConstraints }), `UI language: ${uiLang}`]+ .filter(Boolean)+ .join("\n\n");+ const taskMessages = buildCadBomMessages({ systemContent: systemContentTasks, planJson, svg2d });++ const taskFull = await runCadTaskMessages(taskMessages);+ if (taskFull) {+ emitCadJson(taskFull);+ const fallback = parseMarkdownBomTable(taskFull);+ if (fallback) onCodeAction?.(JSON.stringify(fallback), "cad");++ const producedHasPlan = /"type"\s*:\s*"cad_plan"/.test(taskFull);+ const producedHasSvg2d = /```svg[\s\S]*?```/.test(taskFull);+ const producedHasImages = /"type"\s*:\s*"cad_images"/.test(taskFull);+ const producedHasBom = /"type"\s*:\s*"cad_bom"/.test(taskFull);+ const guide = buildCadNextStepGuide({+ agent,+ beforeHasPlan,+ beforeHasSvg2d,+ producedHasPlan,+ producedHasSvg2d,+ producedHasImages,+ producedHasBom,+ });+ if (guide) updateLastAssistant(`${taskFull}\n\n${guide}`);+ }+ return;+ }++ if (agent === "cad_images_agent") {+ const systemContentTasks = [buildCadTasksSystemContent({ globalSystemPrompt, globalConstraints }), `UI language: ${uiLang}`]+ .filter(Boolean)+ .join("\n\n");+ const masterMessages: ChatMessage[] = buildCadImagesMasterMessages({ systemContent: systemContentTasks, planJson, svg2d });++ updateLastAssistant(trText("Generating drawing prompts...", "Generating drawing prompts..."));++ const extractJsonText = (text: string) => {+ const match = String(text || "").match(/```json\s*([\s\S]*?)```/);+ return match ? match[1].trim() : String(text || "").trim();+ };++ const tryParseJson = (text: string) => {+ const normalized = extractJsonText(text);+ try {+ return JSON.parse(normalized);+ } catch {+ const start = normalized.indexOf("{");+ const end = normalized.lastIndexOf("}");+ if (start >= 0 && end > start) {+ try {+ return JSON.parse(normalized.slice(start, end + 1));+ } catch {+ }+ }+ return null;+ }+ };++ const fallbackTitlesForOutput = [+ trText("Renovation Plan Layout", "Renovation Plan Layout"),+ trText("Floor Finish Plan", "Floor Finish Plan"),+ trText("Reflected Ceiling Plan", "Reflected Ceiling Plan"),+ trText("Wall Setting-Out Plan", "Wall Setting-Out Plan"),+ trText("MEP Plan (Electrical + Low Voltage + Plumbing)", "MEP Plan (Electrical + Low Voltage + Plumbing)"),+ trText("Elevation Index Plan + Interior Elevations", "Elevation Index Plan + Interior Elevations"),+ trText("Detail Drawings", "Detail Drawings"),+ ];+ const fallbackTitlesForPromptEnglish = [+ "Renovation Plan Layout",+ "Floor Finish Plan",+ "Reflected Ceiling Plan",+ "Wall Setting-Out Plan",+ "MEP Plan (Electrical + Low Voltage + Plumbing)",+ "Elevation Index Plan + Interior Elevations",+ "Detail Drawings",+ ];++ let masterSchemeJson = "";+ try {+ const masterText = await generateChatMessage(masterMessages, chatModel, { signal: controller.signal, timeoutMs: 120000 });+ const parsedMaster = tryParseJson(masterText);+ if (parsedMaster?.type === "renovation_scheme_master" && parsedMaster?.global_scheme) {+ masterSchemeJson = JSON.stringify(parsedMaster, null, 2);+ }+ } catch {+ }++ const imagesSheetMessages = buildCadImagesSheetMessages({+ systemContent: systemContentTasks,+ planJson,+ svg2d,+ masterSchemeJson,+ });++ const settled = await Promise.allSettled(+ imagesSheetMessages.map((s) =>+ generateChatMessage(s.messages, chatModel, { signal: controller.signal, timeoutMs: 120000 })+ )+ );++ const prompts = settled.map((r, idx) => {+ const fallbackTitleForOutput = fallbackTitlesForOutput[idx] || trText("Drawing", "Drawing");+ const fallbackTitleForPrompt = fallbackTitlesForPromptEnglish[idx] || "Drawing";+ const onSheetLanguageRule =+ uiLang === "zh"+ ? "All on-sheet labels/notes/title block text must be in Simplified Chinese."+ : "All on-sheet labels/notes/title block text must be in English.";+ const fallbackPrompt = `Generate an orthographic 2D technical construction drawing sheet: ${fallbackTitleForPrompt}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. ${onSheetLanguageRule}`;++ if (r.status !== "fulfilled") return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ const text = String(r.value || "").trim();+ const parsed = tryParseJson(text);++ if (parsed?.type === "cad_images_sheet" && typeof parsed?.title === "string" && typeof parsed?.prompt === "string") {+ const p = parsed.prompt.trim();+ return { title: parsed.title, prompt: p || fallbackPrompt };+ }++ if (parsed?.type === "cad_images" && Array.isArray(parsed?.prompts) && parsed.prompts.length > 0) {+ const first = parsed.prompts[0];+ const title = typeof first?.title === "string" ? first.title : fallbackTitleForOutput;+ const prompt = typeof first?.prompt === "string" ? first.prompt.trim() : "";+ return { title, prompt: prompt || fallbackPrompt };+ }++ return { title: fallbackTitleForOutput, prompt: fallbackPrompt };+ });++ const payload = JSON.stringify({ type: "cad_images", prompts }, null, 2);+ onCodeAction?.(payload, "cad");++ const guide = buildCadNextStepGuide({+ agent,+ beforeHasPlan,+ beforeHasSvg2d,+ producedHasPlan: false,+ producedHasSvg2d: false,+ producedHasImages: true,+ producedHasBom: false,+ });+ updateLastAssistant(guide || trText("Drawing tasks generated.", "Drawing tasks generated."));+ return;+ }++ const agentPrompt =+ agent === "cad_plan_agent"+ ? CAD_PLAN_AGENT_PROMPT+ : agent === "cad_svg_generate_agent"+ ? CAD_SVG_GENERATE_AGENT_PROMPT+ : agent === "cad_svg_patch_agent"+ ? CAD_SVG_PATCH_AGENT_PROMPT+ : "";++ if (!agentPrompt) {+ updateLastAssistant(trText(`鏈瘑鍒殑 CAD 瀛愭櫤鑳戒綋锛?{agent}`, `Unrecognized CAD sub-agent: ${agent}`));+ return;+ }++ const routedSystemContent = [agentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ const routedMessages: ChatMessage[] = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];++ let routedFull = "";+ const routedUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(routedMessages, (chunk) => {+ routedFull = chunk;+ routedUpdater.push(chunk);+ }, chatModel, controller.signal);+ routedUpdater.flush();++ if (routedFull) {+ const svgMatch = routedFull.match(/```svg\n([\s\S]*?)\n```/);+ if (svgMatch && svgMatch[1]) onCodeAction?.(svgMatch[1], "cad");++ const jsonRegex = /```json\s*([\s\S]*?)```/g;+ let jm: RegExpExecArray | null;+ while ((jm = jsonRegex.exec(routedFull))) {+ const jsonText = String(jm[1] || "").trim();+ if (!jsonText) continue;+ onCodeAction?.(jsonText, "cad");+ }++ const producedHasPlan = /"type"\s*:\s*"cad_plan"/.test(routedFull);+ const producedHasSvg2d = /```svg[\s\S]*?```/.test(routedFull);+ const producedHasImages = /"type"\s*:\s*"cad_images"/.test(routedFull);+ const producedHasBom = /"type"\s*:\s*"cad_bom"/.test(routedFull);+ const guide = buildCadNextStepGuide({+ agent,+ beforeHasPlan,+ beforeHasSvg2d,+ producedHasPlan,+ producedHasSvg2d,+ producedHasImages,+ producedHasBom,+ });+ if (guide) updateLastAssistant(`${routedFull}\n\n${guide}`);+ }+ return;+ }+ }++ if (fullResponse) {+ let { flowPatchFound, flowRetryError } =+ await handleAssistantResponse(fullResponse);++ let flowRetryMessagesBase: ChatMessage[] = flowRoutedBaseMessages ? [...flowRoutedBaseMessages] : apiMessages;+ let flowRetryAgent: "patch" | "replace" | null = flowSelectedAgent;++ while (+ workspaceId === "flow" &&+ flowPatchFound &&+ flowRetryError &&+ !controller.signal.aborted &&+ flowAutoRetryCountRef.current < MAX_FLOW_AUTO_RETRY+ ) {+ flowAutoRetryCountRef.current += 1;+ const forceReplace = flowAutoRetryCountRef.current >= MAX_FLOW_AUTO_RETRY;++ if (forceReplace && flowRetryAgent === "patch") {+ flowRetryAgent = "replace";+ const routedSystemContent = [flowReplaceAgentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ flowRetryMessagesBase = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];+ }++ const retryPrompt = buildFlowRetryPrompt(flowRetryError, forceReplace);+ const retryMessages: ChatMessage[] = [+ ...flowRetryMessagesBase,+ { role: "assistant", content: fullResponse },+ { role: "user", content: retryPrompt },+ ];++ setMessages((prev) => [...prev, { role: "assistant", content: "" }]);++ let retryFull = "";+ const retryUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(+ retryMessages,+ (chunk) => {+ retryFull = chunk;+ retryUpdater.push(chunk);+ },+ chatModel,+ controller.signal,+ );+ retryUpdater.flush();++ fullResponse = retryFull;+ flowRetryMessagesBase = retryMessages;+ const processed = await handleAssistantResponse(fullResponse);+ flowPatchFound = processed.flowPatchFound;+ flowRetryError = processed.flowRetryError;+ }+ }++ } catch (error) {+ if ((error as any)?.name === "AbortError" || (error as any)?.name === "APIUserAbortError") {+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant') {+ const abortedText = trText("(Aborted)", "(Aborted)");+ const next = last.content ? `${last.content}\n\n${abortedText}` : abortedText;+ return [...prev.slice(0, -1), { role: 'assistant', content: next }];+ }+ return [...prev, { role: 'assistant', content: trText("(Aborted)", "(Aborted)") }];+ });+ return;+ }+ setMessages(prev => {+ const last = prev[prev.length - 1];+ const errorText = trText(+ "Sorry, an error occurred. Please check API key settings.",+ "Sorry, an error occurred. Please check API key settings."+ );+ if (last.role === 'assistant' && !last.content) {+ return [...prev.slice(0, -1), { role: 'assistant', content: errorText }];+ }+ return [...prev, { role: 'assistant', content: errorText }];+ });+ } finally {+ setIsLoading(false);+ abortControllerRef.current = null;+ }+ };++ const handleStop = () => {+ if (!isLoading) return;+ abortControllerRef.current?.abort();+ };++ const runTextChat = async (baseMessages: ChatMessage[]) => {+ const config = getAIConfig();+ const constraintsKey = workspaceId ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}` : STORAGE_GLOBAL_CONSTRAINTS_KEY;+ const globalConstraints = typeof window !== 'undefined' ? localStorage.getItem(constraintsKey) || '' : '';+ const globalSystemPrompt = config.systemPrompt || '';+ const systemContent = [systemPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join('\n\n');+ const lastUserText = String(baseMessages[baseMessages.length - 1]?.content || "");+ const flowContextText =+ workspaceId === "flow" && typeof flowContext?.xml === "string" && flowContext.xml.trim()+ ? `Current diagram XML:\n\n\`\`\`xml\n${flowContext.xml}\n\`\`\``+ : "";+ const promptContent = [lastUserText, flowContextText].filter(Boolean).join("\n\n");++ const apiMessages: ChatMessage[] = [+ { role: 'system', content: systemContent },+ ...baseMessages.slice(0, -1),+ { role: "user", content: promptContent }+ ];++ setIsLoading(true);+ abortControllerRef.current?.abort();+ const controller = new AbortController();+ abortControllerRef.current = controller;++ setMessages([...baseMessages, { role: 'assistant', content: '' }]);++ let fullResponse = '';+ const updater = createThrottledAssistantUpdater();+ try {+ await streamChatMessage(apiMessages, (chunk) => {+ fullResponse = chunk;+ updater.push(chunk);+ }, chatModel, controller.signal);+ updater.flush();++ if (fullResponse) {+ let flowRoutedBaseMessages: ChatMessage[] | null = null;+ let flowSelectedAgent: "patch" | "replace" | null = null;++ if (workspaceId === "flow") {+ const resolveFlowAgentFromRouteText = (text: string): "patch" | "replace" | null => {+ const trimmed = String(text || "").trim();+ if (!trimmed) return null;++ let content = trimmed;+ const fenceMatch = content.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);+ if (fenceMatch && fenceMatch[1]) content = fenceMatch[1].trim();+ content = content.replace(/\s+/g, "");++ if (!/^[1-2]$/.test(content)) return null;+ return content === "1" ? "patch" : "replace";+ };++ const agentFromText = resolveFlowAgentFromRouteText(fullResponse);+ if (agentFromText) {+ flowSelectedAgent = agentFromText;++ setMessages((prev) => {+ const last = prev[prev.length - 1];+ if (last?.role === "assistant") return [...prev.slice(0, -1), { role: "assistant", content: "" }];+ return prev;+ });++ const agentPrompt = flowSelectedAgent === "patch" ? flowPatchAgentPrompt : flowReplaceAgentPrompt;+ const routedSystemContent = [agentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ const routedMessages: ChatMessage[] = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];++ let routedFull = "";+ const routedUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(routedMessages, (chunk) => {+ routedFull = chunk;+ routedUpdater.push(chunk);+ }, chatModel, controller.signal);+ routedUpdater.flush();++ flowRoutedBaseMessages = routedMessages;+ fullResponse = routedFull;+ }+ }++ let { flowPatchFound, flowRetryError } =+ await handleAssistantResponse(fullResponse);++ let flowRetryMessagesBase: ChatMessage[] = flowRoutedBaseMessages ? [...flowRoutedBaseMessages] : apiMessages;+ let flowRetryAgent: "patch" | "replace" | null = flowSelectedAgent;++ while (+ workspaceId === "flow" &&+ flowPatchFound &&+ flowRetryError &&+ !controller.signal.aborted &&+ flowAutoRetryCountRef.current < MAX_FLOW_AUTO_RETRY+ ) {+ flowAutoRetryCountRef.current += 1;+ const forceReplace = flowAutoRetryCountRef.current >= MAX_FLOW_AUTO_RETRY;++ if (forceReplace && flowRetryAgent === "patch") {+ flowRetryAgent = "replace";+ const routedSystemContent = [flowReplaceAgentPrompt, globalSystemPrompt, globalConstraints].filter(Boolean).join("\n\n");+ flowRetryMessagesBase = [+ { role: "system", content: routedSystemContent },+ { role: "user", content: promptContent }+ ];+ }++ const retryPrompt = buildFlowRetryPrompt(flowRetryError, forceReplace);+ const retryMessages: ChatMessage[] = [+ ...flowRetryMessagesBase,+ { role: "assistant", content: fullResponse },+ { role: "user", content: retryPrompt },+ ];++ setMessages((prev) => [...prev, { role: "assistant", content: "" }]);++ let retryFull = "";+ const retryUpdater = createThrottledAssistantUpdater();+ await streamChatMessage(+ retryMessages,+ (chunk) => {+ retryFull = chunk;+ retryUpdater.push(chunk);+ },+ chatModel,+ controller.signal,+ );+ retryUpdater.flush();++ fullResponse = retryFull;+ flowRetryMessagesBase = retryMessages;+ const processed = await handleAssistantResponse(fullResponse);+ flowPatchFound = processed.flowPatchFound;+ flowRetryError = processed.flowRetryError;+ }+ }+ } catch (error) {+ if ((error as any)?.name === "AbortError" || (error as any)?.name === "APIUserAbortError") {+ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant') {+ const next = last.content ? `${last.content}\n\n(Aborted)` : "(Aborted)";+ return [...prev.slice(0, -1), { role: 'assistant', content: next }];+ }+ return [...prev, { role: 'assistant', content: "(Aborted)" }];+ });+ return;+ }++ setMessages(prev => {+ const last = prev[prev.length - 1];+ if (last?.role === 'assistant' && !last.content) {+ return [...prev.slice(0, -1), { role: 'assistant', content: "Sorry, an error occurred. Please check API key settings." }];+ }+ return [...prev, { role: 'assistant', content: "Sorry, an error occurred. Please check API key settings." }];+ });+ } finally {+ setIsLoading(false);+ abortControllerRef.current = null;+ }+ };++ const handleRegenerate = async (messageIndex: number) => {+ if (messageIndex < 0 || messageIndex >= messages.length) return;+ if (messages[messageIndex].role !== 'assistant') return;+ const base = messages.slice(0, messageIndex);+ if (base.length === 0) return;+ const last = base[base.length - 1];+ if (last.role !== 'user') return;+ flowAutoRetryCountRef.current = 0;+ await runTextChat(base);+ };++ const handleEditAndResend = async (messageIndex: number, newText: string) => {+ if (messageIndex < 0 || messageIndex >= messages.length) return;+ if (messages[messageIndex].role !== 'user') return;++ const original = messages[messageIndex].content || "";+ const lines = original.split(/\r?\n/);+ const prefixTags: string[] = [];+ let i = 0;+ for (; i < lines.length; i += 1) {+ const line = lines[i];+ if (/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/.test(line) || /^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/.test(line)) {+ prefixTags.push(line);+ continue;+ }+ break;+ }+ const rest = lines.slice(i).join("\n");+ const marker = rest.match(/\n\n\[(PDF|File|Context)\b/);+ const preserved = marker && typeof marker.index === "number" ? rest.slice(marker.index) : "";+ const prefix = prefixTags.length > 0 ? `${prefixTags.join("\n")}\n\n` : "";+ const updatedUser: ChatMessage = { role: 'user', content: `${prefix}${newText}${preserved}` };+ const base = [...messages.slice(0, messageIndex), updatedUser];+ setInput("");+ setFiles([]);+ flowAutoRetryCountRef.current = 0;+ await runTextChat(base);+ };++ const uiMessages: UIMessage[] = messages.map((msg, idx) => ({+ id: `msg-${idx}`,+ role: msg.role as any,+ content: msg.content,+ parts: [{ type: 'text', text: msg.content }]+ }));++ if (collapsed) {+ return (+ <div className={cn("h-full flex flex-col items-center pt-4 bg-card border border-border/30 rounded-xl", className)}>+ <ButtonWithTooltip+ tooltipContent={t(uiLang, "chat.expand")}+ variant="ghost"+ size="icon"+ onClick={onToggleCollapse}+ className="hover:bg-accent transition-colors"+ >+ <PanelRightOpen className="h-5 w-5 text-muted-foreground" />+ </ButtonWithTooltip>+ </div>+ );+ }++ return (+ <div className={cn("h-full flex flex-col bg-card shadow-soft animate-slide-in-right rounded-xl border border-border/30 relative", className)}>+ {/* Header */}+ <div className="px-5 py-4 border-b border-border/50">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <span className="text-base font-semibold tracking-tight whitespace-nowrap">{title}</span>+ </div>+ <div className="flex items-center gap-1">+ {onToggleCollapse && (+ <ButtonWithTooltip+ tooltipContent={collapseLocked ? t(uiLang, "chat.collapseLocked") : t(uiLang, "chat.collapse")}+ variant="ghost"+ size="icon"+ onClick={onToggleCollapse}+ disabled={collapseLocked}+ className="hover:bg-accent transition-colors rounded-md"+ >+ <PanelRightClose className="w-4 h-4 text-muted-foreground" />+ </ButtonWithTooltip>+ )}+ </div>+ </div>+ </div>++ {/* Messages */}+ <div className="flex-1 w-full overflow-hidden">+ <ChatMessageDisplay+ messages={uiMessages}+ setInput={setInput}+ status={isLoading ? "streaming" : "idle"}+ onDisplayChart={(xml) => onCodeAction?.(xml, 'flow')}+ onRegenerate={handleRegenerate}+ onEditMessage={handleEditAndResend}+ />+ </div>++ {/* Input */}+ <div className="p-4 border-t border-border/50 bg-card/50">+ <ChatInput+ input={input}+ setInput={setInput}+ onSubmit={handleSend}+ isLoading={isLoading}+ onStop={handleStop}+ onClearChat={() => setShowResetWarning(true)}+ onToggleHistory={!hideHistoryButton ? () => setShowHistory(true) : undefined}+ historyDisabled={history.length === 0}+ onFilesChange={setFiles}+ files={files}+ uploadMode={workspaceId === "ppt" ? "imagesOnly" : workspaceId === "cad" ? "filesOnly" : "all"}+ placeholder={inputPlaceholder}+ focusKey={workspaceId === "ppt" ? pptInputFocusTick : undefined}+ clearKey={workspaceId === "ppt" ? pptClearTick : undefined}+ richSegments={workspaceId === "ppt" ? pptInputSegments : undefined}+ onRichSegmentsChange={workspaceId === "ppt" ? setPptInputSegments : undefined}+ insertPptToken={workspaceId === "ppt" ? pptInsertToken : null}+ onInsertPptTokenHandled={workspaceId === "ppt" ? () => {+ pptInsertBusyRef.current = false;+ setPptInsertToken(null);+ pumpPptInsertQueue();+ } : undefined}+ bottomChips={+ attachments.length > 0+ ? (+ <div className="space-y-2">+ {attachments.length > 0 && (+ <div className="overflow-x-auto">+ <div className="flex flex-nowrap items-center gap-2">+ {attachments.map((a) => (+ <div+ key={a.id}+ className="flex items-center gap-2 rounded-full border border-border bg-muted/40 px-3 py-1 text-xs text-muted-foreground shrink-0"+ title={a.name}+ >+ <span className="max-w-[240px] truncate">{a.name}</span>+ {onRemoveAttachment && (+ <button+ type="button"+ onClick={() => onRemoveAttachment(a.id)}+ className="text-muted-foreground/80 hover:text-foreground transition-colors"+ title="Remove attachment"+ aria-label="Remove attachment"+ >+ 脳+ </button>+ )}+ </div>+ ))}+ </div>+ </div>+ )}+ </div>+ )+ : null+ }+ />+ </div>++ {/* Dialogs */}+ <HistoryDialog+ showHistory={showHistory}+ onToggleHistory={setShowHistory}+ history={history}+ onRestore={(item) => onRestore && onRestore(item)}+ onClear={() => {+ onClearVersionHistory?.();+ }}+ />+ <ResetWarningModal+ open={showResetWarning}+ onOpenChange={setShowResetWarning}+ onClear={clearHistory}+ />+ </div>+ );+}diff --git a/src/workspaces/ppt/chat/components/button-with-tooltip.tsx b/src/workspaces/ppt/chat/components/button-with-tooltip.tsxnew file mode 100644index 0000000..b1306b1--- /dev/null+++ b/src/workspaces/ppt/chat/components/button-with-tooltip.tsx@@ -0,0 +1,36 @@+import type { VariantProps } from "class-variance-authority"+import type React from "react"+import { Button, type buttonVariants } from "@/workspaces/ppt/ui/button"+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/workspaces/ppt/ui/tooltip"++interface ButtonWithTooltipProps+ extends React.ComponentProps<"button">,+ VariantProps<typeof buttonVariants> {+ tooltipContent: string+ children: React.ReactNode+ asChild?: boolean+}++export function ButtonWithTooltip({+ tooltipContent,+ children,+ ...buttonProps+}: ButtonWithTooltipProps) {+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button {...buttonProps}>{children}</Button>+ </TooltipTrigger>+ <TooltipContent className="max-w-xs text-wrap">+ {tooltipContent}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ )+}diff --git a/src/workspaces/ppt/chat/components/code-block.tsx b/src/workspaces/ppt/chat/components/code-block.tsxnew file mode 100644index 0000000..9eab18f--- /dev/null+++ b/src/workspaces/ppt/chat/components/code-block.tsx@@ -0,0 +1,131 @@+import React, { useMemo, useRef, useState } from 'react';+import { Highlight, themes, type Language } from "prism-react-renderer";+import { ChevronRight, Loader2 } from 'lucide-react';+import { cn } from '@/lib/utils';++interface CodeBlockProps {+ code: string;+ language?: string;+ isStreaming?: boolean;+ blockId?: string;+}++const openStateById = new Map<string, boolean>();++export function CodeBlock({ code, language = "xml", isStreaming = false, blockId }: CodeBlockProps) {+ const [isOpen, setIsOpen] = useState(() => {+ if (blockId && openStateById.has(blockId)) return Boolean(openStateById.get(blockId));+ return false;+ });+ const preRef = useRef<HTMLPreElement | null>(null);+ const normalizedLanguage = useMemo(() => (language || "text").toLowerCase(), [language]);+ const normalizedCode = useMemo(() => String(code ?? ""), [code]);+ const prismLanguage = useMemo<Language>(() => {+ const lang = normalizedLanguage;+ if (lang === "svg") return "xml";+ if (lang === "yml") return "yaml";+ if (lang === "shell" || lang === "sh" || lang === "zsh") return "bash";+ if (lang === "ts") return "typescript";+ if (lang === "tsx") return "tsx";+ if (lang === "js") return "javascript";+ if (lang === "md") return "markdown";+ const allowed = new Set([+ "text",+ "xml",+ "json",+ "javascript",+ "typescript",+ "tsx",+ "jsx",+ "python",+ "bash",+ "yaml",+ "markdown",+ "css",+ "html",+ ]);+ if (allowed.has(lang)) return lang as Language;+ return "text";+ }, [normalizedLanguage]);++ const setOpen = (open: boolean) => {+ setIsOpen(open);+ if (blockId) openStateById.set(blockId, open);+ };++ return (+ <div className="w-full my-2 border border-border/50 rounded-lg bg-zinc-50 dark:bg-zinc-900/40 overflow-hidden shadow-sm">+ <button+ type="button"+ onClick={() => setOpen(!isOpen)}+ className="flex items-center gap-2 w-full p-2.5 cursor-pointer hover:bg-zinc-100 dark:hover:bg-zinc-800/40 transition-colors text-xs font-medium text-zinc-600 dark:text-zinc-300 select-none bg-zinc-100/70 dark:bg-zinc-900/60"+ >+ <ChevronRight className={cn("w-4 h-4 transition-transform duration-200 text-zinc-600 dark:text-zinc-300", isOpen && "rotate-90")} />++ <span className="uppercase font-semibold tracking-wider text-zinc-700 dark:text-zinc-200">{normalizedLanguage}</span>++ {isStreaming ? (+ <div className="flex items-center gap-2 ml-auto">+ <span className="text-[10px] text-blue-600 animate-pulse">Generating code...</span>+ <Loader2 className="w-3.5 h-3.5 animate-spin text-blue-600" />+ </div>+ ) : (+ <span className="ml-auto text-[10px] opacity-70 font-mono">{normalizedCode.length} chars</span>+ )}+ </button>++ {isOpen && (+ <div className="p-0 border-t border-border/50">+ <div className="overflow-hidden w-full bg-zinc-50 dark:bg-zinc-900/40">+ <Highlight theme={themes.github} code={normalizedCode} language={prismLanguage}>+ {({+ style,+ tokens,+ getLineProps,+ getTokenProps,+ }) => (+ <pre+ ref={preRef}+ className="text-[11px] leading-relaxed overflow-x-hidden overflow-y-auto overscroll-contain max-h-[500px] scrollbar-thin p-3 whitespace-pre-wrap break-words"+ style={{+ ...style,+ fontFamily: "var(--font-mono), ui-monospace, monospace",+ backgroundColor: "transparent",+ margin: 0,+ }}+ onWheelCapture={(e) => {+ const el = preRef.current;+ if (!el) return;+ const atTop = el.scrollTop <= 0;+ const atBottom = el.scrollTop + el.clientHeight >= el.scrollHeight - 1;+ const dy = e.deltaY;+ if (dy > 0 && !atBottom) e.stopPropagation();+ if (dy < 0 && !atTop) e.stopPropagation();+ }}+ >+ {tokens.map((line, i) => {+ const lineProps = getLineProps({ line });+ return (+ <div+ key={i}+ {...lineProps}+ className={cn("grid grid-cols-[3.25rem_1fr] gap-0", lineProps?.className)}+ >+ <span className="select-none text-zinc-400 text-right pr-4">{i + 1}</span>+ <span className="min-w-0 whitespace-pre-wrap break-words">+ {line.map((token, key) => (+ <span key={key} {...getTokenProps({ token })} />+ ))}+ </span>+ </div>+ );+ })}+ </pre>+ )}+ </Highlight>+ </div>+ </div>+ )}+ </div>+ );+}diff --git a/src/workspaces/ppt/chat/components/reasoning.tsx b/src/workspaces/ppt/chat/components/reasoning.tsxnew file mode 100644index 0000000..629358a--- /dev/null+++ b/src/workspaces/ppt/chat/components/reasoning.tsx@@ -0,0 +1,181 @@+import { useControllableState } from "@radix-ui/react-use-controllable-state"+import { BrainIcon, ChevronDownIcon } from "lucide-react"+import type { ComponentProps, ReactNode } from "react"+import { createContext, memo, useContext, useEffect, useState } from "react"+import {+ Collapsible,+ CollapsibleContent,+ CollapsibleTrigger,+} from "@/workspaces/ppt/ui/collapsible"+import { cn } from "@/lib/utils"+import { Shimmer } from "./shimmer"++type ReasoningContextValue = {+ isStreaming: boolean+ isOpen: boolean+ setIsOpen: (open: boolean) => void+ duration: number | undefined+}++const ReasoningContext = createContext<ReasoningContextValue | null>(null)++export const useReasoning = () => {+ const context = useContext(ReasoningContext)+ if (!context) {+ throw new Error("Reasoning components must be used within Reasoning")+ }+ return context+}++export type ReasoningProps = ComponentProps<typeof Collapsible> & {+ isStreaming?: boolean+ open?: boolean+ defaultOpen?: boolean+ onOpenChange?: (open: boolean) => void+ duration?: number+}++const AUTO_CLOSE_DELAY = 1000+const MS_IN_S = 1000++export const Reasoning = memo(+ ({+ className,+ isStreaming = false,+ open,+ defaultOpen = true,+ onOpenChange,+ duration: durationProp,+ children,+ ...props+ }: ReasoningProps) => {+ const [isOpen, setIsOpen] = useControllableState({+ prop: open,+ defaultProp: defaultOpen,+ onChange: onOpenChange,+ })+ const [duration, setDuration] = useControllableState({+ prop: durationProp,+ defaultProp: undefined,+ })++ const [hasAutoClosed, setHasAutoClosed] = useState(false)+ const [startTime, setStartTime] = useState<number | null>(null)++ useEffect(() => {+ if (isStreaming) {+ if (startTime === null) {+ setStartTime(Date.now())+ }+ } else if (startTime !== null) {+ setDuration(Math.ceil((Date.now() - startTime) / MS_IN_S))+ setStartTime(null)+ }+ }, [isStreaming, startTime, setDuration])++ useEffect(() => {+ if (defaultOpen && !isStreaming && isOpen && !hasAutoClosed) {+ const timer = setTimeout(() => {+ setIsOpen(false)+ setHasAutoClosed(true)+ }, AUTO_CLOSE_DELAY)++ return () => clearTimeout(timer)+ }+ }, [isStreaming, isOpen, defaultOpen, setIsOpen, hasAutoClosed])++ const handleOpenChange = (newOpen: boolean) => {+ setIsOpen(newOpen)+ }++ return (+ <ReasoningContext.Provider+ value={{ isStreaming, isOpen, setIsOpen, duration }}+ >+ <Collapsible+ className={cn("not-prose mb-4", className)}+ onOpenChange={handleOpenChange}+ open={isOpen}+ {...props}+ >+ {children}+ </Collapsible>+ </ReasoningContext.Provider>+ )+ },+)++export type ReasoningTriggerProps = ComponentProps<+ typeof CollapsibleTrigger+> & {+ getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode+}++const defaultGetThinkingMessage = (isStreaming: boolean, duration?: number) => {+ if (isStreaming || duration === 0) {+ return <Shimmer duration={1}>Thinking...</Shimmer>+ }+ if (duration === undefined) {+ return <p>Thought for a few seconds</p>+ }+ return <p>Thought for {duration} seconds</p>+}++export const ReasoningTrigger = memo(+ ({+ className,+ children,+ getThinkingMessage = defaultGetThinkingMessage,+ ...props+ }: ReasoningTriggerProps) => {+ const { isStreaming, isOpen, duration } = useReasoning()++ return (+ <CollapsibleTrigger+ className={cn(+ "flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",+ className,+ )}+ {...props}+ >+ {children ?? (+ <>+ <BrainIcon className="size-4" />+ {getThinkingMessage(isStreaming, duration)}+ <ChevronDownIcon+ className={cn(+ "size-4 transition-transform",+ isOpen ? "rotate-180" : "rotate-0",+ )}+ />+ </>+ )}+ </CollapsibleTrigger>+ )+ },+)++export type ReasoningContentProps = ComponentProps<+ typeof CollapsibleContent+> & {+ children: string+}++export const ReasoningContent = memo(+ ({ className, children, ...props }: ReasoningContentProps) => (+ <CollapsibleContent+ className={cn(+ "mt-4 text-sm",+ "data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ >+ <div className="whitespace-pre-wrap">{children}</div>+ </CollapsibleContent>+ ),+)++Reasoning.displayName = "Reasoning"+ReasoningTrigger.displayName = "ReasoningTrigger"+ReasoningContent.displayName = "ReasoningContent"diff --git a/src/workspaces/ppt/chat/components/scroll-area.tsx b/src/workspaces/ppt/chat/components/scroll-area.tsxnew file mode 100644index 0000000..677c344--- /dev/null+++ b/src/workspaces/ppt/chat/components/scroll-area.tsx@@ -0,0 +1,58 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/lib/utils"++function ScrollArea({+ className,+ children,+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {+ return (+ <ScrollAreaPrimitive.Root+ data-slot="scroll-area"+ className={cn("relative", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport+ data-slot="scroll-area-viewport"+ className="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden"+ >+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+ )+}++function ScrollBar({+ className,+ orientation = "vertical",+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {+ return (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ data-slot="scroll-area-scrollbar"+ orientation={orientation}+ className={cn(+ "flex touch-none p-px transition-colors select-none",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb+ data-slot="scroll-area-thumb"+ className="bg-border relative flex-1 rounded-full"+ />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+ )+}++export { ScrollArea, ScrollBar }diff --git a/src/workspaces/ppt/chat/components/shimmer.tsx b/src/workspaces/ppt/chat/components/shimmer.tsxnew file mode 100644index 0000000..e285cd7--- /dev/null+++ b/src/workspaces/ppt/chat/components/shimmer.tsx@@ -0,0 +1,62 @@+import { motion } from "framer-motion"+import {+ type CSSProperties,+ type ElementType,+ type JSX,+ memo,+ useMemo,+} from "react"+import { cn } from "@/lib/utils"++export type TextShimmerProps = {+ children: string+ as?: ElementType+ className?: string+ duration?: number+ spread?: number+}++const ShimmerComponent = ({+ children,+ as: Component = "p",+ className,+ duration = 2,+ spread = 2,+}: TextShimmerProps) => {+ const MotionComponent = motion.create(+ Component as keyof JSX.IntrinsicElements,+ )++ const dynamicSpread = useMemo(+ () => (children?.length ?? 0) * spread,+ [children, spread],+ )++ return (+ <MotionComponent+ animate={{ backgroundPosition: "0% center" }}+ className={cn(+ "relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent",+ "[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",+ className,+ )}+ initial={{ backgroundPosition: "100% center" }}+ style={+ {+ "--spread": `${dynamicSpread}px`,+ backgroundImage:+ "var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))",+ } as CSSProperties+ }+ transition={{+ repeat: Number.POSITIVE_INFINITY,+ duration,+ ease: "linear",+ }}+ >+ {children}+ </MotionComponent>+ )+}++export const Shimmer = memo(ShimmerComponent)diff --git a/src/workspaces/ppt/chat/file-preview-list.tsx b/src/workspaces/ppt/chat/file-preview-list.tsxnew file mode 100644index 0000000..01d625e--- /dev/null+++ b/src/workspaces/ppt/chat/file-preview-list.tsx@@ -0,0 +1,179 @@+"use client"++import { FileCode, FileText, Loader2, X } from "lucide-react"+import { useEffect, useRef, useState } from "react"+import { isPdfFile, isTextFile } from "@/lib/pdf-utils"+import { type FileData } from "@/lib/use-file-processor"++function formatCharCount(count: number): string {+ if (count >= 1000) {+ return `${(count / 1000).toFixed(1)}k`+ }+ return String(count)+}++interface FilePreviewListProps {+ files: File[]+ onRemoveFile: (fileToRemove: File) => void+ pdfData?: Map<File, FileData>+}++export function FilePreviewList({+ files,+ onRemoveFile,+ pdfData = new Map(),+}: FilePreviewListProps) {+ const [selectedImage, setSelectedImage] = useState<string | null>(null)+ const [imageUrls, setImageUrls] = useState<Map<File, string>>(new Map())+ const imageUrlsRef = useRef<Map<File, string>>(new Map())++ // Create and cleanup object URLs when files change+ useEffect(() => {+ const currentUrls = imageUrlsRef.current+ const newUrls = new Map<File, string>()++ files.forEach((file) => {+ if (file.type.startsWith("image/")) {+ // Reuse existing URL if file is already tracked+ const existingUrl = currentUrls.get(file)+ if (existingUrl) {+ newUrls.set(file, existingUrl)+ } else {+ newUrls.set(file, URL.createObjectURL(file))+ }+ }+ })++ // Revoke URLs for files that are no longer in the list+ currentUrls.forEach((url, file) => {+ if (!newUrls.has(file)) {+ URL.revokeObjectURL(url)+ }+ })++ imageUrlsRef.current = newUrls+ setImageUrls(newUrls)+ }, [files])++ // Cleanup all URLs on unmount only+ useEffect(() => {+ return () => {+ imageUrlsRef.current.forEach((url) => {+ URL.revokeObjectURL(url)+ })+ // Clear the ref so StrictMode remount creates fresh URLs+ imageUrlsRef.current = new Map()+ }+ }, [])++ // Clear selected image if its URL was revoked+ useEffect(() => {+ if (+ selectedImage &&+ !Array.from(imageUrls.values()).includes(selectedImage)+ ) {+ setSelectedImage(null)+ }+ }, [imageUrls, selectedImage])++ if (files.length === 0) return null++ return (+ <>+ <div className="flex flex-wrap gap-2 mt-2 p-2 bg-muted/50 rounded-md">+ {files.map((file, index) => {+ const imageUrl = imageUrls.get(file) || null+ const pdfInfo = pdfData.get(file)+ const isImage = file.type.startsWith("image/")+ const isPdf = isPdfFile(file)+ const isText = isTextFile(file)+ const secondary = pdfInfo?.isExtracting+ ? "Reading..."+ : pdfInfo?.charCount+ ? `${formatCharCount(pdfInfo.charCount)} chars`+ : isPdf+ ? "PDF"+ : isText+ ? "Text"+ : ""+ return (+ <div key={file.name + index} className="group">+ <div+ className="flex items-center gap-2.5 w-[260px] max-w-full border rounded-lg overflow-hidden bg-background/70 px-3 py-2"+ >+ <div+ className={`h-11 w-11 rounded-md overflow-hidden bg-muted flex items-center justify-center ${+ isImage && imageUrl ? "cursor-pointer" : ""+ }`}+ onClick={() => {+ if (isImage && imageUrl) setSelectedImage(imageUrl)+ }}+ >+ {isImage && imageUrl ? (+ <img+ src={imageUrl}+ alt={file.name}+ className="object-cover w-full h-full"+ />+ ) : (+ <>+ {pdfInfo?.isExtracting ? (+ <Loader2 className="h-5 w-5 text-blue-500 animate-spin" />+ ) : isPdf ? (+ <FileText className="h-5 w-5 text-red-500" />+ ) : (+ <FileCode className="h-5 w-5 text-blue-500" />+ )}+ </>+ )}+ </div>++ <div className="min-w-0 flex-1">+ <div className="text-xs font-medium truncate">{file.name}</div>+ {secondary ? (+ <div className="text-[10px] text-muted-foreground truncate">+ {secondary}+ </div>+ ) : null}+ </div>++ <button+ type="button"+ onClick={() => onRemoveFile(file)}+ className="shrink-0 rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"+ aria-label="Remove file"+ >+ <X className="h-4 w-4" />+ </button>+ </div>+ </div>+ )+ })}+ </div>++ {/* Image Modal/Lightbox */}+ {selectedImage && (+ <div+ className="fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4"+ onClick={() => setSelectedImage(null)}+ >+ <button+ className="absolute top-4 right-4 z-10 bg-white rounded-full p-2 hover:bg-gray-200 transition-colors"+ onClick={() => setSelectedImage(null)}+ aria-label="Close"+ >+ <X className="h-6 w-6" />+ </button>+ <div className="relative w-auto h-auto max-w-[90vw] max-h-[90vh]">+ <img+ src={selectedImage}+ alt="Full size preview of uploaded diagram or image"+ className="object-contain max-w-full max-h-[90vh] w-auto h-auto"+ onClick={(e) => e.stopPropagation()}+ />+ </div>+ </div>+ )}+ </>+ )+}diff --git a/src/workspaces/ppt/chat/global-constraints-dialog.tsx b/src/workspaces/ppt/chat/global-constraints-dialog.tsxnew file mode 100644index 0000000..dcfdb13--- /dev/null+++ b/src/workspaces/ppt/chat/global-constraints-dialog.tsx@@ -0,0 +1,83 @@+import { useEffect, useState } from "react"+import { Button } from "@/workspaces/ppt/ui/button"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/ppt/ui/dialog"+import { Textarea } from "@/workspaces/ppt/ui/textarea"+import { useUiLanguage } from "@/lib/use-ui-language";+import { t } from "@/lib/i18n";++export const STORAGE_GLOBAL_CONSTRAINTS_KEY = "unified-ai-workspace-global-constraints"++interface GlobalConstraintsDialogProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ workspaceId?: string // Optional workspace ID to scope constraints+}++export function GlobalConstraintsDialog({+ open,+ onOpenChange,+ workspaceId+}: GlobalConstraintsDialogProps) {+ const [constraints, setConstraints] = useState("")+ const uiLang = useUiLanguage();++ // Determine the actual storage key+ const storageKey = workspaceId+ ? `${STORAGE_GLOBAL_CONSTRAINTS_KEY}-${workspaceId}`+ : STORAGE_GLOBAL_CONSTRAINTS_KEY;++ useEffect(() => {+ if (open) {+ const saved = localStorage.getItem(storageKey) || ""+ setConstraints(saved)+ }+ }, [open, storageKey])++ const handleSave = () => {+ localStorage.setItem(storageKey, constraints)+ onOpenChange(false)+ }++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="sm:max-w-[500px]">+ <DialogHeader>+ <DialogTitle>+ {t(uiLang, "constraints.title")} (+ {workspaceId === 'flow'+ ? (uiLang === "zh" ? '流程图' : 'Flow')+ : workspaceId === 'cad'+ ? (uiLang === "zh" ? 'CAD设计' : 'CAD')+ : workspaceId === 'ppt'+ ? (uiLang === "zh" ? 'PPT演示' : 'PPT')+ : (uiLang === "zh" ? '通用' : 'General')}+ )+ </DialogTitle>+ <DialogDescription>+ {t(uiLang, "constraints.desc")}+ </DialogDescription>+ </DialogHeader>+ <div className="grid gap-4 py-4">+ <Textarea+ value={constraints}+ onChange={(e) => setConstraints(e.target.value)}+ placeholder={t(uiLang, "constraints.placeholder")}+ className="min-h-[200px]"+ />+ </div>+ <DialogFooter>+ <Button onClick={handleSave}>+ {t(uiLang, "common.save")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/ppt/chat/history-dialog.tsx b/src/workspaces/ppt/chat/history-dialog.tsxnew file mode 100644index 0000000..036f891--- /dev/null+++ b/src/workspaces/ppt/chat/history-dialog.tsx@@ -0,0 +1,112 @@+import React from 'react';+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/ppt/ui/dialog"+import { Button } from '@/workspaces/ppt/ui/button';+import { Clock, RotateCcw, FileCode, Trash2 } from 'lucide-react';+import { ScrollArea } from '@/workspaces/ppt/ui/scroll-area';+import { useUiLanguage } from "@/lib/use-ui-language";+import { t } from "@/lib/i18n";++export interface HistoryItem {+ id: string;+ timestamp: number;+ content: string; // XML or code+ type: 'xml' | 'python' | 'json' | 'svg';+ summary?: string;+}++interface HistoryDialogProps {+ showHistory: boolean;+ onToggleHistory: (show: boolean) => void;+ history: HistoryItem[];+ onRestore: (item: HistoryItem) => void;+ onClear?: () => void;+}++export function HistoryDialog({+ showHistory,+ onToggleHistory,+ history,+ onRestore,+ onClear,+}: HistoryDialogProps) {+ const uiLang = useUiLanguage();+ const formatDate = (ts: number) => {+ return new Date(ts).toLocaleString();+ };++ return (+ <Dialog open={showHistory} onOpenChange={onToggleHistory}>+ <DialogContent className="max-w-md max-h-[80vh] flex flex-col">+ <DialogHeader>+ <div className="flex items-center justify-between gap-3">+ <DialogTitle className="flex items-center gap-2">+ <Clock className="w-5 h-5 text-muted-foreground" />+ {t(uiLang, "history.title")}+ </DialogTitle>+ {history.length > 0 && onClear && (+ <Button+ size="sm"+ variant="ghost"+ onClick={onClear}+ className="gap-1 text-xs"+ >+ <Trash2 className="w-3.5 h-3.5" />+ {t(uiLang, "history.clear")}+ </Button>+ )}+ </div>+ </DialogHeader>++ <div className="flex-1 overflow-hidden mt-2">+ {history.length === 0 ? (+ <div className="text-center p-8 text-muted-foreground text-sm flex flex-col items-center gap-2">+ <Clock className="w-8 h-8 opacity-20" />+ <p>{t(uiLang, "history.empty")}</p>+ </div>+ ) : (+ <ScrollArea className="h-[400px] pr-4">+ <div className="space-y-3">+ {[...history].reverse().map((item, index) => (+ <div key={item.id} className="p-3 rounded-lg border border-border/50 bg-muted/20 hover:bg-muted/40 transition-colors flex items-center justify-between group">+ <div className="flex flex-col gap-1 overflow-hidden">+ <div className="flex items-center gap-2 text-sm font-medium">+ <span className="w-6 h-6 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-600 flex items-center justify-center text-xs">+ {history.length - index}+ </span>+ <span>{formatDate(item.timestamp)}</span>+ </div>+ <div className="text-xs text-muted-foreground truncate pl-8 flex items-center gap-1">+ <FileCode className="w-3 h-3" />+ <span>{item.type.toUpperCase()}</span>+ <span>•</span>+ <span>{t(uiLang, "history.chars", { n: item.content.length })}</span>+ </div>+ </div>++ <Button+ size="sm"+ variant="ghost"+ onClick={() => {+ onRestore(item);+ onToggleHistory(false);+ }}+ className="opacity-0 group-hover:opacity-100 transition-opacity gap-1 text-xs"+ >+ <RotateCcw className="w-3 h-3" />+ {t(uiLang, "history.restore")}+ </Button>+ </div>+ ))}+ </div>+ </ScrollArea>+ )}+ </div>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/ppt/chat/reset-warning-modal.tsx b/src/workspaces/ppt/chat/reset-warning-modal.tsxnew file mode 100644index 0000000..d6a5c81--- /dev/null+++ b/src/workspaces/ppt/chat/reset-warning-modal.tsx@@ -0,0 +1,46 @@+import React from 'react';+import { Button } from "@/workspaces/ppt/ui/button"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/workspaces/ppt/ui/dialog"+import { t } from "@/lib/i18n";+import { useUiLanguage } from "@/lib/use-ui-language";++interface ResetWarningModalProps {+ open: boolean+ onOpenChange: (open: boolean) => void+ onClear: () => void+}++export function ResetWarningModal({+ open,+ onOpenChange,+ onClear,+}: ResetWarningModalProps) {+ const uiLang = useUiLanguage();+ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t(uiLang, "reset.title")}</DialogTitle>+ <DialogDescription>+ {t(uiLang, "reset.desc")}+ </DialogDescription>+ </DialogHeader>+ <DialogFooter>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t(uiLang, "common.cancel")}+ </Button>+ <Button variant="destructive" onClick={onClear}>+ {t(uiLang, "common.clear")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ )+}diff --git a/src/workspaces/ppt/ui/button.tsx b/src/workspaces/ppt/ui/button.tsxnew file mode 100644index 0000000..7313f95--- /dev/null+++ b/src/workspaces/ppt/ui/button.tsx@@ -0,0 +1,59 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ {+ variants: {+ variant: {+ default:+ "bg-primary text-primary-foreground shadow-xs hover:brightness-75",+ destructive:+ "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",+ secondary:+ "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",+ ghost:+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++function Button({+ className,+ variant,+ size,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean+ }) {+ const Comp = asChild ? Slot : "button"++ return (+ <Comp+ data-slot="button"+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Button, buttonVariants }diff --git a/src/workspaces/ppt/ui/code-block.tsx b/src/workspaces/ppt/ui/code-block.tsxnew file mode 100644index 0000000..9eab18f--- /dev/null+++ b/src/workspaces/ppt/ui/code-block.tsx@@ -0,0 +1,131 @@+import React, { useMemo, useRef, useState } from 'react';+import { Highlight, themes, type Language } from "prism-react-renderer";+import { ChevronRight, Loader2 } from 'lucide-react';+import { cn } from '@/lib/utils';++interface CodeBlockProps {+ code: string;+ language?: string;+ isStreaming?: boolean;+ blockId?: string;+}++const openStateById = new Map<string, boolean>();++export function CodeBlock({ code, language = "xml", isStreaming = false, blockId }: CodeBlockProps) {+ const [isOpen, setIsOpen] = useState(() => {+ if (blockId && openStateById.has(blockId)) return Boolean(openStateById.get(blockId));+ return false;+ });+ const preRef = useRef<HTMLPreElement | null>(null);+ const normalizedLanguage = useMemo(() => (language || "text").toLowerCase(), [language]);+ const normalizedCode = useMemo(() => String(code ?? ""), [code]);+ const prismLanguage = useMemo<Language>(() => {+ const lang = normalizedLanguage;+ if (lang === "svg") return "xml";+ if (lang === "yml") return "yaml";+ if (lang === "shell" || lang === "sh" || lang === "zsh") return "bash";+ if (lang === "ts") return "typescript";+ if (lang === "tsx") return "tsx";+ if (lang === "js") return "javascript";+ if (lang === "md") return "markdown";+ const allowed = new Set([+ "text",+ "xml",+ "json",+ "javascript",+ "typescript",+ "tsx",+ "jsx",+ "python",+ "bash",+ "yaml",+ "markdown",+ "css",+ "html",+ ]);+ if (allowed.has(lang)) return lang as Language;+ return "text";+ }, [normalizedLanguage]);++ const setOpen = (open: boolean) => {+ setIsOpen(open);+ if (blockId) openStateById.set(blockId, open);+ };++ return (+ <div className="w-full my-2 border border-border/50 rounded-lg bg-zinc-50 dark:bg-zinc-900/40 overflow-hidden shadow-sm">+ <button+ type="button"+ onClick={() => setOpen(!isOpen)}+ className="flex items-center gap-2 w-full p-2.5 cursor-pointer hover:bg-zinc-100 dark:hover:bg-zinc-800/40 transition-colors text-xs font-medium text-zinc-600 dark:text-zinc-300 select-none bg-zinc-100/70 dark:bg-zinc-900/60"+ >+ <ChevronRight className={cn("w-4 h-4 transition-transform duration-200 text-zinc-600 dark:text-zinc-300", isOpen && "rotate-90")} />++ <span className="uppercase font-semibold tracking-wider text-zinc-700 dark:text-zinc-200">{normalizedLanguage}</span>++ {isStreaming ? (+ <div className="flex items-center gap-2 ml-auto">+ <span className="text-[10px] text-blue-600 animate-pulse">Generating code...</span>+ <Loader2 className="w-3.5 h-3.5 animate-spin text-blue-600" />+ </div>+ ) : (+ <span className="ml-auto text-[10px] opacity-70 font-mono">{normalizedCode.length} chars</span>+ )}+ </button>++ {isOpen && (+ <div className="p-0 border-t border-border/50">+ <div className="overflow-hidden w-full bg-zinc-50 dark:bg-zinc-900/40">+ <Highlight theme={themes.github} code={normalizedCode} language={prismLanguage}>+ {({+ style,+ tokens,+ getLineProps,+ getTokenProps,+ }) => (+ <pre+ ref={preRef}+ className="text-[11px] leading-relaxed overflow-x-hidden overflow-y-auto overscroll-contain max-h-[500px] scrollbar-thin p-3 whitespace-pre-wrap break-words"+ style={{+ ...style,+ fontFamily: "var(--font-mono), ui-monospace, monospace",+ backgroundColor: "transparent",+ margin: 0,+ }}+ onWheelCapture={(e) => {+ const el = preRef.current;+ if (!el) return;+ const atTop = el.scrollTop <= 0;+ const atBottom = el.scrollTop + el.clientHeight >= el.scrollHeight - 1;+ const dy = e.deltaY;+ if (dy > 0 && !atBottom) e.stopPropagation();+ if (dy < 0 && !atTop) e.stopPropagation();+ }}+ >+ {tokens.map((line, i) => {+ const lineProps = getLineProps({ line });+ return (+ <div+ key={i}+ {...lineProps}+ className={cn("grid grid-cols-[3.25rem_1fr] gap-0", lineProps?.className)}+ >+ <span className="select-none text-zinc-400 text-right pr-4">{i + 1}</span>+ <span className="min-w-0 whitespace-pre-wrap break-words">+ {line.map((token, key) => (+ <span key={key} {...getTokenProps({ token })} />+ ))}+ </span>+ </div>+ );+ })}+ </pre>+ )}+ </Highlight>+ </div>+ </div>+ )}+ </div>+ );+}diff --git a/src/workspaces/ppt/ui/collapsible.tsx b/src/workspaces/ppt/ui/collapsible.tsxnew file mode 100644index 0000000..9fa4894--- /dev/null+++ b/src/workspaces/ppt/ui/collapsible.tsx@@ -0,0 +1,11 @@+"use client"++import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"++const Collapsible = CollapsiblePrimitive.Root++const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger++const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent++export { Collapsible, CollapsibleTrigger, CollapsibleContent }diff --git a/src/workspaces/ppt/ui/context-menu.tsx b/src/workspaces/ppt/ui/context-menu.tsxnew file mode 100644index 0000000..3e52999--- /dev/null+++ b/src/workspaces/ppt/ui/context-menu.tsx@@ -0,0 +1,198 @@+import * as React from "react"+import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"+import { Check, ChevronRight, Circle } from "lucide-react"++import { cn } from "@/lib/utils"++const ContextMenu = ContextMenuPrimitive.Root++const ContextMenuTrigger = ContextMenuPrimitive.Trigger++const ContextMenuGroup = ContextMenuPrimitive.Group++const ContextMenuPortal = ContextMenuPrimitive.Portal++const ContextMenuSub = ContextMenuPrimitive.Sub++const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup++const ContextMenuSubTrigger = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {+ inset?: boolean+ }+>(({ className, inset, children, ...props }, ref) => (+ <ContextMenuPrimitive.SubTrigger+ ref={ref}+ className={cn(+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",+ inset && "pl-8",+ className+ )}+ {...props}+ >+ {children}+ <ChevronRight className="ml-auto h-4 w-4" />+ </ContextMenuPrimitive.SubTrigger>+))+ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName++const ContextMenuSubContent = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.SubContent>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>+>(({ className, ...props }, ref) => (+ <ContextMenuPrimitive.SubContent+ ref={ref}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName++const ContextMenuContent = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>+>(({ className, ...props }, ref) => (+ <ContextMenuPrimitive.Portal>+ <ContextMenuPrimitive.Content+ ref={ref}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+ </ContextMenuPrimitive.Portal>+))+ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName++const ContextMenuItem = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <ContextMenuPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName++const ContextMenuCheckboxItem = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>+>(({ className, children, checked, ...props }, ref) => (+ <ContextMenuPrimitive.CheckboxItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <ContextMenuPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </ContextMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </ContextMenuPrimitive.CheckboxItem>+))+ContextMenuCheckboxItem.displayName =+ ContextMenuPrimitive.CheckboxItem.displayName++const ContextMenuRadioItem = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>+>(({ className, children, ...props }, ref) => (+ <ContextMenuPrimitive.RadioItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <ContextMenuPrimitive.ItemIndicator>+ <Circle className="h-2 w-2 fill-current" />+ </ContextMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </ContextMenuPrimitive.RadioItem>+))+ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName++const ContextMenuLabel = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <ContextMenuPrimitive.Label+ ref={ref}+ className={cn(+ "px-2 py-1.5 text-sm font-semibold text-foreground",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName++const ContextMenuSeparator = React.forwardRef<+ React.ElementRef<typeof ContextMenuPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <ContextMenuPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 my-1 h-px bg-border", className)}+ {...props}+ />+))+ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName++const ContextMenuShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn(+ "ml-auto text-xs tracking-widest text-muted-foreground",+ className+ )}+ {...props}+ />+ )+}+ContextMenuShortcut.displayName = "ContextMenuShortcut"++export {+ ContextMenu,+ ContextMenuTrigger,+ ContextMenuContent,+ ContextMenuItem,+ ContextMenuCheckboxItem,+ ContextMenuRadioItem,+ ContextMenuLabel,+ ContextMenuSeparator,+ ContextMenuShortcut,+ ContextMenuGroup,+ ContextMenuPortal,+ ContextMenuSub,+ ContextMenuSubContent,+ ContextMenuSubTrigger,+ ContextMenuRadioGroup,+}diff --git a/src/workspaces/ppt/ui/dialog.tsx b/src/workspaces/ppt/ui/dialog.tsxnew file mode 100644index 0000000..0245804--- /dev/null+++ b/src/workspaces/ppt/ui/dialog.tsx@@ -0,0 +1,135 @@+"use client"++import * as React from "react"+import * as DialogPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className+ )}+ {...props}+ />+ )+}++function DialogContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content>) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",+ className+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+ )+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ )+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className+ )}+ {...props}+ />+ )+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("text-lg leading-none font-semibold", className)}+ {...props}+ />+ )+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+}diff --git a/src/workspaces/ppt/ui/input.tsx b/src/workspaces/ppt/ui/input.tsxnew file mode 100644index 0000000..9fe885f--- /dev/null+++ b/src/workspaces/ppt/ui/input.tsx@@ -0,0 +1,21 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ className+ )}+ {...props}+ />+ )+}++export { Input }diff --git a/src/workspaces/ppt/ui/label.tsx b/src/workspaces/ppt/ui/label.tsxnew file mode 100644index 0000000..fb5fbc3--- /dev/null+++ b/src/workspaces/ppt/ui/label.tsx@@ -0,0 +1,24 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"++import { cn } from "@/lib/utils"++function Label({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",+ className+ )}+ {...props}+ />+ )+}++export { Label }diff --git a/src/workspaces/ppt/ui/resizable.tsx b/src/workspaces/ppt/ui/resizable.tsxnew file mode 100644index 0000000..73c6e45--- /dev/null+++ b/src/workspaces/ppt/ui/resizable.tsx@@ -0,0 +1,44 @@+import { GripVertical } from "lucide-react"+import { Panel, Group, Separator, type PanelImperativeHandle } from "react-resizable-panels"++import { cn } from "@/lib/utils"++const ResizablePanelGroup = ({+ className,+ ...props+}: React.ComponentProps<typeof Group>) => (+ <Group+ className={cn(+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",+ className+ )}+ {...props}+ />+)++const ResizablePanel = Panel++const ResizableHandle = ({+ withHandle,+ className,+ ...props+}: React.ComponentProps<typeof Separator> & {+ withHandle?: boolean+}) => (+ <Separator+ className={cn(+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",+ className+ )}+ {...props}+ >+ {withHandle && (+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">+ <GripVertical className="h-2.5 w-2.5" />+ </div>+ )}+ </Separator>+)++export { ResizablePanelGroup, ResizablePanel, ResizableHandle }+export type { PanelImperativeHandle }diff --git a/src/workspaces/ppt/ui/scroll-area.tsx b/src/workspaces/ppt/ui/scroll-area.tsxnew file mode 100644index 0000000..677c344--- /dev/null+++ b/src/workspaces/ppt/ui/scroll-area.tsx@@ -0,0 +1,58 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/lib/utils"++function ScrollArea({+ className,+ children,+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {+ return (+ <ScrollAreaPrimitive.Root+ data-slot="scroll-area"+ className={cn("relative", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport+ data-slot="scroll-area-viewport"+ className="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden"+ >+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+ )+}++function ScrollBar({+ className,+ orientation = "vertical",+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {+ return (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ data-slot="scroll-area-scrollbar"+ orientation={orientation}+ className={cn(+ "flex touch-none p-px transition-colors select-none",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb+ data-slot="scroll-area-thumb"+ className="bg-border relative flex-1 rounded-full"+ />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+ )+}++export { ScrollArea, ScrollBar }diff --git a/src/workspaces/ppt/ui/select.tsx b/src/workspaces/ppt/ui/select.tsxnew file mode 100644index 0000000..16f25f9--- /dev/null+++ b/src/workspaces/ppt/ui/select.tsx@@ -0,0 +1,187 @@+"use client"++import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Select({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />+}++function SelectGroup({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />+}++function SelectValue({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />+}++function SelectTrigger({+ className,+ size = "default",+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: "sm" | "default"+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ )+}++function SelectContent({+ className,+ children,+ position = "popper",+ align = "center",+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[var(--radix-select-content-available-height)] min-w-[8rem] origin-[var(--radix-select-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className+ )}+ position={position}+ align={align}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ )+}++function SelectLabel({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}+ {...props}+ />+ )+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className+ )}+ {...props}+ >+ <span className="absolute right-2 flex size-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ )+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}+ {...props}+ />+ )+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ )+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ )+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+}diff --git a/src/workspaces/ppt/ui/textarea.tsx b/src/workspaces/ppt/ui/textarea.tsxnew file mode 100644index 0000000..f2ab8f2--- /dev/null+++ b/src/workspaces/ppt/ui/textarea.tsx@@ -0,0 +1,18 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {+ return (+ <textarea+ data-slot="textarea"+ className={cn(+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ className+ )}+ {...props}+ />+ )+}++export { Textarea }diff --git a/src/workspaces/ppt/ui/tooltip.tsx b/src/workspaces/ppt/ui/tooltip.tsxnew file mode 100644index 0000000..30fc44d--- /dev/null+++ b/src/workspaces/ppt/ui/tooltip.tsx@@ -0,0 +1,30 @@+"use client"++import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"++import { cn } from "@/lib/utils"++const TooltipProvider = TooltipPrimitive.Provider++const Tooltip = TooltipPrimitive.Root++const TooltipTrigger = TooltipPrimitive.Trigger++const TooltipContent = React.forwardRef<+ React.ElementRef<typeof TooltipPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <TooltipPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+TooltipContent.displayName = TooltipPrimitive.Content.displayName++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/src/workspaces/ppt/workspace/PptWorkspace.tsx b/src/workspaces/ppt/workspace/PptWorkspace.tsxnew file mode 100644index 0000000..0c2f259--- /dev/null+++ b/src/workspaces/ppt/workspace/PptWorkspace.tsx@@ -0,0 +1,2101 @@+import React, { useState, useEffect, useRef } from 'react';+import { motion } from "framer-motion";+import { generateImage } from '@/lib/ai-client';+import { pptService, PptPage } from '@/lib/ppt-service';+import { getTemplateGenerationPrompt } from '@/lib/ppt-prompts';+import { Loader2, Plus, Image as ImageIcon, MessageSquarePlus, Upload, Presentation, Sparkles, Check, Play, FileText, Download, Lightbulb, X, ArrowLeft, ArrowRight } from 'lucide-react';+import {+ ContextMenu,+ ContextMenuContent,+ ContextMenuItem,+ ContextMenuTrigger,+} from "@/workspaces/ppt/ui/context-menu";+import { Button } from "@/workspaces/ppt/ui/button";+import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/workspaces/ppt/ui/dialog";+import { Textarea } from "@/workspaces/ppt/ui/textarea";+import { useUiLanguage } from "@/lib/use-ui-language";++interface SlideData {+ id: string;+ title: string;+ content: string[];+ note?: string;+ layout?: string;+ description?: string; // Add description support+}++interface PptData {+ theme?: string;+ slides: SlideData[];+}++interface PptWorkspaceProps {+ data?: PptData;+ onAddToChat?: (json: string, name: string) => void;+ onPptReadyChange?: (ready: boolean) => void;+ onPptStageChange?: (stage: "outline" | "slides") => void;+ incomingEdit?: { id: string; payload: string } | null;+ onIncomingEditHandled?: (id: string) => void;+ onResetWorkspace?: () => void;+}++type CreationStep = 'idle' | 'input' | 'outline' | 'generating_content' | 'generating_images' | 'done';+type CreationMode = 'idea' | 'outline' | 'description' | 'beautify';+type ReferenceFile = { id: string; filename: string; content: string; charCount: number };++type PresetTemplate = { id: string; zhName: string; enName: string; path: string };+type UploadTemplate = { id: string; name: string; dataUrl: string };+type TemplateItem =+ | { id: string; name: string; kind: "preset"; previewSrc: string; presetPath: string }+ | { id: string; name: string; kind: "upload"; previewSrc: string; dataUrl: string };++const PPT_TEMPLATE_UPLOADS_KEY = "ppt_template_uploads_v1";+const PPT_TEMPLATE_HIDDEN_PRESETS_KEY = "ppt_template_hidden_presets_v1";+const PPT_WORKSPACE_STORAGE_KEY = "unified-ai-workspace-ppt-state-v1";++const PRESET_TEMPLATES: PresetTemplate[] = [+ { id: "preset-tech-business", zhName: "科技商务", enName: "Tech Business", path: "/templates/template_b.png" },+ { id: "preset-academic", zhName: "学术汇报", enName: "Academic", path: "/templates/template_academic.jpg" },+ { id: "preset-minimal", zhName: "极简主义", enName: "Minimal", path: "/templates/template_s.png" },+ { id: "preset-vector", zhName: "矢量插画", enName: "Vector Illustration", path: "/templates/template_vector_illustration.png" },+ { id: "preset-yellow", zhName: "活力黄", enName: "Vibrant Yellow", path: "/templates/template_y.png" },+ { id: "preset-glass", zhName: "磨砂玻璃", enName: "Frosted Glass", path: "/templates/template_glass.png" },+];++const MODEL_CONCURRENCY = 30;++export function PptWorkspace({ data, onAddToChat, onPptReadyChange, onPptStageChange, incomingEdit, onIncomingEditHandled, onResetWorkspace }: PptWorkspaceProps) {+ const uiLang = useUiLanguage();+ const tr = (zh: string, en: string) => (uiLang === "zh" ? zh : en);+ const initialPptState = (() => {+ if (typeof window === "undefined") return null;+ try {+ const raw = localStorage.getItem(PPT_WORKSPACE_STORAGE_KEY);+ const parsed = raw ? JSON.parse(raw) : null;+ if (!parsed || typeof parsed !== "object") return null;+ return parsed as any;+ } catch {+ return null;+ }+ })();++ // If data is provided by AI, use it. Otherwise maintain local state for demo.+ const [localSlides, setLocalSlides] = useState<SlideData[]>(() => {+ const v = initialPptState?.localSlides;+ if (!Array.isArray(v)) return [];+ return v+ .filter((s: any) => s && typeof s.id === "string")+ .map((s: any) => ({+ id: String(s.id),+ title: typeof s.title === "string" ? s.title : "",+ content: Array.isArray(s.content) ? s.content.filter((x: any) => typeof x === "string") : [],+ note: typeof s.note === "string" ? s.note : undefined,+ layout: typeof s.layout === "string" ? s.layout : undefined,+ description: typeof s.description === "string" ? s.description : undefined,+ }));+ });+ const [currentSlideIndex, setCurrentSlideIndex] = useState(() => {+ const v = initialPptState?.currentSlideIndex;+ return typeof v === "number" && Number.isFinite(v) ? Math.max(0, Math.floor(v)) : 0;+ });+ const [templateImage, setTemplateImage] = useState<string | null>(null);+ const [selectedTemplateId, setSelectedTemplateId] = useState<string | null>(() => {+ const v = initialPptState?.selectedTemplateId;+ return typeof v === "string" ? v : null;+ });+ const [uploadedTemplates, setUploadedTemplates] = useState<UploadTemplate[]>(() => {+ if (typeof window === "undefined") return [];+ try {+ const raw = localStorage.getItem(PPT_TEMPLATE_UPLOADS_KEY);+ const parsed = raw ? JSON.parse(raw) : [];+ if (!Array.isArray(parsed)) return [];+ return parsed+ .filter((x: any) => x && typeof x.id === "string" && typeof x.name === "string" && typeof x.dataUrl === "string")+ .map((x: any) => ({ id: x.id, name: x.name, dataUrl: x.dataUrl }));+ } catch {+ return [];+ }+ });+ const [templateGeneratorOpen, setTemplateGeneratorOpen] = useState(false);+ const [templateGeneratorRequirement, setTemplateGeneratorRequirement] = useState("");+ const [templateGeneratorIsGenerating, setTemplateGeneratorIsGenerating] = useState(false);+ const [hiddenPresetTemplateIds, setHiddenPresetTemplateIds] = useState<string[]>(() => {+ if (typeof window === "undefined") return [];+ try {+ const raw = localStorage.getItem(PPT_TEMPLATE_HIDDEN_PRESETS_KEY);+ const parsed = raw ? JSON.parse(raw) : [];+ return Array.isArray(parsed) ? parsed.map((x: any) => String(x)) : [];+ } catch {+ return [];+ }+ });+ const [generatedImages, setGeneratedImages] = useState<Record<string, string>>(() => {+ const v = initialPptState?.generatedImages;+ if (!v || typeof v !== "object" || Array.isArray(v)) return {};+ const out: Record<string, string> = {};+ for (const [k, val] of Object.entries(v)) {+ if (typeof k === "string" && typeof val === "string") out[k] = val;+ }+ return out;+ });+ const [imageVersions, setImageVersions] = useState<Record<string, Array<{ id: string; url: string; timestamp: number; type: 'generated' | 'edited'; instruction?: string }>>>(() => {+ const v = initialPptState?.imageVersions;+ if (!v || typeof v !== "object" || Array.isArray(v)) return {};+ const out: Record<string, Array<{ id: string; url: string; timestamp: number; type: 'generated' | 'edited'; instruction?: string }>> = {};+ for (const [k, val] of Object.entries(v)) {+ if (typeof k !== "string" || !Array.isArray(val)) continue;+ out[k] = val+ .filter((x: any) => x && typeof x.id === "string" && typeof x.url === "string" && typeof x.timestamp === "number" && (x.type === "generated" || x.type === "edited"))+ .map((x: any) => ({+ id: x.id,+ url: x.url,+ timestamp: x.timestamp,+ type: x.type,+ instruction: typeof x.instruction === "string" ? x.instruction : undefined,+ }));+ }+ return out;+ });+ const [currentImageVersionId, setCurrentImageVersionId] = useState<Record<string, string>>(() => {+ const v = initialPptState?.currentImageVersionId;+ if (!v || typeof v !== "object" || Array.isArray(v)) return {};+ const out: Record<string, string> = {};+ for (const [k, val] of Object.entries(v)) {+ if (typeof k === "string" && typeof val === "string") out[k] = val;+ }+ return out;+ });+ const [isGeneratingImage, setIsGeneratingImage] = useState(false);+ const [isExporting, setIsExporting] = useState<null | "pptx" | "pdf">(null);++ // Creation Wizard State+ const [creationStep, setCreationStep] = useState<CreationStep>(() => {+ const v = initialPptState?.creationStep;+ if (v === "idle" || v === "input" || v === "outline" || v === "done") return v;+ return localSlides.length > 0 ? "done" : "idle";+ });+ useEffect(() => {+ onPptStageChange?.(creationStep === "done" ? "slides" : "outline");+ }, [creationStep, onPptStageChange]);+ const [creationMode, setCreationMode] = useState<CreationMode>(() => {+ const v = initialPptState?.creationMode;+ return v === "idea" || v === "outline" || v === "description" || v === "beautify" ? v : "idea";+ });+ const [ideaInput, setIdeaInput] = useState(() => (typeof initialPptState?.ideaInput === "string" ? initialPptState.ideaInput : ""));+ const [outlineInput, setOutlineInput] = useState(() => (typeof initialPptState?.outlineInput === "string" ? initialPptState.outlineInput : ""));+ const [descriptionInput, setDescriptionInput] = useState(() => (typeof initialPptState?.descriptionInput === "string" ? initialPptState.descriptionInput : ""));+ const [beautifyRequirement, setBeautifyRequirement] = useState(() => (typeof initialPptState?.beautifyRequirement === "string" ? initialPptState.beautifyRequirement : ""));+ const [beautifyFile, setBeautifyFile] = useState<File | null>(null);+ const [referenceFiles, setReferenceFiles] = useState<ReferenceFile[]>([]);+ const [isParsingReferenceFiles, setIsParsingReferenceFiles] = useState(false);+ const [referencePreviewOpen, setReferencePreviewOpen] = useState(false);+ const [referencePreviewFile, setReferencePreviewFile] = useState<ReferenceFile | null>(null);+ const [progress, setProgress] = useState({ current: 0, total: 0, message: "" });+ const referenceFileInputRef = useRef<HTMLInputElement | null>(null);+ const beautifyFileInputRef = useRef<HTMLInputElement | null>(null);+ const [slideshowOpen, setSlideshowOpen] = useState(false);+ const [slideshowIndex, setSlideshowIndex] = useState(0);+ const [windowDimensions, setWindowDimensions] = useState({ width: 0, height: 0 });++ const templates: TemplateItem[] = [+ ...PRESET_TEMPLATES+ .filter((t) => !hiddenPresetTemplateIds.includes(t.id))+ .map((t) => ({ id: t.id, name: uiLang === "zh" ? t.zhName : t.enName, kind: "preset" as const, previewSrc: t.path, presetPath: t.path })),+ ...uploadedTemplates.map((t) => ({ id: t.id, name: t.name, kind: "upload" as const, previewSrc: t.dataUrl, dataUrl: t.dataUrl })),+ ];++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ localStorage.setItem(PPT_TEMPLATE_UPLOADS_KEY, JSON.stringify(uploadedTemplates));+ } catch {+ }+ }, [uploadedTemplates]);++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ localStorage.setItem(PPT_TEMPLATE_HIDDEN_PRESETS_KEY, JSON.stringify(hiddenPresetTemplateIds));+ } catch {+ }+ }, [hiddenPresetTemplateIds]);++ useEffect(() => {+ if (typeof window === "undefined") return;+ try {+ localStorage.setItem(+ PPT_WORKSPACE_STORAGE_KEY,+ JSON.stringify({+ localSlides,+ currentSlideIndex,+ selectedTemplateId,+ generatedImages,+ imageVersions,+ currentImageVersionId,+ creationStep,+ creationMode,+ ideaInput,+ outlineInput,+ descriptionInput,+ beautifyRequirement,+ updatedAt: Date.now(),+ })+ );+ } catch {+ }+ }, [+ localSlides,+ currentSlideIndex,+ selectedTemplateId,+ generatedImages,+ imageVersions,+ currentImageVersionId,+ creationStep,+ creationMode,+ ideaInput,+ outlineInput,+ descriptionInput,+ beautifyRequirement,+ ]);++ useEffect(() => {+ onPptReadyChange?.(localSlides.length > 0);+ }, [localSlides.length]);++ useEffect(() => {+ if (typeof window === "undefined") return;+ const handleResize = () => {+ setWindowDimensions({ width: window.innerWidth, height: window.innerHeight });+ };+ window.addEventListener('resize', handleResize);+ handleResize();+ return () => window.removeEventListener('resize', handleResize);+ }, []);++ const getSlideshowDimensions = () => {+ if (!windowDimensions.width) return { width: '90vw', height: '50.625vw' }; // Fallback+ const maxWidth = windowDimensions.width * 0.9;+ const maxHeight = windowDimensions.height * 0.85;++ let w = maxWidth;+ let h = w * 9 / 16;++ if (h > maxHeight) {+ h = maxHeight;+ w = h * 16 / 9;+ }+ return { width: w, height: h };+ };++ const setTemplateFromItem = async (item: TemplateItem) => {+ setSelectedTemplateId(item.id);+ if (item.kind === "upload") {+ setTemplateImage(item.dataUrl);+ return;+ }+ try {+ const response = await fetch(item.presetPath);+ const blob = await response.blob();+ const reader = new FileReader();+ reader.onloadend = () => {+ setTemplateImage(reader.result as string);+ };+ reader.readAsDataURL(blob);+ } catch (e) {+ console.error("Failed to load template", e);+ }+ };++ useEffect(() => {+ if (templates.length === 0) {+ setSelectedTemplateId(null);+ setTemplateImage(null);+ return;+ }+ const selected = selectedTemplateId ? templates.find((t) => t.id === selectedTemplateId) : null;+ if (!selected) {+ void setTemplateFromItem(templates[0]);+ return;+ }+ if (!templateImage) {+ void setTemplateFromItem(selected);+ return;+ }+ if (selected.kind === "upload" && templateImage !== selected.dataUrl) {+ setTemplateImage(selected.dataUrl);+ }+ }, [selectedTemplateId, templateImage, hiddenPresetTemplateIds.join("|"), uploadedTemplates.map((t) => t.id).join("|")]);++ const addUploadedTemplates = async (files: File[]) => {+ const imageFiles = Array.from(files || []).filter((f) => f && f.type.startsWith("image/"));+ if (imageFiles.length === 0) return;+ const toDataUrl = (file: File) =>+ new Promise<string>((resolve, reject) => {+ const reader = new FileReader();+ reader.onload = () => resolve(reader.result as string);+ reader.onerror = reject;+ reader.readAsDataURL(file);+ });+ const baseName = (name: string) => String(name || "").replace(/\.[^.]+$/, "") || tr("模板", "Template");++ const created: UploadTemplate[] = [];+ for (const f of imageFiles) {+ try {+ const dataUrl = await toDataUrl(f);+ const id = `upload-${Date.now()}-${Math.random().toString(16).slice(2)}`;+ const name = baseName(f.name);+ created.push({ id, name, dataUrl });+ } catch (e) {+ console.error("Failed to read template image", e);+ }+ }+ if (created.length === 0) return;+ setUploadedTemplates((prev) => [...prev, ...created]);+ const last = created[created.length - 1];+ setSelectedTemplateId(last.id);+ setTemplateImage(last.dataUrl);+ };++ const handleTemplateUploadInputChange = async (e: React.ChangeEvent<HTMLInputElement>) => {+ const files = Array.from(e.target.files || []);+ e.target.value = "";+ await addUploadedTemplates(files);+ };++ const addGeneratedTemplate = (dataUrl: string) => {+ const id = `generated-${Date.now()}-${Math.random().toString(16).slice(2)}`;+ const name = `${tr("AI模板", "AI Template")}-${Date.now()}`;+ const created: UploadTemplate = { id, name, dataUrl };+ setUploadedTemplates((prev) => [...prev, created]);+ setSelectedTemplateId(created.id);+ setTemplateImage(created.dataUrl);+ };++ const handleGenerateTemplate = async () => {+ const requirement = templateGeneratorRequirement.trim();+ if (!requirement) {+ alert(tr("请输入模板需求", "Please enter template requirements."));+ return;+ }+ setTemplateGeneratorIsGenerating(true);+ try {+ const prompt = getTemplateGenerationPrompt({ requirements: requirement, language: uiLang });+ const imageUrl = await generateImage({ prompt });+ if (!imageUrl) {+ alert(tr("模板生成失败,请重试", "Template generation failed. Please retry."));+ return;+ }+ addGeneratedTemplate(imageUrl);+ setTemplateGeneratorRequirement("");+ setTemplateGeneratorOpen(false);+ } catch (e: any) {+ console.error("Template generation failed", e);+ alert(tr("模板生成失败,请重试", "Template generation failed. Please retry."));+ } finally {+ setTemplateGeneratorIsGenerating(false);+ }+ };++ const deleteTemplate = (item: TemplateItem) => {+ if (item.kind === "preset") {+ setHiddenPresetTemplateIds((prev) => (prev.includes(item.id) ? prev : [...prev, item.id]));+ return;+ }+ setUploadedTemplates((prev) => prev.filter((t) => t.id !== item.id));+ };++ const [isApplyingEdits, setIsApplyingEdits] = useState(false);++ useEffect(() => {+ if (data && data.slides && data.slides.length > 0) {+ setLocalSlides(data.slides);+ // Reset to first slide if new data comes in+ if (data.slides) {+ setCurrentSlideIndex(0);+ }+ setCreationStep('done');+ onPptReadyChange?.(true);+ }+ }, [data]);++ const applyIncomingSlideEdits = async (payload: string) => {+ let parsed: any;+ try {+ parsed = JSON.parse(payload);+ } catch {+ return;+ }++ const incomingSlides: any[] | null = Array.isArray(parsed?.slides)+ ? parsed.slides+ : Array.isArray(parsed)+ ? parsed+ : null;++ if (!incomingSlides || incomingSlides.length === 0) return;+ const uploadedImages: string[] = Array.isArray(parsed?.uploadedImages) ? parsed.uploadedImages : [];++ const mergedSlides: SlideData[] = (() => {+ const existing = localSlides.length > 0 ? [...localSlides] : [];+ const byId = new Map(existing.map((s) => [s.id, s] as const));+ const order: string[] = existing.map((s) => s.id);++ for (const inc of incomingSlides) {+ const id = String(inc?.id || "");+ if (!id) continue;+ const next: SlideData = {+ id,+ title: typeof inc?.title === "string" ? inc.title : (byId.get(id)?.title || tr("幻灯片", "Slide")),+ content: Array.isArray(inc?.content) ? inc.content.map((x: any) => String(x)) : (byId.get(id)?.content || []),+ description: typeof inc?.description === "string" ? inc.description : byId.get(id)?.description,+ note: typeof inc?.note === "string" ? inc.note : byId.get(id)?.note,+ layout: typeof inc?.layout === "string" ? inc.layout : byId.get(id)?.layout,+ };+ byId.set(id, next);+ if (!order.includes(id)) order.push(id);+ }++ return order.map((id) => byId.get(id)!).filter(Boolean);+ })();++ setLocalSlides(mergedSlides);+ const allowImageEdits = creationStep === 'done';++ const editTasks: Array<() => Promise<void>> = [];+ for (const inc of incomingSlides) {+ const id = String(inc?.id || "");+ if (!id) continue;+ const incomingImageUrl = typeof inc?.imageUrl === "string" ? inc.imageUrl : "";+ const instruction = typeof inc?.imageEditInstruction === "string"+ ? inc.imageEditInstruction+ : typeof inc?.instruction === "string"+ ? inc.instruction+ : "";++ const slide = mergedSlides.find((s) => s.id === id);+ if (!slide) continue;++ if (allowImageEdits && incomingImageUrl.trim()) {+ pushImageVersion(id, incomingImageUrl, 'edited', instruction.trim() ? instruction : undefined);+ continue;+ }++ if (!allowImageEdits || !instruction.trim()) continue;+ editTasks.push(async () => {+ const versions = imageVersions[id] || [];+ const currentVersion = currentImageVersionId[id];+ const currentUrl = currentVersion ? versions.find(v => v.id === currentVersion)?.url : generatedImages[id];+ if (!currentUrl) return;++ const page: PptPage = {+ id,+ title: slide.title,+ content: slide.content || [],+ description: slide.description+ };+ const editedUrl = await pptService.editPageImage(+ page,+ instruction,+ currentUrl || undefined,+ templateImage || undefined,+ uploadedImages+ );+ if (editedUrl) {+ pushImageVersion(id, editedUrl, 'edited', instruction);+ }+ });+ }++ if (editTasks.length > 0) {+ setIsApplyingEdits(true);+ try {+ await runInParallel(editTasks, MODEL_CONCURRENCY);+ } catch (e) {+ console.error("Failed to apply image edits", e);+ } finally {+ setIsApplyingEdits(false);+ }+ }+ };++ useEffect(() => {+ if (!incomingEdit?.payload) return;+ const id = incomingEdit.id;+ Promise.resolve(applyIncomingSlideEdits(incomingEdit.payload))+ .catch((e) => {+ console.error("Failed to apply incoming slide edits", e);+ })+ .finally(() => {+ if (id) onIncomingEditHandled?.(id);+ });+ }, [incomingEdit?.id]);++ const activeSlides = localSlides.length > 0 ? localSlides : [];+ const currentSlide = activeSlides[currentSlideIndex];+ const getSlideImageUrl = (slideId: string) => {+ const versions = imageVersions[slideId] || [];+ const currentVersion = currentImageVersionId[slideId];+ const v = currentVersion ? versions.find((x) => x.id === currentVersion) : undefined;+ return v?.url || generatedImages[slideId] || "";+ };+ const currentSlideImage = currentSlide ? getSlideImageUrl(currentSlide.id) : "";++ useEffect(() => {+ if (!slideshowOpen) return;+ setSlideshowIndex(currentSlideIndex);+ }, [slideshowOpen]);++ const pushImageVersion = (slideId: string, url: string, type: 'generated' | 'edited', instruction?: string) => {+ const versionId = `v-${Date.now()}-${Math.random().toString(16).slice(2)}`;+ setImageVersions(prev => ({+ ...prev,+ [slideId]: [+ ...(prev[slideId] || []),+ { id: versionId, url, timestamp: Date.now(), type, instruction }+ ]+ }));+ setCurrentImageVersionId(prev => ({ ...prev, [slideId]: versionId }));+ setGeneratedImages(prev => ({ ...prev, [slideId]: url }));+ };++ const addReferenceFiles = async (files: File[]) => {+ if (!files.length) return;+ setIsParsingReferenceFiles(true);+ try {+ const { extractPdfText, extractTextFileContent, isPdfFile, isTextFile } = await import('@/lib/pdf-utils');+ const nextItems: ReferenceFile[] = [];++ for (const file of files) {+ try {+ let content = "";+ if (isPdfFile(file)) {+ content = await extractPdfText(file);+ } else if (isTextFile(file)) {+ content = await extractTextFileContent(file);+ } else {+ continue;+ }++ const clipped = String(content || "").slice(0, 150000);+ nextItems.push({+ id: `ref-${Date.now()}-${Math.random().toString(16).slice(2)}`,+ filename: file.name,+ content: clipped,+ charCount: clipped.length+ });+ } catch (e) {+ console.error("Failed to parse reference file", file.name, e);+ }+ }++ if (nextItems.length > 0) {+ setReferenceFiles((prev) => [...prev, ...nextItems]);+ }+ } finally {+ setIsParsingReferenceFiles(false);+ }+ };++ const handleReferenceFileInputChange = async (e: React.ChangeEvent<HTMLInputElement>) => {+ const files = Array.from(e.target.files || []);+ e.target.value = "";+ await addReferenceFiles(files);+ };++ const openReferencePreview = (file: ReferenceFile) => {+ setReferencePreviewFile(file);+ setReferencePreviewOpen(true);+ };++ const resetGenerationState = () => {+ console.log("Resetting generation state...");+ setGeneratedImages({});+ setImageVersions({});+ setCurrentImageVersionId({});+ setCurrentSlideIndex(0);+ };++ const extractJsonArray = (text: string) => {+ const match = text.match(/\[[\s\S]*\]/);+ return match ? match[0] : null;+ };++ const parseSlides = (raw: string): SlideData[] | null => {+ const trimmed = raw.trim();+ if (!trimmed) return null;++ const jsonArrayText = extractJsonArray(trimmed);+ if (jsonArrayText) {+ try {+ const parsed = JSON.parse(jsonArrayText);+ if (Array.isArray(parsed)) {+ return parsed.map((it: any, i: number) => ({+ id: String(it.id || `slide-${i}`),+ title: String(it.title || tr(`第 ${i + 1} 页`, `Slide ${i + 1}`)),+ content: Array.isArray(it.content) ? it.content.map((x: any) => String(x)) : [],+ description: typeof it.description === "string" ? it.description : undefined,+ note: typeof it.note === "string" ? it.note : undefined,+ layout: typeof it.layout === "string" ? it.layout : undefined+ }));+ }+ } catch {+ }+ }++ const lines = trimmed.split(/\r?\n/);+ const slides: SlideData[] = [];+ let current: SlideData | null = null;++ const pushCurrent = () => {+ if (current) slides.push(current);+ current = null;+ };++ for (const line of lines) {+ const l = line.trim();+ if (!l) continue;+ const heading = l.match(/^(#{1,3})\s+(.*)$/);+ if (heading) {+ pushCurrent();+ current = {+ id: `slide-${slides.length + 1}`,+ title: heading[2].trim() || tr(`第 ${slides.length + 1} 页`, `Slide ${slides.length + 1}`),+ content: []+ };+ continue;+ }+ const bullet = l.match(/^[-•]\s+(.*)$/);+ if (bullet) {+ if (!current) {+ current = { id: `slide-${slides.length + 1}`, title: tr(`第 ${slides.length + 1} 页`, `Slide ${slides.length + 1}`), content: [] };+ }+ current.content.push(bullet[1].trim());+ continue;+ }+ const desc = l.match(/^description[::]\s*(.*)$/i);+ if (desc) {+ if (!current) {+ current = { id: `slide-${slides.length + 1}`, title: tr(`第 ${slides.length + 1} 页`, `Slide ${slides.length + 1}`), content: [] };+ }+ current.description = desc[1].trim();+ continue;+ }+ const note = l.match(/^note[::]\s*(.*)$/i);+ if (note) {+ if (!current) {+ current = { id: `slide-${slides.length + 1}`, title: tr(`第 ${slides.length + 1} 页`, `Slide ${slides.length + 1}`), content: [] };+ }+ current.note = note[1].trim();+ continue;+ }+ const layout = l.match(/^layout[::]\s*(.*)$/i);+ if (layout) {+ if (!current) {+ current = { id: `slide-${slides.length + 1}`, title: tr(`第 ${slides.length + 1} 页`, `Slide ${slides.length + 1}`), content: [] };+ }+ current.layout = layout[1].trim();+ continue;+ }+ }+ pushCurrent();+ return slides.length > 0 ? slides : null;+ };++ const runInParallel = async (tasks: (() => Promise<void>)[], limit: number) => {+ const results: Promise<void>[] = [];+ const executing: Promise<void>[] = [];+ for (const task of tasks) {+ const p = Promise.resolve().then(() => task());+ results.push(p);+ let e: Promise<void>;+ e = p+ .catch(() => {+ })+ .then(() => {+ executing.splice(executing.indexOf(e), 1);+ });+ executing.push(e);+ if (executing.length >= limit) {+ await Promise.race(executing);+ }+ }+ await Promise.all(results);+ };++ const isBeautifyPdfFile = (file: File) => {+ const name = String(file?.name || "").toLowerCase();+ return file?.type === "application/pdf" || name.endsWith(".pdf");+ };++ const isBeautifyPptxFile = (file: File) => {+ const name = String(file?.name || "").toLowerCase();+ return (+ file?.type === "application/vnd.openxmlformats-officedocument.presentationml.presentation" ||+ name.endsWith(".pptx")+ );+ };++ const sanitizeSlideHtml = (html: string) => {+ return String(html || "")+ .replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "")+ .replace(/\son\w+=(?:"[^"]*"|'[^']*')/gi, "");+ };++ const renderHtmlToPngDataUrl = async (opts: { html: string; width: number; height: number; scale: number }) => {+ const html = sanitizeSlideHtml(opts.html);+ const width = Math.max(1, Math.floor(opts.width));+ const height = Math.max(1, Math.floor(opts.height));+ const scale = Number.isFinite(opts.scale) && opts.scale > 0 ? opts.scale : 1;++ const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${Math.round(width * scale)}" height="${Math.round(height * scale)}" viewBox="0 0 ${width} ${height}">+ <foreignObject x="0" y="0" width="100%" height="100%">+ <div xmlns="http://www.w3.org/1999/xhtml" style="width:${width}px;height:${height}px;overflow:hidden;background:#ffffff;">+ ${html}+ </div>+ </foreignObject>+</svg>`;++ const blob = new Blob([svg], { type: "image/svg+xml;charset=utf-8" });+ const url = URL.createObjectURL(blob);+ try {+ const img = new Image();+ img.decoding = "async";+ const loaded = new Promise<void>((resolve, reject) => {+ img.onload = () => resolve();+ img.onerror = reject;+ });+ img.src = url;+ await loaded;++ const canvas = document.createElement("canvas");+ canvas.width = Math.round(width * scale);+ canvas.height = Math.round(height * scale);+ const ctx = canvas.getContext("2d");+ if (!ctx) return "";+ ctx.clearRect(0, 0, canvas.width, canvas.height);+ ctx.drawImage(img, 0, 0, canvas.width, canvas.height);+ return canvas.toDataURL("image/png");+ } finally {+ URL.revokeObjectURL(url);+ }+ };++ const extractPdfPagesAsImages = async (file: File) => {+ const { getPdfDocumentFromUrl, renderPdfPageToCanvas } = await import("@/lib/pdf-utils");+ const objectUrl = URL.createObjectURL(file);+ try {+ const pdf = await getPdfDocumentFromUrl(objectUrl);+ const pageCount = (pdf as any)?.numPages ?? 0;+ const out: string[] = [];+ for (let pageNumber = 1; pageNumber <= pageCount; pageNumber += 1) {+ setProgress({+ current: pageNumber - 1,+ total: pageCount,+ message: tr(`正在解析 PDF... (${pageNumber - 1}/${pageCount})`, `Parsing PDF... (${pageNumber - 1}/${pageCount})`),+ });+ const canvas = document.createElement("canvas");+ await renderPdfPageToCanvas({ pdf, pageNumber, canvas, targetWidth: 1280 });+ const dataUrl = canvas.toDataURL("image/png");+ if (dataUrl && dataUrl.startsWith("data:image")) out.push(dataUrl);+ }+ setProgress({+ current: pageCount,+ total: pageCount,+ message: tr(`正在解析 PDF... (${pageCount}/${pageCount})`, `Parsing PDF... (${pageCount}/${pageCount})`),+ });+ return out;+ } finally {+ URL.revokeObjectURL(objectUrl);+ }+ };++ const extractPptxSlidesAsImages = async (file: File) => {+ const buf = await file.arrayBuffer();+ const { pptxToHtml } = await import("@jvmr/pptx-to-html");+ const slidesHtml = await pptxToHtml(buf, { width: 960, height: 540, scaleToFit: true, letterbox: true });+ const out: string[] = [];+ for (let i = 0; i < slidesHtml.length; i += 1) {+ setProgress({+ current: i,+ total: slidesHtml.length,+ message: tr(`正在解析 PPT... (${i}/${slidesHtml.length})`, `Parsing PPT... (${i}/${slidesHtml.length})`),+ });+ const dataUrl = await renderHtmlToPngDataUrl({ html: slidesHtml[i], width: 960, height: 540, scale: 2 });+ if (dataUrl && dataUrl.startsWith("data:image")) out.push(dataUrl);+ }+ setProgress({+ current: slidesHtml.length,+ total: slidesHtml.length,+ message: tr(`正在解析 PPT... (${slidesHtml.length}/${slidesHtml.length})`, `Parsing PPT... (${slidesHtml.length}/${slidesHtml.length})`),+ });+ return out;+ };++ const handleBeautifyFileInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const f = e.target.files?.[0] || null;+ e.target.value = "";+ setBeautifyFile(f);+ };++ const buildBeautifyInstruction = (req: string) => {+ const r = String(req || "").trim();+ const parts = [+ "Beautify the slide while preserving all original text, numbers, and meaning.",+ "Improve typography, spacing, alignment, color harmony, hierarchy, and visual balance.",+ "Do not add watermarks. Keep 16:9 landscape.",+ "Do not translate or rewrite text unless explicitly requested.",+ r ? `User requirements: ${r}` : "",+ ].filter(Boolean);+ return parts.join("\n");+ };++ const handleStartBeautify = async () => {+ const file = beautifyFile;+ if (!file) return;++ resetGenerationState();+ setCreationStep("generating_content");+ setProgress({ current: 0, total: 0, message: tr("正在解析文件...", "Parsing file...") });++ try {+ const pageImages = isBeautifyPdfFile(file)+ ? await extractPdfPagesAsImages(file)+ : isBeautifyPptxFile(file)+ ? await extractPptxSlidesAsImages(file)+ : [];++ if (pageImages.length === 0) {+ alert(tr("未能解析出页面图片,请确认文件格式(.pptx 或 .pdf)", "Failed to extract pages. Please upload .pptx or .pdf."));+ setCreationStep("idle");+ setProgress({ current: 0, total: 0, message: "" });+ return;+ }++ const slides: SlideData[] = pageImages.map((_, i) => ({+ id: `slide-${i + 1}`,+ title: tr(`第 ${i + 1} 页`, `Slide ${i + 1}`),+ content: [],+ description: "",+ }));++ const initialGenerated: Record<string, string> = {};+ const initialCurrent: Record<string, string> = {};+ const initialVersions: Record<string, Array<{ id: string; url: string; timestamp: number; type: "generated" | "edited"; instruction?: string }>> = {};++ for (let i = 0; i < slides.length; i += 1) {+ const slideId = slides[i].id;+ const url = pageImages[i];+ const versionId = `v-${Date.now()}-${Math.random().toString(16).slice(2)}`;+ initialGenerated[slideId] = url;+ initialCurrent[slideId] = versionId;+ initialVersions[slideId] = [{ id: versionId, url, timestamp: Date.now(), type: "generated", instruction: tr("原始页面", "Original") }];+ }++ setLocalSlides(slides);+ setGeneratedImages(initialGenerated);+ setCurrentImageVersionId(initialCurrent);+ setImageVersions(initialVersions);++ setCreationStep("generating_images");+ setProgress({ current: 0, total: slides.length, message: tr("正在美化渲染...", "Beautifying slides...") });++ const instruction = buildBeautifyInstruction(beautifyRequirement);+ const counter = { done: 0 };+ const tasks = slides.map((s, i) => async () => {+ try {+ const page: PptPage = { id: s.id, title: s.title, content: s.content || [], description: s.description || "" };+ const edited = await pptService.editPageImage(page, instruction, pageImages[i], templateImage || undefined);+ if (edited) pushImageVersion(s.id, edited, "edited", instruction);+ } catch (e) {+ console.error(`Beautify failed for slide ${i + 1}`, e);+ } finally {+ counter.done += 1;+ setProgress((prev) => ({+ ...prev,+ current: counter.done,+ total: slides.length,+ message: tr(`正在美化渲染... (${counter.done}/${slides.length})`, `Beautifying slides... (${counter.done}/${slides.length})`),+ }));+ }+ });++ await runInParallel(tasks, MODEL_CONCURRENCY);+ setCreationStep("done");+ onPptReadyChange?.(true);+ } catch (e) {+ console.error("Beautify failed", e);+ alert(tr("美化失败,请重试", "Beautify failed. Please retry."));+ setCreationStep("idle");+ } finally {+ setProgress({ current: 0, total: 0, message: "" });+ }+ };++ const handleLoadOutline = () => {+ const slides = parseSlides(outlineInput);+ if (!slides || slides.length === 0) {+ alert(tr("未识别到大纲,请粘贴 JSON 数组或 Markdown 大纲。", "Outline not recognized. Paste a JSON array or a Markdown outline."));+ return;+ }+ resetGenerationState();+ setLocalSlides(slides);+ setCreationStep("outline");+ onPptReadyChange?.(true);+ };++ const handleLoadDescriptions = async () => {+ const slides = parseSlides(descriptionInput);+ resetGenerationState();++ if (slides && slides.length > 0) {+ setLocalSlides(slides);+ setCreationStep("outline");+ onPptReadyChange?.(true);+ return;+ }++ setCreationStep('input');+ setProgress({ current: 0, total: 0, message: tr("正在从描述生成大纲与画面...", "Generating outline and visuals from description...") });+ try {+ const pages = await pptService.generateSlidesFromDescription(descriptionInput);+ const nextSlides: SlideData[] = pages.map((p, i) => ({+ id: `slide-${i + 1}`,+ title: p.title,+ content: p.content,+ description: p.description,+ note: p.note,+ layout: p.layout+ }));+ setLocalSlides(nextSlides);+ setCreationStep("outline");+ onPptReadyChange?.(true);+ } catch (e) {+ console.error("Failed to generate slides from description", e);+ alert(tr("从描述生成失败,请重试或改为粘贴 JSON/Markdown。", "Failed to generate from description. Retry or paste JSON/Markdown." ));+ setCreationStep("idle");+ } finally {+ setProgress({ current: 0, total: 0, message: "" });+ }+ };++ const handleGenerateOutline = async () => {+ if (!ideaInput.trim()) return;++ resetGenerationState();+ setCreationStep('input'); // Keep input visible but loading+ setProgress({ current: 0, total: 0, message: tr("正在生成大纲...", "Generating outline...") });++ try {+ const pages = await pptService.generateOutline(ideaInput);+ if (!Array.isArray(pages) || pages.length === 0) {+ throw new Error("Invalid outline response");+ }+ const slides: SlideData[] = pages.map((p, i) => ({+ id: `slide-${i + 1}`,+ title: p.title,+ content: p.content,+ description: p.description,+ note: p.note,+ layout: p.layout+ }));+ setLocalSlides(slides);+ setCreationStep('outline');+ onPptReadyChange?.(true);+ } catch (e) {+ console.error("Failed to generate outline", e);+ const name = (e as any)?.name;+ const isAbort = name === "AbortError" || name === "APIUserAbortError";+ const msg = isAbort+ ? tr("生成大纲超时或被中断(120s)。请检查网络/模型可用性后重试。", "Outline generation timed out or was interrupted (120s). Check network/model availability and retry.")+ : e instanceof Error+ ? e.message+ : tr("生成大纲失败,请重试", "Failed to generate outline. Please retry.");+ alert(msg);+ setCreationStep("idle");+ } finally {+ setProgress({ current: 0, total: 0, message: "" });+ }+ };++ const handleGenerateFullPpt = async () => {+ setCreationStep('generating_content');++ // Convert SlideData back to PptPage for service+ const pages: PptPage[] = localSlides.map(s => ({+ id: s.id,+ title: s.title,+ content: s.content,+ description: s.description,+ note: s.note,+ layout: s.layout,+ status: 'outline_generated'+ }));++ try {+ // 1. Generate Descriptions+ setProgress({ current: 0, total: pages.length, message: tr("正在生成页面内容描述...", "Generating slide content descriptions...") });++ // Parallel description generation+ const descCounter = { done: 0 };+ const descTasks = pages.map((_, i) => async () => {+ try {+ const result = await pptService.generatePageDescription(pages, i, ideaInput, referenceFiles);++ // Update local state immediately+ setLocalSlides(prev => {+ const newSlides = [...prev];+ const existing = newSlides[i];+ const hasManualContent = Array.isArray(existing?.content)+ ? existing.content.some((x) => String(x || "").trim())+ : false;+ const hasManualDescription = typeof existing?.description === "string" && existing.description.trim();+ const hasManualNote = typeof existing?.note === "string" && existing.note.trim();+ const hasManualLayout = typeof existing?.layout === "string" && existing.layout.trim();+ newSlides[i] = {+ ...existing,+ content: hasManualContent ? (existing.content || []) : result.content,+ description: hasManualDescription ? existing.description : result.description,+ note: hasManualNote ? existing.note : result.note,+ layout: hasManualLayout ? existing.layout : result.layout+ };+ return newSlides;+ });++ // Update pages array for next step+ pages[i].description = result.description;+ pages[i].content = result.content;+ pages[i].note = result.note;+ pages[i].layout = result.layout;+ } catch (e) {+ console.error(`Failed to generate description for slide ${i}`, e);+ } finally {+ descCounter.done += 1;+ setProgress(prev => ({+ ...prev,+ current: descCounter.done,+ message: tr(`正在生成页面内容描述... (${descCounter.done}/${pages.length})`, `Generating slide content descriptions... (${descCounter.done}/${pages.length})`)+ }));+ }+ });++ await runInParallel(descTasks, MODEL_CONCURRENCY);++ // 2. Generate Images+ setCreationStep('generating_images');+ setProgress({ current: 0, total: pages.length, message: tr("正在生成页面渲染图...", "Rendering slide images...") });++ const imageCounter = { done: 0 };+ const imageTasks = pages.map((_, i) => async () => {+ try {+ const imageUrl = await pptService.generatePageImage(pages[i], pages, templateImage || undefined);+ if (imageUrl) {+ const slideId = localSlides[i]?.id || `slide-${i}`;+ pushImageVersion(slideId, imageUrl, 'generated');+ }+ } catch (e) {+ console.error(`Failed to generate image for slide ${i}`, e);+ } finally {+ imageCounter.done += 1;+ setProgress(prev => ({+ ...prev,+ current: imageCounter.done,+ message: tr(`正在生成页面渲染图... (${imageCounter.done}/${pages.length})`, `Rendering slide images... (${imageCounter.done}/${pages.length})`)+ }));+ }+ });++ await runInParallel(imageTasks, MODEL_CONCURRENCY);++ setCreationStep('done');+ onPptReadyChange?.(true);++ } catch (e) {+ console.error("Full generation failed", e);+ alert(tr("生成过程中出错", "An error occurred during generation."));+ setCreationStep('done'); // Allow viewing what's done+ onPptReadyChange?.(true);+ }+ };++ const handleGenerateImagesOnly = async () => {+ if (localSlides.length === 0) return;+ setCreationStep('generating_images');+ setProgress({ current: 0, total: localSlides.length, message: tr("正在生成页面渲染图...", "Rendering slide images...") });++ const pages: PptPage[] = localSlides.map((s) => ({+ id: s.id,+ title: s.title,+ content: s.content || [],+ description: s.description,+ status: "description_generated"+ }));++ const imageCounter = { done: 0 };+ const imageTasks = pages.map((_, i) => async () => {+ try {+ const imageUrl = await pptService.generatePageImage(pages[i], pages, templateImage || undefined);+ if (imageUrl) {+ pushImageVersion(pages[i].id || `slide-${i}`, imageUrl, 'generated');+ }+ } catch (e) {+ console.error(`Failed to generate image for slide ${i}`, e);+ } finally {+ imageCounter.done += 1;+ setProgress(prev => ({+ ...prev,+ current: imageCounter.done,+ message: tr(`正在生成页面渲染图... (${imageCounter.done}/${pages.length})`, `Rendering slide images... (${imageCounter.done}/${pages.length})`)+ }));+ }+ });++ try {+ await runInParallel(imageTasks, MODEL_CONCURRENCY);+ setCreationStep('done');+ onPptReadyChange?.(true);+ } catch (e) {+ console.error("Image-only generation failed", e);+ setCreationStep('done');+ onPptReadyChange?.(true);+ }+ };++ const handleGenerateAiImage = async () => {+ if (!currentSlide) return;++ setIsGeneratingImage(true);+ try {+ // Use the service logic if description exists, otherwise fallback+ let imageUrl: string | null = null;++ if (currentSlide.description) {+ const pages: PptPage[] = localSlides.map(s => ({+ id: s.id,+ title: s.title,+ content: s.content,+ status: 'description_generated',+ description: s.description,+ note: s.note,+ layout: s.layout+ }));+ const pageIndex = localSlides.findIndex(s => s === currentSlide);+ imageUrl = await pptService.generatePageImage(pages[pageIndex], pages, templateImage || undefined);+ } else {+ // Fallback to simple prompt+ const prompt = `Design a presentation slide. Title: "${currentSlide.title}". Content: ${(currentSlide.content || []).join('; ')}. Style: Professional, Modern.`;+ imageUrl = await generateImage({+ prompt: prompt,+ referenceImageUrl: templateImage || undefined+ });+ }++ if (imageUrl) {+ const slideId = currentSlide.id || `slide-${currentSlideIndex + 1}`;+ pushImageVersion(slideId, imageUrl, 'generated');+ }+ } catch (e) {+ console.error("Failed to generate slide image", e);+ } finally {+ setIsGeneratingImage(false);+ }+ };++ const handleAddSlideToChat = (slide: SlideData) => {+ if (onAddToChat) {+ const slideId = slide.id || `slide-${currentSlideIndex + 1}`;+ const currentVersion = currentImageVersionId[slideId];+ const versions = imageVersions[slideId] || [];+ const imageUrl = currentVersion ? versions.find(v => v.id === currentVersion)?.url : generatedImages[slideId];+ onAddToChat(JSON.stringify({ ...slide, imageUrl }, null, 2), `${slideId}.json`);+ }+ };++ const handleDownloadPpt = async () => {+ if (isExporting) return;+ setIsExporting("pptx");+ try {+ const pages: PptPage[] = activeSlides.map(s => ({+ id: s.id,+ title: s.title,+ content: s.content,+ status: 'completed'+ }));+ const images: Record<string, string> = {};+ for (const s of activeSlides) {+ const versions = imageVersions[s.id] || [];+ const currentVersion = currentImageVersionId[s.id];+ const currentUrl = currentVersion ? versions.find(v => v.id === currentVersion)?.url : generatedImages[s.id];+ if (currentUrl) images[s.id] = currentUrl;+ }+ await pptService.exportPptx(pages, images, `presentation-${Date.now()}`);+ } catch (e) {+ console.error("Export failed", e);+ alert(tr("导出失败", "Export failed"));+ } finally {+ setIsExporting(null);+ }+ };++ const handleDownloadPdf = async () => {+ if (isExporting) return;+ setIsExporting("pdf");+ try {+ const pages: PptPage[] = activeSlides.map(s => ({+ id: s.id,+ title: s.title,+ content: s.content,+ status: 'completed'+ }));+ const images: Record<string, string> = {};+ for (const s of activeSlides) {+ const versions = imageVersions[s.id] || [];+ const currentVersion = currentImageVersionId[s.id];+ const currentUrl = currentVersion ? versions.find(v => v.id === currentVersion)?.url : generatedImages[s.id];+ if (currentUrl) images[s.id] = currentUrl;+ }+ await pptService.exportPdf(pages, images, `presentation-${Date.now()}`);+ } catch (e) {+ console.error("Export failed", e);+ alert(tr("导出失败", "Export failed"));+ } finally {+ setIsExporting(null);+ }+ };++ const handleBackToStart = () => {+ const confirmed = window.confirm(+ tr(+ "返回开始将清空当前 PPT(建议先导出保存)。是否继续?",+ "Restart will clear the current deck (export first if needed). Continue?"+ )+ );+ if (!confirmed) return;+ if (typeof onResetWorkspace === "function") {+ onResetWorkspace();+ return;+ }+ try {+ localStorage.removeItem(PPT_WORKSPACE_STORAGE_KEY);+ } catch {+ }+ setLocalSlides([]);+ resetGenerationState();+ setCreationStep("idle");+ setIdeaInput("");+ setOutlineInput("");+ setDescriptionInput("");+ setBeautifyRequirement("");+ setBeautifyFile(null);+ setReferenceFiles([]);+ setTemplateImage(null);+ setSelectedTemplateId(null);+ setProgress({ current: 0, total: 0, message: "" });+ };++ // Render Creation Wizard+ if (activeSlides.length === 0 && (creationStep === 'idle' || creationStep === 'input' || creationStep === 'done')) {+ const tabs = [+ { id: 'idea', label: tr('想法', 'Idea') },+ { id: 'outline', label: tr('大纲', 'Outline') },+ { id: 'description', label: tr('描述', 'Description') },+ { id: 'beautify', label: tr('PPT美化', 'Beautify') },+ ];+ const modeCopy = (() => {+ if (creationMode === "outline") {+ return {+ hint: tr("已有大纲?直接粘贴即可快速生成,AI 将自动切分为结构化大纲", "Have an outline? Paste it and AI will structure it into slides."),+ placeholder: tr(+ "粘贴你的 PPT 大纲…\n\n例如:\n第一部分:AI 的起源\n- 1950 年代的开端\n- 达特茅斯会议\n\n第二部分:发展历程\n- 专家系统\n- 深度学习\n…",+ "Paste your PPT outline…\n\nExample:\nPart 1: Origins of AI\n- Early beginnings in the 1950s\n- Dartmouth workshop\n\nPart 2: Evolution\n- Expert systems\n- Deep learning\n…"+ )+ };+ }+ if (creationMode === "beautify") {+ return {+ hint: tr("上传 PPT/PDF,输入美化要求,然后并发渲染每一页", "Upload PPT/PDF, enter requirements, then beautify each page in parallel."),+ placeholder: tr(+ "例如:整体更高级、留白更充足、标题更醒目、配色更统一、增强对比度;保持原文案不变。",+ "e.g. More premium look, more whitespace, stronger title hierarchy, unified palette, higher contrast; keep all original text unchanged."+ )+ };+ }+ if (creationMode === "description") {+ return {+ hint: tr("已有完整描述?AI 将自动解析出大纲并切分为每页描述,直接生成图片", "Have a full description? AI will split it into slides and render images."),+ placeholder: tr(+ "粘贴你的完整页面描述…\n\n例如:\n第 1 页\n标题:人工智能的诞生\n内容:1950 年,图灵提出“图灵测试”…\n\n第 2 页\n标题:AI 的发展历程\n内容:1950 年代:符号主义…\n…",+ "Paste your full slide-by-slide description…\n\nExample:\nSlide 1\nTitle: The birth of AI\nContent: In 1950, Alan Turing proposed the Turing Test…\n\nSlide 2\nTitle: The evolution of AI\nContent: 1950s: symbolic approaches…\n…"+ )+ };+ }+ return {+ hint: tr("输入你的想法,AI 将为你生成完整的 PPT", "Describe your idea and AI will generate a full deck."),+ placeholder: tr("例如:生成一份关于 AI 发展史的演讲 PPT", "e.g. Create a presentation about the history of AI")+ };+ })();++ return (+ <div className="w-full h-full bg-zinc-50/50 dark:bg-zinc-900 flex flex-col overflow-hidden">+ <div className="flex-1 overflow-auto p-8">+ <div className="max-w-4xl mx-auto space-y-8 bg-white dark:bg-zinc-800 p-8 rounded-2xl shadow-sm border border-zinc-100 dark:border-zinc-700/50">++ <div className="space-y-8">+ {/* Template Selection */}+ <div className="space-y-4">+ <label className="text-sm font-semibold text-zinc-900 dark:text-zinc-100 flex items-center gap-2">+ <span className="w-6 h-6 rounded-full bg-blue-100 text-blue-600 text-xs flex items-center justify-center font-bold">1</span>+ {tr("选择或上传参考模板", "Choose or upload a reference template")}+ </label>++ <div className="grid gap-4 grid-cols-[repeat(auto-fill,minmax(180px,1fr))]">+ <label className="cursor-pointer border-2 border-dashed rounded-xl transition-all duration-200 overflow-hidden relative aspect-video flex flex-col items-center justify-center group border-zinc-200 dark:border-zinc-700 hover:border-blue-500 hover:bg-blue-50/30 dark:hover:bg-zinc-800/50">+ <div className="flex flex-col items-center text-zinc-400 group-hover:text-blue-500 transition-colors">+ <div className="w-10 h-10 rounded-full bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mb-2 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 transition-colors">+ <Upload className="w-5 h-5" />+ </div>+ <span className="text-xs font-medium">{tr("添加模板", "Add template")}</span>+ </div>+ <input type="file" accept="image/*" multiple className="hidden" onChange={handleTemplateUploadInputChange} />+ </label>+ <button+ type="button"+ onClick={() => setTemplateGeneratorOpen(true)}+ className="cursor-pointer border-2 border-dashed rounded-xl transition-all duration-200 overflow-hidden relative aspect-video flex flex-col items-center justify-center group border-zinc-200 dark:border-zinc-700 hover:border-blue-500 hover:bg-blue-50/30 dark:hover:bg-zinc-800/50"+ >+ <div className="flex flex-col items-center text-zinc-400 group-hover:text-blue-500 transition-colors">+ <div className="w-10 h-10 rounded-full bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mb-2 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 transition-colors">+ <Sparkles className="w-5 h-5" />+ </div>+ <span className="text-xs font-medium">{tr("AI生成模板", "AI generate")}</span>+ </div>+ </button>+ {templates.map((t) => (+ <div+ key={t.id}+ onClick={() => void setTemplateFromItem(t)}+ className={`cursor-pointer border rounded-xl overflow-hidden relative aspect-video group transition-all duration-200 bg-zinc-100 dark:bg-zinc-900 ${+ selectedTemplateId === t.id+ ? "border-blue-500 ring-2 ring-blue-500 shadow-md"+ : "border-zinc-200 dark:border-zinc-700 hover:ring-2 hover:ring-blue-500 hover:shadow-md"+ }`}+ >+ <img src={t.previewSrc} className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105" alt={t.name} />+ {selectedTemplateId === t.id && (+ <div className="absolute top-2 left-2 rounded-full bg-blue-600 px-2 py-0.5 text-[10px] font-medium text-white shadow">+ {tr("已选择", "Selected")}+ </div>+ )}+ <button+ type="button"+ onClick={(e) => {+ e.stopPropagation();+ deleteTemplate(t);+ }}+ className="absolute top-2 right-2 rounded-full bg-black/50 text-white p-1 opacity-0 group-hover:opacity-100 transition-opacity"+ title={tr("删除模板", "Delete template")}+ >+ <X className="w-3.5 h-3.5" />+ </button>+ <div className="absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent p-3 pt-8 opacity-0 group-hover:opacity-100 transition-opacity duration-200">+ <div className="text-white text-xs font-medium text-center">{t.name}</div>+ </div>+ </div>+ ))}+ </div>+ </div>++ {/* Mode Selection & Input */}+ <div className="space-y-4">+ <label className="text-sm font-semibold text-zinc-900 dark:text-zinc-100 flex items-center gap-2">+ <span className="w-6 h-6 rounded-full bg-blue-100 text-blue-600 text-xs flex items-center justify-center font-bold">2</span>+ {tr("输入内容", "Input")}+ </label>++ {/* Segmented Control */}+ <div className="bg-zinc-100 dark:bg-zinc-900/50 p-1 rounded-lg inline-flex w-full sm:w-auto">+ {tabs.map((tab) => (+ <button+ key={tab.id}+ onClick={() => setCreationMode(tab.id as any)}+ className={`relative flex-1 sm:flex-none px-6 py-2 text-sm font-medium rounded-md transition-all duration-200 ${+ creationMode === tab.id+ ? "text-zinc-900 dark:text-zinc-100 shadow-sm"+ : "text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-200"+ }`}+ >+ {creationMode === tab.id && (+ <motion.div+ layoutId="activeTab"+ className="absolute inset-0 bg-white dark:bg-zinc-700 rounded-md"+ transition={{ type: "spring", stiffness: 500, damping: 30 }}+ />+ )}+ <span className="relative z-10">{tab.label}</span>+ </button>+ ))}+ </div>++ <input+ ref={referenceFileInputRef}+ type="file"+ multiple+ accept=".pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml"+ className="hidden"+ onChange={handleReferenceFileInputChange}+ />++ <motion.div+ key={creationMode}+ initial={{ opacity: 0, y: 10 }}+ animate={{ opacity: 1, y: 0 }}+ exit={{ opacity: 0, y: -10 }}+ transition={{ duration: 0.2 }}+ className="space-y-3"+ >+ <div className="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200">+ {creationMode === "beautify" ? <Sparkles className="w-4 h-4 text-blue-600" /> : <Lightbulb className="w-4 h-4 text-amber-500" />}+ <span>{modeCopy.hint}</span>+ </div>++ {creationMode === "beautify" ? (+ <div className="space-y-3">+ <input+ ref={beautifyFileInputRef}+ type="file"+ accept=".pptx,.pdf,application/pdf,application/vnd.openxmlformats-officedocument.presentationml.presentation"+ className="hidden"+ onChange={handleBeautifyFileInputChange}+ />++ <div className="flex items-center justify-between gap-3 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 px-4 py-3">+ <div className="min-w-0">+ <div className="text-sm font-medium text-zinc-900 dark:text-zinc-100">{tr("上传 PPT/PDF", "Upload PPT/PDF")}</div>+ <div className="text-xs text-zinc-500 dark:text-zinc-400 truncate">+ {beautifyFile ? beautifyFile.name : tr("未选择文件", "No file selected")}+ </div>+ </div>+ <Button+ type="button"+ variant="outline"+ className="shrink-0"+ onClick={() => beautifyFileInputRef.current?.click()}+ >+ <Upload className="w-4 h-4 mr-2" />+ {tr("选择文件", "Choose")}+ </Button>+ </div>++ <textarea+ value={beautifyRequirement}+ onChange={(e) => setBeautifyRequirement(e.target.value)}+ className="w-full h-36 p-4 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all resize-none outline-none"+ placeholder={modeCopy.placeholder}+ />+ </div>+ ) : (+ <>+ <div className="relative">+ <textarea+ value={creationMode === "idea" ? ideaInput : creationMode === "outline" ? outlineInput : descriptionInput}+ onChange={(e) => {+ const v = e.target.value;+ if (creationMode === "idea") setIdeaInput(v);+ else if (creationMode === "outline") setOutlineInput(v);+ else setDescriptionInput(v);+ }}+ className="w-full h-40 p-4 pb-12 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all resize-none outline-none"+ placeholder={modeCopy.placeholder}+ />+ <button+ type="button"+ onClick={() => referenceFileInputRef.current?.click()}+ disabled={isParsingReferenceFiles}+ className="absolute bottom-3 right-3 inline-flex items-center gap-2 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-white/80 dark:bg-zinc-900/60 px-3 py-1.5 text-xs text-zinc-700 dark:text-zinc-200 shadow-sm hover:bg-white dark:hover:bg-zinc-900 transition-colors disabled:opacity-60"+ >+ {isParsingReferenceFiles ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <Upload className="w-3.5 h-3.5" />}+ {tr("上传文件", "Upload files")}+ </button>+ </div>++ <div className="flex items-center justify-between gap-3">+ <div className="text-xs text-zinc-500 dark:text-zinc-400">+ {tr("上传 PDF/文本作为参考资料(可选)", "Upload PDF/text as reference (optional)")}+ </div>+ {referenceFiles.length > 0 && (+ <button+ type="button"+ onClick={() => setReferenceFiles([])}+ className="text-xs text-zinc-500 hover:text-zinc-800 dark:hover:text-zinc-200"+ disabled={isParsingReferenceFiles}+ >+ {tr("清空", "Clear")}+ </button>+ )}+ </div>++ {referenceFiles.length > 0 && (+ <div className="grid gap-2">+ {referenceFiles.map((f) => (+ <div key={f.id} className="flex items-center justify-between gap-3 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/40 px-3 py-2">+ <button+ type="button"+ onClick={() => openReferencePreview(f)}+ className="flex items-center gap-2 min-w-0 text-left"+ >+ <FileText className="w-4 h-4 text-zinc-500 flex-shrink-0" />+ <span className="truncate text-sm text-zinc-800 dark:text-zinc-100">{f.filename}</span>+ <span className="text-xs text-zinc-500 dark:text-zinc-400 flex-shrink-0">({f.charCount} chars)</span>+ </button>+ <button+ type="button"+ className="text-xs text-zinc-500 hover:text-zinc-800 dark:hover:text-zinc-200"+ onClick={() => setReferenceFiles((prev) => prev.filter((x) => x.id !== f.id))}+ >+ {tr("移除", "Remove")}+ </button>+ </div>+ ))}+ </div>+ )}+ </>+ )}+ </motion.div>+ </div>++ <Button+ onClick={creationMode === "beautify" ? handleStartBeautify : creationMode === "idea" ? handleGenerateOutline : creationMode === "outline" ? handleLoadOutline : handleLoadDescriptions}+ disabled={Boolean(progress.message) || (creationMode === "beautify" ? !beautifyFile : isParsingReferenceFiles || (creationMode === "idea" ? !ideaInput.trim() : creationMode === "outline" ? !outlineInput.trim() : !descriptionInput.trim()))}+ className="w-full py-6 text-lg font-medium bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white shadow-lg shadow-blue-500/20 rounded-xl transition-all hover:scale-[1.01] active:scale-[0.99]"+ >+ {progress.message ? <Loader2 className="w-5 h-5 mr-2 animate-spin" /> : <Sparkles className="w-5 h-5 mr-2" />}+ {progress.message || (creationMode === "beautify" ? tr("开始渲染", "Start rendering") : creationMode === "idea" ? tr("开始生成大纲", "Generate outline") : creationMode === "outline" ? tr("载入大纲", "Load outline") : tr("载入描述", "Load descriptions"))}+ </Button>+ </div>++ <Dialog open={referencePreviewOpen} onOpenChange={setReferencePreviewOpen}>+ <DialogContent className="max-w-3xl">+ <DialogHeader>+ <DialogTitle>{referencePreviewFile?.filename || tr("参考文件", "Reference file")}</DialogTitle>+ </DialogHeader>+ <Textarea value={referencePreviewFile?.content || ""} readOnly className="min-h-[420px] font-mono text-xs" />+ </DialogContent>+ </Dialog>++ <Dialog open={templateGeneratorOpen} onOpenChange={setTemplateGeneratorOpen}>+ <DialogContent className="max-w-2xl">+ <DialogHeader>+ <DialogTitle>{tr("AI生成模板", "AI Template Generator")}</DialogTitle>+ </DialogHeader>+ <div className="space-y-4">+ <div className="text-xs text-zinc-500 dark:text-zinc-400">+ {tr("生成的模板会自动加入模板列表,可随时删除。", "Generated templates will be added to the template list automatically and can be deleted anytime.")}+ </div>+ <Textarea+ value={templateGeneratorRequirement}+ onChange={(e) => setTemplateGeneratorRequirement(e.target.value)}+ placeholder={tr(+ "例如:科技感、深色背景、蓝紫渐变、玻璃拟态、留白充足、适合企业汇报;不要出现任何文字。",+ "e.g. Futuristic, dark background, blue-purple gradient, glassmorphism, generous whitespace; no text."+ )}+ className="min-h-[140px]"+ disabled={templateGeneratorIsGenerating}+ />+ <div className="flex justify-end gap-3">+ <Button+ type="button"+ variant="outline"+ onClick={() => setTemplateGeneratorOpen(false)}+ disabled={templateGeneratorIsGenerating}+ >+ {tr("取消", "Cancel")}+ </Button>+ <Button+ type="button"+ onClick={handleGenerateTemplate}+ disabled={templateGeneratorIsGenerating || !templateGeneratorRequirement.trim()}+ className="bg-blue-600 hover:bg-blue-700"+ >+ {templateGeneratorIsGenerating ? (+ <>+ <Loader2 className="w-4 h-4 mr-2 animate-spin" />+ {tr("生成中...", "Generating...")}+ </>+ ) : (+ <>+ <Sparkles className="w-4 h-4 mr-2" />+ {tr("生成并保存", "Generate & Save")}+ </>+ )}+ </Button>+ </div>+ </div>+ </DialogContent>+ </Dialog>+ </div>+ </div>+ </div>+ );+ }++ // Render Outline Review+ if (creationStep === 'outline') {+ return (+ <div className="w-full h-full bg-zinc-50 dark:bg-zinc-900 flex flex-col overflow-hidden">+ <div className="flex-1 overflow-auto p-6">+ <div className="w-full min-h-full bg-white dark:bg-zinc-800 rounded-xl shadow-sm flex flex-col overflow-hidden">+ <div className="p-6 border-b border-border flex justify-between items-center">+ <h3 className="font-semibold text-lg">{creationMode === "description" ? tr("确认内容与描述", "Review content & descriptions") : tr("确认大纲", "Review outline")}</h3>+ <div className="text-sm text-muted-foreground">{tr(`共 ${localSlides.length} 页`, `${localSlides.length} slides`)}</div>+ </div>++ <div className="flex-1 overflow-y-auto p-6 space-y-4">+ {localSlides.map((slide, i) => (+ <div key={i} className="flex gap-4 p-4 border rounded-lg bg-zinc-50 dark:bg-zinc-900/50">+ <div className="w-8 h-8 flex items-center justify-center bg-white dark:bg-zinc-800 rounded-full border text-sm font-medium text-muted-foreground">+ {i + 1}+ </div>+ <div className="flex-1 space-y-2">+ <div className="flex items-start justify-between gap-3">+ <input+ value={slide.title}+ onChange={(e) => {+ const newSlides = [...localSlides];+ newSlides[i].title = e.target.value;+ setLocalSlides(newSlides);+ }}+ className="w-full font-medium bg-transparent border-none focus:outline-none focus:ring-0 p-0"+ />+ <Button variant="outline" size="sm" onClick={() => handleAddSlideToChat(slide)} className="shrink-0">+ <MessageSquarePlus className="w-4 h-4 mr-2" />+ {tr("加入对话", "Add to chat")}+ </Button>+ </div>+ <div className="space-y-1">+ {(slide.content || []).map((point, j) => (+ <div key={j} className="flex gap-2 text-sm text-muted-foreground">+ <span>•</span>+ <input+ value={point}+ onChange={(e) => {+ const newSlides = [...localSlides];+ if (!newSlides[i].content) newSlides[i].content = [];+ newSlides[i].content[j] = e.target.value;+ setLocalSlides(newSlides);+ }}+ className="flex-1 bg-transparent border-none focus:outline-none focus:ring-0 p-0"+ />+ </div>+ ))}+ </div>+ <div className="pt-3 grid gap-3">+ <div>+ <div className="text-xs font-medium text-foreground mb-1">{tr("布局提示(layout)", "Layout hint (layout)")}</div>+ <input+ value={slide.layout || ""}+ onChange={(e) => {+ const newSlides = [...localSlides];+ newSlides[i].layout = e.target.value;+ setLocalSlides(newSlides);+ }}+ className="w-full h-9 px-3 rounded-md border border-input bg-background text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ placeholder={tr("例如:cover / title+bullets / two-column / left-text-right-image", "e.g. cover / title+bullets / two-column / left-text-right-image")}+ />+ </div>+ <div>+ <div className="text-xs font-medium text-foreground mb-1">{tr("演讲者备注(note)", "Speaker notes (note)")}</div>+ <textarea+ value={slide.note || ""}+ onChange={(e) => {+ const newSlides = [...localSlides];+ newSlides[i].note = e.target.value;+ setLocalSlides(newSlides);+ }}+ className="w-full h-20 p-3 rounded-md border border-input bg-background text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ placeholder={tr("例如:这一页强调三个关键点;讲解时先抛出问题再给答案…", "e.g. Emphasize three key points; start with a question, then answer it…")}+ />+ </div>+ <div>+ <div className="text-xs font-medium text-foreground mb-1">{tr("画面描述(description,用于生图)", "Visual description (description)")}</div>+ <textarea+ value={slide.description || ""}+ onChange={(e) => {+ const newSlides = [...localSlides];+ newSlides[i].description = e.target.value;+ setLocalSlides(newSlides);+ }}+ className="w-full h-24 p-3 rounded-md border border-input bg-background text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ placeholder={tr("例如:科技感蓝色渐变背景,中心是抽象的 AI 芯片与电路纹理,干净留白…", "e.g. Futuristic blue gradient background, abstract AI chip and circuit textures, clean whitespace…")}+ />+ </div>+ </div>+ </div>+ </div>+ ))}+ </div>++ <div className="p-6 border-t border-border bg-zinc-50/50 dark:bg-zinc-900/50 flex justify-end gap-3">+ <Button variant="outline" onClick={() => setCreationStep('idle')}>{tr("返回修改", "Back")}</Button>+ <Button onClick={creationMode === "description" ? handleGenerateImagesOnly : handleGenerateFullPpt} className="bg-blue-600 hover:bg-blue-700">+ <Sparkles className="w-4 h-4 mr-2" />+ {creationMode === "description" ? tr("开始渲染图片", "Render images") : tr("生成完整 PPT", "Generate full deck")}+ </Button>+ </div>+ </div>+ </div>+ </div>+ );+ }++ // Render Progress+ if (creationStep === 'generating_content' || creationStep === 'generating_images') {+ const progressRatio = progress.total > 0 ? progress.current / progress.total : 0;+ const clampedRatio = Math.max(0, Math.min(1, progressRatio));+ const dash = clampedRatio * 251.2;+ const percent = Math.round(clampedRatio * 100);+ return (+ <div className="w-full h-full bg-zinc-50 dark:bg-zinc-900 flex flex-col overflow-hidden">+ <div className="flex-1 flex items-center justify-center p-6">+ <div className="w-full max-w-md bg-white dark:bg-zinc-800 p-8 rounded-xl shadow-lg text-center space-y-6">+ <div className="relative w-20 h-20 mx-auto">+ <svg className="w-full h-full" viewBox="0 0 100 100">+ <circle className="text-zinc-200 dark:text-zinc-700 stroke-current" strokeWidth="8" cx="50" cy="50" r="40" fill="transparent"></circle>+ <circle className="text-blue-600 stroke-current transition-all duration-300 ease-in-out origin-center -rotate-90" strokeWidth="8" strokeLinecap="round" cx="50" cy="50" r="40" fill="transparent" strokeDasharray={`${dash} 251.2`}></circle>+ </svg>+ <div className="absolute inset-0 flex items-center justify-center text-sm font-bold">+ {percent}%+ </div>+ </div>++ <div className="space-y-2">+ <h3 className="font-semibold text-lg">AI 正在创作中</h3>+ <p className="text-sm text-muted-foreground">{progress.message || (creationStep === "generating_content" ? tr("正在生成内容…", "Generating content…") : tr("正在渲染图片…", "Rendering images…"))}</p>+ </div>++ <div className="flex justify-center gap-2 text-xs text-muted-foreground">+ <div className={`flex items-center gap-1 ${creationStep === 'generating_content' ? 'text-blue-600' : 'text-green-600'}`}>+ {creationStep === 'generating_content' ? <Loader2 className="w-3 h-3 animate-spin" /> : <Check className="w-3 h-3" />}+ <span>生成内容</span>+ </div>+ <span className="text-zinc-300">→</span>+ <div className={`flex items-center gap-1 ${creationStep === 'generating_images' ? 'text-blue-600' : 'text-zinc-400'}`}>+ {creationStep === 'generating_images' && <Loader2 className="w-3 h-3 animate-spin" />}+ <span>渲染图片</span>+ </div>+ </div>+ </div>+ </div>+ </div>+ );+ }++ // Regular View (creationStep === 'done' or manually provided data)+ return (+ <div className="w-full h-full bg-zinc-100 dark:bg-zinc-900 flex flex-col">+ {/* Toolbar */}+ <div className="h-14 px-4 bg-white dark:bg-zinc-800 border-b border-zinc-200 dark:border-zinc-700 flex justify-between items-center shadow-sm z-10">+ <div className="flex items-center gap-4">+ <h2 className="font-semibold text-sm text-foreground">{tr("PPT 演示文稿", "PPT Deck")}</h2>+ <div className="h-4 w-px bg-border"></div>+ <button+ onClick={handleBackToStart}+ className="flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm"+ >+ <ArrowLeft className="w-3.5 h-3.5" />+ <span>{tr("返回开始", "Back")}</span>+ </button>+ <button+ onClick={() => setSlideshowOpen(true)}+ disabled={activeSlides.length === 0}+ className="flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm"+ >+ <Play className="w-3.5 h-3.5" />+ <span>{tr("播放", "Play")}</span>+ </button>+ <div className="h-4 w-px bg-border"></div>+ <button+ onClick={handleDownloadPpt}+ disabled={activeSlides.length === 0 || !!isExporting}+ className="flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm"+ >+ {isExporting === "pptx" ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <Download className="w-3.5 h-3.5" />}+ <span>{isExporting === "pptx" ? tr("导出中…", "Exporting…") : tr("导出 PPTX", "Export PPTX")}</span>+ </button>+ <button+ onClick={handleDownloadPdf}+ disabled={activeSlides.length === 0 || !!isExporting}+ className="flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm"+ >+ {isExporting === "pdf" ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <Download className="w-3.5 h-3.5" />}+ <span>{isExporting === "pdf" ? tr("导出中…", "Exporting…") : tr("导出 PDF", "Export PDF")}</span>+ </button>+ </div>+ <div className="text-xs text-muted-foreground">+ {activeSlides.length > 0 ? tr(`第 ${currentSlideIndex + 1} / ${activeSlides.length} 页`, `Slide ${currentSlideIndex + 1} / ${activeSlides.length}`) : tr("空文档", "Empty")}+ </div>+ </div>++ {/* Main View */}+ <div className="flex-1 flex overflow-hidden">+ {/* Thumbnails */}+ <div className="w-64 bg-zinc-50 dark:bg-zinc-900 border-r border-border overflow-y-auto p-4 space-y-4">+ {activeSlides.map((slide, index) => {+ const hasGeneratedImage = generatedImages[slide.id || index];+ return (+ <ContextMenu key={slide.id || index}>+ <ContextMenuTrigger>+ <div+ onClick={() => setCurrentSlideIndex(index)}+ className={`cursor-pointer border-2 rounded-lg overflow-hidden relative aspect-[16/9] group transition-all duration-200 ${+ currentSlideIndex === index+ ? 'border-blue-600 shadow-md scale-[1.02]'+ : 'border-transparent hover:border-zinc-300 dark:hover:border-zinc-700 bg-white dark:bg-zinc-800 shadow-sm'+ }`}+ >+ <div+ className="absolute top-1 left-1 z-20"+ onClick={(e) => e.stopPropagation()}+ >+ <Button+ size="sm"+ variant="destructive"+ className="h-6 px-2 text-[10px] gap-1 shadow-sm opacity-0 group-hover:opacity-100 transition-opacity"+ onClick={() => handleAddSlideToChat(slide)}+ >+ <Presentation className="w-3 h-3" />+ {tr("加入对话", "Add to chat")}+ </Button>+ </div>+ {/* Thumbnail Preview */}+ {hasGeneratedImage ? (+ <img src={hasGeneratedImage} className="w-full h-full object-cover" alt={`Slide ${index + 1}`} />+ ) : (+ <div className="w-full h-full p-2 flex flex-col bg-white overflow-hidden text-[6px]">+ {templateImage && (+ <img src={templateImage} className="absolute inset-0 w-full h-full object-cover opacity-20 pointer-events-none" alt="" />+ )}+ <div className="font-bold mb-1 truncate z-10 relative">{slide.title}</div>+ <div className="flex-1 space-y-0.5 z-10 relative">+ {(slide.content || []).slice(0, 3).map((line, i) => (+ <div key={i} className="truncate text-zinc-500">• {line}</div>+ ))}+ </div>+ </div>+ )}++ <div className="absolute bottom-1 right-1 bg-black/60 text-white text-[10px] px-1.5 rounded-sm backdrop-blur-sm">+ {index + 1}+ </div>+ </div>+ </ContextMenuTrigger>+ <ContextMenuContent>+ <ContextMenuItem onClick={() => handleAddSlideToChat(slide)} className="gap-2">+ <MessageSquarePlus className="w-4 h-4" />+ <span>{tr("把此页添加到对话", "Add this slide to chat")}</span>+ </ContextMenuItem>+ </ContextMenuContent>+ </ContextMenu>+ )})}++ {activeSlides.length === 0 && (+ <div className="text-center py-8">+ <div className="inline-flex items-center justify-center w-12 h-12 rounded-full bg-muted mb-3">+ <Presentation className="w-6 h-6 text-muted-foreground" />+ </div>+ <p className="text-sm text-muted-foreground">+ {uiLang === "zh" ? "在右侧对话框中输入需求" : "Describe your needs in the chat on the right"}+ <br />+ {uiLang === "zh" ? "让 AI 为您生成 PPT" : "Let AI generate your PPT"}+ </p>+ </div>+ )}+ </div>++ {/* Preview */}+ <div className="flex-1 p-4 flex items-center justify-center bg-zinc-200/50 dark:bg-zinc-950/50 overflow-auto relative">+ <div className="absolute top-4 left-4 z-30 flex items-center gap-2 bg-white/80 dark:bg-zinc-900/70 backdrop-blur rounded-xl border border-border/50 px-3 py-2 shadow-sm">+ <Button+ size="sm"+ className="h-7 px-2 text-xs"+ onClick={handleGenerateAiImage}+ disabled={!currentSlide || isGeneratingImage}+ >+ {isGeneratingImage ? <Loader2 className="w-3 h-3 mr-1 animate-spin" /> : null}+ 重渲染本页+ </Button>+ {currentSlide && (imageVersions[currentSlide.id] || []).length > 0 && (+ <select+ className="h-7 text-xs rounded-md border border-input bg-background px-2"+ value={currentImageVersionId[currentSlide.id] || (imageVersions[currentSlide.id] || [])[0]?.id}+ onChange={(e) => {+ const slideId = currentSlide.id;+ const versionId = e.target.value;+ const versions = imageVersions[slideId] || [];+ const v = versions.find(x => x.id === versionId);+ if (v) {+ setCurrentImageVersionId(prev => ({ ...prev, [slideId]: versionId }));+ setGeneratedImages(prev => ({ ...prev, [slideId]: v.url }));+ }+ }}+ >+ {(imageVersions[currentSlide.id] || []).map((v, idx) => (+ <option key={v.id} value={v.id}>+ {idx + 1} · {new Date(v.timestamp).toLocaleString()}+ </option>+ ))}+ </select>+ )}+ </div>+ {currentSlide ? (+ <ContextMenu>+ <ContextMenuTrigger className="outline-none">+ <div+ className="relative w-full max-w-[1100px] bg-white shadow-2xl rounded-sm overflow-hidden flex flex-col transition-transform duration-300"+ style={{ aspectRatio: "16/9" }}+ >+ {/* Display either generated image or DOM layout */}+ {currentSlideImage ? (+ <img src={currentSlideImage} className="w-full h-full object-contain bg-white" alt="AI Generated Slide" />+ ) : (+ <div className="w-full h-full p-12 flex flex-col relative">+ {/* Background Template */}+ {templateImage && (+ <img src={templateImage} className="absolute inset-0 w-full h-full object-cover opacity-30 pointer-events-none" alt="Template" />+ )}++ {/* Slide Content */}+ <div className="relative z-10 h-full flex flex-col">+ <h1 className="text-4xl font-bold mb-8 text-zinc-900 border-b-4 border-blue-600 pb-4 w-fit pr-12">+ {currentSlide.title}+ </h1>+ <div className="flex-1 space-y-6">+ {(currentSlide.content || []).map((point, i) => (+ <div key={i} className="flex gap-4 text-2xl text-zinc-700 leading-relaxed items-start">+ <span className="text-blue-600 mt-2">•</span>+ <span>{point}</span>+ </div>+ ))}+ </div>++ {/* Footer/Note Placeholder */}+ <div className="mt-auto pt-8 flex justify-between text-sm text-zinc-400 border-t border-zinc-100">+ <span>Generated by Unified AI Workspace</span>+ <span>{currentSlideIndex + 1}</span>+ </div>+ </div>+ </div>+ )}++ {/* Overlay Label if Generated */}+ {(isApplyingEdits || isGeneratingImage) && (+ <div className="absolute inset-0 z-50 flex items-center justify-center bg-white/50 backdrop-blur-[2px]">+ <div className="flex flex-col items-center gap-3 bg-white shadow-xl px-6 py-4 rounded-xl border border-blue-100">+ <Loader2 className="w-6 h-6 text-blue-600 animate-spin" />+ <span className="text-sm font-medium text-zinc-700">{tr("幻灯片正在生成中...", "Generating slides...")}</span>+ </div>+ </div>+ )}+ </div>+ </ContextMenuTrigger>+ <ContextMenuContent>+ <ContextMenuItem onClick={() => handleAddSlideToChat(currentSlide)} className="gap-2">+ <MessageSquarePlus className="w-4 h-4" />+ <span>把此页添加到对话</span>+ </ContextMenuItem>+ </ContextMenuContent>+ </ContextMenu>+ ) : (+ <div className="text-muted-foreground flex flex-col items-center">+ <ImageIcon className="w-16 h-16 mb-4 opacity-20" />+ <p>{tr("暂无幻灯片", "No slides yet")}</p>+ </div>+ )}+ </div>+ </div>++ <Dialog open={slideshowOpen} onOpenChange={setSlideshowOpen}>+ <DialogContent className="inset-0 left-0 top-0 translate-x-0 translate-y-0 w-screen h-screen max-w-none sm:max-w-none rounded-none p-0 bg-black/95 border-none flex flex-col">+ <div className="h-16 px-6 flex items-center justify-between text-white/90 bg-black/50 backdrop-blur-sm z-50">+ <div className="text-sm font-medium">+ {activeSlides.length > 0 ? `第 ${slideshowIndex + 1} / ${activeSlides.length} 页` : ""}+ </div>+ <div className="flex items-center gap-4">+ <Button+ variant="ghost"+ size="sm"+ className="text-white hover:text-white hover:bg-white/10 gap-2"+ onClick={() => setSlideshowOpen(false)}+ >+ <X className="w-4 h-4" />+ 退出+ </Button>+ </div>+ </div>++ <div className="flex-1 flex items-center justify-center p-8 overflow-hidden bg-black/90">+ {activeSlides[slideshowIndex] ? (+ <div className="relative w-full h-full flex items-center justify-center">+ <div+ className="relative bg-white shadow-2xl overflow-hidden rounded-lg mx-auto"+ style={{+ width: getSlideshowDimensions().width,+ height: getSlideshowDimensions().height+ }}+ >+ {getSlideImageUrl(activeSlides[slideshowIndex].id) ? (+ <img+ src={getSlideImageUrl(activeSlides[slideshowIndex].id)}+ className="w-full h-full object-contain bg-black"+ alt="Slide"+ />+ ) : (+ <div className="w-full h-full p-16 flex flex-col">+ <h1 className="text-5xl font-bold mb-12 text-zinc-900 border-b-4 border-blue-600 pb-6 w-fit pr-16">+ {activeSlides[slideshowIndex].title}+ </h1>+ <div className="flex-1 space-y-8">+ {(activeSlides[slideshowIndex].content || []).map((point, i) => (+ <div key={i} className="flex gap-6 text-3xl text-zinc-700 leading-relaxed items-start">+ <span className="text-blue-600 mt-2">•</span>+ <span>{point}</span>+ </div>+ ))}+ </div>+ <div className="mt-auto pt-8 flex justify-between text-lg text-zinc-400 border-t border-zinc-100">+ <span>Generated by Unified AI Workspace</span>+ <span>{slideshowIndex + 1}</span>+ </div>+ </div>+ )}+ </div>+ </div>+ ) : null}+ </div>++ <div className="h-20 px-4 flex items-center justify-center gap-8 pb-4">+ <Button+ variant="outline"+ size="lg"+ className="bg-white/10 border-white/20 text-white hover:bg-white/20 hover:text-white rounded-full w-12 h-12 p-0"+ onClick={() => setSlideshowIndex((v) => (v - 1 + activeSlides.length) % activeSlides.length)}+ disabled={activeSlides.length <= 1}+ >+ <ArrowLeft className="w-6 h-6" />+ </Button>+ <div className="text-white/50 text-sm font-medium">+ {slideshowIndex + 1} / {activeSlides.length}+ </div>+ <Button+ variant="outline"+ size="lg"+ className="bg-white/10 border-white/20 text-white hover:bg-white/20 hover:text-white rounded-full w-12 h-12 p-0"+ onClick={() => setSlideshowIndex((v) => (v + 1) % activeSlides.length)}+ disabled={activeSlides.length <= 1}+ >+ <ArrowRight className="w-6 h-6" />+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ </div>+ );+}diff --git a/vite.config.ts b/vite.config.tsindex ae87a08..8495075 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -1,7 +1,114 @@import { defineConfig } from 'vite'+import type { IncomingMessage, ServerResponse } from "node:http";+import type { Connect, Plugin } from "vite";import react from '@vitejs/plugin-react'import tsconfigPaths from "vite-tsconfig-paths";import { traeBadgePlugin } from 'vite-plugin-trae-solo-badge';+import { GET as getConfig } from "./api/routes/config";+import { POST as postVerifyAccessCode } from "./api/routes/verify-access-code";+import { POST as postLogFeedback } from "./api/routes/log-feedback";+import { POST as postLogSave } from "./api/routes/log-save";+import { POST as postChat } from "./api/routes/chat";++type RouteHandler = (request: Request) => Promise<Response>;++const API_ROUTES: Record<string, RouteHandler> = {+ "GET /api/config": async () => getConfig(),+ "POST /api/verify-access-code": postVerifyAccessCode,+ "POST /api/log-feedback": postLogFeedback,+ "POST /api/log-save": postLogSave,+ "POST /api/chat": postChat,+};++async function toWebRequest(req: IncomingMessage): Promise<Request> {+ const origin = `http://${req.headers.host || "localhost"}`;+ const url = new URL(req.url || "/", origin);+ const headers = new Headers();++ for (const [key, value] of Object.entries(req.headers)) {+ if (Array.isArray(value)) {+ for (const item of value) headers.append(key, item);+ } else if (typeof value === "string") {+ headers.set(key, value);+ }+ }++ const method = (req.method || "GET").toUpperCase();+ if (method === "GET" || method === "HEAD") {+ return new Request(url.toString(), { method, headers });+ }++ const chunks: Buffer[] = [];+ for await (const chunk of req) {+ chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));+ }+ const bodyBuffer = chunks.length > 0 ? Buffer.concat(chunks) : undefined;++ return new Request(url.toString(), {+ method,+ headers,+ body: bodyBuffer as BodyInit | null | undefined,+ });+}++async function sendWebResponse(webResponse: Response, res: ServerResponse) {+ res.statusCode = webResponse.status;+ webResponse.headers.forEach((value, key) => {+ if (key.toLowerCase() === "transfer-encoding") return;+ res.setHeader(key, value);+ });++ if (!webResponse.body) {+ res.end();+ return;+ }++ const reader = webResponse.body.getReader();+ while (true) {+ const { done, value } = await reader.read();+ if (done) break;+ if (value) res.write(Buffer.from(value));+ }+ res.end();+}++function createLocalApiPlugin(): Plugin {+ const attachApiMiddleware = (middlewares: Connect.ServerStack) => {+ middlewares.use(async (req, res, next) => {+ const method = (req.method || "GET").toUpperCase();+ const pathname = new URL(req.url || "/", "http://localhost").pathname;+ const routeKey = `${method} ${pathname}`;+ const handler = API_ROUTES[routeKey];++ if (!handler) {+ next();+ return;+ }++ try {+ const request = await toWebRequest(req);+ const response = await handler(request);+ await sendWebResponse(response, res);+ } catch (error) {+ const message =+ error instanceof Error ? error.message : "Internal Server Error";+ res.statusCode = 500;+ res.setHeader("content-type", "application/json; charset=utf-8");+ res.end(JSON.stringify({ error: message }));+ }+ });+ };++ return {+ name: "local-api-routes",+ configureServer(server) {+ attachApiMiddleware(server.middlewares);+ },+ configurePreviewServer(server) {+ attachApiMiddleware(server.middlewares);+ },+ };+}// https://vite.dev/config/export default defineConfig({@@ -9,6 +116,7 @@ export default defineConfig({sourcemap: 'hidden',},plugins: [+ createLocalApiPlugin(),react({babel: {plugins: [