happy-coder 0.1.12 → 0.1.14

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/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var types = require('./types-hotUTaWz.cjs');
3
+ var types = require('./types-Cg4664gs.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
package/dist/lib.d.cts CHANGED
@@ -362,6 +362,7 @@ type Metadata = {
362
362
  text: string;
363
363
  updatedAt: number;
364
364
  };
365
+ machineId?: string;
365
366
  };
366
367
  type AgentState = {
367
368
  controlledByUser?: boolean | null | undefined;
@@ -519,6 +520,7 @@ declare class Logger {
519
520
  debugLargeJson(message: string, object: unknown, maxStringLength?: number, maxArrayLength?: number): void;
520
521
  info(message: string, ...args: unknown[]): void;
521
522
  infoDeveloper(message: string, ...args: unknown[]): void;
523
+ daemonDebug(message: string, ...args: unknown[]): void;
522
524
  private logToConsole;
523
525
  private logToFile;
524
526
  }
@@ -533,14 +535,17 @@ declare function initLoggerWithGlobalConfiguration(): void;
533
535
  */
534
536
  declare class Configuration {
535
537
  readonly serverUrl: string;
538
+ readonly installationLocation: 'global' | 'local';
539
+ readonly isDaemonProcess: boolean;
536
540
  readonly happyDir: string;
537
541
  readonly logsDir: string;
542
+ readonly daemonLogsDir: string;
538
543
  readonly settingsFile: string;
539
544
  readonly privateKeyFile: string;
540
545
  readonly daemonPidFile: string;
541
- constructor(location: 'global' | 'local' | string);
546
+ constructor(location: 'global' | 'local' | string, serverUrl?: string);
542
547
  }
543
548
  declare let configuration: Configuration;
544
- declare function initializeConfiguration(location: 'global' | 'local' | string): void;
549
+ declare function initializeConfiguration(location: 'global' | 'local' | string, serverUrl?: string): void;
545
550
 
546
551
  export { ApiClient, ApiSessionClient, type RawJSONLines, RawJSONLinesSchema, configuration, initLoggerWithGlobalConfiguration, initializeConfiguration, logger };
package/dist/lib.d.mts CHANGED
@@ -362,6 +362,7 @@ type Metadata = {
362
362
  text: string;
363
363
  updatedAt: number;
364
364
  };
365
+ machineId?: string;
365
366
  };
366
367
  type AgentState = {
367
368
  controlledByUser?: boolean | null | undefined;
@@ -519,6 +520,7 @@ declare class Logger {
519
520
  debugLargeJson(message: string, object: unknown, maxStringLength?: number, maxArrayLength?: number): void;
520
521
  info(message: string, ...args: unknown[]): void;
521
522
  infoDeveloper(message: string, ...args: unknown[]): void;
523
+ daemonDebug(message: string, ...args: unknown[]): void;
522
524
  private logToConsole;
523
525
  private logToFile;
524
526
  }
@@ -533,14 +535,17 @@ declare function initLoggerWithGlobalConfiguration(): void;
533
535
  */
534
536
  declare class Configuration {
535
537
  readonly serverUrl: string;
538
+ readonly installationLocation: 'global' | 'local';
539
+ readonly isDaemonProcess: boolean;
536
540
  readonly happyDir: string;
537
541
  readonly logsDir: string;
542
+ readonly daemonLogsDir: string;
538
543
  readonly settingsFile: string;
539
544
  readonly privateKeyFile: string;
540
545
  readonly daemonPidFile: string;
541
- constructor(location: 'global' | 'local' | string);
546
+ constructor(location: 'global' | 'local' | string, serverUrl?: string);
542
547
  }
543
548
  declare let configuration: Configuration;
544
- declare function initializeConfiguration(location: 'global' | 'local' | string): void;
549
+ declare function initializeConfiguration(location: 'global' | 'local' | string, serverUrl?: string): void;
545
550
 
546
551
  export { ApiClient, ApiSessionClient, type RawJSONLines, RawJSONLinesSchema, configuration, initLoggerWithGlobalConfiguration, initializeConfiguration, logger };
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, i as initLoggerWithGlobalConfiguration, b as initializeConfiguration, l as logger } from './types-D39L8JSd.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, i as initLoggerWithGlobalConfiguration, b as initializeConfiguration, l as logger } from './types-DD9P_5rj.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';