imbi-api 2.49.0__tar.gz → 2.50.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.49.0 → imbi_api-2.50.0}/PKG-INFO +3 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/pyproject.toml +3 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/agent_tasks/__init__.py +1 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/agent_tasks/log.py +6 -4
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/agent_tasks/schemata.toml +18 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/agent_tasks/store.py +58 -6
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/agent_tools.py +30 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/app.py +30 -4
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/agent_api.py +1 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/agent_api_routes.py +2 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/autonomous.py +34 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/internal_services.py +11 -10
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/organizations.py +7 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/seed.py +25 -5
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/commit_pushed_at_repair.py +2 -2
- imbi_api-2.50.0/src/imbi/api/cves.py +410 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/drift.py +3 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/__init__.py +2 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_helpers.py +16 -3
- imbi_api-2.50.0/src/imbi/api/endpoints/_local_time.py +56 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/agent_task_harness.py +57 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/agent_tasks.py +10 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/agent_usage.py +24 -12
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/agents.py +30 -6
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/components.py +69 -18
- imbi_api-2.50.0/src/imbi/api/endpoints/cves.py +33 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/dashboard.py +11 -10
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/harness.py +19 -10
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/maintenance.py +40 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/organizations.py +127 -5
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_deployments.py +54 -34
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/projects.py +12 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/status.py +8 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/webhooks.py +2 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/workflow_runs.py +169 -17
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/workflows.py +9 -3
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/__init__.py +14 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/auth.py +5 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/platform.py +33 -4
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/store.py +13 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/maintenance/operations.py +92 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/maintenance/registry.py +32 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/__init__.py +1 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/store.py +15 -3
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/settings.py +3 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/__init__.py +4 -3
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/runs.py +93 -5
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/runtime_schemata.toml +11 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/store.py +4 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/sweeper.py +35 -3
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/task_trigger.py +28 -5
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_organizations.py +79 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_seed.py +13 -3
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_task_harness.py +128 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_tasks.py +47 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_usage.py +30 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agents.py +100 -0
- imbi_api-2.50.0/tests/endpoints/test_caller_org_slugs.py +29 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_components.py +106 -0
- imbi_api-2.50.0/tests/endpoints/test_cves.py +66 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_dashboard.py +35 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_harness.py +8 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_maintenance.py +19 -0
- imbi_api-2.50.0/tests/endpoints/test_organizations.py +968 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_deployments.py +1 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_projects.py +80 -4
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_secret_broker.py +24 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_status.py +13 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_workflow_run_history.py +41 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_workflow_runs.py +241 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_workflow_triggers.py +263 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_workflows.py +37 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_agent_platform.py +56 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_agent_tools.py +30 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_app.py +18 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_clickhouse_project_ids.py +89 -1
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_commit_pushed_at_repair.py +5 -3
- imbi_api-2.50.0/tests/test_cves.py +453 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_drift.py +2 -2
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_maintenance_operations.py +59 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_task_trigger.py +82 -0
- imbi_api-2.50.0/tests/test_workflow_reconcile.py +40 -0
- imbi_api-2.49.0/tests/endpoints/test_organizations.py +0 -511
- imbi_api-2.49.0/tests/test_workflow_reconcile.py +0 -19
- {imbi_api-2.49.0 → imbi_api-2.50.0}/.gitignore +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/README.md +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/moon.yml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/agent_tasks/sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/secret_support.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/support.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_installer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.50.0}/tests/test_settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: imbi-api
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.50.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,9 +20,10 @@ 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.50.0
|
|
24
24
|
Requires-Dist: jinja2
|
|
25
25
|
Requires-Dist: jsonpatch>=1.33
|
|
26
|
+
Requires-Dist: jsonschema>=4.26
|
|
26
27
|
Requires-Dist: limits<6,>=5
|
|
27
28
|
Requires-Dist: mcp>=1.26.0
|
|
28
29
|
Requires-Dist: nanoid>=2.0.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "imbi-api"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.50.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,9 +29,10 @@ 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.50.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
|
+
"jsonschema>=4.26",
|
|
35
36
|
"limits>=5,<6",
|
|
36
37
|
"mcp>=1.26.0",
|
|
37
38
|
"nanoid>=2.0.0",
|
|
@@ -60,7 +60,7 @@ _EVENT_COUNTS_QUERY = """
|
|
|
60
60
|
SELECT task_id, uniqExact(seq) AS events, max(seq) AS max_seq
|
|
61
61
|
FROM imbi.agent_task_events
|
|
62
62
|
WHERE organization_id = {organization_id:String}
|
|
63
|
-
AND task_id IN
|
|
63
|
+
AND task_id IN (SELECT id FROM task_ids)
|
|
64
64
|
GROUP BY task_id
|
|
65
65
|
"""
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ _USAGE_COUNTS_QUERY = """
|
|
|
68
68
|
SELECT task_id, uniqExact(report_id) AS reports
|
|
69
69
|
FROM imbi.agent_usage
|
|
70
70
|
WHERE organization_id = {organization_id:String}
|
|
71
|
-
AND task_id IN
|
|
71
|
+
AND task_id IN (SELECT id FROM task_ids)
|
|
72
72
|
GROUP BY task_id
|
|
73
73
|
"""
|
|
74
74
|
|
|
@@ -272,7 +272,8 @@ async def event_counts(
|
|
|
272
272
|
"""Return ``(distinct seqs, max seq)`` in ClickHouse, by task id."""
|
|
273
273
|
rows = await clickhouse.query(
|
|
274
274
|
_EVENT_COUNTS_QUERY,
|
|
275
|
-
{'organization_id': organization_id
|
|
275
|
+
{'organization_id': organization_id},
|
|
276
|
+
tables={'task_ids': task_ids},
|
|
276
277
|
)
|
|
277
278
|
return {
|
|
278
279
|
row['task_id']: (int(row['events']), int(row['max_seq']))
|
|
@@ -286,7 +287,8 @@ async def usage_counts(
|
|
|
286
287
|
"""Return the number of distinct usage reports in ClickHouse."""
|
|
287
288
|
rows = await clickhouse.query(
|
|
288
289
|
_USAGE_COUNTS_QUERY,
|
|
289
|
-
{'organization_id': organization_id
|
|
290
|
+
{'organization_id': organization_id},
|
|
291
|
+
tables={'task_ids': task_ids},
|
|
290
292
|
)
|
|
291
293
|
return {row['task_id']: int(row['reports']) for row in rows}
|
|
292
294
|
|
|
@@ -68,6 +68,10 @@ platform_config_version = "INTEGER"
|
|
|
68
68
|
# the email of that person. The dashboard does not show it then.
|
|
69
69
|
acknowledged_at = "TIMESTAMP WITH TIME ZONE"
|
|
70
70
|
acknowledged_by = "TEXT"
|
|
71
|
+
# The JSON Schema of the structured output that the agent must return,
|
|
72
|
+
# and the output that it returned. NULL when the task asks for none.
|
|
73
|
+
output_schema = "JSONB"
|
|
74
|
+
structured_output = "JSONB"
|
|
71
75
|
|
|
72
76
|
[tables.primary_key]
|
|
73
77
|
columns = ["id"]
|
|
@@ -292,3 +296,17 @@ added_at = "TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()"
|
|
|
292
296
|
|
|
293
297
|
[tables.primary_key]
|
|
294
298
|
columns = ["organization_id", "task_id", "project_id"]
|
|
299
|
+
|
|
300
|
+
# One row per closed task whose workflow `task_completed` triggers have
|
|
301
|
+
# not all started their runs. The transaction that closes the task
|
|
302
|
+
# writes the row. The trigger deletes it after it starts the runs; the
|
|
303
|
+
# workflow sweep calls the trigger again for each row that stays.
|
|
304
|
+
[[tables]]
|
|
305
|
+
name = "trigger_outbox"
|
|
306
|
+
|
|
307
|
+
[tables.columns]
|
|
308
|
+
task_id = "UUID NOT NULL REFERENCES agent_runtime.tasks (id) ON DELETE CASCADE"
|
|
309
|
+
created_at = "TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()"
|
|
310
|
+
|
|
311
|
+
[tables.primary_key]
|
|
312
|
+
columns = ["task_id"]
|
|
@@ -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 import relational
|
|
36
37
|
from imbi.common.workflows.registry import agent as agent_step
|
|
37
38
|
|
|
38
39
|
type Pool = psycopg_pool.AsyncConnectionPool[
|
|
@@ -231,6 +232,9 @@ class NewTask:
|
|
|
231
232
|
#: The root task of the chain of a child task. ``None`` makes the
|
|
232
233
|
#: task the root of its own chain.
|
|
233
234
|
chain_id: uuid.UUID | None = None
|
|
235
|
+
#: The JSON Schema of the structured output that the agent must
|
|
236
|
+
#: return. ``None``: the task asks for none.
|
|
237
|
+
output_schema: Row | None = None
|
|
234
238
|
|
|
235
239
|
|
|
236
240
|
@dataclasses.dataclass(frozen=True)
|
|
@@ -363,8 +367,19 @@ class _Write:
|
|
|
363
367
|
return row
|
|
364
368
|
|
|
365
369
|
async def update(self, changes: Row) -> Row:
|
|
366
|
-
"""Change columns of the task and keep the new row.
|
|
370
|
+
"""Change columns of the task and keep the new row.
|
|
371
|
+
|
|
372
|
+
A change that closes the task also writes its ``trigger_outbox``
|
|
373
|
+
row, so its ``task_completed`` runs start even when the close
|
|
374
|
+
hook fails.
|
|
375
|
+
"""
|
|
367
376
|
self.task = await _update_task(self.conn, self.task['id'], changes)
|
|
377
|
+
if changes.get('status') == 'closed':
|
|
378
|
+
await self.conn.execute(
|
|
379
|
+
'INSERT INTO agent_runtime.trigger_outbox (task_id)'
|
|
380
|
+
' VALUES (%s)',
|
|
381
|
+
(self.task['id'],),
|
|
382
|
+
)
|
|
368
383
|
return self.task
|
|
369
384
|
|
|
370
385
|
|
|
@@ -488,6 +503,9 @@ class TaskStore:
|
|
|
488
503
|
task_id = uuid.uuid4()
|
|
489
504
|
try:
|
|
490
505
|
async with self._pool.connection() as conn, conn.transaction():
|
|
506
|
+
await relational.lock_organization_shared(
|
|
507
|
+
conn, task.organization_id
|
|
508
|
+
)
|
|
491
509
|
if task.origin_kind == 'task':
|
|
492
510
|
# The lock conflicts with the lock in delete, so a
|
|
493
511
|
# parent cannot go while its child is made.
|
|
@@ -505,9 +523,9 @@ class TaskStore:
|
|
|
505
523
|
' service_account_id, title,'
|
|
506
524
|
' description, origin_kind, origin_id, origin,'
|
|
507
525
|
' idempotency_key, owner, budget, chain_id,'
|
|
508
|
-
' platform_config_version) VALUES (%s,'
|
|
526
|
+
' output_schema, platform_config_version) VALUES (%s,'
|
|
509
527
|
' %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s,'
|
|
510
|
-
' %s, %s, %s, (SELECT max(version)'
|
|
528
|
+
' %s, %s, %s, %s, (SELECT max(version)'
|
|
511
529
|
' FROM harness.platform_configs'
|
|
512
530
|
' WHERE organization_id = %s))',
|
|
513
531
|
(
|
|
@@ -527,6 +545,7 @@ class TaskStore:
|
|
|
527
545
|
task.owner,
|
|
528
546
|
task.budget,
|
|
529
547
|
task.chain_id or task_id,
|
|
548
|
+
_jsonb(task.output_schema),
|
|
530
549
|
task.organization_id,
|
|
531
550
|
),
|
|
532
551
|
)
|
|
@@ -740,6 +759,26 @@ class TaskStore:
|
|
|
740
759
|
return await log.last_archived_agent_turn(task)
|
|
741
760
|
return None if body is None else str(body)
|
|
742
761
|
|
|
762
|
+
async def pending_triggers(self) -> list[Row]:
|
|
763
|
+
"""Return the closed tasks that have a ``trigger_outbox`` row."""
|
|
764
|
+
async with (
|
|
765
|
+
self._pool.connection() as conn,
|
|
766
|
+
conn.cursor(row_factory=rows.dict_row) as cursor,
|
|
767
|
+
):
|
|
768
|
+
await cursor.execute(
|
|
769
|
+
_SELECT_TASKS + ' JOIN agent_runtime.trigger_outbox AS o'
|
|
770
|
+
' ON o.task_id = t.id ORDER BY o.created_at'
|
|
771
|
+
)
|
|
772
|
+
return await cursor.fetchall()
|
|
773
|
+
|
|
774
|
+
async def triggers_started(self, task_id: uuid.UUID) -> None:
|
|
775
|
+
"""Delete the ``trigger_outbox`` row of a task."""
|
|
776
|
+
async with self._pool.connection() as conn:
|
|
777
|
+
await conn.execute(
|
|
778
|
+
'DELETE FROM agent_runtime.trigger_outbox WHERE task_id = %s',
|
|
779
|
+
(task_id,),
|
|
780
|
+
)
|
|
781
|
+
|
|
743
782
|
async def unarchived(self) -> list[Row]:
|
|
744
783
|
"""Return the tasks whose log is not archived, by organization.
|
|
745
784
|
|
|
@@ -826,7 +865,8 @@ class TaskStore:
|
|
|
826
865
|
TaskNotFound: No such task.
|
|
827
866
|
TaskOpen: The task, or a child or chain task, is not closed,
|
|
828
867
|
the log of the task is not archived, its harness chain
|
|
829
|
-
is not done,
|
|
868
|
+
is not done, it has open secret resolutions, or it or a
|
|
869
|
+
task in its chain has a ``trigger_outbox`` row.
|
|
830
870
|
|
|
831
871
|
"""
|
|
832
872
|
async with self._pool.connection() as conn, conn.transaction():
|
|
@@ -857,14 +897,19 @@ class TaskStore:
|
|
|
857
897
|
raise TaskOpen(short_id)
|
|
858
898
|
# The lease sweep still needs the chain row of a root that
|
|
859
899
|
# waits for its fencers, and Broker.sweep joins the open
|
|
860
|
-
# resolutions of a failed close hook to the task.
|
|
900
|
+
# resolutions of a failed close hook to the task. A pending
|
|
901
|
+
# trigger_outbox row of the task, or of a task in the chain
|
|
902
|
+
# of a root, needs the root for its depth (task_trigger).
|
|
861
903
|
cursor = await conn.execute(
|
|
862
904
|
'SELECT 1 FROM harness.chains WHERE root_task_id = %s'
|
|
863
905
|
" AND state IN ('running', 'fencing', 'stuck')"
|
|
864
906
|
' UNION ALL SELECT 1 FROM secrets.resolutions'
|
|
865
907
|
" WHERE task_id = %s AND state IN ('pending', 'active')"
|
|
908
|
+
' UNION ALL SELECT 1 FROM agent_runtime.trigger_outbox AS o'
|
|
909
|
+
' JOIN agent_runtime.tasks AS c ON c.id = o.task_id'
|
|
910
|
+
' WHERE c.id = %s OR c.chain_id = %s'
|
|
866
911
|
' LIMIT 1',
|
|
867
|
-
(task['id'], task['id']),
|
|
912
|
+
(task['id'], task['id'], task['id'], task['id']),
|
|
868
913
|
)
|
|
869
914
|
if await cursor.fetchone() is not None:
|
|
870
915
|
raise TaskOpen(short_id)
|
|
@@ -1849,9 +1894,12 @@ class TaskStore:
|
|
|
1849
1894
|
outcome: Outcome,
|
|
1850
1895
|
reason: str | None,
|
|
1851
1896
|
actor: Actor,
|
|
1897
|
+
structured_output: Row | None = None,
|
|
1852
1898
|
) -> Row:
|
|
1853
1899
|
"""Close the task with ``outcome``; see :func:`_close`.
|
|
1854
1900
|
|
|
1901
|
+
Keep the ``structured_output`` that the agent returned, if any.
|
|
1902
|
+
|
|
1855
1903
|
Raises:
|
|
1856
1904
|
TaskNotFound: No such task.
|
|
1857
1905
|
TaskClosed: The task is closed.
|
|
@@ -1859,6 +1907,10 @@ class TaskStore:
|
|
|
1859
1907
|
"""
|
|
1860
1908
|
async with self._write(organization_id, short_id) as write:
|
|
1861
1909
|
await _close(write, outcome, reason, actor)
|
|
1910
|
+
if structured_output is not None:
|
|
1911
|
+
await write.update(
|
|
1912
|
+
{'structured_output': _jsonb(structured_output)}
|
|
1913
|
+
)
|
|
1862
1914
|
return write.task
|
|
1863
1915
|
|
|
1864
1916
|
|
|
@@ -13,6 +13,11 @@ the response or to the cache. The catalog is kept in Valkey for
|
|
|
13
13
|
|
|
14
14
|
A tool key is ``imbi.<tool name>``. An agent stores its tool
|
|
15
15
|
configuration by this key.
|
|
16
|
+
|
|
17
|
+
The catalog also lists the opt-in Claude Code built-in tools in
|
|
18
|
+
``builtin_tools``, as ``builtin.<tool name>``. They are off for each
|
|
19
|
+
agent until its tool map has the key. They do not come from the
|
|
20
|
+
OpenAPI document, so a catalog error does not change them.
|
|
16
21
|
"""
|
|
17
22
|
|
|
18
23
|
import asyncio
|
|
@@ -28,6 +33,7 @@ from mcp import types as mcp_types
|
|
|
28
33
|
from valkey import asyncio as valkey
|
|
29
34
|
|
|
30
35
|
from imbi.common import mcp as common_mcp
|
|
36
|
+
from imbi.common import models
|
|
31
37
|
|
|
32
38
|
LOGGER = logging.getLogger(__name__)
|
|
33
39
|
|
|
@@ -45,19 +51,37 @@ ErrorCode = typing.Literal['unreachable', 'timeout', 'auth_failed']
|
|
|
45
51
|
|
|
46
52
|
|
|
47
53
|
class AgentCatalogTool(pydantic.BaseModel):
|
|
48
|
-
#: ``imbi.<tool name>``.
|
|
54
|
+
#: ``imbi.<tool name>`` or ``builtin.<tool name>``.
|
|
49
55
|
key: str
|
|
50
56
|
name: str
|
|
51
57
|
description: str | None = None
|
|
52
58
|
capability: Capability
|
|
53
59
|
|
|
54
60
|
|
|
61
|
+
#: The catalog entries of the opt-in built-in tools, by name.
|
|
62
|
+
BUILTIN_CATALOG = tuple(
|
|
63
|
+
AgentCatalogTool(
|
|
64
|
+
key=tool.key,
|
|
65
|
+
name=tool.name,
|
|
66
|
+
description=tool.description,
|
|
67
|
+
capability=tool.capability,
|
|
68
|
+
)
|
|
69
|
+
for tool in sorted(
|
|
70
|
+
models.OPT_IN_BUILTIN_TOOLS.values(), key=lambda t: t.name
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
55
75
|
class AgentToolCatalog(pydantic.BaseModel):
|
|
56
76
|
#: A kept copy in another form, for example the grouped form of an
|
|
57
77
|
#: earlier release, does not validate, so it is listed again.
|
|
58
78
|
model_config = pydantic.ConfigDict(extra='forbid')
|
|
59
79
|
|
|
60
80
|
tools: list[AgentCatalogTool] = []
|
|
81
|
+
#: The opt-in Claude Code built-in tools.
|
|
82
|
+
builtin_tools: list[AgentCatalogTool] = pydantic.Field(
|
|
83
|
+
default_factory=lambda: list(BUILTIN_CATALOG)
|
|
84
|
+
)
|
|
61
85
|
#: Set when the tools could not be listed.
|
|
62
86
|
error: ErrorCode | None = None
|
|
63
87
|
generated_at: datetime.datetime
|
|
@@ -189,7 +213,11 @@ async def get_catalog(
|
|
|
189
213
|
cached = None
|
|
190
214
|
if cached is not None:
|
|
191
215
|
try:
|
|
192
|
-
|
|
216
|
+
# The built-in tools come from this release, not the
|
|
217
|
+
# kept copy.
|
|
218
|
+
return AgentToolCatalog.model_validate_json(cached).model_copy(
|
|
219
|
+
update={'builtin_tools': list(BUILTIN_CATALOG)}
|
|
220
|
+
)
|
|
193
221
|
except pydantic.ValidationError:
|
|
194
222
|
LOGGER.debug('discarding malformed tool catalog cache entry')
|
|
195
223
|
catalog = await build_catalog(spec())
|
|
@@ -24,10 +24,12 @@ from imbi.api.auth import agent_api
|
|
|
24
24
|
from imbi.api.middleware import rate_limit
|
|
25
25
|
from imbi.common import (
|
|
26
26
|
access_log,
|
|
27
|
+
body_limit,
|
|
27
28
|
graph,
|
|
28
29
|
lifespan,
|
|
29
30
|
metrics,
|
|
30
31
|
posthog,
|
|
32
|
+
relational,
|
|
31
33
|
sentry,
|
|
32
34
|
valkey,
|
|
33
35
|
)
|
|
@@ -86,6 +88,17 @@ def create_app() -> fastapi.FastAPI:
|
|
|
86
88
|
)
|
|
87
89
|
|
|
88
90
|
server_config = settings.get_server_config()
|
|
91
|
+
# Innermost, so that CORS and the access log wrap its 413. The
|
|
92
|
+
# upload limit adds room for the multipart framing.
|
|
93
|
+
app.add_middleware(
|
|
94
|
+
body_limit.BodyLimitMiddleware,
|
|
95
|
+
limit=server_config.max_request_body_bytes,
|
|
96
|
+
path_limits={
|
|
97
|
+
f'{server_config.api_prefix}/uploads': (
|
|
98
|
+
settings.get_storage_settings().max_file_size + 1024 * 1024
|
|
99
|
+
)
|
|
100
|
+
},
|
|
101
|
+
)
|
|
89
102
|
# Quiet both the unprefixed and ``/api``-prefixed status route
|
|
90
103
|
# because the served path depends on IMBI_API_URL at startup;
|
|
91
104
|
# listing both keeps the middleware deployment-agnostic.
|
|
@@ -130,19 +143,21 @@ def create_app() -> fastapi.FastAPI:
|
|
|
130
143
|
# on the repository. A terminal 403 rather than a 5xx: consuming
|
|
131
144
|
# clients retry 5xx on the assumption that it is transient, and an
|
|
132
145
|
# uninstalled App will still be uninstalled on the retry. The
|
|
133
|
-
# discriminated ``detail.error``
|
|
134
|
-
#
|
|
146
|
+
# discriminated ``detail.error`` (``app_not_installed``, or
|
|
147
|
+
# ``identity_access_denied`` for a user identity with no grant) is
|
|
148
|
+
# what an autonomous caller branches on so it can log the cause
|
|
149
|
+
# instead of spinning.
|
|
135
150
|
@app.exception_handler(PluginInstallationMissing)
|
|
136
151
|
async def _plugin_installation_missing( # pyright: ignore[reportUnusedFunction]
|
|
137
152
|
_request: fastapi.Request,
|
|
138
153
|
exc: PluginInstallationMissing,
|
|
139
154
|
) -> responses.JSONResponse:
|
|
140
|
-
LOGGER.warning('Plugin
|
|
155
|
+
LOGGER.warning('Plugin grant missing (%s): %s', exc.error_code, exc)
|
|
141
156
|
return responses.JSONResponse(
|
|
142
157
|
status_code=403,
|
|
143
158
|
content={
|
|
144
159
|
'detail': {
|
|
145
|
-
'error':
|
|
160
|
+
'error': exc.error_code,
|
|
146
161
|
'message': str(exc),
|
|
147
162
|
'owner_repo': exc.owner_repo,
|
|
148
163
|
'integration_slug': exc.integration_slug,
|
|
@@ -192,6 +207,17 @@ def create_app() -> fastapi.FastAPI:
|
|
|
192
207
|
headers=headers,
|
|
193
208
|
)
|
|
194
209
|
|
|
210
|
+
# The endpoint found the organization, but a delete committed before
|
|
211
|
+
# the store write took its lock (relational.lock_organization_shared).
|
|
212
|
+
@app.exception_handler(relational.OrganizationDeleted)
|
|
213
|
+
async def _organization_deleted( # pyright: ignore[reportUnusedFunction]
|
|
214
|
+
_request: fastapi.Request,
|
|
215
|
+
exc: relational.OrganizationDeleted,
|
|
216
|
+
) -> responses.JSONResponse:
|
|
217
|
+
return responses.JSONResponse(
|
|
218
|
+
status_code=404, content={'detail': str(exc)}
|
|
219
|
+
)
|
|
220
|
+
|
|
195
221
|
@app.exception_handler(PluginUnavailableError)
|
|
196
222
|
async def _plugin_unavailable( # pyright: ignore[reportUnusedFunction]
|
|
197
223
|
_request: fastapi.Request,
|
|
@@ -82,6 +82,7 @@ GLOBAL_SAFE: dict[str, str] = {
|
|
|
82
82
|
'GET /blueprints/': 'global schema configuration',
|
|
83
83
|
'GET /blueprints/{type}': 'global schema configuration',
|
|
84
84
|
'GET /blueprints/{type}/{slug}': 'global schema configuration',
|
|
85
|
+
'GET /cves/{cve_id}': 'a public CVE List record: no organization data',
|
|
85
86
|
'GET /scoring/policies/': 'global scoring configuration',
|
|
86
87
|
'GET /scoring/policies/{slug}': 'global scoring configuration',
|
|
87
88
|
'GET /plugins/{slug}/manifest': 'a plugin manifest: no organization data',
|
|
@@ -33,6 +33,7 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
33
33
|
'GET /blueprints/',
|
|
34
34
|
'GET /blueprints/{type}',
|
|
35
35
|
'GET /blueprints/{type}/{slug}',
|
|
36
|
+
'GET /cves/{cve_id}',
|
|
36
37
|
'GET /operations-log/plugin-templates',
|
|
37
38
|
'GET /organizations/{org_slug}/agent-marketplaces/',
|
|
38
39
|
'GET /organizations/{org_slug}/agent-platform-config/',
|
|
@@ -295,6 +296,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
295
296
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task',
|
|
296
297
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task/cancel',
|
|
297
298
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/email',
|
|
299
|
+
'GET /organizations/{org_slug}/workflow-runs/side-effects/deployments',
|
|
298
300
|
'POST /organizations/{org_slug}/workflow-runs/side-effects/resolve',
|
|
299
301
|
'POST /organizations/{org_slug}/workflows/{slug}/test-runs',
|
|
300
302
|
'PUT /organizations/{org_slug}/workflows/{slug}',
|
|
@@ -153,6 +153,7 @@ async def require_organization_membership(
|
|
|
153
153
|
['slug'],
|
|
154
154
|
)
|
|
155
155
|
if rows:
|
|
156
|
+
await _require_accountable_member(db, auth, org_slug)
|
|
156
157
|
return
|
|
157
158
|
LOGGER.warning(
|
|
158
159
|
'Refusing principal %s on organization %s: not a member',
|
|
@@ -169,6 +170,39 @@ async def require_organization_membership(
|
|
|
169
170
|
)
|
|
170
171
|
|
|
171
172
|
|
|
173
|
+
async def _require_accountable_member(
|
|
174
|
+
db: graph.Graph, auth: permissions.AuthContext, org_slug: str
|
|
175
|
+
) -> None:
|
|
176
|
+
"""Refuse a scheduler request whose accountable principal is not a
|
|
177
|
+
member of ``org_slug``.
|
|
178
|
+
|
|
179
|
+
Without this, a person could reach an organization through the
|
|
180
|
+
memberships of the scheduler's service account. A member with a role
|
|
181
|
+
that grants nothing is refused too, which fails closed.
|
|
182
|
+
"""
|
|
183
|
+
if auth.on_behalf_of is None:
|
|
184
|
+
return
|
|
185
|
+
if await permissions.load_principal_permissions(
|
|
186
|
+
db, *auth.on_behalf_of, org_slug=org_slug
|
|
187
|
+
):
|
|
188
|
+
return
|
|
189
|
+
key = auth.on_behalf_of[2]
|
|
190
|
+
LOGGER.warning(
|
|
191
|
+
'Refusing a scheduled task request on organization %s: %s, '
|
|
192
|
+
'accountable for it, is not a member',
|
|
193
|
+
org_slug,
|
|
194
|
+
key,
|
|
195
|
+
)
|
|
196
|
+
raise forbidden(
|
|
197
|
+
'organization_forbidden',
|
|
198
|
+
(
|
|
199
|
+
f'{key!r}, accountable for this scheduled task, is not a '
|
|
200
|
+
f'member of organization {org_slug!r}.'
|
|
201
|
+
),
|
|
202
|
+
org_slug=org_slug,
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
|
|
172
206
|
def require_environment_autonomous(
|
|
173
207
|
auth: permissions.AuthContext,
|
|
174
208
|
*,
|
|
@@ -31,6 +31,7 @@ import psycopg
|
|
|
31
31
|
from imbi.api import models
|
|
32
32
|
from imbi.api.auth import password
|
|
33
33
|
from imbi.common import graph
|
|
34
|
+
from imbi.common.auth import permissions as common_permissions
|
|
34
35
|
|
|
35
36
|
LOGGER = logging.getLogger(__name__)
|
|
36
37
|
|
|
@@ -64,52 +65,52 @@ class InternalService(typing.NamedTuple):
|
|
|
64
65
|
|
|
65
66
|
INTERNAL_SERVICES: tuple[InternalService, ...] = (
|
|
66
67
|
InternalService(
|
|
67
|
-
slug=
|
|
68
|
+
slug=common_permissions.SCHEDULER_ACCOUNT,
|
|
68
69
|
display_name='Imbi Scheduler',
|
|
69
70
|
description=(
|
|
70
71
|
'Runs scheduled tasks that target the Imbi API (ADR 0002)'
|
|
71
72
|
),
|
|
72
|
-
role_slug=
|
|
73
|
+
role_slug=common_permissions.SCHEDULER_ACCOUNT,
|
|
73
74
|
credential='client_credential',
|
|
74
75
|
client_id_var='IMBI_SCHEDULER_SA_CLIENT_ID',
|
|
75
76
|
secret_var='IMBI_SCHEDULER_SA_CLIENT_SECRET',
|
|
76
77
|
),
|
|
77
78
|
InternalService(
|
|
78
|
-
slug=
|
|
79
|
+
slug=common_permissions.GATEWAY_ACCOUNT,
|
|
79
80
|
display_name='Imbi Gateway',
|
|
80
81
|
description=(
|
|
81
82
|
'Attributes inbound webhook events and patches projects '
|
|
82
83
|
'and releases on their behalf'
|
|
83
84
|
),
|
|
84
|
-
role_slug=
|
|
85
|
+
role_slug=common_permissions.GATEWAY_ACCOUNT,
|
|
85
86
|
credential='api_key',
|
|
86
87
|
client_id_var=None,
|
|
87
88
|
secret_var='IMBI_GATEWAY_API_TOKEN',
|
|
88
89
|
),
|
|
89
90
|
InternalService(
|
|
90
|
-
slug=
|
|
91
|
+
slug=common_permissions.WORKFLOWS_ACCOUNT,
|
|
91
92
|
display_name='Imbi Workflows',
|
|
92
93
|
description='Runs the side effects of workflow steps (ADR 0021)',
|
|
93
|
-
role_slug=
|
|
94
|
+
role_slug=common_permissions.WORKFLOWS_ACCOUNT,
|
|
94
95
|
credential='client_credential',
|
|
95
96
|
client_id_var='IMBI_WORKFLOWS_SA_CLIENT_ID',
|
|
96
97
|
secret_var='IMBI_WORKFLOWS_SA_CLIENT_SECRET',
|
|
97
98
|
),
|
|
98
99
|
InternalService(
|
|
99
|
-
slug=
|
|
100
|
+
slug=common_permissions.ASSISTANT_ACCOUNT,
|
|
100
101
|
display_name='Imbi Assistant',
|
|
101
102
|
description='Gets the token of its AI provider (WIF plan 4.6)',
|
|
102
|
-
role_slug=
|
|
103
|
+
role_slug=common_permissions.ASSISTANT_ACCOUNT,
|
|
103
104
|
credential='api_key',
|
|
104
105
|
client_id_var=None,
|
|
105
106
|
secret_var='IMBI_ASSISTANT_API_TOKEN',
|
|
106
107
|
optional=True,
|
|
107
108
|
),
|
|
108
109
|
InternalService(
|
|
109
|
-
slug=
|
|
110
|
+
slug=common_permissions.SLACKBOT_ACCOUNT,
|
|
110
111
|
display_name='Imbi Slackbot',
|
|
111
112
|
description='Gets the token of its AI provider (WIF plan 4.6)',
|
|
112
|
-
role_slug=
|
|
113
|
+
role_slug=common_permissions.SLACKBOT_ACCOUNT,
|
|
113
114
|
credential='api_key',
|
|
114
115
|
client_id_var=None,
|
|
115
116
|
secret_var='IMBI_SLACKBOT_API_TOKEN',
|
|
@@ -61,7 +61,9 @@ async def org_permissions(
|
|
|
61
61
|
db: graph.Graph, auth: permissions.AuthContext, org_slug: str
|
|
62
62
|
) -> set[str]:
|
|
63
63
|
"""The caller's permissions in ``org_slug``: those of their role in
|
|
64
|
-
that organization, still limited by the scopes of an API key.
|
|
64
|
+
that organization, still limited by the scopes of an API key. For a
|
|
65
|
+
scheduler request, also limited to the role in that organization of
|
|
66
|
+
the principal accountable for the task."""
|
|
65
67
|
granted: set[str] = set()
|
|
66
68
|
if auth.user is not None:
|
|
67
69
|
granted = await common_permissions.load_principal_permissions(
|
|
@@ -75,6 +77,10 @@ async def org_permissions(
|
|
|
75
77
|
auth.service_account.slug,
|
|
76
78
|
org_slug=org_slug,
|
|
77
79
|
)
|
|
80
|
+
if auth.on_behalf_of is not None:
|
|
81
|
+
granted &= await common_permissions.load_principal_permissions(
|
|
82
|
+
db, *auth.on_behalf_of, org_slug=org_slug
|
|
83
|
+
)
|
|
78
84
|
return auth.permissions & granted
|
|
79
85
|
|
|
80
86
|
|
|
@@ -6,6 +6,7 @@ import typing
|
|
|
6
6
|
import nanoid
|
|
7
7
|
|
|
8
8
|
from imbi.common import graph
|
|
9
|
+
from imbi.common.auth import permissions as common_permissions
|
|
9
10
|
|
|
10
11
|
LOGGER = logging.getLogger(__name__)
|
|
11
12
|
|
|
@@ -622,6 +623,18 @@ STANDARD_PERMISSIONS: list[tuple[str, str, str, str]] = [
|
|
|
622
623
|
'maintenance:manage',
|
|
623
624
|
'Run and cancel global maintenance operations',
|
|
624
625
|
),
|
|
626
|
+
(
|
|
627
|
+
'admin:maintenance:marketplace-sync',
|
|
628
|
+
'admin',
|
|
629
|
+
'maintenance:marketplace-sync',
|
|
630
|
+
'Start the marketplace-sync maintenance operation',
|
|
631
|
+
),
|
|
632
|
+
(
|
|
633
|
+
'admin:maintenance:cve-sync',
|
|
634
|
+
'admin',
|
|
635
|
+
'maintenance:cve-sync',
|
|
636
|
+
'Start the cve-sync maintenance operation',
|
|
637
|
+
),
|
|
625
638
|
# Project plugin access
|
|
626
639
|
(
|
|
627
640
|
'project:configuration:read',
|
|
@@ -988,7 +1001,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
988
1001
|
# are infrastructure principals, not people, and neither is
|
|
989
1002
|
# `is_default` -- they are attached by the seed, never on first login.
|
|
990
1003
|
(
|
|
991
|
-
|
|
1004
|
+
common_permissions.SCHEDULER_ACCOUNT,
|
|
992
1005
|
'Imbi Scheduler',
|
|
993
1006
|
'Service role for imbi-scheduler: manage and fire scheduled '
|
|
994
1007
|
'tasks, and read the entities a task inspects',
|
|
@@ -1002,6 +1015,13 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1002
1015
|
# `system` tasks belong to no user, so firing and managing
|
|
1003
1016
|
# them is an :admin operation by definition.
|
|
1004
1017
|
'scheduled_task:admin',
|
|
1018
|
+
# The marketplace-sync system task starts that one
|
|
1019
|
+
# maintenance operation. Not admin:maintenance:manage: a user
|
|
1020
|
+
# who can make a task that runs as this account could then
|
|
1021
|
+
# start any operation, including the purges.
|
|
1022
|
+
'admin:maintenance:marketplace-sync',
|
|
1023
|
+
# The cve-sync system task, for the same reason.
|
|
1024
|
+
'admin:maintenance:cve-sync',
|
|
1005
1025
|
'agent:read',
|
|
1006
1026
|
# An `api` task can start agent work with a `schedule`
|
|
1007
1027
|
# origin (ADR 0020).
|
|
@@ -1032,7 +1052,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1032
1052
|
False,
|
|
1033
1053
|
),
|
|
1034
1054
|
(
|
|
1035
|
-
|
|
1055
|
+
common_permissions.GATEWAY_ACCOUNT,
|
|
1036
1056
|
'Imbi Gateway',
|
|
1037
1057
|
'Service role for imbi-gateway: patch projects, record '
|
|
1038
1058
|
'releases, and attribute events to users',
|
|
@@ -1055,7 +1075,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1055
1075
|
False,
|
|
1056
1076
|
),
|
|
1057
1077
|
(
|
|
1058
|
-
|
|
1078
|
+
common_permissions.WORKFLOWS_ACCOUNT,
|
|
1059
1079
|
'Imbi Workflows',
|
|
1060
1080
|
'Service role for imbi-workflows: deploy and roll back the '
|
|
1061
1081
|
'projects that workflow steps name, and keep the scheduler tasks '
|
|
@@ -1077,7 +1097,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1077
1097
|
False,
|
|
1078
1098
|
),
|
|
1079
1099
|
(
|
|
1080
|
-
|
|
1100
|
+
common_permissions.ASSISTANT_ACCOUNT,
|
|
1081
1101
|
'Imbi Assistant',
|
|
1082
1102
|
'Service role for imbi-assistant: get the token of its AI '
|
|
1083
1103
|
'provider (WIF plan 4.6)',
|
|
@@ -1086,7 +1106,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1086
1106
|
False,
|
|
1087
1107
|
),
|
|
1088
1108
|
(
|
|
1089
|
-
|
|
1109
|
+
common_permissions.SLACKBOT_ACCOUNT,
|
|
1090
1110
|
'Imbi Slackbot',
|
|
1091
1111
|
'Service role for imbi-slackbot: get the token of its AI '
|
|
1092
1112
|
'provider (WIF plan 4.6)',
|