pi-repoprompt-cli 0.2.7 → 0.2.8
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/README.md +5 -1
- package/extensions/repoprompt-cli/README.md +18 -1
- package/extensions/repoprompt-cli/auto-select.ts +288 -0
- package/extensions/repoprompt-cli/config.json.example +2 -1
- package/extensions/repoprompt-cli/config.ts +1 -0
- package/extensions/repoprompt-cli/index.ts +1590 -215
- package/extensions/repoprompt-cli/types.ts +34 -2
- package/package.json +5 -1
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
// types.ts - shared types for the repoprompt-cli extension
|
|
2
2
|
|
|
3
3
|
export interface RpCliConfig {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Optional read_file caching (pi-readcache-like behavior)
|
|
5
|
+
readcacheReadFile?: boolean; // default: false
|
|
6
|
+
|
|
7
|
+
// Optional context UX: automatically update RepoPrompt selection based on read_file calls
|
|
8
|
+
// (tracks read slices/full files so chat has context without manual selection)
|
|
9
|
+
autoSelectReadSlices?: boolean; // default: true
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface RpCliBindingEntryData {
|
|
13
|
+
windowId: number;
|
|
14
|
+
tab: string;
|
|
15
|
+
workspaceId?: string;
|
|
16
|
+
workspaceName?: string;
|
|
17
|
+
workspaceRoots?: string[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface AutoSelectionEntryRangeData {
|
|
21
|
+
start_line: number;
|
|
22
|
+
end_line: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AutoSelectionEntrySliceData {
|
|
26
|
+
path: string;
|
|
27
|
+
ranges: AutoSelectionEntryRangeData[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface AutoSelectionEntryData {
|
|
31
|
+
windowId: number;
|
|
32
|
+
tab?: string;
|
|
33
|
+
workspaceId?: string;
|
|
34
|
+
workspaceName?: string;
|
|
35
|
+
workspaceRoots?: string[];
|
|
36
|
+
fullPaths: string[];
|
|
37
|
+
slicePaths: AutoSelectionEntrySliceData[];
|
|
6
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-repoprompt-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Integrates RepoPrompt with Pi via RepoPrompt's `rp-cli` executable",
|
|
5
5
|
"keywords": ["pi-package", "pi", "pi-coding-agent", "repoprompt"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
"from": "../../extensions/repoprompt-cli/types.ts",
|
|
44
44
|
"to": "extensions/repoprompt-cli/types.ts"
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"from": "../../extensions/repoprompt-cli/auto-select.ts",
|
|
48
|
+
"to": "extensions/repoprompt-cli/auto-select.ts"
|
|
49
|
+
},
|
|
46
50
|
{
|
|
47
51
|
"from": "../../extensions/repoprompt-cli/README.md",
|
|
48
52
|
"to": "extensions/repoprompt-cli/README.md"
|