Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Facets-cloud/flow
/ functions
Functions
972 in github.com/Facets-cloud/flow
⨍
Functions
972
◇
Types & classes
69
↓ 1 callers
Function
tempScriptPath
tempScriptPath returns os.TempDir()/flow-warp-<uuid>.sh. UUID is 16 crypto/rand bytes hex-encoded — sufficient uniqueness for concurrent spawns. No de
internal/warp/warp.go:225
↓ 1 callers
Function
temporalSummary
temporalSummary builds the "in-progress for 5 days, due in 2 days" line for `flow show task`.
internal/app/show.go:710
↓ 1 callers
Function
ttyForHarnessSession
ttyForHarnessSession returns the controlling tty (e.g., "/dev/ttys012") of the process matching `binary` and carrying the given session UUID in its ar
internal/terminal/terminal.go:206
↓ 1 callers
Function
ttyForHarnessSession
ttyForHarnessSession returns the controlling tty (e.g., "/dev/ttys012") of the process matching `binary` and carrying the given session UUID in its ar
internal/iterm/iterm.go:125
↓ 1 callers
Function
versionCachePath
()
internal/app/release.go:64
↓ 1 callers
Method
waitMax
waitMax returns waitingMaxRunes when truncation is enabled, 0 otherwise.
internal/app/list.go:40
↓ 1 callers
Function
windowIDForHarnessSession
windowIDForHarnessSession parses `kitty @ ls` JSON and returns the kitty window id of the first window whose foreground_processes contain a process ma
internal/kitty/kitty.go:176
↓ 1 callers
Function
windowLabel
(since time.Time)
internal/stats/report.go:242
↓ 1 callers
Function
withTempFlowRoot
withTempFlowRoot points FLOW_ROOT at a fresh tempdir and returns the root. It does NOT open flow.db — callers that need a live DB should use showListE
internal/app/show_test.go:22
↓ 1 callers
Function
wrapAccessibilityError
wrapAccessibilityError returns a multi-line error explaining what's missing and how to fix it. The Claude session that ran `flow do` surfaces this err
internal/terminal/terminal.go:154
↓ 1 callers
Function
wrapAccessibilityError
wrapAccessibilityError returns a Warp-specific multi-line error pointing at the right System Settings pane and naming "Warp" (not "Terminal" — that wo
internal/warp/warp.go:263
Method
AutoRunArgv
AutoRunArgv builds `claude --session-id <uuid> -p <prompt> [--dangerously-skip-permissions]` as argv (not a shell string) so the `flow do --auto` supe
internal/harness/claude/claude.go:168
Method
Binary
()
internal/harness/claude/claude.go:56
Method
InstallSessionStartHook
(command string)
internal/harness/claude/claude.go:330
Method
InstallSkill
InstallSkill writes content to SkillInstallPath. Creates parent dirs.
internal/harness/claude/claude.go:291
Method
InstallUserPromptSubmitHook
(command string)
internal/harness/claude/claude.go:338
Method
LaunchCmd
---------- launching ---------- LaunchCmd builds `claude --session-id <uuid> <quoted-prompt> [--dangerously-skip-permissions]`. Injection text (opts.I
internal/harness/claude/claude.go:132
Method
LiveSessionIDs
LiveSessionIDs scans the process table for claude invocations carrying --session-id or --resume and returns counts per UUID (lowercased). A count > 1
internal/harness/claude/claude.go:207
Method
Name
---------- identity ----------
internal/harness/claude/claude.go:55
Method
Name
()
internal/app/background_test.go:278
Method
NewSessionID
NewSessionID generates a v4 UUID locally. flow's caller writes it to tasks.session_id before spawning so `claude --session-id <uuid>` produces a trans
internal/harness/claude/claude.go:73
Method
RenderTranscript
RenderTranscript opens the session jsonl at the claude convention path (~/.claude/projects/<encoded-cwd>/<sessionID>.jsonl), decodes the claude-specif
internal/harness/claude/transcript.go:22
Function
ResolveTaskOrProject
ResolveTaskOrProject resolves a ref that could be either a task or project. Supports optional task/ or project/ prefix. Without prefix, tries both. Er
internal/app/resolve.go:138
Method
ResumeBackground
ResumeBackground runs `claude --bg --resume <sessionID> [<injection>] [--dangerously-skip-permissions]`. `--bg` does not honor `--resume`'s id — it st
internal/harness/claude/background.go:182
Method
ResumeCmd
ResumeCmd builds `claude --resume <uuid> [<quoted-injection>] [--dangerously-skip-permissions]`.
internal/harness/claude/claude.go:144
Method
SessionIDEnvVar
()
internal/harness/claude/claude.go:57
Method
SkillVersionPath
SkillVersionPath returns the sidecar VERSION file alongside SKILL.md.
internal/harness/claude/claude.go:282
Method
SkipPermissionsRun
---------- headless ----------
internal/harness/claude/claude.go:157
Method
SpawnBackground
SpawnBackground runs `claude --bg --name <name> <prompt> [--dangerously-skip-permissions]` and captures the minted session id. opts.Inject is appended
internal/harness/claude/background.go:165
Function
TestActivateOwnerUnretires
ActivateOwner clears archived_at so `flow owner start` un-retires a retired owner (otherwise it'd be active-but-hidden and never tick).
internal/flowdb/owners_test.go:196
Function
TestAmbientHarness
TestAmbientHarness covers the env-var probe: returns the matching harness when its session-id env var is set, nil otherwise.
internal/app/harness_test.go:15
Function
TestAppendStaleVersionHintDevBuildIsEmpty
TestAppendStaleVersionHintDevBuildIsEmpty pins that dev builds (Version=="dev" or "") never trigger the version check at all — running flow from `make
internal/app/release_test.go:134
Function
TestAppendStaleVersionHintMatchingIsEmpty
TestAppendStaleVersionHintMatchingIsEmpty pins that when the local version matches the latest release, no nudge is appended.
internal/app/release_test.go:151
Function
TestAppendStaleVersionHintStaleEmitsHint
TestAppendStaleVersionHintStaleEmitsHint pins the staleness signal shape: the hook must include "flow-version-stale:" so the §4.15 trigger in the skil
internal/app/release_test.go:169
Function
TestAppleScriptHasWasRunningBranch
TestAppleScriptHasWasRunningBranch — the keystroke AppleScript contains the warm/cold delay branch and keystrokes `bash <path>` + Return. Validates th
internal/warp/warp_test.go:205
Function
TestAutoExecAppendsInjection
TestAutoExecAppendsInjection: cmdAutoExec, given a --with instruction, appends the marker + instruction to the prompt it hands to claude.
internal/app/auto_test.go:126
Function
TestAutoExecFinalizesCompleted
TestAutoExecFinalizesCompleted: when the headless session self-completes (task ends up 'done' and the runner returns nil), __auto-exec records 'comple
internal/app/auto_test.go:201
Function
TestAutoExecFinalizesDead
TestAutoExecFinalizesDead: a runner error (or a session that never marks itself done) finalizes as 'dead'.
internal/app/auto_test.go:236
Function
TestAutoRunArgv
(t *testing.T)
internal/harness/claude/claude_test.go:129
Function
TestAutoRunnerUsesHarnessArgv
TestAutoRunnerUsesHarnessArgv verifies the supervisor builds its argv from the resolved harness (not a hardcoded binary). The per-harness argv shape i
internal/app/auto_test.go:310
Function
TestBGAgentStatus
TestBGAgentStatus: a claude-bound task whose session is in the registry resolves to its live agent (status/state/pid); absent or session-less tasks re
internal/app/background_test.go:296
Function
TestBackgroundAgentsList
(t *testing.T)
internal/harness/claude/background_test.go:241
Function
TestBackgroundAgentsUsesAll
BackgroundAgents must query with --all so exited/failed/completed sessions are visible (needed to tell "removed" from "present, idle").
internal/harness/claude/background_test.go:255
Function
TestBackgroundLauncherForGate
(t *testing.T)
internal/app/background_test.go:280
Function
TestBackgroundOverrideBeatsEnv
TestBackgroundOverrideBeatsEnv confirms the test escape hatch: setting BackgroundOverride pins IsBackground regardless of $FLOW_TERM, so tests can for
internal/spawner/spawner_test.go:44
Function
TestBuildAutoBootstrapPrompt
TestBuildAutoBootstrapPrompt sanity-checks that the autonomous prompt tells the session it is headless, forbids interactive prompting, instructs self-
internal/app/auto_test.go:325
Function
TestBuildBootstrapPromptForKindWithEmptyKind
(t *testing.T)
internal/app/do_test.go:662
Function
TestBuildBootstrapPromptForPlaybookRun
(t *testing.T)
internal/app/do_test.go:636
Function
TestBuildBootstrapPromptForRegularTask
(t *testing.T)
internal/app/do_test.go:652
Function
TestBuildBootstrapPromptInvokesSkill
TestBuildBootstrapPromptInvokesSkill pins the same invariant for the fresh-spawn prompt used by `flow do` (the hook only covers resume).
internal/app/hook_test.go:199
Function
TestBuildBootstrapPromptMentionsOther
(t *testing.T)
internal/app/do_test.go:626
Function
TestBuildOwnerTickPromptInteractiveAllowsHuman
(t *testing.T)
internal/app/owner_tick_test.go:731
Function
TestBuildOwnerTickPromptReadsAndWritesJournal
(t *testing.T)
internal/app/owner_tick_test.go:800
Function
TestBuildOwnerTickPromptRoutesWorkThroughTasksAndPlaybooks
(t *testing.T)
internal/app/owner_tick_test.go:635
Function
TestBuildPlaybookRunBootstrapPromptFirstRun
(t *testing.T)
internal/app/do_test.go:671
Function
TestBuildPlaybookRunBootstrapPromptNotFirstRun
(t *testing.T)
internal/app/do_test.go:686
Function
TestBuildStatsEndToEnd
(t *testing.T)
internal/stats/report_test.go:14
Function
TestBuildStatsPlaybookRuns
(t *testing.T)
internal/stats/report_test.go:133
Function
TestBuildStatsWindowed
(t *testing.T)
internal/stats/report_test.go:79
Function
TestCacheHitMissAndPersist
(t *testing.T)
internal/stats/cache_test.go:9
Function
TestCmdAddOwnerDuplicateSlugFriendlyError
An explicit --slug that collides with an existing owner should fail with a friendly message, not a raw SQL UNIQUE-constraint error.
internal/app/owner_test.go:205
Function
TestCmdAddOwnerEveryOptionalWithDefault
(t *testing.T)
internal/app/owner_test.go:226
Function
TestCmdAddOwnerHappyPath
(t *testing.T)
internal/app/owner_test.go:14
Function
TestCmdAddPlaybookHappyPath
(t *testing.T)
internal/app/playbook_test.go:11
Function
TestCmdAddPlaybookProjectNotFound
(t *testing.T)
internal/app/playbook_test.go:68
Function
TestCmdAddPlaybookRequiresWorkDir
(t *testing.T)
internal/app/playbook_test.go:41
Function
TestCmdAddPlaybookWithProject
(t *testing.T)
internal/app/playbook_test.go:48
Function
TestCmdAddProjectBadPriority
(t *testing.T)
internal/app/add_test.go:132
Function
TestCmdAddProjectCollisionAvoidance
(t *testing.T)
internal/app/add_test.go:112
Function
TestCmdAddProjectHappyPath
---------- add project ----------
internal/app/add_test.go:40
Function
TestCmdAddProjectMissingWorkDirFailsWithoutMkdir
(t *testing.T)
internal/app/add_test.go:103
Function
TestCmdAddProjectMkdirCreatesMissing
(t *testing.T)
internal/app/add_test.go:89
Function
TestCmdAddProjectRequiresWorkDir
(t *testing.T)
internal/app/add_test.go:82
Function
TestCmdAddTaskCollisionAvoidance
(t *testing.T)
internal/app/add_test.go:224
Function
TestCmdAddTaskFloating
---------- add task ----------
internal/app/add_test.go:142
Function
TestCmdAddTaskInheritsProjectWorkDir
(t *testing.T)
internal/app/add_test.go:173
Function
TestCmdAddTaskInvalidProject
(t *testing.T)
internal/app/add_test.go:217
Function
TestCmdAddTaskOverridesProjectWorkDir
(t *testing.T)
internal/app/add_test.go:196
Function
TestCmdAddTaskWithBadDueDate
(t *testing.T)
internal/app/add_test.go:280
Function
TestCmdAddTaskWithDueDate
(t *testing.T)
internal/app/add_test.go:261
Function
TestCmdAddTaskWithTags
(t *testing.T)
internal/app/owner_test.go:390
Function
TestCmdAddTaskWithoutDueDate
(t *testing.T)
internal/app/add_test.go:287
Function
TestCmdAddTaskWorkDirMkdir
(t *testing.T)
internal/app/add_test.go:239
Function
TestCmdAddUnknownSubcommand
(t *testing.T)
internal/app/add_test.go:251
Function
TestCmdArchiveAmbiguousAcrossKinds
(t *testing.T)
internal/app/archive_test.go:135
Function
TestCmdArchiveExactSlug
(t *testing.T)
internal/app/archive_test.go:201
Function
TestCmdArchiveIdempotent
(t *testing.T)
internal/app/archive_test.go:154
Function
TestCmdArchivePlaybook
(t *testing.T)
internal/app/archive_test.go:174
Function
TestCmdArchiveProjectDoesNotCascade
(t *testing.T)
internal/app/archive_test.go:71
Function
TestCmdArchiveSubPrefix
(t *testing.T)
internal/app/archive_test.go:99
Function
TestCmdArchiveTask
(t *testing.T)
internal/app/archive_test.go:42
Function
TestCmdArchiveUnknownRef
(t *testing.T)
internal/app/archive_test.go:147
Function
TestCmdDoAutoLaunchesDetached
TestCmdDoAutoLaunchesDetached pins the core --auto behavior: no terminal tab is spawned, the detached supervisor launcher is invoked, and the task's a
internal/app/auto_test.go:32
Function
TestCmdDoAutoRefusesWhenAlreadyRunning
TestCmdDoAutoRefusesWhenAlreadyRunning: a second --auto launch while a prior run is still 'running' (live pid) is refused without --force.
internal/app/auto_test.go:152
Function
TestCmdDoAutoRejectsHere
TestCmdDoAutoRejectsHere: --auto cannot combine with --here (--here binds the current session; --auto spawns its own). --with IS allowed (see TestCmdD
internal/app/auto_test.go:94
Function
TestCmdDoAutoWithInjection
TestCmdDoAutoWithInjection: --auto --with threads the instruction to the detached supervisor so it can append it to the autonomous prompt.
internal/app/auto_test.go:107
Function
TestCmdDoBackgroundAlreadyRunning
TestCmdDoBackgroundAlreadyRunning: re-running while the session is alive in the registry must NOT spawn or resume — just report.
internal/app/background_test.go:172
Function
TestCmdDoBackgroundFreshSpawn
TestCmdDoBackgroundFreshSpawn: $FLOW_TERM=bg flow do <task> spawns a bg agent, captures the REAL full session id (not a pre-allocated phantom), record
internal/app/background_test.go:133
Function
TestCmdDoBackgroundResumeWhenExited
TestCmdDoBackgroundResumeWhenExited: a bound session that's still listed but no longer running (exited, no pid) is resumed (forked + re-recorded), not
internal/app/background_test.go:240
Function
TestCmdDoBackgroundResumeWhenGone
TestCmdDoBackgroundResumeWhenGone: a bound session ABSENT from the registry is brought back via --bg --resume <oldid>, and because --bg mints a fresh
internal/app/background_test.go:197
← previous
next →
401–500 of 972, ranked by callers