mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
fix: add native turn lifecycle and stabilize opencode session flow
This commit is contained in:
parent
2b0507c3f5
commit
91cac052b8
35 changed files with 1688 additions and 486 deletions
|
|
@ -1157,6 +1157,10 @@
|
|||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"directory": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
|
|
@ -1165,6 +1169,10 @@
|
|||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"variant": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
|
|
@ -1595,7 +1603,9 @@
|
|||
"agentMode",
|
||||
"permissionMode",
|
||||
"ended",
|
||||
"eventCount"
|
||||
"eventCount",
|
||||
"createdAt",
|
||||
"updatedAt"
|
||||
],
|
||||
"properties": {
|
||||
"agent": {
|
||||
|
|
@ -1604,6 +1614,14 @@
|
|||
"agentMode": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"directory": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"ended": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
@ -1626,6 +1644,14 @@
|
|||
"sessionId": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"variant": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
|
|
@ -1689,6 +1715,31 @@
|
|||
"daemon"
|
||||
]
|
||||
},
|
||||
"TurnEventData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"phase"
|
||||
],
|
||||
"properties": {
|
||||
"metadata": {
|
||||
"nullable": true
|
||||
},
|
||||
"phase": {
|
||||
"$ref": "#/components/schemas/TurnPhase"
|
||||
},
|
||||
"turn_id": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"TurnPhase": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"started",
|
||||
"ended"
|
||||
]
|
||||
},
|
||||
"TurnStreamQuery": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1748,6 +1799,9 @@
|
|||
},
|
||||
"UniversalEventData": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/TurnEventData"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SessionStartedData"
|
||||
},
|
||||
|
|
@ -1779,6 +1833,8 @@
|
|||
"enum": [
|
||||
"session.started",
|
||||
"session.ended",
|
||||
"turn.started",
|
||||
"turn.ended",
|
||||
"item.started",
|
||||
"item.delta",
|
||||
"item.completed",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue