imbi-api 2.49.0__tar.gz → 2.51.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.51.0}/PKG-INFO +5 -4
- {imbi_api-2.49.0/src/imbi/api → imbi_api-2.51.0}/README.md +1 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/pyproject.toml +4 -3
- {imbi_api-2.49.0 → imbi_api-2.51.0/src/imbi/api}/README.md +1 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/__init__.py +3 -2
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/agent_tasks/__init__.py +1 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/agent_tasks/log.py +6 -4
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/agent_tasks/schemata.toml +18 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/agent_tasks/store.py +66 -6
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/agent_tools.py +30 -2
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/app.py +31 -4
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/agent_api.py +1 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/agent_api_routes.py +4 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/autonomous.py +34 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/internal_services.py +11 -10
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/organizations.py +7 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/seed.py +25 -5
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/commit_pushed_at_repair.py +2 -2
- imbi_api-2.51.0/src/imbi/api/cves.py +410 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/drift.py +3 -2
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates/base.html +1 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates/base.txt +1 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/__init__.py +2 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_helpers.py +16 -3
- imbi_api-2.51.0/src/imbi/api/endpoints/_local_time.py +56 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/agent_task_harness.py +67 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/agent_tasks.py +10 -2
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/agent_usage.py +24 -12
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/agents.py +30 -6
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/components.py +69 -18
- imbi_api-2.51.0/src/imbi/api/endpoints/cves.py +33 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/dashboard.py +11 -10
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/harness.py +19 -10
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/maintenance.py +40 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/organizations.py +127 -5
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_deployments.py +54 -34
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/projects.py +12 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/status.py +8 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/webhooks.py +2 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/workflow_runs.py +170 -18
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/workflows.py +84 -5
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/__init__.py +14 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/auth.py +5 -2
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/platform.py +33 -4
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/store.py +13 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/lifespans.py +31 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/maintenance/operations.py +92 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/maintenance/registry.py +32 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/__init__.py +1 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/store.py +15 -3
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/settings.py +3 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/__init__.py +4 -3
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/runs.py +93 -5
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/runtime_schemata.toml +11 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/store.py +4 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/sweeper.py +35 -3
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/task_trigger.py +28 -5
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_organizations.py +79 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_seed.py +13 -3
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_task_harness.py +185 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_tasks.py +47 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_usage.py +30 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agents.py +100 -0
- imbi_api-2.51.0/tests/endpoints/test_caller_org_slugs.py +29 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_components.py +106 -0
- imbi_api-2.51.0/tests/endpoints/test_cves.py +66 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_dashboard.py +35 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_harness.py +8 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_maintenance.py +19 -0
- imbi_api-2.51.0/tests/endpoints/test_organizations.py +968 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_deployments.py +1 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_projects.py +80 -4
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_secret_broker.py +24 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_status.py +13 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_workflow_run_history.py +41 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_workflow_runs.py +241 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_workflow_triggers.py +263 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_workflows.py +113 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_agent_platform.py +56 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_agent_tools.py +30 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_app.py +18 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_clickhouse_project_ids.py +89 -1
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_commit_pushed_at_repair.py +5 -3
- imbi_api-2.51.0/tests/test_cves.py +453 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_drift.py +2 -2
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_maintenance_operations.py +59 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_task_trigger.py +82 -0
- imbi_api-2.51.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.51.0}/.gitignore +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/moon.yml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/agent_tasks/sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/secret_support.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/support.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_init.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_installer.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_models.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.49.0 → imbi_api-2.51.0}/tests/test_settings.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: imbi-api
|
|
3
|
-
Version: 2.
|
|
4
|
-
Summary: Imbi is
|
|
3
|
+
Version: 2.51.0
|
|
4
|
+
Summary: Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them.
|
|
5
5
|
Author-email: Alex Campbell <alexc@aweber.com>, Dave Shawley <daves@aweber.com>, "Gavin M. Roy" <gavinr@aweber.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
7
7
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -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,script,sentry,server]==2.51.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
|
|
@@ -49,7 +50,7 @@ Description-Content-Type: text/markdown
|
|
|
49
50
|
|
|
50
51
|
# Imbi
|
|
51
52
|
|
|
52
|
-
>
|
|
53
|
+
> The open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them
|
|
53
54
|
|
|
54
55
|
Imbi provides a centralized platform to manage, track, and understand all services and applications across your
|
|
55
56
|
organization. It serves as a single source of truth for service metadata, dependencies, ownership, and operational
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Imbi
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> The open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them
|
|
4
4
|
|
|
5
5
|
Imbi provides a centralized platform to manage, track, and understand all services and applications across your
|
|
6
6
|
organization. It serves as a single source of truth for service metadata, dependencies, ownership, and operational
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "imbi-api"
|
|
3
|
-
version = "2.
|
|
4
|
-
description = "Imbi is
|
|
3
|
+
version = "2.51.0"
|
|
4
|
+
description = "Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
7
7
|
license = "BSD-3-Clause"
|
|
@@ -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,script,sentry,server]==2.51.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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Imbi
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> The open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them
|
|
4
4
|
|
|
5
5
|
Imbi provides a centralized platform to manage, track, and understand all services and applications across your
|
|
6
6
|
organization. It serves as a single source of truth for service metadata, dependencies, ownership, and operational
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Imbi
|
|
3
3
|
====
|
|
4
4
|
|
|
5
|
-
Imbi is
|
|
6
|
-
|
|
5
|
+
Imbi is the open-source service catalog that tracks every service's
|
|
6
|
+
ownership, deployments, and health, and runs the AI agents and workflows
|
|
7
|
+
that fix them.
|
|
7
8
|
|
|
8
9
|
"""
|
|
9
10
|
|
|
@@ -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)
|
|
@@ -254,6 +258,8 @@ class Usage:
|
|
|
254
258
|
"""One model call that a harness reports.
|
|
255
259
|
|
|
256
260
|
``None`` for a token count means the harness did not measure it.
|
|
261
|
+
``message_id`` is the model's id for the reply; the task events of
|
|
262
|
+
that reply have it too.
|
|
257
263
|
"""
|
|
258
264
|
|
|
259
265
|
idempotency_key: str
|
|
@@ -263,6 +269,7 @@ class Usage:
|
|
|
263
269
|
cache_read_tokens: int | None
|
|
264
270
|
cache_write_tokens: int | None
|
|
265
271
|
session_id: uuid.UUID | None
|
|
272
|
+
message_id: str | None = None
|
|
266
273
|
|
|
267
274
|
|
|
268
275
|
#: Each token count of a usage report, and the price column for it.
|
|
@@ -363,8 +370,19 @@ class _Write:
|
|
|
363
370
|
return row
|
|
364
371
|
|
|
365
372
|
async def update(self, changes: Row) -> Row:
|
|
366
|
-
"""Change columns of the task and keep the new row.
|
|
373
|
+
"""Change columns of the task and keep the new row.
|
|
374
|
+
|
|
375
|
+
A change that closes the task also writes its ``trigger_outbox``
|
|
376
|
+
row, so its ``task_completed`` runs start even when the close
|
|
377
|
+
hook fails.
|
|
378
|
+
"""
|
|
367
379
|
self.task = await _update_task(self.conn, self.task['id'], changes)
|
|
380
|
+
if changes.get('status') == 'closed':
|
|
381
|
+
await self.conn.execute(
|
|
382
|
+
'INSERT INTO agent_runtime.trigger_outbox (task_id)'
|
|
383
|
+
' VALUES (%s)',
|
|
384
|
+
(self.task['id'],),
|
|
385
|
+
)
|
|
368
386
|
return self.task
|
|
369
387
|
|
|
370
388
|
|
|
@@ -488,6 +506,9 @@ class TaskStore:
|
|
|
488
506
|
task_id = uuid.uuid4()
|
|
489
507
|
try:
|
|
490
508
|
async with self._pool.connection() as conn, conn.transaction():
|
|
509
|
+
await relational.lock_organization_shared(
|
|
510
|
+
conn, task.organization_id
|
|
511
|
+
)
|
|
491
512
|
if task.origin_kind == 'task':
|
|
492
513
|
# The lock conflicts with the lock in delete, so a
|
|
493
514
|
# parent cannot go while its child is made.
|
|
@@ -505,9 +526,9 @@ class TaskStore:
|
|
|
505
526
|
' service_account_id, title,'
|
|
506
527
|
' description, origin_kind, origin_id, origin,'
|
|
507
528
|
' idempotency_key, owner, budget, chain_id,'
|
|
508
|
-
' platform_config_version) VALUES (%s,'
|
|
529
|
+
' output_schema, platform_config_version) VALUES (%s,'
|
|
509
530
|
' %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s,'
|
|
510
|
-
' %s, %s, %s, (SELECT max(version)'
|
|
531
|
+
' %s, %s, %s, %s, (SELECT max(version)'
|
|
511
532
|
' FROM harness.platform_configs'
|
|
512
533
|
' WHERE organization_id = %s))',
|
|
513
534
|
(
|
|
@@ -527,6 +548,7 @@ class TaskStore:
|
|
|
527
548
|
task.owner,
|
|
528
549
|
task.budget,
|
|
529
550
|
task.chain_id or task_id,
|
|
551
|
+
_jsonb(task.output_schema),
|
|
530
552
|
task.organization_id,
|
|
531
553
|
),
|
|
532
554
|
)
|
|
@@ -740,6 +762,26 @@ class TaskStore:
|
|
|
740
762
|
return await log.last_archived_agent_turn(task)
|
|
741
763
|
return None if body is None else str(body)
|
|
742
764
|
|
|
765
|
+
async def pending_triggers(self) -> list[Row]:
|
|
766
|
+
"""Return the closed tasks that have a ``trigger_outbox`` row."""
|
|
767
|
+
async with (
|
|
768
|
+
self._pool.connection() as conn,
|
|
769
|
+
conn.cursor(row_factory=rows.dict_row) as cursor,
|
|
770
|
+
):
|
|
771
|
+
await cursor.execute(
|
|
772
|
+
_SELECT_TASKS + ' JOIN agent_runtime.trigger_outbox AS o'
|
|
773
|
+
' ON o.task_id = t.id ORDER BY o.created_at'
|
|
774
|
+
)
|
|
775
|
+
return await cursor.fetchall()
|
|
776
|
+
|
|
777
|
+
async def triggers_started(self, task_id: uuid.UUID) -> None:
|
|
778
|
+
"""Delete the ``trigger_outbox`` row of a task."""
|
|
779
|
+
async with self._pool.connection() as conn:
|
|
780
|
+
await conn.execute(
|
|
781
|
+
'DELETE FROM agent_runtime.trigger_outbox WHERE task_id = %s',
|
|
782
|
+
(task_id,),
|
|
783
|
+
)
|
|
784
|
+
|
|
743
785
|
async def unarchived(self) -> list[Row]:
|
|
744
786
|
"""Return the tasks whose log is not archived, by organization.
|
|
745
787
|
|
|
@@ -826,7 +868,8 @@ class TaskStore:
|
|
|
826
868
|
TaskNotFound: No such task.
|
|
827
869
|
TaskOpen: The task, or a child or chain task, is not closed,
|
|
828
870
|
the log of the task is not archived, its harness chain
|
|
829
|
-
is not done,
|
|
871
|
+
is not done, it has open secret resolutions, or it or a
|
|
872
|
+
task in its chain has a ``trigger_outbox`` row.
|
|
830
873
|
|
|
831
874
|
"""
|
|
832
875
|
async with self._pool.connection() as conn, conn.transaction():
|
|
@@ -857,14 +900,19 @@ class TaskStore:
|
|
|
857
900
|
raise TaskOpen(short_id)
|
|
858
901
|
# The lease sweep still needs the chain row of a root that
|
|
859
902
|
# waits for its fencers, and Broker.sweep joins the open
|
|
860
|
-
# resolutions of a failed close hook to the task.
|
|
903
|
+
# resolutions of a failed close hook to the task. A pending
|
|
904
|
+
# trigger_outbox row of the task, or of a task in the chain
|
|
905
|
+
# of a root, needs the root for its depth (task_trigger).
|
|
861
906
|
cursor = await conn.execute(
|
|
862
907
|
'SELECT 1 FROM harness.chains WHERE root_task_id = %s'
|
|
863
908
|
" AND state IN ('running', 'fencing', 'stuck')"
|
|
864
909
|
' UNION ALL SELECT 1 FROM secrets.resolutions'
|
|
865
910
|
" WHERE task_id = %s AND state IN ('pending', 'active')"
|
|
911
|
+
' UNION ALL SELECT 1 FROM agent_runtime.trigger_outbox AS o'
|
|
912
|
+
' JOIN agent_runtime.tasks AS c ON c.id = o.task_id'
|
|
913
|
+
' WHERE c.id = %s OR c.chain_id = %s'
|
|
866
914
|
' LIMIT 1',
|
|
867
|
-
(task['id'], task['id']),
|
|
915
|
+
(task['id'], task['id'], task['id'], task['id']),
|
|
868
916
|
)
|
|
869
917
|
if await cursor.fetchone() is not None:
|
|
870
918
|
raise TaskOpen(short_id)
|
|
@@ -1810,6 +1858,11 @@ class TaskStore:
|
|
|
1810
1858
|
'budget_remaining': (
|
|
1811
1859
|
None if remaining is None else str(remaining)
|
|
1812
1860
|
),
|
|
1861
|
+
**(
|
|
1862
|
+
{'message_id': usage.message_id}
|
|
1863
|
+
if usage.message_id is not None
|
|
1864
|
+
else {}
|
|
1865
|
+
),
|
|
1813
1866
|
},
|
|
1814
1867
|
actor,
|
|
1815
1868
|
session_id=usage.session_id,
|
|
@@ -1849,9 +1902,12 @@ class TaskStore:
|
|
|
1849
1902
|
outcome: Outcome,
|
|
1850
1903
|
reason: str | None,
|
|
1851
1904
|
actor: Actor,
|
|
1905
|
+
structured_output: Row | None = None,
|
|
1852
1906
|
) -> Row:
|
|
1853
1907
|
"""Close the task with ``outcome``; see :func:`_close`.
|
|
1854
1908
|
|
|
1909
|
+
Keep the ``structured_output`` that the agent returned, if any.
|
|
1910
|
+
|
|
1855
1911
|
Raises:
|
|
1856
1912
|
TaskNotFound: No such task.
|
|
1857
1913
|
TaskClosed: The task is closed.
|
|
@@ -1859,6 +1915,10 @@ class TaskStore:
|
|
|
1859
1915
|
"""
|
|
1860
1916
|
async with self._write(organization_id, short_id) as write:
|
|
1861
1917
|
await _close(write, outcome, reason, actor)
|
|
1918
|
+
if structured_output is not None:
|
|
1919
|
+
await write.update(
|
|
1920
|
+
{'structured_output': _jsonb(structured_output)}
|
|
1921
|
+
)
|
|
1862
1922
|
return write.task
|
|
1863
1923
|
|
|
1864
1924
|
|
|
@@ -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
|
)
|
|
@@ -63,6 +65,7 @@ def create_app() -> fastapi.FastAPI:
|
|
|
63
65
|
harness.store_lifespan,
|
|
64
66
|
workflows.store_lifespan,
|
|
65
67
|
prompt_pool.pool_lifespan,
|
|
68
|
+
lifespans.script_preview_hook,
|
|
66
69
|
lifespans.email_hook,
|
|
67
70
|
lifespans.storage_hook,
|
|
68
71
|
lifespans.anthropic_hook,
|
|
@@ -86,6 +89,17 @@ def create_app() -> fastapi.FastAPI:
|
|
|
86
89
|
)
|
|
87
90
|
|
|
88
91
|
server_config = settings.get_server_config()
|
|
92
|
+
# Innermost, so that CORS and the access log wrap its 413. The
|
|
93
|
+
# upload limit adds room for the multipart framing.
|
|
94
|
+
app.add_middleware(
|
|
95
|
+
body_limit.BodyLimitMiddleware,
|
|
96
|
+
limit=server_config.max_request_body_bytes,
|
|
97
|
+
path_limits={
|
|
98
|
+
f'{server_config.api_prefix}/uploads': (
|
|
99
|
+
settings.get_storage_settings().max_file_size + 1024 * 1024
|
|
100
|
+
)
|
|
101
|
+
},
|
|
102
|
+
)
|
|
89
103
|
# Quiet both the unprefixed and ``/api``-prefixed status route
|
|
90
104
|
# because the served path depends on IMBI_API_URL at startup;
|
|
91
105
|
# listing both keeps the middleware deployment-agnostic.
|
|
@@ -130,19 +144,21 @@ def create_app() -> fastapi.FastAPI:
|
|
|
130
144
|
# on the repository. A terminal 403 rather than a 5xx: consuming
|
|
131
145
|
# clients retry 5xx on the assumption that it is transient, and an
|
|
132
146
|
# uninstalled App will still be uninstalled on the retry. The
|
|
133
|
-
# discriminated ``detail.error``
|
|
134
|
-
#
|
|
147
|
+
# discriminated ``detail.error`` (``app_not_installed``, or
|
|
148
|
+
# ``identity_access_denied`` for a user identity with no grant) is
|
|
149
|
+
# what an autonomous caller branches on so it can log the cause
|
|
150
|
+
# instead of spinning.
|
|
135
151
|
@app.exception_handler(PluginInstallationMissing)
|
|
136
152
|
async def _plugin_installation_missing( # pyright: ignore[reportUnusedFunction]
|
|
137
153
|
_request: fastapi.Request,
|
|
138
154
|
exc: PluginInstallationMissing,
|
|
139
155
|
) -> responses.JSONResponse:
|
|
140
|
-
LOGGER.warning('Plugin
|
|
156
|
+
LOGGER.warning('Plugin grant missing (%s): %s', exc.error_code, exc)
|
|
141
157
|
return responses.JSONResponse(
|
|
142
158
|
status_code=403,
|
|
143
159
|
content={
|
|
144
160
|
'detail': {
|
|
145
|
-
'error':
|
|
161
|
+
'error': exc.error_code,
|
|
146
162
|
'message': str(exc),
|
|
147
163
|
'owner_repo': exc.owner_repo,
|
|
148
164
|
'integration_slug': exc.integration_slug,
|
|
@@ -192,6 +208,17 @@ def create_app() -> fastapi.FastAPI:
|
|
|
192
208
|
headers=headers,
|
|
193
209
|
)
|
|
194
210
|
|
|
211
|
+
# The endpoint found the organization, but a delete committed before
|
|
212
|
+
# the store write took its lock (relational.lock_organization_shared).
|
|
213
|
+
@app.exception_handler(relational.OrganizationDeleted)
|
|
214
|
+
async def _organization_deleted( # pyright: ignore[reportUnusedFunction]
|
|
215
|
+
_request: fastapi.Request,
|
|
216
|
+
exc: relational.OrganizationDeleted,
|
|
217
|
+
) -> responses.JSONResponse:
|
|
218
|
+
return responses.JSONResponse(
|
|
219
|
+
status_code=404, content={'detail': str(exc)}
|
|
220
|
+
)
|
|
221
|
+
|
|
195
222
|
@app.exception_handler(PluginUnavailableError)
|
|
196
223
|
async def _plugin_unavailable( # pyright: ignore[reportUnusedFunction]
|
|
197
224
|
_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,8 +296,11 @@ 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',
|
|
302
|
+
# Runs code in a sandbox inside imbi-api (ADR 0027).
|
|
303
|
+
'POST /organizations/{org_slug}/workflows/script-preview',
|
|
300
304
|
'PUT /organizations/{org_slug}/workflows/{slug}',
|
|
301
305
|
# Global configuration writes: they change every organization (and are also governance). Component and component release status and advisories are global marks by design.
|
|
302
306
|
'DELETE /blueprints/{type}/{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
|
|