Fix biome lint/format on Phase 3 files

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 14:54:35 +00:00
parent c858cb816c
commit a9136440dc
No known key found for this signature in database
5 changed files with 14 additions and 16 deletions

View File

@ -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);

View File

@ -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.

View File

@ -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<ComputerUpdate["stage"], "preparing">,

View File

@ -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",
);

View File

@ -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";