fix(config): resolve CLI command aliases against parent plugin in plugins.allow (#64748) (#64779)

* fix(config): resolve CLI command aliases against parent plugin in plugins.allow (#64748)

The CLI allow guard checked command names (e.g. 'wiki') directly against
plugins.allow, missing the parent plugin ('memory-wiki'). Additionally,
memory-wiki did not declare 'wiki' as a commandAlias, so doctor --fix
would remove it as stale.

- Add commandAliases entry for 'wiki' in memory-wiki plugin manifest
- Check parent plugin ID in the CLI fallback allow guard
- Add tests for both allow and deny cases

* fix(cli): inject manifest registry for alias diagnostics

* Update CHANGELOG.md

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
Pengfei Ni
2026-04-13 00:32:11 +08:00
committed by GitHub
parent c545e4605e
commit aff8a0c0e7
4 changed files with 46 additions and 1 deletions

View File

@@ -173,5 +173,6 @@
},
"configContracts": {
"compatibilityMigrationPaths": ["plugins.entries.memory-wiki.config.bridge.readMemoryCore"]
}
},
"commandAliases": [{ "name": "wiki" }]
}