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.

5.9 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            INSERT INTO agent_session (\n                id, owner_id, thread_id, originating_message_id, bot_id, model,\n                harness, repo_url, workspace, sandbox_size, instructions,\n                acp_session_id, status, status_event_name, egress_token_hash,\n                mcp_scope, mcp_servers, repo_branch, for_warming, source, visibility, source_id\n            )\n            VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22)\n            RETURNING\n                id, name, archived_by::TEXT AS \"archived_by?\", archived_at, owner_id, thread_id, originating_message_id, bot_id,\n                model, harness, repo_url, repo_branch, pull_request_url, task_id, source, visibility, workspace, sandbox_size, instructions,\n                mcp_scope, mcp_servers, acp_session_id, status,\n                status_event_name, created_at, modified_at,\n                (SELECT jsonb_build_object('type', parent_entity_type, 'id', parent_entity_id)\n                 FROM comms_messages WHERE id = agent_session.thread_id)\n                    AS \"thread_parent?: Json<MessageParent>\",\n                (SELECT to_jsonb(origin_row) FROM agent_session_source origin_row\n                 WHERE origin_row.id = agent_session.source_id)\n                    AS \"source_row?: Json<source::SourceRow>\",\n                -- A row being created cannot have an external identity yet.\n                NULL::TEXT AS \"external_provider?\", NULL::TEXT AS \"external_id?\",\n                NULL::TEXT AS \"external_name?\", NULL::TEXT AS \"external_url?\",\n                NULL::TEXT AS \"external_last_run_id?\"\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "name",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "archived_by?",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "archived_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 4,
        "name": "owner_id",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "thread_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 6,
        "name": "originating_message_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 7,
        "name": "bot_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 8,
        "name": "model",
        "type_info": "Text"
      },
      {
        "ordinal": 9,
        "name": "harness",
        "type_info": "Text"
      },
      {
        "ordinal": 10,
        "name": "repo_url",
        "type_info": "Text"
      },
      {
        "ordinal": 11,
        "name": "repo_branch",
        "type_info": "Text"
      },
      {
        "ordinal": 12,
        "name": "pull_request_url",
        "type_info": "Text"
      },
      {
        "ordinal": 13,
        "name": "task_id",
        "type_info": "Text"
      },
      {
        "ordinal": 14,
        "name": "source",
        "type_info": "Text"
      },
      {
        "ordinal": 15,
        "name": "visibility",
        "type_info": "Text"
      },
      {
        "ordinal": 16,
        "name": "workspace",
        "type_info": "Text"
      },
      {
        "ordinal": 17,
        "name": "sandbox_size",
        "type_info": "Text"
      },
      {
        "ordinal": 18,
        "name": "instructions",
        "type_info": "Text"
      },
      {
        "ordinal": 19,
        "name": "mcp_scope",
        "type_info": "Text"
      },
      {
        "ordinal": 20,
        "name": "mcp_servers",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 21,
        "name": "acp_session_id",
        "type_info": "Text"
      },
      {
        "ordinal": 22,
        "name": "status",
        "type_info": "Text"
      },
      {
        "ordinal": 23,
        "name": "status_event_name",
        "type_info": "Text"
      },
      {
        "ordinal": 24,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 25,
        "name": "modified_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 26,
        "name": "thread_parent?: Json<MessageParent>",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 27,
        "name": "source_row?: Json<source::SourceRow>",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 28,
        "name": "external_provider?",
        "type_info": "Text"
      },
      {
        "ordinal": 29,
        "name": "external_id?",
        "type_info": "Text"
      },
      {
        "ordinal": 30,
        "name": "external_name?",
        "type_info": "Text"
      },
      {
        "ordinal": 31,
        "name": "external_url?",
        "type_info": "Text"
      },
      {
        "ordinal": 32,
        "name": "external_last_run_id?",
        "type_info": "Text"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Text",
        "Uuid",
        "Uuid",
        "Uuid",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Text",
        "Jsonb",
        "Text",
        "Bool",
        "Text",
        "Text",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      null,
      true,
      false,
      true,
      true,
      false,
      false,
      false,
      true,
      true,
      true,
      true,
      false,
      false,
      false,
      false,
      true,
      false,
      false,
      true,
      false,
      true,
      false,
      false,
      null,
      null,
      null,
      null,
      null,
      null,
      null
    ]
  },
  "hash": "2d947f92d175d66f1d993961460700754cb7dd3a7f5fd63fcb31bf4661aedbb6"
}