{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cli_contracts": {
      "type": "string",
      "minLength": 1
    },
    "info": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string"
        },
        "license": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "contact": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "title",
        "version"
      ],
      "additionalProperties": false
    },
    "artifact_slots": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "direction": {
            "type": "string",
            "enum": [
              "read",
              "write",
              "readwrite"
            ]
          }
        },
        "required": [
          "direction"
        ],
        "additionalProperties": false
      }
    },
    "command_sets": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "executable": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "commands": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "summary": {
                  "type": "string",
                  "minLength": 1
                },
                "description": {
                  "type": "string"
                },
                "usage": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "arguments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "index": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "required": {
                        "type": "boolean"
                      },
                      "description": {
                        "type": "string"
                      },
                      "schema": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "file": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "read",
                              "write",
                              "append",
                              "readWrite"
                            ]
                          },
                          "exists": {
                            "type": "boolean"
                          },
                          "media_type": {
                            "type": "string"
                          },
                          "encoding": {
                            "type": "string"
                          },
                          "schema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "csv": {
                            "type": "object",
                            "properties": {
                              "delimiter": {
                                "type": "string"
                              },
                              "quote_char": {
                                "type": "string"
                              },
                              "header_rows": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "footer_rows": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      "variadic": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "aliases": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "required": {
                        "type": "boolean"
                      },
                      "value_name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "schema": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "file": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "read",
                              "write",
                              "append",
                              "readWrite"
                            ]
                          },
                          "exists": {
                            "type": "boolean"
                          },
                          "media_type": {
                            "type": "string"
                          },
                          "encoding": {
                            "type": "string"
                          },
                          "schema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "csv": {
                            "type": "object",
                            "properties": {
                              "delimiter": {
                                "type": "string"
                              },
                              "quote_char": {
                                "type": "string"
                              },
                              "header_rows": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "footer_rows": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      "effects": {
                        "type": "object",
                        "properties": {
                          "risk_level": {
                            "type": "string",
                            "enum": [
                              "low",
                              "medium",
                              "high",
                              "critical"
                            ]
                          },
                          "reads": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "target": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "description": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "target"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            ]
                          },
                          "writes": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "target": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "overwrite": {
                                      "type": "boolean"
                                    },
                                    "destructive": {
                                      "type": "boolean"
                                    },
                                    "idempotent": {
                                      "type": "boolean"
                                    },
                                    "idempotency_key": {
                                      "type": "string"
                                    },
                                    "idempotent_note": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "target"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            ]
                          },
                          "network": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "description": {
                                    "type": "string"
                                  },
                                  "domains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "requires_secrets": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "idempotent": {
                                    "type": "boolean"
                                  },
                                  "idempotency_key": {
                                    "type": "string"
                                  },
                                  "idempotent_note": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            ]
                          },
                          "execution_mode": {
                            "type": "string",
                            "enum": [
                              "normal",
                              "long-running",
                              "watch",
                              "interactive",
                              "background"
                            ]
                          },
                          "requires_confirmation": {
                            "type": "boolean"
                          },
                          "description": {
                            "type": "string"
                          },
                          "overwrites": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "repeatable": {
                        "type": "boolean"
                      },
                      "deprecated": {
                        "type": "object",
                        "properties": {
                          "since": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "alternative": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "effects": {
                  "type": "object",
                  "properties": {
                    "risk_level": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ]
                    },
                    "reads": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "target": {
                                "type": "string",
                                "minLength": 1
                              },
                              "description": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "target"
                            ],
                            "additionalProperties": false
                          }
                        }
                      ]
                    },
                    "writes": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "target": {
                                "type": "string",
                                "minLength": 1
                              },
                              "description": {
                                "type": "string"
                              },
                              "overwrite": {
                                "type": "boolean"
                              },
                              "destructive": {
                                "type": "boolean"
                              },
                              "idempotent": {
                                "type": "boolean"
                              },
                              "idempotency_key": {
                                "type": "string"
                              },
                              "idempotent_note": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "target"
                            ],
                            "additionalProperties": false
                          }
                        }
                      ]
                    },
                    "network": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "domains": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "requires_secrets": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "idempotent": {
                              "type": "boolean"
                            },
                            "idempotency_key": {
                              "type": "string"
                            },
                            "idempotent_note": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "execution_mode": {
                      "type": "string",
                      "enum": [
                        "normal",
                        "long-running",
                        "watch",
                        "interactive",
                        "background"
                      ]
                    },
                    "requires_confirmation": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": "string"
                    },
                    "overwrites": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "mutuallyExclusive": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "requiredOneOf": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "requiredTogether": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "memory_ref": {
                  "type": "object",
                  "properties": {
                    "input": {
                      "description": "Command accepts memory_ref as input for resumption",
                      "type": "boolean"
                    },
                    "output": {
                      "description": "Command emits memory_ref in output",
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "streams": {
                  "type": "object",
                  "properties": {
                    "stdin": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "format": {
                          "type": "string",
                          "minLength": 1
                        },
                        "encoding": {
                          "type": "string"
                        },
                        "framing": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string"
                            },
                            "delimiter": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        "schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "item_schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "flush": {
                          "type": "object",
                          "properties": {
                            "policy": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "policy"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "format"
                      ],
                      "additionalProperties": false
                    },
                    "stdout": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "format": {
                          "type": "string",
                          "minLength": 1
                        },
                        "encoding": {
                          "type": "string"
                        },
                        "framing": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string"
                            },
                            "delimiter": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        "schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "item_schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "flush": {
                          "type": "object",
                          "properties": {
                            "policy": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "policy"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "format"
                      ],
                      "additionalProperties": false
                    },
                    "stderr": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "format": {
                          "type": "string",
                          "minLength": 1
                        },
                        "encoding": {
                          "type": "string"
                        },
                        "framing": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string"
                            },
                            "delimiter": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        "schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "item_schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "flush": {
                          "type": "object",
                          "properties": {
                            "policy": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "policy"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "format"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "signals": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "description"
                    ],
                    "additionalProperties": false
                  }
                },
                "exits": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "pattern": "^\\d{1,3}$"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string",
                        "minLength": 1
                      },
                      "stdout": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "type": "boolean"
                          },
                          "format": {
                            "type": "string",
                            "minLength": 1
                          },
                          "schema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "examples": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "value": {}
                              },
                              "required": [
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "format"
                        ],
                        "additionalProperties": false
                      },
                      "stderr": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "type": "boolean"
                          },
                          "format": {
                            "type": "string",
                            "minLength": 1
                          },
                          "schema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "examples": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "value": {}
                              },
                              "required": [
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "format"
                        ],
                        "additionalProperties": false
                      },
                      "files": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "path": {
                              "type": "string",
                              "minLength": 1
                            },
                            "required": {
                              "type": "boolean"
                            },
                            "media_type": {
                              "type": "string"
                            },
                            "encoding": {
                              "type": "string"
                            },
                            "schema": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "description": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "path"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "description"
                    ],
                    "additionalProperties": false
                  }
                },
                "examples": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "command": {
                        "type": "string"
                      },
                      "args": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "options": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "expected_exit_code": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "deprecated": {
                  "type": "object",
                  "properties": {
                    "since": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "alternative": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "summary",
                "exits"
              ],
              "additionalProperties": {}
            }
          },
          "groups": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "summary": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "global_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "aliases": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "required": {
                  "type": "boolean"
                },
                "value_name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "schema": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "file": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "read",
                        "write",
                        "append",
                        "readWrite"
                      ]
                    },
                    "exists": {
                      "type": "boolean"
                    },
                    "media_type": {
                      "type": "string"
                    },
                    "encoding": {
                      "type": "string"
                    },
                    "schema": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "csv": {
                      "type": "object",
                      "properties": {
                        "delimiter": {
                          "type": "string"
                        },
                        "quote_char": {
                          "type": "string"
                        },
                        "header_rows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "footer_rows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                "effects": {
                  "type": "object",
                  "properties": {
                    "risk_level": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ]
                    },
                    "reads": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "target": {
                                "type": "string",
                                "minLength": 1
                              },
                              "description": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "target"
                            ],
                            "additionalProperties": false
                          }
                        }
                      ]
                    },
                    "writes": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "target": {
                                "type": "string",
                                "minLength": 1
                              },
                              "description": {
                                "type": "string"
                              },
                              "overwrite": {
                                "type": "boolean"
                              },
                              "destructive": {
                                "type": "boolean"
                              },
                              "idempotent": {
                                "type": "boolean"
                              },
                              "idempotency_key": {
                                "type": "string"
                              },
                              "idempotent_note": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "target"
                            ],
                            "additionalProperties": false
                          }
                        }
                      ]
                    },
                    "network": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "domains": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "requires_secrets": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "idempotent": {
                              "type": "boolean"
                            },
                            "idempotency_key": {
                              "type": "string"
                            },
                            "idempotent_note": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "execution_mode": {
                      "type": "string",
                      "enum": [
                        "normal",
                        "long-running",
                        "watch",
                        "interactive",
                        "background"
                      ]
                    },
                    "requires_confirmation": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": "string"
                    },
                    "overwrites": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "repeatable": {
                  "type": "boolean"
                },
                "deprecated": {
                  "type": "object",
                  "properties": {
                    "since": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "alternative": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            }
          },
          "env": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "schema": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "required": {
                  "type": "boolean"
                },
                "sensitive": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "required": [
          "commands"
        ],
        "additionalProperties": {}
      }
    },
    "components": {
      "type": "object",
      "properties": {
        "schemas": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "examples": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        "exits": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "minLength": 1
              },
              "stdout": {
                "type": "object",
                "properties": {
                  "required": {
                    "type": "boolean"
                  },
                  "format": {
                    "type": "string",
                    "minLength": 1
                  },
                  "schema": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "examples": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "value": {}
                      },
                      "required": [
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "format"
                ],
                "additionalProperties": false
              },
              "stderr": {
                "type": "object",
                "properties": {
                  "required": {
                    "type": "boolean"
                  },
                  "format": {
                    "type": "string",
                    "minLength": 1
                  },
                  "schema": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "examples": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "value": {}
                      },
                      "required": [
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "format"
                ],
                "additionalProperties": false
              },
              "files": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string",
                      "minLength": 1
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "media_type": {
                      "type": "string"
                    },
                    "encoding": {
                      "type": "string"
                    },
                    "schema": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "description": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "path"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "description"
            ],
            "additionalProperties": false
          }
        },
        "stream_items": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        "file_schemas": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "cli_contracts",
    "info",
    "command_sets"
  ],
  "additionalProperties": false,
  "title": "CLI Contracts Document",
  "description": "Schema for cli-contract.yaml — the contract-first CLI interface definition."
}
