From a9136440dc6b1ede535c84ded0ba37944400e8d0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 7 Oct 2026 14:54:35 +0000 Subject: [PATCH] Fix biome lint/format on Phase 3 files Co-authored-by: cynarAI --- apps/api/src/router.ts | 8 ++------ apps/web/src/lib/bot-persona.ts | 2 +- packages/adapters/src/computer-lifecycle.ts | 2 +- packages/adapters/src/computer-support.test.ts | 4 +--- packages/adapters/src/executor.ts | 14 +++++++++----- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/api/src/router.ts b/apps/api/src/router.ts index b9c73aa..9952162 100644 --- a/apps/api/src/router.ts +++ b/apps/api/src/router.ts @@ -1008,9 +1008,7 @@ export function createRouter(deps: RouterDeps) { signupAllowlist: (input.signupAllowlist ?? []).join(","), signupPolicyInitialized: true, computerHost: input.computerHost ?? undefined, - ...(ownerGithubTokenCipher !== undefined - ? { ownerGithubTokenCipher } - : {}), + ...(ownerGithubTokenCipher !== undefined ? { ownerGithubTokenCipher } : {}), }, update: { ...(input.signupsEnabled === undefined ? {} : { signupsEnabled: input.signupsEnabled }), @@ -1019,9 +1017,7 @@ export function createRouter(deps: RouterDeps) { ? {} : { signupPolicyInitialized: true }), ...(input.computerHost === undefined ? {} : { computerHost: input.computerHost }), - ...(ownerGithubTokenCipher !== undefined - ? { ownerGithubTokenCipher } - : {}), + ...(ownerGithubTokenCipher !== undefined ? { ownerGithubTokenCipher } : {}), }, }); return deploymentDto(deps.prisma, deps.env.sandboxProvider); diff --git a/apps/web/src/lib/bot-persona.ts b/apps/web/src/lib/bot-persona.ts index 3cb2bdf..914af4b 100644 --- a/apps/web/src/lib/bot-persona.ts +++ b/apps/web/src/lib/bot-persona.ts @@ -1,10 +1,10 @@ import { msg } from "@lingui/core/macro"; import type { ThreadSnapshot } from "@rakazo/contracts"; -import { i18n } from "./i18n"; import { type EvooPose, mapPersonaArchetypeToIdlePose, mapVoicePhaseToPose } from "@rakazo/ui-web"; import type { StagePresencePhase } from "../components/stage/StageHero"; import type { VoicePhase } from "../components/voice/VoiceStage"; import type { GroupSpark } from "./group-stage"; +import { i18n } from "./i18n"; /** * Template-aligned archetypes — derived from bot fields, not a DB column. diff --git a/packages/adapters/src/computer-lifecycle.ts b/packages/adapters/src/computer-lifecycle.ts index f51dbd7..812875e 100644 --- a/packages/adapters/src/computer-lifecycle.ts +++ b/packages/adapters/src/computer-lifecycle.ts @@ -20,13 +20,13 @@ import { hasActiveComputerControl, } from "./computer-control.js"; import { toComputerRef } from "./computer-support.js"; -import { resolveProjectWorkspaceBind } from "./project-workspace-bind.js"; import { checkpointComputerWorkspace, ensureComputerWorkspaceLayout, restoreComputerWorkspace, } from "./computer-workspace.js"; import { resolveAgentHomePath } from "./home.js"; +import { resolveProjectWorkspaceBind } from "./project-workspace-bind.js"; type ComputerUpdateProgress = ( stage: Exclude, diff --git a/packages/adapters/src/computer-support.test.ts b/packages/adapters/src/computer-support.test.ts index 47378f9..1b54a30 100644 --- a/packages/adapters/src/computer-support.test.ts +++ b/packages/adapters/src/computer-support.test.ts @@ -31,9 +31,7 @@ describe("Team Computer bot folders", () => { ); expect(resolveBotWorkspacePath("team", "bot-1", "/root-note.md")).toBe("root-note.md"); expect(resolveBotWorkspacePath("team", "bot-1", "/shared/brief.md")).toBe("shared/brief.md"); - expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/notes/x.md")).toBe( - "notes/x.md", - ); + expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/notes/x.md")).toBe("notes/x.md"); expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/project/src/main.ts")).toBe( "project/src/main.ts", ); diff --git a/packages/adapters/src/executor.ts b/packages/adapters/src/executor.ts index 40f6ac2..dfe58a1 100644 --- a/packages/adapters/src/executor.ts +++ b/packages/adapters/src/executor.ts @@ -125,9 +125,6 @@ import { formatAgentEnvironmentInstruction, redactAgentCommandResult, } from "./agent-environment.js"; -import { ownerGithubEnvironmentForRun } from "./deployment-github-token.js"; -import { evaluateGitShellPolicy } from "./git-shell-policy.js"; -import { runStallWithoutProgressMs } from "./pi-model-config.js"; import { buildApprovalAskBlock } from "./approval-ask.js"; import { approvalPausedToolResult, @@ -240,6 +237,7 @@ import { loadDelegatedTaskInstruction, syncDelegatedTaskRun, } from "./delegated-tasks.js"; +import { ownerGithubEnvironmentForRun } from "./deployment-github-token.js"; import { resolveDeploymentModel } from "./deployment-model.js"; import { missingTurnImagesInstruction, @@ -289,6 +287,7 @@ import { } from "./executor-tools.js"; import type { ExecutorDeps } from "./executor-types.js"; import { loadCurrentTurnImages, selectRunConnections } from "./executor-utils.js"; +import { evaluateGitShellPolicy } from "./git-shell-policy.js"; import { handoffToGroupBot, loadGroupContext } from "./group-handoff.js"; import { COMPACTION_BATCH_SIZE, @@ -336,6 +335,7 @@ import { import { notifyUserFromTool } from "./notify-user-tool.js"; import { toOAuthCredential } from "./pi-credentials.js"; import { LOCAL_PROVIDER_ID, localTierModels } from "./pi-local-provider.js"; +import { runStallWithoutProgressMs } from "./pi-model-config.js"; import { parseModelSecret, resolveModelAuth, @@ -2046,7 +2046,9 @@ export function createRunExecutor(deps: ExecutorDeps) { toolRequiresApproval(name, viaConnector) || gitShellNeedsApproval; const requiresMandatoryApproval = - requiresUnattendedApproval || toolRequiresExplicitApproval(name) || gitShellNeedsApproval; + requiresUnattendedApproval || + toolRequiresExplicitApproval(name) || + gitShellNeedsApproval; const connectorKind = connectorKindFromToolName( name, connectedPlugins.map((plugin) => plugin.provider), @@ -2082,7 +2084,9 @@ export function createRunExecutor(deps: ExecutorDeps) { checkerConfigured, }); let reviewReason: string | undefined = - gitShellNeedsApproval && typeof gitShellPolicy === "object" && "reason" in gitShellPolicy + gitShellNeedsApproval && + typeof gitShellPolicy === "object" && + "reason" in gitShellPolicy ? gitShellPolicy.reason : undefined; let gateDecision: "ask" | "allow" = plan === "ask" ? "ask" : "allow";