{
  "version": "1.0.0",
  "kind": "olonjs-page-contract",
  "slug": "platform/integrations",
  "title": "Integrations — Olon Platform",
  "description": "Deep dive into Vercel, Supabase, GitHub, and Resend — the four sovereign pillars of the Olon stack.",
  "manifestHref": "/mcp-manifests/platform/integrations.json",
  "systemPrompt": "You are operating the \"Integrations — Olon Platform\" page in OlonJS Studio. Use only the declared tools and keep mutations valid against the section schema.",
  "sectionTypes": [
    "header",
    "footer",
    "editorial-split",
    "cli-spotlight",
    "cta-banner"
  ],
  "sectionInstances": [
    {
      "id": "global-header",
      "type": "header",
      "scope": "global",
      "label": "header"
    },
    {
      "id": "global-footer",
      "type": "footer",
      "scope": "global",
      "label": "footer"
    },
    {
      "id": "in-vercel",
      "type": "editorial-split",
      "scope": "local",
      "label": "Deploy to the edge."
    },
    {
      "id": "in-supabase",
      "type": "editorial-split",
      "scope": "local",
      "label": "Content hot save."
    },
    {
      "id": "in-github",
      "type": "editorial-split",
      "scope": "local",
      "label": "Your repo."
    },
    {
      "id": "in-resend",
      "type": "editorial-split",
      "scope": "local",
      "label": "Email that just works."
    },
    {
      "id": "in-cli",
      "type": "cli-spotlight",
      "scope": "local",
      "label": "Wire all four"
    },
    {
      "id": "in-cta",
      "type": "cta-banner",
      "scope": "local",
      "label": "Four integrations. One command."
    }
  ],
  "sectionSchemas": {
    "header": {
      "type": "object",
      "properties": {
        "logoText": {
          "type": "string",
          "description": "ui:text"
        },
        "badge": {
          "type": "string",
          "description": "ui:text"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "variant": {
                "type": "string",
                "description": "ui:text"
              },
              "children": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "href": {
                      "type": "string",
                      "description": "ui:text"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "href"
                  ]
                },
                "description": "ui:list"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        },
        "ctaLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "ctaHref": {
          "type": "string",
          "description": "ui:text"
        },
        "signinHref": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "logoText",
        "links"
      ]
    },
    "footer": {
      "type": "object",
      "properties": {
        "brandText": {
          "type": "string",
          "description": "ui:text"
        },
        "copyright": {
          "type": "string",
          "description": "ui:text"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        },
        "designSystemHref": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "brandText",
        "copyright"
      ]
    },
    "editorial-split": {
      "type": "object",
      "properties": {
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "label": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "titleItalic": {
          "type": "string",
          "description": "ui:text"
        },
        "body": {
          "type": "string",
          "description": "ui:textarea"
        },
        "bullets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "text": {
                "type": "string",
                "description": "ui:text"
              },
              "detail": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "text"
            ]
          },
          "description": "ui:list"
        },
        "cta": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string",
              "description": "ui:text"
            },
            "href": {
              "type": "string",
              "description": "ui:text"
            },
            "variant": {
              "type": "string",
              "enum": [
                "primary",
                "secondary",
                "accent"
              ],
              "description": "ui:select",
              "default": "primary"
            }
          },
          "additionalProperties": false,
          "required": [
            "label",
            "href"
          ]
        },
        "reverse": {
          "type": "boolean",
          "description": "ui:checkbox",
          "default": false
        },
        "visualType": {
          "type": "string",
          "enum": [
            "terminal",
            "stats",
            "checklist",
            "badge-list",
            "none"
          ],
          "description": "ui:select",
          "default": "none"
        },
        "visualLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "terminalLines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "prefix": {
                "type": "string",
                "description": "ui:text"
              },
              "content": {
                "type": "string",
                "description": "ui:text"
              },
              "dim": {
                "type": "boolean",
                "description": "ui:checkbox",
                "default": false
              },
              "accent": {
                "type": "boolean",
                "description": "ui:checkbox",
                "default": false
              }
            },
            "additionalProperties": false,
            "required": [
              "content"
            ]
          },
          "description": "ui:list"
        },
        "statItems": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "value": {
                "type": "string",
                "description": "ui:text"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "value",
              "label"
            ]
          },
          "description": "ui:list"
        },
        "checkItems": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "text": {
                "type": "string",
                "description": "ui:text"
              },
              "detail": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "text"
            ]
          },
          "description": "ui:list"
        },
        "badgeItems": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "text": {
                "type": "string",
                "description": "ui:text"
              },
              "detail": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "text"
            ]
          },
          "description": "ui:list"
        }
      },
      "additionalProperties": false,
      "required": [
        "title"
      ]
    },
    "cli-spotlight": {
      "type": "object",
      "properties": {
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "label": {
          "type": "string",
          "description": "ui:text"
        },
        "command": {
          "type": "string",
          "description": "ui:text"
        },
        "description": {
          "type": "string",
          "description": "ui:textarea"
        },
        "note": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "command"
      ]
    },
    "cta-banner": {
      "type": "object",
      "properties": {
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "label": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "description": {
          "type": "string",
          "description": "ui:textarea"
        },
        "cliCommand": {
          "type": "string",
          "description": "ui:text"
        },
        "ctas": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "variant": {
                "type": "string",
                "enum": [
                  "primary",
                  "secondary",
                  "accent"
                ],
                "description": "ui:select",
                "default": "primary"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        }
      },
      "additionalProperties": false,
      "required": [
        "title"
      ]
    }
  },
  "tools": [
    {
      "name": "update-section",
      "description": "Update any section in OlonJS Studio and persist immediately to file. Use sectionType to select the matching schema from sectionSchemas.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "slug": {
            "type": "string",
            "description": "Canonical page slug currently open in Studio."
          },
          "sectionId": {
            "type": "string",
            "description": "Concrete section instance id inside the current draft."
          },
          "sectionType": {
            "type": "string",
            "description": "Section type being updated (for example \"hero\" or \"header\"). Used to select the correct validation schema."
          },
          "scope": {
            "type": "string",
            "enum": [
              "local",
              "global"
            ],
            "default": "local"
          },
          "data": {
            "type": "object",
            "description": "Full replacement payload validated against the schema declared for sectionType."
          },
          "itemPath": {
            "type": "array",
            "description": "Optional root-to-leaf selection path for targeted field mutation.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "fieldKey": {
                  "type": "string"
                },
                "itemId": {
                  "type": "string"
                }
              },
              "required": [
                "fieldKey"
              ]
            }
          },
          "value": {
            "description": "Value written to the final field targeted by itemPath."
          },
          "fieldKey": {
            "type": "string",
            "description": "Shorthand for a top-level scalar field update when itemPath is omitted."
          }
        },
        "required": [
          "sectionId"
        ],
        "oneOf": [
          {
            "required": [
              "data"
            ]
          },
          {
            "required": [
              "itemPath",
              "value"
            ]
          },
          {
            "required": [
              "fieldKey",
              "value"
            ]
          }
        ]
      }
    }
  ]
}
