Skip to content

Commit 82d7937

Browse files
lalaluneclaude
andcommitted
chore(ci): biome --write batch — clear Quality (Extended) Format Check
A parallel agent's biome auto-format pass left ~90 files re-indented across the repo (extra tab dropped on mobile-device-bridge-bootstrap.ts let-statement at line 1199 — the one Format Check (biome) on 152e026 flagged as `plugin-capacitor-bridge#format:check` — plus matching whitespace fixes everywhere else biome found drift). This commit is the formatter pass with no semantic changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 152e026 commit 82d7937

93 files changed

Lines changed: 612 additions & 388 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/agent/src/api/chat-routes.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,9 @@ export async function generateChatResponse(
17571757
() => createChatGenerationTimeoutError(generationTimeoutMs),
17581758
() => {
17591759
generationTimedOut = true;
1760-
abortGeneration(createChatGenerationTimeoutError(generationTimeoutMs));
1760+
abortGeneration(
1761+
createChatGenerationTimeoutError(generationTimeoutMs),
1762+
);
17611763
},
17621764
),
17631765
);
@@ -1995,7 +1997,9 @@ Title:`;
19951997
} catch (err) {
19961998
const message = err instanceof Error ? err.message : String(err);
19971999
if (isAbortLikeError(err)) {
1998-
logger.info(`[eliza] Conversation title generation cancelled: ${message}`);
2000+
logger.info(
2001+
`[eliza] Conversation title generation cancelled: ${message}`,
2002+
);
19992003
} else {
20002004
logger.warn(`[eliza] Failed to generate conversation title: ${message}`);
20012005
}

packages/agent/src/api/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const computerUseModule = (await import(
44
handleSandboxRoute: (...args: unknown[]) => Promise<boolean>;
55
};
66
const signalModule = await import("@elizaos/plugin-signal");
7-
const whatsAppModule = (await import("@elizaos/plugin-whatsapp")) as unknown as {
7+
const whatsAppModule = (await import(
8+
"@elizaos/plugin-whatsapp"
9+
)) as unknown as {
810
applyWhatsAppQrOverride: (...args: unknown[]) => unknown;
911
handleWhatsAppRoute: (...args: unknown[]) => unknown;
1012
};

packages/agent/src/api/mobile-optional-routes.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import type http from "node:http";
22
import { readRequestBody, sendJson, sendJsonError } from "@elizaos/core";
33
import type { StreamVisualSettings } from "@elizaos/plugin-streaming";
4-
import { isMobilePlatform, normalizeDeploymentTargetConfig } from "@elizaos/shared";
4+
import {
5+
isMobilePlatform,
6+
normalizeDeploymentTargetConfig,
7+
} from "@elizaos/shared";
58
import { loadElizaConfig } from "../config/config.ts";
69

710
type StreamingSettingsModule = {
@@ -167,8 +170,7 @@ function getRuntimeModeFallbackSnapshot(): {
167170
deploymentRuntime,
168171
isRemoteController: deploymentRuntime === "remote",
169172
remoteApiBaseConfigured: Boolean(
170-
deploymentRuntime === "remote" &&
171-
deploymentTarget?.remoteApiBase?.trim(),
173+
deploymentRuntime === "remote" && deploymentTarget?.remoteApiBase?.trim(),
172174
),
173175
};
174176
}
@@ -239,7 +241,11 @@ export async function handleMobileOptionalRoutes(
239241
| { mode?: unknown }
240242
| undefined;
241243
if (body?.mode !== undefined && body.mode !== "off") {
242-
sendJsonError(res, "Mobile fallback only supports approval mode off", 400);
244+
sendJsonError(
245+
res,
246+
"Mobile fallback only supports approval mode off",
247+
400,
248+
);
243249
return true;
244250
}
245251
} catch (err) {

packages/agent/src/api/server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,11 +2705,11 @@ async function handleRequest(
27052705
? (runtime as IAgentRuntime)
27062706
: null,
27072707
),
2708-
recordHeartbeat: (runId) => appManager.recordHeartbeat(runId),
2709-
startStaleRunSweeper: (getRuntime) =>
2710-
appManager.startStaleRunSweeper(getRuntime),
2711-
getInfo: (pluginManager, name) =>
2712-
appManager.getInfo(pluginManager, name),
2708+
recordHeartbeat: (runId) => appManager.recordHeartbeat(runId),
2709+
startStaleRunSweeper: (getRuntime) =>
2710+
appManager.startStaleRunSweeper(getRuntime),
2711+
getInfo: (pluginManager, name) =>
2712+
appManager.getInfo(pluginManager, name),
27132713
} satisfies AppManagerLike,
27142714
getPluginManager: () => getPluginManagerForState(state),
27152715
parseBoundedLimit,

packages/agent/src/api/wallet-rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import {
33
isElizaCloudServiceSelectedInConfig,
44
migrateLegacyRuntimeConfig,
55
normalizeWalletRpcSelections,
6+
resolveCloudApiBaseUrl,
67
type WalletConfigUpdateRequest,
78
type WalletRpcChain,
89
type WalletRpcCredentialKey,
910
type WalletRpcSelections,
10-
resolveCloudApiBaseUrl,
1111
} from "@elizaos/shared";
1212
import type { ElizaConfig } from "../config/config.ts";
1313

packages/agent/src/runtime/eliza-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
*/
88

99
import type { IAgentRuntime, Plugin, ServiceClass } from "@elizaos/core";
10-
import type { CommandDefinition } from "@elizaos/plugin-commands";
1110
import {
1211
AgentEventService,
1312
logger,
1413
promoteSubactionsToActions,
1514
} from "@elizaos/core";
15+
import type { CommandDefinition } from "@elizaos/plugin-commands";
1616
import { compactConversationAction } from "../actions/compact-conversation.ts";
1717
import { contactAction } from "../actions/contact.ts";
1818
import { databaseAction } from "../actions/database.ts";

packages/app-core/src/api/automations-compat-routes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ async function buildAutomationNodeCatalog(
281281
availability: "enabled",
282282
}));
283283

284-
const runtimeProviderNodes: AutomationNodeDescriptor[] = (runtime.providers ?? [])
284+
const runtimeProviderNodes: AutomationNodeDescriptor[] = (
285+
runtime.providers ?? []
286+
)
285287
.slice()
286288
.filter((provider) => !BLOCKED_AUTOMATION_PROVIDER_NODES.has(provider.name))
287289
.sort((left, right) => left.name.localeCompare(right.name))

packages/app-core/src/benchmark/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,7 @@ function formatContextAsText(ctx: BenchmarkContext): string {
744744
benchmark === "loca_bench" || benchmark === "loca-bench";
745745
const isWebShopBenchmark =
746746
benchmark === "webshop" || benchmark === "web-shop";
747-
const isTauBenchmark =
748-
benchmark === "tau_bench" || benchmark === "tau-bench";
747+
const isTauBenchmark = benchmark === "tau_bench" || benchmark === "tau-bench";
749748
const isConversationalBenchmark = new Set([
750749
"woobench",
751750
"woo-bench",
@@ -1205,7 +1204,8 @@ const LIFEOPS_BENCHMARK_TOOL_PARAMETERS: ActionParameter[] = [
12051204
},
12061205
{
12071206
name: "details",
1208-
description: "Nested LifeOps action details. Prefer top-level fields when the tool manifest asks for them.",
1207+
description:
1208+
"Nested LifeOps action details. Prefer top-level fields when the tool manifest asks for them.",
12091209
required: false,
12101210
schema: {
12111211
type: "object",

packages/app-core/src/benchmark/server-utils.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,19 @@ describe("benchmark plugin LifeOps tool capture", () => {
351351
const provider = plugin.providers?.find(
352352
(candidate) => candidate.name === "ELIZA_BENCHMARK",
353353
);
354-
const rendered = await provider?.get?.({} as never, {} as never, {} as never);
354+
const rendered = await provider?.get?.(
355+
{} as never,
356+
{} as never,
357+
{} as never,
358+
);
355359

356360
expect(rendered?.text).toContain(
357361
"You have access to the benchmark's fake LifeOps calendar and inbox",
358362
);
359363
expect(rendered?.text).toContain("CALENDAR_CHECK_AVAILABILITY");
360-
expect(rendered?.text).toContain("MEMORY is not a LifeOpsBench executor tool");
364+
expect(rendered?.text).toContain(
365+
"MEMORY is not a LifeOpsBench executor tool",
366+
);
361367
expect(rendered?.text).toContain("ARCHIVE_THREAD with threadId");
362368

363369
setBenchmarkContext(null);

packages/app-core/src/benchmark/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import crypto from "node:crypto";
22
import http from "node:http";
33
import path from "node:path";
44
import { pathToFileURL } from "node:url";
5-
import { CORE_PLUGINS } from "../../../agent/src/runtime/core-plugins.ts";
6-
import { createElizaPlugin } from "../../../agent/src/runtime/eliza-plugin.ts";
75
import {
86
AgentRuntime,
97
type Content,
@@ -15,6 +13,8 @@ import {
1513
stringToUuid,
1614
} from "@elizaos/core";
1715
import dotenv from "dotenv";
16+
import { CORE_PLUGINS } from "../../../agent/src/runtime/core-plugins.ts";
17+
import { createElizaPlugin } from "../../../agent/src/runtime/eliza-plugin.ts";
1818
import { autoWireCerebras } from "./cerebras-autowire.js";
1919
import {
2020
LifeOpsBenchHandler,
@@ -100,7 +100,7 @@ function isBfclBenchmarkName(benchmark: string): boolean {
100100
return benchmark.trim().toLowerCase() === "bfcl";
101101
}
102102

103-
function isTauBenchmarkName(benchmark: string): boolean {
103+
function _isTauBenchmarkName(benchmark: string): boolean {
104104
const normalized = benchmark.trim().toLowerCase();
105105
return normalized === "tau_bench" || normalized === "tau-bench";
106106
}
@@ -177,7 +177,7 @@ function normalizeBfclNativeMessages(
177177
];
178178
}
179179

180-
function normalizeTauNativeMessages(
180+
function _normalizeTauNativeMessages(
181181
text: string,
182182
context: Record<string, unknown>,
183183
): Array<Record<string, unknown>> {

0 commit comments

Comments
 (0)