MCPcopy Create free account

hub / github.com/Qinbf/groundmap / functions

Functions931 in github.com/Qinbf/groundmap

↓ 1 callersFunctionfirstBlockOf
* 从 H 段整章 markdown 中提取第一个 block(首段/首列表/首表格/首代码块), * 让 hover 预览保持"一段的尺度"而非整章全景。 * * 启发式: * 1. 跳过开头的 H 标题行(## ...)与紧随的空行 * 2. 第一个非空起始行决定 block 类型:
web/components/WikiLink.tsx:158
↓ 1 callersFunctionflashHighlight
给目标块加一段渐隐高亮,提示用户「就是这一段」。重复点同一锚点也能重新触发。 * 传入多个元素(标题 + 其正文)时用「仅背景」变体连成一片,不给每段都套外圈。
web/components/HashScroller.tsx:86
↓ 1 callersFunctionflattenMessages
把对话历史拼成一个 prompt 串给 CC(CC 非交互模式只接受单 prompt) * 注:system 不在这里拼——通过 CLI 的 --append-system-prompt 单独传,让 CC 真当 system 处理
tools/debug-console/lib/providers/claude-code.ts:32
↓ 1 callersFunctionflattenMessages
(system: string, messages: ChatMessage[])
tools/debug-console/lib/providers/codex.ts:19
↓ 1 callersFunctionfmt_annotate
(result: dict)
scripts/k.py:2586
↓ 1 callersFunctionfmt_backlinks
(links)
scripts/k.py:2353
↓ 1 callersFunctionfmt_bare_claims
(items: list[dict])
scripts/k.py:2671
↓ 1 callersFunctionfmt_block
(blk: dict)
scripts/k.py:2540
↓ 1 callersFunctionfmt_blocks
(data: dict)
scripts/k.py:2548
↓ 1 callersFunctionfmt_broken_refs
(items: list[dict])
scripts/k.py:2593
↓ 1 callersFunctionfmt_coarse_citations
(items: list[dict])
scripts/k.py:2686
↓ 1 callersFunctionfmt_conflicts
(conflicts)
scripts/k.py:2330
↓ 1 callersFunctionfmt_find_anchor
(results: list[dict])
scripts/k.py:2575
↓ 1 callersFunctionfmt_graph
(data: dict)
scripts/k.py:2652
↓ 1 callersFunctionfmt_health
(report)
scripts/k.py:2377
↓ 1 callersFunctionfmt_i18n_violations
(items: list[dict])
scripts/k.py:2624
↓ 1 callersFunctionfmt_implicit_relations
(items: list[dict])
scripts/k.py:2120
↓ 1 callersFunctionfmt_index_mismatches
(items: list[dict])
scripts/k.py:2479
↓ 1 callersFunctionfmt_new_workspace
(result: dict)
scripts/k.py:2794
↓ 1 callersFunctionfmt_orphans
(orphans)
scripts/k.py:2321
↓ 1 callersFunctionfmt_outline
(outline: dict)
scripts/k.py:2497
↓ 1 callersFunctionfmt_outlinks
(links)
scripts/k.py:2366
↓ 1 callersFunctionfmt_page_list
(pages)
scripts/k.py:2312
↓ 1 callersFunctionfmt_relation_balance
(items: list[dict])
scripts/k.py:2107
↓ 1 callersFunctionfmt_relation_issues
(items: list[dict])
scripts/k.py:2638
↓ 1 callersFunctionfmt_search_results
(results)
scripts/k.py:2299
↓ 1 callersFunctionfmt_section
(sec: dict)
scripts/k.py:2527
↓ 1 callersFunctionfmt_source_issues
六类问题分组打印——每类有不同修复方向,分开看更清晰。
scripts/k.py:2438
↓ 1 callersFunctionfmt_status_issues
(items: list[dict])
scripts/k.py:2095
↓ 1 callersFunctionfmt_to_update
(items)
scripts/k.py:2343
↓ 1 callersFunctionfmt_unsummarized
(items: list[dict])
scripts/k.py:2604
↓ 1 callersFunctionfmt_validate
(result, file_path)
scripts/k.py:2423
↓ 1 callersFunctionformatResult
( result: ToolCallVizData["result"], failLabel: string, emptyLabel: string, )
tools/debug-console/components/ToolCallCard.tsx:65
↓ 1 callersFunctionformatResultPreview
( result: ToolCallVizData["result"] | undefined, locale: Locale, )
tools/debug-console/lib/build-flow-graph.ts:286
↓ 1 callersFunctionformatResultPreview
( result: ToolCallVizData["result"] | undefined, locale: Locale, )
web/lib/flow/build-flow-graph.ts:238
↓ 1 callersFunctionformatValue
(v: unknown)
tools/debug-console/components/ToolCallCard.tsx:54
↓ 1 callersFunctionfriendlyLabel
* 把 normalize 后的路径转成给读者看的友好标签: * wiki/concepts/attention.md → concepts/attention * wiki/sources/vaswani2017_x.md → sources/vaswani2017_
web/components/WikiLink.tsx:70
↓ 1 callersFunctionfriendlyLabel
(path: string)
web/components/GraphView.tsx:219
↓ 1 callersMethodfrom_file
(cls, file_path: Path)
scripts/k.py:237
↓ 1 callersFunctiongetLeftPanelCollapsed
()
web/lib/server-ui-state.ts:28
↓ 1 callersFunctiongetLeftPanelWidth
()
web/lib/server-ui-state.ts:50
↓ 1 callersFunctiongetLocalizedSourceMarkdown
(baseName: string, locale: Locale)
web/app/learn/_data/sources.ts:34
↓ 1 callersFunctiongetOpenAITools
()
tools/debug-console/lib/kb-tools.ts:209
↓ 1 callersFunctiongetPageTree
(dirs?: string[])
web/lib/kb-service.ts:197
↓ 1 callersFunctiongetProvider
(id: ProviderId)
tools/debug-console/lib/providers/index.ts:22
↓ 1 callersFunctiongetResearchSteps
()
web/app/learn/_data/research/index.ts:14
↓ 1 callersFunctiongetRightPanelCollapsed
()
web/lib/server-ui-state.ts:21
↓ 1 callersFunctiongetRightPanelWidth
()
web/lib/server-ui-state.ts:54
↓ 1 callersFunctiongetRootIndexContent
(workspace: string | undefined)
tools/debug-console/app/api/chat/route.ts:33
↓ 1 callersFunctiongetServerShowSelfRefs
()
web/lib/server-locale.ts:16
↓ 1 callersFunctionget_backlinks
(target_path, pages)
scripts/k.py:520
↓ 1 callersFunctionget_outlinks
(source_path, pages)
scripts/k.py:559
↓ 1 callersFunctiongraphSignature
* 「结构签名」——只在图的结构(节点 / 边 / 工具状态 / 思考步骤标题)真正变化时改变; * 正文逐字增长(text-delta)不改变签名。 * * 用途:流式期间 message 每个增量都是新对象,若直接用它当 useMemo 依赖,会导致 * 每个字符都重建 + 重新布局整张
tools/debug-console/components/FlowGraph.tsx:47
↓ 1 callersFunctionhandle
(action: ActionDef)
web/components/ResolveButtons.tsx:49
↓ 1 callersFunctionhandleClick
(id: number)
web/components/learn/StepNav.tsx:43
↓ 1 callersFunctionhandler
(e: KeyboardEvent)
web/components/PageEditor.tsx:128
↓ 1 callersFunctionhasSalient
(s: string)
tools/debug-console/lib/verify-citations.ts:163
↓ 1 callersFunctionhealth_report
(pages, backlinks)
scripts/k.py:906
↓ 1 callersFunctionholdScrollControl
()
web/lib/scroll-memory.ts:138
↓ 1 callersFunctioninferFileType
(path?: string)
tools/debug-console/lib/build-flow-graph.ts:239
↓ 1 callersFunctioninferFileType
(path?: string)
web/lib/flow/build-flow-graph.ts:219
↓ 1 callersFunctioninlineWikiRefsNumbered
( text: string, refMap: Map<string, number>, )
tools/debug-console/lib/wiki-ref.ts:256
↓ 1 callersFunctionisActive
(href: string)
web/components/TopHeader.tsx:35
↓ 1 callersMethodisAvailable
()
tools/debug-console/lib/providers/deepseek.ts:15
↓ 1 callersFunctionisDebug
()
web/components/HashScroller.tsx:186
↓ 1 callersFunctionisKbLink
(href?: string)
web/lib/markdown-render.ts:128
↓ 1 callersFunctionisLocale
(value: unknown)
tools/debug-console/lib/i18n.ts:484
↓ 1 callersFunctionisLocale
(value: unknown)
web/lib/i18n.ts:946
↓ 1 callersFunctionisScrollClaimed
()
web/lib/scroll-memory.ts:160
↓ 1 callersFunctionjudgeAvailable
()
tools/debug-console/lib/citation-judge.ts:29
↓ 1 callersFunctionjudgeCitation
(claim: string, block: string)
tools/debug-console/lib/citation-judge.ts:37
↓ 1 callersFunctionkbApiBase
()
tools/debug-console/components/ToolCallCard.tsx:26
↓ 1 callersFunctionkindBadge
(node: FlowNodeData, t: TFn)
web/components/walkthrough/ReasoningDetailPanel.tsx:54
↓ 1 callersFunctionkindBadgeClass
(kind: string)
tools/debug-console/components/FlowDetailPanel.tsx:153
↓ 1 callersFunctionkindBadgeClass
(kind: string)
tools/debug-console/components/PreviewPanel.tsx:536
↓ 1 callersFunctionkindLabel
(n: FlowNodeData, t: TFn)
tools/debug-console/components/FlowDetailPanel.tsx:141
↓ 1 callersFunctionkindLabel
(n: FlowNodeData, t: TFn)
tools/debug-console/components/PreviewPanel.tsx:523
↓ 1 callersFunctionlayoutGraph
( nodes: GraphNode[], edges: GraphEdge[], direction: "TB" | "LR" = "LR", )
tools/debug-console/lib/build-flow-graph.ts:671
↓ 1 callersFunctionlayoutGraph
( nodes: GraphNode[], _edges: GraphEdge[], opts: LayoutOpts = {}, )
web/lib/flow/build-flow-graph.ts:437
↓ 1 callersMethodlistModels
该 provider 支持的 model id 列表(写死,不去 API 拉)
tools/debug-console/lib/providers/types.ts:120
↓ 1 callersFunctionlistProviders
()
tools/debug-console/lib/providers/index.ts:26
↓ 1 callersFunctionlistTools
()
web/app/api/agent-tool/route.ts:277
↓ 1 callersFunctionlist_all_blocks
返回文档所有 block 的扁平列表 + 顶部统计。 每个 block 含: anchor, kind (heading/paragraph/list/blockquote/table/code/figure), level/title (仅 heading), l
scripts/k.py:1651
↓ 1 callersFunctionloadFragments
()
web/app/walkthrough/page.tsx:11
↓ 1 callersFunctionloadTabs
()
web/components/EditorTabs.tsx:25
↓ 1 callersFunctionload_all_wiki_pages
()
scripts/k.py:265
↓ 1 callersFunctionlocalizeRelation
(t: ReturnType<typeof useT>, raw: string)
web/components/GraphView.tsx:949
↓ 1 callersFunctionmain
外层入口:把 resolve_doc_path 抛的 ValueError(路径越界 / 拒绝绝对路径 / my_thoughts 人类专属区)统一翻译为 exit 2,与其他错误路径(文件不存在 exit 2) 一致,而不是吐 traceback 给调用方(web/CI)。
scripts/k.py:3231
↓ 1 callersFunctionmain
()
scripts/convert.py:246
↓ 1 callersFunctionmakeAnchoredHeading
(level: 1 | 2 | 3 | 4 | 5 | 6)
tools/debug-console/lib/anchor-refs.tsx:174
↓ 1 callersFunctionmakeAnchoredHeading
(level: 1 | 2 | 3 | 4 | 5 | 6)
web/lib/anchor-refs.tsx:219
↓ 1 callersFunctionmakeBareHeading
* "裸"版本:通过 extractTrailingAnchor 剥离 anchor 文本(避免视觉污染), * 但**不**输出 HTML id、**不**渲染 [n] 上标。 * * 适用场景:MiniMarkdown / BlocksTable 等局部预览渲染。 * 这些场景下: *
web/lib/anchor-refs.tsx:288
↓ 1 callersFunctionmakeClaudeCodeProvider
()
tools/debug-console/lib/providers/claude-code.ts:207
↓ 1 callersFunctionmakeCodexProvider
()
tools/debug-console/lib/providers/codex.ts:194
↓ 1 callersFunctionmakeDeepSeekProvider
()
tools/debug-console/lib/providers/deepseek.ts:44
↓ 1 callersFunctionmaskCodeBlocks
(content: string)
tools/debug-console/lib/anchor-refs.tsx:54
↓ 1 callersFunctionmaskCodeBlocks
* 用空白字符替换 markdown 代码块(fenced + inline),让里面的 anchor / wikilink * 不被扫描注册到 registry(避免 ReactMarkdown 不渲染时产生 ghost references)。 * * 用空白替换而非删除:保持原 cont
web/lib/anchor-refs.tsx:79
↓ 1 callersFunctionmask_js_comments
把 JS/TS 注释(// 单行 + /* */ 多行)替换为等长空白,保留偏移与行号。
scripts/k.py:166
↓ 1 callersFunctionmask_jsx_expressions
把 JSX 的单行 {…} 表达式替换为等长空白(保留偏移与行号),从最内层反复剥到无嵌套。 用途:硬编码中文混排被 `{...}` 表达式打断时(如 `<span>共 {n} 条</span>`), JSX_TEXT_CN_RE 的字符类排除了 `{` `}` 导致跨表达式的中文
scripts/k.py:180
↓ 1 callersFunctionmatchHits
(claim: NumTokens, block: NumTokens)
tools/debug-console/lib/verify-citations.ts:154
← previousnext →301–400 of 931, ranked by callers