mirror of
https://github.com/thedotmack/claude-mem.git
synced 2026-09-20 04:23:02 +08:00
fix: stop sync-plugin-manifests clobbering Cursor/Grok plugin copy
syncCursorPlugin() copied `description` and `homepage` straight from the
root package.json into claude-mem-cursor/.cursor-plugin/plugin.json and
claude-mem-grok-bot/.cursor-plugin/plugin.json. Those are independent
marketplace plugins for products that are not Claude Code, and they carry
their own curated copy from 1c7aaff3 ("Persistent memory for Cursor…",
"Persistent memory for Grok Bot…"). Syncing overwrote both with the
generic "Memory compression system for Claude Code" boilerplate.
The bug stayed invisible through 13.24.0 because that bump was a hand edit
that never ran the build -- the same omission that produced the stale
bundles in #3857. Running `npm run build-and-sync` honestly is what fires
it, so the fix has to land before the next real build or every release
silently reverts the Cursor and Grok Bot listings.
Both fields now fall back to package.json only when the manifest does not
define its own. Version, repository, license and author.name still sync.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fu9bpdG4AWZNq3m8zkUkYg
This commit is contained in:
@@ -77,8 +77,8 @@ function syncCursorPlugin(plugin, pkg) {
|
||||
return {
|
||||
...plugin,
|
||||
version: pkg.version,
|
||||
description: pkg.description,
|
||||
homepage: pkg.homepage,
|
||||
description: plugin.description ?? pkg.description,
|
||||
homepage: plugin.homepage ?? pkg.homepage,
|
||||
repository: normalizeRepositoryUrl(pkg.repository),
|
||||
license: pkg.license,
|
||||
author: {
|
||||
|
||||
Reference in New Issue
Block a user