chore: apply biome formatting

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 08:52:26 +00:00
parent 751967a8e1
commit 18ace6b1c5
No known key found for this signature in database
4 changed files with 10 additions and 14 deletions

View File

@ -350,11 +350,9 @@ export async function destroySpaceSandboxes(
if (!computer.providerRef) continue;
const ref = toComputerRef(computer);
await deps.sandbox.destroy(ref, { ...context, botId: computer.homeKey }).catch(() => undefined);
await removeAgentHomeDirectory(
deps.home,
computer.homeKey,
deps.dataDir ?? "./data",
).catch(() => undefined);
await removeAgentHomeDirectory(deps.home, computer.homeKey, deps.dataDir ?? "./data").catch(
() => undefined,
);
}
if (computers.length) {
await deps.prisma.computer.updateMany({
@ -483,11 +481,9 @@ export async function destroyBot(
}),
);
if (dedicated) {
await removeAgentHomeDirectory(
deps.home,
dedicated.homeKey,
deps.dataDir ?? "./data",
).catch(() => undefined);
await removeAgentHomeDirectory(deps.home, dedicated.homeKey, deps.dataDir ?? "./data").catch(
() => undefined,
);
}
const artifactStore = deps.artifacts;
if (artifactStore) {

View File

@ -1,6 +1,6 @@
import { describe, expect, it, vi } from "vitest";
import type { PrismaClient } from "./client.js";
import { spaceIdsForSandboxTeardownAfterAccountDelete } from "./account-delete.js";
import type { PrismaClient } from "./client.js";
describe("spaceIdsForSandboxTeardownAfterAccountDelete", () => {
it("includes solely-owned spaces and skips shared ones", async () => {

View File

@ -1,7 +1,7 @@
import { mkdirSync, mkdtempSync, existsSync } from "node:fs";
import { existsSync, mkdirSync, mkdtempSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";
import { ComposioEmulator, FakeSandboxProvider } from "@rakazo/adapters";
import { ComposioEmulator, type FakeSandboxProvider } from "@rakazo/adapters";
import type { Bot, Space } from "@rakazo/contracts";
import { computerHomeKey, ensureComputerRecord } from "@rakazo/db";
import { afterAll, beforeAll, describe, expect, it } from "vitest";

View File

@ -16,10 +16,10 @@ import {
import { ACTIVE_RUN_STATUSES, ONCE_ROUTINE_CRON } from "@rakazo/core";
import {
appendEvent,
computerHomeKey,
createRepos,
createThreadEvents,
createThreadMessage,
computerHomeKey,
ensureComputerRecord,
ensureMainBot,
joinMainConversation,