style(deps): migrated from Prettier to Biome and updated formatting rules
- Removed Prettier configuration files (.prettierignore and .prettierrc) and migrated formatting to Biome. - Updated Biome configuration from version 2.3.11 to 2.3.12 and changed arrowParentheses rule from 'always' to 'asNeeded'. - Pinned @biomejs/biome dependency to exact version 2.3.12 in package.json and bun.lock. - Applied consistent arrow function formatting across 489 files by removing unnecessary parentheses around single parameters. - Removed blank lines after comment blocks and reorganized imports for consistency across the codebase.
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
/**
|
||||
* One-time migrations that run on startup.
|
||||
*/
|
||||
|
||||
import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
|
||||
import { isEnoent, logger } from "@oh-my-pi/pi-utils";
|
||||
import chalk from "chalk";
|
||||
|
||||
import { getAgentDbPath, getAgentDir, getBinDir } from "./config";
|
||||
import { AgentStorage } from "./session/agent-storage";
|
||||
import type { AuthCredential } from "./session/auth-storage";
|
||||
@@ -92,7 +89,7 @@ export async function migrateSessionsFromAgentRoot(): Promise<void> {
|
||||
let files: string[];
|
||||
try {
|
||||
const entries = await fs.promises.readdir(agentDir);
|
||||
files = entries.filter((f) => f.endsWith(".jsonl")).map((f) => path.join(agentDir, f));
|
||||
files = entries.filter(f => f.endsWith(".jsonl")).map(f => path.join(agentDir, f));
|
||||
} catch (error) {
|
||||
logger.warn("Failed to read agent directory for session migration", { path: agentDir, error: String(error) });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user