mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 06:20:29 +00:00
chore: generate
This commit is contained in:
parent
10441efad1
commit
35b44df94a
2 changed files with 123 additions and 123 deletions
|
|
@ -94,35 +94,6 @@ export type EventMessagePartDelta = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PermissionRequest = {
|
|
||||||
id: string
|
|
||||||
sessionID: string
|
|
||||||
permission: string
|
|
||||||
patterns: Array<string>
|
|
||||||
metadata: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
always: Array<string>
|
|
||||||
tool?: {
|
|
||||||
messageID: string
|
|
||||||
callID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventPermissionAsked = {
|
|
||||||
type: "permission.asked"
|
|
||||||
properties: PermissionRequest
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventPermissionReplied = {
|
|
||||||
type: "permission.replied"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
requestID: string
|
|
||||||
reply: "once" | "always" | "reject"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SessionStatus =
|
export type SessionStatus =
|
||||||
| {
|
| {
|
||||||
type: "idle"
|
type: "idle"
|
||||||
|
|
@ -152,6 +123,35 @@ export type EventSessionIdle = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PermissionRequest = {
|
||||||
|
id: string
|
||||||
|
sessionID: string
|
||||||
|
permission: string
|
||||||
|
patterns: Array<string>
|
||||||
|
metadata: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
always: Array<string>
|
||||||
|
tool?: {
|
||||||
|
messageID: string
|
||||||
|
callID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventPermissionAsked = {
|
||||||
|
type: "permission.asked"
|
||||||
|
properties: PermissionRequest
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventPermissionReplied = {
|
||||||
|
type: "permission.replied"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
requestID: string
|
||||||
|
reply: "once" | "always" | "reject"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type QuestionOption = {
|
export type QuestionOption = {
|
||||||
/**
|
/**
|
||||||
* Display text (1-5 words, concise)
|
* Display text (1-5 words, concise)
|
||||||
|
|
@ -972,10 +972,10 @@ export type Event =
|
||||||
| EventLspClientDiagnostics
|
| EventLspClientDiagnostics
|
||||||
| EventLspUpdated
|
| EventLspUpdated
|
||||||
| EventMessagePartDelta
|
| EventMessagePartDelta
|
||||||
| EventPermissionAsked
|
|
||||||
| EventPermissionReplied
|
|
||||||
| EventSessionStatus
|
| EventSessionStatus
|
||||||
| EventSessionIdle
|
| EventSessionIdle
|
||||||
|
| EventPermissionAsked
|
||||||
|
| EventPermissionReplied
|
||||||
| EventQuestionAsked
|
| EventQuestionAsked
|
||||||
| EventQuestionReplied
|
| EventQuestionReplied
|
||||||
| EventQuestionRejected
|
| EventQuestionRejected
|
||||||
|
|
|
||||||
|
|
@ -7324,6 +7324,92 @@
|
||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"required": ["type", "properties"]
|
||||||
},
|
},
|
||||||
|
"SessionStatus": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "idle"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "retry"
|
||||||
|
},
|
||||||
|
"attempt": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"next": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type", "attempt", "message", "next"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "busy"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Event.session.status": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "session.status"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"sessionID": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^ses.*"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"$ref": "#/components/schemas/SessionStatus"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["sessionID", "status"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type", "properties"]
|
||||||
|
},
|
||||||
|
"Event.session.idle": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "session.idle"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"sessionID": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^ses.*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["sessionID"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type", "properties"]
|
||||||
|
},
|
||||||
"PermissionRequest": {
|
"PermissionRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -7414,92 +7500,6 @@
|
||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"required": ["type", "properties"]
|
||||||
},
|
},
|
||||||
"SessionStatus": {
|
|
||||||
"anyOf": [
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "idle"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "retry"
|
|
||||||
},
|
|
||||||
"attempt": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"next": {
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "attempt", "message", "next"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "busy"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Event.session.status": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "session.status"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"sessionID": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^ses.*"
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
"$ref": "#/components/schemas/SessionStatus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["sessionID", "status"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "properties"]
|
|
||||||
},
|
|
||||||
"Event.session.idle": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "session.idle"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"sessionID": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^ses.*"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["sessionID"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "properties"]
|
|
||||||
},
|
|
||||||
"QuestionOption": {
|
"QuestionOption": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -9810,18 +9810,18 @@
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.message.part.delta"
|
"$ref": "#/components/schemas/Event.message.part.delta"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.permission.asked"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.permission.replied"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.session.status"
|
"$ref": "#/components/schemas/Event.session.status"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.session.idle"
|
"$ref": "#/components/schemas/Event.session.idle"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.permission.asked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.permission.replied"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.question.asked"
|
"$ref": "#/components/schemas/Event.question.asked"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue