Class: EnvironmentSnapshot
- Inherits:
-
Data
- Object
- Data
- EnvironmentSnapshot
- Defined in:
- lib/shell_session.rb
Overview
Immutable snapshot of the shell’s environment for change detection. Compared between commands to produce natural-language summaries of what changed — the agent discovers its environment through Bash tool responses.
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#project_files ⇒ Object
readonly
Returns the value of attribute project_files.
-
#pwd ⇒ Object
readonly
Returns the value of attribute pwd.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Class Method Summary collapse
-
.blank ⇒ Object
Sentinel for “never detected” — diffs against this produce a full snapshot.
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch
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_files ⇒ Object (readonly)
Returns the value of attribute project_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 |
#pwd ⇒ Object (readonly)
Returns the value of attribute pwd
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 |
#repo ⇒ Object (readonly)
Returns the value of attribute repo
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 |
Class Method Details
.blank ⇒ Object
Sentinel for “never detected” — diffs against this produce a full snapshot.
25 |
# File 'lib/shell_session.rb', line 25 def self.blank = new(pwd: nil, branch: nil, repo: nil, project_files: []) |