imbi-api 2.64.0__tar.gz → 2.65.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 (481) hide show
  1. {imbi_api-2.64.0 → imbi_api-2.65.0}/PKG-INFO +2 -2
  2. {imbi_api-2.64.0 → imbi_api-2.65.0}/pyproject.toml +2 -2
  3. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_status_repair.py +3 -1
  4. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/projects.py +196 -205
  5. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/pull_requests.py +18 -13
  6. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/releases.py +3 -4
  7. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/secret_broker.py +3 -2
  8. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/operations.py +57 -1
  9. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/registry.py +32 -0
  10. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/broker.py +12 -5
  11. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/schemata.toml +2 -1
  12. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_projects.py +72 -0
  13. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_projects_helpers.py +180 -154
  14. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_pull_requests.py +3 -0
  15. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_releases.py +28 -12
  16. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_operations.py +55 -0
  17. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_broker.py +42 -0
  18. {imbi_api-2.64.0 → imbi_api-2.65.0}/.gitignore +0 -0
  19. {imbi_api-2.64.0 → imbi_api-2.65.0}/README.md +0 -0
  20. {imbi_api-2.64.0 → imbi_api-2.65.0}/moon.yml +0 -0
  21. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/README.md +0 -0
  22. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/__init__.py +0 -0
  23. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/agent_tools.py +0 -0
  24. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/app.py +0 -0
  25. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/__init__.py +0 -0
  26. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/agent_api.py +0 -0
  27. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/agent_api_routes.py +0 -0
  28. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/authorization_codes.py +0 -0
  29. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/autonomous.py +0 -0
  30. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/internal_services.py +0 -0
  31. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/local_auth.py +0 -0
  32. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/login_providers.py +0 -0
  33. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/membership.py +0 -0
  34. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/models.py +0 -0
  35. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/oauth_clients.py +0 -0
  36. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/organizations.py +0 -0
  37. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/password.py +0 -0
  38. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/permissions.py +0 -0
  39. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/principals.py +0 -0
  40. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/seed.py +0 -0
  41. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/sessions.py +0 -0
  42. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/tokens.py +0 -0
  43. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/totp.py +0 -0
  44. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/backfill_embeddings.py +0 -0
  45. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_attributes.py +0 -0
  46. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_compliance.py +0 -0
  47. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_sections.py +0 -0
  48. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_values.py +0 -0
  49. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
  50. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_sync/__init__.py +0 -0
  51. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_sync/queue.py +0 -0
  52. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_sync/service.py +0 -0
  53. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/component_facts.py +0 -0
  54. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/cves.py +0 -0
  55. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sweeper.py +0 -0
  56. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
  57. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sync/queue.py +0 -0
  58. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sync/service.py +0 -0
  59. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/documents/__init__.py +0 -0
  60. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/documents/read_sweeper.py +0 -0
  61. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/domain/__init__.py +0 -0
  62. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/domain/models.py +0 -0
  63. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/domain/scoring.py +0 -0
  64. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/drift.py +0 -0
  65. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/__init__.py +0 -0
  66. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/client.py +0 -0
  67. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/dependencies.py +0 -0
  68. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/models.py +0 -0
  69. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/base.html +0 -0
  70. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/base.txt +0 -0
  71. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/password_reset.html +0 -0
  72. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
  73. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/welcome.html +0 -0
  74. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/welcome.txt +0 -0
  75. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates.py +0 -0
  76. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/__init__.py +0 -0
  77. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_credentials.py +0 -0
  78. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_events.py +0 -0
  79. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_history.py +0 -0
  80. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
  81. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
  82. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_helpers.py +0 -0
  83. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
  84. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_local_time.py +0 -0
  85. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_pagination.py +0 -0
  86. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
  87. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_search_index.py +0 -0
  88. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/admin.py +0 -0
  89. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
  90. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
  91. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
  92. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/agents.py +0 -0
  93. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/ai_models.py +0 -0
  94. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
  95. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/api_keys.py +0 -0
  96. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/auth.py +0 -0
  97. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
  98. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/blueprints.py +0 -0
  99. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
  100. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/comments.py +0 -0
  101. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/components.py +0 -0
  102. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/cves.py +0 -0
  103. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/dashboard.py +0 -0
  104. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
  105. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_likes.py +0 -0
  106. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_presence.py +0 -0
  107. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_templates.py +0 -0
  108. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_versions.py +0 -0
  109. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/documents.py +0 -0
  110. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/environments.py +0 -0
  111. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/events.py +0 -0
  112. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/graph_query.py +0 -0
  113. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/harness.py +0 -0
  114. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
  115. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/integration_workflow_steps.py +0 -0
  116. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/integrations.py +0 -0
  117. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
  118. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/local_auth.py +0 -0
  119. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/maintenance.py +0 -0
  120. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
  121. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/mfa.py +0 -0
  122. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
  123. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/operations_log.py +0 -0
  124. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/organizations.py +0 -0
  125. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
  126. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
  127. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/plugins.py +0 -0
  128. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
  129. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
  130. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
  131. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
  132. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
  133. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
  134. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
  135. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_logs.py +0 -0
  136. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
  137. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
  138. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_types.py +0 -0
  139. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/prompts.py +0 -0
  140. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/roles.py +0 -0
  141. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
  142. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/scoring.py +0 -0
  143. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
  144. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/search.py +0 -0
  145. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
  146. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/status.py +0 -0
  147. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/tags.py +0 -0
  148. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/teams.py +0 -0
  149. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/ticket_harness.py +0 -0
  150. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/tickets.py +0 -0
  151. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/uploads.py +0 -0
  152. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/user_activity.py +0 -0
  153. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/users.py +0 -0
  154. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/webhooks.py +0 -0
  155. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/workflow_runs.py +0 -0
  156. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/workflows.py +0 -0
  157. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/entrypoint.py +0 -0
  158. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/graph_ids.py +0 -0
  159. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/graph_sql.py +0 -0
  160. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/__init__.py +0 -0
  161. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/auth.py +0 -0
  162. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/egress.py +0 -0
  163. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/marketplaces.py +0 -0
  164. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/metrics.py +0 -0
  165. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/platform.py +0 -0
  166. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/schemata.toml +0 -0
  167. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/store.py +0 -0
  168. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/sweeper.py +0 -0
  169. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/tokens.py +0 -0
  170. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/__init__.py +0 -0
  171. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/attribution.py +0 -0
  172. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/endpoints.py +0 -0
  173. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/errors.py +0 -0
  174. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/flows.py +0 -0
  175. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/host_integration.py +0 -0
  176. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/models.py +0 -0
  177. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/repository.py +0 -0
  178. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/resolution.py +0 -0
  179. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/state.py +0 -0
  180. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/sweeper.py +0 -0
  181. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/iggy_metrics.py +0 -0
  182. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/lifespans.py +0 -0
  183. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/__init__.py +0 -0
  184. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/dependencies.py +0 -0
  185. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/generate.py +0 -0
  186. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/prompted.py +0 -0
  187. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/tokens.py +0 -0
  188. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/__init__.py +0 -0
  189. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/log.py +0 -0
  190. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/state.py +0 -0
  191. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/worker.py +0 -0
  192. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/mcp_test.py +0 -0
  193. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/middleware/__init__.py +0 -0
  194. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/middleware/rate_limit.py +0 -0
  195. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/model_calls/__init__.py +0 -0
  196. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/model_calls/schemata.toml +0 -0
  197. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/models.py +0 -0
  198. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/openapi.py +0 -0
  199. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/orphan_releases.py +0 -0
  200. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/__init__.py +0 -0
  201. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
  202. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/assignments.py +0 -0
  203. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/credentials.py +0 -0
  204. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/installer.py +0 -0
  205. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/lifecycle.py +0 -0
  206. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
  207. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
  208. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/reload.py +0 -0
  209. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/resolution.py +0 -0
  210. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/schemas.py +0 -0
  211. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/pr_sync/__init__.py +0 -0
  212. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/pr_sync/queue.py +0 -0
  213. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/pr_sync/service.py +0 -0
  214. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/preferences/__init__.py +0 -0
  215. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/preferences/schemata.toml +0 -0
  216. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/prompts/__init__.py +0 -0
  217. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
  218. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/prompts/seed.py +0 -0
  219. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/py.typed +0 -0
  220. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/relationships.py +0 -0
  221. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/release_promote/__init__.py +0 -0
  222. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/release_promote/queue.py +0 -0
  223. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/release_promote/service.py +0 -0
  224. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/sbom.py +0 -0
  225. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/scoring/__init__.py +0 -0
  226. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/scoring/queue.py +0 -0
  227. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/__init__.py +0 -0
  228. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/audit.py +0 -0
  229. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/identity.py +0 -0
  230. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/providers.py +0 -0
  231. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/store.py +0 -0
  232. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/settings.py +0 -0
  233. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/__init__.py +0 -0
  234. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/client.py +0 -0
  235. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/dependencies.py +0 -0
  236. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/thumbnails.py +0 -0
  237. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/validation.py +0 -0
  238. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tags.py +0 -0
  239. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/teams.py +0 -0
  240. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/__init__.py +0 -0
  241. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/announce.py +0 -0
  242. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/custom_fields.py +0 -0
  243. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/log.py +0 -0
  244. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/schemata.toml +0 -0
  245. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/store.py +0 -0
  246. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/sweeper.py +0 -0
  247. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/user_document_orgs.py +0 -0
  248. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/__init__.py +0 -0
  249. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/plugin_calls.py +0 -0
  250. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/runs.py +0 -0
  251. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/runtime_schemata.toml +0 -0
  252. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/schemata.toml +0 -0
  253. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/store.py +0 -0
  254. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/sweeper.py +0 -0
  255. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/ticket_trigger.py +0 -0
  256. {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/tickets.py +0 -0
  257. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/__init__.py +0 -0
  258. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/__init__.py +0 -0
  259. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_authentication.py +0 -0
  260. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_authorization.py +0 -0
  261. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_encryption.py +0 -0
  262. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_internal_services.py +0 -0
  263. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_login_providers.py +0 -0
  264. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_membership.py +0 -0
  265. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_oauth_server.py +0 -0
  266. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_organizations.py +0 -0
  267. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_permissions.py +0 -0
  268. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_seed.py +0 -0
  269. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_sessions.py +0 -0
  270. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_totp.py +0 -0
  271. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/__init__.py +0 -0
  272. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/test_client.py +0 -0
  273. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/test_init.py +0 -0
  274. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/test_privacy.py +0 -0
  275. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/__init__.py +0 -0
  276. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_audit_clickhouse.py +0 -0
  277. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_client.py +0 -0
  278. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_init.py +0 -0
  279. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_integration.py +0 -0
  280. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_models.py +0 -0
  281. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_templates.py +0 -0
  282. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/__init__.py +0 -0
  283. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_admin.py +0 -0
  284. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_admin_plugins.py +0 -0
  285. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_api.py +0 -0
  286. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_platform.py +0 -0
  287. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_actions.py +0 -0
  288. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_harness.py +0 -0
  289. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_log.py +0 -0
  290. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_relations.py +0 -0
  291. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_tasks.py +0 -0
  292. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_usage.py +0 -0
  293. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agents.py +0 -0
  294. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ai_models.py +0 -0
  295. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ai_providers.py +0 -0
  296. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_api_keys.py +0 -0
  297. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_auth.py +0 -0
  298. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_auth_providers.py +0 -0
  299. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_blueprints.py +0 -0
  300. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
  301. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_client_credentials.py +0 -0
  302. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_comments.py +0 -0
  303. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_comments_attention.py +0 -0
  304. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_components.py +0 -0
  305. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_credentials.py +0 -0
  306. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_cross_org_reads.py +0 -0
  307. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_cves.py +0 -0
  308. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_dashboard.py +0 -0
  309. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_analytics.py +0 -0
  310. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_likes.py +0 -0
  311. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_presence.py +0 -0
  312. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_reads.py +0 -0
  313. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_reads_sql.py +0 -0
  314. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_templates.py +0 -0
  315. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_versions.py +0 -0
  316. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_documents.py +0 -0
  317. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_environments.py +0 -0
  318. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_events.py +0 -0
  319. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_github_app_repository.py +0 -0
  320. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_graph_query.py +0 -0
  321. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_harness.py +0 -0
  322. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_harness_egress.py +0 -0
  323. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_harness_secrets.py +0 -0
  324. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_iggy_connectors.py +0 -0
  325. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_init.py +0 -0
  326. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_integration_workflow_steps.py +0 -0
  327. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_integration_workflow_steps_choices.py +0 -0
  328. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_integrations.py +0 -0
  329. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_json_fields.py +0 -0
  330. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_link_definitions.py +0 -0
  331. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_local_auth.py +0 -0
  332. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_maintenance.py +0 -0
  333. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_mcp_servers.py +0 -0
  334. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_mfa.py +0 -0
  335. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_operations_log.py +0 -0
  336. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_organizations.py +0 -0
  337. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_pagination.py +0 -0
  338. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_person_tickets.py +0 -0
  339. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
  340. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_plugins.py +0 -0
  341. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_analysis.py +0 -0
  342. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_commit_sync.py +0 -0
  343. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_configuration.py +0 -0
  344. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_deployments.py +0 -0
  345. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
  346. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_incidents.py +0 -0
  347. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_integrations.py +0 -0
  348. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_lifecycle.py +0 -0
  349. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_logs.py +0 -0
  350. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_plugins.py +0 -0
  351. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
  352. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_types.py +0 -0
  353. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_prompt_decisions.py +0 -0
  354. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_prompt_generative.py +0 -0
  355. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_prompts.py +0 -0
  356. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_request_urls.py +0 -0
  357. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_roles.py +0 -0
  358. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_sa_api_keys.py +0 -0
  359. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_scoring.py +0 -0
  360. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_scoring_policies.py +0 -0
  361. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_search.py +0 -0
  362. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_search_index.py +0 -0
  363. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_secret_broker.py +0 -0
  364. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_service_accounts.py +0 -0
  365. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_service_writeback.py +0 -0
  366. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_shared_identifier.py +0 -0
  367. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_status.py +0 -0
  368. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_tags.py +0 -0
  369. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_teams.py +0 -0
  370. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_agent_activity.py +0 -0
  371. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_attributes.py +0 -0
  372. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_custom_fields.py +0 -0
  373. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_handoff.py +0 -0
  374. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_reopen.py +0 -0
  375. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_units.py +0 -0
  376. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_waiting.py +0 -0
  377. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_uploads.py +0 -0
  378. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_user_activity.py +0 -0
  379. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_user_preferences.py +0 -0
  380. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_users.py +0 -0
  381. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_webhooks.py +0 -0
  382. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflow_run_history.py +0 -0
  383. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflow_runs.py +0 -0
  384. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflow_triggers.py +0 -0
  385. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflows.py +0 -0
  386. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
  387. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_2_58/harness_schemata.toml +0 -0
  388. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_2_58/tickets_schemata.toml +0 -0
  389. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a/harness_schemata.toml +0 -0
  390. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a/tickets_schemata.toml +0 -0
  391. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
  392. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
  393. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b/harness_schemata.toml +0 -0
  394. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b/tickets_schemata.toml +0 -0
  395. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b1/harness_schemata.toml +0 -0
  396. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b1/tickets_schemata.toml +0 -0
  397. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
  398. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
  399. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/sbom/tiny.json +0 -0
  400. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/__init__.py +0 -0
  401. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_endpoints.py +0 -0
  402. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_errors.py +0 -0
  403. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_flows.py +0 -0
  404. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_host_integration.py +0 -0
  405. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_repository.py +0 -0
  406. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_resolution.py +0 -0
  407. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_state.py +0 -0
  408. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_sweeper.py +0 -0
  409. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/marketplace_support.py +0 -0
  410. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/middleware/test_rate_limit.py +0 -0
  411. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/secret_support.py +0 -0
  412. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/__init__.py +0 -0
  413. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_client.py +0 -0
  414. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_init.py +0 -0
  415. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_thumbnails.py +0 -0
  416. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_validation.py +0 -0
  417. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/support.py +0 -0
  418. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_agent_platform.py +0 -0
  419. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_agent_task_events_e2e.py +0 -0
  420. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_agent_tools.py +0 -0
  421. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_ai_provider_tokens.py +0 -0
  422. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_app.py +0 -0
  423. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_assignment_writer.py +0 -0
  424. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_auth_settings.py +0 -0
  425. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_backfill_embeddings.py +0 -0
  426. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprint_attributes.py +0 -0
  427. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprint_compliance.py +0 -0
  428. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprint_values.py +0 -0
  429. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprints.py +0 -0
  430. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_clickhouse_project_ids.py +0 -0
  431. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_commit_pushed_at_repair.py +0 -0
  432. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_commit_sync_queue.py +0 -0
  433. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_commit_sync_service.py +0 -0
  434. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_component_facts.py +0 -0
  435. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_cves.py +0 -0
  436. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_status_repair.py +0 -0
  437. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_sweeper.py +0 -0
  438. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_sync_queue.py +0 -0
  439. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_sync_service.py +0 -0
  440. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_drift.py +0 -0
  441. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_entrypoint.py +0 -0
  442. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_graph_ids.py +0 -0
  443. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_graph_sql.py +0 -0
  444. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_identity_attribution.py +0 -0
  445. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_iggy_metrics.py +0 -0
  446. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_init.py +0 -0
  447. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_installer.py +0 -0
  448. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_lifecycle_dispatch.py +0 -0
  449. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_lifespans.py +0 -0
  450. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_log.py +0 -0
  451. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_state.py +0 -0
  452. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_worker.py +0 -0
  453. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_model_calls.py +0 -0
  454. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_models.py +0 -0
  455. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_openapi.py +0 -0
  456. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_orphan_releases.py +0 -0
  457. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugin_schemas.py +0 -0
  458. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugins.py +0 -0
  459. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugins_assignments.py +0 -0
  460. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugins_credentials.py +0 -0
  461. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pr_sync_queue.py +0 -0
  462. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pr_sync_service.py +0 -0
  463. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_projects_drift_ranges.py +0 -0
  464. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_prompt_seed.py +0 -0
  465. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
  466. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
  467. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pull_requests_pending_deploy.py +0 -0
  468. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_release_dispatch.py +0 -0
  469. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_release_promote_service.py +0 -0
  470. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_sbom.py +0 -0
  471. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_scoring_queue.py +0 -0
  472. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_scoring_triggers.py +0 -0
  473. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_github_app.py +0 -0
  474. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_identity.py +0 -0
  475. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_providers.py +0 -0
  476. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_settings.py +0 -0
  477. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_tags.py +0 -0
  478. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_ticket_state_trigger.py +0 -0
  479. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_tickets_rename.py +0 -0
  480. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_workflow_reconcile.py +0 -0
  481. {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_workflow_tickets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: imbi-api
3
- Version: 2.64.0
3
+ Version: 2.65.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.64.0
23
+ Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.65.0
24
24
  Requires-Dist: jinja2
25
25
  Requires-Dist: jsonpatch>=1.33
26
26
  Requires-Dist: jsonschema>=4.26
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "imbi-api"
3
- version = "2.64.0"
3
+ version = "2.65.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.64.0",
32
+ "imbi-common[databases,llm,mcp,script,sentry,server]==2.65.0",
33
33
  "jinja2",
34
34
  "jsonpatch>=1.33",
35
35
  "jsonschema>=4.26",
@@ -42,7 +42,7 @@ import datetime
42
42
  import logging
43
43
  import typing
44
44
 
45
- from imbi.common import graph
45
+ from imbi.common import deployments, graph
46
46
 
47
47
  LOGGER = logging.getLogger(__name__)
48
48
 
@@ -175,4 +175,6 @@ async def repair_project(
175
175
  node_id,
176
176
  project_id,
177
177
  )
178
+ if repaired:
179
+ await deployments.refresh_deployment_state(db, project_id)
178
180
  return RepairSummary(examined, repaired, unrepairable)
@@ -9,10 +9,12 @@ import collections.abc
9
9
  import datetime
10
10
  import json
11
11
  import logging
12
+ import time
12
13
  import typing
13
14
 
14
15
  import fastapi
15
16
  import nanoid
17
+ import prometheus_client
16
18
  import psycopg
17
19
  import pydantic
18
20
 
@@ -685,46 +687,6 @@ async def _resolve_display_names(
685
687
  }
686
688
 
687
689
 
688
- def _latest_deployment_event(
689
- raw: typing.Any,
690
- ) -> tuple[datetime.datetime, str | None] | None:
691
- """Return ``(timestamp, performed_by)`` of the latest event, or ``None``.
692
-
693
- The ``deployments`` edge property is a JSON-encoded list of
694
- ``DeploymentEvent``-shaped objects. ``_fetch_current_releases``
695
- only needs the most recent ``(timestamp, performed_by)`` per
696
- ``(project, environment)`` pair, so we parse straight off the dicts
697
- and skip the per-entry Pydantic validation that
698
- ``_parse_deployment_events`` used to pay for.
699
- """
700
- if not raw:
701
- return None
702
- data = json.loads(raw) if isinstance(raw, str) else raw
703
- if not isinstance(data, list):
704
- return None
705
- latest_ts: datetime.datetime | None = None
706
- latest_by: str | None = None
707
- for entry in data: # type: ignore[reportUnknownVariableType]
708
- if not isinstance(entry, dict):
709
- continue
710
- ts = entry.get('timestamp') # type: ignore[reportUnknownMemberType]
711
- if not isinstance(ts, str):
712
- continue
713
- try:
714
- parsed = datetime.datetime.fromisoformat(ts)
715
- except ValueError:
716
- continue
717
- if latest_ts is None or parsed > latest_ts:
718
- latest_ts = parsed
719
- performed_by = entry.get( # type: ignore[reportUnknownMemberType]
720
- 'performed_by'
721
- )
722
- latest_by = performed_by if isinstance(performed_by, str) else None
723
- if latest_ts is None:
724
- return None
725
- return latest_ts, latest_by
726
-
727
-
728
690
  def ops_log_version_candidates(
729
691
  tag: str | None, committish: str | None
730
692
  ) -> list[str]:
@@ -807,76 +769,103 @@ async def lookup_ops_log_performed_by(
807
769
  return result
808
770
 
809
771
 
810
- async def _apply_deployment_nodes(
772
+ class CurrentReleaseState(typing.NamedTuple):
773
+ """Per-project current releases and latest attempts, by env slug."""
774
+
775
+ current: dict[str, dict[str, ReleaseInfo]]
776
+ latest: dict[str, dict[str, LatestDeployment]]
777
+
778
+
779
+ #: Background shadow reads, held so the event loop does not drop them.
780
+ _SHADOW_TASKS: set[asyncio.Task[None]] = set()
781
+ #: At most one shadow read a minute, so it adds little graph load.
782
+ _SHADOW_INTERVAL = 60.0
783
+ _shadow_last = 0.0
784
+ _SHADOW_READS = prometheus_client.Counter(
785
+ 'imbi_deployment_state_shadow_reads',
786
+ 'Projects-list shadow reads of the stored deployment state, by result',
787
+ ['result'],
788
+ )
789
+
790
+
791
+ def _shadow_state_read(
811
792
  db: graph.Graph,
812
793
  project_ids: list[str],
813
- current: dict[
814
- tuple[str, str],
815
- tuple[str | None, str | None, datetime.datetime, str | None],
816
- ],
817
- ) -> dict[tuple[str, str], LatestDeployment]:
818
- """Union the ``Deployment`` nodes over the legacy array entries.
819
-
820
- The array stopped growing at the node cutover, so anything deployed
821
- since is only a node. The shared reader answers with two attempts
822
- per environment: only the newest *successful* one may displace a
823
- legacy array entry as the current release, and the newest attempt of
824
- any status becomes the returned ``LatestDeployment`` when it is a
825
- different attempt.
826
-
827
- Failures are swallowed for the same reason the query in
828
- :func:`_fetch_current_releases` is: release data is best-effort.
794
+ states: list[deployment_nodes.EnvironmentReleaseState],
795
+ ) -> None:
796
+ """Compare the stored deployment state with the reader in a
797
+ background task, at most once a minute, and count the result in
798
+ ``imbi_deployment_state_shadow_reads_total{result=match|differ|error}``.
799
+ A difference also logs a WARNING that names the environments.
800
+
801
+ ponytail: shadow mode for issue #998 phase 3. After one week with
802
+ no ``differ`` or ``error``, the list reads the stored state and this
803
+ goes.
829
804
  """
830
- try:
831
- rows = await deployment_nodes.current_and_latest_by_project(
832
- db, project_ids
833
- )
834
- except Exception: # noqa: BLE001
835
- LOGGER.warning(
836
- 'Failed to fetch deployment nodes for projects', exc_info=True
837
- )
838
- return {}
839
- latest_deployments: dict[tuple[str, str], LatestDeployment] = {}
840
- for entry in rows:
841
- key = (entry.project_id, str(entry.environment.get('slug') or ''))
842
- legacy = current.get(key)
843
- if entry.current is not None and entry.current.release is not None:
844
- if legacy is None or deployment_nodes.as_utc(
845
- entry.current.event.timestamp
846
- ) > deployment_nodes.as_utc(legacy[2]):
847
- legacy = None
848
- current[key] = (
849
- entry.current.release.get('tag') or None,
850
- entry.current.release.get('committish') or None,
851
- entry.current.event.timestamp,
852
- entry.current.event.performed_by,
805
+ global _shadow_last
806
+ now = time.monotonic()
807
+ if _SHADOW_TASKS or now - _shadow_last < _SHADOW_INTERVAL:
808
+ return
809
+ _shadow_last = now
810
+
811
+ def differences(
812
+ old: list[deployment_nodes.EnvironmentReleaseState],
813
+ new: list[deployment_nodes.EnvironmentReleaseState],
814
+ ) -> list[str]:
815
+ """The ``project/environment`` keys whose two answers differ in
816
+ the deployment or the release of either attempt."""
817
+
818
+ def ids(
819
+ found: list[deployment_nodes.EnvironmentReleaseState],
820
+ ) -> dict[str, tuple[object, ...]]:
821
+ return {
822
+ f'{s.project_id}/{s.environment.get("slug") or ""}': (
823
+ deployment_nodes.state_ids(s),
824
+ (s.current.release or {}).get('id') if s.current else None,
825
+ (s.latest.release or {}).get('id'),
853
826
  )
854
- # The reader hands back the same node as both attempts when the
855
- # newest one is the one serving traffic, so the two compare
856
- # equal and there is nothing extra to report.
857
- if entry.latest.release is not None and entry.latest != entry.current:
858
- # And it has to be newer than a legacy array entry that won
859
- # as current. The pill means "something happened here after
860
- # the release that is serving"; against a newer legacy entry
861
- # an unguarded write made that sentence false. Compare when
862
- # the attempt *started*: one closed late (e.g. a stuck
863
- # rollout swept to failed) is not newer than a release that
864
- # went out after it began. When a node won, the reader has
865
- # already compared start times, and the serving node's
866
- # timestamp is its last status change, not its start.
867
- if legacy is not None and deployment_nodes.started_at(
868
- entry.latest
869
- ) <= deployment_nodes.as_utc(legacy[2]):
870
- continue
871
- latest_deployments[key] = LatestDeployment.from_node(entry.latest)
872
- return latest_deployments
827
+ for s in found
828
+ }
873
829
 
830
+ a, b = ids(old), ids(new)
831
+ return sorted(k for k in a.keys() | b.keys() if a.get(k) != b.get(k))
874
832
 
875
- class CurrentReleaseState(typing.NamedTuple):
876
- """Per-project current releases and latest attempts, by env slug."""
833
+ async def run() -> None:
834
+ try:
835
+ found = differences(
836
+ states,
837
+ await deployment_nodes.current_and_latest_from_state(
838
+ db, project_ids
839
+ ),
840
+ )
841
+ if found:
842
+ # The two reads do not share a snapshot, so a deployment
843
+ # written between them shows as a difference. Read the
844
+ # projects concerned again, both ways, and count only a
845
+ # difference that remains.
846
+ again = sorted({key.split('/', 1)[0] for key in found})
847
+ old, new = await asyncio.gather(
848
+ deployment_nodes.current_and_latest_by_project(db, again),
849
+ deployment_nodes.current_and_latest_from_state(db, again),
850
+ )
851
+ found = differences(old, new)
852
+ except Exception: # noqa: BLE001
853
+ _SHADOW_READS.labels('error').inc()
854
+ LOGGER.warning(
855
+ 'Deployment state shadow read failed', exc_info=True
856
+ )
857
+ return
858
+ _SHADOW_READS.labels('differ' if found else 'match').inc()
859
+ if found:
860
+ LOGGER.warning(
861
+ 'Deployment state shadow read differs for %d environments: %s',
862
+ len(found),
863
+ ', '.join(found),
864
+ )
877
865
 
878
- current: dict[str, dict[str, ReleaseInfo]]
879
- latest: dict[str, dict[str, LatestDeployment]]
866
+ task = asyncio.create_task(run())
867
+ _SHADOW_TASKS.add(task)
868
+ task.add_done_callback(_SHADOW_TASKS.discard)
880
869
 
881
870
 
882
871
  async def _fetch_current_releases(
@@ -886,114 +875,72 @@ async def _fetch_current_releases(
886
875
  """Return the current release and latest attempt per environment.
887
876
 
888
877
  Both keyed ``{project_id: {env_slug: ...}}``. ``Deployment`` nodes
889
- are read through ``current_and_latest_by_project`` — the same reader
890
- the project-detail ``/releases/current`` endpoint uses — so both
891
- views agree on which attempt is current.
892
-
893
- The legacy ``DEPLOYED_TO`` array is still the only record of
894
- anything deployed before the node cutover, so it is read here as
895
- well: for each project we walk every
896
- ``(p)-[:HAS_RELEASE]->(r:Release)-[d:DEPLOYED_TO]->(e:Environment)``
897
- edge and pick the release whose latest ``DeploymentEvent`` has the
898
- most recent ``timestamp`` per environment. Those entries carry no
899
- per-attempt identity to group by, so they cannot be status-filtered
900
- the way the nodes are; a node only ever displaces one.
901
-
902
- ``performed_by`` on each ``DeploymentEvent`` is populated for
903
- resync-sourced events but is intentionally null for in-product
904
- deploy/promote actions (which capture the operator on the
905
- ``operations_log`` audit row instead). For those rows we look
906
- up the deployer in ``operations_log`` keyed on
907
- ``(project_id, environment_slug, version)`` — where ``version``
908
- is ``tag if tag else committish``, matching the audit writer.
909
-
910
- Errors are swallowed — release data is best-effort.
878
+ are read through ``current_and_latest_by_project``, the reader the
879
+ project-detail ``/releases/current`` endpoint also uses, so both
880
+ views agree on which attempt is current. The reader answers with
881
+ two attempts per environment: the newest *successful* one is the
882
+ current release, and the newest attempt of any status is returned
883
+ as the latest when it is a different attempt.
884
+
885
+ The legacy ``DEPLOYED_TO`` deployment arrays are not read. In
886
+ production they decided no current release (issue #998), and reading
887
+ them cost about 500 ms on every list.
888
+
889
+ ``performed_by`` is null for in-product deploy/promote actions
890
+ (which capture the operator on the ``operations_log`` audit row
891
+ instead). For those rows we look up the deployer in
892
+ ``operations_log`` keyed on ``(project_id, environment_slug,
893
+ version)`` -- where ``version`` is ``tag if tag else committish``,
894
+ matching the audit writer.
895
+
896
+ Errors are swallowed -- release data is best-effort.
911
897
  """
912
898
  if not project_ids:
913
899
  return CurrentReleaseState({}, {})
914
- query: typing.LiteralString = """
915
- MATCH (p:Project)-[:HAS_RELEASE]->(r:Release)
916
- -[d:DEPLOYED_TO]->(e:Environment)
917
- WHERE p.id IN {project_ids}
918
- RETURN p.id AS project_id,
919
- e.slug AS env_slug,
920
- r.tag AS tag,
921
- r.committish AS committish,
922
- d.deployments AS deployments
923
- """
924
900
  try:
925
- rows = await db.execute(
926
- query,
927
- {'project_ids': project_ids},
928
- ['project_id', 'env_slug', 'tag', 'committish', 'deployments'],
901
+ states = await deployment_nodes.current_and_latest_by_project(
902
+ db, project_ids
929
903
  )
930
904
  except Exception: # noqa: BLE001
931
905
  LOGGER.warning(
932
- 'Failed to fetch current releases for projects', exc_info=True
906
+ 'Failed to fetch deployment nodes for projects', exc_info=True
933
907
  )
934
908
  return CurrentReleaseState({}, {})
909
+ _shadow_state_read(db, project_ids, states)
910
+ current: dict[str, dict[str, ReleaseInfo]] = {}
911
+ latest: dict[str, dict[str, LatestDeployment]] = {}
912
+ for state in states:
913
+ env_slug = str(state.environment.get('slug') or '')
914
+ serving = state.current
915
+ if serving is not None and serving.release is not None:
916
+ current.setdefault(state.project_id, {})[env_slug] = ReleaseInfo(
917
+ tag=serving.release.get('tag') or None,
918
+ committish=serving.release.get('committish') or None,
919
+ performed_by=serving.event.performed_by,
920
+ deployed_at=serving.event.timestamp,
921
+ )
922
+ # The reader hands back the same node as both attempts when the
923
+ # newest one is the one serving traffic, so the two compare
924
+ # equal and there is nothing extra to report.
925
+ if state.latest.release is not None and state.latest != serving:
926
+ latest.setdefault(state.project_id, {})[env_slug] = (
927
+ LatestDeployment.from_node(state.latest)
928
+ )
935
929
 
936
- # For each (project_id, env_slug), keep the (release, event) pair
937
- # with the latest event timestamp.
938
- latest: dict[
939
- tuple[str, str],
940
- tuple[str | None, str | None, datetime.datetime, str | None],
941
- ] = {}
942
- for row in rows:
943
- pid = graph.parse_agtype(row.get('project_id'))
944
- env_slug = graph.parse_agtype(row.get('env_slug'))
945
- if not isinstance(pid, str) or not isinstance(env_slug, str):
946
- continue
947
- latest_event = _latest_deployment_event(
948
- graph.parse_agtype(row.get('deployments'))
949
- )
950
- if latest_event is None:
951
- continue
952
- event_ts, performed_by = latest_event
953
- tag_val = graph.parse_agtype(row.get('tag'))
954
- committish_val = graph.parse_agtype(row.get('committish'))
955
- tag = str(tag_val) if tag_val else None
956
- committish = str(committish_val) if committish_val else None
957
- key = (pid, env_slug)
958
- existing = latest.get(key)
959
- if existing is None or event_ts > existing[2]:
960
- latest[key] = (tag, committish, event_ts, performed_by)
961
-
962
- latest_deployments = await _apply_deployment_nodes(db, project_ids, latest)
963
-
964
- # Backfill performed_by from operations_log for events whose
965
- # AGE edge left it null (in-product deploy/promote path).
966
- enrich_targets = [
967
- (pid, env_slug, tag, committish)
968
- for (pid, env_slug), (
969
- tag,
970
- committish,
971
- _ts,
972
- performed_by,
973
- ) in latest.items()
974
- if performed_by is None
930
+ # Backfill performed_by from operations_log where the node left it
931
+ # null (in-product deploy/promote path).
932
+ missing = [
933
+ (pid, env_slug, info.tag, info.committish)
934
+ for pid, by_env in current.items()
935
+ for env_slug, info in by_env.items()
936
+ if info.performed_by is None
975
937
  ]
976
- performed_by_by_key = await lookup_ops_log_performed_by(enrich_targets)
977
- if performed_by_by_key:
978
- for key, (tag, committish, ts, performed_by) in list(latest.items()):
979
- if performed_by is not None:
980
- continue
981
- looked_up = performed_by_by_key.get(key)
982
- if looked_up:
983
- latest[key] = (tag, committish, ts, looked_up)
984
-
985
- current: dict[str, dict[str, ReleaseInfo]] = {}
986
- for (pid, env_slug), (tag, committish, ts, performed_by) in latest.items():
987
- current.setdefault(pid, {})[env_slug] = ReleaseInfo(
988
- tag=tag,
989
- committish=committish,
990
- performed_by=performed_by,
991
- deployed_at=ts,
938
+ found = await lookup_ops_log_performed_by(missing)
939
+ for (pid, env_slug), performed_by in found.items():
940
+ current[pid][env_slug] = current[pid][env_slug].model_copy(
941
+ update={'performed_by': performed_by}
992
942
  )
993
- in_flight: dict[str, dict[str, LatestDeployment]] = {}
994
- for (pid, env_slug), entry in latest_deployments.items():
995
- in_flight.setdefault(pid, {})[env_slug] = entry
996
- return CurrentReleaseState(current, in_flight)
943
+ return CurrentReleaseState(current, latest)
997
944
 
998
945
 
999
946
  def _ch_time(value: datetime.datetime) -> str:
@@ -2209,6 +2156,18 @@ async def _resolve_release_display_names(
2209
2156
  env_map[slug] = info.model_copy(update={'performed_by': name})
2210
2157
 
2211
2158
 
2159
+ def _list_where_clause(
2160
+ include_archived: bool, by_team: bool
2161
+ ) -> typing.LiteralString:
2162
+ """The ``WHERE`` of the projects-list match: archived and team."""
2163
+ conditions: list[typing.LiteralString] = []
2164
+ if not include_archived:
2165
+ conditions.append('coalesce(p.archived, false) = false')
2166
+ if by_team:
2167
+ conditions.append('owner.slug IN {teams}')
2168
+ return 'WHERE ' + ' AND '.join(conditions) if conditions else ''
2169
+
2170
+
2212
2171
  def _build_attribute_filter(
2213
2172
  filters: list[str],
2214
2173
  whitelist: dict[str, blueprint_attributes.FilterableAttribute],
@@ -2291,6 +2250,32 @@ async def list_projects(
2291
2250
  ),
2292
2251
  ),
2293
2252
  ] = None,
2253
+ team: typing.Annotated[
2254
+ list[str] | None,
2255
+ fastapi.Query(
2256
+ description=(
2257
+ 'Restrict results to projects owned by the team with this '
2258
+ 'slug (repeatable; a project of any of the teams matches).'
2259
+ ),
2260
+ ),
2261
+ ] = None,
2262
+ # ponytail: interim for issue #998. When DEPLOYED_IN holds the
2263
+ # reader result (docs plan, phase 3), current releases are cheap;
2264
+ # then deprecate releases=false.
2265
+ include_releases: typing.Annotated[
2266
+ bool,
2267
+ fastapi.Query(
2268
+ alias='releases',
2269
+ description=(
2270
+ 'Read the current release and latest deployment of each '
2271
+ 'environment. ``false`` skips that read: '
2272
+ '``current_releases`` and ``latest_deployments`` are then '
2273
+ 'empty. With ``slim=true``, ``drift_ranges`` and '
2274
+ '``drift_pairs`` are also empty, and ``release_summary`` '
2275
+ 'and ``release_drifted`` are still set.'
2276
+ ),
2277
+ ),
2278
+ ] = True,
2294
2279
  filters: typing.Annotated[
2295
2280
  list[str] | None,
2296
2281
  fastapi.Query(
@@ -2324,6 +2309,11 @@ async def list_projects(
2324
2309
  is only meaningful alongside ``integration_slug`` and is
2325
2310
  rejected on its own. An unknown integration slug simply matches nothing.
2326
2311
 
2312
+ ``team`` (repeatable) restricts the listing to projects of those
2313
+ teams. ``releases=false`` skips the current releases and the
2314
+ environment drift, for a caller that reads only the release
2315
+ summary.
2316
+
2327
2317
  ``slim=true`` returns a stripped payload tailored to the
2328
2318
  projects-list UI: only the fields the list view reads (id, name,
2329
2319
  score, team slug+name, project_type slug+name+deployable,
@@ -2366,9 +2356,7 @@ async def list_projects(
2366
2356
  if project_type
2367
2357
  else ''
2368
2358
  )
2369
- archived_filter: typing.LiteralString = (
2370
- '' if include_archived else 'WHERE coalesce(p.archived, false) = false'
2371
- )
2359
+ where_clause = _list_where_clause(include_archived, bool(team))
2372
2360
  return_fragment: typing.LiteralString = (
2373
2361
  _SLIM_RETURN_FRAGMENT if slim else _RETURN_FRAGMENT
2374
2362
  )
@@ -2388,10 +2376,10 @@ async def list_projects(
2388
2376
  """
2389
2377
  MATCH """
2390
2378
  + project_pattern
2391
- + """-[:OWNED_BY]->(:Team)
2379
+ + """-[:OWNED_BY]->(owner:Team)
2392
2380
  -[:BELONGS_TO]->(o:Organization {{slug: {org_slug}}})
2393
2381
  """
2394
- + archived_filter
2382
+ + where_clause
2395
2383
  + """
2396
2384
  WITH DISTINCT p, o
2397
2385
  """
@@ -2414,6 +2402,7 @@ async def list_projects(
2414
2402
  'integration_slug': integration_slug,
2415
2403
  'identifier': identifier,
2416
2404
  'project_id': project_id,
2405
+ 'teams': team or [],
2417
2406
  **attr_params,
2418
2407
  },
2419
2408
  columns,
@@ -2463,7 +2452,9 @@ async def list_projects(
2463
2452
  deployment_ids,
2464
2453
  ) = await asyncio.gather(
2465
2454
  _fetch_pr_counts(project_ids, viewer=viewer),
2466
- _fetch_current_releases(db, project_ids),
2455
+ _fetch_current_releases(db, project_ids)
2456
+ if include_releases
2457
+ else asyncio.sleep(0, CurrentReleaseState({}, {})),
2467
2458
  _fetch_release_summaries(releasable_ids),
2468
2459
  # Only ``ProjectListItem`` carries ``has_deployment_plugin``.
2469
2460
  _deployment_plugin_projects(db, org_slug, project_ids)
@@ -14,6 +14,7 @@ Two routers are provided:
14
14
 
15
15
  from __future__ import annotations
16
16
 
17
+ import asyncio
17
18
  import datetime
18
19
  import json
19
20
  import logging
@@ -114,6 +115,7 @@ class PendingDeployPullRequest(pydantic.BaseModel):
114
115
  """A merged pull request not yet deployed to a terminal environment."""
115
116
 
116
117
  project_id: str
118
+ project_name: str | None = None
117
119
  pr_id: str
118
120
  pr_number: int
119
121
  title: str
@@ -189,11 +191,12 @@ def _row_to_response(row: dict[str, typing.Any]) -> dict[str, typing.Any]:
189
191
  return out
190
192
 
191
193
 
192
- async def _fetch_org_project_ids(
194
+ async def _fetch_org_projects(
193
195
  db: graph.Pool,
194
196
  org_slug: str,
195
- ) -> list[str]:
196
- """Return the IDs of the projects of the org that are not archived.
197
+ ) -> dict[str, str | None]:
198
+ """Return the name of each project of the org that is not archived,
199
+ by id.
197
200
 
198
201
  Org-wide PR views should not count PRs nobody will act on.
199
202
  """
@@ -201,14 +204,14 @@ async def _fetch_org_project_ids(
201
204
  MATCH (p:Project)-[:OWNED_BY]->(:Team)
202
205
  -[:BELONGS_TO]->(o:Organization {{slug: {org_slug}}})
203
206
  WHERE coalesce(p.archived, false) = false
204
- RETURN p.id AS id
207
+ RETURN p.id AS id, p.name AS name
205
208
  """
206
- records = await db.execute(query, {'org_slug': org_slug}, ['id'])
207
- return [
208
- graph.parse_agtype(r['id'])
209
+ records = await db.execute(query, {'org_slug': org_slug}, ['id', 'name'])
210
+ return {
211
+ str(graph.parse_agtype(r['id'])): graph.parse_agtype(r.get('name'))
209
212
  for r in records
210
213
  if graph.parse_agtype(r['id'])
211
- ]
214
+ }
212
215
 
213
216
 
214
217
  async def github_login(
@@ -548,7 +551,7 @@ async def list_org_pull_requests(
548
551
  return PullRequestListResponse(
549
552
  data=[], project_count=0, total=0, github_identity_missing=True
550
553
  )
551
- project_ids = await _fetch_org_project_ids(db, org_slug)
554
+ project_ids = list(await _fetch_org_projects(db, org_slug))
552
555
  return await _list_prs(
553
556
  project_ids=project_ids,
554
557
  state=state,
@@ -724,11 +727,12 @@ async def list_pending_deploy_pull_requests(
724
727
  data=[],
725
728
  github_identity_missing=True,
726
729
  )
727
- project_ids = await _fetch_org_project_ids(db, org_slug)
728
- envs = await _fetch_terminal_environments(db)
730
+ projects, envs = await asyncio.gather(
731
+ _fetch_org_projects(db, org_slug), _fetch_terminal_environments(db)
732
+ )
729
733
  slugs = list(envs)
730
734
  data, total = await _list_pending_deploy(
731
- project_ids=project_ids,
735
+ project_ids=list(projects),
732
736
  environment_slugs=slugs,
733
737
  author=author,
734
738
  since=since,
@@ -737,6 +741,7 @@ async def list_pending_deploy_pull_requests(
737
741
  offset=offset,
738
742
  )
739
743
  for row in data:
744
+ row.project_name = projects.get(row.project_id)
740
745
  if row.last_deployed_environment:
741
746
  row.last_deployed_environment_name = envs.get(
742
747
  row.last_deployed_environment
@@ -896,7 +901,7 @@ async def pull_request_activity(
896
901
  then created, descending.
897
902
  """
898
903
  since_dt = _parse_since(since)
899
- project_ids = await _fetch_org_project_ids(db, org_slug)
904
+ project_ids = list(await _fetch_org_projects(db, org_slug))
900
905
  counts = await _fetch_pr_activity(project_ids, since_dt)
901
906
  login_users = await _fetch_login_users(db)
902
907
  rows: list[PRActivityRow] = []
@@ -532,10 +532,9 @@ def _predates_serving_legacy(
532
532
  legacy_event: models.DeploymentEvent | None,
533
533
  serving_event: models.DeploymentEvent | None,
534
534
  ) -> bool:
535
- """Same guard as the projects list: when a legacy array entry still
536
- wins, an attempt that started at or before it is not newer than what
537
- the environment serves. When a node won, the reader has already
538
- compared start times."""
535
+ """When a legacy array entry still wins, an attempt that started at
536
+ or before it is not newer than what the environment serves. When a
537
+ node won, the reader has already compared start times."""
539
538
  return (
540
539
  legacy_event is not None
541
540
  and serving_event is legacy_event