Skip to content

CodeModeOutputSpan

One public-output span inside the item’s visibleOutput (ADR 42727 D3).

Offsets index the UTF-8 encoding of the decoded visibleOutput string, never the JSON-escaped wire text; both ends fall on code-point boundaries; named and measured like item/readOutput’s byte range.

  • lengthBytes
  • offsetBytes
  • stream
Source

schema/msp/experimental/msp.schema.json#/types/CodeModeOutputSpan

{
"description": "One public-output span inside the item's `visibleOutput` (ADR 42727 D3).\n\nOffsets index the UTF-8 encoding of the **decoded** `visibleOutput`\nstring, never the JSON-escaped wire text; both ends fall on code-point\nboundaries; named and measured like `item/readOutput`'s byte range.",
"properties": {
"lengthBytes": {
"description": "Length of the span, in bytes.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"offsetBytes": {
"description": "Start of the span, in bytes.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"stream": {
"$ref": "#/$defs/CodeModeOutputStream",
"description": "What the bytes are."
}
},
"required": [
"lengthBytes",
"offsetBytes",
"stream"
],
"type": "object"
}