imbi-api 2.52.0__tar.gz → 2.54.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.52.0 → imbi_api-2.54.0}/PKG-INFO +2 -2
- {imbi_api-2.52.0 → imbi_api-2.54.0}/pyproject.toml +2 -2
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/app.py +4 -2
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/agent_api.py +1 -1
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/agent_api_routes.py +24 -21
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/organizations.py +6 -3
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/seed.py +47 -1
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_helpers.py +61 -14
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/agent_usage.py +14 -12
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/agents.py +129 -11
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/ai_models.py +8 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/harness.py +232 -37
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/organizations.py +117 -37
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/prompts.py +958 -81
- imbi_api-2.52.0/src/imbi/api/endpoints/agent_task_harness.py → imbi_api-2.54.0/src/imbi/api/endpoints/ticket_harness.py +41 -43
- imbi_api-2.52.0/src/imbi/api/endpoints/agent_tasks.py → imbi_api-2.54.0/src/imbi/api/endpoints/tickets.py +406 -131
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/workflow_runs.py +132 -22
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/workflows.py +308 -19
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/__init__.py +3 -3
- imbi_api-2.54.0/src/imbi/api/harness/schemata.toml +329 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/store.py +24 -16
- imbi_api-2.54.0/src/imbi/api/llm/generate.py +153 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/maintenance/operations.py +25 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/maintenance/registry.py +14 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/maintenance/state.py +149 -46
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/maintenance/worker.py +31 -23
- imbi_api-2.54.0/src/imbi/api/model_calls/__init__.py +240 -0
- imbi_api-2.54.0/src/imbi/api/model_calls/schemata.toml +62 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/lifecycle_dispatch.py +16 -1
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/__init__.py +3 -3
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/broker.py +9 -9
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/schemata.toml +1 -1
- {imbi_api-2.52.0/src/imbi/api/agent_tasks → imbi_api-2.54.0/src/imbi/api/tickets}/__init__.py +21 -15
- {imbi_api-2.52.0/src/imbi/api/agent_tasks → imbi_api-2.54.0/src/imbi/api/tickets}/log.py +62 -39
- imbi_api-2.54.0/src/imbi/api/tickets/schemata.toml +407 -0
- {imbi_api-2.52.0/src/imbi/api/agent_tasks → imbi_api-2.54.0/src/imbi/api/tickets}/store.py +365 -163
- {imbi_api-2.52.0/src/imbi/api/agent_tasks → imbi_api-2.54.0/src/imbi/api/tickets}/sweeper.py +5 -5
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/workflows/__init__.py +6 -6
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/workflows/runs.py +56 -8
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/workflows/runtime_schemata.toml +5 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/workflows/store.py +51 -8
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/workflows/sweeper.py +11 -11
- imbi_api-2.52.0/src/imbi/api/workflows/task_trigger.py → imbi_api-2.54.0/src/imbi/api/workflows/ticket_trigger.py +16 -6
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_seed.py +11 -4
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_task_actions.py +22 -22
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_task_harness.py +31 -11
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_task_log.py +17 -19
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_task_relations.py +29 -29
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_tasks.py +282 -43
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_usage.py +34 -11
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agents.py +190 -2
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_ai_models.py +55 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_harness.py +202 -13
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_harness_secrets.py +1 -1
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_organizations.py +297 -37
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_prompt_decisions.py +40 -9
- imbi_api-2.54.0/tests/endpoints/test_prompt_generative.py +726 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_prompts.py +395 -2
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_shared_identifier.py +81 -5
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_workflow_run_history.py +208 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_workflow_runs.py +50 -12
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_workflows.py +431 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/secret_support.py +10 -11
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_agent_task_events_e2e.py +4 -4
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_clickhouse_project_ids.py +37 -1
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_maintenance_state.py +187 -51
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_maintenance_worker.py +36 -10
- imbi_api-2.54.0/tests/test_model_calls.py +190 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_secret_broker.py +15 -18
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_task_trigger.py +10 -7
- imbi_api-2.54.0/tests/test_tickets_rename.py +645 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/.gitignore +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/README.md +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/moon.yml +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/projects.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_deployments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_projects.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- /imbi_api-2.52.0/src/imbi/api/agent_tasks/schemata.toml → /imbi_api-2.54.0/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- /imbi_api-2.52.0/src/imbi/api/harness/schemata.toml → /imbi_api-2.54.0/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/support.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_app.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_cves.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_drift.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_init.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_installer.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_models.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_settings.py +0 -0
- {imbi_api-2.52.0 → imbi_api-2.54.0}/tests/test_workflow_reconcile.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: imbi-api
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.54.0
|
|
4
4
|
Summary: Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them.
|
|
5
5
|
Author-email: Alex Campbell <alexc@aweber.com>, Dave Shawley <daves@aweber.com>, "Gavin M. Roy" <gavinr@aweber.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -20,7 +20,7 @@ Requires-Dist: fastapi
|
|
|
20
20
|
Requires-Dist: filetype
|
|
21
21
|
Requires-Dist: httpx<1,>=0.28.1
|
|
22
22
|
Requires-Dist: idna>=3.18
|
|
23
|
-
Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.
|
|
23
|
+
Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.54.0
|
|
24
24
|
Requires-Dist: jinja2
|
|
25
25
|
Requires-Dist: jsonpatch>=1.33
|
|
26
26
|
Requires-Dist: jsonschema>=4.26
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "imbi-api"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.54.0"
|
|
4
4
|
description = "Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -29,7 +29,7 @@ dependencies = [
|
|
|
29
29
|
"filetype",
|
|
30
30
|
"httpx>=0.28.1,<1",
|
|
31
31
|
"idna>=3.18",
|
|
32
|
-
"imbi-common[databases,llm,mcp,script,sentry,server]==2.
|
|
32
|
+
"imbi-common[databases,llm,mcp,script,sentry,server]==2.54.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
35
|
"jsonschema>=4.26",
|
|
@@ -9,14 +9,15 @@ from fastapi.middleware import cors
|
|
|
9
9
|
from uvicorn.middleware import proxy_headers
|
|
10
10
|
|
|
11
11
|
from imbi.api import (
|
|
12
|
-
agent_tasks,
|
|
13
12
|
endpoints,
|
|
14
13
|
harness,
|
|
15
14
|
lifespans,
|
|
15
|
+
model_calls,
|
|
16
16
|
openapi,
|
|
17
17
|
plugins,
|
|
18
18
|
secret_broker,
|
|
19
19
|
settings,
|
|
20
|
+
tickets,
|
|
20
21
|
version,
|
|
21
22
|
workflows,
|
|
22
23
|
)
|
|
@@ -58,12 +59,13 @@ def create_app() -> fastapi.FastAPI:
|
|
|
58
59
|
lifespans.iggy_hook,
|
|
59
60
|
lifespans.iggy_metrics_hook,
|
|
60
61
|
graph.graph_lifespan,
|
|
61
|
-
|
|
62
|
+
tickets.store_lifespan,
|
|
62
63
|
# Before harness: its fencer must be registered before the
|
|
63
64
|
# lease sweep starts, and stay until the sweep stops.
|
|
64
65
|
secret_broker.store_lifespan,
|
|
65
66
|
harness.store_lifespan,
|
|
66
67
|
workflows.store_lifespan,
|
|
68
|
+
model_calls.store_lifespan,
|
|
67
69
|
prompt_pool.pool_lifespan,
|
|
68
70
|
lifespans.script_preview_hook,
|
|
69
71
|
lifespans.email_hook,
|
|
@@ -50,7 +50,7 @@ REFUSED_MODULES = frozenset(
|
|
|
50
50
|
{
|
|
51
51
|
'imbi.api.endpoints.admin',
|
|
52
52
|
'imbi.api.endpoints.admin_plugins',
|
|
53
|
-
'imbi.api.endpoints.
|
|
53
|
+
'imbi.api.endpoints.ticket_harness',
|
|
54
54
|
'imbi.api.endpoints.ai_providers',
|
|
55
55
|
'imbi.api.endpoints.api_keys',
|
|
56
56
|
'imbi.api.endpoints.auth',
|
|
@@ -37,12 +37,14 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
37
37
|
'GET /operations-log/plugin-templates',
|
|
38
38
|
'GET /organizations/{org_slug}/agent-marketplaces/',
|
|
39
39
|
'GET /organizations/{org_slug}/agent-platform-config/',
|
|
40
|
-
'GET /organizations/{org_slug}/
|
|
41
|
-
'GET /organizations/{org_slug}/
|
|
42
|
-
'GET /organizations/{org_slug}/
|
|
43
|
-
'GET /organizations/{org_slug}/
|
|
44
|
-
'GET /organizations/{org_slug}/
|
|
45
|
-
'GET /organizations/{org_slug}/
|
|
40
|
+
'GET /organizations/{org_slug}/tickets/',
|
|
41
|
+
'GET /organizations/{org_slug}/tickets/counts',
|
|
42
|
+
'GET /organizations/{org_slug}/tickets/waiting',
|
|
43
|
+
'GET /organizations/{org_slug}/tickets/{short_id}',
|
|
44
|
+
'GET /organizations/{org_slug}/tickets/{short_id}/events',
|
|
45
|
+
'GET /organizations/{org_slug}/tickets/{short_id}/position',
|
|
46
|
+
'GET /organizations/{org_slug}/tickets/{short_id}/projects',
|
|
47
|
+
'GET /organizations/{org_slug}/tickets/{short_id}/relations',
|
|
46
48
|
'GET /organizations/{org_slug}/agent-usage/',
|
|
47
49
|
'GET /organizations/{org_slug}/agents/',
|
|
48
50
|
'GET /organizations/{org_slug}/agents/tool-catalog',
|
|
@@ -133,6 +135,7 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
133
135
|
'GET /organizations/{org_slug}/users/{email}/documents/',
|
|
134
136
|
'GET /organizations/{org_slug}/webhooks/',
|
|
135
137
|
'GET /organizations/{org_slug}/webhooks/{webhook}',
|
|
138
|
+
'GET /organizations/{org_slug}/workflow-runs/',
|
|
136
139
|
'GET /organizations/{org_slug}/workflow-runs/attention',
|
|
137
140
|
'GET /organizations/{org_slug}/workflow-runs/side-effects',
|
|
138
141
|
'GET /organizations/{org_slug}/workflow-step-types/',
|
|
@@ -247,21 +250,21 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
247
250
|
'PUT /prompts/{namespace}/{slug}/default-label',
|
|
248
251
|
'PUT /prompts/{namespace}/{slug}/labels/{label}',
|
|
249
252
|
'PUT /prompts/{namespace}/{slug}/versions/{n}/evaluation',
|
|
250
|
-
#
|
|
251
|
-
'DELETE /organizations/{org_slug}/
|
|
252
|
-
'DELETE /organizations/{org_slug}/
|
|
253
|
-
'DELETE /organizations/{org_slug}/
|
|
254
|
-
'POST /organizations/{org_slug}/
|
|
255
|
-
'POST /organizations/{org_slug}/
|
|
256
|
-
'POST /organizations/{org_slug}/
|
|
257
|
-
'POST /organizations/{org_slug}/
|
|
258
|
-
'POST /organizations/{org_slug}/
|
|
259
|
-
'POST /organizations/{org_slug}/
|
|
260
|
-
'POST /organizations/{org_slug}/
|
|
261
|
-
'POST /organizations/{org_slug}/
|
|
262
|
-
'POST /organizations/{org_slug}/
|
|
263
|
-
'PUT /organizations/{org_slug}/
|
|
264
|
-
'PUT /organizations/{org_slug}/
|
|
253
|
+
# Tickets (and /agent-tasks, which shares these rules until release B): an agent works on its tickets through the harness routes only, so it cannot answer its own approval or question, reassign, or start another agent outside its chain
|
|
254
|
+
'DELETE /organizations/{org_slug}/tickets/{short_id}',
|
|
255
|
+
'DELETE /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
256
|
+
'DELETE /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
257
|
+
'POST /organizations/{org_slug}/tickets/',
|
|
258
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/acknowledge',
|
|
259
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/cancel',
|
|
260
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/pause',
|
|
261
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/reassign',
|
|
262
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/reply',
|
|
263
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/requests/{request_id}/resolve',
|
|
264
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/resume',
|
|
265
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/retry',
|
|
266
|
+
'PUT /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
267
|
+
'PUT /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
265
268
|
# Credentials and data outside Imbi: integrations, project integration assignments, webhooks, project configuration stores (values:fetch returns secret values)
|
|
266
269
|
'DELETE /organizations/{org_slug}/integrations/{slug}',
|
|
267
270
|
'DELETE /organizations/{org_slug}/projects/{project_id}/configuration/{key:path}',
|
|
@@ -78,10 +78,13 @@ async def org_permissions(
|
|
|
78
78
|
org_slug=org_slug,
|
|
79
79
|
)
|
|
80
80
|
if auth.on_behalf_of is not None:
|
|
81
|
-
granted
|
|
82
|
-
|
|
81
|
+
granted = common_permissions.held(
|
|
82
|
+
granted,
|
|
83
|
+
await common_permissions.load_principal_permissions(
|
|
84
|
+
db, *auth.on_behalf_of, org_slug=org_slug
|
|
85
|
+
),
|
|
83
86
|
)
|
|
84
|
-
return auth.permissions
|
|
87
|
+
return common_permissions.held(auth.permissions, granted)
|
|
85
88
|
|
|
86
89
|
|
|
87
90
|
async def member_org_id(
|
|
@@ -173,6 +173,13 @@ STANDARD_PERMISSIONS: list[tuple[str, str, str, str]] = [
|
|
|
173
173
|
'Move prompt labels and set the default label',
|
|
174
174
|
),
|
|
175
175
|
('prompt:delete', 'prompt', 'delete', 'Delete prompts'),
|
|
176
|
+
# A run spends provider credit, so it is not part of ``read``.
|
|
177
|
+
(
|
|
178
|
+
'prompt:run',
|
|
179
|
+
'prompt',
|
|
180
|
+
'run',
|
|
181
|
+
'Run saved generative prompts against their AI model',
|
|
182
|
+
),
|
|
176
183
|
(
|
|
177
184
|
'prompt:evaluate',
|
|
178
185
|
'prompt',
|
|
@@ -498,6 +505,25 @@ STANDARD_PERMISSIONS: list[tuple[str, str, str, str]] = [
|
|
|
498
505
|
'delete',
|
|
499
506
|
'Delete closed agent tasks',
|
|
500
507
|
),
|
|
508
|
+
# Tickets (ADR 0028): the new names of the `agent_task` permissions.
|
|
509
|
+
# Every role that has one of them has the other, and every check
|
|
510
|
+
# accepts either name until release B removes the old ones.
|
|
511
|
+
('ticket:read', 'ticket', 'read', 'View tickets and their events'),
|
|
512
|
+
('ticket:create', 'ticket', 'create', 'Create tickets'),
|
|
513
|
+
(
|
|
514
|
+
'ticket:manage',
|
|
515
|
+
'ticket',
|
|
516
|
+
'manage',
|
|
517
|
+
'Pause, resume, cancel, and reassign tickets',
|
|
518
|
+
),
|
|
519
|
+
(
|
|
520
|
+
'ticket:resolve',
|
|
521
|
+
'ticket',
|
|
522
|
+
'resolve',
|
|
523
|
+
'Answer feedback requests and resolve approvals of tickets',
|
|
524
|
+
),
|
|
525
|
+
# Granted to no non-admin default role.
|
|
526
|
+
('ticket:delete', 'ticket', 'delete', 'Delete closed tickets'),
|
|
501
527
|
# Workflows (ADR 0021)
|
|
502
528
|
(
|
|
503
529
|
'workflow:read',
|
|
@@ -635,6 +661,12 @@ STANDARD_PERMISSIONS: list[tuple[str, str, str, str]] = [
|
|
|
635
661
|
'maintenance:cve-sync',
|
|
636
662
|
'Start the cve-sync maintenance operation',
|
|
637
663
|
),
|
|
664
|
+
(
|
|
665
|
+
'admin:maintenance:ai-model-calls-prune',
|
|
666
|
+
'admin',
|
|
667
|
+
'maintenance:ai-model-calls-prune',
|
|
668
|
+
'Start the ai-model-calls-prune maintenance operation',
|
|
669
|
+
),
|
|
638
670
|
# Project plugin access
|
|
639
671
|
(
|
|
640
672
|
'project:configuration:read',
|
|
@@ -837,11 +869,15 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
837
869
|
[
|
|
838
870
|
'agent:create',
|
|
839
871
|
'agent_task:create',
|
|
872
|
+
'ticket:create',
|
|
840
873
|
'agent:read',
|
|
841
874
|
'agent_task:read',
|
|
875
|
+
'ticket:read',
|
|
842
876
|
'agent:write',
|
|
843
877
|
'agent_task:manage',
|
|
878
|
+
'ticket:manage',
|
|
844
879
|
'agent_task:resolve',
|
|
880
|
+
'ticket:resolve',
|
|
845
881
|
'blueprint:read',
|
|
846
882
|
'blueprint:write',
|
|
847
883
|
'workflow:create',
|
|
@@ -862,6 +898,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
862
898
|
'prompt:create',
|
|
863
899
|
'prompt:read',
|
|
864
900
|
'prompt:update',
|
|
901
|
+
'prompt:run',
|
|
865
902
|
'environment:read',
|
|
866
903
|
'link_definition:read',
|
|
867
904
|
'link_definition:write',
|
|
@@ -925,6 +962,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
925
962
|
[
|
|
926
963
|
'agent:read',
|
|
927
964
|
'agent_task:read',
|
|
965
|
+
'ticket:read',
|
|
928
966
|
'blueprint:read',
|
|
929
967
|
'component:read',
|
|
930
968
|
'workflow:read',
|
|
@@ -964,6 +1002,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
964
1002
|
[
|
|
965
1003
|
'agent:read',
|
|
966
1004
|
'agent_task:read',
|
|
1005
|
+
'ticket:read',
|
|
967
1006
|
'blueprint:read',
|
|
968
1007
|
'component:read',
|
|
969
1008
|
'workflow:read',
|
|
@@ -1020,13 +1059,17 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1020
1059
|
# who can make a task that runs as this account could then
|
|
1021
1060
|
# start any operation, including the purges.
|
|
1022
1061
|
'admin:maintenance:marketplace-sync',
|
|
1023
|
-
# The cve-sync system
|
|
1062
|
+
# The cve-sync and ai-model-calls-prune system tasks, for
|
|
1063
|
+
# the same reason.
|
|
1024
1064
|
'admin:maintenance:cve-sync',
|
|
1065
|
+
'admin:maintenance:ai-model-calls-prune',
|
|
1025
1066
|
'agent:read',
|
|
1026
1067
|
# An `api` task can start agent work with a `schedule`
|
|
1027
1068
|
# origin (ADR 0020).
|
|
1028
1069
|
'agent_task:create',
|
|
1070
|
+
'ticket:create',
|
|
1029
1071
|
'agent_task:read',
|
|
1072
|
+
'ticket:read',
|
|
1030
1073
|
# The task of a workflow's schedule trigger starts its runs
|
|
1031
1074
|
# (ADR 0021).
|
|
1032
1075
|
'workflow:run',
|
|
@@ -1068,6 +1111,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1068
1111
|
# The `create_agent_task` action, with a `webhook` origin
|
|
1069
1112
|
# (ADR 0020).
|
|
1070
1113
|
'agent_task:create',
|
|
1114
|
+
'ticket:create',
|
|
1071
1115
|
# The `start_workflow` action, with a `webhook` origin
|
|
1072
1116
|
# (ADR 0021).
|
|
1073
1117
|
'workflow:run',
|
|
@@ -1091,6 +1135,8 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1091
1135
|
'scheduled_task:create',
|
|
1092
1136
|
'scheduled_task:write',
|
|
1093
1137
|
'scheduled_task:delete',
|
|
1138
|
+
# The LLM Call step runs its saved prompt.
|
|
1139
|
+
'prompt:run',
|
|
1094
1140
|
# Not `integration:act-as-service`: an operator grants it,
|
|
1095
1141
|
# as ADR 0017 requires for every autonomous principal.
|
|
1096
1142
|
],
|
|
@@ -771,11 +771,17 @@ def linked_identifier_resolver(
|
|
|
771
771
|
return _resolve
|
|
772
772
|
|
|
773
773
|
|
|
774
|
-
#:
|
|
775
|
-
#:
|
|
776
|
-
|
|
774
|
+
#: Plugins whose verified identifier only an admin can change: the
|
|
775
|
+
#: ``github_app`` secret provider issues tokens for it (#402), and the
|
|
776
|
+
#: SonarQube lifecycle deletes the project it names (#775).
|
|
777
|
+
_ADMIN_REPOINT_PLUGINS = ['github', 'sonarqube']
|
|
778
|
+
|
|
779
|
+
#: The verified identifier of a project's ``EXISTS_IN`` edge to an
|
|
780
|
+
#: Integration of one of ``plugins``.
|
|
781
|
+
_VERIFIED_IDENTIFIER: typing.LiteralString = (
|
|
777
782
|
'MATCH (:Project {{id: {project_id}}})-[ei:EXISTS_IN]->'
|
|
778
|
-
'(:Integration {{slug: {integration_slug}
|
|
783
|
+
'(i:Integration {{slug: {integration_slug}}}) '
|
|
784
|
+
'WHERE i.plugin IN {plugins} '
|
|
779
785
|
'RETURN ei.verified_identifier AS verified_identifier'
|
|
780
786
|
)
|
|
781
787
|
|
|
@@ -785,18 +791,16 @@ async def _repoint_refusal(
|
|
|
785
791
|
) -> str | None:
|
|
786
792
|
"""Return why a non-admin cannot write ``identifier``, or ``None``.
|
|
787
793
|
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
edit, so only an admin can change a verified identifier to a
|
|
792
|
-
different repository (issue #402).
|
|
794
|
+
A plugin derives the identifier from data that any project writer
|
|
795
|
+
can edit, so only an admin can change the verified identifier of an
|
|
796
|
+
``EXISTS_IN`` edge to a plugin in :data:`_ADMIN_REPOINT_PLUGINS`.
|
|
793
797
|
"""
|
|
794
798
|
records = await db.execute(
|
|
795
|
-
|
|
799
|
+
_VERIFIED_IDENTIFIER,
|
|
796
800
|
{
|
|
797
801
|
'project_id': ctx.project_id,
|
|
798
802
|
'integration_slug': slug,
|
|
799
|
-
'
|
|
803
|
+
'plugins': _ADMIN_REPOINT_PLUGINS,
|
|
800
804
|
},
|
|
801
805
|
['verified_identifier'],
|
|
802
806
|
)
|
|
@@ -804,9 +808,9 @@ async def _repoint_refusal(
|
|
|
804
808
|
verified = graph.parse_agtype(row.get('verified_identifier'))
|
|
805
809
|
if verified is not None and str(verified) != identifier:
|
|
806
810
|
return (
|
|
807
|
-
f'Refusing to change the verified
|
|
811
|
+
f'Refusing to change the verified identifier from '
|
|
808
812
|
f'{verified} to {identifier}: only an admin can point '
|
|
809
|
-
'the project at a different
|
|
813
|
+
'the project at a different remote.'
|
|
810
814
|
)
|
|
811
815
|
return None
|
|
812
816
|
|
|
@@ -826,6 +830,48 @@ _IDENTIFIER_HOLDER_RETURN: typing.LiteralString = (
|
|
|
826
830
|
_VERIFIED_HOLDER: typing.LiteralString = (
|
|
827
831
|
'AND ei.verified_identifier = ei.identifier '
|
|
828
832
|
)
|
|
833
|
+
#: Another project in the organization with an ``EXISTS_IN`` edge with
|
|
834
|
+
#: the same identifier to any Integration of the same plugin. Two
|
|
835
|
+
#: Integrations can point at one remote server, so a check that guards
|
|
836
|
+
#: a remote delete must not stop at one Integration slug.
|
|
837
|
+
_PLUGIN_IDENTIFIER_HOLDER: typing.LiteralString = (
|
|
838
|
+
'MATCH (o:Organization {{slug: {org_slug}}})'
|
|
839
|
+
'<-[:BELONGS_TO]-(src:Integration {{slug: {integration_slug}}}) '
|
|
840
|
+
'MATCH (o)<-[:BELONGS_TO]-(:Team)<-[:OWNED_BY]-(p:Project)'
|
|
841
|
+
'-[ei:EXISTS_IN]->(i:Integration)-[:BELONGS_TO]->(o) '
|
|
842
|
+
'WHERE i.plugin = src.plugin AND ei.identifier = {identifier} '
|
|
843
|
+
'AND p.id <> {project_id} '
|
|
844
|
+
)
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
async def identifier_holder(
|
|
848
|
+
db: graph.Graph,
|
|
849
|
+
org_slug: str,
|
|
850
|
+
project_id: str,
|
|
851
|
+
integration_slug: str,
|
|
852
|
+
identifier: str,
|
|
853
|
+
) -> str | None:
|
|
854
|
+
"""Return the slug of another project that holds ``identifier``.
|
|
855
|
+
|
|
856
|
+
Looks for an ``EXISTS_IN`` edge with ``identifier`` to any
|
|
857
|
+
Integration of the same plugin as ``integration_slug``, from a
|
|
858
|
+
project in ``org_slug`` other than ``project_id``. Returns ``None``
|
|
859
|
+
when there is none. A lookup failure raises, so a caller that
|
|
860
|
+
removes remote state stops.
|
|
861
|
+
"""
|
|
862
|
+
records = await db.execute(
|
|
863
|
+
_PLUGIN_IDENTIFIER_HOLDER + _IDENTIFIER_HOLDER_RETURN,
|
|
864
|
+
{
|
|
865
|
+
'org_slug': org_slug,
|
|
866
|
+
'integration_slug': integration_slug,
|
|
867
|
+
'identifier': identifier,
|
|
868
|
+
'project_id': project_id,
|
|
869
|
+
},
|
|
870
|
+
['plugin', 'project_slug'],
|
|
871
|
+
)
|
|
872
|
+
for row in records:
|
|
873
|
+
return str(graph.parse_agtype(row.get('project_slug')))
|
|
874
|
+
return None
|
|
829
875
|
|
|
830
876
|
|
|
831
877
|
class SharedIdentifierRefused(Exception):
|
|
@@ -935,7 +981,8 @@ async def persist_service_writeback(
|
|
|
935
981
|
|
|
936
982
|
Returns a refusal message, and writes nothing, when a caller that
|
|
937
983
|
is not an admin would change the verified identifier of a GitHub
|
|
938
|
-
|
|
984
|
+
or SonarQube edge (see :func:`_repoint_refusal`), or when another
|
|
985
|
+
project already
|
|
939
986
|
holds an identifier the plugin declares not shareable. Otherwise
|
|
940
987
|
returns ``None``.
|
|
941
988
|
"""
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Token use and cost of agent tasks, from the ``agent_usage`` table in
|
|
4
4
|
ClickHouse. ClickHouse is analytics only: the budget authority is the
|
|
5
|
-
Postgres ledger. A
|
|
6
|
-
``task.created``
|
|
7
|
-
|
|
5
|
+
Postgres ledger. A ticket counts as one run of its agent on the day of
|
|
6
|
+
its ``task.created`` (or ``ticket.created``) event in the ticket log
|
|
7
|
+
(:data:`imbi.api.tickets.log.EVENTS`), so a ticket that stops before its
|
|
8
|
+
first model call is also a run.
|
|
8
9
|
|
|
9
10
|
Like the task routes, every route needs the caller to be a member of
|
|
10
11
|
the organization (``MEMBER_OF``).
|
|
@@ -21,6 +22,7 @@ import pydantic
|
|
|
21
22
|
|
|
22
23
|
from imbi.api.auth import organizations, permissions
|
|
23
24
|
from imbi.api.endpoints import _local_time
|
|
25
|
+
from imbi.api.tickets import log
|
|
24
26
|
from imbi.common import clickhouse
|
|
25
27
|
|
|
26
28
|
#: The longest range that one request can ask for, in days.
|
|
@@ -93,23 +95,23 @@ SELECT agent_id, {_TOTALS},
|
|
|
93
95
|
GROUP BY agent_id
|
|
94
96
|
"""
|
|
95
97
|
|
|
96
|
-
_RUNS_FROM = """
|
|
97
|
-
FROM
|
|
98
|
-
WHERE organization_id = {organization_id:String}
|
|
99
|
-
AND type
|
|
100
|
-
AND at >= {since:DateTime64(6)}
|
|
101
|
-
AND at < {until:DateTime64(6)}
|
|
102
|
-
AND ({agent_id:String} = '' OR agent_id = {agent_id:String})
|
|
98
|
+
_RUNS_FROM = f"""
|
|
99
|
+
FROM {log.EVENTS}
|
|
100
|
+
WHERE organization_id = {{organization_id:String}}
|
|
101
|
+
AND type IN ('task.created', 'ticket.created')
|
|
102
|
+
AND at >= {{since:DateTime64(6)}}
|
|
103
|
+
AND at < {{until:DateTime64(6)}}
|
|
104
|
+
AND ({{agent_id:String}} = '' OR agent_id = {{agent_id:String}})
|
|
103
105
|
"""
|
|
104
106
|
|
|
105
107
|
_DAY_RUNS_QUERY = f"""
|
|
106
108
|
SELECT toDate(at, {{tz:String}}) AS day, agent_id,
|
|
107
|
-
uniqExact(
|
|
109
|
+
uniqExact(ticket_id) AS tasks {_RUNS_FROM}
|
|
108
110
|
GROUP BY day, agent_id
|
|
109
111
|
"""
|
|
110
112
|
|
|
111
113
|
_AGENT_RUNS_QUERY = f"""
|
|
112
|
-
SELECT agent_id, uniqExact(
|
|
114
|
+
SELECT agent_id, uniqExact(ticket_id) AS tasks {_RUNS_FROM}
|
|
113
115
|
GROUP BY agent_id
|
|
114
116
|
"""
|
|
115
117
|
|