Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SyncCLI gates user-facing sync/auth commands. SyncCLI = Feature{ Name: "sync_cli", Default: false, Description: "Enable sync/auth CLI commands for end users", } // SyncAutosync gates startup/post-mutation/monitor autosync behavior. SyncAutosync = Feature{ Name: "sync_autosync", Default: false, Description: "Enable background autosync hooks", } // SyncMonitorPrompt gates the monitor sync prompt UX. SyncMonitorPrompt = Feature{ Name: "sync_monitor_prompt", Default: false, Description: "Enable monitor sync setup prompt", } // SyncNotes gates notes entity sync for sidecar notes plugin rollout. SyncNotes = Feature{ Name: "sync_notes", Default: false, Description: "Enable sync transport for notes entities", } )
View Source
var SyncGateMap = []GateMapEntry{ { Feature: SyncCLI.Name, Surface: "cmd/auth.go", Notes: "Gates auth login/logout/status commands", }, { Feature: SyncCLI.Name, Surface: "cmd/sync.go", Notes: "Gates td sync command entry point", }, { Feature: SyncCLI.Name, Surface: "cmd/sync_conflicts.go", Notes: "Gates td sync conflicts subcommand", }, { Feature: SyncCLI.Name, Surface: "cmd/sync_tail.go", Notes: "Gates td sync tail subcommand", }, { Feature: SyncCLI.Name, Surface: "cmd/sync_init.go", Notes: "Gates guided sync setup wizard", }, { Feature: SyncCLI.Name, Surface: "cmd/project.go", Notes: "Gates sync-project management commands", }, { Feature: SyncCLI.Name, Surface: "cmd/config.go", Notes: "Gates sync configuration commands", }, { Feature: SyncCLI.Name, Surface: "cmd/doctor.go", Notes: "Gates sync diagnostics command", }, { Feature: SyncAutosync.Name, Surface: "cmd/root.go#PersistentPreRun", Notes: "Gates startup push/pull hook", }, { Feature: SyncAutosync.Name, Surface: "cmd/root.go#PersistentPostRun", Notes: "Gates post-mutation autosync hook", }, { Feature: SyncAutosync.Name, Surface: "cmd/monitor.go", Notes: "Gates monitor periodic autosync loop", }, { Feature: SyncMonitorPrompt.Name, Surface: "pkg/monitor/commands.go#checkSyncPrompt", Notes: "Gates first-run monitor sync prompt trigger", }, { Feature: SyncMonitorPrompt.Name, Surface: "pkg/monitor/sync_prompt.go", Notes: "Gates monitor sync prompt modal flows", }, { Feature: SyncNotes.Name, Surface: "cmd/sync.go#syncEntityValidator", Notes: "Gates notes entity handling during manual sync push/pull", }, { Feature: SyncNotes.Name, Surface: "cmd/autosync.go", Notes: "Gates notes entity handling during autosync push/pull", }, }
SyncGateMap is the authoritative map of sync-related surfaces to feature flags. Paths refer to the sync implementation currently on the "sunc" branch.
Functions ¶
func IsEnabled ¶
IsEnabled resolves a feature using env overrides, then project config, then defaults.
func IsEnabledForProcess ¶
IsEnabledForProcess resolves a feature using env overrides then defaults. Useful during command registration when project config may not be available.
func IsKnownFeature ¶
IsKnownFeature returns true when the feature exists in the registry.
Types ¶
type GateMapEntry ¶
GateMapEntry records a concrete sync surface that must be gated.
Click to show internal directories.
Click to hide internal directories.