Commit fe950691 by liimin

init

0 parents
Showing 276 changed files with 3383 additions and 0 deletions
# Dependencies
node_modules/
# Build output (will be rebuilt in container)
dist/
# Git
.git/
.gitignore
# IDE
.vscode/
.idea/
*.swp
*.swo
# Test and coverage
coverage/
.nyc_output/
# Logs
*.log
npm-debug.log*
pnpm-debug.log*
# OS files
.DS_Store
Thumbs.db
# Environment files
.env
.env.*
# Docker
Dockerfile
.dockerignore
# Dependencies
node_modules/
# Build output
/dist/
@dist/
*.tsbuildinfo
# But keep template dist
!src/tools/report-tool/template/dist/
# IDE
.vscode/launch.json
.idea/
*.swp
*.swo
*~
.claude/
.cursor/
# OS
.DS_Store
Thumbs.db
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Environment
.env
.env.local
.env.*.local
# Temporary files
*.tmp
.cache/
# Test coverage
coverage/
.nyc_output/
# Coderio
coderio/
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Auto-fix and re-stage modified files (only staged files)
pnpm lint-staged
# Type check (entire project)
pnpm run typecheck
# Compile (skip re-running lint/format checks to save time)
pnpm exec tsup
# Source files
src/
scripts/
# Configuration files
tsconfig.json
tsup.config.ts
eslint.config.js
.prettierrc.json
.prettierignore
# Development files
.vscode/
.idea/
*.log
.DS_Store
# Test files
tests/
*.test.ts
*.spec.ts
# CI/CD
.github/
.gitlab-ci.yml
.travis.yml
# Documentation source (keep compiled docs)
*.md
!README.md
# Git
.git/
.gitignore
node_modules
dist
pnpm-lock.yaml
*.log
.DS_Store
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 140,
"tabWidth": 4,
"useTabs": false,
"bracketSpacing": true,
"arrowParens": "avoid"
}
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.preferences.includePackageJsonAutoImports": "auto",
"typescript.updateImportsOnFileMove.enabled": "always",
"files.associations": {
"*.ts": "typescript"
},
"eslint.validate": [
"typescript"
]
}
# 2026-08-11
## 项目分析:CodeRio (coderio)
- 定位:AI 驱动的 Figma-to-Code 工具,多智能体系统,高保真还原设计稿为生产级 React 代码。
- 技术栈:TypeScript + LangChain/LangGraph(StateGraph + SQLite checkpointer 断点续传)+ commander CLI;产物技术栈 React18+Vite+TS+TailwindCSS V4+Less。
- 核心 pipeline(src/graph.ts):INITIAL → PROCESS → CODE → VALIDATION 线性图。
- INITIAL:脚手架(initial-agent 类职责)。
- PROCESS(src/nodes/process):Figma API fetch+clean、下载图片、样式转 CSS,产出 protocol.json + images.json(src/tools/figma-tool, style-tool, hierarchy-tool)。
- CODE(src/nodes/code):后序遍历协议树,逐组件/Frame 调 LLM 生成代码,带 code-cache 增量缓存;import 根组件到 App.tsx。
- VALIDATION(src/nodes/validation):actor-critic 闭环(judger 诊断 → refiner 改码 → launch/Playwright 渲染 → pixelmatch 算 MAE),阈值 MAE<=3px、最多 3 轮,产出交互式 HTML 报告。
- 5 个 CLI 命令:d2c(主)、d2p、p2c、val、images;模式 code/with-report/full。
- 多智能体目录 src/agents:initial/commit/judger/launch/refiner-agent,主要在验证闭环与 skill 工作流中使用。
- 文档齐全:docs/development/ 有 4 节点中英开发文档 + framework.gif 架构图。
- 配置:~/.coderio/config.yaml(model provider/apiKey + figma token);需多模态视觉模型(推荐 gemini-3-pro-preview)。
- 用户需求:快速掌握项目。已提供架构图 + 上手路线分析。
FROM node:22
ARG VERSION
WORKDIR /app
RUN apt-get update \
&& apt-get install -y vim git build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy dependency files for version extraction
COPY package.json pnpm-lock.yaml ./
# Parse peerDependenciesMeta and install corresponding versions
RUN node -e " \
const fs = require('fs'); \
const { execSync } = require('child_process'); \
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8')); \
const lock = fs.readFileSync('./pnpm-lock.yaml', 'utf8'); \
const peers = Object.keys(pkg.peerDependenciesMeta || {}); \
const packages = peers.map(name => { \
const regex = new RegExp('[/\\\\s]' + name + '@([0-9.]+)[:\\\\)]'); \
const match = lock.match(regex); \
if (!match) throw new Error('Version not found in lockfile for: ' + name); \
return name + '@' + match[1]; \
}); \
console.log('Installing peerDependencies:', packages.join(' ')); \
if (packages.length > 0) { \
execSync('npm install -g ' + packages.join(' '), { stdio: 'inherit' }); \
} \
"
# Set environment variables
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/playwright-browsers
ENV NODE_PATH=/usr/local/lib/node_modules
# Install Playwright browsers and system dependencies
RUN npx playwright install --with-deps chromium \
&& chmod -R 755 $PLAYWRIGHT_BROWSERS_PATH
RUN npm install -g pnpm
# Install coderio
RUN npm install -g coderio@${VERSION#v}
# Clean up temporary files
RUN rm -f package.json pnpm-lock.yaml
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
# Initial 节点
## 用途
搭建空的 React + Vite + TypeScript 项目结构。
## 位置
`src/nodes/initial/index.ts`
## 工作流
```
Initial 节点
↓
创建 Agent
↓
生成脚手架
↓
验证结构
↓
返回成功
```
## 接口
**输入**:
```typescript
{
workspace: { app: string },
urlInfo: { name: string }
}
```
**输出**: `{}`(出错时抛出异常)
## 创建的文件
- `package.json`、`vite.config.ts`、`tsconfig.json`
- `index.html`
- `src/main.tsx`、`src/App.tsx`
## 实现
```typescript
export const initialProject = async (state: GraphState) => {
const agent = createInitialAgent(modelConfig);
await agent.run(initialAgentInstruction({
appPath: state.workspace.app,
appName: state.urlInfo.name
}));
// 验证必要文件存在
validateFiles(state.workspace.app, ESSENTIAL_FILES);
};
```
## 配置
Agent 使用 LLM,配置:
- 上下文: `AGENT_CONTEXT_WINDOW_TOKENS`
- 最大输出: `MAX_OUTPUT_TOKENS`
## 错误处理
抛出异常如果:
- 工作区路径未定义
- 脚手架后缺少必要文件
- Agent 执行失败
## 自定义
修改 agent 指令:
- `src/agents/initial-agent/instruction.ts`
- `src/agents/initial-agent/prompt.ts`
# Initial Node
## Purpose
Scaffolds empty React + Vite + TypeScript project structure.
## Location
`src/nodes/initial/index.ts`
## Workflow
```
Initial Node
↓
Create Agent
↓
Generate Scaffold
↓
Validate Structure
↓
Return Success
```
## Interface
**Input**:
```typescript
{
workspace: { app: string },
urlInfo: { name: string }
}
```
**Output**: `{}` (throws on error)
## Files Created
- `package.json`, `vite.config.ts`, `tsconfig.json`
- `index.html`
- `src/main.tsx`, `src/App.tsx`
## Implementation
```typescript
export const initialProject = async (state: GraphState) => {
const agent = createInitialAgent(modelConfig);
await agent.run(initialAgentInstruction({
appPath: state.workspace.app,
appName: state.urlInfo.name
}));
// Validate essential files exist
validateFiles(state.workspace.app, ESSENTIAL_FILES);
};
```
## Configuration
Agent uses LLM with:
- Context: `AGENT_CONTEXT_WINDOW_TOKENS`
- Max output: `MAX_OUTPUT_TOKENS`
## Error Handling
Throws if:
- Workspace path undefined
- Essential files missing post-scaffold
- Agent execution fails
## Customization
Modify agent instructions in:
- `src/agents/initial-agent/instruction.ts`
- `src/agents/initial-agent/prompt.ts`
# Process 节点
## 用途
通过 API 从 Figma 设计生成协议,下载资源,将样式转换为 CSS。
## 位置
`src/nodes/process/index.ts`
## 工作流
```
获取 Figma 数据
↓
下载图片
↓
简化图片节点
↓
处理样式 (Figma → CSS)
↓
生成协议结构
├─ 提取位置(层级)
├─ 生成结构(AI)
├─ 后处理结构
│ ├─ 标准化名称
│ ├─ 填充元素
│ └─ 注释路径
└─ 填充组件属性(仅可复用组件)
├─ 分组重复实例
├─ 提取数据变化(AI)
└─ 生成属性模式
↓
写入输出文件
```
## 接口
**输入**:
```typescript
{
urlInfo: { fileId: string, nodeId: string, name: string },
workspace: { process: string, app: string }
}
```
**输出**:
```typescript
{
protocol: Protocol,
figmaInfo: { thumbnail: string }
}
```
## 工作流步骤
1. **获取** → 通过 API 获取 Figma 文档 → `figma.json`
2. **下载** → 提取并下载图片 → `assets/`、`images.json`
3. **简化** → 用 URL 替换图片属性
4. **处理** → 将 Figma 样式转换为 CSS
5. **生成结构** → 创建组件层级(详见下文)
6. **写入** → 输出 `process/protocol.json`
### 结构生成(步骤 5 详解)
这是核心的 AI 驱动转换阶段:
```typescript
// 1. 提取层级位置
const positions = extractNodePositionsHierarchical(frames);
// → { "node-id": { x, y, w, h, children: {...} } }
// 2. 使用 AI 生成结构
const structure = await callModel({
prompt: generateStructurePrompt({ positions, width }),
imageUrls: thumbnailUrl, // 视觉上下文
responseFormat: 'json_object',
});
// → 带语义命名的组件树
// 3. 后处理结构
postProcessStructure(structure, frames);
// → 标准化名称、填充元素、注释路径
// 4. 填充可复用组件的属性
await populateComponentProps(structure, frames, thumbnailUrl);
// → 分组重复实例,提取数据变化,生成属性
```
**子步骤:**
**5.1 提取位置**
- 递归遍历 Figma 树
- 提取每个节点的 `{x, y, width, height}`
- 保留父子层级关系
**5.2 AI 结构生成**
- 输入:位置数据 + 缩略图
- 输出:语义化组件树,包含:
- 组件名称(如 "Header"、"ProductCard")
- 每个组件要包含的元素 ID
- 组件关系(父子)
**5.3 后处理**
- **标准化名称**:转换为 kebab-case 用于文件路径
- **填充元素**:用实际 Figma 节点替换元素 ID
- **注释路径**:生成文件路径(`@/components/header`)
**5.4 属性提取**(仅可复用组件)
此步骤**仅处理标记为可复用的组件**(重复实例):
**可复用组件的条件:**
- 具有相同的 `componentName`
- 设计中有多个实例(如 3+ 个产品卡片)
- 由 AI 在结构生成时检测
**处理流程:**
1. 按 `componentName` 分组实例
2. 检查 `group.length > 1`(多个实例)
3. AI 提取实例间的数据变化:
```json
{
"props": [
{ "key": "title", "type": "string" },
{ "key": "imageUrl", "type": "string" }
],
"state": [
{ "title": "产品 A", "imageUrl": "..." },
{ "title": "产品 B", "imageUrl": "..." }
]
}
```
4. 将重复项合并为:
- 单个组件模板
- 用于 `.map()` 迭代的数据数组
**非可复用组件**(唯一/单个实例)完全跳过此步骤。
## 协议结构
协议是表示组件层级的**递归树结构**:
```typescript
interface Protocol {
id: string; // 组件 ID(如 "Header")
data: FrameData; // 组件数据
children?: Protocol[]; // 嵌套子组件
}
interface FrameData {
name: string; // 组件名称
purpose: string; // 语义描述
kebabName?: string; // 文件友好名称(如 "task-card")
path?: string; // 文件路径(如 "components/task-card")
elements: FigmaNode[]; // 原始 Figma 节点
layout?: LayoutInfo; // 位置、尺寸、间距
// 仅可复用组件:
componentName?: string; // 模板名称
componentPath?: string; // 模板路径
props?: PropSchema[]; // 属性定义
states?: StateData[]; // 用于 .map() 的数据变化
}
```
**关键点:**
- 树结构映射组件层级
- 每个节点包含渲染数据 + 元数据
- 可复用组件具有 `props` 和 `states`
- 非可复用组件仅有基础数据
## 实现
```typescript
export const generateProtocol = async (state: GraphState) => {
// 获取和处理
const { document, imageNodesMap } = await executeFigmaAndImagesActions(state.urlInfo, assetsDir, processDir);
// 转换
const simplified = figmaTool.simplifyImageNodes(document, imageNodesMap);
const styled = figmaTool.processedStyle(simplified);
const protocol = await generateStructure(styled);
// 写入输出
writeFile(state.workspace.process, 'protocol.json', protocol);
return { protocol, figmaInfo: { thumbnail: styled.thumbnailUrl } };
};
```
## CLI 使用
```bash
coderio f2p <figma-url> # 完整协议
coderio images <figma-url> # 仅图片
```
## 配置
需要配置中的 Figma API token:
```typescript
const token = getFigmaConfig().token;
```
## 错误处理
- 无效 URL → 抛出异常
- 缺少 token → 抛出异常
- 图片下载失败 → 记录警告,继续
- 结构生成失败 → 抛出异常
## 性能
- 图片并行下载(可配置并发数)
- Figma 响应可缓存
- 大型设计的样式处理占用 CPU
# Process Node
## Purpose
Generates protocol from Figma design via API, downloads assets, converts styles to CSS.
## Location
`src/nodes/process/index.ts`
## Workflow
```
Fetch Figma Data
↓
Download Images
↓
Simplify Image Nodes
↓
Process Styles (Figma → CSS)
↓
Generate Protocol Structure
├─ Extract Positions (Hierarchical)
├─ Generate Structure (AI)
├─ Post Process Structure
│ ├─ Normalize Names
│ ├─ Populate Elements
│ └─ Annotate Paths
└─ Populate Component Props (Reusable Components Only)
├─ Group Repeated Instances
├─ Extract Data Variations (AI)
└─ Generate Props Schema
↓
Write Output Files
```
## Interface
**Input**:
```typescript
{
urlInfo: { fileId: string, nodeId: string, name: string },
workspace: { process: string, app: string }
}
```
**Output**:
```typescript
{
protocol: Protocol,
figmaInfo: { thumbnail: string }
}
```
## Workflow Steps
1. **Fetch** → Get Figma document via API → `figma.json`
2. **Download** → Extract and download images → `assets/`, `images.json`
3. **Simplify** → Replace image properties with URLs
4. **Process** → Convert Figma styles to CSS
5. **Generate Structure** → Create component hierarchy (detailed below)
6. **Write** → Output `protocol.json`
### Structure Generation (Step 5 Detail)
This is the core AI-powered transformation phase:
```typescript
// 1. Extract hierarchical positions
const positions = extractNodePositionsHierarchical(frames);
// → { "node-id": { x, y, w, h, children: {...} } }
// 2. Generate structure with AI
const structure = await callModel({
prompt: generateStructurePrompt({ positions, width }),
imageUrls: thumbnailUrl, // Visual context
responseFormat: 'json_object'
});
// → Component tree with semantic naming
// 3. Post-process structure
postProcessStructure(structure, frames);
// → Normalize names, populate elements, annotate paths
// 4. Populate props for reusable components only
await populateComponentProps(structure, frames, thumbnailUrl);
// → Groups repeated instances, extracts data variations, generates props
```
**Sub-steps:**
**5.1 Extract Positions**
- Traverses Figma tree recursively
- Extracts `{x, y, width, height}` for each node
- Preserves parent-child hierarchy
**5.2 AI Structure Generation**
- Input: Position data + thumbnail image
- Output: Semantic component tree with:
- Component names (e.g., "Header", "ProductCard")
- Element IDs to include in each component
- Component relationships (parent-child)
**5.3 Post-Processing**
- **Normalize Names**: Convert to kebab-case for file paths
- **Populate Elements**: Replace element IDs with actual Figma nodes
- **Annotate Paths**: Generate file paths (`@/components/header`)
**5.4 Props Extraction** (Reusable Components Only)
This step **only processes components marked as reusable** (repeated instances):
**What qualifies as reusable:**
- Components with same `componentName`
- Multiple instances in the design (e.g., 3+ product cards)
- Detected by AI during structure generation
**Process:**
1. Groups instances by `componentName`
2. Checks if `group.length > 1` (multiple instances)
3. AI extracts data variations across instances:
```json
{
"props": [
{ "key": "title", "type": "string" },
{ "key": "imageUrl", "type": "string" }
],
"state": [
{ "title": "Product A", "imageUrl": "..." },
{ "title": "Product B", "imageUrl": "..." }
]
}
```
4. Collapses duplicates into:
- Single component template
- Data array for `.map()` iteration
**Non-reusable components** (unique/single instances) skip this step entirely.
## Protocol Structure
The protocol is a **recursive tree structure** representing the component hierarchy:
```typescript
interface Protocol {
id: string; // Component ID (e.g., "Header")
data: FrameData; // Component data
children?: Protocol[]; // Nested child components
}
interface FrameData {
name: string; // Component name
purpose: string; // Semantic description
kebabName?: string; // File-friendly name (e.g., "task-card")
path?: string; // File path (e.g., "components/task-card")
elements: FigmaNode[]; // Original Figma nodes
layout?: LayoutInfo; // Position, size, spacing
// For reusable components only:
componentName?: string; // Template name
componentPath?: string; // Template path
props?: PropSchema[]; // Props definition
states?: StateData[]; // Data variations for .map()
}
```
**Key points:**
- Tree structure mirrors component hierarchy
- Each node contains rendering data + metadata
- Reusable components have `props` and `states`
- Non-reusable components only have basic data
## Implementation
```typescript
export const generateProtocol = async (state: GraphState) => {
// Fetch and process
const { document, imageNodesMap } = await executeFigmaAndImagesActions(
state.urlInfo, assetsDir, processDir
);
// Transform
const simplified = figmaTool.simplifyImageNodes(document, imageNodesMap);
const styled = figmaTool.processedStyle(simplified);
const protocol = await generateStructure(styled);
// Write output
writeFile(state.workspace.process, 'protocol.json', protocol);
return { protocol, figmaInfo: { thumbnail: styled.thumbnailUrl } };
};
```
## CLI Usage
```bash
coderio f2p <figma-url> # Full protocol
coderio images <figma-url> # Images only
```
## Configuration
Requires Figma API token in config:
```typescript
const token = getFigmaConfig().token;
```
## Error Handling
- Invalid URL → throws
- Missing token → throws
- Image download failure → logs warning, continues
- Structure generation failure → throws
## Performance
- Images downloaded in parallel (configurable concurrency)
- Figma responses cacheable
- Style processing CPU-intensive for large designs
# Code 节点
## 用途
使用 LLM agent 从协议生成 React + TypeScript 组件。
## 位置
`src/nodes/code/index.ts`
## 工作流
```
遍历并扁平化树(后序 DFS)
↓
节点分类
├─ 叶子组件(无子节点)
└─ 容器组件(有子节点)
↓
生成代码(并行处理)
├─ 叶子 → generateComponent()
│ ├─ 输入:协议 + 缩略图
│ └─ 输出:独立组件
│
└─ 容器 → generateFrame()
├─ 输入:协议 + 缩略图 + 子组件导入
└─ 输出:组合子组件的容器
↓
写入组件文件
↓
标记已生成(缓存)
↓
注入根组件到 App.tsx
↓
完成
```
## 接口
**输入**:
```typescript
{
protocol: Protocol,
workspace: { app: string, process: string }
}
```
**输出**: `{}`(文件写入磁盘)
## 工作流步骤
1. **扁平化树** → 后序 DFS 遍历(先子节点,再父节点)
2. **节点分类** → 区分叶子组件与容器组件
3. **生成代码** → 针对不同类型使用不同策略
4. **写入文件** → 保存到 `src/components/`
5. **缓存** → 标记已生成以避免重复生成
6. **注入** → 用根组件更新 `App.tsx`
### 节点分类(步骤 2)
```typescript
const isLeaf = !currentNode.children?.length;
if (isLeaf) {
// 叶子组件:无子节点,独立组件
await generateComponent(currentNode, state, assetFilesList, progressInfo);
} else {
// 容器组件:有子节点,组合它们
await generateFrame(currentNode, state, assetFilesList, progressInfo);
}
```
**叶子组件:**
- 无子组件
- 独立的 UI 元素
- 示例:Button、Icon、Text block、Image
- 生成完整实现
**容器组件(Frame):**
- 包含子组件
- 作为布局容器
- 示例:Header(包含 Logo + Nav)、ProductGrid(包含 ProductCards)
- 生成时导入并组合子组件
### 代码生成(步骤 3 详解)
**传入 LLM 的输入:**
- **协议数据**:组件结构、属性、元素、布局
- **设计稿缩略图**:Figma 设计截图(视觉参考)
- **资源文件**:`src/assets/` 中的可用图片
- **样式配置**:Tailwind CSS 配置
```typescript
// 对于 Frame(包含子组件的容器)
await callModel({
question: generateFramePrompt({
frameDetails: JSON.stringify(node.data),
childrenImports: JSON.stringify(childrenImports),
styling: JSON.stringify(DEFAULT_STYLING),
assetFiles: assetFilesList,
}),
imageUrls: state.figmaInfo.thumbnail, // 🎨 视觉参考
});
// 对于 Component(叶子节点或可复用组件)
await callModel({
question: generateComponentPrompt({
componentName,
componentDetails: JSON.stringify(node.data),
styling: JSON.stringify(DEFAULT_STYLING),
assetFiles: assetFilesList,
}),
imageUrls: state.figmaInfo.thumbnail, // 🎨 视觉参考
});
```
**为什么缩略图很重要:**
- AI 能看到实际设计,而不仅仅是数据
- 提高视觉准确性(颜色、间距、对齐)
- 帮助理解 UI 的语义用途
## 组件结构
```typescript
// 生成: src/components/Button/index.tsx
import React from 'react';
interface ButtonProps {
children?: React.ReactNode;
onClick?: () => void;
}
export const Button: React.FC<ButtonProps> = ({ children, onClick }) => (
<button onClick={onClick} className="flex items-center px-4 py-2">
{children}
</button>
);
```
## 代码缓存
缓存在 `workspace.checkpoint/checkpoint.json`:
```typescript
{
"generatedComponents": [
"Header",
"Footer"
],
"appInjected": true
}
```
协议更改时缓存失效。
## 实现
```typescript
export async function generateCode(state: GraphState) {
const cache = loadCodeCache(state.workspace);
// 生成组件(DFS)
const totalComponents = await processNode(state, cache);
// 注入根组件
await injectRootComponentToApp(state, cache);
logger.printSuccessLog(`生成 ${totalComponents} 个组件`);
}
```
## LLM 配置
```typescript
const modelConfig = {
contextWindowTokens: CODE_CONTEXT_WINDOW,
maxOutputTokens: CODE_MAX_OUTPUT,
temperature: 0.2, // 低温度保持一致性
};
```
## 错误处理
- 缺少协议 → 抛出异常
- 组件生成失败 → 记录警告,继续
- 部分成功 → 报告总生成数
## 输出
- 严格类型的 TypeScript
- Tailwind CSS 样式
- 命名导出
- 每个目录一个组件
## 自定义
修改 `src/nodes/code/prompt.ts` 中的提示
# Code Node
## Purpose
Generates React + TypeScript components from protocol using LLM agents.
## Location
`src/nodes/code/index.ts`
## Workflow
```
Traverse & Flatten Tree (Post-order DFS)
↓
Classify Nodes
├─ Leaf Components (no children)
└─ Frame Components (with children)
↓
Generate Code (Parallel Processing)
├─ Leaf → generateComponent()
│ ├─ Input: Protocol + Thumbnail
│ └─ Output: Self-contained component
│
└─ Frame → generateFrame()
├─ Input: Protocol + Thumbnail + Child imports
└─ Output: Container composing children
↓
Write Component Files
↓
Mark as Generated (Cache)
↓
Inject Root to App.tsx
↓
Complete
```
## Interface
**Input**:
```typescript
{
protocol: Protocol,
workspace: { app: string, process: string }
}
```
**Output**: `{}` (files written to disk)
## Workflow Steps
1. **Flatten Tree** → Post-order DFS traversal (children first, then parent)
2. **Classify Nodes** → Separate into leaf components vs. frame containers
3. **Generate Code** → Different strategies for each type
4. **Write Files** → Save to `src/components/`
5. **Cache** → Mark as generated to avoid regeneration
6. **Inject** → Update `App.tsx` with root component
### Node Classification (Step 2)
```typescript
const isLeaf = !currentNode.children?.length;
if (isLeaf) {
// Leaf Component: No children, self-contained
await generateComponent(currentNode, state, assetFilesList, progressInfo);
} else {
// Frame Component: Has children, composes them
await generateFrame(currentNode, state, assetFilesList, progressInfo);
}
```
**Leaf Components:**
- No child components
- Self-contained UI elements
- Examples: Button, Icon, Text block, Image
- Generated with full implementation
**Frame Components:**
- Contains child components
- Acts as layout container
- Examples: Header (contains Logo + Nav), ProductGrid (contains ProductCards)
- Generated with child component imports and composition
### Code Generation (Step 3 Detail)
**Inputs to LLM:**
- **Protocol data**: Component structure, props, elements, layout
- **Design thumbnail**: Figma design screenshot (visual reference)
- **Asset files**: Available images in `src/assets/`
- **Styling config**: Tailwind CSS configuration
```typescript
// For frames (containers with children)
await callModel({
question: generateFramePrompt({
frameDetails: JSON.stringify(node.data),
childrenImports: JSON.stringify(childrenImports),
styling: JSON.stringify(DEFAULT_STYLING),
assetFiles: assetFilesList
}),
imageUrls: state.figmaInfo.thumbnail // 🎨 Visual reference
});
// For components (leaf nodes or reusable)
await callModel({
question: generateComponentPrompt({
componentName,
componentDetails: JSON.stringify(node.data),
styling: JSON.stringify(DEFAULT_STYLING),
assetFiles: assetFilesList
}),
imageUrls: state.figmaInfo.thumbnail // 🎨 Visual reference
});
```
**Why thumbnail matters:**
- AI sees the actual design, not just data
- Improves visual accuracy (colors, spacing, alignment)
- Helps with semantic understanding of UI purpose
## Component Structure
```typescript
// Generated: src/components/Button/index.tsx
import React from 'react';
interface ButtonProps {
children?: React.ReactNode;
onClick?: () => void;
}
export const Button: React.FC<ButtonProps> = ({ children, onClick }) => (
<button onClick={onClick} className="flex items-center px-4 py-2">
{children}
</button>
);
```
## Code Cache
Cached in `workspace.checkpoint/checkpoint.json`:
```typescript
{
"generatedComponents": [
"Header",
"Footer"
],
"appInjected": true
}
```
Cache invalidated on protocol changes.
## Implementation
```typescript
export async function generateCode(state: GraphState) {
const cache = loadCodeCache(state.workspace);
// Generate components (DFS)
const totalComponents = await processNode(state, cache);
// Inject root
await injectRootComponentToApp(state, cache);
logger.printSuccessLog(`Generated ${totalComponents} components`);
}
```
## LLM Configuration
```typescript
const modelConfig = {
contextWindowTokens: CODE_CONTEXT_WINDOW,
maxOutputTokens: CODE_MAX_OUTPUT,
temperature: 0.2 // Low for consistency
};
```
## Error Handling
- Missing protocol → throws
- Component generation failure → logs warning, continues
- Partial success → reports total generated
## Output
- TypeScript with strict types
- Tailwind CSS for styling
- Named exports
- One component per directory
## Customization
Modify prompts in `src/nodes/code/prompt.ts`
# Validation 节点
## 用途
通过视觉比较和位置指标验证生成的 UI 与 Figma 设计的一致性。
## 位置
`src/nodes/validation/index.ts`
## 工作流
```
验证循环(最多 3 次迭代)
│
├─ 迭代开始
│ ├─ 启动开发服务器
│ │ ├─ 安装依赖(仅首次)
│ │ ├─ 构建项目
│ │ └─ 修复编译/运行时错误
│ │
│ ├─ 验证位置
│ │ ├─ 截取屏幕截图(Figma + 渲染结果)
│ │ ├─ 提取元素位置
│ │ ├─ 比较位置
│ │ └─ 计算 MAE 指标
│ │
│ ├─ 检查结果
│ │ ├─ MAE <= 5px? → 通过 → 退出循环
│ │ └─ MAE > 5px? → 继续优化
│ │
│ ├─ 诊断和修复(针对每个错位组件)
│ │ ├─ Judger Agent:分析错误原因
│ │ ├─ Refiner Agent:生成代码修复
│ │ └─ 应用修复到组件文件
│ │
│ └─ 重新启动
│ ├─ 停止旧服务器
│ ├─ 构建修复后的代码
│ ├─ 修复新错误(如有)
│ └─ 启动新服务器
│
└─ 生成最终报告
├─ 标注位置的截图
├─ 像素差异热力图
├─ 交互式 HTML 报告
└─ 指标摘要(MAE、SAE、错位数量)
```
## 接口
**输入**:
```typescript
{
protocol: Protocol,
figmaInfo: { thumbnail: string },
workspace: { app: string, process: string },
config?: { validationMode?: 'codeOnly' | 'reportOnly' | 'full' }
}
```
**输出**: 失败时抛出异常,将报告写入磁盘
## 工作流步骤
验证在**迭代循环**中运行(最多 3 次迭代):
### 每次迭代:
**1. 启动开发服务器**
```typescript
// 第一次迭代:完整设置
await launch(workspace.app, {
skipDependencyInstall: false, // 安装依赖
});
// 构建项目、修复错误、启动服务器
```
**2. 验证位置**
- 截取渲染 UI 和 Figma 设计的屏幕截图
- 从两者提取元素位置
- 计算位置误差(MAE、SAE)
**3. 检查通过/失败**
```typescript
if (currentMae <= config.targetMae) {
// 通过:退出循环
logger.printSuccessLog('验证通过!');
break;
}
```
**4. 诊断错误**(针对每个错位组件)
```typescript
// Judger Agent 分析位置错误的原因
const diagnosis = await judger.run(judgerInstruction, [screenshot]);
// 返回:errorType, refineInstructions
// errorType 示例:
// - "missing flexbox gap"(缺少 flexbox 间距)
// - "incorrect padding"(内边距错误)
// - "wrong position absolute values"(绝对定位值错误)
```
**5. 应用修复**(针对每个错位组件)
```typescript
// Refiner Agent 生成代码修复
const refinerResult = await refiner.run(refinerInstruction);
// 应用编辑到组件文件
```
**6. 重新启动**
```typescript
// 停止旧服务器
await launchTool.stopDevServer(serverKey);
// 使用修复重新启动
await launch(workspace.app, {
skipDependencyInstall: true, // 跳过依赖(已安装)
});
// 构建、修复新错误、重启服务器
```
**7. 循环** → 进入下一次迭代的步骤 2
### 循环完成后:
**8. 生成报告**
- 标注错位元素的截图
- 像素差异热力图
- 包含指标的交互式 HTML 报告
- 帮助用户理解验证结果
## 验证模式
- **CodeOnly**:跳过验证,直接提交生成代码
- **Full**(默认):包含优化循环,完整报告
- **ReportOnly**:仅位置检查,最小报告
## 指标
**MAE(平均绝对误差)**:主要指标
```typescript
MAE = Σ|rendered_pos - figma_pos| / n
```
- **通过**: MAE < 5px
- **失败**: MAE ≥ 5px
其他指标:MSE、RMSE、准确率、最大距离
## 实现
```typescript
export const runValidation = async (state: GraphState) => {
const result = await validationLoop({
protocol: state.protocol,
figmaThumbnailUrl: state.figmaInfo.thumbnail,
outputDir: path.join(state.workspace.process, 'validation'),
workspace: state.workspace,
config: { mode: state.config?.validationMode ?? 'full' },
});
if (!result.validationPassed) {
throw new Error(`MAE ${result.finalMae}px 超过阈值`);
}
};
```
## 报告输出
```
validation/
├── index.html # 交互式报告
├── processed.json # 处理过程JSON
├── comparison_screenshots # 迭代过程对比图
```
查看:`open process/validation/index.html`
## 优化循环
最多 3 次迭代:
1. 识别错位元素
2. LLM 生成修复
3. 应用代码更改
4. 重新验证
通过或达到最大迭代次数时停止。
## Agent
- **Judge**:分析指标,决定通过/失败
- **Refiner**:为错位生成代码修复
## 错误处理
- 缺少协议/缩略图 → 抛出异常
- 开发服务器失败 → 抛出异常
- 截图超时 → 抛出异常
- 验证失败 → 抛出带 MAE 的异常
## 性能
- 截图:可调整质量
- 位置提取:可并行化
- Figma 缩略图:可缓存
# Validation Node
## Purpose
Validates generated UI against Figma design through visual comparison and position metrics.
## Location
`src/nodes/validation/index.ts`
## Workflow
```
Validation Loop (Max 3 Iterations)
│
├─ Iteration Start
│ ├─ Launch Dev Server
│ │ ├─ Install dependencies (first time only)
│ │ ├─ Build project
│ │ └─ Fix compilation/runtime errors
│ │
│ ├─ Validate Positions
│ │ ├─ Capture screenshots (Figma + Rendered)
│ │ ├─ Extract element positions
│ │ ├─ Compare positions
│ │ └─ Calculate MAE metrics
│ │
│ ├─ Check Result
│ │ ├─ MAE <= 5px? → PASS → Exit loop
│ │ └─ MAE > 5px? → Continue to refinement
│ │
│ ├─ Diagnose & Fix (per misaligned component)
│ │ ├─ Judger Agent: Analyze error cause
│ │ ├─ Refiner Agent: Generate code fixes
│ │ └─ Apply fixes to component files
│ │
│ └─ Re-launch
│ ├─ Stop old server
│ ├─ Build with fixes
│ ├─ Fix new errors (if any)
│ └─ Start new server
│
└─ Generate Final Report
├─ Annotated screenshots (marked positions)
├─ Pixel difference heatmap
├─ Interactive HTML report
└─ Metrics summary (MAE, SAE, misaligned count)
```
## Interface
**Input**:
```typescript
{
protocol: Protocol,
figmaInfo: { thumbnail: string },
workspace: { app: string, process: string },
config?: { validationMode?: 'codeOnly' | 'reportOnly' | 'full' }
}
```
**Output**: Throws on failure, writes report to disk
## Workflow Steps
The validation runs in an **iterative loop** (max 3 iterations):
### Per Iteration:
**1. Launch Dev Server**
```typescript
// First iteration: full setup
await launch(workspace.app, {
skipDependencyInstall: false, // Install deps
});
// Builds project, fixes errors, starts server
```
**2. Validate Positions**
- Screenshot rendered UI and Figma design
- Extract element positions from both
- Calculate position errors (MAE, SAE)
**3. Check Pass/Fail**
```typescript
if (currentMae <= config.targetMae) {
// PASS: Exit loop
logger.printSuccessLog('Validation passed!');
break;
}
```
**4. Diagnose Errors** (per misaligned component)
```typescript
// Judger Agent analyzes WHY position is wrong
const diagnosis = await judger.run(judgerInstruction, [screenshot]);
// Returns: errorType, refineInstructions
// Examples of errorType:
// - "missing flexbox gap"
// - "incorrect padding"
// - "wrong position absolute values"
```
**5. Apply Fixes** (per misaligned component)
```typescript
// Refiner Agent generates code fixes
const refinerResult = await refiner.run(refinerInstruction);
// Applies edits to component files
```
**6. Re-launch**
```typescript
// Stop old server
await launchTool.stopDevServer(serverKey);
// Re-launch with fixes
await launch(workspace.app, {
skipDependencyInstall: true, // Skip deps (already installed)
});
// Builds, fixes new errors, restarts server
```
**7. Loop** → Go to step 2 for next iteration
### After Loop Completes:
**8. Generate Report**
- Annotated screenshots showing misaligned elements
- Pixel difference heatmap
- Interactive HTML report with metrics
- Helps users understand validation results
## Validation Modes
- **CodeOnly**: Skip validation and commit generated code
- **Full** (default): Includes refinement loop, complete report
- **ReportOnly**: Position check only, minimal report
## Metrics
**MAE (Mean Absolute Error)**: Primary metric
```typescript
MAE = Σ|rendered_pos - figma_pos| / n
```
- **Pass**: MAE < 5px
- **Fail**: MAE ≥ 5px
Additional metrics: MSE, RMSE, accuracy rate, max distance
## Implementation
```typescript
export const runValidation = async (state: GraphState) => {
const result = await validationLoop({
protocol: state.protocol,
figmaThumbnailUrl: state.figmaInfo.thumbnail,
outputDir: path.join(state.workspace.process, 'validation'),
workspace: state.workspace,
config: { mode: state.config?.validationMode ?? 'full' }
});
if (!result.validationPassed) {
throw new Error(`MAE ${result.finalMae}px exceeds threshold`);
}
};
```
## Report Output
```
validation/
├── index.html # Interactive report
├── processed.json # Processed iterations and final result
└── comparison_screenshots # Iteration comparison screenshots
```
View: `open process/validation/index.html`
## Refinement Loop
Max 3 iterations:
1. Identify misaligned elements
2. LLM generates fixes
3. Apply code changes
4. Revalidate
Stops on pass or max iterations.
## Agents
- **Judge**: Analyzes metrics, decides pass/fail
- **Refiner**: Generates code fixes for misalignments
## Error Handling
- Missing protocol/thumbnail → throws
- Dev server failure → throws
- Screenshot timeout → throws
- Validation failure → throws with MAE
## Performance
- Screenshots: Adjustable quality
- Position extraction: Parallelizable
- Figma thumbnail: Cacheable
# 节点开发指南
## 概述
CodeRio 通过四节点管道将 Figma 设计转换为 React 代码。每个节点处理特定的转换阶段。
## 管道
```
Figma 设计 → [Initial] → [Process] → [Code] → [Validation] → 生产代码
```
## 节点
### [Initial 节点](./01-initial-node-zh.md)
搭建 React + Vite + TypeScript 项目结构。
**输入/输出**: `workspace` → 空项目及配置文件
### [Process 节点](./02-process-node-zh.md)
通过 API 从 Figma 生成协议,下载资源,转换样式。
**输入/输出**: `figmaUrl` → `protocol.json`、图片、元数据
### [Code 节点](./03-code-node-zh.md)
使用 LLM agent 从协议生成 React 组件。
**输入/输出**: `protocol` → TypeScript 组件 + Tailwind CSS
### [Validation 节点](./04-validation-node-zh.md)
通过视觉比较和位置指标验证 UI 准确性。
**输入/输出**: `protocol`、`figmaThumb` → 验证报告及 MAE 指标
---
## GraphState 接口
```typescript
interface GraphState {
urlInfo: { fileId: string; nodeId: string; name: string; };
workspace: { root: string; process: string; app: string; };
protocol?: Protocol;
figmaInfo?: { thumbnail: string; };
config?: { validationMode?: 'codeOnly' | 'reportOnly' | 'full'; };
}
```
## 节点模板
```typescript
import { GraphState } from '../../state';
import { logger } from '../../utils/logger';
export const myNode = async (state: GraphState) => {
logger.printInfoLog('开始节点...');
// 验证输入
if (!state.requiredField) {
throw new Error('缺少必需字段');
}
// 处理
const result = await process(state);
// 返回状态更新
return { myResult: result };
};
```
## 开发
```bash
# 安装
pnpm install
# 构建
pnpm build
# 测试节点
tsx src/nodes/<node>/index.ts
# 运行测试
pnpm test
```
## 添加新节点
1. 创建 `src/nodes/my-node/index.ts`
2. 实现节点函数
3. 添加到 `src/graph.ts`
4. 在 `tests/nodes/` 编写测试
5. 在 `docs/development/` 编写文档
## 资源
- [测试指南](../../tests/README.md)
- [架构文档](../architecture.md)
- [贡献指南](../../CONTRIBUTING.md)
# Node Development Guide
## Overview
CodeRio transforms Figma designs into React code through a four-node pipeline. Each node handles a specific transformation phase.
## Pipeline
```
Figma Design → [Initial] → [Process] → [Code] → [Validation] → Production Code
```
## Nodes
### [Initial Node](./01-initial-node.md)
Scaffolds React + Vite + TypeScript project structure.
**I/O**: `workspace` → Empty project with config files
### [Process Node](./02-process-node.md)
Generates protocol from Figma via API, downloads assets, converts styles.
**I/O**: `figmaUrl` → `protocol.json`, images, metadata
### [Code Node](./03-code-node.md)
Generates React components from protocol using LLM agents.
**I/O**: `protocol` → TypeScript components with Tailwind CSS
### [Validation Node](./04-validation-node.md)
Validates UI accuracy through visual comparison and position metrics.
**I/O**: `protocol`, `figmaThumb` → Validation report with MAE metrics
---
## GraphState Interface
```typescript
interface GraphState {
urlInfo: { fileId: string; nodeId: string; name: string; };
workspace: { root: string; process: string; app: string; };
protocol?: Protocol;
figmaInfo?: { thumbnail: string; };
config?: { validationMode?: 'codeOnly' | 'reportOnly' | 'full'; };
}
```
## Node Template
```typescript
import { GraphState } from '../../state';
import { logger } from '../../utils/logger';
export const myNode = async (state: GraphState) => {
logger.printInfoLog('Starting node...');
// Validate inputs
if (!state.requiredField) {
throw new Error('Missing required field');
}
// Process
const result = await process(state);
// Return state updates
return { myResult: result };
};
```
## Development
```bash
# Install
pnpm install
# Build
pnpm build
# Test node
tsx src/nodes/<node>/index.ts
# Run tests
pnpm test
```
## Adding a Node
1. Create `src/nodes/my-node/index.ts`
2. Implement node function
3. Add to `src/graph.ts`
4. Write tests in `tests/nodes/`
5. Document in `docs/development/`
## Resources
- [Testing Guide](../../tests/README.md)
- [Architecture](../architecture.md)
- [Contributing](../../CONTRIBUTING.md)
import tseslint from 'typescript-eslint';
export default [
{
ignores: [
'**/dist/**',
'**/node_modules/**',
'coderio/**',
'scripts/**',
'skills/**',
'examples/**',
'src/tools/report-tool/template/**',
'coverage/**',
'tests/**',
'*.config.ts',
'*.config.js',
],
},
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
globals: {
__VERSION__: 'readonly',
},
},
rules: {
// TypeScript-specific rules
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
// JavaScript rules
'prefer-const': 'error',
'no-var': 'error',
},
},
];
This diff could not be displayed because it is too large.
[
{
"id": "728:11687",
"name": "ul",
"format": "svg",
"url": "@/assets/ul-728-11687.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/246494d8-86b1-402d-8fef-fb6620a0b15d",
"success": true
},
{
"id": "728:11712",
"name": "svg",
"format": "svg",
"url": "@/assets/svg-728-11712.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/1eb74d4b-c5cf-42f9-9dcd-e9498ee241cd",
"success": true
},
{
"id": "728:11716",
"name": "div",
"format": "svg",
"url": "@/assets/div-728-11716.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/dc7f94a7-1a07-49e8-a6cf-8a2fbd0c8d62",
"success": true
},
{
"id": "728:11786",
"name": "svg",
"format": "svg",
"url": "@/assets/svg-728-11786.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/5ffc6444-270e-4ed3-881a-56cdd30e58d6",
"success": true
},
{
"id": "728:11792",
"name": "div:after",
"format": "svg",
"url": "@/assets/div-after-728-11792.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/f75e2ac9-95c0-4e78-ad22-130779b0d483",
"success": true
},
{
"id": "728:11797",
"name": "div:after",
"format": "svg",
"url": "@/assets/div-after-728-11797.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/3e512994-cc61-4494-b551-1678a3bd514b",
"success": true
},
{
"id": "728:11802",
"name": "div:after",
"format": "svg",
"url": "@/assets/div-after-728-11802.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/2fefe2bb-0134-48ba-9a08-0a09d3efad14",
"success": true
},
{
"id": "728:11813",
"name": "svg",
"format": "svg",
"url": "@/assets/svg-728-11813.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/72d803d1-e637-4e81-a8f1-02a90b7b1737",
"success": true
},
{
"id": "728:11286",
"name": "main",
"format": "png",
"url": "@/assets/main-728-11286.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/60df7b03-47c7-4481-8d4f-bf5148b8debf",
"success": true
}
]
\ No newline at end of file
This diff could not be displayed because it is too large.
{
"iterations": [
{
"iteration": 1,
"metrics": {
"mae": 4.9,
"sae": 3.234375,
"misalignedCount": 3
},
"components": [
{
"componentId": "Footer",
"componentPath": "/Users/moskenstraumen/Documents/Work/coderio/coderio/genma-test-collectio_728:11284/my-app/src/components/footer/index.tsx",
"elementIds": [
"728:11615"
],
"validationReport": {
"currentPosition": [
0,
7495
],
"targetPosition": [
0,
7493.921875
],
"absoluteError": [
0,
1.078125
]
},
"diagnosis": {
"errorType": "parent_spacing",
"rootCause": "Redundant wrapper div around Header in src/components/index.tsx adds an extra 1px border-b, pushing the Footer down.",
"visualEvidence": "Footer is positioned at 7495.0px instead of 7493.9px (difference of 1.1px, corresponding to the extra border).",
"codeEvidence": "src/components/index.tsx lines 12-14: Wrapper div has 'border-b'. Header component also has 'border-b'.",
"refineInstructions": [
"In src/components/index.tsx lines 12-14, replace the wrapper div code with just '<Header />'."
],
"toolsUsed": [
"FileEditor.read",
"HierarchyTool.lookup"
]
},
"refinerResult": {
"success": true,
"summary": [
"Successfully applied: Removed redundant wrapper div around Header in src/components/index.tsx."
],
"editsApplied": 1
},
"positionHistory": [
{
"iteration": 1,
"position": [
0,
7495
],
"error": [
0,
1.078125
],
"fixApplied": [
"Successfully applied: Removed redundant wrapper div around Header in src/components/index.tsx."
]
}
]
},
{
"componentId": "FooterLinks",
"componentPath": "/Users/moskenstraumen/Documents/Work/coderio/coderio/genma-test-collectio_728:11284/my-app/src/components/footer/footer-links/index.tsx",
"elementIds": [
"728:11617",
"728:11618",
"728:11619",
"728:11620",
"728:11621",
"728:11622",
"728:11623",
"728:11624",
"728:11625",
"728:11626",
"728:11627",
"728:11628",
"728:11629",
"728:11630",
"728:11631",
"728:11632",
"728:11633",
"728:11634",
"728:11635",
"728:11636",
"728:11637",
"728:11638",
"728:11639",
"728:11640",
"728:11641",
"728:11642",
"728:11643",
"728:11644",
"728:11645",
"728:11646",
"728:11647",
"728:11648",
"728:11649",
"728:11650",
"728:11651",
"728:11652",
"728:11653",
"728:11654",
"728:11655",
"728:11656",
"728:11657",
"728:11658",
"728:11659",
"728:11660",
"728:11661",
"728:11662",
"728:11663",
"728:11664",
"728:11665",
"728:11666",
"728:11667",
"728:11668",
"728:11669",
"728:11670",
"728:11671",
"728:11672",
"728:11673",
"728:11674",
"728:11675",
"728:11676",
"728:11677",
"728:11678",
"728:11679",
"728:11680",
"728:11681",
"728:11682",
"728:11683"
],
"validationReport": {
"currentPosition": [
20,
7535
],
"targetPosition": [
20,
7533.921875
],
"absoluteError": [
0,
1.078125
]
},
"diagnosis": {
"errorType": "pixel_misalignment",
"rootCause": "Agent analysis unavailable, do not apply any edits",
"visualEvidence": "N/A",
"codeEvidence": "N/A",
"refineInstructions": [],
"toolsUsed": []
},
"refinerResult": {
"success": false,
"summary": [
"Skipped - no instructions from judger"
],
"editsApplied": 0
},
"positionHistory": [
{
"iteration": 1,
"position": [
20,
7535
],
"error": [
0,
1.078125
],
"fixApplied": null
}
]
},
{
"componentId": "FooterBottom",
"componentPath": "/Users/moskenstraumen/Documents/Work/coderio/coderio/genma-test-collectio_728:11284/my-app/src/components/footer/footer-bottom/index.tsx",
"elementIds": [
"728:11684",
"728:11685",
"728:11686",
"728:11687",
"728:11703",
"728:11704",
"728:11705",
"728:11706",
"728:11707",
"728:11708",
"728:11709",
"728:11710",
"728:11711",
"728:11712",
"728:11715",
"728:11716"
],
"validationReport": {
"currentPosition": [
30,
8018
],
"targetPosition": [
30,
8016.921875
],
"absoluteError": [
0,
1.078125
]
},
"diagnosis": {
"errorType": "pixel_misalignment",
"rootCause": "Agent analysis unavailable, do not apply any edits",
"visualEvidence": "N/A",
"codeEvidence": "N/A",
"refineInstructions": [],
"toolsUsed": []
},
"refinerResult": {
"success": false,
"summary": [
"Skipped - no instructions from judger"
],
"editsApplied": 0
},
"positionHistory": [
{
"iteration": 1,
"position": [
30,
8018
],
"error": [
0,
1.078125
],
"fixApplied": null
}
]
}
],
"screenshotPath": "/Users/moskenstraumen/Documents/Work/coderio/coderio/genma-test-collectio_728:11284/process/validation/comparison_screenshots/iteration_1.webp"
},
{
"iteration": 2,
"metrics": {
"mae": 4.32,
"sae": 0,
"misalignedCount": 0
},
"components": [],
"screenshotPath": ""
},
{
"iteration": 3,
"metrics": {
"mae": 4.32,
"sae": 0,
"misalignedCount": 0
},
"components": [],
"screenshotPath": ""
}
],
"finalResult": {
"success": false,
"finalMae": 4.32,
"finalSae": 0,
"totalIterations": 3,
"misalignedCount": 0
}
}
\ No newline at end of file
This diff could not be displayed because it is too large.
node_modules/
dist/
build/
.env
.DS_Store
*.log
.vscode/
package-lock.json
yarn.lock
pnpm-lock.yaml
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>coderio-demo</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
{
"name": "coderio-demo",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "pnpm exec vite",
"build": "pnpm exec tsc && pnpm exec vite build",
"preview": "pnpm exec vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"@tailwindcss/vite": "^4.0.0",
"tailwindcss": "^4.0.0",
"typescript": "^5.2.2",
"vite": "^5.2.0",
"less": "^4.2.0",
"@types/node": "^20.12.7"
}
}
This diff could not be displayed because it is too large.
[
{
"id": "728:17676",
"name": "bg-circle.svg",
"format": "svg",
"url": "@/assets/bg-circle-svg-728-17676.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/2e3af3d6-483e-40c8-90f4-93144676e820",
"success": true
},
{
"id": "728:17693",
"name": "span:after",
"format": "svg",
"url": "@/assets/span-after-728-17693.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/42863a95-9fc1-4dd5-8703-cd347cf7ac84",
"success": true
},
{
"id": "728:17706",
"name": "div",
"format": "svg",
"url": "@/assets/div-728-17706.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/eb046e31-f76a-458d-a87f-e5e93b18d9d7",
"success": true
},
{
"id": "728:17780",
"name": "div",
"format": "svg",
"url": "@/assets/div-728-17780.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/6997ab70-fe1e-4388-8275-f98866d3f190",
"success": true
},
{
"id": "728:17799",
"name": "div",
"format": "svg",
"url": "@/assets/div-728-17799.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/88522136-8f58-45c8-8fad-0569ae265deb",
"success": true
},
{
"id": "728:17818",
"name": "div",
"format": "svg",
"url": "@/assets/div-728-17818.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/a8919984-e26c-4a6e-a701-6ddecabef35f",
"success": true
},
{
"id": "728:17837",
"name": "div",
"format": "svg",
"url": "@/assets/div-728-17837.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/97ed48c0-32c1-4d47-8a68-825bccb6017f",
"success": true
},
{
"id": "728:17855",
"name": "span:after",
"format": "svg",
"url": "@/assets/span-after-728-17855.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/3400e2c5-b303-43e1-9334-9d8f49dbecee",
"success": true
},
{
"id": "728:17903",
"name": "span:after",
"format": "svg",
"url": "@/assets/span-after-728-17903.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/3aa568af-40a8-4376-ad67-87949c628438",
"success": true
},
{
"id": "728:17919",
"name": "span:after",
"format": "svg",
"url": "@/assets/span-after-728-17919.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/252b305b-690c-4881-abf2-0d864b8041fa",
"success": true
},
{
"id": "728:17940",
"name": "span:after",
"format": "svg",
"url": "@/assets/span-after-728-17940.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/3d35213d-042f-4d27-98b4-9594290ffcbc",
"success": true
},
{
"id": "728:17953",
"name": "span:after",
"format": "svg",
"url": "@/assets/span-after-728-17953.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/f7981078-860f-4c86-b28a-9c82499c3999",
"success": true
},
{
"id": "728:17983",
"name": "ul",
"format": "svg",
"url": "@/assets/ul-728-17983.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/6eaa8692-b0b6-4753-999c-8d64020f0ddd",
"success": true
},
{
"id": "728:18004",
"name": "span",
"format": "svg",
"url": "@/assets/span-728-18004.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/2297d0c5-0d11-4496-88cc-76bf5f41d02f",
"success": true
},
{
"id": "728:18009",
"name": "span",
"format": "svg",
"url": "@/assets/span-728-18009.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/af0377fc-f04a-4668-b5b6-b2c9acbd8e6d",
"success": true
},
{
"id": "728:18014",
"name": "span",
"format": "svg",
"url": "@/assets/span-728-18014.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/0837977a-ddf5-43ee-82bd-d6ab4ffecc04",
"success": true
},
{
"id": "728:18019",
"name": "span",
"format": "svg",
"url": "@/assets/span-728-18019.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/091d12ec-9d2e-4d78-b1df-b94fe2b2f0aa",
"success": true
},
{
"id": "728:18024",
"name": "span",
"format": "svg",
"url": "@/assets/span-728-18024.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/5df81665-9f7f-4c7a-87cd-eb9d480eba8e",
"success": true
},
{
"id": "728:18030",
"name": "form#newsletter-signup-footer-form:before",
"format": "svg",
"url": "@/assets/form-newsletter-signup-footer-form-before-728-18030.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/7631d5d8-e039-40c6-b033-a118e11bf8e8",
"success": true
},
{
"id": "728:18047",
"name": "logo.svg",
"format": "svg",
"url": "@/assets/logo-svg-728-18047.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/993476b9-2195-4502-b99c-081b4910643f",
"success": true
},
{
"id": "728:18065",
"name": "a:after",
"format": "svg",
"url": "@/assets/a-after-728-18065.svg",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/4fb42318-0f21-4c73-af49-d87f95af11e3",
"success": true
},
{
"id": "728:17679",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17679.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/79bb29e3-5a24-4b19-afd2-09e26f4ae6fd",
"success": true
},
{
"id": "728:17698",
"name": "figure",
"format": "png",
"url": "@/assets/figure-728-17698.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/c37580d9-9ec5-47e8-8bd0-53c20fdb26b7",
"success": true
},
{
"id": "728:17860",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17860.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/c6022d99-3d21-4b9f-84b9-d75ecabd55fd",
"success": true
},
{
"id": "728:17870",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17870.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/d3f34842-0d83-458a-8d76-22d8267d420d",
"success": true
},
{
"id": "728:17875",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17875.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/13e1c68f-4ccd-4c39-a2b4-4c571a7cc49d",
"success": true
},
{
"id": "728:17880",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17880.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/1a99f71f-37cb-4fb0-92a1-dabdeea1ee6f",
"success": true
},
{
"id": "728:17885",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17885.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/9ba74cea-326b-498e-9046-ea53b16e4487",
"success": true
},
{
"id": "728:17890",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17890.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/7c08e4aa-c396-4593-8b0f-71bd1a938cf2",
"success": true
},
{
"id": "728:17895",
"name": "div",
"format": "png",
"url": "@/assets/div-728-17895.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/a917ed64-192b-4c21-b787-b8b31e664410",
"success": true
},
{
"id": "728:17958",
"name": "a",
"format": "png",
"url": "@/assets/a-728-17958.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/e5704c95-9a09-4bb6-b3d1-6cff140f6d0b",
"success": true
},
{
"id": "728:17965",
"name": "a",
"format": "png",
"url": "@/assets/a-728-17965.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/1e76f33a-4353-4aa7-bc54-a876b2d81f52",
"success": true
},
{
"id": "728:17972",
"name": "a",
"format": "png",
"url": "@/assets/a-728-17972.png",
"remote": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/cca63f6d-2098-4a94-be6d-7f51e60ed698",
"success": true
}
]
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{
"props": [
{
"name": "iconSrc",
"type": "string",
"example": "@/assets/FeatureCard-icon-1.svg"
},
{
"name": "title",
"type": "string",
"example": "Spyware detection"
},
{
"name": "description",
"type": "string",
"example": "Our advanced spyware detection engine can identify if a device contains spyware or bugging software."
}
],
"state": [
{
"iconSrc": "@/assets/FeatureCard-icon-1.svg",
"title": "Spyware detection",
"description": "Our advanced spyware detection engine can identify if a device contains spyware or bugging software."
},
{
"iconSrc": "@/assets/FeatureCard-icon-2.svg",
"title": "Keylogger detection",
"description": "Find malicious keyboards installed on your device that could allow someone to record things you type (e.g. passwords)."
},
{
"iconSrc": "@/assets/FeatureCard-icon-3.svg",
"title": "Find tracking apps",
"description": "Check which apps have access to your location, microphone or camera. Get alerted if a known tracking app is installed."
},
{
"iconSrc": "@/assets/FeatureCard-icon-4.svg",
"title": "OS integrity check",
"description": "Analyze your operating system for signs of tampering that could compromise security, such as Jailbreaking."
},
{
"iconSrc": "@/assets/FeatureCard-icon-5.svg",
"title": "Threat removal",
"description": "Our intelligent scan will either safely remove threats for you or provide easy-to-follow instructions."
},
{
"iconSrc": "@/assets/FeatureCard-icon-6.svg",
"title": "Easy to use",
"description": "We create easy to use apps that can check your device for vulnerabilities in a matter of minutes."
}
]
}
[dotenv@17.2.3] injecting env (0) from .env -- tip: ⚙️ load multiple .env files with { path: ['.env.local', '.env'] }
You are an expert Frontend Developer.
You are analyzing a container component "CertoLandingPage" which contains a list of "InsightCard" components.
Your task is to:
1. Generate a **props schema** (formal parameter definitions) based on the first component instance
2. Extract the **data array** (actual parameter values) for all component instances from the provided Figma structure data
Context:
- Container: CertoLandingPage
- Child Component: InsightCard
- Figma Data:
[
{
"id": "728:17958",
"name": "a",
"type": "IMAGE",
"url": "@/assets/a-728-17958.png",
"absoluteBoundingBox": {
"x": 23292,
"y": 23346.984375,
"width": 320,
"height": 534
},
"inlineStyles": {
"borderRadius": "48px"
}
},
{
"id": "728:17972",
"name": "a",
"type": "IMAGE",
"url": "@/assets/a-728-17972.png",
"absoluteBoundingBox": {
"x": 23660,
"y": 23346.984375,
"width": 320,
"height": 534
},
"inlineStyles": {
"borderRadius": "48px"
}
},
{
"id": "728:17965",
"name": "a",
"type": "IMAGE",
"url": "@/assets/a-728-17965.png",
"absoluteBoundingBox": {
"x": 24028,
"y": 23346.984375,
"width": 320,
"height": 534
},
"inlineStyles": {
"borderRadius": "48px"
}
}
]
Instructions:
1. Analyze the "children" in the Figma Data. Identify those that are instances of "InsightCard".
2. For each instance, extract ALL differing content, including:
- **Text**: Extract the **EXACT** text content found in the "characters" fields. Do NOT summarize or generate placeholders.
- **Images/Icons**: Identify nodes where `type` is "IMAGE". These nodes will have a `url` field.
- If a node has `isIcon: true` field, or the node name contains "icon", or the url ends with ".svg", use `iconSrc` as the key.
- Otherwise, use `imageSrc` or `avatarSrc` based on context (e.g., avatar for profile pictures).
- **Layout/Variants**:
- If the component has `layoutDirection: "HORIZONTAL"` in the layoutInfo, and contains both text and image content, determine the image position:
- Check the `absoluteBoundingBox` positions: if image's x position is less than text's x position, image is on the **left**; otherwise on the **right**.
- Extract as `imagePosition: "left"` or `imagePosition: "right"` prop.
- Any other component properties or visual variants (e.g. "variant": "filled", "active": true).
3. **Normalize the data keys (CRITICAL)**:
- For text content: use `title`, `description`, `label`, etc.
- For images/icons: ALWAYS use `iconSrc`, `imageSrc`, `avatarSrc` (with "Src" suffix)
- **DO NOT** use ambiguous keys like `icon`, `image`, `avatar` alone
- This ensures compatibility with standard React component prop naming conventions.
- Example:
```json
{
"title": "Example Title",
"description": "Example description",
"imageSrc": "@/assets/actual-filename-from-figma.png"
}
```
4. **Generate Props Schema (CRITICAL)**:
- Based on the first component instance, infer the prop definitions
- For each extracted field (e.g., "title", "description", "imageSrc"), determine:
* **key**: The property name (e.g., "title")
* **type**: The TypeScript type - must be one of: "string", "number", "boolean", "string[]", "number[]"
* **description**: A clear description of what this prop represents
- Return as "props" array with objects containing { key, type, description }
- Example:
```json
{
"key": "title",
"type": "string",
"description": "Card title text"
}
```
5. **CRITICAL Rules**:
- **USE ACTUAL DATA ONLY**: The example above uses placeholder names. You MUST use the actual "characters" and "url" values from the Figma Data provided.
- **NO FIGMA IDs**: Do NOT include Figma node IDs (like "1:2859") in the output. Only extract actual content data.
- **NO PLACEHOLDERS**: Do NOT generate fake text or copy paths from examples. If a node does not have a "url" field, do not include an "imageSrc" property.
- **Deep Search**: Text nodes might be nested deeply inside Frames/Groups. Look recursively for "characters" fields.
- **Layout Information**: The Figma Data includes `layoutInfo` array with `layoutDirection` and `absoluteBoundingBox` for each component instance. Use this to determine layout-related props like image position (left/right) in horizontal layouts.
- **Asset Paths - CRITICAL**:
- Images are represented by nodes with `type: "IMAGE"`. These nodes MUST have a `url` field.
- You MUST use the EXACT value from the `url` field as the value for "imageSrc", "iconSrc", or "avatarSrc" without any modifications.
- The `url` field value MUST be a file path (e.g., "@/assets/icon-name.svg").
- **DO NOT hallucinate or copy paths from the example above.** Every image MUST correspond to a node in the provided Figma Data.
- CORRECT: If a node has `type: "IMAGE"` and `url: "@/assets/real-image-123.png"`, use exactly that.
- WRONG: Using "@/assets/start-2.svg" if it's not in the input data.
- If the `url` field does not exist or does not contain a valid path starting with "@/assets/", omit the iconSrc/imageSrc/avatarSrc field entirely.
6. Return a JSON object with two keys:
- "props": Array of prop definitions with { key, type, description }
- "state": Array of data objects for each component instance
7. Return ONLY the JSON object. Do not explain.
Example Output JSON Structure (for reference only):
{
"props": [
{
"key": "title",
"type": "string",
"description": "Card title text"
},
{
"key": "description",
"type": "string",
"description": "Card description text"
},
{
"key": "imageSrc",
"type": "string",
"description": "Path to card image"
}
],
"state": [
{
"title": "Actual Title 1",
"description": "Actual Description 1",
"imageSrc": "@/assets/actual-file-1.png"
},
{
"title": "Actual Title 2",
"description": "Actual Description 2",
"imageSrc": "@/assets/actual-file-2.png"
}
]
}
{
"props": [
{
"name": "imageSrc",
"type": "string",
"example": "@/assets/InsightCard-image-1.png"
},
{
"name": "tag",
"type": "string",
"example": "Guides"
},
{
"name": "title",
"type": "string",
"example": "The 6 Best Apps to Track Your Children (And Why)"
},
{
"name": "date",
"type": "string",
"example": "August 20, 2024"
},
{
"name": "description",
"type": "string",
"example": "These are the top apps for tracking your children..."
}
],
"state": [
{
"imageSrc": "@/assets/InsightCard-image-1.png",
"tag": "Guides",
"title": "The 6 Best Apps to Track Your Children (And Why)",
"date": "August 20, 2024",
"description": "These are the top apps for tracking your children. We also discuss why you should, or shouldn't track your kids."
},
{
"imageSrc": "@/assets/InsightCard-image-2.png",
"tag": "Expertise",
"title": "How to Hack a Phone: It’s Easier Than You Think",
"date": "August 20, 2024",
"description": "Phone hacking is a real threat and it can happen to anyone. Here's how it works and how to protect yourself."
},
{
"imageSrc": "@/assets/InsightCard-image-3.png",
"tag": "Guides",
"title": "5 Ways to Find Hidden Spy Apps on Your Phone",
"date": "August 20, 2024",
"description": "Think someone is spying on you? Here are 5 simple ways to find hidden spy apps on your iPhone or Android."
}
]
}
[dotenv@17.2.3] injecting env (0) from .env -- tip: 🔑 add access controls to secrets: https://dotenvx.com/ops
<system_instructions>
<role>
You are a Pixel-Perfect React Frontend Engineer.
Your goal is to implement a specific UI component from Figma design data with 100% visual fidelity while ensuring header scroll to sections on click.
</role>
<input_context>
<component_details>{
"name": "InsightCard",
"componentName": "InsightCard",
"purpose": "Blog post card",
"layout": {
"boundingBox": {
"top": 23347,
"left": 23292,
"width": 320,
"height": 534
},
"relativeBoundingBox": {
"top": 231,
"left": 192,
"width": 320,
"height": 534
},
"spacing": {
"next": 48
},
"layoutDirection": "VERTICAL"
},
"elements": [
{
"id": "728:17958",
"name": "a",
"type": "IMAGE",
"url": "@/assets/a-728-17958.png",
"absoluteBoundingBox": {
"x": 23292,
"y": 23346.984375,
"width": 320,
"height": 534
},
"absoluteRenderBounds": {
"x": 23292,
"y": 23346.984375,
"width": 320,
"height": 534
},
"inlineStyles": {
"borderRadius": "48px"
}
}
],
"kebabName": "insight-card",
"componentPath": "@/components/insight-card",
"props": [
{
"name": "imageSrc",
"type": "string",
"example": "@/assets/InsightCard-image-1.png"
},
{
"name": "tag",
"type": "string",
"example": "Guides"
},
{
"name": "title",
"type": "string",
"example": "The 6 Best Apps to Track Your Children (And Why)"
},
{
"name": "date",
"type": "string",
"example": "August 20, 2024"
},
{
"name": "description",
"type": "string",
"example": "These are the top apps for tracking your children..."
}
]
}</component_details>
<available_assets>Available asset files: a-728-17958.png, a-728-17965.png, a-728-17972.png, a-after-728-18065.svg, bg-circle-svg-728-17676.svg, div-728-17679.png, div-728-17706.svg, div-728-17780.svg, div-728-17799.svg, div-728-17818.svg, div-728-17837.svg, div-728-17860.png, div-728-17870.png, div-728-17875.png, div-728-17880.png, div-728-17885.png, div-728-17890.png, div-728-17895.png, figure-728-17698.png, form-newsletter-signup-footer-form-before-728-18030.svg, logo-svg-728-18047.svg, span-728-18004.svg, span-728-18009.svg, span-728-18014.svg, span-728-18019.svg, span-728-18024.svg, span-after-728-17693.svg, span-after-728-17855.svg, span-after-728-17903.svg, span-after-728-17919.svg, span-after-728-17940.svg, span-after-728-17953.svg, ul-728-17983.svg</available_assets>
<styling>{"approach":"Tailwind V4 and Less","libraries":[{"name":"Tailwind V4","role":"utility_first"},{"name":"Less","role":"css_preprocessor"}]}</styling>
<component_structure>
The `component_details` parameter contains:
- `elements`: Array of CSS styles and asset URLs for all elements in this component (colors, spacing, fonts, backgrounds, etc.)
- `componentName` (optional): If present, indicates this is a **reusable component**; if absent, it's a **regular component**
- `props` (optional): Props interface definition, only present when `componentName` exists
</component_structure>
<global_styles>
.gradientBorder {
position: relative;
z-index: 0;
&::before {
content: '';
position: absolute;
inset: 0;
padding: 1px; // From strokeWidth
border-radius: inherit;
background: linear-gradient(278deg, rgba(170, 255, 248, 0.60) 1.63%, rgba(71, 169, 255, 0.60) 104.34%); // From strokeColor
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: destination-out;
mask-composite: exclude;
z-index: -1;
}
}
</global_styles>
<visual_reference>
Refer to the conversation history for the page thumbnail and context.
Use it to verify visual details like shadows, gradients, and spacing.
</visual_reference>
</input_context>
<requirements>
<req_1>
**High Fidelity & Responsive**:
- **Style Consistency**: Implement styles using the technical stack and libraries listed in <styling>.
- **Strict Restriction**: Absolutely ONLY use the technical stack and libraries listed in <styling>. Do NOT use any other styling methods, libraries, or frameworks (e.g., if clsx is not listed, do not use clsx).
- **Default Styling**: If <styling> is empty or does not contain specific libraries, DEFAULT to standard vanilla CSS.
- **Tailwind CSS + CSS Modules (CRITICAL)**:
- If the stack includes BOTH Tailwind and CSS Modules (Less/SCSS), use them correctly:
1. **Tailwind utilities**: Use DIRECTLY in JSX className (e.g., `className="flex items-center gap-4"`)
2. **CSS Modules**: Use ONLY for complex styles that can't be expressed with Tailwind utilities (e.g., gradients, animations, pseudo-elements)
3. **NEVER use `@apply` in CSS Module files** - it's a Tailwind-specific directive that doesn't work in Less/SCSS
4. Example correct usage:
TSX: `<div className={`flex ${styles.customGradient}`}>`
Less: `.customGradient { background: linear-gradient(...); }`
- **CSS Modules Only**: If the tech stack specifies CSS Modules without Tailwind:
1. Create a corresponding style file (e.g., `index.module.less`, `index.module.scss`, or `index.module.css`)
2. Import it as `import styles from './index.module.[ext]';` in the TSX
3. Define all styles in the style file using standard CSS/Less/SCSS syntax
4. Use `styles.className` in JSX
- **CRITICAL**: Use exact design values from `component_details.elements` (colors, spacing, font sizes, gradients, shadows, etc.)
- Use responsive utilities provided by the chosen libraries
- For complex styles (gradients, shadows), use values from `elements` directly in CSS Modules or inline styles
- For gradient rounded borders, CHECK `global_styles` for `.gradientBorder` mixin
</req_1>
<req_2>
**DOM Identification**:
- EVERY DOM element corresponding to a Figma node MUST have an `id` attribute.
- The `id` value must match the `id` in the Figma Data exactly.
- This is crucial for automated position validation.
</req_2>
<req_3>
**Images & Assets**:
- **CRITICAL**: For any image URL starting with `@/assets`, you MUST import it at the top of the file.
- **Asset Name Matching**:
- Check the `<available_assets>` list for actual filenames in the project.
- Asset filenames follow the pattern: `kebab-case-name-id1-id2.ext` (e.g., "Star 2.svg" → "star-2-1-2861.svg")
- Match the base name (ignoring spaces, case, and ID suffix): "@/assets/arXiv.svg" → look for "arxiv-*.svg" in the list
- Use the EXACT filename from the available assets list in your import.
- Example: If available_assets contains "arxiv-1-2956.svg", use:
`import ArXivIcon from '@/assets/arxiv-1-2956.svg';`
- **Usage**: `<img src={ArXivIcon} />`, do not use backgroundImage property.
- **NEVER** use the string path directly in JSX or styles.
</req_3>
<req_4>
**Semantic HTML**:
- Use semantic tags: `<header>`, `<footer>`, `<nav>`, `<article>`, `<section>`, `<button>`.
</req_4>
<req_5>
**Layout Strategy**:
- PREFER relative/flex/grid layout.
- Use absolute positioning ONLY for decoration/overlays or if Figma structure explicitly implies overlay.
</req_5>
<req_6>
**Naming Conventions**:
- Component Name: **InsightCard** (PascalCase).
- Export default.
</req_6>
<req_7>
**Component Type & Props (CRITICAL)**:
**IF `component_details.componentName` exists:**
- This is a **reusable component**
- Generate props interface from `component_details.props`: `interface InsightCardProps { ... }`
- Reference props in JSX: `{title}`, `<img src={iconSrc} />` (NOT hardcoded values)
**IF `component_details.componentName` does NOT exist:**
- This is a **regular component**
- Do NOT generate props interface
- Directly hardcode content from `component_details.elements` into JSX
**Both types**: Do NOT repeat JSX to simulate grids; parent components handle iteration.
</req_7>
<req_9>
**React Import**:
- Do **NOT** include `import React from 'react';` at the top of the file.
</req_9>
<req_10>
**File Naming**:
- ALWAYS name the main component file `index.tsx`.
- ALWAYS name the style file (if applicable) `index.module.[css|less|scss]`.
- NEVER use PascalCase or other names for filenames (e.g., DO NOT use `MainFrame.tsx` or `Button.tsx`).
</req_10>
</requirements>
<output_format>
If only one file (TSX) is needed:
```tsx
// code...
```
If multiple files are needed (e.g., TSX + Styles):
## index.tsx
```tsx
// code...
```
## index.module.[css|less|scss]
```[css|less|scss]
// styles...
```
</output_format>
</system_instructions>
[
{
"name": "FeatureCard",
"count": 6
},
{
"name": "InsightCard",
"count": 3
}
]
\ No newline at end of file
[
{
"index": 0,
"name": "Header",
"path": "@/components/header",
"isLeaf": true
},
{
"index": 1,
"name": "HeroSection",
"path": "@/components/hero-section",
"isLeaf": true
},
{
"index": 2,
"name": "TrustSection",
"path": "@/components/trust-section",
"isLeaf": true
},
{
"index": 3,
"name": "PhilosophySection",
"path": "@/components/philosophy-section",
"isLeaf": true
},
{
"index": 4,
"name": "FeatureCard",
"path": "@/components/feature-card",
"isLeaf": true
},
{
"index": 5,
"name": "FeaturesGrid",
"path": "@/components/features-grid",
"isLeaf": false
},
{
"index": 6,
"name": "ResourcesSection",
"path": "@/components/resources-section",
"isLeaf": true
},
{
"index": 7,
"name": "SpyingCTA",
"path": "@/components/spying-cta",
"isLeaf": true
},
{
"index": 8,
"name": "InsightCard",
"path": "@/components/insight-card",
"isLeaf": true
},
{
"index": 9,
"name": "LatestInsights",
"path": "@/components/latest-insights",
"isLeaf": false
},
{
"index": 10,
"name": "Footer",
"path": "@/components/footer",
"isLeaf": true
},
{
"index": 11,
"name": "CertoLandingPage",
"path": "@/components",
"isLeaf": false
}
]
\ No newline at end of file
{
"name": "coderio-scripts",
"version": "1.0.0",
"private": true,
"dependencies": {
"coderio": "latest"
}
}
overrides:
coderio: link:../../../opensource/coderio
import './App.less'
function App() {
return null
}
export default App
<svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_18065)">
<path d="M5.99904 4.86106L10.539 0.321058C10.7001 0.161672 10.9175 0.0722656 11.144 0.0722656C11.3706 0.0722656 11.588 0.161672 11.749 0.321058C11.9067 0.484994 11.9948 0.703609 11.9948 0.931058C11.9948 1.15851 11.9067 1.37712 11.749 1.54106L6.60904 6.68106C6.45061 6.83382 6.23912 6.91918 6.01904 6.91918C5.79896 6.91918 5.58746 6.83382 5.42904 6.68106L0.249038 1.54106C0.168916 1.46199 0.105297 1.36779 0.0618754 1.26393C0.0184536 1.16007 -0.00390625 1.04863 -0.00390625 0.936058C-0.00390625 0.823489 0.0184536 0.712041 0.0618754 0.608184C0.105297 0.504326 0.168916 0.410128 0.249038 0.331058C0.328109 0.250935 0.422307 0.187316 0.526164 0.143895C0.630022 0.100473 0.741469 0.0781131 0.854038 0.0781131C0.966608 0.0781131 1.07806 0.100473 1.18191 0.143895C1.28577 0.187316 1.37997 0.250935 1.45904 0.331058L5.99904 4.86106Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_728_18065">
<rect width="12" height="6.86" fill="white" transform="translate(0 0.0703125)"/>
</clipPath>
</defs>
</svg>
<svg width="3600" height="1770" viewBox="0 0 3600 1770" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17676)">
<path d="M1800 1770C2288.77 1770 2685 1373.77 2685 885C2685 396.228 2288.77 0 1800 0C1311.23 0 915 396.228 915 885C915 1373.77 1311.23 1770 1800 1770Z" fill="url(#paint0_radial_728_17676)"/>
</g>
<defs>
<radialGradient id="paint0_radial_728_17676" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1800.18 885.181) scale(885)">
<stop stop-color="white"/>
<stop offset="1" stop-color="#E7EFFA"/>
</radialGradient>
<clipPath id="clip0_728_17676">
<rect width="1770" height="1770" fill="white" transform="translate(915)"/>
</clipPath>
</defs>
</svg>
<svg width="328" height="26" viewBox="0 0 328 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17780)">
<path d="M10.25 17.6444L16.58 21.4644L14.9 14.2544L20.49 9.41437L13.12 8.77437L10.25 1.98438L7.37 8.78438L0 9.41437L5.59 14.2544L3.91 21.4644L10.25 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip1_728_17780)">
<path d="M37.8438 17.6444L44.1737 21.4644L42.4937 14.2544L48.0837 9.41437L40.7137 8.77437L37.8438 1.98438L34.9637 8.78438L27.5938 9.41437L33.1838 14.2544L31.5038 21.4644L37.8438 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip2_728_17780)">
<path d="M65.4375 17.6444L71.7675 21.4644L70.0875 14.2544L75.6775 9.41437L68.3075 8.77437L65.4375 1.98438L62.5575 8.78438L55.1875 9.41437L60.7775 14.2544L59.0975 21.4644L65.4375 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip3_728_17780)">
<path d="M93.0312 17.6444L99.3612 21.4644L97.6812 14.2544L103.271 9.41437L95.9012 8.77437L93.0312 1.98438L90.1512 8.78438L82.7812 9.41437L88.3713 14.2544L86.6913 21.4644L93.0312 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip4_728_17780)">
<path d="M120.625 17.6444L126.955 21.4644L125.275 14.2544L130.865 9.41437L123.495 8.77437L120.625 1.98438L117.745 8.78438L110.375 9.41437L115.965 14.2544L114.285 21.4644L120.625 17.6444Z" fill="#FFC247"/>
</g>
<defs>
<clipPath id="clip0_728_17780">
<rect width="24" height="24" fill="white" transform="translate(0 1.98438)"/>
</clipPath>
<clipPath id="clip1_728_17780">
<rect width="24" height="24" fill="white" transform="translate(27.5938 1.98438)"/>
</clipPath>
<clipPath id="clip2_728_17780">
<rect width="24" height="24" fill="white" transform="translate(55.1875 1.98438)"/>
</clipPath>
<clipPath id="clip3_728_17780">
<rect width="24" height="24" fill="white" transform="translate(82.7812 1.98438)"/>
</clipPath>
<clipPath id="clip4_728_17780">
<rect width="24" height="24" fill="white" transform="translate(110.375 1.98438)"/>
</clipPath>
</defs>
</svg>
<svg width="328" height="26" viewBox="0 0 328 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17799)">
<path d="M10.25 17.6444L16.58 21.4644L14.9 14.2544L20.49 9.41437L13.12 8.77437L10.25 1.98438L7.37 8.78438L0 9.41437L5.59 14.2544L3.91 21.4644L10.25 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip1_728_17799)">
<path d="M37.8438 17.6444L44.1737 21.4644L42.4937 14.2544L48.0837 9.41437L40.7137 8.77437L37.8438 1.98438L34.9637 8.78438L27.5938 9.41437L33.1838 14.2544L31.5038 21.4644L37.8438 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip2_728_17799)">
<path d="M65.4375 17.6444L71.7675 21.4644L70.0875 14.2544L75.6775 9.41437L68.3075 8.77437L65.4375 1.98438L62.5575 8.78438L55.1875 9.41437L60.7775 14.2544L59.0975 21.4644L65.4375 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip3_728_17799)">
<path d="M93.0312 17.6444L99.3612 21.4644L97.6812 14.2544L103.271 9.41437L95.9012 8.77437L93.0312 1.98438L90.1512 8.78438L82.7812 9.41437L88.3713 14.2544L86.6913 21.4644L93.0312 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip4_728_17799)">
<path d="M120.625 17.6444L126.955 21.4644L125.275 14.2544L130.865 9.41437L123.495 8.77437L120.625 1.98438L117.745 8.78438L110.375 9.41437L115.965 14.2544L114.285 21.4644L120.625 17.6444Z" fill="#FFC247"/>
</g>
<defs>
<clipPath id="clip0_728_17799">
<rect width="24" height="24" fill="white" transform="translate(0 1.98438)"/>
</clipPath>
<clipPath id="clip1_728_17799">
<rect width="24" height="24" fill="white" transform="translate(27.5938 1.98438)"/>
</clipPath>
<clipPath id="clip2_728_17799">
<rect width="24" height="24" fill="white" transform="translate(55.1875 1.98438)"/>
</clipPath>
<clipPath id="clip3_728_17799">
<rect width="24" height="24" fill="white" transform="translate(82.7812 1.98438)"/>
</clipPath>
<clipPath id="clip4_728_17799">
<rect width="24" height="24" fill="white" transform="translate(110.375 1.98438)"/>
</clipPath>
</defs>
</svg>
<svg width="328" height="26" viewBox="0 0 328 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17818)">
<path d="M10.25 17.6444L16.58 21.4644L14.9 14.2544L20.49 9.41437L13.12 8.77437L10.25 1.98438L7.37 8.78438L0 9.41437L5.59 14.2544L3.91 21.4644L10.25 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip1_728_17818)">
<path d="M37.8438 17.6444L44.1737 21.4644L42.4937 14.2544L48.0837 9.41437L40.7137 8.77437L37.8438 1.98438L34.9637 8.78438L27.5938 9.41437L33.1838 14.2544L31.5038 21.4644L37.8438 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip2_728_17818)">
<path d="M65.4375 17.6444L71.7675 21.4644L70.0875 14.2544L75.6775 9.41437L68.3075 8.77437L65.4375 1.98438L62.5575 8.78438L55.1875 9.41437L60.7775 14.2544L59.0975 21.4644L65.4375 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip3_728_17818)">
<path d="M93.0312 17.6444L99.3612 21.4644L97.6812 14.2544L103.271 9.41437L95.9012 8.77437L93.0312 1.98438L90.1512 8.78438L82.7812 9.41437L88.3713 14.2544L86.6913 21.4644L93.0312 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip4_728_17818)">
<path d="M120.625 17.6444L126.955 21.4644L125.275 14.2544L130.865 9.41437L123.495 8.77437L120.625 1.98438L117.745 8.78438L110.375 9.41437L115.965 14.2544L114.285 21.4644L120.625 17.6444Z" fill="#FFC247"/>
</g>
<defs>
<clipPath id="clip0_728_17818">
<rect width="24" height="24" fill="white" transform="translate(0 1.98438)"/>
</clipPath>
<clipPath id="clip1_728_17818">
<rect width="24" height="24" fill="white" transform="translate(27.5938 1.98438)"/>
</clipPath>
<clipPath id="clip2_728_17818">
<rect width="24" height="24" fill="white" transform="translate(55.1875 1.98438)"/>
</clipPath>
<clipPath id="clip3_728_17818">
<rect width="24" height="24" fill="white" transform="translate(82.7812 1.98438)"/>
</clipPath>
<clipPath id="clip4_728_17818">
<rect width="24" height="24" fill="white" transform="translate(110.375 1.98438)"/>
</clipPath>
</defs>
</svg>
<svg width="328" height="26" viewBox="0 0 328 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17837)">
<path d="M10.25 17.6444L16.58 21.4644L14.9 14.2544L20.49 9.41437L13.12 8.77437L10.25 1.98438L7.37 8.78438L0 9.41437L5.59 14.2544L3.91 21.4644L10.25 17.6444Z" fill="#FFC247"/>
</g>
<g clip-path="url(#clip1_728_17837)">
<path d="M37.8438 17.6444L44.1737 21.4644L42.4937 14.2544L48.0837 9.41437L40.7137 8.77437L37.8438 1.98438L34.9637 8.78438L27.5938 9.41437L33.1838 14.2544L31.5038 21.4644L37.8438 17.6444Z" fill="#FFC247"/>
</g>
<defs>
<clipPath id="clip0_728_17837">
<rect width="24" height="24" fill="white" transform="translate(0 1.98438)"/>
</clipPath>
<clipPath id="clip1_728_17837">
<rect width="24" height="24" fill="white" transform="translate(27.5938 1.98438)"/>
</clipPath>
</defs>
</svg>
<svg width="436" height="233" viewBox="0 0 436 233" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_18030)">
<path d="M259.249 146.32C256.875 145.14 254.141 144.905 251.6 145.664C249.059 146.423 246.902 148.119 245.564 150.409C244.589 152.101 243.556 153.737 242.466 155.315C240.626 158.153 238.644 160.896 236.527 163.534C232.519 168.452 226.723 171.577 220.413 172.223C214.102 172.868 207.793 170.982 202.873 166.977C201.62 165.94 200.467 164.788 199.43 163.534C197.365 160.952 195.385 158.241 193.491 155.444C183.825 140.543 177.132 123.913 173.781 106.469C171.852 96.9037 170.629 87.2089 170.123 77.4637C169.795 71.2069 171.701 65.0371 175.5 60.0553C179.299 55.0734 184.746 51.6037 190.866 50.2654H191.168C200.038 48.3996 209.024 47.1343 218.065 46.4783C227.09 47.1221 236.061 48.3729 244.919 50.2223H245.177C251.297 51.5706 256.739 55.0504 260.531 60.0405C264.323 65.0305 266.217 71.2058 265.877 77.4637C265.877 79.3572 265.877 81.2938 265.489 83.3165C265.36 84.6919 265.505 86.0794 265.916 87.3981C266.328 88.7169 266.998 89.9406 267.887 90.998C268.776 92.0553 269.867 92.9252 271.095 93.557C272.324 94.1887 273.666 94.5697 275.043 94.6778L300.52 96.7005C301.889 96.8183 303.267 96.6642 304.576 96.2471C305.885 95.8299 307.098 95.158 308.146 94.27C309.194 93.382 310.056 92.2954 310.682 91.0729C311.309 89.8503 311.687 88.516 311.795 87.1466C313.018 72.1468 312.902 57.068 311.451 42.0887C311.116 38.5813 310.079 35.1772 308.4 32.0794C306.722 28.9815 304.437 26.2531 301.682 24.0569C277.755 5.20742 234.117 0.989958 221.507 0.000146151C219.172 -0.171924 216.828 -0.171924 214.493 0.000146136C201.883 0.989958 158.246 5.20742 134.318 24.0569C131.564 26.2576 129.277 28.9862 127.592 32.0827C125.907 35.1792 124.858 38.5811 124.506 42.0887C121.407 73.8487 118.481 177.951 206.273 229.163C209.898 231.276 214.019 232.39 218.215 232.39C222.411 232.39 226.532 231.276 230.157 229.163C253.627 215.516 273.098 195.941 286.62 172.4C287.317 171.213 287.773 169.901 287.963 168.538C288.152 167.175 288.07 165.788 287.722 164.457C287.374 163.126 286.767 161.876 285.936 160.78C285.104 159.684 284.064 158.762 282.876 158.069L282.23 157.725L259.249 146.32Z" fill="#FDB235"/>
</g>
<defs>
<clipPath id="clip0_728_18030">
<rect width="189.226" height="232.391" fill="white" transform="translate(123.387)"/>
</clipPath>
</defs>
</svg>
<svg width="157" height="54" viewBox="0 0 157 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_18047)">
<path d="M31.484 33.982C30.9294 33.713 30.2929 33.6665 29.7051 33.852C29.1172 34.0374 28.6226 34.4407 28.3227 34.9792C28.0834 35.3682 27.844 35.7471 27.5947 36.1161C27.167 36.7569 26.7077 37.376 26.2185 37.971C25.6954 38.6043 25.0389 39.1142 24.2958 39.4642C23.5528 39.8142 22.7416 39.9957 21.9202 39.9957C21.0989 39.9957 20.2877 39.8142 19.5446 39.4642C18.8016 39.1142 18.1451 38.6043 17.622 37.971C17.1433 37.3727 16.6846 36.7444 16.2458 36.0962C14.0037 32.6452 12.4557 28.7904 11.6883 24.7473C11.233 22.5316 10.9463 20.2846 10.8306 18.0257C10.7545 16.5758 11.1961 15.146 12.0766 13.9916C12.957 12.8371 14.2191 12.0331 15.6374 11.7229H15.7172C17.7694 11.2906 19.8485 10.9974 21.9402 10.8453C24.0316 10.9945 26.1107 11.2844 28.1631 11.713H28.2329C29.6494 12.0274 30.9082 12.8347 31.7849 13.9908C32.6616 15.147 33.0992 16.5769 33.0198 18.0257C33.0198 18.4645 33.0198 18.9132 32.9301 19.382C32.9 19.7007 32.9336 20.0222 33.029 20.3278C33.1244 20.6334 33.2796 20.917 33.4857 21.162C33.6917 21.407 33.9445 21.6086 34.2292 21.755C34.5139 21.9014 34.8249 21.9897 35.144 22.0147L41.0478 22.4835C41.365 22.5108 41.6844 22.475 41.9877 22.3784C42.291 22.2817 42.5722 22.126 42.815 21.9202C43.0579 21.7145 43.2576 21.4627 43.4028 21.1794C43.5479 20.8961 43.6356 20.5868 43.6607 20.2695C43.9416 16.797 43.9182 13.3065 43.5909 9.83809C43.5093 9.02526 43.2661 8.23693 42.8756 7.51938C42.4852 6.80182 41.9553 6.1695 41.3171 5.65953C35.7723 1.28152 25.67 0.304199 22.738 0.0748275C22.1969 0.0349533 21.6536 0.0349533 21.1125 0.0748275C18.1905 0.304199 8.07815 1.28152 2.53334 5.64956C1.8949 6.1585 1.36544 6.79074 0.976516 7.50863C0.587591 8.22651 0.347155 9.01534 0.269537 9.82811C-0.458469 17.188 -1.12664 41.3119 19.1578 53.1794C19.9979 53.6691 20.9528 53.9271 21.9252 53.9271C22.8976 53.9271 23.8526 53.6691 24.6926 53.1794C30.1506 50.0218 34.6832 45.4857 37.8366 40.0254C38.1594 39.4684 38.2483 38.8061 38.0838 38.1837C37.9193 37.5612 37.5149 37.0294 36.959 36.7045L36.8095 36.6247L31.484 33.982Z" fill="#FFC247"/>
<path d="M95.8867 44.5341C89.7934 44.5341 85.4253 40.2458 85.4253 33.8434C85.3814 32.4913 85.6048 31.1439 86.0826 29.8784C86.5603 28.6128 87.2831 27.454 88.2096 26.4682C89.136 25.4825 90.2478 24.6893 91.4814 24.134C92.7149 23.5788 94.0459 23.2724 95.398 23.2324H96.0562C102.538 23.2324 106.159 27.8996 106.159 34.352C106.159 34.5813 106.159 35.0501 106.159 35.5487H91.1995C91.3254 36.7291 91.8845 37.8209 92.7686 38.613C93.6528 39.4051 94.7993 39.8412 95.9864 39.8369C96.7382 39.9005 97.4935 39.7664 98.1775 39.4481C98.8615 39.1297 99.4503 38.6381 99.8857 38.0219H105.869C104.633 41.8016 101.082 44.5441 95.9465 44.5441M100.494 31.8488C100.43 30.7016 99.9252 29.6235 99.0854 28.8394C98.2455 28.0552 97.1353 27.6257 95.9864 27.6403C94.8067 27.616 93.6608 28.0347 92.7746 28.8138C91.8885 29.5929 91.3265 30.6758 91.1995 31.8488H100.494Z" fill="#02033B"/>
<path d="M113.808 27.0514C114.965 24.5881 117.278 23.6208 119.901 23.541V29.1357C118.845 29.0865 117.789 29.2043 116.77 29.4847C115.344 29.9435 113.997 30.9108 113.997 35.1592V43.8454H108.014V23.9H113.798L113.808 27.0514Z" fill="#02033B"/>
<path d="M133.285 39.1087H134.481L136.536 43.8158H131.639C125.975 43.9355 124.818 40.5348 124.818 35.9075V29.146H121.457V24.0101H124.818V19.5224L130.642 16.9395V24.0101H134.731V29.1859H130.642V34.9402C130.642 37.6427 130.752 39.1387 133.265 39.1387" fill="#02033B"/>
<path d="M135.549 33.8425C135.549 27.0511 140.635 23.2715 146.309 23.2715C151.984 23.2715 157 27.0511 157 33.8425C157 40.6339 151.944 44.4934 146.309 44.4934C140.675 44.4934 135.549 40.6738 135.549 33.8425ZM146.309 39.8261C149.361 39.8261 151.296 37.1235 151.296 33.8425C151.296 30.5615 149.371 27.8589 146.309 27.8589C143.248 27.8589 141.323 30.5615 141.323 33.8425C141.323 37.1235 143.258 39.8261 146.309 39.8261Z" fill="#02033B"/>
<path d="M70.9461 44.5332C63.0378 44.5332 56.9844 39.0881 56.9844 30.2922C57.0143 21.6558 63.1076 16.0312 71.0558 16.0312C77.9569 16.0312 82.4746 19.422 84.2098 25.5252H78.1165C76.7303 22.4337 74.1274 21.2769 71.0558 21.2769C66.6978 21.2769 63.1874 24.9069 63.1874 30.3421C63.1874 35.7772 66.7377 39.3175 71.0558 39.3175C74.8754 39.3175 76.9597 37.8515 78.0367 35.119H84.0901C82.5543 41.2123 77.6478 44.5631 70.8963 44.5631" fill="#02033B"/>
</g>
<defs>
<clipPath id="clip0_728_18047">
<rect width="157" height="53.8525" fill="white" transform="translate(0 0.0742188)"/>
</clipPath>
</defs>
</svg>
<svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="9" width="20" height="2" fill="#FFC247"/>
</svg>
<svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="9" width="20" height="2" fill="#FFC247"/>
</svg>
<svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="9" width="20" height="2" fill="#FFC247"/>
</svg>
<svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="9" width="20" height="2" fill="#FFC247"/>
</svg>
<svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="9" width="20" height="2" fill="#FFC247"/>
</svg>
<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17693)">
<path d="M12.7506 0.509671C12.5814 0.681734 12.4866 0.913373 12.4866 1.15467C12.4866 1.39597 12.5814 1.62761 12.7506 1.79967L17.0006 6.07967H0.900552C0.772357 6.06625 0.642772 6.07992 0.520197 6.11979C0.397623 6.15966 0.284794 6.22484 0.189024 6.31111C0.0932533 6.39737 0.0166793 6.5028 -0.035735 6.62056C-0.0881494 6.73832 -0.115234 6.86578 -0.115234 6.99467C-0.115234 7.12357 -0.0881494 7.25102 -0.035735 7.36878C0.0166793 7.48654 0.0932533 7.59197 0.189024 7.67824C0.284794 7.7645 0.397623 7.82969 0.520197 7.86955C0.642772 7.90942 0.772357 7.92309 0.900552 7.90967H17.0006L12.7406 12.2497C12.5737 12.423 12.4805 12.6541 12.4805 12.8947C12.4805 13.1352 12.5737 13.3664 12.7406 13.5397C12.8232 13.6225 12.9214 13.6882 13.0295 13.7331C13.1376 13.7779 13.2535 13.801 13.3706 13.801C13.4876 13.801 13.6035 13.7779 13.7116 13.7331C13.8197 13.6882 13.9179 13.6225 14.0006 13.5397L19.7406 7.64967C19.8186 7.56345 19.8827 7.46561 19.9306 7.35967C19.9787 7.24937 20.0026 7.13001 20.0006 7.00967C20.0015 6.89113 19.979 6.77356 19.9344 6.66373C19.8898 6.5539 19.8239 6.45397 19.7406 6.36967L14.0006 0.529671C13.8419 0.367345 13.6273 0.27176 13.4005 0.262466C13.1737 0.253172 12.9519 0.330871 12.7806 0.479671L12.7506 0.509671Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_728_17693">
<rect width="20" height="13.5" fill="white" transform="translate(0 0.25)"/>
</clipPath>
</defs>
</svg>
<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17855)">
<path d="M12.7506 0.509671C12.5814 0.681734 12.4866 0.913373 12.4866 1.15467C12.4866 1.39597 12.5814 1.62761 12.7506 1.79967L17.0006 6.07967H0.900552C0.772357 6.06625 0.642772 6.07992 0.520197 6.11979C0.397623 6.15966 0.284794 6.22484 0.189024 6.31111C0.0932533 6.39737 0.0166793 6.5028 -0.035735 6.62056C-0.0881494 6.73832 -0.115234 6.86578 -0.115234 6.99467C-0.115234 7.12357 -0.0881494 7.25102 -0.035735 7.36878C0.0166793 7.48654 0.0932533 7.59197 0.189024 7.67824C0.284794 7.7645 0.397623 7.82969 0.520197 7.86955C0.642772 7.90942 0.772357 7.92309 0.900552 7.90967H17.0006L12.7406 12.2497C12.5737 12.423 12.4805 12.6541 12.4805 12.8947C12.4805 13.1352 12.5737 13.3664 12.7406 13.5397C12.8232 13.6225 12.9214 13.6882 13.0295 13.7331C13.1376 13.7779 13.2535 13.801 13.3706 13.801C13.4876 13.801 13.6035 13.7779 13.7116 13.7331C13.8197 13.6882 13.9179 13.6225 14.0006 13.5397L19.7406 7.64967C19.8186 7.56345 19.8827 7.46561 19.9306 7.35967C19.9787 7.24937 20.0026 7.13001 20.0006 7.00967C20.0015 6.89113 19.979 6.77356 19.9344 6.66373C19.8898 6.5539 19.8239 6.45397 19.7406 6.36967L14.0006 0.529671C13.8419 0.367345 13.6273 0.27176 13.4005 0.262466C13.1737 0.253172 12.9519 0.330871 12.7806 0.479671L12.7506 0.509671Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_728_17855">
<rect width="20" height="13.5" fill="white" transform="translate(0 0.25)"/>
</clipPath>
</defs>
</svg>
<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17903)">
<path d="M12.7506 0.509671C12.5814 0.681734 12.4866 0.913373 12.4866 1.15467C12.4866 1.39597 12.5814 1.62761 12.7506 1.79967L17.0006 6.07967H0.900552C0.772357 6.06625 0.642772 6.07992 0.520197 6.11979C0.397623 6.15966 0.284794 6.22484 0.189024 6.31111C0.0932533 6.39737 0.0166793 6.5028 -0.035735 6.62056C-0.0881494 6.73832 -0.115234 6.86578 -0.115234 6.99467C-0.115234 7.12357 -0.0881494 7.25102 -0.035735 7.36878C0.0166793 7.48654 0.0932533 7.59197 0.189024 7.67824C0.284794 7.7645 0.397623 7.82969 0.520197 7.86955C0.642772 7.90942 0.772357 7.92309 0.900552 7.90967H17.0006L12.7406 12.2497C12.5737 12.423 12.4805 12.6541 12.4805 12.8947C12.4805 13.1352 12.5737 13.3664 12.7406 13.5397C12.8232 13.6225 12.9214 13.6882 13.0295 13.7331C13.1376 13.7779 13.2535 13.801 13.3706 13.801C13.4876 13.801 13.6035 13.7779 13.7116 13.7331C13.8197 13.6882 13.9179 13.6225 14.0006 13.5397L19.7406 7.64967C19.8186 7.56345 19.8827 7.46561 19.9306 7.35967C19.9787 7.24937 20.0026 7.13001 20.0006 7.00967C20.0015 6.89113 19.979 6.77356 19.9344 6.66373C19.8898 6.5539 19.8239 6.45397 19.7406 6.36967L14.0006 0.529671C13.8419 0.367345 13.6273 0.27176 13.4005 0.262466C13.1737 0.253172 12.9519 0.330871 12.7806 0.479671L12.7506 0.509671Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_728_17903">
<rect width="20" height="13.5" fill="white" transform="translate(0 0.25)"/>
</clipPath>
</defs>
</svg>
<svg width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17919)">
<path d="M10.2008 0.307737C10.0655 0.445388 9.98966 0.630699 9.98966 0.823737C9.98966 1.01677 10.0655 1.20209 10.2008 1.33974L13.6008 4.76374H0.720832C0.618276 4.753 0.514608 4.76393 0.416549 4.79583C0.318489 4.82773 0.228226 4.87987 0.151609 4.94888C0.0749933 5.0179 0.0137341 5.10224 -0.0281974 5.19645C-0.0701289 5.29065 -0.0917969 5.39262 -0.0917969 5.49574C-0.0917969 5.59885 -0.0701289 5.70082 -0.0281974 5.79502C0.0137341 5.88923 0.0749933 5.97357 0.151609 6.04259C0.228226 6.1116 0.318489 6.16375 0.416549 6.19564C0.514608 6.22754 0.618276 6.23847 0.720832 6.22774H13.6008L10.1928 9.69974C10.0594 9.83836 9.98482 10.0233 9.98482 10.2157C9.98482 10.4082 10.0594 10.5931 10.1928 10.7317C10.259 10.798 10.3375 10.8506 10.424 10.8865C10.5105 10.9223 10.6032 10.9408 10.6968 10.9408C10.7905 10.9408 10.8832 10.9223 10.9697 10.8865C11.0561 10.8506 11.1347 10.798 11.2008 10.7317L15.7928 6.01974C15.8552 5.95076 15.9065 5.87249 15.9448 5.78774C15.9833 5.69949 16.0024 5.604 16.0008 5.50774C16.0016 5.4129 15.9836 5.31885 15.9479 5.23099C15.9122 5.14312 15.8595 5.06317 15.7928 4.99574L11.2008 0.323737C11.0739 0.193876 10.9022 0.117408 10.7208 0.109973C10.5394 0.102537 10.3619 0.164697 10.2248 0.283737L10.2008 0.307737Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_728_17919">
<rect width="16" height="10.8" fill="white" transform="translate(0 0.0996094)"/>
</clipPath>
</defs>
</svg>
<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17940)">
<path d="M12.7506 0.509671C12.5814 0.681734 12.4866 0.913373 12.4866 1.15467C12.4866 1.39597 12.5814 1.62761 12.7506 1.79967L17.0006 6.07967H0.900552C0.772357 6.06625 0.642772 6.07992 0.520197 6.11979C0.397623 6.15966 0.284794 6.22484 0.189024 6.31111C0.0932533 6.39737 0.0166793 6.5028 -0.035735 6.62056C-0.0881494 6.73832 -0.115234 6.86578 -0.115234 6.99467C-0.115234 7.12357 -0.0881494 7.25102 -0.035735 7.36878C0.0166793 7.48654 0.0932533 7.59197 0.189024 7.67824C0.284794 7.7645 0.397623 7.82969 0.520197 7.86955C0.642772 7.90942 0.772357 7.92309 0.900552 7.90967H17.0006L12.7406 12.2497C12.5737 12.423 12.4805 12.6541 12.4805 12.8947C12.4805 13.1352 12.5737 13.3664 12.7406 13.5397C12.8232 13.6225 12.9214 13.6882 13.0295 13.7331C13.1376 13.7779 13.2535 13.801 13.3706 13.801C13.4876 13.801 13.6035 13.7779 13.7116 13.7331C13.8197 13.6882 13.9179 13.6225 14.0006 13.5397L19.7406 7.64967C19.8186 7.56345 19.8827 7.46561 19.9306 7.35967C19.9787 7.24937 20.0026 7.13001 20.0006 7.00967C20.0015 6.89113 19.979 6.77356 19.9344 6.66373C19.8898 6.5539 19.8239 6.45397 19.7406 6.36967L14.0006 0.529671C13.8419 0.367345 13.6273 0.27176 13.4005 0.262466C13.1737 0.253172 12.9519 0.330871 12.7806 0.479671L12.7506 0.509671Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_728_17940">
<rect width="20" height="13.5" fill="white" transform="translate(0 0.25)"/>
</clipPath>
</defs>
</svg>
<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_728_17953)">
<path d="M12.7506 0.509671C12.5814 0.681734 12.4866 0.913373 12.4866 1.15467C12.4866 1.39597 12.5814 1.62761 12.7506 1.79967L17.0006 6.07967H0.900552C0.772357 6.06625 0.642772 6.07992 0.520197 6.11979C0.397623 6.15966 0.284794 6.22484 0.189024 6.31111C0.0932533 6.39737 0.0166793 6.5028 -0.035735 6.62056C-0.0881494 6.73832 -0.115234 6.86578 -0.115234 6.99467C-0.115234 7.12357 -0.0881494 7.25102 -0.035735 7.36878C0.0166793 7.48654 0.0932533 7.59197 0.189024 7.67824C0.284794 7.7645 0.397623 7.82969 0.520197 7.86955C0.642772 7.90942 0.772357 7.92309 0.900552 7.90967H17.0006L12.7406 12.2497C12.5737 12.423 12.4805 12.6541 12.4805 12.8947C12.4805 13.1352 12.5737 13.3664 12.7406 13.5397C12.8232 13.6225 12.9214 13.6882 13.0295 13.7331C13.1376 13.7779 13.2535 13.801 13.3706 13.801C13.4876 13.801 13.6035 13.7779 13.7116 13.7331C13.8197 13.6882 13.9179 13.6225 14.0006 13.5397L19.7406 7.64967C19.8186 7.56345 19.8827 7.46561 19.9306 7.35967C19.9787 7.24937 20.0026 7.13001 20.0006 7.00967C20.0015 6.89113 19.979 6.77356 19.9344 6.66373C19.8898 6.5539 19.8239 6.45397 19.7406 6.36967L14.0006 0.529671C13.8419 0.367345 13.6273 0.27176 13.4005 0.262466C13.1737 0.253172 12.9519 0.330871 12.7806 0.479671L12.7506 0.509671Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_728_17953">
<rect width="20" height="13.5" fill="white" transform="translate(0 0.25)"/>
</clipPath>
</defs>
</svg>
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!