summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/console/core/src/key.ts8
-rwxr-xr-xpackages/opencode/script/build.ts2
-rw-r--r--packages/opencode/src/cli/cmd/providers.ts6
-rw-r--r--packages/opencode/src/plugin/cloudflare.ts20
4 files changed, 18 insertions, 18 deletions
diff --git a/packages/console/core/src/key.ts b/packages/console/core/src/key.ts
index d1aae1524..aef4298c9 100644
--- a/packages/console/core/src/key.ts
+++ b/packages/console/core/src/key.ts
@@ -25,8 +25,8 @@ export namespace Key {
.where(
and(
eq(KeyTable.workspaceID, Actor.workspace()),
- isNull(KeyTable.timeDeleted),
- ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
+ isNull(KeyTable.timeDeleted),
+ ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
),
)
.orderBy(sql`${KeyTable.name} DESC`),
@@ -83,8 +83,8 @@ export namespace Key {
.where(
and(
eq(KeyTable.id, input.id),
- eq(KeyTable.workspaceID, Actor.workspace()),
- ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
+ eq(KeyTable.workspaceID, Actor.workspace()),
+ ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]),
),
),
)
diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts
index d2628974f..5aa14d52c 100755
--- a/packages/opencode/script/build.ts
+++ b/packages/opencode/script/build.ts
@@ -211,7 +211,7 @@ for (const item of targets) {
execArgv: [`--user-agent=opencode/${Script.version}`, "--use-system-ca", "--"],
windows: {},
},
- files: (embeddedFileMap ? { "opencode-web-ui.gen.ts": embeddedFileMap } : {}),
+ files: embeddedFileMap ? { "opencode-web-ui.gen.ts": embeddedFileMap } : {},
entrypoints: [
"./src/index.ts",
parserWorker,
diff --git a/packages/opencode/src/cli/cmd/providers.ts b/packages/opencode/src/cli/cmd/providers.ts
index 06f9fdf1d..6ab927e25 100644
--- a/packages/opencode/src/cli/cmd/providers.ts
+++ b/packages/opencode/src/cli/cmd/providers.ts
@@ -41,9 +41,9 @@ async function handlePluginAuth(plugin: { auth: PluginAuth }, provider: string,
const method = await prompts.select({
message: "Login method",
options: plugin.auth.methods.map((x, index) => ({
- label: x.label,
- value: index.toString(),
- })),
+ label: x.label,
+ value: index.toString(),
+ })),
})
if (prompts.isCancel(method)) throw new UI.CancelledError()
index = parseInt(method)
diff --git a/packages/opencode/src/plugin/cloudflare.ts b/packages/opencode/src/plugin/cloudflare.ts
index 267d1ed2f..2ccf5168d 100644
--- a/packages/opencode/src/plugin/cloudflare.ts
+++ b/packages/opencode/src/plugin/cloudflare.ts
@@ -1,16 +1,16 @@
import type { Hooks, PluginInput } from "@opencode-ai/plugin"
export async function CloudflareWorkersAuthPlugin(_input: PluginInput): Promise<Hooks> {
- const prompts = (!process.env.CLOUDFLARE_ACCOUNT_ID
- ? [
- {
- type: "text" as const,
- key: "accountId",
- message: "Enter your Cloudflare Account ID",
- placeholder: "e.g. 1234567890abcdef1234567890abcdef",
- },
- ]
- : [])
+ const prompts = !process.env.CLOUDFLARE_ACCOUNT_ID
+ ? [
+ {
+ type: "text" as const,
+ key: "accountId",
+ message: "Enter your Cloudflare Account ID",
+ placeholder: "e.g. 1234567890abcdef1234567890abcdef",
+ },
+ ]
+ : []
return {
auth: {