@hydra-acp/cli 0.1.92 → 0.1.94

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.ts CHANGED
@@ -1814,15 +1814,16 @@ declare const SessionListEntry: z.ZodObject<{
1814
1814
  priority: z.ZodOptional<z.ZodNumber>;
1815
1815
  updatedAt: z.ZodString;
1816
1816
  attachedClients: z.ZodNumber;
1817
- status: z.ZodDefault<z.ZodEnum<["live", "cold"]>>;
1817
+ status: z.ZodDefault<z.ZodEnum<["warm", "cold"]>>;
1818
1818
  busy: z.ZodDefault<z.ZodBoolean>;
1819
1819
  awaitingInput: z.ZodDefault<z.ZodBoolean>;
1820
1820
  compactionState: z.ZodOptional<z.ZodAny>;
1821
+ forkSynthesisState: z.ZodOptional<z.ZodEnum<["running", "failed"]>>;
1821
1822
  _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1822
1823
  }, "strip", z.ZodTypeAny, {
1823
1824
  sessionId: string;
1824
1825
  cwd: string;
1825
- status: "live" | "cold";
1826
+ status: "warm" | "cold";
1826
1827
  updatedAt: string;
1827
1828
  attachedClients: number;
1828
1829
  busy: boolean;
@@ -1850,12 +1851,13 @@ declare const SessionListEntry: z.ZodObject<{
1850
1851
  interactive?: boolean | undefined;
1851
1852
  priority?: number | undefined;
1852
1853
  compactionState?: any;
1854
+ forkSynthesisState?: "running" | "failed" | undefined;
1853
1855
  }, {
1854
1856
  sessionId: string;
1855
1857
  cwd: string;
1856
1858
  updatedAt: string;
1857
1859
  attachedClients: number;
1858
- status?: "live" | "cold" | undefined;
1860
+ status?: "warm" | "cold" | undefined;
1859
1861
  title?: string | undefined;
1860
1862
  _meta?: Record<string, unknown> | undefined;
1861
1863
  upstreamSessionId?: string | undefined;
@@ -1881,6 +1883,7 @@ declare const SessionListEntry: z.ZodObject<{
1881
1883
  busy?: boolean | undefined;
1882
1884
  awaitingInput?: boolean | undefined;
1883
1885
  compactionState?: any;
1886
+ forkSynthesisState?: "running" | "failed" | undefined;
1884
1887
  }>;
1885
1888
  type SessionListEntry = z.infer<typeof SessionListEntry>;
1886
1889
  declare const SessionListResult: z.ZodObject<{
@@ -2018,6 +2021,7 @@ interface AuthMethod {
2018
2021
  id: string;
2019
2022
  description: string;
2020
2023
  type?: "agent" | "terminal";
2024
+ args?: string[];
2021
2025
  name?: string;
2022
2026
  _meta?: Record<string, unknown>;
2023
2027
  }
@@ -2114,6 +2118,7 @@ declare class AgentInstance {
2114
2118
  private constructor();
2115
2119
  private writeLog;
2116
2120
  private formatFailure;
2121
+ stderrTailText(): string;
2117
2122
  static spawn(opts: AgentInstanceOptions): AgentInstance;
2118
2123
  onExit(handler: (code: number | null, signal: NodeJS.Signals | null) => void): void;
2119
2124
  isAlive(): boolean;
@@ -2612,6 +2617,7 @@ declare const SessionRecord: z.ZodObject<{
2612
2617
  parentSessionId: z.ZodOptional<z.ZodString>;
2613
2618
  forkedFromSessionId: z.ZodOptional<z.ZodString>;
2614
2619
  forkedFromMessageId: z.ZodOptional<z.ZodString>;
2620
+ forkSynthesisState: z.ZodOptional<z.ZodEnum<["running", "failed"]>>;
2615
2621
  originatingClient: z.ZodOptional<z.ZodObject<{
2616
2622
  name: z.ZodString;
2617
2623
  version: z.ZodOptional<z.ZodString>;
@@ -2695,6 +2701,7 @@ declare const SessionRecord: z.ZodObject<{
2695
2701
  upstreamSessionId: string;
2696
2702
  } | undefined;
2697
2703
  } | undefined;
2704
+ forkSynthesisState?: "running" | "failed" | undefined;
2698
2705
  currentMode?: string | undefined;
2699
2706
  lineageId?: string | undefined;
2700
2707
  importedFromSessionId?: string | undefined;
@@ -2777,6 +2784,7 @@ declare const SessionRecord: z.ZodObject<{
2777
2784
  upstreamSessionId: string;
2778
2785
  } | undefined;
2779
2786
  } | undefined;
2787
+ forkSynthesisState?: "running" | "failed" | undefined;
2780
2788
  currentMode?: string | undefined;
2781
2789
  lineageId?: string | undefined;
2782
2790
  importedFromSessionId?: string | undefined;
@@ -2900,6 +2908,7 @@ interface SessionInit {
2900
2908
  parentSessionId?: string;
2901
2909
  forkedFromSessionId?: string;
2902
2910
  forkedFromMessageId?: string;
2911
+ forkSynthesisState?: "running" | "failed";
2903
2912
  originatingClient?: {
2904
2913
  name: string;
2905
2914
  version?: string;
@@ -2944,6 +2953,7 @@ declare class Session {
2944
2953
  readonly parentSessionId: string | undefined;
2945
2954
  readonly forkedFromSessionId: string | undefined;
2946
2955
  readonly forkedFromMessageId: string | undefined;
2956
+ forkSynthesisState: "running" | "failed" | undefined;
2947
2957
  readonly originatingClient: {
2948
2958
  name: string;
2949
2959
  version?: string;
@@ -3178,6 +3188,7 @@ declare class Session {
3178
3188
  private respawnAgent;
3179
3189
  private buildSwitchTranscript;
3180
3190
  seedFromImport(): Promise<void>;
3191
+ seedFromFork(synopsis: SessionSynopsis): Promise<void>;
3181
3192
  private broadcastAgentSwitch;
3182
3193
  hasStreamBuffer(): boolean;
3183
3194
  get streamPath(): string | undefined;
@@ -3690,6 +3701,7 @@ interface ResurrectParams {
3690
3701
  priority?: number;
3691
3702
  forkedFromSessionId?: string;
3692
3703
  forkedFromMessageId?: string;
3704
+ forkSynthesisState?: "running" | "failed";
3693
3705
  mcpServers?: unknown[];
3694
3706
  forwardedEnv?: Record<string, string>;
3695
3707
  compactionState?: CompactionState;
@@ -3743,6 +3755,7 @@ declare class SessionManager {
3743
3755
  private extensionCommands?;
3744
3756
  private defaultCwd;
3745
3757
  private synopsisCoordinator;
3758
+ private pendingDeletions;
3746
3759
  private compactionDeferrals;
3747
3760
  private rollbackLocks;
3748
3761
  private compactionTailK;
@@ -3814,6 +3827,7 @@ declare class SessionManager {
3814
3827
  cwd?: string;
3815
3828
  agentId?: string;
3816
3829
  title?: string;
3830
+ mode?: "verbatim" | "synthesis";
3817
3831
  }): Promise<{
3818
3832
  sessionId: string;
3819
3833
  forkedFromSessionId: string;
@@ -3821,6 +3835,8 @@ declare class SessionManager {
3821
3835
  }>;
3822
3836
  private writeImportedRecord;
3823
3837
  deleteRecord(sessionId: string, reason?: "user" | "expired"): Promise<boolean>;
3838
+ waitForDeletion(sessionId: string): Promise<void>;
3839
+ isTombstoned(agentId: string, upstreamSessionId: string): Promise<boolean>;
3824
3840
  hasRecord(sessionId: string): Promise<boolean>;
3825
3841
  setPriority(sessionId: string, priority: number | undefined): Promise<boolean>;
3826
3842
  private persistPriority;