MCPcopy Create free account
hub / github.com/DingyangLyu/MatClaw / TranscriptLine

Interface TranscriptLine

src/web/transcript-parser.ts:21–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21interface TranscriptLine {
22 type: string;
23 subtype?: string;
24 timestamp?: string;
25 message?: {
26 role: string;
27 content:
28 | string
29 | Array<{
30 type: string;
31 text?: string;
32 thinking?: string;
33 name?: string;
34 id?: string;
35 input?: unknown;
36 tool_use_id?: string;
37 content?: string | unknown;
38 }>;
39 };
40 toolUseResult?:
41 | {
42 stdout?: string;
43 stderr?: string;
44 }
45 | Array<{ type: string; text?: string }>;
46 result?: string;
47 session_id?: string;
48}
49
50function formatTime(ts?: string): string {
51 if (!ts) return '??:??:??.???';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected