Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicCube/helixent
/ functions
Functions
222 in github.com/MagicCube/helixent
⨍
Functions
222
◇
Types & classes
55
↓ 77 callers
Method
push
(chunk: OpenAIChatCompletionChunk)
src/community/openai/stream-utils.ts:24
↓ 51 callers
Method
invoke
* 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 callers
Method
push
(event: Anthropic.RawMessageStreamEvent)
src/community/anthropic/stream-utils.ts:32
↓ 32 callers
Function
errorToolResult
(error: string, code?: string, details?: Record<string, unknown>)
src/coding/tools/tool-result.ts:9
↓ 17 callers
Function
dim
(s: string)
src/cli/tui/message-text.ts:12
↓ 16 callers
Function
defineTool
({ name, description, parameters, invoke, }: { name: string; description: string; parameters: P;
src/foundation/tools/function-tool.ts:31
↓ 14 callers
Function
okToolResult
(summary: string, data: T)
src/coding/tools/tool-result.ts:5
↓ 14 callers
Function
summarizeToolResultText
(content: string)
src/agent/tool-result-summary.ts:1
↓ 10 callers
Function
resolveBuiltinCommand
(text: string)
src/cli/tui/command-registry.ts:83
↓ 10 callers
Method
snapshot
()
src/community/anthropic/stream-utils.ts:53
↓ 9 callers
Function
appendToolToAllowList
(document: Record<string, unknown>, toolName: string)
src/cli/settings/settings.ts:17
↓ 9 callers
Method
snapshot
()
src/community/openai/stream-utils.ts:60
↓ 8 callers
Function
convertToOpenAIMessages
(messages: Message[])
src/community/openai/utils.ts:16
↓ 8 callers
Function
createAskUserQuestionTool
( // eslint-disable-next-line no-unused-vars callback: (params: AskUserQuestionParameters) => Promise<AskU
src/coding/tools/ask-user-question.ts:105
↓ 8 callers
Function
createCodingApprovalMiddleware
(options: { cwd: string; requiresApproval: string[]; approvalPersistence?: ApprovalPersistence; // esl
src/coding/permissions/coding-approval-middleware.ts:9
↓ 8 callers
Function
ensureAbsolutePath
(path: string)
src/coding/tools/tool-utils.ts:4
↓ 7 callers
Function
convertToAnthropicMessages
( messages: Message[], )
src/community/anthropic/utils.ts:30
↓ 7 callers
Function
createTodoSystem
()
src/agent/todos/todos.ts:75
↓ 7 callers
Function
formatToolResultForMessage
({ toolName, result }: { toolName: string; result: unknown })
src/agent/tool-result-runtime.ts:100
↓ 7 callers
Function
makeToolUse
(name: string)
src/coding/permissions/__tests__/approval-manager.test.ts:8
↓ 7 callers
Function
makeToolUse
(name: string)
src/coding/permissions/__tests__/coding-approval-middleware.test.ts:9
↓ 6 callers
Function
getConfigFilePath
()
src/cli/config/index.ts:30
↓ 6 callers
Function
inferToolErrorKind
(code?: string)
src/agent/tool-result-runtime.ts:24
↓ 6 callers
Function
loadConfig
()
src/cli/config/index.ts:43
↓ 6 callers
Function
moveCursorWordLeft
(state: InputEditorState)
src/cli/tui/input-editor.ts:38
↓ 6 callers
Function
moveCursorWordRight
(state: InputEditorState)
src/cli/tui/input-editor.ts:45
↓ 6 callers
Function
parseAssistantMessage
(message: OpenAIChatCompletionMessage, usage?: TokenUsage)
src/community/openai/utils.ts:70
↓ 6 callers
Function
truncateText
(text: string, maxChars: number)
src/coding/tools/tool-utils.ts:37
↓ 5 callers
Function
ensureHelixentHomeEnv
()
src/cli/config/index.ts:65
↓ 5 callers
Function
extractSystemPrompt
(messages: Message[])
src/community/anthropic/utils.ts:13
↓ 5 callers
Function
formatHelp
(commands: SlashCommand[], target?: string)
src/cli/tui/command-registry.ts:104
↓ 5 callers
Function
isHelixentSetupComplete
()
src/cli/config/index.ts:35
↓ 5 callers
Function
listSkills
( skillsDirs: string[] = [join(process.cwd(), "skills")], )
src/agent/skills/list-skills.ts:9
↓ 5 callers
Function
normalizeCommandName
(value: string)
src/cli/tui/command-registry.ts:187
↓ 5 callers
Function
normalizeToolResult
(result: unknown)
src/agent/tool-result-runtime.ts:58
↓ 5 callers
Function
onAbort
()
src/coding/tools/bash.ts:23
↓ 5 callers
Function
parseAssistantMessage
( response: Anthropic.Message, usage?: TokenUsage, )
src/community/anthropic/utils.ts:109
↓ 5 callers
Function
readSkillFrontMatter
(path: string)
src/agent/skills/skill-reader.ts:5
↓ 5 callers
Method
subscribe
(callback: (req: ApprovalRequest | null) => void)
src/coding/permissions/approval-manager.ts:51
↓ 5 callers
Function
updateEditorState
(nextState: InputEditorState)
src/cli/tui/hooks/use-command-input.ts:74
↓ 4 callers
Function
buildTodoViewState
(messages: NonSystemMessage[])
src/cli/tui/todo-view.ts:52
↓ 4 callers
Function
calculateTokenUsage
(messages: NonSystemMessage[])
src/cli/tui/token-usage.ts:8
↓ 4 callers
Function
getHelixentHomePath
()
src/cli/config/index.ts:22
↓ 4 callers
Function
getToolResultPolicy
(toolName: string)
src/agent/tool-result-policy.ts:14
↓ 4 callers
Function
saveConfig
(config: HelixentConfig)
src/cli/config/index.ts:50
↓ 4 callers
Function
truncateSummary
(value: string, maxLength = 500)
src/agent/tool-result-runtime.ts:182
↓ 3 callers
Method
_appendMessage
(message: NonSystemMessage)
src/agent/agent.ts:274
↓ 3 callers
Method
_processQueue
()
src/coding/tools/ask-user-question-manager.ts:29
↓ 3 callers
Method
_processQueue
()
src/coding/permissions/approval-manager.ts:31
↓ 3 callers
Method
abort
* Aborts the current stream, including any in-flight model request.
src/agent/agent.ts:176
↓ 3 callers
Function
convertToAnthropicTools
(tools: Tool[])
src/community/anthropic/utils.ts:152
↓ 3 callers
Function
convertToOpenAITools
(tools: Tool[])
src/community/openai/utils.ts:102
↓ 3 callers
Function
ensureDirectoryPath
(path: string)
src/coding/tools/tool-utils.ts:11
↓ 3 callers
Method
loadAllowList
(cwd: string)
src/cli/settings/settings-loader.ts:119
↓ 3 callers
Function
removeCharacterBeforeCursor
(state: InputEditorState)
src/cli/tui/input-editor.ts:15
↓ 3 callers
Function
sampleParams
(n = 1)
src/coding/tools/__tests__/ask-user-question-manager.test.ts:6
↓ 3 callers
Function
snapshotKey
(messageIndex: number, contentIndex: number)
src/cli/tui/todo-view.ts:15
↓ 3 callers
Method
stream
* 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 callers
Function
useAgentLoop
()
src/cli/tui/hooks/use-agent-loop.ts:175
↓ 3 callers
Function
white
(s: string)
src/cli/tui/message-text.ts:10
↓ 2 callers
Method
_baseChatCompletionParams
({ model, messages, tools, options, }: { model: string; messages: Message[]; too
src/community/openai/model-provider.ts:80
↓ 2 callers
Method
_baseMessageParams
({ model, messages, tools, options, }: ModelProviderInvokeParams)
src/community/anthropic/model-provider.ts:49
↓ 2 callers
Method
_buildModelProviderParams
(context: ModelContext)
src/foundation/models/model.ts:50
↓ 2 callers
Method
appendAllowedTool
(cwd: string, toolName: string)
src/cli/settings/settings-writer.ts:11
↓ 2 callers
Function
buildModelEntry
(baseURL: string, apiKey: string, modelName: string, provider: ModelEntry["provider"])
src/cli/bootstrap/model-wizard.tsx:12
↓ 2 callers
Function
ensureHelixentHomeDirectory
()
src/cli/config/index.ts:60
↓ 2 callers
Function
formatTokenCount
(count: number)
src/cli/tui/components/footer.tsx:6
↓ 2 callers
Function
getHistoryFilePath
()
src/cli/tui/hooks/use-input-history.ts:11
↓ 2 callers
Function
getNextTodo
(todos?: TodoItemView[])
src/cli/tui/todo-view.ts:110
↓ 2 callers
Function
getSlashQuery
(text: string)
src/cli/tui/command-registry.ts:63
↓ 2 callers
Function
insertSlashCommand
(command: SlashCommand)
src/cli/tui/command-registry.ts:69
↓ 2 callers
Function
insertTextAtCursor
(state: InputEditorState, input: string)
src/cli/tui/input-editor.ts:6
↓ 2 callers
Method
load
(cwd: string)
src/cli/settings/settings-loader.ts:109
↓ 2 callers
Function
moveCursorLeft
(state: InputEditorState)
src/cli/tui/input-editor.ts:24
↓ 2 callers
Function
moveCursorRight
(state: InputEditorState)
src/cli/tui/input-editor.ts:31
↓ 2 callers
Function
normalizePatchPath
(rawPath: string)
src/coding/tools/apply-patch.ts:28
↓ 2 callers
Method
projectLocalSettingsPath
(cwd: string)
src/cli/settings/settings-loader.ts:105
↓ 2 callers
Function
promptSelectModelName
( config: HelixentConfig, opts: PromptSelectModelNameOptions, )
src/cli/commands/config/model/prompt-select-model.ts:13
↓ 2 callers
Function
runModelWizard
()
src/cli/bootstrap/model-wizard.tsx:200
↓ 2 callers
Function
scoreCommandMatch
(command: SlashCommand, filter: string)
src/cli/tui/command-registry.ts:191
↓ 2 callers
Method
setRequestedSkillName
(requestedSkillName: string | null)
src/agent/agent.ts:117
↓ 2 callers
Function
stringifyWithinLimit
(payload: StructuredToolResult, maxLength: number | undefined, fallback: StructuredToolResult)
src/agent/tool-result-runtime.ts:159
↓ 2 callers
Function
zshOnPath
()
src/coding/tools/__tests__/bash.test.ts:7
↓ 1 callers
Method
_act
(toolUses: ToolUseContent[])
src/agent/agent.ts:222
↓ 1 callers
Method
_afterAgentRun
()
src/agent/agent.ts:308
↓ 1 callers
Method
_afterAgentStep
(step: number)
src/agent/agent.ts:328
↓ 1 callers
Method
_afterModel
(message: AssistantMessage)
src/agent/agent.ts:288
↓ 1 callers
Method
_afterToolUse
(toolUse: ToolUseContent, toolResult: unknown)
src/agent/agent.ts:352
↓ 1 callers
Method
_beforeAgentRun
()
src/agent/agent.ts:298
↓ 1 callers
Method
_beforeAgentStep
(step: number)
src/agent/agent.ts:318
↓ 1 callers
Method
_beforeModel
(modelContext: ModelContext)
src/agent/agent.ts:278
↓ 1 callers
Method
_beforeToolUse
(toolUse: ToolUseContent)
src/agent/agent.ts:338
↓ 1 callers
Method
_buildUsage
()
src/community/anthropic/stream-utils.ts:116
↓ 1 callers
Method
_deriveProgress
(snapshot: AssistantMessage)
src/agent/agent.ts:207
↓ 1 callers
Method
_extractToolUses
(message: AssistantMessage)
src/agent/agent.ts:218
↓ 1 callers
Method
_handleBlockDelta
(event: Anthropic.RawContentBlockDeltaEvent)
src/community/anthropic/stream-utils.ts:90
↓ 1 callers
Method
_handleBlockStart
(event: Anthropic.RawContentBlockStartEvent)
src/community/anthropic/stream-utils.ts:70
↓ 1 callers
Method
_handleMessageDelta
(event: Anthropic.RawMessageDeltaEvent)
src/community/anthropic/stream-utils.ts:105
↓ 1 callers
Method
_think
()
src/agent/agent.ts:180
↓ 1 callers
Function
acceptSelectedCommand
()
src/cli/tui/hooks/use-command-input.ts:81
next →
1–100 of 222, ranked by callers