@solaqua/gji 0.7.2 → 0.8.0

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.
@@ -1,3 +1,4 @@
1
+ import type { Readable, Writable } from "node:stream";
1
2
  import type { WorktreeEntry } from "./repo.js";
2
3
  export interface WorktreePromptSource {
3
4
  repoName: string;
@@ -6,9 +7,20 @@ export interface WorktreePromptSource {
6
7
  export interface WorktreePromptEntry extends WorktreeEntry {
7
8
  group: "recent" | "other";
8
9
  label: string;
10
+ metadata?: string | null;
9
11
  repoName: string;
10
12
  }
13
+ export interface WorktreePickerIO {
14
+ input?: Readable & {
15
+ isTTY?: boolean;
16
+ setRawMode?: (mode: boolean) => void;
17
+ };
18
+ output?: Writable & {
19
+ columns?: number;
20
+ rows?: number;
21
+ };
22
+ }
11
23
  export declare function buildWorktreePromptEntries(sources: WorktreePromptSource[]): Promise<WorktreePromptEntry[]>;
12
24
  export declare function resolveWorktreeQuery(sources: WorktreePromptSource[], query: string): WorktreePromptSource | null;
13
- export declare function promptForSingleWorktree(message: string, worktrees: WorktreePromptEntry[]): Promise<string | null>;
14
- export declare function promptForMultipleWorktrees(message: string, worktrees: WorktreePromptEntry[]): Promise<string[] | null>;
25
+ export declare function promptForSingleWorktree(message: string, worktrees: WorktreePromptEntry[], io?: WorktreePickerIO): Promise<string | null>;
26
+ export declare function promptForMultipleWorktrees(message: string, worktrees: WorktreePromptEntry[], io?: WorktreePickerIO): Promise<string[] | null>;