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

Function install_prompt_rules

src/agents/opencode.rs:231–239  ·  view source on GitHub ↗

Install-or-refresh prompt rules in AGENTS.md.

(prompt_path: &Path)

Source from the content-addressed store, hash-verified

229
230/// Install-or-refresh prompt rules in AGENTS.md.
231fn install_prompt_rules(prompt_path: &Path) -> Result<()> {
232 let block = super::prompt_rules::standard_prompt_rules(
233 PROMPT_RULE_MARKER,
234 &PromptRulesOptions {
235 extra_paragraphs: &[],
236 },
237 );
238 super::prompt_rules::reconcile_prompt_rules(prompt_path, PROMPT_RULE_MARKER, &block)
239}
240
241// ---------------------------------------------------------------------------
242// Uninstall helpers

Callers 2

installMethod · 0.70
install_localMethod · 0.70

Calls 2

standard_prompt_rulesFunction · 0.85
reconcile_prompt_rulesFunction · 0.85

Tested by

no test coverage detected