@hydra-acp/cli 0.1.49 → 0.1.50

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
@@ -1469,6 +1469,16 @@ declare const SessionListEntry: z.ZodObject<{
1469
1469
  importedFromMachine: z.ZodOptional<z.ZodString>;
1470
1470
  importedFromUpstreamSessionId: z.ZodOptional<z.ZodString>;
1471
1471
  parentSessionId: z.ZodOptional<z.ZodString>;
1472
+ originatingClient: z.ZodOptional<z.ZodObject<{
1473
+ name: z.ZodString;
1474
+ version: z.ZodOptional<z.ZodString>;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ name: string;
1477
+ version?: string | undefined;
1478
+ }, {
1479
+ name: string;
1480
+ version?: string | undefined;
1481
+ }>>;
1472
1482
  updatedAt: z.ZodString;
1473
1483
  attachedClients: z.ZodNumber;
1474
1484
  status: z.ZodDefault<z.ZodEnum<["live", "cold"]>>;
@@ -1495,6 +1505,10 @@ declare const SessionListEntry: z.ZodObject<{
1495
1505
  importedFromMachine?: string | undefined;
1496
1506
  importedFromUpstreamSessionId?: string | undefined;
1497
1507
  parentSessionId?: string | undefined;
1508
+ originatingClient?: {
1509
+ name: string;
1510
+ version?: string | undefined;
1511
+ } | undefined;
1498
1512
  }, {
1499
1513
  sessionId: string;
1500
1514
  cwd: string;
@@ -1515,6 +1529,10 @@ declare const SessionListEntry: z.ZodObject<{
1515
1529
  importedFromMachine?: string | undefined;
1516
1530
  importedFromUpstreamSessionId?: string | undefined;
1517
1531
  parentSessionId?: string | undefined;
1532
+ originatingClient?: {
1533
+ name: string;
1534
+ version?: string | undefined;
1535
+ } | undefined;
1518
1536
  busy?: boolean | undefined;
1519
1537
  }>;
1520
1538
  type SessionListEntry = z.infer<typeof SessionListEntry>;
@@ -1799,6 +1817,34 @@ declare class TransformerManager {
1799
1817
  private scheduleRestart;
1800
1818
  }
1801
1819
 
1820
+ interface StreamGrepLine {
1821
+ cursor: number;
1822
+ line: string;
1823
+ }
1824
+ interface StreamGrepMatch extends StreamGrepLine {
1825
+ before?: StreamGrepLine[];
1826
+ after?: StreamGrepLine[];
1827
+ }
1828
+ interface StreamGrepResult {
1829
+ matches: StreamGrepMatch[];
1830
+ truncated: boolean;
1831
+ nextCursor: number;
1832
+ gap?: number;
1833
+ scannedBytes: number;
1834
+ eof?: boolean;
1835
+ }
1836
+ interface StreamGrepOptions {
1837
+ pattern: string;
1838
+ regex?: boolean;
1839
+ caseInsensitive?: boolean;
1840
+ invert?: boolean;
1841
+ maxMatches?: number;
1842
+ maxBytes?: number;
1843
+ contextBefore?: number;
1844
+ contextAfter?: number;
1845
+ cursor?: number;
1846
+ }
1847
+
1802
1848
  interface AdvertisedCommand {
1803
1849
  name: string;
1804
1850
  description?: string;
@@ -1928,6 +1974,10 @@ interface SessionInit {
1928
1974
  transformChain?: TransformerRef[];
1929
1975
  idleEventTimeoutMs?: number;
1930
1976
  parentSessionId?: string;
1977
+ originatingClient?: {
1978
+ name: string;
1979
+ version?: string;
1980
+ };
1931
1981
  listSessions?: () => Promise<{
1932
1982
  sessionId: string;
1933
1983
  title?: string;
@@ -1952,6 +2002,10 @@ declare class Session {
1952
2002
  agentCapabilities: AgentCapabilities | undefined;
1953
2003
  readonly agentArgs: string[] | undefined;
1954
2004
  readonly parentSessionId: string | undefined;
2005
+ readonly originatingClient: {
2006
+ name: string;
2007
+ version?: string;
2008
+ } | undefined;
1955
2009
  title: string | undefined;
1956
2010
  currentModel: string | undefined;
1957
2011
  currentMode: string | undefined;
@@ -2127,6 +2181,26 @@ declare class Session {
2127
2181
  gap?: number;
2128
2182
  eof?: boolean;
2129
2183
  }>;
2184
+ streamTail(bytes: number): {
2185
+ bytes: string;
2186
+ startCursor: number;
2187
+ endCursor: number;
2188
+ truncated: boolean;
2189
+ };
2190
+ streamHead(bytes: number): {
2191
+ bytes: string;
2192
+ startCursor: number;
2193
+ endCursor: number;
2194
+ truncated: boolean;
2195
+ };
2196
+ streamWaitFor(cursor: number, timeoutMs: number): Promise<"data" | "eof" | "timeout">;
2197
+ streamGrep(opts: StreamGrepOptions): StreamGrepResult;
2198
+ streamInfo(): {
2199
+ writeCursor: number;
2200
+ oldestAvailable: number;
2201
+ capacity: number;
2202
+ closed: boolean;
2203
+ };
2130
2204
  private requireStreamBuffer;
2131
2205
  private markClosed;
2132
2206
  private get lastActivityAt();
@@ -2220,6 +2294,16 @@ declare const SessionRecord: z.ZodObject<{
2220
2294
  }>, "many">>;
2221
2295
  pendingHistorySync: z.ZodOptional<z.ZodBoolean>;
2222
2296
  parentSessionId: z.ZodOptional<z.ZodString>;
2297
+ originatingClient: z.ZodOptional<z.ZodObject<{
2298
+ name: z.ZodString;
2299
+ version: z.ZodOptional<z.ZodString>;
2300
+ }, "strip", z.ZodTypeAny, {
2301
+ name: string;
2302
+ version?: string | undefined;
2303
+ }, {
2304
+ name: string;
2305
+ version?: string | undefined;
2306
+ }>>;
2223
2307
  createdAt: z.ZodString;
2224
2308
  updatedAt: z.ZodString;
2225
2309
  }, "strip", z.ZodTypeAny, {
@@ -2244,6 +2328,10 @@ declare const SessionRecord: z.ZodObject<{
2244
2328
  importedFromMachine?: string | undefined;
2245
2329
  importedFromUpstreamSessionId?: string | undefined;
2246
2330
  parentSessionId?: string | undefined;
2331
+ originatingClient?: {
2332
+ name: string;
2333
+ version?: string | undefined;
2334
+ } | undefined;
2247
2335
  lineageId?: string | undefined;
2248
2336
  importedFromSessionId?: string | undefined;
2249
2337
  agentCommands?: {
@@ -2283,6 +2371,10 @@ declare const SessionRecord: z.ZodObject<{
2283
2371
  importedFromMachine?: string | undefined;
2284
2372
  importedFromUpstreamSessionId?: string | undefined;
2285
2373
  parentSessionId?: string | undefined;
2374
+ originatingClient?: {
2375
+ name: string;
2376
+ version?: string | undefined;
2377
+ } | undefined;
2286
2378
  lineageId?: string | undefined;
2287
2379
  importedFromSessionId?: string | undefined;
2288
2380
  agentCommands?: {
@@ -2545,6 +2637,10 @@ interface CreateSessionParams {
2545
2637
  onInstallProgress?: AgentInstallProgressCallback;
2546
2638
  transformChain?: TransformerRef[];
2547
2639
  parentSessionId?: string;
2640
+ originatingClient?: {
2641
+ name: string;
2642
+ version?: string;
2643
+ };
2548
2644
  }
2549
2645
  interface ResurrectParams {
2550
2646
  hydraSessionId: string;
@@ -2562,6 +2658,10 @@ interface ResurrectParams {
2562
2658
  agentModels?: AdvertisedModel[];
2563
2659
  createdAt?: string;
2564
2660
  pendingHistorySync?: boolean;
2661
+ originatingClient?: {
2662
+ name: string;
2663
+ version?: string;
2664
+ };
2565
2665
  }
2566
2666
  type AgentSpawner = (opts: AgentInstanceOptions) => AgentInstance;
2567
2667
  interface SessionManagerOptions {