Files
SivanCola 075cd237e2 reasonix-desktop 0.1.0: Reasonix 1.x in Discover → Agents (#700)
Adds Reasonix 1.x (Desktop and CLI) to Plugins → Discover → Agents as
`@magpie-community/agent-reasonix-desktop`, agent id `reasonix-desktop`,
separate from magpie's built-in `reasonix` adapter (Studio 2.x and native
1.39). A JSON agent descriptor plus a Bun-host companion (the kimi-desktop
pattern) adds one `magpie-agent` provider to Reasonix's global config.toml
and keeps only the assigned gateway key in its .env, with a journal, a
lock and byte-exact restore on disconnect.

Review commit on the branch: the registry entry's icon was `reasonix`, a
mask name with no icons/reasonix.svg, so Discover would show the generic
mark; it is `reasonix-color` now.

Run at the reviewed head 6cb328f090d8b66e6cf590a69aa4e7b18144c684 (mote):
- packages/reasonix-desktop `bun test`: 12 pass, 0 fail.
- acceptance.mjs with a real Reasonix 1.38.10 (npm) and a magpie built
  from origin/main 4ca55c6b6, sandbox HOME: magpie installs and discovers
  the plugin and bridges the selected model; unchanged Reasonix sends its
  selected model and assigned key to the local API; disconnect restores
  the original selection and credentials.
- resident-acceptance.mjs (a running `magpie serve` follows the switch):
  passed.
- vendor.mjs rebuilt from its pinned sources: byte-identical.
- CI run 41773750085 on 6cb328f0: success.
Not tried: Reasonix Desktop's GUI app itself (the CLI reads the same
config files), Windows and Linux.
2026-11-04 12:38:13 +08:00

1.5 KiB
Raw Permalink Blame History

Source and licenses

The Agent descriptor and bridge are adapted from SivanCola/magpie-agent-reasonix at 7f190e8, MIT, copyright (c) 2026 SivanCola. See LICENSE.

The embedded PNG is Reasonix's unmodified 128 × 128 application icon from esengine/DeepSeek-Reasonix e81658d, MIT, copyright (c) 2026 Reasonix Contributors. See LICENSE-REASONIX.

vendor.mjs bundles these exact parsing libraries so this Agent needs no runtime dependency installation or build scripts:

  • smol-toml 1.9.1, BSD-3-Clause (LICENSE-SMOL-TOML).
  • dotenv 18.0.9, BSD-2-Clause (LICENSE-DOTENV). Only parse is exported; the bridge never calls dotenv's environment-loading functions.

To regenerate in this package folder with Bun 1.4.4:

npm install --no-save --ignore-scripts --package-lock=false smol-toml@1.9.1 dotenv@18.0.9
bun build vendor-entry.mjs --target=node --format=esm --minify --outfile=vendor.mjs

No original Reasonix or Magpie source changes are needed to use this package.

中文

桥接与 Agent 入口改编自上述独立插件,图标来自上述 Reasonix 原始提交, 均保留 MIT 许可。TOML 与 dotenv 解析器以固定版本打包,保留 BSD 许可; 无需安装运行时依赖或执行构建脚本。插件不改动 Reasonix 或 Magpie 程序。