Doubao-powered voice input for Linux, Wayland and Omarchy
chore(release): prepare v1.2.0
quanrubbb11ddd4635
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 52f7510..0eb1738 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -143,4 +143,4 @@ jobs:GH_TOKEN: ${{ github.token }}run: |gh release create "${GITHUB_REF_NAME}" release-assets/* \- --verify-tag --title "Doubao Say ${GITHUB_REF_NAME#v}" --generate-notes+ --verify-tag --title "Doubao Say ${GITHUB_REF_NAME#v}" --notes-file RELEASE_NOTES.mddiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 75ea7fc..69c614d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,34 @@# Changelog+## 1.2.0++- Added optional Vibekey receiver support with authenticated heartbeat and hot-plug+ recovery. Its three buttons, two dial directions, and dial press have useful+ defaults and can each send a custom recorded shortcut. Support remains off by+ default and uses a narrowly scoped udev rule without adding a software dependency.+- Recover cleanly when a microphone or keyboard device disconnects. Unexpected+ PipeWire termination stops the active session, stale callbacks cannot affect a+ newer recording, and one failed evdev device no longer drops every keyboard.+- Added live microphone refresh in Settings. Opening Settings or pressing Refresh+ devices rescans PipeWire inputs while preserving a saved device that is temporarily+ unavailable.+- Gave voice polishing its own status row, subtle sparkle animation, delayed+ original-text shortcut hint, and reduced-motion presentation. Streaming text no+ longer has to carry the polishing status prefix.+- Added provider-aware low-latency reasoning controls and clearer bilingual guidance.+ Official DeepSeek and compatible Gemini configurations request thinking off;+ Zhipu standard and Coding Plan endpoints request thinking off where supported,+ while GLM-5.3 variants use low reasoning effort because they reject that switch.+ The five-second deadline and original-text fallback remain unchanged.+- Simplified onboarding navigation with larger icon-only arrow controls and localized+ tooltips.+- Rebuilt desktop acceptance around Midscene Test on Ubuntu 22.04 and Omarchy 4.0.3.+ CI now publishes per-case Markdown evidence tables, node screenshots, AI text or+ errors, direct failed-node links, replayable HTML reports, and retained report+ history even when individual cases fail. Product cases run in parallel shards.+- Removed automatically loaded coding-agent instruction files from the distributed+ Marketplace checkout and added a publication guard to prevent them from returning.+## 1.1.0- Added native X11/XFCE automatic input with target/focus guards, terminal-awarediff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex b374117..42c7d87 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -79,9 +79,9 @@ For marketplace preparation, use `make marketplace-check` with Gitleaks on PATHand follow [the publishing checklist](packaging/MARKETPLACE.md). Reports and localreview drafts belong in ignored `artifacts/` and `docs/`, not in release payloads.-The current public version is `1.1.0`. Keep `pyproject.toml`, `manifest.json` and+The current public version is `1.2.0`. Keep `pyproject.toml`, `manifest.json` and`src/doubao_input/product.py` aligned; `python packaging/version_check.py` verifies-them. A pushed tag such as `v1.1.0` runs all checks and secret scanning, builds app+them. A pushed tag such as `v1.2.0` runs all checks and secret scanning, builds appand plugin archives for every supported Python version, creates `SHA256SUMS`, andpublishes the GitHub Release. `workflow_dispatch` performs a non-publishing build.# Bounded desktop testsdiff --git a/README.md b/README.mdindex 14d924c..129d71b 100644--- a/README.md+++ b/README.md@@ -404,7 +404,7 @@ validate package metadata and scan for secrets. The current whole-package branchcoverage floor is 55%; desktop UI, WebKit and real-device paths remain includedin the denominator.-The current release version is **1.1.0**. A `v1.1.0` tag must match every embedded+The current release version is **1.2.0**. A `v1.2.0` tag must match every embeddedversion before CI can publish. Tag releases rebuild both offline app and Omarchyplugin archives for Python 3.11–3.14 and attach SHA-256 checksums. A manually startedrelease workflow builds artifacts for inspection but does not publish them. Realdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex c636394..9063186 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -317,7 +317,7 @@ timeout --kill-after=5s 50s env PYTHONPATH=src python3 tests/manual/x11.py --runGTK 测试、代码检查、编译、包元数据校验和密钥扫描。覆盖率按整个源码包的分支覆盖率计算,当前真实门槛为 55%;GTK 界面、WebKit 和实体设备路径没有从分母中排除。-当前发布版本为 **1.1.0**。只有 `v1.1.0` 标签与所有内置版本完全一致时,CI 才能发布。+当前发布版本为 **1.2.0**。只有 `v1.2.0` 标签与所有内置版本完全一致时,CI 才能发布。标签发布会为 Python 3.11–3.14 分别构建独立应用与 Omarchy 插件离线包,并附带 SHA-256校验文件。手动启动发布工作流只构建供检查的产物,不会公开发布。真实登录、麦克风、全局按键及桌面行为仍需按人工验收清单检查。diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.mdnew file mode 100644index 0000000..9d5c194--- /dev/null+++ b/RELEASE_NOTES.md@@ -0,0 +1,87 @@+# Doubao Say 1.2.0++豆包说 1.2.0 补齐了硬件控制、设备恢复、语音润色和公开验收报告。下面先列本次新增,再汇总当前版本的完整能力,便于直接用于对外介绍。++## 1.2.0 新增++### Vibekey 六个控件都能自定义++Vibekey 支持默认关闭,普通键盘用户不会多出扫描和监听开销。启用后,三个按键默认对应录音、确认和取消;旋钮右转、左转和按下默认对应下方向键、上方向键和 Meta+Backspace。六个控件都可以重新录制成任意键盘快捷键。++接收器现在会完成认证并维持心跳,拔插后可以自动恢复。安装包附带只匹配该设备 VID/PID 的 udev 规则,不新增软件依赖。++### 麦克风和键盘断开后可以恢复++PipeWire 意外结束时,应用会停止当前录音,不再让悬浮窗卡在录音状态。某个 evdev 设备断开只会移除该设备,其余键盘继续工作;旧录音留下的回调也不会影响新的录音。++设置页把麦克风选择移到了更靠前的位置。每次打开设置都会重新扫描设备,也可以手动点击“刷新设备”。已经保存但暂时离线的麦克风仍会保留,不会悄悄切换到别的输入源。++### 语音润色的状态更清楚++润色状态从转写正文中独立出来,悬浮窗会显示单独的状态栏和轻微闪烁的星星。等待三秒后会提示再次按快捷键可立即使用原文;开启“减少动态效果”后,星星保持静止。++模型策略也更明确。官方 DeepSeek 和适配的 Gemini 配置会请求关闭思考;智谱标准 API 与 Coding Plan 在支持时同样关闭思考。GLM-5.3 和 GLM-5.3-Flash 不接受关闭思考参数,因此改用低推理强度。润色仍然遵守五秒总时限,超时就使用原始转写,不会卡住输入。++### 首次引导更利落++上一步和下一步改成了更大的箭头按钮,点击区域保持不变,并保留中英文提示。窄窗口和桌面平铺场景下更容易看清当前操作。++### CI 报告可以直接检查每个用例++Ubuntu 22.04 与 Omarchy 4.0.3 现在运行同一套 Midscene Test 桌面用例。GitHub Actions Summary 会按用例显示结果、真实节点截图,以及对应的 AI 说明或错误;失败项可以直接跳到第一个失败节点。完整 HTML 报告支持回放,并保留最近 30 次历史记录。即使部分用例失败,汇总表仍会生成。++测试已经拆成并行分片,产品用例和 Omarchy shell 验证可以同时执行。取消旧运行后,报告任务也会及时停止,避免继续消耗模型额度。++### Marketplace 分发边界更安全++安装目录不再包含会被编码代理自动加载的仓库级指令文件。发布前检查会拒绝 `AGENTS.md`、`CLAUDE.md`、Copilot instructions 等入口,防止第三方插件目录改变代理的工作区规则。++## 当前版本完整能力++### 两种语音识别模式++- **豆包账号模式**:通过独立网页窗口登录豆包,沿用现有账号完成语音识别。+- **火山引擎官方 API 模式**:使用自己的 Volcengine Seed ASR 2.0 API Key,可在设置页保存并测试连接。音频只在录音期间发送到所选服务,用量由火山引擎按用户账号计费。++两种模式都集成在同一个首次引导和设置页中,可以随时切换。API Key 使用仅当前用户可读的独立文件保存,不写入普通设置和日志。++### OpenAI 兼容语音润色++可以填写 Base URL、API Key、模型,以及独立的中英文 Prompt。应用会根据转写的主要语言自动选择 Prompt,在停顿时流式预览润色结果。继续说话会让旧请求失效;最终请求失败或超过五秒时,会安全使用原始转写。++### Wayland 与原生 X11 输入++支持短按开始或结束、长按说话松开结束,以及双击发送 Enter。Wayland 可以选择剪贴板粘贴或通过 `wtype` 直接输入;原生 X11 支持带目标窗口和焦点保护的自动粘贴。识别成功但无法确认目标窗口时,文字会保留,供用户复制或重试。++### 应用与 Omarchy 插件两种安装方式++Release 同时提供独立应用包和 Omarchy 插件包,并为 Python 3.11、3.12、3.13、3.14 构建离线依赖。统一安装器会先列出缺少的系统包并征求确认。应用会检查 GitHub 上的最新稳定版,但只提示更新,不会自动下载或安装。++## 升级++Git 安装的 Omarchy 插件请先结束录音并停用插件,再执行:++```sh+omarchy plugin update md.lifeos.doubao-say+cd "${XDG_CONFIG_HOME:-$HOME/.config}/omarchy/plugins/md.lifeos.doubao-say"+./install.sh+omarchy plugin enable md.lifeos.doubao-say+```++使用 Release 压缩包安装的用户,请下载与 Python 版本和 CPU 架构匹配的新包,在解压目录运行 `./install.sh` 覆盖安装。设置和登录信息会保留。++豆包说是非官方客户端,不代表豆包或字节跳动的认可或背书。++---++## English highlights++Doubao Say 1.2.0 adds complete opt-in Vibekey support, cleaner recovery from microphone and keyboard disconnects, live microphone refresh, a dedicated polishing status presentation, provider-aware low-latency reasoning controls, and simpler onboarding navigation.++The current release supports two recognition backends: the default Doubao web-account flow and an optional official Volcengine Seed ASR 2.0 API mode using the user's own key. It also includes OpenAI-compatible voice polishing with bilingual prompts, streaming previews, a five-second original-text fallback, Wayland and native X11 text delivery, and separate standalone-app and Omarchy-plugin archives.++CI now runs shared Midscene Test desktop scenarios on Ubuntu 22.04 and Omarchy 4.0.3. Each case publishes its real node screenshot, AI explanation or error, direct failure link, replayable HTML report, and retained history. Marketplace publication checks also reject files that coding agents automatically load as workspace instructions.++Doubao Say is an unofficial client and is not endorsed by or affiliated with Doubao or ByteDance.++See the full comparison: https://github.com/quanru/doubao-say/compare/v1.1.0...v1.2.0diff --git a/manifest.json b/manifest.jsonindex 1616933..9994c22 100644--- a/manifest.json+++ b/manifest.json@@ -2,7 +2,7 @@"schemaVersion": 1,"id": "md.lifeos.doubao-say","name": "Doubao Say",- "version": "1.1.0",+ "version": "1.2.0","author": "quanru and contributors","description": "Doubao Say turns speech into polished text with live captions and configurable tap or hold triggers on Wayland.","kinds": [diff --git a/packaging/INSTALL.md b/packaging/INSTALL.mdindex 1989f73..3f283a1 100644--- a/packaging/INSTALL.md+++ b/packaging/INSTALL.md@@ -1,4 +1,4 @@-# Doubao Say 1.1.0+# Doubao Say 1.2.0English interface by default. Select System, English or 简体中文 in Settings;the choice saves and applies automatically. System follows the session locale (Chinese → Simplified Chinese;diff --git a/packaging/build-deb.sh b/packaging/build-deb.shindex 15113e6..88e821a 100755--- a/packaging/build-deb.sh+++ b/packaging/build-deb.sh@@ -7,7 +7,7 @@# python3-websockets python3-sounddevice python3-evdev## Usage:-# ./packaging/build-deb.sh # builds ../doubao-say_1.1.0-1_all.deb+# ./packaging/build-deb.sh # builds ../doubao-say_1.2.0-1_all.deb# ./packaging/build-deb.sh --install # also installs it locallyset -ediff --git a/packaging/runtime-requirements.txt b/packaging/runtime-requirements.txtindex 7289090..635bc0b 100644--- a/packaging/runtime-requirements.txt+++ b/packaging/runtime-requirements.txt@@ -1,4 +1,4 @@-# Complete Python dependency set tested for the 1.1.0 release.+# Complete Python dependency set tested for the 1.2.0 release.websockets==17.1sounddevice==0.5.6evdev==2.0.0diff --git a/pyproject.toml b/pyproject.tomlindex ea2f60d..5d54911 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "doubao-say"-version = "1.1.0"+version = "1.2.0"description = "Global push-to-hold voice input for Linux/Wayland, backed by Doubao ASR"readme = "README.md"requires-python = ">=3.11"diff --git a/src/doubao_input/product.py b/src/doubao_input/product.pyindex ccd7901..2c28624 100644--- a/src/doubao_input/product.py+++ b/src/doubao_input/product.py@@ -1,5 +1,5 @@"""Single runtime source for Doubao Say release identity."""-VERSION = "1.1.0"+VERSION = "1.2.0"REPOSITORY_URL = "https://github.com/quanru/doubao-say"LATEST_RELEASE_API = "https://api.github.com/repos/quanru/doubao-say/releases/latest"diff --git a/tests/contracts/test_release.py b/tests/contracts/test_release.pyindex 357bf8d..d6b9768 100644--- a/tests/contracts/test_release.py+++ b/tests/contracts/test_release.py@@ -44,6 +44,14 @@ class ReleaseTest(unittest.TestCase):self.assertEqual(manifest["name"], "Doubao Say")self.assertNotIn("voice-input", json.dumps(manifest))+ def test_release_workflow_publishes_curated_product_notes(self):+ workflow = (ROOT / ".github/workflows/release.yml").read_text()+ notes = (ROOT / "RELEASE_NOTES.md").read_text()+ self.assertIn("--notes-file RELEASE_NOTES.md", workflow)+ self.assertNotIn("--generate-notes", workflow)+ for expected in ("Doubao Say 1.2.0", "Volcengine Seed ASR 2.0", "Vibekey", "Midscene Test"):+ self.assertIn(expected, notes)+def test_both_archives_exclude_ignored_source_files(self):with tempfile.TemporaryDirectory() as folder:root = Path(folder)diff --git a/tests/contracts/test_version_check.py b/tests/contracts/test_version_check.pyindex 8c3c9e0..96ce4a3 100644--- a/tests/contracts/test_version_check.py+++ b/tests/contracts/test_version_check.py@@ -11,14 +11,14 @@ SPEC.loader.exec_module(VERSION_CHECK)class VersionCheckTests(unittest.TestCase):def test_sources_are_aligned_at_current_release(self):- self.assertEqual(VERSION_CHECK.validate(root=ROOT), "1.1.0")+ self.assertEqual(VERSION_CHECK.validate(root=ROOT), "1.2.0")def test_exact_release_tag_is_accepted(self):- self.assertEqual(VERSION_CHECK.validate("v1.1.0", ROOT), "1.1.0")+ self.assertEqual(VERSION_CHECK.validate("v1.2.0", ROOT), "1.2.0")def test_wrong_release_tag_is_rejected(self):- with self.assertRaisesRegex(ValueError, "must be 'v1.1.0'"):- VERSION_CHECK.validate("v1.0.0", ROOT)+ with self.assertRaisesRegex(ValueError, "must be 'v1.2.0'"):+ VERSION_CHECK.validate("v1.1.0", ROOT)if __name__ == "__main__":diff --git a/tests/unit/test_product.py b/tests/unit/test_product.pyindex 6dfa894..003d0d7 100644--- a/tests/unit/test_product.py+++ b/tests/unit/test_product.py@@ -51,7 +51,7 @@ class ProductTest(TestCase):self.assertNotIn("private-device-identifier", data)self.assertNotIn("cookies", data)self.assertNotIn("transcript", data)- self.assertEqual(json.loads(data)["product_version"], "1.1.0")+ self.assertEqual(json.loads(data)["product_version"], "1.2.0")self.assertEqual(json.loads(data)["recognition_provider"], "volcengine")self.assertEqual(json.loads(data)["recent_stages"], [{"stage": "first_result", "after_ms": 125}])diff --git a/tests/unit/test_updates.py b/tests/unit/test_updates.pyindex cbee5e8..2130e67 100644--- a/tests/unit/test_updates.py+++ b/tests/unit/test_updates.py@@ -45,7 +45,7 @@ class UpdateTest(TestCase):self.assertEqual(found[0].version, "1.3.0")cache = json.loads(checker.cache_path().read_text())self.assertEqual(cache["checked_at"], 1000)- self.assertEqual(cache["current_version"], "1.1.0")+ self.assertEqual(cache["current_version"], "1.2.0")self.assertEqual(checker.cache_path().stat().st_mode & 0o777, 0o600)def test_fresh_cache_avoids_network_and_repeats_notification(self):@@ -56,7 +56,7 @@ class UpdateTest(TestCase):checker.cache_path().parent.mkdir(parents=True)checker.cache_path().write_text(json.dumps({"checked_at": 999, "tag_name": "v1.3.0",- "current_version": "1.1.0",+ "current_version": "1.2.0","draft": False, "prerelease": False}))with patch.object(checker, "_fetch") as fetch:checker.check()@@ -81,7 +81,7 @@ class UpdateTest(TestCase):checker._fetch()cache = json.loads(checker.cache_path().read_text())self.assertEqual(cache["checked_at"], 1000)- self.assertEqual(cache["tag_name"], "1.1.0")+ self.assertEqual(cache["tag_name"], "1.2.0")def test_offline_check_preserves_previous_update(self):found = []@@ -101,8 +101,8 @@ class UpdateTest(TestCase):checker = UpdateChecker(callbacks.append, found.append, clock=lambda: 1000)checker.cache_path().parent.mkdir(parents=True)checker.cache_path().write_text(json.dumps({- "checked_at": 999, "current_version": "1.2.0",- "tag_name": "1.2.0", "draft": False, "prerelease": False}))+ "checked_at": 999, "current_version": "1.1.0",+ "tag_name": "1.1.0", "draft": False, "prerelease": False}))with patch.object(checker, "_fetch") as fetch:checker.check()fetch.assert_called_once()