happy-coder 0.10.0-1 → 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.
- package/bin/happy-mcp.mjs +32 -0
- package/dist/codex/happyMcpStdioBridge.cjs +80 -0
- package/dist/codex/happyMcpStdioBridge.d.cts +2 -0
- package/dist/codex/happyMcpStdioBridge.d.mts +2 -0
- package/dist/codex/happyMcpStdioBridge.mjs +78 -0
- package/dist/index-DPVbp4Yx.mjs +6048 -0
- package/dist/index-tqOLc1Il.cjs +6056 -0
- package/dist/index.cjs +33 -6024
- package/dist/index.mjs +33 -6024
- package/dist/lib.cjs +2 -1
- package/dist/lib.d.cts +12 -2
- package/dist/lib.d.mts +12 -2
- package/dist/lib.mjs +2 -1
- package/dist/runCodex-BxLD6H6G.cjs +1155 -0
- package/dist/runCodex-C07HQlsW.mjs +1153 -0
- package/dist/{types-D9P2bndj.cjs → types-CsJGQvQ3.cjs} +145 -48
- package/dist/{types-BUXwivpV.mjs → types-xds_c-JJ.mjs} +109 -12
- package/package.json +21 -8
- package/scripts/ripgrep_launcher.cjs +2 -26
- package/scripts/unpack-tools.cjs +163 -0
- package/tools/archives/difftastic-LICENSE +21 -0
- package/tools/archives/difftastic-arm64-darwin.tar.gz +0 -0
- package/tools/archives/difftastic-arm64-linux.tar.gz +0 -0
- package/tools/archives/difftastic-x64-darwin.tar.gz +0 -0
- package/tools/archives/difftastic-x64-linux.tar.gz +0 -0
- package/tools/archives/difftastic-x64-win32.tar.gz +0 -0
- package/tools/archives/ripgrep-arm64-darwin.tar.gz +0 -0
- package/tools/archives/ripgrep-arm64-linux.tar.gz +0 -0
- package/tools/archives/ripgrep-x64-darwin.tar.gz +0 -0
- package/tools/archives/ripgrep-x64-linux.tar.gz +0 -0
- package/tools/archives/ripgrep-x64-win32.tar.gz +0 -0
- package/tools/licenses/difftastic-LICENSE +21 -0
- package/tools/licenses/ripgrep-LICENSE +3 -0
- package/tools/unpacked/difft +0 -0
- package/ripgrep/arm64-linux/rg +0 -0
- package/ripgrep/arm64-linux/ripgrep.node +0 -0
- package/ripgrep/x64-darwin/rg +0 -0
- package/ripgrep/x64-darwin/ripgrep.node +0 -0
- package/ripgrep/x64-linux/rg +0 -0
- package/ripgrep/x64-linux/ripgrep.node +0 -0
- package/ripgrep/x64-win32/rg.exe +0 -0
- package/ripgrep/x64-win32/ripgrep.node +0 -0
- /package/{ripgrep/COPYING → tools/archives/ripgrep-LICENSE} +0 -0
- /package/{ripgrep/arm64-darwin → tools/unpacked}/rg +0 -0
- /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-
|
|
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
|
|
677
|
-
happyHomeDir
|
|
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
|
|
677
|
-
happyHomeDir
|
|
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-
|
|
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';
|