{
  "schemaVersion": 1,
  "id": "example.text-workflow",
  "version": "1.0.0",
  "name": "Text workflow",
  "description": "Clean text through two connected blocks, then use the shared editor to assemble media.",
  "summary": {
    "origin": "llm",
    "generation": "build-time",
    "generator": "Codex",
    "status": "ready"
  },
  "packages": [
    {
      "manifest": {
        "schemaVersion": 1,
        "license": "MIT",
        "provenance": {
          "notice": "MIT License\n\nCopyright (c) 2026 StillMade SDK contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and \nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including \nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the \nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO \nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER \nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE \nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n"
        },
        "sdkVersion": "0.1.0",
        "id": "example.clean-text",
        "version": "1.0.0",
        "name": "Clean text",
        "description": "Trims extra space from text and returns a clean copy for the next step.",
        "kind": "task",
        "runtime": "recipe",
        "inputs": {
          "text": {
            "type": "text",
            "semantic": "plain_text",
            "required": true,
            "description": "Text whose surrounding whitespace should be removed."
          }
        },
        "outputs": {
          "text": {
            "type": "text",
            "semantic": "plain_text",
            "description": "The same text with surrounding whitespace removed."
          }
        },
        "permissions": {
          "project": [],
          "network": [],
          "filesystem": [],
          "secrets": []
        },
        "ui": [
          {
            "control": "text",
            "port": "text"
          }
        ]
      },
      "recipe": {
        "schemaVersion": 1,
        "steps": [
          {
            "id": "clean",
            "op": "text.trim",
            "args": {
              "text": {
                "$input": "text"
              }
            }
          }
        ],
        "outputs": {
          "text": {
            "$step": "clean"
          }
        }
      },
      "tests": [
        {
          "name": "Trims surrounding whitespace",
          "input": {
            "text": "  StillMade\n"
          },
          "expected": {
            "text": "StillMade"
          }
        }
      ]
    }
  ],
  "stages": [
    {
      "id": "first",
      "blockId": "example.clean-text",
      "version": "1.0.0",
      "label": "Prepare text"
    },
    {
      "id": "second",
      "blockId": "example.clean-text",
      "version": "1.0.0",
      "label": "Review clean text"
    },
    {
      "id": "edit",
      "blockId": "sm.editor",
      "version": "1.0.0",
      "label": "Edit media"
    },
    {
      "id": "export",
      "blockId": "sm.export-video",
      "version": "1.0.0",
      "label": "Export video"
    }
  ],
  "connections": [
    {
      "from": {
        "stage": "first",
        "port": "text"
      },
      "to": {
        "stage": "second",
        "port": "text"
      }
    }
  ]
}