MCPcopy Create free account

hub / github.com/Facets-cloud/flow / types & classes

Types & classes69 in github.com/Facets-cloud/flow

↓ 2 callersTypeAliasBackend
Backend identifies which terminal app a SpawnTab call targets.
internal/spawner/spawner.go:38
↓ 1 callersTypeAliasName
Name is the short identifier persisted on tasks.harness and used to look up an implementation.
internal/harness/harness.go:32
StructBackgroundAgent
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
InterfaceBackgroundLauncher
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
StructBuildOpts
BuildOpts are the injectable inputs to BuildStats (paths injected so tests can point at temp dirs).
internal/stats/report.go:42
StructCache
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
StructConstants
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
StructCounts
Counts are the raw inputs to the savings model.
internal/stats/model.go:53
StructFileRollup
FileRollup is the per-jsonl scan result. It is JSON-serializable so the cache can persist it.
internal/stats/scan.go:43
TypeAliasFormat
Format selects how a list result is serialized to the output stream.
internal/listfmt/listfmt.go:52
InterfaceHarness
Harness is the contract every agent-CLI adapter implements.
internal/harness/harness.go:118
StructLaunchOpts
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
StructLookup
Lookup is one retrieval event mined from a session jsonl.
internal/stats/scan.go:25
TypeAliasLookupKind
LookupKind classifies a retrieval — a moment flow served stored context.
internal/stats/scan.go:15
StructOwner
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
StructOwnerFilter
OwnerFilter holds optional filters for ListOwners.
internal/flowdb/owners.go:40
StructPainter
Painter applies ANSI color when Enabled, otherwise returns text unchanged.
internal/listfmt/listfmt.go:106
StructPlaybook
---------- playbook models ---------- Playbook mirrors the playbooks table.
internal/flowdb/db.go:888
StructPlaybookFilter
PlaybookFilter holds optional filters for ListPlaybooks.
internal/flowdb/db.go:899
StructProject
(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
StructProjectFilter
ProjectFilter is the equivalent for ListProjects.
internal/flowdb/db.go:205
StructSavings
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
StructStats
Stats is the fully-aggregated analytics result for one window/project.
internal/stats/report.go:24
StructTable
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
StructTagCount
TagCount is the (tag, task-count) pair returned by ListAllTags.
internal/flowdb/db.go:1049
StructTask
Task mirrors the tasks table. ProjectSlug is nullable for floating tasks.
internal/flowdb/db.go:143
StructTaskFilter
TaskFilter holds optional filters for ListTasks.
internal/flowdb/db.go:191
StructUsage
Usage is a token tally summed across a session's assistant turns.
internal/stats/scan.go:31
StructWeeklyPoint
WeeklyPoint is one bucket of the lookups/tokens sparkline.
internal/stats/report.go:17
StructWorkdir
Workdir mirrors the workdirs convenience registry.
internal/flowdb/db.go:181
StructbgAgentJSON
bgAgentJSON mirrors one element of `claude agents --json`.
internal/harness/claude/background.go:81
StructbgCalls
internal/app/background_test.go:87
StructbgCap
bgCap records what a stubbed BGCommandRunner saw on the last spawn/resume (non-`agents`) call.
internal/harness/claude/background_test.go:111
StructcacheEntry
internal/stats/cache.go:8
StructcapturedClaudeCall
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
StructcardData
cardData is the view model handed to the HTML template.
internal/app/card.go:12
StructcardFonts
cardFonts holds the parsed TrueType fonts, loaded once.
internal/app/card_png.go:46
Structclaude
internal/harness/claude/claude.go:51
StructcontentBlock
contentBlock represents one block in the content array.
internal/harness/claude/transcript.go:145
StructfocusFlags
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
StructjsonlMessage
jsonlMessage is the message body inside user/assistant records.
internal/harness/claude/transcript.go:139
StructjsonlRecord
---------- jsonl record types ---------- jsonlRecord is the top-level structure of each line in a Claude session jsonl.
internal/harness/claude/transcript.go:132
StructkbSeed
kbSeed describes one knowledge-base file to create on `flow init`.
internal/app/init.go:130
StructkittyFGProc
internal/kitty/kitty.go:160
StructkittyOSWindow
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
StructkittyTab
internal/kitty/kitty.go:153
StructkittyWindow
internal/kitty/kitty.go:156
StructlistOpts
listOpts are the format/color/truncation flags every list subcommand shares.
internal/app/list.go:22
StructnonBGHarness
nonBGHarness satisfies harness.Harness (via embedded interface) but NOT harness.BackgroundLauncher, so it exercises the capability gate.
internal/app/background_test.go:276
StructpaneInfo
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
StructplaybookRow
internal/app/list.go:764
StructprojectRow
internal/app/list.go:617
StructrawBlock
internal/stats/scan.go:70
StructrawInput
internal/stats/scan.go:76
StructrawMessage
internal/stats/scan.go:58
StructrawRecord
---- raw jsonl shapes (only the fields we need) ----
internal/stats/scan.go:52
StructrawUsage
internal/stats/scan.go:63
Structrow
internal/listfmt/listfmt_test.go:191
StructrunRow
internal/app/list.go:858
StructrunnerFlags
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
TypeAliasstringSliceFlag
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
StructtRow
internal/flowdb/db.go:472
StructtagRow
internal/app/list.go:166
StructtaskCounts
---------- helpers ----------
internal/app/list.go:931
StructtaskListRow
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
StructtickTestErr
internal/app/owner_tick_test.go:821
StructversionCache
versionCache is the on-disk shape of the cache file at ~/.flow/.version-cache.json.
internal/app/release.go:43
Structviolator
internal/flowdb/db.go:534
StructwarpStubs
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