MCPcopy Create free account

hub / github.com/Qinbf/groundmap / functions

Functions931 in github.com/Qinbf/groundmap

↓ 3 callersFunctionnormalizeBlockAnchors
(content: string)
web/lib/markdown-render.ts:109
↓ 3 callersFunctionpanelStyle
(dark: boolean)
web/components/GraphView.tsx:243
↓ 3 callersFunctionparseWikilinks
(content: string)
web/lib/markdown.ts:184
↓ 3 callersFunctionparse_blocks_with_anchors
读取 md 文件,切分块,把块末尾已有的锚点回填到 block.anchor。
scripts/k.py:1533
↓ 3 callersFunctionpreprocessWikiLinks
(content: string)
web/lib/markdown-render.ts:113
↓ 3 callersFunctionprojectRoot
()
web/lib/kb.ts:24
↓ 3 callersFunctionpushNode
(key: string, data: FlowNodeData)
tools/debug-console/lib/build-flow-graph.ts:326
↓ 3 callersFunctionpushNode
(key: string, data: FlowNodeData)
web/lib/flow/build-flow-graph.ts:274
↓ 3 callersFunctionreadState
()
web/lib/scroll-memory.ts:55
↓ 3 callersFunctionrefDisplayText
(ref: WikiRef)
tools/debug-console/lib/wiki-ref.ts:128
↓ 3 callersFunctionrefToHref
(ref: WikiRef)
tools/debug-console/lib/wiki-ref.ts:135
↓ 3 callersFunctionresolveWorkspace
()
web/lib/kb.ts:51
↓ 3 callersFunctionrunParallelSynthCalls
* 并行执行多个 synthetic call。前端 UI 体验: * 1. 所有 tool-call 卡片瞬间批量出现(pending 状态) * 2. 后端 Promise.all 并行 executeTool * 3. 所有完成后批量 emit tool-result(按 spec
tools/debug-console/lib/mode-augment.ts:135
↓ 3 callersMethodrunTurn
跑一个 turn,流式输出事件
tools/debug-console/lib/providers/types.ts:122
↓ 3 callersFunctionsafeEnqueue
(chunk: Uint8Array)
tools/debug-console/app/api/chat/route.ts:140
↓ 3 callersFunctionsaveTabs
(tabs: TabEntry[])
web/components/EditorTabs.tsx:44
↓ 3 callersFunctionsseLine
(obj: unknown)
tools/debug-console/lib/sse.ts:6
↓ 3 callersFunctionstampEntryKey
(key: string)
web/lib/scroll-memory.ts:59
↓ 3 callersFunctionstrip_workspace_prefix
容错:把误带的 `workspaces/<当前ws>/` 前缀剥掉。 convert.py 的 `--dir` 用仓库根相对路径(`workspaces/<ws>/raw/...`),而 k.py 的路径参数相对**当前 workspace**(`raw/...`)——两套口径新手
scripts/k.py:1440
↓ 3 callersFunctionuseSelfRefs
()
web/lib/i18n-client.tsx:101
↓ 3 callersFunctionwriteFile
(relPath: string, content: string)
web/lib/kb.ts:212
↓ 2 callersFunction_as_str_list
YAML 字段可能是 list 或单字符串;都规范化为字符串列表。 如果用户写 `tags: foo` 而非 `tags: [foo]`,python-frontmatter 返回字符串。 旧逻辑 `list(meta.get("tags") or [])` 会把字符串拆成字符列表
scripts/k.py:206
↓ 2 callersFunction_atomic_write_text
write-then-rename 原子写:先写到同目录的临时文件再 os.replace 重命名。 保证别的进程读 target 时只能看到完整旧内容或完整新内容,不会读到半截。 Windows 兼容:目标文件被另一进程持 read handle 时 os.replace 抛 P
scripts/convert.py:26
↓ 2 callersFunction_extract_keys
抽出对象体里所有 "key": ... 的 key(key 一律是双引号字符串字面量)。
scripts/tests/test_i18n_sync.py:63
↓ 2 callersFunction_extract_locale_block
从 TRANSLATIONS = { zh: {...}, en: {...} } as const 中切出某 locale 的对象体。 用大括号配平定位,避免被 value 里的 `}`/`{`(如本项目没有,但稳妥)误切。 返回 `{ ... }` 内部那段(不含最外层花括号)
scripts/tests/test_i18n_sync.py:41
↓ 2 callersMethod_extract_pattern
(self)
scripts/tests/test_release_guards.py:78
↓ 2 callersFunction_glob_scope_to_paths
index 页 frontmatter 的 scope 字段 → 实际匹配的 wiki .md 路径集合。 支持: wiki/concepts/* 目录下直接 .md wiki/** 递归所有
scripts/k.py:1038
↓ 2 callersMethod_grep
(self, pattern: str, lines: list[str])
scripts/tests/test_release_guards.py:84
↓ 2 callersFunction_make_external_project
在 root 下搭一个 workspaces/proj 数据目录(root 即"项目数据根")。
scripts/tests/test_kb_root.py:50
↓ 2 callersFunction_md5_6
(s: str)
scripts/postprocess.py:77
↓ 2 callersFunction_norm_title
归一化标题文本:压空白 + 转小写,用于跨 re-convert 的 title 级匹配。
scripts/postprocess.py:141
↓ 2 callersFunction_normalize_for_hash
生成 hash 用的归一化文本:去 markdown 标记、压空白。 pipe-1:旧版会 `[:64]` 截断——导致超过 64 字边界的关键数字 / 论断被编辑时 归一化文本不变、hash6 与锚点都不变,`k.py list-broken-refs` 这条安全网兜不住
scripts/postprocess.py:58
↓ 2 callersFunction_read_ts
(rel: str)
scripts/tests/test_i18n_sync.py:28
↓ 2 callersFunction_safe_join_under_root
把"看起来像项目内相对路径"的字符串安全拼到 PROJECT_ROOT 下。 用途:当 wiki 内容里的 [[link]] 目标拼接到磁盘路径时,必须防止 `[[raw/../etc/passwd]]` 这种越界——我们扫描时会试图打开它检查存在性, 虽然内容不会回到响应
scripts/k.py:1418
↓ 2 callersFunctionactivate
()
web/components/walkthrough/WalkthroughClient.tsx:84
↓ 2 callersFunctionadd
(rawPath: string, rawAnchor?: string)
tools/debug-console/lib/build-flow-graph.ts:121
↓ 2 callersFunctionbucketOf
(p: string)
web/components/BacklinksPanel.tsx:41
↓ 2 callersFunctionbuildHeaders
构造调 web `/api/agent-tool` 的请求头;上下文带合法 workspace 时附 Cookie。
tools/debug-console/lib/kb-http-client.ts:28
↓ 2 callersFunctioncheckWritePermission
( relPath: string, newContent?: string, )
web/lib/permissions.ts:87
↓ 2 callersFunctionclassifyCall
(name: string, args: Record<string, unknown>)
tools/debug-console/lib/build-flow-graph.ts:154
↓ 2 callersFunctioncleanup
()
web/components/HashScroller.tsx:290
↓ 2 callersFunctioncollectRefs
(texts: string[])
tools/debug-console/lib/wiki-ref.ts:182
↓ 2 callersFunctioncountBy
把 [key,count] 列表按 count 降序排,纯展示层用。
web/app/(shell)/page.tsx:88
↓ 2 callersFunctioncurrentHref
()
web/components/ScrollMemory.tsx:31
↓ 2 callersFunctionextractPathsFromLinkResult
从 backlinks/outlinks 结果里抽 paths
tools/debug-console/lib/mode-augment.ts:66
↓ 2 callersFunctionfallbackTypeByPath
raw/ 与 my_thoughts/ 下的文件用专门的虚拟 type,区别于 wiki schema 的真实 type
web/lib/kb-service.ts:94
↓ 2 callersFunctionfinalize
( orderedKeys: string[], nodeMap: Map<string, FlowNodeData>, edges: GraphEdge[], )
tools/debug-console/lib/build-flow-graph.ts:631
↓ 2 callersFunctionfinalize
(result: { ok: boolean; stdout: string; stderr: string })
web/lib/git.ts:16
↓ 2 callersFunctionfinalize
( orderedKeys: string[], nodeMap: Map<string, FlowNodeData>, edges: GraphEdge[], )
web/lib/flow/build-flow-graph.ts:392
↓ 2 callersFunctionfinalizeWithoutTools
()
tools/debug-console/lib/agent-loop.ts:274
↓ 2 callersFunctionfindContainer
()
web/components/ScrollMemory.tsx:26
↓ 2 callersFunctionfind_conflicts
(pages)
scripts/k.py:461
↓ 2 callersFunctionfind_orphans
(pages, backlinks)
scripts/k.py:447
↓ 2 callersFunctionfind_section_by_title
模糊:标题完全相等(去空白、忽略大小写)
scripts/section_parser.py:352
↓ 2 callersFunctionfind_to_update
(pages)
scripts/k.py:499
↓ 2 callersFunctionflatten_sections
深度优先扁平化所有 sections。
scripts/section_parser.py:332
↓ 2 callersFunctionforceNewEntryKey
()
web/lib/scroll-memory.ts:93
↓ 2 callersFunctiongetBacklinks
(targetPath: string)
web/lib/kb-service.ts:207
↓ 2 callersFunctiongetInt
(args: Record<string, unknown>, key: string)
web/app/api/agent-tool/route.ts:41
↓ 2 callersFunctiongetOutlinks
(sourcePath: string)
web/lib/kb-service.ts:243
↓ 2 callersFunctiongetServerLocale
()
tools/debug-console/lib/server-locale.ts:12
↓ 2 callersFunctiongetSourceMarkdown
(name: string)
web/app/learn/_data/sources.ts:21
↓ 2 callersFunctionget_project_root
获取项目根目录(scripts/ 的父目录)
scripts/convert.py:103
↓ 2 callersFunctionhardNumericTokens
(s: string)
tools/debug-console/lib/verify-citations.ts:105
↓ 2 callersFunctionhasAnswerSection
文本里是否出现了 ANSWER 段标记(容忍各种间隔与加粗包裹)
tools/debug-console/lib/agent-loop.ts:53
↓ 2 callersFunctioninSection
(href: string)
web/components/DemosNav.tsx:26
↓ 2 callersFunctioninlineWikiRefs
(text: string)
tools/debug-console/lib/wiki-ref.ts:161
↓ 2 callersMethodisAvailable
env 是否配置好
tools/debug-console/lib/providers/types.ts:117
↓ 2 callersFunctionisFrontmatterLocked
检查 frontmatter 是否含 locked / human-only 锁。
web/lib/permissions.ts:26
↓ 2 callersFunctionisWordBoundary
字边界判定:空白、标点、CJK 与 ASCII 切换处都算边界
web/lib/markdown.ts:213
↓ 2 callersFunctionjoinPath
(segments: string[])
web/app/api/pages/[...path]/route.ts:25
↓ 2 callersFunctionlistPages
(dirs: string[] = DEFAULT_DIRS)
web/lib/kb-service.ts:177
↓ 2 callersFunctionlist_bare_claims
扫 wiki paragraph / list / blockquote 块:含具体数字(百分比 / 量级 / NLP 指标 / 年份 / 金额 / 倍数)但**不**含 [[raw/...]] 引用、也**不**含 [需要来源] 占位 → 列入"裸论断"。 跳过:
scripts/k.py:1953
↓ 2 callersFunctionlist_broken_refs
扫描 wiki/ 所有页面里带 ^anchor 的双链,列出失效的引用。 覆盖两类目标: - [[raw/...#^anchor]] — raw 文件不存在 / anchor 不存在(raw 有 outline,但 anchor 集合直接从 .md 扫,与
scripts/k.py:1859
↓ 2 callersFunctionlist_coarse_citations
扫 wiki paragraph / list / blockquote 块:含具体数字论断、且**只挂整页 `[[raw/X]]` 引用、未精确到块级 `[[raw/X#^anchor]]`** → 列入「引用粒度不足」。 与 list_bare_claims 互补:bare =
scripts/k.py:2017
↓ 2 callersFunctionlist_i18n_violations
扫 web/ 下 .tsx,找硬编码中文(JSX text + UI 属性)。 跳过: - node_modules / .next / web/app/api/(API 响应不是 UI) - i18n.ts / i18n-client.tsx(基建自身)
scripts/k.py:2168
↓ 2 callersFunctionlist_implicit_relations
扫 plain wikilink(alias / 无 RELATION)+ 判断/立场动词,提示应补 RELATION。 跳过:raw 链接(走 anchor 编号)、已合规的 RELATION 链接、自链、 归档区 / index / stub 标签、callout、表格行、代码
scripts/k.py:837
↓ 2 callersFunctionlist_index_count_mismatches
扫所有 type=index 页:scope 实际匹配数 vs 写死的 page_count 不等 → 列出。 page_count 语义:该索引覆盖的页面数量。drift 通常意味着新加的页面没被加进 索引、或者旧页面已 deprecate 但 page_count 没改。
scripts/k.py:1077
↓ 2 callersFunctionlist_relation_balance
扫全库 wikilinks:单一关系词频次 / 总关系引用 > threshold 则报警。 Args: min_total: 关系词总数 < 此值不报警(避免小样本噪声;5 个关系词以下说明 wiki 还在早期,单一关系词主导是正常起步阶段,
scripts/k.py:724
↓ 2 callersFunctionlist_relation_issues
扫所有 wikilinks,找出"看起来像关系类型但不在 RELATION_TYPES 白名单"的引用。 典型场景: - 拼写错误:[[X|SUPORTS]]、[[X|EXTNDS]] - 用了非标准关系:[[X|IMPLEMENTS]]、[[X|CONTRADIC
scripts/k.py:681
↓ 2 callersFunctionlist_source_count_issues
扫所有 wiki 页,六类问题: 1. count-mismatch — source_count 字段 ≠ sources 数组长度 2. missing-source — type ∈ CLAIM_TYPES 且 source_count == 0 但未标 stub 3
scripts/k.py:1148
↓ 2 callersFunctionlist_status_issues
扫 `status: reviewed` 但 `last_modified_by != Human` 的页面: reviewed("已审阅")语义 = 人类审阅过;LLM 自己写入的页面不该自称已审, 应保持 `draft`,由人类审阅后才改成 `reviewed` + `last_
scripts/k.py:2074
↓ 2 callersFunctionlist_unsummarized_sections
扫 wiki 中 [[raw/...#^h-...]] 形式的章节级引用,列出对应 raw outline 里 agent_summary 为 null 的章节(即被引用却没回填摘要)。 去重:同一 (raw, anchor) 只列一次,但带上所有引用方供溯源。
scripts/k.py:2239
↓ 2 callersFunctionlocalizeType
(t: ReturnType<typeof useT>, raw: string)
web/components/GraphView.tsx:942
↓ 2 callersFunctionmake_unique
(base: str)
scripts/postprocess.py:103
↓ 2 callersFunctionmetaFromFrontmatter
(p: string, fm: PageFrontmatter)
web/lib/kb-service.ts:110
↓ 2 callersFunctionmintKey
()
web/lib/scroll-memory.ts:70
↓ 2 callersFunctionmixBlack
(hex: string, amount: number)
web/components/GraphView.tsx:230
↓ 2 callersFunctionnodeSize
(kind: NodeKind, synthetic?: boolean)
tools/debug-console/lib/build-flow-graph.ts:661
↓ 2 callersFunctionnodeSize
(kind: NodeKind)
web/lib/flow/build-flow-graph.ts:425
↓ 2 callersFunctionnormalizeAbsToRel
(p: string)
tools/debug-console/lib/build-flow-graph.ts:222
↓ 2 callersFunctionnormalizeAbsToRel
(p: string)
web/lib/flow/build-flow-graph.ts:202
↓ 2 callersFunctionnormalizePath
(p: string)
web/lib/kb-service.ts:89
↓ 2 callersFunctionnow
()
web/lib/scroll-memory.ts:49
↓ 2 callersFunctionpost
(tool: string, args: Record<string, unknown>)
tools/debug-console/components/PreviewPanel.tsx:100
↓ 2 callersFunctionread
(f: string)
web/app/walkthrough/page.tsx:13
↓ 2 callersFunctionreadPanelWidth
* 返回 clamp 后的侧栏宽度(px),或 null(cookie 不存在 → 由 client 用 default)。 * * server 端就 clamp 到 [min, max],让首帧 SSR 宽度恒在合法区间——即使 cookie * 被手改成越界值也不会渲染出畸形宽度。与 c
web/lib/server-ui-state.ts:42
↓ 2 callersFunctionreadWithSourcesFallback
* 锚点查找 fallback:AI 常把一条**真实的 raw 块锚点**(如 [[raw/papers/2024-10-lightrag#^p-54]]) * 误标到它正在读的摘要页路径上(写成 [[wiki/sources/lightrag#^p-54]])——锚点是对的、路径错了。 *
web/app/api/agent-tool/route.ts:81
↓ 2 callersFunctionrefToToolCall
(ref: WikiRef)
tools/debug-console/lib/wiki-ref.ts:271
↓ 2 callersFunctionregistry
()
tools/debug-console/lib/providers/index.ts:11
← previousnext →101–200 of 931, ranked by callers