From 962292dd2725a06dc943348f69320860442f52f9 Mon Sep 17 00:00:00 2001 From: Yeachan-Heo Date: Wed, 1 Apr 2026 04:01:37 +0000 Subject: [PATCH] auto: save WIP progress from rcc session --- rust/.omc/project-memory.json | 127 +++++++++++++++++++++++ rust/.omc/state/idle-notif-cooldown.json | 3 + rust/crates/runtime/src/conversation.rs | 8 +- 3 files changed, 134 insertions(+), 4 deletions(-) create mode 100644 rust/.omc/project-memory.json create mode 100644 rust/.omc/state/idle-notif-cooldown.json diff --git a/rust/.omc/project-memory.json b/rust/.omc/project-memory.json new file mode 100644 index 0000000..4753ef3 --- /dev/null +++ b/rust/.omc/project-memory.json @@ -0,0 +1,127 @@ +{ + "version": "1.0.0", + "lastScanned": 1774971516826, + "projectRoot": "/home/bellman/Workspace/clawd-code-worktrees/api/rust", + "techStack": { + "languages": [ + { + "name": "Rust", + "version": null, + "confidence": "high", + "markers": [ + "Cargo.toml" + ] + } + ], + "frameworks": [], + "packageManager": "cargo", + "runtime": null + }, + "build": { + "buildCommand": "cargo build", + "testCommand": "cargo test", + "lintCommand": "cargo clippy", + "devCommand": "cargo run", + "scripts": {} + }, + "conventions": { + "namingStyle": null, + "importStyle": null, + "testPattern": null, + "fileOrganization": null + }, + "structure": { + "isMonorepo": false, + "workspaces": [], + "mainDirectories": [], + "gitBranches": { + "defaultBranch": "main", + "branchingStrategy": null + } + }, + "customNotes": [], + "directoryMap": { + "crates": { + "path": "crates", + "purpose": null, + "fileCount": 0, + "lastAccessed": 1774971516823, + "keyFiles": [] + }, + "target": { + "path": "target", + "purpose": null, + "fileCount": 2, + "lastAccessed": 1774971516823, + "keyFiles": [ + "CACHEDIR.TAG" + ] + }, + "crates/api": { + "path": "crates/api", + "purpose": "API routes", + "fileCount": 1, + "lastAccessed": 1774971516824, + "keyFiles": [ + "Cargo.toml" + ] + } + }, + "hotPaths": [ + { + "path": "crates/api/Cargo.toml", + "accessCount": 1, + "lastAccessed": 1774971547109, + "type": "file" + }, + { + "path": "crates/api/src/lib.rs", + "accessCount": 1, + "lastAccessed": 1774971547624, + "type": "file" + }, + { + "path": "crates/api/src/client.rs", + "accessCount": 1, + "lastAccessed": 1774971548001, + "type": "file" + }, + { + "path": "crates/api/src/error.rs", + "accessCount": 1, + "lastAccessed": 1774971548503, + "type": "file" + }, + { + "path": "crates/api/src/sse.rs", + "accessCount": 1, + "lastAccessed": 1774971549311, + "type": "file" + }, + { + "path": "crates/api/src/types.rs", + "accessCount": 1, + "lastAccessed": 1774971549472, + "type": "file" + }, + { + "path": "crates/api/tests/client_integration.rs", + "accessCount": 1, + "lastAccessed": 1774971550143, + "type": "file" + }, + { + "path": "Cargo.toml", + "accessCount": 1, + "lastAccessed": 1774971550539, + "type": "file" + }, + { + "path": "crates/rusty-claude-cli/src/main.rs", + "accessCount": 1, + "lastAccessed": 1774971551474, + "type": "file" + } + ], + "userDirectives": [] +} \ No newline at end of file diff --git a/rust/.omc/state/idle-notif-cooldown.json b/rust/.omc/state/idle-notif-cooldown.json new file mode 100644 index 0000000..495b087 --- /dev/null +++ b/rust/.omc/state/idle-notif-cooldown.json @@ -0,0 +1,3 @@ +{ + "lastSentAt": "2026-03-31T15:39:44.771Z" +} \ No newline at end of file diff --git a/rust/crates/runtime/src/conversation.rs b/rust/crates/runtime/src/conversation.rs index 5c9ccfe..136aaa2 100644 --- a/rust/crates/runtime/src/conversation.rs +++ b/rust/crates/runtime/src/conversation.rs @@ -408,7 +408,7 @@ mod tests { .sum::(); Ok(total.to_string()) }); - let permission_policy = PermissionPolicy::new(PermissionMode::Prompt); + let permission_policy = PermissionPolicy::new(PermissionMode::WorkspaceWrite); let system_prompt = SystemPromptBuilder::new() .with_project_context(ProjectContext { cwd: PathBuf::from("/tmp/project"), @@ -487,7 +487,7 @@ mod tests { Session::new(), SingleCallApiClient, StaticToolExecutor::new(), - PermissionPolicy::new(PermissionMode::Prompt), + PermissionPolicy::new(PermissionMode::WorkspaceWrite), vec!["system".to_string()], ); @@ -536,7 +536,7 @@ mod tests { session, SimpleApi, StaticToolExecutor::new(), - PermissionPolicy::new(PermissionMode::Allow), + PermissionPolicy::new(PermissionMode::DangerFullAccess), vec!["system".to_string()], ); @@ -563,7 +563,7 @@ mod tests { Session::new(), SimpleApi, StaticToolExecutor::new(), - PermissionPolicy::new(PermissionMode::Allow), + PermissionPolicy::new(PermissionMode::DangerFullAccess), vec!["system".to_string()], ); runtime.run_turn("a", None).expect("turn a");