style: applied biome import order and formatting
This commit is contained in:
@@ -30,6 +30,7 @@ import {
|
||||
setWorktreesDir,
|
||||
toError,
|
||||
} from "@oh-my-pi/pi-utils";
|
||||
import { withFileLock } from "@oh-my-pi/pi-utils/file-lock";
|
||||
import { JSONC, YAML } from "bun";
|
||||
import { invalidate as invalidateCapabilityFsCache } from "../capability/fs";
|
||||
import { type Settings as SettingsCapabilityItem, settingsCapability } from "../capability/settings";
|
||||
@@ -41,7 +42,6 @@ import { AUTO_IMAGE_PROVIDER_ORDER, isImageProviderId } from "../tools/image-pro
|
||||
import { type EditMode, normalizeEditMode } from "../utils/edit-mode";
|
||||
import { INSPECT_IMAGE_MODES } from "../utils/inspect-image-mode";
|
||||
import { isSearchProviderId, SEARCH_PROVIDER_ORDER } from "../web/search/types";
|
||||
import { withFileLock } from "@oh-my-pi/pi-utils/file-lock";
|
||||
import {
|
||||
type BashInterceptorRule,
|
||||
type GroupPrefix,
|
||||
|
||||
@@ -7,8 +7,8 @@ import { randomUUID } from "node:crypto";
|
||||
import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
import { isEnoent } from "@oh-my-pi/pi-utils";
|
||||
import { invalidate as invalidateFsCache } from "../capability/fs";
|
||||
import { withFileLock } from "@oh-my-pi/pi-utils/file-lock";
|
||||
import { invalidate as invalidateFsCache } from "../capability/fs";
|
||||
|
||||
import { validateServerConfig } from "./config";
|
||||
import { MCP_CONFIG_SCHEMA_URL, type MCPConfigFile, type MCPServerConfig } from "./types";
|
||||
|
||||
@@ -19,8 +19,8 @@ import { AgentStorage } from "@oh-my-pi/pi-coding-agent/session/agent-storage";
|
||||
import { AUTO_IMAGE_PROVIDER_ORDER } from "@oh-my-pi/pi-coding-agent/tools/image-providers";
|
||||
import { SEARCH_PROVIDER_ORDER } from "@oh-my-pi/pi-coding-agent/web/search/types";
|
||||
import { getProjectAgentDir, TempDir } from "@oh-my-pi/pi-utils";
|
||||
import { YAML } from "bun";
|
||||
import * as fileLock from "@oh-my-pi/pi-utils/file-lock";
|
||||
import { YAML } from "bun";
|
||||
import { beginSettingsTest, restoreSettingsTestState, type SettingsTestState } from "./helpers/settings-test-state";
|
||||
|
||||
function context(): Context {
|
||||
|
||||
@@ -134,10 +134,7 @@ describe("stats sync serial mode", () => {
|
||||
const lockPath = `${dbPath}.sync.lock`;
|
||||
const infoPath = path.join(lockPath, "info");
|
||||
await fs.mkdir(lockPath, { recursive: true });
|
||||
await Bun.write(
|
||||
infoPath,
|
||||
JSON.stringify({ pid: process.pid, timestamp: Date.now(), token: "live-owner" }),
|
||||
);
|
||||
await Bun.write(infoPath, JSON.stringify({ pid: process.pid, timestamp: Date.now(), token: "live-owner" }));
|
||||
const retryScheduled = Promise.withResolvers<void>();
|
||||
const resumeRetry = Promise.withResolvers<void>();
|
||||
let lockReleased = false;
|
||||
|
||||
Reference in New Issue
Block a user