aiverify-moonshot 0.6.2__tar.gz → 0.6.4__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 (214) hide show
  1. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/integration-test.yaml +273 -114
  2. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/pypi-deployment.yaml +3 -3
  3. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/test-pypi-deployment.yaml +2 -2
  4. aiverify_moonshot-0.6.4/NOTICES.md +1187 -0
  5. aiverify_moonshot-0.6.4/PKG-INFO +241 -0
  6. aiverify_moonshot-0.6.4/README.md +195 -0
  7. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/__main__.py +1 -3
  8. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/redteam/session.py +8 -8
  9. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/app.py +1 -1
  10. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/benchmark_result.py +1 -0
  11. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/bookmark.py +5 -2
  12. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/context_strategy.py +3 -1
  13. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/prompt_template.py +1 -0
  14. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +4 -2
  15. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -1
  16. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +2 -1
  17. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/context_strategy_service.py +1 -4
  18. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/cookbook_service.py +0 -2
  19. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/session_service.py +5 -5
  20. aiverify_moonshot-0.6.4/moonshot/integrations/web_api/services/utils/exceptions_handler.py +78 -0
  21. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/utils/results_formatter.py +25 -16
  22. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/bookmark/bookmark.py +52 -29
  23. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/bookmark/bookmark_arguments.py +9 -5
  24. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors/connector.py +33 -25
  25. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors_endpoints/connector_endpoint.py +37 -14
  26. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/cookbooks/cookbook_arguments.py +1 -1
  27. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/attack/attack_module.py +9 -3
  28. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/pyproject.toml +21 -4
  29. aiverify_moonshot-0.6.4/requirements.txt +61 -0
  30. aiverify_moonshot-0.6.2/NOTICES.md +0 -2506
  31. aiverify_moonshot-0.6.2/PKG-INFO +0 -254
  32. aiverify_moonshot-0.6.2/README.md +0 -208
  33. aiverify_moonshot-0.6.2/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -41
  34. aiverify_moonshot-0.6.2/requirements.txt +0 -60
  35. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.coveragerc +0 -0
  36. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.flake8 +0 -0
  37. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/developing-workflows.md +0 -0
  38. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/pull_request_template.md +0 -0
  39. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/create_backup.sh +0 -0
  40. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/install_ms_service.sh +0 -0
  41. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/moonshot_env +0 -0
  42. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/moonshot_test_env +0 -0
  43. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/moonshot_ui_env +0 -0
  44. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/run_smoke_test.sh +0 -0
  45. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/scripts/start_ms_service.sh +0 -0
  46. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/docs-update.yaml +0 -0
  47. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/gh-event-notification.yaml +0 -0
  48. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/notices-file-gen.yaml +0 -0
  49. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/pre-build-checks.yaml +0 -0
  50. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/sast-codeql.yaml +0 -0
  51. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/sca-scan.yaml +0 -0
  52. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/sit-build.yaml +0 -0
  53. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/smoke-test-cli.yaml +0 -0
  54. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/smoke-test.yaml +0 -0
  55. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.github/workflows/uat-build.yaml +0 -0
  56. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.gitignore +0 -0
  57. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/.pre-commit-config.yaml +0 -0
  58. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/AUTHORS.md +0 -0
  59. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/LICENSE.md +0 -0
  60. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/__init__.py +0 -0
  61. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/__main__.py +0 -0
  62. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/api.py +0 -0
  63. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/__init__.py +0 -0
  64. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/__init__.py +0 -0
  65. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/active_session_cfg.py +0 -0
  66. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/__init__.py +0 -0
  67. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
  68. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
  69. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
  70. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/metrics.py +0 -0
  71. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
  72. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/result.py +0 -0
  73. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/run.py +0 -0
  74. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/benchmark/runner.py +0 -0
  75. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/cli.py +0 -0
  76. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/cli_errors.py +0 -0
  77. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/common/__init__.py +0 -0
  78. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/common/common.py +0 -0
  79. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/common/connectors.py +0 -0
  80. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/common/dataset.py +0 -0
  81. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/common/display_helper.py +0 -0
  82. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/common/prompt_template.py +0 -0
  83. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/initialisation/__init__.py +0 -0
  84. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
  85. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/redteam/__init__.py +0 -0
  86. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/redteam/attack_module.py +0 -0
  87. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
  88. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
  89. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/redteam/redteam.py +0 -0
  90. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/cli/utils/process_data.py +0 -0
  91. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/.env.dev +0 -0
  92. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/__init__.py +0 -0
  93. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/__main__.py +0 -0
  94. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/container.py +0 -0
  95. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/log/.gitkeep +0 -0
  96. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/logging_conf.py +0 -0
  97. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/__init__.py +0 -0
  98. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
  99. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
  100. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
  101. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/dataset.py +0 -0
  102. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
  103. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/metric.py +0 -0
  104. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/recipe.py +0 -0
  105. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/redteam.py +0 -0
  106. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/routes/runner.py +0 -0
  107. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/__init__.py +0 -0
  108. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
  109. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/bookmark_create_dto.py +0 -0
  110. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +0 -0
  111. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/dataset_create_dto.py +0 -0
  112. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
  113. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
  114. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
  115. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
  116. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/recipe_response_model.py +0 -0
  117. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
  118. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
  119. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
  120. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/__init__.py +0 -0
  121. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
  122. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
  123. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
  124. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/base_service.py +0 -0
  125. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
  126. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/benchmark_test_manager.py +0 -0
  127. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
  128. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
  129. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/bookmark_service.py +0 -0
  130. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/dataset_service.py +0 -0
  131. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
  132. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/metric_service.py +0 -0
  133. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
  134. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/recipe_service.py +0 -0
  135. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/runner_service.py +0 -0
  136. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/services/utils/file_manager.py +0 -0
  137. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +3 -3
  138. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +3 -3
  139. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
  140. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/temp/.gitkeep +0 -0
  141. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/integrations/web_api/types/types.py +0 -0
  142. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/__init__.py +0 -0
  143. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/__init__.py +0 -0
  144. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_bookmark.py +0 -0
  145. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_connector.py +0 -0
  146. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_connector_endpoint.py +0 -0
  147. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_context_strategy.py +0 -0
  148. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_cookbook.py +0 -0
  149. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_dataset.py +0 -0
  150. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_environment_variables.py +0 -0
  151. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_metrics.py +0 -0
  152. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_prompt_template.py +0 -0
  153. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_recipe.py +0 -0
  154. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_red_teaming.py +0 -0
  155. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_result.py +0 -0
  156. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_run.py +0 -0
  157. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_runner.py +0 -0
  158. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/api/api_session.py +0 -0
  159. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/configs/__init__.py +0 -0
  160. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/configs/env_variables.py +0 -0
  161. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors/__init__.py +0 -0
  162. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
  163. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors/connector_response.py +0 -0
  164. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors_endpoints/__init__.py +0 -0
  165. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
  166. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/cookbooks/__init__.py +0 -0
  167. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/cookbooks/cookbook.py +0 -0
  168. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/datasets/__init__.py +0 -0
  169. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/datasets/dataset.py +0 -0
  170. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/datasets/dataset_arguments.py +0 -0
  171. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/messages_constants.py +0 -0
  172. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/metrics/__init__.py +0 -0
  173. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/metrics/metric.py +0 -0
  174. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/metrics/metric_interface.py +0 -0
  175. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/prompt_templates/__init__.py +0 -0
  176. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/prompt_templates/prompt_template.py +0 -0
  177. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/recipes/__init__.py +0 -0
  178. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/recipes/recipe.py +0 -0
  179. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/recipes/recipe_arguments.py +0 -0
  180. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/__init__.py +0 -0
  181. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/attack/__init__.py +0 -0
  182. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/attack/attack_module_arguments.py +0 -0
  183. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
  184. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/context_strategy/__init__.py +0 -0
  185. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
  186. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/session/__init__.py +0 -0
  187. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/session/chat.py +0 -0
  188. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
  189. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
  190. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/redteaming/session/session.py +0 -0
  191. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/results/__init__.py +0 -0
  192. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/results/result.py +0 -0
  193. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/results/result_arguments.py +0 -0
  194. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runners/__init__.py +0 -0
  195. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runners/runner.py +0 -0
  196. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runners/runner_arguments.py +0 -0
  197. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runners/runner_type.py +0 -0
  198. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runs/__init__.py +0 -0
  199. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runs/run.py +0 -0
  200. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runs/run_arguments.py +0 -0
  201. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runs/run_progress.py +0 -0
  202. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/runs/run_status.py +0 -0
  203. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/storage/__init__.py +0 -0
  204. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/storage/db_interface.py +0 -0
  205. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/storage/io_interface.py +0 -0
  206. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/storage/storage.py +0 -0
  207. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/utils/__init__.py +0 -0
  208. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/utils/find_feature.py +0 -0
  209. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/utils/import_modules.py +0 -0
  210. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/utils/log.py +0 -0
  211. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/utils/pagination.py +0 -0
  212. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/moonshot/src/utils/timeit.py +0 -0
  213. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
  214. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.4}/third-party/text_unidecode-1.3-py2.py3-none-any.whl +0 -0
@@ -3,10 +3,6 @@
3
3
  name: Moonshot Integration Test
4
4
 
5
5
  on:
6
- # Runs on Pull Request Review
7
- pull_request_review:
8
- branches:
9
- - 'main'
10
6
 
11
7
  # Run this workflow manually from Actions tab
12
8
  workflow_dispatch:
@@ -40,13 +36,6 @@ jobs:
40
36
 
41
37
  steps:
42
38
 
43
- - name: Checkout Moonshot (Pull Request Review)
44
- if: github.event_name == 'pull_request_review'
45
- uses: actions/checkout@v4
46
- with:
47
- repository: ${{ github.event.pull_request.head.repo.full_name }}
48
- ref: ${{ github.event.pull_request.head.ref }}
49
-
50
39
  - name: Checkout Moonshot (Workflow Dispatch)
51
40
  if: github.event_name == 'workflow_dispatch'
52
41
  uses: actions/checkout@v4
@@ -67,14 +56,6 @@ jobs:
67
56
  touch .env
68
57
  echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
69
58
 
70
- - name: Checkout Moonshot Data (Pull Request Review)
71
- if: github.event_name == 'pull_request_review'
72
- uses: actions/checkout@v4
73
- with:
74
- repository: aiverify-foundation/moonshot-data
75
- ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
76
- path: moonshot-data
77
-
78
59
  - name: Checkout Moonshot Data (Workflow Dispatch)
79
60
  if: github.event_name == 'workflow_dispatch'
80
61
  uses: actions/checkout@v4
@@ -89,14 +70,6 @@ jobs:
89
70
  cd moonshot-data
90
71
  pip install -r requirements.txt
91
72
 
92
- - name: Checkout Moonshot UI (Pull Request Review)
93
- if: github.event_name == 'pull_request_review'
94
- uses: actions/checkout@v4
95
- with:
96
- repository: aiverify-foundation/moonshot-ui
97
- ref: ${{ vars.MOONSHOT_UI_BRANCH }}
98
- path: moonshot-ui
99
-
100
73
  - name: Checkout Moonshot UI (Workflow Dispatch)
101
74
  if: github.event_name == 'workflow_dispatch'
102
75
  uses: actions/checkout@v4
@@ -139,6 +112,7 @@ jobs:
139
112
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
140
113
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
141
114
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
115
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
142
116
  id: integrationuitest
143
117
  run: |
144
118
  source venv/bin/activate
@@ -148,7 +122,7 @@ jobs:
148
122
  npx playwright install-deps
149
123
  npm install dotenv --save
150
124
  # echo "Running UI Endpoint Test Cases"
151
- URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" DEBUG=pw:api npx playwright test tests/endpoint.spec.ts
125
+ URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/endpoint.spec.ts
152
126
 
153
127
  - name: Print Environment Variables
154
128
  run: env
@@ -187,13 +161,6 @@ jobs:
187
161
 
188
162
  steps:
189
163
 
190
- - name: Checkout Moonshot (Pull Request Review)
191
- if: github.event_name == 'pull_request_review'
192
- uses: actions/checkout@v4
193
- with:
194
- repository: ${{ github.event.pull_request.head.repo.full_name }}
195
- ref: ${{ github.event.pull_request.head.ref }}
196
-
197
164
  - name: Checkout Moonshot (Workflow Dispatch)
198
165
  if: github.event_name == 'workflow_dispatch'
199
166
  uses: actions/checkout@v4
@@ -214,14 +181,6 @@ jobs:
214
181
  touch .env
215
182
  echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
216
183
 
217
- - name: Checkout Moonshot Data (Pull Request Review)
218
- if: github.event_name == 'pull_request_review'
219
- uses: actions/checkout@v4
220
- with:
221
- repository: aiverify-foundation/moonshot-data
222
- ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
223
- path: moonshot-data
224
-
225
184
  - name: Checkout Moonshot Data (Workflow Dispatch)
226
185
  if: github.event_name == 'workflow_dispatch'
227
186
  uses: actions/checkout@v4
@@ -236,14 +195,6 @@ jobs:
236
195
  cd moonshot-data
237
196
  pip install -r requirements.txt
238
197
 
239
- - name: Checkout Moonshot UI (Pull Request Review)
240
- if: github.event_name == 'pull_request_review'
241
- uses: actions/checkout@v4
242
- with:
243
- repository: aiverify-foundation/moonshot-ui
244
- ref: ${{ vars.MOONSHOT_UI_BRANCH }}
245
- path: moonshot-ui
246
-
247
198
  - name: Checkout Moonshot UI (Workflow Dispatch)
248
199
  if: github.event_name == 'workflow_dispatch'
249
200
  uses: actions/checkout@v4
@@ -286,6 +237,7 @@ jobs:
286
237
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
287
238
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
288
239
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
240
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
289
241
  id: integrationuitest
290
242
  run: |
291
243
  source venv/bin/activate
@@ -295,7 +247,7 @@ jobs:
295
247
  npx playwright install-deps
296
248
  npm install dotenv --save
297
249
  # echo "Running Homepage Test Cases"
298
- URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" DEBUG=pw:api npx playwright test tests/homepage.spec.ts
250
+ URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/homepage.spec.ts
299
251
 
300
252
  - name: Print Environment Variables
301
253
  run: env
@@ -334,13 +286,6 @@ jobs:
334
286
 
335
287
  steps:
336
288
 
337
- - name: Checkout Moonshot (Pull Request Review)
338
- if: github.event_name == 'pull_request_review'
339
- uses: actions/checkout@v4
340
- with:
341
- repository: ${{ github.event.pull_request.head.repo.full_name }}
342
- ref: ${{ github.event.pull_request.head.ref }}
343
-
344
289
  - name: Checkout Moonshot (Workflow Dispatch)
345
290
  if: github.event_name == 'workflow_dispatch'
346
291
  uses: actions/checkout@v4
@@ -361,14 +306,6 @@ jobs:
361
306
  touch .env
362
307
  echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
363
308
 
364
- - name: Checkout Moonshot Data (Pull Request Review)
365
- if: github.event_name == 'pull_request_review'
366
- uses: actions/checkout@v4
367
- with:
368
- repository: aiverify-foundation/moonshot-data
369
- ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
370
- path: moonshot-data
371
-
372
309
  - name: Checkout Moonshot Data (Workflow Dispatch)
373
310
  if: github.event_name == 'workflow_dispatch'
374
311
  uses: actions/checkout@v4
@@ -383,14 +320,6 @@ jobs:
383
320
  cd moonshot-data
384
321
  pip install -r requirements.txt
385
322
 
386
- - name: Checkout Moonshot UI (Pull Request Review)
387
- if: github.event_name == 'pull_request_review'
388
- uses: actions/checkout@v4
389
- with:
390
- repository: aiverify-foundation/moonshot-ui
391
- ref: ${{ vars.MOONSHOT_UI_BRANCH }}
392
- path: moonshot-ui
393
-
394
323
  - name: Checkout Moonshot UI (Workflow Dispatch)
395
324
  if: github.event_name == 'workflow_dispatch'
396
325
  uses: actions/checkout@v4
@@ -407,6 +336,18 @@ jobs:
407
336
  python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
408
337
 
409
338
  - name: Setup Moonshot UI
339
+ env:
340
+ URI: ${{ secrets.URI }}
341
+ TOKEN: ${{ secrets.TOKEN }}
342
+ URI2: ${{ secrets.URI2 }}
343
+ TOKEN2: ${{ secrets.TOKEN2 }}
344
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
345
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
346
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
347
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
348
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
349
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
350
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
410
351
  run: |
411
352
  source venv/bin/activate
412
353
  cd moonshot-ui
@@ -433,6 +374,7 @@ jobs:
433
374
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
434
375
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
435
376
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
377
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
436
378
  id: integrationuitest
437
379
  run: |
438
380
  source venv/bin/activate
@@ -442,7 +384,7 @@ jobs:
442
384
  npx playwright install-deps
443
385
  npm install dotenv --save
444
386
  echo "Running Benchmarking UI Test Cases"
445
- URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" DEBUG=pw:api npx playwright test tests/benchmarking.spec.ts
387
+ URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/benchmarking.spec.ts
446
388
 
447
389
  - name: Print Environment Variables
448
390
  run: env
@@ -482,13 +424,6 @@ jobs:
482
424
 
483
425
  steps:
484
426
 
485
- - name: Checkout Moonshot (Pull Request Review)
486
- if: github.event_name == 'pull_request_review'
487
- uses: actions/checkout@v4
488
- with:
489
- repository: ${{ github.event.pull_request.head.repo.full_name }}
490
- ref: ${{ github.event.pull_request.head.ref }}
491
-
492
427
  - name: Checkout Moonshot (Workflow Dispatch)
493
428
  if: github.event_name == 'workflow_dispatch'
494
429
  uses: actions/checkout@v4
@@ -509,14 +444,6 @@ jobs:
509
444
  touch .env
510
445
  echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
511
446
 
512
- - name: Checkout Moonshot Data (Pull Request Review)
513
- if: github.event_name == 'pull_request_review'
514
- uses: actions/checkout@v4
515
- with:
516
- repository: aiverify-foundation/moonshot-data
517
- ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
518
- path: moonshot-data
519
-
520
447
  - name: Checkout Moonshot Data (Workflow Dispatch)
521
448
  if: github.event_name == 'workflow_dispatch'
522
449
  uses: actions/checkout@v4
@@ -531,14 +458,6 @@ jobs:
531
458
  cd moonshot-data
532
459
  pip install -r requirements.txt
533
460
 
534
- - name: Checkout Moonshot UI (Pull Request Review)
535
- if: github.event_name == 'pull_request_review'
536
- uses: actions/checkout@v4
537
- with:
538
- repository: aiverify-foundation/moonshot-ui
539
- ref: ${{ vars.MOONSHOT_UI_BRANCH }}
540
- path: moonshot-ui
541
-
542
461
  - name: Checkout Moonshot UI (Workflow Dispatch)
543
462
  if: github.event_name == 'workflow_dispatch'
544
463
  uses: actions/checkout@v4
@@ -555,6 +474,18 @@ jobs:
555
474
  python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
556
475
 
557
476
  - name: Setup Moonshot UI
477
+ env:
478
+ URI: ${{ secrets.URI }}
479
+ TOKEN: ${{ secrets.TOKEN }}
480
+ URI2: ${{ secrets.URI2 }}
481
+ TOKEN2: ${{ secrets.TOKEN2 }}
482
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
483
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
484
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
485
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
486
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
487
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
488
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
558
489
  run: |
559
490
  source venv/bin/activate
560
491
  cd moonshot-ui
@@ -581,6 +512,7 @@ jobs:
581
512
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
582
513
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
583
514
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
515
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
584
516
  id: integrationuitest
585
517
  run: |
586
518
  source venv/bin/activate
@@ -590,7 +522,7 @@ jobs:
590
522
  npx playwright install-deps
591
523
  npm install dotenv --save
592
524
  # echo "Running Red Teaming UI Test Cases"
593
- URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" DEBUG=pw:api npx playwright test tests/red_teaming.spec.ts
525
+ URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/red_teaming.spec.ts
594
526
 
595
527
  - name: Print Environment Variables
596
528
  run: env
@@ -622,18 +554,12 @@ jobs:
622
554
  --run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
623
555
  -f "./test-results/junit-report.xml"
624
556
  ##########################################################################################################################################################################
625
- integration-cli-test:
557
+ integration-ui-test-utils:
626
558
 
627
559
  runs-on: ubuntu-latest
628
560
  timeout-minutes: 300
629
- steps:
630
561
 
631
- - name: Checkout Moonshot (Pull Request Review)
632
- if: github.event_name == 'pull_request_review'
633
- uses: actions/checkout@v4
634
- with:
635
- repository: ${{ github.event.pull_request.head.repo.full_name }}
636
- ref: ${{ github.event.pull_request.head.ref }}
562
+ steps:
637
563
 
638
564
  - name: Checkout Moonshot (Workflow Dispatch)
639
565
  if: github.event_name == 'workflow_dispatch'
@@ -655,14 +581,131 @@ jobs:
655
581
  touch .env
656
582
  echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
657
583
 
658
- - name: Checkout Moonshot Data (Pull Request Review)
659
- if: github.event_name == 'pull_request_review'
584
+ - name: Checkout Moonshot Data (Workflow Dispatch)
585
+ if: github.event_name == 'workflow_dispatch'
660
586
  uses: actions/checkout@v4
661
587
  with:
662
588
  repository: aiverify-foundation/moonshot-data
663
- ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
589
+ ref: ${{ inputs.moonshot_data_branch }}
664
590
  path: moonshot-data
665
591
 
592
+ - name: Setup Moonshot Data
593
+ run: |
594
+ source venv/bin/activate
595
+ cd moonshot-data
596
+ pip install -r requirements.txt
597
+
598
+ - name: Checkout Moonshot UI (Workflow Dispatch)
599
+ if: github.event_name == 'workflow_dispatch'
600
+ uses: actions/checkout@v4
601
+ with:
602
+ repository: aiverify-foundation/moonshot-ui
603
+ ref: ${{ inputs.moonshot_ui_branch }}
604
+ path: moonshot-ui
605
+
606
+ # Download NLTK stopwords
607
+ - name: Download NLTK stopwords
608
+ run: |
609
+ source venv/bin/activate
610
+ pip install nltk
611
+ python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
612
+
613
+ - name: Setup Moonshot UI
614
+ run: |
615
+ source venv/bin/activate
616
+ cd moonshot-ui
617
+ npm install
618
+ npm run build
619
+ cd ../
620
+ nohup python -m moonshot web &
621
+
622
+ - name: Checkout Integration Test
623
+ uses: actions/checkout@v4
624
+ with:
625
+ repository: aiverify-foundation/moonshot-integration-testing
626
+ path: moonshot-integration-testing
627
+
628
+ - name: Run Integration UI Test
629
+ env:
630
+ URI: ${{ secrets.URI }}
631
+ TOKEN: ${{ secrets.TOKEN }}
632
+ URI2: ${{ secrets.URI2 }}
633
+ TOKEN2: ${{ secrets.TOKEN2 }}
634
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
635
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
636
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
637
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
638
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
639
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
640
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
641
+ id: integrationuitest
642
+ run: |
643
+ source venv/bin/activate
644
+ cd moonshot-integration-testing/ui-integration-testing
645
+ npm ci
646
+ npx playwright install
647
+ npx playwright install-deps
648
+ npm install dotenv --save
649
+ # echo "Running Homepage Test Cases"
650
+ URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/utils.spec.ts
651
+
652
+ - name: Print Environment Variables
653
+ run: env
654
+
655
+ - name: Upload Playwright Traces
656
+ if: always()
657
+ uses: actions/upload-artifact@v4
658
+ with:
659
+ name: playwright-trace-integration-ui-test-utils-${{ github.run_id }}
660
+ path: |
661
+ /home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
662
+
663
+ - name: TestRail upload results
664
+ env:
665
+ TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
666
+ TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
667
+ run: |
668
+ cd moonshot-integration-testing/ui-integration-testing
669
+ pip install trcli
670
+ trcli -y \
671
+ -h https://imdabtg.testrail.io/ \
672
+ --project "Moonshot" \
673
+ -u $TESTRAIL_USERNAME \
674
+ -p $TESTRAIL_PASSWORD \
675
+ parse_junit \
676
+ --title "Moonshot" \
677
+ --result-fields "os:Ubuntu 22.04" \
678
+ --milestone-id "5" \
679
+ --run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
680
+ -f "./test-results/junit-report.xml"
681
+ ##########################################################################################################################################################################
682
+ integration-ui-test-history:
683
+
684
+ runs-on: ubuntu-latest
685
+ timeout-minutes: 300
686
+
687
+ steps:
688
+
689
+ - name: Checkout Moonshot (Workflow Dispatch)
690
+ if: github.event_name == 'workflow_dispatch'
691
+ uses: actions/checkout@v4
692
+ with:
693
+ repository: aiverify-foundation/moonshot
694
+ ref: ${{ inputs.moonshot_branch }}
695
+
696
+ - name: Setup Python 3.11
697
+ uses: actions/setup-python@v4
698
+ with:
699
+ python-version: '3.11'
700
+
701
+ - name: Setup Moonshot
702
+ run: |
703
+ python -m venv venv
704
+ source venv/bin/activate
705
+ pip install -r requirements.txt
706
+ touch .env
707
+ echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
708
+
666
709
  - name: Checkout Moonshot Data (Workflow Dispatch)
667
710
  if: github.event_name == 'workflow_dispatch'
668
711
  uses: actions/checkout@v4
@@ -677,14 +720,130 @@ jobs:
677
720
  cd moonshot-data
678
721
  pip install -r requirements.txt
679
722
 
680
- - name: Checkout Moonshot UI (Pull Request Review)
681
- if: github.event_name == 'pull_request_review'
723
+ - name: Checkout Moonshot UI (Workflow Dispatch)
724
+ if: github.event_name == 'workflow_dispatch'
682
725
  uses: actions/checkout@v4
683
726
  with:
684
727
  repository: aiverify-foundation/moonshot-ui
685
- ref: ${{ vars.MOONSHOT_UI_BRANCH }}
728
+ ref: ${{ inputs.moonshot_ui_branch }}
686
729
  path: moonshot-ui
687
730
 
731
+ # Download NLTK stopwords
732
+ - name: Download NLTK stopwords
733
+ run: |
734
+ source venv/bin/activate
735
+ pip install nltk
736
+ python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
737
+
738
+ - name: Setup Moonshot UI
739
+ run: |
740
+ source venv/bin/activate
741
+ cd moonshot-ui
742
+ npm install
743
+ npm run build
744
+ cd ../
745
+ nohup python -m moonshot web &
746
+
747
+ - name: Checkout Integration Test
748
+ uses: actions/checkout@v4
749
+ with:
750
+ repository: aiverify-foundation/moonshot-integration-testing
751
+ path: moonshot-integration-testing
752
+
753
+ - name: Run Integration UI Test
754
+ env:
755
+ URI: ${{ secrets.URI }}
756
+ TOKEN: ${{ secrets.TOKEN }}
757
+ URI2: ${{ secrets.URI2 }}
758
+ TOKEN2: ${{ secrets.TOKEN2 }}
759
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
760
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
761
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
762
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
763
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
764
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
765
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
766
+ id: integrationuitest
767
+ run: |
768
+ source venv/bin/activate
769
+ cd moonshot-integration-testing/ui-integration-testing
770
+ npm ci
771
+ npx playwright install
772
+ npx playwright install-deps
773
+ npm install dotenv --save
774
+ # echo "Running Homepage Test Cases"
775
+ URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/history.spec.ts
776
+
777
+ - name: Print Environment Variables
778
+ run: env
779
+
780
+ - name: Upload Playwright Traces
781
+ if: always()
782
+ uses: actions/upload-artifact@v4
783
+ with:
784
+ name: playwright-trace-integration-ui-test-history-${{ github.run_id }}
785
+ path: |
786
+ /home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
787
+
788
+ - name: TestRail upload results
789
+ env:
790
+ TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
791
+ TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
792
+ run: |
793
+ cd moonshot-integration-testing/ui-integration-testing
794
+ pip install trcli
795
+ trcli -y \
796
+ -h https://imdabtg.testrail.io/ \
797
+ --project "Moonshot" \
798
+ -u $TESTRAIL_USERNAME \
799
+ -p $TESTRAIL_PASSWORD \
800
+ parse_junit \
801
+ --title "Moonshot" \
802
+ --result-fields "os:Ubuntu 22.04" \
803
+ --milestone-id "5" \
804
+ --run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
805
+ -f "./test-results/junit-report.xml"
806
+ ##########################################################################################################################################################################
807
+ integration-cli-test:
808
+
809
+ runs-on: ubuntu-latest
810
+ timeout-minutes: 300
811
+ steps:
812
+
813
+ - name: Checkout Moonshot (Workflow Dispatch)
814
+ if: github.event_name == 'workflow_dispatch'
815
+ uses: actions/checkout@v4
816
+ with:
817
+ repository: aiverify-foundation/moonshot
818
+ ref: ${{ inputs.moonshot_branch }}
819
+
820
+ - name: Setup Python 3.11
821
+ uses: actions/setup-python@v4
822
+ with:
823
+ python-version: '3.11'
824
+
825
+ - name: Setup Moonshot
826
+ run: |
827
+ python -m venv venv
828
+ source venv/bin/activate
829
+ pip install -r requirements.txt
830
+ touch .env
831
+ echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
832
+
833
+ - name: Checkout Moonshot Data (Workflow Dispatch)
834
+ if: github.event_name == 'workflow_dispatch'
835
+ uses: actions/checkout@v4
836
+ with:
837
+ repository: aiverify-foundation/moonshot-data
838
+ ref: ${{ inputs.moonshot_data_branch }}
839
+ path: moonshot-data
840
+
841
+ - name: Setup Moonshot Data
842
+ run: |
843
+ source venv/bin/activate
844
+ cd moonshot-data
845
+ pip install -r requirements.txt
846
+
688
847
  - name: Checkout Moonshot UI (Workflow Dispatch)
689
848
  if: github.event_name == 'workflow_dispatch'
690
849
  uses: actions/checkout@v4
@@ -31,7 +31,7 @@ jobs:
31
31
  - name: Build a binary wheel and a source tarball
32
32
  run: python3 -m build
33
33
  - name: Store the distribution packages
34
- uses: actions/upload-artifact@v3
34
+ uses: actions/upload-artifact@v4
35
35
  with:
36
36
  name: python-package-distributions
37
37
  path: dist/
@@ -50,7 +50,7 @@ jobs:
50
50
 
51
51
  steps:
52
52
  - name: Download all the dists
53
- uses: actions/download-artifact@v3
53
+ uses: actions/download-artifact@v4
54
54
  with:
55
55
  name: python-package-distributions
56
56
  path: dist/
@@ -71,7 +71,7 @@ jobs:
71
71
 
72
72
  steps:
73
73
  - name: Download all the dists
74
- uses: actions/download-artifact@v3
74
+ uses: actions/download-artifact@v4
75
75
  with:
76
76
  name: python-package-distributions
77
77
  path: dist/
@@ -31,7 +31,7 @@ jobs:
31
31
  - name: Build a binary wheel and a source tarball
32
32
  run: python3 -m build
33
33
  - name: Store the distribution packages
34
- uses: actions/upload-artifact@v3
34
+ uses: actions/upload-artifact@v4
35
35
  with:
36
36
  name: python-package-distributions
37
37
  path: dist/
@@ -51,7 +51,7 @@ jobs:
51
51
 
52
52
  steps:
53
53
  - name: Download all the dists
54
- uses: actions/download-artifact@v3
54
+ uses: actions/download-artifact@v4
55
55
  with:
56
56
  name: python-package-distributions
57
57
  path: dist/