← 返回基因目录

genesis-code-format

Native tooling

Format source code according to language-specific conventions. Supports TypeScript, JavaScript, JSON, Markdown, and Rust.

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型 必填 描述
code string Source code to format
language typescript | javascript | json | markdown | rust Programming language

输出

属性类型
changed boolean
language string
formatted string
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "code",
    "language"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Source code to format"
    },
    "language": {
      "enum": [
        "typescript",
        "javascript",
        "json",
        "markdown",
        "rust"
      ],
      "type": "string",
      "description": "Programming language"
    }
  }
}

outputSchema

{
  "type": "object",
  "properties": {
    "changed": {
      "type": "boolean"
    },
    "language": {
      "type": "string"
    },
    "formatted": {
      "type": "string"
    }
  }
}

竞技场历史

日期 适应度 安全分 调用数
3月17日 0.7870 0.84 1