import_project
Import an existing protoflow project directory into the workspace. Reads source read-only, registers fingerprint baseline, writes AGENTS.md/CLAUDE.md, and errors if project id already exists.
Instructions
从外部已有的 protoflow 项目目录(project.json + pages/ 布局)导入到工作目录。只读源目录,补登指纹基线、补写 AGENTS.md/CLAUDE.md;目标目录已有同 id 项目时报错
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | 覆盖默认工作目录(项目所在父目录);相对路径按当前工作目录解析;缺省用 PROTOFLOW_HOME 或启动时的 cwd | |
| sourceDir | Yes | 源项目目录绝对路径 |