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_id ⇒ String?

Returns Agent identifier.

Returns:

  • (String, nil) —

    Agent identifier



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

attribute :agent_id, :string

#agent_kind ⇒ String?

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_provider ⇒ String?

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_tokens ⇒ Integer?

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_tokens ⇒ Integer?

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_type ⇒ String?

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_id ⇒ String?

Returns Conversation identifier.

Returns:

  • (String, nil) —

    Conversation identifier



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

attribute :conversation_id, :string

#distinct_id ⇒ String?

Returns Distinct identifier.

Returns:

  • (String, nil) —

    Distinct identifier



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

attribute :distinct_id, :string

#duration_ms ⇒ Integer?

Returns Duration in milliseconds.

Returns:

  • (Integer, nil) —

    Duration in milliseconds



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

attribute :duration_ms, :integer

#enable_agent_teams ⇒ Boolean?

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_agent ⇒ Boolean?

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_tools ⇒ Boolean?

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_type ⇒ String?

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_version ⇒ String?

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_enabled ⇒ Boolean?

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_git ⇒ Boolean?

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_mercurial ⇒ Boolean?

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_ms ⇒ Float?

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_root ⇒ Boolean?

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_subagent ⇒ Boolean?

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

#iteration ⇒ Integer?

Returns Iteration number.

Returns:

  • (Integer, nil) —

    Iteration number



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

attribute :iteration, :integer

#lead_agent_id ⇒ String?

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

#mode ⇒ String?

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

#model ⇒ String?

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_id ⇒ String?

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_type ⇒ String?

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_version ⇒ String?

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

#platform ⇒ String?

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_version ⇒ String?

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

#provider ⇒ String?

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_id ⇒ String?

Returns Provider identifier.

Returns:

  • (String, nil) —

    Provider identifier



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

attribute :provider_id, :string

#restored_from_persistence ⇒ String?

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_count ⇒ Integer?

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_id ⇒ String?

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_id ⇒ String?

Returns Session identifier.

Returns:

  • (String, nil) —

    Session identifier



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

attribute :session_id, :string

#source ⇒ String?

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

#status ⇒ String?

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

#success ⇒ Boolean?

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_id ⇒ String?

Returns Team identifier.

Returns:

  • (String, nil) —

    Team identifier



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

attribute :team_id, :string

#team_name ⇒ String?

Returns Team name.

Returns:

  • (String, nil) —

    Team name



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

attribute :team_name, :string

#team_role ⇒ String?

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

#timestamp ⇒ String?

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_in ⇒ Integer?

Returns Input tokens count.

Returns:

  • (Integer, nil) —

    Input tokens count



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

attribute :tokens_in, :integer

#tokens_out ⇒ Integer?

Returns Output tokens count.

Returns:

  • (Integer, nil) —

    Output tokens count



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

attribute :tokens_out, :integer

#tool ⇒ String?

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_cost ⇒ Float?

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

#ulid ⇒ String?

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_types ⇒ Array<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)