@loglayer/transport-pretty-terminal 4.1.6-alpha-0.0 → 4.1.7

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.
package/dist/index.cjs CHANGED
@@ -6,12 +6,16 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
15
19
  }
16
20
  return to;
17
21
  };
@@ -22,7 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
26
 
23
27
  //#endregion
24
28
  let __loglayer_transport = require("@loglayer/transport");
25
- __loglayer_transport = __toESM(__loglayer_transport);
26
29
  let chalk = require("chalk");
27
30
  chalk = __toESM(chalk);
28
31
  let wrap_ansi = require("wrap-ansi");
@@ -30,7 +33,6 @@ wrap_ansi = __toESM(wrap_ansi);
30
33
  let cli_truncate = require("cli-truncate");
31
34
  cli_truncate = __toESM(cli_truncate);
32
35
  let node_path = require("node:path");
33
- node_path = __toESM(node_path);
34
36
  let better_sqlite3 = require("better-sqlite3");
35
37
  better_sqlite3 = __toESM(better_sqlite3);
36
38
  let keypress = require("keypress");
@@ -689,6 +691,10 @@ var LogRenderer = class {
689
691
  //#endregion
690
692
  //#region src/LogStorage.ts
691
693
  /**
694
+ * LogStorage handles the persistence of log entries using SQLite.
695
+ * Uses an in-memory database for fast access and temporary storage.
696
+ */
697
+ /**
692
698
  * Handles storage and retrieval of log entries using SQLite.
693
699
  * Uses an in-memory database for optimal performance and automatic cleanup.
694
700
  *
@@ -1123,6 +1129,29 @@ const pastel = {
1123
1129
  //#endregion
1124
1130
  //#region src/UIManager.ts
1125
1131
  /**
1132
+ * UIManager handles all user interaction and view state management.
1133
+ * This class is responsible for:
1134
+ * - Managing keyboard input and navigation
1135
+ * - Coordinating between views (simple, selection, detail)
1136
+ * - Handling filtering and search
1137
+ * - Managing the selection state
1138
+ * - Coordinating between storage and rendering
1139
+ *
1140
+ * The UI has three main modes:
1141
+ * 1. Simple View: Real-time log output (default)
1142
+ * 2. Selection View: Interactive log browsing with filtering
1143
+ * 3. Detail View: In-depth view of a single log entry
1144
+ *
1145
+ * Navigation Controls:
1146
+ * - TAB: Toggle selection mode
1147
+ * - Up/Down: Navigate logs in selection mode, scroll in detail mode
1148
+ * - Left/Right: Navigate between logs in detail mode
1149
+ * - Enter: View log details
1150
+ * - Type: Filter logs
1151
+ * - Backspace: Clear filter
1152
+ * - CTRL+C: Exit
1153
+ */
1154
+ /**
1126
1155
  * Manages UI state and user interaction.
1127
1156
  * Acts as the controller between the storage and rendering layers.
1128
1157
  * Handles all keyboard input and view transitions.