imbi-api 2.51.0__tar.gz → 2.52.0__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 (437) hide show
  1. {imbi_api-2.51.0 → imbi_api-2.52.0}/PKG-INFO +3 -2
  2. {imbi_api-2.51.0 → imbi_api-2.52.0}/pyproject.toml +3 -2
  3. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/agent_api_routes.py +2 -1
  4. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/agent_tasks.py +33 -22
  5. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/harness.py +50 -0
  6. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/workflow_runs.py +272 -35
  7. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/workflows.py +4 -7
  8. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/settings.py +29 -4
  9. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/runs.py +1 -1
  10. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_harness.py +82 -0
  11. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_workflow_runs.py +336 -0
  12. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_workflows.py +14 -3
  13. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_settings.py +10 -0
  14. {imbi_api-2.51.0 → imbi_api-2.52.0}/.gitignore +0 -0
  15. {imbi_api-2.51.0 → imbi_api-2.52.0}/README.md +0 -0
  16. {imbi_api-2.51.0 → imbi_api-2.52.0}/moon.yml +0 -0
  17. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/README.md +0 -0
  18. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/__init__.py +0 -0
  19. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/agent_tasks/__init__.py +0 -0
  20. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/agent_tasks/log.py +0 -0
  21. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/agent_tasks/schemata.toml +0 -0
  22. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/agent_tasks/store.py +0 -0
  23. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/agent_tasks/sweeper.py +0 -0
  24. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/agent_tools.py +0 -0
  25. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/app.py +0 -0
  26. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/__init__.py +0 -0
  27. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/agent_api.py +0 -0
  28. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/authorization_codes.py +0 -0
  29. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/autonomous.py +0 -0
  30. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/internal_services.py +0 -0
  31. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/local_auth.py +0 -0
  32. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/login_providers.py +0 -0
  33. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/membership.py +0 -0
  34. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/models.py +0 -0
  35. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/oauth_clients.py +0 -0
  36. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/organizations.py +0 -0
  37. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/password.py +0 -0
  38. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/permissions.py +0 -0
  39. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/principals.py +0 -0
  40. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/seed.py +0 -0
  41. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/sessions.py +0 -0
  42. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/tokens.py +0 -0
  43. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/auth/totp.py +0 -0
  44. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/backfill_embeddings.py +0 -0
  45. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/blueprint_attributes.py +0 -0
  46. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/blueprint_compliance.py +0 -0
  47. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
  48. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/commit_sync/__init__.py +0 -0
  49. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/commit_sync/queue.py +0 -0
  50. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/commit_sync/service.py +0 -0
  51. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/component_facts.py +0 -0
  52. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/cves.py +0 -0
  53. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/deployment_status_repair.py +0 -0
  54. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/deployment_sweeper.py +0 -0
  55. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
  56. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/deployment_sync/queue.py +0 -0
  57. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/deployment_sync/service.py +0 -0
  58. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/documents/__init__.py +0 -0
  59. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/documents/read_sweeper.py +0 -0
  60. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/domain/__init__.py +0 -0
  61. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/domain/models.py +0 -0
  62. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/domain/scoring.py +0 -0
  63. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/drift.py +0 -0
  64. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/__init__.py +0 -0
  65. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/client.py +0 -0
  66. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/dependencies.py +0 -0
  67. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/models.py +0 -0
  68. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates/base.html +0 -0
  69. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates/base.txt +0 -0
  70. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates/password_reset.html +0 -0
  71. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
  72. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates/welcome.html +0 -0
  73. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates/welcome.txt +0 -0
  74. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/email/templates.py +0 -0
  75. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/__init__.py +0 -0
  76. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_credentials.py +0 -0
  77. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_document_events.py +0 -0
  78. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_document_history.py +0 -0
  79. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
  80. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
  81. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_helpers.py +0 -0
  82. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
  83. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_local_time.py +0 -0
  84. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_pagination.py +0 -0
  85. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
  86. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/_search_index.py +0 -0
  87. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/admin.py +0 -0
  88. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
  89. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
  90. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/agent_task_harness.py +0 -0
  91. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
  92. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/agents.py +0 -0
  93. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/ai_models.py +0 -0
  94. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
  95. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/api_keys.py +0 -0
  96. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/auth.py +0 -0
  97. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
  98. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/blueprints.py +0 -0
  99. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
  100. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/comments.py +0 -0
  101. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/components.py +0 -0
  102. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/cves.py +0 -0
  103. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/dashboard.py +0 -0
  104. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
  105. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/document_likes.py +0 -0
  106. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/document_presence.py +0 -0
  107. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/document_templates.py +0 -0
  108. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/document_versions.py +0 -0
  109. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/documents.py +0 -0
  110. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/environments.py +0 -0
  111. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/events.py +0 -0
  112. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/graph_query.py +0 -0
  113. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
  114. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/integrations.py +0 -0
  115. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
  116. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/local_auth.py +0 -0
  117. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/maintenance.py +0 -0
  118. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
  119. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/mfa.py +0 -0
  120. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
  121. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/operations_log.py +0 -0
  122. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/organizations.py +0 -0
  123. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
  124. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
  125. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/plugins.py +0 -0
  126. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
  127. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
  128. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
  129. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
  130. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
  131. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
  132. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
  133. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_logs.py +0 -0
  134. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
  135. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
  136. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/project_types.py +0 -0
  137. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/projects.py +0 -0
  138. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/prompts.py +0 -0
  139. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
  140. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/releases.py +0 -0
  141. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/roles.py +0 -0
  142. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
  143. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/scoring.py +0 -0
  144. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
  145. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/search.py +0 -0
  146. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
  147. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
  148. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/status.py +0 -0
  149. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/tags.py +0 -0
  150. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/teams.py +0 -0
  151. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/uploads.py +0 -0
  152. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/user_activity.py +0 -0
  153. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/users.py +0 -0
  154. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/endpoints/webhooks.py +0 -0
  155. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/entrypoint.py +0 -0
  156. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/graph_ids.py +0 -0
  157. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/graph_sql.py +0 -0
  158. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/__init__.py +0 -0
  159. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/auth.py +0 -0
  160. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/egress.py +0 -0
  161. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/marketplaces.py +0 -0
  162. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/metrics.py +0 -0
  163. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/platform.py +0 -0
  164. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/schemata.toml +0 -0
  165. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/store.py +0 -0
  166. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/sweeper.py +0 -0
  167. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/harness/tokens.py +0 -0
  168. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/__init__.py +0 -0
  169. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/attribution.py +0 -0
  170. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/endpoints.py +0 -0
  171. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/errors.py +0 -0
  172. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/flows.py +0 -0
  173. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/host_integration.py +0 -0
  174. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/models.py +0 -0
  175. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/repository.py +0 -0
  176. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/resolution.py +0 -0
  177. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/state.py +0 -0
  178. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/identity/sweeper.py +0 -0
  179. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/iggy_metrics.py +0 -0
  180. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/lifespans.py +0 -0
  181. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/llm/__init__.py +0 -0
  182. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/llm/dependencies.py +0 -0
  183. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/llm/tokens.py +0 -0
  184. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/maintenance/__init__.py +0 -0
  185. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/maintenance/log.py +0 -0
  186. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/maintenance/operations.py +0 -0
  187. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/maintenance/registry.py +0 -0
  188. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/maintenance/state.py +0 -0
  189. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/maintenance/worker.py +0 -0
  190. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/mcp_test.py +0 -0
  191. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/middleware/__init__.py +0 -0
  192. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/middleware/rate_limit.py +0 -0
  193. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/models.py +0 -0
  194. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/openapi.py +0 -0
  195. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/orphan_releases.py +0 -0
  196. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/__init__.py +0 -0
  197. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
  198. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/assignments.py +0 -0
  199. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/credentials.py +0 -0
  200. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/installer.py +0 -0
  201. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/lifecycle.py +0 -0
  202. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
  203. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
  204. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/reload.py +0 -0
  205. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/resolution.py +0 -0
  206. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/plugins/schemas.py +0 -0
  207. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/pr_sync/__init__.py +0 -0
  208. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/pr_sync/queue.py +0 -0
  209. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/pr_sync/service.py +0 -0
  210. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/prompts/__init__.py +0 -0
  211. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
  212. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/prompts/seed.py +0 -0
  213. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/py.typed +0 -0
  214. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/relationships.py +0 -0
  215. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/release_promote/__init__.py +0 -0
  216. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/release_promote/queue.py +0 -0
  217. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/release_promote/service.py +0 -0
  218. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/sbom.py +0 -0
  219. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/scoring/__init__.py +0 -0
  220. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/scoring/queue.py +0 -0
  221. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/__init__.py +0 -0
  222. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/audit.py +0 -0
  223. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/broker.py +0 -0
  224. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/identity.py +0 -0
  225. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/providers.py +0 -0
  226. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
  227. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/secret_broker/store.py +0 -0
  228. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/storage/__init__.py +0 -0
  229. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/storage/client.py +0 -0
  230. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/storage/dependencies.py +0 -0
  231. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/storage/thumbnails.py +0 -0
  232. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/storage/validation.py +0 -0
  233. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/user_document_orgs.py +0 -0
  234. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/__init__.py +0 -0
  235. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/runtime_schemata.toml +0 -0
  236. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/schemata.toml +0 -0
  237. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/store.py +0 -0
  238. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/sweeper.py +0 -0
  239. {imbi_api-2.51.0 → imbi_api-2.52.0}/src/imbi/api/workflows/task_trigger.py +0 -0
  240. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/__init__.py +0 -0
  241. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/__init__.py +0 -0
  242. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_authentication.py +0 -0
  243. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_authorization.py +0 -0
  244. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_encryption.py +0 -0
  245. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_internal_services.py +0 -0
  246. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_login_providers.py +0 -0
  247. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_membership.py +0 -0
  248. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_oauth_server.py +0 -0
  249. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_organizations.py +0 -0
  250. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_permissions.py +0 -0
  251. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_seed.py +0 -0
  252. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_sessions.py +0 -0
  253. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/auth/test_totp.py +0 -0
  254. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/clickhouse/__init__.py +0 -0
  255. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/clickhouse/test_client.py +0 -0
  256. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/clickhouse/test_init.py +0 -0
  257. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/clickhouse/test_privacy.py +0 -0
  258. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/__init__.py +0 -0
  259. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/test_audit_clickhouse.py +0 -0
  260. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/test_client.py +0 -0
  261. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/test_init.py +0 -0
  262. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/test_integration.py +0 -0
  263. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/test_models.py +0 -0
  264. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/email/test_templates.py +0 -0
  265. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/__init__.py +0 -0
  266. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_admin.py +0 -0
  267. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_admin_plugins.py +0 -0
  268. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_api.py +0 -0
  269. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_platform.py +0 -0
  270. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_task_actions.py +0 -0
  271. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_task_harness.py +0 -0
  272. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_task_log.py +0 -0
  273. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_task_relations.py +0 -0
  274. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_tasks.py +0 -0
  275. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agent_usage.py +0 -0
  276. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_agents.py +0 -0
  277. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_ai_models.py +0 -0
  278. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_ai_providers.py +0 -0
  279. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_api_keys.py +0 -0
  280. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_auth.py +0 -0
  281. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_auth_providers.py +0 -0
  282. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_blueprints.py +0 -0
  283. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
  284. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_client_credentials.py +0 -0
  285. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_comments.py +0 -0
  286. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_components.py +0 -0
  287. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_credentials.py +0 -0
  288. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_cross_org_reads.py +0 -0
  289. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_cves.py +0 -0
  290. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_dashboard.py +0 -0
  291. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_analytics.py +0 -0
  292. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_likes.py +0 -0
  293. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_presence.py +0 -0
  294. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_reads.py +0 -0
  295. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_reads_sql.py +0 -0
  296. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_templates.py +0 -0
  297. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_document_versions.py +0 -0
  298. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_documents.py +0 -0
  299. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_environments.py +0 -0
  300. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_events.py +0 -0
  301. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_github_app_repository.py +0 -0
  302. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_graph_query.py +0 -0
  303. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_harness_egress.py +0 -0
  304. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_harness_secrets.py +0 -0
  305. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_iggy_connectors.py +0 -0
  306. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_init.py +0 -0
  307. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_integrations.py +0 -0
  308. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_json_fields.py +0 -0
  309. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_link_definitions.py +0 -0
  310. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_local_auth.py +0 -0
  311. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_maintenance.py +0 -0
  312. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_mcp_servers.py +0 -0
  313. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_mfa.py +0 -0
  314. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_operations_log.py +0 -0
  315. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_organizations.py +0 -0
  316. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_pagination.py +0 -0
  317. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
  318. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_plugins.py +0 -0
  319. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_analysis.py +0 -0
  320. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_commit_sync.py +0 -0
  321. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_configuration.py +0 -0
  322. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_deployments.py +0 -0
  323. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
  324. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_incidents.py +0 -0
  325. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_integrations.py +0 -0
  326. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_lifecycle.py +0 -0
  327. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_logs.py +0 -0
  328. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_plugins.py +0 -0
  329. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
  330. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_project_types.py +0 -0
  331. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_projects.py +0 -0
  332. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_projects_helpers.py +0 -0
  333. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_prompt_decisions.py +0 -0
  334. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_prompts.py +0 -0
  335. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_pull_requests.py +0 -0
  336. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_releases.py +0 -0
  337. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_request_urls.py +0 -0
  338. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_roles.py +0 -0
  339. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_sa_api_keys.py +0 -0
  340. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_scoring.py +0 -0
  341. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_scoring_policies.py +0 -0
  342. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_search.py +0 -0
  343. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_search_index.py +0 -0
  344. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_secret_broker.py +0 -0
  345. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_service_accounts.py +0 -0
  346. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_service_writeback.py +0 -0
  347. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_shared_identifier.py +0 -0
  348. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_status.py +0 -0
  349. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_tags.py +0 -0
  350. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_teams.py +0 -0
  351. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_uploads.py +0 -0
  352. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_user_activity.py +0 -0
  353. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_users.py +0 -0
  354. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_webhooks.py +0 -0
  355. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_workflow_run_history.py +0 -0
  356. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/endpoints/test_workflow_triggers.py +0 -0
  357. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
  358. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
  359. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
  360. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/fixtures/sbom/tiny.json +0 -0
  361. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/__init__.py +0 -0
  362. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_endpoints.py +0 -0
  363. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_errors.py +0 -0
  364. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_flows.py +0 -0
  365. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_host_integration.py +0 -0
  366. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_repository.py +0 -0
  367. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_resolution.py +0 -0
  368. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_state.py +0 -0
  369. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/identity/test_sweeper.py +0 -0
  370. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/middleware/test_rate_limit.py +0 -0
  371. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/secret_support.py +0 -0
  372. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/storage/__init__.py +0 -0
  373. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/storage/test_client.py +0 -0
  374. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/storage/test_init.py +0 -0
  375. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/storage/test_thumbnails.py +0 -0
  376. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/storage/test_validation.py +0 -0
  377. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/support.py +0 -0
  378. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_agent_platform.py +0 -0
  379. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_agent_task_events_e2e.py +0 -0
  380. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_agent_tools.py +0 -0
  381. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_ai_provider_tokens.py +0 -0
  382. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_app.py +0 -0
  383. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_assignment_writer.py +0 -0
  384. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_auth_settings.py +0 -0
  385. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_backfill_embeddings.py +0 -0
  386. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_blueprint_attributes.py +0 -0
  387. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_blueprint_compliance.py +0 -0
  388. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_blueprints.py +0 -0
  389. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_clickhouse_project_ids.py +0 -0
  390. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_commit_pushed_at_repair.py +0 -0
  391. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_commit_sync_queue.py +0 -0
  392. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_commit_sync_service.py +0 -0
  393. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_component_facts.py +0 -0
  394. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_cves.py +0 -0
  395. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_deployment_status_repair.py +0 -0
  396. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_deployment_sweeper.py +0 -0
  397. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_deployment_sync_queue.py +0 -0
  398. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_deployment_sync_service.py +0 -0
  399. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_drift.py +0 -0
  400. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_entrypoint.py +0 -0
  401. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_graph_ids.py +0 -0
  402. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_graph_sql.py +0 -0
  403. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_identity_attribution.py +0 -0
  404. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_iggy_metrics.py +0 -0
  405. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_init.py +0 -0
  406. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_installer.py +0 -0
  407. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_lifecycle_dispatch.py +0 -0
  408. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_lifespans.py +0 -0
  409. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_maintenance_log.py +0 -0
  410. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_maintenance_operations.py +0 -0
  411. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_maintenance_state.py +0 -0
  412. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_maintenance_worker.py +0 -0
  413. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_models.py +0 -0
  414. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_openapi.py +0 -0
  415. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_orphan_releases.py +0 -0
  416. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_plugin_schemas.py +0 -0
  417. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_plugins.py +0 -0
  418. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_plugins_assignments.py +0 -0
  419. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_plugins_credentials.py +0 -0
  420. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_pr_sync_queue.py +0 -0
  421. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_pr_sync_service.py +0 -0
  422. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_projects_drift_ranges.py +0 -0
  423. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_prompt_seed.py +0 -0
  424. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
  425. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
  426. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_pull_requests_pending_deploy.py +0 -0
  427. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_release_dispatch.py +0 -0
  428. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_release_promote_service.py +0 -0
  429. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_sbom.py +0 -0
  430. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_scoring_queue.py +0 -0
  431. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_scoring_triggers.py +0 -0
  432. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_secret_broker.py +0 -0
  433. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_secret_github_app.py +0 -0
  434. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_secret_identity.py +0 -0
  435. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_secret_providers.py +0 -0
  436. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_task_trigger.py +0 -0
  437. {imbi_api-2.51.0 → imbi_api-2.52.0}/tests/test_workflow_reconcile.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: imbi-api
3
- Version: 2.51.0
3
+ Version: 2.52.0
4
4
  Summary: Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them.
5
5
  Author-email: Alex Campbell <alexc@aweber.com>, Dave Shawley <daves@aweber.com>, "Gavin M. Roy" <gavinr@aweber.com>
6
6
  License-Expression: BSD-3-Clause
@@ -20,7 +20,7 @@ Requires-Dist: fastapi
20
20
  Requires-Dist: filetype
21
21
  Requires-Dist: httpx<1,>=0.28.1
22
22
  Requires-Dist: idna>=3.18
23
- Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.51.0
23
+ Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.52.0
24
24
  Requires-Dist: jinja2
25
25
  Requires-Dist: jsonpatch>=1.33
26
26
  Requires-Dist: jsonschema>=4.26
@@ -34,6 +34,7 @@ Requires-Dist: pyotp>=2.9.0
34
34
  Requires-Dist: python-multipart>=0.0.26
35
35
  Requires-Dist: qrcode>=8.0
36
36
  Requires-Dist: sentry-sdk<3,>=2.48.0
37
+ Requires-Dist: slack-sdk>=3.43
37
38
  Requires-Dist: slowapi==0.1.9
38
39
  Requires-Dist: typer
39
40
  Requires-Dist: uvicorn
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "imbi-api"
3
- version = "2.51.0"
3
+ version = "2.52.0"
4
4
  description = "Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
@@ -29,7 +29,7 @@ dependencies = [
29
29
  "filetype",
30
30
  "httpx>=0.28.1,<1",
31
31
  "idna>=3.18",
32
- "imbi-common[databases,llm,mcp,script,sentry,server]==2.51.0",
32
+ "imbi-common[databases,llm,mcp,script,sentry,server]==2.52.0",
33
33
  "jinja2",
34
34
  "jsonpatch>=1.33",
35
35
  "jsonschema>=4.26",
@@ -42,6 +42,7 @@ dependencies = [
42
42
  "python-multipart>=0.0.26",
43
43
  "qrcode>=8.0",
44
44
  "sentry-sdk>=2.48.0,<3",
45
+ "slack-sdk>=3.43",
45
46
  "slowapi==0.1.9",
46
47
  "typer",
47
48
  "uvicorn",
@@ -285,7 +285,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
285
285
  'POST /organizations/',
286
286
  'POST /organizations/{org_slug}/teams/',
287
287
  'POST /organizations/{org_slug}/teams/{slug}/members',
288
- # Workflows: definitions, triggers, runs and their steps (an agent could schedule itself or send email); validate stays
288
+ # Workflows: definitions, triggers, runs and their steps (an agent could schedule itself, send email, or post to Slack); validate stays
289
289
  'DELETE /organizations/{org_slug}/workflows/{slug}',
290
290
  'POST /organizations/{org_slug}/workflows/',
291
291
  'POST /organizations/{org_slug}/workflows/{slug}/activate',
@@ -296,6 +296,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
296
296
  'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task',
297
297
  'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task/cancel',
298
298
  'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/email',
299
+ 'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/slack',
299
300
  'GET /organizations/{org_slug}/workflow-runs/side-effects/deployments',
300
301
  'POST /organizations/{org_slug}/workflow-runs/side-effects/resolve',
301
302
  'POST /organizations/{org_slug}/workflows/{slug}/test-runs',
@@ -98,7 +98,7 @@ class AgentTaskCreate(pydantic.BaseModel):
98
98
  project_ids: list[_ShortText] = pydantic.Field(
99
99
  default_factory=list,
100
100
  max_length=50,
101
- description='The projects of the task.',
101
+ description='The projects of the task, by id or slug.',
102
102
  )
103
103
  budget: decimal.Decimal | None = pydantic.Field(
104
104
  default=None,
@@ -394,7 +394,7 @@ _PROJECTS_QUERY: typing.LiteralString = """
394
394
  MATCH (p:Project)
395
395
  -[:OWNED_BY]->(:Team)
396
396
  -[:BELONGS_TO]->(:Organization {{slug: {org_slug}}})
397
- WHERE p.id IN {ids}
397
+ WHERE p.id IN {ids} OR p.slug IN {ids}
398
398
  RETURN p.id AS id, p.slug AS slug, p.name AS name
399
399
  """
400
400
 
@@ -755,31 +755,42 @@ async def _owner(
755
755
  return str(creator)
756
756
 
757
757
 
758
- async def _project_slugs(
759
- db: graph.Graph, org_slug: str, project_ids: list[str]
758
+ async def project_slugs(
759
+ db: graph.Graph, org_slug: str, projects: list[str]
760
760
  ) -> list[tuple[str, str]]:
761
761
  """Return the ``(id, slug)`` of each project in the org, in the
762
- order of ``project_ids`` with no repeats, or raise 422."""
763
- ids = list(dict.fromkeys(project_ids))
764
- if not ids:
762
+ order of ``projects`` with no repeats, or raise 422.
763
+
764
+ Each entry is a project id or slug. An id wins over a slug, and a
765
+ slug that more than one project in the org has is refused.
766
+ """
767
+ refs = list(dict.fromkeys(projects))
768
+ if not refs:
765
769
  return []
766
770
  records = await db.execute(
767
771
  _PROJECTS_QUERY,
768
- {'org_slug': org_slug, 'ids': ids},
772
+ {'org_slug': org_slug, 'ids': refs},
769
773
  ['id', 'slug', 'name'],
770
774
  )
771
- slugs = {
772
- str(graph.parse_agtype(r['id'])): str(graph.parse_agtype(r['slug']))
775
+ rows = [
776
+ (str(graph.parse_agtype(r['id'])), str(graph.parse_agtype(r['slug'])))
773
777
  for r in records
774
- }
775
- for project_id in ids:
776
- if project_id not in slugs:
777
- raise _unprocessable(f'Project {project_id!r} not found')
778
- return [(project_id, slugs[project_id]) for project_id in ids]
778
+ ]
779
+ found: list[tuple[str, str]] = []
780
+ for ref in refs:
781
+ matches = [row for row in rows if row[0] == ref] or [
782
+ row for row in rows if row[1] == ref
783
+ ]
784
+ if len(matches) > 1:
785
+ raise _unprocessable(f'Project slug {ref!r} is not unique')
786
+ if not matches:
787
+ raise _unprocessable(f'Project {ref!r} not found')
788
+ found.append(matches[0])
789
+ return list(dict.fromkeys(found))
779
790
 
780
791
 
781
792
  @contextlib.contextmanager
782
- def _relation_errors() -> abc.Generator[None]:
793
+ def relation_errors() -> abc.Generator[None]:
783
794
  """Map the errors of a relation change to HTTP errors."""
784
795
  try:
785
796
  yield
@@ -979,7 +990,7 @@ async def make_task(
979
990
  else models.AgentSettings.model_validate(raw_settings)
980
991
  )
981
992
  budget = task_budget(settings, data.budget)
982
- projects = await _project_slugs(db, org_slug, data.project_ids)
993
+ projects = await project_slugs(db, org_slug, data.project_ids)
983
994
  agent_id = str(agent['id'])
984
995
  service_account_id = await agents.ensure_service_account(
985
996
  db, agent_id, str(agent.get('name', data.agent_slug))
@@ -1639,7 +1650,7 @@ async def add_agent_task_dependency(
1639
1650
 
1640
1651
  """
1641
1652
  _ = auth.require_user # raises 403 for a caller that is not a person
1642
- with _relation_errors():
1653
+ with relation_errors():
1643
1654
  await store.add_dependency(
1644
1655
  org_id, short_id.upper(), prerequisite.upper(), _actor(auth)
1645
1656
  )
@@ -1669,7 +1680,7 @@ async def remove_agent_task_dependency(
1669
1680
 
1670
1681
  """
1671
1682
  _ = auth.require_user # raises 403 for a caller that is not a person
1672
- with _relation_errors():
1683
+ with relation_errors():
1673
1684
  await store.remove_dependency(
1674
1685
  org_id, short_id.upper(), prerequisite.upper(), _actor(auth)
1675
1686
  )
@@ -1738,8 +1749,8 @@ async def associate_agent_task_project(
1738
1749
 
1739
1750
  """
1740
1751
  _ = auth.require_user # raises 403 for a caller that is not a person
1741
- [(_, slug)] = await _project_slugs(db, org_slug, [project_id])
1742
- with _relation_errors():
1752
+ [(project_id, slug)] = await project_slugs(db, org_slug, [project_id])
1753
+ with relation_errors():
1743
1754
  await store.associate_project(
1744
1755
  org_id, short_id.upper(), project_id, slug, _actor(auth)
1745
1756
  )
@@ -1769,7 +1780,7 @@ async def dissociate_agent_task_project(
1769
1780
 
1770
1781
  """
1771
1782
  _ = auth.require_user # raises 403 for a caller that is not a person
1772
- with _relation_errors():
1783
+ with relation_errors():
1773
1784
  await store.dissociate_project(
1774
1785
  org_id, short_id.upper(), project_id, _actor(auth)
1775
1786
  )
@@ -303,6 +303,11 @@ class RunnerFinished(pydantic.BaseModel):
303
303
  chain_state: harness_store.ChainState | None = None
304
304
 
305
305
 
306
+ class AttachedProject(pydantic.BaseModel):
307
+ project_id: str
308
+ project_slug: str
309
+
310
+
306
311
  class ChildTaskCreate(pydantic.BaseModel):
307
312
  agent_slug: str = pydantic.Field(min_length=1)
308
313
  title: str = pydantic.Field(min_length=1)
@@ -1671,6 +1676,51 @@ async def list_harness_task_events(
1671
1676
  return await store.events(task['id'], after_seq, limit)
1672
1677
 
1673
1678
 
1679
+ @harness_router.put(
1680
+ '/tasks/{short_id}/projects/{project}', response_model=AttachedProject
1681
+ )
1682
+ async def attach_harness_task_project(
1683
+ short_id: str,
1684
+ project: str,
1685
+ caller: harness_auth.AgentCaller,
1686
+ db: graph.Pool,
1687
+ store: agent_tasks.Store,
1688
+ ) -> dict[str, str]:
1689
+ """Associate a project of the org with a task of the chain.
1690
+
1691
+ ``project`` is a project id or slug. The task gets a
1692
+ ``project.associated`` event, with the agent as the actor. A secret
1693
+ resolution reads the task's projects when it is made, so the next
1694
+ one covers the project. When the project is associated, nothing
1695
+ changes.
1696
+
1697
+ Raises:
1698
+ 401: Not a current agent token.
1699
+ 403: Another chain or another agent.
1700
+ 404: No such task.
1701
+ 409: ``task_closed`` or ``task_archived``.
1702
+ 422: The project is not in the org, or the slug is not unique.
1703
+
1704
+ """
1705
+ task = await _chain_task(caller, short_id, db, store)
1706
+ if task['status'] == 'closed':
1707
+ raise _conflict('task_closed', f'Task {task["short_id"]} is closed')
1708
+ org_id = task['organization_id']
1709
+ org_slug = (await organization_slugs(db, [org_id])).get(org_id, '')
1710
+ [(project_id, slug)] = await tasks_api.project_slugs(
1711
+ db, org_slug, [project]
1712
+ )
1713
+ with tasks_api.relation_errors():
1714
+ await store.associate_project(
1715
+ org_id,
1716
+ task['short_id'],
1717
+ project_id,
1718
+ slug,
1719
+ agent_tasks.Actor('agent', task['agent_id'], 'harness'),
1720
+ )
1721
+ return {'project_id': project_id, 'project_slug': slug}
1722
+
1723
+
1674
1724
  @harness_router.post(
1675
1725
  '/tasks/{short_id}/children',
1676
1726
  status_code=201,
@@ -13,6 +13,8 @@ The two email routes are for the engine only. imbi-api holds the email
13
13
  client, so the engine asks it to send what a run recorded: the input of
14
14
  a running email step, or the failure notice of a failed run. Both take
15
15
  an ``Idempotency-Key``, so a repeat after a crash sends nothing twice.
16
+ The Slack route is the same for a running ``slack`` step: imbi-api
17
+ holds the bot token.
16
18
 
17
19
  The two agent task routes are for the engine only too. They make,
18
20
  read, and cancel the agent task of a running ``agent`` step (ADR 0021,
@@ -26,15 +28,20 @@ Every route needs the caller to be a member of the organization
26
28
  (``MEMBER_OF``): see :mod:`imbi.api.auth.organizations`.
27
29
  """
28
30
 
31
+ import asyncio
29
32
  import datetime
30
33
  import typing
31
34
  import uuid
32
35
 
36
+ import aiohttp
33
37
  import fastapi
34
38
  import pydantic
39
+ from slack_sdk import errors as slack_errors
40
+ from slack_sdk.web import async_client as slack_client
35
41
 
36
42
  from imbi.api import agent_tasks as agent_runtime
37
43
  from imbi.api import email, workflows
44
+ from imbi.api import settings as api_settings
38
45
  from imbi.api.auth import organizations, permissions
39
46
  from imbi.api.email import client as email_client
40
47
  from imbi.api.endpoints import agent_tasks, project_deployments
@@ -45,6 +52,7 @@ from imbi.common.workflows import graph as wf
45
52
  from imbi.common.workflows import history, registry, validation, walk
46
53
  from imbi.common.workflows.registry import agent as agent_step
47
54
  from imbi.common.workflows.registry import email as email_step
55
+ from imbi.common.workflows.registry import slack as slack_step
48
56
 
49
57
  OrgId = organizations.MemberOrgId
50
58
 
@@ -218,6 +226,17 @@ class EmailResult(pydantic.BaseModel):
218
226
  failed: list[str] = []
219
227
 
220
228
 
229
+ class SlackResult(pydantic.BaseModel):
230
+ channel: str
231
+ #: The timestamp of the message. ``None`` when Slack refused it, or
232
+ #: an operator marked an unknown send done.
233
+ ts: str | None = None
234
+ permalink: str | None = None
235
+ #: The Slack error code when Slack refused the message, such as
236
+ #: ``not_in_channel``. Nothing was posted.
237
+ error: str | None = None
238
+
239
+
221
240
  class StepAgentTask(pydantic.BaseModel):
222
241
  #: The short id, ``T-<n>``.
223
242
  task_id: str
@@ -482,6 +501,115 @@ async def _send(
482
501
  return {'recipients': sent, 'failed': failed}
483
502
 
484
503
 
504
+ def _slack_token() -> str:
505
+ return api_settings.get_slack_settings().bot_token.get_secret_value()
506
+
507
+
508
+ #: Errors of a call to Slack that may come after Slack posted.
509
+ _SLACK_TRANSPORT_ERRORS = (
510
+ slack_errors.SlackClientError,
511
+ aiohttp.ClientError,
512
+ TimeoutError,
513
+ )
514
+
515
+ #: Slack errors that can come after part of the call succeeded, so
516
+ #: the message may be posted: treated as a transport error.
517
+ _SLACK_AMBIGUOUS = frozenset(
518
+ {'fatal_error', 'internal_error', 'request_timeout', 'service_unavailable'}
519
+ )
520
+
521
+ # slack_sdk's AsyncWebClient is only loosely typed (``**kwargs`` and
522
+ # untyped responses), so it is Any here, as in imbi-slackbot.
523
+ SlackClient = typing.Any
524
+
525
+
526
+ #: Seconds that each call to Slack may take. The post and the
527
+ #: permalink together stay well under the engine's 60-second timeout.
528
+ _SLACK_TIMEOUT = 20
529
+ _SLACK_PERMALINK_TIMEOUT = 5.0
530
+ _HTTP_SERVER_ERROR = 500
531
+ _HTTP_TOO_MANY_REQUESTS = 429
532
+
533
+
534
+ def _slack_refusal(error: slack_errors.SlackApiError) -> str | None:
535
+ """Return the code of a refusal that posted nothing, or ``None``.
536
+
537
+ A ``429`` is ``ratelimited`` with or without a code. ``None`` when
538
+ Slack may have posted: a 5xx (slack_sdk gives a 5xx
539
+ with an HTML body no error code), a missing code, or a code in
540
+ :data:`_SLACK_AMBIGUOUS`. On a body that is not JSON, slack_sdk
541
+ passes the raw HTTP response, which has no ``get``.
542
+ """
543
+ response: SlackClient = error.response
544
+ status = getattr(response, 'status_code', None)
545
+ if status == _HTTP_TOO_MANY_REQUESTS:
546
+ return 'ratelimited'
547
+ if isinstance(status, int) and status >= _HTTP_SERVER_ERROR:
548
+ return None
549
+ get = getattr(response, 'get', None)
550
+ code: typing.Any = get('error') if callable(get) else None
551
+ if not code or code in _SLACK_AMBIGUOUS:
552
+ return None
553
+ return str(code)
554
+
555
+
556
+ async def _post_slack(token: str, channel: str, text: str) -> SlackResult:
557
+ """Post ``text`` to ``channel``, then ask for its permalink.
558
+
559
+ The client does not retry: a retry after a lost response could post
560
+ the message two times. A refusal from Slack posted nothing, so it is
561
+ a result with ``error``, except ``ratelimited``: a ``429`` releases
562
+ the key, and the engine tries again. A transport error, or a Slack
563
+ answer that may come after it posted (:func:`_slack_refusal`), is a
564
+ ``502`` and the idempotency key stays.
565
+ """
566
+ client: SlackClient = slack_client.AsyncWebClient(
567
+ token=token, timeout=_SLACK_TIMEOUT, retry_handlers=[]
568
+ )
569
+ try:
570
+ posted = await client.chat_postMessage(
571
+ channel=channel, text=text, unfurl_links=False
572
+ )
573
+ except slack_errors.SlackApiError as e:
574
+ refusal = _slack_refusal(e)
575
+ if refusal == 'ratelimited':
576
+ raise fastapi.HTTPException(
577
+ status_code=429, detail={'error': 'slack_ratelimited'}
578
+ ) from None
579
+ if refusal is not None:
580
+ return SlackResult(channel=channel, error=refusal)
581
+ raise fastapi.HTTPException(
582
+ status_code=502, detail={'error': 'slack_unreachable'}
583
+ ) from None
584
+ except _SLACK_TRANSPORT_ERRORS:
585
+ raise fastapi.HTTPException(
586
+ status_code=502, detail={'error': 'slack_unreachable'}
587
+ ) from None
588
+ ts = str(posted['ts'])
589
+ channel = str(posted.get('channel') or channel)
590
+ return SlackResult(
591
+ channel=channel,
592
+ ts=ts,
593
+ permalink=await _slack_permalink(client, channel, ts),
594
+ )
595
+
596
+
597
+ async def _slack_permalink(
598
+ client: SlackClient, channel: str, ts: str
599
+ ) -> str | None:
600
+ """Return the permalink of a message, or ``None``: the message is
601
+ posted, so a failure here does not fail the step."""
602
+ try:
603
+ found = await asyncio.wait_for(
604
+ client.chat_getPermalink(channel=channel, message_ts=ts),
605
+ _SLACK_PERMALINK_TIMEOUT,
606
+ )
607
+ except _SLACK_TRANSPORT_ERRORS:
608
+ return None
609
+ permalink: typing.Any = found.get('permalink')
610
+ return str(permalink) if permalink else None
611
+
612
+
485
613
  async def _require_engine(
486
614
  auth: typing.Annotated[
487
615
  permissions.AuthContext, fastapi.Depends(permissions.get_current_user)
@@ -545,40 +673,54 @@ async def _pinned_agent_ids(
545
673
  org_id: str,
546
674
  slug: str,
547
675
  run: workflows.Row,
548
- node_id: str,
676
+ step: workflows.Row,
549
677
  ) -> tuple[str, str | None]:
550
- """Return the agent id and project id of the node in the run's version.
678
+ """Return the agent id and project of the step in the run's version.
551
679
 
552
- They come from the pinned version, not from the rendered step
553
- input, so run input cannot choose the agent or the project. A
554
- pinned :data:`agent_step.TRIGGER_PROJECT` is the project in the
555
- run's origin, which only the gateway sets.
680
+ The agent comes from the pinned version, so run input cannot choose
681
+ it. A pinned :data:`agent_step.TRIGGER_PROJECT` is the project in
682
+ the run's origin, which only the gateway sets. Any other pinned
683
+ reference, such as the output of an earlier agent step, is the
684
+ value that the engine rendered into the step input: a project id or
685
+ slug, which :func:`agent_tasks.make_task` checks is in the org.
556
686
 
557
687
  Raises:
558
- 422: ``agent_params_not_literal``: an id is a template.
688
+ 422: ``agent_params_not_literal``: the agent id is a template.
559
689
  ``trigger_project_missing``: the run's origin has no project.
690
+ ``project_not_rendered``: the rendered project is empty, not
691
+ a string, or still a template.
560
692
 
561
693
  """
562
694
  wf_graph, _ = await _version_graph(store, org_id, slug, run['version'])
695
+ node_id = step['node_id']
563
696
  node = next((n for n in wf_graph.nodes if n.id == node_id), None)
564
697
  params = node.params if node is not None else {}
565
698
  agent_id, project_id = params.get('agent_id'), params.get('project_id')
699
+ if not isinstance(agent_id, str) or _is_template(agent_id):
700
+ raise fastapi.HTTPException(
701
+ status_code=422, detail={'error': 'agent_params_not_literal'}
702
+ )
566
703
  if project_id == agent_step.TRIGGER_PROJECT:
567
704
  project_id = run['origin'].get('project_id')
568
705
  if not project_id:
569
706
  raise fastapi.HTTPException(
570
707
  status_code=422, detail={'error': 'trigger_project_missing'}
571
708
  )
572
- if not isinstance(agent_id, str) or any(
573
- isinstance(value, str) and ('{{' in value or '{%' in value)
574
- for value in (agent_id, project_id)
575
- ):
576
- raise fastapi.HTTPException(
577
- status_code=422, detail={'error': 'agent_params_not_literal'}
578
- )
709
+ elif isinstance(project_id, str) and _is_template(project_id):
710
+ step_input: dict[str, typing.Any] = step['input'] or {}
711
+ rendered = step_input.get('project_id')
712
+ project_id = rendered.strip() if isinstance(rendered, str) else ''
713
+ if not project_id or _is_template(project_id):
714
+ raise fastapi.HTTPException(
715
+ status_code=422, detail={'error': 'project_not_rendered'}
716
+ )
579
717
  return agent_id, project_id
580
718
 
581
719
 
720
+ def _is_template(value: str) -> bool:
721
+ return '{{' in value or '{%' in value
722
+
723
+
582
724
  def _made_by_step(
583
725
  task: dict[str, typing.Any], run_id: uuid.UUID, node_key: str
584
726
  ) -> bool:
@@ -661,6 +803,7 @@ EngineAuth = typing.Annotated[
661
803
  EmailClient = typing.Annotated[
662
804
  email_client.EmailClient, fastapi.Depends(_email_client)
663
805
  ]
806
+ SlackToken = typing.Annotated[str, fastapi.Depends(_slack_token)]
664
807
 
665
808
 
666
809
  def _header(name: str) -> typing.Any:
@@ -1067,11 +1210,7 @@ async def resolve_side_effect(
1067
1210
  plugin_slug=resolved.plugin_slug,
1068
1211
  ).model_dump(mode='json')
1069
1212
  elif done:
1070
- response = (
1071
- _DEPLOYMENT_DONE
1072
- if deployment
1073
- else EmailResult(recipients=[]).model_dump()
1074
- )
1213
+ response = _done_response(effect)
1075
1214
  retry = (effect['run_id'], effect['node_id']) if body.retry else None
1076
1215
  if not await runs.resolve_side_effect(body.key, response, retry):
1077
1216
  raise fastapi.HTTPException(
@@ -1079,6 +1218,55 @@ async def resolve_side_effect(
1079
1218
  )
1080
1219
 
1081
1220
 
1221
+ def _done_response(effect: workflows.Row) -> dict[str, typing.Any]:
1222
+ """Return the result to store for a call that an operator marked
1223
+ done with no deployment run."""
1224
+ match effect['action']:
1225
+ case 'deployment':
1226
+ return _DEPLOYMENT_DONE
1227
+ case 'step-slack':
1228
+ step_input: dict[str, typing.Any] = effect['step_input'] or {}
1229
+ return SlackResult(
1230
+ channel=str(step_input.get('channel') or '')
1231
+ ).model_dump()
1232
+ case _:
1233
+ return EmailResult(recipients=[]).model_dump()
1234
+
1235
+
1236
+ async def _running_step(
1237
+ store: workflows.WorkflowStore,
1238
+ runs: workflows.RunStore,
1239
+ org_id: str,
1240
+ slug: str,
1241
+ run_id: uuid.UUID,
1242
+ node_id: str,
1243
+ ) -> workflows.Row:
1244
+ """Return the step of a run, if it is running.
1245
+
1246
+ Raises:
1247
+ 404: No such workflow, run, or step.
1248
+ 409: The step is not running.
1249
+
1250
+ """
1251
+ workflow = await _workflow(store, org_id, slug)
1252
+ await _run(runs, workflow, run_id)
1253
+ step = next(
1254
+ (s for s in await runs.steps(run_id) if s['node_id'] == node_id),
1255
+ None,
1256
+ )
1257
+ if step is None:
1258
+ raise fastapi.HTTPException(
1259
+ status_code=404, detail=f'Run {run_id} has no step {node_id!r}'
1260
+ )
1261
+ if step['status'] != 'running':
1262
+ raise fastapi.HTTPException(
1263
+ status_code=409,
1264
+ detail=f'Step {node_id!r} is not a running '
1265
+ f'{step["node_type"]} step',
1266
+ )
1267
+ return step
1268
+
1269
+
1082
1270
  @workflow_runs_router.post(
1083
1271
  '/{slug}/runs/{run_id}/steps/{node_id}/email', response_model=EmailResult
1084
1272
  )
@@ -1106,17 +1294,8 @@ async def send_step_email(
1106
1294
  ``failed``, and the engine fails the step.
1107
1295
 
1108
1296
  """
1109
- workflow = await _workflow(store, org_id, slug)
1110
- await _run(runs, workflow, run_id)
1111
- step = next(
1112
- (s for s in await runs.steps(run_id) if s['node_id'] == node_id),
1113
- None,
1114
- )
1115
- if step is None:
1116
- raise fastapi.HTTPException(
1117
- status_code=404, detail=f'Run {run_id} has no step {node_id!r}'
1118
- )
1119
- if step['node_type'] != 'email' or step['status'] != 'running':
1297
+ step = await _running_step(store, runs, org_id, slug, run_id, node_id)
1298
+ if step['node_type'] != 'email':
1120
1299
  raise fastapi.HTTPException(
1121
1300
  status_code=409,
1122
1301
  detail=f'Step {node_id!r} is not a running email step',
@@ -1136,6 +1315,62 @@ async def send_step_email(
1136
1315
  )
1137
1316
 
1138
1317
 
1318
+ @workflow_runs_router.post(
1319
+ '/{slug}/runs/{run_id}/steps/{node_id}/slack', response_model=SlackResult
1320
+ )
1321
+ async def send_step_slack(
1322
+ org_id: OrgId,
1323
+ slug: str,
1324
+ run_id: uuid.UUID,
1325
+ node_id: str,
1326
+ store: workflows.Store,
1327
+ runs: workflows.Runs,
1328
+ token: SlackToken,
1329
+ auth: EngineAuth,
1330
+ idempotency_key: IdempotencyKey,
1331
+ ) -> dict[str, typing.Any]:
1332
+ """Post the message of a running slack step. Engine only.
1333
+
1334
+ Raises:
1335
+ 404: No such workflow, run, or step.
1336
+ 409: The step is not a running slack step, or
1337
+ ``outcome_unknown``: a call with the key did not finish.
1338
+ 422: ``invalid_channel``: the channel is not a Slack channel id.
1339
+ 502: ``slack_unreachable``: the call to Slack failed, and Slack
1340
+ may have posted the message.
1341
+ 503: ``slack_not_configured``: imbi-api has no bot token.
1342
+
1343
+ A refusal from Slack is not an error here: the response has its
1344
+ code in ``error``, and the engine fails the step.
1345
+
1346
+ """
1347
+ step = await _running_step(store, runs, org_id, slug, run_id, node_id)
1348
+ if step['node_type'] != 'slack':
1349
+ raise fastapi.HTTPException(
1350
+ status_code=409,
1351
+ detail=f'Step {node_id!r} is not a running slack step',
1352
+ )
1353
+ # Checked before the key is taken: a 5xx inside ``once`` keeps the
1354
+ # key, and this one posted nothing.
1355
+ if not token:
1356
+ raise fastapi.HTTPException(
1357
+ status_code=503, detail={'error': 'slack_not_configured'}
1358
+ )
1359
+ params = slack_step.Params.model_validate(step['input'])
1360
+ if not slack_step.CHANNEL_ID.match(params.channel):
1361
+ raise fastapi.HTTPException(
1362
+ status_code=422, detail={'error': 'invalid_channel'}
1363
+ )
1364
+
1365
+ async def call() -> dict[str, typing.Any]:
1366
+ posted = await _post_slack(token, params.channel, params.text)
1367
+ return posted.model_dump()
1368
+
1369
+ return await runs.once(
1370
+ auth.principal_name, 'step-slack', idempotency_key, call
1371
+ )
1372
+
1373
+
1139
1374
  @workflow_runs_router.post(
1140
1375
  '/{slug}/runs/{run_id}/failure-notice', response_model=EmailResult
1141
1376
  )
@@ -1210,16 +1445,18 @@ async def step_agent_task(
1210
1445
  workflow owns the task, and must still be able to make agent tasks
1211
1446
  in the org. The engine polls this route until the task is closed.
1212
1447
 
1213
- The agent and the project come from the pinned version (see
1214
- :func:`_pinned_agent_ids`). A task with the key that this step did
1215
- not make, or that has another agent, is refused.
1448
+ The agent comes from the pinned version, and the project from the
1449
+ pinned version or the step input (see :func:`_pinned_agent_ids`).
1450
+ A task with the key that this step did not make, or that has
1451
+ another agent, is refused.
1216
1452
 
1217
1453
  Raises:
1218
1454
  403: ``owner_forbidden``: the activator cannot make agent tasks.
1219
1455
  404: No such workflow, run, or step.
1220
1456
  409: The step is not a running agent step, the agent is
1221
1457
  disabled, or ``task_key_conflict``.
1222
- 422: ``agent_not_found``, ``agent_params_not_literal``, or the
1458
+ 422: ``agent_not_found``, ``agent_params_not_literal``,
1459
+ ``trigger_project_missing``, ``project_not_rendered``, or the
1223
1460
  project or the budget is not valid (see
1224
1461
  :func:`agent_tasks.make_task`).
1225
1462
 
@@ -1227,7 +1464,7 @@ async def step_agent_task(
1227
1464
  workflow = await _workflow(store, org_id, slug)
1228
1465
  run, step, origin, key = await _agent_step(runs, workflow, run_id, node_id)
1229
1466
  agent_id, project_id = await _pinned_agent_ids(
1230
- store, org_id, slug, run, node_id
1467
+ store, org_id, slug, run, step
1231
1468
  )
1232
1469
  task = await tasks.find_by_idempotency_key(
1233
1470
  org_id, origin.kind, origin.id, key