feat(headless): expose negotiated native log observation

This commit is contained in:
2026-11-10 21:57:34 +00:00
parent 09d8778f04
commit c649e02816
17 changed files with 1830 additions and 11 deletions
+157 -2
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Prometeu headless server messages v1.1",
"$comment": "Producer schema for supported 1.0/1.1 shapes. Consumers permit compatible minor additions; 64-bit identities require lossless decoding.",
"title": "Prometeu Headless v1.2 Response",
"$comment": "Producer schema for supported 1.0/1.1/1.2 shapes. Consumers permit compatible minor additions; 64-bit identities require lossless decoding.",
"oneOf": [
{
"type": "object",
@@ -179,6 +179,9 @@
},
{
"$ref": "#/$defs/memcard"
},
{
"$ref": "#/$defs/logPage"
}
]
}
@@ -1761,6 +1764,158 @@
"recovery"
],
"additionalProperties": false
},
"logEvent": {
"type": "object",
"properties": {
"sequence": {
"type": "integer",
"minimum": 0,
"maximum": 18446744073709551615
},
"frame": {
"type": "integer",
"minimum": 0,
"maximum": 18446744073709551615
},
"timestampMs": {
"type": "integer",
"minimum": 0,
"maximum": 18446744073709551615
},
"level": {
"enum": [
"trace",
"debug",
"info",
"warn",
"error"
]
},
"source": {
"enum": [
"pos",
"hub",
"vm",
"fs",
"app"
]
},
"appId": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 4294967295
},
"tag": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"message": {
"type": "string"
}
},
"required": [
"sequence",
"frame",
"timestampMs",
"level",
"source",
"appId",
"tag",
"message"
],
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"source": {
"const": "app"
}
}
},
"then": {
"properties": {
"appId": {
"type": "integer"
}
}
},
"else": {
"properties": {
"appId": {
"type": "null"
}
}
}
}
]
},
"logPage": {
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"minLength": 1
},
"logEpoch": {
"type": "integer",
"minimum": 0,
"maximum": 18446744073709551615
},
"events": {
"type": "array",
"maxItems": 1024,
"items": {
"$ref": "#/$defs/logEvent"
}
},
"oldestSequence": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 18446744073709551615
},
"newestSequence": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 18446744073709551615
},
"nextAfterSequence": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 18446744073709551615
},
"gap": {
"type": "boolean"
},
"overflow": {
"type": "boolean"
}
},
"required": [
"sessionId",
"logEpoch",
"events",
"oldestSequence",
"newestSequence",
"nextAfterSequence",
"gap",
"overflow"
],
"additionalProperties": false
}
}
}