# 无限游戏地图 > 无限游戏地图是一个聚焦跨学科和AI原生的开源共建平台,支持内容发布、项目共建、积分激励与收益分配。 由Mixlab孵化的问题驱动实验。平台支持内容发布、项目共建、积分激励与收益分配。项目、公开集合、已审核的公开内容对匿名访客只读开放;发布、留言、点赞等写操作需要登录并具备相应角色权限。 ## 主要页面 - [首页](https://problem.mixlab.top/):站点概览与最新动态 - [项目(云展厅)](https://problem.mixlab.top/projects):全部共建项目,详情页 https://problem.mixlab.top/projects/ - [集合](https://problem.mixlab.top/collections):按主题组织的项目集合,详情页 https://problem.mixlab.top/collections/ - [内容](https://problem.mixlab.top/posts):已审核的公开内容,详情页 https://problem.mixlab.top/posts/ - [积分与收益](https://problem.mixlab.top/points-and-revenue):当前阶段的积分与分配规则 - [关于](https://problem.mixlab.top/about) - [站点地图](https://problem.mixlab.top/sitemap.xml) ## pdlab CLI(推荐给 agent 使用) - 安装:`npm install -g pdlab-cli` - 自描述:先运行 `pdlab schema`,一次性拿到全部命令、参数、权限要求、环境变量、输出约定与退出码含义 - 结构化输出:加全局 `--json`(或设 `PDLAB_JSON=1`),stdout 恒为一个 JSON 文档;失败时 stderr 输出 `{ error, code, status, apiCode?, retryAfter?, fields?, hint? }` 并以约定的退出码退出 - 登录:`pdlab login --no-browser` 会打印 8 位授权码和链接,由人在浏览器中核对授权码并确认;无人值守场景直接设置环境变量 `PDLAB_TOKEN=`(优先级高于本地配置) - 指向本站:`--api-url https://problem.mixlab.top` 或 `PDLAB_API_URL=https://problem.mixlab.top` - 常用命令:`project list|get|create|update`、`post list|get|create|update|review`、`collection list|get`、`comment list|add|delete`、`like toggle`、`notification list|read`、`search `、`token list|revoke`、`whoami` ## REST API 概要 - 基础地址:https://problem.mixlab.top/api - 鉴权:请求头 `Authorization: Bearer `(token 由 `pdlab login` 获取,可在「个人中心 → API Token」撤销);浏览器端使用会话 cookie - 错误格式:`{ "error": "中文说明", "code": "机器可读分类", "details"?: ... }`,code 取值:BAD_REQUEST、VALIDATION_FAILED、UNAUTHORIZED、FORBIDDEN、NOT_FOUND、CONFLICT、PAYLOAD_TOO_LARGE、LOCKED、RATE_LIMITED、INTERNAL;429 / 423 响应带 `Retry-After` 头 - 分页:列表接口支持 `?limit=`(上限 100)与 `?cursor=`,响应里的 `nextCursor` 原样传回取下一页,为 null 表示没有更多 - 公开只读:`GET /api/projects`、`GET /api/projects/`、`GET /api/posts`、`GET /api/posts/`、`GET /api/collections`、`GET /api/comments?postId=|projectId=`、`GET /api/search?q=`、`GET /api/taxonomies` - 需要登录:`POST /api/posts`、`POST /api/comments`、`POST|DELETE /api/likes`、`GET /api/notifications`、`GET /api/tokens` 等,具体权限以 `pdlab schema` 中的 permission 字段为准 - 限流:登录、注册、CLI 授权握手接口按来源 IP 限流,超限返回 429 + code RATE_LIMITED