config: add repeatable UserInstructions declarations

This commit is contained in:
Adam Perry
2026-07-07 00:56:13 +00:00
parent 935c40c5be
commit e9e1a2922c
13 changed files with 248 additions and 16 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ enum RawPluginManifestMcpServers {
enum RawPluginManifestHooks {
Path(String),
Paths(Vec<String>),
Inline(HooksFile),
Inline(Box<HooksFile>),
InlineList(Vec<HooksFile>),
Invalid(JsonValue),
}
@@ -285,7 +285,7 @@ fn resolve_manifest_hooks(
}
RawPluginManifestHooks::Inline(hooks) => {
Some(codex_plugin::manifest::PluginManifestHooks::Inline(vec![
hooks,
*hooks,
]))
}
RawPluginManifestHooks::InlineList(hooks) => (!hooks.is_empty())