← Về thư mục
- _Hub · class · L40-L45 — class _Hub
- emitter · method · L41-L42 — def emitter(self, root_frame_id)
- broadcast · method · L44-L45 — def broadcast(self, root_frame_id, event)
- session · function · L49-L60 — def session(tmp_path)
- _prompt_for · function · L63-L92 — def _prompt_for(runner, frame, **gate_kwargs) -> dict
- channel · function · L68-L77 — def channel(payload)
- _answer · function · L73-L75 — def _answer()
- test_the_declaration_reaches_the_approval_prompt · function · L100-L105 — def test_the_declaration_reaches_the_approval_prompt(session)
- test_an_ordinary_tool_is_not_marked · function · L108-L113 — def test_an_ordinary_tool_is_not_marked(session)
- test_the_flag_is_persisted_with_the_durable_request · function · L116-L128 — def test_the_flag_is_persisted_with_the_durable_request(session)
- test_a_real_dangerous_tool_call_arrives_marked · function · L131-L174 — def test_a_real_dangerous_tool_call_arrives_marked(session, tmp_path)
- channel · function · L149-L160 — def channel(payload)
- _answer · function · L154-L158 — def _answer(): # Deny: the tool's own behaviour is not what is under test, and a # denial exercises the same prompt without restoring anything.
- test_an_ordinary_tool_call_arrives_unmarked · function · L177-L212 — def test_an_ordinary_tool_call_arrives_unmarked(session, tmp_path)
- channel · function · L191-L200 — def channel(payload)
- _answer · function · L196-L198 — def _answer()
- test_every_dangerous_tool_still_asks · function · L215-L233 — def test_every_dangerous_tool_still_asks(session)
- _scope_for · function · L251-L265 — def _scope_for(payload: dict) -> dict
- test_a_dangerous_prompt_does_not_default_to_remembering · function · L268-L273 — def test_a_dangerous_prompt_does_not_default_to_remembering(session)
- test_an_ordinary_prompt_keeps_the_scope_it_had · function · L276-L280 — def test_an_ordinary_prompt_keeps_the_scope_it_had()
- test_a_payload_from_an_older_daemon_is_not_treated_as_dangerous · function · L283-L287 — def test_a_payload_from_an_older_daemon_is_not_treated_as_dangerous()
- test_the_card_shows_the_badge_and_uses_the_rule · function · L290-L298 — def test_the_card_shows_the_badge_and_uses_the_rule()
- test_the_rule_input_is_hidden_when_the_grant_is_once · function · L301-L308 — def test_the_rule_input_is_hidden_when_the_grant_is_once()
- test_both_languages_have_the_badge · function · L311-L312 — def test_both_languages_have_the_badge()