feat(coding-agent): exported patch utilities subpath and updated imports to use relative paths

- Exported `./patch/*` subpath in package.json for direct access to patch utilities.
- Updated import statements to use relative paths instead of package name imports.
This commit is contained in:
can1357
2026-02-10 19:30:56 +01:00
parent 14355bb39c
commit 82d375caa8
3 changed files with 9 additions and 2 deletions
+3
View File
@@ -1,6 +1,9 @@
# Changelog
## [Unreleased]
### Added
- Exported `./patch/*` subpath for direct access to patch utilities
## [11.10.2] - 2026-02-10
+4
View File
@@ -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"
+2 -2
View File
@@ -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 {