MCPcopy Create free account

hub / github.com/Facets-cloud/flow / functions

Functions972 in github.com/Facets-cloud/flow

FunctionTestSkillUninstallRemovesDir
(t *testing.T)
internal/app/skill_test.go:136
FunctionTestSkillUnknownSubcommand
(t *testing.T)
internal/app/skill_test.go:283
FunctionTestSkillUpdateIsForceInstall
(t *testing.T)
internal/app/skill_test.go:125
FunctionTestSkillUsesAskUserQuestionConsistently
(t *testing.T)
internal/app/skill_test.go:386
FunctionTestSlugify
(t *testing.T)
internal/app/slug_test.go:5
FunctionTestSlugifyEmpty
(t *testing.T)
internal/app/slug_test.go:50
FunctionTestSlugifyOnlyPunctuation
(t *testing.T)
internal/app/slug_test.go:56
FunctionTestSlugifyTruncatesLongNames
(t *testing.T)
internal/app/slug_test.go:27
FunctionTestSparkline
(t *testing.T)
internal/app/stats_test.go:149
FunctionTestSparklineAllZero
(t *testing.T)
internal/app/stats_test.go:163
FunctionTestSparklineEmpty
(t *testing.T)
internal/app/stats_test.go:156
FunctionTestSpawnBackgroundCapturesSessionID
(t *testing.T)
internal/harness/claude/background_test.go:135
FunctionTestSpawnBackgroundInjectAppended
(t *testing.T)
internal/harness/claude/background_test.go:193
FunctionTestSpawnBackgroundRunsInWorkDir
SpawnBackground must run claude in the task's work_dir (a bg session begins there and keys its transcript/CLAUDE.md to it), not flow's cwd.
internal/harness/claude/background_test.go:171
FunctionTestSpawnBackgroundShortIDNotInRegistry
If the captured short id isn't in the agents registry, capture failed — surface an error rather than recording a phantom id.
internal/harness/claude/background_test.go:207
FunctionTestSpawnBackgroundSkipPermissions
(t *testing.T)
internal/harness/claude/background_test.go:182
FunctionTestSpawnTabBasicNoEnv
TestSpawnTabBasicNoEnv verifies the two-call argv sequence with no env vars: 1) zellij action new-tab --name <title> --cwd <cwd> 2) zellij action writ
internal/zellij/zellij_test.go:13
FunctionTestSpawnTabBasicNoEnv
TestSpawnTabBasicNoEnv verifies the two-call argv sequence with no env vars: 1. RunnerOutput: kitty @ launch --type=tab --tab-title=<t> --cwd=<cwd> (
internal/kitty/kitty_test.go:14
FunctionTestSpawnTabBasicNoEnv
TestSpawnTabBasicNoEnv — happy path with no env vars. WriteScript is called once with the expected body shape, OpenURL with the correct URL-encoded wa
internal/warp/warp_test.go:67
FunctionTestSpawnTabEnvVarsSorted
TestSpawnTabEnvVarsSorted verifies env vars are emitted alphabetically, each value shell-quoted, all space-separated, before the command. This matches
internal/zellij/zellij_test.go:41
FunctionTestSpawnTabEnvVarsSorted
TestSpawnTabEnvVarsSorted verifies env vars are emitted alphabetically, each value shell-quoted, all space-separated, before the command. This matches
internal/kitty/kitty_test.go:46
FunctionTestSpawnTabEnvVarsSorted
TestSpawnTabEnvVarsSorted — env vars sorted alphabetically and shell-quoted into the `exec env …` line. Exact parity with the zellij/iterm contract.
internal/warp/warp_test.go:111
FunctionTestSpawnTabFlattensEmbeddedNewlines
TestSpawnTabFlattensEmbeddedNewlines verifies that any `\n` inside `command` is replaced with a space before write-chars. Without this, zellij types e
internal/zellij/zellij_test.go:101
FunctionTestSpawnTabFlattensEmbeddedNewlines
TestSpawnTabFlattensEmbeddedNewlines — embedded `\n` in command must be replaced with a space before send-text, same reasoning as zellij (PTY would in
internal/kitty/kitty_test.go:128
FunctionTestSpawnTabLaunchEmptyOutput
TestSpawnTabLaunchEmptyOutput — if kitty @ launch returns empty stdout, SpawnTab must fail rather than send-text to id:"" (which kitty would interpret
internal/kitty/kitty_test.go:104
FunctionTestSpawnTabLaunchErrorShortCircuits
TestSpawnTabLaunchErrorShortCircuits — an error from `kitty @ launch` must be wrapped (with the remote-control hint) and send-text must NOT be attempt
internal/kitty/kitty_test.go:77
FunctionTestSpawnTabNoEnvVars
TestSpawnTabNoEnvVars covers the env-prefix branch when envVars is nil — the line should still cd and run the command, just with no VAR=value assignme
internal/terminal/terminal_test.go:57
FunctionTestSpawnTabNoEnvVars
TestSpawnTabNoEnvVars covers the env-prefix branch when envVars is nil — the line should still cd and run the command, just with no VAR=value assignme
internal/ghostty/ghostty_test.go:59
FunctionTestSpawnTabNoTitleOmitsOSC2
TestSpawnTabNoTitleOmitsOSC2 — empty title skips the OSC 2 line entirely (no stray printf in the script).
internal/warp/warp_test.go:148
FunctionTestSpawnTabPassesThroughUnknownErrors
TestSpawnTabPassesThroughUnknownErrors verifies that non-Accessibility errors from osascript are returned unchanged — only the specific permission-den
internal/terminal/terminal_test.go:123
FunctionTestSpawnTabPropagatesNewTabError
TestSpawnTabPropagatesNewTabError verifies an error from the new-tab call is returned and write-chars is NOT attempted.
internal/zellij/zellij_test.go:70
FunctionTestSpawnTabPropagatesOpenURLError
TestSpawnTabPropagatesOpenURLError — when OpenURL fails, Runner is never invoked and removeScript cleans up the orphaned temp file.
internal/warp/warp_test.go:274
FunctionTestSpawnTabPropagatesRunnerError
TestSpawnTabPropagatesRunnerError — when Runner fails, removeScript cleans up the orphaned temp file and the error is returned unwrapped (for non-Acce
internal/warp/warp_test.go:293
FunctionTestSpawnTabPropagatesWriteScriptError
TestSpawnTabPropagatesWriteScriptError — when WriteScript fails, OpenURL and Runner are never invoked.
internal/warp/warp_test.go:253
FunctionTestSpawnTabRoutesToGhostty
TestSpawnTabRoutesToGhostty asserts the ghostty Runner is the one called when Detect() resolves to BackendGhostty.
internal/spawner/spawner_test.go:315
FunctionTestSpawnTabRoutesToITerm
TestSpawnTabRoutesToITerm asserts the iterm Runner is the one called when Detect() resolves to BackendITerm.
internal/spawner/spawner_test.go:225
FunctionTestSpawnTabRoutesToKitty
TestSpawnTabRoutesToKitty asserts the kitty Runner+RunnerOutput pair is invoked when Detect() resolves to BackendKitty.
internal/spawner/spawner_test.go:279
FunctionTestSpawnTabRoutesToTerminal
TestSpawnTabRoutesToTerminal asserts the terminal Runner is the one called when Detect() resolves to BackendTerminal.
internal/spawner/spawner_test.go:243
FunctionTestSpawnTabRoutesToWarp
TestSpawnTabRoutesToWarp asserts the warp Runner is the one called when Detect() resolves to BackendWarp.
internal/spawner/spawner_test.go:297
FunctionTestSpawnTabRoutesToZellij
TestSpawnTabRoutesToZellij asserts the zellij Runner is the one called when Detect() resolves to BackendZellij.
internal/spawner/spawner_test.go:261
FunctionTestSpawnTabScriptShape
TestSpawnTabScriptShape verifies the AppleScript emitted to osascript targets Terminal.app, embeds env-var assignments before the command, uses cmd-T
internal/terminal/terminal_test.go:14
FunctionTestSpawnTabScriptShape
TestSpawnTabScriptShape verifies the AppleScript emitted to osascript targets Ghostty, embeds env-var assignments before the command, sets the tab tit
internal/ghostty/ghostty_test.go:13
FunctionTestSpawnTabSetsTitleViaOSC2
TestSpawnTabSetsTitleViaOSC2 — when title is non-empty, the OSC 2 escape sequence is emitted as a printf line before cd.
internal/warp/warp_test.go:132
FunctionTestSpawnTabWrapsAccessibilityError
TestSpawnTabWrapsAccessibilityError verifies that when osascript fails with a macOS Accessibility-denied error pattern, SpawnTab returns a wrapped err
internal/terminal/terminal_test.go:84
FunctionTestSpawnTabWrapsAccessibilityError
TestSpawnTabWrapsAccessibilityError — when Runner returns one of the documented Accessibility-denied error patterns, the returned error string names "
internal/warp/warp_test.go:310
FunctionTestStatsE2E
TestStatsE2E exercises `flow stats` against a real (but temp) flow root: empty stats succeed, --card writes a file, and a garbage --since value return
internal/app/e2e_test.go:16
FunctionTestTable_AlignedColumns
TestTable_AlignedColumns verifies that the Table renderer pads columns to the widest visible cell across all rows.
internal/listfmt/listfmt_test.go:119
FunctionTestTable_AlignedWithANSI
TestTable_AlignedWithANSI verifies that colored cells align against uncolored cells of the same visible width — the bug that motivated dropping text/t
internal/listfmt/listfmt_test.go:154
FunctionTestTargetedOwnerMutationsPreserveTickBookkeeping
The targeted owner-mutation helpers must touch ONLY their own columns — never clobber in-flight tick bookkeeping (the dispatch/finish race fix).
internal/flowdb/owners_test.go:160
FunctionTestTaskCRUD
(t *testing.T)
internal/flowdb/db_test.go:137
FunctionTestTaskWithKindAndPlaybookSlug
(t *testing.T)
internal/flowdb/db_test.go:456
FunctionTestTickPromptsSelfPaceNextWake
(t *testing.T)
internal/app/owner_tick_test.go:789
FunctionTestTranscriptCmdNoSession
Parser-level tests live in internal/harness/claude/transcript_test.go (the claude jsonl format is owned by the harness impl). The tests here exercise
internal/app/transcript_test.go:19
FunctionTestTranscriptCmdWithSession
(t *testing.T)
internal/app/transcript_test.go:37
FunctionTestTranscriptRetrospectiveBindFullOutput
TestTranscriptRetrospectiveBindFullOutput pins the bug this task fixes: a retrospective `flow do --here` bind stamps session_started at BIND time, whi
internal/app/transcript_test.go:83
FunctionTestTruncate
(t *testing.T)
internal/listfmt/listfmt_test.go:40
FunctionTestUpdateOwnerPersistsMutableFields
(t *testing.T)
internal/flowdb/owners_test.go:323
FunctionTestValidateSessionID
(t *testing.T)
internal/harness/claude/claude_test.go:40
FunctionTestVisibleWidth
(t *testing.T)
internal/listfmt/listfmt_test.go:95
FunctionTestWorkdirUpsert
(t *testing.T)
internal/flowdb/db_test.go:160
FunctionTestWriteCard
(t *testing.T)
internal/app/card_test.go:101
FunctionTestWriteCardPNG
TestWriteCardPNG verifies that writeCardPNG writes a valid PNG file with sane dimensions that can be re-decoded.
internal/app/card_png_test.go:102
MethodUninstallSessionStartHook
(command string)
internal/harness/claude/claude.go:334
MethodUninstallSkill
UninstallSkill removes the skill directory entirely (SKILL.md plus VERSION sidecar plus anything else dropped alongside).
internal/harness/claude/claude.go:307
MethodUninstallUserPromptSubmitHook
(command string)
internal/harness/claude/claude.go:343
MethodValidateSession
(workDir, sessionID string)
internal/harness/claude/claude.go:99
MethodValidateSessionID
(s string)
internal/harness/claude/claude.go:77
Functionapply
(e)
site/script.js:5
Functionmain
()
main.go:14
FunctionrunBGCommand
(workDir string, args []string)
internal/harness/claude/background.go:30
FunctionrunPS
()
internal/harness/claude/claude.go:239
FunctionrunSkipPermissions
runSkipPermissions is the default SkipPermissionsRunner — execs `claude -p <prompt> --dangerously-skip-permissions`. Stdout/stderr are discarded becau
internal/harness/claude/claude.go:183
← previous901–972 of 972, ranked by callers