Skip to content

Releases: Doulor/Clawd-Companion

v1.5.12 — Hooks 守护间隔修复

Choose a tag to compare

@Doulor Doulor released this 21 Jun 03:37

🐛 Bug 修复

  • Hooks 守护间隔设置不生效 — 修复拖动滑块修改检测间隔后定时器未重启的问题。现在 hooksGuardIntervalMs 变化时会正确清除旧的 setTimeout/setInterval 并以新间隔重启守护。

v1.5.11 — Hooks 守护 + 诊断优化

Choose a tag to compare

@Doulor Doulor released this 21 Jun 03:31

🛡️ Hooks 配置守护(新增)

新增 配置守护 功能,解决外部工具(如 ccs/ccswitch)切换模型覆盖 settings.json 导致 hooks 失效的问题。

  • 后台定时检测 hooks 配置是否完整,缺失时自动修复
  • 默认每 30 秒 检测一次,支持 5~60 秒 拖动自定义
  • 数据源面板顶部新增开关和间隔滑块
  • 检测和修复操作自动记录到 runtime.log[HooksGuard] 前缀)

🐛 Bug 修复

  • Dev 标记闪烁消失InstalledCardPluginDetailPage 同时检查 plugin.devBadgeplugin.manifest?.devBadge,确保标记在所有视图稳定显示
  • 诊断插件超时timeoutMs 从 20s 提升到 60s;readTextFile 对大文件改为尾部读取,避免整个 runtime.log 载入内存导致超时

🔧 其他改进

  • runPluginNow 支持 action 参数,返回 runId + record
  • PluginDetailPage 新增诊断专用 UI:进度模态框、结果内联展示、保存按钮
  • 数据源面板添加 hooks 备份提示
  • 移除重复的 HooksManager 分组卡片

Full Changelog: v1.5.10...v1.5.11

1.5.10

Choose a tag to compare

@github-actions github-actions released this 11 Jun 17:00
fix(plugins): Dev badge visibility + diagnostic timeout

- Fix dev-badge not showing: check plugin.devBadge (top-level field) in
  addition to plugin.manifest?.devBadge in InstalledCard and
  PluginDetailPage. When a plugin is installed before devBadge was added
  to the manifest, the stored manifest may lack the field.
- Fix diagnostic-logger timeout: increase timeoutMs from 20000 to 60000;
  optimize readTextFile to read only the tail for large files instead of
  loading the entire runtime.log into memory.
- Add diagnostic-logger plugin to plugin market (new).
- Add daily-report plugin _lf.js helper.
- PluginDetailPage: full diagnostic UI with progress modal, inline
  findings, and save-to-file support.
- runPluginNow returns runId + record for downstream parsing.
- SourcesPanel backup note; remove legacy HooksManager group card.

1.5.9

Choose a tag to compare

@github-actions github-actions released this 09 Jun 16:09
v1.5.9

chore: bump version to 1.5.9

1.5.6

Choose a tag to compare

@github-actions github-actions released this 09 Jun 06:08

Daily Report 插件 V2 — 全面升级

新功能

  • 累计统计报告:读取 stats.json 完整历史(90天),不受 40 条事件限制
  • 模型用量统计:从 token-stats-cache.json 读取各模型 token 用量(gpt-5.5、deepseek、mimo 等)
  • 数据持久化cumulative-data.json 自动保存每日统计,安装前的历史数据也能累积
  • SVG 折线图:每日工具调用趋势,带绘制动画
  • 入场动画:数字从 0 递增、环形图展开、柱状图生长、折线绘制
  • 数据洞察:日均工具调用、平均会话时长、最高产日、最佳成功率日

插件系统改进

  • "立即生成"按钮移到设置下方,带 toast 反馈(成功/失败提示)
  • 事件/权限编辑器改为只读显示(由插件清单定义,不可修改)
  • 设置项支持中文标签(labelZh 字段)
  • CLAWD_APP_VERSION 环境变量传递给插件,footer 版本号动态读取
  • 插件超时从 15s 提升到 60s

Bug 修复

  • 环形图比例计算错误(errorRate 被重复乘以 3.6)
  • Timeline CSS 类名不匹配(.tl vs .timeline-item
  • stdin 竞态条件导致 processInput 可能执行两次
  • history.entrieshistory.events 字段名修复(插件无法读取事件历史的根因)
  • 移除按钮高度在全屏下异常
  • 工具栏不再固定在页面顶部

UI 样式

  • 液态玻璃风格全面适配:工具栏、安装按钮、插件卡片、详情页、筛选按钮等
  • 已安装/插件市场分区界限更清晰(独立背景色卡片 + 分割线)
  • 标签/badge 文字垂直居中对齐

v1.5.5 — 插件市场工作台 + 番茄钟插件化

Choose a tag to compare

@github-actions github-actions released this 09 Jun 02:13

插件市场重大升级

  • 全页插件工作台:插件 tab 重构成搜索/过滤/卡片管理体验,不再展示分散的小面板
  • 全页二级详情页:每个插件拥有独立的详情页,包含 README 说明、设置表单、事件权限配置、运行记录
  • 安全 Markdown 渲染:插件 README 支持标题/列表/代码块/链接,不使用 dangerouslySetInnerHTML
  • 三个市场插件
    • 番茄钟:桌面组件化,支持拖动点,从硬编码迁移为插件管理
    • Webhook 通知:将 Claude Code 事件推送到 Discord/Slack/自定义 HTTP 端点,含完整配置教程
    • 会话日志:将事件记录到本地日志文件

番茄钟插件化

  • 从「行为」页移除番茄钟配置,全部迁移到插件系统
  • 支持桌面拖动点(点阵把手),可切换显示/隐藏
  • 旧设置自动迁移到新插件

深色模式

  • 插件页全面适配深色模式
  • 番茄钟文字/按钮使用固定深色,不受系统主题影响

修复

  • 在 Claude Code 桌面端聚焦时番茄钟仍可正常交互
  • 番茄钟初始状态改为「待开始」,不再默认为「专注中」
  • 倒计时进度环颜色加深

v1.5.3 — 多 CLI 支持 / Multi-CLI Support

Choose a tag to compare

@Doulor Doulor released this 08 Jun 15:04

v1.5.3 — 多 CLI 支持 / Multi-CLI Support

多 CLI 架构 / Multi-CLI Architecture

  • Provider 抽象:新增 Provider 接口,Claude Code 和 OpenAI Codex 共享同一套事件管线。扩展 ToolName 枚举(Shell / UpdatePlan / ApplyPatch / ViewImage)。
  • 独立 Codex forwarderapps/hook-forwarder-codex/ 与 Claude forwarder 并列,复用 apps/hook-forwarder-core/ 共享逻辑。
  • Provider abstraction: new Provider interface; Claude Code and OpenAI Codex share one unified event pipeline. Extended ToolName enum with Shell / UpdatePlan / ApplyPatch / ViewImage.
  • Standalone Codex forwarder: apps/hook-forwarder-codex/ ships alongside the Claude forwarder, sharing apps/hook-forwarder-core/.

OpenAI Codex 支持 / OpenAI Codex Support (测试中 / Beta)

  • TOML hooks 读写:手写最小 TOML 解析器(toml-hooks.ts),保留 ~/.codex/config.toml 中不认识的段;Codex 10 种事件类型全部映射。
  • Windows 适配:Codex hook 在 Windows 下同时写 commandcommandWindows
  • Hand-rolled TOML parser preserves foreign sections; all 10 Codex event types mapped.
  • Windows: Codex hooks write both commandcommandWindows.

UI / UX

  • 数据源 (Sources) 面板:双栏卡片并排显示 Claude Code 与 OpenAI Codex 的 hook 状态。Codex 卡片标有"测试中"角标。
  • 按钮风格统一:Sources 面板按钮复用已有 .hooks-actions 样式。
  • 英文 README 新增README.en.md 双列对齐,新增下载量 / Star History 徽章。
  • Sources panel: two side-by-side provider cards with hook status. Codex card has a "Beta" badge.
  • English README: added README.en.md with cross-links and new badges.

Bug 修复 / Bug Fixes

  • 子 agent 权限弹窗修复:子 agent 派发的 PreToolUse 事件不再误触发权限弹窗(permission_mode 缺失时不再默认弹窗)。
  • Sub-agent permission fix: PreToolUse events from sub-agents no longer incorrectly trigger the permission dialog when permission_mode is missing.

基础设施 / Infrastructure

  • hook-forwarder-core 共享模块;enabledSources 设置迁移;DoctorReport 按 provider 聚合。
  • Shared hook-forwarder-core module; enabledSources migration; per-provider DoctorReport.

测试 / Tests

  • 新增 4 个测试文件,74 个测试用例全部通过。
  • Added 4 test files; 74 tests passing.

完整变更 / Full Changes

44 files changed, 3,870 insertions, 198 deletions.

v1.5.2 — 优化更新 / Optimization Update

Choose a tag to compare

@Doulor Doulor released this 08 Jun 10:29

优化更新 / Optimization Update

性能与内存 / Performance & Memory

  • 默认启动时不再自动打开设置窗口,降低常驻内存占用。

  • 宠物窗口不再维护完整事件列表;设置窗口仍保留事件历史展示。

  • 拆分 renderer 状态逻辑,降低主渲染文件复杂度。

  • Reduced default resident memory by no longer opening the settings window on startup.

  • Avoided keeping the full event list in the pet renderer; the settings window still keeps event history for display.

  • Split renderer state logic into reusable modules to reduce main renderer complexity.

自动更新与发布可靠性 / Auto Update & Release Reliability

  • 新增真实的「启动时自动检查更新」开关,默认开启。

  • 更新状态增加上次检查时间,并接入诊断中心。

  • CI / Release 流程新增 lint 检查和产物校验。

  • Added a real auto-update startup switch, enabled by default.

  • Improved update status reporting with last-check timestamps and Doctor diagnostics.

  • Added CI/release lint checks and release artifact validation.

Hook 与连接安全 / Hook & Connection Safety

  • 保留用户已有 Claude Code hooks,不再覆盖用户自定义配置。

  • 修复旧 Clawd hook 命令时保留用户 hooks,并清理过期 Clawd hook。

  • 固定本地 token 改为随机生成,通过本地 connection 配置共享,避免暴露在 hook 命令中。

  • Preserved user-defined Claude Code hooks instead of overwriting them.

  • Repaired stale Clawd hook commands safely while keeping user hooks intact.

  • Replaced the fixed local token with a generated token shared through a local connection config instead of exposing it in hook commands.

数据可靠性 / Data Reliability

  • settings / history / stats / token cache / hook 配置写入改为原子 JSON 写入,并增加备份恢复。

  • 设置和统计导入增加校验,并在导入前备份当前数据。

  • Added atomic JSON writes with backup fallback for settings, history, stats, token cache, and hook config updates.

  • Added safer settings/stat import validation and import backups.

安全与插件加固 / Security & Plugin Hardening

  • 限制外部链接只能打开可信 HTTPS GitHub 域名。

  • 本地 HTTP event server 增加事件校验、请求大小限制和权限 payload 校验。

  • 限制插件 stdout/stderr 内存增长,并显示 manifest 解析错误。

  • UI 中明确提示受信任插件拥有本机 Node.js 权限。

  • Restricted external URL opening to trusted HTTPS GitHub domains.

  • Added local HTTP event validation, request size limits, and permission payload validation.

  • Limited plugin stdout/stderr memory growth and surfaced plugin manifest errors.

  • Clarified trusted plugin permissions in the UI.

维护性与测试 / Maintainability & Tests

  • 拆分 auto-updater、hook manager、event-server helpers、StatsPanel、useCompanion 等模块。

  • 增加 hooks、event validation、atomic JSON、plugin errors、settings defaults、forwarder CLI options 等测试。

  • Split auto-updater, hook manager, event-server helpers, stats panel, and companion state into smaller modules.

  • Added tests for hooks, event validation, atomic JSON, plugin errors, settings defaults, and forwarder CLI options.

验证 / Validation

  • npm run lint
  • npm run typecheck
  • npm test
  • npm run dist
  • npm run dist:validate

1.5.1

Choose a tag to compare

@github-actions github-actions released this 08 Jun 08:27

1.5.1 — 工作流与通知打磨 / Workflow and Notification Polish

中文

  • 打磨管理界面与交互细节。
  • 完善 CI 安装与发布流程。
  • 集成事件导出、通知后端、插件执行和相关面板。
  • 增加发布校验脚本,提升发布产物一致性。

English

  • Polished the management UI and interaction details.
  • Improved CI installation and release workflow behavior.
  • Integrated event export, notification backend, plugin execution, and related panels.
  • Added release validation scripts to improve artifact consistency.

1.5.0 — 液态玻璃 UI · 动画 · 插件 · 通知

Choose a tag to compare

@Doulor Doulor released this 07 Jun 17:29

1.5.0 — 液态玻璃 UI · 动画 · 插件 · 通知

中文

  • 新增经典 / 液态玻璃 UI 风格切换,完整适配日间与夜间模式。
  • 统一玻璃质感卡片、按钮、输入框和柔和光斑背景。
  • 优化主题切换、Tab View Transition、按钮与卡片微动效,并支持 prefers-reduced-motion
  • 重构设置面板布局,修复横向溢出并增加响应式适配。
  • 新增事件历史 JSON 导出、通知规则后端、插件系统后端、WebM 动画录制、多显示器设置和通知规则面板。
  • 增加发布校验、ErrorBoundary、stats 90 天清理、WebSocket token 认证和全局快捷键。

English

  • Added Classic / Liquid Glass UI style switching with full day and night mode support.
  • Unified glass-style cards, buttons, inputs, and soft glow backgrounds.
  • Improved theme switching, tab View Transitions, button/card micro-interactions, and prefers-reduced-motion support.
  • Refactored the settings panel layout, fixed horizontal overflow, and added responsive breakpoints.
  • Added event history JSON export, notification rules backend, plugin backend, WebM animation recording, multi-display settings, and notification rules panel.
  • Added release validation, ErrorBoundary protection, 90-day stats cleanup, WebSocket token authentication, and a global shortcut.