Skip to content

Commit ac2fa66

Browse files
chore: generate
1 parent 3d6f90c commit ac2fa66

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

packages/console/core/src/key.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export namespace Key {
2525
.where(
2626
and(
2727
eq(KeyTable.workspaceID, Actor.workspace()),
28-
isNull(KeyTable.timeDeleted),
29-
...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
28+
isNull(KeyTable.timeDeleted),
29+
...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
3030
),
3131
)
3232
.orderBy(sql`${KeyTable.name} DESC`),
@@ -83,8 +83,8 @@ export namespace Key {
8383
.where(
8484
and(
8585
eq(KeyTable.id, input.id),
86-
eq(KeyTable.workspaceID, Actor.workspace()),
87-
...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
86+
eq(KeyTable.workspaceID, Actor.workspace()),
87+
...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
8888
),
8989
),
9090
)

packages/opencode/script/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ for (const item of targets) {
211211
execArgv: [`--user-agent=opencode/${Script.version}`, "--use-system-ca", "--"],
212212
windows: {},
213213
},
214-
files: (embeddedFileMap ? { "opencode-web-ui.gen.ts": embeddedFileMap } : {}),
214+
files: embeddedFileMap ? { "opencode-web-ui.gen.ts": embeddedFileMap } : {},
215215
entrypoints: [
216216
"./src/index.ts",
217217
parserWorker,

packages/opencode/src/cli/cmd/providers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ async function handlePluginAuth(plugin: { auth: PluginAuth }, provider: string,
4141
const method = await prompts.select({
4242
message: "Login method",
4343
options: plugin.auth.methods.map((x, index) => ({
44-
label: x.label,
45-
value: index.toString(),
46-
})),
44+
label: x.label,
45+
value: index.toString(),
46+
})),
4747
})
4848
if (prompts.isCancel(method)) throw new UI.CancelledError()
4949
index = parseInt(method)

packages/opencode/src/plugin/cloudflare.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import type { Hooks, PluginInput } from "@opencode-ai/plugin"
22

33
export async function CloudflareWorkersAuthPlugin(_input: PluginInput): Promise<Hooks> {
4-
const prompts = (!process.env.CLOUDFLARE_ACCOUNT_ID
5-
? [
6-
{
7-
type: "text" as const,
8-
key: "accountId",
9-
message: "Enter your Cloudflare Account ID",
10-
placeholder: "e.g. 1234567890abcdef1234567890abcdef",
11-
},
12-
]
13-
: [])
4+
const prompts = !process.env.CLOUDFLARE_ACCOUNT_ID
5+
? [
6+
{
7+
type: "text" as const,
8+
key: "accountId",
9+
message: "Enter your Cloudflare Account ID",
10+
placeholder: "e.g. 1234567890abcdef1234567890abcdef",
11+
},
12+
]
13+
: []
1414

1515
return {
1616
auth: {

0 commit comments

Comments
 (0)