Skip to content

v0.9.0 — 群文件

Choose a tag to compare

@zhuobichen zhuobichen released this 05 Nov 16:24
· 114 commits to master since this release

新增

  • qce files 群文件:list / search / download / stats
    • 跨群按文件名搜索(大小写不敏感),支持按扩展名、体积过滤
    • 体积按扩展名分布统计;下载按「文件名或 fid」定位,模糊命中多个时拒绝猜测
    • 纯函数核心 src/core/group-files.ts(16 个单测)

修复

  • getGroupFileList 用错了 API:OneBot/NapCat 下没有 get_group_file_list,改为根目录 get_group_root_files、子目录 get_group_files_by_folder,并把 file_id/file_name/file_size 归一化成 fid/name/size

已知限制

  • 下载依赖 get_group_file_url;NapCat 未启用 packetBackend 时会返回「packetBackend 不可用」,命令会明确提示而非静默失败
  • 本机账号当前 0 个群,files list 的真实群数据未能端到端验证(已确认请求打到了正确的内核接口,而不是"不支持的Api")

验证

  • vitest run src:13 文件 / 129 用例全通过
  • tsc --noEmit 通过,qce --version = 0.9.0