feat: add --no-workspace-macros opt-out for workspace macro loading

Mirrors --no-workspace-mcp exactly: a CLI-only flag backed by an
AppConfig field (default false) that disables .coyote/macros in both
the resolved macro policy and Macro::load's workspace-then-global
preference, so the two always agree (custom-commands design §5).
This commit is contained in:
2026-08-21 11:55:13 -06:00
parent 5478c5a239
commit 4323d4823c
6 changed files with 111 additions and 4 deletions
+3
View File
@@ -222,6 +222,9 @@ async fn main() -> Result<()> {
if cli.no_workspace_mcp {
app_config.no_workspace_mcp = true;
}
if cli.no_workspace_macros {
app_config.no_workspace_macros = true;
}
let app_config: Arc<AppConfig> = Arc::new(app_config);
let app_state: Arc<AppState> = Arc::new(
AppState::init(