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:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user