Class: Cline::SessionData

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

Overview

Session data

Defined Under Namespace

Classes: Metadata

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

#cwd ⇒ String

Returns Current working directory.

Returns:

  • (String) —

    Current working directory



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

attribute :cwd, :string

#enable_spawn ⇒ Boolean

Returns Whether spawn is enabled.

Returns:

  • (Boolean) —

    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.

Returns:

  • (Boolean) —

    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.

Returns:

  • (Boolean) —

    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).

Returns:

  • (String) —

    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.

Returns:

  • (Integer) —

    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.

Returns:

  • (Boolean) —

    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.

Returns:

  • (String) —

    Path to the messages file



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

attribute :messages_path, :string

#metadata ⇒ Metadata

Returns Session metadata.

Returns:



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

attribute :metadata, Metadata

#model ⇒ String

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

Returns:

  • (String) —

    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.

Returns:

  • (Integer) —

    Process ID



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

attribute :pid, :integer

#prompt ⇒ String

Returns Prompt for the session.

Returns:

  • (String) —

    Prompt for the session



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

attribute :prompt, :string

#provider ⇒ String

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

Returns:

  • (String) —

    Provider name (e.g. "cline")



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

attribute :provider, :string

#session_id ⇒ String

Returns Unique session identifier.

Returns:

  • (String) —

    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").

Returns:

  • (String) —

    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).

Returns:

  • (String) —

    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").

Returns:

  • (String) —

    Session status (e.g. "completed")



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

attribute :status, :string

#team_name ⇒ String

Returns Team name.

Returns:

  • (String) —

    Team name



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

attribute :team_name, :string

#version ⇒ Integer

Returns Version number.

Returns:

  • (Integer) —

    Version number



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

attribute :version, :integer

#workspace_root ⇒ String

Returns Workspace root path.

Returns:

  • (String) —

    Workspace root path



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

attribute :workspace_root, :string