Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RimuruW/pi-hashline-edit
/ functions
Functions
172 in github.com/RimuruW/pi-hashline-edit
⨍
Functions
172
◇
Types & classes
10
↓ 1 callers
Function
assertDoesNotEmptyFile
(originalContent: string, result: string)
src/hashline/apply.ts:282
↓ 1 callers
Function
assertEditItem
(edit: Record<string, unknown>, index: number)
src/hashline/parse.ts:244
↓ 1 callers
Function
assertNoConflictingSpans
(spans: ResolvedEditSpan[])
src/hashline/apply.ts:549
↓ 1 callers
Function
assertNoDisplayPrefixes
* Reject hashline display prefixes in edit payloads. Strict semantics: the * model must send literal file content for `lines`, not the rendered read
src/hashline/parse.ts:187
↓ 1 callers
Function
assertTopLevelTextReplaceAliases
* Validate top-level native replace aliases before folding them. The normalizer * must not hide ambiguous or malformed dialect fields from validation
src/edit-normalize.ts:62
↓ 1 callers
Function
buildAnchorsBlock
* Model-facing anchor block for the changed region: fresh LINE#HASH lines the * model can chain into nearby follow-up edits without a re-read. Falls
src/edit-response.ts:69
↓ 1 callers
Function
buildAppliedChangedResultText
( _text: string | undefined, details: HashlineEditToolDetails | undefined, preview: EditPreview | undefined
src/edit-render.ts:146
↓ 1 callers
Function
buildChangedResponse
(input: SuccessResponseInput)
src/edit-response.ts:109
↓ 1 callers
Function
buildLineIndex
(content: string)
src/hashline/apply.ts:258
↓ 1 callers
Function
buildNoopResponse
(input: NoopResponseInput)
src/edit-response.ts:81
↓ 1 callers
Function
clearAppliedPayload
(path: string)
src/noop-loop-guard.ts:63
↓ 1 callers
Function
coerceEditsArray
* Parse `edits` when a model serializes it as a JSON string instead of an array * (observed with some models, mirrors Pi's built-in edit handling).
src/edit-normalize.ts:35
↓ 1 callers
Function
createRenderedEditMarkdownTheme
(theme: RenderedMarkdownTheme)
src/edit-render.ts:236
↓ 1 callers
Function
diagnoseLineRef
(ref: string)
src/hashline/parse.ts:75
↓ 1 callers
Function
evictOldestVersion
* Evict the oldest version of the globally least-recently-used path. * If that path's version list becomes empty, remove the path entirely.
src/read-snapshot.ts:44
↓ 1 callers
Function
expandPath
(filePath: string)
src/path-utils.ts:4
↓ 1 callers
Function
extractJsonBlocks
(markdown: string)
test/prompts/prompt-examples.test.ts:19
↓ 1 callers
Function
extractTopLevelTextReplace
* Resolve the top-level native text-replace fields into a single * `{ oldText, newText }` pair, honoring both camelCase and snake_case. Returns * nu
src/edit-normalize.ts:106
↓ 1 callers
Function
findExactUniqueTextMatch
( content: string, oldText: string, )
src/hashline/apply.ts:345
↓ 1 callers
Function
formatEditCall
( args: EditRequestParams | undefined, state: EditRenderState, expanded: boolean, theme: CallTheme, )
src/edit-render.ts:98
↓ 1 callers
Function
formatMismatchError
( mismatches: HashMismatch[], fileLines: string[], retryLines: ReadonlySet<number> = new Set<number>(), )
src/hashline/apply.ts:42
↓ 1 callers
Function
formatPreviewDiff
( diff: string, expanded: boolean, theme: FgTheme, )
src/edit-render.ts:75
↓ 1 callers
Function
formatRenderedEditResultMarkdown
(text: string)
src/edit-render.ts:187
↓ 1 callers
Function
formatResultDiff
(diff: string, theme: FgTheme)
src/edit-render.ts:92
↓ 1 callers
Function
formatSnapshotId
(canonicalPath: string, info: { mtimeMs: number; size: number })
src/snapshot.ts:10
↓ 1 callers
Function
getConfigWarnings
()
src/config.ts:126
↓ 1 callers
Function
getFileSnapshot
( absolutePath: string, options?: { alreadyResolved?: true }, )
src/snapshot.ts:21
↓ 1 callers
Function
getHashlineBarePrefixRe
()
src/hashline/parse.ts:69
↓ 1 callers
Function
getPreviewLines
(text: string)
src/read.ts:56
↓ 1 callers
Function
getRenderablePreviewInput
( args: unknown, )
src/edit-render.ts:38
↓ 1 callers
Function
getRenderedEditTextContent
(result: { content?: Array<{ type: string; text?: string }>; })
src/edit-render.ts:128
↓ 1 callers
Function
getVisibleLines
(text: string)
src/edit-response.ts:52
↓ 1 callers
Function
isAppliedChangedResult
( details: HashlineEditToolDetails | undefined, )
src/edit-render.ts:140
↓ 1 callers
Function
isDuplicateAppliedPayload
(path: string, payloadKey: string)
src/noop-loop-guard.ts:54
↓ 1 callers
Function
isRecord
(value: unknown)
src/edit.ts:176
↓ 1 callers
Function
isRecord
(value: unknown)
src/edit-render.ts:34
↓ 1 callers
Function
isRenderedEditSectionBoundary
(line: string)
src/edit-render.ts:183
↓ 1 callers
Function
isRgAvailable
Detect whether ripgrep is available on PATH. Only called at registration time.
src/grep.ts:27
↓ 1 callers
Function
isStringArray
(value: unknown)
src/hashline/parse.ts:238
↓ 1 callers
Function
isTextLikeMimeType
(mimeType: string)
src/file-kind.ts:17
↓ 1 callers
Function
loadConfig
()
src/config.ts:88
↓ 1 callers
Function
makeLines
(n: number)
test/integration/snapshot-merge-recovery.test.ts:19
↓ 1 callers
Function
makeTokenTheme
()
test/tools/edit-render.test.ts:4
↓ 1 callers
Function
maybeWarnSuspiciousUnicodeEscapePlaceholder
( edits: HashlineEdit[], warnings: string[], )
src/hashline/apply.ts:171
↓ 1 callers
Function
mergeRange
Merge a new range into an existing sorted, non-overlapping list.
src/grep.ts:57
↓ 1 callers
Function
parseMatchLine
(line: string)
src/grep.ts:92
↓ 1 callers
Function
recordAppliedEdit
(path: string, payloadKey: string)
src/noop-loop-guard.ts:44
↓ 1 callers
Function
recordNoopEdit
( path: string, payloadKey: string, )
src/noop-loop-guard.ts:26
↓ 1 callers
Function
resolveEditSpans
* Resolve validated edits into ordered, conflict-free character-level spans. * * Each edit is mapped through resolveEditToSpan (which may produce a
src/hashline/apply.ts:810
↓ 1 callers
Function
resolveEditToSpan
( edit: HashlineEdit, index: number, content: string, lineIndex: LineIndex, noopEdits: NoopEdit[], )
src/hashline/apply.ts:391
↓ 1 callers
Function
resolveFromParts
( currentPath: string, remainingParts: string[], )
src/fs-write.ts:22
↓ 1 callers
Function
restoreLineEndings
( text: string, ending: "\r\n" | "\n", )
src/edit-diff.ts:17
↓ 1 callers
Function
reuseTextComponent
(lastComponent: unknown)
src/edit.ts:450
↓ 1 callers
Function
runRg
* Run rg asynchronously, returning at most `limit` match events. Honors * AbortSignal by killing the child process. The limit is process-level: we on
src/grep.ts:127
↓ 1 callers
Function
stopForLimit
()
src/grep.ts:166
↓ 1 callers
Function
stripTopLevelTextReplaceKeys
* Drop every top-level native text-replace key from a record. Used after the * pair has been folded into the canonical `edits` array.
src/edit-normalize.ts:128
↓ 1 callers
Function
totalSize
()
src/read-snapshot.ts:30
↓ 1 callers
Function
validateAnchorEdits
* Validate anchor hashes against the current file content. * * Checks every anchor in every edit for hash match (or fuzzy match when * textHint is
src/hashline/apply.ts:665
↓ 1 callers
Function
warnBareHashPrefixLines
* Warn on edit content that may carry a hash the model copied out of `read` * output instead of literal file text (issue #24, e.g. * `lines: ["KK:##
src/hashline/apply.ts:199
Function
backfillEditOp
* Give an edit item an explicit `op` when the model supplied `oldText`/`newText` * without one. The native edit contract has no `op` field, so a mode
src/edit-normalize.ts:148
Function
execute
(_toolCallId, params, signal, _onUpdate, ctx)
src/grep.ts:295
Function
execute
(_toolCallId, params, signal, _onUpdate, ctx)
src/edit.ts:590
Function
execute
(_toolCallId, params, signal, _onUpdate, ctx)
src/read.ts:162
Function
invalidate
()
test/tools/edit.preview.test.ts:168
Function
on
()
test/support/fixtures.ts:81
Function
on
(name: string)
test/extension/register.test.ts:17
Function
onAbort
()
src/grep.ts:199
Function
registerTool
(tool: RegisteredToolDefinition)
test/support/fixtures.ts:78
Function
registerTool
(tool: { name: string })
test/extension/register.test.ts:14
Function
renderCall
(args)
src/grep.ts:286
Function
renderCall
(args, theme, context)
src/edit.ts:485
Function
renderResult
(result, { isPartial }, theme, context)
src/edit.ts:540
← previous
101–172 of 172, ranked by callers