@kevisual/project-search 0.0.4 → 0.0.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/dist/app.d.ts +4 -0
- package/dist/app.js +85 -1914
- package/dist/remote.js +87 -1916
- package/package.json +4 -4
package/dist/app.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ type FileProjectData = {
|
|
|
42
42
|
* 文件对应相关信息
|
|
43
43
|
*
|
|
44
44
|
* 具体文件路径
|
|
45
|
+
* /workspace/projects/project-search/src/index.ts
|
|
45
46
|
*/
|
|
46
47
|
filepath: string;
|
|
47
48
|
content?: string;
|
|
@@ -49,6 +50,7 @@ type FileProjectData = {
|
|
|
49
50
|
size: number;
|
|
50
51
|
/**
|
|
51
52
|
* 项目路径,文件所在的项目路径,方便搜索结果展示和过滤
|
|
53
|
+
* /workspace/projects/project-search
|
|
52
54
|
*/
|
|
53
55
|
projectPath: string;
|
|
54
56
|
repo: string;
|
|
@@ -73,6 +75,7 @@ declare class ProjectSearch {
|
|
|
73
75
|
searchFiles(query?: string, options?: {
|
|
74
76
|
projectPath?: string;
|
|
75
77
|
repo?: string;
|
|
78
|
+
filepath?: string;
|
|
76
79
|
title?: string;
|
|
77
80
|
tags?: string | string[];
|
|
78
81
|
summary?: string;
|
|
@@ -232,6 +235,7 @@ declare class ProjectManager implements ProjectManagerInterface {
|
|
|
232
235
|
content: string;
|
|
233
236
|
type: string;
|
|
234
237
|
} | null>;
|
|
238
|
+
writeFile(filepath: string, content: string): Promise<boolean>;
|
|
235
239
|
deleteFile(filepath: string): Promise<boolean>;
|
|
236
240
|
}
|
|
237
241
|
|