dreadnode 2.0.1__tar.gz → 2.0.2__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.
- dreadnode-2.0.2/LICENSE +203 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/PKG-INFO +26 -85
- {dreadnode-2.0.1 → dreadnode-2.0.2}/README.md +6 -45
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/__init__.py +39 -13
- dreadnode-2.0.2/dreadnode/__main__.py +13 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/__init__.py +19 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/agent.py +203 -88
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/events.py +40 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/hooks.py +95 -30
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/mcp/__init__.py +13 -17
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/mcp/auth.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/mcp/client.py +74 -16
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/mcp/config.py +8 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/reactions.py +12 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/skills.py +72 -64
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/stopping.py +6 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/subagent.py +8 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/tools.py +27 -30
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/trajectory.py +5 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/engine.py +2 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/types.py +2 -5
- dreadnode-2.0.2/dreadnode/airt/assessment.py +486 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/autodan_turbo.py +5 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/beast.py +9 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/crescendo.py +15 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/deep_inception.py +6 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/drattack.py +8 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/events.py +17 -20
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/goat.py +17 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/gptfuzzer.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/multimodal.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/pair.py +14 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/prompt.py +99 -34
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/rainbow.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/renellm.py +7 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/reporting/llm_summary.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/tap.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/api/client.py +845 -69
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/api/models.py +411 -9
- dreadnode-2.0.2/dreadnode/app/cli/__init__.py +5 -0
- dreadnode-2.0.2/dreadnode/app/cli/airt.py +358 -0
- dreadnode-2.0.2/dreadnode/app/cli/capability.py +252 -0
- dreadnode-2.0.2/dreadnode/app/cli/dataset.py +101 -0
- dreadnode-2.0.2/dreadnode/app/cli/evaluation.py +185 -0
- dreadnode-2.0.2/dreadnode/app/cli/main.py +337 -0
- dreadnode-2.0.2/dreadnode/app/cli/model.py +101 -0
- dreadnode-2.0.2/dreadnode/app/cli/optimize.py +382 -0
- dreadnode-2.0.2/dreadnode/app/cli/runtime.py +52 -0
- dreadnode-2.0.2/dreadnode/app/cli/shared.py +704 -0
- dreadnode-2.0.2/dreadnode/app/cli/task.py +139 -0
- dreadnode-2.0.2/dreadnode/app/cli/train.py +453 -0
- dreadnode-2.0.2/dreadnode/app/cli/worlds.py +579 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/main.py +609 -106
- dreadnode-2.0.2/dreadnode/app/print_mode.py +212 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/app.py +1223 -215
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/default-agent/tools/coding.py +23 -24
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/default-agent/tools/subagent.py +3 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/session.py +36 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/app.py +904 -200
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/client.py +102 -21
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/commands.py +33 -32
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/dreadnode.tcss +47 -37
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/event_contract.py +16 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/model_variants.py +4 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/__init__.py +3 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/auth.py +8 -7
- dreadnode-2.0.2/dreadnode/app/tui/screens/base.py +97 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/capabilities.py +205 -118
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/console.py +10 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/environments.py +13 -10
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/evaluations.py +36 -30
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/hub.py +16 -11
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/model_picker.py +50 -20
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/runtimes.py +43 -36
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/sandboxes.py +19 -33
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/secrets.py +9 -5
- dreadnode-2.0.2/dreadnode/app/tui/screens/sessions.py +307 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/screens/traces.py +40 -22
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/theme.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/turn_reducer.py +3 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/__init__.py +17 -15
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/agent_dialog.py +3 -18
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/agent_suggester.py +5 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/composer.py +22 -7
- dreadnode-2.0.2/dreadnode/app/tui/widgets/context_bar.py +175 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/conversation.py +21 -11
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/flash.py +3 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/help_panel.py +16 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/mcp_dialog.py +3 -20
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/mention_overlay.py +6 -17
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/message_queue.py +1 -1
- dreadnode-2.0.2/dreadnode/app/tui/widgets/overlay_mixin.py +37 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/permission_prompt.py +5 -2
- dreadnode-2.0.2/dreadnode/app/tui/widgets/prompt_info.py +57 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/session_sidebar.py +6 -3
- dreadnode-2.0.2/dreadnode/app/tui/widgets/skills_dialog.py +84 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/slash_overlay.py +15 -20
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/status_bar.py +4 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/throbber.py +11 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/tool.py +5 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/tools_dialog.py +2 -19
- dreadnode-2.0.2/dreadnode/capabilities/__init__.py +49 -0
- dreadnode-2.0.2/dreadnode/capabilities/capability.py +383 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/capabilities/loader.py +391 -296
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/capabilities/sync.py +38 -16
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/capabilities/tool_rules.py +6 -2
- dreadnode-2.0.2/dreadnode/capabilities/types.py +116 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/conditions.py +34 -34
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/exceptions.py +14 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/execution.py +15 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/hook.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/judge.py +1 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/load.py +21 -29
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/log.py +137 -36
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/meta/config.py +12 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/meta/context.py +19 -16
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/meta/hydrate.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/meta/introspect.py +6 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/scorer.py +11 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/serialization.py +23 -12
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/stopping.py +4 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/task.py +10 -14
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/transforms.py +46 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/audio.py +0 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/common.py +4 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/image.py +5 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/video.py +10 -24
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/util.py +11 -8
- dreadnode-2.0.2/dreadnode/datasets/__init__.py +4 -0
- dreadnode-2.0.2/dreadnode/datasets/dataset.py +34 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/datasets/hf.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/datasets/local.py +169 -20
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/__init__.py +10 -6
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/console.py +10 -10
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/evaluation.py +42 -28
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/events.py +3 -2
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/format.py +3 -3
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/result.py +1 -1
- {dreadnode-2.0.1/dreadnode/core → dreadnode-2.0.2/dreadnode}/evaluations/sample.py +8 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/caching.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/chat.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/data.py +4 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/generator/base.py +10 -11
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/generator/http.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/generator/litellm_.py +19 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/generator/transformers_.py +11 -11
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/generator/vllm_.py +7 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/message.py +77 -50
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/models.py +41 -30
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/tokenizer/base.py +0 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/tokenizer/transformers_.py +8 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/utils.py +4 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/models/__init__.py +1 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/models/hf.py +9 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/models/local.py +158 -21
- dreadnode-2.0.2/dreadnode/models/model.py +36 -0
- dreadnode-2.0.2/dreadnode/optimization/__init__.py +128 -0
- dreadnode-2.0.2/dreadnode/optimization/adapters/__init__.py +3 -0
- dreadnode-2.0.2/dreadnode/optimization/adapters/agent.py +186 -0
- dreadnode-2.0.2/dreadnode/optimization/api.py +176 -0
- dreadnode-2.0.2/dreadnode/optimization/backends/__init__.py +19 -0
- dreadnode-2.0.2/dreadnode/optimization/backends/base.py +118 -0
- dreadnode-2.0.2/dreadnode/optimization/backends/gepa.py +716 -0
- dreadnode-2.0.2/dreadnode/optimization/config.py +191 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/console.py +111 -3
- dreadnode-2.0.2/dreadnode/optimization/events.py +545 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/format.py +3 -3
- dreadnode-2.0.2/dreadnode/optimization/jobs.py +830 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/result.py +116 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/sampling.py +5 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/study.py +115 -45
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/trial.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/packaging/loader.py +6 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/packaging/manifest.py +19 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/packaging/oci.py +215 -53
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/packaging/package.py +89 -69
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/fuzzing.py +11 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/graph.py +6 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/grid.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/image.py +8 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/mapelites.py +10 -12
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/random.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/strategy.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/advanced_jailbreak_detection.py +0 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/classification.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/credentials.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/exfiltration_detection.py +0 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/format.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/image.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/json.py +4 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/judge.py +7 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/mcp_security.py +1 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/multi_agent_security.py +3 -10
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/pii.py +3 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/readability.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/reasoning_security.py +0 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/sentiment.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/similarity.py +7 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/storage/__init__.py +5 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/storage/providers.py +4 -4
- dreadnode-2.0.2/dreadnode/storage/session_store.py +499 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/storage/storage.py +85 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/_ripgrep.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/editing.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/glob.py +4 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/grep.py +1 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/interaction.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/ls.py +8 -10
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/task.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/web_search.py +5 -10
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/constants.py +1 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/convert.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/exporters.py +13 -12
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/span.py +50 -35
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/spans.py +20 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/trace_converter.py +4 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/__init__.py +6 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/base.py +1 -7
- dreadnode-2.0.2/dreadnode/training/etl/__init__.py +85 -0
- dreadnode-2.0.2/dreadnode/training/etl/_common.py +73 -0
- dreadnode-2.0.2/dreadnode/training/etl/rl.py +118 -0
- dreadnode-2.0.2/dreadnode/training/etl/sft.py +102 -0
- dreadnode-2.0.2/dreadnode/training/etl/worlds.py +1178 -0
- dreadnode-2.0.2/dreadnode/training/jobs.py +1395 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/async_trainer.py +8 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/coordinator.py +6 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/distributed.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/dpo.py +5 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/fsdp2_learner.py +22 -24
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/learner.py +6 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/multi_turn.py +52 -37
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/ppo.py +6 -9
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/reward_model.py +11 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/sft.py +6 -12
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/trainer.py +20 -22
- dreadnode-2.0.2/dreadnode/training/recipes.py +201 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rewards/scorer_bridge.py +0 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rewards/types.py +1 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rollouts/__init__.py +42 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rollouts/orchestrator.py +13 -14
- dreadnode-2.0.2/dreadnode/training/rollouts/worlds.py +920 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/tinker/__init__.py +23 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/tinker/config.py +5 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/tinker/data.py +103 -0
- dreadnode-2.0.2/dreadnode/training/tinker/renderer.py +533 -0
- dreadnode-2.0.2/dreadnode/training/tinker/rl.py +386 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/tinker/trainer.py +29 -11
- dreadnode-2.0.2/dreadnode/training/utils.py +997 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/__init__.py +18 -43
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/advanced_jailbreak.py +18 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/adversarial_suffix.py +3 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/agentic_workflow.py +10 -13
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/audio.py +28 -28
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/browser_agent_attacks.py +2 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/cipher.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/constitutional.py +7 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/documentation_poison.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/encoding.py +15 -15
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/exfiltration.py +3 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/guardrail_bypass.py +9 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/image.py +20 -20
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/json_tools.py +6 -6
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/language.py +3 -4
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/mcp_attacks.py +39 -45
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/multi_agent_attacks.py +21 -40
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/persuasion.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/perturbation.py +16 -16
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/pii_extraction.py +4 -5
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/pythonic_tools.py +7 -10
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/rag_poisoning.py +3 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/reasoning_attacks.py +6 -8
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/refine.py +48 -21
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/stylistic.py +2 -2
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/substitution.py +1 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/swap.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/text.py +7 -7
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/xml_tools.py +16 -14
- dreadnode-2.0.2/dreadnode/version.py +6 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/pyproject.toml +128 -48
- dreadnode-2.0.1/dreadnode/__main__.py +0 -11
- dreadnode-2.0.1/dreadnode/airt/assessment.py +0 -641
- dreadnode-2.0.1/dreadnode/app/tui/screens/base.py +0 -47
- dreadnode-2.0.1/dreadnode/app/tui/widgets/context_bar.py +0 -94
- dreadnode-2.0.1/dreadnode/app/tui/widgets/nav_sidebar.py +0 -67
- dreadnode-2.0.1/dreadnode/capabilities/__init__.py +0 -89
- dreadnode-2.0.1/dreadnode/capabilities/capability.py +0 -298
- dreadnode-2.0.1/dreadnode/capabilities/types.py +0 -156
- dreadnode-2.0.1/dreadnode/capabilities/wrapper.py +0 -210
- dreadnode-2.0.1/dreadnode/core/generators/tokenizer/transformers_.py +0 -93
- dreadnode-2.0.1/dreadnode/datasets/__init__.py +0 -5
- dreadnode-2.0.1/dreadnode/datasets/dataset.py +0 -101
- dreadnode-2.0.1/dreadnode/environments/docker.py +0 -85
- dreadnode-2.0.1/dreadnode/environments/kali.py +0 -125
- dreadnode-2.0.1/dreadnode/environments/kernel.py +0 -102
- dreadnode-2.0.1/dreadnode/environments/kubernetes.py +0 -393
- dreadnode-2.0.1/dreadnode/environments/strikes.py +0 -281
- dreadnode-2.0.1/dreadnode/models/model.py +0 -170
- dreadnode-2.0.1/dreadnode/optimization/__init__.py +0 -66
- dreadnode-2.0.1/dreadnode/optimization/events.py +0 -273
- dreadnode-2.0.1/dreadnode/tracing/__init__.py +0 -0
- dreadnode-2.0.1/dreadnode/training/anyscale.py +0 -159
- dreadnode-2.0.1/dreadnode/training/azureml.py +0 -344
- dreadnode-2.0.1/dreadnode/training/ray/callbacks.py +0 -1024
- dreadnode-2.0.1/dreadnode/training/sagemaker/__init__.py +0 -238
- dreadnode-2.0.1/dreadnode/training/sagemaker/config.py +0 -414
- dreadnode-2.0.1/dreadnode/training/sagemaker/trainer.py +0 -854
- dreadnode-2.0.1/dreadnode/training/sagemaker.py +0 -258
- dreadnode-2.0.1/dreadnode/version.py +0 -3
- {dreadnode-2.0.1 → dreadnode-2.0.2}/.gitignore +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/exceptions.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/format.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/agents/mcp/server.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/aggregator.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/classifier.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/compliance.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/analytics/recommendations.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/compliance/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/compliance/atlas.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/compliance/nist.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/compliance/owasp.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/compliance/owasp_agentic.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/compliance/saif.py +0 -0
- {dreadnode-2.0.1/dreadnode → dreadnode-2.0.2/dreadnode/airt}/constants.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/assets/audio/adversarial_query.mp3 +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/assets/image/bomb.jpg +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/assets/image/meth.png +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/prompts/adversarial_benchmark_subset.csv +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/prompts/ai_safety.csv +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/data_exfiltration.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/goal_hijacking.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/memory_poisoning.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/privilege_escalation.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/rce.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/scope_creep.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/tool_chaining.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/tool_selection_safety.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/unbounded_agency.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/rubrics/web_chatbot_security.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/templates/crescendo/variant_1.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/templates/crescendo/variant_2.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/templates/crescendo/variant_3.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/templates/crescendo/variant_4.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/data/templates/crescendo/variant_5.yaml +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/image.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/reporting/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/reporting/json_report.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/airt/reporting/markdown.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/api/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/system-prompt.md +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/server/utils.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/header_bar.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/tool_progress.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/app/tui/widgets/welcome.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/discovery.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/environment.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/meta/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/metric.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/object.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/base.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/object_3d.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/table.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/core/types/text.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/exceptions.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/generator/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/parsing.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/generators/tokenizer/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/collectors.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/sampler.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/search.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/optimization/stopping.py +1 -1
- {dreadnode-2.0.1/dreadnode/environments → dreadnode-2.0.2/dreadnode/packaging}/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/py.typed +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/boundary.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/optuna.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/samplers/registry.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/__init__.py +20 -20
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/agent_security.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/agentic.py +1 -1
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/agentic_workflow.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/consistency.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/contains.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/cosine_sim.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/crucible.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/documentation_security.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/harm.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/ide_security.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/length.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/lexical.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/memorization.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/scorers/prompt_leak.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/apply_patch.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/execute.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/fetch.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/memory.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/read.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/think.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/todo.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tools/write.py +0 -0
- {dreadnode-2.0.1/dreadnode/packaging → dreadnode-2.0.2/dreadnode/tracing}/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/tracing/exporter.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/dpo.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/events.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/grpo.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ppo.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/prime.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/config.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/experience.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/inference.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/rollout_env.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/ray/rollout_worker.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rewards/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rewards/aggregator.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rewards/functions.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rewards/shaping.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rollouts/adapters.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/rollouts/types.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/serving/__init__.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/serving/vllm_client.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/sft.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/training/tinker_sft.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/agent_skill.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/document.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/flip_attack.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/ide_injection.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/injection.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/logic_bomb.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/response_steering.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/system_prompt_extraction.py +0 -0
- {dreadnode-2.0.1 → dreadnode-2.0.2}/dreadnode/transforms/video.py +0 -0
dreadnode-2.0.2/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
|
203
|
+
# TODO change me
|
|
@@ -1,91 +1,71 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dreadnode
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Dreadnode SDK
|
|
5
|
-
Project-URL: Homepage, https://
|
|
6
|
-
Project-URL: Repository, https://github.com/dreadnode/sdk
|
|
5
|
+
Project-URL: Homepage, https://dreadnode.io
|
|
7
6
|
Project-URL: Documentation, https://docs.dreadnode.io
|
|
8
7
|
Author-email: Dreadnode Team <support@dreadnode.io>
|
|
9
|
-
|
|
10
|
-
Requires-
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: <3.14,>=3.11
|
|
11
10
|
Requires-Dist: aiofiles<25.0.0,>=24.1.0
|
|
12
|
-
Requires-Dist:
|
|
11
|
+
Requires-Dist: art<7.0.0,>=6.5
|
|
13
12
|
Requires-Dist: coolname<3.0.0,>=2.2.0
|
|
14
13
|
Requires-Dist: cyclopts>=4.2.0
|
|
14
|
+
Requires-Dist: datasets>=4.5.0
|
|
15
15
|
Requires-Dist: fastapi>=0.115.0
|
|
16
16
|
Requires-Dist: fastmcp>=2.14.0
|
|
17
17
|
Requires-Dist: fsspec[s3]<=2025.10.0,>=2025.10.0
|
|
18
|
+
Requires-Dist: gepa>=0.1.1
|
|
18
19
|
Requires-Dist: httpx<1.0.0,>=0.28.0
|
|
19
20
|
Requires-Dist: jsonpath-ng>=1.7.0
|
|
20
21
|
Requires-Dist: jsonref>=1.1.0
|
|
21
22
|
Requires-Dist: litellm>=1.80.11
|
|
22
23
|
Requires-Dist: logfire<=3.20.0,>=3.5.3
|
|
23
24
|
Requires-Dist: loguru>=0.7.3
|
|
24
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: mcp<2.0.0,>=1.25.0
|
|
26
|
+
Requires-Dist: moviepy<3.0.0,>=2.1.2
|
|
27
|
+
Requires-Dist: numpy<=2.3.5,>=2.3.0
|
|
25
28
|
Requires-Dist: optuna<5.0.0,>=4.5.0
|
|
26
29
|
Requires-Dist: orjson>=3.11.5
|
|
27
30
|
Requires-Dist: pandas<3.0.0,>=2.2.3
|
|
31
|
+
Requires-Dist: pillow<12.0.0,>=11.2.1
|
|
32
|
+
Requires-Dist: prompt-toolkit<4.0.0,>=3.0.52
|
|
28
33
|
Requires-Dist: pyarrow>=4.0.0
|
|
29
|
-
Requires-Dist: pydantic-settings>=2.7.0
|
|
30
34
|
Requires-Dist: pydantic-xml>=2.14.0
|
|
31
35
|
Requires-Dist: pydantic<3.0.0,>=2.9.2
|
|
32
|
-
Requires-Dist: python-jsonpath>=2.0.1
|
|
33
|
-
Requires-Dist: python-ulid<4.0.0,>=3.0.0
|
|
34
36
|
Requires-Dist: pyyaml>=6.0.2
|
|
37
|
+
Requires-Dist: scipy<2.0.0,>=1.11.0
|
|
38
|
+
Requires-Dist: soundfile<1.0.0,>=0.13.1
|
|
35
39
|
Requires-Dist: textual>=8.0.2
|
|
36
|
-
Requires-Dist: tomlkit>=0.13.3
|
|
37
40
|
Requires-Dist: transformers>=4.57.1
|
|
38
|
-
Requires-Dist: universal-pathlib<0.4.0,>=0.3.3
|
|
39
|
-
Requires-Dist: uuid-utils>=0.12.0
|
|
40
41
|
Requires-Dist: uvicorn>=0.34.0
|
|
41
42
|
Requires-Dist: websockets>=14.0
|
|
42
43
|
Requires-Dist: xmltodict>=1.0.2
|
|
43
44
|
Provides-Extra: all
|
|
44
45
|
Requires-Dist: confusables<2.0.0,>=1.2.0; extra == 'all'
|
|
45
|
-
Requires-Dist: datasets<5.0.0,>=4.0.0; extra == 'all'
|
|
46
|
-
Requires-Dist: moviepy<3.0.0,>=2.1.2; extra == 'all'
|
|
47
46
|
Requires-Dist: nltk<4.0.0,>=3.9.1; extra == 'all'
|
|
48
|
-
Requires-Dist: pillow<12.0.0,>=11.2.1; extra == 'all'
|
|
49
47
|
Requires-Dist: presidio-analyzer<3.0.0,>=2.2.359; extra == 'all'
|
|
50
|
-
Requires-Dist:
|
|
48
|
+
Requires-Dist: python-jsonpath>=2.0.1; extra == 'all'
|
|
51
49
|
Requires-Dist: rapidfuzz>=3.14.1; extra == 'all'
|
|
50
|
+
Requires-Dist: ray[default,serve]<3.0.0,>=2.10.0; extra == 'all'
|
|
52
51
|
Requires-Dist: scikit-learn<2.0.0,>=1.7.1; extra == 'all'
|
|
53
|
-
Requires-Dist: scipy<2.0.0,>=1.11.0; extra == 'all'
|
|
54
52
|
Requires-Dist: sentence-transformers<6.0.0,>=5.1.0; extra == 'all'
|
|
55
|
-
Requires-Dist: soundfile<1.0.0,>=0.13.1; extra == 'all'
|
|
56
53
|
Requires-Dist: textblob<1.0.0,>=0.19.0; extra == 'all'
|
|
57
54
|
Requires-Dist: textstat<1.0.0,>=0.7.10; extra == 'all'
|
|
58
|
-
Requires-Dist:
|
|
59
|
-
Provides-Extra: multimodal
|
|
60
|
-
Requires-Dist: moviepy<3.0.0,>=2.1.2; extra == 'multimodal'
|
|
61
|
-
Requires-Dist: pillow<12.0.0,>=11.2.1; extra == 'multimodal'
|
|
62
|
-
Requires-Dist: scipy<2.0.0,>=1.11.0; extra == 'multimodal'
|
|
63
|
-
Requires-Dist: soundfile<1.0.0,>=0.13.1; extra == 'multimodal'
|
|
55
|
+
Requires-Dist: torch>=2.9.0; extra == 'all'
|
|
64
56
|
Provides-Extra: scoring
|
|
65
57
|
Requires-Dist: confusables<2.0.0,>=1.2.0; extra == 'scoring'
|
|
66
58
|
Requires-Dist: nltk<4.0.0,>=3.9.1; extra == 'scoring'
|
|
67
59
|
Requires-Dist: presidio-analyzer<3.0.0,>=2.2.359; extra == 'scoring'
|
|
60
|
+
Requires-Dist: python-jsonpath>=2.0.1; extra == 'scoring'
|
|
68
61
|
Requires-Dist: rapidfuzz>=3.14.1; extra == 'scoring'
|
|
69
62
|
Requires-Dist: scikit-learn<2.0.0,>=1.7.1; extra == 'scoring'
|
|
70
63
|
Requires-Dist: sentence-transformers<6.0.0,>=5.1.0; extra == 'scoring'
|
|
71
64
|
Requires-Dist: textblob<1.0.0,>=0.19.0; extra == 'scoring'
|
|
72
65
|
Requires-Dist: textstat<1.0.0,>=0.7.10; extra == 'scoring'
|
|
73
|
-
Provides-Extra: serve
|
|
74
|
-
Requires-Dist: ray[default,serve]<3.0.0,>=2.10.0; extra == 'serve'
|
|
75
|
-
Provides-Extra: torch
|
|
76
|
-
Requires-Dist: torch>=2.9.0; extra == 'torch'
|
|
77
66
|
Provides-Extra: training
|
|
78
|
-
Requires-Dist:
|
|
79
|
-
Requires-Dist:
|
|
80
|
-
Requires-Dist: transformers<5.0.0,>=4.41.0; extra == 'training'
|
|
81
|
-
Provides-Extra: training-rl
|
|
82
|
-
Requires-Dist: datasets<5.0.0,>=4.0.0; extra == 'training-rl'
|
|
83
|
-
Requires-Dist: ray[default]<3.0.0,>=2.10.0; extra == 'training-rl'
|
|
84
|
-
Requires-Dist: torch>=2.9.0; extra == 'training-rl'
|
|
85
|
-
Requires-Dist: transformers<5.0.0,>=4.41.0; extra == 'training-rl'
|
|
86
|
-
Requires-Dist: vllm<1.0.0,>=0.6.0; (python_version >= '3.12' and sys_platform == 'linux') and extra == 'training-rl'
|
|
87
|
-
Provides-Extra: transforms
|
|
88
|
-
Requires-Dist: art<7.0.0,>=6.5; extra == 'transforms'
|
|
67
|
+
Requires-Dist: ray[default,serve]<3.0.0,>=2.10.0; extra == 'training'
|
|
68
|
+
Requires-Dist: torch>=2.9.0; extra == 'training'
|
|
89
69
|
Description-Content-Type: text/markdown
|
|
90
70
|
|
|
91
71
|
<p align="center">
|
|
@@ -368,28 +348,6 @@ with dn.run(name="custom-analysis"):
|
|
|
368
348
|
await analyze("webapp")
|
|
369
349
|
```
|
|
370
350
|
|
|
371
|
-
## Deployment
|
|
372
|
-
|
|
373
|
-
Serve agents as HTTP endpoints:
|
|
374
|
-
|
|
375
|
-
```python
|
|
376
|
-
from dreadnode.core.integrations.serve import Serve, AuthMode
|
|
377
|
-
|
|
378
|
-
# Configure server
|
|
379
|
-
server = (
|
|
380
|
-
Serve()
|
|
381
|
-
.with_auth(AuthMode.API_KEY)
|
|
382
|
-
.add(security_analyst, path="/analyze")
|
|
383
|
-
.add(pentester, path="/pentest")
|
|
384
|
-
)
|
|
385
|
-
|
|
386
|
-
# Run server
|
|
387
|
-
server.run(host="0.0.0.0", port=8000)
|
|
388
|
-
|
|
389
|
-
# Or get FastAPI app for custom configuration
|
|
390
|
-
app = server.app()
|
|
391
|
-
```
|
|
392
|
-
|
|
393
351
|
## Installation
|
|
394
352
|
|
|
395
353
|
Install from PyPI:
|
|
@@ -401,10 +359,13 @@ pip install -U dreadnode
|
|
|
401
359
|
With optional features:
|
|
402
360
|
|
|
403
361
|
```bash
|
|
404
|
-
#
|
|
405
|
-
pip install -U
|
|
362
|
+
# Base install already includes TUI, models, datasets, and multimodal support
|
|
363
|
+
pip install -U dreadnode
|
|
364
|
+
|
|
365
|
+
# Optional scoring stack
|
|
366
|
+
pip install -U "dreadnode[scoring]"
|
|
406
367
|
|
|
407
|
-
#
|
|
368
|
+
# Optional training and serving stack
|
|
408
369
|
pip install -U "dreadnode[training]"
|
|
409
370
|
|
|
410
371
|
# All optional features
|
|
@@ -419,32 +380,12 @@ cd sdk
|
|
|
419
380
|
uv sync --all-extras
|
|
420
381
|
```
|
|
421
382
|
|
|
422
|
-
## Notebooks
|
|
423
|
-
|
|
424
|
-
Comprehensive Jupyter notebook tutorials are available in [`notebooks/`](./notebooks/):
|
|
425
|
-
|
|
426
|
-
| Category | Notebooks |
|
|
427
|
-
|----------|-----------|
|
|
428
|
-
| Getting Started | 01: SDK Basics, 02: Tasks & Runs |
|
|
429
|
-
| Agents | 03-07: Basics, Tools, Hooks, Scoring, Advanced |
|
|
430
|
-
| Evaluation | 08-11: Scorers, Evaluations |
|
|
431
|
-
| Data | 12-14: Datasets, Models, Data Types |
|
|
432
|
-
| Security (AIRT) | 15-17: Targets, Attacks, Transforms |
|
|
433
|
-
| Advanced | 18-24: Search, Generators, Data Designer, Deployment, Tracing, Packaging, Training |
|
|
434
|
-
| Developers | 25-27: Config System, Context Injection, Custom Components |
|
|
435
|
-
| Environments | 28: Docker, Jupyter Kernel, Kubernetes Sandbox |
|
|
436
|
-
| Studies | 29: Optimization Studies, Agent Tuning, Search Strategies |
|
|
437
|
-
|
|
438
383
|
## Documentation
|
|
439
384
|
|
|
440
385
|
- **[Installation Guide](https://docs.dreadnode.io/strikes/install)** - Setup options
|
|
441
386
|
- **[Introduction](https://docs.dreadnode.io/strikes/intro)** - Getting started guide
|
|
442
387
|
- **[API Reference](https://docs.dreadnode.io/strikes/api)** - Complete API documentation
|
|
443
388
|
|
|
444
|
-
## Examples
|
|
445
|
-
|
|
446
|
-
Check out **[dreadnode/example-agents](https://github.com/dreadnode/example-agents)** for real-world use cases.
|
|
447
|
-
|
|
448
389
|
## License
|
|
449
390
|
|
|
450
391
|
See [LICENSE](./LICENSE) for details.
|
|
@@ -278,28 +278,6 @@ with dn.run(name="custom-analysis"):
|
|
|
278
278
|
await analyze("webapp")
|
|
279
279
|
```
|
|
280
280
|
|
|
281
|
-
## Deployment
|
|
282
|
-
|
|
283
|
-
Serve agents as HTTP endpoints:
|
|
284
|
-
|
|
285
|
-
```python
|
|
286
|
-
from dreadnode.core.integrations.serve import Serve, AuthMode
|
|
287
|
-
|
|
288
|
-
# Configure server
|
|
289
|
-
server = (
|
|
290
|
-
Serve()
|
|
291
|
-
.with_auth(AuthMode.API_KEY)
|
|
292
|
-
.add(security_analyst, path="/analyze")
|
|
293
|
-
.add(pentester, path="/pentest")
|
|
294
|
-
)
|
|
295
|
-
|
|
296
|
-
# Run server
|
|
297
|
-
server.run(host="0.0.0.0", port=8000)
|
|
298
|
-
|
|
299
|
-
# Or get FastAPI app for custom configuration
|
|
300
|
-
app = server.app()
|
|
301
|
-
```
|
|
302
|
-
|
|
303
281
|
## Installation
|
|
304
282
|
|
|
305
283
|
Install from PyPI:
|
|
@@ -311,10 +289,13 @@ pip install -U dreadnode
|
|
|
311
289
|
With optional features:
|
|
312
290
|
|
|
313
291
|
```bash
|
|
314
|
-
#
|
|
315
|
-
pip install -U
|
|
292
|
+
# Base install already includes TUI, models, datasets, and multimodal support
|
|
293
|
+
pip install -U dreadnode
|
|
294
|
+
|
|
295
|
+
# Optional scoring stack
|
|
296
|
+
pip install -U "dreadnode[scoring]"
|
|
316
297
|
|
|
317
|
-
#
|
|
298
|
+
# Optional training and serving stack
|
|
318
299
|
pip install -U "dreadnode[training]"
|
|
319
300
|
|
|
320
301
|
# All optional features
|
|
@@ -329,32 +310,12 @@ cd sdk
|
|
|
329
310
|
uv sync --all-extras
|
|
330
311
|
```
|
|
331
312
|
|
|
332
|
-
## Notebooks
|
|
333
|
-
|
|
334
|
-
Comprehensive Jupyter notebook tutorials are available in [`notebooks/`](./notebooks/):
|
|
335
|
-
|
|
336
|
-
| Category | Notebooks |
|
|
337
|
-
|----------|-----------|
|
|
338
|
-
| Getting Started | 01: SDK Basics, 02: Tasks & Runs |
|
|
339
|
-
| Agents | 03-07: Basics, Tools, Hooks, Scoring, Advanced |
|
|
340
|
-
| Evaluation | 08-11: Scorers, Evaluations |
|
|
341
|
-
| Data | 12-14: Datasets, Models, Data Types |
|
|
342
|
-
| Security (AIRT) | 15-17: Targets, Attacks, Transforms |
|
|
343
|
-
| Advanced | 18-24: Search, Generators, Data Designer, Deployment, Tracing, Packaging, Training |
|
|
344
|
-
| Developers | 25-27: Config System, Context Injection, Custom Components |
|
|
345
|
-
| Environments | 28: Docker, Jupyter Kernel, Kubernetes Sandbox |
|
|
346
|
-
| Studies | 29: Optimization Studies, Agent Tuning, Search Strategies |
|
|
347
|
-
|
|
348
313
|
## Documentation
|
|
349
314
|
|
|
350
315
|
- **[Installation Guide](https://docs.dreadnode.io/strikes/install)** - Setup options
|
|
351
316
|
- **[Introduction](https://docs.dreadnode.io/strikes/intro)** - Getting started guide
|
|
352
317
|
- **[API Reference](https://docs.dreadnode.io/strikes/api)** - Complete API documentation
|
|
353
318
|
|
|
354
|
-
## Examples
|
|
355
|
-
|
|
356
|
-
Check out **[dreadnode/example-agents](https://github.com/dreadnode/example-agents)** for real-world use cases.
|
|
357
|
-
|
|
358
319
|
## License
|
|
359
320
|
|
|
360
321
|
See [LICENSE](./LICENSE) for details.
|
|
@@ -6,11 +6,11 @@ from loguru import logger
|
|
|
6
6
|
from dreadnode.version import VERSION
|
|
7
7
|
|
|
8
8
|
if t.TYPE_CHECKING:
|
|
9
|
-
from dreadnode.core import meta
|
|
10
|
-
from dreadnode.core import log as logging
|
|
11
9
|
from dreadnode.agents import Agent
|
|
12
10
|
from dreadnode.app.main import DEFAULT_INSTANCE, Dreadnode
|
|
13
|
-
from dreadnode.core
|
|
11
|
+
from dreadnode.core import log as logging
|
|
12
|
+
from dreadnode.core import meta
|
|
13
|
+
from dreadnode.core.log import configure_logging, configure_server_logging
|
|
14
14
|
from dreadnode.core.meta import (
|
|
15
15
|
AgentInput,
|
|
16
16
|
AgentOutput,
|
|
@@ -38,6 +38,16 @@ if t.TYPE_CHECKING:
|
|
|
38
38
|
from dreadnode.core.object import Object
|
|
39
39
|
from dreadnode.core.scorer import Scorer
|
|
40
40
|
from dreadnode.core.task import Task
|
|
41
|
+
from dreadnode.core.transforms import Transform
|
|
42
|
+
from dreadnode.core.types import Audio, Code, Image, Markdown, Object3D, Table, Text, Video
|
|
43
|
+
from dreadnode.datasets.dataset import Dataset
|
|
44
|
+
from dreadnode.evaluations import Evaluation
|
|
45
|
+
from dreadnode.optimization import (
|
|
46
|
+
DreadnodeAgentAdapter,
|
|
47
|
+
Optimization,
|
|
48
|
+
OptimizationConfig,
|
|
49
|
+
OptimizationResult,
|
|
50
|
+
)
|
|
41
51
|
from dreadnode.tracing import convert
|
|
42
52
|
from dreadnode.tracing.exporters import TraceBackend
|
|
43
53
|
from dreadnode.tracing.span import Span, TaskSpan
|
|
@@ -45,10 +55,6 @@ if t.TYPE_CHECKING:
|
|
|
45
55
|
study_span,
|
|
46
56
|
trial_span,
|
|
47
57
|
)
|
|
48
|
-
from dreadnode.core.transforms import Transform
|
|
49
|
-
from dreadnode.core.types import Audio, Code, Image, Markdown, Object3D, Table, Text, Video
|
|
50
|
-
from dreadnode.datasets.dataset import Dataset
|
|
51
|
-
from dreadnode.evaluations import Evaluation
|
|
52
58
|
|
|
53
59
|
|
|
54
60
|
def get_default_instance() -> "Dreadnode":
|
|
@@ -84,6 +90,7 @@ __all__ = [
|
|
|
84
90
|
"Dataset",
|
|
85
91
|
"DatasetField",
|
|
86
92
|
"Dreadnode",
|
|
93
|
+
"DreadnodeAgentAdapter",
|
|
87
94
|
"EnvVar",
|
|
88
95
|
"EvalInput",
|
|
89
96
|
"EvalOutput",
|
|
@@ -95,6 +102,9 @@ __all__ = [
|
|
|
95
102
|
"MetricSeries",
|
|
96
103
|
"Object",
|
|
97
104
|
"Object3D",
|
|
105
|
+
"Optimization",
|
|
106
|
+
"OptimizationConfig",
|
|
107
|
+
"OptimizationResult",
|
|
98
108
|
"ParentTask",
|
|
99
109
|
"Scorer",
|
|
100
110
|
"Span",
|
|
@@ -117,6 +127,7 @@ __all__ = [
|
|
|
117
127
|
"airt",
|
|
118
128
|
"configure",
|
|
119
129
|
"configure_logging",
|
|
130
|
+
"configure_server_logging",
|
|
120
131
|
"convert",
|
|
121
132
|
"evaluation",
|
|
122
133
|
"get_current_run",
|
|
@@ -139,6 +150,11 @@ __all__ = [
|
|
|
139
150
|
"log_samples",
|
|
140
151
|
"logging",
|
|
141
152
|
"meta",
|
|
153
|
+
"optimize_anything",
|
|
154
|
+
"push_capability",
|
|
155
|
+
"push_dataset",
|
|
156
|
+
"push_environment",
|
|
157
|
+
"push_model",
|
|
142
158
|
"push_update",
|
|
143
159
|
"run",
|
|
144
160
|
"scorer",
|
|
@@ -163,7 +179,7 @@ __lazy_submodules__: list[str] = ["scorers", "agents", "airt", "eval", "transfor
|
|
|
163
179
|
|
|
164
180
|
# Lazy module imports - these return the entire module
|
|
165
181
|
__lazy_modules__: dict[str, str] = {
|
|
166
|
-
"convert": "dreadnode.
|
|
182
|
+
"convert": "dreadnode.tracing.convert",
|
|
167
183
|
"logging": "dreadnode.core.log",
|
|
168
184
|
"meta": "dreadnode.core.meta",
|
|
169
185
|
}
|
|
@@ -187,11 +203,15 @@ __lazy_components__: dict[str, str] = {
|
|
|
187
203
|
"Metric": "dreadnode.core.metric",
|
|
188
204
|
"MetricSeries": "dreadnode.core.metric",
|
|
189
205
|
"Object": "dreadnode.core.object",
|
|
206
|
+
"DreadnodeAgentAdapter": "dreadnode.optimization",
|
|
207
|
+
"Optimization": "dreadnode.optimization",
|
|
208
|
+
"OptimizationConfig": "dreadnode.optimization",
|
|
209
|
+
"OptimizationResult": "dreadnode.optimization",
|
|
190
210
|
"Scorer": "dreadnode.core.scorer",
|
|
191
|
-
"Span": "dreadnode.
|
|
211
|
+
"Span": "dreadnode.tracing.span",
|
|
192
212
|
"Task": "dreadnode.core.task",
|
|
193
|
-
"TaskSpan": "dreadnode.
|
|
194
|
-
"TraceBackend": "dreadnode.
|
|
213
|
+
"TaskSpan": "dreadnode.tracing.span",
|
|
214
|
+
"TraceBackend": "dreadnode.tracing.exporters",
|
|
195
215
|
"Transform": "dreadnode.core.transforms",
|
|
196
216
|
# Meta/annotations
|
|
197
217
|
"AgentInput": "dreadnode.core.meta",
|
|
@@ -216,13 +236,14 @@ __lazy_components__: dict[str, str] = {
|
|
|
216
236
|
"TrialOutput": "dreadnode.core.meta",
|
|
217
237
|
"TrialScore": "dreadnode.core.meta",
|
|
218
238
|
# Span factories
|
|
219
|
-
"study_span": "dreadnode.
|
|
220
|
-
"trial_span": "dreadnode.
|
|
239
|
+
"study_span": "dreadnode.tracing.spans",
|
|
240
|
+
"trial_span": "dreadnode.tracing.spans",
|
|
221
241
|
# Tools
|
|
222
242
|
"tool": "dreadnode.core.tools",
|
|
223
243
|
"tool_method": "dreadnode.core.tools",
|
|
224
244
|
# Functions from modules
|
|
225
245
|
"configure_logging": "dreadnode.core.log",
|
|
246
|
+
"configure_server_logging": "dreadnode.core.log",
|
|
226
247
|
}
|
|
227
248
|
|
|
228
249
|
# Dreadnode instance method/property aliases - these use lazy getters
|
|
@@ -241,6 +262,7 @@ __instance_methods__: list[str] = [
|
|
|
241
262
|
"task_and_run",
|
|
242
263
|
"scorer",
|
|
243
264
|
"evaluation",
|
|
265
|
+
"optimize_anything",
|
|
244
266
|
"study",
|
|
245
267
|
"push_update",
|
|
246
268
|
"tag",
|
|
@@ -263,6 +285,10 @@ __instance_methods__: list[str] = [
|
|
|
263
285
|
"load_dataset",
|
|
264
286
|
"load_model",
|
|
265
287
|
"load_capability",
|
|
288
|
+
"push_capability",
|
|
289
|
+
"push_dataset",
|
|
290
|
+
"push_environment",
|
|
291
|
+
"push_model",
|
|
266
292
|
]
|
|
267
293
|
|
|
268
294
|
# Aliases with different names
|