@aigne/doc-smith 0.7.1 → 0.7.2

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.
@@ -43,4 +43,9 @@ jobs:
43
43
  run: pnpm lint
44
44
 
45
45
  - name: Test
46
- run: pnpm test:coverage
46
+ run: pnpm test:coverage
47
+
48
+ - name: Upload coverage reports to Codecov
49
+ uses: codecov/codecov-action@v5
50
+ with:
51
+ token: ${{ secrets.CODECOV_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.7.1...v0.7.2) (2025-09-01)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * release 0.7.2 ([c3be232](https://github.com/AIGNE-io/aigne-doc-smith/commit/c3be2323e885cf5d11d654629fe30cc3720f79d3))
9
+
3
10
  ## [0.7.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.7.0...v0.7.1) (2025-08-31)
4
11
 
5
12
 
@@ -81,8 +81,9 @@ export default async function checkDetail(
81
81
 
82
82
  // If file exists, check content validation
83
83
  let contentValidationFailed = false;
84
+ let validationResult = {};
84
85
  if (detailGenerated && fileContent && structurePlan) {
85
- const validationResult = await checkDetailResult({
86
+ validationResult = await checkDetailResult({
86
87
  structurePlan,
87
88
  reviewContent: fileContent,
88
89
  docsDir,
@@ -121,6 +122,7 @@ export default async function checkDetail(
121
122
  sourceIds,
122
123
  originalStructurePlan,
123
124
  structurePlan,
125
+ detailFeedback: contentValidationFailed ? validationResult.detailFeedback : "",
124
126
  });
125
127
 
126
128
  return {
package/codecov.yml ADDED
@@ -0,0 +1,7 @@
1
+ comment:
2
+ layout: " diff, flags, files"
3
+ behavior: default
4
+ require_changes: false
5
+ require_base: false
6
+ require_head: true
7
+ hide_project_coverage: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/doc-smith",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -98,6 +98,7 @@ parentId: {{parentId}}
98
98
  - 媒体资源以 markdown 格式提供,示例:![资源描述](https://xxxx)
99
99
  - 在生成结果中以 markdown 格式展示图片
100
100
  - 根据资源描述,在上下文相关的位置,合理的展示图片,让结果展示效果更丰富
101
+ - 为了确保媒体资源路径正确,** 只能使用 media_list 中提供媒体资源或提供远程 URL 的媒体资源 **
101
102
 
102
103
  </media_rules>
103
104
 
@@ -300,7 +300,7 @@ function checkContentStructure(markdown, source, errorMessages) {
300
300
  }
301
301
 
302
302
  // Check if content ends with proper punctuation (indicating completeness)
303
- const validEndingPunctuation = [".", "。", ")", "|", "*"];
303
+ const validEndingPunctuation = [".", "。", ")", "|", "*", ">"];
304
304
  const trimmedText = markdown.trim();
305
305
  const hasValidEnding = validEndingPunctuation.some((punct) => trimmedText.endsWith(punct));
306
306