Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: riba2534/feishu-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.12.0
Choose a base ref
...
head repository: riba2534/feishu-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.13.0
Choose a head ref
  • 8 commits
  • 73 files changed
  • 3 contributors

Commits on Mar 27, 2026

  1. fix(cli): printJSON 输出 URL 时 & 被转义为 \u0026

    Go 的 json.MarshalIndent 默认对 &、<、> 做 HTML 安全转义,
    导致 `auth login --print-url` 输出的 auth_url 中 & 变为 \u0026,
    用户无法直接复制使用。
    
    改用 json.NewEncoder + SetEscapeHTML(false) 禁用 HTML 转义。
    
    Made-with: Cursor
    whatmele committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    672fac5 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2026

  1. fix: isolate config test from local environment

    TestInit_DefaultValues reads ~/.feishu-cli/config.yaml if it exists,
    causing assertion failures on machines with a local config file.
    Set HOME to a temp dir so the test is environment-independent.
    ypzheng2 committed Mar 28, 2026
    Configuration menu
    Copy the full SHA
    076b150 View commit details
    Browse the repository at this point in the history
  2. fix(converter): 修复引用块导入导出多个问题

    1. lazy continuation 吞文本:引用块后紧跟的非引用行被 goldmark 错误解析为引用块内容,
       通过 normalizeBlockquoteEnding 在引用块末尾插入空行终止
    2. 多段落空行丢失:> 段落1\n>\n> 段落2 中间的空行在导入时丢失,
       convertBlockquote 用计数器在段落间插入空 Text 块
    3. 导出空行未还原:convertQuoteContainerWithDepth 跳过了所有空文本子块,
       改为跳过开头空行、保留中间空行输出 >
    4. 空引用块 fallback:空 QuoteContainer 的子块改为含空内容的 TextRun,
       避免飞书 API 拒绝空 Elements 数组
    ypzheng2 committed Mar 28, 2026
    Configuration menu
    Copy the full SHA
    0ad0c9a View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2026

  1. feat: 大规模功能补齐 — 新增 50+ 命令、Markdown 互转增强、画板改造

    基于 larksuite/cli 官方项目对标分析,全面补齐功能缺失:
    
    新模块:
    - vc search/notes, minutes get — 视频会议与妙记
    - config create-app — 飞书应用自注册���Device Flow)
    - config add-scopes — 批量申请应用权限
    
    已有模块补齐:
    - 日历: calendar agenda(日程实例视图)
    - 任务: task my/reopen/comment, tasklist task-add/tasks/member
    - 消息: msg mget/resource-download/thread-messages
    - 表格: sheet export(XLSX/CSV 异步导出)
    - 文档: doc media-insert/media-download, doc content-update(7 种更新模式)
    - 多维表格: dashboard/view-filter/sort/group/workflow/form/role/advperm/copy/data-query/record-upload-attachment
    - 画板: board update --overwrite, board delete
    
    Markdown ↔ 飞书文档互转增强:
    - 新建 HTML 标签解析引擎(html_tags.go)
    - 导入支持: <mention-user>, <mention-doc>, <grid>, <callout>, <whiteboard>, <sheet>, <bitable>, <image>, <file>
    - 导出增强: MentionUser/MentionDoc/Image/Grid/Board/Sheet/Bitable/File 输出 HTML 标签格式
    - Grid 分栏双向转换(导入 + 导出)
    
    画板功能改造:
    - 重写 feishu-cli-board 技能文档,新增 schema/layout/connectors/style/content/typography 6 篇参考文档
    - 5 套预设色板(经典/商务/科技/清新/极简)
    
    技能文档:
    - 新建 feishu-cli-vc 技能
    - 更新 feishu-cli-write/export/import/board/bitable/toolkit/msg/auth 共 8 个技能
    - CLAUDE.md 同步更新命令列表和功能验证记录
    riba2534 committed Mar 29, 2026
    Configuration menu
    Copy the full SHA
    c6f1bc0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #62 from azbh111/fix/config-test-isolation

    fix: 修复 config 测试因读取本机配置文件导致断言失败
    riba2534 authored Mar 29, 2026
    Configuration menu
    Copy the full SHA
    b513e28 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #61 from azbh111/fix/quote-block-import-export

    fix(converter): 修复引用块导入导出多个问题
    riba2534 authored Mar 29, 2026
    Configuration menu
    Copy the full SHA
    67b2cae View commit details
    Browse the repository at this point in the history
  4. Merge pull request #60 from whatmele/fix/printjson-html-escape

    fix(cli): printJSON 输出 URL 时 & 被转义为 \u0026
    riba2534 authored Mar 29, 2026
    Configuration menu
    Copy the full SHA
    f469645 View commit details
    Browse the repository at this point in the history
  5. refactor: 消除重复代码、删除死代码、修复效率问题(-187 行)

    - 复用 printJSON 替代手写 json.MarshalIndent(2 处)
    - 复用 splitAndTrim 替代手写分割循环(4 处)
    - 复用 loadJSONInput 消除输入加载重复(3 处)
    - minutesGetCmd 复用 printMinuteInfo 删除 40 行重复格式化
    - 合并 Enable/DisableBitableWorkflow 为 SetBitableWorkflowStatus
    - 提取 buildTasklistMembers 辅助函数
    - 删除死代码:VCMeeting/VCMeetingDetail、ReplaceFile、Dashboard 桩函数
    - 删除无用包装:formatMinuteTime、openBrowserURL、countBoardNodes
    - 修复 parseBitableRawPagedListResponse 双重 JSON 解析
    - 修复 ListBitableForms 忽略 pageSize 参数
    - 修复 doOverwrite 用 GetBlock 替代 GetAllBlockChildren 获取子块数量
    - 删除不可达 default 分支
    riba2534 committed Mar 29, 2026
    Configuration menu
    Copy the full SHA
    98123be View commit details
    Browse the repository at this point in the history
Loading