MCPcopy Create free account

hub / github.com/BitterSecurity/Decepticon / functions

Functions10,737 in github.com/BitterSecurity/Decepticon

Function_check
(url: str)
packages/decepticon/decepticon/sandbox_web/__main__.py:58
Function_clean_env
Isolate every test from credentials / scope leaking from the host.
packages/decepticon/tests/unit/research/test_osint.py:41
Function_clean_lg_modules
Snapshot and clear the LangGraph modules the routes import lazily. Each test that exercises a route installs its own fakes; this fixture just
packages/decepticon/tests/unit/server/test_plugins_api.py:53
Function_clean_state
()
packages/decepticon/tests/unit/research/test_state_backend.py:53
Function_clear_benchmark_env
Default each test to BENCHMARK_MODE unset; tests opt-in via monkeypatch.setenv.
packages/decepticon/tests/unit/middleware/test_engagement.py:64
Function_clear_shared_sandbox_cache
The shared cache survives across the process, so isolate tests.
packages/decepticon/tests/unit/backends/test_factory.py:14
Function_clear_skill_tool_cache
Keep the lru_cached resolver isolated between tests.
packages/decepticon/tests/unit/middleware/test_prompt_injection_shield.py:170
Function_cmd_fetch
(args: argparse.Namespace)
packages/decepticon/decepticon/sandbox_web/__main__.py:92
Function_cmd_search
(args: argparse.Namespace)
packages/decepticon/decepticon/sandbox_web/__main__.py:120
Function_coerce_options_list
Normalize common local-model shapes for ``options``.
packages/decepticon/decepticon/tools/interaction/ask_user.py:57
Function_coerce_paths
Convert a heterogeneous iterable into a tuple of ``Path``. Used by tests and integration code that builds a task spec from string-or-Path mix
packages/decepticon/decepticon/agents/task_spec.py:146
Method_convert_chunk_to_generation_chunk
Intercept streaming chunks to capture ``reasoning_content``. DeepSeek sends ``reasoning_content`` inside ``choices[0].delta`` during
packages/decepticon/decepticon/llm/factory.py:1298
Method_coverage
(self)
packages/decepticon/decepticon/tools/reporting/viewer.py:126
Method_create_chat_result
Override to capture ``reasoning_content`` from the response dict. ``_create_chat_result`` receives either the raw OpenAI ``ChatCompletion``
packages/decepticon/decepticon/llm/factory.py:1335
Method_create_tools
(self)
packages/decepticon/decepticon/middleware/filesystem.py:467
Function_crtsh_fetch
(url: str, timeout: float = _DEFAULT_TIMEOUT)
packages/decepticon/decepticon/passive_discovery.py:39
Function_cvss_to_security_severity
(score: float)
packages/decepticon/decepticon/tools/reporting/sarif_enhanced.py:99
Function_dba
(ev: dict[str, Any], c: CVEBenchChallenge)
benchmark/cve_bench/scorer.py:59
Function_dbm
(ev: dict[str, Any], _c: CVEBenchChallenge)
benchmark/cve_bench/scorer.py:55
Function_defang
(match: re.Match[str])
packages/decepticon/decepticon/middleware/_injection_detector.py:307
Function_default_agent
Dispatch one live challenge through the configured LangGraph agent.
benchmark/cve_bench/runner.py:33
Function_default_langgraph_url
Resolve LangGraph URL: explicit BENCHMARK_LANGGRAPH_URL > derive from LANGGRAPH_PORT > default.
benchmark/config.py:9
Function_default_litellm_url
Resolve LiteLLM URL: explicit BENCHMARK_LITELLM_URL > derive from LITELLM_PORT > default.
benchmark/config.py:18
Function_default_opener
(url_or_request: Any, timeout: float)
config/ollama_probe.py:129
Function_denied
(self: Path, data: bytes)
packages/decepticon/tests/unit/sandbox_kernel/test_daemon_fileio.py:53
Method_do_get
(u)
packages/decepticon/decepticon/sandbox_web/transport.py:179
Method_do_writes
(tx: Any)
packages/decepticon/decepticon/middleware/kg_internal/store.py:435
Function_dos
(ev: dict[str, Any], c: CVEBenchChallenge)
benchmark/cve_bench/scorer.py:36
Function_drop_www
(url: str)
packages/decepticon/decepticon/sandbox_web/url_transforms.py:59
Method_empty
()
packages/decepticon/tests/unit/server/test_plugins_api.py:288
Function_ensure_dotenv
``docker compose config`` needs a .env to satisfy env_file refs.
tests/test_compose_langgraph_command.py:23
Function_ensure_dotenv
``docker compose config`` needs a .env to satisfy env_file refs.
tests/test_compose_network_isolation.py:95
Function_envelope
(events: list[dict[str, Any]])
packages/decepticon/tests/unit/telemetry/test_telemetry_exporter.py:12
Method_environment_env
(self)
benchmark/terminal_bench/sandbox.py:58
Method_explode
(*_a: Any, **_k: Any)
packages/decepticon/tests/unit/research/test_osint.py:245
Function_exploding_judge
(_a: Node, _b: Node)
packages/decepticon/tests/unit/research/test_dedupe.py:104
Function_fail
(backend: object)
packages/decepticon/tests/unit/skillogy/test_seed.py:54
Method_fail
(_request: httpx.Request)
packages/decepticon/tests/unit/research/test_osint.py:321
Function_failing_fetch
(url: str)
packages/decepticon/tests/unit/test_passive_discovery.py:25
Function_fake
(*args: Any, **kwargs: Any)
packages/decepticon/tests/unit/research/test_osint.py:53
Function_fake
(*args: Any, **kwargs: Any)
packages/decepticon/tests/unit/ad/test_bh_tools.py:42
Method_fake_cache_status
(slug: str)
packages/decepticon/tests/unit/references/test_tools_wrappers.py:151
Function_fake_dispatch
(**kwargs: Any)
packages/decepticon/tests/unit/cli/test_scan_extra.py:270
Function_fake_embeddings
(monkeypatch: pytest.MonkeyPatch)
packages/decepticon/tests/unit/skillogy/test_embed_ingest.py:44
Method_fake_from_env
()
packages/decepticon/tests/unit/ad/test_adcs_post.py:679
Function_fake_materialize
(name, targets, out_of_scope=None, **_kw)
packages/decepticon/tests/unit/cli/test_scan_extra.py:287
Function_fake_tmux
(args: list[str], timeout: int = 10)
packages/decepticon/tests/unit/tools/bash/test_proxy_env.py:240
Function_family
(tls: str)
packages/decepticon/decepticon/sandbox_web/fetch_chain.py:212
Function_file
(ev: dict[str, Any], c: CVEBenchChallenge)
benchmark/cve_bench/scorer.py:42
Method_findings
(self)
packages/decepticon/decepticon/tools/reporting/viewer.py:108
Method_generate
Wrap _generate to preserve reasoning_content in the response.
packages/decepticon/decepticon/llm/factory.py:1280
Method_generate
( self, messages: list[BaseMessage], stop: list[str] | None = None, run_manage
packages/decepticon/tests/unit/search_v2/helpers.py:19
Function_get
(url: str, *, headers: dict[str, str], timeout: float)
packages/decepticon/tests/unit/middleware/test_budget_internals.py:337
Method_get_request_payload
( self, input_: Any, *, stop: list[str] | None = None, **kwargs: Any )
packages/decepticon/decepticon/llm/factory.py:1087
Method_get_request_payload
Inject reasoning_content into outbound assistant messages.
packages/decepticon/decepticon/llm/factory.py:1233
Method_get_request_payload
( self, input_: Any, *, stop: list[str] | None = None, **kwargs: Any,
packages/decepticon/decepticon/llm/factory.py:1389
Function_github
(url: str, timeout: int, scope_check=None)
packages/decepticon/decepticon/sandbox_web/phase0.py:386
Method_guard
(**kw: Any)
packages/decepticon/tests/unit/references/test_tools_wrappers.py:222
Function_h
(_r)
packages/decepticon/tests/unit/runtime/test_recording_internals.py:221
Function_handle_term
(_signum, _frame)
packages/decepticon/decepticon/skillogy/__main__.py:151
Function_handler
(request: Any)
packages/decepticon/tests/unit/middleware/test_summarization_fallback.py:79
Function_handler
(_r)
packages/decepticon/tests/unit/middleware/test_event_logging.py:440
Function_handler
Minimal handler stand-in for the agent runtime. ``ModelFallbackMiddleware`` invokes the handler with the current request and re-invokes it wi
packages/decepticon/tests/unit/llm/test_factory_fallback_execution.py:60
Method_hang
(*_args: object, **_kwargs: object)
packages/decepticon/tests/unit/runtime/test_shutdown.py:491
Method_host
(d: dict[str, object])
benchmark/providers/mhbench.py:777
Function_hosts_from_browser_action
(args: dict[str, Any])
packages/decepticon/decepticon/middleware/roe.py:80
Function_hosts_from_url_arg
(args: dict[str, Any])
packages/decepticon/decepticon/middleware/roe.py:76
Function_hosts_from_web_search
OSINT exemption: web_search hits an allowlisted provider, not a target. Returning no hosts means the per-target scope check is a no-op (the call
packages/decepticon/decepticon/middleware/roe.py:93
Method_http
(self)
packages/decepticon/decepticon/backends/openshell_sandbox.py:109
Method_http
(self)
packages/decepticon/decepticon/backends/factory.py:49
Function_ingest_in_background
Reconcile the bundled catalog off the main thread. On a cold or upgraded container the bundled ``skills.cypher`` is several MB and Neo4j MERG
packages/decepticon/decepticon/skillogy/__main__.py:89
Method_inject
(self, request: ModelRequest)
packages/decepticon/decepticon/middleware/workflow.py:183
Method_isolate_class_state
(self)
packages/decepticon/tests/unit/sandbox_kernel/test_tmux_lifecycle.py:157
Function_isolate_home
Redirect ``Path.home()`` to a per-test directory. Every test here builds a challenge with the same hardcoded id, and the harness derives its
packages/decepticon/tests/unit/benchmark/test_harness.py:23
Method_isolate_timeout_env
(self, monkeypatch: pytest.MonkeyPatch)
packages/decepticon/tests/unit/llm/test_factory.py:1898
Function_isolated_env
Each test starts with no proxy and a private, empty disk cache.
packages/decepticon/tests/unit/skillogy/test_embeddings.py:21
Method_key
(h: dict)
packages/decepticon/tests/unit/research/test_scanner_tools.py:146
Method_litellm_url
LiteLLM URL — taken from BenchmarkConfig.litellm_url (env-overridable).
benchmark/harness.py:147
Function_load
(result: str)
packages/decepticon/tests/unit/references/test_tools_wrappers.py:26
Function_load_codex_auth
Loader for FileBackedCache. Validates structure, returns None if missing. The cache layer translates a None return into a re-read on the next
config/codex_chatgpt_handler.py:86
Function_load_copilot_source
FileBackedCache loader for ``~/.config/copilot/tokens.json``. Normalizes whichever shape the on-disk file uses (oauth_token / refreshToken /
config/copilot_handler.py:91
Function_load_credentials_from_disk
FileBackedCache loader — probes the primary path first, then legacy. The cache is keyed on ``CREDENTIALS_PATH`` mtime+size. When that file is
config/claude_code_handler.py:94
Function_m
(_r)
packages/decepticon/tests/unit/runtime/test_recording_internals.py:300
Function_make_budget
(**_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:464
Function_make_engagement_context
(**_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:125
Function_make_event_log
(*, role: str = "", **_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:457
Function_make_hitl
Operator-approval gate — opt-in via ``DECEPTICON_HITL__ENABLED``. Returns None (slot skipped) unless the env flag is truthy, so default engag
packages/decepticon/decepticon/agents/middleware_slots.py:480
Function_make_kg
Conditional slot — returns None when the KGStore can't be built. Mirrors :func:`_make_model_fallback`: the agent factory keeps building, the
packages/decepticon/decepticon/agents/middleware_slots.py:192
Function_make_model_override
(*, role: str | None = None, **_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:243
Function_make_opplan
(*, backend: Any, **_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:188
Function_make_opscontrol_notification
ADR-0006 workload-state-transition delivery for the orchestrator. Returns a middleware that polls the opscontrol UDS once per turn and inject
packages/decepticon/decepticon/agents/middleware_slots.py:231
Function_make_patch_tool_calls
(**_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:453
Function_make_prompt_caching
(**_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:449
Function_make_prompt_injection_shield
(**_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:468
Function_make_proxy_key_override
(**_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:247
Function_make_roe_guardrail
Build the RoE guardrail middleware with a per-engagement sink. The sink path defaults to ``<workspace>/audit/roe-decisions.jsonl`` and is res
packages/decepticon/decepticon/agents/middleware_slots.py:129
Function_make_sandbox_notification
(*, sandbox: Any = None, **_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:222
Function_make_skills
(*, backend: Any, role: str, skill_sources: list[str] | None = None, **_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:160
Function_make_store
()
packages/decepticon/tests/unit/middleware/test_kg_summary_unit.py:117
Function_make_summarization
(*, backend: Any, llm: Any, **_: Any)
packages/decepticon/decepticon/agents/middleware_slots.py:445
← previousnext →4,401–4,500 of 10,737, ranked by callers