imbi-api 2.46.0__tar.gz → 2.48.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.
- {imbi_api-2.46.0 → imbi_api-2.48.0}/PKG-INFO +2 -2
- {imbi_api-2.46.0 → imbi_api-2.48.0}/pyproject.toml +2 -2
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/app.py +2 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/document_analytics.py +4 -2
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_deployments.py +14 -1
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/releases.py +39 -8
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/lifecycle_dispatch.py +2 -2
- imbi_api-2.48.0/src/imbi/api/plugins/release_dispatch.py +172 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_reads_sql.py +3 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_deployments.py +35 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_releases.py +53 -2
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_lifecycle_dispatch.py +7 -7
- imbi_api-2.48.0/tests/test_release_dispatch.py +128 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/.gitignore +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/README.md +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/moon.yml +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/agent_tasks/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/agent_tasks/log.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/agent_tasks/schemata.toml +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/agent_tasks/store.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/agent_tasks/sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/agent_api_routes.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/seed.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/agent_task_harness.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/agent_tasks.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/agents.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/harness.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/organizations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/projects.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/workflow_runs.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/endpoints/workflows.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/store.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/maintenance/operations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/maintenance/registry.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/workflows/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/workflows/runs.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/workflows/runtime_schemata.toml +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/workflows/store.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_task_harness.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_tasks.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_agents.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_harness.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_organizations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_projects.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_workflow_runs.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/endpoints/test_workflows.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/secret_support.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/support.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_app.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_clickhouse_project_ids.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_drift.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_init.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_installer.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_models.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.0}/tests/test_settings.py +0 -0
- {imbi_api-2.46.0 → imbi_api-2.48.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.
|
|
3
|
+
Version: 2.48.0
|
|
4
4
|
Summary: Imbi is a DevOps Service Management Platform designed to provide an efficient way to manage a large environment that contains many services and applications.
|
|
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,sentry,server]==2.
|
|
23
|
+
Requires-Dist: imbi-common[databases,llm,mcp,sentry,server]==2.48.0
|
|
24
24
|
Requires-Dist: jinja2
|
|
25
25
|
Requires-Dist: jsonpatch>=1.33
|
|
26
26
|
Requires-Dist: limits<6,>=5
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "imbi-api"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.48.0"
|
|
4
4
|
description = "Imbi is a DevOps Service Management Platform designed to provide an efficient way to manage a large environment that contains many services and applications."
|
|
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,sentry,server]==2.
|
|
32
|
+
"imbi-common[databases,llm,mcp,sentry,server]==2.48.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
35
|
"limits>=5,<6",
|
|
@@ -23,6 +23,7 @@ from imbi.common import (
|
|
|
23
23
|
graph,
|
|
24
24
|
lifespan,
|
|
25
25
|
metrics,
|
|
26
|
+
posthog,
|
|
26
27
|
sentry,
|
|
27
28
|
valkey,
|
|
28
29
|
)
|
|
@@ -160,4 +161,5 @@ def create_app() -> fastapi.FastAPI:
|
|
|
160
161
|
# FastAPI pattern: override openapi method to customize schema
|
|
161
162
|
app.openapi = openapi.create_custom_openapi(app) # type: ignore[method-assign]
|
|
162
163
|
|
|
164
|
+
posthog.install(app)
|
|
163
165
|
return app
|
|
@@ -282,8 +282,10 @@ SELECT maxIf(ended_at, is_read) AS last_read_at,
|
|
|
282
282
|
uniqExactIf(principal, is_read) AS readers,
|
|
283
283
|
countIf(is_view) AS views,
|
|
284
284
|
countIf(is_read) AS reads,
|
|
285
|
-
quantileIf(0.5)(engaged_ms, is_view)
|
|
286
|
-
|
|
285
|
+
ifNotFinite(quantileIf(0.5)(engaged_ms, is_view), 0)
|
|
286
|
+
AS median_engaged_ms,
|
|
287
|
+
ifNotFinite(quantileIf(0.9)(engaged_ms, is_view), 0)
|
|
288
|
+
AS p90_engaged_ms
|
|
287
289
|
FROM ({source})
|
|
288
290
|
"""
|
|
289
291
|
|
|
@@ -50,7 +50,7 @@ from imbi.api.identity.host_integration import (
|
|
|
50
50
|
call_with_identity_retry,
|
|
51
51
|
)
|
|
52
52
|
from imbi.api.llm.dependencies import InjectAnthropicClient
|
|
53
|
-
from imbi.api.plugins import call_with_timeout
|
|
53
|
+
from imbi.api.plugins import call_with_timeout, release_dispatch
|
|
54
54
|
from imbi.api.plugins.resolution import ResolvedCapability, resolve_capability
|
|
55
55
|
from imbi.api.release_promote import queue as release_promote_queue
|
|
56
56
|
from imbi.api.release_promote import service as release_promote_service
|
|
@@ -4697,6 +4697,19 @@ async def _upsert_release_node(
|
|
|
4697
4697
|
)
|
|
4698
4698
|
if rows:
|
|
4699
4699
|
rid = graph.parse_agtype(rows[0].get('rid'))
|
|
4700
|
+
# ``COALESCE(r.id, new_id)`` kept ``new_id``: this call created
|
|
4701
|
+
# the node.
|
|
4702
|
+
if rid == new_id:
|
|
4703
|
+
release_dispatch.schedule_release_created(
|
|
4704
|
+
db,
|
|
4705
|
+
project_id,
|
|
4706
|
+
plugin_base.TrackedRelease(
|
|
4707
|
+
id=new_id,
|
|
4708
|
+
tag=tag,
|
|
4709
|
+
committish=committish,
|
|
4710
|
+
created_by=created_by,
|
|
4711
|
+
),
|
|
4712
|
+
)
|
|
4700
4713
|
if rid:
|
|
4701
4714
|
return str(rid)
|
|
4702
4715
|
return new_id
|
|
@@ -35,13 +35,13 @@ from imbi.api.endpoints.projects import (
|
|
|
35
35
|
LatestDeployment,
|
|
36
36
|
lookup_ops_log_performed_by,
|
|
37
37
|
)
|
|
38
|
-
from imbi.api.plugins import call_with_timeout
|
|
38
|
+
from imbi.api.plugins import call_with_timeout, release_dispatch
|
|
39
39
|
from imbi.api.scoring import OptionalValkeyClient
|
|
40
40
|
from imbi.api.scoring import queue as score_queue
|
|
41
41
|
from imbi.common import deployments as deployment_nodes
|
|
42
42
|
from imbi.common import graph, models
|
|
43
43
|
from imbi.common import patch as json_patch
|
|
44
|
-
from imbi.common.plugins.base import CheckStatus
|
|
44
|
+
from imbi.common.plugins.base import CheckStatus, TrackedRelease
|
|
45
45
|
|
|
46
46
|
LOGGER = logging.getLogger(__name__)
|
|
47
47
|
|
|
@@ -375,7 +375,8 @@ RETURN r.id AS id
|
|
|
375
375
|
# that (or written by another client) still have to be nameable.
|
|
376
376
|
_RELEASE_ADOPT_TAG: typing.Final[typing.LiteralString] = """
|
|
377
377
|
MATCH (r:Release {{id: {release_id}}})
|
|
378
|
-
|
|
378
|
+
WHERE COALESCE(r.tag, '') = ''
|
|
379
|
+
SET r.tag = {tag},
|
|
379
380
|
r.updated_at = {now}
|
|
380
381
|
RETURN r.id AS id
|
|
381
382
|
"""
|
|
@@ -423,9 +424,9 @@ async def _adopt_release_tag(
|
|
|
423
424
|
*,
|
|
424
425
|
release_id: str,
|
|
425
426
|
tag: str,
|
|
426
|
-
) ->
|
|
427
|
-
"""Name an untagged release
|
|
428
|
-
await db.execute(
|
|
427
|
+
) -> bool:
|
|
428
|
+
"""Name an untagged release; return whether this call named it."""
|
|
429
|
+
rows = await db.execute(
|
|
429
430
|
_RELEASE_ADOPT_TAG,
|
|
430
431
|
{
|
|
431
432
|
'release_id': release_id,
|
|
@@ -434,6 +435,7 @@ async def _adopt_release_tag(
|
|
|
434
435
|
},
|
|
435
436
|
['id'],
|
|
436
437
|
)
|
|
438
|
+
return bool(rows)
|
|
437
439
|
|
|
438
440
|
|
|
439
441
|
#: Alias kept for readers of this module; the map is shared with the
|
|
@@ -878,10 +880,29 @@ async def create_release(
|
|
|
878
880
|
# deployment webhook records the commit before the release
|
|
879
881
|
# webhook names it, and leaving them apart is what produces the
|
|
880
882
|
# duplicate this endpoint exists to avoid.
|
|
881
|
-
if data.tag
|
|
882
|
-
|
|
883
|
+
adopted_tag = None if match.by_tag else (data.tag or None)
|
|
884
|
+
adopted = adopted_tag is not None and await _adopt_release_tag(
|
|
885
|
+
db, release_id=match.id, tag=adopted_tag
|
|
886
|
+
)
|
|
883
887
|
existing = await _fetch_release(db, org_slug, project_id, match.id)
|
|
884
888
|
if existing is not None:
|
|
889
|
+
if adopted and existing.get('tag') == adopted_tag:
|
|
890
|
+
# The untagged create dispatched without a tag, which a
|
|
891
|
+
# tag-based version skips; send the event again now that
|
|
892
|
+
# the tag is known. Capabilities treat a repeat as an
|
|
893
|
+
# update (Sentry upserts the release). Only the request
|
|
894
|
+
# whose adopt wrote the tag sends it, so a concurrent
|
|
895
|
+
# create that lost the adopt sends no event.
|
|
896
|
+
release_dispatch.schedule_release_created(
|
|
897
|
+
db,
|
|
898
|
+
project_id,
|
|
899
|
+
TrackedRelease(
|
|
900
|
+
id=match.id,
|
|
901
|
+
tag=adopted_tag,
|
|
902
|
+
committish=existing['committish'],
|
|
903
|
+
created_by=existing.get('created_by'),
|
|
904
|
+
),
|
|
905
|
+
)
|
|
885
906
|
response.status_code = 200
|
|
886
907
|
return _release_to_response(existing, project_id)
|
|
887
908
|
# Raced with a delete between the two reads; fall through and
|
|
@@ -953,6 +974,16 @@ async def create_release(
|
|
|
953
974
|
models.Release,
|
|
954
975
|
props['id'],
|
|
955
976
|
)
|
|
977
|
+
release_dispatch.schedule_release_created(
|
|
978
|
+
db,
|
|
979
|
+
project_id,
|
|
980
|
+
TrackedRelease(
|
|
981
|
+
id=props['id'],
|
|
982
|
+
tag=data.tag,
|
|
983
|
+
committish=committish,
|
|
984
|
+
created_by=created_by,
|
|
985
|
+
),
|
|
986
|
+
)
|
|
956
987
|
return _release_to_response(release_data, project_id)
|
|
957
988
|
|
|
958
989
|
|
|
@@ -373,7 +373,7 @@ async def _invoke_one(
|
|
|
373
373
|
captured_service_writeback: list[ServiceWriteback] = []
|
|
374
374
|
|
|
375
375
|
async def _call(c: PluginContext) -> LifecycleResult:
|
|
376
|
-
credentials =
|
|
376
|
+
credentials = resolve_credentials(c, resolved)
|
|
377
377
|
method = getattr(handler, method_name)
|
|
378
378
|
res: LifecycleResult = await call_with_timeout(method(c, credentials))
|
|
379
379
|
if c.link_writeback is not None:
|
|
@@ -446,7 +446,7 @@ async def _invoke_one(
|
|
|
446
446
|
)
|
|
447
447
|
|
|
448
448
|
|
|
449
|
-
def
|
|
449
|
+
def resolve_credentials(
|
|
450
450
|
ctx: PluginContext,
|
|
451
451
|
resolved: ResolvedCapability,
|
|
452
452
|
) -> dict[str, str]:
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"""Release-tracking plugin fan-out for new ``Release`` nodes.
|
|
2
|
+
|
|
3
|
+
After the API creates a ``Release`` node, it calls every Integration
|
|
4
|
+
bound to the project for ``release-tracking`` (e.g. Sentry records the
|
|
5
|
+
release). The call is best-effort and runs after the write: a failure
|
|
6
|
+
is logged and recorded as an event, and never undoes the release.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import asyncio
|
|
12
|
+
import datetime
|
|
13
|
+
import logging
|
|
14
|
+
import typing
|
|
15
|
+
|
|
16
|
+
import nanoid
|
|
17
|
+
|
|
18
|
+
from imbi.api.plugins import call_with_timeout
|
|
19
|
+
from imbi.api.plugins.lifecycle_dispatch import resolve_credentials
|
|
20
|
+
from imbi.api.plugins.resolution import (
|
|
21
|
+
ResolvedCapability,
|
|
22
|
+
build_plugin_context,
|
|
23
|
+
resolve_all_capabilities,
|
|
24
|
+
)
|
|
25
|
+
from imbi.common import graph, iggy
|
|
26
|
+
from imbi.common.plugins.base import (
|
|
27
|
+
LifecycleResult,
|
|
28
|
+
PluginContext,
|
|
29
|
+
ReleaseTrackingCapability,
|
|
30
|
+
TrackedRelease,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
LOGGER = logging.getLogger(__name__)
|
|
34
|
+
|
|
35
|
+
#: Strong references to running dispatches, so the event loop does not
|
|
36
|
+
#: collect a task before it finishes.
|
|
37
|
+
_TASKS: set[asyncio.Task[None]] = set()
|
|
38
|
+
|
|
39
|
+
_ORG_QUERY: typing.LiteralString = """
|
|
40
|
+
MATCH (:Project {{id: {project_id}}})
|
|
41
|
+
-[:OWNED_BY]->(:Team)-[:BELONGS_TO]->(o:Organization)
|
|
42
|
+
RETURN o.slug AS org_slug
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def schedule_release_created(
|
|
47
|
+
db: graph.Graph, project_id: str, release: TrackedRelease
|
|
48
|
+
) -> None:
|
|
49
|
+
"""Run :func:`dispatch_release_created` without waiting for it.
|
|
50
|
+
|
|
51
|
+
A task, not ``BackgroundTasks``: most release writers are workers
|
|
52
|
+
with no request to attach to.
|
|
53
|
+
"""
|
|
54
|
+
task = asyncio.create_task(
|
|
55
|
+
dispatch_release_created(db, project_id, release)
|
|
56
|
+
)
|
|
57
|
+
_TASKS.add(task)
|
|
58
|
+
task.add_done_callback(_TASKS.discard)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
async def _invoke(
|
|
62
|
+
resolved: ResolvedCapability, ctx: PluginContext, release: TrackedRelease
|
|
63
|
+
) -> LifecycleResult:
|
|
64
|
+
handler = typing.cast(ReleaseTrackingCapability, resolved.capability_cls())
|
|
65
|
+
try:
|
|
66
|
+
return await call_with_timeout(
|
|
67
|
+
handler.on_release_created(
|
|
68
|
+
ctx, resolve_credentials(ctx, resolved), release
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
except Exception as exc:
|
|
72
|
+
LOGGER.exception(
|
|
73
|
+
'Release-tracking plugin %s (%s) raised for release %s',
|
|
74
|
+
resolved.plugin_slug,
|
|
75
|
+
resolved.integration_id,
|
|
76
|
+
release.id,
|
|
77
|
+
)
|
|
78
|
+
return LifecycleResult(
|
|
79
|
+
status='failed', message=f'{type(exc).__name__}: {exc}'
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
async def dispatch_release_created(
|
|
84
|
+
db: graph.Graph, project_id: str, release: TrackedRelease
|
|
85
|
+
) -> None:
|
|
86
|
+
"""Call ``on_release_created`` on every bound Integration.
|
|
87
|
+
|
|
88
|
+
Never raises: the release already exists, so the caller has nothing
|
|
89
|
+
to undo.
|
|
90
|
+
"""
|
|
91
|
+
# Lazy import: ``imbi.api.endpoints`` imports every endpoint module,
|
|
92
|
+
# and the release endpoints import this module.
|
|
93
|
+
from imbi.api.endpoints._helpers import (
|
|
94
|
+
lookup_project_exists_in,
|
|
95
|
+
lookup_project_links,
|
|
96
|
+
lookup_project_slugs,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
# ponytail: one dispatch per new release; a resync that finds many
|
|
100
|
+
# old tags repeats the resolution per tag. Batch per project if that
|
|
101
|
+
# shows up.
|
|
102
|
+
try:
|
|
103
|
+
resolved_list = await resolve_all_capabilities(
|
|
104
|
+
db, project_id, 'release-tracking'
|
|
105
|
+
)
|
|
106
|
+
if not resolved_list:
|
|
107
|
+
return
|
|
108
|
+
(
|
|
109
|
+
org_rows,
|
|
110
|
+
(project_slug, team_slug),
|
|
111
|
+
project_links,
|
|
112
|
+
service_connections,
|
|
113
|
+
) = await asyncio.gather(
|
|
114
|
+
db.execute(_ORG_QUERY, {'project_id': project_id}, ['org_slug']),
|
|
115
|
+
lookup_project_slugs(db, project_id),
|
|
116
|
+
lookup_project_links(db, project_id),
|
|
117
|
+
lookup_project_exists_in(db, project_id),
|
|
118
|
+
)
|
|
119
|
+
if not org_rows:
|
|
120
|
+
return
|
|
121
|
+
org_slug = str(graph.parse_agtype(org_rows[0]['org_slug']))
|
|
122
|
+
results = await asyncio.gather(
|
|
123
|
+
*(
|
|
124
|
+
_invoke(
|
|
125
|
+
resolved,
|
|
126
|
+
build_plugin_context(
|
|
127
|
+
resolved,
|
|
128
|
+
project_id=project_id,
|
|
129
|
+
project_slug=project_slug,
|
|
130
|
+
org_slug=org_slug,
|
|
131
|
+
team_slug=team_slug,
|
|
132
|
+
project_links=project_links,
|
|
133
|
+
service_connections=service_connections,
|
|
134
|
+
),
|
|
135
|
+
release,
|
|
136
|
+
)
|
|
137
|
+
for resolved in resolved_list
|
|
138
|
+
)
|
|
139
|
+
)
|
|
140
|
+
now = datetime.datetime.now(datetime.UTC)
|
|
141
|
+
await iggy.publish_rows(
|
|
142
|
+
'events',
|
|
143
|
+
'lifecycle',
|
|
144
|
+
[
|
|
145
|
+
{
|
|
146
|
+
'id': nanoid.generate(),
|
|
147
|
+
'project_id': project_id,
|
|
148
|
+
'recorded_at': now,
|
|
149
|
+
'type': 'plugin.release-tracking.created',
|
|
150
|
+
'integration': resolved.integration_slug,
|
|
151
|
+
'attributed_to': release.created_by or '',
|
|
152
|
+
'metadata': {
|
|
153
|
+
'plugin_id': resolved.integration_id,
|
|
154
|
+
'release_id': release.id,
|
|
155
|
+
},
|
|
156
|
+
'payload': {
|
|
157
|
+
'status': result.status,
|
|
158
|
+
'message': result.message,
|
|
159
|
+
'artifacts': result.artifacts,
|
|
160
|
+
},
|
|
161
|
+
}
|
|
162
|
+
for resolved, result in zip(
|
|
163
|
+
resolved_list, results, strict=True
|
|
164
|
+
)
|
|
165
|
+
],
|
|
166
|
+
)
|
|
167
|
+
except Exception:
|
|
168
|
+
LOGGER.exception(
|
|
169
|
+
'Release-tracking dispatch failed for release %s of project %s',
|
|
170
|
+
release.id,
|
|
171
|
+
project_id,
|
|
172
|
+
)
|
|
@@ -96,6 +96,9 @@ class ReadAnalyticsSqlTestCase(unittest.IsolatedAsyncioTestCase):
|
|
|
96
96
|
)
|
|
97
97
|
# An unfiltered aggregate returns its one all-zero row.
|
|
98
98
|
self.assertEqual(1, len(summary))
|
|
99
|
+
# ``quantileIf`` over zero rows is NaN, which ``int()`` refuses.
|
|
100
|
+
self.assertEqual(0, summary[0]['median_engaged_ms'])
|
|
101
|
+
self.assertEqual(0, summary[0]['p90_engaged_ms'])
|
|
99
102
|
self.assertEqual(
|
|
100
103
|
[],
|
|
101
104
|
await clickhouse.query(
|
|
@@ -4318,6 +4318,41 @@ class ReleaseIdentityTestCase(unittest.IsolatedAsyncioTestCase):
|
|
|
4318
4318
|
self.assertIn('r:Release {{committish: {committish}}}', query)
|
|
4319
4319
|
self.assertNotIn('r.tag', query)
|
|
4320
4320
|
|
|
4321
|
+
async def _upsert_schedules(self, rid: str | None) -> mock.MagicMock:
|
|
4322
|
+
db = mock.AsyncMock()
|
|
4323
|
+
db.execute = mock.AsyncMock(return_value=[{'rid': rid}])
|
|
4324
|
+
with (
|
|
4325
|
+
mock.patch(
|
|
4326
|
+
f'{_MODULE}.graph.parse_agtype', side_effect=lambda x: x
|
|
4327
|
+
),
|
|
4328
|
+
mock.patch(f'{_MODULE}.nanoid.generate', return_value='new-id'),
|
|
4329
|
+
mock.patch(
|
|
4330
|
+
f'{_MODULE}.release_dispatch.schedule_release_created'
|
|
4331
|
+
) as schedule,
|
|
4332
|
+
):
|
|
4333
|
+
await project_deployments._upsert_release_node(
|
|
4334
|
+
db,
|
|
4335
|
+
project_id='p1',
|
|
4336
|
+
tag='2.45.3',
|
|
4337
|
+
committish='27f2f81',
|
|
4338
|
+
title='2.45.3',
|
|
4339
|
+
notes_markdown='',
|
|
4340
|
+
release_url=None,
|
|
4341
|
+
created_by='a@b.c',
|
|
4342
|
+
)
|
|
4343
|
+
return schedule
|
|
4344
|
+
|
|
4345
|
+
async def test_upsert_dispatches_a_created_release(self) -> None:
|
|
4346
|
+
schedule = await self._upsert_schedules('new-id')
|
|
4347
|
+
release = schedule.call_args.args[2]
|
|
4348
|
+
self.assertEqual(('new-id', '2.45.3'), (release.id, release.tag))
|
|
4349
|
+
|
|
4350
|
+
async def test_upsert_does_not_dispatch_an_existing_release(
|
|
4351
|
+
self,
|
|
4352
|
+
) -> None:
|
|
4353
|
+
schedule = await self._upsert_schedules('rel-1')
|
|
4354
|
+
schedule.assert_not_called()
|
|
4355
|
+
|
|
4321
4356
|
|
|
4322
4357
|
class PromotedCommittishHealingTestCase(unittest.IsolatedAsyncioTestCase):
|
|
4323
4358
|
"""The Release adopts the commit its tag actually points at.
|
|
@@ -116,6 +116,15 @@ class _ReleasesTestBase(support.SharedAppTestCase):
|
|
|
116
116
|
)
|
|
117
117
|
self._notes_patch.start()
|
|
118
118
|
self.addCleanup(self._notes_patch.stop)
|
|
119
|
+
# The create path fans the new release out to release-tracking
|
|
120
|
+
# plugins in a background task with its own DB calls.
|
|
121
|
+
self.dispatch_release = mock.MagicMock()
|
|
122
|
+
dispatch_patch = mock.patch(
|
|
123
|
+
'imbi.api.plugins.release_dispatch.schedule_release_created',
|
|
124
|
+
new=self.dispatch_release,
|
|
125
|
+
)
|
|
126
|
+
dispatch_patch.start()
|
|
127
|
+
self.addCleanup(dispatch_patch.stop)
|
|
119
128
|
self.client = fastapi.testclient.TestClient(self.test_app)
|
|
120
129
|
self.addCleanup(self.client.close)
|
|
121
130
|
|
|
@@ -168,6 +177,11 @@ class CreateReleaseTestCase(_ReleasesTestBase):
|
|
|
168
177
|
self.assertEqual(body['project_id'], PROJECT_ID)
|
|
169
178
|
self.assertEqual(body['id'], RELEASE_ID)
|
|
170
179
|
self.assertEqual(body['created_by'], 'alice@example.com')
|
|
180
|
+
release = self.dispatch_release.call_args.args[2]
|
|
181
|
+
self.assertEqual(
|
|
182
|
+
(RELEASE_ID, '1.2.3', DEFAULT_COMMITTISH),
|
|
183
|
+
(release.id, release.tag, release.committish),
|
|
184
|
+
)
|
|
171
185
|
# Releases are written as raw Cypher, so the endpoint owns
|
|
172
186
|
# keeping them searchable. The task re-reads the release.
|
|
173
187
|
self.mock_db.match.assert_awaited_once_with(
|
|
@@ -357,6 +371,7 @@ class CreateReleaseTestCase(_ReleasesTestBase):
|
|
|
357
371
|
query, params, _ = self.mock_db.execute.call_args_list[1].args
|
|
358
372
|
self.assertIn('r.tag = {tag}', query)
|
|
359
373
|
self.assertEqual('2.45.3', params['tag'])
|
|
374
|
+
self.dispatch_release.assert_not_called()
|
|
360
375
|
|
|
361
376
|
def test_create_adopts_untagged_release_for_same_commit(self) -> None:
|
|
362
377
|
"""A tagged create claims the untagged node for its commit.
|
|
@@ -390,9 +405,45 @@ class CreateReleaseTestCase(_ReleasesTestBase):
|
|
|
390
405
|
adopt_query, adopt_params, _ = self.mock_db.execute.call_args_list[
|
|
391
406
|
3
|
|
392
407
|
].args
|
|
393
|
-
self.assertIn("
|
|
408
|
+
self.assertIn("WHERE COALESCE(r.tag, '') = ''", adopt_query)
|
|
394
409
|
self.assertEqual('5.0.2', adopt_params['tag'])
|
|
395
410
|
self.assertEqual(RELEASE_ID, adopt_params['release_id'])
|
|
411
|
+
# The untagged create dispatched without a tag; send it again.
|
|
412
|
+
self.dispatch_release.assert_called_once()
|
|
413
|
+
tracked = self.dispatch_release.call_args.args[2]
|
|
414
|
+
self.assertEqual(RELEASE_ID, tracked.id)
|
|
415
|
+
self.assertEqual('5.0.2', tracked.tag)
|
|
416
|
+
self.assertEqual(DEFAULT_COMMITTISH, tracked.committish)
|
|
417
|
+
self.assertEqual('alice@example.com', tracked.created_by)
|
|
418
|
+
|
|
419
|
+
def test_create_losing_adopt_race_does_not_dispatch(self) -> None:
|
|
420
|
+
"""A create whose adopt wrote nothing sends no event.
|
|
421
|
+
|
|
422
|
+
A concurrent create adopted the tag first, so the guarded adopt
|
|
423
|
+
query matches no row. Dispatching here would send a second event
|
|
424
|
+
for the same release.
|
|
425
|
+
"""
|
|
426
|
+
self.mock_db.execute.side_effect = [
|
|
427
|
+
[{'id': PROJECT_ID}],
|
|
428
|
+
[],
|
|
429
|
+
[{'id': RELEASE_ID}],
|
|
430
|
+
[], # adopt: another create already named the release
|
|
431
|
+
[{'release': _release_row(tag='5.0.2')}],
|
|
432
|
+
]
|
|
433
|
+
with mock.patch(
|
|
434
|
+
'imbi.common.graph.parse_agtype',
|
|
435
|
+
side_effect=lambda x: x,
|
|
436
|
+
):
|
|
437
|
+
response = self.client.post(
|
|
438
|
+
self._url('/'),
|
|
439
|
+
json={
|
|
440
|
+
'tag': '5.0.2',
|
|
441
|
+
'committish': DEFAULT_COMMITTISH,
|
|
442
|
+
'title': 'x',
|
|
443
|
+
},
|
|
444
|
+
)
|
|
445
|
+
self.assertEqual(response.status_code, 200, response.text)
|
|
446
|
+
self.dispatch_release.assert_not_called()
|
|
396
447
|
|
|
397
448
|
def test_create_untagged_does_not_claim_a_tagged_release(self) -> None:
|
|
398
449
|
"""An untagged create never adopts a tagged node.
|
|
@@ -656,7 +707,7 @@ class CreateReleaseTestCase(_ReleasesTestBase):
|
|
|
656
707
|
)
|
|
657
708
|
self.assertEqual(response.status_code, 200, response.text)
|
|
658
709
|
adopt_query, _params, _ = self.mock_db.execute.call_args_list[3].args
|
|
659
|
-
self.assertIn("
|
|
710
|
+
self.assertIn("WHERE COALESCE(r.tag, '') = ''", adopt_query)
|
|
660
711
|
|
|
661
712
|
|
|
662
713
|
class ListGetReleaseTestCase(_ReleasesTestBase):
|
|
@@ -17,9 +17,9 @@ from imbi.api.plugins.lifecycle_dispatch import (
|
|
|
17
17
|
LifecycleContextBundle,
|
|
18
18
|
LifecycleEvent,
|
|
19
19
|
LifecycleInvocation,
|
|
20
|
-
_resolve_credentials,
|
|
21
20
|
build_lifecycle_context_bundle,
|
|
22
21
|
dispatch_lifecycle,
|
|
22
|
+
resolve_credentials,
|
|
23
23
|
)
|
|
24
24
|
from imbi.api.plugins.resolution import ResolvedCapability
|
|
25
25
|
from imbi.common.plugins.base import (
|
|
@@ -190,7 +190,7 @@ class DispatchLifecycleTestCase(unittest.TestCase):
|
|
|
190
190
|
new=_passthrough_identity_retry,
|
|
191
191
|
),
|
|
192
192
|
mock.patch(
|
|
193
|
-
'imbi.api.plugins.lifecycle_dispatch.
|
|
193
|
+
'imbi.api.plugins.lifecycle_dispatch.resolve_credentials',
|
|
194
194
|
mock.Mock(return_value={'access_token': 'tok'}),
|
|
195
195
|
),
|
|
196
196
|
mock.patch.object(
|
|
@@ -498,7 +498,7 @@ class DispatchLifecycleTestCase(unittest.TestCase):
|
|
|
498
498
|
new=_passthrough_identity_retry,
|
|
499
499
|
),
|
|
500
500
|
mock.patch(
|
|
501
|
-
'imbi.api.plugins.lifecycle_dispatch.
|
|
501
|
+
'imbi.api.plugins.lifecycle_dispatch.resolve_credentials',
|
|
502
502
|
mock.Mock(return_value={'access_token': 't'}),
|
|
503
503
|
),
|
|
504
504
|
mock.patch.object(
|
|
@@ -554,7 +554,7 @@ class ResolveCredentialsTestCase(unittest.TestCase):
|
|
|
554
554
|
'.decrypt_integration_credentials',
|
|
555
555
|
return_value=blob,
|
|
556
556
|
):
|
|
557
|
-
return
|
|
557
|
+
return resolve_credentials(ctx, resolved)
|
|
558
558
|
|
|
559
559
|
def test_api_key_credential_is_accepted(self) -> None:
|
|
560
560
|
resolved = self._resolved_with(
|
|
@@ -664,7 +664,7 @@ class WidenedEventNotImplementedTestCase(unittest.TestCase):
|
|
|
664
664
|
new=_passthrough_identity_retry,
|
|
665
665
|
),
|
|
666
666
|
mock.patch(
|
|
667
|
-
'imbi.api.plugins.lifecycle_dispatch.
|
|
667
|
+
'imbi.api.plugins.lifecycle_dispatch.resolve_credentials',
|
|
668
668
|
mock.Mock(return_value={'access_token': 't'}),
|
|
669
669
|
),
|
|
670
670
|
mock.patch.object(
|
|
@@ -771,7 +771,7 @@ class BundleAndContextPropagationTestCase(unittest.TestCase):
|
|
|
771
771
|
new=_passthrough_identity_retry,
|
|
772
772
|
),
|
|
773
773
|
mock.patch(
|
|
774
|
-
'imbi.api.plugins.lifecycle_dispatch.
|
|
774
|
+
'imbi.api.plugins.lifecycle_dispatch.resolve_credentials',
|
|
775
775
|
mock.Mock(return_value={'access_token': 't'}),
|
|
776
776
|
),
|
|
777
777
|
mock.patch.object(
|
|
@@ -947,7 +947,7 @@ class ContextHydrationTestCase(unittest.TestCase):
|
|
|
947
947
|
new=_passthrough_identity_retry,
|
|
948
948
|
),
|
|
949
949
|
mock.patch(
|
|
950
|
-
'imbi.api.plugins.lifecycle_dispatch.
|
|
950
|
+
'imbi.api.plugins.lifecycle_dispatch.resolve_credentials',
|
|
951
951
|
mock.Mock(return_value={'access_token': 'tok'}),
|
|
952
952
|
),
|
|
953
953
|
mock.patch.object(
|