Design kit command

board.timerState

Timer state

Answers the board timer's state and time left.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of board.timerState
NameTypeRequiredDescription
textstringnoread by the command beside its listed parameters

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "board.timerState" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: text. design_run answers the step’s result in completed[i].result.

Result

Result of board.timerState
NameTypeRequiredDescription
endsanyno
leftanyno
stateanyno
textanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "ends": {},
    "left": {},
    "state": {},
    "text": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "text": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "returns": "{state: off|running|paused|done, left (ms), text (m:ss), ends? (ms since 1970, while running)}",
  "type": "object"
}

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