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

Function install_prompt_rules

src/agents/copilot.rs:453–461  ·  view source on GitHub ↗

Install-or-refresh prompt rules in a copilot-instructions.md file.

(instructions_path: &Path)

Source from the content-addressed store, hash-verified

451
452/// Install-or-refresh prompt rules in a copilot-instructions.md file.
453fn install_prompt_rules(instructions_path: &Path) -> Result<()> {
454 let block = super::prompt_rules::standard_prompt_rules(
455 PROMPT_RULE_MARKER,
456 &PromptRulesOptions {
457 extra_paragraphs: &[],
458 },
459 );
460 super::prompt_rules::reconcile_prompt_rules(instructions_path, PROMPT_RULE_MARKER, &block)
461}
462
463/// Remove tracedecay rules from a copilot-instructions.md file.
464fn uninstall_prompt_rules(instructions_path: &Path) {

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