MCPcopy Create free account

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

Functions972 in github.com/Facets-cloud/flow

FunctionTestCmdDoConcurrentFreshTasks
TestCmdDoConcurrentFreshTasks verifies two concurrent cmdDo calls on a fresh task don't corrupt DB state. The BEGIN IMMEDIATE lock serializes the txs:
internal/app/do_test.go:599
FunctionTestCmdDoDoneStillRefusedWithoutWith
(t *testing.T)
internal/app/do_test.go:1149
FunctionTestCmdDoDoneTaskRefused
(t *testing.T)
internal/app/do_test.go:501
FunctionTestCmdDoEmitsPlaybookVariantForPlaybookRun
(t *testing.T)
internal/app/do_test.go:736
FunctionTestCmdDoFreshAllocatesSessionID
TestCmdDoFreshAllocatesSessionID verifies the pre-allocation contract: a fresh task gets a UUID written to tasks.session_id and spawns `claude --sessi
internal/app/do_test.go:301
FunctionTestCmdDoFreshRotatesStaleSession
TestCmdDoFreshRotatesStaleSession verifies --fresh overwrites an existing session_id with a newly-allocated UUID and spawns with that UUID via --sessi
internal/app/do_test.go:470
FunctionTestCmdDoFreshSpawnFailureRollsBackSessionID
TestCmdDoFreshSpawnFailureRollsBackSessionID pins the rollback invariant: when a fresh-bootstrap spawn fails (e.g. Terminal.app Accessibility denied),
internal/app/do_test.go:353
FunctionTestCmdDoFuzzyAmbiguous
(t *testing.T)
internal/app/do_test.go:524
FunctionTestCmdDoFuzzyExactWins
(t *testing.T)
internal/app/do_test.go:538
FunctionTestCmdDoHereForceDoesNotBypassCwdGate
TestCmdDoHereForceDoesNotBypassCwdGate pins that --force does NOT override the cwd-mismatch invariant: --force overrides the already-bound-elsewhere c
internal/app/do_test.go:1235
FunctionTestCmdDoHereForceOverwritesBinding
TestCmdDoHereForceOverwritesBinding pins that --force allows the overwrite of a prior binding. The user has been told this orphans the prior session.
internal/app/do_test.go:871
FunctionTestCmdDoHereForceSwitchesHarness
TestCmdDoHereForceSwitchesHarness pins the --force escape: when the user explicitly asks, we switch the task's harness pinning alongside the session_i
internal/app/harness_test.go:235
FunctionTestCmdDoHereHappyPath
---------- flow do --here ---------- TestCmdDoHereHappyPath pins the in-session bind contract: with $CLAUDE_CODE_SESSION_ID set and a backlog target t
internal/app/do_test.go:789
FunctionTestCmdDoHereIdempotent
TestCmdDoHereIdempotent pins that re-running --here against a task already bound to THIS session is a no-op success (no error, no overwrite needed).
internal/app/do_test.go:903
FunctionTestCmdDoHereNoEnvVar
TestCmdDoHereNoEnvVar pins that --here errors when no Claude Code session is in the env (no session UUID to bind).
internal/app/do_test.go:823
FunctionTestCmdDoHerePersistsHarnessColumn
TestCmdDoHerePersistsHarnessColumn pins that --here writes the harness column on bind, alongside session_id. (Pre-invariant versions also captured ses
internal/app/harness_test.go:161
FunctionTestCmdDoHereRefusesWhenTranscriptMissing
---------- cwd-matches-work_dir invariant on flow do --here ---------- TestCmdDoHereRefusesWhenTranscriptMissing pins the GH #59 invariant: --here ref
internal/app/do_test.go:1190
FunctionTestCmdDoHereRejectsAlreadyBound
TestCmdDoHereRejectsAlreadyBound pins the wrong-session-id guard: if the target task already has a session_id (even one different from the current $CL
internal/app/do_test.go:841
FunctionTestCmdDoHereRejectsCrossHarness
TestCmdDoHereRejectsCrossHarness pins the safety rail: a task pinned to harness X can't be --here-bound from a session of harness Y without --force. T
internal/app/harness_test.go:194
FunctionTestCmdDoHereRejectsCurrentSessionAlreadyBoundElsewhere
TestCmdDoHereRejectsCurrentSessionAlreadyBoundElsewhere pins the no-duplicate-session_id invariant: if THIS session is already bound to another task,
internal/app/do_test.go:923
FunctionTestCmdDoHereRejectsDoneTask
TestCmdDoHereRejectsDoneTask pins that --here on a done task refuses with a friendly pointer at the reopen path. Auto-reopen would silently bypass the
internal/app/do_test.go:963
FunctionTestCmdDoLiveSessionDuplicateProcessesWarn
TestCmdDoLiveSessionDuplicateProcessesWarn covers the duplicate-tab detection path. ps reports two claude processes running the same session UUID; cmd
internal/app/do_test.go:223
FunctionTestCmdDoLiveSessionFocusesExistingTab
TestCmdDoLiveSessionFocusesExistingTab pins the new behavior: when a task's session is already running AND the active backend can locate its tab, `flo
internal/app/do_test.go:179
FunctionTestCmdDoLiveSessionGuard
TestCmdDoLiveSessionGuard checks that a task whose session_id is in the live-claude-process set refuses to spawn (when focus can't find the tab) unles
internal/app/do_test.go:130
FunctionTestCmdDoOmitsFirstRunBannerForSecondPlaybookRun
(t *testing.T)
internal/app/do_test.go:713
FunctionTestCmdDoPersistsHarnessOnBootstrap
TestCmdDoPersistsHarnessOnBootstrap pins the contract: the first `flow do` on a previously-unbound task writes the chosen harness AND the session_cwd
internal/app/harness_test.go:76
FunctionTestCmdDoPropagatesFlowRootEnv
TestCmdDoPropagatesFlowRootEnv pins that a custom $FLOW_ROOT in the parent process is forwarded to the spawned tab's command line, so the in-tab sessi
internal/app/do_test.go:765
FunctionTestCmdDoRefusesUnsupportedHarnessPin
TestCmdDoRefusesUnsupportedHarnessPin pins the two related contracts: 1. A task pinned to a harness this binary doesn't register must NOT spawn as th
internal/app/harness_test.go:116
FunctionTestCmdDoResumeSpawnFailureKeepsSessionID
TestCmdDoResumeSpawnFailureKeepsSessionID is the inverse of the fresh-bootstrap case: when a RESUME spawn fails (the session_id already pointed at a r
internal/app/do_test.go:400
FunctionTestCmdDoResumesExistingSession
(t *testing.T)
internal/app/do_test.go:439
FunctionTestCmdDoSetsFirstRunBannerForFirstPlaybookRun
(t *testing.T)
internal/app/do_test.go:697
FunctionTestCmdDoSpawnsClaudeNotFlowde
TestCmdDoSpawnsClaudeNotFlowde pins the post-flowde contract: `flow do` shells out to `claude` directly (no wrapper) for both the fresh bootstrap and
internal/app/do_test.go:558
FunctionTestCmdDoWithEmptyString
(t *testing.T)
internal/app/do_test.go:1084
FunctionTestCmdDoWithFile
(t *testing.T)
internal/app/do_test.go:1037
FunctionTestCmdDoWithFileMissing
(t *testing.T)
internal/app/do_test.go:1097
FunctionTestCmdDoWithFreshInjectsAfterBootstrap
(t *testing.T)
internal/app/do_test.go:983
FunctionTestCmdDoWithMutualExclusivity
(t *testing.T)
internal/app/do_test.go:1065
FunctionTestCmdDoWithRejectedWithHere
(t *testing.T)
internal/app/do_test.go:1166
FunctionTestCmdDoWithReopensDoneTask
(t *testing.T)
internal/app/do_test.go:1110
FunctionTestCmdDoWithResumeAppendsPositionalArg
(t *testing.T)
internal/app/do_test.go:1011
FunctionTestCmdDoneCloseoutSweepIncludesProjectStep
TestCmdDoneCloseoutSweepIncludesProjectStep verifies that when the task is attached to a project, the close-out prompt includes the project-update ste
internal/app/done_test.go:169
FunctionTestCmdDoneCloseoutSweepSkipsProjectStepForFloating
TestCmdDoneCloseoutSweepSkipsProjectStepForFloating verifies that floating tasks (no project) get a prompt without any project-update instructions or
internal/app/done_test.go:213
FunctionTestCmdDoneHappyPath
(t *testing.T)
internal/app/done_test.go:31
FunctionTestCmdDoneIdempotent
(t *testing.T)
internal/app/done_test.go:68
FunctionTestCmdDoneNoArgs
(t *testing.T)
internal/app/done_test.go:93
FunctionTestCmdDoneRefusesTaskWithoutSession
TestCmdDoneRefusesTaskWithoutSession pins the session-id invariant at the friendly-error layer for `flow done`: a backlog task with no session_id has
internal/app/done_test.go:105
FunctionTestCmdDoneRunsSweepWhenSessionExists
TestCmdDoneRunsSweepWhenSessionExists verifies that done invokes the claude runner exactly once with the task slug and a sweep prompt when the task ha
internal/app/done_test.go:127
FunctionTestCmdDoneSweepFailureStillSucceeds
TestCmdDoneSweepFailureStillSucceeds verifies that a non-zero exit from the sweep runner does NOT fail the done command — the status flip is the durab
internal/app/done_test.go:249
FunctionTestCmdDoneUnknownRef
(t *testing.T)
internal/app/done_test.go:60
FunctionTestCmdEditAmbiguousSameSlug
(t *testing.T)
internal/app/edit_test.go:130
FunctionTestCmdEditMissingRef
(t *testing.T)
internal/app/edit_test.go:123
FunctionTestCmdEditNamespacePrefix
(t *testing.T)
internal/app/edit_test.go:148
FunctionTestCmdEditPlaybook
(t *testing.T)
internal/app/edit_test.go:235
FunctionTestCmdEditProjectBumpsUpdatedAt
(t *testing.T)
internal/app/edit_test.go:80
FunctionTestCmdEditProjectOnlyByDefault
(t *testing.T)
internal/app/edit_test.go:211
FunctionTestCmdEditTaskBumpsUpdatedAt
(t *testing.T)
internal/app/edit_test.go:30
FunctionTestCmdEditTaskOnlyByDefault
(t *testing.T)
internal/app/edit_test.go:186
FunctionTestCmdEditUnknownRef
(t *testing.T)
internal/app/edit_test.go:109
FunctionTestCmdInitCreatesDBQueryable
(t *testing.T)
internal/app/init_test.go:50
FunctionTestCmdInitCreatesTree
(t *testing.T)
internal/app/init_test.go:31
FunctionTestCmdInitIdempotent
(t *testing.T)
internal/app/init_test.go:71
FunctionTestCmdInitInstallsSkill
(t *testing.T)
internal/app/init_test.go:85
FunctionTestCmdInitRejectsExtraArgs
(t *testing.T)
internal/app/init_test.go:122
FunctionTestCmdInitSkipsSkillIfAlreadyPresent
(t *testing.T)
internal/app/init_test.go:100
FunctionTestCmdInitWritesVersionSidecar
(t *testing.T)
internal/app/version_test.go:34
FunctionTestCmdListBadSub
(t *testing.T)
internal/app/list_test.go:327
FunctionTestCmdListOwnersAlias
flow list owners is a verb-first alias for `flow owner list` — both render the same listing (the surface owners share with task/project/ playbook). On
internal/app/owner_test.go:286
FunctionTestCmdListPlaybooks
(t *testing.T)
internal/app/list_test.go:373
FunctionTestCmdListPlaybooksFiltersByProject
(t *testing.T)
internal/app/list_test.go:394
FunctionTestCmdListProjectsArchivedHidden
(t *testing.T)
internal/app/list_test.go:282
FunctionTestCmdListProjectsBreakdown
(t *testing.T)
internal/app/list_test.go:262
FunctionTestCmdListProjectsEmpty
---------- projects ----------
internal/app/list_test.go:250
FunctionTestCmdListProjectsFormatJSON
(t *testing.T)
internal/app/list_test.go:1013
FunctionTestCmdListProjectsStatusFilter
(t *testing.T)
internal/app/list_test.go:310
FunctionTestCmdListRuns
(t *testing.T)
internal/app/list_test.go:508
FunctionTestCmdListRunsByStatus
(t *testing.T)
internal/app/list_test.go:560
FunctionTestCmdListTasksAgeColumn
(t *testing.T)
internal/app/list_test.go:608
FunctionTestCmdListTasksArchivedHiddenByDefault
(t *testing.T)
internal/app/list_test.go:101
FunctionTestCmdListTasksAutoColumn
TestCmdListTasksAutoColumn: `flow list tasks` has a dedicated, always-on AUTO column. A running run shows "running <pid>"; terminal runs show the stat
internal/app/list_test.go:816
FunctionTestCmdListTasksConfigurableStaleness
(t *testing.T)
internal/app/list_test.go:677
FunctionTestCmdListTasksDoneHiddenByDefault
(t *testing.T)
internal/app/list_test.go:131
FunctionTestCmdListTasksDueColumn
(t *testing.T)
internal/app/list_test.go:626
FunctionTestCmdListTasksDueToday
(t *testing.T)
internal/app/list_test.go:660
FunctionTestCmdListTasksEmpty
(t *testing.T)
internal/app/list_test.go:14
FunctionTestCmdListTasksEmptyJSON
(t *testing.T)
internal/app/list_test.go:927
FunctionTestCmdListTasksFormatBad
(t *testing.T)
internal/app/list_test.go:920
FunctionTestCmdListTasksFormatJSON
---------- --format / --no-color / --no-truncate ----------
internal/app/list_test.go:754
FunctionTestCmdListTasksFormatJSONDueRaw
(t *testing.T)
internal/app/list_test.go:792
FunctionTestCmdListTasksFormatTSV
(t *testing.T)
internal/app/list_test.go:882
FunctionTestCmdListTasksMixedStatusFilter
(t *testing.T)
internal/app/list_test.go:26
FunctionTestCmdListTasksNoColorPipe
(t *testing.T)
internal/app/list_test.go:996
FunctionTestCmdListTasksOverdue
(t *testing.T)
internal/app/list_test.go:643
FunctionTestCmdListTasksPrioritySort
(t *testing.T)
internal/app/list_test.go:46
FunctionTestCmdListTasksProjectFilter
(t *testing.T)
internal/app/list_test.go:229
FunctionTestCmdListTasksSince7d
(t *testing.T)
internal/app/list_test.go:208
FunctionTestCmdListTasksSinceBad
(t *testing.T)
internal/app/list_test.go:222
FunctionTestCmdListTasksSinceDate
(t *testing.T)
internal/app/list_test.go:215
FunctionTestCmdListTasksSinceMonday
(t *testing.T)
internal/app/list_test.go:199
FunctionTestCmdListTasksSinceToday
(t *testing.T)
internal/app/list_test.go:173
FunctionTestCmdListTasksSlugAlwaysFull
(t *testing.T)
internal/app/list_test.go:943
← previousnext →501–600 of 972, ranked by callers