Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/afar1/fieldtheory-cli
/ functions
Functions
920 in github.com/afar1/fieldtheory-cli
⨍
Functions
920
◇
Types & classes
221
↓ 109 callers
Method
write
Write a line to the output the user sees (stderr in prod).
src/possible-wizard.ts:25
↓ 100 callers
Function
safe
Wrap an async action with graceful error handling.
src/cli.ts:730
↓ 60 callers
Function
buildCli
()
src/cli.ts:757
↓ 55 callers
Function
makeRecord
(overrides: Partial<BookmarkRecord> = {})
tests/graphql-bookmarks.test.ts:121
↓ 41 callers
Function
isSafeUrl
(url: string)
src/bookmark-enrich.ts:114
↓ 40 callers
Method
close
()
src/prompt.ts:18
↓ 39 callers
Function
captureStdout
(fn: () => Promise<void>)
tests/cli.test.ts:10
↓ 35 callers
Function
getPrompts
()
tests/adjacent-pipeline.test.ts:15
↓ 34 callers
Function
escapeYaml
(value: string)
src/ideas-files.ts:12
↓ 33 callers
Function
printJson
(value: unknown)
src/cli.ts:314
↓ 32 callers
Function
twitterBookmarksIndexPath
()
src/paths.ts:123
↓ 30 callers
Function
mockPrompter
* A Prompter that replays a canned queue of answers and captures every line * the wizard writes. Tests push answers in order; step functions consume
tests/possible-wizard.test.ts:26
↓ 28 callers
Function
makeTweetResult
(overrides: Record<string, any> = {})
tests/graphql-bookmarks.test.ts:35
↓ 28 callers
Function
openDb
(filePath: string)
src/db.ts:20
↓ 27 callers
Function
dataDir
()
src/paths.ts:5
↓ 26 callers
Function
buildIndex
(options?: { force?: boolean })
src/bookmarks-db.ts:436
↓ 25 callers
Function
slug
(name: string)
src/md.ts:78
↓ 23 callers
Function
mdDir
()
src/paths.ts:182
↓ 22 callers
Function
getLibrarian
()
tests/adjacent-librarian.test.ts:23
↓ 21 callers
Function
invokeEngineAsync
(engine: ResolvedEngine, prompt: string, opts: InvokeOptions = {})
src/engine.ts:426
↓ 20 callers
Function
pathExists
(filePath: string)
src/fs.ts:12
↓ 20 callers
Function
printJson
(value: unknown)
src/companion-cli.ts:27
↓ 19 callers
Function
convertTweetToRecord
(tweetResult: any, now: string)
src/graphql-bookmarks.ts:240
↓ 19 callers
Function
ensureMigrations
(db: Database)
src/bookmarks-db.ts:321
↓ 19 callers
Function
fetchBookmarkMediaBatch
( options: { limit?: number; maxBytes?: number; skipProfileImages?: boolean; retryFailed?: boolean; signal?:
src/bookmark-media.ts:264
↓ 19 callers
Function
getRegistry
()
tests/frames-registry.test.ts:20
↓ 19 callers
Function
rgb
(r: number, g: number, b: number)
src/bookmarks-viz.ts:12
↓ 19 callers
Function
stripLlmMarkdownFence
(raw: string)
src/md-fence.ts:29
↓ 19 callers
Function
withAdjacentStore
(fn: () => Promise<void>)
tests/adjacent-librarian.test.ts:9
↓ 19 callers
Function
writeJson
(filePath: string, value: unknown, options: WriteOptions = {})
src/fs.ts:59
↓ 18 callers
Function
canonicalLibraryDir
()
src/paths.ts:30
↓ 18 callers
Function
stringField
(value: unknown)
src/current.ts:107
↓ 18 callers
Function
validFrameJson
(overrides: Record<string, unknown> = {})
tests/frames-registry.test.ts:24
↓ 16 callers
Function
entry
(runId: string, repo: string, dotId: string, score: number, title: string)
tests/ideas-aggregate.test.ts:21
↓ 16 callers
Function
fakeFrame
(overrides: Partial<Frame> = {})
tests/possible-wizard.test.ts:56
↓ 16 callers
Function
ideasMdDir
()
src/paths.ts:220
↓ 16 callers
Function
resolveEngine
(profile: EngineRunProfile = {})
src/engine.ts:171
↓ 15 callers
Function
applyFolderMirror
( existing: BookmarkRecord[], folder: BookmarkFolder, walkedRecords: BookmarkRecord[], )
src/graphql-bookmarks.ts:1109
↓ 15 callers
Function
emit
(ctx: PipelineContext, stage: PipelineStage | 'init' | 'done', msg: string)
src/adjacent/pipeline.ts:86
↓ 14 callers
Function
getRepos
()
tests/ideas-repos.test.ts:20
↓ 14 callers
Function
makeBookmark
(overrides: Partial<BookmarkRecord> = {})
tests/bookmark-classify.test.ts:6
↓ 14 callers
Function
parseTimestampMs
(value?: string | null)
src/date-utils.ts:3
↓ 13 callers
Function
getFrames
()
tests/adjacent-pipeline.test.ts:18
↓ 13 callers
Function
parseIndex
(answer: string, length: number)
src/possible-wizard.ts:458
↓ 13 callers
Function
requireIndex
Check that the search index exists. Returns true if it does.
src/cli.ts:620
↓ 13 callers
Function
withFramesStore
(fn: (dir: string) => Promise<void>)
tests/frames-registry.test.ts:7
↓ 13 callers
Function
withMediaDataDir
(records: any[], fn: () => Promise<void>)
tests/bookmark-media.test.ts:9
↓ 12 callers
Function
classifyBookmark
(bookmark: BookmarkRecord)
src/bookmark-classify.ts:180
↓ 12 callers
Function
fakeSeed
(overrides: Partial<IdeasSeed> = {})
tests/possible-wizard.test.ts:44
↓ 12 callers
Function
isPathInside
(parentPath: string, childPath: string)
src/document-ops.ts:33
↓ 12 callers
Function
requireNonEmptyString
(value: unknown, field: string)
src/frames-registry.ts:51
↓ 12 callers
Function
sanitizeForPrompt
(text: string, maxLen = 400)
src/md-prompts.ts:27
↓ 12 callers
Function
saveDb
(db: Database, filePath: string)
src/db.ts:34
↓ 12 callers
Function
summarizeSeedIntent
(prefix: string, filters: SeedFilterSpec)
src/seeds-strategies.ts:121
↓ 12 callers
Function
withIsolatedDataDir
(fn: () => Promise<void>, fixtures: any[] = FIXTURES)
tests/bookmarks-db.test.ts:16
↓ 12 callers
Function
withIsolatedGapFillDataDir
( fn: () => Promise<void>, fixtures: BookmarkRecord[], )
tests/graphql-bookmarks.test.ts:616
↓ 12 callers
Function
writeMd
(filePath: string, content: string)
src/fs.ts:88
↓ 11 callers
Function
ensureDirSync
(dir: string)
src/paths.ts:87
↓ 11 callers
Function
getBrowser
(id: string)
src/browsers.ts:118
↓ 11 callers
Function
getIdeasSeeds
()
tests/ideas-seeds.test.ts:20
↓ 11 callers
Function
readCurrentDocumentSummary
(manifestPath = findCurrentContextManifest())
src/current.ts:337
↓ 11 callers
Function
resolveFolder
(folders: BookmarkFolder[], query: string)
src/cli.ts:672
↓ 11 callers
Function
resolveNavigationEntry
(target: string)
src/navigation.ts:266
↓ 11 callers
Function
twitterBookmarksCachePath
()
src/paths.ts:99
↓ 10 callers
Method
ask
Ask a question and return the user's trimmed answer. Throws on cancel.
src/possible-wizard.ts:23
↓ 10 callers
Function
boxRow
(content: string, width: number)
src/bookmarks-viz.ts:96
↓ 10 callers
Function
runPossibleWizard
( prompter: Prompter, deps: WizardDeps, )
src/possible-wizard.ts:384
↓ 10 callers
Function
sanitizeFtsQuery
(query: string)
src/bookmarks-db.ts:524
↓ 10 callers
Function
syncGaps
(options: SyncGapsOptions = {})
src/graphql-bookmarks.ts:1822
↓ 10 callers
Function
validateOptionalFrameId
(opt: unknown)
src/frames-registry.ts:187
↓ 10 callers
Function
writeArtifact
(artifact: Omit<Artifact, 'id'> & { id?: string })
src/adjacent/librarian.ts:73
↓ 10 callers
Function
writeContext
(root: string, id: string, title: string, content: string, updatedAt: string, extra: Record<string, unknown> =
tests/current.test.ts:16
↓ 10 callers
Function
writeJsonLines
(filePath: string, rows: unknown[], options: WriteOptions = {})
src/fs.ts:68
↓ 9 callers
Function
buildMessage
Build a user-facing failure message. Deliberately does NOT inline the * prompt — see EngineInvocationError for why.
src/engine.ts:321
↓ 9 callers
Function
cleanWikiFences
( options: { backup?: boolean } = {}, )
src/md-fence.ts:60
↓ 9 callers
Function
commandsRoot
()
src/commands-files.ts:49
↓ 9 callers
Function
compareVersions
(a: string, b: string)
src/cli.ts:358
↓ 9 callers
Function
ensureColumn
(db: Database, table: string, column: string, definition: string)
src/bookmarks-db.ts:307
↓ 9 callers
Function
ensureDir
(dirPath: string)
src/fs.ts:8
↓ 9 callers
Function
fieldTheoryDir
()
src/paths.ts:14
↓ 9 callers
Function
loadChromeSessionConfig
(overrides: { browserId?: string } = {})
src/config.ts:28
↓ 9 callers
Function
parseBookmarksResponse
(json: any, now?: string)
src/graphql-bookmarks.ts:381
↓ 9 callers
Function
put
(key: keyof SeedFilterSpec, value: string | number | undefined)
src/seeds-strategies.ts:95
↓ 9 callers
Function
readArtifact
(id: string)
src/adjacent/librarian.ts:83
↓ 9 callers
Function
resolve
(name: string, profile: EngineRunProfile = {})
src/engine.ts:143
↓ 9 callers
Function
runGit
(args: string[], options: GitRunOptions)
src/workflow-state.ts:41
↓ 9 callers
Function
sanitizeUserContent
(text: string, maxLen = 800)
src/adjacent/prompts.ts:21
↓ 9 callers
Function
savePreferences
(prefs: Preferences)
src/preferences.ts:16
↓ 9 callers
Function
showCommandDocument
(target: string)
src/commands-files.ts:115
↓ 9 callers
Function
withIdeasStore
(fn: (dir: string) => Promise<void>)
tests/ideas-seeds.test.ts:7
↓ 8 callers
Function
adjacentDir
()
src/paths.ts:143
↓ 8 callers
Function
commandsDir
()
src/paths.ts:64
↓ 8 callers
Function
detectAvailableEngines
()
src/engine.ts:84
↓ 8 callers
Function
dotsFromRun
(run: Consideration)
src/ideas.ts:151
↓ 8 callers
Function
formatCount
(count: number, noun: string)
src/workflow-state.ts:157
↓ 8 callers
Function
getFrames
()
tests/adjacent-librarian.test.ts:27
↓ 8 callers
Function
getPaths
()
tests/paths-migration.test.ts:30
↓ 8 callers
Function
getStrategies
()
tests/seeds-strategies.test.ts:4
↓ 8 callers
Function
loadPreferences
()
src/preferences.ts:8
↓ 8 callers
Function
makeGraphQLResponse
(tweetResults: any[], bottomCursor?: string)
tests/graphql-bookmarks.test.ts:91
next →
1–100 of 920, ranked by callers