@hydra-acp/cli 0.1.74 → 0.1.75

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
@@ -1934,6 +1934,8 @@ interface AuthMethod {
1934
1934
  id: string;
1935
1935
  description: string;
1936
1936
  type?: "agent" | "terminal";
1937
+ name?: string;
1938
+ _meta?: Record<string, unknown>;
1937
1939
  }
1938
1940
  interface InitializeResult {
1939
1941
  protocolVersion: number;
@@ -2310,6 +2312,7 @@ interface SpawnReplacementAgentParams {
2310
2312
  agentId: string;
2311
2313
  cwd: string;
2312
2314
  agentArgs?: string[];
2315
+ forwardedEnv?: Record<string, string>;
2313
2316
  }
2314
2317
  interface SpawnReplacementAgentResult {
2315
2318
  agent: AgentInstance;
@@ -2367,6 +2370,7 @@ interface SessionInit {
2367
2370
  };
2368
2371
  interactive?: boolean;
2369
2372
  priority?: number;
2373
+ forwardedEnv?: Record<string, string>;
2370
2374
  listSessions?: () => Promise<{
2371
2375
  sessionId: string;
2372
2376
  title?: string;
@@ -2440,6 +2444,7 @@ declare class Session {
2440
2444
  private idleEventTimeoutMs;
2441
2445
  private lastRecordedAt;
2442
2446
  private spawnReplacementAgent;
2447
+ forwardedEnv: Record<string, string> | undefined;
2443
2448
  private listSessions;
2444
2449
  private logger;
2445
2450
  private transformChain;
@@ -2790,6 +2795,7 @@ declare const SessionRecord: z.ZodObject<{
2790
2795
  }>>;
2791
2796
  interactive: z.ZodOptional<z.ZodBoolean>;
2792
2797
  priority: z.ZodOptional<z.ZodNumber>;
2798
+ forwardedEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2793
2799
  createdAt: z.ZodString;
2794
2800
  updatedAt: z.ZodString;
2795
2801
  }, "strip", z.ZodTypeAny, {
@@ -2822,6 +2828,7 @@ declare const SessionRecord: z.ZodObject<{
2822
2828
  interactive?: boolean | undefined;
2823
2829
  priority?: number | undefined;
2824
2830
  currentMode?: string | undefined;
2831
+ forwardedEnv?: Record<string, string> | undefined;
2825
2832
  synopsis?: {
2826
2833
  outcome?: string | undefined;
2827
2834
  goal?: string | undefined;
@@ -2878,6 +2885,7 @@ declare const SessionRecord: z.ZodObject<{
2878
2885
  interactive?: boolean | undefined;
2879
2886
  priority?: number | undefined;
2880
2887
  currentMode?: string | undefined;
2888
+ forwardedEnv?: Record<string, string> | undefined;
2881
2889
  synopsis?: {
2882
2890
  outcome?: string | undefined;
2883
2891
  goal?: string | undefined;
@@ -3293,6 +3301,7 @@ interface CreateSessionParams {
3293
3301
  version?: string;
3294
3302
  };
3295
3303
  interactive?: boolean;
3304
+ forwardedEnv?: Record<string, string>;
3296
3305
  }
3297
3306
  interface ResurrectParams {
3298
3307
  hydraSessionId: string;
@@ -3321,6 +3330,7 @@ interface ResurrectParams {
3321
3330
  forkedFromSessionId?: string;
3322
3331
  forkedFromMessageId?: string;
3323
3332
  mcpServers?: unknown[];
3333
+ forwardedEnv?: Record<string, string>;
3324
3334
  }
3325
3335
  type AgentSpawner = (opts: AgentInstanceOptions) => AgentInstance;
3326
3336
  interface SessionManagerOptions {
@@ -3381,6 +3391,7 @@ declare class SessionManager {
3381
3391
  private applySeedModel;
3382
3392
  private bootstrapAgent;
3383
3393
  bootstrapAgentForAuth(agentId: string, cwd?: string): Promise<AgentInstance>;
3394
+ planSpawnForAgent(agentId: string): Promise<SpawnPlan>;
3384
3395
  consumePendingAuthAgent(agentId: string): AgentInstance | undefined;
3385
3396
  getAgentForSession(sessionId: string): AgentInstance | undefined;
3386
3397
  private attachManagerHooks;
@@ -3388,6 +3399,7 @@ declare class SessionManager {
3388
3399
  loadHistory(sessionId: string): Promise<HistoryEntry[]>;
3389
3400
  loadToolBlob(sessionId: string, hash: string): Promise<string | null>;
3390
3401
  loadFromDisk(sessionId: string): Promise<ResurrectParams | undefined>;
3402
+ setForwardedEnv(sessionId: string, env: Record<string, string> | undefined): Promise<void>;
3391
3403
  private clearPendingHistorySync;
3392
3404
  private deriveTitleFromHistory;
3393
3405
  get(sessionId: string): Session | undefined;