SessionStdin

works.iterative.claude.core.model.SessionStdin
object SessionStdin

The lines a Session writes to the CLI process's stdin.

User input is encoded with UserInput.encode into a content-block array, so the verbatim user text is its own block and never concatenates with context — injection is impossible by construction. Control requests use the vendor control protocol correlated by request_id.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def controlRequestLine(request: ControlRequest): String

The stdin line for a control request, newline-terminated.

The stdin line for a control request, newline-terminated.

Attributes

def userInputLine(input: UserInput, sessionId: String): String

The stdin line for a user input, newline-terminated. message.content is the block array UserInput.encode produces.

The stdin line for a user input, newline-terminated. message.content is the block array UserInput.encode produces.

Attributes