@diffmind/shared-types 0.1.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/LICENSE +21 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +75 -0
- package/dist/index.test.js.map +1 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Diffmind Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* diffmind shared types
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for all output types produced by the ReviewAnalyzer
|
|
5
|
+
* Wasm core and consumed by the CLI and (future) browser extension.
|
|
6
|
+
*/
|
|
7
|
+
/** Severity classification of a finding. */
|
|
8
|
+
export type Severity = "high" | "medium" | "low";
|
|
9
|
+
/** Ordered severity levels for sorting/filtering. */
|
|
10
|
+
export declare const SEVERITY_ORDER: Record<Severity, number>;
|
|
11
|
+
/** Category of a review finding. */
|
|
12
|
+
export type Category = "security" | "quality" | "performance" | "maintainability";
|
|
13
|
+
/**
|
|
14
|
+
* A single finding detected in a git diff.
|
|
15
|
+
* Matches the JSON structure returned by `ReviewAnalyzer.analyze_diff()`.
|
|
16
|
+
*/
|
|
17
|
+
export interface ReviewFinding {
|
|
18
|
+
/** Relative file path, e.g. `src/auth/auth.controller.ts` */
|
|
19
|
+
file: string;
|
|
20
|
+
/** Line number in the diff where the issue was detected */
|
|
21
|
+
line: number;
|
|
22
|
+
/** Severity classification */
|
|
23
|
+
severity: Severity;
|
|
24
|
+
/** Category classification */
|
|
25
|
+
category: Category;
|
|
26
|
+
/** Human-readable description of the issue */
|
|
27
|
+
issue: string;
|
|
28
|
+
/** Concrete code fix suggestion */
|
|
29
|
+
suggested_fix: string;
|
|
30
|
+
/** Self-rated model confidence (0–1). Present when model supports it. */
|
|
31
|
+
confidence?: number;
|
|
32
|
+
}
|
|
33
|
+
/** The full analysis result — an array of findings. Empty array = no issues. */
|
|
34
|
+
export type ReviewReport = ReviewFinding[];
|
|
35
|
+
/**
|
|
36
|
+
* Parse the raw JSON string returned by the Wasm core into a typed ReviewReport.
|
|
37
|
+
* Returns an empty array if parsing fails (graceful degradation).
|
|
38
|
+
*/
|
|
39
|
+
export declare function parseReport(raw: string): ReviewReport;
|
|
40
|
+
/**
|
|
41
|
+
* Sort findings by severity (high → medium → low), then by file, then by line.
|
|
42
|
+
*/
|
|
43
|
+
export declare function sortFindings(findings: ReviewReport): ReviewReport;
|
|
44
|
+
/**
|
|
45
|
+
* Filter findings by minimum severity level.
|
|
46
|
+
* e.g. `filterBySeverity(report, "medium")` returns high + medium only.
|
|
47
|
+
*/
|
|
48
|
+
export declare function filterBySeverity(findings: ReviewReport, minSeverity: Severity): ReviewReport;
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,4CAA4C;AAC5C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEjD,qDAAqD;AACrD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAInD,CAAC;AAIF,oCAAoC;AACpC,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAIlF;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,8BAA8B;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC;AAI3C;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAQrD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,CAQjE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,QAAQ,GACpB,YAAY,CAGd"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* diffmind shared types
|
|
4
|
+
*
|
|
5
|
+
* Single source of truth for all output types produced by the ReviewAnalyzer
|
|
6
|
+
* Wasm core and consumed by the CLI and (future) browser extension.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SEVERITY_ORDER = void 0;
|
|
10
|
+
exports.parseReport = parseReport;
|
|
11
|
+
exports.sortFindings = sortFindings;
|
|
12
|
+
exports.filterBySeverity = filterBySeverity;
|
|
13
|
+
/** Ordered severity levels for sorting/filtering. */
|
|
14
|
+
exports.SEVERITY_ORDER = {
|
|
15
|
+
high: 0,
|
|
16
|
+
medium: 1,
|
|
17
|
+
low: 2,
|
|
18
|
+
};
|
|
19
|
+
// ─── Parsing Helpers ──────────────────────────────────────────────────────────
|
|
20
|
+
/**
|
|
21
|
+
* Parse the raw JSON string returned by the Wasm core into a typed ReviewReport.
|
|
22
|
+
* Returns an empty array if parsing fails (graceful degradation).
|
|
23
|
+
*/
|
|
24
|
+
function parseReport(raw) {
|
|
25
|
+
try {
|
|
26
|
+
const parsed = JSON.parse(raw);
|
|
27
|
+
if (!Array.isArray(parsed))
|
|
28
|
+
return [];
|
|
29
|
+
return parsed;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Sort findings by severity (high → medium → low), then by file, then by line.
|
|
37
|
+
*/
|
|
38
|
+
function sortFindings(findings) {
|
|
39
|
+
return [...findings].sort((a, b) => {
|
|
40
|
+
const severityDiff = exports.SEVERITY_ORDER[a.severity] - exports.SEVERITY_ORDER[b.severity];
|
|
41
|
+
if (severityDiff !== 0)
|
|
42
|
+
return severityDiff;
|
|
43
|
+
const fileDiff = a.file.localeCompare(b.file);
|
|
44
|
+
if (fileDiff !== 0)
|
|
45
|
+
return fileDiff;
|
|
46
|
+
return a.line - b.line;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Filter findings by minimum severity level.
|
|
51
|
+
* e.g. `filterBySeverity(report, "medium")` returns high + medium only.
|
|
52
|
+
*/
|
|
53
|
+
function filterBySeverity(findings, minSeverity) {
|
|
54
|
+
const threshold = exports.SEVERITY_ORDER[minSeverity];
|
|
55
|
+
return findings.filter((f) => exports.SEVERITY_ORDER[f.severity] <= threshold);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAqDH,kCAQC;AAKD,oCAQC;AAMD,4CAMC;AA/ED,qDAAqD;AACxC,QAAA,cAAc,GAA6B;IACtD,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC;CACP,CAAC;AAmCF,iFAAiF;AAEjF;;;GAGG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,OAAO,EAAE,CAAC;QACtC,OAAO,MAAsB,CAAC;IAChC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,YAAY,CAAC,QAAsB;IACjD,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACjC,MAAM,YAAY,GAAG,sBAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,sBAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC7E,IAAI,YAAY,KAAK,CAAC;YAAE,OAAO,YAAY,CAAC;QAC5C,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,QAAQ,KAAK,CAAC;YAAE,OAAO,QAAQ,CAAC;QACpC,OAAO,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,QAAsB,EACtB,WAAqB;IAErB,MAAM,SAAS,GAAG,sBAAc,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,sBAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const index_1 = require("./index");
|
|
4
|
+
describe("shared-types", () => {
|
|
5
|
+
const mockFindings = [
|
|
6
|
+
{
|
|
7
|
+
file: "auth.ts",
|
|
8
|
+
line: 10,
|
|
9
|
+
severity: "high",
|
|
10
|
+
category: "security",
|
|
11
|
+
issue: "Hardcoded secret",
|
|
12
|
+
suggested_fix: "Use environment variables",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
file: "utils.ts",
|
|
16
|
+
line: 5,
|
|
17
|
+
severity: "low",
|
|
18
|
+
category: "quality",
|
|
19
|
+
issue: "Shadowing variable",
|
|
20
|
+
suggested_fix: "Rename variable",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
file: "auth.ts",
|
|
24
|
+
line: 2,
|
|
25
|
+
severity: "medium",
|
|
26
|
+
category: "performance",
|
|
27
|
+
issue: "Inefficient loop",
|
|
28
|
+
suggested_fix: "Use map()",
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
describe("parseReport", () => {
|
|
32
|
+
it("should parse valid JSON matching ReviewReport", () => {
|
|
33
|
+
const json = JSON.stringify(mockFindings);
|
|
34
|
+
expect((0, index_1.parseReport)(json)).toEqual(mockFindings);
|
|
35
|
+
});
|
|
36
|
+
it("should return an empty array for invalid JSON", () => {
|
|
37
|
+
expect((0, index_1.parseReport)("invalid")).toEqual([]);
|
|
38
|
+
});
|
|
39
|
+
it("should return an empty array if parsed result is not an array", () => {
|
|
40
|
+
expect((0, index_1.parseReport)('{"issue": "test"}')).toEqual([]);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
describe("sortFindings", () => {
|
|
44
|
+
it("should sort by severity (high > medium > low)", () => {
|
|
45
|
+
const sorted = (0, index_1.sortFindings)(mockFindings);
|
|
46
|
+
expect(sorted[0].severity).toBe("high");
|
|
47
|
+
expect(sorted[1].severity).toBe("medium");
|
|
48
|
+
expect(sorted[2].severity).toBe("low");
|
|
49
|
+
});
|
|
50
|
+
it("should sort by file and line within the same severity", () => {
|
|
51
|
+
const sameSeverity = [
|
|
52
|
+
{ ...mockFindings[0], line: 20 },
|
|
53
|
+
{ ...mockFindings[0], line: 5 },
|
|
54
|
+
{ ...mockFindings[0], file: "a.ts" },
|
|
55
|
+
];
|
|
56
|
+
const sorted = (0, index_1.sortFindings)(sameSeverity);
|
|
57
|
+
expect(sorted[0].file).toBe("a.ts");
|
|
58
|
+
expect(sorted[1].file).toBe("auth.ts");
|
|
59
|
+
expect(sorted[1].line).toBe(5);
|
|
60
|
+
expect(sorted[2].line).toBe(20);
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
describe("filterBySeverity", () => {
|
|
64
|
+
it("should filter findings by minimum severity", () => {
|
|
65
|
+
const highOnly = (0, index_1.filterBySeverity)(mockFindings, "high");
|
|
66
|
+
expect(highOnly).toHaveLength(1);
|
|
67
|
+
expect(highOnly[0].severity).toBe("high");
|
|
68
|
+
const mediumAndAbove = (0, index_1.filterBySeverity)(mockFindings, "medium");
|
|
69
|
+
expect(mediumAndAbove).toHaveLength(2);
|
|
70
|
+
expect(mediumAndAbove.map((f) => f.severity)).toContain("high");
|
|
71
|
+
expect(mediumAndAbove.map((f) => f.severity)).toContain("medium");
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":";;AAAA,mCAKiB;AAEjB,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,MAAM,YAAY,GAAoB;QACpC;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,kBAAkB;YACzB,aAAa,EAAE,2BAA2B;SAC3C;QACD;YACE,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,oBAAoB;YAC3B,aAAa,EAAE,iBAAiB;SACjC;QACD;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,aAAa;YACvB,KAAK,EAAE,kBAAkB;YACzB,aAAa,EAAE,WAAW;SAC3B;KACF,CAAC;IAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;QAC3B,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;YACvD,MAAM,IAAI,GAAG,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AC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@diffmind/shared-types",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared TypeScript types for diffmind review findings",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Thinkgrid Labs <hello@thinkgrid.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/thinkgrid-labs/diffmind.git",
|
|
10
|
+
"directory": "packages/shared-types"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/"
|
|
17
|
+
],
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"require": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "^5.4.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc",
|
|
32
|
+
"watch": "tsc --watch",
|
|
33
|
+
"test": "jest"
|
|
34
|
+
}
|
|
35
|
+
}
|