Class: Cline::Log::Properties

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/log.rb

Overview

Event-specific properties for telemetry entries

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#agent_idString?

Returns Agent identifier.

Returns:

  • (String, nil)

    Agent identifier



86
# File 'lib/cline/log.rb', line 86

attribute :agent_id, :string

#agent_kindString?

Returns Agent kind (e.g. "team_lead").

Returns:

  • (String, nil)

    Agent kind (e.g. "team_lead")



89
# File 'lib/cline/log.rb', line 89

attribute :agent_kind, :string

#api_providerString?

Returns API provider name (e.g. "cline").

Returns:

  • (String, nil)

    API provider name (e.g. "cline")



83
# File 'lib/cline/log.rb', line 83

attribute :api_provider, :string

#cache_read_tokensInteger?

Returns Cache read tokens count.

Returns:

  • (Integer, nil)

    Cache read tokens count



161
# File 'lib/cline/log.rb', line 161

attribute :cache_read_tokens, :integer

#cache_write_tokensInteger?

Returns Cache write tokens count.

Returns:

  • (Integer, nil)

    Cache write tokens count



164
# File 'lib/cline/log.rb', line 164

attribute :cache_write_tokens, :integer

#cline_typeString?

Returns Cline type (e.g. "cli").

Returns:

  • (String, nil)

    Cline type (e.g. "cli")



205
# File 'lib/cline/log.rb', line 205

attribute :cline_type, :string

#conversation_idString?

Returns Conversation identifier.

Returns:

  • (String, nil)

    Conversation identifier



92
# File 'lib/cline/log.rb', line 92

attribute :conversation_id, :string

#distinct_idString?

Returns Distinct identifier.

Returns:

  • (String, nil)

    Distinct identifier



220
# File 'lib/cline/log.rb', line 220

attribute :distinct_id, :string

#duration_msInteger?

Returns Duration in milliseconds.

Returns:

  • (Integer, nil)

    Duration in milliseconds



173
# File 'lib/cline/log.rb', line 173

attribute :duration_ms, :integer

#enable_agent_teamsBoolean?

Returns Whether agent teams are enabled.

Returns:

  • (Boolean, nil)

    Whether agent teams are enabled



149
# File 'lib/cline/log.rb', line 149

attribute :enable_agent_teams, :boolean

#enable_spawn_agentBoolean?

Returns Whether spawn agent is enabled.

Returns:

  • (Boolean, nil)

    Whether spawn agent is enabled



146
# File 'lib/cline/log.rb', line 146

attribute :enable_spawn_agent, :boolean

#enable_toolsBoolean?

Returns Whether tools are enabled.

Returns:

  • (Boolean, nil)

    Whether tools are enabled



143
# File 'lib/cline/log.rb', line 143

attribute :enable_tools, :boolean

#event_typeString?

Returns Event type (e.g. "run-started", "turn-started").

Returns:

  • (String, nil)

    Event type (e.g. "run-started", "turn-started")



137
# File 'lib/cline/log.rb', line 137

attribute :event_type, :string

#extension_versionString?

Returns Extension version (e.g. "3.0.7").

Returns:

  • (String, nil)

    Extension version (e.g. "3.0.7")



202
# File 'lib/cline/log.rb', line 202

attribute :extension_version, :string

#feature_flag_enabledBoolean?

Returns Whether feature flags are enabled.

Returns:

  • (Boolean, nil)

    Whether feature flags are enabled



199
# File 'lib/cline/log.rb', line 199

attribute :feature_flag_enabled, :boolean

#has_gitBoolean?

Returns Whether the workspace has git.

Returns:

  • (Boolean, nil)

    Whether the workspace has git



190
# File 'lib/cline/log.rb', line 190

attribute :has_git, :boolean

#has_mercurialBoolean?

Returns Whether the workspace has mercurial.

Returns:

  • (Boolean, nil)

    Whether the workspace has mercurial



193
# File 'lib/cline/log.rb', line 193

attribute :has_mercurial, :boolean

#init_duration_msFloat?

Returns Initialization duration in milliseconds.

Returns:

  • (Float, nil)

    Initialization duration in milliseconds



196
# File 'lib/cline/log.rb', line 196

attribute :init_duration_ms, :float

#is_multi_rootBoolean?

Returns Whether the workspace has multiple roots.

Returns:

  • (Boolean, nil)

    Whether the workspace has multiple roots



187
# File 'lib/cline/log.rb', line 187

attribute :is_multi_root, :boolean

#is_subagentBoolean?

Returns Whether this is a subagent.

Returns:

  • (Boolean, nil)

    Whether this is a subagent



95
# File 'lib/cline/log.rb', line 95

attribute :is_subagent, :boolean

#iterationInteger?

Returns Iteration number.

Returns:

  • (Integer, nil)

    Iteration number



134
# File 'lib/cline/log.rb', line 134

attribute :iteration, :integer

#lead_agent_idString?

Returns Lead agent identifier for teams.

Returns:

  • (String, nil)

    Lead agent identifier for teams



107
# File 'lib/cline/log.rb', line 107

attribute :lead_agent_id, :string

#modeString?

Returns Mode of operation (e.g. "act").

Returns:

  • (String, nil)

    Mode of operation (e.g. "act")



122
# File 'lib/cline/log.rb', line 122

attribute :mode, :string

#modelString?

Returns Model name (e.g. "deepseek/deepseek-v4-flash").

Returns:

  • (String, nil)

    Model name (e.g. "deepseek/deepseek-v4-flash")



116
# File 'lib/cline/log.rb', line 116

attribute :model, :string

#model_idString?

Returns Model identifier (e.g. "deepseek/deepseek-v4-flash").

Returns:

  • (String, nil)

    Model identifier (e.g. "deepseek/deepseek-v4-flash")



113
# File 'lib/cline/log.rb', line 113

attribute :model_id, :string

#os_typeString?

Returns Operating system type (e.g. "win32").

Returns:

  • (String, nil)

    Operating system type (e.g. "win32")



214
# File 'lib/cline/log.rb', line 214

attribute :os_type, :string

#os_versionString?

Returns Operating system version (e.g. "Windows 11 Pro").

Returns:

  • (String, nil)

    Operating system version (e.g. "Windows 11 Pro")



217
# File 'lib/cline/log.rb', line 217

attribute :os_version, :string

#platformString?

Returns Platform name (e.g. "cline").

Returns:

  • (String, nil)

    Platform name (e.g. "cline")



208
# File 'lib/cline/log.rb', line 208

attribute :platform, :string

#platform_versionString?

Returns Platform version (e.g. "v24.3.0").

Returns:

  • (String, nil)

    Platform version (e.g. "v24.3.0")



211
# File 'lib/cline/log.rb', line 211

attribute :platform_version, :string

#providerString?

Returns Model provider (e.g. "cline").

Returns:

  • (String, nil)

    Model provider (e.g. "cline")



110
# File 'lib/cline/log.rb', line 110

attribute :provider, :string

#provider_idString?

Returns Provider identifier.

Returns:

  • (String, nil)

    Provider identifier



176
# File 'lib/cline/log.rb', line 176

attribute :provider_id, :string

#restored_from_persistenceString?

Returns Whether the session was restored from persistence.

Returns:

  • (String, nil)

    Whether the session was restored from persistence



223
# File 'lib/cline/log.rb', line 223

attribute :restored_from_persistence, :boolean

#root_countInteger?

Returns Number of workspace roots.

Returns:

  • (Integer, nil)

    Number of workspace roots



181
# File 'lib/cline/log.rb', line 181

attribute :root_count, :integer

#run_idString?

Returns Run identifier for agent runs.

Returns:

  • (String, nil)

    Run identifier for agent runs



128
# File 'lib/cline/log.rb', line 128

attribute :run_id, :string

#session_idString?

Returns Session identifier.

Returns:

  • (String, nil)

    Session identifier



140
# File 'lib/cline/log.rb', line 140

attribute :session_id, :string

#sourceString?

Returns Source of the conversation turn (e.g. "user", "assistant").

Returns:

  • (String, nil)

    Source of the conversation turn (e.g. "user", "assistant")



119
# File 'lib/cline/log.rb', line 119

attribute :source, :string

#statusString?

Returns Status of a run or task (e.g. "running", "completed").

Returns:

  • (String, nil)

    Status of a run or task (e.g. "running", "completed")



131
# File 'lib/cline/log.rb', line 131

attribute :status, :string

#successBoolean?

Returns Whether the tool use was successful.

Returns:

  • (Boolean, nil)

    Whether the tool use was successful



170
# File 'lib/cline/log.rb', line 170

attribute :success, :boolean

#team_idString?

Returns Team identifier.

Returns:

  • (String, nil)

    Team identifier



98
# File 'lib/cline/log.rb', line 98

attribute :team_id, :string

#team_nameString?

Returns Team name.

Returns:

  • (String, nil)

    Team name



101
# File 'lib/cline/log.rb', line 101

attribute :team_name, :string

#team_roleString?

Returns Team role (e.g. "lead").

Returns:

  • (String, nil)

    Team role (e.g. "lead")



104
# File 'lib/cline/log.rb', line 104

attribute :team_role, :string

#timestampString?

Returns Timestamp in ISO 8601 format.

Returns:

  • (String, nil)

    Timestamp in ISO 8601 format



125
# File 'lib/cline/log.rb', line 125

attribute :timestamp, :string

#tokens_inInteger?

Returns Input tokens count.

Returns:

  • (Integer, nil)

    Input tokens count



152
# File 'lib/cline/log.rb', line 152

attribute :tokens_in, :integer

#tokens_outInteger?

Returns Output tokens count.

Returns:

  • (Integer, nil)

    Output tokens count



155
# File 'lib/cline/log.rb', line 155

attribute :tokens_out, :integer

#toolString?

Returns Tool name used (e.g. "ask_question", "run_commands").

Returns:

  • (String, nil)

    Tool name used (e.g. "ask_question", "run_commands")



167
# File 'lib/cline/log.rb', line 167

attribute :tool, :string

#total_costFloat?

Returns Total cost of the API call.

Returns:

  • (Float, nil)

    Total cost of the API call



158
# File 'lib/cline/log.rb', line 158

attribute :total_cost, :float

#ulidString?

Returns Unique identifier for tasks and sessions.

Returns:

  • (String, nil)

    Unique identifier for tasks and sessions



80
# File 'lib/cline/log.rb', line 80

attribute :ulid, :string

#vcs_typesArray<String>?

Returns VCS types (e.g. ["git"]).

Returns:

  • (Array<String>, nil)

    VCS types (e.g. ["git"])



184
# File 'lib/cline/log.rb', line 184

attribute :vcs_types, Utils::Schema.collection(:string)