MCPcopy Create free account

hub / github.com/johnlindquist/kit / functions

Functions1,378 in github.com/johnlindquist/kit

↓ 340 callersFunctionkenvPath
(...parts: string[])
src/core/resolvers.ts:33
↓ 275 callersMethodlog
( level: LogLevel, message: string, errorOrContext?: Error | LogContext, context?: LogContext
src/core/logger/sdk-logger.ts:147
↓ 205 callersFunctionkitPath
(...parts: string[])
src/core/resolvers.ts:28
↓ 112 callersFunctionmd
(content = '', containerClasses = 'p-5 prose prose-sm')
src/core/utils.ts:1144
↓ 96 callersFunctionrun
(command: string, ...commandArgs: string[])
src/core/utils.ts:507
↓ 82 callersMethodnext
()
src/editor/types/kit-editor.d.ts:1520
↓ 79 callersMethoderror
Log error (operation failed)
src/core/logger/types.ts:81
↓ 72 callersFunctionkitPath
(dir: string, file: string)
src/main/index.test.ts:1959
↓ 71 callersFunctionformatScriptlet
( focusedScriptlet: Scriptlet, inputs: string[], flag?: Flags )
src/core/scriptlets.ts:12
↓ 53 callersFunctionprocessConditionals
(str: string, flag?: Flags)
src/core/scriptlet.utils.ts:3
↓ 46 callersMethodsend
(message: JSONRPCMessage)
src/lib/http-sse-transport.ts:59
↓ 45 callersFunctioncreateMockGenerateTextResult
(overrides: Partial<GenerateTextResult<Record<string, Tool<any, any>>, string>> = {})
src/lib/ai.test.ts:76
↓ 45 callersFunctionparseMarkdownAsScriptlets
(markdown: string, filePath?: string)
src/core/scriptlets.ts:66
↓ 44 callersMethodsubscribe
(observerOrNext?: Partial<Observer<T>> | ((value: T) => void), error?: (error: any) => void, complete?: () =>
src/lib/mini-rxjs.ts:26
↓ 44 callersMethodwarn
Log warning (potential issue)
src/core/logger/types.ts:85
↓ 43 callersMethodon
( event: "input", listener: ( e: | UiohookKeyboardEvent | UiohookMouse
src/editor/types/kit-editor.d.ts:10468
↓ 42 callersFunctionformatChoices
(choices: Choice[], className = '')
src/core/format.ts:41
↓ 36 callersFunctiongroupChoices
(choices: Choice[], options = {})
src/core/group.ts:4
↓ 34 callersMethodcomplete
()
src/lib/mini-rxjs.ts:88
↓ 34 callersFunctionrunScript
(script: any)
src/main/index.ts:328
↓ 33 callersFunctioncreateRunScript
(dependencies: any)
src/main/index.test.ts:7
↓ 32 callersFunctionisFile
(file: string)
src/core/is.ts:32
↓ 31 callersFunctionnotSupported
(name)
src/platform/linux.ts:3
↓ 31 callersFunctionselectScript
( message: string | PromptConfig = 'Select a script', fromCache = true, xf = (x: Script[]) => x, ignor
src/api/kit.ts:1871
↓ 29 callersFunctionhome
(...pathParts: string[])
src/core/resolvers.ts:15
↓ 28 callersFunctiongetMetadata
(contents: string)
src/core/utils.ts:380
↓ 26 callersFunctionnotSupported
(name)
src/platform/win32.ts:175
↓ 24 callersFunctionformat
src/main/calculator.ts:9
↓ 24 callersFunctionisDir
(dir: string)
src/core/is.ts:12
↓ 22 callersFunctionparseMetadataComments
( contents: string, options: ParseMetadataOptions = {} )
src/core/metadata-parser.ts:183
↓ 22 callersMethodpipe
(...operators: Operator<any, any>[])
src/lib/mini-rxjs.ts:46
↓ 21 callersMethodget
()
src/editor/types/kit-editor.d.ts:2008
↓ 21 callersMethodwrite
Write a log entry
src/core/logger/types.ts:131
↓ 20 callersFunctionhighlight
(markdown: string, containerClass = 'p-5 leading-loose', injectStyles = '')
src/core/utils.ts:1148
↓ 20 callersFunctionpostprocessMetadata
( metadata: Metadata, fileContents: string )
src/core/parser.ts:38
↓ 20 callersFunctionwait
(time: number)
src/core/utils.ts:79
↓ 19 callersFunctionlogToParent
(message: string)
src/workers/cache-grouped-scripts-worker.ts:14
↓ 19 callersFunctionrunUserHandlerIfExists
(mainScript: string, ...args: string[])
src/cli/lib/utils.ts:199
↓ 18 callersMethodset
(value: T)
src/editor/types/kit-editor.d.ts:2006
↓ 17 callersFunctioncreateDateWithOffset
(offset: { seconds?: number minutes?: number hours?: number days?: number months?: number years?:
src/utils/date.test.ts:11
↓ 17 callersFunctionoutputTmpFile
(fileName: string, contents: string)
src/api/kit.ts:188
↓ 16 callersMethodcreate
(subscribe: (observer: Observer<T>) => (() => void) | Subscription)
src/lib/mini-rxjs.ts:22
↓ 16 callersFunctiongetScripts
(fromCache = true, ignoreKenvPattern = /^ignore$/)
src/core/db.ts:503
↓ 15 callersFunctionclearModuleCache
()
src/api/packages/onepassword.test.ts:22
↓ 15 callersFunctiondb
( dataOrKeyOrPath?: DBKeyOrPath<T>, data?: DBData<T>, fromCache = true )
src/core/db.ts:76
↓ 15 callersFunctionextractPromptCalls
(code: string)
src/core/prompt-parser.test.ts:6
↓ 15 callersFunctionkitDotEnvPath
()
src/core/resolvers.ts:50
↓ 15 callersFunctionparseScript
(filePath: string)
src/core/parser.ts:167
↓ 14 callersFunctiongetKenvs
(ignorePattern = /^ignore$/)
src/core/utils.ts:485
↓ 14 callersFunctiongetScriptFromString
(script: string)
src/core/db.ts:409
↓ 14 callersFunctionkPath
(...pathParts: string[])
src/api/npm.ts:19
↓ 14 callersFunctionkitMockPath
(...parts)
test-sdk/config.js:25
↓ 14 callersFunctionkitMode
()
src/core/utils.ts:502
↓ 14 callersFunctionmain
()
scripts/add-repomix-to-orientation.ts:100
↓ 13 callersMethodclose
()
src/types/platform.d.ts:246
↓ 13 callersFunctionparseSnippets
()
src/core/snippets.ts:16
↓ 12 callersFunctionparseMetadata
(fileContents: string)
src/core/parser.ts:133
↓ 11 callersFunctionauthenticate
()
src/api/kit.ts:2148
↓ 11 callersFunctioncollectValues
(observable: Observable<T>, count?: number)
src/lib/mini-rxjs.test.ts:15
↓ 11 callersFunctiongetScriptsDb
(fromCache = true, ignoreKenvPattern = /^ignore$/)
src/core/db.ts:299
↓ 11 callersFunctiontestOrdinals
(day: number, expected: string)
src/utils/date.test.ts:208
↓ 10 callersFunctionsafeWriteEnvFile
(lines: string[], filePath?: string)
src/core/env-file-lock.ts:164
↓ 10 callersFunctionstripMetadata
(fileContents: string, exclude: string[] = [])
src/core/utils.ts:434
↓ 9 callersFunctioncreateMCPInstance
(options: MCPOptions = {})
src/lib/mcp.ts:156
↓ 9 callersFunctioncreateToolCallId
(id: string)
src/lib/ai.test.ts:22
↓ 9 callersFunctionformatFileSize
(bytes: number, decimals = 2)
src/utils/path-helpers.ts:26
↓ 9 callersFunctionisBinaryFileSync
(filePath: string)
src/utils/path-helpers.ts:306
↓ 9 callersFunctionkeywordInputTransformer
(keyword: string)
src/core/utils.ts:1095
↓ 9 callersFunctionparseShebang
(script: Script | Scriptlet)
src/core/shebang.ts:13
↓ 9 callersFunctionresolveToScriptPath
(rawScript: string, cwd: string = process.cwd())
src/core/utils.ts:147
↓ 9 callersFunctiontestShortcut
( t: ExecutionContext, beforeFriendly: string, afterFriendlyMac: string, afterFriendlyWindows: string, sk
src/core/shortcuts.test.ts:4
↓ 8 callersMethodclear
Clear/truncate the log file
src/core/logger/types.ts:119
↓ 8 callersMethodclone
(dest: string)
src/editor/types/kit-editor.d.ts:12438
↓ 8 callersFunctioncreateMockGenerateObjectResult
(object: T, overrides: Partial<GenerateObjectResult<T>> = {})
src/lib/ai.test.ts:131
↓ 8 callersFunctionextractArgPlaceholders
(code: string)
src/core/arg-parser.test.ts:6
↓ 8 callersFunctionfileExists
(path: string)
src/core/utils.ts:132
↓ 8 callersFunctionget
()
src/api/launch-context.ts:22
↓ 8 callersFunctiongetEnvVar
(key: string, fallback = '')
src/api/kit.ts:2127
↓ 8 callersFunctiongetFileType
(filePath: string)
src/utils/path-helpers.ts:378
↓ 8 callersFunctiongetMainScriptPath
()
src/core/constants.ts:17
↓ 8 callersFunctiongetTimestamps
(fromCache = true)
src/core/db.ts:397
↓ 8 callersFunctionsafeReadEnvFile
(filePath?: string)
src/core/env-file-lock.ts:142
↓ 8 callersFunctionstripName
(name: string)
src/cli/new-from-protocol.ts:18
↓ 7 callersMethodacquire
* Acquires a lock on the .env file
src/core/env-file-lock.ts:33
↓ 7 callersMethodcolorize
(text: string, color: string)
src/core/logger/formatters.ts:164
↓ 7 callersFunctioncombinePath
(arrayOfPaths: string[])
src/core/utils.ts:85
↓ 7 callersFunctionconfigEnv
()
src/core/utils.ts:587
↓ 7 callersFunctiondownloadMarkdown
(fileName: string)
src/cli/download-md.ts:1
↓ 7 callersMethodformatError
* Formats an error with enhanced stack trace information
src/core/sourcemap-formatter.ts:32
↓ 7 callersFunctiongetCorrelationContext
()
src/core/logger/correlation.ts:51
↓ 7 callersFunctiongetKenvFromPath
(filePath: string)
src/core/utils.ts:1210
↓ 7 callersFunctionhighlightJavaScript
(filePath: string, shebang = '')
src/api/kit.ts:1012
↓ 7 callersFunctionrefreshScripts
()
src/core/db.ts:377
↓ 7 callersFunctionresolveModel
( modelString?: string, explicitProvider?: AIProvider )
src/lib/ai.ts:131
↓ 7 callersFunctionrunScriptlet
(focusedScriptlet: Scriptlet, inputs: string[], flag?: Flags)
src/main/scriptlet.ts:75
↓ 7 callersFunctionrunWorkerMessage
* Helper that creates a worker from the cache-grouped-scripts-worker, * sends it a message, and returns a promise that resolves with the first messag
src/workers/cache-grouped-scripts-worker.test.ts:35
↓ 7 callersFunctionscriptsSort
(timestamps: Stamp[])
src/core/utils.ts:679
↓ 7 callersFunctionswitchMap
(project: (value: T) => Observable<R> | Promise<R>)
src/lib/mini-rxjs.ts:159
↓ 7 callersFunctiontrash
( input: string | readonly string[], options: Options = { glob: true } )
src/api/packages/trash.ts:10
↓ 7 callersFunctionwordApi
(api, type, input = "")
src/main/datamuse.ts:69
next →1–100 of 1,378, ranked by callers