Doc kit command

change.options

Track Changes Options

Sets which revisions show in the editor (comments, ink, insertions and deletions, formatting, balloons).

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of change.options
NameTypeRequiredDescription
balloons"revisions" | "inline" | "commentsAndFormatting"no
changedLines"outside" | "left" | "right" | "none"no
changedLinesColor"auto" | "RRGGBB"no
commentsbooleanno
deleteColor"byAuthor" | "RRGGBB"no
deleteMark"strikethrough" | "doubleStrikethrough" | "hidden" | "caret" | "hash" | "underline" | "colorOnly"no
formattingbooleanno
inkbooleanno
insertColor"byAuthor" | "RRGGBB"no
insertMark"underline" | "doubleUnderline" | "bold" | "italic" | "strikethrough" | "colorOnly" | "none"no
insertionsDeletionsbooleanno
trackFormattingbooleanno

Call through doc_run

text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "change.options" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: balloons, changedLines, changedLinesColor, comments, deleteColor, deleteMark, formatting, ink, insertColor, insertMark, insertionsDeletions, trackFormatting. doc_run answers the step’s result in completed[i].result.

Result

Result of change.options
NameTypeRequiredDescription
balloonsstringno
changedLinesstringno
changedLinesColorstringno
commentsbooleanno
deleteColorstringno
deleteMarkstringno
formattingbooleanno
inkbooleanno
insertColorstringno
insertMarkstringno
insertionsDeletionsbooleanno
trackFormattingbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "balloons": {
      "type": "string"
    },
    "changedLines": {
      "type": "string"
    },
    "changedLinesColor": {
      "type": "string"
    },
    "comments": {
      "type": "boolean"
    },
    "deleteColor": {
      "type": "string"
    },
    "deleteMark": {
      "type": "string"
    },
    "formatting": {
      "type": "boolean"
    },
    "ink": {
      "type": "boolean"
    },
    "insertColor": {
      "type": "string"
    },
    "insertMark": {
      "type": "string"
    },
    "insertionsDeletions": {
      "type": "boolean"
    },
    "trackFormatting": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "balloons": {
      "enum": [
        "revisions",
        "inline",
        "commentsAndFormatting"
      ],
      "type": "string"
    },
    "changedLines": {
      "enum": [
        "outside",
        "left",
        "right",
        "none"
      ],
      "type": "string"
    },
    "changedLinesColor": {
      "enum": [
        "auto",
        "RRGGBB"
      ],
      "type": "string"
    },
    "comments": {
      "type": "boolean"
    },
    "deleteColor": {
      "enum": [
        "byAuthor",
        "RRGGBB"
      ],
      "type": "string"
    },
    "deleteMark": {
      "enum": [
        "strikethrough",
        "doubleStrikethrough",
        "hidden",
        "caret",
        "hash",
        "underline",
        "colorOnly"
      ],
      "type": "string"
    },
    "formatting": {
      "type": "boolean"
    },
    "ink": {
      "type": "boolean"
    },
    "insertColor": {
      "enum": [
        "byAuthor",
        "RRGGBB"
      ],
      "type": "string"
    },
    "insertMark": {
      "enum": [
        "underline",
        "doubleUnderline",
        "bold",
        "italic",
        "strikethrough",
        "colorOnly",
        "none"
      ],
      "type": "string"
    },
    "insertionsDeletions": {
      "type": "boolean"
    },
    "trackFormatting": {
      "type": "boolean"
    }
  },
  "returns": "the options (omit all to read them)",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (doc_commands through @kition/[email protected], built from KitionAI/kition-doc@41e14a8). As data: commands.jsonl.