-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathopenapi.json
More file actions
1 lines (1 loc) · 48.8 KB
/
openapi.json
File metadata and controls
1 lines (1 loc) · 48.8 KB
1
{"components":{"schemas":{"BindWorktreeBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/BindWorktreeBody.json"],"format":"uri","readOnly":true,"type":"string"},"worktreeId":{"description":"Worktree ID(null 表示解绑)","type":"string"}},"type":"object"},"BranchInfo":{"additionalProperties":false,"properties":{"hasWorktree":{"type":"boolean"},"headCommit":{"type":"string"},"isCurrent":{"type":"boolean"},"isRemote":{"type":"boolean"},"name":{"type":"string"}},"required":["name","isCurrent","isRemote","headCommit","hasWorktree"],"type":"object"},"BranchListResult":{"additionalProperties":false,"properties":{"local":{"items":{"$ref":"#/components/schemas/BranchInfo"},"type":["array","null"]},"remote":{"items":{"$ref":"#/components/schemas/BranchInfo"},"type":["array","null"]}},"required":["local","remote"],"type":"object"},"CreateBranchBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateBranchBody.json"],"format":"uri","readOnly":true,"type":"string"},"base":{"description":"基础分支","type":"string"},"createWorktree":{"default":false,"description":"同时创建 Worktree","type":"boolean"},"name":{"description":"分支名称","minLength":1,"type":"string"}},"required":["name","base","createWorktree"],"type":"object"},"CreateCommentBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateCommentBody.json"],"format":"uri","readOnly":true,"type":"string"},"content":{"description":"评论内容","minLength":1,"type":"string"}},"required":["content"],"type":"object"},"CreateNotePadBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateNotePadBody.json"],"format":"uri","readOnly":true,"type":"string"},"content":{"description":"内容","type":"string"},"name":{"description":"标签页名称","type":"string"},"projectId":{"description":"项目ID(为空表示全局笔记)","type":"string"}},"required":["name","content"],"type":"object"},"CreateProjectInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateProjectInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"description":{"description":"项目描述","type":"string"},"name":{"description":"项目名称","maxLength":100,"minLength":1,"type":"string"},"path":{"description":"本地项目目录路径(可非 Git 仓库)","minLength":1,"type":"string"},"worktreeBasePath":{"description":"Worktree 基础路径(可选,默认为项目目录下的 worktrees 子目录)","type":"string"}},"required":["name","path","description"],"type":"object"},"CreateTaskBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateTaskBody.json"],"format":"uri","readOnly":true,"type":"string"},"description":{"description":"任务描述","type":"string"},"dueDate":{"description":"截止日期","format":"date-time","type":["string","null"]},"priority":{"default":0,"description":"优先级","format":"int64","maximum":3,"minimum":0,"type":"integer"},"status":{"default":"todo","description":"任务状态","enum":["todo","in_progress","done","archived"],"type":"string"},"tags":{"description":"标签","items":{"type":"string"},"type":["array","null"]},"title":{"description":"任务标题","minLength":1,"type":"string"},"worktreeId":{"description":"关联的 Worktree","type":["string","null"]}},"required":["title","description","status","priority","tags","worktreeId","dueDate"],"type":"object"},"DeletedAt":{"additionalProperties":false,"properties":{"Time":{"format":"date-time","type":"string"},"Valid":{"type":"boolean"}},"required":["Time","Valid"],"type":"object"},"ErrorDetail":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string"},"message":{"description":"Error message text","type":"string"},"value":{"additionalProperties":{},"description":"The value at the given location","type":"object"}},"type":"object"},"ErrorModel":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ErrorModel.json"],"format":"uri","readOnly":true,"type":"string"},"detail":{"description":"A human-readable explanation specific to this occurrence of the problem.","examples":["Property foo is required but is missing."],"type":"string"},"errors":{"description":"Optional list of individual error details","items":{"$ref":"#/components/schemas/ErrorDetail"},"type":["array","null"]},"instance":{"description":"A URI reference that identifies the specific occurrence of the problem.","examples":["https://example.com/error-log/abc123"],"format":"uri","type":"string"},"status":{"description":"HTTP status code","examples":[400],"format":"int64","type":"integer"},"title":{"description":"A short, human-readable summary of the problem type. This value should not change between occurrences of the error.","examples":["Bad Request"],"type":"string"},"type":{"default":"about:blank","description":"A URI reference to human-readable documentation for the error.","examples":["https://example.com/errors/example"],"format":"uri","type":"string"}},"type":"object"},"ItemResponseBranchListResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseBranchListResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/BranchListResult","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseMergeResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseMergeResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/MergeResult","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseNotePadTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseNotePadTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/NotePadTable","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseProjectBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseProjectBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/Project","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponsePtyTestSessionViewBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponsePtyTestSessionViewBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/PtyTestSessionView","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseRefreshAllResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseRefreshAllResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/RefreshAllResult","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseTaskCommentTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseTaskCommentTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/TaskCommentTable","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseTaskTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseTaskTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/TaskTable","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseTerminalSessionViewBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseTerminalSessionViewBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/TerminalSessionView","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseUploadImageResponseBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseUploadImageResponseBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/UploadImageResponse","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseWorktreeBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseWorktreeBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/Worktree","description":"响应对象"}},"required":["item"],"type":"object"},"ItemsResponseNotePadTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseNotePadTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/NotePadTable"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseProjectBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseProjectBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/Project"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseTaskCommentTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseTaskCommentTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/TaskCommentTable"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseTerminalSessionViewBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseTerminalSessionViewBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/TerminalSessionView"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseWorktreeBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseWorktreeBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/Worktree"},"type":["array","null"]}},"required":["items"],"type":"object"},"MergeBranchBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MergeBranchBody.json"],"format":"uri","readOnly":true,"type":"string"},"commit":{"default":false,"description":"Squash 合并后立即提交","type":"boolean"},"commitMessage":{"description":"提交信息(仅 squash 合并生效)","type":"string"},"sourceBranch":{"description":"源分支","minLength":1,"type":"string"},"strategy":{"default":"merge","description":"合并策略","enum":["merge","rebase","squash"],"type":"string"},"targetBranch":{"description":"目标分支","minLength":1,"type":"string"}},"required":["targetBranch","sourceBranch","strategy","commit","commitMessage"],"type":"object"},"MergeResult":{"additionalProperties":false,"properties":{"conflicts":{"items":{"type":"string"},"type":["array","null"]},"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","conflicts","message"],"type":"object"},"MessageResponseBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MessageResponseBody.json"],"format":"uri","readOnly":true,"type":"string"},"message":{"description":"提示信息","type":"string"}},"required":["message"],"type":"object"},"MoveNotePadBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MoveNotePadBody.json"],"format":"uri","readOnly":true,"type":"string"},"orderIndex":{"description":"排序索引","format":"double","type":"number"}},"required":["orderIndex"],"type":"object"},"MoveTaskBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MoveTaskBody.json"],"format":"uri","readOnly":true,"type":"string"},"orderIndex":{"description":"排序索引","format":"double","type":"number"},"status":{"description":"新状态","type":"string"},"worktreeId":{"description":"关联 Worktree","type":"string"}},"type":"object"},"NotePadTable":{"additionalProperties":false,"properties":{"content":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"id":{"type":"string"},"name":{"type":"string"},"orderIndex":{"format":"double","type":"number"},"projectId":{"type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"}},"required":["projectId","name","content","orderIndex","id","createdAt","updatedAt","deletedAt"],"type":"object"},"OpenPathInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/OpenPathInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"path":{"description":"目标路径","type":"string"}},"required":["path"],"type":"object"},"PaginatedResponseTaskTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/PaginatedResponseTaskTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"itemCount":{"description":"本次返回数量","format":"int64","type":"integer"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/TaskTable"},"type":["array","null"]},"page":{"description":"当前页码","format":"int64","type":"integer"},"pageSize":{"description":"每页数量","format":"int64","type":"integer"},"total":{"description":"记录总数","format":"int64","type":"integer"}},"required":["items","total","itemCount","page","pageSize"],"type":"object"},"Project":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"defaultBranch":{"type":["string","null"]},"deletedAt":{"format":"date-time","type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":"string"},"lastSyncAt":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"path":{"type":"string"},"remoteUrl":{"type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"},"worktreeBasePath":{"type":["string","null"]}},"required":["id","createdAt","updatedAt","deletedAt","name","path","description","defaultBranch","worktreeBasePath","remoteUrl","lastSyncAt"],"type":"object"},"ProjectTable":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"defaultBranch":{"type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"description":{"type":"string"},"id":{"type":"string"},"lastSyncAt":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"path":{"type":"string"},"remoteUrl":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"worktreeBasePath":{"type":"string"}},"required":["name","path","description","defaultBranch","worktreeBasePath","remoteUrl","lastSyncAt","id","createdAt","updatedAt","deletedAt"],"type":"object"},"PtyTestCreateInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/PtyTestCreateInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"cols":{"description":"终端列数","format":"int64","type":"integer"},"encoding":{"description":"xpty 输出编码,默认 utf-8","type":"string"},"rows":{"description":"终端行数","format":"int64","type":"integer"},"shell":{"description":"自定义 shell 命令,留空使用默认配置","type":"string"},"workingDir":{"description":"工作目录,可选","type":"string"}},"required":["workingDir","shell","rows","cols","encoding"],"type":"object"},"PtyTestSessionView":{"additionalProperties":false,"properties":{"cols":{"format":"int64","type":"integer"},"createdAt":{"format":"date-time","type":"string"},"encoding":{"type":"string"},"id":{"type":"string"},"rows":{"format":"int64","type":"integer"},"shell":{"items":{"type":"string"},"type":["array","null"]},"workingDir":{"type":"string"},"wsPath":{"type":"string"},"wsUrl":{"type":"string"}},"required":["id","workingDir","shell","rows","cols","createdAt","encoding","wsPath","wsUrl"],"type":"object"},"RefreshAllResult":{"additionalProperties":false,"properties":{"failed":{"description":"刷新失败数量","format":"int64","type":"integer"},"updated":{"description":"刷新成功数量","format":"int64","type":"integer"}},"required":["updated","failed"],"type":"object"},"TaskCommentTable":{"additionalProperties":false,"properties":{"content":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"id":{"type":"string"},"task":{"$ref":"#/components/schemas/TaskTable"},"taskId":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["taskId","content","id","createdAt","updatedAt","deletedAt"],"type":"object"},"TaskTable":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"description":{"type":"string"},"dueDate":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"orderIndex":{"format":"double","type":"number"},"priority":{"format":"int64","type":"integer"},"project":{"$ref":"#/components/schemas/ProjectTable"},"projectId":{"type":"string"},"status":{"type":"string"},"tags":{"items":{"type":"string"},"type":["array","null"]},"title":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"worktree":{"$ref":"#/components/schemas/WorktreeTable"},"worktreeId":{"type":["string","null"]}},"required":["projectId","worktreeId","title","description","status","priority","orderIndex","tags","dueDate","completedAt","id","createdAt","updatedAt","deletedAt"],"type":"object"},"TerminalCreateInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/TerminalCreateInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"cols":{"description":"终端列数","format":"int64","type":"integer"},"rows":{"description":"终端行数","format":"int64","type":"integer"},"title":{"description":"终端标题","type":"string"},"workingDir":{"description":"工作目录","type":"string"}},"required":["workingDir","title","rows","cols"],"type":"object"},"TerminalRenameInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/TerminalRenameInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"title":{"description":"新的终端标签名","type":"string"}},"required":["title"],"type":"object"},"TerminalSessionView":{"additionalProperties":false,"properties":{"cols":{"format":"int64","type":"integer"},"createdAt":{"format":"date-time","type":"string"},"encoding":{"type":"string"},"id":{"type":"string"},"lastActive":{"format":"date-time","type":"string"},"projectId":{"type":"string"},"rows":{"format":"int64","type":"integer"},"status":{"type":"string"},"title":{"type":"string"},"workingDir":{"type":"string"},"worktreeId":{"type":"string"},"wsPath":{"type":"string"},"wsUrl":{"type":"string"}},"required":["id","projectId","worktreeId","workingDir","title","createdAt","lastActive","status","wsPath","wsUrl","rows","cols","encoding"],"type":"object"},"UpdateNotePadBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/UpdateNotePadBody.json"],"format":"uri","readOnly":true,"type":"string"},"content":{"description":"内容","type":["string","null"]},"name":{"description":"标签页名称","type":["string","null"]}},"required":["name","content"],"type":"object"},"UpdateTaskBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/UpdateTaskBody.json"],"format":"uri","readOnly":true,"type":"string"},"description":{"description":"任务描述","type":["string","null"]},"dueDate":{"description":"截止日期","format":"date-time","type":["string","null"]},"priority":{"description":"优先级","format":"int64","type":["integer","null"]},"tags":{"description":"标签","items":{"type":"string"},"type":["array","null"]},"title":{"description":"任务标题","type":["string","null"]}},"required":["title","description","priority","tags","dueDate"],"type":"object"},"UploadClipboardImageInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/UploadClipboardImageInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"data":{"description":"图片数据(base64 编码)","type":"string"},"fileName":{"description":"文件名","type":"string"}},"required":["fileName","data"],"type":"object"},"UploadImageResponse":{"additionalProperties":false,"properties":{"fileName":{"description":"文件名","type":"string"},"path":{"description":"文件路径","type":"string"},"size":{"description":"文件大小(字节)","format":"int64","type":"integer"}},"required":["path","fileName","size"],"type":"object"},"Worktree":{"additionalProperties":false,"properties":{"branchName":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":["string","null"]},"headCommit":{"type":["string","null"]},"headCommitDate":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"isBare":{"type":"boolean"},"isMain":{"type":"boolean"},"path":{"type":"string"},"projectId":{"type":"string"},"statusAhead":{"format":"int64","type":["integer","null"]},"statusBehind":{"format":"int64","type":["integer","null"]},"statusConflicts":{"format":"int64","type":["integer","null"]},"statusModified":{"format":"int64","type":["integer","null"]},"statusStaged":{"format":"int64","type":["integer","null"]},"statusUntracked":{"format":"int64","type":["integer","null"]},"statusUpdatedAt":{"format":"date-time","type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","createdAt","updatedAt","deletedAt","projectId","branchName","path","isMain","isBare","headCommit","headCommitDate","statusAhead","statusBehind","statusModified","statusStaged","statusUntracked","statusConflicts","statusUpdatedAt"],"type":"object"},"Worktree-commitRequest":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/Worktree-commitRequest.json"],"format":"uri","readOnly":true,"type":"string"},"message":{"description":"提交信息","minLength":1,"type":"string"}},"required":["message"],"type":"object"},"Worktree-createRequest":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/Worktree-createRequest.json"],"format":"uri","readOnly":true,"type":"string"},"baseBranch":{"description":"基础分支","type":"string"},"branchName":{"description":"分支名称","type":"string"},"createBranch":{"default":true,"description":"是否创建新分支","type":"boolean"}},"required":["branchName","baseBranch","createBranch"],"type":"object"},"WorktreeTable":{"additionalProperties":false,"properties":{"branchName":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"headCommit":{"type":"string"},"headCommitDate":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"isBare":{"type":"boolean"},"isMain":{"type":"boolean"},"path":{"type":"string"},"project":{"$ref":"#/components/schemas/ProjectTable"},"projectId":{"type":"string"},"statusAhead":{"format":"int64","type":"integer"},"statusBehind":{"format":"int64","type":"integer"},"statusConflicts":{"format":"int64","type":"integer"},"statusModified":{"format":"int64","type":"integer"},"statusStaged":{"format":"int64","type":"integer"},"statusUntracked":{"format":"int64","type":"integer"},"statusUpdatedAt":{"format":"date-time","type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"}},"required":["projectId","branchName","path","isMain","isBare","headCommit","headCommitDate","statusAhead","statusBehind","statusModified","statusStaged","statusUntracked","statusConflicts","statusUpdatedAt","id","createdAt","updatedAt","deletedAt"],"type":"object"}}},"info":{"title":"Go Template API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/v1/health":{"get":{"operationId":"health-check","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"健康探测","tags":["health-健康检查"]}},"/api/v1/notepads":{"get":{"operationId":"notepad-list","parameters":[{"description":"项目ID(为空或global表示全局笔记)","explode":false,"in":"query","name":"projectId","schema":{"description":"项目ID(为空或global表示全局笔记)","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取记事板标签","tags":["notepad-记事板"]},"post":{"operationId":"notepad-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNotePadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建记事板标签","tags":["notepad-记事板"]}},"/api/v1/notepads/{id}":{"delete":{"operationId":"notepad-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除记事板标签","tags":["notepad-记事板"]},"get":{"operationId":"notepad-get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取记事板标签详情","tags":["notepad-记事板"]},"patch":{"operationId":"notepad-update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotePadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"更新记事板标签","tags":["notepad-记事板"]}},"/api/v1/notepads/{id}/move":{"post":{"operationId":"notepad-move","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveNotePadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"移动记事板标签顺序","tags":["notepad-记事板"]}},"/api/v1/projects":{"get":{"operationId":"project-list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseProjectBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"项目列表","tags":["project-项目管理"]},"post":{"operationId":"project-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseProjectBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建项目","tags":["project-项目管理"]}},"/api/v1/projects/{id}":{"delete":{"operationId":"project-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除项目","tags":["project-项目管理"]},"get":{"operationId":"project-get-by-id","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseProjectBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取项目详情","tags":["project-项目管理"]}},"/api/v1/projects/{projectId}/branches":{"get":{"operationId":"branch-list","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseBranchListResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取分支列表","tags":["branch-分支管理"]},"post":{"operationId":"branch-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBranchBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建分支","tags":["branch-分支管理"]}},"/api/v1/projects/{projectId}/branches/{branchName}":{"delete":{"operationId":"branch-delete","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"branchName","required":true,"schema":{"type":"string"}},{"description":"强制删除","explode":false,"in":"query","name":"force","schema":{"default":false,"description":"强制删除","type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除分支","tags":["branch-分支管理"]}},"/api/v1/projects/{projectId}/refresh-all-worktrees":{"post":{"operationId":"worktree-refresh-all-by-project","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseRefreshAllResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"刷新所有 Worktree 状态","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/sync-worktrees":{"post":{"operationId":"worktree-sync-by-project","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"同步 Worktree","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/tasks":{"get":{"operationId":"task-list","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"status","schema":{"type":"string"}},{"explode":false,"in":"query","name":"worktreeId","schema":{"type":"string"}},{"explode":false,"in":"query","name":"priority","schema":{"type":"string"}},{"explode":false,"in":"query","name":"keyword","schema":{"type":"string"}},{"explode":false,"in":"query","name":"page","schema":{"default":1,"format":"int64","type":"integer"}},{"explode":false,"in":"query","name":"pageSize","schema":{"default":100,"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponseTaskTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"任务列表","tags":["task-任务看板"]},"post":{"operationId":"task-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTaskTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建任务","tags":["task-任务看板"]}},"/api/v1/projects/{projectId}/terminals":{"get":{"operationId":"terminal-session-list","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseTerminalSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取终端会话列表","tags":["terminal-session-终端会话"]}},"/api/v1/projects/{projectId}/terminals/{sessionId}":{"delete":{"operationId":"terminal-session-close","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"关闭终端会话","tags":["terminal-session-终端会话"]},"patch":{"operationId":"terminal-session-rename","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalRenameInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTerminalSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"终端标签重命名","tags":["terminal-session-终端会话"]}},"/api/v1/projects/{projectId}/worktrees":{"get":{"operationId":"worktree-list-by-project","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取 Worktree 列表","tags":["worktree-工作树"]},"post":{"operationId":"worktree-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worktree-createRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建 Worktree","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/worktrees/{worktreeId}/terminals":{"post":{"operationId":"terminal-session-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"worktreeId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalCreateInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTerminalSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建终端会话","tags":["terminal-session-终端会话"]}},"/api/v1/pty-test/sessions":{"post":{"operationId":"pty-test-session-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtyTestCreateInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponsePtyTestSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建 PTY 测试会话","tags":["pty-test-终端测试"]}},"/api/v1/pty-test/sessions/{sessionId}":{"delete":{"operationId":"pty-test-session-close","parameters":[{"in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"关闭 PTY 测试会话","tags":["pty-test-终端测试"]}},"/api/v1/system/open-explorer":{"post":{"operationId":"system-open-explorer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPathInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"打开文件管理器","tags":["system-系统工具"]}},"/api/v1/system/open-terminal":{"post":{"operationId":"system-open-terminal","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPathInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"打开终端","tags":["system-系统工具"]}},"/api/v1/task-comments/{id}":{"delete":{"operationId":"task-comment-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除评论","tags":["task-comment-任务评论"]}},"/api/v1/tasks/{id}":{"delete":{"operationId":"task-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除任务","tags":["task-任务看板"]},"get":{"operationId":"task-get-by-id","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTaskTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"任务详情","tags":["task-任务看板"]},"patch":{"operationId":"task-update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTaskTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"更新任务","tags":["task-任务看板"]}},"/api/v1/tasks/{id}/bind-worktree":{"post":{"operationId":"task-bind-worktree","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindWorktreeBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTaskTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"绑定/解绑 Worktree","tags":["task-任务看板"]}},"/api/v1/tasks/{id}/comments":{"get":{"operationId":"task-comment-list","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseTaskCommentTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"评论列表","tags":["task-comment-任务评论"]},"post":{"operationId":"task-comment-create","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTaskCommentTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"新增评论","tags":["task-comment-任务评论"]}},"/api/v1/tasks/{id}/move":{"post":{"operationId":"task-move","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveTaskBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTaskTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"移动任务","tags":["task-任务看板"]}},"/api/v1/upload/clipboard-image":{"post":{"operationId":"upload-clipboard-image","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadClipboardImageInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseUploadImageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"上传剪贴板图片","tags":["upload-上传"]}},"/api/v1/worktrees/{id}":{"delete":{"operationId":"worktree-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"force","schema":{"default":false,"type":"boolean"}},{"explode":false,"in":"query","name":"deleteBranch","schema":{"default":true,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除 Worktree","tags":["worktree-工作树"]}},"/api/v1/worktrees/{id}/commit":{"post":{"operationId":"worktree-commit","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worktree-commitRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"提交 Worktree 更改","tags":["worktree-工作树"]}},"/api/v1/worktrees/{id}/merge":{"post":{"operationId":"branch-merge","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeBranchBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseMergeResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"合并分支","tags":["branch-分支管理"]}},"/api/v1/worktrees/{id}/refresh-status":{"post":{"operationId":"worktree-refresh-status","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"刷新 Worktree 状态","tags":["worktree-工作树"]}}}}