style: format tests and helpers

This commit is contained in:
Peter Steinberger
2026-01-04 14:57:50 +00:00
parent 557aa74ee8
commit c6b8235862
9 changed files with 28 additions and 15 deletions

View File

@@ -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", () => {

View File

@@ -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<string, string | number | { soft?: number; hard?: number }>;
seccompProfile?: string;
apparmorProfile?: string;
dns?: string[];

View File

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

View File

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