chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-14 00:59:33 +00:00
parent 16c457e712
commit faf8713053
5 changed files with 71909 additions and 115 deletions
File diff suppressed because one or more lines are too long
+8 -3
View File
@@ -21,7 +21,8 @@ export interface Interface {
export class Service extends Context.Service<Service, Interface>()("@opencode/v2/PluginBoot") {} export class Service extends Context.Service<Service, Interface>()("@opencode/v2/PluginBoot") {}
export const layer: Layer.Layer<Service, never, Catalog.Service | PluginV2.Service | AuthV2.Service | Npm.Service> = Layer.effect( export const layer: Layer.Layer<Service, never, Catalog.Service | PluginV2.Service | AuthV2.Service | Npm.Service> =
Layer.effect(
Service, Service,
Effect.gen(function* () { Effect.gen(function* () {
const catalog = yield* Catalog.Service const catalog = yield* Catalog.Service
@@ -50,13 +51,17 @@ export const layer: Layer.Layer<Service, never, Catalog.Service | PluginV2.Servi
yield* add(ModelsDevPlugin) yield* add(ModelsDevPlugin)
}).pipe(Effect.withSpan("PluginBoot.boot")) }).pipe(Effect.withSpan("PluginBoot.boot"))
yield* boot.pipe(Effect.exit, Effect.flatMap((exit) => Deferred.done(done, exit)), Effect.forkScoped) yield* boot.pipe(
Effect.exit,
Effect.flatMap((exit) => Deferred.done(done, exit)),
Effect.forkScoped,
)
return Service.of({ return Service.of({
wait: () => Deferred.await(done), wait: () => Deferred.await(done),
}) })
}), }),
) )
export const defaultLayer = layer.pipe( export const defaultLayer = layer.pipe(
Layer.provide(Catalog.defaultLayer), Layer.provide(Catalog.defaultLayer),
@@ -9,7 +9,9 @@ export const ModelGroup = HttpApiGroup.make("v2.model")
HttpApiEndpoint.get("models", "/api/model", { HttpApiEndpoint.get("models", "/api/model", {
query: InstanceQuery, query: InstanceQuery,
success: Schema.Array(ModelV2.Info), success: Schema.Array(ModelV2.Info),
}).annotateMerge(instanceQueryOpenApi).annotateMerge( })
.annotateMerge(instanceQueryOpenApi)
.annotateMerge(
OpenApi.annotations({ OpenApi.annotations({
identifier: "v2.model.list", identifier: "v2.model.list",
summary: "List v2 models", summary: "List v2 models",
@@ -10,7 +10,9 @@ export const ProviderGroup = HttpApiGroup.make("v2.provider")
HttpApiEndpoint.get("providers", "/api/provider", { HttpApiEndpoint.get("providers", "/api/provider", {
query: InstanceQuery, query: InstanceQuery,
success: Schema.Array(ProviderV2.Info), success: Schema.Array(ProviderV2.Info),
}).annotateMerge(instanceQueryOpenApi).annotateMerge( })
.annotateMerge(instanceQueryOpenApi)
.annotateMerge(
OpenApi.annotations({ OpenApi.annotations({
identifier: "v2.provider.list", identifier: "v2.provider.list",
summary: "List v2 providers", summary: "List v2 providers",
@@ -24,11 +26,14 @@ export const ProviderGroup = HttpApiGroup.make("v2.provider")
query: InstanceQuery, query: InstanceQuery,
success: ProviderV2.Info, success: ProviderV2.Info,
error: ApiNotFoundError, error: ApiNotFoundError,
}).annotateMerge(instanceQueryOpenApi).annotateMerge( })
.annotateMerge(instanceQueryOpenApi)
.annotateMerge(
OpenApi.annotations({ OpenApi.annotations({
identifier: "v2.provider.get", identifier: "v2.provider.get",
summary: "Get v2 provider", summary: "Get v2 provider",
description: "Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings.", description:
"Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings.",
}), }),
), ),
) )
+121 -62
View File
@@ -7610,7 +7610,27 @@
"get": { "get": {
"tags": ["v2 models"], "tags": ["v2 models"],
"operationId": "v2.model.list", "operationId": "v2.model.list",
"parameters": [], "parameters": [
{
"name": "instance",
"in": "query",
"schema": {
"type": "object",
"properties": {
"directory": {
"type": "string"
},
"workspace": {
"type": "string"
}
},
"additionalProperties": false
},
"required": false,
"style": "deepObject",
"explode": true
}
],
"responses": { "responses": {
"200": { "200": {
"description": "Success", "description": "Success",
@@ -7640,7 +7660,27 @@
"get": { "get": {
"tags": ["v2 providers"], "tags": ["v2 providers"],
"operationId": "v2.provider.list", "operationId": "v2.provider.list",
"parameters": [], "parameters": [
{
"name": "instance",
"in": "query",
"schema": {
"type": "object",
"properties": {
"directory": {
"type": "string"
},
"workspace": {
"type": "string"
}
},
"additionalProperties": false
},
"required": false,
"style": "deepObject",
"explode": true
}
],
"responses": { "responses": {
"200": { "200": {
"description": "Success", "description": "Success",
@@ -7678,6 +7718,25 @@
"type": "string" "type": "string"
}, },
"required": true "required": true
},
{
"name": "instance",
"in": "query",
"schema": {
"type": "object",
"properties": {
"directory": {
"type": "string"
},
"workspace": {
"type": "string"
}
},
"additionalProperties": false
},
"required": false,
"style": "deepObject",
"explode": true
} }
], ],
"responses": { "responses": {
@@ -9014,12 +9073,6 @@
{ {
"$ref": "#/components/schemas/EventSessionError" "$ref": "#/components/schemas/EventSessionError"
}, },
{
"$ref": "#/components/schemas/EventInstallationUpdated"
},
{
"$ref": "#/components/schemas/EventInstallationUpdate-available"
},
{ {
"$ref": "#/components/schemas/EventQuestionAsked" "$ref": "#/components/schemas/EventQuestionAsked"
}, },
@@ -9095,6 +9148,12 @@
{ {
"$ref": "#/components/schemas/EventPtyDeleted" "$ref": "#/components/schemas/EventPtyDeleted"
}, },
{
"$ref": "#/components/schemas/EventInstallationUpdated"
},
{
"$ref": "#/components/schemas/EventInstallationUpdate-available"
},
{ {
"$ref": "#/components/schemas/EventMessageUpdated" "$ref": "#/components/schemas/EventMessageUpdated"
}, },
@@ -11313,12 +11372,6 @@
{ {
"$ref": "#/components/schemas/EventSessionError" "$ref": "#/components/schemas/EventSessionError"
}, },
{
"$ref": "#/components/schemas/EventInstallationUpdated"
},
{
"$ref": "#/components/schemas/EventInstallationUpdate-available"
},
{ {
"$ref": "#/components/schemas/EventQuestionAsked" "$ref": "#/components/schemas/EventQuestionAsked"
}, },
@@ -11394,6 +11447,12 @@
{ {
"$ref": "#/components/schemas/EventPtyDeleted" "$ref": "#/components/schemas/EventPtyDeleted"
}, },
{
"$ref": "#/components/schemas/EventInstallationUpdated"
},
{
"$ref": "#/components/schemas/EventInstallationUpdate-available"
},
{ {
"$ref": "#/components/schemas/EventMessageUpdated" "$ref": "#/components/schemas/EventMessageUpdated"
}, },
@@ -16469,54 +16528,6 @@
"required": ["id", "type", "properties"], "required": ["id", "type", "properties"],
"additionalProperties": false "additionalProperties": false
}, },
"EventInstallationUpdated": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["installation.updated"]
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"],
"additionalProperties": false
}
},
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"EventInstallationUpdate-available": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["installation.update-available"]
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"],
"additionalProperties": false
}
},
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"EventQuestionAsked": { "EventQuestionAsked": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -17033,6 +17044,54 @@
"required": ["id", "type", "properties"], "required": ["id", "type", "properties"],
"additionalProperties": false "additionalProperties": false
}, },
"EventInstallationUpdated": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["installation.updated"]
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"],
"additionalProperties": false
}
},
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"EventInstallationUpdate-available": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["installation.update-available"]
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"],
"additionalProperties": false
}
},
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"EventMessageUpdated": { "EventMessageUpdated": {
"type": "object", "type": "object",
"properties": { "properties": {