engimcp 1.0.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/CHANGELOG.md +43 -0
- package/LICENSE +21 -0
- package/README.md +345 -0
- package/dist/audit/auditLog.d.ts +9 -0
- package/dist/audit/auditLog.js +20 -0
- package/dist/audit/auditLog.js.map +1 -0
- package/dist/bom/bomService.d.ts +23 -0
- package/dist/bom/bomService.js +44 -0
- package/dist/bom/bomService.js.map +1 -0
- package/dist/config/projectConfig.d.ts +16 -0
- package/dist/config/projectConfig.js +16 -0
- package/dist/config/projectConfig.js.map +1 -0
- package/dist/config/schema.d.ts +16 -0
- package/dist/config/schema.js +21 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/context/contextPack.d.ts +31 -0
- package/dist/context/contextPack.js +142 -0
- package/dist/context/contextPack.js.map +1 -0
- package/dist/context/tokenBudget.d.ts +1 -0
- package/dist/context/tokenBudget.js +4 -0
- package/dist/context/tokenBudget.js.map +1 -0
- package/dist/decisions/decisionService.d.ts +21 -0
- package/dist/decisions/decisionService.js +62 -0
- package/dist/decisions/decisionService.js.map +1 -0
- package/dist/dev/smokeProjectStatus.d.ts +1 -0
- package/dist/dev/smokeProjectStatus.js +9 -0
- package/dist/dev/smokeProjectStatus.js.map +1 -0
- package/dist/documents/documentService.d.ts +83 -0
- package/dist/documents/documentService.js +371 -0
- package/dist/documents/documentService.js.map +1 -0
- package/dist/documents/frontmatter.d.ts +14 -0
- package/dist/documents/frontmatter.js +30 -0
- package/dist/documents/frontmatter.js.map +1 -0
- package/dist/documents/headings.d.ts +6 -0
- package/dist/documents/headings.js +15 -0
- package/dist/documents/headings.js.map +1 -0
- package/dist/documents/markdownParser.d.ts +2 -0
- package/dist/documents/markdownParser.js +3 -0
- package/dist/documents/markdownParser.js.map +1 -0
- package/dist/documents/sectionPatch.d.ts +7 -0
- package/dist/documents/sectionPatch.js +73 -0
- package/dist/documents/sectionPatch.js.map +1 -0
- package/dist/documents/templates.d.ts +1 -0
- package/dist/documents/templates.js +62 -0
- package/dist/documents/templates.js.map +1 -0
- package/dist/filesystem/filesystemService.d.ts +168 -0
- package/dist/filesystem/filesystemService.js +606 -0
- package/dist/filesystem/filesystemService.js.map +1 -0
- package/dist/git/gitAdapter.d.ts +25 -0
- package/dist/git/gitAdapter.js +99 -0
- package/dist/git/gitAdapter.js.map +1 -0
- package/dist/graph/graphBuilder.d.ts +27 -0
- package/dist/graph/graphBuilder.js +126 -0
- package/dist/graph/graphBuilder.js.map +1 -0
- package/dist/graph/impact.d.ts +18 -0
- package/dist/graph/impact.js +53 -0
- package/dist/graph/impact.js.map +1 -0
- package/dist/graph/relations.d.ts +7 -0
- package/dist/graph/relations.js +28 -0
- package/dist/graph/relations.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/errors.d.ts +5 -0
- package/dist/mcp/errors.js +11 -0
- package/dist/mcp/errors.js.map +1 -0
- package/dist/mcp/prompts.d.ts +2 -0
- package/dist/mcp/prompts.js +39 -0
- package/dist/mcp/prompts.js.map +1 -0
- package/dist/mcp/resources.d.ts +2 -0
- package/dist/mcp/resources.js +36 -0
- package/dist/mcp/resources.js.map +1 -0
- package/dist/mcp/tools.d.ts +2 -0
- package/dist/mcp/tools.js +431 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/project/pathSafety.d.ts +6 -0
- package/dist/project/pathSafety.js +137 -0
- package/dist/project/pathSafety.js.map +1 -0
- package/dist/project/projectInit.d.ts +11 -0
- package/dist/project/projectInit.js +81 -0
- package/dist/project/projectInit.js.map +1 -0
- package/dist/project/projectService.d.ts +36 -0
- package/dist/project/projectService.js +60 -0
- package/dist/project/projectService.js.map +1 -0
- package/dist/project/writeGuards.d.ts +3 -0
- package/dist/project/writeGuards.js +46 -0
- package/dist/project/writeGuards.js.map +1 -0
- package/dist/requirements/requirementService.d.ts +19 -0
- package/dist/requirements/requirementService.js +72 -0
- package/dist/requirements/requirementService.js.map +1 -0
- package/dist/runtime/options.d.ts +7 -0
- package/dist/runtime/options.js +34 -0
- package/dist/runtime/options.js.map +1 -0
- package/dist/search/ftsIndex.d.ts +29 -0
- package/dist/search/ftsIndex.js +96 -0
- package/dist/search/ftsIndex.js.map +1 -0
- package/dist/search/searchService.d.ts +20 -0
- package/dist/search/searchService.js +17 -0
- package/dist/search/searchService.js.map +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +16 -0
- package/dist/server.js.map +1 -0
- package/dist/storage/sqlite.d.ts +15 -0
- package/dist/storage/sqlite.js +80 -0
- package/dist/storage/sqlite.js.map +1 -0
- package/dist/tasks/taskService.d.ts +17 -0
- package/dist/tasks/taskService.js +57 -0
- package/dist/tasks/taskService.js.map +1 -0
- package/dist/utils/atomicWrite.d.ts +1 -0
- package/dist/utils/atomicWrite.js +10 -0
- package/dist/utils/atomicWrite.js.map +1 -0
- package/dist/utils/errors.d.ts +1 -0
- package/dist/utils/errors.js +2 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/ids.d.ts +3 -0
- package/dist/utils/ids.js +25 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/validation/checks.d.ts +1 -0
- package/dist/validation/checks.js +2 -0
- package/dist/validation/checks.js.map +1 -0
- package/dist/validation/validator.d.ts +18 -0
- package/dist/validation/validator.js +131 -0
- package/dist/validation/validator.js.map +1 -0
- package/dist/verification/testReportService.d.ts +19 -0
- package/dist/verification/testReportService.js +42 -0
- package/dist/verification/testReportService.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +49 -0
- package/templates/design_doc.md +24 -0
- package/templates/edr.md +58 -0
- package/templates/requirement.md +30 -0
- package/templates/task.md +22 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { type RebuildIndexResult } from "../storage/sqlite.js";
|
|
2
|
+
import { type ValidateProjectResult } from "../validation/validator.js";
|
|
3
|
+
export type FsEntryType = "file" | "dir" | "symlink" | "other";
|
|
4
|
+
export interface FsEntry {
|
|
5
|
+
path: string;
|
|
6
|
+
type: FsEntryType;
|
|
7
|
+
size?: number;
|
|
8
|
+
modified?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FsListInput {
|
|
11
|
+
root: string;
|
|
12
|
+
path?: string;
|
|
13
|
+
recursive?: boolean;
|
|
14
|
+
include_hidden?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FsTreeInput {
|
|
17
|
+
root: string;
|
|
18
|
+
path?: string;
|
|
19
|
+
max_depth?: number;
|
|
20
|
+
include_files?: boolean;
|
|
21
|
+
include_dirs?: boolean;
|
|
22
|
+
respect_deny_patterns?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface FsReadInput {
|
|
25
|
+
root: string;
|
|
26
|
+
path: string;
|
|
27
|
+
encoding?: "utf-8";
|
|
28
|
+
max_bytes?: number;
|
|
29
|
+
mode?: "full" | "head" | "tail" | "range" | "metadata_only";
|
|
30
|
+
offset?: number;
|
|
31
|
+
length?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface FsWriteInput {
|
|
34
|
+
root: string;
|
|
35
|
+
path: string;
|
|
36
|
+
content: string;
|
|
37
|
+
mode?: "create_new" | "overwrite" | "append";
|
|
38
|
+
create_dirs?: boolean;
|
|
39
|
+
dry_run?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface FsMkdirInput {
|
|
42
|
+
root: string;
|
|
43
|
+
path: string;
|
|
44
|
+
parents?: boolean;
|
|
45
|
+
dry_run?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface FsMoveInput {
|
|
48
|
+
root: string;
|
|
49
|
+
source: string;
|
|
50
|
+
target: string;
|
|
51
|
+
update_links?: boolean;
|
|
52
|
+
overwrite?: boolean;
|
|
53
|
+
dry_run?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface FsCopyInput {
|
|
56
|
+
root: string;
|
|
57
|
+
source: string;
|
|
58
|
+
target: string;
|
|
59
|
+
overwrite?: boolean;
|
|
60
|
+
dry_run?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface FsDeleteInput {
|
|
63
|
+
root: string;
|
|
64
|
+
path: string;
|
|
65
|
+
mode?: "trash";
|
|
66
|
+
recursive?: boolean;
|
|
67
|
+
dry_run?: boolean;
|
|
68
|
+
reason?: string;
|
|
69
|
+
force?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface FsExistsInput {
|
|
72
|
+
root: string;
|
|
73
|
+
path: string;
|
|
74
|
+
}
|
|
75
|
+
export interface FsStatInput {
|
|
76
|
+
root: string;
|
|
77
|
+
path: string;
|
|
78
|
+
}
|
|
79
|
+
export interface FsGlobInput {
|
|
80
|
+
root: string;
|
|
81
|
+
patterns: string[];
|
|
82
|
+
exclude?: string[];
|
|
83
|
+
limit?: number;
|
|
84
|
+
}
|
|
85
|
+
export declare function fsList(input: FsListInput): Promise<{
|
|
86
|
+
items: FsEntry[];
|
|
87
|
+
}>;
|
|
88
|
+
export declare function fsTree(input: FsTreeInput): Promise<{
|
|
89
|
+
root: string;
|
|
90
|
+
path: string;
|
|
91
|
+
items: FsEntry[];
|
|
92
|
+
truncated: boolean;
|
|
93
|
+
warnings: string[];
|
|
94
|
+
}>;
|
|
95
|
+
export declare function fsRead(input: FsReadInput): Promise<{
|
|
96
|
+
path: string;
|
|
97
|
+
type: FsEntryType;
|
|
98
|
+
encoding: "utf-8";
|
|
99
|
+
content?: string;
|
|
100
|
+
size: number;
|
|
101
|
+
truncated: boolean;
|
|
102
|
+
}>;
|
|
103
|
+
export declare function fsWrite(input: FsWriteInput): Promise<{
|
|
104
|
+
ok: boolean;
|
|
105
|
+
path: string;
|
|
106
|
+
created: boolean;
|
|
107
|
+
changed: boolean;
|
|
108
|
+
diff_summary: string;
|
|
109
|
+
index?: RebuildIndexResult;
|
|
110
|
+
audit_id?: string;
|
|
111
|
+
content?: string;
|
|
112
|
+
}>;
|
|
113
|
+
export declare function fsMkdir(input: FsMkdirInput): Promise<{
|
|
114
|
+
ok: boolean;
|
|
115
|
+
created_paths: string[];
|
|
116
|
+
index?: RebuildIndexResult;
|
|
117
|
+
audit_id?: string;
|
|
118
|
+
}>;
|
|
119
|
+
export declare function fsMove(input: FsMoveInput): Promise<{
|
|
120
|
+
ok: boolean;
|
|
121
|
+
moved: Array<{
|
|
122
|
+
from: string;
|
|
123
|
+
to: string;
|
|
124
|
+
}>;
|
|
125
|
+
links_updated: string[];
|
|
126
|
+
warnings: string[];
|
|
127
|
+
index?: RebuildIndexResult;
|
|
128
|
+
audit_id?: string;
|
|
129
|
+
}>;
|
|
130
|
+
export declare function fsCopy(input: FsCopyInput): Promise<{
|
|
131
|
+
ok: boolean;
|
|
132
|
+
copied: Array<{
|
|
133
|
+
from: string;
|
|
134
|
+
to: string;
|
|
135
|
+
}>;
|
|
136
|
+
validation?: ValidateProjectResult;
|
|
137
|
+
index?: RebuildIndexResult;
|
|
138
|
+
audit_id?: string;
|
|
139
|
+
}>;
|
|
140
|
+
export declare function fsDelete(input: FsDeleteInput): Promise<{
|
|
141
|
+
ok: boolean;
|
|
142
|
+
deleted: Array<{
|
|
143
|
+
path: string;
|
|
144
|
+
mode: "trash";
|
|
145
|
+
trash_path: string;
|
|
146
|
+
}>;
|
|
147
|
+
broken_links_created: string[];
|
|
148
|
+
warnings: string[];
|
|
149
|
+
index?: RebuildIndexResult;
|
|
150
|
+
audit_id?: string;
|
|
151
|
+
}>;
|
|
152
|
+
export declare function fsExists(input: FsExistsInput): Promise<{
|
|
153
|
+
exists: boolean;
|
|
154
|
+
type?: FsEntryType;
|
|
155
|
+
allowed: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
export declare function fsStat(input: FsStatInput): Promise<{
|
|
158
|
+
path: string;
|
|
159
|
+
type?: FsEntryType;
|
|
160
|
+
size?: number;
|
|
161
|
+
modified?: string;
|
|
162
|
+
is_symlink: boolean;
|
|
163
|
+
denied: boolean;
|
|
164
|
+
}>;
|
|
165
|
+
export declare function fsGlob(input: FsGlobInput): Promise<{
|
|
166
|
+
matches: string[];
|
|
167
|
+
truncated: boolean;
|
|
168
|
+
}>;
|