@aigne/doc-smith 0.8.9 → 0.8.10-beta.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 (48) hide show
  1. package/.aigne/doc-smith/config.yaml +3 -1
  2. package/.aigne/doc-smith/preferences.yml +4 -4
  3. package/.aigne/doc-smith/upload-cache.yaml +180 -0
  4. package/.github/workflows/release.yml +6 -2
  5. package/.release-please-manifest.json +3 -0
  6. package/CHANGELOG.md +20 -0
  7. package/LICENSE +93 -0
  8. package/README.md +6 -2
  9. package/RELEASE.md +10 -0
  10. package/agents/generate/check-need-generate-structure.mjs +40 -18
  11. package/agents/generate/index.yaml +1 -0
  12. package/agents/generate/user-review-document-structure.mjs +168 -0
  13. package/agents/update/generate-and-translate-document.yaml +3 -3
  14. package/agents/utils/check-feedback-refiner.mjs +2 -0
  15. package/agents/utils/save-docs.mjs +16 -22
  16. package/aigne.yaml +1 -0
  17. package/docs/advanced-how-it-works.md +26 -24
  18. package/docs/advanced-how-it-works.zh.md +32 -30
  19. package/docs/advanced-quality-assurance.md +6 -9
  20. package/docs/advanced-quality-assurance.zh.md +19 -22
  21. package/docs/cli-reference.md +35 -76
  22. package/docs/cli-reference.zh.md +48 -89
  23. package/docs/configuration-interactive-setup.md +18 -18
  24. package/docs/configuration-interactive-setup.zh.md +33 -33
  25. package/docs/configuration-language-support.md +12 -12
  26. package/docs/configuration-language-support.zh.md +20 -20
  27. package/docs/configuration-llm-setup.md +14 -13
  28. package/docs/configuration-llm-setup.zh.md +16 -15
  29. package/docs/configuration-preferences.md +22 -27
  30. package/docs/configuration-preferences.zh.md +35 -40
  31. package/docs/configuration.md +31 -45
  32. package/docs/configuration.zh.md +48 -62
  33. package/docs/features-generate-documentation.md +6 -7
  34. package/docs/features-generate-documentation.zh.md +21 -22
  35. package/docs/features-publish-your-docs.md +38 -30
  36. package/docs/features-publish-your-docs.zh.md +45 -37
  37. package/docs/features-translate-documentation.md +14 -74
  38. package/docs/features-translate-documentation.zh.md +19 -79
  39. package/docs/features-update-and-refine.md +19 -18
  40. package/docs/features-update-and-refine.zh.md +33 -32
  41. package/docs-mcp/get-docs-structure.mjs +1 -1
  42. package/package.json +3 -3
  43. package/prompts/detail/document-rules.md +1 -1
  44. package/prompts/structure/check-document-structure.md +11 -15
  45. package/release-please-config.json +13 -0
  46. package/tests/agents/generate/check-need-generate-structure.test.mjs +21 -24
  47. package/tests/agents/generate/user-review-document-structure.test.mjs +294 -0
  48. package/utils/auth-utils.mjs +2 -2
@@ -1,7 +1,7 @@
1
1
  # Project information for documentation publishing
2
2
  projectName: AIGNE DocSmith
3
3
  projectDesc: AIGNE DocSmith is a powerful, AI-driven documentation generation tool built on the AIGNE Framework. It automates the creation of detailed, structured, and multi-language documentation directly from your source code.
4
- projectLogo: https://docsmith.aigne.io/image-bin/uploads/a7910a71364ee15a27e86f869ad59009.svg
4
+ projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
5
5
 
6
6
  # =============================================================================
7
7
  # Documentation Configuration
@@ -68,3 +68,5 @@ lastGitHead: f3f14b93e6b2e6beb42b2f368c2560ab050dfd03
68
68
  appUrl: https://docsmith.aigne.io
69
69
  # ⚠️ Warning: boardId is auto-generated by system, please do not edit manually
70
70
  boardId: "docsmith"
71
+ # Checkout ID for document deployment service
72
+ checkoutId: ""
@@ -9,7 +9,7 @@ rules:
9
9
  active: true
10
10
  scope: document
11
11
  rule: When describing publishing options, should use plain text instead of custom components, and recommend users to run their own Discuss Kit instance while providing relevant links.
12
- feedback: Publishing options should not use custom components: recommend users to run their own Discuss Kit instance in the text, and add Discuss Kit related links
12
+ feedback: "Publishing options should not use custom components: recommend users to run their own Discuss Kit instance in the text, and add Discuss Kit related links"
13
13
  createdAt: 2025-09-07T02:18:22.237Z
14
14
  - id: pref_039b58c47bdf95c9
15
15
  active: true
@@ -21,12 +21,12 @@ rules:
21
21
  active: true
22
22
  scope: document
23
23
  rule: When describing Discuss Kit, must clearly state that it is a non-open-source service running on the official platform, not a self-hosted instance.
24
- feedback: In the core features description about document publishing, show the official platform link, run your own Discuss Kit instance, not self-hosted: Discuss Kit is not open source.
24
+ feedback: "In the core features description about document publishing, show the official platform link, run your own Discuss Kit instance, not self-hosted: Discuss Kit is not open source."
25
25
  createdAt: 2025-09-07T01:59:12.876Z
26
26
  - id: pref_0c239f619329089f
27
27
  active: true
28
28
  scope: document
29
- rule: In the core features section, should use plain list format and add descriptions and links for AIGNE Hub and Discuss Kit.
29
+ rule: "In the core features section, should use plain list format and add descriptions and links for AIGNE Hub and Discuss Kit."
30
30
  feedback: Core features section should not use custom component lists, change to plain lists, add descriptions and links for AIGNE Hub and Discuss Kit to help users understand these two products
31
31
  createdAt: 2025-09-07T01:53:22.969Z
32
32
  paths:
@@ -34,7 +34,7 @@ rules:
34
34
  - id: pref_4e8aa735b11d8484
35
35
  active: true
36
36
  scope: document
37
- rule: In the 'How It Works' document, only show DocSmith implementation details, should not include AIGNE Framework information.
37
+ rule: "In the 'How It Works' document, only show DocSmith implementation details, should not include AIGNE Framework information."
38
38
  feedback: How it works section does not need to show AIGNE Framework, only need to show DocSmith implementation
39
39
  createdAt: 2025-09-06T13:15:10.272Z
40
40
  paths:
@@ -679,3 +679,183 @@ fcb9e91eb5d96bb427a2cea837c52772d4150f92d644850b6a4602bc43a2043b:
679
679
  https://docsmith.aigne.io:
680
680
  url: https://docsmith.aigne.io/image-bin/uploads/fcb9e91eb5d96bb4.svg
681
681
  upload_time: 2025-09-09T08:52:51.108Z
682
+ 1e4dff10610c71c41890b1e677af71a8a483eaffcdfe03d9ed5260bd01275d58:
683
+ local_path: .aigne/doc-smith/.tmp/assets/d2/9aa45f34ddbfb189d0dabb4fd6bbdee773e1b93d9c437dce0119935afa0cbe32.svg
684
+ sites:
685
+ https://docsmith.aigne.io:
686
+ url: https://docsmith.aigne.io/image-bin/uploads/1e4dff10610c71c4.svg
687
+ upload_time: 2025-09-15T08:31:20.831Z
688
+ 0575876331f46833cf4dd9919b11ba3b41a384b6c2c69d5868e49effb2dc5fc5:
689
+ local_path: .aigne/doc-smith/.tmp/assets/d2/52bef7d565debaef43ee7eec2181c24d087a909405b3fafa759a45df5c087b18.svg
690
+ sites:
691
+ https://docsmith.aigne.io:
692
+ url: https://docsmith.aigne.io/image-bin/uploads/0575876331f46833.svg
693
+ upload_time: 2025-09-15T08:31:22.707Z
694
+ 64fd55e9b8127285f39db001cffd796151340469b506a967eaab3b54bdccc26c:
695
+ local_path: .aigne/doc-smith/.tmp/assets/d2/2fc9edefc1348df7031dc376b12bccc42fae98451f86c83ff92c144924f5ab80.svg
696
+ sites:
697
+ https://docsmith.aigne.io:
698
+ url: https://docsmith.aigne.io/image-bin/uploads/64fd55e9b8127285.svg
699
+ upload_time: 2025-09-15T08:31:24.378Z
700
+ 84a9a489d9cab8353ca1ffa3309b1e12580be7dd40f6fe71909fb7a0a97e0856:
701
+ local_path: .aigne/doc-smith/.tmp/assets/d2/28fd7c1acbf3166f9d6aec06f4fa31db3a5d96b26de0d80af857cc0f3b28d82e.svg
702
+ sites:
703
+ https://docsmith.aigne.io:
704
+ url: https://docsmith.aigne.io/image-bin/uploads/84a9a489d9cab835.svg
705
+ upload_time: 2025-09-15T08:31:24.599Z
706
+ bc4517d39ff669f3185b66f2fa6586cb195110cd3733039f49cfc099b70240dd:
707
+ local_path: .aigne/doc-smith/.tmp/assets/d2/cbd2943d78da17df4ae1827dcf37320523afa2c754455540d0eefd72fae932d5.svg
708
+ sites:
709
+ https://docsmith.aigne.io:
710
+ url: https://docsmith.aigne.io/image-bin/uploads/bc4517d39ff669f3.svg
711
+ upload_time: 2025-09-15T08:31:24.649Z
712
+ d7551f9fce676609f6b1ed3fc966814acbe8fc4cddd08c939e269f6da6e01b18:
713
+ local_path: .aigne/doc-smith/.tmp/assets/d2/6c2d5fd0b11bbea82be0e2634bb0fef087603fe950b10e6cf4c988e7f27bd507.svg
714
+ sites:
715
+ https://docsmith.aigne.io:
716
+ url: https://docsmith.aigne.io/image-bin/uploads/d7551f9fce676609.svg
717
+ upload_time: 2025-09-15T08:31:24.893Z
718
+ fd265f3486512dd4bd8509cf1e43b2457850176bb5fc856d0261e30ff1f28aa1:
719
+ local_path: .aigne/doc-smith/.tmp/assets/d2/81305e5c9e3adbe30da63e27bdc9bdfdbf46edce579434558145f26fe60ee99a.svg
720
+ sites:
721
+ https://docsmith.aigne.io:
722
+ url: https://docsmith.aigne.io/image-bin/uploads/fd265f3486512dd4.svg
723
+ upload_time: 2025-09-15T08:31:25.415Z
724
+ 3cbcedb39de9e0d0de56d7d699615a00beae800e341f9dff0be1f9831b9d7220:
725
+ local_path: .aigne/doc-smith/.tmp/assets/d2/38c86557c522c4e0150b80d205f347add34996779e47e586457fb086dfc64c5c.svg
726
+ sites:
727
+ https://docsmith.aigne.io:
728
+ url: https://docsmith.aigne.io/image-bin/uploads/3cbcedb39de9e0d0.svg
729
+ upload_time: 2025-09-15T08:31:25.671Z
730
+ 0eaf5f51d9d723e7cbf2577c2da3e82f471e3e3fc2f106d19f56a891778a3aef:
731
+ local_path: .aigne/doc-smith/.tmp/assets/d2/8ca47d9e0fa8750203b418be8586f656662ea30b9259ddeb143ffd5c49d568a0.svg
732
+ sites:
733
+ https://docsmith.aigne.io:
734
+ url: https://docsmith.aigne.io/image-bin/uploads/0eaf5f51d9d723e7.svg
735
+ upload_time: 2025-09-15T08:31:25.715Z
736
+ 4438da955604257d8a8db5dd1fa933378b3b87012c4a885d9b88764869563427:
737
+ local_path: .aigne/doc-smith/.tmp/assets/d2/d82f93e726c285f14a42585aaeabcec650682a8ad7e5c9798922437436600e1e.svg
738
+ sites:
739
+ https://docsmith.aigne.io:
740
+ url: https://docsmith.aigne.io/image-bin/uploads/4438da955604257d.svg
741
+ upload_time: 2025-09-15T08:31:25.905Z
742
+ 5bba835a63c0caf9c1cea14ce600904dbe0db237d6c62a45f552a926cf8008bc:
743
+ local_path: .aigne/doc-smith/.tmp/assets/d2/395b6511ffa01359e34b1d1c22abae82139b2eb988d0e34b015228aed03b39a3.svg
744
+ sites:
745
+ https://docsmith.aigne.io:
746
+ url: https://docsmith.aigne.io/image-bin/uploads/5bba835a63c0caf9.svg
747
+ upload_time: 2025-09-15T08:31:26.052Z
748
+ d35ddf8b96aa36f4e32fde88e3ad00253ce35decd0ecabf8d3d2af50f1f5710d:
749
+ local_path: .aigne/doc-smith/.tmp/assets/d2/864048a2d47a45193018b5caf8608c3b5f159761a97eac9c4813a3d9e07da885.svg
750
+ sites:
751
+ https://docsmith.aigne.io:
752
+ url: https://docsmith.aigne.io/image-bin/uploads/d35ddf8b96aa36f4.svg
753
+ upload_time: 2025-09-15T08:31:26.866Z
754
+ 16dbd59009ffd80ebf82f766446f6e1925e832cbfe9df5a547702a7f250bf2b3:
755
+ local_path: .aigne/doc-smith/.tmp/assets/d2/48d69eddbbe4263ddbe0c3f7f2f396f6d3cc56a063cd6c536edd817e2e6154fa.svg
756
+ sites:
757
+ https://docsmith.aigne.io:
758
+ url: https://docsmith.aigne.io/image-bin/uploads/16dbd59009ffd80e.svg
759
+ upload_time: 2025-09-15T08:31:27.064Z
760
+ 12f7cdf80192f9a3909a72873eed14bbd88b58c92c68154ed3f9088e7777b552:
761
+ local_path: .aigne/doc-smith/.tmp/assets/d2/97707cf8ac1f5f503254b3814f1004619869459ddcc4c289ebb789d5336a7686.svg
762
+ sites:
763
+ https://docsmith.aigne.io:
764
+ url: https://docsmith.aigne.io/image-bin/uploads/12f7cdf80192f9a3.svg
765
+ upload_time: 2025-09-15T08:31:27.074Z
766
+ 7c243e620bad76070d4fe26b584cc6134cdcfb92cd87a9f1e5fdc36169390c7f:
767
+ local_path: .aigne/doc-smith/.tmp/assets/d2/c277aa9275295ad1e691085c63be4ead6a6eea9262589ca1f7437b2b49a45214.svg
768
+ sites:
769
+ https://docsmith.aigne.io:
770
+ url: https://docsmith.aigne.io/image-bin/uploads/7c243e620bad7607.svg
771
+ upload_time: 2025-09-15T08:31:27.291Z
772
+ d4cbfef7bd18e8b58a0e932d99ebe50790d3098faad337920ffd447e2239bc53:
773
+ local_path: .aigne/doc-smith/.tmp/assets/d2/f4afbd5d17fe6d77f0210c7d65dd71fe7ae0039f47200b2f176162d1550ddc41.svg
774
+ sites:
775
+ https://docsmith.aigne.io:
776
+ url: https://docsmith.aigne.io/image-bin/uploads/d4cbfef7bd18e8b5.svg
777
+ upload_time: 2025-09-15T08:31:27.311Z
778
+ 78530f0fea4c7c9bbd061f01aa94108a894fbb739cadf50af0f92966b7654a2e:
779
+ local_path: .aigne/doc-smith/.tmp/assets/d2/e9846ccaea32a3caa0fe807983decc8efe088a3bd879f4b97078f30c0aa93b8b.svg
780
+ sites:
781
+ https://docsmith.aigne.io:
782
+ url: https://docsmith.aigne.io/image-bin/uploads/78530f0fea4c7c9b.svg
783
+ upload_time: 2025-09-15T08:31:27.522Z
784
+ b48ffb9056a7961973b77dd7c75d1ac03c6f8425b5eec1222d991586faf00fad:
785
+ local_path: .aigne/doc-smith/.tmp/assets/d2/b0455fe35b77e2f8140f3fc86e537449c5b2c4bd90ac5f692e4c31d912ddd14e.svg
786
+ sites:
787
+ https://docsmith.aigne.io:
788
+ url: https://docsmith.aigne.io/image-bin/uploads/b48ffb9056a79619.svg
789
+ upload_time: 2025-09-15T08:31:28.288Z
790
+ f6391f1418793dda4601a83ed00566007b14d79de8d350a0f611526dd2c6bd96:
791
+ local_path: .aigne/doc-smith/.tmp/assets/d2/ddd293213f319d5d381eee32f0526468445a7ccd6d16c2b2aae2f54ec632e156.svg
792
+ sites:
793
+ https://docsmith.aigne.io:
794
+ url: https://docsmith.aigne.io/image-bin/uploads/f6391f1418793dda.svg
795
+ upload_time: 2025-09-15T08:31:28.487Z
796
+ 4ca65083aa5011b1bb359648c9bcd25ca8e4e0f9db8d7c1d78bbcc57a893f519:
797
+ local_path: .aigne/doc-smith/.tmp/assets/d2/57d33cb81570f720b9ba6a44584a8d70545aa761f6917ce7c03896ea995a7b9c.svg
798
+ sites:
799
+ https://docsmith.aigne.io:
800
+ url: https://docsmith.aigne.io/image-bin/uploads/4ca65083aa5011b1.svg
801
+ upload_time: 2025-09-15T08:31:28.498Z
802
+ a0f49cec9cb0581454143380c04f0f5e9de21cf4dd2c8e88920b25ad73d5ecb9:
803
+ local_path: .aigne/doc-smith/.tmp/assets/d2/6adde2cae9254e1d6163c4eb26060b7c5ccfdb7e3f330050fa0830fb940437bf.svg
804
+ sites:
805
+ https://docsmith.aigne.io:
806
+ url: https://docsmith.aigne.io/image-bin/uploads/a0f49cec9cb05814.svg
807
+ upload_time: 2025-09-15T08:31:29.934Z
808
+ 5f6eff6f75c2d5727eb5188146c7de5852500a0c8c53f568cce08bf0574932f1:
809
+ local_path: .aigne/doc-smith/.tmp/assets/d2/bb951d89940cdcd26babb821411293ac121b1d18ab7d8fa98f0d76a0518fe722.svg
810
+ sites:
811
+ https://docsmith.aigne.io:
812
+ url: https://docsmith.aigne.io/image-bin/uploads/5f6eff6f75c2d572.svg
813
+ upload_time: 2025-09-15T08:31:31.521Z
814
+ bb38d805dca014fba865d76cf9236c4bb5d25000d6022a529efabc85ac697826:
815
+ local_path: .aigne/doc-smith/.tmp/assets/d2/6c404f0415cfabaf16f2d27507c976e0cdc1b8e3a043848542b32a12205c68f7.svg
816
+ sites:
817
+ https://docsmith.aigne.io:
818
+ url: https://docsmith.aigne.io/image-bin/uploads/bb38d805dca014fb.svg
819
+ upload_time: 2025-09-15T09:19:15.767Z
820
+ e125a9bee97a1559f4a05f639fd32338c4b91fd5d9f821cdca9b4a8a225b7282:
821
+ local_path: .aigne/doc-smith/.tmp/assets/d2/be505db11bcffbd1cfe4df9dfc522d3b9aff3cf7bb72768881ed090be634240a.svg
822
+ sites:
823
+ https://docsmith.aigne.io:
824
+ url: https://docsmith.aigne.io/image-bin/uploads/e125a9bee97a1559.svg
825
+ upload_time: 2025-09-15T09:19:16.217Z
826
+ 581f7aa1f8d93d59a04fd6b2fa3eeb1410649942fdc300a62228444ca910fa48:
827
+ local_path: .aigne/doc-smith/.tmp/assets/d2/31c9b92f2b30a114fad120e2b2ae150ab4f9e239a6560fba2668179b73a446c0.svg
828
+ sites:
829
+ https://docsmith.aigne.io:
830
+ url: https://docsmith.aigne.io/image-bin/uploads/581f7aa1f8d93d59.svg
831
+ upload_time: 2025-09-15T09:19:16.597Z
832
+ 9ca1a93a7f9fe0057cb9a9bf5bad0202d0ef3cd28f6b1857b82e16ccce8d5133:
833
+ local_path: .aigne/doc-smith/.tmp/assets/d2/1edf15b8b1ff3d8607f13fecfcd627773f1284d15cafa8ca0bac0c6624bbb154.svg
834
+ sites:
835
+ https://docsmith.aigne.io:
836
+ url: https://docsmith.aigne.io/image-bin/uploads/9ca1a93a7f9fe005.svg
837
+ upload_time: 2025-09-15T09:19:17.160Z
838
+ 2f9c174f56c0e5533ed64108ac3762af640e31d249a82640e4e54c81590b753c:
839
+ local_path: .aigne/doc-smith/.tmp/assets/d2/b908079f1cc54afc4c1c5a6a886d7e091e468015796d3dbb168be328abc22510.svg
840
+ sites:
841
+ https://docsmith.aigne.io:
842
+ url: https://docsmith.aigne.io/image-bin/uploads/2f9c174f56c0e553.svg
843
+ upload_time: 2025-09-15T09:19:17.499Z
844
+ ca88fe5d71038ea7ae1b513eff9e36f3a0c7575b9a987962b41b8c0c8b7833ba:
845
+ local_path: .aigne/doc-smith/.tmp/assets/d2/38dcd78d8fed89db3e10cd132992104c6c1931422e822d7dcc985219e28468f8.svg
846
+ sites:
847
+ https://docsmith.aigne.io:
848
+ url: https://docsmith.aigne.io/image-bin/uploads/ca88fe5d71038ea7.svg
849
+ upload_time: 2025-09-15T09:19:18.564Z
850
+ 81b3f8028f9876b12d157e9061c71c41d271ee3518993332ada253a2d81117f7:
851
+ local_path: .aigne/doc-smith/.tmp/assets/d2/b9e214140048bde93680e60ceede78e480d37d5087007768f2d916c62a6d152f.svg
852
+ sites:
853
+ https://docsmith.aigne.io:
854
+ url: https://docsmith.aigne.io/image-bin/uploads/81b3f8028f9876b1.svg
855
+ upload_time: 2025-09-15T09:19:18.680Z
856
+ 6b09e27f6cd19989639bca1f59ede5c7d07ea521c87a463a7cd8cf7106dc8917:
857
+ local_path: .aigne/doc-smith/.tmp/assets/d2/832e17e386da95eb568a10a5769cee0698954324d044ae449fc7ce6bc96d87a8.svg
858
+ sites:
859
+ https://docsmith.aigne.io:
860
+ url: https://docsmith.aigne.io/image-bin/uploads/6b09e27f6cd19989.svg
861
+ upload_time: 2025-09-15T09:19:20.715Z
@@ -17,7 +17,6 @@ jobs:
17
17
  id: release
18
18
  with:
19
19
  token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
20
- release-type: node
21
20
 
22
21
  - name: Checkout
23
22
  uses: actions/checkout@v4
@@ -46,4 +45,9 @@ jobs:
46
45
  if: ${{ steps.release.outputs.release_created }}
47
46
  run: |
48
47
  npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
49
- pnpm publish --access public --no-git-checks
48
+ if [[ "${{ steps.release.outputs.version }}" == *beta* ]]; then
49
+ pnpm publish --access public --no-git-checks --tag beta
50
+ else
51
+ pnpm publish --access public --no-git-checks
52
+ fi
53
+
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.8.10-beta.1"
3
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.10-beta.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.10-beta...v0.8.10-beta.1) (2025-09-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * support document structure review workflow ([#117](https://github.com/AIGNE-io/aigne-doc-smith/issues/117)) ([ec7ae80](https://github.com/AIGNE-io/aigne-doc-smith/commit/ec7ae80b26a1b66928bddef7ac401f633a0f5a2b))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * improve English language consistency and clarity ([#118](https://github.com/AIGNE-io/aigne-doc-smith/issues/118)) ([74c9e8e](https://github.com/AIGNE-io/aigne-doc-smith/commit/74c9e8e19a78767c32da772133662818b8e50715))
14
+ * update doc-smith logo ([#114](https://github.com/AIGNE-io/aigne-doc-smith/issues/114)) ([52ab351](https://github.com/AIGNE-io/aigne-doc-smith/commit/52ab3519d98533f26c1a18203be51e0965c586bc))
15
+
16
+ ## [0.8.10-beta](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.9...v0.8.10-beta) (2025-09-16)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **ci:** support publish beta releases ([#112](https://github.com/AIGNE-io/aigne-doc-smith/issues/112)) ([aa51523](https://github.com/AIGNE-io/aigne-doc-smith/commit/aa515237cff275ef8c46f5ac2ad7ff60e9915ab4))
22
+
3
23
  ## [0.8.9](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.8...v0.8.9) (2025-09-15)
4
24
 
5
25
 
package/LICENSE ADDED
@@ -0,0 +1,93 @@
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
package/README.md CHANGED
@@ -17,7 +17,7 @@ As shown in the diagram, DocSmith integrates seamlessly with other [AIGNE](https
17
17
 
18
18
  ## Features
19
19
 
20
- - **Automated Generate Document Structure:** Intelligently analyzes your codebase to generate a comprehensive and logical document structure.
20
+ - **Automated Document Structure Generation:** Intelligently analyzes your codebase to generate a comprehensive and logical document structure.
21
21
  - **AI-Powered Content Generation:** Populates the document structure with detailed, high-quality content.
22
22
  - **Multi-Language Support:** Seamlessly translates your documentation into 12 languages including English, Chinese, Japanese, Korean, Spanish, French, German, Portuguese, Russian, Italian, and Arabic.
23
23
  - **AIGNE Hub Integration:** Use [AIGNE Hub](https://www.aigne.io/en/hub) as your LLM provider without needing your own API keys, with easy switching between different large language models.
@@ -231,7 +231,7 @@ Publish your documentation to Discuss Kit platforms:
231
231
  aigne doc publish
232
232
  ```
233
233
 
234
- **Interactive Publishing:** When run `aigne doc publish` will present an interactive menu for you to choose between:
234
+ **Interactive Publishing:** When you run `aigne doc publish`, it will present an interactive menu for you to choose between:
235
235
  - **Official Platform:** [docsmith.aigne.io](https://docsmith.aigne.io/app/)
236
236
  - **Own Instance:** Your own deployed [Discuss Kit](https://store.blocklet.dev/blocklets/z8ia1WEiBZ7hxURf6LwH21Wpg99vophFwSJdu) instance
237
237
 
@@ -307,3 +307,7 @@ aigne doc publish --appUrl https://your-discuss-kit-instance.com
307
307
 
308
308
 
309
309
  ```
310
+
311
+ ## License
312
+
313
+ This project is licensed under the Elastic License 2.0 License - see the [LICENSE](LICENSE) file for details.
package/RELEASE.md ADDED
@@ -0,0 +1,10 @@
1
+ ### Release a beta version
2
+
3
+ Create a normal PR, and release-please will automatically create a beta version PR.
4
+ Merge that PR when appropriate.
5
+
6
+ ### Release a prod version
7
+
8
+ When you want to publish a production version, you can run `git commit --allow-empty -m "chore: release x.x.x" -m "Release-As: x.x.x"` to main.
9
+ release-please will update the PR to release to a specific version (without beta).
10
+ Merge that PR when appropriate.
@@ -1,5 +1,6 @@
1
1
  import { access } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
+ import chalk from "chalk";
3
4
  import { getActiveRulesForScope } from "../../utils/preferences-utils.mjs";
4
5
  import {
5
6
  getCurrentGitHead,
@@ -13,23 +14,45 @@ export default async function checkNeedGenerateStructure(
13
14
  { originalDocumentStructure, feedback, lastGitHead, docsDir, forceRegenerate, ...rest },
14
15
  options,
15
16
  ) {
16
- // Check if we need to regenerate document structure
17
- let shouldRegenerate = false;
18
- let finalFeedback = feedback;
19
- let submittedFeedback = feedback;
20
-
21
- // Prompt for feedback if originalDocumentStructure exists and no feedback provided
22
- if (originalDocumentStructure && !feedback) {
23
- const userFeedback = await options.prompts.input({
24
- message: "How can we improve the documentation structure? (press Enter to skip):",
17
+ // Check if originalDocumentStructure is empty and prompt user
18
+ if (!originalDocumentStructure) {
19
+ const choice = await options.prompts.select({
20
+ message:
21
+ "Your project configuration is complete. Would you like to generate the document structure now?",
22
+ choices: [
23
+ {
24
+ name: "Generate now - Start building the document structure",
25
+ value: "generate",
26
+ },
27
+ {
28
+ name: "Review configuration first - Modify settings before generating",
29
+ value: "later",
30
+ },
31
+ ],
25
32
  });
26
33
 
27
- if (userFeedback?.trim()) {
28
- finalFeedback = userFeedback.trim();
29
- submittedFeedback = userFeedback.trim();
34
+ if (choice === "later") {
35
+ console.log(`\nConfiguration file: ${chalk.cyan("./.aigne/doc-smith/config.yaml")}`);
36
+ console.log(
37
+ "Review and modify your configuration as needed, then run 'aigne doc generate' to continue.",
38
+ );
39
+
40
+ // In test environment, return a special result instead of exiting
41
+ if (process.env.NODE_ENV === "test") {
42
+ return {
43
+ userDeferred: true,
44
+ documentStructure: null,
45
+ };
46
+ }
47
+
48
+ process.exit(0);
30
49
  }
31
50
  }
32
51
 
52
+ // Check if we need to regenerate document structure
53
+ let shouldRegenerate = false;
54
+ let finalFeedback = feedback;
55
+
33
56
  // If no feedback and originalDocumentStructure exists, check for git changes
34
57
  if (originalDocumentStructure) {
35
58
  // If no lastGitHead, check if _sidebar.md exists to determine if we should regenerate
@@ -85,7 +108,7 @@ export default async function checkNeedGenerateStructure(
85
108
  };
86
109
  }
87
110
 
88
- const panningAgent = options.context.agents["refineDocumentStructure"];
111
+ const planningAgent = options.context.agents["refineDocumentStructure"];
89
112
 
90
113
  // Get user preferences for document structure and global scope
91
114
  const structureRules = getActiveRulesForScope("structure", []);
@@ -98,11 +121,11 @@ export default async function checkNeedGenerateStructure(
98
121
  // Convert rule texts to string format for passing to the agent
99
122
  const userPreferences = ruleTexts.length > 0 ? ruleTexts.join("\n\n") : "";
100
123
 
101
- const result = await options.context.invoke(panningAgent, {
102
- feedback: finalFeedback || "",
124
+ const result = await options.context.invoke(planningAgent, {
125
+ ...rest,
103
126
  originalDocumentStructure,
104
127
  userPreferences,
105
- ...rest,
128
+ feedback: finalFeedback || "",
106
129
  });
107
130
 
108
131
  let message = "";
@@ -144,7 +167,7 @@ export default async function checkNeedGenerateStructure(
144
167
  }
145
168
 
146
169
  if (hasUpdated) {
147
- message = `\n### Auto-updated Project Info to \`.aigne/doc-smith/config.yaml\`\n\n${message}\n\n`;
170
+ message = `\n### Project Information Updated\n\nSaved to \`.aigne/doc-smith/config.yaml\`:\n\n${message}\n\n`;
148
171
  }
149
172
  }
150
173
  } catch (error) {
@@ -155,7 +178,6 @@ export default async function checkNeedGenerateStructure(
155
178
  return {
156
179
  ...result,
157
180
  feedback: "", // clear feedback
158
- documentStructureFeedback: submittedFeedback,
159
181
  projectInfoMessage: message,
160
182
  originalDocumentStructure: originalDocumentStructure
161
183
  ? originalDocumentStructure
@@ -10,6 +10,7 @@ skills:
10
10
  skipIfExists: true
11
11
  - ../utils/load-sources.mjs
12
12
  - ./check-need-generate-structure.mjs
13
+ - ./user-review-document-structure.mjs
13
14
  - url: ../utils/save-output.mjs
14
15
  default_input:
15
16
  saveKey: documentStructure