agent-afk 5.296.9 → 5.297.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ import type { JournalMessage, JournalRecord } from './types.js';
2
+ export declare function messageFingerprint(m: JournalMessage): string;
3
+ export declare function isCompactionPreamble(m: JournalMessage): boolean;
4
+ export declare function foldForDisplay(segments: readonly (readonly JournalRecord[])[]): JournalMessage[];
5
+ type ReadRecords = (sessionId: string) => JournalRecord[];
6
+ interface ForkCut {
7
+ ts: number;
8
+ length: number;
9
+ }
10
+ export declare function cutAtFork(records: readonly JournalRecord[], cut: ForkCut): JournalRecord[];
11
+ export declare function displaySegments(sessionId: string, read?: ReadRecords): JournalRecord[][];
12
+ export declare function loadDisplayMessages(sessionId: string): JournalMessage[];
13
+ export {};
@@ -5,3 +5,4 @@ export { createMessageJournal, isMessageJournalDisabled, type CreateMessageJourn
5
5
  export { findToolResult, foldJournal, hydrateMessages, journalExists, listSubagentJournals, loadJournalFold, loadJournalMessages, readJournalRecords, type FoldResult, type JournalLocator, } from './reader.js';
6
6
  export { findToolResultAsync } from './reader.async.js';
7
7
  export { forkJournal } from './fork.js';
8
+ export { foldForDisplay, loadDisplayMessages } from './display-fold.js';
@@ -21,7 +21,7 @@ import type { GitStatusSampler } from '../../git-status-sampler.js';
21
21
  export type { ResumeSwapResult } from '../../slash/types.js';
22
22
  export declare function reseedStatsFromStored(stats: SessionStats, stored: StoredSession, resumeId: string): void;
23
23
  export declare function resolveResumeCwd(extrasCwd: string | undefined, storedCwd: string | undefined): string | undefined;
24
- export declare function printResumeBanner(stats: SessionStats, writer: CompletionWriter): void;
24
+ export declare function printResumeBanner(stats: SessionStats, writer: CompletionWriter): Promise<void>;
25
25
  export type { ThinkingUiMode } from '../../slash/types.js';
26
26
  export interface CliOptions {
27
27
  model: AgentModelInput;
@@ -0,0 +1,23 @@
1
+ import { type WriterSink } from '../../slash/writer.js';
2
+ import { type JournalMessage } from '../../../agent/journal/index.js';
3
+ import type { OutputEvent } from '../../../agent/types.js';
4
+ export interface ReplayTurn {
5
+ user: string;
6
+ note?: string;
7
+ body: JournalMessage[];
8
+ }
9
+ export declare function humanText(m: JournalMessage, hints?: ReadonlySet<string>): {
10
+ text: string;
11
+ note?: string;
12
+ };
13
+ export declare function groupTurns(messages: readonly JournalMessage[], hintTexts?: readonly string[]): ReplayTurn[];
14
+ export declare function turnEvents(body: readonly JournalMessage[]): OutputEvent[];
15
+ export declare function splitRounds(body: readonly JournalMessage[]): JournalMessage[][];
16
+ export declare function loadReplayTurns(sessionId: string | undefined, hintTexts?: readonly string[]): ReplayTurn[] | null;
17
+ export declare function renderReplayTurns(turns: readonly ReplayTurn[], sink: WriterSink, opts?: {
18
+ maxTurns?: number;
19
+ }): Promise<number>;
20
+ export declare function replayJournal(sessionId: string | undefined, sink: WriterSink, opts?: {
21
+ maxTurns?: number;
22
+ hints?: readonly string[];
23
+ }): Promise<number | null>;
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const historyCmd: SlashCommand;