v4.3.1
Fixes
- Windows:
ERR_UNSUPPORTED_ESM_URL_SCHEMEcrash —toon-memory(CLI and MCP mode) crashed on Windows because dynamic imports passed rawC:\...paths toimport(). Entry points now convert paths viapathToFileURL(new shared helpersrc/cli/entry.ts), so it works again on Windows. install.ps1pinned an ancient release — the Windows installer hard-codedtoon-memory@1.0.9with a placeholder checksum, so it installed a version whoseinitwrote the legacy OpenCode MCP format ({"command","args"}withouttype/enabled). OpenCode 1.17+ rejects that entry and blocks the wholeopencode.jsonfrom loading. The installer now resolves the latest version +dist.integrityfrom the npm registry at runtime and verifies the tarball with SHA-512.- No silent config wipe — config writers now skip (with a warning) instead of overwriting an existing agent config that isn't valid JSON, so other MCP servers and user settings are never destroyed.
If your opencode.json shows Expected { type: local } | { type: remote } or Missing key mcp.toon-memory.enabled
Install 4.3.1 and re-run toon-memory init --agent opencode --scope global — it repairs the entry in place while keeping every other MCP server. Or edit ~/.config/opencode/opencode.json (C:\Users\<you>\.opencode\opencode.json) and set:
"mcp": { "toon-memory": { "type": "local", "command": ["npx", "-y", "toon-memory", "mcp"], "enabled": true } }Full changelog: see CHANGELOG.md.