The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Merge origin/main into feat/unified-gateway-runtime
Teknium2cd0ec8686ba
diff --cc apps/shared/src/gateway-contract.generated.tsindex 65c8da274b3,08f069789b1..b09e6fa6b92--- a/apps/shared/src/gateway-contract.generated.ts+++ b/apps/shared/src/gateway-contract.generated.ts@@@ -4447,707 -4441,23 +4447,724 @@@ export interface OnboardingCatalogPlugiapp_state: CatalogAppStatesentence: string}+ export interface PluginCatalogLookupParams {+ profile?: string | null+ name: string+ }+ /** ``found`` carries ``entry``. ``unknown`` covers a name the catalog doesn't list and one it removed; ``unavailable`` means neither the live catalog nor the in-tree fallback could be read. */+ export interface PluginCatalogLookupResult {+ status: PluginCatalogLookupStatus+ entry?: PluginCatalogLookupEntry | null+ }+ export type PluginCatalogLookupStatus = 'found' | 'invalid_name' | 'unknown' | 'unavailable'+ /** The fields an install needs: the same ones the embedded catalog picker posts on a pick. */+ export interface PluginCatalogLookupEntry {+ name: string+ repo: string+ sha: string+ subdir: string+ }+export interface CanonicalShellExecParams {+ session_id: string+ command: string+ profile?: string | null+}+export interface PromptReceiptParams {+ session_id: string+ admission_id: string+ include_result?: boolean | null+}+/** ``result`` / ``usage``: the structured turn result committed at settlement, only with ``include_result`` on a terminal admission that saved one. */+export interface PromptReceiptResult {+ admission_id: string+ ref: CanonicalSessionRef+ sequence: number+ status: 'queued' | 'started' | 'unknown' | 'terminal'+ outcome: string | null+ authority_epoch: number+ execution_generation: number | null+ result?: unknown | null+ usage?: Record<string, unknown> | null+}+export interface CanonicalSessionRef {+ profile_id: string+ session_id: string+}+export interface PromptCancelParams {+ session_id: string+ admission_id: string+}+/** ``gateway/session_contract.py::AdmissionReceipt`` as ``dataclasses.asdict`` sends it. */+export interface AdmissionStatus {+ admission_id: string+ ref: CanonicalSessionRef+ sequence: number+ status: 'queued' | 'started' | 'unknown' | 'terminal'+ outcome: string | null+ authority_epoch: number+ execution_generation: number | null+}+export interface PromptResolveUnknownParams {+ session_id: string+ admission_id: string+ execution_generation: number+}+/** ``operation`` + ``payload`` are validated by ``hermes_state_mutations.validate_action``; ``expected_generation`` is required for delete/rewind/reset/branch/model/compress/reasoning/workspace. ``reasoning`` (``{effort}``) and ``workspace`` (``{cwd}``, refused ``session_busy`` mid-turn) rewrite the session's frozen policy: session-scope ``/reasoning`` and Desktop's Move to project. */+export interface SessionMutateParams {+ session_id: string+ request_id: string+ expected_revision: number+ operation: string+ payload: Record<string, unknown>+ expected_generation?: number | null+}+/** The committed mutation receipt plus the operation's projection (``title``, ``archived``, ``branched_session_id``, compress ``status``/``lines``, …). ``revision`` is absent only on a read-only compress preview. */+export interface SessionMutateResult {+ session_id: string+ operation: string+ revision?: number | null+ [key: string]: unknown+}+/** Exactly one of ``filters`` (``SessionDB.prune_sessions`` keyword filters, as ``hermes sessions prune`` builds them) or ``never_active_days`` (``--never-active``). */+export interface SessionPruneParams {+ filters?: Record<string, unknown> | null+ never_active_days?: number | null+}+export interface SessionPruneResult {+ deleted: number+ routing_deleted?: number | null+ skipped?: number | null+}+export interface CanonicalSessionInfoParams {+ session_id: string+}+/** ``gateway/session_local_inventory.py::snapshot_info``: ``local_session_info`` + the inventory. */+export interface CanonicalSessionInfo {+ provider?: string | null+ tools?: Record<string, string[]> | null+ skills?: Record<string, string[]> | null+ mcp_servers?: McpServerStatus[] | null+ version?: string | null+ release_date?: string | null+ update_behind?: unknown | null+ update_command?: string | null+ branch?: string | null+ project?: ProjectRef | null+ system_prompt?: string | null+ context_length?: number | null+ enabled_toolsets?: string[] | null+ tool_availability?: Record<string, unknown> | null+ tool_availability_warnings?: string[] | null+ browser_backend_notice?: string | null+ source: string+ model?: string | null+ lazy: boolean+ profile_id: string+ desktop_protocol: string+ profile_name: string+ cwd?: string | null+ launch_request?: Record<string, unknown> | null+ reasoning_effort?: string | null+ reasoning_effort_wire?: string | null+ service_tier?: string | null+ fast?: boolean | null+ title?: string | null+ started_at?: number | null+ last_active_at?: number | null+ yolo?: boolean | null+ api_mode?: string | null+ tool_count?: number | null+ credential_hint?: string | null+ [key: string]: unknown+}+export interface SessionStatsParams {+ session_id: string+}+/** ``gateway/session_usage.py::usage_stats``: session-cumulative counters (the agent's ``session_*``), context / compressor figures, rolling latency and throughput, rate-limit state, live subagents. */+export interface SessionStats {+ input_tokens: number+ output_tokens: number+ cache_read_tokens: number+ cache_write_tokens: number+ prompt_tokens: number+ completion_tokens: number+ total_tokens: number+ reasoning_tokens: number+ api_calls: number+ last_prompt_tokens: number+ context_tokens: number+ context_length?: number | null+ config_context_length?: number | null+ context_source?: string | null+ compression_count: number+ avg_latency_s?: number | null+ tokens_per_s?: number | null+ last_turn_tokens: number+ rate_limit?: Record<string, unknown> | null+ active_subagents: number+ model: string+ provider: string+ fallback_model?: string | null+}+export interface SessionAutomationParams {+ session_id: string+ kind: 'goal' | 'loop' | 'heartbeat'+ call: string+ args?: unknown[] | null+ kwargs?: Record<string, unknown> | null+}+/** ``gateway/session_viewer_automation.py``: the manager's persisted state after the call (its own JSON, ``null`` when none) and the call's value, or the refusal main's manager raised. */+export interface SessionAutomationResult {+ state: string | null+ value?: unknown | null+ error?: Record<string, string> | null+}+export interface SessionDetachParams {+ session_id: string+ subscription_id: string+ end_reason?: string | null+}+export interface SessionDetachResult {+ session_id: string+ subscription_id: string+ detached: boolean+}+export type RuntimeDescribeParams = Record<string, never>+export interface RuntimeDescribeResult {+ instance_id: string+ profile_id: string+ authority_epoch: number+ capabilities: string[]+ session_create: SessionCreateDescriptor+ skin?: SkinPayload | null+}+export interface SessionCreateDescriptor {+ sources: string[]+ parameters: string[]+}+/** ``tui_gateway/change_watcher.py::resolve_skin`` — the resolved active skin (``HermesSkin``). ``{}`` when the skin engine failed to load. Colour maps are token → colour string. */+export interface SkinPayload {+ name?: string+ description?: string+ colors?: Record<string, string>+ light_colors?: Record<string, string>+ dark_colors?: Record<string, string>+ branding?: Record<string, string>+ banner_logo?: string+ banner_hero?: string+ tool_prefix?: string+ help_header?: string+ [key: string]: unknown+}+export interface ClarifyRespondParams {+ session_id: string+ execution_generation: number+ prompt_id: string+ answer: string+}+export interface PromptResponseResult {+ status: 'resolved' | 'already_resolved'+ prompt_id: string+}+export interface CronRunParams {+ job_id: string+ request_id: string+ extra_prompt: string | null+}+export interface CronSubmitResult {+ session_id: string+ admission_id: string+}+/** ``result`` is the ``run_job`` tuple once terminal; ``recover`` adds the frozen ``job`` and answers ``status='missing'`` for a firing that was never admitted. */+export interface CronStatusResult {+ status: string+ result: unknown[] | null+ job_flags?: Record<string, unknown> | null+ job?: Record<string, unknown> | null+ [key: string]: unknown+}+export interface CronAdmissionParams {+ session_id: string+ admission_id: string+}+export interface CronCancelResult {+ ok: boolean+}+export interface KanbanRunParams {+ board: string+ task_id: string+ run_id: number+ claim_lock: string+ db?: string | null+}+export interface KanbanRunResult {+ session_id: string+ receipt: AdmissionStatus+}+export interface A2aForwardParams {+ agent: string+ tenant: string+ peer: string+ context_id: string+ input_id: string+ text: string+}+export interface A2aForwardResult {+ admission_id: string+ ref: CanonicalSessionRef+ sequence: number+ status: 'queued' | 'started' | 'unknown' | 'terminal'+ outcome: string | null+ authority_epoch: number+ execution_generation: number | null+ session_id: string+ result: unknown | null+}+export interface WorkerRegisterParams {+ profile_id: string+ session_id: string+ execution_id: string+ generation: number+ pid: number+ birth: number+ secret: string+ kind: string+}+/** A ``worker_executions`` row without its adoption digest. */+export interface WorkerExecution {+ execution_id: string+ session_id: string+ kind: string+ owner_epoch: number+ generation: number+ status: string+ last_sequence: number+ [key: string]: unknown+}+/** The producer claim every worker verb proves (``gateway/session_worker.py::_SCOPE``). */+export interface WorkerScopeParams {+ profile_id: string+ session_id: string+ execution_id: string+ generation: number+ pid: number+ birth: number+ secret: string+}+export interface WorkerPersistParams {+ profile_id: string+ session_id: string+ execution_id: string+ generation: number+ pid: number+ birth: number+ secret: string+ epoch: number+ sequence: number+ operation: string+ payload: Record<string, unknown>+}+/** The operation's durable receipt (``message_id`` for an append, delegation results, …). */+export type WorkerPersistResult = Record<string, unknown>+export interface GroupsAttachmentUploadParams {+ profile?: string | null+ room_id: string+ upload_id: string+ kind: string+ name: string+ mime: string+ data_base64: string+}+export interface RoomAttachment {+ attachment_id: string+ kind: string+ name: string+ size: number+ mime: string+ sha256: string+ state: string+ created_at: number+ idempotent: boolean+ event_id?: string | null+ [key: string]: unknown+}+export interface GroupsAttachmentDownloadParams {+ profile?: string | null+ room_id: string+ event_id: string+ attachment_id: string+}+export interface RoomAttachmentBytes {+ attachment_id: string+ kind: string+ name: string+ size: number+ mime: string+ sha256: string+ state: string+ created_at: number+ idempotent: boolean+ event_id?: string | null+ data_base64: string+ [key: string]: unknown+}+export interface GroupsDiscardParams {+ profile?: string | null+ room_id: string+ member_id: string+ task_id: string+ execution_generation: number+}+export interface GroupsDiscardResult {+ discarded?: boolean+ task: RoomTaskReceipt+}+export interface CanonicalCreateParams {+ profile?: string | null+ request_id?: string | null+ source?: 'cli' | 'tui' | 'gui' | 'acp' | 'tool' | 'oneshot'+ cwd?: string | null+ row_cwd?: string | null+ model?: string | null+ provider?: string | null+ base_url?: string | null+ api_key?: string | null+ toolsets?: string[] | null+ reasoning?: string | null+ max_turns?: number | string | null+ ignore_rules?: boolean+ yolo?: boolean+ safe_mode?: boolean+ ignore_user_config?: boolean+ skills?: string[] | null+ checkpoints?: boolean+ accept_hooks?: boolean+ pass_session_id?: boolean+ editor?: Record<string, unknown> | null+ title?: string | null+ hidden?: boolean+ follow_profile_config?: boolean | null+ service_tier?: string | null+ cwd_explicit?: boolean | null+ run_budget?: number | null+ verbose?: boolean+}+export interface CanonicalSnapshot {+ session_id: string+ stored_session_id: string+ messages: TranscriptMessage[]+ display_messages?: TranscriptMessage[] | null+ message_count: number+ running: boolean+ authority_epoch: number+ replay_epoch: string+ last_sequence: number+ subscription_id: string+ revision: number+ execution_generation: number+ pending: CanonicalPendingAdmission[]+ prompts: CanonicalPendingPrompt[]+ info: CanonicalSnapshotInfo+}+export interface CanonicalPendingAdmission {+ admission_id: string+ ref: CanonicalSessionRef+ sequence: number+ status: 'queued' | 'started' | 'unknown' | 'terminal'+ outcome: string | null+ authority_epoch: number+ execution_generation: number | null+ input_id: string+ text: string+}+export interface CanonicalPendingPrompt {+ kind: 'approval' | 'clarify'+ prompt_id: string+ execution_generation: number+ choices: string[]+ command?: string | null+ description?: string | null+ edit?: Record<string, unknown> | null+ question?: string | null+ multi_select?: boolean | null+ timeout_s?: number | null+}+export interface CanonicalSnapshotInfo {+ provider?: string | null+ tools?: Record<string, string[]> | null+ skills?: Record<string, string[]> | null+ mcp_servers?: McpServerStatus[] | null+ version?: string | null+ release_date?: string | null+ update_behind?: unknown | null+ update_command?: string | null+ branch?: string | null+ project?: ProjectRef | null+ system_prompt?: string | null+ context_length?: number | null+ enabled_toolsets?: string[] | null+ tool_availability?: Record<string, unknown> | null+ tool_availability_warnings?: string[] | null+ browser_backend_notice?: string | null+ desktop_protocol: 'hermes-gateway-v1'+ source?: string | null+ model?: string | null+ lazy?: boolean | null+ profile_id?: string | null+ profile_name?: string | null+ cwd?: string | null+ launch_request?: Record<string, unknown> | null+ reasoning_effort?: string | null+ reasoning_effort_wire?: string | null+ service_tier?: string | null+ fast?: boolean | null+ title?: string | null+ started_at?: number | null+ last_active_at?: number | null+ yolo?: boolean | null+ api_mode?: string | null+ tool_count?: number | null+ credential_hint?: string | null+}+export interface CanonicalResumeParams {+ profile?: string | null+ session_id?: string+ title?: string | null+ latest?: 'cli' | 'tui' | null+ workspace?: string | null+ source?: string | null+ editor?: Record<string, unknown> | null+ api_key?: string | null+ defer_history?: boolean+ omit_messages?: boolean+ cols?: number | null+ display_projection?: boolean+}+export interface CanonicalListParams {+ profile?: string | null+ scope?: 'live' | 'stored'+ limit?: number+ title?: string | null+ include_hidden?: boolean+}+export interface CanonicalListResult {+ sessions: CanonicalSessionListRow[]+ scope: 'stored' | 'live'+}+export interface CanonicalSessionListRow {+ session_id: string+ id: string+ title: string+ source: string | null+ started_at: number | null+ message_count: number+ running: boolean+ model?: string | null+ resolved_id?: string | null+ root_title?: string | null+}+export interface CanonicalControlParams {+ profile?: string | null+ session_id: string+ execution_generation: number+}+export interface CanonicalSessionHandle {+ ref: CanonicalSessionRef+ instance_id: string+ authority_epoch: number+ revision: number+ execution_generation: number+ execution_state: 'idle' | 'running' | 'waiting' | 'unknown' | 'terminal'+}+export interface CanonicalCorrectionParams {+ profile?: string | null+ session_id: string+ execution_generation: number+ text: string+}+export interface CanonicalCorrectionResult {+ status: 'queued' | 'redirected' | 'rejected'+ text: string+ execution_generation: number+ authority_epoch: number+}+export interface CanonicalEventsParams {+ profile?: string | null+ session_id: string+ last_sequence?: number+ last_seen?: number+ replay_epoch?: string | null+}+export interface CanonicalEventsResult {+ events: CanonicalReplayEvent[]+ latest_seq: number+ last_sequence: number+ epoch: string+ replay_epoch: string+ truncated: boolean+ snapshot_required: boolean+ count: number+}+export interface CanonicalReplayEvent {+ type: string+ session_id: string+ payload: Record<string, unknown>+ replay_epoch: string+ seq: number+ authority_epoch?: number | null+ execution_generation?: number | null+ admission_id?: string | null+}+export interface CanonicalSubmitParams {+ profile?: string | null+ session_id: string+ text: string+ submission_id?: string | null+ input_id?: string | null+ queued?: boolean+ attachments?: CanonicalAttachment[] | null+ finite?: boolean+ unattended?: boolean+ surface?: string | null+ voice_context?: string | null+ interrupted?: boolean+ voice_turn?: boolean+ display_kind?: 'hidden' | null+ title_preview?: string | null+ turn_author?: CanonicalTurnAuthor | null+ api_text?: string | null+ model_override?: CanonicalModelOverride | null+ clarify_batch?: boolean+}+export interface CanonicalAttachment {+ path: string+ mime: string+}+export interface CanonicalTurnAuthor {+ id?: string | null+ name?: string | null+ is_bot?: boolean+ origin?: string | null+}+export interface CanonicalModelOverride {+ model: string+ provider?: string | null+}+export interface CanonicalApprovalParams {+ profile?: string | null+ session_id: string+ execution_generation: number+ prompt_id: string+ choice: string+}+export interface CanonicalConfigGetResult {+ value?: string | null+ display?: string | null+ tool_progress?: string | null+ model?: string | null+ provider?: string | null+ providers?: ConfigProviderRef[] | null+ home?: string | null+ cwd?: string | null+ branch?: string | null+ config?: Record<string, unknown> | null+ prompt?: string | null+ mtime?: number | null+ mcp_rev?: string | null+ key?: string | null+ scope?: string | null+}+/** Session controls (``busy`` / ``verbose`` / ``yolo`` / ``show_reasoning`` / ``service_tier``, which need ``session_id``) and the TUI's profile preferences (``gateway/session_tui_config.py``; ``session_id`` optional). ``model`` is recognised only to be refused with ``use_session_mutation_model``: a model pick is the revision-fenced ``session.mutate`` operation, never a config write. */+export interface CanonicalConfigSetParams {+ profile?: string | null+ session_id?: string | null+ key: string+ value?: unknown+ confirm_expensive_model?: boolean | null+ scope?: 'session' | 'global' | null+}+export interface CanonicalProfilesParams {+ profile?: string | null+ include_sessions?: boolean+}+export interface CanonicalProfilesResult {+ profiles: CanonicalProfileRow[]+ bot_mode_protocol?: boolean+ install_id?: string+}+export interface CanonicalProfileRow {+ name: string+ path: string+ is_default?: boolean+ model?: string | null+ provider?: string | null+ description?: string+ display_name?: string+ skill_count?: number+ previous_names?: string[]+ last_session?: ProfileCanonicalSession | null+ worker_session?: ProfileWorkerSession | null+ canonical_session?: ProfileCanonicalSession | null+ ui_meta_revisions?: Record<string, number>+ ui_meta?: Record<string, unknown> | null+ has_avatar?: boolean+}+export interface CanonicalAttachedImageResult {+ name?: string | null+ width?: number | null+ height?: number | null+ token_estimate?: number | null+ attached: boolean+ path?: string | null+ count?: number | null+ remainder?: string | null+ text?: string | null+ bytes?: number | null+ message?: string | null+ mime: string+}+export interface CanonicalRoomAttemptParams {+ profile?: string | null+ room_id: string+ member_id: string+ task_id: string+ execution_generation: number+}+export interface CanonicalRoomCreateParams {+ profile?: string | null+ room_id: string+ name: string+ members: RoomMemberInput[]+}+export interface CanonicalRoomApproveParams {+ profile?: string | null+ room_id: string+ member_id: string+ task_id: string+ execution_generation: number+ choice: 'once' | 'deny'+ request_id: string+}+export interface CanonicalBotDeliverParams {+ profile?: string | null+ message: string+ id: string+ session_id?: string | null+ author?: Record<string, unknown> | null+ notification_category?: string | null+}+export interface CanonicalBotDeliverResult {+ status: string+ delivery_id: string+ profile_home: string+ session_id: string+ admission_id: string+ message: string+ reply?: string | null+ retry_admission_id?: string | null+ error?: string | null+ reason?: string | null+}/** ``answers`` rides only on a reconnect replay (locks the server already accepted; null = skipped). */export interface ClarifyRequestParams {session_id: stringdiff --cc apps/shared/src/gateway-contract.openrpc.jsonindex 3f745c437df,d408ccf3c0e..8de6276a741--- a/apps/shared/src/gateway-contract.openrpc.json+++ b/apps/shared/src/gateway-contract.openrpc.json@@@ -26410,56 -26371,164 +26428,147 @@@}},"required": [- "cwd"+ "name",+ "key"],- "title": "ProjectsForCwdResult",+ "title": "PluginActivation","type": "object"},- "ProjectsPayload": {++ "PluginCatalogLookupEntry": {+ "additionalProperties": false,- "description": "``methods_projects._projects_payload``: every project (archived included) + the active id.",++ "description": "The fields an install needs: the same ones the embedded catalog picker posts on a pick.",+ "properties": {- "projects": {- "items": {- "$ref": "#/components/schemas/ProjectInfo"- },- "title": "Projects",- "type": "array"++ "name": {++ "title": "Name",++ "type": "string"+ },- "active_id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "default": null,- "title": "Active Id"++ "repo": {++ "title": "Repo",++ "type": "string"++ },++ "sha": {++ "title": "Sha",++ "type": "string"++ },++ "subdir": {++ "title": "Subdir",++ "type": "string"+ }+ },+ "required": [- "projects"++ "name",++ "repo",++ "sha",++ "subdir"+ ],- "title": "ProjectsPayload",++ "title": "PluginCatalogLookupEntry",+ "type": "object"+ },- "ProjectsProjectSessionsParams": {++ "PluginCatalogLookupParams": {+ "additionalProperties": false,+ "properties": {+ "profile": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "title": "Profile"+ },- "project_id": {- "title": "Project Id",++ "name": {++ "title": "Name",+ "type": "string"- },- "session_limit": {- "anyOf": [- {- "type": "integer"- },- {- "type": "null"- }- ],- "default": null,- "title": "Session Limit"+ }+ },+ "required": [- "project_id"++ "name"+ ],- "title": "ProjectsProjectSessionsParams",++ "title": "PluginCatalogLookupParams",+ "type": "object"+ },- "ProjectsProjectSessionsResult": {++ "PluginCatalogLookupResult": {+ "additionalProperties": false,++ "description": "``found`` carries ``entry``. ``unknown`` covers a name the catalog doesn't list and one it removed;\n``unavailable`` means neither the live catalog nor the in-tree fallback could be read.",+ "properties": {- "project": {++ "status": {++ "$ref": "#/components/schemas/PluginCatalogLookupStatus"++ },++ "entry": {+ "anyOf": [+ {- "$ref": "#/components/schemas/ProjectTreeNode"++ "$ref": "#/components/schemas/PluginCatalogLookupEntry"+ },+ {+ "type": "null"+ }+ ],+ "default": null+ }+ },- "title": "ProjectsProjectSessionsResult",- "type": "object"- },- "ProjectsRecordReposParams": {++ "required": [++ "status"++ ],++ "title": "PluginCatalogLookupResult",++ "type": "object"++ },++ "PluginCatalogLookupStatus": {++ "enum": [++ "found",++ "invalid_name",++ "unknown",++ "unavailable"++ ],++ "title": "PluginCatalogLookupStatus",++ "type": "string"++ },+ "PluginLiveNow": {"additionalProperties": false,- "description": "Repos as ``{root, label}`` objects or bare root strings; entries without a root are skipped.","properties": {- "profile": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "default": null,- "title": "Profile"- },- "repos": {- "anyOf": [- {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/RecordRepoItem"- },- {- "type": "string"- }- ]- },- "type": "array"- },- {- "type": "null"- }- ],- "default": null,- "title": "Repos"+ "mcp_servers": {+ "items": {+ "$ref": "#/components/schemas/PluginLiveServer"+ },+ "title": "Mcp Servers",+ "type": "array"},- "discovery_policy": {- "anyOf": [- {- "$ref": "#/components/schemas/RepoDiscoveryPolicyParams"- },- {- "type": "null"- }- ],- "default": null+ "skills": {+ "items": {+ "$ref": "#/components/schemas/PluginLiveSkill"+ },+ "title": "Skills",+ "type": "array"}},- "title": "ProjectsRecordReposParams",+ "title": "PluginLiveNow","type": "object"},- "ProjectsRecordReposResult": {+ "PluginLiveServer": {"additionalProperties": false,+ "description": "One plugin MCP server connected at activation: its callable tool names, or the reason it did not connect.","properties": {- "repos": {+ "name": {+ "title": "Name",+ "type": "string"+ },+ "connected": {+ "title": "Connected",+ "type": "boolean"+ },+ "tools": {"items": {- "$ref": "#/components/schemas/DiscoveredRepo"+ "type": "string"},- "title": "Repos",+ "title": "Tools","type": "array"},- "discovery_policy": {+ "error": {"anyOf": [{- "$ref": "#/components/schemas/RepoDiscoveryPolicy"+ "type": "string"},{"type": "null"diff --cc tui_gateway/server.pyindex 9b2da97e755,44316003ba4..ad890312118--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@@ -2168,10 -3677,10 +2169,11 @@@ from . importmethods_connectors as _methods_connectors, methods_connectors_account as _methods_connectors_account,methods_display as _methods_display, methods_display_watch as _methods_display_watch,methods_onboarding as _methods_onboarding, methods_i18n as _methods_i18n,- methods_shared_metrics as _methods_shared_metrics, methods_start_chat as _methods_start_chat)+ methods_shared_metrics as _methods_shared_metrics, methods_start_chat as _methods_start_chat,+ methods_plugin_catalog as _methods_plugin_catalog)for _m in (+ _session_registry, _agent_factory,_session_transports, _session_reaper, _session_lifecycle, _session_workdir, _compute_host_bridge, _model_switch,_session_compression, _change_watcher, _tool_progress, _session_notifications,_prompt_attachments, _session_history, _agent_callbacks, _session_auto_continue, _plugin_inject, _rpc_dispatch,