Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
use super::*;
#[test]
fn a_code_mode_program_or_an_agent_token_counts_as_an_agent_run() {
let mut program = HeaderMap::new();
program.insert(CODE_EXECUTION_HEADER, "1".parse().unwrap());
let browser = HeaderMap::new();
assert!(is_agent_run(false, &program), "a public MCP code-mode run");
assert!(is_agent_run(true, &browser), "an agent-attributed token");
assert!(!is_agent_run(false, &browser), "a person in the app");
}