fabricatio 0.4.0__tar.gz → 0.4.0.dev0__tar.gz

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 (135) hide show
  1. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/PKG-INFO +1 -1
  2. fabricatio-0.4.0.dev0/packages/fabricatio-actions/LICENSE +21 -0
  3. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/pyproject.toml +2 -1
  4. fabricatio-0.4.0.dev0/packages/fabricatio-improve/LICENSE +21 -0
  5. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/pyproject.toml +2 -1
  6. fabricatio-0.4.0.dev0/packages/fabricatio-judge/LICENSE +21 -0
  7. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-judge/pyproject.toml +2 -1
  8. fabricatio-0.4.0.dev0/packages/fabricatio-rule/LICENSE +21 -0
  9. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/pyproject.toml +2 -1
  10. fabricatio-0.4.0.dev0/publish_subpackages.py +51 -0
  11. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/pyproject.toml +1 -1
  12. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/.github/workflows/build-package.yaml +0 -0
  13. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/.github/workflows/ruff.yaml +0 -0
  14. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/.github/workflows/tests.yaml +0 -0
  15. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/.gitignore +0 -0
  16. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/Cargo.lock +0 -0
  17. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/Cargo.toml +0 -0
  18. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/LICENSE +0 -0
  19. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/Makefile +0 -0
  20. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/README.md +0 -0
  21. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/correct/correct.py +0 -0
  22. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/correct/correct_loop.py +0 -0
  23. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/extract_and_inject/.gitignore +0 -0
  24. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/extract_and_inject/article_rag.py +0 -0
  25. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/extract_and_inject/ask.py +0 -0
  26. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/extract_and_inject/chunk_article.py +0 -0
  27. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/extract_and_inject/extract_and_inject.py +0 -0
  28. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/extract_article/extract.py +0 -0
  29. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/llm_usages/llm_usage.py +0 -0
  30. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/make_a_rating/rating.py +0 -0
  31. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/make_diary/commits.json +0 -0
  32. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/make_diary/diary.py +0 -0
  33. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/minor/hello_fabricatio.py +0 -0
  34. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/minor/write_a_poem.py +0 -0
  35. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/propose_task/.gitignore +0 -0
  36. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/propose_task/propose.py +0 -0
  37. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/reviewer/censor.py +0 -0
  38. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/reviewer/review.py +0 -0
  39. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/rules/.gitignore +0 -0
  40. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/rules/draft_ruleset.py +0 -0
  41. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/search_bibtex/.gitignore +0 -0
  42. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/search_bibtex/search.py +0 -0
  43. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/simple_chat/chat.py +0 -0
  44. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/simple_rag/simple_rag.py +0 -0
  45. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/task_handle/handle_task.py +0 -0
  46. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_article/.gitignore +0 -0
  47. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_article/article_rag.py +0 -0
  48. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_article/post_process.py +0 -0
  49. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_article/write_article.py +0 -0
  50. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_outline/.gitignore +0 -0
  51. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_outline/write_outline.py +0 -0
  52. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/examples/write_outline/write_outline_corrected.py +0 -0
  53. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/README.md +0 -0
  54. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/python/fabricatio_actions/__init__.py +0 -0
  55. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/python/fabricatio_actions/actions/__init__.py +0 -0
  56. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/python/fabricatio_actions/actions/fs.py +0 -0
  57. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/python/fabricatio_actions/actions/output.py +0 -0
  58. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/python/fabricatio_actions/models/generic.py +0 -0
  59. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-actions/python/fabricatio_actions/py.typed +0 -0
  60. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/README.md +0 -0
  61. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/__init__.py +0 -0
  62. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/capabilities/correct.py +0 -0
  63. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/capabilities/review.py +0 -0
  64. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/models/improve.py +0 -0
  65. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/models/kwargs_types.py +0 -0
  66. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/models/problem.py +0 -0
  67. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-improve/python/fabricatio_improve/py.typed +0 -0
  68. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-judge/README.md +0 -0
  69. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-judge/python/fabricatio_judge/__init__.py +0 -0
  70. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-judge/python/fabricatio_judge/capabilities/advanced_judge.py +0 -0
  71. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-judge/python/fabricatio_judge/models/advanced_judge.py +0 -0
  72. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-judge/python/fabricatio_judge/py.typed +0 -0
  73. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/README.md +0 -0
  74. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/__init__.py +0 -0
  75. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/actions/__init__.py +0 -0
  76. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/actions/rules.py +0 -0
  77. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/capabilities/__init__.py +0 -0
  78. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/capabilities/censor.py +0 -0
  79. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/capabilities/check.py +0 -0
  80. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/__init__.py +0 -0
  81. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/kwargs_types.py +0 -0
  82. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/patch.py +0 -0
  83. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/rule.py +0 -0
  84. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/packages/fabricatio-rule/python/fabricatio_rule/py.typed +0 -0
  85. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/__init__.py +0 -0
  86. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/py.typed +0 -0
  87. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/toolboxes/__init__.py +0 -0
  88. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/toolboxes/arithmetic.py +0 -0
  89. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/toolboxes/fs.py +0 -0
  90. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/workflows/__init__.py +0 -0
  91. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/python/fabricatio/workflows/rag.py +0 -0
  92. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/src/lib.rs +0 -0
  93. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/as_prompt.hbs +0 -0
  94. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/binary-exploitation-ctf-solver.hbs +0 -0
  95. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/chap_summary.hbs +0 -0
  96. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/check_string.hbs +0 -0
  97. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/claude-xml.hbs +0 -0
  98. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/clean-up-code.hbs +0 -0
  99. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/co_validation.hbs +0 -0
  100. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/create_json_obj.hbs +0 -0
  101. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/cryptography-ctf-solver.hbs +0 -0
  102. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/dependencies.hbs +0 -0
  103. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/document-the-code.hbs +0 -0
  104. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/draft_rating_criteria.hbs +0 -0
  105. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/draft_rating_manual.hbs +0 -0
  106. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/draft_rating_weights_klee.hbs +0 -0
  107. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/draft_tool_usage_code.hbs +0 -0
  108. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/extract.hbs +0 -0
  109. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/extract_criteria_from_reasons.hbs +0 -0
  110. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/extract_reasons_from_examples.hbs +0 -0
  111. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/find-security-vulnerabilities.hbs +0 -0
  112. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/fix-bugs.hbs +0 -0
  113. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/fix_troubled_obj.hbs +0 -0
  114. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/fix_troubled_string.hbs +0 -0
  115. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/generic_string.hbs +0 -0
  116. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/improve-performance.hbs +0 -0
  117. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/liststr.hbs +0 -0
  118. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/make_choice.hbs +0 -0
  119. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/make_judgment.hbs +0 -0
  120. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/pathstr.hbs +0 -0
  121. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/rate_fine_grind.hbs +0 -0
  122. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/refactor.hbs +0 -0
  123. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/refined_query.hbs +0 -0
  124. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/research_content_summary.hbs +0 -0
  125. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/retrieved_display.hbs +0 -0
  126. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/reverse-engineering-ctf-solver.hbs +0 -0
  127. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/review_string.hbs +0 -0
  128. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/rule_requirement.hbs +0 -0
  129. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/ruleset_requirement_breakdown.hbs +0 -0
  130. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/task_briefing.hbs +0 -0
  131. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/web-ctf-solver.hbs +0 -0
  132. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/write-git-commit.hbs +0 -0
  133. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/write-github-pull-request.hbs +0 -0
  134. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/templates/built-in/write-github-readme.hbs +0 -0
  135. {fabricatio-0.4.0 → fabricatio-0.4.0.dev0}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fabricatio
3
- Version: 0.4.0
3
+ Version: 0.4.0.dev0
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Whth Yotta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -3,7 +3,8 @@ name = "fabricatio-actions"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.12,<3.14"
7
+
7
8
  dependencies = [
8
9
 
9
10
  "fabricatio-core"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Whth Yotta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -3,7 +3,8 @@ name = "fabricatio-improve"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.12,<3.14"
7
+
7
8
  dependencies = [
8
9
 
9
10
  "fabricatio-core",
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Whth Yotta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -3,7 +3,8 @@ name = "fabricatio-judge"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.12,<3.14"
7
+
7
8
  dependencies = [
8
9
 
9
10
  "fabricatio-core"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Whth Yotta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -3,7 +3,8 @@ name = "fabricatio-rule"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.12,<3.14"
7
+
7
8
  dependencies = [
8
9
  "fabricatio-core",
9
10
  "fabricatio-improve",
@@ -0,0 +1,51 @@
1
+ import subprocess
2
+ import sys
3
+ import tomllib
4
+ from pathlib import Path
5
+
6
+ ROOT_DIR = Path("packages") # Default root directory
7
+
8
+
9
+ def main():
10
+ root_dir = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT_DIR
11
+
12
+ for entry in root_dir.iterdir():
13
+ if not entry.is_dir():
14
+ continue
15
+
16
+ pyproject_path = entry / "pyproject.toml"
17
+ if not pyproject_path.is_file():
18
+ continue
19
+
20
+ print(f"\n🔍 Checking project: {entry.name}")
21
+
22
+ try:
23
+ with pyproject_path.open("rb") as f:
24
+ config = tomllib.load(f)
25
+ build_backend = config.get("build-system", {}).get("build-backend", "")
26
+ except Exception as e:
27
+ print(f"⚠️ Failed to parse pyproject.toml in {entry.name}: {e}")
28
+ continue
29
+
30
+ print(f"📦 Build backend: {build_backend}")
31
+
32
+ if build_backend == "maturin":
33
+ # The following line was present in the original code but is not valid Python.
34
+ # It appears to be a comment or a command meant for manual execution for a specific package.
35
+ # uvx --directory .\packages\fabricatio-core\ maturin publish --skip-existing
36
+ command = ["uvx", "--directory", entry.as_posix(), "maturin", "publish", "--skip-existing"]
37
+ else:
38
+ command = ["uv", "publish", str(entry)] # Assuming uv publish expects the path to the package dir
39
+
40
+ print(f"🚀 Running command: {' '.join(command)}")
41
+
42
+ try:
43
+ subprocess.run(command, check=True, cwd=entry if build_backend != "maturin" else None)
44
+ except subprocess.CalledProcessError as e:
45
+ print(f"❌ Publishing failed for {entry.name}: {e}")
46
+ except FileNotFoundError:
47
+ print(f"❌ Command 'uv' not found. Make sure it's installed and in your PATH.")
48
+
49
+
50
+ if __name__ == "__main__":
51
+ main()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fabricatio"
3
- version = "0.4.0"
3
+ version = "0.4.0-dev0"
4
4
  description = "A LLM multi-agent framework."
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes