{
  "version": 1,
  "apps": [
    {
      "id": "clip-cutter",
      "title": "Clip Cutter",
      "icon": "scissors",
      "description": "Trim, order and render short cuts from the video and audio in files/ and media/, into projects/cuts/.",
      "entry": "app/index.html",
      "opens": ["*.mp4", "*.mov", "*.m4a", "*.wav", "*.json"],
      "capabilities": {
        "files":   { "read": ["files/**", "media/**", "projects/cuts/**"], "write": ["projects/cuts/**"] },
        "media":   true,
        "compute": { "wasm": true, "workers": true },
        "tools":   ["render_cut"],
        "import":  { "into": "files" },
        "state":   true
      }
    }
  ],
  "newSession": [
    {
      "id": "cut-a-video",
      "label": "Cut a video",
      "icon": "scissors",
      "prompt": "Help me cut {{purpose}} from {{clips}}, about {{length}} long. Propose an edit list, then tell me to open Clip Cutter to trim and order the clips; when I press Render or ask you to change a cut, read the edit list and continue from there.",
      "inputs": {
        "clips":   { "kind": "files", "label": "the clips", "accept": "video/*,audio/*", "into": "files", "min": 1, "max": 20, "sources": ["computer", "workspace"] },
        "purpose": { "kind": "text", "label": "what it is for", "placeholder": "a 30-second teaser for the launch", "max": 200 },
        "length":  {
          "kind": "select",
          "label": "how long",
          "options": [
            { "value": "15s", "label": "15 seconds" },
            { "value": "30s", "label": "half a minute" },
            { "value": "60s", "label": "a minute" },
            { "value": "3m", "label": "about three minutes" }
          ],
          "default": "30s"
        }
      }
    }
  ]
}
