Skip to content

feat(aifalse): zero-config hardware monitoring; feat(servicemenu): liquid-glass service menu - #1317

Open
zzd1314 wants to merge 7 commits into
FloatTech:masterfrom
zzd1314:upstream-pr
Open

feat(aifalse): zero-config hardware monitoring; feat(servicemenu): liquid-glass service menu#1317
zzd1314 wants to merge 7 commits into
FloatTech:masterfrom
zzd1314:upstream-pr

Conversation

@zzd1314

@zzd1314 zzd1314 commented Sep 9, 2026

Copy link
Copy Markdown

Four themed commits, two features + two fixes:

feat(aifalse): zero-config Windows hardware monitoring

  • Auto-download/configure/start LibreHardwareMonitor on first hardware check (Windows); silent background startup
  • LHM WMI + LHM HTTP REST + HWiNFO registry + gopsutil ACPI collected in parallel with 3s timeouts
  • Real-time CPU usage background sampling (1s interval)
  • Fan speed / CPU power cards when sensor data is available; auto-hidden otherwise
  • Full GPU coverage (NVIDIA/Intel/AMD via PowerShell + nvidia-smi), unified info-card style
  • Temperature card simplified to CPU Core entries only
  • Linux/macOS keep native gopsutil paths (zero dependency)

feat(servicemenu): liquid-glass service menu plugin

  • iOS liquid-glass UI: SDF edge refraction + rim light, bilinear displacement sampling, premultiplied alpha, gaussian drop shadow
  • Two-column large cards (~514px): 28px plugin name + 20px brief with two-layer outlined white text, on/off capsule badges - readable without zooming
  • Pixel-width ellipsize (binary search, rune-safe)
  • 4 themes (menu / 主题 ), usage card per plugin (菜单用法 ), graceful reload, random background from data/aifalse
  • No @mention needed; includes render test (go test ./plugin/servicemenu)

feat(main): quality-of-life

  • Load superusers from data/superusers.txt (one QQ per line, # comments)
  • Fix ZeroBot CommandRule matching when message starts with @bot (at segment before text): reorder text segment to front at priority 0, non-blocking
  • file.SkipOriginal = true to skip github raw mirrors timeout at startup
  • Register servicemenu

fix(chat): lower ai/thesaurus priority

  • aichat & thesaurus OnMessage matchers set to priority 10 so control commands (/全局禁用 etc.) are not intercepted first

- servicemenu: 封装 loadFont 检查字体加载错误、检查 cmd.Run 错误、
  SetTheme 补注释、删除未用参数、简化 clamp 闭包、gocritic assignOp
- aifalse: fmt.Errorf 改用 pkg/errors(forbidigo)、切片预分配(prealloc)、
  gpTs 改名 gpTS(stylecheck)、gpustate 去掉恒为 nil 的 error 返回(unparam)、
  lhm_autosetup 补齐错误检查与未用参数
- abineundo: syscall.Syscall 升级 SyscallN(SA1019)、消除 else-return(revive)
- hardware_other: 占位函数未用参数改 _

@fumiama fumiama left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你自己看看和 #1319 有什么区别?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants