diff --git a/docs/install/docker.md b/docs/install/docker.md index d112597d25..d20dd8db00 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -153,21 +153,21 @@ user. This keeps the attack surface small, but it means: If you want a more full-featured container, use these opt-in knobs: -1) **Persist `/home/node`** so browser downloads and tool caches survive: +1. **Persist `/home/node`** so browser downloads and tool caches survive: ```bash export OPENCLAW_HOME_VOLUME="openclaw_home" ./docker-setup.sh ``` -2) **Bake system deps into the image** (repeatable + persistent): +2. **Bake system deps into the image** (repeatable + persistent): ```bash export OPENCLAW_DOCKER_APT_PACKAGES="git curl jq" ./docker-setup.sh ``` -3) **Install Playwright browsers without `npx`** (avoids npm override conflicts): +3. **Install Playwright browsers without `npx`** (avoids npm override conflicts): ```bash docker compose run --rm openclaw-cli \ @@ -177,7 +177,7 @@ docker compose run --rm openclaw-cli \ If you need Playwright to install system deps, rebuild the image with `OPENCLAW_DOCKER_APT_PACKAGES` instead of using `--with-deps` at runtime. -4) **Persist Playwright browser downloads**: +4. **Persist Playwright browser downloads**: - Set `PLAYWRIGHT_BROWSERS_PATH=/home/node/.cache/ms-playwright` in `docker-compose.yml`. diff --git a/extensions/msteams/src/attachments.test.ts b/extensions/msteams/src/attachments.test.ts index 6f649f20d0..5de4b9a587 100644 --- a/extensions/msteams/src/attachments.test.ts +++ b/extensions/msteams/src/attachments.test.ts @@ -256,9 +256,9 @@ describe("msteams attachments", () => { const fetchMock = vi.fn(async (_url: string, opts?: RequestInit) => { const hasAuth = Boolean( opts && - typeof opts === "object" && - "headers" in opts && - (opts.headers as Record)?.Authorization, + typeof opts === "object" && + "headers" in opts && + (opts.headers as Record)?.Authorization, ); if (!hasAuth) { return new Response("forbidden", { status: 403 }); diff --git a/src/agents/pi-embedded-runner.createsystempromptoverride.test.ts b/src/agents/pi-embedded-runner.createsystempromptoverride.test.ts index d402a5b2ba..99eb77c032 100644 --- a/src/agents/pi-embedded-runner.createsystempromptoverride.test.ts +++ b/src/agents/pi-embedded-runner.createsystempromptoverride.test.ts @@ -101,10 +101,10 @@ const _readSessionMessages = async (sessionFile: string) => { describe("createSystemPromptOverride", () => { it("returns the override prompt trimmed", () => { const override = createSystemPromptOverride("OVERRIDE"); - expect(override).toBe("OVERRIDE"); + expect(override()).toBe("OVERRIDE"); }); it("returns an empty string for blank overrides", () => { const override = createSystemPromptOverride(" \n "); - expect(override).toBe(""); + expect(override()).toBe(""); }); }); diff --git a/src/agents/pi-tool-definition-adapter.ts b/src/agents/pi-tool-definition-adapter.ts index 6b97690393..eb867fa076 100644 --- a/src/agents/pi-tool-definition-adapter.ts +++ b/src/agents/pi-tool-definition-adapter.ts @@ -40,9 +40,9 @@ export function toToolDefinitions(tools: AnyAgentTool[]): ToolDefinition[] { execute: async ( toolCallId, params, - signal: AbortSignal | undefined, onUpdate: AgentToolUpdateCallback | undefined, _ctx, + signal?: AbortSignal, ): Promise> => { try { return await tool.execute(toolCallId, params, signal, onUpdate); @@ -91,9 +91,9 @@ export function toClientToolDefinitions( execute: async ( toolCallId, params, - _signal: AbortSignal | undefined, _onUpdate: AgentToolUpdateCallback | undefined, _ctx, + _signal?: AbortSignal, ): Promise> => { const outcome = await runBeforeToolCallHook({ toolName: func.name,