@arnilo/prism-coding-agent 0.2.4 → 0.2.6
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/CHANGELOG.md +16 -0
- package/README.md +10 -0
- package/dist/coding-checkpoint.js +4 -0
- package/dist/diagnostics.d.ts +83 -0
- package/dist/diagnostics.js +179 -0
- package/dist/git.d.ts +27 -6
- package/dist/git.js +58 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +13 -2
- package/dist/language/client.d.ts +25 -0
- package/dist/language/client.js +54 -0
- package/dist/language/framing.d.ts +9 -1
- package/dist/language/framing.js +89 -17
- package/dist/language/index.d.ts +1 -1
- package/dist/language/intelligence.js +58 -0
- package/dist/language/types.d.ts +32 -0
- package/dist/limits.d.ts +59 -0
- package/dist/limits.js +59 -0
- package/dist/process/index.d.ts +4 -1
- package/dist/process/index.js +1 -0
- package/dist/process/recovery.d.ts +174 -0
- package/dist/process/recovery.js +320 -0
- package/dist/process/sessions.js +714 -25
- package/dist/process/types.d.ts +128 -4
- package/dist/process/types.js +7 -1
- package/dist/repository/glob.d.ts +4 -0
- package/dist/repository/glob.js +143 -0
- package/dist/repository/indexed-search.d.ts +121 -0
- package/dist/repository/indexed-search.js +313 -0
- package/dist/repository/list.d.ts +3 -0
- package/dist/repository/list.js +119 -0
- package/dist/repository/operations.d.ts +5 -0
- package/dist/repository/operations.js +14 -0
- package/dist/repository/path.d.ts +18 -0
- package/dist/repository/path.js +91 -0
- package/dist/repository/search.d.ts +9 -0
- package/dist/repository/search.js +284 -0
- package/dist/repository/types.d.ts +138 -0
- package/dist/repository/types.js +31 -0
- package/dist/repository/walk.d.ts +22 -0
- package/dist/repository/walk.js +99 -0
- package/dist/repository.d.ts +11 -172
- package/dist/repository.js +11 -748
- package/dist/review.d.ts +150 -0
- package/dist/review.js +222 -0
- package/dist/search.d.ts +3 -1
- package/dist/search.js +42 -7
- package/dist/workspace-lifecycle.d.ts +153 -0
- package/dist/workspace-lifecycle.js +629 -0
- package/package.json +3 -3
package/dist/repository.d.ts
CHANGED
|
@@ -1,172 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly size?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface RepositoryListResult {
|
|
15
|
-
readonly entries: readonly RepoListEntry[];
|
|
16
|
-
readonly truncated: boolean;
|
|
17
|
-
readonly truncatedBy: "results" | "entries" | "files" | "depth" | "time" | "abort" | null;
|
|
18
|
-
readonly scannedEntries: number;
|
|
19
|
-
readonly scannedFiles: number;
|
|
20
|
-
readonly nextOffset?: number;
|
|
21
|
-
readonly offset: number;
|
|
22
|
-
}
|
|
23
|
-
export interface RepositoryGlobResult {
|
|
24
|
-
readonly paths: readonly string[];
|
|
25
|
-
readonly truncated: boolean;
|
|
26
|
-
readonly truncatedBy: RepositoryListResult["truncatedBy"];
|
|
27
|
-
readonly scannedEntries: number;
|
|
28
|
-
readonly scannedFiles: number;
|
|
29
|
-
readonly nextOffset?: number;
|
|
30
|
-
readonly offset: number;
|
|
31
|
-
}
|
|
32
|
-
export type RepoSearchOutputMode = "content" | "files_with_matches" | "count";
|
|
33
|
-
export interface RepositorySearchMatch {
|
|
34
|
-
readonly path: string;
|
|
35
|
-
readonly line: number;
|
|
36
|
-
readonly column: number;
|
|
37
|
-
readonly text: string;
|
|
38
|
-
readonly before: readonly string[];
|
|
39
|
-
readonly after: readonly string[];
|
|
40
|
-
}
|
|
41
|
-
export interface RepositorySearchResult {
|
|
42
|
-
readonly matches: readonly RepositorySearchMatch[];
|
|
43
|
-
readonly truncated: boolean;
|
|
44
|
-
readonly truncatedBy: "matches" | "scan" | "file" | "entries" | "files" | "depth" | "time" | "abort" | "pattern" | null;
|
|
45
|
-
readonly scannedBytes: number;
|
|
46
|
-
readonly scannedFiles: number;
|
|
47
|
-
readonly scannedEntries: number;
|
|
48
|
-
readonly filesSkippedBinary: number;
|
|
49
|
-
readonly filesSkippedOversize: number;
|
|
50
|
-
}
|
|
51
|
-
export interface ResolvedRepositoryLimits {
|
|
52
|
-
readonly maxDepth: number;
|
|
53
|
-
readonly maxEntries: number;
|
|
54
|
-
readonly maxFiles: number;
|
|
55
|
-
readonly maxResults: number;
|
|
56
|
-
readonly maxConcurrency: number;
|
|
57
|
-
readonly maxScanBytes: number;
|
|
58
|
-
readonly maxFileBytes: number;
|
|
59
|
-
readonly maxMatches: number;
|
|
60
|
-
readonly maxPatternBytes: number;
|
|
61
|
-
readonly maxLineBytes: number;
|
|
62
|
-
readonly maxContextLines: number;
|
|
63
|
-
readonly maxTimeMs: number;
|
|
64
|
-
readonly binarySniffBytes: number;
|
|
65
|
-
readonly exclude: readonly string[];
|
|
66
|
-
}
|
|
67
|
-
export interface RepositoryLimitOptions {
|
|
68
|
-
readonly maxDepth?: number;
|
|
69
|
-
readonly maxEntries?: number;
|
|
70
|
-
readonly maxFiles?: number;
|
|
71
|
-
readonly maxResults?: number;
|
|
72
|
-
readonly maxConcurrency?: number;
|
|
73
|
-
readonly maxScanBytes?: number;
|
|
74
|
-
readonly maxFileBytes?: number;
|
|
75
|
-
readonly maxMatches?: number;
|
|
76
|
-
readonly maxPatternBytes?: number;
|
|
77
|
-
readonly maxLineBytes?: number;
|
|
78
|
-
readonly maxContextLines?: number;
|
|
79
|
-
readonly maxTimeMs?: number;
|
|
80
|
-
/** Basename denylist skipped during descent (default `.git`, `node_modules`, `dist`). */
|
|
81
|
-
readonly exclude?: readonly string[];
|
|
82
|
-
}
|
|
83
|
-
export interface RepositoryListRequest {
|
|
84
|
-
readonly root: string;
|
|
85
|
-
readonly path?: string;
|
|
86
|
-
readonly includeHidden?: boolean;
|
|
87
|
-
readonly exclude?: readonly string[];
|
|
88
|
-
readonly maxDepth?: number;
|
|
89
|
-
readonly maxResults?: number;
|
|
90
|
-
readonly offset?: number;
|
|
91
|
-
readonly signal?: AbortSignal;
|
|
92
|
-
readonly deadlineMs?: number;
|
|
93
|
-
}
|
|
94
|
-
export interface RepositorySearchRequest {
|
|
95
|
-
readonly root: string;
|
|
96
|
-
readonly query: string;
|
|
97
|
-
readonly path?: string;
|
|
98
|
-
readonly mode?: "literal";
|
|
99
|
-
readonly outputMode?: RepoSearchOutputMode;
|
|
100
|
-
readonly caseSensitive?: boolean;
|
|
101
|
-
readonly includeHidden?: boolean;
|
|
102
|
-
readonly exclude?: readonly string[];
|
|
103
|
-
readonly context?: number;
|
|
104
|
-
readonly maxMatches?: number;
|
|
105
|
-
readonly signal?: AbortSignal;
|
|
106
|
-
readonly deadlineMs?: number;
|
|
107
|
-
}
|
|
108
|
-
export interface RepositoryGlobRequest {
|
|
109
|
-
readonly root: string;
|
|
110
|
-
readonly pattern: string;
|
|
111
|
-
readonly path?: string;
|
|
112
|
-
readonly includeHidden?: boolean;
|
|
113
|
-
readonly exclude?: readonly string[];
|
|
114
|
-
readonly maxDepth?: number;
|
|
115
|
-
readonly maxResults?: number;
|
|
116
|
-
readonly offset?: number;
|
|
117
|
-
/** Opt-in bounded `{a,b}` expansion (default false; expansion bounds in glob-match.ts). */
|
|
118
|
-
readonly braceExpansion?: boolean;
|
|
119
|
-
readonly signal?: AbortSignal;
|
|
120
|
-
readonly deadlineMs?: number;
|
|
121
|
-
}
|
|
122
|
-
export interface RepositoryOperations {
|
|
123
|
-
list(request: RepositoryListRequest): Promise<RepositoryListResult>;
|
|
124
|
-
search(request: RepositorySearchRequest): Promise<RepositorySearchResult>;
|
|
125
|
-
glob(request: RepositoryGlobRequest): Promise<RepositoryGlobResult>;
|
|
126
|
-
}
|
|
127
|
-
export declare const DEFAULT_REPO_EXCLUDE: readonly string[];
|
|
128
|
-
export declare class RepositoryError extends Error {
|
|
129
|
-
readonly code = "ERR_PRISM_REPOSITORY";
|
|
130
|
-
constructor(message: string);
|
|
131
|
-
}
|
|
132
|
-
export declare function resolveRepositoryLimits(options?: RepositoryLimitOptions): ResolvedRepositoryLimits;
|
|
133
|
-
/** Normalize a workspace-relative path to stable forward-slash form. */
|
|
134
|
-
export declare function toRepoRelative(root: string, absolutePath: string): string;
|
|
135
|
-
/**
|
|
136
|
-
* Resolve a list/search start path under the workspace root.
|
|
137
|
-
* Symlink escapes fail closed after realpath when the path exists.
|
|
138
|
-
*/
|
|
139
|
-
export declare function resolveRepoPath(root: string, inputPath: string | undefined): Promise<{
|
|
140
|
-
absolute: string;
|
|
141
|
-
relative: string;
|
|
142
|
-
rootReal: string;
|
|
143
|
-
}>;
|
|
144
|
-
export declare function isBinaryBuffer(buffer: Buffer): boolean;
|
|
145
|
-
export declare function compileSearchPattern(query: string, caseSensitive: boolean, maxPatternBytes: number): {
|
|
146
|
-
testLine: (line: string) => {
|
|
147
|
-
column: number;
|
|
148
|
-
} | null;
|
|
149
|
-
patternBytes: number;
|
|
150
|
-
};
|
|
151
|
-
export interface RepositoryWalkLimits {
|
|
152
|
-
maxDepth: number;
|
|
153
|
-
maxEntries: number;
|
|
154
|
-
maxFiles: number;
|
|
155
|
-
exclude: ReadonlySet<string>;
|
|
156
|
-
includeHidden: boolean;
|
|
157
|
-
signal?: AbortSignal;
|
|
158
|
-
deadlineAt?: number;
|
|
159
|
-
}
|
|
160
|
-
export type RepositoryWalkEvent = {
|
|
161
|
-
type: "entry";
|
|
162
|
-
entry: RepoListEntry;
|
|
163
|
-
absolutePath: string;
|
|
164
|
-
depth: number;
|
|
165
|
-
} | {
|
|
166
|
-
type: "limit";
|
|
167
|
-
truncatedBy: "entries" | "files" | "depth";
|
|
168
|
-
};
|
|
169
|
-
/** Injectable enumerator for list/search/glob. Default is the native opendir walker. */
|
|
170
|
-
export type RepositoryWalk = (rootReal: string, startAbsolute: string, limits: RepositoryWalkLimits) => AsyncGenerator<RepositoryWalkEvent>;
|
|
171
|
-
/** Local filesystem repository operations (default backend). */
|
|
172
|
-
export declare function createLocalRepositoryOperations(limits?: RepositoryLimitOptions, walk?: RepositoryWalk): RepositoryOperations;
|
|
1
|
+
/** Repository barrel (0.2.5 plan 025 Task 1 god-module split): re-exports the public
|
|
2
|
+
* repository surface from cohesive family modules so the import surface of
|
|
3
|
+
* `./repository.js` is unchanged (0.1.4 barrel precedent). */
|
|
4
|
+
export * from "./repository/types.js";
|
|
5
|
+
export * from "./repository/path.js";
|
|
6
|
+
export * from "./repository/walk.js";
|
|
7
|
+
export * from "./repository/list.js";
|
|
8
|
+
export * from "./repository/search.js";
|
|
9
|
+
export * from "./repository/glob.js";
|
|
10
|
+
export * from "./repository/operations.js";
|
|
11
|
+
export * from "./repository/indexed-search.js";
|