Skip to content

v1.6.2

Choose a tag to compare

@Wasabi2575 Wasabi2575 released this 25 Nov 07:05
· 12 commits to main since this release

中文更新说明

核心修复与体验优化

  1. 输入口磁吸连线(两段式引导线)
    • 拖拽输出连线靠近目标输入口时,自动在缩放自适应半径内(100% 缩放 23px ~ 缩小上限 36px)触发磁吸;横排(lr)与竖排(tb)均生效。
    • 预览线保留真实鼠标落点(输出 ┄┄ 鼠标 ── 输入 两段式引导),目标输入口轻柔放大 1.18× 并点亮 2px 同色光晕;松手按实时坐标直接建连,快速甩手不漏连。
  2. 节点有效性与「无出边」提示重构
    • 将结构警告(noOutgoing)与执行排除(deadEnds)解耦:合法终端子代理保持正常亮度(opacity: 1)+ 虚线黄框 + 黄色 ⚠ 无出边 徽章并正常参与执行;仅真正被跳过或被条件剪枝的节点变暗(opacity: 0.65)。
    • 空分工且无有效子代理直接输入的串联 Lead 成为路径屏障,阻断无效后代并保留独立有效路径;悬空分支与纯回环孤岛剥叶至不动点(BigInt 祖先位集,支持任意数量 Lead)。
    • 黄色警告胶囊同步显示运行状态(进行中 / 失败 / 已跳过),有历史子会话时可点击直达(附 ↗ 箭头)。
  3. 执行前有效图与回环一致性校验
    • 前后端均先校验原图前向环,再过滤无效节点;跨越无效节点、起点非条件节点或交叉重叠的受控回环会明确报错,不再静默裁掉。
    • 运行期依赖、条件剪枝、回退路径与回环处理统一使用过滤后的有效图,杜绝被条件拒绝的分支借道空 Lead 偷跑。
  4. DSH 0.2.2 宿主契约对齐与并发安全加固
    • 对齐 DSH 0.2.2-rc.5 源码契约:remote.workspaceFiles.stat 使用不透明 version 令牌并在异常时安全降级 read、[data-dockkit-content] 第 0 帧精准可见性、Agent.status === 'running' 中止检测、subagentchat 合法 mode: 'continuable' 及 Cordis scope.get() 安全取值。
    • 强化可写 standard 节点防重复执行:structured 节点 1-shot JSON 救援、noSchema 仅限只读节点且跳过 max-tokens / refusal、session-ref 冷启动单次降级;修复晚到子代理立即中断、/canvas-sync 保留暂停中 Lead、中文二元条件兜底、多 {...} 文本/剪贴板提取、Windows 保留文件名消毒及 3 处输入框 IME 守卫。

验证

  • npm run check:12/12 全部通过
  • npm test:108/108 全部通过
  • 隔离 npm pack 解包 ESM + Client VM 冒烟通过(16 个文件,171.9 KB)

English Release Notes

Highlights & Fixes

  1. Magnetic Input-Socket Snapping (Two-Segment Tether)
    • Dragging an outgoing wire near an input socket now snaps within a zoom-aware radius (23px at 100%, up to 36px when zoomed out) in both horizontal (lr) and vertical (tb) layouts.
    • Keeps the main dashed wire anchored to the real cursor and renders a crisp second solid tether to the target input (output ┄┄ cursor ── input), paired with a subtle 1.18× socket scale and 2px ring; releasing uses live mouseup coordinates so fast flicks never miss.
  2. Node Classification & No-Outgoing-Link Indicators
    • Separated structural warnings (noOutgoing) from execution exclusions (deadEnds): legal terminal agents keep full brightness (opacity: 1) with a dashed warning border and yellow ⚠ No out-link badge while still executing normally; only truly skipped or pruned nodes dim (opacity: 0.65).
    • Blank-role solo Leads act as reachability barriers while preserving independent active paths; dangling chains and loop-only dead islands peel to a fixed point using BigInt Lead-ancestry bitsets.
    • The yellow warning badge surfaces live/pruned runtime states and stays clickable (↗) when a historical child session exists.
  3. Effective-Graph & Loop Validation Parity
    • Both frontend buildPlan and backend executePlan validate raw forward cycles before filtering, reject loops crossing inactive nodes / non-condition sources / overlapping bodies instead of silently dropping them, and run condition pruning/fallback strictly on the effective graph.
  4. DSH 0.2.2 Host Contract Alignment & Concurrency Hardening
    • Aligned with source-verified DSH 0.2.2-rc.5 contracts: workspaceFiles.stat opaque version token with graceful read fallback, frame-0 [data-dockkit-content] visibility pausing, Agent.status === 'running' root cancellation, valid subagentchat mode: 'continuable', and safe scope.get() service resolution.
    • Prevented unintended re-runs on writable standard nodes (structured 1-shot JSON rescue, read-only-only noSchema retry, single-run session-ref cold fallback), fixed late-activation abort cleanup, preserved paused waitingLead on identical /canvas-sync, fixed CJK binary condition fallback, balanced multi-{...} JSON/clipboard extraction, Windows reserved device name sanitization, and CJK IME guards.

Verification

  • npm run check: 12/12 passed
  • npm test: 108/108 passed
  • Isolated npm pack ESM + Client VM smoke test passed (16 files, 171.9 KB packed)