Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RimuruW/pi-hashline-edit
/ functions
Functions
172 in github.com/RimuruW/pi-hashline-edit
⨍
Functions
172
◇
Types & classes
10
↓ 121 callers
Function
computeLineHash
(fileLines: readonly string[], index: number)
src/hashline/hash.ts:67
↓ 112 callers
Function
getTool
(name: string)
test/support/fixtures.ts:88
↓ 106 callers
Function
getText
(result: { content: Array<{ type: string; text?: string }>; })
test/support/fixtures.ts:106
↓ 105 callers
Function
applyHashlineEdits
( content: string, edits: HashlineEdit[], signal?: AbortSignal, )
src/hashline/apply.ts:891
↓ 103 callers
Function
makeToolContext
(cwd: string)
test/support/fixtures.ts:102
↓ 102 callers
Function
withTempFile
( name: string, content: string, run: (args: { cwd: string; path: string }) => Promise<void>, )
test/support/fixtures.ts:19
↓ 90 callers
Function
makeFakePiRegistry
()
test/support/fixtures.ts:72
↓ 50 callers
Function
resolveEditAnchors
(edits: HashlineToolEdit[])
src/hashline/parse.ts:327
↓ 40 callers
Function
makeTag
(fileContent: string, line: number)
test/core/hashline.apply.test.ts:4
↓ 25 callers
Function
rememberReadSnapshot
(canonicalPath: string, content: string)
src/read-snapshot.ts:68
↓ 24 callers
Function
makeTag
(fileContent: string, lineNum: number)
test/core/hashline.recovery.test.ts:11
↓ 20 callers
Function
loadFileKindAndText
( filePath: string, )
src/file-kind.ts:33
↓ 19 callers
Function
throwIfAborted
(signal?: AbortSignal)
src/runtime.ts:1
↓ 18 callers
Function
normalizeEditRequest
(input: unknown)
src/edit-normalize.ts:167
↓ 16 callers
Function
parseHashlineConfig
(raw: unknown)
src/config.ts:38
↓ 14 callers
Function
__setHashLengthForTests
(n: 2 | 3 | 4)
src/config.ts:143
↓ 14 callers
Function
formatHashlineReadPreview
( text: string, options: { offset?: number; limit?: number; raw?: boolean }, )
src/read.ts:65
↓ 13 callers
Function
describeEdit
(edit: HashlineEdit)
src/hashline/apply.ts:295
↓ 13 callers
Function
rewriteAnchorExamples
(text: string, len: number)
src/prompt-loader.ts:34
↓ 13 callers
Function
validate
(ref: Anchor)
src/hashline/apply.ts:675
↓ 13 callers
Function
withTempBytes
( name: string, bytes: Uint8Array, run: (args: { cwd: string; path: string }) => Promise<void>, )
test/support/fixtures.ts:34
↓ 12 callers
Function
computeAffectedLineRange
(params: { firstChangedLine: number | undefined; lastChangedLine: number | undefined; resultLineCount: numb
src/hashline/format.ts:20
↓ 12 callers
Function
getGrepTool
()
test/tools/grep.test.ts:17
↓ 12 callers
Function
getReadSnapshot
(canonicalPath: string)
src/read-snapshot.ts:120
↓ 12 callers
Function
parseRef
(ref: string)
test/core/hashline.parse.test.ts:6
↓ 11 callers
Function
computeChangedLineRange
( original: string, result: string, )
src/hashline/format.ts:80
↓ 11 callers
Function
formatHashlineRegion
( fileLines: readonly string[], startLine: number, endLine: number, )
src/hashline/format.ts:57
↓ 11 callers
Function
loadPrompt
(url: URL)
src/prompt-loader.ts:50
↓ 11 callers
Function
registerEditTool
(pi: ExtensionAPI)
src/edit.ts:690
↓ 11 callers
Function
resolveToCwd
(filePath: string, cwd: string)
src/path-utils.ts:10
↓ 10 callers
Function
getReadSnapshotVersions
(canonicalPath: string)
src/read-snapshot.ts:129
↓ 10 callers
Function
hasOwn
(record: Record<string, unknown>, key: string)
src/edit-normalize.ts:54
↓ 10 callers
Function
normalizeToLF
(text: string)
src/edit-diff.ts:13
↓ 9 callers
Function
computeHashFromContext
(prev: string, curr: string, next: string)
src/hashline/hash.ts:52
↓ 9 callers
Function
hasMixedLineEndings
(content: string)
src/edit-diff.ts:27
↓ 9 callers
Function
stripBom
(content: string)
src/edit-diff.ts:38
↓ 8 callers
Function
assertEditRequest
( request: unknown, )
src/edit.ts:189
↓ 8 callers
Function
exampleAnchor
(len?: number)
src/config.ts:135
↓ 8 callers
Function
registerGrepTool
(pi: ExtensionAPI)
src/grep.ts:236
↓ 8 callers
Function
writeFileAtomically
( path: string, content: string, options?: { alreadyResolved?: true }, )
src/fs-write.ts:71
↓ 7 callers
Function
computeEditPreview
( request: unknown, cwd: string, )
src/edit.ts:412
↓ 7 callers
Function
getHashLength
()
src/config.ts:118
↓ 7 callers
Function
makeTag
(fileContent: string, lineNum: number)
test/core/hashline.duplicate-insert-warning.test.ts:4
↓ 7 callers
Function
resetReadSnapshot
()
src/read-snapshot.ts:138
↓ 6 callers
Function
__resetConfigForTests
()
src/config.ts:153
↓ 6 callers
Function
detectLineEnding
(content: string)
src/edit-diff.ts:6
↓ 6 callers
Function
make15Lines
()
test/integration/snapshot-merge-recovery.test.ts:84
↓ 6 callers
Function
makeStaleAnchorWithHint
* Build a stale anchor: the hash is from the file's old state (before a line * moved), but the anchor carries a textHint matching the original conten
test/core/hashline.mismatch-candidates.test.ts:10
↓ 6 callers
Function
normalizeHashInput
(line: string)
src/hashline/hash.ts:36
↓ 6 callers
Function
parseLines
(lines: string[])
test/core/hashline.parse.test.ts:62
↓ 5 callers
Function
fakeChild
(opts: { errorEvent?: Error; closeCode?: number | null; stdout?: string; stderr?: string; })
test/tools/grep.test.ts:397
↓ 5 callers
Function
makeTempDir
(prefix: string)
test/support/fixtures.ts:14
↓ 5 callers
Function
matchEvent
(path: string, lineNumber: number)
test/tools/grep.test.ts:490
↓ 5 callers
Function
settleReject
(error: Error)
src/grep.ts:158
↓ 5 callers
Function
threeWayMerge
( base: string, baseEdited: string, current: string, )
src/merge.ts:20
↓ 4 callers
Function
applyTool
(toolEdits: HashlineToolEdit[])
test/core/hashline-strict-input.test.ts:138
↓ 4 callers
Function
computeInsertionBoundary
( edit: Extract<HashlineEdit, { op: "append" | "prepend" }>, lineIndex: LineIndex, )
src/hashline/apply.ts:324
↓ 4 callers
Function
countVisibleLines
(text: string)
src/hashline/format.ts:86
↓ 4 callers
Function
literalStringSchema
( value: Value, options: { description: string }, )
src/edit.ts:55
↓ 4 callers
Function
make15Lines
()
test/integration/multi-version-snapshot-recovery.test.ts:23
↓ 4 callers
Function
parseAnchorRef
(ref: string)
src/hashline/parse.ts:129
↓ 4 callers
Function
readPrompt
(name: string)
test/prompts/prompt-examples.test.ts:15
↓ 4 callers
Function
resolveMutationTargetPath
(path: string)
src/fs-write.ts:13
↓ 3 callers
Function
cleanup
()
src/grep.ts:147
↓ 3 callers
Function
colorDiffLines
(lines: string[], theme: FgTheme)
src/edit-render.ts:63
↓ 3 callers
Function
formatDiffPreviewLine
( prefix: " " | "+" | "-", lineNum: number, lineNumWidth: number, line: string, includeHash: boolean, al
src/edit-diff.ts:46
↓ 3 callers
Function
generateDiffString
( oldContent: string, newContent: string, contextLines = 4, )
src/edit-diff.ts:65
↓ 3 callers
Function
hashlineParseText
* Validate and return replacement lines. * * Array input is preserved verbatim so explicitly provided blank lines remain * intact. Display prefixes
src/hashline/parse.ts:210
↓ 3 callers
Function
isFuzzyEquivalentLine
(expected: string, actual: string)
src/hashline/hash.ts:89
↓ 3 callers
Function
lineRef
(readText: string, lineContent: string)
test/integration/multi-version-snapshot-recovery.test.ts:27
↓ 3 callers
Function
makeFakeRegistry
()
test/tools/edit.queue.test.ts:28
↓ 3 callers
Function
makeTag
(fileLines: string[], lineNum: number)
test/integration/stale-position-compound.test.ts:12
↓ 3 callers
Function
noteUtf8DecodeErrors
(chunk?: Uint8Array)
src/file-kind.ts:90
↓ 3 callers
Function
resetNoopLoopGuard
()
src/noop-loop-guard.ts:71
↓ 3 callers
Function
throwEditConflict
( left: { index: number; label: string }, right: { index: number; label: string }, reason: string, )
src/hashline/apply.ts:314
↓ 2 callers
Function
executeEditPipeline
* Shared edit pipeline: read file, resolve anchors, and apply edits. Public * entrypoints normalize + validate before calling this; access mode contr
src/edit.ts:222
↓ 2 callers
Function
flushPlainLines
()
src/edit-render.ts:192
↓ 2 callers
Function
getGrepEnabled
()
src/config.ts:122
↓ 2 callers
Function
hasNullByte
(buffer: Uint8Array)
src/file-kind.ts:29
↓ 2 callers
Function
indexToLine
(charIdx: number, text: string)
src/hashline/format.ts:126
↓ 2 callers
Function
isRecord
* Single normalization layer that maps the dialects a model may emit onto the * canonical hashline edit request before validation runs. * * Why thi
src/edit-normalize.ts:27
↓ 2 callers
Function
makeRecordingPI
()
test/extension/register.test.ts:10
↓ 2 callers
Function
makeTestTheme
( overrides: Partial<{ bold: (text: string) => string; fg: (token: string, text: string) => string; }> =
test/support/fixtures.ts:127
↓ 2 callers
Function
normalizeExactText
(text: string | undefined)
src/hashline/parse.ts:372
↓ 2 callers
Function
normalizeFuzzyLine
(text: string)
src/hashline/hash.ts:80
↓ 2 callers
Function
normalizePositiveInteger
( value: number | undefined, name: "offset" | "limit", )
src/read.ts:41
↓ 2 callers
Function
previewText
(text: string)
src/hashline/apply.ts:290
↓ 2 callers
Function
registerReadTool
(pi: ExtensionAPI)
src/read.ts:131
↓ 2 callers
Function
renderTextResult
( lastComponent: unknown, textContent: string | undefined, )
src/edit.ts:454
↓ 2 callers
Function
resetPreview
()
src/edit.ts:487
↓ 2 callers
Function
settleResolve
()
src/grep.ts:151
↓ 2 callers
Function
trimEdgeEmptyLines
(lines: string[])
src/edit-render.ts:169
↓ 2 callers
Function
warnDuplicateInsert
* Warn when an append or prepend payload exactly matches the lines already * adjacent at the insertion point — indicates a duplicate insert after a
src/hashline/apply.ts:598
↓ 2 callers
Function
warningsBlockOf
(warnings: string[] | undefined)
src/edit-response.ts:58
↓ 2 callers
Function
withTempDirectory
( name: string, run: (args: { cwd: string; path: string }) => Promise<void>, )
test/support/fixtures.ts:49
↓ 2 callers
Function
xxh32
(input: string, seed = 0)
src/hashline/hash.ts:31
↓ 1 callers
Function
__setGrepEnabledForTests
(v: boolean)
src/config.ts:148
↓ 1 callers
Function
addMatch
( matchesByFile: Map<string, number[]>, filePath: string, lineNum: number, )
src/grep.ts:81
↓ 1 callers
Function
appendLimitedStderr
(current: string, chunk: string)
src/grep.ts:109
↓ 1 callers
Function
assembleEditResult
* Apply ordered spans to content in reverse (back-to-front) order so earlier * spans' offsets stay valid.
src/hashline/apply.ts:860
next →
1–100 of 172, ranked by callers