Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fallomai/spinai
/ functions
Functions
131 in github.com/Fallomai/spinai
⨍
Functions
131
◇
Types & classes
50
↓ 37 callers
Function
createAction
(config: Action)
packages/spinai/src/actions/create.action.ts:4
↓ 17 callers
Function
createAgent
( config: AgentConfig )
packages/spinai/src/agents/create.agent.ts:10
↓ 11 callers
Function
agent
(runConfig: AgentRunConfig<TResponseFormat>)
packages/spinai/src/agents/create.agent.ts:13
↓ 6 callers
Function
createActionsFromMcpConfig
({ config, envMapping: globalEnvMapping = {}, excludedActions = [], includedActions = [], }: CreateAct
packages/spinai/src/mcp/mcp.ts:30
↓ 5 callers
Method
logStep
* Core method to log a step to the database
packages/spinai/src/logging/logging.ts:44
↓ 4 callers
Function
calculateCost
(params: CalculateCostParams)
packages/spinai/src/costs/costs.ts:19
↓ 3 callers
Function
createAssistantTextMessage
( textResponse: string )
packages/spinai/src/messages/assistant.message.ts:9
↓ 3 callers
Function
formatDuration
(ms: number)
packages/spinai/src/debug/debug.ts:9
↓ 3 callers
Function
getPRReviewAgent
()
templates/github-code-review-agent/src/github-agent.ts:51
↓ 3 callers
Function
log
(message: string, options: LogOptions = {})
packages/spinai/src/debug/debug.ts:135
↓ 2 callers
Function
createActionResultMessage
( actionId: string, result: any, toolCallId: string )
packages/spinai/src/messages/action.message.ts:11
↓ 2 callers
Function
createAssistantToolCallsMessage
( textResponse: string, reasoning: string, nextActions: Array<{ actionId: string; parameters: Re
packages/spinai/src/messages/assistant.message.ts:25
↓ 2 callers
Function
createFullConfig
( userConfig: Partial<DocConfig> )
templates/mintlify-docs-updater/src/config.ts:16
↓ 2 callers
Function
formatCost
(cents: number)
packages/spinai/src/debug/debug.ts:13
↓ 2 callers
Function
formatDefaultLog
(message: string, options: LogOptions)
packages/spinai/src/debug/debug.ts:70
↓ 2 callers
Function
formatVerboseLog
(message: string, options: LogOptions)
packages/spinai/src/debug/debug.ts:98
↓ 2 callers
Method
logAction
* Log an action execution
packages/spinai/src/logging/logging.ts:148
↓ 2 callers
Function
shouldRespondToComment
* Check if the bot should respond to a comment
templates/github-code-review-agent/src/pr-handlers.ts:145
↓ 2 callers
Function
startServer
()
templates/github-code-review-agent/src/webhook-server.ts:16
↓ 1 callers
Function
analyzeChanges
( openai: OpenAI, files: { filename: string; patch?: string; status: string }[] )
templates/mintlify-docs-updater/src/actions/analyzeCodeChanges.ts:25
↓ 1 callers
Function
analyzeDocReferences
( openai: OpenAI, docStructure: DocStructure, octokit: Octokit, owner: string, repo: string, branc
templates/mintlify-docs-updater/src/actions/analyzeDocStructure.ts:108
↓ 1 callers
Function
applyNavigationChanges
( navigation: NavigationItem[], changes: Array<{ type: "add" | "move" | "remove"; page: string;
templates/mintlify-docs-updater/src/actions/updateNavigation.ts:77
↓ 1 callers
Function
buildDocStructure
( octokit: Octokit, owner: string, repo: string, branch: string, docsDir: string )
templates/mintlify-docs-updater/src/actions/analyzeDocStructure.ts:28
↓ 1 callers
Function
changeDirectory
(projectPath: string)
packages/create-spinai-app/index.ts:144
↓ 1 callers
Function
chat
()
examples/mcp-chat-loop/src/index.ts:15
↓ 1 callers
Function
createDocUpdateAgent
( options: CreateDocUpdateAgentOptions = {} )
templates/mintlify-docs-updater/src/index.ts:17
↓ 1 callers
Function
createPRReviewAgent
* Create a GitHub PR review agent
templates/github-code-review-agent/src/github-agent.ts:13
↓ 1 callers
Function
createSystemMessage
( instructions: string, actions: Action[] )
packages/spinai/src/messages/system.message.ts:10
↓ 1 callers
Function
createUserMessage
(input: string)
packages/spinai/src/messages/user.message.ts:9
↓ 1 callers
Function
findConfigFile
* Find the spin.config.js or spin.config.ts file in the given directory
packages/spinai-serve/src/cli/spin.ts:99
↓ 1 callers
Function
findTemplateFile
( docStructure: DocStructure, update: PlannedDocUpdate )
templates/mintlify-docs-updater/src/actions/generateContent.ts:125
↓ 1 callers
Function
formatActionsForPrompt
(actions: Action[])
packages/spinai/src/actions/actions.formatting.ts:13
↓ 1 callers
Function
formatAllLog
(message: string, options: LogOptions)
packages/spinai/src/debug/debug.ts:120
↓ 1 callers
Function
formatBasicMetrics
(data?: Record<string, unknown>)
packages/spinai/src/debug/debug.ts:33
↓ 1 callers
Function
formatLLMMetrics
(data?: Record<string, unknown>)
packages/spinai/src/debug/debug.ts:39
↓ 1 callers
Function
formatSummaryMetrics
(data?: Record<string, unknown>)
packages/spinai/src/debug/debug.ts:52
↓ 1 callers
Function
generateFileContent
( openai: OpenAI, update: PlannedDocUpdate, docStructure: DocStructure, codeAnalysis: CodeAnalysis,
templates/mintlify-docs-updater/src/actions/generateContent.ts:29
↓ 1 callers
Function
generateUpdatePlan
( openai: OpenAI, codeAnalysis: CodeAnalysis, docStructure: DocStructure, config: ReviewState["config"
templates/mintlify-docs-updater/src/actions/planDocUpdates.ts:27
↓ 1 callers
Function
getInput
()
packages/spinai/src/agents/cli-chat.ts:60
↓ 1 callers
Function
getInput
()
examples/mcp-chat-loop/src/index.ts:40
↓ 1 callers
Function
getLogIcon
(type: LogOptions["type"] = "action")
packages/spinai/src/debug/debug.ts:17
↓ 1 callers
Function
getMintJsonContent
( octokit: Octokit, owner: string, repo: string, branch: string, docsPath: string )
templates/mintlify-docs-updater/src/actions/updateNavigation.ts:22
↓ 1 callers
Function
getPackageVersion
()
packages/spinai/src/utils/version.ts:6
↓ 1 callers
Function
getProjectDetails
(suggestedName?: string)
packages/create-spinai-app/index.ts:65
↓ 1 callers
Function
handleIssueComment
(payload: any)
templates/github-code-review-agent/src/pr-handlers.ts:44
↓ 1 callers
Function
handleNewPullRequest
(payload: any)
templates/github-code-review-agent/src/pr-handlers.ts:13
↓ 1 callers
Function
handleReviewComment
(payload: any)
templates/github-code-review-agent/src/pr-handlers.ts:93
↓ 1 callers
Function
handleWebhook
(c: Context, agent: Agent)
templates/mintlify-docs-updater/src/webhooks.ts:7
↓ 1 callers
Function
installDependencies
(projectRoot: string)
packages/create-spinai-app/index.ts:128
↓ 1 callers
Function
isAnalyzeCodeChangesParams
( params: unknown )
templates/mintlify-docs-updater/src/actions/analyzeCodeChanges.ts:13
↓ 1 callers
Function
isAnalyzeDocStructureParams
( params: unknown )
templates/mintlify-docs-updater/src/actions/analyzeDocStructure.ts:17
↓ 1 callers
Function
isBotPR
(pr: any)
templates/mintlify-docs-updater/src/webhooks.ts:82
↓ 1 callers
Function
isCreateDocsPRParams
(params: unknown)
templates/mintlify-docs-updater/src/actions/createDocsPR.ts:12
↓ 1 callers
Function
isGenerateContentParams
( params: unknown )
templates/mintlify-docs-updater/src/actions/generateContent.ts:18
↓ 1 callers
Function
isKnownModel
* Checks if a model ID is known in our cost database * @param model The model ID to check * @returns Whether the model is known
packages/spinai/src/costs/costs.ts:10
↓ 1 callers
Function
isPlanDocUpdatesParams
( params: unknown )
templates/mintlify-docs-updater/src/actions/planDocUpdates.ts:16
↓ 1 callers
Function
isRelevantPREvent
(event: string, action: string)
templates/mintlify-docs-updater/src/webhooks.ts:89
↓ 1 callers
Function
isUpdateNavigationParams
( params: unknown )
templates/mintlify-docs-updater/src/actions/updateNavigation.ts:11
↓ 1 callers
Function
isValidPullRequest
(body: any)
templates/mintlify-docs-updater/src/webhooks.ts:73
↓ 1 callers
Method
logFinalResponse
* Log the final response generation
packages/spinai/src/logging/logging.ts:171
↓ 1 callers
Method
logInteractionComplete
* Log the completion of an interaction
packages/spinai/src/logging/logging.ts:199
↓ 1 callers
Method
logInteractionStart
* Log the start of an interaction
packages/spinai/src/logging/logging.ts:98
↓ 1 callers
Method
logPlanning
* Log an agent planning step (reasoning and next actions)
packages/spinai/src/logging/logging.ts:114
↓ 1 callers
Function
main
()
packages/spinai-serve/src/cli/spin.ts:6
↓ 1 callers
Function
main
()
templates/minimal/src/index.ts:36
↓ 1 callers
Function
main
()
templates/default/src/index.ts:15
↓ 1 callers
Function
main
()
templates/github-mcp-agent/src/index.ts:9
↓ 1 callers
Function
main
()
templates/basic-mcp-agent/src/index.ts:9
↓ 1 callers
Function
main
()
examples/calculator-agent/src/index.ts:27
↓ 1 callers
Function
main
()
examples/mintlify-mcp-agent/src/index.ts:9
↓ 1 callers
Function
main
()
examples/github-mcp-example/src/index.ts:9
↓ 1 callers
Function
main
()
examples/cli-chat-agent/src/index.ts:31
↓ 1 callers
Function
main
()
examples/local-llm-with-openapi-compatible/src/index.ts:43
↓ 1 callers
Function
main
()
examples/word-scrambler-agent/src/index.ts:23
↓ 1 callers
Function
parseWebhookBody
(c: Context)
templates/mintlify-docs-updater/src/webhooks.ts:56
↓ 1 callers
Function
runTaskLoop
( taskLoopParams: TaskLoopParams<TResponseFormat> )
packages/spinai/src/taskloop/taskloop.ts:21
↓ 1 callers
Function
setDebugEnabled
(mode: DebugMode = "default")
packages/spinai/src/debug/debug.ts:5
↓ 1 callers
Function
setupEnvFile
(projectRoot: string)
packages/create-spinai-app/index.ts:108
↓ 1 callers
Function
startCliChat
( agent: Agent<T>, options: CliChatOptions = {} )
packages/spinai/src/agents/cli-chat.ts:36
↓ 1 callers
Function
startServer
(config: SpinConfig)
packages/spinai-serve/src/index.ts:30
↓ 1 callers
Function
startServer
(options: ServerOptions = {})
templates/mintlify-docs-updater/src/server.ts:14
↓ 1 callers
Function
traverse
(currentPath: string, depth: number = 0)
templates/mintlify-docs-updater/src/actions/analyzeDocStructure.ts:40
↓ 1 callers
Function
validateParameters
( params: Record<string, unknown> )
templates/github-code-review-agent/src/actions/create-review-comments.ts:26
Function
Button
({ children, className, appName }: ButtonProps)
packages/ui/src/button.tsx:11
Function
Card
({ className, title, children, href, }: { className?: string; title: string; children: React.Rea
packages/ui/src/card.tsx:3
Function
Code
({ children, className, }: { children: React.ReactNode; className?: string; })
packages/ui/src/code.tsx:3
Function
POST
(req: VercelRequest, res: VercelResponse)
templates/vercel-serverless/api/calc-agent.ts:13
Function
calculateCostFromUsage
( usage: LanguageModelUsage | undefined, modelId: string )
packages/spinai/src/costs/costs.ts:47
Method
constructor
(config: LoggingConfig)
packages/spinai/src/logging/logging.ts:25
Function
createAssistantMessage
( textResponse: string, reasoning: string, nextActions: Array<{ actionId: string; parameters: Re
packages/spinai/src/messages/assistant.message.ts:69
Function
formatActionForPrompt
(action: Action)
packages/spinai/src/actions/actions.formatting.ts:3
Function
generator
(plop: PlopTypes.NodePlopAPI)
packages/ui/turbo/generators/config.ts:5
Function
isReviewComment
(obj: unknown)
templates/github-code-review-agent/src/actions/create-review-comments.ts:15
Function
processAgentFinalResponse
( messages: Message[], responseFormat: "text" | z.ZodType<T> | undefined, model: any, modelId: string,
packages/spinai/src/taskloop/finalResponse.ts:10
Function
run
({ parameters })
packages/spinai/src/mcp/mcp.ts:156
Function
run
({ parameters })
templates/minimal/src/index.ts:19
Function
run
( context: SpinAiContext, parameters?: Record<string, unknown> )
templates/mintlify-docs-updater/src/actions/analyzeDocStructure.ts:191
Function
run
( context: SpinAiContext, parameters?: Record<string, unknown> )
templates/mintlify-docs-updater/src/actions/planDocUpdates.ts:152
Function
run
( context: SpinAiContext, parameters?: Record<string, unknown> )
templates/mintlify-docs-updater/src/actions/analyzeCodeChanges.ts:135
Function
run
( context: SpinAiContext, parameters?: Record<string, unknown> )
templates/mintlify-docs-updater/src/actions/createDocsPR.ts:34
next →
1–100 of 131, ranked by callers