{
  "schema": "chat-unify-integrations-v1",
  "version": "1.0.0",
  "saved_at": "2026-06-23T23:55:00Z",
  "product": "Chat Unify Connect",
  "tagline": "Agent control bridge — Cursor · cloud · automation · proof",
  "base_url": "http://127.0.0.1:13023",
  "api": {
    "integrations": "/api/integrations/v1",
    "hook": "/api/integrations/v1/hook",
    "manifest": "/api/integrations/v1/manifest",
    "chat_unify": "/api/chat-unify",
    "health": "/health"
  },
  "lanes": [
    {
      "id": "cursor_local",
      "label": "Cursor IDE (local)",
      "category": "ide",
      "description": "Send forged missions and close orders into your local Cursor Worker chat — inbox-first, receipt on disk.",
      "actions": ["send_mission", "send_close_order", "copy_hook"],
      "docs": "Paste from Prompt Forge → Connect → Send to Cursor"
    },
    {
      "id": "cursor_cloud",
      "label": "Cursor Cloud / API",
      "category": "ide",
      "description": "Cloud agents and API pool — dispatch through governed gates, not raw bypass.",
      "actions": ["status", "dispatch_via_hub"],
      "env": ["CURSOR_API_KEY", "OPENROUTER_API_KEY"]
    },
    {
      "id": "n8n",
      "label": "n8n Automation",
      "category": "automation",
      "description": "Webhook triggers · transcript ingest · scheduled proof exports.",
      "port": 13026,
      "url": "http://127.0.0.1:13026/",
      "actions": ["wire", "trigger_webhook"]
    },
    {
      "id": "cloud_workers",
      "label": "Cloud Workers",
      "category": "cloud",
      "description": "Railway factory body — drain, proceed, loop specialist. Mac observes; cloud executes.",
      "port": 13027,
      "url": "http://127.0.0.1:13027/",
      "dispatch": "POST /api/cloud-worker/dispatch/v1"
    },
    {
      "id": "webhook_inbound",
      "label": "Inbound webhooks",
      "category": "automation",
      "description": "Any client (Zapier · Make · custom CI) POSTs events — Chat Unify routes to the right machine.",
      "hook_url": "http://127.0.0.1:13023/api/integrations/v1/hook",
      "actions": ["forge_and_queue", "verify_paste", "proof_pack"]
    },
    {
      "id": "mcp_ready",
      "label": "MCP / plugin manifest",
      "category": "extensibility",
      "description": "Machine-readable manifest for Cursor MCP servers and partner integrations.",
      "manifest": "/api/integrations/v1/manifest",
      "file": "data/chat-unify-cursor-plugin-v1.json"
    }
  ],
  "machines": [
    {"id": "prompt_forge", "tab": "forge", "pipeline": 3},
    {"id": "founder_loop", "tab": "founder", "pipeline": "verify"},
    {"id": "ord_loop", "tab": "ord", "pipeline": "audit"},
    {"id": "proof_pack", "tab": "proofpack", "pipeline": "seal"},
    {"id": "official_form", "tab": "form", "pipeline": "decide"},
    {"id": "api_station", "tab": "api", "pipeline": "dispatch"},
    {"id": "hub_pro", "tab": "hubpro", "pipeline": "ops"}
  ]
}
