diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 973a892e6..e8ec4970a 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## [Unreleased] +### Added + +- Exported `./patch/*` subpath for direct access to patch utilities ## [11.10.2] - 2026-02-10 diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.json index 25d1e05c7..908141588 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -58,6 +58,10 @@ "types": "./src/internal-urls/*.ts", "import": "./src/internal-urls/*.ts" }, + "./patch/*": { + "types": "./src/patch/*.ts", + "import": "./src/patch/*.ts" + }, "./*": { "types": "./src/*.ts", "import": "./src/*.ts" diff --git a/packages/coding-agent/src/config/settings.ts b/packages/coding-agent/src/config/settings.ts index 8f4a0c972..4c8e3d5e5 100644 --- a/packages/coding-agent/src/config/settings.ts +++ b/packages/coding-agent/src/config/settings.ts @@ -13,14 +13,14 @@ import * as fs from "node:fs"; import * as path from "node:path"; -import type { ModelRole } from "@oh-my-pi/pi-coding-agent/config/model-registry"; -import { type EditMode, normalizeEditMode } from "@oh-my-pi/pi-coding-agent/patch"; import { isEnoent, logger, procmgr } from "@oh-my-pi/pi-utils"; import { YAML } from "bun"; import { type Settings as SettingsCapabilityItem, settingsCapability } from "../capability/settings"; import { getAgentDbPath, getAgentDir } from "../config"; +import type { ModelRole } from "../config/model-registry"; import { loadCapability } from "../discovery"; import { setColorBlindMode, setSymbolPreset, setTheme } from "../modes/theme/theme"; +import { type EditMode, normalizeEditMode } from "../patch"; import { AgentStorage } from "../session/agent-storage"; import { withFileLock } from "./file-lock"; import {