imbi-api 2.58.0__tar.gz → 2.59.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.58.0 → imbi_api-2.59.0}/PKG-INFO +2 -2
- {imbi_api-2.58.0 → imbi_api-2.59.0}/pyproject.toml +2 -2
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/agent_api_routes.py +5 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/tickets.py +391 -10
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/workflow_runs.py +103 -2
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/workflows.py +8 -7
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/store.py +4 -5
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/__init__.py +4 -4
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/broker.py +11 -4
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/tickets/__init__.py +2 -0
- imbi_api-2.59.0/src/imbi/api/tickets/schemata.toml +727 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/tickets/store.py +451 -95
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/__init__.py +7 -4
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/runs.py +19 -11
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/runtime_schemata.toml +30 -13
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/schemata.toml +13 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/store.py +3 -3
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/sweeper.py +15 -13
- imbi_api-2.59.0/src/imbi/api/workflows/ticket_trigger.py +266 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/workflows/tickets.py +10 -3
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_tasks.py +147 -17
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_harness.py +6 -5
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_harness_secrets.py +2 -3
- imbi_api-2.59.0/tests/endpoints/test_ticket_attributes.py +403 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_ticket_reopen.py +52 -26
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_workflow_runs.py +175 -6
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_workflows.py +15 -6
- imbi_api-2.59.0/tests/fixtures/release_b1/harness_schemata.toml +295 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_prompt_seed.py +2 -1
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_secret_broker.py +3 -7
- imbi_api-2.59.0/tests/test_ticket_state_trigger.py +514 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_tickets_rename.py +42 -27
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_workflow_reconcile.py +2 -2
- imbi_api-2.58.0/src/imbi/api/workflows/ticket_trigger.py +0 -169
- imbi_api-2.58.0/tests/test_task_trigger.py +0 -366
- {imbi_api-2.58.0 → imbi_api-2.59.0}/.gitignore +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/README.md +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/moon.yml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/seed.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/agents.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/harness.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/organizations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/projects.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/ticket_harness.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/maintenance/operations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/maintenance/registry.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/tickets/log.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_task_harness.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_agents.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_organizations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_person_tickets.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_deployments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_projects.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_prompt_generative.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_ticket_handoff.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_ticket_waiting.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.58.0/tests/fixtures/release_b1 → imbi_api-2.59.0/tests/fixtures/release_2_58}/harness_schemata.toml +0 -0
- /imbi_api-2.58.0/src/imbi/api/tickets/schemata.toml → /imbi_api-2.59.0/tests/fixtures/release_2_58/tickets_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_a/harness_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_b/harness_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_b/tickets_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/release_b1/tickets_schemata.toml +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/secret_support.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/support.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_app.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_clickhouse_project_ids.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_cves.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_drift.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_init.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_installer.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_models.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_settings.py +0 -0
- {imbi_api-2.58.0 → imbi_api-2.59.0}/tests/test_workflow_tickets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: imbi-api
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.59.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.59.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.59.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.59.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
35
|
"jsonschema>=4.26",
|
|
@@ -39,6 +39,7 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
39
39
|
'GET /organizations/{org_slug}/agent-platform-config/',
|
|
40
40
|
'GET /organizations/{org_slug}/tickets/',
|
|
41
41
|
'GET /organizations/{org_slug}/tickets/counts',
|
|
42
|
+
'GET /organizations/{org_slug}/tickets/labels',
|
|
42
43
|
'GET /organizations/{org_slug}/tickets/waiting',
|
|
43
44
|
'GET /organizations/{org_slug}/tickets/{short_id}',
|
|
44
45
|
'GET /organizations/{org_slug}/tickets/{short_id}/events',
|
|
@@ -254,12 +255,15 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
254
255
|
'DELETE /organizations/{org_slug}/tickets/{short_id}',
|
|
255
256
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
256
257
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
258
|
+
'PATCH /organizations/{org_slug}/tickets/{short_id}',
|
|
257
259
|
'POST /organizations/{org_slug}/tickets/',
|
|
260
|
+
'POST /organizations/{org_slug}/tickets/subject',
|
|
258
261
|
'POST /organizations/{org_slug}/tickets/{short_id}/acknowledge',
|
|
259
262
|
'POST /organizations/{org_slug}/tickets/{short_id}/cancel',
|
|
260
263
|
'POST /organizations/{org_slug}/tickets/{short_id}/hand-off',
|
|
261
264
|
'POST /organizations/{org_slug}/tickets/{short_id}/pause',
|
|
262
265
|
'POST /organizations/{org_slug}/tickets/{short_id}/priority',
|
|
266
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/rank',
|
|
263
267
|
'POST /organizations/{org_slug}/tickets/{short_id}/reassign',
|
|
264
268
|
'POST /organizations/{org_slug}/tickets/{short_id}/reopen',
|
|
265
269
|
'POST /organizations/{org_slug}/tickets/{short_id}/reply',
|
|
@@ -303,6 +307,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
303
307
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/failure-notice',
|
|
304
308
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task',
|
|
305
309
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task/cancel',
|
|
310
|
+
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/assign-ticket',
|
|
306
311
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/email',
|
|
307
312
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/slack',
|
|
308
313
|
'GET /organizations/{org_slug}/workflow-runs/side-effects/deployments',
|
|
@@ -41,7 +41,9 @@ from imbi.api.endpoints._pagination import (
|
|
|
41
41
|
decode_cursor,
|
|
42
42
|
encode_cursor,
|
|
43
43
|
)
|
|
44
|
+
from imbi.api.llm.dependencies import InjectAnthropicClient
|
|
44
45
|
from imbi.api.tickets.store import (
|
|
46
|
+
MAX_LABEL_LENGTH,
|
|
45
47
|
ActorKind,
|
|
46
48
|
AssigneeKind,
|
|
47
49
|
Channel,
|
|
@@ -51,9 +53,13 @@ from imbi.api.tickets.store import (
|
|
|
51
53
|
Priority,
|
|
52
54
|
ResolvedStatus,
|
|
53
55
|
Status,
|
|
56
|
+
TicketType,
|
|
57
|
+
normalize_label,
|
|
58
|
+
normalize_labels,
|
|
54
59
|
)
|
|
55
60
|
from imbi.common import graph, models
|
|
56
61
|
from imbi.common.auth import permissions as common_permissions
|
|
62
|
+
from imbi.common.prompts import system as system_prompts
|
|
57
63
|
|
|
58
64
|
LOGGER = logging.getLogger(__name__)
|
|
59
65
|
|
|
@@ -96,6 +102,48 @@ _ShortText = typing.Annotated[
|
|
|
96
102
|
# --- Schemas -----------------------------------------------------------
|
|
97
103
|
|
|
98
104
|
|
|
105
|
+
def _checked(names: list[str]) -> list[str]:
|
|
106
|
+
"""Return normalized names, or raise ValueError for an empty or long
|
|
107
|
+
one."""
|
|
108
|
+
for name in names:
|
|
109
|
+
if not name:
|
|
110
|
+
raise ValueError('a label or role has no letter or digit')
|
|
111
|
+
if len(name) > MAX_LABEL_LENGTH:
|
|
112
|
+
raise ValueError(
|
|
113
|
+
f'{name!r} is longer than {MAX_LABEL_LENGTH} characters'
|
|
114
|
+
)
|
|
115
|
+
return names
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def _labels(values: list[str]) -> list[str]:
|
|
119
|
+
"""Return the normalized labels without repeats, in order."""
|
|
120
|
+
return _checked(normalize_labels(values))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def _roles(values: dict[str, str]) -> dict[str, str]:
|
|
124
|
+
"""Return the roles with normalized names."""
|
|
125
|
+
names = _checked([normalize_label(k) for k in values])
|
|
126
|
+
if len(set(names)) < len(names):
|
|
127
|
+
raise ValueError('two role names normalize to the same name')
|
|
128
|
+
return dict(zip(names, values.values(), strict=True))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
#: Labels: lowercase, with hyphens (``"API "`` is ``api``).
|
|
132
|
+
Labels = typing.Annotated[
|
|
133
|
+
list[str],
|
|
134
|
+
pydantic.Field(max_length=20),
|
|
135
|
+
pydantic.AfterValidator(_labels),
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
#: The people in named roles, ``{role: email}``. Role names are
|
|
139
|
+
#: normalized as labels are.
|
|
140
|
+
Roles = typing.Annotated[
|
|
141
|
+
dict[str, pydantic.EmailStr],
|
|
142
|
+
pydantic.Field(max_length=10),
|
|
143
|
+
pydantic.AfterValidator(_roles),
|
|
144
|
+
]
|
|
145
|
+
|
|
146
|
+
|
|
99
147
|
class TicketRequirement(pydantic.BaseModel):
|
|
100
148
|
"""A prerequisite of a new ticket."""
|
|
101
149
|
|
|
@@ -151,6 +199,14 @@ class AgentTaskCreate(pydantic.BaseModel):
|
|
|
151
199
|
description='A repeat with the same key returns the first task.',
|
|
152
200
|
)
|
|
153
201
|
priority: Priority = 'normal'
|
|
202
|
+
type: TicketType = 'task'
|
|
203
|
+
due_date: datetime.date | None = None
|
|
204
|
+
labels: Labels = pydantic.Field(default_factory=list[str])
|
|
205
|
+
roles: Roles = pydantic.Field(
|
|
206
|
+
default_factory=dict[str, pydantic.EmailStr],
|
|
207
|
+
description='The people in named roles, as {role: email}. Each '
|
|
208
|
+
'must be in the org.',
|
|
209
|
+
)
|
|
154
210
|
|
|
155
211
|
@pydantic.model_validator(mode='before')
|
|
156
212
|
@classmethod
|
|
@@ -217,30 +273,69 @@ class AgentTaskPriority(pydantic.BaseModel):
|
|
|
217
273
|
priority: Priority
|
|
218
274
|
|
|
219
275
|
|
|
276
|
+
class TicketUpdate(pydantic.BaseModel):
|
|
277
|
+
"""The fields to change; a field that is not sent stays."""
|
|
278
|
+
|
|
279
|
+
type: TicketType = 'task'
|
|
280
|
+
#: ``null`` clears the due date.
|
|
281
|
+
due_date: datetime.date | None = None
|
|
282
|
+
labels: Labels = []
|
|
283
|
+
roles: Roles = {}
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
class TicketRank(pydantic.BaseModel):
|
|
287
|
+
after: str | None = pydantic.Field(
|
|
288
|
+
default=None,
|
|
289
|
+
min_length=1,
|
|
290
|
+
max_length=50,
|
|
291
|
+
description='The short id of the backlog ticket that this ticket '
|
|
292
|
+
'goes right after. ``null``: first in the backlog.',
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
class TicketSubjectRequest(pydantic.BaseModel):
|
|
297
|
+
#: Only the first :data:`SUBJECT_INPUT_LENGTH` characters go to the
|
|
298
|
+
#: model, so a pasted document works.
|
|
299
|
+
description: str = pydantic.Field(min_length=1, max_length=1_000_000)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
class TicketSubject(pydantic.BaseModel):
|
|
303
|
+
subject: str = pydantic.Field(min_length=1)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
class TicketSubjectResponse(TicketSubject):
|
|
307
|
+
#: The model was not called or failed; ``subject`` is the first
|
|
308
|
+
#: line of the description.
|
|
309
|
+
degraded: bool
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
class TicketLabelCount(pydantic.BaseModel):
|
|
313
|
+
name: str
|
|
314
|
+
#: The number of tickets in the org with the label.
|
|
315
|
+
count: int
|
|
316
|
+
|
|
317
|
+
|
|
220
318
|
class AgentTaskOrigin(pydantic.BaseModel):
|
|
221
319
|
"""What started a task. It does not change.
|
|
222
320
|
|
|
223
321
|
A ``schedule`` origin also has ``scheduled_task_id``. A ``webhook``
|
|
224
322
|
origin also has ``webhook_id`` and ``delivery_id``. A
|
|
225
|
-
``
|
|
226
|
-
started; it also has ``task_id``.
|
|
323
|
+
``ticket_state_changed`` origin is a workflow run that a ticket
|
|
324
|
+
change started; it also has ``task_id``.
|
|
227
325
|
"""
|
|
228
326
|
|
|
229
327
|
model_config = pydantic.ConfigDict(extra='allow')
|
|
230
328
|
|
|
231
|
-
#: ``ticket``
|
|
232
|
-
#:
|
|
233
|
-
#:
|
|
234
|
-
#: :data:`imbi.api.tickets.store.CHILD_ORIGIN_KINDS` and
|
|
235
|
-
#: :mod:`imbi.api.workflows.ticket_trigger`).
|
|
329
|
+
#: ``ticket`` is the ADR 0028 name of ``task``. Release B writes
|
|
330
|
+
#: the new name; rows of older releases have the old one (see
|
|
331
|
+
#: :data:`imbi.api.tickets.store.CHILD_ORIGIN_KINDS`).
|
|
236
332
|
kind: typing.Literal[
|
|
237
333
|
'human',
|
|
238
334
|
'schedule',
|
|
239
335
|
'webhook',
|
|
240
336
|
'task',
|
|
241
337
|
'ticket',
|
|
242
|
-
'
|
|
243
|
-
'ticket_closed',
|
|
338
|
+
'ticket_state_changed',
|
|
244
339
|
]
|
|
245
340
|
#: The email of the person, for a ``human`` origin.
|
|
246
341
|
user: str | None = None
|
|
@@ -277,6 +372,12 @@ class AgentTaskResponse(pydantic.BaseModel):
|
|
|
277
372
|
status: Status
|
|
278
373
|
control: Control
|
|
279
374
|
priority: Priority = 'normal'
|
|
375
|
+
type: TicketType = 'task'
|
|
376
|
+
due_date: datetime.date | None = None
|
|
377
|
+
labels: list[str] = []
|
|
378
|
+
roles: dict[str, str] = {}
|
|
379
|
+
#: The place in the backlog, lower first. ``None``: not ranked.
|
|
380
|
+
backlog_rank: float | None = None
|
|
280
381
|
phase: str | None = None
|
|
281
382
|
outcome: str | None = None
|
|
282
383
|
outcome_reason: str | None = None
|
|
@@ -1472,6 +1573,7 @@ async def make_task(
|
|
|
1472
1573
|
|
|
1473
1574
|
"""
|
|
1474
1575
|
projects = await project_slugs(db, org_slug, data.project_ids)
|
|
1576
|
+
await _role_members(db, org_slug, data.roles)
|
|
1475
1577
|
if data.assignee_kind == 'person':
|
|
1476
1578
|
assignee = await person_assignee(db, org_slug, data.assignee)
|
|
1477
1579
|
else:
|
|
@@ -1505,6 +1607,10 @@ async def make_task(
|
|
|
1505
1607
|
requires=[
|
|
1506
1608
|
(r.short_id.upper(), r.gates) for r in data.requires
|
|
1507
1609
|
],
|
|
1610
|
+
type=data.type,
|
|
1611
|
+
due_date=data.due_date,
|
|
1612
|
+
labels=data.labels,
|
|
1613
|
+
roles=data.roles,
|
|
1508
1614
|
),
|
|
1509
1615
|
actor,
|
|
1510
1616
|
{
|
|
@@ -1517,12 +1623,48 @@ async def make_task(
|
|
|
1517
1623
|
'priority': data.priority,
|
|
1518
1624
|
'assignee_kind': data.assignee_kind,
|
|
1519
1625
|
'assignee': data.assignee,
|
|
1626
|
+
'type': data.type,
|
|
1627
|
+
'due_date': data.due_date and data.due_date.isoformat(),
|
|
1628
|
+
'labels': data.labels,
|
|
1629
|
+
'roles': data.roles,
|
|
1520
1630
|
},
|
|
1521
1631
|
)
|
|
1522
1632
|
except tickets.TaskNotFound as e:
|
|
1523
1633
|
raise _unprocessable(f'Prerequisite {str(e)!r} not found') from e
|
|
1524
1634
|
|
|
1525
1635
|
|
|
1636
|
+
_MEMBERS_QUERY: typing.LiteralString = """
|
|
1637
|
+
MATCH (u:User)-[:MEMBER_OF]->(:Organization {{slug: {org_slug}}})
|
|
1638
|
+
WHERE u.email IN {emails}
|
|
1639
|
+
RETURN u.email AS email
|
|
1640
|
+
"""
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
async def _role_members(
|
|
1644
|
+
db: graph.Graph,
|
|
1645
|
+
org_slug: str,
|
|
1646
|
+
roles: dict[str, str],
|
|
1647
|
+
known: abc.Mapping[str, str] | None = None,
|
|
1648
|
+
) -> None:
|
|
1649
|
+
"""Raise 422 unless each person in ``roles`` is in the org. A role
|
|
1650
|
+
that ``known`` gives to the same person is not checked again."""
|
|
1651
|
+
known = known or {}
|
|
1652
|
+
emails = {e for r, e in roles.items() if known.get(r) != e}
|
|
1653
|
+
if not emails:
|
|
1654
|
+
return
|
|
1655
|
+
found = {
|
|
1656
|
+
graph.parse_agtype(r['email'])
|
|
1657
|
+
for r in await db.execute(
|
|
1658
|
+
_MEMBERS_QUERY,
|
|
1659
|
+
{'org_slug': org_slug, 'emails': sorted(emails)},
|
|
1660
|
+
['email'],
|
|
1661
|
+
)
|
|
1662
|
+
}
|
|
1663
|
+
missing = sorted(emails - found)
|
|
1664
|
+
if missing:
|
|
1665
|
+
raise _unprocessable(f'User {missing[0]!r} is not in the org')
|
|
1666
|
+
|
|
1667
|
+
|
|
1526
1668
|
@tickets_router.get('/', response_model=list[AgentTaskListItem])
|
|
1527
1669
|
async def list_agent_tasks(
|
|
1528
1670
|
org_slug: str,
|
|
@@ -1538,6 +1680,7 @@ async def list_agent_tasks(
|
|
|
1538
1680
|
status: typing.Annotated[list[Status] | None, fastapi.Query()] = None,
|
|
1539
1681
|
agent_id: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1540
1682
|
owner: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1683
|
+
label: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1541
1684
|
mine: bool = False,
|
|
1542
1685
|
q: str | None = None,
|
|
1543
1686
|
limit: typing.Annotated[int, fastapi.Query(ge=1, le=100)] = 50,
|
|
@@ -1596,6 +1739,7 @@ async def list_agent_tasks(
|
|
|
1596
1739
|
text=text or None,
|
|
1597
1740
|
text_agent_ids=list(agents),
|
|
1598
1741
|
text_project_ids=list(projects),
|
|
1742
|
+
labels=label,
|
|
1599
1743
|
group=group,
|
|
1600
1744
|
before=before,
|
|
1601
1745
|
offset=offset,
|
|
@@ -1639,6 +1783,7 @@ async def count_agent_tasks(
|
|
|
1639
1783
|
status: typing.Annotated[list[Status] | None, fastapi.Query()] = None,
|
|
1640
1784
|
agent_id: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1641
1785
|
owner: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1786
|
+
label: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1642
1787
|
mine: bool = False,
|
|
1643
1788
|
q: str | None = None,
|
|
1644
1789
|
) -> dict[str, int]:
|
|
@@ -1662,6 +1807,7 @@ async def count_agent_tasks(
|
|
|
1662
1807
|
text=text or None,
|
|
1663
1808
|
text_agent_ids=list(agents),
|
|
1664
1809
|
text_project_ids=list(projects),
|
|
1810
|
+
labels=label,
|
|
1665
1811
|
)
|
|
1666
1812
|
|
|
1667
1813
|
|
|
@@ -1679,6 +1825,7 @@ async def get_agent_task_position(
|
|
|
1679
1825
|
status: typing.Annotated[list[Status] | None, fastapi.Query()] = None,
|
|
1680
1826
|
agent_id: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1681
1827
|
owner: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1828
|
+
label: typing.Annotated[list[str] | None, fastapi.Query()] = None,
|
|
1682
1829
|
mine: bool = False,
|
|
1683
1830
|
q: str | None = None,
|
|
1684
1831
|
) -> dict[str, typing.Any]:
|
|
@@ -1703,6 +1850,7 @@ async def get_agent_task_position(
|
|
|
1703
1850
|
text=text or None,
|
|
1704
1851
|
text_agent_ids=list(agents),
|
|
1705
1852
|
text_project_ids=list(projects),
|
|
1853
|
+
labels=label,
|
|
1706
1854
|
)
|
|
1707
1855
|
if found is None:
|
|
1708
1856
|
raise fastapi.HTTPException(
|
|
@@ -1767,6 +1915,110 @@ async def count_waiting_agent_tasks(
|
|
|
1767
1915
|
return await store.waiting(org_id, auth.user.email, lists=lists)
|
|
1768
1916
|
|
|
1769
1917
|
|
|
1918
|
+
#: The CMS reference of the ticket subject prompt.
|
|
1919
|
+
SUBJECT_PROMPT = f'{system_prompts.TICKET_SUBJECT.ref}@stable'
|
|
1920
|
+
|
|
1921
|
+
#: The longest subject, as the UI cuts a subject from a description.
|
|
1922
|
+
MAX_SUBJECT_LENGTH = 96
|
|
1923
|
+
|
|
1924
|
+
#: The characters of a description that the model reads.
|
|
1925
|
+
SUBJECT_INPUT_LENGTH = 8000
|
|
1926
|
+
|
|
1927
|
+
#: The reply format, added after the prompt in code, so that an edit of
|
|
1928
|
+
#: the prompt in the CMS cannot break the parse.
|
|
1929
|
+
_SUBJECT_FORMAT = (
|
|
1930
|
+
'\n\nReply with only a JSON object with one key, "subject", whose '
|
|
1931
|
+
'value is the subject. No other text, no markdown fences.'
|
|
1932
|
+
)
|
|
1933
|
+
|
|
1934
|
+
_LINK = re.compile(r'https?://\S+')
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
def subject_from(description: str) -> str:
|
|
1938
|
+
"""Return the first line of ``description`` without its links, cut
|
|
1939
|
+
to :data:`MAX_SUBJECT_LENGTH`; the subject when no model answers."""
|
|
1940
|
+
return _first_line(_LINK.sub('', description)) or 'Work from a link'
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
def _first_line(text: str) -> str:
|
|
1944
|
+
"""Return the first line of ``text``, cut to
|
|
1945
|
+
:data:`MAX_SUBJECT_LENGTH`."""
|
|
1946
|
+
line = text.strip().split('\n')[0].strip()
|
|
1947
|
+
if len(line) <= MAX_SUBJECT_LENGTH:
|
|
1948
|
+
return line
|
|
1949
|
+
return line[: MAX_SUBJECT_LENGTH - 1].rstrip() + '…'
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
@tickets_router.post('/subject', response_model=TicketSubjectResponse)
|
|
1953
|
+
async def suggest_ticket_subject(
|
|
1954
|
+
data: TicketSubjectRequest,
|
|
1955
|
+
db: graph.Pool,
|
|
1956
|
+
anthropic: InjectAnthropicClient,
|
|
1957
|
+
auth: typing.Annotated[
|
|
1958
|
+
permissions.AuthContext,
|
|
1959
|
+
fastapi.Depends(permissions.require_permission('ticket:create')),
|
|
1960
|
+
],
|
|
1961
|
+
) -> dict[str, typing.Any]:
|
|
1962
|
+
"""Write a subject for a new ticket from its description, with the
|
|
1963
|
+
``imbi-api/ticket-subject`` prompt and its model (the packaged
|
|
1964
|
+
prompt and the default model when the CMS has none). When no model
|
|
1965
|
+
answers, the subject is the first line of the description and
|
|
1966
|
+
``degraded`` is true.
|
|
1967
|
+
|
|
1968
|
+
Raises:
|
|
1969
|
+
403: The caller is not a member of the org.
|
|
1970
|
+
404: No such organization.
|
|
1971
|
+
|
|
1972
|
+
"""
|
|
1973
|
+
description = data.description[:SUBJECT_INPUT_LENGTH]
|
|
1974
|
+
fallback = TicketSubject(subject=subject_from(description))
|
|
1975
|
+
if not anthropic.available:
|
|
1976
|
+
return {'subject': fallback.subject, 'degraded': True}
|
|
1977
|
+
prompt = await system_prompts.load_system_prompt(
|
|
1978
|
+
db,
|
|
1979
|
+
SUBJECT_PROMPT,
|
|
1980
|
+
{},
|
|
1981
|
+
system_prompts.TICKET_SUBJECT,
|
|
1982
|
+
email=auth.user.email if auth.user else None,
|
|
1983
|
+
)
|
|
1984
|
+
result = await anthropic.complete_json(
|
|
1985
|
+
description,
|
|
1986
|
+
schema=TicketSubject,
|
|
1987
|
+
fallback=fallback,
|
|
1988
|
+
max_tokens=prompt.max_tokens or 200,
|
|
1989
|
+
model=prompt.model_id,
|
|
1990
|
+
system=prompt.text + _SUBJECT_FORMAT,
|
|
1991
|
+
)
|
|
1992
|
+
subject = _first_line(result.data.subject)
|
|
1993
|
+
return {
|
|
1994
|
+
'subject': subject or fallback.subject,
|
|
1995
|
+
'degraded': result.degraded,
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
@tickets_router.get('/labels', response_model=list[TicketLabelCount])
|
|
2000
|
+
async def list_ticket_labels(
|
|
2001
|
+
org_id: OrgId,
|
|
2002
|
+
store: tickets.Store,
|
|
2003
|
+
auth: typing.Annotated[
|
|
2004
|
+
permissions.AuthContext,
|
|
2005
|
+
fastapi.Depends(permissions.require_permission('ticket:read')),
|
|
2006
|
+
],
|
|
2007
|
+
q: str = '',
|
|
2008
|
+
limit: typing.Annotated[int, fastapi.Query(ge=1, le=50)] = 10,
|
|
2009
|
+
) -> list[dict[str, typing.Any]]:
|
|
2010
|
+
"""List the labels of the org that start with ``q``, most used
|
|
2011
|
+
first, each with its number of tickets. ``q`` is normalized as a
|
|
2012
|
+
label is, so ``API `` finds ``api``.
|
|
2013
|
+
|
|
2014
|
+
Raises:
|
|
2015
|
+
403: The caller is not a member of the org.
|
|
2016
|
+
404: No such organization.
|
|
2017
|
+
|
|
2018
|
+
"""
|
|
2019
|
+
return await store.label_counts(org_id, normalize_label(q), limit)
|
|
2020
|
+
|
|
2021
|
+
|
|
1770
2022
|
@tickets_router.get('/{short_id}', response_model=AgentTaskResponse)
|
|
1771
2023
|
async def get_agent_task(task: ReadableTask) -> dict[str, typing.Any]:
|
|
1772
2024
|
"""Get a task by its short id (``T-<n>``).
|
|
@@ -1937,6 +2189,42 @@ async def acknowledge_agent_task(
|
|
|
1937
2189
|
RETRY_TURN_LIMIT = 16_000
|
|
1938
2190
|
|
|
1939
2191
|
|
|
2192
|
+
def workflow_step_origin(
|
|
2193
|
+
task: dict[str, typing.Any],
|
|
2194
|
+
) -> tuple[str, str] | None:
|
|
2195
|
+
"""Return the run id and node key of the workflow step that made
|
|
2196
|
+
``task``, or ``None``.
|
|
2197
|
+
|
|
2198
|
+
Only the agent step route of imbi-api writes ``workflow_run_id`` in
|
|
2199
|
+
an origin record (``workflow_runs._agent_step``).
|
|
2200
|
+
"""
|
|
2201
|
+
origin: dict[str, typing.Any] = task['origin'] or {}
|
|
2202
|
+
run_id = origin.get('workflow_run_id')
|
|
2203
|
+
if not run_id:
|
|
2204
|
+
return None
|
|
2205
|
+
return str(run_id), str(origin.get('node_key') or '')
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
def _workflow_step_task(
|
|
2209
|
+
short_id: str, run_id: str, node_key: str
|
|
2210
|
+
) -> fastapi.HTTPException:
|
|
2211
|
+
return fastapi.HTTPException(
|
|
2212
|
+
status_code=409,
|
|
2213
|
+
detail={
|
|
2214
|
+
'error': 'workflow_step_task',
|
|
2215
|
+
'message': (
|
|
2216
|
+
f'Task {short_id} belongs to step {node_key!r} of workflow'
|
|
2217
|
+
f' run {run_id}. A retry would not belong to the run, so'
|
|
2218
|
+
' the run would not continue. Start a new run of the'
|
|
2219
|
+
' workflow instead, for example with Retry run on the'
|
|
2220
|
+
' page of the run.'
|
|
2221
|
+
),
|
|
2222
|
+
'workflow_run_id': run_id,
|
|
2223
|
+
'node_key': node_key,
|
|
2224
|
+
},
|
|
2225
|
+
)
|
|
2226
|
+
|
|
2227
|
+
|
|
1940
2228
|
def retry_description(
|
|
1941
2229
|
task: dict[str, typing.Any],
|
|
1942
2230
|
last_turn: str | None,
|
|
@@ -2002,11 +2290,17 @@ async def retry_agent_task(
|
|
|
2002
2290
|
needs ``ticket:read``, because the new description shows the
|
|
2003
2291
|
log of the closed task.
|
|
2004
2292
|
|
|
2293
|
+
A task that a workflow's agent step made is refused: the copy would
|
|
2294
|
+
not belong to the run, so the run would never see its result and
|
|
2295
|
+
its later steps would not run (ADR 0021, Agent tasks from
|
|
2296
|
+
workflows).
|
|
2297
|
+
|
|
2005
2298
|
Raises:
|
|
2006
2299
|
403: The caller is not a person, not a member of the org, or
|
|
2007
2300
|
cannot read tasks.
|
|
2008
2301
|
404: No such task.
|
|
2009
|
-
409: The task is not closed,
|
|
2302
|
+
409: The task is not closed, its agent is disabled, or
|
|
2303
|
+
``workflow_step_task``: a workflow step made it.
|
|
2010
2304
|
422: The agent or a project is no longer in the org.
|
|
2011
2305
|
|
|
2012
2306
|
"""
|
|
@@ -2019,6 +2313,9 @@ async def retry_agent_task(
|
|
|
2019
2313
|
raise fastapi.HTTPException(
|
|
2020
2314
|
status_code=409, detail=f'Task {short_id!r} is not closed'
|
|
2021
2315
|
)
|
|
2316
|
+
step_origin = workflow_step_origin(task)
|
|
2317
|
+
if step_origin is not None:
|
|
2318
|
+
raise _workflow_step_task(short_id, *step_origin)
|
|
2022
2319
|
# A repeat returns the first retry before the agent and log reads,
|
|
2023
2320
|
# which can fail after the first retry succeeded.
|
|
2024
2321
|
origin = task_origin(auth)
|
|
@@ -2373,6 +2670,90 @@ async def set_agent_task_priority(
|
|
|
2373
2670
|
) from e
|
|
2374
2671
|
|
|
2375
2672
|
|
|
2673
|
+
@tickets_router.patch('/{short_id}', response_model=AgentTaskResponse)
|
|
2674
|
+
async def update_ticket(
|
|
2675
|
+
org_slug: str,
|
|
2676
|
+
org_id: OrgId,
|
|
2677
|
+
short_id: str,
|
|
2678
|
+
data: TicketUpdate,
|
|
2679
|
+
db: graph.Pool,
|
|
2680
|
+
store: tickets.Store,
|
|
2681
|
+
auth: typing.Annotated[
|
|
2682
|
+
permissions.AuthContext,
|
|
2683
|
+
fastapi.Depends(permissions.require_permission('ticket:manage')),
|
|
2684
|
+
],
|
|
2685
|
+
) -> dict[str, typing.Any]:
|
|
2686
|
+
"""Change the type, the due date, the labels, or the roles of a
|
|
2687
|
+
ticket. Only the fields in the body change; each one that changes
|
|
2688
|
+
writes ``<field>.changed``. Labels and role names are normalized.
|
|
2689
|
+
|
|
2690
|
+
Raises:
|
|
2691
|
+
403: The caller is not a member of the org.
|
|
2692
|
+
404: No such task.
|
|
2693
|
+
409: The task is closed, or its roles changed while this
|
|
2694
|
+
request checked them (``roles_changed``).
|
|
2695
|
+
422: A person in ``roles`` is not in the org.
|
|
2696
|
+
|
|
2697
|
+
"""
|
|
2698
|
+
changes = data.model_dump(include=data.model_fields_set)
|
|
2699
|
+
known: dict[str, str] | None = None
|
|
2700
|
+
if data.roles:
|
|
2701
|
+
task = await _get_task(store, org_id, short_id)
|
|
2702
|
+
known = task['roles'] or {}
|
|
2703
|
+
await _role_members(db, org_slug, data.roles, known)
|
|
2704
|
+
with write_errors(short_id):
|
|
2705
|
+
try:
|
|
2706
|
+
# The roles that were not checked must still be there.
|
|
2707
|
+
return await store.set_fields(
|
|
2708
|
+
org_id,
|
|
2709
|
+
short_id.upper(),
|
|
2710
|
+
changes,
|
|
2711
|
+
_actor(auth),
|
|
2712
|
+
roles_read=known,
|
|
2713
|
+
)
|
|
2714
|
+
except tickets.RolesChanged as e:
|
|
2715
|
+
raise _conflict(
|
|
2716
|
+
'roles_changed',
|
|
2717
|
+
f'The roles of task {short_id!r} changed; try again',
|
|
2718
|
+
) from e
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
@tickets_router.post('/{short_id}/rank', response_model=AgentTaskResponse)
|
|
2722
|
+
async def rank_ticket(
|
|
2723
|
+
org_id: OrgId,
|
|
2724
|
+
short_id: str,
|
|
2725
|
+
data: TicketRank,
|
|
2726
|
+
store: tickets.Store,
|
|
2727
|
+
auth: typing.Annotated[
|
|
2728
|
+
permissions.AuthContext,
|
|
2729
|
+
fastapi.Depends(permissions.require_permission('ticket:manage')),
|
|
2730
|
+
],
|
|
2731
|
+
) -> dict[str, typing.Any]:
|
|
2732
|
+
"""Move a ticket in the backlog: right after the backlog ticket
|
|
2733
|
+
``after``, or first. The backlog is the tickets that have not
|
|
2734
|
+
started (``held``, ``queued``, ``open``): ranked ones by rank, then
|
|
2735
|
+
the others newest first. Unranked tickets down to ``after`` get
|
|
2736
|
+
ranks too, so the order that a person saw stays.
|
|
2737
|
+
|
|
2738
|
+
Raises:
|
|
2739
|
+
403: The caller is not a member of the org.
|
|
2740
|
+
404: No such task.
|
|
2741
|
+
409: The task is closed.
|
|
2742
|
+
422: ``after`` is not a backlog ticket of the org.
|
|
2743
|
+
|
|
2744
|
+
"""
|
|
2745
|
+
after = data.after.upper() if data.after else None
|
|
2746
|
+
with write_errors(short_id):
|
|
2747
|
+
try:
|
|
2748
|
+
return await store.rank(
|
|
2749
|
+
org_id, short_id.upper(), after, _actor(auth)
|
|
2750
|
+
)
|
|
2751
|
+
except tickets.TaskNotFound as e:
|
|
2752
|
+
if after is None or str(e) != after:
|
|
2753
|
+
raise
|
|
2754
|
+
raise _unprocessable(f'{after!r} is not in the backlog') from e
|
|
2755
|
+
|
|
2756
|
+
|
|
2376
2757
|
@tickets_router.post(
|
|
2377
2758
|
'/{short_id}/requests/{request_id}/resolve',
|
|
2378
2759
|
status_code=201,
|