Skip to content

Commit 89a4746

Browse files
committed
style: biome formatting (release lint clean, no logic change)
1 parent fd1ba2d commit 89a4746

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

packages/cli/src/lib/diagnostics-opencode.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,10 @@ async function collectHistorianRuns(storageDirPath: string): Promise<HistorianRu
637637
return [];
638638
}
639639

640-
let db: { prepare: (sql: string) => { all: (...p: unknown[]) => unknown[] }; close: () => void } | null =
641-
null;
640+
let db: {
641+
prepare: (sql: string) => { all: (...p: unknown[]) => unknown[] };
642+
close: () => void;
643+
} | null = null;
642644
try {
643645
db = new DatabaseClass(contextDbPath, { readonly: true });
644646
// Defensive: the table only exists at schema v24+. A pre-v24 DB throws

packages/pi-plugin/src/config/index.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ describe("loadPiConfig", () => {
246246

247247
expect(result.config.dreamer?.disable).toBe(true);
248248
expect(result.config.sidekick?.disable).toBe(true);
249-
expect(result.config.historian).toEqual({ two_pass: false, disallowed_tools: [] });
249+
expect(result.config.historian).toEqual({
250+
two_pass: false,
251+
disallowed_tools: [],
252+
});
250253
expect(result.warnings.join("\n")).toContain(
251254
'Migrated "dreamer.enabled=false" → "dreamer.disable=true" in-memory (run doctor to persist). This now also disables manual /ctx-dream; for manual-only remove disable and set schedule="".',
252255
);

packages/plugin/src/hooks/magic-context/compartment-trigger.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ function estimateUntaggedInMemoryTailUpperBound(
133133
taggerFloor = 0,
134134
): number {
135135
const lastCompartmentEnd = getLastCompartmentEndMessage(db, sessionId);
136-
const coveredOwnerMessageIds = getActiveOrDroppedTagOwnerMessageIds(
137-
db,
138-
sessionId,
139-
taggerFloor,
140-
);
136+
const coveredOwnerMessageIds = getActiveOrDroppedTagOwnerMessageIds(db, sessionId, taggerFloor);
141137
let total = 0;
142138
for (const message of inMemoryTail.messages) {
143139
// The anchored in-memory tail includes the last compartment boundary row

0 commit comments

Comments
 (0)