imbi-api 2.55.0__tar.gz → 2.57.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.57.0}/PKG-INFO +2 -2
- {imbi_api-2.55.0 → imbi_api-2.57.0}/pyproject.toml +2 -2
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/agent_api_routes.py +4 -1
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/seed.py +35 -51
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/agent_usage.py +1 -1
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/agents.py +6 -7
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/harness.py +99 -50
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/organizations.py +27 -36
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/ticket_harness.py +7 -1
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/tickets.py +419 -106
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/workflow_runs.py +2 -2
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/workflows.py +8 -6
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/auth.py +1 -1
- imbi_api-2.57.0/src/imbi/api/harness/schemata.toml +295 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/store.py +25 -27
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/sweeper.py +4 -4
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/tickets/__init__.py +10 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/tickets/log.py +10 -17
- imbi_api-2.57.0/src/imbi/api/tickets/schemata.toml +590 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/tickets/store.py +637 -83
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/runs.py +12 -5
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/runtime_schemata.toml +17 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/store.py +3 -1
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/ticket_trigger.py +9 -9
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_seed.py +65 -4
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_api.py +3 -3
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_task_actions.py +3 -3
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_task_harness.py +27 -23
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_task_relations.py +424 -33
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_tasks.py +68 -60
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_usage.py +5 -17
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agents.py +13 -4
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_harness.py +217 -22
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_harness_egress.py +2 -2
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_harness_secrets.py +1 -1
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_organizations.py +62 -3
- imbi_api-2.57.0/tests/endpoints/test_person_tickets.py +370 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_workflow_run_history.py +2 -2
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_workflow_runs.py +5 -5
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_workflows.py +37 -24
- imbi_api-2.57.0/tests/fixtures/release_b/harness_schemata.toml +337 -0
- imbi_api-2.57.0/tests/fixtures/release_b/tickets_schemata.toml +545 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_clickhouse_project_ids.py +2 -35
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_task_trigger.py +32 -5
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_tickets_rename.py +362 -4
- {imbi_api-2.55.0 → imbi_api-2.57.0}/.gitignore +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/README.md +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/moon.yml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/agent_api.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/backfill_embeddings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/commit_pushed_at_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/deployment_status_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_document_reads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/ai_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/comments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/document_analytics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_deployments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/projects.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/scoring.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/user_activity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/graph_ids.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/maintenance/operations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/maintenance/registry.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/release_promote/service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/user_document_orgs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/src/imbi/api/workflows/tickets.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_comments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_cross_org_reads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_reads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_reads_sql.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_deployments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_deployments_autonomous.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_projects.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_prompt_generative.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_scoring.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- /imbi_api-2.55.0/src/imbi/api/harness/schemata.toml → /imbi_api-2.57.0/tests/fixtures/release_a/harness_schemata.toml +0 -0
- /imbi_api-2.55.0/src/imbi/api/tickets/schemata.toml → /imbi_api-2.57.0/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/secret_support.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/support.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_app.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_backfill_embeddings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_commit_pushed_at_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_cves.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_deployment_status_repair.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_drift.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_graph_ids.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_init.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_installer.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_models.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_release_promote_service.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_settings.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.0}/tests/test_workflow_reconcile.py +0 -0
- {imbi_api-2.55.0 → imbi_api-2.57.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.57.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.57.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.57.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.57.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,14 @@ 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
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/status',
|
|
268
|
+
'PUT /organizations/{org_slug}/tickets/{short_id}/parent',
|
|
266
269
|
'PUT /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
267
270
|
'PUT /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
268
271
|
# 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,
|
|
@@ -927,16 +927,15 @@ async def _validate_tools(
|
|
|
927
927
|
async def _validate_subagents(
|
|
928
928
|
db: graph.Pool,
|
|
929
929
|
org_slug: str,
|
|
930
|
-
agent_id: str | None,
|
|
931
930
|
subagents: list[models.AgentSubagent],
|
|
932
931
|
) -> None:
|
|
933
|
-
"""Raise 422 when a subagent is
|
|
932
|
+
"""Raise 422 when a subagent is not in the org.
|
|
934
933
|
|
|
935
|
-
|
|
934
|
+
An agent can be its own subagent, and cycles are allowed: the
|
|
935
|
+
harness caps the delegation depth at 2, so a child ticket never
|
|
936
|
+
starts another child.
|
|
936
937
|
"""
|
|
937
938
|
ids = [item.agent_id for item in subagents]
|
|
938
|
-
if agent_id is not None and agent_id in ids:
|
|
939
|
-
raise _unprocessable('An agent cannot be its own subagent')
|
|
940
939
|
found = await _find_subagents(db, org_slug, ids)
|
|
941
940
|
missing = sorted(set(ids) - set(found))
|
|
942
941
|
if missing:
|
|
@@ -1178,7 +1177,7 @@ async def _apply(
|
|
|
1178
1177
|
if target.tools != current.tools:
|
|
1179
1178
|
await _validate_tools(db, org_slug, target.tools)
|
|
1180
1179
|
if target.subagents != current.subagents:
|
|
1181
|
-
await _validate_subagents(db, org_slug,
|
|
1180
|
+
await _validate_subagents(db, org_slug, target.subagents)
|
|
1182
1181
|
n = int(existing['_latest']) + 1
|
|
1183
1182
|
# The version is written first. Its unique index stops a
|
|
1184
1183
|
# concurrent save before that save changes the agent.
|
|
@@ -1324,7 +1323,7 @@ async def create_agent(
|
|
|
1324
1323
|
await _check_model_teams(db, org_slug, snapshot, team_id)
|
|
1325
1324
|
await _validate_tag_slugs(db, org_slug, snapshot.tags)
|
|
1326
1325
|
await _validate_tools(db, org_slug, snapshot.tools)
|
|
1327
|
-
await _validate_subagents(db, org_slug,
|
|
1326
|
+
await _validate_subagents(db, org_slug, snapshot.subagents)
|
|
1328
1327
|
await _assert_slug_free(db, org_slug, data.slug)
|
|
1329
1328
|
|
|
1330
1329
|
now = _now()
|
|
@@ -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
|
|
@@ -761,7 +761,13 @@ async def _identity(
|
|
|
761
761
|
}
|
|
762
762
|
),
|
|
763
763
|
'repositories': await _repositories(db, store, task, settings),
|
|
764
|
-
|
|
764
|
+
# Delegation depth is capped at 2: a child ticket cannot
|
|
765
|
+
# start children, so it gets no subagents.
|
|
766
|
+
'subagents': (
|
|
767
|
+
[]
|
|
768
|
+
if task['origin_kind'] in ticket_store.CHILD_ORIGIN_KINDS
|
|
769
|
+
else await _subagents(db, bundle.snapshot)
|
|
770
|
+
),
|
|
765
771
|
}
|
|
766
772
|
)
|
|
767
773
|
|
|
@@ -870,7 +876,7 @@ async def _claim(
|
|
|
870
876
|
raise _NoServiceAccount(task['short_id'])
|
|
871
877
|
org_slugs = await organization_slugs(db, [task['organization_id']])
|
|
872
878
|
grant = tokens.AgentGrant(
|
|
873
|
-
chain_id=chain['
|
|
879
|
+
chain_id=chain['root_ticket_id'],
|
|
874
880
|
attempt=chain['attempt'],
|
|
875
881
|
runner_id=runner['id'],
|
|
876
882
|
organization_id=task['organization_id'],
|
|
@@ -897,7 +903,7 @@ async def _claim(
|
|
|
897
903
|
else [harness_egress.Grant.model_validate(g) for g in chain['egress']]
|
|
898
904
|
)
|
|
899
905
|
return Claim(
|
|
900
|
-
chain_id=chain['
|
|
906
|
+
chain_id=chain['root_ticket_id'],
|
|
901
907
|
attempt=chain['attempt'],
|
|
902
908
|
organization_slug=org_slug,
|
|
903
909
|
task=tasks_api.AgentTaskResponse.model_validate(task),
|
|
@@ -933,7 +939,7 @@ def _proxy_token(
|
|
|
933
939
|
return None
|
|
934
940
|
token = tokens.mint_proxy_token(
|
|
935
941
|
secret,
|
|
936
|
-
chain_id=chain['
|
|
942
|
+
chain_id=chain['root_ticket_id'],
|
|
937
943
|
attempt=chain['attempt'],
|
|
938
944
|
pod=pod,
|
|
939
945
|
hosts=hosts,
|
|
@@ -975,8 +981,8 @@ async def _root_egress(
|
|
|
975
981
|
the list for the claims of its child tasks.
|
|
976
982
|
"""
|
|
977
983
|
root = task
|
|
978
|
-
if task['id'] != chain['
|
|
979
|
-
root = await store.task_agent(chain['
|
|
984
|
+
if task['id'] != chain['root_ticket_id']:
|
|
985
|
+
root = await store.task_agent(chain['root_ticket_id']) or task
|
|
980
986
|
slugs = await _egress_slugs(db, root['agent_id'], root['agent_version'])
|
|
981
987
|
grants, pending = harness_egress.grants(
|
|
982
988
|
await store.egress_destinations(), slugs, task['organization_id']
|
|
@@ -1535,7 +1541,7 @@ async def _renew_api_tokens(
|
|
|
1535
1541
|
):
|
|
1536
1542
|
return {}
|
|
1537
1543
|
grant = tokens.AgentGrant(
|
|
1538
|
-
chain_id=chain['
|
|
1544
|
+
chain_id=chain['root_ticket_id'],
|
|
1539
1545
|
attempt=chain['attempt'],
|
|
1540
1546
|
runner_id=runner['id'],
|
|
1541
1547
|
organization_id=chain['organization_id'],
|
|
@@ -1546,7 +1552,7 @@ async def _renew_api_tokens(
|
|
|
1546
1552
|
task = await tasks.get(chain['organization_id'], short_id.upper())
|
|
1547
1553
|
if (
|
|
1548
1554
|
task is None
|
|
1549
|
-
or (task['chain_id'] or task['id']) != chain['
|
|
1555
|
+
or (task['chain_id'] or task['id']) != chain['root_ticket_id']
|
|
1550
1556
|
or task['status'] == 'closed'
|
|
1551
1557
|
):
|
|
1552
1558
|
continue
|
|
@@ -1710,11 +1716,6 @@ async def finish_harness_runner(
|
|
|
1710
1716
|
response_model=list[tasks_api.AgentTaskEventResponse],
|
|
1711
1717
|
name='list_harness_ticket_events',
|
|
1712
1718
|
)
|
|
1713
|
-
@harness_router.get(
|
|
1714
|
-
'/tasks/{short_id}/events',
|
|
1715
|
-
response_model=list[tasks_api.AgentTaskEventResponse],
|
|
1716
|
-
deprecated=True,
|
|
1717
|
-
)
|
|
1718
1719
|
async def list_harness_task_events(
|
|
1719
1720
|
short_id: str,
|
|
1720
1721
|
caller: harness_auth.AgentCaller,
|
|
@@ -1805,13 +1806,17 @@ async def read_harness_ticket_history(
|
|
|
1805
1806
|
caller: harness_auth.AgentCaller,
|
|
1806
1807
|
db: graph.Pool,
|
|
1807
1808
|
store: tickets.Store,
|
|
1809
|
+
max_seq: typing.Annotated[int | None, fastapi.Query(ge=0)] = None,
|
|
1808
1810
|
) -> TicketHistory:
|
|
1809
1811
|
"""Return the history of a ticket of the chain, for a new session.
|
|
1810
1812
|
|
|
1811
1813
|
A new session reads events only after ``last_seq``, so it reads
|
|
1812
|
-
what happened before here
|
|
1813
|
-
|
|
1814
|
-
|
|
1814
|
+
what happened before here. It sends ``last_seq`` as ``max_seq``, so
|
|
1815
|
+
a comment written after the session opened is not here as well as
|
|
1816
|
+
in the events. The history has comments (human turns), resolved
|
|
1817
|
+
requests, and the status and outcome of prerequisite tickets and of
|
|
1818
|
+
the tickets that it delegated (also after a move to another
|
|
1819
|
+
parent), oldest first. When the text is larger
|
|
1815
1820
|
than :data:`MAX_HISTORY_BYTES`, the oldest entries are left out
|
|
1816
1821
|
and ``cut`` is their number. ``webhook`` marks untrusted text.
|
|
1817
1822
|
|
|
@@ -1822,8 +1827,10 @@ async def read_harness_ticket_history(
|
|
|
1822
1827
|
|
|
1823
1828
|
"""
|
|
1824
1829
|
task = await _chain_task(caller, short_id, db, store)
|
|
1825
|
-
(turns, requests), relations = await asyncio.gather(
|
|
1826
|
-
store.history(task
|
|
1830
|
+
(turns, requests), relations, delegated = await asyncio.gather(
|
|
1831
|
+
store.history(task, max_seq),
|
|
1832
|
+
store.relations(task),
|
|
1833
|
+
store.delegated(task),
|
|
1827
1834
|
)
|
|
1828
1835
|
webhook = task['origin_kind'] == 'webhook'
|
|
1829
1836
|
entries = [
|
|
@@ -1837,7 +1844,7 @@ async def read_harness_ticket_history(
|
|
|
1837
1844
|
for turn in turns
|
|
1838
1845
|
),
|
|
1839
1846
|
*(_request_entry(row, webhook) for row in requests),
|
|
1840
|
-
*(_linked_entry('child', row) for row in
|
|
1847
|
+
*(_linked_entry('child', row) for row in delegated),
|
|
1841
1848
|
*(_linked_entry('prerequisite', row) for row in relations['requires']),
|
|
1842
1849
|
]
|
|
1843
1850
|
entries.sort(key=lambda entry: entry.at)
|
|
@@ -1849,11 +1856,6 @@ async def read_harness_ticket_history(
|
|
|
1849
1856
|
response_model=AttachedProject,
|
|
1850
1857
|
name='attach_harness_ticket_project',
|
|
1851
1858
|
)
|
|
1852
|
-
@harness_router.put(
|
|
1853
|
-
'/tasks/{short_id}/projects/{project}',
|
|
1854
|
-
response_model=AttachedProject,
|
|
1855
|
-
deprecated=True,
|
|
1856
|
-
)
|
|
1857
1859
|
async def attach_harness_task_project(
|
|
1858
1860
|
short_id: str,
|
|
1859
1861
|
project: str,
|
|
@@ -1896,6 +1898,63 @@ async def attach_harness_task_project(
|
|
|
1896
1898
|
return {'project_id': project_id, 'project_slug': slug}
|
|
1897
1899
|
|
|
1898
1900
|
|
|
1901
|
+
@harness_router.delete(
|
|
1902
|
+
'/tickets/{short_id}/projects/{project}',
|
|
1903
|
+
response_model=AttachedProject,
|
|
1904
|
+
name='detach_harness_ticket_project',
|
|
1905
|
+
)
|
|
1906
|
+
async def detach_harness_task_project(
|
|
1907
|
+
short_id: str,
|
|
1908
|
+
project: str,
|
|
1909
|
+
caller: harness_auth.AgentCaller,
|
|
1910
|
+
db: graph.Pool,
|
|
1911
|
+
store: tickets.Store,
|
|
1912
|
+
) -> dict[str, str]:
|
|
1913
|
+
"""Remove a project of the org from a task of the chain.
|
|
1914
|
+
|
|
1915
|
+
``project`` is a project id or slug. The task gets a
|
|
1916
|
+
``project.dissociated`` event, with the agent as the actor. A secret
|
|
1917
|
+
resolution reads the task's projects when it is made, so the next
|
|
1918
|
+
one no longer covers the project. When the project is not
|
|
1919
|
+
associated, nothing changes.
|
|
1920
|
+
|
|
1921
|
+
The task keeps at least one project: a grant that lists projects
|
|
1922
|
+
never matches a task with none, so its next ``model_inference`` key
|
|
1923
|
+
renewal would fail. Attach the next project first.
|
|
1924
|
+
|
|
1925
|
+
Raises:
|
|
1926
|
+
401: Not a current agent token.
|
|
1927
|
+
403: Another chain or another agent.
|
|
1928
|
+
404: No such task.
|
|
1929
|
+
409: ``task_closed``, ``task_archived``, or ``last_project``
|
|
1930
|
+
(it is the task's only project).
|
|
1931
|
+
422: The project is not in the org, or the slug is not unique.
|
|
1932
|
+
|
|
1933
|
+
"""
|
|
1934
|
+
task = await _chain_task(caller, short_id, db, store)
|
|
1935
|
+
if task['status'] == 'closed':
|
|
1936
|
+
raise _conflict('task_closed', f'Task {task["short_id"]} is closed')
|
|
1937
|
+
org_id = task['organization_id']
|
|
1938
|
+
org_slug = (await organization_slugs(db, [org_id])).get(org_id, '')
|
|
1939
|
+
[(project_id, slug)] = await tasks_api.project_slugs(
|
|
1940
|
+
db, org_slug, [project]
|
|
1941
|
+
)
|
|
1942
|
+
if [p['project_id'] for p in task['projects']] == [project_id]:
|
|
1943
|
+
raise _conflict(
|
|
1944
|
+
'last_project',
|
|
1945
|
+
f'Project {slug} is the only project of task '
|
|
1946
|
+
f'{task["short_id"]}; attach the next project first',
|
|
1947
|
+
)
|
|
1948
|
+
with tasks_api.relation_errors():
|
|
1949
|
+
await store.dissociate_project(
|
|
1950
|
+
org_id,
|
|
1951
|
+
task['short_id'],
|
|
1952
|
+
project_id,
|
|
1953
|
+
tickets.Actor('agent', task['agent_id'], 'harness'),
|
|
1954
|
+
)
|
|
1955
|
+
return {'project_id': project_id, 'project_slug': slug}
|
|
1956
|
+
|
|
1957
|
+
|
|
1899
1958
|
@harness_router.post(
|
|
1900
1959
|
'/tickets/{short_id}/children',
|
|
1901
1960
|
status_code=201,
|
|
@@ -1908,18 +1967,6 @@ async def attach_harness_task_project(
|
|
|
1908
1967
|
},
|
|
1909
1968
|
name='create_harness_child_ticket',
|
|
1910
1969
|
)
|
|
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
1970
|
async def create_harness_child_task(
|
|
1924
1971
|
short_id: str,
|
|
1925
1972
|
data: ChildTaskCreate,
|
|
@@ -1929,7 +1976,7 @@ async def create_harness_child_task(
|
|
|
1929
1976
|
store: tickets.Store,
|
|
1930
1977
|
runners: harness.Store,
|
|
1931
1978
|
) -> dict[str, typing.Any]:
|
|
1932
|
-
"""Make a child
|
|
1979
|
+
"""Make a child ticket (origin ``ticket``) in the chain of a ticket.
|
|
1933
1980
|
|
|
1934
1981
|
The child agent must be a subagent of the parent's pinned agent
|
|
1935
1982
|
version.
|
|
@@ -1940,11 +1987,12 @@ async def create_harness_child_task(
|
|
|
1940
1987
|
|
|
1941
1988
|
Raises:
|
|
1942
1989
|
401: Not a current agent token.
|
|
1943
|
-
403: Another chain or another agent, ``
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
the parent
|
|
1947
|
-
|
|
1990
|
+
403: Another chain or another agent, ``delegation_depth`` (the
|
|
1991
|
+
parent is itself a child ticket: delegation depth is capped
|
|
1992
|
+
at 2), ``subagent_forbidden`` (the child agent is not in the
|
|
1993
|
+
``subagents`` of the parent's pinned agent version), or
|
|
1994
|
+
``owner_forbidden`` (the owner of the parent can no longer
|
|
1995
|
+
make agent tasks in the organization).
|
|
1948
1996
|
404: No such task.
|
|
1949
1997
|
409: The parent is closed, the child agent is disabled, or the
|
|
1950
1998
|
runner of the chain does not have a label that the child
|
|
@@ -1957,6 +2005,12 @@ async def create_harness_child_task(
|
|
|
1957
2005
|
parent = await _chain_task(caller, short_id, db, store)
|
|
1958
2006
|
if parent['status'] == 'closed':
|
|
1959
2007
|
raise _conflict('task_closed', f'Task {parent["short_id"]} is closed')
|
|
2008
|
+
if parent['origin_kind'] in ticket_store.CHILD_ORIGIN_KINDS:
|
|
2009
|
+
raise autonomous.forbidden(
|
|
2010
|
+
'delegation_depth',
|
|
2011
|
+
f'Task {parent["short_id"]} is a child ticket; delegation '
|
|
2012
|
+
'depth is capped at 2.',
|
|
2013
|
+
)
|
|
1960
2014
|
org_slugs = await organization_slugs(db, [parent['organization_id']])
|
|
1961
2015
|
if not await tasks_api.may_create(
|
|
1962
2016
|
db, org_slugs.get(parent['organization_id'], ''), parent['owner']
|
|
@@ -2024,7 +2078,7 @@ async def create_harness_child_task(
|
|
|
2024
2078
|
agent_version = int(agent.get('version') or 1)
|
|
2025
2079
|
prompt_version = agent.get('prompt_version')
|
|
2026
2080
|
origin = {
|
|
2027
|
-
'kind': '
|
|
2081
|
+
'kind': 'ticket',
|
|
2028
2082
|
'task_id': origin_id,
|
|
2029
2083
|
'short_id': parent['short_id'],
|
|
2030
2084
|
'agent_id': parent['agent_id'],
|
|
@@ -2039,7 +2093,7 @@ async def create_harness_child_task(
|
|
|
2039
2093
|
service_account_id=service_account_id,
|
|
2040
2094
|
title=data.title,
|
|
2041
2095
|
description=data.description,
|
|
2042
|
-
origin_kind='
|
|
2096
|
+
origin_kind='ticket',
|
|
2043
2097
|
origin_id=origin_id,
|
|
2044
2098
|
origin=origin,
|
|
2045
2099
|
idempotency_key=data.idempotency_key,
|
|
@@ -2071,11 +2125,6 @@ async def create_harness_child_task(
|
|
|
2071
2125
|
response_model=ToolCallVerdict,
|
|
2072
2126
|
name='check_harness_tool_call',
|
|
2073
2127
|
)
|
|
2074
|
-
@harness_router.post(
|
|
2075
|
-
'/tasks/{short_id}/tool-calls/check',
|
|
2076
|
-
response_model=ToolCallVerdict,
|
|
2077
|
-
deprecated=True,
|
|
2078
|
-
)
|
|
2079
2128
|
async def check_harness_tool_call(
|
|
2080
2129
|
short_id: str,
|
|
2081
2130
|
data: ToolCallCheck,
|