Skip to content

v1.22.0

Choose a tag to compare

@riba2534 riba2534 released this 23 Apr 15:45
· 732 commits to main since this release

新功能

文档表格行列操作(Block 类型 31)

新增 6 个命令对文档内嵌表格做行列与合并操作:

  • doc table insert-row / insert-column
  • doc table delete-rows / delete-columns(左闭右开区间)
  • doc table merge-cells / unmerge-cells

详见 feishu-cli-write skill 的"表格操作"小节。

知识库:云文档迁入 (wiki move-docs)

把云空间(我的空间 / 共享空间)里的 docx/doc/sheet/mindnote/bitable/file 文档直接挂到知识空间:

feishu-cli wiki move-docs <obj_token> --space-id <space_id> [--obj-type docx] \
  [--parent-node <node_token>] [--apply] [--user-access-token u-xxx]
  • 大文档异步执行,返回 task_id
  • 无权限时可传 --apply 提交迁入申请
  • 企业版 wiki 空间只接受 user 身份,必须用 --user-access-token

消息话题(Thread)支持

  • msg send --thread-id omt_xxx:向已有话题追加消息(与 --receive-id-type/--receive-id 互斥)
  • msg reply --reply-in-thread:以话题形式回复(非话题群开新话题;话题群自动加入当前话题)

评论回复新增 add

comment reply add 补齐评论回复 CRUD。推荐使用 User Token(Bot 身份添加的回复经常收到 1069303 forbidden)。

交互式卡片技能 feishu-cli-card

新增 skill 用于构造飞书 v2 interactive 卡片 JSON:7 个场景模板(通知/成功报告/告警/审批/数据看板/文章摘要/LLM 流式)、20+ 组件参考、设计规范、VChart 速查。配合 msg send --msg-type interactive 使用。

修复

  • 文档导入:QuoteContainer / Callout 容器块顶部多余空行清理
  • 评论列表:comment list 输出暴露 quote 字段(划词原文)
  • 消息发送:msg send 参数校验顺序修正(参数错误先于 config 错误报出)

代码质量

  • 消除 6 个 table 命令的冗余"参数验证"WHAT 注释
  • comment reply 的 --type/--user-access-token 合并到 PersistentFlags
  • add_content.go 改用 Go 1.21 内建 min()
  • 修正 v1.21 发版后引入的 gofmt regression

升级方式

curl -fsSL https://raw.githubusercontent.com/riba2534/feishu-cli/main/install.sh | bash

完整提交历史见 v1.21.0...v1.22.0。