Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Qinbf/groundmap
/ functions
Functions
931 in github.com/Qinbf/groundmap
⨍
Functions
931
◇
Types & classes
173
↓ 1 callers
Function
firstBlockOf
* 从 H 段整章 markdown 中提取第一个 block(首段/首列表/首表格/首代码块), * 让 hover 预览保持"一段的尺度"而非整章全景。 * * 启发式: * 1. 跳过开头的 H 标题行(## ...)与紧随的空行 * 2. 第一个非空起始行决定 block 类型:
web/components/WikiLink.tsx:158
↓ 1 callers
Function
flashHighlight
给目标块加一段渐隐高亮,提示用户「就是这一段」。重复点同一锚点也能重新触发。 * 传入多个元素(标题 + 其正文)时用「仅背景」变体连成一片,不给每段都套外圈。
web/components/HashScroller.tsx:86
↓ 1 callers
Function
flattenMessages
把对话历史拼成一个 prompt 串给 CC(CC 非交互模式只接受单 prompt) * 注:system 不在这里拼——通过 CLI 的 --append-system-prompt 单独传,让 CC 真当 system 处理
tools/debug-console/lib/providers/claude-code.ts:32
↓ 1 callers
Function
flattenMessages
(system: string, messages: ChatMessage[])
tools/debug-console/lib/providers/codex.ts:19
↓ 1 callers
Function
fmt_annotate
(result: dict)
scripts/k.py:2586
↓ 1 callers
Function
fmt_backlinks
(links)
scripts/k.py:2353
↓ 1 callers
Function
fmt_bare_claims
(items: list[dict])
scripts/k.py:2671
↓ 1 callers
Function
fmt_block
(blk: dict)
scripts/k.py:2540
↓ 1 callers
Function
fmt_blocks
(data: dict)
scripts/k.py:2548
↓ 1 callers
Function
fmt_broken_refs
(items: list[dict])
scripts/k.py:2593
↓ 1 callers
Function
fmt_coarse_citations
(items: list[dict])
scripts/k.py:2686
↓ 1 callers
Function
fmt_conflicts
(conflicts)
scripts/k.py:2330
↓ 1 callers
Function
fmt_find_anchor
(results: list[dict])
scripts/k.py:2575
↓ 1 callers
Function
fmt_graph
(data: dict)
scripts/k.py:2652
↓ 1 callers
Function
fmt_health
(report)
scripts/k.py:2377
↓ 1 callers
Function
fmt_i18n_violations
(items: list[dict])
scripts/k.py:2624
↓ 1 callers
Function
fmt_implicit_relations
(items: list[dict])
scripts/k.py:2120
↓ 1 callers
Function
fmt_index_mismatches
(items: list[dict])
scripts/k.py:2479
↓ 1 callers
Function
fmt_new_workspace
(result: dict)
scripts/k.py:2794
↓ 1 callers
Function
fmt_orphans
(orphans)
scripts/k.py:2321
↓ 1 callers
Function
fmt_outline
(outline: dict)
scripts/k.py:2497
↓ 1 callers
Function
fmt_outlinks
(links)
scripts/k.py:2366
↓ 1 callers
Function
fmt_page_list
(pages)
scripts/k.py:2312
↓ 1 callers
Function
fmt_relation_balance
(items: list[dict])
scripts/k.py:2107
↓ 1 callers
Function
fmt_relation_issues
(items: list[dict])
scripts/k.py:2638
↓ 1 callers
Function
fmt_search_results
(results)
scripts/k.py:2299
↓ 1 callers
Function
fmt_section
(sec: dict)
scripts/k.py:2527
↓ 1 callers
Function
fmt_source_issues
六类问题分组打印——每类有不同修复方向,分开看更清晰。
scripts/k.py:2438
↓ 1 callers
Function
fmt_status_issues
(items: list[dict])
scripts/k.py:2095
↓ 1 callers
Function
fmt_to_update
(items)
scripts/k.py:2343
↓ 1 callers
Function
fmt_unsummarized
(items: list[dict])
scripts/k.py:2604
↓ 1 callers
Function
fmt_validate
(result, file_path)
scripts/k.py:2423
↓ 1 callers
Function
formatResult
( result: ToolCallVizData["result"], failLabel: string, emptyLabel: string, )
tools/debug-console/components/ToolCallCard.tsx:65
↓ 1 callers
Function
formatResultPreview
( result: ToolCallVizData["result"] | undefined, locale: Locale, )
tools/debug-console/lib/build-flow-graph.ts:286
↓ 1 callers
Function
formatResultPreview
( result: ToolCallVizData["result"] | undefined, locale: Locale, )
web/lib/flow/build-flow-graph.ts:238
↓ 1 callers
Function
formatValue
(v: unknown)
tools/debug-console/components/ToolCallCard.tsx:54
↓ 1 callers
Function
friendlyLabel
* 把 normalize 后的路径转成给读者看的友好标签: * wiki/concepts/attention.md → concepts/attention * wiki/sources/vaswani2017_x.md → sources/vaswani2017_
web/components/WikiLink.tsx:70
↓ 1 callers
Function
friendlyLabel
(path: string)
web/components/GraphView.tsx:219
↓ 1 callers
Method
from_file
(cls, file_path: Path)
scripts/k.py:237
↓ 1 callers
Function
getLeftPanelCollapsed
()
web/lib/server-ui-state.ts:28
↓ 1 callers
Function
getLeftPanelWidth
()
web/lib/server-ui-state.ts:50
↓ 1 callers
Function
getLocalizedSourceMarkdown
(baseName: string, locale: Locale)
web/app/learn/_data/sources.ts:34
↓ 1 callers
Function
getOpenAITools
()
tools/debug-console/lib/kb-tools.ts:209
↓ 1 callers
Function
getPageTree
(dirs?: string[])
web/lib/kb-service.ts:197
↓ 1 callers
Function
getProvider
(id: ProviderId)
tools/debug-console/lib/providers/index.ts:22
↓ 1 callers
Function
getResearchSteps
()
web/app/learn/_data/research/index.ts:14
↓ 1 callers
Function
getRightPanelCollapsed
()
web/lib/server-ui-state.ts:21
↓ 1 callers
Function
getRightPanelWidth
()
web/lib/server-ui-state.ts:54
↓ 1 callers
Function
getRootIndexContent
(workspace: string | undefined)
tools/debug-console/app/api/chat/route.ts:33
↓ 1 callers
Function
getServerShowSelfRefs
()
web/lib/server-locale.ts:16
↓ 1 callers
Function
get_backlinks
(target_path, pages)
scripts/k.py:520
↓ 1 callers
Function
get_outlinks
(source_path, pages)
scripts/k.py:559
↓ 1 callers
Function
graphSignature
* 「结构签名」——只在图的结构(节点 / 边 / 工具状态 / 思考步骤标题)真正变化时改变; * 正文逐字增长(text-delta)不改变签名。 * * 用途:流式期间 message 每个增量都是新对象,若直接用它当 useMemo 依赖,会导致 * 每个字符都重建 + 重新布局整张
tools/debug-console/components/FlowGraph.tsx:47
↓ 1 callers
Function
handle
(action: ActionDef)
web/components/ResolveButtons.tsx:49
↓ 1 callers
Function
handleClick
(id: number)
web/components/learn/StepNav.tsx:43
↓ 1 callers
Function
handler
(e: KeyboardEvent)
web/components/PageEditor.tsx:128
↓ 1 callers
Function
hasSalient
(s: string)
tools/debug-console/lib/verify-citations.ts:163
↓ 1 callers
Function
health_report
(pages, backlinks)
scripts/k.py:906
↓ 1 callers
Function
holdScrollControl
()
web/lib/scroll-memory.ts:138
↓ 1 callers
Function
inferFileType
(path?: string)
tools/debug-console/lib/build-flow-graph.ts:239
↓ 1 callers
Function
inferFileType
(path?: string)
web/lib/flow/build-flow-graph.ts:219
↓ 1 callers
Function
inlineWikiRefsNumbered
( text: string, refMap: Map<string, number>, )
tools/debug-console/lib/wiki-ref.ts:256
↓ 1 callers
Function
isActive
(href: string)
web/components/TopHeader.tsx:35
↓ 1 callers
Method
isAvailable
()
tools/debug-console/lib/providers/deepseek.ts:15
↓ 1 callers
Function
isDebug
()
web/components/HashScroller.tsx:186
↓ 1 callers
Function
isKbLink
(href?: string)
web/lib/markdown-render.ts:128
↓ 1 callers
Function
isLocale
(value: unknown)
tools/debug-console/lib/i18n.ts:484
↓ 1 callers
Function
isLocale
(value: unknown)
web/lib/i18n.ts:946
↓ 1 callers
Function
isScrollClaimed
()
web/lib/scroll-memory.ts:160
↓ 1 callers
Function
judgeAvailable
()
tools/debug-console/lib/citation-judge.ts:29
↓ 1 callers
Function
judgeCitation
(claim: string, block: string)
tools/debug-console/lib/citation-judge.ts:37
↓ 1 callers
Function
kbApiBase
()
tools/debug-console/components/ToolCallCard.tsx:26
↓ 1 callers
Function
kindBadge
(node: FlowNodeData, t: TFn)
web/components/walkthrough/ReasoningDetailPanel.tsx:54
↓ 1 callers
Function
kindBadgeClass
(kind: string)
tools/debug-console/components/FlowDetailPanel.tsx:153
↓ 1 callers
Function
kindBadgeClass
(kind: string)
tools/debug-console/components/PreviewPanel.tsx:536
↓ 1 callers
Function
kindLabel
(n: FlowNodeData, t: TFn)
tools/debug-console/components/FlowDetailPanel.tsx:141
↓ 1 callers
Function
kindLabel
(n: FlowNodeData, t: TFn)
tools/debug-console/components/PreviewPanel.tsx:523
↓ 1 callers
Function
layoutGraph
( nodes: GraphNode[], edges: GraphEdge[], direction: "TB" | "LR" = "LR", )
tools/debug-console/lib/build-flow-graph.ts:671
↓ 1 callers
Function
layoutGraph
( nodes: GraphNode[], _edges: GraphEdge[], opts: LayoutOpts = {}, )
web/lib/flow/build-flow-graph.ts:437
↓ 1 callers
Method
listModels
该 provider 支持的 model id 列表(写死,不去 API 拉)
tools/debug-console/lib/providers/types.ts:120
↓ 1 callers
Function
listProviders
()
tools/debug-console/lib/providers/index.ts:26
↓ 1 callers
Function
listTools
()
web/app/api/agent-tool/route.ts:277
↓ 1 callers
Function
list_all_blocks
返回文档所有 block 的扁平列表 + 顶部统计。 每个 block 含: anchor, kind (heading/paragraph/list/blockquote/table/code/figure), level/title (仅 heading), l
scripts/k.py:1651
↓ 1 callers
Function
loadFragments
()
web/app/walkthrough/page.tsx:11
↓ 1 callers
Function
loadTabs
()
web/components/EditorTabs.tsx:25
↓ 1 callers
Function
load_all_wiki_pages
()
scripts/k.py:265
↓ 1 callers
Function
localizeRelation
(t: ReturnType<typeof useT>, raw: string)
web/components/GraphView.tsx:949
↓ 1 callers
Function
main
外层入口:把 resolve_doc_path 抛的 ValueError(路径越界 / 拒绝绝对路径 / my_thoughts 人类专属区)统一翻译为 exit 2,与其他错误路径(文件不存在 exit 2) 一致,而不是吐 traceback 给调用方(web/CI)。
scripts/k.py:3231
↓ 1 callers
Function
main
()
scripts/convert.py:246
↓ 1 callers
Function
makeAnchoredHeading
(level: 1 | 2 | 3 | 4 | 5 | 6)
tools/debug-console/lib/anchor-refs.tsx:174
↓ 1 callers
Function
makeAnchoredHeading
(level: 1 | 2 | 3 | 4 | 5 | 6)
web/lib/anchor-refs.tsx:219
↓ 1 callers
Function
makeBareHeading
* "裸"版本:通过 extractTrailingAnchor 剥离 anchor 文本(避免视觉污染), * 但**不**输出 HTML id、**不**渲染 [n] 上标。 * * 适用场景:MiniMarkdown / BlocksTable 等局部预览渲染。 * 这些场景下: *
web/lib/anchor-refs.tsx:288
↓ 1 callers
Function
makeClaudeCodeProvider
()
tools/debug-console/lib/providers/claude-code.ts:207
↓ 1 callers
Function
makeCodexProvider
()
tools/debug-console/lib/providers/codex.ts:194
↓ 1 callers
Function
makeDeepSeekProvider
()
tools/debug-console/lib/providers/deepseek.ts:44
↓ 1 callers
Function
maskCodeBlocks
(content: string)
tools/debug-console/lib/anchor-refs.tsx:54
↓ 1 callers
Function
maskCodeBlocks
* 用空白字符替换 markdown 代码块(fenced + inline),让里面的 anchor / wikilink * 不被扫描注册到 registry(避免 ReactMarkdown 不渲染时产生 ghost references)。 * * 用空白替换而非删除:保持原 cont
web/lib/anchor-refs.tsx:79
↓ 1 callers
Function
mask_js_comments
把 JS/TS 注释(// 单行 + /* */ 多行)替换为等长空白,保留偏移与行号。
scripts/k.py:166
↓ 1 callers
Function
mask_jsx_expressions
把 JSX 的单行 {…} 表达式替换为等长空白(保留偏移与行号),从最内层反复剥到无嵌套。 用途:硬编码中文混排被 `{...}` 表达式打断时(如 `<span>共 {n} 条</span>`), JSX_TEXT_CN_RE 的字符类排除了 `{` `}` 导致跨表达式的中文
scripts/k.py:180
↓ 1 callers
Function
matchHits
(claim: NumTokens, block: NumTokens)
tools/debug-console/lib/verify-citations.ts:154
← previous
next →
301–400 of 931, ranked by callers