@hydra-acp/cli 0.1.72 → 0.1.74

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,11 @@ 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
+ }
1877
1938
  interface InitializeResult {
1878
1939
  protocolVersion: number;
1879
1940
  agentCapabilities: AgentCapabilities;
@@ -1881,10 +1942,7 @@ interface InitializeResult {
1881
1942
  name: string;
1882
1943
  version: string;
1883
1944
  };
1884
- authMethods?: Array<{
1885
- id: string;
1886
- description: string;
1887
- }>;
1945
+ authMethods?: AuthMethod[];
1888
1946
  _meta?: Record<string, unknown>;
1889
1947
  }
1890
1948
 
@@ -1956,6 +2014,7 @@ declare class AgentInstance {
1956
2014
  readonly version: string;
1957
2015
  readonly cwd: string;
1958
2016
  readonly connection: JsonRpcConnection;
2017
+ authMethods?: AuthMethod[];
1959
2018
  private child;
1960
2019
  private exited;
1961
2020
  private killed;
@@ -3283,6 +3342,7 @@ declare class SessionManager {
3283
3342
  private registry;
3284
3343
  private sessions;
3285
3344
  private resurrectionInflight;
3345
+ private pendingAuthAgents;
3286
3346
  private spawner;
3287
3347
  private store;
3288
3348
  private tombstones;
@@ -3320,6 +3380,9 @@ declare class SessionManager {
3320
3380
  private collectAgentSessions;
3321
3381
  private applySeedModel;
3322
3382
  private bootstrapAgent;
3383
+ bootstrapAgentForAuth(agentId: string, cwd?: string): Promise<AgentInstance>;
3384
+ consumePendingAuthAgent(agentId: string): AgentInstance | undefined;
3385
+ getAgentForSession(sessionId: string): AgentInstance | undefined;
3323
3386
  private attachManagerHooks;
3324
3387
  getHistory(sessionId: string): Promise<HistoryEntry[] | undefined>;
3325
3388
  loadHistory(sessionId: string): Promise<HistoryEntry[]>;