@hydra-acp/cli 0.1.66 → 0.1.68

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
@@ -183,6 +183,8 @@ declare const HydraConfig: z.ZodObject<{
183
183
  repaintThrottleMs: z.ZodDefault<z.ZodNumber>;
184
184
  maxScrollbackLines: z.ZodDefault<z.ZodNumber>;
185
185
  mouse: z.ZodDefault<z.ZodBoolean>;
186
+ inAppSelection: z.ZodOptional<z.ZodBoolean>;
187
+ selectionClipboard: z.ZodDefault<z.ZodEnum<["primary", "clipboard", "both"]>>;
186
188
  logMaxBytes: z.ZodDefault<z.ZodNumber>;
187
189
  cwdColumnMaxWidth: z.ZodDefault<z.ZodNumber>;
188
190
  progressIndicator: z.ZodDefault<z.ZodBoolean>;
@@ -200,6 +202,7 @@ declare const HydraConfig: z.ZodObject<{
200
202
  repaintThrottleMs: number;
201
203
  maxScrollbackLines: number;
202
204
  mouse: boolean;
205
+ selectionClipboard: "primary" | "clipboard" | "both";
203
206
  logMaxBytes: number;
204
207
  cwdColumnMaxWidth: number;
205
208
  progressIndicator: boolean;
@@ -212,11 +215,14 @@ declare const HydraConfig: z.ZodObject<{
212
215
  maxToolItems: number;
213
216
  maxPlanItems: number;
214
217
  showFileUpdates: "diff" | "none" | "edit";
218
+ inAppSelection?: boolean | undefined;
215
219
  sessionColumns?: ["agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost", ...("agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost")[]] | undefined;
216
220
  }, {
217
221
  repaintThrottleMs?: number | undefined;
218
222
  maxScrollbackLines?: number | undefined;
219
223
  mouse?: boolean | undefined;
224
+ inAppSelection?: boolean | undefined;
225
+ selectionClipboard?: "primary" | "clipboard" | "both" | undefined;
220
226
  logMaxBytes?: number | undefined;
221
227
  cwdColumnMaxWidth?: number | undefined;
222
228
  progressIndicator?: boolean | undefined;
@@ -236,6 +242,7 @@ declare const HydraConfig: z.ZodObject<{
236
242
  repaintThrottleMs: number;
237
243
  maxScrollbackLines: number;
238
244
  mouse: boolean;
245
+ selectionClipboard: "primary" | "clipboard" | "both";
239
246
  logMaxBytes: number;
240
247
  cwdColumnMaxWidth: number;
241
248
  progressIndicator: boolean;
@@ -248,6 +255,7 @@ declare const HydraConfig: z.ZodObject<{
248
255
  maxToolItems: number;
249
256
  maxPlanItems: number;
250
257
  showFileUpdates: "diff" | "none" | "edit";
258
+ inAppSelection?: boolean | undefined;
251
259
  sessionColumns?: ["agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost", ...("agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost")[]] | undefined;
252
260
  };
253
261
  daemon: {
@@ -308,6 +316,8 @@ declare const HydraConfig: z.ZodObject<{
308
316
  repaintThrottleMs?: number | undefined;
309
317
  maxScrollbackLines?: number | undefined;
310
318
  mouse?: boolean | undefined;
319
+ inAppSelection?: boolean | undefined;
320
+ selectionClipboard?: "primary" | "clipboard" | "both" | undefined;
311
321
  logMaxBytes?: number | undefined;
312
322
  cwdColumnMaxWidth?: number | undefined;
313
323
  progressIndicator?: boolean | undefined;
@@ -1674,6 +1684,7 @@ declare const SessionListEntry: z.ZodObject<{
1674
1684
  version?: string | undefined;
1675
1685
  }>>;
1676
1686
  interactive: z.ZodOptional<z.ZodBoolean>;
1687
+ priority: z.ZodOptional<z.ZodNumber>;
1677
1688
  updatedAt: z.ZodString;
1678
1689
  attachedClients: z.ZodNumber;
1679
1690
  status: z.ZodDefault<z.ZodEnum<["live", "cold"]>>;
@@ -1709,6 +1720,7 @@ declare const SessionListEntry: z.ZodObject<{
1709
1720
  name: string;
1710
1721
  version?: string | undefined;
1711
1722
  } | undefined;
1723
+ priority?: number | undefined;
1712
1724
  }, {
1713
1725
  sessionId: string;
1714
1726
  cwd: string;
@@ -1738,6 +1750,7 @@ declare const SessionListEntry: z.ZodObject<{
1738
1750
  name: string;
1739
1751
  version?: string | undefined;
1740
1752
  } | undefined;
1753
+ priority?: number | undefined;
1741
1754
  }>;
1742
1755
  type SessionListEntry = z.infer<typeof SessionListEntry>;
1743
1756
  declare const SessionListResult: z.ZodObject<{
@@ -2287,6 +2300,7 @@ interface SessionInit {
2287
2300
  version?: string;
2288
2301
  };
2289
2302
  interactive?: boolean;
2303
+ priority?: number;
2290
2304
  listSessions?: () => Promise<{
2291
2305
  sessionId: string;
2292
2306
  title?: string;
@@ -2322,6 +2336,8 @@ declare class Session {
2322
2336
  } | undefined;
2323
2337
  private _interactive;
2324
2338
  get interactive(): boolean | undefined;
2339
+ private _priority;
2340
+ get priority(): number | undefined;
2325
2341
  title: string | undefined;
2326
2342
  currentModel: string | undefined;
2327
2343
  currentMode: string | undefined;
@@ -2375,10 +2391,12 @@ declare class Session {
2375
2391
  private modelHandlers;
2376
2392
  private modeHandlers;
2377
2393
  private interactiveHandlers;
2394
+ private priorityHandlers;
2378
2395
  private usageHandlers;
2379
2396
  private cumulativeCost;
2380
2397
  get currentUsage(): UsageSnapshot | undefined;
2381
2398
  private amendInProgress;
2399
+ private inFlightExtensionDispatches;
2382
2400
  private recentlyTerminal;
2383
2401
  private streamBuffer;
2384
2402
  private streamFilePath;
@@ -2437,7 +2455,7 @@ declare class Session {
2437
2455
  private enqueueAmendmentAsFollowUp;
2438
2456
  cancel(clientId: string): Promise<void>;
2439
2457
  addTransformer(ref: TransformerRef): void;
2440
- forwardRequest(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number): Promise<unknown>;
2458
+ forwardRequest(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number, tailKind?: "request" | "notification"): Promise<unknown>;
2441
2459
  dischargeClaim(token: string, result: unknown): boolean;
2442
2460
  keepAliveClaim(token: string, estimatedRemainingMs?: number): boolean;
2443
2461
  emitToChain(emitterName: string, method: string, envelope: unknown): Promise<unknown>;
@@ -2468,6 +2486,8 @@ declare class Session {
2468
2486
  onModelChange(handler: (model: string) => void): void;
2469
2487
  onModeChange(handler: (mode: string) => void): void;
2470
2488
  onInteractiveChange(handler: (interactive: boolean) => void): void;
2489
+ onPriorityChange(handler: (priority: number | undefined) => void): void;
2490
+ setPriority(priority: number | undefined): void;
2471
2491
  applyModelChange(modelId: string): void;
2472
2492
  applyModeChange(modeId: string): void;
2473
2493
  buildConfigOptions(): ConfigOption[];
@@ -2481,17 +2501,22 @@ declare class Session {
2481
2501
  private maybeApplyAgentSessionInfo;
2482
2502
  private handleSlashCommand;
2483
2503
  private runExtensionCommand;
2504
+ private runExtensionCommandInline;
2505
+ private cancelExtensionDispatch;
2484
2506
  private emitExtensionReply;
2485
2507
  private handleSessionsCommand;
2486
2508
  private handleHelpCommand;
2487
2509
  private handleModelCommand;
2488
2510
  private handleModeCommand;
2489
2511
  private runTitleCommand;
2512
+ private runTitleCommandInline;
2490
2513
  private runInternalPrompt;
2491
2514
  setAgent(newAgentId: string): Promise<unknown>;
2492
2515
  private runAgentCommand;
2516
+ private runAgentCommandInline;
2493
2517
  private runKillCommand;
2494
2518
  private runRestartCommand;
2519
+ private runRestartCommandInline;
2495
2520
  forceCancel(): Promise<{
2496
2521
  stopReason: string;
2497
2522
  }>;
@@ -2552,9 +2577,12 @@ declare class Session {
2552
2577
  private notifyChain;
2553
2578
  private rewriteForClient;
2554
2579
  private recordAndBroadcast;
2580
+ requestPermissionFromClients(params: unknown): Promise<unknown>;
2555
2581
  private handlePermissionRequest;
2556
2582
  private enqueuePrompt;
2557
2583
  private enqueueUserPrompt;
2584
+ private parseQueuePosition;
2585
+ private insertEntryAt;
2558
2586
  private persistRewrite;
2559
2587
  private persistedFromEntry;
2560
2588
  private drainQueue;
@@ -2693,6 +2721,7 @@ declare const SessionRecord: z.ZodObject<{
2693
2721
  version?: string | undefined;
2694
2722
  }>>;
2695
2723
  interactive: z.ZodOptional<z.ZodBoolean>;
2724
+ priority: z.ZodOptional<z.ZodNumber>;
2696
2725
  createdAt: z.ZodString;
2697
2726
  updatedAt: z.ZodString;
2698
2727
  }, "strip", z.ZodTypeAny, {
@@ -2724,6 +2753,7 @@ declare const SessionRecord: z.ZodObject<{
2724
2753
  name: string;
2725
2754
  version?: string | undefined;
2726
2755
  } | undefined;
2756
+ priority?: number | undefined;
2727
2757
  synopsis?: {
2728
2758
  outcome?: string | undefined;
2729
2759
  goal?: string | undefined;
@@ -2779,6 +2809,7 @@ declare const SessionRecord: z.ZodObject<{
2779
2809
  name: string;
2780
2810
  version?: string | undefined;
2781
2811
  } | undefined;
2812
+ priority?: number | undefined;
2782
2813
  synopsis?: {
2783
2814
  outcome?: string | undefined;
2784
2815
  goal?: string | undefined;
@@ -2957,6 +2988,7 @@ declare const Bundle: z.ZodObject<{
2957
2988
  name: string;
2958
2989
  version?: string | undefined;
2959
2990
  }>>;
2991
+ priority: z.ZodOptional<z.ZodNumber>;
2960
2992
  createdAt: z.ZodString;
2961
2993
  updatedAt: z.ZodString;
2962
2994
  }, "strip", z.ZodTypeAny, {
@@ -2982,6 +3014,7 @@ declare const Bundle: z.ZodObject<{
2982
3014
  name: string;
2983
3015
  version?: string | undefined;
2984
3016
  } | undefined;
3017
+ priority?: number | undefined;
2985
3018
  synopsis?: {
2986
3019
  outcome?: string | undefined;
2987
3020
  goal?: string | undefined;
@@ -3023,6 +3056,7 @@ declare const Bundle: z.ZodObject<{
3023
3056
  name: string;
3024
3057
  version?: string | undefined;
3025
3058
  } | undefined;
3059
+ priority?: number | undefined;
3026
3060
  synopsis?: {
3027
3061
  outcome?: string | undefined;
3028
3062
  goal?: string | undefined;
@@ -3082,6 +3116,7 @@ declare const Bundle: z.ZodObject<{
3082
3116
  name: string;
3083
3117
  version?: string | undefined;
3084
3118
  } | undefined;
3119
+ priority?: number | undefined;
3085
3120
  synopsis?: {
3086
3121
  outcome?: string | undefined;
3087
3122
  goal?: string | undefined;
@@ -3139,6 +3174,7 @@ declare const Bundle: z.ZodObject<{
3139
3174
  name: string;
3140
3175
  version?: string | undefined;
3141
3176
  } | undefined;
3177
+ priority?: number | undefined;
3142
3178
  synopsis?: {
3143
3179
  outcome?: string | undefined;
3144
3180
  goal?: string | undefined;
@@ -3213,8 +3249,10 @@ interface ResurrectParams {
3213
3249
  version?: string;
3214
3250
  };
3215
3251
  interactive?: boolean;
3252
+ priority?: number;
3216
3253
  forkedFromSessionId?: string;
3217
3254
  forkedFromMessageId?: string;
3255
+ mcpServers?: unknown[];
3218
3256
  }
3219
3257
  type AgentSpawner = (opts: AgentInstanceOptions) => AgentInstance;
3220
3258
  interface SessionManagerOptions {
@@ -3322,6 +3360,8 @@ declare class SessionManager {
3322
3360
  private writeImportedRecord;
3323
3361
  deleteRecord(sessionId: string): Promise<boolean>;
3324
3362
  hasRecord(sessionId: string): Promise<boolean>;
3363
+ setPriority(sessionId: string, priority: number | undefined): Promise<boolean>;
3364
+ private persistPriority;
3325
3365
  setTitle(sessionId: string, title: string): Promise<boolean>;
3326
3366
  private persistTitle;
3327
3367
  private persistSynopsis;