列出工作区文件
GET /v1/workspace/files:枚举每个可编辑工作区 md 文件及其大小、mtime 和 sha256。
GET /v1/workspace/files
枚举每个可编辑工作区 md 文件及其大小、mtime 和 sha256。磁盘上不存在的文件显示 exists: false。名称集合在 apps/agent/src/workspace/seed.ts 的 EDITABLE_WORKSPACE_FILES 中受到白名单限制。
| 方法 | GET |
| 路径 | /v1/workspace/files |
| 认证 | 设置 GATEWAY_AUTH_TOKEN 时需要 Authorization: Bearer <token> |
| 类别 | workspace |
响应体
{ "ok": true, "data": { "workspace_dir": "/home/user/.minara/workspace", "files": [{ "name": "SOUL.md", "exists": true, "size": 1982, "mtime": 1714492800000, "sha256": "deadbeef..." }, { "name": "HEARTBEAT.md", "exists": false, "size": 0, "mtime": null, "sha256": null }] } }