Version Packages#1
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
April 24, 2026 09:17
7a34b0a to
d05eb65
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@doonce/tldraw-cli@0.1.0
Minor Changes
6378d43Thanks @BryanAdamss! - 新增 canvas.getSelection RPC 方法 + CLI canvas get-selection 子命令支持读取用户在浏览器中当前框选的 shapeId 集合,用于"LLM 画粗版 → 用户框选局部 → LLM 只改选中"迭代工作流(Observe-Select-Act)。
6378d43Thanks @BryanAdamss! - 新增 canvas.screenshot RPC 方法 + CLI canvas screenshot 子命令支持将当前画布导出为 PNG,写入临时文件,返回文件路径。LLM 用 Read 工具读取 imagePath 即可直接看到渲染结果,用于 Plan→Draw→Verify 工作流中的 Verify 步骤。
6378d43Thanks @BryanAdamss! -tldraw-cli start改为幂等语义:重复调用不再报错退出,而是复用既有 Host。跟stop的"不存在不报错"语义对称,LLM/脚本可以无脑start而不用先status判断。行为变化:
{state: "already-running", hostPid, httpPort, wsPort, frontendUrl, dev},exit 0(原先是 stderr 文本 + exit 1)state: "already-running"+note说明来源,exit 0--port N与现有 Host 端口不一致 → 输出{state: "error", message, hostPid, httpPort},exit 1(提示先 stop)Host already running (pid X)文本提示所有输出统一为 JSON,便于 parse。详见
skill/tldraw-cli/references/command-details.md的tldraw-cli start段。6378d43Thanks @BryanAdamss! - 新增tldraw-cli layout-check命令,检测画布中的 grid 对齐、节点间距、反向流视觉(dashed+grey),输出带suggested字段的可修正建议列表;违规时退出码 1,无违规退出码 0。create-arrow/update-shape新增对 arrow 的fill字段支持,可表达 UML 类图中实心/空心菱形头(聚合/组合),使用arrowheadEnd: "diamond"配合fill: "solid"或fill: "none"即可。6378d43Thanks @BryanAdamss! - 修复多个文档/产品偏差,由竞争假说审查发现:产品 fix:text 字段支持多行
create-geo-shape/create-text/create-arrow/create-note/update-shape的text字段中的\n之前会被静默丢弃(tldraw 自带toRichText不拆\n,加上 extractor 用空串 join 多 paragraph)。现改为:\n拆分成多 paragraph 的 ProseMirror 结构canvas snapshot/canvas diff在 paragraph 之间用\njoin,与写入对称LLM 现在可以写多行便签和带换行的标题。
update-shape 字段补齐
UpdateShapeCommandSchema之前缺labelColor/font/size/textAlign四个字段(文档已声称支持但 schema 拒绝)。现已补齐 schema 并由 executor 透传到 tldraw。文档校正
FillEnum实际有 5 个值(none/semi/solid/fill/pattern),文档之前漏了fill,现已补command-details.md的 snapshot 示例里textAlign默认从"middle"改为正确的"start"SKILL.md的"对比方案" Example 之前canvas create后未带--canvas导致 apply 落到默认画布,现改用--canvas $A/--canvas $B显式指定SKILL.md行为规则 #1 改写:原文"不要手动打开浏览器"受众错位(LLM 没"手动"动作),现改为针对 LLM 的"start 之后不要再起额外 Runtime"Patch Changes
6378d43Thanks @BryanAdamss! - 初始化项目6378d43Thanks @BryanAdamss! - 完善首版本功能