JoYiHubv0.30.0

project comments list

List project comment threads with unread/unreplied metrics and context controls

语法

joyihub project comments list

参数

选项

属性

类型

示例

joyihub project comments list --filter unread --limit 1 --project project-id

响应示例

{
  "batch_until": "2026-10-27T12:00:00Z",
  "comment_count": 3,
  "comments_read_at": null,
  "downloaded_images": [],
  "filter": "unread",
  "filtered_count": 2,
  "items": [
    {
      "attachments": [
        {
          "bytes": 49152,
          "height": 720,
          "id": "att-1",
          "mime_type": "image/webp",
          "sha256": "sha256",
          "url": "/assets/comment-images/user-2/att-1.webp",
          "width": 1280
        }
      ],
      "content": "第二关跳跃手感很棒,附图是通关画面",
      "created_at": "2026-10-27T10:00:00Z",
      "display_name": "玩家一号",
      "has_more_replies": false,
      "id": "comment-1",
      "is_creator": false,
      "like_count": 5,
      "needs_reply": true,
      "owned": false,
      "release_id": "release-1",
      "reply_count": 0,
      "unread": true,
      "user_id": "user-2"
    }
  ],
  "next_cursor": "opaque-next-cursor",
  "next_offset": null,
  "project_id": "project-id",
  "read_group": "cli",
  "release_ids": [],
  "root_count": 2,
  "scope": "roots",
  "sort": "oldest",
  "unread_count": 2,
  "unreplied_thread_count": 1
}

返回字段

属性

类型

错误码

NOT_AUTHENTICATED · Exit 3

本机没有有效 CLI 登录凭据

{
  "error": {
    "code": "NOT_AUTHENTICATED",
    "message": "本机没有有效 CLI 登录凭据"
  }
}

UNAUTHORIZED · Exit 3

服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务

{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务"
  }
}

FORBIDDEN · Exit 3

当前账号缺少服务端权限

{
  "error": {
    "code": "FORBIDDEN",
    "message": "当前账号缺少服务端权限"
  }
}

CLIENT_TOO_OLD · Exit 4

服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新

{
  "error": {
    "code": "CLIENT_TOO_OLD",
    "message": "服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新"
  }
}

USAGE_ERROR · Exit 2

参数、取值或本地输入不合法

{
  "error": {
    "code": "USAGE_ERROR",
    "message": "参数、取值或本地输入不合法"
  }
}

COMMENT_IMAGE_HASH_MISMATCH · Exit 4

下载的评论图片摘要与服务端记录不一致

{
  "error": {
    "code": "COMMENT_IMAGE_HASH_MISMATCH",
    "message": "下载的评论图片摘要与服务端记录不一致"
  }
}

本页目录