projscan 2.1.0 → 2.8.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/README.md +57 -26
- package/dist/analyzers/supplyChainCheck.d.ts +2 -0
- package/dist/analyzers/supplyChainCheck.js +400 -0
- package/dist/analyzers/supplyChainCheck.js.map +1 -0
- package/dist/cli/commands/agentBrief.d.ts +1 -0
- package/dist/cli/commands/agentBrief.js +68 -0
- package/dist/cli/commands/agentBrief.js.map +1 -0
- package/dist/cli/commands/bugHunt.d.ts +1 -0
- package/dist/cli/commands/bugHunt.js +59 -0
- package/dist/cli/commands/bugHunt.js.map +1 -0
- package/dist/cli/commands/evidencePack.d.ts +1 -0
- package/dist/cli/commands/evidencePack.js +70 -0
- package/dist/cli/commands/evidencePack.js.map +1 -0
- package/dist/cli/commands/qualityScorecard.d.ts +1 -0
- package/dist/cli/commands/qualityScorecard.js +61 -0
- package/dist/cli/commands/qualityScorecard.js.map +1 -0
- package/dist/cli/commands/regressionPlan.d.ts +1 -0
- package/dist/cli/commands/regressionPlan.js +77 -0
- package/dist/cli/commands/regressionPlan.js.map +1 -0
- package/dist/cli/commands/releaseTrain.d.ts +1 -0
- package/dist/cli/commands/releaseTrain.js +58 -0
- package/dist/cli/commands/releaseTrain.js.map +1 -0
- package/dist/cli/commands/workplan.d.ts +1 -0
- package/dist/cli/commands/workplan.js +136 -0
- package/dist/cli/commands/workplan.js.map +1 -0
- package/dist/cli/index.js +14 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/agentBrief.d.ts +6 -0
- package/dist/core/agentBrief.js +192 -0
- package/dist/core/agentBrief.js.map +1 -0
- package/dist/core/bugHunt.d.ts +6 -0
- package/dist/core/bugHunt.js +278 -0
- package/dist/core/bugHunt.js.map +1 -0
- package/dist/core/issueEngine.js +2 -0
- package/dist/core/issueEngine.js.map +1 -1
- package/dist/core/preflight.js +38 -4
- package/dist/core/preflight.js.map +1 -1
- package/dist/core/qualityScorecard.d.ts +6 -0
- package/dist/core/qualityScorecard.js +220 -0
- package/dist/core/qualityScorecard.js.map +1 -0
- package/dist/core/regressionPlan.d.ts +7 -0
- package/dist/core/regressionPlan.js +226 -0
- package/dist/core/regressionPlan.js.map +1 -0
- package/dist/core/releaseEvidence.d.ts +7 -0
- package/dist/core/releaseEvidence.js +174 -0
- package/dist/core/releaseEvidence.js.map +1 -0
- package/dist/core/releaseTrain.d.ts +5 -0
- package/dist/core/releaseTrain.js +348 -0
- package/dist/core/releaseTrain.js.map +1 -0
- package/dist/core/review.js +31 -2
- package/dist/core/review.js.map +1 -1
- package/dist/core/workplan.d.ts +12 -0
- package/dist/core/workplan.js +440 -0
- package/dist/core/workplan.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/tools/agentBrief.d.ts +2 -0
- package/dist/mcp/tools/agentBrief.js +39 -0
- package/dist/mcp/tools/agentBrief.js.map +1 -0
- package/dist/mcp/tools/bugHunt.d.ts +2 -0
- package/dist/mcp/tools/bugHunt.js +31 -0
- package/dist/mcp/tools/bugHunt.js.map +1 -0
- package/dist/mcp/tools/evidencePack.d.ts +2 -0
- package/dist/mcp/tools/evidencePack.js +39 -0
- package/dist/mcp/tools/evidencePack.js.map +1 -0
- package/dist/mcp/tools/qualityScorecard.d.ts +2 -0
- package/dist/mcp/tools/qualityScorecard.js +26 -0
- package/dist/mcp/tools/qualityScorecard.js.map +1 -0
- package/dist/mcp/tools/regressionPlan.d.ts +2 -0
- package/dist/mcp/tools/regressionPlan.js +47 -0
- package/dist/mcp/tools/regressionPlan.js.map +1 -0
- package/dist/mcp/tools/releaseTrain.d.ts +2 -0
- package/dist/mcp/tools/releaseTrain.js +27 -0
- package/dist/mcp/tools/releaseTrain.js.map +1 -0
- package/dist/mcp/tools/workplan.d.ts +2 -0
- package/dist/mcp/tools/workplan.js +70 -0
- package/dist/mcp/tools/workplan.js.map +1 -0
- package/dist/mcp/tools.js +14 -0
- package/dist/mcp/tools.js.map +1 -1
- package/dist/projscan-sbom.cdx.json +4589 -0
- package/dist/tool-manifest.json +196 -3
- package/dist/types.d.ts +245 -1
- package/dist/utils/formatSupport.d.ts +8 -0
- package/dist/utils/formatSupport.js +8 -0
- package/dist/utils/formatSupport.js.map +1 -1
- package/package.json +9 -6
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,13 @@ export { loadConfig, applyConfigToIssues } from './utils/config.js';
|
|
|
31
31
|
export { getChangedFiles } from './utils/changedFiles.js';
|
|
32
32
|
export { issuesToSarif } from './reporters/sarifReporter.js';
|
|
33
33
|
export { computeReview } from './core/review.js';
|
|
34
|
+
export { computeWorkplan } from './core/workplan.js';
|
|
35
|
+
export { computeReleaseTrain } from './core/releaseTrain.js';
|
|
36
|
+
export { computeBugHunt } from './core/bugHunt.js';
|
|
37
|
+
export { computeEvidencePack } from './core/releaseEvidence.js';
|
|
38
|
+
export { computeRegressionPlan } from './core/regressionPlan.js';
|
|
39
|
+
export { computeAgentBrief } from './core/agentBrief.js';
|
|
40
|
+
export { computeQualityScorecard } from './core/qualityScorecard.js';
|
|
34
41
|
export { suggestFixForIssue, previewSuggestionForIssue, syntheticIssue, findIssue } from './core/fixSuggest.js';
|
|
35
42
|
export { explainIssue } from './core/explainIssue.js';
|
|
36
43
|
export { computeImpact } from './core/impact.js';
|
|
@@ -42,4 +49,4 @@ export { getPromptDefinitions } from './mcp/prompts.js';
|
|
|
42
49
|
export { getResourceDefinitions } from './mcp/resources.js';
|
|
43
50
|
export { BUILTIN_LANGUAGE_IDS } from './core/languages/LanguageAdapter.js';
|
|
44
51
|
export type { BuiltinLanguageId, LanguageId, LanguageAdapter } from './core/languages/LanguageAdapter.js';
|
|
45
|
-
export type { ScanResult, FileEntry, DirectoryNode, LanguageBreakdown, LanguageStat, FrameworkResult, DetectedFramework, DependencyReport, DependencyRisk, Issue, IssueLocation, IssueSeverity, Fix, FixResult, FileExplanation, FileInspection, FunctionDetail, ImportInfo, ExportInfo, ArchitectureLayer, AnalysisReport, ReportFormat, FileHotspot, HotspotReport, AuthorShare, BaselineHotspot, HotspotDelta, HotspotDiffSummary, McpToolDefinition, McpPromptDefinition, McpResourceDefinition, ProjscanConfig, LoadedConfig, SemverDrift, OutdatedPackage, OutdatedReport, AuditSeverity, AuditFinding, AuditReport, UpgradePreview, CoverageSource, FileCoverage, CoverageReport, CoverageJoinedHotspot, CoverageJoinedReport, ReviewReport, ReviewFile, ReviewCycle, ReviewFunction, ReviewDependencyChange, FixSuggestion, IssueExplanation, ImportPolicyRule, ImpactReport, ImpactNode, } from './types.js';
|
|
52
|
+
export type { ScanResult, FileEntry, DirectoryNode, LanguageBreakdown, LanguageStat, FrameworkResult, DetectedFramework, DependencyReport, DependencyRisk, Issue, IssueLocation, IssueSeverity, Fix, FixResult, FileExplanation, FileInspection, FunctionDetail, ImportInfo, ExportInfo, ArchitectureLayer, AnalysisReport, AgentBriefGuardrail, AgentBriefIntent, AgentBriefItem, AgentBriefReport, ReportFormat, FileHotspot, HotspotReport, AuthorShare, BaselineHotspot, HotspotDelta, HotspotDiffSummary, McpToolDefinition, McpPromptDefinition, McpResourceDefinition, ProjscanConfig, LoadedConfig, SemverDrift, OutdatedPackage, OutdatedReport, AuditSeverity, AuditFinding, AuditReport, UpgradePreview, CoverageSource, FileCoverage, CoverageReport, CoverageJoinedHotspot, CoverageJoinedReport, ReviewReport, ReviewFile, ReviewCycle, ReviewFunction, ReviewDependencyChange, FixSuggestion, IssueExplanation, ImportPolicyRule, ImpactReport, ImpactNode, BugHuntFinding, BugHuntReport, BugHuntVerdict, EvidencePackArtifact, EvidencePackArtifactStatus, EvidencePackReport, EvidencePackVerdict, RegressionPlanLevel, RegressionPlanReport, RegressionPlanTarget, RegressionPlanVerdict, QualityScorecardDimension, QualityScorecardReport, QualityScorecardRisk, QualityScorecardStatus, QualityScorecardVerdict, ReleaseTrainReport, ReleaseTrainTask, ReleaseTrainTrack, WorkplanCoordination, WorkplanEvidence, WorkplanMode, WorkplanPriority, WorkplanReport, WorkplanTask, WorkplanTopRisk, WorkplanVerification, } from './types.js';
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,13 @@ export { loadConfig, applyConfigToIssues } from './utils/config.js';
|
|
|
29
29
|
export { getChangedFiles } from './utils/changedFiles.js';
|
|
30
30
|
export { issuesToSarif } from './reporters/sarifReporter.js';
|
|
31
31
|
export { computeReview } from './core/review.js';
|
|
32
|
+
export { computeWorkplan } from './core/workplan.js';
|
|
33
|
+
export { computeReleaseTrain } from './core/releaseTrain.js';
|
|
34
|
+
export { computeBugHunt } from './core/bugHunt.js';
|
|
35
|
+
export { computeEvidencePack } from './core/releaseEvidence.js';
|
|
36
|
+
export { computeRegressionPlan } from './core/regressionPlan.js';
|
|
37
|
+
export { computeAgentBrief } from './core/agentBrief.js';
|
|
38
|
+
export { computeQualityScorecard } from './core/qualityScorecard.js';
|
|
32
39
|
export { suggestFixForIssue, previewSuggestionForIssue, syntheticIssue, findIssue } from './core/fixSuggest.js';
|
|
33
40
|
export { explainIssue } from './core/explainIssue.js';
|
|
34
41
|
export { computeImpact } from './core/impact.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,aAAa,E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E,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { computeAgentBrief } from '../../core/agentBrief.js';
|
|
2
|
+
const INTENTS = ['next_agent', 'bug_hunt', 'release', 'refactor', 'hardening'];
|
|
3
|
+
export const agentBriefTool = {
|
|
4
|
+
name: 'projscan_agent_brief',
|
|
5
|
+
description: 'Create a compact next-agent context packet with prioritized focus items, repo context, guardrails, and suggested next actions.',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
intent: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
enum: INTENTS,
|
|
12
|
+
description: 'Brief intent. Default: next_agent.',
|
|
13
|
+
},
|
|
14
|
+
max_items: {
|
|
15
|
+
type: 'number',
|
|
16
|
+
description: 'Maximum focus items to return. Default: 6, max: 20.',
|
|
17
|
+
},
|
|
18
|
+
max_tokens: {
|
|
19
|
+
type: 'number',
|
|
20
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
handler: async (args, rootPath) => ({
|
|
25
|
+
agentBrief: await computeAgentBrief(rootPath, {
|
|
26
|
+
intent: readIntent(args.intent),
|
|
27
|
+
maxItems: typeof args.max_items === 'number' && Number.isFinite(args.max_items)
|
|
28
|
+
? args.max_items
|
|
29
|
+
: undefined,
|
|
30
|
+
}),
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
function readIntent(value) {
|
|
34
|
+
if (typeof value === 'string' && INTENTS.includes(value)) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=agentBrief.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentBrief.js","sourceRoot":"","sources":["../../../src/mcp/tools/agentBrief.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAI7D,MAAM,OAAO,GAAgC,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;AAE5G,MAAM,CAAC,MAAM,cAAc,GAAY;IACrC,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,gIAAgI;IAClI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,oCAAoC;aAClD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qDAAqD;aACnE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClC,UAAU,EAAE,MAAM,iBAAiB,CAAC,QAAQ,EAAE;YAC5C,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;YAC/B,QAAQ,EACN,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;gBACnE,CAAC,CAAC,IAAI,CAAC,SAAS;gBAChB,CAAC,CAAC,SAAS;SAChB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,SAAS,UAAU,CAAC,KAAc;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAK,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAChF,OAAO,KAAyB,CAAC;IACnC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { computeBugHunt } from '../../core/bugHunt.js';
|
|
2
|
+
export const bugHuntTool = {
|
|
3
|
+
name: 'projscan_bug_hunt',
|
|
4
|
+
description: 'Run an agent-ready bug hunt. Combines doctor issues, preflight verdict, hotspots, and session coordination into a prioritized fix queue with verification commands.',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
max_findings: {
|
|
9
|
+
type: 'number',
|
|
10
|
+
description: 'Maximum number of fix-queue findings to return. Default: 10, max: 25.',
|
|
11
|
+
},
|
|
12
|
+
since: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'Git history window for hotspot evidence. Examples: "6 months ago", "2024-01-01".',
|
|
15
|
+
},
|
|
16
|
+
max_tokens: {
|
|
17
|
+
type: 'number',
|
|
18
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
handler: async (args, rootPath) => ({
|
|
23
|
+
bugHunt: await computeBugHunt(rootPath, {
|
|
24
|
+
maxFindings: typeof args.max_findings === 'number' && Number.isFinite(args.max_findings)
|
|
25
|
+
? args.max_findings
|
|
26
|
+
: undefined,
|
|
27
|
+
since: typeof args.since === 'string' ? args.since : undefined,
|
|
28
|
+
}),
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=bugHunt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugHunt.js","sourceRoot":"","sources":["../../../src/mcp/tools/bugHunt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,MAAM,CAAC,MAAM,WAAW,GAAY;IAClC,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,qKAAqK;IACvK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uEAAuE;aACrF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kFAAkF;aAChG;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClC,OAAO,EAAE,MAAM,cAAc,CAAC,QAAQ,EAAE;YACtC,WAAW,EACT,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;gBACzE,CAAC,CAAC,IAAI,CAAC,YAAY;gBACnB,CAAC,CAAC,SAAS;YACf,KAAK,EAAE,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;SAC/D,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { computeEvidencePack } from '../../core/releaseEvidence.js';
|
|
2
|
+
export const evidencePackTool = {
|
|
3
|
+
name: 'projscan_evidence_pack',
|
|
4
|
+
description: 'Assemble one approval packet from product planning, bug-hunt, workplan, and preflight evidence.',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
lines: {
|
|
9
|
+
type: 'array',
|
|
10
|
+
items: { type: 'string' },
|
|
11
|
+
description: 'Product lines to include. Default: next six minor lines.',
|
|
12
|
+
},
|
|
13
|
+
website_prompt: {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
description: 'Include website-update prompt text in the response.',
|
|
16
|
+
},
|
|
17
|
+
max_findings: {
|
|
18
|
+
type: 'number',
|
|
19
|
+
description: 'Maximum bug-hunt findings to include. Default: 10, max: 25.',
|
|
20
|
+
},
|
|
21
|
+
max_tokens: {
|
|
22
|
+
type: 'number',
|
|
23
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
handler: async (args, rootPath) => ({
|
|
28
|
+
evidencePack: await computeEvidencePack(rootPath, {
|
|
29
|
+
lines: Array.isArray(args.lines)
|
|
30
|
+
? args.lines.filter((line) => typeof line === 'string')
|
|
31
|
+
: undefined,
|
|
32
|
+
includeWebsitePrompt: args.website_prompt === true,
|
|
33
|
+
maxFindings: typeof args.max_findings === 'number' && Number.isFinite(args.max_findings)
|
|
34
|
+
? args.max_findings
|
|
35
|
+
: undefined,
|
|
36
|
+
}),
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=evidencePack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evidencePack.js","sourceRoot":"","sources":["../../../src/mcp/tools/evidencePack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,MAAM,CAAC,MAAM,gBAAgB,GAAY;IACvC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EACT,iGAAiG;IACnG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EAAE,0DAA0D;aACxE;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qDAAqD;aACnE;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6DAA6D;aAC3E;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClC,YAAY,EAAE,MAAM,mBAAmB,CAAC,QAAQ,EAAE;YAChD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC9B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC;gBACvE,CAAC,CAAC,SAAS;YACb,oBAAoB,EAAE,IAAI,CAAC,cAAc,KAAK,IAAI;YAClD,WAAW,EACT,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;gBACzE,CAAC,CAAC,IAAI,CAAC,YAAY;gBACnB,CAAC,CAAC,SAAS;SAChB,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { computeQualityScorecard } from '../../core/qualityScorecard.js';
|
|
2
|
+
export const qualityScorecardTool = {
|
|
3
|
+
name: 'projscan_quality_scorecard',
|
|
4
|
+
description: 'Summarize quality dimensions, top risks, verification commands, and suggested next actions for agents and reviewers.',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
max_risks: {
|
|
9
|
+
type: 'number',
|
|
10
|
+
description: 'Maximum top risks to return. Default: 8, max: 25.',
|
|
11
|
+
},
|
|
12
|
+
max_tokens: {
|
|
13
|
+
type: 'number',
|
|
14
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
handler: async (args, rootPath) => ({
|
|
19
|
+
qualityScorecard: await computeQualityScorecard(rootPath, {
|
|
20
|
+
maxRisks: typeof args.max_risks === 'number' && Number.isFinite(args.max_risks)
|
|
21
|
+
? args.max_risks
|
|
22
|
+
: undefined,
|
|
23
|
+
}),
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=qualityScorecard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualityScorecard.js","sourceRoot":"","sources":["../../../src/mcp/tools/qualityScorecard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAGzE,MAAM,CAAC,MAAM,oBAAoB,GAAY;IAC3C,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,sHAAsH;IACxH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClC,gBAAgB,EAAE,MAAM,uBAAuB,CAAC,QAAQ,EAAE;YACxD,QAAQ,EACN,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;gBACnE,CAAC,CAAC,IAAI,CAAC,SAAS;gBAChB,CAAC,CAAC,SAAS;SAChB,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { computeRegressionPlan } from '../../core/regressionPlan.js';
|
|
2
|
+
const LEVELS = ['smoke', 'focused', 'full'];
|
|
3
|
+
export const regressionPlanTool = {
|
|
4
|
+
name: 'projscan_regression_plan',
|
|
5
|
+
description: 'Build a smoke, focused, or full regression matrix from bug-hunt, preflight, and product risk signals.',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
level: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
enum: LEVELS,
|
|
12
|
+
description: 'Regression depth. Default: focused.',
|
|
13
|
+
},
|
|
14
|
+
lines: {
|
|
15
|
+
type: 'array',
|
|
16
|
+
items: { type: 'string' },
|
|
17
|
+
description: 'Product lines to include. Default: next six minor lines.',
|
|
18
|
+
},
|
|
19
|
+
max_targets: {
|
|
20
|
+
type: 'number',
|
|
21
|
+
description: 'Maximum regression targets to include. Default: 8, max: 25.',
|
|
22
|
+
},
|
|
23
|
+
max_tokens: {
|
|
24
|
+
type: 'number',
|
|
25
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
handler: async (args, rootPath) => ({
|
|
30
|
+
regressionPlan: await computeRegressionPlan(rootPath, {
|
|
31
|
+
level: readLevel(args.level),
|
|
32
|
+
lines: Array.isArray(args.lines)
|
|
33
|
+
? args.lines.filter((line) => typeof line === 'string')
|
|
34
|
+
: undefined,
|
|
35
|
+
maxTargets: typeof args.max_targets === 'number' && Number.isFinite(args.max_targets)
|
|
36
|
+
? args.max_targets
|
|
37
|
+
: undefined,
|
|
38
|
+
}),
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
function readLevel(value) {
|
|
42
|
+
if (typeof value === 'string' && LEVELS.includes(value)) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=regressionPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regressionPlan.js","sourceRoot":"","sources":["../../../src/mcp/tools/regressionPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAIrE,MAAM,MAAM,GAA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AAK,KAAK,QAAQ,IAAK,MAA4B,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/E,OAAO,KAA4B,CAAC;IACtC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { computeReleaseTrain } from '../../core/releaseTrain.js';
|
|
2
|
+
export const releaseTrainTool = {
|
|
3
|
+
name: 'projscan_release_train',
|
|
4
|
+
description: 'Plan upcoming product lines with version, scope, readiness, and next-action evidence.',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
lines: {
|
|
9
|
+
type: 'array',
|
|
10
|
+
items: { type: 'string' },
|
|
11
|
+
description: 'Product lines to include. Default: next six minor lines.',
|
|
12
|
+
},
|
|
13
|
+
max_tokens: {
|
|
14
|
+
type: 'number',
|
|
15
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
handler: async (args, rootPath) => ({
|
|
20
|
+
releaseTrain: await computeReleaseTrain(rootPath, {
|
|
21
|
+
lines: Array.isArray(args.lines)
|
|
22
|
+
? args.lines.filter((line) => typeof line === 'string')
|
|
23
|
+
: undefined,
|
|
24
|
+
}),
|
|
25
|
+
}),
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=releaseTrain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releaseTrain.js","sourceRoot":"","sources":["../../../src/mcp/tools/releaseTrain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,MAAM,CAAC,MAAM,gBAAgB,GAAY;IACvC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EACT,uFAAuF;IACzF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EAAE,0DAA0D;aACxE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAClC,YAAY,EAAE,MAAM,mBAAmB,CAAC,QAAQ,EAAE;YAChD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC9B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC;gBACvE,CAAC,CAAC,SAAS;SACd,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { computeWorkplan, isWorkplanMode } from '../../core/workplan.js';
|
|
2
|
+
const WORKPLAN_MODES = [
|
|
3
|
+
'before_edit',
|
|
4
|
+
'before_commit',
|
|
5
|
+
'before_merge',
|
|
6
|
+
'refactor',
|
|
7
|
+
'release',
|
|
8
|
+
'bug_hunt',
|
|
9
|
+
'hardening',
|
|
10
|
+
];
|
|
11
|
+
export const workplanTool = {
|
|
12
|
+
name: 'projscan_workplan',
|
|
13
|
+
description: 'Compose preflight, review, session, hotspot, plugin, and supply-chain signals into an ordered agent execution plan with evidence, suggested tools, verification commands, and handoff text.',
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
mode: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: WORKPLAN_MODES,
|
|
20
|
+
description: 'Planning mode. before_edit/before_commit/before_merge mirror preflight gates; refactor, release, bug_hunt, and hardening add mode-specific task recipes. Default: before_edit.',
|
|
21
|
+
},
|
|
22
|
+
base_ref: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Optional git base ref for commit/merge/release checks.',
|
|
25
|
+
},
|
|
26
|
+
head_ref: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Optional git head ref for merge/release checks.',
|
|
29
|
+
},
|
|
30
|
+
max_changed_files: {
|
|
31
|
+
type: 'number',
|
|
32
|
+
description: 'Optional caution threshold for changed-file count. Default: 50.',
|
|
33
|
+
},
|
|
34
|
+
max_tasks: {
|
|
35
|
+
type: 'number',
|
|
36
|
+
description: 'Maximum number of workplan tasks to return. Default: 8, max: 20.',
|
|
37
|
+
},
|
|
38
|
+
enable_plugins: {
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
description: 'Enable local analyzer plugins for this run, equivalent to PROJSCAN_PLUGINS_PREVIEW=1.',
|
|
41
|
+
},
|
|
42
|
+
max_tokens: {
|
|
43
|
+
type: 'number',
|
|
44
|
+
description: 'Cap the response to roughly this many tokens.',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
handler: async (args, rootPath) => {
|
|
49
|
+
return {
|
|
50
|
+
workplan: await computeWorkplan(rootPath, {
|
|
51
|
+
mode: readMode(args.mode),
|
|
52
|
+
baseRef: typeof args.base_ref === 'string' ? args.base_ref : undefined,
|
|
53
|
+
headRef: typeof args.head_ref === 'string' ? args.head_ref : undefined,
|
|
54
|
+
maxChangedFiles: typeof args.max_changed_files === 'number' && Number.isFinite(args.max_changed_files)
|
|
55
|
+
? args.max_changed_files
|
|
56
|
+
: undefined,
|
|
57
|
+
maxTasks: typeof args.max_tasks === 'number' && Number.isFinite(args.max_tasks)
|
|
58
|
+
? args.max_tasks
|
|
59
|
+
: undefined,
|
|
60
|
+
enablePlugins: args.enable_plugins === true,
|
|
61
|
+
}),
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function readMode(value) {
|
|
66
|
+
if (typeof value === 'string' && isWorkplanMode(value))
|
|
67
|
+
return value;
|
|
68
|
+
return 'before_edit';
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=workplan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workplan.js","sourceRoot":"","sources":["../../../src/mcp/tools/workplan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAIzE,MAAM,cAAc,GAA4B;IAC9C,aAAa;IACb,eAAe;IACf,cAAc;IACd,UAAU;IACV,SAAS;IACT,UAAU;IACV,WAAW;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAY;IACnC,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,6LAA6L;IAC/L,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,cAAc;gBACpB,WAAW,EACT,gLAAgL;aACnL;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wDAAwD;aACtE;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;aAC/D;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iEAAiE;aAC/E;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kEAAkE;aAChF;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,uFAAuF;aACrG;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAChC,OAAO;YACL,QAAQ,EAAE,MAAM,eAAe,CAAC,QAAQ,EAAE;gBACxC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;gBACzB,OAAO,EAAE,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;gBACtE,OAAO,EAAE,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;gBACtE,eAAe,EACb,OAAO,IAAI,CAAC,iBAAiB,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC;oBACnF,CAAC,CAAC,IAAI,CAAC,iBAAiB;oBACxB,CAAC,CAAC,SAAS;gBACf,QAAQ,EACN,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;oBACnE,CAAC,CAAC,IAAI,CAAC,SAAS;oBAChB,CAAC,CAAC,SAAS;gBACf,aAAa,EAAE,IAAI,CAAC,cAAc,KAAK,IAAI;aAC5C,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,SAAS,QAAQ,CAAC,KAAc;IAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,cAAc,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACrE,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
package/dist/mcp/tools.js
CHANGED
|
@@ -37,6 +37,13 @@ import { costSummaryTool } from './tools/costSummary.js';
|
|
|
37
37
|
import { reviewWatchTool } from './tools/reviewWatch.js';
|
|
38
38
|
import { pluginTool } from './tools/plugin.js';
|
|
39
39
|
import { preflightTool } from './tools/preflight.js';
|
|
40
|
+
import { workplanTool } from './tools/workplan.js';
|
|
41
|
+
import { releaseTrainTool } from './tools/releaseTrain.js';
|
|
42
|
+
import { bugHuntTool } from './tools/bugHunt.js';
|
|
43
|
+
import { evidencePackTool } from './tools/evidencePack.js';
|
|
44
|
+
import { regressionPlanTool } from './tools/regressionPlan.js';
|
|
45
|
+
import { agentBriefTool } from './tools/agentBrief.js';
|
|
46
|
+
import { qualityScorecardTool } from './tools/qualityScorecard.js';
|
|
40
47
|
const tools = [
|
|
41
48
|
analyzeTool,
|
|
42
49
|
doctorTool,
|
|
@@ -67,6 +74,13 @@ const tools = [
|
|
|
67
74
|
reviewWatchTool,
|
|
68
75
|
pluginTool,
|
|
69
76
|
preflightTool,
|
|
77
|
+
workplanTool,
|
|
78
|
+
releaseTrainTool,
|
|
79
|
+
bugHuntTool,
|
|
80
|
+
evidencePackTool,
|
|
81
|
+
regressionPlanTool,
|
|
82
|
+
agentBriefTool,
|
|
83
|
+
qualityScorecardTool,
|
|
70
84
|
];
|
|
71
85
|
export function getToolDefinitions() {
|
|
72
86
|
return tools.map(({ name, description, inputSchema }) => ({ name, description, inputSchema }));
|
package/dist/mcp/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD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