← Về thư mục
tests/test_task_modes.py
- test_the_vocabulary_is_exactly_three_modes_with_analysis_as_default · function · L29-L36 — def test_the_vocabulary_is_exactly_three_modes_with_analysis_as_default()
- test_an_explicit_selection_beats_every_detected_signal · function · L48-L51 — def test_an_explicit_selection_beats_every_detected_signal(explicit, expected)
- test_an_explicit_selection_can_force_the_default_back_on · function · L54-L60 — def test_an_explicit_selection_can_force_the_default_back_on()
- test_an_unknown_explicit_mode_is_loud_rather_than_silently_detected · function · L63-L69 — def test_an_unknown_explicit_mode_is_loud_rather_than_silently_detected()
- test_blank_explicit_values_mean_absent_not_invalid · function · L72-L74 — def test_blank_explicit_values_mean_absent_not_invalid()
- test_reusable_pipeline_phrasings · function · L92-L93 — def test_reusable_pipeline_phrasings(text)
- test_codebase_change_phrasings · function · L106-L107 — def test_codebase_change_phrasings(text)
- test_a_single_weak_signal_stays_on_the_default · function · L122-L126 — def test_a_single_weak_signal_stays_on_the_default(text)
- test_matching_is_word_bounded_rather_than_substring · function · L129-L139 — def test_matching_is_word_bounded_rather_than_substring()
- test_both_families_matching_resolves_to_the_stricter_codebase_mode · function · L142-L144 — def test_both_families_matching_resolves_to_the_stricter_codebase_mode()
- test_detection_is_case_insensitive · function · L147-L151 — def test_detection_is_case_insensitive()
- test_the_default_mode_injects_nothing · function · L159-L162 — def test_the_default_mode_injects_nothing()
- test_each_non_default_mode_has_a_registered_fragment · function · L166-L169 — def test_each_non_default_mode_has_a_registered_fragment(mode)
- test_the_fragment_states_the_source_deliverable_contract · function · L173-L186 — def test_the_fragment_states_the_source_deliverable_contract(mode)
- test_the_fragment_carries_its_own_working_directory_override · function · L190-L195 — def test_the_fragment_carries_its_own_working_directory_override(mode)
- test_the_fragment_forbids_gaming_the_structure_check · function · L199-L202 — def test_the_fragment_forbids_gaming_the_structure_check(mode)
- test_the_codebase_fragment_opens_with_read_only_inspection · function · L205-L208 — def test_the_codebase_fragment_opens_with_read_only_inspection()
- test_task_mode_prompt_accepts_the_string_spelling_too · function · L211-L215 — def test_task_mode_prompt_accepts_the_string_spelling_too()
- test_an_unknown_mode_name_is_an_error_not_an_empty_fragment · function · L218-L220 — def test_an_unknown_mode_name_is_an_error_not_an_empty_fragment()
- _Hub · class · L228-L241 — class _Hub
- init · method · L229-L230 — def init(self)
- emitter · method · L232-L237 — def emitter(self, root_frame_id)
- emit · function · L233-L235 — def emit(event)
- broadcast · method · L239-L241 — def broadcast(self, root_frame_id, event)
- _web_cfg · function · L244-L251 — def _web_cfg(tmp_path)
- _drive_web_turn · function · L254-L284 — def _drive_web_turn(monkeypatch, tmp_path, text, **kwargs)
- fake_chat · function · L268-L270 — def fake_chat(messages, cfg, on_delta=None, **kw)
- fake_ensure · function · L272-L278 — def fake_ensure(st)
- test_web_turn_appends_the_detected_fragment_to_the_user_message_only · function · L287-L306 — def test_web_turn_appends_the_detected_fragment_to_the_user_message_only( monkeypatch, tmp_path )
- test_web_turn_on_an_analysis_request_injects_nothing · function · L309-L315 — def test_web_turn_on_an_analysis_request_injects_nothing(monkeypatch, tmp_path)
- test_a_detection_false_positive_never_arms_the_web_completion_contract · function · L329-L333 — def test_a_detection_false_positive_never_arms_the_web_completion_contract( monkeypatch, tmp_path, text )
- test_web_body_task_mode_overrides_detection · function · L336-L343 — def test_web_body_task_mode_overrides_detection(monkeypatch, tmp_path)
- test_an_invalid_web_task_mode_is_a_400_not_a_500 · function · L346-L358 — def test_an_invalid_web_task_mode_is_a_400_not_a_500(tmp_path)
- test_task_mode_survives_the_queue_boundary · function · L361-L387 — def test_task_mode_survives_the_queue_boundary(tmp_path)
- fake_run · function · L368-L380 — def fake_run( root_frame_id, project_id, user_text, model=None, plan=False, annos=None, explore=False, frozen_binding=None, task_mode=None, )
- _cli_agent · function · L390-L418 — def _cli_agent(monkeypatch, tmp_path, seen, **kwargs)
- _Kernel · class · L394-L402 — class _Kernel
- init · method · L395-L396 — def init(self, a, *k)
- execute · method · L398-L399 — def execute(self, a, *k)
- shutdown · method · L401-L402 — def shutdown(self)
- fake_chat · function · L404-L406 — def fake_chat(messages, a, *k)
- test_the_cli_agent_augments_its_own_user_message · function · L421-L435 — def test_the_cli_agent_augments_its_own_user_message(monkeypatch, tmp_path)
- test_an_explicit_cli_mode_beats_the_agents_own_detection · function · L438-L446 — def test_an_explicit_cli_mode_beats_the_agents_own_detection(monkeypatch, tmp_path)
- test_the_cli_run_subcommand_exposes_the_flag · function · L449-L457 — def test_the_cli_run_subcommand_exposes_the_flag()
- test_the_cli_mode_choices_are_derived_from_the_enum · function · L460-L475 — def test_the_cli_mode_choices_are_derived_from_the_enum()
- test_a_detected_code_mode_guides_but_never_arms_the_completion_contract · function · L483-L503 — def test_a_detected_code_mode_guides_but_never_arms_the_completion_contract( monkeypatch, tmp_path )
- test_an_explicit_code_mode_arms_the_contract_on_both_doors · function · L506-L519 — def test_an_explicit_code_mode_arms_the_contract_on_both_doors(monkeypatch, tmp_path)
- test_the_detected_fragment_carries_an_advisory_note_and_the_explicit_one_does_not · function · L522-L540 — def test_the_detected_fragment_carries_an_advisory_note_and_the_explicit_one_does_not()
- _recording_cli_agent · function · L548-L582 — def _recording_cli_agent(monkeypatch, tmp_path, replies, kernel_results, **kwargs)
- _Kernel · class · L555-L563 — class _Kernel
- init · method · L556-L557 — def init(self, a, *k)
- execute · method · L559-L560 — def execute(self, a, *k)
- shutdown · method · L562-L563 — def shutdown(self)
- scripted_chat · function · L567-L571 — def scripted_chat(messages, cfg, **kw)
- test_an_explicit_code_mode_run_records_cells_under_the_agents_frame · function · L585-L615 — def test_an_explicit_code_mode_run_records_cells_under_the_agents_frame( monkeypatch, tmp_path )
- test_a_detected_mode_run_stays_unrecorded_like_every_cli_run_before_it · function · L618-L630 — def test_a_detected_mode_run_stays_unrecorded_like_every_cli_run_before_it( monkeypatch, tmp_path )
- test_print_only_recorded_cell_cannot_back_a_codebase_completion · function · L633-L682 — def test_print_only_recorded_cell_cannot_back_a_codebase_completion( monkeypatch, tmp_path )
- test_a_codebase_change_run_completes_end_to_end_with_a_real_kernel · function · L685-L762 — def test_a_codebase_change_run_completes_end_to_end_with_a_real_kernel( monkeypatch, tmp_path )
- scripted_chat · function · L737-L741 — def scripted_chat(messages, cfg, **kw)