MINARA

列出工作区文件

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
认证默认需要 Authorization: Bearer <token>(配置或自动生成的 token);仅在显式本地回环开发模式下可省略(MINARA_ALLOW_INSECURE_BIND=1,且未设置 GATEWAY_AUTH_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 }] } }

本页目录