@bernierllc/content-workflow-ai-review-step 0.4.0 → 0.6.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.
@@ -0,0 +1,12 @@
1
+ export type ContentWorkflowAiReviewStepErrorCode = 'CONTENT_WORKFLOW_AI_REVIEW_STEP_ERROR' | 'INVALID_INPUT' | 'OPERATION_FAILED';
2
+ export interface ContentWorkflowAiReviewStepErrorOptions {
3
+ cause?: Error;
4
+ code?: ContentWorkflowAiReviewStepErrorCode;
5
+ context?: Record<string, unknown>;
6
+ }
7
+ export declare class ContentWorkflowAiReviewStepError extends Error {
8
+ readonly code: ContentWorkflowAiReviewStepErrorCode;
9
+ readonly context?: Record<string, unknown>;
10
+ constructor(message: string, options?: ContentWorkflowAiReviewStepErrorOptions);
11
+ }
12
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,oCAAoC,GAC5C,uCAAuC,GACvC,eAAe,GACf,kBAAkB,CAAC;AAEvB,MAAM,WAAW,uCAAuC;IACtD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,oCAAoC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,qBAAa,gCAAiC,SAAQ,KAAK;IACzD,QAAQ,CAAC,IAAI,EAAE,oCAAoC,CAAC;IACpD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAE/B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uCAAuC;CAS/E"}
package/dist/errors.js ADDED
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright (c) 2025 Bernier LLC
3
+
4
+ This file is licensed to the client under a limited-use license.
5
+ The client may use and modify this code *only within the scope of the project it was delivered for*.
6
+ Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
7
+ */
8
+ export class ContentWorkflowAiReviewStepError extends Error {
9
+ code;
10
+ context;
11
+ constructor(message, options) {
12
+ super(message, options?.cause ? { cause: options.cause } : undefined);
13
+ this.name = 'ContentWorkflowAiReviewStepError';
14
+ this.code = options?.code ?? 'CONTENT_WORKFLOW_AI_REVIEW_STEP_ERROR';
15
+ if (options?.context !== undefined) {
16
+ this.context = options.context;
17
+ }
18
+ Error.captureStackTrace?.(this, this.constructor);
19
+ }
20
+ }
21
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAaF,MAAM,OAAO,gCAAiC,SAAQ,KAAK;IAChD,IAAI,CAAuC;IAC3C,OAAO,CAA2B;IAE3C,YAAY,OAAe,EAAE,OAAiD;QAC5E,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,kCAAkC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,uCAAuC,CAAC;QACrE,IAAI,OAAO,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;YACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export type { AIReviewSuggestion, AIReviewResult, ReviewScores, SuggestionType,
3
3
  export { buildReviewPrompt, buildQuickReviewPrompt, validatePrompt, estimateTokenCount, DEFAULT_REVIEW_PROMPT, } from './prompt-builder.js';
4
4
  export { parseReviewResponse, validateReviewResult } from './response-parser.js';
5
5
  export { calculateOverallScore, calculateSimpleAverage, getQualityLevel, calculateImprovementPotential, compareScores, getWeakestCategory, getStrongestCategory, calculateConsistencyScore, } from './scoring.js';
6
+ export { ContentWorkflowAiReviewStepError, type ContentWorkflowAiReviewStepErrorCode, type ContentWorkflowAiReviewStepErrorOptions } from './errors.js';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,6BAA6B,EAC7B,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,6BAA6B,EAC7B,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gCAAgC,EAAE,KAAK,oCAAoC,EAAE,KAAK,uCAAuC,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -11,4 +11,5 @@ export { AIReviewStep } from './ai-review-step.js';
11
11
  export { buildReviewPrompt, buildQuickReviewPrompt, validatePrompt, estimateTokenCount, DEFAULT_REVIEW_PROMPT, } from './prompt-builder.js';
12
12
  export { parseReviewResponse, validateReviewResult } from './response-parser.js';
13
13
  export { calculateOverallScore, calculateSimpleAverage, getQualityLevel, calculateImprovementPotential, compareScores, getWeakestCategory, getStrongestCategory, calculateConsistencyScore, } from './scoring.js';
14
+ export { ContentWorkflowAiReviewStepError } from './errors.js';
14
15
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,kBAAkB;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAoBnD,YAAY;AACZ,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,6BAA6B,EAC7B,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,kBAAkB;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAoBnD,YAAY;AACZ,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,6BAA6B,EAC7B,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gCAAgC,EAA2F,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bernierllc/content-workflow-ai-review-step",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "AI-powered content review workflow step with grammar, SEO, tone, and engagement analysis",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,8 @@
12
12
  }
13
13
  },
14
14
  "files": [
15
- "dist"
15
+ "dist/**/*",
16
+ "README.md"
16
17
  ],
17
18
  "keywords": [
18
19
  "workflow",
@@ -39,8 +40,8 @@
39
40
  "registry": "https://registry.npmjs.org/"
40
41
  },
41
42
  "dependencies": {
42
- "@bernierllc/ai-content-reviewer": "1.1.0",
43
- "@bernierllc/ai-provider-router": "1.3.0",
43
+ "@bernierllc/ai-content-reviewer": "1.3.0",
44
+ "@bernierllc/ai-provider-router": "1.5.0",
44
45
  "@bernierllc/logger": "1.6.0",
45
46
  "@bernierllc/neverhub-adapter": "0.3.0"
46
47
  },