Agent workspace
Get workspace git status
Report whether the owning daemon’s checkout is clean. Pass sessionId for an authorized isolated session worktree; a dirty tree or a from-scratch (non-repo) workspace is data (clean/isRepo), not an error. Pass repo (owner/repo) to address one of the agent’s authorized additional repositories instead of its primary workspace; an unauthorized name reads 404, and a daemon too old to scope by repository yields 409.
授权
bearerAuth 授权Bearer <token>
位置: header
路径参数
orgId*string
id*string
查询参数
repo?string
长度
1 <= length <= 256sessionId?string
长度
1 <= length响应主体
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/agents/string/workspace/gitstatus"{ "isRepo": true, "clean": true, "repo": "string", "agentDir": "string", "branch": "string", "tracking": "string", "ahead": 0, "behind": 0, "files": [ { "path": "string", "index": "string", "workingDir": "string", "additions": 0, "deletions": 0 } ], "truncated": true, "lastCommit": { "sha": "string", "shortSha": "string", "subject": "string", "committedAt": "string" }, "lastFetchAt": "string"}