Skip to content

v1.3.0 — lark-cli 1.0.69 + MCP 参数契约层

Latest

Choose a tag to compare

@ddpie ddpie released this 14 Jul 09:15
· 1 commit to main since this release
3623481

中文

lark-cli 1.0.68 → 1.0.69,并修掉一个潜伏的 flag 类型 bug、新增一层 MCP 参数契约。

上游变更亮点(v1.0.69)

  • 电子表格 — 新增 changeset-get、formula-verify、history-list / revert / revert-status、revision-get(变更集查询、公式校验、版本历史)。
  • 云文档 / 云空间 — drive list-comments;doc xml-extended-blocks。
  • 应用 — apps get;application slash-command 增删查改。
  • 画板 — 导出路由表按身份重排。

修复

  • 复合 flag 被误判为 boolean,参数被静默丢弃 — affordance 把 JSON 参数的类型 token 换成了示例,旧推断 fallback 成 boolean,server 只推开关名、丢掉 JSON 值。改为按 cobra 列对齐判定。影响 sheets/docs/mail/apps 共 39+ flag。

新功能 — MCP 参数契约层

  • 构建期从 --print-schema 提取复合 flag 的 JSON Schema 存入 catalog;flag description 去 CLI 化。
  • 运行时 object/array 自动 stringify;spawn 前按 schema 浅校验并返回可自纠提示(isError:false);validation 错误把 --flag 译回参数名后穿透;剥掉 _notice.update;lark_get_skill 支持 docs→doc 别名;lark_discover 精确按名查询回传完整 schema。

升级

git pull && ./scripts/deploy.sh

终端用户无需额外操作。


English

Bumps lark-cli 1.0.68 → 1.0.69, with a latent flag-type fix and a new MCP parameter-contract layer.

Upstream highlights (v1.0.69)

  • Sheets — changeset-get, formula-verify, history-list / revert / revert-status, revision-get.
  • Doc / Drive — drive list-comments; doc xml-extended-blocks.
  • Apps — apps get; application slash-command CRUD.
  • Whiteboard — export routing reshuffled by identity.

Fix

  • Composite flags misread as boolean, payload silently dropped — affordance renders composite flags' type token as an example; the old inference fell back to boolean, so server pushed a bare switch and dropped the JSON. Now classified by cobra's column alignment. Affected 39+ flags across sheets/docs/mail/apps.

New — MCP parameter-contract layer

  • Build time: extract composite-flag JSON Schemas via --print-schema into the catalog; strip CLI-speak from flag descriptions.
  • Runtime: auto-stringify object/array; pre-spawn shape validation returning a self-correctable hint (isError:false); translate --flag refs in validation errors and pass them through; strip _notice.update; lark_get_skill accepts the docs→doc alias; lark_discover returns the full schema on an exact-name query.

Upgrading

git pull && ./scripts/deploy.sh

No action required from end users.