@rage-against-the-pixel/unity-cli 1.5.5 → 1.6.1

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,68 @@
1
+ import { UTP } from './utp';
2
+ /**
3
+ * Result of the tailLogFile function containing cleanup resources.
4
+ */
5
+ export interface LogTailResult {
6
+ /** Promise that resolves when log tailing completes */
7
+ tailPromise: Promise<void>;
8
+ /** Function to signal that log tailing should end */
9
+ stopLogTail: () => void;
10
+ /** Collected telemetry objects parsed from lines beginning with '##utp:' */
11
+ telemetry: UTP[];
12
+ }
13
+ interface CompletedActionSummary {
14
+ name: string;
15
+ description: string;
16
+ durationMs: number;
17
+ errors: string[];
18
+ }
19
+ interface PendingActionSummary {
20
+ name: string;
21
+ description: string;
22
+ }
23
+ interface PlayerBuildInfoStepSummary {
24
+ description: string;
25
+ durationMs: number;
26
+ errorCount: number;
27
+ }
28
+ interface PlayerBuildInfoSnapshot {
29
+ steps: PlayerBuildInfoStepSummary[];
30
+ totalDurationMs: number;
31
+ totalErrorCount: number;
32
+ }
33
+ export interface ActionTableSnapshot {
34
+ completed: CompletedActionSummary[];
35
+ pending: PendingActionSummary[];
36
+ totalDurationMs: number;
37
+ totalErrorCount: number;
38
+ playerBuildInfo?: PlayerBuildInfoSnapshot | undefined;
39
+ }
40
+ interface FormattedTableOutput {
41
+ text: string;
42
+ lineCount: number;
43
+ }
44
+ export declare function sanitizeTelemetryJson(raw: string): string;
45
+ export declare function stringDisplayWidth(value: string): number;
46
+ export declare function formatActionTimelineTable(snapshot: ActionTableSnapshot, options?: {
47
+ maxWidth?: number;
48
+ }): FormattedTableOutput | undefined;
49
+ export declare class ActionTableRenderer {
50
+ private readonly canUpdateTerminal;
51
+ private lastRenderLineCount;
52
+ private anchorActive;
53
+ constructor(canUpdateTerminal: boolean);
54
+ prepareForContent(): void;
55
+ render(snapshot: ActionTableSnapshot | undefined): void;
56
+ private clearTimelineRegion;
57
+ private rewindToAnchor;
58
+ private getMaxWidth;
59
+ private detectTerminalWidth;
60
+ }
61
+ /**
62
+ * Tails a log file using fs.watch and ReadStream for efficient reading.
63
+ * @param logPath The path to the log file to tail.
64
+ * @param projectPath The path to the project (used for log annotation).
65
+ * @returns An object containing the tail promise and signalEnd function.
66
+ */
67
+ export declare function TailLogFile(logPath: string, projectPath: string | undefined): LogTailResult;
68
+ export {};