@poltergeist-ai/cli 0.1.0 → 0.1.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/README.md +204 -0
- package/dist/cli.js +494 -46
- package/dist/index.d.ts +36 -0
- package/dist/index.js +494 -46
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,29 @@ interface ReviewSignals {
|
|
|
38
38
|
totalComments: number;
|
|
39
39
|
source: "github" | "gitlab";
|
|
40
40
|
}
|
|
41
|
+
interface ReviewTheme {
|
|
42
|
+
theme: string;
|
|
43
|
+
label: string;
|
|
44
|
+
count: number;
|
|
45
|
+
/** Proportion of comments touching this theme (0–1) */
|
|
46
|
+
ratio: number;
|
|
47
|
+
/** Verbatim snippets that matched this theme */
|
|
48
|
+
exampleSnippets: string[];
|
|
49
|
+
}
|
|
50
|
+
interface CommentToneProfile {
|
|
51
|
+
/** Fraction of comments that include praise / positive reinforcement */
|
|
52
|
+
praiseRatio: number;
|
|
53
|
+
/** Fraction of comments that explain "why" (not just "what") */
|
|
54
|
+
explanationRatio: number;
|
|
55
|
+
/** Fraction that suggest alternatives ("consider", "what about") */
|
|
56
|
+
suggestiveRatio: number;
|
|
57
|
+
/** Fraction that are direct imperatives ("rename this", "remove this") */
|
|
58
|
+
directiveRatio: number;
|
|
59
|
+
/** Sample praise comments */
|
|
60
|
+
praiseExamples: string[];
|
|
61
|
+
/** Sample explanatory comments */
|
|
62
|
+
explanationExamples: string[];
|
|
63
|
+
}
|
|
41
64
|
interface ReviewObservations {
|
|
42
65
|
totalReviewComments?: number;
|
|
43
66
|
avgCommentLength?: number;
|
|
@@ -46,6 +69,14 @@ interface ReviewObservations {
|
|
|
46
69
|
usesSeverityPrefixes?: Record<string, number>;
|
|
47
70
|
sampleComments?: string[];
|
|
48
71
|
source?: "github" | "gitlab";
|
|
72
|
+
/** Ranked themes/concerns extracted from review comments */
|
|
73
|
+
reviewThemes?: ReviewTheme[];
|
|
74
|
+
/** Tone profile derived from comment language */
|
|
75
|
+
toneProfile?: CommentToneProfile;
|
|
76
|
+
/** Recurring question patterns (deduplicated, normalised) */
|
|
77
|
+
recurringQuestions?: string[];
|
|
78
|
+
/** Phrases/vocabulary the contributor uses repeatedly */
|
|
79
|
+
recurringPhrases?: string[];
|
|
49
80
|
}
|
|
50
81
|
/** @deprecated Use ReviewSignals instead */
|
|
51
82
|
type GitLabSignals = ReviewSignals;
|
|
@@ -60,6 +91,11 @@ interface CodeStyleObservation {
|
|
|
60
91
|
category: string;
|
|
61
92
|
observation: string;
|
|
62
93
|
confidence: "strong" | "moderate";
|
|
94
|
+
/**
|
|
95
|
+
* If true, this pattern is likely enforced by project linters/formatters
|
|
96
|
+
* and reflects the project config, not the contributor's personal opinion.
|
|
97
|
+
*/
|
|
98
|
+
lintEnforceable?: boolean;
|
|
63
99
|
}
|
|
64
100
|
interface CodeStyleObservations {
|
|
65
101
|
observations: CodeStyleObservation[];
|