TranscriptEndpoint

works.iterative.claude.ui.transcript.TranscriptEndpoint

Where a reader asks for a session's transcript, and how that question is written down.

The description is deliberately free of any HTTP machinery: it is a path, a query parameter, and the two pure functions that write and read them. A host mounts it with whatever server it already runs; the client builds the same URL from the same source.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def artifactUrlFor(sessionId: String, call: String, part: Int): String

Where one picture of a session's transcript is fetched from.

Where one picture of a session's transcript is fetched from.

Attributes

def markupUrlFor(sessionId: String): String

Where a session's transcript is fetched from, already rendered as markup.

Where a session's transcript is fetched from, already rendered as markup.

Attributes

def sessionIdIn(query: String): Either[TranscriptFailure, String]

Reads the requested session id out of a URL query string, refusing a question that names no session or names one this contract will not carry.

Reads the requested session id out of a URL query string, refusing a question that names no session or names one this contract will not carry.

Attributes

def urlFor(sessionId: String): String

The request a reader makes for one session's transcript.

The request a reader makes for one session's transcript.

Attributes

Concrete fields

val artifactPath: String

The full address of that answer, for a page building a URL.

The full address of that answer, for a page building a URL.

Attributes

val artifactSegment: String

The segment, under the transcript address, where a host answers for the bytes of one picture a call came back with.

The segment, under the transcript address, where a host answers for the bytes of one picture a call came back with.

A picture is not carried on the transcript wire, so a page holds a reference to where it sits — the session, the call it answered, and which part of that answer it is — and asks for it here. The host reads it out of the session it already read the transcript from.

Attributes

val callParam: String

The query parameter naming the call whose answer holds the picture.

The query parameter naming the call whose answer holds the picture.

Attributes

val markupPath: String

The full address of that rendering, for a page building a URL.

The full address of that rendering, for a page building a URL.

Attributes

val markupSegment: String

The segment, under the transcript address, where a host answers with a session's transcript already rendered as the cc-* markup.

The segment, under the transcript address, where a host answers with a session's transcript already rendered as the cc-* markup.

A transcript's rows have one producer, on the JVM; this is where a page reaches it. The element fetches this address and inserts what comes back as-is, so it never draws a row from data itself.

Attributes

val partParam: String

The query parameter naming which part of that answer the picture is.

The query parameter naming which part of that answer the picture is.

Attributes

val path: String

The address a host answers transcript requests on.

The address a host answers transcript requests on.

Attributes

val sessionParam: String

The query parameter naming the session to read.

The query parameter naming the session to read.

Attributes