Skip to content

Add ${plugin:root} dynamic interpolation for plugin config, hooks, commands, and rules#435

Merged
ericdallo merged 1 commit intomasterfrom
replace-dynamic-strings-in-data
Apr 28, 2026
Merged

Add ${plugin:root} dynamic interpolation for plugin config, hooks, commands, and rules#435
ericdallo merged 1 commit intomasterfrom
replace-dynamic-strings-in-data

Conversation

@zikajk
Copy link
Copy Markdown
Member

@zikajk zikajk commented Apr 28, 2026

Add ${plugin:root} dynamic interpolation for plugin config, hooks, commands, and rules

For commands/rules: their content never enters the config, so config-side can't see it.
For plugin hooks.json / .mcp.json / eca.json: they need to be interpolated while we still know which plugin they came from, so ${plugin:root} and relative ${file:...} resolve against the correct directory. By the time they're merged into the unified config, that context is gone.[6:11 PM]It might be a little bit redundant for eca.json, not sure how realistic that scenario is, but it doesn't hurt.

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

@zikajk zikajk changed the title Add ${plugin:root} dynamic interpolation for plugin config, hooks, co… Add ${plugin:root} dynamic interpolation for plugin config, hooks, commands, and rules Apr 28, 2026
@zikajk zikajk force-pushed the replace-dynamic-strings-in-data branch from 0ff6453 to 888d2ac Compare April 28, 2026 16:04
@ericdallo ericdallo merged commit dd2a37e into master Apr 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants