imbi-api 2.48.0__tar.gz → 2.49.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.48.0 → imbi_api-2.49.0}/PKG-INFO +2 -2
- {imbi_api-2.48.0 → imbi_api-2.49.0}/pyproject.toml +2 -2
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/agent_tasks/store.py +14 -20
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/app.py +73 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/agent_api_routes.py +2 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/seed.py +9 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/commit_sync/queue.py +7 -3
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/component_facts.py +14 -11
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/deployment_sync/queue.py +7 -3
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/drift.py +20 -6
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_helpers.py +146 -21
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/agent_tasks.py +6 -2
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/auth.py +4 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_configuration.py +8 -3
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_deployments.py +120 -58
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/projects.py +83 -21
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/releases.py +106 -57
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/secret_broker.py +24 -21
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/webhooks.py +41 -2
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/workflow_runs.py +109 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/workflows.py +15 -5
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/store.py +3 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/maintenance/worker.py +11 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/openapi.py +31 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/__init__.py +28 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/lifecycle_dispatch.py +92 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/store.py +76 -13
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/workflows/__init__.py +9 -3
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/workflows/runs.py +212 -4
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/workflows/store.py +21 -3
- imbi_api-2.49.0/src/imbi/api/workflows/task_trigger.py +111 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_ai_providers.py +28 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_auth.py +18 -6
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_components.py +2 -2
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_harness.py +24 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_configuration.py +32 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_deployments.py +112 -6
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_projects.py +122 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_releases.py +130 -7
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_secret_broker.py +69 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_service_writeback.py +26 -9
- imbi_api-2.49.0/tests/endpoints/test_shared_identifier.py +147 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_webhooks.py +5 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_workflow_runs.py +307 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_workflows.py +22 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/support.py +10 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_app.py +71 -0
- imbi_api-2.49.0/tests/test_clickhouse_project_ids.py +144 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_commit_sync_queue.py +23 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_component_facts.py +1 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_deployment_sync_queue.py +23 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_drift.py +28 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_lifecycle_dispatch.py +115 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_maintenance_worker.py +22 -1
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_openapi.py +28 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_projects_drift_ranges.py +3 -3
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_secret_github_app.py +14 -7
- imbi_api-2.49.0/tests/test_task_trigger.py +203 -0
- imbi_api-2.48.0/tests/test_clickhouse_project_ids.py +0 -40
- {imbi_api-2.48.0 → imbi_api-2.49.0}/.gitignore +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/README.md +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/moon.yml +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/agent_tasks/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/agent_tasks/log.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/agent_tasks/schemata.toml +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/agent_tasks/sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/agent_task_harness.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/agents.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/harness.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/organizations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/maintenance/operations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/maintenance/registry.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/workflows/runtime_schemata.toml +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_task_harness.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_tasks.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_agents.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_organizations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/secret_support.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_init.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_installer.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_models.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.0}/tests/test_settings.py +0 -0
- {imbi_api-2.48.0 → imbi_api-2.49.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.49.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.49.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.49.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.49.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
35
|
"limits>=5,<6",
|
|
@@ -33,6 +33,7 @@ from psycopg import rows, sql
|
|
|
33
33
|
from psycopg.types import json as pg_json
|
|
34
34
|
|
|
35
35
|
from imbi.api.agent_tasks import log
|
|
36
|
+
from imbi.common.workflows.registry import agent as agent_step
|
|
36
37
|
|
|
37
38
|
type Pool = psycopg_pool.AsyncConnectionPool[
|
|
38
39
|
psycopg.AsyncConnection[typing.Any]
|
|
@@ -63,7 +64,7 @@ def unregister_close_hook(hook: CloseHook) -> None:
|
|
|
63
64
|
_close_hooks.remove(hook)
|
|
64
65
|
|
|
65
66
|
|
|
66
|
-
async def
|
|
67
|
+
async def run_close_hooks(task: Row) -> None:
|
|
67
68
|
"""Call every close hook. A failure is logged; the task stays
|
|
68
69
|
closed."""
|
|
69
70
|
for hook in list(_close_hooks):
|
|
@@ -82,24 +83,7 @@ Status = typing.Literal['queued', 'running', 'blocked', 'paused', 'closed']
|
|
|
82
83
|
Control = typing.Literal['run', 'pause', 'cancel']
|
|
83
84
|
ActorKind = typing.Literal['human', 'agent', 'subagent', 'system']
|
|
84
85
|
Channel = typing.Literal['web', 'slack', 'mcp', 'api', 'harness']
|
|
85
|
-
|
|
86
|
-
Outcome = typing.Literal[
|
|
87
|
-
'done_acted',
|
|
88
|
-
'done_nothing_to_act_on',
|
|
89
|
-
'no_reason_to_run',
|
|
90
|
-
'partial_capped',
|
|
91
|
-
'suppressed_duplicate',
|
|
92
|
-
'superseded',
|
|
93
|
-
'cancelled_by_human',
|
|
94
|
-
'interrupted_by_operator',
|
|
95
|
-
'failed_at_gate',
|
|
96
|
-
'failed_external',
|
|
97
|
-
'unmapped_subject',
|
|
98
|
-
'exceeded_ceiling',
|
|
99
|
-
'unhandled_no_actor',
|
|
100
|
-
'request_expired',
|
|
101
|
-
'refused_rate_ceiling',
|
|
102
|
-
]
|
|
86
|
+
Outcome = agent_step.Outcome
|
|
103
87
|
|
|
104
88
|
#: The open requests of the task ``t`` that a person can still resolve.
|
|
105
89
|
#: A task that is not closed and has one waits on a person (O1), also
|
|
@@ -449,7 +433,7 @@ class TaskStore:
|
|
|
449
433
|
await log.publish(write.task, write.events, write.ledger)
|
|
450
434
|
# The lock refuses a closed task, so this write closed it.
|
|
451
435
|
if write.task['status'] == 'closed':
|
|
452
|
-
await
|
|
436
|
+
await run_close_hooks(write.task)
|
|
453
437
|
|
|
454
438
|
async def move_legacy_projects(self) -> int:
|
|
455
439
|
"""Move the old single project of each task (``tasks.project_id``)
|
|
@@ -617,6 +601,16 @@ class TaskStore:
|
|
|
617
601
|
(organization_id, short_id),
|
|
618
602
|
)
|
|
619
603
|
|
|
604
|
+
async def chain_root(self, task: Row) -> Row | None:
|
|
605
|
+
"""Return the root task of the chain of ``task`` (ADR 0022)."""
|
|
606
|
+
chain_id = task['chain_id'] or task['id']
|
|
607
|
+
if chain_id == task['id']:
|
|
608
|
+
return task
|
|
609
|
+
async with self._pool.connection() as conn:
|
|
610
|
+
return await _fetch_one(
|
|
611
|
+
conn, _SELECT_TASKS + ' WHERE t.id = %s', (chain_id,)
|
|
612
|
+
)
|
|
613
|
+
|
|
620
614
|
async def search(
|
|
621
615
|
self,
|
|
622
616
|
organization_id: str,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import logging
|
|
2
|
+
import math
|
|
3
|
+
import time
|
|
2
4
|
|
|
3
5
|
import fastapi
|
|
6
|
+
import httpx
|
|
4
7
|
from fastapi import responses
|
|
5
8
|
from fastapi.middleware import cors
|
|
6
9
|
from uvicorn.middleware import proxy_headers
|
|
@@ -11,6 +14,7 @@ from imbi.api import (
|
|
|
11
14
|
harness,
|
|
12
15
|
lifespans,
|
|
13
16
|
openapi,
|
|
17
|
+
plugins,
|
|
14
18
|
secret_broker,
|
|
15
19
|
settings,
|
|
16
20
|
version,
|
|
@@ -31,6 +35,8 @@ from imbi.common.auth import permissions as common_permissions
|
|
|
31
35
|
from imbi.common.plugins.errors import (
|
|
32
36
|
PluginCredentialsMissing,
|
|
33
37
|
PluginInstallationMissing,
|
|
38
|
+
PluginRateLimited,
|
|
39
|
+
PluginUnavailableError,
|
|
34
40
|
)
|
|
35
41
|
from imbi.common.prompts import pool as prompt_pool
|
|
36
42
|
|
|
@@ -144,6 +150,73 @@ def create_app() -> fastapi.FastAPI:
|
|
|
144
150
|
},
|
|
145
151
|
)
|
|
146
152
|
|
|
153
|
+
# An upstream host (GitHub, AWS, ...) refused a plugin call and the
|
|
154
|
+
# endpoint did not map the refusal itself. Answer with the nearest
|
|
155
|
+
# status instead of a 500: the request or ref is bad (422), the
|
|
156
|
+
# credential has no access (403), the host rate limits us (503 with
|
|
157
|
+
# Retry-After), or the host failed (502).
|
|
158
|
+
@app.exception_handler(httpx.HTTPStatusError)
|
|
159
|
+
async def _upstream_status_error( # pyright: ignore[reportUnusedFunction]
|
|
160
|
+
_request: fastapi.Request,
|
|
161
|
+
exc: httpx.HTTPStatusError,
|
|
162
|
+
) -> responses.JSONResponse:
|
|
163
|
+
upstream = exc.response.status_code
|
|
164
|
+
LOGGER.warning(
|
|
165
|
+
'Upstream %s %s answered HTTP %s',
|
|
166
|
+
exc.request.method,
|
|
167
|
+
exc.request.url,
|
|
168
|
+
upstream,
|
|
169
|
+
)
|
|
170
|
+
headers: dict[str, str] = {}
|
|
171
|
+
rate_limited = upstream == 429 or (
|
|
172
|
+
upstream == 403
|
|
173
|
+
and (
|
|
174
|
+
exc.response.headers.get('x-ratelimit-remaining') == '0'
|
|
175
|
+
or 'retry-after' in exc.response.headers
|
|
176
|
+
)
|
|
177
|
+
)
|
|
178
|
+
if upstream in (404, 422):
|
|
179
|
+
status = 422
|
|
180
|
+
elif rate_limited:
|
|
181
|
+
status = 503
|
|
182
|
+
headers['Retry-After'] = plugins.host_retry_after(exc.response)
|
|
183
|
+
elif upstream == 403:
|
|
184
|
+
status = 403
|
|
185
|
+
else:
|
|
186
|
+
status = 502
|
|
187
|
+
return responses.JSONResponse(
|
|
188
|
+
status_code=status,
|
|
189
|
+
content={
|
|
190
|
+
'detail': f'The upstream service answered HTTP {upstream}'
|
|
191
|
+
},
|
|
192
|
+
headers=headers,
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
@app.exception_handler(PluginUnavailableError)
|
|
196
|
+
async def _plugin_unavailable( # pyright: ignore[reportUnusedFunction]
|
|
197
|
+
_request: fastapi.Request,
|
|
198
|
+
exc: PluginUnavailableError,
|
|
199
|
+
) -> responses.JSONResponse:
|
|
200
|
+
LOGGER.warning('Plugin unavailable: %s', exc)
|
|
201
|
+
return responses.JSONResponse(
|
|
202
|
+
status_code=503,
|
|
203
|
+
content={'detail': str(exc)},
|
|
204
|
+
headers={'Retry-After': '5'},
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
@app.exception_handler(PluginRateLimited)
|
|
208
|
+
async def _plugin_rate_limited( # pyright: ignore[reportUnusedFunction]
|
|
209
|
+
_request: fastapi.Request,
|
|
210
|
+
exc: PluginRateLimited,
|
|
211
|
+
) -> responses.JSONResponse:
|
|
212
|
+
LOGGER.warning('Plugin rate limited: %s', exc)
|
|
213
|
+
wait = max(1, math.ceil(exc.retry_at - time.time()))
|
|
214
|
+
return responses.JSONResponse(
|
|
215
|
+
status_code=503,
|
|
216
|
+
content={'detail': str(exc)},
|
|
217
|
+
headers={'Retry-After': str(wait)},
|
|
218
|
+
)
|
|
219
|
+
|
|
147
220
|
# Phase 5: Setup rate limiting middleware
|
|
148
221
|
rate_limit.setup_rate_limiting(app)
|
|
149
222
|
|
|
@@ -133,6 +133,7 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
133
133
|
'GET /organizations/{org_slug}/webhooks/',
|
|
134
134
|
'GET /organizations/{org_slug}/webhooks/{webhook}',
|
|
135
135
|
'GET /organizations/{org_slug}/workflow-runs/attention',
|
|
136
|
+
'GET /organizations/{org_slug}/workflow-runs/side-effects',
|
|
136
137
|
'GET /organizations/{org_slug}/workflow-step-types/',
|
|
137
138
|
'GET /organizations/{org_slug}/workflows/',
|
|
138
139
|
'GET /organizations/{org_slug}/workflows/{slug}',
|
|
@@ -294,6 +295,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
294
295
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task',
|
|
295
296
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task/cancel',
|
|
296
297
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/email',
|
|
298
|
+
'POST /organizations/{org_slug}/workflow-runs/side-effects/resolve',
|
|
297
299
|
'POST /organizations/{org_slug}/workflows/{slug}/test-runs',
|
|
298
300
|
'PUT /organizations/{org_slug}/workflows/{slug}',
|
|
299
301
|
# Global configuration writes: they change every organization (and are also governance). Component and component release status and advisories are global marks by design.
|
|
@@ -518,6 +518,14 @@ STANDARD_PERMISSIONS: list[tuple[str, str, str, str]] = [
|
|
|
518
518
|
'run',
|
|
519
519
|
'Start manual and test runs of workflows, and cancel runs',
|
|
520
520
|
),
|
|
521
|
+
# Granted to no non-admin default role.
|
|
522
|
+
(
|
|
523
|
+
'workflow:recover',
|
|
524
|
+
'workflow',
|
|
525
|
+
'recover',
|
|
526
|
+
'Resolve workflow side effects with an unknown outcome, and retry'
|
|
527
|
+
' their steps',
|
|
528
|
+
),
|
|
521
529
|
# Runner pools (ADR 0022). Only platform administrators
|
|
522
530
|
# (`is_admin`) change pools. That is not a permission, because an
|
|
523
531
|
# organization administrator could grant a permission to a role.
|
|
@@ -889,6 +897,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
889
897
|
'upload:delete',
|
|
890
898
|
'tag:delete',
|
|
891
899
|
'service_account:read',
|
|
900
|
+
'secret_binding:read',
|
|
892
901
|
'operations_log:create',
|
|
893
902
|
'operations_log:update',
|
|
894
903
|
'operations_log:delete',
|
|
@@ -25,7 +25,10 @@ from imbi.api.commit_sync.service import (
|
|
|
25
25
|
set_status,
|
|
26
26
|
)
|
|
27
27
|
from imbi.common import graph
|
|
28
|
-
from imbi.common.plugins.errors import
|
|
28
|
+
from imbi.common.plugins.errors import (
|
|
29
|
+
PluginInstallationMissing,
|
|
30
|
+
PluginRateLimited,
|
|
31
|
+
)
|
|
29
32
|
|
|
30
33
|
STREAM = 'imbi:commit-sync'
|
|
31
34
|
GROUP = 'commit-sync-workers'
|
|
@@ -109,8 +112,9 @@ async def _process_message(db: graph.Graph, fields: dict[str, str]) -> None:
|
|
|
109
112
|
)
|
|
110
113
|
try:
|
|
111
114
|
commits, tags = await run_sync(db, org_slug, project_id)
|
|
112
|
-
except CommitSyncUnavailable as exc:
|
|
113
|
-
# Misconfiguration
|
|
115
|
+
except (CommitSyncUnavailable, PluginInstallationMissing) as exc:
|
|
116
|
+
# Misconfiguration (e.g. the GitHub App is not installed on the
|
|
117
|
+
# repository), not transient: record and don't retry.
|
|
114
118
|
LOGGER.warning('commit-sync unavailable for %s: %s', project_id, exc)
|
|
115
119
|
await set_status(
|
|
116
120
|
db,
|
|
@@ -88,7 +88,7 @@ _BATCHES_BY_RELEASE = (
|
|
|
88
88
|
'SELECT release_id,'
|
|
89
89
|
" argMax(batch_id, (source = 'ingest', recorded_at)) AS batch_id"
|
|
90
90
|
' FROM imbi.release_component_batches'
|
|
91
|
-
' WHERE release_id IN
|
|
91
|
+
' WHERE release_id IN (SELECT id FROM release_ids)'
|
|
92
92
|
' GROUP BY release_id'
|
|
93
93
|
)
|
|
94
94
|
|
|
@@ -111,9 +111,9 @@ def _by_project(select: str, where: str = '') -> str:
|
|
|
111
111
|
def _by_release(select: str, where: str = '') -> str:
|
|
112
112
|
"""Compose a release-scoped read against the winning batches."""
|
|
113
113
|
return (
|
|
114
|
-
f'{select} FROM imbi.release_components AS c'
|
|
114
|
+
f'{select} FROM imbi.release_components AS c' # noqa: S608
|
|
115
115
|
+ _JOIN.format(batches=_BATCHES_BY_RELEASE)
|
|
116
|
-
+ ' WHERE c.release_id IN
|
|
116
|
+
+ ' WHERE c.release_id IN (SELECT id FROM release_ids)'
|
|
117
117
|
+ where
|
|
118
118
|
)
|
|
119
119
|
|
|
@@ -148,14 +148,16 @@ async def component_ids_in_org(
|
|
|
148
148
|
if not project_ids or component_ids == []:
|
|
149
149
|
return set()
|
|
150
150
|
where = ''
|
|
151
|
-
|
|
151
|
+
tables: dict[str, list[str]] = {}
|
|
152
152
|
if component_ids is not None:
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
# The candidates come from a catalog-wide name match, so a short
|
|
154
|
+
# query can name more ids than a bound parameter holds.
|
|
155
|
+
where = ' AND c.component_id IN (SELECT id FROM component_ids)'
|
|
156
|
+
tables['component_ids'] = component_ids
|
|
155
157
|
rows = await clickhouse.query(
|
|
156
158
|
_by_project('SELECT DISTINCT c.component_id AS component_id', where),
|
|
157
|
-
params,
|
|
158
159
|
project_ids=project_ids,
|
|
160
|
+
tables=tables,
|
|
159
161
|
)
|
|
160
162
|
return {str(row['component_id']) for row in rows}
|
|
161
163
|
|
|
@@ -283,7 +285,8 @@ async def component_usage(
|
|
|
283
285
|
' c.version AS version',
|
|
284
286
|
' AND c.component_id = {component_id:String}',
|
|
285
287
|
),
|
|
286
|
-
{'
|
|
288
|
+
{'component_id': component_id},
|
|
289
|
+
tables={'release_ids': release_ids},
|
|
287
290
|
)
|
|
288
291
|
return [
|
|
289
292
|
(
|
|
@@ -314,9 +317,9 @@ async def governed_usage(
|
|
|
314
317
|
' c.component_release_id AS component_release_id,'
|
|
315
318
|
' c.version AS version',
|
|
316
319
|
' AND c.component_release_id IN'
|
|
317
|
-
'
|
|
320
|
+
' (SELECT id FROM component_release_ids)',
|
|
318
321
|
),
|
|
319
|
-
{
|
|
322
|
+
tables={
|
|
320
323
|
'release_ids': release_ids,
|
|
321
324
|
'component_release_ids': component_release_ids,
|
|
322
325
|
},
|
|
@@ -350,6 +353,6 @@ async def release_components(
|
|
|
350
353
|
' c.scope AS scope,'
|
|
351
354
|
' c.groups AS groups',
|
|
352
355
|
),
|
|
353
|
-
{'release_ids': [release_id]},
|
|
356
|
+
tables={'release_ids': [release_id]},
|
|
354
357
|
)
|
|
355
358
|
return list(rows)
|
|
@@ -27,7 +27,10 @@ from imbi.api.deployment_sync.service import (
|
|
|
27
27
|
set_status,
|
|
28
28
|
)
|
|
29
29
|
from imbi.common import graph
|
|
30
|
-
from imbi.common.plugins.errors import
|
|
30
|
+
from imbi.common.plugins.errors import (
|
|
31
|
+
PluginInstallationMissing,
|
|
32
|
+
PluginRateLimited,
|
|
33
|
+
)
|
|
31
34
|
|
|
32
35
|
STREAM = 'imbi:deployment-sync'
|
|
33
36
|
GROUP = 'deployment-sync-workers'
|
|
@@ -120,8 +123,9 @@ async def _process_message(db: graph.Graph, fields: dict[str, str]) -> None:
|
|
|
120
123
|
)
|
|
121
124
|
try:
|
|
122
125
|
summary = await run_resync(db, org_slug, project_id, limit)
|
|
123
|
-
except DeploymentSyncUnavailable as exc:
|
|
124
|
-
# Misconfiguration
|
|
126
|
+
except (DeploymentSyncUnavailable, PluginInstallationMissing) as exc:
|
|
127
|
+
# Misconfiguration (e.g. the GitHub App is not installed on the
|
|
128
|
+
# repository), not transient: record and don't retry.
|
|
125
129
|
LOGGER.warning(
|
|
126
130
|
'deployment-sync unavailable for %s: %s', project_id, exc
|
|
127
131
|
)
|
|
@@ -38,6 +38,7 @@ import logging
|
|
|
38
38
|
import typing
|
|
39
39
|
|
|
40
40
|
import fastapi
|
|
41
|
+
import httpx
|
|
41
42
|
|
|
42
43
|
from imbi.api.auth import principals
|
|
43
44
|
from imbi.common import clickhouse, graph, iggy
|
|
@@ -562,12 +563,25 @@ async def sweep_project(
|
|
|
562
563
|
return None
|
|
563
564
|
except plugin_errors.PluginRateLimited:
|
|
564
565
|
raise
|
|
565
|
-
except Exception:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
566
|
+
except Exception as exc:
|
|
567
|
+
if isinstance(
|
|
568
|
+
exc, httpx.HTTPStatusError
|
|
569
|
+
) and exc.response.status_code in (404, 422):
|
|
570
|
+
# The remote does not know the committish (e.g. a bad
|
|
571
|
+
# short SHA). Expected, so not an error.
|
|
572
|
+
LOGGER.warning(
|
|
573
|
+
'drift sweep: the remote cannot resolve %s on project '
|
|
574
|
+
'%s (HTTP %s)',
|
|
575
|
+
committish,
|
|
576
|
+
project_id,
|
|
577
|
+
exc.response.status_code,
|
|
578
|
+
)
|
|
579
|
+
else:
|
|
580
|
+
LOGGER.exception(
|
|
581
|
+
'drift sweep could not read the note for %s on project %s',
|
|
582
|
+
committish,
|
|
583
|
+
project_id,
|
|
584
|
+
)
|
|
571
585
|
continue
|
|
572
586
|
await _stamp_release(
|
|
573
587
|
db,
|
|
@@ -15,6 +15,8 @@ from imbi.api.auth import permissions
|
|
|
15
15
|
from imbi.common import graph
|
|
16
16
|
from imbi.common import models as common_models
|
|
17
17
|
from imbi.common import patch as json_patch
|
|
18
|
+
from imbi.common.plugins import errors as plugin_errors
|
|
19
|
+
from imbi.common.plugins import registry as plugin_registry
|
|
18
20
|
from imbi.common.plugins.base import (
|
|
19
21
|
PluginContext,
|
|
20
22
|
ProjectDependency,
|
|
@@ -796,6 +798,114 @@ async def _repoint_refusal(
|
|
|
796
798
|
return None
|
|
797
799
|
|
|
798
800
|
|
|
801
|
+
#: Another project in the organization with an ``EXISTS_IN`` edge to
|
|
802
|
+
#: the same Integration and identifier.
|
|
803
|
+
_IDENTIFIER_HOLDER: typing.LiteralString = (
|
|
804
|
+
'MATCH (o:Organization {{slug: {org_slug}}})<-[:BELONGS_TO]-(:Team)'
|
|
805
|
+
'<-[:OWNED_BY]-(p:Project)-[ei:EXISTS_IN]->'
|
|
806
|
+
'(i:Integration {{slug: {integration_slug}}})-[:BELONGS_TO]->(o) '
|
|
807
|
+
'WHERE ei.identifier = {identifier} AND p.id <> {project_id} '
|
|
808
|
+
)
|
|
809
|
+
_IDENTIFIER_HOLDER_RETURN: typing.LiteralString = (
|
|
810
|
+
'RETURN i.plugin AS plugin, p.slug AS project_slug LIMIT 1'
|
|
811
|
+
)
|
|
812
|
+
#: Only a holder whose edge the plugin verified from the remote API.
|
|
813
|
+
_VERIFIED_HOLDER: typing.LiteralString = (
|
|
814
|
+
'AND ei.verified_identifier = ei.identifier '
|
|
815
|
+
)
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
class SharedIdentifierRefused(Exception):
|
|
819
|
+
""":func:`claim_identifier` refused the write; the message says why."""
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
async def claim_identifier(
|
|
823
|
+
db: graph.Graph,
|
|
824
|
+
org_slug: str,
|
|
825
|
+
project_id: str,
|
|
826
|
+
slug: str,
|
|
827
|
+
identifier: str,
|
|
828
|
+
write: collections.abc.Callable[
|
|
829
|
+
[graph.CypherExecute], collections.abc.Awaitable[T]
|
|
830
|
+
],
|
|
831
|
+
*,
|
|
832
|
+
verified: bool = False,
|
|
833
|
+
) -> T:
|
|
834
|
+
"""Run ``write`` unless :func:`shared_identifier_refusal` refuses.
|
|
835
|
+
|
|
836
|
+
The holder check and ``write`` run in one transaction under an
|
|
837
|
+
advisory lock on the organization, Integration, and identifier.
|
|
838
|
+
Thus two projects that claim one unused identifier at the same
|
|
839
|
+
time cannot both get an ``EXISTS_IN`` edge to it: AGE has no
|
|
840
|
+
unique constraint that stops the second edge.
|
|
841
|
+
|
|
842
|
+
Raises :class:`SharedIdentifierRefused`, and writes nothing, when
|
|
843
|
+
the check refuses.
|
|
844
|
+
"""
|
|
845
|
+
|
|
846
|
+
async def claim(execute: graph.CypherExecute) -> T:
|
|
847
|
+
refusal = await shared_identifier_refusal(
|
|
848
|
+
execute, org_slug, project_id, slug, identifier, verified=verified
|
|
849
|
+
)
|
|
850
|
+
if refusal is not None:
|
|
851
|
+
raise SharedIdentifierRefused(refusal)
|
|
852
|
+
return await write(execute)
|
|
853
|
+
|
|
854
|
+
return await db.locked(f'exists-in:{org_slug}:{slug}:{identifier}', claim)
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
async def shared_identifier_refusal(
|
|
858
|
+
execute: graph.CypherExecute,
|
|
859
|
+
org_slug: str,
|
|
860
|
+
project_id: str,
|
|
861
|
+
slug: str,
|
|
862
|
+
identifier: str,
|
|
863
|
+
*,
|
|
864
|
+
verified: bool = False,
|
|
865
|
+
) -> str | None:
|
|
866
|
+
"""Return why ``identifier`` cannot be shared, or ``None``.
|
|
867
|
+
|
|
868
|
+
Refuses when another project in the organization already holds
|
|
869
|
+
``identifier`` for the same Integration and the plugin declares
|
|
870
|
+
``shareable_service_identifier = False`` (issue #639). A plugin
|
|
871
|
+
that is not loaded is treated as shareable.
|
|
872
|
+
|
|
873
|
+
Set ``verified`` for a plugin writeback that verified
|
|
874
|
+
``identifier`` from the remote API. Then only a verified holder
|
|
875
|
+
refuses, so a manual link made first cannot squat the identifier.
|
|
876
|
+
A manual link is refused by any holder.
|
|
877
|
+
"""
|
|
878
|
+
query: typing.LiteralString = (
|
|
879
|
+
_IDENTIFIER_HOLDER
|
|
880
|
+
+ (_VERIFIED_HOLDER if verified else '')
|
|
881
|
+
+ _IDENTIFIER_HOLDER_RETURN
|
|
882
|
+
)
|
|
883
|
+
records = await execute(
|
|
884
|
+
query,
|
|
885
|
+
{
|
|
886
|
+
'org_slug': org_slug,
|
|
887
|
+
'integration_slug': slug,
|
|
888
|
+
'identifier': identifier,
|
|
889
|
+
'project_id': project_id,
|
|
890
|
+
},
|
|
891
|
+
['plugin', 'project_slug'],
|
|
892
|
+
)
|
|
893
|
+
for row in records:
|
|
894
|
+
plugin = str(graph.parse_agtype(row.get('plugin')))
|
|
895
|
+
try:
|
|
896
|
+
entry = plugin_registry.get_plugin(plugin)
|
|
897
|
+
except plugin_errors.PluginNotFoundError:
|
|
898
|
+
return None
|
|
899
|
+
if entry.manifest.shareable_service_identifier:
|
|
900
|
+
return None
|
|
901
|
+
holder = graph.parse_agtype(row.get('project_slug'))
|
|
902
|
+
return (
|
|
903
|
+
f'Refusing to link {identifier!r}: project {holder!r} is '
|
|
904
|
+
f'already linked to it in the {slug!r} integration.'
|
|
905
|
+
)
|
|
906
|
+
return None
|
|
907
|
+
|
|
908
|
+
|
|
799
909
|
async def persist_service_writeback(
|
|
800
910
|
db: graph.Graph, ctx: PluginContext, auth: permissions.AuthContext
|
|
801
911
|
) -> str | None:
|
|
@@ -812,7 +922,9 @@ async def persist_service_writeback(
|
|
|
812
922
|
|
|
813
923
|
Returns a refusal message, and writes nothing, when a caller that
|
|
814
924
|
is not an admin would change the verified identifier of a GitHub
|
|
815
|
-
edge to a different repository
|
|
925
|
+
edge to a different repository, or when another project already
|
|
926
|
+
holds an identifier the plugin declares not shareable. Otherwise
|
|
927
|
+
returns ``None``.
|
|
816
928
|
"""
|
|
817
929
|
writeback = ctx.service_writeback
|
|
818
930
|
if writeback is None:
|
|
@@ -826,10 +938,38 @@ async def persist_service_writeback(
|
|
|
826
938
|
)
|
|
827
939
|
return None
|
|
828
940
|
try:
|
|
829
|
-
if
|
|
830
|
-
|
|
831
|
-
|
|
941
|
+
if writeback.remove:
|
|
942
|
+
await _delete_exists_in(db, ctx.org_slug, ctx.project_id, slug)
|
|
943
|
+
await merge_project_links(
|
|
944
|
+
db, ctx.project_id, remove=writeback.dashboard_links.keys()
|
|
832
945
|
)
|
|
946
|
+
else:
|
|
947
|
+
refusal = None
|
|
948
|
+
if not auth.is_admin:
|
|
949
|
+
refusal = await _repoint_refusal(
|
|
950
|
+
db, ctx, slug, writeback.identifier
|
|
951
|
+
)
|
|
952
|
+
if refusal is None:
|
|
953
|
+
try:
|
|
954
|
+
await claim_identifier(
|
|
955
|
+
db,
|
|
956
|
+
ctx.org_slug,
|
|
957
|
+
ctx.project_id,
|
|
958
|
+
slug,
|
|
959
|
+
writeback.identifier,
|
|
960
|
+
lambda execute: _merge_exists_in(
|
|
961
|
+
execute,
|
|
962
|
+
ctx.org_slug,
|
|
963
|
+
ctx.project_id,
|
|
964
|
+
slug,
|
|
965
|
+
writeback.identifier,
|
|
966
|
+
writeback.canonical_url,
|
|
967
|
+
writeback.webhook_secret_enc,
|
|
968
|
+
),
|
|
969
|
+
verified=True,
|
|
970
|
+
)
|
|
971
|
+
except SharedIdentifierRefused as exc:
|
|
972
|
+
refusal = str(exc)
|
|
833
973
|
if refusal is not None:
|
|
834
974
|
LOGGER.warning(
|
|
835
975
|
'Refused service writeback for project %s (%s): %s',
|
|
@@ -838,21 +978,6 @@ async def persist_service_writeback(
|
|
|
838
978
|
refusal,
|
|
839
979
|
)
|
|
840
980
|
return refusal
|
|
841
|
-
if writeback.remove:
|
|
842
|
-
await _delete_exists_in(db, ctx.org_slug, ctx.project_id, slug)
|
|
843
|
-
await merge_project_links(
|
|
844
|
-
db, ctx.project_id, remove=writeback.dashboard_links.keys()
|
|
845
|
-
)
|
|
846
|
-
else:
|
|
847
|
-
await _merge_exists_in(
|
|
848
|
-
db,
|
|
849
|
-
ctx.org_slug,
|
|
850
|
-
ctx.project_id,
|
|
851
|
-
slug,
|
|
852
|
-
writeback.identifier,
|
|
853
|
-
writeback.canonical_url,
|
|
854
|
-
writeback.webhook_secret_enc,
|
|
855
|
-
)
|
|
856
981
|
await merge_project_links(
|
|
857
982
|
db, ctx.project_id, add=writeback.dashboard_links
|
|
858
983
|
)
|
|
@@ -874,7 +999,7 @@ async def persist_service_writeback(
|
|
|
874
999
|
|
|
875
1000
|
|
|
876
1001
|
async def _merge_exists_in(
|
|
877
|
-
|
|
1002
|
+
execute: graph.CypherExecute,
|
|
878
1003
|
org_slug: str,
|
|
879
1004
|
project_id: str,
|
|
880
1005
|
integration_slug: str,
|
|
@@ -928,7 +1053,7 @@ async def _merge_exists_in(
|
|
|
928
1053
|
}
|
|
929
1054
|
if webhook_secret_enc is not None:
|
|
930
1055
|
params['webhook_secret_enc'] = webhook_secret_enc
|
|
931
|
-
await
|
|
1056
|
+
await execute(query, params, ['identifier'])
|
|
932
1057
|
|
|
933
1058
|
|
|
934
1059
|
async def _delete_exists_in(
|
|
@@ -161,12 +161,16 @@ class AgentTaskOrigin(pydantic.BaseModel):
|
|
|
161
161
|
"""What started a task. It does not change.
|
|
162
162
|
|
|
163
163
|
A ``schedule`` origin also has ``scheduled_task_id``. A ``webhook``
|
|
164
|
-
origin also has ``webhook_id`` and ``delivery_id``.
|
|
164
|
+
origin also has ``webhook_id`` and ``delivery_id``. A
|
|
165
|
+
``task_completed`` origin is a workflow run that a closed task
|
|
166
|
+
started; it also has ``task_id``.
|
|
165
167
|
"""
|
|
166
168
|
|
|
167
169
|
model_config = pydantic.ConfigDict(extra='allow')
|
|
168
170
|
|
|
169
|
-
kind: typing.Literal[
|
|
171
|
+
kind: typing.Literal[
|
|
172
|
+
'human', 'schedule', 'webhook', 'task', 'task_completed'
|
|
173
|
+
]
|
|
170
174
|
#: The email of the person, for a ``human`` origin.
|
|
171
175
|
user: str | None = None
|
|
172
176
|
|
|
@@ -1210,7 +1210,10 @@ async def _handle_refresh_reuse(
|
|
|
1210
1210
|
if cascade_rows:
|
|
1211
1211
|
raw = graph.parse_agtype(cascade_rows[0].get('revoked_count'))
|
|
1212
1212
|
cascaded = int(raw or 0)
|
|
1213
|
-
|
|
1213
|
+
# Zero siblings means the family was already revoked: usually two
|
|
1214
|
+
# tabs that sent the same cookie, not a leaked token.
|
|
1215
|
+
LOGGER.log(
|
|
1216
|
+
logging.ERROR if cascaded else logging.WARNING,
|
|
1214
1217
|
'Refresh-token reuse detected (jti=%s, family_id=%s); '
|
|
1215
1218
|
'revoked %d sibling tokens',
|
|
1216
1219
|
jti,
|
|
@@ -311,9 +311,14 @@ async def set_configuration_value(
|
|
|
311
311
|
handler.set_value(c, credentials, key, body)
|
|
312
312
|
)
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
314
|
+
try:
|
|
315
|
+
result_key = await call_with_identity_retry(
|
|
316
|
+
db, ctx, resolved, auth, fn=_set_value
|
|
317
|
+
)
|
|
318
|
+
except ValueError as exc:
|
|
319
|
+
# The plugin's backend refused the value (e.g. SSM rejects an
|
|
320
|
+
# empty value), so the request is bad.
|
|
321
|
+
raise fastapi.HTTPException(status_code=400, detail=str(exc)) from exc
|
|
317
322
|
|
|
318
323
|
await _invalidate_cache(resolved.integration_id, project_id)
|
|
319
324
|
project_slug = await _lookup_project_slug(db, project_id)
|