MCPcopy Create free account

hub / github.com/RimuruW/pi-hashline-edit / functions

Functions172 in github.com/RimuruW/pi-hashline-edit

↓ 1 callersFunctionassertDoesNotEmptyFile
(originalContent: string, result: string)
src/hashline/apply.ts:282
↓ 1 callersFunctionassertEditItem
(edit: Record<string, unknown>, index: number)
src/hashline/parse.ts:244
↓ 1 callersFunctionassertNoConflictingSpans
(spans: ResolvedEditSpan[])
src/hashline/apply.ts:549
↓ 1 callersFunctionassertNoDisplayPrefixes
* 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 callersFunctionassertTopLevelTextReplaceAliases
* 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 callersFunctionbuildAnchorsBlock
* 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 callersFunctionbuildAppliedChangedResultText
( _text: string | undefined, details: HashlineEditToolDetails | undefined, preview: EditPreview | undefined
src/edit-render.ts:146
↓ 1 callersFunctionbuildChangedResponse
(input: SuccessResponseInput)
src/edit-response.ts:109
↓ 1 callersFunctionbuildLineIndex
(content: string)
src/hashline/apply.ts:258
↓ 1 callersFunctionbuildNoopResponse
(input: NoopResponseInput)
src/edit-response.ts:81
↓ 1 callersFunctionclearAppliedPayload
(path: string)
src/noop-loop-guard.ts:63
↓ 1 callersFunctioncoerceEditsArray
* 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 callersFunctioncreateRenderedEditMarkdownTheme
(theme: RenderedMarkdownTheme)
src/edit-render.ts:236
↓ 1 callersFunctiondiagnoseLineRef
(ref: string)
src/hashline/parse.ts:75
↓ 1 callersFunctionevictOldestVersion
* 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 callersFunctionexpandPath
(filePath: string)
src/path-utils.ts:4
↓ 1 callersFunctionextractJsonBlocks
(markdown: string)
test/prompts/prompt-examples.test.ts:19
↓ 1 callersFunctionextractTopLevelTextReplace
* 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 callersFunctionfindExactUniqueTextMatch
( content: string, oldText: string, )
src/hashline/apply.ts:345
↓ 1 callersFunctionformatEditCall
( args: EditRequestParams | undefined, state: EditRenderState, expanded: boolean, theme: CallTheme, )
src/edit-render.ts:98
↓ 1 callersFunctionformatMismatchError
( mismatches: HashMismatch[], fileLines: string[], retryLines: ReadonlySet<number> = new Set<number>(), )
src/hashline/apply.ts:42
↓ 1 callersFunctionformatPreviewDiff
( diff: string, expanded: boolean, theme: FgTheme, )
src/edit-render.ts:75
↓ 1 callersFunctionformatRenderedEditResultMarkdown
(text: string)
src/edit-render.ts:187
↓ 1 callersFunctionformatResultDiff
(diff: string, theme: FgTheme)
src/edit-render.ts:92
↓ 1 callersFunctionformatSnapshotId
(canonicalPath: string, info: { mtimeMs: number; size: number })
src/snapshot.ts:10
↓ 1 callersFunctiongetConfigWarnings
()
src/config.ts:126
↓ 1 callersFunctiongetFileSnapshot
( absolutePath: string, options?: { alreadyResolved?: true }, )
src/snapshot.ts:21
↓ 1 callersFunctiongetHashlineBarePrefixRe
()
src/hashline/parse.ts:69
↓ 1 callersFunctiongetPreviewLines
(text: string)
src/read.ts:56
↓ 1 callersFunctiongetRenderablePreviewInput
( args: unknown, )
src/edit-render.ts:38
↓ 1 callersFunctiongetRenderedEditTextContent
(result: { content?: Array<{ type: string; text?: string }>; })
src/edit-render.ts:128
↓ 1 callersFunctiongetVisibleLines
(text: string)
src/edit-response.ts:52
↓ 1 callersFunctionisAppliedChangedResult
( details: HashlineEditToolDetails | undefined, )
src/edit-render.ts:140
↓ 1 callersFunctionisDuplicateAppliedPayload
(path: string, payloadKey: string)
src/noop-loop-guard.ts:54
↓ 1 callersFunctionisRecord
(value: unknown)
src/edit.ts:176
↓ 1 callersFunctionisRecord
(value: unknown)
src/edit-render.ts:34
↓ 1 callersFunctionisRenderedEditSectionBoundary
(line: string)
src/edit-render.ts:183
↓ 1 callersFunctionisRgAvailable
Detect whether ripgrep is available on PATH. Only called at registration time.
src/grep.ts:27
↓ 1 callersFunctionisStringArray
(value: unknown)
src/hashline/parse.ts:238
↓ 1 callersFunctionisTextLikeMimeType
(mimeType: string)
src/file-kind.ts:17
↓ 1 callersFunctionloadConfig
()
src/config.ts:88
↓ 1 callersFunctionmakeLines
(n: number)
test/integration/snapshot-merge-recovery.test.ts:19
↓ 1 callersFunctionmakeTokenTheme
()
test/tools/edit-render.test.ts:4
↓ 1 callersFunctionmaybeWarnSuspiciousUnicodeEscapePlaceholder
( edits: HashlineEdit[], warnings: string[], )
src/hashline/apply.ts:171
↓ 1 callersFunctionmergeRange
Merge a new range into an existing sorted, non-overlapping list.
src/grep.ts:57
↓ 1 callersFunctionparseMatchLine
(line: string)
src/grep.ts:92
↓ 1 callersFunctionrecordAppliedEdit
(path: string, payloadKey: string)
src/noop-loop-guard.ts:44
↓ 1 callersFunctionrecordNoopEdit
( path: string, payloadKey: string, )
src/noop-loop-guard.ts:26
↓ 1 callersFunctionresolveEditSpans
* 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 callersFunctionresolveEditToSpan
( edit: HashlineEdit, index: number, content: string, lineIndex: LineIndex, noopEdits: NoopEdit[], )
src/hashline/apply.ts:391
↓ 1 callersFunctionresolveFromParts
( currentPath: string, remainingParts: string[], )
src/fs-write.ts:22
↓ 1 callersFunctionrestoreLineEndings
( text: string, ending: "\r\n" | "\n", )
src/edit-diff.ts:17
↓ 1 callersFunctionreuseTextComponent
(lastComponent: unknown)
src/edit.ts:450
↓ 1 callersFunctionrunRg
* 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 callersFunctionstopForLimit
()
src/grep.ts:166
↓ 1 callersFunctionstripTopLevelTextReplaceKeys
* 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 callersFunctiontotalSize
()
src/read-snapshot.ts:30
↓ 1 callersFunctionvalidateAnchorEdits
* 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 callersFunctionwarnBareHashPrefixLines
* 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
FunctionbackfillEditOp
* 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
Functionexecute
(_toolCallId, params, signal, _onUpdate, ctx)
src/grep.ts:295
Functionexecute
(_toolCallId, params, signal, _onUpdate, ctx)
src/edit.ts:590
Functionexecute
(_toolCallId, params, signal, _onUpdate, ctx)
src/read.ts:162
Functioninvalidate
()
test/tools/edit.preview.test.ts:168
Functionon
()
test/support/fixtures.ts:81
Functionon
(name: string)
test/extension/register.test.ts:17
FunctiononAbort
()
src/grep.ts:199
FunctionregisterTool
(tool: RegisteredToolDefinition)
test/support/fixtures.ts:78
FunctionregisterTool
(tool: { name: string })
test/extension/register.test.ts:14
FunctionrenderCall
(args)
src/grep.ts:286
FunctionrenderCall
(args, theme, context)
src/edit.ts:485
FunctionrenderResult
(result, { isPartial }, theme, context)
src/edit.ts:540
← previous101–172 of 172, ranked by callers