fabricatio 0.2.1.dev4__cp312-cp312-win_amd64.whl → 0.2.3__cp312-cp312-win_amd64.whl
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/__init__.py +8 -0
- fabricatio/_rust.cp312-win_amd64.pyd +0 -0
- fabricatio/capabilities/rag.py +310 -0
- fabricatio/capabilities/rating.py +79 -1
- fabricatio/config.py +52 -0
- fabricatio/core.py +33 -19
- fabricatio/models/action.py +6 -2
- fabricatio/models/generic.py +107 -1
- fabricatio/models/kwargs_types.py +23 -0
- fabricatio/models/task.py +69 -17
- fabricatio/models/usages.py +77 -70
- fabricatio/models/utils.py +50 -1
- fabricatio-0.2.3.data/scripts/tdown.exe +0 -0
- {fabricatio-0.2.1.dev4.dist-info → fabricatio-0.2.3.dist-info}/METADATA +42 -38
- {fabricatio-0.2.1.dev4.dist-info → fabricatio-0.2.3.dist-info}/RECORD +17 -16
- fabricatio-0.2.1.dev4.data/scripts/tdown.exe +0 -0
- {fabricatio-0.2.1.dev4.dist-info → fabricatio-0.2.3.dist-info}/WHEEL +0 -0
- {fabricatio-0.2.1.dev4.dist-info → fabricatio-0.2.3.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fabricatio
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.3
|
4
4
|
Classifier: License :: OSI Approved :: MIT License
|
5
5
|
Classifier: Programming Language :: Rust
|
6
6
|
Classifier: Programming Language :: Python :: 3.12
|
@@ -98,32 +98,32 @@ from fabricatio import Action, Role, Task, logger
|
|
98
98
|
|
99
99
|
|
100
100
|
class Hello(Action):
|
101
|
-
|
101
|
+
"""Action that says hello."""
|
102
102
|
|
103
|
-
|
104
|
-
|
103
|
+
name: str = "hello"
|
104
|
+
output_key: str = "task_output"
|
105
105
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
106
|
+
async def _execute(self, task_input: Task[str], **_) -> Any:
|
107
|
+
ret = "Hello fabricatio!"
|
108
|
+
logger.info("executing talk action")
|
109
|
+
return ret
|
110
110
|
|
111
111
|
|
112
112
|
async def main() -> None:
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
113
|
+
"""Main function."""
|
114
|
+
role = Role(
|
115
|
+
name="talker",
|
116
|
+
description="talker role",
|
117
|
+
registry={Task.pending_label: WorkFlow(name="talk", steps=(Hello,))}
|
118
|
+
)
|
119
119
|
|
120
|
-
|
121
|
-
|
122
|
-
|
120
|
+
task = Task(name="say hello", goals="say hello", description="say hello to the world")
|
121
|
+
result = await task.delegate()
|
122
|
+
logger.success(f"Result: {result}")
|
123
123
|
|
124
124
|
|
125
125
|
if __name__ == "__main__":
|
126
|
-
|
126
|
+
asyncio.run(main())
|
127
127
|
```
|
128
128
|
|
129
129
|
#### Writing and Dumping Code
|
@@ -311,17 +311,18 @@ from fabricatio.models.task import Task
|
|
311
311
|
|
312
312
|
toolbox_usage = ToolBoxUsage()
|
313
313
|
|
314
|
+
|
314
315
|
async def handle_security_vulnerabilities():
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
316
|
+
task = Task(
|
317
|
+
name="Security Check",
|
318
|
+
goals=["Identify security vulnerabilities"],
|
319
|
+
description="Perform a thorough security review on the project.",
|
320
|
+
dependencies=["./src/main.py"]
|
321
|
+
)
|
322
|
+
|
323
|
+
vulnerabilities = await toolbox_usage.gather_tools_fine_grind(task)
|
324
|
+
for vulnerability in vulnerabilities:
|
325
|
+
print(f"Found vulnerability: {vulnerability.name}")
|
325
326
|
```
|
326
327
|
|
327
328
|
#### Managing CTF Challenges
|
@@ -334,19 +335,22 @@ from fabricatio.models.task import Task
|
|
334
335
|
|
335
336
|
toolbox_usage = ToolBoxUsage()
|
336
337
|
|
338
|
+
|
337
339
|
async def solve_ctf_challenge(challenge_name: str, challenge_description: str, files: list[str]):
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
340
|
+
task = Task(
|
341
|
+
name=challenge_name,
|
342
|
+
goals=[f"Solve {challenge_name} challenge"],
|
343
|
+
description=challenge_description,
|
344
|
+
dependencies=files
|
345
|
+
)
|
346
|
+
|
347
|
+
solution = await toolbox_usage.gather_tools_fine_grind(task)
|
348
|
+
print(f"Challenge Solved: {solution}")
|
349
|
+
|
347
350
|
|
348
351
|
if __name__ == "__main__":
|
349
|
-
|
352
|
+
asyncio.run(
|
353
|
+
solve_ctf_challenge("Binary Exploitation", "CTF Binary Exploitation Challenge", ["./challenges/binary_exploit"]))
|
350
354
|
```
|
351
355
|
|
352
356
|
### Configuration
|
@@ -1,27 +1,28 @@
|
|
1
|
-
fabricatio-0.2.
|
2
|
-
fabricatio-0.2.
|
3
|
-
fabricatio-0.2.
|
1
|
+
fabricatio-0.2.3.dist-info/METADATA,sha256=uJGeKnZ9deejZ-g23WI67qGEi0AyVN0hJWZ1hw1hjWo,12291
|
2
|
+
fabricatio-0.2.3.dist-info/WHEEL,sha256=tpW5AN9B-9qsM9WW2FXG2r193YXiqexDadpKp0A2daI,96
|
3
|
+
fabricatio-0.2.3.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
4
4
|
fabricatio/actions/communication.py,sha256=NZxIIncKgJSDyBrqNebUtH_haqtxHa8ld2TZxT3CMdU,429
|
5
5
|
fabricatio/actions/transmission.py,sha256=xpvKqbXqgpi1BWy-vUUvmd8NZ1GhRNfsYUBp-l2jLyk,862
|
6
6
|
fabricatio/actions/__init__.py,sha256=eFmFVPQvtNgFynIXBVr3eP-vWQDWCPng60YY5LXvZgg,115
|
7
|
-
fabricatio/capabilities/
|
7
|
+
fabricatio/capabilities/rag.py,sha256=paq2zUOfw6whIBFkKDo1Kg5Ft5YXgWiJBNKq-6uGhuU,13295
|
8
|
+
fabricatio/capabilities/rating.py,sha256=zmTUvsUfxFgovRQzy4djL2zKRYTHmN6JY7A4lyT5uVQ,14907
|
8
9
|
fabricatio/capabilities/task.py,sha256=d2xtrwQxXWI40UskQCR5YhHarY7ST0ppr8TjY12uWQE,5327
|
9
|
-
fabricatio/config.py,sha256=
|
10
|
-
fabricatio/core.py,sha256=
|
10
|
+
fabricatio/config.py,sha256=j9dk9q_1-L2rIbunj8JzMGJUQLZ4-TAyLRYQ5BiP3B0,13232
|
11
|
+
fabricatio/core.py,sha256=VQ_JKgUGIy2gZ8xsTBZCdr_IP7wC5aPg0_bsOmjQ588,6458
|
11
12
|
fabricatio/decorators.py,sha256=uzsP4tFKQNjDHBkofsjjoJA0IUAaYOtt6YVedoyOqlo,6551
|
12
13
|
fabricatio/fs/curd.py,sha256=faMstgGUiQ4k2AW3OXfvvWWTldTtKXco7QINYaMjmyA,3981
|
13
14
|
fabricatio/fs/readers.py,sha256=Pz1-cdZYtmqr032dsroImlkFXAd0kCYY_9qVpD4UrG4,1045
|
14
15
|
fabricatio/fs/__init__.py,sha256=lWcKYg0v3mv2LnnSegOQaTtlVDODU0vtw_s6iKU5IqQ,122
|
15
16
|
fabricatio/journal.py,sha256=siqimKF0M_QaaOCMxtjr_BJVNyUIAQWILzE9Q4T6-7c,781
|
16
|
-
fabricatio/models/action.py,sha256=
|
17
|
+
fabricatio/models/action.py,sha256=NpklAVUHYO5JIY9YLwYowZ-U8R9CFf5aC10DhLF7gxQ,5924
|
17
18
|
fabricatio/models/events.py,sha256=mrihNEFgQ5o7qFWja1z_qX8dnaTLwPBoJdVlzxQV5oM,2719
|
18
|
-
fabricatio/models/generic.py,sha256=
|
19
|
-
fabricatio/models/kwargs_types.py,sha256=
|
19
|
+
fabricatio/models/generic.py,sha256=BXCweaYDSIxit3kqh0QshdvO7eRkF8RkNt1r-9rN76Q,9146
|
20
|
+
fabricatio/models/kwargs_types.py,sha256=Xhy5LcTB1oWBGVGipLf5y_dTb7tBzMO5QAQdEfZeI9I,1786
|
20
21
|
fabricatio/models/role.py,sha256=gYvleTeKUGDUNKPAC5B0EPMLC4jZ4vHsFHmHiVXkU6c,1830
|
21
|
-
fabricatio/models/task.py,sha256=
|
22
|
+
fabricatio/models/task.py,sha256=M6jeDFE3jX6cNV9bdOwhjHqgBHI3FKtFLWcmlqhYgcs,11419
|
22
23
|
fabricatio/models/tool.py,sha256=WTFnpF6xZ1nJbmIOonLsGQcM-kkDCeZiAFqyil9xg2U,6988
|
23
|
-
fabricatio/models/usages.py,sha256=
|
24
|
-
fabricatio/models/utils.py,sha256=
|
24
|
+
fabricatio/models/usages.py,sha256=Rh8zz-BUVpdsOKoV4gX1yrac-bFOfWED3rkWvKIzP0E,24569
|
25
|
+
fabricatio/models/utils.py,sha256=mXea76bd4r2jy_zx74GM4t5kCvkMu0JTOaw_VGvTCxk,3952
|
25
26
|
fabricatio/parser.py,sha256=uLabsvF07wRKW1PoTGuGEENCx3P4mhmuO8JkmOEkKko,3522
|
26
27
|
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
28
|
fabricatio/toolboxes/arithmetic.py,sha256=WLqhY-Pikv11Y_0SGajwZx3WhsLNpHKf9drzAqOf_nY,1369
|
@@ -30,7 +31,7 @@ fabricatio/toolboxes/task.py,sha256=kU4a501awIDV7GwNDuSlK3_Ym-5OhCp5sS-insTmUmQ,
|
|
30
31
|
fabricatio/toolboxes/__init__.py,sha256=b13KmASO8q5fBLwew964fn9oH86ER5g-S1PgA4fZ_xs,482
|
31
32
|
fabricatio/_rust.pyi,sha256=0wCqtwWkVxxoqprvk8T27T8QYKIAKHS7xgsmdMNjQKc,1756
|
32
33
|
fabricatio/_rust_instances.py,sha256=dl0-yZ4UvT5g20tQgnPJpmqtkjFGXNG_YK4eLfi_ugQ,279
|
33
|
-
fabricatio/__init__.py,sha256=
|
34
|
-
fabricatio/_rust.cp312-win_amd64.pyd,sha256=
|
35
|
-
fabricatio-0.2.
|
36
|
-
fabricatio-0.2.
|
34
|
+
fabricatio/__init__.py,sha256=E-JoEkGpl543nTbES0JGo_qOHaj2R6fz1bUcNajveys,1246
|
35
|
+
fabricatio/_rust.cp312-win_amd64.pyd,sha256=miczlXr6tcmL9VUTUdQEUaI6GNupRPktAAqf--4wXds,1270784
|
36
|
+
fabricatio-0.2.3.data/scripts/tdown.exe,sha256=Shuxh1PdIObKTQtXi69ra0Dxi9yllTKjdv2LoXB-l7M,3398144
|
37
|
+
fabricatio-0.2.3.dist-info/RECORD,,
|
Binary file
|
File without changes
|
File without changes
|