@kmmao/happy-agent 0.7.0 → 0.7.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/index.d.cts CHANGED
@@ -45,6 +45,27 @@ declare const MachineMetadataSchema: z.ZodObject<{
45
45
  happyLibDir: z.ZodString;
46
46
  }, z.core.$strip>;
47
47
  type MachineMetadata = z.infer<typeof MachineMetadataSchema>;
48
+ declare const TailscaleInfoSchema: z.ZodObject<{
49
+ status: z.ZodEnum<{
50
+ connected: "connected";
51
+ disconnected: "disconnected";
52
+ "not-installed": "not-installed";
53
+ }>;
54
+ ipv4: z.ZodOptional<z.ZodString>;
55
+ ipv6: z.ZodOptional<z.ZodString>;
56
+ hostname: z.ZodOptional<z.ZodString>;
57
+ tailnetName: z.ZodOptional<z.ZodString>;
58
+ version: z.ZodOptional<z.ZodString>;
59
+ serves: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ port: z.ZodNumber;
61
+ path: z.ZodOptional<z.ZodString>;
62
+ protocol: z.ZodString;
63
+ target: z.ZodString;
64
+ funnel: z.ZodBoolean;
65
+ hostname: z.ZodString;
66
+ }, z.core.$strip>>>;
67
+ }, z.core.$strip>;
68
+ type TailscaleInfo = z.infer<typeof TailscaleInfoSchema>;
48
69
  declare const TunnelEntrySchema: z.ZodObject<{
49
70
  provider: z.ZodString;
50
71
  localPort: z.ZodNumber;
@@ -384,8 +405,8 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
384
405
  }, z$1.core.$strip>>>;
385
406
  modelMappings: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
386
407
  defaultSessionType: z$1.ZodOptional<z$1.ZodEnum<{
387
- simple: "simple";
388
408
  worktree: "worktree";
409
+ simple: "simple";
389
410
  }>>;
390
411
  defaultPermissionMode: z$1.ZodOptional<z$1.ZodEnum<{
391
412
  default: "default";
@@ -640,30 +661,6 @@ declare class SessionClient extends EventEmitter {
640
661
  private setupSocketListeners;
641
662
  }
642
663
 
643
- /**
644
- * Tailscale detection utility for happy-agent.
645
- *
646
- * Adapted from happy-cli/src/utils/tailscale.ts — keep in sync.
647
- */
648
- type TailscaleStatus = "connected" | "disconnected" | "not-installed";
649
- type TailscaleServeEntry = {
650
- port: number;
651
- path: string;
652
- protocol: string;
653
- target: string;
654
- funnel: boolean;
655
- hostname: string;
656
- };
657
- type TailscaleInfo = {
658
- status: TailscaleStatus;
659
- ipv4?: string;
660
- ipv6?: string;
661
- hostname?: string;
662
- tailnetName?: string;
663
- version?: string;
664
- serves?: TailscaleServeEntry[];
665
- };
666
-
667
664
  /**
668
665
  * Tunnel Provider abstraction — unified interface for all tunnel backends.
669
666
  *
package/dist/index.d.mts CHANGED
@@ -45,6 +45,27 @@ declare const MachineMetadataSchema: z.ZodObject<{
45
45
  happyLibDir: z.ZodString;
46
46
  }, z.core.$strip>;
47
47
  type MachineMetadata = z.infer<typeof MachineMetadataSchema>;
48
+ declare const TailscaleInfoSchema: z.ZodObject<{
49
+ status: z.ZodEnum<{
50
+ connected: "connected";
51
+ disconnected: "disconnected";
52
+ "not-installed": "not-installed";
53
+ }>;
54
+ ipv4: z.ZodOptional<z.ZodString>;
55
+ ipv6: z.ZodOptional<z.ZodString>;
56
+ hostname: z.ZodOptional<z.ZodString>;
57
+ tailnetName: z.ZodOptional<z.ZodString>;
58
+ version: z.ZodOptional<z.ZodString>;
59
+ serves: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ port: z.ZodNumber;
61
+ path: z.ZodOptional<z.ZodString>;
62
+ protocol: z.ZodString;
63
+ target: z.ZodString;
64
+ funnel: z.ZodBoolean;
65
+ hostname: z.ZodString;
66
+ }, z.core.$strip>>>;
67
+ }, z.core.$strip>;
68
+ type TailscaleInfo = z.infer<typeof TailscaleInfoSchema>;
48
69
  declare const TunnelEntrySchema: z.ZodObject<{
49
70
  provider: z.ZodString;
50
71
  localPort: z.ZodNumber;
@@ -384,8 +405,8 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
384
405
  }, z$1.core.$strip>>>;
385
406
  modelMappings: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
386
407
  defaultSessionType: z$1.ZodOptional<z$1.ZodEnum<{
387
- simple: "simple";
388
408
  worktree: "worktree";
409
+ simple: "simple";
389
410
  }>>;
390
411
  defaultPermissionMode: z$1.ZodOptional<z$1.ZodEnum<{
391
412
  default: "default";
@@ -640,30 +661,6 @@ declare class SessionClient extends EventEmitter {
640
661
  private setupSocketListeners;
641
662
  }
642
663
 
643
- /**
644
- * Tailscale detection utility for happy-agent.
645
- *
646
- * Adapted from happy-cli/src/utils/tailscale.ts — keep in sync.
647
- */
648
- type TailscaleStatus = "connected" | "disconnected" | "not-installed";
649
- type TailscaleServeEntry = {
650
- port: number;
651
- path: string;
652
- protocol: string;
653
- target: string;
654
- funnel: boolean;
655
- hostname: string;
656
- };
657
- type TailscaleInfo = {
658
- status: TailscaleStatus;
659
- ipv4?: string;
660
- ipv6?: string;
661
- hostname?: string;
662
- tailnetName?: string;
663
- version?: string;
664
- serves?: TailscaleServeEntry[];
665
- };
666
-
667
664
  /**
668
665
  * Tunnel Provider abstraction — unified interface for all tunnel backends.
669
666
  *