修复快照完整性:raw/llm_wiki 由 gitlink 转为普通目录(.git 备份为 .git.bak),新增 .gitignore 排除 __pycache__/pyc 与子仓库元数据

This commit is contained in:
AAsige
2026-08-07 04:42:28 +08:00
parent ee302f615c
commit c6ec760e71
443 changed files with 147453 additions and 142 deletions
@@ -0,0 +1,17 @@
use std::path::{Path, PathBuf};
// Public, user-visible directory for files produced by the backend Agent,
// skills, shell commands, and future non-UI generation tools. Keep this name
// non-hidden so users can find generated HTML/images/scripts without digging
// through app metadata folders.
pub const AGENT_WORKSPACE_DIR: &str = "agent-workspace";
pub fn agent_workspace_path(project_path: impl AsRef<Path>) -> PathBuf {
project_path.as_ref().join(AGENT_WORKSPACE_DIR)
}
pub fn agent_workspace_display(project_path: impl AsRef<Path>) -> String {
agent_workspace_path(project_path)
.to_string_lossy()
.replace('\\', "/")
}