captchakraken 4.2.0__tar.gz → 5.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. {captchakraken-4.2.0 → captchakraken-5.0.0}/AGENTS.md +5 -4
  2. {captchakraken-4.2.0 → captchakraken-5.0.0}/PKG-INFO +34 -24
  3. {captchakraken-4.2.0 → captchakraken-5.0.0}/README.md +31 -21
  4. {captchakraken-4.2.0 → captchakraken-5.0.0}/pyproject.toml +6 -9
  5. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/__init__.py +1 -1
  6. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/captchakraken.config.json +68 -12
  7. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/cli.py +2 -47
  8. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/config.py +0 -4
  9. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/kinds.py +1 -0
  10. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/models.json +15 -14
  11. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/page_solver.py +407 -68
  12. captchakraken-5.0.0/src/captchakraken/pointer/__init__.py +18 -0
  13. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pointer/elements.py +1 -1
  14. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pointer/server.py +13 -17
  15. captchakraken-5.0.0/src/captchakraken/pointer/service.py +264 -0
  16. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/prompts.py +3 -4
  17. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/selectors.py +31 -19
  18. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/selfhost.py +9 -16
  19. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/server_manager.py +0 -4
  20. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/solver.py +4 -25
  21. captchakraken-5.0.0/src/captchakraken/tool_calls/find_checkbox.py +158 -0
  22. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/tool_calls/find_grid.py +6 -132
  23. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/updater.py +57 -27
  24. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/verdicts.py +153 -3
  25. captchakraken-5.0.0/tests/fixtures/checkbox/hcaptcha_dark_compact_de_1.5x.png +0 -0
  26. captchakraken-5.0.0/tests/fixtures/checkbox/hcaptcha_dark_test_key.png +0 -0
  27. captchakraken-5.0.0/tests/fixtures/checkbox/recaptcha_light_compact_banner_above.png +0 -0
  28. captchakraken-5.0.0/tests/fixtures/checkbox/turnstile_dark_de_banner_below.png +0 -0
  29. captchakraken-5.0.0/tests/test_a_band_rolls_as_far_as_the_answer_not_the_handle.py +134 -0
  30. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_blank_board_is_not_photographed.py +3 -0
  31. captchakraken-5.0.0/tests/test_a_board_that_submits_itself_keeps_its_count.py +55 -0
  32. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_board_with_no_answer_is_skipped.py +1 -1
  33. captchakraken-5.0.0/tests/test_a_grid_is_read_from_the_vendors_tiles.py +73 -0
  34. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_pointer_model_is_sent_the_bare_board.py +1 -14
  35. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_repeat_on_a_silent_board.py +4 -7
  36. captchakraken-5.0.0/tests/test_a_slide_presses_the_handle_the_page_names.py +102 -0
  37. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_slider_is_shown_with_its_handle.py +25 -0
  38. captchakraken-5.0.0/tests/test_a_still_vendor_is_asked_at_once.py +62 -0
  39. captchakraken-5.0.0/tests/test_a_typed_answer_is_sent.py +119 -0
  40. captchakraken-5.0.0/tests/test_an_unchanged_board_keeps_its_hash.py +124 -0
  41. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_fetch_offers_only_what_loads.py +7 -8
  42. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_find_checkbox_rejects_what_is_not_a_checkbox.py +44 -19
  43. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_hcaptcha_badge_detection.py +0 -28
  44. captchakraken-5.0.0/tests/test_licensed_models.py +137 -0
  45. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_private_models.py +7 -10
  46. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_recaptcha_chipped_board.py +1 -1
  47. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_solver.py +0 -24
  48. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_client_runs_without_opencv.py +1 -1
  49. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_pointer_server_is_a_managed_endpoint.py +2 -3
  50. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_second_look_believes_its_recording.py +14 -6
  51. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_selector_config_is_the_table.py +8 -17
  52. captchakraken-5.0.0/tests/test_the_vendor_says_whether_its_board_moves.py +204 -0
  53. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_vendor_hint_decides_the_expert.py +1 -27
  54. captchakraken-4.2.0/src/captchakraken/pointer/__init__.py +0 -20
  55. captchakraken-4.2.0/src/captchakraken/pointer/detector.py +0 -333
  56. captchakraken-4.2.0/src/captchakraken/pointer/service.py +0 -553
  57. captchakraken-4.2.0/src/captchakraken/tool_calls/find_checkbox.py +0 -21
  58. captchakraken-4.2.0/tests/test_a_typed_code_is_read_by_the_model_and_the_letter_detector_together.py +0 -104
  59. captchakraken-4.2.0/tests/test_detector_weights_are_fetched_once_and_checked.py +0 -153
  60. captchakraken-4.2.0/tests/test_find_grid_reads_the_detectors_cells.py +0 -149
  61. captchakraken-4.2.0/tests/test_grid_detection_ci.py +0 -123
  62. captchakraken-4.2.0/tests/test_grid_dims_must_be_possible.py +0 -57
  63. captchakraken-4.2.0/tests/test_grid_never_pairs_tiles.py +0 -56
  64. captchakraken-4.2.0/tests/test_hcaptcha_boards_reach_the_right_expert.py +0 -28
  65. captchakraken-4.2.0/tests/test_licensed_models.py +0 -73
  66. captchakraken-4.2.0/tests/test_selected_fields.py +0 -98
  67. {captchakraken-4.2.0 → captchakraken-5.0.0}/.gitignore +0 -0
  68. {captchakraken-4.2.0 → captchakraken-5.0.0}/Dockerfile +0 -0
  69. {captchakraken-4.2.0 → captchakraken-5.0.0}/LICENSE +0 -0
  70. {captchakraken-4.2.0 → captchakraken-5.0.0}/NOTICE +0 -0
  71. {captchakraken-4.2.0 → captchakraken-5.0.0}/examples/README.md +0 -0
  72. {captchakraken-4.2.0 → captchakraken-5.0.0}/examples/_harness.py +0 -0
  73. {captchakraken-4.2.0 → captchakraken-5.0.0}/examples/demoRecaptcha.py +0 -0
  74. {captchakraken-4.2.0 → captchakraken-5.0.0}/examples/watch_playwright.py +0 -0
  75. {captchakraken-4.2.0 → captchakraken-5.0.0}/examples/with_local_gguf.py +0 -0
  76. {captchakraken-4.2.0 → captchakraken-5.0.0}/examples/with_playwright.py +0 -0
  77. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/action_types.py +0 -0
  78. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/clipvideo.py +0 -0
  79. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/demo.py +0 -0
  80. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/errors.py +0 -0
  81. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/humanize.py +0 -0
  82. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/image_processor.py +0 -0
  83. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/keyframes.py +0 -0
  84. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/overlay.py +0 -0
  85. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pinned_model.json +0 -0
  86. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/planner.py +0 -0
  87. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pointer/heads.py +0 -0
  88. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pointer/layout.py +0 -0
  89. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pointer/marks.py +0 -0
  90. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/pointer/vllm_plugin.py +0 -0
  91. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/timing.py +0 -0
  92. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/tool_calls/board_painted.py +0 -0
  93. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/tool_calls/fill_tracker.py +0 -0
  94. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/tool_calls/slide_tracker.py +0 -0
  95. {captchakraken-4.2.0 → captchakraken-5.0.0}/src/captchakraken/watcher.py +0 -0
  96. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/drawing.py +0 -0
  97. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fake_dom.py +0 -0
  98. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/captchafox.png +0 -0
  99. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/geetest_v4_bar.png +0 -0
  100. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/hcaptcha_dark.png +0 -0
  101. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/hcaptcha_light_compact_hover_1.5x.png +0 -0
  102. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/hcaptcha_ticked.png +0 -0
  103. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/recaptcha_dark_compact_2x.png +0 -0
  104. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/recaptcha_light.png +0 -0
  105. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/recaptcha_ticked_1.5x.png +0 -0
  106. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/turnstile_dark_flexible_2x.png +0 -0
  107. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/turnstile_light.png +0 -0
  108. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/checkbox/turnstile_passed.png +0 -0
  109. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/cursory_cross_port.json +0 -0
  110. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/grid/groceries_6x3_mac.png +0 -0
  111. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/grid/photos_3x3_offcentre.png +0 -0
  112. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/hcaptcha_enclave/challenge.html +0 -0
  113. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/hcaptcha_enclave/enclave.html +0 -0
  114. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/hcaptcha_enclave/host.html +0 -0
  115. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/fixtures/vendor_verdicts.json +0 -0
  116. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/slide_boards.py +0 -0
  117. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_board_is_routed_and_watched_once_it_has_painted.py +0 -0
  118. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_board_that_never_repeats_is_animated.py +0 -0
  119. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_board_that_will_not_film_may_already_be_solved.py +0 -0
  120. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_burst_cannot_trip_its_own_deadline.py +0 -0
  121. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_capture_never_clips_the_page.py +0 -0
  122. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_checkbox_is_clicked_not_watched.py +0 -0
  123. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_frame_keeps_its_colours_and_its_pixels.py +0 -0
  124. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_hold_is_held_until_the_widget_completes.py +0 -0
  125. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_missing_prompt_is_not_a_reason_to_wait.py +0 -0
  126. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_new_board_ends_the_film.py +0 -0
  127. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_pin_reads_its_own_entry.py +0 -0
  128. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_pointer_answer_always_carries_points.py +0 -0
  129. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_reask_is_a_different_sample.py +0 -0
  130. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_refusal_keeps_its_machine_readable_half.py +0 -0
  131. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_refused_clip_is_not_re_asked.py +0 -0
  132. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_refused_pointer_answer_moves_to_the_next.py +0 -0
  133. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_repeated_answer_is_not_re_performed.py +0 -0
  134. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_replaced_board_has_not_failed_yet.py +0 -0
  135. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_round_that_did_nothing_waits_for_nothing.py +0 -0
  136. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_slow_camera_does_not_stretch_the_burst.py +0 -0
  137. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_slow_model_does_not_extend_the_burst.py +0 -0
  138. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_solved_board_is_not_lost_to_a_typed_action.py +0 -0
  139. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_still_board_is_not_filmed.py +0 -0
  140. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_still_burst_stops_at_the_floor.py +0 -0
  141. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_typed_captcha_is_shown_with_its_box.py +0 -0
  142. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_video_generation_sends_the_clip.py +0 -0
  143. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_widget_inside_an_enclave_is_found.py +0 -0
  144. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_a_widget_is_waited_for.py +0 -0
  145. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_an_element_is_outlined_by_its_mask.py +0 -0
  146. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_an_unusable_answer_is_not_a_dead_page.py +0 -0
  147. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_animated_solve_budget.py +0 -0
  148. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_api_error_is_exported.py +0 -0
  149. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_api_errors.py +0 -0
  150. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_browser_compat.py +0 -0
  151. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_cli_stdout_is_the_wire_between_the_ports.py +0 -0
  152. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_credentials_file.py +0 -0
  153. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_cycling_board_waits_for_its_screen.py +0 -0
  154. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_earlier_screens_are_context_before_the_board.py +0 -0
  155. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_empty_answer_still_submits.py +0 -0
  156. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_endpoint_is_dialled_once.py +0 -0
  157. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_every_captcha_is_asked_the_same_prompt.py +0 -0
  158. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_every_keyframe_write_names_its_stem.py +0 -0
  159. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_every_trained_vendor_is_found.py +0 -0
  160. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_expert_reaches_the_wire.py +0 -0
  161. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_expert_routing.py +0 -0
  162. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_fetch_command.py +0 -0
  163. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_freshness_check.py +0 -0
  164. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_geetest_accept_is_a_signal.py +0 -0
  165. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_geetest_done_needs_no_bounding_box.py +0 -0
  166. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_geetest_submit_button.py +0 -0
  167. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_grid_round_pays_once.py +0 -0
  168. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_humanizer.py +0 -0
  169. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_keyframes_compare_each_pair_once.py +0 -0
  170. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_min_pixels_upscale.py +0 -0
  171. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_old_config_names_still_work.py +0 -0
  172. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_one_ask_cannot_outlive_the_solve.py +0 -0
  173. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_one_prompt_answers_every_puzzle.py +0 -0
  174. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_our_own_gesture_is_not_animation.py +0 -0
  175. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_outcome_reporting.py +0 -0
  176. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_overlay_is_what_the_model_reads.py +0 -0
  177. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_page_solver.py +0 -0
  178. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_pinned_model.py +0 -0
  179. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_pixel_parser.py +0 -0
  180. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_public_contract.py +0 -0
  181. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_recaptcha_dynamic_more_is_not_an_error.py +0 -0
  182. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_routing_headers.py +0 -0
  183. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_slide_tracker.py +0 -0
  184. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_stale_handle_after_submit.py +0 -0
  185. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_film_outlives_the_answer.py +0 -0
  186. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_legacy_model_warning_is_one_text.py +0 -0
  187. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_notice_travels_with_the_package.py +0 -0
  188. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_offset_head_learns.py +0 -0
  189. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_pointer_reads_its_answer_from_one_prefill.py +0 -0
  190. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_slide_driver_steers_by_what_it_sees.py +0 -0
  191. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_two_ports_share_one_mouse.py +0 -0
  192. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_vendor_says_whether_the_round_was_taken.py +0 -0
  193. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_wait_gate_metric.py +0 -0
  194. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_the_worker_protocol_survives_a_bad_request.py +0 -0
  195. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_thinking_is_off_on_every_runtime.py +0 -0
  196. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_vendor_gates_are_not_keyed_on_unknown.py +0 -0
  197. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_version_matches_manifest.py +0 -0
  198. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_watcher.py +0 -0
  199. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/test_your_own_selectors_find_your_captcha.py +0 -0
  200. {captchakraken-4.2.0 → captchakraken-5.0.0}/tests/virtual_clock.py +0 -0
@@ -64,8 +64,8 @@ captchakraken path/to/captcha.png # prints a JSON click plan
64
64
 
65
65
  Other CLI modes, all printing JSON: `captchakraken server start|stop|status|run`
66
66
  manages a local vLLM server, `captchakraken fetch` updates weights and the
67
- serving stack together, and the detector tool calls (`find-grid`, `find-checkbox`,
68
- `get-numbered-grid`, `detect-selected`, …) are exposed one per subcommand. The
67
+ serving stack together, and the pixel tool calls (`find-checkbox`,
68
+ `grid-cell-states-fixed`) are exposed one per subcommand. The
69
69
  module docstring of `captchakraken/cli.py` lists every mode with its arguments.
70
70
 
71
71
  ## 4. Errors
@@ -92,8 +92,9 @@ succeed.
92
92
 
93
93
  ## 5. If you drive the model yourself
94
94
 
95
- Grid screenshots must be sent with **cell numbers drawn on them** — the client
96
- runs `find_grid`, renders the numbered overlay, and sends that image, because
95
+ Grid screenshots sent to a chat model must have **cell numbers drawn on them** —
96
+ the client reads the cell boxes from the reCAPTCHA challenge frame's tiles,
97
+ renders the numbered overlay, and sends that image, because
97
98
  the model reads those labels and was never trained to invent a numbering.
98
99
  Without the overlay reCAPTCHA 4×4 scores zero without erroring. Image area is
99
100
  also clamped into the `pixel_budget` the model declares in
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: captchakraken
3
- Version: 4.2.0
4
- Summary: Captcha-solving engine and CLI: a v2 pointer model and CNN element detector for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM.
3
+ Version: 5.0.0
4
+ Summary: Captcha-solving engine and CLI: a v2 pointer model for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM.
5
5
  Project-URL: Homepage, https://captchakraken.com
6
6
  Project-URL: Documentation, https://github.com/CaptchaKraken/CaptchaKraken#readme
7
7
  Project-URL: Source, https://github.com/CaptchaKraken/CaptchaKraken
@@ -193,13 +193,13 @@ Requires-Python: >=3.11
193
193
  Requires-Dist: av==18.1.0
194
194
  Requires-Dist: cursory==2.1.0
195
195
  Requires-Dist: numpy==2.3.5
196
- Requires-Dist: onnxruntime==1.31.1
197
196
  Requires-Dist: pillow==13.0.0
198
197
  Requires-Dist: pydantic==2.13.5
199
198
  Requires-Dist: python-dotenv==1.2.3
200
199
  Requires-Dist: requests==2.34.2
201
200
  Requires-Dist: scipy==1.17.1
202
201
  Provides-Extra: dev
202
+ Requires-Dist: huggingface-hub==1.30.0; extra == 'dev'
203
203
  Requires-Dist: mypy==2.3.1; extra == 'dev'
204
204
  Requires-Dist: pytest-cov==7.1.0; extra == 'dev'
205
205
  Requires-Dist: pytest==9.1.1; extra == 'dev'
@@ -237,21 +237,34 @@ nothing at all.
237
237
 
238
238
  ## Watch it work
239
239
 
240
- <p align="center">
241
- <img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_4x4.webp" width="260"
242
- alt="A live reCAPTCHA 4×4 tile grid challenge being solved end to end">
243
- <img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_slide.webp" width="260"
244
- alt="A live GeeTest slide jigsaw challenge being solved end to end">
245
- </p>
246
-
247
- reCAPTCHA 4×4 tile grid 9/10 in 8.7s · GeeTest slide jigsaw 10/10 in 7.6s — median of the solved attempts, measured 2026-08-19 on **captcha-v12**
248
- against each vendor's own public demo page. Counts rather than percentages
249
- because ten attempts is not a percentage. Idle time is cut from the clips, so
250
- they run shorter than the solves they show.
251
-
252
- **More puzzle types**, as video and with the full method, at
253
- [captchakraken.com](https://captchakraken.com) and in the
254
- [main repo](https://github.com/CaptchaKraken/CaptchaKraken#watch-it-work).
240
+ <table>
241
+ <tr>
242
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_4x4.webp" width="240" alt="A live reCAPTCHA 4×4 tile grid challenge being solved end to end"><br><sub><b>reCAPTCHA 4×4 tile grid</b><br>14/14 solved · median 6.6 s</sub></td>
243
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_3x3.webp" width="240" alt="A live reCAPTCHA 3×3 tile grid challenge being solved end to end"><br><sub><b>reCAPTCHA 3×3 tile grid</b><br>20/22 solved · median 6.5 s</sub></td>
244
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/canvas_drag.webp" width="240" alt="A live Canvas drag puzzle challenge being solved end to end"><br><sub><b>Canvas drag puzzle</b><br>37/37 solved · median 7.3 s per board</sub></td>
245
+ </tr>
246
+ <tr>
247
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_slide.webp" width="240" alt="A live GeeTest slide jigsaw challenge being solved end to end"><br><sub><b>GeeTest slide jigsaw</b><br>6/6 solved · median 7.7 s</sub></td>
248
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_icon.webp" width="240" alt="A live GeeTest ordered icon click challenge being solved end to end"><br><sub><b>GeeTest ordered icon click</b><br>6/7 solved · median 7.6 s</sub></td>
249
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_nine.webp" width="240" alt="A live GeeTest 3×3 photo grid challenge being solved end to end"><br><sub><b>GeeTest 3×3 photo grid</b><br>6/6 solved · median 6.9 s</sub></td>
250
+ </tr>
251
+ <tr>
252
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/tencent_slide.webp" width="240" alt="A live Tencent slide jigsaw challenge being solved end to end"><br><sub><b>Tencent slide jigsaw</b><br>6/6 solved · median 6.2 s</sub></td>
253
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/yidun_pictureclick.webp" width="240" alt="A live NetEase Yidun characters in order challenge being solved end to end"><br><sub><b>NetEase Yidun characters in order</b><br>6/6 solved · median 7.7 s</sub></td>
254
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/dingxiang_icon.webp" width="240" alt="A live DingXiang icon click challenge being solved end to end"><br><sub><b>DingXiang icon click</b><br>6/6 solved · median 7.6 s</sub></td>
255
+ </tr>
256
+ </table>
257
+
258
+ Recorded 2026-11-15 on each vendor's own public demo page through the hosted
259
+ API (**CaptchaKraken Abyss**), one solve at a time. Counts rather than
260
+ percentages, because a handful of attempts is not a percentage. The median is
261
+ the measured time from the challenge opening to the vendor verifying it, taken
262
+ from the run and never from the footage. Idle time is cut from the clips, so
263
+ they run shorter than the solves they show. The canvas puzzle deals a varying
264
+ number of boards per challenge, so it is timed per board.
265
+
266
+ **Every puzzle type**, with the full results table, at
267
+ [captchakraken.com](https://captchakraken.com).
255
268
 
256
269
  ## What it solves
257
270
 
@@ -309,7 +322,7 @@ captchakraken server start | stop | status | run
309
322
  ## Usage
310
323
 
311
324
  ```bash
312
- # Solve an image/video: classify → find_grid → plan. Prints the click actions.
325
+ # Solve an image/video: classify → plan. Prints the click actions.
313
326
  captchakraken path/to/captcha.png
314
327
  captchakraken path/to/captcha.png --puzzle-source recaptcha
315
328
  ```
@@ -321,8 +334,8 @@ solver = CaptchaSolver() # connects to / auto-starts a local vLLM
321
334
  actions = solver.solve("captcha.png")
322
335
  ```
323
336
 
324
- Element-detector tool subcommands (CPU only, no planner model): `find-grid`, `find-checkbox`,
325
- `detect-selected`, `grid-cell-states`, and a persistent `serve` worker the browser driver polls.
337
+ Pixel tool subcommands (CPU only, no model): `find-checkbox`, `grid-cell-states-fixed`
338
+ (takes the grid boxes as JSON), and a persistent `serve` worker the browser driver polls.
326
339
 
327
340
  ## Configuration (model-agnostic)
328
341
 
@@ -337,9 +350,6 @@ Everything model-specific lives in `captchakraken.config` and is env-overridable
337
350
  | `CAPTCHA_LORA_ADAPTER` | Captcha adapter (HF id or path) | `CaptchaKraken/CaptchaKraken-Lora-v1.2` |
338
351
  | `CAPTCHA_LORA_NAME` | Served adapter name the client requests | `captcha-v12` |
339
352
  | `CAPTCHA_KRAKEN_AUTOSTART` | `0` disables local auto-start | `1` |
340
- | `CAPTCHA_KRAKEN_DETECTOR` | A local element-detector `.onnx` to run instead of downloading the released one | the released weights, fetched once |
341
- | `CAPTCHA_KRAKEN_DETECTOR_MODEL` | Which released detector runs: `lite` (MobileNetV3, about 100 ms a board on one vCPU), `standard` (ResNet-18), or `auto`; overrides `detector` in `captchakraken.config.json` | the config's `detector`, shipped as `auto`: `lite` on two usable CPUs or fewer (a container's CPU quota included), else one board is timed and `standard` runs when it fits in 200 ms |
342
- | `HF_TOKEN` | A Hugging Face token, sent only when downloading the detector weights from a private copy of their repo | unset: the download sends no credential |
343
353
  | `CAPTCHA_HUMANIZATION` | How gestures are performed: `mouse`, `mobile` or `none` | `mouse` |
344
354
 
345
355
  **How it moves** is a choice of input device, not a realism dial. `mobile`
@@ -23,21 +23,34 @@ nothing at all.
23
23
 
24
24
  ## Watch it work
25
25
 
26
- <p align="center">
27
- <img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_4x4.webp" width="260"
28
- alt="A live reCAPTCHA 4×4 tile grid challenge being solved end to end">
29
- <img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_slide.webp" width="260"
30
- alt="A live GeeTest slide jigsaw challenge being solved end to end">
31
- </p>
32
-
33
- reCAPTCHA 4×4 tile grid 9/10 in 8.7s · GeeTest slide jigsaw 10/10 in 7.6s — median of the solved attempts, measured 2026-08-19 on **captcha-v12**
34
- against each vendor's own public demo page. Counts rather than percentages
35
- because ten attempts is not a percentage. Idle time is cut from the clips, so
36
- they run shorter than the solves they show.
37
-
38
- **More puzzle types**, as video and with the full method, at
39
- [captchakraken.com](https://captchakraken.com) and in the
40
- [main repo](https://github.com/CaptchaKraken/CaptchaKraken#watch-it-work).
26
+ <table>
27
+ <tr>
28
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_4x4.webp" width="240" alt="A live reCAPTCHA 4×4 tile grid challenge being solved end to end"><br><sub><b>reCAPTCHA 4×4 tile grid</b><br>14/14 solved · median 6.6 s</sub></td>
29
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/recaptcha_3x3.webp" width="240" alt="A live reCAPTCHA 3×3 tile grid challenge being solved end to end"><br><sub><b>reCAPTCHA 3×3 tile grid</b><br>20/22 solved · median 6.5 s</sub></td>
30
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/canvas_drag.webp" width="240" alt="A live Canvas drag puzzle challenge being solved end to end"><br><sub><b>Canvas drag puzzle</b><br>37/37 solved · median 7.3 s per board</sub></td>
31
+ </tr>
32
+ <tr>
33
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_slide.webp" width="240" alt="A live GeeTest slide jigsaw challenge being solved end to end"><br><sub><b>GeeTest slide jigsaw</b><br>6/6 solved · median 7.7 s</sub></td>
34
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_icon.webp" width="240" alt="A live GeeTest ordered icon click challenge being solved end to end"><br><sub><b>GeeTest ordered icon click</b><br>6/7 solved · median 7.6 s</sub></td>
35
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/geetest_nine.webp" width="240" alt="A live GeeTest 3×3 photo grid challenge being solved end to end"><br><sub><b>GeeTest 3×3 photo grid</b><br>6/6 solved · median 6.9 s</sub></td>
36
+ </tr>
37
+ <tr>
38
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/tencent_slide.webp" width="240" alt="A live Tencent slide jigsaw challenge being solved end to end"><br><sub><b>Tencent slide jigsaw</b><br>6/6 solved · median 6.2 s</sub></td>
39
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/yidun_pictureclick.webp" width="240" alt="A live NetEase Yidun characters in order challenge being solved end to end"><br><sub><b>NetEase Yidun characters in order</b><br>6/6 solved · median 7.7 s</sub></td>
40
+ <td align="center" width="33%"><img src="https://raw.githubusercontent.com/CaptchaKraken/CaptchaKraken/main/docs/assets/demo/dingxiang_icon.webp" width="240" alt="A live DingXiang icon click challenge being solved end to end"><br><sub><b>DingXiang icon click</b><br>6/6 solved · median 7.6 s</sub></td>
41
+ </tr>
42
+ </table>
43
+
44
+ Recorded 2026-11-15 on each vendor's own public demo page through the hosted
45
+ API (**CaptchaKraken Abyss**), one solve at a time. Counts rather than
46
+ percentages, because a handful of attempts is not a percentage. The median is
47
+ the measured time from the challenge opening to the vendor verifying it, taken
48
+ from the run and never from the footage. Idle time is cut from the clips, so
49
+ they run shorter than the solves they show. The canvas puzzle deals a varying
50
+ number of boards per challenge, so it is timed per board.
51
+
52
+ **Every puzzle type**, with the full results table, at
53
+ [captchakraken.com](https://captchakraken.com).
41
54
 
42
55
  ## What it solves
43
56
 
@@ -95,7 +108,7 @@ captchakraken server start | stop | status | run
95
108
  ## Usage
96
109
 
97
110
  ```bash
98
- # Solve an image/video: classify → find_grid → plan. Prints the click actions.
111
+ # Solve an image/video: classify → plan. Prints the click actions.
99
112
  captchakraken path/to/captcha.png
100
113
  captchakraken path/to/captcha.png --puzzle-source recaptcha
101
114
  ```
@@ -107,8 +120,8 @@ solver = CaptchaSolver() # connects to / auto-starts a local vLLM
107
120
  actions = solver.solve("captcha.png")
108
121
  ```
109
122
 
110
- Element-detector tool subcommands (CPU only, no planner model): `find-grid`, `find-checkbox`,
111
- `detect-selected`, `grid-cell-states`, and a persistent `serve` worker the browser driver polls.
123
+ Pixel tool subcommands (CPU only, no model): `find-checkbox`, `grid-cell-states-fixed`
124
+ (takes the grid boxes as JSON), and a persistent `serve` worker the browser driver polls.
112
125
 
113
126
  ## Configuration (model-agnostic)
114
127
 
@@ -123,9 +136,6 @@ Everything model-specific lives in `captchakraken.config` and is env-overridable
123
136
  | `CAPTCHA_LORA_ADAPTER` | Captcha adapter (HF id or path) | `CaptchaKraken/CaptchaKraken-Lora-v1.2` |
124
137
  | `CAPTCHA_LORA_NAME` | Served adapter name the client requests | `captcha-v12` |
125
138
  | `CAPTCHA_KRAKEN_AUTOSTART` | `0` disables local auto-start | `1` |
126
- | `CAPTCHA_KRAKEN_DETECTOR` | A local element-detector `.onnx` to run instead of downloading the released one | the released weights, fetched once |
127
- | `CAPTCHA_KRAKEN_DETECTOR_MODEL` | Which released detector runs: `lite` (MobileNetV3, about 100 ms a board on one vCPU), `standard` (ResNet-18), or `auto`; overrides `detector` in `captchakraken.config.json` | the config's `detector`, shipped as `auto`: `lite` on two usable CPUs or fewer (a container's CPU quota included), else one board is timed and `standard` runs when it fits in 200 ms |
128
- | `HF_TOKEN` | A Hugging Face token, sent only when downloading the detector weights from a private copy of their repo | unset: the download sends no credential |
129
139
  | `CAPTCHA_HUMANIZATION` | How gestures are performed: `mouse`, `mobile` or `none` | `mouse` |
130
140
 
131
141
  **How it moves** is a choice of input device, not a realism dial. `mobile`
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "captchakraken"
7
- version = "4.2.0"
8
- description = "Captcha-solving engine and CLI: a v2 pointer model and CNN element detector for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM."
7
+ version = "5.0.0"
8
+ description = "Captcha-solving engine and CLI: a v2 pointer model for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
11
11
  license = { file = "LICENSE" }
@@ -53,13 +53,8 @@ dependencies = [
53
53
  # 2.3.x rather than 2.2.6 because `cursory` requires `numpy~=2.3.3` and the
54
54
  # old pin was ours. Moved deliberately as part of the major bump.
55
55
  "numpy==2.3.5",
56
- # Runs the element detector (find_grid, find_checkbox) on the CPU. Its
57
- # wheels cover CPython 3.11-3.14 on Linux x86_64/aarch64, Windows and Apple
58
- # silicon macOS; there is NO Intel-macOS wheel, so the client does not
59
- # install there. Weights are fetched at first use, not shipped (detector.py).
60
- "onnxruntime==1.31.1",
61
- # The slide and hold trackers' image arithmetic: smoothing, morphology,
62
- # labelling, distance transforms and FFT correlation. 1.17.1 is the newest
56
+ # The slide and hold trackers' and the tick-box finder's image arithmetic:
57
+ # smoothing, morphology, labelling, distance transforms and FFT correlation. 1.17.1 is the newest
63
58
  # release whose Requires-Python (>=3.11) covers the floor; 1.18 needs 3.12.
64
59
  "scipy==1.17.1",
65
60
  # Decodes the first frame of a video passed to `solve` (.mp4, .avi, .webm).
@@ -89,6 +84,8 @@ serve = [
89
84
  "huggingface_hub==1.30.0",
90
85
  ]
91
86
  dev = [
87
+ # The licensed-model fetch tests raise the Hub's own refusal types.
88
+ "huggingface_hub==1.30.0",
92
89
  "pytest==9.1.1",
93
90
  "pytest-cov==7.1.0",
94
91
  "mypy==2.3.1",
@@ -100,4 +100,4 @@ __all__ = [
100
100
  "PauseKind",
101
101
  ]
102
102
 
103
- __version__ = "4.2.0"
103
+ __version__ = "5.0.0"
@@ -14,22 +14,18 @@
14
14
  "submit, text box, refresh and slider controls are tried before the generic",
15
15
  "ones. It must name a `widget`, `challenge` or `checkbox`; `hosts` is optional.",
16
16
  "",
17
- "detector: the element detector that finds grids, tick boxes and pieces on the",
18
- "CPU before any model is asked. `standard` (ResNet-18, 124 MB), `lite`",
19
- "(MobileNetV3, 24 MB, ~6x faster on one CPU) or `auto`: lite on two usable",
20
- "CPUs or fewer, and above that standard only when a one-off timing predicts",
21
- "it inside 200 ms a board. Only the chosen model is downloaded.",
22
- "CAPTCHA_KRAKEN_DETECTOR_MODEL overrides this.",
23
- "",
24
17
  "vendors: one entry per vendor, in detection order. Order matters: the driver",
25
18
  "takes the first visible match in table order. `hosts` are URL substrings of",
26
19
  "the vendor's code on the wire; every other field is a list of CSS (or",
27
20
  "Playwright `xpath=`) selectors, except `response`, `checked`, `accepted` and",
28
21
  "`fresh` (one selector each), `banners` ([selector, verdict] pairs) and",
29
- "`hold_completes` (true or false). `note` is for people, not the solver.",
22
+ "`hold_completes` and `stills_only`",
23
+ "(true or false). `note` is for people, not the solver.",
30
24
  "",
31
25
  "generic: the fallbacks tried after every vendor's own. `submit_text` is the",
32
- "button text probed for a submit control, in order.",
26
+ "button text probed for a submit control, in order. `feedback` (CSS only) names the",
27
+ "verdict messages, such as a \"Please try again\" toast, that the photograph telling",
28
+ "one board from the next leaves out; every vendor's `banners` are left out too.",
33
29
  "",
34
30
  "Keys starting with `_` are comments. Field reference: `_fields`."
35
31
  ],
@@ -42,20 +38,24 @@
42
38
  "response": "On the host page: the field the vendor fills on success. Read first and unconditionally, because hCaptcha's overlay hides the anchor.",
43
39
  "checked": "Inside the checkbox frame: the box shows accepted. Demo pages do not always fill `response`.",
44
40
  "box": "Inside the checkbox frame: the box itself, clicked from the DOM. A vendor without one is found on a photograph. An in-page checkbox that names one is a button with no tick box to find, and is clicked where it is.",
45
- "accepted": "On the host page: the vendor painted its success state. Visibility is part of the test (see TRIBAL_KNOWLEDGE.md).",
41
+ "accepted": "On the host page, or inside the vendor's challenge frame: the vendor painted its success state. Visibility is part of the test (see TRIBAL_KNOWLEDGE.md).",
46
42
  "fresh": "Inside the challenge frame: a new round has painted, with text.",
47
43
  "images": "Inside the challenge frame: the pictures a board is made of; the driver waits for each to have painted.",
44
+ "tiles": "Inside the challenge frame: the tiles of the board's grid, in reading order. Where each one is placed is read from the DOM, to click it and to watch it reload.",
48
45
  "submit": "Inside the widget: the vendor's own submit control, tried after the generic text probes.",
49
46
  "banners": "Inside the challenge frame: verdict banners and what each means.",
50
47
  "blocked": "Inside the challenge frame: the vendor refusing to serve this client at all. Nothing after it can succeed.",
51
48
  "passive": "On the host page: the vendor's frames that are never interactive, so a page showing only these has no widget.",
52
49
  "text_input": "Inside the widget, and its enclosing fieldset/form: the answer box of a typed captcha.",
53
50
  "slider_handle": "Inside the widget: the knob a slide must start on; a drag from the piece moves nothing.",
51
+ "board": "Inside the widget's frame or a frame nested in it: the element that is the board itself, when the widget frame pads it. The shot is this element, so the model sees the crop it was trained on.",
52
+ "bar": "Beside the widget (a sibling of it, or of its parent): a strip the vendor draws outside the widget element that every board carries, such as Yidun's prompt and slider bar. The shot takes it in, so the model sees what it was trained on.",
54
53
  "piece": "Inside the widget: the piece, measured to steer the slide and dragged directly when there is no track.",
54
+ "band": "Inside the widget: picture strips a slide rolls by their background, such as DingXiang's restore bands. Which strip rolls, and how far per handle pixel, are dealt per board and cannot be seen in the picture (see TRIBAL_KNOWLEDGE.md), so each strip's background offset is read while the handle moves, and the slide stops when the strip that rolls has rolled as far as the answer's two points are apart.",
55
55
  "refresh": "Inside the widget: the control that deals a new puzzle, pressed when the model answers `refresh`.",
56
- "hold_completes": "A press-and-hold that completes on its own once full, and resets when let go before it has: the fill reaching the answer's `to` is not a release, and the hold lasts until the widget says it is done."
56
+ "hold_completes": "A press-and-hold that completes on its own once full, and resets when let go before it has: the fill reaching the answer's `to` is not a release, and the hold lasts until the widget says it is done.",
57
+ "stills_only": "Every board this vendor deals is a still: none has ever been seen to animate, live or in training. The driver asks such a board at once instead of first filming it for the animation floor (4s a board); a still answer that fails still earns the recording on the next round. Unset, a vendor is filmed before it is asked."
57
58
  },
58
- "detector": "auto",
59
59
  "custom": null,
60
60
  "vendors": {
61
61
  "recaptcha": {
@@ -78,6 +78,9 @@
78
78
  "#recaptcha-anchor"
79
79
  ],
80
80
  "fresh": ".rc-imageselect-instructions, #rc-imageselect",
81
+ "tiles": [
82
+ "td.rc-imageselect-tile"
83
+ ],
81
84
  "submit": [
82
85
  "#recaptcha-verify-button"
83
86
  ],
@@ -188,6 +191,7 @@
188
191
  },
189
192
  "tencent": {
190
193
  "note": "Both in-page and iframe shapes stay (Tencent moved in-host on 2026-08-11; see TRIBAL_KNOWLEDGE.md), and the iframe id is prefix-anchored: `[id*=tcaptcha]` also matched MTCaptcha's iframe and hid that `.mtcap` matched nothing.",
194
+ "stills_only": true,
191
195
  "hosts": [
192
196
  "captcha.gtimg.com",
193
197
  "captcha.qcloud.com"
@@ -215,6 +219,7 @@
215
219
  ]
216
220
  },
217
221
  "yidun": {
222
+ "stills_only": true,
218
223
  "hosts": [
219
224
  "dun.163.com",
220
225
  "cstaticdun.126.net",
@@ -228,6 +233,9 @@
228
233
  ".yidun_slider",
229
234
  ".yidun_jigsaw"
230
235
  ],
236
+ "bar": [
237
+ ".yidun_control"
238
+ ],
231
239
  "piece": [
232
240
  ".yidun_jigsaw"
233
241
  ],
@@ -236,6 +244,7 @@
236
244
  ]
237
245
  },
238
246
  "yandex": {
247
+ "stills_only": true,
239
248
  "hosts": [
240
249
  "smartcaptcha.yandexcloud.net"
241
250
  ],
@@ -251,6 +260,7 @@
251
260
  ]
252
261
  },
253
262
  "lemin": {
263
+ "stills_only": true,
254
264
  "hosts": [
255
265
  "leminnow.com"
256
266
  ],
@@ -268,6 +278,7 @@
268
278
  ]
269
279
  },
270
280
  "prosopo": {
281
+ "stills_only": true,
271
282
  "hosts": [
272
283
  "prosopo.io"
273
284
  ],
@@ -277,6 +288,7 @@
277
288
  ]
278
289
  },
279
290
  "mtcaptcha": {
291
+ "stills_only": true,
280
292
  "hosts": [
281
293
  "mtcaptcha.com"
282
294
  ],
@@ -295,6 +307,7 @@
295
307
  ]
296
308
  },
297
309
  "botdetect": {
310
+ "stills_only": true,
298
311
  "hosts": [],
299
312
  "widget": [
300
313
  ".BDC_CaptchaDiv"
@@ -305,6 +318,11 @@
305
318
  "input[id*=validateCaptcha]",
306
319
  ".BDC_CaptchaDiv input[type=text]"
307
320
  ],
321
+ "submit": [
322
+ "input#validateCaptchaButton",
323
+ "input[type=submit][id*=\"validateCaptcha\" i]",
324
+ "button[id*=\"validateCaptcha\" i]"
325
+ ],
308
326
  "refresh": [
309
327
  "a[id*=\"ReloadLink\"]",
310
328
  ".BDC_ReloadIcon"
@@ -312,6 +330,7 @@
312
330
  },
313
331
  "human": {
314
332
  "note": "The press-and-hold widget. Found by its host-page container whether the button is drawn inline or in the vendor's iframe inside it: the hold is performed on a photograph of the container, so it never needs the frame's DOM.",
333
+ "stills_only": true,
315
334
  "hosts": [],
316
335
  "widget": [
317
336
  "#px-captcha"
@@ -320,6 +339,7 @@
320
339
  },
321
340
  "awswaf": {
322
341
  "note": "The card is drawn in an open shadow root, which the locator engine pierces; its Confirm is found by the text probe.",
342
+ "stills_only": true,
323
343
  "hosts": [
324
344
  "awswaf.com"
325
345
  ],
@@ -329,6 +349,7 @@
329
349
  },
330
350
  "captchafox": {
331
351
  "note": "The puzzle opens in a modal over the \"I am human\" box, which stays on screen, so the modal is a challenge: a widget would be outranked by the box and the box clicked again.",
352
+ "stills_only": true,
332
353
  "hosts": [
333
354
  "captchafox.com"
334
355
  ],
@@ -345,6 +366,7 @@
345
366
  },
346
367
  "dingxiang": {
347
368
  "note": "Every mode opens the same popup card. The trigger bar under it has no box to tick and is not a widget.",
369
+ "stills_only": true,
348
370
  "hosts": [
349
371
  "cdn.dingxiang-inc.com/ctu-group/captcha",
350
372
  "cap.dingxiang-inc.com"
@@ -355,10 +377,15 @@
355
377
  "slider_handle": [
356
378
  ".dx_captcha_basic_slider",
357
379
  ".dx_captcha_rotate_slider"
380
+ ],
381
+ "band": [
382
+ ".dx_captcha_basic_pic .upper",
383
+ ".dx_captcha_basic_pic .lower"
358
384
  ]
359
385
  },
360
386
  "funcaptcha": {
361
387
  "note": "The host page carries the outer frame (iframe.arkoselabs.com/<key>/index.html) and the game is two frames inside it; the game frame's own path is listed so a page that frames the game directly is found too.",
388
+ "stills_only": true,
362
389
  "hosts": [
363
390
  "arkoselabs.com"
364
391
  ],
@@ -370,15 +397,20 @@
370
397
  },
371
398
  "proton": {
372
399
  "note": "Proton frames its own captcha at /core/v4/captcha, on account-api.proton.me or under the app's own /api/.",
400
+ "stills_only": true,
373
401
  "hosts": [
374
402
  "/core/v4/captcha"
375
403
  ],
376
404
  "widget": [
377
405
  "iframe[src*=\"/core/v4/captcha\"]"
406
+ ],
407
+ "board": [
408
+ ".protonCaptchaContainer"
378
409
  ]
379
410
  },
380
411
  "datadome": {
381
412
  "note": "The interstitial is one full-viewport iframe served from geo.captcha-delivery.com/captcha/, so it is the challenge itself, with no checkbox. Its visual mode is a slide-to-the-end bar; the handle is `.slider` inside `.sliderContainer`, and a pass reloads the host page. A refused session gets a 'You have been blocked' page in the same frame, under the same URL.",
413
+ "stills_only": true,
382
414
  "hosts": [
383
415
  "captcha-delivery.com"
384
416
  ],
@@ -393,6 +425,25 @@
393
425
  ],
394
426
  "refresh": [
395
427
  "#captcha__reload__button"
428
+ ],
429
+ "accepted": ".sliderContainer.slider-success .slider"
430
+ },
431
+ "cybersiara": {
432
+ "note": "SiaraShield draws its challenge inline on the host page: a modal (`#myModal .pluginPopups`) holding a looping GIF of four letters read out of noise, `#Input_Captcha` and a refresh. It checks the answer itself once the fourth letter is typed (measured live 2026-11-14: a wrong answer clears the box and deals a new GIF), so it has no submit control. The host's own `.CaptchaSubmit` opens the modal, so it is never pressed for an answer.",
433
+ "hosts": [
434
+ "mycybersiara.com"
435
+ ],
436
+ "widget": [
437
+ "#myModal .pluginPopups:has(#Img_Original)",
438
+ ".pluginPopups:has(img.cy-sa-si-main-img)"
439
+ ],
440
+ "text_input": [
441
+ "#Input_Captcha",
442
+ ".cy-sa-page-2 input.Uinput"
443
+ ],
444
+ "refresh": [
445
+ "#a_Refresh",
446
+ ".pluginPopups a.ref_icon"
396
447
  ]
397
448
  },
398
449
  "unknown": {
@@ -429,6 +480,11 @@
429
480
  "piece": [
430
481
  "[class*=\"puzzle\"][class*=\"piece\"]",
431
482
  "[class*=\"jigsaw\"]"
483
+ ],
484
+ "feedback": [
485
+ "[role=\"alert\"]",
486
+ "[class*=\"toast\" i]",
487
+ "[id*=\"toast\" i]"
432
488
  ]
433
489
  }
434
490
  }
@@ -1,4 +1,4 @@
1
- """The `captchakraken` CLI: one-shot solves, the detector tool calls, the CV worker, and server management.
1
+ """The `captchakraken` CLI: one-shot solves, the pixel tool calls, the CV worker, and server management.
2
2
 
3
3
  `captchakraken image.png [model] [api_provider] [api_key] [--puzzle-source ...]` solves one still.
4
4
  Exit codes: 1 failure, 2 unsupported puzzle, 3 the hosted API refused.
@@ -106,13 +106,6 @@ def fill_step(req: dict) -> dict:
106
106
  return {"error": str(e)}
107
107
 
108
108
 
109
- def _find_grid(args):
110
- from .tool_calls.find_grid import find_grid
111
-
112
- _need(args, 1, "find-grid image.png")
113
- return find_grid(_image(args[0]))
114
-
115
-
116
109
  def _find_checkbox(args):
117
110
  from .tool_calls.find_checkbox import find_checkbox
118
111
 
@@ -120,25 +113,6 @@ def _find_checkbox(args):
120
113
  return find_checkbox(_image(args[0]))
121
114
 
122
115
 
123
- def _detect_selected(args):
124
- from .tool_calls.find_grid import detect_selected_cells, find_grid
125
-
126
- _need(args, 1, "detect-selected image.png")
127
- boxes = find_grid(_image(args[0]))
128
- if not boxes:
129
- return {"error": "No grid detected"}
130
- selected, loading = detect_selected_cells(args[0], boxes)
131
- return {"selected": selected, "loading": loading}
132
-
133
-
134
- def _get_numbered_grid(args):
135
- from .tool_calls.find_grid import find_grid, get_numbered_grid_overlay
136
-
137
- _need(args, 1, "get-numbered-grid image.png")
138
- boxes = find_grid(_image(args[0]))
139
- return {"overlay_image": get_numbered_grid_overlay(args[0], boxes)} if boxes else {"error": "No grid detected"}
140
-
141
-
142
116
  def _check_movement(args):
143
117
  from .image_processor import ImageProcessor
144
118
 
@@ -152,17 +126,8 @@ def _check_movement(args):
152
126
  return {"has_movement": ImageProcessor.detect_movement(args[0], args[1], threshold)}
153
127
 
154
128
 
155
- def _grid_cell_states(args):
156
- from .tool_calls.find_grid import find_grid
157
-
158
- _need(args, 2, "grid-cell-states imgA.png imgB.png")
159
- a, b = _image(args[0]), _image(args[1])
160
- boxes = find_grid(b)
161
- return grid_cell_states(a, b, boxes) if boxes else {"grid": None}
162
-
163
-
164
129
  def _grid_cell_states_fixed(args):
165
- """Boxes supplied by the caller: a blank mid-refresh frame has no lattice to detect."""
130
+ """Boxes supplied by the caller, read from the vendor's DOM: the pixels alone do not say where the tiles are."""
166
131
  _need(args, 3, "grid-cell-states-fixed imgA.png imgB.png '<json grid_boxes>'")
167
132
  a, b = _image(args[0]), _image(args[1])
168
133
  try:
@@ -216,15 +181,9 @@ def _serve(args):
216
181
  """Persistent CV worker: one JSON request per stdin line, one JSON reply per stdout line."""
217
182
  from .image_processor import ImageProcessor
218
183
  from .tool_calls.find_checkbox import find_checkbox
219
- from .tool_calls.find_grid import find_grid
220
184
 
221
185
  def handle(req):
222
186
  cmd = req.get("cmd")
223
- if cmd == "find-grid":
224
- return find_grid(req["image"])
225
- if cmd == "grid-cell-states":
226
- boxes = find_grid(req["b"])
227
- return grid_cell_states(req["a"], req["b"], boxes) if boxes else {"grid": None}
228
187
  if cmd == "grid-cell-states-fixed":
229
188
  boxes = [tuple(int(v) for v in box) for box in req["grid_boxes"]]
230
189
  if not boxes:
@@ -423,12 +382,8 @@ def _fetch(args):
423
382
 
424
383
 
425
384
  COMMANDS: Dict[str, Callable[[List[str]], Any]] = {
426
- "find-grid": _find_grid,
427
385
  "find-checkbox": _find_checkbox,
428
- "detect-selected": _detect_selected,
429
- "get-numbered-grid": _get_numbered_grid,
430
386
  "check-movement": _check_movement,
431
- "grid-cell-states": _grid_cell_states,
432
387
  "grid-cell-states-fixed": _grid_cell_states_fixed,
433
388
  "match-region": _match_region,
434
389
  "board-painted": _board_painted,
@@ -246,10 +246,6 @@ def serve_model() -> str:
246
246
  return os.getenv("CAPTCHA_BASE_MODEL") or selfhost_active().get("model_path") or base_model()
247
247
 
248
248
 
249
- def pointer_detector() -> Optional[str]:
250
- return os.getenv("CAPTCHA_POINTER_DETECTOR") or selfhost_active().get("detector")
251
-
252
-
253
249
  def max_model_len() -> int:
254
250
  return int(os.getenv("VLLM_MAX_MODEL_LEN", "65536"))
255
251
 
@@ -23,6 +23,7 @@ class Vendor(StrEnum):
23
23
  FUNCAPTCHA = "funcaptcha"
24
24
  PROTON = "proton"
25
25
  DATADOME = "datadome"
26
+ CYBERSIARA = "cybersiara"
26
27
  UNKNOWN = "unknown"
27
28
 
28
29