Skip to content

Commit db29508

Browse files
author
lalalune
committed
fix(verify): biome auto-fix packages/app-core 6 format errors
1 parent caf97de commit db29508

6 files changed

Lines changed: 6 additions & 8 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function getRuntimeActionCapabilityNames(runtime: AgentRuntime): Set<string> {
205205

206206
function getRuntimePluginNames(runtime: AgentRuntime): Set<string> {
207207
return new Set(
208-
(runtime.plugins)
208+
runtime.plugins
209209
.map((plugin) => normalizeCapabilityName(plugin.name))
210210
.filter((name) => name.length > 0),
211211
);

packages/app-core/src/benchmark/lifeops-fake-backend.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,7 @@ export class LifeOpsFakeBackend {
13411341
throw new Error("MESSAGE/draft_reply requires messageId");
13421342
}
13431343
const parent = this.stores.email[parentId];
1344-
const threadId =
1345-
parent?.thread_id;
1344+
const threadId = parent?.thread_id;
13461345
const body = pickString(kw, ["body"], "");
13471346
const subject = parent
13481347
? `Re: ${parent.subject}`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ function isPlainRecord(value: unknown): value is Record<string, unknown> {
615615

616616
function compactJson(value: unknown, maxLength = 500): string {
617617
const raw =
618-
typeof value === "string" ? value : (JSON.stringify(value, null, 2));
618+
typeof value === "string" ? value : JSON.stringify(value, null, 2);
619619
return raw.length > maxLength ? `${raw.slice(0, maxLength)}...` : raw;
620620
}
621621

packages/app-core/src/cli/profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function takeValue(
1515
} {
1616
if (raw.includes("=")) {
1717
const [, value] = raw.split("=", 2);
18-
const trimmed = (value).trim();
18+
const trimmed = value.trim();
1919
return { value: trimmed || null, consumedNext: false };
2020
}
2121
const trimmed = (next ?? "").trim();

packages/app-core/src/runtime/mobile-safe-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ export function createMobileSafeVirtualFileSystemAdapter(
10521052
}
10531053
if (vfs.list) {
10541054
const entries = await vfs.list(".", { recursive: true });
1055-
const files = (entries).filter(
1055+
const files = entries.filter(
10561056
(entry) => (entry.kind ?? entry.type) === "file",
10571057
);
10581058
return {

packages/app-core/src/services/phrase-chunked-tts.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ export class PhraseChunkedTts {
144144
constructor(tts: TtsHandler, opts: PhraseChunkedTtsOptions = {}) {
145145
this.tts = tts;
146146
this.opts = opts;
147-
this.clock =
148-
opts.clock ?? (() => globalThis.performance?.now?.());
147+
this.clock = opts.clock ?? (() => globalThis.performance?.now?.());
149148
const Chunker = requirePhraseChunker();
150149
this.chunker = new Chunker(
151150
opts.chunker ?? { chunkOn: "punctuation" },

0 commit comments

Comments
 (0)