Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.2 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT EXISTS (\n                SELECT 1\n                FROM comms_channel_participants bot_p\n                INNER JOIN comms_channel_participants user_p\n                  ON user_p.channel_id = bot_p.channel_id\n                 AND user_p.user_id = $2\n                 AND user_p.left_at IS NULL\n                WHERE bot_p.user_id = $1\n                  AND bot_p.left_at IS NULL\n                  -- Only the persona's owner or team has a conversation with\n                  -- it, so one never makes it available to anyone.\n                  AND NOT EXISTS (\n                      SELECT 1\n                      FROM comms_channel_agents ca\n                      WHERE ca.channel_id = bot_p.channel_id\n                        AND ca.kind = 'direct'\n                  )\n            ) AS \"shares!\"\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "shares!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Text"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "a815ac8c3cf3171722274a5df090315552e5017c8798813a7f3a504372bffc72"
}