@xynogen/pix-pretty 1.5.1 → 1.6.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.
- package/package.json +17 -1
- package/src/diff-render.ts +7 -7
- package/src/index.ts +20 -216
- package/src/resize.ts +18 -0
- package/src/types-diff.d.ts +3 -4
- package/src/image.ts +0 -163
- package/src/tools/bash.test.ts +0 -81
- package/src/tools/bash.ts +0 -173
- package/src/tools/edit.ts +0 -291
- package/src/tools/find.ts +0 -143
- package/src/tools/grep.ts +0 -179
- package/src/tools/ls.ts +0 -106
- package/src/tools/read.ts +0 -180
- package/src/tools/write.ts +0 -232
- package/src/types-fff.d.ts +0 -80
package/src/types-fff.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Minimal ambient shim for @ff-labs/fff-node — only the surface the vendored
|
|
2
|
-
// pretty extension uses. The real types ship with the runtime package; this
|
|
3
|
-
// keeps the local editor/LSP quiet without installing node_modules in-repo.
|
|
4
|
-
|
|
5
|
-
declare module "@ff-labs/fff-node" {
|
|
6
|
-
export interface FileItem {
|
|
7
|
-
relativePath: string;
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface SearchResult {
|
|
11
|
-
items: FileItem[];
|
|
12
|
-
totalMatched: number;
|
|
13
|
-
[k: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
export interface GrepMatch {
|
|
16
|
-
relativePath: string;
|
|
17
|
-
lineNumber: number;
|
|
18
|
-
lineContent: string;
|
|
19
|
-
contextBefore?: string[];
|
|
20
|
-
contextAfter?: string[];
|
|
21
|
-
[k: string]: unknown;
|
|
22
|
-
}
|
|
23
|
-
export interface GrepCursor {
|
|
24
|
-
[k: string]: unknown;
|
|
25
|
-
}
|
|
26
|
-
export interface GrepResult {
|
|
27
|
-
items: GrepMatch[];
|
|
28
|
-
nextCursor?: GrepCursor | null;
|
|
29
|
-
regexFallbackError?: string | null;
|
|
30
|
-
[k: string]: unknown;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type Ok<T> = { ok: true; value: T };
|
|
34
|
-
type Err = { ok: false; error: string };
|
|
35
|
-
type Result<T> = Ok<T> | Err;
|
|
36
|
-
|
|
37
|
-
export class FileFinder {
|
|
38
|
-
static create(opts: {
|
|
39
|
-
basePath: string;
|
|
40
|
-
frecencyDbPath: string;
|
|
41
|
-
historyDbPath: string;
|
|
42
|
-
aiMode?: boolean;
|
|
43
|
-
}): Result<FileFinder>;
|
|
44
|
-
readonly isDestroyed: boolean;
|
|
45
|
-
waitForScan(timeoutMs: number): Promise<Result<boolean>>;
|
|
46
|
-
fileSearch(query: string, opts: { pageSize: number }): Result<SearchResult>;
|
|
47
|
-
grep(
|
|
48
|
-
query: string,
|
|
49
|
-
opts: {
|
|
50
|
-
mode: "plain" | "regex";
|
|
51
|
-
smartCase: boolean;
|
|
52
|
-
maxMatchesPerFile: number;
|
|
53
|
-
cursor: GrepCursor | null;
|
|
54
|
-
beforeContext: number;
|
|
55
|
-
afterContext: number;
|
|
56
|
-
},
|
|
57
|
-
): Result<GrepResult>;
|
|
58
|
-
multiGrep(opts: {
|
|
59
|
-
patterns: string[];
|
|
60
|
-
maxMatchesPerFile: number;
|
|
61
|
-
smartCase: boolean;
|
|
62
|
-
cursor: GrepCursor | null;
|
|
63
|
-
beforeContext: number;
|
|
64
|
-
afterContext: number;
|
|
65
|
-
}): Result<GrepResult>;
|
|
66
|
-
healthCheck(): Result<{
|
|
67
|
-
version: string;
|
|
68
|
-
git: { repositoryFound: boolean; workdir?: string };
|
|
69
|
-
filePicker: { initialized: boolean; indexedFiles?: number };
|
|
70
|
-
frecency: { initialized: boolean };
|
|
71
|
-
queryTracker: { initialized: boolean };
|
|
72
|
-
}>;
|
|
73
|
-
getScanProgress(): Result<{
|
|
74
|
-
isScanning: boolean;
|
|
75
|
-
scannedFilesCount: number;
|
|
76
|
-
}>;
|
|
77
|
-
scanFiles(): Result<unknown>;
|
|
78
|
-
destroy(): void;
|
|
79
|
-
}
|
|
80
|
-
}
|