@hydra-acp/cli 0.1.95 → 0.1.97

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
@@ -2614,6 +2614,7 @@ declare const SessionRecord: z.ZodObject<{
2614
2614
  description?: string | undefined;
2615
2615
  }>, "many">>;
2616
2616
  pendingHistorySync: z.ZodOptional<z.ZodBoolean>;
2617
+ pendingAgentSwap: z.ZodOptional<z.ZodString>;
2617
2618
  parentSessionId: z.ZodOptional<z.ZodString>;
2618
2619
  forkedFromSessionId: z.ZodOptional<z.ZodString>;
2619
2620
  forkedFromMessageId: z.ZodOptional<z.ZodString>;
@@ -2725,6 +2726,7 @@ declare const SessionRecord: z.ZodObject<{
2725
2726
  description?: string | undefined;
2726
2727
  }[] | undefined;
2727
2728
  pendingHistorySync?: boolean | undefined;
2729
+ pendingAgentSwap?: string | undefined;
2728
2730
  forwardedEnv?: Record<string, string> | undefined;
2729
2731
  attentionFlags?: {
2730
2732
  source: string;
@@ -2808,6 +2810,7 @@ declare const SessionRecord: z.ZodObject<{
2808
2810
  description?: string | undefined;
2809
2811
  }[] | undefined;
2810
2812
  pendingHistorySync?: boolean | undefined;
2813
+ pendingAgentSwap?: string | undefined;
2811
2814
  forwardedEnv?: Record<string, string> | undefined;
2812
2815
  attentionFlags?: {
2813
2816
  source: string;
@@ -2900,8 +2903,11 @@ interface SessionInit {
2900
2903
  agentModels?: AdvertisedModel[];
2901
2904
  firstPromptSeeded?: boolean;
2902
2905
  scheduleSynopsis?: () => void;
2903
- scheduleCompaction?: () => void;
2906
+ scheduleCompaction?: (opts?: {
2907
+ targetAgentId?: string;
2908
+ }) => void;
2904
2909
  getCompactionState?: () => Promise<CompactionState | undefined>;
2910
+ getPendingAgentSwap?: () => Promise<string | undefined>;
2905
2911
  createdAt?: number;
2906
2912
  transformChain?: TransformerRef[];
2907
2913
  idleEventTimeoutMs?: number;
@@ -2989,6 +2995,7 @@ declare class Session {
2989
2995
  private scheduleSynopsisHook?;
2990
2996
  private scheduleCompactionHook?;
2991
2997
  private getCompactionStateHook?;
2998
+ private getPendingAgentSwapHook?;
2992
2999
  private _liveCompactionPhase;
2993
3000
  private broadcastHandlers;
2994
3001
  private lastCancelAt;
@@ -3073,7 +3080,9 @@ declare class Session {
3073
3080
  artifact: SessionSynopsis;
3074
3081
  title?: string;
3075
3082
  tailK: number;
3083
+ tailFloor?: number;
3076
3084
  summarizedThroughEntry?: number;
3085
+ newAgentId?: string;
3077
3086
  }): Promise<void>;
3078
3087
  rollbackToUpstream(opts: {
3079
3088
  previousUpstreamSessionId: string;
@@ -3187,6 +3196,7 @@ declare class Session {
3187
3196
  setAgent(newAgentId: string): Promise<unknown>;
3188
3197
  private runAgentCommand;
3189
3198
  private runAgentCommandInline;
3199
+ private runAgentStatusCommandInline;
3190
3200
  private runKillCommand;
3191
3201
  private runRestartCommand;
3192
3202
  private runRestartCommandInline;
@@ -3201,8 +3211,9 @@ declare class Session {
3201
3211
  private respawnAgent;
3202
3212
  private buildSwitchTranscript;
3203
3213
  seedFromImport(): Promise<void>;
3204
- seedFromFork(synopsis: SessionSynopsis): Promise<void>;
3214
+ seedFromFork(synopsis?: SessionSynopsis): Promise<void>;
3205
3215
  private broadcastAgentSwitch;
3216
+ broadcastPendingAgentSwap(targetAgentId: string | null): void;
3206
3217
  hasStreamBuffer(): boolean;
3207
3218
  get streamPath(): string | undefined;
3208
3219
  openStream(opts: {
@@ -3780,9 +3791,9 @@ declare class SessionManager {
3780
3791
  private compactionTailK;
3781
3792
  private agentCatalog;
3782
3793
  constructor(registry: Registry, spawner?: AgentSpawner, store?: SessionStore, options?: SessionManagerOptions);
3783
- private dispatchCompactionSwap;
3794
+ private dispatchSynthesisSwap;
3784
3795
  private onIdleAttemptSwap;
3785
- private performCompactionSwap;
3796
+ private performSynthesisSwap;
3786
3797
  private refreshAgentCatalog;
3787
3798
  create(params: CreateSessionParams): Promise<Session>;
3788
3799
  resurrect(params: ResurrectParams): Promise<Session>;
@@ -3872,16 +3883,20 @@ declare class SessionManager {
3872
3883
  flushSynopsis(timeoutMs: number): Promise<void>;
3873
3884
  shutdownSynopsis(): Promise<void>;
3874
3885
  scheduleSynopsis(sessionId: string): void;
3875
- scheduleCompaction(sessionId: string): void;
3886
+ scheduleCompaction(sessionId: string, opts?: {
3887
+ targetAgentId?: string;
3888
+ }): void;
3876
3889
  getCompactionInFlight(): boolean;
3890
+ getPendingAgentSwap(sessionId: string): Promise<string | undefined>;
3877
3891
  getCompactionState(sessionId: string): Promise<CompactionState | undefined>;
3878
3892
  getRollbackBreadcrumb(sessionId: string): Promise<RollbackBreadcrumb | undefined>;
3879
- private broadcastHydraCompaction;
3893
+ private emitSwapPhase;
3880
3894
  getSummarizedThroughEntry(sessionId: string): Promise<number | undefined>;
3881
3895
  flushMetaWrites(): Promise<void>;
3882
3896
  flushHistoryWrites(): Promise<void>;
3883
3897
  reconcilePermissionFlags(): Promise<void>;
3884
3898
  resumePendingCompactions(): Promise<void>;
3899
+ resumePendingAgentSwaps(): Promise<void>;
3885
3900
  resurrectPendingQueues(): Promise<void>;
3886
3901
  }
3887
3902