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.
Files changed (210) hide show
  1. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/sca-scan.yaml +3 -2
  2. aiverify_moonshot-0.4.9/.github/workflows/smoke-test-cli.yaml +136 -0
  3. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/LICENSE.md +1 -1
  4. aiverify_moonshot-0.4.7/aiverify_moonshot_main_Black_Duck_Notices_Report.txt → aiverify_moonshot-0.4.9/NOTICES.md +334 -1180
  5. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/PKG-INFO +3 -3
  6. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/README.md +2 -2
  7. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/__main__.py +93 -49
  8. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/api.py +12 -10
  9. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/metrics.py +8 -2
  10. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/cli_errors.py +14 -0
  11. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/common.py +14 -8
  12. aiverify_moonshot-0.4.9/moonshot/integrations/cli/common/dataset.py +357 -0
  13. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/attack_module.py +30 -1
  14. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/app.py +1 -1
  15. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/dataset.py +52 -18
  16. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +2 -0
  17. aiverify_moonshot-0.4.9/moonshot/integrations/web_api/schemas/dataset_create_dto.py +28 -0
  18. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/recipe_response_model.py +1 -0
  19. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/cookbook_service.py +36 -9
  20. aiverify_moonshot-0.4.9/moonshot/integrations/web_api/services/dataset_service.py +70 -0
  21. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/recipe_service.py +33 -3
  22. aiverify_moonshot-0.4.9/moonshot/src/api/api_dataset.py +113 -0
  23. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/bookmark/bookmark.py +16 -9
  24. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/datasets/dataset.py +37 -45
  25. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/datasets/dataset_arguments.py +2 -1
  26. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/messages_constants.py +1 -0
  27. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/attack/attack_module.py +40 -0
  28. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/storage/io_interface.py +18 -1
  29. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/storage/storage.py +57 -1
  30. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/pyproject.toml +2 -2
  31. aiverify_moonshot-0.4.7/NOTICES.md +0 -3340
  32. aiverify_moonshot-0.4.7/moonshot/integrations/cli/common/dataset.py +0 -119
  33. aiverify_moonshot-0.4.7/moonshot/integrations/web_api/schemas/dataset_create_dto.py +0 -18
  34. aiverify_moonshot-0.4.7/moonshot/integrations/web_api/services/dataset_service.py +0 -45
  35. aiverify_moonshot-0.4.7/moonshot/src/api/api_dataset.py +0 -81
  36. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.coveragerc +0 -0
  37. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.flake8 +0 -0
  38. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/pull_request_template.md +0 -0
  39. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/create_backup.sh +0 -0
  40. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/install_ms_service.sh +0 -0
  41. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/moonshot_env +0 -0
  42. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/moonshot_test_env +0 -0
  43. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/moonshot_ui_env +0 -0
  44. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/run_smoke_test.sh +0 -0
  45. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/scripts/start_ms_service.sh +0 -0
  46. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/docs-update.yaml +0 -0
  47. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/gh-event-notification.yaml +0 -0
  48. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/integration-test.yaml +0 -0
  49. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/nightly-build.yaml +0 -0
  50. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/pre-build-checks.yaml +0 -0
  51. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/pypi-deployment.yaml +0 -0
  52. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/sast-codeql.yaml +0 -0
  53. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/smoke-test.yaml +0 -0
  54. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.github/workflows/test-pypi-deployment.yaml +0 -0
  55. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.gitignore +0 -0
  56. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/.pre-commit-config.yaml +0 -0
  57. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/AUTHORS.md +0 -0
  58. {aiverify_moonshot-0.4.7/moonshot/src/utils → aiverify_moonshot-0.4.9/moonshot}/__init__.py +0 -0
  59. {aiverify_moonshot-0.4.7/moonshot/src/storage → aiverify_moonshot-0.4.9/moonshot/integrations}/__init__.py +0 -0
  60. {aiverify_moonshot-0.4.7/moonshot/src/runs → aiverify_moonshot-0.4.9/moonshot/integrations/cli}/__init__.py +0 -0
  61. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/__main__.py +0 -0
  62. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/active_session_cfg.py +0 -0
  63. {aiverify_moonshot-0.4.7/moonshot/src/runners → aiverify_moonshot-0.4.9/moonshot/integrations/cli/benchmark}/__init__.py +0 -0
  64. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
  65. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
  66. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
  67. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
  68. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/result.py +0 -0
  69. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/run.py +0 -0
  70. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/benchmark/runner.py +0 -0
  71. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/cli.py +0 -0
  72. {aiverify_moonshot-0.4.7/moonshot/src/results → aiverify_moonshot-0.4.9/moonshot/integrations/cli/common}/__init__.py +0 -0
  73. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/connectors.py +0 -0
  74. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/display_helper.py +0 -0
  75. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/common/prompt_template.py +0 -0
  76. {aiverify_moonshot-0.4.7/moonshot/src/redteaming/session → aiverify_moonshot-0.4.9/moonshot/integrations/cli/initialisation}/__init__.py +0 -0
  77. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
  78. {aiverify_moonshot-0.4.7/moonshot/src/redteaming/context_strategy → aiverify_moonshot-0.4.9/moonshot/integrations/cli/redteam}/__init__.py +0 -0
  79. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
  80. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
  81. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/redteam.py +0 -0
  82. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/redteam/session.py +0 -0
  83. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/cli/utils/process_data.py +0 -0
  84. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/.env.dev +0 -0
  85. {aiverify_moonshot-0.4.7/moonshot/src/redteaming/attack → aiverify_moonshot-0.4.9/moonshot/integrations/web_api}/__init__.py +0 -0
  86. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/__main__.py +0 -0
  87. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/container.py +0 -0
  88. {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/temp → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/log}/.gitkeep +0 -0
  89. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/logging_conf.py +0 -0
  90. {aiverify_moonshot-0.4.7/moonshot/src/redteaming → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/routes}/__init__.py +0 -0
  91. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
  92. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
  93. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/benchmark_result.py +0 -0
  94. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/bookmark.py +0 -0
  95. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/context_strategy.py +0 -0
  96. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
  97. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
  98. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/metric.py +0 -0
  99. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/prompt_template.py +0 -0
  100. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/recipe.py +0 -0
  101. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/redteam.py +0 -0
  102. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/routes/runner.py +0 -0
  103. {aiverify_moonshot-0.4.7/moonshot/src/recipes → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/schemas}/__init__.py +0 -0
  104. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
  105. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/bookmark_create_dto.py +0 -0
  106. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +0 -0
  107. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
  108. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
  109. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
  110. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -0
  111. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
  112. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +0 -0
  113. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
  114. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
  115. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
  116. {aiverify_moonshot-0.4.7/moonshot/src/prompt_templates → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/services}/__init__.py +0 -0
  117. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
  118. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
  119. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
  120. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/base_service.py +0 -0
  121. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
  122. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmark_test_manager.py +0 -0
  123. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
  124. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
  125. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/bookmark_service.py +0 -0
  126. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/context_strategy_service.py +0 -0
  127. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
  128. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/metric_service.py +0 -0
  129. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
  130. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/runner_service.py +0 -0
  131. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/session_service.py +0 -0
  132. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -0
  133. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/utils/file_manager.py +0 -0
  134. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/services/utils/results_formatter.py +0 -0
  135. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +0 -0
  136. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +0 -0
  137. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
  138. {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/log → aiverify_moonshot-0.4.9/moonshot/integrations/web_api/temp}/.gitkeep +0 -0
  139. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/integrations/web_api/types/types.py +0 -0
  140. {aiverify_moonshot-0.4.7/moonshot/src/metrics → aiverify_moonshot-0.4.9/moonshot/src}/__init__.py +0 -0
  141. {aiverify_moonshot-0.4.7/moonshot/src/datasets → aiverify_moonshot-0.4.9/moonshot/src/api}/__init__.py +0 -0
  142. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_bookmark.py +0 -0
  143. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_connector.py +0 -0
  144. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_connector_endpoint.py +0 -0
  145. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_context_strategy.py +0 -0
  146. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_cookbook.py +0 -0
  147. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_environment_variables.py +0 -0
  148. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_metrics.py +0 -0
  149. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_prompt_template.py +0 -0
  150. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_recipe.py +0 -0
  151. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_red_teaming.py +0 -0
  152. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_result.py +0 -0
  153. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_run.py +0 -0
  154. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_runner.py +0 -0
  155. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/api/api_session.py +0 -0
  156. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/bookmark/bookmark_arguments.py +0 -0
  157. {aiverify_moonshot-0.4.7/moonshot/src/cookbooks → aiverify_moonshot-0.4.9/moonshot/src/configs}/__init__.py +0 -0
  158. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/configs/env_variables.py +0 -0
  159. {aiverify_moonshot-0.4.7/moonshot/src/connectors_endpoints → aiverify_moonshot-0.4.9/moonshot/src/connectors}/__init__.py +0 -0
  160. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors/connector.py +0 -0
  161. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
  162. {aiverify_moonshot-0.4.7/moonshot/src/connectors → aiverify_moonshot-0.4.9/moonshot/src/connectors_endpoints}/__init__.py +0 -0
  163. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors_endpoints/connector_endpoint.py +0 -0
  164. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
  165. {aiverify_moonshot-0.4.7/moonshot/src/configs → aiverify_moonshot-0.4.9/moonshot/src/cookbooks}/__init__.py +0 -0
  166. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/cookbooks/cookbook.py +0 -0
  167. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/cookbooks/cookbook_arguments.py +0 -0
  168. {aiverify_moonshot-0.4.7/moonshot/src/api → aiverify_moonshot-0.4.9/moonshot/src/datasets}/__init__.py +0 -0
  169. {aiverify_moonshot-0.4.7/moonshot/src → aiverify_moonshot-0.4.9/moonshot/src/metrics}/__init__.py +0 -0
  170. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/metrics/metric.py +0 -0
  171. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/metrics/metric_interface.py +0 -0
  172. {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/services → aiverify_moonshot-0.4.9/moonshot/src/prompt_templates}/__init__.py +0 -0
  173. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/prompt_templates/prompt_template.py +0 -0
  174. {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/schemas → aiverify_moonshot-0.4.9/moonshot/src/recipes}/__init__.py +0 -0
  175. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/recipes/recipe.py +0 -0
  176. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/recipes/recipe_arguments.py +0 -0
  177. {aiverify_moonshot-0.4.7/moonshot/integrations/web_api/routes → aiverify_moonshot-0.4.9/moonshot/src/redteaming}/__init__.py +0 -0
  178. {aiverify_moonshot-0.4.7/moonshot/integrations/web_api → aiverify_moonshot-0.4.9/moonshot/src/redteaming/attack}/__init__.py +0 -0
  179. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/attack/attack_module_arguments.py +0 -0
  180. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
  181. {aiverify_moonshot-0.4.7/moonshot/integrations/cli/redteam → aiverify_moonshot-0.4.9/moonshot/src/redteaming/context_strategy}/__init__.py +0 -0
  182. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
  183. {aiverify_moonshot-0.4.7/moonshot/integrations/cli/initialisation → aiverify_moonshot-0.4.9/moonshot/src/redteaming/session}/__init__.py +0 -0
  184. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/chat.py +0 -0
  185. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
  186. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
  187. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/redteaming/session/session.py +0 -0
  188. {aiverify_moonshot-0.4.7/moonshot/integrations/cli/common → aiverify_moonshot-0.4.9/moonshot/src/results}/__init__.py +0 -0
  189. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/results/result.py +0 -0
  190. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/results/result_arguments.py +0 -0
  191. {aiverify_moonshot-0.4.7/moonshot/integrations/cli/benchmark → aiverify_moonshot-0.4.9/moonshot/src/runners}/__init__.py +0 -0
  192. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runners/runner.py +0 -0
  193. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runners/runner_arguments.py +0 -0
  194. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runners/runner_type.py +0 -0
  195. {aiverify_moonshot-0.4.7/moonshot/integrations/cli → aiverify_moonshot-0.4.9/moonshot/src/runs}/__init__.py +0 -0
  196. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run.py +0 -0
  197. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run_arguments.py +0 -0
  198. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run_progress.py +0 -0
  199. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/runs/run_status.py +0 -0
  200. {aiverify_moonshot-0.4.7/moonshot/integrations → aiverify_moonshot-0.4.9/moonshot/src/storage}/__init__.py +0 -0
  201. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/storage/db_interface.py +0 -0
  202. {aiverify_moonshot-0.4.7/moonshot → aiverify_moonshot-0.4.9/moonshot/src/utils}/__init__.py +0 -0
  203. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/find_feature.py +0 -0
  204. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/import_modules.py +0 -0
  205. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/log.py +0 -0
  206. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/pagination.py +0 -0
  207. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/moonshot/src/utils/timeit.py +0 -0
  208. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/requirements.txt +0 -0
  209. {aiverify_moonshot-0.4.7 → aiverify_moonshot-0.4.9}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
  210. {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 Notices"
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 License for Moonshot" --body "This PR updates adds License File for Moonshot" --base main --head notices
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