Versions in this module Expand all Collapse all v1 v1.0.0 May 6, 2026 Changes in this version + const AIAgentNone + const AgentActionAuthorize + const AgentActionDeauthorize + const AgentActionDisable + const AgentActionEnable + const AgentActionMove + const AgentActionReboot + const AgentExitDisconnected + const AgentExitError + const AgentExitTimeout + const AgentExitUser + const AuthMethodGuest + const AuthMethodToken + const AuthSourceBuildProperties + const AuthSourceEnv + const AuthSourceGuest + const AuthSourceKeyring + const AuthSourceNone + const AuthStepServer + const AuthStepToken + const AuthStepVerify + const BuildStatusCanceled + const BuildStatusError + const BuildStatusFailure + const BuildStatusSuccess + const CIAzure + const CIBuildkite + const CICircleCI + const CIGitHubActions + const CIGitLab + const CIJenkins + const CINone + const CIOther + const CITeamCity + const CITravis + const ConfigKey + const EnvAnalytics + const EnvDoNotTrack + const ErrorAuth + const ErrorInternal + const ErrorNetwork + const ErrorNone + const ErrorNotFound + const ErrorPermission + const ErrorReadOnly + const ErrorValidation + const EventCreated + const EventDiffViewed + const EventExecFinished + const EventExecuted + const EventInvoked + const EventLinked + const EventLogViewed + const EventLoginAbandoned + const EventLoginCompleted + const EventManaged + const EventStarted + const EventStateChanged + const EventSynced + const EventTerminalClosed + const EventTestsViewed + const EventTokenLoaded + const EventValidated + const EventWatchFinished + const GroupAPI + const GroupAgent + const GroupAuth + const GroupBuild + const GroupCommand + const GroupPipeline + const GroupSession + const GroupSkill + const GroupWorkspace + const LogModeFailed + const LogModeFollow + const LogModeFull + const LogModeRaw + const NoticeShownKey + const NoticeText + const PipelineActionPull + const PipelineActionPush + const ProductCode + const RecorderID + const RecorderVersion + const Salt + const SchemeVersion + const ServerTypeCloud + const ServerTypeOnPrem + const SessionWindow + const SkillActionInstall + const SkillActionRemove + const SkillActionUpdate + const SkillScopeGlobal + const SkillScopeProject + const SourceAgent + const SourceBuildStep + const SourceCI + const SourceHuman + const TestsFilterAll + const TestsFilterFailed + const TestsFilterMuted + const WorkspaceSourceAuto + const WorkspaceSourceFlag + const WorkspaceSourceInteractive + var Scheme = &fus.Scheme + func APIResource(endpoint string) string + func ClassifySource(env Environment) string + func DataDir() (string, error) + func DetectAIAgent() string + func DetectCI() string + func LoadServerInfo(serverURL string) (version, serverType string) + func NormalizeAIAgent(instillName string) string + func NormalizeArch(goarch string) string + func NormalizeCommand(path string) string + func NormalizeHTTPMethod(method string) string + func NormalizeOS(goos string) string + func PrintFirstRunNotice(errOut io.Writer, alreadyShown, optedOut, quiet, noInput bool) bool + func SampleEvents() []fus.LogEvent + func SaveServerInfo(serverURL, version, serverType string) error + func SessionFilePath() (string, error) + type APIEvent struct + Endpoint string + HadFields bool + HadInput bool + Method string + Paginated bool + Slurp bool + StatusCode int + type Client struct + func New(cfg Config) *Client + func (c *Client) Close() error + func (c *Client) Flush(ctx context.Context) error + func (c *Client) SessionID() string + func (c *Client) Track(group, eventID string, data map[string]any) + func (c *Client) TrackAPI(e APIEvent) + func (c *Client) TrackCommand(e CommandEvent) + func (c *Client) TrackSession() + type CommandEvent struct + Command string + DurationMS int64 + ErrorType string + ExitCode int + FlagCount int + HasGitContext bool + HasJSON bool + HasLinkContext bool + type Config struct + AuthSource string + CLIVersion string + Debug func(string, ...any) + Environment Environment + HasLinkedProject bool + Salt string + ServerType string + ServerVersion string + Session *Session + type Environment struct + AIAgent string + Arch string + CISystem string + OS string + func DetectEnvironment() Environment + type OptOutReason string + const OptOutConfig + const OptOutDoNotTrack + const OptOutEnv + const OptOutNone + func IsEnabled(configEnabled bool) (bool, OptOutReason) + type SchemeFinding struct + Event string + Field string + Got string + Group string + func LintScheme() ([]SchemeFinding, error) + func (f SchemeFinding) String() string + type ServerInfo struct + Type string + Version string + type Session struct + ID string + IsNew bool + LastActive time.Time + func LoadOrCreateSession(now time.Time) (*Session, error)