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.

695 B
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "UPDATE agent_conversation_turns AS candidate SET state = 'running', in_flight = $2, updated_at = now() WHERE action_id = $1 AND state = 'queued' AND NOT EXISTS (SELECT 1 FROM agent_conversation_turns other WHERE other.session_id = candidate.session_id AND (other.state IN ('running', 'interrupted') OR (other.state = 'queued' AND (other.created_at, other.source_message_id) < (candidate.created_at, candidate.source_message_id))))",
  "describe": {
    "columns": [],
    "parameters": {
      "Left": [
        "Uuid",
        "Jsonb"
      ]
    },
    "nullable": []
  },
  "hash": "14b42cdfddd60b765545005bd4fd575be48cf67d31e71e76dabb3b9c64325fe6"
}