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.8 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT\n                m.id,\n                CASE WHEN m.task_id = $1 THEN m.duplicate_task_id ELSE m.task_id END AS \"other_task_id!\",\n                d.name AS \"other_task_name!\",\n                m.vector_score AS \"vector_score!\",\n                m.judge_reason\n            FROM task_duplicate_match m\n            JOIN \"Document\" d\n              ON d.id = CASE WHEN m.task_id = $1 THEN m.duplicate_task_id ELSE m.task_id END\n            WHERE m.status = 'active'\n              AND (m.task_id = $1 OR m.duplicate_task_id = $1)\n              AND d.\"deletedAt\" IS NULL\n              AND NOT EXISTS (\n                SELECT 1\n                FROM entity_properties ep\n                WHERE ep.entity_id = d.id\n                  AND ep.entity_type = 'TASK'\n                  AND ep.property_definition_id = $2\n                  AND ep.values->'value' ?| $3::text[]\n              )\n            ORDER BY m.vector_score DESC, m.created_at DESC\n            LIMIT 10\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "other_task_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "other_task_name!",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "vector_score!",
        "type_info": "Float8"
      },
      {
        "ordinal": 4,
        "name": "judge_reason",
        "type_info": "Text"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Uuid",
        "TextArray"
      ]
    },
    "nullable": [
      false,
      null,
      false,
      false,
      true
    ]
  },
  "hash": "e02aed5de18227559d2e0281cd08eca41eb05aa92a250e63823e135bee988bd5"
}