MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / compose

Function compose

src/agents/plugin_bundle.rs:238–248  ·  view source on GitHub ↗

Compose a host's deploy set as deterministic `(relative, contents)` tuples.

(
    sections: &[&'static [PluginFile]],
    skills: impl Iterator<Item = &'static PluginFile>,
)

Source from the content-addressed store, hash-verified

236
237/// Compose a host's deploy set as deterministic `(relative, contents)` tuples.
238fn compose(
239 sections: &[&'static [PluginFile]],
240 skills: impl Iterator<Item = &'static PluginFile>,
241) -> Vec<(&'static str, &'static str)> {
242 sections
243 .iter()
244 .flat_map(|section| section.iter())
245 .chain(skills)
246 .map(|file| (file.relative, file.contents))
247 .collect()
248}
249
250/// Files Claude deploys: manifest + Claude agents + Claude commands + every
251/// skill file (all 30 skills incl. dispatchers, plus any support files).

Callers 3

claude_filesFunction · 0.85
cursor_filesFunction · 0.85
codex_filesFunction · 0.85

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected