Skip to content

Cadabra 1.4.0

Choose a tag to compare

@phg1024 phg1024 released this 19 Nov 08:54
· 2 commits to main since this release

English

  • New: the agent key. Hold it (Settings › Agent) and talk to an agent of your own: Cadabra recognizes the words on your Mac as usual and hands them to an agent plugin, which opens its window right next to the text and shows the words as you speak. What happens next is up to the plugin. The example asks you to confirm with Return, then sends the words to its agent, shows the answer and can read it aloud.
  • Agent plugins are a folder with a plugin.json and a web page, in ~/Library/Application Support/Cadabra/Plugins. The page owns everything: its look, confirming, calling its agent, the reply, speech, and its own settings such as a token. It can reach only the hosts its plugin.json declares; every other request is blocked. See docs/plugins.md.
  • A complete example to try or start from: examples/echo-agent, a tiny agent that says back what it heard, with its plugin.
  • Without a plugin, the agent key only reminds you to install one; Cadabra still opens no connections of its own.

Upgrading: replace the app, or brew upgrade --cask cadabra; permissions carry over. This build isn't notarized; if macOS blocks it, use System Settings › Privacy & Security › Open Anyway.

中文

  • 新功能:Agent 键。 在 设置 › Agent 里选一个键,按住它就能和你自己的 agent 说话:Cadabra 照常在 Mac 本地识别,再把文字交给 agent 插件。插件的窗口直接出现在输入框旁边,边说边显示文字。之后怎么做由插件决定:示例插件会等你按回车确认,再发给它的 agent,显示回复,也可以朗读出来。
  • Agent 插件就是 ~/Library/Application Support/Cadabra/Plugins 里的一个文件夹,里面有 plugin.json 和一个网页。界面、确认、请求 agent、显示回复、朗读,以及口令这类设置,都由网页自己负责。它只能访问 plugin.json 里声明的地址,其他请求一律拦掉。见 docs/plugins.md。
  • 一个完整的示例,可以直接试,也可以拿来改:examples/echo-agent,一个把你说的话复述回来的小 agent 和它的插件。
  • 不装插件的话,按 Agent 键只会提示你先装一个;Cadabra 自己仍然不建立任何网络连接。

升级:直接替换 App,或者 brew upgrade --cask cadabra,权限会保留。这个版本没有经过 Apple 公证,如果被拦,到 系统设置 › 隐私与安全性 › 仍要打开。

SHA-256: 213985134e804c275e0736df900f1cf4079d167052bd9b4616529f2c73c19ce6