ClipShelf

更新日志

Changelog

v1.0.2 2026年5月 May 2026

新功能

New Features

  • 新增 AI Agent 集成:通过 ClipShelf Skill 让你的 AI 助手直接读写剪贴板内容,实现 AI 驱动的剪贴板工作流
  • Added AI Agent integration: use the ClipShelf Skill to let your AI assistant read from and write to ClipShelf directly, enabling AI-powered clipboard workflows
  • 支持 Claude Code、Cursor 等 AI 工具通过 CLI 与 ClipShelf 交互
  • Support interaction with ClipShelf via CLI in AI tools like Claude Code, Cursor, and more
v1.0.1 2026年5月 May 2026

新功能

New Features

  • 为卡片添加创建时间显示,支持悬停查看完整时间和点击复制
  • Added creation time display to cards with hover tooltip and click-to-copy support
  • 时间格式化支持相对时间(如"刚刚"、"5分钟前")和绝对时间(yyyy/MM/dd HH:mm:ss)
  • Time formatting supports relative time (e.g., "just now", "5 minutes ago") and absolute time

改进

Improvements

  • 增强卡片数量限制的付费墙提示和本地化字符串
  • Enhanced paywall handling for card limit feature with updated localization strings
  • 优化拖拽处理逻辑,支持 macOS 26 并发安全
  • Optimized drag-and-drop handling to support concurrency on macOS
  • 增加卡片水平宽度从 220px 到 260px,改善布局效果
  • Increased horizontal card width from 220px to 260px for better layout

重构

Refactoring

  • 新增 PanelItemInteractionState 结构体管理项目交互状态
  • Added PanelItemInteractionState struct to manage item interaction state
  • 使用 interactionState 替代独立的 @State UUID 属性
  • Replaced individual @State UUID properties with interactionState
  • 添加 removeMissingItemIDs 方法清理过期项目引用
  • Added removeMissingItemIDs method to clean up stale item references

修复

Bug Fixes

  • 修复删除项目时的 SwiftData 崩溃问题
  • Fixed SwiftData backing data crash when deleting items
  • 修复删除顺序:先从 items 数组移除再删除 context
  • Fixed delete order: remove from items array before deleting from context
  • 修复 ForEach 使用 enumerated() 访问已删除对象的问题
  • Fixed ForEach to not use enumerated() to avoid accessing deleted objects

测试

Tests

  • 添加交互状态管理的单元测试
  • Added unit tests for interaction state management
  • 添加删除顺序验证的单元测试
  • Added unit test for delete order verification
← 返回首页 ← Back to Home