pub struct Config {
pub db_path: PathBuf,
pub agent_id: String,
pub policy_path: Option<PathBuf>,
pub audit_log_path: Option<PathBuf>,
pub brief: bool,
}Fields§
§db_path: PathBuf§agent_id: String§policy_path: Option<PathBuf>§audit_log_path: Option<PathBuf>§brief: boolPlan D t-001: brief output mode. Set via --brief flag or
ASD_FORMAT=brief env var. When true, commands project their
JSON output down to load-bearing fields for ~60-80% token cut.
Implementations§
Source§impl Config
impl Config
Sourcepub fn resolve(
explicit_db: Option<PathBuf>,
explicit_policy: Option<PathBuf>,
explicit_audit_log: Option<PathBuf>,
) -> Self
pub fn resolve( explicit_db: Option<PathBuf>, explicit_policy: Option<PathBuf>, explicit_audit_log: Option<PathBuf>, ) -> Self
Resolve config from optional explicit paths.
Sourcepub fn resolve_with_brief(
explicit_db: Option<PathBuf>,
explicit_policy: Option<PathBuf>,
explicit_audit_log: Option<PathBuf>,
brief_flag: bool,
local_only: bool,
) -> Self
pub fn resolve_with_brief( explicit_db: Option<PathBuf>, explicit_policy: Option<PathBuf>, explicit_audit_log: Option<PathBuf>, brief_flag: bool, local_only: bool, ) -> Self
local_only = true restricts the default to ./.asd-state.db (for
commands that CREATE or populate a db in place — init/onboard/index
— which must never target a parent project or the registry’s active
repo). false enables the Plan Q t-002 walk-up + registry-active
fallback used by read/query commands.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more