MCPcopy Create free account

hub / github.com/andylow92/file-system-like-github / functions

Functions473 in github.com/andylow92/file-system-like-github

↓ 5 callersFunctionseedPair
(opts: { channel: string; slug: string; draft: string; final: string; targetPath?: string;
apps/api/src/routes/feedback.test.ts:42
↓ 5 callersFunctionselectNode
(path: string)
apps/web/src/components/GlobalLayout.tsx:633
↓ 5 callersFunctionsplitFrontmatter
(raw: string)
packages/shared/src/markdown.ts:68
↓ 5 callersFunctionstripAnchor
(line: string)
packages/shared/src/blocks.ts:74
↓ 5 callersFunctionvalidateMove
(sourcePath: string, targetDir: string)
apps/web/src/components/GlobalLayout.tsx:318
↓ 4 callersFunctionapi
( method: string, pathname: string, options: { body?: unknown; actor?: string } = {}, )
apps/api/src/routes/events.test.ts:93
↓ 4 callersFunctionapi
( method: string, pathname: string, options: { body?: unknown } = {}, )
apps/api/src/routes/maintenance.test.ts:25
↓ 4 callersFunctioncategoryOf
(proposal: ProposalRecord)
packages/shared/src/proposalStats.ts:54
↓ 4 callersFunctioncreateFileRepository
(pathResolver: PathResolver)
apps/api/src/storage/fileRepository.ts:28
↓ 4 callersFunctiondecode
Decode the JSON payload our `tool()` wrapper packs into a single text block.
apps/mcp/src/server.test.ts:17
↓ 4 callersFunctionestimateTokens
(text: string)
packages/shared/src/context.ts:56
↓ 4 callersFunctionextractTags
(raw: string)
packages/shared/src/markdown.ts:229
↓ 4 callersFunctionfeedbackMarker
(draftPath: string, finalPath: string)
packages/shared/src/feedback.ts:177
↓ 4 callersFunctionfetchFile
(path: string)
apps/web/src/api/files.ts:78
↓ 4 callersFunctionflush
()
packages/shared/src/semantic.ts:142
↓ 4 callersFunctionopenEventStream
* Open the SSE stream and collect VaultEvents. Exposes `waitFor` (resolves when * a matching event arrives, with a timeout so tests can't hang) and `
apps/api/src/routes/events.test.ts:20
↓ 4 callersMethodpublish
(event: VaultEvent)
apps/api/src/events/eventBus.ts:13
↓ 4 callersFunctionsemanticSearch
( documents: SemanticDocument[], query: string, options: SemanticSearchOptions = {}, )
packages/shared/src/semantic.ts:338
↓ 4 callersFunctionsummarizeEval
(results: EvalCaseResult[], k: number)
packages/shared/src/retrievalEval.ts:100
↓ 4 callersMethodupdateMarkdownFile
(logicalPath: string, content: string)
apps/api/src/storage/fileRepository.ts:22
↓ 4 callersFunctionuseVaultEvents
(options: UseVaultEventsOptions)
apps/web/src/hooks/useVaultEvents.ts:65
↓ 3 callersFunctionanchorOnLine
Find a trailing ` ^id` token on a single line (no code-fence context).
packages/shared/src/blocks.ts:79
↓ 3 callersFunctionapi
( method: string, pathname: string, options: { body?: unknown } = {}, )
apps/api/src/routes/skills.test.ts:20
↓ 3 callersFunctionblockRange
(lines: string[], start: number, end: number)
packages/shared/src/blocks.ts:188
↓ 3 callersFunctionbuildSnippet
(line: string, query: string, maxLength = 160)
packages/shared/src/search.ts:17
↓ 3 callersFunctioncolorForTag
(tag: string)
apps/web/src/components/graphLayout.ts:174
↓ 3 callersMethodcreate
(input: CreateProposalInput)
apps/api/src/storage/proposalStore.ts:25
↓ 3 callersMethodcreateDirectory
(logicalPath: string)
apps/api/src/storage/fileRepository.ts:19
↓ 3 callersMethoddeletePath
(logicalPath: string, options?: DeleteOptions)
apps/api/src/storage/fileRepository.ts:24
↓ 3 callersFunctiondropTargetKeyFor
(node: FileNode)
apps/web/src/components/GlobalLayout.tsx:313
↓ 3 callersFunctionensureFresh
()
apps/api/src/index/vaultIndex.ts:153
↓ 3 callersFunctionfileFor
(id: string)
apps/api/src/storage/proposalStore.ts:39
↓ 3 callersFunctionisOwnDrag
( event?: DragEvent<HTMLElement> | DragEvent<HTMLDivElement> | DragEvent<HTMLUListElement>, )
apps/web/src/components/GlobalLayout.tsx:362
↓ 3 callersFunctionlabelOf
Display label for a note path: the basename without the `.md` extension.
packages/shared/src/feedback.ts:161
↓ 3 callersFunctionmovePathTo
(sourcePath: string, targetDir: string)
apps/web/src/components/GlobalLayout.tsx:338
↓ 3 callersFunctionpatchPath
(fromPath: string, toPath: string)
apps/api/src/routes/files.test.ts:106
↓ 3 callersFunctionrankByText
* The lexical engine: rank notes by full-text (body) + filename substring match, * highest occurrence count first. Shared by `/api/search` (which sli
apps/api/src/routes/files.ts:872
↓ 3 callersMethodrankedChunks
Ranked chunks carrying full text — used to assemble context bundles.
apps/api/src/index/vaultIndex.ts:38
↓ 3 callersFunctionreadProposal
(file: string)
apps/api/src/storage/proposalStore.ts:41
↓ 3 callersMethodrecord
(entry: Omit<AuditEntry, 'ts'>)
apps/api/src/storage/auditLog.ts:12
↓ 3 callersFunctionrefreshCurrentFile
(path = selectedFilePath)
apps/web/src/App.tsx:150
↓ 3 callersFunctionrefreshTreeAndCurrentFile
(path = selectedFilePath)
apps/web/src/App.tsx:164
↓ 3 callersFunctionresolve
Resolve a logical path against the corpus, tolerating a missing `.md`.
packages/shared/src/feedback.ts:431
↓ 3 callersFunctionresolveLogicalPath
* Resolve a file address (either `path=` or `id=`) into a logical path. The * caller passes the URL search params; we prefer `path` when both are giv
apps/api/src/routes/files.ts:325
↓ 3 callersFunctionseed
(notePath: string, content: string)
apps/api/src/routes/proposalStats.test.ts:49
↓ 3 callersFunctionseed
(notePath: string, content: string)
apps/api/src/routes/feedback.test.ts:38
↓ 3 callersFunctionseed
(notePath: string, content: string)
apps/api/src/routes/schema.test.ts:33
↓ 3 callersFunctionsendJson
(res: http.ServerResponse, statusCode: number, body: ApiResponse<T>)
apps/api/src/server.ts:74
↓ 3 callersFunctionshowInfoModal
(title: string, description: string, variant: 'info' | 'error' = 'error')
apps/web/src/App.tsx:111
↓ 3 callersFunctionstripQuotes
(value: string)
packages/shared/src/markdown.ts:198
↓ 3 callersMethodsubscribe
Subscribe to events; returns an unsubscribe function.
apps/api/src/events/eventBus.ts:15
↓ 3 callersFunctiontargetDirectoryFor
(node: FileNode)
apps/web/src/components/GlobalLayout.tsx:309
↓ 3 callersFunctiontoggleFolder
(path: string)
apps/web/src/components/GlobalLayout.tsx:523
↓ 3 callersFunctionwriteLocalStorage
(key: string, value: string)
apps/web/src/components/GlobalLayout.tsx:213
↓ 2 callersFunctionaddEdge
(source: string, rawTarget: string, type?: string)
packages/shared/src/graph.ts:203
↓ 2 callersFunctionadjustZoom
(factor: number)
apps/web/src/components/KnowledgeGraph.tsx:179
↓ 2 callersFunctionapi
( method: string, pathname: string, options: { body?: unknown } = {}, )
apps/api/src/routes/proposalStats.test.ts:36
↓ 2 callersFunctionbootstrap
()
apps/mcp/src/server.ts:777
↓ 2 callersFunctionbuildContextNeighbors
Build focus-note + backlink neighbor passages for a context bundle.
apps/api/src/routes/files.ts:990
↓ 2 callersFunctionbuildModifiedMap
* Build a `logical path → last-modified ISO` map from each note's mtime, used to * feed the maintenance scan's freshness ("stale but load-bearing") d
apps/api/src/routes/files.ts:1491
↓ 2 callersFunctionbuildSemanticIndex
( documents: SemanticDocument[], options: { chunkSize?: number } = {}, )
packages/shared/src/semantic.ts:250
↓ 2 callersFunctionbuildVector
(tokens: string[], idf: (term: string) => number)
packages/shared/src/semantic.ts:179
↓ 2 callersFunctionchoose
(item: DisplayItem | undefined)
apps/web/src/components/SearchDialog.tsx:90
↓ 2 callersFunctionclaim
(relativePath: string)
apps/api/src/events/watcher.ts:89
↓ 2 callersFunctioncollect
(key: string, value: string)
packages/shared/src/graph.ts:123
↓ 2 callersFunctioncopyToClipboard
* Copy `value` to the clipboard, falling back to a hidden textarea + * `execCommand('copy')` when the async Clipboard API is unavailable (older * br
apps/web/src/components/MarkdownPreviewPane.tsx:43
↓ 2 callersFunctioncountWords
Count whitespace-delimited words.
packages/shared/src/feedback.ts:223
↓ 2 callersFunctioncreateAuditLog
(rootPath: string)
apps/api/src/storage/auditLog.ts:19
↓ 2 callersFunctioncreateEventBus
()
apps/api/src/events/eventBus.ts:18
↓ 2 callersFunctioncreateProposalStore
(rootPath: string)
apps/api/src/storage/proposalStore.ts:36
↓ 2 callersFunctioncreateQuestionLog
(rootPath: string)
apps/api/src/storage/questionLog.ts:22
↓ 2 callersFunctioncreateVaultIndex
(options: { repository: FileRepository; eventBus: EventBus; })
apps/api/src/index/vaultIndex.ts:55
↓ 2 callersFunctioncurrentNoteEtag
* The current etag of a note, computed exactly as `loadFileFromContext` does * (`sha1(content + lastModified)`), or `undefined` if the file can't be
apps/api/src/routes/files.ts:1469
↓ 2 callersFunctiondeclaredType
A note's declared frontmatter `type:`, normalized to lowercase, or undefined.
packages/shared/src/schema.ts:206
↓ 2 callersFunctiondefaultContentRoot
()
apps/api/src/config.ts:17
↓ 2 callersFunctiondeltaLabel
Signed word-delta label, e.g. `+4`, `-21`, `0`.
packages/shared/src/feedback.ts:376
↓ 2 callersMethodemit
(e: VaultEvent)
apps/web/src/hooks/__tests__/useVaultEvents.test.ts:109
↓ 2 callersFunctionensureInsideRoot
(absolutePath: string)
apps/api/src/storage/pathResolver.ts:55
↓ 2 callersFunctionfetchProposals
(status?: ProposalStatus)
apps/web/src/api/files.ts:166
↓ 2 callersFunctionfileAndReject
File a proposal and immediately reject it (reject never touches the vault).
apps/api/src/routes/proposalStats.test.ts:53
↓ 2 callersFunctionfindNode
(nodePath: string)
apps/web/src/components/GlobalLayout.tsx:300
↓ 2 callersFunctionfindPathByNoteId
* Walk the vault to find the note whose frontmatter `id:` matches. Currently * scans every note on each call — fine for a local single-user vault; an
apps/api/src/routes/files.ts:303
↓ 2 callersFunctionflattenMarkdownPaths
(nodes: TreeNode[])
apps/api/src/routes/files.ts:380
↓ 2 callersFunctionhandleFileRoutes
( req: http.IncomingMessage, res: http.ServerResponse, dependencies: FileRouteDependencies, )
apps/api/src/routes/files.ts:1771
↓ 2 callersFunctionhandleItemDragOver
(event: DragEvent<HTMLElement>, node: FileNode)
apps/web/src/components/GlobalLayout.tsx:388
↓ 2 callersFunctionhashString
Deterministic 32-bit FNV-1a hash of a string.
apps/web/src/components/graphLayout.ts:22
↓ 2 callersFunctionlabelForPath
Display label for a node id: the basename without the `.md` extension.
packages/shared/src/graph.ts:148
↓ 2 callersFunctionlabelOf
Display label for a note path: the basename without the `.md` extension.
packages/shared/src/schema.ts:232
↓ 2 callersFunctionlink
(a: string, b: string)
apps/web/src/components/graphLayout.ts:144
↓ 2 callersFunctionmarkChanged
(paths: string[])
apps/api/src/index/vaultIndex.ts:76
↓ 2 callersFunctionmarkCodeFenceLines
Mark lines that are inside a fenced code block so we can ignore anchors there.
packages/shared/src/blocks.ts:42
↓ 2 callersFunctionnodeColor
(node: GraphNode)
apps/web/src/components/KnowledgeGraph.tsx:31
↓ 2 callersFunctionnormalizeLogicalPath
(logicalPath: string)
apps/api/src/storage/pathResolver.ts:27
↓ 2 callersFunctionnormalizeType
Normalize a raw `type:` value for lookup: trimmed, lowercased.
packages/shared/src/schema.ts:201
↓ 2 callersFunctionqueryRankedChunks
( index: SemanticIndex, query: string, options: RankQueryOptions = {}, )
packages/shared/src/semantic.ts:284
↓ 2 callersFunctionquerySemanticIndex
( index: SemanticIndex, query: string, options: RankQueryOptions = {}, )
packages/shared/src/semantic.ts:318
↓ 2 callersFunctionrecordAuditAs
Best-effort audit write attributed to a specific actor (the proposer).
apps/api/src/routes/files.ts:1371
↓ 2 callersFunctionreportFail
(label, value)
scripts/doctor.mjs:20
↓ 2 callersFunctionreportOk
(label, value)
scripts/doctor.mjs:16
↓ 2 callersFunctionresolve
(decision: 'approve' | 'reject')
apps/web/src/components/ReviewPanel.tsx:120
← previousnext →101–200 of 473, ranked by callers