MCPcopy Create free account

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

Functions972 in github.com/Facets-cloud/flow

↓ 1 callersFunctionRun
Run is the entry point for the CLI. Returns an exit code.
internal/app/app.go:16
↓ 1 callersFunctionSpawnTab
SpawnTab opens a new iTerm2 tab with the given title, cwd, and command. envVars are attached as an inline prefix to `command` only — so they are prese
internal/iterm/iterm.go:48
↓ 1 callersMethodUninstallSessionStartHook
UninstallSessionStartHook removes any SessionStart entry whose inner command matches `command`.
internal/harness/harness.go:266
↓ 1 callersMethodUninstallSkill
UninstallSkill removes the skill directory for this harness.
internal/harness/harness.go:255
↓ 1 callersMethodUninstallUserPromptSubmitHook
UninstallUserPromptSubmitHook removes any UserPromptSubmit entry matching `command`. Used by `flow skill uninstall`.
internal/harness/harness.go:277
↓ 1 callersFunctionaddOwner
addOwner implements `flow add owner "<name>" --work-dir <p> --every <dur>`.
internal/app/owner.go:469
↓ 1 callersFunctionaddPlaybook
addPlaybook implements `flow add playbook "<name>" [flags]`.
internal/app/playbook.go:39
↓ 1 callersFunctionaddProject
(args []string)
internal/app/add.go:47
↓ 1 callersFunctionaddTask
(args []string)
internal/app/add.go:142
↓ 1 callersFunctionageString
(days int)
internal/app/list.go:419
↓ 1 callersFunctionautoCell
autoCell builds the AUTO column in table output: the run status, with the supervisor pid appended for a running run (so the user can see / act on it a
internal/app/list.go:485
↓ 1 callersFunctionautoRunColor
autoRunColor maps an autonomous-run status to a display color: running → cyan (in flight), completed → green, dead → red (needs eyes).
internal/app/list.go:498
↓ 1 callersFunctionbgAgentInRegistry
bgAgentInRegistry returns the registry entry for sessionID (any state: working / blocked / idle / done / failed / stopped), or nil if the session is a
internal/app/do.go:553
↓ 1 callersFunctionbgAgentsJSONExited
bgAgentsJSONExited builds a registry entry for an exited session (no pid / status — `state` only), as `claude agents --json --all` reports a stopped/f
internal/app/background_test.go:68
↓ 1 callersFunctionbgPlaybookContext
bgPlaybookContext computes (playbookSlug, isFirstRun) for a task's bootstrap prompt, mirroring the interactive bootstrap path. Returns ("", false) for
internal/app/do.go:703
↓ 1 callersFunctionbuildAppleScript
buildAppleScript activates Warp, waits for the new tab from `open warp://...` to take key focus, then keystrokes `bash <scriptPath>` + Return into the
internal/warp/warp.go:202
↓ 1 callersFunctionbuildCloseoutSweepPrompt
buildCloseoutSweepPrompt composes the headless prompt that drives the post-done close-out sweep. The prompt is passed as a single positional arg to `c
internal/app/done.go:128
↓ 1 callersFunctionbuildScript
buildScript produces the bash script body that the keystroked `bash <path>` line invokes. Shape: #!/bin/bash rm -- "$0" printf '\033]2;%s\007' '<t
internal/warp/warp.go:145
↓ 1 callersFunctionclassify
classify maps a tool_use block to a lookup kind. The bool is false when the block is not a lookup (or is an own-bootstrap read we skip).
internal/stats/scan.go:150
↓ 1 callersFunctionclearOwnerTickBookkeeping
clearOwnerTickBookkeeping clears tick_pid/tick_started without recording a tick result — used when a dispatched tick is skipped (e.g. owner no longer
internal/app/owner_tick.go:410
↓ 1 callersFunctioncmdDoBackground
cmdDoBackground is the $FLOW_TERM=bg branch of `flow do`. It spawns (or resumes) a terminal-free background agent via the harness's BackgroundLauncher
internal/app/do.go:593
↓ 1 callersFunctioncmdHook
cmdHook dispatches `flow hook <subcommand>`. Two subcommands: - session-start: wired as a Claude Code SessionStart hook so that every session start (
internal/app/hook.go:22
↓ 1 callersFunctioncmdRunPlaybook
(args []string)
internal/app/run.go:31
↓ 1 callersFunctioncmdUpdateProject
cmdUpdateProject implements `flow update project <ref> [--priority <p>]`. Project field edits are minimal — priority is the only post-creation field w
internal/app/update.go:342
↓ 1 callersFunctioncmdUpdateTask
cmdUpdateTask implements `flow update task <ref> [--work-dir <path>] [--mkdir] [--status <s>] [--assignee <name>] [--due-date <date>] [--waiting ...]
internal/app/update.go:47
↓ 1 callersFunctioncmdWorkdirAdd
cmdWorkdirAdd registers <path> (making it absolute), auto-detects git remote from .git/config, and upserts. Accepts --name and --description anywhere
internal/app/workdir.go:143
↓ 1 callersFunctioncmdWorkdirList
cmdWorkdirList prints all registered workdirs sorted by last_used_at descending (NULLs last). Each row is rendered across two output lines when a desc
internal/app/workdir.go:59
↓ 1 callersFunctioncmdWorkdirRemove
cmdWorkdirRemove deletes a workdir row. Does not touch the filesystem and does not null out tasks.work_dir.
internal/app/workdir.go:249
↓ 1 callersFunctioncmdWorkdirScan
cmdWorkdirScan walks a root (or ~/code and ~/work by default) up to 3 levels deep, finds .git directories, and either prints candidates or upserts the
internal/app/workdir.go:279
↓ 1 callersFunctioncomputeAvgKBFileBytes
computeAvgKBFileBytes returns the average byte size of *.md files in kbDir. Returns 0 if the directory is missing or empty.
internal/stats/report.go:168
↓ 1 callersFunctioncontainsArg
---- helpers ----
internal/app/background_test.go:404
↓ 1 callersFunctioncopyText
(text)
site/script.js:55
↓ 1 callersFunctioncountKBFacts
countKBFacts counts entry lines (starting with "- ") across kb/*.md.
internal/stats/report.go:299
↓ 1 callersFunctiondirSize
dirSize sums the byte sizes of files with the given extension under dir. Returns 0 if the directory is missing or empty.
internal/stats/report.go:203
↓ 1 callersFunctiondueColor
(r taskListRow)
internal/app/list.go:510
↓ 1 callersFunctionemitAmbientSkillHint
emitAmbientSkillHint is the unbound-session branch of the SessionStart hook. The user has installed flow — a personal task/ session manager and knowle
internal/app/hook.go:161
↓ 1 callersFunctionensureUpdatesDir
ensureUpdatesDir is a small utility used in tests to pre-create an updates directory. Kept here so tests can share it without exposing internals elsew
internal/app/list.go:1024
↓ 1 callersFunctionescapeAppleScriptString
(s string)
internal/ghostty/ghostty.go:84
↓ 1 callersFunctionexpectedCommand
(event string)
internal/app/skill_test.go:51
↓ 1 callersFunctionextractWorkdirBoolFlag
extractWorkdirBoolFlag removes a bare boolean flag anywhere in args and returns (found, remaining). Named specifically to avoid collisions with parall
internal/app/workdir.go:206
↓ 1 callersFunctionfetchAndCacheLatest
(cachePath string)
internal/app/release.go:87
↓ 1 callersFunctionfileSize
fileSize returns the byte size of the file at path, or 0 if it does not exist.
internal/stats/report.go:193
↓ 1 callersFunctionfocusByTTY
focusByTTY drives Terminal.app's AppleScript dictionary to find a tab whose `tty` property matches and select it. Terminal.app addresses tabs at the w
internal/terminal/terminal.go:245
↓ 1 callersFunctionfocusByTTY
focusByTTY drives iTerm2's AppleScript dictionary to find a session whose `tty` property matches and select it (and its enclosing tab and window). The
internal/iterm/iterm.go:166
↓ 1 callersFunctionformatDueDateInfo
formatDueDateInfo returns a parenthetical like "(in 3 days)", "(today)", or "(overdue by 2 days)" for display next to the date.
internal/app/show.go:684
↓ 1 callersFunctionformatToolInput
formatToolInput returns a compact one-line summary of a tool call's input.
internal/harness/claude/transcript.go:265
↓ 1 callersFunctiongradientText
gradientText renders text filled with the flow wave gradient onto a tightly-sized transparent image.
internal/app/card_png.go:232
↓ 1 callersFunctionhumanizeLastUsed
humanizeLastUsed renders last_used_at as "(used 2d ago)" / "(never used)".
internal/app/workdir.go:119
↓ 1 callersFunctionintPtrOrEmpty
(p *int)
internal/app/list.go:442
↓ 1 callersFunctionisAccessibilityDenied
isAccessibilityDenied reports whether an osascript failure looks like a missing-Accessibility-permission error. Matches the same fragments as internal
internal/warp/warp.go:238
↓ 1 callersFunctionisValidStatus
isValidStatus checks the task status enum.
internal/app/update.go:334
↓ 1 callersFunctionlaunchAutoRun
launchAutoRun creates the per-run log directory, starts the detached supervisor via autoLauncher, and returns (pid, logPath). It does NOT touch the DB
internal/app/auto.go:147
↓ 1 callersFunctionlistPlaybooksCmd
(args []string)
internal/app/list.go:723
↓ 1 callersFunctionlistProjectsCmd
(args []string)
internal/app/list.go:550
↓ 1 callersFunctionlistRunsCmd
(args []string)
internal/app/list.go:811
↓ 1 callersFunctionlistTagsCmd
(args []string)
internal/app/list.go:128
↓ 1 callersFunctionlistTasksCmd
(args []string)
internal/app/list.go:200
↓ 1 callersFunctionloadCardFonts
()
internal/app/card_png.go:61
↓ 1 callersFunctionloadWordmark
()
internal/app/card_png.go:78
↓ 1 callersFunctionlookupBoundTaskSlug
lookupBoundTaskSlug returns the slug of the bound task, or "" if the session is unbound. Thin wrapper over lookupBoundTask.
internal/app/hook.go:147
↓ 1 callersFunctionmigrateTasksSessionIDUnique
migrateTasksSessionIDUnique creates the partial unique index on tasks(session_id) WHERE session_id IS NOT NULL. Older DBs may have two tasks sharing a
internal/flowdb/db.go:420
↓ 1 callersFunctionmigrateTasksSessionInvariant
migrateTasksSessionInvariant rebuilds the tasks table to enforce `CHECK (status = 'backlog' OR session_id IS NOT NULL)`. SQLite does not support addin
internal/flowdb/db.go:523
↓ 1 callersFunctionnormalizeTags
normalizeTags canonicalizes each tag and drops empties, preserving order.
internal/app/list.go:48
↓ 1 callersFunctionnotesCell
notesCell builds the trailing NOTES column in table output. Each fragment is colored independently so the row reads well at a glance. waitMax > 0 trun
internal/app/list.go:527
↓ 1 callersFunctionownerNext
ownerNext implements `flow owner next <slug> --in <dur> | --at <when>`: set the owner's next tick time. This is how a tick SELF-PACES — at the end of
internal/app/owner.go:266
↓ 1 callersFunctionownerPause
ownerPause stops an owner from ticking while preserving all its state.
internal/app/owner.go:370
↓ 1 callersFunctionownerRetire
ownerRetire implements `flow owner retire <slug> [--delete]`. Graceful retire (default) marks the owner status='retired' + archived: it stops ticking
internal/app/owner.go:203
↓ 1 callersFunctionownerStart
ownerStart marks an owner active and schedules its first tick now, so the next scheduler pass picks it up. Then it ticks every Every.
internal/app/owner.go:352
↓ 1 callersFunctionownerTickDue
ownerTickDue implements `flow owner tick-due`: the scheduler pass that the OS timer (launchd) invokes on an interval.
internal/app/owner_tick.go:206
↓ 1 callersFunctionpaneIDForHarnessSession
paneIDForHarnessSession parses zellij list-panes JSON and returns the pane id of the first non-plugin pane whose pane_command mentions `binary` and ca
internal/zellij/zellij.go:145
↓ 1 callersFunctionparseOwnerWhen
parseOwnerWhen accepts an RFC3339 timestamp or a date expression (YYYY-MM-DD, today, tomorrow, weekday, Nd) for `flow owner next --at`.
internal/app/owner.go:339
↓ 1 callersFunctionparseTS
(s string)
internal/stats/scan.go:176
↓ 1 callersFunctionprintPlaybookMetadata
printPlaybookMetadata writes the human-readable view of a playbook row.
internal/app/show.go:492
↓ 1 callersFunctionprintProjectMetadata
printProjectMetadata writes the human-readable view of a project row.
internal/app/show.go:401
↓ 1 callersFunctionprintTaskMetadata
---------- pretty printers ---------- printTaskMetadata writes the human-readable view of a task row.
internal/app/show.go:214
↓ 1 callersFunctionprojectTaskCounts
(db *sql.DB, projectSlug string)
internal/app/list.go:935
↓ 1 callersFunctionreadCachedVersion
(path string)
internal/app/release.go:72
↓ 1 callersFunctionreconcileOwnerTick
reconcileOwnerTick promotes a stale running tick to 'dead' when its supervisor pid is no longer alive (crash, kill, reboot — anything that prevented r
internal/app/owner_tick.go:468
↓ 1 callersFunctionrecordAutoRunLaunched
recordAutoRunLaunched writes the 'running' bookkeeping after a successful launch.
internal/app/auto.go:166
↓ 1 callersFunctionrecordOwnerInteractiveTick
recordOwnerInteractiveTick marks a hand-triggered interactive tick as having run (last_tick_* only). It leaves next_wake_at untouched so the interacti
internal/app/owner_tick.go:441
↓ 1 callersFunctionrecordOwnerTickDispatched
recordOwnerTickDispatched is recordOwnerTickStarted plus advancing the schedule floor (next_wake_at) — the scheduler dispatch path.
internal/app/owner_tick.go:430
↓ 1 callersFunctionrecordOwnerTickStarted
recordOwnerTickStarted stamps the running-tick bookkeeping (pid + start) for a hand-triggered headless tick. It does not advance the schedule.
internal/app/owner_tick.go:420
↓ 1 callersFunctionregisteredHarnessNames
registeredHarnessNames returns the comma-joined list of harness Names this binary supports. Used in error messages so the user sees the available alte
internal/app/harness.go:29
↓ 1 callersFunctionrelativeWake
relativeWake formats an RFC3339 wake time relative to now, e.g. "(in 22m)" or "(overdue 5m)". Returns "" if ts can't be parsed.
internal/app/owner.go:449
↓ 1 callersFunctionrenderAssistantRecord
(w io.Writer, raw json.RawMessage, compact bool)
internal/harness/claude/transcript.go:196
↓ 1 callersFunctionrenderToolResult
(w io.Writer, b contentBlock)
internal/harness/claude/transcript.go:234
↓ 1 callersFunctionrenderToolUse
(w io.Writer, b contentBlock)
internal/harness/claude/transcript.go:228
↓ 1 callersFunctionrenderUserRecord
(w io.Writer, raw json.RawMessage, compact bool)
internal/harness/claude/transcript.go:161
↓ 1 callersFunctionresolveEditRef
resolveEditRef resolves a ref that could be a task, project, or playbook. Supports task/, project/, and playbook/ prefixes. Includes archived rows.
internal/app/edit.go:105
↓ 1 callersFunctionresolveGitConfigPath
resolveGitConfigPath returns the absolute path to the git config for a repo rooted at path, or "" if none exists. Handles both the common case (.git i
internal/app/workdir.go:467
↓ 1 callersFunctionresolveProjectRef
resolveProjectRef resolves a ref to a project. Includes archived rows.
internal/app/show.go:207
↓ 1 callersFunctionrunMigrations
(db *sql.DB)
internal/flowdb/db.go:257
↓ 1 callersFunctionscaleImage
scaleImage resizes src to w×h using high-quality resampling.
internal/app/card_png.go:259
↓ 1 callersFunctionshowPlaybookCmd
showPlaybookCmd implements `flow show playbook [<ref>]`.
internal/app/show.go:157
↓ 1 callersFunctionshowProjectCmd
showProjectCmd implements `flow show project [<ref>]`. With no argument, falls back to the project of the task bound to the current Claude session.
internal/app/show.go:97
↓ 1 callersFunctionshowTaskCmd
showTaskCmd implements `flow show task [<ref>]`.
internal/app/show.go:38
↓ 1 callersFunctionskillUninstall
(args []string)
internal/app/skill.go:172
↓ 1 callersFunctionsortedWeekly
(m map[time.Time]*WeeklyPoint)
internal/stats/report.go:260
↓ 1 callersFunctionstaleDaysThreshold
staleDaysThreshold returns the staleness threshold in days. Reads FLOW_STALE_DAYS env var; defaults to 3.
internal/app/show.go:612
↓ 1 callersFunctionstatsWithoutAutomation
statsWithoutAutomation returns a Stats value where automation is zero.
internal/app/card_png_test.go:40
← previousnext →301–400 of 972, ranked by callers