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

#cwdString

Returns Current working directory.

Returns:

  • (String)

    Current working directory



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

attribute :cwd, :string

#enable_spawnBoolean

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_teamsBoolean

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_toolsBoolean

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_atString

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_codeInteger

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

#interactiveBoolean

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_pathString

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

#metadataMetadata

Returns Session metadata.

Returns:



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

attribute :metadata, Metadata

#modelString

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

#pidInteger

Returns Process ID.

Returns:

  • (Integer)

    Process ID



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

attribute :pid, :integer

#promptString

Returns Prompt for the session.

Returns:

  • (String)

    Prompt for the session



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

attribute :prompt, :string

#providerString

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_idString

Returns Unique session identifier.

Returns:

  • (String)

    Unique session identifier



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

attribute :session_id, :string

#sourceString

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_atString

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

#statusString

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_nameString

Returns Team name.

Returns:

  • (String)

    Team name



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

attribute :team_name, :string

#versionInteger

Returns Version number.

Returns:

  • (Integer)

    Version number



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

attribute :version, :integer

#workspace_rootString

Returns Workspace root path.

Returns:

  • (String)

    Workspace root path



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

attribute :workspace_root, :string