imbi-api 2.63.0__tar.gz → 2.64.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.63.0 → imbi_api-2.64.0}/PKG-INFO +2 -2
- {imbi_api-2.63.0 → imbi_api-2.64.0}/pyproject.toml +2 -2
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/agents.py +24 -26
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/document_templates.py +2 -23
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/documents.py +2 -23
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/tickets.py +5 -21
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/workflows.py +135 -9
- imbi_api-2.64.0/src/imbi/api/llm/prompted.py +47 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/maintenance/operations.py +45 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/maintenance/registry.py +15 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tags.py +31 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/log.py +4 -52
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_task_log.py +1 -130
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_tasks.py +30 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agents.py +2 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_operations_log.py +35 -2
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_workflows.py +114 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/support.py +19 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_prompt_seed.py +3 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_tags.py +19 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/.gitignore +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/README.md +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/moon.yml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/agent_api_routes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/seed.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/blueprint_sections.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/blueprint_values.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/harness.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/integration_workflow_steps.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/organizations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/projects.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/ticket_harness.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/endpoints/workflow_runs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/store.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/preferences/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/preferences/schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/teams.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/announce.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/custom_fields.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/store.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/plugin_calls.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/runs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/runtime_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/store.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/ticket_trigger.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/src/imbi/api/workflows/tickets.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_api.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_task_harness.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_comments_attention.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_harness.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_integration_workflow_steps.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_integration_workflow_steps_choices.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_organizations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_person_tickets.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_deployments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_projects.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_prompt_generative.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_agent_activity.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_attributes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_custom_fields.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_handoff.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_reopen.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_units.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_ticket_waiting.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_user_preferences.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_workflow_runs.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_2_58/harness_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_2_58/tickets_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_a/harness_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_b/harness_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_b/tickets_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_b1/harness_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/release_b1/tickets_schemata.toml +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/marketplace_support.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/secret_support.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_app.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_blueprint_values.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_clickhouse_project_ids.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_cves.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_drift.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_init.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_installer.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_models.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_settings.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_ticket_state_trigger.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_tickets_rename.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.0}/tests/test_workflow_reconcile.py +0 -0
- {imbi_api-2.63.0 → imbi_api-2.64.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.64.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.64.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.64.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.64.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
35
|
"jsonschema>=4.26",
|
|
@@ -119,19 +119,13 @@ PromptRef = typing.Annotated[
|
|
|
119
119
|
# --- Schemas -----------------------------------------------------------
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
# The ``Agent`` prefix keeps
|
|
123
|
-
# document. Other endpoints have a different ``TeamRef
|
|
122
|
+
# The ``Agent`` prefix keeps this schema name unique in the OpenAPI
|
|
123
|
+
# document. Other endpoints have a different ``TeamRef``.
|
|
124
124
|
class AgentTeamRef(pydantic.BaseModel):
|
|
125
125
|
name: str
|
|
126
126
|
slug: str
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
class AgentTagRef(pydantic.BaseModel):
|
|
130
|
-
name: str
|
|
131
|
-
slug: str
|
|
132
|
-
color: str | None = None
|
|
133
|
-
|
|
134
|
-
|
|
135
129
|
class OrganizationRef(pydantic.BaseModel):
|
|
136
130
|
name: str
|
|
137
131
|
slug: str
|
|
@@ -258,7 +252,7 @@ class AgentResponse(pydantic.BaseModel):
|
|
|
258
252
|
description: str | None = None
|
|
259
253
|
icon: str | None = None
|
|
260
254
|
team: AgentTeamRef | None = None
|
|
261
|
-
tags: list[
|
|
255
|
+
tags: list[org_tags.TagRef] = []
|
|
262
256
|
enabled: bool = True
|
|
263
257
|
slack_channel: str | None = None
|
|
264
258
|
prompt_ref: str | None = None
|
|
@@ -278,6 +272,9 @@ class AgentResponse(pydantic.BaseModel):
|
|
|
278
272
|
last_version_at: datetime.datetime | None = None
|
|
279
273
|
#: The principal that wrote the first version.
|
|
280
274
|
created_by: str | None = None
|
|
275
|
+
#: The slug of the service account the agent acts as. ``None``
|
|
276
|
+
#: when the agent has no service account yet.
|
|
277
|
+
service_account_slug: str | None = None
|
|
281
278
|
organization: OrganizationRef
|
|
282
279
|
|
|
283
280
|
|
|
@@ -293,7 +290,9 @@ class AgentVersionResponse(pydantic.BaseModel):
|
|
|
293
290
|
|
|
294
291
|
#: Every agent query ends with this tail. The newest version is found
|
|
295
292
|
#: with ``max()`` and then matched back, because Apache AGE loses an
|
|
296
|
-
#: ``ORDER BY`` in a ``WITH`` before an aggregation.
|
|
293
|
+
#: ``ORDER BY`` in a ``WITH`` before an aggregation. The service
|
|
294
|
+
#: account is found the same way, in the order of
|
|
295
|
+
#: ``_SERVICE_ACCOUNT_QUERY``.
|
|
297
296
|
_AGENT_TAIL: typing.LiteralString = """
|
|
298
297
|
OPTIONAL MATCH (v:AgentVersion)-[:VERSION_OF]->(a)
|
|
299
298
|
WITH a, o, max(v.n) AS latest
|
|
@@ -306,10 +305,19 @@ _AGENT_TAIL: typing.LiteralString = """
|
|
|
306
305
|
collect(CASE WHEN tag IS NOT NULL
|
|
307
306
|
THEN tag{{.name, .slug, .color}}
|
|
308
307
|
END) AS raw_tags
|
|
308
|
+
OPTIONAL MATCH (a)-[:ACTS_AS]->(sa:ServiceAccount)
|
|
309
|
+
WITH a, o, t, lv, fv, latest, raw_tags, min(sa.created_at) AS sa_at
|
|
310
|
+
OPTIONAL MATCH (a)-[:ACTS_AS]->(sa:ServiceAccount)
|
|
311
|
+
WHERE sa.created_at = sa_at
|
|
312
|
+
WITH a, o, t, lv, fv, latest, raw_tags, min(sa.id) AS sa_id
|
|
313
|
+
OPTIONAL MATCH (a)-[:ACTS_AS]->(sa:ServiceAccount)
|
|
314
|
+
WHERE sa.id = sa_id
|
|
315
|
+
WITH a, o, t, lv, fv, latest, raw_tags, sa.slug AS sa_slug
|
|
309
316
|
RETURN a, o, t, raw_tags AS tags, latest,
|
|
310
317
|
lv.created_by AS updated_by,
|
|
311
318
|
lv.created_at AS last_version_at,
|
|
312
|
-
fv.created_by AS created_by
|
|
319
|
+
fv.created_by AS created_by,
|
|
320
|
+
sa_slug AS service_account_slug
|
|
313
321
|
"""
|
|
314
322
|
|
|
315
323
|
_COLUMNS = [
|
|
@@ -321,6 +329,7 @@ _COLUMNS = [
|
|
|
321
329
|
'updated_by',
|
|
322
330
|
'last_version_at',
|
|
323
331
|
'created_by',
|
|
332
|
+
'service_account_slug',
|
|
324
333
|
]
|
|
325
334
|
|
|
326
335
|
_GET_QUERY: typing.LiteralString = (
|
|
@@ -642,21 +651,7 @@ def _parse_row(record: dict[str, typing.Any]) -> dict[str, typing.Any]:
|
|
|
642
651
|
agent = _props(record['a']) or {}
|
|
643
652
|
org = _props(record['o']) or {}
|
|
644
653
|
team = _props(record['t'])
|
|
645
|
-
|
|
646
|
-
tags: list[dict[str, typing.Any]] = []
|
|
647
|
-
for raw in raw_tags:
|
|
648
|
-
if not isinstance(raw, dict):
|
|
649
|
-
continue
|
|
650
|
-
entry = typing.cast('dict[str, typing.Any]', raw)
|
|
651
|
-
if not entry.get('slug'):
|
|
652
|
-
continue
|
|
653
|
-
tags.append(
|
|
654
|
-
{
|
|
655
|
-
'name': str(entry.get('name', '')),
|
|
656
|
-
'slug': str(entry['slug']),
|
|
657
|
-
'color': entry.get('color'),
|
|
658
|
-
}
|
|
659
|
-
)
|
|
654
|
+
tags = org_tags.parse_refs(graph.parse_agtype(record['tags']))
|
|
660
655
|
tags.sort(key=lambda t: str(t['slug']))
|
|
661
656
|
latest = graph.parse_agtype(record['latest'])
|
|
662
657
|
return {
|
|
@@ -680,6 +675,9 @@ def _parse_row(record: dict[str, typing.Any]) -> dict[str, typing.Any]:
|
|
|
680
675
|
'updated_by': graph.parse_agtype(record['updated_by']),
|
|
681
676
|
'last_version_at': graph.parse_agtype(record['last_version_at']),
|
|
682
677
|
'created_by': graph.parse_agtype(record['created_by']),
|
|
678
|
+
'service_account_slug': graph.parse_agtype(
|
|
679
|
+
record['service_account_slug']
|
|
680
|
+
),
|
|
683
681
|
'organization': {
|
|
684
682
|
'name': str(org.get('name', '')),
|
|
685
683
|
'slug': str(org.get('slug', '')),
|
|
@@ -34,12 +34,6 @@ _TEMPLATE_READONLY_PATHS: frozenset[str] = frozenset(
|
|
|
34
34
|
)
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class TagRef(pydantic.BaseModel):
|
|
38
|
-
name: str
|
|
39
|
-
slug: str
|
|
40
|
-
color: str | None = None
|
|
41
|
-
|
|
42
|
-
|
|
43
37
|
class OrganizationRef(pydantic.BaseModel):
|
|
44
38
|
name: str
|
|
45
39
|
slug: str
|
|
@@ -98,7 +92,7 @@ class DocumentTemplateResponse(pydantic.BaseModel):
|
|
|
98
92
|
title: str | None = None
|
|
99
93
|
content: str = ''
|
|
100
94
|
type: DocumentTemplateType = 'project'
|
|
101
|
-
tags: list[TagRef] = []
|
|
95
|
+
tags: list[org_tags.TagRef] = []
|
|
102
96
|
project_type_slugs: list[str] = []
|
|
103
97
|
sort_order: int = 0
|
|
104
98
|
created_at: datetime.datetime
|
|
@@ -121,22 +115,7 @@ def _parse_template_row(
|
|
|
121
115
|
) -> dict[str, typing.Any]:
|
|
122
116
|
template: dict[str, typing.Any] = graph.parse_agtype(record['nt'])
|
|
123
117
|
org: dict[str, typing.Any] = graph.parse_agtype(record['o'])
|
|
124
|
-
|
|
125
|
-
tags: list[dict[str, str | None]] = []
|
|
126
|
-
for t in raw_tags:
|
|
127
|
-
if not isinstance(t, dict):
|
|
128
|
-
continue
|
|
129
|
-
entry = typing.cast(dict[str, typing.Any], t)
|
|
130
|
-
slug = entry.get('slug')
|
|
131
|
-
if not slug:
|
|
132
|
-
continue
|
|
133
|
-
tags.append(
|
|
134
|
-
{
|
|
135
|
-
'name': str(entry.get('name', '')),
|
|
136
|
-
'slug': str(slug),
|
|
137
|
-
'color': entry.get('color'),
|
|
138
|
-
},
|
|
139
|
-
)
|
|
118
|
+
tags = org_tags.parse_refs(graph.parse_agtype(record['tags']))
|
|
140
119
|
template['organization'] = {
|
|
141
120
|
'name': str(org.get('name', '')),
|
|
142
121
|
'slug': str(org.get('slug', '')),
|
|
@@ -62,12 +62,6 @@ _DOCUMENT_READONLY_PATHS: frozenset[str] = frozenset(
|
|
|
62
62
|
)
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
class TagRef(pydantic.BaseModel):
|
|
66
|
-
name: str
|
|
67
|
-
slug: str
|
|
68
|
-
color: str | None = None
|
|
69
|
-
|
|
70
|
-
|
|
71
65
|
class AttachmentRef(pydantic.BaseModel):
|
|
72
66
|
"""The vertex a document hangs off of.
|
|
73
67
|
|
|
@@ -98,7 +92,7 @@ class DocumentResponse(pydantic.BaseModel):
|
|
|
98
92
|
comment_count: int = 0
|
|
99
93
|
like_count: int = 0
|
|
100
94
|
liked_by_me: bool = False
|
|
101
|
-
tags: list[TagRef] = []
|
|
95
|
+
tags: list[org_tags.TagRef] = []
|
|
102
96
|
version: int = 1
|
|
103
97
|
|
|
104
98
|
|
|
@@ -134,22 +128,7 @@ def _parse_document_row(
|
|
|
134
128
|
user: dict[str, typing.Any] | None = graph.parse_agtype(record['u'])
|
|
135
129
|
ptype_names = _str_list(graph.parse_agtype(record['ptype_names']))
|
|
136
130
|
author: dict[str, typing.Any] | None = graph.parse_agtype(record['author'])
|
|
137
|
-
|
|
138
|
-
tags: list[dict[str, str | None]] = []
|
|
139
|
-
for t in raw_tags:
|
|
140
|
-
if not isinstance(t, dict):
|
|
141
|
-
continue
|
|
142
|
-
entry = typing.cast(dict[str, typing.Any], t)
|
|
143
|
-
slug = entry.get('slug')
|
|
144
|
-
if not slug:
|
|
145
|
-
continue
|
|
146
|
-
tags.append(
|
|
147
|
-
{
|
|
148
|
-
'name': str(entry.get('name', '')),
|
|
149
|
-
'slug': str(slug),
|
|
150
|
-
'color': entry.get('color'),
|
|
151
|
-
},
|
|
152
|
-
)
|
|
131
|
+
tags = org_tags.parse_refs(graph.parse_agtype(record['tags']))
|
|
153
132
|
|
|
154
133
|
attached: dict[str, typing.Any] | None = None
|
|
155
134
|
if project:
|
|
@@ -50,6 +50,7 @@ from imbi.api.endpoints._pagination import (
|
|
|
50
50
|
decode_cursor,
|
|
51
51
|
encode_cursor,
|
|
52
52
|
)
|
|
53
|
+
from imbi.api.llm import prompted
|
|
53
54
|
from imbi.api.llm.dependencies import InjectAnthropicClient
|
|
54
55
|
from imbi.api.tickets import custom_fields
|
|
55
56
|
from imbi.api.tickets.store import (
|
|
@@ -2260,22 +2261,12 @@ async def count_waiting_agent_tasks(
|
|
|
2260
2261
|
return found
|
|
2261
2262
|
|
|
2262
2263
|
|
|
2263
|
-
#: The CMS reference of the ticket subject prompt.
|
|
2264
|
-
SUBJECT_PROMPT = f'{system_prompts.TICKET_SUBJECT.ref}@stable'
|
|
2265
|
-
|
|
2266
2264
|
#: The longest subject, as the UI cuts a subject from a description.
|
|
2267
2265
|
MAX_SUBJECT_LENGTH = 96
|
|
2268
2266
|
|
|
2269
2267
|
#: The characters of a description that the model reads.
|
|
2270
2268
|
SUBJECT_INPUT_LENGTH = 8000
|
|
2271
2269
|
|
|
2272
|
-
#: The reply format, added after the prompt in code, so that an edit of
|
|
2273
|
-
#: the prompt in the CMS cannot break the parse.
|
|
2274
|
-
_SUBJECT_FORMAT = (
|
|
2275
|
-
'\n\nReply with only a JSON object with one key, "subject", whose '
|
|
2276
|
-
'value is the subject. No other text, no markdown fences.'
|
|
2277
|
-
)
|
|
2278
|
-
|
|
2279
2270
|
_LINK = re.compile(r'https?://\S+')
|
|
2280
2271
|
|
|
2281
2272
|
|
|
@@ -2319,20 +2310,13 @@ async def suggest_ticket_subject(
|
|
|
2319
2310
|
fallback = TicketSubject(subject=subject_from(description))
|
|
2320
2311
|
if not anthropic.available:
|
|
2321
2312
|
return {'subject': fallback.subject, 'degraded': True}
|
|
2322
|
-
|
|
2313
|
+
result = await prompted.complete(
|
|
2323
2314
|
db,
|
|
2324
|
-
|
|
2325
|
-
{},
|
|
2315
|
+
anthropic,
|
|
2326
2316
|
system_prompts.TICKET_SUBJECT,
|
|
2327
|
-
email=auth.user.email if auth.user else None,
|
|
2328
|
-
)
|
|
2329
|
-
result = await anthropic.complete_json(
|
|
2330
2317
|
description,
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
max_tokens=prompt.max_tokens or 200,
|
|
2334
|
-
model=prompt.model_id,
|
|
2335
|
-
system=prompt.text + _SUBJECT_FORMAT,
|
|
2318
|
+
fallback,
|
|
2319
|
+
auth,
|
|
2336
2320
|
)
|
|
2337
2321
|
subject = _first_line(result.data.subject)
|
|
2338
2322
|
return {
|
|
@@ -20,6 +20,7 @@ import asyncio
|
|
|
20
20
|
import dataclasses
|
|
21
21
|
import datetime
|
|
22
22
|
import functools
|
|
23
|
+
import json
|
|
23
24
|
import logging
|
|
24
25
|
import re
|
|
25
26
|
import typing
|
|
@@ -35,9 +36,13 @@ from imbi.api import teams, workflows
|
|
|
35
36
|
from imbi.api.auth import autonomous, organizations, permissions
|
|
36
37
|
from imbi.api.endpoints import prompts
|
|
37
38
|
from imbi.api.endpoints._helpers import conflict_on_unique_violation
|
|
39
|
+
from imbi.api.llm import prompted
|
|
40
|
+
from imbi.api.llm.dependencies import InjectAnthropicClient
|
|
38
41
|
from imbi.common import graph, lifespan
|
|
39
42
|
from imbi.common.auth import permissions as common_permissions
|
|
43
|
+
from imbi.common.llm import AnthropicClient
|
|
40
44
|
from imbi.common.prompts import resolve as prompt_resolve
|
|
45
|
+
from imbi.common.prompts import system as system_prompts
|
|
41
46
|
from imbi.common.workflows import graph as wf
|
|
42
47
|
from imbi.common.workflows import (
|
|
43
48
|
history,
|
|
@@ -74,12 +79,6 @@ class WorkflowVersion(pydantic.BaseModel):
|
|
|
74
79
|
created_at: datetime.datetime
|
|
75
80
|
|
|
76
81
|
|
|
77
|
-
class WorkflowTag(pydantic.BaseModel):
|
|
78
|
-
name: str
|
|
79
|
-
slug: str
|
|
80
|
-
color: str | None = None
|
|
81
|
-
|
|
82
|
-
|
|
83
82
|
class WorkflowSummary(pydantic.BaseModel):
|
|
84
83
|
slug: str
|
|
85
84
|
name: str
|
|
@@ -91,7 +90,7 @@ class WorkflowSummary(pydantic.BaseModel):
|
|
|
91
90
|
description='None when the owner team was deleted.'
|
|
92
91
|
)
|
|
93
92
|
#: The org tags that label the workflow. A deleted tag is left out.
|
|
94
|
-
tags: list[
|
|
93
|
+
tags: list[org_tags.TagRef] = []
|
|
95
94
|
status: Status
|
|
96
95
|
latest_version: int
|
|
97
96
|
active_version: int | None
|
|
@@ -101,6 +100,8 @@ class WorkflowSummary(pydantic.BaseModel):
|
|
|
101
100
|
active_trigger_types: list[str]
|
|
102
101
|
#: The agents that the agent steps of the latest version use.
|
|
103
102
|
agent_ids: list[str] = []
|
|
103
|
+
#: The email of the user that made the workflow.
|
|
104
|
+
created_by: str
|
|
104
105
|
created_at: datetime.datetime
|
|
105
106
|
updated_at: datetime.datetime
|
|
106
107
|
#: From ClickHouse ``workflow_runs``. ``None`` when ClickHouse is
|
|
@@ -136,8 +137,9 @@ class Workflow(WorkflowSummary):
|
|
|
136
137
|
|
|
137
138
|
|
|
138
139
|
class WorkflowSave(pydantic.BaseModel):
|
|
140
|
+
"""A workflow save. A model writes the description."""
|
|
141
|
+
|
|
139
142
|
name: str = pydantic.Field(min_length=1)
|
|
140
|
-
description: str = ''
|
|
141
143
|
owner_team_slug: str = pydantic.Field(min_length=1)
|
|
142
144
|
tags: list[str] = pydantic.Field(
|
|
143
145
|
default=[], description='Tag slugs. Must already exist in the org.'
|
|
@@ -698,7 +700,7 @@ async def _definition(
|
|
|
698
700
|
)
|
|
699
701
|
return workflows.Definition(
|
|
700
702
|
name=data.name,
|
|
701
|
-
description=
|
|
703
|
+
description='',
|
|
702
704
|
owner_team_id=owner_team_id,
|
|
703
705
|
tag_ids=list(tag_ids.values()),
|
|
704
706
|
graph=data.graph.model_dump(mode='json'),
|
|
@@ -708,6 +710,103 @@ async def _definition(
|
|
|
708
710
|
)
|
|
709
711
|
|
|
710
712
|
|
|
713
|
+
#: The longest description that is stored.
|
|
714
|
+
MAX_DESCRIPTION_LENGTH = 300
|
|
715
|
+
|
|
716
|
+
_AGENT_NAMES_QUERY: typing.LiteralString = """
|
|
717
|
+
MATCH (a:Agent)-[:BELONGS_TO]->(:Organization {{slug: {org_slug}}})
|
|
718
|
+
WHERE a.id IN {ids}
|
|
719
|
+
RETURN a.id AS id, a.name AS name
|
|
720
|
+
"""
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
class _Description(pydantic.BaseModel):
|
|
724
|
+
description: str
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
def _outline(
|
|
728
|
+
name: str, wf_graph: dict[str, typing.Any]
|
|
729
|
+
) -> dict[str, typing.Any]:
|
|
730
|
+
"""Return the parts of a workflow that its description reads.
|
|
731
|
+
|
|
732
|
+
The layout and the step params are not in it (a step keeps its
|
|
733
|
+
agent), so a save that only moves steps keeps the description.
|
|
734
|
+
"""
|
|
735
|
+
keys = {n['id']: n['key'] for n in wf_graph.get('nodes', [])}
|
|
736
|
+
steps: list[dict[str, typing.Any]] = []
|
|
737
|
+
for node in wf_graph.get('nodes', []):
|
|
738
|
+
step = registry.get(node['type'])
|
|
739
|
+
outline = {
|
|
740
|
+
'key': node['key'],
|
|
741
|
+
'title': node['title'],
|
|
742
|
+
'type': step.label if step else node['type'],
|
|
743
|
+
}
|
|
744
|
+
# An agent step, or a trigger that filters on an agent. A
|
|
745
|
+
# value that is not a string is a validation issue, not an agent.
|
|
746
|
+
agent_id = node.get('params', {}).get('agent_id')
|
|
747
|
+
if isinstance(agent_id, str) and agent_id:
|
|
748
|
+
outline['agent'] = agent_id
|
|
749
|
+
steps.append(outline)
|
|
750
|
+
return {
|
|
751
|
+
'name': name,
|
|
752
|
+
'steps': steps,
|
|
753
|
+
'connections': [
|
|
754
|
+
f'{keys.get(e["source"])}:{e["port"]} -> {keys.get(e["target"])}'
|
|
755
|
+
for e in wf_graph.get('edges', [])
|
|
756
|
+
],
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
async def _describe(
|
|
761
|
+
db: graph.Graph,
|
|
762
|
+
anthropic: AnthropicClient,
|
|
763
|
+
org_slug: str,
|
|
764
|
+
outline: dict[str, typing.Any],
|
|
765
|
+
current: str,
|
|
766
|
+
auth: permissions.AuthContext,
|
|
767
|
+
) -> str:
|
|
768
|
+
"""Write a description of the workflow with the
|
|
769
|
+
``imbi-api/workflow-description`` prompt. Agent ids are sent as agent
|
|
770
|
+
names. ``current`` is kept when the workflow has no steps or no model
|
|
771
|
+
answers.
|
|
772
|
+
"""
|
|
773
|
+
if not outline['steps'] or not anthropic.available:
|
|
774
|
+
return current
|
|
775
|
+
ids = [s['agent'] for s in outline['steps'] if s.get('agent')]
|
|
776
|
+
names: dict[str, str] = {}
|
|
777
|
+
if ids:
|
|
778
|
+
rows = await db.execute(
|
|
779
|
+
_AGENT_NAMES_QUERY,
|
|
780
|
+
{'org_slug': org_slug, 'ids': ids},
|
|
781
|
+
['id', 'name'],
|
|
782
|
+
)
|
|
783
|
+
names = {
|
|
784
|
+
graph.parse_agtype(r['id']): graph.parse_agtype(r['name'])
|
|
785
|
+
for r in rows
|
|
786
|
+
}
|
|
787
|
+
sent = {
|
|
788
|
+
**outline,
|
|
789
|
+
'steps': [
|
|
790
|
+
{**s, 'agent': names.get(s['agent'], s['agent'])}
|
|
791
|
+
if 'agent' in s
|
|
792
|
+
else s
|
|
793
|
+
for s in outline['steps']
|
|
794
|
+
],
|
|
795
|
+
}
|
|
796
|
+
result = await prompted.complete(
|
|
797
|
+
db,
|
|
798
|
+
anthropic,
|
|
799
|
+
system_prompts.WORKFLOW_DESCRIPTION,
|
|
800
|
+
json.dumps(sent),
|
|
801
|
+
_Description(description=current),
|
|
802
|
+
auth,
|
|
803
|
+
)
|
|
804
|
+
if result.degraded:
|
|
805
|
+
return current
|
|
806
|
+
text = ' '.join(result.data.description.split())
|
|
807
|
+
return text[:MAX_DESCRIPTION_LENGTH] or current
|
|
808
|
+
|
|
809
|
+
|
|
711
810
|
# --- Endpoints ---------------------------------------------------------
|
|
712
811
|
|
|
713
812
|
workflows_router = fastapi.APIRouter(
|
|
@@ -783,6 +882,7 @@ async def create_workflow(
|
|
|
783
882
|
data: WorkflowCreate,
|
|
784
883
|
db: graph.Pool,
|
|
785
884
|
store: workflows.Store,
|
|
885
|
+
anthropic: InjectAnthropicClient,
|
|
786
886
|
auth: CreateAuth,
|
|
787
887
|
) -> dict[str, typing.Any]:
|
|
788
888
|
"""Make a workflow in ``draft`` with its version 1.
|
|
@@ -830,6 +930,17 @@ async def create_workflow(
|
|
|
830
930
|
await _check_llm_call(
|
|
831
931
|
db, org_slug, slug, data.graph, auth, definition.owner_team_id
|
|
832
932
|
)
|
|
933
|
+
definition = dataclasses.replace(
|
|
934
|
+
definition,
|
|
935
|
+
description=await _describe(
|
|
936
|
+
db,
|
|
937
|
+
anthropic,
|
|
938
|
+
org_slug,
|
|
939
|
+
_outline(definition.name, definition.graph),
|
|
940
|
+
'',
|
|
941
|
+
auth,
|
|
942
|
+
),
|
|
943
|
+
)
|
|
833
944
|
with conflict_on_unique_violation(f'Workflow {slug!r} already exists'):
|
|
834
945
|
await store.create(
|
|
835
946
|
org_id,
|
|
@@ -861,10 +972,16 @@ async def save_workflow(
|
|
|
861
972
|
data: WorkflowSave,
|
|
862
973
|
db: graph.Pool,
|
|
863
974
|
store: workflows.Store,
|
|
975
|
+
anthropic: InjectAnthropicClient,
|
|
864
976
|
auth: WriteAuth,
|
|
865
977
|
) -> dict[str, typing.Any]:
|
|
866
978
|
"""Save a new version. The active version does not change.
|
|
867
979
|
|
|
980
|
+
A model writes the description again when the name, the steps, or
|
|
981
|
+
the connections change, or when the description is empty. The
|
|
982
|
+
description does not change when no model answers or the workflow
|
|
983
|
+
has no steps.
|
|
984
|
+
|
|
868
985
|
The version is stored with its validation issues.
|
|
869
986
|
|
|
870
987
|
Only an admin or a member of the current owner team can change the
|
|
@@ -912,6 +1029,15 @@ async def save_workflow(
|
|
|
912
1029
|
await _check_llm_call(
|
|
913
1030
|
db, org_slug, slug, data.graph, auth, definition.owner_team_id
|
|
914
1031
|
)
|
|
1032
|
+
outline = _outline(definition.name, definition.graph)
|
|
1033
|
+
description = current['description']
|
|
1034
|
+
if not description or outline != _outline(
|
|
1035
|
+
current['name'], current['graph']
|
|
1036
|
+
):
|
|
1037
|
+
description = await _describe(
|
|
1038
|
+
db, anthropic, org_slug, outline, description, auth
|
|
1039
|
+
)
|
|
1040
|
+
definition = dataclasses.replace(definition, description=description)
|
|
915
1041
|
|
|
916
1042
|
# The archive runs under the row lock of the save: a second save
|
|
917
1043
|
# waits, so an older key set cannot archive a prompt of a newer
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""One JSON answer from a model, with a prompt that Imbi ships."""
|
|
2
|
+
|
|
3
|
+
import pydantic
|
|
4
|
+
|
|
5
|
+
from imbi.api.auth import permissions
|
|
6
|
+
from imbi.common import graph
|
|
7
|
+
from imbi.common.llm import AnthropicClient, CompletionResult
|
|
8
|
+
from imbi.common.prompts import system as system_prompts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def complete[T: pydantic.BaseModel](
|
|
12
|
+
db: graph.Graph,
|
|
13
|
+
anthropic: AnthropicClient,
|
|
14
|
+
default: system_prompts.DefaultPrompt,
|
|
15
|
+
text: str,
|
|
16
|
+
fallback: T,
|
|
17
|
+
auth: permissions.AuthContext,
|
|
18
|
+
) -> CompletionResult[T]:
|
|
19
|
+
"""Answer ``text`` with ``default``'s CMS prompt at ``@stable`` and
|
|
20
|
+
its model (the packaged prompt and the default model when the CMS
|
|
21
|
+
has none).
|
|
22
|
+
|
|
23
|
+
The answer is a JSON object with the one field of ``fallback``'s
|
|
24
|
+
model. The reply format is added after the prompt in code, so that
|
|
25
|
+
an edit of the prompt in the CMS cannot break the parse.
|
|
26
|
+
"""
|
|
27
|
+
schema = type(fallback)
|
|
28
|
+
(key,) = schema.model_fields
|
|
29
|
+
prompt = await system_prompts.load_system_prompt(
|
|
30
|
+
db,
|
|
31
|
+
f'{default.ref}@stable',
|
|
32
|
+
{},
|
|
33
|
+
default,
|
|
34
|
+
email=auth.user.email if auth.user else None,
|
|
35
|
+
)
|
|
36
|
+
return await anthropic.complete_json(
|
|
37
|
+
text,
|
|
38
|
+
schema=schema,
|
|
39
|
+
fallback=fallback,
|
|
40
|
+
max_tokens=prompt.max_tokens or 200,
|
|
41
|
+
model=prompt.model_id,
|
|
42
|
+
system=(
|
|
43
|
+
f'{prompt.text}\n\nReply with only a JSON object with one key, '
|
|
44
|
+
f'"{key}", whose value is the {key}. No other text, no '
|
|
45
|
+
'markdown fences.'
|
|
46
|
+
),
|
|
47
|
+
)
|
|
@@ -979,6 +979,51 @@ async def execute_opslog_organization_backfill(
|
|
|
979
979
|
return 'succeeded'
|
|
980
980
|
|
|
981
981
|
|
|
982
|
+
#: The live rows that ticket events wrote before that projection was
|
|
983
|
+
#: removed. Tickets do not write to the Operations Log now.
|
|
984
|
+
_OPSLOG_AGENT_TASK_SQL: typing.LiteralString = (
|
|
985
|
+
'SELECT * FROM operations_log FINAL'
|
|
986
|
+
" WHERE entry_type = 'Agent Task' AND is_deleted = 0"
|
|
987
|
+
)
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
async def enumerate_opslog_agent_task_purge(db: graph.Graph) -> list[str]:
|
|
991
|
+
"""One item per run: the purge of every Agent Task row."""
|
|
992
|
+
return ['agent-task-rows']
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
async def execute_opslog_agent_task_purge(
|
|
996
|
+
db: graph.Graph,
|
|
997
|
+
client: valkey.Valkey,
|
|
998
|
+
item_id: str,
|
|
999
|
+
*,
|
|
1000
|
+
ctx: log.MaintenanceContext,
|
|
1001
|
+
) -> ExecuteOutcome:
|
|
1002
|
+
"""Delete the ``Agent Task`` rows from the operations log.
|
|
1003
|
+
|
|
1004
|
+
Each row goes back as a tombstone with a bumped ``_row_version``, so
|
|
1005
|
+
the ``ReplacingMergeTree`` replaces it and every read, which filters
|
|
1006
|
+
on ``is_deleted = 0``, stops showing it.
|
|
1007
|
+
"""
|
|
1008
|
+
action = 'opslog-agent-task-purge'
|
|
1009
|
+
rows = await clickhouse.client.Clickhouse.get_instance().query(
|
|
1010
|
+
_OPSLOG_AGENT_TASK_SQL
|
|
1011
|
+
)
|
|
1012
|
+
if not rows:
|
|
1013
|
+
return _skip(ctx, action, 'No Agent Task entries are left.')
|
|
1014
|
+
for row in rows:
|
|
1015
|
+
row['is_deleted'] = 1
|
|
1016
|
+
row['_row_version'] = int(row['_row_version']) + 1
|
|
1017
|
+
await iggy.publish_rows('operations_log', 'maintenance', rows)
|
|
1018
|
+
ctx.log.record(
|
|
1019
|
+
'succeeded',
|
|
1020
|
+
action,
|
|
1021
|
+
f'Deleted {len(rows)} Agent Task entry(ies).',
|
|
1022
|
+
deleted=len(rows),
|
|
1023
|
+
)
|
|
1024
|
+
return 'succeeded'
|
|
1025
|
+
|
|
1026
|
+
|
|
982
1027
|
async def _orphan_release_check(
|
|
983
1028
|
db: graph.Graph,
|
|
984
1029
|
project_id: str,
|
|
@@ -31,6 +31,7 @@ MaintenanceSlug = typing.Literal[
|
|
|
31
31
|
'commit-pushed-at-repair',
|
|
32
32
|
'opslog-backfill',
|
|
33
33
|
'opslog-organization-backfill',
|
|
34
|
+
'opslog-agent-task-purge',
|
|
34
35
|
'orphan-release-check',
|
|
35
36
|
'orphan-release-purge',
|
|
36
37
|
'commit-sync',
|
|
@@ -252,6 +253,20 @@ OPERATIONS: dict[MaintenanceSlug, OperationDefinition] = {
|
|
|
252
253
|
enumerate=operations.enumerate_projects_with_archived,
|
|
253
254
|
execute=operations.execute_opslog_organization_backfill,
|
|
254
255
|
),
|
|
256
|
+
OperationDefinition(
|
|
257
|
+
slug='opslog-agent-task-purge',
|
|
258
|
+
label='Purge Agent Task Entries from Operations Log',
|
|
259
|
+
description=(
|
|
260
|
+
'Delete every Agent Task entry from the operations log. '
|
|
261
|
+
'Earlier releases wrote one for each resolved or closed '
|
|
262
|
+
'ticket of a project; tickets do not write them now. Run '
|
|
263
|
+
'it one time after the upgrade.'
|
|
264
|
+
),
|
|
265
|
+
pause_key=None,
|
|
266
|
+
enumerate=operations.enumerate_opslog_agent_task_purge,
|
|
267
|
+
execute=operations.execute_opslog_agent_task_purge,
|
|
268
|
+
items_are_projects=False,
|
|
269
|
+
),
|
|
255
270
|
OperationDefinition(
|
|
256
271
|
slug='orphan-release-check',
|
|
257
272
|
label='Report Orphaned Releases (dry run)',
|