claude-presentation-master 8.1.0 → 8.3.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/dist/index.d.mts CHANGED
@@ -127,6 +127,26 @@ interface QAResults {
127
127
  passed: boolean;
128
128
  /** List of issues found */
129
129
  issues: QAIssue[];
130
+ /** Per-slide scores from visual QA */
131
+ slideScores?: SlideScore[];
132
+ /** Overall QA score */
133
+ score?: number;
134
+ /** QA status */
135
+ status?: string;
136
+ }
137
+ interface SlideScore {
138
+ /** Slide index */
139
+ index: number;
140
+ /** Slide type */
141
+ type: string;
142
+ /** Score 0-100 */
143
+ score: number;
144
+ /** Expert verdict */
145
+ expertVerdict?: string;
146
+ /** Critical issues found */
147
+ criticalIssues?: string[];
148
+ /** All issues */
149
+ issues?: QAIssue[];
130
150
  }
131
151
  interface VisualQAResults {
132
152
  /** Whitespace percentage (target: 35%+ keynote, 25%+ business) */
@@ -391,19 +411,28 @@ interface SparklineStructure {
391
411
  }
392
412
  declare class ValidationError extends Error {
393
413
  errors: string[];
414
+ readonly suggestions: string[];
394
415
  constructor(errors: string[], message?: string);
416
+ private static getSuggestions;
395
417
  }
396
418
  declare class QAFailureError extends Error {
397
419
  score: number;
398
420
  threshold: number;
399
421
  qaResults: QAResults;
422
+ readonly topIssues: string[];
400
423
  constructor(score: number, threshold: number, qaResults: QAResults, message?: string);
401
424
  getIssues(): string[];
425
+ private static getTopIssues;
402
426
  }
403
427
  declare class TemplateNotFoundError extends Error {
404
428
  templatePath: string;
405
429
  constructor(templatePath: string, message?: string);
406
430
  }
431
+ declare class KnowledgeBaseError extends Error {
432
+ field: string;
433
+ context: string;
434
+ constructor(field: string, context: string, message?: string);
435
+ }
407
436
  /**
408
437
  * Content pattern detected from a section
409
438
  * Used to match content to appropriate slide types
@@ -1038,6 +1067,8 @@ declare class ContentAnalyzer {
1038
1067
  /**
1039
1068
  * Extract SCQA structure (Barbara Minto)
1040
1069
  * CRITICAL: Answer must be clean prose, NOT bullet points
1070
+ * @param text - The content text to analyze
1071
+ * @param subtitle - Optional subtitle to exclude (prevents redundancy with title slide)
1041
1072
  */
1042
1073
  private extractSCQA;
1043
1074
  /**
@@ -2173,4 +2204,4 @@ declare const _default: {
2173
2204
  VERSION: string;
2174
2205
  };
2175
2206
 
2176
- export { type AccessibilityResults, type ChartData, type ChartDataset, ChartJsProvider, type ChartProvider, type ChartRequest, type ChartResult, type ChartType, type ColorPalette, CompositeChartProvider, CompositeImageProvider, type ContentAnalysis$1 as ContentAnalysis, ContentAnalyzer, type ContentPattern, ContentPatternClassifier, type ContentQAResults, type ContentSection$1 as ContentSection, type ContrastIssue, type ExpertQAResults, type ExpertValidation, type FontSizeIssue, type GlanceTestResult, type ImageData, type ImageProvider, type ImageRequest, type ImageResult, KnowledgeGateway, type LegacySlide, LocalImageProvider, MermaidProvider, type MetricData, type OneIdeaResult, type OutputFormat, PlaceholderImageProvider, PowerPointGenerator, type PresentationConfig, PresentationEngine, type PresentationMetadata, type PresentationMode$1 as PresentationMode, type PresentationQualityScore, type PresentationResult, type PresentationType, QAEngine, QAFailureError, type QAIssue, type QAResults, QuickChartProvider, RevealJsGenerator, type SCQAStructure, ScoreCalculator, type ScoringWeights, type SevenDimensionQAResult, type SignalNoiseResult, type Slide, type SlideContentScore, type SlideData, SlideFactory, SlideGenerator, type SlideTemplate, type SlideType, type SlideValidationResult, type SlideVisualScore, type SparklineStructure, type StoryStructure, TemplateEngine, TemplateNotFoundError, type ThemeName, type TypographyRules, UnsplashImageProvider, VERSION, ValidationError, type ValidationRules, type VisualQAResults, VisualQualityEvaluator, createDefaultChartProvider, createDefaultImageProvider, createSlideFactory, _default as default, evaluatePresentation, generate, getKnowledgeGateway, initSlideGenerator, validate };
2207
+ export { type AccessibilityResults, type ChartData, type ChartDataset, ChartJsProvider, type ChartProvider, type ChartRequest, type ChartResult, type ChartType, type ColorPalette, CompositeChartProvider, CompositeImageProvider, type ContentAnalysis$1 as ContentAnalysis, ContentAnalyzer, type ContentPattern, ContentPatternClassifier, type ContentQAResults, type ContentSection$1 as ContentSection, type ContrastIssue, type ExpertQAResults, type ExpertValidation, type FontSizeIssue, type GlanceTestResult, type ImageData, type ImageProvider, type ImageRequest, type ImageResult, KnowledgeBaseError, KnowledgeGateway, type LegacySlide, LocalImageProvider, MermaidProvider, type MetricData, type OneIdeaResult, type OutputFormat, PlaceholderImageProvider, PowerPointGenerator, type PresentationConfig, PresentationEngine, type PresentationMetadata, type PresentationMode$1 as PresentationMode, type PresentationQualityScore, type PresentationResult, type PresentationType, QAEngine, QAFailureError, type QAIssue, type QAResults, QuickChartProvider, RevealJsGenerator, type SCQAStructure, ScoreCalculator, type ScoringWeights, type SevenDimensionQAResult, type SignalNoiseResult, type Slide, type SlideContentScore, type SlideData, SlideFactory, SlideGenerator, type SlideScore, type SlideTemplate, type SlideType, type SlideValidationResult, type SlideVisualScore, type SparklineStructure, type StoryStructure, TemplateEngine, TemplateNotFoundError, type ThemeName, type TypographyRules, UnsplashImageProvider, VERSION, ValidationError, type ValidationRules, type VisualQAResults, VisualQualityEvaluator, createDefaultChartProvider, createDefaultImageProvider, createSlideFactory, _default as default, evaluatePresentation, generate, getKnowledgeGateway, initSlideGenerator, validate };
package/dist/index.d.ts CHANGED
@@ -127,6 +127,26 @@ interface QAResults {
127
127
  passed: boolean;
128
128
  /** List of issues found */
129
129
  issues: QAIssue[];
130
+ /** Per-slide scores from visual QA */
131
+ slideScores?: SlideScore[];
132
+ /** Overall QA score */
133
+ score?: number;
134
+ /** QA status */
135
+ status?: string;
136
+ }
137
+ interface SlideScore {
138
+ /** Slide index */
139
+ index: number;
140
+ /** Slide type */
141
+ type: string;
142
+ /** Score 0-100 */
143
+ score: number;
144
+ /** Expert verdict */
145
+ expertVerdict?: string;
146
+ /** Critical issues found */
147
+ criticalIssues?: string[];
148
+ /** All issues */
149
+ issues?: QAIssue[];
130
150
  }
131
151
  interface VisualQAResults {
132
152
  /** Whitespace percentage (target: 35%+ keynote, 25%+ business) */
@@ -391,19 +411,28 @@ interface SparklineStructure {
391
411
  }
392
412
  declare class ValidationError extends Error {
393
413
  errors: string[];
414
+ readonly suggestions: string[];
394
415
  constructor(errors: string[], message?: string);
416
+ private static getSuggestions;
395
417
  }
396
418
  declare class QAFailureError extends Error {
397
419
  score: number;
398
420
  threshold: number;
399
421
  qaResults: QAResults;
422
+ readonly topIssues: string[];
400
423
  constructor(score: number, threshold: number, qaResults: QAResults, message?: string);
401
424
  getIssues(): string[];
425
+ private static getTopIssues;
402
426
  }
403
427
  declare class TemplateNotFoundError extends Error {
404
428
  templatePath: string;
405
429
  constructor(templatePath: string, message?: string);
406
430
  }
431
+ declare class KnowledgeBaseError extends Error {
432
+ field: string;
433
+ context: string;
434
+ constructor(field: string, context: string, message?: string);
435
+ }
407
436
  /**
408
437
  * Content pattern detected from a section
409
438
  * Used to match content to appropriate slide types
@@ -1038,6 +1067,8 @@ declare class ContentAnalyzer {
1038
1067
  /**
1039
1068
  * Extract SCQA structure (Barbara Minto)
1040
1069
  * CRITICAL: Answer must be clean prose, NOT bullet points
1070
+ * @param text - The content text to analyze
1071
+ * @param subtitle - Optional subtitle to exclude (prevents redundancy with title slide)
1041
1072
  */
1042
1073
  private extractSCQA;
1043
1074
  /**
@@ -2173,4 +2204,4 @@ declare const _default: {
2173
2204
  VERSION: string;
2174
2205
  };
2175
2206
 
2176
- export { type AccessibilityResults, type ChartData, type ChartDataset, ChartJsProvider, type ChartProvider, type ChartRequest, type ChartResult, type ChartType, type ColorPalette, CompositeChartProvider, CompositeImageProvider, type ContentAnalysis$1 as ContentAnalysis, ContentAnalyzer, type ContentPattern, ContentPatternClassifier, type ContentQAResults, type ContentSection$1 as ContentSection, type ContrastIssue, type ExpertQAResults, type ExpertValidation, type FontSizeIssue, type GlanceTestResult, type ImageData, type ImageProvider, type ImageRequest, type ImageResult, KnowledgeGateway, type LegacySlide, LocalImageProvider, MermaidProvider, type MetricData, type OneIdeaResult, type OutputFormat, PlaceholderImageProvider, PowerPointGenerator, type PresentationConfig, PresentationEngine, type PresentationMetadata, type PresentationMode$1 as PresentationMode, type PresentationQualityScore, type PresentationResult, type PresentationType, QAEngine, QAFailureError, type QAIssue, type QAResults, QuickChartProvider, RevealJsGenerator, type SCQAStructure, ScoreCalculator, type ScoringWeights, type SevenDimensionQAResult, type SignalNoiseResult, type Slide, type SlideContentScore, type SlideData, SlideFactory, SlideGenerator, type SlideTemplate, type SlideType, type SlideValidationResult, type SlideVisualScore, type SparklineStructure, type StoryStructure, TemplateEngine, TemplateNotFoundError, type ThemeName, type TypographyRules, UnsplashImageProvider, VERSION, ValidationError, type ValidationRules, type VisualQAResults, VisualQualityEvaluator, createDefaultChartProvider, createDefaultImageProvider, createSlideFactory, _default as default, evaluatePresentation, generate, getKnowledgeGateway, initSlideGenerator, validate };
2207
+ export { type AccessibilityResults, type ChartData, type ChartDataset, ChartJsProvider, type ChartProvider, type ChartRequest, type ChartResult, type ChartType, type ColorPalette, CompositeChartProvider, CompositeImageProvider, type ContentAnalysis$1 as ContentAnalysis, ContentAnalyzer, type ContentPattern, ContentPatternClassifier, type ContentQAResults, type ContentSection$1 as ContentSection, type ContrastIssue, type ExpertQAResults, type ExpertValidation, type FontSizeIssue, type GlanceTestResult, type ImageData, type ImageProvider, type ImageRequest, type ImageResult, KnowledgeBaseError, KnowledgeGateway, type LegacySlide, LocalImageProvider, MermaidProvider, type MetricData, type OneIdeaResult, type OutputFormat, PlaceholderImageProvider, PowerPointGenerator, type PresentationConfig, PresentationEngine, type PresentationMetadata, type PresentationMode$1 as PresentationMode, type PresentationQualityScore, type PresentationResult, type PresentationType, QAEngine, QAFailureError, type QAIssue, type QAResults, QuickChartProvider, RevealJsGenerator, type SCQAStructure, ScoreCalculator, type ScoringWeights, type SevenDimensionQAResult, type SignalNoiseResult, type Slide, type SlideContentScore, type SlideData, SlideFactory, SlideGenerator, type SlideScore, type SlideTemplate, type SlideType, type SlideValidationResult, type SlideVisualScore, type SparklineStructure, type StoryStructure, TemplateEngine, TemplateNotFoundError, type ThemeName, type TypographyRules, UnsplashImageProvider, VERSION, ValidationError, type ValidationRules, type VisualQAResults, VisualQualityEvaluator, createDefaultChartProvider, createDefaultImageProvider, createSlideFactory, _default as default, evaluatePresentation, generate, getKnowledgeGateway, initSlideGenerator, validate };