roksta 0.3.4__cp314-cp314-macosx_10_13_universal2.whl → 0.3.6__cp314-cp314-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.

Files changed (71) hide show
  1. roksta/ai/gemini.cpython-314-darwin.so +0 -0
  2. roksta/ai/generic.cpython-314-darwin.so +0 -0
  3. roksta/ai/llm.cpython-314-darwin.so +0 -0
  4. roksta/ai/openai.cpython-314-darwin.so +0 -0
  5. roksta/ai/tools/__init__.cpython-314-darwin.so +0 -0
  6. roksta/ai/tools/read_file.cpython-314-darwin.so +0 -0
  7. roksta/ai/tools/shell_any.cpython-314-darwin.so +0 -0
  8. roksta/ai/tools/tool_defs.cpython-314-darwin.so +0 -0
  9. roksta/ai/tools/web_fetch.cpython-314-darwin.so +0 -0
  10. roksta/build_project.cpython-314-darwin.so +0 -0
  11. roksta/chat_workflow.cpython-314-darwin.so +0 -0
  12. roksta/check_for_updates.cpython-314-darwin.so +0 -0
  13. roksta/clarify_goal.cpython-314-darwin.so +0 -0
  14. roksta/command_handlers/handle_help_command.cpython-314-darwin.so +0 -0
  15. roksta/env.cpython-314-darwin.so +0 -0
  16. roksta/fix_tests.cpython-314-darwin.so +0 -0
  17. roksta/goal_workflow.cpython-314-darwin.so +0 -0
  18. roksta/init_codebase.cpython-314-darwin.so +0 -0
  19. roksta/main.cpython-314-darwin.so +0 -0
  20. roksta/new_features.cpython-314-darwin.so +0 -0
  21. roksta/propose_solution.cpython-314-darwin.so +0 -0
  22. roksta/roksta.cpython-314-darwin.so +0 -0
  23. roksta/save_chat_transcript.cpython-314-darwin.so +0 -0
  24. roksta/select_files.cpython-314-darwin.so +0 -0
  25. roksta/tips.cpython-314-darwin.so +0 -0
  26. roksta/utils.cpython-314-darwin.so +0 -0
  27. roksta/write_code.cpython-314-darwin.so +0 -0
  28. {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/METADATA +2 -1
  29. roksta-0.3.6.dist-info/RECORD +85 -0
  30. {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/top_level.txt +0 -1
  31. roksta-0.3.4.dist-info/RECORD +0 -122
  32. tests/__init__.py +0 -2
  33. tests/conftest.py +0 -211
  34. tests/functions/__init__.py +0 -2
  35. tests/functions/api_v1_00/__init__.py +0 -2
  36. tests/functions/api_v1_00/test__analytics.py +0 -416
  37. tests/functions/api_v1_00/test__gemini_proxy.py +0 -352
  38. tests/functions/api_v1_00/test__generic_proxy.py +0 -428
  39. tests/functions/api_v1_00/test__get_payment_details.py +0 -356
  40. tests/functions/api_v1_00/test__openai_proxy.py +0 -449
  41. tests/functions/api_v1_00/test__redeem_credit_code.py +0 -167
  42. tests/functions/api_v1_00/test__sync_emails.py +0 -325
  43. tests/functions/api_v1_00/test__take_payment.py +0 -491
  44. tests/functions/api_v1_00/test__use_activation_code.py +0 -438
  45. tests/functions/api_v1_01/__init__.py +0 -2
  46. tests/functions/api_v1_01/test__analytics.py +0 -416
  47. tests/functions/api_v1_01/test__gemini_proxy.py +0 -352
  48. tests/functions/api_v1_01/test__generic_proxy.py +0 -428
  49. tests/functions/api_v1_01/test__get_payment_details.py +0 -356
  50. tests/functions/api_v1_01/test__openai_proxy.py +0 -449
  51. tests/functions/api_v1_01/test__redeem_credit_code.py +0 -167
  52. tests/functions/api_v1_01/test__sync_emails.py +0 -325
  53. tests/functions/api_v1_01/test__take_payment.py +0 -491
  54. tests/functions/api_v1_01/test__use_activation_code.py +0 -438
  55. tests/functions/api_v1_02/__init__.py +0 -2
  56. tests/functions/api_v1_02/test__analytics.py +0 -416
  57. tests/functions/api_v1_02/test__gemini_proxy.py +0 -352
  58. tests/functions/api_v1_02/test__generic_proxy.py +0 -428
  59. tests/functions/api_v1_02/test__get_payment_details.py +0 -356
  60. tests/functions/api_v1_02/test__openai_proxy.py +0 -449
  61. tests/functions/api_v1_02/test__redeem_credit_code.py +0 -167
  62. tests/functions/api_v1_02/test__sync_emails.py +0 -325
  63. tests/functions/api_v1_02/test__take_payment.py +0 -491
  64. tests/functions/api_v1_02/test__use_activation_code.py +0 -438
  65. tests/functions/api_v1_02/test_proxy_keyword_replacement.py +0 -557
  66. tests/functions/api_v1_02/test_replace_keywords.py +0 -74
  67. tests/functions/test_auth.py +0 -24
  68. tests/functions/test_main.py +0 -73
  69. tests/functions/test_utils.py +0 -484
  70. {roksta-0.3.4.dist-info → roksta-0.3.6.dist-info}/WHEEL +0 -0
  71. {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
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.4
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/balance.cpython-314-darwin.so,sha256=Wv_2QTpZUNv5Re-24A1oh3aJYIkJAhgFp2-jrWOb6_E,389728
2
+ roksta/propose_solution.cpython-314-darwin.so,sha256=pzbfffnWQjMkdWmLzVUYkMPPuNPpADQIQTK1TWRsBt8,207496
3
+ roksta/gen_codebase_summaries.cpython-314-darwin.so,sha256=4t-kELLq5Ct9hzBBcJ9DawD2ESHtE2dJ1ZgriEGcrJw,654432
4
+ roksta/codebase_listing.cpython-314-darwin.so,sha256=Kxtkn9xa9WOqLXUXrLw_3vGP6VJsfXWe_db-D0EWiLA,155608
5
+ roksta/__init__.cpython-314-darwin.so,sha256=EL2fuUK0drBv_kRWrblymcUCrc8PcfoFZkxUTWRE4cE,85648
6
+ roksta/default_config.cpython-314-darwin.so,sha256=EOy_aFTqUZXkbKylLTPrLmkt4USA-yhFBJQIuNxGhn4,102248
7
+ roksta/create_default_config.cpython-314-darwin.so,sha256=yzPUAgmVRyVyFFlUCbuKrLmi2JdmR2HwOOjta7uLf6o,121592
8
+ roksta/make_issue.cpython-314-darwin.so,sha256=2hxqWUzkcLXYnqHdp9X1YloBz2Mvnq2EPrqEnR3_eCA,221856
9
+ roksta/firebase_auth_web.cpython-314-darwin.so,sha256=zoQ3tXk-QI089zjlnu8Lc5kdQlPvdA-voOu36iCsUHA,472664
10
+ roksta/fix_tests.cpython-314-darwin.so,sha256=dXCpoNk6uCTwW9TaQpacde_R52AM-TtBOgTvFaOCGX4,240704
11
+ roksta/get_failing_tests.cpython-314-darwin.so,sha256=tZyV_x70kDu92_4gwlACDyAxY2vsEMRJ0XoFuBwSOGQ,224296
12
+ roksta/env.cpython-314-darwin.so,sha256=8zF3L7deGvbDMBeZeVHQsQw6jox7TxvxqI1DFaRYYnQ,87832
13
+ roksta/roksta.cpython-314-darwin.so,sha256=0aJTxAtftin1PsOLA1xaZckEXpqJ8hIaKCBbDIARHW0,621424
14
+ roksta/clarify_goal.cpython-314-darwin.so,sha256=NrQLpdSxXTrm9GWVo9H0d7YfKdMz_PJvtTWcbD5EIzQ,207808
15
+ roksta/run_cli_goal.cpython-314-darwin.so,sha256=l1mTdfSfJwCESJS3RgxVsylTe3zTr_E6PTrudP1yf_o,223968
16
+ roksta/rewrite_goal.cpython-314-darwin.so,sha256=kUrDcnDo0NPmeoG2sFiEVAKhmTnCqk7PJGktyCrzmCg,191072
17
+ roksta/build_project.cpython-314-darwin.so,sha256=Y_DPnLuSYIbo7ndVt3BkVpVSYXZHFHqdT7EETBBELvI,191184
18
+ roksta/analytics.cpython-314-darwin.so,sha256=_f3GYoQyfJpjGIJyjrMBH5DXNJNODo6yMu9ZHe4hEtA,306960
19
+ roksta/main.cpython-314-darwin.so,sha256=yE3-BSPnLAysnJqCleHIPLEamno8u2fkPZvjY9CMwU4,122184
20
+ roksta/utils.cpython-314-darwin.so,sha256=RfnFYVrXCR5RsvH8CBzVh4-NeYN07gc5nciz_Ov8lCU,654952
21
+ roksta/check_for_updates.cpython-314-darwin.so,sha256=xriNENrsyMMzNGTwM9pUzpULLFPt7AFGgxdZ5uxTFaM,306776
22
+ roksta/response_formats.cpython-314-darwin.so,sha256=yLrtRaRY87oQrwk_KHlKbYJxxxwcCmp7sGXLByj8j7I,120968
23
+ roksta/select_files.cpython-314-darwin.so,sha256=UASNUkn0OQa8rHAZnb2O-rUDSvlZd02u-0nsK0aqmkU,207728
24
+ roksta/goal_workflow.cpython-314-darwin.so,sha256=shnvyhCNo6SkcZO1UiF0zWd3xN3O7C2sBRwpjzTMVX8,554800
25
+ roksta/parse_readme.cpython-314-darwin.so,sha256=VVKOmQO5Rx9AmvwiYyuHqaS4YZgzF4IdUb5YmwoxFqA,207280
26
+ roksta/firebase.cpython-314-darwin.so,sha256=3wJqf4qQ-rTp6QUsAaSgrUF5SmW4Fc6PhRzAoCH8yAM,504704
27
+ roksta/write_code.cpython-314-darwin.so,sha256=lx1wJZkMYAxLzVK282WzcD8UjAkKbzuWrIRqPltnrLU,191072
28
+ roksta/enums.cpython-314-darwin.so,sha256=j8F0fci_9a5dfbI85J_dTGkkzjszoRz40-8X_h1OBjY,338344
29
+ roksta/tips.cpython-314-darwin.so,sha256=wi4roJqXDfscChMCwFvGm-_eiI-UDxRpo7UMYyNrBxg,85688
30
+ roksta/firebase_config.cpython-314-darwin.so,sha256=odBL74t5UEMoLoOFJK1rmXTnSbXjNpMIEIO6AU6cycY,86328
31
+ roksta/gen_one_line_goal.cpython-314-darwin.so,sha256=tHPEgNG72YXrLCAGjEUOSO34rmf58fQW8gN5EIuC_Vs,207768
32
+ roksta/new_features.cpython-314-darwin.so,sha256=i3755_RLICsF4f2e3kOwKaXDJzxQILW_4dQhqW1BVSE,85728
33
+ roksta/init_codebase.cpython-314-darwin.so,sha256=VOPaJqtwKzoWYBVyTV_UHG1tfpf8rJZjr2oqPhLi1kI,341632
34
+ roksta/chat_workflow.cpython-314-darwin.so,sha256=K-5b_pUjfdYC2gwt1P3qZ2RK_dy1EiKfHpMT8BGYtF8,273792
35
+ roksta/lint_code.cpython-314-darwin.so,sha256=epAw8jPF-_eLVquSBDWJ5VfqL1gQKg-TfIeEm3XTqp4,224624
36
+ roksta/get_codebase_structure.cpython-314-darwin.so,sha256=d3u3L9M9Q3DMhivR98L3PkS21kFb4gcGmbqfOAY9gRo,206240
37
+ roksta/checkpoints.cpython-314-darwin.so,sha256=QJ2smLnbWBmVpUtl0Kdlq0Bvl1Av7fa7lp3kxdseEJc,254320
38
+ roksta/extended_text_area.cpython-314-darwin.so,sha256=tyqMtM_fR_JvLUkI81je6756btnlq3iAdGCprXG3lb0,307208
39
+ roksta/logger.cpython-314-darwin.so,sha256=eEEjMKT64vo9r_W76jDjxz7szyA5fXRPQwzEFDNHVPE,138560
40
+ roksta/save_chat_transcript.cpython-314-darwin.so,sha256=FfSJBdKefsKnUXkr3crvP9fJE-yGUfc8bblZM6TaeUM,207720
41
+ roksta/command_handlers/handle_usage_command.cpython-314-darwin.so,sha256=XCWGWsXCakkCHv7_V13jAeqbpBJWizPt2ozKMbv34ns,208072
42
+ roksta/command_handlers/handle_redeem_command.cpython-314-darwin.so,sha256=ayV2vU7CFDO-97Dq-4WaDxYVcnXMjmktkXjo8U25oiY,157960
43
+ roksta/command_handlers/handle_auto_charge_command.cpython-314-darwin.so,sha256=jW6utRC0h0drnxsMYReSjCQjZDERNlDKHkar0rRdJcA,156416
44
+ roksta/command_handlers/handle_building_command.cpython-314-darwin.so,sha256=bl4IX6sU1v65pt0vxDi18Hsa8Ue5eQmiqFDIvKwnnYQ,155952
45
+ roksta/command_handlers/__init__.cpython-314-darwin.so,sha256=8xFsXXXcYULJTiYjvHWpzXuVhCb5JhBxzOneAbwp8mU,86272
46
+ roksta/command_handlers/handle_logout_command.cpython-314-darwin.so,sha256=_XBQ7SzEwys30KqUSWWSxuuaWCXevCP2Pqa8Fza6hIo,121544
47
+ roksta/command_handlers/handle_add_funds_command.cpython-314-darwin.so,sha256=-TLcHjunP1PaoYC23N02SNOWpybjYe1azHCFBvzkzEU,224640
48
+ roksta/command_handlers/handle_help_command.cpython-314-darwin.so,sha256=9fQ8CVWShq_yY_tqV_gGUkT6EZqenoaGSq2McpAB_wQ,220312
49
+ roksta/command_handlers/handle_auto_commit_command.cpython-314-darwin.so,sha256=HuG0kkh7ER_D0R-38h02efgTGfhR2rYf20XYa3LXUSw,122544
50
+ roksta/command_handlers/handle_login_command.cpython-314-darwin.so,sha256=N9siTLYK1AcpiApJiOshvmdZ8c95nTy-5gLLieXl6Hs,207400
51
+ roksta/command_handlers/handle_activate_command.cpython-314-darwin.so,sha256=VAk5lU4keeUA9rqRKdSwh_xAKfWhFC0RkXHoOP8znUE,240608
52
+ roksta/command_handlers/handle_dev_rate_command.cpython-314-darwin.so,sha256=YVpQo89NK-X07gnrDV1UQsnpJ8Zb0tn9Y5fwKk3eVD0,156016
53
+ roksta/command_handlers/handle_linting_command.cpython-314-darwin.so,sha256=omZ-UhUOD5OAI8EoIKd_7bKl2mbGXqYln48L_UHcC1Q,155984
54
+ roksta/command_handlers/handle_chat_command.cpython-314-darwin.so,sha256=rppMmyC4w_IjZ69HIbRqJXen0v1Le39ojPJ3owywGjE,156952
55
+ roksta/command_handlers/handle_testing_command.cpython-314-darwin.so,sha256=URVjXFLf-fDSAwtVNCOG4FCwsm1_yWER7mfR68hkuhw,155952
56
+ roksta/command_handlers/handle_init_command.cpython-314-darwin.so,sha256=yiv9WCOm0GkarMe6sq21ImYZ8G2U8E8IhKLKYowD0f4,157352
57
+ roksta/command_handlers/handle_request_activation_command.cpython-314-darwin.so,sha256=48HE6p83HusS3vihS9hZZ2Q4YQo3-kBSq7JHb-xbfd0,207112
58
+ roksta/command_handlers/handle_feedback_command.cpython-314-darwin.so,sha256=3dCZ-dCAvwkZrnhEUAFHn-ly6qHpLT10vRGQGmWJcRo,206896
59
+ roksta/command_handlers/handle_payment_details_command.cpython-314-darwin.so,sha256=nRQonpSg7UalAXy8jjSEdsYNPTAEbava3Uc4QcdDQjI,190296
60
+ roksta/command_handlers/handle_quit_command.cpython-314-darwin.so,sha256=y991QPWaL1mOjbLdJhkKLyj3cWWuWjo26xkstAucWUU,87320
61
+ roksta/command_handlers/handle_goal_command.cpython-314-darwin.so,sha256=z1hk8VIV90MNoNuDYGKACwwyt1HulfNC2aI4Wc9Z2CQ,190248
62
+ roksta/ai/__init__.cpython-314-darwin.so,sha256=BaV83jdQCG8M2_8ycpRBHVWX-QcoeQt2yq-HyFIGnYI,85648
63
+ roksta/ai/generic.cpython-314-darwin.so,sha256=L_1qVt-4PmOBrjRuqxxpFR-v-jsXmbFj-7M7pwrG56w,306944
64
+ roksta/ai/gemini.cpython-314-darwin.so,sha256=nZLSKX6g95C5TO8_vGC6enSrBsZ17Onwn4wd_GYii4s,422608
65
+ roksta/ai/call_ai.cpython-314-darwin.so,sha256=gPRpSf9TQp2Jl05eveoZzpkVUk715b-OWhkCH3Rygfs,240768
66
+ roksta/ai/llm.cpython-314-darwin.so,sha256=CeUqgZddXihHTUkJUn9NbRza2riEib-3j5QtvwSOjno,271496
67
+ roksta/ai/openai.cpython-314-darwin.so,sha256=h5MXN2z8a6pLxWhZWkvglyXUHCRaF3NILkSZOW3AlCc,306928
68
+ roksta/ai/tools/final_response.cpython-314-darwin.so,sha256=Ucp_MnDuW-dOU9d7Fn1wAY7jCs4GHd5KkR0AM5fDQlQ,87768
69
+ roksta/ai/tools/tool_defs.cpython-314-darwin.so,sha256=PF3lDUy4c3EGXQtWPMdg8gkhtBJriH-RZPv2bUqvEGU,137408
70
+ roksta/ai/tools/tool_utils.cpython-314-darwin.so,sha256=awOOG9uGvHmjaZ8mGvwpCNVwFFoTlK21qyTgcRnAHMM,307712
71
+ roksta/ai/tools/__init__.cpython-314-darwin.so,sha256=Z3LzZLIZzYlqEeiJeTKMDga7FCVHtzaT-Scf_cCfFkI,87040
72
+ roksta/ai/tools/delete_file.cpython-314-darwin.so,sha256=1FynhuoLD0SQs5V2Cy4q5J0j4_Mi_TusI-iylZY9KxA,121984
73
+ roksta/ai/tools/read_file.cpython-314-darwin.so,sha256=PxFqtTNw_uJ8NlghZOzOZQTylawwjtoajguZRuq4Aiw,155824
74
+ roksta/ai/tools/write_file.cpython-314-darwin.so,sha256=F21DGGbjVDA7VXXtmmX_JZxLgvn6RJJkvK4hfM6bnLQ,122064
75
+ roksta/ai/tools/shell_limited.cpython-314-darwin.so,sha256=OEmDbZ6q6fbB2cbbKg0RcLQXdCysTTPUVMxIiQ1a6KA,190992
76
+ roksta/ai/tools/shell_any.cpython-314-darwin.so,sha256=iSKzq-o_lhezwIiWsfOy4hXM1SN8Cl8Ziz6OMsyx9io,224208
77
+ roksta/ai/tools/regex_replace.cpython-314-darwin.so,sha256=ay2HzLzWwlIoCUsX51UjxZS_kQl3lAev5v5b57ZncI4,155488
78
+ roksta/ai/tools/get_file_summaries.cpython-314-darwin.so,sha256=4OdrbPLuqYw3rxs4YMRbeu600JF3i8BnUvIFG0Wq6c8,122728
79
+ roksta/ai/tools/web_fetch.cpython-314-darwin.so,sha256=bS9Iis0a4LqSFNj8UJYBtYzxNyt-UApeGClPhOoeVzY,304416
80
+ roksta/ai/tools/edit_file.cpython-314-darwin.so,sha256=khRjiEN21U0xvcufo3Q_r_GZDmCJ7R-IJaMd-DfBRro,155168
81
+ roksta-0.3.6.dist-info/RECORD,,
82
+ roksta-0.3.6.dist-info/WHEEL,sha256=kTyoa6dywfGfyBeUsEKMOPsM0w-CaDJ_dSETLrKd4uk,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
@@ -1,122 +0,0 @@
1
- roksta-0.3.4.dist-info/RECORD,,
2
- roksta-0.3.4.dist-info/WHEEL,sha256=kTyoa6dywfGfyBeUsEKMOPsM0w-CaDJ_dSETLrKd4uk,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/balance.cpython-314-darwin.so,sha256=Wv_2QTpZUNv5Re-24A1oh3aJYIkJAhgFp2-jrWOb6_E,389728
7
- roksta/propose_solution.cpython-314-darwin.so,sha256=-qG4o-U8Mc7qWz1Fb6_w4pl5hXCXIhV7p2yR5ln-_2w,191112
8
- roksta/gen_codebase_summaries.cpython-314-darwin.so,sha256=4t-kELLq5Ct9hzBBcJ9DawD2ESHtE2dJ1ZgriEGcrJw,654432
9
- roksta/codebase_listing.cpython-314-darwin.so,sha256=Kxtkn9xa9WOqLXUXrLw_3vGP6VJsfXWe_db-D0EWiLA,155608
10
- roksta/__init__.cpython-314-darwin.so,sha256=EL2fuUK0drBv_kRWrblymcUCrc8PcfoFZkxUTWRE4cE,85648
11
- roksta/default_config.cpython-314-darwin.so,sha256=EOy_aFTqUZXkbKylLTPrLmkt4USA-yhFBJQIuNxGhn4,102248
12
- roksta/create_default_config.cpython-314-darwin.so,sha256=yzPUAgmVRyVyFFlUCbuKrLmi2JdmR2HwOOjta7uLf6o,121592
13
- roksta/make_issue.cpython-314-darwin.so,sha256=2hxqWUzkcLXYnqHdp9X1YloBz2Mvnq2EPrqEnR3_eCA,221856
14
- roksta/firebase_auth_web.cpython-314-darwin.so,sha256=zoQ3tXk-QI089zjlnu8Lc5kdQlPvdA-voOu36iCsUHA,472664
15
- roksta/fix_tests.cpython-314-darwin.so,sha256=KlW22eei9KXI1-7LliposQkP3NqR2la9EO_mbYdqrxc,240704
16
- roksta/get_failing_tests.cpython-314-darwin.so,sha256=tZyV_x70kDu92_4gwlACDyAxY2vsEMRJ0XoFuBwSOGQ,224296
17
- roksta/env.cpython-314-darwin.so,sha256=IQxDjWQZqBwBERlfIoFf8WGabp4u6vMkKhYfd86zrlg,87832
18
- roksta/roksta.cpython-314-darwin.so,sha256=gT83qCwSxPwxgkINyRAS_qqRUNO4m1sBbRiavF55AAc,588128
19
- roksta/clarify_goal.cpython-314-darwin.so,sha256=5MNv1nY2NjAZC7iZZQnht-zCaEzCWeTM25b9A7p5Xc0,207808
20
- roksta/run_cli_goal.cpython-314-darwin.so,sha256=l1mTdfSfJwCESJS3RgxVsylTe3zTr_E6PTrudP1yf_o,223968
21
- roksta/rewrite_goal.cpython-314-darwin.so,sha256=kUrDcnDo0NPmeoG2sFiEVAKhmTnCqk7PJGktyCrzmCg,191072
22
- roksta/build_project.cpython-314-darwin.so,sha256=SHRxDasBlCqsqQrh4gs45ZMTa5q5WK-rZnvdjIQtYvU,191184
23
- roksta/analytics.cpython-314-darwin.so,sha256=_f3GYoQyfJpjGIJyjrMBH5DXNJNODo6yMu9ZHe4hEtA,306960
24
- roksta/main.cpython-314-darwin.so,sha256=8Yy6B1-Zo-5Gnsf-s3p5693En1b0Id0Z8zlzqAModgs,122184
25
- roksta/utils.cpython-314-darwin.so,sha256=rooistD0AA_OGtUADky5QddkXkTnMflSrrXjqNSUeb8,622120
26
- roksta/check_for_updates.cpython-314-darwin.so,sha256=dUOp7ozWVqNhyZWtZ2SM_z5E1_33Kxdz7ZV9YkkmtG0,306776
27
- roksta/response_formats.cpython-314-darwin.so,sha256=yLrtRaRY87oQrwk_KHlKbYJxxxwcCmp7sGXLByj8j7I,120968
28
- roksta/select_files.cpython-314-darwin.so,sha256=jxW1XydZuI5cmqiAOyh2PR9m3eX44YlDJYmYioDKUJ8,207792
29
- roksta/goal_workflow.cpython-314-darwin.so,sha256=A4GA_Xh-rd_UlVJPUrMl2HSoTpIz7y860zSz9JXkgew,521904
30
- roksta/parse_readme.cpython-314-darwin.so,sha256=VVKOmQO5Rx9AmvwiYyuHqaS4YZgzF4IdUb5YmwoxFqA,207280
31
- roksta/firebase.cpython-314-darwin.so,sha256=3wJqf4qQ-rTp6QUsAaSgrUF5SmW4Fc6PhRzAoCH8yAM,504704
32
- roksta/write_code.cpython-314-darwin.so,sha256=kpWtBwNQnirdi7rIkvY7qqJgF9hxUUHrrN9VWWoCpS8,191152
33
- roksta/enums.cpython-314-darwin.so,sha256=j8F0fci_9a5dfbI85J_dTGkkzjszoRz40-8X_h1OBjY,338344
34
- roksta/tips.cpython-314-darwin.so,sha256=4HhQ6Es1KY0EfVplX61_p67MjxBhRouylk7PXCn1tYY,85688
35
- roksta/firebase_config.cpython-314-darwin.so,sha256=odBL74t5UEMoLoOFJK1rmXTnSbXjNpMIEIO6AU6cycY,86328
36
- roksta/gen_one_line_goal.cpython-314-darwin.so,sha256=tHPEgNG72YXrLCAGjEUOSO34rmf58fQW8gN5EIuC_Vs,207768
37
- roksta/new_features.cpython-314-darwin.so,sha256=jcwZu5lm1pxSHUg2s4dk6JiPZ5yui2CnfHQLeBhGqDk,85728
38
- roksta/init_codebase.cpython-314-darwin.so,sha256=cVufFwiRQRRv6gpaJeYBhNvk0tifYJOLDJdXZrYxnLU,341632
39
- roksta/chat_workflow.cpython-314-darwin.so,sha256=RG_R47Nnh1CZ-1K1-2D-Po6CWFqjs5mnS7e_P1kJAzA,273792
40
- roksta/lint_code.cpython-314-darwin.so,sha256=epAw8jPF-_eLVquSBDWJ5VfqL1gQKg-TfIeEm3XTqp4,224624
41
- roksta/get_codebase_structure.cpython-314-darwin.so,sha256=d3u3L9M9Q3DMhivR98L3PkS21kFb4gcGmbqfOAY9gRo,206240
42
- roksta/checkpoints.cpython-314-darwin.so,sha256=QJ2smLnbWBmVpUtl0Kdlq0Bvl1Av7fa7lp3kxdseEJc,254320
43
- roksta/extended_text_area.cpython-314-darwin.so,sha256=tyqMtM_fR_JvLUkI81je6756btnlq3iAdGCprXG3lb0,307208
44
- roksta/logger.cpython-314-darwin.so,sha256=eEEjMKT64vo9r_W76jDjxz7szyA5fXRPQwzEFDNHVPE,138560
45
- roksta/save_chat_transcript.cpython-314-darwin.so,sha256=jFf7Dsax3f2-tLuLVi-nRmgreJwK1RvRYeiLykemSWE,207720
46
- roksta/command_handlers/handle_usage_command.cpython-314-darwin.so,sha256=XCWGWsXCakkCHv7_V13jAeqbpBJWizPt2ozKMbv34ns,208072
47
- roksta/command_handlers/handle_redeem_command.cpython-314-darwin.so,sha256=ayV2vU7CFDO-97Dq-4WaDxYVcnXMjmktkXjo8U25oiY,157960
48
- roksta/command_handlers/handle_auto_charge_command.cpython-314-darwin.so,sha256=jW6utRC0h0drnxsMYReSjCQjZDERNlDKHkar0rRdJcA,156416
49
- roksta/command_handlers/handle_building_command.cpython-314-darwin.so,sha256=bl4IX6sU1v65pt0vxDi18Hsa8Ue5eQmiqFDIvKwnnYQ,155952
50
- roksta/command_handlers/__init__.cpython-314-darwin.so,sha256=8xFsXXXcYULJTiYjvHWpzXuVhCb5JhBxzOneAbwp8mU,86272
51
- roksta/command_handlers/handle_logout_command.cpython-314-darwin.so,sha256=_XBQ7SzEwys30KqUSWWSxuuaWCXevCP2Pqa8Fza6hIo,121544
52
- roksta/command_handlers/handle_add_funds_command.cpython-314-darwin.so,sha256=-TLcHjunP1PaoYC23N02SNOWpybjYe1azHCFBvzkzEU,224640
53
- roksta/command_handlers/handle_help_command.cpython-314-darwin.so,sha256=r67sC3735TkQD_frhmseYxnOsqSWhbY5S1MBQ_AJnuI,220312
54
- roksta/command_handlers/handle_auto_commit_command.cpython-314-darwin.so,sha256=HuG0kkh7ER_D0R-38h02efgTGfhR2rYf20XYa3LXUSw,122544
55
- roksta/command_handlers/handle_login_command.cpython-314-darwin.so,sha256=N9siTLYK1AcpiApJiOshvmdZ8c95nTy-5gLLieXl6Hs,207400
56
- roksta/command_handlers/handle_activate_command.cpython-314-darwin.so,sha256=VAk5lU4keeUA9rqRKdSwh_xAKfWhFC0RkXHoOP8znUE,240608
57
- roksta/command_handlers/handle_dev_rate_command.cpython-314-darwin.so,sha256=YVpQo89NK-X07gnrDV1UQsnpJ8Zb0tn9Y5fwKk3eVD0,156016
58
- roksta/command_handlers/handle_linting_command.cpython-314-darwin.so,sha256=omZ-UhUOD5OAI8EoIKd_7bKl2mbGXqYln48L_UHcC1Q,155984
59
- roksta/command_handlers/handle_chat_command.cpython-314-darwin.so,sha256=rppMmyC4w_IjZ69HIbRqJXen0v1Le39ojPJ3owywGjE,156952
60
- roksta/command_handlers/handle_testing_command.cpython-314-darwin.so,sha256=URVjXFLf-fDSAwtVNCOG4FCwsm1_yWER7mfR68hkuhw,155952
61
- roksta/command_handlers/handle_init_command.cpython-314-darwin.so,sha256=yiv9WCOm0GkarMe6sq21ImYZ8G2U8E8IhKLKYowD0f4,157352
62
- roksta/command_handlers/handle_request_activation_command.cpython-314-darwin.so,sha256=48HE6p83HusS3vihS9hZZ2Q4YQo3-kBSq7JHb-xbfd0,207112
63
- roksta/command_handlers/handle_feedback_command.cpython-314-darwin.so,sha256=3dCZ-dCAvwkZrnhEUAFHn-ly6qHpLT10vRGQGmWJcRo,206896
64
- roksta/command_handlers/handle_payment_details_command.cpython-314-darwin.so,sha256=nRQonpSg7UalAXy8jjSEdsYNPTAEbava3Uc4QcdDQjI,190296
65
- roksta/command_handlers/handle_quit_command.cpython-314-darwin.so,sha256=y991QPWaL1mOjbLdJhkKLyj3cWWuWjo26xkstAucWUU,87320
66
- roksta/command_handlers/handle_goal_command.cpython-314-darwin.so,sha256=z1hk8VIV90MNoNuDYGKACwwyt1HulfNC2aI4Wc9Z2CQ,190248
67
- roksta/ai/__init__.cpython-314-darwin.so,sha256=BaV83jdQCG8M2_8ycpRBHVWX-QcoeQt2yq-HyFIGnYI,85648
68
- roksta/ai/generic.cpython-314-darwin.so,sha256=HD50G3n5v3Vqb2jVdLktgtJsTYzqsHUpEPaj4hUsleY,306944
69
- roksta/ai/gemini.cpython-314-darwin.so,sha256=3BfqJaw96SQXhC7Atq0l3FcCiYk8_OBAMflWu3J3SKE,422608
70
- roksta/ai/call_ai.cpython-314-darwin.so,sha256=gPRpSf9TQp2Jl05eveoZzpkVUk715b-OWhkCH3Rygfs,240768
71
- roksta/ai/llm.cpython-314-darwin.so,sha256=G4f5_8BXSxDZXX6jJHwlhGoEJ38aaRggOu0sRoQczCo,271496
72
- roksta/ai/openai.cpython-314-darwin.so,sha256=LK6Z4zbR0pFtNCgy5Gn6eEQzuCW2r593G3E3Kpm5aKs,306928
73
- roksta/ai/tools/final_response.cpython-314-darwin.so,sha256=Ucp_MnDuW-dOU9d7Fn1wAY7jCs4GHd5KkR0AM5fDQlQ,87768
74
- roksta/ai/tools/tool_defs.cpython-314-darwin.so,sha256=2Gt1wGTsMre3aa8FUwvz-NK9DK8lIxJSmzY99Z1Fl44,137408
75
- roksta/ai/tools/tool_utils.cpython-314-darwin.so,sha256=awOOG9uGvHmjaZ8mGvwpCNVwFFoTlK21qyTgcRnAHMM,307712
76
- roksta/ai/tools/__init__.cpython-314-darwin.so,sha256=QNE81tg7AcwVsra0p3GrZNEF6TAEESyMxcrea4qd-PM,87040
77
- roksta/ai/tools/delete_file.cpython-314-darwin.so,sha256=1FynhuoLD0SQs5V2Cy4q5J0j4_Mi_TusI-iylZY9KxA,121984
78
- roksta/ai/tools/read_file.cpython-314-darwin.so,sha256=yhFJK3BpXIeQTHDq37l24WeCGmtvQHzAOzcQ6z6xyNk,155824
79
- roksta/ai/tools/write_file.cpython-314-darwin.so,sha256=F21DGGbjVDA7VXXtmmX_JZxLgvn6RJJkvK4hfM6bnLQ,122064
80
- roksta/ai/tools/shell_limited.cpython-314-darwin.so,sha256=OEmDbZ6q6fbB2cbbKg0RcLQXdCysTTPUVMxIiQ1a6KA,190992
81
- roksta/ai/tools/shell_any.cpython-314-darwin.so,sha256=oIYHLZic9Wh04DflFXUJ8HYHnHjhkg-B6ZgmDNAuftM,224208
82
- roksta/ai/tools/regex_replace.cpython-314-darwin.so,sha256=ay2HzLzWwlIoCUsX51UjxZS_kQl3lAev5v5b57ZncI4,155488
83
- roksta/ai/tools/get_file_summaries.cpython-314-darwin.so,sha256=4OdrbPLuqYw3rxs4YMRbeu600JF3i8BnUvIFG0Wq6c8,122728
84
- roksta/ai/tools/edit_file.cpython-314-darwin.so,sha256=khRjiEN21U0xvcufo3Q_r_GZDmCJ7R-IJaMd-DfBRro,155168
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
@@ -1,2 +0,0 @@
1
- # tests package marker
2
- # This file allows pytest to import tests using package-qualified names, avoiding import collisions.
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
@@ -1,2 +0,0 @@
1
- # tests.functions package marker
2
- # Ensures subtests are imported as package-qualified modules.
@@ -1,2 +0,0 @@
1
- # tests.functions.api_v1_00 package marker
2
- # Allows tests under this directory to be imported with package-qualified names.