@sprucelabs/spruce-skill-utils 33.3.0 → 33.4.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.
@@ -10,7 +10,6 @@ export declare class Logger implements Log {
10
10
  private static history;
11
11
  private static historyLimit;
12
12
  constructor(prefix?: string | undefined, options?: LogOptions);
13
- static startTrackingHistory(limit: number): void;
14
13
  info(...args: LoggableType[]): string;
15
14
  warn(...args: LoggableType[]): string;
16
15
  error(...args: LoggableType[]): string;
@@ -41,6 +40,10 @@ export declare class Logger implements Log {
41
40
  private get shouldLogTime();
42
41
  private formatArg;
43
42
  protected isMainModule(): boolean;
43
+ static startTrackingHistory(limit: number): void;
44
+ static stopTrackingHistory(): void;
45
+ static getIsTrackingHistory(): boolean;
46
+ static getHistoryLimit(): number;
44
47
  }
45
48
  export default function buildLog(prefix?: string | undefined, options?: LogOptions): Log;
46
49
  export declare const testLog: Log;
@@ -17,9 +17,6 @@ export class Logger {
17
17
  const isInteractive = (_c = (_b = (_a = getProcess()) === null || _a === void 0 ? void 0 : _a.stdout) === null || _b === void 0 ? void 0 : _b.isTTY) !== null && _c !== void 0 ? _c : false;
18
18
  this.shouldUseColors = useColors !== false && isInteractive;
19
19
  }
20
- static startTrackingHistory(limit) {
21
- this.historyLimit = limit;
22
- }
23
20
  info(...args) {
24
21
  return this.write(this.resolveChalk('green', this.colors.info), args, 'INFO');
25
22
  }
@@ -238,6 +235,18 @@ export class Logger {
238
235
  isMainModule() {
239
236
  return true;
240
237
  }
238
+ static startTrackingHistory(limit) {
239
+ this.historyLimit = limit;
240
+ }
241
+ static stopTrackingHistory() {
242
+ this.historyLimit = 0;
243
+ }
244
+ static getIsTrackingHistory() {
245
+ return this.historyLimit > 0;
246
+ }
247
+ static getHistoryLimit() {
248
+ return this.historyLimit;
249
+ }
241
250
  }
242
251
  Logger.history = [];
243
252
  Logger.historyLimit = 0;
@@ -10,7 +10,6 @@ export declare class Logger implements Log {
10
10
  private static history;
11
11
  private static historyLimit;
12
12
  constructor(prefix?: string | undefined, options?: LogOptions);
13
- static startTrackingHistory(limit: number): void;
14
13
  info(...args: LoggableType[]): string;
15
14
  warn(...args: LoggableType[]): string;
16
15
  error(...args: LoggableType[]): string;
@@ -41,6 +40,10 @@ export declare class Logger implements Log {
41
40
  private get shouldLogTime();
42
41
  private formatArg;
43
42
  protected isMainModule(): boolean;
43
+ static startTrackingHistory(limit: number): void;
44
+ static stopTrackingHistory(): void;
45
+ static getIsTrackingHistory(): boolean;
46
+ static getHistoryLimit(): number;
44
47
  }
45
48
  export default function buildLog(prefix?: string | undefined, options?: LogOptions): Log;
46
49
  export declare const testLog: Log;
@@ -23,9 +23,6 @@ class Logger {
23
23
  const isInteractive = getProcess()?.stdout?.isTTY ?? false;
24
24
  this.shouldUseColors = useColors !== false && isInteractive;
25
25
  }
26
- static startTrackingHistory(limit) {
27
- this.historyLimit = limit;
28
- }
29
26
  info(...args) {
30
27
  return this.write(this.resolveChalk('green', this.colors.info), args, 'INFO');
31
28
  }
@@ -245,6 +242,18 @@ class Logger {
245
242
  isMainModule() {
246
243
  return true;
247
244
  }
245
+ static startTrackingHistory(limit) {
246
+ this.historyLimit = limit;
247
+ }
248
+ static stopTrackingHistory() {
249
+ this.historyLimit = 0;
250
+ }
251
+ static getIsTrackingHistory() {
252
+ return this.historyLimit > 0;
253
+ }
254
+ static getHistoryLimit() {
255
+ return this.historyLimit;
256
+ }
248
257
  }
249
258
  exports.Logger = Logger;
250
259
  Logger.history = [];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "33.3.0",
6
+ "version": "33.4.0",
7
7
  "skill": {
8
8
  "namespace": "skill-utils",
9
9
  "upgradeIgnoreList": [