Top Level Namespace

Defined Under Namespace

Modules: Agents, AnalyticalBrain, Anima, ApplicationCable, Events, LLM, Mcp, Mneme, Providers, Skills, TUI, Tools, Workflows Classes: AgentLoop, AgentMessageDecorator, AgentRequestJob, AnalyticalBrainJob, ApplicationController, ApplicationDecorator, ApplicationJob, ApplicationRecord, CountMessageTokensJob, CredentialStore, EnvironmentSnapshot, Goal, GoalPinnedMessage, Message, MessageDecorator, MnemeJob, PassiveRecallJob, PendingMessage, PinnedMessage, Secret, Session, SessionChannel, ShellSession, Snapshot, SystemMessageDecorator, ToolCallDecorator, ToolDecorator, ToolResponseDecorator, UserMessageDecorator, WebGetToolDecorator

Instance Attribute Summary collapse

Instance Attribute Details

#branchString? (readonly)

Returns current git branch name.

Returns:

  • (String, nil)

    current git branch name



23
24
25
26
# File 'lib/shell_session.rb', line 23

EnvironmentSnapshot = Data.define(:pwd, :branch, :repo, :project_files) do
  # Sentinel for "never detected" — diffs against this produce a full snapshot.
  def self.blank = new(pwd: nil, branch: nil, repo: nil, project_files: [])
end

#project_filesArray<String> (readonly)

Returns sorted relative paths to project instruction files.

Returns:

  • (Array<String>)

    sorted relative paths to project instruction files



23
24
25
26
# File 'lib/shell_session.rb', line 23

EnvironmentSnapshot = Data.define(:pwd, :branch, :repo, :project_files) do
  # Sentinel for "never detected" — diffs against this produce a full snapshot.
  def self.blank = new(pwd: nil, branch: nil, repo: nil, project_files: [])
end

#pwdString? (readonly)

Returns current working directory.

Returns:

  • (String, nil)

    current working directory



23
24
25
26
# File 'lib/shell_session.rb', line 23

EnvironmentSnapshot = Data.define(:pwd, :branch, :repo, :project_files) do
  # Sentinel for "never detected" — diffs against this produce a full snapshot.
  def self.blank = new(pwd: nil, branch: nil, repo: nil, project_files: [])
end

#repoString? (readonly)

Returns “owner/repo” extracted from git origin remote.

Returns:

  • (String, nil)

    “owner/repo” extracted from git origin remote



23
24
25
26
# File 'lib/shell_session.rb', line 23

EnvironmentSnapshot = Data.define(:pwd, :branch, :repo, :project_files) do
  # Sentinel for "never detected" — diffs against this produce a full snapshot.
  def self.blank = new(pwd: nil, branch: nil, repo: nil, project_files: [])
end