diff --git a/src/agents/sandbox-create-args.test.ts b/src/agents/sandbox-create-args.test.ts index 5c1bae377..ee8bbcdbc 100644 --- a/src/agents/sandbox-create-args.test.ts +++ b/src/agents/sandbox-create-args.test.ts @@ -1,9 +1,6 @@ import { describe, expect, it } from "vitest"; -import { - buildSandboxCreateArgs, - type SandboxDockerConfig, -} from "./sandbox.js"; +import { buildSandboxCreateArgs, type SandboxDockerConfig } from "./sandbox.js"; describe("buildSandboxCreateArgs", () => { it("includes hardening and resource flags", () => { diff --git a/src/agents/sandbox.ts b/src/agents/sandbox.ts index 08f0ff3b6..bb411dc10 100644 --- a/src/agents/sandbox.ts +++ b/src/agents/sandbox.ts @@ -60,10 +60,7 @@ export type SandboxDockerConfig = { memory?: string | number; memorySwap?: string | number; cpus?: number; - ulimits?: Record< - string, - string | number | { soft?: number; hard?: number } - >; + ulimits?: Record; seccompProfile?: string; apparmorProfile?: string; dns?: string[]; diff --git a/src/agents/skills.test.ts b/src/agents/skills.test.ts index f3498c2e9..51922f81c 100644 --- a/src/agents/skills.test.ts +++ b/src/agents/skills.test.ts @@ -219,7 +219,8 @@ describe("buildWorkspaceSkillsPrompt", () => { dir: path.join(skillsDir, "anybin-skill"), name: "anybin-skill", description: "Needs any bin", - metadata: '{"clawdbot":{"requires":{"anyBins":["missingbin","fakebin"]}}}', + metadata: + '{"clawdbot":{"requires":{"anyBins":["missingbin","fakebin"]}}}', }); await writeSkill({ dir: path.join(skillsDir, "config-skill"), diff --git a/src/agents/skills.ts b/src/agents/skills.ts index 87461cb58..300d75e71 100644 --- a/src/agents/skills.ts +++ b/src/agents/skills.ts @@ -289,7 +289,9 @@ function resolveClawdbotMetadata( const osRaw = normalizeStringList(clawdbotObj.os); return { always: - typeof clawdbotObj.always === "boolean" ? clawdbotObj.always : undefined, + typeof clawdbotObj.always === "boolean" + ? clawdbotObj.always + : undefined, emoji: typeof clawdbotObj.emoji === "string" ? clawdbotObj.emoji : undefined, homepage: diff --git a/src/auto-reply/status.test.ts b/src/auto-reply/status.test.ts index 52728ece8..ca3c85715 100644 --- a/src/auto-reply/status.test.ts +++ b/src/auto-reply/status.test.ts @@ -83,7 +83,12 @@ describe("buildStatusMessage", () => { "./status.js" ); - const storePath = path.join(dir, ".clawdbot", "sessions", "sessions.json"); + const storePath = path.join( + dir, + ".clawdbot", + "sessions", + "sessions.json", + ); const sessionId = "sess-1"; const logPath = path.join( dir, diff --git a/src/gateway/server.models-voicewake.test.ts b/src/gateway/server.models-voicewake.test.ts index 2c21c9dca..00fc69cb3 100644 --- a/src/gateway/server.models-voicewake.test.ts +++ b/src/gateway/server.models-voicewake.test.ts @@ -21,7 +21,9 @@ describe("gateway server models + voicewake", () => { "voicewake.get returns defaults and voicewake.set broadcasts", { timeout: 15_000 }, async () => { - const homeDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-home-")); + const homeDir = await fs.mkdtemp( + path.join(os.tmpdir(), "clawdbot-home-"), + ); const prevHome = process.env.HOME; process.env.HOME = homeDir; diff --git a/src/infra/system-presence.ts b/src/infra/system-presence.ts index a3744a11b..81114990f 100644 --- a/src/infra/system-presence.ts +++ b/src/infra/system-presence.ts @@ -57,7 +57,9 @@ function initSelfPresence() { const host = os.hostname(); const ip = resolvePrimaryIPv4() ?? undefined; const version = - process.env.CLAWDBOT_VERSION ?? process.env.npm_package_version ?? "unknown"; + process.env.CLAWDBOT_VERSION ?? + process.env.npm_package_version ?? + "unknown"; const modelIdentifier = (() => { const p = os.platform(); if (p === "darwin") { diff --git a/src/logger.test.ts b/src/logger.test.ts index 6dea8d503..dfea9af90 100644 --- a/src/logger.test.ts +++ b/src/logger.test.ts @@ -91,7 +91,10 @@ describe("logger helpers", () => { }); function pathForTest() { - const file = path.join(os.tmpdir(), `clawdbot-log-${crypto.randomUUID()}.log`); + const file = path.join( + os.tmpdir(), + `clawdbot-log-${crypto.randomUUID()}.log`, + ); fs.mkdirSync(path.dirname(file), { recursive: true }); return file; } diff --git a/src/web/session.test.ts b/src/web/session.test.ts index eff62109f..1f2c29725 100644 --- a/src/web/session.test.ts +++ b/src/web/session.test.ts @@ -192,7 +192,11 @@ describe("web session", () => { it("rotates creds backup when creds.json is valid JSON", async () => { const credsSuffix = path.join(".clawdbot", "credentials", "creds.json"); - const backupSuffix = path.join(".clawdbot", "credentials", "creds.json.bak"); + const backupSuffix = path.join( + ".clawdbot", + "credentials", + "creds.json.bak", + ); const copySpy = vi .spyOn(fsSync, "copyFileSync")