Skip to main content

mur_common/
removable_volume.rs

1//! Shared, logic-free constants for the macOS removable-volume (external
2//! disk) Full-Disk-Access failure mode (issue #1).
3//!
4//! This module deliberately holds **only** the canonical guidance string —
5//! no logic — so it can live in `mur-common` and be shared verbatim by both
6//! the agent runtime's file/bash tools and `mur agent doctor`. The judgement
7//! helpers (e.g. `is_removable_volume_eperm`) stay in the runtime's
8//! `fs_policy`; only the wording is centralized here so it never drifts.
9
10/// The one canonical, structured guidance shown whenever a `/Volumes/*`
11/// (removable / external volume) path is blocked by macOS with EPERM
12/// (`os error 1`, "Operation not permitted"). Shared by the file/bash tools
13/// and `mur agent doctor` so the wording never drifts (issue #1). Kept as a
14/// single `const` — do NOT duplicate this string anywhere.
15pub const REMOVABLE_VOLUME_EPERM_HINT: &str = "macOS 檔案權限擋住了外接磁碟。請到 系統設定→隱私權與安全性→完全取用磁碟 開啟 MUR Hub(或啟動此 agent 的 app),然後重啟 agent";