mirror of
https://github.com/openai/codex.git
synced 2026-05-02 12:21:26 +03:00
Add metadata to sessions logs to track approval of sandboxing
This commit is contained in:
@@ -93,6 +93,61 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"ApprovalSummary": {
|
||||
"properties": {
|
||||
"abort_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"approved_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"approved_for_session_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"approved_with_amendment_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"approved_with_network_policy_allow_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"denied_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"denied_with_network_policy_deny_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"request_count": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"abort_count",
|
||||
"approved_count",
|
||||
"approved_for_session_count",
|
||||
"approved_with_amendment_count",
|
||||
"approved_with_network_policy_allow_count",
|
||||
"denied_count",
|
||||
"denied_with_network_policy_deny_count",
|
||||
"request_count"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AskForApproval": {
|
||||
"description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",
|
||||
"oneOf": [
|
||||
@@ -4061,6 +4116,21 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"PrimitiveMetadata": {
|
||||
"properties": {
|
||||
"approval_summary": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ApprovalSummary"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"RateLimitSnapshot": {
|
||||
"properties": {
|
||||
"credits": {
|
||||
@@ -4697,6 +4767,16 @@
|
||||
],
|
||||
"writeOnly": true
|
||||
},
|
||||
"primitive_metadata": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/PrimitiveMetadata"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/LocalShellStatus"
|
||||
},
|
||||
@@ -4734,6 +4814,16 @@
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"primitive_metadata": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/PrimitiveMetadata"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"function_call"
|
||||
@@ -4793,6 +4883,16 @@
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"primitive_metadata": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/PrimitiveMetadata"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"type": [
|
||||
"string",
|
||||
|
||||
Reference in New Issue
Block a user