fabricatio 0.2.0.dev4__tar.gz → 0.2.0.dev6__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 (91) hide show
  1. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/.github/workflows/build-package.yaml +81 -81
  2. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/.github/workflows/ruff.yaml +20 -20
  3. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/.python-version +1 -1
  4. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/Cargo.lock +1816 -1816
  5. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/Makefile +5 -0
  6. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/PKG-INFO +194 -194
  7. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/README.md +193 -193
  8. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/pyproject.toml +150 -150
  9. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/binary-exploitation-ctf-solver.hbs +53 -53
  10. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/claude-xml.hbs +35 -35
  11. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/clean-up-code.hbs +37 -37
  12. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/cryptography-ctf-solver.hbs +42 -42
  13. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/document-the-code.hbs +29 -29
  14. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/find-security-vulnerabilities.hbs +47 -47
  15. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/fix-bugs.hbs +42 -42
  16. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/improve-performance.hbs +41 -41
  17. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/refactor.hbs +49 -49
  18. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/reverse-engineering-ctf-solver.hbs +54 -54
  19. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/web-ctf-solver.hbs +48 -48
  20. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/write-git-commit.hbs +28 -28
  21. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/write-github-pull-request.hbs +58 -58
  22. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/templates/built-in/write-github-readme.hbs +33 -33
  23. fabricatio-0.2.0.dev6/templates.tar.gz +0 -0
  24. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_core.py +56 -56
  25. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_decorators.py +23 -23
  26. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_events.py +41 -41
  27. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_examples.py +30 -30
  28. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_communication.py +19 -19
  29. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_llm_usage.py +21 -21
  30. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_propose_task.py +22 -22
  31. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_role_with_actions.py +22 -22
  32. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_task.py +39 -39
  33. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_template_manager.py +29 -29
  34. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_tool.py +55 -55
  35. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_transmission.py +29 -29
  36. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_briefing.py +17 -17
  37. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_briefing_and_json_example.py +22 -22
  38. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_briefing_and_llm_usage.py +22 -22
  39. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_briefing_and_llm_usage_and_json_example.py +29 -29
  40. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency.py +19 -19
  41. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency_and_briefing.py +22 -22
  42. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency_and_briefing_and_json_example.py +29 -29
  43. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency_and_briefing_and_llm_usage.py +25 -25
  44. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency_and_json_example.py +22 -22
  45. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency_and_llm_usage.py +22 -22
  46. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_dependency_and_llm_usage_and_json_example.py +25 -25
  47. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_with_json_example.py +17 -17
  48. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_workflow.py +29 -29
  49. fabricatio-0.2.0.dev6/uv.lock +1854 -0
  50. fabricatio-0.2.0.dev4/uv.lock +0 -1840
  51. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/.github/workflows/tests.yaml +0 -0
  52. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/.gitignore +0 -0
  53. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/Cargo.toml +0 -0
  54. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/LICENSE +0 -0
  55. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/examples/minor/hello_fabricatio.py +0 -0
  56. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/examples/propose_task/propose.py +0 -0
  57. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/examples/simple_chat/chat.py +0 -0
  58. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/__init__.py +0 -0
  59. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/_rust.pyi +0 -0
  60. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/actions/__init__.py +0 -0
  61. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/actions/communication.py +0 -0
  62. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/actions/transmission.py +0 -0
  63. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/config.py +0 -0
  64. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/core.py +0 -0
  65. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/decorators.py +0 -0
  66. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/fs/__init__.py +0 -0
  67. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/fs/readers.py +0 -0
  68. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/journal.py +0 -0
  69. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/action.py +0 -0
  70. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/events.py +0 -0
  71. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/generic.py +0 -0
  72. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/role.py +0 -0
  73. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/task.py +0 -0
  74. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/tool.py +0 -0
  75. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/models/utils.py +0 -0
  76. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/parser.py +0 -0
  77. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/py.typed +0 -0
  78. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/templates.py +0 -0
  79. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/toolboxes/__init__.py +0 -0
  80. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/python/fabricatio/toolboxes/task.py +0 -0
  81. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/src/downloaders.rs +0 -0
  82. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/src/lib.rs +0 -0
  83. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/src/templates.rs +0 -0
  84. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/__init__.py +0 -0
  85. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_config.py +0 -0
  86. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_action.py +0 -0
  87. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_events.py +0 -0
  88. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_generic.py +0 -0
  89. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_role.py +0 -0
  90. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_models/test_utils.py +0 -0
  91. {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev6}/tests/test_parser.py +0 -0
@@ -1,81 +1,81 @@
1
- name: Build and Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
- branches:
9
- - master
10
-
11
- jobs:
12
- check-and-release:
13
- runs-on: windows-latest
14
- steps:
15
- - name: Checkout repository
16
- uses: actions/checkout@v4
17
-
18
- - name: Install the latest version of uv
19
- uses: astral-sh/setup-uv@v5
20
- with:
21
- version: "latest"
22
- - name: Install nightly rust
23
- run: |
24
- rustup default nightly
25
- - name: Install deps
26
- continue-on-error: true
27
- run: |
28
- uv sync
29
- - name: Build
30
- run: |
31
- make
32
-
33
-
34
-
35
- - name: Get current version
36
- id: get_version
37
- run: |
38
- CURRENT_VERSION=$(grep '^version' pyproject.toml | cut -d '"' -f 2)
39
- echo "CURRENT_VERSION=v$CURRENT_VERSION" >> $GITHUB_OUTPUT
40
- shell: bash
41
- - name: Get latest tag
42
- uses: JinoArch/get-latest-tag@latest
43
- id: tag
44
-
45
- - name: Check if version has changed
46
- id: check_version_change
47
- run: |
48
- LATEST_TAG=${{ steps.tag.outputs.latestTag }}
49
- echo "Latest tag is $LATEST_TAG"
50
- echo "Current version is ${{ steps.get_version.outputs.CURRENT_VERSION }}"
51
- if [ "$LATEST_TAG" != "${{ steps.get_version.outputs.CURRENT_VERSION }}" ]; then
52
- echo "VERSION_CHANGED=true" >> $GITHUB_OUTPUT
53
- else
54
- echo "VERSION_CHANGED=false" >> $GITHUB_OUTPUT
55
- fi
56
- shell: bash
57
- - name: Packing templates
58
- if: ${{ steps.check_version_change.outputs.VERSION_CHANGED == 'true' }}
59
- run: |
60
- tar -czf templates.tar.gz templates
61
-
62
- - name: Create Release and upload assets
63
- if: ${{ steps.check_version_change.outputs.VERSION_CHANGED == 'true' }}
64
- id: create_release
65
- uses: softprops/action-gh-release@v2
66
- with:
67
- tag_name: ${{ steps.get_version.outputs.CURRENT_VERSION }}
68
- name: ${{ steps.get_version.outputs.CURRENT_VERSION }}
69
- files: |
70
- dist/*
71
- templates.tar.gz
72
- env:
73
- GITHUB_TOKEN: ${{ secrets.PAT }}
74
-
75
- - name: Upload to PyPI
76
- if: ${{ steps.check_version_change.outputs.VERSION_CHANGED == 'true' }}
77
- run: |
78
- make
79
- env:
80
- MATURIN_USERNAME: __token__
81
- MATURIN_PASSWORD: ${{ secrets.PYPI_TOKEN }}
1
+ name: Build and Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ check-and-release:
13
+ runs-on: windows-latest
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Install the latest version of uv
19
+ uses: astral-sh/setup-uv@v5
20
+ with:
21
+ version: "latest"
22
+ - name: Install nightly rust
23
+ run: |
24
+ rustup default nightly
25
+ - name: Install deps
26
+ continue-on-error: true
27
+ run: |
28
+ uv sync
29
+ - name: Build
30
+ run: |
31
+ make
32
+
33
+
34
+
35
+ - name: Get current version
36
+ id: get_version
37
+ run: |
38
+ CURRENT_VERSION=$(grep '^version' pyproject.toml | cut -d '"' -f 2)
39
+ echo "CURRENT_VERSION=v$CURRENT_VERSION" >> $GITHUB_OUTPUT
40
+ shell: bash
41
+ - name: Get latest tag
42
+ uses: JinoArch/get-latest-tag@latest
43
+ id: tag
44
+
45
+ - name: Check if version has changed
46
+ id: check_version_change
47
+ run: |
48
+ LATEST_TAG=${{ steps.tag.outputs.latestTag }}
49
+ echo "Latest tag is $LATEST_TAG"
50
+ echo "Current version is ${{ steps.get_version.outputs.CURRENT_VERSION }}"
51
+ if [ "$LATEST_TAG" != "${{ steps.get_version.outputs.CURRENT_VERSION }}" ]; then
52
+ echo "VERSION_CHANGED=true" >> $GITHUB_OUTPUT
53
+ else
54
+ echo "VERSION_CHANGED=false" >> $GITHUB_OUTPUT
55
+ fi
56
+ shell: bash
57
+ - name: Packing templates
58
+ if: ${{ steps.check_version_change.outputs.VERSION_CHANGED == 'true' }}
59
+ run: |
60
+ tar -czf templates.tar.gz templates
61
+
62
+ - name: Create Release and upload assets
63
+ if: ${{ steps.check_version_change.outputs.VERSION_CHANGED == 'true' }}
64
+ id: create_release
65
+ uses: softprops/action-gh-release@v2
66
+ with:
67
+ tag_name: ${{ steps.get_version.outputs.CURRENT_VERSION }}
68
+ name: ${{ steps.get_version.outputs.CURRENT_VERSION }}
69
+ files: |
70
+ dist/*
71
+ templates.tar.gz
72
+ env:
73
+ GITHUB_TOKEN: ${{ secrets.PAT }}
74
+
75
+ - name: Upload to PyPI
76
+ if: ${{ steps.check_version_change.outputs.VERSION_CHANGED == 'true' }}
77
+ run: |
78
+ make publish
79
+ env:
80
+ MATURIN_USERNAME: __token__
81
+ MATURIN_PASSWORD: ${{ secrets.PYPI_TOKEN }}
@@ -1,20 +1,20 @@
1
- name: Pre-commit checks
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - '**'
7
- push:
8
- branches:
9
- - '**'
10
-
11
- jobs:
12
- ruff-linter:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: Checkout repository
16
- uses: actions/checkout@v4
17
- - name: Setup ruff
18
- uses: astral-sh/ruff-action@v3
19
- with:
20
- github-token: ${{ secrets.PAT }}
1
+ name: Pre-commit checks
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - '**'
7
+ push:
8
+ branches:
9
+ - '**'
10
+
11
+ jobs:
12
+ ruff-linter:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
+ - name: Setup ruff
18
+ uses: astral-sh/ruff-action@v3
19
+ with:
20
+ github-token: ${{ secrets.PAT }}
@@ -1 +1 @@
1
- 3.12
1
+ 3.12