{
  "schema": 1,
  "id": "ext.example",
  "name": "Example",
  "version": "1.0.2",
  "category": "tool",
  "description": "Shows what an extension can ship: a language, settings and pages.",
  "author": "Lumen",
  "icon": "Bs",
  "color": "#4f5bd5",
  "license": "MIT",
  "minAppVersion": "0.5.0",
  "keywords": [
    "example",
    "template",
    "documentation"
  ],
  "readme": "# Example\n\nA complete extension as a template. It ships everything the manifest knows and\nis deliberately small enough to read in one sitting.\n\n## What is inside\n\n- a **language** (`.lumenlog`) with keywords, strings and snippets\n- three **settings** (text, toggle and choice) that appear in Lumen under\n  *Settings → Extensions*\n- two **pages**: one for the sidebar, one for the editor area\n\n## Building it yourself\n\n```sh\nnpm run build:ext -- example\nnpm run publish:ext -- --server http://localhost:8730 --token \"$LUMEN_EXT_TOKEN\"\n```\n\n## Folder layout\n\n| File | Meaning |\n| --- | --- |\n| `extension.json` | Profile, settings |\n| `addon.json` | Languages, templates, project kinds, commands |\n| `README.md` | this page, on the server |\n| `pages/*.md` | pages that Lumen displays itself |\n\n> Extensions like this one ship no program code. Logic comes from node graphs,\n> which the same interpreter runs as for custom add-ons.\n",
  "settings": [
    {
      "key": "greeting",
      "label": "Greeting",
      "type": "text",
      "default": "Hello",
      "placeholder": "Hello",
      "hint": "Appears in the settings under “Extensions”."
    },
    {
      "key": "verbose",
      "label": "Verbose output",
      "type": "toggle",
      "default": "false"
    },
    {
      "key": "mode",
      "label": "Mode",
      "type": "select",
      "default": "balanced",
      "choices": [
        {
          "value": "fast",
          "label": "Fast"
        },
        {
          "value": "balanced",
          "label": "Balanced"
        },
        {
          "value": "thorough",
          "label": "Thorough"
        }
      ]
    }
  ],
  "pages": [
    {
      "id": "guide",
      "title": "Guide",
      "location": "editor",
      "format": "markdown",
      "content": "# Guide\n\nA second page, this time in the **editor area**.\n\n## Reading the settings\n\nThe settings of this extension are in Lumen under\n*Settings → Extensions*. Each one carries the extension's name in front of its\nlabel, so several extensions stay readable side by side.\n\n| Key | Type | Default |\n| --- | --- | --- |\n| `greeting` | Text | `Hello` |\n| `verbose` | Toggle | `false` |\n| `mode` | Choice | `balanced` |\n\n## Starting your own extension\n\nCopy this folder and change `id`, `name` and `version` in `extension.json`.\nThat is all. The id must start with `ext.`."
    },
    {
      "id": "welcome",
      "title": "Welcome",
      "location": "sidebar",
      "format": "markdown",
      "content": "# Welcome\n\nThis page lives in the **sidebar**, like the views of Copilot or Dev\nContainers in VS Code.\n\n## What it is built with\n\nMarkdown. The header lines at the top set the title and the location:\n\n```\n---\ntitle: Welcome\nlocation: sidebar\n---\n```\n\nWithout `location`, a page lands in the editor area.\n\n## What is possible here\n\n- Headings, paragraphs, lists\n- `Code` and code blocks\n- [Links](https://example.com) that open in the system browser\n- Images, quotes and tables\n\nWhat is not possible: scripts. The page runs in a sandboxed frame without\nJavaScript and without access to Lumen."
    }
  ],
  "agents": [],
  "views": [],
  "commands": [],
  "addon": {
    "schema": 1,
    "languages": [
      {
        "id": "lumenlog",
        "name": "Lumen-Log",
        "extensions": [
          ".lumenlog"
        ],
        "icon": "Lg",
        "color": "#4f5bd5",
        "comments": {
          "line": "#"
        },
        "keywords": [
          "trace",
          "debug",
          "info",
          "warn",
          "error",
          "fatal"
        ],
        "constants": [
          "true",
          "false",
          "null"
        ],
        "strings": [
          {
            "start": "\"",
            "escapes": true
          }
        ],
        "numbers": "^\\d+(?:\\.\\d+)?",
        "operators": "^(?:=>|[=<>:+-])",
        "snippets": [
          {
            "label": "info",
            "detail": "Info line",
            "body": "info $0"
          },
          {
            "label": "error",
            "detail": "Error line",
            "body": "error $0"
          }
        ]
      }
    ],
    "themes": [],
    "commands": [],
    "events": [],
    "templates": [],
    "projectKinds": [],
    "snippets": [],
    "id": "ext.example",
    "name": "Example",
    "version": "1.0.2",
    "description": "Shows what an extension can ship: a language, settings and pages.",
    "author": "Lumen",
    "icon": "Bs",
    "color": "#4f5bd5",
    "category": "tool"
  }
}
