navi-hey 1.2.0 → 1.3.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.
Files changed (74) hide show
  1. package/lib/common/server/HandlerConfig.js +30 -0
  2. package/lib/common/server/RequestHandler.js +13 -0
  3. package/lib/common/utils/EnvResolver.js +26 -0
  4. package/lib/common/utils/env_resolver/EnvStringResolver.js +52 -0
  5. package/lib/common/utils/logging/BaseLogger.js +98 -0
  6. package/lib/common/utils/logging/BufferedLogger.js +100 -0
  7. package/lib/common/utils/logging/ConsoleLogger.js +20 -0
  8. package/lib/common/utils/logging/Log.js +82 -0
  9. package/lib/common/utils/logging/LogBuffer.js +122 -0
  10. package/lib/common/utils/logging/LogBufferCollection.js +56 -0
  11. package/lib/common/utils/logging/LogContext.js +51 -0
  12. package/lib/common/utils/logging/LogFactory.js +33 -0
  13. package/lib/common/utils/logging/LogFilter.js +34 -0
  14. package/lib/common/utils/logging/Logger.js +138 -0
  15. package/lib/common/utils/logging/LoggerGroup.js +104 -0
  16. package/lib/models/configs/Link.js +36 -0
  17. package/lib/models/configs/WebConfig.js +5 -1
  18. package/lib/serializers/LinksSerializer.js +19 -0
  19. package/lib/server/Router.js +39 -35
  20. package/lib/server/handlers/AssetsHandler.js +51 -0
  21. package/lib/server/handlers/IndexHandler.js +33 -0
  22. package/lib/server/handlers/LinksHandler.js +50 -0
  23. package/lib/server/handlers/LogsHandler.js +57 -0
  24. package/lib/server/handlers/SettingsHandler.js +34 -0
  25. package/lib/server/handlers/StatsHandler.js +33 -0
  26. package/lib/server/handlers/engine/EngineContinueHandler.js +32 -0
  27. package/lib/server/handlers/engine/EnginePauseHandler.js +32 -0
  28. package/lib/server/handlers/engine/EngineRestartHandler.js +32 -0
  29. package/lib/server/handlers/engine/EngineShutdownHandler.js +30 -0
  30. package/lib/server/handlers/engine/EngineStartHandler.js +32 -0
  31. package/lib/server/handlers/engine/EngineStatusHandler.js +29 -0
  32. package/lib/server/handlers/engine/EngineStopHandler.js +32 -0
  33. package/lib/server/handlers/jobs/JobHandler.js +35 -0
  34. package/lib/server/handlers/jobs/JobLogsHandler.js +38 -0
  35. package/lib/server/handlers/jobs/{JobRetryRequestHandler.js → JobRetryHandler.js} +15 -13
  36. package/lib/server/handlers/jobs/JobsHandler.js +37 -0
  37. package/lib/services/ApplicationInstance.js +28 -4
  38. package/lib/services/Client.js +6 -2
  39. package/lib/services/ConfigLoader.js +3 -3
  40. package/lib/services/RunSummary.js +70 -0
  41. package/lib/utils/logging/BaseLogger.js +1 -98
  42. package/lib/utils/logging/BufferedLogger.js +1 -100
  43. package/lib/utils/logging/ConsoleLogger.js +1 -20
  44. package/lib/utils/logging/Log.js +1 -82
  45. package/lib/utils/logging/LogBuffer.js +1 -122
  46. package/lib/utils/logging/LogBufferCollection.js +1 -56
  47. package/lib/utils/logging/LogContext.js +1 -51
  48. package/lib/utils/logging/LogFactory.js +1 -33
  49. package/lib/utils/logging/LogFilter.js +1 -34
  50. package/lib/utils/logging/Logger.js +1 -138
  51. package/lib/utils/logging/LoggerGroup.js +1 -104
  52. package/package.json +1 -1
  53. package/static/assets/{index-D5tOOLpl.js → index-BnMGdHFP.js} +7 -7
  54. package/static/favicon.png +0 -0
  55. package/static/index.html +2 -1
  56. package/lib/serializers/BaseUrlsSerializer.js +0 -18
  57. package/lib/server/RequestHandler.js +0 -15
  58. package/lib/server/handlers/AssetsRequestHandler.js +0 -50
  59. package/lib/server/handlers/BaseUrlsRequestHandler.js +0 -33
  60. package/lib/server/handlers/IndexRequestHandler.js +0 -31
  61. package/lib/server/handlers/LogsRequestHandler.js +0 -55
  62. package/lib/server/handlers/SettingsRequestHandler.js +0 -35
  63. package/lib/server/handlers/StatsRequestHandler.js +0 -31
  64. package/lib/server/handlers/engine/EngineContinueRequestHandler.js +0 -34
  65. package/lib/server/handlers/engine/EnginePauseRequestHandler.js +0 -34
  66. package/lib/server/handlers/engine/EngineRestartRequestHandler.js +0 -34
  67. package/lib/server/handlers/engine/EngineShutdownRequestHandler.js +0 -29
  68. package/lib/server/handlers/engine/EngineStartRequestHandler.js +0 -34
  69. package/lib/server/handlers/engine/EngineStatusRequestHandler.js +0 -27
  70. package/lib/server/handlers/engine/EngineStopRequestHandler.js +0 -34
  71. package/lib/server/handlers/jobs/JobLogsRequestHandler.js +0 -39
  72. package/lib/server/handlers/jobs/JobRequestHandler.js +0 -33
  73. package/lib/server/handlers/jobs/JobsRequestHandler.js +0 -33
  74. package/lib/utils/EnvResolver.js +0 -75
@@ -1,98 +1 @@
1
- /**
2
- * Base logger that filters log output based on a configurable level threshold.
3
- * Subclasses must implement _output(level, message) to handle the actual output.
4
- * @author darthjee
5
- */
6
- class BaseLogger {
7
- #level;
8
- #suppressed = false;
9
- #levels = { debug: 0, info: 1, warn: 2, error: 3, silent: 4 };
10
-
11
- /**
12
- * Creates a new BaseLogger instance.
13
- * @param {string} [level] - The log level threshold. Defaults to the LOG_LEVEL env var or 'info'.
14
- */
15
- constructor(level) {
16
- this.#level = level ?? process.env.LOG_LEVEL ?? 'info';
17
- }
18
-
19
- /**
20
- * Outputs a message at the given level. Override in subclasses.
21
- * @param {string} _level - The log level.
22
- * @param {string} _message - The message to output.
23
- * @param {object} _attributes - The structured metadata for the log entry.
24
- * @returns {void}
25
- */
26
- _output(_level, _message, _attributes) {}
27
-
28
- /**
29
- * Logs a debug message if the configured level allows it.
30
- * @param {string} message - The message to log.
31
- * @param {object} [attributes={}] - Optional structured metadata.
32
- * @returns {void}
33
- */
34
- debug(message, attributes = {}) {
35
- if (this.#shouldLog('debug')) this._output('debug', message, attributes);
36
- }
37
-
38
- /**
39
- * Logs an info message if the configured level allows it.
40
- * @param {string} message - The message to log.
41
- * @param {object} [attributes={}] - Optional structured metadata.
42
- * @returns {void}
43
- */
44
- info(message, attributes = {}) {
45
- if (this.#shouldLog('info')) this._output('info', message, attributes);
46
- }
47
-
48
- /**
49
- * Logs a warn message if the configured level allows it.
50
- * @param {string} message - The message to log.
51
- * @param {object} [attributes={}] - Optional structured metadata.
52
- * @returns {void}
53
- */
54
- warn(message, attributes = {}) {
55
- if (this.#shouldLog('warn')) this._output('warn', message, attributes);
56
- }
57
-
58
- /**
59
- * Logs an error message if the configured level allows it.
60
- * @param {string} message - The message to log.
61
- * @param {object} [attributes={}] - Optional structured metadata.
62
- * @returns {void}
63
- */
64
- error(message, attributes = {}) {
65
- if (this.#shouldLog('error')) this._output('error', message, attributes);
66
- }
67
-
68
- /**
69
- * Suppresses or restores log output for this instance.
70
- * @param {boolean} [value=true] - When true, all log output is suppressed.
71
- * @returns {void}
72
- */
73
- suppress(value = true) {
74
- this.#suppressed = value;
75
- }
76
-
77
- /**
78
- * Sets the log level threshold for this instance.
79
- * @param {string} level - The new log level ('debug', 'info', 'warn', 'error', 'silent').
80
- * @returns {void}
81
- */
82
- setLevel(level) {
83
- if (!(level in this.#levels)) {
84
- throw new Error(`Invalid log level: "${level}". Must be one of: ${Object.keys(this.#levels).join(', ')}.`);
85
- }
86
- this.#level = level;
87
- }
88
-
89
- /**
90
- * @param {string} level - The log level to check.
91
- * @returns {boolean} True if the message should be logged at the given level.
92
- */
93
- #shouldLog(level) {
94
- return !this.#suppressed && this.#levels[level] >= this.#levels[this.#level];
95
- }
96
- }
97
-
98
- export { BaseLogger };
1
+ export * from '../../common/utils/logging/BaseLogger.js';
@@ -1,100 +1 @@
1
- import { BaseLogger } from './BaseLogger.js';
2
- import { LogBuffer } from './LogBuffer.js';
3
-
4
- /**
5
- * BufferedLogger extends BaseLogger by maintaining a history of log messages.
6
- * Useful for displaying logs in a web interface or debugging.
7
- * @author darthjee
8
- */
9
- class BufferedLogger extends BaseLogger {
10
- #buffer;
11
-
12
- /**
13
- * Creates a new BufferedLogger instance.
14
- * @param {string} [level] - The log level threshold.
15
- * @param {number} [retention=100] - Maximum number of logs to retain in buffer.
16
- */
17
- constructor(level, retention = 100) {
18
- super(level);
19
- this.#buffer = new LogBuffer(retention);
20
- }
21
-
22
- /**
23
- * Stores the message in the buffer.
24
- * @param {string} level - The log level ('debug', 'info', 'warn', 'error').
25
- * @param {string} message - The message to output.
26
- * @param {object} [attributes={}] - Optional structured metadata for the log entry.
27
- * @returns {void}
28
- */
29
- _output(level, message, attributes = {}) {
30
- this.#buffer.add(level, message, attributes);
31
- }
32
-
33
- /**
34
- * Returns the most recently added log, or undefined if the buffer is empty.
35
- * @returns {import('./Log.js').Log|undefined} The most recently added log entry, or undefined.
36
- */
37
- get latestLog() {
38
- return this.#buffer.latestLog;
39
- }
40
-
41
- /**
42
- * Gets all logs from the buffer.
43
- * @returns {Array<import('./Log.js').Log>} Array of log entries.
44
- */
45
- getLogs() {
46
- return this.#buffer.getLogs();
47
- }
48
-
49
- /**
50
- * Gets a specific log by ID.
51
- * @param {number} id - The log ID to find.
52
- * @returns {import('./Log.js').Log|undefined} The log entry or undefined if not found.
53
- */
54
- getLogById(id) {
55
- return this.#buffer.getLogById(id);
56
- }
57
-
58
- /**
59
- * Gets logs filtered by level.
60
- * @param {string} level - The log level to filter by.
61
- * @returns {Array<import('./Log.js').Log>} Array of log entries matching the level.
62
- */
63
- getLogsByLevel(level) {
64
- return this.#buffer.getLogsByLevel(level);
65
- }
66
-
67
- /**
68
- * Clears all logs from the buffer.
69
- * @returns {void}
70
- */
71
- clearLogs() {
72
- this.#buffer.clear();
73
- }
74
-
75
- /**
76
- * Gets the current number of logs in the buffer.
77
- * @returns {number} The number of logs.
78
- */
79
- get bufferSize() {
80
- return this.#buffer.size;
81
- }
82
-
83
- /**
84
- * Gets the retention limit.
85
- * @returns {number} The maximum number of logs to retain.
86
- */
87
- get retention() {
88
- return this.#buffer.retention;
89
- }
90
-
91
- /**
92
- * Converts all logs to JSON array.
93
- * @returns {Array<object>} Array of log objects.
94
- */
95
- getLogsJSON() {
96
- return this.#buffer.toJSON();
97
- }
98
- }
99
-
100
- export { BufferedLogger };
1
+ export * from '../../common/utils/logging/BufferedLogger.js';
@@ -1,20 +1 @@
1
- import { BaseLogger } from './BaseLogger.js';
2
-
3
- /**
4
- * Logger that writes output to the browser/Node.js console.
5
- * @author darthjee
6
- */
7
- class ConsoleLogger extends BaseLogger {
8
- /**
9
- * Writes a message to the console at the given level.
10
- * @param {string} level - One of 'debug', 'info', 'warn', 'error'.
11
- * @param {string} message - The message to output.
12
- * @param {object} [attributes={}] - Optional structured metadata to output alongside the message.
13
- * @returns {void}
14
- */
15
- _output(level, message, attributes = {}) {
16
- console[level](message, attributes); // eslint-disable-line no-console
17
- }
18
- }
19
-
20
- export { ConsoleLogger };
1
+ export * from '../../common/utils/logging/ConsoleLogger.js';
@@ -1,82 +1 @@
1
- /**
2
- * Represents a single log entry with id, level, message, attributes and timestamp.
3
- * @author darthjee
4
- */
5
- class Log {
6
- #id;
7
- #level;
8
- #message;
9
- #attributes;
10
- #timestamp;
11
-
12
- /**
13
- * Creates a new Log instance.
14
- * @param {number} id - Unique incremental identifier for this log.
15
- * @param {string} level - The log level (debug, info, warn, error).
16
- * @param {string} message - The log message.
17
- * @param {object} [attributes={}] - Optional structured metadata for the log entry.
18
- */
19
- constructor(id, level, message, attributes = {}) {
20
- this.#id = id;
21
- this.#level = level;
22
- this.#message = message;
23
- this.#attributes = attributes;
24
- this.#timestamp = new Date();
25
- }
26
-
27
- /**
28
- * Gets the log ID.
29
- * @returns {number} The log ID.
30
- */
31
- get id() {
32
- return this.#id;
33
- }
34
-
35
- /**
36
- * Gets the log level.
37
- * @returns {string} The log level.
38
- */
39
- get level() {
40
- return this.#level;
41
- }
42
-
43
- /**
44
- * Gets the log message.
45
- * @returns {string} The log message.
46
- */
47
- get message() {
48
- return this.#message;
49
- }
50
-
51
- /**
52
- * Gets the log attributes.
53
- * @returns {object} The structured metadata attached to this log entry.
54
- */
55
- get attributes() {
56
- return this.#attributes;
57
- }
58
-
59
- /**
60
- * Gets the log timestamp.
61
- * @returns {Date} The timestamp when the log was created.
62
- */
63
- get timestamp() {
64
- return this.#timestamp;
65
- }
66
-
67
- /**
68
- * Converts the log to a plain object.
69
- * @returns {object} Plain object representation of the log.
70
- */
71
- toJSON() {
72
- return {
73
- id: this.#id,
74
- level: this.#level,
75
- message: this.#message,
76
- attributes: this.#attributes,
77
- timestamp: this.#timestamp.toISOString()
78
- };
79
- }
80
- }
81
-
82
- export { Log };
1
+ export * from '../../common/utils/logging/Log.js';
@@ -1,122 +1 @@
1
- import { LogFactory } from './LogFactory.js';
2
-
3
- /**
4
- * LogBuffer manages a limited collection of log entries with automatic retention.
5
- * When the retention limit is reached, the oldest logs are automatically discarded.
6
- * @author darthjee
7
- */
8
- class LogBuffer {
9
- #logs;
10
- #retention;
11
- #factory;
12
-
13
- /**
14
- * Creates a new LogBuffer instance.
15
- * @param {number} [retention=100] - Maximum number of logs to retain.
16
- */
17
- constructor(retention = 100) {
18
- this.#logs = [];
19
- this.#retention = retention;
20
- this.#factory = new LogFactory();
21
- }
22
-
23
- /**
24
- * Adds a new log entry to the buffer.
25
- * If retention limit is reached, removes the oldest log.
26
- * @param {string} level - The log level.
27
- * @param {string} message - The log message.
28
- * @param {object} [attributes={}] - Optional structured metadata for the log entry.
29
- * @returns {import('./Log.js').Log} The created log entry.
30
- */
31
- add(level, message, attributes = {}) {
32
- const log = this.#factory.build(level, message, attributes);
33
-
34
- this.#logs.unshift(log);
35
-
36
- if (this.#logs.length > this.#retention) {
37
- this.#logs.pop();
38
- }
39
-
40
- return log;
41
- }
42
-
43
- /**
44
- * Gets all logs in the buffer.
45
- * @returns {Array<Log>} Array of log entries.
46
- */
47
- getLogs() {
48
- return [...this.#logs].reverse();
49
- }
50
-
51
- /**
52
- * Gets a specific log by ID.
53
- * @param {number} id - The log ID to find.
54
- * @returns {Log|undefined} The log entry or undefined if not found.
55
- */
56
- getLogById(id) {
57
- return this.#logs.find(log => log.id === id);
58
- }
59
-
60
- /**
61
- * Gets logs filtered by level.
62
- * @param {string} level - The log level to filter by.
63
- * @returns {Array<Log>} Array of log entries matching the level.
64
- */
65
- getLogsByLevel(level) {
66
- return this.#logs.filter(log => log.level === level).reverse();
67
- }
68
-
69
- /**
70
- * Appends an existing Log instance to the buffer, respecting the retention limit.
71
- * @param {import('./Log.js').Log} log - The Log instance to append.
72
- * @returns {void}
73
- */
74
- push(log) {
75
- this.#logs.unshift(log);
76
- if (this.#logs.length > this.#retention) {
77
- this.#logs.pop();
78
- }
79
- }
80
-
81
- /**
82
- * Returns the most recently added log, or undefined if the buffer is empty.
83
- * @returns {import('./Log.js').Log|undefined} The most recently added log entry, or undefined.
84
- */
85
- get latestLog() {
86
- return this.#logs[0];
87
- }
88
-
89
- /**
90
- * Clears all logs from the buffer.
91
- * @returns {void}
92
- */
93
- clear() {
94
- this.#logs = [];
95
- }
96
-
97
- /**
98
- * Gets the current number of logs in the buffer.
99
- * @returns {number} The number of logs.
100
- */
101
- get size() {
102
- return this.#logs.length;
103
- }
104
-
105
- /**
106
- * Gets the retention limit.
107
- * @returns {number} The maximum number of logs to retain.
108
- */
109
- get retention() {
110
- return this.#retention;
111
- }
112
-
113
- /**
114
- * Converts all logs to JSON array.
115
- * @returns {Array<object>} Array of log objects.
116
- */
117
- toJSON() {
118
- return [...this.#logs].reverse().map(log => log.toJSON());
119
- }
120
- }
121
-
122
- export { LogBuffer };
1
+ export * from '../../common/utils/logging/LogBuffer.js';
@@ -1,56 +1 @@
1
- import { LogBuffer } from './LogBuffer.js';
2
- import { EngineEvents } from '../../services/EngineEvents.js';
3
-
4
- /**
5
- * LogBufferCollection manages a keyed map of LogBuffer instances.
6
- * Buffers are created on first use and cleared automatically when the engine stops.
7
- * @author darthjee
8
- */
9
- class LogBufferCollection {
10
- #buffers;
11
- #retention;
12
-
13
- /**
14
- * @param {number} [retention=100] - Maximum number of logs to retain per buffer.
15
- */
16
- constructor(retention = 100) {
17
- this.#buffers = new Map();
18
- this.#retention = retention;
19
- EngineEvents.on('stop', () => this.clear());
20
- }
21
-
22
- /**
23
- * Appends an existing Log instance to the buffer for the given key.
24
- * Lazily creates the buffer on first use.
25
- * @param {string|number} key - The key identifying the buffer (e.g. jobId or workerId).
26
- * @param {import('./Log.js').Log} log - The Log instance to append.
27
- * @returns {void}
28
- */
29
- push(key, log) {
30
- if (!this.#buffers.has(key)) {
31
- this.#buffers.set(key, new LogBuffer(this.#retention));
32
- }
33
- this.#buffers.get(key).push(log);
34
- }
35
-
36
- /**
37
- * Returns all logs for the given key in chronological order (oldest first).
38
- * Returns an empty array if no buffer exists for that key.
39
- * @param {string|number} key - The key to look up.
40
- * @returns {Array<import('./Log.js').Log>} Array of log entries for the given key, oldest first.
41
- */
42
- getLogs(key) {
43
- if (!this.#buffers.has(key)) return [];
44
- return this.#buffers.get(key).getLogs();
45
- }
46
-
47
- /**
48
- * Removes all per-key buffers.
49
- * @returns {void}
50
- */
51
- clear() {
52
- this.#buffers = new Map();
53
- }
54
- }
55
-
56
- export { LogBufferCollection };
1
+ export * from '../../common/utils/logging/LogBufferCollection.js';
@@ -1,51 +1 @@
1
- import { LogRegistry } from '../../registry/LogRegistry.js';
2
-
3
- /**
4
- * LogContext wraps a fixed set of attributes and forwards log calls to LogRegistry
5
- * with those attributes merged into every entry.
6
- * @author darthjee
7
- */
8
- class LogContext {
9
- #attributes;
10
-
11
- /**
12
- * @param {object} attributes Fixed attributes to include on every log entry (e.g. workerId, jobId).
13
- */
14
- constructor(attributes) {
15
- this.#attributes = attributes;
16
- }
17
-
18
- /**
19
- * @param {string} message The log message.
20
- * @param {object} [attrs={}] Additional per-call attributes merged with context attributes.
21
- */
22
- debug(message, attrs = {}) {
23
- LogRegistry.debug(message, { ...this.#attributes, ...attrs });
24
- }
25
-
26
- /**
27
- * @param {string} message The log message.
28
- * @param {object} [attrs={}] Additional per-call attributes merged with context attributes.
29
- */
30
- info(message, attrs = {}) {
31
- LogRegistry.info(message, { ...this.#attributes, ...attrs });
32
- }
33
-
34
- /**
35
- * @param {string} message The log message.
36
- * @param {object} [attrs={}] Additional per-call attributes merged with context attributes.
37
- */
38
- warn(message, attrs = {}) {
39
- LogRegistry.warn(message, { ...this.#attributes, ...attrs });
40
- }
41
-
42
- /**
43
- * @param {string} message The log message.
44
- * @param {object} [attrs={}] Additional per-call attributes merged with context attributes.
45
- */
46
- error(message, attrs = {}) {
47
- LogRegistry.error(message, { ...this.#attributes, ...attrs });
48
- }
49
- }
50
-
51
- export { LogContext };
1
+ export * from '../../common/utils/logging/LogContext.js';
@@ -1,33 +1 @@
1
- import { Log } from './Log.js';
2
- import { IncrementalIdGenerator } from '../generators/IncrementalIdGenerator.js';
3
-
4
- /**
5
- * LogFactory creates Log instances with automatically assigned incremental IDs.
6
- * @author darthjee
7
- */
8
- class LogFactory {
9
- #idGenerator;
10
-
11
- /**
12
- * Creates a new LogFactory instance.
13
- * @param {object} [params={}] - Construction parameters.
14
- * @param {IncrementalIdGenerator} [params.idGenerator] - The id generator to use.
15
- */
16
- constructor({ idGenerator = new IncrementalIdGenerator() } = {}) {
17
- this.#idGenerator = idGenerator;
18
- }
19
-
20
- /**
21
- * Builds a new Log entry with an auto-assigned id.
22
- * @param {string} level - The log level.
23
- * @param {string} message - The log message.
24
- * @param {object} [attributes={}] - Optional structured metadata for the log entry.
25
- * @returns {Log} The created log entry.
26
- */
27
- build(level, message, attributes = {}) {
28
- const id = this.#idGenerator.generate();
29
- return new Log(id, level, message, attributes);
30
- }
31
- }
32
-
33
- export { LogFactory };
1
+ export * from '../../common/utils/logging/LogFactory.js';
@@ -1,34 +1 @@
1
- /**
2
- * Filters a list of log entries based on query options.
3
- * @author darthjee
4
- */
5
- class LogFilter {
6
- #logs;
7
-
8
- /**
9
- * @param {Array<import('./Log.js').Log>} logs - The full list of logs to filter (oldest first).
10
- */
11
- constructor(logs) {
12
- this.#logs = logs;
13
- }
14
-
15
- /**
16
- * Returns the filtered log list.
17
- * @param {object} [options={}] - Filter options.
18
- * @param {number|string} [options.lastId] - When provided, returns only logs newer than this ID.
19
- * Returns an empty array if the ID is not found.
20
- * @returns {Array<import('./Log.js').Log>} Filtered array of log entries.
21
- */
22
- filter({ lastId } = {}) {
23
- if (lastId === undefined) return this.#logs;
24
-
25
- const id = parseInt(lastId, 10);
26
- const index = this.#logs.findIndex(log => log.id === id);
27
-
28
- if (index === -1) return [];
29
-
30
- return this.#logs.slice(index + 1);
31
- }
32
- }
33
-
34
- export { LogFilter };
1
+ export * from '../../common/utils/logging/LogFilter.js';