Class: Pikuri::Workspace::Confirmer::Request
- Inherits:
-
Data
- Object
- Data
- Pikuri::Workspace::Confirmer::Request
- Defined in:
- lib/pikuri/workspace/confirmer.rb
Overview
The semantic payload of one confirmation:
question— one-line headline the tool composes (e.g. +"OK to overwrite foo.rb: 120 → 245 bytes?"+); the caller owns phrasing, the renderer owns the answer cue.detail— optional preformatted body: the raw bash command, theagenttask,nilfor Write. Wheneditable, the exact text the human may rewrite, returned as Approved#new_request_detail.editable— whether the human may editdetail(defaultfalse);trueonly whendetailis the verbatim payload (theagenttask), never a decorated string (bash's"$ <command>").
+question+/+detail+ are RAW LLM-composed text — renderers MUST neutralize them via Sanitizer (see Terminal), plus HTML-escape in a web client.
Instance Attribute Summary collapse
-
#change ⇒ Object
readonly
Returns the value of attribute change.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#editable ⇒ Object
readonly
Returns the value of attribute editable.
-
#question ⇒ Object
readonly
Returns the value of attribute question.
Instance Method Summary collapse
-
#initialize(question:, detail: nil, editable: false, change: nil) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(question:, detail: nil, editable: false, change: nil) ⇒ Request
Returns a new instance of Request.
98 99 100 |
# File 'lib/pikuri/workspace/confirmer.rb', line 98 def initialize(question:, detail: nil, editable: false, change: nil) super end |
Instance Attribute Details
#change ⇒ Object (readonly)
Returns the value of attribute change
92 93 94 |
# File 'lib/pikuri/workspace/confirmer.rb', line 92 def change @change end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail
92 93 94 |
# File 'lib/pikuri/workspace/confirmer.rb', line 92 def detail @detail end |
#editable ⇒ Object (readonly)
Returns the value of attribute editable
92 93 94 |
# File 'lib/pikuri/workspace/confirmer.rb', line 92 def editable @editable end |
#question ⇒ Object (readonly)
Returns the value of attribute question
92 93 94 |
# File 'lib/pikuri/workspace/confirmer.rb', line 92 def question @question end |