aiverify-moonshot 0.4.7__tar.gz → 0.4.9__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.
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/sca-scan.yaml +3 -2
- aiverify_moonshot-0.4.9/.github/workflows/smoke-test-cli.yaml +136 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/LICENSE.md +1 -1
- aiverify_moonshot-0.4.7/aiverify_moonshot_main_Black_Duck_Notices_Report.txt → aiverify_moonshot-0.4.9/NOTICES.md +334 -1180
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/PKG-INFO +3 -3
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/README.md +2 -2
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/__main__.py +93 -49
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/api.py +12 -10
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/metrics.py +8 -2
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/cli_errors.py +14 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/common.py +14 -8
- aiverify_moonshot-0.4.9/moonshot/integrations/cli/common/dataset.py +357 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/attack_module.py +30 -1
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/app.py +1 -1
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/dataset.py +52 -18
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +2 -0
- aiverify_moonshot-0.4.9/moonshot/integrations/web_api/schemas/dataset_create_dto.py +28 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/recipe_response_model.py +1 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/cookbook_service.py +36 -9
- aiverify_moonshot-0.4.9/moonshot/integrations/web_api/services/dataset_service.py +70 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/recipe_service.py +33 -3
- aiverify_moonshot-0.4.9/moonshot/src/api/api_dataset.py +113 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/bookmark/bookmark.py +16 -9
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/datasets/dataset.py +37 -45
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/datasets/dataset_arguments.py +2 -1
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/messages_constants.py +1 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/attack/attack_module.py +40 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/storage/io_interface.py +18 -1
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/storage/storage.py +57 -1
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/pyproject.toml +2 -2
- aiverify_moonshot-0.4.7/NOTICES.md +0 -3340
- aiverify_moonshot-0.4.7/moonshot/integrations/cli/common/dataset.py +0 -119
- aiverify_moonshot-0.4.7/moonshot/integrations/web_api/schemas/dataset_create_dto.py +0 -18
- aiverify_moonshot-0.4.7/moonshot/integrations/web_api/services/dataset_service.py +0 -45
- aiverify_moonshot-0.4.7/moonshot/src/api/api_dataset.py +0 -81
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.coveragerc +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.flake8 +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/pull_request_template.md +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/create_backup.sh +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/install_ms_service.sh +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/moonshot_env +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/moonshot_test_env +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/moonshot_ui_env +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/run_smoke_test.sh +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/start_ms_service.sh +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/docs-update.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/gh-event-notification.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/integration-test.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/nightly-build.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/pre-build-checks.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/pypi-deployment.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/sast-codeql.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/smoke-test.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/test-pypi-deployment.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.gitignore +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.pre-commit-config.yaml +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/AUTHORS.md +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/utils → aiverify_moonshot-0.4.9/moonshot}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/storage → aiverify_moonshot-0.4.9/moonshot/integrations}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/runs → aiverify_moonshot-0.4.9/moonshot/integrations/cli}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/__main__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/active_session_cfg.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/runners → aiverify_moonshot-0.4.9/moonshot/integrations/cli/benchmark}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/result.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/run.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/runner.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/cli.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/results → aiverify_moonshot-0.4.9/moonshot/integrations/cli/common}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/connectors.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/display_helper.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/prompt_template.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/redteaming/session → aiverify_moonshot-0.4.9/moonshot/integrations/cli/initialisation}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/redteaming/context_strategy → aiverify_moonshot-0.4.9/moonshot/integrations/cli/redteam}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/redteam.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/session.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/utils/process_data.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/.env.dev +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/redteaming/attack → aiverify_moonshot-0.4.9/moonshot/integrations/web_api}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/__main__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/container.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/temp → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/log}/.gitkeep +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/logging_conf.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/redteaming → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/routes}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/benchmark_result.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/bookmark.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/context_strategy.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/metric.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/prompt_template.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/recipe.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/redteam.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/runner.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/recipes → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/schemas}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/bookmark_create_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/prompt_templates → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/services}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/base_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmark_test_manager.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/bookmark_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/context_strategy_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/metric_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/runner_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/session_service.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/utils/file_manager.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/utils/results_formatter.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/log → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/temp}/.gitkeep +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/types/types.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/metrics → aiverify_moonshot-0.4.9/moonshot/src}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/datasets → aiverify_moonshot-0.4.9/moonshot/src/api}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_bookmark.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_connector.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_connector_endpoint.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_context_strategy.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_cookbook.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_environment_variables.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_metrics.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_prompt_template.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_recipe.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_red_teaming.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_result.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_run.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_runner.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_session.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/bookmark/bookmark_arguments.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/cookbooks → aiverify_moonshot-0.4.9/moonshot/src/configs}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/configs/env_variables.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/connectors_endpoints → aiverify_moonshot-0.4.9/moonshot/src/connectors}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors/connector.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/connectors → aiverify_moonshot-0.4.9/moonshot/src/connectors_endpoints}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors_endpoints/connector_endpoint.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/configs → aiverify_moonshot-0.4.9/moonshot/src/cookbooks}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/cookbooks/cookbook.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/cookbooks/cookbook_arguments.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src/api → aiverify_moonshot-0.4.9/moonshot/src/datasets}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/src → aiverify_moonshot-0.4.9/moonshot/src/metrics}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/metrics/metric.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/metrics/metric_interface.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/services → aiverify_moonshot-0.4.9/moonshot/src/prompt_templates}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/prompt_templates/prompt_template.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/schemas → aiverify_moonshot-0.4.9/moonshot/src/recipes}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/recipes/recipe.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/recipes/recipe_arguments.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/routes → aiverify_moonshot-0.4.9/moonshot/src/redteaming}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/web_api → aiverify_moonshot-0.4.9/moonshot/src/redteaming/attack}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/attack/attack_module_arguments.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/cli/redteam → aiverify_moonshot-0.4.9/moonshot/src/redteaming/context_strategy}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/cli/initialisation → aiverify_moonshot-0.4.9/moonshot/src/redteaming/session}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/chat.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/session.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/cli/common → aiverify_moonshot-0.4.9/moonshot/src/results}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/results/result.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/results/result_arguments.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/cli/benchmark → aiverify_moonshot-0.4.9/moonshot/src/runners}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runners/runner.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runners/runner_arguments.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runners/runner_type.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations/cli → aiverify_moonshot-0.4.9/moonshot/src/runs}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run_arguments.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run_progress.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run_status.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot/integrations → aiverify_moonshot-0.4.9/moonshot/src/storage}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/storage/db_interface.py +0 -0
- {aiverify_moonshot-0.4.7/moonshot → aiverify_moonshot-0.4.9/moonshot/src/utils}/__init__.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/find_feature.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/import_modules.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/log.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/pagination.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/timeit.py +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/requirements.txt +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
- {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/third-party/text_unidecode-1.3-py2.py3-none-any.whl +0 -0
|
@@ -71,6 +71,7 @@ jobs:
|
|
|
71
71
|
source venv/bin/activate
|
|
72
72
|
pip install -r requirements.txt
|
|
73
73
|
bash <(curl -s -L https://detect.synopsys.com/detect9.sh) --blackduck.url=https://blackduck.aipo-imda.net/ --blackduck.api.token=${{ secrets.BLACKDUCK_TOKEN }} --detect.detector.search.depth=10 --detect.project.name=aiverify-moonshot --detect.project.version.name=$BRANCH --detect.source.path=. --detect.code.location.name="aiverify-moonshot_$BRANCH" --detect.excluded.directories=/tests --blackduck.trust.cert=true --detect.excluded.detector.types=POETRY --detect.notices.report=true --detect.notices.report.path=.
|
|
74
|
+
mv aiverify_moonshot_main_Black_Duck_Notices_Report.txt NOTICES.md
|
|
74
75
|
|
|
75
76
|
- name: Configure GIT (Workflow_Dispatch)
|
|
76
77
|
if: github.event_name == 'workflow_dispatch'
|
|
@@ -89,7 +90,7 @@ jobs:
|
|
|
89
90
|
if: github.event_name == 'workflow_dispatch'
|
|
90
91
|
run: |
|
|
91
92
|
git add .
|
|
92
|
-
git commit -m "Update
|
|
93
|
+
git commit -m "Update NOTICES.md"
|
|
93
94
|
git push -f -u origin HEAD
|
|
94
95
|
shell: bash
|
|
95
96
|
|
|
@@ -98,7 +99,7 @@ jobs:
|
|
|
98
99
|
env:
|
|
99
100
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
100
101
|
run: |
|
|
101
|
-
gh pr create --title "Update
|
|
102
|
+
gh pr create --title "Update NOTICES.md for Moonshot" --body "This PR updates Notice File for Moonshot" --base main --head notices
|
|
102
103
|
shell: bash
|
|
103
104
|
|
|
104
105
|
- name: Merge PR (Workflow_Dispatch)
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Cli Smoke Test
|
|
2
|
+
|
|
3
|
+
name: Moonshot CLI Smoke Test
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
# Runs on Pull Request Review
|
|
7
|
+
pull_request_review:
|
|
8
|
+
types: [submitted]
|
|
9
|
+
branches:
|
|
10
|
+
- 'dev_main'
|
|
11
|
+
|
|
12
|
+
# Run this workflow manually from Actions tab
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
inputs:
|
|
15
|
+
moonshot_branch:
|
|
16
|
+
description: 'Moonshot Branch / Tag Name'
|
|
17
|
+
required: true
|
|
18
|
+
default: 'dev_main'
|
|
19
|
+
type: string
|
|
20
|
+
moonshot_data_branch:
|
|
21
|
+
description: 'Moonshot Data Branch / Tag Name'
|
|
22
|
+
required: true
|
|
23
|
+
default: 'dev_main'
|
|
24
|
+
type: string
|
|
25
|
+
moonshot_ui_branch:
|
|
26
|
+
description: 'Moonshot UI Branch / Tag Name'
|
|
27
|
+
required: true
|
|
28
|
+
default: 'dev_main'
|
|
29
|
+
type: string
|
|
30
|
+
|
|
31
|
+
# Allow one concurrent deployment
|
|
32
|
+
concurrency:
|
|
33
|
+
group: ${{ github.repository }}-${{ github.workflow }}
|
|
34
|
+
cancel-in-progress: true
|
|
35
|
+
|
|
36
|
+
jobs:
|
|
37
|
+
smoke-test:
|
|
38
|
+
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
timeout-minutes: 20
|
|
41
|
+
|
|
42
|
+
steps:
|
|
43
|
+
|
|
44
|
+
- name: Checkout Moonshot (Pull Request Review)
|
|
45
|
+
if: github.event_name == 'pull_request_review'
|
|
46
|
+
uses: actions/checkout@v4
|
|
47
|
+
with:
|
|
48
|
+
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
49
|
+
ref: ${{ github.event.pull_request.head.ref }}
|
|
50
|
+
|
|
51
|
+
- name: Checkout Moonshot (Workflow Dispatch)
|
|
52
|
+
if: github.event_name == 'workflow_dispatch'
|
|
53
|
+
uses: actions/checkout@v4
|
|
54
|
+
with:
|
|
55
|
+
repository: aiverify-foundation/moonshot
|
|
56
|
+
ref: ${{ inputs.moonshot_branch }}
|
|
57
|
+
|
|
58
|
+
- name: Setup Python 3.11
|
|
59
|
+
uses: actions/setup-python@v4
|
|
60
|
+
with:
|
|
61
|
+
python-version: '3.11'
|
|
62
|
+
|
|
63
|
+
- name: Setup Moonshot
|
|
64
|
+
run: |
|
|
65
|
+
python -m venv venv
|
|
66
|
+
source venv/bin/activate
|
|
67
|
+
pip install -r requirements.txt
|
|
68
|
+
touch .env
|
|
69
|
+
echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
|
|
70
|
+
|
|
71
|
+
- name: Checkout Moonshot Data (Pull Request Review)
|
|
72
|
+
if: github.event_name == 'pull_request_review'
|
|
73
|
+
uses: actions/checkout@v4
|
|
74
|
+
with:
|
|
75
|
+
repository: aiverify-foundation/moonshot-data
|
|
76
|
+
ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
|
|
77
|
+
path: moonshot-data
|
|
78
|
+
|
|
79
|
+
- name: Checkout Moonshot Data (Workflow Dispatch)
|
|
80
|
+
if: github.event_name == 'workflow_dispatch'
|
|
81
|
+
uses: actions/checkout@v4
|
|
82
|
+
with:
|
|
83
|
+
repository: aiverify-foundation/moonshot-data
|
|
84
|
+
ref: ${{ inputs.moonshot_data_branch }}
|
|
85
|
+
path: moonshot-data
|
|
86
|
+
|
|
87
|
+
- name: Setup Moonshot Data
|
|
88
|
+
run: |
|
|
89
|
+
source venv/bin/activate
|
|
90
|
+
cd moonshot-data
|
|
91
|
+
pip install -r requirements.txt
|
|
92
|
+
|
|
93
|
+
- name: Checkout Moonshot UI (Pull Request Review)
|
|
94
|
+
if: github.event_name == 'pull_request_review'
|
|
95
|
+
uses: actions/checkout@v4
|
|
96
|
+
with:
|
|
97
|
+
repository: aiverify-foundation/moonshot-ui
|
|
98
|
+
ref: ${{ vars.MOONSHOT_UI_BRANCH }}
|
|
99
|
+
path: moonshot-ui
|
|
100
|
+
|
|
101
|
+
- name: Checkout Moonshot UI (Workflow Dispatch)
|
|
102
|
+
if: github.event_name == 'workflow_dispatch'
|
|
103
|
+
uses: actions/checkout@v4
|
|
104
|
+
with:
|
|
105
|
+
repository: aiverify-foundation/moonshot-ui
|
|
106
|
+
ref: ${{ inputs.moonshot_ui_branch }}
|
|
107
|
+
path: moonshot-ui
|
|
108
|
+
|
|
109
|
+
- name: Setup Moonshot UI
|
|
110
|
+
run: |
|
|
111
|
+
cd moonshot-ui
|
|
112
|
+
npm ci
|
|
113
|
+
npm run build
|
|
114
|
+
cd ../
|
|
115
|
+
|
|
116
|
+
- name: Checkout Smoke Test
|
|
117
|
+
uses: actions/checkout@v4
|
|
118
|
+
with:
|
|
119
|
+
repository: aiverify-foundation/moonshot-smoke-testing
|
|
120
|
+
path: moonshot-smoke-testing
|
|
121
|
+
|
|
122
|
+
- name: Run Smoke Test
|
|
123
|
+
env:
|
|
124
|
+
AZURE_OPENAI_URI: ${{ secrets.AZURE_OPENAI_URI }}
|
|
125
|
+
AZURE_OPENAI_TOKEN: ${{ secrets.AZURE_OPENAI_TOKEN }}
|
|
126
|
+
ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
|
|
127
|
+
MOONSHOT_URL: ${{ secrets.MOONSHOT_URL }}
|
|
128
|
+
MOONSHOT_PORT_NUMBER: ${{ secrets.MOONSHOT_PORT_NUMBER }}
|
|
129
|
+
CLI_DIR: ${{ secrets.CLI_DIR }}
|
|
130
|
+
run: |
|
|
131
|
+
source venv/bin/activate
|
|
132
|
+
cd moonshot-smoke-testing
|
|
133
|
+
cd tests
|
|
134
|
+
pip install python-dotenv
|
|
135
|
+
pip install pytest
|
|
136
|
+
pytest test_cli.py
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
APPENDIX: How to apply the Apache License to your work.
|
|
179
179
|
|
|
180
180
|
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
182
|
replaced with your own identifying information. (Don't include
|
|
183
183
|
the brackets!) The text should be enclosed in the appropriate
|
|
184
184
|
comment syntax for the file format. We also recommend that a
|