Skip to content

In-panel updater, routing corner cleanup, tool & skill polish

Choose a tag to compare

@paul356 paul356 released this 02 Nov 01:00
be4b345

What's new in 0.2.9

This release syncs develop → main and includes:

  • In-panel update check and one-click upgrade (#212, #213): the panel now asks the GitHub releases API whether a newer plugin exists and can install it from the UI. Download streams to a temp file and is verified against the published SHA256SUMS before anything is touched; the existing tree is snapshotted to .backup/<version>-<timestamp>/, the swap is traversal-safe, and a .git checkout is refused as an upgrade target. The updater core is wx-free, so it is testable without a GUI.
  • Updater reliability (#218, #221, #223, #224, #225, #226): releases published before the checksum asset existed (every release up to 0.2.8) are installable again instead of being skipped for a missing SHA256SUMS; check failures now carry a reason (ok / network / timeout / metadata) so the panel stops blaming the network for a metadata problem, with a 10 s timeout and one retry. The installed version is read from the venv METADATA instead of spawning the venv interpreter from the panel thread (which could stall and report "unknown version" after a successful upgrade), editable kcaa installs are no longer upgraded behind the user's back, the update dialog sizes itself to its text, PEP 440 pre-release spellings such as 0.2.9-RC1 / 0.2.9rc1 now compare equal after install, and the wxGTK crash when the panel builds its paperclip icon is fixed (wx.TRANSPARENT_BRUSH / wx.WHITE are uninitialised stock placeholders in KiCad's embedded interpreter, and wxGCDCImpl::DoDrawEllipticArc() asserts on them).
  • Routing (#214, #216, #217, #182, #183): a post-walkaround corner-shouldering pass removes 90° turns from 45-family routes by replacing each with the 45° bisector of its two legs (absorbed into the adjacent chamfer when collinear), accepting a candidate only when every segment stays on the 0/45/90 family, no segment is narrower than the track, and the copper audit passes. Walked chains also merge parallel diagonals that share a 45° slot and absorb terminal pad-exit stubs, emitting two segments where they used to emit three. Oval and slot NPTH drills are now part of the world model as capsule obstacles with KiCad slot semantics (previously they crashed the parser and vanished silently), and the pad exit/entry wire follows the pad's own absolute rotation instead of an axis-aligned bounding box.
  • Agent and tools (#195, #198, #199, #202, #205, #208): MCP results carrying isError are reported as success: false with the extracted message instead of being wrapped as a success; error replies that arrive without streaming are surfaced as a red status notice even when the turn already streamed text, and every fatal exit logs the reply at WARNING; status-poll rounds no longer eat the turn's iteration budget while a symbol/footprint sync runs in the background; list_symbol_libraries is a flat paginated list (name, symbol_count, file_path) matching get_library_symbols; the agent-internal placement_group marker is written as a canonical hidden property so it stops appearing on the PCB canvas, and markers from older servers are healed on the next group update; a skill whose frontmatter declares tools: is injected once per session on the first call of that tool, instead of relying on the model to look it up.
  • Docs (#185, #210): the backlog document is split into Open Issues / Fixed with the shipped entries marked, and both READMEs now headline that contributions are welcome.

Plugin ZIP: kicad_ai_assistant.zip (built from make dist-plugin on CI).


中文翻译

0.2.9 更新内容

本次发布将 develop 同步至 main,包含以下更新:

  • 面板内更新检查与一键升级(#212、#213):面板会向 GitHub releases API 查询是否有更新,并可直接在界面内完成升级。下载先写入临时文件,用发布页的 SHA256SUMS 校验通过后才动现有安装;升级前把现有目录快照到 .backup/<version>-<timestamp>/,替换过程防目录穿越,且拒绝把 .git 检出目录当作升级目标。升级核心不依赖 wx,可在无 GUI 环境下测试。
  • 升级器可靠性(#218、#221、#223、#224、#225、#226):在校验文件机制出现之前发布的版本(0.2.8 及更早)不再因为缺少 SHA256SUMS 被跳过,可以正常升级;检查失败会带上原因(ok / network / timeout / metadata),不再一律归咎于网络,超时放宽到 10 秒并重试一次。已安装版本改为从 venv 的 METADATA 读取,不再从面板线程拉起 venv 解释器(那条路径可能卡住,并在升级成功后误报“版本未知”);editable 安装的 kcaa 不再被自动升级;更新弹窗按文本自适应尺寸;0.2.9-RC1 与 0.2.9rc1 这类 PEP 440 预发布写法在安装后比较相等;修复面板构建回形针图标时的 wxGTK 崩溃(wx.TRANSPARENT_BRUSH / wx.WHITE 在 KiCad 内嵌解释器里是未初始化的 stock 占位对象,wxGCDCImpl::DoDrawEllipticArc() 会在其上触发断言)。
  • 布线(#214、#216、#217、#182、#183):新增绕障后的拐角修整:45° 家族路径中的 90° 拐角替换为两条边的 45° 角平分线(共线时并入相邻倒角),只有所有线段都落在 0/45/90 家族、线宽不小于设定值且铜层审计通过时才采纳。绕障链还会合并处于同一 45° 槽位的平行斜边并吸收布线末端的焊盘引出残段,原本三个线段的位置改为两段。椭圆/槽形 NPTH 钻孔以胶囊体形式进入世界模型(遵循 KiCad 槽孔语义),此前会让解析器崩溃并被静默丢弃;焊盘出线方向改为跟随焊盘自身绝对旋转,而不再按轴对齐包围盒计算。
  • 智能体与工具(#195、#198、#199、#202、#205、#208):MCP 返回 isError 的结果现在报告为 success: false 并附带提取出的错误信息,不再被包装成成功;即使本轮已经流式输出过文本,未流式的错误回复也会以红色状态提示展示,并在每个致命退出点以 WARNING 记录回复内容;符号/封装索引后台同步期间的轮询轮次不再消耗本轮的迭代预算;list_symbol_libraries 改为扁平分页列表(name、symbol_count、file_path),与 get_library_symbols 一致;智能体内部使用的 placement_group 标记改为以 KiCad 规范的 hidden 属性写入,不再显示在 PCB 画布上,旧版本服务端写入的标记会在下次分组更新时被修正;frontmatter 中声明了 tools: 的技能会在该工具首次调用时自动注入一次,不再依赖模型主动查询。
  • 文档(#185、#210):backlog 文档拆分为 Open Issues / Fixed 两部分并标注已交付条目;两份 README 都在开头说明了欢迎贡献。

插件 ZIP:kicad_ai_assistant.zip(由 CI 上执行 make dist-plugin 构建)。