Skip to content

Commit 47fa496

Browse files
committed
chore: generate
1 parent d77cbf9 commit 47fa496

7 files changed

Lines changed: 53 additions & 135 deletions

File tree

packages/app/src/context/command.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ export function formatKeybind(config: string): string {
142142
space: "Space",
143143
}
144144
const key = kb.key.toLowerCase()
145-
const displayKey =
146-
keys[key] ?? (key.length === 1 ? key.toUpperCase() : key.charAt(0).toUpperCase() + key.slice(1))
145+
const displayKey = keys[key] ?? (key.length === 1 ? key.toUpperCase() : key.charAt(0).toUpperCase() + key.slice(1))
147146
parts.push(displayKey)
148147
}
149148

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"typescript": "catalog:",
2626
"@typescript/native-preview": "catalog:"
2727
}
28-
}
28+
}

packages/sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"publishConfig": {
3131
"directory": "dist"
3232
}
33-
}
33+
}

packages/sdk/js/src/v2/gen/sdk.gen.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ import type {
3232
FindSymbolsResponses,
3333
FindTextResponses,
3434
FormatterStatusResponses,
35-
GlobalConfigGetResponses,
36-
GlobalConfigUpdateErrors,
37-
GlobalConfigUpdateResponses,
3835
GlobalDisposeResponses,
3936
GlobalEventResponses,
4037
GlobalHealthResponses,
@@ -252,42 +249,6 @@ export class Global extends HeyApiClient {
252249
...options,
253250
})
254251
}
255-
256-
/**
257-
* Get global configuration
258-
*
259-
* Retrieve the global OpenCode configuration settings and preferences.
260-
*/
261-
public configGet<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
262-
return (options?.client ?? this.client).get<GlobalConfigGetResponses, unknown, ThrowOnError>({
263-
url: "/global/config",
264-
...options,
265-
})
266-
}
267-
268-
/**
269-
* Update global configuration
270-
*
271-
* Update global OpenCode configuration settings and preferences.
272-
*/
273-
public configUpdate<ThrowOnError extends boolean = false>(
274-
parameters?: {
275-
config?: Config2
276-
},
277-
options?: Options<never, ThrowOnError>,
278-
) {
279-
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }])
280-
return (options?.client ?? this.client).patch<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError>({
281-
url: "/global/config",
282-
...options,
283-
...params,
284-
headers: {
285-
"Content-Type": "application/json",
286-
...options?.headers,
287-
...params.headers,
288-
},
289-
})
290-
}
291252
}
292253

293254
export class Project extends HeyApiClient {

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 16 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ export type EventServerInstanceDisposed = {
4848
}
4949
}
5050

51+
export type EventServerConnected = {
52+
type: "server.connected"
53+
properties: {
54+
[key: string]: unknown
55+
}
56+
}
57+
58+
export type EventGlobalDisposed = {
59+
type: "global.disposed"
60+
properties: {
61+
[key: string]: unknown
62+
}
63+
}
64+
5165
export type EventLspClientDiagnostics = {
5266
type: "lsp.client.diagnostics"
5367
properties: {
@@ -846,25 +860,13 @@ export type EventPtyDeleted = {
846860
}
847861
}
848862

849-
export type EventGlobalDisposed = {
850-
type: "global.disposed"
851-
properties: {
852-
[key: string]: unknown
853-
}
854-
}
855-
856-
export type EventServerConnected = {
857-
type: "server.connected"
858-
properties: {
859-
[key: string]: unknown
860-
}
861-
}
862-
863863
export type Event =
864864
| EventInstallationUpdated
865865
| EventInstallationUpdateAvailable
866866
| EventProjectUpdated
867867
| EventServerInstanceDisposed
868+
| EventServerConnected
869+
| EventGlobalDisposed
868870
| EventLspClientDiagnostics
869871
| EventLspUpdated
870872
| EventFileEdited
@@ -899,8 +901,6 @@ export type Event =
899901
| EventPtyUpdated
900902
| EventPtyExited
901903
| EventPtyDeleted
902-
| EventGlobalDisposed
903-
| EventServerConnected
904904

905905
export type GlobalEvent = {
906906
directory: string
@@ -2189,47 +2189,6 @@ export type GlobalDisposeResponses = {
21892189

21902190
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses]
21912191

2192-
export type GlobalConfigGetData = {
2193-
body?: never
2194-
path?: never
2195-
query?: never
2196-
url: "/global/config"
2197-
}
2198-
2199-
export type GlobalConfigGetResponses = {
2200-
/**
2201-
* Global config
2202-
*/
2203-
200: Config
2204-
}
2205-
2206-
export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses]
2207-
2208-
export type GlobalConfigUpdateData = {
2209-
body?: Config
2210-
path?: never
2211-
query?: never
2212-
url: "/global/config"
2213-
}
2214-
2215-
export type GlobalConfigUpdateErrors = {
2216-
/**
2217-
* Bad request
2218-
*/
2219-
400: BadRequestError
2220-
}
2221-
2222-
export type GlobalConfigUpdateError = GlobalConfigUpdateErrors[keyof GlobalConfigUpdateErrors]
2223-
2224-
export type GlobalConfigUpdateResponses = {
2225-
/**
2226-
* Successfully updated global config
2227-
*/
2228-
200: Config
2229-
}
2230-
2231-
export type GlobalConfigUpdateResponse = GlobalConfigUpdateResponses[keyof GlobalConfigUpdateResponses]
2232-
22332192
export type ProjectListData = {
22342193
body?: never
22352194
path?: never

packages/sdk/openapi.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5863,6 +5863,34 @@
58635863
},
58645864
"required": ["type", "properties"]
58655865
},
5866+
"Event.server.connected": {
5867+
"type": "object",
5868+
"properties": {
5869+
"type": {
5870+
"type": "string",
5871+
"const": "server.connected"
5872+
},
5873+
"properties": {
5874+
"type": "object",
5875+
"properties": {}
5876+
}
5877+
},
5878+
"required": ["type", "properties"]
5879+
},
5880+
"Event.global.disposed": {
5881+
"type": "object",
5882+
"properties": {
5883+
"type": {
5884+
"type": "string",
5885+
"const": "global.disposed"
5886+
},
5887+
"properties": {
5888+
"type": "object",
5889+
"properties": {}
5890+
}
5891+
},
5892+
"required": ["type", "properties"]
5893+
},
58665894
"Event.lsp.client.diagnostics": {
58675895
"type": "object",
58685896
"properties": {
@@ -8075,34 +8103,6 @@
80758103
},
80768104
"required": ["type", "properties"]
80778105
},
8078-
"Event.global.disposed": {
8079-
"type": "object",
8080-
"properties": {
8081-
"type": {
8082-
"type": "string",
8083-
"const": "global.disposed"
8084-
},
8085-
"properties": {
8086-
"type": "object",
8087-
"properties": {}
8088-
}
8089-
},
8090-
"required": ["type", "properties"]
8091-
},
8092-
"Event.server.connected": {
8093-
"type": "object",
8094-
"properties": {
8095-
"type": {
8096-
"type": "string",
8097-
"const": "server.connected"
8098-
},
8099-
"properties": {
8100-
"type": "object",
8101-
"properties": {}
8102-
}
8103-
},
8104-
"required": ["type", "properties"]
8105-
},
81068106
"Event": {
81078107
"anyOf": [
81088108
{
@@ -8117,6 +8117,12 @@
81178117
{
81188118
"$ref": "#/components/schemas/Event.server.instance.disposed"
81198119
},
8120+
{
8121+
"$ref": "#/components/schemas/Event.server.connected"
8122+
},
8123+
{
8124+
"$ref": "#/components/schemas/Event.global.disposed"
8125+
},
81208126
{
81218127
"$ref": "#/components/schemas/Event.lsp.client.diagnostics"
81228128
},
@@ -8218,12 +8224,6 @@
82188224
},
82198225
{
82208226
"$ref": "#/components/schemas/Event.pty.deleted"
8221-
},
8222-
{
8223-
"$ref": "#/components/schemas/Event.global.disposed"
8224-
},
8225-
{
8226-
"$ref": "#/components/schemas/Event.server.connected"
82278227
}
82288228
]
82298229
},

packages/ui/src/components/select.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,3 @@
134134
transform: scale(1);
135135
}
136136
}
137-

0 commit comments

Comments
 (0)