@prosdevlab/dev-agent 0.10.0 → 0.10.1
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 +8 -17
- package/dist/cli.js +48 -321
- package/dist/cli.js.map +1 -1
- package/dist/mcp.js +15 -142
- package/dist/mcp.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp.js
CHANGED
|
@@ -55188,7 +55188,6 @@ var require_schemas3 = __commonJS({
|
|
|
55188
55188
|
exports2.InspectArgsSchema = zod_1.z.object({
|
|
55189
55189
|
query: zod_1.z.string().min(1, "Query must be a non-empty string (file path)"),
|
|
55190
55190
|
limit: zod_1.z.number().int().min(1).max(50).default(10),
|
|
55191
|
-
threshold: zod_1.z.number().min(0).max(1).default(0.7),
|
|
55192
55191
|
format: exports2.FormatSchema.default("compact")
|
|
55193
55192
|
}).strict();
|
|
55194
55193
|
exports2.SearchArgsSchema = zod_1.z.object({
|
|
@@ -55843,14 +55842,14 @@ var require_inspect_adapter = __commonJS({
|
|
|
55843
55842
|
}
|
|
55844
55843
|
getToolDefinition() {
|
|
55845
55844
|
return {
|
|
55846
|
-
name: "
|
|
55847
|
-
description: "
|
|
55845
|
+
name: "dev_patterns",
|
|
55846
|
+
description: "Analyze coding patterns in a file against the codebase. Compares import style, error handling, type coverage, test coverage, and file size against similar files. Use for code reviews and consistency checks.",
|
|
55848
55847
|
inputSchema: {
|
|
55849
55848
|
type: "object",
|
|
55850
55849
|
properties: {
|
|
55851
55850
|
query: {
|
|
55852
55851
|
type: "string",
|
|
55853
|
-
description: 'File path to
|
|
55852
|
+
description: 'File path to analyze (e.g., "src/auth/middleware.ts")'
|
|
55854
55853
|
},
|
|
55855
55854
|
limit: {
|
|
55856
55855
|
type: "number",
|
|
@@ -55859,13 +55858,6 @@ var require_inspect_adapter = __commonJS({
|
|
|
55859
55858
|
minimum: 1,
|
|
55860
55859
|
maximum: 50
|
|
55861
55860
|
},
|
|
55862
|
-
threshold: {
|
|
55863
|
-
type: "number",
|
|
55864
|
-
description: `Similarity threshold 0-1 (default: ${this.defaultThreshold})`,
|
|
55865
|
-
default: this.defaultThreshold,
|
|
55866
|
-
minimum: 0,
|
|
55867
|
-
maximum: 1
|
|
55868
|
-
},
|
|
55869
55861
|
format: {
|
|
55870
55862
|
type: "string",
|
|
55871
55863
|
enum: ["compact", "verbose"],
|
|
@@ -55882,15 +55874,20 @@ var require_inspect_adapter = __commonJS({
|
|
|
55882
55874
|
if (!validation.success) {
|
|
55883
55875
|
return validation.error;
|
|
55884
55876
|
}
|
|
55885
|
-
const { query, limit,
|
|
55877
|
+
const { query, limit, format } = validation.data;
|
|
55886
55878
|
try {
|
|
55887
|
-
context.logger.debug("Executing
|
|
55879
|
+
context.logger.debug("Executing pattern analysis", {
|
|
55888
55880
|
query,
|
|
55889
55881
|
limit,
|
|
55890
|
-
threshold,
|
|
55891
55882
|
format
|
|
55892
55883
|
});
|
|
55893
|
-
const { content: content3, similarFilesCount, patternsAnalyzed } = await this.inspectFile(
|
|
55884
|
+
const { content: content3, similarFilesCount, patternsAnalyzed } = await this.inspectFile(
|
|
55885
|
+
query,
|
|
55886
|
+
limit,
|
|
55887
|
+
0,
|
|
55888
|
+
// No threshold — let the pattern service decide relevance
|
|
55889
|
+
format
|
|
55890
|
+
);
|
|
55894
55891
|
context.logger.info("File inspection completed", {
|
|
55895
55892
|
query,
|
|
55896
55893
|
similarFilesCount,
|
|
@@ -58093,39 +58090,6 @@ var require_prompts = __commonJS({
|
|
|
58093
58090
|
* Register default prompts that ship with dev-agent
|
|
58094
58091
|
*/
|
|
58095
58092
|
registerDefaultPrompts() {
|
|
58096
|
-
this.register({
|
|
58097
|
-
name: "analyze-issue",
|
|
58098
|
-
description: "Analyze a GitHub issue and create an implementation plan",
|
|
58099
|
-
arguments: [
|
|
58100
|
-
{
|
|
58101
|
-
name: "issue_number",
|
|
58102
|
-
description: "GitHub issue number to analyze",
|
|
58103
|
-
required: true
|
|
58104
|
-
},
|
|
58105
|
-
{
|
|
58106
|
-
name: "detail_level",
|
|
58107
|
-
description: "Level of detail for the plan (simple or detailed)",
|
|
58108
|
-
required: false
|
|
58109
|
-
}
|
|
58110
|
-
]
|
|
58111
|
-
}, (args) => ({
|
|
58112
|
-
description: `Analyze GitHub issue #${args.issue_number} and create implementation plan`,
|
|
58113
|
-
messages: [
|
|
58114
|
-
{
|
|
58115
|
-
role: "user",
|
|
58116
|
-
content: {
|
|
58117
|
-
type: "text",
|
|
58118
|
-
text: `Please analyze GitHub issue #${args.issue_number} and create a detailed implementation plan.
|
|
58119
|
-
|
|
58120
|
-
Steps:
|
|
58121
|
-
1. Use dev_gh with action "context" to get full issue details and related items
|
|
58122
|
-
2. Use dev_search to find relevant code that needs to be modified
|
|
58123
|
-
3. Use dev_plan to generate a structured implementation plan${args.detail_level ? ` with detailLevel "${args.detail_level}"` : ""}
|
|
58124
|
-
4. Summarize the approach, key files, and estimated complexity`
|
|
58125
|
-
}
|
|
58126
|
-
}
|
|
58127
|
-
]
|
|
58128
|
-
}));
|
|
58129
58093
|
this.register({
|
|
58130
58094
|
name: "find-pattern",
|
|
58131
58095
|
description: "Search the codebase for specific patterns or functionality",
|
|
@@ -58176,11 +58140,9 @@ Then provide:
|
|
|
58176
58140
|
text: `Provide a comprehensive overview of the repository status:
|
|
58177
58141
|
|
|
58178
58142
|
1. Use dev_status with section "summary" and format "verbose" for detailed stats
|
|
58179
|
-
2.
|
|
58180
|
-
3. Summarize:
|
|
58143
|
+
2. Summarize:
|
|
58181
58144
|
- Repository health (indexing status, storage size)
|
|
58182
58145
|
- Code metrics (files, components, vectors)
|
|
58183
|
-
- GitHub activity (open issues, recent PRs)
|
|
58184
58146
|
- Any recommendations for maintenance`
|
|
58185
58147
|
}
|
|
58186
58148
|
}
|
|
@@ -58210,7 +58172,7 @@ Then provide:
|
|
|
58210
58172
|
type: "text",
|
|
58211
58173
|
text: `Find code that is similar to "${args.file_path}":
|
|
58212
58174
|
|
|
58213
|
-
Use
|
|
58175
|
+
Use dev_patterns with:
|
|
58214
58176
|
- query: "${args.file_path}"${args.threshold ? `
|
|
58215
58177
|
- threshold: ${args.threshold}` : ""}
|
|
58216
58178
|
- format: "verbose"
|
|
@@ -58224,51 +58186,6 @@ Then explain:
|
|
|
58224
58186
|
}
|
|
58225
58187
|
]
|
|
58226
58188
|
}));
|
|
58227
|
-
this.register({
|
|
58228
|
-
name: "search-github",
|
|
58229
|
-
description: "Search GitHub issues and pull requests by topic",
|
|
58230
|
-
arguments: [
|
|
58231
|
-
{
|
|
58232
|
-
name: "query",
|
|
58233
|
-
description: 'What to search for (e.g., "authentication bug", "performance improvement")',
|
|
58234
|
-
required: true
|
|
58235
|
-
},
|
|
58236
|
-
{
|
|
58237
|
-
name: "type",
|
|
58238
|
-
description: 'Filter by type: "issue" or "pull_request"',
|
|
58239
|
-
required: false
|
|
58240
|
-
},
|
|
58241
|
-
{
|
|
58242
|
-
name: "state",
|
|
58243
|
-
description: 'Filter by state: "open", "closed", or "merged"',
|
|
58244
|
-
required: false
|
|
58245
|
-
}
|
|
58246
|
-
]
|
|
58247
|
-
}, (args) => ({
|
|
58248
|
-
description: `Search GitHub for: ${args.query}`,
|
|
58249
|
-
messages: [
|
|
58250
|
-
{
|
|
58251
|
-
role: "user",
|
|
58252
|
-
content: {
|
|
58253
|
-
type: "text",
|
|
58254
|
-
text: `Search GitHub for "${args.query}":
|
|
58255
|
-
|
|
58256
|
-
Use dev_gh with:
|
|
58257
|
-
- action: "search"
|
|
58258
|
-
- query: "${args.query}"${args.type ? `
|
|
58259
|
-
- type: "${args.type}"` : ""}${args.state ? `
|
|
58260
|
-
- state: "${args.state}"` : ""}
|
|
58261
|
-
- limit: 10
|
|
58262
|
-
|
|
58263
|
-
Provide:
|
|
58264
|
-
1. Summary of relevant items found
|
|
58265
|
-
2. Key themes or patterns
|
|
58266
|
-
3. Status overview (how many open vs closed)
|
|
58267
|
-
4. Suggestions for next steps`
|
|
58268
|
-
}
|
|
58269
|
-
}
|
|
58270
|
-
]
|
|
58271
|
-
}));
|
|
58272
58189
|
this.register({
|
|
58273
58190
|
name: "explore-relationships",
|
|
58274
58191
|
description: "Explore dependencies and relationships in the codebase",
|
|
@@ -58290,7 +58207,7 @@ Provide:
|
|
|
58290
58207
|
|
|
58291
58208
|
Use dev_refs to find what calls or is called by functions in this file.
|
|
58292
58209
|
|
|
58293
|
-
Alternatively, use
|
|
58210
|
+
Alternatively, use dev_patterns with:
|
|
58294
58211
|
- query: "${args.file_path}"
|
|
58295
58212
|
- format: "verbose"
|
|
58296
58213
|
|
|
@@ -58306,50 +58223,6 @@ Then explain:
|
|
|
58306
58223
|
}
|
|
58307
58224
|
]
|
|
58308
58225
|
}));
|
|
58309
|
-
this.register({
|
|
58310
|
-
name: "create-plan",
|
|
58311
|
-
description: "Create detailed implementation plan for a GitHub issue",
|
|
58312
|
-
arguments: [
|
|
58313
|
-
{
|
|
58314
|
-
name: "issue_number",
|
|
58315
|
-
description: "GitHub issue number to plan for",
|
|
58316
|
-
required: true
|
|
58317
|
-
},
|
|
58318
|
-
{
|
|
58319
|
-
name: "detail_level",
|
|
58320
|
-
description: 'Plan detail level: "simple" or "detailed" (default)',
|
|
58321
|
-
required: false
|
|
58322
|
-
},
|
|
58323
|
-
{
|
|
58324
|
-
name: "use_explorer",
|
|
58325
|
-
description: "Use semantic search to find relevant code (true/false, default: true)",
|
|
58326
|
-
required: false
|
|
58327
|
-
}
|
|
58328
|
-
]
|
|
58329
|
-
}, (args) => ({
|
|
58330
|
-
description: `Create implementation plan for issue #${args.issue_number}`,
|
|
58331
|
-
messages: [
|
|
58332
|
-
{
|
|
58333
|
-
role: "user",
|
|
58334
|
-
content: {
|
|
58335
|
-
type: "text",
|
|
58336
|
-
text: `Create an implementation plan for GitHub issue #${args.issue_number}:
|
|
58337
|
-
|
|
58338
|
-
Use dev_plan with:
|
|
58339
|
-
- issue: ${args.issue_number}${args.detail_level ? `
|
|
58340
|
-
- detailLevel: "${args.detail_level}"` : ""}${args.use_explorer === "false" ? "\n- useExplorer: false" : ""}
|
|
58341
|
-
|
|
58342
|
-
The tool will:
|
|
58343
|
-
1. Fetch the issue details
|
|
58344
|
-
2. Find relevant code using semantic search
|
|
58345
|
-
3. Break down the work into specific tasks
|
|
58346
|
-
4. Estimate complexity and dependencies
|
|
58347
|
-
|
|
58348
|
-
Review the plan and suggest any modifications or improvements.`
|
|
58349
|
-
}
|
|
58350
|
-
}
|
|
58351
|
-
]
|
|
58352
|
-
}));
|
|
58353
58226
|
this.register({
|
|
58354
58227
|
name: "quick-search",
|
|
58355
58228
|
description: "Quick semantic search across the codebase",
|