happy-coder 0.10.0-2 → 0.10.0-3

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 (45) hide show
  1. package/bin/happy-mcp.mjs +32 -0
  2. package/dist/codex/happyMcpStdioBridge.cjs +80 -0
  3. package/dist/codex/happyMcpStdioBridge.d.cts +2 -0
  4. package/dist/codex/happyMcpStdioBridge.d.mts +2 -0
  5. package/dist/codex/happyMcpStdioBridge.mjs +78 -0
  6. package/dist/index-DPVbp4Yx.mjs +6048 -0
  7. package/dist/index-tqOLc1Il.cjs +6056 -0
  8. package/dist/index.cjs +33 -6024
  9. package/dist/index.mjs +33 -6024
  10. package/dist/lib.cjs +2 -1
  11. package/dist/lib.d.cts +12 -2
  12. package/dist/lib.d.mts +12 -2
  13. package/dist/lib.mjs +2 -1
  14. package/dist/runCodex-BxLD6H6G.cjs +1155 -0
  15. package/dist/runCodex-C07HQlsW.mjs +1153 -0
  16. package/dist/{types-WP9wteZE.cjs → types-CsJGQvQ3.cjs} +142 -45
  17. package/dist/{types-xfXKJHdM.mjs → types-xds_c-JJ.mjs} +106 -9
  18. package/package.json +18 -5
  19. package/scripts/ripgrep_launcher.cjs +2 -26
  20. package/scripts/unpack-tools.cjs +163 -0
  21. package/tools/archives/difftastic-LICENSE +21 -0
  22. package/tools/archives/difftastic-arm64-darwin.tar.gz +0 -0
  23. package/tools/archives/difftastic-arm64-linux.tar.gz +0 -0
  24. package/tools/archives/difftastic-x64-darwin.tar.gz +0 -0
  25. package/tools/archives/difftastic-x64-linux.tar.gz +0 -0
  26. package/tools/archives/difftastic-x64-win32.tar.gz +0 -0
  27. package/tools/archives/ripgrep-arm64-darwin.tar.gz +0 -0
  28. package/tools/archives/ripgrep-arm64-linux.tar.gz +0 -0
  29. package/tools/archives/ripgrep-x64-darwin.tar.gz +0 -0
  30. package/tools/archives/ripgrep-x64-linux.tar.gz +0 -0
  31. package/tools/archives/ripgrep-x64-win32.tar.gz +0 -0
  32. package/tools/licenses/difftastic-LICENSE +21 -0
  33. package/tools/licenses/ripgrep-LICENSE +3 -0
  34. package/tools/unpacked/difft +0 -0
  35. package/ripgrep/arm64-linux/rg +0 -0
  36. package/ripgrep/arm64-linux/ripgrep.node +0 -0
  37. package/ripgrep/x64-darwin/rg +0 -0
  38. package/ripgrep/x64-darwin/ripgrep.node +0 -0
  39. package/ripgrep/x64-linux/rg +0 -0
  40. package/ripgrep/x64-linux/ripgrep.node +0 -0
  41. package/ripgrep/x64-win32/rg.exe +0 -0
  42. package/ripgrep/x64-win32/ripgrep.node +0 -0
  43. /package/{ripgrep/COPYING → tools/archives/ripgrep-LICENSE} +0 -0
  44. /package/{ripgrep/arm64-darwin → tools/unpacked}/rg +0 -0
  45. /package/{ripgrep/arm64-darwin → tools/unpacked}/ripgrep.node +0 -0
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var types = require('./types-WP9wteZE.cjs');
3
+ var types = require('./types-CsJGQvQ3.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
@@ -19,6 +19,7 @@ require('fs/promises');
19
19
  require('crypto');
20
20
  require('path');
21
21
  require('url');
22
+ require('os');
22
23
  require('expo-server-sdk');
23
24
 
24
25
 
package/dist/lib.d.cts CHANGED
@@ -383,6 +383,7 @@ declare class ApiSessionClient extends EventEmitter {
383
383
  * @param body - Message body (can be MessageContent or raw content for agent messages)
384
384
  */
385
385
  sendClaudeSessionMessage(body: RawJSONLines): void;
386
+ sendCodexMessage(body: any): void;
386
387
  sendSessionEvent(event: {
387
388
  type: 'switch';
388
389
  mode: 'local' | 'remote';
@@ -489,18 +490,21 @@ declare const MachineMetadataSchema: z.ZodObject<{
489
490
  happyCliVersion: z.ZodString;
490
491
  homeDir: z.ZodString;
491
492
  happyHomeDir: z.ZodString;
493
+ happyLibDir: z.ZodString;
492
494
  }, "strip", z.ZodTypeAny, {
493
495
  host: string;
494
496
  platform: string;
495
497
  happyCliVersion: string;
496
498
  homeDir: string;
497
499
  happyHomeDir: string;
500
+ happyLibDir: string;
498
501
  }, {
499
502
  host: string;
500
503
  platform: string;
501
504
  happyCliVersion: string;
502
505
  homeDir: string;
503
506
  happyHomeDir: string;
507
+ happyLibDir: string;
504
508
  }>;
505
509
  type MachineMetadata = z.infer<typeof MachineMetadataSchema>;
506
510
  /**
@@ -673,8 +677,10 @@ type Metadata = {
673
677
  claudeSessionId?: string;
674
678
  tools?: string[];
675
679
  slashCommands?: string[];
676
- homeDir?: string;
677
- happyHomeDir?: string;
680
+ homeDir: string;
681
+ happyHomeDir: string;
682
+ happyLibDir: string;
683
+ happyToolsDir: string;
678
684
  startedFromDaemon?: boolean;
679
685
  hostPid?: number;
680
686
  startedBy?: 'daemon' | 'terminal';
@@ -682,6 +688,7 @@ type Metadata = {
682
688
  lifecycleStateSince?: number;
683
689
  archivedBy?: string;
684
690
  archiveReason?: string;
691
+ flavor?: string;
685
692
  };
686
693
  type AgentState = {
687
694
  controlledByUser?: boolean | null | undefined;
@@ -701,6 +708,7 @@ type AgentState = {
701
708
  status: 'canceled' | 'denied' | 'approved';
702
709
  reason?: string;
703
710
  mode?: PermissionMode;
711
+ decision?: 'approved' | 'approved_for_session' | 'denied' | 'abort';
704
712
  allowTools?: string[];
705
713
  };
706
714
  };
@@ -840,6 +848,8 @@ declare class Logger {
840
848
  debugLargeJson(message: string, object: unknown, maxStringLength?: number, maxArrayLength?: number): void;
841
849
  info(message: string, ...args: unknown[]): void;
842
850
  infoDeveloper(message: string, ...args: unknown[]): void;
851
+ warn(message: string, ...args: unknown[]): void;
852
+ getLogPath(): string;
843
853
  private logToConsole;
844
854
  private sendToRemoteServer;
845
855
  private logToFile;
package/dist/lib.d.mts CHANGED
@@ -383,6 +383,7 @@ declare class ApiSessionClient extends EventEmitter {
383
383
  * @param body - Message body (can be MessageContent or raw content for agent messages)
384
384
  */
385
385
  sendClaudeSessionMessage(body: RawJSONLines): void;
386
+ sendCodexMessage(body: any): void;
386
387
  sendSessionEvent(event: {
387
388
  type: 'switch';
388
389
  mode: 'local' | 'remote';
@@ -489,18 +490,21 @@ declare const MachineMetadataSchema: z.ZodObject<{
489
490
  happyCliVersion: z.ZodString;
490
491
  homeDir: z.ZodString;
491
492
  happyHomeDir: z.ZodString;
493
+ happyLibDir: z.ZodString;
492
494
  }, "strip", z.ZodTypeAny, {
493
495
  host: string;
494
496
  platform: string;
495
497
  happyCliVersion: string;
496
498
  homeDir: string;
497
499
  happyHomeDir: string;
500
+ happyLibDir: string;
498
501
  }, {
499
502
  host: string;
500
503
  platform: string;
501
504
  happyCliVersion: string;
502
505
  homeDir: string;
503
506
  happyHomeDir: string;
507
+ happyLibDir: string;
504
508
  }>;
505
509
  type MachineMetadata = z.infer<typeof MachineMetadataSchema>;
506
510
  /**
@@ -673,8 +677,10 @@ type Metadata = {
673
677
  claudeSessionId?: string;
674
678
  tools?: string[];
675
679
  slashCommands?: string[];
676
- homeDir?: string;
677
- happyHomeDir?: string;
680
+ homeDir: string;
681
+ happyHomeDir: string;
682
+ happyLibDir: string;
683
+ happyToolsDir: string;
678
684
  startedFromDaemon?: boolean;
679
685
  hostPid?: number;
680
686
  startedBy?: 'daemon' | 'terminal';
@@ -682,6 +688,7 @@ type Metadata = {
682
688
  lifecycleStateSince?: number;
683
689
  archivedBy?: string;
684
690
  archiveReason?: string;
691
+ flavor?: string;
685
692
  };
686
693
  type AgentState = {
687
694
  controlledByUser?: boolean | null | undefined;
@@ -701,6 +708,7 @@ type AgentState = {
701
708
  status: 'canceled' | 'denied' | 'approved';
702
709
  reason?: string;
703
710
  mode?: PermissionMode;
711
+ decision?: 'approved' | 'approved_for_session' | 'denied' | 'abort';
704
712
  allowTools?: string[];
705
713
  };
706
714
  };
@@ -840,6 +848,8 @@ declare class Logger {
840
848
  debugLargeJson(message: string, object: unknown, maxStringLength?: number, maxArrayLength?: number): void;
841
849
  info(message: string, ...args: unknown[]): void;
842
850
  infoDeveloper(message: string, ...args: unknown[]): void;
851
+ warn(message: string, ...args: unknown[]): void;
852
+ getLogPath(): string;
843
853
  private logToConsole;
844
854
  private sendToRemoteServer;
845
855
  private logToFile;
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-xfXKJHdM.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-xds_c-JJ.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';
@@ -17,4 +17,5 @@ import 'fs/promises';
17
17
  import 'crypto';
18
18
  import 'path';
19
19
  import 'url';
20
+ import 'os';
20
21
  import 'expo-server-sdk';