chore: generate

This commit is contained in:
opencode-agent[bot]
2026-04-27 18:34:44 +00:00
parent f25f1485d5
commit ccb7669736
3 changed files with 71 additions and 69 deletions
@@ -252,7 +252,9 @@ export const tuiHandlers = Layer.unwrap(
payload: typeof TuiEvent.SessionSelect.properties.Type payload: typeof TuiEvent.SessionSelect.properties.Type
}) { }) {
const row = yield* Effect.sync(() => const row = yield* Effect.sync(() =>
Database.use((db) => db.select({ id: SessionTable.id }).from(SessionTable).where(eq(SessionTable.id, ctx.payload.sessionID)).get()), Database.use((db) =>
db.select({ id: SessionTable.id }).from(SessionTable).where(eq(SessionTable.id, ctx.payload.sessionID)).get(),
),
) )
if (!row) return yield* new HttpApiError.NotFound({}) if (!row) return yield* new HttpApiError.NotFound({})
yield* bus.publish(TuiEvent.SessionSelect, ctx.payload) yield* bus.publish(TuiEvent.SessionSelect, ctx.payload)
+18 -18
View File
@@ -84,20 +84,6 @@ export type EventLspUpdated = {
} }
} }
export type EventInstallationUpdated = {
type: "installation.updated"
properties: {
version: string
}
}
export type EventInstallationUpdateAvailable = {
type: "installation.update-available"
properties: {
version: string
}
}
export type EventMessagePartDelta = { export type EventMessagePartDelta = {
type: "message.part.delta" type: "message.part.delta"
properties: { properties: {
@@ -230,6 +216,20 @@ export type EventSessionError = {
} }
} }
export type EventInstallationUpdated = {
type: "installation.updated"
properties: {
version: string
}
}
export type EventInstallationUpdateAvailable = {
type: "installation.update-available"
properties: {
version: string
}
}
export type QuestionOption = { export type QuestionOption = {
/** /**
* Display text (1-5 words, concise) * Display text (1-5 words, concise)
@@ -1117,13 +1117,13 @@ export type GlobalEvent = {
| EventFileWatcherUpdated | EventFileWatcherUpdated
| EventLspClientDiagnostics | EventLspClientDiagnostics
| EventLspUpdated | EventLspUpdated
| EventInstallationUpdated
| EventInstallationUpdateAvailable
| EventMessagePartDelta | EventMessagePartDelta
| EventPermissionAsked | EventPermissionAsked
| EventPermissionReplied | EventPermissionReplied
| EventSessionDiff | EventSessionDiff
| EventSessionError | EventSessionError
| EventInstallationUpdated
| EventInstallationUpdateAvailable
| EventQuestionAsked | EventQuestionAsked
| EventQuestionReplied | EventQuestionReplied
| EventQuestionRejected | EventQuestionRejected
@@ -2060,13 +2060,13 @@ export type Event =
| EventFileWatcherUpdated | EventFileWatcherUpdated
| EventLspClientDiagnostics | EventLspClientDiagnostics
| EventLspUpdated | EventLspUpdated
| EventInstallationUpdated
| EventInstallationUpdateAvailable
| EventMessagePartDelta | EventMessagePartDelta
| EventPermissionAsked | EventPermissionAsked
| EventPermissionReplied | EventPermissionReplied
| EventSessionDiff | EventSessionDiff
| EventSessionError | EventSessionError
| EventInstallationUpdated
| EventInstallationUpdateAvailable
| EventQuestionAsked | EventQuestionAsked
| EventQuestionReplied | EventQuestionReplied
| EventQuestionRejected | EventQuestionRejected
+50 -50
View File
@@ -7738,44 +7738,6 @@
}, },
"required": ["type", "properties"] "required": ["type", "properties"]
}, },
"Event.installation.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.updated"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Event.installation.update-available": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.update-available"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Event.message.part.delta": { "Event.message.part.delta": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -8156,6 +8118,44 @@
}, },
"required": ["type", "properties"] "required": ["type", "properties"]
}, },
"Event.installation.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.updated"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Event.installation.update-available": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.update-available"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"QuestionOption": { "QuestionOption": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -10799,12 +10799,6 @@
{ {
"$ref": "#/components/schemas/Event.lsp.updated" "$ref": "#/components/schemas/Event.lsp.updated"
}, },
{
"$ref": "#/components/schemas/Event.installation.updated"
},
{
"$ref": "#/components/schemas/Event.installation.update-available"
},
{ {
"$ref": "#/components/schemas/Event.message.part.delta" "$ref": "#/components/schemas/Event.message.part.delta"
}, },
@@ -10820,6 +10814,12 @@
{ {
"$ref": "#/components/schemas/Event.session.error" "$ref": "#/components/schemas/Event.session.error"
}, },
{
"$ref": "#/components/schemas/Event.installation.updated"
},
{
"$ref": "#/components/schemas/Event.installation.update-available"
},
{ {
"$ref": "#/components/schemas/Event.question.asked" "$ref": "#/components/schemas/Event.question.asked"
}, },
@@ -13058,12 +13058,6 @@
{ {
"$ref": "#/components/schemas/Event.lsp.updated" "$ref": "#/components/schemas/Event.lsp.updated"
}, },
{
"$ref": "#/components/schemas/Event.installation.updated"
},
{
"$ref": "#/components/schemas/Event.installation.update-available"
},
{ {
"$ref": "#/components/schemas/Event.message.part.delta" "$ref": "#/components/schemas/Event.message.part.delta"
}, },
@@ -13079,6 +13073,12 @@
{ {
"$ref": "#/components/schemas/Event.session.error" "$ref": "#/components/schemas/Event.session.error"
}, },
{
"$ref": "#/components/schemas/Event.installation.updated"
},
{
"$ref": "#/components/schemas/Event.installation.update-available"
},
{ {
"$ref": "#/components/schemas/Event.question.asked" "$ref": "#/components/schemas/Event.question.asked"
}, },