MCPcopy Create free account

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

Functions972 in github.com/Facets-cloud/flow

↓ 1 callersFunctiontempScriptPath
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 callersFunctiontemporalSummary
temporalSummary builds the "in-progress for 5 days, due in 2 days" line for `flow show task`.
internal/app/show.go:710
↓ 1 callersFunctionttyForHarnessSession
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 callersFunctionttyForHarnessSession
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 callersFunctionversionCachePath
()
internal/app/release.go:64
↓ 1 callersMethodwaitMax
waitMax returns waitingMaxRunes when truncation is enabled, 0 otherwise.
internal/app/list.go:40
↓ 1 callersFunctionwindowIDForHarnessSession
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 callersFunctionwindowLabel
(since time.Time)
internal/stats/report.go:242
↓ 1 callersFunctionwithTempFlowRoot
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 callersFunctionwrapAccessibilityError
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 callersFunctionwrapAccessibilityError
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
MethodAutoRunArgv
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
MethodBinary
()
internal/harness/claude/claude.go:56
MethodInstallSessionStartHook
(command string)
internal/harness/claude/claude.go:330
MethodInstallSkill
InstallSkill writes content to SkillInstallPath. Creates parent dirs.
internal/harness/claude/claude.go:291
MethodInstallUserPromptSubmitHook
(command string)
internal/harness/claude/claude.go:338
MethodLaunchCmd
---------- launching ---------- LaunchCmd builds `claude --session-id <uuid> <quoted-prompt> [--dangerously-skip-permissions]`. Injection text (opts.I
internal/harness/claude/claude.go:132
MethodLiveSessionIDs
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
MethodName
---------- identity ----------
internal/harness/claude/claude.go:55
MethodName
()
internal/app/background_test.go:278
MethodNewSessionID
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
MethodRenderTranscript
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
FunctionResolveTaskOrProject
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
MethodResumeBackground
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
MethodResumeCmd
ResumeCmd builds `claude --resume <uuid> [<quoted-injection>] [--dangerously-skip-permissions]`.
internal/harness/claude/claude.go:144
MethodSessionIDEnvVar
()
internal/harness/claude/claude.go:57
MethodSkillVersionPath
SkillVersionPath returns the sidecar VERSION file alongside SKILL.md.
internal/harness/claude/claude.go:282
MethodSkipPermissionsRun
---------- headless ----------
internal/harness/claude/claude.go:157
MethodSpawnBackground
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
FunctionTestActivateOwnerUnretires
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
FunctionTestAmbientHarness
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
FunctionTestAppendStaleVersionHintDevBuildIsEmpty
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
FunctionTestAppendStaleVersionHintMatchingIsEmpty
TestAppendStaleVersionHintMatchingIsEmpty pins that when the local version matches the latest release, no nudge is appended.
internal/app/release_test.go:151
FunctionTestAppendStaleVersionHintStaleEmitsHint
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
FunctionTestAppleScriptHasWasRunningBranch
TestAppleScriptHasWasRunningBranch — the keystroke AppleScript contains the warm/cold delay branch and keystrokes `bash <path>` + Return. Validates th
internal/warp/warp_test.go:205
FunctionTestAutoExecAppendsInjection
TestAutoExecAppendsInjection: cmdAutoExec, given a --with instruction, appends the marker + instruction to the prompt it hands to claude.
internal/app/auto_test.go:126
FunctionTestAutoExecFinalizesCompleted
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
FunctionTestAutoExecFinalizesDead
TestAutoExecFinalizesDead: a runner error (or a session that never marks itself done) finalizes as 'dead'.
internal/app/auto_test.go:236
FunctionTestAutoRunArgv
(t *testing.T)
internal/harness/claude/claude_test.go:129
FunctionTestAutoRunnerUsesHarnessArgv
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
FunctionTestBGAgentStatus
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
FunctionTestBackgroundAgentsList
(t *testing.T)
internal/harness/claude/background_test.go:241
FunctionTestBackgroundAgentsUsesAll
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
FunctionTestBackgroundLauncherForGate
(t *testing.T)
internal/app/background_test.go:280
FunctionTestBackgroundOverrideBeatsEnv
TestBackgroundOverrideBeatsEnv confirms the test escape hatch: setting BackgroundOverride pins IsBackground regardless of $FLOW_TERM, so tests can for
internal/spawner/spawner_test.go:44
FunctionTestBuildAutoBootstrapPrompt
TestBuildAutoBootstrapPrompt sanity-checks that the autonomous prompt tells the session it is headless, forbids interactive prompting, instructs self-
internal/app/auto_test.go:325
FunctionTestBuildBootstrapPromptForKindWithEmptyKind
(t *testing.T)
internal/app/do_test.go:662
FunctionTestBuildBootstrapPromptForPlaybookRun
(t *testing.T)
internal/app/do_test.go:636
FunctionTestBuildBootstrapPromptForRegularTask
(t *testing.T)
internal/app/do_test.go:652
FunctionTestBuildBootstrapPromptInvokesSkill
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
FunctionTestBuildBootstrapPromptMentionsOther
(t *testing.T)
internal/app/do_test.go:626
FunctionTestBuildOwnerTickPromptInteractiveAllowsHuman
(t *testing.T)
internal/app/owner_tick_test.go:731
FunctionTestBuildOwnerTickPromptReadsAndWritesJournal
(t *testing.T)
internal/app/owner_tick_test.go:800
FunctionTestBuildOwnerTickPromptRoutesWorkThroughTasksAndPlaybooks
(t *testing.T)
internal/app/owner_tick_test.go:635
FunctionTestBuildPlaybookRunBootstrapPromptFirstRun
(t *testing.T)
internal/app/do_test.go:671
FunctionTestBuildPlaybookRunBootstrapPromptNotFirstRun
(t *testing.T)
internal/app/do_test.go:686
FunctionTestBuildStatsEndToEnd
(t *testing.T)
internal/stats/report_test.go:14
FunctionTestBuildStatsPlaybookRuns
(t *testing.T)
internal/stats/report_test.go:133
FunctionTestBuildStatsWindowed
(t *testing.T)
internal/stats/report_test.go:79
FunctionTestCacheHitMissAndPersist
(t *testing.T)
internal/stats/cache_test.go:9
FunctionTestCmdAddOwnerDuplicateSlugFriendlyError
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
FunctionTestCmdAddOwnerEveryOptionalWithDefault
(t *testing.T)
internal/app/owner_test.go:226
FunctionTestCmdAddOwnerHappyPath
(t *testing.T)
internal/app/owner_test.go:14
FunctionTestCmdAddPlaybookHappyPath
(t *testing.T)
internal/app/playbook_test.go:11
FunctionTestCmdAddPlaybookProjectNotFound
(t *testing.T)
internal/app/playbook_test.go:68
FunctionTestCmdAddPlaybookRequiresWorkDir
(t *testing.T)
internal/app/playbook_test.go:41
FunctionTestCmdAddPlaybookWithProject
(t *testing.T)
internal/app/playbook_test.go:48
FunctionTestCmdAddProjectBadPriority
(t *testing.T)
internal/app/add_test.go:132
FunctionTestCmdAddProjectCollisionAvoidance
(t *testing.T)
internal/app/add_test.go:112
FunctionTestCmdAddProjectHappyPath
---------- add project ----------
internal/app/add_test.go:40
FunctionTestCmdAddProjectMissingWorkDirFailsWithoutMkdir
(t *testing.T)
internal/app/add_test.go:103
FunctionTestCmdAddProjectMkdirCreatesMissing
(t *testing.T)
internal/app/add_test.go:89
FunctionTestCmdAddProjectRequiresWorkDir
(t *testing.T)
internal/app/add_test.go:82
FunctionTestCmdAddTaskCollisionAvoidance
(t *testing.T)
internal/app/add_test.go:224
FunctionTestCmdAddTaskFloating
---------- add task ----------
internal/app/add_test.go:142
FunctionTestCmdAddTaskInheritsProjectWorkDir
(t *testing.T)
internal/app/add_test.go:173
FunctionTestCmdAddTaskInvalidProject
(t *testing.T)
internal/app/add_test.go:217
FunctionTestCmdAddTaskOverridesProjectWorkDir
(t *testing.T)
internal/app/add_test.go:196
FunctionTestCmdAddTaskWithBadDueDate
(t *testing.T)
internal/app/add_test.go:280
FunctionTestCmdAddTaskWithDueDate
(t *testing.T)
internal/app/add_test.go:261
FunctionTestCmdAddTaskWithTags
(t *testing.T)
internal/app/owner_test.go:390
FunctionTestCmdAddTaskWithoutDueDate
(t *testing.T)
internal/app/add_test.go:287
FunctionTestCmdAddTaskWorkDirMkdir
(t *testing.T)
internal/app/add_test.go:239
FunctionTestCmdAddUnknownSubcommand
(t *testing.T)
internal/app/add_test.go:251
FunctionTestCmdArchiveAmbiguousAcrossKinds
(t *testing.T)
internal/app/archive_test.go:135
FunctionTestCmdArchiveExactSlug
(t *testing.T)
internal/app/archive_test.go:201
FunctionTestCmdArchiveIdempotent
(t *testing.T)
internal/app/archive_test.go:154
FunctionTestCmdArchivePlaybook
(t *testing.T)
internal/app/archive_test.go:174
FunctionTestCmdArchiveProjectDoesNotCascade
(t *testing.T)
internal/app/archive_test.go:71
FunctionTestCmdArchiveSubPrefix
(t *testing.T)
internal/app/archive_test.go:99
FunctionTestCmdArchiveTask
(t *testing.T)
internal/app/archive_test.go:42
FunctionTestCmdArchiveUnknownRef
(t *testing.T)
internal/app/archive_test.go:147
FunctionTestCmdDoAutoLaunchesDetached
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
FunctionTestCmdDoAutoRefusesWhenAlreadyRunning
TestCmdDoAutoRefusesWhenAlreadyRunning: a second --auto launch while a prior run is still 'running' (live pid) is refused without --force.
internal/app/auto_test.go:152
FunctionTestCmdDoAutoRejectsHere
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
FunctionTestCmdDoAutoWithInjection
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
FunctionTestCmdDoBackgroundAlreadyRunning
TestCmdDoBackgroundAlreadyRunning: re-running while the session is alive in the registry must NOT spawn or resume — just report.
internal/app/background_test.go:172
FunctionTestCmdDoBackgroundFreshSpawn
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
FunctionTestCmdDoBackgroundResumeWhenExited
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
FunctionTestCmdDoBackgroundResumeWhenGone
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
← previousnext →401–500 of 972, ranked by callers