Skip to content
ChartForgeX
Class

StoryReplay

ChartForgeX.Stories

Namespace
ChartForgeX.Stories
Assembly
ChartForgeX.Stories
Modifiers
sealed

Bounded, resolved terminal events supplied by a capture host or an author.

Inheritance

  • object
  • StoryReplay

Remarks

Commands are submitted observations rather than simulated keystrokes. ANSI controls are stripped; hosts resolve screen operations into explicit events.

Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public StoryReplay ChangeDirectory(TimeSpan at, string directory) #

Changes the active tab's prompt directory.

Parameters

at System.TimeSpan required
directory string required
public StoryReplay Clear(TimeSpan at) #

Clears displayed lines in the active tab without discarding recorded transcript events.

Parameters

at System.TimeSpan required
public StoryReplay Command(TimeSpan at, string command) #

Adds a submitted command at its recorded timestamp.

Parameters

at System.TimeSpan required
command string required
public StoryReplay CompressPauses(TimeSpan maximumGap) #

Returns a detached presentation with every idle gap, including leading and trailing gaps, capped explicitly.

Parameters

maximumGap System.TimeSpan required
public static StoryReplay Create(TimeSpan duration, TerminalDialect dialect = PowerShell, string workingDirectory = ".", string title = "PowerShell", string? customPrompt = null) #

Creates a recording with an explicit endpoint and initial session.

Parameters

duration System.TimeSpan required
dialect ChartForgeX.Terminal.TerminalDialect = PowerShell optional
workingDirectory string = "." optional
title string = "PowerShell" optional
customPrompt string? = null optional
public StoryReplay Explain(TimeSpan at, string label) #

Returns a detached replay with an explanation inserted on the presentation clock, without inventing a recorded timestamp.

Parameters

at System.TimeSpan required
label string required
public StoryReplay Marker(TimeSpan at, string label) #

Adds an explanation or chapter marker at a recorded timestamp.

Parameters

at System.TimeSpan required
label string required
public StoryReplay OpenTab(TimeSpan at, string id, string title, TerminalDialect dialect = PowerShell, string workingDirectory = ".", string? customPrompt = null) #

Opens and activates a persistent session.

Parameters

at System.TimeSpan required
id string required
title string required
dialect ChartForgeX.Terminal.TerminalDialect = PowerShell optional
workingDirectory string = "." optional
customPrompt string? = null optional
public StoryReplay Output(TimeSpan at, string text, Tone? tone = null) #

Adds completed, newline-separated output. Use ReplaceLine for a carriage-return update.

Parameters

at System.TimeSpan required
text string required
tone ChartForgeX.Tone? = null optional
public StoryReplay ReplaceLine(TimeSpan at, string text, Tone? tone = null) #

Replaces the active tab's last line with resolved progress text.

Parameters

at System.TimeSpan required
text string required
tone ChartForgeX.Tone? = null optional
public StoryReplay SelectTab(TimeSpan at, string id) #

Activates a previously opened session.

Parameters

at System.TimeSpan required
id string required
public string ToTranscript() #

Gets sanitized chronological output, including cleared lines and both timestamps.

Returns

string

Exceptions

  • InvalidOperationException – The expanded transcript exceeds 16 Mi UTF-16 characters.
public StoryReplay Trim(TimeSpan start, TimeSpan end) #

Returns a detached presentation interval. Earlier events are retained at zero to reconstruct tab and screen state.

Parameters

start System.TimeSpan required
end System.TimeSpan required

Properties

public TimeSpan Duration { get; private set; } #

Gets the presentation duration, including recorded idle time.

public TimeSpan OriginalDuration { get; private set; } #

Gets the original duration before trimming or pause compression.

public TerminalDialect Dialect { get; } #

Gets the initial recording dialect.

public string Title { get; } #

Gets the initial tab title.

public string WorkingDirectory { get; } #

Gets the initial prompt directory.

public string CustomPrompt { get; } #

Gets the initial custom prompt.

public IReadOnlyList<StoryReplayEvent> Events { get; } #

Gets immutable events in stable timestamp order.