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;
|
if (!computer.providerRef) continue;
|
||||||
const ref = toComputerRef(computer);
|
const ref = toComputerRef(computer);
|
||||||
await deps.sandbox.destroy(ref, { ...context, botId: computer.homeKey }).catch(() => undefined);
|
await deps.sandbox.destroy(ref, { ...context, botId: computer.homeKey }).catch(() => undefined);
|
||||||
await removeAgentHomeDirectory(
|
await removeAgentHomeDirectory(deps.home, computer.homeKey, deps.dataDir ?? "./data").catch(
|
||||||
deps.home,
|
() => undefined,
|
||||||
computer.homeKey,
|
);
|
||||||
deps.dataDir ?? "./data",
|
|
||||||
).catch(() => undefined);
|
|
||||||
}
|
}
|
||||||
if (computers.length) {
|
if (computers.length) {
|
||||||
await deps.prisma.computer.updateMany({
|
await deps.prisma.computer.updateMany({
|
||||||
@ -483,11 +481,9 @@ export async function destroyBot(
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
if (dedicated) {
|
if (dedicated) {
|
||||||
await removeAgentHomeDirectory(
|
await removeAgentHomeDirectory(deps.home, dedicated.homeKey, deps.dataDir ?? "./data").catch(
|
||||||
deps.home,
|
() => undefined,
|
||||||
dedicated.homeKey,
|
);
|
||||||
deps.dataDir ?? "./data",
|
|
||||||
).catch(() => undefined);
|
|
||||||
}
|
}
|
||||||
const artifactStore = deps.artifacts;
|
const artifactStore = deps.artifacts;
|
||||||
if (artifactStore) {
|
if (artifactStore) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, it, vi } from "vitest";
|
import { describe, expect, it, vi } from "vitest";
|
||||||
import type { PrismaClient } from "./client.js";
|
|
||||||
import { spaceIdsForSandboxTeardownAfterAccountDelete } from "./account-delete.js";
|
import { spaceIdsForSandboxTeardownAfterAccountDelete } from "./account-delete.js";
|
||||||
|
import type { PrismaClient } from "./client.js";
|
||||||
|
|
||||||
describe("spaceIdsForSandboxTeardownAfterAccountDelete", () => {
|
describe("spaceIdsForSandboxTeardownAfterAccountDelete", () => {
|
||||||
it("includes solely-owned spaces and skips shared ones", async () => {
|
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 { tmpdir } from "node:os";
|
||||||
import path from "node:path";
|
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 type { Bot, Space } from "@rakazo/contracts";
|
||||||
import { computerHomeKey, ensureComputerRecord } from "@rakazo/db";
|
import { computerHomeKey, ensureComputerRecord } from "@rakazo/db";
|
||||||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||||
|
|||||||
@ -16,10 +16,10 @@ import {
|
|||||||
import { ACTIVE_RUN_STATUSES, ONCE_ROUTINE_CRON } from "@rakazo/core";
|
import { ACTIVE_RUN_STATUSES, ONCE_ROUTINE_CRON } from "@rakazo/core";
|
||||||
import {
|
import {
|
||||||
appendEvent,
|
appendEvent,
|
||||||
|
computerHomeKey,
|
||||||
createRepos,
|
createRepos,
|
||||||
createThreadEvents,
|
createThreadEvents,
|
||||||
createThreadMessage,
|
createThreadMessage,
|
||||||
computerHomeKey,
|
|
||||||
ensureComputerRecord,
|
ensureComputerRecord,
|
||||||
ensureMainBot,
|
ensureMainBot,
|
||||||
joinMainConversation,
|
joinMainConversation,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user