@hydra-acp/cli 0.1.73 → 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
@@ -771,6 +771,19 @@ declare const RegistryAgent: z.ZodObject<{
771
771
  env?: Record<string, string> | undefined;
772
772
  } | undefined;
773
773
  }>;
774
+ onboarding: z.ZodOptional<z.ZodObject<{
775
+ command: z.ZodOptional<z.ZodString>;
776
+ url: z.ZodOptional<z.ZodString>;
777
+ description: z.ZodOptional<z.ZodString>;
778
+ }, "strip", z.ZodTypeAny, {
779
+ command?: string | undefined;
780
+ url?: string | undefined;
781
+ description?: string | undefined;
782
+ }, {
783
+ command?: string | undefined;
784
+ url?: string | undefined;
785
+ description?: string | undefined;
786
+ }>>;
774
787
  }, "strip", z.ZodTypeAny, {
775
788
  name: string;
776
789
  id: string;
@@ -837,6 +850,11 @@ declare const RegistryAgent: z.ZodObject<{
837
850
  icon?: string | undefined;
838
851
  repository?: string | undefined;
839
852
  website?: string | undefined;
853
+ onboarding?: {
854
+ command?: string | undefined;
855
+ url?: string | undefined;
856
+ description?: string | undefined;
857
+ } | undefined;
840
858
  }, {
841
859
  name: string;
842
860
  id: string;
@@ -903,6 +921,11 @@ declare const RegistryAgent: z.ZodObject<{
903
921
  icon?: string | undefined;
904
922
  repository?: string | undefined;
905
923
  website?: string | undefined;
924
+ onboarding?: {
925
+ command?: string | undefined;
926
+ url?: string | undefined;
927
+ description?: string | undefined;
928
+ } | undefined;
906
929
  }>;
907
930
  type RegistryAgent = z.infer<typeof RegistryAgent>;
908
931
  declare const RegistryDocument: z.ZodObject<{
@@ -1243,6 +1266,19 @@ declare const RegistryDocument: z.ZodObject<{
1243
1266
  env?: Record<string, string> | undefined;
1244
1267
  } | undefined;
1245
1268
  }>;
1269
+ onboarding: z.ZodOptional<z.ZodObject<{
1270
+ command: z.ZodOptional<z.ZodString>;
1271
+ url: z.ZodOptional<z.ZodString>;
1272
+ description: z.ZodOptional<z.ZodString>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ command?: string | undefined;
1275
+ url?: string | undefined;
1276
+ description?: string | undefined;
1277
+ }, {
1278
+ command?: string | undefined;
1279
+ url?: string | undefined;
1280
+ description?: string | undefined;
1281
+ }>>;
1246
1282
  }, "strip", z.ZodTypeAny, {
1247
1283
  name: string;
1248
1284
  id: string;
@@ -1309,6 +1345,11 @@ declare const RegistryDocument: z.ZodObject<{
1309
1345
  icon?: string | undefined;
1310
1346
  repository?: string | undefined;
1311
1347
  website?: string | undefined;
1348
+ onboarding?: {
1349
+ command?: string | undefined;
1350
+ url?: string | undefined;
1351
+ description?: string | undefined;
1352
+ } | undefined;
1312
1353
  }, {
1313
1354
  name: string;
1314
1355
  id: string;
@@ -1375,6 +1416,11 @@ declare const RegistryDocument: z.ZodObject<{
1375
1416
  icon?: string | undefined;
1376
1417
  repository?: string | undefined;
1377
1418
  website?: string | undefined;
1419
+ onboarding?: {
1420
+ command?: string | undefined;
1421
+ url?: string | undefined;
1422
+ description?: string | undefined;
1423
+ } | undefined;
1378
1424
  }>, "many">;
1379
1425
  extensions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1380
1426
  }, "strip", z.ZodTypeAny, {
@@ -1445,6 +1491,11 @@ declare const RegistryDocument: z.ZodObject<{
1445
1491
  icon?: string | undefined;
1446
1492
  repository?: string | undefined;
1447
1493
  website?: string | undefined;
1494
+ onboarding?: {
1495
+ command?: string | undefined;
1496
+ url?: string | undefined;
1497
+ description?: string | undefined;
1498
+ } | undefined;
1448
1499
  }[];
1449
1500
  extensions?: unknown[] | undefined;
1450
1501
  }, {
@@ -1515,6 +1566,11 @@ declare const RegistryDocument: z.ZodObject<{
1515
1566
  icon?: string | undefined;
1516
1567
  repository?: string | undefined;
1517
1568
  website?: string | undefined;
1569
+ onboarding?: {
1570
+ command?: string | undefined;
1571
+ url?: string | undefined;
1572
+ description?: string | undefined;
1573
+ } | undefined;
1518
1574
  }[];
1519
1575
  extensions?: unknown[] | undefined;
1520
1576
  }>;
@@ -1874,6 +1930,13 @@ interface AgentCapabilities {
1874
1930
  loadSession?: boolean;
1875
1931
  sessionCapabilities?: SessionCapabilities;
1876
1932
  }
1933
+ interface AuthMethod {
1934
+ id: string;
1935
+ description: string;
1936
+ type?: "agent" | "terminal";
1937
+ name?: string;
1938
+ _meta?: Record<string, unknown>;
1939
+ }
1877
1940
  interface InitializeResult {
1878
1941
  protocolVersion: number;
1879
1942
  agentCapabilities: AgentCapabilities;
@@ -1881,11 +1944,7 @@ interface InitializeResult {
1881
1944
  name: string;
1882
1945
  version: string;
1883
1946
  };
1884
- authMethods?: Array<{
1885
- id: string;
1886
- description: string;
1887
- type?: "agent" | "terminal";
1888
- }>;
1947
+ authMethods?: AuthMethod[];
1889
1948
  _meta?: Record<string, unknown>;
1890
1949
  }
1891
1950
 
@@ -1957,6 +2016,7 @@ declare class AgentInstance {
1957
2016
  readonly version: string;
1958
2017
  readonly cwd: string;
1959
2018
  readonly connection: JsonRpcConnection;
2019
+ authMethods?: AuthMethod[];
1960
2020
  private child;
1961
2021
  private exited;
1962
2022
  private killed;
@@ -2252,6 +2312,7 @@ interface SpawnReplacementAgentParams {
2252
2312
  agentId: string;
2253
2313
  cwd: string;
2254
2314
  agentArgs?: string[];
2315
+ forwardedEnv?: Record<string, string>;
2255
2316
  }
2256
2317
  interface SpawnReplacementAgentResult {
2257
2318
  agent: AgentInstance;
@@ -2309,6 +2370,7 @@ interface SessionInit {
2309
2370
  };
2310
2371
  interactive?: boolean;
2311
2372
  priority?: number;
2373
+ forwardedEnv?: Record<string, string>;
2312
2374
  listSessions?: () => Promise<{
2313
2375
  sessionId: string;
2314
2376
  title?: string;
@@ -2382,6 +2444,7 @@ declare class Session {
2382
2444
  private idleEventTimeoutMs;
2383
2445
  private lastRecordedAt;
2384
2446
  private spawnReplacementAgent;
2447
+ forwardedEnv: Record<string, string> | undefined;
2385
2448
  private listSessions;
2386
2449
  private logger;
2387
2450
  private transformChain;
@@ -2732,6 +2795,7 @@ declare const SessionRecord: z.ZodObject<{
2732
2795
  }>>;
2733
2796
  interactive: z.ZodOptional<z.ZodBoolean>;
2734
2797
  priority: z.ZodOptional<z.ZodNumber>;
2798
+ forwardedEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2735
2799
  createdAt: z.ZodString;
2736
2800
  updatedAt: z.ZodString;
2737
2801
  }, "strip", z.ZodTypeAny, {
@@ -2764,6 +2828,7 @@ declare const SessionRecord: z.ZodObject<{
2764
2828
  interactive?: boolean | undefined;
2765
2829
  priority?: number | undefined;
2766
2830
  currentMode?: string | undefined;
2831
+ forwardedEnv?: Record<string, string> | undefined;
2767
2832
  synopsis?: {
2768
2833
  outcome?: string | undefined;
2769
2834
  goal?: string | undefined;
@@ -2820,6 +2885,7 @@ declare const SessionRecord: z.ZodObject<{
2820
2885
  interactive?: boolean | undefined;
2821
2886
  priority?: number | undefined;
2822
2887
  currentMode?: string | undefined;
2888
+ forwardedEnv?: Record<string, string> | undefined;
2823
2889
  synopsis?: {
2824
2890
  outcome?: string | undefined;
2825
2891
  goal?: string | undefined;
@@ -3235,6 +3301,7 @@ interface CreateSessionParams {
3235
3301
  version?: string;
3236
3302
  };
3237
3303
  interactive?: boolean;
3304
+ forwardedEnv?: Record<string, string>;
3238
3305
  }
3239
3306
  interface ResurrectParams {
3240
3307
  hydraSessionId: string;
@@ -3263,6 +3330,7 @@ interface ResurrectParams {
3263
3330
  forkedFromSessionId?: string;
3264
3331
  forkedFromMessageId?: string;
3265
3332
  mcpServers?: unknown[];
3333
+ forwardedEnv?: Record<string, string>;
3266
3334
  }
3267
3335
  type AgentSpawner = (opts: AgentInstanceOptions) => AgentInstance;
3268
3336
  interface SessionManagerOptions {
@@ -3284,6 +3352,7 @@ declare class SessionManager {
3284
3352
  private registry;
3285
3353
  private sessions;
3286
3354
  private resurrectionInflight;
3355
+ private pendingAuthAgents;
3287
3356
  private spawner;
3288
3357
  private store;
3289
3358
  private tombstones;
@@ -3321,11 +3390,16 @@ declare class SessionManager {
3321
3390
  private collectAgentSessions;
3322
3391
  private applySeedModel;
3323
3392
  private bootstrapAgent;
3393
+ bootstrapAgentForAuth(agentId: string, cwd?: string): Promise<AgentInstance>;
3394
+ planSpawnForAgent(agentId: string): Promise<SpawnPlan>;
3395
+ consumePendingAuthAgent(agentId: string): AgentInstance | undefined;
3396
+ getAgentForSession(sessionId: string): AgentInstance | undefined;
3324
3397
  private attachManagerHooks;
3325
3398
  getHistory(sessionId: string): Promise<HistoryEntry[] | undefined>;
3326
3399
  loadHistory(sessionId: string): Promise<HistoryEntry[]>;
3327
3400
  loadToolBlob(sessionId: string, hash: string): Promise<string | null>;
3328
3401
  loadFromDisk(sessionId: string): Promise<ResurrectParams | undefined>;
3402
+ setForwardedEnv(sessionId: string, env: Record<string, string> | undefined): Promise<void>;
3329
3403
  private clearPendingHistorySync;
3330
3404
  private deriveTitleFromHistory;
3331
3405
  get(sessionId: string): Session | undefined;