chore: apply biome formatting
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
751967a8e1
commit
18ace6b1c5
@ -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) {
|
||||
|
||||
@ -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 () => {
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user