MINARA

列出工作区文件

GET /v1/workspace/files:枚举每个可编辑工作区 md 文件及其大小、mtime 和 sha256。

GET /v1/workspace/files

枚举每个可编辑工作区 md 文件及其大小、mtime 和 sha256。磁盘上不存在的文件显示 exists: false。名称集合在 apps/agent/src/workspace/seed.tsEDITABLE_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 }] } }

本页目录