happy-coder 0.2.2 → 0.2.3-beta.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.
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var types = require('./types-CkPUFpfr.cjs');
3
+ var types = require('./types-DXK5YldG.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
package/dist/lib.d.cts CHANGED
@@ -63,6 +63,7 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
63
63
  content: z.ZodUnion<[z.ZodString, z.ZodAny]>;
64
64
  }, z.ZodTypeAny, "passthrough">>;
65
65
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
66
+ uuid: z.ZodString;
66
67
  type: z.ZodLiteral<"assistant">;
67
68
  message: z.ZodObject<{
68
69
  usage: z.ZodOptional<z.ZodObject<{
@@ -129,6 +130,7 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
129
130
  content: z.ZodAny;
130
131
  }, z.ZodTypeAny, "passthrough">>;
131
132
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
133
+ uuid: z.ZodString;
132
134
  type: z.ZodLiteral<"assistant">;
133
135
  message: z.ZodObject<{
134
136
  usage: z.ZodOptional<z.ZodObject<{
@@ -195,6 +197,7 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
195
197
  content: z.ZodAny;
196
198
  }, z.ZodTypeAny, "passthrough">>;
197
199
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
200
+ uuid: z.ZodString;
198
201
  type: z.ZodLiteral<"assistant">;
199
202
  message: z.ZodObject<{
200
203
  usage: z.ZodOptional<z.ZodObject<{
@@ -404,7 +407,7 @@ type RpcHandler<T = any, R = any> = (data: T) => R | Promise<R>;
404
407
  declare class ApiSessionClient extends EventEmitter {
405
408
  private readonly token;
406
409
  private readonly secret;
407
- private readonly sessionId;
410
+ readonly sessionId: string;
408
411
  private metadata;
409
412
  private metadataVersion;
410
413
  private agentState;
@@ -495,7 +498,7 @@ declare class PushNotificationClient {
495
498
  * @param body - Notification body
496
499
  * @param data - Additional data to send with the notification
497
500
  */
498
- sendToAllDevices(title: string, body: string, data?: Record<string, any>): Promise<void>;
501
+ sendToAllDevices(title: string, body: string, data?: Record<string, any>): void;
499
502
  }
500
503
 
501
504
  declare class ApiClient {
@@ -538,7 +541,6 @@ declare class Logger {
538
541
  debugLargeJson(message: string, object: unknown, maxStringLength?: number, maxArrayLength?: number): void;
539
542
  info(message: string, ...args: unknown[]): void;
540
543
  infoDeveloper(message: string, ...args: unknown[]): void;
541
- daemonDebug(message: string, ...args: unknown[]): void;
542
544
  private logToConsole;
543
545
  private logToFile;
544
546
  }
@@ -560,10 +562,10 @@ declare class Configuration {
560
562
  readonly daemonLogsDir: string;
561
563
  readonly settingsFile: string;
562
564
  readonly privateKeyFile: string;
563
- readonly daemonPidFile: string;
564
- constructor(location: 'global' | 'local' | string, serverUrl?: string);
565
+ readonly daemonMetadataFile: string;
566
+ constructor(location: 'global' | 'local' | string);
565
567
  }
566
568
  declare let configuration: Configuration;
567
- declare function initializeConfiguration(location: 'global' | 'local' | string, serverUrl?: string): void;
569
+ declare function initializeConfiguration(location: 'global' | 'local' | string): void;
568
570
 
569
571
  export { ApiClient, ApiSessionClient, type RawJSONLines, RawJSONLinesSchema, configuration, initLoggerWithGlobalConfiguration, initializeConfiguration, logger };
package/dist/lib.d.mts CHANGED
@@ -63,6 +63,7 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
63
63
  content: z.ZodUnion<[z.ZodString, z.ZodAny]>;
64
64
  }, z.ZodTypeAny, "passthrough">>;
65
65
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
66
+ uuid: z.ZodString;
66
67
  type: z.ZodLiteral<"assistant">;
67
68
  message: z.ZodObject<{
68
69
  usage: z.ZodOptional<z.ZodObject<{
@@ -129,6 +130,7 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
129
130
  content: z.ZodAny;
130
131
  }, z.ZodTypeAny, "passthrough">>;
131
132
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
133
+ uuid: z.ZodString;
132
134
  type: z.ZodLiteral<"assistant">;
133
135
  message: z.ZodObject<{
134
136
  usage: z.ZodOptional<z.ZodObject<{
@@ -195,6 +197,7 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
195
197
  content: z.ZodAny;
196
198
  }, z.ZodTypeAny, "passthrough">>;
197
199
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
200
+ uuid: z.ZodString;
198
201
  type: z.ZodLiteral<"assistant">;
199
202
  message: z.ZodObject<{
200
203
  usage: z.ZodOptional<z.ZodObject<{
@@ -404,7 +407,7 @@ type RpcHandler<T = any, R = any> = (data: T) => R | Promise<R>;
404
407
  declare class ApiSessionClient extends EventEmitter {
405
408
  private readonly token;
406
409
  private readonly secret;
407
- private readonly sessionId;
410
+ readonly sessionId: string;
408
411
  private metadata;
409
412
  private metadataVersion;
410
413
  private agentState;
@@ -495,7 +498,7 @@ declare class PushNotificationClient {
495
498
  * @param body - Notification body
496
499
  * @param data - Additional data to send with the notification
497
500
  */
498
- sendToAllDevices(title: string, body: string, data?: Record<string, any>): Promise<void>;
501
+ sendToAllDevices(title: string, body: string, data?: Record<string, any>): void;
499
502
  }
500
503
 
501
504
  declare class ApiClient {
@@ -538,7 +541,6 @@ declare class Logger {
538
541
  debugLargeJson(message: string, object: unknown, maxStringLength?: number, maxArrayLength?: number): void;
539
542
  info(message: string, ...args: unknown[]): void;
540
543
  infoDeveloper(message: string, ...args: unknown[]): void;
541
- daemonDebug(message: string, ...args: unknown[]): void;
542
544
  private logToConsole;
543
545
  private logToFile;
544
546
  }
@@ -560,10 +562,10 @@ declare class Configuration {
560
562
  readonly daemonLogsDir: string;
561
563
  readonly settingsFile: string;
562
564
  readonly privateKeyFile: string;
563
- readonly daemonPidFile: string;
564
- constructor(location: 'global' | 'local' | string, serverUrl?: string);
565
+ readonly daemonMetadataFile: string;
566
+ constructor(location: 'global' | 'local' | string);
565
567
  }
566
568
  declare let configuration: Configuration;
567
- declare function initializeConfiguration(location: 'global' | 'local' | string, serverUrl?: string): void;
569
+ declare function initializeConfiguration(location: 'global' | 'local' | string): void;
568
570
 
569
571
  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-DNu8okOb.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-BX4xv8Ty.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';