@indemn/cli 1.0.0 → 1.1.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.
Files changed (106) hide show
  1. package/.claude-plugin/marketplace.json +28 -0
  2. package/README.md +29 -23
  3. package/dist/cli/agents.d.ts.map +1 -1
  4. package/dist/cli/agents.js +20 -0
  5. package/dist/cli/agents.js.map +1 -1
  6. package/dist/cli/eval.d.ts.map +1 -1
  7. package/dist/cli/eval.js +38 -0
  8. package/dist/cli/eval.js.map +1 -1
  9. package/dist/cli/index.js +1 -1
  10. package/dist/mcp/tools.d.ts.map +1 -1
  11. package/dist/mcp/tools.js +40 -0
  12. package/dist/mcp/tools.js.map +1 -1
  13. package/dist/report/agent-card/cover.d.ts +20 -0
  14. package/dist/report/agent-card/cover.d.ts.map +1 -0
  15. package/dist/report/agent-card/cover.js +58 -0
  16. package/dist/report/agent-card/cover.js.map +1 -0
  17. package/dist/report/agent-card/document.d.ts +7 -0
  18. package/dist/report/agent-card/document.d.ts.map +1 -0
  19. package/dist/report/agent-card/document.js +144 -0
  20. package/dist/report/agent-card/document.js.map +1 -0
  21. package/dist/report/agent-card/types.d.ts +77 -0
  22. package/dist/report/agent-card/types.d.ts.map +1 -0
  23. package/dist/report/agent-card/types.js +3 -0
  24. package/dist/report/agent-card/types.js.map +1 -0
  25. package/dist/report/assets/Indemn_PrimaryLogo_Iris.png +0 -0
  26. package/dist/report/assets/assets/Indemn_PrimaryLogo_Iris.png +0 -0
  27. package/dist/report/assets/assets/fonts/Barlow-Bold.ttf +0 -0
  28. package/dist/report/assets/assets/fonts/Barlow-Medium.ttf +0 -0
  29. package/dist/report/assets/assets/fonts/Barlow-Regular.ttf +0 -0
  30. package/dist/report/assets/assets/fonts/Barlow-SemiBold.ttf +0 -0
  31. package/dist/report/assets/fonts/Barlow-Bold.ttf +0 -0
  32. package/dist/report/assets/fonts/Barlow-Medium.ttf +0 -0
  33. package/dist/report/assets/fonts/Barlow-Regular.ttf +0 -0
  34. package/dist/report/assets/fonts/Barlow-SemiBold.ttf +0 -0
  35. package/dist/report/eval-report/cover.d.ts +16 -0
  36. package/dist/report/eval-report/cover.d.ts.map +1 -0
  37. package/dist/report/eval-report/cover.js +8 -0
  38. package/dist/report/eval-report/cover.js.map +1 -0
  39. package/dist/report/eval-report/document.d.ts +19 -0
  40. package/dist/report/eval-report/document.d.ts.map +1 -0
  41. package/dist/report/eval-report/document.js +32 -0
  42. package/dist/report/eval-report/document.js.map +1 -0
  43. package/dist/report/eval-report/example-page.d.ts +11 -0
  44. package/dist/report/eval-report/example-page.d.ts.map +1 -0
  45. package/dist/report/eval-report/example-page.js +18 -0
  46. package/dist/report/eval-report/example-page.js.map +1 -0
  47. package/dist/report/eval-report/item-page.d.ts +9 -0
  48. package/dist/report/eval-report/item-page.d.ts.map +1 -0
  49. package/dist/report/eval-report/item-page.js +72 -0
  50. package/dist/report/eval-report/item-page.js.map +1 -0
  51. package/dist/report/eval-report/matrix-page.d.ts +8 -0
  52. package/dist/report/eval-report/matrix-page.d.ts.map +1 -0
  53. package/dist/report/eval-report/matrix-page.js +31 -0
  54. package/dist/report/eval-report/matrix-page.js.map +1 -0
  55. package/dist/report/eval-report/types.d.ts +69 -0
  56. package/dist/report/eval-report/types.d.ts.map +1 -0
  57. package/dist/report/eval-report/types.js +7 -0
  58. package/dist/report/eval-report/types.js.map +1 -0
  59. package/dist/report/eval-report/v2-cover.d.ts +9 -0
  60. package/dist/report/eval-report/v2-cover.d.ts.map +1 -0
  61. package/dist/report/eval-report/v2-cover.js +32 -0
  62. package/dist/report/eval-report/v2-cover.js.map +1 -0
  63. package/dist/report/export.d.ts +17 -0
  64. package/dist/report/export.d.ts.map +1 -0
  65. package/dist/report/export.js +327 -0
  66. package/dist/report/export.js.map +1 -0
  67. package/dist/report/generate.d.ts +7 -0
  68. package/dist/report/generate.d.ts.map +1 -0
  69. package/dist/report/generate.js +30 -0
  70. package/dist/report/generate.js.map +1 -0
  71. package/dist/report/scoring.d.ts +90 -0
  72. package/dist/report/scoring.d.ts.map +1 -0
  73. package/dist/report/scoring.js +174 -0
  74. package/dist/report/scoring.js.map +1 -0
  75. package/dist/report/styles.d.ts +111 -0
  76. package/dist/report/styles.d.ts.map +1 -0
  77. package/dist/report/styles.js +134 -0
  78. package/dist/report/styles.js.map +1 -0
  79. package/docs/plans/2026-03-13-cli-exports.md +819 -0
  80. package/package.json +14 -4
  81. package/skills/eval-analysis/SKILL.md +178 -0
  82. package/skills/eval-analysis/references/data-shapes.md +279 -0
  83. package/src/cli/agents.ts +22 -0
  84. package/src/cli/eval.ts +42 -0
  85. package/src/cli/index.ts +1 -1
  86. package/src/mcp/tools.ts +50 -0
  87. package/src/report/agent-card/cover.tsx +232 -0
  88. package/src/report/agent-card/document.tsx +582 -0
  89. package/src/report/agent-card/types.ts +86 -0
  90. package/src/report/assets/Indemn_PrimaryLogo_Iris.png +0 -0
  91. package/src/report/assets/fonts/Barlow-Bold.ttf +0 -0
  92. package/src/report/assets/fonts/Barlow-Medium.ttf +0 -0
  93. package/src/report/assets/fonts/Barlow-Regular.ttf +0 -0
  94. package/src/report/assets/fonts/Barlow-SemiBold.ttf +0 -0
  95. package/src/report/eval-report/cover.tsx +69 -0
  96. package/src/report/eval-report/document.tsx +105 -0
  97. package/src/report/eval-report/example-page.tsx +121 -0
  98. package/src/report/eval-report/item-page.tsx +211 -0
  99. package/src/report/eval-report/matrix-page.tsx +124 -0
  100. package/src/report/eval-report/types.ts +77 -0
  101. package/src/report/eval-report/v2-cover.tsx +102 -0
  102. package/src/report/export.ts +394 -0
  103. package/src/report/generate.tsx +37 -0
  104. package/src/report/scoring.ts +281 -0
  105. package/src/report/styles.ts +138 -0
  106. package/tsconfig.json +2 -1
@@ -0,0 +1,16 @@
1
+ interface EvalReportCoverProps {
2
+ customerName: string;
3
+ reportDate: string;
4
+ highlights: {
5
+ totalQuestions: number;
6
+ totalRules: number;
7
+ overallScore: number;
8
+ highSeverityScore: number;
9
+ mediumSeverityScore: number;
10
+ highCount: number;
11
+ mediumCount: number;
12
+ };
13
+ }
14
+ export declare function EvalReportCover({ customerName, reportDate, highlights }: EvalReportCoverProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=cover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cover.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/cover.tsx"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,wBAAgB,eAAe,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,oBAAoB,2CAkD7F"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // V1 eval report cover — ported from EvalReportCover.tsx
3
+ import { Page, View, Text, Image } from '@react-pdf/renderer';
4
+ import { styles, colors, logoPath } from '../styles.js';
5
+ export function EvalReportCover({ customerName, reportDate, highlights }) {
6
+ return (_jsxs(Page, { size: "A4", style: [styles.page, { justifyContent: 'center' }], children: [_jsx(View, { style: { alignItems: 'center', marginBottom: 48 }, children: _jsx(Image, { src: logoPath, style: { width: 200, height: 46 } }) }), _jsxs(View, { style: { alignItems: 'center', marginBottom: 48 }, children: [_jsx(Text, { style: { fontSize: 28, fontWeight: 700, color: colors.eggplant, marginBottom: 8 }, children: "Evaluation Report" }), _jsx(Text, { style: { fontSize: 16, fontWeight: 500, color: colors.muted }, children: customerName }), _jsx(Text, { style: { fontSize: 14, fontWeight: 400, color: colors.muted, marginTop: 4 }, children: reportDate })] }), _jsxs(View, { style: [styles.card, { marginHorizontal: 40 }], children: [_jsx(Text, { style: [styles.sectionTitle, { textAlign: 'center', marginBottom: 16 }], children: "Key Highlights" }), _jsxs(View, { style: { gap: 8 }, children: [_jsxs(Text, { style: styles.bodyText, children: ['\u2022', " ", highlights.totalQuestions, " questions evaluated against ", highlights.totalRules, " rules"] }), _jsxs(Text, { style: styles.bodyText, children: ['\u2022', " Overall weighted score: ", _jsxs(Text, { style: { fontWeight: 600 }, children: [Math.round(highlights.overallScore * 100), "%"] })] }), _jsxs(Text, { style: styles.bodyText, children: ['\u2022', " High severity compliance (", highlights.highCount, " rules): ", _jsxs(Text, { style: { fontWeight: 600 }, children: [Math.round(highlights.highSeverityScore * 100), "%"] })] }), _jsxs(Text, { style: styles.bodyText, children: ['\u2022', " Medium severity compliance (", highlights.mediumCount, " rules): ", _jsxs(Text, { style: { fontWeight: 600 }, children: [Math.round(highlights.mediumSeverityScore * 100), "%"] })] })] })] }), _jsxs(View, { style: [styles.footer, { position: 'absolute', bottom: 40 }], children: [_jsx(Text, { style: styles.caption, children: "Powered by Indemn Evals" }), _jsx(Text, { style: styles.caption, children: "Page 1" })] })] }));
7
+ }
8
+ //# sourceMappingURL=cover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cover.js","sourceRoot":"","sources":["../../../src/report/eval-report/cover.tsx"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAgBxD,MAAM,UAAU,eAAe,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAwB;IAC5F,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,CAAC,MAAM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,CAAC,cAAc,mCAA+B,UAAU,CAAC,UAAU,cACpF,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,aACzB,QAAQ,+BAA0B,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,aAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,GAAG,CAAC,SAAS,IACnH,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,aACzB,QAAQ,iCAA6B,UAAU,CAAC,SAAS,eAAU,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,aAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,GAAG,CAAC,SAAS,IACzJ,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,aACzB,QAAQ,mCAA+B,UAAU,CAAC,WAAW,eAAU,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,aAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,mBAAmB,GAAG,GAAG,CAAC,SAAS,IAC/J,IACF,IACF,EAGP,MAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,aAChE,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,wCAAgC,EAC3D,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,uBAAe,IACrC,IACF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { MatrixData, WeightConfig, EvaluationResult } from './types.js';
2
+ export interface EvalReportDataV1 {
3
+ customerName: string;
4
+ reportDate: string;
5
+ matrixData: MatrixData;
6
+ weights: WeightConfig;
7
+ }
8
+ export interface EvalReportDataV2 {
9
+ customerName: string;
10
+ reportDate: string;
11
+ v2Results: EvaluationResult[];
12
+ }
13
+ export type EvalReportData = EvalReportDataV1 | EvalReportDataV2;
14
+ interface EvalReportDocumentProps {
15
+ data: EvalReportData;
16
+ }
17
+ export declare function EvalReportDocument({ data }: EvalReportDocumentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/document.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG7E,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;CACvB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAGD,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAMjE,UAAU,uBAAuB;IAC/B,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,2CAoEnE"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Eval report document — ported from EvalReportDocument.tsx
3
+ import { Document } from '@react-pdf/renderer';
4
+ import { EvalReportCover } from './cover.js';
5
+ import { EvalReportMatrixPage } from './matrix-page.js';
6
+ import { EvalReportExamplePage } from './example-page.js';
7
+ import { EvalReportV2Cover } from './v2-cover.js';
8
+ import { EvalReportItemPage } from './item-page.js';
9
+ import { calculateWeightedScores } from '../scoring.js';
10
+ function isV2ReportData(data) {
11
+ return 'v2Results' in data && Array.isArray(data.v2Results);
12
+ }
13
+ export function EvalReportDocument({ data }) {
14
+ if (isV2ReportData(data)) {
15
+ return (_jsxs(Document, { title: `Indemn Evaluation Report - ${data.customerName}`, author: "Indemn Evals", subject: `Evaluation report for ${data.reportDate}`, children: [_jsx(EvalReportV2Cover, { customerName: data.customerName, reportDate: data.reportDate, results: data.v2Results }), data.v2Results.map((result, index) => (_jsx(EvalReportItemPage, { result: result, itemNumber: index + 1, totalItems: data.v2Results.length }, result.result_id)))] }));
16
+ }
17
+ // V1 report
18
+ const weightedScores = calculateWeightedScores(data.matrixData, data.weights);
19
+ const highlights = {
20
+ totalQuestions: data.matrixData.rows.length,
21
+ totalRules: data.matrixData.evaluators.length,
22
+ overallScore: weightedScores.overall,
23
+ highSeverityScore: weightedScores.bySeverity.High.score,
24
+ mediumSeverityScore: weightedScores.bySeverity.Medium.score,
25
+ highCount: weightedScores.bySeverity.High.count,
26
+ mediumCount: weightedScores.bySeverity.Medium.count,
27
+ };
28
+ const matrixPageNumber = 2;
29
+ const exampleStartPage = 3;
30
+ return (_jsxs(Document, { title: `Indemn Evaluation Report - ${data.customerName}`, author: "Indemn Evals", subject: `Evaluation report for ${data.reportDate}`, children: [_jsx(EvalReportCover, { customerName: data.customerName, reportDate: data.reportDate, highlights: highlights }), _jsx(EvalReportMatrixPage, { matrixData: data.matrixData, pageNumber: matrixPageNumber }), data.matrixData.rows.map((row, index) => (_jsx(EvalReportExamplePage, { exampleNumber: index + 1, totalExamples: data.matrixData.rows.length, pageNumber: exampleStartPage + index, row: row, evaluators: data.matrixData.evaluators }, row.resultId)))] }));
31
+ }
32
+ //# sourceMappingURL=document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/report/eval-report/document.tsx"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM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AC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { MatrixRow, EvaluatorInfo } from './types.js';
2
+ interface EvalReportExamplePageProps {
3
+ exampleNumber: number;
4
+ totalExamples: number;
5
+ pageNumber: number;
6
+ row: MatrixRow;
7
+ evaluators: EvaluatorInfo[];
8
+ }
9
+ export declare function EvalReportExamplePage({ exampleNumber, totalExamples, pageNumber: _pageNumber, row, evaluators, }: EvalReportExamplePageProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=example-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example-page.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/example-page.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3D,UAAU,0BAA0B;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,aAAa,EACb,UAAU,EAAE,WAAW,EACvB,GAAG,EACH,UAAU,GACX,EAAE,0BAA0B,2CAoG5B"}
@@ -0,0 +1,18 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ // V1 example detail page — ported from EvalReportExamplePage.tsx
3
+ import { Page, View, Text } from '@react-pdf/renderer';
4
+ import { colors } from '../styles.js';
5
+ import { SCORE_THRESHOLDS, getScoreHexColor } from '../scoring.js';
6
+ export function EvalReportExamplePage({ exampleNumber, totalExamples, pageNumber: _pageNumber, row, evaluators, }) {
7
+ void _pageNumber;
8
+ const passedCount = Object.values(row.cells).filter(c => c.passed).length;
9
+ const totalCount = Object.keys(row.cells).length;
10
+ const passRate = Math.round(row.avgScore * 100);
11
+ const failed = evaluators.filter(e => row.cells[e.key] && !row.cells[e.key].passed);
12
+ const passed = evaluators.filter(e => row.cells[e.key] && row.cells[e.key].passed);
13
+ return (_jsxs(Page, { size: "A4", orientation: "landscape", style: { fontFamily: 'Barlow', fontSize: 7, color: colors.eggplant, backgroundColor: colors.white, padding: 20 }, wrap: true, children: [_jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginBottom: 8, paddingBottom: 6, borderBottomWidth: 1, borderBottomColor: colors.border }, fixed: true, children: [_jsxs(Text, { style: { fontSize: 11, fontWeight: 600, color: colors.iris }, children: ["Question ", exampleNumber, " of ", totalExamples] }), _jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', gap: 12 }, children: [_jsxs(Text, { style: { fontSize: 8, color: colors.muted }, children: [passedCount, "/", totalCount, " passed"] }), _jsx(View, { style: { backgroundColor: passRate >= SCORE_THRESHOLDS.SUCCESS * 100 ? '#dcfce7' : passRate >= SCORE_THRESHOLDS.WARNING * 100 ? '#fef9c3' : '#fee2e2', paddingHorizontal: 8, paddingVertical: 4, borderRadius: 3 }, children: _jsxs(Text, { style: { fontSize: 12, fontWeight: 700, color: getScoreHexColor(passRate / 100) }, children: [passRate, "%"] }) })] })] }), _jsxs(View, { style: { marginBottom: 8 }, wrap: false, children: [_jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant, marginBottom: 3, textTransform: 'uppercase', letterSpacing: 0.5 }, children: "Question" }), _jsx(View, { style: { backgroundColor: colors.background, padding: 6, borderRadius: 3 }, children: _jsx(Text, { style: { fontSize: 6, color: colors.eggplant, lineHeight: 1.4 }, children: row.question }) })] }), _jsxs(View, { style: { marginBottom: 8 }, children: [_jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant, marginBottom: 3, textTransform: 'uppercase', letterSpacing: 0.5 }, children: "Agent Response" }), _jsx(View, { style: { backgroundColor: colors.background, padding: 6, borderRadius: 3 }, children: _jsx(Text, { style: { fontSize: 5.5, color: colors.eggplant, lineHeight: 1.4 }, children: row.response }) })] }), _jsxs(View, { style: { flexDirection: 'row', gap: 12 }, children: [_jsxs(View, { style: { flex: 1 }, children: [_jsxs(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.error, marginBottom: 3, textTransform: 'uppercase', letterSpacing: 0.5 }, children: ["Failed (", failed.length, ")"] }), _jsx(View, { style: { backgroundColor: '#fef2f2', padding: 6, borderRadius: 3 }, children: failed.length === 0 ? (_jsx(Text, { style: { fontSize: 6, color: colors.success }, children: "All rules passed!" })) : (failed.map((evaluator, idx) => {
14
+ const cell = row.cells[evaluator.key];
15
+ return (_jsxs(View, { style: { marginBottom: idx < failed.length - 1 ? 6 : 0 }, children: [_jsxs(Text, { style: { fontSize: 6, fontWeight: 600, color: colors.error, marginBottom: 1 }, children: ["x ", evaluator.name, " [", evaluator.severity, "]"] }), cell?.comment && (_jsx(Text, { style: { fontSize: 5, color: colors.muted, lineHeight: 1.3 }, children: cell.comment }))] }, evaluator.key));
16
+ })) })] }), _jsxs(View, { style: { flex: 1 }, children: [_jsxs(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.success, marginBottom: 3, textTransform: 'uppercase', letterSpacing: 0.5 }, children: ["Passed (", passed.length, ")"] }), _jsx(View, { style: { backgroundColor: '#f0fdf4', padding: 6, borderRadius: 3 }, children: passed.length === 0 ? (_jsx(Text, { style: { fontSize: 6, color: colors.error }, children: "No rules passed" })) : (passed.map((evaluator) => (_jsxs(Text, { style: { fontSize: 5.5, color: colors.success, marginBottom: 2 }, children: ["+ ", evaluator.name] }, evaluator.key)))) })] })] }), _jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', paddingTop: 6, borderTopWidth: 0.5, borderTopColor: colors.border, marginTop: 'auto' }, fixed: true, children: [_jsx(Text, { style: { fontSize: 6, color: colors.muted }, children: "Indemn Evaluation Report" }), _jsx(Text, { style: { fontSize: 6, color: colors.muted }, render: ({ pageNumber: pn }) => `Page ${pn}` })] })] }));
17
+ }
18
+ //# sourceMappingURL=example-page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AE,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,KAAK,mBACjK,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,yCAAiC,EAClF,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAE,GAAI,IAC9F,IACF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { EvaluationResult } from './types.js';
2
+ interface EvalReportItemPageProps {
3
+ result: EvaluationResult;
4
+ itemNumber: number;
5
+ totalItems: number;
6
+ }
7
+ export declare function EvalReportItemPage({ result, itemNumber, totalItems }: EvalReportItemPageProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=item-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-page.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/item-page.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAmC,MAAM,YAAY,CAAC;AAEpF,UAAU,uBAAuB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAwFD,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,uBAAuB,2CAiH7F"}
@@ -0,0 +1,72 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // V2 per-item detail page — ported from EvalReportItemPage.tsx
3
+ import { Page, View, Text } from '@react-pdf/renderer';
4
+ import { styles, colors } from '../styles.js';
5
+ const severityColors = {
6
+ High: '#3a4389',
7
+ high: '#3a4389',
8
+ Medium: '#4752a3',
9
+ medium: '#4752a3',
10
+ Low: '#7c85c0',
11
+ low: '#7c85c0',
12
+ };
13
+ function parseTurnsForExcerpt(text, maxTurns = 3) {
14
+ const turns = [];
15
+ const lines = text.split('\n');
16
+ let currentRole = null;
17
+ let currentContent = [];
18
+ for (const line of lines) {
19
+ if (line.startsWith('User:')) {
20
+ if (currentRole)
21
+ turns.push({ role: currentRole, content: currentContent.join('\n').trim() });
22
+ currentRole = 'User';
23
+ currentContent = [line.slice(5).trim()];
24
+ }
25
+ else if (line.startsWith('Agent:')) {
26
+ if (currentRole)
27
+ turns.push({ role: currentRole, content: currentContent.join('\n').trim() });
28
+ currentRole = 'Agent';
29
+ currentContent = [line.slice(6).trim()];
30
+ }
31
+ else if (currentRole) {
32
+ currentContent.push(line);
33
+ }
34
+ }
35
+ if (currentRole)
36
+ turns.push({ role: currentRole, content: currentContent.join('\n').trim() });
37
+ return turns.slice(0, maxTurns);
38
+ }
39
+ function CriterionScoreRow({ criterion }) {
40
+ return (_jsxs(View, { style: { flexDirection: 'row', marginBottom: 4, paddingVertical: 3, paddingHorizontal: 6, backgroundColor: criterion.passed ? '#f0fdf4' : '#fef2f2', borderRadius: 3 }, children: [_jsx(Text, { style: { fontSize: 7, fontWeight: 700, color: criterion.passed ? colors.success : colors.error, width: 12 }, children: criterion.passed ? 'P' : 'F' }), _jsxs(View, { style: { flex: 1 }, children: [_jsx(Text, { style: { fontSize: 6, fontWeight: 600, color: colors.eggplant, marginBottom: 1 }, children: criterion.criterion }), criterion.reasoning && (_jsxs(Text, { style: { fontSize: 5.5, color: colors.muted, lineHeight: 1.3 }, children: [criterion.reasoning.slice(0, 250), criterion.reasoning.length > 250 ? '...' : ''] }))] }), _jsxs(Text, { style: { fontSize: 6, fontWeight: 600, color: criterion.passed ? colors.success : colors.error, width: 30, textAlign: 'right' }, children: [Math.round(criterion.score * 100), "%"] })] }));
41
+ }
42
+ function RubricScoreRow({ rule }) {
43
+ const sevColor = severityColors[rule.severity] || colors.muted;
44
+ return (_jsxs(View, { style: { flexDirection: 'row', marginBottom: 4, paddingVertical: 3, paddingHorizontal: 6, backgroundColor: rule.passed ? '#f0fdf4' : '#fef2f2', borderRadius: 3 }, children: [_jsx(Text, { style: { fontSize: 7, fontWeight: 700, color: rule.passed ? colors.success : colors.error, width: 12 }, children: rule.passed ? 'P' : 'F' }), _jsxs(View, { style: { flex: 1 }, children: [_jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', gap: 4, marginBottom: 1 }, children: [_jsx(Text, { style: { fontSize: 6, fontWeight: 600, color: colors.eggplant }, children: rule.rule_name }), _jsx(View, { style: { backgroundColor: `${sevColor}20`, paddingHorizontal: 4, paddingVertical: 1, borderRadius: 2 }, children: _jsx(Text, { style: { fontSize: 5, fontWeight: 600, color: sevColor, textTransform: 'uppercase' }, children: rule.severity }) })] }), rule.reasoning && (_jsxs(Text, { style: { fontSize: 5.5, color: colors.muted, lineHeight: 1.3 }, children: [rule.reasoning.slice(0, 250), rule.reasoning.length > 250 ? '...' : ''] }))] }), _jsxs(Text, { style: { fontSize: 6, fontWeight: 600, color: rule.passed ? colors.success : colors.error, width: 30, textAlign: 'right' }, children: [Math.round(rule.score * 100), "%"] })] }));
45
+ }
46
+ export function EvalReportItemPage({ result, itemNumber, totalItems }) {
47
+ const itemName = result.item_name || result.input.message || `Test Item ${itemNumber}`;
48
+ const itemType = result.item_type || 'single_turn';
49
+ const criteriaScores = result.criteria_scores || [];
50
+ const rubricScores = result.rubric_scores || [];
51
+ const overallPassed = result.passed ?? (result.criteria_passed !== false && result.rubric_passed !== false);
52
+ const criteriaPassed = criteriaScores.filter(c => c.passed).length;
53
+ const rubricPassed = rubricScores.filter(r => r.passed).length;
54
+ const transcript = (itemType === 'scenario' || itemType === 'transcript')
55
+ ? (result.output.transcript || result.output.response || '')
56
+ : '';
57
+ const transcriptTurns = (itemType === 'scenario' || itemType === 'transcript') ? parseTurnsForExcerpt(transcript) : [];
58
+ return (_jsxs(Page, { size: "A4", style: [styles.page, { padding: 24 }], wrap: true, children: [_jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginBottom: 10, paddingBottom: 6, borderBottomWidth: 1, borderBottomColor: colors.border }, fixed: true, children: [_jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', gap: 8 }, children: [_jsxs(Text, { style: { fontSize: 11, fontWeight: 600, color: colors.iris }, children: ["Item ", itemNumber, " of ", totalItems] }), _jsx(View, { style: {
59
+ backgroundColor: itemType === 'scenario' ? `${colors.iris}20`
60
+ : itemType === 'transcript' ? '#10b98120'
61
+ : `${colors.muted}20`,
62
+ paddingHorizontal: 6,
63
+ paddingVertical: 2,
64
+ borderRadius: 3,
65
+ }, children: _jsx(Text, { style: { fontSize: 7, fontWeight: 600, color: itemType === 'scenario' ? colors.iris : itemType === 'transcript' ? '#059669' : colors.muted }, children: itemType === 'single_turn' ? 'SINGLE TURN' : itemType === 'transcript' ? 'TRANSCRIPT' : 'SCENARIO' }) })] }), _jsx(View, { style: {
66
+ backgroundColor: overallPassed ? '#dcfce7' : '#fee2e2',
67
+ paddingHorizontal: 8,
68
+ paddingVertical: 3,
69
+ borderRadius: 3,
70
+ }, children: _jsx(Text, { style: { fontSize: 10, fontWeight: 700, color: overallPassed ? colors.success : colors.error }, children: overallPassed ? 'PASSED' : 'FAILED' }) })] }), _jsxs(View, { style: { marginBottom: 8 }, wrap: false, children: [_jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant, marginBottom: 3, textTransform: 'uppercase', letterSpacing: 0.5 }, children: "Test Item" }), _jsx(View, { style: { backgroundColor: colors.background, padding: 6, borderRadius: 3 }, children: _jsx(Text, { style: { fontSize: 7, color: colors.eggplant, lineHeight: 1.4 }, children: itemName }) })] }), transcriptTurns.length > 0 && (_jsxs(View, { style: { marginBottom: 8 }, children: [_jsxs(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant, marginBottom: 3, textTransform: 'uppercase', letterSpacing: 0.5 }, children: ["Conversation Excerpt (", transcriptTurns.length, " turn", transcriptTurns.length > 1 ? 's' : '', ")"] }), _jsx(View, { style: { backgroundColor: colors.background, padding: 6, borderRadius: 3 }, children: transcriptTurns.map((turn, i) => (_jsxs(View, { style: { marginBottom: i < transcriptTurns.length - 1 ? 4 : 0 }, children: [_jsx(Text, { style: { fontSize: 5.5, fontWeight: 700, color: turn.role === 'User' ? colors.muted : colors.iris, marginBottom: 1 }, children: turn.role }), _jsxs(Text, { style: { fontSize: 5.5, color: colors.eggplant, lineHeight: 1.3 }, children: [turn.content.slice(0, 200), turn.content.length > 200 ? '...' : ''] })] }, i))) })] })), _jsxs(View, { style: { flexDirection: 'row', gap: 10 }, children: [criteriaScores.length > 0 && (_jsxs(View, { style: { flex: 1 }, children: [_jsxs(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant, marginBottom: 4, textTransform: 'uppercase', letterSpacing: 0.5 }, children: ["Criteria Scores (", criteriaPassed, "/", criteriaScores.length, " passed)"] }), criteriaScores.map((criterion, i) => (_jsx(CriterionScoreRow, { criterion: criterion }, i)))] })), rubricScores.length > 0 && (_jsxs(View, { style: { flex: 1 }, children: [_jsxs(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant, marginBottom: 4, textTransform: 'uppercase', letterSpacing: 0.5 }, children: ["Rubric Scores (", rubricPassed, "/", rubricScores.length, " passed)"] }), rubricScores.map((rule) => (_jsx(RubricScoreRow, { rule: rule }, rule.rule_id)))] }))] }), _jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', paddingTop: 6, borderTopWidth: 0.5, borderTopColor: colors.border, marginTop: 'auto' }, fixed: true, children: [_jsx(Text, { style: { fontSize: 6, color: colors.muted }, children: "Indemn Evaluation Report" }), _jsx(Text, { style: { fontSize: 6, color: colors.muted }, render: ({ pageNumber: pn }) => `Page ${pn}` })] })] }));
71
+ }
72
+ //# sourceMappingURL=item-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-page.js","sourceRoot":"","sources":["../../../src/report/eval-report/item-page.tsx"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAS9C,MAAM,cAAc,GAA2B;IAC7C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,SAAS,oBAAoB,CAAC,IAAY,EAAE,WAAmB,CAAC;IAC9D,MAAM,KAAK,GAA6C,EAAE,CAAC;IAC3D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,WAAW,GAAkB,IAAI,CAAC;IACtC,IAAI,cAAc,GAAa,EAAE,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,IAAI,WAAW;gBAAE,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9F,WAAW,GAAG,MAAM,CAAC;YACrB,cAAc,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1C,CAAC;aAAM,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YACrC,IAAI,WAA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K,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,aACtB,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,EAAE,gCACpH,YAAY,OAAG,YAAY,CAAC,MAAM,gBAC7C,EACN,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC1B,KAAC,cAAc,IAAoB,IAAI,EAAE,IAAI,IAAxB,IAAI,CAAC,OAAO,CAAgB,CAClD,CAAC,IACG,CACR,IACI,EAGP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,KAAK,mBACjK,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,yCAAiC,EAClF,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAE,GAAI,IAC9F,IACF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { MatrixData } from './types.js';
2
+ interface EvalReportMatrixPageProps {
3
+ matrixData: MatrixData;
4
+ pageNumber: number;
5
+ }
6
+ export declare function EvalReportMatrixPage({ matrixData, pageNumber }: EvalReportMatrixPageProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=matrix-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrix-page.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/matrix-page.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,UAAU,yBAAyB;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,yBAAyB,2CAiHzF"}
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // V1 evaluation matrix page — ported from EvalReportMatrixPage.tsx
3
+ import { Page, View, Text } from '@react-pdf/renderer';
4
+ import { styles, colors } from '../styles.js';
5
+ export function EvalReportMatrixPage({ matrixData, pageNumber }) {
6
+ const { rows, evaluators, columnAverages } = matrixData;
7
+ const numCol = 25;
8
+ const questionCol = 160;
9
+ const evalCol = 28;
10
+ const scoreCol = 35;
11
+ return (_jsxs(Page, { size: "A4", orientation: "landscape", style: [styles.page, { padding: 20 }], children: [_jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginBottom: 10, paddingBottom: 6, borderBottomWidth: 1, borderBottomColor: colors.border }, children: [_jsx(Text, { style: { fontSize: 14, fontWeight: 600, color: colors.iris }, children: "Evaluation Matrix" }), _jsxs(Text, { style: { fontSize: 8, color: colors.muted }, children: ["Page ", pageNumber] })] }), _jsxs(View, { style: { flex: 1 }, children: [_jsxs(View, { style: { flexDirection: 'row', borderBottomWidth: 1.5, borderBottomColor: colors.eggplant, paddingBottom: 4, marginBottom: 2 }, children: [_jsx(View, { style: { width: numCol }, children: _jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant }, children: "#" }) }), _jsx(View, { style: { width: questionCol }, children: _jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant }, children: "Question" }) }), evaluators.map((ev) => (_jsx(View, { style: { width: evalCol, alignItems: 'center' }, children: _jsx(Text, { style: { fontSize: 5, fontWeight: 700, color: ev.severity === 'High' ? '#3a4389' : colors.iris }, children: ev.name.split(':')[0] }) }, ev.key))), _jsx(View, { style: { width: scoreCol, alignItems: 'center' }, children: _jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant }, children: "Score" }) })] }), rows.map((row, index) => (_jsxs(View, { style: {
12
+ flexDirection: 'row',
13
+ alignItems: 'center',
14
+ paddingVertical: 2,
15
+ backgroundColor: index % 2 === 0 ? colors.white : '#f8f8fc',
16
+ }, children: [_jsx(View, { style: { width: numCol }, children: _jsx(Text, { style: { fontSize: 5, color: colors.muted }, children: index + 1 }) }), _jsx(View, { style: { width: questionCol }, children: _jsxs(Text, { style: { fontSize: 5, color: colors.eggplant }, children: [row.question.slice(0, 45), row.question.length > 45 ? '...' : ''] }) }), evaluators.map((ev) => {
17
+ const cell = row.cells[ev.key];
18
+ const hasCellData = cell !== undefined && cell !== null;
19
+ const passed = hasCellData && cell.passed;
20
+ return (_jsx(View, { style: { width: evalCol, alignItems: 'center', backgroundColor: hasCellData ? (passed ? '#dcfce7' : '#fee2e2') : 'transparent' }, children: _jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: hasCellData ? (passed ? colors.success : colors.error) : colors.muted }, children: hasCellData ? (passed ? 'P' : 'F') : '-' }) }, ev.key));
21
+ }), _jsx(View, { style: { width: scoreCol, alignItems: 'center' }, children: _jsxs(Text, { style: { fontSize: 5, fontWeight: 600, color: colors.eggplant }, children: [Math.round(row.avgScore * 100), "%"] }) })] }, row.resultId))), _jsxs(View, { style: {
22
+ flexDirection: 'row',
23
+ alignItems: 'center',
24
+ paddingVertical: 4,
25
+ borderTopWidth: 1.5,
26
+ borderTopColor: colors.eggplant,
27
+ marginTop: 2,
28
+ backgroundColor: colors.background,
29
+ }, children: [_jsx(View, { style: { width: numCol } }), _jsx(View, { style: { width: questionCol }, children: _jsx(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.eggplant }, children: "Pass Rate" }) }), evaluators.map((ev) => (_jsx(View, { style: { width: evalCol, alignItems: 'center' }, children: _jsxs(Text, { style: { fontSize: 5, fontWeight: 700, color: colors.eggplant }, children: [Math.round((columnAverages[ev.key] || 0) * 100), "%"] }) }, ev.key))), _jsx(View, { style: { width: scoreCol, alignItems: 'center' }, children: _jsxs(Text, { style: { fontSize: 6, fontWeight: 700, color: colors.iris }, children: [Math.round(matrixData.overallAverage * 100), "%"] }) })] })] }), _jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', paddingTop: 8, borderTopWidth: 0.5, borderTopColor: colors.border, marginTop: 8 }, children: [_jsx(Text, { style: { fontSize: 7, color: colors.muted }, children: "Indemn Evaluation Report" }), _jsxs(Text, { style: { fontSize: 7, color: colors.muted }, children: ["Page ", pageNumber] })] })] }));
30
+ }
31
+ //# sourceMappingURL=matrix-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrix-page.js","sourceRoot":"","sources":["../../../src/report/eval-report/matrix-page.tsx"],"names":[],"mappings":";AAAA,mEAAmE;AACnE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQ9C,MAAM,UAAU,oBAAoB,CAAC,EAAE,UAAU,EAAE,UAAU,EAA6B;IACxF,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC;IAExD,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,WAAW,GAAG,GAAG,CAAC;IACxB,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,MAAM,QAAQ,GAAG,EAAE,CAAC;IAEpB,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,WAAW,EAAC,WAAW,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,I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,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,SAC3C,IAHE,EAAE,CAAC,GAAG,CAIV,CACR,CAAC,EACF,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,YACpD,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,aAC9D,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,cAAc,GAAG,GAAG,CAAC,SACvC,GACF,IACF,IACF,EAGP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,aACrJ,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,yCAAiC,EAClF,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,sBAAQ,UAAU,IAAQ,IACtE,IACF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,69 @@
1
+ export type Severity = 'High' | 'Medium' | 'Low';
2
+ export interface EvaluatorInfo {
3
+ key: string;
4
+ name: string;
5
+ severity: Severity;
6
+ prompt?: string;
7
+ model?: string;
8
+ }
9
+ export interface MatrixCell {
10
+ score: number;
11
+ comment: string | null;
12
+ passed: boolean;
13
+ }
14
+ export interface MatrixRow {
15
+ resultId: string;
16
+ testCaseId: string;
17
+ question: string;
18
+ response: string;
19
+ cells: Record<string, MatrixCell>;
20
+ avgScore: number;
21
+ }
22
+ export interface MatrixData {
23
+ evaluators: EvaluatorInfo[];
24
+ rows: MatrixRow[];
25
+ columnAverages: Record<string, number>;
26
+ overallAverage: number;
27
+ }
28
+ export interface WeightConfig {
29
+ High: number;
30
+ Medium: number;
31
+ Low: number;
32
+ }
33
+ export declare const DEFAULT_WEIGHTS: WeightConfig;
34
+ export interface CriterionScore {
35
+ criterion: string;
36
+ passed: boolean;
37
+ score: number;
38
+ reasoning: string;
39
+ }
40
+ export interface RubricRuleScore {
41
+ rule_id: string;
42
+ rule_name: string;
43
+ severity: string;
44
+ passed: boolean;
45
+ score: number;
46
+ reasoning: string;
47
+ }
48
+ export interface EvaluationResult {
49
+ result_id: string;
50
+ test_case_id: string;
51
+ input: {
52
+ message?: string;
53
+ } & Record<string, unknown>;
54
+ output: {
55
+ response?: string;
56
+ } & Record<string, unknown>;
57
+ scores: Record<string, {
58
+ score: number;
59
+ comment: string | null;
60
+ }>;
61
+ item_name?: string;
62
+ item_type?: 'single_turn' | 'scenario' | 'transcript' | 'voice_simulation';
63
+ criteria_scores?: CriterionScore[];
64
+ criteria_passed?: boolean;
65
+ rubric_scores?: RubricRuleScore[];
66
+ rubric_passed?: boolean;
67
+ passed?: boolean;
68
+ }
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,E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AE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAC3E,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,7 @@
1
+ // Eval report types
2
+ export const DEFAULT_WEIGHTS = {
3
+ High: 2,
4
+ Medium: 1,
5
+ Low: 0.5,
6
+ };
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/report/eval-report/types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AAwCpB,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC3C,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,GAAG;CACT,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { EvaluationResult } from './types.js';
2
+ interface EvalReportV2CoverProps {
3
+ customerName: string;
4
+ reportDate: string;
5
+ results: EvaluationResult[];
6
+ }
7
+ export declare function EvalReportV2Cover({ customerName, reportDate, results }: EvalReportV2CoverProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=v2-cover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-cover.d.ts","sourceRoot":"","sources":["../../../src/report/eval-report/v2-cover.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,UAAU,sBAAsB;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,sBAAsB,2CAyF9F"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // V2 eval report cover — ported from EvalReportV2Cover.tsx
3
+ import { Page, View, Text, Image } from '@react-pdf/renderer';
4
+ import { styles, colors, logoPath } from '../styles.js';
5
+ import { getResultsScoreMetrics, getScoreHexColor } from '../scoring.js';
6
+ export function EvalReportV2Cover({ customerName, reportDate, results }) {
7
+ const metrics = getResultsScoreMetrics(results);
8
+ const criteriaRate = metrics.criteriaRate !== null ? Math.round(metrics.criteriaRate * 100) : 0;
9
+ const rubricRate = metrics.rubricRate !== null ? Math.round(metrics.rubricRate * 100) : null;
10
+ const singleTurnCount = results.filter(r => r.item_type === 'single_turn' || r.item_type === undefined).length;
11
+ const scenarioCount = results.filter(r => r.item_type === 'scenario').length;
12
+ const transcriptCount = results.filter(r => r.item_type === 'transcript').length;
13
+ return (_jsxs(Page, { size: "A4", style: [styles.page, { justifyContent: 'center' }], children: [_jsx(View, { style: { alignItems: 'center', marginBottom: 48 }, children: _jsx(Image, { src: logoPath, style: { width: 200, height: 46 } }) }), _jsxs(View, { style: { alignItems: 'center', marginBottom: 48 }, children: [_jsx(Text, { style: { fontSize: 28, fontWeight: 700, color: colors.eggplant, marginBottom: 8 }, children: "Evaluation Report" }), _jsx(Text, { style: { fontSize: 16, fontWeight: 500, color: colors.muted }, children: customerName }), _jsx(Text, { style: { fontSize: 14, fontWeight: 400, color: colors.muted, marginTop: 4 }, children: reportDate })] }), _jsxs(View, { style: [styles.card, { marginHorizontal: 40 }], children: [_jsx(Text, { style: [styles.sectionTitle, { textAlign: 'center', marginBottom: 16 }], children: "Key Highlights" }), _jsxs(View, { style: { gap: 8 }, children: [_jsxs(View, { style: { flexDirection: 'row', justifyContent: 'center', gap: 32, marginBottom: 8 }, children: [metrics.criteriaTotal > 0 && (_jsxs(View, { style: { alignItems: 'center' }, children: [_jsxs(Text, { style: {
14
+ fontSize: 40,
15
+ fontWeight: 700,
16
+ color: getScoreHexColor(metrics.criteriaRate),
17
+ }, children: [criteriaRate, "%"] }), _jsxs(Text, { style: { fontSize: 12, fontWeight: 500, color: colors.muted }, children: ["Criteria (", metrics.criteriaPassed, "/", metrics.criteriaTotal, " checks)"] })] })), rubricRate !== null && (_jsxs(View, { style: { alignItems: 'center' }, children: [_jsxs(Text, { style: {
18
+ fontSize: 40,
19
+ fontWeight: 700,
20
+ color: getScoreHexColor(metrics.rubricRate),
21
+ }, children: [rubricRate, "%"] }), _jsxs(Text, { style: { fontSize: 12, fontWeight: 500, color: colors.muted }, children: ["Rubric (", metrics.rubricRulesPassed, "/", metrics.rubricRulesTotal, " rules)"] })] }))] }), _jsxs(Text, { style: styles.bodyText, children: ['\u2022', " ", results.length, " test items evaluated", (() => {
22
+ const parts = [];
23
+ if (singleTurnCount > 0)
24
+ parts.push(`${singleTurnCount} single-turn`);
25
+ if (scenarioCount > 0)
26
+ parts.push(`${scenarioCount} scenario${scenarioCount > 1 ? 's' : ''}`);
27
+ if (transcriptCount > 0)
28
+ parts.push(`${transcriptCount} transcript${transcriptCount > 1 ? 's' : ''}`);
29
+ return parts.length > 1 ? ` (${parts.join(', ')})` : parts.length === 1 ? ` (all ${parts[0]})` : '';
30
+ })()] })] })] }), _jsxs(View, { style: [styles.footer, { position: 'absolute', bottom: 40 }], children: [_jsx(Text, { style: styles.caption, children: "Powered by Indemn Evals" }), _jsx(Text, { style: styles.caption, children: "Page 1" })] })] }));
31
+ }
32
+ //# sourceMappingURL=v2-cover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-cover.js","sour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AAC,GAAG,eAAe,cAAc,CAAC,CAAC;wCACtE,IAAI,aAAa,GAAG,CAAC;4CAAE,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa,YAAY,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wCAC9F,IAAI,eAAe,GAAG,CAAC;4CAAE,KAAK,CAAC,IAAI,CAAC,GAAG,eAAe,cAAc,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wCACtG,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;oCACtG,CAAC,CAAC,EAAE,IACC,IACF,IACF,EAGP,MAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,aAChE,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,wCAAgC,EAC3D,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,uBAAe,IACrC,IACF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { IndemnClient } from '../sdk/client.js';
2
+ export declare function exportEvalMarkdown(runId: string, outputPath?: string, client?: IndemnClient): Promise<{
3
+ file_path: string;
4
+ file_name: string;
5
+ file_type: string;
6
+ }>;
7
+ export declare function exportEvalReport(runId: string, outputPath?: string, client?: IndemnClient): Promise<{
8
+ file_path: string;
9
+ file_name: string;
10
+ file_type: string;
11
+ }>;
12
+ export declare function exportAgentCard(agentId: string, outputPath?: string, client?: IndemnClient): Promise<{
13
+ file_path: string;
14
+ file_name: string;
15
+ file_type: string;
16
+ }>;
17
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/report/export.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAehD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAgCtE;AA2JD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CA6BtE;AAMD,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAqCtE"}