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
{
"db_name": "PostgreSQL",
"query": "\n SELECT DISTINCT entity_id\n FROM entity_access\n WHERE entity_type = 'agent_session'\n AND source_id = ANY($1)\n AND (cardinality($2::uuid[]) = 0 OR entity_id = ANY($2))\n -- Hidden sessions (thread-started, DM contexts) stay out of search\n -- unless asked for by id. A grant with no session row (tests, a deleted session) is\n -- not hidden: the predicate only matches a hidden row.\n AND (\n entity_id = ANY($2)\n OR NOT EXISTS (\n SELECT 1 FROM agent_session s\n WHERE s.id = entity_access.entity_id\n AND s.visibility = 'hidden'\n )\n )\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "entity_id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"TextArray",
"UuidArray"
]
},
"nullable": [
false
]
},
"hash": "40aa2870ced2b5ddb9a4213d20db77c27e47ef6735b9a592621e4839efe176ce"
}