Class: Cline::SessionData
- Defined in:
- lib/cline/session_data.rb
Overview
Session data
Defined Under Namespace
Classes: Metadata
Instance Attribute Summary
Attributes inherited from Schema
Public API collapse
-
#cwd ⇒ String
Current working directory.
-
#enable_spawn ⇒ Boolean
Whether spawn is enabled.
-
#enable_teams ⇒ Boolean
Whether teams are enabled.
-
#enable_tools ⇒ Boolean
Whether tools are enabled.
-
#ended_at ⇒ String
End time of the session (ISO 8601).
-
#exit_code ⇒ Integer
Exit code of the process.
-
#interactive ⇒ Boolean
Whether the session is interactive.
-
#messages_path ⇒ String
Path to the messages file.
-
#metadata ⇒ Metadata
Session metadata.
-
#model ⇒ String
Model name (e.g. "deepseek/deepseek-v4-flash").
-
#pid ⇒ Integer
Process ID.
-
#prompt ⇒ String
Prompt for the session.
-
#provider ⇒ String
Provider name (e.g. "cline").
-
#session_id ⇒ String
Unique session identifier.
-
#source ⇒ String
Source of the session (e.g. "cli").
-
#started_at ⇒ String
Start time of the session (ISO 8601).
-
#status ⇒ String
Session status (e.g. "completed").
-
#team_name ⇒ String
Team name.
-
#version ⇒ Integer
Version number.
-
#workspace_root ⇒ String
Workspace root path.
Methods inherited from Schema
#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash
Instance Method Details
#cwd ⇒ String
Returns Current working directory.
113 |
# File 'lib/cline/session_data.rb', line 113 attribute :cwd, :string |
#enable_spawn ⇒ Boolean
Returns Whether spawn is enabled.
125 |
# File 'lib/cline/session_data.rb', line 125 attribute :enable_spawn, :boolean |
#enable_teams ⇒ Boolean
Returns Whether teams are enabled.
128 |
# File 'lib/cline/session_data.rb', line 128 attribute :enable_teams, :boolean |
#enable_tools ⇒ Boolean
Returns Whether tools are enabled.
122 |
# File 'lib/cline/session_data.rb', line 122 attribute :enable_tools, :boolean |
#ended_at ⇒ String
Returns End time of the session (ISO 8601).
95 |
# File 'lib/cline/session_data.rb', line 95 attribute :ended_at, :string |
#exit_code ⇒ Integer
Returns Exit code of the process.
98 |
# File 'lib/cline/session_data.rb', line 98 attribute :exit_code, :integer |
#interactive ⇒ Boolean
Returns Whether the session is interactive.
104 |
# File 'lib/cline/session_data.rb', line 104 attribute :interactive, :boolean |
#messages_path ⇒ String
Returns Path to the messages file.
137 |
# File 'lib/cline/session_data.rb', line 137 attribute :messages_path, :string |
#metadata ⇒ Metadata
Returns Session metadata.
134 |
# File 'lib/cline/session_data.rb', line 134 attribute :metadata, Metadata |
#model ⇒ String
Returns Model name (e.g. "deepseek/deepseek-v4-flash").
110 |
# File 'lib/cline/session_data.rb', line 110 attribute :model, :string |
#pid ⇒ Integer
Returns Process ID.
89 |
# File 'lib/cline/session_data.rb', line 89 attribute :pid, :integer |
#prompt ⇒ String
Returns Prompt for the session.
131 |
# File 'lib/cline/session_data.rb', line 131 attribute :prompt, :string |
#provider ⇒ String
Returns Provider name (e.g. "cline").
107 |
# File 'lib/cline/session_data.rb', line 107 attribute :provider, :string |
#session_id ⇒ String
Returns Unique session identifier.
83 |
# File 'lib/cline/session_data.rb', line 83 attribute :session_id, :string |
#source ⇒ String
Returns Source of the session (e.g. "cli").
86 |
# File 'lib/cline/session_data.rb', line 86 attribute :source, :string |
#started_at ⇒ String
Returns Start time of the session (ISO 8601).
92 |
# File 'lib/cline/session_data.rb', line 92 attribute :started_at, :string |
#status ⇒ String
Returns Session status (e.g. "completed").
101 |
# File 'lib/cline/session_data.rb', line 101 attribute :status, :string |
#team_name ⇒ String
Returns Team name.
119 |
# File 'lib/cline/session_data.rb', line 119 attribute :team_name, :string |
#version ⇒ Integer
Returns Version number.
80 |
# File 'lib/cline/session_data.rb', line 80 attribute :version, :integer |
#workspace_root ⇒ String
Returns Workspace root path.
116 |
# File 'lib/cline/session_data.rb', line 116 attribute :workspace_root, :string |