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/bin/happy +2 -3
- package/bin/happy.cmd +1 -1
- package/dist/index.cjs +440 -297
- package/dist/index.mjs +442 -299
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +7 -2
- package/dist/lib.d.mts +7 -2
- package/dist/lib.mjs +1 -1
- package/dist/types-Cg4664gs.cjs +879 -0
- package/dist/types-DD9P_5rj.mjs +868 -0
- package/package.json +3 -3
- package/scripts/claudeInteractiveLaunch.cjs +72 -13
package/dist/lib.cjs
CHANGED
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-
|
|
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';
|