docs(turn-loop): split into index + claude-invocation/config/mcp sub-pages, condense the loop

This commit is contained in:
müde 2026-07-05 23:04:48 +02:00
commit 216eb8ae9b
7 changed files with 693 additions and 673 deletions

View file

@ -2,7 +2,7 @@
//! HTML-comment markers gating role-specific blocks; this module
//! assembles the final prompt (always "agent" role — there is only one
//! role). Marker grammar + placeholder substitution rules in
//! `docs/turn-loop.md::On-boot files` (`claude-system-prompt.md`).
//! `docs/turn-loop/claude-invocation.md::On-boot files` (`claude-system-prompt.md`).
use std::path::{Path, PathBuf};
@ -16,7 +16,7 @@ use anyhow::{Context, Result};
/// [`hive_sh4re::assets::prompt_template`]
/// (`$HIVE_ASSETS_DIR/prompts/system.md`). Substitution placeholders +
/// marker grammar documented in
/// `docs/turn-loop.md::On-boot files` (`claude-system-prompt.md`).
/// `docs/turn-loop/claude-invocation.md::On-boot files` (`claude-system-prompt.md`).
#[must_use]
pub fn render(
template: &str,