Adds @magpie-community/agent-deepzora: Deepzora on magpie's Agents page, through a reversible bridge that adds a magpie-agent provider to ~/.deepzora/config.toml and the key to ~/.deepzora/.env, and puts both back on disconnect. The package is reasonix-desktop's bridge with Deepzora's names; vendor.mjs is byte for byte the merged reasonix-desktop copy (sha256 46e08060…). Run at the reviewed head 858f09aa, on a separate test Mac, Bun 1.4.2 and Node 22.22.0, temp HOME: - bun test packages/deepzora: 12 pass; node --test: 12 pass - bun scripts/check.mjs: ok; npm pack --dry-run: 13 files, 57.0 kB - a probe over the bridge in temp dirs (corrupt and half-written TOML, user edits across a switch and a disconnect, pre-existing keys in four forms, CRLF, read-only dir, 0-byte config): each as expected - full root bun test at 858f09aa: 8482 pass, 20 skip, 0 fail Broken by hand: 17 breaks, 13 red. Four stay green (an edited credential on switch, a half-written control file read as disconnect, no provider_access cleanup, no lock), the same gaps reasonix-desktop's tests have; listed in the review. Not tried: a real Deepzora binary or session, acceptance.mjs and resident-acceptance.mjs, Windows (Deepzora uses %APPDATA%\deepzora there; the descriptor has no per-OS paths), a Deepzora Desktop settings save while connected. The first npm publish of @magpie-community/agent-deepzora is the maintainer's. Co-authored-by: SivanCola <SivanCola@users.noreply.github.com>
13 lines
507 B
JavaScript
13 lines
507 B
JavaScript
#!/usr/bin/env node
|
|
import { syncBridge } from "./bridge.mjs"
|
|
|
|
if (!process.argv[2] || process.argv[2] === "sync") {
|
|
try { console.log(`Deepzora bridge: ${syncBridge()}`) } catch {
|
|
console.error("Deepzora bridge could not synchronize. Check JSON/TOML syntax, reserved provider/credential conflicts, file permissions and .magpie-bridge recovery files. Source contents and keys are omitted.")
|
|
process.exitCode = 1
|
|
}
|
|
} else {
|
|
console.error("Usage: magpie-deepzora sync")
|
|
process.exitCode = 2
|
|
}
|