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:
@@ -1,6 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
|
||||
- Exported `./patch/*` subpath for direct access to patch utilities
|
||||
|
||||
## [11.10.2] - 2026-02-10
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user