fabricatio 0.2.0.dev4__tar.gz → 0.2.0.dev5__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.
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/.github/workflows/build-package.yaml +81 -81
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/.github/workflows/ruff.yaml +20 -20
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/.python-version +1 -1
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/Cargo.lock +1816 -1816
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/Makefile +2 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/PKG-INFO +194 -194
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/README.md +193 -193
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/pyproject.toml +149 -150
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/binary-exploitation-ctf-solver.hbs +53 -53
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/claude-xml.hbs +35 -35
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/clean-up-code.hbs +37 -37
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/cryptography-ctf-solver.hbs +42 -42
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/document-the-code.hbs +29 -29
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/find-security-vulnerabilities.hbs +47 -47
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/fix-bugs.hbs +42 -42
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/improve-performance.hbs +41 -41
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/refactor.hbs +49 -49
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/reverse-engineering-ctf-solver.hbs +54 -54
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/web-ctf-solver.hbs +48 -48
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/write-git-commit.hbs +28 -28
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/write-github-pull-request.hbs +58 -58
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/templates/built-in/write-github-readme.hbs +33 -33
- fabricatio-0.2.0.dev5/templates.tar.gz +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_core.py +56 -56
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_decorators.py +23 -23
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_events.py +41 -41
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_examples.py +30 -30
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_communication.py +19 -19
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_llm_usage.py +21 -21
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_propose_task.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_role_with_actions.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_task.py +39 -39
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_template_manager.py +29 -29
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_tool.py +55 -55
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_transmission.py +29 -29
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_briefing.py +17 -17
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_briefing_and_json_example.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_briefing_and_llm_usage.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_briefing_and_llm_usage_and_json_example.py +29 -29
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency.py +19 -19
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency_and_briefing.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency_and_briefing_and_json_example.py +29 -29
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency_and_briefing_and_llm_usage.py +25 -25
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency_and_json_example.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency_and_llm_usage.py +22 -22
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_dependency_and_llm_usage_and_json_example.py +25 -25
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_with_json_example.py +17 -17
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_workflow.py +29 -29
- fabricatio-0.2.0.dev5/uv.lock +1840 -0
- fabricatio-0.2.0.dev4/uv.lock +0 -1840
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/.github/workflows/tests.yaml +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/.gitignore +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/Cargo.toml +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/LICENSE +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/examples/minor/hello_fabricatio.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/examples/propose_task/propose.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/examples/simple_chat/chat.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/__init__.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/_rust.pyi +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/actions/__init__.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/actions/communication.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/actions/transmission.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/config.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/core.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/decorators.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/fs/__init__.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/fs/readers.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/journal.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/action.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/events.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/generic.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/role.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/task.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/tool.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/models/utils.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/parser.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/py.typed +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/templates.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/toolboxes/__init__.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/python/fabricatio/toolboxes/task.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/src/downloaders.rs +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/src/lib.rs +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/src/templates.rs +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/__init__.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_config.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_action.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_events.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_generic.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_role.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/tests/test_models/test_utils.py +0 -0
- {fabricatio-0.2.0.dev4 → fabricatio-0.2.0.dev5}/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
|