imbi-api 2.55.0__tar.gz → 2.56.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.55.0 → imbi_api-2.56.0}/PKG-INFO +2 -2
- {imbi_api-2.55.0 → imbi_api-2.56.0}/pyproject.toml +2 -2
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/agent_api_routes.py +3 -1
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/seed.py +35 -51
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/agent_usage.py +1 -1
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/harness.py +23 -44
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/organizations.py +31 -30
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/ticket_harness.py +7 -1
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/tickets.py +191 -50
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/workflow_runs.py +2 -2
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/workflows.py +8 -6
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/auth.py +1 -1
- imbi_api-2.56.0/src/imbi/api/harness/schemata.toml +337 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/store.py +28 -27
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/sweeper.py +4 -4
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/tickets/__init__.py +6 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/tickets/log.py +6 -14
- imbi_api-2.56.0/src/imbi/api/tickets/schemata.toml +545 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/tickets/store.py +437 -72
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/runs.py +12 -5
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/runtime_schemata.toml +17 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/store.py +3 -1
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/ticket_trigger.py +9 -9
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_seed.py +65 -4
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_api.py +3 -3
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_task_actions.py +3 -3
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_task_harness.py +7 -17
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_task_relations.py +452 -33
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_tasks.py +61 -52
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_usage.py +5 -17
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_harness.py +79 -22
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_harness_egress.py +2 -2
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_harness_secrets.py +1 -1
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_organizations.py +62 -3
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_workflow_run_history.py +2 -2
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_workflow_runs.py +5 -5
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_workflows.py +37 -24
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_clickhouse_project_ids.py +30 -12
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_task_trigger.py +32 -5
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_tickets_rename.py +191 -4
- {imbi_api-2.55.0 → imbi_api-2.56.0}/.gitignore +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/README.md +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/moon.yml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/agents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/projects.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/maintenance/operations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/maintenance/registry.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/src/imbi/api/workflows/tickets.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_agents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_deployments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_projects.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_prompt_generative.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- /imbi_api-2.55.0/src/imbi/api/harness/schemata.toml → /imbi_api-2.56.0/tests/fixtures/release_a/harness_schemata.toml +0 -0
- /imbi_api-2.55.0/src/imbi/api/tickets/schemata.toml → /imbi_api-2.56.0/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/secret_support.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/support.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_app.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_drift.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_installer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_settings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.0}/tests/test_workflow_reconcile.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.56.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.56.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.56.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.56.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.56.0",
|
|
33
33
|
"jinja2",
|
|
34
34
|
"jsonpatch>=1.33",
|
|
35
35
|
"jsonschema>=4.26",
|
|
@@ -250,7 +250,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
250
250
|
'PUT /prompts/{namespace}/{slug}/default-label',
|
|
251
251
|
'PUT /prompts/{namespace}/{slug}/labels/{label}',
|
|
252
252
|
'PUT /prompts/{namespace}/{slug}/versions/{n}/evaluation',
|
|
253
|
-
# Tickets
|
|
253
|
+
# Tickets: an agent works on its tickets through the harness routes only, so it cannot answer its own approval or question, reassign, or start another agent outside its chain
|
|
254
254
|
'DELETE /organizations/{org_slug}/tickets/{short_id}',
|
|
255
255
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
256
256
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
@@ -258,11 +258,13 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
258
258
|
'POST /organizations/{org_slug}/tickets/{short_id}/acknowledge',
|
|
259
259
|
'POST /organizations/{org_slug}/tickets/{short_id}/cancel',
|
|
260
260
|
'POST /organizations/{org_slug}/tickets/{short_id}/pause',
|
|
261
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/priority',
|
|
261
262
|
'POST /organizations/{org_slug}/tickets/{short_id}/reassign',
|
|
262
263
|
'POST /organizations/{org_slug}/tickets/{short_id}/reply',
|
|
263
264
|
'POST /organizations/{org_slug}/tickets/{short_id}/requests/{request_id}/resolve',
|
|
264
265
|
'POST /organizations/{org_slug}/tickets/{short_id}/resume',
|
|
265
266
|
'POST /organizations/{org_slug}/tickets/{short_id}/retry',
|
|
267
|
+
'PUT /organizations/{org_slug}/tickets/{short_id}/parent',
|
|
266
268
|
'PUT /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
267
269
|
'PUT /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
268
270
|
# Credentials and data outside Imbi: integrations, project integration assignments, webhooks, project configuration stores (values:fetch returns secret values)
|
|
@@ -478,36 +478,8 @@ STANDARD_PERMISSIONS: list[tuple[str, str, str, str]] = [
|
|
|
478
478
|
('agent:read', 'agent', 'read', 'View agents and their versions'),
|
|
479
479
|
('agent:write', 'agent', 'write', 'Update and restore agents'),
|
|
480
480
|
('agent:delete', 'agent', 'delete', 'Delete agents'),
|
|
481
|
-
#
|
|
482
|
-
(
|
|
483
|
-
'agent_task:read',
|
|
484
|
-
'agent_task',
|
|
485
|
-
'read',
|
|
486
|
-
'View agent tasks and their events',
|
|
487
|
-
),
|
|
488
|
-
('agent_task:create', 'agent_task', 'create', 'Create agent tasks'),
|
|
489
|
-
(
|
|
490
|
-
'agent_task:manage',
|
|
491
|
-
'agent_task',
|
|
492
|
-
'manage',
|
|
493
|
-
'Pause, resume, cancel, and reassign agent tasks',
|
|
494
|
-
),
|
|
495
|
-
(
|
|
496
|
-
'agent_task:resolve',
|
|
497
|
-
'agent_task',
|
|
498
|
-
'resolve',
|
|
499
|
-
'Answer feedback requests and resolve approvals of agent tasks',
|
|
500
|
-
),
|
|
501
|
-
# Granted to no non-admin default role.
|
|
502
|
-
(
|
|
503
|
-
'agent_task:delete',
|
|
504
|
-
'agent_task',
|
|
505
|
-
'delete',
|
|
506
|
-
'Delete closed agent tasks',
|
|
507
|
-
),
|
|
508
|
-
# Tickets (ADR 0028): the new names of the `agent_task` permissions.
|
|
509
|
-
# Every role that has one of them has the other, and every check
|
|
510
|
-
# accepts either name until release B removes the old ones.
|
|
481
|
+
# Tickets (ADR 0020, ADR 0028). Before ADR 0028 the names were
|
|
482
|
+
# `agent_task:*` (see RENAMED_PERMISSIONS).
|
|
511
483
|
('ticket:read', 'ticket', 'read', 'View tickets and their events'),
|
|
512
484
|
('ticket:create', 'ticket', 'create', 'Create tickets'),
|
|
513
485
|
(
|
|
@@ -846,6 +818,15 @@ RETIRED_PERMISSIONS: list[str] = [
|
|
|
846
818
|
'third_party_service:delete',
|
|
847
819
|
]
|
|
848
820
|
|
|
821
|
+
# Permissions renamed by ADR 0028 (tasks become tickets), old name to new
|
|
822
|
+
# name. ``cleanup_retired_permissions`` gives the new permission to each
|
|
823
|
+
# role that has the old one, custom roles included, then removes the
|
|
824
|
+
# old one.
|
|
825
|
+
RENAMED_PERMISSIONS: dict[str, str] = {
|
|
826
|
+
f'agent_task:{action}': f'ticket:{action}'
|
|
827
|
+
for action in ('read', 'create', 'manage', 'resolve', 'delete')
|
|
828
|
+
}
|
|
829
|
+
|
|
849
830
|
# Default role definitions.
|
|
850
831
|
#
|
|
851
832
|
# The 6th tuple element marks the role auto-assigned to newly-logging-in
|
|
@@ -868,15 +849,11 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
868
849
|
500,
|
|
869
850
|
[
|
|
870
851
|
'agent:create',
|
|
871
|
-
'agent_task:create',
|
|
872
852
|
'ticket:create',
|
|
873
853
|
'agent:read',
|
|
874
|
-
'agent_task:read',
|
|
875
854
|
'ticket:read',
|
|
876
855
|
'agent:write',
|
|
877
|
-
'agent_task:manage',
|
|
878
856
|
'ticket:manage',
|
|
879
|
-
'agent_task:resolve',
|
|
880
857
|
'ticket:resolve',
|
|
881
858
|
'blueprint:read',
|
|
882
859
|
'blueprint:write',
|
|
@@ -961,7 +938,6 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
961
938
|
150,
|
|
962
939
|
[
|
|
963
940
|
'agent:read',
|
|
964
|
-
'agent_task:read',
|
|
965
941
|
'ticket:read',
|
|
966
942
|
'blueprint:read',
|
|
967
943
|
'component:read',
|
|
@@ -1001,7 +977,6 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1001
977
|
100,
|
|
1002
978
|
[
|
|
1003
979
|
'agent:read',
|
|
1004
|
-
'agent_task:read',
|
|
1005
980
|
'ticket:read',
|
|
1006
981
|
'blueprint:read',
|
|
1007
982
|
'component:read',
|
|
@@ -1066,9 +1041,7 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1066
1041
|
'agent:read',
|
|
1067
1042
|
# An `api` task can start agent work with a `schedule`
|
|
1068
1043
|
# origin (ADR 0020).
|
|
1069
|
-
'agent_task:create',
|
|
1070
1044
|
'ticket:create',
|
|
1071
|
-
'agent_task:read',
|
|
1072
1045
|
'ticket:read',
|
|
1073
1046
|
# The task of a workflow's schedule trigger starts its runs
|
|
1074
1047
|
# (ADR 0021).
|
|
@@ -1110,7 +1083,6 @@ DEFAULT_ROLES: list[tuple[str, str, str, int, list[str], bool]] = [
|
|
|
1110
1083
|
'user:read',
|
|
1111
1084
|
# The `create_agent_task` action, with a `webhook` origin
|
|
1112
1085
|
# (ADR 0020).
|
|
1113
|
-
'agent_task:create',
|
|
1114
1086
|
'ticket:create',
|
|
1115
1087
|
# The `start_workflow` action, with a `webhook` origin
|
|
1116
1088
|
# (ADR 0021).
|
|
@@ -1173,18 +1145,20 @@ if sum(role[5] for role in DEFAULT_ROLES) != 1:
|
|
|
1173
1145
|
|
|
1174
1146
|
|
|
1175
1147
|
async def cleanup_retired_permissions(db: graph.Graph) -> int:
|
|
1176
|
-
"""Detach-delete
|
|
1148
|
+
"""Detach-delete retired and renamed permissions.
|
|
1177
1149
|
|
|
1178
1150
|
Installs seeded before the ThirdPartyService -> Integration rename
|
|
1179
1151
|
retain orphaned ``third_party_service:*`` :class:`Permission` nodes and
|
|
1180
1152
|
any GRANTS edges pointing at them. Remove them so role grants stay
|
|
1181
|
-
clean.
|
|
1153
|
+
clean. A role that has a :data:`RENAMED_PERMISSIONS` name gets the new
|
|
1154
|
+
name first, so it keeps its access. Must run after
|
|
1155
|
+
``seed_permissions``, which makes the new names. Idempotent: a no-op
|
|
1156
|
+
once the retired nodes are gone.
|
|
1182
1157
|
"""
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
)
|
|
1158
|
+
names = RETIRED_PERMISSIONS + list(RENAMED_PERMISSIONS)
|
|
1159
|
+
placeholders = ', '.join(f'{{r_{i}}}' for i in range(len(names)))
|
|
1186
1160
|
params: dict[str, typing.Any] = {
|
|
1187
|
-
f'r_{i}': name for i, name in enumerate(
|
|
1161
|
+
f'r_{i}': name for i, name in enumerate(names)
|
|
1188
1162
|
}
|
|
1189
1163
|
count_query: str = (
|
|
1190
1164
|
'UNWIND [' + placeholders + '] AS name '
|
|
@@ -1197,6 +1171,15 @@ async def cleanup_retired_permissions(db: graph.Graph) -> int:
|
|
|
1197
1171
|
raw = graph.parse_agtype(records[0].get('removed'))
|
|
1198
1172
|
removed = int(raw or 0)
|
|
1199
1173
|
if removed:
|
|
1174
|
+
for old, new in RENAMED_PERMISSIONS.items():
|
|
1175
|
+
await db.execute(
|
|
1176
|
+
'MATCH (r:Role)-[:GRANTS]->(:Permission {{name: {old}}}) '
|
|
1177
|
+
'MATCH (p:Permission {{name: {new}}}) '
|
|
1178
|
+
'MERGE (r)-[:GRANTS]->(p) '
|
|
1179
|
+
'RETURN count(p) AS granted',
|
|
1180
|
+
{'old': old, 'new': new},
|
|
1181
|
+
columns=['granted'],
|
|
1182
|
+
)
|
|
1200
1183
|
delete_query: str = (
|
|
1201
1184
|
'UNWIND [' + placeholders + '] AS name '
|
|
1202
1185
|
'MATCH (p:Permission {{name: name}}) '
|
|
@@ -1388,15 +1371,16 @@ async def seed_default_organization(
|
|
|
1388
1371
|
|
|
1389
1372
|
|
|
1390
1373
|
async def seed_permissions_and_roles(db: graph.Graph) -> dict[str, int]:
|
|
1391
|
-
"""
|
|
1374
|
+
"""Seed permissions, prune retired permissions, then seed default
|
|
1375
|
+
roles.
|
|
1392
1376
|
|
|
1393
1377
|
Organization-independent half of :func:`bootstrap_auth_system`, so a
|
|
1394
1378
|
deployment that only needs to pick up newly declared permissions can
|
|
1395
1379
|
run it without re-seeding an organization or touching users. The
|
|
1396
|
-
call order is load-bearing: ``
|
|
1397
|
-
``Permission`` nodes
|
|
1398
|
-
first or roles silently come up
|
|
1399
|
-
Idempotent.
|
|
1380
|
+
call order is load-bearing: ``cleanup_retired_permissions`` and
|
|
1381
|
+
``seed_default_roles`` MATCH the ``Permission`` nodes they grant, so
|
|
1382
|
+
``seed_permissions`` must run first or roles silently come up
|
|
1383
|
+
without their GRANTS edges. Idempotent.
|
|
1400
1384
|
|
|
1401
1385
|
Args:
|
|
1402
1386
|
db: Graph database connection.
|
|
@@ -1408,8 +1392,8 @@ async def seed_permissions_and_roles(db: graph.Graph) -> dict[str, int]:
|
|
|
1408
1392
|
- 'roles': Number of roles created
|
|
1409
1393
|
|
|
1410
1394
|
"""
|
|
1411
|
-
retired = await cleanup_retired_permissions(db)
|
|
1412
1395
|
permissions_created = await seed_permissions(db)
|
|
1396
|
+
retired = await cleanup_retired_permissions(db)
|
|
1413
1397
|
roles_created = await seed_default_roles(db)
|
|
1414
1398
|
return {
|
|
1415
1399
|
'retired': retired,
|
|
@@ -163,7 +163,7 @@ async def get_agent_usage(
|
|
|
163
163
|
org_id: organizations.MemberOrgId,
|
|
164
164
|
auth: typing.Annotated[
|
|
165
165
|
permissions.AuthContext,
|
|
166
|
-
fastapi.Depends(permissions.require_permission('
|
|
166
|
+
fastapi.Depends(permissions.require_permission('ticket:read')),
|
|
167
167
|
],
|
|
168
168
|
zone: _local_time.LocalZone,
|
|
169
169
|
start: datetime.date | None = None,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Runners** (``/harness/runners``): a runner registers with its pool
|
|
10
10
|
credential (the client credential of the pool's service account),
|
|
11
11
|
then heartbeats, claims, and finishes with its runner credential.
|
|
12
|
-
- **
|
|
12
|
+
- **Tickets** (``/harness/tickets``): the routes that a runner calls with
|
|
13
13
|
an agent token for a task of its chain: read events, make a child
|
|
14
14
|
task, and check a tool rate limit.
|
|
15
15
|
- **Secrets** (plan 9.3): the runner asks for a resolution with an
|
|
@@ -870,7 +870,7 @@ async def _claim(
|
|
|
870
870
|
raise _NoServiceAccount(task['short_id'])
|
|
871
871
|
org_slugs = await organization_slugs(db, [task['organization_id']])
|
|
872
872
|
grant = tokens.AgentGrant(
|
|
873
|
-
chain_id=chain['
|
|
873
|
+
chain_id=chain['root_ticket_id'],
|
|
874
874
|
attempt=chain['attempt'],
|
|
875
875
|
runner_id=runner['id'],
|
|
876
876
|
organization_id=task['organization_id'],
|
|
@@ -897,7 +897,7 @@ async def _claim(
|
|
|
897
897
|
else [harness_egress.Grant.model_validate(g) for g in chain['egress']]
|
|
898
898
|
)
|
|
899
899
|
return Claim(
|
|
900
|
-
chain_id=chain['
|
|
900
|
+
chain_id=chain['root_ticket_id'],
|
|
901
901
|
attempt=chain['attempt'],
|
|
902
902
|
organization_slug=org_slug,
|
|
903
903
|
task=tasks_api.AgentTaskResponse.model_validate(task),
|
|
@@ -933,7 +933,7 @@ def _proxy_token(
|
|
|
933
933
|
return None
|
|
934
934
|
token = tokens.mint_proxy_token(
|
|
935
935
|
secret,
|
|
936
|
-
chain_id=chain['
|
|
936
|
+
chain_id=chain['root_ticket_id'],
|
|
937
937
|
attempt=chain['attempt'],
|
|
938
938
|
pod=pod,
|
|
939
939
|
hosts=hosts,
|
|
@@ -975,8 +975,8 @@ async def _root_egress(
|
|
|
975
975
|
the list for the claims of its child tasks.
|
|
976
976
|
"""
|
|
977
977
|
root = task
|
|
978
|
-
if task['id'] != chain['
|
|
979
|
-
root = await store.task_agent(chain['
|
|
978
|
+
if task['id'] != chain['root_ticket_id']:
|
|
979
|
+
root = await store.task_agent(chain['root_ticket_id']) or task
|
|
980
980
|
slugs = await _egress_slugs(db, root['agent_id'], root['agent_version'])
|
|
981
981
|
grants, pending = harness_egress.grants(
|
|
982
982
|
await store.egress_destinations(), slugs, task['organization_id']
|
|
@@ -1535,7 +1535,7 @@ async def _renew_api_tokens(
|
|
|
1535
1535
|
):
|
|
1536
1536
|
return {}
|
|
1537
1537
|
grant = tokens.AgentGrant(
|
|
1538
|
-
chain_id=chain['
|
|
1538
|
+
chain_id=chain['root_ticket_id'],
|
|
1539
1539
|
attempt=chain['attempt'],
|
|
1540
1540
|
runner_id=runner['id'],
|
|
1541
1541
|
organization_id=chain['organization_id'],
|
|
@@ -1546,7 +1546,7 @@ async def _renew_api_tokens(
|
|
|
1546
1546
|
task = await tasks.get(chain['organization_id'], short_id.upper())
|
|
1547
1547
|
if (
|
|
1548
1548
|
task is None
|
|
1549
|
-
or (task['chain_id'] or task['id']) != chain['
|
|
1549
|
+
or (task['chain_id'] or task['id']) != chain['root_ticket_id']
|
|
1550
1550
|
or task['status'] == 'closed'
|
|
1551
1551
|
):
|
|
1552
1552
|
continue
|
|
@@ -1710,11 +1710,6 @@ async def finish_harness_runner(
|
|
|
1710
1710
|
response_model=list[tasks_api.AgentTaskEventResponse],
|
|
1711
1711
|
name='list_harness_ticket_events',
|
|
1712
1712
|
)
|
|
1713
|
-
@harness_router.get(
|
|
1714
|
-
'/tasks/{short_id}/events',
|
|
1715
|
-
response_model=list[tasks_api.AgentTaskEventResponse],
|
|
1716
|
-
deprecated=True,
|
|
1717
|
-
)
|
|
1718
1713
|
async def list_harness_task_events(
|
|
1719
1714
|
short_id: str,
|
|
1720
1715
|
caller: harness_auth.AgentCaller,
|
|
@@ -1805,13 +1800,17 @@ async def read_harness_ticket_history(
|
|
|
1805
1800
|
caller: harness_auth.AgentCaller,
|
|
1806
1801
|
db: graph.Pool,
|
|
1807
1802
|
store: tickets.Store,
|
|
1803
|
+
max_seq: typing.Annotated[int | None, fastapi.Query(ge=0)] = None,
|
|
1808
1804
|
) -> TicketHistory:
|
|
1809
1805
|
"""Return the history of a ticket of the chain, for a new session.
|
|
1810
1806
|
|
|
1811
1807
|
A new session reads events only after ``last_seq``, so it reads
|
|
1812
|
-
what happened before here
|
|
1813
|
-
|
|
1814
|
-
|
|
1808
|
+
what happened before here. It sends ``last_seq`` as ``max_seq``, so
|
|
1809
|
+
a comment written after the session opened is not here as well as
|
|
1810
|
+
in the events. The history has comments (human turns), resolved
|
|
1811
|
+
requests, and the status and outcome of prerequisite tickets and of
|
|
1812
|
+
the tickets that it delegated (also after a move to another
|
|
1813
|
+
parent), oldest first. When the text is larger
|
|
1815
1814
|
than :data:`MAX_HISTORY_BYTES`, the oldest entries are left out
|
|
1816
1815
|
and ``cut`` is their number. ``webhook`` marks untrusted text.
|
|
1817
1816
|
|
|
@@ -1822,8 +1821,10 @@ async def read_harness_ticket_history(
|
|
|
1822
1821
|
|
|
1823
1822
|
"""
|
|
1824
1823
|
task = await _chain_task(caller, short_id, db, store)
|
|
1825
|
-
(turns, requests), relations = await asyncio.gather(
|
|
1826
|
-
store.history(task
|
|
1824
|
+
(turns, requests), relations, delegated = await asyncio.gather(
|
|
1825
|
+
store.history(task, max_seq),
|
|
1826
|
+
store.relations(task),
|
|
1827
|
+
store.delegated(task),
|
|
1827
1828
|
)
|
|
1828
1829
|
webhook = task['origin_kind'] == 'webhook'
|
|
1829
1830
|
entries = [
|
|
@@ -1837,7 +1838,7 @@ async def read_harness_ticket_history(
|
|
|
1837
1838
|
for turn in turns
|
|
1838
1839
|
),
|
|
1839
1840
|
*(_request_entry(row, webhook) for row in requests),
|
|
1840
|
-
*(_linked_entry('child', row) for row in
|
|
1841
|
+
*(_linked_entry('child', row) for row in delegated),
|
|
1841
1842
|
*(_linked_entry('prerequisite', row) for row in relations['requires']),
|
|
1842
1843
|
]
|
|
1843
1844
|
entries.sort(key=lambda entry: entry.at)
|
|
@@ -1849,11 +1850,6 @@ async def read_harness_ticket_history(
|
|
|
1849
1850
|
response_model=AttachedProject,
|
|
1850
1851
|
name='attach_harness_ticket_project',
|
|
1851
1852
|
)
|
|
1852
|
-
@harness_router.put(
|
|
1853
|
-
'/tasks/{short_id}/projects/{project}',
|
|
1854
|
-
response_model=AttachedProject,
|
|
1855
|
-
deprecated=True,
|
|
1856
|
-
)
|
|
1857
1853
|
async def attach_harness_task_project(
|
|
1858
1854
|
short_id: str,
|
|
1859
1855
|
project: str,
|
|
@@ -1908,18 +1904,6 @@ async def attach_harness_task_project(
|
|
|
1908
1904
|
},
|
|
1909
1905
|
name='create_harness_child_ticket',
|
|
1910
1906
|
)
|
|
1911
|
-
@harness_router.post(
|
|
1912
|
-
'/tasks/{short_id}/children',
|
|
1913
|
-
status_code=201,
|
|
1914
|
-
response_model=tasks_api.AgentTaskResponse,
|
|
1915
|
-
responses={
|
|
1916
|
-
200: {
|
|
1917
|
-
'model': tasks_api.AgentTaskResponse,
|
|
1918
|
-
'description': 'A child with this idempotency key exists.',
|
|
1919
|
-
},
|
|
1920
|
-
},
|
|
1921
|
-
deprecated=True,
|
|
1922
|
-
)
|
|
1923
1907
|
async def create_harness_child_task(
|
|
1924
1908
|
short_id: str,
|
|
1925
1909
|
data: ChildTaskCreate,
|
|
@@ -1929,7 +1913,7 @@ async def create_harness_child_task(
|
|
|
1929
1913
|
store: tickets.Store,
|
|
1930
1914
|
runners: harness.Store,
|
|
1931
1915
|
) -> dict[str, typing.Any]:
|
|
1932
|
-
"""Make a child
|
|
1916
|
+
"""Make a child ticket (origin ``ticket``) in the chain of a ticket.
|
|
1933
1917
|
|
|
1934
1918
|
The child agent must be a subagent of the parent's pinned agent
|
|
1935
1919
|
version.
|
|
@@ -2024,7 +2008,7 @@ async def create_harness_child_task(
|
|
|
2024
2008
|
agent_version = int(agent.get('version') or 1)
|
|
2025
2009
|
prompt_version = agent.get('prompt_version')
|
|
2026
2010
|
origin = {
|
|
2027
|
-
'kind': '
|
|
2011
|
+
'kind': 'ticket',
|
|
2028
2012
|
'task_id': origin_id,
|
|
2029
2013
|
'short_id': parent['short_id'],
|
|
2030
2014
|
'agent_id': parent['agent_id'],
|
|
@@ -2039,7 +2023,7 @@ async def create_harness_child_task(
|
|
|
2039
2023
|
service_account_id=service_account_id,
|
|
2040
2024
|
title=data.title,
|
|
2041
2025
|
description=data.description,
|
|
2042
|
-
origin_kind='
|
|
2026
|
+
origin_kind='ticket',
|
|
2043
2027
|
origin_id=origin_id,
|
|
2044
2028
|
origin=origin,
|
|
2045
2029
|
idempotency_key=data.idempotency_key,
|
|
@@ -2071,11 +2055,6 @@ async def create_harness_child_task(
|
|
|
2071
2055
|
response_model=ToolCallVerdict,
|
|
2072
2056
|
name='check_harness_tool_call',
|
|
2073
2057
|
)
|
|
2074
|
-
@harness_router.post(
|
|
2075
|
-
'/tasks/{short_id}/tool-calls/check',
|
|
2076
|
-
response_model=ToolCallVerdict,
|
|
2077
|
-
deprecated=True,
|
|
2078
|
-
)
|
|
2079
2058
|
async def check_harness_tool_call(
|
|
2080
2059
|
short_id: str,
|
|
2081
2060
|
data: ToolCallCheck,
|
|
@@ -219,15 +219,16 @@ organizations_router.include_router(
|
|
|
219
219
|
agents_router,
|
|
220
220
|
prefix='/{org_slug}/agents',
|
|
221
221
|
)
|
|
222
|
-
# ADR 0028: tickets at /tickets, with ticket operation ids
|
|
223
|
-
#
|
|
224
|
-
#
|
|
222
|
+
# ADR 0028: tickets at /tickets, with ticket operation ids. The old
|
|
223
|
+
# /agent-tasks path stays out of the OpenAPI document, so imbi-mcp has no
|
|
224
|
+
# tools with the old names, but a saved scheduled job or script that
|
|
225
|
+
# posts to it keeps working. The release after B removes it.
|
|
225
226
|
# The agent token rules (imbi.api.auth.agent_api) key a route by its
|
|
226
227
|
# endpoint, so both paths share the rule of the path mounted last.
|
|
227
228
|
organizations_router.include_router(
|
|
228
229
|
tickets_router,
|
|
229
230
|
prefix='/{org_slug}/agent-tasks',
|
|
230
|
-
|
|
231
|
+
include_in_schema=False,
|
|
231
232
|
)
|
|
232
233
|
organizations_router.include_router(
|
|
233
234
|
tickets_router,
|
|
@@ -244,13 +245,7 @@ organizations_router.include_router(
|
|
|
244
245
|
)
|
|
245
246
|
# The harness routes take the organization-membership dependency of the
|
|
246
247
|
# task routes, in the variant that also accepts an agent token (ADR
|
|
247
|
-
# 0022), so no route under /tickets
|
|
248
|
-
organizations_router.include_router(
|
|
249
|
-
ticket_harness_router,
|
|
250
|
-
prefix='/{org_slug}/agent-tasks',
|
|
251
|
-
dependencies=[fastapi.Depends(harness_auth.harness_member_org_id)],
|
|
252
|
-
deprecated=True,
|
|
253
|
-
)
|
|
248
|
+
# 0022), so no route under /tickets can skip it.
|
|
254
249
|
organizations_router.include_router(
|
|
255
250
|
ticket_harness_router,
|
|
256
251
|
prefix='/{org_slug}/tickets',
|
|
@@ -532,19 +527,20 @@ async def get_organization(
|
|
|
532
527
|
|
|
533
528
|
|
|
534
529
|
async def _rename_history(
|
|
535
|
-
execute: graph.CypherExecute, original_slug: str
|
|
536
|
-
) ->
|
|
537
|
-
"""Return ``previous_slugs`` with ``original_slug`` added
|
|
530
|
+
execute: graph.CypherExecute, original_slug: str, org_id: str
|
|
531
|
+
) -> list[str]:
|
|
532
|
+
"""Return ``previous_slugs`` with ``original_slug`` added.
|
|
538
533
|
|
|
539
534
|
Raises:
|
|
540
|
-
HTTPException 404:
|
|
535
|
+
HTTPException 404: The organization ``org_id`` does not have
|
|
536
|
+
``original_slug``.
|
|
541
537
|
|
|
542
538
|
"""
|
|
543
539
|
records = await execute(
|
|
544
|
-
'MATCH (n:Organization {{slug: {original_slug}}})'
|
|
545
|
-
' RETURN n.previous_slugs AS previous_slugs
|
|
546
|
-
{'original_slug': original_slug},
|
|
547
|
-
['previous_slugs'
|
|
540
|
+
'MATCH (n:Organization {{id: {org_id}, slug: {original_slug}}})'
|
|
541
|
+
' RETURN n.previous_slugs AS previous_slugs',
|
|
542
|
+
{'original_slug': original_slug, 'org_id': org_id},
|
|
543
|
+
['previous_slugs'],
|
|
548
544
|
)
|
|
549
545
|
if not records:
|
|
550
546
|
raise fastapi.HTTPException(
|
|
@@ -559,11 +555,12 @@ async def _rename_history(
|
|
|
559
555
|
)
|
|
560
556
|
if original_slug not in prior:
|
|
561
557
|
prior.append(original_slug)
|
|
562
|
-
return prior
|
|
558
|
+
return prior
|
|
563
559
|
|
|
564
560
|
|
|
565
561
|
async def _persist_organization(
|
|
566
562
|
original_slug: str,
|
|
563
|
+
org_id: str,
|
|
567
564
|
org: models.Organization,
|
|
568
565
|
request: fastapi.Request,
|
|
569
566
|
db: graph.Pool,
|
|
@@ -572,6 +569,9 @@ async def _persist_organization(
|
|
|
572
569
|
|
|
573
570
|
Parameters:
|
|
574
571
|
original_slug: The slug that currently identifies the node.
|
|
572
|
+
org_id: The id of the organization the caller read. Every
|
|
573
|
+
match requires it, so a different organization that has
|
|
574
|
+
taken ``original_slug`` since is not changed.
|
|
575
575
|
org: Validated organization model with updated fields.
|
|
576
576
|
db: Graph database connection.
|
|
577
577
|
|
|
@@ -589,17 +589,15 @@ async def _persist_organization(
|
|
|
589
589
|
# gets a fully-formed list parameter and we don't have to ask
|
|
590
590
|
# AGE to do list-concat in Cypher (which is finicky).
|
|
591
591
|
previous_slugs: list[str] | None = None
|
|
592
|
-
org_id = ''
|
|
593
592
|
if org.slug != original_slug:
|
|
594
|
-
previous_slugs
|
|
595
|
-
db.execute, original_slug
|
|
593
|
+
previous_slugs = await _rename_history(
|
|
594
|
+
db.execute, original_slug, org_id
|
|
596
595
|
)
|
|
597
|
-
org_id = org_auth.organization_id(raw_id, original_slug)
|
|
598
596
|
|
|
599
597
|
update_query: typing.LiteralString
|
|
600
598
|
if previous_slugs is not None:
|
|
601
599
|
update_query = (
|
|
602
|
-
'MATCH (n:Organization {{slug: {original_slug}}})'
|
|
600
|
+
'MATCH (n:Organization {{id: {org_id}, slug: {original_slug}}})'
|
|
603
601
|
' SET n.name = {name},'
|
|
604
602
|
' n.slug = {slug},'
|
|
605
603
|
' n.description = {description},'
|
|
@@ -611,7 +609,7 @@ async def _persist_organization(
|
|
|
611
609
|
)
|
|
612
610
|
else:
|
|
613
611
|
update_query = (
|
|
614
|
-
'MATCH (n:Organization {{slug: {original_slug}}})'
|
|
612
|
+
'MATCH (n:Organization {{id: {org_id}, slug: {original_slug}}})'
|
|
615
613
|
' SET n.name = {name},'
|
|
616
614
|
' n.slug = {slug},'
|
|
617
615
|
' n.description = {description},'
|
|
@@ -629,6 +627,7 @@ async def _persist_organization(
|
|
|
629
627
|
'icon': props.get('icon'),
|
|
630
628
|
'tag_formats': props.get('tag_formats', []),
|
|
631
629
|
'updated_at': props['updated_at'],
|
|
630
|
+
'org_id': org_id,
|
|
632
631
|
}
|
|
633
632
|
if previous_slugs is not None:
|
|
634
633
|
params['previous_slugs'] = previous_slugs
|
|
@@ -638,9 +637,11 @@ async def _persist_organization(
|
|
|
638
637
|
conn: psycopg.AsyncConnection[typing.Any],
|
|
639
638
|
) -> list[dict[str, typing.Any]]:
|
|
640
639
|
# Read the history again under the lock: a rename that
|
|
641
|
-
# committed since the first read changed it.
|
|
642
|
-
|
|
643
|
-
|
|
640
|
+
# committed since the first read changed it. The lookup and
|
|
641
|
+
# the SET match the id too: another organization can have
|
|
642
|
+
# taken ``original_slug`` since, and then nothing changes.
|
|
643
|
+
params['previous_slugs'] = await _rename_history(
|
|
644
|
+
execute, original_slug, org_id
|
|
644
645
|
)
|
|
645
646
|
renamed = await execute(update_query, params)
|
|
646
647
|
if renamed:
|
|
@@ -757,7 +758,7 @@ async def patch_organization(
|
|
|
757
758
|
|
|
758
759
|
org.created_at = existing.created_at
|
|
759
760
|
org.updated_at = datetime.datetime.now(datetime.UTC)
|
|
760
|
-
return await _persist_organization(slug, org, request, db)
|
|
761
|
+
return await _persist_organization(slug, existing.id, org, request, db)
|
|
761
762
|
|
|
762
763
|
|
|
763
764
|
@organizations_router.get('/{slug}/members', name='list_organization_members')
|
|
@@ -487,6 +487,7 @@ _STORE_ERRORS = (
|
|
|
487
487
|
tickets.ConcurrencyLimit,
|
|
488
488
|
tickets.EventIdConflict,
|
|
489
489
|
tickets.RequestKeyConflict,
|
|
490
|
+
tickets.TicketHeld,
|
|
490
491
|
)
|
|
491
492
|
|
|
492
493
|
|
|
@@ -512,6 +513,10 @@ def _translate(err: Exception, short_id: str) -> fastapi.HTTPException:
|
|
|
512
513
|
return _conflict(
|
|
513
514
|
'event_id_conflict', 'Another task has an event with this id'
|
|
514
515
|
)
|
|
516
|
+
if isinstance(err, tickets.TicketHeld):
|
|
517
|
+
return _conflict(
|
|
518
|
+
'task_held', f'Task {short_id} is held by a gating prerequisite'
|
|
519
|
+
)
|
|
515
520
|
if isinstance(err, tickets.RequestKeyConflict):
|
|
516
521
|
return _conflict(
|
|
517
522
|
'request_key_conflict',
|
|
@@ -558,7 +563,8 @@ async def open_agent_task_session(
|
|
|
558
563
|
Raises:
|
|
559
564
|
403: The caller is not the service account of the task's agent.
|
|
560
565
|
404: No such task.
|
|
561
|
-
409: ``task_closed``, ``task_cancelled`` (control is cancel),
|
|
566
|
+
409: ``task_closed``, ``task_cancelled`` (control is cancel),
|
|
567
|
+
``task_held`` (a gating prerequisite is open), or
|
|
562
568
|
``concurrency_limit`` (``settings.max_concurrent_tasks``
|
|
563
569
|
other tasks of the agent have an open session).
|
|
564
570
|
|