@hydra-acp/cli 0.1.63 → 0.1.65

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.
Files changed (4) hide show
  1. package/dist/cli.js +449 -34468
  2. package/dist/index.d.ts +21 -0
  3. package/dist/index.js +90 -15745
  4. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -65,6 +65,8 @@ declare const HydraConfig: z.ZodObject<{
65
65
  agentStderrTailBytes: z.ZodDefault<z.ZodNumber>;
66
66
  publicHost: z.ZodOptional<z.ZodString>;
67
67
  agentSyncIntervalMinutes: z.ZodDefault<z.ZodNumber>;
68
+ sessionGcIntervalMinutes: z.ZodDefault<z.ZodNumber>;
69
+ sessionGcMaxAgeDays: z.ZodDefault<z.ZodNumber>;
68
70
  }, "strip", z.ZodTypeAny, {
69
71
  host: string;
70
72
  port: number;
@@ -73,6 +75,8 @@ declare const HydraConfig: z.ZodObject<{
73
75
  sessionHistoryMaxEntries: number;
74
76
  agentStderrTailBytes: number;
75
77
  agentSyncIntervalMinutes: number;
78
+ sessionGcIntervalMinutes: number;
79
+ sessionGcMaxAgeDays: number;
76
80
  tls?: {
77
81
  cert: string;
78
82
  key: string;
@@ -91,6 +95,8 @@ declare const HydraConfig: z.ZodObject<{
91
95
  agentStderrTailBytes?: number | undefined;
92
96
  publicHost?: string | undefined;
93
97
  agentSyncIntervalMinutes?: number | undefined;
98
+ sessionGcIntervalMinutes?: number | undefined;
99
+ sessionGcMaxAgeDays?: number | undefined;
94
100
  }>>;
95
101
  registry: z.ZodDefault<z.ZodObject<{
96
102
  url: z.ZodDefault<z.ZodString>;
@@ -252,6 +258,8 @@ declare const HydraConfig: z.ZodObject<{
252
258
  sessionHistoryMaxEntries: number;
253
259
  agentStderrTailBytes: number;
254
260
  agentSyncIntervalMinutes: number;
261
+ sessionGcIntervalMinutes: number;
262
+ sessionGcMaxAgeDays: number;
255
263
  tls?: {
256
264
  cert: string;
257
265
  key: string;
@@ -327,6 +335,8 @@ declare const HydraConfig: z.ZodObject<{
327
335
  agentStderrTailBytes?: number | undefined;
328
336
  publicHost?: string | undefined;
329
337
  agentSyncIntervalMinutes?: number | undefined;
338
+ sessionGcIntervalMinutes?: number | undefined;
339
+ sessionGcMaxAgeDays?: number | undefined;
330
340
  } | undefined;
331
341
  extensions?: Record<string, {
332
342
  args?: string[] | undefined;
@@ -1914,6 +1924,7 @@ interface AgentInstanceOptions {
1914
1924
  plan: SpawnPlan;
1915
1925
  extraEnv?: Record<string, string>;
1916
1926
  stderrTailBytes?: number;
1927
+ killEscalationMs?: number;
1917
1928
  logger?: AgentLogger;
1918
1929
  }
1919
1930
  interface AgentLogger {
@@ -1930,6 +1941,7 @@ declare class AgentInstance {
1930
1941
  private killed;
1931
1942
  private stderrTail;
1932
1943
  private stderrTailBytes;
1944
+ private killEscalationMs;
1933
1945
  private logger?;
1934
1946
  private fileLog?;
1935
1947
  private exitHandlers;
@@ -1940,6 +1952,8 @@ declare class AgentInstance {
1940
1952
  onExit(handler: (code: number | null, signal: NodeJS.Signals | null) => void): void;
1941
1953
  isAlive(): boolean;
1942
1954
  kill(signal?: NodeJS.Signals): Promise<void>;
1955
+ private signalProcessGroup;
1956
+ private waitForExit;
1943
1957
  }
1944
1958
 
1945
1959
  interface TokenValidator {
@@ -2810,6 +2824,7 @@ declare const Tombstone: z.ZodObject<{
2810
2824
  cwd: z.ZodOptional<z.ZodString>;
2811
2825
  title: z.ZodOptional<z.ZodString>;
2812
2826
  reason: z.ZodOptional<z.ZodEnum<["user", "expired"]>>;
2827
+ interactive: z.ZodOptional<z.ZodBoolean>;
2813
2828
  }, "strip", z.ZodTypeAny, {
2814
2829
  version: 1;
2815
2830
  upstreamSessionId: string;
@@ -2817,6 +2832,7 @@ declare const Tombstone: z.ZodObject<{
2817
2832
  deletedAt: string;
2818
2833
  cwd?: string | undefined;
2819
2834
  title?: string | undefined;
2835
+ interactive?: boolean | undefined;
2820
2836
  reason?: "user" | "expired" | undefined;
2821
2837
  upstreamUpdatedAt?: string | undefined;
2822
2838
  }, {
@@ -2826,6 +2842,7 @@ declare const Tombstone: z.ZodObject<{
2826
2842
  deletedAt: string;
2827
2843
  cwd?: string | undefined;
2828
2844
  title?: string | undefined;
2845
+ interactive?: boolean | undefined;
2829
2846
  reason?: "user" | "expired" | undefined;
2830
2847
  upstreamUpdatedAt?: string | undefined;
2831
2848
  }>;
@@ -3232,6 +3249,8 @@ declare class SessionManager {
3232
3249
  private idleEventTimeoutMs;
3233
3250
  private sessionHistoryMaxEntries;
3234
3251
  private metaWriteQueues;
3252
+ private listCache;
3253
+ private static readonly LIST_CACHE_TTL_MS;
3235
3254
  private logger?;
3236
3255
  private npmRegistry?;
3237
3256
  private extensionCommands?;
@@ -3271,6 +3290,8 @@ declare class SessionManager {
3271
3290
  cwd?: string;
3272
3291
  includeNonInteractive?: boolean;
3273
3292
  }): Promise<SessionListEntry[]>;
3293
+ private invalidateListCache;
3294
+ private listUncached;
3274
3295
  exportBundle(sessionId: string, opts?: {
3275
3296
  tools?: "inline" | "references";
3276
3297
  }): Promise<{