refactor: consolidated module import paths

- Removed custom TypeScript path aliases and the associated transformation script.
- Replaced aliased imports with direct `@oh-my-pi` package imports for improved clarity.
- Simplified internal module references by removing explicit `/index` suffixes.
This commit is contained in:
can1357
2026-01-23 21:01:13 +01:00
parent 0cab1fbce9
commit fcbfab765b
159 changed files with 307 additions and 406 deletions
+3 -9
View File
@@ -18,10 +18,10 @@ import {
flushLspWritethroughBatch,
type WritethroughCallback,
writethroughNoop,
} from "@oh-my-pi/pi-coding-agent/lsp/index";
} from "@oh-my-pi/pi-coding-agent/lsp";
import patchDescription from "@oh-my-pi/pi-coding-agent/prompts/tools/patch.md" with { type: "text" };
import replaceDescription from "@oh-my-pi/pi-coding-agent/prompts/tools/replace.md" with { type: "text" };
import type { ToolSession } from "@oh-my-pi/pi-coding-agent/tools/index";
import type { ToolSession } from "@oh-my-pi/pi-coding-agent/tools";
import { outputMeta } from "@oh-my-pi/pi-coding-agent/tools/output-meta";
import { resolveToCwd } from "@oh-my-pi/pi-coding-agent/tools/path-utils";
import { Type } from "@sinclair/typebox";
@@ -48,13 +48,7 @@ export { computeEditDiff, computePatchDiff, generateDiffString, generateUnifiedD
export { DEFAULT_FUZZY_THRESHOLD, findContextLine, findMatch as findEditMatch, findMatch, seekSequence } from "./fuzzy";
// Normalization
export {
adjustIndentation,
detectLineEnding,
normalizeToLF,
restoreLineEndings,
stripBom,
} from "./normalize";
export { adjustIndentation, detectLineEnding, normalizeToLF, restoreLineEndings, stripBom } from "./normalize";
// Parsing
export { normalizeCreateContent, normalizeDiff, parseHunks as parseDiffHunks } from "./parser";
+1 -1
View File
@@ -4,7 +4,7 @@
import type { ToolCallContext } from "@oh-my-pi/pi-agent-core";
import type { RenderResultOptions } from "@oh-my-pi/pi-coding-agent/extensibility/custom-tools/types";
import type { FileDiagnosticsResult } from "@oh-my-pi/pi-coding-agent/lsp/index";
import type { FileDiagnosticsResult } from "@oh-my-pi/pi-coding-agent/lsp";
import { renderDiff as renderDiffColored } from "@oh-my-pi/pi-coding-agent/modes/components/diff";
import { getLanguageFromPath, type Theme } from "@oh-my-pi/pi-coding-agent/modes/theme/theme";
import type { OutputMeta } from "@oh-my-pi/pi-coding-agent/tools/output-meta";