Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

Merge remote-tracking branch 'origin/omx-issue-9203-release-binary'

Yeachan-Heo9fb79d07ee39
diff --cc rust/crates/rusty-claude-cli/src/main.rs
index b498176d,c6a4e882..62e9dfb0
--- a/rust/crates/rusty-claude-cli/src/main.rs
+++ b/rust/crates/rusty-claude-cli/src/main.rs
@@@ -2687,70 -2364,19 +2773,83 @@@ fn format_sandbox_report(status: &runti
)
}
+fn format_commit_preflight_report(branch: Option<&str>, summary: GitWorkspaceSummary) -> String {
+ format!(
+ "Commit
+ Result preparing
+ Branch {}
+ Workspace {}
+ Changed files {}
+ Action auto-stage workspace changes and draft Lore commit message",
+ branch.unwrap_or("unknown"),
+ summary.headline(),
+ summary.changed_files,
+ )
+}
+
+fn format_commit_skipped_report() -> String {
+ "Commit
+ Result skipped
+ Reason no workspace changes
+ Next /status to inspect context · /diff to inspect repo changes"
+ .to_string()
+}
+
+fn format_commit_success_report(
+ branch: Option<&str>,
+ summary: GitWorkspaceSummary,
+ message_path: &Path,
+ staged_stat: &str,
+ message: &str,
+) -> String {
+ let staged_summary = staged_stat.trim();
+ format!(
+ "Commit
+ Result created
+ Branch {}
+ Workspace {}
+ Changed files {}
+ Message file {}
+
+Staged diff
+{}
+
+Lore message
+{}",
+ branch.unwrap_or("unknown"),
+ summary.headline(),
+ summary.changed_files,
+ message_path.display(),
+ if staged_summary.is_empty() {
+ " <summary unavailable>".to_string()
+ } else {
+ indent_block(staged_summary, 2)
+ },
+ message.trim()
+ )
+}
+
+fn format_git_commit_failure(stderr: &str) -> String {
+ if stderr.contains("Author identity unknown") || stderr.contains("Please tell me who you are") {
+ "git commit failed: author identity is not configured. Run `git config user.name \"Your Name\"` and `git config user.email \"[email protected]\"`, then retry /commit.".to_string()
+ } else {
+ format!("git commit failed: {stderr}")
+ }
+}
+
+ fn print_sandbox_status_snapshot() -> Result<(), Box<dyn std::error::Error>> {
+ let cwd = env::current_dir()?;
+ let loader = ConfigLoader::default_for(&cwd);
+ let runtime_config = loader
+ .load()
+ .unwrap_or_else(|_| runtime::RuntimeConfig::empty());
+ println!(
+ "{}",
+ format_sandbox_report(&resolve_sandbox_status(runtime_config.sandbox(), &cwd))
+ );
+ Ok(())
+ }
+
fn render_config_report(section: Option<&str>) -> Result<String, Box<dyn std::error::Error>> {
let cwd = env::current_dir()?;
let loader = ConfigLoader::default_for(&cwd);