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.
- {imbi_api-2.64.0 → imbi_api-2.65.0}/PKG-INFO +2 -2
- {imbi_api-2.64.0 → imbi_api-2.65.0}/pyproject.toml +2 -2
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_status_repair.py +3 -1
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/projects.py +196 -205
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/pull_requests.py +18 -13
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/releases.py +3 -4
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/secret_broker.py +3 -2
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/operations.py +57 -1
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/registry.py +32 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/broker.py +12 -5
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/schemata.toml +2 -1
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_projects.py +72 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_projects_helpers.py +180 -154
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_pull_requests.py +3 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_releases.py +28 -12
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_operations.py +55 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_broker.py +42 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/.gitignore +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/README.md +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/moon.yml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/agent_api_routes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/seed.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_sections.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/blueprint_values.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/agents.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/harness.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/integration_workflow_steps.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/organizations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/ticket_harness.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/tickets.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/workflow_runs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/endpoints/workflows.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/store.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/prompted.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/preferences/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/preferences/schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tags.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/teams.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/announce.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/custom_fields.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/log.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/store.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/plugin_calls.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/runs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/runtime_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/store.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/ticket_trigger.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/src/imbi/api/workflows/tickets.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_harness.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_tasks.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_agents.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_comments_attention.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_harness.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_integration_workflow_steps.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_integration_workflow_steps_choices.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_organizations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_person_tickets.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_deployments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_prompt_generative.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_agent_activity.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_attributes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_custom_fields.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_handoff.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_reopen.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_units.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_ticket_waiting.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_user_preferences.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflow_runs.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/endpoints/test_workflows.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_2_58/harness_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_2_58/tickets_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a/harness_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b/harness_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b/tickets_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b1/harness_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/release_b1/tickets_schemata.toml +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/marketplace_support.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/secret_support.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/support.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_app.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprint_values.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_clickhouse_project_ids.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_cves.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_drift.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_init.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_installer.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_models.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_settings.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_tags.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_ticket_state_trigger.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_tickets_rename.py +0 -0
- {imbi_api-2.64.0 → imbi_api-2.65.0}/tests/test_workflow_reconcile.py +0 -0
- {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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
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
|
-
|
|
855
|
-
|
|
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
|
-
|
|
876
|
-
|
|
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
|
-
|
|
879
|
-
|
|
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
|
|
890
|
-
|
|
891
|
-
views agree on which attempt is current.
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
``
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
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
|
-
|
|
926
|
-
|
|
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
|
|
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
|
-
#
|
|
937
|
-
#
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
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
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
+
|
|
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
|
|
194
|
+
async def _fetch_org_projects(
|
|
193
195
|
db: graph.Pool,
|
|
194
196
|
org_slug: str,
|
|
195
|
-
) ->
|
|
196
|
-
"""Return the
|
|
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
|
|
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
|
-
|
|
728
|
-
|
|
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=
|
|
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
|
|
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
|
-
"""
|
|
536
|
-
|
|
537
|
-
|
|
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
|