MCPcopy Create free account

hub / github.com/codehamr/codehamr / functions

Functions622 in github.com/codehamr/codehamr

FunctionTestWrapForScrollbackCapsEveryLineToWidth
A prompt echo (or any content line) wider than the terminal must be wrapped before it reaches tea.Println: bubbletea dumps queued Println lines verbat
internal/tui/render_test.go:15
FunctionTestWrapForScrollbackExpandsTabs
Terminals expand a literal tab to the next 8-column stop while ansi.Wrap counts it as one cell, so a tab-bearing line (glamour preserves tabs inside c
internal/tui/render_test.go:44
FunctionTestWrapForScrollbackHardWrapsUnbrokenToken
A long unbroken token (no spaces) must still be hard-wrapped, or it would soft-wrap and re-trigger the drift the helper exists to prevent.
internal/tui/render_test.go:27
FunctionTestWrapForScrollbackNoWidthIsNoop
width <= 0 (before the first WindowSizeMsg) is a no-op passthrough.
internal/tui/render_test.go:63
FunctionTestWrapRowsMatchesBubblesBehaviour
TestWrapRowsMatchesBubblesBehaviour: wrapRows must match the row count of bubbles/textarea's internal wrap(): word-boundary aware, hard-wrap fallback
internal/tui/tui_test.go:2330
FunctionTestWriteFileCreatesParentDirs
(t *testing.T)
internal/tools/write_test.go:30
FunctionTestWriteFileEmptyPath
(t *testing.T)
internal/tools/write_test.go:42
FunctionTestWriteFileHappy
(t *testing.T)
internal/tools/write_test.go:13
FunctionTestWriteFileMkdirErrorWhenParentIsFile
TestWriteFileMkdirErrorWhenParentIsFile checks the (mkdir error) branch: a MkdirAll failure must surface in the output string (bash convention), never
internal/tools/write_test.go:52
FunctionTestWriteFileRefusesNonRegular
TestWriteFileRefusesNonRegular: write_file to an existing FIFO with no reader blocks identically in open(2) O_WRONLY; same guard, same contract.
internal/tools/nonregular_unix_test.go:53
FunctionTestWriteFileWriteErrorWhenTargetIsDir
TestWriteFileWriteErrorWhenTargetIsDir checks the (write error) branch: writing to an existing directory fails at os.WriteFile, and the error must com
internal/tools/write_test.go:68
MethodUnwrap
()
internal/cloud/cloud.go:110
MethodUpdate
Update is the promptInput's message entry point. Large pastes are swallowed into a chip and chip-aware keys handled before delegation; everything else
internal/tui/prompt.go:96
MethodView
View delegates to the textarea. Chip labels are already plain text in the value, so no post-processing is needed.
internal/tui/prompt.go:467
FunctionbudgetResponseHandler
budgetResponseHandler is a test LLM endpoint that answers with a single "ok" message plus the budget header, using OpenAI SSE format.
internal/tui/tui_test.go:1200
MethodcmdClear
(_ []string)
internal/tui/slash.go:198
MethodcmdHamrpass
cmdHamrpass: `/hamrpass` shows status + how-to, `/hamrpass <key>` validates, saves the key on the managed hamrpass profile, switches active, and pings
internal/tui/slash.go:282
MethodcmdModel
--- handlers --------------------------------------------------------------- cmdModel: `/models` lists, `/models <name>` sets. Cycling is Tab/Shift+Ta
internal/tui/slash.go:141
FunctionhamrpassArgHint
hamrpassArgHint is the args callback for /hamrpass: one synthetic row whose value mirrors the typed argument and whose description carries the live va
internal/tui/slash.go:264
Functionmain
()
cmd/codehamr/main.go:33
FunctionreExec
reExec runs the freshly-installed binary. Windows has no execve, so instead of the Unix same-PID swap we spawn it as a child sharing our stdio, wait,
cmd/codehamr/reexec_windows.go:20
FunctionsetProcessGroup
setProcessGroup is a no-op on Windows: the bash tool needs /bin/sh and POSIX process groups, so it isn't expected to run on a native Windows host. Thi
internal/tools/bash_windows.go:11
← previous601–622 of 622, ranked by callers