roksta 0.3.4__cp312-cp312-macosx_10_13_universal2.whl → 0.3.6__cp312-cp312-macosx_10_13_universal2.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.
Potentially problematic release.
This version of roksta might be problematic. Click here for more details.
- roksta/ai/gemini.cpython-312-darwin.so +0 -0
- roksta/ai/generic.cpython-312-darwin.so +0 -0
- roksta/ai/llm.cpython-312-darwin.so +0 -0
- roksta/ai/openai.cpython-312-darwin.so +0 -0
- roksta/ai/tools/__init__.cpython-312-darwin.so +0 -0
- roksta/ai/tools/read_file.cpython-312-darwin.so +0 -0
- roksta/ai/tools/shell_any.cpython-312-darwin.so +0 -0
- roksta/ai/tools/tool_defs.cpython-312-darwin.so +0 -0
- roksta/ai/tools/web_fetch.cpython-312-darwin.so +0 -0
- roksta/build_project.cpython-312-darwin.so +0 -0
- roksta/chat_workflow.cpython-312-darwin.so +0 -0
- roksta/check_for_updates.cpython-312-darwin.so +0 -0
- roksta/clarify_goal.cpython-312-darwin.so +0 -0
- roksta/command_handlers/handle_help_command.cpython-312-darwin.so +0 -0
- roksta/env.cpython-312-darwin.so +0 -0
- roksta/fix_tests.cpython-312-darwin.so +0 -0
- roksta/goal_workflow.cpython-312-darwin.so +0 -0
- roksta/init_codebase.cpython-312-darwin.so +0 -0
- roksta/main.cpython-312-darwin.so +0 -0
- roksta/new_features.cpython-312-darwin.so +0 -0
- roksta/propose_solution.cpython-312-darwin.so +0 -0
- roksta/roksta.cpython-312-darwin.so +0 -0
- roksta/save_chat_transcript.cpython-312-darwin.so +0 -0
- roksta/select_files.cpython-312-darwin.so +0 -0
- roksta/tips.cpython-312-darwin.so +0 -0
- roksta/utils.cpython-312-darwin.so +0 -0
- roksta/write_code.cpython-312-darwin.so +0 -0
- {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/METADATA +2 -1
- roksta-0.3.6.dist-info/RECORD +85 -0
- {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/top_level.txt +0 -1
- roksta-0.3.4.dist-info/RECORD +0 -122
- tests/__init__.py +0 -2
- tests/conftest.py +0 -211
- tests/functions/__init__.py +0 -2
- tests/functions/api_v1_00/__init__.py +0 -2
- tests/functions/api_v1_00/test__analytics.py +0 -416
- tests/functions/api_v1_00/test__gemini_proxy.py +0 -352
- tests/functions/api_v1_00/test__generic_proxy.py +0 -428
- tests/functions/api_v1_00/test__get_payment_details.py +0 -356
- tests/functions/api_v1_00/test__openai_proxy.py +0 -449
- tests/functions/api_v1_00/test__redeem_credit_code.py +0 -167
- tests/functions/api_v1_00/test__sync_emails.py +0 -325
- tests/functions/api_v1_00/test__take_payment.py +0 -491
- tests/functions/api_v1_00/test__use_activation_code.py +0 -438
- tests/functions/api_v1_01/__init__.py +0 -2
- tests/functions/api_v1_01/test__analytics.py +0 -416
- tests/functions/api_v1_01/test__gemini_proxy.py +0 -352
- tests/functions/api_v1_01/test__generic_proxy.py +0 -428
- tests/functions/api_v1_01/test__get_payment_details.py +0 -356
- tests/functions/api_v1_01/test__openai_proxy.py +0 -449
- tests/functions/api_v1_01/test__redeem_credit_code.py +0 -167
- tests/functions/api_v1_01/test__sync_emails.py +0 -325
- tests/functions/api_v1_01/test__take_payment.py +0 -491
- tests/functions/api_v1_01/test__use_activation_code.py +0 -438
- tests/functions/api_v1_02/__init__.py +0 -2
- tests/functions/api_v1_02/test__analytics.py +0 -416
- tests/functions/api_v1_02/test__gemini_proxy.py +0 -352
- tests/functions/api_v1_02/test__generic_proxy.py +0 -428
- tests/functions/api_v1_02/test__get_payment_details.py +0 -356
- tests/functions/api_v1_02/test__openai_proxy.py +0 -449
- tests/functions/api_v1_02/test__redeem_credit_code.py +0 -167
- tests/functions/api_v1_02/test__sync_emails.py +0 -325
- tests/functions/api_v1_02/test__take_payment.py +0 -491
- tests/functions/api_v1_02/test__use_activation_code.py +0 -438
- tests/functions/api_v1_02/test_proxy_keyword_replacement.py +0 -557
- tests/functions/api_v1_02/test_replace_keywords.py +0 -74
- tests/functions/test_auth.py +0 -24
- tests/functions/test_main.py +0 -73
- tests/functions/test_utils.py +0 -484
- {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/WHEEL +0 -0
- {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/entry_points.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
roksta/env.cpython-312-darwin.so
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: roksta
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
4
4
|
Summary: An AI coding assistant
|
|
5
5
|
Author-email: Prash Naidu <prash@roksta.ai>
|
|
6
6
|
Project-URL: Homepage, https://roksta.ai
|
|
@@ -22,6 +22,7 @@ Requires-Dist: jsonref>=1.1.0
|
|
|
22
22
|
Requires-Dist: pathspec>=0.12.1
|
|
23
23
|
Requires-Dist: psutil>=7.1.0
|
|
24
24
|
Requires-Dist: PyNaCl>=1.6.0
|
|
25
|
+
Requires-Dist: markdownify>=1.2.0
|
|
25
26
|
Provides-Extra: tests
|
|
26
27
|
Requires-Dist: pytest>=8.4.1; extra == "tests"
|
|
27
28
|
Requires-Dist: pytest-asyncio>=1.0.0; extra == "tests"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
roksta/default_config.cpython-312-darwin.so,sha256=Y-DEmdi-YpyroffYtiQ631HjKd-bZVWRxn49LIDRUcc,102232
|
|
2
|
+
roksta/__init__.cpython-312-darwin.so,sha256=aGhoZOTGADw_8ui447BG2io1Nf9nx4Qs353LjHeBrFc,85632
|
|
3
|
+
roksta/codebase_listing.cpython-312-darwin.so,sha256=GDTBAN99YQvxlb6RTKaBN3I7wn-7zc2jVlDdIaGpGVE,155720
|
|
4
|
+
roksta/make_issue.cpython-312-darwin.so,sha256=Wglbv-u7cjbOnlrW8ykjgqYlUCSOExkTelRGEZ1MzTc,221968
|
|
5
|
+
roksta/create_default_config.cpython-312-darwin.so,sha256=oMkNPhyY3B6Kb6Uq9b-a0S6aFrnb-epCkAr48qtSWuM,121864
|
|
6
|
+
roksta/gen_codebase_summaries.cpython-312-darwin.so,sha256=2AJ-0gS93G9jk8Zr9iH0QVbknSijFnbjhtQdEULYVrw,637776
|
|
7
|
+
roksta/balance.cpython-312-darwin.so,sha256=OKU-VXCqv41-jxCRrxfSKATIh9ONIgO5QLOLUpG5IcU,373216
|
|
8
|
+
roksta/propose_solution.cpython-312-darwin.so,sha256=7aRPpYrZfTv_wTAF9qfg7NgEfD7RxMjTKm1_XkyEIRE,207352
|
|
9
|
+
roksta/analytics.cpython-312-darwin.so,sha256=2zolEBaSk5uvzIXYY-G7GGcE_HBDv7NLDQAj8urBYbc,306816
|
|
10
|
+
roksta/utils.cpython-312-darwin.so,sha256=-wr56ueBnNxJ5VCZpIR43a5m6-fedyQezAL9HIF2QrY,638136
|
|
11
|
+
roksta/check_for_updates.cpython-312-darwin.so,sha256=2VTtoROUSD6C8XPcgK9iVdrJIs8Oa2wT_5ZEN9XdLno,306632
|
|
12
|
+
roksta/response_formats.cpython-312-darwin.so,sha256=nnb92jNdRh8g4Xq1ocI6xqeDvIKMX9x_1etlDcA-t8M,121112
|
|
13
|
+
roksta/main.cpython-312-darwin.so,sha256=FPT4a-_B-0WRoujx2h5gBQEP8NpgnaJyw6hV8TERR8s,138808
|
|
14
|
+
roksta/env.cpython-312-darwin.so,sha256=8je7Ii479saocP9ZqJhL9211NuOoR-9mC0fPEKohjrw,121032
|
|
15
|
+
roksta/get_failing_tests.cpython-312-darwin.so,sha256=WRLjGOl5idN3jrSaC5b9L81VZTlCYMSnjwbuDUSemIg,224152
|
|
16
|
+
roksta/fix_tests.cpython-312-darwin.so,sha256=pC-P0HWXscSouCZD8u-ZMIWrFOjjr21I2S3VVhBNbmk,224160
|
|
17
|
+
roksta/firebase_auth_web.cpython-312-darwin.so,sha256=8fdkRyQsx1k1yjeZ9E3JZ4REqzBo1UkeFwLGnf5vgbI,472600
|
|
18
|
+
roksta/run_cli_goal.cpython-312-darwin.so,sha256=ZMHes3egj1mezMkqHGRtGbVjCWf68rsGhQw1qt5NjS4,223808
|
|
19
|
+
roksta/build_project.cpython-312-darwin.so,sha256=32WjmVoskX9USG-jxwADb4KpPFXRc9DKYpg5yEyHa2g,191040
|
|
20
|
+
roksta/rewrite_goal.cpython-312-darwin.so,sha256=rIME3oOjnPK41PWYJaHQpyGuqgxIrt15ld-dNpqb8M4,190944
|
|
21
|
+
roksta/roksta.cpython-312-darwin.so,sha256=Kc-b_YcRXywrG7sLWcZE6Tb2G4qVdciKTMcDrwRGm-Y,588400
|
|
22
|
+
roksta/clarify_goal.cpython-312-darwin.so,sha256=RQdrd9G27KOl4rHGg9Mslle3agHpAiMkrcvYu2uP454,207664
|
|
23
|
+
roksta/init_codebase.cpython-312-darwin.so,sha256=GbVYXCdKKtmFJOzDJLnSrupFeWRkY1HgipCxBWUoGJQ,341376
|
|
24
|
+
roksta/gen_one_line_goal.cpython-312-darwin.so,sha256=76jDvdgvqrBo12mlZDL2046adZvmtkZ_aaPGIangzCw,207624
|
|
25
|
+
roksta/new_features.cpython-312-darwin.so,sha256=Dq6vBvh4TG1IeA_4zaN0bIz0DgOX7taHxysr3NcPjgU,85712
|
|
26
|
+
roksta/firebase_config.cpython-312-darwin.so,sha256=EOpQM7e9pW2ZqAlkjbeOV-Iyoq4DSU__DIZpeDmO9gI,86776
|
|
27
|
+
roksta/chat_workflow.cpython-312-darwin.so,sha256=iBwMj8B6fOzU6Eln6bzG_XXicRG3MBX517ObFp7Bf90,273552
|
|
28
|
+
roksta/select_files.cpython-312-darwin.so,sha256=DjY4aILl7dKclam6CcvlBeqLiE6MDJlo-Ly_t96fL5A,207584
|
|
29
|
+
roksta/enums.cpython-312-darwin.so,sha256=z_yYfAFoLN5qExTRqgOCzeAcchW1s-VhHYzyqjGsAEY,338440
|
|
30
|
+
roksta/write_code.cpython-312-darwin.so,sha256=PYiEyRfBJby-J-GEkitd_Gh866rzx8lZmUGZxN3x9NA,190928
|
|
31
|
+
roksta/tips.cpython-312-darwin.so,sha256=2d-Ske6fLhxD8fgfzAkUVeap6LFUcNDS7dIlXoGx9cY,85672
|
|
32
|
+
roksta/goal_workflow.cpython-312-darwin.so,sha256=7vTa_NmWg6liXkgZJLoin-obSTga_kkBK8P5ZVPdkbc,521760
|
|
33
|
+
roksta/firebase.cpython-312-darwin.so,sha256=WAl2UK3th8Xw7ZKbPravorAnqTCHsJkOt5GQaxzrccU,488048
|
|
34
|
+
roksta/parse_readme.cpython-312-darwin.so,sha256=UQaLbWoB2rOPPDMHSNDA9muAptft1iJ-vkjyKWN9T4s,207152
|
|
35
|
+
roksta/save_chat_transcript.cpython-312-darwin.so,sha256=PE10ak0X3eBns_PrqbP5DXFT1V9xhTpu3hJ9TdrkJAg,207560
|
|
36
|
+
roksta/logger.cpython-312-darwin.so,sha256=a8QBPk7gr_rlRertm1QLxz5wf4_aBJxSLJuoHJfeCqM,138672
|
|
37
|
+
roksta/lint_code.cpython-312-darwin.so,sha256=QgEkYdj4J5MZF3IyCn9M69H-XZ5ihNiODVaw9TZkvpU,224496
|
|
38
|
+
roksta/extended_text_area.cpython-312-darwin.so,sha256=uSOqAGbFrgI0jkwWNY636WOfMTc9mdzXs3qT_WdwDLM,307272
|
|
39
|
+
roksta/checkpoints.cpython-312-darwin.so,sha256=UdKnNkQweTrMxDjpfjruXtEFVyNG4B4mrg2K07f3ojg,254432
|
|
40
|
+
roksta/get_codebase_structure.cpython-312-darwin.so,sha256=_ZS1xgbWZUm8grv1lrmstrepFvH-ZK-xczOQ4-doM60,206272
|
|
41
|
+
roksta/command_handlers/__init__.cpython-312-darwin.so,sha256=w1SkWvlEUw7c0hKd9HY1_teX8cKcmdbYKUcWCMGWinw,86256
|
|
42
|
+
roksta/command_handlers/handle_logout_command.cpython-312-darwin.so,sha256=2l7y8vA4-3aquMJZBBuqDrzdEhBn2-O4obMHqVlR8ec,121624
|
|
43
|
+
roksta/command_handlers/handle_redeem_command.cpython-312-darwin.so,sha256=SU7Rn60su7bIn4ZjR_u5L_z8izk-cMlYQyOD-s1RRwE,157800
|
|
44
|
+
roksta/command_handlers/handle_usage_command.cpython-312-darwin.so,sha256=x9ZRZN4KeGSdVXrpTwtGotmDTNRLKxqJO7oqtVb5c3c,207944
|
|
45
|
+
roksta/command_handlers/handle_auto_charge_command.cpython-312-darwin.so,sha256=HNv6EISO2Uh-ZDohRYoUzVSkYgb22b4H7mb5PZIdJ6U,172944
|
|
46
|
+
roksta/command_handlers/handle_building_command.cpython-312-darwin.so,sha256=D9UHtfr1n604eR1oRfqMB66Ky7QlJbCV2urmO4IGl4c,156080
|
|
47
|
+
roksta/command_handlers/handle_auto_commit_command.cpython-312-darwin.so,sha256=5clPnjCSSIrZwXU_DI3fqmXp16cdwMKiMIWydtIsHI4,122672
|
|
48
|
+
roksta/command_handlers/handle_help_command.cpython-312-darwin.so,sha256=QDCViKcfhnEk9bfRMlsuWefQ2mOvrOm3jrOsqx8HyVY,220568
|
|
49
|
+
roksta/command_handlers/handle_add_funds_command.cpython-312-darwin.so,sha256=JjSQAeGxaNSKm3JX3ffVdrpfmIenRgXuKOnQ1k6OJXE,224496
|
|
50
|
+
roksta/command_handlers/handle_chat_command.cpython-312-darwin.so,sha256=nZ2RsDXJHtLqXhUJ4GNBoQEcfRKX0-gZEGlrIf1E1mQ,156792
|
|
51
|
+
roksta/command_handlers/handle_testing_command.cpython-312-darwin.so,sha256=BeCYaWoYtu34UxGXttD68lFPP-vcm6zUJXODsJcGL1U,156064
|
|
52
|
+
roksta/command_handlers/handle_init_command.cpython-312-darwin.so,sha256=hdpTFH0aO2Ov6qWi5W6DcBKVA9rHlQwhNxb9TtpPP3o,157192
|
|
53
|
+
roksta/command_handlers/handle_dev_rate_command.cpython-312-darwin.so,sha256=WkEuTW05z_5K-orrgKP8-spL6qPbKzCKhiTjGel0QvQ,156128
|
|
54
|
+
roksta/command_handlers/handle_activate_command.cpython-312-darwin.so,sha256=7z1vtwp5XuTRDG_oATzKJpRY2CyNBA9nFPXVxeX7CNM,240464
|
|
55
|
+
roksta/command_handlers/handle_login_command.cpython-312-darwin.so,sha256=ZnuUuRDALgPXXf6WzXzHcAeRHsLV6UBQK6Psfs3Pxf4,207256
|
|
56
|
+
roksta/command_handlers/handle_linting_command.cpython-312-darwin.so,sha256=quNAw6TV67G0Mfq2npeUcwcY5ljfqNBFnvVJt7jTyFk,156080
|
|
57
|
+
roksta/command_handlers/handle_quit_command.cpython-312-darwin.so,sha256=5e-Dl892KJu6wfOycgKSKyefcmgwXj4u17Oln0LvcO8,87656
|
|
58
|
+
roksta/command_handlers/handle_payment_details_command.cpython-312-darwin.so,sha256=UghdU6OL3hj7Cc_ozLLEesg3YbDq5i4JFHHByYZbwlU,173640
|
|
59
|
+
roksta/command_handlers/handle_goal_command.cpython-312-darwin.so,sha256=LkINQmNLpXB4Qi13inV4Zp42UYwajR60xpdkgSLFQFM,173576
|
|
60
|
+
roksta/command_handlers/handle_request_activation_command.cpython-312-darwin.so,sha256=5qF9R4BoQ2DDIqM5EAQ-EJIcxMjqwkSby8XHfXvLo6g,206968
|
|
61
|
+
roksta/command_handlers/handle_feedback_command.cpython-312-darwin.so,sha256=UwUgqvIgb3K1tVpCflNPtGa1wDGIzIQLuECAOwednfg,206736
|
|
62
|
+
roksta/ai/__init__.cpython-312-darwin.so,sha256=5_lHxLo2XMbdiUPvD567zM1pag2REJBiRZkorL9pEdw,85632
|
|
63
|
+
roksta/ai/generic.cpython-312-darwin.so,sha256=CkKCYz2nRG-YhY8ECcCvdz9PmDMUBl_ZD4xP0YikHfs,306800
|
|
64
|
+
roksta/ai/gemini.cpython-312-darwin.so,sha256=B0iC4omOPyGUq-G0POWMbn6RvxlEdYVwYpWDBbe0xKo,406000
|
|
65
|
+
roksta/ai/openai.cpython-312-darwin.so,sha256=NsU2EKyXaqSKwbYDFYn5URXkXfy-Ph56Y8WKbXkXEiE,306784
|
|
66
|
+
roksta/ai/call_ai.cpython-312-darwin.so,sha256=dFFRIydEtqcC6CrJwzTV5ERNeKXms5CHGoneOtanlyE,240624
|
|
67
|
+
roksta/ai/llm.cpython-312-darwin.so,sha256=uWT_qjOf2kq9Xs8k8lFqJA0RUBUegs3vu6HNZkd4SCA,271640
|
|
68
|
+
roksta/ai/tools/__init__.cpython-312-darwin.so,sha256=ssqI1VL1H03AtXKGZ7vmWIgip1uins8y0Z8ghvARHwA,87392
|
|
69
|
+
roksta/ai/tools/tool_defs.cpython-312-darwin.so,sha256=NbtS5DupEwWOMQo1pBGVvXLgyezy8MIbQuZiTaNdI0c,137520
|
|
70
|
+
roksta/ai/tools/tool_utils.cpython-312-darwin.so,sha256=5DHXLk9C4RZ-EbKbWNgJ5o9np9KiDIc3-XMlNhOVEr0,307584
|
|
71
|
+
roksta/ai/tools/final_response.cpython-312-darwin.so,sha256=cxaX6NjwRSmP6SabPW2Ye0lC2jxBsLt8sfcntg79XpQ,88088
|
|
72
|
+
roksta/ai/tools/regex_replace.cpython-312-darwin.so,sha256=2lSzL8Xrxqa9TIWM1CgBPygSIT6O6p-QdNphHbDaJUE,155616
|
|
73
|
+
roksta/ai/tools/shell_any.cpython-312-darwin.so,sha256=GYchtw738cHy2I5IaqP2aN61PKJJOYrEDvecpRjxLwg,224064
|
|
74
|
+
roksta/ai/tools/shell_limited.cpython-312-darwin.so,sha256=YG6v8qGbnxFq_lo-BjFxku3O_34k3SOWolB-yRcSnms,190848
|
|
75
|
+
roksta/ai/tools/delete_file.cpython-312-darwin.so,sha256=GeDRmXhEuOngYkuk8xi6C2gXlTIDk7f_RG0oVPSZFco,122096
|
|
76
|
+
roksta/ai/tools/read_file.cpython-312-darwin.so,sha256=R-7HiN4bE4fHqSKV4uK25E0e6IMlZROWwT3jQdhLSu8,155920
|
|
77
|
+
roksta/ai/tools/write_file.cpython-312-darwin.so,sha256=ymftllGtvtlRLyzs1sJtebKlhEibIJCafbGcdn_p0CE,122160
|
|
78
|
+
roksta/ai/tools/get_file_summaries.cpython-312-darwin.so,sha256=sBW_uHxfIUJLJHhY4ZYuPTUhpINdA6Q5cXGZMhRpsoE,122840
|
|
79
|
+
roksta/ai/tools/web_fetch.cpython-312-darwin.so,sha256=BY_CRYoE5TMk_RWXIBB5duawtYUt3YM04UxllgEuq_E,304560
|
|
80
|
+
roksta/ai/tools/edit_file.cpython-312-darwin.so,sha256=zMDvLx_rXJvvhNEVl1ONjPpikavVdS_fg8ZeGETGveg,155280
|
|
81
|
+
roksta-0.3.6.dist-info/RECORD,,
|
|
82
|
+
roksta-0.3.6.dist-info/WHEEL,sha256=3DzZhK-rNIkkEIppB3qbu6syT4kayeV5HkusnWIqMIg,142
|
|
83
|
+
roksta-0.3.6.dist-info/entry_points.txt,sha256=mzRdYg_DlzZRwjxYUt9-gyoRCkM1QBTeTbwETgiTdGw,44
|
|
84
|
+
roksta-0.3.6.dist-info/top_level.txt,sha256=Worlz0mMqoxRSgPmoN1j_P-sJgIrmzD0uJ08qJwpWpQ,7
|
|
85
|
+
roksta-0.3.6.dist-info/METADATA,sha256=iU2JldJ-l3DbdLM6p597DjdCrOQ87_jfXbgSONkmRws,1541
|
roksta-0.3.4.dist-info/RECORD
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
roksta-0.3.4.dist-info/RECORD,,
|
|
2
|
-
roksta-0.3.4.dist-info/WHEEL,sha256=3DzZhK-rNIkkEIppB3qbu6syT4kayeV5HkusnWIqMIg,142
|
|
3
|
-
roksta-0.3.4.dist-info/entry_points.txt,sha256=mzRdYg_DlzZRwjxYUt9-gyoRCkM1QBTeTbwETgiTdGw,44
|
|
4
|
-
roksta-0.3.4.dist-info/top_level.txt,sha256=lvciNZQ1dPGXpiCLdWVXK03n9fKHjbQdwjqQbnUjeYM,13
|
|
5
|
-
roksta-0.3.4.dist-info/METADATA,sha256=g6ygccU21yrpUPzBgzazE1-nKbmCKTkNBPO04PIAF8g,1507
|
|
6
|
-
roksta/default_config.cpython-312-darwin.so,sha256=Y-DEmdi-YpyroffYtiQ631HjKd-bZVWRxn49LIDRUcc,102232
|
|
7
|
-
roksta/__init__.cpython-312-darwin.so,sha256=aGhoZOTGADw_8ui447BG2io1Nf9nx4Qs353LjHeBrFc,85632
|
|
8
|
-
roksta/codebase_listing.cpython-312-darwin.so,sha256=GDTBAN99YQvxlb6RTKaBN3I7wn-7zc2jVlDdIaGpGVE,155720
|
|
9
|
-
roksta/make_issue.cpython-312-darwin.so,sha256=Wglbv-u7cjbOnlrW8ykjgqYlUCSOExkTelRGEZ1MzTc,221968
|
|
10
|
-
roksta/create_default_config.cpython-312-darwin.so,sha256=oMkNPhyY3B6Kb6Uq9b-a0S6aFrnb-epCkAr48qtSWuM,121864
|
|
11
|
-
roksta/gen_codebase_summaries.cpython-312-darwin.so,sha256=2AJ-0gS93G9jk8Zr9iH0QVbknSijFnbjhtQdEULYVrw,637776
|
|
12
|
-
roksta/balance.cpython-312-darwin.so,sha256=OKU-VXCqv41-jxCRrxfSKATIh9ONIgO5QLOLUpG5IcU,373216
|
|
13
|
-
roksta/propose_solution.cpython-312-darwin.so,sha256=r5vAICQyNZLwf_bkhXx54Ie6SPFjfw1Q-yCOQc0ppO8,190968
|
|
14
|
-
roksta/analytics.cpython-312-darwin.so,sha256=2zolEBaSk5uvzIXYY-G7GGcE_HBDv7NLDQAj8urBYbc,306816
|
|
15
|
-
roksta/utils.cpython-312-darwin.so,sha256=1e3ty9yN7-NxYwhYYpX9nLN42qldx5MORwGe6NXIW7E,621816
|
|
16
|
-
roksta/check_for_updates.cpython-312-darwin.so,sha256=5E1TvteXMzHUUF7BFCYJ2q0kZy6fBkDArZAV3Qf_PnM,306632
|
|
17
|
-
roksta/response_formats.cpython-312-darwin.so,sha256=nnb92jNdRh8g4Xq1ocI6xqeDvIKMX9x_1etlDcA-t8M,121112
|
|
18
|
-
roksta/main.cpython-312-darwin.so,sha256=dBhfkx0lHPe9a0SpIx73RhAbs6R-HPdHz0-EiobAVPA,138808
|
|
19
|
-
roksta/env.cpython-312-darwin.so,sha256=yT-DBIRr91UkMtaYiemQUX25kOeZ-m1YIQCMuPkg2f4,121032
|
|
20
|
-
roksta/get_failing_tests.cpython-312-darwin.so,sha256=WRLjGOl5idN3jrSaC5b9L81VZTlCYMSnjwbuDUSemIg,224152
|
|
21
|
-
roksta/fix_tests.cpython-312-darwin.so,sha256=YftbgJPPsQL1HNaB324xEUZodVR7eC1inaIEm1V0CSA,224160
|
|
22
|
-
roksta/firebase_auth_web.cpython-312-darwin.so,sha256=8fdkRyQsx1k1yjeZ9E3JZ4REqzBo1UkeFwLGnf5vgbI,472600
|
|
23
|
-
roksta/run_cli_goal.cpython-312-darwin.so,sha256=ZMHes3egj1mezMkqHGRtGbVjCWf68rsGhQw1qt5NjS4,223808
|
|
24
|
-
roksta/build_project.cpython-312-darwin.so,sha256=R4p3o9ZxFNVcs1-y2ovIfdiHE5xryMLkv9YgSoyd1ks,191040
|
|
25
|
-
roksta/rewrite_goal.cpython-312-darwin.so,sha256=rIME3oOjnPK41PWYJaHQpyGuqgxIrt15ld-dNpqb8M4,190944
|
|
26
|
-
roksta/roksta.cpython-312-darwin.so,sha256=8dpBYVU3wJRxR0Dt-bXHjSdJvjZW2tDEKqlUyN44UCQ,571696
|
|
27
|
-
roksta/clarify_goal.cpython-312-darwin.so,sha256=Dpg8KzTpXoK89U5GGa9oSSHPWRSbvetum94AurttIGs,207680
|
|
28
|
-
roksta/init_codebase.cpython-312-darwin.so,sha256=Lhs3Sig-rhAyLm4QETiWBeMnNotRymEKpoKJuYMWYSc,341376
|
|
29
|
-
roksta/gen_one_line_goal.cpython-312-darwin.so,sha256=76jDvdgvqrBo12mlZDL2046adZvmtkZ_aaPGIangzCw,207624
|
|
30
|
-
roksta/new_features.cpython-312-darwin.so,sha256=VbMIXObw5G5DtHrdD1mIjAKUnwO8Fb0A9oAPFupDU-c,85712
|
|
31
|
-
roksta/firebase_config.cpython-312-darwin.so,sha256=EOpQM7e9pW2ZqAlkjbeOV-Iyoq4DSU__DIZpeDmO9gI,86776
|
|
32
|
-
roksta/chat_workflow.cpython-312-darwin.so,sha256=seJryqRRWJaAl1G98DmPpiV58E3LvlSl8_QKded861w,273552
|
|
33
|
-
roksta/select_files.cpython-312-darwin.so,sha256=5XVLIUuZvc_HEnWwfvrag4kwmYNcRfm7vowrl39aw6g,207648
|
|
34
|
-
roksta/enums.cpython-312-darwin.so,sha256=z_yYfAFoLN5qExTRqgOCzeAcchW1s-VhHYzyqjGsAEY,338440
|
|
35
|
-
roksta/write_code.cpython-312-darwin.so,sha256=gKNlx4wJTJFmf5PtuwBgSB5wPuqK8qrBTzOTYz51L8Q,191008
|
|
36
|
-
roksta/tips.cpython-312-darwin.so,sha256=6agS5I-HPsEUYlMGdLb6SZgRQ3E4QXYtbIMw0SxQf7M,85672
|
|
37
|
-
roksta/goal_workflow.cpython-312-darwin.so,sha256=rcwqDYT07mNjA3FbU1kFux8xjejtycJ8pMiZGDp6FNE,521760
|
|
38
|
-
roksta/firebase.cpython-312-darwin.so,sha256=WAl2UK3th8Xw7ZKbPravorAnqTCHsJkOt5GQaxzrccU,488048
|
|
39
|
-
roksta/parse_readme.cpython-312-darwin.so,sha256=UQaLbWoB2rOPPDMHSNDA9muAptft1iJ-vkjyKWN9T4s,207152
|
|
40
|
-
roksta/save_chat_transcript.cpython-312-darwin.so,sha256=kLhwOHVS6skzXnYkY2dRVF5jhkCOOUCmXZXXWiubhrA,207560
|
|
41
|
-
roksta/logger.cpython-312-darwin.so,sha256=a8QBPk7gr_rlRertm1QLxz5wf4_aBJxSLJuoHJfeCqM,138672
|
|
42
|
-
roksta/lint_code.cpython-312-darwin.so,sha256=QgEkYdj4J5MZF3IyCn9M69H-XZ5ihNiODVaw9TZkvpU,224496
|
|
43
|
-
roksta/extended_text_area.cpython-312-darwin.so,sha256=uSOqAGbFrgI0jkwWNY636WOfMTc9mdzXs3qT_WdwDLM,307272
|
|
44
|
-
roksta/checkpoints.cpython-312-darwin.so,sha256=UdKnNkQweTrMxDjpfjruXtEFVyNG4B4mrg2K07f3ojg,254432
|
|
45
|
-
roksta/get_codebase_structure.cpython-312-darwin.so,sha256=_ZS1xgbWZUm8grv1lrmstrepFvH-ZK-xczOQ4-doM60,206272
|
|
46
|
-
roksta/command_handlers/__init__.cpython-312-darwin.so,sha256=w1SkWvlEUw7c0hKd9HY1_teX8cKcmdbYKUcWCMGWinw,86256
|
|
47
|
-
roksta/command_handlers/handle_logout_command.cpython-312-darwin.so,sha256=2l7y8vA4-3aquMJZBBuqDrzdEhBn2-O4obMHqVlR8ec,121624
|
|
48
|
-
roksta/command_handlers/handle_redeem_command.cpython-312-darwin.so,sha256=SU7Rn60su7bIn4ZjR_u5L_z8izk-cMlYQyOD-s1RRwE,157800
|
|
49
|
-
roksta/command_handlers/handle_usage_command.cpython-312-darwin.so,sha256=x9ZRZN4KeGSdVXrpTwtGotmDTNRLKxqJO7oqtVb5c3c,207944
|
|
50
|
-
roksta/command_handlers/handle_auto_charge_command.cpython-312-darwin.so,sha256=HNv6EISO2Uh-ZDohRYoUzVSkYgb22b4H7mb5PZIdJ6U,172944
|
|
51
|
-
roksta/command_handlers/handle_building_command.cpython-312-darwin.so,sha256=D9UHtfr1n604eR1oRfqMB66Ky7QlJbCV2urmO4IGl4c,156080
|
|
52
|
-
roksta/command_handlers/handle_auto_commit_command.cpython-312-darwin.so,sha256=5clPnjCSSIrZwXU_DI3fqmXp16cdwMKiMIWydtIsHI4,122672
|
|
53
|
-
roksta/command_handlers/handle_help_command.cpython-312-darwin.so,sha256=1UcckeeCMdBSz_-IXzQ-i5w8zH2F4IjXKnILI3fBvTA,220568
|
|
54
|
-
roksta/command_handlers/handle_add_funds_command.cpython-312-darwin.so,sha256=JjSQAeGxaNSKm3JX3ffVdrpfmIenRgXuKOnQ1k6OJXE,224496
|
|
55
|
-
roksta/command_handlers/handle_chat_command.cpython-312-darwin.so,sha256=nZ2RsDXJHtLqXhUJ4GNBoQEcfRKX0-gZEGlrIf1E1mQ,156792
|
|
56
|
-
roksta/command_handlers/handle_testing_command.cpython-312-darwin.so,sha256=BeCYaWoYtu34UxGXttD68lFPP-vcm6zUJXODsJcGL1U,156064
|
|
57
|
-
roksta/command_handlers/handle_init_command.cpython-312-darwin.so,sha256=hdpTFH0aO2Ov6qWi5W6DcBKVA9rHlQwhNxb9TtpPP3o,157192
|
|
58
|
-
roksta/command_handlers/handle_dev_rate_command.cpython-312-darwin.so,sha256=WkEuTW05z_5K-orrgKP8-spL6qPbKzCKhiTjGel0QvQ,156128
|
|
59
|
-
roksta/command_handlers/handle_activate_command.cpython-312-darwin.so,sha256=7z1vtwp5XuTRDG_oATzKJpRY2CyNBA9nFPXVxeX7CNM,240464
|
|
60
|
-
roksta/command_handlers/handle_login_command.cpython-312-darwin.so,sha256=ZnuUuRDALgPXXf6WzXzHcAeRHsLV6UBQK6Psfs3Pxf4,207256
|
|
61
|
-
roksta/command_handlers/handle_linting_command.cpython-312-darwin.so,sha256=quNAw6TV67G0Mfq2npeUcwcY5ljfqNBFnvVJt7jTyFk,156080
|
|
62
|
-
roksta/command_handlers/handle_quit_command.cpython-312-darwin.so,sha256=5e-Dl892KJu6wfOycgKSKyefcmgwXj4u17Oln0LvcO8,87656
|
|
63
|
-
roksta/command_handlers/handle_payment_details_command.cpython-312-darwin.so,sha256=UghdU6OL3hj7Cc_ozLLEesg3YbDq5i4JFHHByYZbwlU,173640
|
|
64
|
-
roksta/command_handlers/handle_goal_command.cpython-312-darwin.so,sha256=LkINQmNLpXB4Qi13inV4Zp42UYwajR60xpdkgSLFQFM,173576
|
|
65
|
-
roksta/command_handlers/handle_request_activation_command.cpython-312-darwin.so,sha256=5qF9R4BoQ2DDIqM5EAQ-EJIcxMjqwkSby8XHfXvLo6g,206968
|
|
66
|
-
roksta/command_handlers/handle_feedback_command.cpython-312-darwin.so,sha256=UwUgqvIgb3K1tVpCflNPtGa1wDGIzIQLuECAOwednfg,206736
|
|
67
|
-
roksta/ai/__init__.cpython-312-darwin.so,sha256=5_lHxLo2XMbdiUPvD567zM1pag2REJBiRZkorL9pEdw,85632
|
|
68
|
-
roksta/ai/generic.cpython-312-darwin.so,sha256=b8LmM5kjFBcliylSqLPbc4BRpsrOmqpG2f5N2RTOIaM,306800
|
|
69
|
-
roksta/ai/gemini.cpython-312-darwin.so,sha256=pIq0T2CgrIelSKOy9Mkh8_fFVmOv03VMwwV-oxrkvEM,406000
|
|
70
|
-
roksta/ai/openai.cpython-312-darwin.so,sha256=HFUNdQmK68gRBYc_dVEG6oHj9i55W2Yqv0iLGDbq4zU,290400
|
|
71
|
-
roksta/ai/call_ai.cpython-312-darwin.so,sha256=dFFRIydEtqcC6CrJwzTV5ERNeKXms5CHGoneOtanlyE,240624
|
|
72
|
-
roksta/ai/llm.cpython-312-darwin.so,sha256=u4b3Ggf0QbILFRJmKA2mSNsGmosvmntGK6SUyKYCDtI,271640
|
|
73
|
-
roksta/ai/tools/__init__.cpython-312-darwin.so,sha256=yvKyTdurBPmXVk8dCzrOvyv5Br2bJxyHEgNuDZoYkcQ,87392
|
|
74
|
-
roksta/ai/tools/tool_defs.cpython-312-darwin.so,sha256=EIApR1AWapy9_4VcYXd3MliPssnyj-kncXa5PunKyGc,137520
|
|
75
|
-
roksta/ai/tools/tool_utils.cpython-312-darwin.so,sha256=5DHXLk9C4RZ-EbKbWNgJ5o9np9KiDIc3-XMlNhOVEr0,307584
|
|
76
|
-
roksta/ai/tools/final_response.cpython-312-darwin.so,sha256=cxaX6NjwRSmP6SabPW2Ye0lC2jxBsLt8sfcntg79XpQ,88088
|
|
77
|
-
roksta/ai/tools/regex_replace.cpython-312-darwin.so,sha256=2lSzL8Xrxqa9TIWM1CgBPygSIT6O6p-QdNphHbDaJUE,155616
|
|
78
|
-
roksta/ai/tools/shell_any.cpython-312-darwin.so,sha256=j4yFJa12aI7rQheAYyIb8zjkURNjO8x-rpGndXHxvtI,224064
|
|
79
|
-
roksta/ai/tools/shell_limited.cpython-312-darwin.so,sha256=YG6v8qGbnxFq_lo-BjFxku3O_34k3SOWolB-yRcSnms,190848
|
|
80
|
-
roksta/ai/tools/delete_file.cpython-312-darwin.so,sha256=GeDRmXhEuOngYkuk8xi6C2gXlTIDk7f_RG0oVPSZFco,122096
|
|
81
|
-
roksta/ai/tools/read_file.cpython-312-darwin.so,sha256=-MvzhPtU7WZUpvezwzP7QLLqaB9UpmMxVDD8_7pNq6I,155920
|
|
82
|
-
roksta/ai/tools/write_file.cpython-312-darwin.so,sha256=ymftllGtvtlRLyzs1sJtebKlhEibIJCafbGcdn_p0CE,122160
|
|
83
|
-
roksta/ai/tools/get_file_summaries.cpython-312-darwin.so,sha256=sBW_uHxfIUJLJHhY4ZYuPTUhpINdA6Q5cXGZMhRpsoE,122840
|
|
84
|
-
roksta/ai/tools/edit_file.cpython-312-darwin.so,sha256=zMDvLx_rXJvvhNEVl1ONjPpikavVdS_fg8ZeGETGveg,155280
|
|
85
|
-
tests/conftest.py,sha256=Y2cx3Jups9GkKGxOG2fSSoIr3rgfUa9QzipMoQ-ehKU,7878
|
|
86
|
-
tests/__init__.py,sha256=J6ztnXNqM8TSQCgHXMWb6NRq1kN_h4ql63Jq-TYR8XE,124
|
|
87
|
-
tests/functions/test_utils.py,sha256=_zlgSa99JYVyJ0LDe3yaPztS92kqGRKkgjon__XmfFM,16721
|
|
88
|
-
tests/functions/test_auth.py,sha256=I3oFTw2LTuUsnQ75v5SCfgUPnpel_pDKqUH0VAJpXQw,992
|
|
89
|
-
tests/functions/__init__.py,sha256=mLXx3UARcv07vs_fGJuy3L5ZRn9IRsF9zIuL5IOnwdk,95
|
|
90
|
-
tests/functions/test_main.py,sha256=h0W_4ISo95WzRy2HpXZw3cuNOTcYk_2QCIZffZJEfEU,2575
|
|
91
|
-
tests/functions/api_v1_02/test__sync_emails.py,sha256=OTyf2YbBK7e4pWIQTUGYR4x6il1Hb3g4FYqQ_fRj1nA,12699
|
|
92
|
-
tests/functions/api_v1_02/test__take_payment.py,sha256=I-XJasGuLW5wTMAu4nAgFkA8Mo_zVpGPvkJ2LrrJGCk,18022
|
|
93
|
-
tests/functions/api_v1_02/test_replace_keywords.py,sha256=pa7bZ8I9XgtI5dUZq-efcHh9amN2_XHP8abXYqtDGc0,2683
|
|
94
|
-
tests/functions/api_v1_02/test__gemini_proxy.py,sha256=mf8ubRmNxxxN80H6EA-iDPwu6Oue6Rmgxl6tiFNpfrU,13344
|
|
95
|
-
tests/functions/api_v1_02/test_proxy_keyword_replacement.py,sha256=I5H73_QydSKLiDp7hDHGHbSkDOdv-BT4gYHGqEiVtM0,23632
|
|
96
|
-
tests/functions/api_v1_02/test__analytics.py,sha256=oKjd7_zjnttcb-5BuA93yllkm0OOF4YWnfTUW1-icnM,15806
|
|
97
|
-
tests/functions/api_v1_02/__init__.py,sha256=3RCSoj_5UQPw9Z5NeAgYz2s4gfcZIi7g36qk_Ed5TiA,124
|
|
98
|
-
tests/functions/api_v1_02/test__use_activation_code.py,sha256=tNyTkkRtrpjei-7F31UNwrcU-PbP-QnkWNU7h2n5Yqo,16960
|
|
99
|
-
tests/functions/api_v1_02/test__redeem_credit_code.py,sha256=7GD3tGgO2Lk0BCjUmzZACJiwocEhLBvXrrut0x13IWU,6347
|
|
100
|
-
tests/functions/api_v1_02/test__openai_proxy.py,sha256=xlO2zmG64LlrKrbjFz-ds6Map7vy4SjIuHfZJDAqGK8,17726
|
|
101
|
-
tests/functions/api_v1_02/test__get_payment_details.py,sha256=i5Px3NkLxqw8D3tVPrYdRJJF5jlNmysSuX_NNolbIa4,13735
|
|
102
|
-
tests/functions/api_v1_02/test__generic_proxy.py,sha256=KZkOtmc71aOnWlz2L7B6CFhRNEV73bExG3GR14oD2L0,17673
|
|
103
|
-
tests/functions/api_v1_01/test__sync_emails.py,sha256=OTyf2YbBK7e4pWIQTUGYR4x6il1Hb3g4FYqQ_fRj1nA,12699
|
|
104
|
-
tests/functions/api_v1_01/test__take_payment.py,sha256=I-XJasGuLW5wTMAu4nAgFkA8Mo_zVpGPvkJ2LrrJGCk,18022
|
|
105
|
-
tests/functions/api_v1_01/test__gemini_proxy.py,sha256=mf8ubRmNxxxN80H6EA-iDPwu6Oue6Rmgxl6tiFNpfrU,13344
|
|
106
|
-
tests/functions/api_v1_01/test__analytics.py,sha256=oKjd7_zjnttcb-5BuA93yllkm0OOF4YWnfTUW1-icnM,15806
|
|
107
|
-
tests/functions/api_v1_01/__init__.py,sha256=3RCSoj_5UQPw9Z5NeAgYz2s4gfcZIi7g36qk_Ed5TiA,124
|
|
108
|
-
tests/functions/api_v1_01/test__use_activation_code.py,sha256=tNyTkkRtrpjei-7F31UNwrcU-PbP-QnkWNU7h2n5Yqo,16960
|
|
109
|
-
tests/functions/api_v1_01/test__redeem_credit_code.py,sha256=7GD3tGgO2Lk0BCjUmzZACJiwocEhLBvXrrut0x13IWU,6347
|
|
110
|
-
tests/functions/api_v1_01/test__openai_proxy.py,sha256=xlO2zmG64LlrKrbjFz-ds6Map7vy4SjIuHfZJDAqGK8,17726
|
|
111
|
-
tests/functions/api_v1_01/test__get_payment_details.py,sha256=i5Px3NkLxqw8D3tVPrYdRJJF5jlNmysSuX_NNolbIa4,13735
|
|
112
|
-
tests/functions/api_v1_01/test__generic_proxy.py,sha256=KZkOtmc71aOnWlz2L7B6CFhRNEV73bExG3GR14oD2L0,17673
|
|
113
|
-
tests/functions/api_v1_00/test__sync_emails.py,sha256=OTyf2YbBK7e4pWIQTUGYR4x6il1Hb3g4FYqQ_fRj1nA,12699
|
|
114
|
-
tests/functions/api_v1_00/test__take_payment.py,sha256=I-XJasGuLW5wTMAu4nAgFkA8Mo_zVpGPvkJ2LrrJGCk,18022
|
|
115
|
-
tests/functions/api_v1_00/test__gemini_proxy.py,sha256=mf8ubRmNxxxN80H6EA-iDPwu6Oue6Rmgxl6tiFNpfrU,13344
|
|
116
|
-
tests/functions/api_v1_00/test__analytics.py,sha256=oKjd7_zjnttcb-5BuA93yllkm0OOF4YWnfTUW1-icnM,15806
|
|
117
|
-
tests/functions/api_v1_00/__init__.py,sha256=3RCSoj_5UQPw9Z5NeAgYz2s4gfcZIi7g36qk_Ed5TiA,124
|
|
118
|
-
tests/functions/api_v1_00/test__use_activation_code.py,sha256=tNyTkkRtrpjei-7F31UNwrcU-PbP-QnkWNU7h2n5Yqo,16960
|
|
119
|
-
tests/functions/api_v1_00/test__redeem_credit_code.py,sha256=7GD3tGgO2Lk0BCjUmzZACJiwocEhLBvXrrut0x13IWU,6347
|
|
120
|
-
tests/functions/api_v1_00/test__openai_proxy.py,sha256=xlO2zmG64LlrKrbjFz-ds6Map7vy4SjIuHfZJDAqGK8,17726
|
|
121
|
-
tests/functions/api_v1_00/test__get_payment_details.py,sha256=i5Px3NkLxqw8D3tVPrYdRJJF5jlNmysSuX_NNolbIa4,13735
|
|
122
|
-
tests/functions/api_v1_00/test__generic_proxy.py,sha256=KZkOtmc71aOnWlz2L7B6CFhRNEV73bExG3GR14oD2L0,17673
|
tests/__init__.py
DELETED
tests/conftest.py
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import sys
|
|
3
|
-
import importlib
|
|
4
|
-
import types as _types_mod
|
|
5
|
-
|
|
6
|
-
# Ensure local package is imported before any globally installed packages.
|
|
7
|
-
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
|
8
|
-
|
|
9
|
-
# Ensure functions directory is on sys.path so top-level function helpers (e.g. 'utils')
|
|
10
|
-
# can be imported by tests after the functions/ reorganisation.
|
|
11
|
-
_functions_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'functions'))
|
|
12
|
-
if _functions_root not in sys.path:
|
|
13
|
-
sys.path.insert(0, _functions_root)
|
|
14
|
-
|
|
15
|
-
# Ensure functions/api_v0_01 (or a compatible API directory) is on sys.path so tests that import top-level function
|
|
16
|
-
# modules (e.g. '_analytics') can still find them after the functions/ reorganisation.
|
|
17
|
-
_api_candidates = ['api_v0_01', 'api_v001', 'api_v0_1', 'api_v01']
|
|
18
|
-
_functions_api_dir = None
|
|
19
|
-
for candidate in _api_candidates:
|
|
20
|
-
candidate_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'functions', candidate))
|
|
21
|
-
if os.path.isdir(candidate_path):
|
|
22
|
-
_functions_api_dir = candidate_path
|
|
23
|
-
break
|
|
24
|
-
if _functions_api_dir and _functions_api_dir not in sys.path:
|
|
25
|
-
sys.path.insert(0, _functions_api_dir)
|
|
26
|
-
|
|
27
|
-
# Provide a minimal google.genai.types stub if the real package is not available.
|
|
28
|
-
# This avoids import-time errors in tests that import modules which reference
|
|
29
|
-
# google.genai.types at import time. The stub is intentionally lightweight and
|
|
30
|
-
# only implements the attributes needed for import and simple spec-based mocks
|
|
31
|
-
# used in the test-suite. Individual tests may still override these with more
|
|
32
|
-
# detailed fakes when required.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def _attach_gtypes_stubs(gtypes_mod):
|
|
36
|
-
"""
|
|
37
|
-
Attach minimal placeholder implementations to the provided module object.
|
|
38
|
-
Only attaches attributes that are missing on the module to avoid clobbering
|
|
39
|
-
a real installed package.
|
|
40
|
-
"""
|
|
41
|
-
# Minimal placeholder implementations
|
|
42
|
-
class GenerateContentConfig:
|
|
43
|
-
def __init__(self, **kwargs):
|
|
44
|
-
self.__dict__.update(kwargs)
|
|
45
|
-
self.kwargs = kwargs
|
|
46
|
-
def to_json_dict(self):
|
|
47
|
-
return dict(self.kwargs)
|
|
48
|
-
|
|
49
|
-
class ThinkingConfig:
|
|
50
|
-
def __init__(self, thinking_budget=None):
|
|
51
|
-
self.thinking_budget = thinking_budget
|
|
52
|
-
|
|
53
|
-
class AutomaticFunctionCallingConfig:
|
|
54
|
-
def __init__(self, disable=False):
|
|
55
|
-
self.disable = disable
|
|
56
|
-
|
|
57
|
-
class GoogleSearch:
|
|
58
|
-
def __init__(self):
|
|
59
|
-
pass
|
|
60
|
-
|
|
61
|
-
class Tool:
|
|
62
|
-
def __init__(self, **kwargs):
|
|
63
|
-
self.kwargs = kwargs
|
|
64
|
-
|
|
65
|
-
class UsageMetadata:
|
|
66
|
-
def __init__(self, prompt_token_count=0, total_token_count=0):
|
|
67
|
-
self.prompt_token_count = prompt_token_count
|
|
68
|
-
self.total_token_count = total_token_count
|
|
69
|
-
|
|
70
|
-
class FinishReasonEnum:
|
|
71
|
-
def __init__(self, name='FINISH_REASON_UNSPECIFIED'):
|
|
72
|
-
self.name = name
|
|
73
|
-
|
|
74
|
-
class FinishReason:
|
|
75
|
-
FINISH_REASON_UNSPECIFIED = FinishReasonEnum('FINISH_REASON_UNSPECIFIED')
|
|
76
|
-
|
|
77
|
-
class Part:
|
|
78
|
-
def __init__(self, text=None, function_call=None):
|
|
79
|
-
self.text = text
|
|
80
|
-
self.function_call = function_call
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def from_function_response(cls, name=None, response=None):
|
|
84
|
-
inst = cls()
|
|
85
|
-
inst.function_response = _types_mod.SimpleNamespace(name=name, response=response)
|
|
86
|
-
return inst
|
|
87
|
-
|
|
88
|
-
class Content:
|
|
89
|
-
def __init__(self, role=None, parts=None):
|
|
90
|
-
self.role = role
|
|
91
|
-
self.parts = parts or []
|
|
92
|
-
|
|
93
|
-
def model_dump(self, mode='json'):
|
|
94
|
-
return {'role': self.role, 'parts': [getattr(p, 'text', p) for p in self.parts]}
|
|
95
|
-
|
|
96
|
-
class FunctionCall:
|
|
97
|
-
def __init__(self, name=None, args=None):
|
|
98
|
-
self.name = name
|
|
99
|
-
self.args = args
|
|
100
|
-
|
|
101
|
-
class Candidate:
|
|
102
|
-
def __init__(self, content=None, finish_reason=None):
|
|
103
|
-
self.content = content
|
|
104
|
-
self.finish_reason = finish_reason
|
|
105
|
-
|
|
106
|
-
class GenerateContentResponse:
|
|
107
|
-
def __init__(self, **kwargs):
|
|
108
|
-
for k, v in kwargs.items():
|
|
109
|
-
setattr(self, k, v)
|
|
110
|
-
# sensible defaults
|
|
111
|
-
if not hasattr(self, 'text'):
|
|
112
|
-
self.text = ''
|
|
113
|
-
if not hasattr(self, 'candidates'):
|
|
114
|
-
self.candidates = []
|
|
115
|
-
if not hasattr(self, 'usage_metadata'):
|
|
116
|
-
self.usage_metadata = None
|
|
117
|
-
|
|
118
|
-
def to_json_dict(self):
|
|
119
|
-
return {k: getattr(self, k) for k in self.__dict__}
|
|
120
|
-
|
|
121
|
-
stubs = {
|
|
122
|
-
'GenerateContentConfig': GenerateContentConfig,
|
|
123
|
-
'ThinkingConfig': ThinkingConfig,
|
|
124
|
-
'AutomaticFunctionCallingConfig': AutomaticFunctionCallingConfig,
|
|
125
|
-
'GoogleSearch': GoogleSearch,
|
|
126
|
-
'Tool': Tool,
|
|
127
|
-
'UsageMetadata': UsageMetadata,
|
|
128
|
-
'FinishReason': FinishReason,
|
|
129
|
-
'Part': Part,
|
|
130
|
-
'Content': Content,
|
|
131
|
-
'FunctionCall': FunctionCall,
|
|
132
|
-
'Candidate': Candidate,
|
|
133
|
-
'GenerateContentResponse': GenerateContentResponse,
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
for name, obj in stubs.items():
|
|
137
|
-
if not hasattr(gtypes_mod, name):
|
|
138
|
-
setattr(gtypes_mod, name, obj)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
# Try to import the real google.genai.types module. If it exists, only patch in
|
|
142
|
-
# any missing attributes. If it doesn't exist, create minimal stub modules and
|
|
143
|
-
# register them on sys.modules so imports like `from google.genai import types`
|
|
144
|
-
# work during the tests.
|
|
145
|
-
try:
|
|
146
|
-
gtypes = importlib.import_module('google.genai.types')
|
|
147
|
-
_attach_gtypes_stubs(gtypes)
|
|
148
|
-
except Exception:
|
|
149
|
-
# Ensure top-level `google` module exists in sys.modules, but do not overwrite
|
|
150
|
-
# a real `google` module if it is already installed.
|
|
151
|
-
try:
|
|
152
|
-
google = importlib.import_module('google')
|
|
153
|
-
except Exception:
|
|
154
|
-
google = _types_mod.ModuleType('google')
|
|
155
|
-
sys.modules['google'] = google
|
|
156
|
-
|
|
157
|
-
# Ensure `google.genai` exists; prefer the real module if present.
|
|
158
|
-
try:
|
|
159
|
-
genai = importlib.import_module('google.genai')
|
|
160
|
-
except Exception:
|
|
161
|
-
genai = _types_mod.ModuleType('google.genai')
|
|
162
|
-
sys.modules['google.genai'] = genai
|
|
163
|
-
setattr(google, 'genai', genai)
|
|
164
|
-
|
|
165
|
-
# Create and attach the minimal `google.genai.types` stub
|
|
166
|
-
gtypes = _types_mod.ModuleType('google.genai.types')
|
|
167
|
-
_attach_gtypes_stubs(gtypes)
|
|
168
|
-
genai.types = gtypes
|
|
169
|
-
sys.modules['google.genai.types'] = gtypes
|
|
170
|
-
|
|
171
|
-
# Provide a minimal nacl.public stub if PyNaCl is not installed. This prevents
|
|
172
|
-
# import-time failures in tests that import `roksta.firebase` which does
|
|
173
|
-
# `from nacl.public import PublicKey, SealedBox`.
|
|
174
|
-
try:
|
|
175
|
-
import nacl.public # type: ignore
|
|
176
|
-
except Exception:
|
|
177
|
-
# Create lightweight stub modules to satisfy `from nacl.public import PublicKey, SealedBox`
|
|
178
|
-
nacl = _types_mod.ModuleType('nacl')
|
|
179
|
-
nacl_public = _types_mod.ModuleType('nacl.public')
|
|
180
|
-
|
|
181
|
-
class PublicKey:
|
|
182
|
-
def __init__(self, data):
|
|
183
|
-
# Accept bytes-like input; ensure it's bytes when possible.
|
|
184
|
-
try:
|
|
185
|
-
self._data = bytes(data)
|
|
186
|
-
except Exception:
|
|
187
|
-
self._data = data
|
|
188
|
-
|
|
189
|
-
def __repr__(self):
|
|
190
|
-
try:
|
|
191
|
-
length = len(self._data)
|
|
192
|
-
except Exception:
|
|
193
|
-
length = 'unknown'
|
|
194
|
-
return f"<PublicKey len={length}>"
|
|
195
|
-
|
|
196
|
-
class SealedBox:
|
|
197
|
-
def __init__(self, public_key):
|
|
198
|
-
self.public_key = public_key
|
|
199
|
-
|
|
200
|
-
def encrypt(self, plaintext: bytes) -> bytes:
|
|
201
|
-
# Return deterministic bytes so callers can base64-encode the result.
|
|
202
|
-
if not isinstance(plaintext, (bytes, bytearray)):
|
|
203
|
-
plaintext = str(plaintext).encode('utf-8')
|
|
204
|
-
return b"STUB_ENCRYPTED:" + bytes(plaintext)
|
|
205
|
-
|
|
206
|
-
nacl_public.PublicKey = PublicKey
|
|
207
|
-
nacl_public.SealedBox = SealedBox
|
|
208
|
-
# Attach the submodule on the parent module object for attribute access
|
|
209
|
-
nacl.public = nacl_public
|
|
210
|
-
sys.modules['nacl'] = nacl
|
|
211
|
-
sys.modules['nacl.public'] = nacl_public
|
tests/functions/__init__.py
DELETED