MCPcopy Create free account

hub / github.com/MagicCube/helixent / functions

Functions222 in github.com/MagicCube/helixent

↓ 77 callersMethodpush
(chunk: OpenAIChatCompletionChunk)
src/community/openai/stream-utils.ts:24
↓ 51 callersMethodinvoke
* Invokes the model with the given messages and options. * @param params - The parameters for the invocation. * @returns The complete response f
src/foundation/models/model-provider.ts:21
↓ 34 callersMethodpush
(event: Anthropic.RawMessageStreamEvent)
src/community/anthropic/stream-utils.ts:32
↓ 32 callersFunctionerrorToolResult
(error: string, code?: string, details?: Record<string, unknown>)
src/coding/tools/tool-result.ts:9
↓ 17 callersFunctiondim
(s: string)
src/cli/tui/message-text.ts:12
↓ 16 callersFunctiondefineTool
({ name, description, parameters, invoke, }: { name: string; description: string; parameters: P;
src/foundation/tools/function-tool.ts:31
↓ 14 callersFunctionokToolResult
(summary: string, data: T)
src/coding/tools/tool-result.ts:5
↓ 14 callersFunctionsummarizeToolResultText
(content: string)
src/agent/tool-result-summary.ts:1
↓ 10 callersFunctionresolveBuiltinCommand
(text: string)
src/cli/tui/command-registry.ts:83
↓ 10 callersMethodsnapshot
()
src/community/anthropic/stream-utils.ts:53
↓ 9 callersFunctionappendToolToAllowList
(document: Record<string, unknown>, toolName: string)
src/cli/settings/settings.ts:17
↓ 9 callersMethodsnapshot
()
src/community/openai/stream-utils.ts:60
↓ 8 callersFunctionconvertToOpenAIMessages
(messages: Message[])
src/community/openai/utils.ts:16
↓ 8 callersFunctioncreateAskUserQuestionTool
( // eslint-disable-next-line no-unused-vars callback: (params: AskUserQuestionParameters) => Promise<AskU
src/coding/tools/ask-user-question.ts:105
↓ 8 callersFunctioncreateCodingApprovalMiddleware
(options: { cwd: string; requiresApproval: string[]; approvalPersistence?: ApprovalPersistence; // esl
src/coding/permissions/coding-approval-middleware.ts:9
↓ 8 callersFunctionensureAbsolutePath
(path: string)
src/coding/tools/tool-utils.ts:4
↓ 7 callersFunctionconvertToAnthropicMessages
( messages: Message[], )
src/community/anthropic/utils.ts:30
↓ 7 callersFunctioncreateTodoSystem
()
src/agent/todos/todos.ts:75
↓ 7 callersFunctionformatToolResultForMessage
({ toolName, result }: { toolName: string; result: unknown })
src/agent/tool-result-runtime.ts:100
↓ 7 callersFunctionmakeToolUse
(name: string)
src/coding/permissions/__tests__/approval-manager.test.ts:8
↓ 7 callersFunctionmakeToolUse
(name: string)
src/coding/permissions/__tests__/coding-approval-middleware.test.ts:9
↓ 6 callersFunctiongetConfigFilePath
()
src/cli/config/index.ts:30
↓ 6 callersFunctioninferToolErrorKind
(code?: string)
src/agent/tool-result-runtime.ts:24
↓ 6 callersFunctionloadConfig
()
src/cli/config/index.ts:43
↓ 6 callersFunctionmoveCursorWordLeft
(state: InputEditorState)
src/cli/tui/input-editor.ts:38
↓ 6 callersFunctionmoveCursorWordRight
(state: InputEditorState)
src/cli/tui/input-editor.ts:45
↓ 6 callersFunctionparseAssistantMessage
(message: OpenAIChatCompletionMessage, usage?: TokenUsage)
src/community/openai/utils.ts:70
↓ 6 callersFunctiontruncateText
(text: string, maxChars: number)
src/coding/tools/tool-utils.ts:37
↓ 5 callersFunctionensureHelixentHomeEnv
()
src/cli/config/index.ts:65
↓ 5 callersFunctionextractSystemPrompt
(messages: Message[])
src/community/anthropic/utils.ts:13
↓ 5 callersFunctionformatHelp
(commands: SlashCommand[], target?: string)
src/cli/tui/command-registry.ts:104
↓ 5 callersFunctionisHelixentSetupComplete
()
src/cli/config/index.ts:35
↓ 5 callersFunctionlistSkills
( skillsDirs: string[] = [join(process.cwd(), "skills")], )
src/agent/skills/list-skills.ts:9
↓ 5 callersFunctionnormalizeCommandName
(value: string)
src/cli/tui/command-registry.ts:187
↓ 5 callersFunctionnormalizeToolResult
(result: unknown)
src/agent/tool-result-runtime.ts:58
↓ 5 callersFunctiononAbort
()
src/coding/tools/bash.ts:23
↓ 5 callersFunctionparseAssistantMessage
( response: Anthropic.Message, usage?: TokenUsage, )
src/community/anthropic/utils.ts:109
↓ 5 callersFunctionreadSkillFrontMatter
(path: string)
src/agent/skills/skill-reader.ts:5
↓ 5 callersMethodsubscribe
(callback: (req: ApprovalRequest | null) => void)
src/coding/permissions/approval-manager.ts:51
↓ 5 callersFunctionupdateEditorState
(nextState: InputEditorState)
src/cli/tui/hooks/use-command-input.ts:74
↓ 4 callersFunctionbuildTodoViewState
(messages: NonSystemMessage[])
src/cli/tui/todo-view.ts:52
↓ 4 callersFunctioncalculateTokenUsage
(messages: NonSystemMessage[])
src/cli/tui/token-usage.ts:8
↓ 4 callersFunctiongetHelixentHomePath
()
src/cli/config/index.ts:22
↓ 4 callersFunctiongetToolResultPolicy
(toolName: string)
src/agent/tool-result-policy.ts:14
↓ 4 callersFunctionsaveConfig
(config: HelixentConfig)
src/cli/config/index.ts:50
↓ 4 callersFunctiontruncateSummary
(value: string, maxLength = 500)
src/agent/tool-result-runtime.ts:182
↓ 3 callersMethod_appendMessage
(message: NonSystemMessage)
src/agent/agent.ts:274
↓ 3 callersMethod_processQueue
()
src/coding/tools/ask-user-question-manager.ts:29
↓ 3 callersMethod_processQueue
()
src/coding/permissions/approval-manager.ts:31
↓ 3 callersMethodabort
* Aborts the current stream, including any in-flight model request.
src/agent/agent.ts:176
↓ 3 callersFunctionconvertToAnthropicTools
(tools: Tool[])
src/community/anthropic/utils.ts:152
↓ 3 callersFunctionconvertToOpenAITools
(tools: Tool[])
src/community/openai/utils.ts:102
↓ 3 callersFunctionensureDirectoryPath
(path: string)
src/coding/tools/tool-utils.ts:11
↓ 3 callersMethodloadAllowList
(cwd: string)
src/cli/settings/settings-loader.ts:119
↓ 3 callersFunctionremoveCharacterBeforeCursor
(state: InputEditorState)
src/cli/tui/input-editor.ts:15
↓ 3 callersFunctionsampleParams
(n = 1)
src/coding/tools/__tests__/ask-user-question-manager.test.ts:6
↓ 3 callersFunctionsnapshotKey
(messageIndex: number, contentIndex: number)
src/cli/tui/todo-view.ts:15
↓ 3 callersMethodstream
* Streams the model response, yielding accumulated snapshots. * Each yielded value is a progressively more complete {@link AssistantMessage}. *
src/foundation/models/model-provider.ts:32
↓ 3 callersFunctionuseAgentLoop
()
src/cli/tui/hooks/use-agent-loop.ts:175
↓ 3 callersFunctionwhite
(s: string)
src/cli/tui/message-text.ts:10
↓ 2 callersMethod_baseChatCompletionParams
({ model, messages, tools, options, }: { model: string; messages: Message[]; too
src/community/openai/model-provider.ts:80
↓ 2 callersMethod_baseMessageParams
({ model, messages, tools, options, }: ModelProviderInvokeParams)
src/community/anthropic/model-provider.ts:49
↓ 2 callersMethod_buildModelProviderParams
(context: ModelContext)
src/foundation/models/model.ts:50
↓ 2 callersMethodappendAllowedTool
(cwd: string, toolName: string)
src/cli/settings/settings-writer.ts:11
↓ 2 callersFunctionbuildModelEntry
(baseURL: string, apiKey: string, modelName: string, provider: ModelEntry["provider"])
src/cli/bootstrap/model-wizard.tsx:12
↓ 2 callersFunctionensureHelixentHomeDirectory
()
src/cli/config/index.ts:60
↓ 2 callersFunctionformatTokenCount
(count: number)
src/cli/tui/components/footer.tsx:6
↓ 2 callersFunctiongetHistoryFilePath
()
src/cli/tui/hooks/use-input-history.ts:11
↓ 2 callersFunctiongetNextTodo
(todos?: TodoItemView[])
src/cli/tui/todo-view.ts:110
↓ 2 callersFunctiongetSlashQuery
(text: string)
src/cli/tui/command-registry.ts:63
↓ 2 callersFunctioninsertSlashCommand
(command: SlashCommand)
src/cli/tui/command-registry.ts:69
↓ 2 callersFunctioninsertTextAtCursor
(state: InputEditorState, input: string)
src/cli/tui/input-editor.ts:6
↓ 2 callersMethodload
(cwd: string)
src/cli/settings/settings-loader.ts:109
↓ 2 callersFunctionmoveCursorLeft
(state: InputEditorState)
src/cli/tui/input-editor.ts:24
↓ 2 callersFunctionmoveCursorRight
(state: InputEditorState)
src/cli/tui/input-editor.ts:31
↓ 2 callersFunctionnormalizePatchPath
(rawPath: string)
src/coding/tools/apply-patch.ts:28
↓ 2 callersMethodprojectLocalSettingsPath
(cwd: string)
src/cli/settings/settings-loader.ts:105
↓ 2 callersFunctionpromptSelectModelName
( config: HelixentConfig, opts: PromptSelectModelNameOptions, )
src/cli/commands/config/model/prompt-select-model.ts:13
↓ 2 callersFunctionrunModelWizard
()
src/cli/bootstrap/model-wizard.tsx:200
↓ 2 callersFunctionscoreCommandMatch
(command: SlashCommand, filter: string)
src/cli/tui/command-registry.ts:191
↓ 2 callersMethodsetRequestedSkillName
(requestedSkillName: string | null)
src/agent/agent.ts:117
↓ 2 callersFunctionstringifyWithinLimit
(payload: StructuredToolResult, maxLength: number | undefined, fallback: StructuredToolResult)
src/agent/tool-result-runtime.ts:159
↓ 2 callersFunctionzshOnPath
()
src/coding/tools/__tests__/bash.test.ts:7
↓ 1 callersMethod_act
(toolUses: ToolUseContent[])
src/agent/agent.ts:222
↓ 1 callersMethod_afterAgentRun
()
src/agent/agent.ts:308
↓ 1 callersMethod_afterAgentStep
(step: number)
src/agent/agent.ts:328
↓ 1 callersMethod_afterModel
(message: AssistantMessage)
src/agent/agent.ts:288
↓ 1 callersMethod_afterToolUse
(toolUse: ToolUseContent, toolResult: unknown)
src/agent/agent.ts:352
↓ 1 callersMethod_beforeAgentRun
()
src/agent/agent.ts:298
↓ 1 callersMethod_beforeAgentStep
(step: number)
src/agent/agent.ts:318
↓ 1 callersMethod_beforeModel
(modelContext: ModelContext)
src/agent/agent.ts:278
↓ 1 callersMethod_beforeToolUse
(toolUse: ToolUseContent)
src/agent/agent.ts:338
↓ 1 callersMethod_buildUsage
()
src/community/anthropic/stream-utils.ts:116
↓ 1 callersMethod_deriveProgress
(snapshot: AssistantMessage)
src/agent/agent.ts:207
↓ 1 callersMethod_extractToolUses
(message: AssistantMessage)
src/agent/agent.ts:218
↓ 1 callersMethod_handleBlockDelta
(event: Anthropic.RawContentBlockDeltaEvent)
src/community/anthropic/stream-utils.ts:90
↓ 1 callersMethod_handleBlockStart
(event: Anthropic.RawContentBlockStartEvent)
src/community/anthropic/stream-utils.ts:70
↓ 1 callersMethod_handleMessageDelta
(event: Anthropic.RawMessageDeltaEvent)
src/community/anthropic/stream-utils.ts:105
↓ 1 callersMethod_think
()
src/agent/agent.ts:180
↓ 1 callersFunctionacceptSelectedCommand
()
src/cli/tui/hooks/use-command-input.ts:81
next →1–100 of 222, ranked by callers