MCPcopy Create free account

hub / github.com/Qinbf/groundmap / functions

Functions931 in github.com/Qinbf/groundmap

↓ 1 callersFunctionmaybeExpand
()
tools/debug-console/lib/anchor-refs.tsx:236
↓ 1 callersFunctionmaybeExpand
()
web/lib/anchor-refs.tsx:357
↓ 1 callersFunctionmeasure
()
web/components/HashScroller.tsx:152
↓ 1 callersFunctionneutralizeBrokenRefs
( text: string, brokenPaths: Set<string>, locale: Locale = DEFAULT_LOCALE, )
tools/debug-console/lib/wiki-ref.ts:232
↓ 1 callersFunctionnodeRadius
半径按「相对本图最高度数」映射:孤立 ~6 → 本图枢纽 ~48。 * 用相对度数(而非绝对)→ 无论稀疏图还是稠密图(度数都很高)都保持大小对比。
web/components/GraphView.tsx:208
↓ 1 callersFunctionnormNum
归一:全角数字→半角、去千分位逗号、percent→%、小写。
tools/debug-console/lib/verify-citations.ts:67
↓ 1 callersFunctionnormalizeDateValue
把 Date 对象规范化为 YYYY-MM-DD 字符串(UTC);保持其他类型不变。 * 用 UTC 与 operations.ts 的 todayISO()(new Date().toISOString().slice(0,10))对齐—— * 两边混用时区会导致跨时区下日期来回切换,产
web/lib/markdown.ts:106
↓ 1 callersFunctionnormalizeFrontmatterDates
(fm: Record<string, unknown>)
web/lib/markdown.ts:115
↓ 1 callersFunctionnormalizeOnce
* 把裸 slug 引用转回标准 `[[wiki/.../X#^anchor]]` 形式。 * 这是渲染层兜底——保证即使模型违规也能正确编号 + 显示 + 点击。 * * 不处理代码块/行内 code(先 maskCode 再调本函数;上游 ReactMarkdown 是块级解析, * 这
tools/debug-console/lib/wiki-ref.ts:67
↓ 1 callersFunctionnormalizeRefPath
(raw: string)
tools/debug-console/lib/wiki-ref.ts:102
↓ 1 callersFunctionnormalizeTags
YAML tags 字段可能是数组或字符串;都规范化为字符串数组。
web/lib/permissions.ts:19
↓ 1 callersFunctiononTimeout
()
web/components/HashScroller.tsx:236
↓ 1 callersFunctionopenInAdmin
(args: Record<string, unknown>)
tools/debug-console/components/ToolCallCard.tsx:47
↓ 1 callersFunctionorderedBuckets
(grouped: Record<string, T[]>)
web/components/BacklinksPanel.tsx:364
↓ 1 callersFunctionpage_visible
(p: Page)
scripts/k.py:619
↓ 1 callersFunctionparseBlocks
* 解析 raw md 按锚点切块。简单状态机: * - 首行 "---" 进入 frontmatter 模式,直到下一个 "---" * - body 模式:扫描每一行,行末匹配锚点 → flush 当前 buf 为一个 body block
web/components/learn/RawDocPane.tsx:29
↓ 1 callersFunctionparse_extensions
解析用户指定的扩展名列表
scripts/convert.py:234
↓ 1 callersFunctionpathnameToWikiPath
从 pathname 解析 wiki 路径;不是 /page/... 则返回 null
web/components/EditorTabs.tsx:54
↓ 1 callersFunctionplaceholderMeta
(p: string)
web/lib/kb-service.ts:122
↓ 1 callersFunctionprojectRoot
()
tools/debug-console/lib/providers/claude-code.ts:24
↓ 1 callersFunctionprojectRoot
()
tools/debug-console/lib/providers/codex.ts:15
↓ 1 callersFunctionrawTargetLabel
(target: string)
tools/debug-console/lib/anchor-refs.tsx:40
↓ 1 callersFunctionrawTargetLabel
把 raw 文件名去 .md 后缀 + 不带路径前缀,方便 References 区展示
web/lib/anchor-refs.tsx:58
↓ 1 callersFunctionreadLines
把 ReadableStream<Buffer> 转成行迭代器
tools/debug-console/lib/providers/claude-code.ts:322
↓ 1 callersFunctionreadLines
(stream: NodeJS.ReadableStream)
tools/debug-console/lib/providers/codex.ts:369
↓ 1 callersFunctionread_block
根据 ^p-/^t-/^c-/^f- anchor 取出单个 block 原文。 精确锚点未命中时,做一次**哈希容错回收**:按 anchor 末段的 hash6(内容指纹)在全文块里找, 仅当**恰好一个**块命中该 hash6 时才返回它(附 recovered_from)。
scripts/k.py:1611
↓ 1 callersFunctionread_section
根据 anchor 或 title 取出整段 H 段(到下一同级 heading 之前)。
scripts/k.py:1578
↓ 1 callersFunctionrecordSource
从 tool result 提取路径加入注册表
tools/debug-console/lib/agent-loop.ts:88
↓ 1 callersFunctionrefToAdminUrl
(ref: WikiRef, kbBase = "http://localhost:3006")
tools/debug-console/lib/wiki-ref.ts:282
↓ 1 callersFunctionrelationBadgeColor
按关系类型选 Tailwind 颜色 class。 * 与 GraphView 边色规则保持一致——读者在正文里看到的徽章颜色和图谱里看到的边颜色一致。
web/components/WikiLink.tsx:22
↓ 1 callersFunctionreleaseScrollControl
(token: number)
web/lib/scroll-memory.ts:146
↓ 1 callersFunctionremoveTag
(tg: string)
web/components/FrontmatterEditor.tsx:36
↓ 1 callersFunctionremoveToBeUpdatedBlock
* 删除带 `#to-be-updated` 的整个尾部块。 * 通常的写法是: * * --- * #to-be-updated 2026-04-22: <说明> * * 把这一段(含前面的 `---` 与空行)整体清掉。 * * 边界处理: * - 跳过围栏代码块(
web/lib/operations.ts:155
↓ 1 callersFunctionrenderGhost
(data: FlowNodeData, clickable: boolean, t: TFn)
tools/debug-console/components/FlowNode.tsx:250
↓ 1 callersFunctionrenderQuery
(data: FlowNodeData, t: TFn)
tools/debug-console/components/FlowNode.tsx:211
↓ 1 callersFunctionrenderQuery
(data: CardData, t: TFn)
web/components/walkthrough/ReasoningFlowNode.tsx:149
↓ 1 callersFunctionrenderResult
(data: FlowNodeData, t: TFn)
tools/debug-console/components/FlowNode.tsx:179
↓ 1 callersFunctionrenderResult
(data: CardData, t: TFn)
web/components/walkthrough/ReasoningFlowNode.tsx:118
↓ 1 callersFunctionrenderThought
(data: FlowNodeData, t: TFn)
tools/debug-console/components/FlowNode.tsx:227
↓ 1 callersFunctionrenderThought
(data: CardData, t: TFn)
web/components/walkthrough/ReasoningFlowNode.tsx:165
↓ 1 callersFunctionrenderTool
(data: FlowNodeData, clickable: boolean, t: TFn)
tools/debug-console/components/FlowNode.tsx:278
↓ 1 callersFunctionrenderTool
(data: CardData, t: TFn)
web/components/walkthrough/ReasoningFlowNode.tsx:188
↓ 1 callersFunctionrenderWarning
(data: FlowNodeData, t: TFn)
tools/debug-console/components/FlowNode.tsx:155
↓ 1 callersFunctionreorderFrontmatter
(fm: Record<string, unknown>)
web/lib/markdown.ts:155
↓ 1 callersFunctionresolveBlockTarget
* 把锚点元素归一到「该参考块的起点元素」。 * * convert.py 把「块级锚点」一律追加到块的**最后一行**,于是渲染后 id 落在块的最后一个 * 子元素上: * - 表格 → 最后一行的某个 `<td>`(经 relocateTableRowAnchors 搬入单元格)
web/components/HashScroller.tsx:44
↓ 1 callersFunctionresolveHighlightTargets
* 决定「高亮哪些元素」。 * * 标题锚点(^h-N → `<h1..6>`)特殊:它只是一行标题,只高亮 `<h>` 会让用户看到「只高亮了 * 标题、下面的小字没高亮」。所以把**标题 + 紧随其后的首个正文块**一起高亮——这恰好与悬浮 * 「章节预览」展示的内容一致(预览也是标题
web/components/HashScroller.tsx:76
↓ 1 callersFunctionresolveSegmentTarget
* Server-rendered hierarchical breadcrumb. * 例:wiki/concepts/transformer.md → wiki / concepts / transformer * * 索引解析(按优先级): * 1. "wiki" 段(顶层) →
web/components/HierarchyBreadcrumb.tsx:17
↓ 1 callersFunctionrestoreWhenStable
* 把容器还原到 top 像素处。 * * 难点:目标页正文(尤其长篇 markdown)可能还在渲染/长高,此刻直接设 scrollTop * 会被浏览器夹断到当前 scrollHeight。于是:先立即尽力还原一次(内容已缓存时无 * 闪动),随后在内容长高的每一帧持续跟随目标,直到 s
web/components/ScrollMemory.tsx:46
↓ 1 callersFunctionrunAgent
( input: AgentRunInput, )
tools/debug-console/lib/agent-loop.ts:65
↓ 1 callersFunctionsanitizeCommitMessage
(raw: string, maxLen = 500)
web/lib/git.ts:43
↓ 1 callersFunctionscrollElementToTop
* 把 el 滚到其滚动容器的顶部。 * * 不用 el.scrollIntoView:在多层 overflow 嵌套(如 PageColumns 的 main)下, * 浏览器对"该让谁滚"判断不稳;显式找最近 scroll ancestor 自己算 offset 最可控。
web/components/HashScroller.tsx:125
↓ 1 callersFunctionsearch_pages
关键词搜索:标题命中 ×5、正文命中 ×1,按总分降序
scripts/k.py:377
↓ 1 callersFunctionsection_to_dict
(sec: Section)
scripts/section_parser.py:317
↓ 1 callersFunctionshallowFrontmatterEqual
浅层比较两个 frontmatter 是否同 keyset + 同字段值(忽略顺序)。 * * 比较策略: * - typeof 必须相同——避免 `null` vs `"null"` / `1` vs `"1"` / `true` vs `"true"` * 这种跨类型被
web/app/api/pages/[...path]/route.ts:38
↓ 1 callersFunctionshortLabel
(n: ApiNode)
web/components/GraphView.tsx:213
↓ 1 callersFunctionshould_convert
判断文件是否需要(重新)处理。 - .md:检查是否已加锚点 && outline.json 是否存在 - 其他:检查 .md 是否存在、mtime、outline.json 是否存在
scripts/convert.py:108
↓ 1 callersFunctionsnippet
(content: string, start: number, end: number, padding = 60)
web/lib/markdown.ts:226
↓ 1 callersFunctionstatusVariant
(status: string)
web/components/WikiTree.tsx:27
↓ 1 callersFunctionstreamOpenAI
( client: OpenAI, input: TurnInput, tools: OpenAITool[], /** provider 专有的额外 body 字段(如 DeepSeek 的 think
tools/debug-console/lib/providers/openai-shared.ts:66
↓ 1 callersFunctionstripDanglingAnchorLines
(content: string)
web/lib/markdown-render.ts:32
↓ 1 callersFunctionsummaryForArgs
(args: Record<string, unknown>)
tools/debug-console/components/ToolCallCard.tsx:36
↓ 1 callersFunctiontoOpenAIMessages
(system: string, messages: ChatMessage[])
tools/debug-console/lib/providers/openai-shared.ts:22
↓ 1 callersFunctiontoRelPosix
(absPath: string)
web/lib/kb.ts:143
↓ 1 callersFunctiontranslateCCEvent
(evt: unknown)
tools/debug-console/lib/providers/claude-code.ts:215
↓ 1 callersFunctiontranslateCodexEvent
* codex 0.13+ 事件 schema(行分隔 JSON): * {type:"thread.started", thread_id} * {type:"turn.started"} * {type:"item.started"|"item.completed"|"item
tools/debug-console/lib/providers/codex.ts:213
↓ 1 callersFunctiontranslateDistributionKey
把分布卡片的 key 翻译为对应字段的展示文字(type/status/confidence)。 * 如果 i18n 表里没有对应翻译就回退为原 key——保证未来加新字段值不会显示 "undefined"。
web/components/HealthDashboard.tsx:170
↓ 1 callersFunctiontruncateToWidth
(ctx: CanvasRenderingContext2D, s: string, maxW: number)
web/components/GraphView.tsx:235
↓ 1 callersFunctiontypeLabel
卡片内部的类型标签(取代 FILE_COLOR.unknown 的 "?")
tools/debug-console/components/FlowNode.tsx:110
↓ 1 callersFunctiontypeLabel
卡片内部的类型标签
web/components/walkthrough/ReasoningFlowNode.tsx:68
↓ 1 callersFunctionupdate
()
web/components/WikiLink.tsx:251
↓ 1 callersFunctionusePopoverState
(id: string)
web/lib/popover-context.tsx:60
↓ 1 callersFunctionvalid
(w: string | null)
tools/debug-console/app/page.tsx:67
↓ 1 callersFunctionvalidateBody
(body: { frontmatter?: unknown; content?: unknown; raw?: unknown; })
web/app/api/pages/[...path]/route.ts:99
↓ 1 callersFunctionvalidatePaths
( paths: string[], )
tools/debug-console/lib/kb-http-client.ts:52
↓ 1 callersFunctionvalidate_frontmatter
(file_path)
scripts/k.py:1282
↓ 1 callersFunctionverifyBlockCitations
( answerText: string, blockRefs: BlockRefSpec[], opts: { useJudge?: boolean } = {}, )
tools/debug-console/lib/verify-citations.ts:197
↓ 1 callersFunctionwalk
(s: Section)
scripts/section_parser.py:335
↓ 1 callersFunctionwalk
(dir: string)
web/lib/kb.ts:155
FunctionAnchorSup
同文档 trailing anchor 的上标:从 context 拿编号,渲染 [n] + 点击复制
tools/debug-console/lib/anchor-refs.tsx:132
FunctionAnchorSup
({ id }: { id?: string })
web/lib/anchor-refs.tsx:172
FunctionAnchoredListItem
({ children }: { children?: ReactNode })
tools/debug-console/lib/anchor-refs.tsx:197
FunctionAnchoredListItem
({ children }: { children?: ReactNode })
web/lib/anchor-refs.tsx:242
FunctionAnchoredMarkdownBody
({ content, onOpenRef, }: { content: string; onOpenRef: (ref: WikiRef) => void; })
tools/debug-console/components/PreviewPanel.tsx:279
FunctionAnchoredParagraph
({ children }: { children?: ReactNode })
tools/debug-console/lib/anchor-refs.tsx:187
FunctionAnchoredParagraph
({ children }: { children?: ReactNode })
web/lib/anchor-refs.tsx:232
FunctionAnchoredTableCell
({ children }: { children?: ReactNode })
tools/debug-console/lib/anchor-refs.tsx:207
FunctionAnchoredTableCell
({ children }: { children?: ReactNode })
web/lib/anchor-refs.tsx:252
FunctionArgRow
({ k, v }: { k: string; v: unknown })
tools/debug-console/components/ToolCallCard.tsx:244
FunctionBackItem
({ e }: { e: AggBack })
web/components/BacklinksPanel.tsx:166
FunctionBacklinksPanel
({ back, out }: BacklinksPanelProps)
web/components/BacklinksPanel.tsx:131
FunctionBadge
({ className, variant, ...props }: BadgeProps)
web/components/ui/badge.tsx:33
FunctionBareCode
({ children, className }: { children?: ReactNode; className?: string })
web/lib/anchor-refs.tsx:313
FunctionBareListItem
({ children }: { children?: ReactNode })
web/lib/anchor-refs.tsx:301
FunctionBareParagraph
({ children }: { children?: ReactNode })
web/lib/anchor-refs.tsx:296
FunctionBareTableCell
({ children }: { children?: ReactNode })
web/lib/anchor-refs.tsx:306
FunctionBlocksPage
({ params }: BlocksPageProps)
web/app/(shell)/blocks/[...path]/page.tsx:29
FunctionBlocksTable
({ docPath, blocks }: BlocksTableProps)
web/components/BlocksTable.tsx:41
FunctionBrokenRefCard
({ ref_, locale, }: { ref_: BrokenRef; locale: ReturnType<typeof getServerLocale>; })
web/app/health/broken-refs/page.tsx:63
FunctionBrokenRefsPage
()
web/app/health/broken-refs/page.tsx:19
FunctionBucketGroup
({ bucket, items, getKey, renderItem, filtering, }: { bucket: string; items: T[]; getKey: (e:
web/components/BacklinksPanel.tsx:375
← previousnext →401–500 of 931, ranked by callers