MCPcopy Create free account

hub / github.com/afar1/fieldtheory-cli / functions

Functions920 in github.com/afar1/fieldtheory-cli

↓ 109 callersMethodwrite
Write a line to the output the user sees (stderr in prod).
src/possible-wizard.ts:25
↓ 100 callersFunctionsafe
Wrap an async action with graceful error handling.
src/cli.ts:730
↓ 60 callersFunctionbuildCli
()
src/cli.ts:757
↓ 55 callersFunctionmakeRecord
(overrides: Partial<BookmarkRecord> = {})
tests/graphql-bookmarks.test.ts:121
↓ 41 callersFunctionisSafeUrl
(url: string)
src/bookmark-enrich.ts:114
↓ 40 callersMethodclose
()
src/prompt.ts:18
↓ 39 callersFunctioncaptureStdout
(fn: () => Promise<void>)
tests/cli.test.ts:10
↓ 35 callersFunctiongetPrompts
()
tests/adjacent-pipeline.test.ts:15
↓ 34 callersFunctionescapeYaml
(value: string)
src/ideas-files.ts:12
↓ 33 callersFunctionprintJson
(value: unknown)
src/cli.ts:314
↓ 32 callersFunctiontwitterBookmarksIndexPath
()
src/paths.ts:123
↓ 30 callersFunctionmockPrompter
* 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 callersFunctionmakeTweetResult
(overrides: Record<string, any> = {})
tests/graphql-bookmarks.test.ts:35
↓ 28 callersFunctionopenDb
(filePath: string)
src/db.ts:20
↓ 27 callersFunctiondataDir
()
src/paths.ts:5
↓ 26 callersFunctionbuildIndex
(options?: { force?: boolean })
src/bookmarks-db.ts:436
↓ 25 callersFunctionslug
(name: string)
src/md.ts:78
↓ 23 callersFunctionmdDir
()
src/paths.ts:182
↓ 22 callersFunctiongetLibrarian
()
tests/adjacent-librarian.test.ts:23
↓ 21 callersFunctioninvokeEngineAsync
(engine: ResolvedEngine, prompt: string, opts: InvokeOptions = {})
src/engine.ts:426
↓ 20 callersFunctionpathExists
(filePath: string)
src/fs.ts:12
↓ 20 callersFunctionprintJson
(value: unknown)
src/companion-cli.ts:27
↓ 19 callersFunctionconvertTweetToRecord
(tweetResult: any, now: string)
src/graphql-bookmarks.ts:240
↓ 19 callersFunctionensureMigrations
(db: Database)
src/bookmarks-db.ts:321
↓ 19 callersFunctionfetchBookmarkMediaBatch
( options: { limit?: number; maxBytes?: number; skipProfileImages?: boolean; retryFailed?: boolean; signal?:
src/bookmark-media.ts:264
↓ 19 callersFunctiongetRegistry
()
tests/frames-registry.test.ts:20
↓ 19 callersFunctionrgb
(r: number, g: number, b: number)
src/bookmarks-viz.ts:12
↓ 19 callersFunctionstripLlmMarkdownFence
(raw: string)
src/md-fence.ts:29
↓ 19 callersFunctionwithAdjacentStore
(fn: () => Promise<void>)
tests/adjacent-librarian.test.ts:9
↓ 19 callersFunctionwriteJson
(filePath: string, value: unknown, options: WriteOptions = {})
src/fs.ts:59
↓ 18 callersFunctioncanonicalLibraryDir
()
src/paths.ts:30
↓ 18 callersFunctionstringField
(value: unknown)
src/current.ts:107
↓ 18 callersFunctionvalidFrameJson
(overrides: Record<string, unknown> = {})
tests/frames-registry.test.ts:24
↓ 16 callersFunctionentry
(runId: string, repo: string, dotId: string, score: number, title: string)
tests/ideas-aggregate.test.ts:21
↓ 16 callersFunctionfakeFrame
(overrides: Partial<Frame> = {})
tests/possible-wizard.test.ts:56
↓ 16 callersFunctionideasMdDir
()
src/paths.ts:220
↓ 16 callersFunctionresolveEngine
(profile: EngineRunProfile = {})
src/engine.ts:171
↓ 15 callersFunctionapplyFolderMirror
( existing: BookmarkRecord[], folder: BookmarkFolder, walkedRecords: BookmarkRecord[], )
src/graphql-bookmarks.ts:1109
↓ 15 callersFunctionemit
(ctx: PipelineContext, stage: PipelineStage | 'init' | 'done', msg: string)
src/adjacent/pipeline.ts:86
↓ 14 callersFunctiongetRepos
()
tests/ideas-repos.test.ts:20
↓ 14 callersFunctionmakeBookmark
(overrides: Partial<BookmarkRecord> = {})
tests/bookmark-classify.test.ts:6
↓ 14 callersFunctionparseTimestampMs
(value?: string | null)
src/date-utils.ts:3
↓ 13 callersFunctiongetFrames
()
tests/adjacent-pipeline.test.ts:18
↓ 13 callersFunctionparseIndex
(answer: string, length: number)
src/possible-wizard.ts:458
↓ 13 callersFunctionrequireIndex
Check that the search index exists. Returns true if it does.
src/cli.ts:620
↓ 13 callersFunctionwithFramesStore
(fn: (dir: string) => Promise<void>)
tests/frames-registry.test.ts:7
↓ 13 callersFunctionwithMediaDataDir
(records: any[], fn: () => Promise<void>)
tests/bookmark-media.test.ts:9
↓ 12 callersFunctionclassifyBookmark
(bookmark: BookmarkRecord)
src/bookmark-classify.ts:180
↓ 12 callersFunctionfakeSeed
(overrides: Partial<IdeasSeed> = {})
tests/possible-wizard.test.ts:44
↓ 12 callersFunctionisPathInside
(parentPath: string, childPath: string)
src/document-ops.ts:33
↓ 12 callersFunctionrequireNonEmptyString
(value: unknown, field: string)
src/frames-registry.ts:51
↓ 12 callersFunctionsanitizeForPrompt
(text: string, maxLen = 400)
src/md-prompts.ts:27
↓ 12 callersFunctionsaveDb
(db: Database, filePath: string)
src/db.ts:34
↓ 12 callersFunctionsummarizeSeedIntent
(prefix: string, filters: SeedFilterSpec)
src/seeds-strategies.ts:121
↓ 12 callersFunctionwithIsolatedDataDir
(fn: () => Promise<void>, fixtures: any[] = FIXTURES)
tests/bookmarks-db.test.ts:16
↓ 12 callersFunctionwithIsolatedGapFillDataDir
( fn: () => Promise<void>, fixtures: BookmarkRecord[], )
tests/graphql-bookmarks.test.ts:616
↓ 12 callersFunctionwriteMd
(filePath: string, content: string)
src/fs.ts:88
↓ 11 callersFunctionensureDirSync
(dir: string)
src/paths.ts:87
↓ 11 callersFunctiongetBrowser
(id: string)
src/browsers.ts:118
↓ 11 callersFunctiongetIdeasSeeds
()
tests/ideas-seeds.test.ts:20
↓ 11 callersFunctionreadCurrentDocumentSummary
(manifestPath = findCurrentContextManifest())
src/current.ts:337
↓ 11 callersFunctionresolveFolder
(folders: BookmarkFolder[], query: string)
src/cli.ts:672
↓ 11 callersFunctionresolveNavigationEntry
(target: string)
src/navigation.ts:266
↓ 11 callersFunctiontwitterBookmarksCachePath
()
src/paths.ts:99
↓ 10 callersMethodask
Ask a question and return the user's trimmed answer. Throws on cancel.
src/possible-wizard.ts:23
↓ 10 callersFunctionboxRow
(content: string, width: number)
src/bookmarks-viz.ts:96
↓ 10 callersFunctionrunPossibleWizard
( prompter: Prompter, deps: WizardDeps, )
src/possible-wizard.ts:384
↓ 10 callersFunctionsanitizeFtsQuery
(query: string)
src/bookmarks-db.ts:524
↓ 10 callersFunctionsyncGaps
(options: SyncGapsOptions = {})
src/graphql-bookmarks.ts:1822
↓ 10 callersFunctionvalidateOptionalFrameId
(opt: unknown)
src/frames-registry.ts:187
↓ 10 callersFunctionwriteArtifact
(artifact: Omit<Artifact, 'id'> & { id?: string })
src/adjacent/librarian.ts:73
↓ 10 callersFunctionwriteContext
(root: string, id: string, title: string, content: string, updatedAt: string, extra: Record<string, unknown> =
tests/current.test.ts:16
↓ 10 callersFunctionwriteJsonLines
(filePath: string, rows: unknown[], options: WriteOptions = {})
src/fs.ts:68
↓ 9 callersFunctionbuildMessage
Build a user-facing failure message. Deliberately does NOT inline the * prompt — see EngineInvocationError for why.
src/engine.ts:321
↓ 9 callersFunctioncleanWikiFences
( options: { backup?: boolean } = {}, )
src/md-fence.ts:60
↓ 9 callersFunctioncommandsRoot
()
src/commands-files.ts:49
↓ 9 callersFunctioncompareVersions
(a: string, b: string)
src/cli.ts:358
↓ 9 callersFunctionensureColumn
(db: Database, table: string, column: string, definition: string)
src/bookmarks-db.ts:307
↓ 9 callersFunctionensureDir
(dirPath: string)
src/fs.ts:8
↓ 9 callersFunctionfieldTheoryDir
()
src/paths.ts:14
↓ 9 callersFunctionloadChromeSessionConfig
(overrides: { browserId?: string } = {})
src/config.ts:28
↓ 9 callersFunctionparseBookmarksResponse
(json: any, now?: string)
src/graphql-bookmarks.ts:381
↓ 9 callersFunctionput
(key: keyof SeedFilterSpec, value: string | number | undefined)
src/seeds-strategies.ts:95
↓ 9 callersFunctionreadArtifact
(id: string)
src/adjacent/librarian.ts:83
↓ 9 callersFunctionresolve
(name: string, profile: EngineRunProfile = {})
src/engine.ts:143
↓ 9 callersFunctionrunGit
(args: string[], options: GitRunOptions)
src/workflow-state.ts:41
↓ 9 callersFunctionsanitizeUserContent
(text: string, maxLen = 800)
src/adjacent/prompts.ts:21
↓ 9 callersFunctionsavePreferences
(prefs: Preferences)
src/preferences.ts:16
↓ 9 callersFunctionshowCommandDocument
(target: string)
src/commands-files.ts:115
↓ 9 callersFunctionwithIdeasStore
(fn: (dir: string) => Promise<void>)
tests/ideas-seeds.test.ts:7
↓ 8 callersFunctionadjacentDir
()
src/paths.ts:143
↓ 8 callersFunctioncommandsDir
()
src/paths.ts:64
↓ 8 callersFunctiondetectAvailableEngines
()
src/engine.ts:84
↓ 8 callersFunctiondotsFromRun
(run: Consideration)
src/ideas.ts:151
↓ 8 callersFunctionformatCount
(count: number, noun: string)
src/workflow-state.ts:157
↓ 8 callersFunctiongetFrames
()
tests/adjacent-librarian.test.ts:27
↓ 8 callersFunctiongetPaths
()
tests/paths-migration.test.ts:30
↓ 8 callersFunctiongetStrategies
()
tests/seeds-strategies.test.ts:4
↓ 8 callersFunctionloadPreferences
()
src/preferences.ts:8
↓ 8 callersFunctionmakeGraphQLResponse
(tweetResults: any[], bottomCursor?: string)
tests/graphql-bookmarks.test.ts:91
next →1–100 of 920, ranked by callers