Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Facets-cloud/flow
/ types & classes
Types & classes
69 in github.com/Facets-cloud/flow
⨍
Functions
972
◇
Types & classes
69
↓ 2 callers
TypeAlias
Backend
Backend identifies which terminal app a SpawnTab call targets.
internal/spawner/spawner.go:38
↓ 1 callers
TypeAlias
Name
Name is the short identifier persisted on tasks.harness and used to look up an implementation.
internal/harness/harness.go:32
Struct
BackgroundAgent
BackgroundAgent is one entry from a harness's background-agent registry. For the claude adapter it is populated from `claude agents --json`. SessionID
internal/harness/harness.go:63
Interface
BackgroundLauncher
BackgroundLauncher is an OPTIONAL harness capability: hosting terminal-free background sessions (claude's Agent View, via `claude --bg`). flow selects
internal/harness/harness.go:84
Struct
BuildOpts
BuildOpts are the injectable inputs to BuildStats (paths injected so tests can point at temp dirs).
internal/stats/report.go:42
Struct
Cache
Cache maps a jsonl path to its last-scanned rollup, keyed by file identity (mod time + size) so unchanged files are not rescanned.
internal/stats/cache.go:16
Struct
Constants
Constants are the user-editable counterfactual multipliers. They live in ~/.flow/stats.json (JSON, not TOML — the repo has no TOML dependency).
internal/stats/model.go:11
Struct
Counts
Counts are the raw inputs to the savings model.
internal/stats/model.go:53
Struct
FileRollup
FileRollup is the per-jsonl scan result. It is JSON-serializable so the cache can persist it.
internal/stats/scan.go:43
TypeAlias
Format
Format selects how a list result is serialized to the output stream.
internal/listfmt/listfmt.go:52
Interface
Harness
Harness is the contract every agent-CLI adapter implements.
internal/harness/harness.go:118
Struct
LaunchOpts
LaunchOpts are options forwarded into the spawn command builder. Harness adapters translate to per-CLI flags (Claude: --dangerously-skip-permissions,
internal/harness/harness.go:47
Struct
Lookup
Lookup is one retrieval event mined from a session jsonl.
internal/stats/scan.go:25
TypeAlias
LookupKind
LookupKind classifies a retrieval — a moment flow served stored context.
internal/stats/scan.go:15
Struct
Owner
Owner mirrors the owners table. An owner is a durable, named, repo-scoped self-prompting controller: each tick runs a headless run and self-paces its
internal/flowdb/owners.go:16
Struct
OwnerFilter
OwnerFilter holds optional filters for ListOwners.
internal/flowdb/owners.go:40
Struct
Painter
Painter applies ANSI color when Enabled, otherwise returns text unchanged.
internal/listfmt/listfmt.go:106
Struct
Playbook
---------- playbook models ---------- Playbook mirrors the playbooks table.
internal/flowdb/db.go:888
Struct
PlaybookFilter
PlaybookFilter holds optional filters for ListPlaybooks.
internal/flowdb/db.go:899
Struct
Project
(idx_tasks_session_id is a partial UNIQUE index that requires a dedupe pass against existing data — a flat CREATE UNIQUE INDEX would fail on any DB th
internal/flowdb/db.go:131
Struct
ProjectFilter
ProjectFilter is the equivalent for ListProjects.
internal/flowdb/db.go:205
Struct
Savings
Savings are the counterfactual estimates. AddressableCount is a count, NOT time/$ — it must never be summed into TotalHours/TotalDollars. ContextToken
internal/stats/model.go:64
Struct
Stats
Stats is the fully-aggregated analytics result for one window/project.
internal/stats/report.go:24
Struct
Table
Table is a column-aligned renderer. Columns auto-size to the widest *visible* cell — ANSI escape codes are ignored for width purposes, so a row with c
internal/listfmt/listfmt.go:122
Struct
TagCount
TagCount is the (tag, task-count) pair returned by ListAllTags.
internal/flowdb/db.go:1049
Struct
Task
Task mirrors the tasks table. ProjectSlug is nullable for floating tasks.
internal/flowdb/db.go:143
Struct
TaskFilter
TaskFilter holds optional filters for ListTasks.
internal/flowdb/db.go:191
Struct
Usage
Usage is a token tally summed across a session's assistant turns.
internal/stats/scan.go:31
Struct
WeeklyPoint
WeeklyPoint is one bucket of the lookups/tokens sparkline.
internal/stats/report.go:17
Struct
Workdir
Workdir mirrors the workdirs convenience registry.
internal/flowdb/db.go:181
Struct
bgAgentJSON
bgAgentJSON mirrors one element of `claude agents --json`.
internal/harness/claude/background.go:81
Struct
bgCalls
internal/app/background_test.go:87
Struct
bgCap
bgCap records what a stubbed BGCommandRunner saw on the last spawn/resume (non-`agents`) call.
internal/harness/claude/background_test.go:111
Struct
cacheEntry
internal/stats/cache.go:8
Struct
capturedClaudeCall
stubClaudeRunner replaces claude.SkipPermissionsRunner with a capturing stub that returns the supplied error. The old runner had a (slug, prompt) sign
internal/app/done_test.go:15
Struct
cardData
cardData is the view model handed to the HTML template.
internal/app/card.go:12
Struct
cardFonts
cardFonts holds the parsed TrueType fonts, loaded once.
internal/app/card_png.go:46
Struct
claude
internal/harness/claude/claude.go:51
Struct
contentBlock
contentBlock represents one block in the content array.
internal/harness/claude/transcript.go:145
Struct
focusFlags
focusFlags bundles per-backend "was called" flags so the focus routing tests can assert which backend FocusSession dispatched to without an awkward mu
internal/spawner/spawner_test.go:408
Struct
jsonlMessage
jsonlMessage is the message body inside user/assistant records.
internal/harness/claude/transcript.go:139
Struct
jsonlRecord
---------- jsonl record types ---------- jsonlRecord is the top-level structure of each line in a Claude session jsonl.
internal/harness/claude/transcript.go:132
Struct
kbSeed
kbSeed describes one knowledge-base file to create on `flow init`.
internal/app/init.go:130
Struct
kittyFGProc
internal/kitty/kitty.go:160
Struct
kittyOSWindow
kittyOSWindow / kittyTab / kittyWindow / kittyFGProc are the minimal subset of the `kitty @ ls` JSON schema we care about. The full schema has many mo
internal/kitty/kitty.go:150
Struct
kittyTab
internal/kitty/kitty.go:153
Struct
kittyWindow
internal/kitty/kitty.go:156
Struct
listOpts
listOpts are the format/color/truncation flags every list subcommand shares.
internal/app/list.go:22
Struct
nonBGHarness
nonBGHarness satisfies harness.Harness (via embedded interface) but NOT harness.BackgroundLauncher, so it exercises the capability gate.
internal/app/background_test.go:276
Struct
paneInfo
paneInfo is the subset of zellij's list-panes JSON we care about. Pane records have many more fields (geometry, plugin metadata, etc.) but only id, is
internal/zellij/zellij.go:128
Struct
playbookRow
internal/app/list.go:764
Struct
projectRow
internal/app/list.go:617
Struct
rawBlock
internal/stats/scan.go:70
Struct
rawInput
internal/stats/scan.go:76
Struct
rawMessage
internal/stats/scan.go:58
Struct
rawRecord
---- raw jsonl shapes (only the fields we need) ----
internal/stats/scan.go:52
Struct
rawUsage
internal/stats/scan.go:63
Struct
row
internal/listfmt/listfmt_test.go:191
Struct
runRow
internal/app/list.go:858
Struct
runnerFlags
runnerFlags bundles per-backend "was called" flags so routing tests can assert on which backend SpawnTab dispatched to without an awkward multi-return
internal/spawner/spawner_test.go:482
TypeAlias
stringSliceFlag
stringSliceFlag adapts a *[]string into a flag.Value so the same flag name can be passed multiple times and accumulate. Used for repeatable `--tag` /
internal/app/update.go:319
Struct
tRow
internal/flowdb/db.go:472
Struct
tagRow
internal/app/list.go:166
Struct
taskCounts
---------- helpers ----------
internal/app/list.go:931
Struct
taskListRow
taskListRow is the row shape that feeds table, JSON, and TSV rendering for `flow list tasks`. Field order matters for JSON output stability.
internal/app/list.go:460
Struct
tickTestErr
internal/app/owner_tick_test.go:821
Struct
versionCache
versionCache is the on-disk shape of the cache file at ~/.flow/.version-cache.json.
internal/app/release.go:43
Struct
violator
internal/flowdb/db.go:534
Struct
warpStubs
warpStubs captures every interaction with the four mockable vars (Runner, OpenURL, WriteScript, removeScript) so tests can assert on exactly what Spaw
internal/warp/warp_test.go:12