@hydra-acp/cli 0.1.95 → 0.1.96

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;
@@ -3074,6 +3081,7 @@ declare class Session {
3074
3081
  title?: string;
3075
3082
  tailK: number;
3076
3083
  summarizedThroughEntry?: number;
3084
+ newAgentId?: string;
3077
3085
  }): Promise<void>;
3078
3086
  rollbackToUpstream(opts: {
3079
3087
  previousUpstreamSessionId: string;
@@ -3187,6 +3195,7 @@ declare class Session {
3187
3195
  setAgent(newAgentId: string): Promise<unknown>;
3188
3196
  private runAgentCommand;
3189
3197
  private runAgentCommandInline;
3198
+ private runAgentStatusCommandInline;
3190
3199
  private runKillCommand;
3191
3200
  private runRestartCommand;
3192
3201
  private runRestartCommandInline;
@@ -3203,6 +3212,7 @@ declare class Session {
3203
3212
  seedFromImport(): Promise<void>;
3204
3213
  seedFromFork(synopsis: SessionSynopsis): Promise<void>;
3205
3214
  private broadcastAgentSwitch;
3215
+ broadcastPendingAgentSwap(targetAgentId: string | null): void;
3206
3216
  hasStreamBuffer(): boolean;
3207
3217
  get streamPath(): string | undefined;
3208
3218
  openStream(opts: {
@@ -3780,9 +3790,9 @@ declare class SessionManager {
3780
3790
  private compactionTailK;
3781
3791
  private agentCatalog;
3782
3792
  constructor(registry: Registry, spawner?: AgentSpawner, store?: SessionStore, options?: SessionManagerOptions);
3783
- private dispatchCompactionSwap;
3793
+ private dispatchSynthesisSwap;
3784
3794
  private onIdleAttemptSwap;
3785
- private performCompactionSwap;
3795
+ private performSynthesisSwap;
3786
3796
  private refreshAgentCatalog;
3787
3797
  create(params: CreateSessionParams): Promise<Session>;
3788
3798
  resurrect(params: ResurrectParams): Promise<Session>;
@@ -3872,16 +3882,20 @@ declare class SessionManager {
3872
3882
  flushSynopsis(timeoutMs: number): Promise<void>;
3873
3883
  shutdownSynopsis(): Promise<void>;
3874
3884
  scheduleSynopsis(sessionId: string): void;
3875
- scheduleCompaction(sessionId: string): void;
3885
+ scheduleCompaction(sessionId: string, opts?: {
3886
+ targetAgentId?: string;
3887
+ }): void;
3876
3888
  getCompactionInFlight(): boolean;
3889
+ getPendingAgentSwap(sessionId: string): Promise<string | undefined>;
3877
3890
  getCompactionState(sessionId: string): Promise<CompactionState | undefined>;
3878
3891
  getRollbackBreadcrumb(sessionId: string): Promise<RollbackBreadcrumb | undefined>;
3879
- private broadcastHydraCompaction;
3892
+ private emitSwapPhase;
3880
3893
  getSummarizedThroughEntry(sessionId: string): Promise<number | undefined>;
3881
3894
  flushMetaWrites(): Promise<void>;
3882
3895
  flushHistoryWrites(): Promise<void>;
3883
3896
  reconcilePermissionFlags(): Promise<void>;
3884
3897
  resumePendingCompactions(): Promise<void>;
3898
+ resumePendingAgentSwaps(): Promise<void>;
3885
3899
  resurrectPendingQueues(): Promise<void>;
3886
3900
  }
3887
3901