refactor: compact generated protocol metadata

This commit is contained in:
Peter Steinberger
2026-05-05 20:47:29 +01:00
parent 9abf01faf0
commit 782963ae66
15 changed files with 821 additions and 21167 deletions

View File

@@ -5,20 +5,10 @@
"required": ["arguments", "callId", "threadId", "tool", "turnId"],
"properties": {
"arguments": true,
"callId": {
"type": "string"
},
"namespace": {
"type": ["string", "null"]
},
"threadId": {
"type": "string"
},
"tool": {
"type": "string"
},
"turnId": {
"type": "string"
}
"callId": { "type": "string" },
"namespace": { "type": ["string", "null"] },
"threadId": { "type": "string" },
"tool": { "type": "string" },
"turnId": { "type": "string" }
}
}

View File

@@ -4,18 +4,10 @@
"type": "object",
"required": ["error", "threadId", "turnId", "willRetry"],
"properties": {
"error": {
"$ref": "#/definitions/TurnError"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": "string"
},
"willRetry": {
"type": "boolean"
}
"error": { "$ref": "#/definitions/TurnError" },
"threadId": { "type": "string" },
"turnId": { "type": "string" },
"willRetry": { "type": "boolean" }
},
"definitions": {
"CodexErrorInfo": {
@@ -43,11 +35,7 @@
"httpConnectionFailed": {
"type": "object",
"properties": {
"httpStatusCode": {
"type": ["integer", "null"],
"format": "uint16",
"minimum": 0.0
}
"httpStatusCode": { "type": ["integer", "null"], "format": "uint16", "minimum": 0 }
}
}
},
@@ -62,11 +50,7 @@
"responseStreamConnectionFailed": {
"type": "object",
"properties": {
"httpStatusCode": {
"type": ["integer", "null"],
"format": "uint16",
"minimum": 0.0
}
"httpStatusCode": { "type": ["integer", "null"], "format": "uint16", "minimum": 0 }
}
}
},
@@ -81,11 +65,7 @@
"responseStreamDisconnected": {
"type": "object",
"properties": {
"httpStatusCode": {
"type": ["integer", "null"],
"format": "uint16",
"minimum": 0.0
}
"httpStatusCode": { "type": ["integer", "null"], "format": "uint16", "minimum": 0 }
}
}
},
@@ -100,11 +80,7 @@
"responseTooManyFailedAttempts": {
"type": "object",
"properties": {
"httpStatusCode": {
"type": ["integer", "null"],
"format": "uint16",
"minimum": 0.0
}
"httpStatusCode": { "type": ["integer", "null"], "format": "uint16", "minimum": 0 }
}
}
},
@@ -119,11 +95,7 @@
"activeTurnNotSteerable": {
"type": "object",
"required": ["turnKind"],
"properties": {
"turnKind": {
"$ref": "#/definitions/NonSteerableTurnKind"
}
}
"properties": { "turnKind": { "$ref": "#/definitions/NonSteerableTurnKind" } }
}
},
"additionalProperties": false,
@@ -131,31 +103,16 @@
}
]
},
"NonSteerableTurnKind": {
"type": "string",
"enum": ["review", "compact"]
},
"NonSteerableTurnKind": { "type": "string", "enum": ["review", "compact"] },
"TurnError": {
"type": "object",
"required": ["message"],
"properties": {
"additionalDetails": {
"default": null,
"type": ["string", "null"]
},
"additionalDetails": { "default": null, "type": ["string", "null"] },
"codexErrorInfo": {
"anyOf": [
{
"$ref": "#/definitions/CodexErrorInfo"
},
{
"type": "null"
}
]
"anyOf": [{ "$ref": "#/definitions/CodexErrorInfo" }, { "type": "null" }]
},
"message": {
"type": "string"
}
"message": { "type": "string" }
}
}
}

View File

@@ -4,19 +4,8 @@
"type": "object",
"required": ["requiresOpenaiAuth"],
"properties": {
"account": {
"anyOf": [
{
"$ref": "#/definitions/Account"
},
{
"type": "null"
}
]
},
"requiresOpenaiAuth": {
"type": "boolean"
}
"account": { "anyOf": [{ "$ref": "#/definitions/Account" }, { "type": "null" }] },
"requiresOpenaiAuth": { "type": "boolean" }
},
"definitions": {
"Account": {
@@ -25,11 +14,7 @@
"type": "object",
"required": ["type"],
"properties": {
"type": {
"type": "string",
"enum": ["apiKey"],
"title": "ApiKeyAccountType"
}
"type": { "type": "string", "enum": ["apiKey"], "title": "ApiKeyAccountType" }
},
"title": "ApiKeyAccount"
},
@@ -37,17 +22,9 @@
"type": "object",
"required": ["email", "planType", "type"],
"properties": {
"email": {
"type": "string"
},
"planType": {
"$ref": "#/definitions/PlanType"
},
"type": {
"type": "string",
"enum": ["chatgpt"],
"title": "ChatgptAccountType"
}
"email": { "type": "string" },
"planType": { "$ref": "#/definitions/PlanType" },
"type": { "type": "string", "enum": ["chatgpt"], "title": "ChatgptAccountType" }
},
"title": "ChatgptAccount"
},

View File

@@ -4,12 +4,7 @@
"type": "object",
"required": ["data"],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/Model"
}
},
"data": { "type": "array", "items": { "$ref": "#/definitions/Model" } },
"nextCursor": {
"description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",
"type": ["string", "null"]
@@ -44,101 +39,46 @@
"supportedReasoningEfforts"
],
"properties": {
"additionalSpeedTiers": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"additionalSpeedTiers": { "default": [], "type": "array", "items": { "type": "string" } },
"availabilityNux": {
"anyOf": [
{
"$ref": "#/definitions/ModelAvailabilityNux"
},
{
"type": "null"
}
]
},
"defaultReasoningEffort": {
"$ref": "#/definitions/ReasoningEffort"
},
"description": {
"type": "string"
},
"displayName": {
"type": "string"
},
"hidden": {
"type": "boolean"
},
"id": {
"type": "string"
"anyOf": [{ "$ref": "#/definitions/ModelAvailabilityNux" }, { "type": "null" }]
},
"defaultReasoningEffort": { "$ref": "#/definitions/ReasoningEffort" },
"description": { "type": "string" },
"displayName": { "type": "string" },
"hidden": { "type": "boolean" },
"id": { "type": "string" },
"inputModalities": {
"default": ["text", "image"],
"type": "array",
"items": {
"$ref": "#/definitions/InputModality"
}
},
"isDefault": {
"type": "boolean"
},
"model": {
"type": "string"
"items": { "$ref": "#/definitions/InputModality" }
},
"isDefault": { "type": "boolean" },
"model": { "type": "string" },
"supportedReasoningEfforts": {
"type": "array",
"items": {
"$ref": "#/definitions/ReasoningEffortOption"
}
},
"supportsPersonality": {
"default": false,
"type": "boolean"
},
"upgrade": {
"type": ["string", "null"]
"items": { "$ref": "#/definitions/ReasoningEffortOption" }
},
"supportsPersonality": { "default": false, "type": "boolean" },
"upgrade": { "type": ["string", "null"] },
"upgradeInfo": {
"anyOf": [
{
"$ref": "#/definitions/ModelUpgradeInfo"
},
{
"type": "null"
}
]
"anyOf": [{ "$ref": "#/definitions/ModelUpgradeInfo" }, { "type": "null" }]
}
}
},
"ModelAvailabilityNux": {
"type": "object",
"required": ["message"],
"properties": {
"message": {
"type": "string"
}
}
"properties": { "message": { "type": "string" } }
},
"ModelUpgradeInfo": {
"type": "object",
"required": ["model"],
"properties": {
"migrationMarkdown": {
"type": ["string", "null"]
},
"model": {
"type": "string"
},
"modelLink": {
"type": ["string", "null"]
},
"upgradeCopy": {
"type": ["string", "null"]
}
"migrationMarkdown": { "type": ["string", "null"] },
"model": { "type": "string" },
"modelLink": { "type": ["string", "null"] },
"upgradeCopy": { "type": ["string", "null"] }
}
},
"ReasoningEffort": {
@@ -150,12 +90,8 @@
"type": "object",
"required": ["description", "reasoningEffort"],
"properties": {
"description": {
"type": "string"
},
"reasoningEffort": {
"$ref": "#/definitions/ReasoningEffort"
}
"description": { "type": "string" },
"reasoningEffort": { "$ref": "#/definitions/ReasoningEffort" }
}
}
}

View File

@@ -1466,7 +1466,7 @@ type DynamicToolBuildParams = {
sandboxSessionKey: string;
sandbox: Awaited<ReturnType<typeof resolveSandboxContext>>;
runAbortController: AbortController;
sessionAgentId: string | undefined;
sessionAgentId: string;
pluginConfig: CodexPluginConfig;
onYieldDetected: () => void;
};